@itcase/ui 1.8.110 → 1.8.111
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/{Avatar_cjs_joB9qjwk.js → Avatar_cjs_CQhA8iu9.js} +2 -2
- package/dist/{Avatar_es_C3HGSiHU.js → Avatar_es__NA_FQGM.js} +2 -2
- package/dist/{Button_cjs_mau_55Fl.js → Button_cjs_B2eZhvoC.js} +5 -5
- package/dist/{Button_es_D_IlkeBp.js → Button_es_C8qinRU4.js} +5 -5
- package/dist/{ChipsGroup_cjs_D454M1-p.js → ChipsGroup_cjs_ChJ71i_A.js} +2 -2
- package/dist/{ChipsGroup_es_BKG5mK5N.js → ChipsGroup_es_Dj0Lu5zm.js} +2 -2
- package/dist/{DatePicker_cjs_C9rI2uTl.js → DatePicker_cjs_CpN9wFK4.js} +5 -5
- package/dist/{DatePicker_es_Bi6lgbTb.js → DatePicker_es_B6WjNDiN.js} +5 -5
- package/dist/{DropdownItem_cjs_D2hHKA5E.js → DropdownItem_cjs_DUIefLij.js} +2 -2
- package/dist/{DropdownItem_es_D9JBMV70.js → DropdownItem_es_uFi08Joi.js} +2 -2
- package/dist/{Icon_cjs_ZerVip3X.js → Icon_cjs_D-UNVTqI.js} +6 -6
- package/dist/{Icon_es_C76te22j.js → Icon_es_Cstv1LFr.js} +6 -6
- package/dist/{Input_cjs_TC7DOpvh.js → Input_cjs_D18gXu6j.js} +14 -30
- package/dist/{Input_es_RtN2gtZq.js → Input_es_CHuhHbMo.js} +14 -30
- package/dist/{Label_cjs_CaTh_laL.js → Label_cjs_BvS_ANE3.js} +4 -4
- package/dist/{Label_es_CoIII7Ty.js → Label_es_C4Icioi8.js} +4 -4
- package/dist/{Link_cjs_BqT6eVl6.js → Link_cjs_C5UsZUiF.js} +2 -2
- package/dist/{Link_es_BnUIX0QT.js → Link_es_XiqbdwLp.js} +2 -2
- package/dist/{Loader_cjs_c6yF7akz.js → Loader_cjs_Cme6Hi0B.js} +3 -3
- package/dist/{Loader_es_C8ETXkiZ.js → Loader_es_ByhTIMxS.js} +3 -3
- package/dist/{Text_cjs_DpRclhwc.js → Text_cjs_0EINiUq4.js} +7 -4
- package/dist/{Text_es_CtCwsa3V.js → Text_es_CwV9rjFD.js} +7 -4
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +23 -21
- package/dist/cjs/components/Code.js +3 -3
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +11 -11
- package/dist/cjs/components/DatePicker.js +8 -8
- package/dist/cjs/components/Drawer.js +3 -3
- package/dist/cjs/components/Dropdown.js +4 -4
- package/dist/cjs/components/HeroTitle.js +5 -5
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +6 -10
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +4 -4
- package/dist/cjs/components/Modal.js +6 -6
- package/dist/cjs/components/ModalSheetBottom.js +5 -5
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Pagination.js +6 -6
- package/dist/cjs/components/Radio.js +58 -36
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +5 -5
- package/dist/cjs/components/Segmented.js +12 -11
- package/dist/cjs/components/Select.js +104 -78
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +2 -2
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +31 -26
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Warning.js +3 -3
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +4 -4
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +23 -21
- package/dist/components/Code.js +3 -3
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +11 -11
- package/dist/components/DatePicker.js +8 -8
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Dropdown.js +4 -4
- package/dist/components/HeroTitle.js +5 -5
- package/dist/components/Icon.js +3 -3
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +6 -10
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +4 -4
- package/dist/components/Modal.js +6 -6
- package/dist/components/ModalSheetBottom.js +5 -5
- package/dist/components/Notification.js +3 -3
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Radio.js +58 -36
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +5 -5
- package/dist/components/Segmented.js +12 -11
- package/dist/components/Select.js +104 -78
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +2 -2
- package/dist/components/Tab.js +4 -4
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +31 -26
- package/dist/components/Tile.js +3 -3
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Warning.js +3 -3
- package/dist/css/components/Choice/Choice.css +12 -1
- package/dist/css/components/Choice/css/__item/choice__item.css +1 -1
- package/dist/css/components/Choice/css/__item/choice__item_size.css +5 -0
- package/dist/css/components/DatePicker/DatePicker.css +18 -18
- package/dist/css/components/Group/Group.css +5 -0
- package/dist/css/components/Input/Input.css +10 -7
- package/dist/css/components/Radio/Radio.css +436 -5
- package/dist/css/components/Segmented/Segmented.css +15 -17
- package/dist/css/components/Segmented/css/__item/segmaented__item.css +12 -0
- package/dist/css/components/Select/Select.css +12 -1
- package/dist/css/components/Select/css/__placeholder/select__placeholder.css +3 -0
- package/dist/css/components/Select/css/__single-value/select__single-value.css +5 -0
- package/dist/css/components/Textarea/Textarea.css +7 -6
- package/dist/css/styles/bundle.css +36 -46
- package/dist/css/styles/fill/fill.css +0 -3
- package/dist/css/styles/text-align/text-align.css +1 -1
- package/dist/css/styles/text-weight/text-weight.css +35 -42
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +8 -4
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +3 -1
- package/dist/types/components/Code/Code.interface.d.ts +1 -0
- package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputDisabled.d.ts +1 -0
- package/dist/types/components/Input/appearance/inputRequire.d.ts +1 -0
- package/dist/types/components/Input/appearance/inputStyle.d.ts +1 -0
- package/dist/types/components/Radio/Radio.appearance.d.ts +37 -16
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +7 -4
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioError.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +4 -2
- package/dist/types/components/Radio/appearance/radioShape.d.ts +4 -4
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +10 -0
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +4 -2
- package/dist/types/components/Segmented/appearance/segmentedWarning.d.ts +1 -0
- package/dist/types/components/Select/appearance/selectDefault.d.ts +5 -5
- package/dist/types/components/Select/appearance/selectDisabled.d.ts +0 -1
- package/dist/types/components/Select/appearance/selectError.d.ts +16 -8
- package/dist/types/components/Select/appearance/selectRequire.d.ts +16 -8
- package/dist/types/components/Select/appearance/selectShape.d.ts +4 -4
- package/dist/types/components/Select/appearance/selectSize.d.ts +3 -0
- package/dist/types/components/Select/appearance/selectStyle.d.ts +5 -4
- package/dist/types/components/Select/appearance/selectSuccess.d.ts +16 -10
- package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +7 -5
- package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -2
- package/dist/types/components/Textarea/appearance/textareaShape.d.ts +4 -4
- package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +4 -2
- package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +3 -2
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Icon_es_Cstv1LFr.js';
|
|
5
5
|
import React, { useRef, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { G as Group } from '../Group_es_DIfmrMSM.js';
|
|
9
|
-
import { T as Text } from '../
|
|
9
|
+
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
10
10
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
11
11
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
12
12
|
import { icons12, icons16, icons14, icons24 } from '@itcase/icons/default';
|
|
13
|
-
import { L as Loader } from '../
|
|
13
|
+
import { L as Loader } from '../Loader_es_ByhTIMxS.js';
|
|
14
14
|
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
15
15
|
import 'react-inlinesvg';
|
|
16
16
|
import '../hoc/urlWithAssetPrefix.js';
|
|
@@ -28,7 +28,7 @@ import 'react-responsive';
|
|
|
28
28
|
import '../utils/setViewportProperty.js';
|
|
29
29
|
import '../hooks.js';
|
|
30
30
|
import '../hooks/useStyles/styleAttributes.js';
|
|
31
|
-
import '../
|
|
31
|
+
import '../Link_es_XiqbdwLp.js';
|
|
32
32
|
import 'lodash/castArray';
|
|
33
33
|
|
|
34
34
|
// interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
@@ -48,20 +48,20 @@ var SelectLoadingMessage = function (props) {
|
|
|
48
48
|
|
|
49
49
|
var selectAppearanceDefault = {
|
|
50
50
|
defaultPrimary: {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
fill: 'surfaceSecondary',
|
|
52
|
+
fillHover: 'surfaceTertiary',
|
|
53
53
|
optionFillDisabled: 'surfaceSecondary',
|
|
54
54
|
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
55
|
+
borderColor: 'surfaceBorderTertiary',
|
|
56
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
57
|
+
elevation: 8,
|
|
55
58
|
badgeAppearance: 'accent',
|
|
56
59
|
clearIconFill: 'surfaceItemQuaternary',
|
|
57
60
|
dropdownIconFill: 'surfaceItemQuaternary',
|
|
58
61
|
groupFill: 'surfaceSecondary',
|
|
59
62
|
groupTextColor: 'surfaceTextPrimary',
|
|
60
63
|
groupTextWeight: '600',
|
|
61
|
-
inputBorderColor: 'surfaceBorderTertiary',
|
|
62
|
-
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
63
64
|
inputCaretColor: 'accentPrimary',
|
|
64
|
-
inputFill: 'surfaceSecondary',
|
|
65
65
|
inputTextColor: 'surfaceTextPrimary',
|
|
66
66
|
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
67
67
|
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
@@ -88,7 +88,6 @@ var selectAppearanceDefault = {
|
|
|
88
88
|
var selectAppearanceDisabled = {
|
|
89
89
|
disabledPrimary: {
|
|
90
90
|
elevation: 8,
|
|
91
|
-
errorInputBorderColor: 'errorBorderPrimary',
|
|
92
91
|
badgeAppearance: 'accent',
|
|
93
92
|
clearIconFill: 'surfaceItemDisabled',
|
|
94
93
|
dropdownIconFill: 'surfaceItemDisabled',
|
|
@@ -118,30 +117,38 @@ var selectAppearanceDisabled = {
|
|
|
118
117
|
|
|
119
118
|
var selectAppearanceError = {
|
|
120
119
|
errorPrimary: {
|
|
120
|
+
fill: 'errorTertiary',
|
|
121
|
+
fillHover: 'errorTertiary',
|
|
122
|
+
optionFillDisabled: 'surfaceSecondary',
|
|
123
|
+
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
124
|
+
borderColor: 'surfaceBorderTertiary',
|
|
125
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
121
126
|
elevation: 8,
|
|
122
|
-
errorInputBorderColor: 'errorBorderPrimary',
|
|
123
127
|
badgeAppearance: 'accent',
|
|
124
|
-
clearIconFill: '
|
|
125
|
-
dropdownIconFill: '
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
inputBorderColorHover: 'surfaceBorderQuaternary',
|
|
128
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
129
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
130
|
+
groupFill: 'surfaceSecondary',
|
|
131
|
+
groupTextColor: 'surfaceTextPrimary',
|
|
132
|
+
groupTextWeight: '600',
|
|
130
133
|
inputCaretColor: 'accentPrimary',
|
|
131
|
-
inputFill: 'errorTertiary',
|
|
132
|
-
inputShape: 'rounded',
|
|
133
134
|
inputTextColor: 'surfaceTextPrimary',
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
136
|
+
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
137
|
+
menuFill: 'surfacePrimary',
|
|
138
|
+
multipleItemFill: 'accentPrimary',
|
|
139
|
+
multipleItemFillHover: 'accentSecondary',
|
|
140
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
141
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
138
142
|
multipleTextColor: 'accentTextPrimary',
|
|
139
143
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
140
144
|
optionBorder: 'none',
|
|
141
145
|
optionFill: 'surfacePrimary',
|
|
146
|
+
optionFillActive: 'accentPrimary',
|
|
147
|
+
optionFillActiveHover: 'accentSecondary',
|
|
142
148
|
optionFillHover: 'surfaceSecondary',
|
|
143
|
-
|
|
149
|
+
optionSelectedIconFillIcon: 'successItemPrimary',
|
|
144
150
|
optionTextColor: 'surfaceTextPrimary',
|
|
151
|
+
optionTextColorActive: 'accentTextPrimary',
|
|
145
152
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
146
153
|
requiredInputBorderColor: 'warningBorderPrimary',
|
|
147
154
|
},
|
|
@@ -149,30 +156,38 @@ var selectAppearanceError = {
|
|
|
149
156
|
|
|
150
157
|
var selectAppearanceRequire = {
|
|
151
158
|
requirePrimary: {
|
|
159
|
+
fill: 'warningTertiary',
|
|
160
|
+
fillHover: 'warningTertiary',
|
|
161
|
+
optionFillDisabled: 'surfaceSecondary',
|
|
162
|
+
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
163
|
+
borderColor: 'surfaceBorderTertiary',
|
|
164
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
152
165
|
elevation: 8,
|
|
153
|
-
errorInputBorderColor: 'errorBorderPrimary',
|
|
154
166
|
badgeAppearance: 'accent',
|
|
155
|
-
clearIconFill: '
|
|
156
|
-
dropdownIconFill: '
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
inputCaretColor: 'secondaryItemPrimary',
|
|
162
|
-
inputFill: 'warningTertiary',
|
|
163
|
-
inputShape: 'rounded',
|
|
167
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
168
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
169
|
+
groupFill: 'surfaceSecondary',
|
|
170
|
+
groupTextColor: 'surfaceTextPrimary',
|
|
171
|
+
groupTextWeight: '600',
|
|
172
|
+
inputCaretColor: 'accentPrimary',
|
|
164
173
|
inputTextColor: 'surfaceTextPrimary',
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
175
|
+
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
176
|
+
menuFill: 'surfacePrimary',
|
|
177
|
+
multipleItemFill: 'accentPrimary',
|
|
178
|
+
multipleItemFillHover: 'accentSecondary',
|
|
179
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
180
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
181
|
+
multipleTextColor: 'accentTextPrimary',
|
|
170
182
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
171
183
|
optionBorder: 'none',
|
|
172
184
|
optionFill: 'surfacePrimary',
|
|
185
|
+
optionFillActive: 'accentPrimary',
|
|
186
|
+
optionFillActiveHover: 'accentSecondary',
|
|
173
187
|
optionFillHover: 'surfaceSecondary',
|
|
174
|
-
|
|
188
|
+
optionSelectedIconFillIcon: 'successItemPrimary',
|
|
175
189
|
optionTextColor: 'surfaceTextPrimary',
|
|
190
|
+
optionTextColorActive: 'accentTextPrimary',
|
|
176
191
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
177
192
|
requiredInputBorderColor: 'warningBorderPrimary',
|
|
178
193
|
},
|
|
@@ -182,21 +197,21 @@ var selectAppearanceShape = {
|
|
|
182
197
|
rounded: {
|
|
183
198
|
shape: 'rounded',
|
|
184
199
|
},
|
|
185
|
-
|
|
186
|
-
shape: 'rounded',
|
|
187
|
-
shapeStrength: '0_5m',
|
|
188
|
-
},
|
|
189
|
-
roundedM: {
|
|
200
|
+
roundedXL: {
|
|
190
201
|
shape: 'rounded',
|
|
191
|
-
shapeStrength: '
|
|
202
|
+
shapeStrength: '2m',
|
|
192
203
|
},
|
|
193
204
|
roundedL: {
|
|
194
205
|
shape: 'rounded',
|
|
195
206
|
shapeStrength: '1_5m',
|
|
196
207
|
},
|
|
197
|
-
|
|
208
|
+
roundedM: {
|
|
198
209
|
shape: 'rounded',
|
|
199
|
-
shapeStrength: '
|
|
210
|
+
shapeStrength: '1m',
|
|
211
|
+
},
|
|
212
|
+
roundedS: {
|
|
213
|
+
shape: 'rounded',
|
|
214
|
+
shapeStrength: '0_5m',
|
|
200
215
|
},
|
|
201
216
|
};
|
|
202
217
|
|
|
@@ -216,6 +231,7 @@ var selectAppearanceSize = {
|
|
|
216
231
|
multipleItemIcon: icons16.Action.Close,
|
|
217
232
|
multipleItemTextSize: 's',
|
|
218
233
|
noOptionsTextSize: 's',
|
|
234
|
+
optionSelectedIcon: icons16.Form.Check,
|
|
219
235
|
optionTextSize: 'm',
|
|
220
236
|
placeholderTextSize: 'm',
|
|
221
237
|
},
|
|
@@ -234,6 +250,7 @@ var selectAppearanceSize = {
|
|
|
234
250
|
multipleItemIcon: icons16.Action.Close,
|
|
235
251
|
multipleItemTextSize: 's',
|
|
236
252
|
noOptionsTextSize: 'm',
|
|
253
|
+
optionSelectedIcon: icons16.Form.Check,
|
|
237
254
|
optionTextSize: 'm',
|
|
238
255
|
placeholderTextSize: 'm',
|
|
239
256
|
},
|
|
@@ -252,7 +269,7 @@ var selectAppearanceSize = {
|
|
|
252
269
|
multipleItemIcon: icons14.Action.Close,
|
|
253
270
|
multipleItemTextSize: 'xs ',
|
|
254
271
|
noOptionsTextSize: 'm',
|
|
255
|
-
optionSelectedIcon: icons14.
|
|
272
|
+
optionSelectedIcon: icons14.Form.Check,
|
|
256
273
|
optionTextSize: 'm',
|
|
257
274
|
placeholderTextSize: 'm',
|
|
258
275
|
},
|
|
@@ -271,6 +288,7 @@ var selectAppearanceSize = {
|
|
|
271
288
|
multipleItemIcon: icons14.Action.Close,
|
|
272
289
|
multipleItemTextSize: 'xs ',
|
|
273
290
|
noOptionsTextSize: 's',
|
|
291
|
+
optionSelectedIcon: icons14.Form.Check,
|
|
274
292
|
optionTextSize: 's',
|
|
275
293
|
placeholderTextSize: 's',
|
|
276
294
|
},
|
|
@@ -289,6 +307,7 @@ var selectAppearanceSize = {
|
|
|
289
307
|
multipleItemIcon: icons12.Action.Close,
|
|
290
308
|
multipleItemTextSize: 'xxs',
|
|
291
309
|
noOptionsTextSize: 'xs',
|
|
310
|
+
// optionSelectedIcon: icons12.Form.Check,
|
|
292
311
|
optionTextSize: 'xs',
|
|
293
312
|
placeholderTextSize: 'xs',
|
|
294
313
|
},
|
|
@@ -305,6 +324,7 @@ var selectAppearanceSize = {
|
|
|
305
324
|
inputTextSize: 'xs',
|
|
306
325
|
menuItemSize: 'l',
|
|
307
326
|
multipleItemIcon: icons12.Action.Close,
|
|
327
|
+
// optionSelectedIcon: icons12.Form.Check,
|
|
308
328
|
multipleItemTextSize: 'xxs',
|
|
309
329
|
noOptionsTextSize: 'xs',
|
|
310
330
|
optionTextSize: 'xs',
|
|
@@ -314,48 +334,55 @@ var selectAppearanceSize = {
|
|
|
314
334
|
|
|
315
335
|
var selectAppearanceStyle = {
|
|
316
336
|
solid: {
|
|
317
|
-
|
|
318
|
-
|
|
337
|
+
borderColor: 'none',
|
|
338
|
+
borderColorHover: 'none',
|
|
319
339
|
},
|
|
320
340
|
outlined: {
|
|
321
341
|
fill: 'none',
|
|
342
|
+
fillHover: 'none',
|
|
322
343
|
},
|
|
323
344
|
full: {},
|
|
324
345
|
ghost: {
|
|
325
346
|
fill: 'none',
|
|
326
|
-
|
|
327
|
-
|
|
347
|
+
borderColor: 'none',
|
|
348
|
+
borderColorHover: 'none',
|
|
328
349
|
},
|
|
329
350
|
};
|
|
330
351
|
|
|
331
352
|
var selectAppearanceSuccess = {
|
|
332
353
|
successPrimary: {
|
|
354
|
+
fill: 'successTertiary',
|
|
355
|
+
fillHover: 'successTertiary',
|
|
356
|
+
optionFillDisabled: 'surfaceSecondary',
|
|
357
|
+
optionTextColorDisabled: 'surfaceTextQuaternary',
|
|
358
|
+
borderColor: 'surfaceBorderTertiary',
|
|
359
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
333
360
|
elevation: 8,
|
|
334
|
-
errorInputBorderColor: 'errorBorderPrimary',
|
|
335
361
|
badgeAppearance: 'accent',
|
|
336
|
-
clearIconFill: '
|
|
337
|
-
dropdownIconFill: '
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
inputCaretColor: 'secondaryItemPrimary',
|
|
343
|
-
inputFill: 'successTertiary',
|
|
344
|
-
inputShape: 'rounded',
|
|
362
|
+
clearIconFill: 'surfaceItemQuaternary',
|
|
363
|
+
dropdownIconFill: 'surfaceItemQuaternary',
|
|
364
|
+
groupFill: 'surfaceSecondary',
|
|
365
|
+
groupTextColor: 'surfaceTextPrimary',
|
|
366
|
+
groupTextWeight: '600',
|
|
367
|
+
inputCaretColor: 'accentPrimary',
|
|
345
368
|
inputTextColor: 'surfaceTextPrimary',
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
369
|
+
loaderAppearance: 'accentPrimary sizeS ghost',
|
|
370
|
+
loadingMessageTextColor: 'surfaceTextPrimary',
|
|
371
|
+
menuFill: 'surfacePrimary',
|
|
372
|
+
multipleItemFill: 'accentPrimary',
|
|
373
|
+
multipleItemFillHover: 'accentSecondary',
|
|
374
|
+
multipleItemIconFill: 'accentItemPrimary',
|
|
375
|
+
multipleItemTextColor: 'accentTextPrimary',
|
|
376
|
+
multipleTextColor: 'accentTextPrimary',
|
|
352
377
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
353
378
|
optionBorder: 'none',
|
|
354
379
|
optionFill: 'surfacePrimary',
|
|
380
|
+
optionFillActive: 'accentPrimary',
|
|
381
|
+
optionFillActiveHover: 'accentSecondary',
|
|
355
382
|
optionFillHover: 'surfaceSecondary',
|
|
356
|
-
|
|
383
|
+
optionSelectedIconFillIcon: 'successItemPrimary',
|
|
357
384
|
optionTextColor: 'surfaceTextPrimary',
|
|
358
|
-
|
|
385
|
+
optionTextColorActive: 'accentTextPrimary',
|
|
359
386
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
360
387
|
requiredInputBorderColor: 'warningBorderPrimary',
|
|
361
388
|
},
|
|
@@ -364,9 +391,8 @@ var selectAppearanceSuccess = {
|
|
|
364
391
|
var selectAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, selectAppearanceRequire), selectAppearanceDefault), selectAppearanceDisabled), selectAppearanceSuccess), selectAppearanceSize), selectAppearanceError), selectAppearanceShape), selectAppearanceStyle);
|
|
365
392
|
|
|
366
393
|
var SelectControl = function (props) {
|
|
367
|
-
var _a = props.selectProps,
|
|
368
|
-
return (jsxs(React.Fragment, { children: [before, jsx(components.Control, __assign({}, props, { className: clsx('select__control'
|
|
369
|
-
"border-color_hover_".concat(inputBorderColorHover)) })), after] }));
|
|
394
|
+
var _a = props.selectProps, before = _a.before, after = _a.after;
|
|
395
|
+
return (jsxs(React.Fragment, { children: [before, jsx(components.Control, __assign({}, props, { className: clsx('select__control') })), after] }));
|
|
370
396
|
};
|
|
371
397
|
|
|
372
398
|
// For use memo need to check "DropdownIndicator" props
|
|
@@ -520,10 +546,10 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
520
546
|
},
|
|
521
547
|
});
|
|
522
548
|
}, [minWidth, width]);
|
|
523
|
-
var appearanceConfig = useAppearanceConfig(appearance, selectConfig);
|
|
549
|
+
var appearanceConfig = useAppearanceConfig(appearance, selectConfig, isDisabled);
|
|
524
550
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
525
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
526
|
-
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), ref: selectRef,
|
|
551
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, optionFillActiveDisabledClass = propsGenerator.optionFillActiveDisabledClass, optionFillDisabledClass = propsGenerator.optionFillDisabledClass, optionTextColorDisabled = propsGenerator.optionTextColorDisabled, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIcon = propsGenerator.clearIcon, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIcon = propsGenerator.dropdownIcon, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, groupFillClass = propsGenerator.groupFillClass, groupTextColorClass = propsGenerator.groupTextColorClass, groupTextSizeClass = propsGenerator.groupTextSizeClass, groupTextWeightClass = propsGenerator.groupTextWeightClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, loadingMessageTextColor = propsGenerator.loadingMessageTextColor, loadingMessageTextSize = propsGenerator.loadingMessageTextSize, menuFillClass = propsGenerator.menuFillClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillActiveClass = propsGenerator.optionFillActiveClass, optionFillActiveHoverClass = propsGenerator.optionFillActiveHoverClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionSelectedIcon = propsGenerator.optionSelectedIcon, optionSelectedIconFillIcon = propsGenerator.optionSelectedIconFillIcon, optionSelectedIconSize = propsGenerator.optionSelectedIconSize, optionSelectedIconSrc = propsGenerator.optionSelectedIconSrc, optionTextColorActiveClass = propsGenerator.optionTextColorActiveClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
552
|
+
return (jsx(SelectComponent, { className: clsx(className, 'select', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), ref: selectRef, isDisabled: isDisabled, optionFillActiveDisabledClass: optionFillActiveDisabledClass, optionFillDisabled: optionFillDisabledClass, optionTextColorDisabled: optionTextColorDisabled, elevation: elevation, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
527
553
|
IndicatorSeparator: function () { return null; },
|
|
528
554
|
ClearIndicator: SelectClearIndicator,
|
|
529
555
|
Control: SelectControl,
|
|
@@ -542,7 +568,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
542
568
|
Placeholder: SelectPlaceholder,
|
|
543
569
|
SingleValue: SelectSingleValue,
|
|
544
570
|
ValueContainer: SelectValueContainer,
|
|
545
|
-
}, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore,
|
|
571
|
+
}, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, filterOption: filterOption, groupFill: groupFillClass, groupTextColor: groupTextColorClass, groupTextSize: groupTextSizeClass, groupTextWeight: groupTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputShape: shapeClass, inputShapeStrength: shapeStrengthClass, inputTextColor: inputTextColorClass, inputTextSize: inputTextSizeClass, instanceId: instanceId, loaderAppearance: loaderAppearance, loadingMessageText: loadingMessageText, loadingMessageTextColor: loadingMessageTextColor, loadingMessageTextSize: loadingMessageTextSize, menuAfter: menuAfter, menuBefore: menuBefore, menuFill: menuFillClass, menuIsOpen: menuIsOpen, menuItemSize: menuItemSize, menuShape: shapeClass, menuShapeStrength: shapeStrengthClass, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemSize: sizeClass, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass && "border-color_".concat(optionBorderClass), noOptionBorderType: optionBorderTypeClass && "border_type_".concat(optionBorderTypeClass), noOptionsFill: optionFillClass && "fill_".concat(optionFillClass), noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText, noOptionsTextColor: noOptionsTextColorClass, noOptionsTextSize: noOptionsTextSizeClass, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, optionFill: optionFillClass, optionFillActive: optionFillActiveClass, optionFillActiveHover: optionFillActiveHoverClass, optionFillHover: optionFillHoverClass, options: options, optionSelectedIcon: optionSelectedIcon, optionSelectedIconFillIcon: optionSelectedIconFillIcon, optionSelectedIconSize: optionSelectedIconSize, optionSelectedIconSrc: optionSelectedIconSrc, optionShape: shapeClass, optionShapeStrength: shapeStrengthClass, optionTextColor: optionTextColorClass, optionTextColorActive: optionTextColorActiveClass, optionTextSize: optionTextSizeClass, placeholder: placeholder, placeholderTextColor: placeholderTextColor, placeholderTextSize: placeholderTextSize, set: set, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, before: before, after: after, openMenuOnClick: openMenuOnClick, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, isClearable: isClearable, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, onChange: onChange, onInputChange: onInputChange }));
|
|
546
572
|
});
|
|
547
573
|
|
|
548
574
|
export { SelectContainer as Select, SelectClearIndicator, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig };
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Icon_es_Cstv1LFr.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -23,8 +23,8 @@ import 'react-inlinesvg';
|
|
|
23
23
|
import '../hoc/urlWithAssetPrefix.js';
|
|
24
24
|
import '../context/UrlAssetPrefix.js';
|
|
25
25
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
26
|
+
import '../Link_es_XiqbdwLp.js';
|
|
27
|
+
import '../Text_es_CwV9rjFD.js';
|
|
28
28
|
|
|
29
29
|
function Swiper(props) {
|
|
30
30
|
var id = props.id, className = props.className, direction = props.direction, title = props.title, titleAfter = props.titleAfter, titleSize = props.titleSize, titleTextColor = props.titleTextColor, titleWeight = props.titleWeight, setNextBtnDisabled = props.setNextBtnDisabled, setPrevBtnDisabled = props.setPrevBtnDisabled, _a = props.activeSlideIndex, activeSlideIndex = _a === void 0 ? 0 : _a, allowTouchMove = props.allowTouchMove, autoHeight = props.autoHeight, breakpoints = props.breakpoints, forwardedRef = props.forwardedRef, // https://github.com/vercel/next.js/issues/4957
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { T as Text } from '../
|
|
6
|
+
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
7
7
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -119,7 +119,7 @@ var switchConfig = {
|
|
|
119
119
|
};
|
|
120
120
|
var Switch = React.forwardRef(function Switch(props, ref) {
|
|
121
121
|
var id = props.id, className = props.className, appearance = props.appearance, _a = props.align, align = _a === void 0 ? 'left' : _a, title = props.title, desc = props.desc, isDisabled = props.isDisabled, isActive = props.isActive, onChange = props.onChange;
|
|
122
|
-
var appearanceConfig = useAppearanceConfig(appearance, switchConfig);
|
|
122
|
+
var appearanceConfig = useAppearanceConfig(appearance, switchConfig, isDisabled);
|
|
123
123
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
124
124
|
var size = propsGenerator.size, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, fillToggleActiveClass = propsGenerator.fillToggleActiveClass, fillToggleActiveHoverClass = propsGenerator.fillToggleActiveHoverClass, fillToggleClass = propsGenerator.fillToggleClass, fillToggleHoverClass = propsGenerator.fillToggleHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
|
|
125
125
|
return (jsxs("div", { className: clsx('switch', className, align && "switch_align_".concat(align), size && "switch_size_".concat(size)), children: [jsxs("div", { className: "switch__wrapper", children: [title && (jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc }))] }), jsxs("div", { className: 'switch__item', children: [jsx("input", { id: id, className: "switch__checkbox", type: "checkbox",
|
package/dist/components/Tab.js
CHANGED
|
@@ -5,10 +5,10 @@ import { useActiveClasses } from '../hooks/useActiveClasses/useActiveClasses.js'
|
|
|
5
5
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Badge, I as Icon } from '../
|
|
8
|
+
import { B as Badge, I as Icon } from '../Icon_es_Cstv1LFr.js';
|
|
9
9
|
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
10
|
-
import { L as Link } from '../
|
|
11
|
-
import { T as Text } from '../
|
|
10
|
+
import { L as Link } from '../Link_es_XiqbdwLp.js';
|
|
11
|
+
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
12
12
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
13
13
|
import '../hooks/useActiveClasses/useActiveClasses.helpers.js';
|
|
14
14
|
import 'lodash/camelCase';
|
|
@@ -219,7 +219,7 @@ var tabConfig = {
|
|
|
219
219
|
};
|
|
220
220
|
function Tab(props) {
|
|
221
221
|
var dataTour = props.dataTour, className = props.className, appearance = props.appearance, label = props.label, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, badgeValue = props.badgeValue, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _b = props.isActive, isActive = _b === void 0 ? false : _b, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
222
|
-
var appearanceConfig = useAppearanceConfig(appearance, tabConfig);
|
|
222
|
+
var appearanceConfig = useAppearanceConfig(appearance, tabConfig, isDisabled);
|
|
223
223
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
224
224
|
var rootClasses = useActiveClasses({
|
|
225
225
|
isDisabled: isDisabled,
|
package/dist/components/Text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Text, a as textAppearance, t as textConfig } from '../
|
|
1
|
+
export { T as Text, a as textAppearance, t as textConfig } from '../Text_es_CwV9rjFD.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
@@ -20,24 +20,26 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
20
20
|
var textareaAppearanceDefault = {
|
|
21
21
|
defaultPrimary: {
|
|
22
22
|
fill: 'surfaceSecondary',
|
|
23
|
+
fillHover: 'surfaceTertiary',
|
|
23
24
|
borderColor: 'surfaceBorderTertiary',
|
|
24
|
-
|
|
25
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
25
26
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
26
27
|
iconClearFill: 'surfaceItemPrimary',
|
|
27
28
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
28
29
|
},
|
|
29
30
|
defaultSecondary: {
|
|
30
31
|
fill: 'surfacePrimary',
|
|
32
|
+
fillHover: 'surfaceTertiary',
|
|
31
33
|
borderColor: 'surfaceBorderTertiary',
|
|
32
|
-
|
|
34
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
33
35
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
34
36
|
iconClearFill: 'surfaceItemPrimary',
|
|
35
37
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
36
38
|
},
|
|
37
|
-
|
|
39
|
+
defaultTertiary: {
|
|
38
40
|
fill: 'surfacePrimary',
|
|
39
41
|
borderColor: 'surfaceBorderTertiary',
|
|
40
|
-
|
|
42
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
41
43
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
42
44
|
iconClearFill: 'surfaceItemPrimary',
|
|
43
45
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
@@ -45,7 +47,7 @@ var textareaAppearanceDefault = {
|
|
|
45
47
|
defaultQuaternary: {
|
|
46
48
|
fill: 'surfacePrimary',
|
|
47
49
|
borderColor: 'surfaceBorderTertiary',
|
|
48
|
-
|
|
50
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
49
51
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
50
52
|
iconClearFill: 'surfaceItemPrimary',
|
|
51
53
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
@@ -56,7 +58,7 @@ var textareaAppearanceDisabled = {
|
|
|
56
58
|
disabledPrimary: {
|
|
57
59
|
fill: 'surfaceDisabled',
|
|
58
60
|
borderColor: 'errorBorderQuaternary',
|
|
59
|
-
|
|
61
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
60
62
|
textColor: 'surfaceTextQuaternary',
|
|
61
63
|
iconBeforeFill: 'errorItemQuaternary',
|
|
62
64
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -65,7 +67,7 @@ var textareaAppearanceDisabled = {
|
|
|
65
67
|
disabledSecondary: {
|
|
66
68
|
fill: 'surfaceSecondary',
|
|
67
69
|
borderColor: 'surfaceBorderTertiary',
|
|
68
|
-
|
|
70
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
69
71
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
70
72
|
iconClearFill: 'surfaceItemPrimary',
|
|
71
73
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -76,7 +78,7 @@ var textareaAppearanceError = {
|
|
|
76
78
|
errorPrimary: {
|
|
77
79
|
fill: 'errorTertiary',
|
|
78
80
|
borderColor: 'errorBorderQuaternary',
|
|
79
|
-
|
|
81
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
80
82
|
textColor: 'surfaceTextPrimary',
|
|
81
83
|
iconBeforeFill: 'errorItemQuaternary',
|
|
82
84
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -85,7 +87,7 @@ var textareaAppearanceError = {
|
|
|
85
87
|
errorSecondary: {
|
|
86
88
|
fill: 'errorSecondary',
|
|
87
89
|
borderColor: 'errorBorderTertiary',
|
|
88
|
-
|
|
90
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
89
91
|
iconBeforeFill: 'errorItemQuaternary',
|
|
90
92
|
iconClearFill: 'errorItemPrimary',
|
|
91
93
|
placeholderTextColor: 'errorTextSecondary',
|
|
@@ -96,7 +98,7 @@ var textareaAppearanceRequire = {
|
|
|
96
98
|
requirePrimary: {
|
|
97
99
|
fill: 'warningTertiary',
|
|
98
100
|
borderColor: 'warningBorderQuaternary',
|
|
99
|
-
|
|
101
|
+
borderColorHover: 'warningBorderQuaternary',
|
|
100
102
|
textColor: 'surfaceTextPrimary',
|
|
101
103
|
iconBeforeFill: 'warningItemQuaternary',
|
|
102
104
|
iconClearFill: 'warningItemPrimary',
|
|
@@ -105,7 +107,7 @@ var textareaAppearanceRequire = {
|
|
|
105
107
|
requireSecondary: {
|
|
106
108
|
fill: 'surfaceSecondary',
|
|
107
109
|
borderColor: 'surfaceBorderTertiary',
|
|
108
|
-
|
|
110
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
109
111
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
110
112
|
iconClearFill: 'surfaceItemPrimary',
|
|
111
113
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -119,21 +121,21 @@ var textareaAppearanceShape = {
|
|
|
119
121
|
rounded: {
|
|
120
122
|
shape: 'rounded',
|
|
121
123
|
},
|
|
122
|
-
|
|
123
|
-
shape: 'rounded',
|
|
124
|
-
shapeStrength: '0_5m',
|
|
125
|
-
},
|
|
126
|
-
roundedM: {
|
|
124
|
+
roundedXL: {
|
|
127
125
|
shape: 'rounded',
|
|
128
|
-
shapeStrength: '
|
|
126
|
+
shapeStrength: '2m',
|
|
129
127
|
},
|
|
130
128
|
roundedL: {
|
|
131
129
|
shape: 'rounded',
|
|
132
130
|
shapeStrength: '1_5m',
|
|
133
131
|
},
|
|
134
|
-
|
|
132
|
+
roundedM: {
|
|
135
133
|
shape: 'rounded',
|
|
136
|
-
shapeStrength: '
|
|
134
|
+
shapeStrength: '1m',
|
|
135
|
+
},
|
|
136
|
+
roundedS: {
|
|
137
|
+
shape: 'rounded',
|
|
138
|
+
shapeStrength: '0_5m',
|
|
137
139
|
},
|
|
138
140
|
};
|
|
139
141
|
|
|
@@ -170,7 +172,8 @@ var textareaAppearanceSize = {
|
|
|
170
172
|
|
|
171
173
|
var textareaAppearanceStyle = {
|
|
172
174
|
solid: {
|
|
173
|
-
|
|
175
|
+
borderColor: 'none',
|
|
176
|
+
borderColorHover: 'none',
|
|
174
177
|
},
|
|
175
178
|
outlined: {
|
|
176
179
|
fill: 'none',
|
|
@@ -178,15 +181,17 @@ var textareaAppearanceStyle = {
|
|
|
178
181
|
full: {},
|
|
179
182
|
ghost: {
|
|
180
183
|
fill: 'none',
|
|
181
|
-
|
|
184
|
+
borderColor: 'none',
|
|
185
|
+
borderColorHover: 'none',
|
|
182
186
|
},
|
|
183
187
|
};
|
|
184
188
|
|
|
185
189
|
var textareaAppearanceSuccess = {
|
|
186
190
|
successPrimary: {
|
|
187
191
|
fill: 'successTertiary',
|
|
192
|
+
fillHover: 'successTertiary',
|
|
188
193
|
borderColor: 'successBorderQuaternary',
|
|
189
|
-
|
|
194
|
+
borderColorHover: 'successBorderQuaternary',
|
|
190
195
|
textColor: 'surfaceTextPrimary',
|
|
191
196
|
iconBeforeFill: 'successItemQuaternary',
|
|
192
197
|
iconClearFill: 'successItemPrimary',
|
|
@@ -195,7 +200,7 @@ var textareaAppearanceSuccess = {
|
|
|
195
200
|
successSecondary: {
|
|
196
201
|
fill: 'surfaceSecondary',
|
|
197
202
|
borderColor: 'surfaceBorderTertiary',
|
|
198
|
-
|
|
203
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
199
204
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
200
205
|
iconClearFill: 'surfaceItemPrimary',
|
|
201
206
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -212,10 +217,10 @@ var textareaConfig = {
|
|
|
212
217
|
};
|
|
213
218
|
function Textarea(props) {
|
|
214
219
|
var id = props.id, className = props.className, appearance = props.appearance, isDisabled = props.isDisabled, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
|
|
215
|
-
var appearanceConfig = useAppearanceConfig(appearance, textareaConfig);
|
|
220
|
+
var appearanceConfig = useAppearanceConfig(appearance, textareaConfig, isDisabled);
|
|
216
221
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
217
|
-
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
218
|
-
return (jsx("div", { className: clsx('textarea', className, sizeClass && "textarea_size_".concat(sizeClass)), children: jsx("textarea", { id: id, className: clsx('textarea__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), placeholderTextColorClass &&
|
|
222
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderHoverClass = propsGenerator.borderHoverClass, borderWidthClass = propsGenerator.borderWidthClass, textColorClass = propsGenerator.textColorClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
223
|
+
return (jsx("div", { className: clsx('textarea', className, sizeClass && "textarea_size_".concat(sizeClass)), children: jsx("textarea", { id: id, className: clsx('textarea__input', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderHoverClass && "border-color_hover_".concat(borderHoverClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), placeholderTextColorClass &&
|
|
219
224
|
"placeholder-text-color_".concat(placeholderTextColorClass), textSizeClass && "text_size_".concat(textSizeClass), textColorClass && "text-color_".concat(textColorClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass)), disabled: isDisabled && 'disabled', placeholder: placeholder, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }) }));
|
|
220
225
|
}
|
|
221
226
|
|