@crystallize/design-system 1.23.5 → 1.24.0

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
@@ -2430,7 +2430,8 @@ var init_folder = __esm({
2430
2430
  children: [
2431
2431
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", {
2432
2432
  d: "M2.604 4.108v13.146a.6.6 0 00.6.6h11.968c.59 0 1.166-.255 1.429-.784 1.374-2.77 1.642-8.38 1.166-10.692-.114-.555-.706-.927-1.272-.927l-7.091.067-2-1.41h-4.8z",
2433
- fill: "#BFF6F8"
2433
+ fill: "#BFF6F8",
2434
+ className: "c-icon-fill"
2434
2435
  }),
2435
2436
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", {
2436
2437
  fillRule: "evenodd",
@@ -2440,7 +2441,8 @@ var init_folder = __esm({
2440
2441
  }),
2441
2442
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", {
2442
2443
  d: "M4.659 10.021L3.502 17.17a.6.6 0 00.594.685h12.076c.59 0 1.164-.254 1.46-.765 1.419-2.445 2.065-6 1.765-7.956-.086-.56-.617-.829-1.184-.829H6.64a2 2 0 00-1.98 1.717z",
2443
- fill: "#BFF6F8"
2444
+ fill: "#BFF6F8",
2445
+ className: "c-icon-fill"
2444
2446
  }),
2445
2447
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", {
2446
2448
  fillRule: "evenodd",
@@ -6838,29 +6840,29 @@ var init_5 = __esm({
6838
6840
  function DialogContent({ children, closable = true, type, className, container, ...delegated }) {
6839
6841
  const withIcon = typeof type !== "undefined";
6840
6842
  const IconComponent = type && IconMap[type];
6841
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DialogPrimitive.Portal, {
6843
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(DialogPrimitive.Portal, {
6842
6844
  container,
6843
6845
  children: [
6844
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DialogPrimitive.Overlay, {
6846
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogPrimitive.Overlay, {
6845
6847
  className: "c-dialog-overlay"
6846
6848
  }),
6847
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DialogPrimitive.Content, {
6849
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(DialogPrimitive.Content, {
6848
6850
  className: dialogContentStyles({ withIcon, class: className }),
6849
6851
  ...delegated,
6850
6852
  children: [
6851
- IconComponent && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", {
6853
+ IconComponent && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", {
6852
6854
  className: "c-dialog-icon-wrapper",
6853
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(IconComponent, {
6855
+ children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(IconComponent, {
6854
6856
  className: "c-dialog-icon",
6855
6857
  width: 34,
6856
6858
  height: 34
6857
6859
  })
6858
6860
  }),
6859
- closable && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DialogClose, {
6861
+ closable && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogClose, {
6860
6862
  asChild: true,
6861
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, {
6863
+ children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Button, {
6862
6864
  className: "c-dialog-close-button",
6863
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon.Cancel, {
6865
+ children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Icon.Cancel, {
6864
6866
  color: "density",
6865
6867
  "aria-label": "Close",
6866
6868
  height: 16,
@@ -6868,7 +6870,7 @@ function DialogContent({ children, closable = true, type, className, container,
6868
6870
  })
6869
6871
  })
6870
6872
  }),
6871
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", {
6873
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", {
6872
6874
  children
6873
6875
  })
6874
6876
  ]
@@ -6877,39 +6879,39 @@ function DialogContent({ children, closable = true, type, className, container,
6877
6879
  });
6878
6880
  }
6879
6881
  function DialogTitle({ className, ...delegated }) {
6880
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DialogPrimitive.Title, {
6881
- className: (0, import_class_variance_authority9.cx)("c-dialog-title", className),
6882
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogPrimitive.Title, {
6883
+ className: (0, import_class_variance_authority10.cx)("c-dialog-title", className),
6882
6884
  ...delegated
6883
6885
  });
6884
6886
  }
6885
6887
  function DialogDescription(delegated) {
6886
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DialogPrimitive.Description, {
6888
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogPrimitive.Description, {
6887
6889
  className: "c-dialog-description",
6888
6890
  ...delegated
6889
6891
  });
6890
6892
  }
6891
6893
  function DialogBase({ children, ...delegated }) {
6892
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(DialogRoot, {
6894
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogRoot, {
6893
6895
  ...delegated,
6894
6896
  children
6895
6897
  });
6896
6898
  }
6897
- var import_class_variance_authority9, DialogPrimitive, import_jsx_runtime116, IconMap, dialogContentStyles, DialogTrigger, DialogClose, DialogRoot;
6899
+ var import_class_variance_authority10, DialogPrimitive, import_jsx_runtime117, IconMap, dialogContentStyles, DialogTrigger, DialogClose, DialogRoot;
6898
6900
  var init_dialog = __esm({
6899
6901
  "src/dialog/dialog.tsx"() {
6900
6902
  "use strict";
6901
- import_class_variance_authority9 = require("class-variance-authority");
6903
+ import_class_variance_authority10 = require("class-variance-authority");
6902
6904
  DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
6903
6905
  init_button2();
6904
6906
  init_iconography();
6905
6907
  init_5();
6906
- import_jsx_runtime116 = require("react/jsx-runtime");
6908
+ import_jsx_runtime117 = require("react/jsx-runtime");
6907
6909
  IconMap = {
6908
6910
  error: Icon.Error,
6909
6911
  info: Icon.Info,
6910
6912
  warning: Icon.Warning
6911
6913
  };
6912
- dialogContentStyles = (0, import_class_variance_authority9.cva)("c-dialog", {
6914
+ dialogContentStyles = (0, import_class_variance_authority10.cva)("c-dialog", {
6913
6915
  variants: {
6914
6916
  withIcon: {
6915
6917
  true: "c-dialog-with-icon"
@@ -6949,14 +6951,14 @@ function ConfirmDialog({
6949
6951
  type,
6950
6952
  closable
6951
6953
  }) {
6952
- const cancelButton = (okCancel || displayCancel) && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Button, {
6954
+ const cancelButton = (okCancel || displayCancel) && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Button, {
6953
6955
  onClick: () => {
6954
6956
  onCancel?.();
6955
6957
  close();
6956
6958
  },
6957
6959
  children: cancelText
6958
6960
  });
6959
- const okButton = displayOk && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Button, {
6961
+ const okButton = displayOk && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Button, {
6960
6962
  intent: okButtonIntent,
6961
6963
  onClick: () => {
6962
6964
  onOk?.();
@@ -6964,24 +6966,24 @@ function ConfirmDialog({
6964
6966
  },
6965
6967
  children: okText
6966
6968
  });
6967
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(DialogRoot, {
6969
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(DialogRoot, {
6968
6970
  open,
6969
6971
  onOpenChange: () => close(),
6970
- children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(Dialog.Content, {
6972
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(Dialog.Content, {
6971
6973
  onEscapeKeyDown,
6972
6974
  onInteractOutside,
6973
6975
  onPointerDownOutside,
6974
6976
  type,
6975
6977
  closable,
6976
6978
  children: [
6977
- title && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Dialog.Title, {
6979
+ title && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Dialog.Title, {
6978
6980
  children: title
6979
6981
  }),
6980
- description && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Dialog.Description, {
6982
+ description && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Dialog.Description, {
6981
6983
  children: description
6982
6984
  }),
6983
6985
  content,
6984
- (displayOk || okCancel || displayCancel) && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", {
6986
+ (displayOk || okCancel || displayCancel) && /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", {
6985
6987
  className: "c-dialog-content__buttons",
6986
6988
  children: [
6987
6989
  cancelButton,
@@ -6992,14 +6994,14 @@ function ConfirmDialog({
6992
6994
  })
6993
6995
  });
6994
6996
  }
6995
- var import_jsx_runtime117;
6997
+ var import_jsx_runtime118;
6996
6998
  var init_confirm_dialog = __esm({
6997
6999
  "src/dialog/confirm-dialog.tsx"() {
6998
7000
  "use strict";
6999
7001
  init_dialog2();
7000
7002
  init_button2();
7001
7003
  init_dialog();
7002
- import_jsx_runtime117 = require("react/jsx-runtime");
7004
+ import_jsx_runtime118 = require("react/jsx-runtime");
7003
7005
  }
7004
7006
  });
7005
7007
 
@@ -7044,7 +7046,7 @@ function confirm(config) {
7044
7046
  function render({ okText, cancelText, ...delegated }) {
7045
7047
  clearTimeout(timeoutId);
7046
7048
  timeoutId = setTimeout(() => {
7047
- (0, import_react_dom.render)(/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(ConfirmDialog, {
7049
+ (0, import_react_dom.render)(/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(ConfirmDialog, {
7048
7050
  ...delegated,
7049
7051
  okText,
7050
7052
  cancelText
@@ -7121,14 +7123,14 @@ function withConfirm(delegated) {
7121
7123
  onPointerDownOutside: dumbFn
7122
7124
  };
7123
7125
  }
7124
- var import_react_dom, import_jsx_runtime118, dumbFn;
7126
+ var import_react_dom, import_jsx_runtime119, dumbFn;
7125
7127
  var init_config = __esm({
7126
7128
  "src/dialog/config.tsx"() {
7127
7129
  "use strict";
7128
7130
  import_react_dom = require("react-dom");
7129
7131
  init_confirm_dialog();
7130
7132
  init_destroyFns();
7131
- import_jsx_runtime118 = require("react/jsx-runtime");
7133
+ import_jsx_runtime119 = require("react/jsx-runtime");
7132
7134
  dumbFn = (event) => {
7133
7135
  event.preventDefault();
7134
7136
  };
@@ -7177,15 +7179,15 @@ var init_6 = __esm({
7177
7179
  });
7178
7180
 
7179
7181
  // src/icon-button/icon-button.tsx
7180
- var import_react109, import_class_variance_authority10, import_jsx_runtime119, buttonStyles3, IconButton;
7182
+ var import_react109, import_class_variance_authority11, import_jsx_runtime120, buttonStyles3, IconButton;
7181
7183
  var init_icon_button = __esm({
7182
7184
  "src/icon-button/icon-button.tsx"() {
7183
7185
  "use strict";
7184
7186
  import_react109 = require("react");
7185
- import_class_variance_authority10 = require("class-variance-authority");
7187
+ import_class_variance_authority11 = require("class-variance-authority");
7186
7188
  init_6();
7187
- import_jsx_runtime119 = require("react/jsx-runtime");
7188
- buttonStyles3 = (0, import_class_variance_authority10.cva)(["c-icon-button"], {
7189
+ import_jsx_runtime120 = require("react/jsx-runtime");
7190
+ buttonStyles3 = (0, import_class_variance_authority11.cva)(["c-icon-button"], {
7189
7191
  variants: {
7190
7192
  variant: {
7191
7193
  default: "",
@@ -7206,7 +7208,7 @@ var init_icon_button = __esm({
7206
7208
  });
7207
7209
  IconButton = (0, import_react109.forwardRef)(
7208
7210
  ({ children, className, type = "button", size, variant, ...delegated }, ref) => {
7209
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("button", {
7211
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("button", {
7210
7212
  ref,
7211
7213
  type,
7212
7214
  className: buttonStyles3({ size, variant, className }),
@@ -7240,20 +7242,20 @@ var init_8 = __esm({
7240
7242
  });
7241
7243
 
7242
7244
  // src/input/input.tsx
7243
- var import_react110, import_class_variance_authority12, import_jsx_runtime121, inputStyles, Input;
7245
+ var import_react110, import_class_variance_authority13, import_jsx_runtime122, inputStyles, Input;
7244
7246
  var init_input = __esm({
7245
7247
  "src/input/input.tsx"() {
7246
7248
  "use strict";
7247
7249
  import_react110 = require("react");
7248
- import_class_variance_authority12 = require("class-variance-authority");
7250
+ import_class_variance_authority13 = require("class-variance-authority");
7249
7251
  init_8();
7250
- import_jsx_runtime121 = require("react/jsx-runtime");
7251
- inputStyles = (0, import_class_variance_authority12.cva)(["c-input"], {
7252
+ import_jsx_runtime122 = require("react/jsx-runtime");
7253
+ inputStyles = (0, import_class_variance_authority13.cva)(["c-input"], {
7252
7254
  variants: {},
7253
7255
  defaultVariants: {}
7254
7256
  });
7255
7257
  Input = (0, import_react110.forwardRef)(({ className, ...delegated }, ref) => {
7256
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("input", {
7258
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("input", {
7257
7259
  ref,
7258
7260
  className: inputStyles({ className }),
7259
7261
  type: "text",
@@ -7279,18 +7281,18 @@ var init_9 = __esm({
7279
7281
  });
7280
7282
 
7281
7283
  // src/label/label.tsx
7282
- var import_react111, import_class_variance_authority13, import_jsx_runtime122, Label2;
7284
+ var import_react111, import_class_variance_authority14, import_jsx_runtime123, Label2;
7283
7285
  var init_label = __esm({
7284
7286
  "src/label/label.tsx"() {
7285
7287
  "use strict";
7286
7288
  import_react111 = require("react");
7287
- import_class_variance_authority13 = require("class-variance-authority");
7289
+ import_class_variance_authority14 = require("class-variance-authority");
7288
7290
  init_9();
7289
- import_jsx_runtime122 = require("react/jsx-runtime");
7291
+ import_jsx_runtime123 = require("react/jsx-runtime");
7290
7292
  Label2 = (0, import_react111.forwardRef)(({ className, ...delegated }, ref) => {
7291
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("label", {
7293
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("label", {
7292
7294
  ref,
7293
- className: (0, import_class_variance_authority13.cx)("c-label", className),
7295
+ className: (0, import_class_variance_authority14.cx)("c-label", className),
7294
7296
  ...delegated
7295
7297
  });
7296
7298
  });
@@ -7322,23 +7324,23 @@ function Tooltip({
7322
7324
  defaultOpen = false,
7323
7325
  delayDuration = 800
7324
7326
  }) {
7325
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(RadixTooltip.Provider, {
7327
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(RadixTooltip.Provider, {
7326
7328
  delayDuration,
7327
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(RadixTooltip.Root, {
7329
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(RadixTooltip.Root, {
7328
7330
  defaultOpen,
7329
7331
  children: [
7330
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(RadixTooltip.Trigger, {
7332
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(RadixTooltip.Trigger, {
7331
7333
  asChild: true,
7332
7334
  children
7333
7335
  }),
7334
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(RadixTooltip.Portal, {
7335
- children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(RadixTooltip.Content, {
7336
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(RadixTooltip.Portal, {
7337
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(RadixTooltip.Content, {
7336
7338
  align,
7337
7339
  sideOffset: 5,
7338
7340
  side,
7339
7341
  className: tooltipStyles({ variant }),
7340
7342
  children: [
7341
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(RadixTooltip.Arrow, {
7343
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(RadixTooltip.Arrow, {
7342
7344
  className: "c-tooltip-arrow"
7343
7345
  }),
7344
7346
  content
@@ -7349,14 +7351,14 @@ function Tooltip({
7349
7351
  })
7350
7352
  });
7351
7353
  }
7352
- var import_class_variance_authority14, RadixTooltip, import_jsx_runtime123, tooltipStyles;
7354
+ var import_class_variance_authority15, RadixTooltip, import_jsx_runtime124, tooltipStyles;
7353
7355
  var init_tooltip = __esm({
7354
7356
  "src/tooltip/tooltip.tsx"() {
7355
7357
  "use strict";
7356
- import_class_variance_authority14 = require("class-variance-authority");
7358
+ import_class_variance_authority15 = require("class-variance-authority");
7357
7359
  RadixTooltip = __toESM(require("@radix-ui/react-tooltip"));
7358
- import_jsx_runtime123 = require("react/jsx-runtime");
7359
- tooltipStyles = (0, import_class_variance_authority14.cva)(
7360
+ import_jsx_runtime124 = require("react/jsx-runtime");
7361
+ tooltipStyles = (0, import_class_variance_authority15.cva)(
7360
7362
  "c-tooltip-content data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade",
7361
7363
  {
7362
7364
  variants: {
@@ -7385,18 +7387,18 @@ var init_tooltip2 = __esm({
7385
7387
  });
7386
7388
 
7387
7389
  // src/input-with-label/input-with-label.tsx
7388
- var import_react112, import_class_variance_authority15, import_jsx_runtime124, inputWithLabelStyles, InputWithLabel;
7390
+ var import_react112, import_class_variance_authority16, import_jsx_runtime125, inputWithLabelStyles, InputWithLabel;
7389
7391
  var init_input_with_label = __esm({
7390
7392
  "src/input-with-label/input-with-label.tsx"() {
7391
7393
  "use strict";
7392
7394
  import_react112 = require("react");
7393
- import_class_variance_authority15 = require("class-variance-authority");
7395
+ import_class_variance_authority16 = require("class-variance-authority");
7394
7396
  init_iconography();
7395
7397
  init_input2();
7396
7398
  init_label2();
7397
7399
  init_tooltip2();
7398
- import_jsx_runtime124 = require("react/jsx-runtime");
7399
- inputWithLabelStyles = (0, import_class_variance_authority15.cva)(["c-input-with-label"], {
7400
+ import_jsx_runtime125 = require("react/jsx-runtime");
7401
+ inputWithLabelStyles = (0, import_class_variance_authority16.cva)(["c-input-with-label"], {
7400
7402
  variants: {
7401
7403
  variant: {
7402
7404
  default: "",
@@ -7413,37 +7415,37 @@ var init_input_with_label = __esm({
7413
7415
  InputWithLabel = (0, import_react112.forwardRef)(
7414
7416
  ({ className, label, append, errorMessage, status, statusMessage, variant, id, labelProps, ...delegated }, ref) => {
7415
7417
  const { className: labelClassName, ...labelPropsRest } = labelProps ?? {};
7416
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_jsx_runtime124.Fragment, {
7417
- children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(Label2, {
7418
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_jsx_runtime125.Fragment, {
7419
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(Label2, {
7418
7420
  className: inputWithLabelStyles({ status, variant, className: labelClassName }),
7419
7421
  htmlFor: id,
7420
7422
  ...labelPropsRest,
7421
7423
  children: [
7422
7424
  label,
7423
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("span", {
7425
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("span", {
7424
7426
  className: "c-input-with-label-input-wrap",
7425
7427
  children: [
7426
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Input, {
7427
- className: (0, import_class_variance_authority15.cx)("c-input-with-label-input", className),
7428
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Input, {
7429
+ className: (0, import_class_variance_authority16.cx)("c-input-with-label-input", className),
7428
7430
  ref,
7429
7431
  id,
7430
7432
  ...delegated
7431
7433
  }),
7432
- !!(errorMessage ?? statusMessage) ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Tooltip, {
7434
+ !!(errorMessage ?? statusMessage) ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Tooltip, {
7433
7435
  content: errorMessage ?? statusMessage,
7434
7436
  variant: status,
7435
- children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", {
7437
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", {
7436
7438
  "data-testid": "input-with-label-status-message",
7437
7439
  className: "c-input-with-label-append",
7438
- children: status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon.Error, {
7440
+ children: status === "error" ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon.Error, {
7439
7441
  width: 20,
7440
7442
  height: 20
7441
- }) : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon.Warning, {
7443
+ }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon.Warning, {
7442
7444
  width: 20,
7443
7445
  height: 20
7444
7446
  })
7445
7447
  })
7446
- }) : !!append && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", {
7448
+ }) : !!append && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", {
7447
7449
  className: "c-input-with-label-append",
7448
7450
  children: append
7449
7451
  })
@@ -7480,17 +7482,17 @@ var init_12 = __esm({
7480
7482
  });
7481
7483
 
7482
7484
  // src/rich-text-editor/context/SharedHistoryContext.tsx
7483
- var import_react116, import_LexicalHistoryPlugin, import_jsx_runtime132, Context, SharedHistoryContext, useSharedHistoryContext;
7485
+ var import_react116, import_LexicalHistoryPlugin, import_jsx_runtime133, Context, SharedHistoryContext, useSharedHistoryContext;
7484
7486
  var init_SharedHistoryContext = __esm({
7485
7487
  "src/rich-text-editor/context/SharedHistoryContext.tsx"() {
7486
7488
  "use strict";
7487
7489
  import_react116 = require("react");
7488
7490
  import_LexicalHistoryPlugin = require("@lexical/react/LexicalHistoryPlugin");
7489
- import_jsx_runtime132 = require("react/jsx-runtime");
7491
+ import_jsx_runtime133 = require("react/jsx-runtime");
7490
7492
  Context = (0, import_react116.createContext)({});
7491
7493
  SharedHistoryContext = ({ children }) => {
7492
7494
  const historyContext = (0, import_react116.useMemo)(() => ({ historyState: (0, import_LexicalHistoryPlugin.createEmptyHistoryState)() }), []);
7493
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Context.Provider, {
7495
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Context.Provider, {
7494
7496
  value: historyContext,
7495
7497
  children
7496
7498
  });
@@ -7578,7 +7580,7 @@ function I18nProvider({
7578
7580
  children
7579
7581
  }) {
7580
7582
  const translations2 = labelTranslations || en_default;
7581
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(I18nContext.Provider, {
7583
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(I18nContext.Provider, {
7582
7584
  value: translations2,
7583
7585
  children
7584
7586
  });
@@ -7601,14 +7603,14 @@ function useTr() {
7601
7603
  return "";
7602
7604
  };
7603
7605
  }
7604
- var import_react117, import_jsx_runtime133, I18nContext;
7606
+ var import_react117, import_jsx_runtime134, I18nContext;
7605
7607
  var init_i18n = __esm({
7606
7608
  "src/rich-text-editor/i18n/index.tsx"() {
7607
7609
  "use strict";
7608
7610
  import_react117 = require("react");
7609
7611
  init_en();
7610
7612
  init_en();
7611
- import_jsx_runtime133 = require("react/jsx-runtime");
7613
+ import_jsx_runtime134 = require("react/jsx-runtime");
7612
7614
  I18nContext = (0, import_react117.createContext)(null);
7613
7615
  }
7614
7616
  });
@@ -8053,17 +8055,17 @@ var init_BaseNodes = __esm({
8053
8055
 
8054
8056
  // src/rich-text-editor/plugins/AutoLinkPlugin/index.tsx
8055
8057
  function LexicalAutoLinkPlugin() {
8056
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_LexicalAutoLinkPlugin.AutoLinkPlugin, {
8058
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_LexicalAutoLinkPlugin.AutoLinkPlugin, {
8057
8059
  matchers: MATCHERS
8058
8060
  });
8059
8061
  }
8060
- var React2, import_LexicalAutoLinkPlugin, import_jsx_runtime134, URL_MATCHER, EMAIL_MATCHER, MATCHERS;
8062
+ var React2, import_LexicalAutoLinkPlugin, import_jsx_runtime135, URL_MATCHER, EMAIL_MATCHER, MATCHERS;
8061
8063
  var init_AutoLinkPlugin = __esm({
8062
8064
  "src/rich-text-editor/plugins/AutoLinkPlugin/index.tsx"() {
8063
8065
  "use strict";
8064
8066
  React2 = require("react");
8065
8067
  import_LexicalAutoLinkPlugin = require("@lexical/react/LexicalAutoLinkPlugin");
8066
- import_jsx_runtime134 = require("react/jsx-runtime");
8068
+ import_jsx_runtime135 = require("react/jsx-runtime");
8067
8069
  URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
8068
8070
  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,}))/;
8069
8071
  MATCHERS = [
@@ -8122,18 +8124,18 @@ function CopyButton({ editor, getCodeDOMNode }) {
8122
8124
  console.error("Failed to copy: ", err);
8123
8125
  }
8124
8126
  }
8125
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("button", {
8127
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("button", {
8126
8128
  className: "c-rte-code-button",
8127
8129
  onClick: handleClick,
8128
8130
  "aria-label": tr("actionCopyCode"),
8129
- children: isCopyCompleted ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("i", {
8131
+ children: isCopyCompleted ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("i", {
8130
8132
  className: "c-rte-code-button__icon c-rte-icon-success"
8131
- }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("i", {
8133
+ }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("i", {
8132
8134
  className: "c-rte-code-button__icon c-rte-icon-copy"
8133
8135
  })
8134
8136
  });
8135
8137
  }
8136
- var React3, import_react118, import_lexical4, import_use_debounce, import_code4, import_jsx_runtime135;
8138
+ var React3, import_react118, import_lexical4, import_use_debounce, import_code4, import_jsx_runtime136;
8137
8139
  var init_CopyButton = __esm({
8138
8140
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/components/CopyButton/index.tsx"() {
8139
8141
  "use strict";
@@ -8143,7 +8145,7 @@ var init_CopyButton = __esm({
8143
8145
  import_use_debounce = require("use-debounce");
8144
8146
  import_code4 = require("@lexical/code");
8145
8147
  init_i18n();
8146
- import_jsx_runtime135 = require("react/jsx-runtime");
8148
+ import_jsx_runtime136 = require("react/jsx-runtime");
8147
8149
  }
8148
8150
  });
8149
8151
 
@@ -37037,29 +37039,29 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
37037
37039
  setTipsVisible(false);
37038
37040
  }
37039
37041
  }
37040
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)("div", {
37042
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", {
37041
37043
  className: "c-rte-prettier-wrapper",
37042
37044
  children: [
37043
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("button", {
37045
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("button", {
37044
37046
  className: "c-rte-code-button",
37045
37047
  onClick: handleClick,
37046
37048
  onMouseEnter: handleMouseEnter,
37047
37049
  onMouseLeave: handleMouseLeave,
37048
37050
  "aria-label": tr("actionFormatCode"),
37049
- children: syntaxError ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("i", {
37051
+ children: syntaxError ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("i", {
37050
37052
  className: "c-rte-code-button__icon c-rte-icon-prettier-error"
37051
- }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("i", {
37053
+ }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("i", {
37052
37054
  className: "c-rte-code-button__icon c-rte-icon-prettier"
37053
37055
  })
37054
37056
  }),
37055
- tipsVisible ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("pre", {
37057
+ tipsVisible ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("pre", {
37056
37058
  className: "c-rte-code-error-tips",
37057
37059
  children: syntaxError
37058
37060
  }) : null
37059
37061
  ]
37060
37062
  });
37061
37063
  }
37062
- var React4, import_react119, import_lexical5, import_code5, import_jsx_runtime136, PRETTIER_PARSER_MODULES, PRETTIER_OPTIONS_BY_LANG, LANG_CAN_BE_PRETTIER;
37064
+ var React4, import_react119, import_lexical5, import_code5, import_jsx_runtime137, PRETTIER_PARSER_MODULES, PRETTIER_OPTIONS_BY_LANG, LANG_CAN_BE_PRETTIER;
37063
37065
  var init_PrettierButton = __esm({
37064
37066
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/components/PrettierButton/index.tsx"() {
37065
37067
  "use strict";
@@ -37068,7 +37070,7 @@ var init_PrettierButton = __esm({
37068
37070
  import_lexical5 = require("lexical");
37069
37071
  import_code5 = require("@lexical/code");
37070
37072
  init_i18n();
37071
- import_jsx_runtime136 = require("react/jsx-runtime");
37073
+ import_jsx_runtime137 = require("react/jsx-runtime");
37072
37074
  PRETTIER_PARSER_MODULES = {
37073
37075
  css: () => Promise.resolve().then(() => __toESM(require_parser_postcss())),
37074
37076
  html: () => Promise.resolve().then(() => __toESM(require_parser_html())),
@@ -37168,20 +37170,20 @@ function CodeActionMenuContainer({ anchorElem }) {
37168
37170
  });
37169
37171
  const normalizedLang = (0, import_code6.normalizeCodeLang)(lang);
37170
37172
  const codeFriendlyName = (0, import_code6.getLanguageFriendlyName)(lang);
37171
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_jsx_runtime137.Fragment, {
37172
- children: isShown ? /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)("div", {
37173
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_jsx_runtime138.Fragment, {
37174
+ children: isShown ? /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", {
37173
37175
  className: "c-rte-code-action-menu-container",
37174
37176
  style: { ...position },
37175
37177
  children: [
37176
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)("div", {
37178
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", {
37177
37179
  className: "c-rte-code-highlight-language",
37178
37180
  children: codeFriendlyName
37179
37181
  }),
37180
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CopyButton, {
37182
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CopyButton, {
37181
37183
  editor,
37182
37184
  getCodeDOMNode
37183
37185
  }),
37184
- canBePrettier(normalizedLang) ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(PrettierButton, {
37186
+ canBePrettier(normalizedLang) ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(PrettierButton, {
37185
37187
  editor,
37186
37188
  getCodeDOMNode,
37187
37189
  lang: normalizedLang
@@ -37203,11 +37205,11 @@ function getMouseInfo(event) {
37203
37205
  function CodeActionMenuPlugin({
37204
37206
  anchorElem = document.body
37205
37207
  }) {
37206
- return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime137.jsx)(CodeActionMenuContainer, {
37208
+ return (0, import_react_dom2.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CodeActionMenuContainer, {
37207
37209
  anchorElem
37208
37210
  }), anchorElem);
37209
37211
  }
37210
- var import_react120, import_lexical6, import_react_dom2, import_use_debounce2, import_code6, import_LexicalComposerContext, import_jsx_runtime137, CODE_PADDING;
37212
+ var import_react120, import_lexical6, import_react_dom2, import_use_debounce2, import_code6, import_LexicalComposerContext, import_jsx_runtime138, CODE_PADDING;
37211
37213
  var init_CodeActionMenuPlugin = __esm({
37212
37214
  "src/rich-text-editor/plugins/CodeActionMenuPlugin/index.tsx"() {
37213
37215
  "use strict";
@@ -37219,7 +37221,7 @@ var init_CodeActionMenuPlugin = __esm({
37219
37221
  import_LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
37220
37222
  init_CopyButton();
37221
37223
  init_PrettierButton();
37222
- import_jsx_runtime137 = require("react/jsx-runtime");
37224
+ import_jsx_runtime138 = require("react/jsx-runtime");
37223
37225
  CODE_PADDING = 0;
37224
37226
  }
37225
37227
  });
@@ -37297,26 +37299,26 @@ function LinkPreviewContent({
37297
37299
  if (!hasPreview) {
37298
37300
  return null;
37299
37301
  }
37300
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)("div", {
37302
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37301
37303
  className: "c-rte-link-preview",
37302
37304
  children: [
37303
- preview.google.image && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", {
37305
+ preview.google.image && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37304
37306
  className: "c-rte-link-preview-image-wrapper",
37305
- children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("img", {
37307
+ children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("img", {
37306
37308
  src: preview.google.image,
37307
37309
  alt: preview.google.title,
37308
37310
  className: "c-rte-link-preview-image"
37309
37311
  })
37310
37312
  }),
37311
- preview.google.title && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", {
37313
+ preview.google.title && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37312
37314
  className: "c-rte-link-preview-title",
37313
37315
  children: preview.google.title
37314
37316
  }),
37315
- preview.google.description && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", {
37317
+ preview.google.description && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37316
37318
  className: "c-rte-link-preview-description",
37317
37319
  children: preview.google.description
37318
37320
  }),
37319
- textContent && textContent !== preview.google.title ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, {
37321
+ textContent && textContent !== preview.google.title ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Button, {
37320
37322
  className: "c-rte-link-preview__replace-text-btn",
37321
37323
  onClick: useTitleForText,
37322
37324
  children: tr("linkPreviewReplaceTextWithTitle")
@@ -37325,7 +37327,7 @@ function LinkPreviewContent({
37325
37327
  });
37326
37328
  }
37327
37329
  function Glimmer(props) {
37328
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", {
37330
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37329
37331
  className: "c-rte-link-preview-glimmer",
37330
37332
  ...props,
37331
37333
  style: {
@@ -37337,29 +37339,29 @@ function Glimmer(props) {
37337
37339
  function LinkPreview({
37338
37340
  url
37339
37341
  }) {
37340
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_react122.Suspense, {
37341
- fallback: /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, {
37342
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_react122.Suspense, {
37343
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, {
37342
37344
  children: [
37343
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Glimmer, {
37345
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Glimmer, {
37344
37346
  style: { height: "80px" },
37345
37347
  index: 0
37346
37348
  }),
37347
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Glimmer, {
37349
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Glimmer, {
37348
37350
  style: { width: "60%" },
37349
37351
  index: 1
37350
37352
  }),
37351
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Glimmer, {
37353
+ /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Glimmer, {
37352
37354
  style: { width: "80%" },
37353
37355
  index: 2
37354
37356
  })
37355
37357
  ]
37356
37358
  }),
37357
- children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(LinkPreviewContent, {
37359
+ children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(LinkPreviewContent, {
37358
37360
  url
37359
37361
  })
37360
37362
  });
37361
37363
  }
37362
- var import_react122, import_lexical7, import_LexicalComposerContext3, import_jsx_runtime138, PREVIEW_CACHE, URL_MATCHER2;
37364
+ var import_react122, import_lexical7, import_LexicalComposerContext3, import_jsx_runtime139, PREVIEW_CACHE, URL_MATCHER2;
37363
37365
  var init_LinkPreview = __esm({
37364
37366
  "src/rich-text-editor/ui/LinkPreview.tsx"() {
37365
37367
  "use strict";
@@ -37368,7 +37370,7 @@ var init_LinkPreview = __esm({
37368
37370
  import_LexicalComposerContext3 = require("@lexical/react/LexicalComposerContext");
37369
37371
  init_button2();
37370
37372
  init_i18n();
37371
- import_jsx_runtime138 = require("react/jsx-runtime");
37373
+ import_jsx_runtime139 = require("react/jsx-runtime");
37372
37374
  PREVIEW_CACHE = {};
37373
37375
  URL_MATCHER2 = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
37374
37376
  }
@@ -37574,42 +37576,42 @@ function FloatingLinkEditor({
37574
37576
  inputRef.current.focus();
37575
37577
  }
37576
37578
  }, [isEditMode]);
37577
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37579
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37578
37580
  ref: editorRef,
37579
37581
  className: "c-rte-link-editor",
37580
37582
  "data-testid": "rich-text-link-editor",
37581
- children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37583
+ children: isEditMode ? /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37582
37584
  children: [
37583
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37585
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37584
37586
  className: "c-rte-link-editor-input-group",
37585
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputWithLabel, {
37587
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(InputWithLabel, {
37586
37588
  label: tr("linkEditorLink"),
37587
37589
  type: "text",
37588
37590
  value: linkUrl,
37589
37591
  onChange: (e) => setLinkUrl(e.target.value)
37590
37592
  })
37591
37593
  }),
37592
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37594
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37593
37595
  className: "c-rte-link-editor-input-group",
37594
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputWithLabel, {
37596
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(InputWithLabel, {
37595
37597
  label: tr("linkEditorRel"),
37596
37598
  type: "text",
37597
37599
  value: rel ?? "",
37598
37600
  onChange: (e) => setRel(e.target.value)
37599
37601
  })
37600
37602
  }),
37601
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37603
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37602
37604
  className: "c-rte-link-editor-input-group",
37603
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(InputWithLabel, {
37605
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(InputWithLabel, {
37604
37606
  label: tr("linkEditorTarget"),
37605
37607
  type: "text",
37606
37608
  value: target ?? "",
37607
37609
  onChange: (e) => setTarget(e.target.value)
37608
37610
  })
37609
37611
  }),
37610
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37612
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37611
37613
  className: "c-rte-link-editor-button-wrap",
37612
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Button, {
37614
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, {
37613
37615
  "data-testid": "link-editor-save-button",
37614
37616
  onClick: () => {
37615
37617
  if (lastSelection !== null) {
@@ -37627,28 +37629,28 @@ function FloatingLinkEditor({
37627
37629
  })
37628
37630
  })
37629
37631
  ]
37630
- }) : /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)(import_jsx_runtime139.Fragment, {
37632
+ }) : /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, {
37631
37633
  children: [
37632
- /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37634
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37633
37635
  className: "c-rte-link-editor-link-input",
37634
37636
  children: [
37635
- /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37637
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37636
37638
  className: "c-rte-link-editor-link-preview",
37637
37639
  children: [
37638
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("a", {
37640
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("a", {
37639
37641
  href: linkUrl,
37640
37642
  target: "_blank",
37641
37643
  rel: "noopener noreferrer",
37642
37644
  children: linkUrl
37643
37645
  }),
37644
- rel || target ? /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", {
37646
+ rel || target ? /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37645
37647
  className: "c-rte-link-editor-preview-attrs",
37646
37648
  children: [
37647
- rel && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37649
+ rel && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37648
37650
  className: "c-rte-link-editor-preview-attr",
37649
37651
  children: rel
37650
37652
  }),
37651
- target && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37653
+ target && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37652
37654
  className: "c-rte-link-editor-preview-attr",
37653
37655
  children: target
37654
37656
  })
@@ -37656,21 +37658,21 @@ function FloatingLinkEditor({
37656
37658
  }) : null
37657
37659
  ]
37658
37660
  }),
37659
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37660
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(IconButton, {
37661
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37662
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37661
37663
  size: "sm",
37662
37664
  tabIndex: 0,
37663
37665
  onMouseDown: (event) => event.preventDefault(),
37664
37666
  onClick: () => setEditMode(true),
37665
37667
  "aria-label": tr("linkEditorEdit"),
37666
37668
  "data-testid": "link-editor-edit",
37667
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(Icon.Edit, {})
37669
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Icon.Edit, {})
37668
37670
  })
37669
37671
  })
37670
37672
  ]
37671
37673
  }),
37672
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", {
37673
- children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(LinkPreview, {
37674
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", {
37675
+ children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(LinkPreview, {
37674
37676
  url: linkUrl
37675
37677
  })
37676
37678
  })
@@ -37706,7 +37708,7 @@ function useFloatingLinkEditorToolbar(editor, anchorElem) {
37706
37708
  );
37707
37709
  }, [editor, updateToolbar]);
37708
37710
  return isLink ? (0, import_react_dom3.createPortal)(
37709
- /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(FloatingLinkEditor, {
37711
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(FloatingLinkEditor, {
37710
37712
  editor: activeEditor,
37711
37713
  isLink,
37712
37714
  anchorElem,
@@ -37721,7 +37723,7 @@ function FloatingLinkEditorPlugin({
37721
37723
  const [editor] = (0, import_LexicalComposerContext4.useLexicalComposerContext)();
37722
37724
  return useFloatingLinkEditorToolbar(editor, anchorElem);
37723
37725
  }
37724
- var import_react123, React5, import_lexical8, import_react_dom3, import_link4, import_LexicalComposerContext4, import_utils, import_jsx_runtime139;
37726
+ var import_react123, React5, import_lexical8, import_react_dom3, import_link4, import_LexicalComposerContext4, import_utils, import_jsx_runtime140;
37725
37727
  var init_FloatingLinkEditorPlugin = __esm({
37726
37728
  "src/rich-text-editor/plugins/FloatingLinkEditorPlugin/index.tsx"() {
37727
37729
  "use strict";
@@ -37741,7 +37743,7 @@ var init_FloatingLinkEditorPlugin = __esm({
37741
37743
  init_getSelectedNode();
37742
37744
  init_setFloatingElemPosition();
37743
37745
  init_url();
37744
- import_jsx_runtime139 = require("react/jsx-runtime");
37746
+ import_jsx_runtime140 = require("react/jsx-runtime");
37745
37747
  }
37746
37748
  });
37747
37749
 
@@ -37868,93 +37870,93 @@ function TextFormatFloatingToolbar({
37868
37870
  );
37869
37871
  }, [editor, updateTextFormatFloatingToolbar]);
37870
37872
  if (!editor.isEditable()) {
37871
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("span", {});
37873
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("span", {});
37872
37874
  }
37873
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
37875
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", {
37874
37876
  ref: popupCharStylesEditorRef,
37875
37877
  className: "c-rte-floating-text-format-tb-plugin",
37876
37878
  children: [
37877
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37879
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37878
37880
  onClick: () => {
37879
37881
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "bold");
37880
37882
  },
37881
37883
  style: { padding: 0, overflow: "hidden" },
37882
37884
  title: tr(IS_APPLE ? "actionFormatAsStrongTitleApple" : "actionFormatAsStrongTitle"),
37883
37885
  "aria-label": tr("actionFormatAsStrongLabel"),
37884
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37886
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37885
37887
  className: `c-rte-icon-bold c-rte-floating-text-format-tb-plugin__format-icon ${isBold ? "selected" : ""}`
37886
37888
  })
37887
37889
  }),
37888
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37890
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37889
37891
  style: { padding: 0, overflow: "hidden" },
37890
37892
  onClick: () => {
37891
37893
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "italic");
37892
37894
  },
37893
37895
  title: tr("actionFormatAsEmphasizedTitle"),
37894
37896
  "aria-label": tr("actionFormatAsEmphasizedLabel"),
37895
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37897
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37896
37898
  className: `c-rte-icon-italic c-rte-floating-text-format-tb-plugin__format-icon ${isItalic ? "selected" : ""}`
37897
37899
  })
37898
37900
  }),
37899
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37901
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37900
37902
  style: { padding: 0, overflow: "hidden" },
37901
37903
  onClick: () => {
37902
37904
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "underline");
37903
37905
  },
37904
37906
  title: tr("actionFormatAsUnderlinedTitle"),
37905
37907
  "aria-label": tr("actionFormatAsUnderlinedLabel"),
37906
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37908
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37907
37909
  className: `c-rte-icon-underline c-rte-floating-text-format-tb-plugin__format-icon ${isUnderline ? "selected" : ""}`
37908
37910
  })
37909
37911
  }),
37910
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37912
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37911
37913
  style: { padding: 0, overflow: "hidden" },
37912
37914
  onClick: () => {
37913
37915
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "code");
37914
37916
  },
37915
37917
  "aria-label": tr("actionInsertCodeBlock"),
37916
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37918
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37917
37919
  className: `c-rte-icon-code c-rte-floating-text-format-tb-plugin__format-icon ${isCode ? "selected" : ""}`
37918
37920
  })
37919
37921
  }),
37920
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37922
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37921
37923
  style: { padding: 0, overflow: "hidden" },
37922
37924
  onClick: insertLink,
37923
37925
  "aria-label": tr("actionInsertlink"),
37924
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37926
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37925
37927
  className: `c-rte-icon-link c-rte-floating-text-format-tb-plugin__format-icon ${isLink ? "selected" : ""}`
37926
37928
  })
37927
37929
  }),
37928
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37930
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37929
37931
  style: { padding: 0, overflow: "hidden" },
37930
37932
  onClick: () => {
37931
37933
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "strikethrough");
37932
37934
  },
37933
37935
  title: tr("actionFormatWithStrikethroughTitle"),
37934
37936
  "aria-label": tr("actionFormatWithStrikethroughLabel"),
37935
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37937
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37936
37938
  className: `c-rte-icon-strikethrough c-rte-floating-text-format-tb-plugin__format-icon ${isStrikethrough ? "selected" : ""}`
37937
37939
  })
37938
37940
  }),
37939
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37941
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37940
37942
  style: { padding: 0, overflow: "hidden" },
37941
37943
  onClick: () => {
37942
37944
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "subscript");
37943
37945
  },
37944
37946
  title: tr("actionFormatWithSubscriptTitle"),
37945
37947
  "aria-label": tr("actionFormatWithSubscriptLabel"),
37946
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37948
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37947
37949
  className: `c-rte-icon-subscript c-rte-floating-text-format-tb-plugin__format-icon ${isSubscript ? "selected" : ""}`
37948
37950
  })
37949
37951
  }),
37950
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(IconButton, {
37952
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, {
37951
37953
  style: { padding: 0, overflow: "hidden" },
37952
37954
  onClick: () => {
37953
37955
  editor.dispatchCommand(import_lexical9.FORMAT_TEXT_COMMAND, "superscript");
37954
37956
  },
37955
37957
  title: tr("actionFormatWithSuperscriptTitle"),
37956
37958
  "aria-label": tr("actionFormatWithSuperscriptLabel"),
37957
- children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("i", {
37959
+ children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("i", {
37958
37960
  className: `c-rte-icon-superscript c-rte-floating-text-format-tb-plugin__format-icon ${isSuperscript ? "selected" : ""}`
37959
37961
  })
37960
37962
  })
@@ -38029,7 +38031,7 @@ function useFloatingTextFormatToolbar(editor, anchorElem) {
38029
38031
  return null;
38030
38032
  }
38031
38033
  return (0, import_react_dom4.createPortal)(
38032
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(TextFormatFloatingToolbar, {
38034
+ /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(TextFormatFloatingToolbar, {
38033
38035
  editor,
38034
38036
  anchorElem,
38035
38037
  isLink,
@@ -38050,7 +38052,7 @@ function FloatingTextFormatToolbarPlugin({
38050
38052
  const [editor] = (0, import_LexicalComposerContext5.useLexicalComposerContext)();
38051
38053
  return useFloatingTextFormatToolbar(editor, anchorElem);
38052
38054
  }
38053
- var import_react124, React6, import_lexical9, import_react_dom4, import_code8, import_link5, import_LexicalComposerContext5, import_utils2, import_jsx_runtime140;
38055
+ var import_react124, React6, import_lexical9, import_react_dom4, import_code8, import_link5, import_LexicalComposerContext5, import_utils2, import_jsx_runtime141;
38054
38056
  var init_FloatingTextFormatToolbarPlugin = __esm({
38055
38057
  "src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.tsx"() {
38056
38058
  "use strict";
@@ -38069,24 +38071,24 @@ var init_FloatingTextFormatToolbarPlugin = __esm({
38069
38071
  init_getDOMRangeRect();
38070
38072
  init_getSelectedNode();
38071
38073
  init_setFloatingElemPosition();
38072
- import_jsx_runtime140 = require("react/jsx-runtime");
38074
+ import_jsx_runtime141 = require("react/jsx-runtime");
38073
38075
  }
38074
38076
  });
38075
38077
 
38076
38078
  // src/rich-text-editor/plugins/LinkPlugin/index.tsx
38077
38079
  function LinkPlugin() {
38078
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_LexicalLinkPlugin.LinkPlugin, {
38080
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_LexicalLinkPlugin.LinkPlugin, {
38079
38081
  validateUrl
38080
38082
  });
38081
38083
  }
38082
- var React7, import_LexicalLinkPlugin, import_jsx_runtime141;
38084
+ var React7, import_LexicalLinkPlugin, import_jsx_runtime142;
38083
38085
  var init_LinkPlugin = __esm({
38084
38086
  "src/rich-text-editor/plugins/LinkPlugin/index.tsx"() {
38085
38087
  "use strict";
38086
38088
  React7 = require("react");
38087
38089
  import_LexicalLinkPlugin = require("@lexical/react/LexicalLinkPlugin");
38088
38090
  init_url();
38089
- import_jsx_runtime141 = require("react/jsx-runtime");
38091
+ import_jsx_runtime142 = require("react/jsx-runtime");
38090
38092
  }
38091
38093
  });
38092
38094
 
@@ -38427,46 +38429,46 @@ function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
38427
38429
  clearTableSelection();
38428
38430
  });
38429
38431
  }, [editor, tableCellNode, clearTableSelection]);
38430
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, {
38432
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, {
38431
38433
  children: [
38432
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38434
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38433
38435
  onSelect: () => insertTableRowAtSelection(false),
38434
38436
  children: tr("actionTableInsertRowsAbove", selectionCounts.rows)
38435
38437
  }),
38436
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38438
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38437
38439
  onSelect: () => insertTableRowAtSelection(true),
38438
38440
  children: tr("actionTableInsertRowsBelow", selectionCounts.rows)
38439
38441
  }),
38440
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38442
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38441
38443
  onSelect: () => insertTableColumnAtSelection(false),
38442
38444
  children: tr("actionTableInsertColumnsBefore", selectionCounts.columns)
38443
38445
  }),
38444
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38446
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38445
38447
  onSelect: () => insertTableColumnAtSelection(true),
38446
38448
  children: tr("actionTableInsertColumnsAfter", selectionCounts.columns)
38447
38449
  }),
38448
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38450
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38449
38451
  onSelect: () => toggleTableRowIsHeader(),
38450
38452
  children: tr(
38451
38453
  (tableCellNode.__headerState & import_table4.TableCellHeaderStates.ROW) === import_table4.TableCellHeaderStates.ROW ? "actionTableRemoveRowHeader" : "actionTableAddRowHeader"
38452
38454
  )
38453
38455
  }),
38454
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38456
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38455
38457
  onSelect: () => toggleTableColumnIsHeader(),
38456
38458
  children: tr(
38457
38459
  (tableCellNode.__headerState & import_table4.TableCellHeaderStates.COLUMN) === import_table4.TableCellHeaderStates.COLUMN ? "actionTableRemoveColumnHeader" : "actionTableAddColumnHeader"
38458
38460
  )
38459
38461
  }),
38460
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Separator, {}),
38461
- tableStats.columns > 1 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38462
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Separator, {}),
38463
+ tableStats.columns > 1 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38462
38464
  onSelect: () => deleteTableColumnAtSelection(),
38463
38465
  children: tr("actionTableDeleteColumn")
38464
38466
  }),
38465
- tableStats.rows > 1 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38467
+ tableStats.rows > 1 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38466
38468
  onSelect: () => deleteTableRowAtSelection(),
38467
38469
  children: tr("actionTableDeleteRow")
38468
38470
  }),
38469
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Item, {
38471
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Item, {
38470
38472
  onSelect: () => deleteTableAtSelection(),
38471
38473
  children: tr("actionTableDeleteTable")
38472
38474
  })
@@ -38548,19 +38550,19 @@ function TableCellActionMenuContainer({ anchorElem }) {
38548
38550
  }
38549
38551
  }
38550
38552
  }, [menuButtonRef, tableCellNode, editor, anchorElem]);
38551
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", {
38553
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
38552
38554
  className: "c-rte-table-cell-action-button-container",
38553
38555
  ref: menuButtonRef,
38554
- children: tableCellNode != null && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DropdownMenu.Root, {
38556
+ children: tableCellNode != null && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(DropdownMenu.Root, {
38555
38557
  onOpenChange: (isOpen) => setIsMenuOpen(isOpen),
38556
- content: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(TableActionMenu, {
38558
+ content: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(TableActionMenu, {
38557
38559
  tableCellNode,
38558
38560
  tableStats
38559
38561
  }),
38560
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(IconButton, {
38562
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(IconButton, {
38561
38563
  size: "xs",
38562
38564
  "aria-label": tr("actionTableOpenOptions"),
38563
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Icon.Arrow, {})
38565
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Icon.Arrow, {})
38564
38566
  })
38565
38567
  })
38566
38568
  });
@@ -38569,11 +38571,11 @@ function TableActionMenuPlugin({
38569
38571
  anchorElem = document.body
38570
38572
  }) {
38571
38573
  const isEditable = (0, import_useLexicalEditable.default)();
38572
- return (0, import_react_dom5.createPortal)(isEditable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(TableCellActionMenuContainer, {
38574
+ return (0, import_react_dom5.createPortal)(isEditable ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(TableCellActionMenuContainer, {
38573
38575
  anchorElem
38574
38576
  }) : null, anchorElem);
38575
38577
  }
38576
- var import_react128, import_lexical13, import_react_dom5, import_LexicalComposerContext9, import_useLexicalEditable, import_table4, import_jsx_runtime142;
38578
+ var import_react128, import_lexical13, import_react_dom5, import_LexicalComposerContext9, import_useLexicalEditable, import_table4, import_jsx_runtime143;
38577
38579
  var init_TableActionMenuPlugin = __esm({
38578
38580
  "src/rich-text-editor/plugins/TableActionMenuPlugin/index.tsx"() {
38579
38581
  "use strict";
@@ -38587,7 +38589,7 @@ var init_TableActionMenuPlugin = __esm({
38587
38589
  init_icon_button2();
38588
38590
  init_iconography();
38589
38591
  init_i18n();
38590
- import_jsx_runtime142 = require("react/jsx-runtime");
38592
+ import_jsx_runtime143 = require("react/jsx-runtime");
38591
38593
  }
38592
38594
  });
38593
38595
 
@@ -38603,19 +38605,19 @@ async function copyJson(editor) {
38603
38605
  function ActionsPlugin({ append, prepend, disabled }) {
38604
38606
  const [editor] = (0, import_LexicalComposerContext10.useLexicalComposerContext)();
38605
38607
  const tr = useTr();
38606
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(ActionMenu, {
38608
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(ActionMenu, {
38607
38609
  children: [
38608
- !prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ActionMenu.Item, {
38610
+ !prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(ActionMenu.Item, {
38609
38611
  onSelect: actionItem.action,
38610
38612
  className: actionItem.type === "danger" ? "danger" : "",
38611
38613
  disabled: actionItem.disabled,
38612
38614
  children: actionItem.title
38613
38615
  }, actionItem.title)),
38614
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ActionMenu.Item, {
38616
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(ActionMenu.Item, {
38615
38617
  onSelect: () => copyJson(editor),
38616
38618
  children: tr("actionCopyJSON")
38617
38619
  }),
38618
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ActionMenu.Item, {
38620
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(ActionMenu.Item, {
38619
38621
  disabled,
38620
38622
  className: "danger",
38621
38623
  onSelect: () => {
@@ -38624,7 +38626,7 @@ function ActionsPlugin({ append, prepend, disabled }) {
38624
38626
  },
38625
38627
  children: tr("actionClear")
38626
38628
  }),
38627
- !append ? null : append.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ActionMenu.Item, {
38629
+ !append ? null : append.map((actionItem) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(ActionMenu.Item, {
38628
38630
  onSelect: actionItem.action,
38629
38631
  className: actionItem.type === "danger" ? "danger" : "",
38630
38632
  disabled: actionItem.disabled,
@@ -38633,7 +38635,7 @@ function ActionsPlugin({ append, prepend, disabled }) {
38633
38635
  ]
38634
38636
  });
38635
38637
  }
38636
- var import_lexical14, import_LexicalComposerContext10, import_jsx_runtime143;
38638
+ var import_lexical14, import_LexicalComposerContext10, import_jsx_runtime144;
38637
38639
  var init_ActionsPlugin = __esm({
38638
38640
  "src/rich-text-editor/plugins/ActionsPlugin/index.tsx"() {
38639
38641
  "use strict";
@@ -38642,7 +38644,7 @@ var init_ActionsPlugin = __esm({
38642
38644
  init_action_menu2();
38643
38645
  init_i18n();
38644
38646
  init_lexical_to_crystallize();
38645
- import_jsx_runtime143 = require("react/jsx-runtime");
38647
+ import_jsx_runtime144 = require("react/jsx-runtime");
38646
38648
  }
38647
38649
  });
38648
38650
 
@@ -38664,13 +38666,13 @@ function InsertTableDialog({ activeEditor }) {
38664
38666
  }
38665
38667
  });
38666
38668
  };
38667
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", {
38669
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
38668
38670
  className: "c-rte-insert-table",
38669
38671
  children: [
38670
- /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", {
38672
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
38671
38673
  className: "c-rte-insert-table__dimensions",
38672
38674
  children: [
38673
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(InputWithLabel, {
38675
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(InputWithLabel, {
38674
38676
  label: tr("insertTableRows"),
38675
38677
  value: rows,
38676
38678
  placeholder: "0",
@@ -38678,10 +38680,10 @@ function InsertTableDialog({ activeEditor }) {
38678
38680
  inputMode: "numeric",
38679
38681
  onChange: (e) => setRows(e.target.value)
38680
38682
  }),
38681
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", {
38683
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38682
38684
  className: "c-rte-insert-table__dimensions__separator"
38683
38685
  }),
38684
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(InputWithLabel, {
38686
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(InputWithLabel, {
38685
38687
  type: "text",
38686
38688
  label: tr("insertTableColumns"),
38687
38689
  placeholder: "0",
@@ -38691,9 +38693,9 @@ function InsertTableDialog({ activeEditor }) {
38691
38693
  })
38692
38694
  ]
38693
38695
  }),
38694
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("div", {
38696
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("div", {
38695
38697
  className: "c-rte-insert-table__actions",
38696
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(Button, {
38698
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Button, {
38697
38699
  as: Dialog.Close,
38698
38700
  size: "sm",
38699
38701
  intent: "action",
@@ -38705,7 +38707,7 @@ function InsertTableDialog({ activeEditor }) {
38705
38707
  ]
38706
38708
  });
38707
38709
  }
38708
- var import_react129, import_table5, import_jsx_runtime144;
38710
+ var import_react129, import_table5, import_jsx_runtime145;
38709
38711
  var init_insert_table = __esm({
38710
38712
  "src/rich-text-editor/plugins/ToolbarPlugin/insert-table.tsx"() {
38711
38713
  "use strict";
@@ -38715,7 +38717,7 @@ var init_insert_table = __esm({
38715
38717
  init_dialog2();
38716
38718
  init_input_with_label2();
38717
38719
  init_i18n();
38718
- import_jsx_runtime144 = require("react/jsx-runtime");
38720
+ import_jsx_runtime145 = require("react/jsx-runtime");
38719
38721
  }
38720
38722
  });
38721
38723
 
@@ -38804,80 +38806,80 @@ function BlockFormatDropDown({
38804
38806
  });
38805
38807
  }
38806
38808
  };
38807
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Root, {
38809
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Root, {
38808
38810
  disabled,
38809
38811
  style: { zIndex: 1 },
38810
- content: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, {
38812
+ content: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
38811
38813
  children: [
38812
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38814
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38813
38815
  onClick: formatParagraph,
38814
38816
  children: [
38815
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38817
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38816
38818
  className: `c-rte-icon-paragraph c-rte-toolbar__block-format__icon ${blockType === "paragraph" ? "selected" : ""}`
38817
38819
  }),
38818
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38820
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38819
38821
  className: `c-rte-toolbar__block-format__text ${blockType === "paragraph" ? "selected" : ""}`,
38820
38822
  children: "Normal"
38821
38823
  })
38822
38824
  ]
38823
38825
  }),
38824
- headings.map((headingSize) => /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38826
+ headings.map((headingSize) => /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38825
38827
  onClick: () => formatHeading(headingSize),
38826
38828
  children: [
38827
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38829
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38828
38830
  className: `c-rte-icon-${headingSize} c-rte-toolbar__block-format__icon ${blockType === headingSize ? "selected" : ""}`
38829
38831
  }),
38830
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38832
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38831
38833
  className: `c-rte-toolbar__block-format__text ${blockType === headingSize ? "selected" : ""}`,
38832
38834
  children: headingTypeToBlockName[headingSize]
38833
38835
  })
38834
38836
  ]
38835
38837
  }, headingSize)),
38836
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38838
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38837
38839
  onClick: formatBulletList,
38838
38840
  children: [
38839
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38841
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38840
38842
  className: `c-rte-icon-bullet-list c-rte-toolbar__block-format__icon ${blockType === "bullet" ? "selected" : ""}`
38841
38843
  }),
38842
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38844
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38843
38845
  className: `c-rte-toolbar__block-format__text ${blockType === "bullet" ? "selected" : ""}`,
38844
38846
  children: "Bullet List"
38845
38847
  })
38846
38848
  ]
38847
38849
  }),
38848
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38850
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38849
38851
  onClick: formatNumberedList,
38850
38852
  children: [
38851
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38853
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38852
38854
  className: `c-rte-icon-numbered-list c-rte-toolbar__block-format__icon ${blockType === "number" ? "selected" : ""}`
38853
38855
  }),
38854
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38856
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38855
38857
  className: `c-rte-toolbar__block-format__text ${blockType === "number" ? "selected" : ""}`,
38856
38858
  children: "Numbered List"
38857
38859
  })
38858
38860
  ]
38859
38861
  }),
38860
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38862
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38861
38863
  onClick: formatQuote,
38862
38864
  "data-testid": "toggle-block-format-quote",
38863
38865
  children: [
38864
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38866
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38865
38867
  className: `c-rte-icon-quote c-rte-toolbar__block-format__icon ${blockType === "quote" ? "selected" : ""}`
38866
38868
  }),
38867
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38869
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38868
38870
  className: `c-rte-toolbar__block-format__text ${blockType === "quote" ? "selected" : ""}`,
38869
38871
  children: "Quote"
38870
38872
  })
38871
38873
  ]
38872
38874
  }),
38873
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
38875
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
38874
38876
  onClick: formatCode,
38875
38877
  "data-testid": "toggle-block-format-code",
38876
38878
  children: [
38877
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38879
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38878
38880
  className: `icon c-rte-icon-code c-rte-toolbar__block-format__icon ${blockType === "code" ? "selected" : ""}`
38879
38881
  }),
38880
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
38882
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
38881
38883
  className: `c-rte-toolbar__block-format__text ${blockType === "code" ? "selected" : ""}`,
38882
38884
  children: "Code block"
38883
38885
  })
@@ -38885,21 +38887,21 @@ function BlockFormatDropDown({
38885
38887
  })
38886
38888
  ]
38887
38889
  }),
38888
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(Button, {
38890
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(Button, {
38889
38891
  style: { backgroundColor: "transparent", padding: "0 8px" },
38890
38892
  "aria-label": "Formatting options for text style",
38891
38893
  "data-testid": "toggle-block-format",
38892
38894
  children: [
38893
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
38895
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
38894
38896
  className: `c-rte-toolbar__toggle-icon c-rte-icon-${blockType}`
38895
38897
  }),
38896
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon.Arrow, {})
38898
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon.Arrow, {})
38897
38899
  ]
38898
38900
  })
38899
38901
  });
38900
38902
  }
38901
38903
  function Divider() {
38902
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("div", {
38904
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
38903
38905
  className: "c-rte-toolbar__divider"
38904
38906
  });
38905
38907
  }
@@ -39049,13 +39051,13 @@ function ToolbarPlugin({
39049
39051
  },
39050
39052
  [activeEditor, selectedElementKey]
39051
39053
  );
39052
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
39054
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
39053
39055
  className: "c-rte-toolbar",
39054
39056
  children: [
39055
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
39057
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
39056
39058
  className: "c-rte-toolbar__inner",
39057
39059
  children: [
39058
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39060
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39059
39061
  disabled: !canUndo || !isEditable,
39060
39062
  onClick: () => {
39061
39063
  activeEditor.dispatchCommand(import_lexical15.UNDO_COMMAND, void 0);
@@ -39064,12 +39066,12 @@ function ToolbarPlugin({
39064
39066
  title: tr(IS_APPLE ? "actionUndoTitleApple" : "actionUndoTitle"),
39065
39067
  "aria-label": tr("actionUndoLabel"),
39066
39068
  "data-testid": "rich-text-undo-button",
39067
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39069
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39068
39070
  className: `c-rte-icon-undo c-rte-toolbar__icon ${!canUndo ? "disabled" : ""}
39069
39071
  `
39070
39072
  })
39071
39073
  }),
39072
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39074
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39073
39075
  disabled: !canRedo || !isEditable,
39074
39076
  onClick: () => {
39075
39077
  activeEditor.dispatchCommand(import_lexical15.REDO_COMMAND, void 0);
@@ -39077,51 +39079,51 @@ function ToolbarPlugin({
39077
39079
  type: "button",
39078
39080
  title: tr(IS_APPLE ? "actionRedoTitleApple" : "actionRedoTitle"),
39079
39081
  "aria-label": tr("actionRedoLabel"),
39080
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39082
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39081
39083
  className: `c-rte-icon-redo c-rte-toolbar__icon ${!canRedo ? "disabled" : ""}`
39082
39084
  })
39083
39085
  }),
39084
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Divider, {}),
39085
- blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, {
39086
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Divider, {}),
39087
+ blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
39086
39088
  children: [
39087
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(BlockFormatDropDown, {
39089
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(BlockFormatDropDown, {
39088
39090
  disabled: !isEditable,
39089
39091
  blockType,
39090
39092
  editor
39091
39093
  }),
39092
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Divider, {})
39094
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Divider, {})
39093
39095
  ]
39094
39096
  }),
39095
- blockType === "code" ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_jsx_runtime145.Fragment, {
39096
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Root, {
39097
+ blockType === "code" ? /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_jsx_runtime146.Fragment, {
39098
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Root, {
39097
39099
  disabled: !isEditable,
39098
39100
  style: { zIndex: 1 },
39099
- content: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_jsx_runtime145.Fragment, {
39101
+ content: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_jsx_runtime146.Fragment, {
39100
39102
  children: CODE_LANGUAGE_OPTIONS.map(([value, name]) => {
39101
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Item, {
39103
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
39102
39104
  className: `item ${dropDownActiveClass(value === codeLanguage)}`,
39103
39105
  onClick: () => onCodeLanguageSelect(value),
39104
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39106
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39105
39107
  className: `c-rte-toolbar__code-lang__sel-item ${dropDownActiveClass(value === codeLanguage) ? "selected" : ""}`,
39106
39108
  children: name
39107
39109
  })
39108
39110
  }, value);
39109
39111
  })
39110
39112
  }),
39111
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Button, {
39113
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Button, {
39112
39114
  "aria-label": tr("codeSelectLanguage"),
39113
- append: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon.Arrow, {}),
39114
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39115
+ append: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon.Arrow, {}),
39116
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39115
39117
  className: "c-rte-toolbar__code-lang__button-text",
39116
39118
  children: (0, import_code9.getLanguageFriendlyName)(codeLanguage)
39117
39119
  })
39118
39120
  })
39119
39121
  })
39120
- }) : /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Dialog, {
39121
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
39122
+ }) : /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Dialog, {
39123
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
39122
39124
  className: "c-rte-toolbar__actions-rest",
39123
39125
  children: [
39124
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39126
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39125
39127
  disabled: !isEditable,
39126
39128
  className: `c-rte-toolbar__icon-btn ${isBold ? "selected" : ""}`,
39127
39129
  type: "button",
@@ -39131,11 +39133,11 @@ function ToolbarPlugin({
39131
39133
  onClick: () => {
39132
39134
  activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "bold");
39133
39135
  },
39134
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39136
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39135
39137
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-bold`
39136
39138
  })
39137
39139
  }),
39138
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39140
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39139
39141
  className: `c-rte-toolbar__icon-btn ${isItalic ? "selected" : ""}`,
39140
39142
  disabled: !isEditable,
39141
39143
  onClick: () => {
@@ -39145,11 +39147,11 @@ function ToolbarPlugin({
39145
39147
  title: tr(IS_APPLE ? "actionFormatAsEmphasizedTitleApple" : "actionFormatAsEmphasizedTitle"),
39146
39148
  "aria-label": tr("actionFormatAsEmphasizedLabel"),
39147
39149
  "data-testid": "toggle-format-emphasized",
39148
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39150
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39149
39151
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-italic`
39150
39152
  })
39151
39153
  }),
39152
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39154
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39153
39155
  className: `c-rte-toolbar__icon-btn ${isUnderline ? "selected" : ""}`,
39154
39156
  disabled: !isEditable,
39155
39157
  onClick: () => {
@@ -39159,11 +39161,11 @@ function ToolbarPlugin({
39159
39161
  title: tr(IS_APPLE ? "actionFormatAsUnderlinedTitleApple" : "actionFormatAsUnderlinedTitle"),
39160
39162
  "aria-label": tr("actionFormatAsUnderlinedLabel"),
39161
39163
  "data-testid": "toggle-format-underlined",
39162
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39164
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39163
39165
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-underline`
39164
39166
  })
39165
39167
  }),
39166
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39168
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39167
39169
  className: `c-rte-toolbar__icon-btn ${isCode ? "selected" : ""}`,
39168
39170
  disabled: !isEditable,
39169
39171
  onClick: () => {
@@ -39173,82 +39175,82 @@ function ToolbarPlugin({
39173
39175
  title: tr("actionInsertCodeBlock"),
39174
39176
  "aria-label": tr("actionInsertCodeBlock"),
39175
39177
  "data-testid": "toggle-format-code",
39176
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39178
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39177
39179
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-code`
39178
39180
  })
39179
39181
  }),
39180
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39182
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39181
39183
  className: `c-rte-toolbar__icon-btn ${isLink ? "selected" : ""}`,
39182
39184
  disabled: !isEditable,
39183
39185
  onClick: insertLink,
39184
39186
  type: "button",
39185
39187
  "aria-label": tr("actionInsertlink"),
39186
39188
  title: tr("actionInsertlink"),
39187
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39189
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39188
39190
  className: `c-rte-toolbar__icon-btn__icon c-rte-icon-link`
39189
39191
  })
39190
39192
  }),
39191
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Root, {
39193
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Root, {
39192
39194
  disabled: !isEditable,
39193
39195
  style: { zIndex: 1 },
39194
- content: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, {
39196
+ content: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
39195
39197
  children: [
39196
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
39198
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
39197
39199
  disabled: !isEditable,
39198
39200
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "strikethrough"),
39199
39201
  title: tr("actionFormatWithStrikethroughTitle"),
39200
39202
  "aria-label": tr("actionFormatWithStrikethroughLabel"),
39201
39203
  children: [
39202
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39204
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39203
39205
  className: `c-rte-icon-strikethrough c-rte-toolbar__dd-item__icon ${isStrikethrough ? "selected" : ""}`
39204
39206
  }),
39205
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39207
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39206
39208
  className: `c-rte-toolbar__dd-item__text ${isStrikethrough ? "selected" : ""}`,
39207
39209
  children: tr("actionFormatWithStrikethroughTitle")
39208
39210
  })
39209
39211
  ]
39210
39212
  }),
39211
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
39213
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
39212
39214
  disabled: !isEditable,
39213
39215
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "subscript"),
39214
39216
  title: tr("actionFormatWithSubscriptTitle"),
39215
39217
  "aria-label": tr("actionFormatWithSubscriptLabel"),
39216
39218
  children: [
39217
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39219
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39218
39220
  className: `c-rte-icon-subscript c-rte-toolbar__dd-item__icon ${isSubscript ? "selected" : ""}`
39219
39221
  }),
39220
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39222
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39221
39223
  className: `c-rte-toolbar__dd-item__text ${isSubscript ? "selected" : ""}`,
39222
39224
  children: tr("actionFormatWithSubscriptTitle")
39223
39225
  })
39224
39226
  ]
39225
39227
  }),
39226
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
39228
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
39227
39229
  disabled: !isEditable,
39228
39230
  onClick: () => activeEditor.dispatchCommand(import_lexical15.FORMAT_TEXT_COMMAND, "superscript"),
39229
39231
  title: tr("actionFormatWithSuperscriptTitle"),
39230
39232
  "aria-label": tr("actionFormatWithSuperscriptLabel"),
39231
39233
  children: [
39232
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39234
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39233
39235
  className: `c-rte-icon-superscript c-rte-toolbar__dd-item__icon ${isSuperscript ? "selected" : ""}`
39234
39236
  }),
39235
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39237
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39236
39238
  className: `c-rte-toolbar__dd-item__text ${isSuperscript ? "selected" : ""}`,
39237
39239
  children: tr("actionFormatWithSuperscriptTitle")
39238
39240
  })
39239
39241
  ]
39240
39242
  }),
39241
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
39243
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
39242
39244
  disabled: !isEditable,
39243
39245
  onClick: clearFormatting,
39244
39246
  className: "item",
39245
39247
  title: tr("actionClearTextFormatting"),
39246
39248
  "aria-label": tr("actionClearTextFormatting"),
39247
39249
  children: [
39248
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39250
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39249
39251
  className: "c-rte-icon-clear c-rte-toolbar__dd-item__icon"
39250
39252
  }),
39251
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39253
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39252
39254
  className: "c-rte-toolbar__dd-item__text--clear",
39253
39255
  children: tr("actionFormatClear")
39254
39256
  })
@@ -39256,47 +39258,47 @@ function ToolbarPlugin({
39256
39258
  })
39257
39259
  ]
39258
39260
  }),
39259
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(Button, {
39261
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(Button, {
39260
39262
  style: { backgroundColor: "transparent", padding: "0 8px" },
39261
39263
  "aria-label": tr("actionTextFormattingOptions"),
39262
39264
  children: [
39263
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39265
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39264
39266
  className: `c-rte-icon-dropdown-more c-rte-toolbar__toggle-icon`
39265
39267
  }),
39266
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon.Arrow, {})
39268
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon.Arrow, {})
39267
39269
  ]
39268
39270
  })
39269
39271
  }),
39270
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Divider, {}),
39271
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Root, {
39272
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Divider, {}),
39273
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Root, {
39272
39274
  style: { zIndex: 1 },
39273
39275
  disabled: !isEditable,
39274
- content: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, {
39276
+ content: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
39275
39277
  children: [
39276
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(DropdownMenu.Item, {
39278
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(DropdownMenu.Item, {
39277
39279
  onClick: () => {
39278
39280
  activeEditor.dispatchCommand(import_LexicalHorizontalRuleNode4.INSERT_HORIZONTAL_RULE_COMMAND, void 0);
39279
39281
  },
39280
39282
  children: [
39281
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39283
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39282
39284
  className: "c-rte-toolbar__dd-item__icon c-rte-icon-horizontal-rule"
39283
39285
  }),
39284
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39286
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39285
39287
  className: "c-rte-toolbar__dd-item__text",
39286
39288
  children: tr("horizontalRule")
39287
39289
  })
39288
39290
  ]
39289
39291
  }),
39290
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(DropdownMenu.Item, {
39291
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Dialog.Trigger, {
39292
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(DropdownMenu.Item, {
39293
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Dialog.Trigger, {
39292
39294
  asChild: true,
39293
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", {
39295
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
39294
39296
  className: "c-rte-toolbar__dd-item--table",
39295
39297
  children: [
39296
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39298
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39297
39299
  className: "c-rte-toolbar__dd-item__icon c-rte-icon-table"
39298
39300
  }),
39299
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", {
39301
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", {
39300
39302
  className: "c-rte-toolbar__dd-item__text",
39301
39303
  children: tr("table")
39302
39304
  })
@@ -39306,21 +39308,21 @@ function ToolbarPlugin({
39306
39308
  })
39307
39309
  ]
39308
39310
  }),
39309
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(IconButton, {
39310
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("i", {
39311
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(IconButton, {
39312
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("i", {
39311
39313
  className: "c-rte-icon-plus c-rte-toolbar__plus"
39312
39314
  })
39313
39315
  })
39314
39316
  }),
39315
- /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(Dialog.Content, {
39317
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(Dialog.Content, {
39316
39318
  children: [
39317
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Dialog.Title, {
39319
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Dialog.Title, {
39318
39320
  children: tr("insertTableTitle")
39319
39321
  }),
39320
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Dialog.Description, {
39322
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Dialog.Description, {
39321
39323
  children: tr("insertTableDescription")
39322
39324
  }),
39323
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(InsertTableDialog, {
39325
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(InsertTableDialog, {
39324
39326
  activeEditor
39325
39327
  })
39326
39328
  ]
@@ -39330,7 +39332,7 @@ function ToolbarPlugin({
39330
39332
  })
39331
39333
  ]
39332
39334
  }),
39333
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(ActionsPlugin, {
39335
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ActionsPlugin, {
39334
39336
  disabled,
39335
39337
  prepend: actionsMenuPrepend,
39336
39338
  append: actionsMenuAppend
@@ -39338,7 +39340,7 @@ function ToolbarPlugin({
39338
39340
  ]
39339
39341
  });
39340
39342
  }
39341
- var import_react130, import_lexical15, import_code9, import_link6, import_list5, import_LexicalComposerContext11, import_LexicalDecoratorBlockNode, import_LexicalHorizontalRuleNode4, import_rich_text5, import_selection4, import_utils4, import_jsx_runtime145, headingTypeToBlockName, headings, blockTypeToBlockName, CODE_LANGUAGE_OPTIONS;
39343
+ var import_react130, import_lexical15, import_code9, import_link6, import_list5, import_LexicalComposerContext11, import_LexicalDecoratorBlockNode, import_LexicalHorizontalRuleNode4, import_rich_text5, import_selection4, import_utils4, import_jsx_runtime146, headingTypeToBlockName, headings, blockTypeToBlockName, CODE_LANGUAGE_OPTIONS;
39342
39344
  var init_ToolbarPlugin = __esm({
39343
39345
  "src/rich-text-editor/plugins/ToolbarPlugin/index.tsx"() {
39344
39346
  "use strict";
@@ -39364,7 +39366,7 @@ var init_ToolbarPlugin = __esm({
39364
39366
  init_url();
39365
39367
  init_ActionsPlugin();
39366
39368
  init_insert_table();
39367
- import_jsx_runtime145 = require("react/jsx-runtime");
39369
+ import_jsx_runtime146 = require("react/jsx-runtime");
39368
39370
  headingTypeToBlockName = {
39369
39371
  h1: "Heading 1",
39370
39372
  h2: "Heading 2",
@@ -39514,7 +39516,7 @@ function RichTextEditor({
39514
39516
  labelTranslations,
39515
39517
  ...rest
39516
39518
  }) {
39517
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalComposer.LexicalComposer, {
39519
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalComposer.LexicalComposer, {
39518
39520
  initialConfig: {
39519
39521
  editable: !rest.disabled,
39520
39522
  namespace: "crystallize-rich-text-editor",
@@ -39525,13 +39527,13 @@ function RichTextEditor({
39525
39527
  throw error;
39526
39528
  }
39527
39529
  },
39528
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(I18nProvider, {
39530
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(I18nProvider, {
39529
39531
  language,
39530
39532
  labelTranslations,
39531
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(SharedHistoryContext, {
39532
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
39533
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(SharedHistoryContext, {
39534
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", {
39533
39535
  className: "c-rich-text-editor",
39534
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(RichTextEditorWithoutContext, {
39536
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(RichTextEditorWithoutContext, {
39535
39537
  ...rest
39536
39538
  })
39537
39539
  })
@@ -39553,7 +39555,7 @@ function RichTextEditorWithoutContext({
39553
39555
  }) {
39554
39556
  const editable = !disabled;
39555
39557
  const { historyState } = useSharedHistoryContext();
39556
- const placeholder = /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
39558
+ const placeholder = /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", {
39557
39559
  className: "c-rte-placeholder",
39558
39560
  children: placeholderText ?? ""
39559
39561
  });
@@ -39576,38 +39578,38 @@ function RichTextEditorWithoutContext({
39576
39578
  }
39577
39579
  firstOnChangeTriggeredRef.current = true;
39578
39580
  }
39579
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
39581
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
39580
39582
  children: [
39581
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalOnChangePlugin.OnChangePlugin, {
39583
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalOnChangePlugin.OnChangePlugin, {
39582
39584
  onChange: onLocalChange,
39583
39585
  ignoreSelectionChange: true
39584
39586
  }),
39585
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ToolbarPlugin, {
39587
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ToolbarPlugin, {
39586
39588
  disabled,
39587
39589
  actionsMenuPrepend,
39588
39590
  actionsMenuAppend
39589
39591
  }),
39590
39592
  slotPreContent,
39591
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("div", {
39593
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("div", {
39592
39594
  className: `c-rte-editor-container ${disabled ? "disabled" : ""}`,
39593
39595
  "data-testid": "rich-text-editor",
39594
39596
  children: [
39595
- maxLength != null ? /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(MaxLengthPlugin, {
39597
+ maxLength != null ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(MaxLengthPlugin, {
39596
39598
  maxLength
39597
39599
  }) : null,
39598
- !autoFocus ? null : /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalAutoFocusPlugin.AutoFocusPlugin, {}),
39599
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
39600
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(LexicalAutoLinkPlugin, {}),
39601
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalHistoryPlugin2.HistoryPlugin, {
39600
+ !autoFocus ? null : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalAutoFocusPlugin.AutoFocusPlugin, {}),
39601
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalClearEditorPlugin.ClearEditorPlugin, {}),
39602
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(LexicalAutoLinkPlugin, {}),
39603
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalHistoryPlugin2.HistoryPlugin, {
39602
39604
  externalHistoryState: historyState
39603
39605
  }),
39604
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalRichTextPlugin.RichTextPlugin, {
39605
- contentEditable: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
39606
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalRichTextPlugin.RichTextPlugin, {
39607
+ contentEditable: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", {
39606
39608
  className: "c-rte-editor-scroller",
39607
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", {
39609
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("div", {
39608
39610
  className: "c-rte-editor",
39609
39611
  ref: onRef,
39610
- children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalContentEditable.ContentEditable, {
39612
+ children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalContentEditable.ContentEditable, {
39611
39613
  className: "c-rte-contenteditable-root",
39612
39614
  id
39613
39615
  })
@@ -39616,28 +39618,28 @@ function RichTextEditorWithoutContext({
39616
39618
  placeholder,
39617
39619
  ErrorBoundary: import_LexicalErrorBoundary.default
39618
39620
  }),
39619
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(CodeHighlightPlugin, {}),
39620
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalListPlugin.ListPlugin, {}),
39621
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ListMaxIndentLevelPlugin, {
39621
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(CodeHighlightPlugin, {}),
39622
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalListPlugin.ListPlugin, {}),
39623
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ListMaxIndentLevelPlugin, {
39622
39624
  maxDepth: 7
39623
39625
  }),
39624
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalTablePlugin.TablePlugin, {}),
39625
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(LinkPlugin, {}),
39626
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalHorizontalRulePlugin.HorizontalRulePlugin, {}),
39627
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(TabFocusPlugin, {}),
39628
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {}),
39629
- floatingAnchorElem && /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, {
39626
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalTablePlugin.TablePlugin, {}),
39627
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(LinkPlugin, {}),
39628
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalHorizontalRulePlugin.HorizontalRulePlugin, {}),
39629
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(TabFocusPlugin, {}),
39630
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_LexicalTabIndentationPlugin.TabIndentationPlugin, {}),
39631
+ floatingAnchorElem && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, {
39630
39632
  children: [
39631
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(CodeActionMenuPlugin, {
39633
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(CodeActionMenuPlugin, {
39632
39634
  anchorElem: floatingAnchorElem
39633
39635
  }),
39634
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(FloatingLinkEditorPlugin, {
39636
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(FloatingLinkEditorPlugin, {
39635
39637
  anchorElem: floatingAnchorElem
39636
39638
  }),
39637
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(TableActionMenuPlugin, {
39639
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(TableActionMenuPlugin, {
39638
39640
  anchorElem: floatingAnchorElem
39639
39641
  }),
39640
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(FloatingTextFormatToolbarPlugin, {
39642
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(FloatingTextFormatToolbarPlugin, {
39641
39643
  anchorElem: floatingAnchorElem
39642
39644
  })
39643
39645
  ]
@@ -39647,7 +39649,7 @@ function RichTextEditorWithoutContext({
39647
39649
  ]
39648
39650
  });
39649
39651
  }
39650
- var import_react131, 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_runtime146, rich_text_editor_default;
39652
+ var import_react131, 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_runtime147, rich_text_editor_default;
39651
39653
  var init_rich_text_editor = __esm({
39652
39654
  "src/rich-text-editor/rich-text-editor.tsx"() {
39653
39655
  "use strict";
@@ -39684,7 +39686,7 @@ var init_rich_text_editor = __esm({
39684
39686
  init_TableActionMenuPlugin();
39685
39687
  init_ToolbarPlugin();
39686
39688
  init_CrystallizeRTEditorTheme();
39687
- import_jsx_runtime146 = require("react/jsx-runtime");
39689
+ import_jsx_runtime147 = require("react/jsx-runtime");
39688
39690
  rich_text_editor_default = RichTextEditor;
39689
39691
  }
39690
39692
  });
@@ -39697,6 +39699,8 @@ __export(src_exports, {
39697
39699
  Button: () => Button,
39698
39700
  Card: () => Card,
39699
39701
  Checkbox: () => Checkbox,
39702
+ Collapsible: () => Collapsible,
39703
+ CollapsibleTrigger: () => CollapsibleTrigger,
39700
39704
  Dialog: () => Dialog,
39701
39705
  DropdownMenu: () => DropdownMenu,
39702
39706
  Icon: () => Icon,
@@ -39831,16 +39835,56 @@ var Checkbox = (0, import_react4.forwardRef)((props, ref) => {
39831
39835
  });
39832
39836
  Checkbox.displayName = "Checkbox";
39833
39837
 
39838
+ // src/collapsible/collapsible.tsx
39839
+ var import_class_variance_authority9 = require("class-variance-authority");
39840
+ var CollapsiblePrimitives = __toESM(require("@radix-ui/react-collapsible"));
39841
+ init_iconography();
39842
+ var import_jsx_runtime116 = require("react/jsx-runtime");
39843
+ function Content3({ className, ...delegated }) {
39844
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CollapsiblePrimitives.Content, {
39845
+ ...delegated,
39846
+ className: (0, import_class_variance_authority9.cx)("c-collapsible-content", className)
39847
+ });
39848
+ }
39849
+ function CollapsibleTrigger({
39850
+ children,
39851
+ arrowPosition,
39852
+ className,
39853
+ ...delegated
39854
+ }) {
39855
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CollapsiblePrimitives.Trigger, {
39856
+ asChild: true,
39857
+ ...delegated,
39858
+ className: (0, import_class_variance_authority9.cx)("c-collapsible-trigger", arrowPosition === "right" ? "arrow-right" : "", className),
39859
+ children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", {
39860
+ children: [
39861
+ arrowPosition && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon.Caret, {
39862
+ className: "c-collapsible-arrow",
39863
+ fill: "purple-50-900",
39864
+ width: 10,
39865
+ height: 10
39866
+ }),
39867
+ children
39868
+ ]
39869
+ })
39870
+ });
39871
+ }
39872
+ var Collapsible = {
39873
+ Root: CollapsiblePrimitives.Root,
39874
+ Trigger: CollapsibleTrigger,
39875
+ Content: Content3
39876
+ };
39877
+
39834
39878
  // src/index.ts
39835
39879
  init_dialog2();
39836
39880
  init_dropdown_menu();
39837
39881
  init_icon_button2();
39838
39882
 
39839
39883
  // src/inline-radio/inline-radio.tsx
39840
- var import_class_variance_authority11 = require("class-variance-authority");
39884
+ var import_class_variance_authority12 = require("class-variance-authority");
39841
39885
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
39842
- var import_jsx_runtime120 = require("react/jsx-runtime");
39843
- var inlineRadioGroupStyles = (0, import_class_variance_authority11.cva)("c-inline-radio-group", {
39886
+ var import_jsx_runtime121 = require("react/jsx-runtime");
39887
+ var inlineRadioGroupStyles = (0, import_class_variance_authority12.cva)("c-inline-radio-group", {
39844
39888
  variants: {
39845
39889
  size: {
39846
39890
  xs: "c-inline-radio-group-xs",
@@ -39854,16 +39898,16 @@ var inlineRadioGroupStyles = (0, import_class_variance_authority11.cva)("c-inlin
39854
39898
  }
39855
39899
  });
39856
39900
  function InlineRadioGroup({ size, className, ...delegated }) {
39857
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(RadioGroupPrimitive.Root, {
39901
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(RadioGroupPrimitive.Root, {
39858
39902
  ...delegated,
39859
39903
  className: inlineRadioGroupStyles({ size, className })
39860
39904
  });
39861
39905
  }
39862
39906
  function InlineRadioItem({ children, className, ...delegated }) {
39863
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(RadioGroupPrimitive.Item, {
39907
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(RadioGroupPrimitive.Item, {
39864
39908
  ...delegated,
39865
- className: (0, import_class_variance_authority11.cx)("c-inline-radio", className),
39866
- children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(RadioGroupPrimitive.Indicator, {
39909
+ className: (0, import_class_variance_authority12.cx)("c-inline-radio", className),
39910
+ children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(RadioGroupPrimitive.Indicator, {
39867
39911
  forceMount: true,
39868
39912
  children
39869
39913
  })
@@ -39880,14 +39924,14 @@ init_input2();
39880
39924
  init_label2();
39881
39925
 
39882
39926
  // src/progress/progress.tsx
39883
- var import_class_variance_authority16 = require("class-variance-authority");
39927
+ var import_class_variance_authority17 = require("class-variance-authority");
39884
39928
  var ProgressPrimitives = __toESM(require("@radix-ui/react-progress"));
39885
- var import_jsx_runtime125 = require("react/jsx-runtime");
39929
+ var import_jsx_runtime126 = require("react/jsx-runtime");
39886
39930
  function Progress({ className, value }) {
39887
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ProgressPrimitives.Root, {
39888
- className: (0, import_class_variance_authority16.cx)(className, "c-progress-root"),
39931
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ProgressPrimitives.Root, {
39932
+ className: (0, import_class_variance_authority17.cx)(className, "c-progress-root"),
39889
39933
  value,
39890
- children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(ProgressPrimitives.Indicator, {
39934
+ children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ProgressPrimitives.Indicator, {
39891
39935
  className: "c-progress-indicator",
39892
39936
  style: { transform: `translateX(-${100 - (value ?? 0)}%)` }
39893
39937
  })
@@ -39896,12 +39940,12 @@ function Progress({ className, value }) {
39896
39940
 
39897
39941
  // src/radio/radio.tsx
39898
39942
  var RadioGroupPrimitive2 = __toESM(require("@radix-ui/react-radio-group"));
39899
- var import_jsx_runtime126 = require("react/jsx-runtime");
39943
+ var import_jsx_runtime127 = require("react/jsx-runtime");
39900
39944
  function RadioGroupItem(props) {
39901
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(RadioGroupPrimitive2.Item, {
39945
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(RadioGroupPrimitive2.Item, {
39902
39946
  ...props,
39903
39947
  className: "c-radio-item",
39904
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(RadioGroupPrimitive2.Indicator, {
39948
+ children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(RadioGroupPrimitive2.Indicator, {
39905
39949
  className: "c-radio-indicator"
39906
39950
  })
39907
39951
  });
@@ -39914,18 +39958,18 @@ var Radio = {
39914
39958
  // src/select/select-item.tsx
39915
39959
  var import_react113 = require("react");
39916
39960
  var SelectPrimitives = __toESM(require("@radix-ui/react-select"));
39917
- var import_jsx_runtime127 = require("react/jsx-runtime");
39961
+ var import_jsx_runtime128 = require("react/jsx-runtime");
39918
39962
  var SelectItem = (0, import_react113.forwardRef)((props, ref) => {
39919
39963
  const { children, ...delegated } = props;
39920
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(SelectPrimitives.Item, {
39964
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(SelectPrimitives.Item, {
39921
39965
  className: "c-select-item",
39922
39966
  ref,
39923
39967
  ...delegated,
39924
39968
  children: [
39925
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SelectPrimitives.ItemText, {
39969
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives.ItemText, {
39926
39970
  children
39927
39971
  }),
39928
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SelectPrimitives.ItemIndicator, {})
39972
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives.ItemIndicator, {})
39929
39973
  ]
39930
39974
  });
39931
39975
  });
@@ -39933,11 +39977,11 @@ SelectItem.displayName = "SelectItem";
39933
39977
 
39934
39978
  // src/select/select-root.tsx
39935
39979
  var import_react114 = require("react");
39936
- var import_class_variance_authority17 = require("class-variance-authority");
39980
+ var import_class_variance_authority18 = require("class-variance-authority");
39937
39981
  var SelectPrimitives2 = __toESM(require("@radix-ui/react-select"));
39938
39982
  init_iconography();
39939
- var import_jsx_runtime128 = require("react/jsx-runtime");
39940
- var selectTriggerStyles = (0, import_class_variance_authority17.cva)("c-select-trigger", {
39983
+ var import_jsx_runtime129 = require("react/jsx-runtime");
39984
+ var selectTriggerStyles = (0, import_class_variance_authority18.cva)("c-select-trigger", {
39941
39985
  variants: {
39942
39986
  size: {
39943
39987
  xs: "c-select-trigger-xs",
@@ -39952,34 +39996,34 @@ var selectTriggerStyles = (0, import_class_variance_authority17.cva)("c-select-t
39952
39996
  });
39953
39997
  var SelectContainer = (0, import_react114.forwardRef)(
39954
39998
  ({ children, id, placeholder, disabled, size, triggerClassName, ...delegated }, ref) => {
39955
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(SelectPrimitives2.Root, {
39999
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(SelectPrimitives2.Root, {
39956
40000
  ...delegated,
39957
40001
  children: [
39958
- /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(SelectPrimitives2.Trigger, {
40002
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(SelectPrimitives2.Trigger, {
39959
40003
  ref,
39960
40004
  className: selectTriggerStyles({ size, className: triggerClassName }),
39961
40005
  disabled,
39962
40006
  id,
39963
40007
  children: [
39964
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives2.Value, {
39965
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("span", {
40008
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives2.Value, {
40009
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", {
39966
40010
  className: "c-select-value",
39967
40011
  children: placeholder ?? "Select..."
39968
40012
  })
39969
40013
  }),
39970
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Icon.Arrow, {})
40014
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Icon.Arrow, {})
39971
40015
  ]
39972
40016
  }),
39973
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives2.Portal, {
39974
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(SelectPrimitives2.Content, {
40017
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives2.Portal, {
40018
+ children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(SelectPrimitives2.Content, {
39975
40019
  className: "c-select-content",
39976
40020
  children: [
39977
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives2.ScrollUpButton, {}),
39978
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives2.Viewport, {
40021
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives2.ScrollUpButton, {}),
40022
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives2.Viewport, {
39979
40023
  className: "c-select-viewport",
39980
40024
  children
39981
40025
  }),
39982
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(SelectPrimitives2.ScrollDownButton, {})
40026
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SelectPrimitives2.ScrollDownButton, {})
39983
40027
  ]
39984
40028
  })
39985
40029
  })
@@ -39997,22 +40041,22 @@ var Select = {
39997
40041
 
39998
40042
  // src/slider/slider.tsx
39999
40043
  var import_react115 = require("react");
40000
- var import_class_variance_authority18 = require("class-variance-authority");
40044
+ var import_class_variance_authority19 = require("class-variance-authority");
40001
40045
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
40002
- var import_jsx_runtime129 = require("react/jsx-runtime");
40046
+ var import_jsx_runtime130 = require("react/jsx-runtime");
40003
40047
  var Slider = (0, import_react115.forwardRef)(({ className, transparentRange, ...delegated }, ref) => {
40004
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(SliderPrimitive.Root, {
40005
- className: (0, import_class_variance_authority18.cx)("c-slider-root", className),
40048
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(SliderPrimitive.Root, {
40049
+ className: (0, import_class_variance_authority19.cx)("c-slider-root", className),
40006
40050
  ref,
40007
40051
  ...delegated,
40008
40052
  children: [
40009
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SliderPrimitive.Track, {
40053
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SliderPrimitive.Track, {
40010
40054
  className: "c-slider-track",
40011
- children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SliderPrimitive.Range, {
40055
+ children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SliderPrimitive.Range, {
40012
40056
  className: `c-slider-range ${transparentRange ? "c-slider-range-transparent" : ""}`
40013
40057
  })
40014
40058
  }),
40015
- /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(SliderPrimitive.Thumb, {
40059
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(SliderPrimitive.Thumb, {
40016
40060
  className: "c-slider-thumb"
40017
40061
  })
40018
40062
  ]
@@ -40024,15 +40068,15 @@ init_spinner();
40024
40068
 
40025
40069
  // src/stack-icon/stack-icon.tsx
40026
40070
  init_iconography();
40027
- var import_jsx_runtime130 = require("react/jsx-runtime");
40071
+ var import_jsx_runtime131 = require("react/jsx-runtime");
40028
40072
  function StackIcon({ type, children, size = 18 }) {
40029
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("span", {
40073
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("span", {
40030
40074
  className: "c-stack-icon",
40031
40075
  children: [
40032
- type === "create" && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", {
40076
+ type === "create" && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", {
40033
40077
  style: { width: size, height: size },
40034
40078
  className: "c-stack-icon__icon",
40035
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon.Add, {
40079
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon.Add, {
40036
40080
  width: size - 4,
40037
40081
  height: size - 4
40038
40082
  })
@@ -40043,10 +40087,10 @@ function StackIcon({ type, children, size = 18 }) {
40043
40087
  }
40044
40088
 
40045
40089
  // src/tag/tag.tsx
40046
- var import_class_variance_authority19 = require("class-variance-authority");
40090
+ var import_class_variance_authority20 = require("class-variance-authority");
40047
40091
  init_iconography();
40048
- var import_jsx_runtime131 = require("react/jsx-runtime");
40049
- var tagStyles = (0, import_class_variance_authority19.cva)("c-tag", {
40092
+ var import_jsx_runtime132 = require("react/jsx-runtime");
40093
+ var tagStyles = (0, import_class_variance_authority20.cva)("c-tag", {
40050
40094
  variants: {
40051
40095
  variant: {
40052
40096
  default: "c-tag-default",
@@ -40075,28 +40119,28 @@ function Tag({
40075
40119
  showRemoveOnHover,
40076
40120
  ...delegated
40077
40121
  }) {
40078
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", {
40122
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", {
40079
40123
  className: tagStyles({ className, variant, size }),
40080
40124
  ...delegated,
40081
40125
  children: [
40082
- !prepend ? null : /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", {
40126
+ !prepend ? null : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", {
40083
40127
  className: "c-tag__prepend",
40084
40128
  children: prepend
40085
40129
  }),
40086
40130
  children,
40087
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("button", {
40131
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("button", {
40088
40132
  type: "button",
40089
- className: (0, import_class_variance_authority19.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40133
+ className: (0, import_class_variance_authority20.cx)("c-tag__remove-button", showRemoveOnHover ? "c-tag__remove-button--hover" : ""),
40090
40134
  onClick: (e) => {
40091
40135
  e.stopPropagation();
40092
40136
  onRemove();
40093
40137
  },
40094
40138
  children: [
40095
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Icon.Cancel, {
40139
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon.Cancel, {
40096
40140
  width: 12,
40097
40141
  height: 12
40098
40142
  }),
40099
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("span", {
40143
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", {
40100
40144
  className: "c-tag__remove-button-text",
40101
40145
  children: "Remove"
40102
40146
  })
@@ -40108,12 +40152,12 @@ function Tag({
40108
40152
 
40109
40153
  // src/rich-text-editor/index.tsx
40110
40154
  var import_react132 = require("react");
40111
- var import_jsx_runtime147 = require("react/jsx-runtime");
40155
+ var import_jsx_runtime148 = require("react/jsx-runtime");
40112
40156
  var LazyRichTextEditor = (0, import_react132.lazy)(() => Promise.resolve().then(() => (init_rich_text_editor(), rich_text_editor_exports)));
40113
40157
  var RichTextEditor2 = (props) => {
40114
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_react132.Suspense, {
40158
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_react132.Suspense, {
40115
40159
  fallback: null,
40116
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(LazyRichTextEditor, {
40160
+ children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(LazyRichTextEditor, {
40117
40161
  ...props
40118
40162
  })
40119
40163
  });
@@ -40123,12 +40167,12 @@ var RichTextEditor2 = (props) => {
40123
40167
  var import_sonner2 = require("sonner");
40124
40168
 
40125
40169
  // src/toast/toast.tsx
40126
- var import_class_variance_authority20 = require("class-variance-authority");
40170
+ var import_class_variance_authority21 = require("class-variance-authority");
40127
40171
  var import_sonner = require("sonner");
40128
40172
  init_icon_button2();
40129
40173
  init_iconography();
40130
- var import_jsx_runtime148 = require("react/jsx-runtime");
40131
- var toastStyles = (0, import_class_variance_authority20.cva)("c-toast", {
40174
+ var import_jsx_runtime149 = require("react/jsx-runtime");
40175
+ var toastStyles = (0, import_class_variance_authority21.cva)("c-toast", {
40132
40176
  variants: {
40133
40177
  type: {
40134
40178
  info: "c-toast-info",
@@ -40152,34 +40196,34 @@ var toast = ({ title, message, type = "success", timeout = 6e3 }) => {
40152
40196
  const withMessage = !!message;
40153
40197
  const toastId = Date.now().toString();
40154
40198
  import_sonner.toast.custom(
40155
- (id) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", {
40199
+ (id) => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
40156
40200
  "data-testid": `toast-${type}`,
40157
- className: (0, import_class_variance_authority20.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40201
+ className: (0, import_class_variance_authority21.cx)(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
40158
40202
  children: [
40159
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
40160
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ToastIcon, {
40203
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
40204
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(ToastIcon, {
40161
40205
  width: 26,
40162
40206
  height: 26
40163
40207
  })
40164
40208
  }),
40165
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", {
40209
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", {
40166
40210
  children: [
40167
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
40211
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
40168
40212
  className: "c-toast-title",
40169
40213
  children: title
40170
40214
  }),
40171
- !!message && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
40215
+ !!message && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
40172
40216
  className: "c-toast-message",
40173
40217
  children: message
40174
40218
  })
40175
40219
  ]
40176
40220
  }),
40177
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", {
40221
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", {
40178
40222
  className: "c-toast-close",
40179
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(IconButton, {
40223
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(IconButton, {
40180
40224
  onClick: () => import_sonner.toast.dismiss(id),
40181
40225
  size: "xs",
40182
- children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Icon.Cancel, {
40226
+ children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Icon.Cancel, {
40183
40227
  width: 12,
40184
40228
  height: 12
40185
40229
  })
@@ -40201,10 +40245,10 @@ toast.dismiss = import_sonner.toast.dismiss;
40201
40245
  init_tooltip2();
40202
40246
 
40203
40247
  // src/switch/switch.tsx
40204
- var import_class_variance_authority21 = require("class-variance-authority");
40248
+ var import_class_variance_authority22 = require("class-variance-authority");
40205
40249
  var RadixSwitch = __toESM(require("@radix-ui/react-switch"));
40206
- var import_jsx_runtime149 = require("react/jsx-runtime");
40207
- var switchStyles = (0, import_class_variance_authority21.cva)(["c-switch-root"], {
40250
+ var import_jsx_runtime150 = require("react/jsx-runtime");
40251
+ var switchStyles = (0, import_class_variance_authority22.cva)(["c-switch-root"], {
40208
40252
  variants: {
40209
40253
  size: {
40210
40254
  xs: "c-switch-root-xs",
@@ -40216,10 +40260,10 @@ var switchStyles = (0, import_class_variance_authority21.cva)(["c-switch-root"],
40216
40260
  }
40217
40261
  });
40218
40262
  function Switch2({ size, ...props }) {
40219
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(RadixSwitch.Root, {
40263
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(RadixSwitch.Root, {
40220
40264
  ...props,
40221
40265
  className: switchStyles({ size }),
40222
- children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(RadixSwitch.Thumb, {
40266
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(RadixSwitch.Thumb, {
40223
40267
  className: "c-switch-thumb"
40224
40268
  })
40225
40269
  });
@@ -40238,6 +40282,8 @@ var tokens = {
40238
40282
  Button,
40239
40283
  Card,
40240
40284
  Checkbox,
40285
+ Collapsible,
40286
+ CollapsibleTrigger,
40241
40287
  Dialog,
40242
40288
  DropdownMenu,
40243
40289
  Icon,