@crystallize/design-system 1.16.1 → 1.16.3
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/CHANGELOG.md +12 -0
- package/dist/index.css +12 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +116 -104
- package/dist/index.mjs +250 -238
- package/package.json +1 -1
- package/src/button/button.css +2 -2
- package/src/button/button.tsx +5 -0
- package/src/iconography/key.tsx +8 -3
- package/src/iconography/mushroom.tsx +1 -1
- package/src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.tsx +102 -112
- package/src/rich-text-editor/rich-text-editor.css +8 -1
- package/src/rich-text-editor/rich-text-editor.tsx +6 -6
package/dist/index.mjs
CHANGED
|
@@ -107,6 +107,11 @@ var buttonStyles = cva("c-btn", {
|
|
|
107
107
|
intent: "danger",
|
|
108
108
|
variant: "elevate",
|
|
109
109
|
class: "c-btn-danger c-btn-elevate"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
intent: "action",
|
|
113
|
+
variant: "elevate",
|
|
114
|
+
class: "c-btn-action c-btn-elevate"
|
|
110
115
|
}
|
|
111
116
|
],
|
|
112
117
|
defaultVariants: {
|
|
@@ -1729,29 +1734,36 @@ Info.displayName = "InfoIcon";
|
|
|
1729
1734
|
|
|
1730
1735
|
// src/iconography/key.tsx
|
|
1731
1736
|
import { forwardRef as forwardRef33 } from "react";
|
|
1732
|
-
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
1737
|
+
import { jsx as jsx40, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
1733
1738
|
var Key = forwardRef33((delegated, ref) => {
|
|
1734
|
-
return /* @__PURE__ */
|
|
1739
|
+
return /* @__PURE__ */ jsxs32("svg", {
|
|
1735
1740
|
ref,
|
|
1736
|
-
viewBox: "0 0
|
|
1737
|
-
width: "
|
|
1738
|
-
height: "
|
|
1741
|
+
viewBox: "0 0 22 22",
|
|
1742
|
+
width: "22",
|
|
1743
|
+
height: "22",
|
|
1739
1744
|
fill: "none",
|
|
1740
1745
|
...delegated,
|
|
1741
|
-
children:
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
+
children: [
|
|
1747
|
+
/* @__PURE__ */ jsx40("path", {
|
|
1748
|
+
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",
|
|
1749
|
+
fill: "#BFF6F8"
|
|
1750
|
+
}),
|
|
1751
|
+
/* @__PURE__ */ jsx40("path", {
|
|
1752
|
+
"fill-rule": "evenodd",
|
|
1753
|
+
"clip-rule": "evenodd",
|
|
1754
|
+
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",
|
|
1755
|
+
fill: "#528693"
|
|
1756
|
+
})
|
|
1757
|
+
]
|
|
1746
1758
|
});
|
|
1747
1759
|
});
|
|
1748
1760
|
Key.displayName = "KeyIcon";
|
|
1749
1761
|
|
|
1750
1762
|
// src/iconography/language.tsx
|
|
1751
1763
|
import { forwardRef as forwardRef34 } from "react";
|
|
1752
|
-
import { jsx as jsx41, jsxs as
|
|
1764
|
+
import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
1753
1765
|
var Language = forwardRef34((delegated, ref) => {
|
|
1754
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ jsxs33("svg", {
|
|
1755
1767
|
ref,
|
|
1756
1768
|
width: "34",
|
|
1757
1769
|
height: "34",
|
|
@@ -1789,9 +1801,9 @@ Language.displayName = "LanguageProps";
|
|
|
1789
1801
|
|
|
1790
1802
|
// src/iconography/lock-closed.tsx
|
|
1791
1803
|
import { forwardRef as forwardRef35 } from "react";
|
|
1792
|
-
import { jsx as jsx42, jsxs as
|
|
1804
|
+
import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
1793
1805
|
var LockClosed = forwardRef35((delegated, ref) => {
|
|
1794
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsxs34("svg", {
|
|
1795
1807
|
ref,
|
|
1796
1808
|
width: "17",
|
|
1797
1809
|
height: "16",
|
|
@@ -1838,9 +1850,9 @@ LockClosed.displayName = "LockClosedIcon";
|
|
|
1838
1850
|
|
|
1839
1851
|
// src/iconography/multilingual.tsx
|
|
1840
1852
|
import { forwardRef as forwardRef36 } from "react";
|
|
1841
|
-
import { jsx as jsx43, jsxs as
|
|
1853
|
+
import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
1842
1854
|
var Multilingual = forwardRef36((delegated, ref) => {
|
|
1843
|
-
return /* @__PURE__ */
|
|
1855
|
+
return /* @__PURE__ */ jsxs35("svg", {
|
|
1844
1856
|
ref,
|
|
1845
1857
|
width: "34",
|
|
1846
1858
|
height: "34",
|
|
@@ -1878,9 +1890,9 @@ Multilingual.displayName = "MultilingualIcon";
|
|
|
1878
1890
|
|
|
1879
1891
|
// src/iconography/mushroom.tsx
|
|
1880
1892
|
import { forwardRef as forwardRef37 } from "react";
|
|
1881
|
-
import { jsx as jsx44, jsxs as
|
|
1893
|
+
import { jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
1882
1894
|
var Mushroom = forwardRef37((delegated, ref) => {
|
|
1883
|
-
return /* @__PURE__ */
|
|
1895
|
+
return /* @__PURE__ */ jsxs36("svg", {
|
|
1884
1896
|
ref,
|
|
1885
1897
|
width: "22",
|
|
1886
1898
|
height: "22",
|
|
@@ -1899,7 +1911,7 @@ var Mushroom = forwardRef37((delegated, ref) => {
|
|
|
1899
1911
|
clipRule: "evenodd"
|
|
1900
1912
|
}),
|
|
1901
1913
|
/* @__PURE__ */ jsx44("path", {
|
|
1902
|
-
fill: "#
|
|
1914
|
+
fill: "#FFA1DB",
|
|
1903
1915
|
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
1916
|
}),
|
|
1905
1917
|
/* @__PURE__ */ jsx44("path", {
|
|
@@ -1955,9 +1967,9 @@ Mushroom.displayName = "MushroomIcon";
|
|
|
1955
1967
|
|
|
1956
1968
|
// src/iconography/nail-polish.tsx
|
|
1957
1969
|
import { forwardRef as forwardRef38 } from "react";
|
|
1958
|
-
import { jsx as jsx45, jsxs as
|
|
1970
|
+
import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
1959
1971
|
var NailPolish = forwardRef38((delegated, ref) => {
|
|
1960
|
-
return /* @__PURE__ */
|
|
1972
|
+
return /* @__PURE__ */ jsxs37("svg", {
|
|
1961
1973
|
ref,
|
|
1962
1974
|
width: "12",
|
|
1963
1975
|
height: "16",
|
|
@@ -2039,9 +2051,9 @@ NailPolish.displayName = "NailPolishIcon";
|
|
|
2039
2051
|
|
|
2040
2052
|
// src/iconography/order.tsx
|
|
2041
2053
|
import { forwardRef as forwardRef39 } from "react";
|
|
2042
|
-
import { jsx as jsx46, jsxs as
|
|
2054
|
+
import { jsx as jsx46, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2043
2055
|
var Order = forwardRef39((delegated, ref) => {
|
|
2044
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsxs38("svg", {
|
|
2045
2057
|
ref,
|
|
2046
2058
|
width: "22",
|
|
2047
2059
|
height: "23",
|
|
@@ -2080,9 +2092,9 @@ Order.displayName = "OrderIcon";
|
|
|
2080
2092
|
|
|
2081
2093
|
// src/iconography/particle.tsx
|
|
2082
2094
|
import { forwardRef as forwardRef40 } from "react";
|
|
2083
|
-
import { jsx as jsx47, jsxs as
|
|
2095
|
+
import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
2084
2096
|
var Particle = forwardRef40((delegated, ref) => {
|
|
2085
|
-
return /* @__PURE__ */
|
|
2097
|
+
return /* @__PURE__ */ jsxs39("svg", {
|
|
2086
2098
|
ref,
|
|
2087
2099
|
width: "22",
|
|
2088
2100
|
height: "20",
|
|
@@ -2164,9 +2176,9 @@ Particle.displayName = "ParticleIcon";
|
|
|
2164
2176
|
|
|
2165
2177
|
// src/iconography/people.tsx
|
|
2166
2178
|
import { forwardRef as forwardRef41 } from "react";
|
|
2167
|
-
import { jsx as jsx48, jsxs as
|
|
2179
|
+
import { jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
2168
2180
|
var People = forwardRef41((delegated, ref) => {
|
|
2169
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ jsxs40("svg", {
|
|
2170
2182
|
ref,
|
|
2171
2183
|
width: "17",
|
|
2172
2184
|
height: "16",
|
|
@@ -2229,9 +2241,9 @@ People.displayName = "PeopleIcon";
|
|
|
2229
2241
|
|
|
2230
2242
|
// src/iconography/percentage.tsx
|
|
2231
2243
|
import { forwardRef as forwardRef42 } from "react";
|
|
2232
|
-
import { jsx as jsx49, jsxs as
|
|
2244
|
+
import { jsx as jsx49, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
2233
2245
|
var Percentage = forwardRef42((delegated, ref) => {
|
|
2234
|
-
return /* @__PURE__ */
|
|
2246
|
+
return /* @__PURE__ */ jsxs41("svg", {
|
|
2235
2247
|
ref,
|
|
2236
2248
|
width: "17",
|
|
2237
2249
|
height: "16",
|
|
@@ -2276,9 +2288,9 @@ Percentage.displayName = "PercentageIcon";
|
|
|
2276
2288
|
|
|
2277
2289
|
// src/iconography/pin.tsx
|
|
2278
2290
|
import { forwardRef as forwardRef43 } from "react";
|
|
2279
|
-
import { jsx as jsx50, jsxs as
|
|
2291
|
+
import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
2280
2292
|
var Pin = forwardRef43((delegated, ref) => {
|
|
2281
|
-
return /* @__PURE__ */
|
|
2293
|
+
return /* @__PURE__ */ jsxs42("svg", {
|
|
2282
2294
|
ref,
|
|
2283
2295
|
width: "26",
|
|
2284
2296
|
height: "26",
|
|
@@ -2309,9 +2321,9 @@ Pin.displayName = "PinIcon";
|
|
|
2309
2321
|
|
|
2310
2322
|
// src/iconography/plans-and-pricing.tsx
|
|
2311
2323
|
import { forwardRef as forwardRef44 } from "react";
|
|
2312
|
-
import { jsx as jsx51, jsxs as
|
|
2324
|
+
import { jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
2313
2325
|
var PlansAndPricing = forwardRef44((delegated, ref) => {
|
|
2314
|
-
return /* @__PURE__ */
|
|
2326
|
+
return /* @__PURE__ */ jsxs43("svg", {
|
|
2315
2327
|
ref,
|
|
2316
2328
|
width: "17",
|
|
2317
2329
|
height: "16",
|
|
@@ -2370,9 +2382,9 @@ PlansAndPricing.displayName = "PlansAndPricingIcon";
|
|
|
2370
2382
|
|
|
2371
2383
|
// src/iconography/price-list.tsx
|
|
2372
2384
|
import { forwardRef as forwardRef45 } from "react";
|
|
2373
|
-
import { jsx as jsx52, jsxs as
|
|
2385
|
+
import { jsx as jsx52, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
2374
2386
|
var PriceList = forwardRef45((delegated, ref) => {
|
|
2375
|
-
return /* @__PURE__ */
|
|
2387
|
+
return /* @__PURE__ */ jsxs44("svg", {
|
|
2376
2388
|
ref,
|
|
2377
2389
|
width: "23",
|
|
2378
2390
|
height: "22",
|
|
@@ -2427,9 +2439,9 @@ PriceList.displayName = "PriceListIcon";
|
|
|
2427
2439
|
|
|
2428
2440
|
// src/iconography/price-tag.tsx
|
|
2429
2441
|
import { forwardRef as forwardRef46 } from "react";
|
|
2430
|
-
import { jsx as jsx53, jsxs as
|
|
2442
|
+
import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
2431
2443
|
var PriceTag = forwardRef46((delegated, ref) => {
|
|
2432
|
-
return /* @__PURE__ */
|
|
2444
|
+
return /* @__PURE__ */ jsxs45("svg", {
|
|
2433
2445
|
ref,
|
|
2434
2446
|
width: "17",
|
|
2435
2447
|
height: "16",
|
|
@@ -2476,9 +2488,9 @@ PriceTag.displayName = "PriceTagIcon";
|
|
|
2476
2488
|
|
|
2477
2489
|
// src/iconography/product.tsx
|
|
2478
2490
|
import { forwardRef as forwardRef47 } from "react";
|
|
2479
|
-
import { jsx as jsx54, jsxs as
|
|
2491
|
+
import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
2480
2492
|
var Product = forwardRef47((delegated, ref) => {
|
|
2481
|
-
return /* @__PURE__ */
|
|
2493
|
+
return /* @__PURE__ */ jsxs46("svg", {
|
|
2482
2494
|
ref,
|
|
2483
2495
|
width: "34",
|
|
2484
2496
|
height: "34",
|
|
@@ -2521,9 +2533,9 @@ Product.displayName = "ProductIcon";
|
|
|
2521
2533
|
|
|
2522
2534
|
// src/iconography/restricted-catalogue.tsx
|
|
2523
2535
|
import { forwardRef as forwardRef48 } from "react";
|
|
2524
|
-
import { jsx as jsx55, jsxs as
|
|
2536
|
+
import { jsx as jsx55, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
2525
2537
|
var RestrictedCatalogue = forwardRef48((delegated, ref) => {
|
|
2526
|
-
return /* @__PURE__ */
|
|
2538
|
+
return /* @__PURE__ */ jsxs47("svg", {
|
|
2527
2539
|
ref,
|
|
2528
2540
|
width: "22",
|
|
2529
2541
|
height: "22",
|
|
@@ -2578,9 +2590,9 @@ RestrictedCatalogue.displayName = "RestrictedCatalogueIcon";
|
|
|
2578
2590
|
|
|
2579
2591
|
// src/iconography/rocket.tsx
|
|
2580
2592
|
import { forwardRef as forwardRef49 } from "react";
|
|
2581
|
-
import { jsx as jsx56, jsxs as
|
|
2593
|
+
import { jsx as jsx56, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
2582
2594
|
var Rocket = forwardRef49((delegated, ref) => {
|
|
2583
|
-
return /* @__PURE__ */
|
|
2595
|
+
return /* @__PURE__ */ jsxs48("svg", {
|
|
2584
2596
|
ref,
|
|
2585
2597
|
width: "16",
|
|
2586
2598
|
height: "16",
|
|
@@ -2619,9 +2631,9 @@ Rocket.displayName = "RocketIcon";
|
|
|
2619
2631
|
|
|
2620
2632
|
// src/iconography/search.tsx
|
|
2621
2633
|
import { forwardRef as forwardRef50 } from "react";
|
|
2622
|
-
import { jsx as jsx57, jsxs as
|
|
2634
|
+
import { jsx as jsx57, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
2623
2635
|
var Search = forwardRef50((delegated, ref) => {
|
|
2624
|
-
return /* @__PURE__ */
|
|
2636
|
+
return /* @__PURE__ */ jsxs49("svg", {
|
|
2625
2637
|
ref,
|
|
2626
2638
|
width: "22",
|
|
2627
2639
|
height: "23",
|
|
@@ -2654,9 +2666,9 @@ Search.displayName = "SearchIcon";
|
|
|
2654
2666
|
|
|
2655
2667
|
// src/iconography/settings.tsx
|
|
2656
2668
|
import { forwardRef as forwardRef51 } from "react";
|
|
2657
|
-
import { jsx as jsx58, jsxs as
|
|
2669
|
+
import { jsx as jsx58, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
2658
2670
|
var Settings = forwardRef51((delegated, ref) => {
|
|
2659
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ jsxs50("svg", {
|
|
2660
2672
|
ref,
|
|
2661
2673
|
width: "34",
|
|
2662
2674
|
height: "34",
|
|
@@ -2690,9 +2702,9 @@ Settings.displayName = "SettingsIcon";
|
|
|
2690
2702
|
|
|
2691
2703
|
// src/iconography/shapes.tsx
|
|
2692
2704
|
import { forwardRef as forwardRef52 } from "react";
|
|
2693
|
-
import { jsx as jsx59, jsxs as
|
|
2705
|
+
import { jsx as jsx59, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
2694
2706
|
var Shapes = forwardRef52((delegated, ref) => {
|
|
2695
|
-
return /* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ jsxs51("svg", {
|
|
2696
2708
|
ref,
|
|
2697
2709
|
width: "23",
|
|
2698
2710
|
height: "22",
|
|
@@ -2747,9 +2759,9 @@ Shapes.displayName = "ShapesIcon";
|
|
|
2747
2759
|
|
|
2748
2760
|
// src/iconography/stock-location.tsx
|
|
2749
2761
|
import { forwardRef as forwardRef53 } from "react";
|
|
2750
|
-
import { jsx as jsx60, jsxs as
|
|
2762
|
+
import { jsx as jsx60, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
2751
2763
|
var StockLocation = forwardRef53((delegated, ref) => {
|
|
2752
|
-
return /* @__PURE__ */
|
|
2764
|
+
return /* @__PURE__ */ jsxs52("svg", {
|
|
2753
2765
|
ref,
|
|
2754
2766
|
width: "17",
|
|
2755
2767
|
height: "16",
|
|
@@ -2830,9 +2842,9 @@ StockLocation.displayName = "StockLocationIcon";
|
|
|
2830
2842
|
|
|
2831
2843
|
// src/iconography/subscription.tsx
|
|
2832
2844
|
import { forwardRef as forwardRef54 } from "react";
|
|
2833
|
-
import { jsx as jsx61, jsxs as
|
|
2845
|
+
import { jsx as jsx61, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
2834
2846
|
var Subscription = forwardRef54((delegated, ref) => {
|
|
2835
|
-
return /* @__PURE__ */
|
|
2847
|
+
return /* @__PURE__ */ jsxs53("svg", {
|
|
2836
2848
|
ref,
|
|
2837
2849
|
width: "34",
|
|
2838
2850
|
height: "34",
|
|
@@ -2867,10 +2879,10 @@ Subscription.displayName = "SubscriptionIcon";
|
|
|
2867
2879
|
|
|
2868
2880
|
// src/iconography/subscription-contracts.tsx
|
|
2869
2881
|
import { forwardRef as forwardRef55 } from "react";
|
|
2870
|
-
import { jsx as jsx62, jsxs as
|
|
2882
|
+
import { jsx as jsx62, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
2871
2883
|
var SubscriptionContracts = forwardRef55(
|
|
2872
2884
|
(delegated, ref) => {
|
|
2873
|
-
return /* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ jsxs54("svg", {
|
|
2874
2886
|
ref,
|
|
2875
2887
|
width: "23",
|
|
2876
2888
|
height: "22",
|
|
@@ -2922,9 +2934,9 @@ SubscriptionContracts.displayName = "SubscriptionContractsIcon";
|
|
|
2922
2934
|
|
|
2923
2935
|
// src/iconography/subscription-plans.tsx
|
|
2924
2936
|
import { forwardRef as forwardRef56 } from "react";
|
|
2925
|
-
import { jsx as jsx63, jsxs as
|
|
2937
|
+
import { jsx as jsx63, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
2926
2938
|
var SubscriptionPlans = forwardRef56((delegated, ref) => {
|
|
2927
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ jsxs55("svg", {
|
|
2928
2940
|
ref,
|
|
2929
2941
|
width: "23",
|
|
2930
2942
|
height: "22",
|
|
@@ -2985,9 +2997,9 @@ SubscriptionPlans.displayName = "SubscriptionPlansIcon";
|
|
|
2985
2997
|
|
|
2986
2998
|
// src/iconography/target.tsx
|
|
2987
2999
|
import { forwardRef as forwardRef57 } from "react";
|
|
2988
|
-
import { jsx as jsx64, jsxs as
|
|
3000
|
+
import { jsx as jsx64, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
2989
3001
|
var Target = forwardRef57((delegated, ref) => {
|
|
2990
|
-
return /* @__PURE__ */
|
|
3002
|
+
return /* @__PURE__ */ jsxs56("svg", {
|
|
2991
3003
|
ref,
|
|
2992
3004
|
width: "23",
|
|
2993
3005
|
height: "22",
|
|
@@ -3068,9 +3080,9 @@ Target.displayName = "TargetIcon";
|
|
|
3068
3080
|
|
|
3069
3081
|
// src/iconography/topics.tsx
|
|
3070
3082
|
import { forwardRef as forwardRef58 } from "react";
|
|
3071
|
-
import { jsx as jsx65, jsxs as
|
|
3083
|
+
import { jsx as jsx65, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
3072
3084
|
var Topics = forwardRef58((delegated, ref) => {
|
|
3073
|
-
return /* @__PURE__ */
|
|
3085
|
+
return /* @__PURE__ */ jsxs57("svg", {
|
|
3074
3086
|
ref,
|
|
3075
3087
|
width: "23",
|
|
3076
3088
|
height: "23",
|
|
@@ -3129,9 +3141,9 @@ Topics.displayName = "TopicsIcon";
|
|
|
3129
3141
|
|
|
3130
3142
|
// src/iconography/unpublish.tsx
|
|
3131
3143
|
import { forwardRef as forwardRef59 } from "react";
|
|
3132
|
-
import { jsx as jsx66, jsxs as
|
|
3144
|
+
import { jsx as jsx66, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
3133
3145
|
var Unpublish = forwardRef59((delegated, ref) => {
|
|
3134
|
-
return /* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsxs58("svg", {
|
|
3135
3147
|
ref,
|
|
3136
3148
|
width: "22",
|
|
3137
3149
|
height: "22",
|
|
@@ -3178,9 +3190,9 @@ Unpublish.displayName = "UnpublishIcon";
|
|
|
3178
3190
|
|
|
3179
3191
|
// src/iconography/usage.tsx
|
|
3180
3192
|
import { forwardRef as forwardRef60 } from "react";
|
|
3181
|
-
import { jsx as jsx67, jsxs as
|
|
3193
|
+
import { jsx as jsx67, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
3182
3194
|
var Usage = forwardRef60((delegated, ref) => {
|
|
3183
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ jsxs59("svg", {
|
|
3184
3196
|
ref,
|
|
3185
3197
|
width: "23",
|
|
3186
3198
|
height: "23",
|
|
@@ -3215,9 +3227,9 @@ Usage.displayName = "UsageIcon";
|
|
|
3215
3227
|
|
|
3216
3228
|
// src/iconography/usage-meter.tsx
|
|
3217
3229
|
import { forwardRef as forwardRef61 } from "react";
|
|
3218
|
-
import { jsx as jsx68, jsxs as
|
|
3230
|
+
import { jsx as jsx68, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
3219
3231
|
var UsageMeter = forwardRef61((delegated, ref) => {
|
|
3220
|
-
return /* @__PURE__ */
|
|
3232
|
+
return /* @__PURE__ */ jsxs60("svg", {
|
|
3221
3233
|
ref,
|
|
3222
3234
|
width: "17",
|
|
3223
3235
|
height: "16",
|
|
@@ -3225,7 +3237,7 @@ var UsageMeter = forwardRef61((delegated, ref) => {
|
|
|
3225
3237
|
fill: "none",
|
|
3226
3238
|
...delegated,
|
|
3227
3239
|
children: [
|
|
3228
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ jsxs60("g", {
|
|
3229
3241
|
clipPath: "url(#a)",
|
|
3230
3242
|
children: [
|
|
3231
3243
|
/* @__PURE__ */ jsx68("path", {
|
|
@@ -3267,9 +3279,9 @@ UsageMeter.displayName = "UsageMeterIcon";
|
|
|
3267
3279
|
|
|
3268
3280
|
// src/iconography/user-card.tsx
|
|
3269
3281
|
import { forwardRef as forwardRef62 } from "react";
|
|
3270
|
-
import { jsx as jsx69, jsxs as
|
|
3282
|
+
import { jsx as jsx69, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
3271
3283
|
var UserCard = forwardRef62((delegated, ref) => {
|
|
3272
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ jsxs61("svg", {
|
|
3273
3285
|
ref,
|
|
3274
3286
|
width: "17",
|
|
3275
3287
|
height: "16",
|
|
@@ -3308,9 +3320,9 @@ UserCard.displayName = "UserCardIcon";
|
|
|
3308
3320
|
|
|
3309
3321
|
// src/iconography/users.tsx
|
|
3310
3322
|
import { forwardRef as forwardRef63 } from "react";
|
|
3311
|
-
import { jsx as jsx70, jsxs as
|
|
3323
|
+
import { jsx as jsx70, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
3312
3324
|
var Users = forwardRef63((delegated, ref) => {
|
|
3313
|
-
return /* @__PURE__ */
|
|
3325
|
+
return /* @__PURE__ */ jsxs62("svg", {
|
|
3314
3326
|
ref,
|
|
3315
3327
|
width: "24",
|
|
3316
3328
|
height: "24",
|
|
@@ -3355,9 +3367,9 @@ Users.displayName = "UsersIcon";
|
|
|
3355
3367
|
|
|
3356
3368
|
// src/iconography/warning.tsx
|
|
3357
3369
|
import { forwardRef as forwardRef64 } from "react";
|
|
3358
|
-
import { jsx as jsx71, jsxs as
|
|
3370
|
+
import { jsx as jsx71, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
3359
3371
|
var Warning = forwardRef64((delegated, ref) => {
|
|
3360
|
-
return /* @__PURE__ */
|
|
3372
|
+
return /* @__PURE__ */ jsxs63("svg", {
|
|
3361
3373
|
ref,
|
|
3362
3374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3363
3375
|
width: "22",
|
|
@@ -3466,7 +3478,7 @@ var Icon = {
|
|
|
3466
3478
|
};
|
|
3467
3479
|
|
|
3468
3480
|
// src/dialog/dialog.tsx
|
|
3469
|
-
import { jsx as jsx72, jsxs as
|
|
3481
|
+
import { jsx as jsx72, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
3470
3482
|
var IconMap = {
|
|
3471
3483
|
error: Icon.Error,
|
|
3472
3484
|
info: Icon.Info,
|
|
@@ -3482,13 +3494,13 @@ var dialogContentStyles = cva5("c-dialog", {
|
|
|
3482
3494
|
function DialogContent({ children, closable = true, type, className, container, ...delegated }) {
|
|
3483
3495
|
const withIcon = typeof type !== "undefined";
|
|
3484
3496
|
const IconComponent = type && IconMap[type];
|
|
3485
|
-
return /* @__PURE__ */
|
|
3497
|
+
return /* @__PURE__ */ jsxs64(DialogPrimitive.Portal, {
|
|
3486
3498
|
container,
|
|
3487
3499
|
children: [
|
|
3488
3500
|
/* @__PURE__ */ jsx72(DialogPrimitive.Overlay, {
|
|
3489
3501
|
className: "c-dialog-overlay"
|
|
3490
3502
|
}),
|
|
3491
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsxs64(DialogPrimitive.Content, {
|
|
3492
3504
|
className: dialogContentStyles({ withIcon, class: className }),
|
|
3493
3505
|
...delegated,
|
|
3494
3506
|
children: [
|
|
@@ -3549,7 +3561,7 @@ DialogBase.Overlay = DialogPrimitive.Overlay;
|
|
|
3549
3561
|
DialogBase.Close = DialogPrimitive.Close;
|
|
3550
3562
|
|
|
3551
3563
|
// src/dialog/confirm-dialog.tsx
|
|
3552
|
-
import { jsx as jsx73, jsxs as
|
|
3564
|
+
import { jsx as jsx73, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
3553
3565
|
function ConfirmDialog({
|
|
3554
3566
|
open,
|
|
3555
3567
|
close,
|
|
@@ -3588,7 +3600,7 @@ function ConfirmDialog({
|
|
|
3588
3600
|
return /* @__PURE__ */ jsx73(DialogRoot, {
|
|
3589
3601
|
open,
|
|
3590
3602
|
onOpenChange: () => close(),
|
|
3591
|
-
children: /* @__PURE__ */
|
|
3603
|
+
children: /* @__PURE__ */ jsxs65(Dialog.Content, {
|
|
3592
3604
|
onEscapeKeyDown,
|
|
3593
3605
|
onInteractOutside,
|
|
3594
3606
|
onPointerDownOutside,
|
|
@@ -3602,7 +3614,7 @@ function ConfirmDialog({
|
|
|
3602
3614
|
children: description
|
|
3603
3615
|
}),
|
|
3604
3616
|
content,
|
|
3605
|
-
(displayOk || okCancel || displayCancel) && /* @__PURE__ */
|
|
3617
|
+
(displayOk || okCancel || displayCancel) && /* @__PURE__ */ jsxs65("div", {
|
|
3606
3618
|
className: "mt-4 flex items-center justify-end gap-4",
|
|
3607
3619
|
children: [
|
|
3608
3620
|
cancelButton,
|
|
@@ -3892,7 +3904,7 @@ var Label2 = forwardRef68(({ className, ...delegated }, ref) => {
|
|
|
3892
3904
|
Label2.displayName = "Label";
|
|
3893
3905
|
|
|
3894
3906
|
// src/input-with-label/input-with-label.tsx
|
|
3895
|
-
import { Fragment, jsx as jsx80, jsxs as
|
|
3907
|
+
import { Fragment, jsx as jsx80, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
3896
3908
|
var inputWithLabelStyles = cva9(["c-input-with-label"], {
|
|
3897
3909
|
variants: {
|
|
3898
3910
|
variant: {
|
|
@@ -3910,13 +3922,13 @@ var InputWithLabel = forwardRef69(
|
|
|
3910
3922
|
({ className, label, append, errorMessage, status, variant, id, labelProps, ...delegated }, ref) => {
|
|
3911
3923
|
const { className: labelClassName, ...labelPropsRest } = labelProps ?? {};
|
|
3912
3924
|
return /* @__PURE__ */ jsx80(Fragment, {
|
|
3913
|
-
children: /* @__PURE__ */
|
|
3925
|
+
children: /* @__PURE__ */ jsxs66(Label2, {
|
|
3914
3926
|
className: inputWithLabelStyles({ status, variant, className: labelClassName }),
|
|
3915
3927
|
htmlFor: id,
|
|
3916
3928
|
...labelPropsRest,
|
|
3917
3929
|
children: [
|
|
3918
3930
|
label,
|
|
3919
|
-
/* @__PURE__ */
|
|
3931
|
+
/* @__PURE__ */ jsxs66("span", {
|
|
3920
3932
|
className: "c-input-with-label-input-wrap",
|
|
3921
3933
|
children: [
|
|
3922
3934
|
/* @__PURE__ */ jsx80(Input, {
|
|
@@ -3974,10 +3986,10 @@ var Radio = {
|
|
|
3974
3986
|
// src/select/select-item.tsx
|
|
3975
3987
|
import { forwardRef as forwardRef70 } from "react";
|
|
3976
3988
|
import * as SelectPrimitives from "@radix-ui/react-select";
|
|
3977
|
-
import { jsx as jsx83, jsxs as
|
|
3989
|
+
import { jsx as jsx83, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
3978
3990
|
var SelectItem = forwardRef70((props, ref) => {
|
|
3979
3991
|
const { children, ...delegated } = props;
|
|
3980
|
-
return /* @__PURE__ */
|
|
3992
|
+
return /* @__PURE__ */ jsxs67(SelectPrimitives.Item, {
|
|
3981
3993
|
className: "c-select-item",
|
|
3982
3994
|
ref,
|
|
3983
3995
|
...delegated,
|
|
@@ -3995,7 +4007,7 @@ SelectItem.displayName = "SelectItem";
|
|
|
3995
4007
|
import { forwardRef as forwardRef71 } from "react";
|
|
3996
4008
|
import { cva as cva10 } from "class-variance-authority";
|
|
3997
4009
|
import * as SelectPrimitives2 from "@radix-ui/react-select";
|
|
3998
|
-
import { jsx as jsx84, jsxs as
|
|
4010
|
+
import { jsx as jsx84, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
3999
4011
|
var selectTriggerStyles = cva10("c-select-trigger", {
|
|
4000
4012
|
variants: {
|
|
4001
4013
|
size: {
|
|
@@ -4011,10 +4023,10 @@ var selectTriggerStyles = cva10("c-select-trigger", {
|
|
|
4011
4023
|
});
|
|
4012
4024
|
var SelectContainer = forwardRef71(
|
|
4013
4025
|
({ children, id, placeholder, disabled, size, ...delegated }, ref) => {
|
|
4014
|
-
return /* @__PURE__ */
|
|
4026
|
+
return /* @__PURE__ */ jsxs68(SelectPrimitives2.Root, {
|
|
4015
4027
|
...delegated,
|
|
4016
4028
|
children: [
|
|
4017
|
-
/* @__PURE__ */
|
|
4029
|
+
/* @__PURE__ */ jsxs68(SelectPrimitives2.Trigger, {
|
|
4018
4030
|
ref,
|
|
4019
4031
|
className: selectTriggerStyles({ size }),
|
|
4020
4032
|
disabled,
|
|
@@ -4030,7 +4042,7 @@ var SelectContainer = forwardRef71(
|
|
|
4030
4042
|
]
|
|
4031
4043
|
}),
|
|
4032
4044
|
/* @__PURE__ */ jsx84(SelectPrimitives2.Portal, {
|
|
4033
|
-
children: /* @__PURE__ */
|
|
4045
|
+
children: /* @__PURE__ */ jsxs68(SelectPrimitives2.Content, {
|
|
4034
4046
|
className: "c-select-content",
|
|
4035
4047
|
children: [
|
|
4036
4048
|
/* @__PURE__ */ jsx84(SelectPrimitives2.ScrollUpButton, {}),
|
|
@@ -4058,9 +4070,9 @@ var Select = {
|
|
|
4058
4070
|
import { forwardRef as forwardRef72 } from "react";
|
|
4059
4071
|
import { cx as cx10 } from "class-variance-authority";
|
|
4060
4072
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4061
|
-
import { jsx as jsx85, jsxs as
|
|
4073
|
+
import { jsx as jsx85, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
4062
4074
|
var Slider = forwardRef72(({ className, transparentRange, ...delegated }, ref) => {
|
|
4063
|
-
return /* @__PURE__ */
|
|
4075
|
+
return /* @__PURE__ */ jsxs69(SliderPrimitive.Root, {
|
|
4064
4076
|
className: cx10("c-slider-root", className),
|
|
4065
4077
|
ref,
|
|
4066
4078
|
...delegated,
|
|
@@ -4080,7 +4092,7 @@ var Slider = forwardRef72(({ className, transparentRange, ...delegated }, ref) =
|
|
|
4080
4092
|
|
|
4081
4093
|
// src/tag/tag.tsx
|
|
4082
4094
|
import { cva as cva11 } from "class-variance-authority";
|
|
4083
|
-
import { jsx as jsx86, jsxs as
|
|
4095
|
+
import { jsx as jsx86, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
4084
4096
|
var tagStyles = cva11("c-tag", {
|
|
4085
4097
|
variants: {
|
|
4086
4098
|
variant: {
|
|
@@ -4100,7 +4112,7 @@ var tagStyles = cva11("c-tag", {
|
|
|
4100
4112
|
}
|
|
4101
4113
|
});
|
|
4102
4114
|
function Tag({ children, className, variant, size, prepend, onRemove, ...delegated }) {
|
|
4103
|
-
return /* @__PURE__ */
|
|
4115
|
+
return /* @__PURE__ */ jsxs70("div", {
|
|
4104
4116
|
className: tagStyles({ className, variant, size }),
|
|
4105
4117
|
...delegated,
|
|
4106
4118
|
children: [
|
|
@@ -4109,7 +4121,7 @@ function Tag({ children, className, variant, size, prepend, onRemove, ...delegat
|
|
|
4109
4121
|
children: prepend
|
|
4110
4122
|
}),
|
|
4111
4123
|
children,
|
|
4112
|
-
onRemove && /* @__PURE__ */
|
|
4124
|
+
onRemove && /* @__PURE__ */ jsxs70("button", {
|
|
4113
4125
|
type: "button",
|
|
4114
4126
|
className: "c-tag__remove-button",
|
|
4115
4127
|
onClick: (e) => {
|
|
@@ -4787,7 +4799,7 @@ import "react";
|
|
|
4787
4799
|
import { useState as useState2 } from "react";
|
|
4788
4800
|
import { $getNearestNodeFromDOMNode as $getNearestNodeFromDOMNode2 } from "lexical";
|
|
4789
4801
|
import { $isCodeNode as $isCodeNode3 } from "@lexical/code";
|
|
4790
|
-
import { jsx as jsx91, jsxs as
|
|
4802
|
+
import { jsx as jsx91, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
4791
4803
|
var PRETTIER_PARSER_MODULES = {
|
|
4792
4804
|
css: () => import("prettier/parser-postcss"),
|
|
4793
4805
|
html: () => import("prettier/parser-html"),
|
|
@@ -4873,7 +4885,7 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
|
|
|
4873
4885
|
setTipsVisible(false);
|
|
4874
4886
|
}
|
|
4875
4887
|
}
|
|
4876
|
-
return /* @__PURE__ */
|
|
4888
|
+
return /* @__PURE__ */ jsxs71("div", {
|
|
4877
4889
|
className: "c-rte-prettier-wrapper",
|
|
4878
4890
|
children: [
|
|
4879
4891
|
/* @__PURE__ */ jsx91("button", {
|
|
@@ -4897,7 +4909,7 @@ function PrettierButton({ lang, editor, getCodeDOMNode }) {
|
|
|
4897
4909
|
}
|
|
4898
4910
|
|
|
4899
4911
|
// src/rich-text-editor/plugins/CodeActionMenuPlugin/index.tsx
|
|
4900
|
-
import { Fragment as Fragment2, jsx as jsx92, jsxs as
|
|
4912
|
+
import { Fragment as Fragment2, jsx as jsx92, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
4901
4913
|
var CODE_PADDING = 0;
|
|
4902
4914
|
function CodeActionMenuContainer({ anchorElem }) {
|
|
4903
4915
|
const [editor] = useLexicalComposerContext();
|
|
@@ -4975,7 +4987,7 @@ function CodeActionMenuContainer({ anchorElem }) {
|
|
|
4975
4987
|
const normalizedLang = normalizeCodeLang(lang);
|
|
4976
4988
|
const codeFriendlyName = getLanguageFriendlyName(lang);
|
|
4977
4989
|
return /* @__PURE__ */ jsx92(Fragment2, {
|
|
4978
|
-
children: isShown ? /* @__PURE__ */
|
|
4990
|
+
children: isShown ? /* @__PURE__ */ jsxs72("div", {
|
|
4979
4991
|
className: "c-rte-code-action-menu-container",
|
|
4980
4992
|
style: { ...position },
|
|
4981
4993
|
children: [
|
|
@@ -5084,7 +5096,7 @@ import { $findMatchingParent, mergeRegister } from "@lexical/utils";
|
|
|
5084
5096
|
import { Suspense, useEffect as useEffect4, useState as useState5 } from "react";
|
|
5085
5097
|
import { $getSelection as $getSelection2, $isTextNode as $isTextNode3 } from "lexical";
|
|
5086
5098
|
import { useLexicalComposerContext as useLexicalComposerContext3 } from "@lexical/react/LexicalComposerContext";
|
|
5087
|
-
import { Fragment as Fragment3, jsx as jsx94, jsxs as
|
|
5099
|
+
import { Fragment as Fragment3, jsx as jsx94, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
5088
5100
|
var PREVIEW_CACHE = {};
|
|
5089
5101
|
var URL_MATCHER2 = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
|
|
5090
5102
|
function useSuspenseRequest(url) {
|
|
@@ -5141,7 +5153,7 @@ function LinkPreviewContent({
|
|
|
5141
5153
|
if (!hasPreview) {
|
|
5142
5154
|
return null;
|
|
5143
5155
|
}
|
|
5144
|
-
return /* @__PURE__ */
|
|
5156
|
+
return /* @__PURE__ */ jsxs73("div", {
|
|
5145
5157
|
className: "c-rte-link-preview",
|
|
5146
5158
|
children: [
|
|
5147
5159
|
preview.google.image && /* @__PURE__ */ jsx94("div", {
|
|
@@ -5182,7 +5194,7 @@ function LinkPreview({
|
|
|
5182
5194
|
url
|
|
5183
5195
|
}) {
|
|
5184
5196
|
return /* @__PURE__ */ jsx94(Suspense, {
|
|
5185
|
-
fallback: /* @__PURE__ */
|
|
5197
|
+
fallback: /* @__PURE__ */ jsxs73(Fragment3, {
|
|
5186
5198
|
children: [
|
|
5187
5199
|
/* @__PURE__ */ jsx94(Glimmer, {
|
|
5188
5200
|
style: { height: "80px" },
|
|
@@ -5266,7 +5278,7 @@ function validateUrl(url) {
|
|
|
5266
5278
|
}
|
|
5267
5279
|
|
|
5268
5280
|
// src/rich-text-editor/plugins/FloatingLinkEditorPlugin/index.tsx
|
|
5269
|
-
import { Fragment as Fragment4, jsx as jsx95, jsxs as
|
|
5281
|
+
import { Fragment as Fragment4, jsx as jsx95, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
5270
5282
|
function FloatingLinkEditor({
|
|
5271
5283
|
editor,
|
|
5272
5284
|
isLink,
|
|
@@ -5390,7 +5402,7 @@ function FloatingLinkEditor({
|
|
|
5390
5402
|
return /* @__PURE__ */ jsx95("div", {
|
|
5391
5403
|
ref: editorRef,
|
|
5392
5404
|
className: "c-rte-link-editor",
|
|
5393
|
-
children: isEditMode ? /* @__PURE__ */
|
|
5405
|
+
children: isEditMode ? /* @__PURE__ */ jsxs74("div", {
|
|
5394
5406
|
children: [
|
|
5395
5407
|
/* @__PURE__ */ jsx95("div", {
|
|
5396
5408
|
className: "c-rte-link-editor-input-group",
|
|
@@ -5438,12 +5450,12 @@ function FloatingLinkEditor({
|
|
|
5438
5450
|
})
|
|
5439
5451
|
})
|
|
5440
5452
|
]
|
|
5441
|
-
}) : /* @__PURE__ */
|
|
5453
|
+
}) : /* @__PURE__ */ jsxs74(Fragment4, {
|
|
5442
5454
|
children: [
|
|
5443
|
-
/* @__PURE__ */
|
|
5455
|
+
/* @__PURE__ */ jsxs74("div", {
|
|
5444
5456
|
className: "c-rte-link-editor-link-input",
|
|
5445
5457
|
children: [
|
|
5446
|
-
/* @__PURE__ */
|
|
5458
|
+
/* @__PURE__ */ jsxs74("div", {
|
|
5447
5459
|
className: "c-rte-link-editor-link-preview",
|
|
5448
5460
|
children: [
|
|
5449
5461
|
/* @__PURE__ */ jsx95("a", {
|
|
@@ -5452,7 +5464,7 @@ function FloatingLinkEditor({
|
|
|
5452
5464
|
rel: "noopener noreferrer",
|
|
5453
5465
|
children: linkUrl
|
|
5454
5466
|
}),
|
|
5455
|
-
rel || target ? /* @__PURE__ */
|
|
5467
|
+
rel || target ? /* @__PURE__ */ jsxs74("div", {
|
|
5456
5468
|
className: "c-rte-link-editor-preview-attrs",
|
|
5457
5469
|
children: [
|
|
5458
5470
|
rel && /* @__PURE__ */ jsx95("div", {
|
|
@@ -5582,7 +5594,7 @@ function getDOMRangeRect(nativeSelection, rootElement) {
|
|
|
5582
5594
|
}
|
|
5583
5595
|
|
|
5584
5596
|
// src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.tsx
|
|
5585
|
-
import {
|
|
5597
|
+
import { jsx as jsx96, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
5586
5598
|
function TextFormatFloatingToolbar({
|
|
5587
5599
|
editor,
|
|
5588
5600
|
anchorElem,
|
|
@@ -5655,97 +5667,98 @@ function TextFormatFloatingToolbar({
|
|
|
5655
5667
|
)
|
|
5656
5668
|
);
|
|
5657
5669
|
}, [editor, updateTextFormatFloatingToolbar]);
|
|
5658
|
-
|
|
5670
|
+
if (!editor.isEditable()) {
|
|
5671
|
+
return /* @__PURE__ */ jsx96("span", {});
|
|
5672
|
+
}
|
|
5673
|
+
return /* @__PURE__ */ jsxs75("div", {
|
|
5659
5674
|
ref: popupCharStylesEditorRef,
|
|
5660
5675
|
className: "c-rte-floating-text-format-tb-plugin",
|
|
5661
|
-
children:
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
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
|
-
})
|
|
5676
|
+
children: [
|
|
5677
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5678
|
+
onClick: () => {
|
|
5679
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
|
|
5680
|
+
},
|
|
5681
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5682
|
+
title: tr(IS_APPLE ? "actionFormatAsStrongTitleApple" : "actionFormatAsStrongTitle"),
|
|
5683
|
+
"aria-label": tr("actionFormatAsStrongLabel"),
|
|
5684
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5685
|
+
className: `c-rte-icon-bold c-rte-floating-text-format-tb-plugin__format-icon ${isBold ? "selected" : ""}`
|
|
5746
5686
|
})
|
|
5747
|
-
|
|
5748
|
-
|
|
5687
|
+
}),
|
|
5688
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5689
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5690
|
+
onClick: () => {
|
|
5691
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
|
|
5692
|
+
},
|
|
5693
|
+
title: tr("actionFormatAsEmphasizedTitle"),
|
|
5694
|
+
"aria-label": tr("actionFormatAsEmphasizedLabel"),
|
|
5695
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5696
|
+
className: `c-rte-icon-italic c-rte-floating-text-format-tb-plugin__format-icon ${isItalic ? "selected" : ""}`
|
|
5697
|
+
})
|
|
5698
|
+
}),
|
|
5699
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5700
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5701
|
+
onClick: () => {
|
|
5702
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "underline");
|
|
5703
|
+
},
|
|
5704
|
+
title: tr("actionFormatAsUnderlinedTitle"),
|
|
5705
|
+
"aria-label": tr("actionFormatAsUnderlinedLabel"),
|
|
5706
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5707
|
+
className: `c-rte-icon-underline c-rte-floating-text-format-tb-plugin__format-icon ${isUnderline ? "selected" : ""}`
|
|
5708
|
+
})
|
|
5709
|
+
}),
|
|
5710
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5711
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5712
|
+
onClick: () => {
|
|
5713
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "strikethrough");
|
|
5714
|
+
},
|
|
5715
|
+
title: tr("actionFormatWithStrikethroughTitle"),
|
|
5716
|
+
"aria-label": tr("actionFormatWithStrikethroughLabel"),
|
|
5717
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5718
|
+
className: `c-rte-icon-strikethrough c-rte-floating-text-format-tb-plugin__format-icon ${isStrikethrough ? "selected" : ""}`
|
|
5719
|
+
})
|
|
5720
|
+
}),
|
|
5721
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5722
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5723
|
+
onClick: () => {
|
|
5724
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "subscript");
|
|
5725
|
+
},
|
|
5726
|
+
title: tr("actionFormatWithSubscriptTitle"),
|
|
5727
|
+
"aria-label": tr("actionFormatWithSubscriptLabel"),
|
|
5728
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5729
|
+
className: `c-rte-icon-subscript c-rte-floating-text-format-tb-plugin__format-icon ${isSubscript ? "selected" : ""}`
|
|
5730
|
+
})
|
|
5731
|
+
}),
|
|
5732
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5733
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5734
|
+
onClick: () => {
|
|
5735
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "superscript");
|
|
5736
|
+
},
|
|
5737
|
+
title: tr("actionFormatWithSuperscriptTitle"),
|
|
5738
|
+
"aria-label": tr("actionFormatWithSuperscriptLabel"),
|
|
5739
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5740
|
+
className: `c-rte-icon-superscript c-rte-floating-text-format-tb-plugin__format-icon ${isSuperscript ? "selected" : ""}`
|
|
5741
|
+
})
|
|
5742
|
+
}),
|
|
5743
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5744
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5745
|
+
onClick: () => {
|
|
5746
|
+
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "code");
|
|
5747
|
+
},
|
|
5748
|
+
"aria-label": tr("actionInsertCodeBlock"),
|
|
5749
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5750
|
+
className: `c-rte-icon-code c-rte-floating-text-format-tb-plugin__format-icon ${isCode ? "selected" : ""}`
|
|
5751
|
+
})
|
|
5752
|
+
}),
|
|
5753
|
+
/* @__PURE__ */ jsx96(IconButton, {
|
|
5754
|
+
style: { padding: 0, overflow: "hidden" },
|
|
5755
|
+
onClick: insertLink,
|
|
5756
|
+
"aria-label": tr("actionInsertlink"),
|
|
5757
|
+
children: /* @__PURE__ */ jsx96("i", {
|
|
5758
|
+
className: `c-rte-icon-link c-rte-floating-text-format-tb-plugin__format-icon ${isLink ? "selected" : ""}`
|
|
5759
|
+
})
|
|
5760
|
+
})
|
|
5761
|
+
]
|
|
5749
5762
|
});
|
|
5750
5763
|
}
|
|
5751
5764
|
function useFloatingTextFormatToolbar(editor, anchorElem) {
|
|
@@ -6036,7 +6049,7 @@ import {
|
|
|
6036
6049
|
TableCellHeaderStates,
|
|
6037
6050
|
TableCellNode as TableCellNode2
|
|
6038
6051
|
} from "@lexical/table";
|
|
6039
|
-
import { Fragment as
|
|
6052
|
+
import { Fragment as Fragment5, jsx as jsx98, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
6040
6053
|
function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
|
|
6041
6054
|
const [editor] = useLexicalComposerContext9();
|
|
6042
6055
|
const [tableCellNode, updateTableCellNode] = useState8(_tableCellNode);
|
|
@@ -6191,7 +6204,7 @@ function TableActionMenu({ tableCellNode: _tableCellNode, tableStats }) {
|
|
|
6191
6204
|
clearTableSelection();
|
|
6192
6205
|
});
|
|
6193
6206
|
}, [editor, tableCellNode, clearTableSelection]);
|
|
6194
|
-
return /* @__PURE__ */
|
|
6207
|
+
return /* @__PURE__ */ jsxs76(Fragment5, {
|
|
6195
6208
|
children: [
|
|
6196
6209
|
/* @__PURE__ */ jsx98(DropdownMenu.Item, {
|
|
6197
6210
|
onSelect: () => insertTableRowAtSelection(false),
|
|
@@ -6388,7 +6401,7 @@ import {
|
|
|
6388
6401
|
import { useRef as useRef6 } from "react";
|
|
6389
6402
|
import { CLEAR_EDITOR_COMMAND } from "lexical";
|
|
6390
6403
|
import { useLexicalComposerContext as useLexicalComposerContext10 } from "@lexical/react/LexicalComposerContext";
|
|
6391
|
-
import { jsx as jsx99, jsxs as
|
|
6404
|
+
import { jsx as jsx99, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
6392
6405
|
async function copyJson(editor) {
|
|
6393
6406
|
const json = lexicalToCrystallizeRichText({ editor, editorState: editor.getEditorState() });
|
|
6394
6407
|
try {
|
|
@@ -6407,7 +6420,7 @@ function ActionsPlugin({
|
|
|
6407
6420
|
return /* @__PURE__ */ jsx99("div", {
|
|
6408
6421
|
ref: actionMenuAnchorRef,
|
|
6409
6422
|
className: "c-rte-actions-plugin",
|
|
6410
|
-
children: /* @__PURE__ */
|
|
6423
|
+
children: /* @__PURE__ */ jsxs77(ActionMenu, {
|
|
6411
6424
|
container: actionMenuAnchorRef.current,
|
|
6412
6425
|
children: [
|
|
6413
6426
|
!prepend ? null : prepend.map((actionItem) => /* @__PURE__ */ jsx99(ActionMenu.Item, {
|
|
@@ -6440,7 +6453,7 @@ function ActionsPlugin({
|
|
|
6440
6453
|
// src/rich-text-editor/plugins/ToolbarPlugin/insert-table.tsx
|
|
6441
6454
|
import { useState as useState9 } from "react";
|
|
6442
6455
|
import { INSERT_TABLE_COMMAND } from "@lexical/table";
|
|
6443
|
-
import { jsx as jsx100, jsxs as
|
|
6456
|
+
import { jsx as jsx100, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
6444
6457
|
function InsertTableDialog({ activeEditor }) {
|
|
6445
6458
|
const [rows, setRows] = useState9("5");
|
|
6446
6459
|
const [columns, setColumns] = useState9("5");
|
|
@@ -6458,10 +6471,10 @@ function InsertTableDialog({ activeEditor }) {
|
|
|
6458
6471
|
}
|
|
6459
6472
|
});
|
|
6460
6473
|
};
|
|
6461
|
-
return /* @__PURE__ */
|
|
6474
|
+
return /* @__PURE__ */ jsxs78("div", {
|
|
6462
6475
|
className: "c-rte-insert-table",
|
|
6463
6476
|
children: [
|
|
6464
|
-
/* @__PURE__ */
|
|
6477
|
+
/* @__PURE__ */ jsxs78("div", {
|
|
6465
6478
|
className: "c-rte-insert-table__dimensions",
|
|
6466
6479
|
children: [
|
|
6467
6480
|
/* @__PURE__ */ jsx100(InputWithLabel, {
|
|
@@ -6501,7 +6514,7 @@ function InsertTableDialog({ activeEditor }) {
|
|
|
6501
6514
|
}
|
|
6502
6515
|
|
|
6503
6516
|
// src/rich-text-editor/plugins/ToolbarPlugin/index.tsx
|
|
6504
|
-
import { Fragment as
|
|
6517
|
+
import { Fragment as Fragment6, jsx as jsx101, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
6505
6518
|
var headingTypeToBlockName = {
|
|
6506
6519
|
h1: "Heading 1",
|
|
6507
6520
|
h2: "Heading 2",
|
|
@@ -6608,9 +6621,9 @@ function BlockFormatDropDown({
|
|
|
6608
6621
|
return /* @__PURE__ */ jsx101(DropdownMenu.Root, {
|
|
6609
6622
|
disabled,
|
|
6610
6623
|
style: { zIndex: 1 },
|
|
6611
|
-
content: /* @__PURE__ */
|
|
6624
|
+
content: /* @__PURE__ */ jsxs79(Fragment6, {
|
|
6612
6625
|
children: [
|
|
6613
|
-
/* @__PURE__ */
|
|
6626
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6614
6627
|
onClick: formatParagraph,
|
|
6615
6628
|
children: [
|
|
6616
6629
|
/* @__PURE__ */ jsx101("i", {
|
|
@@ -6622,7 +6635,7 @@ function BlockFormatDropDown({
|
|
|
6622
6635
|
})
|
|
6623
6636
|
]
|
|
6624
6637
|
}),
|
|
6625
|
-
headings.map((headingSize) => /* @__PURE__ */
|
|
6638
|
+
headings.map((headingSize) => /* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6626
6639
|
onClick: () => formatHeading(headingSize),
|
|
6627
6640
|
children: [
|
|
6628
6641
|
/* @__PURE__ */ jsx101("i", {
|
|
@@ -6634,7 +6647,7 @@ function BlockFormatDropDown({
|
|
|
6634
6647
|
})
|
|
6635
6648
|
]
|
|
6636
6649
|
}, headingSize)),
|
|
6637
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6638
6651
|
onClick: formatBulletList,
|
|
6639
6652
|
children: [
|
|
6640
6653
|
/* @__PURE__ */ jsx101("i", {
|
|
@@ -6646,7 +6659,7 @@ function BlockFormatDropDown({
|
|
|
6646
6659
|
})
|
|
6647
6660
|
]
|
|
6648
6661
|
}),
|
|
6649
|
-
/* @__PURE__ */
|
|
6662
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6650
6663
|
onClick: formatNumberedList,
|
|
6651
6664
|
children: [
|
|
6652
6665
|
/* @__PURE__ */ jsx101("i", {
|
|
@@ -6658,7 +6671,7 @@ function BlockFormatDropDown({
|
|
|
6658
6671
|
})
|
|
6659
6672
|
]
|
|
6660
6673
|
}),
|
|
6661
|
-
/* @__PURE__ */
|
|
6674
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6662
6675
|
onClick: formatQuote,
|
|
6663
6676
|
"data-testid": "toggle-block-format-quote",
|
|
6664
6677
|
children: [
|
|
@@ -6671,7 +6684,7 @@ function BlockFormatDropDown({
|
|
|
6671
6684
|
})
|
|
6672
6685
|
]
|
|
6673
6686
|
}),
|
|
6674
|
-
/* @__PURE__ */
|
|
6687
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6675
6688
|
onClick: formatCode,
|
|
6676
6689
|
"data-testid": "toggle-block-format-code",
|
|
6677
6690
|
children: [
|
|
@@ -6686,7 +6699,7 @@ function BlockFormatDropDown({
|
|
|
6686
6699
|
})
|
|
6687
6700
|
]
|
|
6688
6701
|
}),
|
|
6689
|
-
children: /* @__PURE__ */
|
|
6702
|
+
children: /* @__PURE__ */ jsxs79(Button, {
|
|
6690
6703
|
style: { backgroundColor: "transparent", padding: "0 8px" },
|
|
6691
6704
|
"aria-label": "Formatting options for text style",
|
|
6692
6705
|
"data-testid": "toggle-block-format",
|
|
@@ -6849,10 +6862,10 @@ function ToolbarPlugin({
|
|
|
6849
6862
|
},
|
|
6850
6863
|
[activeEditor, selectedElementKey]
|
|
6851
6864
|
);
|
|
6852
|
-
return /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ jsxs79("div", {
|
|
6853
6866
|
className: "c-rte-toolbar",
|
|
6854
6867
|
children: [
|
|
6855
|
-
/* @__PURE__ */
|
|
6868
|
+
/* @__PURE__ */ jsxs79("div", {
|
|
6856
6869
|
className: "c-rte-toolbar__inner",
|
|
6857
6870
|
children: [
|
|
6858
6871
|
/* @__PURE__ */ jsx101(IconButton, {
|
|
@@ -6881,7 +6894,7 @@ function ToolbarPlugin({
|
|
|
6881
6894
|
})
|
|
6882
6895
|
}),
|
|
6883
6896
|
/* @__PURE__ */ jsx101(Divider, {}),
|
|
6884
|
-
blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */
|
|
6897
|
+
blockType in blockTypeToBlockName && activeEditor === editor && /* @__PURE__ */ jsxs79(Fragment6, {
|
|
6885
6898
|
children: [
|
|
6886
6899
|
/* @__PURE__ */ jsx101(BlockFormatDropDown, {
|
|
6887
6900
|
disabled: !isEditable,
|
|
@@ -6891,11 +6904,11 @@ function ToolbarPlugin({
|
|
|
6891
6904
|
/* @__PURE__ */ jsx101(Divider, {})
|
|
6892
6905
|
]
|
|
6893
6906
|
}),
|
|
6894
|
-
blockType === "code" ? /* @__PURE__ */ jsx101(
|
|
6907
|
+
blockType === "code" ? /* @__PURE__ */ jsx101(Fragment6, {
|
|
6895
6908
|
children: /* @__PURE__ */ jsx101(DropdownMenu.Root, {
|
|
6896
6909
|
disabled: !isEditable,
|
|
6897
6910
|
style: { zIndex: 1 },
|
|
6898
|
-
content: /* @__PURE__ */ jsx101(
|
|
6911
|
+
content: /* @__PURE__ */ jsx101(Fragment6, {
|
|
6899
6912
|
children: CODE_LANGUAGE_OPTIONS.map(([value, name]) => {
|
|
6900
6913
|
return /* @__PURE__ */ jsx101(DropdownMenu.Item, {
|
|
6901
6914
|
className: `item ${dropDownActiveClass(value === codeLanguage)}`,
|
|
@@ -6917,7 +6930,7 @@ function ToolbarPlugin({
|
|
|
6917
6930
|
})
|
|
6918
6931
|
})
|
|
6919
6932
|
}) : /* @__PURE__ */ jsx101(Dialog, {
|
|
6920
|
-
children: /* @__PURE__ */
|
|
6933
|
+
children: /* @__PURE__ */ jsxs79("div", {
|
|
6921
6934
|
className: "c-rte-toolbar__actions-rest",
|
|
6922
6935
|
children: [
|
|
6923
6936
|
/* @__PURE__ */ jsx101(IconButton, {
|
|
@@ -6989,9 +7002,9 @@ function ToolbarPlugin({
|
|
|
6989
7002
|
/* @__PURE__ */ jsx101(DropdownMenu.Root, {
|
|
6990
7003
|
disabled: !isEditable,
|
|
6991
7004
|
style: { zIndex: 1 },
|
|
6992
|
-
content: /* @__PURE__ */
|
|
7005
|
+
content: /* @__PURE__ */ jsxs79(Fragment6, {
|
|
6993
7006
|
children: [
|
|
6994
|
-
/* @__PURE__ */
|
|
7007
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
6995
7008
|
onClick: () => {
|
|
6996
7009
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "strikethrough");
|
|
6997
7010
|
},
|
|
@@ -7007,7 +7020,7 @@ function ToolbarPlugin({
|
|
|
7007
7020
|
})
|
|
7008
7021
|
]
|
|
7009
7022
|
}),
|
|
7010
|
-
/* @__PURE__ */
|
|
7023
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
7011
7024
|
onClick: () => {
|
|
7012
7025
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "subscript");
|
|
7013
7026
|
},
|
|
@@ -7023,7 +7036,7 @@ function ToolbarPlugin({
|
|
|
7023
7036
|
})
|
|
7024
7037
|
]
|
|
7025
7038
|
}),
|
|
7026
|
-
/* @__PURE__ */
|
|
7039
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
7027
7040
|
onClick: () => {
|
|
7028
7041
|
activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND2, "superscript");
|
|
7029
7042
|
},
|
|
@@ -7039,7 +7052,7 @@ function ToolbarPlugin({
|
|
|
7039
7052
|
})
|
|
7040
7053
|
]
|
|
7041
7054
|
}),
|
|
7042
|
-
/* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
7043
7056
|
onClick: clearFormatting,
|
|
7044
7057
|
className: "item",
|
|
7045
7058
|
title: tr("actionClearTextFormatting"),
|
|
@@ -7056,7 +7069,7 @@ function ToolbarPlugin({
|
|
|
7056
7069
|
})
|
|
7057
7070
|
]
|
|
7058
7071
|
}),
|
|
7059
|
-
children: /* @__PURE__ */
|
|
7072
|
+
children: /* @__PURE__ */ jsxs79(Button, {
|
|
7060
7073
|
style: { backgroundColor: "transparent", padding: "0 8px" },
|
|
7061
7074
|
"aria-label": tr("actionTextFormattingOptions"),
|
|
7062
7075
|
children: [
|
|
@@ -7071,9 +7084,9 @@ function ToolbarPlugin({
|
|
|
7071
7084
|
/* @__PURE__ */ jsx101(DropdownMenu.Root, {
|
|
7072
7085
|
style: { zIndex: 1 },
|
|
7073
7086
|
disabled: !isEditable,
|
|
7074
|
-
content: /* @__PURE__ */
|
|
7087
|
+
content: /* @__PURE__ */ jsxs79(Fragment6, {
|
|
7075
7088
|
children: [
|
|
7076
|
-
/* @__PURE__ */
|
|
7089
|
+
/* @__PURE__ */ jsxs79(DropdownMenu.Item, {
|
|
7077
7090
|
onClick: () => {
|
|
7078
7091
|
activeEditor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, void 0);
|
|
7079
7092
|
},
|
|
@@ -7090,7 +7103,7 @@ function ToolbarPlugin({
|
|
|
7090
7103
|
/* @__PURE__ */ jsx101(DropdownMenu.Item, {
|
|
7091
7104
|
children: /* @__PURE__ */ jsx101(Dialog.Trigger, {
|
|
7092
7105
|
asChild: true,
|
|
7093
|
-
children: /* @__PURE__ */
|
|
7106
|
+
children: /* @__PURE__ */ jsxs79("div", {
|
|
7094
7107
|
className: "c-rte-toolbar__dd-item--table",
|
|
7095
7108
|
children: [
|
|
7096
7109
|
/* @__PURE__ */ jsx101("i", {
|
|
@@ -7112,7 +7125,7 @@ function ToolbarPlugin({
|
|
|
7112
7125
|
})
|
|
7113
7126
|
})
|
|
7114
7127
|
}),
|
|
7115
|
-
/* @__PURE__ */
|
|
7128
|
+
/* @__PURE__ */ jsxs79(Dialog.Content, {
|
|
7116
7129
|
children: [
|
|
7117
7130
|
/* @__PURE__ */ jsx101(Dialog.Title, {
|
|
7118
7131
|
children: tr("insertTableTitle")
|
|
@@ -7241,19 +7254,18 @@ var theme = {
|
|
|
7241
7254
|
var CrystallizeRTEditorTheme_default = theme;
|
|
7242
7255
|
|
|
7243
7256
|
// src/rich-text-editor/rich-text-editor.tsx
|
|
7244
|
-
import { Fragment as
|
|
7257
|
+
import { Fragment as Fragment7, jsx as jsx102, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7245
7258
|
function RichTextEditor({
|
|
7246
7259
|
initialData,
|
|
7247
|
-
editable = true,
|
|
7248
7260
|
language = "en",
|
|
7249
7261
|
labelTranslations,
|
|
7250
7262
|
...rest
|
|
7251
7263
|
}) {
|
|
7252
7264
|
return /* @__PURE__ */ jsx102(LexicalComposer, {
|
|
7253
7265
|
initialConfig: {
|
|
7266
|
+
editable: !rest.disabled,
|
|
7254
7267
|
namespace: "crystallize-rich-text-editor",
|
|
7255
7268
|
nodes: [...BaseNodes],
|
|
7256
|
-
editable,
|
|
7257
7269
|
onError: (error) => {
|
|
7258
7270
|
throw error;
|
|
7259
7271
|
},
|
|
@@ -7269,8 +7281,7 @@ function RichTextEditor({
|
|
|
7269
7281
|
children: /* @__PURE__ */ jsx102("div", {
|
|
7270
7282
|
className: "c-rich-text-editor",
|
|
7271
7283
|
children: /* @__PURE__ */ jsx102(RichTextEditorWithoutContext, {
|
|
7272
|
-
...rest
|
|
7273
|
-
editable
|
|
7284
|
+
...rest
|
|
7274
7285
|
})
|
|
7275
7286
|
})
|
|
7276
7287
|
})
|
|
@@ -7286,9 +7297,10 @@ function RichTextEditorWithoutContext({
|
|
|
7286
7297
|
actionsMenuAppend,
|
|
7287
7298
|
slotPreContent,
|
|
7288
7299
|
maxLength,
|
|
7289
|
-
|
|
7300
|
+
disabled,
|
|
7290
7301
|
id
|
|
7291
7302
|
}) {
|
|
7303
|
+
const editable = !disabled;
|
|
7292
7304
|
const { historyState } = useSharedHistoryContext();
|
|
7293
7305
|
const placeholder = /* @__PURE__ */ jsx102("div", {
|
|
7294
7306
|
className: "c-rte-placeholder",
|
|
@@ -7314,7 +7326,7 @@ function RichTextEditorWithoutContext({
|
|
|
7314
7326
|
}
|
|
7315
7327
|
firstOnChangeTriggeredRef.current = true;
|
|
7316
7328
|
}
|
|
7317
|
-
return /* @__PURE__ */
|
|
7329
|
+
return /* @__PURE__ */ jsxs80(Fragment7, {
|
|
7318
7330
|
children: [
|
|
7319
7331
|
/* @__PURE__ */ jsx102(OnChangePlugin, {
|
|
7320
7332
|
onChange: onLocalChange,
|
|
@@ -7328,8 +7340,8 @@ function RichTextEditorWithoutContext({
|
|
|
7328
7340
|
actionsMenuAppend
|
|
7329
7341
|
}),
|
|
7330
7342
|
slotPreContent,
|
|
7331
|
-
/* @__PURE__ */
|
|
7332
|
-
className:
|
|
7343
|
+
/* @__PURE__ */ jsxs80("div", {
|
|
7344
|
+
className: `c-rte-editor-container ${disabled ? "disabled" : ""}`,
|
|
7333
7345
|
children: [
|
|
7334
7346
|
maxLength != null ? /* @__PURE__ */ jsx102(MaxLengthPlugin, {
|
|
7335
7347
|
maxLength
|
|
@@ -7365,7 +7377,7 @@ function RichTextEditorWithoutContext({
|
|
|
7365
7377
|
/* @__PURE__ */ jsx102(HorizontalRulePlugin, {}),
|
|
7366
7378
|
/* @__PURE__ */ jsx102(TabFocusPlugin, {}),
|
|
7367
7379
|
/* @__PURE__ */ jsx102(TabIndentationPlugin, {}),
|
|
7368
|
-
floatingAnchorElem && !isSmallWidthViewport && /* @__PURE__ */
|
|
7380
|
+
floatingAnchorElem && !isSmallWidthViewport && /* @__PURE__ */ jsxs80(Fragment7, {
|
|
7369
7381
|
children: [
|
|
7370
7382
|
/* @__PURE__ */ jsx102(CodeActionMenuPlugin, {
|
|
7371
7383
|
anchorElem: floatingAnchorElem
|