@itcase/ui 1.8.62 → 1.8.63

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 (88) hide show
  1. package/dist/{Avatar_cjs_g8d8LDkU.js → Avatar_cjs_DOBcPDTn.js} +1 -1
  2. package/dist/{Avatar_es_DbH5Le9j.js → Avatar_es_DA6o8oNQ.js} +1 -1
  3. package/dist/{Button_cjs_BMCGsGKK.js → Button_cjs_C_9WLtoA.js} +1 -1
  4. package/dist/{Button_es_CvkdyDHz.js → Button_es_CuFysaNl.js} +1 -1
  5. package/dist/{ChipsGroup_cjs_BALOkFuT.js → ChipsGroup_cjs_DHNbkBEk.js} +1 -1
  6. package/dist/{ChipsGroup_es_BIDq4idr.js → ChipsGroup_es_zirUM0Bc.js} +1 -1
  7. package/dist/{DatePicker_cjs_EaIpF6cm.js → DatePicker_cjs_DR5o7zLg.js} +3 -3
  8. package/dist/{DatePicker_es_Cq2jJkv0.js → DatePicker_es_vpk_NT3S.js} +3 -3
  9. package/dist/{DropdownItem_cjs_DyjqXle_.js → DropdownItem_cjs_BF18Ii9Z.js} +1 -1
  10. package/dist/{DropdownItem_es_DHKJHW8q.js → DropdownItem_es_2b-hX4HZ.js} +1 -1
  11. package/dist/{Icon_cjs_BsACgdjJ.js → Icon_cjs_D1Ze-oNL.js} +5 -5
  12. package/dist/{Icon_es_CoIszJbl.js → Icon_es_DrQu8Zp8.js} +5 -5
  13. package/dist/{Label_cjs_QJ0WLQXG.js → Label_cjs_BPu58uG9.js} +6 -6
  14. package/dist/{Label_es_WH-qJKvj.js → Label_es_CH68RBo-.js} +6 -6
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +2 -2
  21. package/dist/cjs/components/Cell.js +2 -2
  22. package/dist/cjs/components/Chips.js +2 -2
  23. package/dist/cjs/components/Choice.js +1 -1
  24. package/dist/cjs/components/CookiesWarning.js +2 -2
  25. package/dist/cjs/components/DatePeriod.js +5 -5
  26. package/dist/cjs/components/DatePicker.js +4 -4
  27. package/dist/cjs/components/Drawer.js +1 -1
  28. package/dist/cjs/components/Dropdown.js +2 -2
  29. package/dist/cjs/components/HeroTitle.js +1 -1
  30. package/dist/cjs/components/Icon.js +1 -1
  31. package/dist/cjs/components/InputPassword.js +1 -1
  32. package/dist/cjs/components/Label.js +2 -2
  33. package/dist/cjs/components/MenuItem.js +1 -1
  34. package/dist/cjs/components/Modal.js +1 -1
  35. package/dist/cjs/components/Notification.js +1 -1
  36. package/dist/cjs/components/Pagination.js +2 -2
  37. package/dist/cjs/components/Response.js +2 -2
  38. package/dist/cjs/components/Search.js +34 -9
  39. package/dist/cjs/components/Segmented.js +1 -1
  40. package/dist/cjs/components/Select.js +1 -1
  41. package/dist/cjs/components/Swiper.js +1 -1
  42. package/dist/cjs/components/Tab.js +1 -1
  43. package/dist/cjs/components/Tile.js +1 -1
  44. package/dist/cjs/components/Title.js +1 -1
  45. package/dist/cjs/components/Tooltip.js +1 -1
  46. package/dist/cjs/components/Warning.js +1 -1
  47. package/dist/components/Accordion.js +1 -1
  48. package/dist/components/Avatar.js +2 -2
  49. package/dist/components/AvatarStack.js +2 -2
  50. package/dist/components/Badge.js +1 -1
  51. package/dist/components/Breadcrumbs.js +1 -1
  52. package/dist/components/Button.js +2 -2
  53. package/dist/components/Cell.js +2 -2
  54. package/dist/components/Chips.js +2 -2
  55. package/dist/components/Choice.js +1 -1
  56. package/dist/components/CookiesWarning.js +2 -2
  57. package/dist/components/DatePeriod.js +5 -5
  58. package/dist/components/DatePicker.js +4 -4
  59. package/dist/components/Drawer.js +1 -1
  60. package/dist/components/Dropdown.js +2 -2
  61. package/dist/components/HeroTitle.js +1 -1
  62. package/dist/components/Icon.js +1 -1
  63. package/dist/components/InputPassword.js +1 -1
  64. package/dist/components/Label.js +2 -2
  65. package/dist/components/MenuItem.js +1 -1
  66. package/dist/components/Modal.js +1 -1
  67. package/dist/components/Notification.js +1 -1
  68. package/dist/components/Pagination.js +2 -2
  69. package/dist/components/Response.js +2 -2
  70. package/dist/components/Search.js +34 -9
  71. package/dist/components/Segmented.js +1 -1
  72. package/dist/components/Select.js +1 -1
  73. package/dist/components/Swiper.js +1 -1
  74. package/dist/components/Tab.js +1 -1
  75. package/dist/components/Tile.js +1 -1
  76. package/dist/components/Title.js +1 -1
  77. package/dist/components/Tooltip.js +1 -1
  78. package/dist/components/Warning.js +1 -1
  79. package/dist/css/components/Badge/Badge.css +0 -10
  80. package/dist/css/components/Label/Label.css +0 -25
  81. package/dist/css/components/Search/Search.css +14 -42
  82. package/dist/css/components/Search/css/search-input/search-input.css +8 -19
  83. package/dist/types/components/Badge/appearance/badgeShape.d.ts +2 -2
  84. package/dist/types/components/Label/appearance/labelShape.d.ts +2 -2
  85. package/dist/types/components/Search/appearance/searchShape.d.ts +25 -0
  86. package/package.json +1 -1
  87. package/dist/css/components/Search/css/search-input/search-input_shape.css +0 -8
  88. package/dist/css/components/Search/css/search-result/search-result_shape.css +0 -8
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { I as Icon } from '../Icon_es_CoIszJbl.js';
9
+ import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
10
10
  import { T as Text } from '../Text_es_BvmOR4nv.js';
11
11
  import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
12
12
  import 'lodash/camelCase';
@@ -79,6 +79,31 @@ var searchAppearanceRequire = {
79
79
  },
80
80
  };
81
81
 
82
+ var searchAppearanceShape = {
83
+ circular: {
84
+ shape: 'circular',
85
+ },
86
+ rounded: {
87
+ shape: 'rounded',
88
+ },
89
+ roundedS: {
90
+ shape: 'rounded',
91
+ shapeStrength: '0_5m',
92
+ },
93
+ roundedM: {
94
+ shape: 'rounded',
95
+ shapeStrength: '1m',
96
+ },
97
+ roundedL: {
98
+ shape: 'rounded',
99
+ shapeStrength: '1_5m',
100
+ },
101
+ roundedXL: {
102
+ shape: 'rounded',
103
+ shapeStrength: '2m',
104
+ },
105
+ };
106
+
82
107
  var searchAppearanceSize = {
83
108
  sizeXXL: {
84
109
  size: 'xxl',
@@ -154,7 +179,7 @@ var searchAppearanceSuccess = {
154
179
  },
155
180
  };
156
181
 
157
- var searchAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, searchAppearanceSize), searchAppearanceStyle), searchAppearanceDefault), searchAppearanceError), searchAppearanceSuccess), searchAppearanceRequire), searchAppearanceDisabled);
182
+ var searchAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, searchAppearanceSize), searchAppearanceStyle), searchAppearanceDefault), searchAppearanceError), searchAppearanceSuccess), searchAppearanceRequire), searchAppearanceDisabled), searchAppearanceShape);
158
183
 
159
184
  var searchInputConfig = {
160
185
  appearance: searchAppearance,
@@ -163,7 +188,7 @@ var searchInputConfig = {
163
188
  },
164
189
  };
165
190
  var SearchInput = React.forwardRef(function SearchInput(props, ref) {
166
- var className = props.className, type = props.type, appearance = props.appearance, dataTour = props.dataTour, placeholder = props.placeholder, value = props.value, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
191
+ var className = props.className, appearance = props.appearance, dataTour = props.dataTour, placeholder = props.placeholder, value = props.value, before = props.before, after = props.after, isActive = props.isActive, isSkeleton = props.isSkeleton, onChange = props.onChange, onClickClean = props.onClickClean, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
167
192
  var onChangeSearchInput = useCallback(function (event) {
168
193
  onChange && onChange(event.target.value);
169
194
  }, [onChange]);
@@ -176,13 +201,13 @@ var SearchInput = React.forwardRef(function SearchInput(props, ref) {
176
201
  }, [onChange, onClickClean]);
177
202
  var appearanceConfig = useAppearanceConfig(appearance, searchInputConfig);
178
203
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
179
- var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, placeholderTextStyle = propsGenerator.placeholderTextStyle, placeholderTextWeight = propsGenerator.placeholderTextWeight, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
204
+ var size = propsGenerator.size, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, iconClear = propsGenerator.iconClear, iconClearFill = propsGenerator.iconClearFill, iconClearSize = propsGenerator.iconClearSize, iconClearSrc = propsGenerator.iconClearSrc, inputFillClass = propsGenerator.inputFillClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, inputTextStyleClass = propsGenerator.inputTextStyleClass, inputTextWeightClass = propsGenerator.inputTextWeightClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, placeholderTextStyle = propsGenerator.placeholderTextStyle, placeholderTextWeight = propsGenerator.placeholderTextWeight, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, widthClass = propsGenerator.widthClass;
180
205
  var searchInputStyles = useStyles(props).styles;
181
- return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "search_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), type && "search-input_type_".concat(type), isSkeleton && "search-input_skeleton"), dataTour: dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass), inputShapeClass && "search-input_shape_".concat(inputShapeClass)), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
206
+ return (jsxs("label", { className: clsx(className, 'search-input', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass), widthClass && "width_".concat(widthClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), size && "search-input_size_".concat(size), isSkeleton && "search-input_skeleton"), dataTour: dataTour, style: searchInputStyles, children: [before, (iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "search-input__icon-before", size: iconBeforeSize, iconFill: iconBeforeFill, imageSrc: iconBeforeSrc, SvgImage: iconBefore })), jsxs("div", { className: clsx('search-input__wrapper', inputFillClass && "fill_".concat(inputFillClass)), children: [jsx("input", { className: clsx('search-input__value', (inputTextSizeClass ||
182
207
  inputTextWeightClass ||
183
208
  inputTextColorClass ||
184
209
  inputTextStyleClass) &&
185
- 'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), type: "text", ref: ref, required: true, value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize, textColor: placeholderTextColor, textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer', isActive && "fill_".concat(iconClearFill)), size: iconClearSize, iconFill: iconClearFill, imageSrc: iconClearSrc, SvgImage: iconClear, onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon search-input__icon-after", size: iconAfterSize, iconFill: iconAfterFill, imageSrc: iconAfterSrc, SvgImage: iconAfter })), after] }));
210
+ 'text', inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextStyleClass && "text-style_".concat(inputTextStyleClass)), type: "text", ref: ref, required: true, value: value, onChange: onChangeSearchInput, onFocus: onFocus, onKeyDown: onKeyDown }), jsx("div", { className: "search-input__placeholder", children: jsx(Text, { className: clsx('search-input__placeholder-value'), size: placeholderTextSize, textColor: placeholderTextColor, textStyle: placeholderTextStyle, textWeight: placeholderTextWeight, children: placeholder }) }), value && (jsx(Icon, { className: clsx('search-input__clear', 'cursor_type_pointer', isActive && "fill_".concat(iconClearFill)), size: iconClearSize, iconFill: iconClearFill, imageSrc: iconClearSrc, SvgImage: iconClear, onClick: onClickClearIcon }))] }), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "search-input__icon-after", size: iconAfterSize, iconFill: iconAfterFill, imageSrc: iconAfterSrc, SvgImage: iconAfter })), after] }));
186
211
  });
187
212
  // @ts-expect-error
188
213
  SearchInput.DEFAULT_REF_STATE = {
@@ -190,10 +215,10 @@ SearchInput.DEFAULT_REF_STATE = {
190
215
  };
191
216
 
192
217
  var SearchResult = React.forwardRef(function SearchResult(props) {
193
- var className = props.className, type = props.type, scrollHeight = props.scrollHeight, before = props.before, after = props.after, children = props.children;
218
+ var className = props.className, scrollHeight = props.scrollHeight, before = props.before, after = props.after, children = props.children;
194
219
  var propsGenerator = useDevicePropsGenerator(props);
195
- var fillClass = propsGenerator.fillClass;
196
- return (jsx("div", { className: clsx(className, 'search-result', fillClass && "fill_".concat(fillClass), type && "search-result_type_".concat(type)), children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? "".concat(scrollHeight, "px") : '300px', children: children })), after] }) }));
220
+ var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass;
221
+ return (jsx("div", { className: clsx(className, 'search-result', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), fillClass && "fill_".concat(fillClass)), children: jsxs("div", { className: "search-result__wrapper", children: [before, React.Children.toArray(children).filter(Boolean).length && (jsx(Scrollbar, { scrollHeight: scrollHeight ? "".concat(scrollHeight, "px") : '300px', children: children })), after] }) }));
197
222
  });
198
223
 
199
224
  export { SearchInput, SearchResult, searchAppearance, searchInputConfig };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_CoIszJbl.js';
4
+ import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
@@ -1,7 +1,7 @@
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 '../Icon_es_CoIszJbl.js';
4
+ import { I as Icon, B as Badge } from '../Icon_es_DrQu8Zp8.js';
5
5
  import React, { useRef, useCallback, useEffect, useMemo } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
@@ -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 '../Icon_es_CoIszJbl.js';
7
+ import { b as Title } from '../Icon_es_DrQu8Zp8.js';
8
8
  import '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge, I as Icon } from '../Icon_es_CoIszJbl.js';
7
+ import { B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
8
8
  import { D as Divider } from '../Divider_es_CiRU0sTz.js';
9
9
  import { L as Link } from '../Link_es_BnUIX0QT.js';
10
10
  import { T as Text } from '../Text_es_BvmOR4nv.js';
@@ -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 '../Icon_es_CoIszJbl.js';
6
+ import { b as Title, B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
7
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
8
8
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'react';
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_CoIszJbl.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_DrQu8Zp8.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 '../Icon_es_CoIszJbl.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_DrQu8Zp8.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 '../Icon_es_CoIszJbl.js';
4
+ import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
5
5
  import { T as Text } from '../Text_es_BvmOR4nv.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -30,16 +30,6 @@
30
30
  background-position: -200%;
31
31
  }
32
32
  }
33
- .badge {
34
- &_shape {
35
- &_rounded {
36
- border-radius: var(--badge-shape-rounded, 6px);
37
- }
38
- &_circular {
39
- border-radius: 50%;
40
- }
41
- }
42
- }
43
33
  .badge {
44
34
  &_size {
45
35
  @each $size in xxs, xs, s, m, l, xl, xxl {
@@ -35,21 +35,6 @@
35
35
  background-position: -200%;
36
36
  }
37
37
  }
38
- .label {
39
- &_shape {
40
- &_rounded {
41
- border-radius: var(--label-shape-rounded-default);
42
- @each $size in xxl, xl, l, m, s, xs, xxs {
43
- &.label_size_$(size) {
44
- border-radius: var(--label-size-$(size)-shape-rounded);
45
- }
46
- }
47
- }
48
- &_circular {
49
- border-radius: 9999px;
50
- }
51
- }
52
- }
53
38
  .label {
54
39
  &_size {
55
40
  @each $size in xxl, xl, l, m, s, xs, xxs {
@@ -80,16 +65,6 @@ div.label {
80
65
  }
81
66
  }
82
67
  :root {
83
- --label-shape-rounded-default: 6px;
84
-
85
- --label-size-xxl-shape-rounded: 12px;
86
- --label-size-xl-shape-rounded: 6px;
87
- --label-size-l-shape-rounded: 6px;
88
- --label-size-m-shape-rounded: 12px;
89
- --label-size-s-shape-rounded: 12px;
90
- --label-size-xs-shape-rounded: 12px;
91
- --label-size-xxs-shape-rounded: 12px;
92
-
93
68
  --label-size-xxl-padding: 10px 10px;
94
69
  --label-size-xxl-gap: 8px;
95
70
  --label-size-xl-padding: 7px 8px;
@@ -1,21 +1,20 @@
1
1
  .search {
2
2
  }
3
- .search {
4
- &_shape {
5
- &_rounded {
6
- border-radius: var(--search-shape-rounded);
7
- position: relative;
8
- }
9
- }
10
- }
3
+
11
4
  .search-input {
12
5
  position: relative;
13
6
  overflow: hidden;
14
7
  display: flex;
15
8
  justify-content: center;
16
9
  &__icon {
17
- display: flex;
18
- align-items: center;
10
+ &-before {
11
+ display: flex;
12
+ align-items: center;
13
+ }
14
+ &-after {
15
+ display: flex;
16
+ align-items: center;
17
+ }
19
18
  }
20
19
  &__wrapper {
21
20
  width: 100%;
@@ -62,31 +61,8 @@
62
61
  z-index: 2;
63
62
  transform: translate(0, -50%);
64
63
  }
65
- &&_state_focus,
66
- &&_state_filled {
67
- ^&__input {
68
- &-wrapper {
69
- left: 0;
70
- }
71
- }
72
- }
73
- }
74
- @keyframes searchPlaceHolderHide {
75
- from {
76
- opacity: 100%;
77
- }
78
- to {
79
- opacity: 0%;
80
- }
81
- }
82
- .search-input {
83
- &_shape {
84
- &_rounded {
85
- border-radius: var(--search-input-shape-rounded);
86
- position: relative;
87
- }
88
- }
89
64
  }
65
+
90
66
  .search-input {
91
67
  &_size {
92
68
  @each $size in xxl, xl, l, m, s, xs, xxs {
@@ -98,6 +74,7 @@
98
74
  }
99
75
  }
100
76
  }
77
+
101
78
  .search-input {
102
79
  &&_skeleton {
103
80
  background-size: 200% !important;
@@ -114,6 +91,7 @@
114
91
  }
115
92
  }
116
93
  }
94
+
117
95
  @keyframes searchInput {
118
96
  0% {
119
97
  background-position: 200%;
@@ -122,20 +100,14 @@
122
100
  background-position: -200%;
123
101
  }
124
102
  }
103
+
125
104
  .search-result {
126
105
  width: 100%;
127
106
  &__wrapper {
128
107
  width: 100%;
129
108
  }
130
109
  }
131
- .search-result {
132
- &_shape {
133
- &_rounded {
134
- border-radius: 6px;
135
- position: relative;
136
- }
137
- }
138
- }
110
+
139
111
  :root {
140
112
  --search-input-xxl-padding: 16px 12px;
141
113
  --search-input-xxl-gap: 4px;
@@ -4,8 +4,14 @@
4
4
  display: flex;
5
5
  justify-content: center;
6
6
  &__icon {
7
- display: flex;
8
- align-items: center;
7
+ &-before {
8
+ display: flex;
9
+ align-items: center;
10
+ }
11
+ &-after {
12
+ display: flex;
13
+ align-items: center;
14
+ }
9
15
  }
10
16
  &__wrapper {
11
17
  width: 100%;
@@ -52,21 +58,4 @@
52
58
  z-index: 2;
53
59
  transform: translate(0, -50%);
54
60
  }
55
- &&_state_focus,
56
- &&_state_filled {
57
- ^&__input {
58
- &-wrapper {
59
- left: 0;
60
- }
61
- }
62
- }
63
- }
64
-
65
- @keyframes searchPlaceHolderHide {
66
- from {
67
- opacity: 100%;
68
- }
69
- to {
70
- opacity: 0%;
71
- }
72
61
  }
@@ -5,7 +5,7 @@ declare const badgeAppearanceShape: {
5
5
  rounded: {
6
6
  shape: string;
7
7
  };
8
- roundedL: {
8
+ roundedS: {
9
9
  shape: string;
10
10
  shapeStrength: string;
11
11
  };
@@ -13,7 +13,7 @@ declare const badgeAppearanceShape: {
13
13
  shape: string;
14
14
  shapeStrength: string;
15
15
  };
16
- roundedS: {
16
+ roundedL: {
17
17
  shape: string;
18
18
  shapeStrength: string;
19
19
  };
@@ -5,7 +5,7 @@ declare const labelAppearanceShape: {
5
5
  rounded: {
6
6
  shape: string;
7
7
  };
8
- roundedL: {
8
+ roundedS: {
9
9
  shape: string;
10
10
  shapeStrength: string;
11
11
  };
@@ -13,7 +13,7 @@ declare const labelAppearanceShape: {
13
13
  shape: string;
14
14
  shapeStrength: string;
15
15
  };
16
- roundedS: {
16
+ roundedL: {
17
17
  shape: string;
18
18
  shapeStrength: string;
19
19
  };
@@ -0,0 +1,25 @@
1
+ declare const searchAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedS: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedM: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedL: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedXL: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { searchAppearanceShape };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.62",
3
+ "version": "1.8.63",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -1,8 +0,0 @@
1
- .search-input {
2
- &_shape {
3
- &_rounded {
4
- border-radius: var(--search-input-shape-rounded);
5
- position: relative;
6
- }
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- .search-result {
2
- &_shape {
3
- &_rounded {
4
- border-radius: 6px;
5
- position: relative;
6
- }
7
- }
8
- }