@crystallize/design-system 1.16.0 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -201,10 +201,10 @@ import { Portal as Portal2, Separator } from "@radix-ui/react-dropdown-menu";
201
201
  import { cx as cx2 } from "class-variance-authority";
202
202
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
203
203
  import { jsx as jsx4 } from "react/jsx-runtime";
204
- function DropdownMenuItem({ children, className, ...delegated }) {
204
+ function DropdownMenuItem({ children, className, isSelected, ...delegated }) {
205
205
  return /* @__PURE__ */ jsx4(DropdownMenuPrimitive.Item, {
206
206
  ...delegated,
207
- className: cx2("c-dropdown-menu-item", className),
207
+ className: cx2("c-dropdown-menu-item", isSelected ? "selected" : "", className),
208
208
  children
209
209
  });
210
210
  }
@@ -1729,29 +1729,36 @@ Info.displayName = "InfoIcon";
1729
1729
 
1730
1730
  // src/iconography/key.tsx
1731
1731
  import { forwardRef as forwardRef33 } from "react";
1732
- import { jsx as jsx40 } from "react/jsx-runtime";
1732
+ import { jsx as jsx40, jsxs as jsxs32 } from "react/jsx-runtime";
1733
1733
  var Key = forwardRef33((delegated, ref) => {
1734
- return /* @__PURE__ */ jsx40("svg", {
1734
+ return /* @__PURE__ */ jsxs32("svg", {
1735
1735
  ref,
1736
- viewBox: "0 0 24 25",
1737
- width: "24",
1738
- height: "25",
1736
+ viewBox: "0 0 22 22",
1737
+ width: "22",
1738
+ height: "22",
1739
1739
  fill: "none",
1740
1740
  ...delegated,
1741
- children: /* @__PURE__ */ jsx40("path", {
1742
- fill: "#BFF6F8",
1743
- stroke: "#528693",
1744
- d: "M23.486 5.617a6.308 6.308 0 0 0-2.738-4.03 6.314 6.314 0 0 0-2.335-.942 6.251 6.251 0 0 0-2.51.051c-.928.212-1.799.637-2.545 1.243a6.435 6.435 0 0 0-1.762 2.257 6.617 6.617 0 0 0-.11 5.42 3308.703 3308.703 0 0 1-3.087 3.164l-.042-.043c-.335-.34-1.163-1.187-1.495-1.537-.315-.333-.644-.403-.868-.403-.323 0-.616.138-.868.41-.273.291-.633.671-1.007 1.039-.326.32-.395.657-.396.884 0 .33.135.633.402.9.353.35 1.191 1.208 1.535 1.56l-.545.556-.048-.05c-.331-.337-1.155-1.18-1.484-1.526-.256-.269-.549-.405-.868-.405h-.007c-.222 0-.552.073-.864.409-.312.336-.65.686-1.025 1.058-.319.317-.385.653-.385.878 0 .328.13.625.39.883.355.355 1.195 1.216 1.543 1.573l-.048.05c-.218.221-.443.45-.663.685-.419.449-.65 1.048-.643 1.67a2.41 2.41 0 0 0 1.436 2.181c.284.123.588.187.896.189a2.286 2.286 0 0 0 1.592-.661c.067-.065.127-.127.186-.187l.057-.06 9.604-9.845c.899.388 1.72.562 2.504.528h.017c1.04 0 2.003-.232 2.864-.692a6.458 6.458 0 0 0 2.862-3.016c.595-1.293.75-2.743.455-4.19ZM14.437 7.04c-.016-.738.295-1.487.851-2.056.567-.578 1.312-.9 2.043-.88.755.014 1.475.331 2.003.884.529.553.823 1.298.82 2.072 0 1.631-1.26 2.904-2.866 2.904h-.002c-1.563-.001-2.815-1.283-2.849-2.924Z"
1745
- })
1741
+ children: [
1742
+ /* @__PURE__ */ jsx40("path", {
1743
+ d: "M19.8945 5.95026C19.6477 4.73793 18.937 3.69147 17.8935 3.00418C17.3743 2.6618 16.7941 2.42807 16.1865 2.31644C15.5788 2.20481 15.0511 2.19471 14.3527 2.35376C13.5642 2.53331 13.1208 2.75386 12.4919 3.26216C11.8563 3.77585 11.5544 4.17318 11.2039 4.91138C10.8646 5.62576 10.7544 6.19904 10.7405 6.88273C10.7266 7.56642 10.8573 8.24508 11.1235 8.87212C10.2697 9.74839 10.1453 9.89094 9.46986 10.5822C9.21027 10.3192 8.95563 10.0513 8.70158 9.78292C8.47173 9.53937 8.2306 9.48806 8.06702 9.48806C7.83118 9.48806 7.61684 9.5896 7.43247 9.78834C7.23329 10.0008 6.96995 10.2787 6.69709 10.5472C6.45878 10.7806 6.40802 11.0274 6.40766 11.1933C6.40766 11.435 6.50567 11.6562 6.70132 11.8506C6.95902 12.1064 7.46819 12.6368 7.46819 12.6368L6.46693 13.6448C6.46693 13.6448 5.71608 12.8816 5.3473 12.4936C5.1601 12.2966 4.94612 12.1969 4.71274 12.1969H4.70781C4.54564 12.1969 4.30416 12.2507 4.07607 12.4961C3.84798 12.7414 3.60051 12.9973 3.3273 13.2694C3.09392 13.5014 3.04527 13.7464 3.04527 13.9108C3.04527 14.1507 3.14116 14.3679 3.33047 14.5565C3.58993 14.8156 4.20439 15.4454 4.45856 15.7063C4.28469 15.8845 4.10935 16.0613 3.93894 16.2429C3.63263 16.5712 3.46379 17.0092 3.46853 17.4634C3.47328 17.9176 3.65123 18.3519 3.96432 18.6733C4.12254 18.8375 4.31076 18.9681 4.51824 19.0577C4.72571 19.1473 4.94837 19.1941 5.1735 19.1955C5.60732 19.1934 6.02377 19.0206 6.33685 18.7127C8.80299 16.3293 11.1381 13.791 13.5345 11.3369C14.1912 11.6205 14.7909 11.7474 15.3644 11.7232H15.3771C16.1365 11.7232 16.7219 11.6011 17.4701 11.2173C18.526 10.6756 19.127 9.95834 19.562 9.01305C19.997 8.06776 20.1098 7.00829 19.8945 5.95026ZM13.2806 6.98913C13.2818 6.35405 13.4569 5.9388 13.9028 5.48665C14.3486 5.0347 14.761 4.83886 15.3958 4.84381C16.0207 4.84868 16.4251 5.04079 16.86 5.48958C17.3025 5.94622 17.4666 6.36776 17.4592 7.00359C17.4455 8.16811 16.5384 9.12651 15.3648 9.12651H15.3627C14.1974 9.12592 13.2786 8.15439 13.2806 6.98913Z",
1744
+ fill: "#BFF6F8"
1745
+ }),
1746
+ /* @__PURE__ */ jsx40("path", {
1747
+ "fill-rule": "evenodd",
1748
+ "clip-rule": "evenodd",
1749
+ d: "M14.2861 2.06126C15.0279 1.89233 15.5969 1.90313 16.2407 2.02139C16.8882 2.14034 17.5061 2.38935 18.0586 2.75375C19.168 3.48444 19.9256 4.59912 20.1884 5.89043C20.4159 7.00773 20.2975 8.13239 19.8345 9.13848C19.375 10.1371 18.7298 10.9082 17.607 11.4842C16.8141 11.891 16.1813 12.0232 15.3771 12.0232H15.3706C14.803 12.0461 14.2219 11.9333 13.6076 11.6916C12.8526 12.4665 12.1015 13.2514 11.3489 14.0378C9.77024 15.6873 8.18529 17.3435 6.54613 18.9277C6.17818 19.2889 5.68752 19.493 5.17496 19.4955L5.17167 19.4955C4.90609 19.4939 4.64362 19.4386 4.3993 19.3331C4.1553 19.2278 3.9344 19.0744 3.74899 18.8822C3.38162 18.5049 3.17408 17.9966 3.16855 17.4666C3.16301 16.9363 3.36003 16.4236 3.7196 16.0382C3.82475 15.9262 4.03922 15.706 4.03922 15.706C4.03922 15.706 3.32162 14.9716 3.11872 14.769C2.88007 14.5311 2.74527 14.2397 2.74527 13.9108C2.74527 13.6833 2.81488 13.3558 3.1158 13.0566C3.38648 12.787 3.63119 12.534 3.85634 12.2918C4.14888 11.9772 4.47429 11.8969 4.7078 11.8969H4.71274C5.04159 11.8969 5.33075 12.0407 5.56473 12.2869C5.74754 12.4792 6.02614 12.7657 6.25999 13.005C6.33588 13.0827 6.4069 13.1553 6.46821 13.2178L7.04848 12.6337C7.02239 12.6067 6.9947 12.5781 6.96596 12.5484C6.80638 12.3838 6.61651 12.1891 6.48996 12.0635C6.24557 11.8206 6.10766 11.5255 6.10766 11.1933C6.10815 10.9628 6.181 10.6329 6.48692 10.3331C6.75501 10.0693 7.01468 9.79536 7.21306 9.58374C7.4447 9.33431 7.73505 9.18807 8.06702 9.18807C8.29928 9.18807 8.62426 9.26401 8.91959 9.57685C9.10286 9.77043 9.28546 9.96275 9.46954 10.1527C9.68431 9.93175 9.83739 9.7722 10.0018 9.60089C10.1998 9.39453 10.4141 9.17111 10.7724 8.8027C10.5401 8.18952 10.4272 7.5352 10.4406 6.87665C10.4552 6.15474 10.5737 5.53909 10.9329 4.7827C11.3015 4.00641 11.6307 3.57251 12.3033 3.02885C12.9666 2.49276 13.4515 2.25131 14.2861 2.06126ZM7.68462 12.4291L7.88748 12.6404L6.4659 14.0716L6.25307 13.8552L6.12971 13.7296C6.05344 13.6519 5.94791 13.5442 5.83082 13.4243C5.59705 13.1851 5.31582 12.8959 5.12984 12.7003C4.98945 12.5525 4.85064 12.4969 4.71274 12.4969H4.7078C4.61699 12.4969 4.45943 12.5243 4.29579 12.7004C4.06482 12.9488 3.81465 13.2074 3.53899 13.482C3.37316 13.6468 3.34527 13.8094 3.34527 13.9108C3.34527 14.0616 3.40239 14.2047 3.54221 14.344C3.80349 14.6049 4.41991 15.2367 4.67344 15.497L4.87754 15.7065L4.6733 15.9158C4.63245 15.9577 4.59185 15.9991 4.55148 16.0404C4.41786 16.1768 4.28682 16.3106 4.15806 16.4478C3.90514 16.719 3.76457 17.0823 3.76851 17.4603C3.77246 17.8385 3.92067 18.1986 4.17922 18.464L4.18033 18.4652C4.31121 18.601 4.46652 18.7086 4.63716 18.7823C4.80725 18.8558 4.98946 18.8941 5.17354 18.8955L5.17203 18.8955L5.17532 18.8955L5.17354 18.8955C5.52759 18.8934 5.8688 18.7522 6.12651 18.4988L6.12836 18.497C7.75985 16.9203 9.33034 15.2792 10.904 13.6348C11.7056 12.7971 12.5081 11.9586 13.3198 11.1273L13.464 10.9797L13.6534 11.0615C14.2788 11.3316 14.8332 11.4453 15.3518 11.4234L15.3644 11.4229L15.3771 11.4232C16.0917 11.4232 16.6298 11.3112 17.3332 10.9504C18.3222 10.443 18.879 9.77955 19.2895 8.88764C19.6965 8.00315 19.8038 7.00887 19.6005 6.01012C19.3698 4.87684 18.7061 3.89862 17.7285 3.25473C17.2427 2.93437 16.7001 2.71582 16.1323 2.61151C15.5607 2.50651 15.0743 2.49712 14.4193 2.64628C13.677 2.81532 13.275 3.01499 12.6805 3.4955C12.082 3.97922 11.8073 4.33997 11.4749 5.04008C11.1556 5.71245 11.0536 6.24336 11.0405 6.88883C11.0274 7.53036 11.15 8.16698 11.3996 8.7549L11.4776 8.93858L11.3384 9.0815C10.9129 9.51811 10.6644 9.77704 10.4358 10.0151C10.2142 10.246 10.0114 10.4572 9.68443 10.7919L9.47093 11.0104L9.25634 10.7929C8.99434 10.5275 8.73781 10.2576 8.48371 9.98917C8.31939 9.81506 8.16187 9.78807 8.06702 9.78807C7.92755 9.78807 7.78942 9.84468 7.6524 9.99238L7.65133 9.99352C7.45148 10.2067 7.1848 10.4882 6.9075 10.761C6.73719 10.9278 6.70794 11.0923 6.70766 11.1936C6.70774 11.3447 6.76592 11.4918 6.91268 11.6377M14.6993 5.26848C14.5063 5.35343 14.3222 5.48871 14.1164 5.69732C13.9122 5.90435 13.7828 6.08986 13.7019 6.28448C13.6211 6.47884 13.5811 6.70037 13.5806 6.98968C13.5789 7.99854 14.3727 8.82602 15.3628 8.82652H15.3648C16.3635 8.82652 17.1473 8.01108 17.1592 7.00008C17.1626 6.70925 17.1266 6.48571 17.0492 6.28946C16.9719 6.09342 16.8461 5.90632 16.6446 5.69836C16.4445 5.49196 16.2651 5.35857 16.0764 5.27398C15.8889 5.18989 15.6744 5.146 15.3935 5.14381C15.109 5.14159 14.8908 5.18419 14.6993 5.26848ZM14.4576 4.71932C14.7424 4.59395 15.0479 4.5411 15.3981 4.54383C15.7422 4.54651 16.0423 4.60112 16.3219 4.7265C16.6004 4.85137 16.8405 5.03842 17.0754 5.28081C17.3164 5.5295 17.4939 5.78148 17.6074 6.06934C17.7208 6.35697 17.7632 6.66212 17.7591 7.00712C17.7437 8.32517 16.7132 9.42652 15.3648 9.42652H15.3627C14.0223 9.42584 12.9783 8.31027 12.9806 6.98862C12.9812 6.64284 13.0294 6.33921 13.1479 6.05413C13.2663 5.76932 13.4475 5.52112 13.6893 5.27599C13.9293 5.03266 14.1742 4.84405 14.4576 4.71932Z",
1750
+ fill: "#528693"
1751
+ })
1752
+ ]
1746
1753
  });
1747
1754
  });
1748
1755
  Key.displayName = "KeyIcon";
1749
1756
 
1750
1757
  // src/iconography/language.tsx
1751
1758
  import { forwardRef as forwardRef34 } from "react";
1752
- import { jsx as jsx41, jsxs as jsxs32 } from "react/jsx-runtime";
1759
+ import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
1753
1760
  var Language = forwardRef34((delegated, ref) => {
1754
- return /* @__PURE__ */ jsxs32("svg", {
1761
+ return /* @__PURE__ */ jsxs33("svg", {
1755
1762
  ref,
1756
1763
  width: "34",
1757
1764
  height: "34",
@@ -1789,9 +1796,9 @@ Language.displayName = "LanguageProps";
1789
1796
 
1790
1797
  // src/iconography/lock-closed.tsx
1791
1798
  import { forwardRef as forwardRef35 } from "react";
1792
- import { jsx as jsx42, jsxs as jsxs33 } from "react/jsx-runtime";
1799
+ import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
1793
1800
  var LockClosed = forwardRef35((delegated, ref) => {
1794
- return /* @__PURE__ */ jsxs33("svg", {
1801
+ return /* @__PURE__ */ jsxs34("svg", {
1795
1802
  ref,
1796
1803
  width: "17",
1797
1804
  height: "16",
@@ -1838,9 +1845,9 @@ LockClosed.displayName = "LockClosedIcon";
1838
1845
 
1839
1846
  // src/iconography/multilingual.tsx
1840
1847
  import { forwardRef as forwardRef36 } from "react";
1841
- import { jsx as jsx43, jsxs as jsxs34 } from "react/jsx-runtime";
1848
+ import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
1842
1849
  var Multilingual = forwardRef36((delegated, ref) => {
1843
- return /* @__PURE__ */ jsxs34("svg", {
1850
+ return /* @__PURE__ */ jsxs35("svg", {
1844
1851
  ref,
1845
1852
  width: "34",
1846
1853
  height: "34",
@@ -1878,9 +1885,9 @@ Multilingual.displayName = "MultilingualIcon";
1878
1885
 
1879
1886
  // src/iconography/mushroom.tsx
1880
1887
  import { forwardRef as forwardRef37 } from "react";
1881
- import { jsx as jsx44, jsxs as jsxs35 } from "react/jsx-runtime";
1888
+ import { jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
1882
1889
  var Mushroom = forwardRef37((delegated, ref) => {
1883
- return /* @__PURE__ */ jsxs35("svg", {
1890
+ return /* @__PURE__ */ jsxs36("svg", {
1884
1891
  ref,
1885
1892
  width: "22",
1886
1893
  height: "22",
@@ -1899,7 +1906,7 @@ var Mushroom = forwardRef37((delegated, ref) => {
1899
1906
  clipRule: "evenodd"
1900
1907
  }),
1901
1908
  /* @__PURE__ */ jsx44("path", {
1902
- fill: "#BFF6F8",
1909
+ fill: "#FFA1DB",
1903
1910
  d: "M17.618 9.944c0 3.195-3.875 4.271-6.712 4.271-5.683 0-6.976-2.556-6.976-4.512 0-2.837 4.138-7.1 6.976-7.1 2.837 0 6.712 3.22 6.712 7.34Z"
1904
1911
  }),
1905
1912
  /* @__PURE__ */ jsx44("path", {
@@ -1955,9 +1962,9 @@ Mushroom.displayName = "MushroomIcon";
1955
1962
 
1956
1963
  // src/iconography/nail-polish.tsx
1957
1964
  import { forwardRef as forwardRef38 } from "react";
1958
- import { jsx as jsx45, jsxs as jsxs36 } from "react/jsx-runtime";
1965
+ import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
1959
1966
  var NailPolish = forwardRef38((delegated, ref) => {
1960
- return /* @__PURE__ */ jsxs36("svg", {
1967
+ return /* @__PURE__ */ jsxs37("svg", {
1961
1968
  ref,
1962
1969
  width: "12",
1963
1970
  height: "16",
@@ -2039,9 +2046,9 @@ NailPolish.displayName = "NailPolishIcon";
2039
2046
 
2040
2047
  // src/iconography/order.tsx
2041
2048
  import { forwardRef as forwardRef39 } from "react";
2042
- import { jsx as jsx46, jsxs as jsxs37 } from "react/jsx-runtime";
2049
+ import { jsx as jsx46, jsxs as jsxs38 } from "react/jsx-runtime";
2043
2050
  var Order = forwardRef39((delegated, ref) => {
2044
- return /* @__PURE__ */ jsxs37("svg", {
2051
+ return /* @__PURE__ */ jsxs38("svg", {
2045
2052
  ref,
2046
2053
  width: "22",
2047
2054
  height: "23",
@@ -2080,9 +2087,9 @@ Order.displayName = "OrderIcon";
2080
2087
 
2081
2088
  // src/iconography/particle.tsx
2082
2089
  import { forwardRef as forwardRef40 } from "react";
2083
- import { jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
2090
+ import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
2084
2091
  var Particle = forwardRef40((delegated, ref) => {
2085
- return /* @__PURE__ */ jsxs38("svg", {
2092
+ return /* @__PURE__ */ jsxs39("svg", {
2086
2093
  ref,
2087
2094
  width: "22",
2088
2095
  height: "20",
@@ -2164,9 +2171,9 @@ Particle.displayName = "ParticleIcon";
2164
2171
 
2165
2172
  // src/iconography/people.tsx
2166
2173
  import { forwardRef as forwardRef41 } from "react";
2167
- import { jsx as jsx48, jsxs as jsxs39 } from "react/jsx-runtime";
2174
+ import { jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
2168
2175
  var People = forwardRef41((delegated, ref) => {
2169
- return /* @__PURE__ */ jsxs39("svg", {
2176
+ return /* @__PURE__ */ jsxs40("svg", {
2170
2177
  ref,
2171
2178
  width: "17",
2172
2179
  height: "16",
@@ -2229,9 +2236,9 @@ People.displayName = "PeopleIcon";
2229
2236
 
2230
2237
  // src/iconography/percentage.tsx
2231
2238
  import { forwardRef as forwardRef42 } from "react";
2232
- import { jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
2239
+ import { jsx as jsx49, jsxs as jsxs41 } from "react/jsx-runtime";
2233
2240
  var Percentage = forwardRef42((delegated, ref) => {
2234
- return /* @__PURE__ */ jsxs40("svg", {
2241
+ return /* @__PURE__ */ jsxs41("svg", {
2235
2242
  ref,
2236
2243
  width: "17",
2237
2244
  height: "16",
@@ -2276,9 +2283,9 @@ Percentage.displayName = "PercentageIcon";
2276
2283
 
2277
2284
  // src/iconography/pin.tsx
2278
2285
  import { forwardRef as forwardRef43 } from "react";
2279
- import { jsx as jsx50, jsxs as jsxs41 } from "react/jsx-runtime";
2286
+ import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
2280
2287
  var Pin = forwardRef43((delegated, ref) => {
2281
- return /* @__PURE__ */ jsxs41("svg", {
2288
+ return /* @__PURE__ */ jsxs42("svg", {
2282
2289
  ref,
2283
2290
  width: "26",
2284
2291
  height: "26",
@@ -2309,9 +2316,9 @@ Pin.displayName = "PinIcon";
2309
2316
 
2310
2317
  // src/iconography/plans-and-pricing.tsx
2311
2318
  import { forwardRef as forwardRef44 } from "react";
2312
- import { jsx as jsx51, jsxs as jsxs42 } from "react/jsx-runtime";
2319
+ import { jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
2313
2320
  var PlansAndPricing = forwardRef44((delegated, ref) => {
2314
- return /* @__PURE__ */ jsxs42("svg", {
2321
+ return /* @__PURE__ */ jsxs43("svg", {
2315
2322
  ref,
2316
2323
  width: "17",
2317
2324
  height: "16",
@@ -2370,9 +2377,9 @@ PlansAndPricing.displayName = "PlansAndPricingIcon";
2370
2377
 
2371
2378
  // src/iconography/price-list.tsx
2372
2379
  import { forwardRef as forwardRef45 } from "react";
2373
- import { jsx as jsx52, jsxs as jsxs43 } from "react/jsx-runtime";
2380
+ import { jsx as jsx52, jsxs as jsxs44 } from "react/jsx-runtime";
2374
2381
  var PriceList = forwardRef45((delegated, ref) => {
2375
- return /* @__PURE__ */ jsxs43("svg", {
2382
+ return /* @__PURE__ */ jsxs44("svg", {
2376
2383
  ref,
2377
2384
  width: "23",
2378
2385
  height: "22",
@@ -2427,9 +2434,9 @@ PriceList.displayName = "PriceListIcon";
2427
2434
 
2428
2435
  // src/iconography/price-tag.tsx
2429
2436
  import { forwardRef as forwardRef46 } from "react";
2430
- import { jsx as jsx53, jsxs as jsxs44 } from "react/jsx-runtime";
2437
+ import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
2431
2438
  var PriceTag = forwardRef46((delegated, ref) => {
2432
- return /* @__PURE__ */ jsxs44("svg", {
2439
+ return /* @__PURE__ */ jsxs45("svg", {
2433
2440
  ref,
2434
2441
  width: "17",
2435
2442
  height: "16",
@@ -2476,9 +2483,9 @@ PriceTag.displayName = "PriceTagIcon";
2476
2483
 
2477
2484
  // src/iconography/product.tsx
2478
2485
  import { forwardRef as forwardRef47 } from "react";
2479
- import { jsx as jsx54, jsxs as jsxs45 } from "react/jsx-runtime";
2486
+ import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
2480
2487
  var Product = forwardRef47((delegated, ref) => {
2481
- return /* @__PURE__ */ jsxs45("svg", {
2488
+ return /* @__PURE__ */ jsxs46("svg", {
2482
2489
  ref,
2483
2490
  width: "34",
2484
2491
  height: "34",
@@ -2521,9 +2528,9 @@ Product.displayName = "ProductIcon";
2521
2528
 
2522
2529
  // src/iconography/restricted-catalogue.tsx
2523
2530
  import { forwardRef as forwardRef48 } from "react";
2524
- import { jsx as jsx55, jsxs as jsxs46 } from "react/jsx-runtime";
2531
+ import { jsx as jsx55, jsxs as jsxs47 } from "react/jsx-runtime";
2525
2532
  var RestrictedCatalogue = forwardRef48((delegated, ref) => {
2526
- return /* @__PURE__ */ jsxs46("svg", {
2533
+ return /* @__PURE__ */ jsxs47("svg", {
2527
2534
  ref,
2528
2535
  width: "22",
2529
2536
  height: "22",
@@ -2578,9 +2585,9 @@ RestrictedCatalogue.displayName = "RestrictedCatalogueIcon";
2578
2585
 
2579
2586
  // src/iconography/rocket.tsx
2580
2587
  import { forwardRef as forwardRef49 } from "react";
2581
- import { jsx as jsx56, jsxs as jsxs47 } from "react/jsx-runtime";
2588
+ import { jsx as jsx56, jsxs as jsxs48 } from "react/jsx-runtime";
2582
2589
  var Rocket = forwardRef49((delegated, ref) => {
2583
- return /* @__PURE__ */ jsxs47("svg", {
2590
+ return /* @__PURE__ */ jsxs48("svg", {
2584
2591
  ref,
2585
2592
  width: "16",
2586
2593
  height: "16",
@@ -2619,9 +2626,9 @@ Rocket.displayName = "RocketIcon";
2619
2626
 
2620
2627
  // src/iconography/search.tsx
2621
2628
  import { forwardRef as forwardRef50 } from "react";
2622
- import { jsx as jsx57, jsxs as jsxs48 } from "react/jsx-runtime";
2629
+ import { jsx as jsx57, jsxs as jsxs49 } from "react/jsx-runtime";
2623
2630
  var Search = forwardRef50((delegated, ref) => {
2624
- return /* @__PURE__ */ jsxs48("svg", {
2631
+ return /* @__PURE__ */ jsxs49("svg", {
2625
2632
  ref,
2626
2633
  width: "22",
2627
2634
  height: "23",
@@ -2654,9 +2661,9 @@ Search.displayName = "SearchIcon";
2654
2661
 
2655
2662
  // src/iconography/settings.tsx
2656
2663
  import { forwardRef as forwardRef51 } from "react";
2657
- import { jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
2664
+ import { jsx as jsx58, jsxs as jsxs50 } from "react/jsx-runtime";
2658
2665
  var Settings = forwardRef51((delegated, ref) => {
2659
- return /* @__PURE__ */ jsxs49("svg", {
2666
+ return /* @__PURE__ */ jsxs50("svg", {
2660
2667
  ref,
2661
2668
  width: "34",
2662
2669
  height: "34",
@@ -2690,9 +2697,9 @@ Settings.displayName = "SettingsIcon";
2690
2697
 
2691
2698
  // src/iconography/shapes.tsx
2692
2699
  import { forwardRef as forwardRef52 } from "react";
2693
- import { jsx as jsx59, jsxs as jsxs50 } from "react/jsx-runtime";
2700
+ import { jsx as jsx59, jsxs as jsxs51 } from "react/jsx-runtime";
2694
2701
  var Shapes = forwardRef52((delegated, ref) => {
2695
- return /* @__PURE__ */ jsxs50("svg", {
2702
+ return /* @__PURE__ */ jsxs51("svg", {
2696
2703
  ref,
2697
2704
  width: "23",
2698
2705
  height: "22",
@@ -2747,9 +2754,9 @@ Shapes.displayName = "ShapesIcon";
2747
2754
 
2748
2755
  // src/iconography/stock-location.tsx
2749
2756
  import { forwardRef as forwardRef53 } from "react";
2750
- import { jsx as jsx60, jsxs as jsxs51 } from "react/jsx-runtime";
2757
+ import { jsx as jsx60, jsxs as jsxs52 } from "react/jsx-runtime";
2751
2758
  var StockLocation = forwardRef53((delegated, ref) => {
2752
- return /* @__PURE__ */ jsxs51("svg", {
2759
+ return /* @__PURE__ */ jsxs52("svg", {
2753
2760
  ref,
2754
2761
  width: "17",
2755
2762
  height: "16",
@@ -2830,9 +2837,9 @@ StockLocation.displayName = "StockLocationIcon";
2830
2837
 
2831
2838
  // src/iconography/subscription.tsx
2832
2839
  import { forwardRef as forwardRef54 } from "react";
2833
- import { jsx as jsx61, jsxs as jsxs52 } from "react/jsx-runtime";
2840
+ import { jsx as jsx61, jsxs as jsxs53 } from "react/jsx-runtime";
2834
2841
  var Subscription = forwardRef54((delegated, ref) => {
2835
- return /* @__PURE__ */ jsxs52("svg", {
2842
+ return /* @__PURE__ */ jsxs53("svg", {
2836
2843
  ref,
2837
2844
  width: "34",
2838
2845
  height: "34",
@@ -2867,10 +2874,10 @@ Subscription.displayName = "SubscriptionIcon";
2867
2874
 
2868
2875
  // src/iconography/subscription-contracts.tsx
2869
2876
  import { forwardRef as forwardRef55 } from "react";
2870
- import { jsx as jsx62, jsxs as jsxs53 } from "react/jsx-runtime";
2877
+ import { jsx as jsx62, jsxs as jsxs54 } from "react/jsx-runtime";
2871
2878
  var SubscriptionContracts = forwardRef55(
2872
2879
  (delegated, ref) => {
2873
- return /* @__PURE__ */ jsxs53("svg", {
2880
+ return /* @__PURE__ */ jsxs54("svg", {
2874
2881
  ref,
2875
2882
  width: "23",
2876
2883
  height: "22",
@@ -2922,9 +2929,9 @@ SubscriptionContracts.displayName = "SubscriptionContractsIcon";
2922
2929
 
2923
2930
  // src/iconography/subscription-plans.tsx
2924
2931
  import { forwardRef as forwardRef56 } from "react";
2925
- import { jsx as jsx63, jsxs as jsxs54 } from "react/jsx-runtime";
2932
+ import { jsx as jsx63, jsxs as jsxs55 } from "react/jsx-runtime";
2926
2933
  var SubscriptionPlans = forwardRef56((delegated, ref) => {
2927
- return /* @__PURE__ */ jsxs54("svg", {
2934
+ return /* @__PURE__ */ jsxs55("svg", {
2928
2935
  ref,
2929
2936
  width: "23",
2930
2937
  height: "22",
@@ -2985,9 +2992,9 @@ SubscriptionPlans.displayName = "SubscriptionPlansIcon";
2985
2992
 
2986
2993
  // src/iconography/target.tsx
2987
2994
  import { forwardRef as forwardRef57 } from "react";
2988
- import { jsx as jsx64, jsxs as jsxs55 } from "react/jsx-runtime";
2995
+ import { jsx as jsx64, jsxs as jsxs56 } from "react/jsx-runtime";
2989
2996
  var Target = forwardRef57((delegated, ref) => {
2990
- return /* @__PURE__ */ jsxs55("svg", {
2997
+ return /* @__PURE__ */ jsxs56("svg", {
2991
2998
  ref,
2992
2999
  width: "23",
2993
3000
  height: "22",
@@ -3068,9 +3075,9 @@ Target.displayName = "TargetIcon";
3068
3075
 
3069
3076
  // src/iconography/topics.tsx
3070
3077
  import { forwardRef as forwardRef58 } from "react";
3071
- import { jsx as jsx65, jsxs as jsxs56 } from "react/jsx-runtime";
3078
+ import { jsx as jsx65, jsxs as jsxs57 } from "react/jsx-runtime";
3072
3079
  var Topics = forwardRef58((delegated, ref) => {
3073
- return /* @__PURE__ */ jsxs56("svg", {
3080
+ return /* @__PURE__ */ jsxs57("svg", {
3074
3081
  ref,
3075
3082
  width: "23",
3076
3083
  height: "23",
@@ -3129,9 +3136,9 @@ Topics.displayName = "TopicsIcon";
3129
3136
 
3130
3137
  // src/iconography/unpublish.tsx
3131
3138
  import { forwardRef as forwardRef59 } from "react";
3132
- import { jsx as jsx66, jsxs as jsxs57 } from "react/jsx-runtime";
3139
+ import { jsx as jsx66, jsxs as jsxs58 } from "react/jsx-runtime";
3133
3140
  var Unpublish = forwardRef59((delegated, ref) => {
3134
- return /* @__PURE__ */ jsxs57("svg", {
3141
+ return /* @__PURE__ */ jsxs58("svg", {
3135
3142
  ref,
3136
3143
  width: "22",
3137
3144
  height: "22",
@@ -3178,9 +3185,9 @@ Unpublish.displayName = "UnpublishIcon";
3178
3185
 
3179
3186
  // src/iconography/usage.tsx
3180
3187
  import { forwardRef as forwardRef60 } from "react";
3181
- import { jsx as jsx67, jsxs as jsxs58 } from "react/jsx-runtime";
3188
+ import { jsx as jsx67, jsxs as jsxs59 } from "react/jsx-runtime";
3182
3189
  var Usage = forwardRef60((delegated, ref) => {
3183
- return /* @__PURE__ */ jsxs58("svg", {
3190
+ return /* @__PURE__ */ jsxs59("svg", {
3184
3191
  ref,
3185
3192
  width: "23",
3186
3193
  height: "23",
@@ -3215,9 +3222,9 @@ Usage.displayName = "UsageIcon";
3215
3222
 
3216
3223
  // src/iconography/usage-meter.tsx
3217
3224
  import { forwardRef as forwardRef61 } from "react";
3218
- import { jsx as jsx68, jsxs as jsxs59 } from "react/jsx-runtime";
3225
+ import { jsx as jsx68, jsxs as jsxs60 } from "react/jsx-runtime";
3219
3226
  var UsageMeter = forwardRef61((delegated, ref) => {
3220
- return /* @__PURE__ */ jsxs59("svg", {
3227
+ return /* @__PURE__ */ jsxs60("svg", {
3221
3228
  ref,
3222
3229
  width: "17",
3223
3230
  height: "16",
@@ -3225,7 +3232,7 @@ var UsageMeter = forwardRef61((delegated, ref) => {
3225
3232
  fill: "none",
3226
3233
  ...delegated,
3227
3234
  children: [
3228
- /* @__PURE__ */ jsxs59("g", {
3235
+ /* @__PURE__ */ jsxs60("g", {
3229
3236
  clipPath: "url(#a)",
3230
3237
  children: [
3231
3238
  /* @__PURE__ */ jsx68("path", {
@@ -3267,9 +3274,9 @@ UsageMeter.displayName = "UsageMeterIcon";
3267
3274
 
3268
3275
  // src/iconography/user-card.tsx
3269
3276
  import { forwardRef as forwardRef62 } from "react";
3270
- import { jsx as jsx69, jsxs as jsxs60 } from "react/jsx-runtime";
3277
+ import { jsx as jsx69, jsxs as jsxs61 } from "react/jsx-runtime";
3271
3278
  var UserCard = forwardRef62((delegated, ref) => {
3272
- return /* @__PURE__ */ jsxs60("svg", {
3279
+ return /* @__PURE__ */ jsxs61("svg", {
3273
3280
  ref,
3274
3281
  width: "17",
3275
3282
  height: "16",
@@ -3308,9 +3315,9 @@ UserCard.displayName = "UserCardIcon";
3308
3315
 
3309
3316
  // src/iconography/users.tsx
3310
3317
  import { forwardRef as forwardRef63 } from "react";
3311
- import { jsx as jsx70, jsxs as jsxs61 } from "react/jsx-runtime";
3318
+ import { jsx as jsx70, jsxs as jsxs62 } from "react/jsx-runtime";
3312
3319
  var Users = forwardRef63((delegated, ref) => {
3313
- return /* @__PURE__ */ jsxs61("svg", {
3320
+ return /* @__PURE__ */ jsxs62("svg", {
3314
3321
  ref,
3315
3322
  width: "24",
3316
3323
  height: "24",
@@ -3355,9 +3362,9 @@ Users.displayName = "UsersIcon";
3355
3362
 
3356
3363
  // src/iconography/warning.tsx
3357
3364
  import { forwardRef as forwardRef64 } from "react";
3358
- import { jsx as jsx71, jsxs as jsxs62 } from "react/jsx-runtime";
3365
+ import { jsx as jsx71, jsxs as jsxs63 } from "react/jsx-runtime";
3359
3366
  var Warning = forwardRef64((delegated, ref) => {
3360
- return /* @__PURE__ */ jsxs62("svg", {
3367
+ return /* @__PURE__ */ jsxs63("svg", {
3361
3368
  ref,
3362
3369
  xmlns: "http://www.w3.org/2000/svg",
3363
3370
  width: "22",
@@ -3466,7 +3473,7 @@ var Icon = {
3466
3473
  };
3467
3474
 
3468
3475
  // src/dialog/dialog.tsx
3469
- import { jsx as jsx72, jsxs as jsxs63 } from "react/jsx-runtime";
3476
+ import { jsx as jsx72, jsxs as jsxs64 } from "react/jsx-runtime";
3470
3477
  var IconMap = {
3471
3478
  error: Icon.Error,
3472
3479
  info: Icon.Info,
@@ -3482,13 +3489,13 @@ var dialogContentStyles = cva5("c-dialog", {
3482
3489
  function DialogContent({ children, closable = true, type, className, container, ...delegated }) {
3483
3490
  const withIcon = typeof type !== "undefined";
3484
3491
  const IconComponent = type && IconMap[type];
3485
- return /* @__PURE__ */ jsxs63(DialogPrimitive.Portal, {
3492
+ return /* @__PURE__ */ jsxs64(DialogPrimitive.Portal, {
3486
3493
  container,
3487
3494
  children: [
3488
3495
  /* @__PURE__ */ jsx72(DialogPrimitive.Overlay, {
3489
3496
  className: "c-dialog-overlay"
3490
3497
  }),
3491
- /* @__PURE__ */ jsxs63(DialogPrimitive.Content, {
3498
+ /* @__PURE__ */ jsxs64(DialogPrimitive.Content, {
3492
3499
  className: dialogContentStyles({ withIcon, class: className }),
3493
3500
  ...delegated,
3494
3501
  children: [
@@ -3549,7 +3556,7 @@ DialogBase.Overlay = DialogPrimitive.Overlay;
3549
3556
  DialogBase.Close = DialogPrimitive.Close;
3550
3557
 
3551
3558
  // src/dialog/confirm-dialog.tsx
3552
- import { jsx as jsx73, jsxs as jsxs64 } from "react/jsx-runtime";
3559
+ import { jsx as jsx73, jsxs as jsxs65 } from "react/jsx-runtime";
3553
3560
  function ConfirmDialog({
3554
3561
  open,
3555
3562
  close,
@@ -3588,7 +3595,7 @@ function ConfirmDialog({
3588
3595
  return /* @__PURE__ */ jsx73(DialogRoot, {
3589
3596
  open,
3590
3597
  onOpenChange: () => close(),
3591
- children: /* @__PURE__ */ jsxs64(Dialog.Content, {
3598
+ children: /* @__PURE__ */ jsxs65(Dialog.Content, {
3592
3599
  onEscapeKeyDown,
3593
3600
  onInteractOutside,
3594
3601
  onPointerDownOutside,
@@ -3602,7 +3609,7 @@ function ConfirmDialog({
3602
3609
  children: description
3603
3610
  }),
3604
3611
  content,
3605
- (displayOk || okCancel || displayCancel) && /* @__PURE__ */ jsxs64("div", {
3612
+ (displayOk || okCancel || displayCancel) && /* @__PURE__ */ jsxs65("div", {
3606
3613
  className: "mt-4 flex items-center justify-end gap-4",
3607
3614
  children: [
3608
3615
  cancelButton,
@@ -3892,7 +3899,7 @@ var Label2 = forwardRef68(({ className, ...delegated }, ref) => {
3892
3899
  Label2.displayName = "Label";
3893
3900
 
3894
3901
  // src/input-with-label/input-with-label.tsx
3895
- import { Fragment, jsx as jsx80, jsxs as jsxs65 } from "react/jsx-runtime";
3902
+ import { Fragment, jsx as jsx80, jsxs as jsxs66 } from "react/jsx-runtime";
3896
3903
  var inputWithLabelStyles = cva9(["c-input-with-label"], {
3897
3904
  variants: {
3898
3905
  variant: {
@@ -3910,13 +3917,13 @@ var InputWithLabel = forwardRef69(
3910
3917
  ({ className, label, append, errorMessage, status, variant, id, labelProps, ...delegated }, ref) => {
3911
3918
  const { className: labelClassName, ...labelPropsRest } = labelProps ?? {};
3912
3919
  return /* @__PURE__ */ jsx80(Fragment, {
3913
- children: /* @__PURE__ */ jsxs65(Label2, {
3920
+ children: /* @__PURE__ */ jsxs66(Label2, {
3914
3921
  className: inputWithLabelStyles({ status, variant, className: labelClassName }),
3915
3922
  htmlFor: id,
3916
3923
  ...labelPropsRest,
3917
3924
  children: [
3918
3925
  label,
3919
- /* @__PURE__ */ jsxs65("span", {
3926
+ /* @__PURE__ */ jsxs66("span", {
3920
3927
  className: "c-input-with-label-input-wrap",
3921
3928
  children: [
3922
3929
  /* @__PURE__ */ jsx80(Input, {
@@ -3974,10 +3981,10 @@ var Radio = {
3974
3981
  // src/select/select-item.tsx
3975
3982
  import { forwardRef as forwardRef70 } from "react";
3976
3983
  import * as SelectPrimitives from "@radix-ui/react-select";
3977
- import { jsx as jsx83, jsxs as jsxs66 } from "react/jsx-runtime";
3984
+ import { jsx as jsx83, jsxs as jsxs67 } from "react/jsx-runtime";
3978
3985
  var SelectItem = forwardRef70((props, ref) => {
3979
3986
  const { children, ...delegated } = props;
3980
- return /* @__PURE__ */ jsxs66(SelectPrimitives.Item, {
3987
+ return /* @__PURE__ */ jsxs67(SelectPrimitives.Item, {
3981
3988
  className: "c-select-item",
3982
3989
  ref,
3983
3990
  ...delegated,
@@ -3995,7 +4002,7 @@ SelectItem.displayName = "SelectItem";
3995
4002
  import { forwardRef as forwardRef71 } from "react";
3996
4003
  import { cva as cva10 } from "class-variance-authority";
3997
4004
  import * as SelectPrimitives2 from "@radix-ui/react-select";
3998
- import { jsx as jsx84, jsxs as jsxs67 } from "react/jsx-runtime";
4005
+ import { jsx as jsx84, jsxs as jsxs68 } from "react/jsx-runtime";
3999
4006
  var selectTriggerStyles = cva10("c-select-trigger", {
4000
4007
  variants: {
4001
4008
  size: {
@@ -4011,10 +4018,10 @@ var selectTriggerStyles = cva10("c-select-trigger", {
4011
4018
  });
4012
4019
  var SelectContainer = forwardRef71(
4013
4020
  ({ children, id, placeholder, disabled, size, ...delegated }, ref) => {
4014
- return /* @__PURE__ */ jsxs67(SelectPrimitives2.Root, {
4021
+ return /* @__PURE__ */ jsxs68(SelectPrimitives2.Root, {
4015
4022
  ...delegated,
4016
4023
  children: [
4017
- /* @__PURE__ */ jsxs67(SelectPrimitives2.Trigger, {
4024
+ /* @__PURE__ */ jsxs68(SelectPrimitives2.Trigger, {
4018
4025
  ref,
4019
4026
  className: selectTriggerStyles({ size }),
4020
4027
  disabled,
@@ -4030,7 +4037,7 @@ var SelectContainer = forwardRef71(
4030
4037
  ]
4031
4038
  }),
4032
4039
  /* @__PURE__ */ jsx84(SelectPrimitives2.Portal, {
4033
- children: /* @__PURE__ */ jsxs67(SelectPrimitives2.Content, {
4040
+ children: /* @__PURE__ */ jsxs68(SelectPrimitives2.Content, {
4034
4041
  className: "c-select-content",
4035
4042
  children: [
4036
4043
  /* @__PURE__ */ jsx84(SelectPrimitives2.ScrollUpButton, {}),
@@ -4058,9 +4065,9 @@ var Select = {
4058
4065
  import { forwardRef as forwardRef72 } from "react";
4059
4066
  import { cx as cx10 } from "class-variance-authority";
4060
4067
  import * as SliderPrimitive from "@radix-ui/react-slider";
4061
- import { jsx as jsx85, jsxs as jsxs68 } from "react/jsx-runtime";
4068
+ import { jsx as jsx85, jsxs as jsxs69 } from "react/jsx-runtime";
4062
4069
  var Slider = forwardRef72(({ className, transparentRange, ...delegated }, ref) => {
4063
- return /* @__PURE__ */ jsxs68(SliderPrimitive.Root, {
4070
+ return /* @__PURE__ */ jsxs69(SliderPrimitive.Root, {
4064
4071
  className: cx10("c-slider-root", className),
4065
4072
  ref,
4066
4073
  ...delegated,
@@ -4080,7 +4087,7 @@ var Slider = forwardRef72(({ className, transparentRange, ...delegated }, ref) =
4080
4087
 
4081
4088
  // src/tag/tag.tsx
4082
4089
  import { cva as cva11 } from "class-variance-authority";
4083
- import { jsx as jsx86, jsxs as jsxs69 } from "react/jsx-runtime";
4090
+ import { jsx as jsx86, jsxs as jsxs70 } from "react/jsx-runtime";
4084
4091
  var tagStyles = cva11("c-tag", {
4085
4092
  variants: {
4086
4093
  variant: {
@@ -4100,7 +4107,7 @@ var tagStyles = cva11("c-tag", {
4100
4107
  }
4101
4108
  });
4102
4109
  function Tag({ children, className, variant, size, prepend, onRemove, ...delegated }) {
4103
- return /* @__PURE__ */ jsxs69("div", {
4110
+ return /* @__PURE__ */ jsxs70("div", {
4104
4111
  className: tagStyles({ className, variant, size }),
4105
4112
  ...delegated,
4106
4113
  children: [
@@ -4109,7 +4116,7 @@ function Tag({ children, className, variant, size, prepend, onRemove, ...delegat
4109
4116
  children: prepend
4110
4117
  }),
4111
4118
  children,
4112
- onRemove && /* @__PURE__ */ jsxs69("button", {
4119
+ onRemove && /* @__PURE__ */ jsxs70("button", {
4113
4120
  type: "button",
4114
4121
  className: "c-tag__remove-button",
4115
4122
  onClick: (e) => {
@@ -4787,7 +4794,7 @@ import "react";
4787
4794
  import { useState as useState2 } from "react";
4788
4795
  import { $getNearestNodeFromDOMNode as $getNearestNodeFromDOMNode2 } from "lexical";
4789
4796
  import { $isCodeNode as $isCodeNode3 } from "@lexical/code";
4790
- import { jsx as jsx91, jsxs as jsxs70 } from "react/jsx-runtime";
4797
+ import { jsx as jsx91, jsxs as jsxs71 } from "react/jsx-runtime";
4791
4798
  var PRETTIER_PARSER_MODULES = {
4792
4799
  css: () => import("prettier/parser-postcss"),
4793
4800
  html: () => import("prettier/parser-html"),
@@ -4873,7 +4880,7 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
4873
4880
  setTipsVisible(false);
4874
4881
  }
4875
4882
  }
4876
- return /* @__PURE__ */ jsxs70("div", {
4883
+ return /* @__PURE__ */ jsxs71("div", {
4877
4884
  className: "c-rte-prettier-wrapper",
4878
4885
  children: [
4879
4886
  /* @__PURE__ */ jsx91("button", {
@@ -4897,7 +4904,7 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
4897
4904
  }
4898
4905
 
4899
4906
  // src/rich-text-editor/plugins/CodeActionMenuPlugin/index.tsx
4900
- import { Fragment as Fragment2, jsx as jsx92, jsxs as jsxs71 } from "react/jsx-runtime";
4907
+ import { Fragment as Fragment2, jsx as jsx92, jsxs as jsxs72 } from "react/jsx-runtime";
4901
4908
  var CODE_PADDING = 0;
4902
4909
  function CodeActionMenuContainer({ anchorElem }) {
4903
4910
  const [editor] = useLexicalComposerContext();
@@ -4975,7 +4982,7 @@ function CodeActionMenuContainer({ anchorElem }) {
4975
4982
  const normalizedLang = normalizeCodeLang(lang);
4976
4983
  const codeFriendlyName = getLanguageFriendlyName(lang);
4977
4984
  return /* @__PURE__ */ jsx92(Fragment2, {
4978
- children: isShown ? /* @__PURE__ */ jsxs71("div", {
4985
+ children: isShown ? /* @__PURE__ */ jsxs72("div", {
4979
4986
  className: "c-rte-code-action-menu-container",
4980
4987
  style: { ...position },
4981
4988
  children: [
@@ -5084,7 +5091,7 @@ import { $findMatchingParent, mergeRegister } from "@lexical/utils";
5084
5091
  import { Suspense, useEffect as useEffect4, useState as useState5 } from "react";
5085
5092
  import { $getSelection as $getSelection2, $isTextNode as $isTextNode3 } from "lexical";
5086
5093
  import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
5087
- import { Fragment as Fragment3, jsx as jsx94, jsxs as jsxs72 } from "react/jsx-runtime";
5094
+ import { Fragment as Fragment3, jsx as jsx94, jsxs as jsxs73 } from "react/jsx-runtime";
5088
5095
  var PREVIEW_CACHE = {};
5089
5096
  var URL_MATCHER2 = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
5090
5097
  function useSuspenseRequest(url) {
@@ -5141,7 +5148,7 @@ function LinkPreviewContent({
5141
5148
  if (!hasPreview) {
5142
5149
  return null;
5143
5150
  }
5144
- return /* @__PURE__ */ jsxs72("div", {
5151
+ return /* @__PURE__ */ jsxs73("div", {
5145
5152
  className: "c-rte-link-preview",
5146
5153
  children: [
5147
5154
  preview.google.image && /* @__PURE__ */ jsx94("div", {
@@ -5182,7 +5189,7 @@ function LinkPreview({
5182
5189
  url
5183
5190
  }) {
5184
5191
  return /* @__PURE__ */ jsx94(Suspense, {
5185
- fallback: /* @__PURE__ */ jsxs72(Fragment3, {
5192
+ fallback: /* @__PURE__ */ jsxs73(Fragment3, {
5186
5193
  children: [
5187
5194
  /* @__PURE__ */ jsx94(Glimmer, {
5188
5195
  style: { height: "80px" },
@@ -5266,7 +5273,7 @@ function validateUrl(url) {
5266
5273
  }
5267
5274
 
5268
5275
  // src/rich-text-editor/plugins/FloatingLinkEditorPlugin/index.tsx
5269
- import { Fragment as Fragment4, jsx as jsx95, jsxs as jsxs73 } from "react/jsx-runtime";
5276
+ import { Fragment as Fragment4, jsx as jsx95, jsxs as jsxs74 } from "react/jsx-runtime";
5270
5277
  function FloatingLinkEditor({
5271
5278
  editor,
5272
5279
  isLink,
@@ -5390,7 +5397,7 @@ function FloatingLinkEditor({
5390
5397
  return /* @__PURE__ */ jsx95("div", {
5391
5398
  ref: editorRef,
5392
5399
  className: "c-rte-link-editor",
5393
- children: isEditMode ? /* @__PURE__ */ jsxs73("div", {
5400
+ children: isEditMode ? /* @__PURE__ */ jsxs74("div", {
5394
5401
  children: [
5395
5402
  /* @__PURE__ */ jsx95("div", {
5396
5403
  className: "c-rte-link-editor-input-group",
@@ -5438,12 +5445,12 @@ function FloatingLinkEditor({
5438
5445
  })
5439
5446
  })
5440
5447
  ]
5441
- }) : /* @__PURE__ */ jsxs73(Fragment4, {
5448
+ }) : /* @__PURE__ */ jsxs74(Fragment4, {
5442
5449
  children: [
5443
- /* @__PURE__ */ jsxs73("div", {
5450
+ /* @__PURE__ */ jsxs74("div", {
5444
5451
  className: "c-rte-link-editor-link-input",
5445
5452
  children: [
5446
- /* @__PURE__ */ jsxs73("div", {
5453
+ /* @__PURE__ */ jsxs74("div", {
5447
5454
  className: "c-rte-link-editor-link-preview",
5448
5455
  children: [
5449
5456
  /* @__PURE__ */ jsx95("a", {
@@ -5452,7 +5459,7 @@ function FloatingLinkEditor({
5452
5459
  rel: "noopener noreferrer",
5453
5460
  children: linkUrl
5454
5461
  }),
5455
- rel || target ? /* @__PURE__ */ jsxs73("div", {
5462
+ rel || target ? /* @__PURE__ */ jsxs74("div", {
5456
5463
  className: "c-rte-link-editor-preview-attrs",
5457
5464
  children: [
5458
5465
  rel && /* @__PURE__ */ jsx95("div", {
@@ -5582,7 +5589,7 @@ function getDOMRangeRect(nativeSelection, rootElement) {
5582
5589
  }
5583
5590
 
5584
5591
  // src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.tsx
5585
- import { Fragment as Fragment5, jsx as jsx96, jsxs as jsxs74 } from "react/jsx-runtime";
5592
+ import { jsx as jsx96, jsxs as jsxs75 } from "react/jsx-runtime";
5586
5593
  function TextFormatFloatingToolbar({
5587
5594
  editor,
5588
5595
  anchorElem,
@@ -5655,97 +5662,98 @@ function TextFormatFloatingToolbar({
5655
5662
  )
5656
5663
  );
5657
5664
  }, [editor, updateTextFormatFloatingToolbar]);
5658
- return /* @__PURE__ */ jsx96("div", {
5665
+ if (!editor.isEditable()) {
5666
+ return /* @__PURE__ */ jsx96("span", {});
5667
+ }
5668
+ return /* @__PURE__ */ jsxs75("div", {
5659
5669
  ref: popupCharStylesEditorRef,
5660
5670
  className: "c-rte-floating-text-format-tb-plugin",
5661
- children: editor.isEditable() && /* @__PURE__ */ jsxs74(Fragment5, {
5662
- children: [
5663
- /* @__PURE__ */ jsx96(IconButton, {
5664
- onClick: () => {
5665
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
5666
- },
5667
- style: { padding: 0, overflow: "hidden" },
5668
- title: tr(IS_APPLE ? "actionFormatAsStrongTitleApple" : "actionFormatAsStrongTitle"),
5669
- "aria-label": tr("actionFormatAsStrongLabel"),
5670
- children: /* @__PURE__ */ jsx96("i", {
5671
- className: `c-rte-icon-bold c-rte-floating-text-format-tb-plugin__format-icon ${isBold ? "selected" : ""}`
5672
- })
5673
- }),
5674
- /* @__PURE__ */ jsx96(IconButton, {
5675
- style: { padding: 0, overflow: "hidden" },
5676
- onClick: () => {
5677
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
5678
- },
5679
- title: tr("actionFormatAsEmphasizedTitle"),
5680
- "aria-label": tr("actionFormatAsEmphasizedLabel"),
5681
- children: /* @__PURE__ */ jsx96("i", {
5682
- className: `c-rte-icon-italic c-rte-floating-text-format-tb-plugin__format-icon ${isItalic ? "selected" : ""}`
5683
- })
5684
- }),
5685
- /* @__PURE__ */ jsx96(IconButton, {
5686
- style: { padding: 0, overflow: "hidden" },
5687
- onClick: () => {
5688
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "underline");
5689
- },
5690
- title: tr("actionFormatAsUnderlinedTitle"),
5691
- "aria-label": tr("actionFormatAsUnderlinedLabel"),
5692
- children: /* @__PURE__ */ jsx96("i", {
5693
- className: `c-rte-icon-underline c-rte-floating-text-format-tb-plugin__format-icon ${isUnderline ? "selected" : ""}`
5694
- })
5695
- }),
5696
- /* @__PURE__ */ jsx96(IconButton, {
5697
- style: { padding: 0, overflow: "hidden" },
5698
- onClick: () => {
5699
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "strikethrough");
5700
- },
5701
- title: tr("actionFormatWithStrikethroughTitle"),
5702
- "aria-label": tr("actionFormatWithStrikethroughLabel"),
5703
- children: /* @__PURE__ */ jsx96("i", {
5704
- className: `c-rte-icon-strikethrough c-rte-floating-text-format-tb-plugin__format-icon ${isStrikethrough ? "selected" : ""}`
5705
- })
5706
- }),
5707
- /* @__PURE__ */ jsx96(IconButton, {
5708
- style: { padding: 0, overflow: "hidden" },
5709
- onClick: () => {
5710
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "subscript");
5711
- },
5712
- title: tr("actionFormatWithSubscriptTitle"),
5713
- "aria-label": tr("actionFormatWithSubscriptLabel"),
5714
- children: /* @__PURE__ */ jsx96("i", {
5715
- className: `c-rte-icon-subscript c-rte-floating-text-format-tb-plugin__format-icon ${isSubscript ? "selected" : ""}`
5716
- })
5717
- }),
5718
- /* @__PURE__ */ jsx96(IconButton, {
5719
- style: { padding: 0, overflow: "hidden" },
5720
- onClick: () => {
5721
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "superscript");
5722
- },
5723
- title: tr("actionFormatWithSuperscriptTitle"),
5724
- "aria-label": tr("actionFormatWithSuperscriptLabel"),
5725
- children: /* @__PURE__ */ jsx96("i", {
5726
- className: `c-rte-icon-superscript c-rte-floating-text-format-tb-plugin__format-icon ${isSuperscript ? "selected" : ""}`
5727
- })
5728
- }),
5729
- /* @__PURE__ */ jsx96(IconButton, {
5730
- style: { padding: 0, overflow: "hidden" },
5731
- onClick: () => {
5732
- editor.dispatchCommand(FORMAT_TEXT_COMMAND, "code");
5733
- },
5734
- "aria-label": tr("actionInsertCodeBlock"),
5735
- children: /* @__PURE__ */ jsx96("i", {
5736
- className: `c-rte-icon-code c-rte-floating-text-format-tb-plugin__format-icon ${isCode ? "selected" : ""}`
5737
- })
5738
- }),
5739
- /* @__PURE__ */ jsx96(IconButton, {
5740
- style: { padding: 0, overflow: "hidden" },
5741
- onClick: insertLink,
5742
- "aria-label": tr("actionInsertlink"),
5743
- children: /* @__PURE__ */ jsx96("i", {
5744
- className: `c-rte-icon-link c-rte-floating-text-format-tb-plugin__format-icon ${isLink ? "selected" : ""}`
5745
- })
5671
+ children: [
5672
+ /* @__PURE__ */ jsx96(IconButton, {
5673
+ onClick: () => {
5674
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
5675
+ },
5676
+ style: { padding: 0, overflow: "hidden" },
5677
+ title: tr(IS_APPLE ? "actionFormatAsStrongTitleApple" : "actionFormatAsStrongTitle"),
5678
+ "aria-label": tr("actionFormatAsStrongLabel"),
5679
+ children: /* @__PURE__ */ jsx96("i", {
5680
+ className: `c-rte-icon-bold c-rte-floating-text-format-tb-plugin__format-icon ${isBold ? "selected" : ""}`
5746
5681
  })
5747
- ]
5748
- })
5682
+ }),
5683
+ /* @__PURE__ */ jsx96(IconButton, {
5684
+ style: { padding: 0, overflow: "hidden" },
5685
+ onClick: () => {
5686
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
5687
+ },
5688
+ title: tr("actionFormatAsEmphasizedTitle"),
5689
+ "aria-label": tr("actionFormatAsEmphasizedLabel"),
5690
+ children: /* @__PURE__ */ jsx96("i", {
5691
+ className: `c-rte-icon-italic c-rte-floating-text-format-tb-plugin__format-icon ${isItalic ? "selected" : ""}`
5692
+ })
5693
+ }),
5694
+ /* @__PURE__ */ jsx96(IconButton, {
5695
+ style: { padding: 0, overflow: "hidden" },
5696
+ onClick: () => {
5697
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "underline");
5698
+ },
5699
+ title: tr("actionFormatAsUnderlinedTitle"),
5700
+ "aria-label": tr("actionFormatAsUnderlinedLabel"),
5701
+ children: /* @__PURE__ */ jsx96("i", {
5702
+ className: `c-rte-icon-underline c-rte-floating-text-format-tb-plugin__format-icon ${isUnderline ? "selected" : ""}`
5703
+ })
5704
+ }),
5705
+ /* @__PURE__ */ jsx96(IconButton, {
5706
+ style: { padding: 0, overflow: "hidden" },
5707
+ onClick: () => {
5708
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "strikethrough");
5709
+ },
5710
+ title: tr("actionFormatWithStrikethroughTitle"),
5711
+ "aria-label": tr("actionFormatWithStrikethroughLabel"),
5712
+ children: /* @__PURE__ */ jsx96("i", {
5713
+ className: `c-rte-icon-strikethrough c-rte-floating-text-format-tb-plugin__format-icon ${isStrikethrough ? "selected" : ""}`
5714
+ })
5715
+ }),
5716
+ /* @__PURE__ */ jsx96(IconButton, {
5717
+ style: { padding: 0, overflow: "hidden" },
5718
+ onClick: () => {
5719
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "subscript");
5720
+ },
5721
+ title: tr("actionFormatWithSubscriptTitle"),
5722
+ "aria-label": tr("actionFormatWithSubscriptLabel"),
5723
+ children: /* @__PURE__ */ jsx96("i", {
5724
+ className: `c-rte-icon-subscript c-rte-floating-text-format-tb-plugin__format-icon ${isSubscript ? "selected" : ""}`
5725
+ })
5726
+ }),
5727
+ /* @__PURE__ */ jsx96(IconButton, {
5728
+ style: { padding: 0, overflow: "hidden" },
5729
+ onClick: () => {
5730
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "superscript");
5731
+ },
5732
+ title: tr("actionFormatWithSuperscriptTitle"),
5733
+ "aria-label": tr("actionFormatWithSuperscriptLabel"),
5734
+ children: /* @__PURE__ */ jsx96("i", {
5735
+ className: `c-rte-icon-superscript c-rte-floating-text-format-tb-plugin__format-icon ${isSuperscript ? "selected" : ""}`
5736
+ })
5737
+ }),
5738
+ /* @__PURE__ */ jsx96(IconButton, {
5739
+ style: { padding: 0, overflow: "hidden" },
5740
+ onClick: () => {
5741
+ editor.dispatchCommand(FORMAT_TEXT_COMMAND, "code");
5742
+ },
5743
+ "aria-label": tr("actionInsertCodeBlock"),
5744
+ children: /* @__PURE__ */ jsx96("i", {
5745
+ className: `c-rte-icon-code c-rte-floating-text-format-tb-plugin__format-icon ${isCode ? "selected" : ""}`
5746
+ })
5747
+ }),
5748
+ /* @__PURE__ */ jsx96(IconButton, {
5749
+ style: { padding: 0, overflow: "hidden" },
5750
+ onClick: insertLink,
5751
+ "aria-label": tr("actionInsertlink"),
5752
+ children: /* @__PURE__ */ jsx96("i", {
5753
+ className: `c-rte-icon-link c-rte-floating-text-format-tb-plugin__format-icon ${isLink ? "selected" : ""}`
5754
+ })
5755
+ })
5756
+ ]
5749
5757
  });
5750
5758
  }
5751
5759
  function useFloatingTextFormatToolbar(editor, anchorElem) {
@@ -6036,7 +6044,7 @@ import {
6036
6044
  TableCellHeaderStates,
6037
6045
  TableCellNode as TableCellNode2
6038
6046
  } from "@lexical/table";
6039
- import { Fragment as Fragment6, jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
6047
+ import { Fragment as Fragment5, jsx as jsx98, jsxs as jsxs76 } from "react/jsx-runtime";
6040
6048
  function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
6041
6049
  const [editor] = useLexicalComposerContext9();
6042
6050
  const [tableCellNode, updateTableCellNode] = useState8(_tableCellNode);
@@ -6191,7 +6199,7 @@ function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
6191
6199
  clearTableSelection();
6192
6200
  });
6193
6201
  }, [editor, tableCellNode, clearTableSelection]);
6194
- return /* @__PURE__ */ jsxs75(Fragment6, {
6202
+ return /* @__PURE__ */ jsxs76(Fragment5, {
6195
6203
  children: [
6196
6204
  /* @__PURE__ */ jsx98(DropdownMenu.Item, {
6197
6205
  onSelect: () => insertTableRowAtSelection(false),
@@ -6388,7 +6396,7 @@ import {
6388
6396
  import { useRef as useRef6 } from "react";
6389
6397
  import { CLEAR_EDITOR_COMMAND } from "lexical";
6390
6398
  import { useLexicalComposerContext as useLexicalComposerContext10 } from "@lexical/react/LexicalComposerContext";
6391
- import { jsx as jsx99, jsxs as jsxs76 } from "react/jsx-runtime";
6399
+ import { jsx as jsx99, jsxs as jsxs77 } from "react/jsx-runtime";
6392
6400
  async function copyJson(editor) {
6393
6401
  const json = lexicalToCrystallizeRichText({ editor, editorState: editor.getEditorState() });
6394
6402
  try {
@@ -6407,7 +6415,7 @@ function ActionsPlugin({
6407
6415
  return /* @__PURE__ */ jsx99("div", {
6408
6416
  ref: actionMenuAnchorRef,
6409
6417
  className: "c-rte-actions-plugin",
6410
- children: /* @__PURE__ */ jsxs76(ActionMenu, {
6418
+ children: /* @__PURE__ */ jsxs77(ActionMenu, {
6411
6419
  container: actionMenuAnchorRef.current,
6412
6420
  children: [
6413
6421
  !prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ jsx99(ActionMenu.Item, {
@@ -6440,7 +6448,7 @@ function ActionsPlugin({
6440
6448
  // src/rich-text-editor/plugins/ToolbarPlugin/insert-table.tsx
6441
6449
  import { useState as useState9 } from "react";
6442
6450
  import { INSERT_TABLE_COMMAND } from "@lexical/table";
6443
- import { jsx as jsx100, jsxs as jsxs77 } from "react/jsx-runtime";
6451
+ import { jsx as jsx100, jsxs as jsxs78 } from "react/jsx-runtime";
6444
6452
  function InsertTableDialog({ activeEditor }) {
6445
6453
  const [rows, setRows] = useState9("5");
6446
6454
  const [columns, setColumns] = useState9("5");
@@ -6458,10 +6466,10 @@ function InsertTableDialog({ activeEditor }) {
6458
6466
  }
6459
6467
  });
6460
6468
  };
6461
- return /* @__PURE__ */ jsxs77("div", {
6469
+ return /* @__PURE__ */ jsxs78("div", {
6462
6470
  className: "c-rte-insert-table",
6463
6471
  children: [
6464
- /* @__PURE__ */ jsxs77("div", {
6472
+ /* @__PURE__ */ jsxs78("div", {
6465
6473
  className: "c-rte-insert-table__dimensions",
6466
6474
  children: [
6467
6475
  /* @__PURE__ */ jsx100(InputWithLabel, {
@@ -6501,7 +6509,7 @@ function InsertTableDialog({ activeEditor }) {
6501
6509
  }
6502
6510
 
6503
6511
  // src/rich-text-editor/plugins/ToolbarPlugin/index.tsx
6504
- import { Fragment as Fragment7, jsx as jsx101, jsxs as jsxs78 } from "react/jsx-runtime";
6512
+ import { Fragment as Fragment6, jsx as jsx101, jsxs as jsxs79 } from "react/jsx-runtime";
6505
6513
  var headingTypeToBlockName = {
6506
6514
  h1: "Heading 1",
6507
6515
  h2: "Heading 2",
@@ -6608,9 +6616,9 @@ function BlockFormatDropDown({
6608
6616
  return /* @__PURE__ */ jsx101(DropdownMenu.Root, {
6609
6617
  disabled,
6610
6618
  style: { zIndex: 1 },
6611
- content: /* @__PURE__ */ jsxs78(Fragment7, {
6619
+ content: /* @__PURE__ */ jsxs79(Fragment6, {
6612
6620
  children: [
6613
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6621
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6614
6622
  onClick: formatParagraph,
6615
6623
  children: [
6616
6624
  /* @__PURE__ */ jsx101("i", {
@@ -6622,7 +6630,7 @@ function BlockFormatDropDown({
6622
6630
  })
6623
6631
  ]
6624
6632
  }),
6625
- headings.map((headingSize) => /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6633
+ headings.map((headingSize) => /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6626
6634
  onClick: () => formatHeading(headingSize),
6627
6635
  children: [
6628
6636
  /* @__PURE__ */ jsx101("i", {
@@ -6634,7 +6642,7 @@ function BlockFormatDropDown({
6634
6642
  })
6635
6643
  ]
6636
6644
  }, headingSize)),
6637
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6645
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6638
6646
  onClick: formatBulletList,
6639
6647
  children: [
6640
6648
  /* @__PURE__ */ jsx101("i", {
@@ -6646,7 +6654,7 @@ function BlockFormatDropDown({
6646
6654
  })
6647
6655
  ]
6648
6656
  }),
6649
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6657
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6650
6658
  onClick: formatNumberedList,
6651
6659
  children: [
6652
6660
  /* @__PURE__ */ jsx101("i", {
@@ -6658,7 +6666,7 @@ function BlockFormatDropDown({
6658
6666
  })
6659
6667
  ]
6660
6668
  }),
6661
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6669
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6662
6670
  onClick: formatQuote,
6663
6671
  "data-testid": "toggle-block-format-quote",
6664
6672
  children: [
@@ -6671,7 +6679,7 @@ function BlockFormatDropDown({
6671
6679
  })
6672
6680
  ]
6673
6681
  }),
6674
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
6682
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6675
6683
  onClick: formatCode,
6676
6684
  "data-testid": "toggle-block-format-code",
6677
6685
  children: [
@@ -6686,7 +6694,7 @@ function BlockFormatDropDown({
6686
6694
  })
6687
6695
  ]
6688
6696
  }),
6689
- children: /* @__PURE__ */ jsxs78(Button, {
6697
+ children: /* @__PURE__ */ jsxs79(Button, {
6690
6698
  style: { backgroundColor: "transparent", padding: "0 8px" },
6691
6699
  "aria-label": "Formatting options for text style",
6692
6700
  "data-testid": "toggle-block-format",
@@ -6849,10 +6857,10 @@ function ToolbarPlugin({
6849
6857
  },
6850
6858
  [activeEditor, selectedElementKey]
6851
6859
  );
6852
- return /* @__PURE__ */ jsxs78("div", {
6860
+ return /* @__PURE__ */ jsxs79("div", {
6853
6861
  className: "c-rte-toolbar",
6854
6862
  children: [
6855
- /* @__PURE__ */ jsxs78("div", {
6863
+ /* @__PURE__ */ jsxs79("div", {
6856
6864
  className: "c-rte-toolbar__inner",
6857
6865
  children: [
6858
6866
  /* @__PURE__ */ jsx101(IconButton, {
@@ -6881,7 +6889,7 @@ function ToolbarPlugin({
6881
6889
  })
6882
6890
  }),
6883
6891
  /* @__PURE__ */ jsx101(Divider, {}),
6884
- blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ jsxs78(Fragment7, {
6892
+ blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ jsxs79(Fragment6, {
6885
6893
  children: [
6886
6894
  /* @__PURE__ */ jsx101(BlockFormatDropDown, {
6887
6895
  disabled: !isEditable,
@@ -6891,11 +6899,11 @@ function ToolbarPlugin({
6891
6899
  /* @__PURE__ */ jsx101(Divider, {})
6892
6900
  ]
6893
6901
  }),
6894
- blockType === "code" ? /* @__PURE__ */ jsx101(Fragment7, {
6902
+ blockType === "code" ? /* @__PURE__ */ jsx101(Fragment6, {
6895
6903
  children: /* @__PURE__ */ jsx101(DropdownMenu.Root, {
6896
6904
  disabled: !isEditable,
6897
6905
  style: { zIndex: 1 },
6898
- content: /* @__PURE__ */ jsx101(Fragment7, {
6906
+ content: /* @__PURE__ */ jsx101(Fragment6, {
6899
6907
  children: CODE_LANGUAGE_OPTIONS.map(([value, name]) => {
6900
6908
  return /* @__PURE__ */ jsx101(DropdownMenu.Item, {
6901
6909
  className: `item ${dropDownActiveClass(value === codeLanguage)}`,
@@ -6917,7 +6925,7 @@ function ToolbarPlugin({
6917
6925
  })
6918
6926
  })
6919
6927
  }) : /* @__PURE__ */ jsx101(Dialog, {
6920
- children: /* @__PURE__ */ jsxs78("div", {
6928
+ children: /* @__PURE__ */ jsxs79("div", {
6921
6929
  className: "c-rte-toolbar__actions-rest",
6922
6930
  children: [
6923
6931
  /* @__PURE__ */ jsx101(IconButton, {
@@ -6989,9 +6997,9 @@ function ToolbarPlugin({
6989
6997
  /* @__PURE__ */ jsx101(DropdownMenu.Root, {
6990
6998
  disabled: !isEditable,
6991
6999
  style: { zIndex: 1 },
6992
- content: /* @__PURE__ */ jsxs78(Fragment7, {
7000
+ content: /* @__PURE__ */ jsxs79(Fragment6, {
6993
7001
  children: [
6994
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
7002
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
6995
7003
  onClick: () => {
6996
7004
  activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "strikethrough");
6997
7005
  },
@@ -7007,7 +7015,7 @@ function ToolbarPlugin({
7007
7015
  })
7008
7016
  ]
7009
7017
  }),
7010
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
7018
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
7011
7019
  onClick: () => {
7012
7020
  activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "subscript");
7013
7021
  },
@@ -7023,7 +7031,7 @@ function ToolbarPlugin({
7023
7031
  })
7024
7032
  ]
7025
7033
  }),
7026
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
7034
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
7027
7035
  onClick: () => {
7028
7036
  activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "superscript");
7029
7037
  },
@@ -7039,7 +7047,7 @@ function ToolbarPlugin({
7039
7047
  })
7040
7048
  ]
7041
7049
  }),
7042
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
7050
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
7043
7051
  onClick: clearFormatting,
7044
7052
  className: "item",
7045
7053
  title: tr("actionClearTextFormatting"),
@@ -7056,7 +7064,7 @@ function ToolbarPlugin({
7056
7064
  })
7057
7065
  ]
7058
7066
  }),
7059
- children: /* @__PURE__ */ jsxs78(Button, {
7067
+ children: /* @__PURE__ */ jsxs79(Button, {
7060
7068
  style: { backgroundColor: "transparent", padding: "0 8px" },
7061
7069
  "aria-label": tr("actionTextFormattingOptions"),
7062
7070
  children: [
@@ -7071,9 +7079,9 @@ function ToolbarPlugin({
7071
7079
  /* @__PURE__ */ jsx101(DropdownMenu.Root, {
7072
7080
  style: { zIndex: 1 },
7073
7081
  disabled: !isEditable,
7074
- content: /* @__PURE__ */ jsxs78(Fragment7, {
7082
+ content: /* @__PURE__ */ jsxs79(Fragment6, {
7075
7083
  children: [
7076
- /* @__PURE__ */ jsxs78(DropdownMenu.Item, {
7084
+ /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
7077
7085
  onClick: () => {
7078
7086
  activeEditor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, void 0);
7079
7087
  },
@@ -7090,7 +7098,7 @@ function ToolbarPlugin({
7090
7098
  /* @__PURE__ */ jsx101(DropdownMenu.Item, {
7091
7099
  children: /* @__PURE__ */ jsx101(Dialog.Trigger, {
7092
7100
  asChild: true,
7093
- children: /* @__PURE__ */ jsxs78("div", {
7101
+ children: /* @__PURE__ */ jsxs79("div", {
7094
7102
  className: "c-rte-toolbar__dd-item--table",
7095
7103
  children: [
7096
7104
  /* @__PURE__ */ jsx101("i", {
@@ -7112,7 +7120,7 @@ function ToolbarPlugin({
7112
7120
  })
7113
7121
  })
7114
7122
  }),
7115
- /* @__PURE__ */ jsxs78(Dialog.Content, {
7123
+ /* @__PURE__ */ jsxs79(Dialog.Content, {
7116
7124
  children: [
7117
7125
  /* @__PURE__ */ jsx101(Dialog.Title, {
7118
7126
  children: tr("insertTableTitle")
@@ -7241,19 +7249,18 @@ var theme = {
7241
7249
  var CrystallizeRTEditorTheme_default = theme;
7242
7250
 
7243
7251
  // src/rich-text-editor/rich-text-editor.tsx
7244
- import { Fragment as Fragment8, jsx as jsx102, jsxs as jsxs79 } from "react/jsx-runtime";
7252
+ import { Fragment as Fragment7, jsx as jsx102, jsxs as jsxs80 } from "react/jsx-runtime";
7245
7253
  function RichTextEditor({
7246
7254
  initialData,
7247
- editable = true,
7248
7255
  language = "en",
7249
7256
  labelTranslations,
7250
7257
  ...rest
7251
7258
  }) {
7252
7259
  return /* @__PURE__ */ jsx102(LexicalComposer, {
7253
7260
  initialConfig: {
7261
+ editable: !rest.disabled,
7254
7262
  namespace: "crystallize-rich-text-editor",
7255
7263
  nodes: [...BaseNodes],
7256
- editable,
7257
7264
  onError: (error) => {
7258
7265
  throw error;
7259
7266
  },
@@ -7269,8 +7276,7 @@ function RichTextEditor({
7269
7276
  children: /* @__PURE__ */ jsx102("div", {
7270
7277
  className: "c-rich-text-editor",
7271
7278
  children: /* @__PURE__ */ jsx102(RichTextEditorWithoutContext, {
7272
- ...rest,
7273
- editable
7279
+ ...rest
7274
7280
  })
7275
7281
  })
7276
7282
  })
@@ -7286,9 +7292,10 @@ function RichTextEditorWithoutContext({
7286
7292
  actionsMenuAppend,
7287
7293
  slotPreContent,
7288
7294
  maxLength,
7289
- editable,
7295
+ disabled,
7290
7296
  id
7291
7297
  }) {
7298
+ const editable = !disabled;
7292
7299
  const { historyState } = useSharedHistoryContext();
7293
7300
  const placeholder = /* @__PURE__ */ jsx102("div", {
7294
7301
  className: "c-rte-placeholder",
@@ -7314,7 +7321,7 @@ function RichTextEditorWithoutContext({
7314
7321
  }
7315
7322
  firstOnChangeTriggeredRef.current = true;
7316
7323
  }
7317
- return /* @__PURE__ */ jsxs79(Fragment8, {
7324
+ return /* @__PURE__ */ jsxs80(Fragment7, {
7318
7325
  children: [
7319
7326
  /* @__PURE__ */ jsx102(OnChangePlugin, {
7320
7327
  onChange: onLocalChange,
@@ -7328,8 +7335,8 @@ function RichTextEditorWithoutContext({
7328
7335
  actionsMenuAppend
7329
7336
  }),
7330
7337
  slotPreContent,
7331
- /* @__PURE__ */ jsxs79("div", {
7332
- className: "c-rte-editor-container",
7338
+ /* @__PURE__ */ jsxs80("div", {
7339
+ className: `c-rte-editor-container ${disabled ? "disabled" : ""}`,
7333
7340
  children: [
7334
7341
  maxLength != null ? /* @__PURE__ */ jsx102(MaxLengthPlugin, {
7335
7342
  maxLength
@@ -7365,7 +7372,7 @@ function RichTextEditorWithoutContext({
7365
7372
  /* @__PURE__ */ jsx102(HorizontalRulePlugin, {}),
7366
7373
  /* @__PURE__ */ jsx102(TabFocusPlugin, {}),
7367
7374
  /* @__PURE__ */ jsx102(TabIndentationPlugin, {}),
7368
- floatingAnchorElem && !isSmallWidthViewport && /* @__PURE__ */ jsxs79(Fragment8, {
7375
+ floatingAnchorElem && !isSmallWidthViewport && /* @__PURE__ */ jsxs80(Fragment7, {
7369
7376
  children: [
7370
7377
  /* @__PURE__ */ jsx102(CodeActionMenuPlugin, {
7371
7378
  anchorElem: floatingAnchorElem