@crystallize/design-system 1.24.11 → 1.24.13

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.
package/dist/index.js CHANGED
@@ -7566,17 +7566,17 @@ var init_12 = __esm({
7566
7566
  });
7567
7567
 
7568
7568
  // src/rich-text-editor/context/SharedHistoryContext.tsx
7569
- var import_react117, import_LexicalHistoryPlugin, import_jsx_runtime134, Context, SharedHistoryContext, useSharedHistoryContext;
7569
+ var import_react117, import_LexicalHistoryPlugin, import_jsx_runtime136, Context, SharedHistoryContext, useSharedHistoryContext;
7570
7570
  var init_SharedHistoryContext = __esm({
7571
7571
  "src/rich-text-editor/context/SharedHistoryContext.tsx"() {
7572
7572
  "use strict";
7573
7573
  import_react117 = require("react");
7574
7574
  import_LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
7575
- import_jsx_runtime134 = require("react/jsx-runtime");
7575
+ import_jsx_runtime136 = require("react/jsx-runtime");
7576
7576
  Context = (0, import_react117.createContext)({});
7577
7577
  SharedHistoryContext = ({ children }) => {
7578
7578
  const historyContext = (0, import_react117.useMemo)(() => ({ historyState: (0, import_LexicalHistoryPlugin.createEmptyHistoryState)() }), []);
7579
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Context.Provider, {
7579
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Context.Provider, {
7580
7580
  value: historyContext,
7581
7581
  children
7582
7582
  });
@@ -7664,7 +7664,7 @@ function I18nProvider({
7664
7664
  children
7665
7665
  }) {
7666
7666
  const translations2 = labelTranslations || en_default;
7667
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(I18nContext.Provider, {
7667
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(I18nContext.Provider, {
7668
7668
  value: translations2,
7669
7669
  children
7670
7670
  });
@@ -7687,14 +7687,14 @@ function useTr() {
7687
7687
  return "";
7688
7688
  };
7689
7689
  }
7690
- var import_react118, import_jsx_runtime135, I18nContext;
7690
+ var import_react118, import_jsx_runtime137, I18nContext;
7691
7691
  var init_i18n = __esm({
7692
7692
  "src/rich-text-editor/i18n/index.tsx"() {
7693
7693
  "use strict";
7694
7694
  import_react118 = require("react");
7695
7695
  init_en();
7696
7696
  init_en();
7697
- import_jsx_runtime135 = require("react/jsx-runtime");
7697
+ import_jsx_runtime137 = require("react/jsx-runtime");
7698
7698
  I18nContext = (0, import_react118.createContext)(null);
7699
7699
  }
7700
7700
  });
@@ -8138,17 +8138,17 @@ var init_BaseNodes = __esm({
8138
8138
 
8139
8139
  // src/rich-text-editor/plugins/AutoLinkPlugin/index.tsx
8140
8140
  function LexicalAutoLinkPlugin() {
8141
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_LexicalAutoLinkPlugin.AutoLinkPlugin, {
8141
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_LexicalAutoLinkPlugin.AutoLinkPlugin, {
8142
8142
  matchers: MATCHERS
8143
8143
  });
8144
8144
  }
8145
- var React2, import_LexicalAutoLinkPlugin, import_jsx_runtime136, URL_MATCHER, EMAIL_MATCHER, MATCHERS;
8145
+ var React2, import_LexicalAutoLinkPlugin, import_jsx_runtime138, URL_MATCHER, EMAIL_MATCHER, MATCHERS;
8146
8146
  var init_AutoLinkPlugin = __esm({
8147
8147
  "src/rich-text-editor/plugins/AutoLinkPlugin/index.tsx"() {
8148
8148
  "use strict";
8149
8149
  React2 = require("react");
8150
8150
  import_LexicalAutoLinkPlugin = require("@lexical/react/LexicalAutoLinkPlugin");
8151
- import_jsx_runtime136 = require("react/jsx-runtime");
8151
+ import_jsx_runtime138 = require("react/jsx-runtime");
8152
8152
  URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
8153
8153
  EMAIL_MATCHER = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
8154
8154
  MATCHERS = [
@@ -8207,18 +8207,18 @@ function CopyButton({ editor, getCodeDOMNode }) {
8207
8207
  console.error("Failed to copy: ", err);
8208
8208
  }
8209
8209
  }
8210
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("button", {
8210
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("button", {
8211
8211
  className: "c-rte-code-button",
8212
8212
  onClick: handleClick,
8213
8213
  "aria-label": tr("actionCopyCode"),
8214
- children: isCopyCompleted ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("i", {
8214
+ children: isCopyCompleted ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("i", {
8215
8215
  className: "c-rte-code-button__icon c-rte-icon-success"
8216
- }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("i", {
8216
+ }) : /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("i", {
8217
8217
  className: "c-rte-code-button__icon c-rte-icon-copy"
8218
8218
  })
8219
8219
  });
8220
8220
  }
8221
- var React3, import_react119, import_lexical4, import_use_debounce, import_code4, import_jsx_runtime137;
8221
+ var React3, import_react119, import_lexical4, import_use_debounce, import_code4, import_jsx_runtime139;
8222
8222
  var init_CopyButton = __esm({
8223
8223
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.tsx"() {
8224
8224
  "use strict";
@@ -8228,7 +8228,7 @@ var init_CopyButton = __esm({
8228
8228
  import_use_debounce = require("use-debounce");
8229
8229
  import_code4 = require("@lexical/code");
8230
8230
  init_i18n();
8231
- import_jsx_runtime137 = require("react/jsx-runtime");
8231
+ import_jsx_runtime139 = require("react/jsx-runtime");
8232
8232
  }
8233
8233
  });
8234
8234
 
@@ -37122,29 +37122,29 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
37122
37122
  setTipsVisible(false);
37123
37123
  }
37124
37124
  }
37125
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", {
37125
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37126
37126
  className: "c-rte-prettier-wrapper",
37127
37127
  children: [
37128
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("button", {
37128
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("button", {
37129
37129
  className: "c-rte-code-button",
37130
37130
  onClick: handleClick,
37131
37131
  onMouseEnter: handleMouseEnter,
37132
37132
  onMouseLeave: handleMouseLeave,
37133
37133
  "aria-label": tr("actionFormatCode"),
37134
- children: syntaxError ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("i", {
37134
+ children: syntaxError ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37135
37135
  className: "c-rte-code-button__icon c-rte-icon-prettier-error"
37136
- }) : /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("i", {
37136
+ }) : /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37137
37137
  className: "c-rte-code-button__icon c-rte-icon-prettier"
37138
37138
  })
37139
37139
  }),
37140
- tipsVisible ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("pre", {
37140
+ tipsVisible ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("pre", {
37141
37141
  className: "c-rte-code-error-tips",
37142
37142
  children: syntaxError
37143
37143
  }) : null
37144
37144
  ]
37145
37145
  });
37146
37146
  }
37147
- var React4, import_react120, import_lexical5, import_code5, import_jsx_runtime138, PRETTIER_PARSER_MODULES, PRETTIER_OPTIONS_BY_LANG, LANG_CAN_BE_PRETTIER;
37147
+ var React4, import_react120, import_lexical5, import_code5, import_jsx_runtime140, PRETTIER_PARSER_MODULES, PRETTIER_OPTIONS_BY_LANG, LANG_CAN_BE_PRETTIER;
37148
37148
  var init_PrettierButton = __esm({
37149
37149
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.tsx"() {
37150
37150
  "use strict";
@@ -37153,7 +37153,7 @@ var init_PrettierButton = __esm({
37153
37153
  import_lexical5 = require("lexical");
37154
37154
  import_code5 = require("@lexical/code");
37155
37155
  init_i18n();
37156
- import_jsx_runtime138 = require("react/jsx-runtime");
37156
+ import_jsx_runtime140 = require("react/jsx-runtime");
37157
37157
  PRETTIER_PARSER_MODULES = {
37158
37158
  css: () => Promise.resolve().then(() => __toESM(require_parser_postcss())),
37159
37159
  html: () => Promise.resolve().then(() => __toESM(require_parser_html())),
@@ -37253,20 +37253,20 @@ function CodeActionMenuContainer({ anchorElem }) {
37253
37253
  });
37254
37254
  const normalizedLang = (0, import_code6.normalizeCodeLang)(lang);
37255
37255
  const codeFriendlyName = (0, import_code6.getLanguageFriendlyName)(lang);
37256
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_jsx_runtime139.Fragment, {
37257
- children: isShown ? /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37256
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_jsx_runtime141.Fragment, {
37257
+ children: isShown ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37258
37258
  className: "c-rte-code-action-menu-container",
37259
37259
  style: { ...position },
37260
37260
  children: [
37261
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37261
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37262
37262
  className: "c-rte-code-highlight-language",
37263
37263
  children: codeFriendlyName
37264
37264
  }),
37265
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(CopyButton, {
37265
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(CopyButton, {
37266
37266
  editor,
37267
37267
  getCodeDOMNode
37268
37268
  }),
37269
- canBePrettier(normalizedLang) ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(PrettierButton, {
37269
+ canBePrettier(normalizedLang) ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(PrettierButton, {
37270
37270
  editor,
37271
37271
  getCodeDOMNode,
37272
37272
  lang: normalizedLang
@@ -37288,11 +37288,11 @@ function getMouseInfo(event) {
37288
37288
  function CodeActionMenuPlugin({
37289
37289
  anchorElem = document.body
37290
37290
  }) {
37291
- return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(CodeActionMenuContainer, {
37291
+ return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(CodeActionMenuContainer, {
37292
37292
  anchorElem
37293
37293
  }), anchorElem);
37294
37294
  }
37295
- var import_react121, import_lexical6, import_react_dom2, import_use_debounce2, import_code6, import_LexicalComposerContext, import_jsx_runtime139, CODE_PADDING;
37295
+ var import_react121, import_lexical6, import_react_dom2, import_use_debounce2, import_code6, import_LexicalComposerContext, import_jsx_runtime141, CODE_PADDING;
37296
37296
  var init_CodeActionMenuPlugin = __esm({
37297
37297
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/index.tsx"() {
37298
37298
  "use strict";
@@ -37304,7 +37304,7 @@ var init_CodeActionMenuPlugin = __esm({
37304
37304
  import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
37305
37305
  init_CopyButton();
37306
37306
  init_PrettierButton();
37307
- import_jsx_runtime139 = require("react/jsx-runtime");
37307
+ import_jsx_runtime141 = require("react/jsx-runtime");
37308
37308
  CODE_PADDING = 0;
37309
37309
  }
37310
37310
  });
@@ -37382,26 +37382,26 @@ function LinkPreviewContent({
37382
37382
  if (!hasPreview) {
37383
37383
  return null;
37384
37384
  }
37385
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37385
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", {
37386
37386
  className: "c-rte-link-preview",
37387
37387
  children: [
37388
- preview.google.image && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37388
+ preview.google.image && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", {
37389
37389
  className: "c-rte-link-preview-image-wrapper",
37390
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("img", {
37390
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("img", {
37391
37391
  src: preview.google.image,
37392
37392
  alt: preview.google.title,
37393
37393
  className: "c-rte-link-preview-image"
37394
37394
  })
37395
37395
  }),
37396
- preview.google.title && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37396
+ preview.google.title && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", {
37397
37397
  className: "c-rte-link-preview-title",
37398
37398
  children: preview.google.title
37399
37399
  }),
37400
- preview.google.description && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37400
+ preview.google.description && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", {
37401
37401
  className: "c-rte-link-preview-description",
37402
37402
  children: preview.google.description
37403
37403
  }),
37404
- textContent && textContent !== preview.google.title ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, {
37404
+ textContent && textContent !== preview.google.title ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Button, {
37405
37405
  className: "c-rte-link-preview__replace-text-btn",
37406
37406
  onClick: useTitleForText,
37407
37407
  children: tr("linkPreviewReplaceTextWithTitle")
@@ -37410,7 +37410,7 @@ function LinkPreviewContent({
37410
37410
  });
37411
37411
  }
37412
37412
  function Glimmer(props) {
37413
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37413
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", {
37414
37414
  className: "c-rte-link-preview-glimmer",
37415
37415
  ...props,
37416
37416
  style: {
@@ -37422,29 +37422,29 @@ function Glimmer(props) {
37422
37422
  function LinkPreview({
37423
37423
  url
37424
37424
  }) {
37425
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_react123.Suspense, {
37426
- fallback: /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, {
37425
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react123.Suspense, {
37426
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, {
37427
37427
  children: [
37428
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Glimmer, {
37428
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Glimmer, {
37429
37429
  style: { height: "80px" },
37430
37430
  index: 0
37431
37431
  }),
37432
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Glimmer, {
37432
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Glimmer, {
37433
37433
  style: { width: "60%" },
37434
37434
  index: 1
37435
37435
  }),
37436
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Glimmer, {
37436
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Glimmer, {
37437
37437
  style: { width: "80%" },
37438
37438
  index: 2
37439
37439
  })
37440
37440
  ]
37441
37441
  }),
37442
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(LinkPreviewContent, {
37442
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(LinkPreviewContent, {
37443
37443
  url
37444
37444
  })
37445
37445
  });
37446
37446
  }
37447
- var import_react123, import_lexical7, import_LexicalComposerContext3, import_jsx_runtime140, PREVIEW_CACHE, URL_MATCHER2;
37447
+ var import_react123, import_lexical7, import_LexicalComposerContext3, import_jsx_runtime142, PREVIEW_CACHE, URL_MATCHER2;
37448
37448
  var init_LinkPreview = __esm({
37449
37449
  "src/rich-text-editor/ui/LinkPreview.tsx"() {
37450
37450
  "use strict";
@@ -37453,7 +37453,7 @@ var init_LinkPreview = __esm({
37453
37453
  import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
37454
37454
  init_button2();
37455
37455
  init_i18n();
37456
- import_jsx_runtime140 = require("react/jsx-runtime");
37456
+ import_jsx_runtime142 = require("react/jsx-runtime");
37457
37457
  PREVIEW_CACHE = {};
37458
37458
  URL_MATCHER2 = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
37459
37459
  }
@@ -37659,42 +37659,42 @@ function FloatingLinkEditor({
37659
37659
  inputRef.current.focus();
37660
37660
  }
37661
37661
  }, [isEditMode]);
37662
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37662
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37663
37663
  ref: editorRef,
37664
37664
  className: "c-rte-link-editor",
37665
37665
  "data-testid": "rich-text-link-editor",
37666
- children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37666
+ children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", {
37667
37667
  children: [
37668
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37668
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37669
37669
  className: "c-rte-link-editor-input-group",
37670
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(InputWithLabel, {
37670
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(InputWithLabel, {
37671
37671
  label: tr("linkEditorLink"),
37672
37672
  type: "text",
37673
37673
  value: linkUrl,
37674
37674
  onChange: (e) => setLinkUrl(e.target.value)
37675
37675
  })
37676
37676
  }),
37677
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37677
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37678
37678
  className: "c-rte-link-editor-input-group",
37679
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(InputWithLabel, {
37679
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(InputWithLabel, {
37680
37680
  label: tr("linkEditorRel"),
37681
37681
  type: "text",
37682
37682
  value: rel ?? "",
37683
37683
  onChange: (e) => setRel(e.target.value)
37684
37684
  })
37685
37685
  }),
37686
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37686
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37687
37687
  className: "c-rte-link-editor-input-group",
37688
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(InputWithLabel, {
37688
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(InputWithLabel, {
37689
37689
  label: tr("linkEditorTarget"),
37690
37690
  type: "text",
37691
37691
  value: target ?? "",
37692
37692
  onChange: (e) => setTarget(e.target.value)
37693
37693
  })
37694
37694
  }),
37695
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37695
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37696
37696
  className: "c-rte-link-editor-button-wrap",
37697
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(Button, {
37697
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Button, {
37698
37698
  "data-testid": "link-editor-save-button",
37699
37699
  onClick: () => {
37700
37700
  if (lastSelection !== null) {
@@ -37712,28 +37712,28 @@ function FloatingLinkEditor({
37712
37712
  })
37713
37713
  })
37714
37714
  ]
37715
- }) : /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_jsx_runtime141.Fragment, {
37715
+ }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, {
37716
37716
  children: [
37717
- /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37717
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", {
37718
37718
  className: "c-rte-link-editor-link-input",
37719
37719
  children: [
37720
- /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37720
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", {
37721
37721
  className: "c-rte-link-editor-link-preview",
37722
37722
  children: [
37723
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("a", {
37723
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("a", {
37724
37724
  href: linkUrl,
37725
37725
  target: "_blank",
37726
37726
  rel: "noopener noreferrer",
37727
37727
  children: linkUrl
37728
37728
  }),
37729
- rel || target ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37729
+ rel || target ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", {
37730
37730
  className: "c-rte-link-editor-preview-attrs",
37731
37731
  children: [
37732
- rel && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37732
+ rel && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37733
37733
  className: "c-rte-link-editor-preview-attr",
37734
37734
  children: rel
37735
37735
  }),
37736
- target && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37736
+ target && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37737
37737
  className: "c-rte-link-editor-preview-attr",
37738
37738
  children: target
37739
37739
  })
@@ -37741,21 +37741,21 @@ function FloatingLinkEditor({
37741
37741
  }) : null
37742
37742
  ]
37743
37743
  }),
37744
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37745
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37744
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37745
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(IconButton, {
37746
37746
  size: "sm",
37747
37747
  tabIndex: 0,
37748
37748
  onMouseDown: (event) => event.preventDefault(),
37749
37749
  onClick: () => setEditMode(true),
37750
37750
  "aria-label": tr("linkEditorEdit"),
37751
37751
  "data-testid": "link-editor-edit",
37752
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(Icon.Edit, {})
37752
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Icon.Edit, {})
37753
37753
  })
37754
37754
  })
37755
37755
  ]
37756
37756
  }),
37757
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", {
37758
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(LinkPreview, {
37757
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
37758
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(LinkPreview, {
37759
37759
  url: linkUrl
37760
37760
  })
37761
37761
  })
@@ -37791,7 +37791,7 @@ function useFloatingLinkEditorToolbar(editor, anchorElem) {
37791
37791
  );
37792
37792
  }, [editor, updateToolbar]);
37793
37793
  return isLink ? (0, import_react_dom3.createPortal)(
37794
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(FloatingLinkEditor, {
37794
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(FloatingLinkEditor, {
37795
37795
  editor: activeEditor,
37796
37796
  isLink,
37797
37797
  anchorElem,
@@ -37806,7 +37806,7 @@ function FloatingLinkEditorPlugin({
37806
37806
  const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
37807
37807
  return useFloatingLinkEditorToolbar(editor, anchorElem);
37808
37808
  }
37809
- var import_react124, React5, import_lexical8, import_react_dom3, import_link4, import_LexicalComposerContext4, import_utils, import_jsx_runtime141;
37809
+ var import_react124, React5, import_lexical8, import_react_dom3, import_link4, import_LexicalComposerContext4, import_utils, import_jsx_runtime143;
37810
37810
  var init_FloatingLinkEditorPlugin = __esm({
37811
37811
  "src/rich-text-editor/plugins/FloatingLinkEditorPlugin/index.tsx"() {
37812
37812
  "use strict";
@@ -37826,7 +37826,7 @@ var init_FloatingLinkEditorPlugin = __esm({
37826
37826
  init_getSelectedNode();
37827
37827
  init_setFloatingElemPosition();
37828
37828
  init_url();
37829
- import_jsx_runtime141 = require("react/jsx-runtime");
37829
+ import_jsx_runtime143 = require("react/jsx-runtime");
37830
37830
  }
37831
37831
  });
37832
37832
 
@@ -37953,93 +37953,93 @@ function TextFormatFloatingToolbar({
37953
37953
  );
37954
37954
  }, [editor, updateTextFormatFloatingToolbar]);
37955
37955
  if (!editor.isEditable()) {
37956
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", {});
37956
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", {});
37957
37957
  }
37958
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", {
37958
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", {
37959
37959
  ref: popupCharStylesEditorRef,
37960
37960
  className: "c-rte-floating-text-format-tb-plugin",
37961
37961
  children: [
37962
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
37962
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
37963
37963
  onClick: () => {
37964
37964
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "bold");
37965
37965
  },
37966
37966
  style: { padding: 0, overflow: "hidden" },
37967
37967
  title: tr(IS_APPLE ? "actionFormatAsStrongTitleApple" : "actionFormatAsStrongTitle"),
37968
37968
  "aria-label": tr("actionFormatAsStrongLabel"),
37969
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
37969
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
37970
37970
  className: `c-rte-icon-bold c-rte-floating-text-format-tb-plugin__format-icon ${isBold ? "selected" : ""}`
37971
37971
  })
37972
37972
  }),
37973
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
37973
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
37974
37974
  style: { padding: 0, overflow: "hidden" },
37975
37975
  onClick: () => {
37976
37976
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "italic");
37977
37977
  },
37978
37978
  title: tr("actionFormatAsEmphasizedTitle"),
37979
37979
  "aria-label": tr("actionFormatAsEmphasizedLabel"),
37980
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
37980
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
37981
37981
  className: `c-rte-icon-italic c-rte-floating-text-format-tb-plugin__format-icon ${isItalic ? "selected" : ""}`
37982
37982
  })
37983
37983
  }),
37984
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
37984
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
37985
37985
  style: { padding: 0, overflow: "hidden" },
37986
37986
  onClick: () => {
37987
37987
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "underline");
37988
37988
  },
37989
37989
  title: tr("actionFormatAsUnderlinedTitle"),
37990
37990
  "aria-label": tr("actionFormatAsUnderlinedLabel"),
37991
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
37991
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
37992
37992
  className: `c-rte-icon-underline c-rte-floating-text-format-tb-plugin__format-icon ${isUnderline ? "selected" : ""}`
37993
37993
  })
37994
37994
  }),
37995
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
37995
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
37996
37996
  style: { padding: 0, overflow: "hidden" },
37997
37997
  onClick: () => {
37998
37998
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "code");
37999
37999
  },
38000
38000
  "aria-label": tr("actionInsertCodeBlock"),
38001
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
38001
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
38002
38002
  className: `c-rte-icon-code c-rte-floating-text-format-tb-plugin__format-icon ${isCode ? "selected" : ""}`
38003
38003
  })
38004
38004
  }),
38005
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
38005
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
38006
38006
  style: { padding: 0, overflow: "hidden" },
38007
38007
  onClick: insertLink,
38008
38008
  "aria-label": tr("actionInsertlink"),
38009
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
38009
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
38010
38010
  className: `c-rte-icon-link c-rte-floating-text-format-tb-plugin__format-icon ${isLink ? "selected" : ""}`
38011
38011
  })
38012
38012
  }),
38013
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
38013
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
38014
38014
  style: { padding: 0, overflow: "hidden" },
38015
38015
  onClick: () => {
38016
38016
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "strikethrough");
38017
38017
  },
38018
38018
  title: tr("actionFormatWithStrikethroughTitle"),
38019
38019
  "aria-label": tr("actionFormatWithStrikethroughLabel"),
38020
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
38020
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
38021
38021
  className: `c-rte-icon-strikethrough c-rte-floating-text-format-tb-plugin__format-icon ${isStrikethrough ? "selected" : ""}`
38022
38022
  })
38023
38023
  }),
38024
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
38024
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
38025
38025
  style: { padding: 0, overflow: "hidden" },
38026
38026
  onClick: () => {
38027
38027
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "subscript");
38028
38028
  },
38029
38029
  title: tr("actionFormatWithSubscriptTitle"),
38030
38030
  "aria-label": tr("actionFormatWithSubscriptLabel"),
38031
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
38031
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
38032
38032
  className: `c-rte-icon-subscript c-rte-floating-text-format-tb-plugin__format-icon ${isSubscript ? "selected" : ""}`
38033
38033
  })
38034
38034
  }),
38035
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
38035
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
38036
38036
  style: { padding: 0, overflow: "hidden" },
38037
38037
  onClick: () => {
38038
38038
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "superscript");
38039
38039
  },
38040
38040
  title: tr("actionFormatWithSuperscriptTitle"),
38041
38041
  "aria-label": tr("actionFormatWithSuperscriptLabel"),
38042
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("i", {
38042
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("i", {
38043
38043
  className: `c-rte-icon-superscript c-rte-floating-text-format-tb-plugin__format-icon ${isSuperscript ? "selected" : ""}`
38044
38044
  })
38045
38045
  })
@@ -38114,7 +38114,7 @@ function useFloatingTextFormatToolbar(editor, anchorElem) {
38114
38114
  return null;
38115
38115
  }
38116
38116
  return (0, import_react_dom4.createPortal)(
38117
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(TextFormatFloatingToolbar, {
38117
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(TextFormatFloatingToolbar, {
38118
38118
  editor,
38119
38119
  anchorElem,
38120
38120
  isLink,
@@ -38135,7 +38135,7 @@ function FloatingTextFormatToolbarPlugin({
38135
38135
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
38136
38136
  return useFloatingTextFormatToolbar(editor, anchorElem);
38137
38137
  }
38138
- var import_react125, React6, import_lexical9, import_react_dom4, import_code8, import_link5, import_LexicalComposerContext5, import_utils2, import_jsx_runtime142;
38138
+ var import_react125, React6, import_lexical9, import_react_dom4, import_code8, import_link5, import_LexicalComposerContext5, import_utils2, import_jsx_runtime144;
38139
38139
  var init_FloatingTextFormatToolbarPlugin = __esm({
38140
38140
  "src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.tsx"() {
38141
38141
  "use strict";
@@ -38154,24 +38154,24 @@ var init_FloatingTextFormatToolbarPlugin = __esm({
38154
38154
  init_getDOMRangeRect();
38155
38155
  init_getSelectedNode();
38156
38156
  init_setFloatingElemPosition();
38157
- import_jsx_runtime142 = require("react/jsx-runtime");
38157
+ import_jsx_runtime144 = require("react/jsx-runtime");
38158
38158
  }
38159
38159
  });
38160
38160
 
38161
38161
  // src/rich-text-editor/plugins/LinkPlugin/index.tsx
38162
38162
  function LinkPlugin() {
38163
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_LexicalLinkPlugin.LinkPlugin, {
38163
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_LexicalLinkPlugin.LinkPlugin, {
38164
38164
  validateUrl
38165
38165
  });
38166
38166
  }
38167
- var React7, import_LexicalLinkPlugin, import_jsx_runtime143;
38167
+ var React7, import_LexicalLinkPlugin, import_jsx_runtime145;
38168
38168
  var init_LinkPlugin = __esm({
38169
38169
  "src/rich-text-editor/plugins/LinkPlugin/index.tsx"() {
38170
38170
  "use strict";
38171
38171
  React7 = require("react");
38172
38172
  import_LexicalLinkPlugin = require("@lexical/react/LexicalLinkPlugin");
38173
38173
  init_url();
38174
- import_jsx_runtime143 = require("react/jsx-runtime");
38174
+ import_jsx_runtime145 = require("react/jsx-runtime");
38175
38175
  }
38176
38176
  });
38177
38177
 
@@ -38512,46 +38512,46 @@ function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
38512
38512
  clearTableSelection();
38513
38513
  });
38514
38514
  }, [editor, tableCellNode, clearTableSelection]);
38515
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_jsx_runtime144.Fragment, {
38515
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
38516
38516
  children: [
38517
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38517
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38518
38518
  onSelect: () => insertTableRowAtSelection(false),
38519
38519
  children: tr("actionTableInsertRowsAbove", selectionCounts.rows)
38520
38520
  }),
38521
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38521
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38522
38522
  onSelect: () => insertTableRowAtSelection(true),
38523
38523
  children: tr("actionTableInsertRowsBelow", selectionCounts.rows)
38524
38524
  }),
38525
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38525
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38526
38526
  onSelect: () => insertTableColumnAtSelection(false),
38527
38527
  children: tr("actionTableInsertColumnsBefore", selectionCounts.columns)
38528
38528
  }),
38529
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38529
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38530
38530
  onSelect: () => insertTableColumnAtSelection(true),
38531
38531
  children: tr("actionTableInsertColumnsAfter", selectionCounts.columns)
38532
38532
  }),
38533
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38533
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38534
38534
  onSelect: () => toggleTableRowIsHeader(),
38535
38535
  children: tr(
38536
38536
  (tableCellNode.__headerState & import_table4.TableCellHeaderStates.ROW) === import_table4.TableCellHeaderStates.ROW ? "actionTableRemoveRowHeader" : "actionTableAddRowHeader"
38537
38537
  )
38538
38538
  }),
38539
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38539
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38540
38540
  onSelect: () => toggleTableColumnIsHeader(),
38541
38541
  children: tr(
38542
38542
  (tableCellNode.__headerState & import_table4.TableCellHeaderStates.COLUMN) === import_table4.TableCellHeaderStates.COLUMN ? "actionTableRemoveColumnHeader" : "actionTableAddColumnHeader"
38543
38543
  )
38544
38544
  }),
38545
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Separator, {}),
38546
- tableStats.columns > 1 && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38545
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Separator, {}),
38546
+ tableStats.columns > 1 && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38547
38547
  onSelect: () => deleteTableColumnAtSelection(),
38548
38548
  children: tr("actionTableDeleteColumn")
38549
38549
  }),
38550
- tableStats.rows > 1 && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38550
+ tableStats.rows > 1 && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38551
38551
  onSelect: () => deleteTableRowAtSelection(),
38552
38552
  children: tr("actionTableDeleteRow")
38553
38553
  }),
38554
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Item, {
38554
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
38555
38555
  onSelect: () => deleteTableAtSelection(),
38556
38556
  children: tr("actionTableDeleteTable")
38557
38557
  })
@@ -38633,19 +38633,19 @@ function TableCellActionMenuContainer({ anchorElem }) {
38633
38633
  }
38634
38634
  }
38635
38635
  }, [menuButtonRef, tableCellNode, editor, anchorElem]);
38636
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("div", {
38636
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
38637
38637
  className: "c-rte-table-cell-action-button-container",
38638
38638
  ref: menuButtonRef,
38639
- children: tableCellNode != null && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(DropdownMenu.Root, {
38639
+ children: tableCellNode != null && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Root, {
38640
38640
  onOpenChange: (isOpen) => setIsMenuOpen(isOpen),
38641
- content: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(TableActionMenu, {
38641
+ content: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(TableActionMenu, {
38642
38642
  tableCellNode,
38643
38643
  tableStats
38644
38644
  }),
38645
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(IconButton, {
38645
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
38646
38646
  size: "xs",
38647
38647
  "aria-label": tr("actionTableOpenOptions"),
38648
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(Icon.Arrow, {})
38648
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon.Arrow, {})
38649
38649
  })
38650
38650
  })
38651
38651
  });
@@ -38654,11 +38654,11 @@ function TableActionMenuPlugin({
38654
38654
  anchorElem = document.body
38655
38655
  }) {
38656
38656
  const isEditable = (0, import_useLexicalEditable.default)();
38657
- return (0, import_react_dom5.createPortal)(isEditable ? /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(TableCellActionMenuContainer, {
38657
+ return (0, import_react_dom5.createPortal)(isEditable ? /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(TableCellActionMenuContainer, {
38658
38658
  anchorElem
38659
38659
  }) : null, anchorElem);
38660
38660
  }
38661
- var import_react129, import_lexical13, import_react_dom5, import_LexicalComposerContext9, import_useLexicalEditable, import_table4, import_jsx_runtime144;
38661
+ var import_react129, import_lexical13, import_react_dom5, import_LexicalComposerContext9, import_useLexicalEditable, import_table4, import_jsx_runtime146;
38662
38662
  var init_TableActionMenuPlugin = __esm({
38663
38663
  "src/rich-text-editor/plugins/TableActionMenuPlugin/index.tsx"() {
38664
38664
  "use strict";
@@ -38672,7 +38672,7 @@ var init_TableActionMenuPlugin = __esm({
38672
38672
  init_icon_button2();
38673
38673
  init_iconography();
38674
38674
  init_i18n();
38675
- import_jsx_runtime144 = require("react/jsx-runtime");
38675
+ import_jsx_runtime146 = require("react/jsx-runtime");
38676
38676
  }
38677
38677
  });
38678
38678
 
@@ -38688,19 +38688,19 @@ async function copyJson(editor) {
38688
38688
  function ActionsPlugin({ append, prepend, disabled }) {
38689
38689
  const [editor] = (0, import_LexicalComposerContext10.useLexicalComposerContext)();
38690
38690
  const tr = useTr();
38691
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(ActionMenu, {
38691
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(ActionMenu, {
38692
38692
  children: [
38693
- !prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(ActionMenu.Item, {
38693
+ !prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ActionMenu.Item, {
38694
38694
  onSelect: actionItem.action,
38695
38695
  className: actionItem.type === "danger" ? "danger" : "",
38696
38696
  disabled: actionItem.disabled,
38697
38697
  children: actionItem.title
38698
38698
  }, actionItem.title)),
38699
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(ActionMenu.Item, {
38699
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ActionMenu.Item, {
38700
38700
  onSelect: () => copyJson(editor),
38701
38701
  children: tr("actionCopyJSON")
38702
38702
  }),
38703
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(ActionMenu.Item, {
38703
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ActionMenu.Item, {
38704
38704
  disabled,
38705
38705
  className: "danger",
38706
38706
  onSelect: () => {
@@ -38709,7 +38709,7 @@ function ActionsPlugin({ append, prepend, disabled }) {
38709
38709
  },
38710
38710
  children: tr("actionClear")
38711
38711
  }),
38712
- !append ? null : append.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(ActionMenu.Item, {
38712
+ !append ? null : append.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ActionMenu.Item, {
38713
38713
  onSelect: actionItem.action,
38714
38714
  className: actionItem.type === "danger" ? "danger" : "",
38715
38715
  disabled: actionItem.disabled,
@@ -38718,7 +38718,7 @@ function ActionsPlugin({ append, prepend, disabled }) {
38718
38718
  ]
38719
38719
  });
38720
38720
  }
38721
- var import_lexical14, import_LexicalComposerContext10, import_jsx_runtime145;
38721
+ var import_lexical14, import_LexicalComposerContext10, import_jsx_runtime147;
38722
38722
  var init_ActionsPlugin = __esm({
38723
38723
  "src/rich-text-editor/plugins/ActionsPlugin/index.tsx"() {
38724
38724
  "use strict";
@@ -38727,7 +38727,7 @@ var init_ActionsPlugin = __esm({
38727
38727
  init_action_menu2();
38728
38728
  init_i18n();
38729
38729
  init_lexical_to_crystallize();
38730
- import_jsx_runtime145 = require("react/jsx-runtime");
38730
+ import_jsx_runtime147 = require("react/jsx-runtime");
38731
38731
  }
38732
38732
  });
38733
38733
 
@@ -38749,13 +38749,13 @@ function InsertTableDialog({ activeEditor }) {
38749
38749
  }
38750
38750
  });
38751
38751
  };
38752
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
38752
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", {
38753
38753
  className: "c-rte-insert-table",
38754
38754
  children: [
38755
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
38755
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", {
38756
38756
  className: "c-rte-insert-table__dimensions",
38757
38757
  children: [
38758
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(InputWithLabel, {
38758
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(InputWithLabel, {
38759
38759
  label: tr("insertTableRows"),
38760
38760
  value: rows,
38761
38761
  placeholder: "0",
@@ -38763,10 +38763,10 @@ function InsertTableDialog({ activeEditor }) {
38763
38763
  inputMode: "numeric",
38764
38764
  onChange: (e) => setRows(e.target.value)
38765
38765
  }),
38766
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38766
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("span", {
38767
38767
  className: "c-rte-insert-table__dimensions__separator"
38768
38768
  }),
38769
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(InputWithLabel, {
38769
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(InputWithLabel, {
38770
38770
  type: "text",
38771
38771
  label: tr("insertTableColumns"),
38772
38772
  placeholder: "0",
@@ -38776,9 +38776,9 @@ function InsertTableDialog({ activeEditor }) {
38776
38776
  })
38777
38777
  ]
38778
38778
  }),
38779
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
38779
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
38780
38780
  className: "c-rte-insert-table__actions",
38781
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Button, {
38781
+ children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Button, {
38782
38782
  as: Dialog.Close,
38783
38783
  size: "sm",
38784
38784
  intent: "action",
@@ -38790,7 +38790,7 @@ function InsertTableDialog({ activeEditor }) {
38790
38790
  ]
38791
38791
  });
38792
38792
  }
38793
- var import_react130, import_table5, import_jsx_runtime146;
38793
+ var import_react130, import_table5, import_jsx_runtime148;
38794
38794
  var init_insert_table = __esm({
38795
38795
  "src/rich-text-editor/plugins/ToolbarPlugin/insert-table.tsx"() {
38796
38796
  "use strict";
@@ -38800,7 +38800,7 @@ var init_insert_table = __esm({
38800
38800
  init_dialog2();
38801
38801
  init_input_with_label2();
38802
38802
  init_i18n();
38803
- import_jsx_runtime146 = require("react/jsx-runtime");
38803
+ import_jsx_runtime148 = require("react/jsx-runtime");
38804
38804
  }
38805
38805
  });
38806
38806
 
@@ -38889,80 +38889,80 @@ function BlockFormatDropDown({
38889
38889
  });
38890
38890
  }
38891
38891
  };
38892
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Root, {
38892
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Root, {
38893
38893
  disabled,
38894
38894
  style: { zIndex: 1 },
38895
- content: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
38895
+ content: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_jsx_runtime149.Fragment, {
38896
38896
  children: [
38897
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38897
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38898
38898
  onClick: formatParagraph,
38899
38899
  children: [
38900
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38900
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38901
38901
  className: `c-rte-icon-paragraph c-rte-toolbar__block-format__icon ${blockType === "paragraph" ? "selected" : ""}`
38902
38902
  }),
38903
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38903
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38904
38904
  className: `c-rte-toolbar__block-format__text ${blockType === "paragraph" ? "selected" : ""}`,
38905
38905
  children: "Normal"
38906
38906
  })
38907
38907
  ]
38908
38908
  }),
38909
- headings.map((headingSize) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38909
+ headings.map((headingSize) => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38910
38910
  onClick: () => formatHeading(headingSize),
38911
38911
  children: [
38912
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38912
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38913
38913
  className: `c-rte-icon-${headingSize} c-rte-toolbar__block-format__icon ${blockType === headingSize ? "selected" : ""}`
38914
38914
  }),
38915
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38915
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38916
38916
  className: `c-rte-toolbar__block-format__text ${blockType === headingSize ? "selected" : ""}`,
38917
38917
  children: headingTypeToBlockName[headingSize]
38918
38918
  })
38919
38919
  ]
38920
38920
  }, headingSize)),
38921
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38921
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38922
38922
  onClick: formatBulletList,
38923
38923
  children: [
38924
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38924
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38925
38925
  className: `c-rte-icon-bullet-list c-rte-toolbar__block-format__icon ${blockType === "bullet" ? "selected" : ""}`
38926
38926
  }),
38927
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38927
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38928
38928
  className: `c-rte-toolbar__block-format__text ${blockType === "bullet" ? "selected" : ""}`,
38929
38929
  children: "Bullet List"
38930
38930
  })
38931
38931
  ]
38932
38932
  }),
38933
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38933
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38934
38934
  onClick: formatNumberedList,
38935
38935
  children: [
38936
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38936
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38937
38937
  className: `c-rte-icon-numbered-list c-rte-toolbar__block-format__icon ${blockType === "number" ? "selected" : ""}`
38938
38938
  }),
38939
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38939
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38940
38940
  className: `c-rte-toolbar__block-format__text ${blockType === "number" ? "selected" : ""}`,
38941
38941
  children: "Numbered List"
38942
38942
  })
38943
38943
  ]
38944
38944
  }),
38945
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38945
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38946
38946
  onClick: formatQuote,
38947
38947
  "data-testid": "toggle-block-format-quote",
38948
38948
  children: [
38949
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38949
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38950
38950
  className: `c-rte-icon-quote c-rte-toolbar__block-format__icon ${blockType === "quote" ? "selected" : ""}`
38951
38951
  }),
38952
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38952
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38953
38953
  className: `c-rte-toolbar__block-format__text ${blockType === "quote" ? "selected" : ""}`,
38954
38954
  children: "Quote"
38955
38955
  })
38956
38956
  ]
38957
38957
  }),
38958
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
38958
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
38959
38959
  onClick: formatCode,
38960
38960
  "data-testid": "toggle-block-format-code",
38961
38961
  children: [
38962
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38962
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38963
38963
  className: `icon c-rte-icon-code c-rte-toolbar__block-format__icon ${blockType === "code" ? "selected" : ""}`
38964
38964
  }),
38965
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
38965
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
38966
38966
  className: `c-rte-toolbar__block-format__text ${blockType === "code" ? "selected" : ""}`,
38967
38967
  children: "Code block"
38968
38968
  })
@@ -38970,21 +38970,21 @@ function BlockFormatDropDown({
38970
38970
  })
38971
38971
  ]
38972
38972
  }),
38973
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(Button, {
38973
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(Button, {
38974
38974
  style: { backgroundColor: "transparent", padding: "0 8px" },
38975
38975
  "aria-label": "Formatting options for text style",
38976
38976
  "data-testid": "toggle-block-format",
38977
38977
  children: [
38978
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
38978
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
38979
38979
  className: `c-rte-toolbar__toggle-icon c-rte-icon-${blockType}`
38980
38980
  }),
38981
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Icon.Arrow, {})
38981
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Icon.Arrow, {})
38982
38982
  ]
38983
38983
  })
38984
38984
  });
38985
38985
  }
38986
38986
  function Divider() {
38987
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", {
38987
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
38988
38988
  className: "c-rte-toolbar__divider"
38989
38989
  });
38990
38990
  }
@@ -39134,13 +39134,13 @@ function ToolbarPlugin({
39134
39134
  },
39135
39135
  [activeEditor, selectedElementKey]
39136
39136
  );
39137
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", {
39137
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
39138
39138
  className: "c-rte-toolbar",
39139
39139
  children: [
39140
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", {
39140
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
39141
39141
  className: "c-rte-toolbar__inner",
39142
39142
  children: [
39143
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39143
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39144
39144
  disabled: !canUndo || !isEditable,
39145
39145
  onClick: () => {
39146
39146
  activeEditor.dispatchCommand(import_lexical15.UNDO_COMMAND, void 0);
@@ -39149,12 +39149,12 @@ function ToolbarPlugin({
39149
39149
  title: tr(IS_APPLE ? "actionUndoTitleApple" : "actionUndoTitle"),
39150
39150
  "aria-label": tr("actionUndoLabel"),
39151
39151
  "data-testid": "rich-text-undo-button",
39152
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39152
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39153
39153
  className: `c-rte-icon-undo c-rte-toolbar__icon ${!canUndo ? "disabled" : ""}
39154
39154
  `
39155
39155
  })
39156
39156
  }),
39157
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39157
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39158
39158
  disabled: !canRedo || !isEditable,
39159
39159
  onClick: () => {
39160
39160
  activeEditor.dispatchCommand(import_lexical15.REDO_COMMAND, void 0);
@@ -39162,51 +39162,51 @@ function ToolbarPlugin({
39162
39162
  type: "button",
39163
39163
  title: tr(IS_APPLE ? "actionRedoTitleApple" : "actionRedoTitle"),
39164
39164
  "aria-label": tr("actionRedoLabel"),
39165
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39165
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39166
39166
  className: `c-rte-icon-redo c-rte-toolbar__icon ${!canRedo ? "disabled" : ""}`
39167
39167
  })
39168
39168
  }),
39169
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Divider, {}),
39170
- blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
39169
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Divider, {}),
39170
+ blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_jsx_runtime149.Fragment, {
39171
39171
  children: [
39172
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(BlockFormatDropDown, {
39172
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(BlockFormatDropDown, {
39173
39173
  disabled: !isEditable,
39174
39174
  blockType,
39175
39175
  editor
39176
39176
  }),
39177
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Divider, {})
39177
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Divider, {})
39178
39178
  ]
39179
39179
  }),
39180
- blockType === "code" ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_jsx_runtime147.Fragment, {
39181
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Root, {
39180
+ blockType === "code" ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_jsx_runtime149.Fragment, {
39181
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Root, {
39182
39182
  disabled: !isEditable,
39183
39183
  style: { zIndex: 1 },
39184
- content: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_jsx_runtime147.Fragment, {
39184
+ content: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_jsx_runtime149.Fragment, {
39185
39185
  children: CODE_LANGUAGE_OPTIONS.map(([value, name]) => {
39186
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Item, {
39186
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Item, {
39187
39187
  className: `item ${dropDownActiveClass(value === codeLanguage)}`,
39188
39188
  onClick: () => onCodeLanguageSelect(value),
39189
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39189
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39190
39190
  className: `c-rte-toolbar__code-lang__sel-item ${dropDownActiveClass(value === codeLanguage) ? "selected" : ""}`,
39191
39191
  children: name
39192
39192
  })
39193
39193
  }, value);
39194
39194
  })
39195
39195
  }),
39196
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Button, {
39196
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Button, {
39197
39197
  "aria-label": tr("codeSelectLanguage"),
39198
- append: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Icon.Arrow, {}),
39199
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39198
+ append: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Icon.Arrow, {}),
39199
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39200
39200
  className: "c-rte-toolbar__code-lang__button-text",
39201
39201
  children: (0, import_code9.getLanguageFriendlyName)(codeLanguage)
39202
39202
  })
39203
39203
  })
39204
39204
  })
39205
- }) : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Dialog, {
39206
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", {
39205
+ }) : /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Dialog, {
39206
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
39207
39207
  className: "c-rte-toolbar__actions-rest",
39208
39208
  children: [
39209
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39209
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39210
39210
  disabled: !isEditable,
39211
39211
  className: `c-rte-toolbar__icon-btn ${isBold ? "selected" : ""}`,
39212
39212
  type: "button",
@@ -39216,11 +39216,11 @@ function ToolbarPlugin({
39216
39216
  onClick: () => {
39217
39217
  activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "bold");
39218
39218
  },
39219
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39219
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39220
39220
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-bold`
39221
39221
  })
39222
39222
  }),
39223
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39223
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39224
39224
  className: `c-rte-toolbar__icon-btn ${isItalic ? "selected" : ""}`,
39225
39225
  disabled: !isEditable,
39226
39226
  onClick: () => {
@@ -39230,11 +39230,11 @@ function ToolbarPlugin({
39230
39230
  title: tr(IS_APPLE ? "actionFormatAsEmphasizedTitleApple" : "actionFormatAsEmphasizedTitle"),
39231
39231
  "aria-label": tr("actionFormatAsEmphasizedLabel"),
39232
39232
  "data-testid": "toggle-format-emphasized",
39233
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39233
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39234
39234
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-italic`
39235
39235
  })
39236
39236
  }),
39237
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39237
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39238
39238
  className: `c-rte-toolbar__icon-btn ${isUnderline ? "selected" : ""}`,
39239
39239
  disabled: !isEditable,
39240
39240
  onClick: () => {
@@ -39244,11 +39244,11 @@ function ToolbarPlugin({
39244
39244
  title: tr(IS_APPLE ? "actionFormatAsUnderlinedTitleApple" : "actionFormatAsUnderlinedTitle"),
39245
39245
  "aria-label": tr("actionFormatAsUnderlinedLabel"),
39246
39246
  "data-testid": "toggle-format-underlined",
39247
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39247
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39248
39248
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-underline`
39249
39249
  })
39250
39250
  }),
39251
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39251
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39252
39252
  className: `c-rte-toolbar__icon-btn ${isCode ? "selected" : ""}`,
39253
39253
  disabled: !isEditable,
39254
39254
  onClick: () => {
@@ -39258,82 +39258,82 @@ function ToolbarPlugin({
39258
39258
  title: tr("actionInsertCodeBlock"),
39259
39259
  "aria-label": tr("actionInsertCodeBlock"),
39260
39260
  "data-testid": "toggle-format-code",
39261
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39261
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39262
39262
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-code`
39263
39263
  })
39264
39264
  }),
39265
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39265
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39266
39266
  className: `c-rte-toolbar__icon-btn ${isLink ? "selected" : ""}`,
39267
39267
  disabled: !isEditable,
39268
39268
  onClick: insertLink,
39269
39269
  type: "button",
39270
39270
  "aria-label": tr("actionInsertlink"),
39271
39271
  title: tr("actionInsertlink"),
39272
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39272
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39273
39273
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-link`
39274
39274
  })
39275
39275
  }),
39276
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Root, {
39276
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Root, {
39277
39277
  disabled: !isEditable,
39278
39278
  style: { zIndex: 1 },
39279
- content: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
39279
+ content: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_jsx_runtime149.Fragment, {
39280
39280
  children: [
39281
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
39281
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
39282
39282
  disabled: !isEditable,
39283
39283
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "strikethrough"),
39284
39284
  title: tr("actionFormatWithStrikethroughTitle"),
39285
39285
  "aria-label": tr("actionFormatWithStrikethroughLabel"),
39286
39286
  children: [
39287
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39287
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39288
39288
  className: `c-rte-icon-strikethrough c-rte-toolbar__dd-item__icon ${isStrikethrough ? "selected" : ""}`
39289
39289
  }),
39290
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39290
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39291
39291
  className: `c-rte-toolbar__dd-item__text ${isStrikethrough ? "selected" : ""}`,
39292
39292
  children: tr("actionFormatWithStrikethroughTitle")
39293
39293
  })
39294
39294
  ]
39295
39295
  }),
39296
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
39296
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
39297
39297
  disabled: !isEditable,
39298
39298
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "subscript"),
39299
39299
  title: tr("actionFormatWithSubscriptTitle"),
39300
39300
  "aria-label": tr("actionFormatWithSubscriptLabel"),
39301
39301
  children: [
39302
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39302
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39303
39303
  className: `c-rte-icon-subscript c-rte-toolbar__dd-item__icon ${isSubscript ? "selected" : ""}`
39304
39304
  }),
39305
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39305
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39306
39306
  className: `c-rte-toolbar__dd-item__text ${isSubscript ? "selected" : ""}`,
39307
39307
  children: tr("actionFormatWithSubscriptTitle")
39308
39308
  })
39309
39309
  ]
39310
39310
  }),
39311
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
39311
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
39312
39312
  disabled: !isEditable,
39313
39313
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "superscript"),
39314
39314
  title: tr("actionFormatWithSuperscriptTitle"),
39315
39315
  "aria-label": tr("actionFormatWithSuperscriptLabel"),
39316
39316
  children: [
39317
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39317
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39318
39318
  className: `c-rte-icon-superscript c-rte-toolbar__dd-item__icon ${isSuperscript ? "selected" : ""}`
39319
39319
  }),
39320
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39320
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39321
39321
  className: `c-rte-toolbar__dd-item__text ${isSuperscript ? "selected" : ""}`,
39322
39322
  children: tr("actionFormatWithSuperscriptTitle")
39323
39323
  })
39324
39324
  ]
39325
39325
  }),
39326
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
39326
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
39327
39327
  disabled: !isEditable,
39328
39328
  onClick: clearFormatting,
39329
39329
  className: "item",
39330
39330
  title: tr("actionClearTextFormatting"),
39331
39331
  "aria-label": tr("actionClearTextFormatting"),
39332
39332
  children: [
39333
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39333
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39334
39334
  className: "c-rte-icon-clear c-rte-toolbar__dd-item__icon"
39335
39335
  }),
39336
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39336
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39337
39337
  className: "c-rte-toolbar__dd-item__text--clear",
39338
39338
  children: tr("actionFormatClear")
39339
39339
  })
@@ -39341,47 +39341,47 @@ function ToolbarPlugin({
39341
39341
  })
39342
39342
  ]
39343
39343
  }),
39344
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(Button, {
39344
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(Button, {
39345
39345
  style: { backgroundColor: "transparent", padding: "0 8px" },
39346
39346
  "aria-label": tr("actionTextFormattingOptions"),
39347
39347
  children: [
39348
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39348
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39349
39349
  className: `c-rte-icon-dropdown-more c-rte-toolbar__toggle-icon`
39350
39350
  }),
39351
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Icon.Arrow, {})
39351
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Icon.Arrow, {})
39352
39352
  ]
39353
39353
  })
39354
39354
  }),
39355
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Divider, {}),
39356
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Root, {
39355
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Divider, {}),
39356
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Root, {
39357
39357
  style: { zIndex: 1 },
39358
39358
  disabled: !isEditable,
39359
- content: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
39359
+ content: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_jsx_runtime149.Fragment, {
39360
39360
  children: [
39361
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(DropdownMenu.Item, {
39361
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(DropdownMenu.Item, {
39362
39362
  onClick: () => {
39363
39363
  activeEditor.dispatchCommand(import_LexicalHorizontalRuleNode4.INSERT_HORIZONTAL_RULE_COMMAND, void 0);
39364
39364
  },
39365
39365
  children: [
39366
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39366
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39367
39367
  className: "c-rte-toolbar__dd-item__icon c-rte-icon-horizontal-rule"
39368
39368
  }),
39369
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39369
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39370
39370
  className: "c-rte-toolbar__dd-item__text",
39371
39371
  children: tr("horizontalRule")
39372
39372
  })
39373
39373
  ]
39374
39374
  }),
39375
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(DropdownMenu.Item, {
39376
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Dialog.Trigger, {
39375
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(DropdownMenu.Item, {
39376
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Dialog.Trigger, {
39377
39377
  asChild: true,
39378
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", {
39378
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
39379
39379
  className: "c-rte-toolbar__dd-item--table",
39380
39380
  children: [
39381
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39381
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39382
39382
  className: "c-rte-toolbar__dd-item__icon c-rte-icon-table"
39383
39383
  }),
39384
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("span", {
39384
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("span", {
39385
39385
  className: "c-rte-toolbar__dd-item__text",
39386
39386
  children: tr("table")
39387
39387
  })
@@ -39391,21 +39391,21 @@ function ToolbarPlugin({
39391
39391
  })
39392
39392
  ]
39393
39393
  }),
39394
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(IconButton, {
39395
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("i", {
39394
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
39395
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("i", {
39396
39396
  className: "c-rte-icon-plus c-rte-toolbar__plus"
39397
39397
  })
39398
39398
  })
39399
39399
  }),
39400
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(Dialog.Content, {
39400
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(Dialog.Content, {
39401
39401
  children: [
39402
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Dialog.Title, {
39402
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Dialog.Title, {
39403
39403
  children: tr("insertTableTitle")
39404
39404
  }),
39405
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Dialog.Description, {
39405
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Dialog.Description, {
39406
39406
  children: tr("insertTableDescription")
39407
39407
  }),
39408
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(InsertTableDialog, {
39408
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(InsertTableDialog, {
39409
39409
  activeEditor
39410
39410
  })
39411
39411
  ]
@@ -39415,7 +39415,7 @@ function ToolbarPlugin({
39415
39415
  })
39416
39416
  ]
39417
39417
  }),
39418
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ActionsPlugin, {
39418
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ActionsPlugin, {
39419
39419
  disabled,
39420
39420
  prepend: actionsMenuPrepend,
39421
39421
  append: actionsMenuAppend
@@ -39423,7 +39423,7 @@ function ToolbarPlugin({
39423
39423
  ]
39424
39424
  });
39425
39425
  }
39426
- var import_react131, import_lexical15, import_code9, import_link6, import_list5, import_LexicalComposerContext11, import_LexicalDecoratorBlockNode, import_LexicalHorizontalRuleNode4, import_rich_text5, import_selection4, import_utils4, import_jsx_runtime147, headingTypeToBlockName, headings, blockTypeToBlockName, CODE_LANGUAGE_OPTIONS;
39426
+ var import_react131, import_lexical15, import_code9, import_link6, import_list5, import_LexicalComposerContext11, import_LexicalDecoratorBlockNode, import_LexicalHorizontalRuleNode4, import_rich_text5, import_selection4, import_utils4, import_jsx_runtime149, headingTypeToBlockName, headings, blockTypeToBlockName, CODE_LANGUAGE_OPTIONS;
39427
39427
  var init_ToolbarPlugin = __esm({
39428
39428
  "src/rich-text-editor/plugins/ToolbarPlugin/index.tsx"() {
39429
39429
  "use strict";
@@ -39449,7 +39449,7 @@ var init_ToolbarPlugin = __esm({
39449
39449
  init_url();
39450
39450
  init_ActionsPlugin();
39451
39451
  init_insert_table();
39452
- import_jsx_runtime147 = require("react/jsx-runtime");
39452
+ import_jsx_runtime149 = require("react/jsx-runtime");
39453
39453
  headingTypeToBlockName = {
39454
39454
  h1: "Heading 1",
39455
39455
  h2: "Heading 2",
@@ -39599,7 +39599,7 @@ function RichTextEditor({
39599
39599
  labelTranslations,
39600
39600
  ...rest
39601
39601
  }) {
39602
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalComposer.LexicalComposer, {
39602
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalComposer.LexicalComposer, {
39603
39603
  initialConfig: {
39604
39604
  editable: !rest.disabled,
39605
39605
  namespace: "crystallize-rich-text-editor",
@@ -39610,13 +39610,13 @@ function RichTextEditor({
39610
39610
  throw error;
39611
39611
  }
39612
39612
  },
39613
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(I18nProvider, {
39613
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(I18nProvider, {
39614
39614
  language,
39615
39615
  labelTranslations,
39616
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(SharedHistoryContext, {
39617
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
39616
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(SharedHistoryContext, {
39617
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
39618
39618
  className: "c-rich-text-editor",
39619
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(RichTextEditorWithoutContext, {
39619
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(RichTextEditorWithoutContext, {
39620
39620
  ...rest
39621
39621
  })
39622
39622
  })
@@ -39638,7 +39638,7 @@ function RichTextEditorWithoutContext({
39638
39638
  }) {
39639
39639
  const editable = !disabled;
39640
39640
  const { historyState } = useSharedHistoryContext();
39641
- const placeholder = /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
39641
+ const placeholder = /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
39642
39642
  className: "c-rte-placeholder",
39643
39643
  children: placeholderText ?? ""
39644
39644
  });
@@ -39661,38 +39661,38 @@ function RichTextEditorWithoutContext({
39661
39661
  }
39662
39662
  firstOnChangeTriggeredRef.current = true;
39663
39663
  }
39664
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, {
39664
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_jsx_runtime150.Fragment, {
39665
39665
  children: [
39666
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalOnChangePlugin.OnChangePlugin, {
39666
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalOnChangePlugin.OnChangePlugin, {
39667
39667
  onChange: onLocalChange,
39668
39668
  ignoreSelectionChange: true
39669
39669
  }),
39670
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ToolbarPlugin, {
39670
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(ToolbarPlugin, {
39671
39671
  disabled,
39672
39672
  actionsMenuPrepend,
39673
39673
  actionsMenuAppend
39674
39674
  }),
39675
39675
  slotPreContent,
39676
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", {
39676
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", {
39677
39677
  className: `c-rte-editor-container ${disabled ? "disabled" : ""}`,
39678
39678
  "data-testid": "rich-text-editor",
39679
39679
  children: [
39680
- maxLength != null ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(MaxLengthPlugin, {
39680
+ maxLength != null ? /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(MaxLengthPlugin, {
39681
39681
  maxLength
39682
39682
  }) : null,
39683
- !autoFocus ? null : /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalAutoFocusPlugin.AutoFocusPlugin, {}),
39684
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
39685
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(LexicalAutoLinkPlugin, {}),
39686
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalHistoryPlugin2.HistoryPlugin, {
39683
+ !autoFocus ? null : /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalAutoFocusPlugin.AutoFocusPlugin, {}),
39684
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
39685
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(LexicalAutoLinkPlugin, {}),
39686
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalHistoryPlugin2.HistoryPlugin, {
39687
39687
  externalHistoryState: historyState
39688
39688
  }),
39689
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalRichTextPlugin.RichTextPlugin, {
39690
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
39689
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalRichTextPlugin.RichTextPlugin, {
39690
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
39691
39691
  className: "c-rte-editor-scroller",
39692
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
39692
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
39693
39693
  className: "c-rte-editor",
39694
39694
  ref: onRef,
39695
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalContentEditable.ContentEditable, {
39695
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalContentEditable.ContentEditable, {
39696
39696
  className: "c-rte-contenteditable-root",
39697
39697
  id
39698
39698
  })
@@ -39701,28 +39701,28 @@ function RichTextEditorWithoutContext({
39701
39701
  placeholder,
39702
39702
  ErrorBoundary: import_LexicalErrorBoundary.default
39703
39703
  }),
39704
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CodeHighlightPlugin, {}),
39705
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalListPlugin.ListPlugin, {}),
39706
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ListMaxIndentLevelPlugin, {
39704
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(CodeHighlightPlugin, {}),
39705
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalListPlugin.ListPlugin, {}),
39706
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(ListMaxIndentLevelPlugin, {
39707
39707
  maxDepth: 7
39708
39708
  }),
39709
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalTablePlugin.TablePlugin, {}),
39710
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(LinkPlugin, {}),
39711
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalHorizontalRulePlugin.HorizontalRulePlugin, {}),
39712
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(TabFocusPlugin, {}),
39713
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {}),
39714
- floatingAnchorElem && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, {
39709
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalTablePlugin.TablePlugin, {}),
39710
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(LinkPlugin, {}),
39711
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalHorizontalRulePlugin.HorizontalRulePlugin, {}),
39712
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(TabFocusPlugin, {}),
39713
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {}),
39714
+ floatingAnchorElem && /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_jsx_runtime150.Fragment, {
39715
39715
  children: [
39716
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(CodeActionMenuPlugin, {
39716
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(CodeActionMenuPlugin, {
39717
39717
  anchorElem: floatingAnchorElem
39718
39718
  }),
39719
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FloatingLinkEditorPlugin, {
39719
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(FloatingLinkEditorPlugin, {
39720
39720
  anchorElem: floatingAnchorElem
39721
39721
  }),
39722
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(TableActionMenuPlugin, {
39722
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(TableActionMenuPlugin, {
39723
39723
  anchorElem: floatingAnchorElem
39724
39724
  }),
39725
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FloatingTextFormatToolbarPlugin, {
39725
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(FloatingTextFormatToolbarPlugin, {
39726
39726
  anchorElem: floatingAnchorElem
39727
39727
  })
39728
39728
  ]
@@ -39732,7 +39732,7 @@ function RichTextEditorWithoutContext({
39732
39732
  ]
39733
39733
  });
39734
39734
  }
39735
- var import_react132, import_LexicalAutoFocusPlugin, import_LexicalClearEditorPlugin, import_LexicalComposer, import_LexicalErrorBoundary, import_LexicalHistoryPlugin2, import_LexicalHorizontalRulePlugin, import_LexicalListPlugin, import_LexicalOnChangePlugin, import_LexicalRichTextPlugin, import_LexicalTabIndentationPlugin, import_LexicalTablePlugin, import_LexicalComposerContext12, import_LexicalContentEditable, import_jsx_runtime148, rich_text_editor_default;
39735
+ var import_react132, import_LexicalAutoFocusPlugin, import_LexicalClearEditorPlugin, import_LexicalComposer, import_LexicalErrorBoundary, import_LexicalHistoryPlugin2, import_LexicalHorizontalRulePlugin, import_LexicalListPlugin, import_LexicalOnChangePlugin, import_LexicalRichTextPlugin, import_LexicalTabIndentationPlugin, import_LexicalTablePlugin, import_LexicalComposerContext12, import_LexicalContentEditable, import_jsx_runtime150, rich_text_editor_default;
39736
39736
  var init_rich_text_editor = __esm({
39737
39737
  "src/rich-text-editor/rich-text-editor.tsx"() {
39738
39738
  "use strict";
@@ -39769,7 +39769,7 @@ var init_rich_text_editor = __esm({
39769
39769
  init_TableActionMenuPlugin();
39770
39770
  init_ToolbarPlugin();
39771
39771
  init_CrystallizeRTEditorTheme();
39772
- import_jsx_runtime148 = require("react/jsx-runtime");
39772
+ import_jsx_runtime150 = require("react/jsx-runtime");
39773
39773
  rich_text_editor_default = RichTextEditor;
39774
39774
  }
39775
39775
  });
@@ -39792,6 +39792,7 @@ __export(src_exports, {
39792
39792
  Input: () => Input,
39793
39793
  InputWithLabel: () => InputWithLabel,
39794
39794
  Label: () => Label2,
39795
+ Popover: () => Popover,
39795
39796
  Progress: () => Progress,
39796
39797
  Radio: () => Radio,
39797
39798
  RichTextEditor: () => RichTextEditor2,
@@ -40005,15 +40006,80 @@ init_input_with_label2();
40005
40006
  init_input2();
40006
40007
  init_label2();
40007
40008
 
40008
- // src/progress/progress.tsx
40009
+ // src/popover/popover.tsx
40009
40010
  var import_class_variance_authority17 = require("class-variance-authority");
40010
- var ProgressPrimitives = __toESM(require("@radix-ui/react-progress"));
40011
+ var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
40012
+
40013
+ // src/popover/popover-close.tsx
40014
+ var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
40015
+ init_iconography();
40011
40016
  var import_jsx_runtime127 = require("react/jsx-runtime");
40017
+ function PopoverClose(props) {
40018
+ const { asChild, children } = props;
40019
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(PopoverPrimitive.Close, {
40020
+ asChild,
40021
+ className: "c-popover-close",
40022
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Icon.Cancel, {
40023
+ width: 16,
40024
+ height: 16
40025
+ })
40026
+ });
40027
+ }
40028
+
40029
+ // src/popover/popover.tsx
40030
+ var import_jsx_runtime128 = require("react/jsx-runtime");
40031
+ function Popover({
40032
+ children,
40033
+ closeButton,
40034
+ content,
40035
+ side,
40036
+ open,
40037
+ onOpenChange,
40038
+ className,
40039
+ container,
40040
+ hasArrow = true,
40041
+ ...delegatedContent
40042
+ }) {
40043
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(PopoverPrimitive2.Root, {
40044
+ open,
40045
+ onOpenChange,
40046
+ children: [
40047
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(PopoverPrimitive2.Trigger, {
40048
+ asChild: true,
40049
+ children
40050
+ }),
40051
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(PopoverPrimitive2.Portal, {
40052
+ container,
40053
+ children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(PopoverPrimitive2.Content, {
40054
+ ...delegatedContent,
40055
+ side,
40056
+ className: (0, import_class_variance_authority17.cx)("c-popover-content", className),
40057
+ children: [
40058
+ !closeButton ? null : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(PopoverClose, {
40059
+ asChild: typeof closeButton !== "boolean",
40060
+ children: typeof closeButton !== "boolean" ? closeButton : null
40061
+ }),
40062
+ hasArrow && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(PopoverPrimitive2.Arrow, {
40063
+ className: "c-popover-arrow",
40064
+ offset: 5
40065
+ }),
40066
+ content
40067
+ ]
40068
+ })
40069
+ })
40070
+ ]
40071
+ });
40072
+ }
40073
+
40074
+ // src/progress/progress.tsx
40075
+ var import_class_variance_authority18 = require("class-variance-authority");
40076
+ var ProgressPrimitives = __toESM(require("@radix-ui/react-progress"));
40077
+ var import_jsx_runtime129 = require("react/jsx-runtime");
40012
40078
  function Progress({ className, value }) {
40013
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ProgressPrimitives.Root, {
40014
- className: (0, import_class_variance_authority17.cx)(className, "c-progress-root"),
40079
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(ProgressPrimitives.Root, {
40080
+ className: (0, import_class_variance_authority18.cx)(className, "c-progress-root"),
40015
40081
  value,
40016
- children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ProgressPrimitives.Indicator, {
40082
+ children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(ProgressPrimitives.Indicator, {
40017
40083
  className: "c-progress-indicator",
40018
40084
  style: { transform: `translateX(-${100 - (value ?? 0)}%)` }
40019
40085
  })
@@ -40022,12 +40088,12 @@ function Progress({ className, value }) {
40022
40088
 
40023
40089
  // src/radio/radio.tsx
40024
40090
  var RadioGroupPrimitive2 = __toESM(require("@radix-ui/react-radio-group"));
40025
- var import_jsx_runtime128 = require("react/jsx-runtime");
40091
+ var import_jsx_runtime130 = require("react/jsx-runtime");
40026
40092
  function RadioGroupItem(props) {
40027
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(RadioGroupPrimitive2.Item, {
40093
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RadioGroupPrimitive2.Item, {
40028
40094
  ...props,
40029
40095
  className: "c-radio-item",
40030
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(RadioGroupPrimitive2.Indicator, {
40096
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(RadioGroupPrimitive2.Indicator, {
40031
40097
  className: "c-radio-indicator"
40032
40098
  })
40033
40099
  });
@@ -40039,20 +40105,20 @@ var Radio = {
40039
40105
 
40040
40106
  // src/select/select-item.tsx
40041
40107
  var import_react114 = require("react");
40042
- var import_class_variance_authority18 = require("class-variance-authority");
40108
+ var import_class_variance_authority19 = require("class-variance-authority");
40043
40109
  var SelectPrimitives = __toESM(require("@radix-ui/react-select"));
40044
- var import_jsx_runtime129 = require("react/jsx-runtime");
40110
+ var import_jsx_runtime131 = require("react/jsx-runtime");
40045
40111
  var SelectItem = (0, import_react114.forwardRef)((props, ref) => {
40046
40112
  const { children, className, ...delegated } = props;
40047
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(SelectPrimitives.Item, {
40048
- className: (0, import_class_variance_authority18.cx)("c-select-item", className),
40113
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(SelectPrimitives.Item, {
40114
+ className: (0, import_class_variance_authority19.cx)("c-select-item", className),
40049
40115
  ref,
40050
40116
  ...delegated,
40051
40117
  children: [
40052
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives.ItemText, {
40118
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(SelectPrimitives.ItemText, {
40053
40119
  children
40054
40120
  }),
40055
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives.ItemIndicator, {})
40121
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(SelectPrimitives.ItemIndicator, {})
40056
40122
  ]
40057
40123
  });
40058
40124
  });
@@ -40060,11 +40126,11 @@ SelectItem.displayName = "SelectItem";
40060
40126
 
40061
40127
  // src/select/select-root.tsx
40062
40128
  var import_react115 = require("react");
40063
- var import_class_variance_authority19 = require("class-variance-authority");
40129
+ var import_class_variance_authority20 = require("class-variance-authority");
40064
40130
  var SelectPrimitives2 = __toESM(require("@radix-ui/react-select"));
40065
40131
  init_iconography();
40066
- var import_jsx_runtime130 = require("react/jsx-runtime");
40067
- var selectTriggerStyles = (0, import_class_variance_authority19.cva)("c-select-trigger", {
40132
+ var import_jsx_runtime132 = require("react/jsx-runtime");
40133
+ var selectTriggerStyles = (0, import_class_variance_authority20.cva)("c-select-trigger", {
40068
40134
  variants: {
40069
40135
  size: {
40070
40136
  xs: "c-select-trigger-xs",
@@ -40079,34 +40145,34 @@ var selectTriggerStyles = (0, import_class_variance_authority19.cva)("c-select-t
40079
40145
  });
40080
40146
  var SelectContainer = (0, import_react115.forwardRef)(
40081
40147
  ({ children, id, placeholder, disabled, size, triggerClassName, ...delegated }, ref) => {
40082
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(SelectPrimitives2.Root, {
40148
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(SelectPrimitives2.Root, {
40083
40149
  ...delegated,
40084
40150
  children: [
40085
- /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(SelectPrimitives2.Trigger, {
40151
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(SelectPrimitives2.Trigger, {
40086
40152
  ref,
40087
40153
  className: selectTriggerStyles({ size, className: triggerClassName }),
40088
40154
  disabled,
40089
40155
  id,
40090
40156
  children: [
40091
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SelectPrimitives2.Value, {
40092
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", {
40157
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(SelectPrimitives2.Value, {
40158
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", {
40093
40159
  className: "c-select-value",
40094
40160
  children: placeholder ?? "Select..."
40095
40161
  })
40096
40162
  }),
40097
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon.Arrow, {})
40163
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon.Arrow, {})
40098
40164
  ]
40099
40165
  }),
40100
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SelectPrimitives2.Portal, {
40101
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(SelectPrimitives2.Content, {
40166
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(SelectPrimitives2.Portal, {
40167
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(SelectPrimitives2.Content, {
40102
40168
  className: "c-select-content",
40103
40169
  children: [
40104
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SelectPrimitives2.ScrollUpButton, {}),
40105
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SelectPrimitives2.Viewport, {
40170
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(SelectPrimitives2.ScrollUpButton, {}),
40171
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(SelectPrimitives2.Viewport, {
40106
40172
  className: "c-select-viewport",
40107
40173
  children
40108
40174
  }),
40109
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SelectPrimitives2.ScrollDownButton, {})
40175
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(SelectPrimitives2.ScrollDownButton, {})
40110
40176
  ]
40111
40177
  })
40112
40178
  })
@@ -40124,22 +40190,22 @@ var Select = {
40124
40190
 
40125
40191
  // src/slider/slider.tsx
40126
40192
  var import_react116 = require("react");
40127
- var import_class_variance_authority20 = require("class-variance-authority");
40193
+ var import_class_variance_authority21 = require("class-variance-authority");
40128
40194
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
40129
- var import_jsx_runtime131 = require("react/jsx-runtime");
40195
+ var import_jsx_runtime133 = require("react/jsx-runtime");
40130
40196
  var Slider = (0, import_react116.forwardRef)(({ className, transparentRange, ...delegated }, ref) => {
40131
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(SliderPrimitive.Root, {
40132
- className: (0, import_class_variance_authority20.cx)("c-slider-root", className),
40197
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(SliderPrimitive.Root, {
40198
+ className: (0, import_class_variance_authority21.cx)("c-slider-root", className),
40133
40199
  ref,
40134
40200
  ...delegated,
40135
40201
  children: [
40136
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(SliderPrimitive.Track, {
40202
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(SliderPrimitive.Track, {
40137
40203
  className: "c-slider-track",
40138
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(SliderPrimitive.Range, {
40204
+ children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(SliderPrimitive.Range, {
40139
40205
  className: `c-slider-range ${transparentRange ? "c-slider-range-transparent" : ""}`
40140
40206
  })
40141
40207
  }),
40142
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(SliderPrimitive.Thumb, {
40208
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(SliderPrimitive.Thumb, {
40143
40209
  className: "c-slider-thumb"
40144
40210
  })
40145
40211
  ]
@@ -40151,15 +40217,15 @@ init_spinner();
40151
40217
 
40152
40218
  // src/stack-icon/stack-icon.tsx
40153
40219
  init_iconography();
40154
- var import_jsx_runtime132 = require("react/jsx-runtime");
40220
+ var import_jsx_runtime134 = require("react/jsx-runtime");
40155
40221
  function StackIcon({ type, children, size = 18 }) {
40156
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", {
40222
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("span", {
40157
40223
  className: "c-stack-icon",
40158
40224
  children: [
40159
- type === "create" && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", {
40225
+ type === "create" && /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("span", {
40160
40226
  style: { width: size, height: size },
40161
40227
  className: "c-stack-icon__icon",
40162
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon.Add, {
40228
+ children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Icon.Add, {
40163
40229
  width: size - 4,
40164
40230
  height: size - 4
40165
40231
  })
@@ -40170,10 +40236,10 @@ function StackIcon({ type, children, size = 18 }) {
40170
40236
  }
40171
40237
 
40172
40238
  // src/tag/tag.tsx
40173
- var import_class_variance_authority21 = require("class-variance-authority");
40239
+ var import_class_variance_authority22 = require("class-variance-authority");
40174
40240
  init_iconography();
40175
- var import_jsx_runtime133 = require("react/jsx-runtime");
40176
- var tagStyles = (0, import_class_variance_authority21.cva)("c-tag", {
40241
+ var import_jsx_runtime135 = require("react/jsx-runtime");
40242
+ var tagStyles = (0, import_class_variance_authority22.cva)("c-tag", {
40177
40243
  variants: {
40178
40244
  variant: {
40179
40245
  default: "c-tag-default",
@@ -40202,28 +40268,28 @@ function Tag({
40202
40268
  showRemoveOnHover,
40203
40269
  ...delegated
40204
40270
  }) {
40205
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", {
40271
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", {
40206
40272
  className: tagStyles({ className, variant, size }),
40207
40273
  ...delegated,
40208
40274
  children: [
40209
- !prepend ? null : /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", {
40275
+ !prepend ? null : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", {
40210
40276
  className: "c-tag__prepend",
40211
40277
  children: prepend
40212
40278
  }),
40213
40279
  children,
40214
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("button", {
40280
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("button", {
40215
40281
  type: "button",
40216
- className: (0, import_class_variance_authority21.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40282
+ className: (0, import_class_variance_authority22.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40217
40283
  onClick: (e) => {
40218
40284
  e.stopPropagation();
40219
40285
  onRemove();
40220
40286
  },
40221
40287
  children: [
40222
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon.Cancel, {
40288
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon.Cancel, {
40223
40289
  width: 12,
40224
40290
  height: 12
40225
40291
  }),
40226
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", {
40292
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", {
40227
40293
  className: "c-tag__remove-button-text",
40228
40294
  children: "Remove"
40229
40295
  })
@@ -40235,12 +40301,12 @@ function Tag({
40235
40301
 
40236
40302
  // src/rich-text-editor/index.tsx
40237
40303
  var import_react133 = require("react");
40238
- var import_jsx_runtime149 = require("react/jsx-runtime");
40304
+ var import_jsx_runtime151 = require("react/jsx-runtime");
40239
40305
  var LazyRichTextEditor = (0, import_react133.lazy)(() => Promise.resolve().then(() => (init_rich_text_editor(), rich_text_editor_exports)));
40240
40306
  var RichTextEditor2 = (props) => {
40241
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_react133.Suspense, {
40307
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_react133.Suspense, {
40242
40308
  fallback: null,
40243
- children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(LazyRichTextEditor, {
40309
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(LazyRichTextEditor, {
40244
40310
  ...props
40245
40311
  })
40246
40312
  });
@@ -40250,12 +40316,12 @@ var RichTextEditor2 = (props) => {
40250
40316
  var import_sonner2 = require("sonner");
40251
40317
 
40252
40318
  // src/toast/toast.tsx
40253
- var import_class_variance_authority22 = require("class-variance-authority");
40319
+ var import_class_variance_authority23 = require("class-variance-authority");
40254
40320
  var import_sonner = require("sonner");
40255
40321
  init_icon_button2();
40256
40322
  init_iconography();
40257
- var import_jsx_runtime150 = require("react/jsx-runtime");
40258
- var toastStyles = (0, import_class_variance_authority22.cva)("c-toast", {
40323
+ var import_jsx_runtime152 = require("react/jsx-runtime");
40324
+ var toastStyles = (0, import_class_variance_authority23.cva)("c-toast", {
40259
40325
  variants: {
40260
40326
  type: {
40261
40327
  info: "c-toast-info",
@@ -40279,34 +40345,34 @@ var toast = ({ title, message, type = "success", timeout = 6e3 }) => {
40279
40345
  const withMessage = !!message;
40280
40346
  const toastId = Date.now().toString();
40281
40347
  import_sonner.toast.custom(
40282
- (id) => /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", {
40348
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", {
40283
40349
  "data-testid": `toast-${type}`,
40284
- className: (0, import_class_variance_authority22.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40350
+ className: (0, import_class_variance_authority23.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40285
40351
  children: [
40286
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
40287
- children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(ToastIcon, {
40352
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", {
40353
+ children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(ToastIcon, {
40288
40354
  width: 26,
40289
40355
  height: 26
40290
40356
  })
40291
40357
  }),
40292
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", {
40358
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", {
40293
40359
  children: [
40294
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
40360
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", {
40295
40361
  className: "c-toast-title",
40296
40362
  children: title
40297
40363
  }),
40298
- !!message && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
40364
+ !!message && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", {
40299
40365
  className: "c-toast-message",
40300
40366
  children: message
40301
40367
  })
40302
40368
  ]
40303
40369
  }),
40304
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", {
40370
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", {
40305
40371
  className: "c-toast-close",
40306
- children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(IconButton, {
40372
+ children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(IconButton, {
40307
40373
  onClick: () => import_sonner.toast.dismiss(id),
40308
40374
  size: "xs",
40309
- children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Icon.Cancel, {
40375
+ children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Icon.Cancel, {
40310
40376
  width: 12,
40311
40377
  height: 12
40312
40378
  })
@@ -40328,10 +40394,10 @@ toast.dismiss = import_sonner.toast.dismiss;
40328
40394
  init_tooltip2();
40329
40395
 
40330
40396
  // src/switch/switch.tsx
40331
- var import_class_variance_authority23 = require("class-variance-authority");
40397
+ var import_class_variance_authority24 = require("class-variance-authority");
40332
40398
  var RadixSwitch = __toESM(require("@radix-ui/react-switch"));
40333
- var import_jsx_runtime151 = require("react/jsx-runtime");
40334
- var switchStyles = (0, import_class_variance_authority23.cva)(["c-switch-root"], {
40399
+ var import_jsx_runtime153 = require("react/jsx-runtime");
40400
+ var switchStyles = (0, import_class_variance_authority24.cva)(["c-switch-root"], {
40335
40401
  variants: {
40336
40402
  size: {
40337
40403
  xs: "c-switch-root-xs",
@@ -40343,12 +40409,12 @@ var switchStyles = (0, import_class_variance_authority23.cva)(["c-switch-root"],
40343
40409
  }
40344
40410
  });
40345
40411
  function Switch2({ size, checked, ...props }) {
40346
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(RadixSwitch.Root, {
40412
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(RadixSwitch.Root, {
40347
40413
  ...props,
40348
40414
  checked,
40349
40415
  className: switchStyles({ size }),
40350
- children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(RadixSwitch.Thumb, {
40351
- className: (0, import_class_variance_authority23.cx)("c-switch-thumb", checked === null ? "middle-position" : "")
40416
+ children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(RadixSwitch.Thumb, {
40417
+ className: (0, import_class_variance_authority24.cx)("c-switch-thumb", checked === null ? "middle-position" : "")
40352
40418
  })
40353
40419
  });
40354
40420
  }
@@ -40376,6 +40442,7 @@ var tokens = {
40376
40442
  Input,
40377
40443
  InputWithLabel,
40378
40444
  Label,
40445
+ Popover,
40379
40446
  Progress,
40380
40447
  Radio,
40381
40448
  RichTextEditor,