@mailstep/design-system 0.7.67 → 0.7.68-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/package.json +7 -7
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +5 -3
- package/ui/Blocks/CommonGrid/CommonGrid.js +3 -3
- package/ui/Blocks/CommonGrid/CommonGridContainer.d.ts +4 -2
- package/ui/Blocks/CommonGrid/HoC/withProps.d.ts +2 -1
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +3 -1
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +10 -4
- package/ui/Blocks/CommonGrid/components/ActionHead/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +2 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ColumnTitle.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +4 -5
- package/ui/Blocks/CommonGrid/components/DataCell.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/DataCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/DataRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.d.ts +5 -4
- package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +5 -3
- package/ui/Blocks/CommonGrid/components/DropdownButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +1 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/FilterDropdown.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +7 -7
- package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +3 -15
- package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.js +9 -3
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +3 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +4 -2
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridInfo/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GridModals/index.d.ts +4 -3
- package/ui/Blocks/CommonGrid/components/GridStatus/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/GroupRow.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +5 -3
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +8 -6
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +3 -1
- package/ui/Blocks/CommonGrid/components/IconList/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.d.ts +4 -4
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +5 -5
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +3 -3
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +6 -4
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +3 -5
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/QuickFilter/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/Resize.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/Table.d.ts +36 -36
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/TablePagination/index.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/Date.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +2 -2
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.d.ts +5 -2
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +4 -5
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.d.ts +3 -2
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +4 -2
- package/ui/Blocks/CommonGrid/components/icons/Edit.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.d.ts +3 -1
- package/ui/Blocks/CommonGrid/components/icons/Sorting.d.ts +4 -2
- package/ui/Blocks/CommonGrid/components/utils.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useCreatePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useDeletePreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +2 -1
- package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +3 -3
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +6 -3
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useSelectPreset.d.ts +1 -0
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +3 -2
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +2 -1
- package/ui/Blocks/CommonGrid/index.d.ts +7 -6
- package/ui/Blocks/CommonGrid/store/index.d.ts +16 -15
- package/ui/Blocks/CommonGrid/store/migrateState.d.ts +1 -0
- package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.d.ts +5 -3
- package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.d.ts +4 -2
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +2 -1
- package/ui/Blocks/CommonGrid/storybook/stories/withQuickFilter.stories.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.d.ts +2 -1
- package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +3 -1
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +7 -3
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.d.ts +1 -1
- package/ui/Blocks/CommonGrid/styles.d.ts +9 -10
- package/ui/Blocks/CommonGrid/types.d.ts +32 -51
- package/ui/Blocks/CommonGrid/utils/getRowsPerPage.d.ts +1 -1
- package/ui/Blocks/CommonGrid/utils/index.d.ts +5 -4
- package/ui/Blocks/CornerDialog/CornerDialog.d.ts +3 -1
- package/ui/Blocks/CornerDialog/CornerDialog.js +2 -2
- package/ui/Blocks/CornerDialog/index.d.ts +1 -0
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +2 -2
- package/ui/Blocks/CornerDialog/styles.d.ts +6 -6
- package/ui/Blocks/CornerDialog/types.d.ts +4 -3
- package/ui/Blocks/CornerDialog/utils.d.ts +1 -0
- package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/index.d.ts +3 -2
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +3 -3
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.d.ts +2 -1
- package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.d.ts +2 -2
- package/ui/Blocks/Header/components/UserMenu/index.d.ts +3 -2
- package/ui/Blocks/Header/components/UserMenu/styles.d.ts +3 -3
- package/ui/Blocks/Header/index.d.ts +6 -5
- package/ui/Blocks/Header/stories/Header.stories.d.ts +25 -24
- package/ui/Blocks/Header/stories/Header.stories.js +3 -1
- package/ui/Blocks/Header/styles.d.ts +4 -4
- package/ui/Blocks/Header/utils/languageItems.d.ts +2 -1
- package/ui/Blocks/HidePrint/HidePrint.d.ts +3 -2
- package/ui/Blocks/ImageList/ImageList.d.ts +3 -2
- package/ui/Blocks/ImageList/ImageList.js +1 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.d.ts +3 -2
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/CloseButton/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/ImageElement/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/components/ImageTag/index.d.ts +2 -1
- package/ui/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/hooks/useOnElementClick.d.ts +2 -1
- package/ui/Blocks/ImageList/index.d.ts +2 -1
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +2 -2
- package/ui/Blocks/ImageList/styles.d.ts +4 -4
- package/ui/Blocks/ImageList/types.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/LanguageSwitch.d.ts +3 -2
- package/ui/Blocks/LanguageSwitch/index.d.ts +2 -1
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +2 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +7 -7
- package/ui/Blocks/LanguageSwitch/types.d.ts +1 -0
- package/ui/Blocks/LightBox/LightBox.d.ts +3 -2
- package/ui/Blocks/LightBox/hooks/useLightBox.d.ts +2 -1
- package/ui/Blocks/LightBox/index.d.ts +1 -0
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +2 -2
- package/ui/Blocks/LightBox/styles.d.ts +4 -4
- package/ui/Blocks/LoginPage/LoginPage.d.ts +3 -2
- package/ui/Blocks/LoginPage/components/LoginForm.d.ts +1 -0
- package/ui/Blocks/LoginPage/components/SocialLinks.d.ts +5 -4
- package/ui/Blocks/LoginPage/index.d.ts +2 -1
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
- package/ui/Blocks/LoginPage/styles.d.ts +10 -9
- package/ui/Blocks/LoginPage/types.d.ts +5 -4
- package/ui/Blocks/Modal/Modal.d.ts +3 -2
- package/ui/Blocks/Modal/hooks/useClickOutside.d.ts +2 -1
- package/ui/Blocks/Modal/hooks/useModal.d.ts +1 -0
- package/ui/Blocks/Modal/index.d.ts +1 -0
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +2 -2
- package/ui/Blocks/Modal/styles.d.ts +16 -15
- package/ui/Blocks/Modal/types.d.ts +8 -7
- package/ui/Blocks/Modal/utils.d.ts +1 -0
- package/ui/Blocks/Popover/index.d.ts +4 -3
- package/ui/Blocks/Popover/index.js +2 -2
- package/ui/Blocks/Scheduler/Scheduler.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.d.ts +3 -3
- package/ui/Blocks/Scheduler/components/DateChanger/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/DateChanger/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/components/Groups/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +4 -4
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.d.ts +2 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.d.ts +1 -0
- package/ui/Blocks/Scheduler/components/TimeSlots/index.d.ts +3 -2
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +5 -5
- package/ui/Blocks/Scheduler/hooks/useChangeDate.d.ts +3 -2
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +2 -1
- package/ui/Blocks/Scheduler/styles.d.ts +2 -2
- package/ui/Blocks/Scheduler/types.d.ts +3 -2
- package/ui/Blocks/Scheduler/utils/isActiveTime.d.ts +1 -0
- package/ui/Blocks/SideMenu/MenuItem.d.ts +4 -3
- package/ui/Blocks/SideMenu/SideMenu.d.ts +3 -1
- package/ui/Blocks/SideMenu/components/Footer.d.ts +6 -4
- package/ui/Blocks/SideMenu/components/Footer.js +3 -3
- package/ui/Blocks/SideMenu/components/SubitemTooltip.d.ts +3 -2
- package/ui/Blocks/SideMenu/context/LeftMenuContext.d.ts +2 -1
- package/ui/Blocks/SideMenu/hooks/useOutsideHover.d.ts +1 -0
- package/ui/Blocks/SideMenu/index.d.ts +2 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -2
- package/ui/Blocks/SideMenu/styles.d.ts +38 -38
- package/ui/Blocks/SideMenu/types.d.ts +2 -1
- package/ui/Blocks/Stepper/Stepper.d.ts +3 -2
- package/ui/Blocks/Stepper/components/StepCircle/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +3 -3
- package/ui/Blocks/Stepper/components/StepItem/index.d.ts +2 -1
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +6 -6
- package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +2 -1
- package/ui/Blocks/Stepper/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/types.d.ts +2 -1
- package/ui/Blocks/Table/Table.d.ts +1 -0
- package/ui/Blocks/Table/stories/Table.stories.d.ts +4 -5
- package/ui/Blocks/Tabs/TabContent.d.ts +3 -2
- package/ui/Blocks/Tabs/Tabs.d.ts +4 -2
- package/ui/Blocks/Tabs/hooks/useTabs.d.ts +1 -0
- package/ui/Blocks/Tabs/index.d.ts +1 -0
- package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +2 -2
- package/ui/Blocks/Tabs/styles.d.ts +9 -10
- package/ui/Blocks/Tabs/types.d.ts +1 -0
- package/ui/Elements/Alert/Alert.d.ts +1 -0
- package/ui/Elements/Alert/index.d.ts +2 -1
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +3 -2
- package/ui/Elements/Alert/styles.d.ts +28 -39
- package/ui/Elements/Alert/styles.js +2 -3
- package/ui/Elements/Alert/types.d.ts +4 -5
- package/ui/Elements/AsyncSelect/AsyncSelect.d.ts +5 -4
- package/ui/Elements/AsyncSelect/index.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +1 -2
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
- package/ui/Elements/Avatar/Avatar.d.ts +3 -1
- package/ui/Elements/Avatar/Avatar.js +1 -2
- package/ui/Elements/Avatar/index.d.ts +1 -0
- package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +3 -3
- package/ui/Elements/Badge/Badge.d.ts +4 -3
- package/ui/Elements/Badge/Badge.js +1 -2
- package/ui/Elements/Badge/index.d.ts +2 -1
- package/ui/Elements/Badge/stories/Badge.stories.d.ts +3 -3
- package/ui/Elements/BarChartSymbol/BarChartSymbol.d.ts +1 -0
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +3 -3
- package/ui/Elements/BarChartSymbol/styles.d.ts +3 -3
- package/ui/Elements/BorderedBox/BorderedBox.d.ts +3 -1
- package/ui/Elements/BorderedBox/index.d.ts +2 -1
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +3 -3
- package/ui/Elements/BorderedBox/types.d.ts +0 -1
- package/ui/Elements/Button/Button.d.ts +4 -2
- package/ui/Elements/Button/index.d.ts +2 -1
- package/ui/Elements/Button/stories/Button.stories.d.ts +3 -3
- package/ui/Elements/Button/styles.d.ts +9 -10
- package/ui/Elements/Button/types.d.ts +6 -5
- package/ui/Elements/Card/Card.d.ts +1 -0
- package/ui/Elements/Card/index.d.ts +2 -1
- package/ui/Elements/Card/stories/Card.stories.d.ts +3 -3
- package/ui/Elements/Card/styles.d.ts +4 -3
- package/ui/Elements/Card/types.d.ts +0 -1
- package/ui/Elements/CheckedCircle/index.d.ts +2 -1
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +5 -5
- package/ui/Elements/CheckedCircle/styles.d.ts +1 -1
- package/ui/Elements/DatePicker/DatePicker.d.ts +5 -4
- package/ui/Elements/DatePicker/Datetime/DateTime.d.ts +5 -4
- package/ui/Elements/DatePicker/Datetime/components/DateRepeater.d.ts +3 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/TimeInput.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/types.d.ts +8 -7
- package/ui/Elements/DatePicker/Datetime/views/DaysView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.d.ts +2 -1
- package/ui/Elements/DatePicker/Datetime/views/YearsView.d.ts +2 -1
- package/ui/Elements/DatePicker/index.d.ts +2 -1
- package/ui/Elements/DatePicker/styles.d.ts +1 -2
- package/ui/Elements/DatePicker/utils/constants.d.ts +1 -0
- package/ui/Elements/Dropdown/Dropdown.d.ts +3 -1
- package/ui/Elements/Dropdown/Dropdown.js +3 -5
- package/ui/Elements/Dropdown/index.d.ts +2 -1
- package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +3 -3
- package/ui/Elements/Dropdown/types.d.ts +1 -0
- package/ui/Elements/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +3 -3
- package/ui/Elements/DropdownMenu/components/DefaultItem.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuList.d.ts +3 -1
- package/ui/Elements/DropdownMenu/components/MenuList.js +3 -4
- package/ui/Elements/DropdownMenu/types.d.ts +6 -5
- package/ui/Elements/DropdownSelect/DropdownSelect.d.ts +7 -6
- package/ui/Elements/DropdownSelect/DropdownSelect.js +11 -7
- package/ui/Elements/DropdownSelect/index.d.ts +2 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.d.ts +3 -1
- package/ui/Elements/ErrorMessage/ErrorMessage.js +1 -2
- package/ui/Elements/ErrorMessage/index.d.ts +2 -1
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +3 -3
- package/ui/Elements/ErrorMessage/types.d.ts +1 -0
- package/ui/Elements/HighlightBox/HighlightBox.d.ts +3 -2
- package/ui/Elements/HighlightBox/HighlightBox.js +4 -4
- package/ui/Elements/HighlightBox/index.d.ts +2 -1
- package/ui/Elements/Icon/BadgeIcon.d.ts +3 -1
- package/ui/Elements/Icon/BadgeIcon.js +2 -5
- package/ui/Elements/Icon/Icon.d.ts +4 -4
- package/ui/Elements/Icon/Icon.js +15 -16
- package/ui/Elements/Icon/icons/Add.d.ts +2 -1
- package/ui/Elements/Icon/icons/AddPhoto.d.ts +1 -0
- package/ui/Elements/Icon/icons/Admin.d.ts +1 -0
- package/ui/Elements/Icon/icons/ArrowDown.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowForward.d.ts +2 -1
- package/ui/Elements/Icon/icons/ArrowUp.d.ts +2 -1
- package/ui/Elements/Icon/icons/BarcodeScan.d.ts +1 -0
- package/ui/Elements/Icon/icons/Box.d.ts +1 -0
- package/ui/Elements/Icon/icons/Calendar.d.ts +1 -0
- package/ui/Elements/Icon/icons/Cancel.d.ts +1 -0
- package/ui/Elements/Icon/icons/CheckedBox.d.ts +2 -1
- package/ui/Elements/Icon/icons/Company.d.ts +1 -0
- package/ui/Elements/Icon/icons/Complaint.d.ts +2 -1
- package/ui/Elements/Icon/icons/Consolidation.d.ts +2 -1
- package/ui/Elements/Icon/icons/Container.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dashboard.d.ts +2 -1
- package/ui/Elements/Icon/icons/Desktop.d.ts +2 -1
- package/ui/Elements/Icon/icons/Dispatch.d.ts +2 -1
- package/ui/Elements/Icon/icons/EmptyRack.d.ts +1 -0
- package/ui/Elements/Icon/icons/Expeditions.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagCZ.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagEL.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagESP.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagHU.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagITA.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagNL.d.ts +3 -2
- package/ui/Elements/Icon/icons/FlagRUS.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagSVK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUK.d.ts +2 -1
- package/ui/Elements/Icon/icons/FlagUSA.d.ts +2 -1
- package/ui/Elements/Icon/icons/Foldable.d.ts +3 -2
- package/ui/Elements/Icon/icons/Fragile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Gift.d.ts +2 -1
- package/ui/Elements/Icon/icons/Group.d.ts +1 -0
- package/ui/Elements/Icon/icons/HamburgerMenu.d.ts +2 -1
- package/ui/Elements/Icon/icons/HelpCircle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/HorizontalLines.d.ts +1 -0
- package/ui/Elements/Icon/icons/ImagePlaceholder.d.ts +1 -0
- package/ui/Elements/Icon/icons/Income.d.ts +2 -1
- package/ui/Elements/Icon/icons/Info.d.ts +2 -1
- package/ui/Elements/Icon/icons/Integrations.d.ts +1 -0
- package/ui/Elements/Icon/icons/Inventory.d.ts +2 -1
- package/ui/Elements/Icon/icons/Inventory2.d.ts +2 -1
- package/ui/Elements/Icon/icons/Layout.d.ts +3 -2
- package/ui/Elements/Icon/icons/Link.d.ts +1 -0
- package/ui/Elements/Icon/icons/Liquid.d.ts +3 -2
- package/ui/Elements/Icon/icons/Location.d.ts +2 -1
- package/ui/Elements/Icon/icons/Logout1.d.ts +2 -1
- package/ui/Elements/Icon/icons/MachinePackingForbidden.d.ts +3 -2
- package/ui/Elements/Icon/icons/MakePhoto.d.ts +2 -1
- package/ui/Elements/Icon/icons/MenuItems.d.ts +2 -1
- package/ui/Elements/Icon/icons/Message.d.ts +2 -1
- package/ui/Elements/Icon/icons/MobileCancel.d.ts +2 -1
- package/ui/Elements/Icon/icons/MobilePhone.d.ts +3 -2
- package/ui/Elements/Icon/icons/Notification2.d.ts +2 -1
- package/ui/Elements/Icon/icons/OpenBox.d.ts +1 -0
- package/ui/Elements/Icon/icons/Pallet.d.ts +2 -1
- package/ui/Elements/Icon/icons/Plus1.d.ts +2 -1
- package/ui/Elements/Icon/icons/Print.d.ts +2 -1
- package/ui/Elements/Icon/icons/Product.d.ts +1 -0
- package/ui/Elements/Icon/icons/Products.d.ts +2 -1
- package/ui/Elements/Icon/icons/Profile.d.ts +2 -1
- package/ui/Elements/Icon/icons/Puzzle1.d.ts +2 -1
- package/ui/Elements/Icon/icons/QRCode.d.ts +2 -1
- package/ui/Elements/Icon/icons/Rack.d.ts +1 -0
- package/ui/Elements/Icon/icons/Return.d.ts +2 -1
- package/ui/Elements/Icon/icons/Rows.d.ts +1 -0
- package/ui/Elements/Icon/icons/Settings2.d.ts +2 -1
- package/ui/Elements/Icon/icons/ShoppingBag.d.ts +2 -1
- package/ui/Elements/Icon/icons/ThreeDots.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastError.d.ts +1 -0
- package/ui/Elements/Icon/icons/ToastSuccess.d.ts +1 -0
- package/ui/Elements/Icon/icons/Transfer.d.ts +2 -1
- package/ui/Elements/Icon/icons/TrashBin.d.ts +1 -0
- package/ui/Elements/Icon/icons/Truck.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.d.ts +2 -1
- package/ui/Elements/Icon/icons/TwoUsers.d.ts +2 -1
- package/ui/Elements/Icon/icons/Valuable.d.ts +3 -2
- package/ui/Elements/Icon/index.d.ts +2 -1
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +6 -6
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +3 -3
- package/ui/Elements/Icon/types.d.ts +1 -3
- package/ui/Elements/Image/Image.d.ts +3 -1
- package/ui/Elements/Image/Image.js +13 -1
- package/ui/Elements/Image/index.d.ts +2 -1
- package/ui/Elements/Image/stories/Image.stories.d.ts +3 -3
- package/ui/Elements/Image/types.d.ts +6 -7
- package/ui/Elements/Label/Label.d.ts +3 -3
- package/ui/Elements/Label/index.d.ts +1 -0
- package/ui/Elements/Label/stories/Label.stories.d.ts +4 -3
- package/ui/Elements/Line/Line.d.ts +1 -0
- package/ui/Elements/Line/index.d.ts +2 -1
- package/ui/Elements/Line/stories/Line.stories.d.ts +3 -2
- package/ui/Elements/Line/types.d.ts +3 -4
- package/ui/Elements/Link/Link.d.ts +4 -13
- package/ui/Elements/Link/Link.js +3 -11
- package/ui/Elements/Link/index.d.ts +2 -1
- package/ui/Elements/Link/stories/Link.stories.d.ts +17 -27
- package/ui/Elements/Logo/Logo.d.ts +4 -2
- package/ui/Elements/Logo/Logo.js +3 -3
- package/ui/Elements/Logo/index.d.ts +2 -1
- package/ui/Elements/Logo/stories/Logo.stories.d.ts +3 -3
- package/ui/Elements/MultiSelect/MultiSelect.d.ts +3 -1
- package/ui/Elements/MultiSelect/index.d.ts +2 -1
- package/ui/Elements/Pagination/Pagination.d.ts +3 -1
- package/ui/Elements/Pagination/index.d.ts +2 -1
- package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +3 -2
- package/ui/Elements/Pagination/styled.d.ts +6 -7
- package/ui/Elements/Portal/index.d.ts +5 -4
- package/ui/Elements/ProgressBar/ProgressBar.d.ts +3 -1
- package/ui/Elements/ProgressBar/index.d.ts +2 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +9 -8
- package/ui/Elements/ProgressBar/styles.d.ts +4 -4
- package/ui/Elements/Select/Select.d.ts +3 -1
- package/ui/Elements/Select/Select.js +48 -7
- package/ui/Elements/Select/components/SelectAll.d.ts +1 -0
- package/ui/Elements/Select/components/SelectedIndicator.d.ts +1 -1
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -2
- package/ui/Elements/Select/index.d.ts +2 -1
- package/ui/Elements/Select/styles.d.ts +6 -5
- package/ui/Elements/Select/themes/index.d.ts +4 -3
- package/ui/Elements/Select/themes/selectStyles.d.ts +2 -1
- package/ui/Elements/Select/types.d.ts +4 -3
- package/ui/Elements/SimpleLink/SimpleLink.d.ts +3 -2
- package/ui/Elements/SimpleLink/index.d.ts +2 -1
- package/ui/Elements/SingleSelect/SingleSelect.d.ts +5 -5
- package/ui/Elements/SingleSelect/SingleSelect.js +30 -22
- package/ui/Elements/SingleSelect/index.d.ts +2 -1
- package/ui/Elements/SpaceAround/SpaceAround.d.ts +3 -1
- package/ui/Elements/SpaceAround/SpaceAround.js +1 -2
- package/ui/Elements/SpaceAround/index.d.ts +2 -1
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +3 -3
- package/ui/Elements/SpaceAround/types.d.ts +0 -1
- package/ui/Elements/Spinner/Spinner.d.ts +4 -2
- package/ui/Elements/Spinner/Spinner.js +2 -2
- package/ui/Elements/Spinner/index.d.ts +2 -1
- package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +3 -2
- package/ui/Elements/Spinner/styles.d.ts +3 -3
- package/ui/Elements/Spinner/types.d.ts +4 -5
- package/ui/Elements/Table/Table.d.ts +6 -6
- package/ui/Elements/Table/stories/Table.stories.d.ts +1 -1
- package/ui/Elements/Tag/Tag.d.ts +3 -2
- package/ui/Elements/Tag/index.d.ts +2 -1
- package/ui/Elements/Tag/palletes.d.ts +2 -1
- package/ui/Elements/Tag/stories/Tag.stories.d.ts +4 -3
- package/ui/Elements/Tag/stories/Tag.stories.js +22 -22
- package/ui/Elements/Tag/stories/components/predefinedTags.d.ts +3 -1
- package/ui/Elements/Tag/stories/components/predefinedTags.js +2 -2
- package/ui/Elements/Tag/types.d.ts +0 -1
- package/ui/Elements/Text/Text.d.ts +4 -2
- package/ui/Elements/Text/index.d.ts +2 -1
- package/ui/Elements/Text/stories/Text.stories.d.ts +3 -3
- package/ui/Elements/Text/types.d.ts +1 -0
- package/ui/Elements/Toast/Toast.d.ts +3 -1
- package/ui/Elements/Toast/Toast.js +4 -2
- package/ui/Elements/Toast/constants.d.ts +2 -1
- package/ui/Elements/Toast/index.d.ts +2 -1
- package/ui/Elements/Toast/stories/Toast.stories.d.ts +3 -3
- package/ui/Elements/Toast/styles.d.ts +6 -6
- package/ui/Elements/Toggle/Toggle.d.ts +4 -2
- package/ui/Elements/Toggle/index.d.ts +2 -1
- package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +3 -3
- package/ui/Elements/Toggle/types.d.ts +1 -0
- package/ui/Elements/Tooltip/Tooltip.d.ts +5 -4
- package/ui/Elements/Tooltip/Tooltip.js +8 -4
- package/ui/Elements/Tooltip/index.d.ts +2 -1
- package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +3 -3
- package/ui/Elements/Typography/Typography.d.ts +15 -13
- package/ui/Elements/Typography/index.d.ts +1 -0
- package/ui/Elements/Typography/stories/Typography.stories.d.ts +2 -1
- package/ui/Forms/Checkbox/Checkbox.d.ts +4 -3
- package/ui/Forms/Checkbox/index.d.ts +2 -1
- package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +2 -2
- package/ui/Forms/Checkbox/styles.d.ts +4 -5
- package/ui/Forms/Checkbox/types.d.ts +3 -2
- package/ui/Forms/Input/Input.d.ts +4 -2
- package/ui/Forms/Input/Input.js +3 -3
- package/ui/Forms/Input/index.d.ts +1 -0
- package/ui/Forms/Input/stories/Input.stories.d.ts +3 -2
- package/ui/Forms/Input/styles.d.ts +12 -12
- package/ui/Forms/Input/types.d.ts +3 -5
- package/ui/Forms/RadioButton/RadioButton.d.ts +3 -1
- package/ui/Forms/RadioButton/RadioButton.js +1 -1
- package/ui/Forms/RadioButton/index.d.ts +2 -1
- package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +3 -3
- package/ui/Forms/RadioButton/styles.d.ts +6 -6
- package/ui/Forms/RadioButton/types.d.ts +1 -0
- package/ui/Forms/TextArea/TextArea.d.ts +4 -3
- package/ui/Forms/TextArea/TextArea.js +3 -3
- package/ui/Forms/TextArea/index.d.ts +2 -1
- package/ui/Forms/TextArea/styles.d.ts +10 -10
- package/ui/ThemeProvider/ThemeProvider.d.ts +2 -2
- package/ui/ThemeProvider/index.d.ts +3 -2
- package/ui/ThemeProvider/themes/default.js +1 -1
- package/ui/ThemeProvider/themes/index.d.ts +1 -1
- package/ui/ThemeProvider/themes/light.d.ts +2 -1
- package/ui/ThemeProvider/themes/mailwise.js +1 -1
- package/ui/ThemeProvider/types.d.ts +2 -1
- package/ui/index.d.ts +49 -48
- package/ui/index.es.js +19732 -19721
- package/ui/index.umd.js +649 -865
- package/ui/utils/CreateRgba/createRgba.d.ts +1 -0
- package/ui/utils/KeyPress/KeyPress.d.ts +1 -0
- package/ui/utils/KeyPress/KeyPress.stories.d.ts +2 -1
- package/ui/utils/KeyPress/index.d.ts +2 -1
- package/ui/utils/index.d.ts +5 -4
package/ui/Elements/Logo/Logo.js
CHANGED
|
@@ -40,8 +40,8 @@ import warehouseManager3 from './assets/warehouse/manager3.svg';
|
|
|
40
40
|
import warehouseManager from './assets/warehouse/manager.svg';
|
|
41
41
|
import styled from '@xstyled/styled-components';
|
|
42
42
|
var defaultSizes = {
|
|
43
|
-
small: '30px',
|
|
44
|
-
medium: '46px',
|
|
43
|
+
small: '30px', // cca 100px width on full logo
|
|
44
|
+
medium: '46px', // cca 150px width on full logo
|
|
45
45
|
big: '61px' // cca 200px width on full logo
|
|
46
46
|
};
|
|
47
47
|
var variantMap = {
|
|
@@ -76,7 +76,7 @@ var StyledImage = styled.img(templateObject_1 || (templateObject_1 = __makeTempl
|
|
|
76
76
|
return width || 'auto';
|
|
77
77
|
}, function (_a) {
|
|
78
78
|
var height = _a.height, width = _a.width, size = _a.size;
|
|
79
|
-
return height || (width ? 'auto' : size ? defaultSizes[size] : defaultSizes
|
|
79
|
+
return height || (width ? 'auto' : size ? defaultSizes[size] : defaultSizes.medium);
|
|
80
80
|
});
|
|
81
81
|
var Logo = function (_a) {
|
|
82
82
|
var _b = _a.brand, brand = _b === void 0 ? 'mailship' : _b, variant = _a.variant, size = _a.size, width = _a.width, height = _a.height, rest = __rest(_a, ["brand", "variant", "size", "width", "height"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (
|
|
5
|
+
component: import('react').FC<import('../types').LogoProps>;
|
|
6
6
|
parameters: {
|
|
7
7
|
backgrounds: {
|
|
8
8
|
default: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SelectProps } from '../Select/types';
|
|
3
|
+
|
|
2
4
|
type Props = {
|
|
3
5
|
checkAllButton?: boolean;
|
|
4
6
|
} & Omit<SelectProps, 'isMulti'>;
|
|
5
|
-
declare const SelectFilter:
|
|
7
|
+
declare const SelectFilter: React.FC<Props>;
|
|
6
8
|
export default SelectFilter;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
export type PaginationProps = {
|
|
2
4
|
page?: number;
|
|
3
5
|
itemCount?: number;
|
|
@@ -7,5 +9,5 @@ export type PaginationProps = {
|
|
|
7
9
|
onPageChange?: (number: number, rows: number) => void;
|
|
8
10
|
customPaginationHandler?: (page: number, rows: number) => void;
|
|
9
11
|
};
|
|
10
|
-
declare const Pagination:
|
|
12
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
11
13
|
export default Pagination;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
2
|
import { PaginationProps } from '../';
|
|
3
|
+
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: (
|
|
6
|
+
component: import('react').FC<PaginationProps>;
|
|
6
7
|
tags: string[];
|
|
7
8
|
argTypes: {};
|
|
8
9
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const Btn: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {
|
|
1
|
+
export declare const Wrapper: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements[string], "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
2
|
+
export declare const Btn: import('styled-components').StyledComponent<"button", import('@xstyled/system').Theme, {
|
|
4
3
|
disabled: boolean;
|
|
5
4
|
}, never>;
|
|
6
|
-
export declare const ArrowIcon: import(
|
|
5
|
+
export declare const ArrowIcon: import('styled-components').StyledComponent<import('react').FC<import('../Icon').IconProps>, import('@xstyled/system').Theme, {
|
|
7
6
|
isActive: boolean;
|
|
8
7
|
}, never>;
|
|
9
|
-
export declare const GoIcon: import(
|
|
8
|
+
export declare const GoIcon: import('styled-components').StyledComponent<import('react').FC<import('../Icon').IconProps>, import('@xstyled/system').Theme, {
|
|
10
9
|
isActive: boolean;
|
|
11
10
|
}, never>;
|
|
12
|
-
export declare const DotsWrapper: import(
|
|
13
|
-
export declare const PageBtn: import(
|
|
11
|
+
export declare const DotsWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
12
|
+
export declare const PageBtn: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {
|
|
14
13
|
isCurrent: boolean;
|
|
15
14
|
}, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Portal: FC<{
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}>;
|
|
5
6
|
export default Portal;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
1
3
|
type Props = {
|
|
2
4
|
progress?: number;
|
|
3
5
|
status?: 'loading' | 'finished' | 'error';
|
|
@@ -5,5 +7,5 @@ type Props = {
|
|
|
5
7
|
noText?: boolean;
|
|
6
8
|
variant?: 'normal' | 'thin';
|
|
7
9
|
};
|
|
8
|
-
declare const ProgressBar:
|
|
10
|
+
declare const ProgressBar: FC<Props>;
|
|
9
11
|
export default ProgressBar;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
|
-
component: ({
|
|
5
|
-
progress?: number
|
|
6
|
-
status?: "loading" | "
|
|
7
|
-
errorMessage?: string
|
|
8
|
-
noText?: boolean
|
|
9
|
-
variant?: "normal" | "thin"
|
|
10
|
-
}
|
|
5
|
+
component: import('react').FC<{
|
|
6
|
+
progress?: number;
|
|
7
|
+
status?: "loading" | "finished" | "error";
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
noText?: boolean;
|
|
10
|
+
variant?: "normal" | "thin";
|
|
11
|
+
}>;
|
|
11
12
|
tags: string[];
|
|
12
13
|
argTypes: {};
|
|
13
14
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const StyledProgressBar: import(
|
|
1
|
+
export declare const StyledProgressBar: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
2
|
status: string | null | undefined;
|
|
3
|
-
variant?: "normal" | "thin"
|
|
3
|
+
variant?: "normal" | "thin";
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const Progress: import(
|
|
5
|
+
export declare const Progress: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
6
|
progress: number;
|
|
7
7
|
status: string | null | undefined;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const ProgressDescription: import(
|
|
9
|
+
export declare const ProgressDescription: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { SelectProps } from './types';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
declare const Select: FC<SelectProps>;
|
|
3
5
|
export default Select;
|
|
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
12
48
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
49
|
var t = {};
|
|
14
50
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -22,13 +58,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
58
|
};
|
|
23
59
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
60
|
import { useCallback, useMemo } from 'react';
|
|
25
|
-
import { Wrapper, StyledReactSelect, StyledAsyncSelect } from './styles';
|
|
26
|
-
import { useStylesAndComponents } from './themes';
|
|
27
|
-
import { useTheme } from '@xstyled/styled-components';
|
|
28
|
-
import SpaceAroundWrap from '../SpaceAround';
|
|
29
|
-
import { FieldLabel } from '../Label';
|
|
30
61
|
import { ErrorMessage } from '../ErrorMessage';
|
|
62
|
+
import { FieldLabel } from '../Label';
|
|
63
|
+
import SpaceAroundWrap from '../SpaceAround';
|
|
31
64
|
import { i18n } from '@lingui/core';
|
|
65
|
+
import { useTheme } from '@xstyled/styled-components';
|
|
66
|
+
import { Wrapper, StyledReactSelect, StyledAsyncSelect } from './styles';
|
|
67
|
+
import { useStylesAndComponents } from './themes';
|
|
32
68
|
var emptyOptions = [];
|
|
33
69
|
var noOptionsMessage = function () { return i18n._({ id: 'select.noOptions', message: 'no options' }); };
|
|
34
70
|
var loadingMessage = function () { return i18n._({ id: 'components.dropdown.loading', message: 'Loading...' }); };
|
|
@@ -46,7 +82,7 @@ var Select = function (_a) {
|
|
|
46
82
|
onChange === null || onChange === void 0 ? void 0 : onChange(emptyOptions);
|
|
47
83
|
}
|
|
48
84
|
}, [onChange]);
|
|
49
|
-
var icon = containerVariant === 'search' ? 'search' : placeholderIcon
|
|
85
|
+
var icon = containerVariant === 'search' ? 'search' : placeholderIcon || undefined;
|
|
50
86
|
var modifiedMaxMenuHeight = showResetGridButton && showSelectAllButton && maxMenuHeight ? maxMenuHeight - 30 : maxMenuHeight;
|
|
51
87
|
var _j = useStylesAndComponents(style, optionVariant, multiLabelVariant, containerVariant, useSimplifiedOptions, showSelectAllButton, showResetGridButton), customComponents = _j[0], customTheme = _j[1], customStyles = _j[2];
|
|
52
88
|
var RenderComponent = isAsync ? StyledAsyncSelect : StyledReactSelect;
|
|
@@ -62,7 +98,12 @@ var Select = function (_a) {
|
|
|
62
98
|
var theme = useTheme();
|
|
63
99
|
// strip extra params
|
|
64
100
|
var handleLoadOptions = useMemo(function () {
|
|
65
|
-
return loadOptions ? function (fulltext) { return
|
|
101
|
+
return loadOptions ? function (fulltext) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0: return [4 /*yield*/, loadOptions(fulltext)];
|
|
104
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
105
|
+
}
|
|
106
|
+
}); }); } : undefined;
|
|
66
107
|
}, [loadOptions]);
|
|
67
108
|
return (_jsxs(SpaceAroundWrap, { spaceAround: spaceAround, className: className, children: [_jsxs(Wrapper, { children: [label && _jsx(FieldLabel, { htmlFor: name, children: label }), _jsx(RenderComponent, __assign({ id: name, name: name, options: options, loadOptions: handleLoadOptions, defaultOptions: defaultOptions, value: selectedOption, onChange: onChange, onBlur: onBlur, isDisabled: disabled || isLoading, isLoading: isLoading, isInvalid: isInvalid !== undefined ? isInvalid : !!error, isDarkPlaceholderText: isDarkPlaceholderText, placeholder: placeholder || i18n._({ id: 'components.dropdown.placeholder', message: 'Select...' }), styles: customStyles, theme: customTheme, icon: icon, hideSelectedOptions: !!(isMulti && multiLabelVariant != 'count'), onInputChange: onInputChange, isSearchable: isAsync || isSearchable, isMulti: isMulti, classNamePrefix: "react-select", components: customComponents, closeMenuOnSelect: isMulti ? false : undefined }, passTroughProps, { ref: innerRef, tabIndex: null, systemTheme: theme, resetGrid: resetGrid, onCustomSelectAll: setAllOptions, onCustomDeselectAll: unsetAllOptions, selectAllButton: showSelectAllButton, resetGridButton: showResetGridButton, maxMenuHeight: modifiedMaxMenuHeight, getOptionValue: getOptionValue, noOptionsMessage: noOptionsMessage, loadingMessage: loadingMessage, shortValues: shortValues }))] }), error && _jsx(ErrorMessage, { children: error })] }));
|
|
68
109
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const SelectedIndicator: import(
|
|
1
|
+
declare const SelectedIndicator: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export default SelectedIndicator;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import ReactSelect from 'react-select';
|
|
2
|
-
import AsyncSelect from 'react-select/async';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
1
|
+
import { default as ReactSelect } from 'react-select';
|
|
2
|
+
import { default as AsyncSelect } from 'react-select/async';
|
|
3
|
+
|
|
4
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
5
|
+
export declare const StyledReactSelect: import('styled-components').StyledComponent<ReactSelect, import('@xstyled/system').Theme, import('@xstyled/util').Props<import('@xstyled/system').Theme> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
6
|
+
export declare const StyledAsyncSelect: import('styled-components').StyledComponent<AsyncSelect, import('@xstyled/system').Theme, import('@xstyled/util').Props<import('@xstyled/system').Theme> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, never>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { StylesConfig, SelectComponentsConfig } from 'react-select';
|
|
2
|
+
import { SelectProps } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare const useStylesAndComponents: (style?: SelectProps["style"], optionVariant?: SelectProps["optionVariant"], multiLabelVariant?: SelectProps["multiLabelVariant"], containerVariant?: SelectProps["containerVariant"], useSimplifiedOptions?: SelectProps["useSimplifiedOptions"], showSelectAllButton?: SelectProps["showSelectAllButton"], showResetGridButton?: SelectProps["showResetGridButton"]) => [SelectComponentsConfig<unknown, boolean, any>, any, StylesConfig];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectProps, StylesConfig, CustomTheme } from '../types';
|
|
2
|
+
|
|
2
3
|
export declare const CustomStyles: StylesConfig<State>;
|
|
3
4
|
type ThemeGetter = (theme: any) => CustomTheme;
|
|
4
|
-
export declare const getCustomTheme: (theme: any, optionVariant: Required<SelectProps>[
|
|
5
|
+
export declare const getCustomTheme: (theme: any, optionVariant: Required<SelectProps>["optionVariant"], useFilterSubvariant: boolean) => ThemeGetter;
|
|
5
6
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
1
|
+
import { RefObject, ReactNode } from 'react';
|
|
2
2
|
import { Theme, ControlProps, CSSObjectWithLabel } from 'react-select';
|
|
3
3
|
import { SpaceAround } from '../SpaceAround/types';
|
|
4
|
+
|
|
4
5
|
export type Option<Value = string | number> = {
|
|
5
6
|
value: Value;
|
|
6
7
|
label: string | number;
|
|
@@ -16,8 +17,8 @@ export type SelectProps = {
|
|
|
16
17
|
name?: string;
|
|
17
18
|
value?: number | string | string[] | Option | Option[];
|
|
18
19
|
placeholder?: string;
|
|
19
|
-
loadingMessage?: (inputValue: string) => string |
|
|
20
|
-
noOptionsMessage?: (inputValue: string) => string |
|
|
20
|
+
loadingMessage?: (inputValue: string) => string | ReactNode;
|
|
21
|
+
noOptionsMessage?: (inputValue: string) => string | ReactNode;
|
|
21
22
|
filterOption?: (option: Option) => boolean;
|
|
22
23
|
options?: Option[];
|
|
23
24
|
loadOptions?: (text: string) => Promise<Option[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { Link as ReactLink } from 'react-router-dom';
|
|
3
3
|
import { TextVariant } from '../Text/types';
|
|
4
|
+
|
|
4
5
|
export type ToObjectType = {
|
|
5
6
|
pathname?: string;
|
|
6
7
|
search?: string;
|
|
@@ -17,5 +18,5 @@ export type Props = {
|
|
|
17
18
|
$decorate?: boolean;
|
|
18
19
|
variant?: TextVariant;
|
|
19
20
|
};
|
|
20
|
-
declare const StyledLink: import(
|
|
21
|
+
declare const StyledLink: import('styled-components').StyledComponent<typeof ReactLink, import('@xstyled/system').Theme, Props, never>;
|
|
21
22
|
export default StyledLink;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SelectProps, Option } from '../Select/types';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
type FieldValueType = string | number | Array<string | number> | null;
|
|
3
5
|
export type Props = Omit<SelectProps, 'onChange' | 'loadOptions'> & {
|
|
4
6
|
onChange?: (event: {
|
|
5
|
-
target:
|
|
6
|
-
[key: string]: FieldValueType;
|
|
7
|
-
};
|
|
7
|
+
target: Record<string, FieldValueType>;
|
|
8
8
|
}) => void;
|
|
9
9
|
onValueChange?: Function;
|
|
10
10
|
asyncLoadMinChars?: number;
|
|
@@ -17,5 +17,5 @@ export type Props = Omit<SelectProps, 'onChange' | 'loadOptions'> & {
|
|
|
17
17
|
form?: any;
|
|
18
18
|
shouldReloadOptions?: boolean;
|
|
19
19
|
};
|
|
20
|
-
declare const SingleSelect:
|
|
20
|
+
declare const SingleSelect: React.FC<Props>;
|
|
21
21
|
export default SingleSelect;
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g =
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -92,25 +92,31 @@ var SingleSelect = function (props) {
|
|
|
92
92
|
})
|
|
93
93
|
: i18n._({ id: 'components.dropdown.noOptions', message: 'No options' });
|
|
94
94
|
}, [loadOptions, asyncLoadMinChars]);
|
|
95
|
-
var handleLoadOptions = useCallback(function (inputValue) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
95
|
+
var handleLoadOptions = useCallback(function (inputValue) { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
switch (_a.label) {
|
|
98
|
+
case 0:
|
|
99
|
+
if (!onCreateOption) return [3 /*break*/, 4];
|
|
100
|
+
if (!!inputValue.trim()) return [3 /*break*/, 2];
|
|
101
|
+
return [4 /*yield*/, Promise.resolve(options || [])];
|
|
102
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
103
|
+
case 2: return [4 /*yield*/, Promise.resolve(__spreadArray(__spreadArray([], (options || []), true), [
|
|
104
|
+
{
|
|
105
|
+
value: CREATE,
|
|
106
|
+
label: "".concat(inputValue, " (").concat(i18n._({ id: 'components.dropdown.newOption', message: 'new value' }), ")"),
|
|
107
|
+
inputValue: inputValue
|
|
108
|
+
}
|
|
109
|
+
], false))];
|
|
110
|
+
case 3: return [2 /*return*/, _a.sent()];
|
|
111
|
+
case 4:
|
|
112
|
+
if (!(!loadOptions || inputValue.length < asyncLoadMinChars)) return [3 /*break*/, 6];
|
|
113
|
+
return [4 /*yield*/, Promise.resolve([])];
|
|
114
|
+
case 5: return [2 /*return*/, _a.sent()];
|
|
115
|
+
case 6: return [4 /*yield*/, loadOptions(inputValue, false)];
|
|
116
|
+
case 7: return [2 /*return*/, _a.sent()];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}); }, [onCreateOption, loadOptions, asyncLoadMinChars, options]);
|
|
114
120
|
var _f = useState(options || []), loadedDefaultOptions = _f[0], setLoadedDefaultOptions = _f[1];
|
|
115
121
|
useEffect(function () {
|
|
116
122
|
if (loadOptions && preload && !props.value)
|
|
@@ -124,7 +130,9 @@ var SingleSelect = function (props) {
|
|
|
124
130
|
setStoredSelectedOption(selectedOption);
|
|
125
131
|
}
|
|
126
132
|
if (loadOptions && !initialOptions && props.value) {
|
|
127
|
-
loadOptions(String(props.value), true).then(function (selectedOptions) {
|
|
133
|
+
loadOptions(String(props.value), true).then(function (selectedOptions) {
|
|
134
|
+
setStoredSelectedOption((selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions[0]) || null);
|
|
135
|
+
});
|
|
128
136
|
}
|
|
129
137
|
// ignored because of props.value, this only finds option for initial value
|
|
130
138
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -25,8 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import styled, { x, css, useTheme } from '@xstyled/styled-components';
|
|
29
|
-
import { th } from '@xstyled/styled-components';
|
|
28
|
+
import styled, { x, css, useTheme, th } from '@xstyled/styled-components';
|
|
30
29
|
var Wrapper = styled(x.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n position: relative;\n box-sizing: border-box;\n ", ";\n ", ";\n"], ["\n width: ", ";\n position: relative;\n box-sizing: border-box;\n ", ";\n ", ";\n"])), function (_a) {
|
|
31
30
|
var $marginLeft = _a.$marginLeft, $marginRight = _a.$marginRight;
|
|
32
31
|
return "calc(100% - ".concat($marginLeft || '0px', " - ").concat($marginRight || '0px', ")");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (
|
|
5
|
+
component: import('react').FC<import('../types').Props>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {};
|
|
8
8
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SpinnerProps } from './types';
|
|
3
|
+
|
|
2
4
|
export declare const appearanceToColorMap: {
|
|
3
5
|
error: string;
|
|
4
6
|
concept: string;
|
|
@@ -10,5 +12,5 @@ export declare const appearanceToColorMap: {
|
|
|
10
12
|
waiting: string;
|
|
11
13
|
};
|
|
12
14
|
export declare const appearanceToFontColorMap: Record<string, string>;
|
|
13
|
-
export declare const Spinner:
|
|
15
|
+
export declare const Spinner: FC<SpinnerProps>;
|
|
14
16
|
export default Spinner;
|
|
@@ -8,7 +8,7 @@ export var appearanceToColorMap = {
|
|
|
8
8
|
processing: 'blue2',
|
|
9
9
|
success: 'green',
|
|
10
10
|
warning: 'yellow1',
|
|
11
|
-
waiting: 'gray1'
|
|
11
|
+
waiting: 'gray1'
|
|
12
12
|
};
|
|
13
13
|
export var appearanceToFontColorMap = {
|
|
14
14
|
error: 'white',
|
|
@@ -18,7 +18,7 @@ export var appearanceToFontColorMap = {
|
|
|
18
18
|
processing: 'white',
|
|
19
19
|
success: 'white',
|
|
20
20
|
warning: 'blue2',
|
|
21
|
-
waiting: 'white'
|
|
21
|
+
waiting: 'white'
|
|
22
22
|
};
|
|
23
23
|
export var Spinner = function (_a) {
|
|
24
24
|
var _b = _a.variant, variant = _b === void 0 ? 'default' : _b, appearance = _a.appearance;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
|
-
component: import(
|
|
5
|
+
component: import('react').FC<import('../types').SpinnerProps>;
|
|
5
6
|
tags: string[];
|
|
6
7
|
argTypes: {};
|
|
7
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Svg: import(
|
|
2
|
-
$variant:
|
|
1
|
+
export declare const Svg: import('styled-components').StyledComponent<"svg", import('@xstyled/system').Theme, {
|
|
2
|
+
$variant: "default" | "sm";
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const Circle: import(
|
|
4
|
+
export declare const Circle: import('styled-components').StyledComponent<"circle", import('@xstyled/system').Theme, {}, never>;
|