@mailstep/design-system 0.6.2-beta.7 → 0.6.2-beta.8
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 +6 -6
- package/ui/Blocks/CommonGrid/CommonGrid.js +38 -33
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +33 -28
- package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +10 -8
- package/ui/Blocks/CommonGrid/StandardButtons.js +20 -11
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +26 -21
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +13 -8
- package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +48 -20
- package/ui/Blocks/CommonGrid/components/ActionHead/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/BooleanSelect/BooleanSelect.js +15 -10
- package/ui/Blocks/CommonGrid/components/BooleanSelect/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +19 -14
- package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +22 -17
- package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +50 -22
- package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/ColumnTitle.js +13 -8
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +38 -9
- package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/DataCell.js +18 -13
- package/ui/Blocks/CommonGrid/components/DataRow.js +35 -30
- package/ui/Blocks/CommonGrid/components/DatePickerRange/DatePickerRange.js +59 -31
- package/ui/Blocks/CommonGrid/components/DatePickerRange/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/DatePickerRange/utils/sameDate.js +5 -1
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +41 -12
- package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/FilterDropdown.js +13 -8
- package/ui/Blocks/CommonGrid/components/FilterRow.js +20 -15
- package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +23 -17
- package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/GridSelect/GridSelect.js +15 -10
- package/ui/Blocks/CommonGrid/components/GridSelect/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/GroupRow.js +15 -10
- package/ui/Blocks/CommonGrid/components/HeadCell.js +19 -14
- package/ui/Blocks/CommonGrid/components/HeadRow.js +45 -17
- package/ui/Blocks/CommonGrid/components/IconList/IconList.js +18 -12
- package/ui/Blocks/CommonGrid/components/IconList/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +14 -12
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ActionRow.js +24 -17
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.js +28 -23
- package/ui/Blocks/CommonGrid/components/NumberRange/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/NumberRange/types.js +2 -1
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +39 -11
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/ReadEditButtonCell.js +12 -10
- package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/Resize.js +12 -7
- package/ui/Blocks/CommonGrid/components/Table.js +37 -9
- package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +40 -12
- package/ui/Blocks/CommonGrid/components/TablePagination/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/TextRange/TextRange.js +36 -30
- package/ui/Blocks/CommonGrid/components/TextRange/index.js +7 -2
- package/ui/Blocks/CommonGrid/components/TextRange/types.js +2 -1
- package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +41 -12
- package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +11 -4
- package/ui/Blocks/CommonGrid/components/gridCells/Date.js +13 -6
- package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +13 -6
- package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +16 -9
- package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +15 -8
- package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +15 -8
- package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +16 -9
- package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +9 -3
- package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +18 -11
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +20 -13
- package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +12 -5
- package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +11 -4
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +40 -10
- package/ui/Blocks/CommonGrid/components/gridCells/index.js +31 -14
- package/ui/Blocks/CommonGrid/components/icons/Edit.js +5 -3
- package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +5 -3
- package/ui/Blocks/CommonGrid/components/icons/Sorting.js +8 -3
- package/ui/Blocks/CommonGrid/components/utils.js +7 -3
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +10 -6
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +18 -13
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +12 -7
- package/ui/Blocks/CommonGrid/hooks/useFloatingButton.js +5 -3
- package/ui/Blocks/CommonGrid/hooks/useGetGridHeight.js +11 -9
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +14 -7
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +8 -6
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +8 -3
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.js +8 -4
- package/ui/Blocks/CommonGrid/hooks/useUxReset.js +9 -4
- package/ui/Blocks/CommonGrid/index.js +51 -10
- package/ui/Blocks/CommonGrid/store/index.js +86 -77
- package/ui/Blocks/CommonGrid/store/migrateState.js +3 -1
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +24 -17
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +19 -12
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +15 -8
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +15 -8
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +15 -8
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +19 -12
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +17 -10
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +19 -12
- package/ui/Blocks/CommonGrid/storybook/utils/actions.js +11 -4
- package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +17 -11
- package/ui/Blocks/CommonGrid/storybook/utils/linguiContainer.js +10 -6
- package/ui/Blocks/CommonGrid/storybook/utils/utils.js +35 -26
- package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +17 -10
- package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +6 -4
- package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +3 -1
- package/ui/Blocks/CommonGrid/styles.js +39 -10
- package/ui/Blocks/CommonGrid/translations.js +5 -3
- package/ui/Blocks/CommonGrid/types.js +6 -3
- package/ui/Blocks/CommonGrid/utils/index.js +40 -23
- package/ui/Blocks/CornerDialog/CornerDialog.js +15 -11
- package/ui/Blocks/CornerDialog/index.js +4 -2
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.js +10 -7
- package/ui/Blocks/CornerDialog/styles.js +35 -9
- package/ui/Blocks/CornerDialog/types.js +2 -1
- package/ui/Blocks/CornerDialog/utils.js +5 -2
- package/ui/Blocks/HidePrint/HidePrint.js +10 -5
- package/ui/Blocks/ImageList/ImageList.js +42 -15
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +11 -7
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +29 -3
- package/ui/Blocks/ImageList/components/CloseButton/index.js +9 -5
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +29 -3
- package/ui/Blocks/ImageList/components/ImageElement/index.js +11 -7
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +29 -3
- package/ui/Blocks/ImageList/components/ImageTag/index.js +12 -5
- package/ui/Blocks/ImageList/components/ImageTag/styles.js +8 -2
- package/ui/Blocks/ImageList/index.js +4 -2
- package/ui/Blocks/ImageList/stories/ImageList.stories.js +9 -6
- package/ui/Blocks/ImageList/styles.js +8 -2
- package/ui/Blocks/ImageList/types.js +2 -1
- package/ui/Blocks/LightBox/LightBox.js +15 -8
- package/ui/Blocks/LightBox/hooks/useLightBox.js +9 -5
- package/ui/Blocks/LightBox/index.js +7 -3
- package/ui/Blocks/LightBox/stories/LightBox.stories.js +7 -4
- package/ui/Blocks/LightBox/styles.js +11 -5
- package/ui/Blocks/LightBox/types.js +2 -1
- package/ui/Blocks/Modal/Modal.js +20 -17
- package/ui/Blocks/Modal/hooks/useClickOutside.js +10 -6
- package/ui/Blocks/Modal/hooks/useModal.js +10 -6
- package/ui/Blocks/Modal/index.js +9 -4
- package/ui/Blocks/Modal/stories/Modal.stories.js +48 -42
- package/ui/Blocks/Modal/styles.js +46 -20
- package/ui/Blocks/Modal/types.js +2 -1
- package/ui/Blocks/Modal/utils.js +4 -1
- package/ui/Blocks/Popover/index.js +15 -10
- package/ui/Blocks/Tabs/TabContent.js +5 -1
- package/ui/Blocks/Tabs/Tabs.js +14 -10
- package/ui/Blocks/Tabs/hooks/useTabs.js +8 -4
- package/ui/Blocks/Tabs/index.js +9 -4
- package/ui/Blocks/Tabs/stories/Tabs.stories.js +9 -6
- package/ui/Blocks/Tabs/styles.js +34 -8
- package/ui/Blocks/Tabs/types.js +2 -1
- package/ui/Elements/Alert/Alert.js +12 -10
- package/ui/Elements/Alert/index.js +9 -3
- package/ui/Elements/Alert/stories/Alert.stories.js +14 -11
- package/ui/Elements/Alert/styles.js +20 -14
- package/ui/Elements/Alert/types.js +2 -1
- package/ui/Elements/Avatar/Avatar.js +14 -7
- package/ui/Elements/Avatar/index.js +7 -3
- package/ui/Elements/Avatar/stories/Avatar.stories.js +8 -5
- package/ui/Elements/Avatar/types.js +2 -1
- package/ui/Elements/Badge/Badge.js +38 -13
- package/ui/Elements/Badge/index.js +9 -3
- package/ui/Elements/Badge/stories/Badge.stories.js +11 -5
- package/ui/Elements/BorderedBox/BorderedBox.js +30 -5
- package/ui/Elements/BorderedBox/index.js +9 -3
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.js +7 -4
- package/ui/Elements/BorderedBox/types.js +2 -1
- package/ui/Elements/Button/Button.js +7 -5
- package/ui/Elements/Button/index.js +9 -3
- package/ui/Elements/Button/stories/Button.stories.js +16 -13
- package/ui/Elements/Button/styles.js +14 -8
- package/ui/Elements/Button/types.js +2 -1
- package/ui/Elements/Card/Card.js +20 -14
- package/ui/Elements/Card/index.js +12 -3
- package/ui/Elements/Card/stories/Card.stories.js +11 -8
- package/ui/Elements/Card/stories/CardComponent.stories.js +12 -6
- package/ui/Elements/Card/styles.js +38 -12
- package/ui/Elements/Card/types.js +2 -1
- package/ui/Elements/DatePicker/DatePicker.js +53 -25
- package/ui/Elements/DatePicker/Datetime/DateTime.js +31 -26
- package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +47 -20
- package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +6 -3
- package/ui/Elements/DatePicker/Datetime/types.js +2 -1
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +18 -13
- package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +14 -9
- package/ui/Elements/DatePicker/Datetime/views/YearsView.js +14 -9
- package/ui/Elements/DatePicker/index.js +7 -2
- package/ui/Elements/DatePicker/styles.js +29 -3
- package/ui/Elements/Dropdown/Dropdown.js +15 -10
- package/ui/Elements/Dropdown/index.js +9 -3
- package/ui/Elements/Dropdown/stories/Dropdown.stories.js +10 -4
- package/ui/Elements/Dropdown/types.js +2 -1
- package/ui/Elements/DropdownMenu/DropdownMenu.js +15 -8
- package/ui/Elements/DropdownMenu/components/DefaultItem.js +32 -7
- package/ui/Elements/DropdownMenu/components/MenuItem.js +15 -10
- package/ui/Elements/DropdownMenu/components/MenuList.js +10 -5
- package/ui/Elements/DropdownMenu/index.js +5 -1
- package/ui/Elements/DropdownMenu/types.js +2 -1
- package/ui/Elements/DropdownSelect/DropdownSelect.js +50 -21
- package/ui/Elements/DropdownSelect/index.js +10 -3
- package/ui/Elements/ErrorMessage/ErrorMessage.js +34 -9
- package/ui/Elements/ErrorMessage/index.js +9 -3
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.js +11 -5
- package/ui/Elements/ErrorMessage/types.js +2 -1
- package/ui/Elements/HighlightBox/HighlightBox.js +38 -12
- package/ui/Elements/HighlightBox/index.js +7 -2
- package/ui/Elements/Icon/BadgeIcon.js +17 -10
- package/ui/Elements/Icon/Icon.js +245 -216
- package/ui/Elements/Icon/icons/AddPhoto.js +6 -2
- package/ui/Elements/Icon/icons/BarcodeScan.js +6 -2
- package/ui/Elements/Icon/icons/Box.js +6 -2
- package/ui/Elements/Icon/icons/Calendar.js +6 -2
- package/ui/Elements/Icon/icons/Cancel.js +6 -2
- package/ui/Elements/Icon/icons/CheckedBox.js +6 -2
- package/ui/Elements/Icon/icons/Company.js +6 -2
- package/ui/Elements/Icon/icons/Complaint.js +6 -2
- package/ui/Elements/Icon/icons/Consolidation.js +6 -2
- package/ui/Elements/Icon/icons/Dispatch.js +6 -2
- package/ui/Elements/Icon/icons/EmptyRack.js +6 -2
- package/ui/Elements/Icon/icons/Expeditions.js +6 -2
- package/ui/Elements/Icon/icons/FlagCZ.js +6 -2
- package/ui/Elements/Icon/icons/FlagEL.js +6 -2
- package/ui/Elements/Icon/icons/FlagESP.js +6 -2
- package/ui/Elements/Icon/icons/FlagITA.js +6 -2
- package/ui/Elements/Icon/icons/FlagRUS.js +6 -2
- package/ui/Elements/Icon/icons/FlagSVK.js +6 -2
- package/ui/Elements/Icon/icons/FlagUSA.js +6 -2
- package/ui/Elements/Icon/icons/Gift.js +6 -2
- package/ui/Elements/Icon/icons/Group.js +6 -2
- package/ui/Elements/Icon/icons/HamburgerMenu.js +6 -2
- package/ui/Elements/Icon/icons/HelpCircle1.js +6 -2
- package/ui/Elements/Icon/icons/ImagePlaceholder.js +6 -2
- package/ui/Elements/Icon/icons/Income.js +6 -2
- package/ui/Elements/Icon/icons/Info.js +6 -2
- package/ui/Elements/Icon/icons/Integrations.js +6 -2
- package/ui/Elements/Icon/icons/Inventory.js +6 -2
- package/ui/Elements/Icon/icons/Inventory2.js +6 -2
- package/ui/Elements/Icon/icons/Link.js +6 -2
- package/ui/Elements/Icon/icons/Location.js +6 -2
- package/ui/Elements/Icon/icons/Logout1.js +6 -2
- package/ui/Elements/Icon/icons/MakePhoto.js +6 -2
- package/ui/Elements/Icon/icons/MenuItems.js +6 -2
- package/ui/Elements/Icon/icons/MobileCancel.js +6 -2
- package/ui/Elements/Icon/icons/Notification2.js +6 -2
- package/ui/Elements/Icon/icons/OpenBox.js +6 -2
- package/ui/Elements/Icon/icons/Plus1.js +6 -2
- package/ui/Elements/Icon/icons/Print.js +6 -2
- package/ui/Elements/Icon/icons/Product.js +6 -2
- package/ui/Elements/Icon/icons/Products.js +6 -2
- package/ui/Elements/Icon/icons/Profile.js +6 -2
- package/ui/Elements/Icon/icons/Puzzle1.js +6 -2
- package/ui/Elements/Icon/icons/QRCode.js +6 -2
- package/ui/Elements/Icon/icons/Rack.js +6 -2
- package/ui/Elements/Icon/icons/Return.js +6 -2
- package/ui/Elements/Icon/icons/Rows.js +6 -2
- package/ui/Elements/Icon/icons/Settings2.js +6 -2
- package/ui/Elements/Icon/icons/ShoppingBag.js +6 -2
- package/ui/Elements/Icon/icons/ThreeDots.js +6 -2
- package/ui/Elements/Icon/icons/Transfer.js +6 -2
- package/ui/Elements/Icon/icons/Truck.js +6 -2
- package/ui/Elements/Icon/icons/TwoBoxes.js +6 -2
- package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +6 -2
- package/ui/Elements/Icon/icons/TwoUsers.js +6 -2
- package/ui/Elements/Icon/icons/index.js +114 -55
- package/ui/Elements/Icon/index.js +26 -5
- package/ui/Elements/Icon/stories/BadgeIcon.stories.js +12 -6
- package/ui/Elements/Icon/stories/Icon.stories.js +12 -9
- package/ui/Elements/Icon/types.js +2 -1
- package/ui/Elements/Image/Image.js +6 -4
- package/ui/Elements/Image/index.js +9 -3
- package/ui/Elements/Image/stories/Image.stories.js +15 -9
- package/ui/Elements/Image/types.js +2 -1
- package/ui/Elements/Label/Label.js +35 -9
- package/ui/Elements/Label/index.js +8 -3
- package/ui/Elements/Label/stories/Label.stories.js +8 -5
- package/ui/Elements/Line/Line.js +10 -5
- package/ui/Elements/Line/index.js +9 -3
- package/ui/Elements/Line/stories/Line.stories.js +16 -10
- package/ui/Elements/Line/types.js +2 -1
- package/ui/Elements/Link/Link.js +39 -14
- package/ui/Elements/Link/index.js +9 -3
- package/ui/Elements/Link/stories/Link.stories.js +13 -10
- package/ui/Elements/Logo/Logo.js +30 -25
- package/ui/Elements/Logo/index.js +9 -3
- package/ui/Elements/Logo/stories/Logo.stories.js +24 -18
- package/ui/Elements/Logo/types.js +2 -1
- package/ui/Elements/MultiSelect/MultiSelect.js +9 -4
- package/ui/Elements/MultiSelect/index.js +7 -2
- package/ui/Elements/Pagination/Pagination.js +9 -7
- package/ui/Elements/Pagination/index.js +9 -3
- package/ui/Elements/Pagination/stories/Pagination.stories.js +8 -5
- package/ui/Elements/Pagination/styled.js +41 -12
- package/ui/Elements/Portal/index.js +14 -7
- package/ui/Elements/ProgressBar/ProgressBar.js +6 -4
- package/ui/Elements/ProgressBar/index.js +9 -3
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.js +12 -6
- package/ui/Elements/ProgressBar/styles.js +38 -12
- package/ui/Elements/Select/Select.js +25 -20
- package/ui/Elements/Select/index.js +7 -2
- package/ui/Elements/Select/styles.js +13 -7
- package/ui/Elements/Select/themes/CustomComponents.js +72 -37
- package/ui/Elements/Select/themes/baseStyles.js +12 -6
- package/ui/Elements/Select/themes/formStyles.js +27 -23
- package/ui/Elements/Select/themes/index.js +20 -16
- package/ui/Elements/Select/types.js +2 -1
- package/ui/Elements/SimpleLink/SimpleLink.js +31 -6
- package/ui/Elements/SimpleLink/index.js +9 -3
- package/ui/Elements/SingleSelect/SingleSelect.js +32 -27
- package/ui/Elements/SingleSelect/index.js +7 -2
- package/ui/Elements/SpaceAround/SpaceAround.js +36 -11
- package/ui/Elements/SpaceAround/index.js +9 -3
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.js +8 -5
- package/ui/Elements/SpaceAround/types.js +2 -1
- package/ui/Elements/Spinner/Spinner.js +12 -8
- package/ui/Elements/Spinner/index.js +9 -3
- package/ui/Elements/Spinner/stories/Spinner.stories.js +16 -13
- package/ui/Elements/Spinner/styles.js +33 -7
- package/ui/Elements/Spinner/types.js +2 -1
- package/ui/Elements/Tag/Tag.js +31 -6
- package/ui/Elements/Tag/index.js +10 -3
- package/ui/Elements/Tag/palletes.js +4 -1
- package/ui/Elements/Tag/stories/Tag.stories.js +21 -15
- package/ui/Elements/Tag/stories/components/predefinedTags.js +11 -6
- package/ui/Elements/Tag/types.js +2 -1
- package/ui/Elements/Text/Text.js +6 -4
- package/ui/Elements/Text/index.js +8 -2
- package/ui/Elements/Text/stories/Text.stories.js +15 -9
- package/ui/Elements/Text/types.js +2 -1
- package/ui/Elements/Toast/Toast.js +15 -10
- package/ui/Elements/Toast/index.js +9 -3
- package/ui/Elements/Toggle/Toggle.js +38 -13
- package/ui/Elements/Toggle/index.js +9 -3
- package/ui/Elements/Toggle/stories/Toggle.stories.js +13 -7
- package/ui/Elements/Toggle/types.js +2 -1
- package/ui/Elements/Typography/Typography.js +44 -28
- package/ui/Elements/Typography/index.js +19 -3
- package/ui/Elements/Typography/stories/Typography.stories.js +18 -15
- package/ui/Forms/Checkbox/Checkbox.js +11 -9
- package/ui/Forms/Checkbox/index.js +9 -3
- package/ui/Forms/Checkbox/stories/Checkbox.stories.js +13 -7
- package/ui/Forms/Checkbox/styles.js +32 -6
- package/ui/Forms/Checkbox/types.js +2 -1
- package/ui/Forms/Input/Input.js +20 -16
- package/ui/Forms/Input/index.js +6 -3
- package/ui/Forms/Input/stories/Input.stories.js +14 -11
- package/ui/Forms/Input/styles.js +46 -20
- package/ui/Forms/Input/types.js +2 -1
- package/ui/Forms/RadioButton/RadioButton.js +8 -6
- package/ui/Forms/RadioButton/index.js +9 -3
- package/ui/Forms/RadioButton/stories/RadioButton.stories.js +13 -7
- package/ui/Forms/RadioButton/styles.js +13 -7
- package/ui/Forms/RadioButton/types.js +2 -1
- package/ui/Forms/TextArea/TextArea.js +13 -8
- package/ui/Forms/TextArea/index.js +7 -2
- package/ui/Forms/TextArea/styles.js +39 -13
- package/ui/System/Fonts/index.js +14 -9
- package/ui/ThemeProvider/ThemeProvider.js +13 -7
- package/ui/ThemeProvider/index.js +25 -5
- package/ui/ThemeProvider/themes/default.js +3 -1
- package/ui/ThemeProvider/themes/index.js +12 -7
- package/ui/ThemeProvider/themes/light.js +3 -1
- package/ui/ThemeProvider/themes/mailwise.js +3 -1
- package/ui/ThemeProvider/types.js +2 -1
- package/ui/index.es.js +23359 -19683
- package/ui/index.js +146 -85
- package/ui/index.umd.js +510 -484
- package/ui/utils/CreateRgba/createRgba.js +12 -5
- package/ui/utils/CreateRgba/types.js +2 -1
- package/ui/utils/KeyPress/KeyPress.js +6 -4
- package/ui/utils/KeyPress/KeyPress.stories.js +12 -6
- package/ui/utils/KeyPress/index.js +7 -2
- package/ui/utils/KeyPress/types.js +2 -1
- package/ui/utils/index.js +13 -6
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onBatchAction = exports.onRowAction = exports.onRowReadClick = exports.onRowEditClick = void 0;
|
|
4
|
+
var onRowEditClick = function (id, props) { return console.log('onRowEditClick', id, props); };
|
|
5
|
+
exports.onRowEditClick = onRowEditClick;
|
|
6
|
+
var onRowReadClick = function (id, props) { return console.log('onRowReadClick', id, props); };
|
|
7
|
+
exports.onRowReadClick = onRowReadClick;
|
|
8
|
+
var onRowAction = function (id, field, value) { return console.log('onRowAction', id, field, value); };
|
|
9
|
+
exports.onRowAction = onRowAction;
|
|
10
|
+
var onBatchAction = function (action, affectedRows) {
|
|
5
11
|
console.log('onBatchAction called', action, affectedRows);
|
|
6
12
|
};
|
|
13
|
+
exports.onBatchAction = onBatchAction;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
3
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
4
|
if (ar || !(i in from)) {
|
|
@@ -7,32 +8,37 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7
8
|
}
|
|
8
9
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.columnDefinitions = exports.enumColumn = exports.oversizedColumnDefinition = exports.enumValues = exports.oversizedArrayColumns = void 0;
|
|
16
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
exports.oversizedArrayColumns = 25;
|
|
19
|
+
exports.enumValues = ['option A', 'option B', 'option C'];
|
|
14
20
|
var ComplexCell = function (props) {
|
|
15
|
-
var handleActionClick =
|
|
21
|
+
var handleActionClick = react_1.default.useCallback(function () {
|
|
16
22
|
if (props.onRowAction)
|
|
17
23
|
props.onRowAction(props.rowData.id, 'get_invoice', null);
|
|
18
24
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
25
|
}, [props.rowData, props.onRowAction]);
|
|
20
|
-
return
|
|
26
|
+
return (0, jsx_runtime_1.jsxs)("button", { onClick: handleActionClick, children: [" download ", props.rowData.id, " "] });
|
|
21
27
|
};
|
|
22
|
-
|
|
28
|
+
exports.oversizedColumnDefinition = new Array(exports.oversizedArrayColumns).fill(null).map(function (unused, index) { return ({
|
|
23
29
|
name: "column_".concat(index),
|
|
24
30
|
title: "column_".concat(index),
|
|
25
31
|
flexBasis: 120,
|
|
26
32
|
}); });
|
|
27
|
-
|
|
33
|
+
exports.enumColumn = {
|
|
28
34
|
name: 'enumColumn',
|
|
29
35
|
title: 'Enum Column',
|
|
30
36
|
flexBasis: 160,
|
|
31
|
-
filterOptions: __spreadArray([{ value: '', label: 'all' }], enumValues.map(function (v) { return ({ value: v, label: v }); }), true),
|
|
37
|
+
filterOptions: __spreadArray([{ value: '', label: 'all' }], exports.enumValues.map(function (v) { return ({ value: v, label: v }); }), true),
|
|
32
38
|
filtering: true,
|
|
33
39
|
sorting: false,
|
|
34
40
|
};
|
|
35
|
-
|
|
41
|
+
exports.columnDefinitions = [
|
|
36
42
|
{
|
|
37
43
|
name: 'textColumn',
|
|
38
44
|
title: 'Text column',
|
|
@@ -40,7 +46,7 @@ export var columnDefinitions = [
|
|
|
40
46
|
filtering: true,
|
|
41
47
|
sorting: true,
|
|
42
48
|
},
|
|
43
|
-
enumColumn,
|
|
49
|
+
exports.enumColumn,
|
|
44
50
|
{
|
|
45
51
|
name: 'numberColumn',
|
|
46
52
|
title: 'Number Column',
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinguiContainer = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var core_1 = require("@lingui/core");
|
|
6
|
+
var react_1 = require("@lingui/react");
|
|
7
|
+
var LinguiContainer = function (_a) {
|
|
5
8
|
var children = _a.children;
|
|
6
|
-
i18n.activate('en');
|
|
7
|
-
return
|
|
9
|
+
core_1.i18n.activate('en');
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(react_1.I18nProvider, { i18n: core_1.i18n, children: children });
|
|
8
11
|
};
|
|
12
|
+
exports.LinguiContainer = LinguiContainer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,15 +10,20 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ReduxGrid = exports.createOversizedRandomData = exports.gridDummyActions = exports.createRandomData = exports.gridSelectors = exports.oversizedArrayColumns = exports.enumValues = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var react_1 = __importDefault(require("react"));
|
|
20
|
+
var faker_1 = __importDefault(require("faker"));
|
|
21
|
+
var types_1 = require("../../types");
|
|
22
|
+
var withReduxActions_1 = __importDefault(require("../../HoC/withReduxActions"));
|
|
23
|
+
var CommonGridContainer_1 = __importDefault(require("../../CommonGridContainer"));
|
|
24
|
+
exports.enumValues = ['option A', 'option B', 'option C'];
|
|
25
|
+
exports.oversizedArrayColumns = 25;
|
|
26
|
+
exports.gridSelectors = {};
|
|
21
27
|
/**
|
|
22
28
|
* randomly returns given data or undefined. used to simulate optional pros on object data types
|
|
23
29
|
*/
|
|
@@ -25,23 +31,24 @@ function makeOptional(fakerData, chance) {
|
|
|
25
31
|
chance = chance || 0.5;
|
|
26
32
|
return Math.random() < chance ? fakerData : undefined;
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
var createRandomData = function (count) {
|
|
29
35
|
return new Array(count).fill(null).map(function () {
|
|
30
36
|
var _a;
|
|
31
37
|
return (_a = {
|
|
32
|
-
id:
|
|
33
|
-
stickyColumn:
|
|
34
|
-
textColumn:
|
|
35
|
-
enumColumn: enumValues[
|
|
36
|
-
numberColumn:
|
|
37
|
-
dateColumn:
|
|
38
|
-
boolColumn:
|
|
38
|
+
id: faker_1.default.random.uuid(),
|
|
39
|
+
stickyColumn: faker_1.default.random.word(),
|
|
40
|
+
textColumn: faker_1.default.random.word(),
|
|
41
|
+
enumColumn: exports.enumValues[faker_1.default.random.number({ min: 0, max: 2 })],
|
|
42
|
+
numberColumn: faker_1.default.random.number(),
|
|
43
|
+
dateColumn: faker_1.default.date.recent().toISOString(),
|
|
44
|
+
boolColumn: faker_1.default.random.boolean()
|
|
39
45
|
},
|
|
40
|
-
_a[rowClassSymbol] = makeOptional('foo'),
|
|
46
|
+
_a[types_1.rowClassSymbol] = makeOptional('foo'),
|
|
41
47
|
_a);
|
|
42
48
|
});
|
|
43
49
|
};
|
|
44
|
-
|
|
50
|
+
exports.createRandomData = createRandomData;
|
|
51
|
+
exports.gridDummyActions = {
|
|
45
52
|
// @see types for full list of actions
|
|
46
53
|
setPage: function (number) { return console.log('setPage', number); },
|
|
47
54
|
setRowsPerPage: function (number) { return console.log('setRowsPerPage', number); },
|
|
@@ -49,18 +56,20 @@ export var gridDummyActions = {
|
|
|
49
56
|
return console.log('setRowsPerPage', column, value, filterProps);
|
|
50
57
|
},
|
|
51
58
|
};
|
|
52
|
-
|
|
59
|
+
var createOversizedRandomData = function (count) {
|
|
53
60
|
return new Array(count).fill(null).map(function () {
|
|
54
61
|
var newData = {
|
|
55
|
-
id: "".concat(
|
|
62
|
+
id: "".concat(faker_1.default.random.uuid()),
|
|
56
63
|
};
|
|
57
|
-
for (var index = 0; index < oversizedArrayColumns; index++) {
|
|
58
|
-
newData["column_".concat(index)] =
|
|
64
|
+
for (var index = 0; index < exports.oversizedArrayColumns; index++) {
|
|
65
|
+
newData["column_".concat(index)] = faker_1.default.name.lastName();
|
|
59
66
|
}
|
|
60
67
|
return newData;
|
|
61
68
|
});
|
|
62
69
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return
|
|
70
|
+
exports.createOversizedRandomData = createOversizedRandomData;
|
|
71
|
+
var ReduxGrid = function (props) {
|
|
72
|
+
var WithActions = react_1.default.useMemo(function () { return (0, withReduxActions_1.default)('storybookGrid')(CommonGridContainer_1.default); }, []);
|
|
73
|
+
return (0, jsx_runtime_1.jsx)(WithActions, __assign({}, props));
|
|
66
74
|
};
|
|
75
|
+
exports.ReduxGrid = ReduxGrid;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.withProvider = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var react_redux_1 = require("react-redux");
|
|
9
|
+
var redux_1 = require("redux");
|
|
10
|
+
var store_1 = __importDefault(require("../../store"));
|
|
11
|
+
var withProvider = function (story) {
|
|
12
|
+
var reducers = (0, redux_1.combineReducers)({
|
|
13
|
+
commonGrid: store_1.default,
|
|
8
14
|
});
|
|
9
|
-
var store = createStore(reducers);
|
|
10
|
-
return
|
|
15
|
+
var store = (0, redux_1.createStore)(reducers);
|
|
16
|
+
return (0, jsx_runtime_1.jsx)(react_redux_1.Provider, { store: store, children: story() });
|
|
11
17
|
};
|
|
12
|
-
|
|
18
|
+
exports.withProvider = withProvider;
|
|
19
|
+
exports.default = exports.withProvider;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_router_1 = require("react-router");
|
|
5
|
+
var withProvider = function (story) { return (0, jsx_runtime_1.jsx)(react_router_1.MemoryRouter, { children: story() }); };
|
|
6
|
+
exports.default = withProvider;
|
|
@@ -1,23 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
4
|
return cooked;
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.CommonGridWithStyles = exports.StyledColumnButton = exports.StyledButtonStrip = exports.CommonGridWrap = exports.ContentContainer = exports.BottomWrapper = void 0;
|
|
34
|
+
var styled_components_1 = __importStar(require("@xstyled/styled-components"));
|
|
35
|
+
var system_1 = require("@xstyled/system");
|
|
36
|
+
var Button_1 = require("../../Elements/Button");
|
|
37
|
+
var CommonGrid_1 = __importDefault(require("./CommonGrid"));
|
|
38
|
+
exports.BottomWrapper = (0, styled_components_1.default)(styled_components_1.x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding-bottom: 11px;\n padding-top: 10px;\n position: ", ";\n bottom: 0;\n left: 0;\n width: 100%;\n background-color: ", ";\n @media (min-width: 1024px) {\n position: relative;\n padding-bottom: 11px;\n margin-bottom: 0;\n }\n & > * {\n @media (min-width: 1024px) {\n justify-content: flex-end;\n }\n }\n"], ["\n padding-bottom: 11px;\n padding-top: 10px;\n position: ", ";\n bottom: 0;\n left: 0;\n width: 100%;\n background-color: ", ";\n @media (min-width: 1024px) {\n position: relative;\n padding-bottom: 11px;\n margin-bottom: 0;\n }\n & > * {\n @media (min-width: 1024px) {\n justify-content: flex-end;\n }\n }\n"])), function (_a) {
|
|
10
39
|
var isFixed = _a.isFixed;
|
|
11
40
|
return (isFixed ? 'fixed' : 'relative');
|
|
12
41
|
}, function (_a) {
|
|
13
42
|
var isFixed = _a.isFixed, theme = _a.theme;
|
|
14
43
|
return (isFixed ? theme.colors.bgLightGray : 'transparent');
|
|
15
44
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
45
|
+
exports.ContentContainer = (0, styled_components_1.default)(styled_components_1.x.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: white;\n box-shadow: gridShadow;\n border-radius: 8px;\n flex-grow: 1;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: white;\n box-shadow: gridShadow;\n border-radius: 8px;\n flex-grow: 1;\n"])));
|
|
46
|
+
exports.CommonGridWrap = (0, styled_components_1.default)(styled_components_1.x.div)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-grow: 1;\n"], ["\n flex-grow: 1;\n"])));
|
|
47
|
+
exports.StyledButtonStrip = (0, styled_components_1.default)(styled_components_1.x.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n z-index: 2;\n border-bottom: 0.5px solid ", ";\n"], ["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n flex-wrap: wrap;\n z-index: 2;\n border-bottom: 0.5px solid ", ";\n"])), (0, system_1.th)('colors.lightGray6'));
|
|
48
|
+
exports.StyledColumnButton = (0, styled_components_1.default)(Button_1.Button)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: sticky;\n right: 20px;\n > span > svg {\n stroke: ", ";\n width: 18px;\n height: 18px;\n }\n > span > H6 {\n display: none;\n }\n @media (min-width: 1024px) {\n > span > H6 {\n display: flex;\n margin-left: 5px;\n }\n }\n"], ["\n position: sticky;\n right: 20px;\n > span > svg {\n stroke: ", ";\n width: 18px;\n height: 18px;\n }\n > span > H6 {\n display: none;\n }\n @media (min-width: 1024px) {\n > span > H6 {\n display: flex;\n margin-left: 5px;\n }\n }\n"])), (0, system_1.th)('colors.blue2'));
|
|
49
|
+
exports.CommonGridWithStyles = (0, styled_components_1.default)(CommonGrid_1.default)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: 40px;\n }\n & .gridHead {\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 1;\n padding-left: 20px;\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n position: relative;\n }\n & .sticky {\n background-color: #fafbfc;\n }\n }\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n & .sticky {\n background-color: #fafbfc;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n & .body {\n margin: 0 1px 1px 1px; // matching margin with .gridHead\n padding-left: 20px;\n flex-grow: 1;\n }\n & .gridWrapper {\n background-color: ", ";\n width: ", ";\n padding-bottom: ", ";\n\n @media (min-width: 1024px) {\n height: ", ";\n width: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 2px;\n padding-right: 2px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n & .sticky {\n background-color: #fff;\n :hover {\n background-color: #fdf4f3;\n }\n }\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &.selected,\n &.selected > .sticky {\n background-color: #fdf4f3;\n }\n\n :hover {\n background-color: #fdf4f3;\n\n .sticky {\n background-color: #fdf4f3;\n }\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n max-width: 88px;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: 40px;\n }\n & .gridHead {\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 1;\n padding-left: 20px;\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n position: relative;\n }\n & .sticky {\n background-color: #fafbfc;\n }\n }\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n & .sticky {\n background-color: #fafbfc;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n & .body {\n margin: 0 1px 1px 1px; // matching margin with .gridHead\n padding-left: 20px;\n flex-grow: 1;\n }\n & .gridWrapper {\n background-color: ", ";\n width: ", ";\n padding-bottom: ", ";\n\n @media (min-width: 1024px) {\n height: ", ";\n width: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 2px;\n padding-right: 2px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n & .sticky {\n background-color: #fff;\n :hover {\n background-color: #fdf4f3;\n }\n }\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &.selected,\n &.selected > .sticky {\n background-color: #fdf4f3;\n }\n\n :hover {\n background-color: #fdf4f3;\n\n .sticky {\n background-color: #fdf4f3;\n }\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n max-width: 88px;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), (0, system_1.th)('fonts.primary'), (0, system_1.th)('fonts.primary'), function (_a) {
|
|
21
50
|
var theme = _a.theme;
|
|
22
51
|
return theme.colors.white;
|
|
23
52
|
}, function (_a) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var react_1 = require("@lingui/react");
|
|
3
5
|
/** catalog for lungui to track commonGrid translations - DO NOT REMOVE */
|
|
4
6
|
var Translations = function () {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.status.loadingData", message: "... loading data ..." }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.status.noDataFound", message: "No data found." }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.buttonClearSettings", message: "Reset filters" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.buttonClearConfig", message: "Reset config" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.buttonGridConfig", message: "Configure columns" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.config.title", message: "Configure columns" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.config.buttonReset", message: "Reset all" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.resultsPerPage", message: "Results per page" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "manageColumn.title", message: "Manage column" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.buttonClearSettings", message: "Reset filters" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "form.buttonCancel", message: "Cancel" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "form.buttonConfirm", message: "Confirm" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.actionOptions.createNew", message: "Create new" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "form.buttonImport", message: "Import" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.actionOptions.export", message: "Export" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "form.buttonConfirm", message: "Confirm" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.actionOptions.createNew", message: "Create new" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.checkAll", message: "Check all" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "datagrid.filterCell.selectAllLabel", message: "select all" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "datagrid.filterCell.optionsSelectedLabel", message: '{count} options' }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.deleteItem", message: "Delete" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.columnLot.NA", message: "N/A" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.buttonActions", message: "Actions" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.errors.ipValidationError", message: "Value is not valid ip" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.columnActive.filterOptions.all", message: "All" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.columnActive.filterOptions.yes", message: "Yes" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.columnActive.filterOptions.no", message: "No" }), (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "products.eshopFilterPlaceholder", message: "Select eshop..." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.checkedRowsCount", message: "Selected {checkedRowsCount} items" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.filterCell", message: "Type to filter" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.filterCell.from", message: "From" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.filterCell.to", message: "To" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "manageColumn.searchPlaceholder", message: "Find column..." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.equals", message: "Equals" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.notEquals", message: "Not equal" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.lessThan", message: "Less than" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.lessThanOrEquals", message: "Less than or equals" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.greaterThan", message: "Greater than" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.greaterThanOrEquals", message: "Greater than or equal" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.contains", message: "Contains" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.notContains", message: "Not contains" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.startsWith", message: "Starts with'" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "dataGrid.comparator.endsWith", message: "Ends with" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "select.noOptions", message: "no options" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.loading", message: "Loading..." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.placeholder", message: "Select..." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.notReact", message: "Select related values first..." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.writeMoreChars", message: "Write at least ${asyncLoadMinChars} characters." }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.noOptions", message: "No options" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "components.dropdown.newOption", message: "new value" }), ",", (0, jsx_runtime_1.jsx)(react_1.Trans, { id: "form.general.min2Chars", message: "Minimal length is 2 characters." }), ","] }));
|
|
6
8
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExtraControlButtonPosition = exports.rowClassSymbol = void 0;
|
|
4
|
+
exports.rowClassSymbol = Symbol();
|
|
5
|
+
var ExtraControlButtonPosition;
|
|
3
6
|
(function (ExtraControlButtonPosition) {
|
|
4
7
|
ExtraControlButtonPosition["TopLeft"] = "top-left";
|
|
5
8
|
ExtraControlButtonPosition["TopRight"] = "top-right";
|
|
6
9
|
ExtraControlButtonPosition["BottomLeft"] = "bottom-left";
|
|
7
10
|
ExtraControlButtonPosition["BottomRight"] = "bottom-right";
|
|
8
|
-
})(ExtraControlButtonPosition || (ExtraControlButtonPosition = {}));
|
|
11
|
+
})(ExtraControlButtonPosition || (exports.ExtraControlButtonPosition = ExtraControlButtonPosition = {}));
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getFilters = exports.rowHeight = exports.GRID_MIN_ROWS = exports.getStickyCollClassNames = exports.getGroupClassNames = exports.getGroups = exports.createFilterType = exports.calculatePaginator = exports.isColumnOn = exports.getFilterName = exports.getSortName = exports.getCellSizeProps = exports.getActionCellSizeProps = void 0;
|
|
7
|
+
var NumberRange_1 = __importDefault(require("../components/NumberRange"));
|
|
8
|
+
var TextRange_1 = __importDefault(require("../components/TextRange"));
|
|
9
|
+
var DatePickerRange_1 = __importDefault(require("../components/DatePickerRange"));
|
|
10
|
+
var BooleanSelect_1 = __importDefault(require("../components/BooleanSelect"));
|
|
11
|
+
var GridSelect_1 = __importDefault(require("../components/GridSelect"));
|
|
6
12
|
var isDefined = function (val) { return typeof val !== 'undefined'; };
|
|
7
|
-
|
|
13
|
+
var getActionCellSizeProps = function (column) {
|
|
8
14
|
return {
|
|
9
15
|
flexBasis: column.flexBasis,
|
|
10
16
|
flexGrow: 0,
|
|
11
17
|
flexShrink: 0,
|
|
12
18
|
};
|
|
13
19
|
};
|
|
14
|
-
|
|
20
|
+
exports.getActionCellSizeProps = getActionCellSizeProps;
|
|
21
|
+
var getCellSizeProps = function (column, columnWidth) {
|
|
15
22
|
if (!column)
|
|
16
23
|
return {};
|
|
17
24
|
var fixedSize = column.fixedSize, flexGrow = column.flexGrow, flexShrink = column.flexShrink, sticky = column.sticky;
|
|
@@ -22,13 +29,16 @@ export var getCellSizeProps = function (column, columnWidth) {
|
|
|
22
29
|
maxWidth: sticky ? columnWidth : 'auto',
|
|
23
30
|
};
|
|
24
31
|
};
|
|
25
|
-
|
|
32
|
+
exports.getCellSizeProps = getCellSizeProps;
|
|
33
|
+
var getSortName = function (column) {
|
|
26
34
|
return column.systemName || column.name;
|
|
27
35
|
};
|
|
28
|
-
|
|
36
|
+
exports.getSortName = getSortName;
|
|
37
|
+
var getFilterName = function (column) {
|
|
29
38
|
return column.systemFilter || column.systemName || column.name;
|
|
30
39
|
};
|
|
31
|
-
|
|
40
|
+
exports.getFilterName = getFilterName;
|
|
41
|
+
var isColumnOn = function (column, columnConfig) {
|
|
32
42
|
var _a;
|
|
33
43
|
if (column.alwaysOn)
|
|
34
44
|
return true;
|
|
@@ -37,17 +47,20 @@ export var isColumnOn = function (column, columnConfig) {
|
|
|
37
47
|
return !isHidden; // isHidden is defined/stored => use user value
|
|
38
48
|
return !column.defaultHidden; // isHidden is undefined => use default value
|
|
39
49
|
};
|
|
40
|
-
|
|
50
|
+
exports.isColumnOn = isColumnOn;
|
|
51
|
+
var calculatePaginator = function (page, rowsPerPage) { return ({
|
|
41
52
|
offset: rowsPerPage ? rowsPerPage * (page - 1) : rowsPerPage,
|
|
42
53
|
limit: rowsPerPage,
|
|
43
54
|
}); };
|
|
44
|
-
|
|
55
|
+
exports.calculatePaginator = calculatePaginator;
|
|
56
|
+
var createFilterType = function (columnDefinition) {
|
|
45
57
|
if (columnDefinition.filterOptions)
|
|
46
58
|
return 'options';
|
|
47
59
|
else
|
|
48
60
|
return columnDefinition.filteringType || 'text';
|
|
49
61
|
};
|
|
50
|
-
|
|
62
|
+
exports.createFilterType = createFilterType;
|
|
63
|
+
var getGroups = function (columns) {
|
|
51
64
|
return columns.map(function (column, key) {
|
|
52
65
|
var previousGroup = key > 0 && columns[key - 1].group;
|
|
53
66
|
return {
|
|
@@ -57,23 +70,27 @@ export var getGroups = function (columns) {
|
|
|
57
70
|
};
|
|
58
71
|
});
|
|
59
72
|
};
|
|
60
|
-
|
|
73
|
+
exports.getGroups = getGroups;
|
|
74
|
+
var getGroupClassNames = function (group) {
|
|
61
75
|
return "".concat((group === null || group === void 0 ? void 0 : group.start) ? 'group-start' : '', " ").concat((group === null || group === void 0 ? void 0 : group.end) ? 'group-end' : '');
|
|
62
76
|
};
|
|
63
|
-
|
|
77
|
+
exports.getGroupClassNames = getGroupClassNames;
|
|
78
|
+
var getStickyCollClassNames = function (sticky, stickTo) {
|
|
64
79
|
return !sticky ? '' : "".concat(stickTo ? " sticky sticky-".concat(stickTo) : ' sticky sticky-left');
|
|
65
80
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
exports.getStickyCollClassNames = getStickyCollClassNames;
|
|
82
|
+
exports.GRID_MIN_ROWS = 6;
|
|
83
|
+
exports.rowHeight = 40;
|
|
84
|
+
var getFilters = function (optimizeFilters) {
|
|
69
85
|
var filters = {
|
|
70
|
-
number: { CellComponent:
|
|
71
|
-
text: { CellComponent:
|
|
72
|
-
date: { CellComponent:
|
|
73
|
-
flag: { CellComponent:
|
|
74
|
-
options: { CellComponent:
|
|
86
|
+
number: { CellComponent: NumberRange_1.default },
|
|
87
|
+
text: { CellComponent: TextRange_1.default },
|
|
88
|
+
date: { CellComponent: DatePickerRange_1.default },
|
|
89
|
+
flag: { CellComponent: BooleanSelect_1.default },
|
|
90
|
+
options: { CellComponent: GridSelect_1.default },
|
|
75
91
|
};
|
|
76
92
|
if (optimizeFilters)
|
|
77
93
|
filters.text.defaultExtraProps = { defaultComparator: 'eq' };
|
|
78
94
|
return filters;
|
|
79
95
|
};
|
|
96
|
+
exports.getFilters = getFilters;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CornerDialog = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var utils_1 = require("./utils");
|
|
7
|
+
var Portal_1 = require("../../Elements/Portal");
|
|
8
|
+
var Icon_1 = require("../../Elements/Icon");
|
|
9
|
+
var styles_1 = require("./styles");
|
|
10
|
+
var CornerDialog = function (_a) {
|
|
8
11
|
var title = _a.title, children = _a.children, onClose = _a.onClose, statusToTitle = _a.statusToTitle, _b = _a.isOpen, isOpen = _b === void 0 ? true : _b, _intent = _a.intent;
|
|
9
|
-
var _c = useState(false), isMounted = _c[0], setIsMounted = _c[1];
|
|
10
|
-
useEffect(function () {
|
|
12
|
+
var _c = (0, react_1.useState)(false), isMounted = _c[0], setIsMounted = _c[1];
|
|
13
|
+
(0, react_1.useEffect)(function () {
|
|
11
14
|
setIsMounted(true);
|
|
12
15
|
}, []);
|
|
13
16
|
var intent = _intent !== null && _intent !== void 0 ? _intent : 'info';
|
|
14
|
-
var _d = statusToColors[intent], fontColor = _d.fontColor, backgroundColor = _d.backgroundColor, fill = _d.fill;
|
|
17
|
+
var _d = utils_1.statusToColors[intent], fontColor = _d.fontColor, backgroundColor = _d.backgroundColor, fill = _d.fill;
|
|
15
18
|
if (!isOpen)
|
|
16
19
|
return null;
|
|
17
|
-
return (
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(Portal_1.Portal, { children: (0, jsx_runtime_1.jsxs)(styles_1.Container, { "$mounted": isMounted, children: [(0, jsx_runtime_1.jsxs)(styles_1.Status, { background: backgroundColor, children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: utils_1.statusToIcon[intent], fill: fill }), (0, jsx_runtime_1.jsx)(styles_1.StatusText, { fontColor: fontColor, children: statusToTitle[intent]() })] }), (0, jsx_runtime_1.jsx)(styles_1.Header, { children: title }), (0, jsx_runtime_1.jsx)(styles_1.CloseBtn, { onClick: onClose, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { icon: "close", size: "25px" }) }), (0, jsx_runtime_1.jsx)(styles_1.Wrapper, { children: children })] }) }));
|
|
18
21
|
};
|
|
22
|
+
exports.CornerDialog = CornerDialog;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WarningCornerDialog = exports.ErrorCornerDialog = exports.SuccessCornerDialog = exports.InfoCornerDialog = void 0;
|
|
4
|
+
var CornerDialog_1 = require("../CornerDialog");
|
|
2
5
|
var meta = {
|
|
3
6
|
title: 'Blocks/CornerDialog',
|
|
4
|
-
component: CornerDialog,
|
|
7
|
+
component: CornerDialog_1.CornerDialog,
|
|
5
8
|
tags: ['autodocs'],
|
|
6
9
|
argTypes: {},
|
|
7
10
|
};
|
|
8
|
-
|
|
11
|
+
exports.default = meta;
|
|
9
12
|
var statusToTitle = {
|
|
10
13
|
info: function () { return 'Info'; },
|
|
11
14
|
success: function () { return 'Success'; },
|
|
12
15
|
error: function () { return 'Error'; },
|
|
13
16
|
warning: function () { return 'Warning'; },
|
|
14
17
|
};
|
|
15
|
-
|
|
18
|
+
exports.InfoCornerDialog = {
|
|
16
19
|
args: {
|
|
17
20
|
title: 'Info Title',
|
|
18
21
|
children: 'Info corner dialog content',
|
|
@@ -21,7 +24,7 @@ export var InfoCornerDialog = {
|
|
|
21
24
|
isOpen: true,
|
|
22
25
|
},
|
|
23
26
|
};
|
|
24
|
-
|
|
27
|
+
exports.SuccessCornerDialog = {
|
|
25
28
|
args: {
|
|
26
29
|
title: 'Success Title',
|
|
27
30
|
children: 'Success corner dialog content',
|
|
@@ -30,7 +33,7 @@ export var SuccessCornerDialog = {
|
|
|
30
33
|
isOpen: true,
|
|
31
34
|
},
|
|
32
35
|
};
|
|
33
|
-
|
|
36
|
+
exports.ErrorCornerDialog = {
|
|
34
37
|
args: {
|
|
35
38
|
title: 'Error Title',
|
|
36
39
|
children: 'Error corner dialog content',
|
|
@@ -39,7 +42,7 @@ export var ErrorCornerDialog = {
|
|
|
39
42
|
isOpen: true,
|
|
40
43
|
},
|
|
41
44
|
};
|
|
42
|
-
|
|
45
|
+
exports.WarningCornerDialog = {
|
|
43
46
|
args: {
|
|
44
47
|
title: 'Warning Title',
|
|
45
48
|
children: 'Warning corner dialog content',
|