@salutejs/plasma-new-hope 0.345.0-canary.2422.20906430475.0 → 0.345.0-canary.2423.20988873450.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/css/cjs/components/Combobox/ComboboxNew/Combobox.js +4 -0
- package/dist/css/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/dist/css/cjs/components/TextArea/TextArea.js +61 -56
- package/dist/css/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/cjs/components/TextArea/TextArea.styles.js +37 -30
- package/dist/css/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/cjs/components/TextArea/{TextArea.styles_j6drga.css → TextArea.styles_1y5shlb.css} +3 -3
- package/dist/css/cjs/components/TextArea/TextArea.tokens.js +49 -123
- package/dist/css/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
- package/dist/css/cjs/components/TextArea/ui/Hint/Hint.css +22 -22
- package/dist/css/cjs/components/TextArea/variations/_disabled/base.js +1 -1
- package/dist/css/cjs/components/TextArea/variations/_disabled/base.js.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_disabled/base_1vc9ple.css +1 -0
- package/dist/css/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base.js.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base_l5o3oz.css +1 -0
- package/dist/css/cjs/components/TextArea/variations/_size/base.js +1 -1
- package/dist/css/cjs/components/TextArea/variations/_size/base.js.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_size/base_15qflyx.css +1 -0
- package/dist/css/cjs/components/TextArea/variations/_view/base.js +1 -1
- package/dist/css/cjs/components/TextArea/variations/_view/base.js.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_view/{base_1hvnv2t.css → base_l2axzd.css} +1 -1
- package/dist/css/cjs/index.css +31 -33
- package/dist/css/es/components/Combobox/ComboboxNew/Combobox.js +4 -0
- package/dist/css/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/dist/css/es/components/TextArea/TextArea.js +61 -56
- package/dist/css/es/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/es/components/TextArea/TextArea.styles.js +37 -30
- package/dist/css/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/es/components/TextArea/{TextArea.styles_j6drga.css → TextArea.styles_1y5shlb.css} +3 -3
- package/dist/css/es/components/TextArea/TextArea.tokens.js +49 -123
- package/dist/css/es/components/TextArea/TextArea.tokens.js.map +1 -1
- package/dist/css/es/components/TextArea/ui/Hint/Hint.css +22 -22
- package/dist/css/es/components/TextArea/variations/_disabled/base.js +1 -1
- package/dist/css/es/components/TextArea/variations/_disabled/base.js.map +1 -1
- package/dist/css/es/components/TextArea/variations/_disabled/base_1vc9ple.css +1 -0
- package/dist/css/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base.js.map +1 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base_l5o3oz.css +1 -0
- package/dist/css/es/components/TextArea/variations/_size/base.js +1 -1
- package/dist/css/es/components/TextArea/variations/_size/base.js.map +1 -1
- package/dist/css/es/components/TextArea/variations/_size/base_15qflyx.css +1 -0
- package/dist/css/es/components/TextArea/variations/_view/base.js +1 -1
- package/dist/css/es/components/TextArea/variations/_view/base.js.map +1 -1
- package/dist/css/es/components/TextArea/variations/_view/{base_1hvnv2t.css → base_l2axzd.css} +1 -1
- package/dist/css/es/index.css +31 -33
- package/dist/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/emotion/cjs/components/TextArea/TextArea.js +65 -52
- package/dist/emotion/cjs/components/TextArea/TextArea.styles.js +53 -50
- package/dist/emotion/cjs/components/TextArea/TextArea.tokens.js +106 -112
- package/dist/emotion/cjs/components/TextArea/variations/_disabled/base.js +1 -2
- package/dist/emotion/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/emotion/cjs/components/TextArea/variations/_size/base.js +2 -1
- package/dist/emotion/cjs/components/TextArea/variations/_view/base.js +1 -1
- package/dist/emotion/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/dist/emotion/cjs/examples/components/TextArea/TextArea.clear.config.js +47 -0
- package/dist/emotion/cjs/examples/components/TextArea/TextArea.config.js +16 -19
- package/dist/emotion/cjs/examples/components/TextArea/TextArea.js +29 -5
- package/dist/emotion/es/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/emotion/es/components/TextArea/TextArea.js +57 -44
- package/dist/emotion/es/components/TextArea/TextArea.styles.js +53 -50
- package/dist/emotion/es/components/TextArea/TextArea.tokens.js +106 -112
- package/dist/emotion/es/components/TextArea/variations/_disabled/base.js +1 -2
- package/dist/emotion/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/emotion/es/components/TextArea/variations/_size/base.js +3 -2
- package/dist/emotion/es/components/TextArea/variations/_view/base.js +2 -2
- package/dist/emotion/es/examples/components/TextArea/TextArea.clear.config.js +37 -0
- package/dist/emotion/es/examples/components/TextArea/TextArea.config.js +16 -19
- package/dist/emotion/es/examples/components/TextArea/TextArea.js +15 -2
- package/dist/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/styled-components/cjs/components/TextArea/TextArea.js +64 -51
- package/dist/styled-components/cjs/components/TextArea/TextArea.styles.js +38 -32
- package/dist/styled-components/cjs/components/TextArea/TextArea.tokens.js +106 -112
- package/dist/styled-components/cjs/components/TextArea/variations/_disabled/base.js +3 -13
- package/dist/styled-components/cjs/components/TextArea/variations/_read-only/base.js +4 -2
- package/dist/styled-components/cjs/components/TextArea/variations/_size/base.js +9 -2
- package/dist/styled-components/cjs/components/TextArea/variations/_view/base.js +11 -2
- package/dist/styled-components/cjs/examples/components/TextArea/TextArea.clear.config.js +520 -0
- package/dist/styled-components/cjs/examples/components/TextArea/TextArea.config.js +258 -290
- package/dist/styled-components/cjs/examples/components/TextArea/TextArea.js +29 -5
- package/dist/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/styled-components/es/components/TextArea/TextArea.js +56 -43
- package/dist/styled-components/es/components/TextArea/TextArea.styles.js +38 -32
- package/dist/styled-components/es/components/TextArea/TextArea.tokens.js +106 -112
- package/dist/styled-components/es/components/TextArea/variations/_disabled/base.js +3 -13
- package/dist/styled-components/es/components/TextArea/variations/_read-only/base.js +4 -2
- package/dist/styled-components/es/components/TextArea/variations/_size/base.js +10 -3
- package/dist/styled-components/es/components/TextArea/variations/_view/base.js +12 -3
- package/dist/styled-components/es/examples/components/TextArea/TextArea.clear.config.js +510 -0
- package/dist/styled-components/es/examples/components/TextArea/TextArea.config.js +258 -290
- package/dist/styled-components/es/examples/components/TextArea/TextArea.js +15 -2
- package/package.json +6 -6
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.d.ts +0 -4
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +1 -0
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.tokens.d.ts +45 -123
- package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +8 -1
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/components/TextArea/variations/_disabled/base.d.ts.map +1 -1
- package/types/components/TextArea/variations/_read-only/base.d.ts.map +1 -1
- package/types/components/TextArea/variations/_size/base.d.ts.map +1 -1
- package/types/components/TextArea/variations/_view/base.d.ts.map +1 -1
- package/types/examples/components/TextArea/TextArea.clear.config.d.ts +36 -0
- package/types/examples/components/TextArea/TextArea.clear.config.d.ts.map +1 -0
- package/types/examples/components/TextArea/TextArea.config.d.ts +7 -10
- package/types/examples/components/TextArea/TextArea.config.d.ts.map +1 -1
- package/types/examples/components/TextArea/TextArea.d.ts +1045 -11
- package/types/examples/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_clear/base.js +0 -9
- package/dist/css/cjs/components/TextArea/variations/_clear/base.js.map +0 -1
- package/dist/css/cjs/components/TextArea/variations/_clear/base_1vo4ba5.css +0 -1
- package/dist/css/cjs/components/TextArea/variations/_disabled/base_s6ttw.css +0 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base_pgwr5c.css +0 -1
- package/dist/css/cjs/components/TextArea/variations/_size/base_1mq4sb2.css +0 -1
- package/dist/css/es/components/TextArea/variations/_clear/base.js +0 -5
- package/dist/css/es/components/TextArea/variations/_clear/base.js.map +0 -1
- package/dist/css/es/components/TextArea/variations/_clear/base_1vo4ba5.css +0 -1
- package/dist/css/es/components/TextArea/variations/_disabled/base_s6ttw.css +0 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base_pgwr5c.css +0 -1
- package/dist/css/es/components/TextArea/variations/_size/base_1mq4sb2.css +0 -1
- package/dist/emotion/cjs/components/TextArea/variations/_clear/base.js +0 -14
- package/dist/emotion/es/components/TextArea/variations/_clear/base.js +0 -4
- package/dist/styled-components/cjs/components/TextArea/variations/_clear/base.js +0 -67
- package/dist/styled-components/es/components/TextArea/variations/_clear/base.js +0 -57
- package/types/components/TextArea/variations/_clear/base.d.ts +0 -2
- package/types/components/TextArea/variations/_clear/base.d.ts.map +0 -1
|
@@ -20,120 +20,97 @@ export var classes = {
|
|
|
20
20
|
leftHelperFocus: 'textarea-left-helper-focus'
|
|
21
21
|
};
|
|
22
22
|
export var tokens = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
backgroundColor: '--plasma-textarea-background-color',
|
|
24
|
+
backgroundColorHover: '--plasma-textarea-background-color-hover',
|
|
25
|
+
backgroundColorActive: '--plasma-textarea-background-color-active',
|
|
26
|
+
backgroundColorFocus: '--plasma-textarea-background-color-focus',
|
|
27
|
+
inputBackgroundColor: '--plasma-textarea-input-background-color',
|
|
28
|
+
inputBackgroundColorHover: '--plasma-textarea-input-background-color-hover',
|
|
29
|
+
inputBackgroundColorActive: '--plasma-textarea-input-background-color-active',
|
|
30
|
+
inputBackgroundColorFocus: '--plasma-textarea-input-background-color-focus',
|
|
31
|
+
inputBorderColor: '--plasma-textarea-input-border-color',
|
|
32
|
+
inputBorderColorHover: '--plasma-textarea-input-border-color-hover',
|
|
33
|
+
inputBorderColorActive: '--plasma-textarea-input-border-color-active',
|
|
34
|
+
inputBorderColorFocus: '--plasma-textarea-input-border-color-focus',
|
|
35
|
+
helpersBackgroundColor: '--plasma-textarea-helpers-background-color',
|
|
36
|
+
helpersBackgroundColorHover: '--plasma-textarea-helpers-background-color-hover',
|
|
37
|
+
helpersBackgroundColorActive: '--plasma-textarea-helpers-background-color-active',
|
|
38
|
+
helpersBackgroundColorFocus: '--plasma-textarea-helpers-background-color-focus',
|
|
39
|
+
inputColor: '--plasma-textarea-input-color',
|
|
40
|
+
inputColorFocus: '--plasma-textarea-input-color-focus',
|
|
41
|
+
/** Цвет каретки */ inputCaretColor: '--plasma-textarea-input-caret-color',
|
|
42
|
+
placeholderColor: '--plasma-textarea-placeholder-color',
|
|
43
|
+
placeholderColorFocus: '--plasma-textarea-placeholder-color-focus',
|
|
44
|
+
optionalColor: '--plasma-textarea__optional-color',
|
|
45
|
+
leftHelperColor: '--plasma-textarea-left-helper-color',
|
|
46
|
+
leftHelperColorFocus: '--plasma-textarea-left-helper-color-focus',
|
|
47
|
+
rightHelperColor: '--plasma-textarea-right-helper-color',
|
|
48
|
+
/** Цвета для read-only состояния */ inputColorReadOnly: '--plasma-textarea-input-color-read-only',
|
|
42
49
|
backgroundColorReadOnly: '--plasma-textarea-background-color-read-only',
|
|
43
|
-
readOnlyOpacity: '--plasma-textarea-read-only-opacity',
|
|
44
|
-
/** Цвет текста для элемента textarea в состоянии focus */ inputColorFocus: '--plasma-textarea-input-color-focus',
|
|
45
|
-
/** Цвет каретки для элемента textarea */ inputCaretColor: '--plasma-textarea-input-caret-color',
|
|
46
|
-
/** Цвет элемента placeholder */ placeholderColor: '--plasma-textarea-placeholder-color',
|
|
47
|
-
clearPlaceholderColor: '--plasma-textarea-clear-placeholder-color',
|
|
48
|
-
/** Цвет элемента placeholder в состоянии focus */ placeholderColorFocus: '--plasma-textarea-placeholder-color-focus',
|
|
49
|
-
clearPlaceholderColorFocus: '--plasma-textarea-clear-placeholder-color-focus',
|
|
50
|
-
/** Цвет элемента optional */ optionalColor: '--plasma-textarea__optional-color',
|
|
51
|
-
/** Цвет текста для левой подписи снизу */ leftHelperColor: '--plasma-textarea-left-helper-color',
|
|
52
|
-
/** Цвет текста для левой подписи снизу в состоянии focus */ leftHelperColorFocus: '--plasma-textarea-left-helper-color-focus',
|
|
53
|
-
/** Цвет текста для правой подписи снизу */ rightHelperColor: '--plasma-textarea-right-helper-color',
|
|
54
|
-
/** Цвета границы для всего компонента */ borderColor: '--plasma-textarea-border-color',
|
|
55
50
|
borderColorReadOnly: '--plasma-textarea-border-color-readonly',
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/** Минимальная высота элемента textarea */ inputMinHeight: '--plasma-textarea-input-min-height',
|
|
61
|
-
/** Толщина рамки всего компонента */ borderSize: '--plasma-textarea-border-size',
|
|
62
|
-
/** Размер скругления рамки всего компонента */ borderRadius: '--plasma-textarea-border-radius',
|
|
63
|
-
/** Размер скругления рамки всего компонента, когда есть блок подписей и у него нет рамки */ borderRadiusWithHelpers: '--plasma-textarea-border-radius-with-helpers',
|
|
64
|
-
/** Отступ сверху для элемента textarea */ inputPaddingTop: '--plasma-textarea-input-padding-top',
|
|
65
|
-
/** Отступ справа для элемента textarea */ inputPaddingRight: '--plasma-textarea-input-padding-right',
|
|
66
|
-
/** Отступ справа для элемента textarea, когда есть контент справа */ inputPaddingRightWithRightContent: '--plasma-textarea-input-padding-right-with-right-content',
|
|
67
|
-
clearInputPaddingRightWithRightContent: '--plasma-textarea-clear-input-padding-right-with-right-content',
|
|
68
|
-
/** Отступ снизу для элемента textarea */ inputPaddingBottom: '--plasma-textarea-input-padding-bottom',
|
|
69
|
-
/** Отступ снизу для элемента textarea, когда есть блок подписей */ inputPaddingBottomWithHelpers: '--plasma-textarea-input-padding-bottom-with-helpers',
|
|
70
|
-
/** Отступ слева для элемента textarea */ inputPaddingLeft: '--plasma-textarea-input-padding-left',
|
|
71
|
-
/** Отступ сверху для блока подписей */ helpersPaddingTop: '--plasma-textarea-helpers-padding-top',
|
|
72
|
-
clearHelpersPaddingTop: '--plasma-textarea-clear-helpers-padding-top',
|
|
73
|
-
/** Отступ справа для блока подписей */ helpersPaddingRight: '--plasma-textarea-helpers-padding-right',
|
|
74
|
-
/** Отступ снизу для блока подписей */ helpersPaddingBottom: '--plasma-textarea-helpers-padding-bottom',
|
|
75
|
-
/** Отступ слева для блока подписей */ helpersPaddingLeft: '--plasma-textarea-helpers-padding-left',
|
|
76
|
-
/** Вспомогательная высота для всего компонента, когда есть блок подписей и у него нет рамки */ helpersOffset: '--plasma-textarea-helpers-offset',
|
|
77
|
-
/** Отступ сверху для контента справа */ rightContentTop: '--plasma-textarea-right-content-top',
|
|
78
|
-
/** Отступ справа для контента справа */ rightContentRight: '--plasma-textarea-right-content-right',
|
|
79
|
-
/** Высота контента справа */ rightContentHeight: '--plasma-textarea-right-content-height',
|
|
80
|
-
/** Шрифт для элемента label, когда он внутри и уменьшен */ labelOuterColor: '--plasma-textarea-label-outer-color',
|
|
81
|
-
/** Шрифт для элемента label, когда он внутри и уменьшен */ labelOuterFontFamily: '--plasma-textarea-label-outer-font-family',
|
|
82
|
-
/** Размер шрифта для элемента label, когда он внутри и уменьшен */ labelOuterFontSize: '--plasma-textarea-label-outer-font-size',
|
|
83
|
-
/** Стиль шрифта для элемента label, когда он внутри и уменьшен */ labelOuterFontStyle: '--plasma-textarea-label-outer-font-style',
|
|
84
|
-
/** Начертание шрифта для элемента label, когда он внутри и уменьшен */ labelOuterFontWeight: '--plasma-textarea-label-outer-font-weight',
|
|
85
|
-
/** Межсимвольное расстояние для элемента label, когда он внутри и уменьшен */ labelOuterLetterSpacing: '--plasma-textarea-label-outer-letter-spacing',
|
|
86
|
-
/** Высота строки для элемента label, когда он внутри и уменьшен */ labelOuterLineHeight: '--plasma-textarea-label-outer-line-height',
|
|
87
|
-
/** Отступ сверху для элемента label, когда он внутри и уменьшен */ labelMarginBottom: '--plasma-textarea-label-margin-bottom',
|
|
88
|
-
clearLabelMarginBottom: '--plasma-textarea-clear-label-margin-bottom',
|
|
89
|
-
/** Шрифт для элемента label, когда он внутри и уменьшен */ labelInnerFontFamily: '--plasma-textarea-label-inner-font-family',
|
|
90
|
-
/** Размер шрифта для элемента label, когда он внутри и уменьшен */ labelInnerFontSize: '--plasma-textarea-label-inner-font-size',
|
|
91
|
-
/** Стиль шрифта для элемента label, когда он внутри и уменьшен */ labelInnerFontStyle: '--plasma-textarea-label-inner-font-style',
|
|
92
|
-
/** Начертание шрифта для элемента label, когда он внутри и уменьшен */ labelInnerFontWeight: '--plasma-textarea-label-inner-font-weight',
|
|
93
|
-
/** Межсимвольное расстояние для элемента label, когда он внутри и уменьшен */ labelInnerLetterSpacing: '--plasma-textarea-label-inner-letter-spacing',
|
|
94
|
-
/** Высота строки для элемента label, когда он внутри и уменьшен */ labelInnerLineHeight: '--plasma-textarea-label-inner-line-height',
|
|
95
|
-
/** Отступ сверху для элемента textarea при фокусе */ labelInnerTop: '--plasma-textarea-label-inner-top',
|
|
96
|
-
/** Вспомогательный отступ сверху для элемента textarea при фокусе для компенсации размеров */ labelInnerTopHelper: '--plasma-textarea-label-inner-top-helper',
|
|
97
|
-
/** Отступ между Label и TextArea */ labelInnerMarginBottom: '--plasma-textarea-label-inner-margin-bottom',
|
|
98
|
-
/** Шрифт для элемента textarea */ inputFontFamily: '--plasma-textarea-input-font-family',
|
|
99
|
-
/** Размер шрифта для элемента textarea */ inputFontSize: '--plasma-textarea-input-font-size',
|
|
100
|
-
/** Стиль шрифта для элемента textarea */ inputFontStyle: '--plasma-textarea-input-font-style',
|
|
101
|
-
/** Начертание шрифта для элемента textarea */ inputFontWeight: '--plasma-textarea-input-font-weight',
|
|
102
|
-
/** Межсимвольное расстояние шрифта для элемента textarea */ inputLetterSpacing: '--plasma-textarea-input-letter-spacing',
|
|
103
|
-
/** Высота строки шрифта для элемента textarea */ inputLineHeight: '--plasma-textarea-input-line-height',
|
|
104
|
-
/** Шрифт для элемента блока подписей снизу */ helpersFontFamily: '--plasma-textarea-helpers-font-family',
|
|
105
|
-
/** Размер шрифта для элемента блока подписей снизу */ helpersFontSize: '--plasma-textarea-helpers-font-size',
|
|
106
|
-
/** Стиль шрифта для элемента блока подписей снизу */ helpersFontStyle: '--plasma-textarea-helpers-font-style',
|
|
107
|
-
/** Начертание шрифта для элемента блока подписей снизу */ helpersFontWeight: '--plasma-textarea-helpers-font-weight',
|
|
108
|
-
/** Межсимвольное расстояние для элемента блока подписей снизу */ helpersLetterSpacing: '--plasma-textarea-helpers-letter-spacing',
|
|
109
|
-
/** Высота строки для элемента блока подписей снизу */ helpersLineHeight: '--plasma-textarea-helpers-line-height',
|
|
110
|
-
/** Тень */ boxShadow: '--plasma-textarea-box-shadow',
|
|
111
|
-
rightContentColor: '--plasma-textarea-right-content-color',
|
|
112
|
-
/** Прозрачность для всего компонента в состоянии disabled */ disabledOpacity: '--plasma-textarea-disabled-opacity',
|
|
113
|
-
/** Цвет текста для элемента textarea в состоянии disabled */ inputColorDisabled: '--plasma-textarea-input-color-disabled',
|
|
114
|
-
indicatorColor: '--plasma-textarea-indicator-color',
|
|
115
|
-
indicatorSizeInner: '--plasma-textarea-indicator-size-inner',
|
|
116
|
-
indicatorSizeOuter: '--plasma-textarea-indicator-size-outer',
|
|
117
|
-
indicatorLabelPlacementInner: '--plasma-textarea-indicator-placement-inner',
|
|
118
|
-
indicatorLabelPlacementOuter: '--plasma-textarea-indicator-placement-outer',
|
|
119
|
-
indicatorLabelPlacementInnerRight: '--plasma-textarea-indicator-placement-inner-right',
|
|
120
|
-
indicatorLabelPlacementOuterRight: '--plasma-textarea-indicator-placement-outer-right',
|
|
121
|
-
indicatorLabelPlacementHintOuterRight: '--plasma-textfield__indicator-hint-placement-outer-right',
|
|
122
|
-
clearIndicatorLabelPlacementInner: '--plasma-textarea__clear-indicator-placement-inner',
|
|
123
|
-
clearIndicatorLabelPlacementInnerRight: '--plasma-textarea__clear-indicator-placement-inner-right',
|
|
124
|
-
clearIndicatorHintInnerRight: '--plasma-textarea__clear-indicator-hint-placement-inner-right',
|
|
125
|
-
scrollbarWidth: '--plasma-textarea-scrollbar-width',
|
|
126
|
-
scrollbarBorderWidth: '--plasma-textarea-scrollbar-border-width',
|
|
127
|
-
scrollbarThumbBackgroundColor: '--plasma-textarea-scrollbar-thumb-background-color',
|
|
128
|
-
scrollbarThumbBackgroundColorHover: '--plasma-textarea-scrollbar-thumb-background-color-hover',
|
|
129
|
-
scrollbarThumbBackgroundColorActive: '--plasma-textarea-scrollbar-thumb-background-color-active',
|
|
130
|
-
scrollbarTrackBackgroundColor: '--plasma-textarea-scrollbar-track-background-color',
|
|
131
|
-
scrollbarTrackBackgroundColorHover: '--plasma-textarea-scrollbar-track-background-color-hover',
|
|
132
|
-
scrollbarTrackBackgroundColorActive: '--plasma-textarea-scrollbar-track-background-color-active',
|
|
51
|
+
readOnlyOpacity: '--plasma-textarea-read-only-opacity',
|
|
52
|
+
borderColor: '--plasma-textarea-border-color',
|
|
53
|
+
borderColorHover: '--plasma-textarea-border-color-hover',
|
|
54
|
+
borderColorFocus: '--plasma-textarea-border-color-focus',
|
|
133
55
|
dividerColor: '--plasma-textarea-divider-color',
|
|
134
56
|
dividerColorHover: '--plasma-textarea-divider-color-hover',
|
|
135
57
|
dividerColorFocus: '--plasma-textarea-divider-color-focus',
|
|
136
58
|
dividerColorReadOnly: '--plasma-textarea-divider-color-readonly',
|
|
59
|
+
boxShadow: '--plasma-textarea-box-shadow',
|
|
60
|
+
inputWidth: '--plasma-textarea-input-width',
|
|
61
|
+
inputHeight: '--plasma-textarea-input-height',
|
|
62
|
+
inputMinHeight: '--plasma-textarea-input-min-height',
|
|
63
|
+
borderSize: '--plasma-textarea-border-size',
|
|
64
|
+
borderRadius: '--plasma-textarea-border-radius',
|
|
65
|
+
borderRadiusWithHelpers: '--plasma-textarea-border-radius-with-helpers',
|
|
66
|
+
/** Отступы для элемента textarea */ inputPaddingTop: '--plasma-textarea-input-padding-top',
|
|
67
|
+
inputPaddingRight: '--plasma-textarea-input-padding-right',
|
|
68
|
+
inputPaddingRightWithRightContent: '--plasma-textarea-input-padding-right-with-right-content',
|
|
69
|
+
inputPaddingBottom: '--plasma-textarea-input-padding-bottom',
|
|
70
|
+
inputPaddingBottomWithHelpers: '--plasma-textarea-input-padding-bottom-with-helpers',
|
|
71
|
+
inputPaddingLeft: '--plasma-textarea-input-padding-left',
|
|
72
|
+
/** Отступы для блока подписей */ helpersPaddingTop: '--plasma-textarea-helpers-padding-top',
|
|
73
|
+
clearHelpersPaddingTop: '--plasma-textarea-clear-helpers-padding-top',
|
|
74
|
+
helpersPaddingRight: '--plasma-textarea-helpers-padding-right',
|
|
75
|
+
helpersPaddingBottom: '--plasma-textarea-helpers-padding-bottom',
|
|
76
|
+
helpersPaddingLeft: '--plasma-textarea-helpers-padding-left',
|
|
77
|
+
helpersOffset: '--plasma-textarea-helpers-offset',
|
|
78
|
+
/** Позиционирование контента справа */ rightContentTop: '--plasma-textarea-right-content-top',
|
|
79
|
+
rightContentRight: '--plasma-textarea-right-content-right',
|
|
80
|
+
rightContentHeight: '--plasma-textarea-right-content-height',
|
|
81
|
+
/* Tokens for right content slot */ rightContentColor: '--plasma-textarea-right-content-color',
|
|
82
|
+
rightContentColorHover: '--plasma-textarea-right-content-color-hover',
|
|
83
|
+
rightContentColorActive: '--plasma-textarea-right-content-color-active',
|
|
84
|
+
contentSlotRightOpacityReadOnly: '--plasma-textarea-right-content-opacity-readonly',
|
|
85
|
+
/** Токены лейбла */ labelOuterColor: '--plasma-textarea-label-outer-color',
|
|
86
|
+
labelOuterFontFamily: '--plasma-textarea-label-outer-font-family',
|
|
87
|
+
labelOuterFontStyle: '--plasma-textarea-label-outer-font-style',
|
|
88
|
+
labelOuterFontSize: '--plasma-textarea-label-outer-font-size',
|
|
89
|
+
labelOuterFontWeight: '--plasma-textarea-label-outer-font-weight',
|
|
90
|
+
labelOuterLetterSpacing: '--plasma-textarea-label-outer-letter-spacing',
|
|
91
|
+
labelOuterLineHeight: '--plasma-textarea-label-outer-line-height',
|
|
92
|
+
labelMarginBottom: '--plasma-textarea-label-margin-bottom',
|
|
93
|
+
/* label-placement-inner */ labelInnerFontFamily: '--plasma-textarea-label-inner-font-family',
|
|
94
|
+
labelInnerFontStyle: '--plasma-textarea-label-inner-font-style',
|
|
95
|
+
labelInnerFontSize: '--plasma-textarea-label-inner-font-size',
|
|
96
|
+
labelInnerFontWeight: '--plasma-textarea-label-inner-font-weight',
|
|
97
|
+
labelInnerLetterSpacing: '--plasma-textarea-label-inner-letter-spacing',
|
|
98
|
+
labelInnerLineHeight: '--plasma-textarea-label-inner-line-height',
|
|
99
|
+
labelInnerTop: '--plasma-textarea-label-inner-top',
|
|
100
|
+
labelInnerTopHelper: '--plasma-textarea-label-inner-top-helper',
|
|
101
|
+
labelInnerMarginBottom: '--plasma-textarea-label-inner-margin-bottom',
|
|
102
|
+
/* Типографика для input */ inputFontFamily: '--plasma-textarea-input-font-family',
|
|
103
|
+
inputFontStyle: '--plasma-textarea-input-font-style',
|
|
104
|
+
inputFontSize: '--plasma-textarea-input-font-size',
|
|
105
|
+
inputFontWeight: '--plasma-textarea-input-font-weight',
|
|
106
|
+
inputLetterSpacing: '--plasma-textarea-input-letter-spacing',
|
|
107
|
+
inputLineHeight: '--plasma-textarea-input-line-height',
|
|
108
|
+
/* Типографика для блока подписей */ helpersFontFamily: '--plasma-textarea-helpers-font-family',
|
|
109
|
+
helpersFontStyle: '--plasma-textarea-helpers-font-style',
|
|
110
|
+
helpersFontSize: '--plasma-textarea-helpers-font-size',
|
|
111
|
+
helpersFontWeight: '--plasma-textarea-helpers-font-weight',
|
|
112
|
+
helpersLetterSpacing: '--plasma-textarea-helpers-letter-spacing',
|
|
113
|
+
helpersLineHeight: '--plasma-textarea-helpers-line-height',
|
|
137
114
|
titleCaptionColor: '--plasma-textarea__title-caption-color',
|
|
138
115
|
titleCaptionColorReadOnly: '--plasma-textarea__title-caption-color-readonly',
|
|
139
116
|
titleCaptionInnerLabelOffset: '--plasma-textarea__title-caption-label-inner-offset',
|
|
@@ -143,12 +120,13 @@ export var tokens = {
|
|
|
143
120
|
titleCaptionFontWeight: '--plasma-textarea__title-caption-font-weight',
|
|
144
121
|
titleCaptionLetterSpacing: '--plasma-textarea__title-caption-letter-spacing',
|
|
145
122
|
titleCaptionLineHeight: '--plasma-textarea__title-caption-line-height',
|
|
146
|
-
/**
|
|
147
|
-
|
|
123
|
+
/** Прозрачность для всего компонента в состоянии disabled */ disabledOpacity: '--plasma-textarea-disabled-opacity',
|
|
124
|
+
inputColorDisabled: '--plasma-textarea-input-color-disabled',
|
|
125
|
+
/** Токены для tooltip */ hintMargin: '--plasma-textarea__hint-margin',
|
|
148
126
|
hintTargetSize: '--plasma-textarea__hint-target-size',
|
|
127
|
+
hintCustomIconTargetSize: '--plasma-textarea__hint-custom-icon-target-size',
|
|
149
128
|
hintIconColor: '--plasma-textarea__hint-icon-color',
|
|
150
129
|
hintInnerLabelPlacementOffset: '--plasma-textarea__hint-inner-label-placement-offset',
|
|
151
|
-
clearHintInnerLabelPlacementOffset: '--plasma-textarea__clear-hint-inner-label-placement-offset',
|
|
152
130
|
tooltipBackgroundColor: '--plasma-textarea__tooltip-background-color',
|
|
153
131
|
tooltipBoxShadow: '--plasma-textarea__tooltip-box-shadow',
|
|
154
132
|
tooltipColor: '--plasma-textarea__tooltip-color',
|
|
@@ -171,6 +149,22 @@ export var tokens = {
|
|
|
171
149
|
tooltipArrowHeight: '--plasma-textarea__tooltip-arrow-height',
|
|
172
150
|
tooltipArrowEdgeMargin: '--plasma-textarea__tooltip-arrow-edge-margin',
|
|
173
151
|
tooltipArrowBackground: '--plasma-textarea__tooltip-arrow-background',
|
|
174
|
-
|
|
152
|
+
/** Токены скроллбара */ scrollbarWidth: '--plasma-textarea-scrollbar-width',
|
|
153
|
+
scrollbarBorderWidth: '--plasma-textarea-scrollbar-border-width',
|
|
154
|
+
scrollbarThumbBackgroundColor: '--plasma-textarea-scrollbar-thumb-background-color',
|
|
155
|
+
scrollbarThumbBackgroundColorHover: '--plasma-textarea-scrollbar-thumb-background-color-hover',
|
|
156
|
+
scrollbarThumbBackgroundColorActive: '--plasma-textarea-scrollbar-thumb-background-color-active',
|
|
157
|
+
scrollbarTrackBackgroundColor: '--plasma-textarea-scrollbar-track-background-color',
|
|
158
|
+
scrollbarTrackBackgroundColorHover: '--plasma-textarea-scrollbar-track-background-color-hover',
|
|
159
|
+
scrollbarTrackBackgroundColorActive: '--plasma-textarea-scrollbar-track-background-color-active',
|
|
160
|
+
indicatorColor: '--plasma-textarea-indicator-color',
|
|
161
|
+
indicatorSizeInner: '--plasma-textarea-indicator-size-inner',
|
|
162
|
+
indicatorSizeOuter: '--plasma-textarea-indicator-size-outer',
|
|
163
|
+
indicatorLabelPlacementInner: '--plasma-textarea-indicator-placement-inner',
|
|
164
|
+
indicatorLabelPlacementOuter: '--plasma-textarea-indicator-placement-outer',
|
|
165
|
+
indicatorLabelPlacementInnerRight: '--plasma-textarea-indicator-placement-inner-right',
|
|
166
|
+
indicatorLabelPlacementOuterRight: '--plasma-textarea-indicator-placement-outer-right',
|
|
167
|
+
indicatorLabelPlacementHintOuterRight: '--plasma-textfield__indicator-hint-placement-outer-right',
|
|
168
|
+
clearIndicatorHintInnerRight: '--plasma-textarea__clear-indicator-hint-placement-inner-right',
|
|
175
169
|
tourBorderRadius: TOUR_BORDER_RADIUS_TOKEN
|
|
176
170
|
};
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
2
|
import { tokens, classes } from "../../TextArea.tokens";
|
|
3
|
-
import { StyledContent, StyledHelpers, StyledIndicator, StyledLabel, StyledOptionalText, StyledOutsideHelpersWrapper, StyledPlaceholder, StyledTextAreaWrapper, TitleCaption } from "../../TextArea.styles";
|
|
4
3
|
var styledTextArea = classes.styledTextArea;
|
|
5
4
|
export var base = css([
|
|
6
|
-
"&[disabled]{",
|
|
7
|
-
"
|
|
8
|
-
",",
|
|
9
|
-
",",
|
|
10
|
-
",",
|
|
11
|
-
",",
|
|
12
|
-
",",
|
|
13
|
-
",",
|
|
14
|
-
",",
|
|
15
|
-
"{opacity:var(",
|
|
16
|
-
");cursor:not-allowed;&:hover,&:active{transform:none;}}}.",
|
|
5
|
+
"&[disabled]{opacity:var(",
|
|
6
|
+
");cursor:not-allowed;pointer-events:none;&:hover,&:active{transform:none;}}.",
|
|
17
7
|
"{&:disabled{cursor:not-allowed;color:var(",
|
|
18
8
|
");}}"
|
|
19
|
-
],
|
|
9
|
+
], tokens.disabledOpacity, styledTextArea, tokens.inputColorDisabled);
|
|
@@ -6,7 +6,9 @@ export var base = css([
|
|
|
6
6
|
"{color:var(",
|
|
7
7
|
");}",
|
|
8
8
|
"{opacity:var(",
|
|
9
|
-
")
|
|
9
|
+
");&:hover{color:var(",
|
|
10
|
+
");}&:active{color:var(",
|
|
11
|
+
");}}&.",
|
|
10
12
|
"{",
|
|
11
13
|
"{&:before{background-color:var(",
|
|
12
14
|
");}}}:not(&.",
|
|
@@ -21,4 +23,4 @@ export var base = css([
|
|
|
21
23
|
");border-radius:var(",
|
|
22
24
|
");opacity:var(",
|
|
23
25
|
");z-index:-1;}:hover{background:transparent;}}}}"
|
|
24
|
-
], StyledTextArea, tokens.inputColorReadOnly, StyledContent, tokens.contentSlotRightOpacityReadOnly, classes.clear, StyledTextAreaWrapper, tokens.dividerColorReadOnly, classes.clear, StyledTextAreaWrapper, StyledHelpers, StyledTextAreaWrapper, tokens.borderSize, tokens.borderColorReadOnly, tokens.borderRadius, StyledContainer, tokens.backgroundColorReadOnly, tokens.borderRadius, tokens.readOnlyOpacity);
|
|
26
|
+
], StyledTextArea, tokens.inputColorReadOnly, StyledContent, tokens.contentSlotRightOpacityReadOnly, tokens.rightContentColor, tokens.rightContentColor, classes.clear, StyledTextAreaWrapper, tokens.dividerColorReadOnly, classes.clear, StyledTextAreaWrapper, StyledHelpers, StyledTextAreaWrapper, tokens.borderSize, tokens.borderColorReadOnly, tokens.borderRadius, StyledContainer, tokens.backgroundColorReadOnly, tokens.borderRadius, tokens.readOnlyOpacity);
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import { tokens } from "../../TextArea.tokens";
|
|
2
|
+
import { classes, tokens } from "../../TextArea.tokens";
|
|
3
|
+
import { StyledIndicator } from "../../TextArea.styles";
|
|
3
4
|
export var base = css([
|
|
4
5
|
"",
|
|
5
6
|
":var(",
|
|
6
|
-
")
|
|
7
|
-
|
|
7
|
+
");&.",
|
|
8
|
+
".",
|
|
9
|
+
"{",
|
|
10
|
+
"{&.",
|
|
11
|
+
".",
|
|
12
|
+
"{inset:var(",
|
|
13
|
+
");}}}"
|
|
14
|
+
], tokens.tourBorderRadius, tokens.borderRadius, classes.hasHint, classes.clear, StyledIndicator, classes.innerLabelPlacement, classes.requiredAlignRight, tokens.clearIndicatorHintInnerRight);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
2
|
import { tokens, classes } from "../../TextArea.tokens";
|
|
3
|
-
import { TitleCaption } from "../../TextArea.styles";
|
|
3
|
+
import { StyledTextAreaWrapper, TitleCaption } from "../../TextArea.styles";
|
|
4
4
|
var styledContainer = classes.styledContainer, styledTextAreaWrapper = classes.styledTextAreaWrapper, styledHelpers = classes.styledHelpers;
|
|
5
5
|
var exclusionSelectors = "not(.".concat(classes.clear, "):not([disabled]):not([readonly]):not(:focus-within)");
|
|
6
6
|
export var base = css([
|
|
@@ -54,5 +54,14 @@ export var base = css([
|
|
|
54
54
|
" .",
|
|
55
55
|
" + .",
|
|
56
56
|
"{background-color:var(",
|
|
57
|
-
");}"
|
|
58
|
-
|
|
57
|
+
");}&.",
|
|
58
|
+
"{",
|
|
59
|
+
"{position:relative;--plasma_private-textarea-divider-color:var(",
|
|
60
|
+
");&:before{content:'';position:absolute;height:0.063rem;width:100%;bottom:0;left:0;background-color:var(--plasma_private-textarea-divider-color);transition:background-color 0.1s ease-in;}}&:not([readonly]) ",
|
|
61
|
+
":hover{--plasma_private-textarea-divider-color:var( ",
|
|
62
|
+
",var(",
|
|
63
|
+
") );}&:not([readonly]) ",
|
|
64
|
+
":focus-within{--plasma_private-textarea-divider-color:var( ",
|
|
65
|
+
",var(",
|
|
66
|
+
") );}}"
|
|
67
|
+
], TitleCaption, tokens.titleCaptionColor, styledContainer, tokens.backgroundColor, tokens.borderRadius, tokens.borderSize, tokens.borderColor, tokens.boxShadow, styledTextAreaWrapper, tokens.borderSize, tokens.inputBorderColor, tokens.borderSize, styledTextAreaWrapper, tokens.inputBackgroundColorFocus, tokens.borderSize, tokens.inputBorderColorFocus, styledContainer, tokens.backgroundColorFocus, tokens.borderSize, tokens.borderColorFocus, tokens.boxShadow, styledHelpers, tokens.helpersBackgroundColorFocus, exclusionSelectors, styledContainer, tokens.backgroundColorHover, tokens.borderSize, tokens.borderColorHover, tokens.boxShadow, exclusionSelectors, styledTextAreaWrapper, tokens.borderSize, tokens.inputBorderColorHover, tokens.inputBackgroundColorHover, exclusionSelectors, styledTextAreaWrapper, styledHelpers, tokens.helpersBackgroundColorHover, exclusionSelectors, styledTextAreaWrapper, tokens.borderSize, tokens.inputBorderColorActive, tokens.inputBackgroundColorActive, exclusionSelectors, styledContainer, tokens.backgroundColorActive, exclusionSelectors, styledTextAreaWrapper, styledHelpers, tokens.helpersBackgroundColorActive, classes.hasDivider, StyledTextAreaWrapper, tokens.dividerColor, StyledTextAreaWrapper, tokens.dividerColorHover, tokens.dividerColor, StyledTextAreaWrapper, tokens.dividerColorFocus, tokens.dividerColor);
|