@ryuzaki13/react-foundation-ui 1.0.1 → 1.0.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 (256) hide show
  1. package/dist/advanced-search/index.d.ts +3 -0
  2. package/dist/advanced-search/index.d.ts.map +1 -0
  3. package/dist/advanced-search/index.js +361 -0
  4. package/dist/advanced-search/index.js.map +1 -0
  5. package/dist/advanced-search/lib/index.d.ts +2 -0
  6. package/dist/advanced-search/lib/index.d.ts.map +1 -0
  7. package/dist/advanced-search/lib/searchParts.d.ts +3 -0
  8. package/dist/advanced-search/lib/searchParts.d.ts.map +1 -0
  9. package/dist/advanced-search/model/index.d.ts +5 -0
  10. package/dist/advanced-search/model/index.d.ts.map +1 -0
  11. package/dist/advanced-search/model/types.d.ts +55 -0
  12. package/dist/advanced-search/model/types.d.ts.map +1 -0
  13. package/dist/advanced-search/model/useAdvancedSearch.d.ts +11 -0
  14. package/dist/advanced-search/model/useAdvancedSearch.d.ts.map +1 -0
  15. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts +6 -0
  16. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts.map +1 -0
  17. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +13 -0
  18. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +1 -0
  19. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +13 -0
  20. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +1 -0
  21. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts +8 -0
  22. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +1 -0
  23. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts +9 -0
  24. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts.map +1 -0
  25. package/dist/advanced-search/ui/index.d.ts +2 -0
  26. package/dist/advanced-search/ui/index.d.ts.map +1 -0
  27. package/dist/badge/index.js +1 -1
  28. package/dist/badge/stories/Badge.stories.js +22 -22
  29. package/dist/base-table/index.js +2 -2
  30. package/dist/button/index.js +7 -7
  31. package/dist/button/stories/Button.stories.js +1 -1
  32. package/dist/check-box/index.js +1 -1
  33. package/dist/check-box/stories/CheckBox.stories.js +25 -25
  34. package/dist/chunks/{BadgeList-6qL9oNAp.js → BadgeList-DYgun2rf.js} +16 -16
  35. package/dist/chunks/{BadgeList-6qL9oNAp.js.map → BadgeList-DYgun2rf.js.map} +1 -1
  36. package/dist/chunks/{Button-BZ_b-Kin.js → Button-CCWuggdA.js} +16 -16
  37. package/dist/chunks/{Button-BZ_b-Kin.js.map → Button-CCWuggdA.js.map} +1 -1
  38. package/dist/chunks/CalendarView-DjeTJkTT.js +435 -0
  39. package/dist/chunks/{CalendarView-DjShdvRD.js.map → CalendarView-DjeTJkTT.js.map} +1 -1
  40. package/dist/chunks/CheckBox-BowNqqd3.js +48 -0
  41. package/dist/chunks/{CheckBox-CulnjNvJ.js.map → CheckBox-BowNqqd3.js.map} +1 -1
  42. package/dist/chunks/{DateInput-LSSvObtg.js → DateInput--tfofQ2x.js} +68 -68
  43. package/dist/chunks/{DateInput-LSSvObtg.js.map → DateInput--tfofQ2x.js.map} +1 -1
  44. package/dist/chunks/{DateRangePresetSelect-CyzGMvVp.js → DateRangePresetSelect-UgsfaOeM.js} +22 -22
  45. package/dist/chunks/{DateRangePresetSelect-CyzGMvVp.js.map → DateRangePresetSelect-UgsfaOeM.js.map} +1 -1
  46. package/dist/chunks/Detail-DHDMsg8q.js +80 -0
  47. package/dist/chunks/{Detail-DKolHye4.js.map → Detail-DHDMsg8q.js.map} +1 -1
  48. package/dist/chunks/{Dialog-BPS4BeWZ.js → Dialog-CFIvGxER.js} +8 -8
  49. package/dist/chunks/{Dialog-BPS4BeWZ.js.map → Dialog-CFIvGxER.js.map} +1 -1
  50. package/dist/chunks/DisclosureGroup-CfRTkl6Z.js +49 -0
  51. package/dist/chunks/{DisclosureGroup-Plk2M_Vl.js.map → DisclosureGroup-CfRTkl6Z.js.map} +1 -1
  52. package/dist/chunks/{DropZone-DPGTpHI6.js → DropZone-kJfbZU5g.js} +22 -22
  53. package/dist/chunks/{DropZone-DPGTpHI6.js.map → DropZone-kJfbZU5g.js.map} +1 -1
  54. package/dist/chunks/{DropdownMenu-Ds-trH4M.js → DropdownMenu-DQeR3y7M.js} +138 -138
  55. package/dist/chunks/{DropdownMenu-Ds-trH4M.js.map → DropdownMenu-DQeR3y7M.js.map} +1 -1
  56. package/dist/chunks/{Flex-DbBdq336.js → Flex-DUYSL5TE.js} +16 -16
  57. package/dist/chunks/{Flex-DbBdq336.js.map → Flex-DUYSL5TE.js.map} +1 -1
  58. package/dist/chunks/Input-BmjlpA09.js +227 -0
  59. package/dist/chunks/{Input-Wrew1puH.js.map → Input-BmjlpA09.js.map} +1 -1
  60. package/dist/chunks/{InputDateTime-2PCX8an8.js → InputDateTime-CxfAFe2L.js} +56 -56
  61. package/dist/chunks/{InputDateTime-2PCX8an8.js.map → InputDateTime-CxfAFe2L.js.map} +1 -1
  62. package/dist/chunks/{InputFile-Ca-bRo93.js → InputFile-CyZu__B_.js} +17 -17
  63. package/dist/chunks/{InputFile-Ca-bRo93.js.map → InputFile-CyZu__B_.js.map} +1 -1
  64. package/dist/chunks/{InputFiles-pI9rQXOI.js → InputFiles-CrTJV27R.js} +31 -31
  65. package/dist/chunks/{InputFiles-pI9rQXOI.js.map → InputFiles-CrTJV27R.js.map} +1 -1
  66. package/dist/chunks/{InputImage-B522AQzl.js → InputImage-Cw8rPYQu.js} +18 -18
  67. package/dist/chunks/{InputImage-B522AQzl.js.map → InputImage-Cw8rPYQu.js.map} +1 -1
  68. package/dist/chunks/{LabeledExpandableActionPanel-CWmOSWeS.js → LabeledExpandableActionPanel-D3kUvmFH.js} +26 -26
  69. package/dist/chunks/{LabeledExpandableActionPanel-CWmOSWeS.js.map → LabeledExpandableActionPanel-D3kUvmFH.js.map} +1 -1
  70. package/dist/chunks/Listbox-BZlp5qHz.js +81 -0
  71. package/dist/chunks/{Listbox-B6F_IKQv.js.map → Listbox-BZlp5qHz.js.map} +1 -1
  72. package/dist/chunks/{MultiSelect-CUXA8gx-.js → MultiSelect-D1XYuwH1.js} +113 -113
  73. package/dist/chunks/{MultiSelect-CUXA8gx-.js.map → MultiSelect-D1XYuwH1.js.map} +1 -1
  74. package/dist/chunks/{NotificationsHost-Bnq7xFKO.js → NotificationsHost-_icJx4xR.js} +44 -44
  75. package/dist/chunks/{NotificationsHost-Bnq7xFKO.js.map → NotificationsHost-_icJx4xR.js.map} +1 -1
  76. package/dist/chunks/{PresetRangeDateInput-B_8jsilZ.js → PresetRangeDateInput-CapirptQ.js} +11 -11
  77. package/dist/chunks/{PresetRangeDateInput-B_8jsilZ.js.map → PresetRangeDateInput-CapirptQ.js.map} +1 -1
  78. package/dist/chunks/RadioButton-D0uA0rX_.js +48 -0
  79. package/dist/chunks/{RadioButton-D5vPW4Yr.js.map → RadioButton-D0uA0rX_.js.map} +1 -1
  80. package/dist/chunks/RadioGroup-B9XjkcOy.js +121 -0
  81. package/dist/chunks/{RadioGroup-BAhN1d1X.js.map → RadioGroup-B9XjkcOy.js.map} +1 -1
  82. package/dist/chunks/{Select-CoAYWNOn.js → Select-CXeVjVKA.js} +11 -11
  83. package/dist/chunks/{Select-CoAYWNOn.js.map → Select-CXeVjVKA.js.map} +1 -1
  84. package/dist/chunks/{SerializableSelect-awBOWKTj.js → SerializableSelect-DkYeJtAO.js} +2 -2
  85. package/dist/chunks/{SerializableSelect-awBOWKTj.js.map → SerializableSelect-DkYeJtAO.js.map} +1 -1
  86. package/dist/chunks/{SingleDateTimeInput-o44Vlwdk.js → SingleDateTimeInput-BmeuVGQT.js} +78 -78
  87. package/dist/chunks/{SingleDateTimeInput-o44Vlwdk.js.map → SingleDateTimeInput-BmeuVGQT.js.map} +1 -1
  88. package/dist/chunks/{Splitter-NjNFuEq4.js → Splitter-BFkVGVRb.js} +32 -32
  89. package/dist/chunks/{Splitter-NjNFuEq4.js.map → Splitter-BFkVGVRb.js.map} +1 -1
  90. package/dist/chunks/StateSelect-1jH3uLz9.js +78 -0
  91. package/dist/chunks/{StateSelect-abZq176J.js.map → StateSelect-1jH3uLz9.js.map} +1 -1
  92. package/dist/chunks/{Switch-DHMnZVmN.js → Switch-B57Qmy1z.js} +19 -19
  93. package/dist/chunks/{Switch-DHMnZVmN.js.map → Switch-B57Qmy1z.js.map} +1 -1
  94. package/dist/chunks/{TextEditorLexicalClient-Dt4eaPA3.js → TextEditorLexicalClient-CovUSRag.js} +204 -204
  95. package/dist/chunks/{TextEditorLexicalClient-Dt4eaPA3.js.map → TextEditorLexicalClient-CovUSRag.js.map} +1 -1
  96. package/dist/chunks/{Textarea-DOVrPH4I.js → Textarea-C9UdUueF.js} +2 -2
  97. package/dist/chunks/{Textarea-DOVrPH4I.js.map → Textarea-C9UdUueF.js.map} +1 -1
  98. package/dist/chunks/{TimePanel-_kF2RtHk.js → TimePanel-b4saqoUY.js} +27 -27
  99. package/dist/chunks/{TimePanel-_kF2RtHk.js.map → TimePanel-b4saqoUY.js.map} +1 -1
  100. package/dist/chunks/{Toggle-C_fE-bkM.js → Toggle-DVqOQXmt.js} +18 -18
  101. package/dist/chunks/{Toggle-C_fE-bkM.js.map → Toggle-DVqOQXmt.js.map} +1 -1
  102. package/dist/chunks/{TreeMultiSelect-C76RYavo.js → TreeMultiSelect-CfQhlfnC.js} +6 -6
  103. package/dist/chunks/{TreeMultiSelect-C76RYavo.js.map → TreeMultiSelect-CfQhlfnC.js.map} +1 -1
  104. package/dist/chunks/{TreePickerBase-qNHIWbYL.js → TreePickerBase-BBUOWsSu.js} +49 -49
  105. package/dist/chunks/{TreePickerBase-qNHIWbYL.js.map → TreePickerBase-BBUOWsSu.js.map} +1 -1
  106. package/dist/chunks/{TreeSelect-LEhNdPCX.js → TreeSelect-2wUXs90E.js} +6 -6
  107. package/dist/chunks/{TreeSelect-LEhNdPCX.js.map → TreeSelect-2wUXs90E.js.map} +1 -1
  108. package/dist/chunks/base-table-CoQlKABk.js +514 -0
  109. package/dist/chunks/{base-table-ij2guVMB.js.map → base-table-CoQlKABk.js.map} +1 -1
  110. package/dist/chunks/{floating-arrow-CdRV69sg.js → floating-arrow-BE-z4QkE.js} +7 -7
  111. package/dist/chunks/{floating-arrow-CdRV69sg.js.map → floating-arrow-BE-z4QkE.js.map} +1 -1
  112. package/dist/chunks/input-search-Dw4rnJBq.js +30 -0
  113. package/dist/chunks/input-search-Dw4rnJBq.js.map +1 -0
  114. package/dist/chunks/{layout-picker-CzZ8Xzkk.js → layout-picker-MWaImn3L.js} +34 -34
  115. package/dist/chunks/{layout-picker-CzZ8Xzkk.js.map → layout-picker-MWaImn3L.js.map} +1 -1
  116. package/dist/chunks/{misc-Bj0y3ERC.js → misc-DoqZBMof.js} +110 -110
  117. package/dist/chunks/{misc-Bj0y3ERC.js.map → misc-DoqZBMof.js.map} +1 -1
  118. package/dist/chunks/{modal-B4ivQb2h.js → modal-ByNRME3b.js} +42 -42
  119. package/dist/chunks/{modal-B4ivQb2h.js.map → modal-ByNRME3b.js.map} +1 -1
  120. package/dist/chunks/multi-select-BzYIviCU.js +1305 -0
  121. package/dist/chunks/multi-select-BzYIviCU.js.map +1 -0
  122. package/dist/chunks/{picker-gIUs0nE_.js → picker-Dg55Ss-B.js} +74 -74
  123. package/dist/chunks/{picker-gIUs0nE_.js.map → picker-Dg55Ss-B.js.map} +1 -1
  124. package/dist/chunks/{popover-C79P5bm2.js → popover-xJJqy1v6.js} +52 -52
  125. package/dist/chunks/{popover-C79P5bm2.js.map → popover-xJJqy1v6.js.map} +1 -1
  126. package/dist/chunks/{separator-CIqnk2z9.js → separator-B72Aq-6a.js} +2 -2
  127. package/dist/chunks/{separator-CIqnk2z9.js.map → separator-B72Aq-6a.js.map} +1 -1
  128. package/dist/chunks/{slider-CigVo4Ju.js → slider-CFKsfxFp.js} +83 -83
  129. package/dist/chunks/{slider-CigVo4Ju.js.map → slider-CFKsfxFp.js.map} +1 -1
  130. package/dist/chunks/sortable-DcTIAbjD.js +185 -0
  131. package/dist/chunks/{sortable-BZqnZ_LA.js.map → sortable-DcTIAbjD.js.map} +1 -1
  132. package/dist/chunks/{table-CK-CM2zD.js → table-Dc3AqMzP.js} +21 -21
  133. package/dist/chunks/{table-CK-CM2zD.js.map → table-Dc3AqMzP.js.map} +1 -1
  134. package/dist/chunks/{table-column-interactions-DPyJDD7P.js → table-column-interactions-6RGjmiI5.js} +24 -24
  135. package/dist/chunks/{table-column-interactions-DPyJDD7P.js.map → table-column-interactions-6RGjmiI5.js.map} +1 -1
  136. package/dist/chunks/{tabs-D5ikIIng.js → tabs-DlnVVMJl.js} +96 -96
  137. package/dist/chunks/{tabs-D5ikIIng.js.map → tabs-DlnVVMJl.js.map} +1 -1
  138. package/dist/chunks/{toolbar-C-Ziw_Uh.js → toolbar-BCZNdRXM.js} +2 -2
  139. package/dist/chunks/{toolbar-C-Ziw_Uh.js.map → toolbar-BCZNdRXM.js.map} +1 -1
  140. package/dist/chunks/{wheel-picker-DUHGy7wE.js → wheel-picker-FS58cRsQ.js} +23 -23
  141. package/dist/chunks/{wheel-picker-DUHGy7wE.js.map → wheel-picker-FS58cRsQ.js.map} +1 -1
  142. package/dist/context-menu/index.js +1 -1
  143. package/dist/context-menu/stories/ContextMenu.stories.js +45 -45
  144. package/dist/date-input/index.js +2 -2
  145. package/dist/date-input/stories/DateInput.stories.js +2 -2
  146. package/dist/date-range-preset-select/index.js +1 -1
  147. package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js +8 -8
  148. package/dist/date-time-input/index.js +1 -1
  149. package/dist/date-time-input/stories/SingleDateTimeInput.stories.js +38 -38
  150. package/dist/date-time-input/stories/TimePanel.stories.js +9 -9
  151. package/dist/detail/index.js +1 -1
  152. package/dist/detail/stories/Detail.stories.js +1 -1
  153. package/dist/dialog/index.js +1 -1
  154. package/dist/dialog/stories/Dialog.stories.js +16 -16
  155. package/dist/disclosure/index.js +1 -1
  156. package/dist/disclosure/stories/Disclosure.stories.js +1 -1
  157. package/dist/drop-zone/index.js +1 -1
  158. package/dist/drop-zone/stories/DropZone.stories.js +14 -14
  159. package/dist/errors/index.js +47 -47
  160. package/dist/expandable-action-panel/index.js +1 -1
  161. package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js +28 -28
  162. package/dist/flex/index.js +2 -2
  163. package/dist/flex/stories/Flex.stories.js +2 -2
  164. package/dist/floating-arrow/index.js +1 -1
  165. package/dist/fullscreen-portal/index.js +6 -6
  166. package/dist/grid/stories/Grid.stories.js +1 -1
  167. package/dist/image/index.js +123 -123
  168. package/dist/input/index.js +1 -1
  169. package/dist/input/stories/Input.stories.js +11 -11
  170. package/dist/input-date-time/index.js +1 -1
  171. package/dist/input-date-time/stories/InputDateTime.stories.js +11 -11
  172. package/dist/input-file/index.js +1 -1
  173. package/dist/input-file/stories/InputFile.stories.js +9 -9
  174. package/dist/input-files/index.js +1 -1
  175. package/dist/input-files/stories/InputFiles.stories.js +9 -9
  176. package/dist/input-image/index.js +1 -1
  177. package/dist/input-image/stories/InputImage.stories.js +15 -15
  178. package/dist/input-search/index.js +2 -30
  179. package/dist/layout-picker/index.js +1 -1
  180. package/dist/layout-picker/stories/LayoutPicker.stories.js +52 -52
  181. package/dist/list/index.js +27 -27
  182. package/dist/listbox/index.js +1 -1
  183. package/dist/listbox/stories/Listbox.stories.js +19 -19
  184. package/dist/misc/index.js +1 -1
  185. package/dist/modal/ModalManagerProvider.d.ts.map +1 -1
  186. package/dist/modal/index.js +1 -1
  187. package/dist/modal/stories/Modal.stories.js +55 -55
  188. package/dist/modal/types.d.ts +1 -0
  189. package/dist/modal/types.d.ts.map +1 -1
  190. package/dist/multi-select/index.js +3 -1141
  191. package/dist/multi-select/ui/stories/MultiSelect.stories.js +17 -17
  192. package/dist/notifications/index.js +1 -1
  193. package/dist/notifications/ui/stories/NotificationsHost.stories.js +59 -59
  194. package/dist/period-select/index.js +20 -20
  195. package/dist/period-select/stories/PeriodSelect.stories.js +17 -17
  196. package/dist/picker/index.js +1 -1
  197. package/dist/popover/index.js +1 -1
  198. package/dist/popover/stories/Popover.stories.js +16 -16
  199. package/dist/preset-range-date-input/index.js +1 -1
  200. package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js +9 -9
  201. package/dist/preset-select/index.js +1 -1
  202. package/dist/radio-button/index.js +1 -1
  203. package/dist/radio-button/stories/RadioButton.stories.js +11 -11
  204. package/dist/radio-group/index.js +1 -1
  205. package/dist/radio-group/stories/RadioGroup.stories.js +21 -21
  206. package/dist/select/index.js +2 -2
  207. package/dist/select/stories/Select.stories.js +23 -23
  208. package/dist/select/stories/SerializableSelect.stories.js +22 -22
  209. package/dist/separator/index.js +1 -1
  210. package/dist/simple-table/index.js +5 -5
  211. package/dist/slider/index.js +1 -1
  212. package/dist/slider/stories/Slider.stories.js +32 -32
  213. package/dist/slider/stories/SliderInput.stories.js +39 -39
  214. package/dist/sortable/index.js +1 -1
  215. package/dist/sortable/stories/Sortable.stories.js +23 -23
  216. package/dist/splitter/index.js +1 -1
  217. package/dist/splitter/stories/Splitter.stories.js +1 -1
  218. package/dist/state-select/index.js +1 -1
  219. package/dist/state-select/stories/StateSelect.stories.js +23 -23
  220. package/dist/styles.css +1 -1
  221. package/dist/switch/index.js +1 -1
  222. package/dist/switch/stories/Switch.stories.js +11 -11
  223. package/dist/table/index.js +1 -1
  224. package/dist/table-column-interactions/index.js +1 -1
  225. package/dist/table-sorting/index.js +1 -1
  226. package/dist/tabs/index.js +1 -1
  227. package/dist/tabs/stories/Tabs.stories.js +39 -39
  228. package/dist/text/index.js +20 -20
  229. package/dist/text-editor/index.js +3 -3
  230. package/dist/text-editor/toolbar/index.js +1 -1
  231. package/dist/textarea/index.js +1 -1
  232. package/dist/textarea/stories/Textarea.stories.js +8 -8
  233. package/dist/three-scene/index.js +7 -7
  234. package/dist/toggle/index.js +1 -1
  235. package/dist/toggle/stories/Toggle.stories.js +7 -7
  236. package/dist/toolbar/index.js +16 -16
  237. package/dist/tree/index.js +24 -24
  238. package/dist/tree-select/index.js +2 -2
  239. package/dist/tree-select/stories/TreeMultiSelect.stories.js +9 -9
  240. package/dist/tree-select/stories/TreeSelect.stories.js +9 -9
  241. package/dist/tree-table/index.js +32 -32
  242. package/dist/wheel-picker/index.js +1 -1
  243. package/package.json +11 -1
  244. package/dist/chunks/CalendarView-DjShdvRD.js +0 -435
  245. package/dist/chunks/CheckBox-CulnjNvJ.js +0 -48
  246. package/dist/chunks/Detail-DKolHye4.js +0 -80
  247. package/dist/chunks/DisclosureGroup-Plk2M_Vl.js +0 -49
  248. package/dist/chunks/Input-Wrew1puH.js +0 -227
  249. package/dist/chunks/Listbox-B6F_IKQv.js +0 -81
  250. package/dist/chunks/RadioButton-D5vPW4Yr.js +0 -48
  251. package/dist/chunks/RadioGroup-BAhN1d1X.js +0 -121
  252. package/dist/chunks/StateSelect-abZq176J.js +0 -78
  253. package/dist/chunks/base-table-ij2guVMB.js +0 -514
  254. package/dist/chunks/sortable-BZqnZ_LA.js +0 -185
  255. package/dist/input-search/index.js.map +0 -1
  256. package/dist/multi-select/index.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { r as e } from "./Grid-ByIIytjh.js";
2
- import { t } from "./Button-BZ_b-Kin.js";
3
- import { t as n } from "./CheckBox-CulnjNvJ.js";
4
- import { t as r } from "./Input-Wrew1puH.js";
5
- import { n as i } from "./RadioGroup-BAhN1d1X.js";
6
- import { i as a, n as o, r as s } from "./modal-B4ivQb2h.js";
1
+ import { t as e } from "./Button-CCWuggdA.js";
2
+ import { r as t } from "./Grid-ByIIytjh.js";
3
+ import { t as n } from "./Input-BmjlpA09.js";
4
+ import { i as r, n as i, r as a } from "./modal-ByNRME3b.js";
5
+ import { t as o } from "./CheckBox-BowNqqd3.js";
6
+ import { n as s } from "./RadioGroup-B9XjkcOy.js";
7
7
  import { t as c } from "./editorModel-DCJRgzlr.js";
8
- import { i as l, r as u, t as d } from "./toolbar-C-Ziw_Uh.js";
8
+ import { i as l, r as u, t as d } from "./toolbar-BCZNdRXM.js";
9
9
  import { a as f, i as p, n as m, r as h, t as g } from "./plugins-BqaLckPx.js";
10
- import { cn as _ } from "@ryuzaki13/react-foundation-lib/utils";
11
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
12
- import { useCallback as x, useEffect as S, useEffectEvent as C, useMemo as w, useState as T } from "react";
13
- import { formatPhone as E } from "@ryuzaki13/react-foundation-lib/formatters";
14
- import { isSafe as D, validateUrl as O } from "@ryuzaki13/react-foundation-lib/validators";
10
+ import { useCallback as _, useEffect as v, useEffectEvent as y, useMemo as b, useState as x } from "react";
11
+ import { cn as S } from "@ryuzaki13/react-foundation-lib/utils";
12
+ import { isSafe as C, validateUrl as w } from "@ryuzaki13/react-foundation-lib/validators";
13
+ import { formatPhone as T } from "@ryuzaki13/react-foundation-lib/formatters";
14
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
15
15
  import { $generateHtmlFromNodes as k } from "@lexical/html";
16
16
  import { $applyNodeReplacement as A, $createParagraphNode as j, $createTextNode as M, $getSelection as N, $isRangeSelection as P, ElementNode as F, FORMAT_ELEMENT_COMMAND as ee, FORMAT_TEXT_COMMAND as te, REDO_COMMAND as ne, UNDO_COMMAND as re } from "lexical";
17
17
  import { INSERT_ORDERED_LIST_COMMAND as ie, INSERT_UNORDERED_LIST_COMMAND as ae, ListItemNode as oe, ListNode as se, REMOVE_LIST_COMMAND as I } from "@lexical/list";
@@ -281,7 +281,7 @@ var he = (e) => ({
281
281
  //#endregion
282
282
  //#region src/text-editor/model/hooks/useTextEditorLexicalActions.ts
283
283
  function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialog: r, onOpenTagDialog: i }) {
284
- let a = x((n) => {
284
+ let a = _((n) => {
285
285
  if (e) {
286
286
  if (n === "unordered-list-item") {
287
287
  if (t.blockType === "unordered-list-item") {
@@ -314,24 +314,24 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
314
314
  t && W(e, () => ce(t));
315
315
  });
316
316
  }
317
- }, [e, t.blockType]), o = x((t) => {
317
+ }, [e, t.blockType]), o = _((t) => {
318
318
  if (!e) return;
319
319
  let n = h(t);
320
320
  n && e.dispatchCommand(te, n);
321
- }, [e]), s = x((t) => {
321
+ }, [e]), s = _((t) => {
322
322
  e && e.dispatchCommand(ee, t);
323
- }, [e]), c = x(() => {
323
+ }, [e]), c = _(() => {
324
324
  e && e.dispatchCommand(re, void 0);
325
- }, [e]), l = x(() => {
325
+ }, [e]), l = _(() => {
326
326
  e && e.dispatchCommand(ne, void 0);
327
- }, [e]), d = x(() => {
327
+ }, [e]), d = _(() => {
328
328
  if (!e) return "";
329
329
  let t = "";
330
330
  return e.getEditorState().read(() => {
331
331
  let e = N();
332
332
  P(e) && (t = e.getTextContent());
333
333
  }), t;
334
- }, [e]), f = x((t) => {
334
+ }, [e]), f = _((t) => {
335
335
  e && (e.update(() => {
336
336
  let e = N();
337
337
  if (!P(e)) return;
@@ -349,7 +349,7 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
349
349
  }), requestAnimationFrame(() => {
350
350
  e.focus();
351
351
  }));
352
- }, [e]), p = x((e, t, n, r, i) => {
352
+ }, [e]), p = _((e, t, n, r, i) => {
353
353
  f({
354
354
  url: e,
355
355
  text: t,
@@ -357,7 +357,7 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
357
357
  ariaLabel: r,
358
358
  qrCode: i
359
359
  });
360
- }, [f]), g = x((e, t) => {
360
+ }, [f]), g = _((e, t) => {
361
361
  f({
362
362
  url: e,
363
363
  text: t,
@@ -365,7 +365,7 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
365
365
  ariaLabel: "Внутренняя ссылка на статью: " + t,
366
366
  qrCode: !1
367
367
  });
368
- }, [f]), _ = x(() => {
368
+ }, [f]), v = _(() => {
369
369
  if (!e) return "";
370
370
  let t = "";
371
371
  return e.getEditorState().read(() => {
@@ -397,9 +397,9 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
397
397
  }
398
398
  t = n;
399
399
  }), t;
400
- }, [e]), v = x((e) => {
400
+ }, [e]), y = _((e) => {
401
401
  e === u.LOCAL_LINK && !n || r(e);
402
- }, [n, r]), y = x((t, n, r) => {
402
+ }, [n, r]), b = _((t, n, r) => {
403
403
  e && (e.update(() => {
404
404
  let e = N();
405
405
  if (!P(e)) return;
@@ -416,7 +416,7 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
416
416
  handleAddLocalLink: g,
417
417
  handleAlignmentChange: s,
418
418
  handleBlockStyleToggle: a,
419
- handleCleanSemanticTag: x(() => {
419
+ handleCleanSemanticTag: _(() => {
420
420
  e && e.update(() => {
421
421
  let e = N();
422
422
  if (!P(e) || e.isCollapsed()) return;
@@ -430,15 +430,15 @@ function ye({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
430
430
  });
431
431
  }, [e]),
432
432
  handleInlineStyleToggle: o,
433
- handleLinkClick: v,
433
+ handleLinkClick: y,
434
434
  handleRedo: l,
435
- handleTagClick: x((e) => {
435
+ handleTagClick: _((e) => {
436
436
  i(e);
437
437
  }, [i]),
438
438
  handleUndo: c,
439
439
  getCurrentSelectionText: d,
440
- getSelectedLinkState: _,
441
- insertSemanticTagAtSelection: y
440
+ getSelectedLinkState: v,
441
+ insertSemanticTagAtSelection: b
442
442
  };
443
443
  }
444
444
  var Q = {
@@ -449,68 +449,68 @@ var Q = {
449
449
  };
450
450
  //#endregion
451
451
  //#region src/text-editor/EmailDialog.tsx
452
- function be({ isOpen: e, onClose: n, onConfirm: i, initialState: c }) {
453
- let [l, u] = T(""), [d, f] = T(""), [p, m] = T(null), [h] = T(() => D(c) && typeof c == "string" ? {
452
+ function be({ isOpen: t, onClose: o, onConfirm: s, initialState: c }) {
453
+ let [l, u] = x(""), [d, f] = x(""), [p, m] = x(null), [h] = x(() => C(c) && typeof c == "string" ? {
454
454
  text: "",
455
455
  add: "",
456
456
  ariaLabel: "",
457
457
  url: c
458
458
  } : c);
459
- S(() => {
460
- e && D(h) && (u(h.url ?? ""), f(h.ariaLabel ?? ""));
461
- }, [e, h]);
462
- let g = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (m("Некорректный email адрес"), !1), v = (e) => {
459
+ v(() => {
460
+ t && C(h) && (u(h.url ?? ""), f(h.ariaLabel ?? ""));
461
+ }, [t, h]);
462
+ let g = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (m("Некорректный email адрес"), !1), _ = (e) => {
463
463
  if (e.preventDefault(), g(l)) {
464
464
  if (!d) {
465
465
  m("Добавьте описание для email");
466
466
  return;
467
467
  }
468
- i(`mailto:${l}`, "", "", d, !1), x();
468
+ s(`mailto:${l}`, "", "", d, !1), y();
469
469
  }
470
- }, x = () => {
471
- u(""), f(""), m(null), n();
470
+ }, y = () => {
471
+ u(""), f(""), m(null), o();
472
472
  };
473
- return /* @__PURE__ */ b(o, {
474
- isOpen: e,
475
- onClose: x,
473
+ return /* @__PURE__ */ O(i, {
474
+ isOpen: t,
475
+ onClose: y,
476
476
  title: "Ссылка на email",
477
477
  size: "md",
478
- children: [/* @__PURE__ */ y(s, { children: /* @__PURE__ */ b("div", {
479
- className: _("flexColumn", "gapMd"),
478
+ children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ O("div", {
479
+ className: S("flexColumn", "gapMd"),
480
480
  children: [
481
- /* @__PURE__ */ y(r, {
481
+ /* @__PURE__ */ D(n, {
482
482
  label: "Email адрес",
483
483
  value: l,
484
484
  onChange: u,
485
485
  placeholder: "some_email@mail.ru"
486
486
  }),
487
- p && /* @__PURE__ */ b("div", {
487
+ p && /* @__PURE__ */ O("div", {
488
488
  className: "textColorDanger",
489
489
  children: [
490
- /* @__PURE__ */ y("strong", { children: "Ошибка ввода:" }),
490
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
491
491
  " ",
492
- /* @__PURE__ */ y("span", {
492
+ /* @__PURE__ */ D("span", {
493
493
  className: "fontItalic",
494
494
  children: p
495
495
  })
496
496
  ]
497
497
  }),
498
- /* @__PURE__ */ y(r, {
498
+ /* @__PURE__ */ D(n, {
499
499
  label: "Текст для экранных читалок",
500
500
  value: d,
501
501
  onChange: f,
502
502
  placeholder: "Электронная почта руководителя городской думмы"
503
503
  })
504
504
  ]
505
- }) }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(t, {
505
+ }) }), /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(e, {
506
506
  appearance: "outline",
507
507
  tone: "error",
508
- onClick: x,
508
+ onClick: y,
509
509
  children: "Отмена"
510
- }), /* @__PURE__ */ y(t, {
510
+ }), /* @__PURE__ */ D(e, {
511
511
  appearance: "outline",
512
512
  tone: "success",
513
- onClick: v,
513
+ onClick: _,
514
514
  disabled: !l || !d,
515
515
  children: "Подтвердить"
516
516
  })] })]
@@ -518,21 +518,21 @@ function be({ isOpen: e, onClose: n, onConfirm: i, initialState: c }) {
518
518
  }
519
519
  //#endregion
520
520
  //#region src/text-editor/LinkDialog.tsx
521
- function $({ isOpen: i, onClose: c, onConfirm: l, initialState: u }) {
522
- let [d, f] = T(""), [p, m] = T(""), [h, g] = T(null), [_, v] = T(!1), [x] = T(() => D(u) && typeof u == "string" ? {
521
+ function $({ isOpen: s, onClose: c, onConfirm: l, initialState: u }) {
522
+ let [d, f] = x(""), [p, m] = x(""), [h, g] = x(null), [_, y] = x(!1), [b] = x(() => C(u) && typeof u == "string" ? {
523
523
  text: "",
524
524
  add: "",
525
525
  ariaLabel: "",
526
526
  url: u
527
527
  } : u);
528
- S(() => {
529
- i && D(x) && (f(x.url ?? ""), m(x.ariaLabel ?? ""));
530
- }, [i, x]);
531
- let C = (e) => {
528
+ v(() => {
529
+ s && C(b) && (f(b.url ?? ""), m(b.ariaLabel ?? ""));
530
+ }, [s, b]);
531
+ let S = (e) => {
532
532
  f(e), h && g(null);
533
- }, w = (e) => {
533
+ }, T = (e) => {
534
534
  e.preventDefault();
535
- let t = O(d);
535
+ let t = w(d);
536
536
  if (!t.isValid) {
537
537
  g(t.error);
538
538
  return;
@@ -545,52 +545,52 @@ function $({ isOpen: i, onClose: c, onConfirm: l, initialState: u }) {
545
545
  }, E = () => {
546
546
  f(""), m(""), g(null), c();
547
547
  };
548
- return /* @__PURE__ */ b(o, {
549
- isOpen: i,
548
+ return /* @__PURE__ */ O(i, {
549
+ isOpen: s,
550
550
  onClose: E,
551
551
  title: "Ссылка на внешний url",
552
552
  size: "md",
553
- children: [/* @__PURE__ */ y(s, { children: /* @__PURE__ */ b(e, {
553
+ children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ O(t, {
554
554
  gap: "md",
555
555
  children: [
556
- /* @__PURE__ */ y(r, {
556
+ /* @__PURE__ */ D(n, {
557
557
  label: "Полный URL адрес",
558
558
  value: d,
559
- onChange: C,
559
+ onChange: S,
560
560
  placeholder: "https://somesite.ru"
561
561
  }),
562
- h && /* @__PURE__ */ b("div", {
562
+ h && /* @__PURE__ */ O("div", {
563
563
  className: "textColorDanger",
564
564
  children: [
565
- /* @__PURE__ */ y("strong", { children: "Ошибка ввода:" }),
565
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
566
566
  " ",
567
- /* @__PURE__ */ y("span", {
567
+ /* @__PURE__ */ D("span", {
568
568
  className: "fontItalic",
569
569
  children: h
570
570
  })
571
571
  ]
572
572
  }),
573
- /* @__PURE__ */ y(r, {
573
+ /* @__PURE__ */ D(n, {
574
574
  label: "Текст для экранных читалок",
575
575
  value: p,
576
576
  onChange: m,
577
577
  placeholder: "Ссылка на официальный сайт городской думмы"
578
578
  }),
579
- /* @__PURE__ */ y(n, {
579
+ /* @__PURE__ */ D(o, {
580
580
  title: "Показать кнопку для генерации QR кода ссылки",
581
581
  value: _,
582
- onChange: v
582
+ onChange: y
583
583
  })
584
584
  ]
585
- }) }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(t, {
585
+ }) }), /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(e, {
586
586
  appearance: "outline",
587
587
  tone: "error",
588
588
  onClick: E,
589
589
  children: "Отмена"
590
- }), /* @__PURE__ */ y(t, {
590
+ }), /* @__PURE__ */ D(e, {
591
591
  appearance: "outline",
592
592
  tone: "success",
593
- onClick: w,
593
+ onClick: T,
594
594
  disabled: !d || !p,
595
595
  children: "Подтвердить"
596
596
  })] })]
@@ -598,65 +598,65 @@ function $({ isOpen: i, onClose: c, onConfirm: l, initialState: u }) {
598
598
  }
599
599
  //#endregion
600
600
  //#region src/text-editor/PhoneDialog.tsx
601
- function xe({ isOpen: n, onClose: i, onConfirm: c, initialState: l }) {
602
- let [u, d] = T(""), [f, p] = T(""), [m, h] = T(""), [g, v] = T(null), [x] = T(() => D(l) && typeof l == "string" ? {
601
+ function xe({ isOpen: o, onClose: s, onConfirm: c, initialState: l }) {
602
+ let [u, d] = x(""), [f, p] = x(""), [m, h] = x(""), [g, _] = x(null), [y] = x(() => C(l) && typeof l == "string" ? {
603
603
  text: "",
604
604
  add: "",
605
605
  ariaLabel: "",
606
606
  url: l
607
607
  } : l);
608
- S(() => {
609
- n && D(x) && (d((x.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "")), x.add ? p((x.add ?? "").replace(/\D/g, "")) : p((x.url ?? "").replace(/\D/g, "").slice(11)), h(x.ariaLabel ?? ""));
610
- }, [n, x]);
611
- let C = (e) => {
612
- e = e.replace(/\D/g, ""), e.length <= 10 ? (d(e), v(null)) : v("нельзя ввести более 10 цифр");
613
- }, w = (e) => e.length === 10 ? !0 : (v("номер телефона должен содержать 10 цифр"), !1), O = (e) => {
608
+ v(() => {
609
+ o && C(y) && (d((y.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "")), y.add ? p((y.add ?? "").replace(/\D/g, "")) : p((y.url ?? "").replace(/\D/g, "").slice(11)), h(y.ariaLabel ?? ""));
610
+ }, [o, y]);
611
+ let b = (e) => {
612
+ e = e.replace(/\D/g, ""), e.length <= 10 ? (d(e), _(null)) : _("нельзя ввести более 10 цифр");
613
+ }, w = (e) => e.length === 10 ? !0 : (_("номер телефона должен содержать 10 цифр"), !1), E = (e) => {
614
614
  if (e.preventDefault(), !w(u)) return;
615
615
  if (!m) {
616
- v("добавьте описание для телефона");
616
+ _("добавьте описание для телефона");
617
617
  return;
618
618
  }
619
- let t = E(u);
619
+ let t = T(u);
620
620
  c(`tel:${`+7${u}`}`, f ? `${t} доб. ${f}` : t, f, m, !1), k();
621
621
  }, k = () => {
622
- d(""), h(""), v(null), i();
622
+ d(""), h(""), _(null), s();
623
623
  };
624
- return /* @__PURE__ */ b(o, {
625
- isOpen: n,
624
+ return /* @__PURE__ */ O(i, {
625
+ isOpen: o,
626
626
  onClose: k,
627
627
  title: "Ссылка на телефон",
628
628
  size: "md",
629
- children: [/* @__PURE__ */ y(s, { children: /* @__PURE__ */ b(e, {
629
+ children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ O(t, {
630
630
  gap: "md",
631
631
  children: [
632
- /* @__PURE__ */ b("div", {
633
- className: _("flex", "alignItemsEnd", "gapSm"),
634
- children: [/* @__PURE__ */ y(r, {
632
+ /* @__PURE__ */ O("div", {
633
+ className: S("flex", "alignItemsEnd", "gapSm"),
634
+ children: [/* @__PURE__ */ D(n, {
635
635
  label: "Номер телефона без 7-ки",
636
636
  description: "Вводится только номер (10) цифр без каких-либо дополнительных символов. Ссылка будет привязана к текущему выделенному фрагменту текста. Поэтому текст самой ссылки можно оформить грамотно, например: +7 (3522) 12-34-56 доб. 100",
637
637
  value: u,
638
- onChange: C,
638
+ onChange: b,
639
639
  placeholder: "3522123456",
640
640
  className: "flex1"
641
- }), /* @__PURE__ */ y(r, {
641
+ }), /* @__PURE__ */ D(n, {
642
642
  label: "Добавочный номер",
643
643
  value: f,
644
644
  onChange: p,
645
645
  placeholder: "100"
646
646
  })]
647
647
  }),
648
- g && /* @__PURE__ */ b("div", {
648
+ g && /* @__PURE__ */ O("div", {
649
649
  className: "textColorDanger",
650
650
  children: [
651
- /* @__PURE__ */ y("strong", { children: "Ошибка ввода:" }),
651
+ /* @__PURE__ */ D("strong", { children: "Ошибка ввода:" }),
652
652
  " ",
653
- /* @__PURE__ */ y("span", {
653
+ /* @__PURE__ */ D("span", {
654
654
  className: "fontItalic",
655
655
  children: g
656
656
  })
657
657
  ]
658
658
  }),
659
- /* @__PURE__ */ y(r, {
659
+ /* @__PURE__ */ D(n, {
660
660
  label: "Текст для экранных читалок",
661
661
  description: "Обязательное поле для организации доступности ссылки для лиц с ОВЗ, использующих скринридеры",
662
662
  value: m,
@@ -664,15 +664,15 @@ function xe({ isOpen: n, onClose: i, onConfirm: c, initialState: l }) {
664
664
  placeholder: "Контактный телефон директора"
665
665
  })
666
666
  ]
667
- }) }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(t, {
667
+ }) }), /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(e, {
668
668
  appearance: "solid",
669
669
  tone: "error",
670
670
  onClick: k,
671
671
  children: "Отмена"
672
- }), /* @__PURE__ */ y(t, {
672
+ }), /* @__PURE__ */ D(e, {
673
673
  appearance: "solid",
674
674
  tone: "success",
675
- onClick: O,
675
+ onClick: E,
676
676
  disabled: !u || !m,
677
677
  children: "Подтвердить"
678
678
  })] })]
@@ -680,20 +680,20 @@ function xe({ isOpen: n, onClose: i, onConfirm: c, initialState: l }) {
680
680
  }
681
681
  //#endregion
682
682
  //#region src/text-editor/SemanticDialog.tsx
683
- function Se({ isOpen: n, onClose: i, onConfirm: c, config: l, initialText: u = "", initialState: d = {} }) {
684
- let [f, p] = T(u), [m, h] = T({}), [g, _] = T({}), [v, x] = T(!1);
685
- S(() => {
686
- if (n && !v) {
683
+ function Se({ isOpen: o, onClose: s, onConfirm: c, config: l, initialText: u = "", initialState: d = {} }) {
684
+ let [f, p] = x(u), [m, h] = x({}), [g, _] = x({}), [y, b] = x(!1);
685
+ v(() => {
686
+ if (o && !y) {
687
687
  let e = l.fields.reduce((e, t) => (e[t.name] = d[t.name] ?? "", e), {});
688
- h(e), _({}), x(!0);
689
- } else !n && v && x(!1);
688
+ h(e), _({}), b(!0);
689
+ } else !o && y && b(!1);
690
690
  }, [
691
- n,
691
+ o,
692
692
  l.fields,
693
693
  d,
694
- v
694
+ y
695
695
  ]);
696
- let C = (e, t) => {
696
+ let S = (e, t) => {
697
697
  h((n) => ({
698
698
  ...n,
699
699
  [e]: t
@@ -701,7 +701,7 @@ function Se({ isOpen: n, onClose: i, onConfirm: c, config: l, initialText: u = "
701
701
  ...t,
702
702
  [e]: null
703
703
  }));
704
- }, w = () => {
704
+ }, C = () => {
705
705
  let e = {}, t = !0;
706
706
  f.trim() || (e.text = "Обязательное поле", t = !1);
707
707
  for (let n of l.fields) {
@@ -714,25 +714,25 @@ function Se({ isOpen: n, onClose: i, onConfirm: c, config: l, initialText: u = "
714
714
  }
715
715
  return _(e), t;
716
716
  };
717
- return /* @__PURE__ */ b(o, {
718
- isOpen: n,
719
- onClose: i,
717
+ return /* @__PURE__ */ O(i, {
718
+ isOpen: o,
719
+ onClose: s,
720
720
  title: `Вставка <${l.tagName}>`,
721
721
  size: "md",
722
- children: [/* @__PURE__ */ y(s, { children: /* @__PURE__ */ b(e, {
722
+ children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ O(t, {
723
723
  gap: "md",
724
724
  children: [
725
- /* @__PURE__ */ b("div", { children: [
725
+ /* @__PURE__ */ O("div", { children: [
726
726
  l.description,
727
727
  ".",
728
- /* @__PURE__ */ y("br", {})
728
+ /* @__PURE__ */ D("br", {})
729
729
  ] }),
730
- /* @__PURE__ */ b("div", { children: [
731
- /* @__PURE__ */ y("strong", { children: "Пример:" }),
730
+ /* @__PURE__ */ O("div", { children: [
731
+ /* @__PURE__ */ D("strong", { children: "Пример:" }),
732
732
  " ",
733
733
  l.example
734
734
  ] }),
735
- /* @__PURE__ */ y(r, {
735
+ /* @__PURE__ */ D(n, {
736
736
  label: l.title,
737
737
  description: `Данный текст будет вставлен в редактор и обёрнуть в специальный семантический тег ${l.tagName}`,
738
738
  value: f,
@@ -740,26 +740,26 @@ function Se({ isOpen: n, onClose: i, onConfirm: c, config: l, initialText: u = "
740
740
  error: g.text ?? void 0,
741
741
  required: !0
742
742
  }),
743
- l.fields.map((e) => /* @__PURE__ */ y(r, {
743
+ l.fields.map((e) => /* @__PURE__ */ D(n, {
744
744
  label: e.label,
745
745
  description: e.description,
746
746
  placeholder: e.placeholder,
747
747
  value: m[e.name] ?? "",
748
- onChange: (t) => C(e.name, t),
748
+ onChange: (t) => S(e.name, t),
749
749
  error: g[e.name] ?? void 0,
750
750
  required: e.required
751
751
  }, e.name))
752
752
  ]
753
- }) }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(t, {
753
+ }) }), /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(e, {
754
754
  appearance: "solid",
755
755
  tone: "error",
756
- onClick: i,
756
+ onClick: s,
757
757
  children: "Отмена"
758
- }), /* @__PURE__ */ y(t, {
758
+ }), /* @__PURE__ */ D(e, {
759
759
  appearance: "solid",
760
760
  tone: "success",
761
761
  onClick: () => {
762
- w() && (c(l.tagName, f.trim(), m), i());
762
+ C() && (c(l.tagName, f.trim(), m), s());
763
763
  },
764
764
  children: "Подтвердить"
765
765
  })] })]
@@ -772,12 +772,12 @@ var Ce = {
772
772
  tagName: "abbr",
773
773
  title: "Аббревиатура",
774
774
  description: "Обозначает аббревиатуры и сокращения, при наведении покажет расшифровку",
775
- example: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("abbr", {
775
+ example: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("abbr", {
776
776
  title: "Национальное управление по аэронавтике и исследованию космического пространства",
777
777
  children: "НАСА"
778
- }), /* @__PURE__ */ y("div", {
778
+ }), /* @__PURE__ */ D("div", {
779
779
  className: "marginTopMd",
780
- children: /* @__PURE__ */ y("code", { children: "<abbr title=\"Национальное управление по аэронавтике и исследованию космического пространства\">НАСА</abbr>" })
780
+ children: /* @__PURE__ */ D("code", { children: "<abbr title=\"Национальное управление по аэронавтике и исследованию космического пространства\">НАСА</abbr>" })
781
781
  })] }),
782
782
  fields: [{
783
783
  name: "title",
@@ -791,15 +791,15 @@ var Ce = {
791
791
  tagName: "span",
792
792
  title: "Текст на другом языке",
793
793
  description: "Указывает язык фрагмента текста, если он отличается от основного языка страницы, скринридер прочитает это слово с французским произношением",
794
- example: /* @__PURE__ */ b(v, { children: [
795
- /* @__PURE__ */ y("span", {
794
+ example: /* @__PURE__ */ O(E, { children: [
795
+ /* @__PURE__ */ D("span", {
796
796
  lang: "fr",
797
797
  children: "Bonjour!"
798
798
  }),
799
799
  " — сказал турист.",
800
- /* @__PURE__ */ y("div", {
800
+ /* @__PURE__ */ D("div", {
801
801
  className: "marginTopMd",
802
- children: /* @__PURE__ */ y("code", { children: "<span lang=\"fr\">Bonjour!</span> — сказал турист." })
802
+ children: /* @__PURE__ */ D("code", { children: "<span lang=\"fr\">Bonjour!</span> — сказал турист." })
803
803
  })
804
804
  ] }),
805
805
  fields: [{
@@ -827,13 +827,13 @@ var Ce = {
827
827
  tagName: "cite",
828
828
  title: "Цитата источника",
829
829
  description: "Обозначает название книги, статьи, фильма или другого произведения, на которое вы ссылаетесь",
830
- example: /* @__PURE__ */ b(v, { children: [
830
+ example: /* @__PURE__ */ O(E, { children: [
831
831
  "По словам Эйнштейна: ",
832
- /* @__PURE__ */ y("cite", { children: "«Воображение важнее знания»" }),
832
+ /* @__PURE__ */ D("cite", { children: "«Воображение важнее знания»" }),
833
833
  ".",
834
- /* @__PURE__ */ y("div", {
834
+ /* @__PURE__ */ D("div", {
835
835
  className: "marginTopMd",
836
- children: /* @__PURE__ */ y("code", { children: "По словам Эйнштейна: <cite>«Воображение важнее знания»</cite>." })
836
+ children: /* @__PURE__ */ D("code", { children: "По словам Эйнштейна: <cite>«Воображение важнее знания»</cite>." })
837
837
  })
838
838
  ] }),
839
839
  fields: [{
@@ -848,14 +848,14 @@ var Ce = {
848
848
  tagName: "del",
849
849
  title: "Изменения в тексте",
850
850
  description: "Удаленный фрагмент",
851
- example: /* @__PURE__ */ b(v, { children: [
851
+ example: /* @__PURE__ */ O(E, { children: [
852
852
  "Проект сдачи: ",
853
- /* @__PURE__ */ y("del", { children: "1 июня" }),
853
+ /* @__PURE__ */ D("del", { children: "1 июня" }),
854
854
  " ",
855
- /* @__PURE__ */ y("ins", { children: "15 июня" }),
856
- /* @__PURE__ */ y("div", {
855
+ /* @__PURE__ */ D("ins", { children: "15 июня" }),
856
+ /* @__PURE__ */ D("div", {
857
857
  className: "marginTopMd",
858
- children: /* @__PURE__ */ y("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
858
+ children: /* @__PURE__ */ D("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
859
859
  })
860
860
  ] }),
861
861
  fields: [{
@@ -876,14 +876,14 @@ var Ce = {
876
876
  tagName: "ins",
877
877
  title: "Изменения в тексте",
878
878
  description: "Новый добавленный текст",
879
- example: /* @__PURE__ */ b(v, { children: [
879
+ example: /* @__PURE__ */ O(E, { children: [
880
880
  "Проект сдачи: ",
881
- /* @__PURE__ */ y("del", { children: "1 июня" }),
881
+ /* @__PURE__ */ D("del", { children: "1 июня" }),
882
882
  " ",
883
- /* @__PURE__ */ y("ins", { children: "15 июня" }),
884
- /* @__PURE__ */ y("div", {
883
+ /* @__PURE__ */ D("ins", { children: "15 июня" }),
884
+ /* @__PURE__ */ D("div", {
885
885
  className: "marginTopMd",
886
- children: /* @__PURE__ */ y("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
886
+ children: /* @__PURE__ */ D("code", { children: "Проект сдачи: <del>1 июня</del> <ins>15 июня</ins>" })
887
887
  })
888
888
  ] }),
889
889
  fields: [{
@@ -903,14 +903,14 @@ var Ce = {
903
903
  };
904
904
  //#endregion
905
905
  //#region src/text-editor/TimeDialog.tsx
906
- function we({ isOpen: n, onClose: c, onConfirm: l, initialState: u }) {
907
- let [d, f] = T("date"), [p, m] = T(""), [h, g] = T(""), [_, x] = T({}), w = C((e) => {
908
- f(e?.mode ?? "date"), m(e?.from ?? ""), g(e?.to ?? ""), x({});
906
+ function we({ isOpen: o, onClose: c, onConfirm: l, initialState: u }) {
907
+ let [d, f] = x("date"), [p, m] = x(""), [h, g] = x(""), [_, b] = x({}), S = y((e) => {
908
+ f(e?.mode ?? "date"), m(e?.from ?? ""), g(e?.to ?? ""), b({});
909
909
  });
910
- S(() => {
911
- n && w(u);
912
- }, [n, u]);
913
- let E = () => {
910
+ v(() => {
911
+ o && S(u);
912
+ }, [o, u]);
913
+ let C = () => {
914
914
  let e = {}, t = (e) => /^\d{4}-\d{2}-\d{2}$/.test(e), n = (e) => /^\d{2}:\d{2}$/.test(e), r = (e) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e), i = (e, i, a) => {
915
915
  if (!i) return `${e} обязательно`;
916
916
  if (a === "date" && !t(i)) return "Неверный формат даты (ГГГГ-ММ-ДД)";
@@ -937,52 +937,52 @@ function we({ isOpen: n, onClose: c, onConfirm: l, initialState: u }) {
937
937
  e.from = i("Начало", p, "datetime"), e.to = i("Окончание", h, "datetime");
938
938
  break;
939
939
  }
940
- return x(e), Object.values(e).every((e) => !e);
940
+ return b(e), Object.values(e).every((e) => !e);
941
941
  };
942
- return /* @__PURE__ */ b(o, {
943
- isOpen: n,
942
+ return /* @__PURE__ */ O(i, {
943
+ isOpen: o,
944
944
  onClose: c,
945
945
  title: "Вставка <time>",
946
946
  size: "md",
947
- children: [/* @__PURE__ */ y(s, { children: /* @__PURE__ */ b(e, {
947
+ children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ O(t, {
948
948
  gap: "md",
949
- children: [/* @__PURE__ */ b(i, {
949
+ children: [/* @__PURE__ */ O(s, {
950
950
  label: "Тип значения",
951
951
  value: d,
952
952
  onChange: f,
953
953
  children: [
954
- /* @__PURE__ */ y(i.Option, {
954
+ /* @__PURE__ */ D(s.Option, {
955
955
  label: "Дата",
956
956
  value: "date"
957
957
  }),
958
- /* @__PURE__ */ y(i.Option, {
958
+ /* @__PURE__ */ D(s.Option, {
959
959
  label: "Дата и время",
960
960
  value: "datetime"
961
961
  }),
962
- /* @__PURE__ */ y(i.Option, {
962
+ /* @__PURE__ */ D(s.Option, {
963
963
  label: "Время",
964
964
  value: "time"
965
965
  }),
966
- /* @__PURE__ */ y(i.Option, {
966
+ /* @__PURE__ */ D(s.Option, {
967
967
  label: "Диапазон дат",
968
968
  value: "range-date"
969
969
  }),
970
- /* @__PURE__ */ y(i.Option, {
970
+ /* @__PURE__ */ D(s.Option, {
971
971
  label: "Диапазон времени",
972
972
  value: "range-time"
973
973
  }),
974
- /* @__PURE__ */ y(i.Option, {
974
+ /* @__PURE__ */ D(s.Option, {
975
975
  label: "Диапазон даты и времени",
976
976
  value: "range-datetime"
977
977
  })
978
978
  ]
979
- }), /* @__PURE__ */ y(e, {
979
+ }), /* @__PURE__ */ D(t, {
980
980
  gap: "md",
981
981
  children: (() => {
982
982
  switch (d) {
983
983
  case "date":
984
984
  case "datetime":
985
- case "time": return /* @__PURE__ */ y(r, {
985
+ case "time": return /* @__PURE__ */ D(n, {
986
986
  label: "Значение",
987
987
  placeholder: d === "time" ? "09:00" : d === "date" ? "2025-05-18" : "2025-05-18T09:00",
988
988
  value: p,
@@ -991,13 +991,13 @@ function we({ isOpen: n, onClose: c, onConfirm: l, initialState: u }) {
991
991
  });
992
992
  case "range-time":
993
993
  case "range-date":
994
- case "range-datetime": return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(r, {
994
+ case "range-datetime": return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(n, {
995
995
  label: "С",
996
996
  placeholder: d.includes("time") ? "09:00" : d.includes("date") ? "2025-05-18" : "2025-05-18T09:00",
997
997
  value: p,
998
998
  onChange: m,
999
999
  error: _.from
1000
- }), /* @__PURE__ */ y(r, {
1000
+ }), /* @__PURE__ */ D(n, {
1001
1001
  label: "По",
1002
1002
  placeholder: d.includes("time") ? "17:00" : d.includes("date") ? "2025-05-22" : "2025-05-22T17:00",
1003
1003
  value: h,
@@ -1007,16 +1007,16 @@ function we({ isOpen: n, onClose: c, onConfirm: l, initialState: u }) {
1007
1007
  }
1008
1008
  })()
1009
1009
  })]
1010
- }) }), /* @__PURE__ */ b(a, { children: [/* @__PURE__ */ y(t, {
1010
+ }) }), /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(e, {
1011
1011
  appearance: "solid",
1012
1012
  tone: "error",
1013
1013
  onClick: c,
1014
1014
  children: "Отмена"
1015
- }), /* @__PURE__ */ y(t, {
1015
+ }), /* @__PURE__ */ D(e, {
1016
1016
  appearance: "solid",
1017
1017
  tone: "success",
1018
1018
  onClick: () => {
1019
- if (!E()) return;
1019
+ if (!C()) return;
1020
1020
  let e = h ? `${p}/${h}` : p;
1021
1021
  l("time", e, { datetime: e }), c();
1022
1022
  },
@@ -1028,35 +1028,35 @@ function we({ isOpen: n, onClose: c, onConfirm: l, initialState: u }) {
1028
1028
  //#region src/text-editor/TextEditorDialogs.tsx
1029
1029
  function Te({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n, onCloseLinkDialog: r, onCloseTagDialog: i, onAddLink: a, onAddLocalLink: o, onInsertSemanticTag: s, getCurrentSelectionText: c, getSelectedLinkState: d }) {
1030
1030
  let f = n;
1031
- return /* @__PURE__ */ b(v, { children: [e && /* @__PURE__ */ b(v, { children: [
1032
- f && /* @__PURE__ */ y(f, {
1031
+ return /* @__PURE__ */ O(E, { children: [e && /* @__PURE__ */ O(E, { children: [
1032
+ f && /* @__PURE__ */ D(f, {
1033
1033
  isOpen: e === u.LOCAL_LINK,
1034
1034
  onClose: r,
1035
1035
  onConfirm: o
1036
1036
  }),
1037
- /* @__PURE__ */ y($, {
1037
+ /* @__PURE__ */ D($, {
1038
1038
  isOpen: e === u.LINK,
1039
1039
  initialState: d(),
1040
1040
  onClose: r,
1041
1041
  onConfirm: a
1042
1042
  }),
1043
- /* @__PURE__ */ y(xe, {
1043
+ /* @__PURE__ */ D(xe, {
1044
1044
  isOpen: e === u.PHONE,
1045
1045
  initialState: d(),
1046
1046
  onClose: r,
1047
1047
  onConfirm: a
1048
1048
  }),
1049
- /* @__PURE__ */ y(be, {
1049
+ /* @__PURE__ */ D(be, {
1050
1050
  isOpen: e === u.EMAIL,
1051
1051
  initialState: d(),
1052
1052
  onClose: r,
1053
1053
  onConfirm: a
1054
1054
  })
1055
- ] }), t && (t === l.time ? /* @__PURE__ */ y(we, {
1055
+ ] }), t && (t === l.time ? /* @__PURE__ */ D(we, {
1056
1056
  isOpen: !0,
1057
1057
  onClose: i,
1058
1058
  onConfirm: s
1059
- }) : /* @__PURE__ */ y(Se, {
1059
+ }) : /* @__PURE__ */ D(Se, {
1060
1060
  isOpen: !0,
1061
1061
  onClose: i,
1062
1062
  onConfirm: s,
@@ -1067,11 +1067,11 @@ function Te({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n,
1067
1067
  //#endregion
1068
1068
  //#region src/text-editor/TextEditorLexicalClient.tsx
1069
1069
  function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapters: r }) {
1070
- let i = r?.LocalLinkDialogComponent, [a, o] = T(!1), [s, l] = T(p), [u, m] = T(null), [h, v] = T(null), [S, C] = T(null), E = c(e?.raw) ? e.raw : null, D = !!E, O = w(() => {
1071
- if (E) return JSON.stringify(E.editorState);
1072
- }, [E]), A = x((e) => {
1070
+ let i = r?.LocalLinkDialogComponent, [a, o] = x(!1), [s, l] = x(p), [u, m] = x(null), [h, v] = x(null), [y, C] = x(null), w = c(e?.raw) ? e.raw : null, T = !!w, E = b(() => {
1071
+ if (w) return JSON.stringify(w.editorState);
1072
+ }, [w]), A = _((e) => {
1073
1073
  console.error("Ошибка редактора Lexical", e);
1074
- }, []), j = x((e, n) => {
1074
+ }, []), j = _((e, n) => {
1075
1075
  let r = "";
1076
1076
  e.read(() => {
1077
1077
  r = k(n, null);
@@ -1079,9 +1079,9 @@ function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1079
1079
  raw: he(e),
1080
1080
  html: r
1081
1081
  });
1082
- }, [t]), M = x((e) => {
1082
+ }, [t]), M = _((e) => {
1083
1083
  v(e);
1084
- }, []), N = x((e) => {
1084
+ }, []), N = _((e) => {
1085
1085
  C(e);
1086
1086
  }, []), P = ye({
1087
1087
  editor: u,
@@ -1089,7 +1089,7 @@ function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1089
1089
  hasLocalLinkDialog: !!i,
1090
1090
  onOpenLinkDialog: M,
1091
1091
  onOpenTagDialog: N
1092
- }), F = w(() => ({
1092
+ }), F = b(() => ({
1093
1093
  namespace: "KtkTextEditorLexical",
1094
1094
  onError: A,
1095
1095
  theme: {
@@ -1109,16 +1109,16 @@ function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1109
1109
  K,
1110
1110
  X
1111
1111
  ],
1112
- editorState: O
1113
- }), [A, O]);
1114
- return /* @__PURE__ */ b("div", {
1112
+ editorState: E
1113
+ }), [A, E]);
1114
+ return /* @__PURE__ */ O("div", {
1115
1115
  className: Q.textEditor,
1116
- children: [/* @__PURE__ */ y("div", {
1117
- className: _(Q.textEditorContent, { [Q.focused]: a }),
1118
- children: /* @__PURE__ */ b(L, {
1116
+ children: [/* @__PURE__ */ D("div", {
1117
+ className: S(Q.textEditorContent, { [Q.focused]: a }),
1118
+ children: /* @__PURE__ */ O(L, {
1119
1119
  initialConfig: F,
1120
1120
  children: [
1121
- /* @__PURE__ */ y(d, {
1121
+ /* @__PURE__ */ D(d, {
1122
1122
  toolbarComponents: n,
1123
1123
  state: s,
1124
1124
  onBlockStyleToggle: P.handleBlockStyleToggle,
@@ -1130,37 +1130,37 @@ function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1130
1130
  onRedo: P.handleRedo,
1131
1131
  onCleanTag: P.handleCleanSemanticTag
1132
1132
  }),
1133
- /* @__PURE__ */ y(fe, {
1134
- contentEditable: /* @__PURE__ */ y(R, {
1133
+ /* @__PURE__ */ D(fe, {
1134
+ contentEditable: /* @__PURE__ */ D(R, {
1135
1135
  className: "lexicalEditorContentEditable",
1136
1136
  onFocus: () => o(!0),
1137
1137
  onBlur: () => o(!1)
1138
1138
  }),
1139
- placeholder: /* @__PURE__ */ y("div", {
1139
+ placeholder: /* @__PURE__ */ D("div", {
1140
1140
  className: "lexicalEditorPlaceholder",
1141
1141
  children: "Введите текст..."
1142
1142
  }),
1143
1143
  ErrorBoundary: z
1144
1144
  }),
1145
- /* @__PURE__ */ y(B, {}),
1146
- /* @__PURE__ */ y(V, {}),
1147
- /* @__PURE__ */ y(g, {
1145
+ /* @__PURE__ */ D(B, {}),
1146
+ /* @__PURE__ */ D(V, {}),
1147
+ /* @__PURE__ */ D(g, {
1148
1148
  onEditorReady: m,
1149
1149
  onStateChange: l
1150
1150
  }),
1151
- /* @__PURE__ */ y(f, {
1151
+ /* @__PURE__ */ D(f, {
1152
1152
  initialHTML: e?.html,
1153
- shouldSkip: D
1153
+ shouldSkip: T
1154
1154
  }),
1155
- /* @__PURE__ */ y(H, {
1155
+ /* @__PURE__ */ D(H, {
1156
1156
  onChange: j,
1157
1157
  ignoreSelectionChange: !0
1158
1158
  })
1159
1159
  ]
1160
1160
  })
1161
- }), /* @__PURE__ */ y(Te, {
1161
+ }), /* @__PURE__ */ D(Te, {
1162
1162
  linkTypeDialog: h,
1163
- tagTypeDialog: S,
1163
+ tagTypeDialog: y,
1164
1164
  localLinkDialogComponent: i,
1165
1165
  onCloseLinkDialog: () => v(null),
1166
1166
  onCloseTagDialog: () => C(null),
@@ -1175,4 +1175,4 @@ function Ee({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
1175
1175
  //#endregion
1176
1176
  export { Ee as TextEditorLexicalClient };
1177
1177
 
1178
- //# sourceMappingURL=TextEditorLexicalClient-Dt4eaPA3.js.map
1178
+ //# sourceMappingURL=TextEditorLexicalClient-CovUSRag.js.map