reactjs-tiptap-editor 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/lib/{ActionMenuButton-DLQyd_gx.cjs → ActionMenuButton-BRWFTb3V.cjs} +1 -1
  2. package/lib/{ActionMenuButton-BKOg7hkq.js → ActionMenuButton-DgjFjzC8.js} +8 -8
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +27 -29
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +4 -4
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +7 -7
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +4 -4
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +7 -7
  15. package/lib/CodeBlock.cjs +36 -36
  16. package/lib/CodeBlock.js +593 -596
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +4 -4
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +20 -20
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +9 -9
  23. package/lib/Drawer-1_PmP-H0.cjs +1 -0
  24. package/lib/{Drawer-DZ5jvmrX.js → Drawer-DNnkwfnI.js} +48 -49
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +5 -6
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +155 -150
  29. package/lib/Excalidraw-DreGyrmJ.cjs +1 -0
  30. package/lib/Excalidraw-StBAUhjt.js +355 -0
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +4 -5
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +4 -4
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +4 -4
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +6 -6
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +6 -6
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +6 -6
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +30 -30
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +36 -36
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +4 -4
  49. package/lib/{Icon-DUpv2cI6.cjs → Icon-B9hI3gal.cjs} +1 -1
  50. package/lib/{Icon-jKs8Hr6p.js → Icon-D3AdnMCj.js} +2 -2
  51. package/lib/Iframe-BDm-w-lg.cjs +1 -0
  52. package/lib/{Iframe-CmXkEqOd.js → Iframe-BIgQtyZo.js} +26 -28
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +4 -5
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +208 -229
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +98 -91
  59. package/lib/ImportWord.cjs +29 -29
  60. package/lib/ImportWord.js +568 -568
  61. package/lib/Indent-BzyTbroV.cjs +1 -0
  62. package/lib/Indent-CnPAv7eT.js +153 -0
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +4 -149
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +4 -4
  67. package/lib/Katex-BE_GROI2.cjs +4 -0
  68. package/lib/{Katex-DsYXsjSS.js → Katex-D-SUWkkU.js} +771 -783
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +4 -5
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +17 -17
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/LinkEditBlock-5NRB9DRC.cjs +5 -0
  76. package/lib/{LinkEditBlock-CB8yIffE.js → LinkEditBlock-DcxIMK_D.js} +221 -221
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +17 -19
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +24 -26
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +16 -16
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +4 -4
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +52 -52
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +125 -120
  89. package/lib/Strike.cjs +1 -1
  90. package/lib/Strike.js +4 -4
  91. package/lib/Table-BYg26eMf.cjs +9 -0
  92. package/lib/{Table-Db8TcQX8.js → Table-DtC2-bqx.js} +30 -30
  93. package/lib/Table.cjs +1 -1
  94. package/lib/Table.js +1 -1
  95. package/lib/TaskList.cjs +1 -1
  96. package/lib/TaskList.js +4 -4
  97. package/lib/TextAlign.cjs +1 -1
  98. package/lib/TextAlign.js +14 -13
  99. package/lib/TextDirection.cjs +1 -1
  100. package/lib/TextDirection.js +7 -7
  101. package/lib/TextUnderline.cjs +1 -1
  102. package/lib/TextUnderline.js +4 -4
  103. package/lib/{Twitter-CXmmjz9R.js → Twitter-B3n8vc45.js} +73 -75
  104. package/lib/Twitter-DJ6JzZPJ.cjs +1 -0
  105. package/lib/Twitter.cjs +1 -1
  106. package/lib/Twitter.js +3 -4
  107. package/lib/Video.cjs +1 -1
  108. package/lib/Video.js +41 -33
  109. package/lib/bubble.cjs +4 -2
  110. package/lib/bubble.d.ts +1 -310
  111. package/lib/bubble.js +8782 -1104
  112. package/lib/button-BTnV4TZ7.cjs +1 -0
  113. package/lib/{button-DXMsXUEn.js → button-DHZeIKzF.js} +6 -6
  114. package/lib/checkbox-BoBTXwkF.cjs +1 -0
  115. package/lib/checkbox-Dm8Nfwg8.js +27 -0
  116. package/lib/components/ActionButton.d.ts +23 -0
  117. package/lib/components/ActionMenuButton.d.ts +28 -0
  118. package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -0
  119. package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -0
  120. package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -0
  121. package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -0
  122. package/lib/components/Bubble/RichTextBubbleKatex.d.ts +1 -0
  123. package/lib/components/Bubble/RichTextBubbleLink.d.ts +6 -0
  124. package/lib/components/Bubble/RichTextBubbleMedia.d.ts +4 -0
  125. package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +1 -0
  126. package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -0
  127. package/lib/components/Bubble/RichTextBubbleTable.d.ts +5 -0
  128. package/lib/components/Bubble/RichTextBubbleText.d.ts +5 -0
  129. package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -0
  130. package/lib/components/Bubble/formatBubble.d.ts +55 -0
  131. package/lib/components/Bubble/index.d.ts +12 -0
  132. package/lib/components/ColorPicker.d.ts +11 -0
  133. package/lib/components/RichTextProvider.d.ts +8 -0
  134. package/lib/components/SizeSetter/SizeSetter.d.ts +13 -0
  135. package/lib/components/icons/Activity.d.ts +2 -0
  136. package/lib/components/icons/Animas.d.ts +2 -0
  137. package/lib/components/icons/AspectRatio.d.ts +2 -0
  138. package/lib/components/icons/Blockquote.d.ts +2 -0
  139. package/lib/components/icons/CodeView.d.ts +1 -0
  140. package/lib/components/icons/ColumnAddLeft.d.ts +1 -0
  141. package/lib/components/icons/ColumnAddRight.d.ts +1 -0
  142. package/lib/components/icons/DeleteColumn.d.ts +2 -0
  143. package/lib/components/icons/DeleteRow.d.ts +2 -0
  144. package/lib/components/icons/Direction.d.ts +1 -0
  145. package/lib/components/icons/Excalidraw.d.ts +1 -0
  146. package/lib/components/icons/ExportPdf.d.ts +1 -0
  147. package/lib/components/icons/ExportWord.d.ts +2 -0
  148. package/lib/components/icons/FileWordOutline.d.ts +2 -0
  149. package/lib/components/icons/Flag.d.ts +2 -0
  150. package/lib/components/icons/Food.d.ts +2 -0
  151. package/lib/components/icons/GIfIcon.d.ts +1 -0
  152. package/lib/components/icons/Html.d.ts +1 -0
  153. package/lib/components/icons/Icon.d.ts +8 -0
  154. package/lib/components/icons/IconColorFill.d.ts +5 -0
  155. package/lib/components/icons/IconHighlightFill.d.ts +3 -0
  156. package/lib/components/icons/ImportWord.d.ts +2 -0
  157. package/lib/components/icons/LeftToRight.d.ts +1 -0
  158. package/lib/components/icons/LineHeight.d.ts +2 -0
  159. package/lib/components/icons/MenuDown.d.ts +2 -0
  160. package/lib/components/icons/Mermaid.d.ts +1 -0
  161. package/lib/components/icons/NoFill.d.ts +1 -0
  162. package/lib/components/icons/Object.d.ts +2 -0
  163. package/lib/components/icons/RightToLeft.d.ts +1 -0
  164. package/lib/components/icons/SizeL.d.ts +2 -0
  165. package/lib/components/icons/SizeM.d.ts +2 -0
  166. package/lib/components/icons/SizeS.d.ts +2 -0
  167. package/lib/components/icons/Symbol.d.ts +2 -0
  168. package/lib/components/icons/Travel.d.ts +2 -0
  169. package/lib/components/icons/Twitter.d.ts +1 -0
  170. package/lib/components/icons/icons.d.ts +1 -0
  171. package/lib/components/icons/index.d.ts +12 -0
  172. package/lib/components/index.d.ts +6 -0
  173. package/lib/components/ui/button.d.ts +11 -0
  174. package/lib/components/ui/checkbox.d.ts +4 -0
  175. package/lib/components/ui/dialog.d.ts +19 -0
  176. package/lib/components/ui/dropdown-menu.d.ts +27 -0
  177. package/lib/components/ui/emoji-picker.d.ts +7 -0
  178. package/lib/components/ui/index.d.ts +14 -0
  179. package/lib/components/ui/input.d.ts +5 -0
  180. package/lib/components/ui/label.d.ts +5 -0
  181. package/lib/components/ui/popover.d.ts +6 -0
  182. package/lib/components/ui/select.d.ts +13 -0
  183. package/lib/components/ui/separator.d.ts +4 -0
  184. package/lib/components/ui/switch.d.ts +4 -0
  185. package/lib/components/ui/tabs.d.ts +7 -0
  186. package/lib/components/ui/textarea.d.ts +5 -0
  187. package/lib/components/ui/toast.d.ts +15 -0
  188. package/lib/components/ui/toaster.d.ts +1 -0
  189. package/lib/components/ui/toggle.d.ts +12 -0
  190. package/lib/components/ui/tooltip.d.ts +7 -0
  191. package/lib/components/ui/use-toast.d.ts +44 -0
  192. package/lib/constants/index.d.ts +47 -0
  193. package/lib/constants/resetCSS.d.ts +1 -0
  194. package/lib/dialog-DXF2Q8LZ.cjs +1 -0
  195. package/lib/dialog-xrO7nV_z.js +101 -0
  196. package/lib/dropdown-menu-Bh-wEgI8.cjs +1 -0
  197. package/lib/{dropdown-menu-BPp2Z_U-.js → dropdown-menu-ByeBPPyv.js} +32 -26
  198. package/lib/events.constant-B-VGURJp.cjs +1 -0
  199. package/lib/events.constant-CBPIqO_g.js +25 -0
  200. package/lib/extensions/Attachment/Attachment.d.ts +15 -0
  201. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -0
  202. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIconString.d.ts +1 -0
  203. package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -0
  204. package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -0
  205. package/lib/extensions/Attachment/index.d.ts +1 -0
  206. package/lib/extensions/Blockquote/Blockquote.d.ts +6 -0
  207. package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -0
  208. package/lib/extensions/Blockquote/index.d.ts +1 -0
  209. package/lib/extensions/Bold/Bold.d.ts +6 -0
  210. package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -0
  211. package/lib/extensions/Bold/index.d.ts +1 -0
  212. package/lib/extensions/BulletList/BulletList.d.ts +6 -0
  213. package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -0
  214. package/lib/extensions/BulletList/index.d.ts +1 -0
  215. package/lib/extensions/Clear/Clear.d.ts +6 -0
  216. package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -0
  217. package/lib/extensions/Clear/index.d.ts +1 -0
  218. package/lib/extensions/Code/Code.d.ts +6 -0
  219. package/lib/extensions/Code/components/RichTextCode.d.ts +1 -0
  220. package/lib/extensions/Code/index.d.ts +1 -0
  221. package/lib/extensions/CodeBlock/CodeBlock.d.ts +21 -0
  222. package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +1 -0
  223. package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +1 -0
  224. package/lib/extensions/CodeBlock/index.d.ts +1 -0
  225. package/lib/extensions/CodeView/CodeView.d.ts +17 -0
  226. package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -0
  227. package/lib/extensions/CodeView/index.d.ts +1 -0
  228. package/lib/extensions/Color/Color.d.ts +22 -0
  229. package/lib/extensions/Color/components/RichTextColor.d.ts +1 -0
  230. package/lib/extensions/Color/index.d.ts +1 -0
  231. package/lib/extensions/Column/Column.d.ts +17 -0
  232. package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -0
  233. package/lib/extensions/Column/index.d.ts +1 -0
  234. package/lib/extensions/Drawer/Drawer.d.ts +15 -0
  235. package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -0
  236. package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +28 -0
  237. package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -0
  238. package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +1 -0
  239. package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -0
  240. package/lib/extensions/Drawer/index.d.ts +1 -0
  241. package/lib/extensions/Emoji/Emoji.d.ts +3 -0
  242. package/lib/extensions/Emoji/components/EmojiList/EmojiNodeView.d.ts +3 -0
  243. package/lib/extensions/Emoji/components/EmojiList/emojis.d.ts +4 -0
  244. package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +1 -0
  245. package/lib/extensions/Emoji/index.d.ts +1 -0
  246. package/lib/extensions/Excalidraw/Excalidraw.d.ts +17 -0
  247. package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -0
  248. package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -0
  249. package/lib/extensions/Excalidraw/index.d.ts +1 -0
  250. package/lib/extensions/ExportPdf/ExportPdf.d.ts +21 -0
  251. package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -0
  252. package/lib/extensions/ExportPdf/index.d.ts +1 -0
  253. package/lib/extensions/ExportWord/ExportWord.d.ts +13 -0
  254. package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -0
  255. package/lib/extensions/ExportWord/index.d.ts +1 -0
  256. package/lib/extensions/FontFamily/FontFamily.d.ts +10 -0
  257. package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +15 -0
  258. package/lib/extensions/FontFamily/index.d.ts +1 -0
  259. package/lib/extensions/FontSize/FontSize.d.ts +32 -0
  260. package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +12 -0
  261. package/lib/extensions/FontSize/index.d.ts +1 -0
  262. package/lib/extensions/Heading/Heading.d.ts +6 -0
  263. package/lib/extensions/Heading/components/RichTextHeading.d.ts +15 -0
  264. package/lib/extensions/Heading/index.d.ts +1 -0
  265. package/lib/extensions/Highlight/Highlight.d.ts +18 -0
  266. package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +1 -0
  267. package/lib/extensions/Highlight/index.d.ts +1 -0
  268. package/lib/extensions/History/History.d.ts +6 -0
  269. package/lib/extensions/History/components/RichTextHistory.d.ts +2 -0
  270. package/lib/extensions/History/index.d.ts +1 -0
  271. package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +6 -0
  272. package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -0
  273. package/lib/extensions/HorizontalRule/index.d.ts +1 -0
  274. package/lib/extensions/Iframe/Iframe.d.ts +16 -0
  275. package/lib/extensions/Iframe/components/IframeNodeView.d.ts +2 -0
  276. package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -0
  277. package/lib/extensions/Iframe/index.d.ts +1 -0
  278. package/lib/extensions/Iframe/utils.d.ts +9 -0
  279. package/lib/extensions/Image/Image.d.ts +56 -0
  280. package/lib/extensions/Image/components/ImageCropper.d.ts +1 -0
  281. package/lib/extensions/Image/components/ImageView.d.ts +2 -0
  282. package/lib/extensions/Image/components/RichTextImage.d.ts +1 -0
  283. package/lib/extensions/Image/index.d.ts +1 -0
  284. package/lib/extensions/Image/store.d.ts +4 -0
  285. package/lib/extensions/ImageGif/ImageGif.d.ts +39 -0
  286. package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -0
  287. package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +1 -0
  288. package/lib/extensions/ImageGif/components/services.d.ts +458 -0
  289. package/lib/extensions/ImageGif/index.d.ts +1 -0
  290. package/lib/extensions/ImportWord/ImportWord.d.ts +18 -0
  291. package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -0
  292. package/lib/extensions/ImportWord/index.d.ts +1 -0
  293. package/lib/extensions/Indent/Indent.d.ts +23 -0
  294. package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -0
  295. package/lib/extensions/Indent/index.d.ts +1 -0
  296. package/lib/extensions/Italic/Italic.d.ts +6 -0
  297. package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -0
  298. package/lib/extensions/Italic/index.d.ts +1 -0
  299. package/lib/extensions/Katex/Katex.d.ts +17 -0
  300. package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -0
  301. package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -0
  302. package/lib/extensions/Katex/index.d.ts +1 -0
  303. package/lib/extensions/LineHeight/LineHeight.d.ts +7 -0
  304. package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -0
  305. package/lib/extensions/LineHeight/index.d.ts +1 -0
  306. package/lib/extensions/Link/Link.d.ts +6 -0
  307. package/lib/extensions/Link/components/LinkEditBlock.d.ts +8 -0
  308. package/lib/extensions/Link/components/LinkViewBlock.d.ts +8 -0
  309. package/lib/extensions/Link/components/RichTextLink.d.ts +1 -0
  310. package/lib/extensions/Link/index.d.ts +1 -0
  311. package/lib/extensions/Mention/Mention.d.ts +1 -0
  312. package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +10 -0
  313. package/lib/extensions/Mention/index.d.ts +1 -0
  314. package/lib/extensions/Mermaid/Mermaid.d.ts +15 -0
  315. package/lib/extensions/Mermaid/components/EditMermaidBlock.d.ts +8 -0
  316. package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +1 -0
  317. package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -0
  318. package/lib/extensions/Mermaid/index.d.ts +1 -0
  319. package/lib/extensions/MoreMark/MoreMark.d.ts +20 -0
  320. package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +14 -0
  321. package/lib/extensions/MoreMark/index.d.ts +1 -0
  322. package/lib/extensions/OrderedList/OrderedList.d.ts +6 -0
  323. package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -0
  324. package/lib/extensions/OrderedList/index.d.ts +1 -0
  325. package/lib/extensions/SearchAndReplace/SearchAndReplace.d.ts +36 -0
  326. package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -0
  327. package/lib/extensions/SearchAndReplace/index.d.ts +1 -0
  328. package/lib/extensions/SlashCommand/SlashCommand.d.ts +4 -0
  329. package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +6 -0
  330. package/lib/extensions/SlashCommand/components/SlashCommandNodeView.d.ts +3 -0
  331. package/lib/extensions/SlashCommand/index.d.ts +1 -0
  332. package/lib/extensions/SlashCommand/renderCommandListDefault.d.ts +7 -0
  333. package/lib/extensions/SlashCommand/types.d.ts +19 -0
  334. package/lib/extensions/Strike/Strike.d.ts +6 -0
  335. package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -0
  336. package/lib/extensions/Strike/index.d.ts +1 -0
  337. package/lib/extensions/Table/Table.d.ts +21 -0
  338. package/lib/extensions/Table/TableCellBackground.d.ts +14 -0
  339. package/lib/extensions/Table/components/CreateTablePopover.d.ts +7 -0
  340. package/lib/extensions/Table/components/RichTextTable.d.ts +1 -0
  341. package/lib/extensions/Table/index.d.ts +1 -0
  342. package/lib/extensions/TaskList/TaskList.d.ts +11 -0
  343. package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -0
  344. package/lib/extensions/TaskList/index.d.ts +1 -0
  345. package/lib/extensions/TextAlign/TextAlign.d.ts +17 -0
  346. package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +14 -0
  347. package/lib/extensions/TextAlign/index.d.ts +1 -0
  348. package/lib/extensions/TextDirection/TextDirection.d.ts +5 -0
  349. package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +15 -0
  350. package/lib/extensions/TextDirection/index.d.ts +1 -0
  351. package/lib/extensions/TextUnderline/TextUnderline.d.ts +6 -0
  352. package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -0
  353. package/lib/extensions/TextUnderline/index.d.ts +1 -0
  354. package/lib/extensions/Twitter/Twitter.d.ts +46 -0
  355. package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +6 -0
  356. package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +8 -0
  357. package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -0
  358. package/lib/extensions/Twitter/index.d.ts +1 -0
  359. package/lib/extensions/Video/Video.d.ts +66 -0
  360. package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -0
  361. package/lib/extensions/Video/index.d.ts +1 -0
  362. package/lib/extensions/Video/store.d.ts +4 -0
  363. package/lib/hooks/useActive.d.ts +21 -0
  364. package/lib/hooks/useAttributes.d.ts +2 -0
  365. package/lib/hooks/useButtonProps.d.ts +1 -0
  366. package/lib/hooks/useCopy.d.ts +5 -0
  367. package/lib/hooks/useExtension.d.ts +1 -0
  368. package/lib/hooks/useLocalStorage.d.ts +13 -0
  369. package/lib/index-B0fWAhpK.cjs +1 -0
  370. package/lib/{icons-Cllpys39.js → index-BQ17A_37.js} +173 -142
  371. package/lib/{index-Bnmd0WvY.js → index-BeUrdBxf.js} +23 -23
  372. package/lib/{index-DYkucCoF.js → index-CEbbM7Gx.js} +57 -76
  373. package/lib/{index-BPfVXs5_.js → index-ClAEwR0V.js} +580 -403
  374. package/lib/{index-CBce_TWY.js → index-D-FhWysc.js} +1 -1
  375. package/lib/{index-DzvuNTxo.cjs → index-DCJheRBq.cjs} +1 -1
  376. package/lib/index-DLqogznp.cjs +54 -0
  377. package/lib/index-DM3mpxB-.cjs +7 -0
  378. package/lib/index-DmOTQudI.cjs +1 -0
  379. package/lib/{index-N--9MohJ.cjs → index-DylewabB.cjs} +1 -1
  380. package/lib/{index-D-5U8dY8.cjs → index-TMqmkmT6.cjs} +1 -1
  381. package/lib/index-nFjllrEl.js +7390 -0
  382. package/lib/{index-D2TUfKkC.js → index-prphFVsp.js} +1 -1
  383. package/lib/index.cjs +3 -27
  384. package/lib/index.d.ts +1 -279
  385. package/lib/index.js +22 -129
  386. package/lib/input-CadAYBdT.cjs +1 -0
  387. package/lib/input-U-XBy56K.js +21 -0
  388. package/lib/{isNumber-ClPupm7P.cjs → isNumber-C2saEiG2.cjs} +1 -1
  389. package/lib/{isNumber-fpLGS0AZ.js → isNumber-CTm1pIvN.js} +1 -1
  390. package/lib/label-23SJWQ49.js +19 -0
  391. package/lib/label-C09fAh5p.cjs +1 -0
  392. package/lib/lib/utils.d.ts +2 -0
  393. package/lib/locale-bundle.cjs +1 -1
  394. package/lib/locale-bundle.d.ts +1 -6722
  395. package/lib/locale-bundle.js +1 -1
  396. package/lib/locales/en.d.ts +179 -0
  397. package/lib/locales/fi.d.ts +179 -0
  398. package/lib/locales/hu.d.ts +179 -0
  399. package/lib/{locale-bundle.d.cts → locales/index.d.ts} +5365 -6707
  400. package/lib/locales/pt-br.d.ts +179 -0
  401. package/lib/locales/vi.d.ts +179 -0
  402. package/lib/locales/zh-cn.d.ts +179 -0
  403. package/lib/plugins/image-upload.d.ts +13 -0
  404. package/lib/popover-C64cn4Pd.cjs +1 -0
  405. package/lib/{popover-CAuEW0Mr.js → popover-ydZ2mHXy.js} +7 -6
  406. package/lib/separator-BoKhvBG9.cjs +1 -0
  407. package/lib/separator-DqqiRHfY.js +241 -0
  408. package/lib/store/ProviderUniqueId.d.ts +6 -0
  409. package/lib/store/commandList.d.ts +2 -0
  410. package/lib/store/editor.d.ts +21 -0
  411. package/lib/store/fast-context.d.ts +7 -0
  412. package/lib/store/store.d.ts +23 -0
  413. package/lib/store-BPiGnThe.cjs +1 -0
  414. package/lib/store-Cu0gDf4G.js +10 -0
  415. package/lib/style.css +1 -1
  416. package/lib/{tabs-B5mVSN1I.js → tabs-BiYU230B.js} +3 -3
  417. package/lib/{tabs-BoLCMcCI.cjs → tabs-DebGjFBg.cjs} +1 -1
  418. package/lib/{textarea-DUUM1jZd.js → textarea--_-Ve3AB.js} +3 -3
  419. package/lib/textarea-BIkB9h_0.cjs +1 -0
  420. package/lib/theme/theme.d.ts +364 -0
  421. package/lib/theme.cjs +1 -0
  422. package/lib/theme.js +372 -0
  423. package/lib/{throttle-CdwDrFpn.js → throttle-CGM5M2yG.js} +10 -10
  424. package/lib/{throttle-qX7Yjtsg.cjs → throttle-DXN-aiH5.cjs} +1 -1
  425. package/lib/toggle-BWfca8kh.cjs +1 -0
  426. package/lib/{toggle-Cdp4IT2U.js → toggle-Crvm3Tcn.js} +20 -13
  427. package/lib/tooltip-9jtsGIcX.cjs +1 -0
  428. package/lib/tooltip-D_0vo9Xj.js +24 -0
  429. package/lib/types.d.ts +230 -0
  430. package/lib/{updatePosition-8Sdem5jb.cjs → updatePosition-C17CDdjq.cjs} +1 -1
  431. package/lib/{updatePosition-BPmcE0YD.js → updatePosition-DpMKxYdN.js} +1 -1
  432. package/lib/useButtonProps--5ytUuGi.js +136 -0
  433. package/lib/useButtonProps-DJ51kDtM.cjs +1 -0
  434. package/lib/utils/_event.d.ts +13 -0
  435. package/lib/utils/base64.d.ts +2 -0
  436. package/lib/utils/color.d.ts +7 -0
  437. package/lib/utils/columns.d.ts +14 -0
  438. package/lib/utils/customEvents/customEvents.d.ts +3 -0
  439. package/lib/utils/customEvents/events.constant.d.ts +9 -0
  440. package/lib/utils/delete-node.d.ts +2 -0
  441. package/lib/utils/dom-dataset.d.ts +28 -0
  442. package/lib/utils/download.d.ts +1 -0
  443. package/lib/utils/dynamicCSS.d.ts +25 -0
  444. package/lib/utils/editor-container-size.d.ts +4 -0
  445. package/lib/utils/file.d.ts +30 -0
  446. package/lib/utils/getRenderContainer.d.ts +3 -0
  447. package/lib/utils/indent.d.ts +14 -0
  448. package/lib/utils/is-mobile.d.ts +19 -0
  449. package/lib/utils/json.d.ts +2 -0
  450. package/lib/utils/lru-cache.d.ts +31 -0
  451. package/lib/utils/mitt.d.ts +21 -0
  452. package/lib/utils/node.d.ts +15 -0
  453. package/lib/utils/pdf.d.ts +3 -0
  454. package/lib/utils/plateform.d.ts +11 -0
  455. package/lib/utils/shortId.d.ts +1 -0
  456. package/lib/utils/storage.d.ts +2 -0
  457. package/lib/utils/updatePosition.d.ts +1 -0
  458. package/lib/utils/utils.d.ts +20 -0
  459. package/lib/utils/validateFile.d.ts +16 -0
  460. package/package.json +155 -169
  461. package/lib/Attachment.d.cts +0 -351
  462. package/lib/Attachment.d.ts +0 -351
  463. package/lib/Blockquote.d.cts +0 -350
  464. package/lib/Blockquote.d.ts +0 -350
  465. package/lib/Bold.d.cts +0 -350
  466. package/lib/Bold.d.ts +0 -350
  467. package/lib/BulletList.d.cts +0 -350
  468. package/lib/BulletList.d.ts +0 -350
  469. package/lib/Clear.d.cts +0 -349
  470. package/lib/Clear.d.ts +0 -349
  471. package/lib/Code.d.cts +0 -350
  472. package/lib/Code.d.ts +0 -350
  473. package/lib/CodeBlock.d.cts +0 -359
  474. package/lib/CodeBlock.d.ts +0 -359
  475. package/lib/CodeView.d.cts +0 -349
  476. package/lib/CodeView.d.ts +0 -349
  477. package/lib/Color.d.cts +0 -361
  478. package/lib/Color.d.ts +0 -361
  479. package/lib/Column.d.cts +0 -280
  480. package/lib/Column.d.ts +0 -280
  481. package/lib/Drawer-SRhwOc6T.cjs +0 -1
  482. package/lib/Drawer.d.cts +0 -351
  483. package/lib/Drawer.d.ts +0 -351
  484. package/lib/Emoji.d.cts +0 -279
  485. package/lib/Emoji.d.ts +0 -279
  486. package/lib/Excalidraw-DwBRXEtC.js +0 -345
  487. package/lib/Excalidraw-ZN3DQvDC.cjs +0 -1
  488. package/lib/Excalidraw.d.cts +0 -283
  489. package/lib/Excalidraw.d.ts +0 -283
  490. package/lib/ExportPdf.d.cts +0 -360
  491. package/lib/ExportPdf.d.ts +0 -360
  492. package/lib/ExportWord.d.cts +0 -348
  493. package/lib/ExportWord.d.ts +0 -348
  494. package/lib/FontFamily.d.cts +0 -372
  495. package/lib/FontFamily.d.ts +0 -372
  496. package/lib/FontSize.d.cts +0 -374
  497. package/lib/FontSize.d.ts +0 -374
  498. package/lib/Heading.d.cts +0 -364
  499. package/lib/Heading.d.ts +0 -364
  500. package/lib/Highlight.d.cts +0 -359
  501. package/lib/Highlight.d.ts +0 -359
  502. package/lib/History.d.cts +0 -352
  503. package/lib/History.d.ts +0 -352
  504. package/lib/HorizontalRule.d.cts +0 -350
  505. package/lib/HorizontalRule.d.ts +0 -350
  506. package/lib/Iframe-Cvca2G7X.cjs +0 -1
  507. package/lib/Iframe.d.cts +0 -275
  508. package/lib/Iframe.d.ts +0 -275
  509. package/lib/Image.d.cts +0 -384
  510. package/lib/Image.d.ts +0 -384
  511. package/lib/ImageGif.d.cts +0 -296
  512. package/lib/ImageGif.d.ts +0 -296
  513. package/lib/ImportWord.d.cts +0 -360
  514. package/lib/ImportWord.d.ts +0 -360
  515. package/lib/Indent.d.cts +0 -351
  516. package/lib/Indent.d.ts +0 -351
  517. package/lib/Italic.d.cts +0 -350
  518. package/lib/Italic.d.ts +0 -350
  519. package/lib/Katex-XfrNne6U.cjs +0 -4
  520. package/lib/Katex.d.cts +0 -284
  521. package/lib/Katex.d.ts +0 -284
  522. package/lib/LineHeight.d.cts +0 -350
  523. package/lib/LineHeight.d.ts +0 -350
  524. package/lib/Link.d.cts +0 -350
  525. package/lib/Link.d.ts +0 -350
  526. package/lib/LinkEditBlock-BZenZq-Z.cjs +0 -5
  527. package/lib/Mention.d.cts +0 -274
  528. package/lib/Mention.d.ts +0 -274
  529. package/lib/Mermaid.d.cts +0 -351
  530. package/lib/Mermaid.d.ts +0 -351
  531. package/lib/MoreMark.d.cts +0 -375
  532. package/lib/MoreMark.d.ts +0 -375
  533. package/lib/OrderedList.d.cts +0 -350
  534. package/lib/OrderedList.d.ts +0 -350
  535. package/lib/SearchAndReplace.d.cts +0 -292
  536. package/lib/SearchAndReplace.d.ts +0 -292
  537. package/lib/SlashCommand.d.cts +0 -309
  538. package/lib/SlashCommand.d.ts +0 -309
  539. package/lib/Strike.d.cts +0 -350
  540. package/lib/Strike.d.ts +0 -350
  541. package/lib/Table-B1j1Ebmh.cjs +0 -9
  542. package/lib/Table.d.cts +0 -371
  543. package/lib/Table.d.ts +0 -371
  544. package/lib/TaskList.d.cts +0 -356
  545. package/lib/TaskList.d.ts +0 -356
  546. package/lib/TextAlign.d.cts +0 -373
  547. package/lib/TextAlign.d.ts +0 -373
  548. package/lib/TextDirection.d.cts +0 -304
  549. package/lib/TextDirection.d.ts +0 -304
  550. package/lib/TextUnderline.d.cts +0 -350
  551. package/lib/TextUnderline.d.ts +0 -350
  552. package/lib/Twitter-CtVTIWJW.cjs +0 -1
  553. package/lib/Twitter.d.cts +0 -300
  554. package/lib/Twitter.d.ts +0 -300
  555. package/lib/Video.d.cts +0 -385
  556. package/lib/Video.d.ts +0 -385
  557. package/lib/bubble.d.cts +0 -310
  558. package/lib/button-B12K7BJ4.cjs +0 -1
  559. package/lib/clsx-C11secjj.cjs +0 -1
  560. package/lib/clsx-OuTLNxxd.js +0 -16
  561. package/lib/dialog-CaCS-W5S.cjs +0 -1
  562. package/lib/dialog-PtQivpHS.js +0 -100
  563. package/lib/dropdown-menu-CdSm4emp.cjs +0 -1
  564. package/lib/icons-CqHjeW5T.cjs +0 -1
  565. package/lib/index-BH4bc3jN.cjs +0 -33
  566. package/lib/index-DV5kbgRU.cjs +0 -1
  567. package/lib/index-Dfmm6FTT.cjs +0 -1
  568. package/lib/index-DnWWK9F_.js +0 -6374
  569. package/lib/index-DzcKxutn.js +0 -632
  570. package/lib/index-RfTlOzIr.cjs +0 -22
  571. package/lib/index.d.cts +0 -279
  572. package/lib/input-_ECRfn3Y.cjs +0 -1
  573. package/lib/input-wJ9PDEzZ.js +0 -21
  574. package/lib/label-BkgAe7IY.cjs +0 -1
  575. package/lib/label-CGdLYWv7.js +0 -19
  576. package/lib/popover-BgmUNMHj.cjs +0 -1
  577. package/lib/separator-CuBW_w98.js +0 -328
  578. package/lib/separator-DRIrVZ2N.cjs +0 -1
  579. package/lib/store-DX599H5W.js +0 -10
  580. package/lib/store-WStcMOiW.cjs +0 -1
  581. package/lib/switch-CnLJ7Y-b.cjs +0 -1
  582. package/lib/switch-Coix_FA1.js +0 -27
  583. package/lib/textarea-B-6zTKQz.cjs +0 -1
  584. package/lib/theme-B7aAsK_T.js +0 -15
  585. package/lib/theme-D8_cxGqB.cjs +0 -1
  586. package/lib/toggle-D41PzQLJ.cjs +0 -1
  587. package/lib/tooltip-BuEiE96N.cjs +0 -1
  588. package/lib/tooltip-CopwsU8q.js +0 -23
  589. package/lib/useButtonProps-BsEd4zYM.js +0 -141
  590. package/lib/useButtonProps-C6Vpn190.cjs +0 -1
@@ -1,86 +1,88 @@
1
- import { c as pe } from "./clsx-OuTLNxxd.js";
2
- import { jsx as A, Fragment as oe, jsxs as be } from "react/jsx-runtime";
3
- import { createContext as ge, useContext as fe, useSyncExternalStore as me, useRef as ee, useCallback as F, memo as he, useEffect as V } from "react";
4
- import { k as ne, E as se, x as xe, a as ye } from "./index-DYkucCoF.js";
5
- const H = "-", ve = (e) => {
6
- const r = Ce(e), {
1
+ import { C as Ee } from "./index-nFjllrEl.js";
2
+ import { jsx as M, Fragment as X, jsxs as ze } from "react/jsx-runtime";
3
+ import { useCallback as E, useState as Ae, useEffect as k, useRef as Q, createContext as ke, useContext as Re, useSyncExternalStore as Me, memo as Pe } from "react";
4
+ import { x as Ne, a as Ge } from "./index-CEbbM7Gx.js";
5
+ import { THEME as le } from "./theme.js";
6
+ import { l as _, E as W } from "./events.constant-CBPIqO_g.js";
7
+ const Z = "-", Te = (e) => {
8
+ const r = Le(e), {
7
9
  conflictingClassGroups: t,
8
- conflictingClassGroupModifiers: n
10
+ conflictingClassGroupModifiers: o
9
11
  } = e;
10
12
  return {
11
13
  getClassGroupId: (a) => {
12
- const s = a.split(H);
13
- return s[0] === "" && s.length !== 1 && s.shift(), ae(s, r) || we(a);
14
+ const s = a.split(Z);
15
+ return s[0] === "" && s.length !== 1 && s.shift(), ge(s, r) || Ie(a);
14
16
  },
15
17
  getConflictingClassGroupIds: (a, s) => {
16
- const u = t[a] || [];
17
- return s && n[a] ? [...u, ...n[a]] : u;
18
+ const c = t[a] || [];
19
+ return s && o[a] ? [...c, ...o[a]] : c;
18
20
  }
19
21
  };
20
- }, ae = (e, r) => {
22
+ }, ge = (e, r) => {
21
23
  var a;
22
24
  if (e.length === 0)
23
25
  return r.classGroupId;
24
- const t = e[0], n = r.nextPart.get(t), l = n ? ae(e.slice(1), n) : void 0;
25
- if (l)
26
- return l;
26
+ const t = e[0], o = r.nextPart.get(t), i = o ? ge(e.slice(1), o) : void 0;
27
+ if (i)
28
+ return i;
27
29
  if (r.validators.length === 0)
28
30
  return;
29
- const o = e.join(H);
31
+ const n = e.join(Z);
30
32
  return (a = r.validators.find(({
31
33
  validator: s
32
- }) => s(o))) == null ? void 0 : a.classGroupId;
33
- }, re = /^\[(.+)\]$/, we = (e) => {
34
- if (re.test(e)) {
35
- const r = re.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
34
+ }) => s(n))) == null ? void 0 : a.classGroupId;
35
+ }, ce = /^\[(.+)\]$/, Ie = (e) => {
36
+ if (ce.test(e)) {
37
+ const r = ce.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
36
38
  if (t)
37
39
  return "arbitrary.." + t;
38
40
  }
39
- }, Ce = (e) => {
41
+ }, Le = (e) => {
40
42
  const {
41
43
  theme: r,
42
44
  prefix: t
43
- } = e, n = {
45
+ } = e, o = {
44
46
  nextPart: /* @__PURE__ */ new Map(),
45
47
  validators: []
46
48
  };
47
- return Ee(Object.entries(e.classGroups), t).forEach(([o, a]) => {
48
- q(a, n, o, r);
49
- }), n;
50
- }, q = (e, r, t, n) => {
51
- e.forEach((l) => {
52
- if (typeof l == "string") {
53
- const o = l === "" ? r : te(r, l);
54
- o.classGroupId = t;
49
+ return Oe(Object.entries(e.classGroups), t).forEach(([n, a]) => {
50
+ Y(a, o, n, r);
51
+ }), o;
52
+ }, Y = (e, r, t, o) => {
53
+ e.forEach((i) => {
54
+ if (typeof i == "string") {
55
+ const n = i === "" ? r : de(r, i);
56
+ n.classGroupId = t;
55
57
  return;
56
58
  }
57
- if (typeof l == "function") {
58
- if (ke(l)) {
59
- q(l(n), r, t, n);
59
+ if (typeof i == "function") {
60
+ if (je(i)) {
61
+ Y(i(o), r, t, o);
60
62
  return;
61
63
  }
62
64
  r.validators.push({
63
- validator: l,
65
+ validator: i,
64
66
  classGroupId: t
65
67
  });
66
68
  return;
67
69
  }
68
- Object.entries(l).forEach(([o, a]) => {
69
- q(a, te(r, o), t, n);
70
+ Object.entries(i).forEach(([n, a]) => {
71
+ Y(a, de(r, n), t, o);
70
72
  });
71
73
  });
72
- }, te = (e, r) => {
74
+ }, de = (e, r) => {
73
75
  let t = e;
74
- return r.split(H).forEach((n) => {
75
- t.nextPart.has(n) || t.nextPart.set(n, {
76
+ return r.split(Z).forEach((o) => {
77
+ t.nextPart.has(o) || t.nextPart.set(o, {
76
78
  nextPart: /* @__PURE__ */ new Map(),
77
79
  validators: []
78
- }), t = t.nextPart.get(n);
80
+ }), t = t.nextPart.get(o);
79
81
  }), t;
80
- }, ke = (e) => e.isThemeGetter, Ee = (e, r) => r ? e.map(([t, n]) => {
81
- const l = n.map((o) => typeof o == "string" ? r + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, s]) => [r + a, s])) : o);
82
- return [t, l];
83
- }) : e, Se = (e) => {
82
+ }, je = (e) => e.isThemeGetter, Oe = (e, r) => r ? e.map(([t, o]) => {
83
+ const i = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, s]) => [r + a, s])) : n);
84
+ return [t, i];
85
+ }) : e, $e = (e) => {
84
86
  if (e < 1)
85
87
  return {
86
88
  get: () => {
@@ -88,179 +90,179 @@ const H = "-", ve = (e) => {
88
90
  set: () => {
89
91
  }
90
92
  };
91
- let r = 0, t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
92
- const l = (o, a) => {
93
- t.set(o, a), r++, r > e && (r = 0, n = t, t = /* @__PURE__ */ new Map());
93
+ let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
94
+ const i = (n, a) => {
95
+ t.set(n, a), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
94
96
  };
95
97
  return {
96
- get(o) {
97
- let a = t.get(o);
98
+ get(n) {
99
+ let a = t.get(n);
98
100
  if (a !== void 0)
99
101
  return a;
100
- if ((a = n.get(o)) !== void 0)
101
- return l(o, a), a;
102
+ if ((a = o.get(n)) !== void 0)
103
+ return i(n, a), a;
102
104
  },
103
- set(o, a) {
104
- t.has(o) ? t.set(o, a) : l(o, a);
105
+ set(n, a) {
106
+ t.has(n) ? t.set(n, a) : i(n, a);
105
107
  }
106
108
  };
107
- }, le = "!", ze = (e) => {
109
+ }, be = "!", _e = (e) => {
108
110
  const {
109
111
  separator: r,
110
112
  experimentalParseClassName: t
111
- } = e, n = r.length === 1, l = r[0], o = r.length, a = (s) => {
112
- const u = [];
113
- let g = 0, b = 0, h;
114
- for (let p = 0; p < s.length; p++) {
115
- let m = s[p];
116
- if (g === 0) {
117
- if (m === l && (n || s.slice(p, p + o) === r)) {
118
- u.push(s.slice(b, p)), b = p + o;
113
+ } = e, o = r.length === 1, i = r[0], n = r.length, a = (s) => {
114
+ const c = [];
115
+ let u = 0, p = 0, f;
116
+ for (let h = 0; h < s.length; h++) {
117
+ let w = s[h];
118
+ if (u === 0) {
119
+ if (w === i && (o || s.slice(h, h + n) === r)) {
120
+ c.push(s.slice(p, h)), p = h + n;
119
121
  continue;
120
122
  }
121
- if (m === "/") {
122
- h = p;
123
+ if (w === "/") {
124
+ f = h;
123
125
  continue;
124
126
  }
125
127
  }
126
- m === "[" ? g++ : m === "]" && g--;
128
+ w === "[" ? u++ : w === "]" && u--;
127
129
  }
128
- const y = u.length === 0 ? s : s.substring(b), w = y.startsWith(le), v = w ? y.substring(1) : y, f = h && h > b ? h - b : void 0;
130
+ const d = c.length === 0 ? s : s.substring(p), m = d.startsWith(be), y = m ? d.substring(1) : d, x = f && f > p ? f - p : void 0;
129
131
  return {
130
- modifiers: u,
131
- hasImportantModifier: w,
132
- baseClassName: v,
133
- maybePostfixModifierPosition: f
132
+ modifiers: c,
133
+ hasImportantModifier: m,
134
+ baseClassName: y,
135
+ maybePostfixModifierPosition: x
134
136
  };
135
137
  };
136
138
  return t ? (s) => t({
137
139
  className: s,
138
140
  parseClassName: a
139
141
  }) : a;
140
- }, Ae = (e) => {
142
+ }, We = (e) => {
141
143
  if (e.length <= 1)
142
144
  return e;
143
145
  const r = [];
144
146
  let t = [];
145
- return e.forEach((n) => {
146
- n[0] === "[" ? (r.push(...t.sort(), n), t = []) : t.push(n);
147
+ return e.forEach((o) => {
148
+ o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
147
149
  }), r.push(...t.sort()), r;
148
- }, Pe = (e) => ({
149
- cache: Se(e.cacheSize),
150
- parseClassName: ze(e),
151
- ...ve(e)
152
- }), Me = /\s+/, Ge = (e, r) => {
150
+ }, Fe = (e) => ({
151
+ cache: $e(e.cacheSize),
152
+ parseClassName: _e(e),
153
+ ...Te(e)
154
+ }), He = /\s+/, Be = (e, r) => {
153
155
  const {
154
156
  parseClassName: t,
155
- getClassGroupId: n,
156
- getConflictingClassGroupIds: l
157
- } = r, o = [], a = e.trim().split(Me);
157
+ getClassGroupId: o,
158
+ getConflictingClassGroupIds: i
159
+ } = r, n = [], a = e.trim().split(He);
158
160
  let s = "";
159
- for (let u = a.length - 1; u >= 0; u -= 1) {
160
- const g = a[u], {
161
- modifiers: b,
162
- hasImportantModifier: h,
163
- baseClassName: y,
164
- maybePostfixModifierPosition: w
165
- } = t(g);
166
- let v = !!w, f = n(v ? y.substring(0, w) : y);
167
- if (!f) {
168
- if (!v) {
169
- s = g + (s.length > 0 ? " " + s : s);
161
+ for (let c = a.length - 1; c >= 0; c -= 1) {
162
+ const u = a[c], {
163
+ modifiers: p,
164
+ hasImportantModifier: f,
165
+ baseClassName: d,
166
+ maybePostfixModifierPosition: m
167
+ } = t(u);
168
+ let y = !!m, x = o(y ? d.substring(0, m) : d);
169
+ if (!x) {
170
+ if (!y) {
171
+ s = u + (s.length > 0 ? " " + s : s);
170
172
  continue;
171
173
  }
172
- if (f = n(y), !f) {
173
- s = g + (s.length > 0 ? " " + s : s);
174
+ if (x = o(d), !x) {
175
+ s = u + (s.length > 0 ? " " + s : s);
174
176
  continue;
175
177
  }
176
- v = !1;
178
+ y = !1;
177
179
  }
178
- const p = Ae(b).join(":"), m = h ? p + le : p, x = m + f;
179
- if (o.includes(x))
180
+ const h = We(p).join(":"), w = f ? h + be : h, v = w + x;
181
+ if (n.includes(v))
180
182
  continue;
181
- o.push(x);
182
- const G = l(f, v);
183
- for (let z = 0; z < G.length; ++z) {
184
- const L = G[z];
185
- o.push(m + L);
183
+ n.push(v);
184
+ const G = i(x, y);
185
+ for (let R = 0; R < G.length; ++R) {
186
+ const j = G[R];
187
+ n.push(w + j);
186
188
  }
187
- s = g + (s.length > 0 ? " " + s : s);
189
+ s = u + (s.length > 0 ? " " + s : s);
188
190
  }
189
191
  return s;
190
192
  };
191
- function Re() {
192
- let e = 0, r, t, n = "";
193
+ function Ue() {
194
+ let e = 0, r, t, o = "";
193
195
  for (; e < arguments.length; )
194
- (r = arguments[e++]) && (t = ie(r)) && (n && (n += " "), n += t);
195
- return n;
196
+ (r = arguments[e++]) && (t = me(r)) && (o && (o += " "), o += t);
197
+ return o;
196
198
  }
197
- const ie = (e) => {
199
+ const me = (e) => {
198
200
  if (typeof e == "string")
199
201
  return e;
200
202
  let r, t = "";
201
- for (let n = 0; n < e.length; n++)
202
- e[n] && (r = ie(e[n])) && (t && (t += " "), t += r);
203
+ for (let o = 0; o < e.length; o++)
204
+ e[o] && (r = me(e[o])) && (t && (t += " "), t += r);
203
205
  return t;
204
206
  };
205
- function Ie(e, ...r) {
206
- let t, n, l, o = a;
207
- function a(u) {
208
- const g = r.reduce((b, h) => h(b), e());
209
- return t = Pe(g), n = t.cache.get, l = t.cache.set, o = s, s(u);
207
+ function Ve(e, ...r) {
208
+ let t, o, i, n = a;
209
+ function a(c) {
210
+ const u = r.reduce((p, f) => f(p), e());
211
+ return t = Fe(u), o = t.cache.get, i = t.cache.set, n = s, s(c);
210
212
  }
211
- function s(u) {
212
- const g = n(u);
213
- if (g)
214
- return g;
215
- const b = Ge(u, t);
216
- return l(u, b), b;
213
+ function s(c) {
214
+ const u = o(c);
215
+ if (u)
216
+ return u;
217
+ const p = Be(c, t);
218
+ return i(c, p), p;
217
219
  }
218
220
  return function() {
219
- return o(Re.apply(null, arguments));
221
+ return n(Ue.apply(null, arguments));
220
222
  };
221
223
  }
222
- const c = (e) => {
224
+ const g = (e) => {
223
225
  const r = (t) => t[e] || [];
224
226
  return r.isThemeGetter = !0, r;
225
- }, ce = /^\[(?:([a-z-]+):)?(.+)\]$/i, Te = /^\d+\/\d+$/, je = /* @__PURE__ */ new Set(["px", "full", "screen"]), Le = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ne = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, We = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ve = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _e = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, k = (e) => P(e) || je.has(e) || Te.test(e), E = (e) => M(e, "length", Je), P = (e) => !!e && !Number.isNaN(Number(e)), B = (e) => M(e, "number", P), I = (e) => !!e && Number.isInteger(Number(e)), Ue = (e) => e.endsWith("%") && P(e.slice(0, -1)), i = (e) => ce.test(e), S = (e) => Le.test(e), Oe = /* @__PURE__ */ new Set(["length", "size", "percentage"]), $e = (e) => M(e, Oe, de), Fe = (e) => M(e, "position", de), Be = /* @__PURE__ */ new Set(["image", "url"]), qe = (e) => M(e, Be, Ze), He = (e) => M(e, "", Xe), T = () => !0, M = (e, r, t) => {
226
- const n = ce.exec(e);
227
- return n ? n[1] ? typeof r == "string" ? n[1] === r : r.has(n[1]) : t(n[2]) : !1;
228
- }, Je = (e) => (
227
+ }, he = /^\[(?:([a-z-]+):)?(.+)\]$/i, qe = /^\d+\/\d+$/, Je = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ye = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ke = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Xe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ze = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => P(e) || Je.has(e) || qe.test(e), z = (e) => N(e, "length", ir), P = (e) => !!e && !Number.isNaN(Number(e)), V = (e) => N(e, "number", P), I = (e) => !!e && Number.isInteger(Number(e)), De = (e) => e.endsWith("%") && P(e.slice(0, -1)), l = (e) => he.test(e), A = (e) => Qe.test(e), er = /* @__PURE__ */ new Set(["length", "size", "percentage"]), rr = (e) => N(e, er, xe), tr = (e) => N(e, "position", xe), or = /* @__PURE__ */ new Set(["image", "url"]), nr = (e) => N(e, or, lr), sr = (e) => N(e, "", ar), L = () => !0, N = (e, r, t) => {
228
+ const o = he.exec(e);
229
+ return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
230
+ }, ir = (e) => (
229
231
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
230
232
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
231
233
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
232
- Ne.test(e) && !We.test(e)
233
- ), de = () => !1, Xe = (e) => Ve.test(e), Ze = (e) => _e.test(e), Ke = () => {
234
- const e = c("colors"), r = c("spacing"), t = c("blur"), n = c("brightness"), l = c("borderColor"), o = c("borderRadius"), a = c("borderSpacing"), s = c("borderWidth"), u = c("contrast"), g = c("grayscale"), b = c("hueRotate"), h = c("invert"), y = c("gap"), w = c("gradientColorStops"), v = c("gradientColorStopPositions"), f = c("inset"), p = c("margin"), m = c("opacity"), x = c("padding"), G = c("saturate"), z = c("scale"), L = c("sepia"), J = c("skew"), X = c("space"), Z = c("translate"), _ = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", i, r], d = () => [i, r], K = () => ["", k, E], N = () => ["auto", P, i], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], R = () => ["", "0", i], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [P, i];
234
+ Ye.test(e) && !Ke.test(e)
235
+ ), xe = () => !1, ar = (e) => Xe.test(e), lr = (e) => Ze.test(e), cr = () => {
236
+ const e = g("colors"), r = g("spacing"), t = g("blur"), o = g("brightness"), i = g("borderColor"), n = g("borderRadius"), a = g("borderSpacing"), s = g("borderWidth"), c = g("contrast"), u = g("grayscale"), p = g("hueRotate"), f = g("invert"), d = g("gap"), m = g("gradientColorStops"), y = g("gradientColorStopPositions"), x = g("inset"), h = g("margin"), w = g("opacity"), v = g("padding"), G = g("saturate"), R = g("scale"), j = g("sepia"), re = g("skew"), te = g("space"), oe = g("translate"), F = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", l, r], b = () => [l, r], ne = () => ["", S, z], O = () => ["auto", P, l], se = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], T = () => ["", "0", l], ae = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [P, l];
235
237
  return {
236
238
  cacheSize: 500,
237
239
  separator: ":",
238
240
  theme: {
239
- colors: [T],
240
- spacing: [k, E],
241
- blur: ["none", "", S, i],
241
+ colors: [L],
242
+ spacing: [S, z],
243
+ blur: ["none", "", A, l],
242
244
  brightness: C(),
243
245
  borderColor: [e],
244
- borderRadius: ["none", "", "full", S, i],
245
- borderSpacing: d(),
246
- borderWidth: K(),
246
+ borderRadius: ["none", "", "full", A, l],
247
+ borderSpacing: b(),
248
+ borderWidth: ne(),
247
249
  contrast: C(),
248
- grayscale: R(),
250
+ grayscale: T(),
249
251
  hueRotate: C(),
250
- invert: R(),
251
- gap: d(),
252
+ invert: T(),
253
+ gap: b(),
252
254
  gradientColorStops: [e],
253
- gradientColorStopPositions: [Ue, E],
254
- inset: O(),
255
- margin: O(),
255
+ gradientColorStopPositions: [De, z],
256
+ inset: B(),
257
+ margin: B(),
256
258
  opacity: C(),
257
- padding: d(),
259
+ padding: b(),
258
260
  saturate: C(),
259
261
  scale: C(),
260
- sepia: R(),
262
+ sepia: T(),
261
263
  skew: C(),
262
- space: d(),
263
- translate: d()
264
+ space: b(),
265
+ translate: b()
264
266
  },
265
267
  classGroups: {
266
268
  // Layout
@@ -269,7 +271,7 @@ const c = (e) => {
269
271
  * @see https://tailwindcss.com/docs/aspect-ratio
270
272
  */
271
273
  aspect: [{
272
- aspect: ["auto", "square", "video", i]
274
+ aspect: ["auto", "square", "video", l]
273
275
  }],
274
276
  /**
275
277
  * Container
@@ -281,21 +283,21 @@ const c = (e) => {
281
283
  * @see https://tailwindcss.com/docs/columns
282
284
  */
283
285
  columns: [{
284
- columns: [S]
286
+ columns: [A]
285
287
  }],
286
288
  /**
287
289
  * Break After
288
290
  * @see https://tailwindcss.com/docs/break-after
289
291
  */
290
292
  "break-after": [{
291
- "break-after": D()
293
+ "break-after": ae()
292
294
  }],
293
295
  /**
294
296
  * Break Before
295
297
  * @see https://tailwindcss.com/docs/break-before
296
298
  */
297
299
  "break-before": [{
298
- "break-before": D()
300
+ "break-before": ae()
299
301
  }],
300
302
  /**
301
303
  * Break Inside
@@ -354,49 +356,49 @@ const c = (e) => {
354
356
  * @see https://tailwindcss.com/docs/object-position
355
357
  */
356
358
  "object-position": [{
357
- object: [...Q(), i]
359
+ object: [...se(), l]
358
360
  }],
359
361
  /**
360
362
  * Overflow
361
363
  * @see https://tailwindcss.com/docs/overflow
362
364
  */
363
365
  overflow: [{
364
- overflow: U()
366
+ overflow: H()
365
367
  }],
366
368
  /**
367
369
  * Overflow X
368
370
  * @see https://tailwindcss.com/docs/overflow
369
371
  */
370
372
  "overflow-x": [{
371
- "overflow-x": U()
373
+ "overflow-x": H()
372
374
  }],
373
375
  /**
374
376
  * Overflow Y
375
377
  * @see https://tailwindcss.com/docs/overflow
376
378
  */
377
379
  "overflow-y": [{
378
- "overflow-y": U()
380
+ "overflow-y": H()
379
381
  }],
380
382
  /**
381
383
  * Overscroll Behavior
382
384
  * @see https://tailwindcss.com/docs/overscroll-behavior
383
385
  */
384
386
  overscroll: [{
385
- overscroll: _()
387
+ overscroll: F()
386
388
  }],
387
389
  /**
388
390
  * Overscroll Behavior X
389
391
  * @see https://tailwindcss.com/docs/overscroll-behavior
390
392
  */
391
393
  "overscroll-x": [{
392
- "overscroll-x": _()
394
+ "overscroll-x": F()
393
395
  }],
394
396
  /**
395
397
  * Overscroll Behavior Y
396
398
  * @see https://tailwindcss.com/docs/overscroll-behavior
397
399
  */
398
400
  "overscroll-y": [{
399
- "overscroll-y": _()
401
+ "overscroll-y": F()
400
402
  }],
401
403
  /**
402
404
  * Position
@@ -408,63 +410,63 @@ const c = (e) => {
408
410
  * @see https://tailwindcss.com/docs/top-right-bottom-left
409
411
  */
410
412
  inset: [{
411
- inset: [f]
413
+ inset: [x]
412
414
  }],
413
415
  /**
414
416
  * Right / Left
415
417
  * @see https://tailwindcss.com/docs/top-right-bottom-left
416
418
  */
417
419
  "inset-x": [{
418
- "inset-x": [f]
420
+ "inset-x": [x]
419
421
  }],
420
422
  /**
421
423
  * Top / Bottom
422
424
  * @see https://tailwindcss.com/docs/top-right-bottom-left
423
425
  */
424
426
  "inset-y": [{
425
- "inset-y": [f]
427
+ "inset-y": [x]
426
428
  }],
427
429
  /**
428
430
  * Start
429
431
  * @see https://tailwindcss.com/docs/top-right-bottom-left
430
432
  */
431
433
  start: [{
432
- start: [f]
434
+ start: [x]
433
435
  }],
434
436
  /**
435
437
  * End
436
438
  * @see https://tailwindcss.com/docs/top-right-bottom-left
437
439
  */
438
440
  end: [{
439
- end: [f]
441
+ end: [x]
440
442
  }],
441
443
  /**
442
444
  * Top
443
445
  * @see https://tailwindcss.com/docs/top-right-bottom-left
444
446
  */
445
447
  top: [{
446
- top: [f]
448
+ top: [x]
447
449
  }],
448
450
  /**
449
451
  * Right
450
452
  * @see https://tailwindcss.com/docs/top-right-bottom-left
451
453
  */
452
454
  right: [{
453
- right: [f]
455
+ right: [x]
454
456
  }],
455
457
  /**
456
458
  * Bottom
457
459
  * @see https://tailwindcss.com/docs/top-right-bottom-left
458
460
  */
459
461
  bottom: [{
460
- bottom: [f]
462
+ bottom: [x]
461
463
  }],
462
464
  /**
463
465
  * Left
464
466
  * @see https://tailwindcss.com/docs/top-right-bottom-left
465
467
  */
466
468
  left: [{
467
- left: [f]
469
+ left: [x]
468
470
  }],
469
471
  /**
470
472
  * Visibility
@@ -476,7 +478,7 @@ const c = (e) => {
476
478
  * @see https://tailwindcss.com/docs/z-index
477
479
  */
478
480
  z: [{
479
- z: ["auto", I, i]
481
+ z: ["auto", I, l]
480
482
  }],
481
483
  // Flexbox and Grid
482
484
  /**
@@ -484,7 +486,7 @@ const c = (e) => {
484
486
  * @see https://tailwindcss.com/docs/flex-basis
485
487
  */
486
488
  basis: [{
487
- basis: O()
489
+ basis: B()
488
490
  }],
489
491
  /**
490
492
  * Flex Direction
@@ -505,35 +507,35 @@ const c = (e) => {
505
507
  * @see https://tailwindcss.com/docs/flex
506
508
  */
507
509
  flex: [{
508
- flex: ["1", "auto", "initial", "none", i]
510
+ flex: ["1", "auto", "initial", "none", l]
509
511
  }],
510
512
  /**
511
513
  * Flex Grow
512
514
  * @see https://tailwindcss.com/docs/flex-grow
513
515
  */
514
516
  grow: [{
515
- grow: R()
517
+ grow: T()
516
518
  }],
517
519
  /**
518
520
  * Flex Shrink
519
521
  * @see https://tailwindcss.com/docs/flex-shrink
520
522
  */
521
523
  shrink: [{
522
- shrink: R()
524
+ shrink: T()
523
525
  }],
524
526
  /**
525
527
  * Order
526
528
  * @see https://tailwindcss.com/docs/order
527
529
  */
528
530
  order: [{
529
- order: ["first", "last", "none", I, i]
531
+ order: ["first", "last", "none", I, l]
530
532
  }],
531
533
  /**
532
534
  * Grid Template Columns
533
535
  * @see https://tailwindcss.com/docs/grid-template-columns
534
536
  */
535
537
  "grid-cols": [{
536
- "grid-cols": [T]
538
+ "grid-cols": [L]
537
539
  }],
538
540
  /**
539
541
  * Grid Column Start / End
@@ -541,29 +543,29 @@ const c = (e) => {
541
543
  */
542
544
  "col-start-end": [{
543
545
  col: ["auto", {
544
- span: ["full", I, i]
545
- }, i]
546
+ span: ["full", I, l]
547
+ }, l]
546
548
  }],
547
549
  /**
548
550
  * Grid Column Start
549
551
  * @see https://tailwindcss.com/docs/grid-column
550
552
  */
551
553
  "col-start": [{
552
- "col-start": N()
554
+ "col-start": O()
553
555
  }],
554
556
  /**
555
557
  * Grid Column End
556
558
  * @see https://tailwindcss.com/docs/grid-column
557
559
  */
558
560
  "col-end": [{
559
- "col-end": N()
561
+ "col-end": O()
560
562
  }],
561
563
  /**
562
564
  * Grid Template Rows
563
565
  * @see https://tailwindcss.com/docs/grid-template-rows
564
566
  */
565
567
  "grid-rows": [{
566
- "grid-rows": [T]
568
+ "grid-rows": [L]
567
569
  }],
568
570
  /**
569
571
  * Grid Row Start / End
@@ -571,22 +573,22 @@ const c = (e) => {
571
573
  */
572
574
  "row-start-end": [{
573
575
  row: ["auto", {
574
- span: [I, i]
575
- }, i]
576
+ span: [I, l]
577
+ }, l]
576
578
  }],
577
579
  /**
578
580
  * Grid Row Start
579
581
  * @see https://tailwindcss.com/docs/grid-row
580
582
  */
581
583
  "row-start": [{
582
- "row-start": N()
584
+ "row-start": O()
583
585
  }],
584
586
  /**
585
587
  * Grid Row End
586
588
  * @see https://tailwindcss.com/docs/grid-row
587
589
  */
588
590
  "row-end": [{
589
- "row-end": N()
591
+ "row-end": O()
590
592
  }],
591
593
  /**
592
594
  * Grid Auto Flow
@@ -600,42 +602,42 @@ const c = (e) => {
600
602
  * @see https://tailwindcss.com/docs/grid-auto-columns
601
603
  */
602
604
  "auto-cols": [{
603
- "auto-cols": ["auto", "min", "max", "fr", i]
605
+ "auto-cols": ["auto", "min", "max", "fr", l]
604
606
  }],
605
607
  /**
606
608
  * Grid Auto Rows
607
609
  * @see https://tailwindcss.com/docs/grid-auto-rows
608
610
  */
609
611
  "auto-rows": [{
610
- "auto-rows": ["auto", "min", "max", "fr", i]
612
+ "auto-rows": ["auto", "min", "max", "fr", l]
611
613
  }],
612
614
  /**
613
615
  * Gap
614
616
  * @see https://tailwindcss.com/docs/gap
615
617
  */
616
618
  gap: [{
617
- gap: [y]
619
+ gap: [d]
618
620
  }],
619
621
  /**
620
622
  * Gap X
621
623
  * @see https://tailwindcss.com/docs/gap
622
624
  */
623
625
  "gap-x": [{
624
- "gap-x": [y]
626
+ "gap-x": [d]
625
627
  }],
626
628
  /**
627
629
  * Gap Y
628
630
  * @see https://tailwindcss.com/docs/gap
629
631
  */
630
632
  "gap-y": [{
631
- "gap-y": [y]
633
+ "gap-y": [d]
632
634
  }],
633
635
  /**
634
636
  * Justify Content
635
637
  * @see https://tailwindcss.com/docs/justify-content
636
638
  */
637
639
  "justify-content": [{
638
- justify: ["normal", ...$()]
640
+ justify: ["normal", ...U()]
639
641
  }],
640
642
  /**
641
643
  * Justify Items
@@ -656,7 +658,7 @@ const c = (e) => {
656
658
  * @see https://tailwindcss.com/docs/align-content
657
659
  */
658
660
  "align-content": [{
659
- content: ["normal", ...$(), "baseline"]
661
+ content: ["normal", ...U(), "baseline"]
660
662
  }],
661
663
  /**
662
664
  * Align Items
@@ -677,7 +679,7 @@ const c = (e) => {
677
679
  * @see https://tailwindcss.com/docs/place-content
678
680
  */
679
681
  "place-content": [{
680
- "place-content": [...$(), "baseline"]
682
+ "place-content": [...U(), "baseline"]
681
683
  }],
682
684
  /**
683
685
  * Place Items
@@ -699,133 +701,133 @@ const c = (e) => {
699
701
  * @see https://tailwindcss.com/docs/padding
700
702
  */
701
703
  p: [{
702
- p: [x]
704
+ p: [v]
703
705
  }],
704
706
  /**
705
707
  * Padding X
706
708
  * @see https://tailwindcss.com/docs/padding
707
709
  */
708
710
  px: [{
709
- px: [x]
711
+ px: [v]
710
712
  }],
711
713
  /**
712
714
  * Padding Y
713
715
  * @see https://tailwindcss.com/docs/padding
714
716
  */
715
717
  py: [{
716
- py: [x]
718
+ py: [v]
717
719
  }],
718
720
  /**
719
721
  * Padding Start
720
722
  * @see https://tailwindcss.com/docs/padding
721
723
  */
722
724
  ps: [{
723
- ps: [x]
725
+ ps: [v]
724
726
  }],
725
727
  /**
726
728
  * Padding End
727
729
  * @see https://tailwindcss.com/docs/padding
728
730
  */
729
731
  pe: [{
730
- pe: [x]
732
+ pe: [v]
731
733
  }],
732
734
  /**
733
735
  * Padding Top
734
736
  * @see https://tailwindcss.com/docs/padding
735
737
  */
736
738
  pt: [{
737
- pt: [x]
739
+ pt: [v]
738
740
  }],
739
741
  /**
740
742
  * Padding Right
741
743
  * @see https://tailwindcss.com/docs/padding
742
744
  */
743
745
  pr: [{
744
- pr: [x]
746
+ pr: [v]
745
747
  }],
746
748
  /**
747
749
  * Padding Bottom
748
750
  * @see https://tailwindcss.com/docs/padding
749
751
  */
750
752
  pb: [{
751
- pb: [x]
753
+ pb: [v]
752
754
  }],
753
755
  /**
754
756
  * Padding Left
755
757
  * @see https://tailwindcss.com/docs/padding
756
758
  */
757
759
  pl: [{
758
- pl: [x]
760
+ pl: [v]
759
761
  }],
760
762
  /**
761
763
  * Margin
762
764
  * @see https://tailwindcss.com/docs/margin
763
765
  */
764
766
  m: [{
765
- m: [p]
767
+ m: [h]
766
768
  }],
767
769
  /**
768
770
  * Margin X
769
771
  * @see https://tailwindcss.com/docs/margin
770
772
  */
771
773
  mx: [{
772
- mx: [p]
774
+ mx: [h]
773
775
  }],
774
776
  /**
775
777
  * Margin Y
776
778
  * @see https://tailwindcss.com/docs/margin
777
779
  */
778
780
  my: [{
779
- my: [p]
781
+ my: [h]
780
782
  }],
781
783
  /**
782
784
  * Margin Start
783
785
  * @see https://tailwindcss.com/docs/margin
784
786
  */
785
787
  ms: [{
786
- ms: [p]
788
+ ms: [h]
787
789
  }],
788
790
  /**
789
791
  * Margin End
790
792
  * @see https://tailwindcss.com/docs/margin
791
793
  */
792
794
  me: [{
793
- me: [p]
795
+ me: [h]
794
796
  }],
795
797
  /**
796
798
  * Margin Top
797
799
  * @see https://tailwindcss.com/docs/margin
798
800
  */
799
801
  mt: [{
800
- mt: [p]
802
+ mt: [h]
801
803
  }],
802
804
  /**
803
805
  * Margin Right
804
806
  * @see https://tailwindcss.com/docs/margin
805
807
  */
806
808
  mr: [{
807
- mr: [p]
809
+ mr: [h]
808
810
  }],
809
811
  /**
810
812
  * Margin Bottom
811
813
  * @see https://tailwindcss.com/docs/margin
812
814
  */
813
815
  mb: [{
814
- mb: [p]
816
+ mb: [h]
815
817
  }],
816
818
  /**
817
819
  * Margin Left
818
820
  * @see https://tailwindcss.com/docs/margin
819
821
  */
820
822
  ml: [{
821
- ml: [p]
823
+ ml: [h]
822
824
  }],
823
825
  /**
824
826
  * Space Between X
825
827
  * @see https://tailwindcss.com/docs/space
826
828
  */
827
829
  "space-x": [{
828
- "space-x": [X]
830
+ "space-x": [te]
829
831
  }],
830
832
  /**
831
833
  * Space Between X Reverse
@@ -837,7 +839,7 @@ const c = (e) => {
837
839
  * @see https://tailwindcss.com/docs/space
838
840
  */
839
841
  "space-y": [{
840
- "space-y": [X]
842
+ "space-y": [te]
841
843
  }],
842
844
  /**
843
845
  * Space Between Y Reverse
@@ -850,51 +852,51 @@ const c = (e) => {
850
852
  * @see https://tailwindcss.com/docs/width
851
853
  */
852
854
  w: [{
853
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", i, r]
855
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, r]
854
856
  }],
855
857
  /**
856
858
  * Min-Width
857
859
  * @see https://tailwindcss.com/docs/min-width
858
860
  */
859
861
  "min-w": [{
860
- "min-w": [i, r, "min", "max", "fit"]
862
+ "min-w": [l, r, "min", "max", "fit"]
861
863
  }],
862
864
  /**
863
865
  * Max-Width
864
866
  * @see https://tailwindcss.com/docs/max-width
865
867
  */
866
868
  "max-w": [{
867
- "max-w": [i, r, "none", "full", "min", "max", "fit", "prose", {
868
- screen: [S]
869
- }, S]
869
+ "max-w": [l, r, "none", "full", "min", "max", "fit", "prose", {
870
+ screen: [A]
871
+ }, A]
870
872
  }],
871
873
  /**
872
874
  * Height
873
875
  * @see https://tailwindcss.com/docs/height
874
876
  */
875
877
  h: [{
876
- h: [i, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
878
+ h: [l, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
877
879
  }],
878
880
  /**
879
881
  * Min-Height
880
882
  * @see https://tailwindcss.com/docs/min-height
881
883
  */
882
884
  "min-h": [{
883
- "min-h": [i, r, "min", "max", "fit", "svh", "lvh", "dvh"]
885
+ "min-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
884
886
  }],
885
887
  /**
886
888
  * Max-Height
887
889
  * @see https://tailwindcss.com/docs/max-height
888
890
  */
889
891
  "max-h": [{
890
- "max-h": [i, r, "min", "max", "fit", "svh", "lvh", "dvh"]
892
+ "max-h": [l, r, "min", "max", "fit", "svh", "lvh", "dvh"]
891
893
  }],
892
894
  /**
893
895
  * Size
894
896
  * @see https://tailwindcss.com/docs/size
895
897
  */
896
898
  size: [{
897
- size: [i, r, "auto", "min", "max", "fit"]
899
+ size: [l, r, "auto", "min", "max", "fit"]
898
900
  }],
899
901
  // Typography
900
902
  /**
@@ -902,7 +904,7 @@ const c = (e) => {
902
904
  * @see https://tailwindcss.com/docs/font-size
903
905
  */
904
906
  "font-size": [{
905
- text: ["base", S, E]
907
+ text: ["base", A, z]
906
908
  }],
907
909
  /**
908
910
  * Font Smoothing
@@ -919,14 +921,14 @@ const c = (e) => {
919
921
  * @see https://tailwindcss.com/docs/font-weight
920
922
  */
921
923
  "font-weight": [{
922
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", B]
924
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", V]
923
925
  }],
924
926
  /**
925
927
  * Font Family
926
928
  * @see https://tailwindcss.com/docs/font-family
927
929
  */
928
930
  "font-family": [{
929
- font: [T]
931
+ font: [L]
930
932
  }],
931
933
  /**
932
934
  * Font Variant Numeric
@@ -963,35 +965,35 @@ const c = (e) => {
963
965
  * @see https://tailwindcss.com/docs/letter-spacing
964
966
  */
965
967
  tracking: [{
966
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", i]
968
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l]
967
969
  }],
968
970
  /**
969
971
  * Line Clamp
970
972
  * @see https://tailwindcss.com/docs/line-clamp
971
973
  */
972
974
  "line-clamp": [{
973
- "line-clamp": ["none", P, B]
975
+ "line-clamp": ["none", P, V]
974
976
  }],
975
977
  /**
976
978
  * Line Height
977
979
  * @see https://tailwindcss.com/docs/line-height
978
980
  */
979
981
  leading: [{
980
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", k, i]
982
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", S, l]
981
983
  }],
982
984
  /**
983
985
  * List Style Image
984
986
  * @see https://tailwindcss.com/docs/list-style-image
985
987
  */
986
988
  "list-image": [{
987
- "list-image": ["none", i]
989
+ "list-image": ["none", l]
988
990
  }],
989
991
  /**
990
992
  * List Style Type
991
993
  * @see https://tailwindcss.com/docs/list-style-type
992
994
  */
993
995
  "list-style-type": [{
994
- list: ["none", "disc", "decimal", i]
996
+ list: ["none", "disc", "decimal", l]
995
997
  }],
996
998
  /**
997
999
  * List Style Position
@@ -1013,7 +1015,7 @@ const c = (e) => {
1013
1015
  * @see https://tailwindcss.com/docs/placeholder-opacity
1014
1016
  */
1015
1017
  "placeholder-opacity": [{
1016
- "placeholder-opacity": [m]
1018
+ "placeholder-opacity": [w]
1017
1019
  }],
1018
1020
  /**
1019
1021
  * Text Alignment
@@ -1034,7 +1036,7 @@ const c = (e) => {
1034
1036
  * @see https://tailwindcss.com/docs/text-opacity
1035
1037
  */
1036
1038
  "text-opacity": [{
1037
- "text-opacity": [m]
1039
+ "text-opacity": [w]
1038
1040
  }],
1039
1041
  /**
1040
1042
  * Text Decoration
@@ -1046,21 +1048,21 @@ const c = (e) => {
1046
1048
  * @see https://tailwindcss.com/docs/text-decoration-style
1047
1049
  */
1048
1050
  "text-decoration-style": [{
1049
- decoration: [...W(), "wavy"]
1051
+ decoration: [...$(), "wavy"]
1050
1052
  }],
1051
1053
  /**
1052
1054
  * Text Decoration Thickness
1053
1055
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1054
1056
  */
1055
1057
  "text-decoration-thickness": [{
1056
- decoration: ["auto", "from-font", k, E]
1058
+ decoration: ["auto", "from-font", S, z]
1057
1059
  }],
1058
1060
  /**
1059
1061
  * Text Underline Offset
1060
1062
  * @see https://tailwindcss.com/docs/text-underline-offset
1061
1063
  */
1062
1064
  "underline-offset": [{
1063
- "underline-offset": ["auto", k, i]
1065
+ "underline-offset": ["auto", S, l]
1064
1066
  }],
1065
1067
  /**
1066
1068
  * Text Decoration Color
@@ -1091,14 +1093,14 @@ const c = (e) => {
1091
1093
  * @see https://tailwindcss.com/docs/text-indent
1092
1094
  */
1093
1095
  indent: [{
1094
- indent: d()
1096
+ indent: b()
1095
1097
  }],
1096
1098
  /**
1097
1099
  * Vertical Alignment
1098
1100
  * @see https://tailwindcss.com/docs/vertical-align
1099
1101
  */
1100
1102
  "vertical-align": [{
1101
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", i]
1103
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l]
1102
1104
  }],
1103
1105
  /**
1104
1106
  * Whitespace
@@ -1126,7 +1128,7 @@ const c = (e) => {
1126
1128
  * @see https://tailwindcss.com/docs/content
1127
1129
  */
1128
1130
  content: [{
1129
- content: ["none", i]
1131
+ content: ["none", l]
1130
1132
  }],
1131
1133
  // Backgrounds
1132
1134
  /**
@@ -1149,7 +1151,7 @@ const c = (e) => {
1149
1151
  * @see https://tailwindcss.com/docs/background-opacity
1150
1152
  */
1151
1153
  "bg-opacity": [{
1152
- "bg-opacity": [m]
1154
+ "bg-opacity": [w]
1153
1155
  }],
1154
1156
  /**
1155
1157
  * Background Origin
@@ -1163,7 +1165,7 @@ const c = (e) => {
1163
1165
  * @see https://tailwindcss.com/docs/background-position
1164
1166
  */
1165
1167
  "bg-position": [{
1166
- bg: [...Q(), Fe]
1168
+ bg: [...se(), tr]
1167
1169
  }],
1168
1170
  /**
1169
1171
  * Background Repeat
@@ -1179,7 +1181,7 @@ const c = (e) => {
1179
1181
  * @see https://tailwindcss.com/docs/background-size
1180
1182
  */
1181
1183
  "bg-size": [{
1182
- bg: ["auto", "cover", "contain", $e]
1184
+ bg: ["auto", "cover", "contain", rr]
1183
1185
  }],
1184
1186
  /**
1185
1187
  * Background Image
@@ -1188,7 +1190,7 @@ const c = (e) => {
1188
1190
  "bg-image": [{
1189
1191
  bg: ["none", {
1190
1192
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1191
- }, qe]
1193
+ }, nr]
1192
1194
  }],
1193
1195
  /**
1194
1196
  * Background Color
@@ -1202,42 +1204,42 @@ const c = (e) => {
1202
1204
  * @see https://tailwindcss.com/docs/gradient-color-stops
1203
1205
  */
1204
1206
  "gradient-from-pos": [{
1205
- from: [v]
1207
+ from: [y]
1206
1208
  }],
1207
1209
  /**
1208
1210
  * Gradient Color Stops Via Position
1209
1211
  * @see https://tailwindcss.com/docs/gradient-color-stops
1210
1212
  */
1211
1213
  "gradient-via-pos": [{
1212
- via: [v]
1214
+ via: [y]
1213
1215
  }],
1214
1216
  /**
1215
1217
  * Gradient Color Stops To Position
1216
1218
  * @see https://tailwindcss.com/docs/gradient-color-stops
1217
1219
  */
1218
1220
  "gradient-to-pos": [{
1219
- to: [v]
1221
+ to: [y]
1220
1222
  }],
1221
1223
  /**
1222
1224
  * Gradient Color Stops From
1223
1225
  * @see https://tailwindcss.com/docs/gradient-color-stops
1224
1226
  */
1225
1227
  "gradient-from": [{
1226
- from: [w]
1228
+ from: [m]
1227
1229
  }],
1228
1230
  /**
1229
1231
  * Gradient Color Stops Via
1230
1232
  * @see https://tailwindcss.com/docs/gradient-color-stops
1231
1233
  */
1232
1234
  "gradient-via": [{
1233
- via: [w]
1235
+ via: [m]
1234
1236
  }],
1235
1237
  /**
1236
1238
  * Gradient Color Stops To
1237
1239
  * @see https://tailwindcss.com/docs/gradient-color-stops
1238
1240
  */
1239
1241
  "gradient-to": [{
1240
- to: [w]
1242
+ to: [m]
1241
1243
  }],
1242
1244
  // Borders
1243
1245
  /**
@@ -1245,105 +1247,105 @@ const c = (e) => {
1245
1247
  * @see https://tailwindcss.com/docs/border-radius
1246
1248
  */
1247
1249
  rounded: [{
1248
- rounded: [o]
1250
+ rounded: [n]
1249
1251
  }],
1250
1252
  /**
1251
1253
  * Border Radius Start
1252
1254
  * @see https://tailwindcss.com/docs/border-radius
1253
1255
  */
1254
1256
  "rounded-s": [{
1255
- "rounded-s": [o]
1257
+ "rounded-s": [n]
1256
1258
  }],
1257
1259
  /**
1258
1260
  * Border Radius End
1259
1261
  * @see https://tailwindcss.com/docs/border-radius
1260
1262
  */
1261
1263
  "rounded-e": [{
1262
- "rounded-e": [o]
1264
+ "rounded-e": [n]
1263
1265
  }],
1264
1266
  /**
1265
1267
  * Border Radius Top
1266
1268
  * @see https://tailwindcss.com/docs/border-radius
1267
1269
  */
1268
1270
  "rounded-t": [{
1269
- "rounded-t": [o]
1271
+ "rounded-t": [n]
1270
1272
  }],
1271
1273
  /**
1272
1274
  * Border Radius Right
1273
1275
  * @see https://tailwindcss.com/docs/border-radius
1274
1276
  */
1275
1277
  "rounded-r": [{
1276
- "rounded-r": [o]
1278
+ "rounded-r": [n]
1277
1279
  }],
1278
1280
  /**
1279
1281
  * Border Radius Bottom
1280
1282
  * @see https://tailwindcss.com/docs/border-radius
1281
1283
  */
1282
1284
  "rounded-b": [{
1283
- "rounded-b": [o]
1285
+ "rounded-b": [n]
1284
1286
  }],
1285
1287
  /**
1286
1288
  * Border Radius Left
1287
1289
  * @see https://tailwindcss.com/docs/border-radius
1288
1290
  */
1289
1291
  "rounded-l": [{
1290
- "rounded-l": [o]
1292
+ "rounded-l": [n]
1291
1293
  }],
1292
1294
  /**
1293
1295
  * Border Radius Start Start
1294
1296
  * @see https://tailwindcss.com/docs/border-radius
1295
1297
  */
1296
1298
  "rounded-ss": [{
1297
- "rounded-ss": [o]
1299
+ "rounded-ss": [n]
1298
1300
  }],
1299
1301
  /**
1300
1302
  * Border Radius Start End
1301
1303
  * @see https://tailwindcss.com/docs/border-radius
1302
1304
  */
1303
1305
  "rounded-se": [{
1304
- "rounded-se": [o]
1306
+ "rounded-se": [n]
1305
1307
  }],
1306
1308
  /**
1307
1309
  * Border Radius End End
1308
1310
  * @see https://tailwindcss.com/docs/border-radius
1309
1311
  */
1310
1312
  "rounded-ee": [{
1311
- "rounded-ee": [o]
1313
+ "rounded-ee": [n]
1312
1314
  }],
1313
1315
  /**
1314
1316
  * Border Radius End Start
1315
1317
  * @see https://tailwindcss.com/docs/border-radius
1316
1318
  */
1317
1319
  "rounded-es": [{
1318
- "rounded-es": [o]
1320
+ "rounded-es": [n]
1319
1321
  }],
1320
1322
  /**
1321
1323
  * Border Radius Top Left
1322
1324
  * @see https://tailwindcss.com/docs/border-radius
1323
1325
  */
1324
1326
  "rounded-tl": [{
1325
- "rounded-tl": [o]
1327
+ "rounded-tl": [n]
1326
1328
  }],
1327
1329
  /**
1328
1330
  * Border Radius Top Right
1329
1331
  * @see https://tailwindcss.com/docs/border-radius
1330
1332
  */
1331
1333
  "rounded-tr": [{
1332
- "rounded-tr": [o]
1334
+ "rounded-tr": [n]
1333
1335
  }],
1334
1336
  /**
1335
1337
  * Border Radius Bottom Right
1336
1338
  * @see https://tailwindcss.com/docs/border-radius
1337
1339
  */
1338
1340
  "rounded-br": [{
1339
- "rounded-br": [o]
1341
+ "rounded-br": [n]
1340
1342
  }],
1341
1343
  /**
1342
1344
  * Border Radius Bottom Left
1343
1345
  * @see https://tailwindcss.com/docs/border-radius
1344
1346
  */
1345
1347
  "rounded-bl": [{
1346
- "rounded-bl": [o]
1348
+ "rounded-bl": [n]
1347
1349
  }],
1348
1350
  /**
1349
1351
  * Border Width
@@ -1413,14 +1415,14 @@ const c = (e) => {
1413
1415
  * @see https://tailwindcss.com/docs/border-opacity
1414
1416
  */
1415
1417
  "border-opacity": [{
1416
- "border-opacity": [m]
1418
+ "border-opacity": [w]
1417
1419
  }],
1418
1420
  /**
1419
1421
  * Border Style
1420
1422
  * @see https://tailwindcss.com/docs/border-style
1421
1423
  */
1422
1424
  "border-style": [{
1423
- border: [...W(), "hidden"]
1425
+ border: [...$(), "hidden"]
1424
1426
  }],
1425
1427
  /**
1426
1428
  * Divide Width X
@@ -1451,105 +1453,105 @@ const c = (e) => {
1451
1453
  * @see https://tailwindcss.com/docs/divide-opacity
1452
1454
  */
1453
1455
  "divide-opacity": [{
1454
- "divide-opacity": [m]
1456
+ "divide-opacity": [w]
1455
1457
  }],
1456
1458
  /**
1457
1459
  * Divide Style
1458
1460
  * @see https://tailwindcss.com/docs/divide-style
1459
1461
  */
1460
1462
  "divide-style": [{
1461
- divide: W()
1463
+ divide: $()
1462
1464
  }],
1463
1465
  /**
1464
1466
  * Border Color
1465
1467
  * @see https://tailwindcss.com/docs/border-color
1466
1468
  */
1467
1469
  "border-color": [{
1468
- border: [l]
1470
+ border: [i]
1469
1471
  }],
1470
1472
  /**
1471
1473
  * Border Color X
1472
1474
  * @see https://tailwindcss.com/docs/border-color
1473
1475
  */
1474
1476
  "border-color-x": [{
1475
- "border-x": [l]
1477
+ "border-x": [i]
1476
1478
  }],
1477
1479
  /**
1478
1480
  * Border Color Y
1479
1481
  * @see https://tailwindcss.com/docs/border-color
1480
1482
  */
1481
1483
  "border-color-y": [{
1482
- "border-y": [l]
1484
+ "border-y": [i]
1483
1485
  }],
1484
1486
  /**
1485
1487
  * Border Color S
1486
1488
  * @see https://tailwindcss.com/docs/border-color
1487
1489
  */
1488
1490
  "border-color-s": [{
1489
- "border-s": [l]
1491
+ "border-s": [i]
1490
1492
  }],
1491
1493
  /**
1492
1494
  * Border Color E
1493
1495
  * @see https://tailwindcss.com/docs/border-color
1494
1496
  */
1495
1497
  "border-color-e": [{
1496
- "border-e": [l]
1498
+ "border-e": [i]
1497
1499
  }],
1498
1500
  /**
1499
1501
  * Border Color Top
1500
1502
  * @see https://tailwindcss.com/docs/border-color
1501
1503
  */
1502
1504
  "border-color-t": [{
1503
- "border-t": [l]
1505
+ "border-t": [i]
1504
1506
  }],
1505
1507
  /**
1506
1508
  * Border Color Right
1507
1509
  * @see https://tailwindcss.com/docs/border-color
1508
1510
  */
1509
1511
  "border-color-r": [{
1510
- "border-r": [l]
1512
+ "border-r": [i]
1511
1513
  }],
1512
1514
  /**
1513
1515
  * Border Color Bottom
1514
1516
  * @see https://tailwindcss.com/docs/border-color
1515
1517
  */
1516
1518
  "border-color-b": [{
1517
- "border-b": [l]
1519
+ "border-b": [i]
1518
1520
  }],
1519
1521
  /**
1520
1522
  * Border Color Left
1521
1523
  * @see https://tailwindcss.com/docs/border-color
1522
1524
  */
1523
1525
  "border-color-l": [{
1524
- "border-l": [l]
1526
+ "border-l": [i]
1525
1527
  }],
1526
1528
  /**
1527
1529
  * Divide Color
1528
1530
  * @see https://tailwindcss.com/docs/divide-color
1529
1531
  */
1530
1532
  "divide-color": [{
1531
- divide: [l]
1533
+ divide: [i]
1532
1534
  }],
1533
1535
  /**
1534
1536
  * Outline Style
1535
1537
  * @see https://tailwindcss.com/docs/outline-style
1536
1538
  */
1537
1539
  "outline-style": [{
1538
- outline: ["", ...W()]
1540
+ outline: ["", ...$()]
1539
1541
  }],
1540
1542
  /**
1541
1543
  * Outline Offset
1542
1544
  * @see https://tailwindcss.com/docs/outline-offset
1543
1545
  */
1544
1546
  "outline-offset": [{
1545
- "outline-offset": [k, i]
1547
+ "outline-offset": [S, l]
1546
1548
  }],
1547
1549
  /**
1548
1550
  * Outline Width
1549
1551
  * @see https://tailwindcss.com/docs/outline-width
1550
1552
  */
1551
1553
  "outline-w": [{
1552
- outline: [k, E]
1554
+ outline: [S, z]
1553
1555
  }],
1554
1556
  /**
1555
1557
  * Outline Color
@@ -1563,7 +1565,7 @@ const c = (e) => {
1563
1565
  * @see https://tailwindcss.com/docs/ring-width
1564
1566
  */
1565
1567
  "ring-w": [{
1566
- ring: K()
1568
+ ring: ne()
1567
1569
  }],
1568
1570
  /**
1569
1571
  * Ring Width Inset
@@ -1582,14 +1584,14 @@ const c = (e) => {
1582
1584
  * @see https://tailwindcss.com/docs/ring-opacity
1583
1585
  */
1584
1586
  "ring-opacity": [{
1585
- "ring-opacity": [m]
1587
+ "ring-opacity": [w]
1586
1588
  }],
1587
1589
  /**
1588
1590
  * Ring Offset Width
1589
1591
  * @see https://tailwindcss.com/docs/ring-offset-width
1590
1592
  */
1591
1593
  "ring-offset-w": [{
1592
- "ring-offset": [k, E]
1594
+ "ring-offset": [S, z]
1593
1595
  }],
1594
1596
  /**
1595
1597
  * Ring Offset Color
@@ -1604,35 +1606,35 @@ const c = (e) => {
1604
1606
  * @see https://tailwindcss.com/docs/box-shadow
1605
1607
  */
1606
1608
  shadow: [{
1607
- shadow: ["", "inner", "none", S, He]
1609
+ shadow: ["", "inner", "none", A, sr]
1608
1610
  }],
1609
1611
  /**
1610
1612
  * Box Shadow Color
1611
1613
  * @see https://tailwindcss.com/docs/box-shadow-color
1612
1614
  */
1613
1615
  "shadow-color": [{
1614
- shadow: [T]
1616
+ shadow: [L]
1615
1617
  }],
1616
1618
  /**
1617
1619
  * Opacity
1618
1620
  * @see https://tailwindcss.com/docs/opacity
1619
1621
  */
1620
1622
  opacity: [{
1621
- opacity: [m]
1623
+ opacity: [w]
1622
1624
  }],
1623
1625
  /**
1624
1626
  * Mix Blend Mode
1625
1627
  * @see https://tailwindcss.com/docs/mix-blend-mode
1626
1628
  */
1627
1629
  "mix-blend": [{
1628
- "mix-blend": [...Y(), "plus-lighter", "plus-darker"]
1630
+ "mix-blend": [...ie(), "plus-lighter", "plus-darker"]
1629
1631
  }],
1630
1632
  /**
1631
1633
  * Background Blend Mode
1632
1634
  * @see https://tailwindcss.com/docs/background-blend-mode
1633
1635
  */
1634
1636
  "bg-blend": [{
1635
- "bg-blend": Y()
1637
+ "bg-blend": ie()
1636
1638
  }],
1637
1639
  // Filters
1638
1640
  /**
@@ -1655,42 +1657,42 @@ const c = (e) => {
1655
1657
  * @see https://tailwindcss.com/docs/brightness
1656
1658
  */
1657
1659
  brightness: [{
1658
- brightness: [n]
1660
+ brightness: [o]
1659
1661
  }],
1660
1662
  /**
1661
1663
  * Contrast
1662
1664
  * @see https://tailwindcss.com/docs/contrast
1663
1665
  */
1664
1666
  contrast: [{
1665
- contrast: [u]
1667
+ contrast: [c]
1666
1668
  }],
1667
1669
  /**
1668
1670
  * Drop Shadow
1669
1671
  * @see https://tailwindcss.com/docs/drop-shadow
1670
1672
  */
1671
1673
  "drop-shadow": [{
1672
- "drop-shadow": ["", "none", S, i]
1674
+ "drop-shadow": ["", "none", A, l]
1673
1675
  }],
1674
1676
  /**
1675
1677
  * Grayscale
1676
1678
  * @see https://tailwindcss.com/docs/grayscale
1677
1679
  */
1678
1680
  grayscale: [{
1679
- grayscale: [g]
1681
+ grayscale: [u]
1680
1682
  }],
1681
1683
  /**
1682
1684
  * Hue Rotate
1683
1685
  * @see https://tailwindcss.com/docs/hue-rotate
1684
1686
  */
1685
1687
  "hue-rotate": [{
1686
- "hue-rotate": [b]
1688
+ "hue-rotate": [p]
1687
1689
  }],
1688
1690
  /**
1689
1691
  * Invert
1690
1692
  * @see https://tailwindcss.com/docs/invert
1691
1693
  */
1692
1694
  invert: [{
1693
- invert: [h]
1695
+ invert: [f]
1694
1696
  }],
1695
1697
  /**
1696
1698
  * Saturate
@@ -1704,7 +1706,7 @@ const c = (e) => {
1704
1706
  * @see https://tailwindcss.com/docs/sepia
1705
1707
  */
1706
1708
  sepia: [{
1707
- sepia: [L]
1709
+ sepia: [j]
1708
1710
  }],
1709
1711
  /**
1710
1712
  * Backdrop Filter
@@ -1726,42 +1728,42 @@ const c = (e) => {
1726
1728
  * @see https://tailwindcss.com/docs/backdrop-brightness
1727
1729
  */
1728
1730
  "backdrop-brightness": [{
1729
- "backdrop-brightness": [n]
1731
+ "backdrop-brightness": [o]
1730
1732
  }],
1731
1733
  /**
1732
1734
  * Backdrop Contrast
1733
1735
  * @see https://tailwindcss.com/docs/backdrop-contrast
1734
1736
  */
1735
1737
  "backdrop-contrast": [{
1736
- "backdrop-contrast": [u]
1738
+ "backdrop-contrast": [c]
1737
1739
  }],
1738
1740
  /**
1739
1741
  * Backdrop Grayscale
1740
1742
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1741
1743
  */
1742
1744
  "backdrop-grayscale": [{
1743
- "backdrop-grayscale": [g]
1745
+ "backdrop-grayscale": [u]
1744
1746
  }],
1745
1747
  /**
1746
1748
  * Backdrop Hue Rotate
1747
1749
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1748
1750
  */
1749
1751
  "backdrop-hue-rotate": [{
1750
- "backdrop-hue-rotate": [b]
1752
+ "backdrop-hue-rotate": [p]
1751
1753
  }],
1752
1754
  /**
1753
1755
  * Backdrop Invert
1754
1756
  * @see https://tailwindcss.com/docs/backdrop-invert
1755
1757
  */
1756
1758
  "backdrop-invert": [{
1757
- "backdrop-invert": [h]
1759
+ "backdrop-invert": [f]
1758
1760
  }],
1759
1761
  /**
1760
1762
  * Backdrop Opacity
1761
1763
  * @see https://tailwindcss.com/docs/backdrop-opacity
1762
1764
  */
1763
1765
  "backdrop-opacity": [{
1764
- "backdrop-opacity": [m]
1766
+ "backdrop-opacity": [w]
1765
1767
  }],
1766
1768
  /**
1767
1769
  * Backdrop Saturate
@@ -1775,7 +1777,7 @@ const c = (e) => {
1775
1777
  * @see https://tailwindcss.com/docs/backdrop-sepia
1776
1778
  */
1777
1779
  "backdrop-sepia": [{
1778
- "backdrop-sepia": [L]
1780
+ "backdrop-sepia": [j]
1779
1781
  }],
1780
1782
  // Tables
1781
1783
  /**
@@ -1826,7 +1828,7 @@ const c = (e) => {
1826
1828
  * @see https://tailwindcss.com/docs/transition-property
1827
1829
  */
1828
1830
  transition: [{
1829
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", i]
1831
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l]
1830
1832
  }],
1831
1833
  /**
1832
1834
  * Transition Duration
@@ -1840,7 +1842,7 @@ const c = (e) => {
1840
1842
  * @see https://tailwindcss.com/docs/transition-timing-function
1841
1843
  */
1842
1844
  ease: [{
1843
- ease: ["linear", "in", "out", "in-out", i]
1845
+ ease: ["linear", "in", "out", "in-out", l]
1844
1846
  }],
1845
1847
  /**
1846
1848
  * Transition Delay
@@ -1854,7 +1856,7 @@ const c = (e) => {
1854
1856
  * @see https://tailwindcss.com/docs/animation
1855
1857
  */
1856
1858
  animate: [{
1857
- animate: ["none", "spin", "ping", "pulse", "bounce", i]
1859
+ animate: ["none", "spin", "ping", "pulse", "bounce", l]
1858
1860
  }],
1859
1861
  // Transforms
1860
1862
  /**
@@ -1869,63 +1871,63 @@ const c = (e) => {
1869
1871
  * @see https://tailwindcss.com/docs/scale
1870
1872
  */
1871
1873
  scale: [{
1872
- scale: [z]
1874
+ scale: [R]
1873
1875
  }],
1874
1876
  /**
1875
1877
  * Scale X
1876
1878
  * @see https://tailwindcss.com/docs/scale
1877
1879
  */
1878
1880
  "scale-x": [{
1879
- "scale-x": [z]
1881
+ "scale-x": [R]
1880
1882
  }],
1881
1883
  /**
1882
1884
  * Scale Y
1883
1885
  * @see https://tailwindcss.com/docs/scale
1884
1886
  */
1885
1887
  "scale-y": [{
1886
- "scale-y": [z]
1888
+ "scale-y": [R]
1887
1889
  }],
1888
1890
  /**
1889
1891
  * Rotate
1890
1892
  * @see https://tailwindcss.com/docs/rotate
1891
1893
  */
1892
1894
  rotate: [{
1893
- rotate: [I, i]
1895
+ rotate: [I, l]
1894
1896
  }],
1895
1897
  /**
1896
1898
  * Translate X
1897
1899
  * @see https://tailwindcss.com/docs/translate
1898
1900
  */
1899
1901
  "translate-x": [{
1900
- "translate-x": [Z]
1902
+ "translate-x": [oe]
1901
1903
  }],
1902
1904
  /**
1903
1905
  * Translate Y
1904
1906
  * @see https://tailwindcss.com/docs/translate
1905
1907
  */
1906
1908
  "translate-y": [{
1907
- "translate-y": [Z]
1909
+ "translate-y": [oe]
1908
1910
  }],
1909
1911
  /**
1910
1912
  * Skew X
1911
1913
  * @see https://tailwindcss.com/docs/skew
1912
1914
  */
1913
1915
  "skew-x": [{
1914
- "skew-x": [J]
1916
+ "skew-x": [re]
1915
1917
  }],
1916
1918
  /**
1917
1919
  * Skew Y
1918
1920
  * @see https://tailwindcss.com/docs/skew
1919
1921
  */
1920
1922
  "skew-y": [{
1921
- "skew-y": [J]
1923
+ "skew-y": [re]
1922
1924
  }],
1923
1925
  /**
1924
1926
  * Transform Origin
1925
1927
  * @see https://tailwindcss.com/docs/transform-origin
1926
1928
  */
1927
1929
  "transform-origin": [{
1928
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", i]
1930
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l]
1929
1931
  }],
1930
1932
  // Interactivity
1931
1933
  /**
@@ -1947,7 +1949,7 @@ const c = (e) => {
1947
1949
  * @see https://tailwindcss.com/docs/cursor
1948
1950
  */
1949
1951
  cursor: [{
1950
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", i]
1952
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", l]
1951
1953
  }],
1952
1954
  /**
1953
1955
  * Caret Color
@@ -1982,126 +1984,126 @@ const c = (e) => {
1982
1984
  * @see https://tailwindcss.com/docs/scroll-margin
1983
1985
  */
1984
1986
  "scroll-m": [{
1985
- "scroll-m": d()
1987
+ "scroll-m": b()
1986
1988
  }],
1987
1989
  /**
1988
1990
  * Scroll Margin X
1989
1991
  * @see https://tailwindcss.com/docs/scroll-margin
1990
1992
  */
1991
1993
  "scroll-mx": [{
1992
- "scroll-mx": d()
1994
+ "scroll-mx": b()
1993
1995
  }],
1994
1996
  /**
1995
1997
  * Scroll Margin Y
1996
1998
  * @see https://tailwindcss.com/docs/scroll-margin
1997
1999
  */
1998
2000
  "scroll-my": [{
1999
- "scroll-my": d()
2001
+ "scroll-my": b()
2000
2002
  }],
2001
2003
  /**
2002
2004
  * Scroll Margin Start
2003
2005
  * @see https://tailwindcss.com/docs/scroll-margin
2004
2006
  */
2005
2007
  "scroll-ms": [{
2006
- "scroll-ms": d()
2008
+ "scroll-ms": b()
2007
2009
  }],
2008
2010
  /**
2009
2011
  * Scroll Margin End
2010
2012
  * @see https://tailwindcss.com/docs/scroll-margin
2011
2013
  */
2012
2014
  "scroll-me": [{
2013
- "scroll-me": d()
2015
+ "scroll-me": b()
2014
2016
  }],
2015
2017
  /**
2016
2018
  * Scroll Margin Top
2017
2019
  * @see https://tailwindcss.com/docs/scroll-margin
2018
2020
  */
2019
2021
  "scroll-mt": [{
2020
- "scroll-mt": d()
2022
+ "scroll-mt": b()
2021
2023
  }],
2022
2024
  /**
2023
2025
  * Scroll Margin Right
2024
2026
  * @see https://tailwindcss.com/docs/scroll-margin
2025
2027
  */
2026
2028
  "scroll-mr": [{
2027
- "scroll-mr": d()
2029
+ "scroll-mr": b()
2028
2030
  }],
2029
2031
  /**
2030
2032
  * Scroll Margin Bottom
2031
2033
  * @see https://tailwindcss.com/docs/scroll-margin
2032
2034
  */
2033
2035
  "scroll-mb": [{
2034
- "scroll-mb": d()
2036
+ "scroll-mb": b()
2035
2037
  }],
2036
2038
  /**
2037
2039
  * Scroll Margin Left
2038
2040
  * @see https://tailwindcss.com/docs/scroll-margin
2039
2041
  */
2040
2042
  "scroll-ml": [{
2041
- "scroll-ml": d()
2043
+ "scroll-ml": b()
2042
2044
  }],
2043
2045
  /**
2044
2046
  * Scroll Padding
2045
2047
  * @see https://tailwindcss.com/docs/scroll-padding
2046
2048
  */
2047
2049
  "scroll-p": [{
2048
- "scroll-p": d()
2050
+ "scroll-p": b()
2049
2051
  }],
2050
2052
  /**
2051
2053
  * Scroll Padding X
2052
2054
  * @see https://tailwindcss.com/docs/scroll-padding
2053
2055
  */
2054
2056
  "scroll-px": [{
2055
- "scroll-px": d()
2057
+ "scroll-px": b()
2056
2058
  }],
2057
2059
  /**
2058
2060
  * Scroll Padding Y
2059
2061
  * @see https://tailwindcss.com/docs/scroll-padding
2060
2062
  */
2061
2063
  "scroll-py": [{
2062
- "scroll-py": d()
2064
+ "scroll-py": b()
2063
2065
  }],
2064
2066
  /**
2065
2067
  * Scroll Padding Start
2066
2068
  * @see https://tailwindcss.com/docs/scroll-padding
2067
2069
  */
2068
2070
  "scroll-ps": [{
2069
- "scroll-ps": d()
2071
+ "scroll-ps": b()
2070
2072
  }],
2071
2073
  /**
2072
2074
  * Scroll Padding End
2073
2075
  * @see https://tailwindcss.com/docs/scroll-padding
2074
2076
  */
2075
2077
  "scroll-pe": [{
2076
- "scroll-pe": d()
2078
+ "scroll-pe": b()
2077
2079
  }],
2078
2080
  /**
2079
2081
  * Scroll Padding Top
2080
2082
  * @see https://tailwindcss.com/docs/scroll-padding
2081
2083
  */
2082
2084
  "scroll-pt": [{
2083
- "scroll-pt": d()
2085
+ "scroll-pt": b()
2084
2086
  }],
2085
2087
  /**
2086
2088
  * Scroll Padding Right
2087
2089
  * @see https://tailwindcss.com/docs/scroll-padding
2088
2090
  */
2089
2091
  "scroll-pr": [{
2090
- "scroll-pr": d()
2092
+ "scroll-pr": b()
2091
2093
  }],
2092
2094
  /**
2093
2095
  * Scroll Padding Bottom
2094
2096
  * @see https://tailwindcss.com/docs/scroll-padding
2095
2097
  */
2096
2098
  "scroll-pb": [{
2097
- "scroll-pb": d()
2099
+ "scroll-pb": b()
2098
2100
  }],
2099
2101
  /**
2100
2102
  * Scroll Padding Left
2101
2103
  * @see https://tailwindcss.com/docs/scroll-padding
2102
2104
  */
2103
2105
  "scroll-pl": [{
2104
- "scroll-pl": d()
2106
+ "scroll-pl": b()
2105
2107
  }],
2106
2108
  /**
2107
2109
  * Scroll Snap Align
@@ -2169,7 +2171,7 @@ const c = (e) => {
2169
2171
  * @see https://tailwindcss.com/docs/will-change
2170
2172
  */
2171
2173
  "will-change": [{
2172
- "will-change": ["auto", "scroll", "contents", "transform", i]
2174
+ "will-change": ["auto", "scroll", "contents", "transform", l]
2173
2175
  }],
2174
2176
  // SVG
2175
2177
  /**
@@ -2184,7 +2186,7 @@ const c = (e) => {
2184
2186
  * @see https://tailwindcss.com/docs/stroke-width
2185
2187
  */
2186
2188
  "stroke-w": [{
2187
- stroke: [k, E, B]
2189
+ stroke: [S, z, V]
2188
2190
  }],
2189
2191
  /**
2190
2192
  * Stroke
@@ -2259,122 +2261,297 @@ const c = (e) => {
2259
2261
  "font-size": ["leading"]
2260
2262
  }
2261
2263
  };
2262
- }, Qe = /* @__PURE__ */ Ie(Ke);
2263
- function ir(...e) {
2264
- return Qe(pe(e));
2264
+ }, dr = /* @__PURE__ */ Ve(cr);
2265
+ function kr(...e) {
2266
+ return dr(Ee(e));
2267
+ }
2268
+ const q = typeof window > "u";
2269
+ function ue(e, r, t = window) {
2270
+ const o = Q(void 0);
2271
+ k(() => {
2272
+ o.current = r;
2273
+ }, [r]), k(() => {
2274
+ if (!(t && t.addEventListener)) return;
2275
+ const n = (a) => {
2276
+ o.current && o.current(a);
2277
+ };
2278
+ return t.addEventListener(e, n), () => {
2279
+ t.removeEventListener(e, n);
2280
+ };
2281
+ }, [e, t]);
2282
+ }
2283
+ function J(e, r, t = {}) {
2284
+ const { initializeWithValue: o = !0 } = t, i = E(
2285
+ (d) => t.serializer ? t.serializer(d) : JSON.stringify(d),
2286
+ [t]
2287
+ ), n = E(
2288
+ (d) => {
2289
+ if (t.deserializer)
2290
+ return t.deserializer(d);
2291
+ if (d === "undefined")
2292
+ return;
2293
+ const m = r instanceof Function ? r() : r;
2294
+ let y;
2295
+ try {
2296
+ y = JSON.parse(d);
2297
+ } catch (x) {
2298
+ return console.error("Error parsing JSON:", x), m;
2299
+ }
2300
+ return y;
2301
+ },
2302
+ [t, r]
2303
+ ), a = E(() => {
2304
+ const d = r instanceof Function ? r() : r;
2305
+ if (q)
2306
+ return d;
2307
+ try {
2308
+ const m = window.localStorage.getItem(e);
2309
+ return m ? n(m) : d;
2310
+ } catch (m) {
2311
+ return console.warn(
2312
+ `Error reading localStorage key “${e}”:`,
2313
+ m
2314
+ ), d;
2315
+ }
2316
+ }, [r, e, n]), [s, c] = Ae(() => o ? a() : r instanceof Function ? r() : r), u = E((d) => {
2317
+ q && console.warn(
2318
+ `Tried setting localStorage key “${e}” even though environment is not a client`
2319
+ );
2320
+ try {
2321
+ const m = d instanceof Function ? d(a()) : d;
2322
+ window.localStorage.setItem(e, i(m)), c(m), window.dispatchEvent(
2323
+ new StorageEvent("local-storage", {
2324
+ key: e
2325
+ })
2326
+ );
2327
+ } catch (m) {
2328
+ console.warn(
2329
+ `Error setting localStorage key “${e}”:`,
2330
+ m
2331
+ );
2332
+ }
2333
+ }, [e, i, a]), p = E(() => {
2334
+ q && console.warn(
2335
+ `Tried removing localStorage key “${e}” even though environment is not a client`
2336
+ );
2337
+ const d = r instanceof Function ? r() : r;
2338
+ window.localStorage.removeItem(e), c(d), window.dispatchEvent(
2339
+ new StorageEvent("local-storage", {
2340
+ key: e
2341
+ })
2342
+ );
2343
+ }, [e, r]);
2344
+ k(() => {
2345
+ c(a());
2346
+ }, [e]);
2347
+ const f = E(
2348
+ (d) => {
2349
+ d.key && d.key !== e || c(a());
2350
+ },
2351
+ [e, a]
2352
+ );
2353
+ return ue("storage", f), ue("local-storage", f), [s, u, p];
2265
2354
  }
2266
- function j(e) {
2355
+ function D(e) {
2267
2356
  function r() {
2268
- const o = ee(e), a = F(() => o.current, []), s = ee(/* @__PURE__ */ new Set()), u = F((b) => {
2269
- o.current = { ...o.current, ...b }, s.current.forEach((h) => h());
2270
- }, []), g = F((b) => (s.current.add(b), () => s.current.delete(b)), []);
2357
+ const n = Q(e), a = E(() => n.current, []), s = Q(/* @__PURE__ */ new Set()), c = E((p) => {
2358
+ n.current = { ...n.current, ...p }, s.current.forEach((f) => f());
2359
+ }, []), u = E((p) => (s.current.add(p), () => s.current.delete(p)), []);
2271
2360
  return {
2272
2361
  get: a,
2273
- set: u,
2274
- subscribe: g
2362
+ set: c,
2363
+ subscribe: u
2275
2364
  };
2276
2365
  }
2277
- const t = ge(null);
2278
- function n({ children: o }) {
2279
- return /* @__PURE__ */ A(t.Provider, { value: r(), children: o });
2366
+ const t = ke(null);
2367
+ function o({ children: n }) {
2368
+ return /* @__PURE__ */ M(t.Provider, { value: r(), children: n });
2280
2369
  }
2281
- function l(o) {
2282
- const a = fe(t);
2370
+ function i(n) {
2371
+ const a = Re(t);
2283
2372
  if (!a)
2284
2373
  throw new Error("Store not found");
2285
- return [me(
2374
+ return [Me(
2286
2375
  a.subscribe,
2287
- () => o(a.get()),
2288
- () => o(e)
2376
+ () => n(a.get()),
2377
+ () => n(e)
2289
2378
  ), a.set];
2290
2379
  }
2291
2380
  return {
2292
- Provider: n,
2293
- useStore: l
2381
+ Provider: o,
2382
+ useStore: i
2294
2383
  };
2295
2384
  }
2296
- const { Provider: cr, useStore: Ye } = j({
2297
- editor: null
2298
- });
2299
- function dr() {
2300
- const [e] = Ye((r) => r.editor);
2301
- return e;
2302
- }
2303
- j({
2385
+ D({
2304
2386
  value: !1
2305
2387
  });
2306
- j({
2388
+ D({
2307
2389
  value: !1
2308
2390
  });
2309
- const { Provider: De, useStore: ue } = j({
2391
+ const { Provider: ur, useStore: we } = D({
2310
2392
  value: !1
2311
- }), { Provider: er, useStore: rr } = j({
2312
- value: "light"
2313
2393
  });
2314
- function ur() {
2315
- const [e] = ue((r) => r.value);
2394
+ function Rr() {
2395
+ const [e] = we((r) => r.value);
2316
2396
  return e;
2317
2397
  }
2318
- const tr = he(({ editor: e, children: r, id: t }) => {
2319
- const [, n] = ue((s) => s.value), [, l] = rr((s) => s.value);
2320
- V(() => {
2321
- n({
2398
+ const pe = "data-rc-order", fe = "data-rc-priority", pr = "rc-util-key", K = /* @__PURE__ */ new Map();
2399
+ function fr(e, r) {
2400
+ if (!e)
2401
+ return !1;
2402
+ if (e.contains)
2403
+ return e.contains(r);
2404
+ let t = r;
2405
+ for (; t; ) {
2406
+ if (t === e)
2407
+ return !0;
2408
+ t = t.parentNode;
2409
+ }
2410
+ return !1;
2411
+ }
2412
+ function ye({ mark: e } = {}) {
2413
+ return e ? e.startsWith("data-") ? e : `data-${e}` : pr;
2414
+ }
2415
+ function ee(e) {
2416
+ return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
2417
+ }
2418
+ function gr(e) {
2419
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2420
+ }
2421
+ function ve(e) {
2422
+ return [...(K.get(e) || e).children].filter(
2423
+ (r) => r.tagName === "STYLE"
2424
+ );
2425
+ }
2426
+ function Ce(e, r = {}) {
2427
+ const { csp: t, prepend: o, priority: i = 0 } = r, n = gr(o), a = n === "prependQueue", s = document.createElement("style");
2428
+ s.setAttribute(pe, n), a && i && s.setAttribute(fe, `${i}`), t != null && t.nonce && (s.nonce = t == null ? void 0 : t.nonce), s.innerHTML = e;
2429
+ const c = ee(r), { firstChild: u } = c;
2430
+ if (o) {
2431
+ if (a) {
2432
+ const p = ve(c).filter((f) => {
2433
+ if (!["prepend", "prependQueue"].includes(f.getAttribute(pe)))
2434
+ return !1;
2435
+ const d = Number(f.getAttribute(fe) || 0);
2436
+ return i >= d;
2437
+ });
2438
+ if (p.length > 0)
2439
+ return c.insertBefore(s, p.at(-1).nextSibling), s;
2440
+ }
2441
+ u.before(s);
2442
+ } else
2443
+ c.append(s);
2444
+ return s;
2445
+ }
2446
+ function Se(e, r = {}) {
2447
+ const t = ee(r);
2448
+ return ve(t).find((o) => o.getAttribute(ye(r)) === e);
2449
+ }
2450
+ function br(e, r = {}) {
2451
+ const t = Se(e, r);
2452
+ t && t.remove();
2453
+ }
2454
+ function mr(e, r) {
2455
+ const t = K.get(e);
2456
+ if (!t || !fr(document, t)) {
2457
+ const o = Ce("", r), { parentNode: i } = o;
2458
+ K.set(e, i), o.remove();
2459
+ }
2460
+ }
2461
+ function hr(e, r, t = {}) {
2462
+ var a, s, c;
2463
+ const o = ee(t);
2464
+ mr(o, t);
2465
+ const i = Se(r, t);
2466
+ if (i)
2467
+ return (a = t.csp) != null && a.nonce && i.nonce !== ((s = t.csp) == null ? void 0 : s.nonce) && (i.nonce = (c = t.csp) == null ? void 0 : c.nonce), i.innerHTML !== e && (i.innerHTML = e), i;
2468
+ const n = Ce(e, t);
2469
+ return n.setAttribute(ye(t), r), n;
2470
+ }
2471
+ const xr = Pe(({ editor: e, children: r }) => {
2472
+ const [, t] = we((i) => i.value);
2473
+ k(() => {
2474
+ t({
2322
2475
  value: e == null ? void 0 : e.isEditable
2323
2476
  });
2324
2477
  }, [e == null ? void 0 : e.isEditable]);
2325
2478
  const o = () => {
2326
- n({
2479
+ t({
2327
2480
  value: e == null ? void 0 : e.isEditable
2328
2481
  });
2329
2482
  };
2330
- V(() => (e && e.on("update", o), () => {
2483
+ return k(() => (e && e.on("update", o), () => {
2331
2484
  e && e.off("update", o);
2332
- }), [e]);
2333
- const a = (s) => {
2334
- l({
2335
- value: s.detail
2336
- });
2337
- };
2338
- return V(() => {
2339
- const s = ne(se.UPDATE_THEME(t), a);
2340
- return () => {
2341
- s();
2342
- };
2343
- }, []), /* @__PURE__ */ A(oe, { children: r });
2485
+ }), [e]), /* @__PURE__ */ M(X, { children: r });
2344
2486
  });
2345
- function or() {
2346
- const [e, r] = xe(ye), t = (n) => {
2487
+ function wr() {
2488
+ const [e, r] = Ne(Ge), t = (o) => {
2347
2489
  r({
2348
2490
  ...e,
2349
- currentLang: n.detail
2491
+ currentLang: o.detail
2350
2492
  });
2351
2493
  };
2352
- return V(() => {
2353
- const n = ne(se.CHANGE_LANGUAGE, t);
2494
+ return k(() => {
2495
+ const o = _(W.CHANGE_LANGUAGE, t);
2496
+ return () => {
2497
+ o();
2498
+ };
2499
+ }, []), /* @__PURE__ */ M(X, {});
2500
+ }
2501
+ function yr() {
2502
+ const [e, r] = J("richtext-theme", "light"), [t, o] = J("richtext-color", "default"), [i, n] = J("richtext-border-radius", "0.65rem");
2503
+ k(() => {
2504
+ const u = e || "light", p = t || "default";
2505
+ let f = le[u][p];
2506
+ if (!f) {
2507
+ f = le.light.default;
2508
+ return;
2509
+ }
2510
+ return hr(`
2511
+ .reactjs-tiptap-editor, .reactjs-tiptap-editor *,
2512
+ div[data-richtext-portal], div[data-richtext-portal] * {
2513
+ ${Object.entries(f).map(([d, m]) => typeof i == "string" && d === "radius" ? `--${d}: ${i};` : `--${d}: ${m};`).join(`
2514
+ `)}
2515
+ }
2516
+ `, "richtext-theme", {
2517
+ priority: 50
2518
+ }), () => {
2519
+ br("richtext-theme");
2520
+ };
2521
+ }, [e, t, i]);
2522
+ const a = (u) => {
2523
+ r(u.detail);
2524
+ }, s = (u) => {
2525
+ o(u.detail);
2526
+ }, c = (u) => {
2527
+ n(u.detail);
2528
+ };
2529
+ return k(() => {
2530
+ const u = _(W.CHANGE_THEME, a), p = _(W.CHANGE_COLOR, s), f = _(W.CHANGE_BORDER_RADIUS, c);
2354
2531
  return () => {
2355
- n();
2532
+ u(), p(), f();
2356
2533
  };
2357
- }, []), /* @__PURE__ */ A(oe, {});
2534
+ }, []), /* @__PURE__ */ M(X, {});
2358
2535
  }
2359
- function pr({ editor: e, children: r, id: t }) {
2360
- return /* @__PURE__ */ A(De, { children: /* @__PURE__ */ be(er, { children: [
2361
- /* @__PURE__ */ A(
2362
- tr,
2536
+ function Mr({ editor: e, children: r, id: t }) {
2537
+ return /* @__PURE__ */ ze(ur, { children: [
2538
+ /* @__PURE__ */ M(
2539
+ xr,
2363
2540
  {
2364
2541
  editor: e,
2365
2542
  id: t,
2366
2543
  children: r
2367
2544
  }
2368
2545
  ),
2369
- /* @__PURE__ */ A(or, {})
2370
- ] }) });
2546
+ /* @__PURE__ */ M(wr, {}),
2547
+ /* @__PURE__ */ M(yr, {})
2548
+ ] });
2371
2549
  }
2372
2550
  export {
2373
- cr as P,
2374
- dr as a,
2375
- pr as b,
2376
- ir as c,
2377
- Ye as d,
2378
- ur as e,
2379
- rr as u
2551
+ Mr as P,
2552
+ J as a,
2553
+ Rr as b,
2554
+ kr as c,
2555
+ br as r,
2556
+ hr as u
2380
2557
  };