@salutejs/sdds-cs 0.354.0-next-platform-ai.0 → 0.355.0-dev.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/dist/beta/cjs/Popover/Popover.closeInner.config.js +26 -68
- package/dist/beta/cjs/Popover/Popover.closeNone.config.js +18 -60
- package/dist/beta/cjs/Popover/Popover.js +8 -8
- package/dist/beta/cjs/Popover/index.js +1 -1
- package/dist/beta/cjs/Tooltip/Tooltip.config.js +29 -63
- package/dist/beta/cjs/Tooltip/Tooltip.js +4 -4
- package/dist/beta/cjs/Tooltip/index.js +1 -1
- package/dist/beta/es/Popover/Popover.closeInner.config.js +25 -67
- package/dist/beta/es/Popover/Popover.closeNone.config.js +17 -59
- package/dist/beta/es/Popover/Popover.js +5 -5
- package/dist/beta/es/Tooltip/Tooltip.config.js +28 -62
- package/dist/beta/es/Tooltip/Tooltip.js +2 -2
- package/dist/emotion/cjs/components/Accordion/Accordion.config.js +50 -85
- package/dist/emotion/cjs/components/Accordion/Accordion.js +4 -4
- package/dist/emotion/cjs/components/Accordion/index.js +1 -1
- package/dist/emotion/cjs/components/Attach/Attach.config.js +214 -248
- package/dist/emotion/cjs/components/Attach/Attach.js +4 -4
- package/dist/emotion/cjs/components/Attach/index.js +1 -1
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +188 -227
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.js +10 -61
- package/dist/emotion/cjs/components/Autocomplete/index.js +1 -1
- package/dist/emotion/cjs/components/Avatar/Avatar.config.js +97 -193
- package/dist/emotion/cjs/components/Avatar/Avatar.js +4 -4
- package/dist/emotion/cjs/components/Avatar/index.js +1 -1
- package/dist/emotion/cjs/components/AvatarGroup/AvatarGroup.js +3 -3
- package/dist/emotion/cjs/components/AvatarGroup/index.js +1 -1
- package/dist/emotion/cjs/components/Badge/Badge.config.js +55 -123
- package/dist/emotion/cjs/components/Badge/Badge.js +4 -4
- package/dist/emotion/cjs/components/Badge/index.js +1 -1
- package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +19 -44
- package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.js +5 -5
- package/dist/emotion/cjs/components/Breadcrumbs/index.js +1 -1
- package/dist/emotion/cjs/components/Button/Button.config.js +78 -161
- package/dist/emotion/cjs/components/Button/Button.js +15 -138
- package/dist/emotion/cjs/components/Button/index.js +1 -1
- package/dist/emotion/cjs/components/ButtonBase/index.js +1 -1
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +82 -208
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.js +4 -4
- package/dist/emotion/cjs/components/ButtonGroup/index.js +1 -1
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +101 -113
- package/dist/emotion/cjs/components/Calendar/Calendar.js +10 -10
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +101 -113
- package/dist/emotion/cjs/components/Calendar/index.js +1 -1
- package/dist/emotion/cjs/components/Card/Card.config.js +23 -65
- package/dist/emotion/cjs/components/Card/Card.js +5 -5
- package/dist/emotion/cjs/components/Card/index.js +1 -1
- package/dist/emotion/cjs/components/Carousel/Carousel.config.js +15 -41
- package/dist/emotion/cjs/components/Carousel/Carousel.js +4 -4
- package/dist/emotion/cjs/components/Carousel/index.js +2 -2
- package/dist/emotion/cjs/components/Cell/Cell.config.js +73 -97
- package/dist/emotion/cjs/components/Cell/Cell.js +5 -5
- package/dist/emotion/cjs/components/Cell/index.js +2 -2
- package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +41 -83
- package/dist/emotion/cjs/components/Checkbox/Checkbox.js +5 -5
- package/dist/emotion/cjs/components/Checkbox/index.js +1 -1
- package/dist/emotion/cjs/components/Chip/Chip.config.js +95 -148
- package/dist/emotion/cjs/components/Chip/Chip.js +5 -5
- package/dist/emotion/cjs/components/Chip/index.js +1 -1
- package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +53 -109
- package/dist/emotion/cjs/components/ChipGroup/ChipGroup.js +4 -4
- package/dist/emotion/cjs/components/ChipGroup/index.js +1 -1
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +270 -302
- package/dist/emotion/cjs/components/Combobox/Combobox.js +11 -38
- package/dist/emotion/cjs/components/Combobox/index.js +1 -1
- package/dist/emotion/cjs/components/Counter/Counter.config.js +23 -66
- package/dist/emotion/cjs/components/Counter/Counter.js +4 -4
- package/dist/emotion/cjs/components/Counter/index.js +2 -2
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +282 -278
- package/dist/emotion/cjs/components/DatePicker/DatePicker.js +6 -6
- package/dist/emotion/cjs/components/DatePicker/index.js +2 -2
- package/dist/emotion/cjs/components/Divider/Divider.config.js +23 -89
- package/dist/emotion/cjs/components/Divider/Divider.js +4 -4
- package/dist/emotion/cjs/components/Divider/index.js +2 -2
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +19 -61
- package/dist/emotion/cjs/components/Drawer/Drawer.js +10 -10
- package/dist/emotion/cjs/components/Drawer/index.js +1 -1
- package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +55 -76
- package/dist/emotion/cjs/components/Dropdown/Dropdown.js +11 -38
- package/dist/emotion/cjs/components/Dropdown/index.js +1 -1
- package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +58 -100
- package/dist/emotion/cjs/components/EmptyState/EmptyState.js +4 -4
- package/dist/emotion/cjs/components/EmptyState/index.js +1 -1
- package/dist/emotion/cjs/components/Flow/Flow.config.js +1 -1
- package/dist/emotion/cjs/components/Flow/Flow.js +4 -4
- package/dist/emotion/cjs/components/Flow/index.js +1 -1
- package/dist/emotion/cjs/components/Grid/Grid.config.js +36 -57
- package/dist/emotion/cjs/components/Grid/Grid.js +4 -4
- package/dist/emotion/cjs/components/Grid/index.js +1 -1
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +48 -105
- package/dist/emotion/cjs/components/IconButton/IconButton.js +5 -5
- package/dist/emotion/cjs/components/IconButton/index.js +1 -1
- package/dist/emotion/cjs/components/Image/Image.js +4 -4
- package/dist/emotion/cjs/components/Image/index.js +1 -1
- package/dist/emotion/cjs/components/Indicator/Indicator.config.js +32 -122
- package/dist/emotion/cjs/components/Indicator/Indicator.js +4 -4
- package/dist/emotion/cjs/components/Indicator/index.js +1 -1
- package/dist/emotion/cjs/components/Link/Link.config.js +107 -205
- package/dist/emotion/cjs/components/Link/Link.js +5 -5
- package/dist/emotion/cjs/components/Link/index.js +1 -1
- package/dist/emotion/cjs/components/Mask/Mask.js +3 -3
- package/dist/emotion/cjs/components/Mask/index.js +1 -1
- package/dist/emotion/cjs/components/Modal/Modal.config.js +15 -33
- package/dist/emotion/cjs/components/Modal/Modal.js +5 -5
- package/dist/emotion/cjs/components/Modal/index.js +2 -2
- package/dist/emotion/cjs/components/Notification/Notification.config.js +102 -143
- package/dist/emotion/cjs/components/Notification/Notification.js +7 -8
- package/dist/emotion/cjs/components/Notification/index.js +2 -2
- package/dist/emotion/cjs/components/NumberFormat/NumberFormat.js +3 -3
- package/dist/emotion/cjs/components/NumberFormat/index.js +2 -2
- package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +77 -133
- package/dist/emotion/cjs/components/NumberInput/NumberInput.js +4 -4
- package/dist/emotion/cjs/components/NumberInput/index.js +2 -2
- package/dist/emotion/cjs/components/Overlay/index.js +1 -1
- package/dist/emotion/cjs/components/Pagination/Pagination.config.js +76 -120
- package/dist/emotion/cjs/components/Pagination/Pagination.js +5 -5
- package/dist/emotion/cjs/components/Pagination/index.js +1 -1
- package/dist/emotion/cjs/components/Popover/Popover.config.js +12 -29
- package/dist/emotion/cjs/components/Popover/Popover.js +4 -4
- package/dist/emotion/cjs/components/Popover/index.js +1 -1
- package/dist/emotion/cjs/components/Popup/Popup.js +3 -3
- package/dist/emotion/cjs/components/Popup/index.js +2 -2
- package/dist/emotion/cjs/components/Portal/index.js +1 -1
- package/dist/emotion/cjs/components/Price/Price.config.js +1 -1
- package/dist/emotion/cjs/components/Price/Price.js +5 -5
- package/dist/emotion/cjs/components/Price/index.js +2 -2
- package/dist/emotion/cjs/components/Progress/Progress.config.js +182 -80
- package/dist/emotion/cjs/components/Progress/Progress.js +5 -5
- package/dist/emotion/cjs/components/Progress/index.js +1 -1
- package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +39 -81
- package/dist/emotion/cjs/components/Radiobox/Radiobox.js +5 -5
- package/dist/emotion/cjs/components/Radiobox/index.js +1 -1
- package/dist/emotion/cjs/components/Range/Range.config.js +124 -149
- package/dist/emotion/cjs/components/Range/Range.js +4 -4
- package/dist/emotion/cjs/components/Range/index.js +2 -2
- package/dist/emotion/cjs/components/Rating/Rating.config.js +69 -101
- package/dist/emotion/cjs/components/Rating/Rating.js +4 -4
- package/dist/emotion/cjs/components/Rating/index.js +2 -2
- package/dist/emotion/cjs/components/SSRProvider/index.js +1 -1
- package/dist/emotion/cjs/components/Segment/Segment.js +7 -7
- package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +27 -104
- package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +58 -104
- package/dist/emotion/cjs/components/Segment/index.js +1 -1
- package/dist/emotion/cjs/components/Select/Select.config.js +244 -288
- package/dist/emotion/cjs/components/Select/Select.js +11 -38
- package/dist/emotion/cjs/components/Select/index.js +1 -1
- package/dist/emotion/cjs/components/Sheet/Sheet.config.js +14 -48
- package/dist/emotion/cjs/components/Sheet/Sheet.js +5 -5
- package/dist/emotion/cjs/components/Sheet/index.js +2 -2
- package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +80 -242
- package/dist/emotion/cjs/components/Skeleton/Skeleton.js +5 -5
- package/dist/emotion/cjs/components/Skeleton/index.js +1 -1
- package/dist/emotion/cjs/components/Slider/Slider.config.js +119 -134
- package/dist/emotion/cjs/components/Slider/Slider.js +5 -5
- package/dist/emotion/cjs/components/Slider/index.js +1 -1
- package/dist/emotion/cjs/components/Spinner/Spinner.config.js +26 -92
- package/dist/emotion/cjs/components/Spinner/Spinner.js +6 -6
- package/dist/emotion/cjs/components/Spinner/index.js +1 -1
- package/dist/emotion/cjs/components/Steps/Steps.config.js +92 -102
- package/dist/emotion/cjs/components/Steps/Steps.js +5 -5
- package/dist/emotion/cjs/components/Steps/index.js +1 -1
- package/dist/emotion/cjs/components/Switch/Switch.config.js +62 -124
- package/dist/emotion/cjs/components/Switch/Switch.js +5 -5
- package/dist/emotion/cjs/components/Switch/index.js +1 -1
- package/dist/emotion/cjs/components/Table/Table.config.js +212 -241
- package/dist/emotion/cjs/components/Table/Table.js +5 -5
- package/dist/emotion/cjs/components/Table/index.js +1 -1
- package/dist/emotion/cjs/components/Tabs/TabItem.js +9 -9
- package/dist/emotion/cjs/components/Tabs/Tabs.js +9 -9
- package/dist/emotion/cjs/components/Tabs/TabsController.js +8 -8
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +151 -209
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +117 -244
- package/dist/emotion/cjs/components/Tabs/index.js +4 -4
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +71 -107
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +37 -78
- package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +276 -316
- package/dist/emotion/cjs/components/TextArea/TextArea.config.js +265 -308
- package/dist/emotion/cjs/components/TextArea/TextArea.js +8 -8
- package/dist/emotion/cjs/components/TextArea/index.js +1 -1
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +211 -266
- package/dist/emotion/cjs/components/TextField/TextField.config.js +235 -294
- package/dist/emotion/cjs/components/TextField/TextField.js +8 -8
- package/dist/emotion/cjs/components/TextField/index.js +2 -2
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +156 -165
- package/dist/emotion/cjs/components/TimePicker/TimePicker.js +4 -4
- package/dist/emotion/cjs/components/TimePicker/index.js +2 -2
- package/dist/emotion/cjs/components/Toast/Toast.config.js +48 -100
- package/dist/emotion/cjs/components/Toast/Toast.js +6 -6
- package/dist/emotion/cjs/components/Toast/index.js +1 -1
- package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +30 -62
- package/dist/emotion/cjs/components/ToastNew/ToastNew.js +5 -5
- package/dist/emotion/cjs/components/ToastNew/index.js +1 -1
- package/dist/emotion/cjs/components/Tokens/Colors/Colors.styles.js +18 -22
- package/dist/emotion/cjs/components/Tokens/NumberTokens/NumberTokens.styles.js +7 -7
- package/dist/emotion/cjs/components/Tokens/Typography/Typography.styles.js +22 -40
- package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +38 -68
- package/dist/emotion/cjs/components/Tooltip/Tooltip.js +4 -4
- package/dist/emotion/cjs/components/Tooltip/index.js +1 -1
- package/dist/emotion/cjs/components/Tour/Tour.config.js +7 -34
- package/dist/emotion/cjs/components/Tour/Tour.js +4 -4
- package/dist/emotion/cjs/components/Tour/index.js +1 -1
- package/dist/emotion/cjs/components/Tree/Tree.config.js +52 -77
- package/dist/emotion/cjs/components/Tree/Tree.js +4 -4
- package/dist/emotion/cjs/components/Tree/index.js +1 -1
- package/dist/emotion/cjs/components/Typography/Body.config.js +56 -106
- package/dist/emotion/cjs/components/Typography/Dspl.config.js +34 -68
- package/dist/emotion/cjs/components/Typography/Heading.config.js +56 -106
- package/dist/emotion/cjs/components/Typography/Text.config.js +45 -87
- package/dist/emotion/cjs/components/Typography/Typography.js +56 -56
- package/dist/emotion/cjs/components/Typography/index.js +1 -1
- package/dist/emotion/cjs/components/ViewContainer/ViewContainer.config.js +9 -35
- package/dist/emotion/cjs/components/ViewContainer/ViewContainer.js +4 -4
- package/dist/emotion/cjs/components/ViewContainer/index.js +1 -1
- package/dist/emotion/cjs/helpers/index.js +1 -1
- package/dist/emotion/cjs/mixins/index.js +3 -3
- package/dist/emotion/cjs/tokens/index.js +1 -1
- package/dist/emotion/es/components/Accordion/Accordion.config.js +49 -84
- package/dist/emotion/es/components/Accordion/Accordion.js +2 -2
- package/dist/emotion/es/components/Attach/Attach.config.js +213 -247
- package/dist/emotion/es/components/Attach/Attach.js +2 -2
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +187 -226
- package/dist/emotion/es/components/Autocomplete/Autocomplete.js +7 -58
- package/dist/emotion/es/components/Avatar/Avatar.config.js +96 -192
- package/dist/emotion/es/components/Avatar/Avatar.js +2 -2
- package/dist/emotion/es/components/AvatarGroup/AvatarGroup.js +2 -2
- package/dist/emotion/es/components/Badge/Badge.config.js +54 -122
- package/dist/emotion/es/components/Badge/Badge.js +2 -2
- package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +18 -43
- package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/emotion/es/components/Button/Button.config.js +77 -160
- package/dist/emotion/es/components/Button/Button.js +10 -133
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +81 -207
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/emotion/es/components/Calendar/Calendar.config.js +100 -112
- package/dist/emotion/es/components/Calendar/Calendar.js +7 -7
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +100 -112
- package/dist/emotion/es/components/Card/Card.config.js +22 -64
- package/dist/emotion/es/components/Card/Card.js +3 -3
- package/dist/emotion/es/components/Carousel/Carousel.config.js +14 -40
- package/dist/emotion/es/components/Carousel/Carousel.js +2 -2
- package/dist/emotion/es/components/Cell/Cell.config.js +72 -96
- package/dist/emotion/es/components/Cell/Cell.js +3 -3
- package/dist/emotion/es/components/Checkbox/Checkbox.config.js +40 -82
- package/dist/emotion/es/components/Checkbox/Checkbox.js +3 -3
- package/dist/emotion/es/components/Chip/Chip.config.js +94 -147
- package/dist/emotion/es/components/Chip/Chip.js +3 -3
- package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +52 -108
- package/dist/emotion/es/components/ChipGroup/ChipGroup.js +2 -2
- package/dist/emotion/es/components/Combobox/Combobox.config.js +270 -302
- package/dist/emotion/es/components/Combobox/Combobox.js +9 -36
- package/dist/emotion/es/components/Counter/Counter.config.js +21 -64
- package/dist/emotion/es/components/Counter/Counter.js +2 -2
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +281 -277
- package/dist/emotion/es/components/DatePicker/DatePicker.js +4 -4
- package/dist/emotion/es/components/Divider/Divider.config.js +22 -88
- package/dist/emotion/es/components/Divider/Divider.js +2 -2
- package/dist/emotion/es/components/Drawer/Drawer.config.js +18 -60
- package/dist/emotion/es/components/Drawer/Drawer.js +8 -8
- package/dist/emotion/es/components/Dropdown/Dropdown.config.js +54 -75
- package/dist/emotion/es/components/Dropdown/Dropdown.js +8 -35
- package/dist/emotion/es/components/EmptyState/EmptyState.config.js +57 -99
- package/dist/emotion/es/components/EmptyState/EmptyState.js +2 -2
- package/dist/emotion/es/components/Flow/Flow.config.js +1 -1
- package/dist/emotion/es/components/Flow/Flow.js +2 -2
- package/dist/emotion/es/components/Grid/Grid.config.js +35 -56
- package/dist/emotion/es/components/Grid/Grid.js +2 -2
- package/dist/emotion/es/components/IconButton/IconButton.config.js +47 -104
- package/dist/emotion/es/components/IconButton/IconButton.js +3 -3
- package/dist/emotion/es/components/Image/Image.js +3 -3
- package/dist/emotion/es/components/Indicator/Indicator.config.js +31 -121
- package/dist/emotion/es/components/Indicator/Indicator.js +2 -2
- package/dist/emotion/es/components/Link/Link.config.js +106 -204
- package/dist/emotion/es/components/Link/Link.js +3 -3
- package/dist/emotion/es/components/Mask/Mask.js +1 -1
- package/dist/emotion/es/components/Modal/Modal.config.js +14 -32
- package/dist/emotion/es/components/Modal/Modal.js +3 -3
- package/dist/emotion/es/components/Notification/Notification.config.js +101 -142
- package/dist/emotion/es/components/Notification/Notification.js +4 -5
- package/dist/emotion/es/components/NumberFormat/NumberFormat.js +1 -1
- package/dist/emotion/es/components/NumberInput/NumberInput.config.js +76 -132
- package/dist/emotion/es/components/NumberInput/NumberInput.js +2 -2
- package/dist/emotion/es/components/Pagination/Pagination.config.js +75 -119
- package/dist/emotion/es/components/Pagination/Pagination.js +3 -3
- package/dist/emotion/es/components/Popover/Popover.config.js +11 -28
- package/dist/emotion/es/components/Popover/Popover.js +2 -2
- package/dist/emotion/es/components/Popup/Popup.js +2 -2
- package/dist/emotion/es/components/Price/Price.config.js +1 -1
- package/dist/emotion/es/components/Price/Price.js +3 -3
- package/dist/emotion/es/components/Progress/Progress.config.js +181 -79
- package/dist/emotion/es/components/Progress/Progress.js +3 -3
- package/dist/emotion/es/components/Radiobox/Radiobox.config.js +38 -80
- package/dist/emotion/es/components/Radiobox/Radiobox.js +3 -3
- package/dist/emotion/es/components/Range/Range.config.js +123 -148
- package/dist/emotion/es/components/Range/Range.js +2 -2
- package/dist/emotion/es/components/Rating/Rating.config.js +68 -100
- package/dist/emotion/es/components/Rating/Rating.js +2 -2
- package/dist/emotion/es/components/Segment/Segment.js +4 -4
- package/dist/emotion/es/components/Segment/SegmentGroup.config.js +26 -103
- package/dist/emotion/es/components/Segment/SegmentItem.config.js +57 -103
- package/dist/emotion/es/components/Select/Select.config.js +243 -287
- package/dist/emotion/es/components/Select/Select.js +8 -35
- package/dist/emotion/es/components/Sheet/Sheet.config.js +13 -47
- package/dist/emotion/es/components/Sheet/Sheet.js +3 -3
- package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +79 -241
- package/dist/emotion/es/components/Skeleton/Skeleton.js +3 -3
- package/dist/emotion/es/components/Slider/Slider.config.js +118 -133
- package/dist/emotion/es/components/Slider/Slider.js +3 -3
- package/dist/emotion/es/components/Spinner/Spinner.config.js +25 -91
- package/dist/emotion/es/components/Spinner/Spinner.js +3 -3
- package/dist/emotion/es/components/Steps/Steps.config.js +91 -101
- package/dist/emotion/es/components/Steps/Steps.js +3 -3
- package/dist/emotion/es/components/Switch/Switch.config.js +61 -123
- package/dist/emotion/es/components/Switch/Switch.js +3 -3
- package/dist/emotion/es/components/Table/Table.config.js +211 -240
- package/dist/emotion/es/components/Table/Table.js +3 -3
- package/dist/emotion/es/components/Tabs/TabItem.js +5 -5
- package/dist/emotion/es/components/Tabs/Tabs.js +5 -5
- package/dist/emotion/es/components/Tabs/TabsController.js +5 -5
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +150 -208
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +116 -243
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +70 -106
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +36 -77
- package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +275 -315
- package/dist/emotion/es/components/TextArea/TextArea.config.js +264 -307
- package/dist/emotion/es/components/TextArea/TextArea.js +5 -5
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +210 -265
- package/dist/emotion/es/components/TextField/TextField.config.js +234 -293
- package/dist/emotion/es/components/TextField/TextField.js +5 -5
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +155 -164
- package/dist/emotion/es/components/TimePicker/TimePicker.js +2 -2
- package/dist/emotion/es/components/Toast/Toast.config.js +47 -99
- package/dist/emotion/es/components/Toast/Toast.js +4 -4
- package/dist/emotion/es/components/ToastNew/ToastNew.config.js +29 -61
- package/dist/emotion/es/components/ToastNew/ToastNew.js +3 -3
- package/dist/emotion/es/components/Tokens/Colors/Colors.styles.js +14 -18
- package/dist/emotion/es/components/Tokens/NumberTokens/NumberTokens.styles.js +6 -6
- package/dist/emotion/es/components/Tokens/Typography/Typography.styles.js +18 -36
- package/dist/emotion/es/components/Tooltip/Tooltip.config.js +37 -67
- package/dist/emotion/es/components/Tooltip/Tooltip.js +2 -2
- package/dist/emotion/es/components/Tour/Tour.config.js +6 -33
- package/dist/emotion/es/components/Tour/Tour.js +2 -2
- package/dist/emotion/es/components/Tree/Tree.config.js +51 -76
- package/dist/emotion/es/components/Tree/Tree.js +2 -2
- package/dist/emotion/es/components/Typography/Body.config.js +55 -105
- package/dist/emotion/es/components/Typography/Dspl.config.js +33 -67
- package/dist/emotion/es/components/Typography/Heading.config.js +55 -105
- package/dist/emotion/es/components/Typography/Text.config.js +44 -86
- package/dist/emotion/es/components/Typography/Typography.js +51 -51
- package/dist/emotion/es/components/ViewContainer/ViewContainer.config.js +7 -33
- package/dist/emotion/es/components/ViewContainer/ViewContainer.js +2 -2
- package/dist/emotion/es/mixins/index.js +1 -1
- package/package.json +25 -29
- package/types/components/Combobox/Combobox.d.ts +211 -1227
- package/types/components/Progress/Progress.config.d.ts +13 -0
- package/types/components/Progress/Progress.d.ts +12 -0
- package/types/components/Select/Select.d.ts +24 -24
- package/types/components/TextArea/TextArea.d.ts +23 -1715
- package/types/components/TimePicker/TimePicker.d.ts +4 -0
|
@@ -8,116 +8,106 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!raw) {
|
|
14
|
-
raw = strings.slice(0);
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
17
|
-
raw: {
|
|
18
|
-
value: Object.freeze(raw)
|
|
19
|
-
}
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
function _templateObject() {
|
|
23
|
-
var data = _tagged_template_literal([
|
|
24
|
-
"\n ",
|
|
25
|
-
": var(--on-dark-surface-solid-primary);\n\n ",
|
|
26
|
-
": var(--text-primary);\n ",
|
|
27
|
-
": var(--text-primary-hover);\n ",
|
|
28
|
-
": var(--inverse-text-primary);\n ",
|
|
29
|
-
": var(--on-dark-surface-solid-primary);\n\n ",
|
|
30
|
-
": solid var(--on-dark-surface-solid-primary);\n ",
|
|
31
|
-
": var(--surface-clear);\n\n ",
|
|
32
|
-
": var(--text-accent);\n ",
|
|
33
|
-
": var(--text-accent-hover);\n ",
|
|
34
|
-
": var(--text-positive);\n ",
|
|
35
|
-
": var(--text-positive-hover);\n ",
|
|
36
|
-
": var(--surface-clear);\n ",
|
|
37
|
-
": var(--surface-clear);\n ",
|
|
38
|
-
": var(--surface-positive);\n ",
|
|
39
|
-
": var(--surface-positive-hover);\n\n ",
|
|
40
|
-
": var(--surface-positive);\n ",
|
|
41
|
-
": var(--surface-positive-hover);\n ",
|
|
42
|
-
": var(--surface-positive);\n ",
|
|
43
|
-
": var(--surface-positive-hover);\n\n ",
|
|
44
|
-
": var(--text-primary);\n ",
|
|
45
|
-
": var(--text-primary-hover);\n ",
|
|
46
|
-
": var(--text-primary);\n ",
|
|
47
|
-
": var(--text-primary);\n\n ",
|
|
48
|
-
": var(--surface-solid-tertiary);\n ",
|
|
49
|
-
": var(--surface-solid-tertiary-hover);\n\n ",
|
|
50
|
-
": var(--text-secondary);\n ",
|
|
51
|
-
": var(--surface-accent);\n\n ",
|
|
52
|
-
": var(--surface-positive);\n ",
|
|
53
|
-
": linear-gradient(90deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);\n ",
|
|
54
|
-
": linear-gradient(180deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);\n ",
|
|
55
|
-
": var(--on-dark-surface-solid-primary);\n\n ",
|
|
56
|
-
": 0.4;\n "
|
|
57
|
-
]);
|
|
58
|
-
_templateObject = function _templateObject() {
|
|
59
|
-
return data;
|
|
60
|
-
};
|
|
61
|
-
return data;
|
|
62
|
-
}
|
|
63
|
-
function _templateObject1() {
|
|
64
|
-
var data = _tagged_template_literal([
|
|
65
|
-
"\n ",
|
|
66
|
-
": 1.5rem;\n ",
|
|
67
|
-
": 1.5rem;\n ",
|
|
68
|
-
": 0.5rem;\n ",
|
|
69
|
-
": 1rem;\n\n ",
|
|
70
|
-
": 0.5rem;\n ",
|
|
71
|
-
": 0.25rem;\n ",
|
|
72
|
-
": 1.5rem;\n ",
|
|
73
|
-
": 0.5rem;\n ",
|
|
74
|
-
": 1rem;\n\n ",
|
|
75
|
-
": 0.5rem;\n ",
|
|
76
|
-
": 0.5rem;\n ",
|
|
77
|
-
": 1rem;\n ",
|
|
78
|
-
": 0.75rem;\n\n ",
|
|
79
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
|
80
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
|
81
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
|
82
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
|
83
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
|
84
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
|
85
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
|
86
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
|
87
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
|
88
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
|
89
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
|
90
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
|
91
|
-
": var(--plasma-typo-body-m-font-family);\n ",
|
|
92
|
-
": var(--plasma-typo-body-m-font-size);\n ",
|
|
93
|
-
": var(--plasma-typo-body-m-font-style);\n ",
|
|
94
|
-
": var(--plasma-typo-body-m-font-weight);\n ",
|
|
95
|
-
": var(--plasma-typo-body-m-letter-spacing);\n ",
|
|
96
|
-
": var(--plasma-typo-body-m-line-height);\n\n ",
|
|
97
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
|
98
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
|
99
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
|
100
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
|
101
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
|
102
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
|
103
|
-
": 0.125rem;\n "
|
|
104
|
-
]);
|
|
105
|
-
_templateObject1 = function _templateObject() {
|
|
106
|
-
return data;
|
|
107
|
-
};
|
|
108
|
-
return data;
|
|
109
|
-
}
|
|
110
|
-
var config = {
|
|
11
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const config = {
|
|
111
13
|
defaults: {
|
|
112
14
|
size: 's',
|
|
113
15
|
view: 'default'
|
|
114
16
|
},
|
|
115
17
|
variations: {
|
|
116
18
|
view: {
|
|
117
|
-
default: (0, _emotion.css)
|
|
19
|
+
default: (0, _emotion.css)`
|
|
20
|
+
${_emotion.stepsTokens.loaderSpinnerColor}: var(--on-dark-surface-solid-primary);
|
|
21
|
+
|
|
22
|
+
${_emotion.stepsTokens.activeTitleColor}: var(--text-primary);
|
|
23
|
+
${_emotion.stepsTokens.activeTitleColorHover}: var(--text-primary-hover);
|
|
24
|
+
${_emotion.stepsTokens.activeIndicatorColor}: var(--inverse-text-primary);
|
|
25
|
+
${_emotion.stepsTokens.activeIndicatorBackground}: var(--on-dark-surface-solid-primary);
|
|
26
|
+
|
|
27
|
+
${_emotion.stepsTokens.bulletActiveIndicatorBorder}: solid var(--on-dark-surface-solid-primary);
|
|
28
|
+
${_emotion.stepsTokens.bulletActiveBackground}: var(--surface-clear);
|
|
29
|
+
|
|
30
|
+
${_emotion.stepsTokens.completedTitleColor}: var(--text-accent);
|
|
31
|
+
${_emotion.stepsTokens.completedTitleColorHover}: var(--text-accent-hover);
|
|
32
|
+
${_emotion.stepsTokens.completedIndicatorColor}: var(--text-positive);
|
|
33
|
+
${_emotion.stepsTokens.completedIndicatorColorHover}: var(--text-positive-hover);
|
|
34
|
+
${_emotion.stepsTokens.completedIndicatorBackground}: var(--surface-clear);
|
|
35
|
+
${_emotion.stepsTokens.completedIndicatorBackgroundHover}: var(--surface-clear);
|
|
36
|
+
${_emotion.stepsTokens.completedIndicatorBorder}: var(--surface-positive);
|
|
37
|
+
${_emotion.stepsTokens.completedIndicatorBorderHover}: var(--surface-positive-hover);
|
|
38
|
+
|
|
39
|
+
${_emotion.stepsTokens.completedBulletBorder}: var(--surface-positive);
|
|
40
|
+
${_emotion.stepsTokens.completedBulletBorderHover}: var(--surface-positive-hover);
|
|
41
|
+
${_emotion.stepsTokens.completedBulletBackground}: var(--surface-positive);
|
|
42
|
+
${_emotion.stepsTokens.completedBulletBackgroundHover}: var(--surface-positive-hover);
|
|
43
|
+
|
|
44
|
+
${_emotion.stepsTokens.inactiveTitleColor}: var(--text-primary);
|
|
45
|
+
${_emotion.stepsTokens.inactiveTitleColorHover}: var(--text-primary-hover);
|
|
46
|
+
${_emotion.stepsTokens.inactiveIndicatorColor}: var(--text-primary);
|
|
47
|
+
${_emotion.stepsTokens.inactiveIndicatorColorHover}: var(--text-primary);
|
|
48
|
+
|
|
49
|
+
${_emotion.stepsTokens.inactiveIndicatorBackground}: var(--surface-solid-tertiary);
|
|
50
|
+
${_emotion.stepsTokens.inactiveIndicatorBackgroundHover}: var(--surface-solid-tertiary-hover);
|
|
51
|
+
|
|
52
|
+
${_emotion.stepsTokens.contentColor}: var(--text-secondary);
|
|
53
|
+
${_emotion.stepsTokens.focusColor}: var(--surface-accent);
|
|
54
|
+
|
|
55
|
+
${_emotion.stepsTokens.dividerColor}: var(--surface-positive);
|
|
56
|
+
${_emotion.stepsTokens.dividerGradientColor}: linear-gradient(90deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);
|
|
57
|
+
${_emotion.stepsTokens.dividerVerticalGradientColor}: linear-gradient(180deg, var(--surface-positive) 35%, var(--on-dark-surface-solid-primary) 100%);
|
|
58
|
+
${_emotion.stepsTokens.dividerVerticalIndentColor}: var(--on-dark-surface-solid-primary);
|
|
59
|
+
|
|
60
|
+
${_emotion.stepsTokens.disabledOpacity}: 0.4;
|
|
61
|
+
`
|
|
118
62
|
},
|
|
119
63
|
size: {
|
|
120
|
-
s: (0, _emotion.css)
|
|
64
|
+
s: (0, _emotion.css)`
|
|
65
|
+
${_emotion.stepsTokens.indicatorSize}: 1.5rem;
|
|
66
|
+
${_emotion.stepsTokens.activeIndicatorSize}: 1.5rem;
|
|
67
|
+
${_emotion.stepsTokens.bulletSize}: 0.5rem;
|
|
68
|
+
${_emotion.stepsTokens.activeBulletSize}: 1rem;
|
|
69
|
+
|
|
70
|
+
${_emotion.stepsTokens.titlePaddingTop}: 0.5rem;
|
|
71
|
+
${_emotion.stepsTokens.contentPaddingTop}: 0.25rem;
|
|
72
|
+
${_emotion.stepsTokens.contentSidePadding}: 1.5rem;
|
|
73
|
+
${_emotion.stepsTokens.contentVerticalPadding}: 0.5rem;
|
|
74
|
+
${_emotion.stepsTokens.verticalContentPaddingLeft}: 1rem;
|
|
75
|
+
|
|
76
|
+
${_emotion.stepsTokens.smallIndicatorIndentHeight}: 0.5rem;
|
|
77
|
+
${_emotion.stepsTokens.largeIndicatorIndentHeight}: 0.5rem;
|
|
78
|
+
${_emotion.stepsTokens.smallBulletIndentHeight}: 1rem;
|
|
79
|
+
${_emotion.stepsTokens.largeBulletIndentHeight}: 0.75rem;
|
|
80
|
+
|
|
81
|
+
${_emotion.stepsTokens.indicatorFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
82
|
+
${_emotion.stepsTokens.indicatorFontSize}: var(--plasma-typo-body-s-font-size);
|
|
83
|
+
${_emotion.stepsTokens.indicatorFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
84
|
+
${_emotion.stepsTokens.indicatorFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
85
|
+
${_emotion.stepsTokens.indicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
86
|
+
${_emotion.stepsTokens.indicatorLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
87
|
+
|
|
88
|
+
${_emotion.stepsTokens.activeIndicatorFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
89
|
+
${_emotion.stepsTokens.activeIndicatorFontSize}: var(--plasma-typo-body-s-font-size);
|
|
90
|
+
${_emotion.stepsTokens.activeIndicatorFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
91
|
+
${_emotion.stepsTokens.activeIndicatorFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
92
|
+
${_emotion.stepsTokens.activeIndicatorLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
93
|
+
${_emotion.stepsTokens.activeIndicatorLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
94
|
+
|
|
95
|
+
${_emotion.stepsTokens.titleFontFamily}: var(--plasma-typo-body-m-font-family);
|
|
96
|
+
${_emotion.stepsTokens.titleFontSize}: var(--plasma-typo-body-m-font-size);
|
|
97
|
+
${_emotion.stepsTokens.titleFontStyle}: var(--plasma-typo-body-m-font-style);
|
|
98
|
+
${_emotion.stepsTokens.titleFontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
99
|
+
${_emotion.stepsTokens.titleLetterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
100
|
+
${_emotion.stepsTokens.titleLineHeight}: var(--plasma-typo-body-m-line-height);
|
|
101
|
+
|
|
102
|
+
${_emotion.stepsTokens.contentFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
103
|
+
${_emotion.stepsTokens.contentFontSize}: var(--plasma-typo-body-s-font-size);
|
|
104
|
+
${_emotion.stepsTokens.contentFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
105
|
+
${_emotion.stepsTokens.contentFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
106
|
+
${_emotion.stepsTokens.contentLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
107
|
+
${_emotion.stepsTokens.contentLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
108
|
+
|
|
109
|
+
${_emotion.stepsTokens.dividerThickness}: 0.125rem;
|
|
110
|
+
`
|
|
121
111
|
}
|
|
122
112
|
}
|
|
123
113
|
};
|
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "Steps", {
|
|
|
8
8
|
return Steps;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const _Stepsconfig = require("./Steps.config");
|
|
13
|
+
const mergedConfig = (0, _emotion.mergeConfig)(_emotion.stepsConfig, _Stepsconfig.config);
|
|
14
|
+
const StepsComponent = (0, _emotion.component)(mergedConfig);
|
|
15
|
+
const Steps = StepsComponent;
|
|
@@ -8,124 +8,8 @@ Object.defineProperty(exports, "config", {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!raw) {
|
|
14
|
-
raw = strings.slice(0);
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
17
|
-
raw: {
|
|
18
|
-
value: Object.freeze(raw)
|
|
19
|
-
}
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
function _templateObject() {
|
|
23
|
-
var data = _tagged_template_literal([
|
|
24
|
-
"\n ",
|
|
25
|
-
": var(--plasma-typo-body-m-font-family);\n ",
|
|
26
|
-
": var(--plasma-typo-body-m-font-style);\n ",
|
|
27
|
-
": var(--plasma-typo-body-m-font-weight);\n ",
|
|
28
|
-
": var(--plasma-typo-body-m-line-height);\n ",
|
|
29
|
-
": var(--plasma-typo-body-m-font-size);\n ",
|
|
30
|
-
": var(--plasma-typo-body-m-letter-spacing);\n ",
|
|
31
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
|
32
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
|
33
|
-
": var(--plasma-typo-body-s-font-weight);\n ",
|
|
34
|
-
": var(--plasma-typo-body-s-line-height);\n ",
|
|
35
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
|
36
|
-
": var(--plasma-typo-body-xs-letter-spacing);\n ",
|
|
37
|
-
": 0.25rem;\n ",
|
|
38
|
-
": 0.75rem;\n "
|
|
39
|
-
]);
|
|
40
|
-
_templateObject = function _templateObject() {
|
|
41
|
-
return data;
|
|
42
|
-
};
|
|
43
|
-
return data;
|
|
44
|
-
}
|
|
45
|
-
function _templateObject1() {
|
|
46
|
-
var data = _tagged_template_literal([
|
|
47
|
-
"\n ",
|
|
48
|
-
": 3rem;\n ",
|
|
49
|
-
": 1.75rem;\n ",
|
|
50
|
-
": calc(var(",
|
|
51
|
-
") / 2);\n ",
|
|
52
|
-
": 1.25rem;\n ",
|
|
53
|
-
": calc(var(",
|
|
54
|
-
") / 2);\n ",
|
|
55
|
-
": 0.25rem;\n ",
|
|
56
|
-
": 0.125rem;\n ",
|
|
57
|
-
": 1.25;\n "
|
|
58
|
-
]);
|
|
59
|
-
_templateObject1 = function _templateObject() {
|
|
60
|
-
return data;
|
|
61
|
-
};
|
|
62
|
-
return data;
|
|
63
|
-
}
|
|
64
|
-
function _templateObject2() {
|
|
65
|
-
var data = _tagged_template_literal([
|
|
66
|
-
"\n ",
|
|
67
|
-
": 2rem;\n ",
|
|
68
|
-
": 1.25rem;\n ",
|
|
69
|
-
": calc(var(",
|
|
70
|
-
") / 2);\n ",
|
|
71
|
-
": 0.75rem;\n ",
|
|
72
|
-
": calc(var(",
|
|
73
|
-
") / 2);\n ",
|
|
74
|
-
": 0.25rem;\n ",
|
|
75
|
-
": 0.125rem;\n ",
|
|
76
|
-
": 1.25;\n "
|
|
77
|
-
]);
|
|
78
|
-
_templateObject2 = function _templateObject() {
|
|
79
|
-
return data;
|
|
80
|
-
};
|
|
81
|
-
return data;
|
|
82
|
-
}
|
|
83
|
-
function _templateObject3() {
|
|
84
|
-
var data = _tagged_template_literal([
|
|
85
|
-
"\n ",
|
|
86
|
-
": var(--text-primary);\n ",
|
|
87
|
-
": var(--text-secondary);\n ",
|
|
88
|
-
": 2;\n ",
|
|
89
|
-
": var(--surface-accent);\n ",
|
|
90
|
-
": var(--surface-accent-hover);\n ",
|
|
91
|
-
": var(--surface-solid-card);\n ",
|
|
92
|
-
": var(--surface-solid-card-hover);\n ",
|
|
93
|
-
": 0;\n ",
|
|
94
|
-
": 0.125rem;\n ",
|
|
95
|
-
": var(--outline-accent);\n ",
|
|
96
|
-
": var(--outline-accent-hover);\n ",
|
|
97
|
-
": var(--outline-solid-primary);\n ",
|
|
98
|
-
": var(--outline-solid-primary-hover);\n ",
|
|
99
|
-
": var(--surface-solid-card);\n ",
|
|
100
|
-
": var(--surface-accent);\n ",
|
|
101
|
-
": 0 1px 1px rgba(0, 0, 0, 0.11);\n "
|
|
102
|
-
]);
|
|
103
|
-
_templateObject3 = function _templateObject() {
|
|
104
|
-
return data;
|
|
105
|
-
};
|
|
106
|
-
return data;
|
|
107
|
-
}
|
|
108
|
-
function _templateObject4() {
|
|
109
|
-
var data = _tagged_template_literal([
|
|
110
|
-
"\n ",
|
|
111
|
-
": 0.4;\n "
|
|
112
|
-
]);
|
|
113
|
-
_templateObject4 = function _templateObject() {
|
|
114
|
-
return data;
|
|
115
|
-
};
|
|
116
|
-
return data;
|
|
117
|
-
}
|
|
118
|
-
function _templateObject5() {
|
|
119
|
-
var data = _tagged_template_literal([
|
|
120
|
-
"\n ",
|
|
121
|
-
": var(--surface-accent);\n "
|
|
122
|
-
]);
|
|
123
|
-
_templateObject5 = function _templateObject() {
|
|
124
|
-
return data;
|
|
125
|
-
};
|
|
126
|
-
return data;
|
|
127
|
-
}
|
|
128
|
-
var config = {
|
|
11
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const config = {
|
|
129
13
|
defaults: {
|
|
130
14
|
view: 'default',
|
|
131
15
|
size: 's',
|
|
@@ -135,20 +19,74 @@ var config = {
|
|
|
135
19
|
},
|
|
136
20
|
variations: {
|
|
137
21
|
size: {
|
|
138
|
-
s: (0, _emotion.css)
|
|
22
|
+
s: (0, _emotion.css)`
|
|
23
|
+
${_emotion.switchTokens.fontFamily}: var(--plasma-typo-body-m-font-family);
|
|
24
|
+
${_emotion.switchTokens.fontStyle}: var(--plasma-typo-body-m-font-style);
|
|
25
|
+
${_emotion.switchTokens.fontWeight}: var(--plasma-typo-body-m-font-weight);
|
|
26
|
+
${_emotion.switchTokens.lineHeight}: var(--plasma-typo-body-m-line-height);
|
|
27
|
+
${_emotion.switchTokens.fontSize}: var(--plasma-typo-body-m-font-size);
|
|
28
|
+
${_emotion.switchTokens.letterSpacing}: var(--plasma-typo-body-m-letter-spacing);
|
|
29
|
+
${_emotion.switchTokens.descriptionFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
30
|
+
${_emotion.switchTokens.descriptionFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
31
|
+
${_emotion.switchTokens.descriptionFontWeight}: var(--plasma-typo-body-s-font-weight);
|
|
32
|
+
${_emotion.switchTokens.descriptionLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
33
|
+
${_emotion.switchTokens.descriptionFontSize}: var(--plasma-typo-body-s-font-size);
|
|
34
|
+
${_emotion.switchTokens.descriptionLetterSpacing}: var(--plasma-typo-body-xs-letter-spacing);
|
|
35
|
+
${_emotion.switchTokens.verticalGap}: 0.25rem;
|
|
36
|
+
${_emotion.switchTokens.labelOffset}: 0.75rem;
|
|
37
|
+
`
|
|
139
38
|
},
|
|
140
39
|
toggleSize: {
|
|
141
|
-
l: (0, _emotion.css)
|
|
142
|
-
|
|
40
|
+
l: (0, _emotion.css)`
|
|
41
|
+
${_emotion.switchTokens.trackWidth}: 3rem;
|
|
42
|
+
${_emotion.switchTokens.trackHeight}: 1.75rem;
|
|
43
|
+
${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
|
|
44
|
+
${_emotion.switchTokens.thumbSize}: 1.25rem;
|
|
45
|
+
${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
|
|
46
|
+
${_emotion.switchTokens.thumbOffsetOn}: 0.25rem;
|
|
47
|
+
${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
|
|
48
|
+
${_emotion.switchTokens.thumbPressScale}: 1.25;
|
|
49
|
+
`,
|
|
50
|
+
s: (0, _emotion.css)`
|
|
51
|
+
${_emotion.switchTokens.trackWidth}: 2rem;
|
|
52
|
+
${_emotion.switchTokens.trackHeight}: 1.25rem;
|
|
53
|
+
${_emotion.switchTokens.trackBorderRadius}: calc(var(${_emotion.switchTokens.trackHeight}) / 2);
|
|
54
|
+
${_emotion.switchTokens.thumbSize}: 0.75rem;
|
|
55
|
+
${_emotion.switchTokens.thumbBorderRadius}: calc(var(${_emotion.switchTokens.thumbSize}) / 2);
|
|
56
|
+
${_emotion.switchTokens.thumbOffsetOn}: 0.25rem;
|
|
57
|
+
${_emotion.switchTokens.thumbOffsetOff}: 0.125rem;
|
|
58
|
+
${_emotion.switchTokens.thumbPressScale}: 1.25;
|
|
59
|
+
`
|
|
143
60
|
},
|
|
144
61
|
view: {
|
|
145
|
-
default: (0, _emotion.css)
|
|
62
|
+
default: (0, _emotion.css)`
|
|
63
|
+
${_emotion.switchTokens.labelColor}: var(--text-primary);
|
|
64
|
+
${_emotion.switchTokens.descriptionColor}: var(--text-secondary);
|
|
65
|
+
${_emotion.switchTokens.descriptionMaxLines}: 2;
|
|
66
|
+
${_emotion.switchTokens.trackBackgroundColorOn}: var(--surface-accent);
|
|
67
|
+
${_emotion.switchTokens.trackBackgroundColorOnHover}: var(--surface-accent-hover);
|
|
68
|
+
${_emotion.switchTokens.trackBackgroundColorOff}: var(--surface-solid-card);
|
|
69
|
+
${_emotion.switchTokens.trackBackgroundColorOffHover}: var(--surface-solid-card-hover);
|
|
70
|
+
${_emotion.switchTokens.trackBorderWidthOn}: 0;
|
|
71
|
+
${_emotion.switchTokens.trackBorderWidthOff}: 0.125rem;
|
|
72
|
+
${_emotion.switchTokens.trackBorderColorOn}: var(--outline-accent);
|
|
73
|
+
${_emotion.switchTokens.trackBorderColorOnHover}: var(--outline-accent-hover);
|
|
74
|
+
${_emotion.switchTokens.trackBorderColorOff}: var(--outline-solid-primary);
|
|
75
|
+
${_emotion.switchTokens.trackBorderColorOffHover}: var(--outline-solid-primary-hover);
|
|
76
|
+
${_emotion.switchTokens.thumbBackgroundColorOn}: var(--surface-solid-card);
|
|
77
|
+
${_emotion.switchTokens.thumbBackgroundColorOff}: var(--surface-accent);
|
|
78
|
+
${_emotion.switchTokens.thumbBoxShadow}: 0 1px 1px rgba(0, 0, 0, 0.11);
|
|
79
|
+
`
|
|
146
80
|
},
|
|
147
81
|
disabled: {
|
|
148
|
-
true: (0, _emotion.css)
|
|
82
|
+
true: (0, _emotion.css)`
|
|
83
|
+
${_emotion.switchTokens.disabledOpacity}: 0.4;
|
|
84
|
+
`
|
|
149
85
|
},
|
|
150
86
|
focused: {
|
|
151
|
-
true: (0, _emotion.css)
|
|
87
|
+
true: (0, _emotion.css)`
|
|
88
|
+
${_emotion.switchTokens.trackFocusColor}: var(--surface-accent);
|
|
89
|
+
`
|
|
152
90
|
}
|
|
153
91
|
}
|
|
154
92
|
};
|
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "Switch", {
|
|
|
8
8
|
return Switch;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
|
+
const _Switchconfig = require("./Switch.config");
|
|
13
|
+
const mergedConfig = (0, _emotion.mergeConfig)(_emotion.switchConfig, _Switchconfig.config);
|
|
14
|
+
const SwitchComponent = (0, _emotion.component)(mergedConfig);
|
|
15
|
+
const Switch = SwitchComponent;
|