@ryuzaki13/react-foundation-ui 1.0.1 → 1.0.2

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 (253) hide show
  1. package/dist/advanced-search/index.d.ts +3 -0
  2. package/dist/advanced-search/index.d.ts.map +1 -0
  3. package/dist/advanced-search/index.js +361 -0
  4. package/dist/advanced-search/index.js.map +1 -0
  5. package/dist/advanced-search/lib/index.d.ts +2 -0
  6. package/dist/advanced-search/lib/index.d.ts.map +1 -0
  7. package/dist/advanced-search/lib/searchParts.d.ts +3 -0
  8. package/dist/advanced-search/lib/searchParts.d.ts.map +1 -0
  9. package/dist/advanced-search/model/index.d.ts +5 -0
  10. package/dist/advanced-search/model/index.d.ts.map +1 -0
  11. package/dist/advanced-search/model/types.d.ts +55 -0
  12. package/dist/advanced-search/model/types.d.ts.map +1 -0
  13. package/dist/advanced-search/model/useAdvancedSearch.d.ts +11 -0
  14. package/dist/advanced-search/model/useAdvancedSearch.d.ts.map +1 -0
  15. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts +6 -0
  16. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts.map +1 -0
  17. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +13 -0
  18. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +1 -0
  19. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +13 -0
  20. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +1 -0
  21. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts +8 -0
  22. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +1 -0
  23. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts +9 -0
  24. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts.map +1 -0
  25. package/dist/advanced-search/ui/index.d.ts +2 -0
  26. package/dist/advanced-search/ui/index.d.ts.map +1 -0
  27. package/dist/badge/index.js +1 -1
  28. package/dist/badge/stories/Badge.stories.js +22 -22
  29. package/dist/base-table/index.js +2 -2
  30. package/dist/button/index.js +7 -7
  31. package/dist/button/stories/Button.stories.js +1 -1
  32. package/dist/check-box/index.js +1 -1
  33. package/dist/check-box/stories/CheckBox.stories.js +25 -25
  34. package/dist/chunks/{BadgeList-6qL9oNAp.js → BadgeList-DYgun2rf.js} +16 -16
  35. package/dist/chunks/{BadgeList-6qL9oNAp.js.map → BadgeList-DYgun2rf.js.map} +1 -1
  36. package/dist/chunks/{Button-BZ_b-Kin.js → Button-CCWuggdA.js} +16 -16
  37. package/dist/chunks/{Button-BZ_b-Kin.js.map → Button-CCWuggdA.js.map} +1 -1
  38. package/dist/chunks/CalendarView-DjeTJkTT.js +435 -0
  39. package/dist/chunks/{CalendarView-DjShdvRD.js.map → CalendarView-DjeTJkTT.js.map} +1 -1
  40. package/dist/chunks/CheckBox-BowNqqd3.js +48 -0
  41. package/dist/chunks/{CheckBox-CulnjNvJ.js.map → CheckBox-BowNqqd3.js.map} +1 -1
  42. package/dist/chunks/{DateInput-LSSvObtg.js → DateInput--tfofQ2x.js} +68 -68
  43. package/dist/chunks/{DateInput-LSSvObtg.js.map → DateInput--tfofQ2x.js.map} +1 -1
  44. package/dist/chunks/{DateRangePresetSelect-CyzGMvVp.js → DateRangePresetSelect-UgsfaOeM.js} +22 -22
  45. package/dist/chunks/{DateRangePresetSelect-CyzGMvVp.js.map → DateRangePresetSelect-UgsfaOeM.js.map} +1 -1
  46. package/dist/chunks/Detail-DHDMsg8q.js +80 -0
  47. package/dist/chunks/{Detail-DKolHye4.js.map → Detail-DHDMsg8q.js.map} +1 -1
  48. package/dist/chunks/{Dialog-BPS4BeWZ.js → Dialog-CFIvGxER.js} +8 -8
  49. package/dist/chunks/{Dialog-BPS4BeWZ.js.map → Dialog-CFIvGxER.js.map} +1 -1
  50. package/dist/chunks/DisclosureGroup-CfRTkl6Z.js +49 -0
  51. package/dist/chunks/{DisclosureGroup-Plk2M_Vl.js.map → DisclosureGroup-CfRTkl6Z.js.map} +1 -1
  52. package/dist/chunks/{DropZone-DPGTpHI6.js → DropZone-kJfbZU5g.js} +22 -22
  53. package/dist/chunks/{DropZone-DPGTpHI6.js.map → DropZone-kJfbZU5g.js.map} +1 -1
  54. package/dist/chunks/{DropdownMenu-Ds-trH4M.js → DropdownMenu-DQeR3y7M.js} +138 -138
  55. package/dist/chunks/{DropdownMenu-Ds-trH4M.js.map → DropdownMenu-DQeR3y7M.js.map} +1 -1
  56. package/dist/chunks/{Flex-DbBdq336.js → Flex-DUYSL5TE.js} +16 -16
  57. package/dist/chunks/{Flex-DbBdq336.js.map → Flex-DUYSL5TE.js.map} +1 -1
  58. package/dist/chunks/Input-BmjlpA09.js +227 -0
  59. package/dist/chunks/{Input-Wrew1puH.js.map → Input-BmjlpA09.js.map} +1 -1
  60. package/dist/chunks/{InputDateTime-2PCX8an8.js → InputDateTime-CxfAFe2L.js} +56 -56
  61. package/dist/chunks/{InputDateTime-2PCX8an8.js.map → InputDateTime-CxfAFe2L.js.map} +1 -1
  62. package/dist/chunks/{InputFile-Ca-bRo93.js → InputFile-CyZu__B_.js} +17 -17
  63. package/dist/chunks/{InputFile-Ca-bRo93.js.map → InputFile-CyZu__B_.js.map} +1 -1
  64. package/dist/chunks/{InputFiles-pI9rQXOI.js → InputFiles-CrTJV27R.js} +31 -31
  65. package/dist/chunks/{InputFiles-pI9rQXOI.js.map → InputFiles-CrTJV27R.js.map} +1 -1
  66. package/dist/chunks/{InputImage-B522AQzl.js → InputImage-Cw8rPYQu.js} +18 -18
  67. package/dist/chunks/{InputImage-B522AQzl.js.map → InputImage-Cw8rPYQu.js.map} +1 -1
  68. package/dist/chunks/{LabeledExpandableActionPanel-CWmOSWeS.js → LabeledExpandableActionPanel-D3kUvmFH.js} +26 -26
  69. package/dist/chunks/{LabeledExpandableActionPanel-CWmOSWeS.js.map → LabeledExpandableActionPanel-D3kUvmFH.js.map} +1 -1
  70. package/dist/chunks/Listbox-BZlp5qHz.js +81 -0
  71. package/dist/chunks/{Listbox-B6F_IKQv.js.map → Listbox-BZlp5qHz.js.map} +1 -1
  72. package/dist/chunks/{MultiSelect-CUXA8gx-.js → MultiSelect-D1XYuwH1.js} +113 -113
  73. package/dist/chunks/{MultiSelect-CUXA8gx-.js.map → MultiSelect-D1XYuwH1.js.map} +1 -1
  74. package/dist/chunks/{NotificationsHost-Bnq7xFKO.js → NotificationsHost-_icJx4xR.js} +44 -44
  75. package/dist/chunks/{NotificationsHost-Bnq7xFKO.js.map → NotificationsHost-_icJx4xR.js.map} +1 -1
  76. package/dist/chunks/{PresetRangeDateInput-B_8jsilZ.js → PresetRangeDateInput-CapirptQ.js} +11 -11
  77. package/dist/chunks/{PresetRangeDateInput-B_8jsilZ.js.map → PresetRangeDateInput-CapirptQ.js.map} +1 -1
  78. package/dist/chunks/RadioButton-D0uA0rX_.js +48 -0
  79. package/dist/chunks/{RadioButton-D5vPW4Yr.js.map → RadioButton-D0uA0rX_.js.map} +1 -1
  80. package/dist/chunks/RadioGroup-B9XjkcOy.js +121 -0
  81. package/dist/chunks/{RadioGroup-BAhN1d1X.js.map → RadioGroup-B9XjkcOy.js.map} +1 -1
  82. package/dist/chunks/{Select-CoAYWNOn.js → Select-CXeVjVKA.js} +11 -11
  83. package/dist/chunks/{Select-CoAYWNOn.js.map → Select-CXeVjVKA.js.map} +1 -1
  84. package/dist/chunks/{SerializableSelect-awBOWKTj.js → SerializableSelect-DkYeJtAO.js} +2 -2
  85. package/dist/chunks/{SerializableSelect-awBOWKTj.js.map → SerializableSelect-DkYeJtAO.js.map} +1 -1
  86. package/dist/chunks/{SingleDateTimeInput-o44Vlwdk.js → SingleDateTimeInput-BmeuVGQT.js} +78 -78
  87. package/dist/chunks/{SingleDateTimeInput-o44Vlwdk.js.map → SingleDateTimeInput-BmeuVGQT.js.map} +1 -1
  88. package/dist/chunks/{Splitter-NjNFuEq4.js → Splitter-BFkVGVRb.js} +32 -32
  89. package/dist/chunks/{Splitter-NjNFuEq4.js.map → Splitter-BFkVGVRb.js.map} +1 -1
  90. package/dist/chunks/StateSelect-1jH3uLz9.js +78 -0
  91. package/dist/chunks/{StateSelect-abZq176J.js.map → StateSelect-1jH3uLz9.js.map} +1 -1
  92. package/dist/chunks/{Switch-DHMnZVmN.js → Switch-B57Qmy1z.js} +19 -19
  93. package/dist/chunks/{Switch-DHMnZVmN.js.map → Switch-B57Qmy1z.js.map} +1 -1
  94. package/dist/chunks/{TextEditorLexicalClient-Dt4eaPA3.js → TextEditorLexicalClient-DRhAswpP.js} +204 -204
  95. package/dist/chunks/{TextEditorLexicalClient-Dt4eaPA3.js.map → TextEditorLexicalClient-DRhAswpP.js.map} +1 -1
  96. package/dist/chunks/{Textarea-DOVrPH4I.js → Textarea-C9UdUueF.js} +2 -2
  97. package/dist/chunks/{Textarea-DOVrPH4I.js.map → Textarea-C9UdUueF.js.map} +1 -1
  98. package/dist/chunks/{TimePanel-_kF2RtHk.js → TimePanel-b4saqoUY.js} +27 -27
  99. package/dist/chunks/{TimePanel-_kF2RtHk.js.map → TimePanel-b4saqoUY.js.map} +1 -1
  100. package/dist/chunks/{Toggle-C_fE-bkM.js → Toggle-DVqOQXmt.js} +18 -18
  101. package/dist/chunks/{Toggle-C_fE-bkM.js.map → Toggle-DVqOQXmt.js.map} +1 -1
  102. package/dist/chunks/{TreeMultiSelect-C76RYavo.js → TreeMultiSelect-CfQhlfnC.js} +6 -6
  103. package/dist/chunks/{TreeMultiSelect-C76RYavo.js.map → TreeMultiSelect-CfQhlfnC.js.map} +1 -1
  104. package/dist/chunks/{TreePickerBase-qNHIWbYL.js → TreePickerBase-BBUOWsSu.js} +49 -49
  105. package/dist/chunks/{TreePickerBase-qNHIWbYL.js.map → TreePickerBase-BBUOWsSu.js.map} +1 -1
  106. package/dist/chunks/{TreeSelect-LEhNdPCX.js → TreeSelect-2wUXs90E.js} +6 -6
  107. package/dist/chunks/{TreeSelect-LEhNdPCX.js.map → TreeSelect-2wUXs90E.js.map} +1 -1
  108. package/dist/chunks/base-table-CoQlKABk.js +514 -0
  109. package/dist/chunks/{base-table-ij2guVMB.js.map → base-table-CoQlKABk.js.map} +1 -1
  110. package/dist/chunks/{floating-arrow-CdRV69sg.js → floating-arrow-BE-z4QkE.js} +7 -7
  111. package/dist/chunks/{floating-arrow-CdRV69sg.js.map → floating-arrow-BE-z4QkE.js.map} +1 -1
  112. package/dist/chunks/input-search-Dw4rnJBq.js +30 -0
  113. package/dist/chunks/input-search-Dw4rnJBq.js.map +1 -0
  114. package/dist/chunks/{layout-picker-CzZ8Xzkk.js → layout-picker-MWaImn3L.js} +34 -34
  115. package/dist/chunks/{layout-picker-CzZ8Xzkk.js.map → layout-picker-MWaImn3L.js.map} +1 -1
  116. package/dist/chunks/{misc-Bj0y3ERC.js → misc-DoqZBMof.js} +110 -110
  117. package/dist/chunks/{misc-Bj0y3ERC.js.map → misc-DoqZBMof.js.map} +1 -1
  118. package/dist/chunks/{modal-B4ivQb2h.js → modal-B3HY3laL.js} +40 -40
  119. package/dist/chunks/{modal-B4ivQb2h.js.map → modal-B3HY3laL.js.map} +1 -1
  120. package/dist/chunks/multi-select-BzYIviCU.js +1305 -0
  121. package/dist/chunks/multi-select-BzYIviCU.js.map +1 -0
  122. package/dist/chunks/{picker-gIUs0nE_.js → picker-Dg55Ss-B.js} +74 -74
  123. package/dist/chunks/{picker-gIUs0nE_.js.map → picker-Dg55Ss-B.js.map} +1 -1
  124. package/dist/chunks/{popover-C79P5bm2.js → popover-xJJqy1v6.js} +52 -52
  125. package/dist/chunks/{popover-C79P5bm2.js.map → popover-xJJqy1v6.js.map} +1 -1
  126. package/dist/chunks/{separator-CIqnk2z9.js → separator-B72Aq-6a.js} +2 -2
  127. package/dist/chunks/{separator-CIqnk2z9.js.map → separator-B72Aq-6a.js.map} +1 -1
  128. package/dist/chunks/{slider-CigVo4Ju.js → slider-CFKsfxFp.js} +83 -83
  129. package/dist/chunks/{slider-CigVo4Ju.js.map → slider-CFKsfxFp.js.map} +1 -1
  130. package/dist/chunks/sortable-DcTIAbjD.js +185 -0
  131. package/dist/chunks/{sortable-BZqnZ_LA.js.map → sortable-DcTIAbjD.js.map} +1 -1
  132. package/dist/chunks/{table-CK-CM2zD.js → table-Dc3AqMzP.js} +21 -21
  133. package/dist/chunks/{table-CK-CM2zD.js.map → table-Dc3AqMzP.js.map} +1 -1
  134. package/dist/chunks/{table-column-interactions-DPyJDD7P.js → table-column-interactions-6RGjmiI5.js} +24 -24
  135. package/dist/chunks/{table-column-interactions-DPyJDD7P.js.map → table-column-interactions-6RGjmiI5.js.map} +1 -1
  136. package/dist/chunks/{tabs-D5ikIIng.js → tabs-DlnVVMJl.js} +96 -96
  137. package/dist/chunks/{tabs-D5ikIIng.js.map → tabs-DlnVVMJl.js.map} +1 -1
  138. package/dist/chunks/{toolbar-C-Ziw_Uh.js → toolbar-BCZNdRXM.js} +2 -2
  139. package/dist/chunks/{toolbar-C-Ziw_Uh.js.map → toolbar-BCZNdRXM.js.map} +1 -1
  140. package/dist/chunks/{wheel-picker-DUHGy7wE.js → wheel-picker-FS58cRsQ.js} +23 -23
  141. package/dist/chunks/{wheel-picker-DUHGy7wE.js.map → wheel-picker-FS58cRsQ.js.map} +1 -1
  142. package/dist/context-menu/index.js +1 -1
  143. package/dist/context-menu/stories/ContextMenu.stories.js +45 -45
  144. package/dist/date-input/index.js +2 -2
  145. package/dist/date-input/stories/DateInput.stories.js +2 -2
  146. package/dist/date-range-preset-select/index.js +1 -1
  147. package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js +8 -8
  148. package/dist/date-time-input/index.js +1 -1
  149. package/dist/date-time-input/stories/SingleDateTimeInput.stories.js +38 -38
  150. package/dist/date-time-input/stories/TimePanel.stories.js +9 -9
  151. package/dist/detail/index.js +1 -1
  152. package/dist/detail/stories/Detail.stories.js +1 -1
  153. package/dist/dialog/index.js +1 -1
  154. package/dist/dialog/stories/Dialog.stories.js +16 -16
  155. package/dist/disclosure/index.js +1 -1
  156. package/dist/disclosure/stories/Disclosure.stories.js +1 -1
  157. package/dist/drop-zone/index.js +1 -1
  158. package/dist/drop-zone/stories/DropZone.stories.js +14 -14
  159. package/dist/errors/index.js +47 -47
  160. package/dist/expandable-action-panel/index.js +1 -1
  161. package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js +28 -28
  162. package/dist/flex/index.js +2 -2
  163. package/dist/flex/stories/Flex.stories.js +2 -2
  164. package/dist/floating-arrow/index.js +1 -1
  165. package/dist/fullscreen-portal/index.js +6 -6
  166. package/dist/grid/stories/Grid.stories.js +1 -1
  167. package/dist/image/index.js +123 -123
  168. package/dist/input/index.js +1 -1
  169. package/dist/input/stories/Input.stories.js +11 -11
  170. package/dist/input-date-time/index.js +1 -1
  171. package/dist/input-date-time/stories/InputDateTime.stories.js +11 -11
  172. package/dist/input-file/index.js +1 -1
  173. package/dist/input-file/stories/InputFile.stories.js +9 -9
  174. package/dist/input-files/index.js +1 -1
  175. package/dist/input-files/stories/InputFiles.stories.js +9 -9
  176. package/dist/input-image/index.js +1 -1
  177. package/dist/input-image/stories/InputImage.stories.js +15 -15
  178. package/dist/input-search/index.js +2 -30
  179. package/dist/layout-picker/index.js +1 -1
  180. package/dist/layout-picker/stories/LayoutPicker.stories.js +52 -52
  181. package/dist/list/index.js +27 -27
  182. package/dist/listbox/index.js +1 -1
  183. package/dist/listbox/stories/Listbox.stories.js +19 -19
  184. package/dist/misc/index.js +1 -1
  185. package/dist/modal/index.js +1 -1
  186. package/dist/modal/stories/Modal.stories.js +55 -55
  187. package/dist/multi-select/index.js +3 -1141
  188. package/dist/multi-select/ui/stories/MultiSelect.stories.js +17 -17
  189. package/dist/notifications/index.js +1 -1
  190. package/dist/notifications/ui/stories/NotificationsHost.stories.js +59 -59
  191. package/dist/period-select/index.js +20 -20
  192. package/dist/period-select/stories/PeriodSelect.stories.js +17 -17
  193. package/dist/picker/index.js +1 -1
  194. package/dist/popover/index.js +1 -1
  195. package/dist/popover/stories/Popover.stories.js +16 -16
  196. package/dist/preset-range-date-input/index.js +1 -1
  197. package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js +9 -9
  198. package/dist/preset-select/index.js +1 -1
  199. package/dist/radio-button/index.js +1 -1
  200. package/dist/radio-button/stories/RadioButton.stories.js +11 -11
  201. package/dist/radio-group/index.js +1 -1
  202. package/dist/radio-group/stories/RadioGroup.stories.js +21 -21
  203. package/dist/select/index.js +2 -2
  204. package/dist/select/stories/Select.stories.js +23 -23
  205. package/dist/select/stories/SerializableSelect.stories.js +22 -22
  206. package/dist/separator/index.js +1 -1
  207. package/dist/simple-table/index.js +5 -5
  208. package/dist/slider/index.js +1 -1
  209. package/dist/slider/stories/Slider.stories.js +32 -32
  210. package/dist/slider/stories/SliderInput.stories.js +39 -39
  211. package/dist/sortable/index.js +1 -1
  212. package/dist/sortable/stories/Sortable.stories.js +23 -23
  213. package/dist/splitter/index.js +1 -1
  214. package/dist/splitter/stories/Splitter.stories.js +1 -1
  215. package/dist/state-select/index.js +1 -1
  216. package/dist/state-select/stories/StateSelect.stories.js +23 -23
  217. package/dist/styles.css +1 -1
  218. package/dist/switch/index.js +1 -1
  219. package/dist/switch/stories/Switch.stories.js +11 -11
  220. package/dist/table/index.js +1 -1
  221. package/dist/table-column-interactions/index.js +1 -1
  222. package/dist/table-sorting/index.js +1 -1
  223. package/dist/tabs/index.js +1 -1
  224. package/dist/tabs/stories/Tabs.stories.js +39 -39
  225. package/dist/text/index.js +20 -20
  226. package/dist/text-editor/index.js +3 -3
  227. package/dist/text-editor/toolbar/index.js +1 -1
  228. package/dist/textarea/index.js +1 -1
  229. package/dist/textarea/stories/Textarea.stories.js +8 -8
  230. package/dist/three-scene/index.js +7 -7
  231. package/dist/toggle/index.js +1 -1
  232. package/dist/toggle/stories/Toggle.stories.js +7 -7
  233. package/dist/toolbar/index.js +16 -16
  234. package/dist/tree/index.js +24 -24
  235. package/dist/tree-select/index.js +2 -2
  236. package/dist/tree-select/stories/TreeMultiSelect.stories.js +9 -9
  237. package/dist/tree-select/stories/TreeSelect.stories.js +9 -9
  238. package/dist/tree-table/index.js +32 -32
  239. package/dist/wheel-picker/index.js +1 -1
  240. package/package.json +11 -1
  241. package/dist/chunks/CalendarView-DjShdvRD.js +0 -435
  242. package/dist/chunks/CheckBox-CulnjNvJ.js +0 -48
  243. package/dist/chunks/Detail-DKolHye4.js +0 -80
  244. package/dist/chunks/DisclosureGroup-Plk2M_Vl.js +0 -49
  245. package/dist/chunks/Input-Wrew1puH.js +0 -227
  246. package/dist/chunks/Listbox-B6F_IKQv.js +0 -81
  247. package/dist/chunks/RadioButton-D5vPW4Yr.js +0 -48
  248. package/dist/chunks/RadioGroup-BAhN1d1X.js +0 -121
  249. package/dist/chunks/StateSelect-abZq176J.js +0 -78
  250. package/dist/chunks/base-table-ij2guVMB.js +0 -514
  251. package/dist/chunks/sortable-BZqnZ_LA.js +0 -185
  252. package/dist/input-search/index.js.map +0 -1
  253. package/dist/multi-select/index.js.map +0 -1
@@ -1,32 +1,32 @@
1
- import { r as e } from "../chunks/Grid-ByIIytjh.js";
2
- import { t } from "../chunks/Button-BZ_b-Kin.js";
3
- import { a as n } from "../chunks/Input-Wrew1puH.js";
4
- import { t as r } from "../chunks/InputFiles-pI9rQXOI.js";
5
- import { i, n as a, r as o } from "../chunks/modal-B4ivQb2h.js";
6
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
- import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
1
+ import { t as e } from "../chunks/Button-CCWuggdA.js";
2
+ import { r as t } from "../chunks/Grid-ByIIytjh.js";
3
+ import { a as n } from "../chunks/Input-BmjlpA09.js";
4
+ import { i as r, n as i, r as a } from "../chunks/modal-B3HY3laL.js";
5
+ import { t as o } from "../chunks/InputFiles-CrTJV27R.js";
6
+ import { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
7
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
8
8
  import h from "react-easy-crop";
9
9
  //#region src/image/ui/ImageCropper.tsx
10
10
  function g({ image: e, aspect: t = 1200 / 630, width: n, onCropComplete: r }) {
11
- let [i, a] = m({
11
+ let [i, a] = d({
12
12
  x: 0,
13
13
  y: 0
14
- }), [o, s] = m(1), l = u((e, t) => {
14
+ }), [o, c] = d(1), l = s((e, t) => {
15
15
  r?.(t);
16
16
  }, [r]);
17
- return /* @__PURE__ */ c("div", {
17
+ return /* @__PURE__ */ p("div", {
18
18
  style: {
19
19
  position: "relative",
20
20
  width: n ?? "100%",
21
21
  aspectRatio: t
22
22
  },
23
- children: /* @__PURE__ */ c(h, {
23
+ children: /* @__PURE__ */ p(h, {
24
24
  image: e,
25
25
  crop: i,
26
26
  zoom: o,
27
27
  aspect: t,
28
28
  onCropChange: a,
29
- onZoomChange: s,
29
+ onZoomChange: c,
30
30
  onCropComplete: l,
31
31
  zoomSpeed: .1,
32
32
  objectFit: "contain"
@@ -36,14 +36,14 @@ function g({ image: e, aspect: t = 1200 / 630, width: n, onCropComplete: r }) {
36
36
  //#endregion
37
37
  //#region src/image/ui/ImagePlaceholder.tsx
38
38
  function _({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", className: r }) {
39
- return /* @__PURE__ */ c("div", {
39
+ return /* @__PURE__ */ p("div", {
40
40
  style: {
41
41
  width: e,
42
42
  height: t,
43
43
  aspectRatio: n
44
44
  },
45
45
  className: r,
46
- children: /* @__PURE__ */ c("svg", {
46
+ children: /* @__PURE__ */ p("svg", {
47
47
  width: e,
48
48
  height: t,
49
49
  viewBox: "0 0 200 200",
@@ -54,31 +54,31 @@ function _({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
54
54
  ry: "10",
55
55
  style: { display: "block" },
56
56
  "aria-label": "Изображение недоступно",
57
- children: /* @__PURE__ */ l("g", {
57
+ children: /* @__PURE__ */ m("g", {
58
58
  fill: "var(--surface-0)",
59
59
  children: [
60
- /* @__PURE__ */ c("rect", {
60
+ /* @__PURE__ */ p("rect", {
61
61
  x: "40",
62
62
  y: "50",
63
63
  width: "120",
64
64
  height: "100",
65
65
  rx: "10"
66
66
  }),
67
- /* @__PURE__ */ c("circle", {
67
+ /* @__PURE__ */ p("circle", {
68
68
  cx: "60",
69
69
  cy: "70",
70
70
  r: "8",
71
71
  fill: "var(--surface-2)"
72
72
  }),
73
- /* @__PURE__ */ c("path", {
73
+ /* @__PURE__ */ p("path", {
74
74
  d: "M50 130 L75 100 L100 130 Z",
75
75
  fill: "var(--surface-2)"
76
76
  }),
77
- /* @__PURE__ */ c("path", {
77
+ /* @__PURE__ */ p("path", {
78
78
  d: "M90 130 L120 90 L150 130 Z",
79
79
  fill: "var(--surface-2)"
80
80
  }),
81
- /* @__PURE__ */ c("line", {
81
+ /* @__PURE__ */ p("line", {
82
82
  x1: "160",
83
83
  y1: "40",
84
84
  x2: "40",
@@ -87,7 +87,7 @@ function _({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
87
87
  strokeWidth: "15",
88
88
  strokeLinecap: "round"
89
89
  }),
90
- /* @__PURE__ */ c("line", {
90
+ /* @__PURE__ */ p("line", {
91
91
  x1: "160",
92
92
  y1: "40",
93
93
  x2: "40",
@@ -103,9 +103,9 @@ function _({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
103
103
  }
104
104
  //#endregion
105
105
  //#region src/image/ui/ImageRenderer.tsx
106
- function v({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: u = !1, width: f = "100%", height: h = "100%", aspectRatio: g = "16 / 9", style: v, wrapperStyle: y, ...b }) {
107
- let x = p(null), [S, C] = m(0), [w, T] = m(!1), [E, D] = m(!1), [O, k] = m(!1);
108
- d(() => {
106
+ function v({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: s = !1, width: l = "100%", height: h = "100%", aspectRatio: g = "16 / 9", style: v, wrapperStyle: y, ...b }) {
107
+ let x = u(null), [S, C] = d(0), [w, T] = d(!1), [E, D] = d(!1), [O, k] = d(!1);
108
+ c(() => {
109
109
  let e = new IntersectionObserver(([t]) => {
110
110
  if (t.isIntersecting) {
111
111
  let n = Math.round(t.boundingClientRect.width);
@@ -117,17 +117,17 @@ function v({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
117
117
  });
118
118
  return x.current && e.observe(x.current), () => e.disconnect();
119
119
  }, []);
120
- let A = S ? `${S}px` : "100vw", j = /* @__PURE__ */ c(_, {
121
- width: f,
120
+ let A = S ? `${S}px` : "100vw", j = /* @__PURE__ */ p(_, {
121
+ width: l,
122
122
  height: h,
123
123
  aspectRatio: g
124
- }), M = /* @__PURE__ */ l(s, { children: [
124
+ }), M = /* @__PURE__ */ m(f, { children: [
125
125
  !E && !O && (o || j),
126
- w && !O && /* @__PURE__ */ l("picture", { children: [t?.map((e) => /* @__PURE__ */ c("source", {
126
+ w && !O && /* @__PURE__ */ m("picture", { children: [t?.map((e) => /* @__PURE__ */ p("source", {
127
127
  srcSet: e.srcSet,
128
128
  type: e.type,
129
129
  sizes: e.sizes ?? A
130
- }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ c("img", {
130
+ }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ p("img", {
131
131
  src: e,
132
132
  alt: n,
133
133
  role: r,
@@ -146,19 +146,19 @@ function v({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
146
146
  ...b
147
147
  })] }),
148
148
  O && j
149
- ] }), N = /* @__PURE__ */ c("div", {
149
+ ] }), N = /* @__PURE__ */ p("div", {
150
150
  ref: x,
151
151
  style: {
152
- width: f,
152
+ width: l,
153
153
  height: h,
154
154
  aspectRatio: g,
155
155
  ...y
156
156
  },
157
157
  children: M
158
158
  });
159
- return u ? /* @__PURE__ */ l("figure", {
159
+ return s ? /* @__PURE__ */ m("figure", {
160
160
  className: "relative",
161
- children: [N, a && /* @__PURE__ */ c("figcaption", {
161
+ children: [N, a && /* @__PURE__ */ p("figcaption", {
162
162
  style: {
163
163
  bottom: 2,
164
164
  right: 2,
@@ -175,11 +175,11 @@ function y(e, t) {
175
175
  return `${e.file.meta.name}-${e.file.meta.size}-${e.file.meta.lastModified}-${t}`;
176
176
  }
177
177
  function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i }) {
178
- let a = e !== void 0, [o, s] = m(e ?? t ?? []), [c, l] = m(e), [d, p] = m(0), [h, g] = m({});
179
- a && e !== c && (l(e), s(e ?? []));
180
- let _ = u((e) => {
181
- s((t) => e(t));
182
- }, []), v = f(() => o.map((e) => e.file), [o]), b = o.length === 0 ? 0 : Math.min(d, o.length - 1), x = o[b], S = x ? y(x, b) : void 0, C = S ? h[S] ?? {
178
+ let a = e !== void 0, [o, c] = d(e ?? t ?? []), [u, f] = d(e), [p, m] = d(0), [h, g] = d({});
179
+ a && e !== u && (f(e), c(e ?? []));
180
+ let _ = s((e) => {
181
+ c((t) => e(t));
182
+ }, []), v = l(() => o.map((e) => e.file), [o]), b = o.length === 0 ? 0 : Math.min(p, o.length - 1), x = o[b], S = x ? y(x, b) : void 0, C = S ? h[S] ?? {
183
183
  crop: {
184
184
  x: 0,
185
185
  y: 0
@@ -191,7 +191,7 @@ function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
191
191
  y: 0
192
192
  },
193
193
  zoom: 1
194
- }, w = o.length > 0, T = !n && w && o.every((e) => e.alt.trim() && e.crop), E = u((e) => {
194
+ }, w = o.length > 0, T = !n && w && o.every((e) => e.alt.trim() && e.crop), E = s((e) => {
195
195
  _((t) => e.map((e) => {
196
196
  let n = t.find((t) => t.file.file === e.file);
197
197
  return n ? {
@@ -202,17 +202,17 @@ function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
202
202
  alt: ""
203
203
  };
204
204
  }));
205
- }, [_]), D = u((e) => {
205
+ }, [_]), D = s((e) => {
206
206
  _((t) => t.map((t, n) => n === b ? {
207
207
  ...t,
208
208
  alt: e
209
209
  } : t));
210
- }, [b, _]), O = u((e) => {
210
+ }, [b, _]), O = s((e) => {
211
211
  _((t) => t.map((t, n) => n === b ? {
212
212
  ...t,
213
213
  crop: e
214
214
  } : t));
215
- }, [b, _]), k = u((e) => {
215
+ }, [b, _]), k = s((e) => {
216
216
  S && g((t) => ({
217
217
  ...t,
218
218
  [S]: {
@@ -220,7 +220,7 @@ function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
220
220
  zoom: t[S]?.zoom ?? 1
221
221
  }
222
222
  }));
223
- }, [S]), A = u((e) => {
223
+ }, [S]), A = s((e) => {
224
224
  S && g((t) => ({
225
225
  ...t,
226
226
  [S]: {
@@ -240,7 +240,7 @@ function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
240
240
  activeCropperState: C,
241
241
  hasSelected: w,
242
242
  canApply: T,
243
- apply: u(() => {
243
+ apply: s(() => {
244
244
  r?.(o), i?.(o);
245
245
  }, [
246
246
  o,
@@ -248,7 +248,7 @@ function b({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
248
248
  r
249
249
  ]),
250
250
  setFiles: E,
251
- setActiveIndex: p,
251
+ setActiveIndex: m,
252
252
  setActiveAlt: D,
253
253
  setActiveCrop: O,
254
254
  setActiveCropperCrop: k,
@@ -275,12 +275,12 @@ function S(e, t, n) {
275
275
  maxWidth: "none"
276
276
  };
277
277
  }
278
- function C({ aspect: t = 16 / 9, disabled: i, state: a }) {
279
- let o = a.activeImage?.crop, [s, u] = m({});
280
- return /* @__PURE__ */ l(e, {
278
+ function C({ aspect: e = 16 / 9, disabled: r, state: i }) {
279
+ let a = i.activeImage?.crop, [s, c] = d({});
280
+ return /* @__PURE__ */ m(t, {
281
281
  gap: "md",
282
282
  children: [
283
- /* @__PURE__ */ c(r, {
283
+ /* @__PURE__ */ p(o, {
284
284
  label: "Файл изображения",
285
285
  allowedMime: [
286
286
  "image/jpeg",
@@ -288,43 +288,43 @@ function C({ aspect: t = 16 / 9, disabled: i, state: a }) {
288
288
  "image/webp",
289
289
  "image/avif"
290
290
  ],
291
- value: a.files,
292
- onChange: a.setFiles,
291
+ value: i.files,
292
+ onChange: i.setFiles,
293
293
  maxBytes: x(),
294
294
  onReadError: (e) => console.log("e", e)
295
295
  }),
296
- a.hasSelected && a.activeImage && /* @__PURE__ */ l("div", { children: [
297
- /* @__PURE__ */ c(e, {
296
+ i.hasSelected && i.activeImage && /* @__PURE__ */ m("div", { children: [
297
+ /* @__PURE__ */ p(t, {
298
298
  templateColumns: "repeat(auto-fill, minmax(10em, 1fr))",
299
299
  gap: "xs",
300
- children: a.value.map((e, n) => {
301
- let r = y(e, n);
302
- return /* @__PURE__ */ c("button", {
300
+ children: i.value.map((t, n) => {
301
+ let a = y(t, n);
302
+ return /* @__PURE__ */ p("button", {
303
303
  type: "button",
304
- disabled: i,
305
- onClick: () => a.setActiveIndex(n),
304
+ disabled: r,
305
+ onClick: () => i.setActiveIndex(n),
306
306
  style: {
307
307
  padding: 0,
308
- border: n === a.activeIndex ? "2px solid var(--border-accent)" : "2px solid transparent",
308
+ border: n === i.activeIndex ? "2px solid var(--border-accent)" : "2px solid transparent",
309
309
  background: "transparent",
310
- cursor: i ? "default" : "pointer"
310
+ cursor: r ? "default" : "pointer"
311
311
  },
312
- children: /* @__PURE__ */ c("span", {
312
+ children: /* @__PURE__ */ p("span", {
313
313
  style: {
314
314
  position: "relative",
315
315
  display: "block",
316
316
  width: "100%",
317
- aspectRatio: t,
317
+ aspectRatio: e,
318
318
  overflow: "hidden"
319
319
  },
320
- children: /* @__PURE__ */ c("img", {
321
- src: e.file.dataUrl,
322
- style: S(e, s[r], t),
320
+ children: /* @__PURE__ */ p("img", {
321
+ src: t.file.dataUrl,
322
+ style: S(t, s[a], e),
323
323
  onLoad: (e) => {
324
324
  let t = e.currentTarget;
325
- u((e) => ({
325
+ c((e) => ({
326
326
  ...e,
327
- [r]: {
327
+ [a]: {
328
328
  width: t.naturalWidth,
329
329
  height: t.naturalHeight
330
330
  }
@@ -332,60 +332,60 @@ function C({ aspect: t = 16 / 9, disabled: i, state: a }) {
332
332
  }
333
333
  })
334
334
  })
335
- }, r);
335
+ }, a);
336
336
  })
337
337
  }),
338
- /* @__PURE__ */ l("div", { children: [
338
+ /* @__PURE__ */ m("div", { children: [
339
339
  "Выберите область изображения",
340
340
  " ",
341
- o && (o.width < 1200 ? /* @__PURE__ */ l("code", {
341
+ a && (a.width < 1200 ? /* @__PURE__ */ m("code", {
342
342
  className: "statusError",
343
343
  children: [
344
- o.width,
344
+ a.width,
345
345
  "x",
346
- o.height,
346
+ a.height,
347
347
  " - низкое качество изображения!"
348
348
  ]
349
- }) : /* @__PURE__ */ l("code", {
349
+ }) : /* @__PURE__ */ m("code", {
350
350
  className: "statusSuccess",
351
351
  children: [
352
- o.width,
352
+ a.width,
353
353
  "x",
354
- o.height
354
+ a.height
355
355
  ]
356
356
  }))
357
357
  ] }),
358
- /* @__PURE__ */ c("div", {
358
+ /* @__PURE__ */ p("div", {
359
359
  style: {
360
360
  position: "relative",
361
361
  width: "100%",
362
- aspectRatio: t
362
+ aspectRatio: e
363
363
  },
364
- children: /* @__PURE__ */ c(h, {
365
- image: a.activeImage.file.dataUrl,
366
- crop: a.activeCropperState.crop,
367
- zoom: a.activeCropperState.zoom,
368
- aspect: t,
369
- onCropChange: a.setActiveCropperCrop,
370
- onZoomChange: a.setActiveCropperZoom,
371
- onCropComplete: (e, t) => a.setActiveCrop(t),
364
+ children: /* @__PURE__ */ p(h, {
365
+ image: i.activeImage.file.dataUrl,
366
+ crop: i.activeCropperState.crop,
367
+ zoom: i.activeCropperState.zoom,
368
+ aspect: e,
369
+ onCropChange: i.setActiveCropperCrop,
370
+ onZoomChange: i.setActiveCropperZoom,
371
+ onCropComplete: (e, t) => i.setActiveCrop(t),
372
372
  zoomSpeed: .1,
373
373
  objectFit: "contain"
374
- }, y(a.activeImage, a.activeIndex))
374
+ }, y(i.activeImage, i.activeIndex))
375
375
  })
376
376
  ] }),
377
- /* @__PURE__ */ c(n, {
377
+ /* @__PURE__ */ p(n, {
378
378
  required: !0,
379
- disabled: !a.hasSelected || i,
379
+ disabled: !i.hasSelected || r,
380
380
  label: "Краткое описание изображения",
381
381
  placeholder: "",
382
- value: a.activeImage?.alt ?? "",
383
- onChange: a.setActiveAlt
382
+ value: i.activeImage?.alt ?? "",
383
+ onChange: i.setActiveAlt
384
384
  })
385
385
  ]
386
386
  });
387
387
  }
388
- function w({ aspect: e = 16 / 9, disabled: n, renderActions: r, ...i }) {
388
+ function w({ aspect: t = 16 / 9, disabled: n, renderActions: r, ...i }) {
389
389
  let a = b({
390
390
  ...i,
391
391
  disabled: n
@@ -395,52 +395,52 @@ function w({ aspect: e = 16 / 9, disabled: n, renderActions: r, ...i }) {
395
395
  hasSelected: a.hasSelected,
396
396
  canApply: a.canApply,
397
397
  apply: a.apply
398
- }, u = i.onChange !== void 0 || i.onApply !== void 0;
399
- return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(C, {
400
- aspect: e,
398
+ }, s = i.onChange !== void 0 || i.onApply !== void 0;
399
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(C, {
400
+ aspect: t,
401
401
  disabled: n,
402
402
  state: a
403
- }), r ? r(o) : u && /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(t, {
403
+ }), r ? r(o) : s && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(e, {
404
404
  disabled: !a.canApply,
405
405
  tone: "success",
406
406
  onClick: a.apply,
407
407
  children: "Применить"
408
408
  }) })] });
409
409
  }
410
- function T({ aspect: e = 16 / 9, disabled: n, isOpen: r = !0, onClose: s = () => {}, title: u = "Загрузка нового изображения", ...d }) {
411
- let f = b({
412
- ...d,
410
+ function T({ aspect: t = 16 / 9, disabled: n, isOpen: o = !0, onClose: s = () => {}, title: c = "Загрузка нового изображения", ...l }) {
411
+ let u = b({
412
+ ...l,
413
413
  disabled: n
414
414
  });
415
- return d.onChange !== void 0 || d.onApply !== void 0 ? /* @__PURE__ */ l(a, {
416
- isOpen: r,
415
+ return l.onChange !== void 0 || l.onApply !== void 0 ? /* @__PURE__ */ m(i, {
416
+ isOpen: o,
417
417
  onClose: s,
418
- title: u,
418
+ title: c,
419
419
  size: "xl",
420
- children: [/* @__PURE__ */ c(o, {
420
+ children: [/* @__PURE__ */ p(a, {
421
421
  scrollable: !0,
422
- children: /* @__PURE__ */ c(C, {
423
- aspect: e,
422
+ children: /* @__PURE__ */ p(C, {
423
+ aspect: t,
424
424
  disabled: n,
425
- state: f
425
+ state: u
426
426
  })
427
- }), /* @__PURE__ */ c(i, { children: /* @__PURE__ */ c(t, {
428
- disabled: !f.canApply,
427
+ }), /* @__PURE__ */ p(r, { children: /* @__PURE__ */ p(e, {
428
+ disabled: !u.canApply,
429
429
  tone: "success",
430
- onClick: f.apply,
430
+ onClick: u.apply,
431
431
  children: "Применить"
432
432
  }) })]
433
- }) : /* @__PURE__ */ c(a, {
434
- isOpen: r,
433
+ }) : /* @__PURE__ */ p(i, {
434
+ isOpen: o,
435
435
  onClose: s,
436
- title: u,
436
+ title: c,
437
437
  size: "xl",
438
- children: /* @__PURE__ */ c(o, {
438
+ children: /* @__PURE__ */ p(a, {
439
439
  scrollable: !0,
440
- children: /* @__PURE__ */ c(C, {
441
- aspect: e,
440
+ children: /* @__PURE__ */ p(C, {
441
+ aspect: t,
442
442
  disabled: n,
443
- state: f
443
+ state: u
444
444
  })
445
445
  })
446
446
  });
@@ -473,25 +473,25 @@ function j({ basePath: e, formats: t, variantWidths: n, hasSet: r }) {
473
473
  type: O(t)
474
474
  }));
475
475
  }
476
- function M({ image: e, src: t, path: n, alt: r, formats: i = D, fallbackFormat: a, variantWidths: o = E, hasSet: s, aspectRatio: l, ...u }) {
477
- let d = e?.filename ?? t;
478
- if (!d) return /* @__PURE__ */ c(v, {
476
+ function M({ image: e, src: t, path: n, alt: r, formats: i = D, fallbackFormat: a, variantWidths: o = E, hasSet: s, aspectRatio: c, ...l }) {
477
+ let u = e?.filename ?? t;
478
+ if (!u) return /* @__PURE__ */ p(v, {
479
479
  src: "",
480
480
  alt: r ?? e?.alt,
481
- ...u
481
+ ...l
482
482
  });
483
- let f = e?.path ?? n, p = s ?? e?.hasSet ?? !0, m = i.length > 0 ? i : D, h = a ?? m[m.length - 1] ?? "webp", g = A(f, d), _ = l ?? (e?.width && e.height ? `${e.width} / ${e.height}` : void 0), y = j({
483
+ let d = e?.path ?? n, f = s ?? e?.hasSet ?? !0, m = i.length > 0 ? i : D, h = a ?? m[m.length - 1] ?? "webp", g = A(d, u), _ = c ?? (e?.width && e.height ? `${e.width} / ${e.height}` : void 0), y = j({
484
484
  basePath: g,
485
485
  formats: m,
486
486
  variantWidths: o,
487
- hasSet: p
487
+ hasSet: f
488
488
  });
489
- return /* @__PURE__ */ c(v, {
489
+ return /* @__PURE__ */ p(v, {
490
490
  src: `${g}.${h}`,
491
491
  sources: y,
492
492
  alt: r ?? e?.alt,
493
493
  aspectRatio: _,
494
- ...u
494
+ ...l
495
495
  });
496
496
  }
497
497
  //#endregion
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../chunks/Input-Wrew1puH.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../chunks/Input-BmjlpA09.js";
2
2
  export { s as Input, r as InputClearButton, a as InputControl, n as InputNumber, e as InputText, i as InputUI, o as InputUILoading, t as useInputFieldIds };
@@ -1,6 +1,6 @@
1
- import { a as e, i as t } from "../../chunks/Input-Wrew1puH.js";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import { useState as r } from "react";
1
+ import { a as e, i as t } from "../../chunks/Input-BmjlpA09.js";
2
+ import { useState as n } from "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
4
  //#region src/input/stories/Input.stories.tsx
5
5
  var i = {
6
6
  title: "Shared/UI/Input",
@@ -69,8 +69,8 @@ var i = {
69
69
  }
70
70
  }, a = {
71
71
  render: (t) => {
72
- let [i, a] = r(t.value ?? "");
73
- return /* @__PURE__ */ n(e, {
72
+ let [i, a] = n(t.value ?? "");
73
+ return /* @__PURE__ */ r(e, {
74
74
  ...t,
75
75
  value: i,
76
76
  onChange: a,
@@ -86,8 +86,8 @@ var i = {
86
86
  }
87
87
  }, o = {
88
88
  render: () => {
89
- let [e, i] = r(25);
90
- return /* @__PURE__ */ n(t, {
89
+ let [e, i] = n(25);
90
+ return /* @__PURE__ */ r(t, {
91
91
  label: "Количество",
92
92
  description: "Числовой ввод с min/max.",
93
93
  placeholder: "0",
@@ -101,8 +101,8 @@ var i = {
101
101
  args: { value: void 0 }
102
102
  }, s = {
103
103
  render: () => {
104
- let [t, i] = r("");
105
- return /* @__PURE__ */ n(e, {
104
+ let [t, i] = n("");
105
+ return /* @__PURE__ */ r(e, {
106
106
  label: "Только цифры",
107
107
  description: "`allowedPattern` подсвечивает невалидный ввод.",
108
108
  placeholder: "12345",
@@ -114,8 +114,8 @@ var i = {
114
114
  args: { value: void 0 }
115
115
  }, c = {
116
116
  render: () => {
117
- let [t, i] = r("admin"), [a, o] = r("Логин уже занят");
118
- return /* @__PURE__ */ n(e, {
117
+ let [t, i] = n("admin"), [a, o] = n("Логин уже занят");
118
+ return /* @__PURE__ */ r(e, {
119
119
  label: "Логин",
120
120
  value: t,
121
121
  error: a,
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../chunks/InputDateTime-2PCX8an8.js";
1
+ import { n as e, r as t, t as n } from "../chunks/InputDateTime-CxfAFe2L.js";
2
2
  export { n as InputDate, e as InputDateTime, t as InputTime };
@@ -1,6 +1,6 @@
1
- import { n as e, r as t, t as n } from "../../chunks/InputDateTime-2PCX8an8.js";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import { useState as i } from "react";
1
+ import { n as e, r as t, t as n } from "../../chunks/InputDateTime-CxfAFe2L.js";
2
+ import { useState as r } from "react";
3
+ import { jsx as i } from "react/jsx-runtime";
4
4
  //#region src/input-date-time/stories/InputDateTime.stories.tsx
5
5
  var a = {
6
6
  title: "Shared/UI/InputDateTime",
@@ -69,8 +69,8 @@ var a = {
69
69
  }
70
70
  }, o = {
71
71
  render: (e) => {
72
- let [t, a] = i(e.value);
73
- return /* @__PURE__ */ r(n, {
72
+ let [t, a] = r(e.value);
73
+ return /* @__PURE__ */ i(n, {
74
74
  ...e,
75
75
  value: t,
76
76
  onChange: a,
@@ -84,8 +84,8 @@ var a = {
84
84
  }
85
85
  }, s = {
86
86
  render: () => {
87
- let [e, n] = i(new Date(2026, 2, 5, 14, 30, 0));
88
- return /* @__PURE__ */ r(t, {
87
+ let [e, n] = r(new Date(2026, 2, 5, 14, 30, 0));
88
+ return /* @__PURE__ */ i(t, {
89
89
  label: "Время",
90
90
  description: "Формат по умолчанию: hh:mm",
91
91
  value: e,
@@ -96,8 +96,8 @@ var a = {
96
96
  args: { value: void 0 }
97
97
  }, c = {
98
98
  render: () => {
99
- let [t, n] = i(new Date(2026, 2, 5, 9, 15, 0));
100
- return /* @__PURE__ */ r(e, {
99
+ let [t, n] = r(new Date(2026, 2, 5, 9, 15, 0));
100
+ return /* @__PURE__ */ i(e, {
101
101
  label: "Дата и время",
102
102
  description: "Комбинированный ввод даты и времени.",
103
103
  value: t,
@@ -108,8 +108,8 @@ var a = {
108
108
  args: { value: void 0 }
109
109
  }, l = {
110
110
  render: () => {
111
- let [t, n] = i(new Date(2026, 2, 5, 9, 15, 42));
112
- return /* @__PURE__ */ r(e, {
111
+ let [t, n] = r(new Date(2026, 2, 5, 9, 15, 42));
112
+ return /* @__PURE__ */ i(e, {
113
113
  label: "Кастомная маска",
114
114
  description: "Добавлены секунды: YYYY.MM.DD hh:mm:ss",
115
115
  mask: "YYYY.MM.DD hh:mm:ss",
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/InputFile-Ca-bRo93.js";
1
+ import { t as e } from "../chunks/InputFile-CyZu__B_.js";
2
2
  export { e as InputFile };