@onewelcome/react-lib-components 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/dist/Button/BaseButton.d.ts +4 -4
- package/dist/Button/Button.d.ts +3 -3
- package/dist/Button/IconButton.d.ts +4 -4
- package/dist/ContextMenu/ContextMenu.d.ts +5 -5
- package/dist/ContextMenu/ContextMenuItem.d.ts +2 -2
- package/dist/DataGrid/DataGrid.d.ts +6 -6
- package/dist/DataGrid/DataGridActions/DataGridActions.d.ts +4 -4
- package/dist/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +3 -3
- package/dist/DataGrid/DataGridBody/DataGridBody.d.ts +3 -3
- package/dist/DataGrid/DataGridBody/DataGridCell.d.ts +2 -2
- package/dist/DataGrid/DataGridBody/DataGridRow.d.ts +3 -3
- package/dist/DataGrid/DataGridHeader/DataGridHeader.d.ts +3 -3
- package/dist/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +3 -3
- package/dist/DataGrid/datagrid.interfaces.d.ts +1 -1
- package/dist/Form/Checkbox/Checkbox.d.ts +5 -5
- package/dist/Form/Fieldset/Fieldset.d.ts +3 -3
- package/dist/Form/Form.d.ts +1 -1
- package/dist/Form/FormControl/FormControl.d.ts +3 -3
- package/dist/Form/FormGroup/FormGroup.d.ts +5 -5
- package/dist/Form/FormHelperText/FormHelperText.d.ts +3 -3
- package/dist/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +6 -6
- package/dist/Form/Input/Input.d.ts +5 -5
- package/dist/Form/Label/Label.d.ts +2 -2
- package/dist/Form/Radio/Radio.d.ts +5 -5
- package/dist/Form/Select/Option.d.ts +2 -2
- package/dist/Form/Select/Select.d.ts +5 -5
- package/dist/Form/Textarea/Textarea.d.ts +6 -6
- package/dist/Form/Toggle/Toggle.d.ts +3 -3
- package/dist/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +4 -4
- package/dist/Form/Wrapper/InputWrapper/InputWrapper.d.ts +4 -4
- package/dist/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +4 -4
- package/dist/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +4 -4
- package/dist/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +4 -4
- package/dist/Form/Wrapper/Wrapper/Wrapper.d.ts +6 -6
- package/dist/Form/form.interfaces.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +3 -3
- package/dist/Link/Link.d.ts +7 -7
- package/dist/Notifications/BaseModal/BaseModal.d.ts +4 -4
- package/dist/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +2 -2
- package/dist/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +2 -2
- package/dist/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +2 -2
- package/dist/Notifications/Dialog/Dialog.d.ts +5 -5
- package/dist/Notifications/Dialog/DialogActions/DialogActions.d.ts +3 -3
- package/dist/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +2 -2
- package/dist/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +3 -3
- package/dist/Notifications/DiscardChangesModal/DiscardChangesModal.d.ts +7 -7
- package/dist/Notifications/Modal/Modal.d.ts +1 -1
- package/dist/Notifications/Modal/ModalActions/ModalActions.d.ts +1 -1
- package/dist/Notifications/Modal/ModalContent/ModalContent.d.ts +1 -1
- package/dist/Notifications/Modal/ModalHeader/ModalHeader.d.ts +1 -1
- package/dist/Notifications/SlideInModal/SlideInModal.d.ts +3 -3
- package/dist/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.d.ts +3 -3
- package/dist/Notifications/Snackbar/SnackbarItem/SnackbarItem.d.ts +2 -2
- package/dist/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +3 -3
- package/dist/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +2 -2
- package/dist/Notifications/Snackbar/interfaces.d.ts +2 -2
- package/dist/Pagination/Pagination.d.ts +3 -3
- package/dist/Popover/Popover.d.ts +3 -3
- package/dist/Skeleton/Skeleton.d.ts +3 -3
- package/dist/StatusIndicator/StatusIndicator.d.ts +5 -5
- package/dist/Tabs/Tab.d.ts +1 -1
- package/dist/Tabs/TabButton.d.ts +2 -2
- package/dist/Tabs/TabPanel.d.ts +2 -2
- package/dist/Tabs/Tabs.d.ts +4 -4
- package/dist/TextEllipsis/TextEllipsis.d.ts +2 -2
- package/dist/Tiles/Tile.d.ts +5 -5
- package/dist/Tiles/Tiles.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Typography/Typography.d.ts +3 -3
- package/dist/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +2 -2
- package/dist/Wizard/Wizard.d.ts +3 -3
- package/dist/Wizard/WizardActions/WizardActions.d.ts +2 -2
- package/dist/Wizard/WizardStateProvider.d.ts +2 -2
- package/dist/Wizard/WizardSteps/WizardSteps.d.ts +2 -2
- package/dist/Wizard/wizardStateReducer.d.ts +5 -5
- package/dist/_BaseStyling_/BaseStyling.d.ts +1 -1
- package/dist/hooks/usePosition.d.ts +4 -4
- package/dist/hooks/useRepeater.d.ts +1 -1
- package/dist/hooks/useScroll.d.ts +1 -1
- package/dist/hooks/useSpacing.d.ts +1 -1
- package/dist/hooks/useWrapper.d.ts +1 -1
- package/dist/index.d.ts +55 -55
- package/dist/react-lib-components.cjs.development.js +672 -576
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +672 -576
- package/dist/react-lib-components.esm.js.map +1 -1
- package/package.json +27 -16
- package/src/Breadcrumbs/Breadcrumbs.test.tsx +15 -15
- package/src/Breadcrumbs/Breadcrumbs.tsx +11 -11
- package/src/Button/BaseButton.module.scss +1 -1
- package/src/Button/BaseButton.test.tsx +27 -27
- package/src/Button/BaseButton.tsx +8 -8
- package/src/Button/Button.module.scss +5 -5
- package/src/Button/Button.test.tsx +39 -39
- package/src/Button/Button.tsx +10 -10
- package/src/Button/IconButton.module.scss +5 -5
- package/src/Button/IconButton.test.tsx +29 -29
- package/src/Button/IconButton.tsx +11 -11
- package/src/ContextMenu/ContextMenu.test.tsx +81 -76
- package/src/ContextMenu/ContextMenu.tsx +43 -41
- package/src/ContextMenu/ContextMenuItem.module.scss +1 -1
- package/src/ContextMenu/ContextMenuItem.tsx +5 -5
- package/src/DataGrid/DataGrid.test.tsx +193 -193
- package/src/DataGrid/DataGrid.tsx +26 -26
- package/src/DataGrid/DataGridActions/DataGridActions.test.tsx +63 -63
- package/src/DataGrid/DataGridActions/DataGridActions.tsx +15 -15
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss +1 -1
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.test.tsx +21 -21
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.tsx +20 -20
- package/src/DataGrid/DataGridBody/DataGridBody.test.tsx +40 -40
- package/src/DataGrid/DataGridBody/DataGridBody.tsx +10 -10
- package/src/DataGrid/DataGridBody/DataGridCell.module.scss +1 -1
- package/src/DataGrid/DataGridBody/DataGridCell.test.tsx +25 -25
- package/src/DataGrid/DataGridBody/DataGridCell.tsx +6 -6
- package/src/DataGrid/DataGridBody/DataGridRow.test.tsx +38 -38
- package/src/DataGrid/DataGridBody/DataGridRow.tsx +8 -8
- package/src/DataGrid/DataGridHeader/DataGridHeader.module.scss +1 -2
- package/src/DataGrid/DataGridHeader/DataGridHeader.test.tsx +119 -119
- package/src/DataGrid/DataGridHeader/DataGridHeader.tsx +13 -13
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +2 -0
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.test.tsx +51 -51
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.tsx +14 -14
- package/src/DataGrid/datagrid.interfaces.ts +1 -1
- package/src/Form/Checkbox/Checkbox.test.tsx +74 -74
- package/src/Form/Checkbox/Checkbox.tsx +27 -27
- package/src/Form/Fieldset/Fieldset.module.scss +1 -1
- package/src/Form/Fieldset/Fieldset.test.tsx +35 -35
- package/src/Form/Fieldset/Fieldset.tsx +27 -27
- package/src/Form/Form.test.tsx +18 -18
- package/src/Form/Form.tsx +3 -3
- package/src/Form/FormControl/FormControl.test.tsx +22 -22
- package/src/Form/FormControl/FormControl.tsx +10 -10
- package/src/Form/FormGroup/FormGroup.test.tsx +37 -37
- package/src/Form/FormGroup/FormGroup.tsx +16 -16
- package/src/Form/FormHelperText/FormHelperText.test.tsx +18 -18
- package/src/Form/FormHelperText/FormHelperText.tsx +7 -7
- package/src/Form/FormSelectorWrapper/FormSelectorWrapper.test.tsx +15 -15
- package/src/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +14 -14
- package/src/Form/Input/Input.module.scss +20 -44
- package/src/Form/Input/Input.test.tsx +86 -59
- package/src/Form/Input/Input.tsx +96 -35
- package/src/Form/Label/Label.test.tsx +13 -13
- package/src/Form/Label/Label.tsx +6 -6
- package/src/Form/Radio/Radio.test.tsx +35 -35
- package/src/Form/Radio/Radio.tsx +17 -17
- package/src/Form/Select/Option.test.tsx +10 -10
- package/src/Form/Select/Option.tsx +8 -8
- package/src/Form/Select/Select.module.scss +7 -9
- package/src/Form/Select/Select.test.tsx +144 -141
- package/src/Form/Select/Select.tsx +79 -78
- package/src/Form/Textarea/Textarea.module.scss +8 -18
- package/src/Form/Textarea/Textarea.test.tsx +27 -27
- package/src/Form/Textarea/Textarea.tsx +33 -13
- package/src/Form/Toggle/Toggle.module.scss +1 -1
- package/src/Form/Toggle/Toggle.test.tsx +22 -22
- package/src/Form/Toggle/Toggle.tsx +10 -10
- package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.tsx +39 -39
- package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +12 -12
- package/src/Form/Wrapper/InputWrapper/InputWrapper.module.scss +2 -8
- package/src/Form/Wrapper/InputWrapper/InputWrapper.test.tsx +55 -55
- package/src/Form/Wrapper/InputWrapper/InputWrapper.tsx +30 -35
- package/src/Form/Wrapper/RadioWrapper/RadioWrapper.test.tsx +35 -35
- package/src/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +12 -12
- package/src/Form/Wrapper/SelectWrapper/SelectWrapper.test.tsx +55 -55
- package/src/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +12 -12
- package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +2 -11
- package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.tsx +50 -50
- package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +22 -22
- package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +2 -2
- package/src/Form/Wrapper/Wrapper/Wrapper.test.tsx +11 -11
- package/src/Form/Wrapper/Wrapper/Wrapper.tsx +17 -17
- package/src/Form/form.interfaces.ts +1 -1
- package/src/Icon/Icon.module.scss +71 -71
- package/src/Icon/Icon.test.tsx +18 -18
- package/src/Icon/Icon.tsx +70 -70
- package/src/Link/Link.module.scss +5 -5
- package/src/Link/Link.test.tsx +76 -76
- package/src/Link/Link.tsx +27 -27
- package/src/Link/types.d.ts +1 -1
- package/src/Notifications/BaseModal/BaseModal.module.scss +1 -1
- package/src/Notifications/BaseModal/BaseModal.test.tsx +53 -53
- package/src/Notifications/BaseModal/BaseModal.tsx +16 -16
- package/src/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.tsx +13 -13
- package/src/Notifications/BaseModal/BaseModalActions/BaseModalActions.tsx +5 -5
- package/src/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.tsx +16 -16
- package/src/Notifications/BaseModal/BaseModalContent/BaseModalContent.tsx +5 -5
- package/src/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.tsx +19 -19
- package/src/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.tsx +10 -10
- package/src/Notifications/Dialog/Dialog.test.tsx +35 -35
- package/src/Notifications/Dialog/Dialog.tsx +19 -19
- package/src/Notifications/Dialog/DialogActions/DialogActions.test.tsx +14 -14
- package/src/Notifications/Dialog/DialogActions/DialogActions.tsx +6 -6
- package/src/Notifications/Dialog/DialogTitle/DialogTitle.test.tsx +12 -12
- package/src/Notifications/Dialog/DialogTitle/DialogTitle.tsx +6 -6
- package/src/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.tsx +20 -20
- package/src/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx +7 -7
- package/src/Notifications/DiscardChangesModal/DiscardChangesModal.test.tsx +36 -36
- package/src/Notifications/DiscardChangesModal/DiscardChangesModal.tsx +8 -8
- package/src/Notifications/Modal/Modal.test.tsx +6 -6
- package/src/Notifications/Modal/Modal.tsx +1 -1
- package/src/Notifications/Modal/ModalActions/ModalActions.tsx +2 -2
- package/src/Notifications/Modal/ModalContent/ModalContent.tsx +2 -2
- package/src/Notifications/Modal/ModalHeader/ModalHeader.tsx +2 -2
- package/src/Notifications/SlideInModal/SlideInModal.test.tsx +16 -16
- package/src/Notifications/SlideInModal/SlideInModal.tsx +16 -11
- package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.tsx +16 -16
- package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx +6 -6
- package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.scss +2 -2
- package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.tsx +17 -17
- package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.tsx +23 -23
- package/src/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.tsx +32 -32
- package/src/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx +18 -18
- package/src/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +3 -3
- package/src/Notifications/Snackbar/interfaces.ts +2 -2
- package/src/Notifications/Snackbar/useSnackbar.ts +2 -2
- package/src/Pagination/Pagination.module.scss +2 -0
- package/src/Pagination/Pagination.test.tsx +47 -47
- package/src/Pagination/Pagination.tsx +35 -35
- package/src/Popover/Popover.test.tsx +19 -19
- package/src/Popover/Popover.tsx +7 -7
- package/src/Skeleton/Skeleton.module.scss +2 -2
- package/src/Skeleton/Skeleton.test.tsx +29 -29
- package/src/Skeleton/Skeleton.tsx +10 -10
- package/src/StatusIndicator/StatusIndicator.test.tsx +38 -38
- package/src/StatusIndicator/StatusIndicator.tsx +9 -9
- package/src/Tabs/Tab.test.tsx +13 -13
- package/src/Tabs/Tab.tsx +1 -1
- package/src/Tabs/TabButton.test.tsx +28 -28
- package/src/Tabs/TabButton.tsx +7 -7
- package/src/Tabs/TabPanel.test.tsx +30 -30
- package/src/Tabs/TabPanel.tsx +4 -4
- package/src/Tabs/Tabs.test.tsx +93 -93
- package/src/Tabs/Tabs.tsx +25 -25
- package/src/TextEllipsis/TextEllipsis.test.tsx +22 -22
- package/src/TextEllipsis/TextEllipsis.tsx +6 -6
- package/src/Tiles/Tile.module.scss +1 -1
- package/src/Tiles/Tile.test.tsx +42 -42
- package/src/Tiles/Tile.tsx +22 -22
- package/src/Tiles/Tiles.test.tsx +30 -30
- package/src/Tiles/Tiles.tsx +9 -9
- package/src/Tooltip/Tooltip.test.tsx +35 -35
- package/src/Tooltip/Tooltip.tsx +21 -21
- package/src/Typography/Typography.module.scss +1 -1
- package/src/Typography/Typography.test.tsx +49 -49
- package/src/Typography/Typography.tsx +42 -42
- package/src/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +1 -1
- package/src/Wizard/BaseWizardSteps/BaseWizardSteps.test.tsx +26 -26
- package/src/Wizard/BaseWizardSteps/BaseWizardSteps.tsx +24 -24
- package/src/Wizard/Wizard.test.tsx +56 -56
- package/src/Wizard/Wizard.tsx +6 -6
- package/src/Wizard/WizardActions/WizardActions.test.tsx +34 -34
- package/src/Wizard/WizardActions/WizardActions.tsx +14 -14
- package/src/Wizard/WizardStateProvider.tsx +3 -3
- package/src/Wizard/WizardSteps/WizardSteps.test.tsx +27 -27
- package/src/Wizard/WizardSteps/WizardSteps.tsx +7 -7
- package/src/Wizard/wizardStateReducer.ts +9 -9
- package/src/_BaseStyling_/BaseStyling.test.tsx +14 -14
- package/src/_BaseStyling_/BaseStyling.tsx +50 -50
- package/src/hooks/useAnimation.test.tsx +12 -12
- package/src/hooks/useAnimation.ts +4 -4
- package/src/hooks/useBodyClick.test.tsx +8 -8
- package/src/hooks/useBodyClick.ts +3 -3
- package/src/hooks/useFormSelector.test.ts +17 -17
- package/src/hooks/useFormSelector.ts +4 -4
- package/src/hooks/usePosition.test.tsx +215 -215
- package/src/hooks/usePosition.ts +68 -68
- package/src/hooks/useRepeater.test.tsx +26 -26
- package/src/hooks/useRepeater.ts +5 -5
- package/src/hooks/useScroll.test.tsx +5 -5
- package/src/hooks/useScroll.ts +3 -3
- package/src/hooks/useSpacing.test.ts +40 -40
- package/src/hooks/useSpacing.ts +3 -3
- package/src/hooks/useWrapper.test.ts +12 -12
- package/src/hooks/useWrapper.ts +10 -10
- package/src/index.ts +67 -67
- package/src/mixins.module.scss +76 -27
- package/src/types.d.ts +1 -1
- package/src/util/helper.test.tsx +25 -25
- package/src/util/helper.tsx +64 -64
|
@@ -38,56 +38,56 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
38
38
|
_ref$properties = _ref.properties,
|
|
39
39
|
properties = _ref$properties === void 0 ? {} : _ref$properties;
|
|
40
40
|
var defaultProperties = {
|
|
41
|
-
colorFocus:
|
|
42
|
-
colorPrimary:
|
|
43
|
-
colorSecondary:
|
|
44
|
-
colorTertiary:
|
|
45
|
-
defaultLineHeight:
|
|
46
|
-
buttonBorderRadius:
|
|
47
|
-
buttonBorderWidth:
|
|
48
|
-
buttonFontSize:
|
|
49
|
-
buttonBorderStyle:
|
|
50
|
-
buttonFillTextColor:
|
|
51
|
-
buttonFillBackgroundColor:
|
|
52
|
-
buttonOutlineHoverTextColor:
|
|
53
|
-
inputBorderColor:
|
|
54
|
-
inputBorderRadius:
|
|
55
|
-
inputBorderWidth:
|
|
56
|
-
inputBorderWidthFocus:
|
|
57
|
-
inputBorderStyle:
|
|
58
|
-
inputBackgroundColor:
|
|
59
|
-
modalShadowColor:
|
|
60
|
-
modalBackgroundColor:
|
|
61
|
-
modalHeaderBackgroundColor:
|
|
62
|
-
snackbarTextColor:
|
|
63
|
-
snackbarInfoBackgroundColor:
|
|
64
|
-
snackbarSuccessBackgroundColor:
|
|
65
|
-
snackbarErrorBackgroundColor:
|
|
66
|
-
snackbarBorderRadius:
|
|
67
|
-
dataGridRowBackgroundColor:
|
|
68
|
-
dataGridRowHoverBackgroundColor:
|
|
69
|
-
tabsBackgroundColor:
|
|
70
|
-
tabBorderWidth:
|
|
71
|
-
tabBorderStyle:
|
|
72
|
-
tablistBorderWidth:
|
|
73
|
-
tablistBorderStyle:
|
|
74
|
-
tablistBorderColor:
|
|
75
|
-
tabTextColor:
|
|
76
|
-
"default":
|
|
77
|
-
success:
|
|
78
|
-
error:
|
|
79
|
-
disabled:
|
|
80
|
-
greyedOut:
|
|
81
|
-
warning:
|
|
41
|
+
colorFocus: "#0085f2",
|
|
42
|
+
colorPrimary: "#9e006b",
|
|
43
|
+
colorSecondary: "#003b5e",
|
|
44
|
+
colorTertiary: "#ff1e4e",
|
|
45
|
+
defaultLineHeight: "26px",
|
|
46
|
+
buttonBorderRadius: "20px",
|
|
47
|
+
buttonBorderWidth: "2px",
|
|
48
|
+
buttonFontSize: "1rem",
|
|
49
|
+
buttonBorderStyle: "solid",
|
|
50
|
+
buttonFillTextColor: "#fff",
|
|
51
|
+
buttonFillBackgroundColor: "#fff",
|
|
52
|
+
buttonOutlineHoverTextColor: "#fff",
|
|
53
|
+
inputBorderColor: "#e9e9eb",
|
|
54
|
+
inputBorderRadius: "8px",
|
|
55
|
+
inputBorderWidth: "1px",
|
|
56
|
+
inputBorderWidthFocus: "2px",
|
|
57
|
+
inputBorderStyle: "solid",
|
|
58
|
+
inputBackgroundColor: "#fff",
|
|
59
|
+
modalShadowColor: "rgba(0, 0, 0, 0.16)",
|
|
60
|
+
modalBackgroundColor: "#f5f8f8",
|
|
61
|
+
modalHeaderBackgroundColor: "#fff",
|
|
62
|
+
snackbarTextColor: "#fff",
|
|
63
|
+
snackbarInfoBackgroundColor: "#003b5e",
|
|
64
|
+
snackbarSuccessBackgroundColor: "#008a28",
|
|
65
|
+
snackbarErrorBackgroundColor: "#d9291c",
|
|
66
|
+
snackbarBorderRadius: "8px",
|
|
67
|
+
dataGridRowBackgroundColor: "transparent",
|
|
68
|
+
dataGridRowHoverBackgroundColor: "#f5e6f0",
|
|
69
|
+
tabsBackgroundColor: "#FFF",
|
|
70
|
+
tabBorderWidth: "2px",
|
|
71
|
+
tabBorderStyle: "solid",
|
|
72
|
+
tablistBorderWidth: "1px",
|
|
73
|
+
tablistBorderStyle: "solid",
|
|
74
|
+
tablistBorderColor: "#C3C3C7",
|
|
75
|
+
tabTextColor: "#0f0f1e",
|
|
76
|
+
"default": "#0f0f1e",
|
|
77
|
+
success: "#008a28",
|
|
78
|
+
error: "#d9291c",
|
|
79
|
+
disabled: "#e9e9eb",
|
|
80
|
+
greyedOut: "#6f6f76",
|
|
81
|
+
warning: "#ff6105",
|
|
82
82
|
fontFamily: "'Red Hat Display', sans-serif",
|
|
83
83
|
fontFamilyCode: "'Red Hat Mono', sans-serif",
|
|
84
|
-
fontSize:
|
|
85
|
-
fontSizeH1:
|
|
86
|
-
fontSizeH2:
|
|
87
|
-
fontSizeH3:
|
|
88
|
-
fontSizeH4:
|
|
89
|
-
fontSizeSub:
|
|
90
|
-
fontSizeCode:
|
|
84
|
+
fontSize: "1rem",
|
|
85
|
+
fontSizeH1: "2.5rem",
|
|
86
|
+
fontSizeH2: "1.625rem",
|
|
87
|
+
fontSizeH3: "1.5rem",
|
|
88
|
+
fontSizeH4: "1.25rem",
|
|
89
|
+
fontSizeSub: ".75rem",
|
|
90
|
+
fontSizeCode: "1rem"
|
|
91
91
|
};
|
|
92
92
|
/** We need a loading state, because otherwise you see the colors flash from the default to the possible overridden ones. */
|
|
93
93
|
|
|
@@ -137,16 +137,16 @@ var _excluded$Y = ["children", "type", "className"];
|
|
|
137
137
|
var BaseButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
138
138
|
var children = _ref.children,
|
|
139
139
|
_ref$type = _ref.type,
|
|
140
|
-
type = _ref$type === void 0 ?
|
|
140
|
+
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
141
141
|
className = _ref.className,
|
|
142
142
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
143
143
|
|
|
144
|
-
var validTypes = [
|
|
144
|
+
var validTypes = ["submit", "button", "reset"];
|
|
145
145
|
if (!validTypes.includes(type)) throw new Error("You have entered an invalid button type. Expected 'submit', 'button' or 'reset' got " + type);
|
|
146
146
|
return React.createElement("button", _extends({}, rest, {
|
|
147
147
|
ref: ref,
|
|
148
148
|
type: type,
|
|
149
|
-
className: modules_3484519b.button + " " + (className ? className :
|
|
149
|
+
className: modules_3484519b.button + " " + (className ? className : "")
|
|
150
150
|
}), children);
|
|
151
151
|
});
|
|
152
152
|
|
|
@@ -158,9 +158,9 @@ var _excluded$X = ["children", "variant", "color", "startIcon", "endIcon", "clas
|
|
|
158
158
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
159
159
|
var children = _ref.children,
|
|
160
160
|
_ref$variant = _ref.variant,
|
|
161
|
-
variant = _ref$variant === void 0 ?
|
|
161
|
+
variant = _ref$variant === void 0 ? "fill" : _ref$variant,
|
|
162
162
|
_ref$color = _ref.color,
|
|
163
|
-
color = _ref$color === void 0 ?
|
|
163
|
+
color = _ref$color === void 0 ? "primary" : _ref$color,
|
|
164
164
|
_ref$startIcon = _ref.startIcon,
|
|
165
165
|
startIcon = _ref$startIcon === void 0 ? false : _ref$startIcon,
|
|
166
166
|
_ref$endIcon = _ref.endIcon,
|
|
@@ -171,15 +171,15 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
171
171
|
var additionalClasses = [];
|
|
172
172
|
|
|
173
173
|
if (startIcon || endIcon) {
|
|
174
|
-
additionalClasses.push(modules_79b43374[
|
|
174
|
+
additionalClasses.push(modules_79b43374["has-icon"]);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
if (startIcon) {
|
|
178
|
-
additionalClasses.push(modules_79b43374[
|
|
178
|
+
additionalClasses.push(modules_79b43374["start-icon"]);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
if (endIcon) {
|
|
182
|
-
additionalClasses.push(modules_79b43374[
|
|
182
|
+
additionalClasses.push(modules_79b43374["end-icon"]);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
if (className) {
|
|
@@ -188,7 +188,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
188
188
|
|
|
189
189
|
return React.createElement(BaseButton, _extends({}, rest, {
|
|
190
190
|
ref: ref,
|
|
191
|
-
className: modules_79b43374[color] + " " + modules_79b43374[variant] + " " + additionalClasses.join(
|
|
191
|
+
className: modules_79b43374[color] + " " + modules_79b43374[variant] + " " + additionalClasses.join(" ")
|
|
192
192
|
}), startIcon && React.createElement("i", null, startIcon, "\xA0"), React.createElement("span", null, children), endIcon && React.createElement("i", null, "\xA0", endIcon));
|
|
193
193
|
});
|
|
194
194
|
|
|
@@ -273,7 +273,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
273
273
|
style = _ref.style,
|
|
274
274
|
size = _ref.size,
|
|
275
275
|
_ref$tag = _ref.tag,
|
|
276
|
-
tag = _ref$tag === void 0 ?
|
|
276
|
+
tag = _ref$tag === void 0 ? "span" : _ref$tag,
|
|
277
277
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$W);
|
|
278
278
|
|
|
279
279
|
var Component = tag;
|
|
@@ -286,16 +286,16 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
286
286
|
}),
|
|
287
287
|
"data-icon": true,
|
|
288
288
|
"aria-hidden": "true",
|
|
289
|
-
className: modules_c4937a59[
|
|
289
|
+
className: modules_c4937a59["icon"] + " " + modules_c4937a59["icon-" + icon] + " " + (className ? className : "")
|
|
290
290
|
}));
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
var css$T = ".
|
|
294
|
-
var modules_e6a5a2d0 = {"typography_style_h1":"
|
|
293
|
+
var css$T = ".Typography_module_typography_style_h1__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size-h1);\n font-style: normal;\n font-variant: normal;\n line-height: 1.2;\n font-weight: 700;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_h2__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size-h2);\n font-style: normal;\n font-variant: normal;\n line-height: 1.42857;\n font-weight: 700;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_h3__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size-h3);\n font-style: normal;\n font-variant: normal;\n line-height: 1.16666;\n font-weight: 400;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_h4__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size-h4);\n font-style: normal;\n font-variant: normal;\n line-height: 1.2;\n font-weight: 700;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_body__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size);\n font-style: normal;\n font-variant: normal;\n line-height: 1.5;\n font-weight: 400;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_bodyBold__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size);\n font-style: normal;\n font-variant: normal;\n line-height: 1.5;\n font-weight: 700;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_subText__c956bd00 {\n font-family: var(--font-family);\n font-size: var(--font-size-sub);\n font-style: normal;\n font-variant: normal;\n line-height: 1.333;\n font-weight: 400;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}\n.Typography_module_typography_style_code__c956bd00 {\n font-family: var(--font-family-code);\n font-size: var(--font-size-code);\n font-style: normal;\n font-variant: normal;\n line-height: 1.5;\n font-weight: 400;\n text-transform: none;\n letter-spacing: 0;\n color: var(--default);\n margin: 0 0 1rem 0;\n}";
|
|
294
|
+
var modules_e6a5a2d0 = {"typography_style_h1":"Typography_module_typography_style_h1__c956bd00","typography_style_h2":"Typography_module_typography_style_h2__c956bd00","typography_style_h3":"Typography_module_typography_style_h3__c956bd00","typography_style_h4":"Typography_module_typography_style_h4__c956bd00","typography_style_body":"Typography_module_typography_style_body__c956bd00","typography_style_body-bold":"Typography_module_typography_style_bodyBold__c956bd00","typography_style_sub-text":"Typography_module_typography_style_subText__c956bd00","typography_style_code":"Typography_module_typography_style_code__c956bd00"};
|
|
295
295
|
n(css$T,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
296
296
|
|
|
297
297
|
var defaultFactor = 0.25;
|
|
298
|
-
var defaultUnit =
|
|
298
|
+
var defaultUnit = "rem";
|
|
299
299
|
var spacingNumberRegex = /(\d+\.?\d*)+/g;
|
|
300
300
|
var useSpacing = function useSpacing(spacingProps, style) {
|
|
301
301
|
if (spacingProps) {
|
|
@@ -308,7 +308,7 @@ var useSpacing = function useSpacing(spacingProps, style) {
|
|
|
308
308
|
var cssSpacingValue = Array.from(matches).map(function (_ref2) {
|
|
309
309
|
var multiplierValue = _ref2[0];
|
|
310
310
|
return "" + Number(multiplierValue) * defaultFactor + defaultUnit;
|
|
311
|
-
}).join(
|
|
311
|
+
}).join(" ");
|
|
312
312
|
return _extends({}, prev, (_extends2 = {}, _extends2[spacing] = cssSpacingValue, _extends2));
|
|
313
313
|
}, style != null ? style : {});
|
|
314
314
|
}
|
|
@@ -317,7 +317,7 @@ var useSpacing = function useSpacing(spacingProps, style) {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
var _excluded$V = ["children", "variant", "tag", "style", "spacing", "className"];
|
|
320
|
-
var validVariants = [
|
|
320
|
+
var validVariants = ["h1", "h2", "h3", "h4", "body", "body-bold", "sub-text", "code"];
|
|
321
321
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
322
322
|
var children = _ref.children,
|
|
323
323
|
variant = _ref.variant,
|
|
@@ -325,7 +325,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
325
325
|
style = _ref.style,
|
|
326
326
|
spacing = _ref.spacing,
|
|
327
327
|
_ref$className = _ref.className,
|
|
328
|
-
className = _ref$className === void 0 ?
|
|
328
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
329
329
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
330
330
|
|
|
331
331
|
if (!validVariants.includes(variant)) {
|
|
@@ -336,28 +336,28 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
336
336
|
|
|
337
337
|
if (!tag) {
|
|
338
338
|
switch (variant) {
|
|
339
|
-
case
|
|
340
|
-
case
|
|
341
|
-
case
|
|
342
|
-
case
|
|
343
|
-
case
|
|
339
|
+
case "h1":
|
|
340
|
+
case "h2":
|
|
341
|
+
case "h3":
|
|
342
|
+
case "h4":
|
|
343
|
+
case "code":
|
|
344
344
|
tag = variant;
|
|
345
345
|
break;
|
|
346
346
|
|
|
347
|
-
case
|
|
348
|
-
tag =
|
|
347
|
+
case "body":
|
|
348
|
+
tag = "p";
|
|
349
349
|
break;
|
|
350
350
|
|
|
351
|
-
case
|
|
352
|
-
tag =
|
|
351
|
+
case "body-bold":
|
|
352
|
+
tag = "p";
|
|
353
353
|
break;
|
|
354
354
|
|
|
355
|
-
case
|
|
356
|
-
tag =
|
|
355
|
+
case "sub-text":
|
|
356
|
+
tag = "span";
|
|
357
357
|
break;
|
|
358
358
|
|
|
359
359
|
default:
|
|
360
|
-
tag =
|
|
360
|
+
tag = "div";
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
@@ -366,7 +366,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
366
366
|
return React.createElement(TagName, _extends({}, rest, {
|
|
367
367
|
ref: ref,
|
|
368
368
|
style: styleWithSpacing,
|
|
369
|
-
className: modules_e6a5a2d0[
|
|
369
|
+
className: modules_e6a5a2d0["typography_style_" + variant] + " " + className
|
|
370
370
|
}), children);
|
|
371
371
|
});
|
|
372
372
|
|
|
@@ -377,9 +377,9 @@ n(css$S,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
|
377
377
|
var _excluded$U = ["children", "aria-label", "className"];
|
|
378
378
|
var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
379
379
|
var children = _ref.children,
|
|
380
|
-
ariaLabel = _ref[
|
|
380
|
+
ariaLabel = _ref["aria-label"],
|
|
381
381
|
_ref$className = _ref.className,
|
|
382
|
-
className = _ref$className === void 0 ?
|
|
382
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
383
383
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$U);
|
|
384
384
|
|
|
385
385
|
var items = React.Children.map(children, function (child, index) {
|
|
@@ -390,7 +390,7 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
390
390
|
key: child.key,
|
|
391
391
|
variant: "body",
|
|
392
392
|
tag: "span",
|
|
393
|
-
className: modules_a04642f2[
|
|
393
|
+
className: modules_a04642f2["last"],
|
|
394
394
|
"aria-current": "page"
|
|
395
395
|
}, child.props.children);
|
|
396
396
|
} else {
|
|
@@ -398,14 +398,14 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
398
398
|
key: child.key
|
|
399
399
|
}, React.cloneElement(child), React.createElement(Icon, {
|
|
400
400
|
icon: Icons.ChevronRight,
|
|
401
|
-
className: modules_a04642f2[
|
|
401
|
+
className: modules_a04642f2["icon"]
|
|
402
402
|
}));
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
return React.createElement("nav", _extends({}, rest, {
|
|
406
406
|
ref: ref,
|
|
407
407
|
"aria-label": ariaLabel,
|
|
408
|
-
className: modules_a04642f2[
|
|
408
|
+
className: modules_a04642f2["breadcrumbs"] + " " + className
|
|
409
409
|
}), items);
|
|
410
410
|
});
|
|
411
411
|
|
|
@@ -413,12 +413,12 @@ var defaultConfigObject = {
|
|
|
413
413
|
relativeElement: undefined,
|
|
414
414
|
elementToBePositioned: undefined,
|
|
415
415
|
transformOrigin: {
|
|
416
|
-
horizontal:
|
|
417
|
-
vertical:
|
|
416
|
+
horizontal: "left",
|
|
417
|
+
vertical: "top"
|
|
418
418
|
},
|
|
419
419
|
placement: {
|
|
420
|
-
horizontal:
|
|
421
|
-
vertical:
|
|
420
|
+
horizontal: "left",
|
|
421
|
+
vertical: "top"
|
|
422
422
|
},
|
|
423
423
|
offset: {
|
|
424
424
|
top: 0,
|
|
@@ -449,8 +449,8 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
449
449
|
var _useState = useState({
|
|
450
450
|
left: 0,
|
|
451
451
|
top: 0,
|
|
452
|
-
right:
|
|
453
|
-
bottom:
|
|
452
|
+
right: "initial",
|
|
453
|
+
bottom: "initial"
|
|
454
454
|
}),
|
|
455
455
|
position = _useState[0],
|
|
456
456
|
setPosition = _useState[1];
|
|
@@ -458,23 +458,23 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
458
458
|
var _fixPossibleViewportOverflow = function _fixPossibleViewportOverflow(value, transformOrigin, requestedReturnValue, elDimensions) {
|
|
459
459
|
var returnValue = value;
|
|
460
460
|
|
|
461
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
461
|
+
if (transformOrigin[requestedReturnValue] === "left" && returnValue < 0 || transformOrigin[requestedReturnValue] === "top" && returnValue < 0 || transformOrigin[requestedReturnValue] === "center" && returnValue < 0 || transformOrigin[requestedReturnValue] === "bottom" && returnValue < 0) {
|
|
462
462
|
returnValue = 0;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
465
|
+
if (transformOrigin[requestedReturnValue] === "left" && returnValue > window.innerWidth - elDimensions.width || transformOrigin[requestedReturnValue] === "center" && requestedReturnValue === "horizontal" && returnValue > window.innerWidth - elDimensions.width) {
|
|
466
466
|
returnValue = window.innerWidth - elDimensions.width;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
469
|
+
if (transformOrigin[requestedReturnValue] === "top" && returnValue > window.innerHeight - elDimensions.height || transformOrigin[requestedReturnValue] === "center" && requestedReturnValue === "vertical" && returnValue > window.innerHeight - elDimensions.height) {
|
|
470
470
|
returnValue = window.innerHeight - elDimensions.height;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
473
|
+
if (transformOrigin[requestedReturnValue] === "right" && returnValue > window.innerWidth - elDimensions.width) {
|
|
474
474
|
returnValue = window.innerWidth - elDimensions.width;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
477
|
+
if (transformOrigin[requestedReturnValue] === "bottom" && returnValue > window.innerHeight - elDimensions.height) {
|
|
478
478
|
returnValue = window.innerHeight - elDimensions.height;
|
|
479
479
|
}
|
|
480
480
|
|
|
@@ -486,15 +486,15 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
486
486
|
|
|
487
487
|
var returnValue = value;
|
|
488
488
|
|
|
489
|
-
if (requestedReturnValue ===
|
|
490
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
489
|
+
if (requestedReturnValue === "horizontal" && ((_configObject$offset = configObject.offset) == null ? void 0 : _configObject$offset.left) !== 0 || requestedReturnValue === "horizontal" && ((_configObject$offset2 = configObject.offset) == null ? void 0 : _configObject$offset2.right) !== 0) {
|
|
490
|
+
if (transformOrigin[requestedReturnValue] === "left" || transformOrigin[requestedReturnValue] === "center") {
|
|
491
491
|
var _configObject$offset3, _configObject$offset4;
|
|
492
492
|
|
|
493
493
|
returnValue += (_configObject$offset3 = configObject.offset) == null ? void 0 : _configObject$offset3.left;
|
|
494
494
|
returnValue -= (_configObject$offset4 = configObject.offset) == null ? void 0 : _configObject$offset4.right;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
497
|
+
if (transformOrigin[requestedReturnValue] === "right") {
|
|
498
498
|
var _configObject$offset5, _configObject$offset6;
|
|
499
499
|
|
|
500
500
|
returnValue -= (_configObject$offset5 = configObject.offset) == null ? void 0 : _configObject$offset5.left;
|
|
@@ -502,15 +502,15 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
if (requestedReturnValue ===
|
|
506
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
505
|
+
if (requestedReturnValue === "vertical" && ((_configObject$offset7 = configObject.offset) == null ? void 0 : _configObject$offset7.top) !== 0 || requestedReturnValue === "vertical" && ((_configObject$offset8 = configObject.offset) == null ? void 0 : _configObject$offset8.bottom) !== 0) {
|
|
506
|
+
if (transformOrigin[requestedReturnValue] === "top" || transformOrigin[requestedReturnValue] === "center") {
|
|
507
507
|
var _configObject$offset9, _configObject$offset10;
|
|
508
508
|
|
|
509
509
|
returnValue += (_configObject$offset9 = configObject.offset) == null ? void 0 : _configObject$offset9.top;
|
|
510
510
|
returnValue -= (_configObject$offset10 = configObject.offset) == null ? void 0 : _configObject$offset10.bottom;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
513
|
+
if (transformOrigin[requestedReturnValue] === "bottom") {
|
|
514
514
|
var _configObject$offset11, _configObject$offset12;
|
|
515
515
|
|
|
516
516
|
returnValue -= (_configObject$offset11 = configObject.offset) == null ? void 0 : _configObject$offset11.top;
|
|
@@ -524,12 +524,12 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
524
524
|
var _calculateInitialPlacementValue = function _calculateInitialPlacementValue(transformOrigin, requestedReturnValue, relEl, placementOriginDefinition, elDimensions) {
|
|
525
525
|
var value = 0;
|
|
526
526
|
|
|
527
|
-
if (transformOrigin[requestedReturnValue] ===
|
|
527
|
+
if (transformOrigin[requestedReturnValue] === "left" || transformOrigin[requestedReturnValue] === "top") {
|
|
528
528
|
value = relEl[placementOriginDefinition];
|
|
529
|
-
} else if (transformOrigin[requestedReturnValue] ===
|
|
530
|
-
value = relEl[placementOriginDefinition] - elDimensions[requestedReturnValue ===
|
|
531
|
-
} else if (transformOrigin[requestedReturnValue] ===
|
|
532
|
-
value = window[requestedReturnValue ===
|
|
529
|
+
} else if (transformOrigin[requestedReturnValue] === "center") {
|
|
530
|
+
value = relEl[placementOriginDefinition] - elDimensions[requestedReturnValue === "horizontal" ? "width" : "height"] / 2;
|
|
531
|
+
} else if (transformOrigin[requestedReturnValue] === "right" || transformOrigin[requestedReturnValue] === "bottom") {
|
|
532
|
+
value = window[requestedReturnValue === "horizontal" ? "innerWidth" : "innerHeight"] - relEl[placementOriginDefinition];
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
return value;
|
|
@@ -542,17 +542,17 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
542
542
|
|
|
543
543
|
|
|
544
544
|
var _determineCenteredPlacementOrigin = function _determineCenteredPlacementOrigin(requestedReturnValue) {
|
|
545
|
-
if (requestedReturnValue ===
|
|
546
|
-
return
|
|
547
|
-
} else if (requestedReturnValue ===
|
|
548
|
-
return
|
|
545
|
+
if (requestedReturnValue === "horizontal") {
|
|
546
|
+
return "centerh";
|
|
547
|
+
} else if (requestedReturnValue === "vertical") {
|
|
548
|
+
return "centerv";
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
throw new Error("the requested return value isn't \"vertical\" or \"horizontal\" " + requestedReturnValue + " was given.");
|
|
552
552
|
};
|
|
553
553
|
|
|
554
554
|
var _calculatePlacementValue = function _calculatePlacementValue(transformOrigin, placement, requestedReturnValue, relEl, elDimensions) {
|
|
555
|
-
var placementOriginDefinition = placement ===
|
|
555
|
+
var placementOriginDefinition = placement === "center" ? _determineCenteredPlacementOrigin(requestedReturnValue) : placement;
|
|
556
556
|
|
|
557
557
|
var value = _calculateInitialPlacementValue(transformOrigin, requestedReturnValue, relEl, placementOriginDefinition, elDimensions);
|
|
558
558
|
|
|
@@ -568,29 +568,29 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
568
568
|
|
|
569
569
|
var placementValue = _calculatePlacementValue(configObject.transformOrigin, configObject.placement[axis], axis, relEl, elDimensions);
|
|
570
570
|
|
|
571
|
-
var direction =
|
|
572
|
-
var oppositeDirection =
|
|
571
|
+
var direction = "left";
|
|
572
|
+
var oppositeDirection = "right";
|
|
573
573
|
|
|
574
|
-
if (axis ===
|
|
575
|
-
direction =
|
|
576
|
-
oppositeDirection =
|
|
577
|
-
} else if (axis ===
|
|
578
|
-
direction =
|
|
579
|
-
oppositeDirection =
|
|
574
|
+
if (axis === "horizontal" && ((_configObject$transfo = configObject.transformOrigin) == null ? void 0 : _configObject$transfo.horizontal) === "right") {
|
|
575
|
+
direction = "right";
|
|
576
|
+
oppositeDirection = "left";
|
|
577
|
+
} else if (axis === "horizontal") {
|
|
578
|
+
direction = "left";
|
|
579
|
+
oppositeDirection = "right";
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
if (axis ===
|
|
583
|
-
direction =
|
|
584
|
-
oppositeDirection =
|
|
585
|
-
} else if (axis ===
|
|
586
|
-
direction =
|
|
587
|
-
oppositeDirection =
|
|
582
|
+
if (axis === "vertical" && ((_configObject$transfo2 = configObject.transformOrigin) == null ? void 0 : _configObject$transfo2.vertical) === "bottom") {
|
|
583
|
+
direction = "bottom";
|
|
584
|
+
oppositeDirection = "top";
|
|
585
|
+
} else if (axis === "vertical") {
|
|
586
|
+
direction = "top";
|
|
587
|
+
oppositeDirection = "bottom";
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
setPosition(function (prevState) {
|
|
591
591
|
var _extends2;
|
|
592
592
|
|
|
593
|
-
return _extends({}, prevState, (_extends2 = {}, _extends2[direction] = placementValue, _extends2[oppositeDirection] =
|
|
593
|
+
return _extends({}, prevState, (_extends2 = {}, _extends2[direction] = placementValue, _extends2[oppositeDirection] = "initial", _extends2));
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
|
|
@@ -619,9 +619,9 @@ var usePosition = function usePosition(providedConfigObject) {
|
|
|
619
619
|
y: relativeElRect.y
|
|
620
620
|
};
|
|
621
621
|
|
|
622
|
-
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions,
|
|
622
|
+
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions, "horizontal");
|
|
623
623
|
|
|
624
|
-
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions,
|
|
624
|
+
_calculatePlacement(clonedRelEl, elementToBePositionedDimensions, "vertical");
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
return {
|
|
@@ -674,7 +674,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
674
674
|
ref: ref
|
|
675
675
|
}, rest), React.createElement("div", {
|
|
676
676
|
ref: elToBePositioned,
|
|
677
|
-
className: modules_ef8f756f.popover + " " + (className != null ? className :
|
|
677
|
+
className: modules_ef8f756f.popover + " " + (className != null ? className : "") + " " + (show ? modules_ef8f756f.show : ""),
|
|
678
678
|
style: {
|
|
679
679
|
top: top,
|
|
680
680
|
left: left,
|
|
@@ -696,9 +696,9 @@ var useBodyClick = function useBodyClick(checkFunction, callbackFunction, depend
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
useEffect(function () {
|
|
699
|
-
window.addEventListener(
|
|
699
|
+
window.addEventListener("click", bodyClickListener);
|
|
700
700
|
return function () {
|
|
701
|
-
window.removeEventListener(
|
|
701
|
+
window.removeEventListener("click", bodyClickListener);
|
|
702
702
|
};
|
|
703
703
|
}, [dependingStateVariable]);
|
|
704
704
|
};
|
|
@@ -714,8 +714,8 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
714
714
|
onClose = _ref.onClose,
|
|
715
715
|
_ref$placement = _ref.placement,
|
|
716
716
|
placement = _ref$placement === void 0 ? {
|
|
717
|
-
horizontal:
|
|
718
|
-
vertical:
|
|
717
|
+
horizontal: "right",
|
|
718
|
+
vertical: "top"
|
|
719
719
|
} : _ref$placement,
|
|
720
720
|
_ref$offset = _ref.offset,
|
|
721
721
|
offset = _ref$offset === void 0 ? {
|
|
@@ -726,8 +726,8 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
726
726
|
} : _ref$offset,
|
|
727
727
|
_ref$transformOrigin = _ref.transformOrigin,
|
|
728
728
|
transformOrigin = _ref$transformOrigin === void 0 ? {
|
|
729
|
-
horizontal:
|
|
730
|
-
vertical:
|
|
729
|
+
horizontal: "left",
|
|
730
|
+
vertical: "top"
|
|
731
731
|
} : _ref$transformOrigin,
|
|
732
732
|
_ref$domRoot = _ref.domRoot,
|
|
733
733
|
domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
|
|
@@ -739,25 +739,29 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
739
739
|
showContextMenu = _useState[0],
|
|
740
740
|
setShowContextMenu = _useState[1];
|
|
741
741
|
|
|
742
|
-
var _useState2 = useState(
|
|
743
|
-
|
|
744
|
-
|
|
742
|
+
var _useState2 = useState(false),
|
|
743
|
+
hasBeenClosed = _useState2[0],
|
|
744
|
+
setHasBeenClosed = _useState2[1];
|
|
745
745
|
|
|
746
746
|
var _useState3 = useState(-1),
|
|
747
|
-
|
|
748
|
-
|
|
747
|
+
selectedContextMenuItem = _useState3[0],
|
|
748
|
+
setSelectedContextMenuItem = _useState3[1];
|
|
749
749
|
|
|
750
|
-
var _useState4 = useState(
|
|
751
|
-
|
|
752
|
-
|
|
750
|
+
var _useState4 = useState(-1),
|
|
751
|
+
focusedContextMenuItem = _useState4[0],
|
|
752
|
+
setFocusedContextMenuItem = _useState4[1];
|
|
753
|
+
|
|
754
|
+
var _useState5 = useState(false),
|
|
755
|
+
shouldClick = _useState5[0],
|
|
756
|
+
setShouldClick = _useState5[1];
|
|
753
757
|
/** We need this, because whenever we use the arrow keys to select the contextmenu item, and we focus the currently selected item it fires the "click" listener in ContextMenuItem component. Instead, we only want this to fire if we press "enter" or "spacebar" so we set this to true whenever that is the case, and back to false when it has been executed. */
|
|
754
758
|
|
|
755
759
|
|
|
756
|
-
var
|
|
757
|
-
childrenCount =
|
|
760
|
+
var _useState6 = useState(React.Children.count(children)),
|
|
761
|
+
childrenCount = _useState6[0];
|
|
758
762
|
|
|
759
763
|
if (!id) {
|
|
760
|
-
throw new Error(
|
|
764
|
+
throw new Error("You need to provide an ID to the context menu");
|
|
761
765
|
}
|
|
762
766
|
|
|
763
767
|
var onArrowNavigation = function onArrowNavigation(event) {
|
|
@@ -765,14 +769,14 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
765
769
|
setFocusedContextMenuItem(selectedContextMenuItem);
|
|
766
770
|
}
|
|
767
771
|
|
|
768
|
-
var codesToPrevenDefault = [
|
|
772
|
+
var codesToPrevenDefault = ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "Enter", "Space", "Escape", "End", "Home"];
|
|
769
773
|
|
|
770
774
|
if (codesToPrevenDefault.includes(event.code)) {
|
|
771
775
|
event.preventDefault();
|
|
772
776
|
}
|
|
773
777
|
|
|
774
778
|
switch (event.code) {
|
|
775
|
-
case
|
|
779
|
+
case "ArrowDown":
|
|
776
780
|
if (!showContextMenu) {
|
|
777
781
|
setShowContextMenu(true);
|
|
778
782
|
return;
|
|
@@ -783,14 +787,14 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
783
787
|
});
|
|
784
788
|
return;
|
|
785
789
|
|
|
786
|
-
case
|
|
790
|
+
case "ArrowUp":
|
|
787
791
|
setFocusedContextMenuItem(function (prevState) {
|
|
788
792
|
return prevState - 1 < 0 ? childrenCount - 1 : prevState - 1;
|
|
789
793
|
});
|
|
790
794
|
return;
|
|
791
795
|
|
|
792
|
-
case
|
|
793
|
-
case
|
|
796
|
+
case "Enter":
|
|
797
|
+
case "Space":
|
|
794
798
|
if (!showContextMenu) {
|
|
795
799
|
setShowContextMenu(true);
|
|
796
800
|
return;
|
|
@@ -801,16 +805,16 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
801
805
|
setShowContextMenu(false);
|
|
802
806
|
return;
|
|
803
807
|
|
|
804
|
-
case
|
|
805
|
-
case
|
|
808
|
+
case "Tab":
|
|
809
|
+
case "Escape":
|
|
806
810
|
setShowContextMenu(false);
|
|
807
811
|
return;
|
|
808
812
|
|
|
809
|
-
case
|
|
813
|
+
case "End":
|
|
810
814
|
setFocusedContextMenuItem(childrenCount - 1);
|
|
811
815
|
return;
|
|
812
816
|
|
|
813
|
-
case
|
|
817
|
+
case "Home":
|
|
814
818
|
setFocusedContextMenuItem(0);
|
|
815
819
|
return;
|
|
816
820
|
}
|
|
@@ -826,17 +830,18 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
826
830
|
onShow && onShow();
|
|
827
831
|
} else {
|
|
828
832
|
onClose && onClose();
|
|
833
|
+
!hasBeenClosed && setHasBeenClosed(true);
|
|
829
834
|
setFocusedContextMenuItem(-1);
|
|
830
|
-
anchorEl.current && anchorEl.current.focus();
|
|
835
|
+
hasBeenClosed && anchorEl.current && anchorEl.current.focus();
|
|
831
836
|
}
|
|
832
837
|
}, [showContextMenu]);
|
|
833
838
|
|
|
834
839
|
var renderTrigger = function renderTrigger() {
|
|
835
840
|
return React.cloneElement(trigger, {
|
|
836
841
|
id: id,
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
842
|
+
"aria-haspopup": "true",
|
|
843
|
+
"aria-controls": id + "-menu",
|
|
844
|
+
"aria-expanded": showContextMenu,
|
|
840
845
|
onClick: function onClick() {
|
|
841
846
|
return setShowContextMenu(!showContextMenu);
|
|
842
847
|
},
|
|
@@ -867,7 +872,7 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
867
872
|
return React.createElement("div", _extends({}, rest, {
|
|
868
873
|
ref: ref,
|
|
869
874
|
onKeyDown: onArrowNavigation,
|
|
870
|
-
className: modules_846e6042[
|
|
875
|
+
className: modules_846e6042["context-menu"]
|
|
871
876
|
}), renderTrigger(), createPortal(React.createElement(Popover, {
|
|
872
877
|
placement: placement,
|
|
873
878
|
transformOrigin: transformOrigin,
|
|
@@ -875,7 +880,7 @@ var ContextMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
875
880
|
anchorEl: anchorEl,
|
|
876
881
|
show: showContextMenu
|
|
877
882
|
}, React.createElement("ul", {
|
|
878
|
-
className: modules_846e6042[
|
|
883
|
+
className: modules_846e6042["menu"],
|
|
879
884
|
id: id + "-menu",
|
|
880
885
|
"aria-describedby": id,
|
|
881
886
|
role: "menu"
|
|
@@ -913,7 +918,7 @@ var ContextMenuItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
913
918
|
}, [hasFocus, innerButtonRef, contextMenuOpened]);
|
|
914
919
|
return React.createElement("li", {
|
|
915
920
|
role: "menuitem",
|
|
916
|
-
className: modules_3e93850e[
|
|
921
|
+
className: modules_3e93850e["context-menu-item"]
|
|
917
922
|
}, React.createElement("button", _extends({}, rest, {
|
|
918
923
|
ref: innerButtonRef,
|
|
919
924
|
"data-focus": hasFocus,
|
|
@@ -936,13 +941,13 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
936
941
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
937
942
|
to = _ref.to,
|
|
938
943
|
_ref$color = _ref.color,
|
|
939
|
-
color = _ref$color === void 0 ?
|
|
944
|
+
color = _ref$color === void 0 ? "primary" : _ref$color,
|
|
940
945
|
_ref$type = _ref.type,
|
|
941
|
-
type = _ref$type === void 0 ?
|
|
946
|
+
type = _ref$type === void 0 ? "internal" : _ref$type,
|
|
942
947
|
_ref$display = _ref.display,
|
|
943
|
-
display = _ref$display === void 0 ?
|
|
948
|
+
display = _ref$display === void 0 ? "link" : _ref$display,
|
|
944
949
|
_ref$buttonVariant = _ref.buttonVariant,
|
|
945
|
-
buttonVariant = _ref$buttonVariant === void 0 ?
|
|
950
|
+
buttonVariant = _ref$buttonVariant === void 0 ? "fill" : _ref$buttonVariant,
|
|
946
951
|
component = _ref.component,
|
|
947
952
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
948
953
|
|
|
@@ -951,25 +956,25 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
951
956
|
return rest.target;
|
|
952
957
|
}
|
|
953
958
|
|
|
954
|
-
if (type ===
|
|
955
|
-
return
|
|
959
|
+
if (type === "external") {
|
|
960
|
+
return "_blank";
|
|
956
961
|
}
|
|
957
962
|
|
|
958
|
-
return
|
|
963
|
+
return "";
|
|
959
964
|
};
|
|
960
965
|
|
|
961
966
|
var classNames = [modules_e20967e9[color]];
|
|
962
|
-
display ===
|
|
963
|
-
display ===
|
|
964
|
-
disabled && classNames.push(modules_e20967e9[
|
|
967
|
+
display === "link" && classNames.push(modules_e20967e9["link"]);
|
|
968
|
+
display === "button" && classNames.push(modules_e20967e9["button"], modules_e20967e9[buttonVariant]);
|
|
969
|
+
disabled && classNames.push(modules_e20967e9["disabled"]);
|
|
965
970
|
className && classNames.push(className);
|
|
966
971
|
|
|
967
972
|
if (component) {
|
|
968
973
|
return React.createElement(component, _extends({}, rest, {
|
|
969
974
|
ref: ref,
|
|
970
975
|
to: to,
|
|
971
|
-
className: classNames.join(
|
|
972
|
-
|
|
976
|
+
className: classNames.join(" "),
|
|
977
|
+
"aria-disabled": disabled,
|
|
973
978
|
style: _extends({}, rest.style),
|
|
974
979
|
children: children
|
|
975
980
|
}));
|
|
@@ -977,10 +982,10 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
977
982
|
|
|
978
983
|
return React.createElement("a", _extends({}, rest, {
|
|
979
984
|
ref: ref,
|
|
980
|
-
download: type ===
|
|
981
|
-
rel: type ===
|
|
985
|
+
download: type === "download",
|
|
986
|
+
rel: type === "external" ? "noopener noreferer" : undefined,
|
|
982
987
|
href: !disabled ? to : undefined,
|
|
983
|
-
className: classNames.join(
|
|
988
|
+
className: classNames.join(" "),
|
|
984
989
|
"aria-disabled": disabled,
|
|
985
990
|
target: determineTarget(),
|
|
986
991
|
style: _extends({}, rest.style)
|
|
@@ -999,11 +1004,11 @@ var _excluded$P = ["children", "color", "variant", "iconSize", "title", "classNa
|
|
|
999
1004
|
var IconButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1000
1005
|
var children = _ref.children,
|
|
1001
1006
|
_ref$color = _ref.color,
|
|
1002
|
-
color = _ref$color === void 0 ?
|
|
1007
|
+
color = _ref$color === void 0 ? "primary" : _ref$color,
|
|
1003
1008
|
_ref$variant = _ref.variant,
|
|
1004
|
-
variant = _ref$variant === void 0 ?
|
|
1009
|
+
variant = _ref$variant === void 0 ? "text" : _ref$variant,
|
|
1005
1010
|
_ref$iconSize = _ref.iconSize,
|
|
1006
|
-
iconSize = _ref$iconSize === void 0 ?
|
|
1011
|
+
iconSize = _ref$iconSize === void 0 ? "m" : _ref$iconSize,
|
|
1007
1012
|
title = _ref.title,
|
|
1008
1013
|
className = _ref.className,
|
|
1009
1014
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
@@ -1012,7 +1017,7 @@ var IconButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1012
1017
|
console.error("Please make sure to specify a 'title' prop to your IconButton component! ");
|
|
1013
1018
|
}
|
|
1014
1019
|
|
|
1015
|
-
var iconButtonClasses = [modules_f7edfa2f[
|
|
1020
|
+
var iconButtonClasses = [modules_f7edfa2f["icon-button"], modules_f7edfa2f[variant], modules_f7edfa2f[color], modules_f7edfa2f["button-" + iconSize]];
|
|
1016
1021
|
|
|
1017
1022
|
if (className) {
|
|
1018
1023
|
iconButtonClasses.push(className);
|
|
@@ -1020,9 +1025,9 @@ var IconButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1020
1025
|
|
|
1021
1026
|
return React.createElement(BaseButton, _extends({}, rest, {
|
|
1022
1027
|
ref: ref,
|
|
1023
|
-
className: iconButtonClasses.join(
|
|
1028
|
+
className: iconButtonClasses.join(" ")
|
|
1024
1029
|
}), React.createElement(Fragment, null, children, React.createElement("span", {
|
|
1025
|
-
className: modules_35a251a6[
|
|
1030
|
+
className: modules_35a251a6["sr-only"]
|
|
1026
1031
|
}, title)));
|
|
1027
1032
|
});
|
|
1028
1033
|
|
|
@@ -1036,12 +1041,12 @@ var generateID = function generateID(length, stringToWeaveIn) {
|
|
|
1036
1041
|
}
|
|
1037
1042
|
|
|
1038
1043
|
/** We will make sure to mesh the generate id and name property together to basically create a unique ID */
|
|
1039
|
-
var hashCharacters = [
|
|
1040
|
-
var id =
|
|
1044
|
+
var hashCharacters = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
|
|
1045
|
+
var id = "";
|
|
1041
1046
|
/** Generate an id of x characters in length */
|
|
1042
1047
|
|
|
1043
1048
|
for (var i = 0; i < length && id.length < length; i++) {
|
|
1044
|
-
var stringCharacter = stringToWeaveIn && stringToWeaveIn[i] !== undefined && !/\s/.test(stringToWeaveIn[i]) ? stringToWeaveIn[i] :
|
|
1049
|
+
var stringCharacter = stringToWeaveIn && stringToWeaveIn[i] !== undefined && !/\s/.test(stringToWeaveIn[i]) ? stringToWeaveIn[i] : "";
|
|
1045
1050
|
id = id + stringCharacter + hashCharacters[Math.floor(Math.random() * hashCharacters.length)];
|
|
1046
1051
|
}
|
|
1047
1052
|
|
|
@@ -1094,14 +1099,14 @@ var TabButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1094
1099
|
ref.current.focus();
|
|
1095
1100
|
}
|
|
1096
1101
|
}, [focussed]);
|
|
1097
|
-
var classNames = [modules_1ddb33b5[
|
|
1098
|
-
selected && classNames.push(modules_1ddb33b5[
|
|
1099
|
-
focussed && !selected && classNames.push(modules_1ddb33b5[
|
|
1102
|
+
var classNames = [modules_1ddb33b5["tabbutton"]];
|
|
1103
|
+
selected && classNames.push(modules_1ddb33b5["selected"]);
|
|
1104
|
+
focussed && !selected && classNames.push(modules_1ddb33b5["focussed"]);
|
|
1100
1105
|
className && classNames.push(className);
|
|
1101
1106
|
return React.createElement("button", _extends({}, rest, {
|
|
1102
1107
|
"aria-selected": selected,
|
|
1103
1108
|
key: tabId,
|
|
1104
|
-
className: classNames.join(
|
|
1109
|
+
className: classNames.join(" "),
|
|
1105
1110
|
ref: ref,
|
|
1106
1111
|
role: "tab",
|
|
1107
1112
|
tabIndex: selected ? 0 : -1,
|
|
@@ -1131,7 +1136,7 @@ var TabPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1131
1136
|
return React.createElement("div", _extends({}, rest, {
|
|
1132
1137
|
ref: ref,
|
|
1133
1138
|
"aria-labelledby": tabId,
|
|
1134
|
-
className: modules_06ac598d[
|
|
1139
|
+
className: modules_06ac598d["tabpanel"] + " " + (selected ? modules_06ac598d["selected"] : "") + " " + (className != null ? className : ""),
|
|
1135
1140
|
id: tabPanelId,
|
|
1136
1141
|
role: "tabpanel",
|
|
1137
1142
|
tabIndex: 0,
|
|
@@ -1149,7 +1154,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
1149
1154
|
var children = _ref.children,
|
|
1150
1155
|
_ref$selected = _ref.selected,
|
|
1151
1156
|
selected = _ref$selected === void 0 ? 0 : _ref$selected,
|
|
1152
|
-
ariaLabel = _ref[
|
|
1157
|
+
ariaLabel = _ref["aria-label"],
|
|
1153
1158
|
onTabChange = _ref.onTabChange,
|
|
1154
1159
|
className = _ref.className,
|
|
1155
1160
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
@@ -1212,24 +1217,24 @@ var Tabs = function Tabs(_ref) {
|
|
|
1212
1217
|
var currentFocussedTab = focussedTab === -1 ? selectedTab : focussedTab;
|
|
1213
1218
|
|
|
1214
1219
|
switch (e.code) {
|
|
1215
|
-
case
|
|
1220
|
+
case "ArrowLeft":
|
|
1216
1221
|
setFocussedTab(currentFocussedTab === min ? max : currentFocussedTab - 1);
|
|
1217
1222
|
break;
|
|
1218
1223
|
|
|
1219
|
-
case
|
|
1224
|
+
case "ArrowRight":
|
|
1220
1225
|
setFocussedTab(currentFocussedTab === max ? min : currentFocussedTab + 1);
|
|
1221
1226
|
break;
|
|
1222
1227
|
|
|
1223
|
-
case
|
|
1228
|
+
case "Home":
|
|
1224
1229
|
setFocussedTab(min);
|
|
1225
1230
|
break;
|
|
1226
1231
|
|
|
1227
|
-
case
|
|
1232
|
+
case "End":
|
|
1228
1233
|
setFocussedTab(max);
|
|
1229
1234
|
break;
|
|
1230
1235
|
|
|
1231
|
-
case
|
|
1232
|
-
case
|
|
1236
|
+
case "Space":
|
|
1237
|
+
case "Enter":
|
|
1233
1238
|
activateTab(currentFocussedTab);
|
|
1234
1239
|
break;
|
|
1235
1240
|
}
|
|
@@ -1270,17 +1275,17 @@ var Tabs = function Tabs(_ref) {
|
|
|
1270
1275
|
});
|
|
1271
1276
|
});
|
|
1272
1277
|
return React.createElement("div", _extends({}, rest, {
|
|
1273
|
-
className: modules_d0cc66ee[
|
|
1278
|
+
className: modules_d0cc66ee["tabs"] + " " + (className != null ? className : "")
|
|
1274
1279
|
}), React.createElement("div", {
|
|
1275
1280
|
role: "tablist",
|
|
1276
1281
|
onKeyDown: handleKeyDown,
|
|
1277
1282
|
onBlur: handleBlur,
|
|
1278
1283
|
"aria-label": ariaLabel,
|
|
1279
|
-
className: modules_d0cc66ee[
|
|
1284
|
+
className: modules_d0cc66ee["tablist"]
|
|
1280
1285
|
}, React.createElement("div", {
|
|
1281
|
-
className: modules_d0cc66ee[
|
|
1286
|
+
className: modules_d0cc66ee["tabdivider"]
|
|
1282
1287
|
}), tabButtons, React.createElement("div", {
|
|
1283
|
-
className: modules_d0cc66ee[
|
|
1288
|
+
className: modules_d0cc66ee["indicator"],
|
|
1284
1289
|
ref: indicatorRef,
|
|
1285
1290
|
"aria-hidden": "true",
|
|
1286
1291
|
tabIndex: -1,
|
|
@@ -1288,7 +1293,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
1288
1293
|
width: indicatorWidth
|
|
1289
1294
|
}, indicatorPosition)
|
|
1290
1295
|
})), React.createElement("div", {
|
|
1291
|
-
className: modules_d0cc66ee[
|
|
1296
|
+
className: modules_d0cc66ee["tabpanels"]
|
|
1292
1297
|
}, tabPanels));
|
|
1293
1298
|
};
|
|
1294
1299
|
|
|
@@ -1328,7 +1333,7 @@ var TextEllipsis = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1328
1333
|
return React.createElement("div", _extends({}, rest, {
|
|
1329
1334
|
onMouseEnter: onMouseEnter,
|
|
1330
1335
|
onMouseLeave: onMouseLeave,
|
|
1331
|
-
className: modules_46535846[
|
|
1336
|
+
className: modules_46535846["text-ellipsis"] + " " + (className != null ? className : ""),
|
|
1332
1337
|
ref: ref || textContainer
|
|
1333
1338
|
}), children, React.createElement(Popover, {
|
|
1334
1339
|
"aria-hidden": true,
|
|
@@ -1336,7 +1341,7 @@ var TextEllipsis = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1336
1341
|
show: showPopover,
|
|
1337
1342
|
role: "tooltip",
|
|
1338
1343
|
anchorEl: textContainer,
|
|
1339
|
-
className: modules_46535846.popover + " " + (popoverClassName != null ? popoverClassName :
|
|
1344
|
+
className: modules_46535846.popover + " " + (popoverClassName != null ? popoverClassName : "")
|
|
1340
1345
|
}, children));
|
|
1341
1346
|
});
|
|
1342
1347
|
|
|
@@ -1358,48 +1363,48 @@ var Tile = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1358
1363
|
tileDescriptionID = _useState[0];
|
|
1359
1364
|
|
|
1360
1365
|
if (!title) {
|
|
1361
|
-
throw new Error(
|
|
1366
|
+
throw new Error("Please make sure to pass a title prop to your Tile component.");
|
|
1362
1367
|
}
|
|
1363
1368
|
|
|
1364
1369
|
var statusMessage = function statusMessage() {
|
|
1365
1370
|
if (enabled) {
|
|
1366
|
-
return
|
|
1371
|
+
return "Status: enabled";
|
|
1367
1372
|
}
|
|
1368
1373
|
|
|
1369
|
-
return
|
|
1374
|
+
return "Status: disabled";
|
|
1370
1375
|
};
|
|
1371
1376
|
|
|
1372
1377
|
return React.createElement("article", _extends({}, rest, {
|
|
1373
1378
|
tabIndex: 0,
|
|
1374
1379
|
"aria-labelledby": tileDescriptionID,
|
|
1375
1380
|
ref: ref,
|
|
1376
|
-
className: modules_5f01ab30[
|
|
1381
|
+
className: modules_5f01ab30["tile"] + " " + (loading ? modules_5f01ab30["loading"] : "")
|
|
1377
1382
|
}), React.createElement("header", {
|
|
1378
1383
|
style: {
|
|
1379
|
-
justifyContent: enabled === undefined ?
|
|
1384
|
+
justifyContent: enabled === undefined ? "flex-end" : "space-between"
|
|
1380
1385
|
}
|
|
1381
1386
|
}, enabled === true && React.createElement(Icon, {
|
|
1382
1387
|
color: "var(--success)",
|
|
1383
1388
|
icon: Icons.Checkmark,
|
|
1384
|
-
className: modules_5f01ab30[
|
|
1389
|
+
className: modules_5f01ab30["icon"] + " " + (className != null ? className : "")
|
|
1385
1390
|
}), enabled === false && React.createElement(Icon, {
|
|
1386
1391
|
color: "var(--greyed-out)",
|
|
1387
1392
|
icon: Icons.Forbidden,
|
|
1388
|
-
className: modules_5f01ab30[
|
|
1393
|
+
className: modules_5f01ab30["icon"] + " " + (className != null ? className : "")
|
|
1389
1394
|
}), enabled !== undefined && React.createElement("span", {
|
|
1390
1395
|
id: tileDescriptionID,
|
|
1391
|
-
className: modules_35a251a6[
|
|
1396
|
+
className: modules_35a251a6["sr-only"]
|
|
1392
1397
|
}, title + ". " + statusMessage()), tileAction != null ? tileAction : null), React.createElement("div", {
|
|
1393
|
-
className: modules_5f01ab30[
|
|
1398
|
+
className: modules_5f01ab30["content"]
|
|
1394
1399
|
}, imageProps && imageProps.src.length > 0 && React.createElement("figure", {
|
|
1395
|
-
className: modules_5f01ab30[
|
|
1400
|
+
className: modules_5f01ab30["image"]
|
|
1396
1401
|
}, !loading && React.createElement("img", _extends({}, imageProps, {
|
|
1397
1402
|
alt: ""
|
|
1398
1403
|
}))), (!imageProps || imageProps.src.length === 0) && React.createElement(Icon, {
|
|
1399
|
-
className: modules_5f01ab30[
|
|
1404
|
+
className: modules_5f01ab30["placeholder"],
|
|
1400
1405
|
icon: Icons.Image
|
|
1401
1406
|
}), React.createElement("span", {
|
|
1402
|
-
className: modules_5f01ab30[
|
|
1407
|
+
className: modules_5f01ab30["title"]
|
|
1403
1408
|
}, title)));
|
|
1404
1409
|
});
|
|
1405
1410
|
|
|
@@ -1421,21 +1426,21 @@ var Tiles = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1421
1426
|
key: "placeholder1",
|
|
1422
1427
|
title: "placeholder",
|
|
1423
1428
|
imageProps: {
|
|
1424
|
-
src:
|
|
1429
|
+
src: "placeholder"
|
|
1425
1430
|
},
|
|
1426
1431
|
loading: true
|
|
1427
1432
|
}), React.createElement(Tile, {
|
|
1428
1433
|
key: "placeholder2",
|
|
1429
1434
|
title: "placeholder",
|
|
1430
1435
|
imageProps: {
|
|
1431
|
-
src:
|
|
1436
|
+
src: "placeholder"
|
|
1432
1437
|
},
|
|
1433
1438
|
loading: true
|
|
1434
1439
|
}), React.createElement(Tile, {
|
|
1435
1440
|
key: "placeholder3",
|
|
1436
1441
|
title: "placeholder",
|
|
1437
1442
|
imageProps: {
|
|
1438
|
-
src:
|
|
1443
|
+
src: "placeholder"
|
|
1439
1444
|
},
|
|
1440
1445
|
loading: true
|
|
1441
1446
|
})];
|
|
@@ -1446,7 +1451,7 @@ var Tiles = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1446
1451
|
|
|
1447
1452
|
return React.createElement("div", _extends({}, rest, {
|
|
1448
1453
|
ref: ref,
|
|
1449
|
-
className: modules_7b7db5f7[
|
|
1454
|
+
className: modules_7b7db5f7["tiles"] + " " + (className != null ? className : ""),
|
|
1450
1455
|
"aria-live": "polite",
|
|
1451
1456
|
"aria-busy": loading
|
|
1452
1457
|
}), renderChildren());
|
|
@@ -1459,8 +1464,8 @@ n(css$F,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
|
1459
1464
|
var _excluded$I = ["children", "className", "placement", "offset", "transformOrigin", "domRoot", "label"];
|
|
1460
1465
|
var defaultPosition = {
|
|
1461
1466
|
placement: {
|
|
1462
|
-
horizontal:
|
|
1463
|
-
vertical:
|
|
1467
|
+
horizontal: "right",
|
|
1468
|
+
vertical: "center"
|
|
1464
1469
|
},
|
|
1465
1470
|
offset: {
|
|
1466
1471
|
left: 16,
|
|
@@ -1469,8 +1474,8 @@ var defaultPosition = {
|
|
|
1469
1474
|
bottom: 0
|
|
1470
1475
|
},
|
|
1471
1476
|
transformOrigin: {
|
|
1472
|
-
horizontal:
|
|
1473
|
-
vertical:
|
|
1477
|
+
horizontal: "left",
|
|
1478
|
+
vertical: "center"
|
|
1474
1479
|
}
|
|
1475
1480
|
};
|
|
1476
1481
|
var Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -1514,14 +1519,14 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1514
1519
|
if (!visible) return;
|
|
1515
1520
|
|
|
1516
1521
|
function escapePressHandler(event) {
|
|
1517
|
-
if (event.key ===
|
|
1522
|
+
if (event.key === "Escape") {
|
|
1518
1523
|
setVisible(false);
|
|
1519
1524
|
}
|
|
1520
1525
|
}
|
|
1521
1526
|
|
|
1522
|
-
document.addEventListener(
|
|
1527
|
+
document.addEventListener("keyup", escapePressHandler);
|
|
1523
1528
|
return function () {
|
|
1524
|
-
document.removeEventListener(
|
|
1529
|
+
document.removeEventListener("keyup", escapePressHandler);
|
|
1525
1530
|
};
|
|
1526
1531
|
}, [visible]);
|
|
1527
1532
|
useLayoutEffect(function () {
|
|
@@ -1537,14 +1542,14 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1537
1542
|
onBlur: function onBlur() {
|
|
1538
1543
|
return setVisible(false);
|
|
1539
1544
|
},
|
|
1540
|
-
|
|
1545
|
+
"aria-describedby": identifier,
|
|
1541
1546
|
tabIndex: 0,
|
|
1542
|
-
className: modules_16974fb0[
|
|
1547
|
+
className: modules_16974fb0["label"]
|
|
1543
1548
|
});
|
|
1544
1549
|
}
|
|
1545
1550
|
|
|
1546
1551
|
return React.createElement("span", {
|
|
1547
|
-
className: modules_16974fb0[
|
|
1552
|
+
className: modules_16974fb0["label"],
|
|
1548
1553
|
tabIndex: 0,
|
|
1549
1554
|
onFocus: function onFocus() {
|
|
1550
1555
|
return setVisible(true);
|
|
@@ -1558,9 +1563,9 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1558
1563
|
|
|
1559
1564
|
return React.createElement("div", _extends({}, rest, {
|
|
1560
1565
|
ref: ref,
|
|
1561
|
-
className: modules_16974fb0.wrapper + " " + (className != null ? className :
|
|
1566
|
+
className: modules_16974fb0.wrapper + " " + (className != null ? className : "")
|
|
1562
1567
|
}), renderChildren(), React.createElement("div", {
|
|
1563
|
-
className: "" + modules_16974fb0[
|
|
1568
|
+
className: "" + modules_16974fb0["tooltip-wrapper"]
|
|
1564
1569
|
}, React.createElement(Icon, {
|
|
1565
1570
|
ref: relativeElement,
|
|
1566
1571
|
tag: "div",
|
|
@@ -1582,7 +1587,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1582
1587
|
}),
|
|
1583
1588
|
"aria-hidden": !visible,
|
|
1584
1589
|
id: identifier,
|
|
1585
|
-
className: modules_16974fb0.tooltip + " " + (visible ? modules_16974fb0.visible :
|
|
1590
|
+
className: modules_16974fb0.tooltip + " " + (visible ? modules_16974fb0.visible : "")
|
|
1586
1591
|
}, children), domRoot)));
|
|
1587
1592
|
});
|
|
1588
1593
|
|
|
@@ -1593,17 +1598,17 @@ n(css$E,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
|
1593
1598
|
var _excluded$H = ["variant", "height", "width", "className", "style"];
|
|
1594
1599
|
var Skeleton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1595
1600
|
var _ref$variant = _ref.variant,
|
|
1596
|
-
variant = _ref$variant === void 0 ?
|
|
1601
|
+
variant = _ref$variant === void 0 ? "text" : _ref$variant,
|
|
1597
1602
|
height = _ref.height,
|
|
1598
1603
|
width = _ref.width,
|
|
1599
1604
|
className = _ref.className,
|
|
1600
1605
|
style = _ref.style,
|
|
1601
1606
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
1602
1607
|
|
|
1603
|
-
var classNames = [modules_1fe82d8f[
|
|
1604
|
-
!height && classNames.push(modules_1fe82d8f[
|
|
1605
|
-
variant ===
|
|
1606
|
-
variant ===
|
|
1608
|
+
var classNames = [modules_1fe82d8f["skeleton"]];
|
|
1609
|
+
!height && classNames.push(modules_1fe82d8f["no-height"]);
|
|
1610
|
+
variant === "text" && classNames.push(modules_1fe82d8f["text"]);
|
|
1611
|
+
variant === "circular" && classNames.push(modules_1fe82d8f["circular"]);
|
|
1607
1612
|
className && classNames.push(className);
|
|
1608
1613
|
return React.createElement("span", _extends({}, rest, {
|
|
1609
1614
|
"aria-busy": "true",
|
|
@@ -1613,7 +1618,7 @@ var Skeleton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1613
1618
|
width: width,
|
|
1614
1619
|
height: height
|
|
1615
1620
|
}),
|
|
1616
|
-
className: classNames.join(
|
|
1621
|
+
className: classNames.join(" ")
|
|
1617
1622
|
}));
|
|
1618
1623
|
});
|
|
1619
1624
|
|
|
@@ -1632,29 +1637,78 @@ var StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1632
1637
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
1633
1638
|
|
|
1634
1639
|
return React.createElement("div", _extends({}, rest, {
|
|
1635
|
-
className: modules_372cb0bf[
|
|
1640
|
+
className: modules_372cb0bf["status-indicator"],
|
|
1636
1641
|
ref: ref
|
|
1637
1642
|
}), React.createElement("div", {
|
|
1638
|
-
className: modules_372cb0bf[
|
|
1643
|
+
className: modules_372cb0bf["status-badge"] + " " + modules_372cb0bf[status] + " " + ((_badgeProps$className = badgeProps == null ? void 0 : badgeProps.className) != null ? _badgeProps$className : "")
|
|
1639
1644
|
}), React.createElement(Typography, _extends({}, typographyProps, {
|
|
1640
1645
|
spacing: {
|
|
1641
|
-
margin:
|
|
1646
|
+
margin: "0"
|
|
1642
1647
|
},
|
|
1643
1648
|
variant: "body",
|
|
1644
1649
|
tag: "div"
|
|
1645
1650
|
}), (typographyProps == null ? void 0 : typographyProps.children) || children));
|
|
1646
1651
|
});
|
|
1647
1652
|
|
|
1648
|
-
var css$C = ".
|
|
1649
|
-
var modules_e3c5bce1 = {"pagination-wrapper":"
|
|
1653
|
+
var css$C = ".Pagination_module_paginationWrapper__fb0017ac {\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--greyed-out);\n display: flex;\n flex-direction: column;\n}\n.Pagination_module_paginationWrapper__fb0017ac label {\n margin-bottom: 0;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_formElement__fb0017ac {\n height: 2.5rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_formElement__fb0017ac button {\n min-height: 2.5rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_total__fb0017ac {\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_total__fb0017ac span > span {\n font-weight: 700;\n font-family: var(--font-family);\n font-size: var(--font-size);\n margin-left: 0.25rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac {\n flex: 1 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 1rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_previous__fb0017ac,\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_next__fb0017ac {\n display: flex;\n align-items: center;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_previous__fb0017ac button,\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_next__fb0017ac button {\n margin: 0.25rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_previous__fb0017ac button span:before,\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_next__fb0017ac button span:before {\n font-size: 0.75rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_perPage__fb0017ac {\n display: none;\n align-items: center;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_page__fb0017ac {\n display: flex;\n align-items: center;\n flex-basis: min-content;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pageSizeSelect__fb0017ac {\n border-color: #fff;\n margin: 0 0.25rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pageSizeSelect__fb0017ac button {\n min-width: 3.4375rem;\n padding: 0;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pageSizeSelect__fb0017ac button div[data-display] {\n left: 0.5rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pageSizeSelect__fb0017ac button div:not([data-display]) {\n right: 0.5rem;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_currentValueInput__fb0017ac {\n margin: 0 0.25rem 0 0;\n padding: 0;\n height: auto;\n}\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_currentValueInput__fb0017ac input {\n border-radius: var(--input-border-radius);\n padding: 0 1rem;\n width: auto;\n text-align: center;\n}\n\n@media screen and (min-width: 30em) {\n .Pagination_module_paginationWrapper__fb0017ac {\n flex-direction: row;\n }\n .Pagination_module_paginationWrapper__fb0017ac .Pagination_module_total__fb0017ac {\n justify-content: flex-start;\n }\n .Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac {\n margin-top: 0;\n justify-content: flex-end;\n }\n .Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_previous__fb0017ac button,\n.Pagination_module_paginationWrapper__fb0017ac .Pagination_module_pagination__fb0017ac .Pagination_module_next__fb0017ac button {\n margin: 0 0.5rem;\n }\n}\n@media screen and (min-width: 48em) {\n .Pagination_module_paginationWrapper__fb0017ac .Pagination_module_perPage__fb0017ac {\n display: flex;\n margin-right: 0.5rem;\n }\n}";
|
|
1654
|
+
var modules_e3c5bce1 = {"pagination-wrapper":"Pagination_module_paginationWrapper__fb0017ac","form-element":"Pagination_module_formElement__fb0017ac","total":"Pagination_module_total__fb0017ac","pagination":"Pagination_module_pagination__fb0017ac","previous":"Pagination_module_previous__fb0017ac","next":"Pagination_module_next__fb0017ac","per-page":"Pagination_module_perPage__fb0017ac","page":"Pagination_module_page__fb0017ac","page-size-select":"Pagination_module_pageSizeSelect__fb0017ac","current-value-input":"Pagination_module_currentValueInput__fb0017ac"};
|
|
1650
1655
|
n(css$C,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1651
1656
|
|
|
1652
|
-
var css$B = ".
|
|
1653
|
-
var modules_23691de0 = {"input-wrapper":"
|
|
1657
|
+
var css$B = ".Input_module_srOnly__765c4484 {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.Input_module_hidden__765c4484 {\n display: none;\n}\n\n.Input_module_slideIn__765c4484 {\n animation: Input_module_slideIn__765c4484 0.5s forwards;\n}\n\n.Input_module_slideOut__765c4484 {\n animation: Input_module_slideOut__765c4484 0.5s forwards;\n}\n\n@keyframes Input_module_slideIn__765c4484 {\n 0% {\n transform: translateY(100vh);\n }\n 100% {\n transform: translateY(0%);\n }\n}\n@keyframes Input_module_slideOut__765c4484 {\n 0% {\n transform: translateY(0%);\n }\n 100% {\n transform: translateY(100vh);\n }\n}\n.Input_module_inputWrapper__765c4484 {\n position: relative;\n display: flex;\n align-items: center;\n height: 4rem;\n border: 0;\n border-radius: var(--input-border-radius);\n background-color: var(--input-background-color);\n padding: 0 1.25rem;\n transition: all 0.2s ease-in-out;\n}\n.Input_module_inputWrapper__765c4484:hover .Input_module_outline__765c4484 {\n border-color: var(--default);\n}\n.Input_module_inputWrapper__765c4484 .Input_module_outline__765c4484.Input_module_disabled__765c4484 {\n border-color: #fff;\n}\n.Input_module_inputWrapper__765c4484 .Input_module_outline__765c4484.Input_module_error__765c4484 {\n border-color: var(--error);\n}\n.Input_module_inputWrapper__765c4484 .Input_module_outline__765c4484.Input_module_focus__765c4484 {\n border-width: var(--input-border-width-focus);\n}\n.Input_module_inputWrapper__765c4484 .Input_module_outline__765c4484.Input_module_focus__765c4484:not(.Input_module_error__765c4484) {\n border-color: var(--color-primary);\n}\n\n.Input_module_input__765c4484 {\n padding: 0;\n height: 4rem;\n color: var(--greyed-out);\n font-size: var(--font-size);\n font-family: var(--font-family);\n width: 100%;\n box-sizing: border-box;\n border: 0;\n border-radius: var(--input-border-radius);\n}\n.Input_module_input__765c4484:disabled {\n background-color: var(--disabled);\n cursor: not-allowed;\n}\n.Input_module_input__765c4484:focus:not(:disabled) {\n outline: none;\n}\n\n.Input_module_outline__765c4484 {\n pointer-events: none;\n position: absolute;\n margin: 0;\n padding: 0;\n inset: 0;\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n transition: all 0.2s ease-in-out;\n}\n\n.Input_module_error__765c4484 input {\n color: var(--error);\n padding-right: 3.5rem;\n}\n.Input_module_error__765c4484 input.Input_module_removeExtraIndent__765c4484 {\n padding-right: 0rem;\n}\n\n.Input_module_warning__765c4484 {\n color: var(--error);\n position: absolute;\n height: 100%;\n width: 1.25rem;\n right: 1.25rem;\n top: 0px;\n font-size: 1.125rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.Input_module_warning__765c4484:before {\n height: 1.3125rem;\n}\n.Input_module_warning__765c4484.Input_module_extraIndent__765c4484 {\n right: 3.75rem;\n}\n\n.Input_module_inputWrapper__765c4484 [data-prefix],\n.Input_module_inputWrapper__765c4484 [data-suffix] {\n transition: all 0.2s ease-in-out;\n display: block;\n z-index: 1;\n}";
|
|
1658
|
+
var modules_23691de0 = {"sr-only":"Input_module_srOnly__765c4484","hidden":"Input_module_hidden__765c4484","slide-in":"Input_module_slideIn__765c4484","slide-out":"Input_module_slideOut__765c4484","input-wrapper":"Input_module_inputWrapper__765c4484","outline":"Input_module_outline__765c4484","disabled":"Input_module_disabled__765c4484","error":"Input_module_error__765c4484","focus":"Input_module_focus__765c4484","input":"Input_module_input__765c4484","remove-extra-indent":"Input_module_removeExtraIndent__765c4484","warning":"Input_module_warning__765c4484","extra-indent":"Input_module_extraIndent__765c4484"};
|
|
1654
1659
|
n(css$B,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1655
1660
|
|
|
1656
1661
|
var _excluded$F = ["error", "className", "name", "style", "wrapperProps", "type", "labeledBy", "prefix", "suffix", "disabled", "onFocus", "onBlur"];
|
|
1657
|
-
var dateTypes = [
|
|
1662
|
+
var dateTypes = ["date", "time", "datetime-local"];
|
|
1663
|
+
|
|
1664
|
+
var useErrorOffset = function useErrorOffset(suffix, errorIcon, inputWrapper, error, type, suffixContent) {
|
|
1665
|
+
if (suffixContent === void 0) {
|
|
1666
|
+
suffixContent = "";
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
var _useState = useState({}),
|
|
1670
|
+
errorOffset = _useState[0],
|
|
1671
|
+
setErrorOffset = _useState[1];
|
|
1672
|
+
|
|
1673
|
+
var _useState2 = useState(null),
|
|
1674
|
+
defaultErrorOffset = _useState2[0],
|
|
1675
|
+
setDefaultErrorOffset = _useState2[1];
|
|
1676
|
+
|
|
1677
|
+
var getErrorIconOffset = function getErrorIconOffset() {
|
|
1678
|
+
return parseFloat(getComputedStyle(errorIcon.current).right);
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
var getInputPaddingRight = function getInputPaddingRight(input) {
|
|
1682
|
+
return dateTypes.includes(type) ? 0 : parseFloat(getComputedStyle(input).paddingRight);
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
useEffect(function () {
|
|
1686
|
+
if (errorIcon.current && inputWrapper.current) {
|
|
1687
|
+
var defaultOffset = defaultErrorOffset;
|
|
1688
|
+
|
|
1689
|
+
if (!defaultOffset) {
|
|
1690
|
+
defaultOffset = getErrorIconOffset();
|
|
1691
|
+
setDefaultErrorOffset(defaultOffset);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
if (suffix.current && suffixContent) {
|
|
1695
|
+
var inputPaddingRight = getInputPaddingRight(inputWrapper.current);
|
|
1696
|
+
var prefixDifference = suffix.current.offsetWidth + inputPaddingRight + defaultOffset;
|
|
1697
|
+
setErrorOffset({
|
|
1698
|
+
right: prefixDifference + "px"
|
|
1699
|
+
});
|
|
1700
|
+
} else {
|
|
1701
|
+
setErrorOffset({
|
|
1702
|
+
right: defaultOffset + "px"
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}, [suffix.current, errorIcon.current, inputWrapper.current, error, type, suffixContent]);
|
|
1707
|
+
return {
|
|
1708
|
+
errorOffset: errorOffset
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1658
1712
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1659
1713
|
var _ref$error = _ref.error,
|
|
1660
1714
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
@@ -1671,34 +1725,44 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1671
1725
|
_onBlur = _ref.onBlur,
|
|
1672
1726
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
1673
1727
|
|
|
1674
|
-
var
|
|
1675
|
-
focus =
|
|
1676
|
-
setFocus =
|
|
1728
|
+
var _useState3 = useState(false),
|
|
1729
|
+
focus = _useState3[0],
|
|
1730
|
+
setFocus = _useState3[1];
|
|
1731
|
+
|
|
1732
|
+
var inputWrapperRef = useRef(null);
|
|
1733
|
+
var errorIconRef = useRef(null);
|
|
1734
|
+
var suffixRef = useRef(null);
|
|
1735
|
+
|
|
1736
|
+
var _useErrorOffset = useErrorOffset(suffixRef, errorIconRef, inputWrapperRef, error, type, suffix),
|
|
1737
|
+
errorOffset = _useErrorOffset.errorOffset;
|
|
1677
1738
|
|
|
1678
1739
|
useEffect(function () {
|
|
1679
1740
|
if (name === undefined) {
|
|
1680
1741
|
throw new Error("Please give your <Input /> component a 'name' attribute");
|
|
1681
1742
|
}
|
|
1682
1743
|
}, []);
|
|
1683
|
-
var inputClassNames = [modules_23691de0[
|
|
1684
|
-
dateTypes.includes(type) && inputClassNames.push(modules_23691de0[
|
|
1744
|
+
var inputClassNames = [modules_23691de0["input"]];
|
|
1745
|
+
dateTypes.includes(type) && inputClassNames.push(modules_23691de0["remove-extra-indent"]);
|
|
1685
1746
|
className && inputClassNames.push(className);
|
|
1686
|
-
var iconClassNames = [modules_23691de0[
|
|
1687
|
-
dateTypes.includes(type) && iconClassNames.push(modules_23691de0[
|
|
1688
|
-
var wrapperClasses = [modules_23691de0[
|
|
1747
|
+
var iconClassNames = [modules_23691de0["warning"]];
|
|
1748
|
+
dateTypes.includes(type) && iconClassNames.push(modules_23691de0["extra-indent"]);
|
|
1749
|
+
var wrapperClasses = [modules_23691de0["input-wrapper"]];
|
|
1750
|
+
var outlineClasses = [modules_23691de0["outline"]];
|
|
1689
1751
|
(wrapperProps == null ? void 0 : wrapperProps.className) && wrapperClasses.push(wrapperProps.className);
|
|
1690
|
-
type ===
|
|
1691
|
-
prefix && wrapperClasses.push(modules_23691de0[
|
|
1692
|
-
suffix && wrapperClasses.push(modules_23691de0[
|
|
1693
|
-
disabled && wrapperClasses.push(modules_23691de0[
|
|
1694
|
-
error && wrapperClasses.push(modules_23691de0[
|
|
1695
|
-
focus && wrapperClasses.push(modules_23691de0[
|
|
1696
|
-
return React.createElement("div", _extends({
|
|
1752
|
+
type === "hidden" && wrapperClasses.push(modules_35a251a6["hidden"]);
|
|
1753
|
+
prefix && wrapperClasses.push(modules_23691de0["prefix"]);
|
|
1754
|
+
suffix && wrapperClasses.push(modules_23691de0["suffix"]);
|
|
1755
|
+
disabled && wrapperClasses.push(modules_23691de0["disabled"]) && outlineClasses.push(modules_23691de0["disabled"]);
|
|
1756
|
+
error && wrapperClasses.push(modules_23691de0["error"]) && outlineClasses.push(modules_23691de0["error"]);
|
|
1757
|
+
focus && wrapperClasses.push(modules_23691de0["focus"]) && outlineClasses.push(modules_23691de0["focus"]);
|
|
1758
|
+
return React.createElement("div", _extends({
|
|
1759
|
+
ref: inputWrapperRef
|
|
1760
|
+
}, wrapperProps, {
|
|
1697
1761
|
style: _extends({}, style),
|
|
1698
|
-
className: modules_23691de0[
|
|
1762
|
+
className: modules_23691de0["input-wrapper"] + " " + wrapperClasses.join(" ")
|
|
1699
1763
|
}), prefix && React.createElement("div", {
|
|
1700
1764
|
"data-prefix": true,
|
|
1701
|
-
className: modules_23691de0[
|
|
1765
|
+
className: modules_23691de0["prefix"]
|
|
1702
1766
|
}, React.createElement("span", null, prefix)), React.createElement("input", _extends({}, rest, {
|
|
1703
1767
|
ref: ref,
|
|
1704
1768
|
onFocus: function onFocus(event) {
|
|
@@ -1713,18 +1777,23 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1713
1777
|
type: type,
|
|
1714
1778
|
name: name,
|
|
1715
1779
|
disabled: disabled,
|
|
1716
|
-
className: inputClassNames.join(
|
|
1780
|
+
className: inputClassNames.join(" ")
|
|
1717
1781
|
})), suffix && React.createElement("div", {
|
|
1782
|
+
ref: suffixRef,
|
|
1718
1783
|
"data-suffix": true,
|
|
1719
|
-
className: modules_23691de0[
|
|
1784
|
+
className: modules_23691de0["suffix"]
|
|
1720
1785
|
}, React.createElement("span", null, suffix)), error && React.createElement(Icon, {
|
|
1721
|
-
|
|
1786
|
+
style: errorOffset,
|
|
1787
|
+
ref: errorIconRef,
|
|
1788
|
+
className: iconClassNames.join(" "),
|
|
1722
1789
|
icon: Icons.Error
|
|
1790
|
+
}), React.createElement("span", {
|
|
1791
|
+
className: outlineClasses.join(" ")
|
|
1723
1792
|
}));
|
|
1724
1793
|
});
|
|
1725
1794
|
|
|
1726
|
-
var css$A = ".
|
|
1727
|
-
var modules_7db85bb8 = {"sr-only":"
|
|
1795
|
+
var css$A = ".Select_module_srOnly__cca1abf5 {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.Select_module_hidden__cca1abf5 {\n display: none;\n}\n\n.Select_module_slideIn__cca1abf5 {\n animation: Select_module_slideIn__cca1abf5 0.5s forwards;\n}\n\n.Select_module_slideOut__cca1abf5 {\n animation: Select_module_slideOut__cca1abf5 0.5s forwards;\n}\n\n@keyframes Select_module_slideIn__cca1abf5 {\n 0% {\n transform: translateY(100vh);\n }\n 100% {\n transform: translateY(0%);\n }\n}\n@keyframes Select_module_slideOut__cca1abf5 {\n 0% {\n transform: translateY(0%);\n }\n 100% {\n transform: translateY(100vh);\n }\n}\n.Select_module_select__cca1abf5 {\n position: relative;\n box-sizing: border-box;\n transition: all 0.2s ease-in-out;\n border: 0;\n border-radius: var(--input-border-radius);\n background-color: var(--input-background-color);\n font-size: var(--font-size);\n}\n.Select_module_select__cca1abf5 [data-display] {\n color: var(--greyed-out);\n}\n.Select_module_select__cca1abf5.Select_module_expanded__cca1abf5 {\n border: var(--input-border-width) solid transparent;\n}\n.Select_module_select__cca1abf5.Select_module_expanded__cca1abf5 .Select_module_listWrapper__cca1abf5 {\n background: #fff;\n}\n.Select_module_select__cca1abf5:not(.Select_module_expanded__cca1abf5) button:focus-visible:not(.Select_module_error__cca1abf5) {\n border: var(--input-border-width-focus) solid var(--color-primary);\n padding: 0 calc(1.25rem - var(--input-border-width-focus) + var(--input-border-width));\n}\n.Select_module_select__cca1abf5:hover:not(.Select_module_disabled__cca1abf5):not(.Select_module_expanded__cca1abf5):not(.Select_module_error__cca1abf5) button {\n border-color: var(--default);\n border-width: var(--input-border-width);\n}\n.Select_module_select__cca1abf5 .Select_module_customSelect__cca1abf5 {\n position: relative;\n width: 100%;\n min-height: calc(4rem - 2 * var(--input-border-width));\n border: 0;\n padding: 0 1.25rem;\n background-color: transparent;\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n font-size: var(--font-size);\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n}\n.Select_module_select__cca1abf5 .Select_module_customSelect__cca1abf5:focus-visible {\n outline: 0;\n}\n.Select_module_select__cca1abf5 .Select_module_customSelect__cca1abf5.Select_module_error__cca1abf5 {\n border-color: var(--error);\n color: var(--error);\n}\n.Select_module_select__cca1abf5 .Select_module_customSelect__cca1abf5.Select_module_error__cca1abf5:focus-visible {\n border-width: var(--input-border-width-focus);\n}\n.Select_module_select__cca1abf5 .Select_module_listWrapper__cca1abf5 {\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.29);\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 100%;\n overflow: auto;\n}\n.Select_module_select__cca1abf5 ul {\n box-sizing: border-box;\n padding: 0.25rem 0;\n width: 100%;\n margin: 0;\n list-style: none;\n background-color: #fff;\n border-radius: var(--input-border-radius);\n color: var(--default);\n text-align: left;\n max-height: 21.25rem;\n}\n.Select_module_select__cca1abf5 ul li {\n padding: 0.5rem 1rem;\n font-size: var(--font-size);\n margin: 0;\n position: relative;\n line-height: 1;\n cursor: pointer;\n}\n.Select_module_select__cca1abf5 ul li:after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n background-color: transparent;\n width: 100%;\n height: 100%;\n opacity: 0.05;\n}\n.Select_module_select__cca1abf5 ul li:focus-visible {\n outline: 1px solid var(--color-primary);\n outline-offset: -1px;\n}\n.Select_module_select__cca1abf5 ul li:hover:after {\n background-color: var(--color-primary);\n}\n.Select_module_select__cca1abf5 ul li.Select_module_disabled__cca1abf5 {\n color: var(--greyed-out);\n background-color: var(--disabled);\n pointer-events: none;\n}\n\n.Select_module_selectedOption__cca1abf5:before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n background-color: var(--color-primary);\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n\n.Select_module_selected__cca1abf5 {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none;\n}\n\n.Select_module_status__cca1abf5 {\n position: absolute;\n top: 50%;\n right: 1.625rem;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n}\n.Select_module_status__cca1abf5 .Select_module_warning__cca1abf5 {\n color: var(--error);\n font-size: 1.25rem;\n}\n.Select_module_status__cca1abf5 .Select_module_triangleDown__cca1abf5 {\n color: var(--default);\n font-size: 0.625rem;\n}\n.Select_module_status__cca1abf5 * + * {\n margin-left: 1.25rem;\n}\n\n.Select_module_placeholder__cca1abf5 {\n color: var(--greyed-out);\n}\n\n.Select_module_selectSearchWrapper__cca1abf5 + ul {\n border-radius: 0 0 var(--input-border-radius) var(--input-border-radius);\n}\n\n.Select_module_selectSearch__cca1abf5 {\n width: 100%;\n box-sizing: border-box;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.Select_module_disabled__cca1abf5 {\n cursor: not-allowed;\n color: var(--greyed-out);\n background-color: var(--disabled);\n}\n.Select_module_disabled__cca1abf5 > * {\n pointer-events: none;\n}";
|
|
1796
|
+
var modules_7db85bb8 = {"sr-only":"Select_module_srOnly__cca1abf5","hidden":"Select_module_hidden__cca1abf5","slide-in":"Select_module_slideIn__cca1abf5","slide-out":"Select_module_slideOut__cca1abf5","select":"Select_module_select__cca1abf5","expanded":"Select_module_expanded__cca1abf5","list-wrapper":"Select_module_listWrapper__cca1abf5","error":"Select_module_error__cca1abf5","disabled":"Select_module_disabled__cca1abf5","custom-select":"Select_module_customSelect__cca1abf5","selected-option":"Select_module_selectedOption__cca1abf5","selected":"Select_module_selected__cca1abf5","status":"Select_module_status__cca1abf5","warning":"Select_module_warning__cca1abf5","triangle-down":"Select_module_triangleDown__cca1abf5","placeholder":"Select_module_placeholder__cca1abf5","select-search-wrapper":"Select_module_selectSearchWrapper__cca1abf5","select-search":"Select_module_selectSearch__cca1abf5"};
|
|
1728
1797
|
n(css$A,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
1729
1798
|
|
|
1730
1799
|
var _excluded$E = ["children", "name", "disabled", "labeledBy", "placeholder", "describedBy", "searchPlaceholder", "searchInputProps", "selectButtonProps", "className", "error", "value", "clearLabel", "onChange", "onClear"];
|
|
@@ -1740,7 +1809,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1740
1809
|
placeholder = _ref.placeholder,
|
|
1741
1810
|
describedBy = _ref.describedBy,
|
|
1742
1811
|
_ref$searchPlaceholde = _ref.searchPlaceholder,
|
|
1743
|
-
searchPlaceholder = _ref$searchPlaceholde === void 0 ?
|
|
1812
|
+
searchPlaceholder = _ref$searchPlaceholde === void 0 ? "Search item" : _ref$searchPlaceholde,
|
|
1744
1813
|
searchInputProps = _ref.searchInputProps,
|
|
1745
1814
|
selectButtonProps = _ref.selectButtonProps,
|
|
1746
1815
|
className = _ref.className,
|
|
@@ -1748,7 +1817,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1748
1817
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
1749
1818
|
value = _ref.value,
|
|
1750
1819
|
_ref$clearLabel = _ref.clearLabel,
|
|
1751
|
-
clearLabel = _ref$clearLabel === void 0 ?
|
|
1820
|
+
clearLabel = _ref$clearLabel === void 0 ? "Clear selection" : _ref$clearLabel,
|
|
1752
1821
|
onChange = _ref.onChange,
|
|
1753
1822
|
onClear = _ref.onClear,
|
|
1754
1823
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
@@ -1762,11 +1831,11 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1762
1831
|
setOpacity = _useState2[1]; // We set opacity because other wise if we calculate the max height you see the list full height for a split second and then it shortens.
|
|
1763
1832
|
|
|
1764
1833
|
|
|
1765
|
-
var _useState3 = useState(
|
|
1834
|
+
var _useState3 = useState(""),
|
|
1766
1835
|
filter = _useState3[0],
|
|
1767
1836
|
setFilter = _useState3[1];
|
|
1768
1837
|
|
|
1769
|
-
var _useState4 = useState(
|
|
1838
|
+
var _useState4 = useState(""),
|
|
1770
1839
|
display = _useState4[0],
|
|
1771
1840
|
setDisplay = _useState4[1];
|
|
1772
1841
|
|
|
@@ -1774,7 +1843,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1774
1843
|
listPosition = _useState5[0],
|
|
1775
1844
|
setListPosition = _useState5[1];
|
|
1776
1845
|
|
|
1777
|
-
var _useState6 = useState(
|
|
1846
|
+
var _useState6 = useState("none"),
|
|
1778
1847
|
optionsListMaxHeight = _useState6[0],
|
|
1779
1848
|
setOptionsListMaxHeight = _useState6[1];
|
|
1780
1849
|
|
|
@@ -1802,12 +1871,12 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1802
1871
|
var searchInputRef = useRef(null);
|
|
1803
1872
|
|
|
1804
1873
|
var onArrowNavigation = function onArrowNavigation(event) {
|
|
1805
|
-
var codesToPreventDefault = [
|
|
1806
|
-
var codesToPreventDefaultWhenSearching = [
|
|
1874
|
+
var codesToPreventDefault = ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "Space", "Escape", "End", "Home"];
|
|
1875
|
+
var codesToPreventDefaultWhenSearching = ["ArrowDown", "ArrowUp", "Enter", "Escape"];
|
|
1807
1876
|
/** If the select is expanded, we also want to control the Tab key */
|
|
1808
1877
|
|
|
1809
1878
|
if (expanded) {
|
|
1810
|
-
codesToPreventDefault.push(
|
|
1879
|
+
codesToPreventDefault.push("Tab");
|
|
1811
1880
|
}
|
|
1812
1881
|
/** We will handle the way certain key strokes affect the Select, unless we're searching */
|
|
1813
1882
|
|
|
@@ -1822,26 +1891,26 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1822
1891
|
|
|
1823
1892
|
if (isSearching) {
|
|
1824
1893
|
switch (event.code) {
|
|
1825
|
-
case
|
|
1826
|
-
case
|
|
1894
|
+
case "ArrowDown":
|
|
1895
|
+
case "Enter":
|
|
1827
1896
|
setIsSearching(false);
|
|
1828
1897
|
setFocusedSelectItem(0);
|
|
1829
1898
|
return;
|
|
1830
1899
|
|
|
1831
|
-
case
|
|
1900
|
+
case "ArrowUp":
|
|
1832
1901
|
setIsSearching(false);
|
|
1833
1902
|
setFocusedSelectItem(childrenCount - 1);
|
|
1834
1903
|
return;
|
|
1835
1904
|
|
|
1836
|
-
case
|
|
1837
|
-
case
|
|
1905
|
+
case "Escape":
|
|
1906
|
+
case "Tab":
|
|
1838
1907
|
setIsSearching(false);
|
|
1839
1908
|
setExpanded(false);
|
|
1840
|
-
containerReference.current && containerReference.current.querySelector(
|
|
1909
|
+
containerReference.current && containerReference.current.querySelector("button").focus();
|
|
1841
1910
|
}
|
|
1842
1911
|
} else {
|
|
1843
1912
|
switch (event.code) {
|
|
1844
|
-
case
|
|
1913
|
+
case "ArrowDown":
|
|
1845
1914
|
if (!expanded) {
|
|
1846
1915
|
setExpanded(true);
|
|
1847
1916
|
return;
|
|
@@ -1852,13 +1921,13 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1852
1921
|
});
|
|
1853
1922
|
return;
|
|
1854
1923
|
|
|
1855
|
-
case
|
|
1924
|
+
case "ArrowUp":
|
|
1856
1925
|
setFocusedSelectItem(function (prevState) {
|
|
1857
1926
|
return prevState - 1 < 0 ? childrenCount - 1 : prevState - 1;
|
|
1858
1927
|
});
|
|
1859
1928
|
return;
|
|
1860
1929
|
|
|
1861
|
-
case
|
|
1930
|
+
case "Space":
|
|
1862
1931
|
if (!expanded) {
|
|
1863
1932
|
setExpanded(true);
|
|
1864
1933
|
return;
|
|
@@ -1866,10 +1935,10 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1866
1935
|
|
|
1867
1936
|
setShouldClick(true);
|
|
1868
1937
|
setExpanded(false);
|
|
1869
|
-
containerReference.current && containerReference.current.querySelector(
|
|
1938
|
+
containerReference.current && containerReference.current.querySelector("button").focus();
|
|
1870
1939
|
return;
|
|
1871
1940
|
|
|
1872
|
-
case
|
|
1941
|
+
case "Tab":
|
|
1873
1942
|
if (childrenCount >= renderSearchCondition && expanded) {
|
|
1874
1943
|
setIsSearching(true);
|
|
1875
1944
|
searchInputRef.current && searchInputRef.current.focus();
|
|
@@ -1879,19 +1948,19 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1879
1948
|
setExpanded(false);
|
|
1880
1949
|
return;
|
|
1881
1950
|
|
|
1882
|
-
case
|
|
1951
|
+
case "Escape":
|
|
1883
1952
|
if (expanded) {
|
|
1884
1953
|
setExpanded(false);
|
|
1885
|
-
containerReference.current && containerReference.current.querySelector(
|
|
1954
|
+
containerReference.current && containerReference.current.querySelector("button").focus();
|
|
1886
1955
|
}
|
|
1887
1956
|
|
|
1888
1957
|
return;
|
|
1889
1958
|
|
|
1890
|
-
case
|
|
1959
|
+
case "End":
|
|
1891
1960
|
setFocusedSelectItem(childrenCount - 1);
|
|
1892
1961
|
return;
|
|
1893
1962
|
|
|
1894
|
-
case
|
|
1963
|
+
case "Home":
|
|
1895
1964
|
setFocusedSelectItem(0);
|
|
1896
1965
|
return;
|
|
1897
1966
|
}
|
|
@@ -1919,12 +1988,12 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1919
1988
|
|
|
1920
1989
|
var position = {
|
|
1921
1990
|
top: 0,
|
|
1922
|
-
bottom:
|
|
1991
|
+
bottom: "initial"
|
|
1923
1992
|
}; // Set the position of the select
|
|
1924
1993
|
|
|
1925
1994
|
if (spaceOnTopOfSelect > spaceOnBottomOfSelect) {
|
|
1926
1995
|
position = {
|
|
1927
|
-
top:
|
|
1996
|
+
top: "initial",
|
|
1928
1997
|
bottom: 0
|
|
1929
1998
|
};
|
|
1930
1999
|
}
|
|
@@ -1937,8 +2006,8 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1937
2006
|
var calculateOptionListMaxHeight = function calculateOptionListMaxHeight(position) {
|
|
1938
2007
|
// Calculate max height if there's more space below the select
|
|
1939
2008
|
var listHeight = optionListReference.current.getBoundingClientRect().height;
|
|
1940
|
-
var transformOrigin = position.top !==
|
|
1941
|
-
var availableSpace = transformOrigin ===
|
|
2009
|
+
var transformOrigin = position.top !== "initial" ? "top" : "bottom";
|
|
2010
|
+
var availableSpace = transformOrigin === "top" ? window.innerHeight - containerReference.current.getBoundingClientRect()[transformOrigin] - 16 : containerReference.current.getBoundingClientRect()[transformOrigin] - 16;
|
|
1942
2011
|
|
|
1943
2012
|
if (availableSpace < listHeight) {
|
|
1944
2013
|
setOptionsListMaxHeight(availableSpace + "px");
|
|
@@ -1946,20 +2015,20 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1946
2015
|
return;
|
|
1947
2016
|
}
|
|
1948
2017
|
|
|
1949
|
-
setOptionsListMaxHeight(
|
|
2018
|
+
setOptionsListMaxHeight("none");
|
|
1950
2019
|
setOpacity(100);
|
|
1951
2020
|
};
|
|
1952
2021
|
|
|
1953
2022
|
var onOptionChangeHandler = function onOptionChangeHandler(optionRef) {
|
|
1954
2023
|
if (nativeSelect.current && optionRef.current) {
|
|
1955
|
-
nativeSelect.current.value = optionRef.current.getAttribute(
|
|
1956
|
-
nativeSelect.current.dispatchEvent(new Event(
|
|
2024
|
+
nativeSelect.current.value = optionRef.current.getAttribute("data-value");
|
|
2025
|
+
nativeSelect.current.dispatchEvent(new Event("change", {
|
|
1957
2026
|
bubbles: true
|
|
1958
2027
|
}));
|
|
1959
2028
|
}
|
|
1960
2029
|
|
|
1961
2030
|
setExpanded(false);
|
|
1962
|
-
containerReference.current && containerReference.current.querySelector(
|
|
2031
|
+
containerReference.current && containerReference.current.querySelector("button").focus();
|
|
1963
2032
|
};
|
|
1964
2033
|
/**
|
|
1965
2034
|
* @description We have to modify the children (Option component) to have a additional props that allows us to keep track of which one is selected and focused at all times and if a filter is active.
|
|
@@ -1968,7 +2037,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1968
2037
|
|
|
1969
2038
|
|
|
1970
2039
|
var renderOptions = function renderOptions() {
|
|
1971
|
-
if (isSearching || filter !==
|
|
2040
|
+
if (isSearching || filter !== "") {
|
|
1972
2041
|
var filteredChildren = React.Children.toArray(children).filter(function (child) {
|
|
1973
2042
|
return child.props.children.toLowerCase().match(filter.toLowerCase()) !== null;
|
|
1974
2043
|
});
|
|
@@ -2011,9 +2080,9 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2011
2080
|
return setIsSearching(false);
|
|
2012
2081
|
},
|
|
2013
2082
|
onChange: filterResults,
|
|
2014
|
-
className: modules_7db85bb8[
|
|
2083
|
+
className: modules_7db85bb8["select-search"],
|
|
2015
2084
|
wrapperProps: {
|
|
2016
|
-
className: modules_7db85bb8[
|
|
2085
|
+
className: modules_7db85bb8["select-search-wrapper"] + " " + (searchInputProps == null ? void 0 : (_searchInputProps$wra = searchInputProps.wrapperProps) == null ? void 0 : _searchInputProps$wra.className)
|
|
2017
2086
|
},
|
|
2018
2087
|
type: "text",
|
|
2019
2088
|
name: "search-option",
|
|
@@ -2028,7 +2097,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2028
2097
|
var statusIcon = function statusIcon() {
|
|
2029
2098
|
if (error) {
|
|
2030
2099
|
return React.createElement(Icon, {
|
|
2031
|
-
className: modules_7db85bb8[
|
|
2100
|
+
className: modules_7db85bb8["warning"],
|
|
2032
2101
|
icon: Icons.Warning
|
|
2033
2102
|
});
|
|
2034
2103
|
}
|
|
@@ -2045,15 +2114,15 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2045
2114
|
onClear(e);
|
|
2046
2115
|
},
|
|
2047
2116
|
onKeyDown: function onKeyDown(e) {
|
|
2048
|
-
if (e.code ===
|
|
2117
|
+
if (e.code === "Enter" || e.code === "Space") {
|
|
2049
2118
|
e.preventDefault();
|
|
2050
2119
|
e.stopPropagation();
|
|
2051
2120
|
onClear(e);
|
|
2052
|
-
containerReference.current && containerReference.current.querySelector(
|
|
2121
|
+
containerReference.current && containerReference.current.querySelector("button").focus();
|
|
2053
2122
|
}
|
|
2054
2123
|
}
|
|
2055
2124
|
}, React.createElement("span", {
|
|
2056
|
-
className: modules_35a251a6[
|
|
2125
|
+
className: modules_35a251a6["sr-only"]
|
|
2057
2126
|
}, clearLabel), React.createElement(Icon, {
|
|
2058
2127
|
tag: "span",
|
|
2059
2128
|
icon: Icons.TimesThin
|
|
@@ -2074,12 +2143,12 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2074
2143
|
rePositionList();
|
|
2075
2144
|
}, [expanded]);
|
|
2076
2145
|
useBodyClick(function (event) {
|
|
2077
|
-
return !event.target.closest(
|
|
2146
|
+
return !event.target.closest(".custom-select") && expanded;
|
|
2078
2147
|
}, function () {
|
|
2079
|
-
setExpanded(
|
|
2148
|
+
setExpanded(false);
|
|
2080
2149
|
setListPosition({
|
|
2081
2150
|
top: 0,
|
|
2082
|
-
bottom:
|
|
2151
|
+
bottom: "initial"
|
|
2083
2152
|
});
|
|
2084
2153
|
setOpacity(0);
|
|
2085
2154
|
}, expanded);
|
|
@@ -2096,7 +2165,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2096
2165
|
ref: nativeSelect,
|
|
2097
2166
|
name: name,
|
|
2098
2167
|
onChange: nativeOnChangeHandler,
|
|
2099
|
-
className: modules_35a251a6[
|
|
2168
|
+
className: modules_35a251a6["sr-only"]
|
|
2100
2169
|
}), React.createElement("option", {
|
|
2101
2170
|
value: ""
|
|
2102
2171
|
}), React.Children.map(children, function (child) {
|
|
@@ -2106,14 +2175,14 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2106
2175
|
})), React.createElement("div", _extends({}, filterProps(rest, /^data-/), {
|
|
2107
2176
|
ref: containerReference,
|
|
2108
2177
|
onKeyDown: onArrowNavigation,
|
|
2109
|
-
className: "custom-select " + modules_7db85bb8.select + " " + additionalClasses.join(
|
|
2178
|
+
className: "custom-select " + modules_7db85bb8.select + " " + additionalClasses.join(" ") + " " + (className != null ? className : "")
|
|
2110
2179
|
}), React.createElement("button", _extends({}, selectButtonProps, {
|
|
2111
2180
|
onClick: function onClick() {
|
|
2112
2181
|
setExpanded(!expanded);
|
|
2113
2182
|
},
|
|
2114
2183
|
type: "button",
|
|
2115
2184
|
name: name,
|
|
2116
|
-
className: modules_7db85bb8[
|
|
2185
|
+
className: modules_7db85bb8["custom-select"] + " " + additionalClasses.join(" ") + " ",
|
|
2117
2186
|
disabled: disabled,
|
|
2118
2187
|
"aria-disabled": disabled,
|
|
2119
2188
|
"aria-invalid": error,
|
|
@@ -2123,23 +2192,24 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2123
2192
|
"aria-describedby": describedBy
|
|
2124
2193
|
}), React.createElement("div", {
|
|
2125
2194
|
"data-display": true,
|
|
2126
|
-
className: modules_7db85bb8[
|
|
2195
|
+
className: modules_7db85bb8["selected"]
|
|
2127
2196
|
}, !value && placeholder && React.createElement("span", {
|
|
2128
|
-
className: modules_7db85bb8[
|
|
2197
|
+
className: modules_7db85bb8["placeholder"]
|
|
2129
2198
|
}, placeholder), (value == null ? void 0 : value.length) > 0 && React.createElement("span", {
|
|
2130
2199
|
"data-display-inner": true
|
|
2131
2200
|
}, display)), React.createElement("div", {
|
|
2132
|
-
className: modules_7db85bb8[
|
|
2201
|
+
className: modules_7db85bb8["status"]
|
|
2133
2202
|
}, statusIcon(), React.createElement(Icon, {
|
|
2134
|
-
className: modules_7db85bb8[
|
|
2203
|
+
className: modules_7db85bb8["triangle-down"],
|
|
2135
2204
|
icon: Icons.TriangleDown
|
|
2136
2205
|
}))), React.createElement("div", {
|
|
2137
2206
|
ref: optionListReference,
|
|
2138
|
-
className: "list-wrapper " + modules_7db85bb8[
|
|
2207
|
+
className: "list-wrapper " + modules_7db85bb8["list-wrapper"],
|
|
2139
2208
|
style: _extends({
|
|
2140
|
-
display: expanded ?
|
|
2209
|
+
display: expanded ? "block" : "none",
|
|
2141
2210
|
opacity: opacity,
|
|
2142
|
-
maxHeight: optionsListMaxHeight
|
|
2211
|
+
maxHeight: optionsListMaxHeight,
|
|
2212
|
+
pointerEvents: expanded ? "auto" : "none"
|
|
2143
2213
|
}, listPosition)
|
|
2144
2214
|
}, Array.isArray(children) && children.length > renderSearchCondition && renderSearch(), React.createElement("ul", {
|
|
2145
2215
|
role: "listbox"
|
|
@@ -2183,10 +2253,10 @@ var Option = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2183
2253
|
return React.createElement("li", _extends({}, rest, {
|
|
2184
2254
|
ref: innerOptionRef,
|
|
2185
2255
|
"data-value": value,
|
|
2186
|
-
className: (isSelected ? modules_7db85bb8[
|
|
2256
|
+
className: (isSelected ? modules_7db85bb8["selected-option"] : "") + " " + (disabled ? modules_7db85bb8.disabled : "") + " " + (className != null ? className : ""),
|
|
2187
2257
|
onClick: onSelectHandler,
|
|
2188
2258
|
onKeyDownCapture: function onKeyDownCapture(event) {
|
|
2189
|
-
if (event.code ===
|
|
2259
|
+
if (event.code === "Enter") {
|
|
2190
2260
|
event.stopPropagation();
|
|
2191
2261
|
event.preventDefault();
|
|
2192
2262
|
onSelectHandler();
|
|
@@ -2212,7 +2282,7 @@ var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2212
2282
|
|
|
2213
2283
|
return React.createElement("label", _extends({}, rest, {
|
|
2214
2284
|
ref: ref,
|
|
2215
|
-
className: (hidden ? modules_35a251a6[
|
|
2285
|
+
className: (hidden ? modules_35a251a6["sr-only"] : "") + " " + modules_aa63a669["label"] + " " + (className != null ? className : "")
|
|
2216
2286
|
}), children);
|
|
2217
2287
|
});
|
|
2218
2288
|
|
|
@@ -2240,7 +2310,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2240
2310
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
2241
2311
|
|
|
2242
2312
|
/** We use an internal state variable, because we don't want to fire onCurrentPageChange whenever onChange fires on the input. Rather, only when the Enter key is pressed. */
|
|
2243
|
-
var _useState = useState((currentPage == null ? void 0 : currentPage.toString()) ||
|
|
2313
|
+
var _useState = useState((currentPage == null ? void 0 : currentPage.toString()) || "1"),
|
|
2244
2314
|
internalCurrentPage = _useState[0],
|
|
2245
2315
|
setInternalCurrentPage = _useState[1];
|
|
2246
2316
|
|
|
@@ -2255,7 +2325,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2255
2325
|
};
|
|
2256
2326
|
|
|
2257
2327
|
var onEnterListener = function onEnterListener(event) {
|
|
2258
|
-
if (event.code ===
|
|
2328
|
+
if (event.code === "Enter") {
|
|
2259
2329
|
onPageChange(Number(internalCurrentPage));
|
|
2260
2330
|
}
|
|
2261
2331
|
};
|
|
@@ -2264,15 +2334,15 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2264
2334
|
var amountOfPages = calculateAmountOfPages();
|
|
2265
2335
|
|
|
2266
2336
|
if (amountOfPages) {
|
|
2267
|
-
var splitCurrentPageTranslation = translate.currentPage.split(
|
|
2337
|
+
var splitCurrentPageTranslation = translate.currentPage.split(" ");
|
|
2268
2338
|
return splitCurrentPageTranslation.map(function (string) {
|
|
2269
|
-
if (string.includes(
|
|
2339
|
+
if (string.includes("%1")) {
|
|
2270
2340
|
return React.createElement(Fragment, {
|
|
2271
2341
|
key: string
|
|
2272
2342
|
}, React.createElement(Label, {
|
|
2273
2343
|
id: "current-value-input-label",
|
|
2274
2344
|
htmlFor: "current-value-input",
|
|
2275
|
-
className: modules_35a251a6[
|
|
2345
|
+
className: modules_35a251a6["sr-only"] + " " + modules_e3c5bce1["current-value-input-label"]
|
|
2276
2346
|
}, translate.currentPageLabel), React.createElement(Input, {
|
|
2277
2347
|
"aria-labelledby": "current-value-input-label",
|
|
2278
2348
|
key: "input",
|
|
@@ -2281,7 +2351,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2281
2351
|
size: currentPage == null ? void 0 : currentPage.toString().length,
|
|
2282
2352
|
max: calculateAmountOfPages(),
|
|
2283
2353
|
wrapperProps: {
|
|
2284
|
-
className: modules_e3c5bce1[
|
|
2354
|
+
className: modules_e3c5bce1["current-value-input"]
|
|
2285
2355
|
},
|
|
2286
2356
|
onKeyUp: onEnterListener,
|
|
2287
2357
|
onBlur: function onBlur(event) {
|
|
@@ -2292,14 +2362,14 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2292
2362
|
},
|
|
2293
2363
|
name: "current-value-input",
|
|
2294
2364
|
value: internalCurrentPage,
|
|
2295
|
-
className: modules_e3c5bce1[
|
|
2365
|
+
className: modules_e3c5bce1["form-element"] + " " + modules_e3c5bce1["current-page-input"]
|
|
2296
2366
|
}));
|
|
2297
2367
|
}
|
|
2298
2368
|
|
|
2299
|
-
if (string.includes(
|
|
2369
|
+
if (string.includes("%2")) {
|
|
2300
2370
|
return React.createElement("div", {
|
|
2301
2371
|
key: string
|
|
2302
|
-
}, React.createElement("strong", null, string.replace(
|
|
2372
|
+
}, React.createElement("strong", null, string.replace("%2", amountOfPages.toString())), "\xA0");
|
|
2303
2373
|
}
|
|
2304
2374
|
|
|
2305
2375
|
return React.createElement("div", {
|
|
@@ -2322,20 +2392,20 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2322
2392
|
|
|
2323
2393
|
return React.createElement("div", _extends({}, rest, {
|
|
2324
2394
|
ref: ref,
|
|
2325
|
-
className: modules_e3c5bce1[
|
|
2395
|
+
className: modules_e3c5bce1["pagination-wrapper"] + " " + (className ? className : "")
|
|
2326
2396
|
}), totalElements && React.createElement("div", {
|
|
2327
|
-
className: modules_e3c5bce1[
|
|
2397
|
+
className: modules_e3c5bce1["total"]
|
|
2328
2398
|
}, React.createElement("span", {
|
|
2329
2399
|
tabIndex: 0
|
|
2330
2400
|
}, translate.totalItems, ": ", React.createElement("span", null, totalElements))), React.createElement("div", {
|
|
2331
|
-
className: modules_e3c5bce1[
|
|
2401
|
+
className: modules_e3c5bce1["pagination"]
|
|
2332
2402
|
}, pageSize && React.createElement("div", {
|
|
2333
|
-
className: modules_e3c5bce1[
|
|
2403
|
+
className: modules_e3c5bce1["per-page"]
|
|
2334
2404
|
}, React.createElement(Label, {
|
|
2335
2405
|
id: "page-size-select-label"
|
|
2336
2406
|
}, translate.itemsPerPage), React.createElement(Select, {
|
|
2337
2407
|
labeledBy: "page-size-select-label",
|
|
2338
|
-
className: modules_e3c5bce1[
|
|
2408
|
+
className: modules_e3c5bce1["form-element"] + " " + modules_e3c5bce1["page-size-select"],
|
|
2339
2409
|
value: pageSize.toString(),
|
|
2340
2410
|
onChange: onPageSizeChangeHandler
|
|
2341
2411
|
}, React.createElement(Option, {
|
|
@@ -2345,7 +2415,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2345
2415
|
}, "25"), React.createElement(Option, {
|
|
2346
2416
|
value: "50"
|
|
2347
2417
|
}, "50"))), React.createElement(Fragment, null, !!(currentPage && currentPage > 2 || currentPage && currentPage > 1) && React.createElement("div", {
|
|
2348
|
-
className: modules_e3c5bce1[
|
|
2418
|
+
className: modules_e3c5bce1["previous"]
|
|
2349
2419
|
}, currentPage > 2 && React.createElement(IconButton, {
|
|
2350
2420
|
title: "first",
|
|
2351
2421
|
onClick: function onClick() {
|
|
@@ -2362,10 +2432,10 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2362
2432
|
"data-paginate": "previous"
|
|
2363
2433
|
}, React.createElement(Icon, {
|
|
2364
2434
|
icon: Icons.ChevronLeft
|
|
2365
|
-
}))), totalElements && calculateAmountOfPages() && React.createElement("div", {
|
|
2366
|
-
className: modules_e3c5bce1[
|
|
2435
|
+
}))), totalElements && !!calculateAmountOfPages() && React.createElement("div", {
|
|
2436
|
+
className: modules_e3c5bce1["page"]
|
|
2367
2437
|
}, renderCurrentPageTranslation()), React.createElement("div", {
|
|
2368
|
-
className: modules_e3c5bce1[
|
|
2438
|
+
className: modules_e3c5bce1["next"]
|
|
2369
2439
|
}, !!(currentPage !== undefined && currentPage < calculateAmountOfPages() || currentPage !== undefined && !totalElements) && React.createElement(IconButton, {
|
|
2370
2440
|
title: "next",
|
|
2371
2441
|
onClick: function onClick() {
|
|
@@ -2431,15 +2501,15 @@ var descriptionId = function descriptionId(id) {
|
|
|
2431
2501
|
};
|
|
2432
2502
|
|
|
2433
2503
|
var _excluded$A = ["id", "children", "open", "onClose", "className", "containerProps", "backdropProps", "labelledby", "describedby", "disableEscapeKeyDown", "disableBackdrop", "forceContainerOpen", "zIndex", "domRoot"];
|
|
2434
|
-
var SCROLL_PROPERTY_NAME =
|
|
2435
|
-
var SCROLL_PROPERTY_VALUE =
|
|
2504
|
+
var SCROLL_PROPERTY_NAME = "overflow";
|
|
2505
|
+
var SCROLL_PROPERTY_VALUE = "hidden";
|
|
2436
2506
|
var useSetBodyScroll = function useSetBodyScroll(open) {
|
|
2437
2507
|
var hideBodyScroll = function hideBodyScroll() {
|
|
2438
2508
|
document.body.style[SCROLL_PROPERTY_NAME] = SCROLL_PROPERTY_VALUE;
|
|
2439
2509
|
};
|
|
2440
2510
|
|
|
2441
2511
|
var showBodyScroll = function showBodyScroll() {
|
|
2442
|
-
var allModalsClosed = document.querySelectorAll(
|
|
2512
|
+
var allModalsClosed = document.querySelectorAll("[role=dialog][data-hidden=false]").length === 0;
|
|
2443
2513
|
|
|
2444
2514
|
if (allModalsClosed) {
|
|
2445
2515
|
document.body.style.removeProperty(SCROLL_PROPERTY_NAME);
|
|
@@ -2462,7 +2532,7 @@ var BaseModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2462
2532
|
open = _ref.open,
|
|
2463
2533
|
onClose = _ref.onClose,
|
|
2464
2534
|
_ref$className = _ref.className,
|
|
2465
|
-
className = _ref$className === void 0 ?
|
|
2535
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2466
2536
|
containerProps = _ref.containerProps,
|
|
2467
2537
|
backdropProps = _ref.backdropProps,
|
|
2468
2538
|
labelledby = _ref.labelledby,
|
|
@@ -2481,7 +2551,7 @@ var BaseModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2481
2551
|
useSetBodyScroll(open);
|
|
2482
2552
|
|
|
2483
2553
|
var handleEscKeyPress = function handleEscKeyPress(event) {
|
|
2484
|
-
if (!disableEscapeKeyDown && event.key ===
|
|
2554
|
+
if (!disableEscapeKeyDown && event.key === "Escape") {
|
|
2485
2555
|
event.stopPropagation();
|
|
2486
2556
|
onClose && onClose();
|
|
2487
2557
|
}
|
|
@@ -2494,7 +2564,7 @@ var BaseModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2494
2564
|
return createPortal(React.createElement("div", _extends({}, rest, {
|
|
2495
2565
|
ref: ref,
|
|
2496
2566
|
id: id,
|
|
2497
|
-
className: modules_cf1b230e[
|
|
2567
|
+
className: modules_cf1b230e["modal"] + " " + (open ? modules_cf1b230e["visible"] : "") + " " + className,
|
|
2498
2568
|
role: "dialog",
|
|
2499
2569
|
"aria-modal": "true",
|
|
2500
2570
|
"aria-labelledby": labelledby || labelId(id),
|
|
@@ -2507,7 +2577,7 @@ var BaseModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2507
2577
|
zIndex: zIndex
|
|
2508
2578
|
}
|
|
2509
2579
|
}), React.createElement("div", _extends({}, backdropProps, {
|
|
2510
|
-
className: modules_cf1b230e[
|
|
2580
|
+
className: modules_cf1b230e["backdrop"] + " " + ((_backdropProps$classN = backdropProps == null ? void 0 : backdropProps.className) != null ? _backdropProps$classN : ""),
|
|
2511
2581
|
onClick: handleBackdropClick
|
|
2512
2582
|
})), forceContainerOpen ? React.createElement("div", _extends({}, containerProps, {
|
|
2513
2583
|
"aria-hidden": !open,
|
|
@@ -2515,12 +2585,12 @@ var BaseModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2515
2585
|
style: {
|
|
2516
2586
|
zIndex: zIndex && zIndex + 1
|
|
2517
2587
|
},
|
|
2518
|
-
className: modules_cf1b230e[
|
|
2588
|
+
className: modules_cf1b230e["container"] + " " + ((_containerProps$class = containerProps == null ? void 0 : containerProps.className) != null ? _containerProps$class : "")
|
|
2519
2589
|
}), children) : open && React.createElement("div", _extends({}, containerProps, {
|
|
2520
2590
|
style: {
|
|
2521
2591
|
zIndex: zIndex && zIndex + 1
|
|
2522
2592
|
},
|
|
2523
|
-
className: modules_cf1b230e[
|
|
2593
|
+
className: modules_cf1b230e["container"] + " " + ((_containerProps$class2 = containerProps == null ? void 0 : containerProps.className) != null ? _containerProps$class2 : "")
|
|
2524
2594
|
}), children)), domRoot);
|
|
2525
2595
|
});
|
|
2526
2596
|
|
|
@@ -2557,7 +2627,7 @@ var BaseModalContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2557
2627
|
var id = _ref.id,
|
|
2558
2628
|
children = _ref.children,
|
|
2559
2629
|
_ref$className = _ref.className,
|
|
2560
|
-
className = _ref$className === void 0 ?
|
|
2630
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2561
2631
|
_ref$disableAutoFocus = _ref.disableAutoFocus,
|
|
2562
2632
|
disableAutoFocus = _ref$disableAutoFocus === void 0 ? false : _ref$disableAutoFocus,
|
|
2563
2633
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
@@ -2579,7 +2649,7 @@ var BaseModalContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2579
2649
|
return React.createElement("div", _extends({}, rest, {
|
|
2580
2650
|
ref: ref || contentRef,
|
|
2581
2651
|
id: id,
|
|
2582
|
-
className: modules_cf7b8d60[
|
|
2652
|
+
className: modules_cf7b8d60["content"] + " " + className,
|
|
2583
2653
|
tabIndex: -1
|
|
2584
2654
|
}), children);
|
|
2585
2655
|
});
|
|
@@ -2592,12 +2662,12 @@ var _excluded$y = ["children", "className"];
|
|
|
2592
2662
|
var BaseModalActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2593
2663
|
var children = _ref.children,
|
|
2594
2664
|
_ref$className = _ref.className,
|
|
2595
|
-
className = _ref$className === void 0 ?
|
|
2665
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
2596
2666
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
2597
2667
|
|
|
2598
2668
|
return React.createElement("footer", _extends({}, rest, {
|
|
2599
2669
|
ref: ref,
|
|
2600
|
-
className: modules_6b4a9db0[
|
|
2670
|
+
className: modules_6b4a9db0["actions"] + " " + className
|
|
2601
2671
|
}), children);
|
|
2602
2672
|
});
|
|
2603
2673
|
|
|
@@ -2613,7 +2683,7 @@ var DialogActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2613
2683
|
|
|
2614
2684
|
return React.createElement(BaseModalActions, _extends({}, rest, {
|
|
2615
2685
|
ref: ref,
|
|
2616
|
-
className: "" + modules_d87e2731[
|
|
2686
|
+
className: "" + modules_d87e2731["actions"] + (align === "left" ? " " + modules_d87e2731["left"] : "")
|
|
2617
2687
|
}), children);
|
|
2618
2688
|
});
|
|
2619
2689
|
|
|
@@ -2633,10 +2703,10 @@ var DialogTitle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2633
2703
|
|
|
2634
2704
|
return React.createElement("div", _extends({}, rest, {
|
|
2635
2705
|
ref: ref,
|
|
2636
|
-
className: modules_ff1bcd77[
|
|
2706
|
+
className: modules_ff1bcd77["header"]
|
|
2637
2707
|
}), React.createElement(Typography, {
|
|
2638
2708
|
id: id,
|
|
2639
|
-
className: modules_ff1bcd77[
|
|
2709
|
+
className: modules_ff1bcd77["title"],
|
|
2640
2710
|
tag: "h1",
|
|
2641
2711
|
variant: "h4"
|
|
2642
2712
|
}, title));
|
|
@@ -2681,7 +2751,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2681
2751
|
|
|
2682
2752
|
var onHiddenInputKeyPress = function onHiddenInputKeyPress(event) {
|
|
2683
2753
|
/** It has to be here because then we will need to check if user doesn't click tab to select action button and want to do another action then primary one? */
|
|
2684
|
-
if (event.key ===
|
|
2754
|
+
if (event.key === "Enter") {
|
|
2685
2755
|
primaryAction.onClick();
|
|
2686
2756
|
}
|
|
2687
2757
|
};
|
|
@@ -2689,9 +2759,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2689
2759
|
return React.createElement(BaseModal, _extends({}, rest, {
|
|
2690
2760
|
ref: ref,
|
|
2691
2761
|
id: dialogId,
|
|
2692
|
-
className: modules_c8de1793[
|
|
2762
|
+
className: modules_c8de1793["dialog"],
|
|
2693
2763
|
containerProps: {
|
|
2694
|
-
className: modules_c8de1793[
|
|
2764
|
+
className: modules_c8de1793["container"]
|
|
2695
2765
|
},
|
|
2696
2766
|
open: open,
|
|
2697
2767
|
disableBackdrop: true,
|
|
@@ -2703,15 +2773,15 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2703
2773
|
title: title
|
|
2704
2774
|
}), React.createElement(BaseModalContent, {
|
|
2705
2775
|
id: descriptionId(dialogId),
|
|
2706
|
-
className: modules_c8de1793[
|
|
2776
|
+
className: modules_c8de1793["content"],
|
|
2707
2777
|
disableAutoFocus: true
|
|
2708
2778
|
}, children), React.createElement(DialogActions, {
|
|
2709
2779
|
align: alignActions
|
|
2710
|
-
}, alignActions ===
|
|
2780
|
+
}, alignActions === "left" ? [PrimaryButton, TertiaryButton] : [TertiaryButton, PrimaryButton]), React.createElement("input", {
|
|
2711
2781
|
autoFocus: true,
|
|
2712
2782
|
"aria-hidden": true,
|
|
2713
2783
|
style: {
|
|
2714
|
-
position:
|
|
2784
|
+
position: "absolute",
|
|
2715
2785
|
width: 0,
|
|
2716
2786
|
height: 0,
|
|
2717
2787
|
opacity: 0
|
|
@@ -2736,17 +2806,17 @@ var BaseModalHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2736
2806
|
|
|
2737
2807
|
return React.createElement("div", _extends({}, rest, {
|
|
2738
2808
|
ref: ref,
|
|
2739
|
-
className: modules_74d5dc9f[
|
|
2809
|
+
className: modules_74d5dc9f["header"]
|
|
2740
2810
|
}), React.createElement("div", {
|
|
2741
|
-
className: modules_74d5dc9f[
|
|
2811
|
+
className: modules_74d5dc9f["headline"]
|
|
2742
2812
|
}, React.createElement(Typography, {
|
|
2743
2813
|
id: id,
|
|
2744
|
-
className: modules_74d5dc9f[
|
|
2814
|
+
className: modules_74d5dc9f["title"],
|
|
2745
2815
|
tag: "h1",
|
|
2746
2816
|
variant: "h4"
|
|
2747
2817
|
}, title), React.createElement(IconButton, {
|
|
2748
2818
|
onClick: onClose,
|
|
2749
|
-
className: modules_74d5dc9f[
|
|
2819
|
+
className: modules_74d5dc9f["closeBtn"],
|
|
2750
2820
|
title: "close modal"
|
|
2751
2821
|
}, React.createElement(Icon, {
|
|
2752
2822
|
icon: Icons.Times
|
|
@@ -2842,29 +2912,33 @@ var SlideInModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2842
2912
|
open = _ref.open,
|
|
2843
2913
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
2844
2914
|
|
|
2845
|
-
var _useState = useState(
|
|
2915
|
+
var _useState = useState("hidden"),
|
|
2846
2916
|
classHideOnTransition = _useState[0],
|
|
2847
2917
|
setClassHideOnTransition = _useState[1];
|
|
2848
2918
|
|
|
2849
|
-
var
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2919
|
+
var containerRef = useRef(null);
|
|
2920
|
+
|
|
2921
|
+
var onTransitionEnd = function onTransitionEnd(e) {
|
|
2922
|
+
if (e.target === containerRef.current) {
|
|
2923
|
+
setClassHideOnTransition(function (prev) {
|
|
2924
|
+
return prev ? "" : "hidden";
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2853
2927
|
};
|
|
2854
2928
|
|
|
2855
2929
|
return React.createElement(BaseModal, _extends({}, rest, {
|
|
2856
2930
|
id: id,
|
|
2857
2931
|
open: open,
|
|
2858
|
-
className: modules_0a5af5e0[
|
|
2932
|
+
className: modules_0a5af5e0["slide-in-modal"] + " " + (open ? modules_0a5af5e0["visible"] : "") + " " + (!open ? modules_0a5af5e0[classHideOnTransition] : ""),
|
|
2859
2933
|
containerProps: {
|
|
2860
|
-
className: modules_0a5af5e0[
|
|
2934
|
+
className: modules_0a5af5e0["container"]
|
|
2861
2935
|
},
|
|
2862
2936
|
backdropProps: {
|
|
2863
|
-
className: modules_0a5af5e0[
|
|
2937
|
+
className: modules_0a5af5e0["backdrop-slide"]
|
|
2864
2938
|
},
|
|
2865
2939
|
forceContainerOpen: true,
|
|
2866
2940
|
onTransitionEnd: onTransitionEnd,
|
|
2867
|
-
ref: ref
|
|
2941
|
+
ref: ref || containerRef
|
|
2868
2942
|
}), children);
|
|
2869
2943
|
});
|
|
2870
2944
|
|
|
@@ -2884,7 +2958,7 @@ var SnackbarContainer = function SnackbarContainer(_ref) {
|
|
|
2884
2958
|
style: {
|
|
2885
2959
|
zIndex: zIndex
|
|
2886
2960
|
},
|
|
2887
|
-
className: modules_531ab449[
|
|
2961
|
+
className: modules_531ab449["snackbars"] + " " + modules_531ab449[placement.horizontal] + " " + modules_531ab449[placement.vertical] + " " + (className != null ? className : "")
|
|
2888
2962
|
}), children);
|
|
2889
2963
|
};
|
|
2890
2964
|
|
|
@@ -2907,11 +2981,11 @@ var useAnimation = function useAnimation(callback) {
|
|
|
2907
2981
|
useEffect(function () {
|
|
2908
2982
|
var _animatedObjectRef$cu;
|
|
2909
2983
|
|
|
2910
|
-
(_animatedObjectRef$cu = animatedObjectRef.current) == null ? void 0 : _animatedObjectRef$cu.addEventListener(
|
|
2984
|
+
(_animatedObjectRef$cu = animatedObjectRef.current) == null ? void 0 : _animatedObjectRef$cu.addEventListener("animationend", onAnimationEnd);
|
|
2911
2985
|
return function () {
|
|
2912
2986
|
var _animatedObjectRef$cu2;
|
|
2913
2987
|
|
|
2914
|
-
return (_animatedObjectRef$cu2 = animatedObjectRef.current) == null ? void 0 : _animatedObjectRef$cu2.removeEventListener(
|
|
2988
|
+
return (_animatedObjectRef$cu2 = animatedObjectRef.current) == null ? void 0 : _animatedObjectRef$cu2.removeEventListener("animationend", onAnimationEnd);
|
|
2915
2989
|
};
|
|
2916
2990
|
}, [animationStarted]);
|
|
2917
2991
|
return {
|
|
@@ -2923,7 +2997,7 @@ var useAnimation = function useAnimation(callback) {
|
|
|
2923
2997
|
};
|
|
2924
2998
|
};
|
|
2925
2999
|
|
|
2926
|
-
var textColor =
|
|
3000
|
+
var textColor = "var(--snackbar-text-color)";
|
|
2927
3001
|
var SnackbarItem = function SnackbarItem(_ref) {
|
|
2928
3002
|
var id = _ref.id,
|
|
2929
3003
|
title = _ref.title,
|
|
@@ -2965,11 +3039,11 @@ var SnackbarItem = function SnackbarItem(_ref) {
|
|
|
2965
3039
|
};
|
|
2966
3040
|
|
|
2967
3041
|
var getVariantIcon = function getVariantIcon() {
|
|
2968
|
-
if (variant ===
|
|
3042
|
+
if (variant === "error") {
|
|
2969
3043
|
return Icons.Error;
|
|
2970
3044
|
}
|
|
2971
3045
|
|
|
2972
|
-
return variant ===
|
|
3046
|
+
return variant === "success" ? Icons.CheckmarkCircleBreakout : Icons.InfoCircle;
|
|
2973
3047
|
};
|
|
2974
3048
|
|
|
2975
3049
|
var actionButtons = actions.map(function (actionProp, index) {
|
|
@@ -2981,27 +3055,27 @@ var SnackbarItem = function SnackbarItem(_ref) {
|
|
|
2981
3055
|
actionProp.onClick && actionProp.onClick(e);
|
|
2982
3056
|
},
|
|
2983
3057
|
children: actionProp.label,
|
|
2984
|
-
className: modules_d6335ff6[
|
|
3058
|
+
className: modules_d6335ff6["action-button"]
|
|
2985
3059
|
}));
|
|
2986
3060
|
});
|
|
2987
3061
|
return React.createElement("div", {
|
|
2988
3062
|
ref: ref,
|
|
2989
|
-
className: modules_d6335ff6[
|
|
3063
|
+
className: modules_d6335ff6["snackbar"] + " " + modules_d6335ff6[variant] + " " + (animationStarted ? modules_35a251a6["slide-out"] : modules_35a251a6["slide-in"]),
|
|
2990
3064
|
onMouseEnter: onMouseEnter,
|
|
2991
3065
|
onMouseLeave: onMouseLeave
|
|
2992
3066
|
}, React.createElement(Icon, {
|
|
2993
3067
|
icon: getVariantIcon(),
|
|
2994
|
-
className: modules_d6335ff6[
|
|
3068
|
+
className: modules_d6335ff6["icon"]
|
|
2995
3069
|
}), React.createElement("div", {
|
|
2996
|
-
className: modules_d6335ff6[
|
|
3070
|
+
className: modules_d6335ff6["container"]
|
|
2997
3071
|
}, React.createElement("div", {
|
|
2998
|
-
className: modules_d6335ff6[
|
|
3072
|
+
className: modules_d6335ff6["headline"]
|
|
2999
3073
|
}, React.createElement(Typography, {
|
|
3000
|
-
className: modules_d6335ff6[
|
|
3074
|
+
className: modules_d6335ff6["title"],
|
|
3001
3075
|
variant: "h4",
|
|
3002
3076
|
tag: "span"
|
|
3003
3077
|
}, title), React.createElement(IconButton, {
|
|
3004
|
-
id: modules_d6335ff6[
|
|
3078
|
+
id: modules_d6335ff6["close-btn"],
|
|
3005
3079
|
onClick: function onClick() {
|
|
3006
3080
|
return startAnimation();
|
|
3007
3081
|
},
|
|
@@ -3010,22 +3084,22 @@ var SnackbarItem = function SnackbarItem(_ref) {
|
|
|
3010
3084
|
icon: Icons.Times,
|
|
3011
3085
|
color: textColor
|
|
3012
3086
|
}))), !!content && React.createElement(Typography, {
|
|
3013
|
-
className: modules_d6335ff6[
|
|
3087
|
+
className: modules_d6335ff6["content"],
|
|
3014
3088
|
variant: "body"
|
|
3015
3089
|
}, content), actionButtons.length > 0 && React.createElement("div", {
|
|
3016
|
-
className: modules_d6335ff6[
|
|
3090
|
+
className: modules_d6335ff6["actions"]
|
|
3017
3091
|
}, actionButtons)));
|
|
3018
3092
|
};
|
|
3019
3093
|
|
|
3020
3094
|
var SnackbarProvider = function SnackbarProvider(_temp) {
|
|
3021
3095
|
var _ref = _temp === void 0 ? {
|
|
3022
|
-
closeButtonTitle:
|
|
3096
|
+
closeButtonTitle: ""
|
|
3023
3097
|
} : _temp,
|
|
3024
3098
|
closeButtonTitle = _ref.closeButtonTitle,
|
|
3025
3099
|
_ref$placement = _ref.placement,
|
|
3026
3100
|
placement = _ref$placement === void 0 ? {
|
|
3027
|
-
vertical:
|
|
3028
|
-
horizontal:
|
|
3101
|
+
vertical: "bottom",
|
|
3102
|
+
horizontal: "center"
|
|
3029
3103
|
} : _ref$placement,
|
|
3030
3104
|
_ref$autoHideDuration = _ref.autoHideDuration,
|
|
3031
3105
|
autoHideDuration = _ref$autoHideDuration === void 0 ? {
|
|
@@ -3050,7 +3124,7 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
|
|
|
3050
3124
|
};
|
|
3051
3125
|
|
|
3052
3126
|
var getDuration = function getDuration(variant, actions, content) {
|
|
3053
|
-
var hasError = variant ===
|
|
3127
|
+
var hasError = variant === "error";
|
|
3054
3128
|
var hasContentOrActions = content || actions;
|
|
3055
3129
|
|
|
3056
3130
|
if (hasError || hasContentOrActions) {
|
|
@@ -3067,7 +3141,7 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
|
|
|
3067
3141
|
|
|
3068
3142
|
var _options = options,
|
|
3069
3143
|
_options$variant = _options.variant,
|
|
3070
|
-
variant = _options$variant === void 0 ?
|
|
3144
|
+
variant = _options$variant === void 0 ? "info" : _options$variant,
|
|
3071
3145
|
actions = _options.actions,
|
|
3072
3146
|
_options$duration = _options.duration,
|
|
3073
3147
|
duration = _options$duration === void 0 ? getDuration(variant, actions, content) : _options$duration;
|
|
@@ -3084,13 +3158,13 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
|
|
|
3084
3158
|
|
|
3085
3159
|
var enqueueSuccessSnackbar = function enqueueSuccessSnackbar(title, content, options) {
|
|
3086
3160
|
enqueueSnackbar(title, content, _extends({}, options, {
|
|
3087
|
-
variant:
|
|
3161
|
+
variant: "success"
|
|
3088
3162
|
}));
|
|
3089
3163
|
};
|
|
3090
3164
|
|
|
3091
3165
|
var enqueueErrorSnackbar = function enqueueErrorSnackbar(title, content, options) {
|
|
3092
3166
|
enqueueSnackbar(title, content, _extends({}, options, {
|
|
3093
|
-
variant:
|
|
3167
|
+
variant: "error"
|
|
3094
3168
|
}));
|
|
3095
3169
|
};
|
|
3096
3170
|
|
|
@@ -3130,7 +3204,7 @@ var useFormSelector = function useFormSelector(configObject) {
|
|
|
3130
3204
|
var _useState = useState(generateID(15, configObject.name)),
|
|
3131
3205
|
identifier = _useState[0];
|
|
3132
3206
|
|
|
3133
|
-
var _useState2 = useState(
|
|
3207
|
+
var _useState2 = useState(""),
|
|
3134
3208
|
describedBy = _useState2[0],
|
|
3135
3209
|
setDescribedBy = _useState2[1];
|
|
3136
3210
|
|
|
@@ -3176,7 +3250,7 @@ var FormHelperText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3176
3250
|
ref: ref,
|
|
3177
3251
|
variant: "sub-text",
|
|
3178
3252
|
tag: "div",
|
|
3179
|
-
className: modules_aa38270e[
|
|
3253
|
+
className: modules_aa38270e["form-helper-text"] + " " + (error ? modules_aa38270e.error : "") + " " + (className != null ? className : "")
|
|
3180
3254
|
}), children);
|
|
3181
3255
|
});
|
|
3182
3256
|
|
|
@@ -3205,15 +3279,15 @@ var FormSelectorWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3205
3279
|
var helperRef = (helperProps == null ? void 0 : helperProps.ref) || createRef();
|
|
3206
3280
|
return React.createElement("div", _extends({}, rest, {
|
|
3207
3281
|
ref: ref,
|
|
3208
|
-
className: (error ? modules_b6c89faa[
|
|
3282
|
+
className: (error ? modules_b6c89faa["error"] : "") + " " + (disabled ? modules_b6c89faa["disabled"] : "") + " " + (className != null ? className : "")
|
|
3209
3283
|
}), React.createElement("div", _extends({}, containerProps), children), (helperText || helperProps && helperProps.children) && (!error || parentErrorId || !errorMessage) && React.createElement(FormHelperText, _extends({}, helperProps, {
|
|
3210
3284
|
ref: helperRef,
|
|
3211
3285
|
id: "" + identifier,
|
|
3212
|
-
className: modules_b6c89faa[
|
|
3286
|
+
className: modules_b6c89faa["helper-text"] + " " + ((_helperProps$classNam = helperProps == null ? void 0 : helperProps.className) != null ? _helperProps$classNam : "") + " " + (error ? modules_b6c89faa["error"] : "")
|
|
3213
3287
|
}), helperProps && helperProps.children || helperText), errorMessage && !parentErrorId && error && React.createElement("span", {
|
|
3214
|
-
className: modules_b6c89faa[
|
|
3288
|
+
className: modules_b6c89faa["error-message"]
|
|
3215
3289
|
}, React.createElement(Icon, {
|
|
3216
|
-
className: modules_b6c89faa[
|
|
3290
|
+
className: modules_b6c89faa["error-icon"],
|
|
3217
3291
|
icon: Icons.Error
|
|
3218
3292
|
}), React.createElement("span", {
|
|
3219
3293
|
id: errorId
|
|
@@ -3225,7 +3299,7 @@ var _excluded$n = ["children", "name", "helperText", "helperProps", "indetermina
|
|
|
3225
3299
|
var isToggle = function isToggle(children) {
|
|
3226
3300
|
var _children$props;
|
|
3227
3301
|
|
|
3228
|
-
return children == null ? void 0 : (_children$props = children.props) == null ? void 0 : _children$props[
|
|
3302
|
+
return children == null ? void 0 : (_children$props = children.props) == null ? void 0 : _children$props["data-toggle"];
|
|
3229
3303
|
};
|
|
3230
3304
|
|
|
3231
3305
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -3264,8 +3338,8 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3264
3338
|
throw new Error("Please pass a 'name' prop to your <Checkbox> component.");
|
|
3265
3339
|
}
|
|
3266
3340
|
|
|
3267
|
-
if (typeof children ===
|
|
3268
|
-
throw new Error(
|
|
3341
|
+
if (typeof children === "object" && !isToggle(children) && indeterminate === undefined) {
|
|
3342
|
+
throw new Error("If you have nested checkboxes you have to manage the indeterminate state by passing a boolean to the `indeterminate` prop.");
|
|
3269
3343
|
}
|
|
3270
3344
|
}, []);
|
|
3271
3345
|
|
|
@@ -3273,19 +3347,19 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3273
3347
|
if (label) {
|
|
3274
3348
|
return label;
|
|
3275
3349
|
} else if (children === undefined) {
|
|
3276
|
-
throw new Error(
|
|
3350
|
+
throw new Error("Please make sure to pass either a string or more Checkbox components as a child of your Checkbox component.");
|
|
3277
3351
|
}
|
|
3278
3352
|
|
|
3279
|
-
if (typeof children ===
|
|
3353
|
+
if (typeof children === "string") {
|
|
3280
3354
|
return children;
|
|
3281
3355
|
}
|
|
3282
3356
|
|
|
3283
|
-
throw new Error(
|
|
3357
|
+
throw new Error("If you pass Checkboxes as a child component (to create nested checkbox tree) you need to pass a label to the parent checkbox.");
|
|
3284
3358
|
};
|
|
3285
3359
|
|
|
3286
3360
|
var renderNestedCheckboxes = function renderNestedCheckboxes() {
|
|
3287
3361
|
return React.createElement("ul", {
|
|
3288
|
-
className: modules_6238daf1[
|
|
3362
|
+
className: modules_6238daf1["checkbox-list"]
|
|
3289
3363
|
}, React.Children.map(children, function (child) {
|
|
3290
3364
|
return React.createElement("li", null, React.createElement(Checkbox, _extends({}, child.props, {
|
|
3291
3365
|
parentHelperId: parentHelperId,
|
|
@@ -3308,13 +3382,13 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3308
3382
|
return React.Children.toArray(children).filter(isToggle);
|
|
3309
3383
|
};
|
|
3310
3384
|
|
|
3311
|
-
var iconClasses = [modules_6238daf1[
|
|
3385
|
+
var iconClasses = [modules_6238daf1["input"], disabled ? modules_6238daf1["disabled"] : ""];
|
|
3312
3386
|
/** Default return value is the default checkbox */
|
|
3313
3387
|
|
|
3314
3388
|
return React.createElement(FormSelectorWrapper, _extends({}, formSelectorWrapperProps, {
|
|
3315
|
-
className: modules_6238daf1[
|
|
3389
|
+
className: modules_6238daf1["checkbox-wrapper"] + " " + (className ? className : ""),
|
|
3316
3390
|
containerProps: {
|
|
3317
|
-
className: modules_6238daf1[
|
|
3391
|
+
className: modules_6238daf1["checkbox-container"]
|
|
3318
3392
|
},
|
|
3319
3393
|
helperText: helperText,
|
|
3320
3394
|
helperProps: helperProps,
|
|
@@ -3324,27 +3398,27 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3324
3398
|
error: error,
|
|
3325
3399
|
disabled: disabled,
|
|
3326
3400
|
identifier: identifier,
|
|
3327
|
-
nestedChildren: typeof children ===
|
|
3401
|
+
nestedChildren: typeof children === "object" && !isToggle(children) && renderNestedCheckboxes()
|
|
3328
3402
|
}), React.createElement("input", _extends({}, rest, {
|
|
3329
3403
|
ref: ref,
|
|
3330
3404
|
disabled: disabled,
|
|
3331
|
-
className: modules_6238daf1[
|
|
3405
|
+
className: modules_6238daf1["native-input"] + " " + (error ? modules_6238daf1["error"] : ""),
|
|
3332
3406
|
checked: checked,
|
|
3333
3407
|
onChange: onChangeHandler,
|
|
3334
3408
|
"aria-invalid": error,
|
|
3335
|
-
"aria-checked": indeterminate ?
|
|
3409
|
+
"aria-checked": indeterminate ? "mixed" : checked,
|
|
3336
3410
|
"aria-describedby": describedBy,
|
|
3337
3411
|
id: identifier + "-checkbox",
|
|
3338
3412
|
name: name,
|
|
3339
3413
|
type: "checkbox"
|
|
3340
3414
|
})), renderToggle(), indeterminate && React.createElement(Icon, {
|
|
3341
|
-
className: iconClasses.join(
|
|
3415
|
+
className: iconClasses.join(" "),
|
|
3342
3416
|
icon: Icons.MinusSquare
|
|
3343
3417
|
}), checked && !indeterminate && React.createElement(Icon, {
|
|
3344
|
-
className: iconClasses.join(
|
|
3418
|
+
className: iconClasses.join(" "),
|
|
3345
3419
|
icon: Icons.CheckmarkSquare
|
|
3346
3420
|
}), !checked && !indeterminate && React.createElement(Icon, {
|
|
3347
|
-
className: iconClasses.join(
|
|
3421
|
+
className: iconClasses.join(" "),
|
|
3348
3422
|
icon: Icons.Square
|
|
3349
3423
|
}), React.createElement("label", {
|
|
3350
3424
|
htmlFor: identifier + "-checkbox"
|
|
@@ -3399,7 +3473,7 @@ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3399
3473
|
|
|
3400
3474
|
var nativeEvent = event.nativeEvent || event;
|
|
3401
3475
|
var clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
3402
|
-
Object.defineProperty(clonedEvent,
|
|
3476
|
+
Object.defineProperty(clonedEvent, "target", {
|
|
3403
3477
|
writable: true,
|
|
3404
3478
|
value: {
|
|
3405
3479
|
value: value
|
|
@@ -3411,9 +3485,9 @@ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3411
3485
|
|
|
3412
3486
|
|
|
3413
3487
|
return React.createElement(FormSelectorWrapper, _extends({}, formSelectorWrapperProps, {
|
|
3414
|
-
className: modules_8fc278f9[
|
|
3488
|
+
className: modules_8fc278f9["radio-wrapper"] + " " + (className != null ? className : ""),
|
|
3415
3489
|
containerProps: {
|
|
3416
|
-
className: modules_8fc278f9[
|
|
3490
|
+
className: modules_8fc278f9["radio-container"]
|
|
3417
3491
|
},
|
|
3418
3492
|
helperText: helperText,
|
|
3419
3493
|
helperProps: helperProps,
|
|
@@ -3427,7 +3501,7 @@ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3427
3501
|
ref: ref,
|
|
3428
3502
|
disabled: disabled,
|
|
3429
3503
|
tabIndex: 0,
|
|
3430
|
-
className: modules_8fc278f9[
|
|
3504
|
+
className: modules_8fc278f9["native-input"] + " " + (error ? modules_8fc278f9["error"] : ""),
|
|
3431
3505
|
onChange: onChangeHandler,
|
|
3432
3506
|
checked: checked,
|
|
3433
3507
|
"aria-invalid": error ? true : false,
|
|
@@ -3438,10 +3512,10 @@ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3438
3512
|
id: identifier + "-radio",
|
|
3439
3513
|
type: "radio"
|
|
3440
3514
|
})), checked && React.createElement(Icon, {
|
|
3441
|
-
className: modules_8fc278f9[
|
|
3515
|
+
className: modules_8fc278f9["input"] + " " + (disabled ? modules_8fc278f9["disabled"] : ""),
|
|
3442
3516
|
icon: Icons.Radio
|
|
3443
3517
|
}), !checked && React.createElement(Icon, {
|
|
3444
|
-
className: modules_8fc278f9[
|
|
3518
|
+
className: modules_8fc278f9["input"] + " " + (disabled ? modules_8fc278f9["disabled"] : ""),
|
|
3445
3519
|
icon: Icons.Circle
|
|
3446
3520
|
}), React.createElement("label", {
|
|
3447
3521
|
onClick: onChangeHandler,
|
|
@@ -3449,13 +3523,13 @@ var Radio = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3449
3523
|
}, children));
|
|
3450
3524
|
});
|
|
3451
3525
|
|
|
3452
|
-
var css$j = ".
|
|
3453
|
-
var modules_5a9ee489 = {"textarea-wrapper":"
|
|
3526
|
+
var css$j = ".Textarea_module_srOnly__aa539557 {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.Textarea_module_hidden__aa539557 {\n display: none;\n}\n\n.Textarea_module_slideIn__aa539557 {\n animation: Textarea_module_slideIn__aa539557 0.5s forwards;\n}\n\n.Textarea_module_slideOut__aa539557 {\n animation: Textarea_module_slideOut__aa539557 0.5s forwards;\n}\n\n@keyframes Textarea_module_slideIn__aa539557 {\n 0% {\n transform: translateY(100vh);\n }\n 100% {\n transform: translateY(0%);\n }\n}\n@keyframes Textarea_module_slideOut__aa539557 {\n 0% {\n transform: translateY(0%);\n }\n 100% {\n transform: translateY(100vh);\n }\n}\n.Textarea_module_textareaWrapper__aa539557 {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n}\n.Textarea_module_textareaWrapper__aa539557:hover .Textarea_module_outline__aa539557 {\n border-color: var(--default);\n}\n.Textarea_module_textareaWrapper__aa539557 .Textarea_module_outline__aa539557.Textarea_module_disabled__aa539557 {\n border-color: #fff;\n}\n.Textarea_module_textareaWrapper__aa539557 .Textarea_module_outline__aa539557.Textarea_module_error__aa539557 {\n border-color: var(--error);\n}\n.Textarea_module_textareaWrapper__aa539557 .Textarea_module_outline__aa539557.Textarea_module_focus__aa539557 {\n border-width: var(--input-border-width-focus);\n}\n.Textarea_module_textareaWrapper__aa539557 .Textarea_module_outline__aa539557.Textarea_module_focus__aa539557:not(.Textarea_module_error__aa539557) {\n border-color: var(--color-primary);\n}\n\n.Textarea_module_textarea__aa539557 {\n padding: 0.75rem 3.75rem 0.75rem 1.25rem;\n box-sizing: border-box;\n border: 0;\n border-radius: var(--input-border-radius);\n transition: all 0.2s ease-in-out;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--greyed-out);\n width: 100%;\n vertical-align: top;\n resize: vertical;\n}\n.Textarea_module_textarea__aa539557:disabled {\n background-color: var(--disabled);\n cursor: not-allowed;\n}\n.Textarea_module_textarea__aa539557:focus:not(:disabled) {\n outline: none;\n}\n\n.Textarea_module_outline__aa539557 {\n pointer-events: none;\n position: absolute;\n margin: 0;\n padding: 0;\n inset: 0;\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n transition: all 0.2s ease-in-out;\n}\n\n.Textarea_module_error__aa539557 {\n border-color: var(--error);\n color: var(--error);\n}\n\n.Textarea_module_warning__aa539557 {\n color: var(--error);\n position: absolute;\n right: 1.25rem;\n top: 0.75rem;\n font-size: 1.25rem;\n}";
|
|
3527
|
+
var modules_5a9ee489 = {"sr-only":"Textarea_module_srOnly__aa539557","hidden":"Textarea_module_hidden__aa539557","slide-in":"Textarea_module_slideIn__aa539557","slide-out":"Textarea_module_slideOut__aa539557","textarea-wrapper":"Textarea_module_textareaWrapper__aa539557","outline":"Textarea_module_outline__aa539557","disabled":"Textarea_module_disabled__aa539557","error":"Textarea_module_error__aa539557","focus":"Textarea_module_focus__aa539557","textarea":"Textarea_module_textarea__aa539557","warning":"Textarea_module_warning__aa539557"};
|
|
3454
3528
|
n(css$j,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
3455
3529
|
|
|
3456
|
-
var _excluded$l = ["error", "disabled", "className", "rows", "wrapperProps", "errorProps"];
|
|
3530
|
+
var _excluded$l = ["error", "disabled", "className", "rows", "wrapperProps", "errorProps", "onFocus", "onBlur"];
|
|
3457
3531
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3458
|
-
var
|
|
3532
|
+
var _errorProps$className;
|
|
3459
3533
|
|
|
3460
3534
|
var _ref$error = _ref.error,
|
|
3461
3535
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
@@ -3466,19 +3540,41 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3466
3540
|
rows = _ref$rows === void 0 ? 4 : _ref$rows,
|
|
3467
3541
|
wrapperProps = _ref.wrapperProps,
|
|
3468
3542
|
errorProps = _ref.errorProps,
|
|
3543
|
+
_onFocus = _ref.onFocus,
|
|
3544
|
+
_onBlur = _ref.onBlur,
|
|
3469
3545
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
3470
3546
|
|
|
3547
|
+
var _useState = useState(false),
|
|
3548
|
+
focus = _useState[0],
|
|
3549
|
+
setFocus = _useState[1];
|
|
3550
|
+
|
|
3551
|
+
var wrapperClasses = [modules_5a9ee489["textarea-wrapper"]];
|
|
3552
|
+
var outlineClasses = [modules_5a9ee489["outline"]];
|
|
3553
|
+
(wrapperProps == null ? void 0 : wrapperProps.className) && wrapperClasses.push(wrapperProps.className);
|
|
3554
|
+
disabled && wrapperClasses.push(modules_5a9ee489["disabled"]) && outlineClasses.push(modules_5a9ee489["disabled"]);
|
|
3555
|
+
error && wrapperClasses.push(modules_5a9ee489["error"]) && outlineClasses.push(modules_5a9ee489["error"]);
|
|
3556
|
+
focus && wrapperClasses.push(modules_5a9ee489["focus"]) && outlineClasses.push(modules_5a9ee489["focus"]);
|
|
3471
3557
|
return React.createElement("div", _extends({}, wrapperProps, {
|
|
3472
|
-
className:
|
|
3558
|
+
className: wrapperClasses.join(" ")
|
|
3473
3559
|
}), React.createElement("textarea", _extends({}, rest, {
|
|
3474
3560
|
ref: ref,
|
|
3475
3561
|
rows: rows,
|
|
3476
|
-
className: (error ? modules_5a9ee489[
|
|
3477
|
-
disabled: disabled
|
|
3562
|
+
className: (error ? modules_5a9ee489["error"] : "") + " " + modules_5a9ee489["textarea"] + " " + (className != null ? className : ""),
|
|
3563
|
+
disabled: disabled,
|
|
3564
|
+
onFocus: function onFocus(event) {
|
|
3565
|
+
setFocus(true);
|
|
3566
|
+
_onFocus && _onFocus(event);
|
|
3567
|
+
},
|
|
3568
|
+
onBlur: function onBlur(event) {
|
|
3569
|
+
setFocus(false);
|
|
3570
|
+
_onBlur && _onBlur(event);
|
|
3571
|
+
}
|
|
3478
3572
|
})), error && React.createElement(Icon, _extends({}, errorProps, {
|
|
3479
|
-
className: modules_5a9ee489[
|
|
3573
|
+
className: modules_5a9ee489["warning"] + " " + ((_errorProps$className = errorProps == null ? void 0 : errorProps.className) != null ? _errorProps$className : ""),
|
|
3480
3574
|
icon: Icons.Error
|
|
3481
|
-
}))
|
|
3575
|
+
})), React.createElement("span", {
|
|
3576
|
+
className: outlineClasses.join(" ")
|
|
3577
|
+
}));
|
|
3482
3578
|
});
|
|
3483
3579
|
|
|
3484
3580
|
var css$i = ".Toggle_module_toggleWrapper__59f0ddfa {\n display: flex;\n align-items: center;\n position: relative;\n}\n\n.Toggle_module_toggle__59f0ddfa {\n width: 2rem;\n min-width: 2rem;\n height: 1.25rem;\n background-color: var(--default);\n border-radius: 2.5rem;\n position: relative;\n transition: background-color 0.2s ease-in-out;\n display: block;\n pointer-events: none;\n}\n.Toggle_module_toggle__59f0ddfa.Toggle_module_disabled__59f0ddfa {\n opacity: 0.25;\n cursor: not-allowed;\n}\n.Toggle_module_toggle__59f0ddfa:before {\n content: \"\";\n width: 1rem;\n height: 1rem;\n border-radius: 50%;\n display: block;\n background-color: #fff;\n position: absolute;\n top: 50%;\n transform: translateY(-50%) translateX(0);\n left: 0.125rem;\n transition: transform 0.2s ease-in-out;\n}\n.Toggle_module_toggle__59f0ddfa.Toggle_module_checked__59f0ddfa {\n background-color: var(--color-primary);\n}\n.Toggle_module_toggle__59f0ddfa.Toggle_module_checked__59f0ddfa:before {\n transform: translateY(-50%) translateX(calc(100% - 0.25rem));\n}\n\n.Toggle_module_toggleHelper__59f0ddfa {\n margin-left: 2.5rem;\n}\n\n.Toggle_module_checkbox__59f0ddfa {\n z-index: 10;\n position: static;\n}\n.Toggle_module_checkbox__59f0ddfa input {\n width: 2rem;\n}\n.Toggle_module_checkbox__59f0ddfa input ~ [data-icon][aria-hidden] {\n display: none;\n}\n.Toggle_module_checkbox__59f0ddfa input:focus-visible + * {\n border-radius: 2.5rem;\n}";
|
|
@@ -3494,20 +3590,20 @@ var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3494
3590
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3495
3591
|
|
|
3496
3592
|
return React.createElement("div", {
|
|
3497
|
-
className: modules_b5ebad0d[
|
|
3593
|
+
className: modules_b5ebad0d["toggle-wrapper"]
|
|
3498
3594
|
}, React.createElement(Checkbox, _extends({}, rest, {
|
|
3499
3595
|
ref: ref,
|
|
3500
3596
|
checked: checked,
|
|
3501
|
-
className: modules_b5ebad0d[
|
|
3597
|
+
className: modules_b5ebad0d["checkbox"],
|
|
3502
3598
|
helperProps: _extends({
|
|
3503
|
-
className: modules_b5ebad0d[
|
|
3599
|
+
className: modules_b5ebad0d["toggle-helper"]
|
|
3504
3600
|
}, helperProps),
|
|
3505
3601
|
disabled: disabled,
|
|
3506
3602
|
label: children
|
|
3507
3603
|
}), React.createElement("span", {
|
|
3508
3604
|
"data-toggle": true,
|
|
3509
3605
|
"aria-hidden": "true",
|
|
3510
|
-
className: modules_b5ebad0d[
|
|
3606
|
+
className: modules_b5ebad0d["toggle"] + " " + (checked ? modules_b5ebad0d["checked"] : "") + " " + (disabled ? modules_b5ebad0d["disabled"] : "") + " "
|
|
3511
3607
|
})));
|
|
3512
3608
|
});
|
|
3513
3609
|
|
|
@@ -3523,7 +3619,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3523
3619
|
className = _ref.className,
|
|
3524
3620
|
grid = _ref.grid,
|
|
3525
3621
|
_ref$align = _ref.align,
|
|
3526
|
-
align = _ref$align === void 0 ?
|
|
3622
|
+
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
3527
3623
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3528
3624
|
|
|
3529
3625
|
var renderChildren = function renderChildren() {
|
|
@@ -3539,7 +3635,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3539
3635
|
|
|
3540
3636
|
if (grid && grid > 1) {
|
|
3541
3637
|
return React.createElement("div", {
|
|
3542
|
-
className: modules_1d54e29e[
|
|
3638
|
+
className: modules_1d54e29e["col-" + grid] + " " + modules_1d54e29e.column
|
|
3543
3639
|
}, childElement);
|
|
3544
3640
|
}
|
|
3545
3641
|
|
|
@@ -3550,12 +3646,12 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3550
3646
|
return React.createElement("div", _extends({}, rest, {
|
|
3551
3647
|
ref: ref,
|
|
3552
3648
|
"data-formcontrol": true,
|
|
3553
|
-
className: modules_1d54e29e[
|
|
3649
|
+
className: modules_1d54e29e["form-control"] + " " + (className ? className : "") + " " + (grid && grid > 1 ? modules_1d54e29e.grid + " " + modules_1d54e29e["grid-" + grid] : "") + " " + modules_1d54e29e[align]
|
|
3554
3650
|
}), renderChildren());
|
|
3555
3651
|
});
|
|
3556
3652
|
|
|
3557
|
-
var css$g = ".
|
|
3558
|
-
var modules_bc06a1ad = {"input-label":"
|
|
3653
|
+
var css$g = ".InputWrapper_module_srOnly__e331d9b4 {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.InputWrapper_module_hidden__e331d9b4 {\n display: none;\n}\n\n.InputWrapper_module_slideIn__e331d9b4 {\n animation: InputWrapper_module_slideIn__e331d9b4 0.5s forwards;\n}\n\n.InputWrapper_module_slideOut__e331d9b4 {\n animation: InputWrapper_module_slideOut__e331d9b4 0.5s forwards;\n}\n\n@keyframes InputWrapper_module_slideIn__e331d9b4 {\n 0% {\n transform: translateY(100vh);\n }\n 100% {\n transform: translateY(0%);\n }\n}\n@keyframes InputWrapper_module_slideOut__e331d9b4 {\n 0% {\n transform: translateY(0%);\n }\n 100% {\n transform: translateY(100vh);\n }\n}\nlabel.InputWrapper_module_inputLabel__e331d9b4.InputWrapper_module_focus__e331d9b4 {\n color: var(--color-primary);\n}\n\ninput.InputWrapper_module_floatingLabel__e331d9b4 {\n padding-top: 0.625rem;\n}\n\n.InputWrapper_module_inputWrapperHelper__e331d9b4 {\n margin-top: 0.25rem;\n}\n\n.InputWrapper_module_inputWrapper__e331d9b4 [data-icon]:before {\n transition: 0.2s ease-in-out;\n transform: translateY(0px);\n font-size: 1.125rem;\n}\n\n.InputWrapper_module_inputWrapper__e331d9b4 .InputWrapper_module_floatingLabelActive__e331d9b4 [data-icon]:before {\n transform: translateY(5px);\n}\n\n.InputWrapper_module_inputWrapper__e331d9b4 [data-prefix],\n.InputWrapper_module_inputWrapper__e331d9b4 [data-suffix] {\n transform: translateY(-0.125rem);\n}\n\n.InputWrapper_module_floatingLabelActive__e331d9b4 [data-prefix],\n.InputWrapper_module_floatingLabelActive__e331d9b4 [data-suffix] {\n padding-top: 0.5rem;\n transform: translateY(0);\n}";
|
|
3654
|
+
var modules_bc06a1ad = {"sr-only":"InputWrapper_module_srOnly__e331d9b4","hidden":"InputWrapper_module_hidden__e331d9b4","slide-in":"InputWrapper_module_slideIn__e331d9b4","slide-out":"InputWrapper_module_slideOut__e331d9b4","input-label":"InputWrapper_module_inputLabel__e331d9b4","focus":"InputWrapper_module_focus__e331d9b4","floating-label":"InputWrapper_module_floatingLabel__e331d9b4","input-wrapper-helper":"InputWrapper_module_inputWrapperHelper__e331d9b4","input-wrapper":"InputWrapper_module_inputWrapper__e331d9b4","floating-label-active":"InputWrapper_module_floatingLabelActive__e331d9b4"};
|
|
3559
3655
|
n(css$g,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
3560
3656
|
|
|
3561
3657
|
var css$f = ".FormGroup_module_formGroup__65001d8c {\n position: relative;\n}\n\n.FormGroup_module_error__65001d8c {\n color: var(--error);\n}\n\n.FormGroup_module_errorMessage__65001d8c {\n display: flex;\n align-items: flex-end;\n}\n\n.FormGroup_module_errorIcon__65001d8c {\n margin-right: 0.5rem;\n font-size: 1.25rem;\n}\n.FormGroup_module_errorIconBefore__65001d8c {\n margin-right: 0.5rem;\n}\n.FormGroup_module_errorIconAfter__65001d8c {\n margin-left: 0.5rem;\n}\n\n.FormGroup_module_defaultHelper__65001d8c {\n font-size: 0.75rem;\n}";
|
|
@@ -3571,7 +3667,7 @@ var FormGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3571
3667
|
errorId = _ref.errorId,
|
|
3572
3668
|
errorMessageIcon = _ref.errorMessageIcon,
|
|
3573
3669
|
_ref$errorMessageIcon = _ref.errorMessageIconPosition,
|
|
3574
|
-
errorMessageIconPosition = _ref$errorMessageIcon === void 0 ?
|
|
3670
|
+
errorMessageIconPosition = _ref$errorMessageIcon === void 0 ? "before" : _ref$errorMessageIcon,
|
|
3575
3671
|
helperText = _ref.helperText,
|
|
3576
3672
|
helperId = _ref.helperId,
|
|
3577
3673
|
helperProps = _ref.helperProps,
|
|
@@ -3580,31 +3676,31 @@ var FormGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3580
3676
|
|
|
3581
3677
|
return React.createElement("div", _extends({}, rest, {
|
|
3582
3678
|
ref: ref,
|
|
3583
|
-
className: modules_8377bc0c[
|
|
3679
|
+
className: modules_8377bc0c["form-group"] + " " + (error ? modules_8377bc0c.error : "") + " " + (className != null ? className : "")
|
|
3584
3680
|
}), children, (helperText || errorMessage && error) && React.createElement("div", {
|
|
3585
3681
|
style: {
|
|
3586
3682
|
marginLeft: helperIndent + "px"
|
|
3587
3683
|
},
|
|
3588
|
-
className: modules_8377bc0c[
|
|
3684
|
+
className: modules_8377bc0c["default-helper"] + " " + (helperProps != null && helperProps.className ? helperProps.className : "")
|
|
3589
3685
|
}, helperText && !error && React.createElement(FormHelperText, _extends({}, helperProps, {
|
|
3590
|
-
className:
|
|
3686
|
+
className: "",
|
|
3591
3687
|
id: helperId
|
|
3592
3688
|
}), helperProps && helperProps.children || helperText), error && errorMessage && React.createElement("span", {
|
|
3593
|
-
className: modules_8377bc0c[
|
|
3689
|
+
className: modules_8377bc0c["error-message"]
|
|
3594
3690
|
}, React.createElement("span", {
|
|
3595
3691
|
className: modules_8377bc0c.message,
|
|
3596
3692
|
id: errorId
|
|
3597
|
-
}, errorMessageIcon && errorMessageIconPosition ===
|
|
3598
|
-
className: modules_8377bc0c[
|
|
3693
|
+
}, errorMessageIcon && errorMessageIconPosition === "before" && React.createElement(Icon, {
|
|
3694
|
+
className: modules_8377bc0c["error-icon"] + " " + modules_8377bc0c["error-icon-before"],
|
|
3599
3695
|
icon: errorMessageIcon
|
|
3600
|
-
}), errorMessage, errorMessageIcon && errorMessageIconPosition ===
|
|
3601
|
-
className: modules_8377bc0c[
|
|
3696
|
+
}), errorMessage, errorMessageIcon && errorMessageIconPosition === "after" && React.createElement(Icon, {
|
|
3697
|
+
className: modules_8377bc0c["error-icon"] + " " + modules_8377bc0c["error-icon-after"],
|
|
3602
3698
|
icon: errorMessageIcon
|
|
3603
3699
|
})))));
|
|
3604
3700
|
});
|
|
3605
3701
|
|
|
3606
|
-
var css$e = ".
|
|
3607
|
-
var modules_e401a244 = {"floating-wrapper":"
|
|
3702
|
+
var css$e = ".Wrapper_module_floatingWrapper__7d8bd865 {\n position: relative;\n}\n\n.Wrapper_module_floatingLabel__7d8bd865 {\n font-family: var(--font-family);\n font-size: 1rem;\n position: absolute;\n z-index: 1;\n top: 1.3125rem;\n left: 1.25rem;\n transform-origin: left top;\n transition: all 0.2s ease-in-out;\n pointer-events: none;\n}\n.Wrapper_module_floatingLabel__7d8bd865.Wrapper_module_floatingLabelActive__7d8bd865 {\n font-size: 0.75rem;\n transform: translateY(-0.75rem);\n color: var(--default);\n}\n.Wrapper_module_floatingLabel__7d8bd865.Wrapper_module_error__7d8bd865 {\n color: var(--error);\n}\n\n.Wrapper_module_wrapper__7d8bd865 + fieldset,\n.Wrapper_module_wrapper__7d8bd865 + .Wrapper_module_wrapper__7d8bd865 {\n margin-top: 1rem;\n}\n\n.Wrapper_module_required__7d8bd865:after {\n content: \" *\";\n}";
|
|
3703
|
+
var modules_e401a244 = {"floating-wrapper":"Wrapper_module_floatingWrapper__7d8bd865","floating-label":"Wrapper_module_floatingLabel__7d8bd865","floating-label-active":"Wrapper_module_floatingLabelActive__7d8bd865","error":"Wrapper_module_error__7d8bd865","wrapper":"Wrapper_module_wrapper__7d8bd865","required":"Wrapper_module_required__7d8bd865"};
|
|
3608
3704
|
n(css$e,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
3609
3705
|
|
|
3610
3706
|
var _excluded$h = ["children", "className", "error", "errorMessage", "errorId", "errorMessageIcon", "errorMessageIconPosition", "helperText", "helperId", "floatingLabel", "floatingLabelActive", "required", "helperProps", "helperIndent", "labelProps", "label", "disabled", "name", "innerClassName"];
|
|
@@ -3640,14 +3736,14 @@ var Wrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3640
3736
|
};
|
|
3641
3737
|
|
|
3642
3738
|
var labelClasses = [];
|
|
3643
|
-
floatingLabel && labelClasses.push(modules_e401a244[
|
|
3644
|
-
floatingLabel && floatingLabelActive && labelClasses.push(modules_e401a244[
|
|
3739
|
+
floatingLabel && labelClasses.push(modules_e401a244["floating-label"]);
|
|
3740
|
+
floatingLabel && floatingLabelActive && labelClasses.push(modules_e401a244["floating-label-active"]);
|
|
3645
3741
|
(labelProps == null ? void 0 : labelProps.className) && labelClasses.push(labelProps.className);
|
|
3646
|
-
required && labelClasses.push(modules_e401a244[
|
|
3647
|
-
error && labelClasses.push(modules_e401a244[
|
|
3742
|
+
required && labelClasses.push(modules_e401a244["required"]);
|
|
3743
|
+
error && labelClasses.push(modules_e401a244["error"]);
|
|
3648
3744
|
return React.createElement("div", _extends({}, rest, {
|
|
3649
3745
|
ref: ref,
|
|
3650
|
-
className: modules_e401a244.wrapper + " " + (className ? className :
|
|
3746
|
+
className: modules_e401a244.wrapper + " " + (className ? className : "")
|
|
3651
3747
|
}), React.createElement(FormGroup, {
|
|
3652
3748
|
error: error,
|
|
3653
3749
|
errorMessage: errorMessage,
|
|
@@ -3659,9 +3755,9 @@ var Wrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3659
3755
|
helperProps: helperProps,
|
|
3660
3756
|
helperIndent: helperIndent
|
|
3661
3757
|
}, React.createElement("div", {
|
|
3662
|
-
className: (floatingLabel ? modules_e401a244[
|
|
3758
|
+
className: (floatingLabel ? modules_e401a244["floating-wrapper"] : "") + " " + (innerClassName ? innerClassName : "")
|
|
3663
3759
|
}, label && React.createElement(Label, _extends({}, labelProps, {
|
|
3664
|
-
className: modules_e401a244.label + " " + labelClasses.join(
|
|
3760
|
+
className: modules_e401a244.label + " " + labelClasses.join(" "),
|
|
3665
3761
|
htmlFor: name
|
|
3666
3762
|
}), label), renderChildren())));
|
|
3667
3763
|
});
|
|
@@ -3685,14 +3781,14 @@ var useWrapper = function useWrapper(value, placeholder, type) {
|
|
|
3685
3781
|
setHasFocus = _useState5[1];
|
|
3686
3782
|
|
|
3687
3783
|
useEffect(function () {
|
|
3688
|
-
if (value != null && value.length && value.length > 0 || placeholder || type ===
|
|
3784
|
+
if (value != null && value.length && value.length > 0 || placeholder || type === "datetime-local" || type === "time" || type === "date") {
|
|
3689
3785
|
setFloatingLabelActive(true);
|
|
3690
3786
|
}
|
|
3691
3787
|
}, []);
|
|
3692
3788
|
useEffect(function () {
|
|
3693
3789
|
if (value != null && value.length && value.length > 0 || hasFocus) {
|
|
3694
3790
|
setFloatingLabelActive(true);
|
|
3695
|
-
} else if (!placeholder && !hasFocus && type !==
|
|
3791
|
+
} else if (!placeholder && !hasFocus && type !== "datetime-local" && type !== "time" && type !== "date") {
|
|
3696
3792
|
setFloatingLabelActive(false);
|
|
3697
3793
|
}
|
|
3698
3794
|
}, [value, placeholder, type, hasFocus]);
|
|
@@ -3709,7 +3805,7 @@ var useWrapper = function useWrapper(value, placeholder, type) {
|
|
|
3709
3805
|
|
|
3710
3806
|
var _excluded$g = ["type", "name", "inputProps", "helperText", "helperProps", "value", "className", "error", "onChange", "onBlur", "onFocus"];
|
|
3711
3807
|
|
|
3712
|
-
var useLabelOffset = function useLabelOffset(
|
|
3808
|
+
var useLabelOffset = function useLabelOffset(input, floatingLabelActive, prefix) {
|
|
3713
3809
|
var _useState = useState({}),
|
|
3714
3810
|
labelOffset = _useState[0],
|
|
3715
3811
|
setLabelOffset = _useState[1];
|
|
@@ -3721,17 +3817,18 @@ var useLabelOffset = function useLabelOffset(wrapper, input, floatingLabelActive
|
|
|
3721
3817
|
};
|
|
3722
3818
|
|
|
3723
3819
|
useEffect(function () {
|
|
3724
|
-
if (
|
|
3820
|
+
if (input.current && prefix) {
|
|
3725
3821
|
if (floatingLabelActive) {
|
|
3726
3822
|
resetLabelOffset();
|
|
3727
3823
|
} else {
|
|
3728
|
-
var
|
|
3824
|
+
var spacingBetweenPrefixAndInput = 4;
|
|
3825
|
+
var prefixDifference = getComputedStyle(input.current).paddingLeft + spacingBetweenPrefixAndInput;
|
|
3729
3826
|
setLabelOffset({
|
|
3730
3827
|
left: prefixDifference + "px"
|
|
3731
3828
|
});
|
|
3732
3829
|
}
|
|
3733
3830
|
}
|
|
3734
|
-
}, [
|
|
3831
|
+
}, [input.current, prefix, floatingLabelActive]);
|
|
3735
3832
|
return {
|
|
3736
3833
|
labelOffset: labelOffset
|
|
3737
3834
|
};
|
|
@@ -3766,22 +3863,21 @@ var InputWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3766
3863
|
prefix = _ref2.prefix,
|
|
3767
3864
|
suffix = _ref2.suffix;
|
|
3768
3865
|
|
|
3769
|
-
var wrapper = useRef(null);
|
|
3770
3866
|
var input = useRef(null);
|
|
3771
3867
|
var hasValueOrActiveFloatingLabel = !!value || floatingLabelActive;
|
|
3772
|
-
var labelClasses = [modules_bc06a1ad[
|
|
3868
|
+
var labelClasses = [modules_bc06a1ad["input-label"]];
|
|
3773
3869
|
|
|
3774
|
-
var _useLabelOffset = useLabelOffset(
|
|
3870
|
+
var _useLabelOffset = useLabelOffset(inputProps && inputProps.ref || input, floatingLabelActive, prefix),
|
|
3775
3871
|
labelOffset = _useLabelOffset.labelOffset;
|
|
3776
3872
|
|
|
3777
|
-
hasFocus && labelClasses.push(modules_bc06a1ad[
|
|
3873
|
+
hasFocus && labelClasses.push(modules_bc06a1ad["focus"]);
|
|
3778
3874
|
return React.createElement(Wrapper, _extends({}, rest, {
|
|
3779
|
-
ref: ref
|
|
3875
|
+
ref: ref,
|
|
3780
3876
|
name: name,
|
|
3781
|
-
className: modules_bc06a1ad[
|
|
3877
|
+
className: modules_bc06a1ad["input-wrapper"] + " " + (className != null ? className : ""),
|
|
3782
3878
|
labelProps: {
|
|
3783
3879
|
id: labelId,
|
|
3784
|
-
className: labelClasses.join(
|
|
3880
|
+
className: labelClasses.join(" "),
|
|
3785
3881
|
style: _extends({}, labelOffset)
|
|
3786
3882
|
},
|
|
3787
3883
|
floatingLabelActive: floatingLabelActive,
|
|
@@ -3790,14 +3886,14 @@ var InputWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3790
3886
|
helperId: helperId,
|
|
3791
3887
|
helperText: helperText,
|
|
3792
3888
|
helperProps: _extends({}, helperProps, {
|
|
3793
|
-
className: modules_bc06a1ad[
|
|
3889
|
+
className: modules_bc06a1ad["input-wrapper-helper"] + " " + ((_helperProps$classNam = helperProps == null ? void 0 : helperProps.className) != null ? _helperProps$classNam : "") + " "
|
|
3794
3890
|
}),
|
|
3795
3891
|
helperIndent: 20
|
|
3796
3892
|
}), React.createElement(Input, _extends({}, inputProps, {
|
|
3797
|
-
prefix: hasValueOrActiveFloatingLabel ? prefix :
|
|
3798
|
-
suffix: hasValueOrActiveFloatingLabel ? suffix :
|
|
3893
|
+
prefix: hasValueOrActiveFloatingLabel ? prefix : "",
|
|
3894
|
+
suffix: hasValueOrActiveFloatingLabel ? suffix : "",
|
|
3799
3895
|
wrapperProps: {
|
|
3800
|
-
className: (floatingLabelActive ? modules_bc06a1ad[
|
|
3896
|
+
className: (floatingLabelActive ? modules_bc06a1ad["floating-label-active"] : "") + " " + ((_inputProps$wrapperPr = inputProps == null ? void 0 : (_inputProps$wrapperPr2 = inputProps.wrapperProps) == null ? void 0 : _inputProps$wrapperPr2.className) != null ? _inputProps$wrapperPr : "")
|
|
3801
3897
|
},
|
|
3802
3898
|
ref: inputProps && inputProps.ref || input,
|
|
3803
3899
|
"aria-labelledby": labelId,
|
|
@@ -3813,9 +3909,9 @@ var InputWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3813
3909
|
|
|
3814
3910
|
_onBlur && _onBlur(e);
|
|
3815
3911
|
setHasFocus(false);
|
|
3816
|
-
e.target.value || e.target.placeholder || inputProps != null && (_inputProps$placehold = inputProps.placeholder) != null && _inputProps$placehold.length || type ===
|
|
3912
|
+
e.target.value || e.target.placeholder || inputProps != null && (_inputProps$placehold = inputProps.placeholder) != null && _inputProps$placehold.length || type === "datetime-local" || type === "time" || type === "date" ? setFloatingLabelActive(true) : setFloatingLabelActive(false);
|
|
3817
3913
|
},
|
|
3818
|
-
className: (floatingLabelActive ? modules_bc06a1ad[
|
|
3914
|
+
className: (floatingLabelActive ? modules_bc06a1ad["floating-label"] : "") + " " + ((_inputProps$className = inputProps == null ? void 0 : inputProps.className) != null ? _inputProps$className : ""),
|
|
3819
3915
|
name: name,
|
|
3820
3916
|
error: error,
|
|
3821
3917
|
id: name,
|
|
@@ -3855,10 +3951,10 @@ var SelectWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3855
3951
|
helperId: helperId,
|
|
3856
3952
|
labelProps: {
|
|
3857
3953
|
id: labelId,
|
|
3858
|
-
className: modules_ee83d198[
|
|
3954
|
+
className: modules_ee83d198["select-label"]
|
|
3859
3955
|
},
|
|
3860
3956
|
helperProps: _extends({}, helperProps, {
|
|
3861
|
-
className: modules_ee83d198[
|
|
3957
|
+
className: modules_ee83d198["select-helper-text"] + " " + ((_helperProps$classNam = helperProps == null ? void 0 : helperProps.className) != null ? _helperProps$classNam : "")
|
|
3862
3958
|
}),
|
|
3863
3959
|
error: error
|
|
3864
3960
|
}), React.createElement(Select, _extends({}, selectProps, {
|
|
@@ -3871,12 +3967,12 @@ var SelectWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3871
3967
|
_onClear && _onClear(e);
|
|
3872
3968
|
},
|
|
3873
3969
|
placeholder: placeholder,
|
|
3874
|
-
className: (floatingLabelActive ? modules_ee83d198[
|
|
3970
|
+
className: (floatingLabelActive ? modules_ee83d198["floating-label-active"] : "") + " " + ((_selectProps$classNam = selectProps == null ? void 0 : selectProps.className) != null ? _selectProps$classNam : "")
|
|
3875
3971
|
}), children));
|
|
3876
3972
|
});
|
|
3877
3973
|
|
|
3878
|
-
var css$c = ".
|
|
3879
|
-
var modules_3c8e9c33 = {"textarea-label":"
|
|
3974
|
+
var css$c = ".TextareaWrapper_module_srOnly__7bfa5c10 {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.TextareaWrapper_module_hidden__7bfa5c10 {\n display: none;\n}\n\n.TextareaWrapper_module_slideIn__7bfa5c10 {\n animation: TextareaWrapper_module_slideIn__7bfa5c10 0.5s forwards;\n}\n\n.TextareaWrapper_module_slideOut__7bfa5c10 {\n animation: TextareaWrapper_module_slideOut__7bfa5c10 0.5s forwards;\n}\n\n@keyframes TextareaWrapper_module_slideIn__7bfa5c10 {\n 0% {\n transform: translateY(100vh);\n }\n 100% {\n transform: translateY(0%);\n }\n}\n@keyframes TextareaWrapper_module_slideOut__7bfa5c10 {\n 0% {\n transform: translateY(0%);\n }\n 100% {\n transform: translateY(100vh);\n }\n}\nlabel.TextareaWrapper_module_textareaLabel__7bfa5c10.TextareaWrapper_module_focus__7bfa5c10 {\n color: var(--color-primary);\n}\n\n.TextareaWrapper_module_textarea__7bfa5c10 {\n padding-top: 1.625rem;\n}\n.TextareaWrapper_module_textarea__7bfa5c10:active:not(:disabled) {\n border-color: var(--color-primary);\n}\n.TextareaWrapper_module_textarea__7bfa5c10:hover:not(:disabled):not(.TextareaWrapper_module_error__7bfa5c10) {\n border-color: var(--default);\n}\n.TextareaWrapper_module_textarea__7bfa5c10:focus:not(:disabled) {\n outline: none;\n}\n\n.TextareaWrapper_module_textareaHelperText__7bfa5c10 {\n margin-top: 0.25rem;\n margin-left: 1.25rem;\n}\n\n.TextareaWrapper_module_textareaWrapper__7bfa5c10 {\n padding-top: 1.75rem;\n padding-right: 3.75rem;\n padding-bottom: 0.75rem;\n border-color: var(--input-border-color);\n border-style: var(--input-border-style);\n border-width: var(--input-border-width);\n border-radius: var(--input-border-radius);\n}\n.TextareaWrapper_module_textareaWrapper__7bfa5c10.TextareaWrapper_module_error__7bfa5c10 {\n border-color: var(--error);\n}\n.TextareaWrapper_module_textareaWrapper__7bfa5c10.TextareaWrapper_module_hover__7bfa5c10 {\n border-color: var(--default);\n}\n.TextareaWrapper_module_textareaWrapper__7bfa5c10.TextareaWrapper_module_focus__7bfa5c10 {\n border-color: var(--color-primary);\n}\n.TextareaWrapper_module_textareaWrapper__7bfa5c10.TextareaWrapper_module_disabled__7bfa5c10 {\n color: var(--greyed-out);\n background-color: var(--disabled);\n border-color: #fff;\n cursor: not-allowed;\n}\n\n.TextareaWrapper_module_errorIcon__7bfa5c10 {\n top: 1.75rem;\n}";
|
|
3975
|
+
var modules_3c8e9c33 = {"sr-only":"TextareaWrapper_module_srOnly__7bfa5c10","hidden":"TextareaWrapper_module_hidden__7bfa5c10","slide-in":"TextareaWrapper_module_slideIn__7bfa5c10","slide-out":"TextareaWrapper_module_slideOut__7bfa5c10","textarea-label":"TextareaWrapper_module_textareaLabel__7bfa5c10","focus":"TextareaWrapper_module_focus__7bfa5c10","textarea":"TextareaWrapper_module_textarea__7bfa5c10","error":"TextareaWrapper_module_error__7bfa5c10","textarea-helper-text":"TextareaWrapper_module_textareaHelperText__7bfa5c10","textarea-wrapper":"TextareaWrapper_module_textareaWrapper__7bfa5c10","hover":"TextareaWrapper_module_hover__7bfa5c10","disabled":"TextareaWrapper_module_disabled__7bfa5c10","error-icon":"TextareaWrapper_module_errorIcon__7bfa5c10"};
|
|
3880
3976
|
n(css$c,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
3881
3977
|
|
|
3882
3978
|
var _excluded$e = ["name", "error", "value", "label", "placeholder", "textareaProps", "helperProps", "onChange", "onFocus", "onBlur", "onMouseEnter", "onMouseLeave", "disabled"];
|
|
@@ -3910,22 +4006,22 @@ var TextareaWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3910
4006
|
setHover = _useState[1];
|
|
3911
4007
|
|
|
3912
4008
|
var optionalClasses = [];
|
|
3913
|
-
hasFocus && optionalClasses.push(modules_3c8e9c33[
|
|
3914
|
-
hover && optionalClasses.push(modules_3c8e9c33[
|
|
3915
|
-
disabled && optionalClasses.push(modules_3c8e9c33[
|
|
3916
|
-
error && optionalClasses.push(modules_3c8e9c33[
|
|
4009
|
+
hasFocus && optionalClasses.push(modules_3c8e9c33["focus"]);
|
|
4010
|
+
hover && optionalClasses.push(modules_3c8e9c33["hover"]);
|
|
4011
|
+
disabled && optionalClasses.push(modules_3c8e9c33["disabled"]);
|
|
4012
|
+
error && optionalClasses.push(modules_3c8e9c33["error"]);
|
|
3917
4013
|
return React.createElement(Wrapper, _extends({}, rest, {
|
|
3918
4014
|
ref: ref,
|
|
3919
4015
|
disabled: disabled,
|
|
3920
4016
|
labelProps: {
|
|
3921
4017
|
id: labelId,
|
|
3922
|
-
className: modules_3c8e9c33[
|
|
4018
|
+
className: modules_3c8e9c33["textarea-label"] + " " + optionalClasses.join(" ")
|
|
3923
4019
|
},
|
|
3924
4020
|
name: name,
|
|
3925
4021
|
label: label,
|
|
3926
4022
|
helperId: helperId,
|
|
3927
4023
|
helperProps: _extends({}, helperProps, {
|
|
3928
|
-
className: modules_3c8e9c33[
|
|
4024
|
+
className: modules_3c8e9c33["textarea-helper-text"]
|
|
3929
4025
|
}),
|
|
3930
4026
|
error: error,
|
|
3931
4027
|
floatingLabelActive: floatingLabelActive,
|
|
@@ -3959,12 +4055,12 @@ var TextareaWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3959
4055
|
_onMouseLeave && _onMouseLeave(e);
|
|
3960
4056
|
setHover(false);
|
|
3961
4057
|
},
|
|
3962
|
-
className: modules_3c8e9c33[
|
|
4058
|
+
className: modules_3c8e9c33["textarea"] + " " + (error ? modules_3c8e9c33["error"] : ""),
|
|
3963
4059
|
wrapperProps: {
|
|
3964
|
-
className: modules_3c8e9c33[
|
|
4060
|
+
className: modules_3c8e9c33["textarea-wrapper"] + "} " + optionalClasses.join(" ")
|
|
3965
4061
|
},
|
|
3966
4062
|
errorProps: {
|
|
3967
|
-
className: modules_3c8e9c33[
|
|
4063
|
+
className: modules_3c8e9c33["error-icon"]
|
|
3968
4064
|
}
|
|
3969
4065
|
})));
|
|
3970
4066
|
});
|
|
@@ -3975,12 +4071,12 @@ var Fieldset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3975
4071
|
className = _ref.className,
|
|
3976
4072
|
legend = _ref.legend,
|
|
3977
4073
|
_ref$legendStyle = _ref.legendStyle,
|
|
3978
|
-
legendStyle = _ref$legendStyle === void 0 ?
|
|
4074
|
+
legendStyle = _ref$legendStyle === void 0 ? "body" : _ref$legendStyle,
|
|
3979
4075
|
_ref$hideLegend = _ref.hideLegend,
|
|
3980
4076
|
hideLegend = _ref$hideLegend === void 0 ? false : _ref$hideLegend,
|
|
3981
4077
|
noBackground = _ref.noBackground,
|
|
3982
4078
|
_ref$background = _ref.background,
|
|
3983
|
-
background = _ref$background === void 0 ? noBackground ?
|
|
4079
|
+
background = _ref$background === void 0 ? noBackground ? "" : "#FFF" : _ref$background,
|
|
3984
4080
|
_ref$noPadding = _ref.noPadding,
|
|
3985
4081
|
noPadding = _ref$noPadding === void 0 ? false : _ref$noPadding,
|
|
3986
4082
|
_ref$disabled = _ref.disabled,
|
|
@@ -4021,14 +4117,14 @@ var Fieldset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4021
4117
|
style: _extends({
|
|
4022
4118
|
backgroundColor: background
|
|
4023
4119
|
}, rest.style),
|
|
4024
|
-
className: modules_76ea8ff8.fieldset + " " + (noPadding ? modules_76ea8ff8[
|
|
4120
|
+
className: modules_76ea8ff8.fieldset + " " + (noPadding ? modules_76ea8ff8["no-padding"] : "") + " " + (className != null ? className : "")
|
|
4025
4121
|
}), legend && React.createElement("legend", {
|
|
4026
|
-
className: modules_35a251a6[
|
|
4122
|
+
className: modules_35a251a6["sr-only"]
|
|
4027
4123
|
}, legend), legend && !hideLegend && React.createElement(Typography, {
|
|
4028
4124
|
variant: legendStyle,
|
|
4029
4125
|
tag: "span",
|
|
4030
4126
|
"aria-hidden": "true",
|
|
4031
|
-
className: modules_76ea8ff8[
|
|
4127
|
+
className: modules_76ea8ff8["legend"] + " " + (required ? modules_76ea8ff8["required"] : "") + " " + (error ? modules_76ea8ff8["error"] : "")
|
|
4032
4128
|
}, legend), renderChildren());
|
|
4033
4129
|
});
|
|
4034
4130
|
|
|
@@ -4043,7 +4139,7 @@ var Form = function Form(_ref) {
|
|
|
4043
4139
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4044
4140
|
|
|
4045
4141
|
return React.createElement("form", _extends({
|
|
4046
|
-
className: modules_b9bf355c.form + " " + (className != null ? className :
|
|
4142
|
+
className: modules_b9bf355c.form + " " + (className != null ? className : "")
|
|
4047
4143
|
}, rest), children);
|
|
4048
4144
|
};
|
|
4049
4145
|
|
|
@@ -4100,7 +4196,7 @@ var RadioWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4100
4196
|
helperId: helperId,
|
|
4101
4197
|
helperText: helperText,
|
|
4102
4198
|
helperProps: _extends({}, helperProps, {
|
|
4103
|
-
className: modules_856c8e0e[
|
|
4199
|
+
className: modules_856c8e0e["radio-wrapper-helper"] + " " + (error ? modules_856c8e0e["radio-wrapper-error"] : "") + " " + ((_helperProps$classNam = helperProps == null ? void 0 : helperProps.className) != null ? _helperProps$classNam : "")
|
|
4104
4200
|
}),
|
|
4105
4201
|
error: error,
|
|
4106
4202
|
errorId: errorId,
|
|
@@ -4155,7 +4251,7 @@ var CheckboxWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4155
4251
|
helperId: helperId,
|
|
4156
4252
|
helperText: helperText,
|
|
4157
4253
|
helperProps: _extends({}, helperProps, {
|
|
4158
|
-
className: modules_8177141b[
|
|
4254
|
+
className: modules_8177141b["checkbox-wrapper-helper"] + " " + (error ? modules_8177141b["checkbox-wrapper-error"] : "") + " " + ((_helperProps$classNam = helperProps == null ? void 0 : helperProps.className) != null ? _helperProps$classNam : "")
|
|
4159
4255
|
}),
|
|
4160
4256
|
error: error,
|
|
4161
4257
|
errorMessageIcon: Icons.Error,
|
|
@@ -4165,7 +4261,7 @@ var CheckboxWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4165
4261
|
|
|
4166
4262
|
var setWizardState = function setWizardState(steps, mode, stepScreenReaderLabel) {
|
|
4167
4263
|
return {
|
|
4168
|
-
type:
|
|
4264
|
+
type: "SET_STATE",
|
|
4169
4265
|
payload: {
|
|
4170
4266
|
steps: steps,
|
|
4171
4267
|
mode: mode,
|
|
@@ -4176,17 +4272,17 @@ var setWizardState = function setWizardState(steps, mode, stepScreenReaderLabel)
|
|
|
4176
4272
|
|
|
4177
4273
|
var changeCurrentStepNo = function changeCurrentStepNo(currentStepNo) {
|
|
4178
4274
|
return {
|
|
4179
|
-
type:
|
|
4275
|
+
type: "CHANGE_CURRENT_STEP_NO",
|
|
4180
4276
|
payload: currentStepNo
|
|
4181
4277
|
};
|
|
4182
4278
|
};
|
|
4183
4279
|
|
|
4184
4280
|
var reducer = function reducer(state, action) {
|
|
4185
4281
|
switch (action.type) {
|
|
4186
|
-
case
|
|
4282
|
+
case "SET_STATE":
|
|
4187
4283
|
return _extends({}, state, action.payload);
|
|
4188
4284
|
|
|
4189
|
-
case
|
|
4285
|
+
case "CHANGE_CURRENT_STEP_NO":
|
|
4190
4286
|
return _extends({}, state, {
|
|
4191
4287
|
currentStepNo: action.payload
|
|
4192
4288
|
});
|
|
@@ -4316,10 +4412,10 @@ var WizardActions = function WizardActions(_ref) {
|
|
|
4316
4412
|
var hasNextStep = nextStepNo !== -1;
|
|
4317
4413
|
var previousStepNo = usePreviousStepNo(mode, currentStepNo, steps);
|
|
4318
4414
|
var hasPreviousStep = previousStepNo !== -1;
|
|
4319
|
-
var isLastStepOrEditMode = !hasNextStep || mode ===
|
|
4415
|
+
var isLastStepOrEditMode = !hasNextStep || mode === "edit";
|
|
4320
4416
|
|
|
4321
4417
|
var changeStepNo = function changeStepNo(direction) {
|
|
4322
|
-
if (direction ===
|
|
4418
|
+
if (direction === "forward") {
|
|
4323
4419
|
hasNextStep && dispatch(changeCurrentStepNo(nextStepNo));
|
|
4324
4420
|
} else {
|
|
4325
4421
|
hasPreviousStep && dispatch(changeCurrentStepNo(previousStepNo));
|
|
@@ -4327,12 +4423,12 @@ var WizardActions = function WizardActions(_ref) {
|
|
|
4327
4423
|
};
|
|
4328
4424
|
|
|
4329
4425
|
var onNextWrapper = function onNextWrapper() {
|
|
4330
|
-
onNext(currentStepNo) && changeStepNo(
|
|
4426
|
+
onNext(currentStepNo) && changeStepNo("forward");
|
|
4331
4427
|
};
|
|
4332
4428
|
|
|
4333
4429
|
var onPreviousWrapper = function onPreviousWrapper() {
|
|
4334
4430
|
onPrevious && onPrevious();
|
|
4335
|
-
changeStepNo(
|
|
4431
|
+
changeStepNo("backward");
|
|
4336
4432
|
};
|
|
4337
4433
|
|
|
4338
4434
|
var onSaveAndCloseWrapper = function onSaveAndCloseWrapper() {
|
|
@@ -4346,7 +4442,7 @@ var WizardActions = function WizardActions(_ref) {
|
|
|
4346
4442
|
variant: "outline",
|
|
4347
4443
|
onClick: onPreviousWrapper
|
|
4348
4444
|
}, previousButtonLabel), hasNextStep && React.createElement(Button, {
|
|
4349
|
-
variant: mode ===
|
|
4445
|
+
variant: mode === "edit" ? "outline" : "fill",
|
|
4350
4446
|
onClick: onNextWrapper
|
|
4351
4447
|
}, nextButtonLabel), isLastStepOrEditMode && React.createElement(Button, {
|
|
4352
4448
|
onClick: onSaveAndCloseWrapper
|
|
@@ -4369,54 +4465,54 @@ var BaseWizardSteps = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4369
4465
|
|
|
4370
4466
|
var getStepState = function getStepState(stepNo) {
|
|
4371
4467
|
if (currentStepNo === stepNo) {
|
|
4372
|
-
return
|
|
4468
|
+
return "current";
|
|
4373
4469
|
} else if (stepNo < currentStepNo) {
|
|
4374
|
-
return
|
|
4470
|
+
return "finished";
|
|
4375
4471
|
}
|
|
4376
4472
|
|
|
4377
|
-
return
|
|
4473
|
+
return "future";
|
|
4378
4474
|
};
|
|
4379
4475
|
|
|
4380
4476
|
var getStepContent = function getStepContent(stepState, index, disabled) {
|
|
4381
4477
|
var stepNumberString = String(index + 1);
|
|
4382
4478
|
|
|
4383
|
-
if (stepState ===
|
|
4479
|
+
if (stepState === "finished") {
|
|
4384
4480
|
return disabled ? null : React.createElement(Icon, {
|
|
4385
|
-
className: modules_b302f2c5[
|
|
4481
|
+
className: modules_b302f2c5["checkmark"],
|
|
4386
4482
|
icon: Icons.Checkmark
|
|
4387
4483
|
});
|
|
4388
4484
|
} else {
|
|
4389
4485
|
return React.createElement(Fragment, null, React.createElement("span", {
|
|
4390
|
-
className: modules_35a251a6[
|
|
4486
|
+
className: modules_35a251a6["sr-only"]
|
|
4391
4487
|
}, stepScreenReaderLabel, " "), stepNumberString);
|
|
4392
4488
|
}
|
|
4393
4489
|
};
|
|
4394
4490
|
|
|
4395
4491
|
var generatedSteps = steps.map(function (step, index) {
|
|
4396
4492
|
var stepState = getStepState(index);
|
|
4397
|
-
var disabledStyleClassName = step.disabled ? modules_b302f2c5[
|
|
4398
|
-
var clickableClassName = futureStepsClickable ? modules_b302f2c5[
|
|
4493
|
+
var disabledStyleClassName = step.disabled ? modules_b302f2c5["disabled"] : "";
|
|
4494
|
+
var clickableClassName = futureStepsClickable ? modules_b302f2c5["clickable"] : "";
|
|
4399
4495
|
return React.createElement("button", {
|
|
4400
|
-
key: step.label.toLowerCase().replace(/\s/,
|
|
4401
|
-
disabled: step.disabled || stepState ===
|
|
4402
|
-
"aria-current": stepState ===
|
|
4496
|
+
key: step.label.toLowerCase().replace(/\s/, "-"),
|
|
4497
|
+
disabled: step.disabled || stepState === "future" && !futureStepsClickable || stepState === "current",
|
|
4498
|
+
"aria-current": stepState === "current" ? "step" : undefined,
|
|
4403
4499
|
onClick: function onClick() {
|
|
4404
4500
|
return _onClick && _onClick(index);
|
|
4405
4501
|
},
|
|
4406
|
-
className: modules_b302f2c5[
|
|
4502
|
+
className: modules_b302f2c5["wizard-element"] + " " + modules_b302f2c5[stepState] + " " + clickableClassName + " " + disabledStyleClassName
|
|
4407
4503
|
}, React.createElement("div", {
|
|
4408
|
-
className: modules_b302f2c5[
|
|
4504
|
+
className: modules_b302f2c5["number-wrapper"]
|
|
4409
4505
|
}, React.createElement("span", {
|
|
4410
|
-
className: modules_b302f2c5[
|
|
4506
|
+
className: modules_b302f2c5["number"]
|
|
4411
4507
|
}, getStepContent(stepState, index, step.disabled))), React.createElement("div", {
|
|
4412
|
-
className: modules_b302f2c5[
|
|
4508
|
+
className: modules_b302f2c5["two-line-text-overflow"]
|
|
4413
4509
|
}, React.createElement("span", {
|
|
4414
|
-
className: modules_b302f2c5[
|
|
4510
|
+
className: modules_b302f2c5["label"]
|
|
4415
4511
|
}, step.label)));
|
|
4416
4512
|
});
|
|
4417
4513
|
return React.createElement("div", _extends({}, rest, {
|
|
4418
4514
|
ref: ref,
|
|
4419
|
-
className: modules_b302f2c5[
|
|
4515
|
+
className: modules_b302f2c5["wizard"]
|
|
4420
4516
|
}), generatedSteps);
|
|
4421
4517
|
});
|
|
4422
4518
|
|
|
@@ -4443,7 +4539,7 @@ var WizardSteps = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4443
4539
|
steps: steps,
|
|
4444
4540
|
currentStepNo: currentStepNo,
|
|
4445
4541
|
stepScreenReaderLabel: stepScreenReaderLabel,
|
|
4446
|
-
futureStepsClickable: mode ===
|
|
4542
|
+
futureStepsClickable: mode === "edit"
|
|
4447
4543
|
}));
|
|
4448
4544
|
});
|
|
4449
4545
|
|
|
@@ -4451,14 +4547,14 @@ var css$7 = ".DataGrid_module_gridWrapper__f048f02f {\n padding: 1rem 0;\n}\n\n
|
|
|
4451
4547
|
var modules_b8d590e8 = {"grid-wrapper":"DataGrid_module_gridWrapper__f048f02f","table-wrapper":"DataGrid_module_tableWrapper__f048f02f","table":"DataGrid_module_table__f048f02f","pagination":"DataGrid_module_pagination__f048f02f"};
|
|
4452
4548
|
n(css$7,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4453
4549
|
|
|
4454
|
-
var css$6 = ".
|
|
4455
|
-
var modules_4fa6e81a = {"header-cell":"
|
|
4550
|
+
var css$6 = ".DataGridHeaderCell_module_headerCell__24249a03 {\n font-weight: normal;\n text-align: left;\n padding: 0 0.625rem;\n}\n.DataGridHeaderCell_module_headerCell__24249a03:first-child {\n padding-left: 1rem;\n}\n.DataGridHeaderCell_module_headerCell__24249a03:last-child {\n padding-right: 1rem;\n}\n.DataGridHeaderCell_module_headerCell__24249a03 > * {\n display: inline-flex;\n}\n.DataGridHeaderCell_module_headerCell__24249a03 > button {\n padding: 0;\n margin: 0;\n border: 0;\n background: none;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n}\n\n.DataGridHeaderCell_module_headline__24249a03 {\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: 1.5;\n font-weight: 700;\n color: var(--default);\n}\n\n.DataGridHeaderCell_module_sortingIndicatorContainer__24249a03 {\n display: flex;\n flex-direction: column;\n padding-left: 0.5rem;\n justify-content: center;\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__24249a03 > * {\n font-size: 0.625rem;\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__24249a03 .DataGridHeaderCell_module_indicator__24249a03 {\n color: var(--greyed-out);\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__24249a03 .DataGridHeaderCell_module_indicator__24249a03.DataGridHeaderCell_module_active__24249a03 {\n color: var(--color-primary);\n}\n.DataGridHeaderCell_module_sortingIndicatorContainer__24249a03 .DataGridHeaderCell_module_indicator__24249a03.DataGridHeaderCell_module_hidden__24249a03 {\n visibility: hidden;\n}\n\n@media only screen and (min-width: 50em) {\n .DataGridHeaderCell_module_headerCell__24249a03:first-child {\n padding-left: 1.25rem;\n }\n .DataGridHeaderCell_module_headerCell__24249a03:last-child {\n padding-right: 1.25rem;\n }\n}";
|
|
4551
|
+
var modules_4fa6e81a = {"header-cell":"DataGridHeaderCell_module_headerCell__24249a03","headline":"DataGridHeaderCell_module_headline__24249a03","sorting-indicator-container":"DataGridHeaderCell_module_sortingIndicatorContainer__24249a03","indicator":"DataGridHeaderCell_module_indicator__24249a03","active":"DataGridHeaderCell_module_active__24249a03","hidden":"DataGridHeaderCell_module_hidden__24249a03"};
|
|
4456
4552
|
n(css$6,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4457
4553
|
|
|
4458
4554
|
var _excluded$7 = ["headline", "name", "disableSorting", "activeSortDirection", "onSort"];
|
|
4459
4555
|
var ariaSortMapping = {
|
|
4460
|
-
ASC:
|
|
4461
|
-
DESC:
|
|
4556
|
+
ASC: "ascending",
|
|
4557
|
+
DESC: "descending"
|
|
4462
4558
|
};
|
|
4463
4559
|
var DataGridHeaderCell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4464
4560
|
var headline = _ref.headline,
|
|
@@ -4474,28 +4570,28 @@ var DataGridHeaderCell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4474
4570
|
|
|
4475
4571
|
var sortingIndicator = function sortingIndicator() {
|
|
4476
4572
|
var getSortingIndicatorClasses = function getSortingIndicatorClasses(direction) {
|
|
4477
|
-
var sortingIndicatorClasses = [modules_4fa6e81a[
|
|
4478
|
-
activeSortDirection && sortingIndicatorClasses.push(activeSortDirection === direction ? modules_4fa6e81a[
|
|
4573
|
+
var sortingIndicatorClasses = [modules_4fa6e81a["indicator"]];
|
|
4574
|
+
activeSortDirection && sortingIndicatorClasses.push(activeSortDirection === direction ? modules_4fa6e81a["active"] : modules_4fa6e81a["hidden"]);
|
|
4479
4575
|
return sortingIndicatorClasses;
|
|
4480
4576
|
};
|
|
4481
4577
|
|
|
4482
4578
|
return React.createElement(Fragment, null, React.createElement(Icon, {
|
|
4483
|
-
className: getSortingIndicatorClasses(
|
|
4579
|
+
className: getSortingIndicatorClasses("ASC").join(" "),
|
|
4484
4580
|
icon: Icons.TriangleUp
|
|
4485
4581
|
}), React.createElement(Icon, {
|
|
4486
|
-
className: getSortingIndicatorClasses(
|
|
4582
|
+
className: getSortingIndicatorClasses("DESC").join(" "),
|
|
4487
4583
|
icon: Icons.TriangleDown
|
|
4488
4584
|
}));
|
|
4489
4585
|
};
|
|
4490
4586
|
|
|
4491
4587
|
var innerContent = React.createElement(Fragment, null, React.createElement("span", {
|
|
4492
|
-
className: modules_4fa6e81a[
|
|
4588
|
+
className: modules_4fa6e81a["headline"]
|
|
4493
4589
|
}, headline), !disableSorting && React.createElement("div", {
|
|
4494
|
-
className: modules_4fa6e81a[
|
|
4590
|
+
className: modules_4fa6e81a["sorting-indicator-container"]
|
|
4495
4591
|
}, sortingIndicator()));
|
|
4496
4592
|
return React.createElement("th", _extends({}, rest, {
|
|
4497
4593
|
ref: ref,
|
|
4498
|
-
className: modules_4fa6e81a[
|
|
4594
|
+
className: modules_4fa6e81a["header-cell"],
|
|
4499
4595
|
"aria-sort": activeSortDirection && ariaSortMapping[activeSortDirection]
|
|
4500
4596
|
}), disableSorting ? React.createElement("div", {
|
|
4501
4597
|
key: name
|
|
@@ -4505,12 +4601,12 @@ var DataGridHeaderCell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4505
4601
|
}, innerContent));
|
|
4506
4602
|
});
|
|
4507
4603
|
|
|
4508
|
-
var css$5 = ".
|
|
4509
|
-
var modules_bec66042 = {"thead":"
|
|
4604
|
+
var css$5 = ".DataGridHeader_module_thead__8c44381b::after {\n content: \"\";\n position: absolute;\n width: calc(100% - 2rem);\n left: 1rem;\n border-bottom: 1px solid #c3c3c7;\n}\n\n.DataGridHeader_module_row__8c44381b {\n height: 2.5rem;\n}\n\n.DataGridHeader_module_contextMenu__8c44381b {\n width: 4.125rem;\n box-sizing: border-box;\n}\n\n@media only screen and (min-width: 50em) {\n .DataGridHeader_module_thead__8c44381b::after {\n width: calc(100% - 2.5rem);\n left: 1.25rem;\n }\n}";
|
|
4605
|
+
var modules_bec66042 = {"thead":"DataGridHeader_module_thead__8c44381b","row":"DataGridHeader_module_row__8c44381b","context-menu":"DataGridHeader_module_contextMenu__8c44381b"};
|
|
4510
4606
|
n(css$5,{"attributes":{"nonce":"DsPHCoJqXm4vKCqFrm03y1"}});
|
|
4511
4607
|
|
|
4512
4608
|
var _excluded$6 = ["initialSort", "onSort", "headers", "disableContextMenuColumn", "enableMultiSorting", "spacing"];
|
|
4513
|
-
var sortingStates = [undefined,
|
|
4609
|
+
var sortingStates = [undefined, "ASC", "DESC"];
|
|
4514
4610
|
var DataGridHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4515
4611
|
var initialSort = _ref.initialSort,
|
|
4516
4612
|
onSort = _ref.onSort,
|
|
@@ -4590,15 +4686,15 @@ var DataGridHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4590
4686
|
});
|
|
4591
4687
|
return React.createElement("thead", _extends({}, rest, {
|
|
4592
4688
|
ref: ref,
|
|
4593
|
-
className: modules_bec66042[
|
|
4689
|
+
className: modules_bec66042["thead"]
|
|
4594
4690
|
}), React.createElement("tr", {
|
|
4595
|
-
className: modules_bec66042[
|
|
4691
|
+
className: modules_bec66042["row"]
|
|
4596
4692
|
}, headerCells, !disableContextMenuColumn && React.createElement("td", {
|
|
4597
4693
|
style: {
|
|
4598
4694
|
paddingRight: spacing == null ? void 0 : spacing.paddingRight
|
|
4599
4695
|
},
|
|
4600
4696
|
"aria-label": "context menu",
|
|
4601
|
-
className: modules_bec66042[
|
|
4697
|
+
className: modules_bec66042["context-menu"]
|
|
4602
4698
|
})));
|
|
4603
4699
|
});
|
|
4604
4700
|
|
|
@@ -4615,9 +4711,9 @@ var DataGridColumnsToggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4615
4711
|
var open = _ref.open,
|
|
4616
4712
|
headers = _ref.headers,
|
|
4617
4713
|
_ref$titleLabel = _ref.titleLabel,
|
|
4618
|
-
titleLabel = _ref$titleLabel === void 0 ?
|
|
4714
|
+
titleLabel = _ref$titleLabel === void 0 ? "Show columns" : _ref$titleLabel,
|
|
4619
4715
|
_ref$closeButtonTitle = _ref.closeButtonTitle,
|
|
4620
|
-
closeButtonTitle = _ref$closeButtonTitle === void 0 ?
|
|
4716
|
+
closeButtonTitle = _ref$closeButtonTitle === void 0 ? "Close show columns dialog" : _ref$closeButtonTitle,
|
|
4621
4717
|
onClose = _ref.onClose,
|
|
4622
4718
|
onToggleClicked = _ref.onToggleClicked,
|
|
4623
4719
|
className = _ref.className,
|
|
@@ -4628,7 +4724,7 @@ var DataGridColumnsToggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4628
4724
|
var _useState = useState(generateID()),
|
|
4629
4725
|
id = _useState[0];
|
|
4630
4726
|
|
|
4631
|
-
var labelledId = id +
|
|
4727
|
+
var labelledId = id + "_header";
|
|
4632
4728
|
var toggles = headers.map(function (item) {
|
|
4633
4729
|
return React.createElement(Toggle, {
|
|
4634
4730
|
key: item.name,
|
|
@@ -4646,29 +4742,29 @@ var DataGridColumnsToggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4646
4742
|
|
|
4647
4743
|
return React.createElement(Popover, _extends({}, rest, {
|
|
4648
4744
|
ref: ref,
|
|
4649
|
-
className: modules_a68425a1[
|
|
4745
|
+
className: modules_a68425a1["popover"] + " " + className,
|
|
4650
4746
|
show: open,
|
|
4651
4747
|
role: "dialog",
|
|
4652
4748
|
"aria-modal": "true",
|
|
4653
4749
|
"aria-labelledby": labelledId
|
|
4654
4750
|
}), open && createPortal(React.createElement("div", {
|
|
4655
|
-
className: modules_a68425a1[
|
|
4751
|
+
className: modules_a68425a1["backdrop"],
|
|
4656
4752
|
onClick: handleBackdropClick
|
|
4657
4753
|
}), domRoot), open && React.createElement(Fragment, null, React.createElement("div", {
|
|
4658
|
-
className: modules_a68425a1[
|
|
4754
|
+
className: modules_a68425a1["header"]
|
|
4659
4755
|
}, React.createElement(Typography, {
|
|
4660
4756
|
id: labelledId,
|
|
4661
|
-
className: modules_a68425a1[
|
|
4757
|
+
className: modules_a68425a1["title"],
|
|
4662
4758
|
tag: "span",
|
|
4663
4759
|
variant: "h4"
|
|
4664
4760
|
}, titleLabel), React.createElement(IconButton, {
|
|
4665
4761
|
onClick: onClose,
|
|
4666
|
-
className: "" + modules_a68425a1[
|
|
4762
|
+
className: "" + modules_a68425a1["close-btn"],
|
|
4667
4763
|
title: closeButtonTitle
|
|
4668
4764
|
}, React.createElement(Icon, {
|
|
4669
4765
|
icon: Icons.Times
|
|
4670
4766
|
}))), React.createElement("div", {
|
|
4671
|
-
className: modules_a68425a1[
|
|
4767
|
+
className: modules_a68425a1["content"]
|
|
4672
4768
|
}, toggles)));
|
|
4673
4769
|
});
|
|
4674
4770
|
|
|
@@ -4699,9 +4795,9 @@ var DataGridActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4699
4795
|
var showColumnBtn = useRef(null);
|
|
4700
4796
|
return isHidden ? null : React.createElement("div", _extends({}, rest, {
|
|
4701
4797
|
ref: ref,
|
|
4702
|
-
className: modules_3f552d89[
|
|
4798
|
+
className: modules_3f552d89["actions"] + " " + (className != null ? className : "")
|
|
4703
4799
|
}), React.createElement("div", {
|
|
4704
|
-
className: modules_3f552d89[
|
|
4800
|
+
className: modules_3f552d89["left-actions"]
|
|
4705
4801
|
}, enableAddBtn && React.createElement(Button, _extends({
|
|
4706
4802
|
color: "primary",
|
|
4707
4803
|
startIcon: React.createElement(Icon, {
|
|
@@ -4712,7 +4808,7 @@ var DataGridActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4712
4808
|
variant: "outline",
|
|
4713
4809
|
children: "Add item"
|
|
4714
4810
|
}, addBtnProps))), React.createElement("div", {
|
|
4715
|
-
className: modules_3f552d89[
|
|
4811
|
+
className: modules_3f552d89["right-actions"]
|
|
4716
4812
|
}, enableColumnsBtn && React.createElement(Fragment, null, React.createElement(Button, _extends({
|
|
4717
4813
|
startIcon: React.createElement(Icon, {
|
|
4718
4814
|
icon: Icons.Change
|
|
@@ -4721,7 +4817,7 @@ var DataGridActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4721
4817
|
variant: "text",
|
|
4722
4818
|
children: "Columns"
|
|
4723
4819
|
}, columnsBtnProps, {
|
|
4724
|
-
className: modules_3f552d89[
|
|
4820
|
+
className: modules_3f552d89["desktop"] + " " + ((_columnsBtnProps$clas = columnsBtnProps == null ? void 0 : columnsBtnProps.className) != null ? _columnsBtnProps$clas : ""),
|
|
4725
4821
|
ref: showColumnBtn,
|
|
4726
4822
|
onClick: function onClick() {
|
|
4727
4823
|
return setShowColsPopover(true);
|
|
@@ -4732,7 +4828,7 @@ var DataGridActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4732
4828
|
onClick: function onClick() {
|
|
4733
4829
|
return setShowColsPopover(true);
|
|
4734
4830
|
},
|
|
4735
|
-
className: modules_3f552d89[
|
|
4831
|
+
className: modules_3f552d89["mobile"] + " " + ((_columnsBtnProps$clas2 = columnsBtnProps == null ? void 0 : columnsBtnProps.className) != null ? _columnsBtnProps$clas2 : "")
|
|
4736
4832
|
}), React.createElement(Icon, {
|
|
4737
4833
|
icon: Icons.Change
|
|
4738
4834
|
})), React.createElement(DataGridColumnsToggle, {
|
|
@@ -4752,11 +4848,11 @@ var DataGridActions = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4752
4848
|
variant: "text",
|
|
4753
4849
|
children: "Search"
|
|
4754
4850
|
}, searchBtnProps, {
|
|
4755
|
-
className: modules_3f552d89[
|
|
4851
|
+
className: modules_3f552d89["desktop"] + " " + ((_searchBtnProps$class = searchBtnProps == null ? void 0 : searchBtnProps.className) != null ? _searchBtnProps$class : "")
|
|
4756
4852
|
})), React.createElement(IconButton, _extends({
|
|
4757
4853
|
title: "Search"
|
|
4758
4854
|
}, searchBtnProps, {
|
|
4759
|
-
className: modules_3f552d89[
|
|
4855
|
+
className: modules_3f552d89["mobile"] + " " + ((_columnsBtnProps$clas3 = columnsBtnProps == null ? void 0 : columnsBtnProps.className) != null ? _columnsBtnProps$clas3 : "")
|
|
4760
4856
|
}), React.createElement(Icon, {
|
|
4761
4857
|
icon: Icons.TableSearch
|
|
4762
4858
|
})))));
|
|
@@ -4790,9 +4886,9 @@ var DataGridCell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4790
4886
|
return React.createElement("td", _extends({}, rest, {
|
|
4791
4887
|
ref: ref,
|
|
4792
4888
|
style: _extends({}, rest.style, cellStyle),
|
|
4793
|
-
className: modules_e636700c[
|
|
4889
|
+
className: modules_e636700c["cell"] + " " + (className != null ? className : "")
|
|
4794
4890
|
}), isLoading && React.createElement("div", {
|
|
4795
|
-
className: modules_e636700c[
|
|
4891
|
+
className: modules_e636700c["loading"],
|
|
4796
4892
|
"aria-busy": "true",
|
|
4797
4893
|
"aria-live": "polite"
|
|
4798
4894
|
}), !isLoading && React.createElement(Typography, {
|
|
@@ -4829,12 +4925,12 @@ var DataGridRow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4829
4925
|
|
|
4830
4926
|
return null;
|
|
4831
4927
|
});
|
|
4832
|
-
var classNames = [modules_fb55f208[
|
|
4928
|
+
var classNames = [modules_fb55f208["row"]];
|
|
4833
4929
|
className && classNames.push(className);
|
|
4834
|
-
isLoading && classNames.push(modules_fb55f208[
|
|
4930
|
+
isLoading && classNames.push(modules_fb55f208["loading"]);
|
|
4835
4931
|
return React.createElement("tr", _extends({}, rest, {
|
|
4836
4932
|
ref: ref,
|
|
4837
|
-
className: classNames.join(
|
|
4933
|
+
className: classNames.join(" ")
|
|
4838
4934
|
}), visibleCells);
|
|
4839
4935
|
});
|
|
4840
4936
|
|
|
@@ -4878,7 +4974,7 @@ var DataGridBodyInner = function DataGridBodyInner(_ref, ref) {
|
|
|
4878
4974
|
|
|
4879
4975
|
if (emptyData) {
|
|
4880
4976
|
return React.createElement("tr", null, React.createElement("td", {
|
|
4881
|
-
className: modules_532fe2cf[
|
|
4977
|
+
className: modules_532fe2cf["empty"],
|
|
4882
4978
|
colSpan: visibleColumns + (disableContextMenuColumn ? 0 : 1)
|
|
4883
4979
|
}, React.createElement(Typography, {
|
|
4884
4980
|
variant: "body",
|
|
@@ -4929,11 +5025,11 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4929
5025
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
4930
5026
|
|
|
4931
5027
|
if (!headers) {
|
|
4932
|
-
throw new Error(
|
|
5028
|
+
throw new Error("Headers definition has to be provided");
|
|
4933
5029
|
}
|
|
4934
5030
|
|
|
4935
5031
|
if (!children) {
|
|
4936
|
-
throw new Error(
|
|
5032
|
+
throw new Error("DataGridBody should be provieded with a template how to render rows");
|
|
4937
5033
|
}
|
|
4938
5034
|
|
|
4939
5035
|
var _useState = useState(headers),
|
|
@@ -4954,7 +5050,7 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4954
5050
|
};
|
|
4955
5051
|
|
|
4956
5052
|
if (styleWithSpacing != null && styleWithSpacing.padding) {
|
|
4957
|
-
var splitPaddings = styleWithSpacing.padding.toString().split(
|
|
5053
|
+
var splitPaddings = styleWithSpacing.padding.toString().split(" ");
|
|
4958
5054
|
var paddingLeftIndex = 0;
|
|
4959
5055
|
|
|
4960
5056
|
if (splitPaddings.length >= 2) {
|
|
@@ -4982,7 +5078,7 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4982
5078
|
}
|
|
4983
5079
|
|
|
4984
5080
|
return React.createElement("div", _extends({}, rest, {
|
|
4985
|
-
className: modules_b8d590e8[
|
|
5081
|
+
className: modules_b8d590e8["grid-wrapper"],
|
|
4986
5082
|
ref: ref,
|
|
4987
5083
|
style: {
|
|
4988
5084
|
paddingTop: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingTop,
|
|
@@ -4996,9 +5092,9 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
4996
5092
|
headers: internalHeaders,
|
|
4997
5093
|
onColumnToggled: onColumnToggled
|
|
4998
5094
|
})), React.createElement("div", {
|
|
4999
|
-
className: modules_b8d590e8[
|
|
5095
|
+
className: modules_b8d590e8["table-wrapper"]
|
|
5000
5096
|
}, React.createElement("table", {
|
|
5001
|
-
className: modules_b8d590e8[
|
|
5097
|
+
className: modules_b8d590e8["table"]
|
|
5002
5098
|
}, React.createElement(DataGridHeader, {
|
|
5003
5099
|
headers: internalHeaders,
|
|
5004
5100
|
initialSort: initialSort,
|
|
@@ -5019,7 +5115,7 @@ var DataGridInner = function DataGridInner(_ref, ref) {
|
|
|
5019
5115
|
paddingLeft: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingLeft,
|
|
5020
5116
|
paddingRight: styleWithSpacing == null ? void 0 : styleWithSpacing.paddingRight
|
|
5021
5117
|
}),
|
|
5022
|
-
className: modules_b8d590e8[
|
|
5118
|
+
className: modules_b8d590e8["pagination"] + " " + ((_paginationProps$clas = paginationProps.className) != null ? _paginationProps$clas : "")
|
|
5023
5119
|
})));
|
|
5024
5120
|
};
|
|
5025
5121
|
|