@mailstep/design-system 0.8.26 → 0.8.27-beta.0
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/README.md +76 -76
- package/package.json +146 -147
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +3 -4
- package/ui/Blocks/CommonGrid/CommonGrid.js +107 -0
- package/ui/Blocks/CommonGrid/CommonGridContainer.d.ts +2 -3
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +189 -0
- package/ui/Blocks/CommonGrid/HoC/withProps.d.ts +1 -2
- package/ui/Blocks/CommonGrid/HoC/withProps.js +11 -0
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.d.ts +1 -1
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +32 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +109 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +39 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +81 -0
- package/ui/Blocks/CommonGrid/components/ActionHead/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +2 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +45 -0
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +53 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +132 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ColumnTitle.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/ColumnTitle.js +40 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +160 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +4 -4
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.js +42 -0
- package/ui/Blocks/CommonGrid/components/DataCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/DataCell.js +37 -0
- package/ui/Blocks/CommonGrid/components/DataRow.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/DataRow.js +62 -0
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +69 -0
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +60 -0
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/FilterDropdown.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +32 -0
- package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/FilterRow.js +30 -0
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +34 -0
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +37 -0
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +152 -0
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js +10 -0
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.js +16 -0
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js +4 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +95 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.js +6 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.js +147 -0
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.d.ts +0 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.js +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +164 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.d.ts +0 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.js +1 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.d.ts +4 -5
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +81 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/GridInfo/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/GridInfo/index.js +34 -0
- package/ui/Blocks/CommonGrid/components/GridModals/index.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/GridModals/index.js +136 -0
- package/ui/Blocks/CommonGrid/components/GridStatus/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/GridStatus/index.js +27 -0
- package/ui/Blocks/CommonGrid/components/GroupRow.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/GroupRow.js +29 -0
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/HeadCell.js +37 -0
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +3 -4
- package/ui/Blocks/CommonGrid/components/HeadRow.js +72 -0
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +5 -6
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +63 -0
- package/ui/Blocks/CommonGrid/components/IconList/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/IconList/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +4 -4
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +55 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +70 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.js +17 -0
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.js +9 -0
- package/ui/Blocks/CommonGrid/components/MobileFilterModal.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +113 -0
- package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.js +14 -0
- package/ui/Blocks/CommonGrid/components/MobileSortModal.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/MobileSortModal.js +70 -0
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +36 -0
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.js +19 -0
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.js +92 -0
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.js +31 -0
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/Resize.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/Resize.js +48 -0
- package/ui/Blocks/CommonGrid/components/Table.d.ts +8 -8
- package/ui/Blocks/CommonGrid/components/Table.js +42 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +66 -0
- package/ui/Blocks/CommonGrid/components/TablePagination/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/TablePagination/index.js +5 -0
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +19 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +13 -0
- package/ui/Blocks/CommonGrid/components/gridCells/Date.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +11 -0
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +13 -0
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +30 -0
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +52 -0
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +34 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +31 -0
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +9 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.d.ts +4 -5
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +41 -0
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +79 -0
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +10 -0
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +12 -0
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +33 -0
- package/ui/Blocks/CommonGrid/components/gridCells/index.js +15 -0
- package/ui/Blocks/CommonGrid/components/icons/Edit.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/icons/Edit.js +14 -0
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +14 -0
- package/ui/Blocks/CommonGrid/components/icons/Sorting.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/icons/Sorting.js +21 -0
- package/ui/Blocks/CommonGrid/components/utils.d.ts +0 -1
- package/ui/Blocks/CommonGrid/components/utils.js +21 -0
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +17 -0
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +87 -0
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.js +32 -0
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.js +24 -0
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +58 -0
- package/ui/Blocks/CommonGrid/hooks/useEvent.js +13 -0
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.js +15 -0
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +27 -0
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.js +13 -0
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +99 -0
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.d.ts +2 -3
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +57 -0
- package/ui/Blocks/CommonGrid/hooks/usePresetsState.js +16 -0
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.d.ts +2 -3
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.js +78 -0
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +20 -0
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.js +21 -0
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +1 -2
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.js +19 -0
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useUxReset.js +14 -0
- package/ui/Blocks/CommonGrid/index.d.ts +6 -7
- package/ui/Blocks/CommonGrid/index.js +26 -0
- package/ui/Blocks/CommonGrid/store/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/store/index.js +293 -0
- package/ui/Blocks/CommonGrid/store/migrateState.d.ts +0 -1
- package/ui/Blocks/CommonGrid/store/migrateState.js +13 -0
- package/ui/Blocks/CommonGrid/store/store.d.js +1 -0
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.d.ts +2 -3
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.js +19 -0
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.d.ts +2 -3
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.js +22 -0
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +0 -1
- package/ui/Blocks/CommonGrid/storybook/utils/actions.js +10 -0
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +1 -2
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +125 -0
- package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +2 -3
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +114 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +14 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +7 -0
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +4 -0
- package/ui/Blocks/CommonGrid/styles.d.ts +9 -9
- package/ui/Blocks/CommonGrid/styles.js +253 -0
- package/ui/Blocks/CommonGrid/types.d.ts +1 -2
- package/ui/Blocks/CommonGrid/types.js +22 -0
- package/ui/Blocks/CommonGrid/utils/constants.js +26 -0
- package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.d.ts +1 -2
- package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.js +17 -0
- package/ui/Blocks/CommonGrid/utils/getRowsPerPage.js +10 -0
- package/ui/Blocks/CommonGrid/utils/hasSortTerminated.js +10 -0
- package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -2
- package/ui/Blocks/CommonGrid/utils/index.js +78 -0
- package/ui/Blocks/CornerDialog/CornerDialog.d.ts +2 -3
- package/ui/Blocks/CornerDialog/CornerDialog.js +43 -0
- package/ui/Blocks/CornerDialog/index.d.js +1 -0
- package/ui/Blocks/CornerDialog/index.d.ts +0 -1
- package/ui/Blocks/CornerDialog/index.js +5 -0
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +1 -2
- package/ui/Blocks/CornerDialog/styles.d.ts +6 -6
- package/ui/Blocks/CornerDialog/styles.js +57 -0
- package/ui/Blocks/CornerDialog/types.d.ts +1 -2
- package/ui/Blocks/CornerDialog/types.js +1 -0
- package/ui/Blocks/CornerDialog/utils.d.ts +0 -1
- package/ui/Blocks/CornerDialog/utils.js +31 -0
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.d.ts +2 -3
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.js +16 -0
- package/ui/Blocks/Header/components/MenuItems/index.d.ts +2 -3
- package/ui/Blocks/Header/components/MenuItems/index.js +9 -0
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +2 -2
- package/ui/Blocks/Header/components/MenuItems/styles.js +22 -0
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.d.ts +1 -2
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.js +23 -0
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.d.ts +2 -2
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.js +14 -0
- package/ui/Blocks/Header/components/UserMenu/hooks/index.js +2 -0
- package/ui/Blocks/Header/components/UserMenu/hooks/useLogout.js +10 -0
- package/ui/Blocks/Header/components/UserMenu/index.d.ts +2 -3
- package/ui/Blocks/Header/components/UserMenu/index.js +49 -0
- package/ui/Blocks/Header/components/UserMenu/styles.d.ts +3 -3
- package/ui/Blocks/Header/components/UserMenu/styles.js +25 -0
- package/ui/Blocks/Header/hooks/useChangeLanguage.js +9 -0
- package/ui/Blocks/Header/index.d.ts +5 -6
- package/ui/Blocks/Header/index.js +45 -0
- package/ui/Blocks/Header/stories/Header.stories.d.ts +6 -7
- package/ui/Blocks/Header/styles.d.ts +4 -4
- package/ui/Blocks/Header/styles.js +34 -0
- package/ui/Blocks/Header/types.js +1 -0
- package/ui/Blocks/Header/utils/constants.js +4 -0
- package/ui/Blocks/Header/utils/languageItems.d.ts +1 -2
- package/ui/Blocks/Header/utils/languageItems.js +15 -0
- package/ui/Blocks/HidePrint/HidePrint.d.ts +1 -2
- package/ui/Blocks/HidePrint/HidePrint.js +13 -0
- package/ui/Blocks/ImageList/ImageList.d.ts +2 -3
- package/ui/Blocks/ImageList/ImageList.js +80 -0
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +2 -3
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +36 -0
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +30 -0
- package/ui/Blocks/ImageList/components/CloseButton/index.d.ts +1 -2
- package/ui/Blocks/ImageList/components/CloseButton/index.js +18 -0
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +18 -0
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +1 -2
- package/ui/Blocks/ImageList/components/ImageElement/index.js +29 -0
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +3 -3
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +22 -0
- package/ui/Blocks/ImageList/components/ImageTag/index.d.ts +1 -2
- package/ui/Blocks/ImageList/components/ImageTag/index.js +15 -0
- package/ui/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/ImageTag/styles.js +9 -0
- package/ui/Blocks/ImageList/hooks/useControls.js +14 -0
- package/ui/Blocks/ImageList/hooks/useOnElementClick.d.ts +1 -2
- package/ui/Blocks/ImageList/hooks/useOnElementClick.js +15 -0
- package/ui/Blocks/ImageList/index.d.js +1 -0
- package/ui/Blocks/ImageList/index.d.ts +1 -2
- package/ui/Blocks/ImageList/index.js +5 -0
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +1 -2
- package/ui/Blocks/ImageList/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/styles.js +29 -0
- package/ui/Blocks/ImageList/types.d.ts +1 -2
- package/ui/Blocks/ImageList/types.js +1 -0
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.d.ts +2 -3
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.js +53 -0
- package/ui/Blocks/LanguageSwitch/index.d.ts +1 -2
- package/ui/Blocks/LanguageSwitch/index.js +5 -0
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +1 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +3 -3
- package/ui/Blocks/LanguageSwitch/styles.js +32 -0
- package/ui/Blocks/LanguageSwitch/types.d.ts +0 -1
- package/ui/Blocks/LanguageSwitch/types.js +1 -0
- package/ui/Blocks/LightBox/LightBox.d.ts +2 -3
- package/ui/Blocks/LightBox/LightBox.js +41 -0
- package/ui/Blocks/LightBox/hooks/useLightBox.d.ts +1 -2
- package/ui/Blocks/LightBox/hooks/useLightBox.js +17 -0
- package/ui/Blocks/LightBox/index.d.js +1 -0
- package/ui/Blocks/LightBox/index.d.ts +0 -1
- package/ui/Blocks/LightBox/index.js +6 -0
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +1 -2
- package/ui/Blocks/LightBox/styles.d.ts +4 -4
- package/ui/Blocks/LightBox/styles.js +28 -0
- package/ui/Blocks/LightBox/types.js +1 -0
- package/ui/Blocks/LoginPage/LoginPage.d.ts +2 -3
- package/ui/Blocks/LoginPage/LoginPage.js +63 -0
- package/ui/Blocks/LoginPage/assets/mailship.js +4 -0
- package/ui/Blocks/LoginPage/components/LoginForm.d.ts +0 -1
- package/ui/Blocks/LoginPage/components/LoginForm.js +170 -0
- package/ui/Blocks/LoginPage/components/SocialLinks.d.ts +4 -5
- package/ui/Blocks/LoginPage/components/SocialLinks.js +82 -0
- package/ui/Blocks/LoginPage/index.d.ts +1 -2
- package/ui/Blocks/LoginPage/index.js +5 -0
- package/ui/Blocks/LoginPage/styles.d.ts +7 -8
- package/ui/Blocks/LoginPage/styles.js +75 -0
- package/ui/Blocks/LoginPage/types.d.ts +4 -5
- package/ui/Blocks/LoginPage/types.js +1 -0
- package/ui/Blocks/LoginPage/utils/links.js +10 -0
- package/ui/Blocks/Modal/Modal.d.ts +2 -3
- package/ui/Blocks/Modal/Modal.js +125 -0
- package/ui/Blocks/Modal/hooks/useClickOutside.d.ts +2 -3
- package/ui/Blocks/Modal/hooks/useClickOutside.js +28 -0
- package/ui/Blocks/Modal/hooks/useModal.d.ts +0 -1
- package/ui/Blocks/Modal/hooks/useModal.js +20 -0
- package/ui/Blocks/Modal/index.d.js +1 -0
- package/ui/Blocks/Modal/index.d.ts +0 -1
- package/ui/Blocks/Modal/index.js +7 -0
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +1 -2
- package/ui/Blocks/Modal/styles.d.ts +8 -9
- package/ui/Blocks/Modal/styles.js +183 -0
- package/ui/Blocks/Modal/types.d.ts +1 -2
- package/ui/Blocks/Modal/types.js +1 -0
- package/ui/Blocks/Modal/utils.d.ts +0 -1
- package/ui/Blocks/Modal/utils.js +10 -0
- package/ui/Blocks/Popover/index.d.ts +3 -4
- package/ui/Blocks/Popover/index.js +32 -0
- package/ui/Blocks/Scheduler/Scheduler.d.ts +2 -3
- package/ui/Blocks/Scheduler/Scheduler.js +44 -0
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.d.ts +2 -3
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +38 -0
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.js +35 -0
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/hooks/useCurrentTime.js +17 -0
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.d.ts +1 -2
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.js +14 -0
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.js +30 -0
- package/ui/Blocks/Scheduler/components/DateChanger/index.d.ts +2 -3
- package/ui/Blocks/Scheduler/components/DateChanger/index.js +50 -0
- package/ui/Blocks/Scheduler/components/DateChanger/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/components/DateChanger/styles.js +23 -0
- package/ui/Blocks/Scheduler/components/Groups/index.d.ts +2 -3
- package/ui/Blocks/Scheduler/components/Groups/index.js +11 -0
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/Groups/styles.js +32 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.d.ts +1 -2
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.js +46 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.d.ts +0 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.js +16 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/index.d.ts +2 -3
- package/ui/Blocks/Scheduler/components/TimeSlots/index.js +48 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +4 -4
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.js +52 -0
- package/ui/Blocks/Scheduler/hooks/useChangeDate.d.ts +2 -3
- package/ui/Blocks/Scheduler/hooks/useChangeDate.js +35 -0
- package/ui/Blocks/Scheduler/index.js +2 -0
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +1 -2
- package/ui/Blocks/Scheduler/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/styles.js +23 -0
- package/ui/Blocks/Scheduler/types.d.ts +1 -2
- package/ui/Blocks/Scheduler/types.js +1 -0
- package/ui/Blocks/Scheduler/utils/constants.js +9 -0
- package/ui/Blocks/Scheduler/utils/convertDateToTime.js +6 -0
- package/ui/Blocks/Scheduler/utils/convertIndexToISOString.js +11 -0
- package/ui/Blocks/Scheduler/utils/convertMinutesToDuration.js +10 -0
- package/ui/Blocks/Scheduler/utils/formatDate.js +8 -0
- package/ui/Blocks/Scheduler/utils/generateTimeArray.js +19 -0
- package/ui/Blocks/Scheduler/utils/getClosestStep.js +12 -0
- package/ui/Blocks/Scheduler/utils/getMinutesFromString.js +6 -0
- package/ui/Blocks/Scheduler/utils/getMinutesFromTime.js +7 -0
- package/ui/Blocks/Scheduler/utils/isActiveTime.d.ts +0 -1
- package/ui/Blocks/Scheduler/utils/isActiveTime.js +11 -0
- package/ui/Blocks/Scheduler/utils/isToday.js +7 -0
- package/ui/Blocks/SideMenu/MenuItem.d.ts +2 -3
- package/ui/Blocks/SideMenu/MenuItem.js +103 -0
- package/ui/Blocks/SideMenu/SideMenu.d.ts +2 -3
- package/ui/Blocks/SideMenu/SideMenu.js +37 -0
- package/ui/Blocks/SideMenu/components/Footer.d.ts +3 -4
- package/ui/Blocks/SideMenu/components/Footer.js +64 -0
- package/ui/Blocks/SideMenu/components/HamburgerMenu.js +52 -0
- package/ui/Blocks/SideMenu/components/SubitemTooltip.d.ts +2 -3
- package/ui/Blocks/SideMenu/components/SubitemTooltip.js +53 -0
- package/ui/Blocks/SideMenu/context/LeftMenuContext.d.ts +1 -2
- package/ui/Blocks/SideMenu/context/LeftMenuContext.js +20 -0
- package/ui/Blocks/SideMenu/context/useLeftMenuContext.js +10 -0
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.d.ts +0 -1
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.js +25 -0
- package/ui/Blocks/SideMenu/index.d.ts +1 -2
- package/ui/Blocks/SideMenu/index.js +7 -0
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -1
- package/ui/Blocks/SideMenu/stories/menuItems.js +109 -0
- package/ui/Blocks/SideMenu/styles.d.ts +15 -16
- package/ui/Blocks/SideMenu/styles.js +310 -0
- package/ui/Blocks/SideMenu/types.d.ts +1 -2
- package/ui/Blocks/SideMenu/types.js +1 -0
- package/ui/Blocks/SideMenu/utils/constants.js +5 -0
- package/ui/Blocks/Stepper/Stepper.d.ts +2 -3
- package/ui/Blocks/Stepper/Stepper.js +34 -0
- package/ui/Blocks/Stepper/components/StepCircle/index.d.ts +1 -2
- package/ui/Blocks/Stepper/components/StepCircle/index.js +17 -0
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +1 -1
- package/ui/Blocks/Stepper/components/StepCircle/styles.js +23 -0
- package/ui/Blocks/Stepper/components/StepItem/index.d.ts +1 -2
- package/ui/Blocks/Stepper/components/StepItem/index.js +52 -0
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +3 -3
- package/ui/Blocks/Stepper/components/StepItem/styles.js +79 -0
- package/ui/Blocks/Stepper/hooks/useStepper.js +33 -0
- package/ui/Blocks/Stepper/index.js +4 -0
- package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +1 -2
- package/ui/Blocks/Stepper/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/styles.js +25 -0
- package/ui/Blocks/Stepper/types.d.ts +1 -2
- package/ui/Blocks/Stepper/types.js +1 -0
- package/ui/Blocks/Table/Table.d.ts +0 -1
- package/ui/Blocks/Table/Table.js +13 -0
- package/ui/Blocks/Table/index.js +2 -0
- package/ui/Blocks/Table/stories/Table.stories.d.ts +4 -4
- package/ui/Blocks/Table/types.js +1 -0
- package/ui/Blocks/Tabs/TabContent.d.ts +2 -3
- package/ui/Blocks/Tabs/TabContent.js +9 -0
- package/ui/Blocks/Tabs/Tabs.d.ts +2 -3
- package/ui/Blocks/Tabs/Tabs.js +46 -0
- package/ui/Blocks/Tabs/hooks/useTabs.d.ts +0 -1
- package/ui/Blocks/Tabs/hooks/useTabs.js +14 -0
- package/ui/Blocks/Tabs/index.d.js +1 -0
- package/ui/Blocks/Tabs/index.d.ts +0 -1
- package/ui/Blocks/Tabs/index.js +7 -0
- package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +1 -2
- package/ui/Blocks/Tabs/styles.d.ts +5 -5
- package/ui/Blocks/Tabs/styles.js +95 -0
- package/ui/Blocks/Tabs/types.d.ts +1 -2
- package/ui/Blocks/Tabs/types.js +1 -0
- package/ui/Elements/Alert/Alert.d.ts +0 -1
- package/ui/Elements/Alert/Alert.js +76 -0
- package/ui/Elements/Alert/index.d.js +1 -0
- package/ui/Elements/Alert/index.d.ts +1 -2
- package/ui/Elements/Alert/index.js +5 -0
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +2 -3
- package/ui/Elements/Alert/styles.d.ts +9 -9
- package/ui/Elements/Alert/styles.js +82 -0
- package/ui/Elements/Alert/types.d.ts +1 -2
- package/ui/Elements/Alert/types.js +1 -0
- package/ui/Elements/AsyncSelect/AsyncSelect.d.ts +4 -5
- package/ui/Elements/AsyncSelect/AsyncSelect.js +35 -0
- package/ui/Elements/AsyncSelect/index.d.ts +1 -2
- package/ui/Elements/AsyncSelect/index.js +5 -0
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +1 -1
- package/ui/Elements/Avatar/Avatar.d.ts +2 -3
- package/ui/Elements/Avatar/Avatar.js +38 -0
- package/ui/Elements/Avatar/index.d.js +1 -0
- package/ui/Elements/Avatar/index.d.ts +0 -1
- package/ui/Elements/Avatar/index.js +5 -0
- package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +2 -3
- package/ui/Elements/Avatar/types.js +1 -0
- package/ui/Elements/Badge/Badge.d.ts +1 -2
- package/ui/Elements/Badge/Badge.js +52 -0
- package/ui/Elements/Badge/index.d.js +1 -0
- package/ui/Elements/Badge/index.d.ts +1 -2
- package/ui/Elements/Badge/index.js +5 -0
- package/ui/Elements/Badge/stories/Badge.stories.d.ts +2 -3
- package/ui/Elements/BarChartSymbol/BarChartSymbol.d.ts +0 -1
- package/ui/Elements/BarChartSymbol/BarChartSymbol.js +22 -0
- package/ui/Elements/BarChartSymbol/index.js +2 -0
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +2 -3
- package/ui/Elements/BarChartSymbol/styles.d.ts +1 -1
- package/ui/Elements/BarChartSymbol/styles.js +10 -0
- package/ui/Elements/BorderedBox/BorderedBox.d.ts +2 -3
- package/ui/Elements/BorderedBox/BorderedBox.js +21 -0
- package/ui/Elements/BorderedBox/index.d.js +1 -0
- package/ui/Elements/BorderedBox/index.d.ts +1 -2
- package/ui/Elements/BorderedBox/index.js +5 -0
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +2 -3
- package/ui/Elements/BorderedBox/types.js +1 -0
- package/ui/Elements/Button/Button.d.js +1 -0
- package/ui/Elements/Button/Button.d.ts +2 -3
- package/ui/Elements/Button/Button.js +44 -0
- package/ui/Elements/Button/index.d.js +1 -0
- package/ui/Elements/Button/index.d.ts +1 -2
- package/ui/Elements/Button/index.js +5 -0
- package/ui/Elements/Button/stories/Button.stories.d.ts +2 -3
- package/ui/Elements/Button/styles.d.ts +4 -4
- package/ui/Elements/Button/styles.js +227 -0
- package/ui/Elements/Button/types.d.ts +1 -2
- package/ui/Elements/Button/types.js +1 -0
- package/ui/Elements/Card/Card.d.ts +0 -1
- package/ui/Elements/Card/Card.js +15 -0
- package/ui/Elements/Card/index.d.js +1 -0
- package/ui/Elements/Card/index.d.ts +1 -2
- package/ui/Elements/Card/index.js +5 -0
- package/ui/Elements/Card/stories/Card.stories.d.ts +2 -3
- package/ui/Elements/Card/styles.d.ts +1 -2
- package/ui/Elements/Card/styles.js +22 -0
- package/ui/Elements/Card/types.js +1 -0
- package/ui/Elements/CheckedCircle/index.d.ts +1 -2
- package/ui/Elements/CheckedCircle/index.js +15 -0
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +2 -3
- package/ui/Elements/CheckedCircle/styles.d.ts +1 -1
- package/ui/Elements/CheckedCircle/styles.js +15 -0
- package/ui/Elements/DatePicker/DatePicker.d.ts +8 -4
- package/ui/Elements/DatePicker/DatePicker.js +89 -0
- package/ui/Elements/DatePicker/Datetime/DateTime.d.ts +3 -4
- package/ui/Elements/DatePicker/Datetime/DateTime.js +428 -0
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.d.ts +2 -3
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.js +66 -0
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.js +12 -0
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.js +16 -0
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.js +16 -0
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.d.ts +1 -2
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +164 -0
- package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +31 -0
- package/ui/Elements/DatePicker/Datetime/types.d.ts +2 -3
- package/ui/Elements/DatePicker/Datetime/types.js +14 -0
- package/ui/Elements/DatePicker/Datetime/views/DaysView.d.ts +1 -2
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +140 -0
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.d.ts +1 -2
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +77 -0
- package/ui/Elements/DatePicker/Datetime/views/YearsView.d.ts +1 -2
- package/ui/Elements/DatePicker/Datetime/views/YearsView.js +86 -0
- package/ui/Elements/DatePicker/index.d.ts +1 -2
- package/ui/Elements/DatePicker/index.js +6 -0
- package/ui/Elements/DatePicker/styles.d.ts +1 -1
- package/ui/Elements/DatePicker/styles.js +234 -0
- package/ui/Elements/DatePicker/utils/constants.d.ts +0 -1
- package/ui/Elements/DatePicker/utils/constants.js +29 -0
- package/ui/Elements/Dropdown/Dropdown.d.ts +2 -3
- package/ui/Elements/Dropdown/Dropdown.js +55 -0
- package/ui/Elements/Dropdown/index.d.ts +1 -2
- package/ui/Elements/Dropdown/index.js +5 -0
- package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +2 -3
- package/ui/Elements/Dropdown/types.d.ts +0 -1
- package/ui/Elements/Dropdown/types.js +1 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.d.ts +2 -3
- package/ui/Elements/DropdownMenu/DropdownMenu.js +35 -0
- package/ui/Elements/DropdownMenu/components/DefaultItem.d.ts +2 -3
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +32 -0
- package/ui/Elements/DropdownMenu/components/MenuItem.d.ts +2 -3
- package/ui/Elements/DropdownMenu/components/MenuItem.js +59 -0
- package/ui/Elements/DropdownMenu/components/MenuList.d.ts +2 -3
- package/ui/Elements/DropdownMenu/components/MenuList.js +15 -0
- package/ui/Elements/DropdownMenu/index.js +2 -0
- package/ui/Elements/DropdownMenu/types.d.ts +1 -2
- package/ui/Elements/DropdownMenu/types.js +1 -0
- package/ui/Elements/DropdownSelect/DropdownSelect.d.ts +3 -4
- package/ui/Elements/DropdownSelect/DropdownSelect.js +128 -0
- package/ui/Elements/DropdownSelect/index.d.ts +1 -2
- package/ui/Elements/DropdownSelect/index.js +5 -0
- package/ui/Elements/ErrorMessage/ErrorMessage.d.ts +2 -3
- package/ui/Elements/ErrorMessage/ErrorMessage.js +64 -0
- package/ui/Elements/ErrorMessage/index.d.js +1 -0
- package/ui/Elements/ErrorMessage/index.d.ts +1 -2
- package/ui/Elements/ErrorMessage/index.js +5 -0
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +2 -3
- package/ui/Elements/ErrorMessage/types.d.ts +0 -1
- package/ui/Elements/ErrorMessage/types.js +1 -0
- package/ui/Elements/HighlightBox/HighlightBox.d.ts +1 -2
- package/ui/Elements/HighlightBox/HighlightBox.js +101 -0
- package/ui/Elements/HighlightBox/index.d.ts +1 -2
- package/ui/Elements/HighlightBox/index.js +5 -0
- package/ui/Elements/Icon/BadgeIcon.d.ts +2 -3
- package/ui/Elements/Icon/BadgeIcon.js +28 -0
- package/ui/Elements/Icon/Icon.d.ts +4 -5
- package/ui/Elements/Icon/Icon.js +283 -0
- package/ui/Elements/Icon/icons/Add.d.ts +1 -2
- package/ui/Elements/Icon/icons/Add.js +33 -0
- package/ui/Elements/Icon/icons/AddPhoto.d.ts +0 -1
- package/ui/Elements/Icon/icons/AddPhoto.js +34 -0
- package/ui/Elements/Icon/icons/Admin.d.ts +0 -1
- package/ui/Elements/Icon/icons/Admin.js +26 -0
- package/ui/Elements/Icon/icons/ArrowDown.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowDown.js +18 -0
- package/ui/Elements/Icon/icons/ArrowForward.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowForward.js +12 -0
- package/ui/Elements/Icon/icons/ArrowUp.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowUp.js +18 -0
- package/ui/Elements/Icon/icons/ArrowUpRightDownLeft.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowUpRightDownLeft.js +21 -0
- package/ui/Elements/Icon/icons/ArrowsLeftRight.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowsLeftRight.js +12 -0
- package/ui/Elements/Icon/icons/ArrowsUpDown.d.ts +1 -2
- package/ui/Elements/Icon/icons/ArrowsUpDown.js +12 -0
- package/ui/Elements/Icon/icons/BarcodeScan.d.ts +0 -1
- package/ui/Elements/Icon/icons/BarcodeScan.js +13 -0
- package/ui/Elements/Icon/icons/Box.d.ts +0 -1
- package/ui/Elements/Icon/icons/Box.js +17 -0
- package/ui/Elements/Icon/icons/Calendar.d.ts +0 -1
- package/ui/Elements/Icon/icons/Calendar.js +39 -0
- package/ui/Elements/Icon/icons/Cancel.d.ts +0 -1
- package/ui/Elements/Icon/icons/Cancel.js +18 -0
- package/ui/Elements/Icon/icons/CheckedBox.d.ts +1 -2
- package/ui/Elements/Icon/icons/CheckedBox.js +23 -0
- package/ui/Elements/Icon/icons/CircleHalfStroke.d.ts +1 -2
- package/ui/Elements/Icon/icons/CircleHalfStroke.js +12 -0
- package/ui/Elements/Icon/icons/Company.d.ts +0 -1
- package/ui/Elements/Icon/icons/Company.js +82 -0
- package/ui/Elements/Icon/icons/Complaint.d.ts +1 -2
- package/ui/Elements/Icon/icons/Complaint.js +59 -0
- package/ui/Elements/Icon/icons/Consolidation.d.ts +1 -2
- package/ui/Elements/Icon/icons/Consolidation.js +13 -0
- package/ui/Elements/Icon/icons/Container.d.ts +1 -2
- package/ui/Elements/Icon/icons/Container.js +13 -0
- package/ui/Elements/Icon/icons/Dashboard.d.ts +1 -2
- package/ui/Elements/Icon/icons/Dashboard.js +36 -0
- package/ui/Elements/Icon/icons/Desktop.d.ts +1 -2
- package/ui/Elements/Icon/icons/Desktop.js +63 -0
- package/ui/Elements/Icon/icons/Dispatch.d.ts +1 -2
- package/ui/Elements/Icon/icons/Dispatch.js +13 -0
- package/ui/Elements/Icon/icons/EmptyRack.d.ts +0 -1
- package/ui/Elements/Icon/icons/EmptyRack.js +34 -0
- package/ui/Elements/Icon/icons/Expeditions.d.ts +1 -2
- package/ui/Elements/Icon/icons/Expeditions.js +62 -0
- package/ui/Elements/Icon/icons/Filter.d.ts +2 -3
- package/ui/Elements/Icon/icons/Filter.js +17 -0
- package/ui/Elements/Icon/icons/FlagCZ.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagCZ.js +55 -0
- package/ui/Elements/Icon/icons/FlagEL.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagEL.js +50 -0
- package/ui/Elements/Icon/icons/FlagESP.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagESP.js +93 -0
- package/ui/Elements/Icon/icons/FlagHU.d.ts +2 -3
- package/ui/Elements/Icon/icons/FlagHU.js +27 -0
- package/ui/Elements/Icon/icons/FlagITA.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagITA.js +55 -0
- package/ui/Elements/Icon/icons/FlagNL.d.ts +2 -3
- package/ui/Elements/Icon/icons/FlagNL.js +27 -0
- package/ui/Elements/Icon/icons/FlagRUS.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagRUS.js +55 -0
- package/ui/Elements/Icon/icons/FlagSVK.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagSVK.js +92 -0
- package/ui/Elements/Icon/icons/FlagUK.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagUK.js +20 -0
- package/ui/Elements/Icon/icons/FlagUSA.d.ts +1 -2
- package/ui/Elements/Icon/icons/FlagUSA.js +106 -0
- package/ui/Elements/Icon/icons/Foldable.d.ts +2 -3
- package/ui/Elements/Icon/icons/Foldable.js +34 -0
- package/ui/Elements/Icon/icons/Fragile.d.ts +1 -2
- package/ui/Elements/Icon/icons/Fragile.js +42 -0
- package/ui/Elements/Icon/icons/Gift.d.ts +1 -2
- package/ui/Elements/Icon/icons/Gift.js +41 -0
- package/ui/Elements/Icon/icons/Group.d.ts +0 -1
- package/ui/Elements/Icon/icons/Group.js +17 -0
- package/ui/Elements/Icon/icons/HamburgerMenu.d.ts +1 -2
- package/ui/Elements/Icon/icons/HamburgerMenu.js +41 -0
- package/ui/Elements/Icon/icons/HelpCircle1.d.ts +1 -2
- package/ui/Elements/Icon/icons/HelpCircle1.js +32 -0
- package/ui/Elements/Icon/icons/HorizontalLines.d.ts +0 -1
- package/ui/Elements/Icon/icons/HorizontalLines.js +36 -0
- package/ui/Elements/Icon/icons/ImagePlaceholder.d.ts +0 -1
- package/ui/Elements/Icon/icons/ImagePlaceholder.js +17 -0
- package/ui/Elements/Icon/icons/Income.d.ts +1 -2
- package/ui/Elements/Icon/icons/Income.js +22 -0
- package/ui/Elements/Icon/icons/Info.d.ts +1 -2
- package/ui/Elements/Icon/icons/Info.js +33 -0
- package/ui/Elements/Icon/icons/Integrations.d.ts +0 -1
- package/ui/Elements/Icon/icons/Integrations.js +17 -0
- package/ui/Elements/Icon/icons/Inventory.d.ts +1 -2
- package/ui/Elements/Icon/icons/Inventory.js +45 -0
- package/ui/Elements/Icon/icons/Inventory2.d.ts +1 -2
- package/ui/Elements/Icon/icons/Inventory2.js +66 -0
- package/ui/Elements/Icon/icons/Layout.d.ts +2 -3
- package/ui/Elements/Icon/icons/Layout.js +44 -0
- package/ui/Elements/Icon/icons/Link.d.ts +0 -1
- package/ui/Elements/Icon/icons/Link.js +20 -0
- package/ui/Elements/Icon/icons/Liquid.d.ts +2 -3
- package/ui/Elements/Icon/icons/Liquid.js +22 -0
- package/ui/Elements/Icon/icons/Location.d.ts +1 -2
- package/ui/Elements/Icon/icons/Location.js +13 -0
- package/ui/Elements/Icon/icons/Logout1.d.ts +1 -2
- package/ui/Elements/Icon/icons/Logout1.js +32 -0
- package/ui/Elements/Icon/icons/MachinePackingForbidden.d.ts +2 -3
- package/ui/Elements/Icon/icons/MachinePackingForbidden.js +70 -0
- package/ui/Elements/Icon/icons/MakePhoto.d.ts +1 -2
- package/ui/Elements/Icon/icons/MakePhoto.js +35 -0
- package/ui/Elements/Icon/icons/MenuItems.d.ts +1 -2
- package/ui/Elements/Icon/icons/MenuItems.js +39 -0
- package/ui/Elements/Icon/icons/Message.d.ts +1 -2
- package/ui/Elements/Icon/icons/Message.js +38 -0
- package/ui/Elements/Icon/icons/MobileCancel.d.ts +1 -2
- package/ui/Elements/Icon/icons/MobileCancel.js +22 -0
- package/ui/Elements/Icon/icons/MobilePhone.d.ts +2 -3
- package/ui/Elements/Icon/icons/MobilePhone.js +47 -0
- package/ui/Elements/Icon/icons/Moon.d.ts +1 -2
- package/ui/Elements/Icon/icons/Moon.js +12 -0
- package/ui/Elements/Icon/icons/Notification2.d.ts +1 -2
- package/ui/Elements/Icon/icons/Notification2.js +25 -0
- package/ui/Elements/Icon/icons/OpenBox.d.ts +0 -1
- package/ui/Elements/Icon/icons/OpenBox.js +37 -0
- package/ui/Elements/Icon/icons/Pallet.d.ts +1 -2
- package/ui/Elements/Icon/icons/Pallet.js +36 -0
- package/ui/Elements/Icon/icons/Plus1.d.ts +1 -2
- package/ui/Elements/Icon/icons/Plus1.js +17 -0
- package/ui/Elements/Icon/icons/Print.d.ts +1 -2
- package/ui/Elements/Icon/icons/Print.js +41 -0
- package/ui/Elements/Icon/icons/Product.d.ts +0 -1
- package/ui/Elements/Icon/icons/Product.js +17 -0
- package/ui/Elements/Icon/icons/Products.d.ts +1 -2
- package/ui/Elements/Icon/icons/Products.js +16 -0
- package/ui/Elements/Icon/icons/Profile.d.ts +1 -2
- package/ui/Elements/Icon/icons/Profile.js +25 -0
- package/ui/Elements/Icon/icons/Puzzle1.d.ts +1 -2
- package/ui/Elements/Icon/icons/Puzzle1.js +18 -0
- package/ui/Elements/Icon/icons/QRCode.d.ts +1 -2
- package/ui/Elements/Icon/icons/QRCode.js +19 -0
- package/ui/Elements/Icon/icons/Rack.d.ts +0 -1
- package/ui/Elements/Icon/icons/Rack.js +65 -0
- package/ui/Elements/Icon/icons/Reload.d.ts +2 -3
- package/ui/Elements/Icon/icons/Reload.js +13 -0
- package/ui/Elements/Icon/icons/Return.d.ts +1 -2
- package/ui/Elements/Icon/icons/Return.js +19 -0
- package/ui/Elements/Icon/icons/Rows.d.ts +0 -1
- package/ui/Elements/Icon/icons/Rows.js +39 -0
- package/ui/Elements/Icon/icons/Settings2.d.ts +1 -2
- package/ui/Elements/Icon/icons/Settings2.js +33 -0
- package/ui/Elements/Icon/icons/ShieldUser.d.ts +2 -3
- package/ui/Elements/Icon/icons/ShieldUser.js +9 -0
- package/ui/Elements/Icon/icons/ShoppingBag.d.ts +1 -2
- package/ui/Elements/Icon/icons/ShoppingBag.js +18 -0
- package/ui/Elements/Icon/icons/Sort.d.ts +2 -3
- package/ui/Elements/Icon/icons/Sort.js +23 -0
- package/ui/Elements/Icon/icons/Sun.d.ts +1 -2
- package/ui/Elements/Icon/icons/Sun.js +12 -0
- package/ui/Elements/Icon/icons/ThreeDots.d.ts +0 -1
- package/ui/Elements/Icon/icons/ThreeDots.js +39 -0
- package/ui/Elements/Icon/icons/ToastError.d.ts +0 -1
- package/ui/Elements/Icon/icons/ToastError.js +27 -0
- package/ui/Elements/Icon/icons/ToastSuccess.d.ts +0 -1
- package/ui/Elements/Icon/icons/ToastSuccess.js +27 -0
- package/ui/Elements/Icon/icons/Transfer.d.ts +1 -2
- package/ui/Elements/Icon/icons/Transfer.js +21 -0
- package/ui/Elements/Icon/icons/TrashBin.d.ts +0 -1
- package/ui/Elements/Icon/icons/TrashBin.js +33 -0
- package/ui/Elements/Icon/icons/Truck.d.ts +1 -2
- package/ui/Elements/Icon/icons/Truck.js +73 -0
- package/ui/Elements/Icon/icons/TwoBoxes.d.ts +1 -2
- package/ui/Elements/Icon/icons/TwoBoxes.js +20 -0
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.d.ts +1 -2
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +29 -0
- package/ui/Elements/Icon/icons/TwoUsers.d.ts +1 -2
- package/ui/Elements/Icon/icons/TwoUsers.js +42 -0
- package/ui/Elements/Icon/icons/UserCowboy.d.ts +2 -3
- package/ui/Elements/Icon/icons/UserCowboy.js +9 -0
- package/ui/Elements/Icon/icons/Valuable.d.ts +2 -3
- package/ui/Elements/Icon/icons/Valuable.js +34 -0
- package/ui/Elements/Icon/icons/Weight.d.ts +1 -2
- package/ui/Elements/Icon/icons/Weight.js +12 -0
- package/ui/Elements/Icon/icons/index.js +188 -0
- package/ui/Elements/Icon/index.d.ts +1 -2
- package/ui/Elements/Icon/index.js +97 -0
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +4 -5
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +2 -3
- package/ui/Elements/Icon/types.d.ts +1 -2
- package/ui/Elements/Icon/types.js +1 -0
- package/ui/Elements/Image/Image.d.ts +2 -3
- package/ui/Elements/Image/Image.js +16 -0
- package/ui/Elements/Image/index.d.ts +1 -2
- package/ui/Elements/Image/index.js +5 -0
- package/ui/Elements/Image/stories/Image.stories.d.ts +2 -3
- package/ui/Elements/Image/types.d.ts +1 -2
- package/ui/Elements/Image/types.js +1 -0
- package/ui/Elements/Label/Label.d.ts +2 -2
- package/ui/Elements/Label/Label.js +23 -0
- package/ui/Elements/Label/index.d.ts +0 -1
- package/ui/Elements/Label/index.js +5 -0
- package/ui/Elements/Label/stories/Label.stories.d.ts +2 -3
- package/ui/Elements/Line/Line.d.ts +0 -1
- package/ui/Elements/Line/Line.js +23 -0
- package/ui/Elements/Line/index.d.js +1 -0
- package/ui/Elements/Line/index.d.ts +1 -2
- package/ui/Elements/Line/index.js +5 -0
- package/ui/Elements/Line/stories/Line.stories.d.ts +2 -3
- package/ui/Elements/Line/types.d.ts +1 -2
- package/ui/Elements/Line/types.js +1 -0
- package/ui/Elements/Link/Link.d.ts +1 -2
- package/ui/Elements/Link/Link.js +44 -0
- package/ui/Elements/Link/index.d.ts +1 -2
- package/ui/Elements/Link/index.js +5 -0
- package/ui/Elements/Link/stories/Link.stories.d.ts +2 -3
- package/ui/Elements/Logo/Logo.d.ts +2 -3
- package/ui/Elements/Logo/Logo.js +69 -0
- package/ui/Elements/Logo/assets/mailship/logo_black.js +4 -0
- package/ui/Elements/Logo/assets/mailship/logo_m.js +4 -0
- package/ui/Elements/Logo/assets/mailship/logo_white.js +4 -0
- package/ui/Elements/Logo/assets/mailship/mailship-logo.js +4 -0
- package/ui/Elements/Logo/assets/mailship/mailship-logo.svg +12 -12
- package/ui/Elements/Logo/assets/mailstep/mailstep_black.js +4 -0
- package/ui/Elements/Logo/assets/mailstep/mailstep_black.svg +17 -17
- package/ui/Elements/Logo/assets/mailstep/mailstep_white.js +4 -0
- package/ui/Elements/Logo/assets/mailstep/mailstep_white.svg +17 -17
- package/ui/Elements/Logo/assets/mailstock/mailstock.js +4 -0
- package/ui/Elements/Logo/assets/mailstock/mailstock.svg +12 -12
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.js +4 -0
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.svg +46 -46
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.js +4 -0
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg +19 -19
- package/ui/Elements/Logo/assets/mailwrap/mailwrapLogo.js +4 -0
- package/ui/Elements/Logo/assets/mailwrap/mailwrapLogoSmall.js +4 -0
- package/ui/Elements/Logo/assets/mailwrap/mailwrapLogoSmall.svg +4 -4
- package/ui/Elements/Logo/assets/warehouse/manager.js +4 -0
- package/ui/Elements/Logo/assets/warehouse/manager.svg +5 -5
- package/ui/Elements/Logo/assets/warehouse/manager2.js +4 -0
- package/ui/Elements/Logo/assets/warehouse/manager2.svg +5 -5
- package/ui/Elements/Logo/assets/warehouse/manager3.js +4 -0
- package/ui/Elements/Logo/assets/warehouse/manager3.svg +4 -4
- package/ui/Elements/Logo/default.d.js +1 -0
- package/ui/Elements/Logo/index.d.js +1 -0
- package/ui/Elements/Logo/index.d.ts +1 -2
- package/ui/Elements/Logo/index.js +5 -0
- package/ui/Elements/Logo/stories/Logo.stories.d.ts +2 -3
- package/ui/Elements/Logo/types.js +1 -0
- package/ui/Elements/Pagination/Pagination.d.ts +1 -2
- package/ui/Elements/Pagination/Pagination.js +63 -0
- package/ui/Elements/Pagination/index.d.js +2 -0
- package/ui/Elements/Pagination/index.d.ts +1 -2
- package/ui/Elements/Pagination/index.js +5 -0
- package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +2 -3
- package/ui/Elements/Pagination/styled.d.ts +6 -6
- package/ui/Elements/Pagination/styled.js +64 -0
- package/ui/Elements/Portal/index.d.ts +1 -2
- package/ui/Elements/Portal/index.js +23 -0
- package/ui/Elements/ProgressBar/ProgressBar.d.ts +1 -2
- package/ui/Elements/ProgressBar/ProgressBar.js +17 -0
- package/ui/Elements/ProgressBar/index.d.ts +1 -2
- package/ui/Elements/ProgressBar/index.js +5 -0
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +2 -3
- package/ui/Elements/ProgressBar/styles.d.ts +3 -3
- package/ui/Elements/ProgressBar/styles.js +72 -0
- package/ui/Elements/Select/Select.d.ts +2 -3
- package/ui/Elements/Select/Select.js +97 -0
- package/ui/Elements/Select/components/ChevronOption.js +31 -0
- package/ui/Elements/Select/components/ConnectedMenu.js +26 -0
- package/ui/Elements/Select/components/CountMultiValue.d.ts +1 -2
- package/ui/Elements/Select/components/CountMultiValue.js +42 -0
- package/ui/Elements/Select/components/CustomInput.js +13 -0
- package/ui/Elements/Select/components/DropdownIndicator.d.ts +1 -2
- package/ui/Elements/Select/components/DropdownIndicator.js +30 -0
- package/ui/Elements/Select/components/IconValueContainer.js +30 -0
- package/ui/Elements/Select/components/SelectAll.d.ts +2 -2
- package/ui/Elements/Select/components/SelectAll.js +90 -0
- package/ui/Elements/Select/components/SelectedIndicator.d.ts +1 -1
- package/ui/Elements/Select/components/SelectedIndicator.js +7 -0
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -1
- package/ui/Elements/Select/components/SimplifiedOption.js +17 -0
- package/ui/Elements/Select/index.d.ts +1 -2
- package/ui/Elements/Select/index.js +5 -0
- package/ui/Elements/Select/styles.d.ts +5 -6
- package/ui/Elements/Select/styles.js +19 -0
- package/ui/Elements/Select/themes/index.d.ts +2 -3
- package/ui/Elements/Select/themes/index.js +41 -0
- package/ui/Elements/Select/themes/selectStyles.d.ts +1 -2
- package/ui/Elements/Select/themes/selectStyles.js +197 -0
- package/ui/Elements/Select/types.d.ts +3 -4
- package/ui/Elements/Select/types.js +1 -0
- package/ui/Elements/SimpleLink/SimpleLink.d.ts +2 -3
- package/ui/Elements/SimpleLink/SimpleLink.js +35 -0
- package/ui/Elements/SimpleLink/index.d.ts +1 -2
- package/ui/Elements/SimpleLink/index.js +5 -0
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +2 -3
- package/ui/Elements/SingleSelect/SingleSelect.js +150 -0
- package/ui/Elements/SingleSelect/index.d.ts +1 -2
- package/ui/Elements/SingleSelect/index.js +5 -0
- package/ui/Elements/SpaceAround/SpaceAround.d.ts +2 -3
- package/ui/Elements/SpaceAround/SpaceAround.js +33 -0
- package/ui/Elements/SpaceAround/index.d.ts +1 -2
- package/ui/Elements/SpaceAround/index.js +5 -0
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +2 -3
- package/ui/Elements/SpaceAround/types.js +1 -0
- package/ui/Elements/Spinner/Spinner.d.ts +2 -3
- package/ui/Elements/Spinner/Spinner.js +39 -0
- package/ui/Elements/Spinner/index.d.js +1 -0
- package/ui/Elements/Spinner/index.d.ts +1 -2
- package/ui/Elements/Spinner/index.js +5 -0
- package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +2 -3
- package/ui/Elements/Spinner/styles.d.ts +2 -2
- package/ui/Elements/Spinner/styles.js +36 -0
- package/ui/Elements/Spinner/types.js +1 -0
- package/ui/Elements/Table/Table.d.ts +6 -6
- package/ui/Elements/Table/Table.js +45 -0
- package/ui/Elements/Table/index.js +2 -0
- package/ui/Elements/Table/stories/Table.stories.d.ts +1 -1
- package/ui/Elements/Tag/Tag.d.ts +2 -3
- package/ui/Elements/Tag/Tag.js +52 -0
- package/ui/Elements/Tag/index.d.js +1 -0
- package/ui/Elements/Tag/index.d.ts +1 -2
- package/ui/Elements/Tag/index.js +6 -0
- package/ui/Elements/Tag/palettes.d.ts +1 -2
- package/ui/Elements/Tag/palettes.js +52 -0
- package/ui/Elements/Tag/stories/Tag.stories.d.ts +2 -3
- package/ui/Elements/Tag/stories/components/predefinedTags.js +19 -0
- package/ui/Elements/Tag/types.js +1 -0
- package/ui/Elements/Text/Text.d.ts +2 -3
- package/ui/Elements/Text/Text.js +10 -0
- package/ui/Elements/Text/index.d.js +1 -0
- package/ui/Elements/Text/index.d.ts +1 -2
- package/ui/Elements/Text/index.js +2 -0
- package/ui/Elements/Text/stories/Text.stories.d.ts +2 -3
- package/ui/Elements/Text/types.d.ts +0 -1
- package/ui/Elements/Text/types.js +1 -0
- package/ui/Elements/Toast/Toast.d.ts +1 -2
- package/ui/Elements/Toast/Toast.js +36 -0
- package/ui/Elements/Toast/constants.d.ts +1 -2
- package/ui/Elements/Toast/constants.js +21 -0
- package/ui/Elements/Toast/index.d.js +2 -0
- package/ui/Elements/Toast/index.d.ts +1 -2
- package/ui/Elements/Toast/index.js +5 -0
- package/ui/Elements/Toast/stories/Toast.stories.d.ts +2 -3
- package/ui/Elements/Toast/styles.d.ts +5 -5
- package/ui/Elements/Toast/styles.js +76 -0
- package/ui/Elements/Toggle/Toggle.d.ts +2 -3
- package/ui/Elements/Toggle/Toggle.js +124 -0
- package/ui/Elements/Toggle/index.d.js +1 -0
- package/ui/Elements/Toggle/index.d.ts +1 -2
- package/ui/Elements/Toggle/index.js +5 -0
- package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +2 -3
- package/ui/Elements/Toggle/types.d.ts +0 -1
- package/ui/Elements/Toggle/types.js +1 -0
- package/ui/Elements/Tooltip/Tooltip.d.ts +2 -3
- package/ui/Elements/Tooltip/Tooltip.js +51 -0
- package/ui/Elements/Tooltip/index.d.js +1 -0
- package/ui/Elements/Tooltip/index.d.ts +1 -2
- package/ui/Elements/Tooltip/index.js +5 -0
- package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +2 -3
- package/ui/Elements/Typography/Typography.d.ts +2 -3
- package/ui/Elements/Typography/Typography.js +75 -0
- package/ui/Elements/Typography/index.d.js +1 -0
- package/ui/Elements/Typography/index.d.ts +0 -1
- package/ui/Elements/Typography/index.js +5 -0
- package/ui/Elements/Typography/stories/Typography.stories.d.ts +1 -2
- package/ui/Forms/Checkbox/Checkbox.d.ts +2 -3
- package/ui/Forms/Checkbox/Checkbox.js +44 -0
- package/ui/Forms/Checkbox/index.d.js +1 -0
- package/ui/Forms/Checkbox/index.d.ts +1 -2
- package/ui/Forms/Checkbox/index.js +5 -0
- package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +1 -2
- package/ui/Forms/Checkbox/styles.d.ts +4 -4
- package/ui/Forms/Checkbox/styles.js +94 -0
- package/ui/Forms/Checkbox/types.d.ts +1 -2
- package/ui/Forms/Checkbox/types.js +1 -0
- package/ui/Forms/Input/Input.d.ts +2 -3
- package/ui/Forms/Input/Input.js +129 -0
- package/ui/Forms/Input/index.d.js +1 -0
- package/ui/Forms/Input/index.d.ts +0 -1
- package/ui/Forms/Input/index.js +5 -0
- package/ui/Forms/Input/stories/Input.stories.d.ts +2 -3
- package/ui/Forms/Input/styles.d.ts +9 -9
- package/ui/Forms/Input/styles.js +219 -0
- package/ui/Forms/Input/types.d.ts +1 -2
- package/ui/Forms/Input/types.js +1 -0
- package/ui/Forms/RadioButton/RadioButton.d.ts +2 -3
- package/ui/Forms/RadioButton/RadioButton.js +24 -0
- package/ui/Forms/RadioButton/index.d.js +1 -0
- package/ui/Forms/RadioButton/index.d.ts +1 -2
- package/ui/Forms/RadioButton/index.js +5 -0
- package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +2 -3
- package/ui/Forms/RadioButton/styles.d.ts +6 -6
- package/ui/Forms/RadioButton/styles.js +86 -0
- package/ui/Forms/RadioButton/types.d.ts +0 -1
- package/ui/Forms/RadioButton/types.js +1 -0
- package/ui/Forms/TextArea/TextArea.d.ts +2 -3
- package/ui/Forms/TextArea/TextArea.js +35 -0
- package/ui/Forms/TextArea/index.d.ts +1 -2
- package/ui/Forms/TextArea/index.js +5 -0
- package/ui/Forms/TextArea/styles.d.ts +5 -5
- package/ui/Forms/TextArea/styles.js +76 -0
- package/ui/System/Fonts/font.d.js +1 -0
- package/ui/System/Fonts/index.js +54 -0
- package/ui/ThemeProvider/ThemeProvider.d.js +1 -0
- package/ui/ThemeProvider/ThemeProvider.d.ts +3 -4
- package/ui/ThemeProvider/ThemeProvider.js +17 -0
- package/ui/ThemeProvider/index.d.js +1 -0
- package/ui/ThemeProvider/index.d.ts +2 -3
- package/ui/ThemeProvider/index.js +6 -0
- package/ui/ThemeProvider/themes/default.js +186 -0
- package/ui/ThemeProvider/themes/index.d.ts +1 -1
- package/ui/ThemeProvider/themes/index.js +11 -0
- package/ui/ThemeProvider/themes/light.d.ts +1 -2
- package/ui/ThemeProvider/themes/light.js +7 -0
- package/ui/ThemeProvider/themes/mailwise.js +230 -0
- package/ui/ThemeProvider/types.d.ts +1 -2
- package/ui/ThemeProvider/types.js +1 -0
- package/ui/_virtual/_rolldown/runtime.js +13 -0
- package/ui/hooks/useToggleAndClose.js +18 -0
- package/ui/index.d.ts +47 -48
- package/ui/index.js +179 -0
- package/ui/packages/assets/fonts/Inter-Bold_mailstep.js +4 -0
- package/ui/packages/assets/fonts/Inter-Light_mailstep.js +4 -0
- package/ui/packages/assets/fonts/Inter-Medium_mailstep.js +4 -0
- package/ui/packages/assets/fonts/Inter-Regular_mailstep.js +4 -0
- package/ui/packages/assets/fonts/Inter-SemiBold_mailstep.js +4 -0
- package/ui/utils/CheckDeviceWidth/checkDeviceWidth.js +17 -0
- package/ui/utils/CreateRgba/createRgba.d.ts +0 -1
- package/ui/utils/CreateRgba/createRgba.js +12 -0
- package/ui/utils/CreateRgba/types.js +1 -0
- package/ui/utils/KeyPress/KeyPress.d.ts +0 -1
- package/ui/utils/KeyPress/KeyPress.js +16 -0
- package/ui/utils/KeyPress/KeyPress.stories.d.ts +1 -2
- package/ui/utils/KeyPress/index.d.ts +1 -2
- package/ui/utils/KeyPress/index.js +5 -0
- package/ui/utils/KeyPress/types.js +1 -0
- package/ui/utils/LinguiContainer/index.js +13 -0
- package/ui/utils/index.d.js +1 -0
- package/ui/utils/index.d.ts +4 -5
- package/ui/utils/index.js +9 -0
- package/ui/utils/translations.d.ts +1 -2
- package/ui/utils/translations.js +338 -0
- package/ui/index.es.js +0 -47189
- package/ui/index.umd.js +0 -4234
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { StylesConfig, SelectComponentsConfig } from 'react-select';
|
|
2
|
-
import { SelectProps } from '../types';
|
|
3
|
-
|
|
1
|
+
import { type StylesConfig, type SelectComponentsConfig } from 'react-select';
|
|
2
|
+
import { type SelectProps } from '../types';
|
|
4
3
|
export declare const useStylesAndComponents: (style?: SelectProps["style"], optionVariant?: SelectProps["optionVariant"], multiLabelVariant?: SelectProps["multiLabelVariant"], containerVariant?: SelectProps["containerVariant"], useSimplifiedOptions?: SelectProps["useSimplifiedOptions"], showSelectAllButton?: SelectProps["showSelectAllButton"]) => [SelectComponentsConfig<unknown, boolean, any>, any, StylesConfig];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChevronOption } from "../components/ChevronOption.js";
|
|
2
|
+
import ConnectedMenu from "../components/ConnectedMenu.js";
|
|
3
|
+
import CountMultiValue from "../components/CountMultiValue.js";
|
|
4
|
+
import { CustomInput } from "../components/CustomInput.js";
|
|
5
|
+
import { DropdownIndicator } from "../components/DropdownIndicator.js";
|
|
6
|
+
import IconValueContainer from "../components/IconValueContainer.js";
|
|
7
|
+
import SimplifiedOption from "../components/SimplifiedOption.js";
|
|
8
|
+
import { CustomStyles, getCustomTheme } from "./selectStyles.js";
|
|
9
|
+
import { useMemo } from "react";
|
|
10
|
+
import { useTheme } from "@xstyled/styled-components";
|
|
11
|
+
//#region packages/ui/Elements/Select/themes/index.ts
|
|
12
|
+
const useStylesAndComponents = (style = "form", optionVariant = "default", multiLabelVariant = "default", containerVariant = "default", useSimplifiedOptions = false, showSelectAllButton = false) => {
|
|
13
|
+
const systemTheme = useTheme();
|
|
14
|
+
return useMemo(() => {
|
|
15
|
+
const components = { ValueContainer: IconValueContainer };
|
|
16
|
+
components.DropdownIndicator = DropdownIndicator;
|
|
17
|
+
if (multiLabelVariant === "count") components.MultiValue = CountMultiValue;
|
|
18
|
+
if (containerVariant === "search") components.DropdownIndicator = null;
|
|
19
|
+
if (showSelectAllButton) components.MenuList = ConnectedMenu;
|
|
20
|
+
components.Input = CustomInput;
|
|
21
|
+
const themes = getCustomTheme(systemTheme, optionVariant, style === "gridFilter");
|
|
22
|
+
const styles = CustomStyles;
|
|
23
|
+
components.Option = ChevronOption;
|
|
24
|
+
if (useSimplifiedOptions) components.Option = SimplifiedOption;
|
|
25
|
+
return [
|
|
26
|
+
components,
|
|
27
|
+
themes,
|
|
28
|
+
styles
|
|
29
|
+
];
|
|
30
|
+
}, [
|
|
31
|
+
multiLabelVariant,
|
|
32
|
+
containerVariant,
|
|
33
|
+
showSelectAllButton,
|
|
34
|
+
style,
|
|
35
|
+
useSimplifiedOptions,
|
|
36
|
+
systemTheme,
|
|
37
|
+
optionVariant
|
|
38
|
+
]);
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { useStylesAndComponents };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SelectProps, StylesConfig, CustomTheme } from '../types';
|
|
2
|
-
|
|
1
|
+
import { type SelectProps, type StylesConfig, type CustomTheme } from '../types';
|
|
3
2
|
export declare const CustomStyles: StylesConfig<State>;
|
|
4
3
|
type ThemeGetter = (theme: any) => CustomTheme;
|
|
5
4
|
export declare const getCustomTheme: (theme: any, optionVariant: Required<SelectProps>["optionVariant"], useFilterSubvariant: boolean) => ThemeGetter;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { th } from "/home/linomorfed/Projects/design-system/node_modules/@xstyled/system/dist/index.mjs";
|
|
2
|
+
//#region packages/ui/Elements/Select/themes/selectStyles.ts
|
|
3
|
+
const CustomStyles = {
|
|
4
|
+
control: (styles, { selectProps, theme, isFocused, isDisabled }) => {
|
|
5
|
+
const colors = theme.colors;
|
|
6
|
+
return {
|
|
7
|
+
...styles,
|
|
8
|
+
borderColor: selectProps.isInvalid ? colors.primary : isFocused ? colors.inputTextColor : colors.inputBorderColor,
|
|
9
|
+
backgroundColor: isDisabled ? colors.menuHoverBackgroundColor : colors.whiteBackgroundColor,
|
|
10
|
+
boxShadow: theme.focusBoxShadow,
|
|
11
|
+
borderRadius: theme.borderRadius,
|
|
12
|
+
"& input": {
|
|
13
|
+
fontWeight: theme.textWeightNormal,
|
|
14
|
+
fontFamily: theme.font
|
|
15
|
+
},
|
|
16
|
+
"&:hover": {
|
|
17
|
+
...styles["&:hover"] ?? {},
|
|
18
|
+
borderColor: colors.inputBorderHoverColor
|
|
19
|
+
},
|
|
20
|
+
fontSize: "14px",
|
|
21
|
+
minWidth: "min-content",
|
|
22
|
+
".inputIcon": { color: isDisabled ? colors.defaultControlColor : selectProps.value ? colors.inputTextColor : colors.defaultControlColor }
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
valueContainer: (styles, { theme }) => {
|
|
26
|
+
return {
|
|
27
|
+
...styles,
|
|
28
|
+
width: "50px",
|
|
29
|
+
paddingLeft: "7px",
|
|
30
|
+
flexWrap: theme.flexWrap
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
singleValue: (styles, { selectProps, theme, isDisabled }) => {
|
|
34
|
+
return {
|
|
35
|
+
...styles,
|
|
36
|
+
position: "absolute",
|
|
37
|
+
top: "50%",
|
|
38
|
+
transform: "translateY(-50%)",
|
|
39
|
+
color: selectProps.isInvalid ? theme.colors.primary : isDisabled ? theme.colors.disabledTextColor : theme.colors.inputTextColor,
|
|
40
|
+
fontSize: "14px",
|
|
41
|
+
fontWeight: theme.textWeightNormal
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
multiValue: (styles, state) => {
|
|
45
|
+
const { theme } = state;
|
|
46
|
+
return {
|
|
47
|
+
...styles,
|
|
48
|
+
color: theme.colors.inputTextColor,
|
|
49
|
+
fontWeight: theme.textWeightNormal,
|
|
50
|
+
backgroundColor: "#E7EBEF",
|
|
51
|
+
borderRadius: "4px",
|
|
52
|
+
"& svg": { color: theme.colors.inputTextColor },
|
|
53
|
+
" > div": { fontSize: "12px" }
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
multiValueLabel: (styles) => ({
|
|
57
|
+
...styles,
|
|
58
|
+
fontSize: "unset",
|
|
59
|
+
padding: "5px"
|
|
60
|
+
}),
|
|
61
|
+
multiValueRemove: (styles, { theme }) => ({
|
|
62
|
+
...styles,
|
|
63
|
+
color: theme.colors.inputBorderColor
|
|
64
|
+
}),
|
|
65
|
+
placeholder: (styles, state) => {
|
|
66
|
+
const { theme, selectProps } = state;
|
|
67
|
+
return {
|
|
68
|
+
...styles,
|
|
69
|
+
fontSize: "14px",
|
|
70
|
+
fontWeight: theme.textWeightNormal,
|
|
71
|
+
textOverflow: "ellipsis",
|
|
72
|
+
whiteSpace: "nowrap",
|
|
73
|
+
overflow: "hidden",
|
|
74
|
+
maxWidth: "calc(100% - 8px)",
|
|
75
|
+
color: selectProps.isDarkPlaceholderText ? theme.colors.inputTextColor : theme.colors.placeholderTextColor
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
loadingMessage: (styles, { theme }) => ({
|
|
79
|
+
...styles,
|
|
80
|
+
color: theme.colors.optionTextColor
|
|
81
|
+
}),
|
|
82
|
+
noOptionsMessage: (styles, { theme }) => ({
|
|
83
|
+
...styles,
|
|
84
|
+
color: theme.colors.optionTextColor
|
|
85
|
+
}),
|
|
86
|
+
input: (styles, { theme }) => ({
|
|
87
|
+
...styles,
|
|
88
|
+
color: theme.colors.inputTextColor
|
|
89
|
+
}),
|
|
90
|
+
option: (styles, { isSelected, theme, isDisabled, selectProps }) => {
|
|
91
|
+
const defaultColor = theme.colors.optionTextColor;
|
|
92
|
+
return {
|
|
93
|
+
color: isSelected ? theme.colors.primary : defaultColor,
|
|
94
|
+
backgroundColor: isSelected ? theme.colors.activeOptionBackground : void 0,
|
|
95
|
+
fontWeight: theme.textWeightNormal,
|
|
96
|
+
fontSize: "14px",
|
|
97
|
+
cursor: !isDisabled ? "pointer" : "default",
|
|
98
|
+
display: "flex",
|
|
99
|
+
flexDirection: "row",
|
|
100
|
+
alignItems: "center",
|
|
101
|
+
padding: "7px 10px",
|
|
102
|
+
minHeight: "36px",
|
|
103
|
+
marginRight: "4px",
|
|
104
|
+
marginBottom: "2px",
|
|
105
|
+
lineHeight: "22px",
|
|
106
|
+
borderRadius: th.radius("ml")({ theme: selectProps?.systemTheme }),
|
|
107
|
+
"&:hover": { backgroundColor: isSelected ? theme.colors.hoverToActiveOptionBackground : !isDisabled ? theme.colors.menuHoverBackgroundColor : void 0 }
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
menu: (styles, state) => {
|
|
111
|
+
const { theme } = state;
|
|
112
|
+
return {
|
|
113
|
+
...styles,
|
|
114
|
+
boxShadow: "0 2px 20px 0 rgba(0, 0, 0, 0.10);",
|
|
115
|
+
marginTop: "4px",
|
|
116
|
+
paddingTop: "0",
|
|
117
|
+
borderRadius: "10px",
|
|
118
|
+
zIndex: 3,
|
|
119
|
+
minWidth: "max-content",
|
|
120
|
+
backgroundColor: theme.colors.whiteBackgroundColor
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
menuList: (styles, { theme }) => {
|
|
124
|
+
return {
|
|
125
|
+
...styles,
|
|
126
|
+
margin: "8px 4px 8px 8px",
|
|
127
|
+
"::-webkit-scrollbar-thumb": {
|
|
128
|
+
border: "none",
|
|
129
|
+
borderRadius: "4px",
|
|
130
|
+
height: "47px",
|
|
131
|
+
backgroundColor: theme.colors.defaultControlColor,
|
|
132
|
+
"&:hover": { backgroundColor: theme.colors.dropdownIndicatorColor }
|
|
133
|
+
},
|
|
134
|
+
"::-webkit-scrollbar": { width: "10px" },
|
|
135
|
+
"::-webkit-scrollbar-track": {
|
|
136
|
+
backgroundColor: theme.colors.menuHoverBackgroundColor,
|
|
137
|
+
borderRadius: "6px"
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
dropdownIndicator: (styles) => {
|
|
142
|
+
return {
|
|
143
|
+
...styles,
|
|
144
|
+
justifyContent: "center",
|
|
145
|
+
alignItems: "center",
|
|
146
|
+
padding: "0px 7px 0px 0px"
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
clearIndicator: (styles, state) => {
|
|
150
|
+
const { theme, selectProps } = state;
|
|
151
|
+
return {
|
|
152
|
+
...styles,
|
|
153
|
+
justifyContent: "center",
|
|
154
|
+
alignItems: "center",
|
|
155
|
+
padding: theme.narrowIndicators && selectProps.containerVariant !== "search" ? "0px" : "0px 4px",
|
|
156
|
+
color: theme.colors.clearIndicatorColor,
|
|
157
|
+
cursor: "pointer"
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
indicatorSeparator: () => ({ display: "none" })
|
|
161
|
+
};
|
|
162
|
+
const getCustomTheme = (theme, optionVariant, useFilterSubvariant) => {
|
|
163
|
+
const inputTextColor = th.color("blue2")({ theme });
|
|
164
|
+
const customColors = {
|
|
165
|
+
primary: th.color("red1")({ theme }),
|
|
166
|
+
inputTextColor,
|
|
167
|
+
whiteBackgroundColor: th.color("white")({ theme }),
|
|
168
|
+
optionTextColor: th.color("blue2")({ theme }),
|
|
169
|
+
menuHoverBackgroundColor: th.color("bgLightGray1")({ theme }),
|
|
170
|
+
inputDisabledColor: th.color("lightGray1")({ theme }),
|
|
171
|
+
inputBorderColor: th.color("lightGray3")({ theme }),
|
|
172
|
+
placeholderTextColor: th.color("lightGray3")({ theme }),
|
|
173
|
+
clearIndicatorColor: th.color("lightGray4")({ theme }),
|
|
174
|
+
defaultControlColor: th.color("lightGray5")({ theme }),
|
|
175
|
+
disabledTextColor: th.color("lightGray6")({ theme }),
|
|
176
|
+
dropdownIndicatorColor: th.color("gray1")({ theme }),
|
|
177
|
+
inputBorderHoverColor: th.color("gray5")({ theme }),
|
|
178
|
+
activeOptionBackground: th.color("red20")({ theme }),
|
|
179
|
+
hoverToActiveOptionBackground: th.color("red30")({ theme })
|
|
180
|
+
};
|
|
181
|
+
return (reactSelectTheme) => {
|
|
182
|
+
return {
|
|
183
|
+
...reactSelectTheme,
|
|
184
|
+
colors: customColors,
|
|
185
|
+
focusBoxShadow: null,
|
|
186
|
+
height: "38px",
|
|
187
|
+
flexWrap: useFilterSubvariant ? "nowrap" : "wrap",
|
|
188
|
+
textWeightNormal: th.fontWeight("normal")({ theme }),
|
|
189
|
+
optionVariant,
|
|
190
|
+
borderRadius: th.radius("lg")({ theme }),
|
|
191
|
+
font: th.font("primary")({ theme }),
|
|
192
|
+
narrowIndicators: !!useFilterSubvariant
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
export { CustomStyles, getCustomTheme };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { RefObject, ReactNode } from 'react';
|
|
2
|
-
import { Theme, ControlProps, CSSObjectWithLabel } from 'react-select';
|
|
3
|
-
import { SpaceAround } from '../SpaceAround/types';
|
|
4
|
-
|
|
1
|
+
import type { RefObject, ReactNode } from 'react';
|
|
2
|
+
import { type Theme, type ControlProps, type CSSObjectWithLabel } from 'react-select';
|
|
3
|
+
import { type SpaceAround } from '../SpaceAround/types';
|
|
5
4
|
export type Option<Value = string | number> = {
|
|
6
5
|
value: Value;
|
|
7
6
|
label: string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Link as ReactLink } from 'react-router-dom';
|
|
3
3
|
import { TextVariant } from '../Text/types';
|
|
4
|
-
|
|
5
4
|
export type ToObjectType = {
|
|
6
5
|
pathname?: string;
|
|
7
6
|
search?: string;
|
|
@@ -18,5 +17,5 @@ export type Props = {
|
|
|
18
17
|
$decorate?: boolean;
|
|
19
18
|
variant?: TextVariant;
|
|
20
19
|
};
|
|
21
|
-
declare const StyledLink: import(
|
|
20
|
+
declare const StyledLink: import("styled-components").StyledComponent<typeof ReactLink, import("@xstyled/system").Theme, Props, never>;
|
|
22
21
|
export default StyledLink;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import styled$1, { css } from "@xstyled/styled-components";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
//#region packages/ui/Elements/SimpleLink/SimpleLink.tsx
|
|
4
|
+
const StyledLink = styled$1(Link)`
|
|
5
|
+
color: inherit;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
|
|
8
|
+
:visited {
|
|
9
|
+
color: inherit;
|
|
10
|
+
}
|
|
11
|
+
:hover {
|
|
12
|
+
color: inherit;
|
|
13
|
+
}
|
|
14
|
+
:active {
|
|
15
|
+
color: inherit;
|
|
16
|
+
}
|
|
17
|
+
:focus {
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
${({ disabled }) => disabled ? css`
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
opacity: 0.5;
|
|
24
|
+
` : null}
|
|
25
|
+
|
|
26
|
+
${({ $decorate }) => $decorate ? css`
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
` : null}
|
|
29
|
+
|
|
30
|
+
${({ variant }) => variant ? css`
|
|
31
|
+
font-weight: ${variant};
|
|
32
|
+
` : null}
|
|
33
|
+
`;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { StyledLink as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SelectProps, Option } from '../Select/types';
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SelectProps, type Option } from '../Select/types';
|
|
4
3
|
export type FieldValueType = string | number | Array<string | number> | null;
|
|
5
4
|
export type Props = Omit<SelectProps, 'onChange' | 'loadOptions'> & {
|
|
6
5
|
onChange?: (event: {
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import Select_default from "../Select/index.js";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { i18n } from "@lingui/core";
|
|
5
|
+
import { createFilter } from "react-select";
|
|
6
|
+
import { nanoid } from "/home/linomorfed/Projects/design-system/node_modules/nanoid/index.js";
|
|
7
|
+
import omit from "lodash/fp/omit.js";
|
|
8
|
+
//#region packages/ui/Elements/SingleSelect/SingleSelect.tsx
|
|
9
|
+
const CREATE = `_create_${nanoid()}_`;
|
|
10
|
+
const defaultFilterOption = createFilter();
|
|
11
|
+
const creatableFilterOption = (option, rawInput) => {
|
|
12
|
+
if (option?.value === CREATE) return true;
|
|
13
|
+
return defaultFilterOption(option, rawInput);
|
|
14
|
+
};
|
|
15
|
+
const getOptionValue = (selectedOption) => {
|
|
16
|
+
if (selectedOption === null) return null;
|
|
17
|
+
else if (Array.isArray(selectedOption)) return selectedOption.map((option) => option.value);
|
|
18
|
+
else return selectedOption.value;
|
|
19
|
+
};
|
|
20
|
+
const loadingMessage = () => i18n._({
|
|
21
|
+
id: "components.dropdown.loading",
|
|
22
|
+
message: "Loading..."
|
|
23
|
+
});
|
|
24
|
+
const SingleSelect = (props) => {
|
|
25
|
+
const { name, onChange, onBlur, onValueChange, loadOptions, asyncLoadMinChars = 0, isLocked, lockedText = i18n._({
|
|
26
|
+
id: "components.dropdown.notReact",
|
|
27
|
+
message: "Select related values first..."
|
|
28
|
+
}), disabled, placeholder = i18n._({
|
|
29
|
+
id: "components.dropdown.placeholder",
|
|
30
|
+
message: "Select..."
|
|
31
|
+
}), preload, initialOptions, onCreateOption, options, filterOption, shouldReloadOptions = false } = props;
|
|
32
|
+
const [isCreating, setIsCreating] = useState(false);
|
|
33
|
+
const asAsync = !!loadOptions || !!onCreateOption;
|
|
34
|
+
const noOptionsMessage = useCallback((inputValue) => {
|
|
35
|
+
if (!loadOptions) return i18n._({
|
|
36
|
+
id: "components.dropdown.noOptions",
|
|
37
|
+
message: "No options"
|
|
38
|
+
});
|
|
39
|
+
if (inputValue.length < asyncLoadMinChars) return i18n._({
|
|
40
|
+
id: "components.dropdown.writeMoreChars",
|
|
41
|
+
message: `Write at least ${asyncLoadMinChars} characters.`
|
|
42
|
+
});
|
|
43
|
+
return i18n._({
|
|
44
|
+
id: "dataGrid.filterCell",
|
|
45
|
+
message: "Type to filter"
|
|
46
|
+
});
|
|
47
|
+
}, [loadOptions, asyncLoadMinChars]);
|
|
48
|
+
const handleLoadOptions = useCallback(async (inputValue) => {
|
|
49
|
+
if (onCreateOption) {
|
|
50
|
+
if (!inputValue.trim()) return await Promise.resolve(options || []);
|
|
51
|
+
return await Promise.resolve([...options || [], {
|
|
52
|
+
value: CREATE,
|
|
53
|
+
label: `${inputValue} (${i18n._({
|
|
54
|
+
id: "components.dropdown.newOption",
|
|
55
|
+
message: "new value"
|
|
56
|
+
})})`,
|
|
57
|
+
inputValue
|
|
58
|
+
}]);
|
|
59
|
+
} else if (!loadOptions || inputValue.length < asyncLoadMinChars) return await Promise.resolve([]);
|
|
60
|
+
else return await loadOptions(inputValue, false);
|
|
61
|
+
}, [
|
|
62
|
+
onCreateOption,
|
|
63
|
+
loadOptions,
|
|
64
|
+
asyncLoadMinChars,
|
|
65
|
+
options
|
|
66
|
+
]);
|
|
67
|
+
const [loadedDefaultOptions, setLoadedDefaultOptions] = useState(options || []);
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
if (loadOptions && preload && !props.value) loadOptions("", false).then(setLoadedDefaultOptions).catch(console.error);
|
|
70
|
+
}, [loadOptions]);
|
|
71
|
+
const [storedSelectedOption, setStoredSelectedOption] = useState(null);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (initialOptions?.length) setStoredSelectedOption(initialOptions.find((option) => option.value === props.value) || null);
|
|
74
|
+
if (loadOptions && !initialOptions && props.value) loadOptions(String(props.value), true).then((selectedOptions) => {
|
|
75
|
+
setStoredSelectedOption(selectedOptions?.[0] || null);
|
|
76
|
+
}).catch(console.error);
|
|
77
|
+
}, [initialOptions, setStoredSelectedOption]);
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (shouldReloadOptions) setLoadedDefaultOptions(options || []);
|
|
80
|
+
}, [options]);
|
|
81
|
+
const handleChange = useCallback(async (option) => {
|
|
82
|
+
let value;
|
|
83
|
+
if (onCreateOption && option?.value === CREATE) if (option?.inputValue && option?.inputValue?.trim()?.length < 2) {
|
|
84
|
+
props?.form.setFieldTouched(name, true, true);
|
|
85
|
+
props?.form.setFieldError(name, i18n._({
|
|
86
|
+
id: "form.general.min2Chars",
|
|
87
|
+
message: "Minimal length is 2 characters."
|
|
88
|
+
}));
|
|
89
|
+
return;
|
|
90
|
+
} else {
|
|
91
|
+
setIsCreating(true);
|
|
92
|
+
value = getOptionValue(await onCreateOption(option?.inputValue?.trim() ?? ""));
|
|
93
|
+
setIsCreating(false);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
value = getOptionValue(option);
|
|
97
|
+
loadOptions && setStoredSelectedOption(option);
|
|
98
|
+
}
|
|
99
|
+
if (onChange) onChange({ target: {
|
|
100
|
+
name: name ?? "",
|
|
101
|
+
type: "change",
|
|
102
|
+
value
|
|
103
|
+
} });
|
|
104
|
+
if (onValueChange) onValueChange(value);
|
|
105
|
+
}, [
|
|
106
|
+
onCreateOption,
|
|
107
|
+
loadOptions,
|
|
108
|
+
onChange,
|
|
109
|
+
onValueChange,
|
|
110
|
+
props?.form,
|
|
111
|
+
name
|
|
112
|
+
]);
|
|
113
|
+
const omitted = [
|
|
114
|
+
"onValueChange",
|
|
115
|
+
"placeholder",
|
|
116
|
+
"options",
|
|
117
|
+
"loadOptions",
|
|
118
|
+
"asyncLoadMinChars"
|
|
119
|
+
];
|
|
120
|
+
const placeholderValue = isLocked && !disabled ? lockedText : placeholder;
|
|
121
|
+
const defaultOptions = useMemo(() => {
|
|
122
|
+
if (!asAsync) return void 0;
|
|
123
|
+
const staticOptions = onCreateOption ? options : loadedDefaultOptions;
|
|
124
|
+
if (!storedSelectedOption) return staticOptions || void 0;
|
|
125
|
+
return staticOptions ? [...staticOptions, storedSelectedOption] : [storedSelectedOption];
|
|
126
|
+
}, [
|
|
127
|
+
asAsync,
|
|
128
|
+
loadedDefaultOptions,
|
|
129
|
+
onCreateOption,
|
|
130
|
+
options,
|
|
131
|
+
storedSelectedOption
|
|
132
|
+
]);
|
|
133
|
+
return /* @__PURE__ */ jsx(Select_default, {
|
|
134
|
+
...omit(omitted, props),
|
|
135
|
+
filterOption: filterOption || creatableFilterOption,
|
|
136
|
+
disabled: disabled || isLocked,
|
|
137
|
+
onChange: handleChange,
|
|
138
|
+
onBlur,
|
|
139
|
+
placeholder: placeholderValue,
|
|
140
|
+
loadingMessage,
|
|
141
|
+
noOptionsMessage,
|
|
142
|
+
loadOptions: asAsync ? handleLoadOptions : void 0,
|
|
143
|
+
containerVariant: asAsync ? "search" : void 0,
|
|
144
|
+
defaultOptions,
|
|
145
|
+
options: !asAsync ? options : void 0,
|
|
146
|
+
isLoading: isCreating || props.isLoading
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
export { SingleSelect as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import styled$1, { css, th, useTheme, x } from "@xstyled/styled-components";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region packages/ui/Elements/SpaceAround/SpaceAround.tsx
|
|
5
|
+
const Wrapper = styled$1(x.div)`
|
|
6
|
+
width: ${({ $marginLeft, $marginRight }) => `calc(100% - ${$marginLeft || "0px"} - ${$marginRight || "0px"})`};
|
|
7
|
+
position: relative;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
${({ $spaceAround }) => $spaceAround ? css`
|
|
10
|
+
margin-top: ${$spaceAround === true || typeof $spaceAround?.marginTop === "undefined" ? 1 : $spaceAround.marginTop};
|
|
11
|
+
margin-right: ${$spaceAround === true || typeof $spaceAround?.marginRight === "undefined" ? 1 : $spaceAround.marginRight};
|
|
12
|
+
margin-bottom: ${$spaceAround === true || typeof $spaceAround?.marginBottom === "undefined" ? 2 : $spaceAround.marginBottom};
|
|
13
|
+
margin-left: ${$spaceAround === true || typeof $spaceAround?.marginLeft === "undefined" ? 0 : $spaceAround.marginLeft};
|
|
14
|
+
` : ""};
|
|
15
|
+
${({ $spaceBetween }) => $spaceBetween ? css`
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
` : ""};
|
|
19
|
+
`;
|
|
20
|
+
const SpaceAroundWrap = ({ children, spaceBetween = false, spaceAround = true, ...rest }) => {
|
|
21
|
+
const theme = useTheme();
|
|
22
|
+
const themeMarginLeft = typeof spaceAround !== "boolean" && spaceAround?.marginLeft ? th.space(spaceAround?.marginLeft)({ theme }) : 0;
|
|
23
|
+
return /* @__PURE__ */ jsx(Wrapper, {
|
|
24
|
+
$spaceAround: spaceAround,
|
|
25
|
+
$spaceBetween: spaceBetween,
|
|
26
|
+
$marginRight: typeof spaceAround !== "boolean" && spaceAround?.marginRight ? th.space(spaceAround?.marginRight)({ theme }) : 0,
|
|
27
|
+
$marginLeft: themeMarginLeft,
|
|
28
|
+
...rest,
|
|
29
|
+
children
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { SpaceAroundWrap as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: import(
|
|
4
|
+
component: import("react").FC<import("../types").Props>;
|
|
6
5
|
tags: string[];
|
|
7
6
|
argTypes: {};
|
|
8
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Circle, Svg } from "./styles.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region packages/ui/Elements/Spinner/Spinner.tsx
|
|
4
|
+
const appearanceToColorMap = {
|
|
5
|
+
error: "red1",
|
|
6
|
+
concept: "bgLightGray1",
|
|
7
|
+
done: "darkGreen",
|
|
8
|
+
info: "lightGray6",
|
|
9
|
+
processing: "blue2",
|
|
10
|
+
success: "green",
|
|
11
|
+
warning: "yellow1",
|
|
12
|
+
waiting: "gray1"
|
|
13
|
+
};
|
|
14
|
+
const appearanceToFontColorMap = {
|
|
15
|
+
error: "white",
|
|
16
|
+
concept: "blue2",
|
|
17
|
+
done: "white",
|
|
18
|
+
info: "blue2",
|
|
19
|
+
processing: "white",
|
|
20
|
+
success: "white",
|
|
21
|
+
warning: "blue2",
|
|
22
|
+
waiting: "white"
|
|
23
|
+
};
|
|
24
|
+
const Spinner = ({ variant = "default", appearance }) => {
|
|
25
|
+
return /* @__PURE__ */ jsx(Svg, {
|
|
26
|
+
viewBox: "22 22 44 44",
|
|
27
|
+
$variant: variant,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Circle, {
|
|
29
|
+
cx: "44",
|
|
30
|
+
cy: "44",
|
|
31
|
+
r: "20.2",
|
|
32
|
+
fill: "none",
|
|
33
|
+
strokeWidth: "3.6",
|
|
34
|
+
color: appearance ? appearanceToFontColorMap[appearance] : "blue2"
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Spinner, Spinner as default, appearanceToColorMap, appearanceToFontColorMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: import(
|
|
4
|
+
component: import("react").FC<import("../types").SpinnerProps>;
|
|
6
5
|
tags: string[];
|
|
7
6
|
argTypes: {};
|
|
8
7
|
};
|