@itcase/ui 1.8.122 → 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.
Files changed (65) hide show
  1. package/dist/{Avatar_cjs_kuE0Rueg.js → Avatar_cjs_CLJnKU39.js} +1 -1
  2. package/dist/{Avatar_es_lx7s4Vla.js → Avatar_es_BgN-fbOj.js} +1 -1
  3. package/dist/{Button_cjs_i0Dn1pkl.js → Button_cjs_Ce97psFT.js} +3 -3
  4. package/dist/{Button_es_CtH5EKJd.js → Button_es_CZss7cXh.js} +3 -3
  5. package/dist/{DatePicker_cjs_DsIAoi01.js → DatePicker_cjs_BzEtDAb8.js} +2 -2
  6. package/dist/{DatePicker_es_BP5BrEr-.js → DatePicker_es_DRyCMO0I.js} +2 -2
  7. package/dist/{Image_cjs_B6YlGx8G.js → Image_cjs_DRhhc66R.js} +2 -1
  8. package/dist/{Image_es_BvYo_cHH.js → Image_es_BpMidmve.js} +2 -1
  9. package/dist/{Input_cjs_Du73R-wm.js → Input_cjs_DRPK_RHK.js} +3 -3
  10. package/dist/{Input_es_CiDHjDqJ.js → Input_es_Cv5nEb_n.js} +3 -3
  11. package/dist/cjs/components/Avatar.js +2 -2
  12. package/dist/cjs/components/AvatarStack.js +2 -2
  13. package/dist/cjs/components/Button.js +1 -1
  14. package/dist/cjs/components/CookiesWarning.js +1 -1
  15. package/dist/cjs/components/Dadata.js +1 -1
  16. package/dist/cjs/components/DatePeriod.js +6 -6
  17. package/dist/cjs/components/DatePicker.js +3 -3
  18. package/dist/cjs/components/Grid.js +3 -3
  19. package/dist/cjs/components/Image.js +1 -1
  20. package/dist/cjs/components/Input.js +1 -1
  21. package/dist/cjs/components/InputPassword.js +88 -66
  22. package/dist/cjs/components/Response.js +58 -51
  23. package/dist/cjs/components/Segmented.js +5 -5
  24. package/dist/cjs/components/Tab.js +29 -45
  25. package/dist/components/Avatar.js +2 -2
  26. package/dist/components/AvatarStack.js +2 -2
  27. package/dist/components/Button.js +1 -1
  28. package/dist/components/CookiesWarning.js +1 -1
  29. package/dist/components/Dadata.js +1 -1
  30. package/dist/components/DatePeriod.js +6 -6
  31. package/dist/components/DatePicker.js +3 -3
  32. package/dist/components/Grid.js +3 -3
  33. package/dist/components/Image.js +1 -1
  34. package/dist/components/Input.js +1 -1
  35. package/dist/components/InputPassword.js +88 -66
  36. package/dist/components/Response.js +58 -51
  37. package/dist/components/Segmented.js +5 -5
  38. package/dist/components/Tab.js +29 -45
  39. package/dist/css/components/Checkmark/Checkmark.css +2 -0
  40. package/dist/css/components/DatePeriod/DatePeriod.css +3 -0
  41. package/dist/css/components/Input/Input.css +0 -8
  42. package/dist/css/components/InputPassword/InputPassword.css +34 -43
  43. package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +179 -2
  44. package/dist/types/components/InputPassword/appearance/inputPasswordDefault.d.ts +7 -4
  45. package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +6 -4
  46. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +6 -4
  47. package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +6 -4
  48. package/dist/types/components/InputPassword/appearance/inputPasswordShape.d.ts +25 -0
  49. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +14 -28
  50. package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +5 -5
  51. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +6 -4
  52. package/dist/types/components/Response/Response.constant.d.ts +32 -35
  53. package/dist/types/components/Response/appearance/responseConfirm.d.ts +1 -0
  54. package/dist/types/components/Response/appearance/responseDanger.d.ts +1 -0
  55. package/dist/types/components/Response/appearance/responseEmpty.d.ts +1 -0
  56. package/dist/types/components/Response/appearance/responseError.d.ts +1 -0
  57. package/dist/types/components/Response/appearance/responseFail.d.ts +1 -0
  58. package/dist/types/components/Response/appearance/responseNothingFound.d.ts +1 -0
  59. package/dist/types/components/Response/appearance/responseRefresh.d.ts +1 -0
  60. package/dist/types/components/Response/appearance/responseSuccess.d.ts +1 -0
  61. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +1 -0
  62. package/dist/types/components/Response/appearance/responseWarning.d.ts +1 -0
  63. package/dist/types/components/Tab/appearance/tabSize.d.ts +0 -14
  64. package/dist/types/components/Tab/appearance/tabSurface.d.ts +7 -7
  65. package/package.json +13 -13
@@ -45,56 +45,42 @@ var tabAppearanceSize = {
45
45
  sizeXXL: {
46
46
  size: 'xxl',
47
47
  labelTextSize: 's',
48
- badgeAppearanceSize: 'sizeXL',
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: 'sizeXL',
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: 'sizeXL',
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: 'sizeXL',
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: 'sizeXL',
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: 'sizeXL',
89
- badgeSize: 'xs',
90
- badgeTextSize: 'xs',
78
+ badgeAppearanceSize: 'sizeXS',
91
79
  },
92
80
  sizeXXS: {
93
81
  size: 'xxs',
94
82
  labelTextSize: 'xs',
95
- badgeAppearanceSize: 'sizeXL',
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 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;
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, dividerFillDisabled = propsGenerator.dividerFillDisabled, 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, 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;
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
- return (jsx("div", { dataTour: dataTour, 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'), 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, isDisabled: isDisabled, textAlign: labelTextAlign, textColor: labelTextColor, textColorActive: labelTextColorActive, textColorHover: labelTextColorHover, textColorHoverActive: labelTextColorActiveHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, 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", isDisabled: isDisabled, isActive: isActive })] })), after] }) }));
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) {
@@ -19,6 +19,8 @@
19
19
  &_$(size) {
20
20
  width: var(--checkmark-$(size)-width);
21
21
  height: var(--checkmark-$(size)-height);
22
+ min-width: var(--checkmark-$(size)-width);
23
+ min-height: var(--checkmark-$(size)-height);
22
24
  & svg {
23
25
  transform: scale($(scale));
24
26
  }
@@ -1,5 +1,8 @@
1
1
  .date-period {
2
2
  display: flex;
3
+ &__datepicker {
4
+ min-width: 220px;
5
+ }
3
6
  }
4
7
  .date-period {
5
8
  &&_skeleton {
@@ -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
- border: none;
11
- appearance: none;
11
+ width: 100%;
12
+ min-width: unset;
12
13
  padding: 0;
13
14
  margin: 0;
14
- min-width: unset;
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 xxl, xl, l, m, s, xs, xxs, normal, tiny, compact, large {
43
+ @each $size in xl, l, m, s {
62
44
  &_$(size) {
63
- padding: var(--input-password-size-$(size)-padding);
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-size-xs-padding: 4px 8px;
71
- --input-password-size-s-padding: 5px 10px;
72
- --input-password-size-m-padding: 7px 12px;
73
- --input-password-size-l-padding: 9px 15px;
74
- --input-password-size-xl-padding: 15px 20px;
75
- --input-password-size-xxl-padding: 18px 25px;
76
-
77
- --input-password-size-tiny-padding: 4px 8px;
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
  }
@@ -1,2 +1,179 @@
1
- import { InputPasswordAppearanceType } from './InputPassword.interface';
2
- export declare const inputPasswordAppearance: InputPasswordAppearanceType;
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
- iconBeforeFill: string;
10
- iconClearFill: string;
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
- iconBeforeFill: string;
20
- iconClearFill: string;
21
+ iconFill: string;
22
+ iconRevealableHide: string;
23
+ iconRevealableShow: string;
21
24
  placeholderTextColor: string;
22
25
  };
23
26
  };
@@ -4,16 +4,18 @@ declare const inputPasswordAppearanceDisabled: {
4
4
  borderColor: string;
5
5
  borderHover: string;
6
6
  textColor: string;
7
- iconBeforeFill: string;
8
- iconClearFill: string;
7
+ iconFill: string;
8
+ iconRevealableHide: string;
9
+ iconRevealableShow: string;
9
10
  placeholderTextColor: string;
10
11
  };
11
12
  disabledSecondary: {
12
13
  fill: string;
13
14
  borderColor: string;
14
15
  borderHover: string;
15
- iconBeforeFill: string;
16
- iconClearFill: string;
16
+ iconFill: string;
17
+ iconRevealableHide: string;
18
+ iconRevealableShow: string;
17
19
  placeholderTextColor: string;
18
20
  };
19
21
  };
@@ -4,16 +4,18 @@ declare const inputPasswordAppearanceError: {
4
4
  borderColor: string;
5
5
  borderHover: string;
6
6
  textColor: string;
7
- iconBeforeFill: string;
8
- iconClearFill: string;
7
+ iconFill: string;
8
+ iconRevealableHide: string;
9
+ iconRevealableShow: string;
9
10
  placeholderTextColor: string;
10
11
  };
11
12
  errorSecondary: {
12
13
  fill: string;
13
14
  borderColor: string;
14
15
  borderHover: string;
15
- iconBeforeFill: string;
16
- iconClearFill: string;
16
+ iconFill: string;
17
+ iconRevealableHide: string;
18
+ iconRevealableShow: string;
17
19
  placeholderTextColor: string;
18
20
  };
19
21
  };
@@ -4,16 +4,18 @@ declare const inputPasswordAppearanceRequire: {
4
4
  borderColor: string;
5
5
  borderHover: string;
6
6
  textColor: string;
7
- iconBeforeFill: string;
8
- iconClearFill: string;
7
+ iconFill: string;
8
+ iconRevealableHide: string;
9
+ iconRevealableShow: string;
9
10
  placeholderTextColor: string;
10
11
  };
11
12
  requireSecondary: {
12
13
  fill: string;
13
14
  borderColor: string;
14
15
  borderHover: string;
15
- iconBeforeFill: string;
16
- iconClearFill: string;
16
+ iconFill: string;
17
+ iconRevealableHide: string;
18
+ iconRevealableShow: string;
17
19
  placeholderTextColor: string;
18
20
  };
19
21
  };
@@ -0,0 +1,25 @@
1
+ declare const inputPasswordAppearanceShape: {
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
+ };
25
+ export { inputPasswordAppearanceShape };