@salutejs/sdds-cs 0.319.0-canary.2020.15831403447.0 → 0.319.0-canary.2021.15777687971.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/Accordion.config.js +19 -101
- package/components/Accordion/Accordion.js +12 -18
- package/components/Accordion/index.js +14 -15
- package/components/Attach/Attach.config.js +26 -267
- package/components/Attach/Attach.js +11 -11
- package/components/Attach/index.js +7 -6
- package/components/Autocomplete/Autocomplete.config.js +30 -247
- package/components/Autocomplete/Autocomplete.js +7 -11
- package/components/Autocomplete/index.js +7 -6
- package/components/Avatar/Avatar.config.js +31 -197
- package/components/Avatar/Avatar.js +7 -19
- package/components/Avatar/index.js +7 -6
- package/components/AvatarGroup/AvatarGroup.js +6 -10
- package/components/AvatarGroup/index.js +7 -6
- package/components/Badge/Badge.config.js +30 -145
- package/components/Badge/Badge.js +11 -11
- package/components/Badge/index.js +7 -6
- package/components/Breadcrumbs/Breadcrumbs.config.js +18 -60
- package/components/Breadcrumbs/Breadcrumbs.js +12 -12
- package/components/Breadcrumbs/index.js +7 -6
- package/components/Button/Button.config.js +30 -174
- package/components/Button/Button.js +41 -146
- package/components/Button/index.js +7 -6
- package/components/ButtonBase/index.js +7 -6
- package/components/ButtonGroup/ButtonGroup.config.js +38 -228
- package/components/ButtonGroup/ButtonGroup.js +11 -11
- package/components/ButtonGroup/index.js +7 -6
- package/components/Calendar/Calendar.js +18 -39
- package/components/Calendar/CalendarBase.config.js +18 -128
- package/components/Calendar/CalendarDouble.config.js +18 -128
- package/components/Calendar/index.js +32 -24
- package/components/Card/Card.config.js +20 -81
- package/components/Card/Card.js +23 -22
- package/components/Card/index.js +20 -18
- package/components/Cell/Cell.config.js +16 -110
- package/components/Cell/Cell.js +12 -12
- package/components/Cell/index.js +33 -25
- package/components/Checkbox/Checkbox.config.js +25 -104
- package/components/Checkbox/Checkbox.js +11 -12
- package/components/Checkbox/index.js +7 -6
- package/components/Chip/Chip.config.js +25 -162
- package/components/Chip/Chip.js +12 -12
- package/components/Chip/index.js +7 -6
- package/components/ChipGroup/ChipGroup.config.js +24 -127
- package/components/ChipGroup/ChipGroup.js +7 -11
- package/components/ChipGroup/index.js +7 -6
- package/components/Combobox/Combobox.config.js +30 -313
- package/components/Combobox/Combobox.js +15 -50
- package/components/Combobox/index.js +7 -6
- package/components/Counter/Counter.config.js +21 -95
- package/components/Counter/Counter.js +11 -11
- package/components/Counter/index.js +15 -16
- package/components/DatePicker/DatePicker.config.js +24 -264
- package/components/DatePicker/DatePicker.js +9 -21
- package/components/DatePicker/index.js +27 -22
- package/components/Divider/Divider.config.js +27 -109
- package/components/Divider/Divider.js +11 -11
- package/components/Divider/index.js +15 -16
- package/components/Drawer/Drawer.config.js +22 -79
- package/components/Drawer/Drawer.js +29 -31
- package/components/Drawer/index.js +26 -21
- package/components/Dropdown/Dropdown.config.js +18 -94
- package/components/Dropdown/Dropdown.js +15 -50
- package/components/Dropdown/index.js +7 -6
- package/components/Dropzone/Dropzone.config.js +21 -86
- package/components/Dropzone/Dropzone.js +7 -11
- package/components/Dropzone/index.js +21 -19
- package/components/EmptyState/EmptyState.config.js +18 -114
- package/components/EmptyState/EmptyState.js +7 -19
- package/components/EmptyState/index.js +7 -6
- package/components/Flow/Flow.config.js +7 -11
- package/components/Flow/Flow.js +7 -11
- package/components/Flow/index.js +7 -6
- package/components/Grid/Grid.config.js +19 -71
- package/components/Grid/Grid.js +18 -21
- package/components/Grid/index.js +20 -18
- package/components/IconButton/IconButton.config.js +28 -146
- package/components/IconButton/IconButton.js +12 -12
- package/components/IconButton/index.js +7 -6
- package/components/Image/Image.component-test.js +92 -0
- package/components/Image/Image.js +11 -11
- package/components/Image/index.js +7 -6
- package/components/Indicator/Indicator.config.js +26 -138
- package/components/Indicator/Indicator.js +7 -19
- package/components/Indicator/index.js +7 -6
- package/components/Link/Link.config.js +29 -214
- package/components/Link/Link.js +11 -12
- package/components/Link/index.js +7 -6
- package/components/Mask/Mask.js +6 -10
- package/components/Mask/index.js +7 -6
- package/components/Modal/Modal.config.js +15 -47
- package/components/Modal/Modal.js +12 -12
- package/components/Modal/index.js +15 -16
- package/components/Notification/Notification.config.js +26 -163
- package/components/Notification/Notification.js +23 -38
- package/components/Notification/index.js +27 -22
- package/components/NumberFormat/NumberFormat.js +13 -10
- package/components/NumberFormat/index.js +7 -6
- package/components/NumberInput/NumberInput.config.js +34 -154
- package/components/NumberInput/NumberInput.js +7 -11
- package/components/NumberInput/index.js +21 -19
- package/components/Overlay/index.js +7 -6
- package/components/Pagination/Pagination.component-test.js +298 -0
- package/components/Pagination/Pagination.config.js +26 -139
- package/components/Pagination/Pagination.js +12 -12
- package/components/Pagination/index.js +7 -6
- package/components/Popover/Popover.config.js +15 -43
- package/components/Popover/Popover.js +7 -11
- package/components/Popover/index.js +7 -6
- package/components/Popup/Popup.js +10 -10
- package/components/Popup/index.js +27 -22
- package/components/Portal/index.js +7 -6
- package/components/Price/Price.config.js +11 -15
- package/components/Price/Price.js +12 -12
- package/components/Price/index.js +15 -16
- package/components/Progress/Progress.config.js +21 -95
- package/components/Progress/Progress.js +8 -12
- package/components/Progress/index.js +7 -6
- package/components/Radiobox/Radiobox.config.js +31 -106
- package/components/Radiobox/Radiobox.js +16 -19
- package/components/Radiobox/index.js +14 -15
- package/components/Range/Range.config.js +24 -157
- package/components/Range/Range.js +11 -11
- package/components/Range/index.js +15 -16
- package/components/Rating/Rating.config.js +20 -117
- package/components/Rating/Rating.js +7 -11
- package/components/Rating/index.js +21 -19
- package/components/SSRProvider/index.js +7 -6
- package/components/Segment/Segment.js +32 -27
- package/components/Segment/SegmentGroup.config.js +34 -130
- package/components/Segment/SegmentItem.config.js +25 -124
- package/components/Segment/index.js +26 -21
- package/components/Select/Select.config.js +35 -305
- package/components/Select/Select.js +15 -50
- package/components/Select/index.js +7 -6
- package/components/Sheet/Sheet.config.js +18 -63
- package/components/Sheet/Sheet.js +12 -12
- package/components/Sheet/index.js +15 -16
- package/components/Skeleton/LineSkeleton.config.js +31 -230
- package/components/Skeleton/Skeleton.js +20 -25
- package/components/Skeleton/index.js +26 -21
- package/components/Slider/Slider.component-test.js +223 -0
- package/components/Slider/Slider.config.js +22 -147
- package/components/Slider/Slider.js +13 -12
- package/components/Slider/index.js +7 -6
- package/components/Spinner/Spinner.config.js +23 -107
- package/components/Spinner/Spinner.js +15 -23
- package/components/Spinner/index.js +7 -6
- package/components/Steps/Steps.config.js +18 -105
- package/components/Steps/Steps.js +8 -12
- package/components/Steps/index.js +7 -6
- package/components/Switch/Switch.config.js +31 -149
- package/components/Switch/Switch.js +8 -12
- package/components/Switch/index.js +7 -6
- package/components/Table/Table.config.js +21 -257
- package/components/Table/Table.js +12 -12
- package/components/Table/index.js +7 -6
- package/components/Tabs/TabItem.js +21 -26
- package/components/Tabs/Tabs.js +21 -26
- package/components/Tabs/TabsController.js +16 -15
- package/components/Tabs/horizontal/HorizontalTabItem.config.js +30 -230
- package/components/Tabs/horizontal/HorizontalTabs.config.js +37 -266
- package/components/Tabs/index.js +35 -27
- package/components/Tabs/vertical/VerticalTabItem.config.js +24 -125
- package/components/Tabs/vertical/VerticalTabs.config.js +24 -98
- package/components/TextArea/TextArea.config.js +42 -367
- package/components/TextArea/TextArea.js +12 -12
- package/components/TextArea/index.js +7 -6
- package/components/TextField/TextField.config.js +40 -338
- package/components/TextField/TextField.js +11 -11
- package/components/TextField/index.js +15 -16
- package/components/Toast/Toast.config.js +35 -127
- package/components/Toast/Toast.js +14 -26
- package/components/Toast/index.js +20 -18
- package/components/ToastNew/ToastNew.config.js +21 -80
- package/components/ToastNew/ToastNew.js +8 -20
- package/components/ToastNew/index.js +14 -15
- package/components/Tokens/Colors/Colors.styles.js +51 -147
- package/components/Tokens/NumberTokens/NumberTokens.styles.js +23 -70
- package/components/Tokens/Typography/Typography.styles.js +76 -204
- package/components/Toolbar/Toolbar.config.js +18 -57
- package/components/Toolbar/Toolbar.js +13 -21
- package/components/Toolbar/index.js +21 -19
- package/components/Tooltip/Tooltip.config.js +19 -71
- package/components/Tooltip/Tooltip.js +7 -11
- package/components/Tooltip/index.js +7 -6
- package/components/Tree/Tree.config.js +18 -83
- package/components/Tree/Tree.js +7 -11
- package/components/Tree/index.js +7 -6
- package/components/Typography/Body.config.js +47 -161
- package/components/Typography/Dspl.config.js +31 -105
- package/components/Typography/Heading.config.js +47 -161
- package/components/Typography/Text.config.js +39 -133
- package/components/Typography/Typography.js +59 -116
- package/components/Typography/index.js +106 -62
- package/components/ViewContainer/ViewContainer.config.js +14 -46
- package/components/ViewContainer/ViewContainer.js +7 -11
- package/components/ViewContainer/index.js +7 -6
- package/emotion/cjs/components/Accordion/Accordion.config.js +19 -101
- package/emotion/cjs/components/Accordion/Accordion.js +12 -18
- package/emotion/cjs/components/Accordion/Accordion.stories.tsx +159 -0
- package/emotion/cjs/components/Accordion/index.js +14 -15
- package/emotion/cjs/components/Attach/Attach.config.js +26 -267
- package/emotion/cjs/components/Attach/Attach.js +11 -11
- package/emotion/cjs/components/Attach/Attach.stories.tsx +157 -0
- package/emotion/cjs/components/Attach/index.js +7 -6
- package/emotion/cjs/components/Autocomplete/Autocomplete.config.js +30 -247
- package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -11
- package/emotion/cjs/components/Autocomplete/Autocomplete.stories.tsx +170 -0
- package/emotion/cjs/components/Autocomplete/index.js +7 -6
- package/emotion/cjs/components/Avatar/Avatar.config.js +31 -197
- package/emotion/cjs/components/Avatar/Avatar.js +7 -19
- package/emotion/cjs/components/Avatar/Avatar.stories.tsx +74 -0
- package/emotion/cjs/components/Avatar/index.js +7 -6
- package/emotion/cjs/components/AvatarGroup/AvatarGroup.js +6 -10
- package/emotion/cjs/components/AvatarGroup/AvatarGroup.stories.tsx +71 -0
- package/emotion/cjs/components/AvatarGroup/index.js +7 -6
- package/emotion/cjs/components/Badge/Badge.config.js +30 -145
- package/emotion/cjs/components/Badge/Badge.js +11 -11
- package/emotion/cjs/components/Badge/Badge.stories.tsx +87 -0
- package/emotion/cjs/components/Badge/index.js +7 -6
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +18 -60
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +12 -12
- package/emotion/cjs/components/Breadcrumbs/Breadcrumbs.stories.tsx +82 -0
- package/emotion/cjs/components/Breadcrumbs/index.js +7 -6
- package/emotion/cjs/components/Button/Button.config.js +30 -174
- package/emotion/cjs/components/Button/Button.js +41 -146
- package/emotion/cjs/components/Button/Button.stories.tsx +212 -0
- package/emotion/cjs/components/Button/index.js +7 -6
- package/emotion/cjs/components/ButtonBase/index.js +7 -6
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +38 -228
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.js +11 -11
- package/emotion/cjs/components/ButtonGroup/ButtonGroup.stories.tsx +109 -0
- package/emotion/cjs/components/ButtonGroup/index.js +7 -6
- package/emotion/cjs/components/Calendar/Calendar.js +18 -39
- package/emotion/cjs/components/Calendar/Calendar.stories.tsx +304 -0
- package/emotion/cjs/components/Calendar/CalendarBase.config.js +18 -128
- package/emotion/cjs/components/Calendar/CalendarDouble.config.js +18 -128
- package/emotion/cjs/components/Calendar/index.js +32 -24
- package/emotion/cjs/components/Card/Card.config.js +20 -81
- package/emotion/cjs/components/Card/Card.js +23 -22
- package/emotion/cjs/components/Card/Card.stories.tsx +281 -0
- package/emotion/cjs/components/Card/index.js +20 -18
- package/emotion/cjs/components/Cell/Cell.config.js +16 -110
- package/emotion/cjs/components/Cell/Cell.js +12 -12
- package/emotion/cjs/components/Cell/Cell.stories.tsx +97 -0
- package/emotion/cjs/components/Cell/index.js +33 -25
- package/emotion/cjs/components/Checkbox/Checkbox.config.js +25 -104
- package/emotion/cjs/components/Checkbox/Checkbox.js +11 -12
- package/emotion/cjs/components/Checkbox/Checkbox.stories.tsx +232 -0
- package/emotion/cjs/components/Checkbox/index.js +7 -6
- package/emotion/cjs/components/Chip/Chip.config.js +25 -162
- package/emotion/cjs/components/Chip/Chip.js +12 -12
- package/emotion/cjs/components/Chip/Chip.stories.tsx +93 -0
- package/emotion/cjs/components/Chip/index.js +7 -6
- package/emotion/cjs/components/ChipGroup/ChipGroup.config.js +24 -127
- package/emotion/cjs/components/ChipGroup/ChipGroup.js +7 -11
- package/emotion/cjs/components/ChipGroup/ChipGroup.stories.tsx +79 -0
- package/emotion/cjs/components/ChipGroup/index.js +7 -6
- package/emotion/cjs/components/Combobox/Combobox.config.js +30 -313
- package/emotion/cjs/components/Combobox/Combobox.js +15 -50
- package/emotion/cjs/components/Combobox/Combobox.stories.tsx +604 -0
- package/emotion/cjs/components/Combobox/index.js +7 -6
- package/emotion/cjs/components/Counter/Counter.config.js +21 -95
- package/emotion/cjs/components/Counter/Counter.js +11 -11
- package/emotion/cjs/components/Counter/Counter.stories.tsx +34 -0
- package/emotion/cjs/components/Counter/index.js +15 -16
- package/emotion/cjs/components/DatePicker/DatePicker.config.js +24 -264
- package/emotion/cjs/components/DatePicker/DatePicker.js +9 -21
- package/emotion/cjs/components/DatePicker/DatePicker.stories.tsx +309 -0
- package/emotion/cjs/components/DatePicker/index.js +27 -22
- package/emotion/cjs/components/Divider/Divider.config.js +27 -109
- package/emotion/cjs/components/Divider/Divider.js +11 -11
- package/emotion/cjs/components/Divider/Divider.stories.tsx +58 -0
- package/emotion/cjs/components/Divider/index.js +15 -16
- package/emotion/cjs/components/Drawer/Drawer.config.js +22 -79
- package/emotion/cjs/components/Drawer/Drawer.js +29 -31
- package/emotion/cjs/components/Drawer/Drawer.stories.tsx +217 -0
- package/emotion/cjs/components/Drawer/index.js +26 -21
- package/emotion/cjs/components/Dropdown/Dropdown.config.js +18 -94
- package/emotion/cjs/components/Dropdown/Dropdown.js +15 -50
- package/emotion/cjs/components/Dropdown/Dropdown.stories.tsx +331 -0
- package/emotion/cjs/components/Dropdown/index.js +7 -6
- package/emotion/cjs/components/Dropzone/Dropzone.config.js +21 -86
- package/emotion/cjs/components/Dropzone/Dropzone.js +7 -11
- package/emotion/cjs/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/cjs/components/Dropzone/index.js +21 -19
- package/emotion/cjs/components/EmptyState/EmptyState.config.js +18 -114
- package/emotion/cjs/components/EmptyState/EmptyState.js +7 -19
- package/emotion/cjs/components/EmptyState/EmptyState.stories.tsx +43 -0
- package/emotion/cjs/components/EmptyState/index.js +7 -6
- package/emotion/cjs/components/Flow/Flow.config.js +7 -11
- package/emotion/cjs/components/Flow/Flow.js +7 -11
- package/emotion/cjs/components/Flow/Flow.stories.tsx +133 -0
- package/emotion/cjs/components/Flow/index.js +7 -6
- package/emotion/cjs/components/Grid/Grid.config.js +19 -71
- package/emotion/cjs/components/Grid/Grid.js +18 -21
- package/emotion/cjs/components/Grid/Grid.stories.tsx +119 -0
- package/emotion/cjs/components/Grid/index.js +20 -18
- package/emotion/cjs/components/IconButton/IconButton.config.js +28 -146
- package/emotion/cjs/components/IconButton/IconButton.js +12 -12
- package/emotion/cjs/components/IconButton/IconButton.stories.tsx +94 -0
- package/emotion/cjs/components/IconButton/index.js +7 -6
- package/emotion/cjs/components/Image/Image.component-test.js +91 -0
- package/emotion/cjs/components/Image/Image.js +11 -11
- package/emotion/cjs/components/Image/Image.stories.tsx +44 -0
- package/emotion/cjs/components/Image/index.js +7 -6
- package/emotion/cjs/components/Indicator/Indicator.config.js +26 -138
- package/emotion/cjs/components/Indicator/Indicator.js +7 -19
- package/emotion/cjs/components/Indicator/Indicator.stories.tsx +34 -0
- package/emotion/cjs/components/Indicator/index.js +7 -6
- package/emotion/cjs/components/Link/Link.config.js +29 -214
- package/emotion/cjs/components/Link/Link.js +11 -12
- package/emotion/cjs/components/Link/Link.stories.tsx +57 -0
- package/emotion/cjs/components/Link/index.js +7 -6
- package/emotion/cjs/components/Mask/Mask.js +6 -10
- package/emotion/cjs/components/Mask/Mask.stories.tsx +176 -0
- package/emotion/cjs/components/Mask/index.js +7 -6
- package/emotion/cjs/components/Modal/Modal.config.js +15 -47
- package/emotion/cjs/components/Modal/Modal.js +12 -12
- package/emotion/cjs/components/Modal/Modal.stories.tsx +426 -0
- package/emotion/cjs/components/Modal/index.js +15 -16
- package/emotion/cjs/components/Notification/Notification.config.js +26 -163
- package/emotion/cjs/components/Notification/Notification.js +23 -38
- package/emotion/cjs/components/Notification/Notification.stories.tsx +221 -0
- package/emotion/cjs/components/Notification/index.js +27 -22
- package/emotion/cjs/components/NumberFormat/NumberFormat.js +13 -10
- package/emotion/cjs/components/NumberFormat/NumberFormat.stories.tsx +186 -0
- package/emotion/cjs/components/NumberFormat/index.js +7 -6
- package/emotion/cjs/components/NumberInput/NumberInput.config.js +34 -154
- package/emotion/cjs/components/NumberInput/NumberInput.js +7 -11
- package/emotion/cjs/components/NumberInput/NumberInput.stories.tsx +81 -0
- package/emotion/cjs/components/NumberInput/index.js +21 -19
- package/emotion/cjs/components/Overlay/Overlay.stories.tsx +76 -0
- package/emotion/cjs/components/Overlay/index.js +7 -6
- package/emotion/cjs/components/Pagination/Pagination.component-test.js +298 -0
- package/emotion/cjs/components/Pagination/Pagination.config.js +26 -139
- package/emotion/cjs/components/Pagination/Pagination.js +12 -12
- package/emotion/cjs/components/Pagination/Pagination.stories.tsx +139 -0
- package/emotion/cjs/components/Pagination/index.js +7 -6
- package/emotion/cjs/components/Popover/Popover.config.js +15 -43
- package/emotion/cjs/components/Popover/Popover.js +7 -11
- package/emotion/cjs/components/Popover/Popover.stories.tsx +127 -0
- package/emotion/cjs/components/Popover/index.js +7 -6
- package/emotion/cjs/components/Popover/style.css +4 -0
- package/emotion/cjs/components/Popup/Popup.js +10 -10
- package/emotion/cjs/components/Popup/Popup.stories.tsx +171 -0
- package/emotion/cjs/components/Popup/index.js +27 -22
- package/emotion/cjs/components/Portal/Portal.stories.tsx +57 -0
- package/emotion/cjs/components/Portal/index.js +7 -6
- package/emotion/cjs/components/Price/Price.config.js +11 -15
- package/emotion/cjs/components/Price/Price.js +12 -12
- package/emotion/cjs/components/Price/Price.stories.tsx +34 -0
- package/emotion/cjs/components/Price/index.js +15 -16
- package/emotion/cjs/components/Progress/Progress.config.js +21 -95
- package/emotion/cjs/components/Progress/Progress.js +8 -12
- package/emotion/cjs/components/Progress/Progress.stories.tsx +32 -0
- package/emotion/cjs/components/Progress/index.js +7 -6
- package/emotion/cjs/components/Radiobox/Radiobox.config.js +31 -106
- package/emotion/cjs/components/Radiobox/Radiobox.js +16 -19
- package/emotion/cjs/components/Radiobox/Radiobox.stories.tsx +139 -0
- package/emotion/cjs/components/Radiobox/index.js +14 -15
- package/emotion/cjs/components/Range/Range.config.js +24 -157
- package/emotion/cjs/components/Range/Range.js +11 -11
- package/emotion/cjs/components/Range/Range.stories.tsx +343 -0
- package/emotion/cjs/components/Range/index.js +15 -16
- package/emotion/cjs/components/Rating/Rating.config.js +20 -117
- package/emotion/cjs/components/Rating/Rating.js +7 -11
- package/emotion/cjs/components/Rating/Rating.stories.tsx +125 -0
- package/emotion/cjs/components/Rating/index.js +21 -19
- package/emotion/cjs/components/SSRProvider/index.js +7 -6
- package/emotion/cjs/components/Segment/Segment.js +32 -27
- package/emotion/cjs/components/Segment/Segment.stories.tsx +162 -0
- package/emotion/cjs/components/Segment/SegmentGroup.config.js +34 -130
- package/emotion/cjs/components/Segment/SegmentItem.config.js +25 -124
- package/emotion/cjs/components/Segment/index.js +26 -21
- package/emotion/cjs/components/Select/Select.config.js +35 -305
- package/emotion/cjs/components/Select/Select.js +15 -50
- package/emotion/cjs/components/Select/Select.stories.tsx +642 -0
- package/emotion/cjs/components/Select/index.js +7 -6
- package/emotion/cjs/components/Select/style.css +37 -0
- package/emotion/cjs/components/Sheet/Sheet.config.js +18 -63
- package/emotion/cjs/components/Sheet/Sheet.js +12 -12
- package/emotion/cjs/components/Sheet/Sheet.stories.tsx +361 -0
- package/emotion/cjs/components/Sheet/index.js +15 -16
- package/emotion/cjs/components/Skeleton/LineSkeleton.config.js +31 -230
- package/emotion/cjs/components/Skeleton/Skeleton.js +20 -25
- package/emotion/cjs/components/Skeleton/Skeleton.stories.tsx +116 -0
- package/emotion/cjs/components/Skeleton/index.js +26 -21
- package/emotion/cjs/components/Slider/Slider.component-test.js +223 -0
- package/emotion/cjs/components/Slider/Slider.config.js +22 -147
- package/emotion/cjs/components/Slider/Slider.js +13 -12
- package/emotion/cjs/components/Slider/Slider.stories.tsx +277 -0
- package/emotion/cjs/components/Slider/index.js +7 -6
- package/emotion/cjs/components/Spinner/Spinner.config.js +23 -107
- package/emotion/cjs/components/Spinner/Spinner.js +15 -23
- package/emotion/cjs/components/Spinner/Spinner.stories.tsx +109 -0
- package/emotion/cjs/components/Spinner/index.js +7 -6
- package/emotion/cjs/components/Steps/Steps.config.js +18 -105
- package/emotion/cjs/components/Steps/Steps.js +8 -12
- package/emotion/cjs/components/Steps/Steps.stories.tsx +191 -0
- package/emotion/cjs/components/Steps/index.js +7 -6
- package/emotion/cjs/components/Switch/Switch.config.js +31 -149
- package/emotion/cjs/components/Switch/Switch.js +8 -12
- package/emotion/cjs/components/Switch/Switch.stories.tsx +100 -0
- package/emotion/cjs/components/Switch/index.js +7 -6
- package/emotion/cjs/components/Table/Table.config.js +21 -257
- package/emotion/cjs/components/Table/Table.js +12 -12
- package/emotion/cjs/components/Table/Table.stories.tsx +551 -0
- package/emotion/cjs/components/Table/index.js +7 -6
- package/emotion/cjs/components/Tabs/TabItem.js +21 -26
- package/emotion/cjs/components/Tabs/Tabs.js +21 -26
- package/emotion/cjs/components/Tabs/Tabs.stories.tsx +639 -0
- package/emotion/cjs/components/Tabs/TabsController.js +16 -15
- package/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +30 -230
- package/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +37 -266
- package/emotion/cjs/components/Tabs/index.js +35 -27
- package/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +24 -125
- package/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +24 -98
- package/emotion/cjs/components/TextArea/TextArea.config.js +42 -367
- package/emotion/cjs/components/TextArea/TextArea.js +12 -12
- package/emotion/cjs/components/TextArea/TextArea.stories.tsx +228 -0
- package/emotion/cjs/components/TextArea/index.js +7 -6
- package/emotion/cjs/components/TextField/TextField.config.js +40 -338
- package/emotion/cjs/components/TextField/TextField.js +11 -11
- package/emotion/cjs/components/TextField/TextField.stories.tsx +260 -0
- package/emotion/cjs/components/TextField/index.js +15 -16
- package/emotion/cjs/components/Toast/Toast.config.js +35 -127
- package/emotion/cjs/components/Toast/Toast.js +14 -26
- package/emotion/cjs/components/Toast/Toast.stories.tsx +156 -0
- package/emotion/cjs/components/Toast/index.js +20 -18
- package/emotion/cjs/components/ToastNew/ToastNew.config.js +21 -80
- package/emotion/cjs/components/ToastNew/ToastNew.js +8 -20
- package/emotion/cjs/components/ToastNew/ToastNew.stories.tsx +87 -0
- package/emotion/cjs/components/ToastNew/index.js +14 -15
- package/emotion/cjs/components/Tokens/Colors/Colors.stories.tsx +196 -0
- package/emotion/cjs/components/Tokens/Colors/Colors.styles.js +27 -147
- package/emotion/cjs/components/Tokens/NumberTokens/CornerRadius.stories.tsx +93 -0
- package/emotion/cjs/components/Tokens/NumberTokens/NumberTokens.styles.js +13 -70
- package/emotion/cjs/components/Tokens/NumberTokens/Spacing.stories.tsx +93 -0
- package/emotion/cjs/components/Tokens/Typography/Typography.stories.tsx +277 -0
- package/emotion/cjs/components/Tokens/Typography/Typography.styles.js +44 -204
- package/emotion/cjs/components/Toolbar/Toolbar.config.js +18 -57
- package/emotion/cjs/components/Toolbar/Toolbar.js +13 -21
- package/emotion/cjs/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/emotion/cjs/components/Toolbar/index.js +21 -19
- package/emotion/cjs/components/Tooltip/Tooltip.config.js +19 -71
- package/emotion/cjs/components/Tooltip/Tooltip.js +7 -11
- package/emotion/cjs/components/Tooltip/Tooltip.stories.tsx +152 -0
- package/emotion/cjs/components/Tooltip/index.js +7 -6
- package/emotion/cjs/components/Tree/Tree.config.js +18 -83
- package/emotion/cjs/components/Tree/Tree.js +7 -11
- package/emotion/cjs/components/Tree/Tree.stories.tsx +146 -0
- package/emotion/cjs/components/Tree/index.js +7 -6
- package/emotion/cjs/components/Typography/Body.config.js +47 -161
- package/emotion/cjs/components/Typography/Dspl.config.js +31 -105
- package/emotion/cjs/components/Typography/Heading.config.js +47 -161
- package/emotion/cjs/components/Typography/Text.config.js +39 -133
- package/emotion/cjs/components/Typography/Typography.js +59 -116
- package/emotion/cjs/components/Typography/Typography.stories.tsx +243 -0
- package/emotion/cjs/components/Typography/index.js +106 -62
- package/emotion/cjs/components/ViewContainer/ViewContainer.config.js +14 -46
- package/emotion/cjs/components/ViewContainer/ViewContainer.js +7 -11
- package/emotion/cjs/components/ViewContainer/index.js +7 -6
- package/emotion/cjs/index.js +729 -82
- package/emotion/cjs/mixins/index.js +20 -61
- package/emotion/cjs/tokens/index.js +255 -126
- package/emotion/es/components/Accordion/Accordion.config.js +14 -92
- package/emotion/es/components/Accordion/Accordion.js +3 -3
- package/emotion/es/components/Accordion/Accordion.stories.tsx +159 -0
- package/emotion/es/components/Accordion/index.js +1 -1
- package/emotion/es/components/Attach/Attach.config.js +21 -258
- package/emotion/es/components/Attach/Attach.js +4 -2
- package/emotion/es/components/Attach/Attach.stories.tsx +157 -0
- package/emotion/es/components/Attach/index.js +1 -1
- package/emotion/es/components/Autocomplete/Autocomplete.config.js +25 -238
- package/emotion/es/components/Autocomplete/Autocomplete.js +2 -2
- package/emotion/es/components/Autocomplete/Autocomplete.stories.tsx +170 -0
- package/emotion/es/components/Autocomplete/index.js +1 -1
- package/emotion/es/components/Avatar/Avatar.config.js +26 -188
- package/emotion/es/components/Avatar/Avatar.js +3 -3
- package/emotion/es/components/Avatar/Avatar.stories.tsx +74 -0
- package/emotion/es/components/Avatar/index.js +1 -1
- package/emotion/es/components/AvatarGroup/AvatarGroup.js +2 -2
- package/emotion/es/components/AvatarGroup/AvatarGroup.stories.tsx +71 -0
- package/emotion/es/components/AvatarGroup/index.js +1 -1
- package/emotion/es/components/Badge/Badge.config.js +25 -136
- package/emotion/es/components/Badge/Badge.js +4 -2
- package/emotion/es/components/Badge/Badge.stories.tsx +87 -0
- package/emotion/es/components/Badge/index.js +1 -1
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +13 -51
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.js +5 -3
- package/emotion/es/components/Breadcrumbs/Breadcrumbs.stories.tsx +82 -0
- package/emotion/es/components/Breadcrumbs/index.js +1 -1
- package/emotion/es/components/Button/Button.config.js +25 -165
- package/emotion/es/components/Button/Button.js +28 -89
- package/emotion/es/components/Button/Button.stories.tsx +212 -0
- package/emotion/es/components/Button/index.js +1 -1
- package/emotion/es/components/ButtonBase/index.js +1 -1
- package/emotion/es/components/ButtonGroup/ButtonGroup.config.js +33 -219
- package/emotion/es/components/ButtonGroup/ButtonGroup.js +4 -2
- package/emotion/es/components/ButtonGroup/ButtonGroup.stories.tsx +109 -0
- package/emotion/es/components/ButtonGroup/index.js +1 -1
- package/emotion/es/components/Calendar/Calendar.js +12 -12
- package/emotion/es/components/Calendar/Calendar.stories.tsx +304 -0
- package/emotion/es/components/Calendar/CalendarBase.config.js +13 -119
- package/emotion/es/components/Calendar/CalendarDouble.config.js +13 -119
- package/emotion/es/components/Calendar/index.js +1 -1
- package/emotion/es/components/Card/Card.config.js +15 -72
- package/emotion/es/components/Card/Card.js +6 -4
- package/emotion/es/components/Card/Card.stories.tsx +281 -0
- package/emotion/es/components/Card/index.js +1 -1
- package/emotion/es/components/Cell/Cell.config.js +11 -101
- package/emotion/es/components/Cell/Cell.js +5 -3
- package/emotion/es/components/Cell/Cell.stories.tsx +97 -0
- package/emotion/es/components/Cell/index.js +1 -1
- package/emotion/es/components/Checkbox/Checkbox.config.js +20 -95
- package/emotion/es/components/Checkbox/Checkbox.js +4 -3
- package/emotion/es/components/Checkbox/Checkbox.stories.tsx +232 -0
- package/emotion/es/components/Checkbox/index.js +1 -1
- package/emotion/es/components/Chip/Chip.config.js +20 -153
- package/emotion/es/components/Chip/Chip.js +5 -3
- package/emotion/es/components/Chip/Chip.stories.tsx +93 -0
- package/emotion/es/components/Chip/index.js +1 -1
- package/emotion/es/components/ChipGroup/ChipGroup.config.js +19 -118
- package/emotion/es/components/ChipGroup/ChipGroup.js +2 -2
- package/emotion/es/components/ChipGroup/ChipGroup.stories.tsx +79 -0
- package/emotion/es/components/ChipGroup/index.js +1 -1
- package/emotion/es/components/Combobox/Combobox.config.js +25 -304
- package/emotion/es/components/Combobox/Combobox.js +9 -36
- package/emotion/es/components/Combobox/Combobox.stories.tsx +604 -0
- package/emotion/es/components/Combobox/index.js +1 -1
- package/emotion/es/components/Counter/Counter.config.js +16 -86
- package/emotion/es/components/Counter/Counter.js +4 -2
- package/emotion/es/components/Counter/Counter.stories.tsx +34 -0
- package/emotion/es/components/Counter/index.js +1 -1
- package/emotion/es/components/DatePicker/DatePicker.config.js +19 -255
- package/emotion/es/components/DatePicker/DatePicker.js +4 -4
- package/emotion/es/components/DatePicker/DatePicker.stories.tsx +309 -0
- package/emotion/es/components/DatePicker/index.js +1 -1
- package/emotion/es/components/Divider/Divider.config.js +22 -100
- package/emotion/es/components/Divider/Divider.js +4 -2
- package/emotion/es/components/Divider/Divider.stories.tsx +58 -0
- package/emotion/es/components/Divider/index.js +1 -1
- package/emotion/es/components/Drawer/Drawer.config.js +17 -70
- package/emotion/es/components/Drawer/Drawer.js +16 -8
- package/emotion/es/components/Drawer/Drawer.stories.tsx +217 -0
- package/emotion/es/components/Drawer/index.js +1 -1
- package/emotion/es/components/Dropdown/Dropdown.config.js +13 -85
- package/emotion/es/components/Dropdown/Dropdown.js +9 -36
- package/emotion/es/components/Dropdown/Dropdown.stories.tsx +331 -0
- package/emotion/es/components/Dropdown/index.js +1 -1
- package/emotion/es/components/Dropzone/Dropzone.config.js +16 -77
- package/emotion/es/components/Dropzone/Dropzone.js +2 -2
- package/emotion/es/components/Dropzone/Dropzone.stories.tsx +58 -0
- package/emotion/es/components/Dropzone/index.js +1 -1
- package/emotion/es/components/EmptyState/EmptyState.config.js +13 -105
- package/emotion/es/components/EmptyState/EmptyState.js +2 -2
- package/emotion/es/components/EmptyState/EmptyState.stories.tsx +43 -0
- package/emotion/es/components/EmptyState/index.js +1 -1
- package/emotion/es/components/Flow/Flow.config.js +3 -3
- package/emotion/es/components/Flow/Flow.js +2 -2
- package/emotion/es/components/Flow/Flow.stories.tsx +133 -0
- package/emotion/es/components/Flow/index.js +1 -1
- package/emotion/es/components/Grid/Grid.config.js +14 -62
- package/emotion/es/components/Grid/Grid.js +2 -2
- package/emotion/es/components/Grid/Grid.stories.tsx +119 -0
- package/emotion/es/components/Grid/index.js +1 -1
- package/emotion/es/components/IconButton/IconButton.config.js +23 -137
- package/emotion/es/components/IconButton/IconButton.js +5 -3
- package/emotion/es/components/IconButton/IconButton.stories.tsx +94 -0
- package/emotion/es/components/IconButton/index.js +1 -1
- package/emotion/es/components/Image/Image.component-test.js +85 -0
- package/emotion/es/components/Image/Image.js +5 -3
- package/emotion/es/components/Image/Image.stories.tsx +44 -0
- package/emotion/es/components/Image/index.js +1 -1
- package/emotion/es/components/Indicator/Indicator.config.js +21 -129
- package/emotion/es/components/Indicator/Indicator.js +3 -3
- package/emotion/es/components/Indicator/Indicator.stories.tsx +34 -0
- package/emotion/es/components/Indicator/index.js +1 -1
- package/emotion/es/components/Link/Link.config.js +24 -205
- package/emotion/es/components/Link/Link.js +4 -3
- package/emotion/es/components/Link/Link.stories.tsx +57 -0
- package/emotion/es/components/Link/index.js +1 -1
- package/emotion/es/components/Mask/Mask.js +1 -1
- package/emotion/es/components/Mask/Mask.stories.tsx +176 -0
- package/emotion/es/components/Mask/index.js +1 -1
- package/emotion/es/components/Modal/Modal.config.js +10 -38
- package/emotion/es/components/Modal/Modal.js +5 -3
- package/emotion/es/components/Modal/Modal.stories.tsx +426 -0
- package/emotion/es/components/Modal/index.js +1 -1
- package/emotion/es/components/Notification/Notification.config.js +21 -154
- package/emotion/es/components/Notification/Notification.js +15 -11
- package/emotion/es/components/Notification/Notification.stories.tsx +221 -0
- package/emotion/es/components/Notification/index.js +1 -1
- package/emotion/es/components/NumberFormat/NumberFormat.js +9 -1
- package/emotion/es/components/NumberFormat/NumberFormat.stories.tsx +186 -0
- package/emotion/es/components/NumberFormat/index.js +1 -1
- package/emotion/es/components/NumberInput/NumberInput.config.js +29 -145
- package/emotion/es/components/NumberInput/NumberInput.js +2 -2
- package/emotion/es/components/NumberInput/NumberInput.stories.tsx +81 -0
- package/emotion/es/components/NumberInput/index.js +1 -1
- package/emotion/es/components/Overlay/Overlay.stories.tsx +76 -0
- package/emotion/es/components/Overlay/index.js +1 -1
- package/emotion/es/components/Pagination/Pagination.component-test.js +293 -0
- package/emotion/es/components/Pagination/Pagination.config.js +21 -130
- package/emotion/es/components/Pagination/Pagination.js +5 -3
- package/emotion/es/components/Pagination/Pagination.stories.tsx +139 -0
- package/emotion/es/components/Pagination/index.js +1 -1
- package/emotion/es/components/Popover/Popover.config.js +10 -34
- package/emotion/es/components/Popover/Popover.js +2 -2
- package/emotion/es/components/Popover/Popover.stories.tsx +127 -0
- package/emotion/es/components/Popover/index.js +1 -1
- package/emotion/es/components/Popover/style.css +4 -0
- package/emotion/es/components/Popup/Popup.js +4 -2
- package/emotion/es/components/Popup/Popup.stories.tsx +171 -0
- package/emotion/es/components/Popup/index.js +1 -1
- package/emotion/es/components/Portal/Portal.stories.tsx +57 -0
- package/emotion/es/components/Portal/index.js +1 -1
- package/emotion/es/components/Price/Price.config.js +7 -7
- package/emotion/es/components/Price/Price.js +5 -3
- package/emotion/es/components/Price/Price.stories.tsx +34 -0
- package/emotion/es/components/Price/index.js +1 -1
- package/emotion/es/components/Progress/Progress.config.js +16 -86
- package/emotion/es/components/Progress/Progress.js +3 -3
- package/emotion/es/components/Progress/Progress.stories.tsx +32 -0
- package/emotion/es/components/Progress/index.js +1 -1
- package/emotion/es/components/Radiobox/Radiobox.config.js +26 -97
- package/emotion/es/components/Radiobox/Radiobox.js +5 -4
- package/emotion/es/components/Radiobox/Radiobox.stories.tsx +139 -0
- package/emotion/es/components/Radiobox/index.js +1 -1
- package/emotion/es/components/Range/Range.config.js +19 -148
- package/emotion/es/components/Range/Range.js +4 -2
- package/emotion/es/components/Range/Range.stories.tsx +343 -0
- package/emotion/es/components/Range/index.js +1 -1
- package/emotion/es/components/Rating/Rating.config.js +15 -108
- package/emotion/es/components/Rating/Rating.js +2 -2
- package/emotion/es/components/Rating/Rating.stories.tsx +125 -0
- package/emotion/es/components/Rating/index.js +1 -1
- package/emotion/es/components/SSRProvider/index.js +1 -1
- package/emotion/es/components/Segment/Segment.js +10 -5
- package/emotion/es/components/Segment/Segment.stories.tsx +162 -0
- package/emotion/es/components/Segment/SegmentGroup.config.js +29 -121
- package/emotion/es/components/Segment/SegmentItem.config.js +20 -115
- package/emotion/es/components/Segment/index.js +1 -1
- package/emotion/es/components/Select/Select.config.js +29 -295
- package/emotion/es/components/Select/Select.js +9 -36
- package/emotion/es/components/Select/Select.stories.tsx +642 -0
- package/emotion/es/components/Select/index.js +1 -1
- package/emotion/es/components/Select/style.css +37 -0
- package/emotion/es/components/Sheet/Sheet.config.js +13 -54
- package/emotion/es/components/Sheet/Sheet.js +5 -3
- package/emotion/es/components/Sheet/Sheet.stories.tsx +361 -0
- package/emotion/es/components/Sheet/index.js +1 -1
- package/emotion/es/components/Skeleton/LineSkeleton.config.js +26 -221
- package/emotion/es/components/Skeleton/Skeleton.js +4 -4
- package/emotion/es/components/Skeleton/Skeleton.stories.tsx +116 -0
- package/emotion/es/components/Skeleton/index.js +1 -1
- package/emotion/es/components/Slider/Slider.component-test.js +220 -0
- package/emotion/es/components/Slider/Slider.config.js +17 -138
- package/emotion/es/components/Slider/Slider.js +5 -3
- package/emotion/es/components/Slider/Slider.stories.tsx +277 -0
- package/emotion/es/components/Slider/index.js +1 -1
- package/emotion/es/components/Spinner/Spinner.config.js +18 -98
- package/emotion/es/components/Spinner/Spinner.js +6 -8
- package/emotion/es/components/Spinner/Spinner.stories.tsx +109 -0
- package/emotion/es/components/Spinner/index.js +1 -1
- package/emotion/es/components/Steps/Steps.config.js +13 -96
- package/emotion/es/components/Steps/Steps.js +3 -3
- package/emotion/es/components/Steps/Steps.stories.tsx +191 -0
- package/emotion/es/components/Steps/index.js +1 -1
- package/emotion/es/components/Switch/Switch.config.js +26 -140
- package/emotion/es/components/Switch/Switch.js +3 -3
- package/emotion/es/components/Switch/Switch.stories.tsx +100 -0
- package/emotion/es/components/Switch/index.js +1 -1
- package/emotion/es/components/Table/Table.config.js +16 -248
- package/emotion/es/components/Table/Table.js +5 -3
- package/emotion/es/components/Table/Table.stories.tsx +551 -0
- package/emotion/es/components/Table/index.js +1 -1
- package/emotion/es/components/Tabs/TabItem.js +11 -10
- package/emotion/es/components/Tabs/Tabs.js +11 -10
- package/emotion/es/components/Tabs/Tabs.stories.tsx +639 -0
- package/emotion/es/components/Tabs/TabsController.js +7 -5
- package/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +25 -221
- package/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +32 -257
- package/emotion/es/components/Tabs/index.js +1 -1
- package/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +19 -116
- package/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +19 -89
- package/emotion/es/components/TextArea/TextArea.config.js +37 -358
- package/emotion/es/components/TextArea/TextArea.js +5 -3
- package/emotion/es/components/TextArea/TextArea.stories.tsx +228 -0
- package/emotion/es/components/TextArea/index.js +1 -1
- package/emotion/es/components/TextField/TextField.config.js +35 -329
- package/emotion/es/components/TextField/TextField.js +4 -2
- package/emotion/es/components/TextField/TextField.stories.tsx +260 -0
- package/emotion/es/components/TextField/index.js +1 -1
- package/emotion/es/components/Toast/Toast.config.js +30 -118
- package/emotion/es/components/Toast/Toast.js +4 -4
- package/emotion/es/components/Toast/Toast.stories.tsx +156 -0
- package/emotion/es/components/Toast/index.js +1 -1
- package/emotion/es/components/ToastNew/ToastNew.config.js +16 -71
- package/emotion/es/components/ToastNew/ToastNew.js +3 -3
- package/emotion/es/components/ToastNew/ToastNew.stories.tsx +87 -0
- package/emotion/es/components/ToastNew/index.js +1 -1
- package/emotion/es/components/Tokens/Colors/Colors.stories.tsx +196 -0
- package/emotion/es/components/Tokens/Colors/Colors.styles.js +19 -90
- package/emotion/es/components/Tokens/NumberTokens/CornerRadius.stories.tsx +93 -0
- package/emotion/es/components/Tokens/NumberTokens/NumberTokens.styles.js +8 -37
- package/emotion/es/components/Tokens/NumberTokens/Spacing.stories.tsx +93 -0
- package/emotion/es/components/Tokens/Typography/Typography.stories.tsx +277 -0
- package/emotion/es/components/Tokens/Typography/Typography.styles.js +36 -135
- package/emotion/es/components/Toolbar/Toolbar.config.js +13 -48
- package/emotion/es/components/Toolbar/Toolbar.js +6 -4
- package/emotion/es/components/Toolbar/Toolbar.stories.tsx +64 -0
- package/emotion/es/components/Toolbar/index.js +1 -1
- package/emotion/es/components/Tooltip/Tooltip.config.js +14 -62
- package/emotion/es/components/Tooltip/Tooltip.js +2 -2
- package/emotion/es/components/Tooltip/Tooltip.stories.tsx +152 -0
- package/emotion/es/components/Tooltip/index.js +1 -1
- package/emotion/es/components/Tree/Tree.config.js +13 -74
- package/emotion/es/components/Tree/Tree.js +2 -2
- package/emotion/es/components/Tree/Tree.stories.tsx +146 -0
- package/emotion/es/components/Tree/index.js +1 -1
- package/emotion/es/components/Typography/Body.config.js +38 -131
- package/emotion/es/components/Typography/Dspl.config.js +24 -83
- package/emotion/es/components/Typography/Heading.config.js +38 -131
- package/emotion/es/components/Typography/Text.config.js +31 -107
- package/emotion/es/components/Typography/Typography.js +35 -35
- package/emotion/es/components/Typography/Typography.stories.tsx +243 -0
- package/emotion/es/components/Typography/index.js +1 -1
- package/emotion/es/components/ViewContainer/ViewContainer.config.js +8 -36
- package/emotion/es/components/ViewContainer/ViewContainer.js +2 -2
- package/emotion/es/components/ViewContainer/index.js +1 -1
- package/emotion/es/index.js +1 -2
- package/emotion/es/mixins/index.js +1 -1
- package/emotion/es/tokens/index.js +1 -1
- package/es/components/Accordion/Accordion.config.js +14 -92
- package/es/components/Accordion/Accordion.js +3 -3
- package/es/components/Accordion/index.js +1 -1
- package/es/components/Attach/Attach.config.js +21 -258
- package/es/components/Attach/Attach.js +4 -2
- package/es/components/Attach/index.js +1 -1
- package/es/components/Autocomplete/Autocomplete.config.js +25 -238
- package/es/components/Autocomplete/Autocomplete.js +2 -2
- package/es/components/Autocomplete/index.js +1 -1
- package/es/components/Avatar/Avatar.config.js +26 -188
- package/es/components/Avatar/Avatar.js +3 -3
- package/es/components/Avatar/index.js +1 -1
- package/es/components/AvatarGroup/AvatarGroup.js +2 -2
- package/es/components/AvatarGroup/index.js +1 -1
- package/es/components/Badge/Badge.config.js +25 -136
- package/es/components/Badge/Badge.js +4 -2
- package/es/components/Badge/index.js +1 -1
- package/es/components/Breadcrumbs/Breadcrumbs.config.js +13 -51
- package/es/components/Breadcrumbs/Breadcrumbs.js +5 -3
- package/es/components/Breadcrumbs/index.js +1 -1
- package/es/components/Button/Button.config.js +25 -165
- package/es/components/Button/Button.js +28 -89
- package/es/components/Button/index.js +1 -1
- package/es/components/ButtonBase/index.js +1 -1
- package/es/components/ButtonGroup/ButtonGroup.config.js +33 -219
- package/es/components/ButtonGroup/ButtonGroup.js +4 -2
- package/es/components/ButtonGroup/index.js +1 -1
- package/es/components/Calendar/Calendar.js +12 -12
- package/es/components/Calendar/CalendarBase.config.js +13 -119
- package/es/components/Calendar/CalendarDouble.config.js +13 -119
- package/es/components/Calendar/index.js +1 -1
- package/es/components/Card/Card.config.js +15 -72
- package/es/components/Card/Card.js +6 -4
- package/es/components/Card/index.js +1 -1
- package/es/components/Cell/Cell.config.js +11 -101
- package/es/components/Cell/Cell.js +5 -3
- package/es/components/Cell/index.js +1 -1
- package/es/components/Checkbox/Checkbox.config.js +20 -95
- package/es/components/Checkbox/Checkbox.js +4 -3
- package/es/components/Checkbox/index.js +1 -1
- package/es/components/Chip/Chip.config.js +20 -153
- package/es/components/Chip/Chip.js +5 -3
- package/es/components/Chip/index.js +1 -1
- package/es/components/ChipGroup/ChipGroup.config.js +19 -118
- package/es/components/ChipGroup/ChipGroup.js +2 -2
- package/es/components/ChipGroup/index.js +1 -1
- package/es/components/Combobox/Combobox.config.js +25 -304
- package/es/components/Combobox/Combobox.js +9 -36
- package/es/components/Combobox/index.js +1 -1
- package/es/components/Counter/Counter.config.js +16 -86
- package/es/components/Counter/Counter.js +4 -2
- package/es/components/Counter/index.js +1 -1
- package/es/components/DatePicker/DatePicker.config.js +19 -255
- package/es/components/DatePicker/DatePicker.js +4 -4
- package/es/components/DatePicker/index.js +1 -1
- package/es/components/Divider/Divider.config.js +22 -100
- package/es/components/Divider/Divider.js +4 -2
- package/es/components/Divider/index.js +1 -1
- package/es/components/Drawer/Drawer.config.js +17 -70
- package/es/components/Drawer/Drawer.js +16 -8
- package/es/components/Drawer/index.js +1 -1
- package/es/components/Dropdown/Dropdown.config.js +13 -85
- package/es/components/Dropdown/Dropdown.js +9 -36
- package/es/components/Dropdown/index.js +1 -1
- package/es/components/Dropzone/Dropzone.config.js +16 -77
- package/es/components/Dropzone/Dropzone.js +2 -2
- package/es/components/Dropzone/index.js +1 -1
- package/es/components/EmptyState/EmptyState.config.js +13 -105
- package/es/components/EmptyState/EmptyState.js +2 -2
- package/es/components/EmptyState/index.js +1 -1
- package/es/components/Flow/Flow.config.js +3 -3
- package/es/components/Flow/Flow.js +2 -2
- package/es/components/Flow/index.js +1 -1
- package/es/components/Grid/Grid.config.js +14 -62
- package/es/components/Grid/Grid.js +2 -2
- package/es/components/Grid/index.js +1 -1
- package/es/components/IconButton/IconButton.config.js +23 -137
- package/es/components/IconButton/IconButton.js +5 -3
- package/es/components/IconButton/index.js +1 -1
- package/es/components/Image/Image.component-test.js +86 -0
- package/es/components/Image/Image.js +5 -3
- package/es/components/Image/index.js +1 -1
- package/es/components/Indicator/Indicator.config.js +21 -129
- package/es/components/Indicator/Indicator.js +3 -3
- package/es/components/Indicator/index.js +1 -1
- package/es/components/Link/Link.config.js +24 -205
- package/es/components/Link/Link.js +4 -3
- package/es/components/Link/index.js +1 -1
- package/es/components/Mask/Mask.js +1 -1
- package/es/components/Mask/index.js +1 -1
- package/es/components/Modal/Modal.config.js +10 -38
- package/es/components/Modal/Modal.js +5 -3
- package/es/components/Modal/index.js +1 -1
- package/es/components/Notification/Notification.config.js +21 -154
- package/es/components/Notification/Notification.js +15 -11
- package/es/components/Notification/index.js +1 -1
- package/es/components/NumberFormat/NumberFormat.js +9 -1
- package/es/components/NumberFormat/index.js +1 -1
- package/es/components/NumberInput/NumberInput.config.js +29 -145
- package/es/components/NumberInput/NumberInput.js +2 -2
- package/es/components/NumberInput/index.js +1 -1
- package/es/components/Overlay/index.js +1 -1
- package/es/components/Pagination/Pagination.component-test.js +293 -0
- package/es/components/Pagination/Pagination.config.js +21 -130
- package/es/components/Pagination/Pagination.js +5 -3
- package/es/components/Pagination/index.js +1 -1
- package/es/components/Popover/Popover.config.js +10 -34
- package/es/components/Popover/Popover.js +2 -2
- package/es/components/Popover/index.js +1 -1
- package/es/components/Popup/Popup.js +4 -2
- package/es/components/Popup/index.js +1 -1
- package/es/components/Portal/index.js +1 -1
- package/es/components/Price/Price.config.js +7 -7
- package/es/components/Price/Price.js +5 -3
- package/es/components/Price/index.js +1 -1
- package/es/components/Progress/Progress.config.js +16 -86
- package/es/components/Progress/Progress.js +3 -3
- package/es/components/Progress/index.js +1 -1
- package/es/components/Radiobox/Radiobox.config.js +26 -97
- package/es/components/Radiobox/Radiobox.js +5 -4
- package/es/components/Radiobox/index.js +1 -1
- package/es/components/Range/Range.config.js +19 -148
- package/es/components/Range/Range.js +4 -2
- package/es/components/Range/index.js +1 -1
- package/es/components/Rating/Rating.config.js +15 -108
- package/es/components/Rating/Rating.js +2 -2
- package/es/components/Rating/index.js +1 -1
- package/es/components/SSRProvider/index.js +1 -1
- package/es/components/Segment/Segment.js +10 -5
- package/es/components/Segment/SegmentGroup.config.js +29 -121
- package/es/components/Segment/SegmentItem.config.js +20 -115
- package/es/components/Segment/index.js +1 -1
- package/es/components/Select/Select.config.js +29 -295
- package/es/components/Select/Select.js +9 -36
- package/es/components/Select/index.js +1 -1
- package/es/components/Sheet/Sheet.config.js +13 -54
- package/es/components/Sheet/Sheet.js +5 -3
- package/es/components/Sheet/index.js +1 -1
- package/es/components/Skeleton/LineSkeleton.config.js +26 -221
- package/es/components/Skeleton/Skeleton.js +4 -4
- package/es/components/Skeleton/index.js +1 -1
- package/es/components/Slider/Slider.component-test.js +220 -0
- package/es/components/Slider/Slider.config.js +17 -138
- package/es/components/Slider/Slider.js +5 -3
- package/es/components/Slider/index.js +1 -1
- package/es/components/Spinner/Spinner.config.js +18 -98
- package/es/components/Spinner/Spinner.js +6 -8
- package/es/components/Spinner/index.js +1 -1
- package/es/components/Steps/Steps.config.js +13 -96
- package/es/components/Steps/Steps.js +3 -3
- package/es/components/Steps/index.js +1 -1
- package/es/components/Switch/Switch.config.js +26 -140
- package/es/components/Switch/Switch.js +3 -3
- package/es/components/Switch/index.js +1 -1
- package/es/components/Table/Table.config.js +16 -248
- package/es/components/Table/Table.js +5 -3
- package/es/components/Table/index.js +1 -1
- package/es/components/Tabs/TabItem.js +11 -10
- package/es/components/Tabs/Tabs.js +11 -10
- package/es/components/Tabs/TabsController.js +7 -5
- package/es/components/Tabs/horizontal/HorizontalTabItem.config.js +25 -221
- package/es/components/Tabs/horizontal/HorizontalTabs.config.js +32 -257
- package/es/components/Tabs/index.js +1 -1
- package/es/components/Tabs/vertical/VerticalTabItem.config.js +19 -116
- package/es/components/Tabs/vertical/VerticalTabs.config.js +19 -89
- package/es/components/TextArea/TextArea.config.js +37 -358
- package/es/components/TextArea/TextArea.js +5 -3
- package/es/components/TextArea/index.js +1 -1
- package/es/components/TextField/TextField.config.js +35 -329
- package/es/components/TextField/TextField.js +4 -2
- package/es/components/TextField/index.js +1 -1
- package/es/components/Toast/Toast.config.js +30 -118
- package/es/components/Toast/Toast.js +4 -4
- package/es/components/Toast/index.js +1 -1
- package/es/components/ToastNew/ToastNew.config.js +16 -71
- package/es/components/ToastNew/ToastNew.js +3 -3
- package/es/components/ToastNew/index.js +1 -1
- package/es/components/Tokens/Colors/Colors.styles.js +43 -90
- package/es/components/Tokens/NumberTokens/NumberTokens.styles.js +18 -37
- package/es/components/Tokens/Typography/Typography.styles.js +68 -135
- package/es/components/Toolbar/Toolbar.config.js +13 -48
- package/es/components/Toolbar/Toolbar.js +6 -4
- package/es/components/Toolbar/index.js +1 -1
- package/es/components/Tooltip/Tooltip.config.js +14 -62
- package/es/components/Tooltip/Tooltip.js +2 -2
- package/es/components/Tooltip/index.js +1 -1
- package/es/components/Tree/Tree.config.js +13 -74
- package/es/components/Tree/Tree.js +2 -2
- package/es/components/Tree/index.js +1 -1
- package/es/components/Typography/Body.config.js +38 -131
- package/es/components/Typography/Dspl.config.js +24 -83
- package/es/components/Typography/Heading.config.js +38 -131
- package/es/components/Typography/Text.config.js +31 -107
- package/es/components/Typography/Typography.js +35 -35
- package/es/components/Typography/index.js +1 -1
- package/es/components/ViewContainer/ViewContainer.config.js +8 -36
- package/es/components/ViewContainer/ViewContainer.js +2 -2
- package/es/components/ViewContainer/index.js +1 -1
- package/es/index.js +1 -2
- package/es/mixins/index.js +1 -1
- package/es/tokens/index.js +1 -1
- package/index.d.ts +0 -1
- package/index.js +729 -82
- package/mixins/index.js +20 -61
- package/package.json +12 -12
- package/tokens/index.js +255 -126
- package/components/Carousel/Carousel.config.d.ts +0 -14
- package/components/Carousel/Carousel.config.js +0 -62
- package/components/Carousel/Carousel.d.ts +0 -9
- package/components/Carousel/Carousel.js +0 -14
- package/components/Carousel/index.d.ts +0 -2
- package/components/Carousel/index.js +0 -20
- package/emotion/cjs/components/Carousel/Carousel.config.js +0 -62
- package/emotion/cjs/components/Carousel/Carousel.js +0 -14
- package/emotion/cjs/components/Carousel/index.js +0 -20
- package/emotion/cjs/helpers/index.js +0 -25
- package/emotion/es/components/Carousel/Carousel.config.js +0 -52
- package/emotion/es/components/Carousel/Carousel.js +0 -5
- package/emotion/es/components/Carousel/index.js +0 -2
- package/es/components/Carousel/Carousel.config.js +0 -52
- package/es/components/Carousel/Carousel.js +0 -5
- package/es/components/Carousel/index.js +0 -2
- /package/emotion/{es/helpers/index.js → cjs/helpers/index.ts} +0 -0
- /package/{es/helpers/index.js → emotion/es/helpers/index.ts} +0 -0
@@ -0,0 +1,228 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import type { ComponentProps } from 'react';
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
4
|
+
import { action } from '@storybook/addon-actions';
|
5
|
+
import styled from 'styled-components';
|
6
|
+
import { IconBell, IconLockOutline } from '@salutejs/plasma-icons';
|
7
|
+
import { InSpacingDecorator, disableProps } from '@salutejs/plasma-sb-utils';
|
8
|
+
|
9
|
+
import { TextArea } from './TextArea';
|
10
|
+
|
11
|
+
const labelPlacements = ['inner', 'outer'];
|
12
|
+
|
13
|
+
const StyledIconLockOutline = styled(IconLockOutline)`
|
14
|
+
opacity: 0.4;
|
15
|
+
`;
|
16
|
+
|
17
|
+
const getIcon = (IconComponent: React.ReactElement, size: string, readOnly = false) => {
|
18
|
+
const iconSize = size === 'xs' ? 'xs' : 's';
|
19
|
+
|
20
|
+
if (readOnly) {
|
21
|
+
return <StyledIconLockOutline size={iconSize} color="var(--text-secondary)" />;
|
22
|
+
}
|
23
|
+
|
24
|
+
return <IconComponent size={iconSize} color="inherit" />;
|
25
|
+
};
|
26
|
+
|
27
|
+
type StoryTextAreaPropsCustom = {
|
28
|
+
hasHint?: boolean;
|
29
|
+
enableContentRight?: boolean;
|
30
|
+
};
|
31
|
+
|
32
|
+
type StoryTextAreaProps = ComponentProps<typeof TextArea> & StoryTextAreaPropsCustom;
|
33
|
+
|
34
|
+
const meta: Meta<StoryTextAreaProps> = {
|
35
|
+
title: 'Data Entry/TextArea',
|
36
|
+
decorators: [InSpacingDecorator],
|
37
|
+
component: TextArea,
|
38
|
+
argTypes: {
|
39
|
+
requiredPlacement: {
|
40
|
+
options: ['left', 'right'],
|
41
|
+
control: {
|
42
|
+
type: 'select',
|
43
|
+
},
|
44
|
+
},
|
45
|
+
required: {
|
46
|
+
control: {
|
47
|
+
type: 'boolean',
|
48
|
+
},
|
49
|
+
if: {
|
50
|
+
arg: 'optional',
|
51
|
+
truthy: false,
|
52
|
+
},
|
53
|
+
},
|
54
|
+
hasRequiredIndicator: {
|
55
|
+
control: {
|
56
|
+
type: 'boolean',
|
57
|
+
},
|
58
|
+
if: {
|
59
|
+
arg: 'required',
|
60
|
+
truthy: true,
|
61
|
+
},
|
62
|
+
},
|
63
|
+
optional: {
|
64
|
+
control: {
|
65
|
+
type: 'boolean',
|
66
|
+
},
|
67
|
+
if: {
|
68
|
+
arg: 'required',
|
69
|
+
truthy: false,
|
70
|
+
},
|
71
|
+
},
|
72
|
+
clear: {
|
73
|
+
control: {
|
74
|
+
type: 'boolean',
|
75
|
+
},
|
76
|
+
},
|
77
|
+
labelPlacement: {
|
78
|
+
options: labelPlacements,
|
79
|
+
control: {
|
80
|
+
type: 'select',
|
81
|
+
},
|
82
|
+
},
|
83
|
+
hasDivider: {
|
84
|
+
control: {
|
85
|
+
type: 'boolean',
|
86
|
+
},
|
87
|
+
if: {
|
88
|
+
arg: 'clear',
|
89
|
+
truthy: true,
|
90
|
+
},
|
91
|
+
},
|
92
|
+
cols: {
|
93
|
+
control: {
|
94
|
+
type: 'number',
|
95
|
+
},
|
96
|
+
if: {
|
97
|
+
arg: 'clear',
|
98
|
+
truthy: false,
|
99
|
+
},
|
100
|
+
},
|
101
|
+
rows: {
|
102
|
+
control: {
|
103
|
+
type: 'number',
|
104
|
+
},
|
105
|
+
if: {
|
106
|
+
arg: 'clear',
|
107
|
+
truthy: false,
|
108
|
+
},
|
109
|
+
},
|
110
|
+
helperText: {
|
111
|
+
control: { type: 'text' },
|
112
|
+
},
|
113
|
+
width: {
|
114
|
+
control: { type: 'text' },
|
115
|
+
},
|
116
|
+
height: {
|
117
|
+
control: { type: 'text' },
|
118
|
+
},
|
119
|
+
leftHelper: {
|
120
|
+
control: { type: 'text' },
|
121
|
+
},
|
122
|
+
titleCaption: {
|
123
|
+
control: { type: 'text' },
|
124
|
+
},
|
125
|
+
rightHelper: {
|
126
|
+
control: { type: 'text' },
|
127
|
+
},
|
128
|
+
...disableProps([
|
129
|
+
'size',
|
130
|
+
'helperBlock',
|
131
|
+
'helperText',
|
132
|
+
'$isFocused',
|
133
|
+
'contentRight',
|
134
|
+
'autoComplete',
|
135
|
+
'autoFocus',
|
136
|
+
'dirName',
|
137
|
+
'form',
|
138
|
+
'minLength',
|
139
|
+
'maxLength',
|
140
|
+
'name',
|
141
|
+
'value',
|
142
|
+
'wrap',
|
143
|
+
'theme',
|
144
|
+
'as',
|
145
|
+
'forwardedAs',
|
146
|
+
'onChange',
|
147
|
+
'onFocus',
|
148
|
+
'onBlur',
|
149
|
+
'leftHelperPlacement',
|
150
|
+
'status',
|
151
|
+
'resize',
|
152
|
+
'height',
|
153
|
+
'width',
|
154
|
+
'helperText',
|
155
|
+
'labelPlacement',
|
156
|
+
'hintText',
|
157
|
+
'hintTrigger',
|
158
|
+
'hintView',
|
159
|
+
'hintSize',
|
160
|
+
'hintTargetIcon',
|
161
|
+
'hintTargetPlacement',
|
162
|
+
'hintPlacement',
|
163
|
+
'hintHasArrow',
|
164
|
+
'hintOffset',
|
165
|
+
'hintWidth',
|
166
|
+
'hintContentLeft',
|
167
|
+
'hintView',
|
168
|
+
'hintOpened',
|
169
|
+
]),
|
170
|
+
},
|
171
|
+
args: {
|
172
|
+
id: 'example-textarea',
|
173
|
+
view: 'default',
|
174
|
+
size: 's',
|
175
|
+
enableContentRight: true,
|
176
|
+
label: 'Лейбл',
|
177
|
+
labelPlacement: 'outer',
|
178
|
+
placeholder: 'Заполните многострочное поле',
|
179
|
+
titleCaption: 'Подпись к полю',
|
180
|
+
leftHelper: 'Подсказка к полю слева',
|
181
|
+
rightHelper: 'Подсказка к полю справа',
|
182
|
+
disabled: false,
|
183
|
+
readOnly: false,
|
184
|
+
autoResize: false,
|
185
|
+
minAuto: 0,
|
186
|
+
maxAuto: 0,
|
187
|
+
optional: false,
|
188
|
+
required: false,
|
189
|
+
requiredPlacement: 'right',
|
190
|
+
hasRequiredIndicator: true,
|
191
|
+
clear: false,
|
192
|
+
hasDivider: false,
|
193
|
+
},
|
194
|
+
};
|
195
|
+
|
196
|
+
export default meta;
|
197
|
+
|
198
|
+
const onChange = action('onChange');
|
199
|
+
const onFocus = action('onFocus');
|
200
|
+
const onBlur = action('onBlur');
|
201
|
+
|
202
|
+
const StoryDefault = (props: StoryTextAreaProps) => {
|
203
|
+
const [value, setValue] = useState('Значение поля');
|
204
|
+
|
205
|
+
return (
|
206
|
+
<TextArea
|
207
|
+
value={value}
|
208
|
+
contentRight={
|
209
|
+
props.enableContentRight || props.readOnly ? getIcon(IconBell, props.size, props.readOnly) : undefined
|
210
|
+
}
|
211
|
+
onChange={(e) => {
|
212
|
+
setValue(e.target.value);
|
213
|
+
onChange(e);
|
214
|
+
}}
|
215
|
+
onFocus={onFocus}
|
216
|
+
onBlur={onBlur}
|
217
|
+
style={{
|
218
|
+
width: '70%',
|
219
|
+
margin: '0 auto',
|
220
|
+
}}
|
221
|
+
{...props}
|
222
|
+
/>
|
223
|
+
);
|
224
|
+
};
|
225
|
+
|
226
|
+
export const Default: StoryObj<StoryTextAreaProps> = {
|
227
|
+
render: (args) => <StoryDefault {...args} />,
|
228
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export { TextArea } from './TextArea';
|
1
|
+
export { TextArea } from './TextArea';
|
@@ -1,333 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
raw = strings.slice(0);
|
4
|
-
}
|
5
|
-
return Object.freeze(Object.defineProperties(strings, {
|
6
|
-
raw: {
|
7
|
-
value: Object.freeze(raw)
|
8
|
-
}
|
9
|
-
}));
|
10
|
-
}
|
11
|
-
function _templateObject() {
|
12
|
-
var data = _tagged_template_literal([
|
13
|
-
"\n ",
|
14
|
-
": var(--text-primary);\n ",
|
15
|
-
": var(--text-primary);\n ",
|
16
|
-
": var(--surface-solid-card);\n ",
|
17
|
-
": var(--surface-solid-card-active);\n ",
|
18
|
-
": var(--text-accent);\n ",
|
19
|
-
": var(--text-secondary);\n ",
|
20
|
-
": var(--text-tertiary);\n ",
|
21
|
-
": var(--text-secondary);\n ",
|
22
|
-
": var(--text-tertiary);\n ",
|
23
|
-
": var(--text-secondary);\n ",
|
24
|
-
": var(--text-secondary);\n ",
|
25
|
-
": var(--text-primary);\n ",
|
26
|
-
": var(--text-secondary);\n ",
|
27
|
-
": var(--text-secondary);\n ",
|
28
|
-
": var(--text-secondary);\n\n ",
|
29
|
-
": var(--text-secondary);\n ",
|
30
|
-
": var(--text-secondary-hover);\n ",
|
31
|
-
": var(--text-secondary-active);\n ",
|
32
|
-
": var(--text-accent);\n ",
|
33
|
-
": #1A9E32;\n ",
|
34
|
-
": var(--text-accent-active);\n\n ",
|
35
|
-
": var(--outline-solid-primary);\n ",
|
36
|
-
": var(--text-secondary);\n ",
|
37
|
-
": var(--surface-accent);\n\n ",
|
38
|
-
": var(--text-secondary);\n ",
|
39
|
-
": var(--text-primary);\n ",
|
40
|
-
": var(--surface-transparent-secondary);\n ",
|
41
|
-
": var(--text-primary-hover);\n ",
|
42
|
-
": var(--surface-transparent-secondary-hover);\n ",
|
43
|
-
": var(--text-primary);\n ",
|
44
|
-
": var(--surface-transparent-secondary-active);\n ",
|
45
|
-
": var(--surface-transparent-secondary);\n ",
|
46
|
-
": var(--text-primary);\n ",
|
47
|
-
": var(--surface-transparent-secondary);\n ",
|
48
|
-
": var(--text-primary);\n ",
|
49
|
-
": 0.72;\n\n ",
|
50
|
-
": var(--text-accent);\n ",
|
51
|
-
": var(--outline-solid-primary);\n ",
|
52
|
-
": var(--outline-accent);\n ",
|
53
|
-
": var(--outline-solid-primary-hover);\n ",
|
54
|
-
": var(--surface-negative);\n ",
|
55
|
-
": var(--text-tertiary);\n "
|
56
|
-
]);
|
57
|
-
_templateObject = function _templateObject() {
|
58
|
-
return data;
|
59
|
-
};
|
60
|
-
return data;
|
61
|
-
}
|
62
|
-
function _templateObject1() {
|
63
|
-
var data = _tagged_template_literal([
|
64
|
-
"\n ",
|
65
|
-
": var(--text-primary);\n ",
|
66
|
-
": var(--text-negative);\n ",
|
67
|
-
": var(--surface-solid-card);\n ",
|
68
|
-
": var(--surface-solid-card-active);\n ",
|
69
|
-
": var(--text-accent);\n ",
|
70
|
-
": var(--text-secondary);\n ",
|
71
|
-
": var(--text-negative);\n ",
|
72
|
-
": var(--text-tertiary);\n ",
|
73
|
-
": var(--text-negative);\n ",
|
74
|
-
": var(--text-secondary);\n ",
|
75
|
-
": var(--text-secondary);\n ",
|
76
|
-
": var(--text-primary);\n ",
|
77
|
-
": var(--text-negative);\n ",
|
78
|
-
": var(--text-secondary);\n ",
|
79
|
-
": var(--text-secondary);\n\n ",
|
80
|
-
": var(--surface-negative);\n ",
|
81
|
-
": var(--surface-negative);\n ",
|
82
|
-
": var(--surface-accent);\n\n ",
|
83
|
-
": var(--text-secondary);\n ",
|
84
|
-
": var(--text-primary);\n ",
|
85
|
-
": var(--surface-transparent-secondary);\n ",
|
86
|
-
": var(--text-primary);\n ",
|
87
|
-
": var(--surface-transparent-secondary-hover);\n ",
|
88
|
-
": var(--text-primary);\n ",
|
89
|
-
": var(--surface-transparent-secondary-active);\n ",
|
90
|
-
": var(--surface-transparent-secondary);\n ",
|
91
|
-
": var(--text-primary);\n ",
|
92
|
-
": var(--surface-transparent-secondary);\n ",
|
93
|
-
": var(--text-primary);\n ",
|
94
|
-
": 0.72;\n\n ",
|
95
|
-
": var(--text-negative);\n ",
|
96
|
-
": var(--text-negative);\n ",
|
97
|
-
": var(--surface-negative);\n ",
|
98
|
-
": var(--text-tertiary);\n "
|
99
|
-
]);
|
100
|
-
_templateObject1 = function _templateObject() {
|
101
|
-
return data;
|
102
|
-
};
|
103
|
-
return data;
|
104
|
-
}
|
105
|
-
function _templateObject2() {
|
106
|
-
var data = _tagged_template_literal([
|
107
|
-
"\n ",
|
108
|
-
": 2.5rem;\n ",
|
109
|
-
": 0.6875rem 0.75rem 0.6875rem 0.75rem;\n ",
|
110
|
-
": 0.375rem;\n ",
|
111
|
-
": 0.75rem;\n ",
|
112
|
-
": 0.125rem;\n\n ",
|
113
|
-
": -0.1875rem 0.25rem -0.1875rem -0.125rem;\n ",
|
114
|
-
": -0.1875rem -0.125rem -0.1875rem 0.75rem;\n\n ",
|
115
|
-
": 0 0.25rem 0 0;\n ",
|
116
|
-
": 0 0 0 0.25rem;\n\n ",
|
117
|
-
": var(--plasma-typo-body-m-font-family);\n ",
|
118
|
-
": var(--plasma-typo-body-m-font-size);\n ",
|
119
|
-
": var(--plasma-typo-body-m-font-style);\n ",
|
120
|
-
": var(--plasma-typo-body-m-font-weight);\n ",
|
121
|
-
": var(--plasma-typo-body-m-letter-spacing);\n ",
|
122
|
-
": var(--plasma-typo-body-m-line-height);\n\n ",
|
123
|
-
": 0.5rem;\n ",
|
124
|
-
": 0.5rem;\n ",
|
125
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
126
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
127
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
128
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
129
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
130
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
131
|
-
": -0.688rem -0.5rem;\n ",
|
132
|
-
": 2.375rem;\n ",
|
133
|
-
": 0.563rem -2.938rem auto auto;\n ",
|
134
|
-
": 0.062rem -2.063rem auto auto;\n\n ",
|
135
|
-
": 0.25rem;\n ",
|
136
|
-
": var(--plasma-typo-body-xs-font-family);\n ",
|
137
|
-
": var(--plasma-typo-body-xs-font-size);\n ",
|
138
|
-
": var(--plasma-typo-body-xs-font-style);\n ",
|
139
|
-
": var(--plasma-typo-body-xs-font-weight);\n ",
|
140
|
-
": var(--plasma-typo-body-xs-letter-spacing);\n ",
|
141
|
-
": var(--plasma-typo-body-xs-line-height);\n\n ",
|
142
|
-
": 0.25rem;\n ",
|
143
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
144
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
145
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
146
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
147
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
148
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
149
|
-
": 0.3125rem 0 0 0;\n ",
|
150
|
-
": 1.0625rem 0 0.3125rem 0;\n\n ",
|
151
|
-
": 0.25rem;\n ",
|
152
|
-
": 0.25rem;\n ",
|
153
|
-
": auto;\n ",
|
154
|
-
": 1.75rem;\n ",
|
155
|
-
": 0 0.5rem 0 0.75rem;\n ",
|
156
|
-
": 0.375rem;\n ",
|
157
|
-
": 0rem;\n ",
|
158
|
-
": 1rem;\n ",
|
159
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
160
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
161
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
162
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
163
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
164
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
165
|
-
": 0.375rem;\n ",
|
166
|
-
": 0.375rem;\n ",
|
167
|
-
": 0 0 0 0;\n ",
|
168
|
-
": 0.3125rem auto auto -0.6875rem;\n ",
|
169
|
-
": 0 0 auto auto;\n ",
|
170
|
-
": 0.25rem -0.625rem auto auto;\n ",
|
171
|
-
": 1.063rem auto auto -0.75rem;\n ",
|
172
|
-
": 1.063rem -0.75rem auto auto;\n "
|
173
|
-
]);
|
174
|
-
_templateObject2 = function _templateObject() {
|
175
|
-
return data;
|
176
|
-
};
|
177
|
-
return data;
|
178
|
-
}
|
179
|
-
function _templateObject3() {
|
180
|
-
var data = _tagged_template_literal([
|
181
|
-
""
|
182
|
-
]);
|
183
|
-
_templateObject3 = function _templateObject() {
|
184
|
-
return data;
|
185
|
-
};
|
186
|
-
return data;
|
187
|
-
}
|
188
|
-
function _templateObject4() {
|
189
|
-
var data = _tagged_template_literal([
|
190
|
-
""
|
191
|
-
]);
|
192
|
-
_templateObject4 = function _templateObject() {
|
193
|
-
return data;
|
194
|
-
};
|
195
|
-
return data;
|
196
|
-
}
|
197
|
-
function _templateObject5() {
|
198
|
-
var data = _tagged_template_literal([
|
199
|
-
"\n ",
|
200
|
-
": var(--surface-solid-card-brightness);\n ",
|
201
|
-
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
202
|
-
": var(--text-primary);\n ",
|
203
|
-
": var(--surface-solid-card-brightness);\n "
|
204
|
-
]);
|
205
|
-
_templateObject5 = function _templateObject() {
|
206
|
-
return data;
|
207
|
-
};
|
208
|
-
return data;
|
209
|
-
}
|
210
|
-
function _templateObject6() {
|
211
|
-
var data = _tagged_template_literal([
|
212
|
-
"\n ",
|
213
|
-
": 0.6875rem;\n ",
|
214
|
-
": 0.875rem;\n ",
|
215
|
-
": 0.6875rem;\n ",
|
216
|
-
": 0.875rem;\n\n ",
|
217
|
-
": 2.5rem;\n ",
|
218
|
-
": 0.625rem;\n\n ",
|
219
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
220
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
221
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
222
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
223
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
224
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
225
|
-
": 0.375rem;\n\n ",
|
226
|
-
": 1.25rem;\n ",
|
227
|
-
": 1.25rem;\n ",
|
228
|
-
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMC4xNywxMS44M2wyMCwwYy01LjUyLDAgLTEwLDMuNTkgLTEwLDhjMCwtNC40MSAtNC40OCwtOCAtMTAsLTh6IiBmaWxsPSIjMTcxNzE3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGlkPSJUYWlsIi8+Cjwvc3ZnPg==");\n ',
|
229
|
-
": 0.5rem;\n ",
|
230
|
-
": 0.625rem;\n "
|
231
|
-
]);
|
232
|
-
_templateObject6 = function _templateObject() {
|
233
|
-
return data;
|
234
|
-
};
|
235
|
-
return data;
|
236
|
-
}
|
237
|
-
function _templateObject7() {
|
238
|
-
var data = _tagged_template_literal([
|
239
|
-
"\n ",
|
240
|
-
": 0.5rem;\n ",
|
241
|
-
": 0.75rem;\n ",
|
242
|
-
": 0.5rem;\n ",
|
243
|
-
": 0.75rem;\n\n ",
|
244
|
-
": 2rem;\n ",
|
245
|
-
": 0.5rem;\n\n ",
|
246
|
-
": var(--plasma-typo-body-xs-font-family);\n ",
|
247
|
-
": var(--plasma-typo-body-xs-font-size);\n ",
|
248
|
-
": var(--plasma-typo-body-xs-font-style);\n ",
|
249
|
-
": var(--plasma-typo-body-xs-font-weight);\n ",
|
250
|
-
": var(--plasma-typo-body-xs-letter-spacing);\n ",
|
251
|
-
": var(--plasma-typo-body-xs-line-height);\n\n ",
|
252
|
-
": 0.25rem;\n\n ",
|
253
|
-
": 1rem;\n ",
|
254
|
-
": 1rem;\n ",
|
255
|
-
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");\n ',
|
256
|
-
": 0.375rem;\n ",
|
257
|
-
": 0.5625rem;\n "
|
258
|
-
]);
|
259
|
-
_templateObject7 = function _templateObject() {
|
260
|
-
return data;
|
261
|
-
};
|
262
|
-
return data;
|
263
|
-
}
|
264
|
-
function _templateObject8() {
|
265
|
-
var data = _tagged_template_literal([
|
266
|
-
"\n ",
|
267
|
-
": 1;\n ",
|
268
|
-
": var(--surface-solid-primary);\n ",
|
269
|
-
": var(--surface-solid-primary);\n ",
|
270
|
-
": var(--surface-solid-primary);\n ",
|
271
|
-
": var(--surface-solid-primary);\n ",
|
272
|
-
": var(--surface-solid-primary);\n ",
|
273
|
-
": var(--text-secondary);\n "
|
274
|
-
]);
|
275
|
-
_templateObject8 = function _templateObject() {
|
276
|
-
return data;
|
277
|
-
};
|
278
|
-
return data;
|
279
|
-
}
|
280
|
-
function _templateObject9() {
|
281
|
-
var data = _tagged_template_literal([
|
282
|
-
"\n ",
|
283
|
-
": 1;\n ",
|
284
|
-
": var(--text-primary);\n ",
|
285
|
-
": transparent;\n ",
|
286
|
-
": var(--text-secondary);\n ",
|
287
|
-
": var(--text-secondary);\n ",
|
288
|
-
": var(--text-secondary);\n ",
|
289
|
-
": var(--text-secondary);\n ",
|
290
|
-
": var(--outline-solid-secondary);\n "
|
291
|
-
]);
|
292
|
-
_templateObject9 = function _templateObject() {
|
293
|
-
return data;
|
294
|
-
};
|
295
|
-
return data;
|
296
|
-
}
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
297
3
|
import { css, textFieldTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
298
4
|
export var config = {
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
5
|
+
defaults: {
|
6
|
+
view: 'default',
|
7
|
+
size: 's',
|
8
|
+
labelPlacement: 'outer'
|
9
|
+
},
|
10
|
+
variations: {
|
11
|
+
view: {
|
12
|
+
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-active);\n ", ": var(--text-accent);\n ", ": var(--text-secondary);\n ", ": var(--text-tertiary);\n ", ": var(--text-secondary);\n ", ": var(--text-tertiary);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary-hover);\n ", ": var(--text-secondary-active);\n ", ": var(--text-accent);\n ", ": #1A9E32;\n ", ": var(--text-accent-active);\n\n ", ": var(--outline-solid-primary);\n ", ": var(--text-secondary);\n ", ": var(--surface-accent);\n\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary-hover);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary-active);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": 0.72;\n\n ", ": var(--text-accent);\n ", ": var(--outline-solid-primary);\n ", ": var(--outline-accent);\n ", ": var(--outline-solid-primary-hover);\n ", ": var(--surface-negative);\n ", ": var(--text-tertiary);\n "])), tokens.color, tokens.clearColor, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.contentSlotRightColor, tokens.contentSlotRightColorHover, tokens.contentSlotRightColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor),
|
13
|
+
negative: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--text-negative);\n ", ": var(--surface-solid-card);\n ", ": var(--surface-solid-card-active);\n ", ": var(--text-accent);\n ", ": var(--text-secondary);\n ", ": var(--text-negative);\n ", ": var(--text-tertiary);\n ", ": var(--text-negative);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-negative);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n\n ", ": var(--surface-negative);\n ", ": var(--surface-negative);\n ", ": var(--surface-accent);\n\n ", ": var(--text-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary-active);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": 0.72;\n\n ", ": var(--text-negative);\n ", ": var(--text-negative);\n ", ": var(--surface-negative);\n ", ": var(--text-tertiary);\n "])), tokens.color, tokens.clearColor, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.borderColor, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
|
14
|
+
},
|
15
|
+
size: {
|
16
|
+
s: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 2.5rem;\n ", ": 0.6875rem 0.75rem 0.6875rem 0.75rem;\n ", ": 0.375rem;\n ", ": 0.75rem;\n ", ": 0.125rem;\n\n ", ": -0.1875rem 0.25rem -0.1875rem -0.125rem;\n ", ": -0.1875rem -0.125rem -0.1875rem 0.75rem;\n\n ", ": 0 0.25rem 0 0;\n ", ": 0 0 0 0.25rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.5rem;\n ", ": 0.5rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": -0.688rem -0.5rem;\n ", ": 2.375rem;\n ", ": 0.563rem -2.938rem auto auto;\n ", ": 0.062rem -2.063rem auto auto;\n\n ", ": 0.25rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.25rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.3125rem 0 0 0;\n ", ": 1.0625rem 0 0.3125rem 0;\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n ", ": auto;\n ", ": 1.75rem;\n ", ": 0 0.5rem 0 0.75rem;\n ", ": 0.375rem;\n ", ": 0rem;\n ", ": 1rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.375rem;\n ", ": 0.375rem;\n ", ": 0 0 0 0;\n ", ": 0.3125rem auto auto -0.6875rem;\n ", ": 0 0 auto auto;\n ", ": 0.25rem -0.625rem auto auto;\n ", ": 1.063rem auto auto -0.75rem;\n ", ": 1.063rem -0.75rem auto auto;\n "])), tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.textBeforeMargin, tokens.textAfterMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight)
|
17
|
+
},
|
18
|
+
labelPlacement: {
|
19
|
+
outer: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
20
|
+
},
|
21
|
+
clear: {
|
22
|
+
"true": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
23
|
+
},
|
24
|
+
hintView: {
|
25
|
+
// TODO: заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
26
|
+
"default": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-solid-card-brightness);\n ", ": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n "])), tokens.tooltipBackgroundColor, tokens.tooltipBoxShadow, tokens.tooltipColor, tokens.tooltipArrowBackground)
|
27
|
+
},
|
28
|
+
hintSize: {
|
29
|
+
m: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.6875rem;\n ", ": 0.875rem;\n ", ": 0.6875rem;\n ", ": 0.875rem;\n\n ", ": 2.5rem;\n ", ": 0.625rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.375rem;\n\n ", ": 1.25rem;\n ", ": 1.25rem;\n ", ": url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMC4xNywxMS44M2wyMCwwYy01LjUyLDAgLTEwLDMuNTkgLTEwLDhjMCwtNC40MSAtNC40OCwtOCAtMTAsLTh6IiBmaWxsPSIjMTcxNzE3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGlkPSJUYWlsIi8+Cjwvc3ZnPg==\");\n ", ": 0.5rem;\n ", ": 0.625rem;\n "])), tokens.tooltipPaddingTop, tokens.tooltipPaddingRight, tokens.tooltipPaddingBottom, tokens.tooltipPaddingLeft, tokens.tooltipMinHeight, tokens.tooltipBorderRadius, tokens.tooltipTextFontFamily, tokens.tooltipTextFontSize, tokens.tooltipTextFontStyle, tokens.tooltipTextFontWeight, tokens.tooltipTextFontLetterSpacing, tokens.tooltipTextFontLineHeight, tokens.tooltipContentLeftMargin, tokens.tooltipArrowMaskWidth, tokens.tooltipArrowMaskHeight, tokens.tooltipArrowMaskImage, tokens.tooltipArrowHeight, tokens.tooltipArrowEdgeMargin),
|
30
|
+
s: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.5rem;\n ", ": 0.75rem;\n ", ": 0.5rem;\n ", ": 0.75rem;\n\n ", ": 2rem;\n ", ": 0.5rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.25rem;\n\n ", ": 1rem;\n ", ": 1rem;\n ", ": url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+\");\n ", ": 0.375rem;\n ", ": 0.5625rem;\n "])), tokens.tooltipPaddingTop, tokens.tooltipPaddingRight, tokens.tooltipPaddingBottom, tokens.tooltipPaddingLeft, tokens.tooltipMinHeight, tokens.tooltipBorderRadius, tokens.tooltipTextFontFamily, tokens.tooltipTextFontSize, tokens.tooltipTextFontStyle, tokens.tooltipTextFontWeight, tokens.tooltipTextFontLetterSpacing, tokens.tooltipTextFontLineHeight, tokens.tooltipContentLeftMargin, tokens.tooltipArrowMaskWidth, tokens.tooltipArrowMaskHeight, tokens.tooltipArrowMaskImage, tokens.tooltipArrowHeight, tokens.tooltipArrowEdgeMargin)
|
31
|
+
},
|
32
|
+
disabled: {
|
33
|
+
"true": /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1;\n ", ": var(--surface-solid-primary);\n ", ": var(--surface-solid-primary);\n ", ": var(--surface-solid-primary);\n ", ": var(--surface-solid-primary);\n ", ": var(--surface-solid-primary);\n ", ": var(--text-secondary);\n "])), tokens.disabledOpacity, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.color)
|
303
34
|
},
|
304
|
-
|
305
|
-
|
306
|
-
default: css(_templateObject(), tokens.color, tokens.clearColor, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColor, tokens.clearPlaceholderColorFocus, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.contentSlotColor, tokens.contentSlotColorHover, tokens.contentSlotColorActive, tokens.contentSlotRightColor, tokens.contentSlotRightColorHover, tokens.contentSlotRightColorActive, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor, tokens.borderColor, tokens.borderColorFocus, tokens.borderColorHover, tokens.indicatorColor, tokens.optionalColor),
|
307
|
-
negative: css(_templateObject1(), tokens.color, tokens.clearColor, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.clearPlaceholderColor, tokens.placeholderColorFocus, tokens.clearPlaceholderColorFocus, tokens.textBeforeColor, tokens.textAfterColor, tokens.labelColor, tokens.leftHelperColor, tokens.titleCaptionColor, tokens.hintIconColor, tokens.dividerColor, tokens.dividerColorHover, tokens.dividerColorFocus, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.borderColor, tokens.focusColor, tokens.indicatorColor, tokens.optionalColor)
|
308
|
-
},
|
309
|
-
size: {
|
310
|
-
s: css(_templateObject2(), tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.borderWidth, tokens.leftContentMargin, tokens.rightContentMargin, tokens.textBeforeMargin, tokens.textAfterMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.clearLabelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.hintMargin, tokens.hintTargetSize, tokens.hintInnerLabelPlacementOffset, tokens.clearHintInnerLabelPlacementOffset, tokens.titleCaptionInnerLabelOffset, tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPadding, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight, tokens.indicatorSizeInner, tokens.indicatorSizeOuter, tokens.indicatorLabelPlacementInner, tokens.indicatorLabelPlacementOuter, tokens.indicatorLabelPlacementInnerRight, tokens.indicatorLabelPlacementOuterRight, tokens.clearIndicatorLabelPlacementInner, tokens.clearIndicatorLabelPlacementInnerRight)
|
311
|
-
},
|
312
|
-
labelPlacement: {
|
313
|
-
outer: css(_templateObject3())
|
314
|
-
},
|
315
|
-
clear: {
|
316
|
-
true: css(_templateObject4())
|
317
|
-
},
|
318
|
-
hintView: {
|
319
|
-
// TODO: заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
320
|
-
default: css(_templateObject5(), tokens.tooltipBackgroundColor, tokens.tooltipBoxShadow, tokens.tooltipColor, tokens.tooltipArrowBackground)
|
321
|
-
},
|
322
|
-
hintSize: {
|
323
|
-
m: css(_templateObject6(), tokens.tooltipPaddingTop, tokens.tooltipPaddingRight, tokens.tooltipPaddingBottom, tokens.tooltipPaddingLeft, tokens.tooltipMinHeight, tokens.tooltipBorderRadius, tokens.tooltipTextFontFamily, tokens.tooltipTextFontSize, tokens.tooltipTextFontStyle, tokens.tooltipTextFontWeight, tokens.tooltipTextFontLetterSpacing, tokens.tooltipTextFontLineHeight, tokens.tooltipContentLeftMargin, tokens.tooltipArrowMaskWidth, tokens.tooltipArrowMaskHeight, tokens.tooltipArrowMaskImage, tokens.tooltipArrowHeight, tokens.tooltipArrowEdgeMargin),
|
324
|
-
s: css(_templateObject7(), tokens.tooltipPaddingTop, tokens.tooltipPaddingRight, tokens.tooltipPaddingBottom, tokens.tooltipPaddingLeft, tokens.tooltipMinHeight, tokens.tooltipBorderRadius, tokens.tooltipTextFontFamily, tokens.tooltipTextFontSize, tokens.tooltipTextFontStyle, tokens.tooltipTextFontWeight, tokens.tooltipTextFontLetterSpacing, tokens.tooltipTextFontLineHeight, tokens.tooltipContentLeftMargin, tokens.tooltipArrowMaskWidth, tokens.tooltipArrowMaskHeight, tokens.tooltipArrowMaskImage, tokens.tooltipArrowHeight, tokens.tooltipArrowEdgeMargin)
|
325
|
-
},
|
326
|
-
disabled: {
|
327
|
-
true: css(_templateObject8(), tokens.disabledOpacity, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.borderColor, tokens.borderColorHover, tokens.borderColorFocus, tokens.color)
|
328
|
-
},
|
329
|
-
readOnly: {
|
330
|
-
true: css(_templateObject9(), tokens.readOnlyOpacity, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.titleCaptionColorReadOnly, tokens.labelColorReadOnly, tokens.dividerColorReadOnly)
|
331
|
-
}
|
35
|
+
readOnly: {
|
36
|
+
"true": /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1;\n ", ": var(--text-primary);\n ", ": transparent;\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n ", ": var(--outline-solid-secondary);\n "])), tokens.readOnlyOpacity, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.titleCaptionColorReadOnly, tokens.labelColorReadOnly, tokens.dividerColorReadOnly)
|
332
37
|
}
|
333
|
-
}
|
38
|
+
}
|
39
|
+
};
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
2
2
|
import { config } from './TextField.config';
|
3
|
-
var mergedConfig = mergeConfig(textFieldConfig, config);
|
3
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
|
4
|
+
|
4
5
|
/**
|
5
6
|
* Поле ввода текста.
|
6
|
-
*/
|
7
|
+
*/
|
8
|
+
export var TextField = /*#__PURE__*/component(mergedConfig);
|