@mailstep/design-system 0.8.30 → 0.8.31-beta.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/package.json +25 -18
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +4 -3
- package/ui/Blocks/CommonGrid/CommonGrid.js +63 -106
- package/ui/Blocks/CommonGrid/CommonGridContainer.d.ts +3 -2
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +84 -188
- package/ui/Blocks/CommonGrid/HoC/withProps.d.ts +2 -1
- package/ui/Blocks/CommonGrid/HoC/withProps.js +20 -10
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.d.ts +1 -1
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +40 -31
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +49 -108
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +17 -38
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +50 -80
- package/ui/Blocks/CommonGrid/components/ActionHead/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +2 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +31 -44
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +39 -52
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +57 -131
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ColumnTitle.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle.js +30 -39
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +53 -159
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +5 -4
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.js +12 -42
- package/ui/Blocks/CommonGrid/components/DataCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/DataCell.js +50 -35
- package/ui/Blocks/CommonGrid/components/DataRow.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/DataRow.js +51 -61
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +33 -68
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +65 -58
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/FilterDropdown.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +35 -31
- package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/FilterRow.js +11 -29
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +13 -33
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +24 -36
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +110 -151
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js +9 -8
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.js +31 -15
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js +3 -4
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +113 -94
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.js +108 -144
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +95 -163
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.d.ts +5 -4
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +35 -80
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/GridInfo/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridInfo/index.js +9 -33
- package/ui/Blocks/CommonGrid/components/GridModals/index.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/GridModals/index.js +27 -135
- package/ui/Blocks/CommonGrid/components/GridStatus/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridStatus/index.js +8 -26
- package/ui/Blocks/CommonGrid/components/GroupRow.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/GroupRow.js +23 -27
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/HeadCell.js +28 -36
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/HeadRow.js +53 -71
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +7 -6
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +30 -62
- package/ui/Blocks/CommonGrid/components/IconList/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/IconList/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +4 -4
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +25 -54
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +40 -69
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.js +16 -17
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.js +10 -9
- package/ui/Blocks/CommonGrid/components/MobileFilterModal.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +68 -112
- package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.js +7 -14
- package/ui/Blocks/CommonGrid/components/MobileSortModal.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/MobileSortModal.js +32 -68
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +18 -35
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.js +7 -19
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.js +31 -91
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.js +20 -30
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/Resize.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Resize.js +32 -47
- package/ui/Blocks/CommonGrid/components/Table.d.ts +36 -36
- package/ui/Blocks/CommonGrid/components/Table.js +15 -41
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +40 -64
- package/ui/Blocks/CommonGrid/components/TablePagination/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/TablePagination/index.js +2 -5
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +17 -18
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +15 -12
- package/ui/Blocks/CommonGrid/components/gridCells/Date.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +7 -10
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +12 -12
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +32 -29
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +16 -50
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +8 -33
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +22 -30
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +8 -9
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.d.ts +5 -4
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +22 -40
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +54 -78
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +6 -9
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +15 -11
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +31 -32
- package/ui/Blocks/CommonGrid/components/gridCells/index.js +14 -15
- package/ui/Blocks/CommonGrid/components/icons/Edit.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/icons/Edit.js +14 -14
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +14 -14
- package/ui/Blocks/CommonGrid/components/icons/Sorting.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/icons/Sorting.js +14 -21
- package/ui/Blocks/CommonGrid/components/utils.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/utils.js +21 -20
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +13 -16
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +82 -86
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.js +33 -31
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.js +28 -23
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +71 -57
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.js +16 -12
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.js +12 -15
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +24 -26
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.js +16 -12
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +109 -98
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +75 -56
- package/ui/Blocks/CommonGrid/hooks/usePresetsState.js +12 -15
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.js +82 -77
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +21 -20
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.js +28 -20
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.js +14 -18
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useUxReset.js +14 -13
- package/ui/Blocks/CommonGrid/index.d.ts +7 -6
- package/ui/Blocks/CommonGrid/index.js +10 -26
- package/ui/Blocks/CommonGrid/store/index.d.ts +16 -15
- package/ui/Blocks/CommonGrid/store/index.js +260 -288
- package/ui/Blocks/CommonGrid/store/migrateState.d.ts +1 -0
- package/ui/Blocks/CommonGrid/store/migrateState.js +13 -12
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.js +12 -18
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.d.ts +3 -2
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.js +13 -19
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +103 -0
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +15 -0
- package/ui/Blocks/CommonGrid/storybook/stories/gridStates.stories.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +12 -0
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +15 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +15 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +1 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +25 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withQuickFilter.stories.js +18 -0
- package/ui/Blocks/CommonGrid/storybook/utils/actions.js +6 -9
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +2 -1
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +125 -122
- package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +3 -2
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +87 -108
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +13 -13
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +4 -7
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +2 -4
- package/ui/Blocks/CommonGrid/styles.d.ts +10 -9
- package/ui/Blocks/CommonGrid/styles.js +35 -253
- package/ui/Blocks/CommonGrid/types.d.ts +2 -1
- package/ui/Blocks/CommonGrid/types.js +13 -22
- package/ui/Blocks/CommonGrid/utils/constants.js +10 -25
- package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.d.ts +2 -1
- package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.js +23 -17
- package/ui/Blocks/CommonGrid/utils/getRowsPerPage.js +9 -9
- package/ui/Blocks/CommonGrid/utils/hasSortTerminated.js +9 -9
- package/ui/Blocks/CommonGrid/utils/index.d.ts +3 -2
- package/ui/Blocks/CommonGrid/utils/index.js +96 -69
- package/ui/Blocks/CornerDialog/CornerDialog.d.ts +3 -2
- package/ui/Blocks/CornerDialog/CornerDialog.js +17 -42
- package/ui/Blocks/CornerDialog/index.d.ts +1 -0
- package/ui/Blocks/CornerDialog/index.js +2 -5
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +2 -1
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.js +54 -0
- package/ui/Blocks/CornerDialog/styles.d.ts +6 -6
- package/ui/Blocks/CornerDialog/styles.js +21 -57
- package/ui/Blocks/CornerDialog/types.d.ts +2 -1
- package/ui/Blocks/CornerDialog/utils.d.ts +1 -0
- package/ui/Blocks/CornerDialog/utils.js +10 -29
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.js +6 -15
- package/ui/Blocks/Header/components/MenuItems/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/index.js +6 -8
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +3 -3
- package/ui/Blocks/Header/components/MenuItems/styles.js +11 -22
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.d.ts +2 -1
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.js +7 -22
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.d.ts +2 -2
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.js +8 -14
- package/ui/Blocks/Header/components/UserMenu/hooks/index.js +1 -2
- package/ui/Blocks/Header/components/UserMenu/hooks/useLogout.js +9 -9
- package/ui/Blocks/Header/components/UserMenu/index.d.ts +3 -2
- package/ui/Blocks/Header/components/UserMenu/index.js +17 -48
- package/ui/Blocks/Header/components/UserMenu/styles.d.ts +3 -3
- package/ui/Blocks/Header/components/UserMenu/styles.js +9 -25
- package/ui/Blocks/Header/hooks/useChangeLanguage.js +8 -8
- package/ui/Blocks/Header/index.d.ts +6 -5
- package/ui/Blocks/Header/index.js +14 -44
- package/ui/Blocks/Header/stories/Header.stories.d.ts +18 -17
- package/ui/Blocks/Header/stories/Header.stories.js +44 -0
- package/ui/Blocks/Header/styles.d.ts +4 -4
- package/ui/Blocks/Header/styles.js +11 -34
- package/ui/Blocks/Header/utils/constants.js +1 -4
- package/ui/Blocks/Header/utils/languageItems.d.ts +2 -1
- package/ui/Blocks/Header/utils/languageItems.js +15 -15
- package/ui/Blocks/HidePrint/HidePrint.d.ts +2 -1
- package/ui/Blocks/HidePrint/HidePrint.js +13 -13
- package/ui/Blocks/ImageList/ImageList.d.ts +3 -2
- package/ui/Blocks/ImageList/ImageList.js +33 -79
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +3 -2
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +67 -35
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +14 -30
- package/ui/Blocks/ImageList/components/CloseButton/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/CloseButton/index.js +6 -17
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +10 -18
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageElement/index.js +9 -28
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +25 -22
- package/ui/Blocks/ImageList/components/ImageTag/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageTag/index.js +8 -14
- package/ui/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/ImageTag/styles.js +7 -9
- package/ui/Blocks/ImageList/hooks/useControls.js +14 -13
- package/ui/Blocks/ImageList/hooks/useOnElementClick.d.ts +2 -1
- package/ui/Blocks/ImageList/hooks/useOnElementClick.js +19 -14
- package/ui/Blocks/ImageList/index.d.ts +2 -1
- package/ui/Blocks/ImageList/index.js +2 -5
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +2 -1
- package/ui/Blocks/ImageList/stories/ImageList.stories.js +63 -0
- package/ui/Blocks/ImageList/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/styles.js +20 -29
- package/ui/Blocks/ImageList/types.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.d.ts +3 -2
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.js +38 -51
- package/ui/Blocks/LanguageSwitch/index.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/index.js +2 -5
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.js +31 -0
- package/ui/Blocks/LanguageSwitch/styles.d.ts +5 -5
- package/ui/Blocks/LanguageSwitch/styles.js +15 -32
- package/ui/Blocks/LanguageSwitch/types.d.ts +1 -0
- package/ui/Blocks/LightBox/LightBox.d.ts +3 -2
- package/ui/Blocks/LightBox/LightBox.js +13 -40
- package/ui/Blocks/LightBox/hooks/useLightBox.d.ts +2 -1
- package/ui/Blocks/LightBox/hooks/useLightBox.js +16 -16
- package/ui/Blocks/LightBox/index.d.ts +1 -0
- package/ui/Blocks/LightBox/index.js +3 -6
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +2 -1
- package/ui/Blocks/LightBox/stories/LightBox.stories.js +21 -0
- package/ui/Blocks/LightBox/styles.d.ts +4 -4
- package/ui/Blocks/LightBox/styles.js +10 -28
- package/ui/Blocks/LoginPage/LoginPage.d.ts +3 -2
- package/ui/Blocks/LoginPage/LoginPage.js +14 -62
- package/ui/Blocks/LoginPage/components/LoginForm.d.ts +1 -0
- package/ui/Blocks/LoginPage/components/LoginForm.js +62 -169
- package/ui/Blocks/LoginPage/components/SocialLinks.d.ts +5 -4
- package/ui/Blocks/LoginPage/components/SocialLinks.js +16 -81
- package/ui/Blocks/LoginPage/index.d.ts +2 -1
- package/ui/Blocks/LoginPage/index.js +2 -5
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +113 -0
- package/ui/Blocks/LoginPage/styles.d.ts +9 -9
- package/ui/Blocks/LoginPage/styles.js +21 -75
- package/ui/Blocks/LoginPage/types.d.ts +5 -4
- package/ui/Blocks/LoginPage/utils/links.js +7 -10
- package/ui/Blocks/Modal/Modal.d.ts +3 -2
- package/ui/Blocks/Modal/Modal.js +35 -124
- package/ui/Blocks/Modal/hooks/useClickOutside.d.ts +3 -2
- package/ui/Blocks/Modal/hooks/useClickOutside.js +29 -27
- package/ui/Blocks/Modal/hooks/useModal.d.ts +1 -0
- package/ui/Blocks/Modal/hooks/useModal.js +14 -19
- package/ui/Blocks/Modal/index.d.ts +1 -0
- package/ui/Blocks/Modal/index.js +4 -7
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +2 -1
- package/ui/Blocks/Modal/stories/Modal.stories.js +168 -0
- package/ui/Blocks/Modal/styles.d.ts +16 -15
- package/ui/Blocks/Modal/styles.js +82 -183
- package/ui/Blocks/Modal/types.d.ts +2 -1
- package/ui/Blocks/Modal/utils.d.ts +1 -0
- package/ui/Blocks/Modal/utils.js +6 -9
- package/ui/Blocks/Popover/index.d.ts +4 -3
- package/ui/Blocks/Popover/index.js +20 -31
- package/ui/Blocks/Scheduler/Scheduler.d.ts +3 -2
- package/ui/Blocks/Scheduler/Scheduler.js +26 -43
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +45 -37
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.js +16 -35
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/hooks/useCurrentTime.js +16 -16
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.js +8 -13
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.js +13 -30
- package/ui/Blocks/Scheduler/components/DateChanger/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/DateChanger/index.js +18 -49
- package/ui/Blocks/Scheduler/components/DateChanger/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/components/DateChanger/styles.js +11 -23
- package/ui/Blocks/Scheduler/components/Groups/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/Groups/index.js +5 -10
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +4 -4
- package/ui/Blocks/Scheduler/components/Groups/styles.js +13 -32
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.js +46 -45
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.d.ts +1 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.js +15 -15
- package/ui/Blocks/Scheduler/components/TimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/TimeSlots/index.js +20 -47
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +5 -5
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.js +23 -52
- package/ui/Blocks/Scheduler/hooks/useChangeDate.d.ts +3 -2
- package/ui/Blocks/Scheduler/hooks/useChangeDate.js +33 -34
- package/ui/Blocks/Scheduler/index.js +1 -2
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +2 -1
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.js +114 -0
- package/ui/Blocks/Scheduler/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/styles.js +8 -23
- package/ui/Blocks/Scheduler/types.d.ts +2 -1
- package/ui/Blocks/Scheduler/utils/constants.js +6 -9
- package/ui/Blocks/Scheduler/utils/convertDateToTime.js +4 -5
- package/ui/Blocks/Scheduler/utils/convertIndexToISOString.js +7 -10
- package/ui/Blocks/Scheduler/utils/convertMinutesToDuration.js +10 -9
- package/ui/Blocks/Scheduler/utils/formatDate.js +4 -8
- package/ui/Blocks/Scheduler/utils/generateTimeArray.js +15 -18
- package/ui/Blocks/Scheduler/utils/getClosestStep.js +8 -11
- package/ui/Blocks/Scheduler/utils/getMinutesFromString.js +3 -6
- package/ui/Blocks/Scheduler/utils/getMinutesFromTime.js +3 -6
- package/ui/Blocks/Scheduler/utils/isActiveTime.d.ts +1 -0
- package/ui/Blocks/Scheduler/utils/isActiveTime.js +9 -10
- package/ui/Blocks/Scheduler/utils/isToday.js +3 -6
- package/ui/Blocks/SideMenu/MenuItem.d.ts +3 -2
- package/ui/Blocks/SideMenu/MenuItem.js +53 -102
- package/ui/Blocks/SideMenu/SideMenu.d.ts +3 -2
- package/ui/Blocks/SideMenu/SideMenu.js +26 -36
- package/ui/Blocks/SideMenu/components/Footer.d.ts +5 -4
- package/ui/Blocks/SideMenu/components/Footer.js +27 -63
- package/ui/Blocks/SideMenu/components/HamburgerMenu.js +22 -51
- package/ui/Blocks/SideMenu/components/SubitemTooltip.d.ts +3 -2
- package/ui/Blocks/SideMenu/components/SubitemTooltip.js +40 -51
- package/ui/Blocks/SideMenu/context/LeftMenuContext.d.ts +2 -1
- package/ui/Blocks/SideMenu/context/LeftMenuContext.js +14 -19
- package/ui/Blocks/SideMenu/context/useLeftMenuContext.js +7 -9
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.d.ts +1 -0
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.js +22 -24
- package/ui/Blocks/SideMenu/index.d.ts +2 -1
- package/ui/Blocks/SideMenu/index.js +5 -7
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +2 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.js +23 -0
- package/ui/Blocks/SideMenu/stories/menuItems.js +101 -108
- package/ui/Blocks/SideMenu/styles.d.ts +38 -37
- package/ui/Blocks/SideMenu/styles.js +162 -310
- package/ui/Blocks/SideMenu/types.d.ts +2 -1
- package/ui/Blocks/SideMenu/utils/constants.js +2 -5
- package/ui/Blocks/Stepper/Stepper.d.ts +3 -2
- package/ui/Blocks/Stepper/Stepper.js +20 -33
- package/ui/Blocks/Stepper/components/StepCircle/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepCircle/index.js +6 -16
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +3 -3
- package/ui/Blocks/Stepper/components/StepCircle/styles.js +19 -23
- package/ui/Blocks/Stepper/components/StepItem/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepItem/index.js +12 -51
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +6 -6
- package/ui/Blocks/Stepper/components/StepItem/styles.js +36 -79
- package/ui/Blocks/Stepper/hooks/useStepper.js +21 -32
- package/ui/Blocks/Stepper/index.js +3 -4
- package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +2 -1
- package/ui/Blocks/Stepper/stories/Stepper.stories.js +86 -0
- package/ui/Blocks/Stepper/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/styles.js +14 -25
- package/ui/Blocks/Stepper/types.d.ts +2 -1
- package/ui/Blocks/Table/Table.d.ts +1 -0
- package/ui/Blocks/Table/Table.js +5 -12
- package/ui/Blocks/Table/index.js +1 -2
- package/ui/Blocks/Table/stories/Table.stories.d.ts +5 -4
- package/ui/Blocks/Table/stories/Table.stories.js +20 -0
- package/ui/Blocks/Tabs/TabContent.d.ts +3 -2
- package/ui/Blocks/Tabs/TabContent.js +6 -9
- package/ui/Blocks/Tabs/Tabs.d.ts +3 -2
- package/ui/Blocks/Tabs/Tabs.js +18 -44
- package/ui/Blocks/Tabs/hooks/useTabs.d.ts +1 -0
- package/ui/Blocks/Tabs/hooks/useTabs.js +9 -13
- package/ui/Blocks/Tabs/index.d.ts +1 -0
- package/ui/Blocks/Tabs/index.js +4 -7
- package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +2 -1
- package/ui/Blocks/Tabs/stories/Tabs.stories.js +44 -0
- package/ui/Blocks/Tabs/styles.d.ts +10 -9
- package/ui/Blocks/Tabs/styles.js +36 -95
- package/ui/Blocks/Tabs/types.d.ts +2 -1
- package/ui/Elements/Alert/Alert.d.ts +1 -0
- package/ui/Elements/Alert/Alert.js +28 -72
- package/ui/Elements/Alert/index.d.ts +2 -1
- package/ui/Elements/Alert/index.js +3 -5
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +3 -2
- package/ui/Elements/Alert/stories/Alert.stories.js +73 -0
- package/ui/Elements/Alert/styles.d.ts +24 -23
- package/ui/Elements/Alert/styles.js +32 -82
- package/ui/Elements/Alert/types.d.ts +2 -1
- package/ui/Elements/AsyncSelect/AsyncSelect.d.ts +5 -4
- package/ui/Elements/AsyncSelect/AsyncSelect.js +33 -34
- package/ui/Elements/AsyncSelect/index.d.ts +2 -1
- package/ui/Elements/AsyncSelect/index.js +2 -5
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +89 -0
- package/ui/Elements/Avatar/Avatar.d.ts +3 -2
- package/ui/Elements/Avatar/Avatar.js +35 -37
- package/ui/Elements/Avatar/index.d.ts +1 -0
- package/ui/Elements/Avatar/index.js +3 -5
- package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +3 -2
- package/ui/Elements/Avatar/stories/Avatar.stories.js +20 -0
- package/ui/Elements/Badge/Badge.d.ts +2 -1
- package/ui/Elements/Badge/Badge.js +44 -51
- package/ui/Elements/Badge/index.d.ts +2 -1
- package/ui/Elements/Badge/index.js +3 -5
- package/ui/Elements/Badge/stories/Badge.stories.d.ts +3 -2
- package/ui/Elements/Badge/stories/Badge.stories.js +34 -0
- package/ui/Elements/BarChartSymbol/BarChartSymbol.d.ts +1 -0
- package/ui/Elements/BarChartSymbol/BarChartSymbol.js +6 -21
- package/ui/Elements/BarChartSymbol/index.js +1 -2
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +3 -2
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.js +26 -0
- package/ui/Elements/BarChartSymbol/styles.d.ts +3 -3
- package/ui/Elements/BarChartSymbol/styles.js +16 -10
- package/ui/Elements/BorderedBox/BorderedBox.d.ts +3 -2
- package/ui/Elements/BorderedBox/BorderedBox.js +35 -21
- package/ui/Elements/BorderedBox/index.d.ts +2 -1
- package/ui/Elements/BorderedBox/index.js +3 -5
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +3 -2
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.js +13 -0
- package/ui/Elements/BorderedBox/types.d.ts +1 -0
- package/ui/Elements/Button/Button.d.ts +3 -2
- package/ui/Elements/Button/Button.js +30 -44
- package/ui/Elements/Button/index.d.ts +2 -1
- package/ui/Elements/Button/index.js +3 -5
- package/ui/Elements/Button/stories/Button.stories.d.ts +3 -2
- package/ui/Elements/Button/stories/Button.stories.js +120 -0
- package/ui/Elements/Button/styles.d.ts +10 -9
- package/ui/Elements/Button/styles.js +44 -227
- package/ui/Elements/Button/types.d.ts +2 -1
- package/ui/Elements/Card/Card.d.ts +1 -0
- package/ui/Elements/Card/Card.js +6 -14
- package/ui/Elements/Card/index.d.ts +2 -1
- package/ui/Elements/Card/index.js +2 -5
- package/ui/Elements/Card/stories/Card.stories.d.ts +3 -2
- package/ui/Elements/Card/stories/Card.stories.js +34 -0
- package/ui/Elements/Card/styles.d.ts +4 -3
- package/ui/Elements/Card/styles.js +20 -22
- package/ui/Elements/Card/types.d.ts +1 -0
- package/ui/Elements/CheckedCircle/index.d.ts +2 -1
- package/ui/Elements/CheckedCircle/index.js +6 -14
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +5 -4
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.js +27 -0
- package/ui/Elements/CheckedCircle/styles.d.ts +1 -1
- package/ui/Elements/CheckedCircle/styles.js +13 -15
- package/ui/Elements/DatePicker/DatePicker.d.ts +4 -8
- package/ui/Elements/DatePicker/DatePicker.js +65 -88
- package/ui/Elements/DatePicker/Datetime/DateTime.d.ts +4 -3
- package/ui/Elements/DatePicker/Datetime/DateTime.js +521 -426
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.d.ts +3 -2
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.js +30 -65
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.js +10 -12
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.js +7 -16
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.js +7 -16
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +66 -163
- package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +15 -30
- package/ui/Elements/DatePicker/Datetime/types.d.ts +3 -2
- package/ui/Elements/DatePicker/Datetime/types.js +11 -14
- package/ui/Elements/DatePicker/Datetime/views/DaysView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +145 -134
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +106 -72
- package/ui/Elements/DatePicker/Datetime/views/YearsView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/YearsView.js +114 -83
- package/ui/Elements/DatePicker/index.d.ts +2 -1
- package/ui/Elements/DatePicker/index.js +3 -6
- package/ui/Elements/DatePicker/styles.d.ts +2 -1
- package/ui/Elements/DatePicker/styles.js +8 -234
- package/ui/Elements/DatePicker/utils/constants.d.ts +1 -0
- package/ui/Elements/DatePicker/utils/constants.js +12 -29
- package/ui/Elements/Dropdown/Dropdown.d.ts +3 -2
- package/ui/Elements/Dropdown/Dropdown.js +25 -54
- package/ui/Elements/Dropdown/index.d.ts +2 -1
- package/ui/Elements/Dropdown/index.js +3 -5
- package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +3 -2
- package/ui/Elements/Dropdown/stories/Dropdown.stories.js +14 -0
- package/ui/Elements/Dropdown/types.d.ts +1 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.d.ts +3 -2
- package/ui/Elements/DropdownMenu/DropdownMenu.js +35 -34
- package/ui/Elements/DropdownMenu/components/DefaultItem.d.ts +3 -2
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +15 -31
- package/ui/Elements/DropdownMenu/components/MenuItem.d.ts +3 -2
- package/ui/Elements/DropdownMenu/components/MenuItem.js +49 -58
- package/ui/Elements/DropdownMenu/components/MenuList.d.ts +3 -2
- package/ui/Elements/DropdownMenu/components/MenuList.js +8 -14
- package/ui/Elements/DropdownMenu/index.js +1 -2
- package/ui/Elements/DropdownMenu/types.d.ts +2 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.d.ts +4 -3
- package/ui/Elements/DropdownSelect/DropdownSelect.js +50 -127
- package/ui/Elements/DropdownSelect/index.d.ts +2 -1
- package/ui/Elements/DropdownSelect/index.js +3 -5
- package/ui/Elements/ErrorMessage/ErrorMessage.d.ts +3 -2
- package/ui/Elements/ErrorMessage/ErrorMessage.js +14 -63
- package/ui/Elements/ErrorMessage/index.d.ts +2 -1
- package/ui/Elements/ErrorMessage/index.js +3 -5
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +3 -2
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.js +19 -0
- package/ui/Elements/ErrorMessage/types.d.ts +1 -0
- package/ui/Elements/HighlightBox/HighlightBox.d.ts +2 -1
- package/ui/Elements/HighlightBox/HighlightBox.js +62 -98
- package/ui/Elements/HighlightBox/index.d.ts +2 -1
- package/ui/Elements/HighlightBox/index.js +2 -5
- package/ui/Elements/Icon/BadgeIcon.d.ts +3 -2
- package/ui/Elements/Icon/BadgeIcon.js +47 -27
- package/ui/Elements/Icon/Icon.d.ts +5 -4
- package/ui/Elements/Icon/Icon.js +279 -280
- package/ui/Elements/Icon/icons/Add.d.ts +2 -1
- package/ui/Elements/Icon/icons/Add.js +13 -33
- package/ui/Elements/Icon/icons/AddPhoto.d.ts +1 -0
- package/ui/Elements/Icon/icons/AddPhoto.js +13 -34
- package/ui/Elements/Icon/icons/Admin.d.ts +1 -0
- package/ui/Elements/Icon/icons/Admin.js +13 -26
- package/ui/Elements/Icon/icons/ArrowDown.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowDown.js +13 -18
- package/ui/Elements/Icon/icons/ArrowForward.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowForward.js +13 -12
- package/ui/Elements/Icon/icons/ArrowUp.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowUp.js +13 -18
- package/ui/Elements/Icon/icons/ArrowUpRightDownLeft.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowUpRightDownLeft.js +13 -21
- package/ui/Elements/Icon/icons/ArrowsLeftRight.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowsLeftRight.js +13 -12
- package/ui/Elements/Icon/icons/ArrowsUpDown.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowsUpDown.js +13 -12
- package/ui/Elements/Icon/icons/BarcodeScan.d.ts +1 -0
- package/ui/Elements/Icon/icons/BarcodeScan.js +13 -13
- package/ui/Elements/Icon/icons/Box.d.ts +1 -0
- package/ui/Elements/Icon/icons/Box.js +13 -17
- package/ui/Elements/Icon/icons/Calendar.d.ts +1 -0
- package/ui/Elements/Icon/icons/Calendar.js +13 -39
- package/ui/Elements/Icon/icons/Cancel.d.ts +1 -0
- package/ui/Elements/Icon/icons/Cancel.js +13 -18
- package/ui/Elements/Icon/icons/CheckedBox.d.ts +2 -1
- package/ui/Elements/Icon/icons/CheckedBox.js +13 -23
- package/ui/Elements/Icon/icons/CircleHalfStroke.d.ts +2 -1
- package/ui/Elements/Icon/icons/CircleHalfStroke.js +13 -12
- package/ui/Elements/Icon/icons/Company.d.ts +1 -0
- package/ui/Elements/Icon/icons/Company.js +13 -82
- package/ui/Elements/Icon/icons/Complaint.d.ts +2 -1
- package/ui/Elements/Icon/icons/Complaint.js +13 -59
- package/ui/Elements/Icon/icons/Consolidation.d.ts +2 -1
- package/ui/Elements/Icon/icons/Consolidation.js +13 -13
- package/ui/Elements/Icon/icons/Container.d.ts +2 -1
- package/ui/Elements/Icon/icons/Container.js +13 -13
- package/ui/Elements/Icon/icons/Dashboard.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dashboard.js +13 -36
- package/ui/Elements/Icon/icons/Desktop.d.ts +2 -1
- package/ui/Elements/Icon/icons/Desktop.js +13 -63
- package/ui/Elements/Icon/icons/Dispatch.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dispatch.js +13 -13
- package/ui/Elements/Icon/icons/EmptyRack.d.ts +1 -0
- package/ui/Elements/Icon/icons/EmptyRack.js +2 -34
- package/ui/Elements/Icon/icons/Expeditions.d.ts +2 -1
- package/ui/Elements/Icon/icons/Expeditions.js +13 -62
- package/ui/Elements/Icon/icons/Filter.d.ts +3 -2
- package/ui/Elements/Icon/icons/Filter.js +13 -17
- package/ui/Elements/Icon/icons/FlagCZ.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagCZ.js +13 -55
- package/ui/Elements/Icon/icons/FlagEL.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagEL.js +13 -50
- package/ui/Elements/Icon/icons/FlagESP.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagESP.js +13 -93
- package/ui/Elements/Icon/icons/FlagHU.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagHU.js +13 -27
- package/ui/Elements/Icon/icons/FlagITA.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagITA.js +13 -55
- package/ui/Elements/Icon/icons/FlagNL.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagNL.js +13 -27
- package/ui/Elements/Icon/icons/FlagRUS.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagRUS.js +13 -55
- package/ui/Elements/Icon/icons/FlagSVK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagSVK.js +13 -92
- package/ui/Elements/Icon/icons/FlagUK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUK.js +13 -20
- package/ui/Elements/Icon/icons/FlagUSA.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUSA.js +13 -106
- package/ui/Elements/Icon/icons/Foldable.d.ts +3 -2
- package/ui/Elements/Icon/icons/Foldable.js +13 -34
- package/ui/Elements/Icon/icons/Fragile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Fragile.js +13 -42
- package/ui/Elements/Icon/icons/Gift.d.ts +2 -1
- package/ui/Elements/Icon/icons/Gift.js +13 -41
- package/ui/Elements/Icon/icons/Group.d.ts +1 -0
- package/ui/Elements/Icon/icons/Group.js +13 -17
- package/ui/Elements/Icon/icons/HamburgerMenu.d.ts +2 -1
- package/ui/Elements/Icon/icons/HamburgerMenu.js +13 -41
- package/ui/Elements/Icon/icons/HelpCircle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/HelpCircle1.js +13 -32
- package/ui/Elements/Icon/icons/HorizontalLines.d.ts +1 -0
- package/ui/Elements/Icon/icons/HorizontalLines.js +13 -36
- package/ui/Elements/Icon/icons/ImagePlaceholder.d.ts +1 -0
- package/ui/Elements/Icon/icons/ImagePlaceholder.js +13 -17
- package/ui/Elements/Icon/icons/Income.d.ts +2 -1
- package/ui/Elements/Icon/icons/Income.js +13 -22
- package/ui/Elements/Icon/icons/Info.d.ts +2 -1
- package/ui/Elements/Icon/icons/Info.js +13 -33
- package/ui/Elements/Icon/icons/Integrations.d.ts +1 -0
- package/ui/Elements/Icon/icons/Integrations.js +13 -17
- package/ui/Elements/Icon/icons/Inventory.d.ts +2 -1
- package/ui/Elements/Icon/icons/Inventory.js +13 -45
- package/ui/Elements/Icon/icons/Inventory2.d.ts +2 -1
- package/ui/Elements/Icon/icons/Inventory2.js +13 -66
- package/ui/Elements/Icon/icons/Layout.d.ts +3 -2
- package/ui/Elements/Icon/icons/Layout.js +14 -43
- package/ui/Elements/Icon/icons/Link.d.ts +1 -0
- package/ui/Elements/Icon/icons/Link.js +13 -20
- package/ui/Elements/Icon/icons/Liquid.d.ts +3 -2
- package/ui/Elements/Icon/icons/Liquid.js +13 -22
- package/ui/Elements/Icon/icons/Location.d.ts +2 -1
- package/ui/Elements/Icon/icons/Location.js +13 -13
- package/ui/Elements/Icon/icons/Logout1.d.ts +2 -1
- package/ui/Elements/Icon/icons/Logout1.js +13 -32
- package/ui/Elements/Icon/icons/MachinePackingForbidden.d.ts +3 -2
- package/ui/Elements/Icon/icons/MachinePackingForbidden.js +13 -70
- package/ui/Elements/Icon/icons/MakePhoto.d.ts +2 -1
- package/ui/Elements/Icon/icons/MakePhoto.js +13 -35
- package/ui/Elements/Icon/icons/MenuItems.d.ts +2 -1
- package/ui/Elements/Icon/icons/MenuItems.js +13 -39
- package/ui/Elements/Icon/icons/Message.d.ts +2 -1
- package/ui/Elements/Icon/icons/Message.js +13 -38
- package/ui/Elements/Icon/icons/MobileCancel.d.ts +2 -1
- package/ui/Elements/Icon/icons/MobileCancel.js +13 -22
- package/ui/Elements/Icon/icons/MobilePhone.d.ts +3 -2
- package/ui/Elements/Icon/icons/MobilePhone.js +13 -47
- package/ui/Elements/Icon/icons/Moon.d.ts +2 -1
- package/ui/Elements/Icon/icons/Moon.js +13 -12
- package/ui/Elements/Icon/icons/Notification2.d.ts +2 -1
- package/ui/Elements/Icon/icons/Notification2.js +13 -25
- package/ui/Elements/Icon/icons/OpenBox.d.ts +1 -0
- package/ui/Elements/Icon/icons/OpenBox.js +13 -37
- package/ui/Elements/Icon/icons/Pallet.d.ts +2 -1
- package/ui/Elements/Icon/icons/Pallet.js +13 -36
- package/ui/Elements/Icon/icons/Plus1.d.ts +2 -1
- package/ui/Elements/Icon/icons/Plus1.js +13 -17
- package/ui/Elements/Icon/icons/Print.d.ts +2 -1
- package/ui/Elements/Icon/icons/Print.js +13 -41
- package/ui/Elements/Icon/icons/Product.d.ts +1 -0
- package/ui/Elements/Icon/icons/Product.js +13 -17
- package/ui/Elements/Icon/icons/Products.d.ts +2 -1
- package/ui/Elements/Icon/icons/Products.js +13 -16
- package/ui/Elements/Icon/icons/Profile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Profile.js +13 -25
- package/ui/Elements/Icon/icons/Puzzle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/Puzzle1.js +13 -18
- package/ui/Elements/Icon/icons/QRCode.d.ts +2 -1
- package/ui/Elements/Icon/icons/QRCode.js +13 -19
- package/ui/Elements/Icon/icons/Rack.d.ts +1 -0
- package/ui/Elements/Icon/icons/Rack.js +13 -65
- package/ui/Elements/Icon/icons/Reload.d.ts +3 -2
- package/ui/Elements/Icon/icons/Reload.js +13 -13
- package/ui/Elements/Icon/icons/Return.d.ts +2 -1
- package/ui/Elements/Icon/icons/Return.js +13 -19
- package/ui/Elements/Icon/icons/Rows.d.ts +1 -0
- package/ui/Elements/Icon/icons/Rows.js +13 -39
- package/ui/Elements/Icon/icons/Settings2.d.ts +2 -1
- package/ui/Elements/Icon/icons/Settings2.js +13 -33
- package/ui/Elements/Icon/icons/ShieldUser.d.ts +3 -2
- package/ui/Elements/Icon/icons/ShieldUser.js +13 -9
- package/ui/Elements/Icon/icons/ShoppingBag.d.ts +2 -1
- package/ui/Elements/Icon/icons/ShoppingBag.js +13 -18
- package/ui/Elements/Icon/icons/Sort.d.ts +3 -2
- package/ui/Elements/Icon/icons/Sort.js +13 -23
- package/ui/Elements/Icon/icons/Sun.d.ts +2 -1
- package/ui/Elements/Icon/icons/Sun.js +13 -12
- package/ui/Elements/Icon/icons/ThreeDots.d.ts +1 -0
- package/ui/Elements/Icon/icons/ThreeDots.js +13 -39
- package/ui/Elements/Icon/icons/ToastError.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastError.js +13 -27
- package/ui/Elements/Icon/icons/ToastSuccess.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastSuccess.js +13 -27
- package/ui/Elements/Icon/icons/Transfer.d.ts +2 -1
- package/ui/Elements/Icon/icons/Transfer.js +13 -21
- package/ui/Elements/Icon/icons/TrashBin.d.ts +1 -0
- package/ui/Elements/Icon/icons/TrashBin.js +13 -33
- package/ui/Elements/Icon/icons/Truck.d.ts +2 -1
- package/ui/Elements/Icon/icons/Truck.js +13 -73
- package/ui/Elements/Icon/icons/TwoBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoBoxes.js +13 -20
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +2 -29
- package/ui/Elements/Icon/icons/TwoUsers.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoUsers.js +13 -42
- package/ui/Elements/Icon/icons/UserCowboy.d.ts +3 -2
- package/ui/Elements/Icon/icons/UserCowboy.js +13 -9
- package/ui/Elements/Icon/icons/Valuable.d.ts +3 -2
- package/ui/Elements/Icon/icons/Valuable.js +13 -34
- package/ui/Elements/Icon/icons/Weight.d.ts +2 -1
- package/ui/Elements/Icon/icons/Weight.js +13 -12
- package/ui/Elements/Icon/icons/index.js +91 -188
- package/ui/Elements/Icon/index.d.ts +2 -1
- package/ui/Elements/Icon/index.js +5 -97
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +6 -5
- package/ui/Elements/Icon/stories/BadgeIcon.stories.js +18 -0
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +3 -2
- package/ui/Elements/Icon/stories/Icon.stories.js +48 -0
- package/ui/Elements/Icon/types.d.ts +2 -1
- package/ui/Elements/Image/Image.d.ts +3 -2
- package/ui/Elements/Image/Image.js +37 -15
- package/ui/Elements/Image/index.d.ts +2 -1
- package/ui/Elements/Image/index.js +3 -5
- package/ui/Elements/Image/stories/Image.stories.d.ts +3 -2
- package/ui/Elements/Image/stories/Image.stories.js +36 -0
- package/ui/Elements/Image/types.d.ts +2 -1
- package/ui/Elements/Label/Label.d.ts +3 -3
- package/ui/Elements/Label/Label.js +14 -23
- package/ui/Elements/Label/index.d.ts +1 -0
- package/ui/Elements/Label/index.js +3 -5
- package/ui/Elements/Label/stories/Label.stories.d.ts +4 -3
- package/ui/Elements/Label/stories/Label.stories.js +20 -0
- package/ui/Elements/Line/Line.d.ts +1 -0
- package/ui/Elements/Line/Line.js +23 -21
- package/ui/Elements/Line/index.d.ts +2 -1
- package/ui/Elements/Line/index.js +3 -5
- package/ui/Elements/Line/stories/Line.stories.d.ts +3 -2
- package/ui/Elements/Line/stories/Line.stories.js +41 -0
- package/ui/Elements/Line/types.d.ts +2 -1
- package/ui/Elements/Link/Link.d.ts +2 -1
- package/ui/Elements/Link/Link.js +47 -43
- package/ui/Elements/Link/index.d.ts +2 -1
- package/ui/Elements/Link/index.js +3 -5
- package/ui/Elements/Link/stories/Link.stories.d.ts +15 -14
- package/ui/Elements/Link/stories/Link.stories.js +63 -0
- package/ui/Elements/Logo/Logo.d.ts +3 -2
- package/ui/Elements/Logo/Logo.js +91 -66
- package/ui/Elements/Logo/index.d.ts +2 -1
- package/ui/Elements/Logo/index.js +3 -5
- package/ui/Elements/Logo/stories/Logo.stories.d.ts +3 -2
- package/ui/Elements/Logo/stories/Logo.stories.js +136 -0
- package/ui/Elements/Pagination/Pagination.d.ts +2 -1
- package/ui/Elements/Pagination/Pagination.js +38 -62
- package/ui/Elements/Pagination/index.d.ts +2 -1
- package/ui/Elements/Pagination/index.js +3 -5
- package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +3 -2
- package/ui/Elements/Pagination/stories/Pagination.stories.js +48 -0
- package/ui/Elements/Pagination/styled.d.ts +7 -6
- package/ui/Elements/Pagination/styled.js +26 -64
- package/ui/Elements/Portal/index.d.ts +2 -1
- package/ui/Elements/Portal/index.js +23 -22
- package/ui/Elements/ProgressBar/ProgressBar.d.ts +2 -1
- package/ui/Elements/ProgressBar/ProgressBar.js +8 -16
- package/ui/Elements/ProgressBar/index.d.ts +2 -1
- package/ui/Elements/ProgressBar/index.js +3 -5
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +8 -7
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.js +27 -0
- package/ui/Elements/ProgressBar/styles.d.ts +4 -4
- package/ui/Elements/ProgressBar/styles.js +19 -72
- package/ui/Elements/Select/Select.d.ts +3 -2
- package/ui/Elements/Select/Select.js +110 -96
- package/ui/Elements/Select/components/ChevronOption.js +22 -30
- package/ui/Elements/Select/components/ConnectedMenu.js +26 -25
- package/ui/Elements/Select/components/CountMultiValue.d.ts +2 -1
- package/ui/Elements/Select/components/CountMultiValue.js +45 -41
- package/ui/Elements/Select/components/CustomInput.js +18 -12
- package/ui/Elements/Select/components/DropdownIndicator.d.ts +2 -1
- package/ui/Elements/Select/components/DropdownIndicator.js +28 -29
- package/ui/Elements/Select/components/IconValueContainer.js +45 -29
- package/ui/Elements/Select/components/SelectAll.d.ts +2 -2
- package/ui/Elements/Select/components/SelectAll.js +58 -89
- package/ui/Elements/Select/components/SelectedIndicator.d.ts +1 -1
- package/ui/Elements/Select/components/SelectedIndicator.js +8 -7
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +2 -1
- package/ui/Elements/Select/components/SimplifiedOption.js +10 -16
- package/ui/Elements/Select/index.d.ts +2 -1
- package/ui/Elements/Select/index.js +2 -5
- package/ui/Elements/Select/stories/Select.stories.d.ts +10 -0
- package/ui/Elements/Select/stories/Select.stories.js +16 -0
- package/ui/Elements/Select/styles.d.ts +6 -5
- package/ui/Elements/Select/styles.js +12 -19
- package/ui/Elements/Select/themes/index.d.ts +4 -3
- package/ui/Elements/Select/themes/index.js +41 -40
- package/ui/Elements/Select/themes/selectStyles.d.ts +3 -2
- package/ui/Elements/Select/themes/selectStyles.js +148 -195
- package/ui/Elements/Select/types.d.ts +8 -4
- package/ui/Elements/SimpleLink/SimpleLink.d.ts +3 -2
- package/ui/Elements/SimpleLink/SimpleLink.js +21 -35
- package/ui/Elements/SimpleLink/index.d.ts +2 -1
- package/ui/Elements/SimpleLink/index.js +3 -5
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +3 -2
- package/ui/Elements/SingleSelect/SingleSelect.js +197 -147
- package/ui/Elements/SingleSelect/index.d.ts +2 -1
- package/ui/Elements/SingleSelect/index.js +2 -5
- package/ui/Elements/SpaceAround/SpaceAround.d.ts +3 -2
- package/ui/Elements/SpaceAround/SpaceAround.js +52 -32
- package/ui/Elements/SpaceAround/index.d.ts +2 -1
- package/ui/Elements/SpaceAround/index.js +3 -5
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +3 -2
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.js +22 -0
- package/ui/Elements/SpaceAround/types.d.ts +1 -0
- package/ui/Elements/Spinner/Spinner.d.ts +3 -2
- package/ui/Elements/Spinner/Spinner.js +25 -36
- package/ui/Elements/Spinner/index.d.ts +2 -1
- package/ui/Elements/Spinner/index.js +3 -5
- package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +3 -2
- package/ui/Elements/Spinner/stories/Spinner.stories.js +56 -0
- package/ui/Elements/Spinner/styles.d.ts +3 -3
- package/ui/Elements/Spinner/styles.js +19 -36
- package/ui/Elements/Table/Table.d.ts +6 -6
- package/ui/Elements/Table/Table.js +12 -45
- package/ui/Elements/Table/index.js +1 -2
- package/ui/Elements/Table/stories/Table.stories.d.ts +1 -1
- package/ui/Elements/Table/stories/Table.stories.js +10 -0
- package/ui/Elements/Tag/Tag.d.ts +3 -2
- package/ui/Elements/Tag/Tag.js +57 -47
- package/ui/Elements/Tag/index.d.ts +2 -1
- package/ui/Elements/Tag/index.js +3 -6
- package/ui/Elements/Tag/palettes.d.ts +2 -1
- package/ui/Elements/Tag/palettes.js +14 -50
- package/ui/Elements/Tag/stories/Tag.stories.d.ts +3 -2
- package/ui/Elements/Tag/stories/Tag.stories.js +72 -0
- package/ui/Elements/Tag/stories/components/predefinedTags.js +7 -18
- package/ui/Elements/Tag/types.d.ts +1 -0
- package/ui/Elements/Text/Text.d.ts +3 -2
- package/ui/Elements/Text/Text.js +29 -10
- package/ui/Elements/Text/index.d.ts +2 -1
- package/ui/Elements/Text/index.js +1 -1
- package/ui/Elements/Text/stories/Text.stories.d.ts +3 -2
- package/ui/Elements/Text/stories/Text.stories.js +43 -0
- package/ui/Elements/Text/types.d.ts +1 -0
- package/ui/Elements/Toast/Toast.d.ts +2 -1
- package/ui/Elements/Toast/Toast.js +20 -35
- package/ui/Elements/Toast/constants.d.ts +2 -1
- package/ui/Elements/Toast/constants.js +15 -18
- package/ui/Elements/Toast/index.d.ts +2 -1
- package/ui/Elements/Toast/index.js +3 -5
- package/ui/Elements/Toast/stories/Toast.stories.d.ts +3 -2
- package/ui/Elements/Toast/stories/Toast.stories.js +36 -0
- package/ui/Elements/Toast/styles.d.ts +6 -6
- package/ui/Elements/Toast/styles.js +22 -76
- package/ui/Elements/Toggle/Toggle.d.ts +3 -2
- package/ui/Elements/Toggle/Toggle.js +61 -123
- package/ui/Elements/Toggle/index.d.ts +2 -1
- package/ui/Elements/Toggle/index.js +3 -5
- package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +3 -2
- package/ui/Elements/Toggle/stories/Toggle.stories.js +64 -0
- package/ui/Elements/Toggle/types.d.ts +1 -0
- package/ui/Elements/Tooltip/Tooltip.d.ts +3 -2
- package/ui/Elements/Tooltip/Tooltip.js +24 -50
- package/ui/Elements/Tooltip/index.d.ts +2 -1
- package/ui/Elements/Tooltip/index.js +3 -5
- package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +3 -2
- package/ui/Elements/Tooltip/stories/Tooltip.stories.js +15 -0
- package/ui/Elements/Typography/Typography.d.ts +3 -2
- package/ui/Elements/Typography/Typography.js +46 -75
- package/ui/Elements/Typography/index.d.ts +1 -0
- package/ui/Elements/Typography/index.js +3 -5
- package/ui/Elements/Typography/stories/Typography.stories.d.ts +2 -1
- package/ui/Elements/Typography/stories/Typography.stories.js +20 -0
- package/ui/Forms/Checkbox/Checkbox.d.ts +3 -2
- package/ui/Forms/Checkbox/Checkbox.js +11 -43
- package/ui/Forms/Checkbox/index.d.ts +2 -1
- package/ui/Forms/Checkbox/index.js +3 -5
- package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +2 -1
- package/ui/Forms/Checkbox/stories/Checkbox.stories.js +35 -0
- package/ui/Forms/Checkbox/styles.d.ts +5 -4
- package/ui/Forms/Checkbox/styles.js +26 -94
- package/ui/Forms/Checkbox/types.d.ts +2 -1
- package/ui/Forms/Input/Input.d.ts +3 -2
- package/ui/Forms/Input/Input.js +65 -128
- package/ui/Forms/Input/index.d.ts +1 -0
- package/ui/Forms/Input/index.js +3 -5
- package/ui/Forms/Input/stories/Input.stories.d.ts +3 -2
- package/ui/Forms/Input/stories/Input.stories.js +77 -0
- package/ui/Forms/Input/styles.d.ts +12 -12
- package/ui/Forms/Input/styles.js +66 -218
- package/ui/Forms/Input/types.d.ts +2 -1
- package/ui/Forms/RadioButton/RadioButton.d.ts +3 -2
- package/ui/Forms/RadioButton/RadioButton.js +31 -23
- package/ui/Forms/RadioButton/index.d.ts +2 -1
- package/ui/Forms/RadioButton/index.js +3 -5
- package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +3 -2
- package/ui/Forms/RadioButton/stories/RadioButton.stories.js +38 -0
- package/ui/Forms/RadioButton/styles.d.ts +6 -6
- package/ui/Forms/RadioButton/styles.js +15 -86
- package/ui/Forms/RadioButton/types.d.ts +1 -0
- package/ui/Forms/TextArea/TextArea.d.ts +3 -2
- package/ui/Forms/TextArea/TextArea.js +33 -34
- package/ui/Forms/TextArea/index.d.ts +2 -1
- package/ui/Forms/TextArea/index.js +2 -5
- package/ui/Forms/TextArea/styles.d.ts +10 -10
- package/ui/Forms/TextArea/styles.js +31 -76
- package/ui/System/Fonts/index.js +9 -54
- package/ui/ThemeProvider/ThemeProvider.d.ts +4 -3
- package/ui/ThemeProvider/ThemeProvider.js +9 -16
- package/ui/ThemeProvider/index.d.ts +3 -2
- package/ui/ThemeProvider/index.js +5 -6
- package/ui/ThemeProvider/themes/dark.d.ts +169 -0
- package/ui/ThemeProvider/themes/dark.js +14 -0
- package/ui/ThemeProvider/themes/default.d.ts +17 -0
- package/ui/ThemeProvider/themes/default.js +170 -185
- package/ui/ThemeProvider/themes/index.d.ts +279 -78
- package/ui/ThemeProvider/themes/index.js +8 -10
- package/ui/ThemeProvider/themes/mailwise.d.ts +115 -98
- package/ui/ThemeProvider/themes/mailwise.js +82 -229
- package/ui/ThemeProvider/types.d.ts +3 -2
- package/ui/hooks/useToggleAndClose.js +11 -17
- package/ui/index.d.ts +48 -47
- package/ui/index.es.js +50429 -0
- package/ui/index.js +94 -179
- package/ui/index.umd.js +4323 -0
- package/ui/utils/CheckDeviceWidth/checkDeviceWidth.js +16 -16
- package/ui/utils/CreateRgba/createRgba.d.ts +1 -0
- package/ui/utils/CreateRgba/createRgba.js +15 -11
- package/ui/utils/KeyPress/KeyPress.d.ts +1 -0
- package/ui/utils/KeyPress/KeyPress.js +16 -15
- package/ui/utils/KeyPress/KeyPress.stories.d.ts +2 -1
- package/ui/utils/KeyPress/KeyPress.stories.js +18 -0
- package/ui/utils/KeyPress/index.d.ts +2 -1
- package/ui/utils/KeyPress/index.js +2 -5
- package/ui/utils/LinguiContainer/index.js +7 -12
- package/ui/utils/index.d.ts +5 -4
- package/ui/utils/index.js +6 -8
- package/ui/utils/translations.d.ts +2 -1
- package/ui/utils/translations.js +4 -336
- package/ui/ThemeProvider/themes/light.d.ts +0 -3
- package/ui/ThemeProvider/themes/light.js +0 -7
- package/ui/_virtual/_rolldown/runtime.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LinkInCell: import(
|
|
1
|
+
export declare const LinkInCell: import('styled-components').StyledComponent<typeof import('react-router-dom').Link, import('@xstyled/system').Theme, import('../../../../Elements/SimpleLink/SimpleLink').Props, never>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { LinkInCell };
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import styled from '@xstyled/styled-components';
|
|
6
|
+
import { SimpleLink } from '../../../../Elements/SimpleLink';
|
|
7
|
+
export var LinkInCell = styled(SimpleLink)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n text-decoration: underline;\n"], ["\n text-decoration: underline;\n"])));
|
|
8
|
+
var templateObject_1;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DataCellProps } from '../../types';
|
|
3
|
+
|
|
3
4
|
type Props = DataCellProps<any>;
|
|
4
|
-
export declare const Wrap: import(
|
|
5
|
-
export declare const Trigger: import(
|
|
5
|
+
export declare const Wrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
6
|
+
export declare const Trigger: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
6
7
|
export declare const RemoveCell: FC<Props>;
|
|
7
8
|
export {};
|
|
@@ -1,41 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Trans } from "@lingui/react";
|
|
6
|
-
//#region packages/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.tsx
|
|
7
|
-
const Wrap = styled$1.div`
|
|
8
|
-
width: 100%;
|
|
9
|
-
`;
|
|
10
|
-
const Trigger = styled$1.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
color: gray;
|
|
15
|
-
font-weight: bold;
|
|
16
|
-
font-size: 10px;
|
|
17
|
-
& .faIcon {
|
|
18
|
-
margin-right: 4px;
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
const RemoveCell = ({ rowData, onRowAction }) => {
|
|
22
|
-
const onRemoveClick = React.useCallback(() => {
|
|
23
|
-
onRowAction?.(rowData.id, "remove", rowData);
|
|
24
|
-
}, [rowData, onRowAction]);
|
|
25
|
-
if (rowData?.product?.type === "virtual") return /* @__PURE__ */ jsx(Trans, {
|
|
26
|
-
id: "dataGrid.columnLot.NA",
|
|
27
|
-
message: "N/A"
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ jsx(Wrap, { children: /* @__PURE__ */ jsxs(Trigger, {
|
|
30
|
-
onClick: onRemoveClick,
|
|
31
|
-
children: [/* @__PURE__ */ jsx(Icon, {
|
|
32
|
-
icon: "deleteX",
|
|
33
|
-
size: "12px"
|
|
34
|
-
}), /* @__PURE__ */ jsx(Trans, {
|
|
35
|
-
id: "dataGrid.deleteItem",
|
|
36
|
-
message: "Delete"
|
|
37
|
-
})]
|
|
38
|
-
}) });
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
39
4
|
};
|
|
40
|
-
|
|
41
|
-
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import Icon from '../../../../Elements/Icon/Icon';
|
|
8
|
+
import { Trans } from '@lingui/react';
|
|
9
|
+
import styled from '@xstyled/styled-components';
|
|
10
|
+
export var Wrap = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
11
|
+
export var Trigger = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n cursor: pointer;\n color: gray;\n font-weight: bold;\n font-size: 10px;\n & .faIcon {\n margin-right: 4px;\n }\n"], ["\n display: flex;\n justify-content: center;\n cursor: pointer;\n color: gray;\n font-weight: bold;\n font-size: 10px;\n & .faIcon {\n margin-right: 4px;\n }\n"])));
|
|
12
|
+
export var RemoveCell = function (_a) {
|
|
13
|
+
var _b;
|
|
14
|
+
var rowData = _a.rowData, onRowAction = _a.onRowAction;
|
|
15
|
+
var onRemoveClick = React.useCallback(function () {
|
|
16
|
+
onRowAction === null || onRowAction === void 0 ? void 0 : onRowAction(rowData.id, 'remove', rowData);
|
|
17
|
+
}, [rowData, onRowAction]);
|
|
18
|
+
if (((_b = rowData === null || rowData === void 0 ? void 0 : rowData.product) === null || _b === void 0 ? void 0 : _b.type) === 'virtual') {
|
|
19
|
+
return _jsx(Trans, { id: "dataGrid.columnLot.NA", message: "N/A" });
|
|
20
|
+
}
|
|
21
|
+
return (_jsx(Wrap, { children: _jsxs(Trigger, { onClick: onRemoveClick, children: [_jsx(Icon, { icon: "deleteX", size: "12px" }), _jsx(Trans, { id: "dataGrid.deleteItem", message: "Delete" })] }) }));
|
|
22
|
+
};
|
|
23
|
+
var templateObject_1, templateObject_2;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DataCellProps, ActionColumn, UxState, GridActionsType } from '../../types';
|
|
3
|
+
|
|
3
4
|
type Props = DataCellProps<{
|
|
4
5
|
id: string;
|
|
5
6
|
}> & {
|
|
@@ -1,79 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})
|
|
56
|
-
}),
|
|
57
|
-
addRowNumbers && /* @__PURE__ */ jsx(x.div, {
|
|
58
|
-
display: "flex",
|
|
59
|
-
alignItems: "center",
|
|
60
|
-
justifyContent: "center",
|
|
61
|
-
pr: "8px",
|
|
62
|
-
w: "100%",
|
|
63
|
-
children: rowIndex
|
|
64
|
-
}),
|
|
65
|
-
canEdit && /* @__PURE__ */ jsx(IconButtonInCell, {
|
|
66
|
-
icon: "pen",
|
|
67
|
-
onClick: handleOnClick,
|
|
68
|
-
linkTo
|
|
69
|
-
}, "edit"),
|
|
70
|
-
!canEdit && canRead && /* @__PURE__ */ jsx(IconButtonInCell, {
|
|
71
|
-
icon: "chevronRight",
|
|
72
|
-
onClick: handleOnClick,
|
|
73
|
-
linkTo
|
|
74
|
-
}, "read")
|
|
75
|
-
]
|
|
76
|
-
});
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useCallback, useMemo } from 'react';
|
|
14
|
+
import Checkbox from '../../../../Forms/Checkbox';
|
|
15
|
+
import { x } from '@xstyled/styled-components';
|
|
16
|
+
import { isFunction } from 'lodash/fp';
|
|
17
|
+
import { IconButtonInCell } from './IconButtonInCell';
|
|
18
|
+
export var RowActionsCell = function (_a) {
|
|
19
|
+
var actionColumnDefinition = _a.actionColumnDefinition, rowData = _a.rowData, addRowNumbers = _a.addRowNumbers, rowIndex = _a.rowIndex, checkedRows = _a.checkedRows, withCheckboxes = _a.withCheckboxes, onUxChange = _a.onUxChange, onRowAction = _a.onRowAction;
|
|
20
|
+
var rowDataId = rowData === null || rowData === void 0 ? void 0 : rowData.id;
|
|
21
|
+
var canEdit = isFunction(actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowEdit)
|
|
22
|
+
? actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowEdit(rowData)
|
|
23
|
+
: actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowEdit;
|
|
24
|
+
var canRead = isFunction(actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowRead)
|
|
25
|
+
? actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowRead(rowData)
|
|
26
|
+
: actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowRead;
|
|
27
|
+
// if canEdit and canRead are both true, canEdit supersedes canRead
|
|
28
|
+
var onClick = useCallback(function () {
|
|
29
|
+
var action = canEdit ? 'row_edit' : 'row_read';
|
|
30
|
+
onRowAction === null || onRowAction === void 0 ? void 0 : onRowAction(rowData === null || rowData === void 0 ? void 0 : rowData.id, action, rowData);
|
|
31
|
+
}, [canEdit, onRowAction, rowData]);
|
|
32
|
+
var linkTo = useMemo(function () {
|
|
33
|
+
var _a;
|
|
34
|
+
var mode = canEdit ? 'edit' : 'read';
|
|
35
|
+
return (_a = actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.createLink) === null || _a === void 0 ? void 0 : _a.call(actionColumnDefinition, { mode: mode, id: rowData === null || rowData === void 0 ? void 0 : rowData.id });
|
|
36
|
+
}, [canEdit, rowData === null || rowData === void 0 ? void 0 : rowData.id]);
|
|
37
|
+
var isChecked = !!(checkedRows === null || checkedRows === void 0 ? void 0 : checkedRows[rowDataId]);
|
|
38
|
+
// @TODO this should be in reducer
|
|
39
|
+
var onCheckboxChange = useCallback(function () {
|
|
40
|
+
var newCheckedRows = __assign({}, (checkedRows || {}));
|
|
41
|
+
if (!isChecked) {
|
|
42
|
+
newCheckedRows[rowDataId] = true;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
delete newCheckedRows[rowDataId];
|
|
46
|
+
}
|
|
47
|
+
onUxChange === null || onUxChange === void 0 ? void 0 : onUxChange('checkedRows', newCheckedRows);
|
|
48
|
+
}, [onUxChange, isChecked, rowDataId, checkedRows]);
|
|
49
|
+
var handleOnClick = useCallback(function () {
|
|
50
|
+
if (isFunction(onClick)) {
|
|
51
|
+
onClick();
|
|
52
|
+
}
|
|
53
|
+
}, [onClick]);
|
|
54
|
+
return (_jsxs(x.div, { w: "100%", display: "flex", gap: "16px", pl: "4px", pr: "4px", children: [withCheckboxes && (_jsx(x.div, { w: "100%", children: _jsx(Checkbox, { checked: isChecked, onChange: onCheckboxChange, label: "" }) })), addRowNumbers && (_jsx(x.div, { display: "flex", alignItems: "center", justifyContent: "center", pr: "8px", w: "100%", children: rowIndex })), canEdit && _jsx(IconButtonInCell, { icon: "pen", onClick: handleOnClick, linkTo: linkTo }, "edit"), !canEdit && canRead && _jsx(IconButtonInCell, { icon: "chevronRight", onClick: handleOnClick, linkTo: linkTo }, "read")] }));
|
|
77
55
|
};
|
|
78
|
-
//#endregion
|
|
79
|
-
export { RowActionsCell };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return values?.length ? /* @__PURE__ */ jsx("span", { children: values.join(", ") }) : null;
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import get from 'lodash/fp/get';
|
|
3
|
+
export var StringJoinCell = function (_a) {
|
|
4
|
+
var rowData = _a.rowData, column = _a.column;
|
|
5
|
+
var values = get(column.name, rowData);
|
|
6
|
+
return (values === null || values === void 0 ? void 0 : values.length) ? _jsx("span", { children: values.join(', ') }) : null;
|
|
8
7
|
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { StringJoinCell };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Toggle from '../../../../Elements/Toggle/Toggle';
|
|
14
|
+
export var SwitchInCell = function (props) {
|
|
15
|
+
return _jsx(Toggle, __assign({}, props, { variant: "grid" }));
|
|
10
16
|
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { SwitchInCell };
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { useCallback } from
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback } from 'react';
|
|
3
|
+
import get from 'lodash/fp/get';
|
|
4
|
+
import { SwitchInCell } from './SwitchInCell';
|
|
5
|
+
export var ToggleCell = function (_a) {
|
|
6
|
+
var _b;
|
|
7
|
+
var rowData = _a.rowData, column = _a.column, onRowAction = _a.onRowAction;
|
|
8
|
+
var inverse = !!((_b = column === null || column === void 0 ? void 0 : column.passProps) === null || _b === void 0 ? void 0 : _b.inverse);
|
|
9
|
+
var rawValue = get(column.name, rowData);
|
|
10
|
+
var value = inverse ? !rawValue : !!rawValue;
|
|
11
|
+
var actionName = "toggle_".concat(column.name);
|
|
12
|
+
var _c = React.useState(value), isChecked = _c[0], setIsChecked = _c[1];
|
|
13
|
+
React.useEffect(function () {
|
|
14
|
+
setIsChecked(value);
|
|
15
|
+
}, [rowData.id]);
|
|
16
|
+
var onSwitchChange = useCallback(function () {
|
|
17
|
+
if (!onRowAction)
|
|
18
|
+
return;
|
|
19
|
+
var ret = onRowAction(rowData.id, actionName, !isChecked, rowData);
|
|
20
|
+
if (ret) {
|
|
21
|
+
// promise returned = we wait for result
|
|
22
|
+
ret.then(function () {
|
|
23
|
+
setIsChecked(!isChecked);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
// no promise = we fake feedback
|
|
28
|
+
setIsChecked(!isChecked);
|
|
29
|
+
}
|
|
30
|
+
}, [onRowAction, rowData.id, actionName, isChecked]);
|
|
31
|
+
return _jsx(SwitchInCell, { checked: isChecked, onChange: onSwitchChange });
|
|
31
32
|
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { ToggleCell };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export { BoolIconCell, ButtonInCell, DateCell, DateTimeCell, EnumInCell, HoverBubble, IconButtonInCell, ImageCell, LinkInCell, RemoveCell, RowActionsCell, StringJoinCell, SwitchInCell, ToggleCell };
|
|
1
|
+
export { DateCell } from './Date';
|
|
2
|
+
export { DateTimeCell } from './DateTime';
|
|
3
|
+
export { StringJoinCell } from './StringJoin';
|
|
4
|
+
export { BoolIconCell } from './BoolIcon';
|
|
5
|
+
export { RemoveCell } from './RemoveItem';
|
|
6
|
+
export { LinkInCell } from './LinkInCell';
|
|
7
|
+
export { ButtonInCell } from './ButtonInCell';
|
|
8
|
+
export { IconButtonInCell } from './IconButtonInCell';
|
|
9
|
+
export { SwitchInCell } from './SwitchInCell';
|
|
10
|
+
export { ImageCell } from './ImageCell';
|
|
11
|
+
export { EnumInCell } from './EnumInCell';
|
|
12
|
+
export { HoverBubble } from './HoverBubble';
|
|
13
|
+
export { RowActionsCell } from './RowActionsCell';
|
|
14
|
+
export { ToggleCell } from './ToggleCell';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var Edit = function (props) { return (_jsx("svg", __assign({ "data-icon": "edit", viewBox: "0 0 16 16" }, props, { children: _jsx("path", { d: "M3.25 10.26l2.47 2.47 6.69-6.69-2.46-2.48-6.7 6.7zM.99 14.99l3.86-1.39-2.46-2.44-1.4 3.83zm12.25-14c-.48 0-.92.2-1.24.51l-1.44 1.44 2.47 2.47 1.44-1.44c.32-.32.51-.75.51-1.24.01-.95-.77-1.74-1.74-1.74z", fillRule: "evenodd" }) }))); };
|
|
14
|
+
export default Edit;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var EyeOpen = function (props) { return (_jsx("svg", __assign({ "data-icon": "eye-open", viewBox: "0 0 16 16" }, props, { children: _jsx("path", { d: "M8.002 7.003a1.003 1.003 0 000 2.005 1.003 1.003 0 000-2.005zm7.988.972v-.02-.01-.02-.02a.675.675 0 00-.17-.36c-.509-.673-1.118-1.264-1.737-1.806-1.328-1.173-2.846-2.155-4.523-2.546a6.702 6.702 0 00-2.925-.06c-.889.18-1.738.541-2.546.992C2.84 4.837 1.692 5.81.694 6.902c-.18.211-.36.411-.53.632a.742.742 0 000 .932c.51.672 1.119 1.264 1.738 1.805 1.328 1.173 2.846 2.156 4.523 2.547.968.23 1.947.24 2.925.04.889-.18 1.738-.542 2.546-.993 1.248-.712 2.397-1.684 3.395-2.777.18-.2.37-.411.54-.632.09-.1.149-.23.169-.36v-.02-.02-.01-.02-.03c0-.01-.01-.01-.01-.02zm-7.988 3.038a2.998 2.998 0 01-2.995-3.008 2.998 2.998 0 012.995-3.008 2.998 2.998 0 012.996 3.008 2.998 2.998 0 01-2.996 3.008z", fillRule: "evenodd" }) }))); };
|
|
14
|
+
export default EyeOpen;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
16
|
-
d: "M12 5c-.28 0-.53.11-.71.29L8 8.59l-3.29-3.3a1.003 1.003 0 00-1.42 1.42l4 4c.18.18.43.29.71.29s.53-.11.71-.29l4-4A1.003 1.003 0 0012 5z",
|
|
17
|
-
fillRule: "evenodd"
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { SortingDown, SortingUp };
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
export var SortingUp = function (props) { return (_jsx("svg", __assign({ viewBox: "0 0 16 16" }, props, { children: _jsx("path", { d: "M12.71 9.29l-4-4C8.53 5.11 8.28 5 8 5s-.53.11-.71.29l-4 4a1.003 1.003 0 001.42 1.42L8 7.41l3.29 3.29c.18.19.43.3.71.3a1.003 1.003 0 00.71-1.71z", fillRule: "evenodd" }) }))); };
|
|
14
|
+
export var SortingDown = function (props) { return (_jsx("svg", __assign({ viewBox: "0 0 16 16" }, props, { children: _jsx("path", { d: "M12 5c-.28 0-.53.11-.71.29L8 8.59l-3.29-3.3a1.003 1.003 0 00-1.42 1.42l4 4c.18.18.43.29.71.29s.53-.11.71-.29l4-4A1.003 1.003 0 0012 5z", fillRule: "evenodd" }) }))); };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { useState } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
export var useTimeMeasurement = function (_a) {
|
|
3
|
+
var handleRowClick = _a.handleRowClick;
|
|
4
|
+
var _b = useState(0), startTime = _b[0], setStartTime = _b[1];
|
|
5
|
+
var handleMouseDown = function () {
|
|
6
|
+
// Set the start time when mouse is pressed
|
|
7
|
+
var start = Date.now();
|
|
8
|
+
setStartTime(start);
|
|
9
|
+
};
|
|
10
|
+
var handleMouseUp = function (e) {
|
|
11
|
+
if (startTime !== 0) {
|
|
12
|
+
// Calculate the time difference between mouse down and up
|
|
13
|
+
var endTime = Date.now();
|
|
14
|
+
var duration = endTime - startTime;
|
|
15
|
+
if (duration > 0 && duration < 200) {
|
|
16
|
+
handleRowClick(e);
|
|
17
|
+
}
|
|
18
|
+
setStartTime(0);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return { handleMouseDown: handleMouseDown, handleMouseUp: handleMouseUp };
|
|
19
22
|
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { useTimeMeasurement };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GridActionsType, ColumnDefinition } from '../types';
|
|
2
|
+
|
|
2
3
|
type AddFilterRet = (value: any, column: ColumnDefinition, others?: any) => void;
|
|
3
|
-
export declare const useAddFilter: (onChange: Required<GridActionsType>[
|
|
4
|
+
export declare const useAddFilter: (onChange: Required<GridActionsType>['addFilter']) => AddFilterRet;
|
|
4
5
|
export {};
|