@itcase/ui 1.8.121 → 1.8.123
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_BKcQuqYV.js → Avatar_cjs_CLJnKU39.js} +3 -3
- package/dist/{Avatar_es_Cpn1PNmO.js → Avatar_es_BgN-fbOj.js} +3 -3
- package/dist/{Button_cjs_3BTD8Mlm.js → Button_cjs_Ce97psFT.js} +5 -5
- package/dist/{Button_es_B_k-SP92.js → Button_es_CZss7cXh.js} +5 -5
- package/dist/{ChipsGroup_cjs_DhoY9YjT.js → ChipsGroup_cjs_C8L3ZeD_.js} +1 -1
- package/dist/{ChipsGroup_es_Dg1GmJ-9.js → ChipsGroup_es_ayPPUwQ7.js} +1 -1
- package/dist/{DatePicker_cjs_BLkZB0S0.js → DatePicker_cjs_BzEtDAb8.js} +4 -4
- package/dist/{DatePicker_es_CKrgRUWu.js → DatePicker_es_DRyCMO0I.js} +4 -4
- package/dist/{DropdownItem_cjs_D3Mcbsxa.js → DropdownItem_cjs_Bhss6lyM.js} +1 -1
- package/dist/{DropdownItem_es_BUs02mjJ.js → DropdownItem_es_BXl6lPJx.js} +1 -1
- package/dist/{Icon_cjs_CUArL1z2.js → Icon_cjs_Cz6IyOkb.js} +2 -2
- package/dist/{Icon_es_CNrc90oI.js → Icon_es_BrwLifge.js} +2 -2
- package/dist/{Image_cjs_B6YlGx8G.js → Image_cjs_DRhhc66R.js} +2 -1
- package/dist/{Image_es_BvYo_cHH.js → Image_es_BpMidmve.js} +2 -1
- package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DRPK_RHK.js} +3 -3
- package/dist/{Input_es_CiDHjDqJ.js → Input_es_Cv5nEb_n.js} +3 -3
- package/dist/{Label_cjs_BUEGAnsq.js → Label_cjs_DMoaOoHi.js} +1 -1
- package/dist/{Label_es_I01RN9hv.js → Label_es_SULlg9bL.js} +1 -1
- package/dist/{Loader_cjs_Cme6Hi0B.js → Loader_cjs_D3lnxPlI.js} +4 -0
- package/dist/{Loader_es_ByhTIMxS.js → Loader_es_BUSqFrCd.js} +4 -0
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +3 -3
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +1 -1
- package/dist/cjs/components/DatePeriod.js +10 -10
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Grid.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +89 -67
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +3 -2
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response/img.js +8 -2
- package/dist/cjs/components/Response.js +131 -30
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +6 -6
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +30 -46
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +3 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +1 -1
- package/dist/components/DatePeriod.js +10 -10
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Grid.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Image.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +89 -67
- package/dist/components/Label.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +3 -2
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response/img.js +8 -2
- package/dist/components/Response.js +132 -32
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +6 -6
- package/dist/components/Select.js +2 -2
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +30 -46
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Cell/Cell.css +1 -2
- package/dist/css/components/Checkmark/Checkmark.css +2 -0
- package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
- package/dist/css/components/Input/Input.css +0 -8
- package/dist/css/components/InputPassword/InputPassword.css +34 -43
- package/dist/css/components/MenuItem/MenuItem.css +28 -15
- package/dist/css/components/Tooltip/Tooltip.css +1 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
- package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
- package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
- package/dist/types/components/Response/Response.constant.d.ts +76 -0
- package/dist/types/components/Response/appearance/{responceConfirm.d.ts → responseConfirm.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
- package/dist/types/components/Response/appearance/{responceEmpty.d.ts → responseEmpty.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
- package/dist/types/components/Response/appearance/{responceFail.d.ts → responseFail.d.ts} +1 -0
- package/dist/types/components/Response/appearance/{responceNothingFound.d.ts → responseNothingFound.d.ts} +1 -0
- package/dist/types/components/Response/appearance/{responceRefresh.d.ts → responseRefresh.d.ts} +1 -0
- package/dist/types/components/Response/appearance/responseStyle.d.ts +14 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
- package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
- package/dist/types/components/Response/img/index.d.ts +2 -0
- package/dist/types/components/Response/index.d.ts +2 -1
- package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
- package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
- package/package.json +13 -13
package/dist/components/Tab.js
CHANGED
|
@@ -5,7 +5,7 @@ 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_BrwLifge.js';
|
|
9
9
|
import { D as Divider } from '../Divider_es_CCLBFIx6.js';
|
|
10
10
|
import { L as Link } from '../Link_es_XiqbdwLp.js';
|
|
11
11
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
@@ -45,56 +45,42 @@ var tabAppearanceSize = {
|
|
|
45
45
|
sizeXXL: {
|
|
46
46
|
size: 'xxl',
|
|
47
47
|
labelTextSize: 's',
|
|
48
|
-
badgeAppearanceSize: '
|
|
49
|
-
badgeSize: 'xs',
|
|
50
|
-
badgeTextSize: 'xs',
|
|
48
|
+
badgeAppearanceSize: 'sizeXS',
|
|
51
49
|
dividerSize: 's',
|
|
52
50
|
},
|
|
53
51
|
sizeXL: {
|
|
54
52
|
size: 'xl',
|
|
55
53
|
labelTextSize: 's',
|
|
56
|
-
badgeAppearanceSize: '
|
|
57
|
-
badgeSize: 'xs',
|
|
58
|
-
badgeTextSize: 'xs',
|
|
54
|
+
badgeAppearanceSize: 'sizeXS',
|
|
59
55
|
dividerSize: 's',
|
|
60
56
|
},
|
|
61
57
|
sizeL: {
|
|
62
58
|
size: 'l',
|
|
63
59
|
labelTextSize: 's',
|
|
64
|
-
badgeAppearanceSize: '
|
|
65
|
-
badgeSize: 'xs',
|
|
66
|
-
badgeTextSize: 'xs',
|
|
60
|
+
badgeAppearanceSize: 'sizeXS',
|
|
67
61
|
dividerSize: 's',
|
|
68
62
|
},
|
|
69
63
|
sizeM: {
|
|
70
64
|
size: 'm',
|
|
71
65
|
labelTextSize: 's',
|
|
72
|
-
badgeAppearanceSize: '
|
|
73
|
-
badgeSize: 'xs',
|
|
74
|
-
badgeTextSize: 'xs',
|
|
66
|
+
badgeAppearanceSize: 'sizeXS',
|
|
75
67
|
dividerSize: 's',
|
|
76
68
|
},
|
|
77
69
|
sizeS: {
|
|
78
70
|
size: 's',
|
|
79
71
|
labelTextSize: 's',
|
|
80
|
-
badgeAppearanceSize: '
|
|
81
|
-
badgeSize: 'xs',
|
|
82
|
-
badgeTextSize: 'xs',
|
|
72
|
+
badgeAppearanceSize: 'sizeXS',
|
|
83
73
|
dividerSize: 's',
|
|
84
74
|
},
|
|
85
75
|
sizeXS: {
|
|
86
76
|
size: 'xs',
|
|
87
77
|
labelTextSize: 'xs',
|
|
88
|
-
badgeAppearanceSize: '
|
|
89
|
-
badgeSize: 'xs',
|
|
90
|
-
badgeTextSize: 'xs',
|
|
78
|
+
badgeAppearanceSize: 'sizeXS',
|
|
91
79
|
},
|
|
92
80
|
sizeXXS: {
|
|
93
81
|
size: 'xxs',
|
|
94
82
|
labelTextSize: 'xs',
|
|
95
|
-
badgeAppearanceSize: '
|
|
96
|
-
badgeSize: 'xxs',
|
|
97
|
-
badgeTextSize: 'xxs',
|
|
83
|
+
badgeAppearanceSize: 'sizeXXS',
|
|
98
84
|
dividerSize: 's',
|
|
99
85
|
},
|
|
100
86
|
};
|
|
@@ -138,12 +124,26 @@ var tabAppearanceSurface = {
|
|
|
138
124
|
fillHover: 'surfaceSecondary',
|
|
139
125
|
labelTextColor: 'surfaceTextPrimary',
|
|
140
126
|
labelTextColorActive: 'surfaceTextAccent',
|
|
127
|
+
borderColor: 'surfaceBorderPrimary',
|
|
128
|
+
borderColorActive: 'surfaceBorderPrimary',
|
|
129
|
+
badgeAppearance: 'accentPrimary solid circular',
|
|
130
|
+
dividerFillActive: 'accentPrimary',
|
|
141
131
|
dividerFillDisabled: 'accentDisabled',
|
|
132
|
+
iconFillIcon: 'surfaceItemPrimary',
|
|
133
|
+
},
|
|
134
|
+
surfaceQuaternary: {
|
|
135
|
+
fill: 'surfaceQuaternary',
|
|
136
|
+
fillActive: 'accentPrimary',
|
|
137
|
+
fillActiveHover: 'surfaceTertiary',
|
|
138
|
+
fillDisabled: 'surfaceDisabled',
|
|
139
|
+
fillHover: 'surfaceQuaternary',
|
|
140
|
+
labelTextColor: 'surfaceTextInverse',
|
|
141
|
+
labelTextColorActive: 'surfaceTextInverse',
|
|
142
142
|
borderColor: 'surfaceBorderPrimary',
|
|
143
143
|
borderColorActive: 'surfaceBorderPrimary',
|
|
144
|
-
badgeAppearance: 'accentPrimary',
|
|
145
144
|
badgeAppearance: 'accentPrimary solid circular',
|
|
146
145
|
dividerFillActive: 'accentPrimary',
|
|
146
|
+
dividerFillDisabled: 'accentDisabled',
|
|
147
147
|
iconFillIcon: 'surfaceItemPrimary',
|
|
148
148
|
},
|
|
149
149
|
surfaceSecondary: {
|
|
@@ -154,12 +154,11 @@ var tabAppearanceSurface = {
|
|
|
154
154
|
fillHover: 'surfaceTertiary',
|
|
155
155
|
labelTextColor: 'surfaceTextPrimary',
|
|
156
156
|
labelTextColorActive: 'surfaceTextAccent',
|
|
157
|
-
dividerFillDisabled: 'accentDisabled',
|
|
158
157
|
borderColor: 'surfaceBorderPrimary',
|
|
159
158
|
borderColorActive: 'surfaceBorderPrimary',
|
|
160
|
-
badgeAppearance: 'accentPrimary',
|
|
161
159
|
badgeAppearance: 'accentPrimary solid circular',
|
|
162
160
|
dividerFillActive: 'accentPrimary',
|
|
161
|
+
dividerFillDisabled: 'accentDisabled',
|
|
163
162
|
iconFillIcon: 'surfaceItemPrimary',
|
|
164
163
|
},
|
|
165
164
|
surfaceTertiary: {
|
|
@@ -170,28 +169,11 @@ var tabAppearanceSurface = {
|
|
|
170
169
|
fillHover: 'surfaceSecondary',
|
|
171
170
|
labelTextColor: 'surfaceTextPrimary',
|
|
172
171
|
labelTextColorActive: 'surfaceTextAccent',
|
|
173
|
-
dividerFillDisabled: 'accentDisabled',
|
|
174
172
|
borderColor: 'surfaceBorderPrimary',
|
|
175
173
|
borderColorActive: 'surfaceBorderPrimary',
|
|
176
|
-
badgeAppearance: 'accentPrimary',
|
|
177
174
|
badgeAppearance: 'accentPrimary solid circular',
|
|
178
175
|
dividerFillActive: 'accentPrimary',
|
|
179
|
-
iconFillIcon: 'surfaceItemPrimary',
|
|
180
|
-
},
|
|
181
|
-
surfaceQuaternary: {
|
|
182
|
-
fill: 'surfaceQuaternary',
|
|
183
|
-
fillActive: 'accentPrimary',
|
|
184
|
-
fillActiveHover: 'surfaceTertiary',
|
|
185
|
-
fillDisabled: 'surfaceDisabled',
|
|
186
|
-
fillHover: 'surfaceQuaternary',
|
|
187
|
-
labelTextColor: 'surfaceTextInverse',
|
|
188
|
-
labelTextColorActive: 'surfaceTextInverse',
|
|
189
176
|
dividerFillDisabled: 'accentDisabled',
|
|
190
|
-
borderColor: 'surfaceBorderPrimary',
|
|
191
|
-
borderColorActive: 'surfaceBorderPrimary',
|
|
192
|
-
badgeAppearance: 'accentPrimary',
|
|
193
|
-
badgeAppearance: 'accentPrimary solid circular',
|
|
194
|
-
dividerFillActive: 'accentPrimary',
|
|
195
177
|
iconFillIcon: 'surfaceItemPrimary',
|
|
196
178
|
},
|
|
197
179
|
};
|
|
@@ -218,18 +200,20 @@ var tabConfig = {
|
|
|
218
200
|
},
|
|
219
201
|
};
|
|
220
202
|
function Tab(props) {
|
|
221
|
-
var
|
|
203
|
+
var appearance = props.appearance, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, label = props.label, badgeValue = props.badgeValue, href = props.href, link = props.link, rel = props.rel, target = props.target, before = props.before, after = props.after, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, isSkeleton = props.isSkeleton, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
222
204
|
var appearanceConfig = useAppearanceConfig(appearance, tabConfig, isDisabled);
|
|
223
205
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
224
206
|
var rootClasses = useActiveClasses({
|
|
225
|
-
isDisabled: isDisabled,
|
|
226
207
|
propsGenerator: propsGenerator,
|
|
227
208
|
isActive: isActive,
|
|
209
|
+
isDisabled: isDisabled,
|
|
228
210
|
}).rootClasses;
|
|
229
|
-
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap,
|
|
211
|
+
var justifyContentClass = propsGenerator.justifyContentClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, labelTextAlign = propsGenerator.labelTextAlign, labelTextColor = propsGenerator.labelTextColor, labelTextColorActive = propsGenerator.labelTextColorActive, labelTextColorActiveHover = propsGenerator.labelTextColorActiveHover, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, labelTextStyle = propsGenerator.labelTextStyle, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, dividerFill = propsGenerator.dividerFill, dividerFillActive = propsGenerator.dividerFillActive, dividerFillActiveHover = propsGenerator.dividerFillActiveHover, dividerFillDisabled = propsGenerator.dividerFillDisabled, dividerFillHover = propsGenerator.dividerFillHover, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, linkFill = propsGenerator.linkFill, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
230
212
|
// @ts-expect-error
|
|
231
213
|
var tab = useStyles(props).styles;
|
|
232
|
-
|
|
214
|
+
console.log(badgeAppearance);
|
|
215
|
+
console.log(badgeAppearanceSize);
|
|
216
|
+
return (jsx("div", { className: clsx('tab', className, rootClasses, isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', sizeClass && "tab_size_".concat(sizeClass), shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), widthClass && "width_".concat(widthClass), justifyContentClass && "tab_justify-content_".concat(justifyContentClass), isSkeleton && "tab_skeleton", onClick && 'cursor_type_pointer'), "data-test-id": dataTestId && "".concat(dataTestId, "Tab"), "data-tour": dataTour, style: tab, onClick: onClick, onMouseEnter: onMouseEnter, children: jsxs(Link, { className: clsx('tab__link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), !isDisabled && 'cursor_type_pointer'), fill: linkFill, href: link || href, rel: rel, target: target, children: [before, children || (jsxs(React.Fragment, { children: [jsxs("div", { className: "tab__wrapper", children: [label && (jsx(Text, { className: "tab__label", size: labelTextSize, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, isDisabled: isDisabled, children: label })), Boolean(badgeValue) && (jsx(Badge, { appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('tab__icon_after'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }), jsx(Divider, { className: clsx('tab__divider'), width: "fill", direction: "horizontal", size: dividerSize, fill: dividerFill, fillActive: dividerFillActive, fillActiveHover: dividerFillActiveHover, fillDisabled: dividerFillDisabled, fillHover: dividerFillHover, zIndex: "1", isActive: isActive, isDisabled: isDisabled })] })), after] }) }));
|
|
233
217
|
}
|
|
234
218
|
|
|
235
219
|
function TabGroup(props) {
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Icon_es_BrwLifge.js';
|
|
7
7
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
8
8
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'react';
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_BrwLifge.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_BrwLifge.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, Fragment } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { I as Icon } from '../
|
|
4
|
+
import { I as Icon } from '../Icon_es_BrwLifge.js';
|
|
5
5
|
import { T as Text } from '../Text_es_CwV9rjFD.js';
|
|
6
6
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
&__wrapper {
|
|
3
3
|
min-width: auto;
|
|
4
4
|
^&__data {
|
|
5
|
-
width: 100%;
|
|
6
5
|
display: flex;
|
|
7
6
|
flex-flow: row nowrap;
|
|
8
7
|
justify-content: space-between;
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
width: 100%;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
|
-
&-
|
|
14
|
+
&-same-width ^&__data {
|
|
16
15
|
width: 50%;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -10,14 +10,6 @@
|
|
|
10
10
|
outline: 0;
|
|
11
11
|
caret-color: var(--input-caret-color);
|
|
12
12
|
transition: var(--input-transition);
|
|
13
|
-
/* &:disabled {
|
|
14
|
-
background: none;
|
|
15
|
-
border: solid 1px none;
|
|
16
|
-
&:hover {
|
|
17
|
-
background: none;
|
|
18
|
-
border: solid 1px none;
|
|
19
|
-
}
|
|
20
|
-
} */
|
|
21
13
|
&:focus {
|
|
22
14
|
outline: none;
|
|
23
15
|
}
|
|
@@ -1,56 +1,38 @@
|
|
|
1
1
|
.input-password {
|
|
2
|
+
width: 100%;
|
|
2
3
|
position: relative;
|
|
3
4
|
&__icon {
|
|
4
5
|
position: absolute;
|
|
5
|
-
right: 8px;
|
|
6
6
|
top: 50%;
|
|
7
|
+
right: 8px;
|
|
7
8
|
transform: translate(0, -50%);
|
|
8
9
|
}
|
|
9
10
|
&__input {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: unset;
|
|
12
13
|
padding: 0;
|
|
13
14
|
margin: 0;
|
|
14
|
-
|
|
15
|
+
border: none;
|
|
16
|
+
border: solid 1px none;
|
|
17
|
+
position: relative;
|
|
15
18
|
box-shadow: none;
|
|
19
|
+
appearance: none;
|
|
16
20
|
outline: 0;
|
|
17
|
-
position: relative;
|
|
18
21
|
caret-color: var(--input-password-caret-color);
|
|
22
|
+
transition: var(--input-password-transition);
|
|
19
23
|
&:focus {
|
|
20
24
|
outline: none;
|
|
21
25
|
}
|
|
22
|
-
&:hover {
|
|
23
|
-
border: solid 1px var(--input-password-state-hover-border);
|
|
24
|
-
background: var(--input-password-state-hover-background);
|
|
25
|
-
}
|
|
26
|
-
&&_state {
|
|
27
|
-
&_success {
|
|
28
|
-
border: solid 1px var(--input-password-state-success-border);
|
|
29
|
-
background: var(--input-password-state-success-background);
|
|
30
|
-
}
|
|
31
|
-
&_error {
|
|
32
|
-
border: solid 1px var(--input-password-state-error-border);
|
|
33
|
-
background: var(--input-password-state-error-background);
|
|
34
|
-
}
|
|
35
|
-
&_focus {
|
|
36
|
-
border: solid 1px var(--input-password-state-focus-border);
|
|
37
|
-
background: var(--input-password-state-focus-background);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
26
|
}
|
|
41
27
|
}
|
|
42
28
|
.input-password {
|
|
43
29
|
&__input {
|
|
44
30
|
&_shape {
|
|
45
|
-
&_rounded {
|
|
46
|
-
border-radius: var(--input-password-shape-rounded);
|
|
47
|
-
position: relative;
|
|
48
|
-
}
|
|
49
31
|
&_underline {
|
|
50
|
-
position: relative;
|
|
51
32
|
border-left: none !important;
|
|
52
|
-
border-right: none !important;
|
|
53
33
|
border-top: none !important;
|
|
34
|
+
border-right: none !important;
|
|
35
|
+
position: relative;
|
|
54
36
|
}
|
|
55
37
|
}
|
|
56
38
|
}
|
|
@@ -58,26 +40,36 @@
|
|
|
58
40
|
.input-password {
|
|
59
41
|
&__input {
|
|
60
42
|
&&_size {
|
|
61
|
-
@each $size in
|
|
43
|
+
@each $size in xl, l, m, s {
|
|
62
44
|
&_$(size) {
|
|
63
|
-
|
|
45
|
+
min-height: var(--input-password-$(size)-min-height);
|
|
46
|
+
padding: var(--input-password-$(size)-padding);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.input-password {
|
|
53
|
+
&&_state {
|
|
54
|
+
@each $state in error, success, require, disabled, focus {
|
|
55
|
+
&_$(state) {
|
|
56
|
+
& .input {
|
|
57
|
+
background: var(--input-state-$(state)-background);
|
|
58
|
+
border: solid 1px var(--input-state-$(state)-border);
|
|
64
59
|
}
|
|
65
60
|
}
|
|
66
61
|
}
|
|
67
62
|
}
|
|
68
63
|
}
|
|
69
64
|
:root {
|
|
70
|
-
--input-password-
|
|
71
|
-
--input-password-
|
|
72
|
-
--input-password-
|
|
73
|
-
--input-password-
|
|
74
|
-
--input-password-
|
|
75
|
-
--input-password-
|
|
76
|
-
|
|
77
|
-
--input-password-
|
|
78
|
-
--input-password-size-compact-padding: 5px 10px;
|
|
79
|
-
--input-password-size-normal-padding: 7px 12px;
|
|
80
|
-
--input-password-size-large-padding: 9px 15px;
|
|
65
|
+
--input-password-xl-min-height: 56px;
|
|
66
|
+
--input-password-xl-padding: 12px 16px;
|
|
67
|
+
--input-password-l-min-height: 48px;
|
|
68
|
+
--input-password-l-padding: 12px 12px;
|
|
69
|
+
--input-password-m-min-height: 40px;
|
|
70
|
+
--input-password-m-padding: 8px 12px;
|
|
71
|
+
--input-password-s-min-height: 28px;
|
|
72
|
+
--input-password-s-padding: 2px 6px;
|
|
81
73
|
|
|
82
74
|
--input-password-state-focus-border: var(--color-active-border-primary);
|
|
83
75
|
--input-password-state-focus-background: none;
|
|
@@ -88,5 +80,4 @@
|
|
|
88
80
|
--input-password-state-hover-border: var(--color-surface-border-quaternary);
|
|
89
81
|
--input-password-state-hover-background: none;
|
|
90
82
|
--input-password-caret-color: var(--color-accent-fill-primary);
|
|
91
|
-
--input-password-shape-rounded: 0;
|
|
92
83
|
}
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
&_$(size) {
|
|
76
76
|
min-height: var(--menu-item-size-$(size)-min-height);
|
|
77
77
|
padding: var(--menu-item-size-$(size)-padding);
|
|
78
|
-
gap: var(--menu-item-size-$(size)-gap);
|
|
79
78
|
^^&__wrapper {
|
|
80
79
|
border-radius: var(--menu-item-size-$(size)-rounded);
|
|
81
80
|
}
|
|
@@ -84,6 +83,20 @@
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
|
|
86
|
+
.menu-item {
|
|
87
|
+
&_label-icon {
|
|
88
|
+
&^&_size {
|
|
89
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
90
|
+
&_$(size) {
|
|
91
|
+
^^^&__wrapper {
|
|
92
|
+
gap: var(--menu-item-size-$(size)-gap);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
87
100
|
.menu-item {
|
|
88
101
|
&&_skeleton {
|
|
89
102
|
background-size: 200% !important;
|
|
@@ -111,21 +124,21 @@
|
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
:root {
|
|
114
|
-
--menu-item-size-xxl-padding: 14px;
|
|
115
|
-
--menu-item-size-xl-padding: 10px;
|
|
116
|
-
--menu-item-size-l-padding: 8px;
|
|
117
|
-
--menu-item-size-m-padding: 6px;
|
|
118
|
-
--menu-item-size-s-padding: 6px;
|
|
119
|
-
--menu-item-size-xs-padding: 4px;
|
|
120
|
-
--menu-item-size-xxs-padding: 2px;
|
|
127
|
+
--menu-item-size-xxl-padding: 0 14px;
|
|
128
|
+
--menu-item-size-xl-padding: 0 10px;
|
|
129
|
+
--menu-item-size-l-padding: 0 8px;
|
|
130
|
+
--menu-item-size-m-padding: 0 6px;
|
|
131
|
+
--menu-item-size-s-padding: 0 6px;
|
|
132
|
+
--menu-item-size-xs-padding: 0 4px;
|
|
133
|
+
--menu-item-size-xxs-padding: 0 2px;
|
|
121
134
|
|
|
122
|
-
--menu-item-size-xxl-gap:
|
|
123
|
-
--menu-item-size-xl-gap:
|
|
124
|
-
--menu-item-size-l-gap:
|
|
125
|
-
--menu-item-size-m-gap:
|
|
126
|
-
--menu-item-size-s-gap:
|
|
127
|
-
--menu-item-size-xs-gap:
|
|
128
|
-
--menu-item-size-xxs-gap:
|
|
135
|
+
--menu-item-size-xxl-gap: 1m;
|
|
136
|
+
--menu-item-size-xl-gap: 1m;
|
|
137
|
+
--menu-item-size-l-gap: 1m;
|
|
138
|
+
--menu-item-size-m-gap: 0.75m;
|
|
139
|
+
--menu-item-size-s-gap: 0.75m;
|
|
140
|
+
--menu-item-size-xs-gap: 0.5m;
|
|
141
|
+
--menu-item-size-xxs-gap: 0.5m;
|
|
129
142
|
|
|
130
143
|
--menu-item-size-xxl-min-height: 48px;
|
|
131
144
|
--menu-item-size-xl-min-height: 40px;
|
|
@@ -1,2 +1,179 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const inputPasswordAppearance: {
|
|
2
|
+
circular: {
|
|
3
|
+
shape: string;
|
|
4
|
+
};
|
|
5
|
+
rounded: {
|
|
6
|
+
shape: string;
|
|
7
|
+
};
|
|
8
|
+
roundedXL: {
|
|
9
|
+
shape: string;
|
|
10
|
+
shapeStrength: string;
|
|
11
|
+
};
|
|
12
|
+
roundedL: {
|
|
13
|
+
shape: string;
|
|
14
|
+
shapeStrength: string;
|
|
15
|
+
};
|
|
16
|
+
roundedM: {
|
|
17
|
+
shape: string;
|
|
18
|
+
shapeStrength: string;
|
|
19
|
+
};
|
|
20
|
+
roundedS: {
|
|
21
|
+
shape: string;
|
|
22
|
+
shapeStrength: string;
|
|
23
|
+
};
|
|
24
|
+
successPrimary: {
|
|
25
|
+
fill: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
borderHover: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
iconFill: string;
|
|
30
|
+
iconRevealableHide: string;
|
|
31
|
+
iconRevealableShow: string;
|
|
32
|
+
placeholderTextColor: string;
|
|
33
|
+
};
|
|
34
|
+
successSecondary: {
|
|
35
|
+
fill: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
borderHover: string;
|
|
38
|
+
iconFill: string;
|
|
39
|
+
iconRevealableHide: string;
|
|
40
|
+
iconRevealableShow: string;
|
|
41
|
+
placeholderTextColor: string;
|
|
42
|
+
};
|
|
43
|
+
defaultPrimary: {
|
|
44
|
+
fill: string;
|
|
45
|
+
borderColor: string;
|
|
46
|
+
borderHover: string;
|
|
47
|
+
textColor: string;
|
|
48
|
+
textColorDisabled: string;
|
|
49
|
+
caret: string;
|
|
50
|
+
iconFill: string;
|
|
51
|
+
iconRevealableHide: string;
|
|
52
|
+
iconRevealableShow: string;
|
|
53
|
+
placeholderTextColor: string;
|
|
54
|
+
};
|
|
55
|
+
defaultSecondary: {
|
|
56
|
+
fill: string;
|
|
57
|
+
borderColor: string;
|
|
58
|
+
borderHover: string;
|
|
59
|
+
textColor: string;
|
|
60
|
+
textColorDisabled: string;
|
|
61
|
+
caret: string;
|
|
62
|
+
iconFill: string;
|
|
63
|
+
iconRevealableHide: string;
|
|
64
|
+
iconRevealableShow: string;
|
|
65
|
+
placeholderTextColor: string;
|
|
66
|
+
};
|
|
67
|
+
errorPrimary: {
|
|
68
|
+
fill: string;
|
|
69
|
+
borderColor: string;
|
|
70
|
+
borderHover: string;
|
|
71
|
+
textColor: string;
|
|
72
|
+
iconFill: string;
|
|
73
|
+
iconRevealableHide: string;
|
|
74
|
+
iconRevealableShow: string;
|
|
75
|
+
placeholderTextColor: string;
|
|
76
|
+
};
|
|
77
|
+
errorSecondary: {
|
|
78
|
+
fill: string;
|
|
79
|
+
borderColor: string;
|
|
80
|
+
borderHover: string;
|
|
81
|
+
iconFill: string;
|
|
82
|
+
iconRevealableHide: string;
|
|
83
|
+
iconRevealableShow: string;
|
|
84
|
+
placeholderTextColor: string;
|
|
85
|
+
};
|
|
86
|
+
solid: {
|
|
87
|
+
borderColor: string;
|
|
88
|
+
};
|
|
89
|
+
outlined: {
|
|
90
|
+
fill: string;
|
|
91
|
+
};
|
|
92
|
+
full: {
|
|
93
|
+
borderColor: string;
|
|
94
|
+
};
|
|
95
|
+
ghost: {
|
|
96
|
+
fill: string;
|
|
97
|
+
borderColor: string;
|
|
98
|
+
};
|
|
99
|
+
requirePrimary: {
|
|
100
|
+
fill: string;
|
|
101
|
+
borderColor: string;
|
|
102
|
+
borderHover: string;
|
|
103
|
+
textColor: string;
|
|
104
|
+
iconFill: string;
|
|
105
|
+
iconRevealableHide: string;
|
|
106
|
+
iconRevealableShow: string;
|
|
107
|
+
placeholderTextColor: string;
|
|
108
|
+
};
|
|
109
|
+
requireSecondary: {
|
|
110
|
+
fill: string;
|
|
111
|
+
borderColor: string;
|
|
112
|
+
borderHover: string;
|
|
113
|
+
iconFill: string;
|
|
114
|
+
iconRevealableHide: string;
|
|
115
|
+
iconRevealableShow: string;
|
|
116
|
+
placeholderTextColor: string;
|
|
117
|
+
};
|
|
118
|
+
disabledPrimary: {
|
|
119
|
+
fill: string;
|
|
120
|
+
borderColor: string;
|
|
121
|
+
borderHover: string;
|
|
122
|
+
textColor: string;
|
|
123
|
+
iconFill: string;
|
|
124
|
+
iconRevealableHide: string;
|
|
125
|
+
iconRevealableShow: string;
|
|
126
|
+
placeholderTextColor: string;
|
|
127
|
+
};
|
|
128
|
+
disabledSecondary: {
|
|
129
|
+
fill: string;
|
|
130
|
+
borderColor: string;
|
|
131
|
+
borderHover: string;
|
|
132
|
+
iconFill: string;
|
|
133
|
+
iconRevealableHide: string;
|
|
134
|
+
iconRevealableShow: string;
|
|
135
|
+
placeholderTextColor: string;
|
|
136
|
+
};
|
|
137
|
+
sizeXXL: {
|
|
138
|
+
size: string;
|
|
139
|
+
textSize: string;
|
|
140
|
+
iconFillSize: string;
|
|
141
|
+
iconSize: string;
|
|
142
|
+
};
|
|
143
|
+
sizeXL: {
|
|
144
|
+
size: string;
|
|
145
|
+
textSize: string;
|
|
146
|
+
iconFillSize: string;
|
|
147
|
+
iconSize: string;
|
|
148
|
+
};
|
|
149
|
+
sizeL: {
|
|
150
|
+
size: string;
|
|
151
|
+
textSize: string;
|
|
152
|
+
iconFillSize: string;
|
|
153
|
+
iconSize: string;
|
|
154
|
+
};
|
|
155
|
+
sizeM: {
|
|
156
|
+
size: string;
|
|
157
|
+
textSize: string;
|
|
158
|
+
iconFillSize: string;
|
|
159
|
+
iconSize: string;
|
|
160
|
+
};
|
|
161
|
+
sizeS: {
|
|
162
|
+
size: string;
|
|
163
|
+
textSize: string;
|
|
164
|
+
iconFillSize: string;
|
|
165
|
+
iconSize: string;
|
|
166
|
+
};
|
|
167
|
+
sizeXS: {
|
|
168
|
+
size: string;
|
|
169
|
+
textSize: string;
|
|
170
|
+
iconFillSize: string;
|
|
171
|
+
iconSize: string;
|
|
172
|
+
};
|
|
173
|
+
sizeXXS: {
|
|
174
|
+
size: string;
|
|
175
|
+
textSize: string;
|
|
176
|
+
iconFillSize: string;
|
|
177
|
+
iconSize: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
@@ -6,8 +6,10 @@ declare const inputPasswordAppearanceDefault: {
|
|
|
6
6
|
textColor: string;
|
|
7
7
|
textColorDisabled: string;
|
|
8
8
|
caret: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
iconFill: string;
|
|
10
|
+
iconRevealableHide: string;
|
|
11
|
+
iconRevealableShow: string;
|
|
12
|
+
placeholderTextColor: string;
|
|
11
13
|
};
|
|
12
14
|
defaultSecondary: {
|
|
13
15
|
fill: string;
|
|
@@ -16,8 +18,9 @@ declare const inputPasswordAppearanceDefault: {
|
|
|
16
18
|
textColor: string;
|
|
17
19
|
textColorDisabled: string;
|
|
18
20
|
caret: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
iconFill: string;
|
|
22
|
+
iconRevealableHide: string;
|
|
23
|
+
iconRevealableShow: string;
|
|
21
24
|
placeholderTextColor: string;
|
|
22
25
|
};
|
|
23
26
|
};
|