@salutejs/sdds-cs 0.319.0-canary.1973.15679545656.0 → 0.319.0-canary.1973.15850054289.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/components/Accordion/Accordion.config.js +101 -19
- package/components/Accordion/Accordion.js +18 -12
- package/components/Accordion/index.js +15 -14
- package/components/Attach/Attach.config.js +267 -26
- package/components/Attach/Attach.js +11 -11
- package/components/Attach/index.js +6 -7
- package/components/Autocomplete/Autocomplete.config.js +247 -30
- package/components/Autocomplete/Autocomplete.js +11 -7
- package/components/Autocomplete/index.js +6 -7
- package/components/Avatar/Avatar.config.js +197 -31
- package/components/Avatar/Avatar.js +19 -7
- package/components/Avatar/index.js +6 -7
- package/components/AvatarGroup/AvatarGroup.js +10 -6
- package/components/AvatarGroup/index.js +6 -7
- package/components/Badge/Badge.config.js +145 -30
- package/components/Badge/Badge.js +11 -11
- package/components/Badge/index.js +6 -7
- package/components/Breadcrumbs/Breadcrumbs.config.js +60 -18
- package/components/Breadcrumbs/Breadcrumbs.js +12 -12
- package/components/Breadcrumbs/index.js +6 -7
- package/components/Button/Button.config.js +174 -30
- package/components/Button/Button.js +146 -41
- package/components/Button/index.js +6 -7
- package/components/ButtonBase/index.js +6 -7
- package/components/ButtonGroup/ButtonGroup.config.js +228 -38
- package/components/ButtonGroup/ButtonGroup.js +11 -11
- package/components/ButtonGroup/index.js +6 -7
- package/components/Calendar/Calendar.js +39 -18
- package/components/Calendar/CalendarBase.config.js +128 -18
- package/components/Calendar/CalendarDouble.config.js +128 -18
- package/components/Calendar/index.js +24 -32
- package/components/Card/Card.config.js +81 -20
- package/components/Card/Card.js +22 -23
- package/components/Card/index.js +18 -20
- package/components/Carousel/Carousel.config.d.ts +14 -0
- package/components/Carousel/Carousel.config.js +62 -0
- package/components/Carousel/Carousel.d.ts +9 -0
- package/components/Carousel/Carousel.js +14 -0
- package/components/Carousel/index.d.ts +2 -0
- package/components/Carousel/index.js +20 -0
- package/components/Cell/Cell.config.js +110 -16
- package/components/Cell/Cell.js +12 -12
- package/components/Cell/index.js +25 -33
- package/components/Checkbox/Checkbox.config.js +104 -25
- package/components/Checkbox/Checkbox.js +12 -11
- package/components/Checkbox/index.js +6 -7
- package/components/Chip/Chip.config.js +162 -25
- package/components/Chip/Chip.js +12 -12
- package/components/Chip/index.js +6 -7
- package/components/ChipGroup/ChipGroup.config.js +127 -24
- package/components/ChipGroup/ChipGroup.js +11 -7
- package/components/ChipGroup/index.js +6 -7
- package/components/Combobox/Combobox.config.js +313 -30
- package/components/Combobox/Combobox.d.ts +24 -24
- package/components/Combobox/Combobox.js +50 -15
- package/components/Combobox/index.js +6 -7
- package/components/Counter/Counter.config.js +95 -21
- package/components/Counter/Counter.js +11 -11
- package/components/Counter/index.js +16 -15
- package/components/DatePicker/DatePicker.config.js +264 -24
- package/components/DatePicker/DatePicker.js +21 -9
- package/components/DatePicker/index.js +22 -27
- package/components/Divider/Divider.config.js +109 -27
- package/components/Divider/Divider.js +11 -11
- package/components/Divider/index.js +16 -15
- package/components/Drawer/Drawer.config.js +79 -22
- package/components/Drawer/Drawer.js +31 -29
- package/components/Drawer/index.js +21 -26
- package/components/Dropdown/Dropdown.config.js +94 -18
- package/components/Dropdown/Dropdown.js +50 -15
- package/components/Dropdown/index.js +6 -7
- package/components/Dropzone/Dropzone.config.js +86 -21
- package/components/Dropzone/Dropzone.js +11 -7
- package/components/Dropzone/index.js +19 -21
- package/components/EmptyState/EmptyState.config.js +114 -18
- package/components/EmptyState/EmptyState.js +19 -7
- package/components/EmptyState/index.js +6 -7
- package/components/Flow/Flow.config.js +11 -7
- package/components/Flow/Flow.js +11 -7
- package/components/Flow/index.js +6 -7
- package/components/Grid/Grid.config.js +71 -19
- package/components/Grid/Grid.js +21 -18
- package/components/Grid/index.js +18 -20
- package/components/IconButton/IconButton.config.js +146 -28
- package/components/IconButton/IconButton.js +12 -12
- package/components/IconButton/index.js +6 -7
- package/components/Image/Image.js +11 -11
- package/components/Image/index.js +6 -7
- package/components/Indicator/Indicator.config.js +138 -26
- package/components/Indicator/Indicator.js +19 -7
- package/components/Indicator/index.js +6 -7
- package/components/Link/Link.config.js +214 -29
- package/components/Link/Link.js +12 -11
- package/components/Link/index.js +6 -7
- package/components/Mask/Mask.js +10 -6
- package/components/Mask/index.js +6 -7
- package/components/Modal/Modal.config.js +47 -15
- package/components/Modal/Modal.js +12 -12
- package/components/Modal/index.js +16 -15
- package/components/Notification/Notification.config.js +163 -26
- package/components/Notification/Notification.js +38 -23
- package/components/Notification/index.js +22 -27
- package/components/NumberFormat/NumberFormat.js +10 -13
- package/components/NumberFormat/index.js +6 -7
- package/components/NumberInput/NumberInput.config.js +154 -34
- package/components/NumberInput/NumberInput.js +11 -7
- package/components/NumberInput/index.js +19 -21
- package/components/Overlay/index.js +6 -7
- package/components/Pagination/Pagination.config.js +139 -26
- package/components/Pagination/Pagination.js +12 -12
- package/components/Pagination/index.js +6 -7
- package/components/Popover/Popover.config.js +43 -15
- package/components/Popover/Popover.js +11 -7
- package/components/Popover/index.js +6 -7
- package/components/Popup/Popup.js +10 -10
- package/components/Popup/index.js +22 -27
- package/components/Portal/index.js +6 -7
- package/components/Price/Price.config.js +15 -11
- package/components/Price/Price.js +12 -12
- package/components/Price/index.js +16 -15
- package/components/Progress/Progress.config.js +95 -21
- package/components/Progress/Progress.js +12 -8
- package/components/Progress/index.js +6 -7
- package/components/Radiobox/Radiobox.config.js +106 -31
- package/components/Radiobox/Radiobox.d.ts +2 -28
- package/components/Radiobox/Radiobox.js +19 -16
- package/components/Radiobox/index.js +15 -14
- package/components/Range/Range.config.js +157 -24
- package/components/Range/Range.js +11 -11
- package/components/Range/index.js +16 -15
- package/components/Rating/Rating.config.js +117 -20
- package/components/Rating/Rating.js +11 -7
- package/components/Rating/index.js +19 -21
- package/components/SSRProvider/index.js +6 -7
- package/components/Segment/Segment.js +27 -32
- package/components/Segment/SegmentGroup.config.js +130 -34
- package/components/Segment/SegmentItem.config.js +124 -25
- package/components/Segment/index.js +21 -26
- package/components/Select/Select.config.js +305 -35
- package/components/Select/Select.d.ts +6 -6
- package/components/Select/Select.js +50 -15
- package/components/Select/index.js +6 -7
- package/components/Sheet/Sheet.config.js +63 -18
- package/components/Sheet/Sheet.js +12 -12
- package/components/Sheet/index.js +16 -15
- package/components/Skeleton/LineSkeleton.config.js +230 -31
- package/components/Skeleton/Skeleton.js +25 -20
- package/components/Skeleton/index.js +21 -26
- package/components/Slider/Slider.config.js +147 -22
- package/components/Slider/Slider.js +12 -13
- package/components/Slider/index.js +6 -7
- package/components/Spinner/Spinner.config.js +107 -23
- package/components/Spinner/Spinner.js +23 -15
- package/components/Spinner/index.js +6 -7
- package/components/Steps/Steps.config.js +105 -18
- package/components/Steps/Steps.js +12 -8
- package/components/Steps/index.js +6 -7
- package/components/Switch/Switch.config.js +149 -31
- package/components/Switch/Switch.js +12 -8
- package/components/Switch/index.js +6 -7
- package/components/Table/Table.config.js +257 -21
- package/components/Table/Table.js +12 -12
- package/components/Table/index.js +6 -7
- package/components/Tabs/TabItem.js +26 -21
- package/components/Tabs/Tabs.js +26 -21
- package/components/Tabs/TabsController.js +15 -16
- package/components/Tabs/horizontal/HorizontalTabItem.config.js +230 -30
- package/components/Tabs/horizontal/HorizontalTabs.config.js +266 -37
- package/components/Tabs/index.js +27 -35
- package/components/Tabs/vertical/VerticalTabItem.config.js +125 -24
- package/components/Tabs/vertical/VerticalTabs.config.js +98 -24
- package/components/TextArea/TextArea.config.js +367 -42
- package/components/TextArea/TextArea.js +12 -12
- package/components/TextArea/index.js +6 -7
- package/components/TextField/TextField.config.js +338 -40
- package/components/TextField/TextField.js +11 -11
- package/components/TextField/index.js +16 -15
- package/components/Toast/Toast.config.js +127 -35
- package/components/Toast/Toast.js +26 -14
- package/components/Toast/index.js +18 -20
- package/components/ToastNew/ToastNew.config.js +80 -21
- package/components/ToastNew/ToastNew.js +20 -8
- package/components/ToastNew/index.js +15 -14
- package/components/Tokens/Colors/Colors.styles.d.ts +1 -1
- package/components/Tokens/Colors/Colors.styles.js +147 -51
- package/components/Tokens/NumberTokens/NumberTokens.styles.js +70 -23
- package/components/Tokens/Typography/Typography.styles.d.ts +1 -1
- package/components/Tokens/Typography/Typography.styles.js +204 -76
- package/components/Toolbar/Toolbar.config.js +57 -18
- package/components/Toolbar/Toolbar.js +21 -13
- package/components/Toolbar/index.js +19 -21
- package/components/Tooltip/Tooltip.config.js +71 -19
- package/components/Tooltip/Tooltip.js +11 -7
- package/components/Tooltip/index.js +6 -7
- package/components/Tree/Tree.config.js +83 -18
- package/components/Tree/Tree.js +11 -7
- package/components/Tree/index.js +6 -7
- package/components/Typography/Body.config.js +161 -47
- package/components/Typography/Dspl.config.js +105 -31
- package/components/Typography/Heading.config.js +161 -47
- package/components/Typography/Text.config.js +133 -39
- package/components/Typography/Typography.js +116 -59
- package/components/Typography/index.js +62 -106
- package/components/ViewContainer/ViewContainer.config.js +46 -14
- package/components/ViewContainer/ViewContainer.js +11 -7
- package/components/ViewContainer/index.js +6 -7
- package/emotion/cjs/components/Accordion/Accordion.config.js +101 -19
- package/emotion/cjs/components/Accordion/Accordion.js +18 -12
- package/emotion/cjs/components/Accordion/index.js +15 -14
- package/emotion/cjs/components/Attach/Attach.config.js +267 -26
- package/emotion/cjs/components/Attach/Attach.js +11 -11
- package/emotion/cjs/components/Attach/index.js +6 -7
- package/emotion/cjs/components/Autocomplete/Autocomplete.config.js +247 -30
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +11 -7
- package/emotion/cjs/components/Autocomplete/index.js +6 -7
- package/emotion/cjs/components/Avatar/Avatar.config.js +197 -31
- package/emotion/cjs/components/Avatar/Avatar.js +19 -7
- package/emotion/cjs/components/Avatar/index.js +6 -7
- package/emotion/cjs/components/AvatarGroup/AvatarGroup.js +10 -6
- package/emotion/cjs/components/AvatarGroup/index.js +6 -7
- package/emotion/cjs/components/Badge/Badge.config.js +145 -30
- package/emotion/cjs/components/Badge/Badge.js +11 -11
- package/emotion/cjs/components/Badge/index.js +6 -7
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +60 -18
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +12 -12
- package/emotion/cjs/components/Breadcrumbs/index.js +6 -7
- package/emotion/cjs/components/Button/Button.config.js +174 -30
- package/emotion/cjs/components/Button/Button.js +146 -41
- package/emotion/cjs/components/Button/index.js +6 -7
- package/emotion/cjs/components/ButtonBase/index.js +6 -7
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +228 -38
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.js +11 -11
- package/emotion/cjs/components/ButtonGroup/index.js +6 -7
- package/emotion/cjs/components/Calendar/Calendar.js +39 -18
- package/emotion/cjs/components/Calendar/CalendarBase.config.js +128 -18
- package/emotion/cjs/components/Calendar/CalendarDouble.config.js +128 -18
- package/emotion/cjs/components/Calendar/index.js +24 -32
- package/emotion/cjs/components/Card/Card.config.js +81 -20
- package/emotion/cjs/components/Card/Card.js +22 -23
- package/emotion/cjs/components/Card/index.js +18 -20
- package/emotion/cjs/components/Carousel/Carousel.config.js +62 -0
- package/emotion/cjs/components/Carousel/Carousel.js +14 -0
- package/emotion/cjs/components/Carousel/index.js +20 -0
- package/emotion/cjs/components/Cell/Cell.config.js +110 -16
- package/emotion/cjs/components/Cell/Cell.js +12 -12
- package/emotion/cjs/components/Cell/index.js +25 -33
- package/emotion/cjs/components/Checkbox/Checkbox.config.js +104 -25
- package/emotion/cjs/components/Checkbox/Checkbox.js +12 -11
- package/emotion/cjs/components/Checkbox/index.js +6 -7
- package/emotion/cjs/components/Chip/Chip.config.js +162 -25
- package/emotion/cjs/components/Chip/Chip.js +12 -12
- package/emotion/cjs/components/Chip/index.js +6 -7
- package/emotion/cjs/components/ChipGroup/ChipGroup.config.js +127 -24
- package/emotion/cjs/components/ChipGroup/ChipGroup.js +11 -7
- package/emotion/cjs/components/ChipGroup/index.js +6 -7
- package/emotion/cjs/components/Combobox/Combobox.config.js +313 -30
- package/emotion/cjs/components/Combobox/Combobox.js +50 -15
- package/emotion/cjs/components/Combobox/index.js +6 -7
- package/emotion/cjs/components/Counter/Counter.config.js +95 -21
- package/emotion/cjs/components/Counter/Counter.js +11 -11
- package/emotion/cjs/components/Counter/index.js +16 -15
- package/emotion/cjs/components/DatePicker/DatePicker.config.js +264 -24
- package/emotion/cjs/components/DatePicker/DatePicker.js +21 -9
- package/emotion/cjs/components/DatePicker/index.js +22 -27
- package/emotion/cjs/components/Divider/Divider.config.js +109 -27
- package/emotion/cjs/components/Divider/Divider.js +11 -11
- package/emotion/cjs/components/Divider/index.js +16 -15
- package/emotion/cjs/components/Drawer/Drawer.config.js +79 -22
- package/emotion/cjs/components/Drawer/Drawer.js +31 -29
- package/emotion/cjs/components/Drawer/index.js +21 -26
- package/emotion/cjs/components/Dropdown/Dropdown.config.js +94 -18
- package/emotion/cjs/components/Dropdown/Dropdown.js +50 -15
- package/emotion/cjs/components/Dropdown/index.js +6 -7
- package/emotion/cjs/components/Dropzone/Dropzone.config.js +86 -21
- package/emotion/cjs/components/Dropzone/Dropzone.js +11 -7
- package/emotion/cjs/components/Dropzone/index.js +19 -21
- package/emotion/cjs/components/EmptyState/EmptyState.config.js +114 -18
- package/emotion/cjs/components/EmptyState/EmptyState.js +19 -7
- package/emotion/cjs/components/EmptyState/index.js +6 -7
- package/emotion/cjs/components/Flow/Flow.config.js +11 -7
- package/emotion/cjs/components/Flow/Flow.js +11 -7
- package/emotion/cjs/components/Flow/index.js +6 -7
- package/emotion/cjs/components/Grid/Grid.config.js +71 -19
- package/emotion/cjs/components/Grid/Grid.js +21 -18
- package/emotion/cjs/components/Grid/index.js +18 -20
- package/emotion/cjs/components/IconButton/IconButton.config.js +146 -28
- package/emotion/cjs/components/IconButton/IconButton.js +12 -12
- package/emotion/cjs/components/IconButton/index.js +6 -7
- package/emotion/cjs/components/Image/Image.js +11 -11
- package/emotion/cjs/components/Image/index.js +6 -7
- package/emotion/cjs/components/Indicator/Indicator.config.js +138 -26
- package/emotion/cjs/components/Indicator/Indicator.js +19 -7
- package/emotion/cjs/components/Indicator/index.js +6 -7
- package/emotion/cjs/components/Link/Link.config.js +214 -29
- package/emotion/cjs/components/Link/Link.js +12 -11
- package/emotion/cjs/components/Link/index.js +6 -7
- package/emotion/cjs/components/Mask/Mask.js +10 -6
- package/emotion/cjs/components/Mask/index.js +6 -7
- package/emotion/cjs/components/Modal/Modal.config.js +47 -15
- package/emotion/cjs/components/Modal/Modal.js +12 -12
- package/emotion/cjs/components/Modal/index.js +16 -15
- package/emotion/cjs/components/Notification/Notification.config.js +163 -26
- package/emotion/cjs/components/Notification/Notification.js +38 -23
- package/emotion/cjs/components/Notification/index.js +22 -27
- package/emotion/cjs/components/NumberFormat/NumberFormat.js +10 -13
- package/emotion/cjs/components/NumberFormat/index.js +6 -7
- package/emotion/cjs/components/NumberInput/NumberInput.config.js +154 -34
- package/emotion/cjs/components/NumberInput/NumberInput.js +11 -7
- package/emotion/cjs/components/NumberInput/index.js +19 -21
- package/emotion/cjs/components/Overlay/index.js +6 -7
- package/emotion/cjs/components/Pagination/Pagination.config.js +139 -26
- package/emotion/cjs/components/Pagination/Pagination.js +12 -12
- package/emotion/cjs/components/Pagination/index.js +6 -7
- package/emotion/cjs/components/Popover/Popover.config.js +43 -15
- package/emotion/cjs/components/Popover/Popover.js +11 -7
- package/emotion/cjs/components/Popover/index.js +6 -7
- package/emotion/cjs/components/Popup/Popup.js +10 -10
- package/emotion/cjs/components/Popup/index.js +22 -27
- package/emotion/cjs/components/Portal/index.js +6 -7
- package/emotion/cjs/components/Price/Price.config.js +15 -11
- package/emotion/cjs/components/Price/Price.js +12 -12
- package/emotion/cjs/components/Price/index.js +16 -15
- package/emotion/cjs/components/Progress/Progress.config.js +95 -21
- package/emotion/cjs/components/Progress/Progress.js +12 -8
- package/emotion/cjs/components/Progress/index.js +6 -7
- package/emotion/cjs/components/Radiobox/Radiobox.config.js +106 -31
- package/emotion/cjs/components/Radiobox/Radiobox.js +19 -16
- package/emotion/cjs/components/Radiobox/index.js +15 -14
- package/emotion/cjs/components/Range/Range.config.js +157 -24
- package/emotion/cjs/components/Range/Range.js +11 -11
- package/emotion/cjs/components/Range/index.js +16 -15
- package/emotion/cjs/components/Rating/Rating.config.js +117 -20
- package/emotion/cjs/components/Rating/Rating.js +11 -7
- package/emotion/cjs/components/Rating/index.js +19 -21
- package/emotion/cjs/components/SSRProvider/index.js +6 -7
- package/emotion/cjs/components/Segment/Segment.js +27 -32
- package/emotion/cjs/components/Segment/SegmentGroup.config.js +130 -34
- package/emotion/cjs/components/Segment/SegmentItem.config.js +124 -25
- package/emotion/cjs/components/Segment/index.js +21 -26
- package/emotion/cjs/components/Select/Select.config.js +305 -35
- package/emotion/cjs/components/Select/Select.js +50 -15
- package/emotion/cjs/components/Select/index.js +6 -7
- package/emotion/cjs/components/Sheet/Sheet.config.js +63 -18
- package/emotion/cjs/components/Sheet/Sheet.js +12 -12
- package/emotion/cjs/components/Sheet/index.js +16 -15
- package/emotion/cjs/components/Skeleton/LineSkeleton.config.js +230 -31
- package/emotion/cjs/components/Skeleton/Skeleton.js +25 -20
- package/emotion/cjs/components/Skeleton/index.js +21 -26
- package/emotion/cjs/components/Slider/Slider.config.js +147 -22
- package/emotion/cjs/components/Slider/Slider.js +12 -13
- package/emotion/cjs/components/Slider/index.js +6 -7
- package/emotion/cjs/components/Spinner/Spinner.config.js +107 -23
- package/emotion/cjs/components/Spinner/Spinner.js +23 -15
- package/emotion/cjs/components/Spinner/index.js +6 -7
- package/emotion/cjs/components/Steps/Steps.config.js +105 -18
- package/emotion/cjs/components/Steps/Steps.js +12 -8
- package/emotion/cjs/components/Steps/index.js +6 -7
- package/emotion/cjs/components/Switch/Switch.config.js +149 -31
- package/emotion/cjs/components/Switch/Switch.js +12 -8
- package/emotion/cjs/components/Switch/index.js +6 -7
- package/emotion/cjs/components/Table/Table.config.js +257 -21
- package/emotion/cjs/components/Table/Table.js +12 -12
- package/emotion/cjs/components/Table/index.js +6 -7
- package/emotion/cjs/components/Tabs/TabItem.js +26 -21
- package/emotion/cjs/components/Tabs/Tabs.js +26 -21
- package/emotion/cjs/components/Tabs/TabsController.js +15 -16
- package/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +230 -30
- package/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +266 -37
- package/emotion/cjs/components/Tabs/index.js +27 -35
- package/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +125 -24
- package/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +98 -24
- package/emotion/cjs/components/TextArea/TextArea.config.js +367 -42
- package/emotion/cjs/components/TextArea/TextArea.js +12 -12
- package/emotion/cjs/components/TextArea/index.js +6 -7
- package/emotion/cjs/components/TextField/TextField.config.js +338 -40
- package/emotion/cjs/components/TextField/TextField.js +11 -11
- package/emotion/cjs/components/TextField/index.js +16 -15
- package/emotion/cjs/components/Toast/Toast.config.js +127 -35
- package/emotion/cjs/components/Toast/Toast.js +26 -14
- package/emotion/cjs/components/Toast/index.js +18 -20
- package/emotion/cjs/components/ToastNew/ToastNew.config.js +80 -21
- package/emotion/cjs/components/ToastNew/ToastNew.js +20 -8
- package/emotion/cjs/components/ToastNew/index.js +15 -14
- package/emotion/cjs/components/Tokens/Colors/Colors.styles.js +147 -27
- package/emotion/cjs/components/Tokens/NumberTokens/NumberTokens.styles.js +70 -13
- package/emotion/cjs/components/Tokens/Typography/Typography.styles.js +204 -44
- package/emotion/cjs/components/Toolbar/Toolbar.config.js +57 -18
- package/emotion/cjs/components/Toolbar/Toolbar.js +21 -13
- package/emotion/cjs/components/Toolbar/index.js +19 -21
- package/emotion/cjs/components/Tooltip/Tooltip.config.js +71 -19
- package/emotion/cjs/components/Tooltip/Tooltip.js +11 -7
- package/emotion/cjs/components/Tooltip/index.js +6 -7
- package/emotion/cjs/components/Tree/Tree.config.js +83 -18
- package/emotion/cjs/components/Tree/Tree.js +11 -7
- package/emotion/cjs/components/Tree/index.js +6 -7
- package/emotion/cjs/components/Typography/Body.config.js +161 -47
- package/emotion/cjs/components/Typography/Dspl.config.js +105 -31
- package/emotion/cjs/components/Typography/Heading.config.js +161 -47
- package/emotion/cjs/components/Typography/Text.config.js +133 -39
- package/emotion/cjs/components/Typography/Typography.js +116 -59
- package/emotion/cjs/components/Typography/index.js +62 -106
- package/emotion/cjs/components/ViewContainer/ViewContainer.config.js +46 -14
- package/emotion/cjs/components/ViewContainer/ViewContainer.js +11 -7
- package/emotion/cjs/components/ViewContainer/index.js +6 -7
- package/emotion/cjs/helpers/index.js +25 -0
- package/emotion/cjs/index.js +82 -729
- package/emotion/cjs/mixins/index.js +61 -20
- package/emotion/cjs/tokens/index.js +126 -255
- package/emotion/es/components/Accordion/Accordion.config.js +92 -14
- package/emotion/es/components/Accordion/Accordion.js +3 -3
- package/emotion/es/components/Accordion/index.js +1 -1
- package/emotion/es/components/Attach/Attach.config.js +258 -21
- package/emotion/es/components/Attach/Attach.js +2 -4
- package/emotion/es/components/Attach/index.js +1 -1
- package/emotion/es/components/Autocomplete/Autocomplete.config.js +238 -25
- package/emotion/es/components/Autocomplete/Autocomplete.js +2 -2
- package/emotion/es/components/Autocomplete/index.js +1 -1
- package/emotion/es/components/Avatar/Avatar.config.js +188 -26
- package/emotion/es/components/Avatar/Avatar.js +3 -3
- package/emotion/es/components/Avatar/index.js +1 -1
- package/emotion/es/components/AvatarGroup/AvatarGroup.js +2 -2
- package/emotion/es/components/AvatarGroup/index.js +1 -1
- package/emotion/es/components/Badge/Badge.config.js +136 -25
- package/emotion/es/components/Badge/Badge.js +2 -4
- package/emotion/es/components/Badge/index.js +1 -1
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +51 -13
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.js +3 -5
- package/emotion/es/components/Breadcrumbs/index.js +1 -1
- package/emotion/es/components/Button/Button.config.js +165 -25
- package/emotion/es/components/Button/Button.js +89 -28
- package/emotion/es/components/Button/index.js +1 -1
- package/emotion/es/components/ButtonBase/index.js +1 -1
- package/emotion/es/components/ButtonGroup/ButtonGroup.config.js +219 -33
- package/emotion/es/components/ButtonGroup/ButtonGroup.js +2 -4
- package/emotion/es/components/ButtonGroup/index.js +1 -1
- package/emotion/es/components/Calendar/Calendar.js +12 -12
- package/emotion/es/components/Calendar/CalendarBase.config.js +119 -13
- package/emotion/es/components/Calendar/CalendarDouble.config.js +119 -13
- package/emotion/es/components/Calendar/index.js +1 -1
- package/emotion/es/components/Card/Card.config.js +72 -15
- package/emotion/es/components/Card/Card.js +4 -6
- package/emotion/es/components/Card/index.js +1 -1
- package/emotion/es/components/Carousel/Carousel.config.js +52 -0
- package/emotion/es/components/Carousel/Carousel.js +5 -0
- package/emotion/es/components/Carousel/index.js +2 -0
- package/emotion/es/components/Cell/Cell.config.js +101 -11
- package/emotion/es/components/Cell/Cell.js +3 -5
- package/emotion/es/components/Cell/index.js +1 -1
- package/emotion/es/components/Checkbox/Checkbox.config.js +95 -20
- package/emotion/es/components/Checkbox/Checkbox.js +3 -4
- package/emotion/es/components/Checkbox/index.js +1 -1
- package/emotion/es/components/Chip/Chip.config.js +153 -20
- package/emotion/es/components/Chip/Chip.js +3 -5
- package/emotion/es/components/Chip/index.js +1 -1
- package/emotion/es/components/ChipGroup/ChipGroup.config.js +118 -19
- package/emotion/es/components/ChipGroup/ChipGroup.js +2 -2
- package/emotion/es/components/ChipGroup/index.js +1 -1
- package/emotion/es/components/Combobox/Combobox.config.js +304 -25
- package/emotion/es/components/Combobox/Combobox.js +36 -9
- package/emotion/es/components/Combobox/index.js +1 -1
- package/emotion/es/components/Counter/Counter.config.js +86 -16
- package/emotion/es/components/Counter/Counter.js +2 -4
- package/emotion/es/components/Counter/index.js +1 -1
- package/emotion/es/components/DatePicker/DatePicker.config.js +255 -19
- package/emotion/es/components/DatePicker/DatePicker.js +4 -4
- package/emotion/es/components/DatePicker/index.js +1 -1
- package/emotion/es/components/Divider/Divider.config.js +100 -22
- package/emotion/es/components/Divider/Divider.js +2 -4
- package/emotion/es/components/Divider/index.js +1 -1
- package/emotion/es/components/Drawer/Drawer.config.js +70 -17
- package/emotion/es/components/Drawer/Drawer.js +8 -16
- package/emotion/es/components/Drawer/index.js +1 -1
- package/emotion/es/components/Dropdown/Dropdown.config.js +85 -13
- package/emotion/es/components/Dropdown/Dropdown.js +36 -9
- package/emotion/es/components/Dropdown/index.js +1 -1
- package/emotion/es/components/Dropzone/Dropzone.config.js +77 -16
- package/emotion/es/components/Dropzone/Dropzone.js +2 -2
- package/emotion/es/components/Dropzone/index.js +1 -1
- package/emotion/es/components/EmptyState/EmptyState.config.js +105 -13
- package/emotion/es/components/EmptyState/EmptyState.js +2 -2
- package/emotion/es/components/EmptyState/index.js +1 -1
- package/emotion/es/components/Flow/Flow.config.js +3 -3
- package/emotion/es/components/Flow/Flow.js +2 -2
- package/emotion/es/components/Flow/index.js +1 -1
- package/emotion/es/components/Grid/Grid.config.js +62 -14
- package/emotion/es/components/Grid/Grid.js +2 -2
- package/emotion/es/components/Grid/index.js +1 -1
- package/emotion/es/components/IconButton/IconButton.config.js +137 -23
- package/emotion/es/components/IconButton/IconButton.js +3 -5
- package/emotion/es/components/IconButton/index.js +1 -1
- package/emotion/es/components/Image/Image.js +3 -5
- package/emotion/es/components/Image/index.js +1 -1
- package/emotion/es/components/Indicator/Indicator.config.js +129 -21
- package/emotion/es/components/Indicator/Indicator.js +3 -3
- package/emotion/es/components/Indicator/index.js +1 -1
- package/emotion/es/components/Link/Link.config.js +205 -24
- package/emotion/es/components/Link/Link.js +3 -4
- package/emotion/es/components/Link/index.js +1 -1
- package/emotion/es/components/Mask/Mask.js +1 -1
- package/emotion/es/components/Mask/index.js +1 -1
- package/emotion/es/components/Modal/Modal.config.js +38 -10
- package/emotion/es/components/Modal/Modal.js +3 -5
- package/emotion/es/components/Modal/index.js +1 -1
- package/emotion/es/components/Notification/Notification.config.js +154 -21
- package/emotion/es/components/Notification/Notification.js +11 -15
- package/emotion/es/components/Notification/index.js +1 -1
- package/emotion/es/components/NumberFormat/NumberFormat.js +1 -9
- package/emotion/es/components/NumberFormat/index.js +1 -1
- package/emotion/es/components/NumberInput/NumberInput.config.js +145 -29
- package/emotion/es/components/NumberInput/NumberInput.js +2 -2
- package/emotion/es/components/NumberInput/index.js +1 -1
- package/emotion/es/components/Overlay/index.js +1 -1
- package/emotion/es/components/Pagination/Pagination.config.js +130 -21
- package/emotion/es/components/Pagination/Pagination.js +3 -5
- package/emotion/es/components/Pagination/index.js +1 -1
- package/emotion/es/components/Popover/Popover.config.js +34 -10
- package/emotion/es/components/Popover/Popover.js +2 -2
- package/emotion/es/components/Popover/index.js +1 -1
- package/emotion/es/components/Popup/Popup.js +2 -4
- package/emotion/es/components/Popup/index.js +1 -1
- package/emotion/es/components/Portal/index.js +1 -1
- package/emotion/es/components/Price/Price.config.js +7 -7
- package/emotion/es/components/Price/Price.js +3 -5
- package/emotion/es/components/Price/index.js +1 -1
- package/emotion/es/components/Progress/Progress.config.js +86 -16
- package/emotion/es/components/Progress/Progress.js +3 -3
- package/emotion/es/components/Progress/index.js +1 -1
- package/emotion/es/components/Radiobox/Radiobox.config.js +97 -26
- package/emotion/es/components/Radiobox/Radiobox.js +4 -5
- package/emotion/es/components/Radiobox/index.js +1 -1
- package/emotion/es/components/Range/Range.config.js +148 -19
- package/emotion/es/components/Range/Range.js +2 -4
- package/emotion/es/components/Range/index.js +1 -1
- package/emotion/es/components/Rating/Rating.config.js +108 -15
- package/emotion/es/components/Rating/Rating.js +2 -2
- package/emotion/es/components/Rating/index.js +1 -1
- package/emotion/es/components/SSRProvider/index.js +1 -1
- package/emotion/es/components/Segment/Segment.js +5 -10
- package/emotion/es/components/Segment/SegmentGroup.config.js +121 -29
- package/emotion/es/components/Segment/SegmentItem.config.js +115 -20
- package/emotion/es/components/Segment/index.js +1 -1
- package/emotion/es/components/Select/Select.config.js +295 -29
- package/emotion/es/components/Select/Select.js +36 -9
- package/emotion/es/components/Select/index.js +1 -1
- package/emotion/es/components/Sheet/Sheet.config.js +54 -13
- package/emotion/es/components/Sheet/Sheet.js +3 -5
- package/emotion/es/components/Sheet/index.js +1 -1
- package/emotion/es/components/Skeleton/LineSkeleton.config.js +221 -26
- package/emotion/es/components/Skeleton/Skeleton.js +4 -4
- package/emotion/es/components/Skeleton/index.js +1 -1
- package/emotion/es/components/Slider/Slider.config.js +138 -17
- package/emotion/es/components/Slider/Slider.js +3 -5
- package/emotion/es/components/Slider/index.js +1 -1
- package/emotion/es/components/Spinner/Spinner.config.js +98 -18
- package/emotion/es/components/Spinner/Spinner.js +8 -6
- package/emotion/es/components/Spinner/index.js +1 -1
- package/emotion/es/components/Steps/Steps.config.js +96 -13
- package/emotion/es/components/Steps/Steps.js +3 -3
- package/emotion/es/components/Steps/index.js +1 -1
- package/emotion/es/components/Switch/Switch.config.js +140 -26
- package/emotion/es/components/Switch/Switch.js +3 -3
- package/emotion/es/components/Switch/index.js +1 -1
- package/emotion/es/components/Table/Table.config.js +248 -16
- package/emotion/es/components/Table/Table.js +3 -5
- package/emotion/es/components/Table/index.js +1 -1
- package/emotion/es/components/Tabs/TabItem.js +10 -11
- package/emotion/es/components/Tabs/Tabs.js +10 -11
- package/emotion/es/components/Tabs/TabsController.js +5 -7
- package/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +221 -25
- package/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +257 -32
- package/emotion/es/components/Tabs/index.js +1 -1
- package/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +116 -19
- package/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +89 -19
- package/emotion/es/components/TextArea/TextArea.config.js +358 -37
- package/emotion/es/components/TextArea/TextArea.js +3 -5
- package/emotion/es/components/TextArea/index.js +1 -1
- package/emotion/es/components/TextField/TextField.config.js +329 -35
- package/emotion/es/components/TextField/TextField.js +2 -4
- package/emotion/es/components/TextField/index.js +1 -1
- package/emotion/es/components/Toast/Toast.config.js +118 -30
- package/emotion/es/components/Toast/Toast.js +4 -4
- package/emotion/es/components/Toast/index.js +1 -1
- package/emotion/es/components/ToastNew/ToastNew.config.js +71 -16
- package/emotion/es/components/ToastNew/ToastNew.js +3 -3
- package/emotion/es/components/ToastNew/index.js +1 -1
- package/emotion/es/components/Tokens/Colors/Colors.styles.js +90 -19
- package/emotion/es/components/Tokens/NumberTokens/NumberTokens.styles.js +37 -8
- package/emotion/es/components/Tokens/Typography/Typography.styles.js +135 -36
- package/emotion/es/components/Toolbar/Toolbar.config.js +48 -13
- package/emotion/es/components/Toolbar/Toolbar.js +4 -6
- package/emotion/es/components/Toolbar/index.js +1 -1
- package/emotion/es/components/Tooltip/Tooltip.config.js +62 -14
- package/emotion/es/components/Tooltip/Tooltip.js +2 -2
- package/emotion/es/components/Tooltip/index.js +1 -1
- package/emotion/es/components/Tree/Tree.config.js +74 -13
- package/emotion/es/components/Tree/Tree.js +2 -2
- package/emotion/es/components/Tree/index.js +1 -1
- package/emotion/es/components/Typography/Body.config.js +131 -38
- package/emotion/es/components/Typography/Dspl.config.js +83 -24
- package/emotion/es/components/Typography/Heading.config.js +131 -38
- package/emotion/es/components/Typography/Text.config.js +107 -31
- package/emotion/es/components/Typography/Typography.js +35 -35
- package/emotion/es/components/Typography/index.js +1 -1
- package/emotion/es/components/ViewContainer/ViewContainer.config.js +36 -8
- package/emotion/es/components/ViewContainer/ViewContainer.js +2 -2
- package/emotion/es/components/ViewContainer/index.js +1 -1
- package/emotion/es/index.js +2 -1
- package/emotion/es/mixins/index.js +1 -1
- package/emotion/es/tokens/index.js +1 -1
- package/es/components/Accordion/Accordion.config.js +92 -14
- package/es/components/Accordion/Accordion.js +3 -3
- package/es/components/Accordion/index.js +1 -1
- package/es/components/Attach/Attach.config.js +258 -21
- package/es/components/Attach/Attach.js +2 -4
- package/es/components/Attach/index.js +1 -1
- package/es/components/Autocomplete/Autocomplete.config.js +238 -25
- package/es/components/Autocomplete/Autocomplete.js +2 -2
- package/es/components/Autocomplete/index.js +1 -1
- package/es/components/Avatar/Avatar.config.js +188 -26
- package/es/components/Avatar/Avatar.js +3 -3
- package/es/components/Avatar/index.js +1 -1
- package/es/components/AvatarGroup/AvatarGroup.js +2 -2
- package/es/components/AvatarGroup/index.js +1 -1
- package/es/components/Badge/Badge.config.js +136 -25
- package/es/components/Badge/Badge.js +2 -4
- package/es/components/Badge/index.js +1 -1
- package/es/components/Breadcrumbs/Breadcrumbs.config.js +51 -13
- package/es/components/Breadcrumbs/Breadcrumbs.js +3 -5
- package/es/components/Breadcrumbs/index.js +1 -1
- package/es/components/Button/Button.config.js +165 -25
- package/es/components/Button/Button.js +89 -28
- package/es/components/Button/index.js +1 -1
- package/es/components/ButtonBase/index.js +1 -1
- package/es/components/ButtonGroup/ButtonGroup.config.js +219 -33
- package/es/components/ButtonGroup/ButtonGroup.js +2 -4
- package/es/components/ButtonGroup/index.js +1 -1
- package/es/components/Calendar/Calendar.js +12 -12
- package/es/components/Calendar/CalendarBase.config.js +119 -13
- package/es/components/Calendar/CalendarDouble.config.js +119 -13
- package/es/components/Calendar/index.js +1 -1
- package/es/components/Card/Card.config.js +72 -15
- package/es/components/Card/Card.js +4 -6
- package/es/components/Card/index.js +1 -1
- package/es/components/Carousel/Carousel.config.js +52 -0
- package/es/components/Carousel/Carousel.js +5 -0
- package/es/components/Carousel/index.js +2 -0
- package/es/components/Cell/Cell.config.js +101 -11
- package/es/components/Cell/Cell.js +3 -5
- package/es/components/Cell/index.js +1 -1
- package/es/components/Checkbox/Checkbox.config.js +95 -20
- package/es/components/Checkbox/Checkbox.js +3 -4
- package/es/components/Checkbox/index.js +1 -1
- package/es/components/Chip/Chip.config.js +153 -20
- package/es/components/Chip/Chip.js +3 -5
- package/es/components/Chip/index.js +1 -1
- package/es/components/ChipGroup/ChipGroup.config.js +118 -19
- package/es/components/ChipGroup/ChipGroup.js +2 -2
- package/es/components/ChipGroup/index.js +1 -1
- package/es/components/Combobox/Combobox.config.js +304 -25
- package/es/components/Combobox/Combobox.js +36 -9
- package/es/components/Combobox/index.js +1 -1
- package/es/components/Counter/Counter.config.js +86 -16
- package/es/components/Counter/Counter.js +2 -4
- package/es/components/Counter/index.js +1 -1
- package/es/components/DatePicker/DatePicker.config.js +255 -19
- package/es/components/DatePicker/DatePicker.js +4 -4
- package/es/components/DatePicker/index.js +1 -1
- package/es/components/Divider/Divider.config.js +100 -22
- package/es/components/Divider/Divider.js +2 -4
- package/es/components/Divider/index.js +1 -1
- package/es/components/Drawer/Drawer.config.js +70 -17
- package/es/components/Drawer/Drawer.js +8 -16
- package/es/components/Drawer/index.js +1 -1
- package/es/components/Dropdown/Dropdown.config.js +85 -13
- package/es/components/Dropdown/Dropdown.js +36 -9
- package/es/components/Dropdown/index.js +1 -1
- package/es/components/Dropzone/Dropzone.config.js +77 -16
- package/es/components/Dropzone/Dropzone.js +2 -2
- package/es/components/Dropzone/index.js +1 -1
- package/es/components/EmptyState/EmptyState.config.js +105 -13
- package/es/components/EmptyState/EmptyState.js +2 -2
- package/es/components/EmptyState/index.js +1 -1
- package/es/components/Flow/Flow.config.js +3 -3
- package/es/components/Flow/Flow.js +2 -2
- package/es/components/Flow/index.js +1 -1
- package/es/components/Grid/Grid.config.js +62 -14
- package/es/components/Grid/Grid.js +2 -2
- package/es/components/Grid/index.js +1 -1
- package/es/components/IconButton/IconButton.config.js +137 -23
- package/es/components/IconButton/IconButton.js +3 -5
- package/es/components/IconButton/index.js +1 -1
- package/es/components/Image/Image.js +3 -5
- package/es/components/Image/index.js +1 -1
- package/es/components/Indicator/Indicator.config.js +129 -21
- package/es/components/Indicator/Indicator.js +3 -3
- package/es/components/Indicator/index.js +1 -1
- package/es/components/Link/Link.config.js +205 -24
- package/es/components/Link/Link.js +3 -4
- package/es/components/Link/index.js +1 -1
- package/es/components/Mask/Mask.js +1 -1
- package/es/components/Mask/index.js +1 -1
- package/es/components/Modal/Modal.config.js +38 -10
- package/es/components/Modal/Modal.js +3 -5
- package/es/components/Modal/index.js +1 -1
- package/es/components/Notification/Notification.config.js +154 -21
- package/es/components/Notification/Notification.js +11 -15
- package/es/components/Notification/index.js +1 -1
- package/es/components/NumberFormat/NumberFormat.js +1 -9
- package/es/components/NumberFormat/index.js +1 -1
- package/es/components/NumberInput/NumberInput.config.js +145 -29
- package/es/components/NumberInput/NumberInput.js +2 -2
- package/es/components/NumberInput/index.js +1 -1
- package/es/components/Overlay/index.js +1 -1
- package/es/components/Pagination/Pagination.config.js +130 -21
- package/es/components/Pagination/Pagination.js +3 -5
- package/es/components/Pagination/index.js +1 -1
- package/es/components/Popover/Popover.config.js +34 -10
- package/es/components/Popover/Popover.js +2 -2
- package/es/components/Popover/index.js +1 -1
- package/es/components/Popup/Popup.js +2 -4
- package/es/components/Popup/index.js +1 -1
- package/es/components/Portal/index.js +1 -1
- package/es/components/Price/Price.config.js +7 -7
- package/es/components/Price/Price.js +3 -5
- package/es/components/Price/index.js +1 -1
- package/es/components/Progress/Progress.config.js +86 -16
- package/es/components/Progress/Progress.js +3 -3
- package/es/components/Progress/index.js +1 -1
- package/es/components/Radiobox/Radiobox.config.js +97 -26
- package/es/components/Radiobox/Radiobox.js +4 -5
- package/es/components/Radiobox/index.js +1 -1
- package/es/components/Range/Range.config.js +148 -19
- package/es/components/Range/Range.js +2 -4
- package/es/components/Range/index.js +1 -1
- package/es/components/Rating/Rating.config.js +108 -15
- package/es/components/Rating/Rating.js +2 -2
- package/es/components/Rating/index.js +1 -1
- package/es/components/SSRProvider/index.js +1 -1
- package/es/components/Segment/Segment.js +5 -10
- package/es/components/Segment/SegmentGroup.config.js +121 -29
- package/es/components/Segment/SegmentItem.config.js +115 -20
- package/es/components/Segment/index.js +1 -1
- package/es/components/Select/Select.config.js +295 -29
- package/es/components/Select/Select.js +36 -9
- package/es/components/Select/index.js +1 -1
- package/es/components/Sheet/Sheet.config.js +54 -13
- package/es/components/Sheet/Sheet.js +3 -5
- package/es/components/Sheet/index.js +1 -1
- package/es/components/Skeleton/LineSkeleton.config.js +221 -26
- package/es/components/Skeleton/Skeleton.js +4 -4
- package/es/components/Skeleton/index.js +1 -1
- package/es/components/Slider/Slider.config.js +138 -17
- package/es/components/Slider/Slider.js +3 -5
- package/es/components/Slider/index.js +1 -1
- package/es/components/Spinner/Spinner.config.js +98 -18
- package/es/components/Spinner/Spinner.js +8 -6
- package/es/components/Spinner/index.js +1 -1
- package/es/components/Steps/Steps.config.js +96 -13
- package/es/components/Steps/Steps.js +3 -3
- package/es/components/Steps/index.js +1 -1
- package/es/components/Switch/Switch.config.js +140 -26
- package/es/components/Switch/Switch.js +3 -3
- package/es/components/Switch/index.js +1 -1
- package/es/components/Table/Table.config.js +248 -16
- package/es/components/Table/Table.js +3 -5
- package/es/components/Table/index.js +1 -1
- package/es/components/Tabs/TabItem.js +10 -11
- package/es/components/Tabs/Tabs.js +10 -11
- package/es/components/Tabs/TabsController.js +5 -7
- package/es/components/Tabs/horizontal/HorizontalTabItem.config.js +221 -25
- package/es/components/Tabs/horizontal/HorizontalTabs.config.js +257 -32
- package/es/components/Tabs/index.js +1 -1
- package/es/components/Tabs/vertical/VerticalTabItem.config.js +116 -19
- package/es/components/Tabs/vertical/VerticalTabs.config.js +89 -19
- package/es/components/TextArea/TextArea.config.js +358 -37
- package/es/components/TextArea/TextArea.js +3 -5
- package/es/components/TextArea/index.js +1 -1
- package/es/components/TextField/TextField.config.js +329 -35
- package/es/components/TextField/TextField.js +2 -4
- package/es/components/TextField/index.js +1 -1
- package/es/components/Toast/Toast.config.js +118 -30
- package/es/components/Toast/Toast.js +4 -4
- package/es/components/Toast/index.js +1 -1
- package/es/components/ToastNew/ToastNew.config.js +71 -16
- package/es/components/ToastNew/ToastNew.js +3 -3
- package/es/components/ToastNew/index.js +1 -1
- package/es/components/Tokens/Colors/Colors.styles.js +90 -43
- package/es/components/Tokens/NumberTokens/NumberTokens.styles.js +37 -18
- package/es/components/Tokens/Typography/Typography.styles.js +135 -68
- package/es/components/Toolbar/Toolbar.config.js +48 -13
- package/es/components/Toolbar/Toolbar.js +4 -6
- package/es/components/Toolbar/index.js +1 -1
- package/es/components/Tooltip/Tooltip.config.js +62 -14
- package/es/components/Tooltip/Tooltip.js +2 -2
- package/es/components/Tooltip/index.js +1 -1
- package/es/components/Tree/Tree.config.js +74 -13
- package/es/components/Tree/Tree.js +2 -2
- package/es/components/Tree/index.js +1 -1
- package/es/components/Typography/Body.config.js +131 -38
- package/es/components/Typography/Dspl.config.js +83 -24
- package/es/components/Typography/Heading.config.js +131 -38
- package/es/components/Typography/Text.config.js +107 -31
- package/es/components/Typography/Typography.js +35 -35
- package/es/components/Typography/index.js +1 -1
- package/es/components/ViewContainer/ViewContainer.config.js +36 -8
- package/es/components/ViewContainer/ViewContainer.js +2 -2
- package/es/components/ViewContainer/index.js +1 -1
- package/es/index.js +2 -1
- package/es/mixins/index.js +1 -1
- package/es/tokens/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +82 -729
- package/mixins/index.js +61 -20
- package/package.json +12 -12
- package/tokens/index.js +126 -255
- package/components/Image/Image.component-test.js +0 -92
- package/components/Pagination/Pagination.component-test.js +0 -298
- package/components/Slider/Slider.component-test.js +0 -223
- package/emotion/cjs/components/Accordion/Accordion.stories.tsx +0 -159
- package/emotion/cjs/components/Attach/Attach.stories.tsx +0 -157
- package/emotion/cjs/components/Autocomplete/Autocomplete.stories.tsx +0 -170
- package/emotion/cjs/components/Avatar/Avatar.stories.tsx +0 -74
- package/emotion/cjs/components/AvatarGroup/AvatarGroup.stories.tsx +0 -71
- package/emotion/cjs/components/Badge/Badge.stories.tsx +0 -87
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -82
- package/emotion/cjs/components/Button/Button.stories.tsx +0 -212
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.stories.tsx +0 -109
- package/emotion/cjs/components/Calendar/Calendar.stories.tsx +0 -304
- package/emotion/cjs/components/Card/Card.stories.tsx +0 -281
- package/emotion/cjs/components/Cell/Cell.stories.tsx +0 -97
- package/emotion/cjs/components/Checkbox/Checkbox.stories.tsx +0 -232
- package/emotion/cjs/components/Chip/Chip.stories.tsx +0 -93
- package/emotion/cjs/components/ChipGroup/ChipGroup.stories.tsx +0 -79
- package/emotion/cjs/components/Combobox/Combobox.stories.tsx +0 -604
- package/emotion/cjs/components/Counter/Counter.stories.tsx +0 -34
- package/emotion/cjs/components/DatePicker/DatePicker.stories.tsx +0 -309
- package/emotion/cjs/components/Divider/Divider.stories.tsx +0 -58
- package/emotion/cjs/components/Drawer/Drawer.stories.tsx +0 -217
- package/emotion/cjs/components/Dropdown/Dropdown.stories.tsx +0 -331
- package/emotion/cjs/components/Dropzone/Dropzone.stories.tsx +0 -58
- package/emotion/cjs/components/EmptyState/EmptyState.stories.tsx +0 -43
- package/emotion/cjs/components/Flow/Flow.stories.tsx +0 -133
- package/emotion/cjs/components/Grid/Grid.stories.tsx +0 -119
- package/emotion/cjs/components/IconButton/IconButton.stories.tsx +0 -94
- package/emotion/cjs/components/Image/Image.component-test.js +0 -91
- package/emotion/cjs/components/Image/Image.stories.tsx +0 -44
- package/emotion/cjs/components/Indicator/Indicator.stories.tsx +0 -34
- package/emotion/cjs/components/Link/Link.stories.tsx +0 -57
- package/emotion/cjs/components/Mask/Mask.stories.tsx +0 -176
- package/emotion/cjs/components/Modal/Modal.stories.tsx +0 -426
- package/emotion/cjs/components/Notification/Notification.stories.tsx +0 -221
- package/emotion/cjs/components/NumberFormat/NumberFormat.stories.tsx +0 -186
- package/emotion/cjs/components/NumberInput/NumberInput.stories.tsx +0 -81
- package/emotion/cjs/components/Overlay/Overlay.stories.tsx +0 -76
- package/emotion/cjs/components/Pagination/Pagination.component-test.js +0 -298
- package/emotion/cjs/components/Pagination/Pagination.stories.tsx +0 -139
- package/emotion/cjs/components/Popover/Popover.stories.tsx +0 -127
- package/emotion/cjs/components/Popover/style.css +0 -4
- package/emotion/cjs/components/Popup/Popup.stories.tsx +0 -171
- package/emotion/cjs/components/Portal/Portal.stories.tsx +0 -57
- package/emotion/cjs/components/Price/Price.stories.tsx +0 -34
- package/emotion/cjs/components/Progress/Progress.stories.tsx +0 -32
- package/emotion/cjs/components/Radiobox/Radiobox.stories.tsx +0 -139
- package/emotion/cjs/components/Range/Range.stories.tsx +0 -343
- package/emotion/cjs/components/Rating/Rating.stories.tsx +0 -125
- package/emotion/cjs/components/Segment/Segment.stories.tsx +0 -162
- package/emotion/cjs/components/Select/Select.stories.tsx +0 -642
- package/emotion/cjs/components/Select/style.css +0 -37
- package/emotion/cjs/components/Sheet/Sheet.stories.tsx +0 -361
- package/emotion/cjs/components/Skeleton/Skeleton.stories.tsx +0 -116
- package/emotion/cjs/components/Slider/Slider.component-test.js +0 -223
- package/emotion/cjs/components/Slider/Slider.stories.tsx +0 -277
- package/emotion/cjs/components/Spinner/Spinner.stories.tsx +0 -109
- package/emotion/cjs/components/Steps/Steps.stories.tsx +0 -191
- package/emotion/cjs/components/Switch/Switch.stories.tsx +0 -100
- package/emotion/cjs/components/Table/Table.stories.tsx +0 -551
- package/emotion/cjs/components/Tabs/Tabs.stories.tsx +0 -639
- package/emotion/cjs/components/TextArea/TextArea.stories.tsx +0 -228
- package/emotion/cjs/components/TextField/TextField.stories.tsx +0 -260
- package/emotion/cjs/components/Toast/Toast.stories.tsx +0 -156
- package/emotion/cjs/components/ToastNew/ToastNew.stories.tsx +0 -87
- package/emotion/cjs/components/Tokens/Colors/Colors.stories.tsx +0 -196
- package/emotion/cjs/components/Tokens/NumberTokens/CornerRadius.stories.tsx +0 -93
- package/emotion/cjs/components/Tokens/NumberTokens/Spacing.stories.tsx +0 -93
- package/emotion/cjs/components/Tokens/Typography/Typography.stories.tsx +0 -277
- package/emotion/cjs/components/Toolbar/Toolbar.stories.tsx +0 -64
- package/emotion/cjs/components/Tooltip/Tooltip.stories.tsx +0 -152
- package/emotion/cjs/components/Tree/Tree.stories.tsx +0 -146
- package/emotion/cjs/components/Typography/Typography.stories.tsx +0 -243
- package/emotion/es/components/Accordion/Accordion.stories.tsx +0 -159
- package/emotion/es/components/Attach/Attach.stories.tsx +0 -157
- package/emotion/es/components/Autocomplete/Autocomplete.stories.tsx +0 -170
- package/emotion/es/components/Avatar/Avatar.stories.tsx +0 -74
- package/emotion/es/components/AvatarGroup/AvatarGroup.stories.tsx +0 -71
- package/emotion/es/components/Badge/Badge.stories.tsx +0 -87
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -82
- package/emotion/es/components/Button/Button.stories.tsx +0 -212
- package/emotion/es/components/ButtonGroup/ButtonGroup.stories.tsx +0 -109
- package/emotion/es/components/Calendar/Calendar.stories.tsx +0 -304
- package/emotion/es/components/Card/Card.stories.tsx +0 -281
- package/emotion/es/components/Cell/Cell.stories.tsx +0 -97
- package/emotion/es/components/Checkbox/Checkbox.stories.tsx +0 -232
- package/emotion/es/components/Chip/Chip.stories.tsx +0 -93
- package/emotion/es/components/ChipGroup/ChipGroup.stories.tsx +0 -79
- package/emotion/es/components/Combobox/Combobox.stories.tsx +0 -604
- package/emotion/es/components/Counter/Counter.stories.tsx +0 -34
- package/emotion/es/components/DatePicker/DatePicker.stories.tsx +0 -309
- package/emotion/es/components/Divider/Divider.stories.tsx +0 -58
- package/emotion/es/components/Drawer/Drawer.stories.tsx +0 -217
- package/emotion/es/components/Dropdown/Dropdown.stories.tsx +0 -331
- package/emotion/es/components/Dropzone/Dropzone.stories.tsx +0 -58
- package/emotion/es/components/EmptyState/EmptyState.stories.tsx +0 -43
- package/emotion/es/components/Flow/Flow.stories.tsx +0 -133
- package/emotion/es/components/Grid/Grid.stories.tsx +0 -119
- package/emotion/es/components/IconButton/IconButton.stories.tsx +0 -94
- package/emotion/es/components/Image/Image.component-test.js +0 -85
- package/emotion/es/components/Image/Image.stories.tsx +0 -44
- package/emotion/es/components/Indicator/Indicator.stories.tsx +0 -34
- package/emotion/es/components/Link/Link.stories.tsx +0 -57
- package/emotion/es/components/Mask/Mask.stories.tsx +0 -176
- package/emotion/es/components/Modal/Modal.stories.tsx +0 -426
- package/emotion/es/components/Notification/Notification.stories.tsx +0 -221
- package/emotion/es/components/NumberFormat/NumberFormat.stories.tsx +0 -186
- package/emotion/es/components/NumberInput/NumberInput.stories.tsx +0 -81
- package/emotion/es/components/Overlay/Overlay.stories.tsx +0 -76
- package/emotion/es/components/Pagination/Pagination.component-test.js +0 -293
- package/emotion/es/components/Pagination/Pagination.stories.tsx +0 -139
- package/emotion/es/components/Popover/Popover.stories.tsx +0 -127
- package/emotion/es/components/Popover/style.css +0 -4
- package/emotion/es/components/Popup/Popup.stories.tsx +0 -171
- package/emotion/es/components/Portal/Portal.stories.tsx +0 -57
- package/emotion/es/components/Price/Price.stories.tsx +0 -34
- package/emotion/es/components/Progress/Progress.stories.tsx +0 -32
- package/emotion/es/components/Radiobox/Radiobox.stories.tsx +0 -139
- package/emotion/es/components/Range/Range.stories.tsx +0 -343
- package/emotion/es/components/Rating/Rating.stories.tsx +0 -125
- package/emotion/es/components/Segment/Segment.stories.tsx +0 -162
- package/emotion/es/components/Select/Select.stories.tsx +0 -642
- package/emotion/es/components/Select/style.css +0 -37
- package/emotion/es/components/Sheet/Sheet.stories.tsx +0 -361
- package/emotion/es/components/Skeleton/Skeleton.stories.tsx +0 -116
- package/emotion/es/components/Slider/Slider.component-test.js +0 -220
- package/emotion/es/components/Slider/Slider.stories.tsx +0 -277
- package/emotion/es/components/Spinner/Spinner.stories.tsx +0 -109
- package/emotion/es/components/Steps/Steps.stories.tsx +0 -191
- package/emotion/es/components/Switch/Switch.stories.tsx +0 -100
- package/emotion/es/components/Table/Table.stories.tsx +0 -551
- package/emotion/es/components/Tabs/Tabs.stories.tsx +0 -639
- package/emotion/es/components/TextArea/TextArea.stories.tsx +0 -228
- package/emotion/es/components/TextField/TextField.stories.tsx +0 -260
- package/emotion/es/components/Toast/Toast.stories.tsx +0 -156
- package/emotion/es/components/ToastNew/ToastNew.stories.tsx +0 -87
- package/emotion/es/components/Tokens/Colors/Colors.stories.tsx +0 -196
- package/emotion/es/components/Tokens/NumberTokens/CornerRadius.stories.tsx +0 -93
- package/emotion/es/components/Tokens/NumberTokens/Spacing.stories.tsx +0 -93
- package/emotion/es/components/Tokens/Typography/Typography.stories.tsx +0 -277
- package/emotion/es/components/Toolbar/Toolbar.stories.tsx +0 -64
- package/emotion/es/components/Tooltip/Tooltip.stories.tsx +0 -152
- package/emotion/es/components/Tree/Tree.stories.tsx +0 -146
- package/emotion/es/components/Typography/Typography.stories.tsx +0 -243
- package/es/components/Image/Image.component-test.js +0 -86
- package/es/components/Pagination/Pagination.component-test.js +0 -293
- package/es/components/Slider/Slider.component-test.js +0 -220
- /package/emotion/{cjs/helpers/index.ts → es/helpers/index.js} +0 -0
- /package/{emotion/es/helpers/index.ts → es/helpers/index.js} +0 -0
@@ -1,109 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { ComponentProps } from 'react';
|
3
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
-
import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
5
|
-
|
6
|
-
import { Button } from '../Button/Button';
|
7
|
-
|
8
|
-
import { ButtonGroup } from './ButtonGroup';
|
9
|
-
|
10
|
-
type StoryProps = ComponentProps<typeof ButtonGroup> & { itemsCount?: number };
|
11
|
-
type Story = StoryObj<StoryProps>;
|
12
|
-
|
13
|
-
const views = ['accent', 'secondary', 'clear'];
|
14
|
-
const sizes = ['s'];
|
15
|
-
const orientationValues = ['horizontal', 'vertical'];
|
16
|
-
const gapValues = ['none', 'dense', 'wide'];
|
17
|
-
const shapeValues = ['segmented', 'default'];
|
18
|
-
const stretchingValues = ['auto', 'filled'];
|
19
|
-
|
20
|
-
const meta: Meta<typeof ButtonGroup> = {
|
21
|
-
title: 'Data Entry/ButtonGroup',
|
22
|
-
decorators: [InSpacingDecorator],
|
23
|
-
argTypes: {
|
24
|
-
size: {
|
25
|
-
options: sizes,
|
26
|
-
control: {
|
27
|
-
type: 'select',
|
28
|
-
},
|
29
|
-
},
|
30
|
-
view: {
|
31
|
-
options: views,
|
32
|
-
control: {
|
33
|
-
type: 'select',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
orientation: {
|
37
|
-
options: orientationValues,
|
38
|
-
control: {
|
39
|
-
type: 'inline-radio',
|
40
|
-
},
|
41
|
-
},
|
42
|
-
gap: {
|
43
|
-
options: gapValues,
|
44
|
-
control: {
|
45
|
-
type: 'select',
|
46
|
-
},
|
47
|
-
},
|
48
|
-
shape: {
|
49
|
-
options: shapeValues,
|
50
|
-
control: {
|
51
|
-
type: 'select',
|
52
|
-
},
|
53
|
-
},
|
54
|
-
stretching: {
|
55
|
-
options: stretchingValues,
|
56
|
-
control: {
|
57
|
-
type: 'select',
|
58
|
-
},
|
59
|
-
},
|
60
|
-
},
|
61
|
-
};
|
62
|
-
|
63
|
-
export default meta;
|
64
|
-
|
65
|
-
export const Default: Story = {
|
66
|
-
args: {
|
67
|
-
view: 'accent',
|
68
|
-
size: 's',
|
69
|
-
gap: 'dense',
|
70
|
-
orientation: 'horizontal',
|
71
|
-
shape: 'default',
|
72
|
-
itemsCount: 5,
|
73
|
-
stretching: 'auto',
|
74
|
-
},
|
75
|
-
render: ({ itemsCount, ...args }: StoryProps) => {
|
76
|
-
return (
|
77
|
-
<ButtonGroup {...args}>
|
78
|
-
{Array(itemsCount)
|
79
|
-
.fill(true)
|
80
|
-
.map((_, i) => (
|
81
|
-
<Button text={`Button ${i}`} />
|
82
|
-
))}
|
83
|
-
</ButtonGroup>
|
84
|
-
);
|
85
|
-
},
|
86
|
-
};
|
87
|
-
|
88
|
-
export const CustomButtons: Story = {
|
89
|
-
args: {
|
90
|
-
...Default.args,
|
91
|
-
isCommonButtonStyles: false,
|
92
|
-
},
|
93
|
-
argTypes: {
|
94
|
-
...disableProps(['itemsCount']),
|
95
|
-
},
|
96
|
-
render: (args: StoryProps) => {
|
97
|
-
return (
|
98
|
-
<>
|
99
|
-
<h3>Группа кнопок с разными темами</h3>
|
100
|
-
<ButtonGroup {...args}>
|
101
|
-
<Button text="Primary" view="accent" />
|
102
|
-
<Button text="Negative" view="secondary" />
|
103
|
-
<Button text="Positive" view="clear" />
|
104
|
-
<Button text="Clear" view="clear" />
|
105
|
-
</ButtonGroup>
|
106
|
-
</>
|
107
|
-
);
|
108
|
-
},
|
109
|
-
};
|
@@ -1,304 +0,0 @@
|
|
1
|
-
import React, { ComponentProps, useCallback, useRef, useState } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { action } from '@storybook/addon-actions';
|
4
|
-
import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
5
|
-
|
6
|
-
import { Tabs } from '../Tabs/Tabs';
|
7
|
-
import { TabItem } from '../Tabs/TabItem';
|
8
|
-
import { H3 } from '../Typography';
|
9
|
-
|
10
|
-
import { Calendar, CalendarBase, CalendarBaseRange, CalendarDouble, CalendarDoubleRange } from '.';
|
11
|
-
|
12
|
-
const onChangeValue = action('onChangeValue');
|
13
|
-
|
14
|
-
const meta: Meta<CalendarProps> = {
|
15
|
-
title: 'Data Entry/Calendar',
|
16
|
-
decorators: [InSpacingDecorator],
|
17
|
-
component: Calendar,
|
18
|
-
argTypes: {
|
19
|
-
min: {
|
20
|
-
control: {
|
21
|
-
type: 'date',
|
22
|
-
},
|
23
|
-
},
|
24
|
-
max: {
|
25
|
-
control: {
|
26
|
-
type: 'date',
|
27
|
-
},
|
28
|
-
},
|
29
|
-
...disableProps([
|
30
|
-
'size',
|
31
|
-
'value',
|
32
|
-
'onChangeValue',
|
33
|
-
'date',
|
34
|
-
'eventList',
|
35
|
-
'disabledList',
|
36
|
-
'eventMonthList',
|
37
|
-
'disabledMonthList',
|
38
|
-
'eventQuarterList',
|
39
|
-
'disabledQuarterList',
|
40
|
-
'eventYearList',
|
41
|
-
'disabledYearList',
|
42
|
-
'type',
|
43
|
-
'view',
|
44
|
-
'onChangeStartOfRange',
|
45
|
-
]),
|
46
|
-
},
|
47
|
-
};
|
48
|
-
|
49
|
-
export default meta;
|
50
|
-
|
51
|
-
type CalendarProps = ComponentProps<typeof Calendar>;
|
52
|
-
type CalendarBaseProps = ComponentProps<typeof CalendarBase>;
|
53
|
-
type CalendarBaseRangeProps = ComponentProps<typeof CalendarBaseRange>;
|
54
|
-
const defaultMinDate = new Date(2016, 6, 1);
|
55
|
-
const defaultMaxDate = new Date(2030, 11, 24);
|
56
|
-
|
57
|
-
const getBaseEvents = (type: 'days' | 'months' | 'quarters' | 'years', datesNumber = 2) => {
|
58
|
-
const baseDate = {
|
59
|
-
day: 10,
|
60
|
-
monthIndex: 6,
|
61
|
-
year: 2023,
|
62
|
-
};
|
63
|
-
|
64
|
-
const events = [...new Array(datesNumber)].map((_, index) => {
|
65
|
-
const eventNumber = Math.floor(Math.random() * 3 + 1);
|
66
|
-
const day = type === 'days' ? baseDate.day + index : 1;
|
67
|
-
const month =
|
68
|
-
// eslint-disable-next-line no-nested-ternary
|
69
|
-
type === 'months' || type === 'quarters'
|
70
|
-
? baseDate.monthIndex + index
|
71
|
-
: type === 'days'
|
72
|
-
? baseDate.monthIndex
|
73
|
-
: 0;
|
74
|
-
const year = type === 'years' ? baseDate.year + index : baseDate.year;
|
75
|
-
|
76
|
-
return [...new Array(eventNumber)].map(() => {
|
77
|
-
return { date: new Date(year, month, day), color: 'var(--text-warning)' };
|
78
|
-
});
|
79
|
-
});
|
80
|
-
|
81
|
-
return events.flat();
|
82
|
-
};
|
83
|
-
|
84
|
-
const StoryDefault = (args: CalendarProps) => {
|
85
|
-
const { isRange, isDouble, min, max, date, includeEdgeDates, size, ...rest } = args;
|
86
|
-
const [value, setValue] = useState(new Date(2023, 10, 16));
|
87
|
-
const [valueRange, setValueRange] = useState<[Date, Date?]>([new Date(2023, 10, 16), new Date(2023, 10, 23)]);
|
88
|
-
|
89
|
-
const handleOnChange = useCallback((newValue: Date) => {
|
90
|
-
setValue(newValue);
|
91
|
-
onChangeValue(newValue);
|
92
|
-
}, []);
|
93
|
-
const handleOnRangeChange = useCallback((newValue: [Date, Date?]) => {
|
94
|
-
setValueRange(newValue);
|
95
|
-
}, []);
|
96
|
-
|
97
|
-
return (
|
98
|
-
<div style={{ height: '100vh' }}>
|
99
|
-
<Calendar
|
100
|
-
size={size}
|
101
|
-
isRange={isRange}
|
102
|
-
isDouble={isDouble}
|
103
|
-
date={date}
|
104
|
-
includeEdgeDates={includeEdgeDates}
|
105
|
-
min={min}
|
106
|
-
max={max}
|
107
|
-
{...rest}
|
108
|
-
value={(isRange ? valueRange : value) as Date & [Date, Date?]}
|
109
|
-
onChangeValue={
|
110
|
-
(isRange ? handleOnRangeChange : handleOnChange) as (value: Date | [Date, Date?]) => void
|
111
|
-
}
|
112
|
-
/>
|
113
|
-
</div>
|
114
|
-
);
|
115
|
-
};
|
116
|
-
|
117
|
-
export const Default: StoryObj<CalendarProps> = {
|
118
|
-
args: {
|
119
|
-
min: new Date(2023, 10, 1),
|
120
|
-
max: new Date(2023, 11, 24),
|
121
|
-
isDouble: false,
|
122
|
-
isRange: false,
|
123
|
-
includeEdgeDates: false,
|
124
|
-
size: 's',
|
125
|
-
stretched: false,
|
126
|
-
},
|
127
|
-
render: (args) => <StoryDefault {...args} />,
|
128
|
-
};
|
129
|
-
|
130
|
-
const StoryBase = (args: CalendarBaseProps & { displayDouble: boolean }) => {
|
131
|
-
const { min, max, includeEdgeDates, size, displayDouble, ...rest } = args;
|
132
|
-
const [value, setValue] = useState(new Date(2023, 6, 7));
|
133
|
-
const [currentState, setCurrentState] = useState('Days');
|
134
|
-
|
135
|
-
const handleOnChange = useCallback((newValue: Date, dateInfo?: unknown) => {
|
136
|
-
setValue(newValue);
|
137
|
-
onChangeValue(newValue, dateInfo);
|
138
|
-
}, []);
|
139
|
-
|
140
|
-
const eventList = useRef(getBaseEvents('days', 5));
|
141
|
-
const eventMonthList = useRef(getBaseEvents('months', 5));
|
142
|
-
const eventQuarterList = useRef(getBaseEvents('quarters'));
|
143
|
-
const eventYearList = useRef(getBaseEvents('years'));
|
144
|
-
|
145
|
-
const disabledDays = [...new Array(5)].map((_, day) => ({
|
146
|
-
date: new Date(2023, 6, 23 + day),
|
147
|
-
}));
|
148
|
-
|
149
|
-
const getCalendarComponent = ({ type, ...rest }) => {
|
150
|
-
return displayDouble ? (
|
151
|
-
<CalendarDouble
|
152
|
-
size={size}
|
153
|
-
value={value}
|
154
|
-
includeEdgeDates={includeEdgeDates}
|
155
|
-
type={type}
|
156
|
-
onChangeValue={handleOnChange}
|
157
|
-
min={min}
|
158
|
-
max={max}
|
159
|
-
{...rest}
|
160
|
-
/>
|
161
|
-
) : (
|
162
|
-
<CalendarBase
|
163
|
-
size={size}
|
164
|
-
value={value}
|
165
|
-
includeEdgeDates={includeEdgeDates}
|
166
|
-
type={type}
|
167
|
-
onChangeValue={handleOnChange}
|
168
|
-
min={min}
|
169
|
-
max={max}
|
170
|
-
{...rest}
|
171
|
-
/>
|
172
|
-
);
|
173
|
-
};
|
174
|
-
|
175
|
-
const calendarMap = {
|
176
|
-
Days: getCalendarComponent({ type: 'Days', eventList: eventList.current, disabledList: disabledDays, ...rest }),
|
177
|
-
Months: getCalendarComponent({ type: 'Months', eventMonthList: eventMonthList.current, ...rest }),
|
178
|
-
Quarters: getCalendarComponent({ type: 'Quarters', eventQuarterList: eventQuarterList.current, ...rest }),
|
179
|
-
Years: getCalendarComponent({ type: 'Years', eventYearList: eventYearList.current, ...rest }),
|
180
|
-
};
|
181
|
-
|
182
|
-
return (
|
183
|
-
<>
|
184
|
-
<H3>Тип календаря</H3>
|
185
|
-
<Tabs view="divider" size="s" hasDivider>
|
186
|
-
{Object.keys(calendarMap).map((state, i) => (
|
187
|
-
<TabItem
|
188
|
-
key={`item:${i}`}
|
189
|
-
view="divider"
|
190
|
-
selected={state === currentState}
|
191
|
-
onClick={() => setCurrentState(state)}
|
192
|
-
size="s"
|
193
|
-
>
|
194
|
-
{state}
|
195
|
-
</TabItem>
|
196
|
-
))}
|
197
|
-
</Tabs>
|
198
|
-
<div style={{ marginTop: '1rem', height: '100vh' }}>{calendarMap[currentState]}</div>
|
199
|
-
</>
|
200
|
-
);
|
201
|
-
};
|
202
|
-
|
203
|
-
export const Base: StoryObj<CalendarBaseProps & { displayDouble: boolean }> = {
|
204
|
-
argTypes: {
|
205
|
-
...disableProps(['isRange', 'isDouble']),
|
206
|
-
},
|
207
|
-
args: {
|
208
|
-
size: 's',
|
209
|
-
min: defaultMinDate,
|
210
|
-
max: defaultMaxDate,
|
211
|
-
includeEdgeDates: false,
|
212
|
-
displayDouble: false,
|
213
|
-
stretched: false,
|
214
|
-
},
|
215
|
-
render: (args) => <StoryBase {...args} />,
|
216
|
-
};
|
217
|
-
|
218
|
-
const StoryRange = (args: CalendarBaseRangeProps & { displayDouble: boolean }) => {
|
219
|
-
const { min, max, includeEdgeDates, size, displayDouble, ...rest } = args;
|
220
|
-
const [values, setValue] = useState<[Date, Date?]>([new Date(2023, 6, 1), new Date(2023, 6, 16)]);
|
221
|
-
const [currentState, setCurrentState] = useState('Days');
|
222
|
-
|
223
|
-
const handleOnChange = (newValue: [Date, Date?], dateInfo) => {
|
224
|
-
onChangeValue(newValue, dateInfo);
|
225
|
-
setValue(newValue);
|
226
|
-
};
|
227
|
-
|
228
|
-
const eventList = useRef(getBaseEvents('days', 5));
|
229
|
-
const eventMonthList = useRef(getBaseEvents('months', 5));
|
230
|
-
const eventQuarterList = useRef(getBaseEvents('quarters'));
|
231
|
-
const eventYearList = useRef(getBaseEvents('years'));
|
232
|
-
|
233
|
-
const disabledDays = [...new Array(5)].map((_, day) => ({
|
234
|
-
date: new Date(2023, 6, 23 + day),
|
235
|
-
}));
|
236
|
-
|
237
|
-
const getCalendarComponent = ({ type, ...rest }) => {
|
238
|
-
return displayDouble ? (
|
239
|
-
<CalendarDoubleRange
|
240
|
-
size={size}
|
241
|
-
min={min}
|
242
|
-
max={max}
|
243
|
-
includeEdgeDates={includeEdgeDates}
|
244
|
-
type={type}
|
245
|
-
{...rest}
|
246
|
-
value={values}
|
247
|
-
onChangeValue={handleOnChange}
|
248
|
-
/>
|
249
|
-
) : (
|
250
|
-
<CalendarBaseRange
|
251
|
-
size={size}
|
252
|
-
min={min}
|
253
|
-
max={max}
|
254
|
-
includeEdgeDates={includeEdgeDates}
|
255
|
-
type={type}
|
256
|
-
{...rest}
|
257
|
-
value={values}
|
258
|
-
onChangeValue={handleOnChange}
|
259
|
-
/>
|
260
|
-
);
|
261
|
-
};
|
262
|
-
|
263
|
-
const calendarMap = {
|
264
|
-
Days: getCalendarComponent({ type: 'Days', eventList: eventList.current, disabledList: disabledDays, ...rest }),
|
265
|
-
Months: getCalendarComponent({ type: 'Months', eventMonthList: eventMonthList.current, ...rest }),
|
266
|
-
Quarters: getCalendarComponent({ type: 'Quarters', eventQuarterList: eventQuarterList.current, ...rest }),
|
267
|
-
Years: getCalendarComponent({ type: 'Years', eventYearList: eventYearList.current, ...rest }),
|
268
|
-
};
|
269
|
-
|
270
|
-
return (
|
271
|
-
<>
|
272
|
-
<H3>Тип календаря</H3>
|
273
|
-
<Tabs view="divider" size="s" hasDivider>
|
274
|
-
{Object.keys(calendarMap).map((state, i) => (
|
275
|
-
<TabItem
|
276
|
-
key={`item:${i}`}
|
277
|
-
view="divider"
|
278
|
-
selected={state === currentState}
|
279
|
-
onClick={() => setCurrentState(state)}
|
280
|
-
size="s"
|
281
|
-
>
|
282
|
-
{state}
|
283
|
-
</TabItem>
|
284
|
-
))}
|
285
|
-
</Tabs>
|
286
|
-
<div style={{ marginTop: '1rem', height: '100vh' }}>{calendarMap[currentState]}</div>
|
287
|
-
</>
|
288
|
-
);
|
289
|
-
};
|
290
|
-
|
291
|
-
export const Range: StoryObj<CalendarBaseRangeProps & { displayDouble: boolean }> = {
|
292
|
-
argTypes: {
|
293
|
-
...disableProps(['isRange', 'isDouble']),
|
294
|
-
},
|
295
|
-
args: {
|
296
|
-
size: 's',
|
297
|
-
min: defaultMinDate,
|
298
|
-
max: defaultMaxDate,
|
299
|
-
includeEdgeDates: false,
|
300
|
-
displayDouble: false,
|
301
|
-
stretched: false,
|
302
|
-
},
|
303
|
-
render: (args) => <StoryRange {...args} />,
|
304
|
-
};
|
@@ -1,281 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { disableProps, getConfigVariations, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
3
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
-
import styled from 'styled-components';
|
5
|
-
|
6
|
-
import { Flow } from '../Flow/Flow';
|
7
|
-
|
8
|
-
import { Card, CardInnerContent, CardContent } from './Card';
|
9
|
-
import { config } from './Card.config';
|
10
|
-
|
11
|
-
const { views, sizes } = getConfigVariations(config);
|
12
|
-
|
13
|
-
const GridDot = styled.div`
|
14
|
-
width: 2rem;
|
15
|
-
height: 2rem;
|
16
|
-
margin: 1rem;
|
17
|
-
border-radius: 50%;
|
18
|
-
|
19
|
-
display: flex;
|
20
|
-
align-items: center;
|
21
|
-
justify-content: center;
|
22
|
-
background: var(--plasma-colors-warning);
|
23
|
-
`;
|
24
|
-
|
25
|
-
const Content = styled.div`
|
26
|
-
display: flex;
|
27
|
-
flex: 1;
|
28
|
-
|
29
|
-
padding: 1rem;
|
30
|
-
box-sizing: border-box;
|
31
|
-
|
32
|
-
align-items: center;
|
33
|
-
justify-content: center;
|
34
|
-
`;
|
35
|
-
|
36
|
-
const SvgBackground = (props) => (
|
37
|
-
<svg
|
38
|
-
xmlns="http://www.w3.org/2000/svg"
|
39
|
-
preserveAspectRatio="xMinYMin slice"
|
40
|
-
viewBox="1 0.5 8 8"
|
41
|
-
{...props}
|
42
|
-
style={{ ...props.style, background: 'var(--text-tertiary)' }}
|
43
|
-
>
|
44
|
-
<path stroke="#fff" strokeDasharray={1} d="M1 1h7M2 2h7M1 3h7M2 4h7M1 5h7M2 6h7M1 7h7M2 8h7" />
|
45
|
-
</svg>
|
46
|
-
);
|
47
|
-
|
48
|
-
const meta: Meta<typeof Card> = {
|
49
|
-
title: 'Data Display/Card',
|
50
|
-
decorators: [InSpacingDecorator],
|
51
|
-
component: Card,
|
52
|
-
argTypes: {
|
53
|
-
width: {
|
54
|
-
control: {
|
55
|
-
type: 'text',
|
56
|
-
},
|
57
|
-
},
|
58
|
-
view: {
|
59
|
-
options: views,
|
60
|
-
control: {
|
61
|
-
type: 'select',
|
62
|
-
},
|
63
|
-
},
|
64
|
-
size: {
|
65
|
-
options: sizes,
|
66
|
-
control: {
|
67
|
-
type: 'inline-radio',
|
68
|
-
},
|
69
|
-
},
|
70
|
-
orientation: {
|
71
|
-
options: ['vertical', 'horizontal'],
|
72
|
-
control: {
|
73
|
-
type: 'inline-radio',
|
74
|
-
},
|
75
|
-
},
|
76
|
-
backgroundType: {
|
77
|
-
options: ['none', 'solid'],
|
78
|
-
control: {
|
79
|
-
type: 'inline-radio',
|
80
|
-
},
|
81
|
-
},
|
82
|
-
textPosition: {
|
83
|
-
options: ['inner', 'outer'],
|
84
|
-
control: {
|
85
|
-
type: 'inline-radio',
|
86
|
-
},
|
87
|
-
},
|
88
|
-
contentPosition: {
|
89
|
-
options: ['inner', 'outer'],
|
90
|
-
control: {
|
91
|
-
type: 'inline-radio',
|
92
|
-
},
|
93
|
-
},
|
94
|
-
textAlign: {
|
95
|
-
options: ['left', 'center', 'right'],
|
96
|
-
control: {
|
97
|
-
type: 'inline-radio',
|
98
|
-
},
|
99
|
-
},
|
100
|
-
contentAlign: {
|
101
|
-
options: ['left', 'center', 'right'],
|
102
|
-
control: {
|
103
|
-
type: 'inline-radio',
|
104
|
-
},
|
105
|
-
},
|
106
|
-
quantity: {
|
107
|
-
options: [1, 2, 4],
|
108
|
-
control: {
|
109
|
-
type: 'inline-radio',
|
110
|
-
},
|
111
|
-
},
|
112
|
-
aspectRatio: {
|
113
|
-
control: {
|
114
|
-
type: 'text',
|
115
|
-
},
|
116
|
-
},
|
117
|
-
hasText: {
|
118
|
-
control: {
|
119
|
-
type: 'boolean',
|
120
|
-
},
|
121
|
-
},
|
122
|
-
hasContent: {
|
123
|
-
control: {
|
124
|
-
type: 'boolean',
|
125
|
-
},
|
126
|
-
},
|
127
|
-
hasImage: {
|
128
|
-
control: {
|
129
|
-
type: 'boolean',
|
130
|
-
},
|
131
|
-
},
|
132
|
-
...disableProps(['view']),
|
133
|
-
},
|
134
|
-
};
|
135
|
-
|
136
|
-
export default meta;
|
137
|
-
|
138
|
-
type Story = StoryObj<typeof Card>;
|
139
|
-
|
140
|
-
const itemsPerLineMap = {
|
141
|
-
1: 1,
|
142
|
-
2: 2,
|
143
|
-
3: 3,
|
144
|
-
4: 2,
|
145
|
-
};
|
146
|
-
|
147
|
-
const orderMap = {
|
148
|
-
left: 0,
|
149
|
-
top: 0,
|
150
|
-
center: 1,
|
151
|
-
right: 2,
|
152
|
-
bottom: 2,
|
153
|
-
};
|
154
|
-
|
155
|
-
const alignContentValue = {
|
156
|
-
left: 'flex-start',
|
157
|
-
top: 'flex-start',
|
158
|
-
center: 'center',
|
159
|
-
right: 'flex-end',
|
160
|
-
bottom: 'flex-end',
|
161
|
-
};
|
162
|
-
|
163
|
-
const render: React.FC = ({
|
164
|
-
hasContent,
|
165
|
-
hasImage,
|
166
|
-
hasText,
|
167
|
-
text,
|
168
|
-
quantity,
|
169
|
-
width,
|
170
|
-
orientation,
|
171
|
-
textPosition,
|
172
|
-
contentPosition,
|
173
|
-
textAlign,
|
174
|
-
contentAlign,
|
175
|
-
aspectRatio,
|
176
|
-
...rest
|
177
|
-
}: StoryProps) => {
|
178
|
-
const onlyInnerText = Boolean(
|
179
|
-
(!hasContent || contentPosition === 'outer') && hasText && text && textPosition === 'inner',
|
180
|
-
);
|
181
|
-
const onlyInnerContent = (!hasText || textPosition === 'outer') && hasContent && contentPosition === 'inner';
|
182
|
-
|
183
|
-
const alignProp = orientation === 'vertical' ? 'alignItems' : 'justifyContent';
|
184
|
-
|
185
|
-
const cardTitleNode = (
|
186
|
-
<Content
|
187
|
-
style={{
|
188
|
-
order: orderMap[textAlign],
|
189
|
-
[alignProp]: onlyInnerText ? alignContentValue[textAlign] : 'center',
|
190
|
-
}}
|
191
|
-
>
|
192
|
-
{text}
|
193
|
-
</Content>
|
194
|
-
);
|
195
|
-
|
196
|
-
const cardContentNode = (
|
197
|
-
<Content
|
198
|
-
style={{
|
199
|
-
order: orderMap[contentAlign],
|
200
|
-
[alignProp]: onlyInnerContent ? alignContentValue[contentAlign] : 'center',
|
201
|
-
}}
|
202
|
-
>
|
203
|
-
<Flow
|
204
|
-
itemsPerLine={itemsPerLineMap[quantity]}
|
205
|
-
itemsCount={quantity}
|
206
|
-
orientation={orientation}
|
207
|
-
arrangement={orientation === 'vertical' ? 'center' : 'spaceAround'}
|
208
|
-
alignment={orientation === 'vertical' ? 'center' : 'center'}
|
209
|
-
style={{
|
210
|
-
height: orientation === 'vertical' ? '10rem' : '100%',
|
211
|
-
}}
|
212
|
-
>
|
213
|
-
{new Array(quantity).fill(null).map((_, i) => (
|
214
|
-
<GridDot key={i}>{i + 1}</GridDot>
|
215
|
-
))}
|
216
|
-
</Flow>
|
217
|
-
</Content>
|
218
|
-
);
|
219
|
-
|
220
|
-
return (
|
221
|
-
<Card {...rest} orientation={orientation} style={{ width }}>
|
222
|
-
{hasText && textPosition === 'outer' && cardTitleNode}
|
223
|
-
{hasContent && contentPosition === 'outer' && cardContentNode}
|
224
|
-
<CardContent orientation={orientation} aspectRatio={aspectRatio}>
|
225
|
-
<CardInnerContent orientation={orientation}>
|
226
|
-
{hasText && textPosition === 'inner' && cardTitleNode}
|
227
|
-
{hasContent && contentPosition === 'inner' && cardContentNode}
|
228
|
-
</CardInnerContent>
|
229
|
-
{hasImage && <SvgBackground width="100%" height="100%" style={{ width: '100%', height: '100%' }} />}
|
230
|
-
</CardContent>
|
231
|
-
</Card>
|
232
|
-
);
|
233
|
-
};
|
234
|
-
|
235
|
-
export const Default: Story = {
|
236
|
-
args: {
|
237
|
-
width: '500px',
|
238
|
-
text: 'Title',
|
239
|
-
view: 'default',
|
240
|
-
size: 'm',
|
241
|
-
orientation: 'horizontal',
|
242
|
-
|
243
|
-
selected: true,
|
244
|
-
backgroundType: 'none',
|
245
|
-
textPosition: 'inner',
|
246
|
-
contentPosition: 'inner',
|
247
|
-
textAlign: 'left',
|
248
|
-
contentAlign: 'left',
|
249
|
-
hasText: true,
|
250
|
-
hasContent: true,
|
251
|
-
hasImage: true,
|
252
|
-
quantity: 2,
|
253
|
-
aspectRatio: '4 / 3',
|
254
|
-
},
|
255
|
-
render,
|
256
|
-
};
|
257
|
-
|
258
|
-
export const Vertical: Story = {
|
259
|
-
args: {
|
260
|
-
...Default.args,
|
261
|
-
width: '450px',
|
262
|
-
orientation: 'vertical',
|
263
|
-
textAlign: 'top',
|
264
|
-
contentAlign: 'top',
|
265
|
-
},
|
266
|
-
argTypes: {
|
267
|
-
textAlign: {
|
268
|
-
options: ['top', 'center', 'bottom'],
|
269
|
-
control: {
|
270
|
-
type: 'inline-radio',
|
271
|
-
},
|
272
|
-
},
|
273
|
-
contentAlign: {
|
274
|
-
options: ['top', 'center', 'bottom'],
|
275
|
-
control: {
|
276
|
-
type: 'inline-radio',
|
277
|
-
},
|
278
|
-
},
|
279
|
-
},
|
280
|
-
render,
|
281
|
-
};
|