@remarkablejames/editor 0.0.6 → 0.0.7

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 (187) hide show
  1. package/README.md +1 -1
  2. package/lib/ActionMenuButton-D9o3Kwmv.cjs +1 -0
  3. package/lib/{ActionMenuButton-CpmEfz31.js → ActionMenuButton-nxV91Fqo.js} +10 -9
  4. package/lib/Attachment.cjs +19 -1
  5. package/lib/Attachment.js +270 -7
  6. package/lib/Blockquote.cjs +2 -2
  7. package/lib/Blockquote.js +12 -13
  8. package/lib/Bold.cjs +1 -1
  9. package/lib/Bold.js +10 -11
  10. package/lib/BulletList.cjs +1 -1
  11. package/lib/BulletList.js +8 -9
  12. package/lib/Callout.cjs +1 -1
  13. package/lib/Callout.js +45 -40
  14. package/lib/Clear.cjs +1 -1
  15. package/lib/Clear.js +14 -13
  16. package/lib/Code.cjs +1 -1
  17. package/lib/Code.js +5 -6
  18. package/lib/CodeBlock.cjs +1 -1
  19. package/lib/CodeBlock.js +33 -31
  20. package/lib/CodeView.cjs +1 -1
  21. package/lib/CodeView.js +8 -9
  22. package/lib/Color.cjs +1 -1
  23. package/lib/Color.js +19 -18
  24. package/lib/Column.cjs +1 -1
  25. package/lib/Column.js +8 -9
  26. package/lib/Drawer-Bh-y5bs8.cjs +2 -0
  27. package/lib/{Drawer-CayP4Ww4.js → Drawer-CF6Z_IA2.js} +36 -30
  28. package/lib/Drawer.cjs +1 -1
  29. package/lib/Drawer.js +3 -3
  30. package/lib/Emoji.cjs +1 -1
  31. package/lib/Emoji.js +18 -17
  32. package/lib/Excalidraw.cjs +1 -1
  33. package/lib/Excalidraw.js +37 -32
  34. package/lib/ExportPdf.cjs +3 -3
  35. package/lib/ExportPdf.js +13 -14
  36. package/lib/ExportWord.cjs +1 -1
  37. package/lib/ExportWord.js +6 -6
  38. package/lib/FontFamily.cjs +1 -1
  39. package/lib/FontFamily.js +6 -7
  40. package/lib/FontSize.cjs +1 -1
  41. package/lib/FontSize.js +14 -15
  42. package/lib/Heading.cjs +1 -1
  43. package/lib/Heading.js +28 -28
  44. package/lib/Highlight.cjs +1 -1
  45. package/lib/Highlight.js +23 -22
  46. package/lib/History.cjs +1 -1
  47. package/lib/History.js +11 -11
  48. package/lib/HorizontalRule.cjs +1 -1
  49. package/lib/HorizontalRule.js +9 -10
  50. package/lib/Icon-BvGyfX2j.js +15 -0
  51. package/lib/Icon-wjwoRc9F.cjs +1 -0
  52. package/lib/Iframe-BbfZKbPY.cjs +1 -0
  53. package/lib/{Iframe-C6Sb97KS.js → Iframe-Dfd3LI7b.js} +14 -11
  54. package/lib/Iframe.cjs +1 -1
  55. package/lib/Iframe.js +3 -3
  56. package/lib/Image.cjs +1 -1
  57. package/lib/Image.js +5 -4
  58. package/lib/ImageCropper-CY1ETEjC.cjs +10 -0
  59. package/lib/ImageCropper-DrSdjo9x.js +979 -0
  60. package/lib/ImageGif.cjs +1 -1
  61. package/lib/ImageGif.js +83 -80
  62. package/lib/ImportWord.cjs +1 -1
  63. package/lib/ImportWord.js +37 -35
  64. package/lib/{Indent-CcFe8py3.js → Indent-CDVF9DWN.js} +30 -31
  65. package/lib/Indent-Q1VuhSM2.cjs +1 -0
  66. package/lib/Indent.cjs +1 -1
  67. package/lib/Indent.js +2 -2
  68. package/lib/Italic.cjs +1 -1
  69. package/lib/Italic.js +11 -12
  70. package/lib/{Katex-Bp6AnIUF.js → Katex-DqhWWAA-.js} +22 -18
  71. package/lib/Katex-K1QU2SB2.cjs +4 -0
  72. package/lib/Katex.cjs +1 -1
  73. package/lib/Katex.js +2 -2
  74. package/lib/LineHeight.cjs +1 -1
  75. package/lib/LineHeight.js +20 -19
  76. package/lib/Link.cjs +1 -1
  77. package/lib/Link.js +2 -2
  78. package/lib/LinkEditBlock-CBYGLs3J.cjs +5 -0
  79. package/lib/{LinkEditBlock-BiHumIJR.js → LinkEditBlock-xP0pGVhB.js} +27 -22
  80. package/lib/Mention.js +3 -3
  81. package/lib/{Mermaid-Dlx0XTJj.js → Mermaid-BJ6ryVdY.js} +59 -55
  82. package/lib/Mermaid-D3_nLeOW.cjs +2 -0
  83. package/lib/Mermaid.cjs +1 -1
  84. package/lib/Mermaid.js +2 -2
  85. package/lib/MoreMark.cjs +1 -1
  86. package/lib/MoreMark.js +28 -26
  87. package/lib/OrderedList.cjs +1 -1
  88. package/lib/OrderedList.js +10 -11
  89. package/lib/PaywallSeparator.cjs +1 -1
  90. package/lib/PaywallSeparator.js +9 -9
  91. package/lib/SearchAndReplace.cjs +1 -1
  92. package/lib/SearchAndReplace.js +39 -34
  93. package/lib/SlashCommand.cjs +1 -1
  94. package/lib/SlashCommand.js +5 -5
  95. package/lib/SlashCommandNodeView-CUJrDQS7.cjs +1 -0
  96. package/lib/{SlashCommandNodeView-DzmsYaNc.js → SlashCommandNodeView-DS9FqMiY.js} +23 -21
  97. package/lib/Strike.cjs +1 -1
  98. package/lib/Strike.js +11 -12
  99. package/lib/Table-CV6pUoVf.cjs +5 -0
  100. package/lib/{Table-IH34r4jd.js → Table-CcG-JNtV.js} +46 -46
  101. package/lib/Table.cjs +1 -1
  102. package/lib/Table.js +1 -1
  103. package/lib/TaskList.cjs +1 -1
  104. package/lib/TaskList.js +11 -12
  105. package/lib/TextAlign.cjs +1 -1
  106. package/lib/TextAlign.js +27 -26
  107. package/lib/TextDirection.cjs +1 -1
  108. package/lib/TextDirection.js +19 -18
  109. package/lib/TextUnderline.cjs +1 -1
  110. package/lib/TextUnderline.js +8 -9
  111. package/lib/{Twitter-FVQKPaq6.js → Twitter-BIL3o833.js} +19 -15
  112. package/lib/Twitter-BfSTqPDh.cjs +1 -0
  113. package/lib/Twitter.cjs +1 -1
  114. package/lib/Twitter.js +2 -2
  115. package/lib/Video-DAKr90QL.js +231 -0
  116. package/lib/Video-HAinT0w6.cjs +1 -0
  117. package/lib/Video.cjs +1 -1
  118. package/lib/Video.js +5 -4
  119. package/lib/bubble.cjs +3 -3
  120. package/lib/bubble.js +112 -101
  121. package/lib/button-090-I3tp.js +35 -0
  122. package/lib/button-B4Sz2ZhW.cjs +1 -0
  123. package/lib/checkbox-BCPsu7yR.cjs +1 -0
  124. package/lib/checkbox-DiXWHAI0.js +29 -0
  125. package/lib/{clsx-BUPZHhq3.js → clsx-m_C5j3RU.js} +24 -24
  126. package/lib/components/RichTextProvider.d.ts +1 -1
  127. package/lib/dialog-C8J59d2J.cjs +1 -0
  128. package/lib/dialog-bDkDW-C_.js +95 -0
  129. package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
  130. package/lib/dom-dataset-CIEeltF6.js +47 -0
  131. package/lib/{dropdown-menu-Ce2TorkG.js → dropdown-menu-DWt_xj4h.js} +1 -1
  132. package/lib/{dropdown-menu-DirUyRAI.cjs → dropdown-menu-tUP872Zv.cjs} +1 -1
  133. package/lib/events.constant-Bke62qxm.cjs +1 -0
  134. package/lib/events.constant-CSWD3-ho.js +72 -0
  135. package/lib/file-i7e4nQY2.cjs +1 -0
  136. package/lib/file-jDdkhyj7.js +43 -0
  137. package/lib/{index-RkKGy5oa.js → index-B3Ijnbxs.js} +1 -1
  138. package/lib/index-BXh8X1ch.cjs +1 -0
  139. package/lib/{index-Dl3OjzmR.js → index-C1KQsOcg.js} +1 -1
  140. package/lib/{index-D4M4hrH4.js → index-C8FjP66D.js} +1 -1
  141. package/lib/index-jMN4V2hr.js +2763 -0
  142. package/lib/{index-DZj2z9_1.js → index-s3l5RdyW.js} +1 -1
  143. package/lib/index.cjs +4 -4
  144. package/lib/index.js +464 -149
  145. package/lib/input-C_J-pfTx.js +21 -0
  146. package/lib/input-DwLo4r7V.cjs +1 -0
  147. package/lib/isNumber-BTYSVlKo.cjs +1 -0
  148. package/lib/isNumber-WaBzl_0s.js +15 -0
  149. package/lib/label-BgIVynq3.cjs +1 -0
  150. package/lib/label-ClsOg9Hr.js +11 -0
  151. package/lib/{popover-BzJyaFvy.js → popover-BC7FRr8B.js} +1 -1
  152. package/lib/{popover-BdLwAlrM.cjs → popover-C3A6zzNV.cjs} +1 -1
  153. package/lib/{renderNodeView-dj6AaFSX.js → renderNodeView-C_hPIdEs.js} +2 -2
  154. package/lib/select-B8HIWDXf.cjs +1 -0
  155. package/lib/select-DSKqhVGR.js +120 -0
  156. package/lib/{separator-D-fyzbfx.js → separator-BJWSNjvr.js} +23 -22
  157. package/lib/separator-D6ruF682.cjs +1 -0
  158. package/lib/style.css +1 -1
  159. package/lib/tabs-D1J1iB7B.js +46 -0
  160. package/lib/tabs-IEbMQmNX.cjs +1 -0
  161. package/lib/textarea-Ch5w3PiI.js +20 -0
  162. package/lib/textarea-CtVdqwSM.cjs +1 -0
  163. package/lib/theme.cjs +1 -1
  164. package/lib/theme.js +18 -18
  165. package/lib/throttle-CRNq0z-O.js +249 -0
  166. package/lib/throttle-gTTvqDTW.cjs +1 -0
  167. package/lib/toggle-C9tcMm1r.cjs +1 -0
  168. package/lib/toggle-CaSwYCk4.js +89 -0
  169. package/lib/{updatePosition-C294Pixi.js → updatePosition-DvfTZHcH.js} +2 -2
  170. package/lib/use-toast-C6zPo25l.cjs +1 -0
  171. package/lib/use-toast-CEOqhXfx.js +97 -0
  172. package/lib/useButtonProps-D-ruygH7.js +165 -0
  173. package/lib/useButtonProps-D9ndBdmA.cjs +1 -0
  174. package/package.json +21 -32
  175. package/lib/ActionMenuButton-NfiUDE60.cjs +0 -1
  176. package/lib/Drawer-DlgdaO_B.cjs +0 -2
  177. package/lib/Iframe-CANdxSpV.cjs +0 -1
  178. package/lib/Indent-DuB2U6Cs.cjs +0 -1
  179. package/lib/Katex-DFU1unCm.cjs +0 -4
  180. package/lib/LinkEditBlock-C2zX0WVK.cjs +0 -5
  181. package/lib/Mermaid-B8lQSOGn.cjs +0 -2
  182. package/lib/SlashCommandNodeView-BfWNWGRr.cjs +0 -1
  183. package/lib/Table-BfM6ywrZ.cjs +0 -5
  184. package/lib/Twitter-axcoCgD7.cjs +0 -1
  185. package/lib/index-BynXHtjJ.cjs +0 -28
  186. package/lib/index-CnKgiZFQ.js +0 -5576
  187. package/lib/separator-CoQaQmFK.cjs +0 -1
@@ -0,0 +1,21 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { c as x } from "./index-jMN4V2hr.js";
4
+ const h = o.forwardRef(
5
+ ({ className: t, type: e, ...r }, i) => /* @__PURE__ */ c(
6
+ "input",
7
+ {
8
+ ref: i,
9
+ type: e,
10
+ className: x(
11
+ "richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
12
+ t
13
+ ),
14
+ ...r
15
+ }
16
+ )
17
+ );
18
+ h.displayName = "Input";
19
+ export {
20
+ h as I
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-BXh8X1ch.cjs");function u(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const x=u(o),c=x.forwardRef(({className:t,type:r,...e},i)=>n.jsx("input",{ref:i,type:r,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",t),...e}));c.displayName="Input";exports.Input=c;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./throttle-gTTvqDTW.cjs");function d(i,t,f){return i===i&&(f!==void 0&&(i=i<=f?i:f),t!==void 0&&(i=i>=t?i:t)),i}function c(i,t,f){return f===void 0&&(f=t,t=void 0),f!==void 0&&(f=n.toNumber(f),f=f===f?f:0),t!==void 0&&(t=n.toNumber(t),t=t===t?t:0),d(n.toNumber(i),t,f)}var s="[object Number]";function a(i){return typeof i=="number"||n.isObjectLike(i)&&n.baseGetTag(i)==s}exports.clamp=c;exports.isNumber=a;
@@ -0,0 +1,15 @@
1
+ import { t, i as d, b as a } from "./throttle-CRNq0z-O.js";
2
+ function s(i, f, n) {
3
+ return i === i && (n !== void 0 && (i = i <= n ? i : n), f !== void 0 && (i = i >= f ? i : f)), i;
4
+ }
5
+ function b(i, f, n) {
6
+ return n === void 0 && (n = f, f = void 0), n !== void 0 && (n = t(n), n = n === n ? n : 0), f !== void 0 && (f = t(f), f = f === f ? f : 0), s(t(i), f, n);
7
+ }
8
+ var c = "[object Number]";
9
+ function g(i) {
10
+ return typeof i == "number" || d(i) && a(i) == c;
11
+ }
12
+ export {
13
+ b as c,
14
+ g as i
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),l=require("@radix-ui/react-label"),c=require("./index-BXh8X1ch.cjs"),u=require("react");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=i(l),d=i(u),m=c.cva("richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"),o=d.forwardRef(({className:e,...r},t)=>s.jsx(n.Root,{className:c.cn(m(),e),ref:t,...r}));o.displayName=n.Root.displayName;exports.Label=o;
@@ -0,0 +1,11 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-label";
3
+ import { c as i, a as s } from "./index-jMN4V2hr.js";
4
+ import * as c from "react";
5
+ const m = s(
6
+ "richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
7
+ ), l = c.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(t.Root, { className: i(m(), e), ref: r, ...a }));
8
+ l.displayName = t.Root.displayName;
9
+ export {
10
+ l as L
11
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import * as t from "@radix-ui/react-popover";
3
3
  import * as c from "react";
4
- import { c as s } from "./index-CnKgiZFQ.js";
4
+ import { c as s } from "./index-jMN4V2hr.js";
5
5
  const x = t.Root, p = t.Trigger, n = c.forwardRef(({ className: o, align: r = "center", sideOffset: i = 4, ...a }, d) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
6
6
  t.Content,
7
7
  {
@@ -1 +1 @@
1
- "use strict";const a=require("react/jsx-runtime"),d=require("@radix-ui/react-popover"),p=require("react"),h=require("./index-BynXHtjJ.cjs");function n(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=n(d),l=n(p),x=o.Root,m=o.Trigger,c=l.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},s)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:s,sideOffset:e,className:h.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=x;exports.PopoverContent=c;exports.PopoverTrigger=m;
1
+ "use strict";const a=require("react/jsx-runtime"),s=require("@radix-ui/react-popover"),p=require("react"),x=require("./index-BXh8X1ch.cjs");function n(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=n(s),h=n(p),l=o.Root,m=o.Trigger,c=h.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},d)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:d,sideOffset:e,className:x.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=l;exports.PopoverContent=c;exports.PopoverTrigger=m;
@@ -1,5 +1,5 @@
1
- import { R as i } from "./clsx-BUPZHhq3.js";
2
- import { u as r } from "./updatePosition-C294Pixi.js";
1
+ import { R as i } from "./clsx-m_C5j3RU.js";
2
+ import { u as r } from "./updatePosition-DvfTZHcH.js";
3
3
  function l(o) {
4
4
  return () => {
5
5
  let e;
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react/jsx-runtime"),f=require("@radix-ui/react-select"),x=require("lucide-react"),g=require("react"),s=require("./index-BXh8X1ch.cjs");function l(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(i,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}return i.default=r,Object.freeze(i)}const t=l(f),o=l(g),y=t.Root,b=t.Value,n=o.forwardRef(({className:r,children:i,...e},a)=>c.jsxs(t.Trigger,{ref:a,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",r),...e,children:[i,c.jsx(t.Icon,{asChild:!0,children:c.jsx(x.ChevronDown,{className:"richtext-size-4 richtext-opacity-50"})})]}));n.displayName=t.Trigger.displayName;const h=o.forwardRef(({className:r,...i},e)=>c.jsx(t.ScrollUpButton,{ref:e,className:s.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",r),...i,children:c.jsx(x.ChevronUp,{className:"richtext-size-4"})}));h.displayName=t.ScrollUpButton.displayName;const d=o.forwardRef(({className:r,...i},e)=>c.jsx(t.ScrollDownButton,{ref:e,className:s.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",r),...i,children:c.jsx(x.ChevronDown,{className:"richtext-size-4"})}));d.displayName=t.ScrollDownButton.displayName;const m=o.forwardRef(({className:r,children:i,position:e="popper",...a},u)=>c.jsx(t.Portal,{children:c.jsxs(t.Content,{"data-richtext-portal":!0,position:e,ref:u,className:s.cn("richtext-relative richtext-z-50 richtext-max-h-60 richtext-min-w-[8rem] richtext-overflow-hidden richtext-overflow-y-auto richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",r),...a,children:[c.jsx(h,{}),c.jsx(t.Viewport,{className:s.cn("richtext-p-1",e==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:i}),c.jsx(d,{})]})}));m.displayName=t.Content.displayName;const j=o.forwardRef(({className:r,...i},e)=>c.jsx(t.Label,{className:s.cn("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",r),ref:e,...i}));j.displayName=t.Label.displayName;const p=o.forwardRef(({className:r,children:i,...e},a)=>c.jsxs(t.Item,{ref:a,className:s.cn("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r),...e,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(t.ItemIndicator,{children:c.jsx(x.Check,{className:"richtext-size-4"})})}),c.jsx(t.ItemText,{children:i})]}));p.displayName=t.Item.displayName;const N=o.forwardRef(({className:r,...i},e)=>c.jsx(t.Separator,{className:s.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",r),ref:e,...i}));N.displayName=t.Separator.displayName;exports.Select=y;exports.SelectContent=m;exports.SelectItem=p;exports.SelectTrigger=n;exports.SelectValue=b;
@@ -0,0 +1,120 @@
1
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-select";
3
+ import { ChevronDown as x, ChevronUp as m, Check as p } from "lucide-react";
4
+ import * as o from "react";
5
+ import { c as a } from "./index-jMN4V2hr.js";
6
+ const v = t.Root, R = t.Value, f = o.forwardRef(({ className: i, children: c, ...r }, s) => /* @__PURE__ */ h(
7
+ t.Trigger,
8
+ {
9
+ ref: s,
10
+ className: a(
11
+ "richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
12
+ i
13
+ ),
14
+ ...r,
15
+ children: [
16
+ c,
17
+ /* @__PURE__ */ e(t.Icon, { asChild: !0, children: /* @__PURE__ */ e(x, { className: "richtext-size-4 richtext-opacity-50" }) })
18
+ ]
19
+ }
20
+ ));
21
+ f.displayName = t.Trigger.displayName;
22
+ const l = o.forwardRef(({ className: i, ...c }, r) => /* @__PURE__ */ e(
23
+ t.ScrollUpButton,
24
+ {
25
+ ref: r,
26
+ className: a(
27
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
28
+ i
29
+ ),
30
+ ...c,
31
+ children: /* @__PURE__ */ e(m, { className: "richtext-size-4" })
32
+ }
33
+ ));
34
+ l.displayName = t.ScrollUpButton.displayName;
35
+ const d = o.forwardRef(({ className: i, ...c }, r) => /* @__PURE__ */ e(
36
+ t.ScrollDownButton,
37
+ {
38
+ ref: r,
39
+ className: a(
40
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
41
+ i
42
+ ),
43
+ ...c,
44
+ children: /* @__PURE__ */ e(x, { className: "richtext-size-4" })
45
+ }
46
+ ));
47
+ d.displayName = t.ScrollDownButton.displayName;
48
+ const u = o.forwardRef(({ className: i, children: c, position: r = "popper", ...s }, n) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ h(
49
+ t.Content,
50
+ {
51
+ "data-richtext-portal": !0,
52
+ position: r,
53
+ ref: n,
54
+ className: a(
55
+ "richtext-relative richtext-z-50 richtext-max-h-60 richtext-min-w-[8rem] richtext-overflow-hidden richtext-overflow-y-auto richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
56
+ r === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
57
+ i
58
+ ),
59
+ ...s,
60
+ children: [
61
+ /* @__PURE__ */ e(l, {}),
62
+ /* @__PURE__ */ e(
63
+ t.Viewport,
64
+ {
65
+ className: a(
66
+ "richtext-p-1",
67
+ r === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
68
+ ),
69
+ children: c
70
+ }
71
+ ),
72
+ /* @__PURE__ */ e(d, {})
73
+ ]
74
+ }
75
+ ) }));
76
+ u.displayName = t.Content.displayName;
77
+ const y = o.forwardRef(({ className: i, ...c }, r) => /* @__PURE__ */ e(
78
+ t.Label,
79
+ {
80
+ className: a(
81
+ "richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",
82
+ i
83
+ ),
84
+ ref: r,
85
+ ...c
86
+ }
87
+ ));
88
+ y.displayName = t.Label.displayName;
89
+ const g = o.forwardRef(({ className: i, children: c, ...r }, s) => /* @__PURE__ */ h(
90
+ t.Item,
91
+ {
92
+ ref: s,
93
+ className: a(
94
+ "richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
95
+ i
96
+ ),
97
+ ...r,
98
+ children: [
99
+ /* @__PURE__ */ e("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(p, { className: "richtext-size-4" }) }) }),
100
+ /* @__PURE__ */ e(t.ItemText, { children: c })
101
+ ]
102
+ }
103
+ ));
104
+ g.displayName = t.Item.displayName;
105
+ const N = o.forwardRef(({ className: i, ...c }, r) => /* @__PURE__ */ e(
106
+ t.Separator,
107
+ {
108
+ className: a("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", i),
109
+ ref: r,
110
+ ...c
111
+ }
112
+ ));
113
+ N.displayName = t.Separator.displayName;
114
+ export {
115
+ v as S,
116
+ f as a,
117
+ R as b,
118
+ u as c,
119
+ g as d
120
+ };
@@ -1,13 +1,14 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
2
  import { Plus as k } from "lucide-react";
3
3
  import * as $ from "react";
4
- import { useCallback as m, useState as w, useEffect as L, useRef as M, useMemo as B } from "react";
5
- import { HexColorPicker as F } from "react-colorful";
6
- import { j as I, B as _, c as T } from "./index-CnKgiZFQ.js";
7
- import "./theme.js";
8
- import { P as N, a as z, b as E } from "./popover-BzJyaFvy.js";
9
- import * as y from "@radix-ui/react-separator";
10
- import { u as R, C as j } from "./index-BGd2HiwP.js";
4
+ import { useCallback as m, useState as w, useEffect as L, useRef as M, useMemo as I } from "react";
5
+ import { HexColorPicker as B } from "react-colorful";
6
+ import { u as N, C as F } from "./index-BGd2HiwP.js";
7
+ import { P as z, a as E, b as y } from "./popover-BC7FRr8B.js";
8
+ import { I as _ } from "./input-C_J-pfTx.js";
9
+ import * as R from "@radix-ui/react-separator";
10
+ import { c as T } from "./index-jMN4V2hr.js";
11
+ import { B as j } from "./button-090-I3tp.js";
11
12
  function D() {
12
13
  return /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ t(
13
14
  "path",
@@ -101,8 +102,8 @@ function J(e, r, c = {}) {
101
102
  );
102
103
  return S("storage", v), S("local-storage", v), [h, b, g];
103
104
  }
104
- function X(e) {
105
- const { t: r } = R(), { disabled: c = !1, value: d, onChange: n, colors: u = j, highlight: a } = e, [h, f] = w(!1), b = B(() => {
105
+ function Y(e) {
106
+ const { t: r } = N(), { disabled: c = !1, value: d, onChange: n, colors: u = F, highlight: a } = e, [h, f] = w(!1), b = I(() => {
106
107
  const i = u, l = [];
107
108
  for (let x = 0; x < i.length; x += 10)
108
109
  l.push(i.slice(x, x + 10));
@@ -121,10 +122,10 @@ function X(e) {
121
122
  }
122
123
  /^#([\da-f]{3}){1,2}$/i.test(i) && (n == null || n(i), o(i), f(!1));
123
124
  }
124
- return /* @__PURE__ */ p(N, { modal: !0, onOpenChange: f, open: h, children: [
125
- /* @__PURE__ */ t(z, { asChild: !0, className: "!richtext-p-0", disabled: c, children: e == null ? void 0 : e.children }),
125
+ return /* @__PURE__ */ p(z, { modal: !0, onOpenChange: f, open: h, children: [
126
+ /* @__PURE__ */ t(E, { asChild: !0, className: "!richtext-p-0", disabled: c, children: e == null ? void 0 : e.children }),
126
127
  /* @__PURE__ */ t(
127
- E,
128
+ y,
128
129
  {
129
130
  align: "start",
130
131
  className: "richtext-size-full !richtext-p-2",
@@ -227,18 +228,18 @@ function X(e) {
227
228
  ] });
228
229
  }
229
230
  function Z({ setColor: e }) {
230
- const { t: r } = R(), [c, d] = w(!1), [n, u] = w("#000000"), a = m((h) => {
231
+ const { t: r } = N(), [c, d] = w(!1), [n, u] = w("#000000"), a = m((h) => {
231
232
  u(h);
232
233
  }, []);
233
- return /* @__PURE__ */ p(N, { onOpenChange: d, open: c, children: [
234
- /* @__PURE__ */ t(z, { asChild: !0, children: /* @__PURE__ */ p("div", { className: "richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent", children: [
234
+ return /* @__PURE__ */ p(z, { onOpenChange: d, open: c, children: [
235
+ /* @__PURE__ */ t(E, { asChild: !0, children: /* @__PURE__ */ p("div", { className: "richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent", children: [
235
236
  r("editor.color.more"),
236
237
  "..."
237
238
  ] }) }),
238
- /* @__PURE__ */ p(E, { children: [
239
+ /* @__PURE__ */ p(y, { children: [
239
240
  /* @__PURE__ */ p("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-justify-center", children: [
240
241
  /* @__PURE__ */ t(
241
- F,
242
+ B,
242
243
  {
243
244
  color: n,
244
245
  onChange: (h) => {
@@ -247,7 +248,7 @@ function Z({ setColor: e }) {
247
248
  }
248
249
  ),
249
250
  /* @__PURE__ */ t(
250
- I,
251
+ _,
251
252
  {
252
253
  className: "richtext-mt-[8px] richtext-w-full",
253
254
  type: "text",
@@ -260,7 +261,7 @@ function Z({ setColor: e }) {
260
261
  ] }),
261
262
  /* @__PURE__ */ t(O, { className: "richtext-my-[10px]" }),
262
263
  /* @__PURE__ */ t(
263
- _,
264
+ j,
264
265
  {
265
266
  className: "richtext-w-full",
266
267
  onClick: (h) => {
@@ -273,7 +274,7 @@ function Z({ setColor: e }) {
273
274
  ] });
274
275
  }
275
276
  const O = $.forwardRef(({ className: e, orientation: r = "horizontal", decorative: c = !0, ...d }, n) => /* @__PURE__ */ t(
276
- y.Root,
277
+ R.Root,
277
278
  {
278
279
  ref: n,
279
280
  decorative: c,
@@ -286,8 +287,8 @@ const O = $.forwardRef(({ className: e, orientation: r = "horizontal", decorativ
286
287
  ...d
287
288
  }
288
289
  ));
289
- O.displayName = y.Root.displayName;
290
+ O.displayName = R.Root.displayName;
290
291
  export {
291
- X as C,
292
+ Y as C,
292
293
  O as S
293
294
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),k=require("lucide-react"),n=require("react"),E=require("react-colorful"),j=require("./index-DgOXAdKt.cjs"),v=require("./popover-C3A6zzNV.cjs"),P=require("./input-DwLo4r7V.cjs"),O=require("@radix-ui/react-separator"),y=require("./index-BXh8X1ch.cjs"),R=require("./button-B4Sz2ZhW.cjs");function L(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const c in t)if(c!=="default"){const h=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>t[c]})}}return r.default=t,Object.freeze(r)}const _=L(n),N=L(O);function q(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}const w=typeof window>"u";function S(t,r,c=window){const h=n.useRef(void 0);n.useEffect(()=>{h.current=r},[r]),n.useEffect(()=>{if(!(c&&c.addEventListener))return;const f=x=>{h.current&&h.current(x)};return c.addEventListener(t,f),()=>{c.removeEventListener(t,f)}},[t,c])}function $(t,r,c={}){const{initializeWithValue:h=!0}=c,i=n.useCallback(o=>c.serializer?c.serializer(o):JSON.stringify(o),[c]),f=n.useCallback(o=>{if(c.deserializer)return c.deserializer(o);if(o==="undefined")return;const l=r instanceof Function?r():r;let s;try{s=JSON.parse(o)}catch(a){return console.error("Error parsing JSON:",a),l}return s},[c,r]),x=n.useCallback(()=>{const o=r instanceof Function?r():r;if(w)return o;try{const l=window.localStorage.getItem(t);return l?f(l):o}catch(l){return console.warn(`Error reading localStorage key “${t}”:`,l),o}},[r,t,f]),[d,p]=n.useState(()=>h?x():r instanceof Function?r():r),b=n.useCallback(o=>{w&&console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);try{const l=o instanceof Function?o(x()):o;window.localStorage.setItem(t,i(l)),p(l),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))}catch(l){console.warn(`Error setting localStorage key “${t}”:`,l)}},[t,i,x]),g=n.useCallback(()=>{w&&console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);const o=r instanceof Function?r():r;window.localStorage.removeItem(t),p(o),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))},[t,r]);n.useEffect(()=>{p(x())},[t]);const m=n.useCallback(o=>{o.key&&o.key!==t||p(x())},[t,x]);return S("storage",m),S("local-storage",m),[d,b,g]}function M(t){const{t:r}=j.useLocale(),{disabled:c=!1,value:h,onChange:i,colors:f=j.COLORS_LIST,highlight:x}=t,[d,p]=n.useState(!1),b=n.useMemo(()=>{const s=f,a=[];for(let u=0;u<s.length;u+=10)a.push(s.slice(u,u+10));return a},[f]),[g,m]=$(x?"richtext-recent-highlight":"richtext-recent-colors",[]),o=s=>{const a=[...g],u=a.indexOf(s);u!==-1&&a.splice(u,1),a.unshift(s),a.length>10&&a.pop(),m(a)};function l(s){if(s===void 0){i==null||i(s),p(!1);return}/^#([\da-f]{3}){1,2}$/i.test(s)&&(i==null||i(s),o(s),p(!1))}return e.jsxs(v.Popover,{modal:!0,onOpenChange:p,open:d,children:[e.jsx(v.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:c,children:t==null?void 0:t.children}),e.jsx(v.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{l(void 0)},children:[e.jsx(q,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:r(x?"editor.nofill":"editor.default")})]}),b.map((s,a)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:s.map((u,z)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>l(u),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:u},children:u===h?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${z}`))},`color-row-${a}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:r("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:g==null?void 0:g.map((s,a)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>l(s),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:s},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${a}`))})]}),e.jsx(T,{setColor:l})]})})]})}function T({setColor:t}){const{t:r}=j.useLocale(),[c,h]=n.useState(!1),[i,f]=n.useState("#000000"),x=n.useCallback(d=>{f(d)},[]);return e.jsxs(v.Popover,{onOpenChange:h,open:c,children:[e.jsx(v.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[r("editor.color.more"),"..."]})}),e.jsxs(v.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(E.HexColorPicker,{color:i,onChange:d=>{x(d)}}),e.jsx(P.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:d=>{d.preventDefault(),d.stopPropagation(),x(`#${d.target.value}`)}})]}),e.jsx(C,{className:"richtext-my-[10px]"}),e.jsx(R.Button,{className:"richtext-w-full",onClick:d=>{d.preventDefault(),d.stopPropagation(),t(i),h(!1)},children:e.jsx(k.Plus,{size:16})})]})]})}const C=_.forwardRef(({className:t,orientation:r="horizontal",decorative:c=!0,...h},i)=>e.jsx(N.Root,{ref:i,decorative:c,orientation:r,className:y.cn("richtext-shrink-0 richtext-bg-border",r==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",t),...h}));C.displayName=N.Root.displayName;exports.ColorPicker=M;exports.Separator=C;