@salutejs/plasma-new-hope 0.345.0-canary.2416.20569157442.0 → 0.345.0-canary.2423.20958341938.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 +49 -53
- package/dist/css/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/cjs/components/TextArea/TextArea.styles.js +27 -27
- package/dist/css/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/cjs/components/TextArea/{TextArea.styles_j6drga.css → TextArea.styles_1tn1ff1.css} +2 -2
- 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/components/_beta/Popover/Popover.js +4 -0
- package/dist/css/cjs/components/_beta/Popover/Popover.js.map +1 -1
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.js +136 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.js.map +1 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.styles.js +23 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.styles.js.map +1 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.styles_12kwl84.css +3 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.tokens.js +25 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip.tokens.js.map +1 -0
- package/dist/css/cjs/components/_beta/Tooltip/Tooltip_1ed9tky.css +2 -0
- package/dist/css/cjs/index.css +35 -33
- package/dist/css/cjs/index.js +6 -0
- package/dist/css/cjs/index.js.map +1 -1
- 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 +49 -53
- package/dist/css/es/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/es/components/TextArea/TextArea.styles.js +27 -27
- package/dist/css/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/es/components/TextArea/{TextArea.styles_j6drga.css → TextArea.styles_1tn1ff1.css} +2 -2
- 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/components/_beta/Popover/Popover.js +1 -1
- package/dist/css/es/components/_beta/Popover/Popover.js.map +1 -1
- package/dist/css/es/components/_beta/Tooltip/Tooltip.js +126 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.js.map +1 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.styles.js +17 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.styles.js.map +1 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.styles_12kwl84.css +3 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.tokens.js +20 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip.tokens.js.map +1 -0
- package/dist/css/es/components/_beta/Tooltip/Tooltip_1ed9tky.css +2 -0
- package/dist/css/es/index.css +35 -33
- package/dist/css/es/index.js +2 -0
- package/dist/css/es/index.js.map +1 -1
- package/dist/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/emotion/cjs/components/TextArea/TextArea.js +52 -49
- package/dist/emotion/cjs/components/TextArea/TextArea.styles.js +49 -49
- 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/components/_beta/Popover/Popover.js +18 -6
- package/dist/emotion/cjs/components/_beta/Tooltip/Tooltip.js +304 -0
- package/dist/emotion/cjs/components/_beta/Tooltip/Tooltip.styles.js +38 -0
- package/dist/emotion/cjs/components/_beta/Tooltip/Tooltip.tokens.js +35 -0
- package/dist/emotion/cjs/components/_beta/Tooltip/Tooltip.types.js +4 -0
- package/dist/emotion/cjs/components/_beta/Tooltip/index.js +26 -0
- package/dist/emotion/cjs/components/_beta/index.js +1 -0
- package/dist/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
- 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/cjs/examples/components/_beta/Tooltip/Tooltip.config.js +28 -0
- package/dist/emotion/cjs/examples/components/_beta/Tooltip/Tooltip.js +15 -0
- package/dist/emotion/cjs/index.js +1 -0
- package/dist/emotion/es/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/emotion/es/components/TextArea/TextArea.js +44 -41
- package/dist/emotion/es/components/TextArea/TextArea.styles.js +49 -49
- 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/components/_beta/Popover/Popover.js +6 -6
- package/dist/emotion/es/components/_beta/Tooltip/Tooltip.js +240 -0
- package/dist/emotion/es/components/_beta/Tooltip/Tooltip.styles.js +12 -0
- package/dist/emotion/es/components/_beta/Tooltip/Tooltip.tokens.js +17 -0
- package/dist/emotion/es/components/_beta/Tooltip/Tooltip.types.js +1 -0
- package/dist/emotion/es/components/_beta/Tooltip/index.js +2 -0
- package/dist/emotion/es/components/_beta/index.js +1 -0
- package/dist/emotion/es/examples/components/Combobox/Combobox.js +0 -7
- 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/emotion/es/examples/components/_beta/Tooltip/Tooltip.config.js +18 -0
- package/dist/emotion/es/examples/components/_beta/Tooltip/Tooltip.js +5 -0
- package/dist/emotion/es/index.js +1 -0
- package/dist/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/styled-components/cjs/components/TextArea/TextArea.js +51 -48
- package/dist/styled-components/cjs/components/TextArea/TextArea.styles.js +33 -31
- 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/components/_beta/Popover/Popover.js +16 -4
- package/dist/styled-components/cjs/components/_beta/Tooltip/Tooltip.js +308 -0
- package/dist/styled-components/cjs/components/_beta/Tooltip/Tooltip.styles.js +92 -0
- package/dist/styled-components/cjs/components/_beta/Tooltip/Tooltip.tokens.js +35 -0
- package/dist/styled-components/cjs/components/_beta/Tooltip/Tooltip.types.js +4 -0
- package/dist/styled-components/cjs/components/_beta/Tooltip/index.js +26 -0
- package/dist/styled-components/cjs/components/_beta/index.js +1 -0
- package/dist/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
- 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/cjs/examples/components/_beta/Tooltip/Tooltip.config.js +60 -0
- package/dist/styled-components/cjs/examples/components/_beta/Tooltip/Tooltip.js +15 -0
- package/dist/styled-components/cjs/index.js +1 -0
- package/dist/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +3 -0
- package/dist/styled-components/es/components/TextArea/TextArea.js +43 -40
- package/dist/styled-components/es/components/TextArea/TextArea.styles.js +33 -31
- 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/components/_beta/Popover/Popover.js +4 -4
- package/dist/styled-components/es/components/_beta/Tooltip/Tooltip.js +244 -0
- package/dist/styled-components/es/components/_beta/Tooltip/Tooltip.styles.js +31 -0
- package/dist/styled-components/es/components/_beta/Tooltip/Tooltip.tokens.js +17 -0
- package/dist/styled-components/es/components/_beta/Tooltip/Tooltip.types.js +1 -0
- package/dist/styled-components/es/components/_beta/Tooltip/index.js +2 -0
- package/dist/styled-components/es/components/_beta/index.js +1 -0
- 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/dist/styled-components/es/examples/components/_beta/Tooltip/Tooltip.config.js +50 -0
- package/dist/styled-components/es/examples/components/_beta/Tooltip/Tooltip.js +5 -0
- package/dist/styled-components/es/index.js +1 -0
- 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.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/components/_beta/Popover/Popover.d.ts +4 -0
- package/types/components/_beta/Popover/Popover.d.ts.map +1 -1
- package/types/components/_beta/Popover/Popover.types.d.ts +1 -2
- package/types/components/_beta/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/_beta/Tooltip/Tooltip.d.ts +23 -0
- package/types/components/_beta/Tooltip/Tooltip.d.ts.map +1 -0
- package/types/components/_beta/Tooltip/Tooltip.styles.d.ts +4 -0
- package/types/components/_beta/Tooltip/Tooltip.styles.d.ts.map +1 -0
- package/types/components/_beta/Tooltip/Tooltip.tokens.d.ts +18 -0
- package/types/components/_beta/Tooltip/Tooltip.tokens.d.ts.map +1 -0
- package/types/components/_beta/Tooltip/Tooltip.types.d.ts +61 -0
- package/types/components/_beta/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/types/components/_beta/Tooltip/index.d.ts +4 -0
- package/types/components/_beta/Tooltip/index.d.ts.map +1 -0
- package/types/components/_beta/index.d.ts +1 -0
- package/types/components/_beta/index.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/types/examples/components/_beta/Tooltip/Tooltip.config.d.ts +17 -0
- package/types/examples/components/_beta/Tooltip/Tooltip.config.d.ts.map +1 -0
- package/types/examples/components/_beta/Tooltip/Tooltip.d.ts +11 -0
- package/types/examples/components/_beta/Tooltip/Tooltip.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.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);
|
|
@@ -133,10 +133,10 @@ import { Slot } from "../../_Slot/Slot";
|
|
|
133
133
|
import { sizeToIconSize, matchPlacements } from "./utils";
|
|
134
134
|
import { tokens, classes } from "./Popover.tokens";
|
|
135
135
|
import { base, CloseButton, Wrapper } from "./Popover.styles";
|
|
136
|
-
/* Ширина хвостика */ var ARROW_WIDTH = 20;
|
|
137
|
-
/* Высота хвостика */ var ARROW_HEIGHT = 8;
|
|
138
|
-
/* SVG хвостика */ var ARROW_POLYGON = 'M20 20L0 20C8.88889 20.0001 10 12.5714 10 12C10 12.5714 11.3273 20.006 20 20Z';
|
|
139
|
-
/* Отступ хвостика по краям (чтобы избежать коллизии со скругленными углами) */ var ARROW_PADDING = 16;
|
|
136
|
+
/* Ширина хвостика */ export var ARROW_WIDTH = 20;
|
|
137
|
+
/* Высота хвостика */ export var ARROW_HEIGHT = 8;
|
|
138
|
+
/* SVG хвостика */ export var ARROW_POLYGON = 'M20 20L0 20C8.88889 20.0001 10 12.5714 10 12C10 12.5714 11.3273 20.006 20 20Z';
|
|
139
|
+
/* Отступ хвостика по краям (чтобы избежать коллизии со скругленными углами) */ export var ARROW_PADDING = 16;
|
|
140
140
|
export var popoverRoot = function(Root) {
|
|
141
141
|
return /*#__PURE__*/ forwardRef(function(_param, outerRootRef) {
|
|
142
142
|
var _param_appearance = _param.appearance, appearance = _param_appearance === void 0 ? 'closeNone' : _param_appearance, children = _param.children, target = _param.target, outerOpened = _param.opened, _param_defaultOpened = _param.defaultOpened, defaultOpened = _param_defaultOpened === void 0 ? false : _param_defaultOpened, _param_trigger = _param.trigger, trigger = _param_trigger === void 0 ? 'click' : _param_trigger, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'bottom' : _param_placement, _param_hasTail = _param.hasTail, hasTail = _param_hasTail === void 0 ? true : _param_hasTail, tmp = _param.flip, outsideFlip = tmp === void 0 ? false : tmp, tmp1 = _param.shift, outsideShift = tmp1 === void 0 ? false : tmp1, tmp2 = _param.offset, outerOffset = tmp2 === void 0 ? 0 : tmp2, _param_outsideClick = _param.outsideClick, outsideClick = _param_outsideClick === void 0 ? true : _param_outsideClick, _param_resizable = _param.resizable, resizable = _param_resizable === void 0 ? false : _param_resizable, onResizeStart = _param.onResizeStart, onResizeEnd = _param.onResizeEnd, onToggle = _param.onToggle, _param_delayOpen = _param.delayOpen, delayOpen = _param_delayOpen === void 0 ? 0 : _param_delayOpen, _param_delayClose = _param.delayClose, delayClose = _param_delayClose === void 0 ? 0 : _param_delayClose, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 1000 : _param_zIndex, className = _param.className, style = _param.style, size = _param.size, view = _param.view, rest = _object_without_properties(_param, [
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
function _array_with_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return arr;
|
|
8
|
+
}
|
|
9
|
+
function _define_property(obj, key, value) {
|
|
10
|
+
if (key in obj) {
|
|
11
|
+
Object.defineProperty(obj, key, {
|
|
12
|
+
value: value,
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true
|
|
16
|
+
});
|
|
17
|
+
} else {
|
|
18
|
+
obj[key] = value;
|
|
19
|
+
}
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
function _iterable_to_array_limit(arr, i) {
|
|
23
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24
|
+
if (_i == null) return;
|
|
25
|
+
var _arr = [];
|
|
26
|
+
var _n = true;
|
|
27
|
+
var _d = false;
|
|
28
|
+
var _s, _e;
|
|
29
|
+
try {
|
|
30
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
31
|
+
_arr.push(_s.value);
|
|
32
|
+
if (i && _arr.length === i) break;
|
|
33
|
+
}
|
|
34
|
+
} catch (err) {
|
|
35
|
+
_d = true;
|
|
36
|
+
_e = err;
|
|
37
|
+
} finally{
|
|
38
|
+
try {
|
|
39
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
40
|
+
} finally{
|
|
41
|
+
if (_d) throw _e;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return _arr;
|
|
45
|
+
}
|
|
46
|
+
function _non_iterable_rest() {
|
|
47
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
+
}
|
|
49
|
+
function _object_spread(target) {
|
|
50
|
+
for(var i = 1; i < arguments.length; i++){
|
|
51
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
52
|
+
var ownKeys = Object.keys(source);
|
|
53
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
54
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
ownKeys.forEach(function(key) {
|
|
59
|
+
_define_property(target, key, source[key]);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return target;
|
|
63
|
+
}
|
|
64
|
+
function ownKeys(object, enumerableOnly) {
|
|
65
|
+
var keys = Object.keys(object);
|
|
66
|
+
if (Object.getOwnPropertySymbols) {
|
|
67
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
68
|
+
if (enumerableOnly) {
|
|
69
|
+
symbols = symbols.filter(function(sym) {
|
|
70
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
keys.push.apply(keys, symbols);
|
|
74
|
+
}
|
|
75
|
+
return keys;
|
|
76
|
+
}
|
|
77
|
+
function _object_spread_props(target, source) {
|
|
78
|
+
source = source != null ? source : {};
|
|
79
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
80
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
81
|
+
} else {
|
|
82
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
83
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return target;
|
|
87
|
+
}
|
|
88
|
+
function _object_without_properties(source, excluded) {
|
|
89
|
+
if (source == null) return {};
|
|
90
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
91
|
+
var key, i;
|
|
92
|
+
if (Object.getOwnPropertySymbols) {
|
|
93
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
94
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
95
|
+
key = sourceSymbolKeys[i];
|
|
96
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
97
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
98
|
+
target[key] = source[key];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return target;
|
|
102
|
+
}
|
|
103
|
+
function _object_without_properties_loose(source, excluded) {
|
|
104
|
+
if (source == null) return {};
|
|
105
|
+
var target = {};
|
|
106
|
+
var sourceKeys = Object.keys(source);
|
|
107
|
+
var key, i;
|
|
108
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
109
|
+
key = sourceKeys[i];
|
|
110
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
111
|
+
target[key] = source[key];
|
|
112
|
+
}
|
|
113
|
+
return target;
|
|
114
|
+
}
|
|
115
|
+
function _sliced_to_array(arr, i) {
|
|
116
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
117
|
+
}
|
|
118
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
119
|
+
if (!o) return;
|
|
120
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
121
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
122
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
123
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
124
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
125
|
+
}
|
|
126
|
+
import React, { forwardRef, useState, useRef } from "react";
|
|
127
|
+
import cls from "classnames";
|
|
128
|
+
import { useFloating, useInteractions, useClick, useFocus, useDismiss, useRole, FloatingArrow, arrow, offset, useHover, safePolygon, FloatingPortal, autoUpdate } from "@floating-ui/react";
|
|
129
|
+
import { css } from "styled-components";
|
|
130
|
+
import { Slot } from "../../_Slot/Slot";
|
|
131
|
+
import { ARROW_HEIGHT, ARROW_PADDING, ARROW_POLYGON, ARROW_WIDTH } from "../Popover/Popover";
|
|
132
|
+
import { tokens, classes } from "./Tooltip.tokens";
|
|
133
|
+
import { base, Wrapper, IconWrapper } from "./Tooltip.styles";
|
|
134
|
+
export var tooltipRoot = function(Root) {
|
|
135
|
+
return /*#__PURE__*/ forwardRef(function(_param, outerRootRef) {
|
|
136
|
+
var children = _param.children, target = _param.target, iconSlot = _param.iconSlot, _param_trigger = _param.trigger, trigger = _param_trigger === void 0 ? 'click' : _param_trigger, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'bottom' : _param_placement, _param_hasTail = _param.hasTail, hasTail = _param_hasTail === void 0 ? true : _param_hasTail, tmp = _param.offset, outerOffset = tmp === void 0 ? 0 : tmp, _param_delayOpen = _param.delayOpen, delayOpen = _param_delayOpen === void 0 ? 0 : _param_delayOpen, _param_delayClose = _param.delayClose, delayClose = _param_delayClose === void 0 ? 0 : _param_delayClose, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? 1000 : _param_zIndex, className = _param.className, style = _param.style, size = _param.size, view = _param.view, rest = _object_without_properties(_param, [
|
|
137
|
+
"children",
|
|
138
|
+
"target",
|
|
139
|
+
"iconSlot",
|
|
140
|
+
"trigger",
|
|
141
|
+
"placement",
|
|
142
|
+
"hasTail",
|
|
143
|
+
"offset",
|
|
144
|
+
"delayOpen",
|
|
145
|
+
"delayClose",
|
|
146
|
+
"zIndex",
|
|
147
|
+
"className",
|
|
148
|
+
"style",
|
|
149
|
+
"size",
|
|
150
|
+
"view"
|
|
151
|
+
]);
|
|
152
|
+
var _useState = _sliced_to_array(useState(false), 2), opened = _useState[0], setOpened = _useState[1];
|
|
153
|
+
var arrowRef = useRef(null);
|
|
154
|
+
var handleToggle = function(opened) {
|
|
155
|
+
setOpened(opened);
|
|
156
|
+
};
|
|
157
|
+
var _useFloating = useFloating({
|
|
158
|
+
whileElementsMounted: autoUpdate,
|
|
159
|
+
placement: placement,
|
|
160
|
+
open: opened,
|
|
161
|
+
onOpenChange: handleToggle,
|
|
162
|
+
middleware: [
|
|
163
|
+
hasTail && arrow({
|
|
164
|
+
element: arrowRef,
|
|
165
|
+
padding: ARROW_PADDING
|
|
166
|
+
}),
|
|
167
|
+
offset((hasTail ? ARROW_HEIGHT : 0) + outerOffset)
|
|
168
|
+
]
|
|
169
|
+
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
170
|
+
var click = useClick(context, {
|
|
171
|
+
enabled: trigger === 'click' || matchMedia('(hover: none)').matches
|
|
172
|
+
});
|
|
173
|
+
var focus = useFocus(context, {
|
|
174
|
+
enabled: trigger === 'focus'
|
|
175
|
+
});
|
|
176
|
+
var dismiss = useDismiss(context, {
|
|
177
|
+
enabled: true,
|
|
178
|
+
outsidePress: true
|
|
179
|
+
});
|
|
180
|
+
var role = useRole(context);
|
|
181
|
+
var hover = useHover(context, {
|
|
182
|
+
mouseOnly: true,
|
|
183
|
+
enabled: trigger === 'hover',
|
|
184
|
+
handleClose: safePolygon({
|
|
185
|
+
requireIntent: false
|
|
186
|
+
}),
|
|
187
|
+
delay: {
|
|
188
|
+
open: delayOpen,
|
|
189
|
+
close: delayClose
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
var _useInteractions = useInteractions([
|
|
193
|
+
dismiss,
|
|
194
|
+
role,
|
|
195
|
+
click,
|
|
196
|
+
hover,
|
|
197
|
+
focus
|
|
198
|
+
]), getReferenceProps = _useInteractions.getReferenceProps, getFloatingProps = _useInteractions.getFloatingProps;
|
|
199
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Slot, _object_spread({
|
|
200
|
+
ref: refs.setReference
|
|
201
|
+
}, getReferenceProps()), target), opened && /*#__PURE__*/ React.createElement(FloatingPortal, null, /*#__PURE__*/ React.createElement(Root, _object_spread({
|
|
202
|
+
ref: refs.setFloating,
|
|
203
|
+
size: size,
|
|
204
|
+
view: view,
|
|
205
|
+
style: _object_spread_props(_object_spread({}, floatingStyles), {
|
|
206
|
+
zIndex: zIndex
|
|
207
|
+
})
|
|
208
|
+
}, getFloatingProps()), /*#__PURE__*/ React.createElement(Wrapper, _object_spread({
|
|
209
|
+
ref: outerRootRef,
|
|
210
|
+
className: cls(className, classes.tooltipRoot),
|
|
211
|
+
style: style,
|
|
212
|
+
"data-tooltip-open": opened
|
|
213
|
+
}, rest), iconSlot && /*#__PURE__*/ React.createElement(IconWrapper, null, iconSlot), children, hasTail && /*#__PURE__*/ React.createElement(FloatingArrow, {
|
|
214
|
+
ref: arrowRef,
|
|
215
|
+
context: context,
|
|
216
|
+
width: ARROW_WIDTH,
|
|
217
|
+
height: ARROW_HEIGHT,
|
|
218
|
+
fill: "var(".concat(tokens.backgroundColor, ")"),
|
|
219
|
+
d: ARROW_POLYGON
|
|
220
|
+
})))));
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
export var tooltipConfig = {
|
|
224
|
+
name: 'Tooltip',
|
|
225
|
+
tag: 'div',
|
|
226
|
+
layout: tooltipRoot,
|
|
227
|
+
base: base,
|
|
228
|
+
variations: {
|
|
229
|
+
view: {
|
|
230
|
+
css: css([
|
|
231
|
+
""
|
|
232
|
+
])
|
|
233
|
+
},
|
|
234
|
+
size: {
|
|
235
|
+
css: css([
|
|
236
|
+
""
|
|
237
|
+
])
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
defaults: {
|
|
241
|
+
view: 'default',
|
|
242
|
+
size: 'm'
|
|
243
|
+
}
|
|
244
|
+
};
|