@salutejs/sdds-cs 0.361.0-next-sbcom.0 → 0.362.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 +11 -10
- package/dist/beta/cjs/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/cjs/Tooltip/Tooltip.config.js +16 -15
- package/dist/beta/es/Popover/Popover.closeInner.config.js +11 -10
- package/dist/beta/es/Popover/Popover.closeNone.config.js +5 -4
- package/dist/beta/es/Tooltip/Tooltip.config.js +16 -15
- package/dist/emotion/cjs/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/cjs/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/cjs/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/cjs/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/cjs/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/cjs/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/cjs/components/Button/Button.config.js +44 -43
- package/dist/emotion/cjs/components/Button/Button.js +3 -3
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/cjs/components/Card/Card.config.js +2 -1
- package/dist/emotion/cjs/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/cjs/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/cjs/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/cjs/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/cjs/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/cjs/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/cjs/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/cjs/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/cjs/components/IconButton/IconButton.js +70 -1
- package/dist/emotion/cjs/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/cjs/components/Link/Link.config.js +53 -52
- package/dist/emotion/cjs/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/cjs/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/cjs/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/cjs/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/cjs/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/cjs/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/cjs/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/cjs/components/Range/Range.config.js +70 -69
- package/dist/emotion/cjs/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/cjs/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/cjs/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/cjs/components/Select/Select.config.js +126 -125
- package/dist/emotion/cjs/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/cjs/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/cjs/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/cjs/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/cjs/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/cjs/components/Table/Table.config.js +82 -81
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/cjs/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/cjs/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/cjs/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/cjs/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/cjs/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/cjs/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/cjs/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/cjs/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/cjs/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/cjs/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/cjs/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/cjs/components/Typography/Body.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/cjs/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/cjs/components/Typography/Text.config.js +33 -32
- package/dist/emotion/es/components/Accordion/Accordion.config.js +26 -25
- package/dist/emotion/es/components/Attach/Attach.config.js +121 -120
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +123 -122
- package/dist/emotion/es/components/Avatar/Avatar.config.js +32 -31
- package/dist/emotion/es/components/Badge/Badge.clear.config.js +5 -4
- package/dist/emotion/es/components/Badge/Badge.config.js +17 -16
- package/dist/emotion/es/components/Breadcrumbs/Breadcrumbs.config.js +11 -10
- package/dist/emotion/es/components/Button/Button.config.js +44 -43
- package/dist/emotion/es/components/Button/Button.js +3 -3
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +39 -38
- package/dist/emotion/es/components/Calendar/Calendar.config.js +60 -59
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +60 -59
- package/dist/emotion/es/components/Card/Card.config.js +2 -1
- package/dist/emotion/es/components/Carousel/Carousel.config.js +9 -8
- package/dist/emotion/es/components/Cell/Cell.config.js +41 -40
- package/dist/emotion/es/components/Checkbox/Checkbox.config.js +22 -21
- package/dist/emotion/es/components/Chip/Chip.config.js +53 -52
- package/dist/emotion/es/components/ChipGroup/ChipGroup.config.js +28 -27
- package/dist/emotion/es/components/Combobox/Combobox.config.js +160 -159
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +169 -168
- package/dist/emotion/es/components/Divider/Divider.config.js +5 -4
- package/dist/emotion/es/components/Drawer/Drawer.config.js +3 -2
- package/dist/emotion/es/components/Dropdown/Dropdown.config.js +21 -20
- package/dist/emotion/es/components/EmptyState/EmptyState.config.js +25 -24
- package/dist/emotion/es/components/IconButton/IconButton.config.js +29 -28
- package/dist/emotion/es/components/IconButton/IconButton.js +25 -2
- package/dist/emotion/es/components/Indicator/Indicator.config.js +8 -7
- package/dist/emotion/es/components/Link/Link.config.js +53 -52
- package/dist/emotion/es/components/Modal/Modal.config.js +6 -5
- package/dist/emotion/es/components/Notification/Notification.config.js +22 -21
- package/dist/emotion/es/components/NumberInput/NumberInput.config.js +30 -29
- package/dist/emotion/es/components/Pagination/Pagination.config.js +32 -31
- package/dist/emotion/es/components/Popover/Popover.config.js +3 -2
- package/dist/emotion/es/components/Progress/Progress.config.js +101 -100
- package/dist/emotion/es/components/Radiobox/Radiobox.config.js +19 -18
- package/dist/emotion/es/components/Range/Range.config.js +70 -69
- package/dist/emotion/es/components/Rating/Rating.config.js +33 -32
- package/dist/emotion/es/components/Segment/SegmentGroup.config.js +6 -5
- package/dist/emotion/es/components/Segment/SegmentItem.config.js +29 -28
- package/dist/emotion/es/components/Select/Select.config.js +126 -125
- package/dist/emotion/es/components/Sheet/Sheet.config.js +3 -2
- package/dist/emotion/es/components/Skeleton/LineSkeleton.config.js +35 -34
- package/dist/emotion/es/components/Slider/Slider.config.js +58 -57
- package/dist/emotion/es/components/Spinner/Spinner.config.js +8 -7
- package/dist/emotion/es/components/Steps/StepItem.config.js +8 -7
- package/dist/emotion/es/components/Steps/Steps.config.js +55 -54
- package/dist/emotion/es/components/Switch/Switch.config.js +26 -25
- package/dist/emotion/es/components/Table/Table.config.js +82 -81
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +74 -73
- package/dist/emotion/es/components/Tabs/horizontal/HorizontalTabs.config.js +22 -21
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +33 -32
- package/dist/emotion/es/components/Tabs/vertical/VerticalTabs.config.js +14 -13
- package/dist/emotion/es/components/TextArea/TextArea.clear.config.js +131 -130
- package/dist/emotion/es/components/TextArea/TextArea.config.js +160 -159
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +119 -118
- package/dist/emotion/es/components/TextField/TextField.config.js +167 -166
- package/dist/emotion/es/components/TimePicker/TimePicker.config.js +79 -78
- package/dist/emotion/es/components/Toast/Toast.config.js +19 -18
- package/dist/emotion/es/components/ToastNew/ToastNew.config.js +11 -10
- package/dist/emotion/es/components/Tooltip/Tooltip.config.js +13 -12
- package/dist/emotion/es/components/Tour/Tour.config.js +2 -1
- package/dist/emotion/es/components/Tree/Tree.config.js +22 -21
- package/dist/emotion/es/components/Typography/Body.config.js +41 -40
- package/dist/emotion/es/components/Typography/Dspl.config.js +25 -24
- package/dist/emotion/es/components/Typography/Heading.config.js +41 -40
- package/dist/emotion/es/components/Typography/Text.config.js +33 -32
- package/package.json +8 -8
- package/types/components/Autocomplete/Autocomplete.d.ts +8 -0
- package/types/components/Avatar/Avatar.d.ts +4 -4
- package/types/components/Combobox/Combobox.d.ts +8 -0
- package/types/components/DatePicker/DatePicker.d.ts +2 -0
- package/types/components/IconButton/IconButton.d.ts +28 -11
- package/types/components/Mask/Mask.d.ts +16 -0
- package/types/components/Rating/Rating.d.ts +1 -0
- package/types/components/Select/Select.d.ts +16 -0
- package/types/components/TextField/TextField.d.ts +32 -0
- package/types/components/TimePicker/TimePicker.d.ts +2 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { dsplL, dsplLBold, dsplLMedium, dsplM, dsplMBold, dsplMMedium, dsplS, dsplSBold, dsplSMedium } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, typographyTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const configL = {
|
|
3
4
|
defaults: {
|
|
@@ -6,14 +7,14 @@ export const configL = {
|
|
|
6
7
|
variations: {
|
|
7
8
|
size: {
|
|
8
9
|
l: css`
|
|
9
|
-
${typographyTokens.typoFontFamily}:
|
|
10
|
-
${typographyTokens.typoFontSize}:
|
|
11
|
-
${typographyTokens.typoFontStyle}:
|
|
12
|
-
${typographyTokens.typoFontWeight}:
|
|
13
|
-
${typographyTokens.typoFontWeightBold}:
|
|
14
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
15
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
16
|
-
${typographyTokens.typoFontLineHeight}:
|
|
10
|
+
${typographyTokens.typoFontFamily}: ${dsplL.fontFamily};
|
|
11
|
+
${typographyTokens.typoFontSize}: ${dsplL.fontSize};
|
|
12
|
+
${typographyTokens.typoFontStyle}: ${dsplL.fontStyle};
|
|
13
|
+
${typographyTokens.typoFontWeight}: ${dsplL.fontWeight};
|
|
14
|
+
${typographyTokens.typoFontWeightBold}: ${dsplLBold.fontWeight};
|
|
15
|
+
${typographyTokens.typoFontWeightMedium}: ${dsplLMedium.fontWeight};
|
|
16
|
+
${typographyTokens.typoFontLetterSpacing}: ${dsplL.letterSpacing};
|
|
17
|
+
${typographyTokens.typoFontLineHeight}: ${dsplL.lineHeight};
|
|
17
18
|
`
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -25,14 +26,14 @@ export const configM = {
|
|
|
25
26
|
variations: {
|
|
26
27
|
size: {
|
|
27
28
|
m: css`
|
|
28
|
-
${typographyTokens.typoFontFamily}:
|
|
29
|
-
${typographyTokens.typoFontSize}:
|
|
30
|
-
${typographyTokens.typoFontStyle}:
|
|
31
|
-
${typographyTokens.typoFontWeight}:
|
|
32
|
-
${typographyTokens.typoFontWeightBold}:
|
|
33
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
34
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
35
|
-
${typographyTokens.typoFontLineHeight}:
|
|
29
|
+
${typographyTokens.typoFontFamily}: ${dsplM.fontFamily};
|
|
30
|
+
${typographyTokens.typoFontSize}: ${dsplM.fontSize};
|
|
31
|
+
${typographyTokens.typoFontStyle}: ${dsplM.fontStyle};
|
|
32
|
+
${typographyTokens.typoFontWeight}: ${dsplM.fontWeight};
|
|
33
|
+
${typographyTokens.typoFontWeightBold}: ${dsplMBold.fontWeight};
|
|
34
|
+
${typographyTokens.typoFontWeightMedium}: ${dsplMMedium.fontWeight};
|
|
35
|
+
${typographyTokens.typoFontLetterSpacing}: ${dsplM.letterSpacing};
|
|
36
|
+
${typographyTokens.typoFontLineHeight}: ${dsplM.lineHeight};
|
|
36
37
|
`
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -44,14 +45,14 @@ export const configS = {
|
|
|
44
45
|
variations: {
|
|
45
46
|
size: {
|
|
46
47
|
s: css`
|
|
47
|
-
${typographyTokens.typoFontFamily}:
|
|
48
|
-
${typographyTokens.typoFontSize}:
|
|
49
|
-
${typographyTokens.typoFontStyle}:
|
|
50
|
-
${typographyTokens.typoFontWeight}:
|
|
51
|
-
${typographyTokens.typoFontWeightBold}:
|
|
52
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
53
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
54
|
-
${typographyTokens.typoFontLineHeight}:
|
|
48
|
+
${typographyTokens.typoFontFamily}: ${dsplS.fontFamily};
|
|
49
|
+
${typographyTokens.typoFontSize}: ${dsplS.fontSize};
|
|
50
|
+
${typographyTokens.typoFontStyle}: ${dsplS.fontStyle};
|
|
51
|
+
${typographyTokens.typoFontWeight}: ${dsplS.fontWeight};
|
|
52
|
+
${typographyTokens.typoFontWeightBold}: ${dsplSBold.fontWeight};
|
|
53
|
+
${typographyTokens.typoFontWeightMedium}: ${dsplSMedium.fontWeight};
|
|
54
|
+
${typographyTokens.typoFontLetterSpacing}: ${dsplS.letterSpacing};
|
|
55
|
+
${typographyTokens.typoFontLineHeight}: ${dsplS.lineHeight};
|
|
55
56
|
`
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { h1, h1Bold, h1Medium, h2, h2Bold, h2Medium, h3, h3Bold, h3Medium, h4, h4Bold, h4Medium, h5, h5Bold, h5Medium } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, typographyTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const configH1 = {
|
|
3
4
|
defaults: {
|
|
@@ -6,14 +7,14 @@ export const configH1 = {
|
|
|
6
7
|
variations: {
|
|
7
8
|
size: {
|
|
8
9
|
h1: css`
|
|
9
|
-
${typographyTokens.typoFontFamily}:
|
|
10
|
-
${typographyTokens.typoFontSize}:
|
|
11
|
-
${typographyTokens.typoFontStyle}:
|
|
12
|
-
${typographyTokens.typoFontWeight}:
|
|
13
|
-
${typographyTokens.typoFontWeightBold}:
|
|
14
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
15
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
16
|
-
${typographyTokens.typoFontLineHeight}:
|
|
10
|
+
${typographyTokens.typoFontFamily}: ${h1.fontFamily};
|
|
11
|
+
${typographyTokens.typoFontSize}: ${h1.fontSize};
|
|
12
|
+
${typographyTokens.typoFontStyle}: ${h1.fontStyle};
|
|
13
|
+
${typographyTokens.typoFontWeight}: ${h1.fontWeight};
|
|
14
|
+
${typographyTokens.typoFontWeightBold}: ${h1Bold.fontWeight};
|
|
15
|
+
${typographyTokens.typoFontWeightMedium}: ${h1Medium.fontWeight};
|
|
16
|
+
${typographyTokens.typoFontLetterSpacing}: ${h1.letterSpacing};
|
|
17
|
+
${typographyTokens.typoFontLineHeight}: ${h1.lineHeight};
|
|
17
18
|
`
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -25,14 +26,14 @@ export const configH2 = {
|
|
|
25
26
|
variations: {
|
|
26
27
|
size: {
|
|
27
28
|
h2: css`
|
|
28
|
-
${typographyTokens.typoFontFamily}:
|
|
29
|
-
${typographyTokens.typoFontSize}:
|
|
30
|
-
${typographyTokens.typoFontStyle}:
|
|
31
|
-
${typographyTokens.typoFontWeight}:
|
|
32
|
-
${typographyTokens.typoFontWeightBold}:
|
|
33
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
34
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
35
|
-
${typographyTokens.typoFontLineHeight}:
|
|
29
|
+
${typographyTokens.typoFontFamily}: ${h2.fontFamily};
|
|
30
|
+
${typographyTokens.typoFontSize}: ${h2.fontSize};
|
|
31
|
+
${typographyTokens.typoFontStyle}: ${h2.fontStyle};
|
|
32
|
+
${typographyTokens.typoFontWeight}: ${h2.fontWeight};
|
|
33
|
+
${typographyTokens.typoFontWeightBold}: ${h2Bold.fontWeight};
|
|
34
|
+
${typographyTokens.typoFontWeightMedium}: ${h2Medium.fontWeight};
|
|
35
|
+
${typographyTokens.typoFontLetterSpacing}: ${h2.letterSpacing};
|
|
36
|
+
${typographyTokens.typoFontLineHeight}: ${h2.lineHeight};
|
|
36
37
|
`
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -44,14 +45,14 @@ export const configH3 = {
|
|
|
44
45
|
variations: {
|
|
45
46
|
size: {
|
|
46
47
|
h3: css`
|
|
47
|
-
${typographyTokens.typoFontFamily}:
|
|
48
|
-
${typographyTokens.typoFontSize}:
|
|
49
|
-
${typographyTokens.typoFontStyle}:
|
|
50
|
-
${typographyTokens.typoFontWeight}:
|
|
51
|
-
${typographyTokens.typoFontWeightBold}:
|
|
52
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
53
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
54
|
-
${typographyTokens.typoFontLineHeight}:
|
|
48
|
+
${typographyTokens.typoFontFamily}: ${h3.fontFamily};
|
|
49
|
+
${typographyTokens.typoFontSize}: ${h3.fontSize};
|
|
50
|
+
${typographyTokens.typoFontStyle}: ${h3.fontStyle};
|
|
51
|
+
${typographyTokens.typoFontWeight}: ${h3.fontWeight};
|
|
52
|
+
${typographyTokens.typoFontWeightBold}: ${h3Bold.fontWeight};
|
|
53
|
+
${typographyTokens.typoFontWeightMedium}: ${h3Medium.fontWeight};
|
|
54
|
+
${typographyTokens.typoFontLetterSpacing}: ${h3.letterSpacing};
|
|
55
|
+
${typographyTokens.typoFontLineHeight}: ${h3.lineHeight};
|
|
55
56
|
`
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -63,14 +64,14 @@ export const configH4 = {
|
|
|
63
64
|
variations: {
|
|
64
65
|
size: {
|
|
65
66
|
h4: css`
|
|
66
|
-
${typographyTokens.typoFontFamily}:
|
|
67
|
-
${typographyTokens.typoFontSize}:
|
|
68
|
-
${typographyTokens.typoFontStyle}:
|
|
69
|
-
${typographyTokens.typoFontWeight}:
|
|
70
|
-
${typographyTokens.typoFontWeightBold}:
|
|
71
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
72
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
73
|
-
${typographyTokens.typoFontLineHeight}:
|
|
67
|
+
${typographyTokens.typoFontFamily}: ${h4.fontFamily};
|
|
68
|
+
${typographyTokens.typoFontSize}: ${h4.fontSize};
|
|
69
|
+
${typographyTokens.typoFontStyle}: ${h4.fontStyle};
|
|
70
|
+
${typographyTokens.typoFontWeight}: ${h4.fontWeight};
|
|
71
|
+
${typographyTokens.typoFontWeightBold}: ${h4Bold.fontWeight};
|
|
72
|
+
${typographyTokens.typoFontWeightMedium}: ${h4Medium.fontWeight};
|
|
73
|
+
${typographyTokens.typoFontLetterSpacing}: ${h4.letterSpacing};
|
|
74
|
+
${typographyTokens.typoFontLineHeight}: ${h4.lineHeight};
|
|
74
75
|
`
|
|
75
76
|
}
|
|
76
77
|
}
|
|
@@ -82,14 +83,14 @@ export const configH5 = {
|
|
|
82
83
|
variations: {
|
|
83
84
|
size: {
|
|
84
85
|
h5: css`
|
|
85
|
-
${typographyTokens.typoFontFamily}:
|
|
86
|
-
${typographyTokens.typoFontSize}:
|
|
87
|
-
${typographyTokens.typoFontStyle}:
|
|
88
|
-
${typographyTokens.typoFontWeight}:
|
|
89
|
-
${typographyTokens.typoFontWeightBold}:
|
|
90
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
91
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
92
|
-
${typographyTokens.typoFontLineHeight}:
|
|
86
|
+
${typographyTokens.typoFontFamily}: ${h5.fontFamily};
|
|
87
|
+
${typographyTokens.typoFontSize}: ${h5.fontSize};
|
|
88
|
+
${typographyTokens.typoFontStyle}: ${h5.fontStyle};
|
|
89
|
+
${typographyTokens.typoFontWeight}: ${h5.fontWeight};
|
|
90
|
+
${typographyTokens.typoFontWeightBold}: ${h5Bold.fontWeight};
|
|
91
|
+
${typographyTokens.typoFontWeightMedium}: ${h5Medium.fontWeight};
|
|
92
|
+
${typographyTokens.typoFontLetterSpacing}: ${h5.letterSpacing};
|
|
93
|
+
${typographyTokens.typoFontLineHeight}: ${h5.lineHeight};
|
|
93
94
|
`
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { textL, textLBold, textLMedium, textM, textMBold, textMMedium, textS, textSBold, textSMedium, textXS, textXSBold, textXSMedium } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
1
2
|
import { css, typographyTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
3
|
export const configL = {
|
|
3
4
|
defaults: {
|
|
@@ -6,14 +7,14 @@ export const configL = {
|
|
|
6
7
|
variations: {
|
|
7
8
|
size: {
|
|
8
9
|
l: css`
|
|
9
|
-
${typographyTokens.typoFontFamily}:
|
|
10
|
-
${typographyTokens.typoFontSize}:
|
|
11
|
-
${typographyTokens.typoFontStyle}:
|
|
12
|
-
${typographyTokens.typoFontWeight}:
|
|
13
|
-
${typographyTokens.typoFontWeightBold}:
|
|
14
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
15
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
16
|
-
${typographyTokens.typoFontLineHeight}:
|
|
10
|
+
${typographyTokens.typoFontFamily}: ${textL.fontFamily};
|
|
11
|
+
${typographyTokens.typoFontSize}: ${textL.fontSize};
|
|
12
|
+
${typographyTokens.typoFontStyle}: ${textL.fontStyle};
|
|
13
|
+
${typographyTokens.typoFontWeight}: ${textL.fontWeight};
|
|
14
|
+
${typographyTokens.typoFontWeightBold}: ${textLBold.fontWeight};
|
|
15
|
+
${typographyTokens.typoFontWeightMedium}: ${textLMedium.fontWeight};
|
|
16
|
+
${typographyTokens.typoFontLetterSpacing}: ${textL.letterSpacing};
|
|
17
|
+
${typographyTokens.typoFontLineHeight}: ${textL.lineHeight};
|
|
17
18
|
`
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -25,14 +26,14 @@ export const configM = {
|
|
|
25
26
|
variations: {
|
|
26
27
|
size: {
|
|
27
28
|
m: css`
|
|
28
|
-
${typographyTokens.typoFontFamily}:
|
|
29
|
-
${typographyTokens.typoFontSize}:
|
|
30
|
-
${typographyTokens.typoFontStyle}:
|
|
31
|
-
${typographyTokens.typoFontWeight}:
|
|
32
|
-
${typographyTokens.typoFontWeightBold}:
|
|
33
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
34
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
35
|
-
${typographyTokens.typoFontLineHeight}:
|
|
29
|
+
${typographyTokens.typoFontFamily}: ${textM.fontFamily};
|
|
30
|
+
${typographyTokens.typoFontSize}: ${textM.fontSize};
|
|
31
|
+
${typographyTokens.typoFontStyle}: ${textM.fontStyle};
|
|
32
|
+
${typographyTokens.typoFontWeight}: ${textM.fontWeight};
|
|
33
|
+
${typographyTokens.typoFontWeightBold}: ${textMBold.fontWeight};
|
|
34
|
+
${typographyTokens.typoFontWeightMedium}: ${textMMedium.fontWeight};
|
|
35
|
+
${typographyTokens.typoFontLetterSpacing}: ${textM.letterSpacing};
|
|
36
|
+
${typographyTokens.typoFontLineHeight}: ${textM.lineHeight};
|
|
36
37
|
`
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -44,14 +45,14 @@ export const configS = {
|
|
|
44
45
|
variations: {
|
|
45
46
|
size: {
|
|
46
47
|
s: css`
|
|
47
|
-
${typographyTokens.typoFontFamily}:
|
|
48
|
-
${typographyTokens.typoFontSize}:
|
|
49
|
-
${typographyTokens.typoFontStyle}:
|
|
50
|
-
${typographyTokens.typoFontWeight}:
|
|
51
|
-
${typographyTokens.typoFontWeightBold}:
|
|
52
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
53
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
54
|
-
${typographyTokens.typoFontLineHeight}:
|
|
48
|
+
${typographyTokens.typoFontFamily}: ${textS.fontFamily};
|
|
49
|
+
${typographyTokens.typoFontSize}: ${textS.fontSize};
|
|
50
|
+
${typographyTokens.typoFontStyle}: ${textS.fontStyle};
|
|
51
|
+
${typographyTokens.typoFontWeight}: ${textS.fontWeight};
|
|
52
|
+
${typographyTokens.typoFontWeightBold}: ${textSBold.fontWeight};
|
|
53
|
+
${typographyTokens.typoFontWeightMedium}: ${textSMedium.fontWeight};
|
|
54
|
+
${typographyTokens.typoFontLetterSpacing}: ${textS.letterSpacing};
|
|
55
|
+
${typographyTokens.typoFontLineHeight}: ${textS.lineHeight};
|
|
55
56
|
`
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -63,14 +64,14 @@ export const configXS = {
|
|
|
63
64
|
variations: {
|
|
64
65
|
size: {
|
|
65
66
|
xs: css`
|
|
66
|
-
${typographyTokens.typoFontFamily}:
|
|
67
|
-
${typographyTokens.typoFontSize}:
|
|
68
|
-
${typographyTokens.typoFontStyle}:
|
|
69
|
-
${typographyTokens.typoFontWeight}:
|
|
70
|
-
${typographyTokens.typoFontWeightBold}:
|
|
71
|
-
${typographyTokens.typoFontWeightMedium}:
|
|
72
|
-
${typographyTokens.typoFontLetterSpacing}:
|
|
73
|
-
${typographyTokens.typoFontLineHeight}:
|
|
67
|
+
${typographyTokens.typoFontFamily}: ${textXS.fontFamily};
|
|
68
|
+
${typographyTokens.typoFontSize}: ${textXS.fontSize};
|
|
69
|
+
${typographyTokens.typoFontStyle}: ${textXS.fontStyle};
|
|
70
|
+
${typographyTokens.typoFontWeight}: ${textXS.fontWeight};
|
|
71
|
+
${typographyTokens.typoFontWeightBold}: ${textXSBold.fontWeight};
|
|
72
|
+
${typographyTokens.typoFontWeightMedium}: ${textXSMedium.fontWeight};
|
|
73
|
+
${typographyTokens.typoFontLetterSpacing}: ${textXS.letterSpacing};
|
|
74
|
+
${typographyTokens.typoFontLineHeight}: ${textXS.lineHeight};
|
|
74
75
|
`
|
|
75
76
|
}
|
|
76
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-cs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.362.0-dev.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS CS web applications",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"styled-components": "^5.3.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salutejs/plasma-new-hope": "0.
|
|
46
|
-
"@salutejs/sdds-themes": "0.71.0-
|
|
45
|
+
"@salutejs/plasma-new-hope": "0.370.0-dev.0",
|
|
46
|
+
"@salutejs/sdds-themes": "0.71.0-dev.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@babel/cli": "7.24.1",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@emotion/styled": ">=11",
|
|
59
59
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
60
60
|
"@salutejs/plasma-colors": "0.16.0",
|
|
61
|
-
"@salutejs/plasma-core": "1.
|
|
62
|
-
"@salutejs/plasma-cy-utils": "0.
|
|
63
|
-
"@salutejs/plasma-icons": "1.
|
|
64
|
-
"@salutejs/plasma-sb-utils": "0.
|
|
61
|
+
"@salutejs/plasma-core": "1.233.0-dev.0",
|
|
62
|
+
"@salutejs/plasma-cy-utils": "0.163.0-dev.0",
|
|
63
|
+
"@salutejs/plasma-icons": "1.243.0-dev.0",
|
|
64
|
+
"@salutejs/plasma-sb-utils": "0.234.0-dev.0",
|
|
65
65
|
"@types/node": "16.7.13",
|
|
66
66
|
"@types/react": "18.0.28",
|
|
67
67
|
"@types/react-dom": "18.0.11",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"salute.developers@gmail.com"
|
|
103
103
|
],
|
|
104
104
|
"sideEffects": false,
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "efcc8fe5582bdd90d0db16c3250d021f08b1288b"
|
|
106
106
|
}
|
|
@@ -69,6 +69,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
69
69
|
hintOffset?: [number, number];
|
|
70
70
|
hintWidth?: string;
|
|
71
71
|
hintContentLeft?: React.ReactNode;
|
|
72
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
72
73
|
} & {
|
|
73
74
|
chips?: never;
|
|
74
75
|
onChangeChips?: never;
|
|
@@ -127,6 +128,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
127
128
|
hintOffset?: [number, number];
|
|
128
129
|
hintWidth?: string;
|
|
129
130
|
hintContentLeft?: React.ReactNode;
|
|
131
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
130
132
|
} & {
|
|
131
133
|
enumerationType: "chip";
|
|
132
134
|
onSearch?: never;
|
|
@@ -187,6 +189,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
187
189
|
hintOffset?: never;
|
|
188
190
|
hintWidth?: never;
|
|
189
191
|
hintContentLeft?: never;
|
|
192
|
+
hintPortal?: never;
|
|
190
193
|
} & {
|
|
191
194
|
chips?: never;
|
|
192
195
|
onChangeChips?: never;
|
|
@@ -245,6 +248,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
245
248
|
hintOffset?: never;
|
|
246
249
|
hintWidth?: never;
|
|
247
250
|
hintContentLeft?: never;
|
|
251
|
+
hintPortal?: never;
|
|
248
252
|
} & {
|
|
249
253
|
enumerationType: "chip";
|
|
250
254
|
onSearch?: never;
|
|
@@ -305,6 +309,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
305
309
|
hintOffset?: [number, number];
|
|
306
310
|
hintWidth?: string;
|
|
307
311
|
hintContentLeft?: React.ReactNode;
|
|
312
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
308
313
|
} & {
|
|
309
314
|
chips?: never;
|
|
310
315
|
onChangeChips?: never;
|
|
@@ -363,6 +368,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
363
368
|
hintOffset?: [number, number];
|
|
364
369
|
hintWidth?: string;
|
|
365
370
|
hintContentLeft?: React.ReactNode;
|
|
371
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
366
372
|
} & {
|
|
367
373
|
enumerationType: "chip";
|
|
368
374
|
onSearch?: never;
|
|
@@ -423,6 +429,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
423
429
|
hintOffset?: never;
|
|
424
430
|
hintWidth?: never;
|
|
425
431
|
hintContentLeft?: never;
|
|
432
|
+
hintPortal?: never;
|
|
426
433
|
} & {
|
|
427
434
|
chips?: never;
|
|
428
435
|
onChangeChips?: never;
|
|
@@ -481,6 +488,7 @@ export declare const AutocompleteComponent: React.FunctionComponent<import("@sal
|
|
|
481
488
|
hintOffset?: never;
|
|
482
489
|
hintWidth?: never;
|
|
483
490
|
hintContentLeft?: never;
|
|
491
|
+
hintPortal?: never;
|
|
484
492
|
} & {
|
|
485
493
|
enumerationType: "chip";
|
|
486
494
|
onSearch?: never;
|
|
@@ -47,7 +47,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/emotion").Componen
|
|
|
47
47
|
size?: string;
|
|
48
48
|
name?: string;
|
|
49
49
|
url?: string;
|
|
50
|
-
customText?:
|
|
50
|
+
customText?: string;
|
|
51
51
|
status?: "active" | "inactive";
|
|
52
52
|
isScalable?: boolean;
|
|
53
53
|
focused?: boolean;
|
|
@@ -75,7 +75,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/emotion").Componen
|
|
|
75
75
|
size?: string;
|
|
76
76
|
name?: string;
|
|
77
77
|
url?: string;
|
|
78
|
-
customText?:
|
|
78
|
+
customText?: string;
|
|
79
79
|
status?: "active" | "inactive";
|
|
80
80
|
isScalable?: boolean;
|
|
81
81
|
focused?: boolean;
|
|
@@ -126,7 +126,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
126
126
|
size?: string;
|
|
127
127
|
name?: string;
|
|
128
128
|
url?: string;
|
|
129
|
-
customText?:
|
|
129
|
+
customText?: string;
|
|
130
130
|
status?: "active" | "inactive";
|
|
131
131
|
isScalable?: boolean;
|
|
132
132
|
focused?: boolean;
|
|
@@ -154,7 +154,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
154
154
|
size?: string;
|
|
155
155
|
name?: string;
|
|
156
156
|
url?: string;
|
|
157
|
-
customText?:
|
|
157
|
+
customText?: string;
|
|
158
158
|
status?: "active" | "inactive";
|
|
159
159
|
isScalable?: boolean;
|
|
160
160
|
focused?: boolean;
|
|
@@ -84,6 +84,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
84
84
|
hintOffset?: [number, number];
|
|
85
85
|
hintWidth?: string;
|
|
86
86
|
hintContentLeft?: React.ReactNode;
|
|
87
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
87
88
|
} & {
|
|
88
89
|
_offset?: [number, number];
|
|
89
90
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -148,6 +149,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
148
149
|
hintOffset?: never;
|
|
149
150
|
hintWidth?: never;
|
|
150
151
|
hintContentLeft?: never;
|
|
152
|
+
hintPortal?: never;
|
|
151
153
|
} & {
|
|
152
154
|
_offset?: [number, number];
|
|
153
155
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -212,6 +214,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
212
214
|
hintOffset?: [number, number];
|
|
213
215
|
hintWidth?: string;
|
|
214
216
|
hintContentLeft?: React.ReactNode;
|
|
217
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
215
218
|
} & {
|
|
216
219
|
_offset?: [number, number];
|
|
217
220
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -276,6 +279,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
276
279
|
hintOffset?: never;
|
|
277
280
|
hintWidth?: never;
|
|
278
281
|
hintContentLeft?: never;
|
|
282
|
+
hintPortal?: never;
|
|
279
283
|
} & {
|
|
280
284
|
_offset?: [number, number];
|
|
281
285
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -344,6 +348,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
344
348
|
hintOffset?: [number, number];
|
|
345
349
|
hintWidth?: string;
|
|
346
350
|
hintContentLeft?: React.ReactNode;
|
|
351
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
347
352
|
} & {
|
|
348
353
|
_offset?: [number, number];
|
|
349
354
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -412,6 +417,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
412
417
|
hintOffset?: never;
|
|
413
418
|
hintWidth?: never;
|
|
414
419
|
hintContentLeft?: never;
|
|
420
|
+
hintPortal?: never;
|
|
415
421
|
} & {
|
|
416
422
|
_offset?: [number, number];
|
|
417
423
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -480,6 +486,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
480
486
|
hintOffset?: [number, number];
|
|
481
487
|
hintWidth?: string;
|
|
482
488
|
hintContentLeft?: React.ReactNode;
|
|
489
|
+
hintPortal?: string | React.RefObject<HTMLElement | null>;
|
|
483
490
|
} & {
|
|
484
491
|
_offset?: [number, number];
|
|
485
492
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
@@ -548,6 +555,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
548
555
|
hintOffset?: never;
|
|
549
556
|
hintWidth?: never;
|
|
550
557
|
hintContentLeft?: never;
|
|
558
|
+
hintPortal?: never;
|
|
551
559
|
} & {
|
|
552
560
|
_offset?: [number, number];
|
|
553
561
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>))>;
|
|
@@ -52,6 +52,7 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
|
|
|
52
52
|
hintOffset?: [number, number];
|
|
53
53
|
hintWidth?: string;
|
|
54
54
|
hintContentLeft?: import("react").ReactNode;
|
|
55
|
+
hintPortal?: string | import("react").RefObject<HTMLElement | null>;
|
|
55
56
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types.js").DatePickerVariationProps & {
|
|
56
57
|
titleCaption?: import("react").ReactNode;
|
|
57
58
|
requiredPlacement?: "left" | "right";
|
|
@@ -93,6 +94,7 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
|
|
|
93
94
|
hintOffset?: never;
|
|
94
95
|
hintWidth?: never;
|
|
95
96
|
hintContentLeft?: never;
|
|
97
|
+
hintPortal?: never;
|
|
96
98
|
} & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>))>;
|
|
97
99
|
export declare const DatePickerRange: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
98
100
|
view: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Кнопка с иконкой.
|
|
3
4
|
*/
|
|
4
|
-
export declare const IconButton:
|
|
5
|
+
export declare const IconButton: React.ForwardRefExoticComponent<(Omit<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
5
6
|
view: {
|
|
6
7
|
accent: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
7
8
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
@@ -17,13 +18,13 @@ export declare const IconButton: import("react").FunctionComponent<import("@salu
|
|
|
17
18
|
focused: {
|
|
18
19
|
true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
19
20
|
};
|
|
20
|
-
}> &
|
|
21
|
+
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/emotion").AsProps & {
|
|
21
22
|
text?: string;
|
|
22
|
-
contentLeft?:
|
|
23
|
+
contentLeft?: React.ReactNode;
|
|
23
24
|
contentPlacing?: "default" | "relaxed";
|
|
24
|
-
additionalContent?:
|
|
25
|
+
additionalContent?: React.ReactNode;
|
|
25
26
|
isLoading?: boolean;
|
|
26
|
-
loader?:
|
|
27
|
+
loader?: React.ReactNode;
|
|
27
28
|
stretch?: boolean;
|
|
28
29
|
stretching?: "auto" | "filled" | "fixed";
|
|
29
30
|
square?: boolean;
|
|
@@ -40,13 +41,29 @@ export declare const IconButton: import("react").FunctionComponent<import("@salu
|
|
|
40
41
|
} & {
|
|
41
42
|
value?: string | number;
|
|
42
43
|
contentRight?: never;
|
|
43
|
-
} &
|
|
44
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
45
|
+
view: {
|
|
46
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
47
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
48
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
52
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
56
|
+
};
|
|
57
|
+
focused: {
|
|
58
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
59
|
+
};
|
|
60
|
+
}> & Omit<React.ButtonHTMLAttributes<HTMLElement>, "value"> & import("@salutejs/plasma-new-hope/emotion").AsProps & {
|
|
44
61
|
text?: string;
|
|
45
|
-
contentLeft?:
|
|
62
|
+
contentLeft?: React.ReactNode;
|
|
46
63
|
contentPlacing?: "default" | "relaxed";
|
|
47
|
-
additionalContent?:
|
|
64
|
+
additionalContent?: React.ReactNode;
|
|
48
65
|
isLoading?: boolean;
|
|
49
|
-
loader?:
|
|
66
|
+
loader?: React.ReactNode;
|
|
50
67
|
stretch?: boolean;
|
|
51
68
|
stretching?: "auto" | "filled" | "fixed";
|
|
52
69
|
square?: boolean;
|
|
@@ -62,5 +79,5 @@ export declare const IconButton: import("react").FunctionComponent<import("@salu
|
|
|
62
79
|
blur?: import("@salutejs/plasma-new-hope/emotion").Blur;
|
|
63
80
|
} & {
|
|
64
81
|
value?: never;
|
|
65
|
-
contentRight?:
|
|
66
|
-
} &
|
|
82
|
+
contentRight?: React.ReactNode;
|
|
83
|
+
} & React.RefAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|