@itcase/ui 1.2.9 → 1.2.11

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 (89) hide show
  1. package/dist/{Button-53nOhnOL.js → Button-VFc2pmvE.js} +2 -2
  2. package/dist/{Button-C63pTYaS.js → Button-YvFWfIzn.js} +2 -2
  3. package/dist/{DropdownItem-m4hdxHp6.js → DropdownItem-Dy3DG4XJ.js} +1 -1
  4. package/dist/{DropdownItem-bB-KYqcL.js → DropdownItem-agqkY0-H.js} +1 -1
  5. package/dist/{Icon-DszS1y__.js → Icon-BanAVsve.js} +1 -1
  6. package/dist/{Icon-Bx2PdtAD.js → Icon-mG_ucnJz.js} +1 -1
  7. package/dist/{Link-Bqu5amIb.js → Link-BSquFKSX.js} +1 -1
  8. package/dist/{Link-DQxoFKhI.js → Link-BoJdm1hz.js} +1 -1
  9. package/dist/{MenuItem-DvIFaWkB.js → MenuItem-Snw0sSXT.js} +1 -1
  10. package/dist/{MenuItem-CNJfj0nV.js → MenuItem-p5bhKFb0.js} +1 -1
  11. package/dist/cjs/components/Accordion.js +3 -3
  12. package/dist/cjs/components/Avatar.js +3 -3
  13. package/dist/cjs/components/Breadcrumbs.js +3 -3
  14. package/dist/cjs/components/Button.js +4 -4
  15. package/dist/cjs/components/Cell.js +3 -3
  16. package/dist/cjs/components/Choice.js +3 -3
  17. package/dist/cjs/components/Code.js +1 -1
  18. package/dist/cjs/components/ContextMenu.js +3 -3
  19. package/dist/cjs/components/CookiesWarning.js +4 -4
  20. package/dist/cjs/components/DadataHintField.js +1 -1
  21. package/dist/cjs/components/DatePicker.js +4 -4
  22. package/dist/cjs/components/Dropdown.js +3 -3
  23. package/dist/cjs/components/FormField.js +3 -3
  24. package/dist/cjs/components/Icon.js +3 -3
  25. package/dist/cjs/components/InputPassword.js +3 -3
  26. package/dist/cjs/components/LanguageSelector.js +3 -3
  27. package/dist/cjs/components/Link.js +2 -2
  28. package/dist/cjs/components/List.js +2 -2
  29. package/dist/cjs/components/Logo.js +2 -2
  30. package/dist/cjs/components/Menu.js +3 -3
  31. package/dist/cjs/components/MenuItem.js +3 -3
  32. package/dist/cjs/components/Pagination.js +4 -4
  33. package/dist/cjs/components/Response.js +4 -4
  34. package/dist/cjs/components/ScrollOnDrag.js +1 -1
  35. package/dist/cjs/components/Search.js +3 -3
  36. package/dist/cjs/components/Select.js +18 -19
  37. package/dist/cjs/components/SiteMenu.js +3 -3
  38. package/dist/cjs/components/Tab.js +2 -2
  39. package/dist/components/Accordion.js +3 -3
  40. package/dist/components/Avatar.js +3 -3
  41. package/dist/components/Breadcrumbs.js +3 -3
  42. package/dist/components/Button.js +4 -4
  43. package/dist/components/Cell.js +3 -3
  44. package/dist/components/Choice.js +3 -3
  45. package/dist/components/Code.js +1 -1
  46. package/dist/components/ContextMenu.js +3 -3
  47. package/dist/components/CookiesWarning.js +4 -4
  48. package/dist/components/DadataHintField.js +1 -1
  49. package/dist/components/DatePicker.js +4 -4
  50. package/dist/components/Dropdown.js +3 -3
  51. package/dist/components/FormField.js +3 -3
  52. package/dist/components/Icon.js +3 -3
  53. package/dist/components/InputPassword.js +3 -3
  54. package/dist/components/LanguageSelector.js +3 -3
  55. package/dist/components/Link.js +2 -2
  56. package/dist/components/List.js +2 -2
  57. package/dist/components/Logo.js +2 -2
  58. package/dist/components/Menu.js +3 -3
  59. package/dist/components/MenuItem.js +3 -3
  60. package/dist/components/Pagination.js +4 -4
  61. package/dist/components/Response.js +4 -4
  62. package/dist/components/ScrollOnDrag.js +1 -1
  63. package/dist/components/Search.js +3 -3
  64. package/dist/components/Select.js +18 -19
  65. package/dist/components/SiteMenu.js +3 -3
  66. package/dist/components/Tab.js +2 -2
  67. package/dist/css/components/Swiper/Swiper.css +2 -2
  68. package/dist/css/styles/mediaqueries.css +12 -0
  69. package/dist/{tslib.es6-S-VPg1Cw.js → tslib.es6-5FtW-kfi.js} +1 -1
  70. package/dist/{tslib.es6-CKiUdo7p.js → tslib.es6-CCZ3TN_7.js} +1 -1
  71. package/dist/types/components/Select/Select.interface.d.ts +52 -49
  72. package/dist/types/components/Select/SelectClearIndicator.d.ts +2 -3
  73. package/dist/types/components/Select/SelectContainer.d.ts +2 -2
  74. package/dist/types/components/Select/SelectControl.d.ts +2 -3
  75. package/dist/types/components/Select/SelectDropdownIndicator.d.ts +1 -2
  76. package/dist/types/components/Select/SelectGroupHeading.d.ts +2 -3
  77. package/dist/types/components/Select/SelectIndicatorsContainer.d.ts +2 -3
  78. package/dist/types/components/Select/SelectInput.d.ts +2 -3
  79. package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -3
  80. package/dist/types/components/Select/SelectMenu.d.ts +2 -3
  81. package/dist/types/components/Select/SelectMultiValueContainer.d.ts +2 -3
  82. package/dist/types/components/Select/SelectMultiValueLabel.d.ts +2 -3
  83. package/dist/types/components/Select/SelectMultiValueRemove.d.ts +2 -3
  84. package/dist/types/components/Select/SelectNoOptions.d.ts +2 -3
  85. package/dist/types/components/Select/SelectOption.d.ts +1 -2
  86. package/dist/types/components/Select/SelectPlaceholder.d.ts +1 -2
  87. package/dist/types/components/Select/SelectSingleValue.d.ts +5 -2
  88. package/dist/types/components/Select/SelectValueContainer.d.ts +1 -2
  89. package/package.json +9 -9
@@ -1,7 +1,7 @@
1
- import { _ as __assign } from '../tslib.es6-S-VPg1Cw.js';
1
+ import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Select, { components } from 'react-select';
4
- import { I as Icon } from '../Icon-DszS1y__.js';
4
+ import { I as Icon } from '../Icon-BanAVsve.js';
5
5
  import React, { useMemo, useRef, useCallback, useEffect } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
@@ -20,18 +20,20 @@ import '../context/UIContext.js';
20
20
  import 'prop-types';
21
21
  import '../hooks/useMediaQueries.js';
22
22
  import 'react-responsive';
23
- import '../Link-Bqu5amIb.js';
23
+ import '../Link-BSquFKSX.js';
24
24
  import '../Tooltip-DJufHBiQ.js';
25
25
  import '../Title-BfSFPJtJ.js';
26
26
  import 'lodash/castArray';
27
27
 
28
+ // interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
29
+ // extends DefaultClearIndicatorProps<Option, IsMulti, Group> {}
28
30
  // For use memo need to check "ClearIndicator" props
29
31
  // const SelectClearIndicator = React.memo(
30
- function SelectClearIndicator(props) {
32
+ var SelectClearIndicator = function (props) {
31
33
  var children = props.children;
32
34
  var _a = props.selectProps, clearIcon = _a.clearIcon, clearIconFill = _a.clearIconFill;
33
35
  return (jsx(components.ClearIndicator, __assign({}, props, { children: clearIcon ? jsx(Icon, { iconFill: clearIconFill, SvgImage: clearIcon }) : children })));
34
- }
36
+ };
35
37
 
36
38
  var SelectControl = function (props) {
37
39
  var _a = props.selectProps, after = _a.after, before = _a.before, inputBorderColor = _a.inputBorderColor, inputBorderColorHover = _a.inputBorderColorHover, inputFill = _a.inputFill, inputShape = _a.inputShape;
@@ -91,13 +93,7 @@ var SelectMultiValueLabel = function (props) {
91
93
 
92
94
  var SelectMultiValueRemove = function (props) {
93
95
  var _a = props.selectProps, multipleItemIcon = _a.multipleItemIcon, multipleItemIconFill = _a.multipleItemIconFill;
94
- return (jsxs(components.MultiValueRemove, __assign({}, props, { children: [jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }), jsx(Select, { defaultValue: [{}], options: [
95
- {
96
- label: 'vs',
97
- options: [{ label: '' }],
98
- },
99
- {},
100
- ] })] })));
96
+ return (jsx(components.MultiValueRemove, __assign({}, props, { children: jsx(Icon, { iconFill: multipleItemIconFill, SvgImage: multipleItemIcon }) })));
101
97
  };
102
98
 
103
99
  var SelectNoOptions = function (props) {
@@ -246,9 +242,12 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
246
242
  var isTargetSelectContainer =
247
243
  // maybe here ".contains()"?
248
244
  event.target.hasClass && event.target.hasClass('select_state_hide-value-container');
249
- var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
250
- if (!isTargetSelectContainer && !isTargetInsideController) {
251
- (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
245
+ if ('current' in selectRef && selectRef.current && selectRef.current.controlRef) {
246
+ var isTargetInsideController = selectRef.current.controlRef.contains(event.target);
247
+ if (!isTargetSelectContainer && !isTargetInsideController) {
248
+ // @ts-expect-error
249
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.onInputBlur();
250
+ }
252
251
  }
253
252
  };
254
253
  if (hideValueContainer) {
@@ -263,9 +262,9 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
263
262
  var selectAppearanceItem = (appearance && selectConfig.appearance && selectConfig.appearance[appearance]) || {};
264
263
  return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass ||
265
264
  (selectAppearanceItem.size &&
266
- "select_size_".concat(selectAppearanceItem.size).replace(/([A-Z])/g, '-$1').toLowerCase()), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || selectAppearanceItem.elevation, filterOption: filterOption, headingFill: headingFillClass, headingFillHover: headingFillHoverClass, headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputTextColor: inputTextColorClass || selectAppearanceItem.inputTextColor, inputTextSize: inputTextSizeClass || selectAppearanceItem.inputTextSize, instanceId: instanceId,
265
+ "select_size_".concat(selectAppearanceItem.size).replace(/([A-Z])/g, '-$1').toLowerCase()), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set)), ref: selectRef, after: after, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, before: before, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, closeMenuOnSelect: closeMenuOnSelect !== null && closeMenuOnSelect !== void 0 ? closeMenuOnSelect : false, defaultValue: defaultValue || initialValue, dividerDirection: dividerDirection, dividerFill: dividerFill, dividerSize: dividerSize, dropdownFillHover: dropdownFillHover, dropdownIcon: dropdownIcon, dropdownIconFill: dropdownIconFill, dropdownIconShape: dropdownIconShape, elevation: elevation || selectAppearanceItem.elevation, filterOption: filterOption, headingFill: headingFillClass, headingFillHover: headingFillHoverClass, headingTextColor: headingTextColorClass, headingTextSize: headingTextSizeClass, headingTextWeight: headingTextWeightClass, hideSelectedOptions: hideSelectedOptions, inputAfter: inputAfter, inputBefore: inputBefore, inputCaretColor: inputCaretColorClass, inputTextSize: inputTextSizeClass || selectAppearanceItem.inputTextSize, instanceId: instanceId,
267
266
  // @ts-expect-error
268
- loadingMessage: getLoadingMessage, menuAfter: menuAfter, menuBefore: menuBefore, menuItemSize: menuItemSize, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass, noOptionBorderType: optionBorderTypeClass, noOptionsFill: optionFillClass, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText || selectAppearanceItem.noOptionsText, noOptionsTextColor: noOptionsTextColorClass || selectAppearanceItem.noOptionsTextColor, noOptionsTextSize: noOptionsTextSizeClass || selectAppearanceItem.noOptionsTextSize, openMenuOnClick: openMenuOnClick, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, options: options, optionSelected: optionSelected, optionShape: optionShapeClass, optionTextColor: optionTextColorClass || selectAppearanceItem.optionTextColor, optionTextSize: optionTextSizeClass || selectAppearanceItem.optionTextSize, placeholder: placeholder || selectAppearanceItem.placeholder, placeholderTextColor: placeholderTextColor || selectAppearanceItem.placeholderTextColor, placeholderTextSize: placeholderTextSize || selectAppearanceItem.placeholderTextSize, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, components: {
267
+ loadingMessage: getLoadingMessage, menuAfter: menuAfter, menuBefore: menuBefore, menuItemSize: menuItemSize, multipleItemFill: multipleItemFill, multipleItemFillHover: multipleItemFillHover, multipleItemIcon: multipleItemIcon, multipleItemIconFill: multipleItemIconFill, multipleItemTextColor: multipleItemTextColorClass, multipleItemTextSize: multipleItemTextSizeClass, noOptionBorder: optionBorderClass, noOptionBorderType: optionBorderTypeClass, noOptionsFill: optionFillClass, noOptionsSearchText: noOptionsSearchText, noOptionsText: noOptionsText || selectAppearanceItem.noOptionsText, openMenuOnClick: openMenuOnClick, optionAfter: optionAfter, optionBefore: optionBefore, optionBorder: optionBorderClass, optionBorderType: optionBorderTypeClass, options: options, optionSelected: optionSelected, optionShape: optionShapeClass, placeholder: placeholder || selectAppearanceItem.placeholder, placeholderTextColor: placeholderTextColor || selectAppearanceItem.placeholderTextColor, placeholderTextSize: placeholderTextSize || selectAppearanceItem.placeholderTextSize, showBadge: showBadge, showDivider: showDivider, styles: clearStyle, value: value, components: {
269
268
  ClearIndicator: SelectClearIndicator,
270
269
  Control: SelectControl,
271
270
  DropdownIndicator: SelectDropdownIndicator,
@@ -295,13 +294,13 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
295
294
  (selectAppearanceItem.inputShape &&
296
295
  "select__control_shape_".concat(selectAppearanceItem.inputShape)
297
296
  .replace(/([A-Z])/g, '-$1')
298
- .toLowerCase()), optionFill: optionFillClass ||
297
+ .toLowerCase()), inputTextColor: inputTextColorClass || selectAppearanceItem.inputTextColor, noOptionsTextColor: noOptionsTextColorClass || selectAppearanceItem.noOptionsTextColor, noOptionsTextSize: noOptionsTextSizeClass || selectAppearanceItem.noOptionsTextSize, optionFill: optionFillClass ||
299
298
  (selectAppearanceItem.optionFill &&
300
299
  "fill_".concat(selectAppearanceItem.optionFill).replace(/([A-Z])/g, '-$1').toLowerCase()), optionFillHover: optionFillHoverClass ||
301
300
  (selectAppearanceItem.optionFillHover &&
302
301
  "fill_hover_".concat(selectAppearanceItem.optionFillHover)
303
302
  .replace(/([A-Z])/g, '-$1')
304
- .toLowerCase()), isClearable: isClearable, isDisabled: isDisabled, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, set: set, onChange: onChange, onInputChange: onInputChange }));
303
+ .toLowerCase()), optionTextColor: optionTextColorClass || selectAppearanceItem.optionTextColor, optionTextSize: optionTextSizeClass || selectAppearanceItem.optionTextSize, isClearable: isClearable, isDisabled: isDisabled, isLoading: isLoading, isMulti: isMulti, isSearchable: isSearchable, set: set, onChange: onChange, onInputChange: onInputChange }));
305
304
  });
306
305
  SelectContainer.defaultProps = {
307
306
  // @ts-expect-error
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useSiteMenuContext } from '../context/UIContext.js';
5
5
  import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
6
- import { I as Icon } from '../Icon-DszS1y__.js';
6
+ import { I as Icon } from '../Icon-BanAVsve.js';
7
7
  import { T as Text } from '../Text-CG3xPG27.js';
8
8
  import 'prop-types';
9
9
  import '../hooks/useMediaQueries.js';
@@ -15,8 +15,8 @@ import '../hooks/useStyles.js';
15
15
  import 'lodash/maxBy';
16
16
  import 'lodash/upperFirst';
17
17
  import '../hooks/styleAttributes.js';
18
- import '../Link-Bqu5amIb.js';
19
- import '../tslib.es6-S-VPg1Cw.js';
18
+ import '../Link-BSquFKSX.js';
19
+ import '../tslib.es6-5FtW-kfi.js';
20
20
  import '../Tooltip-DJufHBiQ.js';
21
21
  import '../Title-BfSFPJtJ.js';
22
22
 
@@ -5,7 +5,7 @@ import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
5
5
  import { useStyles } from '../hooks/useStyles.js';
6
6
  import { B as Badge } from '../Badge-CrhdvxY6.js';
7
7
  import { D as Divider } from '../Divider-U5UdY-ef.js';
8
- import { L as Link } from '../Link-Bqu5amIb.js';
8
+ import { L as Link } from '../Link-BSquFKSX.js';
9
9
  import { T as Text } from '../Text-CG3xPG27.js';
10
10
  import 'lodash/castArray';
11
11
  import 'lodash/camelCase';
@@ -16,7 +16,7 @@ import 'react-responsive';
16
16
  import 'lodash/maxBy';
17
17
  import 'lodash/upperFirst';
18
18
  import '../hooks/styleAttributes.js';
19
- import '../tslib.es6-S-VPg1Cw.js';
19
+ import '../tslib.es6-5FtW-kfi.js';
20
20
 
21
21
  var tabConfig = {
22
22
  appearance: undefined,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 11.1.12
2
+ * Swiper 11.1.14
3
3
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4
4
  * https://swiperjs.com
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: September 1, 2024
10
+ * Released on: September 12, 2024
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -64,3 +64,15 @@
64
64
  @custom-media --console (hover: hover) and (pointer: coarse);
65
65
 
66
66
  @custom-media --mouse (hover: hover) and (pointer: fine);
67
+
68
+ @custom-media --tiny-viewport (width >= 1280px) and (height <= 720px);
69
+
70
+ @custom-media --small-viewport (width >= 1366px) and (height < 768px);
71
+
72
+ @custom-media --medium-viewport (width >= 1440px) and (height < 900px);
73
+
74
+ @custom-media --large-viewport (width >= 1440px) and (height < 900px);
75
+
76
+ @custom-media --huge-viewport (width >= 1600px) and (height < 900px);
77
+
78
+ @custom-media --super-huge-viewport (width >= 1920px) and (height >= 1080px);
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol */
15
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
16
 
17
17
 
18
18
  var __assign = function() {
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */
17
- /* global Reflect, Promise, SuppressedError, Symbol */
17
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
18
18
 
19
19
 
20
20
  exports.__assign = function() {
@@ -1,8 +1,27 @@
1
1
  import type { ReactNode } from 'react';
2
- import { GroupBase, Props } from 'react-select';
3
- import { borderColorHoverPropsType, sizeOptionPropsType, tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
2
+ import { GroupBase, PropsValue } from 'react-select';
3
+ import { Props } from 'react-select/base';
4
+ import { borderColorHoverPropsType, borderTypePropsType, sizeOptionPropsType, tBorderColorProps, tDirectionProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
4
5
  import type { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
5
- interface iSelectThemeColor extends iSelectPropsCustom {
6
+ interface iSelectThemeColor {
7
+ elevation?: number;
8
+ inputBorderColor?: tBorderColorProps;
9
+ inputBorderColorHover?: borderColorHoverPropsType;
10
+ inputFill?: string;
11
+ inputShape?: string;
12
+ inputTextColor?: tTextColorProps;
13
+ inputTextSize?: tTextSizeProps;
14
+ noOptionsText?: ReactNode;
15
+ noOptionsTextColor?: tTextColorProps;
16
+ noOptionsTextSize?: tTextSizeProps;
17
+ optionFill?: string;
18
+ optionFillHover?: string;
19
+ optionTextColor?: tTextColorProps;
20
+ optionTextSize?: tTextSizeProps;
21
+ placeholder?: React.ReactNode;
22
+ placeholderTextColor?: tTextColorProps;
23
+ placeholderTextSize?: tTextSizeProps;
24
+ size?: sizeOptionPropsType;
6
25
  }
7
26
  type tSelectAppearance = {
8
27
  [key in tAppearanceKeysDefault]?: iSelectThemeColor;
@@ -11,25 +30,24 @@ interface iSelectConfig {
11
30
  appearance: tSelectAppearance | undefined;
12
31
  setAppearance: (newComponent: tSelectAppearance) => void;
13
32
  }
14
- interface iSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | 'defaultValue' | 'filterOption' | 'hideSelectedOptions' | 'instanceId' | 'isClearable' | 'isDisabled' | 'isLoading' | 'isMulti' | 'isSearchable' | 'loadingMessage' | 'onChange' | 'onInputChange' | 'openMenuOnClick' | 'options' | 'value'>, iSelectPropsCustom {
15
- }
16
- interface iSelectCustomComponentsProps {
17
- data?: {
18
- label?: ReactNode;
19
- optionAfter?: ReactNode;
20
- optionBefore?: ReactNode;
21
- };
22
- selectProps?: iSelectPropsCustom;
33
+ interface iSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends Partial<Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | 'filterOption' | 'hideSelectedOptions' | 'hideValueContainer' | 'instanceId' | 'isClearable' | 'isDisabled' | 'isLoading' | 'isMulti' | 'isSearchable' | 'loadingMessage' | 'onChange' | 'onInputChange' | 'openMenuOnClick' | 'options' | 'value'>>, iSelectThemeColor, iSelectPropsCustom<Option> {
23
34
  }
24
- interface iSelectPropsCustom {
25
- after?: ReactNode;
35
+ interface iSelectPropsCustom<Option> {
36
+ after?: React.ReactNode;
26
37
  appearance?: tAppearanceKeysDefault;
27
38
  badgeAppearance?: tAppearanceKeysDefault;
28
39
  badgeSize?: tSizeProps;
29
40
  badgeTextSize?: tTextSizeProps;
30
- before?: ReactNode;
41
+ before?: React.ReactNode;
42
+ borderColor?: tBorderColorProps;
31
43
  clearIcon?: any;
32
44
  clearIconFill?: tItemColorProps;
45
+ data?: {
46
+ label?: React.ReactNode;
47
+ optionAfter?: React.ReactNode;
48
+ optionBefore?: React.ReactNode;
49
+ };
50
+ defaultValue?: PropsValue<Option>;
33
51
  dividerDirection?: tDirectionProps;
34
52
  dividerFill?: tFillProps;
35
53
  dividerSize?: tSizeProps;
@@ -37,27 +55,22 @@ interface iSelectPropsCustom {
37
55
  dropdownIcon?: any;
38
56
  dropdownIconFill?: tItemColorProps;
39
57
  dropdownIconShape?: tShapeProps;
40
- elevation?: number;
41
- fetchingData?: ReactNode;
42
- headingFill?: string;
43
- headingFillHover?: string;
58
+ fetchingData?: React.ReactNode;
59
+ fill?: tFillProps;
60
+ fillHover?: tFillHoverProps;
61
+ headingFill?: tFillProps;
62
+ headingFillHover?: string | null;
44
63
  headingTextColor?: tTextColorProps;
45
64
  headingTextSize?: tTextSizeProps;
46
65
  headingTextWeight?: tTextWeightProps;
47
66
  hideValueContainer?: boolean;
48
- inputAfter?: ReactNode;
49
- inputBefore?: ReactNode;
50
- inputBorderColor?: tBorderColorProps;
51
- inputBorderColorHover?: borderColorHoverPropsType;
52
- inputCaretColor?: string;
53
- inputFill?: string;
54
- inputShape?: string;
55
- inputTextColor?: tTextColorProps;
56
- inputTextSize?: tTextSizeProps;
67
+ inputAfter?: React.ReactNode;
68
+ inputBefore?: React.ReactNode;
69
+ inputCaretColor?: string | null;
57
70
  inputValue?: string;
58
- loadingIndicator?: ReactNode;
59
- menuAfter?: ReactNode;
60
- menuBefore?: ReactNode;
71
+ loadingIndicator?: React.ReactNode;
72
+ menuAfter?: React.ReactNode;
73
+ menuBefore?: React.ReactNode;
61
74
  menuItemSize?: string;
62
75
  multipleItemFill?: tFillProps;
63
76
  multipleItemFillHover?: tFillHoverProps;
@@ -65,27 +78,17 @@ interface iSelectPropsCustom {
65
78
  multipleItemIconFill?: tItemColorProps;
66
79
  multipleItemTextColor?: tTextColorProps;
67
80
  multipleItemTextSize?: tTextSizeProps;
68
- noOptionsSearchText?: ReactNode;
69
- noOptionsText?: ReactNode;
70
- noOptionsTextColor?: tTextColorProps;
71
- noOptionsTextSize?: tTextSizeProps;
72
- optionAfter?: ReactNode;
73
- optionBefore?: ReactNode;
74
- optionBorder?: string;
75
- optionBorderType?: string;
76
- optionFill?: string;
77
- optionFillHover?: string;
78
- optionSelected?: ReactNode;
81
+ noOptionsSearchText?: React.ReactNode;
82
+ optionAfter?: React.ReactNode;
83
+ optionBefore?: React.ReactNode;
84
+ optionBorder?: tBorderColorProps;
85
+ optionBorderType?: borderTypePropsType;
86
+ optionSelected?: React.ReactNode;
79
87
  optionShape?: tShapeProps;
80
- optionTextColor?: tTextColorProps;
81
- optionTextSize?: tTextSizeProps;
82
- placeholder?: ReactNode;
83
- placeholderTextColor?: tTextColorProps;
84
- placeholderTextSize?: tTextSizeProps;
88
+ shape?: tShapeProps;
85
89
  showBadge?: boolean;
86
90
  showDivider?: boolean;
87
- size?: sizeOptionPropsType;
88
91
  isCreatable?: boolean;
89
92
  set?: string;
90
93
  }
91
- export type { iSelectCustomComponentsProps, iSelectThemeColor, iSelectPropsCustom, tSelectAppearance, iSelectConfig, iSelectProps, };
94
+ export type { iSelectThemeColor, iSelectPropsCustom, tSelectAppearance, iSelectConfig, iSelectProps, };
@@ -1,4 +1,3 @@
1
- import { ClearIndicatorProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare function SelectClearIndicator(props: ClearIndicatorProps & iSelectCustomComponentsProps): import("react/jsx-runtime").JSX.Element;
1
+ import { ClearIndicatorProps, GroupBase } from 'react-select';
2
+ declare const SelectClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectClearIndicator };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GroupBase } from 'react-select';
2
+ import { GroupBase, SelectInstance } from 'react-select';
3
3
  import { iSelectProps } from './Select.interface';
4
- declare const SelectContainer: React.ForwardRefExoticComponent<iSelectProps<unknown, boolean, GroupBase<unknown>> & React.RefAttributes<unknown>>;
4
+ declare const SelectContainer: React.ForwardRefExoticComponent<iSelectProps<unknown, boolean, GroupBase<unknown>> & React.RefAttributes<SelectInstance<unknown, boolean, GroupBase<unknown>>>>;
5
5
  export { SelectContainer };
@@ -1,4 +1,3 @@
1
- import { ControlProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectControl: (props: ControlProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { ControlProps, GroupBase } from 'react-select';
2
+ declare const SelectControl: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectControl };
@@ -1,4 +1,3 @@
1
1
  import { DropdownIndicatorProps, GroupBase } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectDropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group> & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SelectDropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectDropdownIndicator };
@@ -1,4 +1,3 @@
1
- import { GroupHeadingProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectGroupHeading: (props: GroupHeadingProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, GroupHeadingProps } from 'react-select';
2
+ declare const SelectGroupHeading: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: GroupHeadingProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectGroupHeading };
@@ -1,4 +1,3 @@
1
- import { IndicatorsContainerProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectIndicatorsContainer: (props: IndicatorsContainerProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, IndicatorsContainerProps } from 'react-select';
2
+ declare const SelectIndicatorsContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: IndicatorsContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectIndicatorsContainer };
@@ -1,4 +1,3 @@
1
- import { InputProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectInput: (props: InputProps & iSelectCustomComponentsProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, InputProps } from 'react-select';
2
+ declare const SelectInput: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectInput };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { LoadingIndicatorProps } from 'react-select';
3
- import { iSelectCustomComponentsProps } from './Select.interface';
4
- declare const SelectLoadingIndicator: (props: iSelectCustomComponentsProps & LoadingIndicatorProps) => React.ReactNode;
2
+ import { GroupBase, LoadingIndicatorProps } from 'react-select';
3
+ declare const SelectLoadingIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: LoadingIndicatorProps<Option, IsMulti, Group>) => React.ReactNode;
5
4
  export { SelectLoadingIndicator };
@@ -1,4 +1,3 @@
1
- import { MenuProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectMenu: (props: iSelectCustomComponentsProps & MenuProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, MenuProps } from 'react-select';
2
+ declare const SelectMenu: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectMenu };
@@ -1,4 +1,3 @@
1
- import { MultiValueGenericProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectMultiValueContainer: (props: iSelectCustomComponentsProps & MultiValueGenericProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, MultiValueGenericProps } from 'react-select';
2
+ declare const SelectMultiValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueGenericProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectMultiValueContainer };
@@ -1,4 +1,3 @@
1
- import { MultiValueGenericProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectMultiValueLabel: (props: iSelectCustomComponentsProps & MultiValueGenericProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, MultiValueGenericProps } from 'react-select';
2
+ declare const SelectMultiValueLabel: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueGenericProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectMultiValueLabel };
@@ -1,4 +1,3 @@
1
- import { MultiValueRemoveProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectMultiValueRemove: (props: iSelectCustomComponentsProps & MultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, MultiValueRemoveProps } from 'react-select';
2
+ declare const SelectMultiValueRemove: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueRemoveProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectMultiValueRemove };
@@ -1,4 +1,3 @@
1
- import { NoticeProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectNoOptions: (props: iSelectCustomComponentsProps & NoticeProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { GroupBase, NoticeProps } from 'react-select';
2
+ declare const SelectNoOptions: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: NoticeProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectNoOptions };
@@ -1,4 +1,3 @@
1
1
  import { GroupBase, OptionProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectOption: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & OptionProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SelectOption: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectOption };
@@ -1,4 +1,3 @@
1
1
  import { GroupBase, PlaceholderProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectPlaceholder: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & PlaceholderProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SelectPlaceholder: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: PlaceholderProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectPlaceholder };
@@ -1,4 +1,7 @@
1
+ import React from 'react';
1
2
  import { GroupBase, SingleValueProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectSingleValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & SingleValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SelectSingleValue: <Option extends {
4
+ optionAfter?: React.ReactNode;
5
+ optionBefore?: React.ReactNode;
6
+ }, IsMulti extends boolean, Group extends GroupBase<Option>>(props: SingleValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
7
  export { SelectSingleValue };
@@ -1,4 +1,3 @@
1
1
  import { GroupBase, ValueContainerProps } from 'react-select';
2
- import { iSelectCustomComponentsProps } from './Select.interface';
3
- declare const SelectValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & ValueContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SelectValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ValueContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
3
  export { SelectValueContainer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -90,7 +90,7 @@
90
90
  "registry": "https://registry.npmjs.org/"
91
91
  },
92
92
  "dependencies": {
93
- "@itcase/common": "^1.2.9",
93
+ "@itcase/common": "^1.2.10",
94
94
  "clsx": "^2.1.1",
95
95
  "html5-boilerplate": "^9.0.1",
96
96
  "js-cookie": "^3.0.5",
@@ -112,7 +112,7 @@
112
112
  "react-scroll": "^1.9.0",
113
113
  "react-scrollbars-custom": "^4.1.1",
114
114
  "react-select": "^5.8.0",
115
- "swiper": "^11.1.12",
115
+ "swiper": "^11.1.14",
116
116
  "uuid": "^10.0.0"
117
117
  },
118
118
  "devDependencies": {
@@ -121,8 +121,8 @@
121
121
  "@babel/eslint-plugin": "^7.25.1",
122
122
  "@babel/preset-env": "^7.25.4",
123
123
  "@babel/preset-react": "^7.24.7",
124
- "@commitlint/cli": "^19.4.1",
125
- "@commitlint/config-conventional": "^19.4.1",
124
+ "@commitlint/cli": "^19.5.0",
125
+ "@commitlint/config-conventional": "^19.5.0",
126
126
  "@itcase/lint": "^1.0.13",
127
127
  "@rollup/plugin-babel": "^6.0.4",
128
128
  "@rollup/plugin-commonjs": "^26.0.1",
@@ -139,16 +139,16 @@
139
139
  "@types/react-datepicker": "^7.0.0",
140
140
  "@types/react-dom": "^18.3.0",
141
141
  "@types/react-scroll": "^1.8.10",
142
- "babel-loader": "^9.1.3",
142
+ "babel-loader": "^9.2.1",
143
143
  "babel-plugin-inline-react-svg": "^2.0.2",
144
144
  "babel-plugin-react-docgen": "^4.2.1",
145
145
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
146
146
  "conventional-changelog-conventionalcommits": "^8.0.0",
147
147
  "eslint": "9.10.0",
148
- "husky": "^9.1.5",
148
+ "husky": "^9.1.6",
149
149
  "lint-staged": "^15.2.10",
150
150
  "npm": "^10.8.3",
151
- "postcss": "^8.4.45",
151
+ "postcss": "^8.4.47",
152
152
  "postcss-aspect-ratio-polyfill": "^2.0.0",
153
153
  "postcss-cli": "^11.0.0",
154
154
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -171,7 +171,7 @@
171
171
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
172
172
  "postcss-sort-media-queries": "^5.2.0",
173
173
  "prettier": "^3.3.3",
174
- "rollup": "^4.21.2",
174
+ "rollup": "^4.21.3",
175
175
  "rollup-plugin-copy": "^3.5.0",
176
176
  "rollup-plugin-dts": "^6.1.1",
177
177
  "rollup-plugin-peer-deps-external": "^2.2.4",