@ryuzaki13/react-foundation-ui 3.8.2 → 3.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 (274) hide show
  1. package/dist/multi-select/index.js +3 -1
  2. package/dist/multi-select/index.js.map +1 -1
  3. package/dist/multi-select/ui/MultiSelectOptionRow.d.ts.map +1 -1
  4. package/package.json +1 -1
  5. package/storybook-static/assets/{Badge-B06dZKmL.js → Badge-Exgo2liR.js} +1 -1
  6. package/storybook-static/assets/{Badge.stories-CNeYsg94.js → Badge.stories-BSZPB2hP.js} +1 -1
  7. package/storybook-static/assets/{BadgeList-B3hAaRiw.js → BadgeList-vXAflISJ.js} +1 -1
  8. package/storybook-static/assets/{BarcodeScannerDialog.stories-Ca3bvisG.js → BarcodeScannerDialog.stories-B5JJTqxe.js} +1 -1
  9. package/storybook-static/assets/{Button-BJqsQn21.js → Button-BzRtAjtM.js} +1 -1
  10. package/storybook-static/assets/{Button-hFN4j0ap.js → Button-W5ftYk1w.js} +1 -1
  11. package/storybook-static/assets/{Button.stories-Dyqtd2c4.js → Button.stories-DcuEJMqp.js} +1 -1
  12. package/storybook-static/assets/{CalendarView-DSP85608.js → CalendarView-C8taheM_.js} +1 -1
  13. package/storybook-static/assets/{CheckBox-DBJMOBLd.js → CheckBox-C-EWY4_-.js} +1 -1
  14. package/storybook-static/assets/{CheckBox-BKSwN7GA.js → CheckBox-Cahw6EU8.js} +1 -1
  15. package/storybook-static/assets/{CheckBox.stories-UkX5D5Eb.js → CheckBox.stories-DL49eu_s.js} +1 -1
  16. package/storybook-static/assets/{Color-6AOWCN3U-Df1HkQjf.js → Color-6AOWCN3U-B0iuSBAP.js} +1 -1
  17. package/storybook-static/assets/{ContextMenu-CDSgMiHk.js → ContextMenu-DqLKk-wW.js} +1 -1
  18. package/storybook-static/assets/{ContextMenu-D2Pt6DNp.js → ContextMenu-k1Mubm6h.js} +1 -1
  19. package/storybook-static/assets/{ContextMenu.stories-fkc3HV1F.js → ContextMenu.stories-CNnrfTxO.js} +1 -1
  20. package/storybook-static/assets/{DateInput-CwquHa_L.js → DateInput-CgBBiqYK.js} +1 -1
  21. package/storybook-static/assets/{DateInput-BsGJfYad.js → DateInput-NSuuc0Vu.js} +1 -1
  22. package/storybook-static/assets/{DateInput.stories-BLzfl_QZ.js → DateInput.stories-eWY9Pqwp.js} +1 -1
  23. package/storybook-static/assets/{DateRangePresetSelect-B4XSdHNS.js → DateRangePresetSelect-Ch6rsktY.js} +1 -1
  24. package/storybook-static/assets/{DateRangePresetSelect-3v588bv9.js → DateRangePresetSelect-DibXoV_U.js} +1 -1
  25. package/storybook-static/assets/{DateRangePresetSelect.stories-Bs_7Odrc.js → DateRangePresetSelect.stories-B8yndfPd.js} +1 -1
  26. package/storybook-static/assets/{DeprecatedMultiSelect-DF_Y4SSx.js → DeprecatedMultiSelect-1K4GSVRr.js} +1 -1
  27. package/storybook-static/assets/{DeprecatedMultiSelect-ZyWVz_vc.js → DeprecatedMultiSelect-D8BCr3qw.js} +1 -1
  28. package/storybook-static/assets/{DeprecatedMultiSelect.stories-35N0oXql.js → DeprecatedMultiSelect.stories-DH7fIprL.js} +1 -1
  29. package/storybook-static/assets/{Detail-BCV5krRV.js → Detail-CzQ7DLhL.js} +1 -1
  30. package/storybook-static/assets/{Detail.stories-C6oEoTFG.js → Detail.stories-DzmSAGkt.js} +1 -1
  31. package/storybook-static/assets/{Dialog-VBA5gEFI.js → Dialog-Cm7gLcJI.js} +1 -1
  32. package/storybook-static/assets/{Dialog-CfEj39yX.js → Dialog-DEDDnDtQ.js} +1 -1
  33. package/storybook-static/assets/{Dialog.stories-CN8AihLh.js → Dialog.stories-BzvBjaiX.js} +1 -1
  34. package/storybook-static/assets/{Disclosure-Bcq5RoVw.js → Disclosure-Bpji7KuP.js} +1 -1
  35. package/storybook-static/assets/{Disclosure.stories-CTe-G-63.js → Disclosure.stories-Bwuzf5fl.js} +1 -1
  36. package/storybook-static/assets/{DisclosureGroup-C7pKqTeY.js → DisclosureGroup-bCpsF5YE.js} +1 -1
  37. package/storybook-static/assets/{DocsRenderer-JROSPFPF-BThe4eFL.js → DocsRenderer-JROSPFPF-DQRIOLjc.js} +1 -1
  38. package/storybook-static/assets/{DropZone-CaVQvYfq.js → DropZone-Diu_Hlgs.js} +1 -1
  39. package/storybook-static/assets/{DropZone-DB8lm86r.js → DropZone-qvCLdJmm.js} +1 -1
  40. package/storybook-static/assets/{DropZone.stories-CTpZzsQo.js → DropZone.stories-DHgexefI.js} +1 -1
  41. package/storybook-static/assets/{DropdownMenu-Dbf79PmB.js → DropdownMenu-Bl2IPF3Q.js} +1 -1
  42. package/storybook-static/assets/{ExpandableActionPanel-BqLqYxoP.js → ExpandableActionPanel-B3iQGrX8.js} +1 -1
  43. package/storybook-static/assets/{ExpandableActionPanel.stories-Csy8zVZ0.js → ExpandableActionPanel.stories-DRnMPxSP.js} +1 -1
  44. package/storybook-static/assets/{Flex-CdhL6qQJ.js → Flex-CrWmRoxc.js} +1 -1
  45. package/storybook-static/assets/{Flex.stories-C7lLfAlI.js → Flex.stories-Db20If9k.js} +1 -1
  46. package/storybook-static/assets/{FlexContainer-DpyN062a.js → FlexContainer-YYPiKtpT.js} +1 -1
  47. package/storybook-static/assets/{FlexItem-Ca9aW4Wg.js → FlexItem-CXY6tvoB.js} +1 -1
  48. package/storybook-static/assets/{FloatingPopover-DRFncdhB.js → FloatingPopover-DSRofmW2.js} +1 -1
  49. package/storybook-static/assets/{FormattedTableCell-C38FonYG.js → FormattedTableCell-B-t0D2oX.js} +1 -1
  50. package/storybook-static/assets/{Grid-CxnlxtK1.js → Grid-Ad2q9giD.js} +1 -1
  51. package/storybook-static/assets/{Grid-DtOdlaGa.js → Grid-CUmJniwF.js} +1 -1
  52. package/storybook-static/assets/{Grid.stories-DOnfFyZS.js → Grid.stories-CsohhjMJ.js} +1 -1
  53. package/storybook-static/assets/{GridContainer-DF2QluGb.js → GridContainer-DfZnU_h-.js} +1 -1
  54. package/storybook-static/assets/{ImageCropper.stories-3nvUDz2T.js → ImageCropper.stories-Bdg7E1B6.js} +1 -1
  55. package/storybook-static/assets/{ImageRenderer-BbHUOlNk.js → ImageRenderer-DEsg7Nf5.js} +1 -1
  56. package/storybook-static/assets/{ImageRenderer.stories-Dn_Zb_xb.js → ImageRenderer.stories-C2uPYFbK.js} +1 -1
  57. package/storybook-static/assets/{ImageView.stories-t-INtYgg.js → ImageView.stories-qFIo_3jG.js} +1 -1
  58. package/storybook-static/assets/{ImageViewer.stories-BI-dVB_h.js → ImageViewer.stories-D6RoxWRG.js} +2 -2
  59. package/storybook-static/assets/{ImageViewerRuntime-Bxu4vpqB.js → ImageViewerRuntime-DEVRfnpp.js} +1 -1
  60. package/storybook-static/assets/{Input-D_T7Zxeh.js → Input-CXSVW4qb.js} +1 -1
  61. package/storybook-static/assets/{Input-Ekyq4bpy.js → Input-b2F0zrLw.js} +1 -1
  62. package/storybook-static/assets/{Input.stories-CRYZ9NRb.js → Input.stories-CKUo8mda.js} +1 -1
  63. package/storybook-static/assets/{InputDateTime-B6eUN2mO.js → InputDateTime-CBgevl2k.js} +1 -1
  64. package/storybook-static/assets/{InputDateTime.stories-DVzgiyHI.js → InputDateTime.stories-Dc_yRirT.js} +1 -1
  65. package/storybook-static/assets/{InputFile-LGyphRz0.js → InputFile-BX9qIipq.js} +1 -1
  66. package/storybook-static/assets/{InputFile-Dw6qdcEg.js → InputFile-VkGuvstd.js} +1 -1
  67. package/storybook-static/assets/{InputFile.stories-DPwLFjq_.js → InputFile.stories-VernHNAn.js} +1 -1
  68. package/storybook-static/assets/{InputFiles-BZt_WuRK.js → InputFiles-BpSb2G11.js} +1 -1
  69. package/storybook-static/assets/{InputFiles-CH8wkV90.js → InputFiles-CRFuNd-6.js} +1 -1
  70. package/storybook-static/assets/{InputFiles.stories-C0ueJhuS.js → InputFiles.stories-CfrGV2lA.js} +1 -1
  71. package/storybook-static/assets/{InputFilesList-964BaeSs.js → InputFilesList-BoL4jQmC.js} +1 -1
  72. package/storybook-static/assets/{InputImage-Dzfzo9rQ.js → InputImage-BKfXCZHx.js} +1 -1
  73. package/storybook-static/assets/{InputImage-DUHw2isv.js → InputImage-BcUm7aKp.js} +1 -1
  74. package/storybook-static/assets/{InputImage.stories-Cicea7iU.js → InputImage.stories-l1xnaTXn.js} +1 -1
  75. package/storybook-static/assets/{InteractiveComponents-4GIVWbuZ.js → InteractiveComponents-DKix-b3k.js} +1 -1
  76. package/storybook-static/assets/{InteractiveComponents.stories-B9SOS3j7.js → InteractiveComponents.stories-CK118Tbj.js} +1 -1
  77. package/storybook-static/assets/{LayoutPicker-DQorLWY6.js → LayoutPicker-BqI2-D2r.js} +1 -1
  78. package/storybook-static/assets/{LayoutPicker-xdZ95Vp5.js → LayoutPicker-Ca57uusp.js} +1 -1
  79. package/storybook-static/assets/{LayoutPicker.stories-DsyPQBKR.js → LayoutPicker.stories-BDRBBnj-.js} +1 -1
  80. package/storybook-static/assets/{Listbox-DjPjGgR4.js → Listbox-D_Qgzkw1.js} +1 -1
  81. package/storybook-static/assets/{Listbox-JQZyzNGj.js → Listbox-lrvI9Fx9.js} +1 -1
  82. package/storybook-static/assets/{Listbox.stories-BARapjFC.js → Listbox.stories-Djb1uju9.js} +1 -1
  83. package/storybook-static/assets/{Modal-BrVR9emD.js → Modal-BpqYaQXu.js} +1 -1
  84. package/storybook-static/assets/{Modal-DXQwuOgk.js → Modal-CLZFIZH2.js} +1 -1
  85. package/storybook-static/assets/{Modal.stories-hXhWq-vm.js → Modal.stories-DNpMq9oL.js} +1 -1
  86. package/storybook-static/assets/{ModalManagerProvider-suT_9w0p.js → ModalManagerProvider-DMlNCo5h.js} +1 -1
  87. package/storybook-static/assets/{MultiSelect-fOfuxSkP.js → MultiSelect-C593f3VV.js} +1 -1
  88. package/storybook-static/assets/{MultiSelect-Bx6fTyE5.js → MultiSelect-DmC3DaMc.js} +1 -1
  89. package/storybook-static/assets/{MultiSelect.stories-DCZxBuNb.js → MultiSelect.stories-R6JTKnFI.js} +1 -1
  90. package/storybook-static/assets/MultiSelectCore-BaRmQrD-.js +3 -0
  91. package/storybook-static/assets/{NoData-DXZIMdxE.js → NoData-Bvl_1jH4.js} +1 -1
  92. package/storybook-static/assets/{NotificationsHost-D9vUJSmY.js → NotificationsHost-CdPm_hcB.js} +1 -1
  93. package/storybook-static/assets/{NotificationsHost.stories-7XhqJWiP.js → NotificationsHost.stories-Bo_dwZZe.js} +1 -1
  94. package/storybook-static/assets/{ODataMultiSelect-DfvlaKWI.js → ODataMultiSelect-BVlJ8U90.js} +1 -1
  95. package/storybook-static/assets/{ODataMultiSelect.stories-CJke2JsH.js → ODataMultiSelect.stories-CqHpctYU.js} +1 -1
  96. package/storybook-static/assets/{ODataSelect-DCUvbk6e.js → ODataSelect-BCl-z6Sg.js} +1 -1
  97. package/storybook-static/assets/{ODataSelect.stories-BZ1gic7o.js → ODataSelect.stories-Cm-Xkq40.js} +1 -1
  98. package/storybook-static/assets/{ODataTreeMultiSelect-CNgmTWTi.js → ODataTreeMultiSelect-1CrmEPOx.js} +1 -1
  99. package/storybook-static/assets/{ODataTreeMultiSelect.stories-DLwVF_W4.js → ODataTreeMultiSelect.stories-B2YMNMyr.js} +1 -1
  100. package/storybook-static/assets/{ODataTreeSelect-B2wJG9wg.js → ODataTreeSelect-BqP9H4QH.js} +1 -1
  101. package/storybook-static/assets/{ODataTreeSelect.stories-_14s2U5T.js → ODataTreeSelect.stories-x_GCdGW8.js} +1 -1
  102. package/storybook-static/assets/{OneStepScroller-BZNWq4hh.js → OneStepScroller-B1H-Yg0P.js} +1 -1
  103. package/storybook-static/assets/{Option-DYZm6WvJ.js → Option-ChGr-plg.js} +1 -1
  104. package/storybook-static/assets/{OptionButton-B5CdJfBO.js → OptionButton-D6mT04a1.js} +1 -1
  105. package/storybook-static/assets/{OptionContent-ZdQ06Knj.js → OptionContent-CXc6K3fK.js} +1 -1
  106. package/storybook-static/assets/{OptionContentContainer-v8Se53ed.js → OptionContentContainer-D0p7mbft.js} +1 -1
  107. package/storybook-static/assets/{PeriodSelect-C4QfbGQU.js → PeriodSelect-Bm9WdjpG.js} +1 -1
  108. package/storybook-static/assets/{PeriodSelect-DkmbIdwr.js → PeriodSelect-CpnYgcOA.js} +1 -1
  109. package/storybook-static/assets/{PeriodSelect.stories-m3_qCC0x.js → PeriodSelect.stories-4Im6GLjq.js} +1 -1
  110. package/storybook-static/assets/{PickerField-2ulMAWeY.js → PickerField-w1JCZyzA.js} +1 -1
  111. package/storybook-static/assets/{PickerTriggerActions-DZ_Uxbu-.js → PickerTriggerActions-BCupttoF.js} +1 -1
  112. package/storybook-static/assets/{Popover-ChdfpaFY.js → Popover-CCHTXorF.js} +1 -1
  113. package/storybook-static/assets/{Popover-BeQ1jGma.js → Popover-CbgP8DJy.js} +1 -1
  114. package/storybook-static/assets/{Popover.stories-C_rBFhXq.js → Popover.stories-zZ2fYcQb.js} +1 -1
  115. package/storybook-static/assets/{PresetRangeDateInput-CtkAGYcs.js → PresetRangeDateInput-D-Xf5CL3.js} +1 -1
  116. package/storybook-static/assets/{PresetRangeDateInput-D6OerGd6.js → PresetRangeDateInput-cmWbFoHz.js} +1 -1
  117. package/storybook-static/assets/{PresetRangeDateInput.stories-BXuuCq6s.js → PresetRangeDateInput.stories-C3VxU77P.js} +1 -1
  118. package/storybook-static/assets/{PresetSelect-C_0i_v3W.js → PresetSelect-BmTJNeUt.js} +1 -1
  119. package/storybook-static/assets/{README-B-FPV2eT.js → README-3VGZSgWz.js} +1 -1
  120. package/storybook-static/assets/{README-CvKP-pox.js → README-5uy1ulgc.js} +1 -1
  121. package/storybook-static/assets/{README-SGW-sjaY.js → README-B3bdpv3F.js} +1 -1
  122. package/storybook-static/assets/{README-DgYr386S.js → README-B7kN5fdq.js} +1 -1
  123. package/storybook-static/assets/{README-BvalAebe.js → README-BC4nu9of.js} +1 -1
  124. package/storybook-static/assets/{README-CkqO5hqM.js → README-BMXu-jQk.js} +1 -1
  125. package/storybook-static/assets/{README-DIZEcosx.js → README-BRE26E-6.js} +1 -1
  126. package/storybook-static/assets/{README-DC0Q97-o.js → README-BW8ukk_3.js} +1 -1
  127. package/storybook-static/assets/{README-Bq-8Tpup.js → README-BZW-Ku8G.js} +1 -1
  128. package/storybook-static/assets/{README-E3dppiFa.js → README-B_TP46xP.js} +1 -1
  129. package/storybook-static/assets/{README-BPSzJf7K.js → README-Bc63jJ_g.js} +1 -1
  130. package/storybook-static/assets/{README-YACwvmpm.js → README-BcSaq4c4.js} +1 -1
  131. package/storybook-static/assets/{README-sW5h0lxy.js → README-BeMdGWkW.js} +1 -1
  132. package/storybook-static/assets/{README-DnNTN38s.js → README-Bf9aqOSG.js} +1 -1
  133. package/storybook-static/assets/{README-DoZmc9Z7.js → README-BfbEWAVW.js} +1 -1
  134. package/storybook-static/assets/{README-DHqq04o_.js → README-Bfp-2y9L.js} +1 -1
  135. package/storybook-static/assets/{README-CdC-Ih1N.js → README-BiyBf-O3.js} +1 -1
  136. package/storybook-static/assets/{README-DEsuR87b.js → README-BkJ_PjJk.js} +1 -1
  137. package/storybook-static/assets/{README-CR6ryhhR.js → README-Bl2m1JMK.js} +1 -1
  138. package/storybook-static/assets/{README-Baulk7Ly.js → README-BsvaCxyJ.js} +1 -1
  139. package/storybook-static/assets/{README-zZXmEFnb.js → README-C4vu077M.js} +1 -1
  140. package/storybook-static/assets/{README-BavbgADt.js → README-CLTYPp6T.js} +1 -1
  141. package/storybook-static/assets/{README-BOPlsYcG.js → README-CXLnU8PY.js} +1 -1
  142. package/storybook-static/assets/{README-oxDM2nWk.js → README-CZciBX1A.js} +1 -1
  143. package/storybook-static/assets/{README-DKm_GE0L.js → README-C_zVigpw.js} +1 -1
  144. package/storybook-static/assets/{README-CwSTY83v.js → README-CaZGDS4o.js} +1 -1
  145. package/storybook-static/assets/{README-BrPD8cUu.js → README-CjwMWiHf.js} +1 -1
  146. package/storybook-static/assets/{README-C_7Cdvro.js → README-CnX5IOsQ.js} +1 -1
  147. package/storybook-static/assets/{README-BID-FbiL.js → README-Cu9QJjVK.js} +1 -1
  148. package/storybook-static/assets/{README-C5PUujUh.js → README-CwqRXSIJ.js} +1 -1
  149. package/storybook-static/assets/{README-Cq5HM3sp.js → README-D7IHIZJQ.js} +1 -1
  150. package/storybook-static/assets/{README-DFIbQUmS.js → README-DEOe-D4O.js} +1 -1
  151. package/storybook-static/assets/{README-D_4AwS6Z.js → README-DEtA9vXg.js} +1 -1
  152. package/storybook-static/assets/{README-BieFJ3W_.js → README-DFF21yas.js} +1 -1
  153. package/storybook-static/assets/{README-8iY1vxIF.js → README-DLtEU6xV.js} +1 -1
  154. package/storybook-static/assets/{README-Df2Boqop.js → README-DVPc9Io_.js} +1 -1
  155. package/storybook-static/assets/{README-BGsCPA3s.js → README-DXajBW2j.js} +1 -1
  156. package/storybook-static/assets/{README-CdLSG5uT.js → README-DcMAIy3x.js} +1 -1
  157. package/storybook-static/assets/{README-DkShUtZp.js → README-DkgiAGPo.js} +1 -1
  158. package/storybook-static/assets/{README-DokUCzu7.js → README-DnkVTJ7s.js} +1 -1
  159. package/storybook-static/assets/{README-Bpz4DuxV.js → README-Dv4LnFqu.js} +1 -1
  160. package/storybook-static/assets/{README-BIu8bA8O.js → README-EmDsFxzc.js} +1 -1
  161. package/storybook-static/assets/{README-SxoTUUoq.js → README-HRwASuVm.js} +1 -1
  162. package/storybook-static/assets/{README-CQLFWFWd.js → README-IkL3xuvr.js} +1 -1
  163. package/storybook-static/assets/{README-BZma__4T.js → README-Iwf47F8s.js} +1 -1
  164. package/storybook-static/assets/{README-BY89ids7.js → README-T35eDlrl.js} +1 -1
  165. package/storybook-static/assets/{README-BcLFiFzF.js → README-UcG-T3oc.js} +1 -1
  166. package/storybook-static/assets/{README-BevvzKXd.js → README-jg6CIybs.js} +1 -1
  167. package/storybook-static/assets/{README-DrVnvpal.js → README-k2-wWcjY.js} +1 -1
  168. package/storybook-static/assets/{README-B11eBTD2.js → README-lHhj1ioe.js} +1 -1
  169. package/storybook-static/assets/{README-Daz1cP3j.js → README-vCy3YlCq.js} +1 -1
  170. package/storybook-static/assets/{README-DPt2egzz.js → README-xMu2rAZ4.js} +1 -1
  171. package/storybook-static/assets/{README-DxGE7LaW.js → README-zF7TglyH.js} +1 -1
  172. package/storybook-static/assets/{RadioButton--NyRUoxT.js → RadioButton-BBfQWcy3.js} +1 -1
  173. package/storybook-static/assets/{RadioButton-Cl02_0Z6.js → RadioButton-Cy_jQtud.js} +1 -1
  174. package/storybook-static/assets/{RadioButton.stories-CN09jcgC.js → RadioButton.stories-9V4bon68.js} +1 -1
  175. package/storybook-static/assets/{RadioGroup-4Unj8AZZ.js → RadioGroup-BndgLwX8.js} +1 -1
  176. package/storybook-static/assets/{RadioGroup-CQI1sWRU.js → RadioGroup-TwFpisuE.js} +1 -1
  177. package/storybook-static/assets/{RadioGroup.stories-DeL_043K.js → RadioGroup.stories-DJLxesgz.js} +1 -1
  178. package/storybook-static/assets/{Scrollable-12P7ZTKA.js → Scrollable-DtB02dAG.js} +1 -1
  179. package/storybook-static/assets/{Scrollable-CU0oRauv.js → Scrollable-pBI6H_we.js} +1 -1
  180. package/storybook-static/assets/{Scrollable.stories-D8zzXzdr.js → Scrollable.stories-CahJ5rFA.js} +1 -1
  181. package/storybook-static/assets/{Select-2xWkmvAV.js → Select-BOnv-Uuv.js} +1 -1
  182. package/storybook-static/assets/{Select-DvlCWgQT.js → Select-CClfxa48.js} +1 -1
  183. package/storybook-static/assets/{Select.stories-CNatkE_7.js → Select.stories-C0X5pvUk.js} +1 -1
  184. package/storybook-static/assets/{Separator-g1czAG54.js → Separator-BQlVHMcy.js} +1 -1
  185. package/storybook-static/assets/{Separator-m_74O3an.js → Separator-BdOz35ux.js} +1 -1
  186. package/storybook-static/assets/{Separator.stories-DzcknzMf.js → Separator.stories-DRmR0Kda.js} +1 -1
  187. package/storybook-static/assets/{SerializableSelect-BoTN8F9L.js → SerializableSelect-ClSz_VvD.js} +1 -1
  188. package/storybook-static/assets/{SerializableSelect.stories-CCp43_I0.js → SerializableSelect.stories-DozN_Quy.js} +1 -1
  189. package/storybook-static/assets/{ShimmerText-G-ZELFDr.js → ShimmerText-CuhrU7uk.js} +1 -1
  190. package/storybook-static/assets/{ShimmerText.stories-B1iRpPX7.js → ShimmerText.stories-Djb6DvbN.js} +1 -1
  191. package/storybook-static/assets/{SingleDateTimeInput-03cAT8aU.js → SingleDateTimeInput-C4jzvJ05.js} +1 -1
  192. package/storybook-static/assets/{SingleDateTimeInput-B8xEwaHj.js → SingleDateTimeInput-hC1Ft3qs.js} +1 -1
  193. package/storybook-static/assets/{SingleDateTimeInput.stories-DT1Blk15.js → SingleDateTimeInput.stories-D-HmSpnz.js} +1 -1
  194. package/storybook-static/assets/{Slider-BjjfNohp.js → Slider-WLUfmHyw.js} +1 -1
  195. package/storybook-static/assets/{Slider-BZl811z5.js → Slider-u0qKNrgI.js} +1 -1
  196. package/storybook-static/assets/{Slider.stories-XxtceDa6.js → Slider.stories-CX8fS5Ax.js} +1 -1
  197. package/storybook-static/assets/{SliderInput-VBhTlU1v.js → SliderInput-BEirf0Ys.js} +1 -1
  198. package/storybook-static/assets/{SliderInput-DOXn1-j9.js → SliderInput-ibTyal5l.js} +1 -1
  199. package/storybook-static/assets/{SliderInput.stories-C8FTjyN2.js → SliderInput.stories-xuycnRN_.js} +1 -1
  200. package/storybook-static/assets/{Sortable-Wetn-8JF.js → Sortable-p0kUHa8E.js} +1 -1
  201. package/storybook-static/assets/{Sortable.stories-GXQAUY0v.js → Sortable.stories-BdCtmfnr.js} +1 -1
  202. package/storybook-static/assets/{Splitter-SbAjiEDw.js → Splitter-BzAg1cZ0.js} +1 -1
  203. package/storybook-static/assets/{Splitter.stories-DSHbG6nu.js → Splitter.stories-C5zZ4lHf.js} +1 -1
  204. package/storybook-static/assets/{StateSelect-DbLmSOtB.js → StateSelect-CyjHfKNv.js} +1 -1
  205. package/storybook-static/assets/{StateSelect-BySRh6uF.js → StateSelect-bHA1Vf6z.js} +1 -1
  206. package/storybook-static/assets/{StateSelect.stories-FV0gIn1C.js → StateSelect.stories-D94g21N9.js} +1 -1
  207. package/storybook-static/assets/{StatusIndicator-DwCOyHwS.js → StatusIndicator-ylfiroPh.js} +1 -1
  208. package/storybook-static/assets/{StatusIndicator.stories-DHTONWO2.js → StatusIndicator.stories-BB7y4KGW.js} +1 -1
  209. package/storybook-static/assets/{StringToggle.stories-BiGLcqug.js → StringToggle.stories-BwuTZAGa.js} +1 -1
  210. package/storybook-static/assets/{Switch-Dcra3cbk.js → Switch-BXWiUOXs.js} +1 -1
  211. package/storybook-static/assets/{Switch-BUzbRxCA.js → Switch-DRLWRp0P.js} +1 -1
  212. package/storybook-static/assets/{Switch.stories-Dxg8MW1D.js → Switch.stories-taC_bi5a.js} +1 -1
  213. package/storybook-static/assets/{Table-OdoX0oH-.js → Table-BYiIQfjA.js} +1 -1
  214. package/storybook-static/assets/{Table.stories-EZ0nZUKx.js → Table.stories-B9u81cAN.js} +1 -1
  215. package/storybook-static/assets/{TableEditor.stories-BUiI0gPl.js → TableEditor.stories-CG0ULNok.js} +1 -1
  216. package/storybook-static/assets/{Tabs-BQbyU1MS.js → Tabs-BYp06IN2.js} +1 -1
  217. package/storybook-static/assets/{Tabs.stories-COyWiGIo.js → Tabs.stories-BCkUYsqs.js} +1 -1
  218. package/storybook-static/assets/{TabsBox-cTjD2iLY.js → TabsBox-DBm2a1iA.js} +1 -1
  219. package/storybook-static/assets/{TagInput-Chbcbebn.js → TagInput-D9gedxBU.js} +1 -1
  220. package/storybook-static/assets/{TagInput.stories-DFM2c9Kz.js → TagInput.stories-6eOGQ16t.js} +1 -1
  221. package/storybook-static/assets/{Text-fcFYdww4.js → Text-CcgH9LXI.js} +1 -1
  222. package/storybook-static/assets/{Textarea-DYaPJMAi.js → Textarea-DXOTj2Y7.js} +1 -1
  223. package/storybook-static/assets/{Textarea-PCGEcekt.js → Textarea-aGrLpQXu.js} +1 -1
  224. package/storybook-static/assets/{Textarea.stories-0pwru7oa.js → Textarea.stories-BwqxG2lk.js} +1 -1
  225. package/storybook-static/assets/{TimePanel-Di32Xql0.js → TimePanel-DroAbbvD.js} +1 -1
  226. package/storybook-static/assets/{TimePanel.stories-CG1uwyoq.js → TimePanel.stories-DgU6ia4A.js} +1 -1
  227. package/storybook-static/assets/{Toggle-CvSWEQ4M.js → Toggle-B7MbU9HB.js} +1 -1
  228. package/storybook-static/assets/{Toggle-C2AKl6hW.js → Toggle-BUSzQ1ww.js} +1 -1
  229. package/storybook-static/assets/{Toggle.stories-CNLH3MwF.js → Toggle.stories-BYU9hS62.js} +1 -1
  230. package/storybook-static/assets/{TreeMultiSelect-X0257uB0.js → TreeMultiSelect-BhFYUbr0.js} +1 -1
  231. package/storybook-static/assets/{TreeMultiSelect-BhfPQ7--.js → TreeMultiSelect-CZIyMaIZ.js} +1 -1
  232. package/storybook-static/assets/{TreeMultiSelect.stories-DfY3UKKn.js → TreeMultiSelect.stories-DG_mdSkQ.js} +1 -1
  233. package/storybook-static/assets/{TreePickerBase-DJUnLMct.js → TreePickerBase-CbULuQpp.js} +1 -1
  234. package/storybook-static/assets/{TreeSelect-B35UB1Y1.js → TreeSelect-CMSolQHr.js} +1 -1
  235. package/storybook-static/assets/{TreeSelect-CGfFmb1l.js → TreeSelect-Cu1BsepL.js} +1 -1
  236. package/storybook-static/assets/{TreeSelect.stories-Si06PsvL.js → TreeSelect.stories-B2J0N4ke.js} +1 -1
  237. package/storybook-static/assets/{TreeTable-dqFRn4rf.js → TreeTable-AIcYVdfl.js} +1 -1
  238. package/storybook-static/assets/{TreeTable.stories-D01CV6ke.js → TreeTable.stories-BKbbLMK7.js} +1 -1
  239. package/storybook-static/assets/{blocks-l-Hapy_a.js → blocks-Bdsl8TP-.js} +3 -3
  240. package/storybook-static/assets/{check-BlcnYTcv.js → check-DGqyuB4O.js} +1 -1
  241. package/storybook-static/assets/{chevron-down-ibZ8XCP_.js → chevron-down-BykqjXRq.js} +1 -1
  242. package/storybook-static/assets/{chevron-left-DtKjRUvG.js → chevron-left-Z5uCO076.js} +1 -1
  243. package/storybook-static/assets/{chevron-right-XdMObkvg.js → chevron-right-C8yfwmkk.js} +1 -1
  244. package/storybook-static/assets/{chunk-W22LQPXL-wJIlOpe4.js → chunk-W22LQPXL-hfBk2z5K.js} +1 -1
  245. package/storybook-static/assets/{circle-alert-fSVH0sLX.js → circle-alert-C9sxb8DT.js} +1 -1
  246. package/storybook-static/assets/{circle-check-HnZapKSX.js → circle-check-BLrYJ_8h.js} +1 -1
  247. package/storybook-static/assets/{components-Dopdhy5B.js → components-xYnqEbBt.js} +3 -3
  248. package/storybook-static/assets/{contextMenu-p7HEDKnK.js → contextMenu-C-b4jBpY.js} +1 -1
  249. package/storybook-static/assets/{download-LLWCDvnc.js → download-g1fk8W6J.js} +1 -1
  250. package/storybook-static/assets/{floating-ui.react-DkDKExQb.js → floating-ui.react-cCWtY5RA.js} +1 -1
  251. package/storybook-static/assets/{foundationApi-B8VKqVQz.js → foundationApi-Ci5vPKh_.js} +1 -1
  252. package/storybook-static/assets/{foundationLib-B1vp8Ip3.js → foundationLib-DNlIsEyf.js} +1 -1
  253. package/storybook-static/assets/{hooks-B4xUzofC.js → hooks-XqeLihmr.js} +1 -1
  254. package/storybook-static/assets/iframe-TsWsvoxA.js +1 -0
  255. package/storybook-static/assets/{iframe-BhhO4T-j.js → iframe-ltYEol2F.js} +3 -3
  256. package/storybook-static/assets/{info-De9uqULy.js → info-CBSXRv7d.js} +1 -1
  257. package/storybook-static/assets/{odata-D0RLpe5w.js → odata-Dd_3_5NS.js} +1 -1
  258. package/storybook-static/assets/{odataStoryFixtures-D1_TjOS9.js → odataStoryFixtures-3lOfs9T6.js} +1 -1
  259. package/storybook-static/assets/{react-Bs97eQVC.js → react-BxWB81Qy.js} +1 -1
  260. package/storybook-static/assets/{refresh-cw-gGwrfTvn.js → refresh-cw-FKHfW9eG.js} +1 -1
  261. package/storybook-static/assets/{settings-2--yrC02pK.js → settings-2-Cz1PtqGa.js} +1 -1
  262. package/storybook-static/assets/{sortable-CNrgxywp.js → sortable-BelHSus7.js} +1 -1
  263. package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-hPf5f2N_.js → syntaxhighlighter-QEQV7K2Y-gGot_qSq.js} +1 -1
  264. package/storybook-static/assets/{trash-2-V9XKHLPP.js → trash-2-BT2kW3r-.js} +1 -1
  265. package/storybook-static/assets/{triangle-alert-B_Mx5YAP.js → triangle-alert-CPiJJHYc.js} +1 -1
  266. package/storybook-static/assets/{useODataSelectBase-C77fkd4B.js → useODataSelectBase-bPN0T_Xm.js} +1 -1
  267. package/storybook-static/assets/{useODataTreeData-DS0b1v0J.js → useODataTreeData-CIpE4LZu.js} +1 -1
  268. package/storybook-static/assets/{usePickerQuery--63RUk1i.js → usePickerQuery-OTz4Oze6.js} +1 -1
  269. package/storybook-static/assets/{usePickerTriggerController-C-h_jIr8.js → usePickerTriggerController-vNC5e_t0.js} +1 -1
  270. package/storybook-static/assets/{x-Cw8s8Zy_.js → x-BdAuXjBq.js} +1 -1
  271. package/storybook-static/iframe.html +2 -2
  272. package/storybook-static/project.json +1 -1
  273. package/storybook-static/assets/MultiSelectCore-C-vizvta.js +0 -3
  274. package/storybook-static/assets/iframe-CkawuUUj.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n}from"./iframe-BhhO4T-j.js";import{n as r,t as i}from"./Button-BJqsQn21.js";import{n as a,t as o}from"./createControlledStoryRender-BouhvX-R.js";import{n as s,t as c}from"./Dialog-CfEj39yX.js";var l=t({Controlled:()=>h,LongContent:()=>_,Opened:()=>g,Sizes:()=>v,__namedExportsOrder:()=>y,default:()=>m});function u({args:e,updateArgs:t,children:n}){let r=()=>{e.onClose(),t({open:!1})};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i,{onClick:()=>t({open:!0}),children:`Открыть диалог`}),(0,f.jsx)(c,{...e,open:e.open,onClose:r,children:e.children??n(r)})]})}function d(e){return o((t,n)=>(0,f.jsx)(u,{args:t,updateArgs:n,children:e}))}var f,p,m,h,g,_,v,y;function b(){return(b=e((()=>{r(),a(),s(),f=n(),{fn:p}=__STORYBOOK_MODULE_TEST__,m={title:`UI/Dialog`,component:c,args:{title:`Подтверждение операции`,description:`Проверьте параметры перед выполнением действия.`,open:!1,onClose:p(),size:`sm`,minWidth:void 0,children:null},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{title:{description:`Заголовок диалогового окна.`,control:`text`},description:{description:`Описание под заголовком.`,control:`text`},open:{description:`Управляет видимостью диалога.`,control:`boolean`},onClose:{description:`Вызывается при закрытии диалога.`,control:!1},size:{description:`Предустановленная ширина панели с теми же вариантами, что и у Modal.`,control:`inline-radio`,options:[`sm`,`md`,`lg`,`xl`,`xxl`,`inside`]},minWidth:{description:`Дополнительная минимальная ширина панели; ограничивается выбранным size и доступной шириной viewport.`,control:`text`},children:{description:`Контент внутри диалогового окна.`,control:!1}}},h={render:d(e=>(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`p`,{children:`Подтвердите выполнение действия.`}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:8,justifyContent:`flex-end`},children:[(0,f.jsx)(i,{variant:`transparent`,onClick:e,children:`Отмена`}),(0,f.jsx)(i,{variant:`success`,onClick:e,children:`Подтвердить`})]})]}))},g={args:{open:!0},render:d(()=>(0,f.jsx)(`div`,{children:`Диалог изначально открыт для демонстрации верстки.`}))},_={args:{open:!0,size:`lg`},render:d(e=>(0,f.jsxs)(`div`,{children:[Array.from({length:24},(e,t)=>(0,f.jsxs)(`p`,{children:[`Строка `,t+1,`. Большой контент остаётся внутри доступной области экрана, а диалог прокручивается независимо от страницы.`]},t)),(0,f.jsx)(i,{onClick:e,children:`Закрыть диалог`})]}))},v={args:{open:!0,size:`sm`},render:d(()=>(0,f.jsx)(`div`,{children:`Измените size в Controls, чтобы сравнить ширину с одноимённым пресетом Modal.`}))},h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n}from"./iframe-ltYEol2F.js";import{n as r,t as i}from"./Button-BzRtAjtM.js";import{n as a,t as o}from"./createControlledStoryRender-BouhvX-R.js";import{n as s,t as c}from"./Dialog-DEDDnDtQ.js";var l=t({Controlled:()=>h,LongContent:()=>_,Opened:()=>g,Sizes:()=>v,__namedExportsOrder:()=>y,default:()=>m});function u({args:e,updateArgs:t,children:n}){let r=()=>{e.onClose(),t({open:!1})};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i,{onClick:()=>t({open:!0}),children:`Открыть диалог`}),(0,f.jsx)(c,{...e,open:e.open,onClose:r,children:e.children??n(r)})]})}function d(e){return o((t,n)=>(0,f.jsx)(u,{args:t,updateArgs:n,children:e}))}var f,p,m,h,g,_,v,y;function b(){return(b=e((()=>{r(),a(),s(),f=n(),{fn:p}=__STORYBOOK_MODULE_TEST__,m={title:`UI/Dialog`,component:c,args:{title:`Подтверждение операции`,description:`Проверьте параметры перед выполнением действия.`,open:!1,onClose:p(),size:`sm`,minWidth:void 0,children:null},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{title:{description:`Заголовок диалогового окна.`,control:`text`},description:{description:`Описание под заголовком.`,control:`text`},open:{description:`Управляет видимостью диалога.`,control:`boolean`},onClose:{description:`Вызывается при закрытии диалога.`,control:!1},size:{description:`Предустановленная ширина панели с теми же вариантами, что и у Modal.`,control:`inline-radio`,options:[`sm`,`md`,`lg`,`xl`,`xxl`,`inside`]},minWidth:{description:`Дополнительная минимальная ширина панели; ограничивается выбранным size и доступной шириной viewport.`,control:`text`},children:{description:`Контент внутри диалогового окна.`,control:!1}}},h={render:d(e=>(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`p`,{children:`Подтвердите выполнение действия.`}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:8,justifyContent:`flex-end`},children:[(0,f.jsx)(i,{variant:`transparent`,onClick:e,children:`Отмена`}),(0,f.jsx)(i,{variant:`success`,onClick:e,children:`Подтвердить`})]})]}))},g={args:{open:!0},render:d(()=>(0,f.jsx)(`div`,{children:`Диалог изначально открыт для демонстрации верстки.`}))},_={args:{open:!0,size:`lg`},render:d(e=>(0,f.jsxs)(`div`,{children:[Array.from({length:24},(e,t)=>(0,f.jsxs)(`p`,{children:[`Строка `,t+1,`. Большой контент остаётся внутри доступной области экрана, а диалог прокручивается независимо от страницы.`]},t)),(0,f.jsx)(i,{onClick:e,children:`Закрыть диалог`})]}))},v={args:{open:!0,size:`sm`},render:d(()=>(0,f.jsx)(`div`,{children:`Измените size в Controls, чтобы сравнить ширину с одноимённым пресетом Modal.`}))},h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
2
2
  render: createDialogStoryRender(close => <div>
3
3
  <p>Подтвердите выполнение действия.</p>
4
4
  <div style={{
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BhhO4T-j.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-l-Hapy_a.js";import{a as p,i as m,n as h,r as g,t as _}from"./Disclosure.stories-CTe-G-63.js";function v(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{of:h,parameters:{docs:{toc:!0}}}),`
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-ltYEol2F.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-Bdsl8TP-.js";import{a as p,i as m,n as h,r as g,t as _}from"./Disclosure.stories-Bwuzf5fl.js";function v(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{of:h,parameters:{docs:{toc:!0}}}),`
2
2
  `,(0,b.jsx)(u,{children:`Disclosure`}),`
3
3
  `,(0,b.jsx)(o,{children:`Практическая документация по компоненту Disclosure и его сценариям использования`}),`
4
4
  `,(0,b.jsx)(t.p,{children:`Disclosure уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{i as n,n as r,r as i,t as a}from"./DisclosureGroup-C7pKqTeY.js";import{n as o}from"./iframe-BhhO4T-j.js";import{n as s,t as c}from"./Button-BJqsQn21.js";import{n as l,t as u}from"./createControlledStoryRender-BouhvX-R.js";var d=t({Basic:()=>g,Group:()=>v,HeaderActions:()=>_,__namedExportsOrder:()=>y,default:()=>p}),f,p,m,h,g,_,v,y;function b(){return(b=e((()=>{s(),l(),n(),r(),f=o(),p={title:`UI/Disclosure`,component:i,args:{label:`Раздел`,defaultOpen:!1,children:(0,f.jsx)(`p`,{children:`Содержимое панели раскрытия.`})},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{label:{description:`Заголовок кнопки раскрытия.`,control:`text`},defaultOpen:{description:`Начальное состояние (открыт/закрыт). Изменение аргумента перемонтирует демонстрационный экземпляр.`,control:`boolean`},headerActions:{description:`Независимые действия в правой части заголовка.`,control:!1},children:{description:`Контент, который показывается в раскрытой панели.`,control:!1}}},m=u(e=>(0,f.jsx)(i,{...e},`disclosure-${String(e.defaultOpen)}`)),h=u(e=>(0,f.jsxs)(a,{children:[(0,f.jsx)(i,{...e},`search-${String(e.defaultOpen)}`),(0,f.jsx)(i,{label:`Сортировка`,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Поле: Дата создания`}),(0,f.jsx)(`span`,{children:`Порядок: По убыванию`})]})}),(0,f.jsx)(i,{label:`Дополнительные фильтры`,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Только активные`}),(0,f.jsx)(`span`,{children:`Без архивных записей`})]})})]})),g={render:m},_={args:{headerActions:(0,f.jsx)(c,{variant:`transparent`,onClick:()=>void 0,children:`Очистить`})},render:m},v={args:{label:`Параметры поиска`,defaultOpen:!0,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Период: март 2026`}),(0,f.jsx)(`span`,{children:`Регион: Урал`})]})},render:h},g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{i as n,n as r,r as i,t as a}from"./DisclosureGroup-bCpsF5YE.js";import{n as o}from"./iframe-ltYEol2F.js";import{n as s,t as c}from"./Button-BzRtAjtM.js";import{n as l,t as u}from"./createControlledStoryRender-BouhvX-R.js";var d=t({Basic:()=>g,Group:()=>v,HeaderActions:()=>_,__namedExportsOrder:()=>y,default:()=>p}),f,p,m,h,g,_,v,y;function b(){return(b=e((()=>{s(),l(),n(),r(),f=o(),p={title:`UI/Disclosure`,component:i,args:{label:`Раздел`,defaultOpen:!1,children:(0,f.jsx)(`p`,{children:`Содержимое панели раскрытия.`})},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{label:{description:`Заголовок кнопки раскрытия.`,control:`text`},defaultOpen:{description:`Начальное состояние (открыт/закрыт). Изменение аргумента перемонтирует демонстрационный экземпляр.`,control:`boolean`},headerActions:{description:`Независимые действия в правой части заголовка.`,control:!1},children:{description:`Контент, который показывается в раскрытой панели.`,control:!1}}},m=u(e=>(0,f.jsx)(i,{...e},`disclosure-${String(e.defaultOpen)}`)),h=u(e=>(0,f.jsxs)(a,{children:[(0,f.jsx)(i,{...e},`search-${String(e.defaultOpen)}`),(0,f.jsx)(i,{label:`Сортировка`,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Поле: Дата создания`}),(0,f.jsx)(`span`,{children:`Порядок: По убыванию`})]})}),(0,f.jsx)(i,{label:`Дополнительные фильтры`,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Только активные`}),(0,f.jsx)(`span`,{children:`Без архивных записей`})]})})]})),g={render:m},_={args:{headerActions:(0,f.jsx)(c,{variant:`transparent`,onClick:()=>void 0,children:`Очистить`})},render:m},v={args:{label:`Параметры поиска`,defaultOpen:!0,children:(0,f.jsxs)(`div`,{style:{display:`grid`,gap:8},children:[(0,f.jsx)(`span`,{children:`Период: март 2026`}),(0,f.jsx)(`span`,{children:`Регион: Урал`})]})},render:h},g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
2
2
  render: renderDisclosureStory
3
3
  }`,...g.parameters?.docs?.source}}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
4
4
  args: {
@@ -1,2 +1,2 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./chevron-down-ibZ8XCP_.js";import{i,n as a,r as o}from"./iframe-BhhO4T-j.js";import{a as s,i as c}from"./utils-tg3ibbzi.js";import{n as l,t as u}from"./ui.module-l7VCYIW-.js";import{i as d,n as f}from"./uiClasses-BblrV9p1.js";import{n as p,t as m}from"./FlexItem-Ca9aW4Wg.js";var h,g;function _(){return(_=e((()=>{i(),h=[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]],g=o(`chevron-up`,h)})))()}function v({ref:e,...t}){return(0,y.jsx)(m,{...t,ref:e,flex1:!0})}var y;function b(){return(b=e((()=>{p(),y=a(),v.displayName=`FlexSpacer`,v.__docgenInfo={description:``,methods:[],displayName:`FlexSpacer`,props:{ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``}}}})))()}var x,S,C,w,T,E;function D(){return(D=e((()=>{x=`P-rCx1`,S=`_9yjaDf`,C=`izVkky`,w=`KAIPfW`,T=`O-da-N`,E={disclosureHeader:x,disclosureButton:S,disclosureActions:C,disclosureGroup:w,disclosure:T}})))()}function O({label:e,defaultOpen:t,headerActions:n,tone:i=`primary`,children:a}){let[o,c]=(0,k.useState)(t===!0),u=(0,k.useId)(),d=(0,k.useId)(),p=f(i);return(0,A.jsxs)(`div`,{className:s(l.uiElement,l.uiPanel,p,E.disclosure),children:[(0,A.jsxs)(`div`,{className:E.disclosureHeader,children:[(0,A.jsxs)(`button`,{id:d,type:`button`,"aria-expanded":o,"aria-controls":u,className:s(E.disclosureButton,`fontBold radiusSm paddingSm gapSm`),"data-ui":`disclosure-toggle`,"data-action":o?`collapse-disclosure`:`expand-disclosure`,onClick:()=>c(e=>!e),children:[o?(0,A.jsx)(g,{}):(0,A.jsx)(r,{}),e]}),n?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v,{}),n]}):null]}),o&&(0,A.jsx)(`div`,{id:u,role:`region`,"aria-labelledby":d,children:(0,A.jsx)(`div`,{className:`paddingMd`,children:a})})]})}var k,A;function j(){return(j=e((()=>{k=t(),c(),n(),_(),b(),u(),d(),D(),A=a(),O.__docgenInfo={description:`Раскрывающийся блок с заголовком и скрываемым содержимым. Используется для FAQ, настроек и компактного размещения второстепенной информации.`,methods:[],displayName:`Disclosure`,props:{label:{required:!0,tsType:{name:`ReactNode`},description:``},defaultOpen:{required:!1,tsType:{name:`boolean`},description:``},tone:{required:!1,tsType:{name:`union`,raw:`"primary" | "secondary" | "tertiary"`,elements:[{name:`literal`,value:`"primary"`},{name:`literal`,value:`"secondary"`},{name:`literal`,value:`"tertiary"`}]},description:``,defaultValue:{value:`"primary"`,computed:!1}},headerActions:{required:!1,tsType:{name:`ReactNode`},description:`Независимые действия в правой части заголовка, расположенные вне кнопки раскрытия.`}},composes:[`PropsWithChildren`]}})))()}function M({className:e,children:t}){return(0,N.jsx)(`div`,{className:s(E.disclosureGroup,e),children:t})}var N;function P(){return(P=e((()=>{t(),c(),D(),N=a(),M.__docgenInfo={description:"Групповой контейнер для нескольких `Disclosure`. Помогает выстраивать последовательный список раскрывающихся секций.",methods:[],displayName:`DisclosureGroup`,props:{children:{required:!1,tsType:{name:`union`,raw:`| (React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./chevron-down-BykqjXRq.js";import{i,n as a,r as o}from"./iframe-ltYEol2F.js";import{a as s,i as c}from"./utils-tg3ibbzi.js";import{n as l,t as u}from"./ui.module-l7VCYIW-.js";import{i as d,n as f}from"./uiClasses-BblrV9p1.js";import{n as p,t as m}from"./FlexItem-CXY6tvoB.js";var h,g;function _(){return(_=e((()=>{i(),h=[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]],g=o(`chevron-up`,h)})))()}function v({ref:e,...t}){return(0,y.jsx)(m,{...t,ref:e,flex1:!0})}var y;function b(){return(b=e((()=>{p(),y=a(),v.displayName=`FlexSpacer`,v.__docgenInfo={description:``,methods:[],displayName:`FlexSpacer`,props:{ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``}}}})))()}var x,S,C,w,T,E;function D(){return(D=e((()=>{x=`P-rCx1`,S=`_9yjaDf`,C=`izVkky`,w=`KAIPfW`,T=`O-da-N`,E={disclosureHeader:x,disclosureButton:S,disclosureActions:C,disclosureGroup:w,disclosure:T}})))()}function O({label:e,defaultOpen:t,headerActions:n,tone:i=`primary`,children:a}){let[o,c]=(0,k.useState)(t===!0),u=(0,k.useId)(),d=(0,k.useId)(),p=f(i);return(0,A.jsxs)(`div`,{className:s(l.uiElement,l.uiPanel,p,E.disclosure),children:[(0,A.jsxs)(`div`,{className:E.disclosureHeader,children:[(0,A.jsxs)(`button`,{id:d,type:`button`,"aria-expanded":o,"aria-controls":u,className:s(E.disclosureButton,`fontBold radiusSm paddingSm gapSm`),"data-ui":`disclosure-toggle`,"data-action":o?`collapse-disclosure`:`expand-disclosure`,onClick:()=>c(e=>!e),children:[o?(0,A.jsx)(g,{}):(0,A.jsx)(r,{}),e]}),n?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v,{}),n]}):null]}),o&&(0,A.jsx)(`div`,{id:u,role:`region`,"aria-labelledby":d,children:(0,A.jsx)(`div`,{className:`paddingMd`,children:a})})]})}var k,A;function j(){return(j=e((()=>{k=t(),c(),n(),_(),b(),u(),d(),D(),A=a(),O.__docgenInfo={description:`Раскрывающийся блок с заголовком и скрываемым содержимым. Используется для FAQ, настроек и компактного размещения второстепенной информации.`,methods:[],displayName:`Disclosure`,props:{label:{required:!0,tsType:{name:`ReactNode`},description:``},defaultOpen:{required:!1,tsType:{name:`boolean`},description:``},tone:{required:!1,tsType:{name:`union`,raw:`"primary" | "secondary" | "tertiary"`,elements:[{name:`literal`,value:`"primary"`},{name:`literal`,value:`"secondary"`},{name:`literal`,value:`"tertiary"`}]},description:``,defaultValue:{value:`"primary"`,computed:!1}},headerActions:{required:!1,tsType:{name:`ReactNode`},description:`Независимые действия в правой части заголовка, расположенные вне кнопки раскрытия.`}},composes:[`PropsWithChildren`]}})))()}function M({className:e,children:t}){return(0,N.jsx)(`div`,{className:s(E.disclosureGroup,e),children:t})}var N;function P(){return(P=e((()=>{t(),c(),D(),N=a(),M.__docgenInfo={description:"Групповой контейнер для нескольких `Disclosure`. Помогает выстраивать последовательный список раскрывающихся секций.",methods:[],displayName:`DisclosureGroup`,props:{children:{required:!1,tsType:{name:`union`,raw:`| (React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)
2
2
  | (React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)[]`,elements:[{name:`unknown`},{name:`Array`,elements:[{name:`unknown`}],raw:`(React.ReactElement<DisclosureProps, typeof Disclosure> | null | undefined | false)[]`}]},description:``},className:{required:!1,tsType:{name:`string`},description:``}}}})))()}export{j as i,P as n,O as r,M as t};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-Bl2r1tuC.js","./rolldown-runtime-DkW27tQK.js","./react-BZJXY1be.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{n,t as r}from"./preload-helper-wdlQj8DP.js";import{t as i}from"./react-BZJXY1be.js";import{i as a,m as o,o as s,s as c,t as l}from"./blocks-l-Hapy_a.js";import{i as u,r as d,t as f}from"./react-18-EmNFJX4V.js";var p,m,h,g;function _(){return(_=t((()=>{p=e(i(),1),f(),o(),n(),m={code:a,a:l,...c},h=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:p.createElement(p.Fragment,null,t)}},g=class{constructor(){this.render=async(e,t,n)=>{let i={...m,...t?.components},a=s;return new Promise((o,s)=>{r(async()=>{let{MDXProvider:e}=await import(`./react-Bl2r1tuC.js`).then(e=>(e.t(),e.n));return{MDXProvider:e}},__vite__mapDeps([0,1,2]),import.meta.url).then(({MDXProvider:r})=>d(p.createElement(h,{showException:s,key:Math.random()},p.createElement(r,{components:i},p.createElement(a,{context:e,docsParameter:t}))),n)).then(()=>o())})},this.unmount=e=>{u(e)}}}})))()}function v(){return(v=t((()=>{_()})))()}v();export{g as DocsRenderer};
2
+ import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{n,t as r}from"./preload-helper-wdlQj8DP.js";import{t as i}from"./react-BZJXY1be.js";import{i as a,m as o,o as s,s as c,t as l}from"./blocks-Bdsl8TP-.js";import{i as u,r as d,t as f}from"./react-18-EmNFJX4V.js";var p,m,h,g;function _(){return(_=t((()=>{p=e(i(),1),f(),o(),n(),m={code:a,a:l,...c},h=class extends p.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:p.createElement(p.Fragment,null,t)}},g=class{constructor(){this.render=async(e,t,n)=>{let i={...m,...t?.components},a=s;return new Promise((o,s)=>{r(async()=>{let{MDXProvider:e}=await import(`./react-Bl2r1tuC.js`).then(e=>(e.t(),e.n));return{MDXProvider:e}},__vite__mapDeps([0,1,2]),import.meta.url).then(({MDXProvider:r})=>d(p.createElement(h,{showException:s,key:Math.random()},p.createElement(r,{components:i},p.createElement(a,{context:e,docsParameter:t}))),n)).then(()=>o())})},this.unmount=e=>{u(e)}}}})))()}function v(){return(v=t((()=>{_()})))()}v();export{g as DocsRenderer};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{i as n,n as r,r as i}from"./iframe-BhhO4T-j.js";import{a,i as o,n as s}from"./utils-tg3ibbzi.js";import{a as c,i as l,o as u,r as d,s as f}from"./file-CwRoWxeB.js";import{n as p,t as m}from"./InputFilesList-964BaeSs.js";var h,g;function _(){return(_=e((()=>{n(),h=[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]],g=i(`upload`,h)})))()}var v,y,b,x,S,C;function w(){return(w=e((()=>{v=`q2D6Pw`,y=`QVgB0d`,b=`-nyQKp`,x=`kY0O9g`,S=`F5K1bE`,C={zone:v,dragOver:y,disabled:b,icon:x,hint:S}})))()}function T({value:e,onChange:t,onChangeError:n,accept:r,allowedMime:i,maxBytes:o,readMode:l,multiple:p=!0,disabled:h,className:_,children:v}){c(i),u(r);let y=(0,E.useRef)(0),b=(0,E.useRef)(null),[x,S]=(0,E.useState)(!1),w=(0,E.useMemo)(()=>r&&r.length>0?r.join(`,`):i&&i.length>0?i.join(`,`):`*`,[i,r]),T=(0,E.useCallback)(e=>l===`array-buffer`?f(e,{allowedMime:i,maxBytes:o,mode:`array-buffer`}):f(e,{allowedMime:i,maxBytes:o}),[i,o,l]),O=(0,E.useCallback)(async e=>{if(h||e.length===0)return;let r=p?e:e.slice(0,1),i=[];for(let e of r)try{let t=await T(e);i.push(t)}catch(e){e instanceof d&&n&&n(e)}i.length>0&&t(i)},[h,p,t,n,T]),k=(0,E.useCallback)(()=>{h||b.current?.click()},[h]),A=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(y.current+=1,y.current===1&&S(!0))},[h]),j=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(e.dataTransfer.dropEffect=`copy`)},[h]),M=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(--y.current,y.current===0&&S(!1))},[h]),N=(0,E.useCallback)(async e=>{if(e.preventDefault(),e.stopPropagation(),y.current=0,S(!1),h)return;let t=Array.from(e.dataTransfer.files);await O(t)},[h,O]),P=(0,E.useCallback)(async e=>{let t=Array.from(e.target.files??[]);await O(t),e.target.value=``},[O]),F=(0,E.useCallback)(e=>{s(e,k,{disabled:h})},[h,k]);return(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`input`,{ref:b,type:`file`,hidden:!0,disabled:h,multiple:p,accept:w,onChange:P}),(0,D.jsx)(`div`,{className:a(C.zone,x&&C.dragOver,h&&C.disabled,_),onClick:k,onKeyDown:F,onDragEnter:A,onDragOver:j,onDragLeave:M,onDrop:N,role:`button`,tabIndex:h?-1:0,"aria-disabled":h,children:v??(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{className:C.icon}),(0,D.jsx)(`span`,{className:C.hint,children:p?`Перетащите файлы сюда или нажмите для выбора`:`Перетащите файл сюда или нажмите для выбора`})]})}),(0,D.jsx)(m,{files:e,onChange:t})]})}var E,D;function O(){return(O=e((()=>{E=t(),l(),o(),_(),p(),w(),D=r(),T.__docgenInfo={description:`DropZone — зона для перетаскивания файлов и выбора по клику.
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{i as n,n as r,r as i}from"./iframe-ltYEol2F.js";import{a,i as o,n as s}from"./utils-tg3ibbzi.js";import{a as c,i as l,o as u,r as d,s as f}from"./file-CwRoWxeB.js";import{n as p,t as m}from"./InputFilesList-BoL4jQmC.js";var h,g;function _(){return(_=e((()=>{n(),h=[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]],g=i(`upload`,h)})))()}var v,y,b,x,S,C;function w(){return(w=e((()=>{v=`q2D6Pw`,y=`QVgB0d`,b=`-nyQKp`,x=`kY0O9g`,S=`F5K1bE`,C={zone:v,dragOver:y,disabled:b,icon:x,hint:S}})))()}function T({value:e,onChange:t,onChangeError:n,accept:r,allowedMime:i,maxBytes:o,readMode:l,multiple:p=!0,disabled:h,className:_,children:v}){c(i),u(r);let y=(0,E.useRef)(0),b=(0,E.useRef)(null),[x,S]=(0,E.useState)(!1),w=(0,E.useMemo)(()=>r&&r.length>0?r.join(`,`):i&&i.length>0?i.join(`,`):`*`,[i,r]),T=(0,E.useCallback)(e=>l===`array-buffer`?f(e,{allowedMime:i,maxBytes:o,mode:`array-buffer`}):f(e,{allowedMime:i,maxBytes:o}),[i,o,l]),O=(0,E.useCallback)(async e=>{if(h||e.length===0)return;let r=p?e:e.slice(0,1),i=[];for(let e of r)try{let t=await T(e);i.push(t)}catch(e){e instanceof d&&n&&n(e)}i.length>0&&t(i)},[h,p,t,n,T]),k=(0,E.useCallback)(()=>{h||b.current?.click()},[h]),A=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(y.current+=1,y.current===1&&S(!0))},[h]),j=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(e.dataTransfer.dropEffect=`copy`)},[h]),M=(0,E.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!h&&(--y.current,y.current===0&&S(!1))},[h]),N=(0,E.useCallback)(async e=>{if(e.preventDefault(),e.stopPropagation(),y.current=0,S(!1),h)return;let t=Array.from(e.dataTransfer.files);await O(t)},[h,O]),P=(0,E.useCallback)(async e=>{let t=Array.from(e.target.files??[]);await O(t),e.target.value=``},[O]),F=(0,E.useCallback)(e=>{s(e,k,{disabled:h})},[h,k]);return(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`input`,{ref:b,type:`file`,hidden:!0,disabled:h,multiple:p,accept:w,onChange:P}),(0,D.jsx)(`div`,{className:a(C.zone,x&&C.dragOver,h&&C.disabled,_),onClick:k,onKeyDown:F,onDragEnter:A,onDragOver:j,onDragLeave:M,onDrop:N,role:`button`,tabIndex:h?-1:0,"aria-disabled":h,children:v??(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g,{className:C.icon}),(0,D.jsx)(`span`,{className:C.hint,children:p?`Перетащите файлы сюда или нажмите для выбора`:`Перетащите файл сюда или нажмите для выбора`})]})}),(0,D.jsx)(m,{files:e,onChange:t})]})}var E,D;function O(){return(O=e((()=>{E=t(),l(),o(),_(),p(),w(),D=r(),T.__docgenInfo={description:`DropZone — зона для перетаскивания файлов и выбора по клику.
2
2
 
3
3
  При наведении файла зона подсвечивается (пунктирная рамка меняет цвет).
4
4
  При сбросе файлов каждый читается через readFile, успешные результаты
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BhhO4T-j.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-l-Hapy_a.js";import{a as p,i as m,n as h,r as g,t as _}from"./DropZone.stories-CTpZzsQo.js";function v(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{of:g,parameters:{docs:{toc:!0}}}),`
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-ltYEol2F.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-Bdsl8TP-.js";import{a as p,i as m,n as h,r as g,t as _}from"./DropZone.stories-DHgexefI.js";function v(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{of:g,parameters:{docs:{toc:!0}}}),`
2
2
  `,(0,b.jsx)(u,{children:`DropZone`}),`
3
3
  `,(0,b.jsx)(o,{children:`Зона drag-and-drop для загрузки файлов кликом или перетаскиванием`}),`
4
4
  `,(0,b.jsx)(t.p,{children:`DropZone уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n,t as r}from"./DropZone-CaVQvYfq.js";import{i,n as a,r as o}from"./iframe-BhhO4T-j.js";import{n as s,t as c}from"./createControlledStoryRender-BouhvX-R.js";var l,u;function d(){return(d=e((()=>{i(),l=[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]],u=o(`cloud-upload`,l)})))()}var f=t({Basic:()=>_,Disabled:()=>y,SingleFile:()=>v,__namedExportsOrder:()=>b,default:()=>g});function p({showStatus:e=!1,children:t}={}){return c((n,i)=>(0,m.jsxs)(`div`,{style:{display:`grid`,gap:12},children:[(0,m.jsx)(r,{...n,onChange:e=>{n.onChange(e),i({value:e})},children:t??n.children}),e&&(0,m.jsx)(`div`,{style:{fontSize:14},children:n.value.length>0?`Получено файлов: ${n.value.length}`:`Перетащите файл(ы) в область выше`})]}))}var m,h,g,_,v,y,b;function x(){return(x=e((()=>{d(),s(),n(),m=a(),{fn:h}=__STORYBOOK_MODULE_TEST__,g={title:`UI/DropZone`,component:r,args:{value:[],onChange:h(),onChangeError:h(),multiple:!0,readMode:`data-url`,disabled:!1},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{value:{description:`Текущий массив успешно прочитанных файлов.`,control:!1},onChange:{description:`Вызывается с массивом успешно прочитанных файлов.`,control:!1},onChangeError:{description:`Вызывается при ошибке валидации или чтения файла.`,control:!1},accept:{description:`Допустимые расширения или MIME-типы для нативного input.`,control:`object`},allowedMime:{description:`Список допустимых MIME-типов для проверки.`,control:`object`},maxBytes:{description:`Максимальный размер одного файла в байтах.`,control:`number`},readMode:{description:`Режим чтения файлов: data-url или array-buffer.`,control:`inline-radio`,options:[`data-url`,`array-buffer`]},multiple:{description:`Разрешает принимать несколько файлов за один drop.`,control:`boolean`},disabled:{description:`Блокирует зону и обработку drop-событий.`,control:`boolean`},children:{description:`Кастомный контент внутри drop-зоны.`,control:!1}}},_={render:p({showStatus:!0})},v={render:p({children:(0,m.jsxs)(`div`,{style:{display:`grid`,placeItems:`center`,gap:6,minHeight:120},children:[(0,m.jsx)(u,{}),(0,m.jsx)(`span`,{children:`Перетащите один файл`})]})}),args:{multiple:!1}},y={render:p(),args:{disabled:!0,multiple:!0}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n,t as r}from"./DropZone-Diu_Hlgs.js";import{i,n as a,r as o}from"./iframe-ltYEol2F.js";import{n as s,t as c}from"./createControlledStoryRender-BouhvX-R.js";var l,u;function d(){return(d=e((()=>{i(),l=[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]],u=o(`cloud-upload`,l)})))()}var f=t({Basic:()=>_,Disabled:()=>y,SingleFile:()=>v,__namedExportsOrder:()=>b,default:()=>g});function p({showStatus:e=!1,children:t}={}){return c((n,i)=>(0,m.jsxs)(`div`,{style:{display:`grid`,gap:12},children:[(0,m.jsx)(r,{...n,onChange:e=>{n.onChange(e),i({value:e})},children:t??n.children}),e&&(0,m.jsx)(`div`,{style:{fontSize:14},children:n.value.length>0?`Получено файлов: ${n.value.length}`:`Перетащите файл(ы) в область выше`})]}))}var m,h,g,_,v,y,b;function x(){return(x=e((()=>{d(),s(),n(),m=a(),{fn:h}=__STORYBOOK_MODULE_TEST__,g={title:`UI/DropZone`,component:r,args:{value:[],onChange:h(),onChangeError:h(),multiple:!0,readMode:`data-url`,disabled:!1},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{value:{description:`Текущий массив успешно прочитанных файлов.`,control:!1},onChange:{description:`Вызывается с массивом успешно прочитанных файлов.`,control:!1},onChangeError:{description:`Вызывается при ошибке валидации или чтения файла.`,control:!1},accept:{description:`Допустимые расширения или MIME-типы для нативного input.`,control:`object`},allowedMime:{description:`Список допустимых MIME-типов для проверки.`,control:`object`},maxBytes:{description:`Максимальный размер одного файла в байтах.`,control:`number`},readMode:{description:`Режим чтения файлов: data-url или array-buffer.`,control:`inline-radio`,options:[`data-url`,`array-buffer`]},multiple:{description:`Разрешает принимать несколько файлов за один drop.`,control:`boolean`},disabled:{description:`Блокирует зону и обработку drop-событий.`,control:`boolean`},children:{description:`Кастомный контент внутри drop-зоны.`,control:!1}}},_={render:p({showStatus:!0})},v={render:p({children:(0,m.jsxs)(`div`,{style:{display:`grid`,placeItems:`center`,gap:6,minHeight:120},children:[(0,m.jsx)(u,{}),(0,m.jsx)(`span`,{children:`Перетащите один файл`})]})}),args:{multiple:!1}},y={render:p(),args:{disabled:!0,multiple:!0}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
2
2
  render: createDropZoneStoryRender({
3
3
  showStatus: true
4
4
  })
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";import{_ as r,a as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,o as p,p as m,r as h,s as g,u as _}from"./ContextMenu-CDSgMiHk.js";function v({children:e}){let{mode:t,open:n,menuId:i,triggerId:a,registerTriggerElement:o,onTriggerClick:s,onTriggerKeyDown:u}=f();if(t!==`click`)throw Error(`DropdownMenu.Trigger must be used within <DropdownMenu>`);return(0,y.cloneElement)(e,{id:e.props.id??a,ref:t=>{let n=e.props.ref;l(n,t),o(t)},"aria-haspopup":`menu`,"aria-expanded":n,"aria-controls":n?i:void 0,onClick:r(e.props.onClick,s),onKeyDown:c(e.props.onKeyDown,u)})}var y;function b(){return(b=e((()=>{y=t(),m(),v.__docgenInfo={description:``,methods:[],displayName:`DropdownMenuTrigger`,props:{children:{required:!0,tsType:{name:`ReactElement`,elements:[{name:`intersection`,raw:`HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement> }`,elements:[{name:`HTMLAttributes`,elements:[{name:`HTMLElement`}],raw:`HTMLAttributes<HTMLElement>`},{name:`signature`,type:`object`,raw:`{ ref?: Ref<HTMLElement> }`,signature:{properties:[{key:`ref`,value:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`,required:!1}}]}}]}],raw:`ReactElement<HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement> }>`},description:``}}}})))()}function x({children:e,placement:t,open:n,defaultOpen:r,onOpenChange:a}){return(0,S.jsx)(i,{mode:`click`,placement:t,open:n,defaultOpen:r,onOpenChange:a,children:e})}var S;function C(){return(C=e((()=>{t(),b(),s(),_(),a(),p(),u(),S=n(),x.Trigger=v,x.Content=o,x.Item=g,x.Separator=h,x.GroupLabel=d,x.__docgenInfo={description:``,methods:[{name:`Trigger`,docblock:null,modifiers:[`static`],params:[{name:`{ children }: DropdownMenuTriggerProps`,optional:!1,type:{name:`DropdownMenuTriggerProps`,alias:`DropdownMenuTriggerProps`}}],returns:null},{name:`Content`,docblock:null,modifiers:[`static`],params:[{name:`{
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";import{_ as r,a as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,o as p,p as m,r as h,s as g,u as _}from"./ContextMenu-DqLKk-wW.js";function v({children:e}){let{mode:t,open:n,menuId:i,triggerId:a,registerTriggerElement:o,onTriggerClick:s,onTriggerKeyDown:u}=f();if(t!==`click`)throw Error(`DropdownMenu.Trigger must be used within <DropdownMenu>`);return(0,y.cloneElement)(e,{id:e.props.id??a,ref:t=>{let n=e.props.ref;l(n,t),o(t)},"aria-haspopup":`menu`,"aria-expanded":n,"aria-controls":n?i:void 0,onClick:r(e.props.onClick,s),onKeyDown:c(e.props.onKeyDown,u)})}var y;function b(){return(b=e((()=>{y=t(),m(),v.__docgenInfo={description:``,methods:[],displayName:`DropdownMenuTrigger`,props:{children:{required:!0,tsType:{name:`ReactElement`,elements:[{name:`intersection`,raw:`HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement> }`,elements:[{name:`HTMLAttributes`,elements:[{name:`HTMLElement`}],raw:`HTMLAttributes<HTMLElement>`},{name:`signature`,type:`object`,raw:`{ ref?: Ref<HTMLElement> }`,signature:{properties:[{key:`ref`,value:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`,required:!1}}]}}]}],raw:`ReactElement<HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement> }>`},description:``}}}})))()}function x({children:e,placement:t,open:n,defaultOpen:r,onOpenChange:a}){return(0,S.jsx)(i,{mode:`click`,placement:t,open:n,defaultOpen:r,onOpenChange:a,children:e})}var S;function C(){return(C=e((()=>{t(),b(),s(),_(),a(),p(),u(),S=n(),x.Trigger=v,x.Content=o,x.Item=g,x.Separator=h,x.GroupLabel=d,x.__docgenInfo={description:``,methods:[{name:`Trigger`,docblock:null,modifiers:[`static`],params:[{name:`{ children }: DropdownMenuTriggerProps`,optional:!1,type:{name:`DropdownMenuTriggerProps`,alias:`DropdownMenuTriggerProps`}}],returns:null},{name:`Content`,docblock:null,modifiers:[`static`],params:[{name:`{
2
2
  children,
3
3
  className,
4
4
  "aria-label": ariaLabel,
@@ -1,2 +1,2 @@
1
- import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{i as r,n as i,r as a}from"./iframe-BhhO4T-j.js";import{a as o,i as s}from"./utils-tg3ibbzi.js";import{n as c,t as l}from"./Button-BJqsQn21.js";import{n as u,t as d}from"./OneStepScroller-BZNWq4hh.js";var f,p;function m(){return(m=t((()=>{r(),f=[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]],p=a(`chevrons-left`,f)})))()}var h,g;function _(){return(_=t((()=>{r(),h=[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]],g=a(`chevrons-right`,h)})))()}var v,y,b,x,S,C,w;function T(){return(T=t((()=>{v=`sj-rIq`,y=`_3anR7j`,b=`gMRIsT`,x=`f5Pv1e`,S=`q7eZzv`,C=`maUL24`,w={expandableActionPanel:v,content:y,contentScroller:b,labeledPanel:x,label:S,labeledActionPanel:C}})))()}function E({children:e,className:t,contentClassName:n,toggleClassName:r,open:i,defaultOpen:a=!1,disabled:s,onOpenChange:c,expandLabel:u=`Раскрыть панель действий влево`,collapseLabel:f=`Свернуть панель действий`,panelLabel:m=`Действия панели`,itemSelector:h,scrollPadding:_,smoothScroll:v}){let[y,b]=(0,D.useState)(a),x=(0,D.useId)(),S=i!==void 0,C=S?i:y,T=(0,D.useCallback)(e=>{let t=typeof e==`function`?e(C):e;S||b(t),c?.(t)},[S,c,C]),E=()=>T(e=>!e),k=C?g:p;return(0,O.jsxs)(`div`,{className:o(w.expandableActionPanel,t),"data-ui":`expandable-action-panel`,"data-open":C?``:void 0,children:[(0,O.jsx)(l,{className:r,icon:(0,O.jsx)(k,{}),title:C?f:u,disabled:s,variant:`neutralOutline`,"aria-expanded":C,"aria-controls":x,"data-ui":`expandable-action-panel-toggle`,"data-action":C?`collapse-action-panel`:`expand-action-panel`,onClick:E}),C&&(0,O.jsx)(`div`,{id:x,role:`group`,"aria-label":m,className:o(w.content,n),children:(0,O.jsx)(d,{className:w.contentScroller,itemSelector:h,scrollPadding:_,smooth:v,children:e})})]})}var D,O;function k(){return(k=t((()=>{D=e(n(),1),s(),m(),_(),c(),u(),T(),O=i(),E.__docgenInfo={description:`Горизонтальная раскрывающаяся панель действий.
1
+ import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{i as r,n as i,r as a}from"./iframe-ltYEol2F.js";import{a as o,i as s}from"./utils-tg3ibbzi.js";import{n as c,t as l}from"./Button-BzRtAjtM.js";import{n as u,t as d}from"./OneStepScroller-B1H-Yg0P.js";var f,p;function m(){return(m=t((()=>{r(),f=[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]],p=a(`chevrons-left`,f)})))()}var h,g;function _(){return(_=t((()=>{r(),h=[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]],g=a(`chevrons-right`,h)})))()}var v,y,b,x,S,C,w;function T(){return(T=t((()=>{v=`sj-rIq`,y=`_3anR7j`,b=`gMRIsT`,x=`f5Pv1e`,S=`q7eZzv`,C=`maUL24`,w={expandableActionPanel:v,content:y,contentScroller:b,labeledPanel:x,label:S,labeledActionPanel:C}})))()}function E({children:e,className:t,contentClassName:n,toggleClassName:r,open:i,defaultOpen:a=!1,disabled:s,onOpenChange:c,expandLabel:u=`Раскрыть панель действий влево`,collapseLabel:f=`Свернуть панель действий`,panelLabel:m=`Действия панели`,itemSelector:h,scrollPadding:_,smoothScroll:v}){let[y,b]=(0,D.useState)(a),x=(0,D.useId)(),S=i!==void 0,C=S?i:y,T=(0,D.useCallback)(e=>{let t=typeof e==`function`?e(C):e;S||b(t),c?.(t)},[S,c,C]),E=()=>T(e=>!e),k=C?g:p;return(0,O.jsxs)(`div`,{className:o(w.expandableActionPanel,t),"data-ui":`expandable-action-panel`,"data-open":C?``:void 0,children:[(0,O.jsx)(l,{className:r,icon:(0,O.jsx)(k,{}),title:C?f:u,disabled:s,variant:`neutralOutline`,"aria-expanded":C,"aria-controls":x,"data-ui":`expandable-action-panel-toggle`,"data-action":C?`collapse-action-panel`:`expand-action-panel`,onClick:E}),C&&(0,O.jsx)(`div`,{id:x,role:`group`,"aria-label":m,className:o(w.content,n),children:(0,O.jsx)(d,{className:w.contentScroller,itemSelector:h,scrollPadding:_,smooth:v,children:e})})]})}var D,O;function k(){return(k=t((()=>{D=e(n(),1),s(),m(),_(),c(),u(),T(),O=i(),E.__docgenInfo={description:`Горизонтальная раскрывающаяся панель действий.
2
2
  Не знает о внешнем layout и может использоваться рядом с любым содержимым.`,methods:[],displayName:`ExpandableActionPanel`,props:{className:{required:!1,tsType:{name:`string`},description:``},contentClassName:{required:!1,tsType:{name:`string`},description:``},toggleClassName:{required:!1,tsType:{name:`string`},description:``},open:{required:!1,tsType:{name:`boolean`},description:``},defaultOpen:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},disabled:{required:!1,tsType:{name:`boolean`},description:``},onOpenChange:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(open: boolean) => void`,signature:{arguments:[{type:{name:`boolean`},name:`open`}],return:{name:`void`}}},description:``},expandLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Раскрыть панель действий влево"`,computed:!1}},collapseLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Свернуть панель действий"`,computed:!1}},panelLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Действия панели"`,computed:!1}},itemSelector:{required:!1,tsType:{name:`string`},description:``},scrollPadding:{required:!1,tsType:{name:`number`},description:``},smoothScroll:{required:!1,tsType:{name:`boolean`},description:``}},composes:[`PropsWithChildren`]}})))()}export{T as i,k as n,w as r,E as t};
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r,t as i}from"./check-BlcnYTcv.js";import{i as a,n as o,r as s,t as c}from"./ExpandableActionPanel-BqLqYxoP.js";import{n as l,t as u}from"./CheckBox-DBJMOBLd.js";import{n as d,t as f}from"./refresh-cw-gGwrfTvn.js";import{n as p,t as m}from"./settings-2--yrC02pK.js";import{i as h,n as g,r as _}from"./iframe-BhhO4T-j.js";import{a as v,i as y}from"./utils-tg3ibbzi.js";import{n as b,t as x}from"./Button-BJqsQn21.js";import{n as S,t as C}from"./createControlledStoryRender-BouhvX-R.js";import{l as w,o as T}from"./Input-Ekyq4bpy.js";import{n as E,t as D}from"./Select-DvlCWgQT.js";var O,k;function A(){return(A=e((()=>{h(),O=[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]],k=_(`search`,O)})))()}function j({label:e,className:t,labelClassName:n,labelStyle:r,labelMinWidth:i=`12em`,panelClassName:a,open:o,defaultOpen:l,...u}){let d={...r,minWidth:i},f=typeof e==`string`?e:void 0;return(0,M.jsxs)(`div`,{className:v(s.labeledPanel,t),"data-ui":`labeled-expandable-action-panel`,children:[(0,M.jsx)(`div`,{className:v(`flexEllipsis`,s.label,n),style:d,title:f,children:e}),(0,M.jsx)(c,{...u,open:o,defaultOpen:l,className:v(s.labeledActionPanel,a)})]})}var M;function N(){return(N=e((()=>{n(),y(),o(),a(),M=g(),j.__docgenInfo={description:"Раскрывающаяся панель действий с левым текстом, который сжимается через `flexEllipsis`.",methods:[],displayName:`LabeledExpandableActionPanel`,props:{label:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},className:{required:!1,tsType:{name:`string`},description:``},labelClassName:{required:!1,tsType:{name:`string`},description:``},labelStyle:{required:!1,tsType:{name:`ReactCSSProperties`,raw:`React.CSSProperties`},description:``},labelMinWidth:{required:!1,tsType:{name:`ReactCSSProperties["minWidth"]`,raw:`React.CSSProperties["minWidth"]`},description:``,defaultValue:{value:`"12em"`,computed:!1}},panelClassName:{required:!1,tsType:{name:`string`},description:``}},composes:[`Omit`]}})))()}var P=t({BasePanel:()=>W,Labeled:()=>U,__namedExportsOrder:()=>G,default:()=>z});function F(){let[e,t]=(0,I.useState)(``),[n,r]=(0,I.useState)(!1),[a,o]=(0,I.useState)(`Все`);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`div`,{style:{width:`calc(14em + var(--width-add))`},children:(0,L.jsx)(T,{placeholder:`Поиск`,value:e,onChange:t,endAdornment:(0,L.jsx)(k,{})})}),(0,L.jsx)(`div`,{style:{width:`calc(12em + var(--width-add))`},children:(0,L.jsx)(D,{placeholder:`Статус`,options:B,value:a,onChange:o,getOptionKey:e=>e,getOptionLabel:e=>e})}),(0,L.jsx)(u,{placeholder:`Только мои`,value:n,onChange:r,noWrap:!0}),(0,L.jsx)(x,{icon:(0,L.jsx)(f,{}),title:`Обновить`}),(0,L.jsx)(x,{icon:(0,L.jsx)(m,{}),title:`Настроить`}),(0,L.jsx)(x,{icon:(0,L.jsx)(i,{}),tone:`success`,appearance:`solid`,children:`Применить`})]})}var I,L,R,z,B,V,H,U,W,G;function K(){return(K=e((()=>{I=n(),r(),d(),A(),p(),b(),l(),S(),w(),E(),o(),N(),L=g(),{fn:R}=__STORYBOOK_MODULE_TEST__,z={title:`UI/ExpandableActionPanel`,component:j,args:{label:`Длинное название строки с результатами расчёта и параметрами отбора`,labelMinWidth:`18em`,open:!1,defaultOpen:!1,disabled:!1,onOpenChange:R(),expandLabel:`Раскрыть панель действий влево`,collapseLabel:`Свернуть панель действий`,panelLabel:`Действия панели`,smoothScroll:!1,children:null},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{label:{description:`Текст или ReactNode слева от панели.`,control:`text`},labelMinWidth:{description:"Минимальная ширина `flexEllipsis`-текста.",control:`text`},labelClassName:{description:`Дополнительный CSS-класс области подписи.`,control:`text`},labelStyle:{description:`Inline-стили области подписи.`,control:`object`},panelClassName:{description:`Дополнительный CSS-класс внутренней ExpandableActionPanel.`,control:`text`},contentClassName:{description:`Дополнительный CSS-класс раскрываемого контейнера действий.`,control:`text`},toggleClassName:{description:`Дополнительный CSS-класс кнопки раскрытия.`,control:`text`},open:{description:`Контролируемое состояние раскрытия.`,control:`boolean`},defaultOpen:{description:`Начальное состояние раскрытия в uncontrolled-режиме.`,control:`boolean`},disabled:{description:`Блокирует кнопку раскрытия.`,control:`boolean`},onOpenChange:{description:`Вызывается при раскрытии или сворачивании панели.`,control:!1},expandLabel:{description:`Tooltip и доступное имя кнопки в закрытом состоянии.`,control:`text`},collapseLabel:{description:`Tooltip и доступное имя кнопки в раскрытом состоянии.`,control:`text`},panelLabel:{description:`Доступное имя раскрытой группы действий.`,control:`text`},itemSelector:{description:`CSS-селектор элементов для пошаговой прокрутки.`,control:`text`},scrollPadding:{description:`Отступ пошаговой прокрутки в пикселях.`,control:{type:`number`,min:0,step:1}},smoothScroll:{description:`Включает плавную пошаговую прокрутку.`,control:`boolean`},children:{description:`Набор действий внутри раскрываемой панели.`,control:!1}}},B=[`Все`,`Активные`,`Архив`],V=C((e,t)=>(0,L.jsx)(`div`,{style:{width:`min(100%, 920px)`},children:(0,L.jsx)(j,{...e,open:e.open,onOpenChange:n=>{e.onOpenChange?.(n),t({open:n})},children:e.children??(0,L.jsx)(F,{})})})),H=C((e,t)=>(0,L.jsx)(`div`,{style:{width:`min(100%, 720px)`,display:`flex`,justifyContent:`flex-end`},children:(0,L.jsx)(c,{...e,open:e.open,onOpenChange:n=>{e.onOpenChange?.(n),t({open:n})},children:e.children??(0,L.jsx)(F,{})})})),U={render:V},W={args:{open:!0,panelLabel:`Действия панели`},render:H},U.parameters={...U.parameters,docs:{...U.parameters?.docs,source:{originalSource:`{
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r,t as i}from"./check-DGqyuB4O.js";import{i as a,n as o,r as s,t as c}from"./ExpandableActionPanel-B3iQGrX8.js";import{n as l,t as u}from"./CheckBox-C-EWY4_-.js";import{n as d,t as f}from"./refresh-cw-FKHfW9eG.js";import{n as p,t as m}from"./settings-2-Cz1PtqGa.js";import{i as h,n as g,r as _}from"./iframe-ltYEol2F.js";import{a as v,i as y}from"./utils-tg3ibbzi.js";import{n as b,t as x}from"./Button-BzRtAjtM.js";import{n as S,t as C}from"./createControlledStoryRender-BouhvX-R.js";import{l as w,o as T}from"./Input-b2F0zrLw.js";import{n as E,t as D}from"./Select-CClfxa48.js";var O,k;function A(){return(A=e((()=>{h(),O=[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]],k=_(`search`,O)})))()}function j({label:e,className:t,labelClassName:n,labelStyle:r,labelMinWidth:i=`12em`,panelClassName:a,open:o,defaultOpen:l,...u}){let d={...r,minWidth:i},f=typeof e==`string`?e:void 0;return(0,M.jsxs)(`div`,{className:v(s.labeledPanel,t),"data-ui":`labeled-expandable-action-panel`,children:[(0,M.jsx)(`div`,{className:v(`flexEllipsis`,s.label,n),style:d,title:f,children:e}),(0,M.jsx)(c,{...u,open:o,defaultOpen:l,className:v(s.labeledActionPanel,a)})]})}var M;function N(){return(N=e((()=>{n(),y(),o(),a(),M=g(),j.__docgenInfo={description:"Раскрывающаяся панель действий с левым текстом, который сжимается через `flexEllipsis`.",methods:[],displayName:`LabeledExpandableActionPanel`,props:{label:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},className:{required:!1,tsType:{name:`string`},description:``},labelClassName:{required:!1,tsType:{name:`string`},description:``},labelStyle:{required:!1,tsType:{name:`ReactCSSProperties`,raw:`React.CSSProperties`},description:``},labelMinWidth:{required:!1,tsType:{name:`ReactCSSProperties["minWidth"]`,raw:`React.CSSProperties["minWidth"]`},description:``,defaultValue:{value:`"12em"`,computed:!1}},panelClassName:{required:!1,tsType:{name:`string`},description:``}},composes:[`Omit`]}})))()}var P=t({BasePanel:()=>W,Labeled:()=>U,__namedExportsOrder:()=>G,default:()=>z});function F(){let[e,t]=(0,I.useState)(``),[n,r]=(0,I.useState)(!1),[a,o]=(0,I.useState)(`Все`);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`div`,{style:{width:`calc(14em + var(--width-add))`},children:(0,L.jsx)(T,{placeholder:`Поиск`,value:e,onChange:t,endAdornment:(0,L.jsx)(k,{})})}),(0,L.jsx)(`div`,{style:{width:`calc(12em + var(--width-add))`},children:(0,L.jsx)(D,{placeholder:`Статус`,options:B,value:a,onChange:o,getOptionKey:e=>e,getOptionLabel:e=>e})}),(0,L.jsx)(u,{placeholder:`Только мои`,value:n,onChange:r,noWrap:!0}),(0,L.jsx)(x,{icon:(0,L.jsx)(f,{}),title:`Обновить`}),(0,L.jsx)(x,{icon:(0,L.jsx)(m,{}),title:`Настроить`}),(0,L.jsx)(x,{icon:(0,L.jsx)(i,{}),tone:`success`,appearance:`solid`,children:`Применить`})]})}var I,L,R,z,B,V,H,U,W,G;function K(){return(K=e((()=>{I=n(),r(),d(),A(),p(),b(),l(),S(),w(),E(),o(),N(),L=g(),{fn:R}=__STORYBOOK_MODULE_TEST__,z={title:`UI/ExpandableActionPanel`,component:j,args:{label:`Длинное название строки с результатами расчёта и параметрами отбора`,labelMinWidth:`18em`,open:!1,defaultOpen:!1,disabled:!1,onOpenChange:R(),expandLabel:`Раскрыть панель действий влево`,collapseLabel:`Свернуть панель действий`,panelLabel:`Действия панели`,smoothScroll:!1,children:null},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{label:{description:`Текст или ReactNode слева от панели.`,control:`text`},labelMinWidth:{description:"Минимальная ширина `flexEllipsis`-текста.",control:`text`},labelClassName:{description:`Дополнительный CSS-класс области подписи.`,control:`text`},labelStyle:{description:`Inline-стили области подписи.`,control:`object`},panelClassName:{description:`Дополнительный CSS-класс внутренней ExpandableActionPanel.`,control:`text`},contentClassName:{description:`Дополнительный CSS-класс раскрываемого контейнера действий.`,control:`text`},toggleClassName:{description:`Дополнительный CSS-класс кнопки раскрытия.`,control:`text`},open:{description:`Контролируемое состояние раскрытия.`,control:`boolean`},defaultOpen:{description:`Начальное состояние раскрытия в uncontrolled-режиме.`,control:`boolean`},disabled:{description:`Блокирует кнопку раскрытия.`,control:`boolean`},onOpenChange:{description:`Вызывается при раскрытии или сворачивании панели.`,control:!1},expandLabel:{description:`Tooltip и доступное имя кнопки в закрытом состоянии.`,control:`text`},collapseLabel:{description:`Tooltip и доступное имя кнопки в раскрытом состоянии.`,control:`text`},panelLabel:{description:`Доступное имя раскрытой группы действий.`,control:`text`},itemSelector:{description:`CSS-селектор элементов для пошаговой прокрутки.`,control:`text`},scrollPadding:{description:`Отступ пошаговой прокрутки в пикселях.`,control:{type:`number`,min:0,step:1}},smoothScroll:{description:`Включает плавную пошаговую прокрутку.`,control:`boolean`},children:{description:`Набор действий внутри раскрываемой панели.`,control:!1}}},B=[`Все`,`Активные`,`Архив`],V=C((e,t)=>(0,L.jsx)(`div`,{style:{width:`min(100%, 920px)`},children:(0,L.jsx)(j,{...e,open:e.open,onOpenChange:n=>{e.onOpenChange?.(n),t({open:n})},children:e.children??(0,L.jsx)(F,{})})})),H=C((e,t)=>(0,L.jsx)(`div`,{style:{width:`min(100%, 720px)`,display:`flex`,justifyContent:`flex-end`},children:(0,L.jsx)(c,{...e,open:e.open,onOpenChange:n=>{e.onOpenChange?.(n),t({open:n})},children:e.children??(0,L.jsx)(F,{})})})),U={render:V},W={args:{open:!0,panelLabel:`Действия панели`},render:H},U.parameters={...U.parameters,docs:{...U.parameters?.docs,source:{originalSource:`{
2
2
  render: renderLabeledPanelStory
3
3
  }`,...U.parameters?.docs?.source}}},W.parameters={...W.parameters,docs:{...W.parameters?.docs,source:{originalSource:`{
4
4
  args: {
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BhhO4T-j.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-l-Hapy_a.js";import{a as p,c as m,d as h,f as g,i as _,l as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T}from"./Flex.stories-C7lLfAlI.js";function E(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{of:b,parameters:{docs:{toc:!0}}}),`
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-ltYEol2F.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-Bdsl8TP-.js";import{a as p,c as m,d as h,f as g,i as _,l as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T}from"./Flex.stories-Db20If9k.js";function E(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{of:b,parameters:{docs:{toc:!0}}}),`
2
2
  `,(0,O.jsx)(u,{children:`Flex`}),`
3
3
  `,(0,O.jsx)(o,{children:`Набор flex-layout примитивов для строк, колонок и быстрых компоновок интерфейса`}),`
4
4
  `,(0,O.jsx)(t.p,{children:`Flex уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-BhhO4T-j.js";import{i,t as a}from"./useFlexClasses-SgVG37Bb.js";import{n as o,t as s}from"./FlexContainer-DpyN062a.js";import{n as c,t as l}from"./FlexItem-Ca9aW4Wg.js";function u({ref:e,variant:t,children:n,className:r=``,...a}){let o=[i(t??``),r].filter(Boolean).join(` `);return(0,d.jsx)(s,{ref:e,className:o,...a,children:n})}var d;function f(){return(f=e((()=>{o(),a(),d=r(),u.displayName=`PredefinedFlex`,u.__docgenInfo={description:``,methods:[],displayName:`PredefinedFlex`,props:{variant:{required:!1,tsType:{name:`union`,raw:`"center" | "centerBetween" | "columnCenter"`,elements:[{name:`literal`,value:`"center"`},{name:`literal`,value:`"centerBetween"`},{name:`literal`,value:`"columnCenter"`}]},description:``},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``},className:{defaultValue:{value:`""`,computed:!1},required:!1}},composes:[`Omit`]}})))()}var p;function m(){return(m=e((()=>{o(),c(),f(),p={Container:s,Item:l,Predefined:u}})))()}var h=t({AlignItems:()=>E,BasicColumn:()=>C,BasicRow:()=>S,Directions:()=>w,FlexItems:()=>k,Gaps:()=>O,InlineFlex:()=>j,JustifyContent:()=>T,Predefined:()=>A,RealWorld:()=>M,Wrapping:()=>D,__namedExportsOrder:()=>N,default:()=>x});function g({children:e,index:t=0}){return(0,_.jsx)(p.Item,{style:{...y.item,backgroundColor:b(t)},children:e})}var _,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N;function P(){return(P=e((()=>{n(),m(),_=r(),{useArgs:v}=__STORYBOOK_MODULE_PREVIEW_API__,y={container:{border:`2px dashed var(--border-0)`,padding:`2em`,marginBlock:`1em`},item:{padding:`16px`,textAlign:`center`,fontWeight:`bold`,color:`white`,minHeight:`5em`,minWidth:`10em`,display:`flex`,alignItems:`center`,justifyContent:`center`},itemColors:[`#ff6b6b`,`#4ecdc4`,`#45b7d1`,`#96ceb4`,`#feca57`,`#ff9ff3`]},b=e=>y.itemColors[e%y.itemColors.length],x={title:`Layout/Flex`,component:p.Container,args:{row:!0,gap:`md`},parameters:{layout:`padded`},decorators:[e=>{let[t]=v();return(0,_.jsx)(e,{args:t})}],argTypes:{inline:{description:`Использует inline-flex вместо flex.`,control:`boolean`},row:{description:`Направляет элементы по строке.`,control:`boolean`},column:{description:`Направляет элементы по колонке.`,control:`boolean`},rowReverse:{description:`Разворачивает порядок строки.`,control:`boolean`},columnReverse:{description:`Разворачивает порядок колонки.`,control:`boolean`},wrap:{description:`Разрешает перенос элементов.`,control:`boolean`},nowrap:{description:`Запрещает перенос элементов.`,control:`boolean`},wrapReverse:{description:`Разворачивает направление строк при переносе.`,control:`boolean`},align:{description:`Выравнивание по поперечной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`baseline`]},justify:{description:`Выравнивание по главной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},alignContent:{description:`Распределение строк по поперечной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},gap:{description:`Общий интервал между элементами.`,control:`select`,options:[`none`,`xs`,`sm`,`md`,`lg`,`xl`]},gapRow:{description:`Интервал между строками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},gapColumn:{description:`Интервал между колонками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},as:{description:`Семантический HTML-тег контейнера.`,control:`select`,options:[`div`,`section`,`main`,`nav`,`ul`]},children:{description:`Содержимое flex-контейнера.`,control:!1}}},S={render:e=>(0,_.jsx)(p.Container,{...e,style:y.container}),args:{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g,{index:0,children:`Item 1`}),(0,_.jsx)(g,{index:1,children:`Item 2`}),(0,_.jsx)(g,{index:2,children:`Item 3`})]}),row:!0}},C={render:e=>(0,_.jsx)(p.Container,{...e,style:y.container}),args:{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g,{index:0,children:`Header`}),(0,_.jsx)(g,{index:1,children:`Content`}),(0,_.jsx)(g,{index:2,children:`Footer`})]}),column:!0}},w={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Row (default)`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Row Reverse`}),(0,_.jsxs)(p.Container,{rowReverse:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Column`}),(0,_.jsxs)(p.Container,{column:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Column Reverse`}),(0,_.jsxs)(p.Container,{columnReverse:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]})]}),args:{children:void 0}},T={render:()=>(0,_.jsx)(`div`,{children:[`start`,`center`,`end`,`between`,`around`,`evenly`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Justify: `,e]}),(0,_.jsxs)(p.Container,{row:!0,justify:e,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Item 1`}),(0,_.jsx)(g,{index:1,children:`Item 2`}),(0,_.jsx)(g,{index:2,children:`Item 3`})]})]},e))}),args:{children:void 0}},E={render:()=>(0,_.jsx)(`div`,{children:[`start`,`center`,`end`,`stretch`,`baseline`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Align: `,e]}),(0,_.jsxs)(p.Container,{row:!0,align:e,style:{...y.container,height:`120px`},children:[(0,_.jsx)(g,{index:0,children:(0,_.jsx)(`div`,{children:`Short`})}),(0,_.jsx)(g,{index:1,children:(0,_.jsx)(`div`,{style:{padding:`40px`},children:`Tall`})}),(0,_.jsx)(g,{index:2,children:(0,_.jsx)(`div`,{style:{padding:`24px`},children:`Medium`})})]})]},e))}),args:{children:void 0}},D={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`No Wrap (default)`}),(0,_.jsx)(p.Container,{row:!0,nowrap:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))}),(0,_.jsx)(`h3`,{children:`Wrap`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))}),(0,_.jsx)(`h3`,{children:`Wrap Reverse`}),(0,_.jsx)(p.Container,{row:!0,wrapReverse:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},O={render:()=>(0,_.jsxs)(`div`,{children:[[`xs`,`sm`,`md`,`lg`,`xl`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Gap: `,e]}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gap:e,style:y.container,children:[1,2,3,4,5,6].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]},e)),(0,_.jsx)(`h3`,{children:`Different Row and Column Gaps`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gapRow:`lg`,gapColumn:`sm`,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},k={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Grow Properties`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Default`}),(0,_.jsx)(p.Item,{grow:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1)},children:`Grow`})}),(0,_.jsx)(g,{index:2,children:`Default`})]}),(0,_.jsx)(`h3`,{children:`Shrink Properties`}),(0,_.jsxs)(p.Container,{row:!0,style:{...y.container,width:`300px`},children:[(0,_.jsx)(p.Item,{shrink:!1,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(0),width:`150px`},children:`No Shrink`})}),(0,_.jsx)(p.Item,{children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1),width:`150px`},children:`Shrink (default)`})})]}),(0,_.jsx)(`h3`,{children:`Composite Classes`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(p.Item,{flex0:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(0)},children:`flex0`})}),(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1)},children:`flex1`})}),(0,_.jsx)(p.Item,{flex0:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(2)},children:`flex0`})})]})]}),args:{children:void 0}},A={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Center`}),(0,_.jsx)(p.Predefined,{variant:`center`,style:{...y.container,height:`100px`},children:(0,_.jsx)(g,{index:0,children:`Centered Content`})}),(0,_.jsx)(`h3`,{children:`Center Between`}),(0,_.jsxs)(p.Predefined,{variant:`centerBetween`,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Left`}),(0,_.jsx)(g,{index:1,children:`Right`})]})]}),args:{children:void 0}},j={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`p`,{children:[`This is text with`,(0,_.jsxs)(p.Container,{inline:!0,align:`center`,gap:`sm`,style:{margin:`0 8px`},children:[(0,_.jsx)(g,{index:0,children:`inline`}),(0,_.jsx)(g,{index:1,children:`flex`})]}),`elements inside.`]}),(0,_.jsxs)(`p`,{children:[`Another example with`,(0,_.jsxs)(p.Container,{inline:!0,column:!0,gap:`xs`,style:{margin:`0 8px`},children:[(0,_.jsx)(g,{index:2,children:`vertical`}),(0,_.jsx)(g,{index:3,children:`inline`})]}),`flex.`]})]}),args:{children:void 0}},M={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Navigation Bar`}),(0,_.jsxs)(p.Predefined,{variant:`centerBetween`,style:y.container,children:[(0,_.jsxs)(p.Container,{row:!0,align:`center`,gap:`md`,children:[(0,_.jsx)(g,{index:0,children:`Logo`}),(0,_.jsx)(g,{index:1,children:`Home`}),(0,_.jsx)(g,{index:2,children:`About`}),(0,_.jsx)(g,{index:3,children:`Contact`})]}),(0,_.jsx)(g,{index:4,children:`Login`})]}),(0,_.jsx)(`h3`,{children:`Card Layout`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gap:`lg`,style:y.container,children:[1,2,3,4].map(e=>(0,_.jsx)(p.Item,{flex1:!0,style:{minWidth:`200px`},children:(0,_.jsxs)(`div`,{style:{border:`1px solid #ddd`,borderRadius:`8px`,padding:`16px`,textAlign:`center`,backgroundColor:b(e)},children:[(0,_.jsxs)(`h4`,{children:[`Card `,e]}),(0,_.jsx)(`p`,{children:`Card content goes here`})]})},e))}),(0,_.jsx)(`h3`,{children:`Form Layout`}),(0,_.jsxs)(p.Container,{column:!0,gap:`md`,style:y.container,children:[(0,_.jsxs)(p.Container,{row:!0,gap:`md`,children:[(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(g,{index:0,children:`First Name`})}),(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(g,{index:1,children:`Last Name`})})]}),(0,_.jsx)(g,{index:2,children:`Email`}),(0,_.jsx)(g,{index:3,children:`Message`})]})]}),args:{children:void 0}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-ltYEol2F.js";import{i,t as a}from"./useFlexClasses-SgVG37Bb.js";import{n as o,t as s}from"./FlexContainer-YYPiKtpT.js";import{n as c,t as l}from"./FlexItem-CXY6tvoB.js";function u({ref:e,variant:t,children:n,className:r=``,...a}){let o=[i(t??``),r].filter(Boolean).join(` `);return(0,d.jsx)(s,{ref:e,className:o,...a,children:n})}var d;function f(){return(f=e((()=>{o(),a(),d=r(),u.displayName=`PredefinedFlex`,u.__docgenInfo={description:``,methods:[],displayName:`PredefinedFlex`,props:{variant:{required:!1,tsType:{name:`union`,raw:`"center" | "centerBetween" | "columnCenter"`,elements:[{name:`literal`,value:`"center"`},{name:`literal`,value:`"centerBetween"`},{name:`literal`,value:`"columnCenter"`}]},description:``},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``},className:{defaultValue:{value:`""`,computed:!1},required:!1}},composes:[`Omit`]}})))()}var p;function m(){return(m=e((()=>{o(),c(),f(),p={Container:s,Item:l,Predefined:u}})))()}var h=t({AlignItems:()=>E,BasicColumn:()=>C,BasicRow:()=>S,Directions:()=>w,FlexItems:()=>k,Gaps:()=>O,InlineFlex:()=>j,JustifyContent:()=>T,Predefined:()=>A,RealWorld:()=>M,Wrapping:()=>D,__namedExportsOrder:()=>N,default:()=>x});function g({children:e,index:t=0}){return(0,_.jsx)(p.Item,{style:{...y.item,backgroundColor:b(t)},children:e})}var _,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N;function P(){return(P=e((()=>{n(),m(),_=r(),{useArgs:v}=__STORYBOOK_MODULE_PREVIEW_API__,y={container:{border:`2px dashed var(--border-0)`,padding:`2em`,marginBlock:`1em`},item:{padding:`16px`,textAlign:`center`,fontWeight:`bold`,color:`white`,minHeight:`5em`,minWidth:`10em`,display:`flex`,alignItems:`center`,justifyContent:`center`},itemColors:[`#ff6b6b`,`#4ecdc4`,`#45b7d1`,`#96ceb4`,`#feca57`,`#ff9ff3`]},b=e=>y.itemColors[e%y.itemColors.length],x={title:`Layout/Flex`,component:p.Container,args:{row:!0,gap:`md`},parameters:{layout:`padded`},decorators:[e=>{let[t]=v();return(0,_.jsx)(e,{args:t})}],argTypes:{inline:{description:`Использует inline-flex вместо flex.`,control:`boolean`},row:{description:`Направляет элементы по строке.`,control:`boolean`},column:{description:`Направляет элементы по колонке.`,control:`boolean`},rowReverse:{description:`Разворачивает порядок строки.`,control:`boolean`},columnReverse:{description:`Разворачивает порядок колонки.`,control:`boolean`},wrap:{description:`Разрешает перенос элементов.`,control:`boolean`},nowrap:{description:`Запрещает перенос элементов.`,control:`boolean`},wrapReverse:{description:`Разворачивает направление строк при переносе.`,control:`boolean`},align:{description:`Выравнивание по поперечной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`baseline`]},justify:{description:`Выравнивание по главной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},alignContent:{description:`Распределение строк по поперечной оси.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},gap:{description:`Общий интервал между элементами.`,control:`select`,options:[`none`,`xs`,`sm`,`md`,`lg`,`xl`]},gapRow:{description:`Интервал между строками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},gapColumn:{description:`Интервал между колонками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},as:{description:`Семантический HTML-тег контейнера.`,control:`select`,options:[`div`,`section`,`main`,`nav`,`ul`]},children:{description:`Содержимое flex-контейнера.`,control:!1}}},S={render:e=>(0,_.jsx)(p.Container,{...e,style:y.container}),args:{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g,{index:0,children:`Item 1`}),(0,_.jsx)(g,{index:1,children:`Item 2`}),(0,_.jsx)(g,{index:2,children:`Item 3`})]}),row:!0}},C={render:e=>(0,_.jsx)(p.Container,{...e,style:y.container}),args:{children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g,{index:0,children:`Header`}),(0,_.jsx)(g,{index:1,children:`Content`}),(0,_.jsx)(g,{index:2,children:`Footer`})]}),column:!0}},w={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Row (default)`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Row Reverse`}),(0,_.jsxs)(p.Container,{rowReverse:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Column`}),(0,_.jsxs)(p.Container,{column:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]}),(0,_.jsx)(`h3`,{children:`Column Reverse`}),(0,_.jsxs)(p.Container,{columnReverse:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`1`}),(0,_.jsx)(g,{index:1,children:`2`}),(0,_.jsx)(g,{index:2,children:`3`})]})]}),args:{children:void 0}},T={render:()=>(0,_.jsx)(`div`,{children:[`start`,`center`,`end`,`between`,`around`,`evenly`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Justify: `,e]}),(0,_.jsxs)(p.Container,{row:!0,justify:e,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Item 1`}),(0,_.jsx)(g,{index:1,children:`Item 2`}),(0,_.jsx)(g,{index:2,children:`Item 3`})]})]},e))}),args:{children:void 0}},E={render:()=>(0,_.jsx)(`div`,{children:[`start`,`center`,`end`,`stretch`,`baseline`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Align: `,e]}),(0,_.jsxs)(p.Container,{row:!0,align:e,style:{...y.container,height:`120px`},children:[(0,_.jsx)(g,{index:0,children:(0,_.jsx)(`div`,{children:`Short`})}),(0,_.jsx)(g,{index:1,children:(0,_.jsx)(`div`,{style:{padding:`40px`},children:`Tall`})}),(0,_.jsx)(g,{index:2,children:(0,_.jsx)(`div`,{style:{padding:`24px`},children:`Medium`})})]})]},e))}),args:{children:void 0}},D={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`No Wrap (default)`}),(0,_.jsx)(p.Container,{row:!0,nowrap:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))}),(0,_.jsx)(`h3`,{children:`Wrap`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))}),(0,_.jsx)(`h3`,{children:`Wrap Reverse`}),(0,_.jsx)(p.Container,{row:!0,wrapReverse:!0,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},O={render:()=>(0,_.jsxs)(`div`,{children:[[`xs`,`sm`,`md`,`lg`,`xl`].map(e=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`h3`,{children:[`Gap: `,e]}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gap:e,style:y.container,children:[1,2,3,4,5,6].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]},e)),(0,_.jsx)(`h3`,{children:`Different Row and Column Gaps`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gapRow:`lg`,gapColumn:`sm`,style:y.container,children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,_.jsxs)(g,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},k={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Grow Properties`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Default`}),(0,_.jsx)(p.Item,{grow:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1)},children:`Grow`})}),(0,_.jsx)(g,{index:2,children:`Default`})]}),(0,_.jsx)(`h3`,{children:`Shrink Properties`}),(0,_.jsxs)(p.Container,{row:!0,style:{...y.container,width:`300px`},children:[(0,_.jsx)(p.Item,{shrink:!1,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(0),width:`150px`},children:`No Shrink`})}),(0,_.jsx)(p.Item,{children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1),width:`150px`},children:`Shrink (default)`})})]}),(0,_.jsx)(`h3`,{children:`Composite Classes`}),(0,_.jsxs)(p.Container,{row:!0,style:y.container,children:[(0,_.jsx)(p.Item,{flex0:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(0)},children:`flex0`})}),(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(1)},children:`flex1`})}),(0,_.jsx)(p.Item,{flex0:!0,children:(0,_.jsx)(`div`,{style:{...y.item,backgroundColor:b(2)},children:`flex0`})})]})]}),args:{children:void 0}},A={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Center`}),(0,_.jsx)(p.Predefined,{variant:`center`,style:{...y.container,height:`100px`},children:(0,_.jsx)(g,{index:0,children:`Centered Content`})}),(0,_.jsx)(`h3`,{children:`Center Between`}),(0,_.jsxs)(p.Predefined,{variant:`centerBetween`,style:y.container,children:[(0,_.jsx)(g,{index:0,children:`Left`}),(0,_.jsx)(g,{index:1,children:`Right`})]})]}),args:{children:void 0}},j={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`p`,{children:[`This is text with`,(0,_.jsxs)(p.Container,{inline:!0,align:`center`,gap:`sm`,style:{margin:`0 8px`},children:[(0,_.jsx)(g,{index:0,children:`inline`}),(0,_.jsx)(g,{index:1,children:`flex`})]}),`elements inside.`]}),(0,_.jsxs)(`p`,{children:[`Another example with`,(0,_.jsxs)(p.Container,{inline:!0,column:!0,gap:`xs`,style:{margin:`0 8px`},children:[(0,_.jsx)(g,{index:2,children:`vertical`}),(0,_.jsx)(g,{index:3,children:`inline`})]}),`flex.`]})]}),args:{children:void 0}},M={render:()=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h3`,{children:`Navigation Bar`}),(0,_.jsxs)(p.Predefined,{variant:`centerBetween`,style:y.container,children:[(0,_.jsxs)(p.Container,{row:!0,align:`center`,gap:`md`,children:[(0,_.jsx)(g,{index:0,children:`Logo`}),(0,_.jsx)(g,{index:1,children:`Home`}),(0,_.jsx)(g,{index:2,children:`About`}),(0,_.jsx)(g,{index:3,children:`Contact`})]}),(0,_.jsx)(g,{index:4,children:`Login`})]}),(0,_.jsx)(`h3`,{children:`Card Layout`}),(0,_.jsx)(p.Container,{row:!0,wrap:!0,gap:`lg`,style:y.container,children:[1,2,3,4].map(e=>(0,_.jsx)(p.Item,{flex1:!0,style:{minWidth:`200px`},children:(0,_.jsxs)(`div`,{style:{border:`1px solid #ddd`,borderRadius:`8px`,padding:`16px`,textAlign:`center`,backgroundColor:b(e)},children:[(0,_.jsxs)(`h4`,{children:[`Card `,e]}),(0,_.jsx)(`p`,{children:`Card content goes here`})]})},e))}),(0,_.jsx)(`h3`,{children:`Form Layout`}),(0,_.jsxs)(p.Container,{column:!0,gap:`md`,style:y.container,children:[(0,_.jsxs)(p.Container,{row:!0,gap:`md`,children:[(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(g,{index:0,children:`First Name`})}),(0,_.jsx)(p.Item,{flex1:!0,children:(0,_.jsx)(g,{index:1,children:`Last Name`})})]}),(0,_.jsx)(g,{index:2,children:`Email`}),(0,_.jsx)(g,{index:3,children:`Message`})]})]}),args:{children:void 0}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
2
2
  render: args => <Flex.Container {...args} style={demoStyles.container} />,
3
3
  args: {
4
4
  children: <>
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";import{n as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{n as c,t as l}from"./useFlexClasses-SgVG37Bb.js";function u({ref:e,children:t,className:n=``,as:i,style:o,inline:l,row:u,column:m,rowReverse:h,columnReverse:g,wrap:_,nowrap:v,wrapReverse:y,align:b,justify:x,alignContent:S,gap:C,gapRow:w,gapColumn:T,...E}){let{activeBreakpoint:D}=a(),O=(0,d.useMemo)(()=>r({inline:l,row:u,column:m,rowReverse:h,columnReverse:g,wrap:_,nowrap:v,wrapReverse:y,align:b,justify:x,alignContent:S,gap:C,gapRow:w,gapColumn:T},D,p),[D,b,S,m,g,C,T,w,l,x,v,u,h,_,y]),k=[c(O),n].filter(Boolean).join(` `);return(0,f.jsx)(s,{as:i,...E,ref:e,className:k,style:o,children:t})}var d,f,p;function m(){return(m=e((()=>{d=t(),i(),o(),l(),f=n(),p=[`inline`,`row`,`column`,`rowReverse`,`columnReverse`,`wrap`,`nowrap`,`wrapReverse`,`align`,`justify`,`alignContent`,`gap`,`gapRow`,`gapColumn`],u.displayName=`FlexContainer`,u.__docgenInfo={description:``,methods:[],displayName:`FlexContainer`,props:{inline:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:"Тип display `flex | inline-flex`"},row:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Направление flex-контейнера`},column:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},rowReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},columnReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},wrap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Перенос элементов`},nowrap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},wrapReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},align:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "baseline"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"baseline"`}]}],raw:`ResponsiveValue<FlexAlign>`},description:`Выравнивание по поперечной оси`},justify:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]}],raw:`ResponsiveValue<FlexJustify>`},description:`Выравнивание по главной оси`},alignContent:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]}],raw:`ResponsiveValue<FlexJustify>`},description:`Выравнивание контента`},gap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]}],raw:`ResponsiveValue<FlexGap>`},description:`Gap`},gapRow:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`Exclude`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},{name:`literal`,value:`"none"`}],raw:`Exclude<FlexGap, "none">`}],raw:`ResponsiveValue<Exclude<FlexGap, "none">>`},description:`Row gap`},gapColumn:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`Exclude`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},{name:`literal`,value:`"none"`}],raw:`Exclude<FlexGap, "none">`}],raw:`ResponsiveValue<Exclude<FlexGap, "none">>`},description:`Column gap`},children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:`Дочерние элементы`},className:{required:!1,tsType:{name:`string`},description:`CSS класс`,defaultValue:{value:`""`,computed:!1}},as:{required:!1,tsType:{name:`JSX.IntrinsicElements`},description:`HTML тег`},style:{required:!1,tsType:{name:`CSSProperties`},description:`Inline styles`},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``}},composes:[`HTMLAttributes`]}})))()}export{m as n,u as t};
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";import{n as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{n as c,t as l}from"./useFlexClasses-SgVG37Bb.js";function u({ref:e,children:t,className:n=``,as:i,style:o,inline:l,row:u,column:m,rowReverse:h,columnReverse:g,wrap:_,nowrap:v,wrapReverse:y,align:b,justify:x,alignContent:S,gap:C,gapRow:w,gapColumn:T,...E}){let{activeBreakpoint:D}=a(),O=(0,d.useMemo)(()=>r({inline:l,row:u,column:m,rowReverse:h,columnReverse:g,wrap:_,nowrap:v,wrapReverse:y,align:b,justify:x,alignContent:S,gap:C,gapRow:w,gapColumn:T},D,p),[D,b,S,m,g,C,T,w,l,x,v,u,h,_,y]),k=[c(O),n].filter(Boolean).join(` `);return(0,f.jsx)(s,{as:i,...E,ref:e,className:k,style:o,children:t})}var d,f,p;function m(){return(m=e((()=>{d=t(),i(),o(),l(),f=n(),p=[`inline`,`row`,`column`,`rowReverse`,`columnReverse`,`wrap`,`nowrap`,`wrapReverse`,`align`,`justify`,`alignContent`,`gap`,`gapRow`,`gapColumn`],u.displayName=`FlexContainer`,u.__docgenInfo={description:``,methods:[],displayName:`FlexContainer`,props:{inline:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:"Тип display `flex | inline-flex`"},row:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Направление flex-контейнера`},column:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},rowReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},columnReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},wrap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Перенос элементов`},nowrap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},wrapReverse:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:``},align:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "baseline"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"baseline"`}]}],raw:`ResponsiveValue<FlexAlign>`},description:`Выравнивание по поперечной оси`},justify:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]}],raw:`ResponsiveValue<FlexJustify>`},description:`Выравнивание по главной оси`},alignContent:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]}],raw:`ResponsiveValue<FlexJustify>`},description:`Выравнивание контента`},gap:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]}],raw:`ResponsiveValue<FlexGap>`},description:`Gap`},gapRow:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`Exclude`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},{name:`literal`,value:`"none"`}],raw:`Exclude<FlexGap, "none">`}],raw:`ResponsiveValue<Exclude<FlexGap, "none">>`},description:`Row gap`},gapColumn:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`Exclude`,elements:[{name:`union`,raw:`"none" | "xs" | "sm" | "md" | "lg" | "xl"`,elements:[{name:`literal`,value:`"none"`},{name:`literal`,value:`"xs"`},{name:`literal`,value:`"sm"`},{name:`literal`,value:`"md"`},{name:`literal`,value:`"lg"`},{name:`literal`,value:`"xl"`}]},{name:`literal`,value:`"none"`}],raw:`Exclude<FlexGap, "none">`}],raw:`ResponsiveValue<Exclude<FlexGap, "none">>`},description:`Column gap`},children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:`Дочерние элементы`},className:{required:!1,tsType:{name:`string`},description:`CSS класс`,defaultValue:{value:`""`,computed:!1}},as:{required:!1,tsType:{name:`JSX.IntrinsicElements`},description:`HTML тег`},style:{required:!1,tsType:{name:`CSSProperties`},description:`Inline styles`},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``}},composes:[`HTMLAttributes`]}})))()}export{m as n,u as t};
@@ -1,3 +1,3 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";import{n as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{r as c,t as l}from"./useFlexClasses-SgVG37Bb.js";function u({ref:e,children:t,className:n=``,as:i,style:o,flex0:l,flex1:u,grow:m,shrink:h,basis:g,alignSelf:_,justifySelf:v,...y}){let{activeBreakpoint:b}=a(),x=(0,d.useMemo)(()=>r({flex0:l,flex1:u,grow:m,shrink:h,basis:g,alignSelf:_,justifySelf:v},b,p),[b,_,g,l,u,m,v,h]),S=[c(x),n].filter(Boolean).join(` `);return(0,f.jsx)(s,{as:i,...y,ref:e,className:S,style:o,children:t})}var d,f,p;function m(){return(m=e((()=>{d=t(),i(),o(),l(),f=n(),p=[`flex0`,`flex1`,`grow`,`shrink`,`basis`,`alignSelf`,`justifySelf`],u.displayName=`FlexItem`,u.__docgenInfo={description:``,methods:[],displayName:`FlexItem`,props:{grow:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Способность расти
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";import{n as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{r as c,t as l}from"./useFlexClasses-SgVG37Bb.js";function u({ref:e,children:t,className:n=``,as:i,style:o,flex0:l,flex1:u,grow:m,shrink:h,basis:g,alignSelf:_,justifySelf:v,...y}){let{activeBreakpoint:b}=a(),x=(0,d.useMemo)(()=>r({flex0:l,flex1:u,grow:m,shrink:h,basis:g,alignSelf:_,justifySelf:v},b,p),[b,_,g,l,u,m,v,h]),S=[c(x),n].filter(Boolean).join(` `);return(0,f.jsx)(s,{as:i,...y,ref:e,className:S,style:o,children:t})}var d,f,p;function m(){return(m=e((()=>{d=t(),i(),o(),l(),f=n(),p=[`flex0`,`flex1`,`grow`,`shrink`,`basis`,`alignSelf`,`justifySelf`],u.displayName=`FlexItem`,u.__docgenInfo={description:``,methods:[],displayName:`FlexItem`,props:{grow:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Способность расти
2
2
  @default false = 0`},shrink:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Способность сжиматься
3
3
  @default true = 1`},flex0:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Использовать составной класс flex0`},flex1:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Использовать составной класс flex1`},basis:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"0" | "auto"`,elements:[{name:`literal`,value:`"0"`},{name:`literal`,value:`"auto"`}]}],raw:`ResponsiveValue<FlexBasis>`},description:`Базовый размер`},alignSelf:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "baseline"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"baseline"`}]}],raw:`ResponsiveValue<FlexAlign>`},description:`Выравнивание отдельного элемента`},justifySelf:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`Exclude`,elements:[{name:`union`,raw:`"start" | "center" | "end" | "stretch" | "between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"start"`},{name:`literal`,value:`"center"`},{name:`literal`,value:`"end"`},{name:`literal`,value:`"stretch"`},{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]},{name:`union`,raw:`"between" | "around" | "evenly"`,elements:[{name:`literal`,value:`"between"`},{name:`literal`,value:`"around"`},{name:`literal`,value:`"evenly"`}]}],raw:`Exclude<FlexJustify, "between" | "around" | "evenly">`}],raw:`ResponsiveValue<Exclude<FlexJustify, "between" | "around" | "evenly">>`},description:`Justify-self для grid-like выравнивания`},children:{required:!1,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:`Дочерние элементы`},className:{required:!1,tsType:{name:`string`},description:`CSS класс`,defaultValue:{value:`""`,computed:!1}},as:{required:!1,tsType:{name:`JSX.IntrinsicElements`},description:`HTML тег`},style:{required:!1,tsType:{name:`CSSProperties`},description:`Inline styles`},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLElement`}],raw:`Ref<HTMLElement>`},description:``}},composes:[`HTMLAttributes`]}})))()}export{m as n,u as t};
@@ -1 +1 @@
1
- import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-BhhO4T-j.js";import{t as i}from"./react-dom-BzEl8usk.js";import{a,i as o}from"./utils-tg3ibbzi.js";import{_ as s,a as c,c as l,f as u,h as d,i as f,l as p,m,o as h,r as g,s as _,u as v}from"./floating-ui.react-DkDKExQb.js";function y(e,t){if(!t?.arrow)return{};let{x:n,y:r}=t.arrow,i=e.split(`-`)[0],a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[i],o={top:`rotate(180deg)`,right:`rotate(-90deg)`,bottom:`rotate(0deg)`,left:`rotate(90deg)`}[i];return{pointerEvents:`none`,position:`absolute`,zIndex:-5,width:`16px`,height:`16px`,left:n==null?``:`${n}px`,top:r==null?``:`${r}px`,transform:o,[a]:`-16px`}}function b({ref:e,placement:t,middlewareData:n}){return(0,x.jsx)(`div`,{ref:e,style:y(t,n),children:(0,x.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`var(--border-2)`,stroke:`var(--border-2)`,strokeWidth:`var(--border-width)`,style:{display:`block`},children:(0,x.jsx)(`polygon`,{points:`8,8 16,16 0,16`})})})}var x;function S(){return(S=t((()=>{x=r(),b.__docgenInfo={description:``,methods:[],displayName:`FloatingArrow`,props:{placement:{required:!0,tsType:{name:`Placement`},description:``},middlewareData:{required:!0,tsType:{name:`MiddlewareData`},description:``},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLDivElement`}],raw:`Ref<HTMLDivElement>`},description:``}}}})))()}var C,w,T,E,D,O,k,A;function j(){return(j=t((()=>{C=`sZ0x6w`,w=`_538Ejd`,T=`fqciCO`,E=`sHkUiQ`,D=`bpGNoX`,O=`tYnRg-`,k=`_8lflEh`,A={tooltipPanel:C,tooltip:w,negative:T,information:E,error:D,warning:O,success:k}})))()}function M({content:e,children:t,openOnHover:n=!0,placement:r=`bottom`,openDelay:i=200,closeDelay:o=100,maxWidth:g,state:y,tooltip:x,positionUpdateKey:S}){let[C,w]=(0,N.useState)(!1),T=(0,N.useRef)(null),{refs:E,floatingStyles:D,middlewareData:O,context:k,placement:j,update:M}=c({open:C,onOpenChange:w,placement:r,middleware:[m(8),u({fallbackAxisSideDirection:`end`,fallbackPlacements:[`top`,`right`,`bottom`]}),d({padding:8}),v({element:T,padding:8})],whileElementsMounted:s});(0,N.useLayoutEffect)(()=>{C&&M()},[C,S,M]);let I=_(k,{enabled:n,move:!1,delay:{open:i,close:o}}),L=h(k,{enabled:n}),R=f(k),z=p(k,{role:`tooltip`}),{getReferenceProps:B,getFloatingProps:V}=l([I,L,R,z]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{ref:E.setReference,...B(),style:{lineHeight:1},children:t}),C&&(0,P.createPortal)((0,F.jsxs)(`div`,{ref:E.setFloating,style:{...D,zIndex:`var(--z-tooltip)`,maxWidth:g?`${g}em`:void 0},...V(),role:`tooltip`,className:a(A.tooltipPanel,x&&A.tooltip,y&&A[y]),children:[e,(0,F.jsx)(b,{ref:T,placement:j,middlewareData:O})]}),document.body)]})}var N,P,F;function I(){return(I=t((()=>{N=e(n(),1),g(),o(),P=i(),S(),j(),F=r(),M.__docgenInfo={description:``,methods:[],displayName:`FloatingPopover`,props:{content:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},openOnHover:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`true`,computed:!1}},placement:{required:!1,tsType:{name:`Placement`},description:``,defaultValue:{value:`"bottom"`,computed:!1}},openDelay:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`200`,computed:!1}},closeDelay:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`100`,computed:!1}},maxWidth:{required:!1,tsType:{name:`number`},description:``},state:{required:!1,tsType:{name:`union`,raw:`"information" | "error" | "warning" | "success" | "negative"`,elements:[{name:`literal`,value:`"information"`},{name:`literal`,value:`"error"`},{name:`literal`,value:`"warning"`},{name:`literal`,value:`"success"`},{name:`literal`,value:`"negative"`}]},description:``},tooltip:{required:!1,tsType:{name:`literal`,value:`true`},description:``},positionUpdateKey:{required:!1,tsType:{name:`unknown`},description:"Изменяется вместе с CSS-координатой trigger, когда её изменение не отслеживается `autoUpdate`.\nПосле commit React выполняется повторный расчёт позиции открытой floating-панели."}}}})))()}export{S as i,I as n,b as r,M as t};
1
+ import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-ltYEol2F.js";import{t as i}from"./react-dom-BzEl8usk.js";import{a,i as o}from"./utils-tg3ibbzi.js";import{_ as s,a as c,c as l,f as u,h as d,i as f,l as p,m,o as h,r as g,s as _,u as v}from"./floating-ui.react-cCWtY5RA.js";function y(e,t){if(!t?.arrow)return{};let{x:n,y:r}=t.arrow,i=e.split(`-`)[0],a={top:`bottom`,right:`left`,bottom:`top`,left:`right`}[i],o={top:`rotate(180deg)`,right:`rotate(-90deg)`,bottom:`rotate(0deg)`,left:`rotate(90deg)`}[i];return{pointerEvents:`none`,position:`absolute`,zIndex:-5,width:`16px`,height:`16px`,left:n==null?``:`${n}px`,top:r==null?``:`${r}px`,transform:o,[a]:`-16px`}}function b({ref:e,placement:t,middlewareData:n}){return(0,x.jsx)(`div`,{ref:e,style:y(t,n),children:(0,x.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`var(--border-2)`,stroke:`var(--border-2)`,strokeWidth:`var(--border-width)`,style:{display:`block`},children:(0,x.jsx)(`polygon`,{points:`8,8 16,16 0,16`})})})}var x;function S(){return(S=t((()=>{x=r(),b.__docgenInfo={description:``,methods:[],displayName:`FloatingArrow`,props:{placement:{required:!0,tsType:{name:`Placement`},description:``},middlewareData:{required:!0,tsType:{name:`MiddlewareData`},description:``},ref:{required:!1,tsType:{name:`Ref`,elements:[{name:`HTMLDivElement`}],raw:`Ref<HTMLDivElement>`},description:``}}}})))()}var C,w,T,E,D,O,k,A;function j(){return(j=t((()=>{C=`sZ0x6w`,w=`_538Ejd`,T=`fqciCO`,E=`sHkUiQ`,D=`bpGNoX`,O=`tYnRg-`,k=`_8lflEh`,A={tooltipPanel:C,tooltip:w,negative:T,information:E,error:D,warning:O,success:k}})))()}function M({content:e,children:t,openOnHover:n=!0,placement:r=`bottom`,openDelay:i=200,closeDelay:o=100,maxWidth:g,state:y,tooltip:x,positionUpdateKey:S}){let[C,w]=(0,N.useState)(!1),T=(0,N.useRef)(null),{refs:E,floatingStyles:D,middlewareData:O,context:k,placement:j,update:M}=c({open:C,onOpenChange:w,placement:r,middleware:[m(8),u({fallbackAxisSideDirection:`end`,fallbackPlacements:[`top`,`right`,`bottom`]}),d({padding:8}),v({element:T,padding:8})],whileElementsMounted:s});(0,N.useLayoutEffect)(()=>{C&&M()},[C,S,M]);let I=_(k,{enabled:n,move:!1,delay:{open:i,close:o}}),L=h(k,{enabled:n}),R=f(k),z=p(k,{role:`tooltip`}),{getReferenceProps:B,getFloatingProps:V}=l([I,L,R,z]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{ref:E.setReference,...B(),style:{lineHeight:1},children:t}),C&&(0,P.createPortal)((0,F.jsxs)(`div`,{ref:E.setFloating,style:{...D,zIndex:`var(--z-tooltip)`,maxWidth:g?`${g}em`:void 0},...V(),role:`tooltip`,className:a(A.tooltipPanel,x&&A.tooltip,y&&A[y]),children:[e,(0,F.jsx)(b,{ref:T,placement:j,middlewareData:O})]}),document.body)]})}var N,P,F;function I(){return(I=t((()=>{N=e(n(),1),g(),o(),P=i(),S(),j(),F=r(),M.__docgenInfo={description:``,methods:[],displayName:`FloatingPopover`,props:{content:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},openOnHover:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`true`,computed:!1}},placement:{required:!1,tsType:{name:`Placement`},description:``,defaultValue:{value:`"bottom"`,computed:!1}},openDelay:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`200`,computed:!1}},closeDelay:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`100`,computed:!1}},maxWidth:{required:!1,tsType:{name:`number`},description:``},state:{required:!1,tsType:{name:`union`,raw:`"information" | "error" | "warning" | "success" | "negative"`,elements:[{name:`literal`,value:`"information"`},{name:`literal`,value:`"error"`},{name:`literal`,value:`"warning"`},{name:`literal`,value:`"success"`},{name:`literal`,value:`"negative"`}]},description:``},tooltip:{required:!1,tsType:{name:`literal`,value:`true`},description:``},positionUpdateKey:{required:!1,tsType:{name:`unknown`},description:"Изменяется вместе с CSS-координатой trigger, когда её изменение не отслеживается `autoUpdate`.\nПосле commit React выполняется повторный расчёт позиции открытой floating-панели."}}}})))()}export{S as i,I as n,b as r,M as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./circle-alert-fSVH0sLX.js";import{n as i,t as a}from"./circle-check-HnZapKSX.js";import{i as o,n as s,r as c,t as l}from"./info-De9uqULy.js";import{n as u,r as d,t as f}from"./sortable-CNrgxywp.js";import{n as p}from"./iframe-BhhO4T-j.js";import{C as m,S as h,b as g,c as _,f as v,l as ee,m as te,p as ne,u as re,v as y,w as b,x as ie,y as ae}from"./odata-D0RLpe5w.js";import{a as x,i as S,n as oe}from"./utils-tg3ibbzi.js";import{a as C,i as se,t as w}from"./array-D-_yMMUK-DnJ_b27D.js";import{h as T,l as E,y as D}from"./formatters-DVE1YVNQ-YIdRxgw-.js";import{i as ce,n as le,r as ue,t as de}from"./NoData-DXZIMdxE.js";import{n as fe,t as pe}from"./GridContainer-DF2QluGb.js";import{c as O,m as k,n as me,o as A,p as he,r as j}from"./hooks-B4xUzofC.js";import{i as M,r as ge}from"./useTable-CK68Q4S4.js";import{n as N,t as _e}from"./Scrollable-12P7ZTKA.js";import{n as ve,t as ye}from"./ContextMenu-CDSgMiHk.js";import{At as P,Mt as F}from"./tableFeatures-Dx3U-F9E.js";var I,L,be,xe,Se,Ce,we,R;function Te(){return(Te=e((()=>{I=`UMTbLD`,L=`cz57Fx`,be=`oPzAxu`,xe=`MBu26r`,Se=`_03z-1l`,Ce=`_0RqsqJ`,we=`mXkUoM`,R={stateWrapper:I,status:L,information:be,success:xe,warning:Se,error:Ce,state:we}})))()}function Ee({state:e}){switch(e){case`error`:return(0,z.jsx)(De,{});case`warning`:return(0,z.jsx)(Oe,{});case`success`:return(0,z.jsx)(ke,{});case`information`:return(0,z.jsx)(Ae,{});default:return null}}function De(){return(0,z.jsx)(c,{className:x(R.state,R.error)})}function Oe(){return(0,z.jsx)(r,{className:x(R.state,R.warning)})}function ke(){return(0,z.jsx)(a,{className:x(R.state,R.success)})}function Ae(){return(0,z.jsx)(l,{className:x(R.state,R.information)})}var z;function je(){return(je=e((()=>{S(),n(),i(),o(),s(),Te(),z=p(),Ee.__docgenInfo={description:``,methods:[],displayName:`RenderStateIcon`,props:{state:{required:!1,tsType:{name:`State`},description:``}}},De.__docgenInfo={description:``,methods:[],displayName:`ErrorIcon`},Oe.__docgenInfo={description:``,methods:[],displayName:`WarningIcon`},ke.__docgenInfo={description:``,methods:[],displayName:`SuccessIcon`},Ae.__docgenInfo={description:``,methods:[],displayName:`InformationIcon`}})))()}var Me,Ne;function Pe(){return(Pe=e((()=>{Me=`YJUVjb`,Ne={resizeHandle:Me}})))()}function Fe(e,t){let n=e.closest(`th`)?.getBoundingClientRect().width;return m(typeof n==`number`&&Number.isFinite(n)?n:t,t)}function Ie({columnId:e,className:t,minWidth:n,keyboardStep:r=Re,ariaLabel:i=`Изменить ширину колонки`,getStartWidth:a,onResize:o,onResizeEnd:s,onReset:c}){let l=n??60,u=(0,B.useRef)(0),d=(0,B.useRef)(0),f=(0,B.useRef)(0),p=(0,B.useRef)(!1),h=(0,B.useRef)(!1),g=t=>{let n=a?.(e,t)??Fe(t,l);return m(n,l)},_=e=>{(e.button===0||e.pointerType!==`mouse`)&&(p.current=!0,h.current=!1,u.current=e.clientX,d.current=g(e.currentTarget),f.current=d.current,e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation())},v=t=>{if(!p.current)return;let n=m(d.current+t.clientX-u.current,l);f.current=n,h.current=!0,o(e,n),t.preventDefault(),t.stopPropagation()},ee=t=>{if(p.current){p.current=!1,h.current&&s?.(e,f.current);try{t.currentTarget.releasePointerCapture(t.pointerId)}catch{}t.preventDefault(),t.stopPropagation()}};return(0,Le.jsx)(`div`,{role:`separator`,"aria-label":i,"aria-orientation":`vertical`,tabIndex:0,onPointerDown:_,onPointerMove:v,onPointerUp:ee,onPointerCancel:ee,onKeyDown:t=>{if(t.key!==`ArrowLeft`&&t.key!==`ArrowRight`&&t.key!==`Home`)return;if(t.preventDefault(),t.stopPropagation(),t.key===`Home`){c?.(e);return}let n=t.key===`ArrowRight`?1:-1,i=g(t.currentTarget),a=m(i+n*r,l);o(e,a),s?.(e,a)},onDoubleClick:t=>{t.preventDefault(),t.stopPropagation(),c?.(e)},className:x(Ne.resizeHandle,t)})}var B,Le,Re;function ze(){return(ze=e((()=>{B=t(),g(),S(),Pe(),Le=p(),Re=8,Ie.__docgenInfo={description:``,methods:[],displayName:`TableColumnResizeHandle`,props:{columnId:{required:!0,tsType:{name:`string`},description:``},className:{required:!1,tsType:{name:`string`},description:``},minWidth:{required:!1,tsType:{name:`number`},description:``},keyboardStep:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`8`,computed:!1}},ariaLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Изменить ширину колонки"`,computed:!1}},getStartWidth:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, element: HTMLElement) => number`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`HTMLElement`},name:`element`}],return:{name:`number`}}},description:``},onResize:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, width: number) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`number`},name:`width`}],return:{name:`void`}}},description:``},onResizeEnd:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, width: number) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`number`},name:`width`}],return:{name:`void`}}},description:``},onReset:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`}],return:{name:`void`}}},description:``}}}})))()}function Be(e,t){return typeof e==`function`?e(t):e}function Ve({columnId:e,children:t,dragDisabled:n=!1,draggingClassName:r,resizeHandle:i,className:a,style:o,...s}){let{attributes:c,listeners:l,setActivatorNodeRef:u,setNodeRef:d,transform:f,isDragging:p,rect:m}=O({id:e,disabled:n}),h=p?m.current?.width:void 0,g={transform:he.Translate.toString(f),zIndex:p?`calc(var(--z-header) + 1)`:void 0,...h?{width:h,minWidth:h}:{},...o},_={attributes:c,listeners:l,setActivatorElement:u,disabled:n,isDragging:p};return(0,V.jsxs)(`th`,{...s,ref:d,className:x(a,p&&r),style:g,children:[Be(t,_),i?(0,V.jsx)(Ie,{...i}):null]})}var V;function He(){return(He=e((()=>{A(),k(),S(),ze(),V=p(),Ve.__docgenInfo={description:``,methods:[],displayName:`TableHeaderInteractionCell`,props:{columnId:{required:!0,tsType:{name:`UniqueIdentifier`},description:``},children:{required:!0,tsType:{name:`union`,raw:`ReactNode | ((dragState: TableHeaderCellDragState) => ReactNode)`,elements:[{name:`ReactNode`},{name:`unknown`}]},description:``},dragDisabled:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},draggingClassName:{required:!1,tsType:{name:`string`},description:``},resizeHandle:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./circle-alert-C9sxb8DT.js";import{n as i,t as a}from"./circle-check-BLrYJ_8h.js";import{i as o,n as s,r as c,t as l}from"./info-CBSXRv7d.js";import{n as u,r as d,t as f}from"./sortable-BelHSus7.js";import{n as p}from"./iframe-ltYEol2F.js";import{C as m,S as h,b as g,c as _,f as v,l as ee,m as te,p as ne,u as re,v as y,w as b,x as ie,y as ae}from"./odata-Dd_3_5NS.js";import{a as x,i as S,n as oe}from"./utils-tg3ibbzi.js";import{a as C,i as se,t as w}from"./array-D-_yMMUK-DnJ_b27D.js";import{h as T,l as E,y as D}from"./formatters-DVE1YVNQ-YIdRxgw-.js";import{i as ce,n as le,r as ue,t as de}from"./NoData-Bvl_1jH4.js";import{n as fe,t as pe}from"./GridContainer-DfZnU_h-.js";import{c as O,m as k,n as me,o as A,p as he,r as j}from"./hooks-XqeLihmr.js";import{i as M,r as ge}from"./useTable-CK68Q4S4.js";import{n as N,t as _e}from"./Scrollable-DtB02dAG.js";import{n as ve,t as ye}from"./ContextMenu-DqLKk-wW.js";import{At as P,Mt as F}from"./tableFeatures-Dx3U-F9E.js";var I,L,be,xe,Se,Ce,we,R;function Te(){return(Te=e((()=>{I=`UMTbLD`,L=`cz57Fx`,be=`oPzAxu`,xe=`MBu26r`,Se=`_03z-1l`,Ce=`_0RqsqJ`,we=`mXkUoM`,R={stateWrapper:I,status:L,information:be,success:xe,warning:Se,error:Ce,state:we}})))()}function Ee({state:e}){switch(e){case`error`:return(0,z.jsx)(De,{});case`warning`:return(0,z.jsx)(Oe,{});case`success`:return(0,z.jsx)(ke,{});case`information`:return(0,z.jsx)(Ae,{});default:return null}}function De(){return(0,z.jsx)(c,{className:x(R.state,R.error)})}function Oe(){return(0,z.jsx)(r,{className:x(R.state,R.warning)})}function ke(){return(0,z.jsx)(a,{className:x(R.state,R.success)})}function Ae(){return(0,z.jsx)(l,{className:x(R.state,R.information)})}var z;function je(){return(je=e((()=>{S(),n(),i(),o(),s(),Te(),z=p(),Ee.__docgenInfo={description:``,methods:[],displayName:`RenderStateIcon`,props:{state:{required:!1,tsType:{name:`State`},description:``}}},De.__docgenInfo={description:``,methods:[],displayName:`ErrorIcon`},Oe.__docgenInfo={description:``,methods:[],displayName:`WarningIcon`},ke.__docgenInfo={description:``,methods:[],displayName:`SuccessIcon`},Ae.__docgenInfo={description:``,methods:[],displayName:`InformationIcon`}})))()}var Me,Ne;function Pe(){return(Pe=e((()=>{Me=`YJUVjb`,Ne={resizeHandle:Me}})))()}function Fe(e,t){let n=e.closest(`th`)?.getBoundingClientRect().width;return m(typeof n==`number`&&Number.isFinite(n)?n:t,t)}function Ie({columnId:e,className:t,minWidth:n,keyboardStep:r=Re,ariaLabel:i=`Изменить ширину колонки`,getStartWidth:a,onResize:o,onResizeEnd:s,onReset:c}){let l=n??60,u=(0,B.useRef)(0),d=(0,B.useRef)(0),f=(0,B.useRef)(0),p=(0,B.useRef)(!1),h=(0,B.useRef)(!1),g=t=>{let n=a?.(e,t)??Fe(t,l);return m(n,l)},_=e=>{(e.button===0||e.pointerType!==`mouse`)&&(p.current=!0,h.current=!1,u.current=e.clientX,d.current=g(e.currentTarget),f.current=d.current,e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation())},v=t=>{if(!p.current)return;let n=m(d.current+t.clientX-u.current,l);f.current=n,h.current=!0,o(e,n),t.preventDefault(),t.stopPropagation()},ee=t=>{if(p.current){p.current=!1,h.current&&s?.(e,f.current);try{t.currentTarget.releasePointerCapture(t.pointerId)}catch{}t.preventDefault(),t.stopPropagation()}};return(0,Le.jsx)(`div`,{role:`separator`,"aria-label":i,"aria-orientation":`vertical`,tabIndex:0,onPointerDown:_,onPointerMove:v,onPointerUp:ee,onPointerCancel:ee,onKeyDown:t=>{if(t.key!==`ArrowLeft`&&t.key!==`ArrowRight`&&t.key!==`Home`)return;if(t.preventDefault(),t.stopPropagation(),t.key===`Home`){c?.(e);return}let n=t.key===`ArrowRight`?1:-1,i=g(t.currentTarget),a=m(i+n*r,l);o(e,a),s?.(e,a)},onDoubleClick:t=>{t.preventDefault(),t.stopPropagation(),c?.(e)},className:x(Ne.resizeHandle,t)})}var B,Le,Re;function ze(){return(ze=e((()=>{B=t(),g(),S(),Pe(),Le=p(),Re=8,Ie.__docgenInfo={description:``,methods:[],displayName:`TableColumnResizeHandle`,props:{columnId:{required:!0,tsType:{name:`string`},description:``},className:{required:!1,tsType:{name:`string`},description:``},minWidth:{required:!1,tsType:{name:`number`},description:``},keyboardStep:{required:!1,tsType:{name:`number`},description:``,defaultValue:{value:`8`,computed:!1}},ariaLabel:{required:!1,tsType:{name:`string`},description:``,defaultValue:{value:`"Изменить ширину колонки"`,computed:!1}},getStartWidth:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, element: HTMLElement) => number`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`HTMLElement`},name:`element`}],return:{name:`number`}}},description:``},onResize:{required:!0,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, width: number) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`number`},name:`width`}],return:{name:`void`}}},description:``},onResizeEnd:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string, width: number) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`},{type:{name:`number`},name:`width`}],return:{name:`void`}}},description:``},onReset:{required:!1,tsType:{name:`signature`,type:`function`,raw:`(columnId: string) => void`,signature:{arguments:[{type:{name:`string`},name:`columnId`}],return:{name:`void`}}},description:``}}}})))()}function Be(e,t){return typeof e==`function`?e(t):e}function Ve({columnId:e,children:t,dragDisabled:n=!1,draggingClassName:r,resizeHandle:i,className:a,style:o,...s}){let{attributes:c,listeners:l,setActivatorNodeRef:u,setNodeRef:d,transform:f,isDragging:p,rect:m}=O({id:e,disabled:n}),h=p?m.current?.width:void 0,g={transform:he.Translate.toString(f),zIndex:p?`calc(var(--z-header) + 1)`:void 0,...h?{width:h,minWidth:h}:{},...o},_={attributes:c,listeners:l,setActivatorElement:u,disabled:n,isDragging:p};return(0,V.jsxs)(`th`,{...s,ref:d,className:x(a,p&&r),style:g,children:[Be(t,_),i?(0,V.jsx)(Ie,{...i}):null]})}var V;function He(){return(He=e((()=>{A(),k(),S(),ze(),V=p(),Ve.__docgenInfo={description:``,methods:[],displayName:`TableHeaderInteractionCell`,props:{columnId:{required:!0,tsType:{name:`UniqueIdentifier`},description:``},children:{required:!0,tsType:{name:`union`,raw:`ReactNode | ((dragState: TableHeaderCellDragState) => ReactNode)`,elements:[{name:`ReactNode`},{name:`unknown`}]},description:``},dragDisabled:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},draggingClassName:{required:!1,tsType:{name:`string`},description:``},resizeHandle:{required:!1,tsType:{name:`signature`,type:`object`,raw:`{
2
2
  columnId: string;
3
3
  className?: string;
4
4
  minWidth?: number;
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BhhO4T-j.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-l-Hapy_a.js";import{a as p,c as m,d as h,f as g,i as _,l as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T}from"./Grid.stories-DOnfFyZS.js";function E(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{of:C,parameters:{docs:{toc:!0}}}),`
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-ltYEol2F.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-Bdsl8TP-.js";import{a as p,c as m,d as h,f as g,i as _,l as v,n as y,o as b,p as x,r as S,s as C,t as w,u as T}from"./Grid.stories-CsohhjMJ.js";function E(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{of:C,parameters:{docs:{toc:!0}}}),`
2
2
  `,(0,O.jsx)(u,{children:`Grid`}),`
3
3
  `,(0,O.jsx)(o,{children:`Композиция для построения grid-раскладок с управлением колонками, строками и позиционированием элементов`}),`
4
4
  `,(0,O.jsx)(t.p,{children:`Grid уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";import{i as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{a as c,i as l,n as u,r as d,t as f}from"./GridContainer-DF2QluGb.js";function p({ref:e,children:t,className:n=``,as:i,style:o,area:u,column:d,row:f,alignSelf:p,justifySelf:g,..._}){let{activeBreakpoint:v}=a(),y=(0,m.useMemo)(()=>({alignSelf:r(p,v),justifySelf:r(g,v)}),[v,p,g]),b=(0,m.useMemo)(()=>({area:r(u,v),column:r(d,v),row:r(f,v)}),[v,u,d,f]),x=l(y),S=c(b),C=[x,n].filter(Boolean).join(` `),w={...S,...o};return(0,h.jsx)(s,{as:i,..._,ref:e,className:C,style:w,children:t})}var m,h;function g(){return(g=e((()=>{m=t(),i(),o(),d(),h=n(),p.displayName=`GridItem`,p.__docgenInfo={description:``,methods:[],displayName:`GridItem`,props:{area:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`string`}],raw:`ResponsiveValue<string>`},description:`Именованная область для размещения элемента
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";import{i as r,r as i,t as a}from"./media-D9cE2tzi.js";import{n as o,t as s}from"./PolymorphicComponent-NBvIz9JD.js";import{a as c,i as l,n as u,r as d,t as f}from"./GridContainer-DfZnU_h-.js";function p({ref:e,children:t,className:n=``,as:i,style:o,area:u,column:d,row:f,alignSelf:p,justifySelf:g,..._}){let{activeBreakpoint:v}=a(),y=(0,m.useMemo)(()=>({alignSelf:r(p,v),justifySelf:r(g,v)}),[v,p,g]),b=(0,m.useMemo)(()=>({area:r(u,v),column:r(d,v),row:r(f,v)}),[v,u,d,f]),x=l(y),S=c(b),C=[x,n].filter(Boolean).join(` `),w={...S,...o};return(0,h.jsx)(s,{as:i,..._,ref:e,className:C,style:w,children:t})}var m,h;function g(){return(g=e((()=>{m=t(),i(),o(),d(),h=n(),p.displayName=`GridItem`,p.__docgenInfo={description:``,methods:[],displayName:`GridItem`,props:{area:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`string`}],raw:`ResponsiveValue<string>`},description:`Именованная область для размещения элемента
2
2
 
3
3
  Связывает элемент с областью объявленной в GridContainer areas.
4
4
  Самый простой способ позиционирования в сложных макетах.
@@ -1,4 +1,4 @@
1
- import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-BhhO4T-j.js";import{n as i,t as a}from"./Grid-DtOdlaGa.js";var o=t({Alignment:()=>h,AutoFlow:()=>m,BasicGrid:()=>p,ComplexTemplates:()=>v,Gaps:()=>g,GridAreas:()=>y,InlineGrid:()=>x,ItemPlacement:()=>b,PredefinedVariants:()=>_,RealWorld:()=>S,Responsive:()=>C,__namedExportsOrder:()=>w,default:()=>f});function s({children:e,index:t=0,style:n}){return(0,c.jsx)(a.Item,{style:{...u.item,backgroundColor:d(t),...n},children:e})}var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(){return(T=e((()=>{n(),i(),c=r(),{useArgs:l}=__STORYBOOK_MODULE_PREVIEW_API__,u={container:{border:`2px dashed var(--border-0)`,padding:`2em`,marginBlock:`1em`},item:{textAlign:`center`,fontWeight:`bold`,color:`white`,minHeight:`5em`,minWidth:`10em`,display:`flex`,alignItems:`center`,justifyContent:`center`},itemColors:[`#ff6b6b`,`#4ecdc4`,`#45b7d1`,`#96ceb4`,`#feca57`,`#ff9ff3`,`#54a0ff`,`#5f27cd`]},d=e=>u.itemColors[e%u.itemColors.length],f={title:`Layout/Grid`,component:a.Container,args:{gap:`md`},parameters:{layout:`padded`},decorators:[e=>{let[t]=l();return(0,c.jsx)(e,{args:t})}],argTypes:{inline:{description:`Использует inline-grid вместо grid.`,control:`boolean`},row:{description:`Автоматически размещает элементы по строкам.`,control:`boolean`},column:{description:`Автоматически размещает элементы по колонкам.`,control:`boolean`},dense:{description:`Заполняет свободные ячейки плотным auto-flow.`,control:`boolean`},gap:{description:`Общий интервал между ячейками.`,control:`select`,options:[`none`,`xs`,`sm`,`md`,`lg`,`xl`]},gapRow:{description:`Интервал между строками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},gapColumn:{description:`Интервал между колонками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},align:{description:`Выравнивание содержимого ячеек по вертикали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`baseline`]},justify:{description:`Выравнивание содержимого ячеек по горизонтали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`]},alignContent:{description:`Распределение всей сетки по вертикали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},justifyContent:{description:`Распределение всей сетки по горизонтали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},templateColumns:{description:`Шаблон колонок CSS Grid.`,control:`text`},templateRows:{description:`Шаблон строк CSS Grid.`,control:`text`},autoColumns:{description:`Размер автоматически созданных колонок.`,control:`text`},autoRows:{description:`Размер автоматически созданных строк.`,control:`text`},areas:{description:`Именованные области grid-template-areas.`,control:`text`},variant:{description:`Готовый вариант раскладки.`,control:`select`,options:[`single-column`,`auto-1fr`,`auto1fr-rows-auto`]},as:{description:`Семантический HTML-тег контейнера.`,control:`select`,options:[`div`,`section`,`main`,`nav`,`ul`]},children:{description:`Содержимое grid-контейнера.`,control:!1}}},p={render:({children:e,...t})=>(0,c.jsx)(a.Container,{...t,templateColumns:`1fr 1fr 1fr`,style:u.container,children:e}),args:{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]})}},m={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Row (default)`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 100px)`,templateRows:`repeat(2, 60px)`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]}),(0,c.jsx)(`h3`,{children:`Column`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(2, 100px)`,templateRows:`repeat(3, 60px)`,column:!0,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]}),(0,c.jsx)(`h3`,{children:`Dense`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(4, 80px)`,templateRows:`repeat(3, 60px)`,dense:!0,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{gridColumn:`span 2`},children:`Span 2`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,style:{gridRow:`span 2`},children:`Span 2`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`}),(0,c.jsx)(s,{index:6,children:`7`})]})]}),args:{children:void 0}},h={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{style:{marginBlock:`1em`},children:`Align Items`}),[`start`,`center`,`end`,`stretch`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h4`,{children:e}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 1fr)`,align:e,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{height:e===`stretch`?`auto`:`5em`},children:`Short`}),(0,c.jsx)(s,{index:1,style:{height:e===`stretch`?`auto`:`10em`},children:`Tall`}),(0,c.jsx)(s,{index:2,style:{height:e===`stretch`?`auto`:`8em`},children:`Medium`})]})]},e)),(0,c.jsx)(`h3`,{style:{marginBlock:`1em`},children:`Justify Items`}),[`start`,`center`,`end`,`stretch`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h4`,{children:e}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 20em)`,justify:e,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`}),(0,c.jsx)(s,{index:1,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`}),(0,c.jsx)(s,{index:2,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`})]})]},e))]}),args:{children:void 0}},g={render:()=>(0,c.jsxs)(`div`,{children:[[`xs`,`sm`,`md`,`lg`,`xl`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`h3`,{children:[`Gap: `,e]}),(0,c.jsx)(a.Container,{templateColumns:`repeat(3, 1fr)`,gap:e,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Item `,e]},e))})]},e)),(0,c.jsx)(`h3`,{children:`Different Row and Column Gaps`}),(0,c.jsx)(a.Container,{templateColumns:`repeat(3, 1fr)`,gapRow:`lg`,gapColumn:`sm`,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},_={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Single Column (grid-template-columns: 100%; grid-auto-rows: auto 1fr)`}),(0,c.jsxs)(a.Container,{variant:`single-column`,style:{...u.container,height:`200px`},children:[(0,c.jsx)(s,{index:0,children:`Header (auto)`}),(0,c.jsx)(s,{index:1,children:`Content (1fr)`})]}),(0,c.jsx)(`h3`,{children:`Auto 1fr Rows (grid-auto-rows: 1fr)`}),(0,c.jsxs)(a.Container,{variant:`auto-1fr`,templateColumns:`1fr 1fr`,style:{...u.container,height:`150px`},children:[(0,c.jsx)(s,{index:0,children:`Equal`}),(0,c.jsx)(s,{index:1,children:`Height`})]}),(0,c.jsx)(`h3`,{children:`Auto 1fr Columns (grid-template-columns: auto 1fr; grid-auto-rows: auto)`}),(0,c.jsxs)(a.Container,{variant:`auto1fr-rows-auto`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`Label`}),(0,c.jsx)(s,{index:1,children:`Content that takes remaining space`}),(0,c.jsx)(s,{index:2,children:`Another`}),(0,c.jsx)(s,{index:3,children:`More content here`})]})]}),args:{children:void 0}},v={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Auto-fit with Minmax`}),(0,c.jsx)(a.Container,{templateColumns:`repeat(auto-fit, minmax(150px, 1fr))`,gap:`md`,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Card `,e]},e))}),(0,c.jsx)(`h3`,{children:`Fixed and Flexible Columns`}),(0,c.jsxs)(a.Container,{templateColumns:`200px 1fr 100px`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`Sidebar`}),(0,c.jsx)(s,{index:1,children:`Main Content`}),(0,c.jsx)(s,{index:2,children:`Tools`})]}),(0,c.jsx)(`h3`,{children:`Masonry-like Layout`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(4, 1fr)`,autoRows:`100px`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{gridRow:`span 2`},children:`Tall`}),(0,c.jsx)(s,{index:1,children:`Normal`}),(0,c.jsx)(s,{index:2,children:`Normal`}),(0,c.jsx)(s,{index:3,style:{gridRow:`span 3`},children:`Very Tall`}),(0,c.jsx)(s,{index:4,children:`Normal`}),(0,c.jsx)(s,{index:5,style:{gridRow:`span 2`},children:`Tall`}),(0,c.jsx)(s,{index:6,children:`Normal`}),(0,c.jsx)(s,{index:7,children:`Normal`})]})]}),args:{children:void 0}},y={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Basic Layout with Areas`}),(0,c.jsxs)(a.Container,{areas:`
1
+ import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-ltYEol2F.js";import{n as i,t as a}from"./Grid-CUmJniwF.js";var o=t({Alignment:()=>h,AutoFlow:()=>m,BasicGrid:()=>p,ComplexTemplates:()=>v,Gaps:()=>g,GridAreas:()=>y,InlineGrid:()=>x,ItemPlacement:()=>b,PredefinedVariants:()=>_,RealWorld:()=>S,Responsive:()=>C,__namedExportsOrder:()=>w,default:()=>f});function s({children:e,index:t=0,style:n}){return(0,c.jsx)(a.Item,{style:{...u.item,backgroundColor:d(t),...n},children:e})}var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(){return(T=e((()=>{n(),i(),c=r(),{useArgs:l}=__STORYBOOK_MODULE_PREVIEW_API__,u={container:{border:`2px dashed var(--border-0)`,padding:`2em`,marginBlock:`1em`},item:{textAlign:`center`,fontWeight:`bold`,color:`white`,minHeight:`5em`,minWidth:`10em`,display:`flex`,alignItems:`center`,justifyContent:`center`},itemColors:[`#ff6b6b`,`#4ecdc4`,`#45b7d1`,`#96ceb4`,`#feca57`,`#ff9ff3`,`#54a0ff`,`#5f27cd`]},d=e=>u.itemColors[e%u.itemColors.length],f={title:`Layout/Grid`,component:a.Container,args:{gap:`md`},parameters:{layout:`padded`},decorators:[e=>{let[t]=l();return(0,c.jsx)(e,{args:t})}],argTypes:{inline:{description:`Использует inline-grid вместо grid.`,control:`boolean`},row:{description:`Автоматически размещает элементы по строкам.`,control:`boolean`},column:{description:`Автоматически размещает элементы по колонкам.`,control:`boolean`},dense:{description:`Заполняет свободные ячейки плотным auto-flow.`,control:`boolean`},gap:{description:`Общий интервал между ячейками.`,control:`select`,options:[`none`,`xs`,`sm`,`md`,`lg`,`xl`]},gapRow:{description:`Интервал между строками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},gapColumn:{description:`Интервал между колонками.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},align:{description:`Выравнивание содержимого ячеек по вертикали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`baseline`]},justify:{description:`Выравнивание содержимого ячеек по горизонтали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`]},alignContent:{description:`Распределение всей сетки по вертикали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},justifyContent:{description:`Распределение всей сетки по горизонтали.`,control:`select`,options:[`start`,`center`,`end`,`stretch`,`between`,`around`,`evenly`]},templateColumns:{description:`Шаблон колонок CSS Grid.`,control:`text`},templateRows:{description:`Шаблон строк CSS Grid.`,control:`text`},autoColumns:{description:`Размер автоматически созданных колонок.`,control:`text`},autoRows:{description:`Размер автоматически созданных строк.`,control:`text`},areas:{description:`Именованные области grid-template-areas.`,control:`text`},variant:{description:`Готовый вариант раскладки.`,control:`select`,options:[`single-column`,`auto-1fr`,`auto1fr-rows-auto`]},as:{description:`Семантический HTML-тег контейнера.`,control:`select`,options:[`div`,`section`,`main`,`nav`,`ul`]},children:{description:`Содержимое grid-контейнера.`,control:!1}}},p={render:({children:e,...t})=>(0,c.jsx)(a.Container,{...t,templateColumns:`1fr 1fr 1fr`,style:u.container,children:e}),args:{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]})}},m={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Row (default)`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 100px)`,templateRows:`repeat(2, 60px)`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]}),(0,c.jsx)(`h3`,{children:`Column`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(2, 100px)`,templateRows:`repeat(3, 60px)`,column:!0,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`1`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,children:`3`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`})]}),(0,c.jsx)(`h3`,{children:`Dense`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(4, 80px)`,templateRows:`repeat(3, 60px)`,dense:!0,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{gridColumn:`span 2`},children:`Span 2`}),(0,c.jsx)(s,{index:1,children:`2`}),(0,c.jsx)(s,{index:2,style:{gridRow:`span 2`},children:`Span 2`}),(0,c.jsx)(s,{index:3,children:`4`}),(0,c.jsx)(s,{index:4,children:`5`}),(0,c.jsx)(s,{index:5,children:`6`}),(0,c.jsx)(s,{index:6,children:`7`})]})]}),args:{children:void 0}},h={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{style:{marginBlock:`1em`},children:`Align Items`}),[`start`,`center`,`end`,`stretch`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h4`,{children:e}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 1fr)`,align:e,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{height:e===`stretch`?`auto`:`5em`},children:`Short`}),(0,c.jsx)(s,{index:1,style:{height:e===`stretch`?`auto`:`10em`},children:`Tall`}),(0,c.jsx)(s,{index:2,style:{height:e===`stretch`?`auto`:`8em`},children:`Medium`})]})]},e)),(0,c.jsx)(`h3`,{style:{marginBlock:`1em`},children:`Justify Items`}),[`start`,`center`,`end`,`stretch`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h4`,{children:e}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(3, 20em)`,justify:e,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`}),(0,c.jsx)(s,{index:1,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`}),(0,c.jsx)(s,{index:2,style:{width:e===`stretch`?`auto`:`10em`},children:`Item`})]})]},e))]}),args:{children:void 0}},g={render:()=>(0,c.jsxs)(`div`,{children:[[`xs`,`sm`,`md`,`lg`,`xl`].map(e=>(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`h3`,{children:[`Gap: `,e]}),(0,c.jsx)(a.Container,{templateColumns:`repeat(3, 1fr)`,gap:e,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Item `,e]},e))})]},e)),(0,c.jsx)(`h3`,{children:`Different Row and Column Gaps`}),(0,c.jsx)(a.Container,{templateColumns:`repeat(3, 1fr)`,gapRow:`lg`,gapColumn:`sm`,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Item `,e]},e))})]}),args:{children:void 0}},_={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Single Column (grid-template-columns: 100%; grid-auto-rows: auto 1fr)`}),(0,c.jsxs)(a.Container,{variant:`single-column`,style:{...u.container,height:`200px`},children:[(0,c.jsx)(s,{index:0,children:`Header (auto)`}),(0,c.jsx)(s,{index:1,children:`Content (1fr)`})]}),(0,c.jsx)(`h3`,{children:`Auto 1fr Rows (grid-auto-rows: 1fr)`}),(0,c.jsxs)(a.Container,{variant:`auto-1fr`,templateColumns:`1fr 1fr`,style:{...u.container,height:`150px`},children:[(0,c.jsx)(s,{index:0,children:`Equal`}),(0,c.jsx)(s,{index:1,children:`Height`})]}),(0,c.jsx)(`h3`,{children:`Auto 1fr Columns (grid-template-columns: auto 1fr; grid-auto-rows: auto)`}),(0,c.jsxs)(a.Container,{variant:`auto1fr-rows-auto`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`Label`}),(0,c.jsx)(s,{index:1,children:`Content that takes remaining space`}),(0,c.jsx)(s,{index:2,children:`Another`}),(0,c.jsx)(s,{index:3,children:`More content here`})]})]}),args:{children:void 0}},v={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Auto-fit with Minmax`}),(0,c.jsx)(a.Container,{templateColumns:`repeat(auto-fit, minmax(150px, 1fr))`,gap:`md`,style:u.container,children:[1,2,3,4,5,6].map(e=>(0,c.jsxs)(s,{index:e,children:[`Card `,e]},e))}),(0,c.jsx)(`h3`,{children:`Fixed and Flexible Columns`}),(0,c.jsxs)(a.Container,{templateColumns:`200px 1fr 100px`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,children:`Sidebar`}),(0,c.jsx)(s,{index:1,children:`Main Content`}),(0,c.jsx)(s,{index:2,children:`Tools`})]}),(0,c.jsx)(`h3`,{children:`Masonry-like Layout`}),(0,c.jsxs)(a.Container,{templateColumns:`repeat(4, 1fr)`,autoRows:`100px`,gap:`sm`,style:u.container,children:[(0,c.jsx)(s,{index:0,style:{gridRow:`span 2`},children:`Tall`}),(0,c.jsx)(s,{index:1,children:`Normal`}),(0,c.jsx)(s,{index:2,children:`Normal`}),(0,c.jsx)(s,{index:3,style:{gridRow:`span 3`},children:`Very Tall`}),(0,c.jsx)(s,{index:4,children:`Normal`}),(0,c.jsx)(s,{index:5,style:{gridRow:`span 2`},children:`Tall`}),(0,c.jsx)(s,{index:6,children:`Normal`}),(0,c.jsx)(s,{index:7,children:`Normal`})]})]}),args:{children:void 0}},y={render:()=>(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h3`,{children:`Basic Layout with Areas`}),(0,c.jsxs)(a.Container,{areas:`
2
2
  "header header"
3
3
  "nav main"
4
4
  "footer footer"
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";import{i as r,r as ee,t as te}from"./media-D9cE2tzi.js";import{n as ne,t as re}from"./PolymorphicComponent-NBvIz9JD.js";var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,ie,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,Y;function _e(){return(_e=e((()=>{i=`_5Z2YQF`,a=`gAEXju`,o=`KdmGbk`,s=`uOpH1m`,c=`EOUgpE`,l=`PoMD0P`,u=`FBebhA`,d=`rwvhfS`,f=`ZIsGgj`,p=`lbAie9`,m=`ylmmN3`,h=`Fg86QU`,g=`_3qWtbZ`,_=`gIXZ8P`,v=`xXxHZM`,y=`zRgpft`,b=`Fb1W2U`,x=`_2EojT9`,S=`gYCGa5`,C=`JN0CZr`,w=`_2QvtUb`,T=`_1kRriS`,E=`ocLWZU`,D=`TS1qri`,O=`FXfvI7`,ie=`biKmzi`,k=`_4-sIS7`,A=`lbdoyi`,j=`WvAC9I`,M=`LN4Ak-`,N=`XC0FuJ`,P=`_6b9wZI`,F=`KevE4M`,I=`Sn-je4`,L=`Wnx9iF`,R=`RAoqm2`,z=`nUjbmv`,B=`TjTsA7`,V=`VdpzYk`,H=`peszxb`,U=`E98bqx`,W=`CdaBbu`,G=`leVL0N`,K=`_6mOZVj`,q=`XHgjM3`,J=`wtrn5A`,ae=`LkIh-N`,oe=`Vhdvpo`,se=`cyg2du`,ce=`Ptd1ad`,le=`Z22Yty`,ue=`gycEgN`,de=`s69iy2`,fe=`pKEJ9k`,pe=`qWkZVw`,me=`gUbUDY`,he=`S0HulN`,ge=`K2fFKT`,Y={grid:i,inline:a,row:o,column:s,dense:c,gapNone:l,gapRowXs:u,gapRowSm:d,gapRowMd:f,gapRowLg:p,gapRowXl:m,gapColumnXs:h,gapColumnSm:g,gapColumnMd:_,gapColumnLg:v,gapColumnXl:y,gapXs:b,gapSm:x,gapMd:S,gapLg:C,gapXl:w,alignStart:T,alignCenter:E,alignEnd:D,alignStretch:O,alignBaseline:ie,justifyStart:k,justifyCenter:A,justifyEnd:j,justifyStretch:M,alignContentStart:N,alignContentCenter:P,alignContentEnd:F,alignContentStretch:I,alignContentBetween:L,alignContentAround:R,alignContentEvenly:z,justifyContentStart:B,justifyContentCenter:V,justifyContentEnd:H,justifyContentStretch:U,justifyContentBetween:W,justifyContentAround:G,justifyContentEvenly:K,item:q,areaAuto:J,alignSelfStart:ae,alignSelfCenter:oe,alignSelfEnd:se,alignSelfStretch:ce,alignSelfBaseline:le,justifySelfStart:ue,justifySelfCenter:de,justifySelfEnd:fe,justifySelfStretch:pe,autoRows1fr:me,columnsAuto1fr:he,singleColumn:ge}})))()}var X,ve,ye,be,xe;function Z(){return(Z=e((()=>{X=t(),_e(),ve=e=>(0,X.useMemo)(()=>{let t=[Y.grid];return e.inline&&t.push(Y.inline),e.column?t.push(Y.column):e.dense?t.push(Y.dense):e.row&&t.push(Y.row),e.align&&t.push(Y[`align${e.align.charAt(0).toUpperCase()+e.align.slice(1)}`]),e.justify&&t.push(Y[`justify${e.justify.charAt(0).toUpperCase()+e.justify.slice(1)}`]),e.justifyContent&&t.push(Y[`justifyContent${e.justifyContent.charAt(0).toUpperCase()+e.justifyContent.slice(1)}`]),e.alignContent&&t.push(Y[`alignContent${e.alignContent.charAt(0).toUpperCase()+e.alignContent.slice(1)}`]),e.gap===`none`?t.push(Y.gapNone):e.gap&&t.push(Y[`gap${e.gap.charAt(0).toUpperCase()+e.gap.slice(1)}`]),e.gapRow&&t.push(Y[`gapRow${e.gapRow.charAt(0).toUpperCase()+e.gapRow.slice(1)}`]),e.gapColumn&&t.push(Y[`gapColumn${e.gapColumn.charAt(0).toUpperCase()+e.gapColumn.slice(1)}`]),e.variant===`single-column`?t.push(Y.singleColumn):e.variant===`auto-1fr`?t.push(Y.autoRows1fr):e.variant===`auto1fr-rows-auto`&&t.push(Y.columnsAuto1fr),t.filter(Boolean).join(` `)},[e]),ye=e=>(0,X.useMemo)(()=>{let t={};return e.templateColumns&&(t.gridTemplateColumns=e.templateColumns),e.templateRows&&(t.gridTemplateRows=e.templateRows),e.autoColumns&&(t.gridAutoColumns=e.autoColumns),e.autoRows&&(t.gridAutoRows=e.autoRows),e.areas&&(t.gridTemplateAreas=e.areas),t},[e.templateColumns,e.templateRows,e.autoColumns,e.autoRows,e.areas]),be=e=>(0,X.useMemo)(()=>{let t=[Y.item];return e.alignSelf&&t.push(Y[`alignSelf${e.alignSelf.charAt(0).toUpperCase()+e.alignSelf.slice(1)}`]),e.justifySelf&&t.push(Y[`justifySelf${e.justifySelf.charAt(0).toUpperCase()+e.justifySelf.slice(1)}`]),t.filter(Boolean).join(` `)},[e]),xe=e=>(0,X.useMemo)(()=>{let t={};return e.area&&(t.gridArea=e.area),e.column&&(t.gridColumn=e.column),e.row&&(t.gridRow=e.row),t},[e.area,e.column,e.row])})))()}function Q({ref:e,children:t,className:n=``,as:ee,style:ne,inline:i,row:a,column:o,dense:s,gap:c,gapRow:l,gapColumn:u,align:d,justify:f,alignContent:p,justifyContent:m,templateColumns:h,templateRows:g,autoColumns:_,autoRows:v,areas:y,variant:b,...x}){let{activeBreakpoint:S}=te(),C=(0,$.useMemo)(()=>({inline:r(i,S),row:r(a,S),column:r(o,S),dense:r(s,S),gap:r(c,S),gapRow:r(l,S),gapColumn:r(u,S),align:r(d,S),justify:r(f,S),alignContent:r(p,S),justifyContent:r(m,S),variant:r(b,S)}),[S,d,p,o,s,c,u,l,i,f,m,a,b]),w=(0,$.useMemo)(()=>({templateColumns:r(h,S),templateRows:r(g,S),autoColumns:r(_,S),autoRows:r(v,S),areas:r(y,S)}),[S,h,g,_,v,y]),T=ve(C),E=ye(w),D=[T,n].filter(Boolean).join(` `),O={...E,...ne};return(0,Se.jsx)(re,{as:ee,...x,ref:e,className:D,style:O,children:t})}var $,Se;function Ce(){return(Ce=e((()=>{$=t(),ee(),ne(),Z(),Se=n(),Q.displayName=`GridContainer`,Q.__docgenInfo={description:``,methods:[],displayName:`GridContainer`,props:{id:{required:!1,tsType:{name:`string`},description:``},inline:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Включение inline-grid вместо обычного grid
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";import{i as r,r as ee,t as te}from"./media-D9cE2tzi.js";import{n as ne,t as re}from"./PolymorphicComponent-NBvIz9JD.js";var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,ie,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,Y;function _e(){return(_e=e((()=>{i=`_5Z2YQF`,a=`gAEXju`,o=`KdmGbk`,s=`uOpH1m`,c=`EOUgpE`,l=`PoMD0P`,u=`FBebhA`,d=`rwvhfS`,f=`ZIsGgj`,p=`lbAie9`,m=`ylmmN3`,h=`Fg86QU`,g=`_3qWtbZ`,_=`gIXZ8P`,v=`xXxHZM`,y=`zRgpft`,b=`Fb1W2U`,x=`_2EojT9`,S=`gYCGa5`,C=`JN0CZr`,w=`_2QvtUb`,T=`_1kRriS`,E=`ocLWZU`,D=`TS1qri`,O=`FXfvI7`,ie=`biKmzi`,k=`_4-sIS7`,A=`lbdoyi`,j=`WvAC9I`,M=`LN4Ak-`,N=`XC0FuJ`,P=`_6b9wZI`,F=`KevE4M`,I=`Sn-je4`,L=`Wnx9iF`,R=`RAoqm2`,z=`nUjbmv`,B=`TjTsA7`,V=`VdpzYk`,H=`peszxb`,U=`E98bqx`,W=`CdaBbu`,G=`leVL0N`,K=`_6mOZVj`,q=`XHgjM3`,J=`wtrn5A`,ae=`LkIh-N`,oe=`Vhdvpo`,se=`cyg2du`,ce=`Ptd1ad`,le=`Z22Yty`,ue=`gycEgN`,de=`s69iy2`,fe=`pKEJ9k`,pe=`qWkZVw`,me=`gUbUDY`,he=`S0HulN`,ge=`K2fFKT`,Y={grid:i,inline:a,row:o,column:s,dense:c,gapNone:l,gapRowXs:u,gapRowSm:d,gapRowMd:f,gapRowLg:p,gapRowXl:m,gapColumnXs:h,gapColumnSm:g,gapColumnMd:_,gapColumnLg:v,gapColumnXl:y,gapXs:b,gapSm:x,gapMd:S,gapLg:C,gapXl:w,alignStart:T,alignCenter:E,alignEnd:D,alignStretch:O,alignBaseline:ie,justifyStart:k,justifyCenter:A,justifyEnd:j,justifyStretch:M,alignContentStart:N,alignContentCenter:P,alignContentEnd:F,alignContentStretch:I,alignContentBetween:L,alignContentAround:R,alignContentEvenly:z,justifyContentStart:B,justifyContentCenter:V,justifyContentEnd:H,justifyContentStretch:U,justifyContentBetween:W,justifyContentAround:G,justifyContentEvenly:K,item:q,areaAuto:J,alignSelfStart:ae,alignSelfCenter:oe,alignSelfEnd:se,alignSelfStretch:ce,alignSelfBaseline:le,justifySelfStart:ue,justifySelfCenter:de,justifySelfEnd:fe,justifySelfStretch:pe,autoRows1fr:me,columnsAuto1fr:he,singleColumn:ge}})))()}var X,ve,ye,be,xe;function Z(){return(Z=e((()=>{X=t(),_e(),ve=e=>(0,X.useMemo)(()=>{let t=[Y.grid];return e.inline&&t.push(Y.inline),e.column?t.push(Y.column):e.dense?t.push(Y.dense):e.row&&t.push(Y.row),e.align&&t.push(Y[`align${e.align.charAt(0).toUpperCase()+e.align.slice(1)}`]),e.justify&&t.push(Y[`justify${e.justify.charAt(0).toUpperCase()+e.justify.slice(1)}`]),e.justifyContent&&t.push(Y[`justifyContent${e.justifyContent.charAt(0).toUpperCase()+e.justifyContent.slice(1)}`]),e.alignContent&&t.push(Y[`alignContent${e.alignContent.charAt(0).toUpperCase()+e.alignContent.slice(1)}`]),e.gap===`none`?t.push(Y.gapNone):e.gap&&t.push(Y[`gap${e.gap.charAt(0).toUpperCase()+e.gap.slice(1)}`]),e.gapRow&&t.push(Y[`gapRow${e.gapRow.charAt(0).toUpperCase()+e.gapRow.slice(1)}`]),e.gapColumn&&t.push(Y[`gapColumn${e.gapColumn.charAt(0).toUpperCase()+e.gapColumn.slice(1)}`]),e.variant===`single-column`?t.push(Y.singleColumn):e.variant===`auto-1fr`?t.push(Y.autoRows1fr):e.variant===`auto1fr-rows-auto`&&t.push(Y.columnsAuto1fr),t.filter(Boolean).join(` `)},[e]),ye=e=>(0,X.useMemo)(()=>{let t={};return e.templateColumns&&(t.gridTemplateColumns=e.templateColumns),e.templateRows&&(t.gridTemplateRows=e.templateRows),e.autoColumns&&(t.gridAutoColumns=e.autoColumns),e.autoRows&&(t.gridAutoRows=e.autoRows),e.areas&&(t.gridTemplateAreas=e.areas),t},[e.templateColumns,e.templateRows,e.autoColumns,e.autoRows,e.areas]),be=e=>(0,X.useMemo)(()=>{let t=[Y.item];return e.alignSelf&&t.push(Y[`alignSelf${e.alignSelf.charAt(0).toUpperCase()+e.alignSelf.slice(1)}`]),e.justifySelf&&t.push(Y[`justifySelf${e.justifySelf.charAt(0).toUpperCase()+e.justifySelf.slice(1)}`]),t.filter(Boolean).join(` `)},[e]),xe=e=>(0,X.useMemo)(()=>{let t={};return e.area&&(t.gridArea=e.area),e.column&&(t.gridColumn=e.column),e.row&&(t.gridRow=e.row),t},[e.area,e.column,e.row])})))()}function Q({ref:e,children:t,className:n=``,as:ee,style:ne,inline:i,row:a,column:o,dense:s,gap:c,gapRow:l,gapColumn:u,align:d,justify:f,alignContent:p,justifyContent:m,templateColumns:h,templateRows:g,autoColumns:_,autoRows:v,areas:y,variant:b,...x}){let{activeBreakpoint:S}=te(),C=(0,$.useMemo)(()=>({inline:r(i,S),row:r(a,S),column:r(o,S),dense:r(s,S),gap:r(c,S),gapRow:r(l,S),gapColumn:r(u,S),align:r(d,S),justify:r(f,S),alignContent:r(p,S),justifyContent:r(m,S),variant:r(b,S)}),[S,d,p,o,s,c,u,l,i,f,m,a,b]),w=(0,$.useMemo)(()=>({templateColumns:r(h,S),templateRows:r(g,S),autoColumns:r(_,S),autoRows:r(v,S),areas:r(y,S)}),[S,h,g,_,v,y]),T=ve(C),E=ye(w),D=[T,n].filter(Boolean).join(` `),O={...E,...ne};return(0,Se.jsx)(re,{as:ee,...x,ref:e,className:D,style:O,children:t})}var $,Se;function Ce(){return(Ce=e((()=>{$=t(),ee(),ne(),Z(),Se=n(),Q.displayName=`GridContainer`,Q.__docgenInfo={description:``,methods:[],displayName:`GridContainer`,props:{id:{required:!1,tsType:{name:`string`},description:``},inline:{required:!1,tsType:{name:`ResponsiveValue`,elements:[{name:`boolean`}],raw:`ResponsiveValue<boolean>`},description:`Включение inline-grid вместо обычного grid
2
2
 
3
3
  Позволяет grid-контейнеру вести себя как строчный элемент,
4
4
  обтекаясь текстом и другими элементами. Полезно для встраивания grid-раскладки
@@ -1,4 +1,4 @@
1
- import{a as e,n as t,t as n}from"./rolldown-runtime-DkW27tQK.js";import{t as r}from"./react-BZJXY1be.js";import{n as i}from"./iframe-BhhO4T-j.js";var a=n(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!b||parseFloat(b[1].replace(`_`,`.`))}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),o=n(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),s=n(((e,t)=>{var n=o(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),c=n(((e,t)=>{var n=a(),r=s(),i=10,o=40,c=800;function l(e){var t=0,n=0,r=0,a=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,a=n*i,`deltaY`in e&&(a=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=o,a*=o):(r*=c,a*=c)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}l.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=l})),l=n(((e,t)=>{t.exports=c()}));function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}function d(e,t){if(u(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(u(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f(e){var t=d(e,`string`);return u(t)==`symbol`?t:t+``}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n,r,i,a=0){let{width:o,height:s}=O(e,t,a),c=Math.min(o,n),l=Math.min(s,r);return c>l*i?{width:l*i,height:l}:{width:c,height:c/i}}function _(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function v(e,t,n,r,i=0){let{width:a,height:o}=O(t.width,t.height,i);return{x:y(e.x,a,n.width,r),y:y(e.y,o,n.height,r)}}function y(e,t,n,r){let i=Math.abs(t*r/2-n/2);return k(e,-i,i)}function b(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function x(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function S(e,t,n,r,i,a=0,o=!0){let s=o?C:w,c=O(t.width,t.height,a),l=O(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:h(h({},p),{},{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function C(e,t){return Math.min(e,Math.max(0,t))}function w(e,t){return t}function T(e,t,n,r,i,a){let o=O(t.width,t.height,n),s=k(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function E(e,t,n){let r=_(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function ee(e,t,n=0,r,i,a){let o=O(t.naturalWidth,t.naturalHeight,n),s=k(E(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function D(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function te(e){return e*Math.PI/180}function O(e,t,n){let r=te(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function k(e,t,n){return Math.min(Math.max(e,t),n)}function A(...e){return e.filter(e=>typeof e==`string`&&e.length>0).join(` `).trim()}var j,M,N,P,F,I,L,R,z;function B(){return(B=t((()=>{j=e(r(),1),M=e(l(),1),N=`.reactEasyCrop_Container {
1
+ import{a as e,n as t,t as n}from"./rolldown-runtime-DkW27tQK.js";import{t as r}from"./react-BZJXY1be.js";import{n as i}from"./iframe-ltYEol2F.js";var a=n(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!b||parseFloat(b[1].replace(`_`,`.`))}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),o=n(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),s=n(((e,t)=>{var n=o(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),c=n(((e,t)=>{var n=a(),r=s(),i=10,o=40,c=800;function l(e){var t=0,n=0,r=0,a=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,a=n*i,`deltaY`in e&&(a=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=o,a*=o):(r*=c,a*=c)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}l.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=l})),l=n(((e,t)=>{t.exports=c()}));function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}function d(e,t){if(u(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(u(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f(e){var t=d(e,`string`);return u(t)==`symbol`?t:t+``}function p(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n,r,i,a=0){let{width:o,height:s}=O(e,t,a),c=Math.min(o,n),l=Math.min(s,r);return c>l*i?{width:l*i,height:l}:{width:c,height:c/i}}function _(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function v(e,t,n,r,i=0){let{width:a,height:o}=O(t.width,t.height,i);return{x:y(e.x,a,n.width,r),y:y(e.y,o,n.height,r)}}function y(e,t,n,r){let i=Math.abs(t*r/2-n/2);return k(e,-i,i)}function b(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function x(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function S(e,t,n,r,i,a=0,o=!0){let s=o?C:w,c=O(t.width,t.height,a),l=O(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:h(h({},p),{},{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function C(e,t){return Math.min(e,Math.max(0,t))}function w(e,t){return t}function T(e,t,n,r,i,a){let o=O(t.width,t.height,n),s=k(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function E(e,t,n){let r=_(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function ee(e,t,n=0,r,i,a){let o=O(t.naturalWidth,t.naturalHeight,n),s=k(E(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function D(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function te(e){return e*Math.PI/180}function O(e,t,n){let r=te(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function k(e,t,n){return Math.min(Math.max(e,t),n)}function A(...e){return e.filter(e=>typeof e==`string`&&e.length>0).join(` `).trim()}var j,M,N,P,F,I,L,R,z;function B(){return(B=t((()=>{j=e(r(),1),M=e(l(),1),N=`.reactEasyCrop_Container {
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,2 +1,2 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-BhhO4T-j.js";function r({width:e=`100%`,height:t=`100%`,aspectRatio:n=`16 / 9`,className:r}){return(0,i.jsx)(`div`,{style:{width:e,height:t,aspectRatio:n},className:r,children:(0,i.jsx)(`svg`,{width:e,height:t,viewBox:`0 0 200 200`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,fill:`none`,rx:`10`,ry:`10`,style:{display:`block`},"aria-label":`Изображение недоступно`,children:(0,i.jsxs)(`g`,{fill:`var(--surface-0)`,children:[(0,i.jsx)(`rect`,{x:`40`,y:`50`,width:`120`,height:`100`,rx:`10`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`70`,r:`8`,fill:`var(--surface-2)`}),(0,i.jsx)(`path`,{d:`M50 130 L75 100 L100 130 Z`,fill:`var(--surface-2)`}),(0,i.jsx)(`path`,{d:`M90 130 L120 90 L150 130 Z`,fill:`var(--surface-2)`}),(0,i.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-0)`,strokeWidth:`15`,strokeLinecap:`round`}),(0,i.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-2)`,strokeWidth:`5`,strokeLinecap:`round`})]})})})}var i;function a(){return(a=e((()=>{i=n(),r.__docgenInfo={description:``,methods:[],displayName:`ImagePlaceholder`,props:{width:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},height:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},aspectRatio:{required:!1,tsType:{name:`union`,raw:`string | "unset"`,elements:[{name:`string`},{name:`literal`,value:`"unset"`}]},description:``,defaultValue:{value:`"16 / 9"`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:``}}}})))()}function o({src:e,sources:t,alt:n,role:i,ariaLabel:a,caption:o,fallback:l,useFigure:u=!1,layout:d=`cover`,width:f=`100%`,height:p=`100%`,aspectRatio:m,intrinsicWidth:h,intrinsicHeight:g,onLoad:_,onError:v,style:y,wrapperStyle:b,...x}){let S=(0,s.useRef)(null),[C,w]=(0,s.useState)(0),[T,E]=(0,s.useState)(!1),[D,O]=(0,s.useState)(!1),[k,A]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(typeof IntersectionObserver>`u`){let e=window.setTimeout(()=>E(!0),0);return()=>window.clearTimeout(e)}let e=new IntersectionObserver(([t])=>{if(t.isIntersecting){let n=Math.round(t.boundingClientRect.width);w(n),E(!0),e.disconnect()}},{rootMargin:`100px`,threshold:.01});return S.current&&e.observe(S.current),()=>e.disconnect()},[]);let j=d===`intrinsic`,M=j?`auto`:p,N=h&&g?`${h} / ${g}`:void 0,P=j?N??m??`auto`:m??`16 / 9`,F=j&&P!==`auto`&&P!==`unset`?`100%`:M,I=C?`${C}px`:`100vw`,L=(0,c.jsx)(r,{width:f,height:F,aspectRatio:P}),R=j?{...y,display:`block`,width:`100%`,height:`auto`,objectFit:void 0}:{display:`block`,width:`100%`,height:`100%`,objectFit:d,...y},z=(0,c.jsxs)(c.Fragment,{children:[!D&&!k&&(l||L),T&&!k&&(0,c.jsxs)(`picture`,{children:[t?.map(e=>(0,c.jsx)(`source`,{srcSet:e.srcSet,type:e.type,sizes:e.sizes??I},`${e.type??`source`}-${e.srcSet}`)),(0,c.jsx)(`img`,{src:e,alt:n,role:i,"aria-label":a,onLoad:e=>{O(!0),_?.(e)},onError:e=>{A(!0),v?.(e)},style:D?R:{display:`none`},"aria-busy":!D,width:h,height:g,...x})]}),k&&L]}),B=(0,c.jsx)(`div`,{ref:S,style:{width:f,height:M,aspectRatio:P,...b},children:z});return u?(0,c.jsxs)(`figure`,{className:`relative`,children:[B,o&&(0,c.jsx)(`figcaption`,{style:{bottom:2,right:2,maxWidth:`calc(100% - 4px)`},className:`absolute paddingInlineMd textRight radiusSm fontSizeSm`,children:o})]}):B}var s,c;function l(){return(l=e((()=>{s=t(),a(),c=n(),o.__docgenInfo={description:`Базовый рендер изображения: lazy-появление, placeholder, обработка ошибки и figure/caption.
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n}from"./iframe-ltYEol2F.js";function r({width:e=`100%`,height:t=`100%`,aspectRatio:n=`16 / 9`,className:r}){return(0,i.jsx)(`div`,{style:{width:e,height:t,aspectRatio:n},className:r,children:(0,i.jsx)(`svg`,{width:e,height:t,viewBox:`0 0 200 200`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,fill:`none`,rx:`10`,ry:`10`,style:{display:`block`},"aria-label":`Изображение недоступно`,children:(0,i.jsxs)(`g`,{fill:`var(--surface-0)`,children:[(0,i.jsx)(`rect`,{x:`40`,y:`50`,width:`120`,height:`100`,rx:`10`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`70`,r:`8`,fill:`var(--surface-2)`}),(0,i.jsx)(`path`,{d:`M50 130 L75 100 L100 130 Z`,fill:`var(--surface-2)`}),(0,i.jsx)(`path`,{d:`M90 130 L120 90 L150 130 Z`,fill:`var(--surface-2)`}),(0,i.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-0)`,strokeWidth:`15`,strokeLinecap:`round`}),(0,i.jsx)(`line`,{x1:`160`,y1:`40`,x2:`40`,y2:`160`,stroke:`var(--surface-2)`,strokeWidth:`5`,strokeLinecap:`round`})]})})})}var i;function a(){return(a=e((()=>{i=n(),r.__docgenInfo={description:``,methods:[],displayName:`ImagePlaceholder`,props:{width:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},height:{required:!1,tsType:{name:`union`,raw:`number | string`,elements:[{name:`number`},{name:`string`}]},description:``,defaultValue:{value:`"100%"`,computed:!1}},aspectRatio:{required:!1,tsType:{name:`union`,raw:`string | "unset"`,elements:[{name:`string`},{name:`literal`,value:`"unset"`}]},description:``,defaultValue:{value:`"16 / 9"`,computed:!1}},className:{required:!1,tsType:{name:`string`},description:``}}}})))()}function o({src:e,sources:t,alt:n,role:i,ariaLabel:a,caption:o,fallback:l,useFigure:u=!1,layout:d=`cover`,width:f=`100%`,height:p=`100%`,aspectRatio:m,intrinsicWidth:h,intrinsicHeight:g,onLoad:_,onError:v,style:y,wrapperStyle:b,...x}){let S=(0,s.useRef)(null),[C,w]=(0,s.useState)(0),[T,E]=(0,s.useState)(!1),[D,O]=(0,s.useState)(!1),[k,A]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(typeof IntersectionObserver>`u`){let e=window.setTimeout(()=>E(!0),0);return()=>window.clearTimeout(e)}let e=new IntersectionObserver(([t])=>{if(t.isIntersecting){let n=Math.round(t.boundingClientRect.width);w(n),E(!0),e.disconnect()}},{rootMargin:`100px`,threshold:.01});return S.current&&e.observe(S.current),()=>e.disconnect()},[]);let j=d===`intrinsic`,M=j?`auto`:p,N=h&&g?`${h} / ${g}`:void 0,P=j?N??m??`auto`:m??`16 / 9`,F=j&&P!==`auto`&&P!==`unset`?`100%`:M,I=C?`${C}px`:`100vw`,L=(0,c.jsx)(r,{width:f,height:F,aspectRatio:P}),R=j?{...y,display:`block`,width:`100%`,height:`auto`,objectFit:void 0}:{display:`block`,width:`100%`,height:`100%`,objectFit:d,...y},z=(0,c.jsxs)(c.Fragment,{children:[!D&&!k&&(l||L),T&&!k&&(0,c.jsxs)(`picture`,{children:[t?.map(e=>(0,c.jsx)(`source`,{srcSet:e.srcSet,type:e.type,sizes:e.sizes??I},`${e.type??`source`}-${e.srcSet}`)),(0,c.jsx)(`img`,{src:e,alt:n,role:i,"aria-label":a,onLoad:e=>{O(!0),_?.(e)},onError:e=>{A(!0),v?.(e)},style:D?R:{display:`none`},"aria-busy":!D,width:h,height:g,...x})]}),k&&L]}),B=(0,c.jsx)(`div`,{ref:S,style:{width:f,height:M,aspectRatio:P,...b},children:z});return u?(0,c.jsxs)(`figure`,{className:`relative`,children:[B,o&&(0,c.jsx)(`figcaption`,{style:{bottom:2,right:2,maxWidth:`calc(100% - 4px)`},className:`absolute paddingInlineMd textRight radiusSm fontSizeSm`,children:o})]}):B}var s,c;function l(){return(l=e((()=>{s=t(),a(),c=n(),o.__docgenInfo={description:`Базовый рендер изображения: lazy-появление, placeholder, обработка ошибки и figure/caption.
2
2
  Компонент не знает, как устроено хранилище и какие форматы/размеры доступны.`,methods:[],displayName:`ImageRenderer`,props:{src:{required:!0,tsType:{name:`string`},description:``},sources:{required:!1,tsType:{name:`unknown`},description:``},layout:{required:!1,tsType:{name:`union`,raw:`"cover" | "contain" | "intrinsic"`,elements:[{name:`literal`,value:`"cover"`},{name:`literal`,value:`"contain"`},{name:`literal`,value:`"intrinsic"`}]},description:``,defaultValue:{value:`"cover"`,computed:!1}},alt:{required:!1,tsType:{name:`string`},description:``},role:{required:!1,tsType:{name:`string`},description:``},ariaLabel:{required:!1,tsType:{name:`string`},description:``},caption:{required:!1,tsType:{name:`string`},description:``},fallback:{required:!1,tsType:{name:`ReactNode`},description:``},useFigure:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}},aspectRatio:{required:!1,tsType:{name:`union`,raw:`string | "unset"`,elements:[{name:`string`},{name:`literal`,value:`"unset"`}]},description:``},width:{required:!1,tsType:{name:`CSSProperties["width"]`,raw:`CSSProperties["width"]`},description:``,defaultValue:{value:`"100%"`,computed:!1}},height:{required:!1,tsType:{name:`CSSProperties["height"]`,raw:`CSSProperties["height"]`},description:``,defaultValue:{value:`"100%"`,computed:!1}},intrinsicWidth:{required:!1,tsType:{name:`number`},description:``},intrinsicHeight:{required:!1,tsType:{name:`number`},description:``},wrapperStyle:{required:!1,tsType:{name:`CSSProperties`},description:``}},composes:[`Omit`]}})))()}export{l as n,o as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BhhO4T-j.js";import{n,t as r}from"./ImageRenderer-BbHUOlNk.js";var i,a,o,s,c,l,u;function d(){return(d=e((()=>{n(),i=t(),{useArgs:a}=__STORYBOOK_MODULE_PREVIEW_API__,o={title:`UI/Image/ImageRenderer`,component:r,args:{src:`https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80`,alt:`Горный пейзаж`},parameters:{layout:`padded`},argTypes:{src:{description:`URL основного изображения.`,control:`text`},sources:{description:`Дополнительные responsive picture-источники.`,control:!1},layout:{description:`Режим расположения изображения внутри контейнера.`,control:`inline-radio`,options:[`cover`,`contain`,`intrinsic`]},alt:{description:`Альтернативный текст изображения.`,control:`text`},role:{description:`Семантическая роль тега изображения.`,control:`text`},ariaLabel:{description:`Явное доступное имя изображения.`,control:`text`},caption:{description:`Подпись изображения в режиме figure.`,control:`text`},fallback:{description:`Кастомный placeholder до загрузки.`,control:!1},useFigure:{description:`Оборачивает изображение в figure/figcaption.`,control:`boolean`},aspectRatio:{description:`Соотношение сторон контейнера.`,control:`text`},width:{description:`Ширина контейнера.`,control:`text`},height:{description:`Высота контейнера.`,control:`text`},intrinsicWidth:{description:`Исходная ширина изображения.`,control:`number`},intrinsicHeight:{description:`Исходная высота изображения.`,control:`number`},wrapperStyle:{description:`Inline-стили контейнера изображения.`,control:!1}}},s={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`cover`,width:`min(100%, 48rem)`,height:`24rem`}},c={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`contain`,width:`min(100%, 48rem)`,height:`24rem`,wrapperStyle:{background:`var(--surface-1)`}}},l={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`intrinsic`,intrinsicWidth:1600,intrinsicHeight:1067}},s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
1
+ import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-ltYEol2F.js";import{n,t as r}from"./ImageRenderer-DEsg7Nf5.js";var i,a,o,s,c,l,u;function d(){return(d=e((()=>{n(),i=t(),{useArgs:a}=__STORYBOOK_MODULE_PREVIEW_API__,o={title:`UI/Image/ImageRenderer`,component:r,args:{src:`https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80`,alt:`Горный пейзаж`},parameters:{layout:`padded`},argTypes:{src:{description:`URL основного изображения.`,control:`text`},sources:{description:`Дополнительные responsive picture-источники.`,control:!1},layout:{description:`Режим расположения изображения внутри контейнера.`,control:`inline-radio`,options:[`cover`,`contain`,`intrinsic`]},alt:{description:`Альтернативный текст изображения.`,control:`text`},role:{description:`Семантическая роль тега изображения.`,control:`text`},ariaLabel:{description:`Явное доступное имя изображения.`,control:`text`},caption:{description:`Подпись изображения в режиме figure.`,control:`text`},fallback:{description:`Кастомный placeholder до загрузки.`,control:!1},useFigure:{description:`Оборачивает изображение в figure/figcaption.`,control:`boolean`},aspectRatio:{description:`Соотношение сторон контейнера.`,control:`text`},width:{description:`Ширина контейнера.`,control:`text`},height:{description:`Высота контейнера.`,control:`text`},intrinsicWidth:{description:`Исходная ширина изображения.`,control:`number`},intrinsicHeight:{description:`Исходная высота изображения.`,control:`number`},wrapperStyle:{description:`Inline-стили контейнера изображения.`,control:!1}}},s={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`cover`,width:`min(100%, 48rem)`,height:`24rem`}},c={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`contain`,width:`min(100%, 48rem)`,height:`24rem`,wrapperStyle:{background:`var(--surface-1)`}}},l={render:function(){let[e]=a();return(0,i.jsx)(r,{...e})},args:{layout:`intrinsic`,intrinsicWidth:1600,intrinsicHeight:1067}},s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
2
2
  render: function Render() {
3
3
  const [args] = useArgs<ImageRendererProps>();
4
4
  return <ImageRenderer {...args} />;