@itcase/ui 1.9.51 → 1.9.53

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 (200) hide show
  1. package/dist/{Avatar_cjs_CZ0XJ6d2.js → Avatar_cjs_BIHJrAbQ.js} +2 -2
  2. package/dist/{Avatar_es_B2gMldVe.js → Avatar_es_CtP68jPM.js} +2 -2
  3. package/dist/{Button_cjs_BSfL-20W.js → Button_cjs_B8cIJYbm.js} +6 -6
  4. package/dist/{Button_es_Dk6_9N-r.js → Button_es_DQGp8Ipn.js} +6 -6
  5. package/dist/{ChipsGroup_cjs_D0xy5I4S.js → ChipsGroup_cjs_C27x9x9O.js} +3 -5
  6. package/dist/{ChipsGroup_es_C_dgXLfC.js → ChipsGroup_es_BTe1MYhV.js} +3 -5
  7. package/dist/{DatePicker_cjs_avA-OHmZ.js → DatePicker_cjs_CY5UAP1l.js} +5 -5
  8. package/dist/{DatePicker_es_ungoFvip.js → DatePicker_es_Cze2Bv6w.js} +5 -5
  9. package/dist/{DropdownItem_cjs_pJblsTmA.js → DropdownItem_cjs_k28TIoDU.js} +1 -1
  10. package/dist/{DropdownItem_es_Xq7G5-UI.js → DropdownItem_es_DjPgbwtU.js} +1 -1
  11. package/dist/{Icon_cjs_CuqEv1jm.js → Icon_cjs_DTvdhr8B.js} +33 -4
  12. package/dist/{Icon_es_BYViOa6l.js → Icon_es_kewxGRUB.js} +33 -4
  13. package/dist/{Image_cjs_C_FMjUjx.js → Image_cjs_Hvjp2QDB.js} +2 -2
  14. package/dist/{Image_es_Ca7UQOkj.js → Image_es_DpOCNWpn.js} +2 -2
  15. package/dist/{Label_cjs_DsuCRIyo.js → Label_cjs_RI5tFcPt.js} +1 -1
  16. package/dist/{Label_es_BPQhW13g.js → Label_es_CNRTIAWo.js} +1 -1
  17. package/dist/{Loader_cjs_DMIUN6_q.js → Loader_cjs_CJpdLndn.js} +19 -4
  18. package/dist/{Loader_es_DLb2P-Sk.js → Loader_es_CqlLujBJ.js} +19 -4
  19. package/dist/{SelectContainer_cjs_DshFNYWN.js → SelectContainer_cjs_DXYUcpco.js} +7 -7
  20. package/dist/{SelectContainer_es_BQ3-SqL2.js → SelectContainer_es_De_XL0im.js} +7 -7
  21. package/dist/cjs/components/Accordion.js +2 -2
  22. package/dist/cjs/components/Avatar.js +7 -6
  23. package/dist/cjs/components/AvatarStack.js +4 -4
  24. package/dist/cjs/components/Badge.js +6 -5
  25. package/dist/cjs/components/Breadcrumbs.js +2 -1
  26. package/dist/cjs/components/Button.js +8 -8
  27. package/dist/cjs/components/Cell.js +3 -3
  28. package/dist/cjs/components/Checkbox.js +47 -50
  29. package/dist/cjs/components/Checkmark.js +32 -6
  30. package/dist/cjs/components/Chips.js +5 -4
  31. package/dist/cjs/components/Choice.js +4 -3
  32. package/dist/cjs/components/CookiesWarning.js +7 -7
  33. package/dist/cjs/components/DatePeriod.js +12 -12
  34. package/dist/cjs/components/DatePicker.js +10 -10
  35. package/dist/cjs/components/Drawer.js +26 -26
  36. package/dist/cjs/components/Dropdown.js +5 -4
  37. package/dist/cjs/components/Dropzone.js +1751 -0
  38. package/dist/cjs/components/HeroTitle.js +4 -3
  39. package/dist/cjs/components/Icon.js +6 -5
  40. package/dist/cjs/components/Image.js +1 -1
  41. package/dist/cjs/components/InputNumber.js +8 -8
  42. package/dist/cjs/components/InputPassword.js +6 -5
  43. package/dist/cjs/components/Label.js +5 -4
  44. package/dist/cjs/components/Loader.js +2 -2
  45. package/dist/cjs/components/MenuItem.js +2 -1
  46. package/dist/cjs/components/Modal.js +4 -4
  47. package/dist/cjs/components/ModalSheetBottom.js +4 -3
  48. package/dist/cjs/components/Notification.js +12 -12
  49. package/dist/cjs/components/Pagination.js +4 -3
  50. package/dist/cjs/components/Response.js +5 -5
  51. package/dist/cjs/components/Search.js +3 -2
  52. package/dist/cjs/components/Segmented.js +5 -4
  53. package/dist/cjs/components/Select/stories/__mock__.js +4 -4
  54. package/dist/cjs/components/Select.js +5 -5
  55. package/dist/cjs/components/Swiper.js +3 -2
  56. package/dist/cjs/components/Tab.js +1 -1
  57. package/dist/cjs/components/Tile.js +4 -3
  58. package/dist/cjs/components/Title.js +6 -5
  59. package/dist/cjs/components/Tooltip.js +6 -5
  60. package/dist/cjs/components/Warning.js +3 -2
  61. package/dist/cjs/context/Notifications.js +1 -1
  62. package/dist/cjs/context/UIContext.js +7 -1
  63. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +9 -9
  64. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.js +3 -3
  65. package/dist/cjs/hooks/useDropzoneFieldFiles.js +20769 -0
  66. package/dist/cjs/hooks/useStyles/styleAttributes.js +166 -43
  67. package/dist/cjs/hooks/useStyles/useStyles.js +169 -155
  68. package/dist/cjs/utils/mergeAppearanceKeys.js +14 -1
  69. package/dist/components/Accordion.js +2 -2
  70. package/dist/components/Avatar.js +7 -6
  71. package/dist/components/AvatarStack.js +4 -4
  72. package/dist/components/Badge.js +6 -5
  73. package/dist/components/Breadcrumbs.js +2 -1
  74. package/dist/components/Button.js +8 -8
  75. package/dist/components/Cell.js +3 -3
  76. package/dist/components/Checkbox.js +47 -50
  77. package/dist/components/Checkmark.js +32 -6
  78. package/dist/components/Chips.js +5 -4
  79. package/dist/components/Choice.js +4 -3
  80. package/dist/components/CookiesWarning.js +7 -7
  81. package/dist/components/DatePeriod.js +12 -12
  82. package/dist/components/DatePicker.js +10 -10
  83. package/dist/components/Drawer.js +26 -26
  84. package/dist/components/Dropdown.js +5 -4
  85. package/dist/components/Dropzone.js +1749 -0
  86. package/dist/components/HeroTitle.js +4 -3
  87. package/dist/components/Icon.js +6 -5
  88. package/dist/components/Image.js +1 -1
  89. package/dist/components/InputNumber.js +8 -8
  90. package/dist/components/InputPassword.js +6 -5
  91. package/dist/components/Label.js +5 -4
  92. package/dist/components/Loader.js +2 -2
  93. package/dist/components/MenuItem.js +2 -1
  94. package/dist/components/Modal.js +4 -4
  95. package/dist/components/ModalSheetBottom.js +4 -3
  96. package/dist/components/Notification.js +12 -12
  97. package/dist/components/Pagination.js +4 -3
  98. package/dist/components/Response.js +5 -5
  99. package/dist/components/Search.js +3 -2
  100. package/dist/components/Segmented.js +5 -4
  101. package/dist/components/Select/stories/__mock__.js +4 -4
  102. package/dist/components/Select.js +5 -5
  103. package/dist/components/Swiper.js +3 -2
  104. package/dist/components/Tab.js +1 -1
  105. package/dist/components/Tile.js +4 -3
  106. package/dist/components/Title.js +6 -5
  107. package/dist/components/Tooltip.js +6 -5
  108. package/dist/components/Warning.js +3 -2
  109. package/dist/context/Notifications.js +1 -1
  110. package/dist/context/UIContext.js +7 -1
  111. package/dist/css/styles/bundles.css +440 -207
  112. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +9 -9
  113. package/dist/hooks/useActiveClasses/useActiveClasses.js +3 -3
  114. package/dist/hooks/useDropzoneFieldFiles.js +20767 -0
  115. package/dist/hooks/useStyles/styleAttributes.js +166 -43
  116. package/dist/hooks/useStyles/useStyles.js +169 -155
  117. package/dist/stories/DropzoneOverview.mdx +11 -0
  118. package/dist/stories/DropzonePlayground.mdx +10 -0
  119. package/dist/types/components/Avatar/Avatar.interface.d.ts +2 -2
  120. package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -15
  121. package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +9 -8
  122. package/dist/types/components/Button/Button.d.ts +3 -2
  123. package/dist/types/components/Button/Button.interface.d.ts +4 -4
  124. package/dist/types/components/Button/stories/ButtonDefault.stories.d.ts +3 -2
  125. package/dist/types/components/Button/stories/ButtonDemo.stories.d.ts +3 -2
  126. package/dist/types/components/Button/stories/ButtonIcon.stories.d.ts +3 -2
  127. package/dist/types/components/Button/stories/ButtonLabel.stories.d.ts +3 -2
  128. package/dist/types/components/Button/stories/ButtonLoading.stories.d.ts +3 -2
  129. package/dist/types/components/Button/stories/ButtonMuted.stories.d.ts +3 -2
  130. package/dist/types/components/Button/stories/ButtonMutedIcon.stories.d.ts +3 -2
  131. package/dist/types/components/Button/stories/ButtonShape.stories.d.ts +3 -2
  132. package/dist/types/components/Button/stories/ButtonSize.stories.d.ts +3 -2
  133. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +3 -3
  134. package/dist/types/components/Checkbox/appearance/checkboxShape.d.ts +3 -0
  135. package/dist/types/components/Checkmark/Checkmark.interface.d.ts +8 -2
  136. package/dist/types/components/Checkmark/appearance/checkmarkError.d.ts +3 -0
  137. package/dist/types/components/Checkmark/stories/CheckmarkError.stories.d.ts +23 -0
  138. package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
  139. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +20 -19
  140. package/dist/types/components/DatePeriod/stories/DatePeriodSize.stories.d.ts +3 -0
  141. package/dist/types/components/DatePicker/DatePicker.interface.d.ts +4 -3
  142. package/dist/types/components/Dropzone/Dropzone.appearance.d.ts +3 -0
  143. package/dist/types/components/Dropzone/Dropzone.d.ts +4 -0
  144. package/dist/types/components/Dropzone/Dropzone.interface.d.ts +82 -0
  145. package/dist/types/components/Dropzone/appearance/dropzoneDefault.d.ts +3 -0
  146. package/dist/types/components/Dropzone/appearance/dropzoneDisabled.d.ts +3 -0
  147. package/dist/types/components/Dropzone/appearance/dropzoneError.d.ts +3 -0
  148. package/dist/types/components/Dropzone/appearance/dropzoneRequire.d.ts +3 -0
  149. package/dist/types/components/Dropzone/appearance/dropzoneShape.d.ts +3 -0
  150. package/dist/types/components/Dropzone/appearance/dropzoneSuccess.d.ts +3 -0
  151. package/dist/types/components/Dropzone/index.d.ts +1 -0
  152. package/dist/types/components/Dropzone/stories/DropzoneDefault.stories.d.ts +42 -0
  153. package/dist/types/components/Dropzone/stories/DropzoneDemo.stories.d.ts +19 -0
  154. package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -1
  155. package/dist/types/components/Icon/Icon.interface.d.ts +3 -2
  156. package/dist/types/components/Link/Link.interface.d.ts +1 -1
  157. package/dist/types/components/List/List.interface.d.ts +1 -1
  158. package/dist/types/components/Loader/Loader.interface.d.ts +5 -4
  159. package/dist/types/components/Loader/stories/LoaderAppearance.stories.d.ts +3 -0
  160. package/dist/types/components/Loader/stories/LoaderText.stories.d.ts +25 -0
  161. package/dist/types/components/Loader/stories/LoaderType.stories.d.ts +25 -0
  162. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
  163. package/dist/types/components/Notification/Notification.interface.d.ts +2 -2
  164. package/dist/types/components/Search/Search.interface.d.ts +10 -9
  165. package/dist/types/components/Search/SearchInput.d.ts +7 -7
  166. package/dist/types/components/Search/stories/SearchInputDefault.stories.d.ts +7 -7
  167. package/dist/types/components/Search/stories/SearchInputDemo.stories.d.ts +7 -7
  168. package/dist/types/components/Search/stories/SearchInputDisabled.stories.d.ts +7 -7
  169. package/dist/types/components/Search/stories/SearchInputError.stories.d.ts +7 -7
  170. package/dist/types/components/Search/stories/SearchInputRequire.stories.d.ts +7 -7
  171. package/dist/types/components/Search/stories/SearchInputShape.stories.d.ts +7 -7
  172. package/dist/types/components/Search/stories/SearchInputSize.stories.d.ts +7 -7
  173. package/dist/types/components/Search/stories/SearchInputStyle.stories.d.ts +7 -7
  174. package/dist/types/components/Search/stories/SearchInputSuccess.stories.d.ts +7 -7
  175. package/dist/types/components/Select/Select.interface.d.ts +9 -7
  176. package/dist/types/components/Select/SelectContainer.d.ts +4 -1
  177. package/dist/types/components/Select/SelectMultiValue.d.ts +2 -2
  178. package/dist/types/components/Select/stories/Select.stories.d.ts +5 -3
  179. package/dist/types/components/Select/stories/SelectDefault.stories.d.ts +5 -3
  180. package/dist/types/components/Select/stories/SelectDisabled.stories.d.ts +5 -3
  181. package/dist/types/components/Select/stories/SelectError.stories.d.ts +5 -3
  182. package/dist/types/components/Select/stories/SelectRequire.stories.d.ts +5 -3
  183. package/dist/types/components/Select/stories/SelectShape.stories.d.ts +5 -3
  184. package/dist/types/components/Select/stories/SelectSize.stories.d.ts +5 -3
  185. package/dist/types/components/Select/stories/SelectStyle.stories.d.ts +5 -3
  186. package/dist/types/components/Select/stories/SelectSuccess.stories.d.ts +5 -3
  187. package/dist/types/components/Select/stories/__mock__/index.d.ts +2 -2
  188. package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -11
  189. package/dist/types/components/Text/Text.interface.d.ts +2 -2
  190. package/dist/types/context/Notifications.d.ts +1 -1
  191. package/dist/types/context/Notifications.interface.d.ts +2 -1
  192. package/dist/types/context/UIContext.d.ts +10 -4
  193. package/dist/types/hooks/useActiveClasses/useActiveClasses.interface.d.ts +1 -2
  194. package/dist/types/hooks/useDropzoneFieldFiles.d.ts +14 -0
  195. package/dist/types/hooks/useStyles/styleAttributes.d.ts +2 -3
  196. package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +9 -3
  197. package/dist/types/hooks/useStyles/useStyles.d.ts +4 -1
  198. package/dist/types/utils/mergeAppearanceKeys.d.ts +6 -1
  199. package/dist/utils/mergeAppearanceKeys.js +14 -1
  200. package/package.json +16 -15
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  elevation: number;
8
10
  hideSelectedOptions: boolean;
@@ -15,14 +17,14 @@ declare const meta: {
15
17
  label: string;
16
18
  value: string;
17
19
  }[];
18
- isDisabled?: undefined;
19
20
  value?: undefined;
21
+ isDisabled?: undefined;
20
22
  isFixed?: undefined;
21
23
  isSelected?: undefined;
22
24
  } | {
23
25
  label: string;
24
- isDisabled: boolean;
25
26
  value: string;
27
+ isDisabled: boolean;
26
28
  options?: undefined;
27
29
  isFixed?: undefined;
28
30
  isSelected?: undefined;
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
2
2
  import { SelectPropsCustom } from '../Select.interface';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<unknown, boolean, import("react-select").GroupBase<unknown>>, "value" | "isLoading" | "className" | "isDisabled" | "onChange" | "options" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isClearable" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<unknown> & import("react").RefAttributes<import("react-select").SelectInstance<unknown, boolean, import("react-select").GroupBase<unknown>>>>;
5
+ component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
6
+ onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
7
+ } & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
6
8
  args: {
7
9
  appearance: string;
8
10
  elevation: number;
@@ -16,14 +18,14 @@ declare const meta: {
16
18
  label: string;
17
19
  value: string;
18
20
  }[];
19
- isDisabled?: undefined;
20
21
  value?: undefined;
22
+ isDisabled?: undefined;
21
23
  isFixed?: undefined;
22
24
  isSelected?: undefined;
23
25
  } | {
24
26
  label: string;
25
- isDisabled: boolean;
26
27
  value: string;
28
+ isDisabled: boolean;
27
29
  options?: undefined;
28
30
  isFixed?: undefined;
29
31
  isSelected?: undefined;
@@ -10,14 +10,14 @@ export namespace SelectDefaultMock {
10
10
  label: string;
11
11
  value: string;
12
12
  }[];
13
- isDisabled?: undefined;
14
13
  value?: undefined;
14
+ isDisabled?: undefined;
15
15
  isFixed?: undefined;
16
16
  isSelected?: undefined;
17
17
  } | {
18
18
  label: string;
19
- isDisabled: boolean;
20
19
  value: string;
20
+ isDisabled: boolean;
21
21
  options?: undefined;
22
22
  isFixed?: undefined;
23
23
  isSelected?: undefined;
@@ -6,17 +6,6 @@ import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
6
6
  type SwiperAppearanceProps = {
7
7
  align?: AlignProps;
8
8
  alignDirection?: DirectionProps;
9
- allowTouchMove?: boolean;
10
- autoHeight?: boolean;
11
- breakpoints?: {
12
- [ratio: string]: SwiperOptions;
13
- [width: number]: SwiperOptions;
14
- };
15
- children?: ReactNode;
16
- className?: string;
17
- dataTestId?: string;
18
- dataTour?: string;
19
- direction?: 'horizontal' | 'vertical';
20
9
  fill?: FillProps;
21
10
  shape?: ShapeProps;
22
11
  };
@@ -31,6 +20,8 @@ type SwiperProps = StyleAttributes & SwiperAppearanceProps & {
31
20
  };
32
21
  children?: ReactNode;
33
22
  className?: string;
23
+ dataTestId?: string;
24
+ dataTour?: string;
34
25
  direction?: 'horizontal' | 'vertical';
35
26
  forwardedRef: Ref<SwiperRef>;
36
27
  freeMode?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, CompositeAppearanceSizePxKey, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextFontProps, TextSizeProps, TextTagProps, TextWeightProps, TextWrapProps } from '@itcase/types-ui';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, CompositeAppearanceSizePxKey, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextFontProps, TextSizeProps, TextStyleProps, TextTagProps, TextWeightProps, TextWrapProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
4
4
  type TextAppearanceProps = {
5
5
  cursor?: string;
@@ -13,7 +13,7 @@ type TextAppearanceProps = {
13
13
  textColorGradient?: string;
14
14
  textColorHover?: TextColorHoverProps | TextColorProps;
15
15
  textFont?: TextFontProps;
16
- textStyle?: 'italic' | 'normal';
16
+ textStyle?: TextStyleProps;
17
17
  textTruncate?: boolean;
18
18
  textWeight?: TextWeightProps;
19
19
  textWrap?: TextWrapProps;
@@ -3,7 +3,7 @@ import type { CreatedNotification, Notification, NotificationsProviderProps } fr
3
3
  declare function NotificationsProvider(props: NotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare function useNotifications(): Notification[];
5
5
  declare function useNotificationsAPI(): {
6
- hideNotifications: (targetId: GeneratedId) => void;
6
+ hideNotifications: (targetId?: GeneratedId) => void;
7
7
  showNotification: (notification: string | CreatedNotification, onClose?: SimpleCallback) => void;
8
8
  notificationStatuses: {
9
9
  readonly error: "error";
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { GeneratedId } from '@itcase/types-core';
3
+ import { ButtonProps } from 'src/components/Button/Button.interface';
3
4
  import { NotificationProps } from 'src/components/Notification/Notification.interface';
4
5
  interface Notification {
5
6
  id: GeneratedId;
@@ -17,7 +18,7 @@ interface Notification {
17
18
  title: string;
18
19
  type?: 'float' | 'global' | 'toast';
19
20
  isLoading: boolean;
20
- onClickButton: (() => void) | null;
21
+ onClickButton: ButtonProps['onClick'];
21
22
  onClose?: () => void;
22
23
  }
23
24
  interface CreatedNotification {
@@ -1,7 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
+ type DeviceType = '' | 'desktop' | 'mobile' | 'tablet';
2
3
  type UIProviderProps = {
3
4
  children?: ReactNode;
4
5
  userDeviceState?: {
6
+ deviceCurrentMainType: DeviceType;
7
+ deviceCurrentType: string;
8
+ deviceTypesList: string[];
5
9
  isDesktop?: boolean;
6
10
  isMobile?: boolean;
7
11
  isTablet?: boolean;
@@ -9,9 +13,11 @@ type UIProviderProps = {
9
13
  };
10
14
  declare const UIProvider: import("react").NamedExoticComponent<UIProviderProps>;
11
15
  declare function useUserDeviceContext(): {
12
- isMobile: boolean;
13
- isTablet: boolean;
14
- isDesktop: boolean;
15
- deviceCurrentMainType: string;
16
+ deviceCurrentMainType: DeviceType;
17
+ deviceCurrentType: string;
18
+ deviceTypesList: string[];
19
+ isDesktop?: boolean;
20
+ isMobile?: boolean;
21
+ isTablet?: boolean;
16
22
  };
17
23
  export { UIProvider, useUserDeviceContext };
@@ -3,9 +3,8 @@ type SuffixComponents = (typeof suffix)[number];
3
3
  type SpecialSuffix<T extends string> = T extends 'HTMLContent' ? 'htmlContent' : Uncapitalize<T>;
4
4
  type SuffixKeys = SpecialSuffix<SuffixComponents>;
5
5
  interface PropsGenerator {
6
- [key: string]: string | number | undefined | any;
6
+ [key: string]: any | number | string | undefined;
7
7
  getProp?: (propKey: string) => number | string | undefined;
8
- getClassName?: <K extends string, P = undefined>(propKey: K, params?: P) => string;
9
8
  }
10
9
  interface UseActiveClassesReturn {
11
10
  rootClasses: string;
@@ -0,0 +1,14 @@
1
+ import { DropzoneProps, FileItem } from 'src/components/Dropzone/Dropzone.interface';
2
+ /**
3
+ * Hook for file and state management in "react-dropzone".
4
+ * @param {Array} fieldValuesList - value from "react-final-form"
5
+ * @param {boolean} isPreviews - marker for create previews for files
6
+ * @returns {Object} data with states and functions for working with files
7
+ */
8
+ declare function useDropzoneFieldFiles(fieldValuesList: DropzoneProps['fieldValuesList'], isPreviews?: boolean): {
9
+ convertValueFilesToDropzoneItems: (currentFilesList: File[] | FileItem[], isSilent?: boolean) => Promise<FileItem[]>;
10
+ fileIsLoading: boolean;
11
+ fileRejectedMessage: string;
12
+ setFileRejectedMessage: import("react").Dispatch<import("react").SetStateAction<string>>;
13
+ };
14
+ export { useDropzoneFieldFiles };
@@ -1,4 +1,3 @@
1
- declare const _default: (string | (string | {
2
- validate: (value: any) => boolean;
3
- })[])[];
1
+ import { StyleAttributeOrValidator } from './styleAttributes.interface';
2
+ declare const _default: StyleAttributeOrValidator[];
4
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  import type * as CSS from 'csstype';
2
3
  import { HeightProps, ResizeModeProps, WidthProps } from '@itcase/types-ui';
3
4
  export interface StyleAttributes {
@@ -129,13 +130,18 @@ type LabelInterface<T> = {
129
130
  type ImageInterface<T> = {
130
131
  [P in keyof T as `${P & string}Image`]: T[P];
131
132
  };
133
+ export type CSSPropertiesKey = keyof CSSProperties;
132
134
  export interface TypeStyleWrapperAttributes extends WrappedInterface<StyleAttributes> {
133
135
  }
134
136
  export interface TypeStyleLabelAttributes extends LabelInterface<StyleAttributes> {
135
137
  }
136
138
  export interface TypeStyleImageAttributes extends ImageInterface<StyleAttributes> {
137
139
  }
138
- export type StyleAttributeOrValidator = StyleAttributes | [StyleAttributes['width'], {
139
- validate?: (value: string) => boolean;
140
- }];
140
+ export type StyleValidator = [
141
+ StyleAttributes['width'],
142
+ {
143
+ validate?: (value: string) => boolean;
144
+ }
145
+ ];
146
+ export type StyleAttributeOrValidator = StyleAttributes | StyleValidator;
141
147
  export {};
@@ -1 +1,4 @@
1
- export function useStyles(props: any): {};
1
+ import { CSSProperties } from 'react';
2
+ import { ComponentProps } from '../useDevicePropsGenerator/useDevicePropsGenerator.interface';
3
+ declare function useStyles<Props extends ComponentProps>(props: Props): Record<string, CSSProperties>;
4
+ export { useStyles };
@@ -1,2 +1,7 @@
1
- declare const mergeAppearanceKeys: <T extends string>(...values: string[]) => T;
1
+ type MergeAppearanceKeysReturn = any;
2
+ /**
3
+ * @example
4
+ * mergeAppearanceKeys(' ', '1', undefined, '2', '1') === '1 2'
5
+ */
6
+ declare const mergeAppearanceKeys: (...appearances: Array<string | undefined>) => MergeAppearanceKeysReturn;
2
7
  export { mergeAppearanceKeys };
@@ -1,3 +1,16 @@
1
- const mergeAppearanceKeys = (...values) => values.join(' ');
1
+ /**
2
+ * @example
3
+ * mergeAppearanceKeys(' ', '1', undefined, '2', '1') === '1 2'
4
+ */
5
+ const mergeAppearanceKeys = (...appearances) => {
6
+ const trimmedAppearances = appearances
7
+ .map((appearance) => appearance?.trim())
8
+ .filter(Boolean);
9
+ if (trimmedAppearances.length < 2) {
10
+ return trimmedAppearances[0] ?? '';
11
+ }
12
+ const uniqueAppearances = Array.from(new Set(trimmedAppearances));
13
+ return uniqueAppearances.join(' ');
14
+ };
2
15
 
3
16
  export { mergeAppearanceKeys };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.51",
3
+ "version": "1.9.53",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -78,7 +78,7 @@
78
78
  "prepare": "husky",
79
79
  "prepack": "NODE_ENV=production npm run build",
80
80
  "semantic-release": "semantic-release",
81
- "typecheck": "tsc --noEmit",
81
+ "typecheck": "tsc --noEmit --pretty",
82
82
  "storybook": "rm -rf node_modules/.cache/ && STORYBOOK=true storybook dev -p 6006 --disable-telemetry",
83
83
  "build-storybook": "STORYBOOK=true storybook build"
84
84
  },
@@ -101,24 +101,25 @@
101
101
  },
102
102
  "dependencies": {
103
103
  "@emotion/is-prop-valid": "^1.4.0",
104
- "@itcase/common": "^1.2.38",
105
- "@itcase/icons": "^1.2.28",
104
+ "@itcase/common": "^1.2.40",
105
+ "@itcase/icons": "^1.2.29",
106
106
  "@itcase/storybook-config": "^1.2.35",
107
107
  "@itcase/tokens-am": "^1.1.45",
108
108
  "@itcase/tokens-baikal": "^1.1.41",
109
109
  "@itcase/tokens-palette": "^1.1.41",
110
110
  "clsx": "^2.1.1",
111
111
  "date-fns": "^4.1.0",
112
- "framer-motion": "^12.28.1",
112
+ "framer-motion": "^12.29.2",
113
113
  "js-cookie": "^3.0.5",
114
114
  "lodash": "^4.17.23",
115
115
  "luxon": "^3.7.2",
116
- "motion": "^12.28.1",
116
+ "motion": "^12.29.2",
117
117
  "rc-slider": "^11.1.9",
118
118
  "react": "^18.3.1",
119
119
  "react-dadata": "^2.27.4",
120
120
  "react-datepicker": "^9.1.0",
121
121
  "react-dom": "^18.3.1",
122
+ "react-dropzone": "^14.4.0",
122
123
  "react-indiana-drag-scroll": "^3.0.3-alpha",
123
124
  "react-inlinesvg": "^4.2.0",
124
125
  "react-modal-sheet": "5.2.1",
@@ -130,18 +131,18 @@
130
131
  "react-scrollbars-custom": "^4.1.1",
131
132
  "react-select": "^5.10.2",
132
133
  "simplebar-react": "^3.3.2",
133
- "swiper": "^12.0.3",
134
+ "swiper": "^12.1.0",
134
135
  "uuid": "^13.0.0"
135
136
  },
136
137
  "devDependencies": {
137
138
  "@babel/core": "^7.28.6",
138
139
  "@babel/preset-react": "^7.28.5",
139
- "@commitlint/cli": "^20.3.1",
140
- "@commitlint/config-conventional": "^20.3.1",
141
- "@itcase/config": "^1.6.43",
142
- "@itcase/lint": "^1.1.93",
143
- "@itcase/types-core": "^1.1.28",
144
- "@itcase/types-ui": "^1.1.28",
140
+ "@commitlint/cli": "^20.4.0",
141
+ "@commitlint/config-conventional": "^20.4.0",
142
+ "@itcase/config": "^1.6.45",
143
+ "@itcase/lint": "^1.1.95",
144
+ "@itcase/types-core": "^1.1.30",
145
+ "@itcase/types-ui": "^1.1.30",
145
146
  "@rollup/plugin-alias": "^6.0.0",
146
147
  "@rollup/plugin-babel": "^6.1.0",
147
148
  "@rollup/plugin-commonjs": "^29.0.0",
@@ -168,13 +169,13 @@
168
169
  "husky": "^9.1.7",
169
170
  "lint-staged": "^16.2.7",
170
171
  "prettier": "^3.8.1",
171
- "rollup": "4.56.0",
172
+ "rollup": "4.57.1",
172
173
  "rollup-plugin-copy": "^3.5.0",
173
174
  "rollup-plugin-dts": "^6.3.0",
174
175
  "rollup-plugin-peer-deps-external": "^2.2.4",
175
176
  "rollup-preserve-directives": "^1.1.3",
176
177
  "semantic-release": "^25.0.2",
177
- "storybook": "^10.2.0",
178
+ "storybook": "^10.2.2",
178
179
  "stylelint": "^17.0.0",
179
180
  "typescript": "^5.9.3"
180
181
  }