@ryuzaki13/react-foundation-ui 1.0.22 → 1.1.0

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 (206) hide show
  1. package/README.md +86 -0
  2. package/dist/image/index.d.ts +2 -0
  3. package/dist/image/index.d.ts.map +1 -1
  4. package/dist/image/index.js +337 -121
  5. package/dist/image/index.js.map +1 -1
  6. package/dist/image/lib/buildImageViewerSlides.d.ts +8 -0
  7. package/dist/image/lib/buildImageViewerSlides.d.ts.map +1 -0
  8. package/dist/image/lib/resolveImageViewerLabels.d.ts +24 -0
  9. package/dist/image/lib/resolveImageViewerLabels.d.ts.map +1 -0
  10. package/dist/image/model/imageViewerTypes.d.ts +70 -0
  11. package/dist/image/model/imageViewerTypes.d.ts.map +1 -0
  12. package/dist/image/ui/ImageViewer.d.ts +12 -0
  13. package/dist/image/ui/ImageViewer.d.ts.map +1 -0
  14. package/dist/styles.css +1 -1
  15. package/dist/tag-input/TagInput.d.ts +40 -0
  16. package/dist/tag-input/TagInput.d.ts.map +1 -0
  17. package/dist/tag-input/index.d.ts +2 -0
  18. package/dist/tag-input/index.d.ts.map +1 -0
  19. package/dist/tag-input/index.js +180 -0
  20. package/dist/tag-input/index.js.map +1 -0
  21. package/dist/tag-input/lib/joinTagInputAriaIds.d.ts +3 -0
  22. package/dist/tag-input/lib/joinTagInputAriaIds.d.ts.map +1 -0
  23. package/dist/tag-input/lib/tagInputDefaults.d.ts +7 -0
  24. package/dist/tag-input/lib/tagInputDefaults.d.ts.map +1 -0
  25. package/package.json +10 -1
  26. package/src/styles/config/_index.scss +1 -0
  27. package/storybook-static/assets/{Badge-CYlSA6Vw.js → Badge-kXFWHX1o.js} +1 -1
  28. package/storybook-static/assets/{Badge.stories-D6UyHEn4.js → Badge.stories-fhovi8Mi.js} +1 -1
  29. package/storybook-static/assets/{Button-aNoMm3xs.js → Button-BzcIPScf.js} +1 -1
  30. package/storybook-static/assets/{Button-D5iLUeQv.js → Button-DuNV63ZS.js} +1 -1
  31. package/storybook-static/assets/{Button.stories-CNsB_F01.js → Button.stories-DehjFhSM.js} +1 -1
  32. package/storybook-static/assets/{CheckBox-BCgKBJVJ.js → CheckBox-BmyFh4i7.js} +1 -1
  33. package/storybook-static/assets/{CheckBox-KNAnK8-n.js → CheckBox-D6mLxi2P.js} +1 -1
  34. package/storybook-static/assets/{CheckBox.stories-Dd7SzJDz.js → CheckBox.stories-Cb7RC2GA.js} +1 -1
  35. package/storybook-static/assets/{Color-KMSTOMOX-CNiU2Elq.js → Color-KMSTOMOX-CX-Xl_mX.js} +1 -1
  36. package/storybook-static/assets/{ContextMenu-D3k_Tu0Z.js → ContextMenu-Cef_K-t5.js} +1 -1
  37. package/storybook-static/assets/{ContextMenu.stories-C_i_uyc4.js → ContextMenu.stories-AZHC-8P9.js} +1 -1
  38. package/storybook-static/assets/{DateInput-BywQIAiH.js → DateInput-C55_ANq6.js} +1 -1
  39. package/storybook-static/assets/{DateInput-DGG89ygc.js → DateInput-DSVMF1gB.js} +1 -1
  40. package/storybook-static/assets/{DateInput.stories-BaDGhCMe.js → DateInput.stories-CsC2qa2g.js} +1 -1
  41. package/storybook-static/assets/{DateRangePresetSelect-s_2StqMd.js → DateRangePresetSelect-B8rYDJ5X.js} +1 -1
  42. package/storybook-static/assets/{DateRangePresetSelect-BPyhIY3S.js → DateRangePresetSelect-CIFpis74.js} +1 -1
  43. package/storybook-static/assets/{DateRangePresetSelect.stories-DF17STL9.js → DateRangePresetSelect.stories-BjtAEDa9.js} +1 -1
  44. package/storybook-static/assets/{Detail-BugMUTtW.js → Detail-BgqY0SrV.js} +1 -1
  45. package/storybook-static/assets/{Detail.stories-DHkuMfR7.js → Detail.stories-Co8o1gqx.js} +1 -1
  46. package/storybook-static/assets/{Dialog-DshCmYwr.js → Dialog-DoekeYCP.js} +1 -1
  47. package/storybook-static/assets/{Dialog.stories-BSi7akeW.js → Dialog.stories-v5TQS_1-.js} +1 -1
  48. package/storybook-static/assets/{Disclosure-CU-pegOS.js → Disclosure-E7Bm1F1a.js} +1 -1
  49. package/storybook-static/assets/{Disclosure.stories-B4AVnYzF.js → Disclosure.stories-CUYuBYh6.js} +1 -1
  50. package/storybook-static/assets/{DocsRenderer-JROSPFPF-UspHN6Nr.js → DocsRenderer-JROSPFPF-9II2vBP-.js} +2 -2
  51. package/storybook-static/assets/{DropZone-CHT2yTPB.js → DropZone-COhh7w0P.js} +1 -1
  52. package/storybook-static/assets/{DropZone.stories-CNO0o4Zg.js → DropZone.stories-XU7u589t.js} +1 -1
  53. package/storybook-static/assets/{DropdownMenu-BiC8osPQ.js → DropdownMenu-3ney3Ng2.js} +1 -1
  54. package/storybook-static/assets/{ExpandableActionPanel.stories-B7WYSnwP.js → ExpandableActionPanel.stories-DJOZxMv_.js} +2 -2
  55. package/storybook-static/assets/{Flex-BZTb6Ls6.js → Flex-BtfZvPDu.js} +1 -1
  56. package/storybook-static/assets/{Flex-BcPeLHNU.js → Flex-CN6FIOe5.js} +1 -1
  57. package/storybook-static/assets/{Flex.stories-uM7r49Jq.js → Flex.stories-BCZhfSVz.js} +1 -1
  58. package/storybook-static/assets/{Grid-EHSb1euM.js → Grid-CdgOXXxt.js} +1 -1
  59. package/storybook-static/assets/{Grid-fJQh5Vul.js → Grid-D_d69WcK.js} +1 -1
  60. package/storybook-static/assets/{Grid.stories-CqeiX_AH.js → Grid.stories-DQoSH4q8.js} +1 -1
  61. package/storybook-static/assets/{ImageCropper.stories-BZC2r8xr.js → ImageCropper.stories-BJiSLQAw.js} +1 -1
  62. package/storybook-static/assets/{ImageRenderer-Cnnx30sU.js → ImageRenderer-D6M62W6a.js} +1 -1
  63. package/storybook-static/assets/{ImageRenderer.stories-BgBvkbZ-.js → ImageRenderer.stories-BZFA51MD.js} +1 -1
  64. package/storybook-static/assets/{ImageView.stories-Bg85Aayj.js → ImageView.stories-DFvdAL1U.js} +1 -1
  65. package/storybook-static/assets/ImageViewer-kKDkAY87.css +1 -0
  66. package/storybook-static/assets/ImageViewer.stories-BzUxxQAO.js +72 -0
  67. package/storybook-static/assets/{Input-Cq_1mpmx.js → Input-BrEoa-ul.js} +1 -1
  68. package/storybook-static/assets/Input-DD9fx2Sx.js +3 -0
  69. package/storybook-static/assets/{Input.stories-BHTzCeNd.js → Input.stories-BmsoCBN4.js} +1 -1
  70. package/storybook-static/assets/{InputDateTime-Bwdn4dwr.js → InputDateTime-Cdmc7rX2.js} +1 -1
  71. package/storybook-static/assets/{InputDateTime.stories-DWZLY6-q.js → InputDateTime.stories-BhjQejJD.js} +1 -1
  72. package/storybook-static/assets/{InputFile-kjPD2D6b.js → InputFile-BJfA5xNs.js} +1 -1
  73. package/storybook-static/assets/{InputFile.stories-C9fMevjs.js → InputFile.stories-BIJaIWlj.js} +1 -1
  74. package/storybook-static/assets/{InputFiles-1i_xo439.js → InputFiles-DORMd5fm.js} +1 -1
  75. package/storybook-static/assets/{InputFiles-BPW2NUcJ.js → InputFiles-ZK4wdii7.js} +1 -1
  76. package/storybook-static/assets/{InputFiles.stories-DxdLOKbl.js → InputFiles.stories-CVr0ENgC.js} +1 -1
  77. package/storybook-static/assets/{InputImage-ClXtDHy9.js → InputImage-Dk4j2KMa.js} +1 -1
  78. package/storybook-static/assets/{InputImage.stories-D3hw0C1x.js → InputImage.stories-Dtx-ynMr.js} +1 -1
  79. package/storybook-static/assets/{LayoutPicker-DmTnYW62.js → LayoutPicker-CCvATGnT.js} +1 -1
  80. package/storybook-static/assets/{LayoutPicker.stories-CZPA3-Ci.js → LayoutPicker.stories-MUwtf1U1.js} +1 -1
  81. package/storybook-static/assets/{Listbox-DV98iUDZ.js → Listbox-TfXOnGNL.js} +1 -1
  82. package/storybook-static/assets/{Listbox.stories-BFHG7-fh.js → Listbox.stories-Bxx8eTZ9.js} +1 -1
  83. package/storybook-static/assets/{Modal-hL7CzAFH.js → Modal-CeXVAufO.js} +1 -1
  84. package/storybook-static/assets/{Modal.stories-DKyOv2Vj.js → Modal.stories-DmnMwG9h.js} +1 -1
  85. package/storybook-static/assets/{MultiSelect-D23pcECY.js → MultiSelect-Bq5Xj6i5.js} +1 -1
  86. package/storybook-static/assets/{MultiSelect-hT_fw4sf.js → MultiSelect-CdEQ7LE0.js} +1 -1
  87. package/storybook-static/assets/{MultiSelect.stories-B0gUdW3k.js → MultiSelect.stories-BgjuPpG-.js} +1 -1
  88. package/storybook-static/assets/{NotificationsHost-ClQwHzJ_.js → NotificationsHost-B6xWf_Ae.js} +1 -1
  89. package/storybook-static/assets/{NotificationsHost.stories-BzPPbNiK.js → NotificationsHost.stories-BmnJ3G3S.js} +2 -2
  90. package/storybook-static/assets/{ODataMultiSelect-CCP1tbCi.js → ODataMultiSelect-BGFMSKC-.js} +1 -1
  91. package/storybook-static/assets/{ODataMultiSelect.stories-CnlXtZKW.js → ODataMultiSelect.stories-Cw3mS3ds.js} +1 -1
  92. package/storybook-static/assets/{ODataSelect-BJstdz9E.js → ODataSelect-9gP8ejA7.js} +1 -1
  93. package/storybook-static/assets/{ODataSelect-Du2-88av.js → ODataSelect-BTpRnB-o.js} +1 -1
  94. package/storybook-static/assets/{ODataSelect.stories-BvAeuhiH.js → ODataSelect.stories-C8XnS6W-.js} +1 -1
  95. package/storybook-static/assets/{ODataTreeMultiSelect-BCm7XhFB.js → ODataTreeMultiSelect-TXpOQMB8.js} +1 -1
  96. package/storybook-static/assets/{ODataTreeMultiSelect.stories-DKT1FMOy.js → ODataTreeMultiSelect.stories-ikxs50iA.js} +1 -1
  97. package/storybook-static/assets/{ODataTreeSelect-Bibf7s2z.js → ODataTreeSelect-CvgrWRYS.js} +1 -1
  98. package/storybook-static/assets/{ODataTreeSelect.stories-CCeNqvIR.js → ODataTreeSelect.stories-CWuZaxIF.js} +1 -1
  99. package/storybook-static/assets/{PeriodSelect-DLs8Hg0X.js → PeriodSelect-CVT2XzOd.js} +1 -1
  100. package/storybook-static/assets/{PeriodSelect.stories-C_XS3c7e.js → PeriodSelect.stories-B5jJRelX.js} +1 -1
  101. package/storybook-static/assets/{Popover-SXa3jBxm.js → Popover-D9YhHWsi.js} +1 -1
  102. package/storybook-static/assets/{Popover.stories-rR7JkQfu.js → Popover.stories-CtEUOX4O.js} +1 -1
  103. package/storybook-static/assets/{PresetRangeDateInput-dfDuKD_z.js → PresetRangeDateInput-D3r0iIRk.js} +1 -1
  104. package/storybook-static/assets/{PresetRangeDateInput.stories-CmRecC0S.js → PresetRangeDateInput.stories-Dcc1dGV0.js} +1 -1
  105. package/storybook-static/assets/{RadioButton-BivcuQIh.js → RadioButton-CWjkmWu9.js} +1 -1
  106. package/storybook-static/assets/{RadioButton.stories-Cio250wJ.js → RadioButton.stories-BXXJWoHz.js} +1 -1
  107. package/storybook-static/assets/{RadioGroup-D8LzcclQ.js → RadioGroup-Bjc2XTVk.js} +1 -1
  108. package/storybook-static/assets/{RadioGroup-C0Wirtog.js → RadioGroup-DCZdrs0C.js} +1 -1
  109. package/storybook-static/assets/{RadioGroup.stories-gYFTEm7L.js → RadioGroup.stories-CsfVUt9l.js} +1 -1
  110. package/storybook-static/assets/{Select-B737vUeI.js → Select-BBFQZObL.js} +1 -1
  111. package/storybook-static/assets/Select-BGu6rVaZ.js +12 -0
  112. package/storybook-static/assets/{Select.stories-1-tb5-TQ.js → Select.stories-wIbcvZYi.js} +1 -1
  113. package/storybook-static/assets/{SelectOptionContent-RA3YQEN1.js → SelectOptionContent-DkTRrtFu.js} +1 -1
  114. package/storybook-static/assets/{SerializableSelect-D6p7Qkk_.js → SerializableSelect-CJtNM-c6.js} +1 -1
  115. package/storybook-static/assets/{SerializableSelect-CKOPEv90.js → SerializableSelect-CdnRBVHB.js} +1 -1
  116. package/storybook-static/assets/{SerializableSelect.stories-C3l_ojuW.js → SerializableSelect.stories-DVwxpiTF.js} +1 -1
  117. package/storybook-static/assets/{SingleDateTimeInput-C-EH5-4w.js → SingleDateTimeInput-BK2_uv0z.js} +1 -1
  118. package/storybook-static/assets/SingleDateTimeInput.stories-DPH4R-h9.js +78 -0
  119. package/storybook-static/assets/{Slider-DgZ9jGV_.js → Slider-f4VatXYq.js} +1 -1
  120. package/storybook-static/assets/{Slider.stories-BN6M0546.js → Slider.stories-CBnmt8h9.js} +1 -1
  121. package/storybook-static/assets/{SliderInput-BDDf5ljP.js → SliderInput-W2HVfY9Z.js} +1 -1
  122. package/storybook-static/assets/{SliderInput.stories-COR3rS29.js → SliderInput.stories-B7wzoUbu.js} +1 -1
  123. package/storybook-static/assets/{Sortable-DN7Kb-Q_.js → Sortable-CCL1UMb_.js} +1 -1
  124. package/storybook-static/assets/{Sortable.stories-zRM1Phps.js → Sortable.stories-B8SgFjl7.js} +1 -1
  125. package/storybook-static/assets/{Splitter-Bk98rR7j.js → Splitter-BsBb1sgN.js} +1 -1
  126. package/storybook-static/assets/{Splitter.stories-B9CZFmcK.js → Splitter.stories-CuBHIA8-.js} +1 -1
  127. package/storybook-static/assets/{StateSelect-DFhsyVBP.js → StateSelect-BENsGD07.js} +1 -1
  128. package/storybook-static/assets/{StateSelect.stories-BcUz8RNT.js → StateSelect.stories-byEPoQ2E.js} +2 -2
  129. package/storybook-static/assets/{Switch-Cenm3lp0.js → Switch-DKXE4SVs.js} +1 -1
  130. package/storybook-static/assets/Switch.stories-BWQdJoJT.js +26 -0
  131. package/storybook-static/assets/{Table-D0mqxsmk.js → Table-D9w3ncNi.js} +1 -1
  132. package/storybook-static/assets/{Table.stories-DJdDS-vt.js → Table.stories-znqy5cLP.js} +1 -1
  133. package/storybook-static/assets/{Tabs-C_UydsUc.js → Tabs-D_OO95mK.js} +1 -1
  134. package/storybook-static/assets/{Tabs.stories-DPN4f4ia.js → Tabs.stories-B2A1HYeH.js} +1 -1
  135. package/storybook-static/assets/TagInput-LeQAhDgs.css +1 -0
  136. package/storybook-static/assets/TagInput.stories-DaBnABh8.js +18 -0
  137. package/storybook-static/assets/{Textarea-DR_6_kXC.js → Textarea-Hwyvp6ll.js} +1 -1
  138. package/storybook-static/assets/{Textarea.stories-BY6wMIfV.js → Textarea.stories-DD3Icl3x.js} +1 -1
  139. package/storybook-static/assets/{TimePanel-D30NeTN1.js → TimePanel-CdpxiwMQ.js} +1 -1
  140. package/storybook-static/assets/{TimePanel.stories-DQebBAT1.js → TimePanel.stories-ytXuqm9R.js} +1 -1
  141. package/storybook-static/assets/{Toggle-CiKKBdwN.js → Toggle-Sdruy8bN.js} +1 -1
  142. package/storybook-static/assets/{Toggle.stories-DhcLhXi0.js → Toggle.stories-qgeQLvRn.js} +1 -1
  143. package/storybook-static/assets/{TreeMultiSelect-W7KfPR_Z.js → TreeMultiSelect-CKfmI37X.js} +1 -1
  144. package/storybook-static/assets/{TreeMultiSelect-BKhWTTud.js → TreeMultiSelect-t2FNc6CY.js} +1 -1
  145. package/storybook-static/assets/{TreeMultiSelect.stories-nXP3P2Os.js → TreeMultiSelect.stories-k1NBsKij.js} +1 -1
  146. package/storybook-static/assets/{TreePickerBase-BKBGeL6X.js → TreePickerBase-DXv--vBR.js} +2 -2
  147. package/storybook-static/assets/{TreeSelect-CwcGtVsA.js → TreeSelect-DYHpUNGC.js} +1 -1
  148. package/storybook-static/assets/{TreeSelect-CkDg1wJA.js → TreeSelect-DgKArbMR.js} +1 -1
  149. package/storybook-static/assets/{TreeSelect.stories-vOWRtovd.js → TreeSelect.stories-DTpkFKp7.js} +1 -1
  150. package/storybook-static/assets/{TreeTable-BiVd6vET.js → TreeTable-BOy0Tit-.js} +1 -1
  151. package/storybook-static/assets/{TreeTable.stories-CmH5jmwM.js → TreeTable.stories-By1BlhSx.js} +1 -1
  152. package/storybook-static/assets/{WithTooltip-7X4HQR7L-aLpVnFpb.js → WithTooltip-7X4HQR7L-D0sHKirZ.js} +1 -1
  153. package/storybook-static/assets/{base-table-BpVO9KT9.js → base-table-CYO33S-X.js} +1 -1
  154. package/storybook-static/assets/{blocks-DoPnTsyg.js → blocks-Be6sd6Mi.js} +6 -6
  155. package/storybook-static/assets/{button-GO_OT5aH.js → button-D2JNy4h8.js} +1 -1
  156. package/storybook-static/assets/{check-box-DAQgEdFF.js → check-box-B4tjJED4.js} +1 -1
  157. package/storybook-static/assets/{chunk-3LY4VQVK-BONHkyBf.js → chunk-3LY4VQVK-jaQG9QeP.js} +1 -1
  158. package/storybook-static/assets/{chunk-LITCR56V-BVF-KYVd.js → chunk-LITCR56V-HuSFGdRZ.js} +1 -1
  159. package/storybook-static/assets/{contextMenu-BN_nodeg.js → contextMenu-DIpGZPH1.js} +1 -1
  160. package/storybook-static/assets/{error-B6AQmhXG.js → error-DHDPaDqg.js} +1 -1
  161. package/storybook-static/assets/{flex-DVKfO80p.js → flex-BWOaXKdl.js} +1 -1
  162. package/storybook-static/assets/{floating-ui.react-DGTgiAdH.js → floating-ui.react-C83w-peW.js} +1 -1
  163. package/storybook-static/assets/formatter-L2YTDE3Q-CO9xKxzu.js +1 -0
  164. package/storybook-static/assets/{formatters-Dzo8Pnex.js → formatters-BaQpdAeu.js} +1 -1
  165. package/storybook-static/assets/grid-BwTl00V9.js +1 -0
  166. package/storybook-static/assets/{hooks-CpDSHDMN.js → hooks-5ZdxaH2L.js} +1 -1
  167. package/storybook-static/assets/{iframe-CTboIfoI.js → iframe-Dw3PG8YA.js} +4 -4
  168. package/storybook-static/assets/{input-DD2xaJKI.js → input-Cv9ps4La.js} +1 -1
  169. package/storybook-static/assets/lucide-react-DMM2-ayk.js +1 -0
  170. package/storybook-static/assets/{mdx-react-shim-DOISS71W.js → mdx-react-shim-Be8o0WOk.js} +1 -1
  171. package/storybook-static/assets/{media-xUSqwRJF.js → media-Bc0eGngh.js} +1 -1
  172. package/storybook-static/assets/misc-7hwZFEXA.js +5 -0
  173. package/storybook-static/assets/{notifications-CWxiJcV-.js → notifications-DkxUPPfB.js} +1 -1
  174. package/storybook-static/assets/{odata-PGHrDwPA.js → odata-nO_yW-3w.js} +1 -1
  175. package/storybook-static/assets/odata-service-RLReWm0A.js +1 -0
  176. package/storybook-static/assets/{odataStoryFixtures-B0ggeKvL.js → odataStoryFixtures-J-OBpNg6.js} +1 -1
  177. package/storybook-static/assets/{picker-DR1p3GaI.js → picker-BQr_wySR.js} +1 -1
  178. package/storybook-static/assets/{popover-D0spGyn8.js → popover-v9hxY66g.js} +1 -1
  179. package/storybook-static/assets/{preset-select-DIVtd6Ma.js → preset-select-d-pIvdGN.js} +1 -1
  180. package/storybook-static/assets/{react-18-BW39uoSY.js → react-18-CXAAUXpx.js} +1 -1
  181. package/storybook-static/assets/{react-D66xb1cV.js → react-ByWJZTAG.js} +1 -1
  182. package/storybook-static/assets/{react-dom-B8H6ZjRK.js → react-dom-DXk3dBb-.js} +1 -1
  183. package/storybook-static/assets/select-BessDJfg.js +1 -0
  184. package/storybook-static/assets/{slider-DBMU3Zyk.js → slider-tV7pXkKI.js} +1 -1
  185. package/storybook-static/assets/{sortable-aygBVsVu.js → sortable-CHwTYQdY.js} +1 -1
  186. package/storybook-static/assets/{syntaxhighlighter-RTCFPKCB-BmTfzeWy.js → syntaxhighlighter-RTCFPKCB-CsqLGhls.js} +1 -1
  187. package/storybook-static/assets/{text-BE5Uqo4p.js → text-Bf_PqPja.js} +1 -1
  188. package/storybook-static/assets/{theming-A6fWw02F.js → theming-D37tYvvG.js} +1 -1
  189. package/storybook-static/assets/ui-QO8tRKaR.js +1 -0
  190. package/storybook-static/assets/{useODataSelectBase-BivsfJ24.js → useODataSelectBase-DSlg4q3l.js} +1 -1
  191. package/storybook-static/assets/{useODataTreeData-DAop_xYb.js → useODataTreeData-d53TKU6r.js} +1 -1
  192. package/storybook-static/assets/{utils-BAfp5vsY.js → utils-CnV3Gszu.js} +1 -1
  193. package/storybook-static/iframe.html +1 -1
  194. package/storybook-static/index.json +1 -1
  195. package/storybook-static/project.json +1 -1
  196. package/storybook-static/assets/Input-DrlKVI51.js +0 -3
  197. package/storybook-static/assets/Select-C5ObFms-.js +0 -12
  198. package/storybook-static/assets/SingleDateTimeInput.stories-WcN90RJQ.js +0 -78
  199. package/storybook-static/assets/Switch.stories-Deck0xn9.js +0 -26
  200. package/storybook-static/assets/formatter-L2YTDE3Q-DT96-80k.js +0 -1
  201. package/storybook-static/assets/grid-BhEsHhF8.js +0 -1
  202. package/storybook-static/assets/lucide-react-gtfXEQZ7.js +0 -1
  203. package/storybook-static/assets/misc-D1Z0nw9S.js +0 -5
  204. package/storybook-static/assets/odata-service-XyWC7XJb.js +0 -1
  205. package/storybook-static/assets/select-Dr2NjwXE.js +0 -1
  206. package/storybook-static/assets/ui-DW-Seccl.js +0 -1
@@ -4,79 +4,88 @@ import { o as n } from "../chunks/input-CZLUUggm.js";
4
4
  import { i as r, n as i, r as a } from "../chunks/modal-Cll8YZ7b.js";
5
5
  import { t as o } from "../chunks/input-files-aB8iaqGk.js";
6
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
- import h from "react-easy-crop";
7
+ import { cn as f } from "@ryuzaki13/react-foundation-lib/utils";
8
+ import { CaptionsIcon as p, CaptionsOffIcon as m, ChevronLeftIcon as h, ChevronRightIcon as g, DownloadIcon as _, GalleryThumbnailsIcon as v, ImageOffIcon as y, LoaderCircleIcon as b, Maximize2Icon as x, Minimize2Icon as S, XIcon as C, ZoomInIcon as w, ZoomOutIcon as T } from "lucide-react";
9
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
10
+ import k from "react-easy-crop";
11
+ import A, { isImageSlide as j } from "yet-another-react-lightbox";
12
+ import M from "yet-another-react-lightbox/plugins/captions";
13
+ import N from "yet-another-react-lightbox/plugins/counter";
14
+ import P from "yet-another-react-lightbox/plugins/download";
15
+ import F from "yet-another-react-lightbox/plugins/fullscreen";
16
+ import I from "yet-another-react-lightbox/plugins/thumbnails";
17
+ import L from "yet-another-react-lightbox/plugins/zoom";
9
18
  //#region src/image/lib/buildImageSrcSet.ts
10
- function g(e) {
19
+ function R(e) {
11
20
  return e.map((e) => "width" in e ? `${e.src} ${e.width}w` : `${e.src} ${e.density}x`).join(", ");
12
21
  }
13
22
  //#endregion
14
23
  //#region src/image/lib/buildImageSources.ts
15
- function _(e, t) {
24
+ function z(e, t) {
16
25
  return (e ?? []).map((e) => ({
17
- srcSet: g(e.candidates),
26
+ srcSet: R(e.candidates),
18
27
  type: e.type,
19
28
  sizes: e.sizes ?? t
20
29
  })).filter((e) => e.srcSet.length > 0);
21
30
  }
22
31
  //#endregion
23
32
  //#region src/image/ui/ImageCropper.tsx
24
- var v = {
33
+ var B = {
25
34
  x: 0,
26
35
  y: 0
27
36
  };
28
- function y({ image: e, aspect: t = 16 / 9, width: n = "100%", className: r, style: i, crop: a, defaultCrop: o = v, zoom: c, defaultZoom: l = 1, minZoom: u = 1, maxZoom: f = 3, zoomSpeed: m = .1, objectFit: g = "contain", disabled: _ = !1, onCropChange: y, onZoomChange: b, onCropComplete: x }) {
29
- let [S, C] = d(o), [w, T] = d(l), E = a ?? S, D = c ?? w, O = s((e) => {
30
- _ || (a === void 0 && C(e), y?.(e));
37
+ function V({ image: e, aspect: t = 16 / 9, width: n = "100%", className: r, style: i, crop: a, defaultCrop: o = B, zoom: c, defaultZoom: l = 1, minZoom: u = 1, maxZoom: f = 3, zoomSpeed: p = .1, objectFit: m = "contain", disabled: h = !1, onCropChange: g, onZoomChange: _, onCropComplete: v }) {
38
+ let [y, b] = d(o), [x, S] = d(l), C = a ?? y, w = c ?? x, T = s((e) => {
39
+ h || (a === void 0 && b(e), g?.(e));
31
40
  }, [
32
41
  a,
33
- _,
34
- y
35
- ]), k = s((e) => {
36
- _ || (c === void 0 && T(e), b?.(e));
42
+ h,
43
+ g
44
+ ]), E = s((e) => {
45
+ h || (c === void 0 && S(e), _?.(e));
37
46
  }, [
47
+ h,
38
48
  _,
39
- b,
40
49
  c
41
- ]), A = s((e, t) => {
42
- _ || x?.(t, e);
43
- }, [_, x]);
44
- return /* @__PURE__ */ p("div", {
50
+ ]), O = s((e, t) => {
51
+ h || v?.(t, e);
52
+ }, [h, v]);
53
+ return /* @__PURE__ */ D("div", {
45
54
  className: r,
46
55
  style: {
47
56
  position: "relative",
48
57
  width: n,
49
58
  aspectRatio: t,
50
- pointerEvents: _ ? "none" : void 0,
59
+ pointerEvents: h ? "none" : void 0,
51
60
  ...i
52
61
  },
53
- children: /* @__PURE__ */ p(h, {
62
+ children: /* @__PURE__ */ D(k, {
54
63
  image: e,
55
- crop: E,
56
- zoom: D,
64
+ crop: C,
65
+ zoom: w,
57
66
  aspect: t,
58
67
  minZoom: u,
59
68
  maxZoom: f,
60
- zoomSpeed: m,
61
- objectFit: g,
62
- onCropChange: O,
63
- onZoomChange: k,
64
- onCropComplete: A,
65
- cropperProps: { "aria-disabled": _ || void 0 }
69
+ zoomSpeed: p,
70
+ objectFit: m,
71
+ onCropChange: T,
72
+ onZoomChange: E,
73
+ onCropComplete: O,
74
+ cropperProps: { "aria-disabled": h || void 0 }
66
75
  })
67
76
  });
68
77
  }
69
78
  //#endregion
70
79
  //#region src/image/ui/ImagePlaceholder.tsx
71
- function b({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", className: r }) {
72
- return /* @__PURE__ */ p("div", {
80
+ function H({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", className: r }) {
81
+ return /* @__PURE__ */ D("div", {
73
82
  style: {
74
83
  width: e,
75
84
  height: t,
76
85
  aspectRatio: n
77
86
  },
78
87
  className: r,
79
- children: /* @__PURE__ */ p("svg", {
88
+ children: /* @__PURE__ */ D("svg", {
80
89
  width: e,
81
90
  height: t,
82
91
  viewBox: "0 0 200 200",
@@ -87,31 +96,31 @@ function b({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
87
96
  ry: "10",
88
97
  style: { display: "block" },
89
98
  "aria-label": "Изображение недоступно",
90
- children: /* @__PURE__ */ m("g", {
99
+ children: /* @__PURE__ */ O("g", {
91
100
  fill: "var(--surface-0)",
92
101
  children: [
93
- /* @__PURE__ */ p("rect", {
102
+ /* @__PURE__ */ D("rect", {
94
103
  x: "40",
95
104
  y: "50",
96
105
  width: "120",
97
106
  height: "100",
98
107
  rx: "10"
99
108
  }),
100
- /* @__PURE__ */ p("circle", {
109
+ /* @__PURE__ */ D("circle", {
101
110
  cx: "60",
102
111
  cy: "70",
103
112
  r: "8",
104
113
  fill: "var(--surface-2)"
105
114
  }),
106
- /* @__PURE__ */ p("path", {
115
+ /* @__PURE__ */ D("path", {
107
116
  d: "M50 130 L75 100 L100 130 Z",
108
117
  fill: "var(--surface-2)"
109
118
  }),
110
- /* @__PURE__ */ p("path", {
119
+ /* @__PURE__ */ D("path", {
111
120
  d: "M90 130 L120 90 L150 130 Z",
112
121
  fill: "var(--surface-2)"
113
122
  }),
114
- /* @__PURE__ */ p("line", {
123
+ /* @__PURE__ */ D("line", {
115
124
  x1: "160",
116
125
  y1: "40",
117
126
  x2: "40",
@@ -120,7 +129,7 @@ function b({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
120
129
  strokeWidth: "15",
121
130
  strokeLinecap: "round"
122
131
  }),
123
- /* @__PURE__ */ p("line", {
132
+ /* @__PURE__ */ D("line", {
124
133
  x1: "160",
125
134
  y1: "40",
126
135
  x2: "40",
@@ -136,30 +145,30 @@ function b({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
136
145
  }
137
146
  //#endregion
138
147
  //#region src/image/ui/ImageRenderer.tsx
139
- function x({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: s = !1, layout: l = "cover", width: h = "100%", height: g = "100%", aspectRatio: _, intrinsicWidth: v, intrinsicHeight: y, onLoad: x, onError: S, style: C, wrapperStyle: w, ...T }) {
140
- let E = u(null), [D, O] = d(0), [k, A] = d(!1), [j, M] = d(!1), [N, P] = d(!1);
148
+ function U({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: s = !1, layout: l = "cover", width: f = "100%", height: p = "100%", aspectRatio: m, intrinsicWidth: h, intrinsicHeight: g, onLoad: _, onError: v, style: y, wrapperStyle: b, ...x }) {
149
+ let S = u(null), [C, w] = d(0), [T, k] = d(!1), [A, j] = d(!1), [M, N] = d(!1);
141
150
  c(() => {
142
151
  if (typeof IntersectionObserver > "u") {
143
- let e = window.setTimeout(() => A(!0), 0);
152
+ let e = window.setTimeout(() => k(!0), 0);
144
153
  return () => window.clearTimeout(e);
145
154
  }
146
155
  let e = new IntersectionObserver(([t]) => {
147
156
  if (t.isIntersecting) {
148
157
  let n = Math.round(t.boundingClientRect.width);
149
- O(n), A(!0), e.disconnect();
158
+ w(n), k(!0), e.disconnect();
150
159
  }
151
160
  }, {
152
161
  rootMargin: "100px",
153
162
  threshold: .01
154
163
  });
155
- return E.current && e.observe(E.current), () => e.disconnect();
164
+ return S.current && e.observe(S.current), () => e.disconnect();
156
165
  }, []);
157
- let F = l === "intrinsic", I = F ? "auto" : g, L = v && y ? `${v} / ${y}` : void 0, R = F ? L ?? _ ?? "auto" : _ ?? "16 / 9", z = F && R !== "auto" && R !== "unset" ? "100%" : I, B = D ? `${D}px` : "100vw", V = /* @__PURE__ */ p(b, {
158
- width: h,
159
- height: z,
160
- aspectRatio: R
161
- }), H = F ? {
162
- ...C,
166
+ let P = l === "intrinsic", F = P ? "auto" : p, I = h && g ? `${h} / ${g}` : void 0, L = P ? I ?? m ?? "auto" : m ?? "16 / 9", R = P && L !== "auto" && L !== "unset" ? "100%" : F, z = C ? `${C}px` : "100vw", B = /* @__PURE__ */ D(H, {
167
+ width: f,
168
+ height: R,
169
+ aspectRatio: L
170
+ }), V = P ? {
171
+ ...y,
163
172
  display: "block",
164
173
  width: "100%",
165
174
  height: "auto",
@@ -169,44 +178,44 @@ function x({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
169
178
  width: "100%",
170
179
  height: "100%",
171
180
  objectFit: l,
172
- ...C
173
- }, U = /* @__PURE__ */ m(f, { children: [
174
- !j && !N && (o || V),
175
- k && !N && /* @__PURE__ */ m("picture", { children: [t?.map((e) => /* @__PURE__ */ p("source", {
181
+ ...y
182
+ }, U = /* @__PURE__ */ O(E, { children: [
183
+ !A && !M && (o || B),
184
+ T && !M && /* @__PURE__ */ O("picture", { children: [t?.map((e) => /* @__PURE__ */ D("source", {
176
185
  srcSet: e.srcSet,
177
186
  type: e.type,
178
- sizes: e.sizes ?? B
179
- }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ p("img", {
187
+ sizes: e.sizes ?? z
188
+ }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ D("img", {
180
189
  src: e,
181
190
  alt: n,
182
191
  role: r,
183
192
  "aria-label": i,
184
193
  onLoad: (e) => {
185
- M(!0), x?.(e);
194
+ j(!0), _?.(e);
186
195
  },
187
196
  onError: (e) => {
188
- P(!0), S?.(e);
197
+ N(!0), v?.(e);
189
198
  },
190
- style: j ? H : { display: "none" },
191
- "aria-busy": !j,
192
- width: v,
193
- height: y,
194
- ...T
199
+ style: A ? V : { display: "none" },
200
+ "aria-busy": !A,
201
+ width: h,
202
+ height: g,
203
+ ...x
195
204
  })] }),
196
- N && V
197
- ] }), W = /* @__PURE__ */ p("div", {
198
- ref: E,
205
+ M && B
206
+ ] }), W = /* @__PURE__ */ D("div", {
207
+ ref: S,
199
208
  style: {
200
- width: h,
201
- height: I,
202
- aspectRatio: R,
203
- ...w
209
+ width: f,
210
+ height: F,
211
+ aspectRatio: L,
212
+ ...b
204
213
  },
205
214
  children: U
206
215
  });
207
- return s ? /* @__PURE__ */ m("figure", {
216
+ return s ? /* @__PURE__ */ O("figure", {
208
217
  className: "relative",
209
- children: [W, a && /* @__PURE__ */ p("figcaption", {
218
+ children: [W, a && /* @__PURE__ */ D("figcaption", {
210
219
  style: {
211
220
  bottom: 2,
212
221
  right: 2,
@@ -219,19 +228,19 @@ function x({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
219
228
  }
220
229
  //#endregion
221
230
  //#region src/image/lib/getImageSelectionKey.ts
222
- function S(e, t) {
231
+ function W(e, t) {
223
232
  return `${e.file.meta.name}-${e.file.meta.size}-${e.file.meta.lastModified}-${t}`;
224
233
  }
225
234
  //#endregion
226
235
  //#region src/image/model/useImageSelectionState.ts
227
- var C = {
236
+ var G = {
228
237
  crop: {
229
238
  x: 0,
230
239
  y: 0
231
240
  },
232
241
  zoom: 1
233
242
  };
234
- function w({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i }) {
243
+ function K({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i }) {
235
244
  let [a, o] = d(t ?? []), [c, u] = d(0), [f, p] = d({}), m = e ?? a, h = s((t) => {
236
245
  let n = t(m);
237
246
  e === void 0 && o(n), r?.(n);
@@ -239,7 +248,7 @@ function w({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
239
248
  r,
240
249
  m,
241
250
  e
242
- ]), g = l(() => m.map((e) => e.file), [m]), _ = m.length === 0 ? 0 : Math.min(c, m.length - 1), v = m[_], y = v ? S(v, _) : void 0, b = y ? f[y] ?? C : C, x = m.length > 0, w = !n && x && m.every((e) => e.alt.trim() && e.crop), T = s((e) => {
251
+ ]), g = l(() => m.map((e) => e.file), [m]), _ = m.length === 0 ? 0 : Math.min(c, m.length - 1), v = m[_], y = v ? W(v, _) : void 0, b = y ? f[y] ?? G : G, x = m.length > 0, S = !n && x && m.every((e) => e.alt.trim() && e.crop), C = s((e) => {
243
252
  h((t) => e.map((e) => {
244
253
  let n = t.find((t) => t.file.file === e.file);
245
254
  return n ? {
@@ -250,17 +259,17 @@ function w({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
250
259
  alt: ""
251
260
  };
252
261
  }));
253
- }, [h]), E = s((e) => {
262
+ }, [h]), w = s((e) => {
254
263
  h((t) => t.map((t, n) => n === _ ? {
255
264
  ...t,
256
265
  alt: e
257
266
  } : t));
258
- }, [_, h]), D = s((e) => {
267
+ }, [_, h]), T = s((e) => {
259
268
  h((t) => t.map((t, n) => n === _ ? {
260
269
  ...t,
261
270
  crop: e
262
271
  } : t));
263
- }, [_, h]), O = s((e) => {
272
+ }, [_, h]), E = s((e) => {
264
273
  y && p((t) => ({
265
274
  ...t,
266
275
  [y]: {
@@ -268,7 +277,7 @@ function w({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
268
277
  zoom: t[y]?.zoom ?? 1
269
278
  }
270
279
  }));
271
- }, [y]), k = s((e) => {
280
+ }, [y]), D = s((e) => {
272
281
  y && p((t) => ({
273
282
  ...t,
274
283
  [y]: {
@@ -287,21 +296,21 @@ function w({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
287
296
  activeImage: v,
288
297
  activeCropperState: b,
289
298
  hasSelected: x,
290
- canApply: w,
299
+ canApply: S,
291
300
  apply: s(() => {
292
301
  i?.(m);
293
302
  }, [i, m]),
294
- setFiles: T,
303
+ setFiles: C,
295
304
  setActiveIndex: u,
296
- setActiveAlt: E,
297
- setActiveCrop: D,
298
- setActiveCropperCrop: O,
299
- setActiveCropperZoom: k
305
+ setActiveAlt: w,
306
+ setActiveCrop: T,
307
+ setActiveCropperCrop: E,
308
+ setActiveCropperZoom: D
300
309
  };
301
310
  }
302
311
  //#endregion
303
312
  //#region src/image/lib/getImageCropPreviewStyle.ts
304
- function T(e, t, n) {
313
+ function q(e, t, n) {
305
314
  if (!e.crop || !t) return {
306
315
  width: "100%",
307
316
  aspectRatio: n,
@@ -320,18 +329,18 @@ function T(e, t, n) {
320
329
  }
321
330
  //#endregion
322
331
  //#region src/image/ui/ImageSelectionFields.tsx
323
- var E = [
332
+ var J = [
324
333
  "image/jpeg",
325
334
  "image/png",
326
335
  "image/webp",
327
336
  "image/avif"
328
337
  ];
329
- function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, minimumCropWidth: s, onReadError: c, state: l }) {
330
- let u = l.activeImage?.crop, [f, h] = d({});
331
- return /* @__PURE__ */ m(t, {
338
+ function Y({ aspect: e = 16 / 9, disabled: r, allowedMime: i = J, maxBytes: a, minimumCropWidth: s, onReadError: c, state: l }) {
339
+ let u = l.activeImage?.crop, [f, p] = d({});
340
+ return /* @__PURE__ */ O(t, {
332
341
  gap: "md",
333
342
  children: [
334
- /* @__PURE__ */ p(o, {
343
+ /* @__PURE__ */ D(o, {
335
344
  label: "Файл изображения",
336
345
  allowedMime: i,
337
346
  value: l.files,
@@ -340,13 +349,13 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
340
349
  disabled: r,
341
350
  onReadError: c
342
351
  }),
343
- l.hasSelected && l.activeImage && /* @__PURE__ */ m("div", { children: [
344
- /* @__PURE__ */ p(t, {
352
+ l.hasSelected && l.activeImage && /* @__PURE__ */ O("div", { children: [
353
+ /* @__PURE__ */ D(t, {
345
354
  templateColumns: "repeat(auto-fill, minmax(10em, 1fr))",
346
355
  gap: "xs",
347
356
  children: l.value.map((t, n) => {
348
- let i = S(t, n);
349
- return /* @__PURE__ */ p("button", {
357
+ let i = W(t, n);
358
+ return /* @__PURE__ */ D("button", {
350
359
  type: "button",
351
360
  disabled: r,
352
361
  onClick: () => l.setActiveIndex(n),
@@ -356,7 +365,7 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
356
365
  background: "transparent",
357
366
  cursor: r ? "default" : "pointer"
358
367
  },
359
- children: /* @__PURE__ */ p("span", {
368
+ children: /* @__PURE__ */ D("span", {
360
369
  style: {
361
370
  position: "relative",
362
371
  display: "block",
@@ -364,13 +373,13 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
364
373
  aspectRatio: e,
365
374
  overflow: "hidden"
366
375
  },
367
- children: /* @__PURE__ */ p("img", {
376
+ children: /* @__PURE__ */ D("img", {
368
377
  src: t.file.dataUrl,
369
378
  alt: t.alt || `Предпросмотр изображения ${n + 1}`,
370
- style: T(t, f[i], e),
379
+ style: q(t, f[i], e),
371
380
  onLoad: (e) => {
372
381
  let t = e.currentTarget;
373
- h((e) => ({
382
+ p((e) => ({
374
383
  ...e,
375
384
  [i]: {
376
385
  width: t.naturalWidth,
@@ -383,10 +392,10 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
383
392
  }, i);
384
393
  })
385
394
  }),
386
- /* @__PURE__ */ m("div", { children: [
395
+ /* @__PURE__ */ O("div", { children: [
387
396
  "Выберите область изображения",
388
397
  " ",
389
- u && /* @__PURE__ */ m("code", {
398
+ u && /* @__PURE__ */ O("code", {
390
399
  className: s && u.width < s ? "statusError" : "statusSuccess",
391
400
  children: [
392
401
  u.width,
@@ -396,7 +405,7 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
396
405
  ]
397
406
  })
398
407
  ] }),
399
- /* @__PURE__ */ p(y, {
408
+ /* @__PURE__ */ D(V, {
400
409
  image: l.activeImage.file.dataUrl,
401
410
  crop: l.activeCropperState.crop,
402
411
  zoom: l.activeCropperState.zoom,
@@ -405,9 +414,9 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
405
414
  onCropChange: l.setActiveCropperCrop,
406
415
  onZoomChange: l.setActiveCropperZoom,
407
416
  onCropComplete: l.setActiveCrop
408
- }, S(l.activeImage, l.activeIndex))
417
+ }, W(l.activeImage, l.activeIndex))
409
418
  ] }),
410
- /* @__PURE__ */ p(n, {
419
+ /* @__PURE__ */ D(n, {
411
420
  required: !0,
412
421
  disabled: !l.hasSelected || r,
413
422
  label: "Краткое описание изображения",
@@ -420,37 +429,37 @@ function D({ aspect: e = 16 / 9, disabled: r, allowedMime: i = E, maxBytes: a, m
420
429
  }
421
430
  //#endregion
422
431
  //#region src/image/ui/ImageSelectionModal.tsx
423
- function O({ disabled: t, isOpen: n = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...c }) {
424
- let l = w({
432
+ function X({ disabled: t, isOpen: n = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...c }) {
433
+ let l = K({
425
434
  ...c,
426
435
  disabled: t
427
436
  });
428
- return c.onApply ? /* @__PURE__ */ m(i, {
437
+ return c.onApply ? /* @__PURE__ */ O(i, {
429
438
  isOpen: n,
430
439
  onClose: o,
431
440
  title: s,
432
441
  size: "xl",
433
- children: [/* @__PURE__ */ p(a, {
442
+ children: [/* @__PURE__ */ D(a, {
434
443
  scrollable: !0,
435
- children: /* @__PURE__ */ p(D, {
444
+ children: /* @__PURE__ */ D(Y, {
436
445
  ...c,
437
446
  disabled: t,
438
447
  state: l
439
448
  })
440
- }), /* @__PURE__ */ p(r, { children: /* @__PURE__ */ p(e, {
449
+ }), /* @__PURE__ */ D(r, { children: /* @__PURE__ */ D(e, {
441
450
  disabled: !l.canApply,
442
451
  tone: "success",
443
452
  onClick: l.apply,
444
453
  children: "Применить"
445
454
  }) })]
446
- }) : /* @__PURE__ */ p(i, {
455
+ }) : /* @__PURE__ */ D(i, {
447
456
  isOpen: n,
448
457
  onClose: o,
449
458
  title: s,
450
459
  size: "xl",
451
- children: /* @__PURE__ */ p(a, {
460
+ children: /* @__PURE__ */ D(a, {
452
461
  scrollable: !0,
453
- children: /* @__PURE__ */ p(D, {
462
+ children: /* @__PURE__ */ D(Y, {
454
463
  ...c,
455
464
  disabled: t,
456
465
  state: l
@@ -460,8 +469,8 @@ function O({ disabled: t, isOpen: n = !0, onClose: o = () => {}, title: s = "З
460
469
  }
461
470
  //#endregion
462
471
  //#region src/image/ui/ImageSelectionPanel.tsx
463
- function k({ disabled: t, renderActions: n, ...r }) {
464
- let i = w({
472
+ function Z({ disabled: t, renderActions: n, ...r }) {
473
+ let i = K({
465
474
  ...r,
466
475
  disabled: t
467
476
  }), a = {
@@ -471,11 +480,11 @@ function k({ disabled: t, renderActions: n, ...r }) {
471
480
  canApply: i.canApply,
472
481
  apply: i.apply
473
482
  };
474
- return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(D, {
483
+ return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(Y, {
475
484
  ...r,
476
485
  disabled: t,
477
486
  state: i
478
- }), n ? n(a) : r.onApply && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(e, {
487
+ }), n ? n(a) : r.onApply && /* @__PURE__ */ D("div", { children: /* @__PURE__ */ D(e, {
479
488
  disabled: !i.canApply,
480
489
  tone: "success",
481
490
  onClick: i.apply,
@@ -484,9 +493,9 @@ function k({ disabled: t, renderActions: n, ...r }) {
484
493
  }
485
494
  //#endregion
486
495
  //#region src/image/ui/ImageView.tsx
487
- function A({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
488
- let a = _(e.sources, n), o = e.candidates ? g(e.candidates) : void 0, s = r ?? (e.intrinsicWidth && e.intrinsicHeight ? `${e.intrinsicWidth} / ${e.intrinsicHeight}` : void 0);
489
- return /* @__PURE__ */ p(x, {
496
+ function ee({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
497
+ let a = z(e.sources, n), o = e.candidates ? R(e.candidates) : void 0, s = r ?? (e.intrinsicWidth && e.intrinsicHeight ? `${e.intrinsicWidth} / ${e.intrinsicHeight}` : void 0);
498
+ return /* @__PURE__ */ D(U, {
490
499
  ...i,
491
500
  src: e.src,
492
501
  srcSet: o || void 0,
@@ -499,6 +508,213 @@ function A({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
499
508
  });
500
509
  }
501
510
  //#endregion
502
- export { y as ImageCropper, b as ImagePlaceholder, x as ImageRenderer, O as ImageSelectionModal, k as ImageSelectionPanel, A as ImageView, _ as buildImageSources, g as buildImageSrcSet };
511
+ //#region src/image/lib/buildImageViewerSlides.ts
512
+ function Q(e) {
513
+ return Number.isFinite(e) && e > 0;
514
+ }
515
+ function te(e, t) {
516
+ let n = e.width === void 0 ? e.density === void 0 ? 0 : t * e.density : e.width;
517
+ return Q(n) ? Math.round(n) : null;
518
+ }
519
+ function ne(e) {
520
+ let { intrinsicWidth: t, intrinsicHeight: n } = e;
521
+ if (t === void 0 || n === void 0 || !Q(t) || !Q(n)) return;
522
+ let r = /* @__PURE__ */ new Map();
523
+ for (let i of e.candidates ?? []) {
524
+ let e = te(i, t);
525
+ e === null || r.has(e) || r.set(e, {
526
+ src: i.src,
527
+ width: e,
528
+ height: Math.max(1, Math.round(e * n / t))
529
+ });
530
+ }
531
+ let i = [...r.values()].sort((e, t) => e.width - t.width);
532
+ return i.length > 0 ? i : void 0;
533
+ }
534
+ function re(e) {
535
+ return e.map((e) => {
536
+ let t = Q(e.intrinsicWidth ?? 0) && Q(e.intrinsicHeight ?? 0);
537
+ return {
538
+ src: e.src,
539
+ alt: e.alt,
540
+ width: t ? e.intrinsicWidth : void 0,
541
+ height: t ? e.intrinsicHeight : void 0,
542
+ srcSet: ne(e),
543
+ title: e.title === void 0 ? e.alt : e.title,
544
+ description: e.description,
545
+ thumbnail: e.thumbnail,
546
+ download: e.download
547
+ };
548
+ });
549
+ }
550
+ //#endregion
551
+ //#region src/image/lib/resolveImageViewerLabels.ts
552
+ var ie = {
553
+ previous: "Предыдущее изображение",
554
+ next: "Следующее изображение",
555
+ close: "Закрыть просмотр",
556
+ slide: "Изображение",
557
+ carousel: "Карусель изображений",
558
+ lightbox: "Просмотр изображений",
559
+ photoGallery: "Галерея изображений",
560
+ slideCounter: "{index} из {total}",
561
+ zoomIn: "Увеличить",
562
+ zoomOut: "Уменьшить",
563
+ enterFullscreen: "Перейти в полноэкранный режим",
564
+ exitFullscreen: "Выйти из полноэкранного режима",
565
+ thumbnails: "Миниатюры",
566
+ showThumbnails: "Показать миниатюры",
567
+ hideThumbnails: "Скрыть миниатюры",
568
+ caption: "Подпись изображения",
569
+ showCaptions: "Показать подписи",
570
+ hideCaptions: "Скрыть подписи",
571
+ download: "Скачать изображение"
572
+ };
573
+ function ae(e) {
574
+ let t = {
575
+ ...ie,
576
+ ...e
577
+ };
578
+ return {
579
+ Previous: t.previous,
580
+ Next: t.next,
581
+ Close: t.close,
582
+ Slide: t.slide,
583
+ Carousel: t.carousel,
584
+ Lightbox: t.lightbox,
585
+ "Photo gallery": t.photoGallery,
586
+ "{index} of {total}": t.slideCounter,
587
+ "Zoom in": t.zoomIn,
588
+ "Zoom out": t.zoomOut,
589
+ "Enter Fullscreen": t.enterFullscreen,
590
+ "Exit Fullscreen": t.exitFullscreen,
591
+ Thumbnails: t.thumbnails,
592
+ "Show thumbnails": t.showThumbnails,
593
+ "Hide thumbnails": t.hideThumbnails,
594
+ Caption: t.caption,
595
+ "Show captions": t.showCaptions,
596
+ "Hide captions": t.hideCaptions,
597
+ Download: t.download
598
+ };
599
+ }
600
+ var $ = {
601
+ viewer: "acj1dM",
602
+ icon: "jt3y3m",
603
+ loadingIcon: "_2SAWIU",
604
+ imageViewerSpin: "_1GqI3h"
605
+ };
606
+ //#endregion
607
+ //#region src/image/ui/ImageViewer.tsx
608
+ function oe({ open: e, images: t, index: n = 0, onClose: r, onIndexChange: i, features: a, loop: o = !1, closeOnBackdropClick: s = !0, closeOnPullDown: c = !0, labels: u, className: d, style: E }) {
609
+ let O = l(() => re(t), [t]), k = Number.isFinite(n) ? Math.trunc(n) : 0, R = O.length > 0 ? Math.min(Math.max(k, 0), O.length - 1) : 0, z = t.some((e) => (e.title === void 0 ? e.alt : e.title) != null || e.description !== void 0 && e.description !== null), B = a?.captions ?? z, V = a?.counter ?? O.length > 1, H = a?.download ?? !1, U = a?.fullscreen ?? !0, W = a?.thumbnails ?? O.length > 1, G = a?.zoom ?? !0, K = l(() => [
610
+ ...B ? [M] : [],
611
+ ...V ? [N] : [],
612
+ ...H ? [P] : [],
613
+ ...U ? [F] : [],
614
+ ...W ? [I] : [],
615
+ ...G ? [L] : []
616
+ ], [
617
+ B,
618
+ V,
619
+ H,
620
+ U,
621
+ W,
622
+ G
623
+ ]), q = l(() => ae(u), [u]);
624
+ return /* @__PURE__ */ D(A, {
625
+ open: e && O.length > 0,
626
+ close: r,
627
+ index: R,
628
+ slides: O,
629
+ plugins: K,
630
+ className: f($.viewer, d),
631
+ portal: { container: { style: E } },
632
+ labels: q,
633
+ carousel: { finite: !o },
634
+ controller: {
635
+ closeOnBackdropClick: s,
636
+ closeOnPullDown: c
637
+ },
638
+ captions: { showToggle: !0 },
639
+ counter: { separator: " / " },
640
+ thumbnails: { showToggle: !0 },
641
+ download: { download: ({ slide: e, saveAs: t }) => {
642
+ if (!(!j(e) || e.download === !1)) {
643
+ if (typeof e.download == "string") {
644
+ t(e.download);
645
+ return;
646
+ }
647
+ if (typeof e.download == "object") {
648
+ t(e.download.url, e.download.filename);
649
+ return;
650
+ }
651
+ t(e.src);
652
+ }
653
+ } },
654
+ on: { view: ({ index: e }) => {
655
+ e !== R && i?.(e);
656
+ } },
657
+ render: {
658
+ iconPrev: () => /* @__PURE__ */ D(h, {
659
+ "aria-hidden": "true",
660
+ className: $.icon
661
+ }),
662
+ iconNext: () => /* @__PURE__ */ D(g, {
663
+ "aria-hidden": "true",
664
+ className: $.icon
665
+ }),
666
+ iconClose: () => /* @__PURE__ */ D(C, {
667
+ "aria-hidden": "true",
668
+ className: $.icon
669
+ }),
670
+ iconLoading: () => /* @__PURE__ */ D(b, {
671
+ "aria-hidden": "true",
672
+ className: f($.icon, $.loadingIcon)
673
+ }),
674
+ iconError: () => /* @__PURE__ */ D(y, {
675
+ "aria-hidden": "true",
676
+ className: $.icon
677
+ }),
678
+ iconZoomIn: () => /* @__PURE__ */ D(w, {
679
+ "aria-hidden": "true",
680
+ className: $.icon
681
+ }),
682
+ iconZoomOut: () => /* @__PURE__ */ D(T, {
683
+ "aria-hidden": "true",
684
+ className: $.icon
685
+ }),
686
+ iconEnterFullscreen: () => /* @__PURE__ */ D(x, {
687
+ "aria-hidden": "true",
688
+ className: $.icon
689
+ }),
690
+ iconExitFullscreen: () => /* @__PURE__ */ D(S, {
691
+ "aria-hidden": "true",
692
+ className: $.icon
693
+ }),
694
+ iconThumbnailsVisible: () => /* @__PURE__ */ D(v, {
695
+ "aria-hidden": "true",
696
+ className: $.icon
697
+ }),
698
+ iconThumbnailsHidden: () => /* @__PURE__ */ D(v, {
699
+ "aria-hidden": "true",
700
+ className: $.icon
701
+ }),
702
+ iconCaptionsVisible: () => /* @__PURE__ */ D(p, {
703
+ "aria-hidden": "true",
704
+ className: $.icon
705
+ }),
706
+ iconCaptionsHidden: () => /* @__PURE__ */ D(m, {
707
+ "aria-hidden": "true",
708
+ className: $.icon
709
+ }),
710
+ iconDownload: () => /* @__PURE__ */ D(_, {
711
+ "aria-hidden": "true",
712
+ className: $.icon
713
+ })
714
+ }
715
+ });
716
+ }
717
+ //#endregion
718
+ export { V as ImageCropper, H as ImagePlaceholder, U as ImageRenderer, X as ImageSelectionModal, Z as ImageSelectionPanel, ee as ImageView, oe as ImageViewer, z as buildImageSources, R as buildImageSrcSet };
503
719
 
504
720
  //# sourceMappingURL=index.js.map