@itcase/ui 1.8.0 → 1.8.3

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 (289) hide show
  1. package/dist/{Badge-Df7Zxjnk.js → Badge_cjs_DrG2tUjI.js} +12 -34
  2. package/dist/{Badge-BY030Mwm.js → Badge_es_Bx0NsdST.js} +12 -34
  3. package/dist/{Button-DJxd2_t4.js → Button_cjs_B7OmqizJ.js} +26 -25
  4. package/dist/{Button-K5n8BI_w.js → Button_es_CBbHMy1v.js} +26 -25
  5. package/dist/{Divider-BQIfjvPR.js → Divider_cjs_DakITdTv.js} +1 -1
  6. package/dist/{Divider-CUFKsm-9.js → Divider_es_CWsDM2Rm.js} +1 -1
  7. package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem_cjs_TdJHpFgg.js} +7 -7
  8. package/dist/{DropdownItem-f29l8dds.js → DropdownItem_es_CdYP5BQN.js} +7 -7
  9. package/dist/{Group-utjnjUDZ.js → Group_cjs_DFmNT5Mq.js} +8 -4
  10. package/dist/{Group-C8NUU6k5.js → Group_es_CRGwi5XI.js} +8 -4
  11. package/dist/{Icon-D_BDlSSb.js → Icon_cjs_DSzfNqif.js} +3 -3
  12. package/dist/{Icon-BF7i3XdQ.js → Icon_es_BBmoZ7_3.js} +3 -3
  13. package/dist/{Input-C_HeI9UK.js → Input_cjs_DkQh0Utd.js} +3 -3
  14. package/dist/{Input-v52BiIsb.js → Input_es_Bs0gEq3L.js} +3 -3
  15. package/dist/{Label-DsNZ-asS.js → Label_cjs_BCjB-mxC.js} +5 -5
  16. package/dist/{Label-brG78nLi.js → Label_es_CZpanSdR.js} +5 -5
  17. package/dist/{Link-CZ8o5lGW.js → Link_cjs_yht44xJv.js} +1 -1
  18. package/dist/{Link-Cn7hiWmM.js → Link_es_DkW06IM-.js} +1 -1
  19. package/dist/{Loader-CZVsMYl6.js → Loader_cjs_D753D3li.js} +3 -3
  20. package/dist/{Loader-BnhUh-g6.js → Loader_es_BE4nyzXi.js} +3 -3
  21. package/dist/{Overlay-BoIJ-g58.js → Overlay_cjs_BTSfcGrM.js} +1 -2
  22. package/dist/{Overlay-Be9UCtR9.js → Overlay_es_CR7d-ISF.js} +1 -2
  23. package/dist/{Text-DwIx33-P.js → Text_cjs_D4xG0cKD.js} +3 -3
  24. package/dist/{Text-aaWArShm.js → Text_es_FJGduy7Z.js} +3 -3
  25. package/dist/{Title-ByfOyy-n.js → Title_cjs_iuyln-ab.js} +1 -1
  26. package/dist/{Title--_epIXkC.js → Title_es_ke3YylFm.js} +1 -1
  27. package/dist/{Tooltip-hznDyLwa.js → Tooltip_cjs_CTwksdFk.js} +3 -3
  28. package/dist/{Tooltip-DP32J5V6.js → Tooltip_es_H976MIb7.js} +3 -3
  29. package/dist/cjs/components/Accordion.js +7 -7
  30. package/dist/cjs/components/Avatar.js +9 -9
  31. package/dist/cjs/components/Badge.js +7 -7
  32. package/dist/cjs/components/Breadcrumbs.js +6 -6
  33. package/dist/cjs/components/Button.js +8 -8
  34. package/dist/cjs/components/Cell.js +7 -7
  35. package/dist/cjs/components/Checkbox.js +2 -2
  36. package/dist/cjs/components/Checkmark.js +1 -1
  37. package/dist/cjs/components/Chips.js +9 -9
  38. package/dist/cjs/components/Choice.js +99 -53
  39. package/dist/cjs/components/Code.js +1 -1
  40. package/dist/cjs/components/CookiesWarning.js +9 -9
  41. package/dist/cjs/components/DadataHintField.js +4 -4
  42. package/dist/cjs/components/DatePicker.js +119 -47
  43. package/dist/cjs/components/Divider.js +2 -2
  44. package/dist/cjs/components/Dot.js +1 -1
  45. package/dist/cjs/components/Dropdown.js +4 -4
  46. package/dist/cjs/components/Flex.js +1 -1
  47. package/dist/cjs/components/Grid.js +6 -6
  48. package/dist/cjs/components/Group.js +2 -2
  49. package/dist/cjs/components/HTMLContent.js +1 -1
  50. package/dist/cjs/components/HeroTitle.js +1 -1
  51. package/dist/cjs/components/Icon.js +6 -6
  52. package/dist/cjs/components/Image.js +2 -2
  53. package/dist/cjs/components/Input.js +2 -2
  54. package/dist/cjs/components/InputMask.js +3 -3
  55. package/dist/cjs/components/InputPassword.js +6 -6
  56. package/dist/cjs/components/Label.js +5 -5
  57. package/dist/cjs/components/Link.js +2 -2
  58. package/dist/cjs/components/List.js +2 -2
  59. package/dist/cjs/components/Loader.js +3 -3
  60. package/dist/cjs/components/Logo.js +2 -2
  61. package/dist/cjs/components/MenuItem.js +3 -3
  62. package/dist/cjs/components/Modal.js +5 -5
  63. package/dist/cjs/components/ModalSheetBottom.js +1 -1
  64. package/dist/cjs/components/Notification.js +2 -2
  65. package/dist/cjs/components/Overlay.js +2 -2
  66. package/dist/cjs/components/Pagination.js +26 -54
  67. package/dist/cjs/components/Panel.js +3 -3
  68. package/dist/cjs/components/Radio.js +2 -2
  69. package/dist/cjs/components/RangeSlider.js +1 -1
  70. package/dist/cjs/components/Response.js +9 -9
  71. package/dist/cjs/components/SVGContent.js +1 -1
  72. package/dist/cjs/components/ScrollOnDrag.js +3 -3
  73. package/dist/cjs/components/ScrollToView.js +1 -1
  74. package/dist/cjs/components/Scrollbar.js +1 -1
  75. package/dist/cjs/components/Search.js +59 -16
  76. package/dist/cjs/components/Segmented.js +30 -18
  77. package/dist/cjs/components/Select.js +10 -10
  78. package/dist/cjs/components/Swiper.js +2 -2
  79. package/dist/cjs/components/Switch.js +2 -2
  80. package/dist/cjs/components/Tab.js +50 -70
  81. package/dist/cjs/components/Text.js +2 -2
  82. package/dist/cjs/components/Textarea.js +132 -51
  83. package/dist/cjs/components/Tile.js +7 -7
  84. package/dist/cjs/components/Title.js +2 -2
  85. package/dist/cjs/components/Tooltip.js +4 -4
  86. package/dist/cjs/components/Video.js +1 -1
  87. package/dist/cjs/context/Notifications.js +5 -3
  88. package/dist/cjs/context/UIContext.js +4 -4
  89. package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -1
  90. package/dist/cjs/hooks/useDevicePropsGenerator.js +1 -1
  91. package/dist/cjs/hooks/useDeviceTargetClass.js +1 -1
  92. package/dist/cjs/hooks/useStyles/useStyles.js +1 -1
  93. package/dist/cjs/hooks/useStyles.js +1 -1
  94. package/dist/components/Accordion.js +7 -7
  95. package/dist/components/Avatar.js +9 -9
  96. package/dist/components/Badge.js +7 -7
  97. package/dist/components/Breadcrumbs.js +6 -6
  98. package/dist/components/Button.js +8 -8
  99. package/dist/components/Cell.js +7 -7
  100. package/dist/components/Checkbox.js +2 -2
  101. package/dist/components/Checkmark.js +1 -1
  102. package/dist/components/Chips.js +9 -9
  103. package/dist/components/Choice.js +100 -54
  104. package/dist/components/Code.js +1 -1
  105. package/dist/components/CookiesWarning.js +9 -9
  106. package/dist/components/DadataHintField.js +4 -4
  107. package/dist/components/DatePicker.js +119 -47
  108. package/dist/components/Divider.js +2 -2
  109. package/dist/components/Dot.js +1 -1
  110. package/dist/components/Dropdown.js +4 -4
  111. package/dist/components/Flex.js +1 -1
  112. package/dist/components/Grid.js +6 -6
  113. package/dist/components/Group.js +2 -2
  114. package/dist/components/HTMLContent.js +1 -1
  115. package/dist/components/HeroTitle.js +1 -1
  116. package/dist/components/Icon.js +6 -6
  117. package/dist/components/Image.js +2 -2
  118. package/dist/components/Input.js +2 -2
  119. package/dist/components/InputMask.js +3 -3
  120. package/dist/components/InputPassword.js +6 -6
  121. package/dist/components/Label.js +5 -5
  122. package/dist/components/Link.js +2 -2
  123. package/dist/components/List.js +2 -2
  124. package/dist/components/Loader.js +3 -3
  125. package/dist/components/Logo.js +2 -2
  126. package/dist/components/MenuItem.js +3 -3
  127. package/dist/components/Modal.js +5 -5
  128. package/dist/components/ModalSheetBottom.js +1 -1
  129. package/dist/components/Notification.js +2 -2
  130. package/dist/components/Overlay.js +2 -2
  131. package/dist/components/Pagination.js +27 -55
  132. package/dist/components/Panel.js +3 -3
  133. package/dist/components/Radio.js +2 -2
  134. package/dist/components/RangeSlider.js +1 -1
  135. package/dist/components/Response.js +9 -9
  136. package/dist/components/SVGContent.js +1 -1
  137. package/dist/components/ScrollOnDrag.js +2 -2
  138. package/dist/components/ScrollToView.js +1 -1
  139. package/dist/components/Scrollbar.js +1 -1
  140. package/dist/components/Search.js +59 -16
  141. package/dist/components/Segmented.js +30 -18
  142. package/dist/components/Select.js +10 -10
  143. package/dist/components/Swiper.js +2 -2
  144. package/dist/components/Switch.js +2 -2
  145. package/dist/components/Tab.js +50 -70
  146. package/dist/components/Text.js +2 -2
  147. package/dist/components/Textarea.js +133 -51
  148. package/dist/components/Tile.js +7 -7
  149. package/dist/components/Title.js +2 -2
  150. package/dist/components/Tooltip.js +4 -4
  151. package/dist/components/Video.js +1 -1
  152. package/dist/context/Notifications.js +5 -3
  153. package/dist/context/UIContext.js +4 -4
  154. package/dist/css/components/Accordion/Accordion.css +2 -0
  155. package/dist/css/components/Avatar/Avatar.css +15 -14
  156. package/dist/css/components/Badge/Badge.css +1 -0
  157. package/dist/css/components/Button/Button.css +8 -2
  158. package/dist/css/components/Cell/Cell.css +10 -9
  159. package/dist/css/components/Chips/Chips.css +12 -0
  160. package/dist/css/components/Choice/Choice.css +72 -47
  161. package/dist/css/components/Choice/css/__item/choice__item.css +8 -16
  162. package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
  163. package/dist/css/components/Choice/css/__item/choice__item_size.css +10 -0
  164. package/dist/css/components/Code/Code.css +9 -11
  165. package/dist/css/components/CookiesWarning/CookiesWarning.token.css +2 -0
  166. package/dist/css/components/DatePicker/DatePicker.css +113 -28
  167. package/dist/css/components/Divider/Divider.css +3 -4
  168. package/dist/css/components/Dot/Dot.css +1 -0
  169. package/dist/css/components/Drawer/Drawer.css +4 -7
  170. package/dist/css/components/Dropdown/Dropdown.css +34 -28
  171. package/dist/css/components/Grid/Grid.css +62 -11
  172. package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
  173. package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
  174. package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
  175. package/dist/css/components/Group/Group.css +1 -1
  176. package/dist/css/components/Icon/Icon.css +6 -0
  177. package/dist/css/components/Input/Input.css +7 -6
  178. package/dist/css/components/InputMask/{Input.css → InputMask.css} +4 -4
  179. package/dist/css/components/InputPassword/InputPassword.css +1 -0
  180. package/dist/css/components/Loader/Loader.css +6 -0
  181. package/dist/css/components/Modal/Modal.css +1 -0
  182. package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +6 -0
  183. package/dist/css/components/Pagination/Pagination.css +16 -12
  184. package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
  185. package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +1 -4
  186. package/dist/css/components/Radio/Radio.css +2 -0
  187. package/dist/css/components/Search/Search.css +5 -2
  188. package/dist/css/components/Search/css/search-input/search-input_size.css +1 -0
  189. package/dist/css/components/Segmented/Segmented.css +3 -0
  190. package/dist/css/components/Select/Select.css +2 -0
  191. package/dist/css/components/Swiper/Swiper.css +3 -3
  192. package/dist/css/components/Tab/Tab.css +2 -2
  193. package/dist/css/components/Text/Text.css +15 -12
  194. package/dist/css/components/Textarea/Textarea.css +38 -26
  195. package/dist/css/components/Tile/Tile.css +9 -0
  196. package/dist/css/components/Tooltip/Tooltip.css +7 -0
  197. package/dist/css/styles/border-color/border-color.css +6 -6
  198. package/dist/css/styles/border-color/border-color_focus.css +7 -5
  199. package/dist/css/styles/border-color/border-color_hover.css +13 -9
  200. package/dist/css/styles/border-width/border-width.css +2 -1
  201. package/dist/css/styles/caret-color/caret-color.css +6 -4
  202. package/dist/css/styles/fill/fill.css +19 -34
  203. package/dist/css/styles/fill/fill_active.css +18 -15
  204. package/dist/css/styles/fill/fill_active_hover.css +54 -8
  205. package/dist/css/styles/fill/fill_hover.css +46 -19
  206. package/dist/css/styles/opacity/opacity.css +3 -2
  207. package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +6 -4
  208. package/dist/css/styles/svg-color/svg_fill.css +6 -9
  209. package/dist/css/styles/svg-color/svg_fill_hover.css +6 -4
  210. package/dist/css/styles/svg-color/svg_path_fill.css +6 -5
  211. package/dist/css/styles/text-color/text-color.css +6 -6
  212. package/dist/css/styles/text-color/text-color_active.css +7 -6
  213. package/dist/css/styles/text-color/text-color_hover.css +7 -6
  214. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -1
  215. package/dist/hooks/useDevicePropsGenerator.js +1 -1
  216. package/dist/hooks/useDeviceTargetClass.js +1 -1
  217. package/dist/hooks/useStyles/useStyles.js +1 -1
  218. package/dist/hooks/useStyles.js +1 -1
  219. package/dist/stories/Breadcrumbs.mdx +15 -0
  220. package/dist/stories/BreadcrumbsItem.mdx +17 -0
  221. package/dist/stories/Image.mdx +2 -2
  222. package/dist/stories/ListItem.mdx +11 -0
  223. package/dist/stories/Overview.mdx +15 -5
  224. package/dist/stories/Playground.mdx +4 -4
  225. package/dist/stories/Playgroynd.mdx +11 -0
  226. package/dist/stories/Plsyground.mdx +14 -0
  227. package/dist/types/components/Badge/appearance/badgeAccent.d.ts +0 -20
  228. package/dist/types/components/Button/appearance/buttonSize.d.ts +7 -7
  229. package/dist/types/components/Button/appearance/buttonSurface.d.ts +6 -5
  230. package/dist/types/components/Choice/appearance/choiceAccent.d.ts +10 -0
  231. package/dist/types/components/Choice/appearance/choiceSize.d.ts +18 -0
  232. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +14 -0
  233. package/dist/types/components/Choice/appearance/choiceSurface.d.ts +25 -0
  234. package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +4 -2
  235. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +97 -2
  236. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +51 -0
  237. package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +26 -0
  238. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +27 -0
  239. package/dist/types/components/InputMask/InputMask.d.ts +5 -0
  240. package/dist/types/components/InputMask/index.d.ts +1 -1
  241. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +37 -0
  242. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
  243. package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +1 -1
  244. package/dist/types/components/Search/appearance/searchSize.d.ts +17 -0
  245. package/dist/types/components/Search/appearance/searchStyle.d.ts +14 -0
  246. package/dist/types/components/Search/appearance/searchSurface.d.ts +18 -0
  247. package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +15 -0
  248. package/dist/types/components/Segmented/appearance/segmentedSurface.d.ts +13 -0
  249. package/dist/types/components/Tab/appearance/tabSize.d.ts +10 -0
  250. package/dist/types/components/Tab/appearance/tabStyle.d.ts +14 -0
  251. package/dist/types/components/Tab/appearance/tabSurface.d.ts +51 -0
  252. package/dist/types/components/Textarea/Textarea.appearance.d.ts +1 -2
  253. package/dist/types/components/Textarea/Textarea.interface.d.ts +1 -8
  254. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +18 -0
  255. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +20 -0
  256. package/dist/types/components/Textarea/appearance/textareaError.d.ts +20 -0
  257. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +20 -0
  258. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +31 -0
  259. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +14 -0
  260. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +20 -0
  261. package/dist/types/components/Textarea/index.d.ts +1 -1
  262. package/dist/types/components/Video/Video.interface.d.ts +3 -1
  263. package/dist/types/components/Video/stories/mocks/videoSources.d.ts +6 -0
  264. package/dist/types/context/Notifications.d.ts +4 -3
  265. package/dist/types/context/UIContext.d.ts +1 -1
  266. package/package.json +25 -25
  267. package/dist/css/styles/fill/fill_disabled.css +0 -33
  268. package/dist/stories/Avatar.mdx +0 -23
  269. package/dist/stories/Badge.mdx +0 -13
  270. package/dist/stories/Button.mdx +0 -12
  271. package/dist/stories/Cell.mdx +0 -7
  272. package/dist/stories/Checkbox.mdx +0 -12
  273. package/dist/stories/Checkmark.mdx +0 -10
  274. package/dist/stories/Chips.mdx +0 -37
  275. package/dist/stories/Choice.mdx +0 -11
  276. package/dist/stories/Code.mdx +0 -11
  277. package/dist/stories/DatePicker.mdx +0 -31
  278. package/dist/stories/HeroTitle.mdx +0 -31
  279. package/dist/stories/Textarea.mdx +0 -15
  280. package/dist/stories/Title.mdx +0 -31
  281. package/dist/stories/Tooltip.mdx +0 -19
  282. package/dist/types/components/InputMask/Input.d.ts +0 -5
  283. /package/dist/{Image-DuIBtUq5.js → Image_cjs_DuIBtUq5.js} +0 -0
  284. /package/dist/{Image-CSzHhlA1.js → Image_es_CSzHhlA1.js} +0 -0
  285. /package/dist/{Scrollbar-DcKOfcNp.js → Scrollbar_cjs_DcKOfcNp.js} +0 -0
  286. /package/dist/{Scrollbar-CThJeCLF.js → Scrollbar_es_CThJeCLF.js} +0 -0
  287. /package/dist/{tslib.es6-CCZ3TN_7.js → tslib.es6_cjs_CCZ3TN_7.js} +0 -0
  288. /package/dist/{tslib.es6-Bwu1Cn-t.js → tslib.es6_es_Bwu1Cn-t.js} +0 -0
  289. /package/dist/types/components/InputMask/{Input.interface.d.ts → InputMask.interface.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var clsx = require('clsx');
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Icon = require('../../Icon-D_BDlSSb.js');
10
- var Text = require('../../Text-DwIx33-P.js');
9
+ var Icon = require('../../Icon_cjs_DSzfNqif.js');
10
+ var Text = require('../../Text_cjs_D4xG0cKD.js');
11
11
  require('lodash/camelCase');
12
12
  require('lodash/castArray');
13
13
  require('lodash/upperFirst');
@@ -21,9 +21,9 @@ require('../utils/setViewportProperty.js');
21
21
  require('lodash/maxBy');
22
22
  require('../hooks/useStyles/styleAttributes.js');
23
23
  require('react-inlinesvg');
24
- require('../../Link-CZ8o5lGW.js');
25
- require('../../Tooltip-hznDyLwa.js');
26
- require('../../Title-ByfOyy-n.js');
24
+ require('../../Link_cjs_yht44xJv.js');
25
+ require('../../Tooltip_cjs_CTwksdFk.js');
26
+ require('../../Title_cjs_iuyln-ab.js');
27
27
 
28
28
  var chipsAppearanceAccent = {
29
29
  accent: {
@@ -131,9 +131,9 @@ function Chips(props) {
131
131
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
132
132
  // @ts-expect-error
133
133
  var chipsStyles = useStyles.useStyles(props).styles;
134
- return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', fillClass && !isActive
135
- ? "fill_".concat(fillClass)
136
- : "fill_active_".concat(fillActiveClass), !isActive
134
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', !isActive
135
+ ? fillClass && "fill_".concat(fillClass)
136
+ : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
137
137
  ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
138
138
  : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Chips"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColor: labelTextColor, textColorActive: isActive && labelTextActiveColor, textColorHover: !isDisabled && !isActive
139
139
  ? labelTextHoverColor
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Icon = require('../../Icon-D_BDlSSb.js');
10
- var Loader = require('../../Loader-CZVsMYl6.js');
11
- var Text = require('../../Text-DwIx33-P.js');
9
+ var Icon = require('../../Icon_cjs_DSzfNqif.js');
10
+ var Loader = require('../../Loader_cjs_D753D3li.js');
11
+ var Text = require('../../Text_cjs_D4xG0cKD.js');
12
12
  require('lodash/camelCase');
13
13
  require('lodash/castArray');
14
14
  require('lodash/upperFirst');
@@ -22,34 +22,81 @@ require('../utils/setViewportProperty.js');
22
22
  require('lodash/maxBy');
23
23
  require('../hooks/useStyles/styleAttributes.js');
24
24
  require('react-inlinesvg');
25
- require('../../Link-CZ8o5lGW.js');
26
- require('../../Tooltip-hznDyLwa.js');
27
- require('../../Title-ByfOyy-n.js');
25
+ require('../../Link_cjs_yht44xJv.js');
26
+ require('../../Tooltip_cjs_CTwksdFk.js');
27
+ require('../../Title_cjs_iuyln-ab.js');
28
28
 
29
- var choiceAppearance = {
30
- accent: {
31
- size: 'normal',
29
+ var choiceAppearanceAccent = {
30
+ accentPrimary: {
32
31
  fill: 'surfacePrimary',
33
- fillActive: 'accentPrimary',
32
+ fillItemActive: 'accentPrimary',
34
33
  labelTextActiveColor: 'accentTextPrimary',
35
34
  labelTextColor: 'surfaceTextPrimary',
35
+ borderColor: 'surfaceBorderSecondary',
36
+ },
37
+ };
38
+
39
+ var choiceAppearanceSize = {
40
+ sizeL: {
41
+ size: 'l',
42
+ labelTextSize: 'm',
43
+ iconSize: '24',
44
+ },
45
+ sizeM: {
46
+ size: 'm',
47
+ labelTextSize: 'm',
48
+ iconSize: '24',
49
+ },
50
+ sizeS: {
51
+ size: 's',
36
52
  labelTextSize: 's',
53
+ iconSize: '20',
54
+ },
55
+ };
56
+
57
+ var choiceAppearanceStyle = {
58
+ full: {
59
+ /* border / fill */
60
+ },
61
+ ghost: {
62
+ fill: 'none',
63
+ borderWidth: '0',
64
+ },
65
+ outlined: {
66
+ fill: 'none',
67
+ },
68
+ solid: {
69
+ borderWidth: '0',
70
+ },
71
+ };
72
+
73
+ var choiceAppearanceSurface = {
74
+ surfacePrimary: {
75
+ fill: 'accentPrimary',
76
+ fillItem: 'surfaceItemInverse',
77
+ fillItemActive: 'surfaceItemSecondary',
78
+ fillItemActiveHover: 'surfaceItemTertiary',
79
+ fillItemHover: 'surfaceItemSecondary',
80
+ labelTextActiveColor: 'surfaceTextPrimary',
81
+ labelTextColor: 'surfaceTextPrimary',
82
+ labelTextWrap: 'nowrap',
37
83
  borderColor: 'surfaceBorderSecondary',
38
- shape: 'rounded',
84
+ iconBeforeFill: 'surfaceItemPrimary',
85
+ iconBeforeFillActive: 'surfaceItemPrimary',
39
86
  },
40
- dev: {
41
- size: 'normal',
42
- fill: 'surfacePrimary',
43
- fillActive: 'surfaceTertiary',
44
- fillHover: 'surfacePrimaryHover',
87
+ surfaceSecondary: {
88
+ fill: 'surfaceSecondary',
89
+ fillItem: 'surfacePrimary',
90
+ fillItemActive: 'surfacePrimary',
91
+ fillItemHover: 'surfacePrimary',
45
92
  labelTextActiveColor: 'surfaceTextPrimary',
46
93
  labelTextColor: 'surfaceTextPrimary',
47
- labelTextSize: 'm',
48
- borderColor: 'surfaceBorderTertiary',
49
- shape: 'rounded',
94
+ labelTextWrap: 'nowrap',
50
95
  },
51
96
  };
52
97
 
98
+ var choiceAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, choiceAppearanceAccent), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
99
+
53
100
  var choiceConfig = {
54
101
  appearance: choiceAppearance,
55
102
  setAppearance: function (appearanceConfig) {
@@ -57,7 +104,7 @@ var choiceConfig = {
57
104
  },
58
105
  };
59
106
  function Choice(props) {
60
- var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.active, active = _c === void 0 ? { value: undefined } : _c, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _d = props.options, options = _d === void 0 ? [] : _d, before = props.before, after = props.after, _e = props.isCheckbox, isCheckbox = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
107
+ var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, setActiveSegment = props.setActiveSegment;
61
108
  var controlRef = React.useRef(null);
62
109
  var optionsRefs = React.useMemo(function () {
63
110
  return new Map(options.map(function (item) { return [item.value, React.createRef()]; }));
@@ -71,39 +118,38 @@ function Choice(props) {
71
118
  return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
72
119
  }, {});
73
120
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
74
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, shapeClass = propsGenerator.shapeClass, wrapClass = propsGenerator.wrapClass;
75
- // @ts-expect-error
121
+ var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveColorDisabled = propsGenerator.labelTextActiveColorDisabled, labelTextColor = propsGenerator.labelTextColor, labelTextColorDisabled = propsGenerator.labelTextColorDisabled, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconActive = propsGenerator.iconActive, iconAfter = propsGenerator.iconAfter, iconAfterActive = propsGenerator.iconAfterActive, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBefore = propsGenerator.iconBefore, iconBeforeActive = propsGenerator.iconBeforeActive, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
76
122
  var styles = useStyles.useStyles(props).styles;
77
- return (jsxRuntime.jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
78
- // prettier-ignore
79
- var isActive = typeof active === 'object'
80
- ? String(item.value) === String(active.value)
81
- : String(item.value) === String(active);
82
- return (jsxRuntime.jsxs("div", { className: clsx('choice__item', !isDisabled
83
- ? fillClass && "fill_".concat(fillClass)
84
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
85
- ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
86
- : null, !isActive && isDisabled && 'choice__item_state_disabled', isActive
87
- ? !isDisabled
88
- ? fillActiveClass && "fill_active_".concat(fillActiveClass)
89
- : fillActiveDisabledClass &&
90
- "fill_active_disabled_".concat(fillActiveDisabledClass)
91
- : !isDisabled
92
- ? fillClass && "fill_".concat(fillClass)
93
- : fillDisabledClass &&
94
- "fill_disabled_".concat(fillDisabledClass), isActive &&
95
- isDisabled &&
96
- 'choice__item_active_state_disabled', isActive && 'choice__item_active'), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [before, item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: isActive
97
- ? !isDisabled
98
- ? labelTextActiveColor ||
99
- (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
100
- : labelTextActiveColorDisabled
101
- : !isDisabled
102
- ? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
103
- : labelTextColorDisabled, textWeight: labelTextWeight, children: item.label })), (icon || activeIcon) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive
104
- ? activeIconItemFill || item.activeIconItemFill
105
- : iconItemFill || item.iconItemFill, iconSize: iconSize, SvgImage: isActive ? activeIcon : icon })), after] })] }, "".concat(name, "-").concat(item.value)));
106
- }) })) }));
123
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsxRuntime.jsx("div", { className: "choice__before", children: before }), isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
124
+ var isActive = typeof active === 'object'
125
+ ? String(item.value) === String(active.value)
126
+ : String(item.value) === String(active);
127
+ return (jsxRuntime.jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
128
+ ? fillItemClass && "fill_".concat(fillItemClass)
129
+ : fillItemDisabledClass &&
130
+ "fill_disabled_".concat(fillItemDisabledClass), !isDisabled
131
+ ? fillItemHoverClass && "fill_hover_".concat(fillItemHoverClass)
132
+ : null, !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
133
+ fillItemActiveHoverClass &&
134
+ "fill_active_hover_".concat(fillItemActiveHoverClass), isActive
135
+ ? !isDisabled
136
+ ? fillItemActiveClass &&
137
+ "fill_active_".concat(fillItemActiveClass)
138
+ : fillItemActiveDisabledClass &&
139
+ "fill_active_disabled_".concat(fillItemActiveDisabledClass)
140
+ : !isDisabled
141
+ ? fillItemClass && "fill_".concat(fillItemClass)
142
+ : fillItemDisabledClass &&
143
+ "fill_disabled_".concat(fillItemDisabledClass), isActive &&
144
+ isDisabled &&
145
+ 'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsxRuntime.jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntime.jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (iconBefore || iconBeforeActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconBeforeFillDisabled : undefined, iconFill: isActive ? iconBeforeFillActive : iconBeforeFill, iconSize: iconBeforeSize, SvgImage: isActive ? iconBeforeActive : iconBefore })), item.label && (jsxRuntime.jsx(Text.Text, { size: labelTextSize, textColor: isActive
146
+ ? !isDisabled
147
+ ? labelTextActiveColor
148
+ : labelTextActiveColorDisabled
149
+ : !isDisabled
150
+ ? labelTextColor
151
+ : labelTextColorDisabled, textWeight: labelTextWeight, textWrap: labelTextWrap, children: item.label })), (icon || iconActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive ? iconFillActive : iconFill, iconSize: iconSize, SvgImage: isActive ? iconActive : icon })), (iconAfter || iconAfterActive) && (jsxRuntime.jsx(Icon.Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconAfterFillDisabled : undefined, iconFill: isActive ? iconAfterFillActive : iconAfterFill, iconSize: iconAfterSize, SvgImage: isActive ? iconAfterActive : iconAfter })), itemAfter] })] }, "".concat(name, "-").concat(item.value)));
152
+ }) })), after && jsxRuntime.jsx("div", { className: "choice__after", children: after })] }));
107
153
  }
108
154
 
109
155
  exports.Choice = Choice;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
@@ -5,10 +5,10 @@ var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var Cookies = require('js-cookie');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
- var Button = require('../../Button-DJxd2_t4.js');
9
- var Group = require('../../Group-utjnjUDZ.js');
10
- var Text = require('../../Text-DwIx33-P.js');
11
- require('../../tslib.es6-CCZ3TN_7.js');
8
+ var Button = require('../../Button_cjs_B7OmqizJ.js');
9
+ var Group = require('../../Group_cjs_DFmNT5Mq.js');
10
+ var Text = require('../../Text_cjs_D4xG0cKD.js');
11
+ require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
12
  require('lodash/camelCase');
13
13
  require('lodash/castArray');
14
14
  require('lodash/upperFirst');
@@ -19,15 +19,15 @@ require('../context/UIContext.js');
19
19
  require('../hooks/useMediaQueries/useMediaQueries.js');
20
20
  require('react-responsive');
21
21
  require('../utils/setViewportProperty.js');
22
- require('../../Icon-D_BDlSSb.js');
22
+ require('../../Icon_cjs_DSzfNqif.js');
23
23
  require('react-inlinesvg');
24
24
  require('../hooks/useStyles/useStyles.js');
25
25
  require('lodash/maxBy');
26
26
  require('../hooks/useStyles/styleAttributes.js');
27
- require('../../Link-CZ8o5lGW.js');
28
- require('../../Tooltip-hznDyLwa.js');
29
- require('../../Title-ByfOyy-n.js');
30
- require('../../Loader-CZVsMYl6.js');
27
+ require('../../Link_cjs_yht44xJv.js');
28
+ require('../../Tooltip_cjs_CTwksdFk.js');
29
+ require('../../Title_cjs_iuyln-ab.js');
30
+ require('../../Loader_cjs_D753D3li.js');
31
31
 
32
32
  function CookiesWarning(props) {
33
33
  var className = props.className, _a = props.message, message = _a === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _a, textColor = props.textColor, textSize = props.textSize, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var reactDadata = require('react-dadata');
8
- var Input = require('../../Input-C_HeI9UK.js');
8
+ var Input = require('../../Input_cjs_DkQh0Utd.js');
9
9
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  require('lodash/camelCase');
11
11
  require('lodash/castArray');
@@ -38,9 +38,9 @@ function DadataHintField(props) {
38
38
  input.onBlur,
39
39
  input.onChange,
40
40
  ]);
41
- return (jsxRuntime.jsx(reactDadata.PartySuggestions, { minChars: 3, customInput: DadataСustomInput, delay: delay || 750, inputProps: dadataInputProps, token: token, onChange: setValue }));
41
+ return (jsxRuntime.jsx(reactDadata.PartySuggestions, { minChars: 3, customInput: DadataCustomInput, delay: delay || 750, inputProps: dadataInputProps, token: token, onChange: setValue }));
42
42
  }
43
- function DadataСustomInput(props) {
43
+ function DadataCustomInput(props) {
44
44
  var inputValue = props.inputValue, otherProps = tslib_es6.__rest(props, ["inputValue"]);
45
45
  return jsxRuntime.jsx(Input.Input, tslib_es6.__assign({}, otherProps, { value: inputValue }));
46
46
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
3
+ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var clsx = require('clsx');
@@ -8,11 +8,12 @@ var locale = require('date-fns/locale');
8
8
  var DatePicker = require('react-datepicker');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var useStyles = require('../hooks/useStyles/useStyles.js');
11
- var Button = require('../../Button-DJxd2_t4.js');
12
- var Icon = require('../../Icon-D_BDlSSb.js');
13
- var Input = require('../../Input-C_HeI9UK.js');
14
- var Label = require('../../Label-DsNZ-asS.js');
15
- var Text = require('../../Text-DwIx33-P.js');
11
+ var Button = require('../../Button_cjs_B7OmqizJ.js');
12
+ var Icon = require('../../Icon_cjs_DSzfNqif.js');
13
+ var Input = require('../../Input_cjs_DkQh0Utd.js');
14
+ var Label = require('../../Label_cjs_BCjB-mxC.js');
15
+ var Text = require('../../Text_cjs_D4xG0cKD.js');
16
+ var _default = require('@itcase/icons/default');
16
17
  require('lodash/camelCase');
17
18
  require('lodash/castArray');
18
19
  require('lodash/upperFirst');
@@ -25,41 +26,118 @@ require('react-responsive');
25
26
  require('../utils/setViewportProperty.js');
26
27
  require('lodash/maxBy');
27
28
  require('../hooks/useStyles/styleAttributes.js');
28
- require('../../Link-CZ8o5lGW.js');
29
- require('../../Loader-CZVsMYl6.js');
29
+ require('../../Link_cjs_yht44xJv.js');
30
+ require('../../Loader_cjs_D753D3li.js');
30
31
  require('react-inlinesvg');
31
- require('../../Tooltip-hznDyLwa.js');
32
- require('../../Title-ByfOyy-n.js');
32
+ require('../../Tooltip_cjs_CTwksdFk.js');
33
+ require('../../Title_cjs_iuyln-ab.js');
33
34
 
34
- var datePickerAppearance = {
35
- default: {
36
- datePicker: {
35
+ var datePickerSize = {
36
+ sizeS: {
37
+ datePickerProps: {
38
+ daySize: 'xs',
39
+ dayTextSize: 'm',
40
+ iconFillSize: 24,
41
+ iconLeft: _default.icon14.ChevronLeft,
42
+ iconRight: _default.icon14.ChevronRight,
43
+ },
44
+ inputProps: {
45
+ size: 's',
46
+ textSize: 's',
47
+ clearIcon: _default.icon14.Clear,
48
+ clearIconSize: 16,
49
+ clearLabelTextSize: 'm',
50
+ },
51
+ },
52
+ sizeM: {
53
+ datePickerProps: {
54
+ daySize: 'xs',
55
+ dayTextSize: 'm',
56
+ iconFillSize: 24,
57
+ iconLeft: _default.icon14.ChevronLeft,
58
+ iconRight: _default.icon14.ChevronRight,
59
+ },
60
+ inputProps: {
61
+ size: 'm',
62
+ textSize: 'm',
63
+ clearIcon: _default.icon14.Clear,
64
+ clearIconSize: 16,
65
+ clearLabelTextSize: 'm',
66
+ },
67
+ },
68
+ sizeL: {
69
+ datePickerProps: {
70
+ daySize: 'xs',
71
+ dayTextSize: 'm',
72
+ iconFillSize: 24,
73
+ iconLeft: _default.icon14.ChevronLeft,
74
+ iconRight: _default.icon14.ChevronRight,
75
+ },
76
+ inputProps: {
77
+ size: 'l',
78
+ textSize: 'l',
79
+ clearIcon: _default.icon14.Clear,
80
+ clearIconSize: 16,
81
+ clearLabelTextSize: 'm',
82
+ },
83
+ },
84
+ };
85
+
86
+ var datePickerStyle = {
87
+ solid: {
88
+ datePickerProps: {},
89
+ inputProps: {
90
+ borderWidth: '0',
91
+ },
92
+ },
93
+ outlined: {
94
+ datePickerProps: {},
95
+ inputProps: {
96
+ fill: 'none',
97
+ },
98
+ },
99
+ ghost: {
100
+ datePickerProps: {},
101
+ inputProps: {
102
+ fill: 'none',
103
+ borderWidth: '0',
104
+ },
105
+ },
106
+ full: {
107
+ datePickerProps: {},
108
+ inputProps: {},
109
+ },
110
+ };
111
+
112
+ var datePickerAppearanceSurface = {
113
+ surfacePrimary: {
114
+ datePickerProps: {
37
115
  daySize: 'xs',
38
116
  dayTextColor: 'surfaceTextPrimary',
39
117
  dayTextShape: 'rounded',
40
118
  dayTextSize: 'm',
119
+ iconFillHover: 'surfaceSecondary',
41
120
  iconItemFill: 'surfaceItemPrimary',
42
- monthTextColor: 'surfaceTextPrimary',
43
- monthTextSize: 'xl',
44
- monthTextWeight: '400',
45
- yearTextColor: 'surfaceTextPrimary',
46
- yearTextSize: 'xl',
47
- yearTextWeight: '400',
121
+ iconShape: 'circular',
48
122
  },
49
- input: {
50
- width: '200',
51
- size: 's',
52
- borderColor: 'accentBorderPrimary',
123
+ inputProps: {
124
+ width: 'fill',
125
+ fill: 'surfacePrimary',
126
+ fillHover: 'surfacePrimary',
127
+ borderColor: 'surfaceBorderPrimary',
53
128
  textColor: 'surfaceTextPrimary',
54
- textSize: 'm',
55
129
  caret: 'surfaceItemPrimary',
130
+ clearIconItemFill: 'surfaceItemQuaternary',
131
+ clearIconItemFillHover: 'surfaceItemPrimary',
132
+ clearLabelTextColor: 'surfaceTextPrimary',
133
+ clearLabelTextColorHover: 'surfaceTextAccent',
56
134
  placeholderTextColor: 'surfaceTextSecondary',
57
- shape: 'rounded',
58
135
  },
59
- shape: 'rounded',
60
136
  },
61
137
  };
62
138
 
139
+ var datePickerAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, datePickerAppearanceSurface), datePickerSize), datePickerStyle);
140
+
63
141
  var datePickerConfig = {
64
142
  appearance: datePickerAppearance,
65
143
  setAppearance: function (appearanceConfig) {
@@ -67,8 +145,14 @@ var datePickerConfig = {
67
145
  },
68
146
  };
69
147
  function DatePickerInput(props) {
70
- var className = props.className, appearance = props.appearance, labelTextSize = props.labelTextSize, clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, _a = props.datePickerProps, datePickerProps = _a === void 0 ? {} : _a, endValue = props.endValue, inputProps = props.inputProps, value = props.value, onChange = props.onChange;
148
+ var className = props.className, appearance = props.appearance, endValue = props.endValue, _a = props.inputProps, inputProps = _a === void 0 ? {} : _a, value = props.value, onChange = props.onChange;
71
149
  var datepickerRef = React.useRef(null);
150
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
151
+ var _a;
152
+ return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
153
+ }, {});
154
+ var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
155
+ var _b = propsGenerator.datePickerProps, datePickerProps = _b === void 0 ? {} : _b, widthClass = propsGenerator.widthClass;
72
156
  var start = React.useMemo(function () {
73
157
  if (value) {
74
158
  if (typeof value === 'string') {
@@ -90,8 +174,8 @@ function DatePickerInput(props) {
90
174
  }
91
175
  return endValue;
92
176
  }, [endValue]);
93
- var _b = React.useState(start), startDate = _b[0], setStartDate = _b[1];
94
- var _c = React.useState(end), endDate = _c[0], setEndDate = _c[1];
177
+ var _c = React.useState(start), startDate = _c[0], setStartDate = _c[1];
178
+ var _d = React.useState(end), endDate = _d[0], setEndDate = _d[1];
95
179
  var handleChange = React.useCallback(function (_a) {
96
180
  var newStartDate = _a[0], newEndDate = _a[1];
97
181
  onChange && onChange(newStartDate, newEndDate);
@@ -108,7 +192,7 @@ function DatePickerInput(props) {
108
192
  ]);
109
193
  var renderCustomHeader = React.useCallback(function (_a) {
110
194
  var decreaseMonth = _a.decreaseMonth, increaseMonth = _a.increaseMonth, monthDate = _a.monthDate;
111
- return (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", size: datePickerProps.iconSize, fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, SvgImage: datePickerProps.iconLeft, onClick: decreaseMonth })), jsxRuntime.jsxs("div", { className: "react-datepicker__data", children: [jsxRuntime.jsx(Text.Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize, textColor: datePickerProps.monthTextColor, textWeight: datePickerProps.monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsxRuntime.jsx(Text.Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize, textColor: datePickerProps.yearTextColor, textWeight: datePickerProps.yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", size: datePickerProps.iconSize, fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, SvgImage: datePickerProps.iconRight, onClick: increaseMonth }))] }));
195
+ return (jsxRuntime.jsxs("div", { className: "react-datepicker__header--div", children: [datePickerProps.iconLeft && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, SvgImage: datePickerProps.iconLeft, onClick: decreaseMonth })), jsxRuntime.jsxs("div", { className: "react-datepicker__data", children: [jsxRuntime.jsx(Text.Text, { className: "react-datepicker__month", size: datePickerProps.monthTextSize, textColor: datePickerProps.monthTextColor, textWeight: datePickerProps.monthTextWeight, children: monthDate.toLocaleString('ru-RU', { month: 'long' }) }), jsxRuntime.jsx(Text.Text, { className: "react-datepicker__year", size: datePickerProps.yearTextSize, textColor: datePickerProps.yearTextColor, textWeight: datePickerProps.yearTextWeight, children: monthDate.toLocaleString('ru-RU', { year: 'numeric' }) })] }), datePickerProps.iconRight && (jsxRuntime.jsx(Icon.Icon, { className: "react-datepicker__icon", fill: datePickerProps.iconFill, fillHover: datePickerProps.iconFillHover, fillSize: datePickerProps.iconFillSize, iconFill: datePickerProps.iconItemFill, shape: datePickerProps.iconShape, SvgImage: datePickerProps.iconRight, onClick: increaseMonth }))] }));
112
196
  }, [
113
197
  datePickerProps.iconFill,
114
198
  datePickerProps.iconFillHover,
@@ -117,7 +201,6 @@ function DatePickerInput(props) {
117
201
  datePickerProps.iconLeft,
118
202
  datePickerProps.iconRight,
119
203
  datePickerProps.iconShape,
120
- datePickerProps.iconSize,
121
204
  datePickerProps.monthTextColor,
122
205
  datePickerProps.monthTextSize,
123
206
  datePickerProps.monthTextWeight,
@@ -131,22 +214,15 @@ function DatePickerInput(props) {
131
214
  React.useEffect(function () {
132
215
  setEndDate(end);
133
216
  }, [end]);
134
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
135
- var _a;
136
- return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = datePickerConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
137
- }, {});
138
- var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
139
- var widthClass = propsGenerator.widthClass;
140
- // @ts-expect-error
141
217
  var datePickerStyles = useStyles.useStyles(props).styles;
142
- return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { labelTextSize: labelTextSize, clearIcon: clearIcon, clearIconFill: clearIconFill, clearIconFillHover: clearIconFillHover, clearIconFillSize: clearIconFillSize, clearIconItemFill: clearIconItemFill, clearIconItemFillHover: clearIconItemFillHover, clearIconShape: clearIconShape, clearIconSize: clearIconSize, clearIconSrc: clearIconSrc, clearLabel: clearLabel, clearLabelTextColor: clearLabelTextColor, clearLabelTextColorHover: clearLabelTextColorHover, clearLabelTextSize: clearLabelTextSize, datePickerAppearance: appearance, datepickerRef: datepickerRef, inputIcon: datePickerProps.inputIcon, inputIconFill: datePickerProps.inputIconFill, inputIconFillHover: datePickerProps.inputIconFillHover, inputIconFillSize: datePickerProps.inputIconFillSize, inputIconItemFill: datePickerProps.inputIconItemFill, inputIconShape: datePickerProps.inputIconShape, inputIconSize: datePickerProps.inputIconSize, inputIconSrc: datePickerProps.inputIconSrc, inputProps: inputProps, isClearable: datePickerProps.isClearable }), endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : undefined, locale: locale.ru, popperClassName: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.popper) &&
218
+ console.log(inputProps);
219
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.monthsShown) && 'datepicker_multiple-months', (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.customTimeInput) && 'datepicker_button', widthClass && "datepicker_width_".concat(widthClass)), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, tslib_es6.__assign({ minDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.disablePastDays) ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: datePickerProps.isClearable }), endDate: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? endDate : undefined, locale: locale.ru, popperClassName: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.popper) &&
143
220
  "react-datepicker-popper-".concat(datePickerProps.popper), ref: datepickerRef, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: startDate, startDate: startDate, onChange: (datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.selectsRange) ? handleChange : onChange }, datePickerProps, {
144
221
  // Important for use custom clear button
145
222
  isClearable: false })) }));
146
223
  }
147
224
  var DatePickerCustomInput = React.forwardRef(function (props, ref) {
148
- var _a;
149
- var datePickerAppearance = props.datePickerAppearance, inputIcon = props.inputIcon, inputProps = props.inputProps, value = props.value, isClearable = props.isClearable;
225
+ var inputIcon = props.inputIcon, inputProps = props.inputProps, value = props.value, isClearable = props.isClearable;
150
226
  var multipleValue = React.useMemo(function () {
151
227
  if (value) {
152
228
  var twoDates = value.split(' - ');
@@ -154,10 +230,8 @@ var DatePickerCustomInput = React.forwardRef(function (props, ref) {
154
230
  }
155
231
  return '';
156
232
  }, [value]);
157
- var inputAppearanceProps = (_a = datePickerConfig.appearance[datePickerAppearance]) === null || _a === void 0 ? void 0 : _a.input;
158
- return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Input.Input, tslib_es6.__assign({}, inputAppearanceProps, props, inputProps, { className: "datepicker__input", autocomplete: "off", ref: ref, value: multipleValue })), inputIcon && jsxRuntime.jsx(DatePickerInputIcon, tslib_es6.__assign({}, props)), isClearable && jsxRuntime.jsx(DatePickerClearButton, tslib_es6.__assign({}, props))] }));
233
+ return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Input.Input, tslib_es6.__assign({}, props, inputProps, { className: "datepicker__input", autocomplete: "off", ref: ref, value: multipleValue })), inputIcon && jsxRuntime.jsx(DatePickerInputIcon, tslib_es6.__assign({}, inputProps)), isClearable && jsxRuntime.jsx(DatePickerClearButton, tslib_es6.__assign({}, inputProps))] }));
159
234
  });
160
- DatePickerCustomInput.displayName = 'DatePickerCustomInput';
161
235
  function DatePickerClearButton(props) {
162
236
  var clearIcon = props.clearIcon, clearIconFill = props.clearIconFill, clearIconFillHover = props.clearIconFillHover, clearIconFillSize = props.clearIconFillSize, clearIconItemFill = props.clearIconItemFill, clearIconItemFillHover = props.clearIconItemFillHover, clearIconShape = props.clearIconShape, clearIconSize = props.clearIconSize, clearIconSrc = props.clearIconSrc, clearLabel = props.clearLabel, clearLabelTextColor = props.clearLabelTextColor, clearLabelTextColorHover = props.clearLabelTextColorHover, clearLabelTextSize = props.clearLabelTextSize, datepickerRef = props.datepickerRef;
163
237
  var onClick = React.useCallback(function (event) {
@@ -165,14 +239,12 @@ function DatePickerClearButton(props) {
165
239
  (_a = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _a === void 0 ? void 0 : _a.onClearClick(event);
166
240
  (_b = datepickerRef === null || datepickerRef === void 0 ? void 0 : datepickerRef.current) === null || _b === void 0 ? void 0 : _b.handleFocus(event);
167
241
  }, []);
168
- return (jsxRuntime.jsxs(React.Fragment, { children: [clearLabel && (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })), (clearIcon || clearIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))] }));
242
+ return (jsxRuntime.jsx(React.Fragment, { children: clearLabel ? (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))) }));
169
243
  }
170
- DatePickerClearButton.displayName = 'DatePickerClearButton';
171
244
  function DatePickerInputIcon(props) {
172
245
  var inputIcon = props.inputIcon, inputIconFill = props.inputIconFill, inputIconFillHover = props.inputIconFillHover, inputIconFillSize = props.inputIconFillSize, inputIconItemFill = props.inputIconItemFill, inputIconShape = props.inputIconShape, inputIconSize = props.inputIconSize, inputIconSrc = props.inputIconSrc, onClick = props.onClick;
173
246
  return (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__input-icon', 'cursor_type_pointer'), size: inputIconSize, fill: inputIconFill, fillHover: inputIconFillHover, fillSize: inputIconFillSize, iconFill: inputIconItemFill, imageSrc: inputIconSrc, shape: inputIconShape, SvgImage: inputIcon, onClick: function () { return onClick && onClick(); } }));
174
247
  }
175
- DatePickerInputIcon.displayName = 'DatePickerInputIcon';
176
248
 
177
249
  exports.DatePickerInput = DatePickerInput;
178
250
  exports.datePickerAppearance = datePickerAppearance;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var Divider = require('../../Divider-BQIfjvPR.js');
4
- require('../../tslib.es6-CCZ3TN_7.js');
3
+ var Divider = require('../../Divider_cjs_DakITdTv.js');
4
+ require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('clsx');
7
7
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');