Debian Codegraph @

node/@patternfly/react-core/dist/esm/helpers/constants.js

raw
1 import globalBreakpointSm from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_sm';
2 import globalBreakpointMd from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_md';
3 import globalBreakpointLg from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_lg';
4 import globalBreakpointXl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_xl';
5 import globalBreakpoint2xl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_2xl';
6 import globalHeightBreakpointSm from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_height_sm';
7 import globalHeightBreakpointMd from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_height_md';
8 import globalHeightBreakpointLg from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_height_lg';
9 import globalHeightBreakpointXl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_height_xl';
10 import globalHeightBreakpoint2xl from '@patternfly/react-tokens/dist/esm/t_global_breakpoint_height_2xl';
11 import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
12 import RhUiErrorFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-error-fill-icon';
13 import RhUiWarningFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-warning-fill-icon';
14 import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
15 import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
16 export const SIDE = { RIGHT: 'right', LEFT: 'left', BOTH: 'both', NONE: 'none' };
17 export const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
18 export var ValidatedOptions;
19 (function (ValidatedOptions) {
20 ValidatedOptions["success"] = "success";
21 ValidatedOptions["error"] = "error";
22 ValidatedOptions["warning"] = "warning";
23 ValidatedOptions["default"] = "default";
24 })(ValidatedOptions || (ValidatedOptions = {}));
25 export const KeyTypes = {
26 Tab: 'Tab',
27 Space: ' ',
28 Escape: 'Escape',
29 Enter: 'Enter',
30 ArrowUp: 'ArrowUp',
31 ArrowDown: 'ArrowDown',
32 ArrowLeft: 'ArrowLeft',
33 ArrowRight: 'ArrowRight'
34 };
35 export const globalWidthBreakpoints = {
36 sm: parseInt(globalBreakpointSm.value) * 16,
37 md: parseInt(globalBreakpointMd.value) * 16,
38 lg: parseInt(globalBreakpointLg.value) * 16,
39 xl: parseInt(globalBreakpointXl.value) * 16,
40 '2xl': parseInt(globalBreakpoint2xl.value) * 16
41 };
42 export const globalHeightBreakpoints = {
43 sm: parseInt(globalHeightBreakpointSm.value) * 16,
44 md: parseInt(globalHeightBreakpointMd.value) * 16,
45 lg: parseInt(globalHeightBreakpointLg.value) * 16,
46 xl: parseInt(globalHeightBreakpointXl.value) * 16,
47 '2xl': parseInt(globalHeightBreakpoint2xl.value) * 16
48 };
49 export const statusIcons = {
50 success: RhUiCheckCircleFillIcon,
51 danger: RhUiErrorFillIcon,
52 warning: RhUiWarningFillIcon,
53 info: RhUiInformationFillIcon,
54 custom: RhUiNotificationFillIcon
55 };
56 //# sourceMappingURL=constants.js.map