@salutejs/plasma-new-hope 0.133.2-canary.1396.10611246152.0 → 0.134.0-canary.1352.10609199302.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +11 -9
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +11 -9
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +11 -9
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +11 -9
- package/cjs/components/Range/Range.css +11 -9
- package/cjs/components/Slider/Slider.css +11 -9
- package/cjs/components/Slider/components/Double/Double.css +11 -9
- package/cjs/components/TextArea/TextArea.js +28 -7
- package/cjs/components/TextArea/TextArea.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles.js +47 -35
- package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/cjs/components/TextArea/TextArea.styles_av6xxy.css +11 -0
- package/cjs/components/TextArea/TextArea.tokens.js +8 -1
- package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
- package/cjs/components/TextArea/variations/_required/base.js +9 -0
- package/cjs/components/TextArea/variations/_required/base.js.map +1 -0
- package/cjs/components/TextArea/variations/_required/base_x642ct.css +1 -0
- package/cjs/components/TextField/TextField.js +32 -9
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +13 -1
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/{es/components/TextField/TextField.styles_9fkr1l.css → cjs/components/TextField/TextField.styles_1lfge6n.css} +3 -1
- package/cjs/components/TextField/TextField.tokens.js +8 -1
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
- package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/cjs/components/TextField/variations/_label-placement/base_1yaoy2k.css +1 -0
- package/cjs/components/TextField/variations/_required/base.js +9 -0
- package/cjs/components/TextField/variations/_required/base.js.map +1 -0
- package/cjs/components/TextField/variations/_required/base_x642ct.css +1 -0
- package/cjs/index.css +22 -18
- package/emotion/cjs/components/TextArea/TextArea.js +29 -8
- package/emotion/cjs/components/TextArea/TextArea.styles.js +27 -19
- package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
- package/emotion/cjs/components/TextArea/TextArea.tokens.js +8 -1
- package/emotion/cjs/components/TextArea/variations/_required/base.js +8 -0
- package/emotion/cjs/components/TextArea/variations/_required/tokens.json +1 -0
- package/emotion/cjs/components/TextArea/variations/_size/tokens.json +7 -1
- package/emotion/cjs/components/TextField/TextField.js +36 -13
- package/emotion/cjs/components/TextField/TextField.styles.js +37 -21
- package/emotion/cjs/components/TextField/TextField.template-doc.mdx +27 -1
- package/emotion/cjs/components/TextField/TextField.tokens.js +8 -1
- package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/emotion/cjs/components/TextField/variations/_required/base.js +8 -0
- package/emotion/cjs/components/TextField/variations/_required/tokens.json +1 -0
- package/emotion/cjs/components/TextField/variations/_size/tokens.json +6 -0
- package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +12 -9
- package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +15 -12
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
- package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +12 -9
- package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +15 -12
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.config.js +29 -0
- package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
- package/emotion/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +10 -0
- package/emotion/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
- package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.config.js +36 -0
- package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
- package/emotion/cjs/examples/sds_engineer/components/Button/Button.config.js +51 -0
- package/emotion/cjs/examples/sds_engineer/components/Button/Button.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
- package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +56 -0
- package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
- package/emotion/cjs/examples/sds_engineer/components/Calendar/Calendar.js +23 -0
- package/emotion/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
- package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +25 -0
- package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +25 -0
- package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +41 -0
- package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
- package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.config.js +28 -0
- package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
- package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.config.js +29 -0
- package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
- package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.config.js +31 -0
- package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
- package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.config.js +26 -0
- package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.js +18 -0
- package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
- package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.config.js +22 -0
- package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.js +23 -0
- package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
- package/emotion/cjs/examples/sds_engineer/components/Image/Image.js +10 -0
- package/emotion/cjs/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
- package/emotion/cjs/examples/sds_engineer/components/Link/Link.config.js +121 -0
- package/emotion/cjs/examples/sds_engineer/components/Link/Link.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
- package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.config.js +18 -0
- package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.js +17 -0
- package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
- package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.config.js +25 -0
- package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.js +29 -0
- package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
- package/emotion/cjs/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
- package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.config.js +27 -0
- package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.js +18 -0
- package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
- package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.config.js +18 -0
- package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
- package/emotion/cjs/examples/sds_engineer/components/Popup/Popup.js +28 -0
- package/emotion/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
- package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.config.js +28 -0
- package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
- package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +42 -0
- package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
- package/emotion/cjs/examples/sds_engineer/components/Segment/Segment.js +14 -0
- package/emotion/cjs/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
- package/emotion/cjs/examples/sds_engineer/components/Segment/SegmentGroup.config.js +35 -0
- package/emotion/cjs/examples/sds_engineer/components/Segment/SegmentItem.config.js +33 -0
- package/emotion/cjs/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +34 -0
- package/emotion/cjs/examples/sds_engineer/components/Skeleton/Skeleton.js +25 -0
- package/emotion/cjs/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
- package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +31 -0
- package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
- package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.config.js +36 -0
- package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/TabItem.config.js +39 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/TabItem.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.config.js +42 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
- package/emotion/cjs/examples/sds_engineer/components/Tabs/TabsController.js +10 -0
- package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +28 -0
- package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
- package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.config.js +39 -0
- package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
- package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.config.js +27 -0
- package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.js +19 -0
- package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
- package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.config.js +25 -0
- package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.js +17 -0
- package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.config.js +22 -0
- package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.js +11 -0
- package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
- package/emotion/cjs/examples/themes/index.js +3 -1
- package/emotion/cjs/examples/themes/sds_engineer.module.css +373 -0
- package/emotion/es/components/TextArea/TextArea.js +30 -9
- package/emotion/es/components/TextArea/TextArea.styles.js +26 -18
- package/emotion/es/components/TextArea/TextArea.template-doc.mdx +29 -3
- package/emotion/es/components/TextArea/TextArea.tokens.js +8 -1
- package/emotion/es/components/TextArea/variations/_required/base.js +2 -0
- package/emotion/es/components/TextArea/variations/_required/tokens.json +1 -0
- package/emotion/es/components/TextArea/variations/_size/tokens.json +7 -1
- package/emotion/es/components/TextField/TextField.js +35 -12
- package/emotion/es/components/TextField/TextField.styles.js +36 -20
- package/emotion/es/components/TextField/TextField.template-doc.mdx +27 -1
- package/emotion/es/components/TextField/TextField.tokens.js +8 -1
- package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/emotion/es/components/TextField/variations/_required/base.js +2 -0
- package/emotion/es/components/TextField/variations/_required/tokens.json +1 -0
- package/emotion/es/components/TextField/variations/_size/tokens.json +6 -0
- package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +12 -9
- package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +15 -12
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
- package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +12 -9
- package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
- package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +15 -12
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.config.js +23 -0
- package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
- package/emotion/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +4 -0
- package/emotion/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
- package/emotion/es/examples/sds_engineer/components/Badge/Badge.config.js +30 -0
- package/emotion/es/examples/sds_engineer/components/Badge/Badge.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
- package/emotion/es/examples/sds_engineer/components/Button/Button.config.js +45 -0
- package/emotion/es/examples/sds_engineer/components/Button/Button.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
- package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +50 -0
- package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +5 -0
- package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
- package/emotion/es/examples/sds_engineer/components/Calendar/Calendar.js +17 -0
- package/emotion/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
- package/emotion/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +19 -0
- package/emotion/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +19 -0
- package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +35 -0
- package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
- package/emotion/es/examples/sds_engineer/components/Chip/Chip.config.js +22 -0
- package/emotion/es/examples/sds_engineer/components/Chip/Chip.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
- package/emotion/es/examples/sds_engineer/components/Counter/Counter.config.js +23 -0
- package/emotion/es/examples/sds_engineer/components/Counter/Counter.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
- package/emotion/es/examples/sds_engineer/components/Divider/Divider.config.js +25 -0
- package/emotion/es/examples/sds_engineer/components/Divider/Divider.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
- package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.config.js +20 -0
- package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.js +12 -0
- package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
- package/emotion/es/examples/sds_engineer/components/Grid/Grid.config.js +16 -0
- package/emotion/es/examples/sds_engineer/components/Grid/Grid.js +6 -0
- package/emotion/es/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
- package/emotion/es/examples/sds_engineer/components/Image/Image.js +4 -0
- package/emotion/es/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
- package/emotion/es/examples/sds_engineer/components/Link/Link.config.js +115 -0
- package/emotion/es/examples/sds_engineer/components/Link/Link.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
- package/emotion/es/examples/sds_engineer/components/Modal/Modal.config.js +12 -0
- package/emotion/es/examples/sds_engineer/components/Modal/Modal.js +6 -0
- package/emotion/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
- package/emotion/es/examples/sds_engineer/components/Notification/Notification.config.js +19 -0
- package/emotion/es/examples/sds_engineer/components/Notification/Notification.js +16 -0
- package/emotion/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
- package/emotion/es/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
- package/emotion/es/examples/sds_engineer/components/Panel/Panel.config.js +21 -0
- package/emotion/es/examples/sds_engineer/components/Panel/Panel.js +12 -0
- package/emotion/es/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
- package/emotion/es/examples/sds_engineer/components/Popover/Popover.config.js +12 -0
- package/emotion/es/examples/sds_engineer/components/Popover/Popover.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
- package/emotion/es/examples/sds_engineer/components/Popup/Popup.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
- package/emotion/es/examples/sds_engineer/components/Progress/Progress.config.js +22 -0
- package/emotion/es/examples/sds_engineer/components/Progress/Progress.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
- package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +36 -0
- package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
- package/emotion/es/examples/sds_engineer/components/Segment/Segment.js +8 -0
- package/emotion/es/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
- package/emotion/es/examples/sds_engineer/components/Segment/SegmentGroup.config.js +29 -0
- package/emotion/es/examples/sds_engineer/components/Segment/SegmentItem.config.js +27 -0
- package/emotion/es/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +28 -0
- package/emotion/es/examples/sds_engineer/components/Skeleton/Skeleton.js +7 -0
- package/emotion/es/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
- package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.config.js +25 -0
- package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
- package/emotion/es/examples/sds_engineer/components/Switch/Switch.config.js +30 -0
- package/emotion/es/examples/sds_engineer/components/Switch/Switch.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/TabItem.config.js +33 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/TabItem.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.config.js +36 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
- package/emotion/es/examples/sds_engineer/components/Tabs/TabsController.js +4 -0
- package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.config.js +22 -0
- package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.js +5 -0
- package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
- package/emotion/es/examples/sds_engineer/components/TextField/TextField.config.js +33 -0
- package/emotion/es/examples/sds_engineer/components/TextField/TextField.js +5 -0
- package/emotion/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
- package/emotion/es/examples/sds_engineer/components/Toast/Toast.config.js +21 -0
- package/emotion/es/examples/sds_engineer/components/Toast/Toast.js +8 -0
- package/emotion/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
- package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.config.js +19 -0
- package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.js +11 -0
- package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.config.js +16 -0
- package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.js +5 -0
- package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
- package/emotion/es/examples/themes/index.js +3 -1
- package/emotion/es/examples/themes/sds_engineer.module.css +373 -0
- package/es/components/Autocomplete/Autocomplete.css +11 -9
- package/es/components/DatePicker/RangeDate/RangeDate.css +11 -9
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +11 -9
- package/es/components/DatePicker/SingleDate/SingleDate.css +11 -9
- package/es/components/Range/Range.css +11 -9
- package/es/components/Slider/Slider.css +11 -9
- package/es/components/Slider/components/Double/Double.css +11 -9
- package/es/components/TextArea/TextArea.js +29 -8
- package/es/components/TextArea/TextArea.js.map +1 -1
- package/es/components/TextArea/TextArea.styles.js +46 -36
- package/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/es/components/TextArea/TextArea.styles_av6xxy.css +11 -0
- package/es/components/TextArea/TextArea.tokens.js +8 -1
- package/es/components/TextArea/TextArea.tokens.js.map +1 -1
- package/es/components/TextArea/variations/_required/base.js +5 -0
- package/es/components/TextArea/variations/_required/base.js.map +1 -0
- package/es/components/TextArea/variations/_required/base_x642ct.css +1 -0
- package/es/components/TextField/TextField.js +33 -10
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +12 -2
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/{cjs/components/TextField/TextField.styles_9fkr1l.css → es/components/TextField/TextField.styles_1lfge6n.css} +3 -1
- package/es/components/TextField/TextField.tokens.js +8 -1
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- package/es/components/TextField/TextField_1lzb2r1.css +1 -0
- package/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
- package/es/components/TextField/variations/_label-placement/base_1yaoy2k.css +1 -0
- package/es/components/TextField/variations/_required/base.js +5 -0
- package/es/components/TextField/variations/_required/base.js.map +1 -0
- package/es/components/TextField/variations/_required/base_x642ct.css +1 -0
- package/es/index.css +22 -18
- package/package.json +2 -2
- package/styled-components/cjs/components/TextArea/TextArea.js +28 -7
- package/styled-components/cjs/components/TextArea/TextArea.styles.js +17 -11
- package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
- package/styled-components/cjs/components/TextArea/TextArea.tokens.js +8 -1
- package/styled-components/cjs/components/TextArea/variations/_required/base.js +8 -0
- package/styled-components/cjs/components/TextArea/variations/_required/tokens.json +1 -0
- package/styled-components/cjs/components/TextArea/variations/_size/tokens.json +7 -1
- package/styled-components/cjs/components/TextField/TextField.js +32 -9
- package/styled-components/cjs/components/TextField/TextField.styles.js +9 -3
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +27 -1
- package/styled-components/cjs/components/TextField/TextField.tokens.js +8 -1
- package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
- package/styled-components/cjs/components/TextField/variations/_required/base.js +8 -0
- package/styled-components/cjs/components/TextField/variations/_required/tokens.json +1 -0
- package/styled-components/cjs/components/TextField/variations/_size/tokens.json +6 -0
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -4
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +7 -4
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +7 -4
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +7 -4
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.config.js +29 -0
- package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
- package/styled-components/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +10 -0
- package/styled-components/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
- package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.config.js +36 -0
- package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
- package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +51 -0
- package/styled-components/cjs/examples/sds_engineer/components/Button/Button.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
- package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +56 -0
- package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.js +23 -0
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +25 -0
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +25 -0
- package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +41 -0
- package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
- package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.config.js +28 -0
- package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
- package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.config.js +29 -0
- package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
- package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.config.js +31 -0
- package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
- package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.config.js +26 -0
- package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.js +18 -0
- package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
- package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.config.js +22 -0
- package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.js +23 -0
- package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
- package/styled-components/cjs/examples/sds_engineer/components/Image/Image.js +10 -0
- package/styled-components/cjs/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
- package/styled-components/cjs/examples/sds_engineer/components/Link/Link.config.js +32 -0
- package/styled-components/cjs/examples/sds_engineer/components/Link/Link.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
- package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.config.js +18 -0
- package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.js +17 -0
- package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
- package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.config.js +25 -0
- package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.js +29 -0
- package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
- package/styled-components/cjs/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
- package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.config.js +27 -0
- package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.js +18 -0
- package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
- package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.config.js +18 -0
- package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
- package/styled-components/cjs/examples/sds_engineer/components/Popup/Popup.js +28 -0
- package/styled-components/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
- package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.config.js +28 -0
- package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
- package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +42 -0
- package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
- package/styled-components/cjs/examples/sds_engineer/components/Segment/Segment.js +14 -0
- package/styled-components/cjs/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
- package/styled-components/cjs/examples/sds_engineer/components/Segment/SegmentGroup.config.js +35 -0
- package/styled-components/cjs/examples/sds_engineer/components/Segment/SegmentItem.config.js +33 -0
- package/styled-components/cjs/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +34 -0
- package/styled-components/cjs/examples/sds_engineer/components/Skeleton/Skeleton.js +25 -0
- package/styled-components/cjs/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
- package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +31 -0
- package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
- package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.config.js +36 -0
- package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabItem.config.js +39 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabItem.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.config.js +42 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabsController.js +10 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +28 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +39 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.config.js +27 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.js +19 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.config.js +25 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.js +17 -0
- package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.config.js +22 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.js +11 -0
- package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
- package/styled-components/cjs/examples/themes/index.js +3 -1
- package/styled-components/cjs/examples/themes/sds_engineer.module.css +373 -0
- package/styled-components/es/components/TextArea/TextArea.js +29 -8
- package/styled-components/es/components/TextArea/TextArea.styles.js +16 -10
- package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +29 -3
- package/styled-components/es/components/TextArea/TextArea.tokens.js +8 -1
- package/styled-components/es/components/TextArea/variations/_required/base.js +2 -0
- package/styled-components/es/components/TextArea/variations/_required/tokens.json +1 -0
- package/styled-components/es/components/TextArea/variations/_size/tokens.json +7 -1
- package/styled-components/es/components/TextField/TextField.js +31 -8
- package/styled-components/es/components/TextField/TextField.styles.js +8 -2
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +27 -1
- package/styled-components/es/components/TextField/TextField.tokens.js +8 -1
- package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
- package/styled-components/es/components/TextField/variations/_required/base.js +2 -0
- package/styled-components/es/components/TextField/variations/_required/tokens.json +1 -0
- package/styled-components/es/components/TextField/variations/_size/tokens.json +6 -0
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -4
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +7 -4
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +7 -4
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +7 -4
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.config.js +23 -0
- package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
- package/styled-components/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +4 -0
- package/styled-components/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
- package/styled-components/es/examples/sds_engineer/components/Badge/Badge.config.js +30 -0
- package/styled-components/es/examples/sds_engineer/components/Badge/Badge.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
- package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +45 -0
- package/styled-components/es/examples/sds_engineer/components/Button/Button.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
- package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +50 -0
- package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
- package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.js +17 -0
- package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +19 -0
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +19 -0
- package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +35 -0
- package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
- package/styled-components/es/examples/sds_engineer/components/Chip/Chip.config.js +22 -0
- package/styled-components/es/examples/sds_engineer/components/Chip/Chip.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
- package/styled-components/es/examples/sds_engineer/components/Counter/Counter.config.js +23 -0
- package/styled-components/es/examples/sds_engineer/components/Counter/Counter.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
- package/styled-components/es/examples/sds_engineer/components/Divider/Divider.config.js +25 -0
- package/styled-components/es/examples/sds_engineer/components/Divider/Divider.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
- package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.config.js +20 -0
- package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.js +12 -0
- package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
- package/styled-components/es/examples/sds_engineer/components/Grid/Grid.config.js +16 -0
- package/styled-components/es/examples/sds_engineer/components/Grid/Grid.js +6 -0
- package/styled-components/es/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
- package/styled-components/es/examples/sds_engineer/components/Image/Image.js +4 -0
- package/styled-components/es/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
- package/styled-components/es/examples/sds_engineer/components/Link/Link.config.js +26 -0
- package/styled-components/es/examples/sds_engineer/components/Link/Link.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
- package/styled-components/es/examples/sds_engineer/components/Modal/Modal.config.js +12 -0
- package/styled-components/es/examples/sds_engineer/components/Modal/Modal.js +6 -0
- package/styled-components/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
- package/styled-components/es/examples/sds_engineer/components/Notification/Notification.config.js +19 -0
- package/styled-components/es/examples/sds_engineer/components/Notification/Notification.js +16 -0
- package/styled-components/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
- package/styled-components/es/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
- package/styled-components/es/examples/sds_engineer/components/Panel/Panel.config.js +21 -0
- package/styled-components/es/examples/sds_engineer/components/Panel/Panel.js +12 -0
- package/styled-components/es/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
- package/styled-components/es/examples/sds_engineer/components/Popover/Popover.config.js +12 -0
- package/styled-components/es/examples/sds_engineer/components/Popover/Popover.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
- package/styled-components/es/examples/sds_engineer/components/Popup/Popup.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
- package/styled-components/es/examples/sds_engineer/components/Progress/Progress.config.js +22 -0
- package/styled-components/es/examples/sds_engineer/components/Progress/Progress.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
- package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +36 -0
- package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
- package/styled-components/es/examples/sds_engineer/components/Segment/Segment.js +8 -0
- package/styled-components/es/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
- package/styled-components/es/examples/sds_engineer/components/Segment/SegmentGroup.config.js +29 -0
- package/styled-components/es/examples/sds_engineer/components/Segment/SegmentItem.config.js +27 -0
- package/styled-components/es/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +28 -0
- package/styled-components/es/examples/sds_engineer/components/Skeleton/Skeleton.js +7 -0
- package/styled-components/es/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
- package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.config.js +25 -0
- package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
- package/styled-components/es/examples/sds_engineer/components/Switch/Switch.config.js +30 -0
- package/styled-components/es/examples/sds_engineer/components/Switch/Switch.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/TabItem.config.js +33 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/TabItem.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.config.js +36 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
- package/styled-components/es/examples/sds_engineer/components/Tabs/TabsController.js +4 -0
- package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.config.js +22 -0
- package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +33 -0
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.config.js +21 -0
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.js +8 -0
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
- package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.config.js +19 -0
- package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.js +11 -0
- package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.config.js +16 -0
- package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.js +5 -0
- package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
- package/styled-components/es/examples/themes/index.js +3 -1
- package/styled-components/es/examples/themes/sds_engineer.module.css +373 -0
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +6 -0
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +6 -0
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +6 -0
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +6 -0
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.d.ts +4 -0
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +2 -0
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.tokens.d.ts +7 -0
- package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +13 -0
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/components/TextArea/variations/_required/base.d.ts +2 -0
- package/types/components/TextArea/variations/_required/base.d.ts.map +1 -0
- package/types/components/TextField/TextField.d.ts +4 -0
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +2 -0
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.tokens.d.ts +7 -0
- package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +13 -0
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
- package/types/components/TextField/variations/_required/base.d.ts +2 -0
- package/types/components/TextField/variations/_required/base.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +3 -0
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +3 -0
- package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +9 -0
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +3 -0
- package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +3 -0
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +3 -0
- package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +9 -0
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Avatar/Avatar.config.d.ts +22 -0
- package/types/examples/sds_engineer/components/Avatar/Avatar.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Avatar/Avatar.d.ts +26 -0
- package/types/examples/sds_engineer/components/Avatar/Avatar.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/AvatarGroup/AvatarGroup.d.ts +5 -0
- package/types/examples/sds_engineer/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts +29 -0
- package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Badge/Badge.d.ts +34 -0
- package/types/examples/sds_engineer/components/Badge/Badge.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Button/Button.config.d.ts +44 -0
- package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Button/Button.d.ts +80 -0
- package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts +49 -0
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts +44 -0
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +28 -0
- package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +18 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +18 -0
- package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +34 -0
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +24 -0
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Chip/Chip.config.d.ts +21 -0
- package/types/examples/sds_engineer/components/Chip/Chip.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Chip/Chip.d.ts +16 -0
- package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts +22 -0
- package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Counter/Counter.d.ts +22 -0
- package/types/examples/sds_engineer/components/Counter/Counter.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Divider/Divider.config.d.ts +23 -0
- package/types/examples/sds_engineer/components/Divider/Divider.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Divider/Divider.d.ts +17 -0
- package/types/examples/sds_engineer/components/Divider/Divider.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Drawer/Drawer.config.d.ts +19 -0
- package/types/examples/sds_engineer/components/Drawer/Drawer.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Drawer/Drawer.d.ts +38 -0
- package/types/examples/sds_engineer/components/Drawer/Drawer.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Grid/Grid.config.d.ts +11 -0
- package/types/examples/sds_engineer/components/Grid/Grid.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Grid/Grid.d.ts +8 -0
- package/types/examples/sds_engineer/components/Grid/Grid.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Image/Image.d.ts +8 -0
- package/types/examples/sds_engineer/components/Image/Image.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Link/Link.config.d.ts +26 -0
- package/types/examples/sds_engineer/components/Link/Link.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Link/Link.d.ts +21 -0
- package/types/examples/sds_engineer/components/Link/Link.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Modal/Modal.config.d.ts +11 -0
- package/types/examples/sds_engineer/components/Modal/Modal.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Modal/Modal.d.ts +8 -0
- package/types/examples/sds_engineer/components/Modal/Modal.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Notification/Notification.config.d.ts +18 -0
- package/types/examples/sds_engineer/components/Notification/Notification.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Notification/Notification.d.ts +19 -0
- package/types/examples/sds_engineer/components/Notification/Notification.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Panel/Panel.config.d.ts +20 -0
- package/types/examples/sds_engineer/components/Panel/Panel.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Panel/Panel.d.ts +27 -0
- package/types/examples/sds_engineer/components/Panel/Panel.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Popover/Popover.config.d.ts +11 -0
- package/types/examples/sds_engineer/components/Popover/Popover.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts +8 -0
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Popup/Popup.d.ts +4 -0
- package/types/examples/sds_engineer/components/Popup/Popup.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Progress/Progress.config.d.ts +21 -0
- package/types/examples/sds_engineer/components/Progress/Progress.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Progress/Progress.d.ts +16 -0
- package/types/examples/sds_engineer/components/Progress/Progress.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts +35 -0
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts +24 -0
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Segment/Segment.d.ts +58 -0
- package/types/examples/sds_engineer/components/Segment/Segment.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Segment/SegmentGroup.config.d.ts +28 -0
- package/types/examples/sds_engineer/components/Segment/SegmentGroup.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Segment/SegmentItem.config.d.ts +26 -0
- package/types/examples/sds_engineer/components/Segment/SegmentItem.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Skeleton/LineSkeleton.config.d.ts +27 -0
- package/types/examples/sds_engineer/components/Skeleton/LineSkeleton.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Skeleton/Skeleton.d.ts +51 -0
- package/types/examples/sds_engineer/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts +24 -0
- package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts +34 -0
- package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Switch/Switch.config.d.ts +28 -0
- package/types/examples/sds_engineer/components/Switch/Switch.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Switch/Switch.d.ts +21 -0
- package/types/examples/sds_engineer/components/Switch/Switch.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tabs/TabItem.config.d.ts +32 -0
- package/types/examples/sds_engineer/components/Tabs/TabItem.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tabs/TabItem.d.ts +3 -0
- package/types/examples/sds_engineer/components/Tabs/TabItem.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tabs/Tabs.config.d.ts +35 -0
- package/types/examples/sds_engineer/components/Tabs/Tabs.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tabs/Tabs.d.ts +3 -0
- package/types/examples/sds_engineer/components/Tabs/Tabs.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tabs/TabsController.d.ts +3 -0
- package/types/examples/sds_engineer/components/Tabs/TabsController.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts +21 -0
- package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +46 -0
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +32 -0
- package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/TextField/TextField.d.ts +70 -0
- package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts +20 -0
- package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Toast/Toast.d.ts +20 -0
- package/types/examples/sds_engineer/components/Toast/Toast.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts +18 -0
- package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts +23 -0
- package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tooltip/Tooltip.config.d.ts +15 -0
- package/types/examples/sds_engineer/components/Tooltip/Tooltip.config.d.ts.map +1 -0
- package/types/examples/sds_engineer/components/Tooltip/Tooltip.d.ts +5 -0
- package/types/examples/sds_engineer/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/types/examples/themes/index.d.ts.map +1 -1
- package/cjs/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
- package/cjs/components/TextField/TextField_wctd2m.css +0 -1
- package/cjs/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
- package/es/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
- package/es/components/TextField/TextField_wctd2m.css +0 -1
- package/es/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
import { component, mergeConfig } from '../../../../engines';
|
2
|
+
import { textFieldConfig } from '../../../../components/TextField';
|
3
|
+
import { config } from './TextField.config';
|
4
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
|
5
|
+
export var TextField = /*#__PURE__*/component(mergedConfig);
|
@@ -0,0 +1,171 @@
|
|
1
|
+
import React, { ComponentProps, useState } from 'react';
|
2
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
+
import { action } from '@storybook/addon-actions';
|
4
|
+
import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
|
5
|
+
|
6
|
+
import { WithTheme } from '../../../_helpers';
|
7
|
+
|
8
|
+
import { TextField } from './TextField';
|
9
|
+
|
10
|
+
const onChange = action('onChange');
|
11
|
+
const onFocus = action('onFocus');
|
12
|
+
const onBlur = action('onBlur');
|
13
|
+
const onSearch = action('onSearch');
|
14
|
+
const onChipsChange = action('onChipsChange');
|
15
|
+
|
16
|
+
const sizes = ['l', 'm', 's', 'xs'];
|
17
|
+
const views = ['default', 'positive', 'warning', 'negative'];
|
18
|
+
const labelPlacements = ['outer', 'inner'];
|
19
|
+
|
20
|
+
const meta: Meta<typeof TextField> = {
|
21
|
+
title: 'sds_engineer/TextField',
|
22
|
+
component: TextField,
|
23
|
+
decorators: [WithTheme],
|
24
|
+
argTypes: {
|
25
|
+
view: {
|
26
|
+
options: views,
|
27
|
+
control: {
|
28
|
+
type: 'select',
|
29
|
+
},
|
30
|
+
},
|
31
|
+
maxLength: {
|
32
|
+
control: {
|
33
|
+
type: 'number',
|
34
|
+
},
|
35
|
+
},
|
36
|
+
labelPlacement: {
|
37
|
+
options: labelPlacements,
|
38
|
+
control: {
|
39
|
+
type: 'inline-radio',
|
40
|
+
},
|
41
|
+
},
|
42
|
+
size: {
|
43
|
+
options: sizes,
|
44
|
+
control: {
|
45
|
+
type: 'inline-radio',
|
46
|
+
},
|
47
|
+
},
|
48
|
+
},
|
49
|
+
};
|
50
|
+
|
51
|
+
export default meta;
|
52
|
+
|
53
|
+
type StoryPropsDefault = Omit<
|
54
|
+
ComponentProps<typeof TextField>,
|
55
|
+
| 'helperBlock'
|
56
|
+
| 'contentLeft'
|
57
|
+
| 'htmlSize'
|
58
|
+
| 'contentRight'
|
59
|
+
| 'type'
|
60
|
+
| 'name'
|
61
|
+
| 'onFocus'
|
62
|
+
| 'onBlur'
|
63
|
+
| 'onChange'
|
64
|
+
| 'value'
|
65
|
+
| 'checked'
|
66
|
+
| 'maxLength'
|
67
|
+
| 'minLength'
|
68
|
+
| 'required'
|
69
|
+
| 'enumerationType'
|
70
|
+
| 'chips'
|
71
|
+
| 'onChangeChips'
|
72
|
+
> & {
|
73
|
+
enableContentLeft: boolean;
|
74
|
+
enableContentRight: boolean;
|
75
|
+
};
|
76
|
+
|
77
|
+
const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
|
78
|
+
const [text, setText] = useState('Значение поля');
|
79
|
+
|
80
|
+
const iconSize = rest.size === 'xs' ? 'xs' : 's';
|
81
|
+
|
82
|
+
return (
|
83
|
+
<TextField
|
84
|
+
{...rest}
|
85
|
+
enumerationType="plain"
|
86
|
+
value={text}
|
87
|
+
contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
|
88
|
+
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
89
|
+
view={view}
|
90
|
+
onChange={(e) => {
|
91
|
+
setText(e.target.value);
|
92
|
+
onChange(e.target.value);
|
93
|
+
}}
|
94
|
+
onFocus={onFocus}
|
95
|
+
onBlur={onBlur}
|
96
|
+
onSearch={onSearch}
|
97
|
+
/>
|
98
|
+
);
|
99
|
+
};
|
100
|
+
|
101
|
+
export const Default: StoryObj<StoryPropsDefault> = {
|
102
|
+
args: {
|
103
|
+
id: 'example-text-field',
|
104
|
+
size: 'l',
|
105
|
+
view: 'default',
|
106
|
+
label: 'Лейбл',
|
107
|
+
labelPlacement: 'outer',
|
108
|
+
placeholder: 'Заполните поле',
|
109
|
+
leftHelper: 'Подсказка к полю',
|
110
|
+
disabled: false,
|
111
|
+
readOnly: false,
|
112
|
+
enableContentLeft: true,
|
113
|
+
enableContentRight: true,
|
114
|
+
},
|
115
|
+
render: (args) => <StoryDemo {...args} />,
|
116
|
+
};
|
117
|
+
|
118
|
+
type StoryPropsChips = Omit<
|
119
|
+
ComponentProps<typeof TextField>,
|
120
|
+
| 'helperBlock'
|
121
|
+
| 'contentLeft'
|
122
|
+
| 'htmlSize'
|
123
|
+
| 'contentRight'
|
124
|
+
| 'type'
|
125
|
+
| 'name'
|
126
|
+
| 'onFocus'
|
127
|
+
| 'onBlur'
|
128
|
+
| 'onChange'
|
129
|
+
| 'onSearch'
|
130
|
+
| 'value'
|
131
|
+
| 'checked'
|
132
|
+
| 'maxLength'
|
133
|
+
| 'minLength'
|
134
|
+
| 'required'
|
135
|
+
| 'enumerationType'
|
136
|
+
> & {
|
137
|
+
enableContentLeft: boolean;
|
138
|
+
enableContentRight: boolean;
|
139
|
+
};
|
140
|
+
|
141
|
+
const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
|
142
|
+
const [text, setText] = useState('Значение поля');
|
143
|
+
|
144
|
+
const iconSize = rest.size === 'xs' ? 'xs' : 's';
|
145
|
+
|
146
|
+
return (
|
147
|
+
<TextField
|
148
|
+
{...rest}
|
149
|
+
enumerationType="chip"
|
150
|
+
value={text}
|
151
|
+
contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
|
152
|
+
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
153
|
+
view={view}
|
154
|
+
onChange={(e) => {
|
155
|
+
setText(e.target.value);
|
156
|
+
onChange(e.target.value);
|
157
|
+
}}
|
158
|
+
onFocus={onFocus}
|
159
|
+
onBlur={onBlur}
|
160
|
+
onChangeChips={onChipsChange}
|
161
|
+
/>
|
162
|
+
);
|
163
|
+
};
|
164
|
+
|
165
|
+
export const Chips: StoryObj<StoryPropsChips> = {
|
166
|
+
args: {
|
167
|
+
...Default.args,
|
168
|
+
chips: ['1 value', '2 value', '3 value', '4 value'],
|
169
|
+
},
|
170
|
+
render: (args) => <StoryChips {...args} />,
|
171
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { toastTokens } from '../../../../components/Toast';
|
3
|
+
export var config = {
|
4
|
+
defaults: {
|
5
|
+
view: 'default',
|
6
|
+
size: 'm'
|
7
|
+
},
|
8
|
+
variations: {
|
9
|
+
view: {
|
10
|
+
"default": /*#__PURE__*/css(toastTokens.color, ":var(--text-primary);", toastTokens.background, ":var(--surface-solid-card);", toastTokens.closeIconColor, ":var(--text-secondary);", toastTokens.closeIconColorOnHover, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21w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ICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tZGFyay1zdXJmYWNlLXNvbGlkLXByaW1hcnkpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tb24tZGFyay10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbGlnaHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tbGlnaHQtdGV4dC1wcmltYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1vbi1saWdodC1zdXJmYWNlLXNvbGlkLXByaW1hcnkpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmJvcmRlclJhZGl1c306IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5tYXhXaWR0aH06IGNhbGMoMTAwdncgLSA1cmVtKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLnBhZGRpbmd9OiAwLjU2MjVyZW0gMC43NXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGluZS1oZWlnaHQpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4xMjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25NYXJnaW59OiAtMC4wNjI1cmVtIC0wLjI1cmVtIC0wLjA2MjVyZW0gMC41cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgcGlsbGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5waWxsZWRCb3JkZXJSYWRpdXN9OiAxLjVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxlZnRDb250ZW50TWFyZ2lufTogLTAuMDYyNXJlbSAwLjM3NXJlbSAtMC4wNjI1cmVtIC0wLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuMzc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
|
11
|
+
dark: /*#__PURE__*/css(toastTokens.color, ":var(--on-dark-text-primary);", toastTokens.background, ":var(--on-dark-surface-solid-primary);", toastTokens.closeIconColor, ":var(--on-dark-text-secondary);", toastTokens.closeIconColorOnHover, ":var(--on-dark-text-secondary);;label:plasma-new-hope__dark;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQnFCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9hc3RUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1RvYXN0JztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLXN1cmZhY2Utc29saWQtY2FyZCk7XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLW9uLWRhcmstc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jb2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tbGlnaHQtc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvck9uSG92ZXJ9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubWF4V2lkdGh9OiBjYWxjKDEwMHZ3IC0gNXJlbSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5wYWRkaW5nfTogMC41NjI1cmVtIDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxpbmUtaGVpZ2h0KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGVmdENvbnRlbnRNYXJnaW59OiAtMC4wNjI1cmVtIDAuMzc1cmVtIC0wLjA2MjVyZW0gLTAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHBpbGxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */")),
|
12
|
+
light: /*#__PURE__*/css(toastTokens.color, ":var(--on-light-text-primary);", toastTokens.background, ":var(--on-light-surface-solid-primary);", toastTokens.closeIconColor, ":var(--on-light-text-secondary);", toastTokens.closeIconColorOnHover, ":var(--on-light-text-secondary);;label:plasma-new-hope__light;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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c2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLW9uLWRhcmstc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jb2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tbGlnaHQtc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvck9uSG92ZXJ9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubWF4V2lkdGh9OiBjYWx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AgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
13
|
+
},
|
14
|
+
size: {
|
15
|
+
m: /*#__PURE__*/css(toastTokens.borderRadius, ":0.75rem;", toastTokens.maxWidth, ":calc(100vw - 5rem);", toastTokens.padding, ":0.5625rem 0.75rem;", toastTokens.fontFamily, ":var(--plasma-typo-body-xs-font-family);", toastTokens.fontSize, ":var(--plasma-typo-body-xs-font-size);", toastTokens.fontStyle, ":var(--plasma-typo-body-xs-font-style);", toastTokens.fontWeight, ":var(--plasma-typo-body-xs-font-weight);", toastTokens.letterSpacing, ":var(--plasma-typo-body-xs-letter-spacing);", toastTokens.lineHeight, ":var(--plasma-typo-body-xs-line-height);", toastTokens.leftContentMargin, ":-0.0625rem 0.375rem -0.0625rem -0.125rem;", toastTokens.closeIconMargin, ":-0.0625rem -0.25rem -0.0625rem 0.5rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQ2tCIiwiZ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JlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
16
|
+
},
|
17
|
+
pilled: {
|
18
|
+
"true": /*#__PURE__*/css(toastTokens.pilledBorderRadius, ":1.5rem;", toastTokens.leftContentMargin, ":-0.0625rem 0.375rem -0.0625rem -0.25rem;", toastTokens.closeIconMargin, ":-0.0625rem -0.25rem -0.0625rem 0.375rem;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRHFCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9hc3RUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1RvYXN0JztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLXN1cmZhY2Utc29saWQtY2FyZCk7XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLW9uLWRhcmstc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jb2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tbGlnaHQtc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvck9uSG92ZXJ9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubWF4V2lkdGh9OiBjYWxjKDEwMHZ3IC0gNXJlbSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5wYWRkaW5nfTogMC41NjI1cmVtIDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxpbmUtaGVpZ2h0KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGVmdENvbnRlbnRNYXJnaW59OiAtMC4wNjI1cmVtIDAuMzc1cmVtIC0wLjA2MjVyZW0gLTAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHBpbGxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
|
19
|
+
}
|
20
|
+
}
|
21
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { toastConfig, ToastControllerHoc, ToastProviderHoc } from '../../../../components/Toast';
|
2
|
+
import { component, mergeConfig } from '../../../../engines';
|
3
|
+
import { config } from './Toast.config';
|
4
|
+
export { useToast } from '../../../../components/Toast';
|
5
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(toastConfig, config);
|
6
|
+
export var Toast = /*#__PURE__*/component(mergedConfig);
|
7
|
+
export var ToastController = /*#__PURE__*/ToastControllerHoc(Toast);
|
8
|
+
export var ToastProvider = /*#__PURE__*/ToastProviderHoc(ToastController);
|
@@ -0,0 +1,223 @@
|
|
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 styled from 'styled-components';
|
5
|
+
import { disableProps } from '@salutejs/plasma-sb-utils';
|
6
|
+
|
7
|
+
import { toastConfig } from '../../../../components/Toast';
|
8
|
+
import { mergeConfig } from '../../../../engines';
|
9
|
+
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
10
|
+
import { Button } from '../Button/Button';
|
11
|
+
import { PopupProvider } from '../Popup/Popup';
|
12
|
+
import { addNotification } from '../../../../../src/components/Notification';
|
13
|
+
import { NotificationsProvider } from '../Notification/Notification';
|
14
|
+
import { Modal } from '../Modal/Modal';
|
15
|
+
|
16
|
+
import { config } from './Toast.config';
|
17
|
+
import { Toast, ToastController, ToastProvider, useToast } from './Toast';
|
18
|
+
|
19
|
+
const meta: Meta<typeof ToastController> = {
|
20
|
+
title: 'sds_engineer/Toast',
|
21
|
+
decorators: [WithTheme],
|
22
|
+
};
|
23
|
+
|
24
|
+
export default meta;
|
25
|
+
|
26
|
+
type StoryComponentProps = ComponentProps<typeof Toast> & {
|
27
|
+
enableContentLeft?: boolean;
|
28
|
+
};
|
29
|
+
type StoryComponent = StoryObj<StoryComponentProps>;
|
30
|
+
|
31
|
+
type StoryProps = ComponentProps<typeof ToastController> & {
|
32
|
+
text: string;
|
33
|
+
timeout?: number;
|
34
|
+
enableContentLeft?: boolean;
|
35
|
+
};
|
36
|
+
type Story = StoryObj<StoryProps>;
|
37
|
+
|
38
|
+
const BellIcon = (props) => (
|
39
|
+
<svg width="100%" viewBox="0 0 24 24" fill="none" {...props}>
|
40
|
+
<path
|
41
|
+
d="M11.501 21.28c1.088 0 1.978-.889 1.978-1.977H9.524c0 1.088.88 1.978 1.977 1.978zm5.933-5.932v-4.944c0-3.035-1.622-5.576-4.45-6.248v-.673c0-.82-.662-1.483-1.483-1.483-.82 0-1.483.662-1.483 1.483v.672c-2.838.673-4.45 3.204-4.45 6.25v4.943l-1.275 1.276c-.623.623-.188 1.69.692 1.69h13.022c.88 0 1.325-1.067.702-1.69l-1.275-1.276z"
|
42
|
+
fill="currentColor"
|
43
|
+
/>
|
44
|
+
</svg>
|
45
|
+
);
|
46
|
+
|
47
|
+
const ToastContainer = styled.div`
|
48
|
+
position: fixed;
|
49
|
+
transform: translateX(50%);
|
50
|
+
`;
|
51
|
+
|
52
|
+
const Container = styled.div`
|
53
|
+
display: flex;
|
54
|
+
gap: 0.5rem;
|
55
|
+
`;
|
56
|
+
|
57
|
+
export const ToastComponent: StoryComponent = {
|
58
|
+
args: {
|
59
|
+
text: 'Текст всплывающего уведомления',
|
60
|
+
view: 'default',
|
61
|
+
size: 'm',
|
62
|
+
hasClose: true,
|
63
|
+
enableContentLeft: true,
|
64
|
+
pilled: false,
|
65
|
+
},
|
66
|
+
render: ({ enableContentLeft, ...args }) => (
|
67
|
+
<ToastContainer>
|
68
|
+
<Toast contentLeft={enableContentLeft && <BellIcon width="1rem" height="1rem" />} {...args} />
|
69
|
+
</ToastContainer>
|
70
|
+
),
|
71
|
+
};
|
72
|
+
|
73
|
+
const StoryLiveDemo = ({
|
74
|
+
text,
|
75
|
+
position,
|
76
|
+
timeout,
|
77
|
+
fade,
|
78
|
+
offset,
|
79
|
+
pilled,
|
80
|
+
view,
|
81
|
+
size,
|
82
|
+
hasClose,
|
83
|
+
enableContentLeft,
|
84
|
+
}: StoryProps) => {
|
85
|
+
const { showToast, hideToast } = useToast();
|
86
|
+
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
87
|
+
|
88
|
+
return (
|
89
|
+
<Container>
|
90
|
+
<Button onClick={hideToast}>Скрыть уведомление</Button>
|
91
|
+
<Button
|
92
|
+
onClick={() => {
|
93
|
+
showToast({
|
94
|
+
text,
|
95
|
+
position,
|
96
|
+
offset,
|
97
|
+
timeout,
|
98
|
+
fade,
|
99
|
+
contentLeft,
|
100
|
+
pilled,
|
101
|
+
view,
|
102
|
+
size,
|
103
|
+
hasClose,
|
104
|
+
onHide: action('onHide'),
|
105
|
+
onShow: action('onShow'),
|
106
|
+
});
|
107
|
+
}}
|
108
|
+
>
|
109
|
+
Показать уведомление
|
110
|
+
</Button>
|
111
|
+
</Container>
|
112
|
+
);
|
113
|
+
};
|
114
|
+
|
115
|
+
export const LiveDemo: Story = {
|
116
|
+
args: {
|
117
|
+
...ToastComponent.args,
|
118
|
+
position: 'bottom',
|
119
|
+
fade: true,
|
120
|
+
offset: 0,
|
121
|
+
timeout: 3000,
|
122
|
+
role: 'alert',
|
123
|
+
},
|
124
|
+
argTypes: {
|
125
|
+
position: {
|
126
|
+
options: ['top', 'bottom'],
|
127
|
+
control: {
|
128
|
+
type: 'inline-radio',
|
129
|
+
},
|
130
|
+
},
|
131
|
+
...argTypesFromConfig(mergeConfig(toastConfig, config)),
|
132
|
+
...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
|
133
|
+
},
|
134
|
+
parameters: {
|
135
|
+
chromatic: {
|
136
|
+
disable: true,
|
137
|
+
},
|
138
|
+
},
|
139
|
+
render: (args) => (
|
140
|
+
<ToastProvider>
|
141
|
+
<StoryLiveDemo {...args} />
|
142
|
+
</ToastProvider>
|
143
|
+
),
|
144
|
+
};
|
145
|
+
|
146
|
+
const StoryComplex = ({
|
147
|
+
text,
|
148
|
+
position,
|
149
|
+
timeout,
|
150
|
+
fade,
|
151
|
+
offset,
|
152
|
+
pilled,
|
153
|
+
view,
|
154
|
+
size,
|
155
|
+
hasClose,
|
156
|
+
enableContentLeft,
|
157
|
+
}: StoryProps) => {
|
158
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
159
|
+
|
160
|
+
const { showToast } = useToast();
|
161
|
+
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
162
|
+
|
163
|
+
const handleShowToast = () => {
|
164
|
+
showToast({
|
165
|
+
text,
|
166
|
+
position,
|
167
|
+
offset,
|
168
|
+
timeout,
|
169
|
+
fade,
|
170
|
+
contentLeft,
|
171
|
+
pilled,
|
172
|
+
view,
|
173
|
+
size,
|
174
|
+
hasClose,
|
175
|
+
onHide: action('onHide'),
|
176
|
+
onShow: action('onShow'),
|
177
|
+
});
|
178
|
+
};
|
179
|
+
|
180
|
+
const count = useRef(0);
|
181
|
+
const handleShowNotification = useCallback(() => {
|
182
|
+
addNotification(
|
183
|
+
{
|
184
|
+
title: 'Добавить Toast',
|
185
|
+
size: 'xs',
|
186
|
+
actions: <Button text="Добавить" size="xs" stretch onClick={handleShowToast} />,
|
187
|
+
},
|
188
|
+
5000,
|
189
|
+
);
|
190
|
+
count.current++;
|
191
|
+
}, [count]);
|
192
|
+
|
193
|
+
return (
|
194
|
+
<NotificationsProvider>
|
195
|
+
<PopupProvider>
|
196
|
+
<Button text="Открыть модальное окно" onClick={() => setIsModalOpen(true)} />
|
197
|
+
<Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
198
|
+
<div>Hello!</div>
|
199
|
+
<Button view="default" text="Add notification" onClick={handleShowNotification} />
|
200
|
+
</Modal>
|
201
|
+
</PopupProvider>
|
202
|
+
</NotificationsProvider>
|
203
|
+
);
|
204
|
+
};
|
205
|
+
|
206
|
+
export const Complex: Story = {
|
207
|
+
args: {
|
208
|
+
...LiveDemo.args,
|
209
|
+
},
|
210
|
+
argTypes: {
|
211
|
+
...LiveDemo.argTypes,
|
212
|
+
},
|
213
|
+
parameters: {
|
214
|
+
chromatic: {
|
215
|
+
disable: true,
|
216
|
+
},
|
217
|
+
},
|
218
|
+
render: (args) => (
|
219
|
+
<ToastProvider>
|
220
|
+
<StoryComplex {...args} />
|
221
|
+
</ToastProvider>
|
222
|
+
),
|
223
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { toolbarTokens } from '../../../../components/Toolbar';
|
3
|
+
export var config = {
|
4
|
+
defaults: {
|
5
|
+
view: 'default',
|
6
|
+
size: 'm'
|
7
|
+
},
|
8
|
+
variations: {
|
9
|
+
view: {
|
10
|
+
"default": /*#__PURE__*/css(toolbarTokens.boxShadow, ":var(--shadow-down-soft-s);", toolbarTokens.background, ":var(--surface-solid-card);", toolbarTokens.dividerColor, ":var(--surface-transparent-tertiary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRvb2xiYXJUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1Rvb2xiYXInO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBkZWZhdWx0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJveFNoYWRvd306IHZhcigtLXNoYWRvdy1kb3duLXNvZnQtcyk7XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1zdXJmYWNlLXNvbGlkLWNhcmQpO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJDb2xvcn06IHZhcigtLXN1cmZhY2UtdHJhbnNwYXJlbnQtdGVydGlhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgeHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDIuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJvcmRlclJhZGl1c306IDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyT2Zmc2V0fTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDNyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjg3NXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4zNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJvcmRlclJhZGl1c306IDFyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyT2Zmc2V0fTogMC42MjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogNC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
|
11
|
+
},
|
12
|
+
size: {
|
13
|
+
xs: /*#__PURE__*/css(toolbarTokens.size, ":2.5rem;", toolbarTokens.padding, ":0.25rem;", toolbarTokens.borderRadius, ":0.75rem;", toolbarTokens.dividerSize, ":1.25rem;", toolbarTokens.dividerOffset, ":0.5rem;", toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__xs;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJtQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sYmFyL1Rvb2xiYXIuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b29sYmFyVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ub29sYmFyJztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3hTaGFkb3d9OiB2YXIoLS1zaGFkb3ctZG93bi1zb2Z0LXMpO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQ29sb3J9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHhzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAyLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
|
14
|
+
s: /*#__PURE__*/css(toolbarTokens.size, ":3rem;", toolbarTokens.padding, ":0.25rem;", toolbarTokens.borderRadius, ":0.875rem;", toolbarTokens.dividerSize, ":1.5rem;", toolbarTokens.dividerOffset, ":0.5rem;", toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__s;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEJrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sYmFyL1Rvb2xiYXIuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b29sYmFyVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ub29sYmFyJztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3hTaGFkb3d9OiB2YXIoLS1zaGFkb3ctZG93bi1zb2Z0LXMpO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQ29sb3J9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHhzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAyLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
|
15
|
+
m: /*#__PURE__*/css(toolbarTokens.size, ":3.75rem;", toolbarTokens.padding, ":0.375rem;", toolbarTokens.borderRadius, ":1rem;", toolbarTokens.dividerSize, ":1.75rem;", toolbarTokens.dividerOffset, ":0.625rem;", toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUNrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sYmFyL1Rvb2xiYXIuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b29sYmFyVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ub29sYmFyJztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3hTaGFkb3d9OiB2YXIoLS1zaGFkb3ctZG93bi1zb2Z0LXMpO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQ29sb3J9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHhzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAyLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
|
16
|
+
l: /*#__PURE__*/css(toolbarTokens.size, ":4.5rem;", toolbarTokens.padding, ":0.5rem;", toolbarTokens.borderRadius, ":1.25rem;", toolbarTokens.dividerSize, ":2rem;", toolbarTokens.dividerOffset, ":0.75rem;", toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__l;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sYmFyL1Rvb2xiYXIuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b29sYmFyVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ub29sYmFyJztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3hTaGFkb3d9OiB2YXIoLS1zaGFkb3ctZG93bi1zb2Z0LXMpO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tc3VyZmFjZS1zb2xpZC1jYXJkKTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQ29sb3J9OiB2YXIoLS1zdXJmYWNlLXRyYW5zcGFyZW50LXRlcnRpYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIHhzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAyLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { component, mergeConfig } from '../../../../engines';
|
2
|
+
import { toolbarConfig, toolbarDividerConfig } from '../../../../components/Toolbar';
|
3
|
+
import { config } from './Toolbar.config';
|
4
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(toolbarConfig, config);
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Компонент Toolbar.
|
8
|
+
*/
|
9
|
+
export var Toolbar = /*#__PURE__*/component(mergedConfig);
|
10
|
+
var mergedDividerConfig = /*#__PURE__*/mergeConfig(toolbarDividerConfig);
|
11
|
+
export var ToolbarDivider = /*#__PURE__*/component(mergedDividerConfig);
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import type { ComponentProps } from 'react';
|
3
|
+
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
+
|
5
|
+
import { IconDone } from '../../../../components/_Icon';
|
6
|
+
import { Button } from '../Button/Button';
|
7
|
+
import { WithTheme } from '../../../_helpers';
|
8
|
+
|
9
|
+
import { Toolbar, ToolbarDivider } from './Toolbar';
|
10
|
+
|
11
|
+
const orientations: Array<string> = ['vertical', 'horizontal'];
|
12
|
+
const size: Array<string> = ['xs', 's', 'm', 'l'];
|
13
|
+
|
14
|
+
const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
|
15
|
+
return (
|
16
|
+
<Toolbar {...props}>
|
17
|
+
<Button square size={props.size} view="clear" contentLeft={<IconDone />} />
|
18
|
+
<Button square size={props.size} view="clear" contentLeft={<IconDone />} />
|
19
|
+
<Button square size={props.size} view="clear" contentLeft={<IconDone />} />
|
20
|
+
<ToolbarDivider />
|
21
|
+
<Button square size={props.size} view="clear" contentLeft={<IconDone />} />
|
22
|
+
<Button square size={props.size} view="clear" contentLeft={<IconDone />} />
|
23
|
+
</Toolbar>
|
24
|
+
);
|
25
|
+
};
|
26
|
+
|
27
|
+
const meta: Meta<typeof Toolbar> = {
|
28
|
+
title: 'sds_engineer/Toolbar',
|
29
|
+
component: ToolbarWrapper,
|
30
|
+
decorators: [WithTheme],
|
31
|
+
argTypes: {
|
32
|
+
orientation: {
|
33
|
+
options: orientations,
|
34
|
+
control: {
|
35
|
+
type: 'select',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
hasShadow: {
|
39
|
+
control: {
|
40
|
+
type: 'boolean',
|
41
|
+
},
|
42
|
+
},
|
43
|
+
size: {
|
44
|
+
options: size,
|
45
|
+
control: {
|
46
|
+
type: 'select',
|
47
|
+
},
|
48
|
+
},
|
49
|
+
},
|
50
|
+
args: {
|
51
|
+
orientation: 'vertical',
|
52
|
+
hasShadow: true,
|
53
|
+
size: 'm',
|
54
|
+
view: 'default',
|
55
|
+
},
|
56
|
+
};
|
57
|
+
|
58
|
+
export default meta;
|
59
|
+
|
60
|
+
type Story = StoryObj<typeof Toolbar>;
|
61
|
+
|
62
|
+
export const Default: Story = {
|
63
|
+
args: {},
|
64
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { tooltipTokens } from '../../../../components/Tooltip';
|
3
|
+
export var config = {
|
4
|
+
defaults: {
|
5
|
+
view: 'default',
|
6
|
+
size: 'm'
|
7
|
+
},
|
8
|
+
variations: {
|
9
|
+
size: {
|
10
|
+
m: /*#__PURE__*/css(tooltipTokens.paddingTop, ":0.25rem;", tooltipTokens.paddingRight, ":0.5rem;", tooltipTokens.paddingBottom, ":0.25rem;", tooltipTokens.paddingLeft, ":0.5rem;", tooltipTokens.minHeight, ":1.5rem;", tooltipTokens.borderRadius, ":0.25rem;", tooltipTokens.textFontFamily, ":var(--plasma-typo-body-s-font-family);", tooltipTokens.textFontSize, ":var(--plasma-typo-body-s-font-size);", tooltipTokens.textFontStyle, ":var(--plasma-typo-body-s-font-style);", tooltipTokens.textFontWeight, ":500;", tooltipTokens.textFontLetterSpacing, ":0px;", tooltipTokens.textFontLineHeight, ":1rem;", tooltipTokens.contentLeftMargin, ":0.25rem;", tooltipTokens.arrowMaskWidth, ":1rem;", tooltipTokens.arrowMaskHeight, ":1rem;", tooltipTokens.arrowMaskImage, ":url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0ibTgsMTUuNzhsLTIuMjQsLTQuMzRjLTAuOTIsLTEuNzkgLTEuMzgsLTIuNjggLTIuMTUsLTMuMTdjLTAuNzcsLTAuNDkgLTEuNzIsLTAuNDkgLTMuNjEsLTAuNDlsMTYsMGMtMS44OSwwIC0yLjgzLDAgLTMuNiwwLjQ5Yy0wLjc4LDAuNDkgLTEuMjQsMS4zOCAtMi4xNiwzLjE2bC0yLjI0LDQuMzV6IiBmaWxsPSIjMTcxNzE3IiBmaWxsLW9wYWNpdHk9IjEiIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9InBvaW50ZXIiLz4KPC9zdmc+\");", tooltipTokens.arrowHeight, ":0.5rem;", tooltipTokens.arrowEdgeMargin, ":0.625rem;", tooltipTokens.arrowBackground, ":#475056;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV2tCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRvb2x0aXBUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1Rvb2x0aXAnO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnBhZGRpbmdUb3B9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5wYWRkaW5nUmlnaHR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnBhZGRpbmdCb3R0b219OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5wYWRkaW5nTGVmdH06IDAuNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5taW5IZWlnaHR9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLmJvcmRlclJhZGl1c306IDAuMjVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMudGV4dEZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy50ZXh0Rm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zaXplKTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMudGV4dEZvbnRTdHlsZX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHktcy1mb250LXN0eWxlKTtcbiAgICAgICA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zSWlCbWFXeHNMVzl3WVdOcGRIazlJakVpSUdacGJHd3RjblZzWlQwaVpYWmxibTlrWkNJZ2FXUTlJbkJ2YVc1MFpYSWlMejRLUEM5emRtYytcIik7XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLmFycm93SGVpZ2h0fTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5hcnJvd0VkZ2VNYXJnaW59OiAwLjYyNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuYXJyb3dCYWNrZ3JvdW5kfTogIzQ3NTA1NjtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGRlZmF1bHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuYmFja2dyb3VuZENvbG9yfTogIzQ3NTA1NjtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuYm94U2hhZG93fTogMHB4IDFweCAycHggMHB4IHJnYmEoMiwgMTMsIDc2LCAwLjE1KSwwcHggMy42cHggNy4xcHggMHB4IHJnYmEoMiwgMTMsIDc2LCAwLjEyKSwwcHggMTZweCAzMnB4IDBweCByZ2JhKDIsIDEzLCA3NiwgMC4yKTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuY29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
|
11
|
+
},
|
12
|
+
view: {
|
13
|
+
"default": /*#__PURE__*/css(tooltipTokens.backgroundColor, ":#475056;", tooltipTokens.boxShadow, ":0px 1px 2px 0px rgba(2, 13, 76, 0.15),0px 3.6px 7.1px 0px rgba(2, 13, 76, 0.12),0px 16px 32px 0px rgba(2, 13, 76, 0.2);", tooltipTokens.color, ":var(--on-dark-text-primary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0N3QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sdGlwL1Rvb2x0aXAuY29uZmlnLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyB0b29sdGlwVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vLi4vY29tcG9uZW50cy9Ub29sdGlwJztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5wYWRkaW5nVG9wfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMucGFkZGluZ1JpZ2h0fTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5wYWRkaW5nQm90dG9tfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMucGFkZGluZ0xlZnR9OiAwLjVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMubWluSGVpZ2h0fTogMS41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjI1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnRleHRGb250RmFtaWx5fTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMudGV4dEZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS1zLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnRleHRGb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXMtZm9udC1zdHlsZSk7XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnRleHRGb250V2VpZ2h0fTogNTAwO1xuICAgICAgICAgICAgICAgICR7dG9vbHRpcFRva2Vucy50ZXh0Rm9udExldHRlclNwYWNpbmd9OiAwcHg7XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLnRleHRGb250TGluZUhlaWdodH06IDFyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuY29udGVudExlZnRNYXJnaW59OiAwLjI1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLmFycm93TWFza1dpZHRofTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuYXJyb3dNYXNrSGVpZ2h0fTogMXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2x0aXBUb2tlbnMuYXJyb3dNYXNrSW1hZ2V9OiB1cmwoXCJkYXRhOmltYWdlL3N2Zyt4bWw7YmFzZTY0LFBITjJaeUIzYVdSMGFEMGlNVFlpSUdobGFXZG9kRDBpTVRZaUlIaHRiRzV6UFNKb2RIUndPaTh2ZDNkM0xuY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IsIDEzLCA3NiwgMC4xMiksMHB4IDE2cHggMzJweCAwcHggcmdiYSgyLCAxMywgNzYsIDAuMik7XG4gICAgICAgICAgICAgICAgJHt0b29sdGlwVG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
|
14
|
+
}
|
15
|
+
}
|
16
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { tooltipConfig } from '../../../../components/Tooltip';
|
2
|
+
import { component, mergeConfig } from '../../../../engines';
|
3
|
+
import { config } from './Tooltip.config';
|
4
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(tooltipConfig, config);
|
5
|
+
export var Tooltip = /*#__PURE__*/component(mergedConfig);
|