@salutejs/sdds-cs 0.354.1-next-sbcom.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
|
@@ -1,65 +1,44 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _tagged_template_literal(strings, raw) {
|
|
15
|
-
if (!raw) {
|
|
16
|
-
raw = strings.slice(0);
|
|
17
|
-
}
|
|
18
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
19
|
-
raw: {
|
|
20
|
-
value: Object.freeze(raw)
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
function _templateObject() {
|
|
25
|
-
var data = _tagged_template_literal([
|
|
26
|
-
"\n ",
|
|
27
|
-
";\n\n ",
|
|
28
|
-
": 6;\n ",
|
|
29
|
-
": 0.5rem;\n ",
|
|
30
|
-
": 1rem;\n ",
|
|
31
|
-
": 0;\n\n ",
|
|
32
|
-
": 12;\n ",
|
|
33
|
-
": 0.5rem;\n ",
|
|
34
|
-
": 1.25rem;\n ",
|
|
35
|
-
": 35rem;\n\n ",
|
|
36
|
-
": 18;\n ",
|
|
37
|
-
": 0.5rem;\n ",
|
|
38
|
-
": 1.75rem;\n ",
|
|
39
|
-
": 49.125rem;\n\n ",
|
|
40
|
-
": 24;\n ",
|
|
41
|
-
": 0.5rem;\n ",
|
|
42
|
-
": 2.5rem;\n ",
|
|
43
|
-
": 60rem;\n\n ",
|
|
44
|
-
": 30;\n ",
|
|
45
|
-
": 0.5rem;\n ",
|
|
46
|
-
": 4rem;\n ",
|
|
47
|
-
": 75rem;\n "
|
|
48
|
-
]);
|
|
49
|
-
_templateObject = function _templateObject() {
|
|
50
|
-
return data;
|
|
51
|
-
};
|
|
52
|
-
return data;
|
|
53
|
-
}
|
|
54
1
|
import { css, gridTokens, getBaseGridView } from '@salutejs/plasma-new-hope/emotion';
|
|
55
|
-
|
|
56
|
-
export var config = {
|
|
2
|
+
export const config = {
|
|
57
3
|
defaults: {
|
|
58
4
|
view: 'default'
|
|
59
5
|
},
|
|
60
6
|
variations: {
|
|
61
7
|
view: {
|
|
62
|
-
default: css
|
|
8
|
+
default: css`
|
|
9
|
+
${getBaseGridView({
|
|
10
|
+
[gridTokens.smallMMinWidth]: 0,
|
|
11
|
+
[gridTokens.mediumSMinWidth]: '35rem',
|
|
12
|
+
[gridTokens.mediumMMinWidth]: '49.125rem',
|
|
13
|
+
[gridTokens.largeSMinWidth]: '60rem',
|
|
14
|
+
[gridTokens.largeMMinWidth]: '75rem'
|
|
15
|
+
}, 'default')};
|
|
16
|
+
|
|
17
|
+
${gridTokens.smallMColsCount}: 6;
|
|
18
|
+
${gridTokens.smallMGap}: 0.5rem;
|
|
19
|
+
${gridTokens.smallMMargin}: 1rem;
|
|
20
|
+
${gridTokens.smallMMinWidth}: 0;
|
|
21
|
+
|
|
22
|
+
${gridTokens.mediumSColsCount}: 12;
|
|
23
|
+
${gridTokens.mediumSGap}: 0.5rem;
|
|
24
|
+
${gridTokens.mediumSMargin}: 1.25rem;
|
|
25
|
+
${gridTokens.mediumSMinWidth}: 35rem;
|
|
26
|
+
|
|
27
|
+
${gridTokens.mediumMColsCount}: 18;
|
|
28
|
+
${gridTokens.mediumMGap}: 0.5rem;
|
|
29
|
+
${gridTokens.mediumMMargin}: 1.75rem;
|
|
30
|
+
${gridTokens.mediumMMinWidth}: 49.125rem;
|
|
31
|
+
|
|
32
|
+
${gridTokens.largeSColsCount}: 24;
|
|
33
|
+
${gridTokens.largeSGap}: 0.5rem;
|
|
34
|
+
${gridTokens.largeSMargin}: 2.5rem;
|
|
35
|
+
${gridTokens.largeSMinWidth}: 60rem;
|
|
36
|
+
|
|
37
|
+
${gridTokens.largeMColsCount}: 30;
|
|
38
|
+
${gridTokens.largeMGap}: 0.5rem;
|
|
39
|
+
${gridTokens.largeMMargin}: 4rem;
|
|
40
|
+
${gridTokens.largeMMinWidth}: 75rem;
|
|
41
|
+
`
|
|
63
42
|
}
|
|
64
43
|
}
|
|
65
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gridConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
|
2
2
|
import { config } from './Grid.config';
|
|
3
3
|
export { Row, Col } from '@salutejs/plasma-new-hope/emotion';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
const mergedConfig = mergeConfig(gridConfig, config);
|
|
5
|
+
export const Grid = component(mergedConfig);
|
|
@@ -1,102 +1,5 @@
|
|
|
1
|
-
function _tagged_template_literal(strings, raw) {
|
|
2
|
-
if (!raw) {
|
|
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(--on-dark-text-primary);\n ",
|
|
15
|
-
": var(--surface-accent);\n ",
|
|
16
|
-
": var(",
|
|
17
|
-
");\n ",
|
|
18
|
-
": var(--surface-accent-hover);\n ",
|
|
19
|
-
": var(--surface-accent-active);\n "
|
|
20
|
-
]);
|
|
21
|
-
_templateObject = function _templateObject() {
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
24
|
-
return data;
|
|
25
|
-
}
|
|
26
|
-
function _templateObject1() {
|
|
27
|
-
var data = _tagged_template_literal([
|
|
28
|
-
"\n ",
|
|
29
|
-
": var(--text-accent);\n ",
|
|
30
|
-
": var(--text-accent-minor);\n\n ",
|
|
31
|
-
": var(--surface-solid-secondary);\n ",
|
|
32
|
-
": var(--surface-solid-secondary-hover);\n ",
|
|
33
|
-
": var(--surface-solid-secondary-active);\n ",
|
|
34
|
-
": var(",
|
|
35
|
-
");\n\n ",
|
|
36
|
-
": var(--text-accent-active);\n "
|
|
37
|
-
]);
|
|
38
|
-
_templateObject1 = function _templateObject() {
|
|
39
|
-
return data;
|
|
40
|
-
};
|
|
41
|
-
return data;
|
|
42
|
-
}
|
|
43
|
-
function _templateObject2() {
|
|
44
|
-
var data = _tagged_template_literal([
|
|
45
|
-
"\n ",
|
|
46
|
-
": var(--text-accent);\n ",
|
|
47
|
-
": var(--surface-clear);\n ",
|
|
48
|
-
": var(--surface-transparent-accent);\n ",
|
|
49
|
-
": var(--surface-transparent-accent);\n ",
|
|
50
|
-
": var(--surface-transparent-accent-active);\n "
|
|
51
|
-
]);
|
|
52
|
-
_templateObject2 = function _templateObject() {
|
|
53
|
-
return data;
|
|
54
|
-
};
|
|
55
|
-
return data;
|
|
56
|
-
}
|
|
57
|
-
function _templateObject3() {
|
|
58
|
-
var data = _tagged_template_literal([
|
|
59
|
-
"\n ",
|
|
60
|
-
": 2.5rem;\n ",
|
|
61
|
-
": 2.5rem;\n ",
|
|
62
|
-
": 1rem;\n ",
|
|
63
|
-
": 0.75rem;\n ",
|
|
64
|
-
": var(--plasma-typo-body-s-font-family);\n ",
|
|
65
|
-
": var(--plasma-typo-body-s-font-size);\n ",
|
|
66
|
-
": var(--plasma-typo-body-s-font-style);\n ",
|
|
67
|
-
": var(--plasma-typo-body-s-bold-font-weight);\n ",
|
|
68
|
-
": var(--plasma-typo-body-s-letter-spacing);\n ",
|
|
69
|
-
": var(--plasma-typo-body-s-line-height);\n\n ",
|
|
70
|
-
": 1.375rem;\n ",
|
|
71
|
-
": inherit;\n "
|
|
72
|
-
]);
|
|
73
|
-
_templateObject3 = function _templateObject() {
|
|
74
|
-
return data;
|
|
75
|
-
};
|
|
76
|
-
return data;
|
|
77
|
-
}
|
|
78
|
-
function _templateObject4() {
|
|
79
|
-
var data = _tagged_template_literal([
|
|
80
|
-
"\n ",
|
|
81
|
-
": 0.4;\n "
|
|
82
|
-
]);
|
|
83
|
-
_templateObject4 = function _templateObject() {
|
|
84
|
-
return data;
|
|
85
|
-
};
|
|
86
|
-
return data;
|
|
87
|
-
}
|
|
88
|
-
function _templateObject5() {
|
|
89
|
-
var data = _tagged_template_literal([
|
|
90
|
-
"\n ",
|
|
91
|
-
": var(--surface-accent);\n "
|
|
92
|
-
]);
|
|
93
|
-
_templateObject5 = function _templateObject() {
|
|
94
|
-
return data;
|
|
95
|
-
};
|
|
96
|
-
return data;
|
|
97
|
-
}
|
|
98
1
|
import { css, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
99
|
-
export
|
|
2
|
+
export const config = {
|
|
100
3
|
defaults: {
|
|
101
4
|
view: 'accent',
|
|
102
5
|
focused: 'true',
|
|
@@ -104,18 +7,58 @@ export var config = {
|
|
|
104
7
|
},
|
|
105
8
|
variations: {
|
|
106
9
|
view: {
|
|
107
|
-
accent: css
|
|
108
|
-
|
|
109
|
-
|
|
10
|
+
accent: css`
|
|
11
|
+
${iconButtonTokens.iconButtonColor}: var(--on-dark-text-primary);
|
|
12
|
+
${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-accent);
|
|
13
|
+
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
14
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-accent-hover);
|
|
15
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-accent-active);
|
|
16
|
+
`,
|
|
17
|
+
secondary: css`
|
|
18
|
+
${iconButtonTokens.iconButtonColor}: var(--text-accent);
|
|
19
|
+
${iconButtonTokens.iconButtonColorHover}: var(--text-accent-minor);
|
|
20
|
+
|
|
21
|
+
${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-solid-secondary);
|
|
22
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-solid-secondary-hover);
|
|
23
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-solid-secondary-active);
|
|
24
|
+
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
25
|
+
|
|
26
|
+
${iconButtonTokens.iconButtonColorActive}: var(--text-accent-active);
|
|
27
|
+
`,
|
|
28
|
+
clear: css`
|
|
29
|
+
${iconButtonTokens.iconButtonColor}: var(--text-accent);
|
|
30
|
+
${iconButtonTokens.iconButtonBackgroundColor}: var(--surface-clear);
|
|
31
|
+
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(--surface-transparent-accent);
|
|
32
|
+
${iconButtonTokens.iconButtonBackgroundColorHover}: var(--surface-transparent-accent);
|
|
33
|
+
${iconButtonTokens.iconButtonBackgroundColorActive}: var(--surface-transparent-accent-active);
|
|
34
|
+
`
|
|
110
35
|
},
|
|
111
36
|
size: {
|
|
112
|
-
s: css
|
|
37
|
+
s: css`
|
|
38
|
+
${iconButtonTokens.iconButtonHeight}: 2.5rem;
|
|
39
|
+
${iconButtonTokens.iconButtonWidth}: 2.5rem;
|
|
40
|
+
${iconButtonTokens.iconButtonPadding}: 1rem;
|
|
41
|
+
${iconButtonTokens.iconButtonRadius}: 0.75rem;
|
|
42
|
+
${iconButtonTokens.iconButtonFontFamily}: var(--plasma-typo-body-s-font-family);
|
|
43
|
+
${iconButtonTokens.iconButtonFontSize}: var(--plasma-typo-body-s-font-size);
|
|
44
|
+
${iconButtonTokens.iconButtonFontStyle}: var(--plasma-typo-body-s-font-style);
|
|
45
|
+
${iconButtonTokens.iconButtonFontWeight}: var(--plasma-typo-body-s-bold-font-weight);
|
|
46
|
+
${iconButtonTokens.iconButtonLetterSpacing}: var(--plasma-typo-body-s-letter-spacing);
|
|
47
|
+
${iconButtonTokens.iconButtonLineHeight}: var(--plasma-typo-body-s-line-height);
|
|
48
|
+
|
|
49
|
+
${iconButtonTokens.iconButtonSpinnerSize}: 1.375rem;
|
|
50
|
+
${iconButtonTokens.iconButtonSpinnerColor}: inherit;
|
|
51
|
+
`
|
|
113
52
|
},
|
|
114
53
|
disabled: {
|
|
115
|
-
true: css
|
|
54
|
+
true: css`
|
|
55
|
+
${iconButtonTokens.iconButtonDisabledOpacity}: 0.4;
|
|
56
|
+
`
|
|
116
57
|
},
|
|
117
58
|
focused: {
|
|
118
|
-
true: css
|
|
59
|
+
true: css`
|
|
60
|
+
${iconButtonTokens.iconButtonFocusColor}: var(--surface-accent);
|
|
61
|
+
`
|
|
119
62
|
}
|
|
120
63
|
}
|
|
121
64
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iconButtonConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
|
2
2
|
import { config } from './IconButton.config';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const mergedConfig = mergeConfig(iconButtonConfig, config);
|
|
4
|
+
const IconButtonComponent = component(mergedConfig);
|
|
5
5
|
/**
|
|
6
6
|
* Кнопка с иконкой.
|
|
7
|
-
*/ export
|
|
7
|
+
*/ export const IconButton = IconButtonComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { imageConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
const mergedConfig = mergeConfig(imageConfig);
|
|
3
|
+
const ImageComponent = component(mergedConfig);
|
|
4
4
|
/**
|
|
5
5
|
* Компонент Image.
|
|
6
|
-
*/ export
|
|
6
|
+
*/ export const Image = ImageComponent;
|
|
@@ -1,133 +1,43 @@
|
|
|
1
|
-
function _tagged_template_literal(strings, raw) {
|
|
2
|
-
if (!raw) {
|
|
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(--surface-solid-default);\n "
|
|
15
|
-
]);
|
|
16
|
-
_templateObject = function _templateObject() {
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
return data;
|
|
20
|
-
}
|
|
21
|
-
function _templateObject1() {
|
|
22
|
-
var data = _tagged_template_literal([
|
|
23
|
-
"\n ",
|
|
24
|
-
": var(--surface-accent);\n "
|
|
25
|
-
]);
|
|
26
|
-
_templateObject1 = function _templateObject() {
|
|
27
|
-
return data;
|
|
28
|
-
};
|
|
29
|
-
return data;
|
|
30
|
-
}
|
|
31
|
-
function _templateObject2() {
|
|
32
|
-
var data = _tagged_template_literal([
|
|
33
|
-
"\n ",
|
|
34
|
-
": var(--on-light-surface-solid-primary);\n "
|
|
35
|
-
]);
|
|
36
|
-
_templateObject2 = function _templateObject() {
|
|
37
|
-
return data;
|
|
38
|
-
};
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
function _templateObject3() {
|
|
42
|
-
var data = _tagged_template_literal([
|
|
43
|
-
"\n ",
|
|
44
|
-
": var(--surface-positive);\n "
|
|
45
|
-
]);
|
|
46
|
-
_templateObject3 = function _templateObject() {
|
|
47
|
-
return data;
|
|
48
|
-
};
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
function _templateObject4() {
|
|
52
|
-
var data = _tagged_template_literal([
|
|
53
|
-
"\n ",
|
|
54
|
-
": var(--surface-negative);\n "
|
|
55
|
-
]);
|
|
56
|
-
_templateObject4 = function _templateObject() {
|
|
57
|
-
return data;
|
|
58
|
-
};
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
|
-
function _templateObject5() {
|
|
62
|
-
var data = _tagged_template_literal([
|
|
63
|
-
"\n ",
|
|
64
|
-
": var(--surface-warning);\n "
|
|
65
|
-
]);
|
|
66
|
-
_templateObject5 = function _templateObject() {
|
|
67
|
-
return data;
|
|
68
|
-
};
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
function _templateObject6() {
|
|
72
|
-
var data = _tagged_template_literal([
|
|
73
|
-
"\n ",
|
|
74
|
-
": var(--text-primary);\n "
|
|
75
|
-
]);
|
|
76
|
-
_templateObject6 = function _templateObject() {
|
|
77
|
-
return data;
|
|
78
|
-
};
|
|
79
|
-
return data;
|
|
80
|
-
}
|
|
81
|
-
function _templateObject7() {
|
|
82
|
-
var data = _tagged_template_literal([
|
|
83
|
-
"\n ",
|
|
84
|
-
": 0.75rem;\n "
|
|
85
|
-
]);
|
|
86
|
-
_templateObject7 = function _templateObject() {
|
|
87
|
-
return data;
|
|
88
|
-
};
|
|
89
|
-
return data;
|
|
90
|
-
}
|
|
91
|
-
function _templateObject8() {
|
|
92
|
-
var data = _tagged_template_literal([
|
|
93
|
-
"\n ",
|
|
94
|
-
": 0.5rem;\n "
|
|
95
|
-
]);
|
|
96
|
-
_templateObject8 = function _templateObject() {
|
|
97
|
-
return data;
|
|
98
|
-
};
|
|
99
|
-
return data;
|
|
100
|
-
}
|
|
101
|
-
function _templateObject9() {
|
|
102
|
-
var data = _tagged_template_literal([
|
|
103
|
-
"\n ",
|
|
104
|
-
": 0.375rem;\n "
|
|
105
|
-
]);
|
|
106
|
-
_templateObject9 = function _templateObject() {
|
|
107
|
-
return data;
|
|
108
|
-
};
|
|
109
|
-
return data;
|
|
110
|
-
}
|
|
111
1
|
import { css, indicatorTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
112
|
-
export
|
|
2
|
+
export const config = {
|
|
113
3
|
defaults: {
|
|
114
4
|
size: 's',
|
|
115
5
|
view: 'default'
|
|
116
6
|
},
|
|
117
7
|
variations: {
|
|
118
8
|
view: {
|
|
119
|
-
default: css
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
9
|
+
default: css`
|
|
10
|
+
${tokens.color}: var(--surface-solid-default);
|
|
11
|
+
`,
|
|
12
|
+
accent: css`
|
|
13
|
+
${tokens.color}: var(--surface-accent);
|
|
14
|
+
`,
|
|
15
|
+
inactive: css`
|
|
16
|
+
${tokens.color}: var(--on-light-surface-solid-primary);
|
|
17
|
+
`,
|
|
18
|
+
positive: css`
|
|
19
|
+
${tokens.color}: var(--surface-positive);
|
|
20
|
+
`,
|
|
21
|
+
negative: css`
|
|
22
|
+
${tokens.color}: var(--surface-negative);
|
|
23
|
+
`,
|
|
24
|
+
warning: css`
|
|
25
|
+
${tokens.color}: var(--surface-warning);
|
|
26
|
+
`,
|
|
27
|
+
black: css`
|
|
28
|
+
${tokens.color}: var(--text-primary);
|
|
29
|
+
`
|
|
126
30
|
},
|
|
127
31
|
size: {
|
|
128
|
-
l: css
|
|
129
|
-
|
|
130
|
-
|
|
32
|
+
l: css`
|
|
33
|
+
${tokens.size}: 0.75rem;
|
|
34
|
+
`,
|
|
35
|
+
m: css`
|
|
36
|
+
${tokens.size}: 0.5rem;
|
|
37
|
+
`,
|
|
38
|
+
s: css`
|
|
39
|
+
${tokens.size}: 0.375rem;
|
|
40
|
+
`
|
|
131
41
|
}
|
|
132
42
|
}
|
|
133
43
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { indicatorConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
|
|
2
2
|
import { config } from './Indicator.config';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const mergedConfig = mergeConfig(indicatorConfig, config);
|
|
4
|
+
const Indicator = component(mergedConfig);
|
|
5
5
|
export { Indicator, mergedConfig };
|