@rufous/ui 0.3.58 → 0.3.60
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/main.cjs +256 -192
- package/dist/main.css +10 -1
- package/dist/main.d.cts +15 -1
- package/dist/main.d.ts +15 -1
- package/dist/main.js +955 -898
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(main_exports, {
|
|
|
49
49
|
Autocomplete: () => Autocomplete,
|
|
50
50
|
Avatar: () => Avatar,
|
|
51
51
|
AvatarGroup: () => AvatarGroup,
|
|
52
|
+
BarChartIcon: () => barChartIcon_default,
|
|
52
53
|
BaseDialog: () => BaseDialog_default,
|
|
53
54
|
BookmarkIcon: () => bookmarkIcon_default,
|
|
54
55
|
Box: () => Box,
|
|
@@ -95,6 +96,7 @@ __export(main_exports, {
|
|
|
95
96
|
DifficultyMediumIcon: () => difficultyMediumIcon_default,
|
|
96
97
|
Divider: () => Divider,
|
|
97
98
|
DollarIcon: () => dollarIcon_default,
|
|
99
|
+
DonutLargeIcon: () => donutLargeIcon_default,
|
|
98
100
|
DownloadIcon: () => downloadIcon_default,
|
|
99
101
|
DownloadPdfIcon: () => downloadPdfIcon_default,
|
|
100
102
|
DragIndicatorIcon: () => dragIndicatorIcon_default,
|
|
@@ -128,6 +130,7 @@ __export(main_exports, {
|
|
|
128
130
|
IndustryIcon: () => industryIcon_default,
|
|
129
131
|
InfoIcon: () => infoIcon_default,
|
|
130
132
|
InvoiceIcon: () => invoiceIcon_default,
|
|
133
|
+
LightbulbIcon: () => lightbulbIcon_default,
|
|
131
134
|
LineHeight: () => LineHeight,
|
|
132
135
|
LinearProgress: () => LinearProgress,
|
|
133
136
|
Link: () => Link,
|
|
@@ -167,6 +170,7 @@ __export(main_exports, {
|
|
|
167
170
|
PersonSearchIcon: () => personSearchIcon_default,
|
|
168
171
|
PhoneField: () => PhoneField,
|
|
169
172
|
PhoneIcon: () => phoneIcon_default,
|
|
173
|
+
PieChartIcon: () => pieChartIcon_default,
|
|
170
174
|
PinIcon: () => pinIcon_default,
|
|
171
175
|
PlaceIcon: () => placeIcon_default,
|
|
172
176
|
PlusIcon: () => plusIcon_default,
|
|
@@ -186,6 +190,7 @@ __export(main_exports, {
|
|
|
186
190
|
Radio: () => Radio,
|
|
187
191
|
RadioGroup: () => RadioGroup,
|
|
188
192
|
Rating: () => Rating,
|
|
193
|
+
RecommendIcon: () => recommendIcon_default,
|
|
189
194
|
RefreshIcon: () => refreshIcon_default,
|
|
190
195
|
RemoveIcon: () => RemoveIcon,
|
|
191
196
|
ResendInviteIcon: () => resendInviteIcon_default,
|
|
@@ -206,6 +211,7 @@ __export(main_exports, {
|
|
|
206
211
|
SendIcon: () => sendIcon_default,
|
|
207
212
|
SettingsIcon: () => settingsIcon_default,
|
|
208
213
|
ShareIcon: () => shareIcon_default,
|
|
214
|
+
ShowChartIcon: () => showChartIcon_default,
|
|
209
215
|
SidebarIcon: () => sidebarIcon_default,
|
|
210
216
|
Skeleton: () => Skeleton,
|
|
211
217
|
Slide: () => Slide,
|
|
@@ -258,6 +264,7 @@ __export(main_exports, {
|
|
|
258
264
|
TrashIcon: () => trashIcon_default,
|
|
259
265
|
TreeSelect: () => TreeSelect,
|
|
260
266
|
TrendingFlatIcon: () => trendingFlatIcon_default,
|
|
267
|
+
TrendingUpIcon: () => trendingUpIcon_default,
|
|
261
268
|
Typography: () => Typography,
|
|
262
269
|
UnArchivedIcon: () => unArchivedIcon_default,
|
|
263
270
|
UnlockIcon: () => unlockIcon_default,
|
|
@@ -1467,12 +1474,62 @@ var CheckBoxIcon = makeMaterialIcon(
|
|
|
1467
1474
|
);
|
|
1468
1475
|
var checkBoxIcon_default = CheckBoxIcon;
|
|
1469
1476
|
|
|
1477
|
+
// lib/icons/recommendIcon.tsx
|
|
1478
|
+
var React125 = __toESM(require("react"), 1);
|
|
1479
|
+
var RecommendIcon = makeMaterialIcon(
|
|
1480
|
+
/* @__PURE__ */ React125.createElement("path", { d: "M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z" }),
|
|
1481
|
+
/* @__PURE__ */ React125.createElement(React125.Fragment, null, /* @__PURE__ */ React125.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" }), /* @__PURE__ */ React125.createElement("path", { d: "M17 10h-4.59l.58-3.41v-.2c-.01-.26-.12-.51-.3-.7L12 5l-4.6 5c-.27.26-.42.62-.4 1v5c0 1.1.9 2 2 2h5.5c.56.03 1.08-.29 1.3-.8l2.1-4.9c.08-.15.12-.33.1-.5V11c0-.55-.45-1-1-1z" }))
|
|
1482
|
+
);
|
|
1483
|
+
var recommendIcon_default = RecommendIcon;
|
|
1484
|
+
|
|
1485
|
+
// lib/icons/trendingUpIcon.tsx
|
|
1486
|
+
var React126 = __toESM(require("react"), 1);
|
|
1487
|
+
var path10 = /* @__PURE__ */ React126.createElement("path", { d: "m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z" });
|
|
1488
|
+
var TrendingUpIcon = makeMaterialIcon(path10, path10);
|
|
1489
|
+
var trendingUpIcon_default = TrendingUpIcon;
|
|
1490
|
+
|
|
1491
|
+
// lib/icons/pieChartIcon.tsx
|
|
1492
|
+
var React127 = __toESM(require("react"), 1);
|
|
1493
|
+
var PieChartIcon = makeMaterialIcon(
|
|
1494
|
+
/* @__PURE__ */ React127.createElement("path", { d: "M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z" }),
|
|
1495
|
+
/* @__PURE__ */ React127.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm7.93 9H13V4.07c3.61.45 6.48 3.32 6.93 6.93zM4 12c0-4.07 3.06-7.44 7-7.93v15.86c-3.94-.49-7-3.86-7-7.93zm9 7.93V13h6.93A8.002 8.002 0 0 1 13 19.93z" })
|
|
1496
|
+
);
|
|
1497
|
+
var pieChartIcon_default = PieChartIcon;
|
|
1498
|
+
|
|
1499
|
+
// lib/icons/barChartIcon.tsx
|
|
1500
|
+
var React128 = __toESM(require("react"), 1);
|
|
1501
|
+
var path11 = /* @__PURE__ */ React128.createElement("path", { d: "M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z" });
|
|
1502
|
+
var BarChartIcon = makeMaterialIcon(path11, path11);
|
|
1503
|
+
var barChartIcon_default = BarChartIcon;
|
|
1504
|
+
|
|
1505
|
+
// lib/icons/donutLargeIcon.tsx
|
|
1506
|
+
var React129 = __toESM(require("react"), 1);
|
|
1507
|
+
var DonutLargeIcon = makeMaterialIcon(
|
|
1508
|
+
/* @__PURE__ */ React129.createElement("path", { d: "M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z" }),
|
|
1509
|
+
/* @__PURE__ */ React129.createElement("path", { d: "M13 5.08A7 7 0 0 1 18.92 11h3.03c-.47-4.72-4.23-8.48-8.95-8.95v3.03zM18.92 13A7 7 0 0 1 13 18.92v3.03c4.72-.47 8.48-4.23 8.95-8.95h-3.03zM11 18.92c-3.39-.49-6-3.4-6-6.92s2.61-6.43 6-6.92V2.05c-5.05.5-9 4.76-9 9.95 0 5.19 3.95 9.45 9 9.95v-3.03z" })
|
|
1510
|
+
);
|
|
1511
|
+
var donutLargeIcon_default = DonutLargeIcon;
|
|
1512
|
+
|
|
1513
|
+
// lib/icons/showChartIcon.tsx
|
|
1514
|
+
var React130 = __toESM(require("react"), 1);
|
|
1515
|
+
var path12 = /* @__PURE__ */ React130.createElement("path", { d: "M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z" });
|
|
1516
|
+
var ShowChartIcon = makeMaterialIcon(path12, path12);
|
|
1517
|
+
var showChartIcon_default = ShowChartIcon;
|
|
1518
|
+
|
|
1519
|
+
// lib/icons/lightbulbIcon.tsx
|
|
1520
|
+
var React131 = __toESM(require("react"), 1);
|
|
1521
|
+
var LightbulbIcon = makeMaterialIcon(
|
|
1522
|
+
/* @__PURE__ */ React131.createElement("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z" }),
|
|
1523
|
+
/* @__PURE__ */ React131.createElement("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 0 1 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z" })
|
|
1524
|
+
);
|
|
1525
|
+
var lightbulbIcon_default = LightbulbIcon;
|
|
1526
|
+
|
|
1470
1527
|
// lib/icons/index.ts
|
|
1471
1528
|
var AddIcon = plusIcon_default;
|
|
1472
1529
|
var RemoveIcon = minusIcon_default;
|
|
1473
1530
|
|
|
1474
1531
|
// lib/Buttons/addButton.tsx
|
|
1475
|
-
var
|
|
1532
|
+
var React132 = __toESM(require("react"), 1);
|
|
1476
1533
|
|
|
1477
1534
|
// lib/utils/sx.ts
|
|
1478
1535
|
var import_react5 = require("react");
|
|
@@ -1521,15 +1578,15 @@ function useSx(sx) {
|
|
|
1521
1578
|
// lib/Buttons/addButton.tsx
|
|
1522
1579
|
var AddButton = ({ children, sx, className, ...props }) => {
|
|
1523
1580
|
const sxClass = useSx(sx);
|
|
1524
|
-
return /* @__PURE__ */
|
|
1581
|
+
return /* @__PURE__ */ React132.createElement("button", { className: ["btn add-btn", sxClass, className].filter(Boolean).join(" "), ...props }, "+ ", children);
|
|
1525
1582
|
};
|
|
1526
1583
|
var addButton_default = AddButton;
|
|
1527
1584
|
|
|
1528
1585
|
// lib/Buttons/submitButton.tsx
|
|
1529
|
-
var
|
|
1586
|
+
var React134 = __toESM(require("react"), 1);
|
|
1530
1587
|
|
|
1531
1588
|
// lib/Progress/circularProgress.tsx
|
|
1532
|
-
var
|
|
1589
|
+
var React133 = __toESM(require("react"), 1);
|
|
1533
1590
|
var CircularProgress = ({
|
|
1534
1591
|
size = 50,
|
|
1535
1592
|
color = "#a81c08",
|
|
@@ -1538,14 +1595,14 @@ var CircularProgress = ({
|
|
|
1538
1595
|
...props
|
|
1539
1596
|
}) => {
|
|
1540
1597
|
const sxClass = useSx(sx);
|
|
1541
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ React133.createElement(
|
|
1542
1599
|
"div",
|
|
1543
1600
|
{
|
|
1544
1601
|
className: ["rufous-loader", sxClass, className].filter(Boolean).join(" "),
|
|
1545
1602
|
style: { width: size, height: size },
|
|
1546
1603
|
...props
|
|
1547
1604
|
},
|
|
1548
|
-
/* @__PURE__ */
|
|
1605
|
+
/* @__PURE__ */ React133.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React133.createElement(
|
|
1549
1606
|
"circle",
|
|
1550
1607
|
{
|
|
1551
1608
|
className: "rufous-loader-circle",
|
|
@@ -1567,7 +1624,7 @@ var CircularProgressIcon = ({
|
|
|
1567
1624
|
className
|
|
1568
1625
|
}) => {
|
|
1569
1626
|
const sxClass = useSx(sx);
|
|
1570
|
-
return /* @__PURE__ */
|
|
1627
|
+
return /* @__PURE__ */ React133.createElement("div", { className: ["rufous-loader rufous-loader--with-icon", sxClass, className].filter(Boolean).join(" "), style: { width: size, height: size } }, /* @__PURE__ */ React133.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React133.createElement(
|
|
1571
1628
|
"circle",
|
|
1572
1629
|
{
|
|
1573
1630
|
className: "rufous-loader-circle",
|
|
@@ -1576,7 +1633,7 @@ var CircularProgressIcon = ({
|
|
|
1576
1633
|
r: "45",
|
|
1577
1634
|
stroke: color
|
|
1578
1635
|
}
|
|
1579
|
-
)), /* @__PURE__ */
|
|
1636
|
+
)), /* @__PURE__ */ React133.createElement("div", { className: "rufous-loader__icon-wrap" }, /* @__PURE__ */ React133.createElement("div", { className: spinIcon ? "rufous-loader__icon--spin-y" : void 0 }, icon)));
|
|
1580
1637
|
};
|
|
1581
1638
|
|
|
1582
1639
|
// lib/Buttons/submitButton.tsx
|
|
@@ -1593,7 +1650,7 @@ var SubmitButton = ({
|
|
|
1593
1650
|
...props
|
|
1594
1651
|
}) => {
|
|
1595
1652
|
const sxClass = useSx(sx);
|
|
1596
|
-
const [loading, setLoading] =
|
|
1653
|
+
const [loading, setLoading] = React134.useState(false);
|
|
1597
1654
|
const runProtected = async (e, handler) => {
|
|
1598
1655
|
if (loading || isLoading) return;
|
|
1599
1656
|
setLoading(true);
|
|
@@ -1609,7 +1666,7 @@ var SubmitButton = ({
|
|
|
1609
1666
|
const handleClick = onClick ? (e) => runProtected(e, onClick) : void 0;
|
|
1610
1667
|
const handleDoubleClick = onDoubleClick ? (e) => runProtected(e, onDoubleClick) : void 0;
|
|
1611
1668
|
const showLoader = loading || isLoading;
|
|
1612
|
-
return /* @__PURE__ */
|
|
1669
|
+
return /* @__PURE__ */ React134.createElement(
|
|
1613
1670
|
"button",
|
|
1614
1671
|
{
|
|
1615
1672
|
...props,
|
|
@@ -1620,38 +1677,38 @@ var SubmitButton = ({
|
|
|
1620
1677
|
onDoubleClick: onDoubleClick ? handleDoubleClick : void 0,
|
|
1621
1678
|
style: { position: "relative", ...props.style }
|
|
1622
1679
|
},
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
showLoader && /* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ React134.createElement("span", { className: "btn-content", style: { visibility: showLoader ? "hidden" : "visible" } }, children),
|
|
1681
|
+
showLoader && /* @__PURE__ */ React134.createElement("span", { style: {
|
|
1625
1682
|
position: "absolute",
|
|
1626
1683
|
inset: 0,
|
|
1627
1684
|
display: "flex",
|
|
1628
1685
|
alignItems: "center",
|
|
1629
1686
|
justifyContent: "center"
|
|
1630
|
-
} }, /* @__PURE__ */
|
|
1687
|
+
} }, /* @__PURE__ */ React134.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
1631
1688
|
);
|
|
1632
1689
|
};
|
|
1633
1690
|
var submitButton_default = SubmitButton;
|
|
1634
1691
|
|
|
1635
1692
|
// lib/Buttons/cancelButton.tsx
|
|
1636
|
-
var
|
|
1693
|
+
var React135 = __toESM(require("react"), 1);
|
|
1637
1694
|
var CancelButton = ({ children, sx, className, ...props }) => {
|
|
1638
1695
|
const sxClass = useSx(sx);
|
|
1639
|
-
return /* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ React135.createElement("button", { className: ["btn cancel-btn", sxClass, className].filter(Boolean).join(" "), ...props }, children);
|
|
1640
1697
|
};
|
|
1641
1698
|
var cancelButton_default = CancelButton;
|
|
1642
1699
|
|
|
1643
1700
|
// lib/Buttons/stdButton.tsx
|
|
1644
|
-
var
|
|
1701
|
+
var React136 = __toESM(require("react"), 1);
|
|
1645
1702
|
var StandardButton = ({ children, sx, className, ...props }) => {
|
|
1646
1703
|
const sxClass = useSx(sx);
|
|
1647
|
-
return /* @__PURE__ */
|
|
1704
|
+
return /* @__PURE__ */ React136.createElement("button", { className: ["btn standard-btn", sxClass, className].filter(Boolean).join(" "), ...props }, children);
|
|
1648
1705
|
};
|
|
1649
1706
|
var stdButton_default = StandardButton;
|
|
1650
1707
|
|
|
1651
1708
|
// lib/Buttons/Button.tsx
|
|
1652
|
-
var
|
|
1709
|
+
var React137 = __toESM(require("react"), 1);
|
|
1653
1710
|
var DEFAULT_MIN_MS = 1500;
|
|
1654
|
-
var Button =
|
|
1711
|
+
var Button = React137.forwardRef(
|
|
1655
1712
|
({
|
|
1656
1713
|
variant = "text",
|
|
1657
1714
|
color = "primary",
|
|
@@ -1676,10 +1733,10 @@ var Button = React130.forwardRef(
|
|
|
1676
1733
|
...rest
|
|
1677
1734
|
}, ref) => {
|
|
1678
1735
|
const sxClass = useSx(sx);
|
|
1679
|
-
const [debounceLoading, setDebounceLoading] =
|
|
1680
|
-
const btnRef =
|
|
1736
|
+
const [debounceLoading, setDebounceLoading] = React137.useState(false);
|
|
1737
|
+
const btnRef = React137.useRef(null);
|
|
1681
1738
|
const isLoading = loading || debounceLoading;
|
|
1682
|
-
const handleClick =
|
|
1739
|
+
const handleClick = React137.useCallback(
|
|
1683
1740
|
async (e) => {
|
|
1684
1741
|
if (!debounce) {
|
|
1685
1742
|
onClick?.(e);
|
|
@@ -1725,7 +1782,7 @@ var Button = React130.forwardRef(
|
|
|
1725
1782
|
tagProps.type = type;
|
|
1726
1783
|
tagProps.disabled = disabled || isLoading;
|
|
1727
1784
|
}
|
|
1728
|
-
return /* @__PURE__ */
|
|
1785
|
+
return /* @__PURE__ */ React137.createElement(
|
|
1729
1786
|
Tag,
|
|
1730
1787
|
{
|
|
1731
1788
|
ref: (node) => {
|
|
@@ -1738,19 +1795,19 @@ var Button = React130.forwardRef(
|
|
|
1738
1795
|
onClick: handleClick,
|
|
1739
1796
|
...tagProps
|
|
1740
1797
|
},
|
|
1741
|
-
isLoading && loadingPosition === "start" && /* @__PURE__ */
|
|
1742
|
-
startIcon && !isLoading && /* @__PURE__ */
|
|
1743
|
-
isLoading && loadingPosition === "center" ? /* @__PURE__ */
|
|
1744
|
-
endIcon && !isLoading && /* @__PURE__ */
|
|
1745
|
-
isLoading && loadingPosition === "end" && /* @__PURE__ */
|
|
1798
|
+
isLoading && loadingPosition === "start" && /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--start" }, /* @__PURE__ */ React137.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 })),
|
|
1799
|
+
startIcon && !isLoading && /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__start-icon" }, startIcon),
|
|
1800
|
+
isLoading && loadingPosition === "center" ? /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__loading-indicator" }, /* @__PURE__ */ React137.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 })) : /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__label" }, children),
|
|
1801
|
+
endIcon && !isLoading && /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__end-icon" }, endIcon),
|
|
1802
|
+
isLoading && loadingPosition === "end" && /* @__PURE__ */ React137.createElement("span", { className: "rf-btn__loading-indicator rf-btn__loading--end" }, /* @__PURE__ */ React137.createElement(circularProgress_default, { size: size === "small" ? 14 : size === "large" ? 22 : 18 }))
|
|
1746
1803
|
);
|
|
1747
1804
|
}
|
|
1748
1805
|
);
|
|
1749
1806
|
Button.displayName = "Button";
|
|
1750
1807
|
|
|
1751
1808
|
// lib/Buttons/IconButton.tsx
|
|
1752
|
-
var
|
|
1753
|
-
var IconButton =
|
|
1809
|
+
var React138 = __toESM(require("react"), 1);
|
|
1810
|
+
var IconButton = React138.forwardRef(
|
|
1754
1811
|
({
|
|
1755
1812
|
color = "default",
|
|
1756
1813
|
size = "medium",
|
|
@@ -1783,14 +1840,14 @@ var IconButton = React131.forwardRef(
|
|
|
1783
1840
|
tagProps.type = type;
|
|
1784
1841
|
tagProps.disabled = disabled;
|
|
1785
1842
|
}
|
|
1786
|
-
return /* @__PURE__ */
|
|
1843
|
+
return /* @__PURE__ */ React138.createElement(Tag, { ref, className: classes, style, ...tagProps }, children);
|
|
1787
1844
|
}
|
|
1788
1845
|
);
|
|
1789
1846
|
IconButton.displayName = "IconButton";
|
|
1790
1847
|
|
|
1791
1848
|
// lib/Buttons/ButtonGroup.tsx
|
|
1792
|
-
var
|
|
1793
|
-
var ButtonGroup =
|
|
1849
|
+
var React139 = __toESM(require("react"), 1);
|
|
1850
|
+
var ButtonGroup = React139.forwardRef(
|
|
1794
1851
|
({
|
|
1795
1852
|
orientation = "horizontal",
|
|
1796
1853
|
variant = "outlined",
|
|
@@ -1812,11 +1869,11 @@ var ButtonGroup = React132.forwardRef(
|
|
|
1812
1869
|
sxClass,
|
|
1813
1870
|
className
|
|
1814
1871
|
].filter(Boolean).join(" ");
|
|
1815
|
-
const childArray =
|
|
1816
|
-
return /* @__PURE__ */
|
|
1817
|
-
if (!
|
|
1872
|
+
const childArray = React139.Children.toArray(children);
|
|
1873
|
+
return /* @__PURE__ */ React139.createElement("div", { ref, role: "group", className: classes, ...rest }, childArray.map((child, idx) => {
|
|
1874
|
+
if (!React139.isValidElement(child)) return child;
|
|
1818
1875
|
const childProps = child.props;
|
|
1819
|
-
return
|
|
1876
|
+
return React139.cloneElement(child, {
|
|
1820
1877
|
...childProps,
|
|
1821
1878
|
disabled: disabled || childProps.disabled || false,
|
|
1822
1879
|
"data-rf-bg-index": idx,
|
|
@@ -1829,7 +1886,7 @@ var ButtonGroup = React132.forwardRef(
|
|
|
1829
1886
|
ButtonGroup.displayName = "ButtonGroup";
|
|
1830
1887
|
|
|
1831
1888
|
// lib/Dialogs/BaseDialog.tsx
|
|
1832
|
-
var
|
|
1889
|
+
var React140 = __toESM(require("react"), 1);
|
|
1833
1890
|
var import_react8 = require("react");
|
|
1834
1891
|
var import_react_dom = __toESM(require("react-dom"), 1);
|
|
1835
1892
|
|
|
@@ -2124,7 +2181,7 @@ var __iconNode22 = [
|
|
|
2124
2181
|
var X = createLucideIcon("x", __iconNode22);
|
|
2125
2182
|
|
|
2126
2183
|
// lib/Dialogs/BaseDialog.tsx
|
|
2127
|
-
var DialogDepthContext =
|
|
2184
|
+
var DialogDepthContext = React140.createContext(0);
|
|
2128
2185
|
var MIN_LOADING_MS2 = 1500;
|
|
2129
2186
|
var BaseDialog = ({
|
|
2130
2187
|
open = false,
|
|
@@ -2217,7 +2274,7 @@ var BaseDialog = ({
|
|
|
2217
2274
|
}, [open, portalZ]);
|
|
2218
2275
|
if (!open && !TransitionComponent) return null;
|
|
2219
2276
|
const isButtonLoading = isSubmitting || loading;
|
|
2220
|
-
const renderButtons = () => /* @__PURE__ */
|
|
2277
|
+
const renderButtons = () => /* @__PURE__ */ React140.createElement(React140.Fragment, null, showCancelButton && /* @__PURE__ */ React140.createElement(
|
|
2221
2278
|
"button",
|
|
2222
2279
|
{
|
|
2223
2280
|
className: "btn-cancel",
|
|
@@ -2226,7 +2283,7 @@ var BaseDialog = ({
|
|
|
2226
2283
|
type: "button"
|
|
2227
2284
|
},
|
|
2228
2285
|
cancelText
|
|
2229
|
-
), form ? /* @__PURE__ */
|
|
2286
|
+
), form ? /* @__PURE__ */ React140.createElement(
|
|
2230
2287
|
"button",
|
|
2231
2288
|
{
|
|
2232
2289
|
className: "btn-confirm",
|
|
@@ -2234,9 +2291,9 @@ var BaseDialog = ({
|
|
|
2234
2291
|
style: { position: "relative" },
|
|
2235
2292
|
type: "submit"
|
|
2236
2293
|
},
|
|
2237
|
-
/* @__PURE__ */
|
|
2238
|
-
isButtonLoading && /* @__PURE__ */
|
|
2239
|
-
) : onConfirm && /* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ React140.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, submitText),
|
|
2295
|
+
isButtonLoading && /* @__PURE__ */ React140.createElement("span", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React140.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
2296
|
+
) : onConfirm && /* @__PURE__ */ React140.createElement(
|
|
2240
2297
|
"button",
|
|
2241
2298
|
{
|
|
2242
2299
|
className: "btn-confirm",
|
|
@@ -2256,18 +2313,18 @@ var BaseDialog = ({
|
|
|
2256
2313
|
}
|
|
2257
2314
|
}
|
|
2258
2315
|
},
|
|
2259
|
-
/* @__PURE__ */
|
|
2260
|
-
isButtonLoading && /* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ React140.createElement("span", { style: { visibility: isButtonLoading ? "hidden" : "visible" } }, confirmText),
|
|
2317
|
+
isButtonLoading && /* @__PURE__ */ React140.createElement("span", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center" } }, /* @__PURE__ */ React140.createElement(circularProgress_default, { size: 18, color: "#ffffff80" }))
|
|
2261
2318
|
));
|
|
2262
2319
|
const containerClass = ["dialog-container", size ? `size-${size}` : "", sxClass, className].filter(Boolean).join(" ");
|
|
2263
2320
|
const containerStyle = { minWidth, minHeight };
|
|
2264
|
-
const dialogInner = /* @__PURE__ */
|
|
2321
|
+
const dialogInner = /* @__PURE__ */ React140.createElement(React140.Fragment, null, !hideHeader && /* @__PURE__ */ React140.createElement(React140.Fragment, null, customHeader ?? /* @__PURE__ */ React140.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React140.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1) : title), showCloseButton && /* @__PURE__ */ React140.createElement("button", { className: "btn-close", type: "button", onClick: onClose }, /* @__PURE__ */ React140.createElement(
|
|
2265
2322
|
X,
|
|
2266
2323
|
{
|
|
2267
2324
|
size: 18,
|
|
2268
2325
|
color: themeConfig?.icon || "#666666"
|
|
2269
2326
|
}
|
|
2270
|
-
))), /* @__PURE__ */
|
|
2327
|
+
))), /* @__PURE__ */ React140.createElement("div", { className: "dialog-divider" })), /* @__PURE__ */ React140.createElement(
|
|
2271
2328
|
"div",
|
|
2272
2329
|
{
|
|
2273
2330
|
className: "dialog-body",
|
|
@@ -2277,8 +2334,8 @@ var BaseDialog = ({
|
|
|
2277
2334
|
}
|
|
2278
2335
|
},
|
|
2279
2336
|
children
|
|
2280
|
-
), !hideFooter && (customFooter ?? /* @__PURE__ */
|
|
2281
|
-
const dialogContent = form ? /* @__PURE__ */
|
|
2337
|
+
), !hideFooter && (customFooter ?? /* @__PURE__ */ React140.createElement(React140.Fragment, null, /* @__PURE__ */ React140.createElement("div", { className: "dialog-divider" }), /* @__PURE__ */ React140.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, customButtons || renderButtons()))));
|
|
2338
|
+
const dialogContent = form ? /* @__PURE__ */ React140.createElement(
|
|
2282
2339
|
"form",
|
|
2283
2340
|
{
|
|
2284
2341
|
ref: setContainerRef,
|
|
@@ -2290,7 +2347,7 @@ var BaseDialog = ({
|
|
|
2290
2347
|
}
|
|
2291
2348
|
},
|
|
2292
2349
|
dialogInner
|
|
2293
|
-
) : /* @__PURE__ */
|
|
2350
|
+
) : /* @__PURE__ */ React140.createElement(
|
|
2294
2351
|
"div",
|
|
2295
2352
|
{
|
|
2296
2353
|
ref: setContainerRef,
|
|
@@ -2299,17 +2356,17 @@ var BaseDialog = ({
|
|
|
2299
2356
|
},
|
|
2300
2357
|
dialogInner
|
|
2301
2358
|
);
|
|
2302
|
-
const overlayNode = (content) => /* @__PURE__ */
|
|
2359
|
+
const overlayNode = (content) => /* @__PURE__ */ React140.createElement(
|
|
2303
2360
|
"div",
|
|
2304
2361
|
{
|
|
2305
2362
|
className: `dialog-overlay ${size === "fullScreen" ? "overlay-fullscreen" : ""}`,
|
|
2306
2363
|
style: { zIndex: overlayZ }
|
|
2307
2364
|
},
|
|
2308
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ React140.createElement(DialogDepthContext.Provider, { value: depth + 1 }, content)
|
|
2309
2366
|
);
|
|
2310
2367
|
if (TransitionComponent) {
|
|
2311
2368
|
return import_react_dom.default.createPortal(
|
|
2312
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ React140.createElement(
|
|
2313
2370
|
TransitionComponent,
|
|
2314
2371
|
{
|
|
2315
2372
|
in: open,
|
|
@@ -5190,9 +5247,9 @@ var DateRangeField = ({
|
|
|
5190
5247
|
DateRangeField.displayName = "DateRangeField";
|
|
5191
5248
|
|
|
5192
5249
|
// lib/Progress/LinearProgress.tsx
|
|
5193
|
-
var
|
|
5250
|
+
var React149 = __toESM(require("react"), 1);
|
|
5194
5251
|
var clamp = (n) => Math.max(0, Math.min(100, n));
|
|
5195
|
-
var LinearProgress =
|
|
5252
|
+
var LinearProgress = React149.forwardRef(
|
|
5196
5253
|
({
|
|
5197
5254
|
variant = "indeterminate",
|
|
5198
5255
|
value = 0,
|
|
@@ -5219,7 +5276,7 @@ var LinearProgress = React142.forwardRef(
|
|
|
5219
5276
|
"aria-valuemin": 0,
|
|
5220
5277
|
"aria-valuemax": 100
|
|
5221
5278
|
} : {};
|
|
5222
|
-
return /* @__PURE__ */
|
|
5279
|
+
return /* @__PURE__ */ React149.createElement(
|
|
5223
5280
|
"div",
|
|
5224
5281
|
{
|
|
5225
5282
|
ref,
|
|
@@ -5233,21 +5290,21 @@ var LinearProgress = React142.forwardRef(
|
|
|
5233
5290
|
},
|
|
5234
5291
|
...rest
|
|
5235
5292
|
},
|
|
5236
|
-
variant === "buffer" && /* @__PURE__ */
|
|
5293
|
+
variant === "buffer" && /* @__PURE__ */ React149.createElement(
|
|
5237
5294
|
"span",
|
|
5238
5295
|
{
|
|
5239
5296
|
className: "rf-linear-progress__buffer",
|
|
5240
5297
|
style: { width: `${vb}%`, background: color, opacity: 0.3 }
|
|
5241
5298
|
}
|
|
5242
5299
|
),
|
|
5243
|
-
/* @__PURE__ */
|
|
5300
|
+
/* @__PURE__ */ React149.createElement(
|
|
5244
5301
|
"span",
|
|
5245
5302
|
{
|
|
5246
5303
|
className: "rf-linear-progress__bar",
|
|
5247
5304
|
style: variant === "determinate" || variant === "buffer" ? { width: `${v}%`, background: color } : { background: color }
|
|
5248
5305
|
}
|
|
5249
5306
|
),
|
|
5250
|
-
variant === "indeterminate" && /* @__PURE__ */
|
|
5307
|
+
variant === "indeterminate" && /* @__PURE__ */ React149.createElement(
|
|
5251
5308
|
"span",
|
|
5252
5309
|
{
|
|
5253
5310
|
className: "rf-linear-progress__bar rf-linear-progress__bar--secondary",
|
|
@@ -5260,13 +5317,13 @@ var LinearProgress = React142.forwardRef(
|
|
|
5260
5317
|
LinearProgress.displayName = "LinearProgress";
|
|
5261
5318
|
|
|
5262
5319
|
// lib/Progress/RufousLogoLoader.tsx
|
|
5263
|
-
var
|
|
5320
|
+
var React150 = __toESM(require("react"), 1);
|
|
5264
5321
|
var _uid = 0;
|
|
5265
5322
|
var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
5266
|
-
const clipId =
|
|
5323
|
+
const clipId = React150.useRef(`rll-${++_uid}`).current;
|
|
5267
5324
|
const height = size * (38.795 / 54.585);
|
|
5268
5325
|
const sxClass = useSx(sx);
|
|
5269
|
-
return /* @__PURE__ */
|
|
5326
|
+
return /* @__PURE__ */ React150.createElement("div", { className: ["rufous-logo-loader", sxClass, className].filter(Boolean).join(" "), style: { width: size, height } }, /* @__PURE__ */ React150.createElement(
|
|
5270
5327
|
"svg",
|
|
5271
5328
|
{
|
|
5272
5329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5275,14 +5332,14 @@ var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
|
5275
5332
|
height,
|
|
5276
5333
|
className: "rufous-logo-loader__svg"
|
|
5277
5334
|
},
|
|
5278
|
-
/* @__PURE__ */
|
|
5335
|
+
/* @__PURE__ */ React150.createElement("defs", null, /* @__PURE__ */ React150.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React150.createElement(
|
|
5279
5336
|
"path",
|
|
5280
5337
|
{
|
|
5281
5338
|
transform: "translate(2208 18.205)",
|
|
5282
5339
|
d: "M.7,38.8a3.783,3.783,0,0,1-.5-.045l-.031,0A.26.26,0,0,1,0,38.564a.279.279,0,0,1,.14-.2c.222-.126.45-.251.671-.371l.047-.026c.357-.194.8-.435,1.209-.685.783-.479,1.565-.993,2.32-1.489l.033-.022.218-.143.49-.32c.575-.374,1.226-.8,1.824-1.241.98-.726,1.834-1.407,2.611-2.081a22.444,22.444,0,0,0,1.783-1.774A14.2,14.2,0,0,0,12.5,28.749l.012-.016a15.8,15.8,0,0,0,1.151-1.8,10.351,10.351,0,0,0,.586-1.511l0-.011.092-.278a4.425,4.425,0,0,0,.14-.583l.007-.036c.024-.119.048-.243.079-.363a4.639,4.639,0,0,0-.034-2.566c-.064-.212-.126-.43-.184-.636l-.008-.028c-.111-.391-.225-.8-.369-1.181a8.71,8.71,0,0,0-2.279-3.24,14.363,14.363,0,0,0-3.239-2.326c-.75-.4-1.553-.727-2.329-1.046L6.1,13.114l-.157-.065c-.294-.122-.6-.221-.9-.318l-.025-.008c-.19-.061-.427-.136-.649-.218-.108-.04-.265-.172-.252-.229a.7.7,0,0,1,.235-.4.915.915,0,0,1,.449-.112c.383-.029.77-.063,1.165-.1.969-.085,1.971-.174,2.962-.181h.119a13.145,13.145,0,0,1,2.907.315,11.888,11.888,0,0,1,3.128,1.123,10.286,10.286,0,0,1,2.3,1.554.92.92,0,0,1,.273.4,12.722,12.722,0,0,1,.458,3.3c-.009,1.494-.014,2.867-.014,4.2,0,.309.013.588.039.852a1.013,1.013,0,0,0,.078.26l0,.01c.027.067.051.129.077.207.029-.064.054-.116.076-.161l.009-.017.006-.012a.823.823,0,0,0,.076-.189c.051-.247.1-.494.164-.767.136-.618.276-1.257.359-1.9a24.362,24.362,0,0,0,0-6.777,13.01,13.01,0,0,0-.559-2.1c-.061-.185-.125-.382-.187-.579a9.42,9.42,0,0,0-.583-1.469c-.367-.727-.786-1.449-1.184-2.126a9.376,9.376,0,0,0-.643-.918c-.076-.1-.151-.2-.224-.3L15.548,6.3a8.128,8.128,0,0,0-.865-1.057,32.021,32.021,0,0,0-2.466-2.183,12.673,12.673,0,0,0-1.905-1.188c-.48-.256-1-.485-1.462-.687-.221-.1-.457-.2-.683-.306a.663.663,0,0,1-.11-.071L8.039.795c-.027-.02-.058-.043-.1-.069L8.062.667,8.108.644a1.786,1.786,0,0,1,.27-.12A11.679,11.679,0,0,1,11.866,0a13.332,13.332,0,0,1,1.769.121A13.927,13.927,0,0,1,15.9.693l.471.147a10.775,10.775,0,0,1,1.656.658,9.622,9.622,0,0,1,1.768,1.041,32.024,32.024,0,0,1,3.092,2.717,25.62,25.62,0,0,1,2.245,2.829l.084.117c.617.86,1.171,1.777,1.678,2.641.255.435.484.9.687,1.3.14.281.285.572.436.854.262.491.534.977.835,1.516l.005.01q.169.3.337.6c.064.116.13.232.2.347l.027.047c.12.212.244.431.357.651a8.518,8.518,0,0,0,2.121,2.695c.065.024.137.054.212.086l.013.006a1.268,1.268,0,0,0,.376.123.087.087,0,0,0,.063-.02.209.209,0,0,0,.083-.151c0-.083-.08-.153-.157-.22a.694.694,0,0,1-.135-.142c-.134-.216-.273-.436-.407-.649l-.063-.1c-.373-.587-.8-1.251-1.157-1.923s-.666-1.373-.964-2.057l0-.008q-.123-.284-.247-.564a1.707,1.707,0,0,1,.239-1.554l.026-.046.005-.009A12.918,12.918,0,0,1,31.408,9.3,7.814,7.814,0,0,1,33.75,7.612a5.391,5.391,0,0,1,2.218-.444,11.369,11.369,0,0,1,1.882.186,9.211,9.211,0,0,1,2.845,1.022c.138.071.261.135.373.188a4.155,4.155,0,0,0,1.849.464h.093c1.993-.052,4-.14,5.95-.224l.846-.036c.9-.038,1.808-.066,2.682-.093L52.7,8.67l1.007-.031h.041a1.787,1.787,0,0,1,.73.163c.1.051.109.256.109.318,0,.081-.147.169-.257.175-.466.028-.994.043-1.485.043a37.855,37.855,0,0,0-6.3.577A9.221,9.221,0,0,0,42.7,11.3a7.884,7.884,0,0,0-1.565,1.5c-.593.743-1.116,1.545-1.621,2.321l-.121.185c-.228.35-.435.709-.662,1.109l-.041.071c-.136.236-.276.481-.42.717l-.007.012c-.349.572-.709,1.162-1.1,1.716l-.216.307-.01.014a21.585,21.585,0,0,1-1.451,1.907c-1.317,1.485-2.538,2.8-3.734,4.006a30.822,30.822,0,0,1-2.5,2.207c-.548.446-1.139.86-1.71,1.26l-.01.007q-.254.177-.5.355c-.536.379-1.109.78-1.7,1.157-.545.35-1.143.71-1.828,1.1-.842.483-1.586.9-2.275,1.26-.271.144-.553.272-.868.412-.13.058-.3.135-.467.213a6.838,6.838,0,0,1-1.18.3,5.079,5.079,0,0,1,.647-.771l.008-.008c.132-.136.251-.26.365-.393l.048-.056c.566-.667,1.151-1.357,1.7-2.059s1.126-1.439,1.649-2.2c.4-.579.749-1.2,1.134-1.888l.016-.028c.406-.734.826-1.493,1.181-2.266.274-.6.733-1.787.866-2.189l.023-.07c.13-.389.215-.646-.013-.916a.369.369,0,0,1-.041.031l0,0c-.028.021-.055.041-.058.065a2.307,2.307,0,0,1-.146.5,5.257,5.257,0,0,1-.374.709c-.281.468-.536.959-.782,1.434-.2.385-.379.731-.57,1.069a20.042,20.042,0,0,1-1.161,1.871,30.689,30.689,0,0,1-1.985,2.531c-.74.821-1.567,1.648-2.6,2.6a21.448,21.448,0,0,1-2.1,1.669c-.85.606-1.754,1.2-2.688,1.768a17.867,17.867,0,0,1-1.993,1.037c-.994.445-2.066.891-3.185,1.324a12.127,12.127,0,0,1-1.714.514c-.955.213-1.969.413-3.1.611-1.023.18-2.054.328-2.927.449A1.41,1.41,0,0,1,.7,38.8ZM37.945,10.58l-.007,0a.583.583,0,0,0-.223.048.677.677,0,0,0-.437.555.637.637,0,0,0,.426.527.621.621,0,0,0,.209.046h.016a.72.72,0,0,0,.464-.194.676.676,0,0,0,.194-.282l0-.011,0-.005,0-.006,0-.009a.415.415,0,0,0,.014-.109.734.734,0,0,0-.657-.56Z"
|
|
5283
5340
|
}
|
|
5284
5341
|
))),
|
|
5285
|
-
/* @__PURE__ */
|
|
5342
|
+
/* @__PURE__ */ React150.createElement("g", { transform: "translate(-123.275 -24)" }, /* @__PURE__ */ React150.createElement("g", { transform: "translate(-2084.725 5.795)", clipPath: `url(#${clipId})` }, /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-1", width: "40", height: "6", transform: "translate(2208 58) rotate(-90)", fill: "#d07f6f" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-2", width: "40", height: "6", transform: "translate(2214 58) rotate(-90)", fill: "#c66958" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-3", width: "40", height: "7", transform: "translate(2220 58) rotate(-90)", fill: "#bb5341" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-4", width: "40", height: "6", transform: "translate(2227 58) rotate(-90)", fill: "#b03a28" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-5", width: "40", height: "6", transform: "translate(2233 58) rotate(-90)", fill: "#a41b06" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-6", width: "40", height: "6", transform: "translate(2239 58) rotate(-90)", fill: "#8e1604" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-7", width: "40", height: "6", transform: "translate(2245 58) rotate(-90)", fill: "#791103" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-8", width: "40", height: "5", transform: "translate(2251 58) rotate(-90)", fill: "#640c02" }), /* @__PURE__ */ React150.createElement("rect", { className: "rufous-ls rufous-ls-9", width: "40", height: "7", transform: "translate(2256 58) rotate(-90)", fill: "#500801" })))
|
|
5286
5343
|
));
|
|
5287
5344
|
};
|
|
5288
5345
|
|
|
@@ -7077,8 +7134,8 @@ var RadioGroup = import_react21.default.forwardRef(function RadioGroup2(props, r
|
|
|
7077
7134
|
RadioGroup.displayName = "RadioGroup";
|
|
7078
7135
|
|
|
7079
7136
|
// lib/FormGroup/FormGroup.tsx
|
|
7080
|
-
var
|
|
7081
|
-
var FormGroup =
|
|
7137
|
+
var React156 = __toESM(require("react"), 1);
|
|
7138
|
+
var FormGroup = React156.forwardRef(
|
|
7082
7139
|
({ row = false, spacing, sx, className, style, children, ...rest }, ref) => {
|
|
7083
7140
|
const sxClass = useSx(sx);
|
|
7084
7141
|
const classes = ["rf-form-group", sxClass, className].filter(Boolean).join(" ");
|
|
@@ -7090,7 +7147,7 @@ var FormGroup = React149.forwardRef(
|
|
|
7090
7147
|
gap,
|
|
7091
7148
|
...style
|
|
7092
7149
|
};
|
|
7093
|
-
return /* @__PURE__ */
|
|
7150
|
+
return /* @__PURE__ */ React156.createElement("div", { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7094
7151
|
}
|
|
7095
7152
|
);
|
|
7096
7153
|
FormGroup.displayName = "FormGroup";
|
|
@@ -7883,12 +7940,12 @@ var Skeleton = ({
|
|
|
7883
7940
|
Skeleton.displayName = "Skeleton";
|
|
7884
7941
|
|
|
7885
7942
|
// lib/Box/Box.tsx
|
|
7886
|
-
var
|
|
7943
|
+
var React165 = __toESM(require("react"), 1);
|
|
7887
7944
|
function sp(val) {
|
|
7888
7945
|
if (val === void 0) return void 0;
|
|
7889
7946
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
7890
7947
|
}
|
|
7891
|
-
var Box =
|
|
7948
|
+
var Box = React165.forwardRef(
|
|
7892
7949
|
({
|
|
7893
7950
|
component = "div",
|
|
7894
7951
|
children,
|
|
@@ -7988,18 +8045,18 @@ var Box = React158.forwardRef(
|
|
|
7988
8045
|
};
|
|
7989
8046
|
const classes = ["rf-box", sxClass, className].filter(Boolean).join(" ");
|
|
7990
8047
|
const Tag = component;
|
|
7991
|
-
return /* @__PURE__ */
|
|
8048
|
+
return /* @__PURE__ */ React165.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7992
8049
|
}
|
|
7993
8050
|
);
|
|
7994
8051
|
Box.displayName = "Box";
|
|
7995
8052
|
|
|
7996
8053
|
// lib/Stack/Stack.tsx
|
|
7997
|
-
var
|
|
8054
|
+
var React166 = __toESM(require("react"), 1);
|
|
7998
8055
|
function sp2(val) {
|
|
7999
8056
|
if (val === void 0) return void 0;
|
|
8000
8057
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
8001
8058
|
}
|
|
8002
|
-
var Stack =
|
|
8059
|
+
var Stack = React166.forwardRef(
|
|
8003
8060
|
({
|
|
8004
8061
|
direction = "column",
|
|
8005
8062
|
spacing,
|
|
@@ -8076,14 +8133,14 @@ var Stack = React159.forwardRef(
|
|
|
8076
8133
|
const classes = ["rf-stack", sxClass, className].filter(Boolean).join(" ");
|
|
8077
8134
|
let content;
|
|
8078
8135
|
if (divider) {
|
|
8079
|
-
const childArray =
|
|
8136
|
+
const childArray = React166.Children.toArray(children).filter(
|
|
8080
8137
|
(child) => child !== null && child !== void 0
|
|
8081
8138
|
);
|
|
8082
8139
|
content = childArray.reduce((acc, child, idx) => {
|
|
8083
8140
|
acc.push(child);
|
|
8084
8141
|
if (idx < childArray.length - 1) {
|
|
8085
8142
|
acc.push(
|
|
8086
|
-
/* @__PURE__ */
|
|
8143
|
+
/* @__PURE__ */ React166.createElement("div", { key: `divider-${idx}`, className: "rf-stack-divider" }, divider)
|
|
8087
8144
|
);
|
|
8088
8145
|
}
|
|
8089
8146
|
return acc;
|
|
@@ -8092,13 +8149,13 @@ var Stack = React159.forwardRef(
|
|
|
8092
8149
|
content = children;
|
|
8093
8150
|
}
|
|
8094
8151
|
const Tag = component;
|
|
8095
|
-
return /* @__PURE__ */
|
|
8152
|
+
return /* @__PURE__ */ React166.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, content);
|
|
8096
8153
|
}
|
|
8097
8154
|
);
|
|
8098
8155
|
Stack.displayName = "Stack";
|
|
8099
8156
|
|
|
8100
8157
|
// lib/Grid/Grid.tsx
|
|
8101
|
-
var
|
|
8158
|
+
var React167 = __toESM(require("react"), 1);
|
|
8102
8159
|
function sp3(val) {
|
|
8103
8160
|
if (val === void 0) return void 0;
|
|
8104
8161
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
@@ -8115,7 +8172,7 @@ function getSpacingGap(spacing) {
|
|
|
8115
8172
|
const base = spacing.xs ?? spacing.sm ?? spacing.md ?? 0;
|
|
8116
8173
|
return `${base * 8}px`;
|
|
8117
8174
|
}
|
|
8118
|
-
var Grid =
|
|
8175
|
+
var Grid = React167.forwardRef(
|
|
8119
8176
|
({
|
|
8120
8177
|
container = false,
|
|
8121
8178
|
item = false,
|
|
@@ -8209,13 +8266,13 @@ var Grid = React160.forwardRef(
|
|
|
8209
8266
|
className
|
|
8210
8267
|
].filter(Boolean).join(" ");
|
|
8211
8268
|
const Tag = component;
|
|
8212
|
-
return /* @__PURE__ */
|
|
8269
|
+
return /* @__PURE__ */ React167.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
8213
8270
|
}
|
|
8214
8271
|
);
|
|
8215
8272
|
Grid.displayName = "Grid";
|
|
8216
8273
|
|
|
8217
8274
|
// lib/Container/Container.tsx
|
|
8218
|
-
var
|
|
8275
|
+
var React168 = __toESM(require("react"), 1);
|
|
8219
8276
|
var BREAKPOINT_PX = {
|
|
8220
8277
|
xs: 444,
|
|
8221
8278
|
sm: 600,
|
|
@@ -8223,7 +8280,7 @@ var BREAKPOINT_PX = {
|
|
|
8223
8280
|
lg: 1200,
|
|
8224
8281
|
xl: 1536
|
|
8225
8282
|
};
|
|
8226
|
-
var Container =
|
|
8283
|
+
var Container = React168.forwardRef(
|
|
8227
8284
|
({
|
|
8228
8285
|
maxWidth = "lg",
|
|
8229
8286
|
fixed = false,
|
|
@@ -8248,7 +8305,7 @@ var Container = React161.forwardRef(
|
|
|
8248
8305
|
...style
|
|
8249
8306
|
};
|
|
8250
8307
|
const Tag = component;
|
|
8251
|
-
return /* @__PURE__ */
|
|
8308
|
+
return /* @__PURE__ */ React168.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
8252
8309
|
}
|
|
8253
8310
|
);
|
|
8254
8311
|
Container.displayName = "Container";
|
|
@@ -8508,8 +8565,8 @@ var TablePagination = import_react30.default.forwardRef(
|
|
|
8508
8565
|
TablePagination.displayName = "TablePagination";
|
|
8509
8566
|
|
|
8510
8567
|
// lib/Paper/Paper.tsx
|
|
8511
|
-
var
|
|
8512
|
-
var Paper =
|
|
8568
|
+
var React170 = __toESM(require("react"), 1);
|
|
8569
|
+
var Paper = React170.forwardRef(
|
|
8513
8570
|
({
|
|
8514
8571
|
elevation = 1,
|
|
8515
8572
|
square = false,
|
|
@@ -8531,14 +8588,14 @@ var Paper = React163.forwardRef(
|
|
|
8531
8588
|
className
|
|
8532
8589
|
].filter(Boolean).join(" ");
|
|
8533
8590
|
const Tag = component;
|
|
8534
|
-
return /* @__PURE__ */
|
|
8591
|
+
return /* @__PURE__ */ React170.createElement(Tag, { ref, className: classes, style, ...rest }, children);
|
|
8535
8592
|
}
|
|
8536
8593
|
);
|
|
8537
8594
|
Paper.displayName = "Paper";
|
|
8538
8595
|
|
|
8539
8596
|
// lib/Card/Card.tsx
|
|
8540
|
-
var
|
|
8541
|
-
var Card =
|
|
8597
|
+
var React171 = __toESM(require("react"), 1);
|
|
8598
|
+
var Card = React171.forwardRef(
|
|
8542
8599
|
({
|
|
8543
8600
|
elevation = 1,
|
|
8544
8601
|
variant = "elevation",
|
|
@@ -8557,33 +8614,33 @@ var Card = React164.forwardRef(
|
|
|
8557
8614
|
sxClass,
|
|
8558
8615
|
className
|
|
8559
8616
|
].filter(Boolean).join(" ");
|
|
8560
|
-
return /* @__PURE__ */
|
|
8617
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8561
8618
|
}
|
|
8562
8619
|
);
|
|
8563
8620
|
Card.displayName = "Card";
|
|
8564
|
-
var CardContent =
|
|
8621
|
+
var CardContent = React171.forwardRef(
|
|
8565
8622
|
({ children, className, style, sx, ...rest }, ref) => {
|
|
8566
8623
|
const sxClass = useSx(sx);
|
|
8567
8624
|
const classes = ["rf-card-content", sxClass, className].filter(Boolean).join(" ");
|
|
8568
|
-
return /* @__PURE__ */
|
|
8625
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8569
8626
|
}
|
|
8570
8627
|
);
|
|
8571
8628
|
CardContent.displayName = "CardContent";
|
|
8572
|
-
var CardHeader =
|
|
8629
|
+
var CardHeader = React171.forwardRef(
|
|
8573
8630
|
({ title, subheader, avatar, action, className, style, sx, ...rest }, ref) => {
|
|
8574
8631
|
const sxClass = useSx(sx);
|
|
8575
8632
|
const classes = ["rf-card-header", sxClass, className].filter(Boolean).join(" ");
|
|
8576
|
-
return /* @__PURE__ */
|
|
8633
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, avatar && /* @__PURE__ */ React171.createElement("div", { className: "rf-card-header-avatar" }, avatar), /* @__PURE__ */ React171.createElement("div", { className: "rf-card-header-content" }, /* @__PURE__ */ React171.createElement("div", { className: "rf-card-header-title" }, title), subheader && /* @__PURE__ */ React171.createElement("div", { className: "rf-card-header-subheader" }, subheader)), action && /* @__PURE__ */ React171.createElement("div", { className: "rf-card-header-action" }, action));
|
|
8577
8634
|
}
|
|
8578
8635
|
);
|
|
8579
8636
|
CardHeader.displayName = "CardHeader";
|
|
8580
|
-
var CardMedia =
|
|
8637
|
+
var CardMedia = React171.forwardRef(
|
|
8581
8638
|
({ component = "div", image, src, height, alt, className, style, sx, ...rest }, ref) => {
|
|
8582
8639
|
const sxClass = useSx(sx);
|
|
8583
8640
|
const classes = ["rf-card-media", sxClass, className].filter(Boolean).join(" ");
|
|
8584
8641
|
const computedHeight = height !== void 0 ? typeof height === "number" ? `${height}px` : height : "200px";
|
|
8585
8642
|
if (component === "img") {
|
|
8586
|
-
return /* @__PURE__ */
|
|
8643
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8587
8644
|
"img",
|
|
8588
8645
|
{
|
|
8589
8646
|
ref,
|
|
@@ -8596,7 +8653,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8596
8653
|
);
|
|
8597
8654
|
}
|
|
8598
8655
|
if (component === "video") {
|
|
8599
|
-
return /* @__PURE__ */
|
|
8656
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8600
8657
|
"video",
|
|
8601
8658
|
{
|
|
8602
8659
|
ref,
|
|
@@ -8612,7 +8669,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8612
8669
|
...image ? { backgroundImage: `url(${image})` } : {},
|
|
8613
8670
|
...style
|
|
8614
8671
|
};
|
|
8615
|
-
return /* @__PURE__ */
|
|
8672
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8616
8673
|
"div",
|
|
8617
8674
|
{
|
|
8618
8675
|
ref,
|
|
@@ -8624,7 +8681,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8624
8681
|
}
|
|
8625
8682
|
);
|
|
8626
8683
|
CardMedia.displayName = "CardMedia";
|
|
8627
|
-
var CardActions =
|
|
8684
|
+
var CardActions = React171.forwardRef(
|
|
8628
8685
|
({ disableSpacing = false, children, className, style, sx, ...rest }, ref) => {
|
|
8629
8686
|
const sxClass = useSx(sx);
|
|
8630
8687
|
const classes = [
|
|
@@ -8633,13 +8690,13 @@ var CardActions = React164.forwardRef(
|
|
|
8633
8690
|
sxClass,
|
|
8634
8691
|
className
|
|
8635
8692
|
].filter(Boolean).join(" ");
|
|
8636
|
-
return /* @__PURE__ */
|
|
8693
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8637
8694
|
}
|
|
8638
8695
|
);
|
|
8639
8696
|
CardActions.displayName = "CardActions";
|
|
8640
8697
|
|
|
8641
8698
|
// lib/Accordion/Accordion.tsx
|
|
8642
|
-
var
|
|
8699
|
+
var React172 = __toESM(require("react"), 1);
|
|
8643
8700
|
var import_react31 = require("react");
|
|
8644
8701
|
var AccordionContext = (0, import_react31.createContext)({
|
|
8645
8702
|
expanded: false,
|
|
@@ -8647,7 +8704,7 @@ var AccordionContext = (0, import_react31.createContext)({
|
|
|
8647
8704
|
toggle: () => {
|
|
8648
8705
|
}
|
|
8649
8706
|
});
|
|
8650
|
-
var Accordion =
|
|
8707
|
+
var Accordion = React172.forwardRef(
|
|
8651
8708
|
({
|
|
8652
8709
|
expanded: expandedProp,
|
|
8653
8710
|
defaultExpanded = false,
|
|
@@ -8682,11 +8739,11 @@ var Accordion = React165.forwardRef(
|
|
|
8682
8739
|
sxClass,
|
|
8683
8740
|
className
|
|
8684
8741
|
].filter(Boolean).join(" ");
|
|
8685
|
-
return /* @__PURE__ */
|
|
8742
|
+
return /* @__PURE__ */ React172.createElement(AccordionContext.Provider, { value: { expanded, disabled, toggle } }, /* @__PURE__ */ React172.createElement("div", { ref, className: classes, style, ...rest }, children));
|
|
8686
8743
|
}
|
|
8687
8744
|
);
|
|
8688
8745
|
Accordion.displayName = "Accordion";
|
|
8689
|
-
var ChevronIcon = () => /* @__PURE__ */
|
|
8746
|
+
var ChevronIcon = () => /* @__PURE__ */ React172.createElement(
|
|
8690
8747
|
"svg",
|
|
8691
8748
|
{
|
|
8692
8749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8700,9 +8757,9 @@ var ChevronIcon = () => /* @__PURE__ */ React165.createElement(
|
|
|
8700
8757
|
strokeLinejoin: "round",
|
|
8701
8758
|
"aria-hidden": "true"
|
|
8702
8759
|
},
|
|
8703
|
-
/* @__PURE__ */
|
|
8760
|
+
/* @__PURE__ */ React172.createElement("polyline", { points: "6 9 12 15 18 9" })
|
|
8704
8761
|
);
|
|
8705
|
-
var AccordionSummary =
|
|
8762
|
+
var AccordionSummary = React172.forwardRef(
|
|
8706
8763
|
({ expandIcon, children, sx, className, style, ...rest }, ref) => {
|
|
8707
8764
|
const sxClass = useSx(sx);
|
|
8708
8765
|
const { expanded, toggle, disabled } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8716,7 +8773,7 @@ var AccordionSummary = React165.forwardRef(
|
|
|
8716
8773
|
"rf-accordion-summary-icon",
|
|
8717
8774
|
expanded ? "rf-accordion-icon-expanded" : ""
|
|
8718
8775
|
].filter(Boolean).join(" ");
|
|
8719
|
-
return /* @__PURE__ */
|
|
8776
|
+
return /* @__PURE__ */ React172.createElement(
|
|
8720
8777
|
"button",
|
|
8721
8778
|
{
|
|
8722
8779
|
ref,
|
|
@@ -8728,13 +8785,13 @@ var AccordionSummary = React165.forwardRef(
|
|
|
8728
8785
|
"aria-expanded": expanded,
|
|
8729
8786
|
...rest
|
|
8730
8787
|
},
|
|
8731
|
-
/* @__PURE__ */
|
|
8732
|
-
/* @__PURE__ */
|
|
8788
|
+
/* @__PURE__ */ React172.createElement("span", { className: "rf-accordion-summary-content" }, children),
|
|
8789
|
+
/* @__PURE__ */ React172.createElement("span", { className: iconClasses }, expandIcon !== void 0 ? expandIcon : /* @__PURE__ */ React172.createElement(ChevronIcon, null))
|
|
8733
8790
|
);
|
|
8734
8791
|
}
|
|
8735
8792
|
);
|
|
8736
8793
|
AccordionSummary.displayName = "AccordionSummary";
|
|
8737
|
-
var AccordionDetails =
|
|
8794
|
+
var AccordionDetails = React172.forwardRef(
|
|
8738
8795
|
({ children, sx, className, style, ...rest }, ref) => {
|
|
8739
8796
|
const sxClass = useSx(sx);
|
|
8740
8797
|
const { expanded } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8747,7 +8804,7 @@ var AccordionDetails = React165.forwardRef(
|
|
|
8747
8804
|
sxClass,
|
|
8748
8805
|
className
|
|
8749
8806
|
].filter(Boolean).join(" ");
|
|
8750
|
-
return /* @__PURE__ */
|
|
8807
|
+
return /* @__PURE__ */ React172.createElement("div", { className: wrapperClasses }, /* @__PURE__ */ React172.createElement("div", { className: "rf-accordion-details-inner" }, /* @__PURE__ */ React172.createElement("div", { ref, className: detailsClasses, style, ...rest }, children)));
|
|
8751
8808
|
}
|
|
8752
8809
|
);
|
|
8753
8810
|
AccordionDetails.displayName = "AccordionDetails";
|
|
@@ -9458,7 +9515,7 @@ var Drawer = ({
|
|
|
9458
9515
|
Drawer.displayName = "Drawer";
|
|
9459
9516
|
|
|
9460
9517
|
// lib/Pagination/Pagination.tsx
|
|
9461
|
-
var
|
|
9518
|
+
var React178 = __toESM(require("react"), 1);
|
|
9462
9519
|
function range(start, end) {
|
|
9463
9520
|
const out = [];
|
|
9464
9521
|
for (let i = start; i <= end; i++) out.push(i);
|
|
@@ -9497,7 +9554,7 @@ function buildItems(count, page, siblingCount, boundaryCount) {
|
|
|
9497
9554
|
endPages.forEach((p) => items.push({ type: "page", page: p, key: `p-${p}` }));
|
|
9498
9555
|
return items;
|
|
9499
9556
|
}
|
|
9500
|
-
var Pagination =
|
|
9557
|
+
var Pagination = React178.forwardRef(
|
|
9501
9558
|
({
|
|
9502
9559
|
count,
|
|
9503
9560
|
page: pageProp,
|
|
@@ -9518,7 +9575,7 @@ var Pagination = React171.forwardRef(
|
|
|
9518
9575
|
...rest
|
|
9519
9576
|
}, ref) => {
|
|
9520
9577
|
const isControlled = pageProp !== void 0;
|
|
9521
|
-
const [uncontrolledPage, setUncontrolledPage] =
|
|
9578
|
+
const [uncontrolledPage, setUncontrolledPage] = React178.useState(defaultPage);
|
|
9522
9579
|
const page = isControlled ? pageProp : uncontrolledPage;
|
|
9523
9580
|
const sxClass = useSx(sx);
|
|
9524
9581
|
const classes = [
|
|
@@ -9535,7 +9592,7 @@ var Pagination = React171.forwardRef(
|
|
|
9535
9592
|
onChange?.(e, clamped);
|
|
9536
9593
|
};
|
|
9537
9594
|
const items = buildItems(count, page, siblingCount, boundaryCount);
|
|
9538
|
-
const renderControl = (key, label, targetPage, isDisabled, symbol) => /* @__PURE__ */
|
|
9595
|
+
const renderControl = (key, label, targetPage, isDisabled, symbol) => /* @__PURE__ */ React178.createElement("li", { key }, /* @__PURE__ */ React178.createElement(
|
|
9539
9596
|
"button",
|
|
9540
9597
|
{
|
|
9541
9598
|
type: "button",
|
|
@@ -9546,12 +9603,12 @@ var Pagination = React171.forwardRef(
|
|
|
9546
9603
|
},
|
|
9547
9604
|
symbol
|
|
9548
9605
|
));
|
|
9549
|
-
return /* @__PURE__ */
|
|
9606
|
+
return /* @__PURE__ */ React178.createElement("nav", { ref, className: classes, "aria-label": "pagination", ...rest }, /* @__PURE__ */ React178.createElement("ul", { className: "rf-pagination__list" }, showFirstButton && renderControl("first", "Go to first page", 1, page <= 1, "\xAB"), !hidePrevButton && renderControl("prev", "Go to previous page", page - 1, page <= 1, "\u2039"), items.map((item) => {
|
|
9550
9607
|
if (item.type === "start-ellipsis" || item.type === "end-ellipsis") {
|
|
9551
|
-
return /* @__PURE__ */
|
|
9608
|
+
return /* @__PURE__ */ React178.createElement("li", { key: item.key, "aria-hidden": "true" }, /* @__PURE__ */ React178.createElement("span", { className: "rf-pagination__ellipsis" }, "\u2026"));
|
|
9552
9609
|
}
|
|
9553
9610
|
const isActive = item.page === page;
|
|
9554
|
-
return /* @__PURE__ */
|
|
9611
|
+
return /* @__PURE__ */ React178.createElement("li", { key: item.key }, /* @__PURE__ */ React178.createElement(
|
|
9555
9612
|
"button",
|
|
9556
9613
|
{
|
|
9557
9614
|
type: "button",
|
|
@@ -9683,14 +9740,14 @@ var Snackbar = ({
|
|
|
9683
9740
|
Snackbar.displayName = "Snackbar";
|
|
9684
9741
|
|
|
9685
9742
|
// lib/Alert/Alert.tsx
|
|
9686
|
-
var
|
|
9743
|
+
var React180 = __toESM(require("react"), 1);
|
|
9687
9744
|
var DEFAULT_ICONS = {
|
|
9688
|
-
success: /* @__PURE__ */
|
|
9689
|
-
info: /* @__PURE__ */
|
|
9690
|
-
warning: /* @__PURE__ */
|
|
9691
|
-
error: /* @__PURE__ */
|
|
9745
|
+
success: /* @__PURE__ */ React180.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React180.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4L11 13.7l6.1-6.1L18.5 9 11 16.5z" })),
|
|
9746
|
+
info: /* @__PURE__ */ React180.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React180.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" })),
|
|
9747
|
+
warning: /* @__PURE__ */ React180.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React180.createElement("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })),
|
|
9748
|
+
error: /* @__PURE__ */ React180.createElement("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true }, /* @__PURE__ */ React180.createElement("path", { d: "M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }))
|
|
9692
9749
|
};
|
|
9693
|
-
var Alert =
|
|
9750
|
+
var Alert = React180.forwardRef(
|
|
9694
9751
|
({
|
|
9695
9752
|
severity = "info",
|
|
9696
9753
|
variant = "standard",
|
|
@@ -9713,7 +9770,7 @@ var Alert = React173.forwardRef(
|
|
|
9713
9770
|
className
|
|
9714
9771
|
].filter(Boolean).join(" ");
|
|
9715
9772
|
const resolvedIcon = icon === false ? null : icon ?? DEFAULT_ICONS[severity];
|
|
9716
|
-
const closeAction = onClose && !action ? /* @__PURE__ */
|
|
9773
|
+
const closeAction = onClose && !action ? /* @__PURE__ */ React180.createElement(
|
|
9717
9774
|
"button",
|
|
9718
9775
|
{
|
|
9719
9776
|
type: "button",
|
|
@@ -9723,18 +9780,18 @@ var Alert = React173.forwardRef(
|
|
|
9723
9780
|
},
|
|
9724
9781
|
"\xD7"
|
|
9725
9782
|
) : null;
|
|
9726
|
-
return /* @__PURE__ */
|
|
9783
|
+
return /* @__PURE__ */ React180.createElement("div", { ref, role, className: classes, ...rest }, resolvedIcon !== null && /* @__PURE__ */ React180.createElement("span", { className: "rf-alert__icon" }, resolvedIcon), /* @__PURE__ */ React180.createElement("div", { className: "rf-alert__message" }, title && /* @__PURE__ */ React180.createElement("div", { className: "rf-alert__title" }, title), children), (action || closeAction) && /* @__PURE__ */ React180.createElement("div", { className: "rf-alert__action" }, action ?? closeAction));
|
|
9727
9784
|
}
|
|
9728
9785
|
);
|
|
9729
9786
|
Alert.displayName = "Alert";
|
|
9730
9787
|
|
|
9731
9788
|
// lib/Timeline/Timeline.tsx
|
|
9732
|
-
var
|
|
9733
|
-
var TimelineContext =
|
|
9734
|
-
var TimelineItemContext =
|
|
9789
|
+
var React181 = __toESM(require("react"), 1);
|
|
9790
|
+
var TimelineContext = React181.createContext({ position: "right" });
|
|
9791
|
+
var TimelineItemContext = React181.createContext({
|
|
9735
9792
|
effectivePosition: "right"
|
|
9736
9793
|
});
|
|
9737
|
-
var Timeline =
|
|
9794
|
+
var Timeline = React181.forwardRef(
|
|
9738
9795
|
({ position = "right", sx, className, children, ...rest }, ref) => {
|
|
9739
9796
|
const sxClass = useSx(sx);
|
|
9740
9797
|
const classes = [
|
|
@@ -9743,17 +9800,17 @@ var Timeline = React174.forwardRef(
|
|
|
9743
9800
|
sxClass,
|
|
9744
9801
|
className
|
|
9745
9802
|
].filter(Boolean).join(" ");
|
|
9746
|
-
const indexed =
|
|
9747
|
-
if (!
|
|
9748
|
-
return
|
|
9803
|
+
const indexed = React181.Children.map(children, (child, idx) => {
|
|
9804
|
+
if (!React181.isValidElement(child)) return child;
|
|
9805
|
+
return React181.cloneElement(child, {
|
|
9749
9806
|
"data-rf-timeline-index": idx
|
|
9750
9807
|
});
|
|
9751
9808
|
});
|
|
9752
|
-
return /* @__PURE__ */
|
|
9809
|
+
return /* @__PURE__ */ React181.createElement(TimelineContext.Provider, { value: { position } }, /* @__PURE__ */ React181.createElement("ul", { ref, className: classes, ...rest }, indexed));
|
|
9753
9810
|
}
|
|
9754
9811
|
);
|
|
9755
9812
|
Timeline.displayName = "Timeline";
|
|
9756
|
-
var TimelineItem =
|
|
9813
|
+
var TimelineItem = React181.forwardRef(
|
|
9757
9814
|
(props, ref) => {
|
|
9758
9815
|
const {
|
|
9759
9816
|
position: positionProp,
|
|
@@ -9762,7 +9819,7 @@ var TimelineItem = React174.forwardRef(
|
|
|
9762
9819
|
children,
|
|
9763
9820
|
...rest
|
|
9764
9821
|
} = props;
|
|
9765
|
-
const { position: parentPosition } =
|
|
9822
|
+
const { position: parentPosition } = React181.useContext(TimelineContext);
|
|
9766
9823
|
const idx = rest["data-rf-timeline-index"];
|
|
9767
9824
|
let effectivePosition;
|
|
9768
9825
|
if (positionProp) {
|
|
@@ -9777,8 +9834,8 @@ var TimelineItem = React174.forwardRef(
|
|
|
9777
9834
|
effectivePosition = (idx ?? 0) % 2 === 0 ? "left" : "right";
|
|
9778
9835
|
}
|
|
9779
9836
|
let hasOpposite = false;
|
|
9780
|
-
|
|
9781
|
-
if (
|
|
9837
|
+
React181.Children.forEach(children, (child) => {
|
|
9838
|
+
if (React181.isValidElement(child) && child.type?.displayName === "TimelineOppositeContent") {
|
|
9782
9839
|
hasOpposite = true;
|
|
9783
9840
|
}
|
|
9784
9841
|
});
|
|
@@ -9790,17 +9847,17 @@ var TimelineItem = React174.forwardRef(
|
|
|
9790
9847
|
sxClass,
|
|
9791
9848
|
className
|
|
9792
9849
|
].filter(Boolean).join(" ");
|
|
9793
|
-
return /* @__PURE__ */
|
|
9850
|
+
return /* @__PURE__ */ React181.createElement(TimelineItemContext.Provider, { value: { effectivePosition } }, /* @__PURE__ */ React181.createElement("li", { ref, className: classes, ...rest }, children));
|
|
9794
9851
|
}
|
|
9795
9852
|
);
|
|
9796
9853
|
TimelineItem.displayName = "TimelineItem";
|
|
9797
|
-
var TimelineSeparator =
|
|
9854
|
+
var TimelineSeparator = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9798
9855
|
const sxClass = useSx(sx);
|
|
9799
9856
|
const classes = ["rf-timeline-separator", sxClass, className].filter(Boolean).join(" ");
|
|
9800
|
-
return /* @__PURE__ */
|
|
9857
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9801
9858
|
});
|
|
9802
9859
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
9803
|
-
var TimelineDot =
|
|
9860
|
+
var TimelineDot = React181.forwardRef(
|
|
9804
9861
|
({ color = "grey", variant = "filled", sx, className, children, ...rest }, ref) => {
|
|
9805
9862
|
const sxClass = useSx(sx);
|
|
9806
9863
|
const classes = [
|
|
@@ -9811,31 +9868,31 @@ var TimelineDot = React174.forwardRef(
|
|
|
9811
9868
|
sxClass,
|
|
9812
9869
|
className
|
|
9813
9870
|
].filter(Boolean).join(" ");
|
|
9814
|
-
return /* @__PURE__ */
|
|
9871
|
+
return /* @__PURE__ */ React181.createElement("span", { ref, className: classes, ...rest }, children);
|
|
9815
9872
|
}
|
|
9816
9873
|
);
|
|
9817
9874
|
TimelineDot.displayName = "TimelineDot";
|
|
9818
|
-
var TimelineConnector =
|
|
9875
|
+
var TimelineConnector = React181.forwardRef(({ sx, className, ...rest }, ref) => {
|
|
9819
9876
|
const sxClass = useSx(sx);
|
|
9820
9877
|
const classes = ["rf-timeline-connector", sxClass, className].filter(Boolean).join(" ");
|
|
9821
|
-
return /* @__PURE__ */
|
|
9878
|
+
return /* @__PURE__ */ React181.createElement("span", { ref, className: classes, ...rest });
|
|
9822
9879
|
});
|
|
9823
9880
|
TimelineConnector.displayName = "TimelineConnector";
|
|
9824
|
-
var TimelineContent =
|
|
9881
|
+
var TimelineContent = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9825
9882
|
const sxClass = useSx(sx);
|
|
9826
9883
|
const classes = ["rf-timeline-content", sxClass, className].filter(Boolean).join(" ");
|
|
9827
|
-
return /* @__PURE__ */
|
|
9884
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9828
9885
|
});
|
|
9829
9886
|
TimelineContent.displayName = "TimelineContent";
|
|
9830
|
-
var TimelineOppositeContent =
|
|
9887
|
+
var TimelineOppositeContent = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9831
9888
|
const sxClass = useSx(sx);
|
|
9832
9889
|
const classes = ["rf-timeline-opposite-content", sxClass, className].filter(Boolean).join(" ");
|
|
9833
|
-
return /* @__PURE__ */
|
|
9890
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9834
9891
|
});
|
|
9835
9892
|
TimelineOppositeContent.displayName = "TimelineOppositeContent";
|
|
9836
9893
|
|
|
9837
9894
|
// lib/ClickAwayListener/ClickAwayListener.tsx
|
|
9838
|
-
var
|
|
9895
|
+
var React182 = __toESM(require("react"), 1);
|
|
9839
9896
|
function mapEventPropToEvent(eventProp) {
|
|
9840
9897
|
return eventProp.substring(2).toLowerCase();
|
|
9841
9898
|
}
|
|
@@ -9853,7 +9910,7 @@ function setRef(ref, value) {
|
|
|
9853
9910
|
}
|
|
9854
9911
|
}
|
|
9855
9912
|
function useForkRef(refA, refB) {
|
|
9856
|
-
return
|
|
9913
|
+
return React182.useMemo(() => {
|
|
9857
9914
|
if (refA == null && refB == null) {
|
|
9858
9915
|
return null;
|
|
9859
9916
|
}
|
|
@@ -9864,14 +9921,14 @@ function useForkRef(refA, refB) {
|
|
|
9864
9921
|
}, [refA, refB]);
|
|
9865
9922
|
}
|
|
9866
9923
|
function useEventCallback(fn) {
|
|
9867
|
-
const ref =
|
|
9868
|
-
|
|
9924
|
+
const ref = React182.useRef(fn);
|
|
9925
|
+
React182.useEffect(() => {
|
|
9869
9926
|
ref.current = fn;
|
|
9870
9927
|
});
|
|
9871
|
-
return
|
|
9928
|
+
return React182.useCallback((...args) => ref.current(...args), []);
|
|
9872
9929
|
}
|
|
9873
9930
|
function getReactElementRef(element) {
|
|
9874
|
-
const major = parseInt(
|
|
9931
|
+
const major = parseInt(React182.version, 10);
|
|
9875
9932
|
if (major >= 19) {
|
|
9876
9933
|
return element.props?.ref ?? null;
|
|
9877
9934
|
}
|
|
@@ -9885,11 +9942,11 @@ function ClickAwayListener(props) {
|
|
|
9885
9942
|
onClickAway,
|
|
9886
9943
|
touchEvent = "onTouchEnd"
|
|
9887
9944
|
} = props;
|
|
9888
|
-
const movedRef =
|
|
9889
|
-
const nodeRef =
|
|
9890
|
-
const activatedRef =
|
|
9891
|
-
const syntheticEventRef =
|
|
9892
|
-
|
|
9945
|
+
const movedRef = React182.useRef(false);
|
|
9946
|
+
const nodeRef = React182.useRef(null);
|
|
9947
|
+
const activatedRef = React182.useRef(false);
|
|
9948
|
+
const syntheticEventRef = React182.useRef(false);
|
|
9949
|
+
React182.useEffect(() => {
|
|
9893
9950
|
const id = setTimeout(() => {
|
|
9894
9951
|
activatedRef.current = true;
|
|
9895
9952
|
}, 0);
|
|
@@ -9938,7 +9995,7 @@ function ClickAwayListener(props) {
|
|
|
9938
9995
|
if (touchEvent !== false) {
|
|
9939
9996
|
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
9940
9997
|
}
|
|
9941
|
-
|
|
9998
|
+
React182.useEffect(() => {
|
|
9942
9999
|
if (touchEvent === false) {
|
|
9943
10000
|
return void 0;
|
|
9944
10001
|
}
|
|
@@ -9957,7 +10014,7 @@ function ClickAwayListener(props) {
|
|
|
9957
10014
|
if (mouseEvent !== false) {
|
|
9958
10015
|
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
9959
10016
|
}
|
|
9960
|
-
|
|
10017
|
+
React182.useEffect(() => {
|
|
9961
10018
|
if (mouseEvent === false) {
|
|
9962
10019
|
return void 0;
|
|
9963
10020
|
}
|
|
@@ -9968,7 +10025,7 @@ function ClickAwayListener(props) {
|
|
|
9968
10025
|
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
9969
10026
|
};
|
|
9970
10027
|
}, [handleClickAway, mouseEvent]);
|
|
9971
|
-
return
|
|
10028
|
+
return React182.cloneElement(children, childrenProps);
|
|
9972
10029
|
}
|
|
9973
10030
|
|
|
9974
10031
|
// lib/Link/Link.tsx
|
|
@@ -13319,38 +13376,38 @@ var CustomTaskItem = import_extension_task_item.default.extend({
|
|
|
13319
13376
|
});
|
|
13320
13377
|
|
|
13321
13378
|
// lib/RufousTextEditor/icons.tsx
|
|
13322
|
-
var
|
|
13379
|
+
var React197 = __toESM(require("react"), 1);
|
|
13323
13380
|
var s = { width: 20, height: 20, viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" };
|
|
13324
|
-
var IconUndo = () => /* @__PURE__ */
|
|
13325
|
-
var IconRedo = () => /* @__PURE__ */
|
|
13326
|
-
var IconBold = () => /* @__PURE__ */
|
|
13327
|
-
var IconItalic = () => /* @__PURE__ */
|
|
13328
|
-
var IconLink = () => /* @__PURE__ */
|
|
13329
|
-
var IconStrike = () => /* @__PURE__ */
|
|
13330
|
-
var IconHeading = () => /* @__PURE__ */
|
|
13331
|
-
var IconFontSize = () => /* @__PURE__ */
|
|
13332
|
-
var IconColor = () => /* @__PURE__ */
|
|
13333
|
-
var IconFont = () => /* @__PURE__ */
|
|
13334
|
-
var IconLineHeight = () => /* @__PURE__ */
|
|
13335
|
-
var IconBulletList = () => /* @__PURE__ */
|
|
13336
|
-
var IconOrderedList = () => /* @__PURE__ */
|
|
13337
|
-
var IconAlignLeft = () => /* @__PURE__ */
|
|
13338
|
-
var IconAlignCenter = () => /* @__PURE__ */
|
|
13339
|
-
var IconAlignRight = () => /* @__PURE__ */
|
|
13340
|
-
var IconAlignJustify = () => /* @__PURE__ */
|
|
13341
|
-
var IconIndentIncrease = () => /* @__PURE__ */
|
|
13342
|
-
var IconIndentDecrease = () => /* @__PURE__ */
|
|
13343
|
-
var IconTable = () => /* @__PURE__ */
|
|
13344
|
-
var IconImage = () => /* @__PURE__ */
|
|
13345
|
-
var IconVideo = () => /* @__PURE__ */
|
|
13346
|
-
var IconCut = () => /* @__PURE__ */
|
|
13347
|
-
var IconCopy = () => /* @__PURE__ */
|
|
13348
|
-
var IconCode = () => /* @__PURE__ */
|
|
13349
|
-
var IconFullscreen = () => /* @__PURE__ */
|
|
13350
|
-
var IconTranslate = () => /* @__PURE__ */
|
|
13351
|
-
var IconTaskList = () => /* @__PURE__ */
|
|
13352
|
-
var IconCheck = () => /* @__PURE__ */
|
|
13353
|
-
var IconPaste = () => /* @__PURE__ */
|
|
13381
|
+
var IconUndo = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M12.5 8C9.85 8 7.45 9 5.6 10.6L2 7v9h9l-3.62-3.62C8.93 11.01 10.63 10.2 12.5 10.2c3.03 0 5.6 1.93 6.55 4.63l2.15-.72C19.93 10.68 16.5 8 12.5 8z" }));
|
|
13382
|
+
var IconRedo = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M18.4 10.6C16.55 9 14.15 8 11.5 8c-4 0-7.43 2.68-8.7 6.11l2.15.72c.95-2.7 3.52-4.63 6.55-4.63 1.87 0 3.57.81 5.12 2.18L13 16h9V7l-3.6 3.6z" }));
|
|
13383
|
+
var IconBold = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" }));
|
|
13384
|
+
var IconItalic = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }));
|
|
13385
|
+
var IconLink = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" }));
|
|
13386
|
+
var IconStrike = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M7.24 11h2.01c-.13-.42-.2-.88-.2-1.37 0-.89.32-1.58.96-2.08.64-.49 1.46-.74 2.47-.74.99 0 1.81.24 2.46.71.64.47.97 1.1.97 1.88h2.04c0-1.27-.55-2.33-1.64-3.18C15.21 5.37 13.83 4.95 12.2 4.95c-1.69 0-3.09.43-4.2 1.3C6.9 7.1 6.35 8.23 6.35 9.63c0 .47.06.92.18 1.37H3v2h18v-2H7.24zM12.2 17.05c-1.03 0-1.89-.28-2.56-.84-.67-.56-1-1.27-1-2.13h-2.1c0 1.36.58 2.5 1.75 3.44 1.16.93 2.56 1.4 4.19 1.4 1.69 0 3.09-.43 4.2-1.3 1.1-.86 1.65-1.99 1.65-3.38h-2.1c0 .85-.33 1.56-1 2.13-.66.56-1.52.84-2.56.84l-.47-.16z" }));
|
|
13387
|
+
var IconHeading = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M5 4v3h5.5v12h3V7H19V4z" }));
|
|
13388
|
+
var IconFontSize = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M9 4v3h5v12h2V7h5V4H9zm-6 8h3v7h2v-7h3v-2H3v2z" }));
|
|
13389
|
+
var IconColor = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M11 2L5.5 16h2.25l1.12-3h6.25l1.12 3h2.25L13 2h-2zm-1.38 9L12 4.67 14.38 11H9.62z" }), /* @__PURE__ */ React197.createElement("path", { d: "M3 20h18v3H3z", opacity: "0.8" }));
|
|
13390
|
+
var IconFont = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M9.93 13.5h4.14L12 7.98 9.93 13.5zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" }));
|
|
13391
|
+
var IconLineHeight = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm16-3h-8v2h8V4zm0 4h-8v2h8V8zm0 4h-8v2h8v-2zm0 4h-8v2h8v-2z" }));
|
|
13392
|
+
var IconBulletList = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z" }));
|
|
13393
|
+
var IconOrderedList = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" }));
|
|
13394
|
+
var IconAlignLeft = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zM3 21h18v-2H3v2zM3 3v2h18V3H3z" }));
|
|
13395
|
+
var IconAlignCenter = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" }));
|
|
13396
|
+
var IconAlignRight = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" }));
|
|
13397
|
+
var IconAlignJustify = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zM3 3v2h18V3H3z" }));
|
|
13398
|
+
var IconIndentIncrease = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
13399
|
+
var IconIndentDecrease = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" }));
|
|
13400
|
+
var IconTable = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 19V5h4v14H5zm6 0V5h4v14h-4zm6 0V5h3v14h-3z", fillRule: "evenodd" }));
|
|
13401
|
+
var IconImage = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" }));
|
|
13402
|
+
var IconVideo = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M4 6.47L5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z" }));
|
|
13403
|
+
var IconCut = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3h-3z" }));
|
|
13404
|
+
var IconCopy = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" }));
|
|
13405
|
+
var IconCode = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }));
|
|
13406
|
+
var IconFullscreen = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }));
|
|
13407
|
+
var IconTranslate = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M12.87 15.07l-2.54-2.51.03-.03A17.52 17.52 0 0014.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2.02c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" }));
|
|
13408
|
+
var IconTaskList = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M22 8c0-.55-.45-1-1-1h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c.55 0 1-.45 1-1zm0 8c0-.55-.45-1-1-1h-7c-.55 0-1 .45-1 1s.45 1 1 1h7c.55 0 1-.45 1-1zM5.54 11L2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 11zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 19z" }));
|
|
13409
|
+
var IconCheck = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }));
|
|
13410
|
+
var IconPaste = () => /* @__PURE__ */ React197.createElement("svg", { ...s }, /* @__PURE__ */ React197.createElement("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }));
|
|
13354
13411
|
|
|
13355
13412
|
// lib/RufousTextEditor/Toolbar.tsx
|
|
13356
13413
|
var COLOR_PALETTE = [
|
|
@@ -15859,6 +15916,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15859
15916
|
Autocomplete,
|
|
15860
15917
|
Avatar,
|
|
15861
15918
|
AvatarGroup,
|
|
15919
|
+
BarChartIcon,
|
|
15862
15920
|
BaseDialog,
|
|
15863
15921
|
BookmarkIcon,
|
|
15864
15922
|
Box,
|
|
@@ -15905,6 +15963,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15905
15963
|
DifficultyMediumIcon,
|
|
15906
15964
|
Divider,
|
|
15907
15965
|
DollarIcon,
|
|
15966
|
+
DonutLargeIcon,
|
|
15908
15967
|
DownloadIcon,
|
|
15909
15968
|
DownloadPdfIcon,
|
|
15910
15969
|
DragIndicatorIcon,
|
|
@@ -15938,6 +15997,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15938
15997
|
IndustryIcon,
|
|
15939
15998
|
InfoIcon,
|
|
15940
15999
|
InvoiceIcon,
|
|
16000
|
+
LightbulbIcon,
|
|
15941
16001
|
LineHeight,
|
|
15942
16002
|
LinearProgress,
|
|
15943
16003
|
Link,
|
|
@@ -15977,6 +16037,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15977
16037
|
PersonSearchIcon,
|
|
15978
16038
|
PhoneField,
|
|
15979
16039
|
PhoneIcon,
|
|
16040
|
+
PieChartIcon,
|
|
15980
16041
|
PinIcon,
|
|
15981
16042
|
PlaceIcon,
|
|
15982
16043
|
PlusIcon,
|
|
@@ -15996,6 +16057,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15996
16057
|
Radio,
|
|
15997
16058
|
RadioGroup,
|
|
15998
16059
|
Rating,
|
|
16060
|
+
RecommendIcon,
|
|
15999
16061
|
RefreshIcon,
|
|
16000
16062
|
RemoveIcon,
|
|
16001
16063
|
ResendInviteIcon,
|
|
@@ -16016,6 +16078,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
16016
16078
|
SendIcon,
|
|
16017
16079
|
SettingsIcon,
|
|
16018
16080
|
ShareIcon,
|
|
16081
|
+
ShowChartIcon,
|
|
16019
16082
|
SidebarIcon,
|
|
16020
16083
|
Skeleton,
|
|
16021
16084
|
Slide,
|
|
@@ -16068,6 +16131,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
16068
16131
|
TrashIcon,
|
|
16069
16132
|
TreeSelect,
|
|
16070
16133
|
TrendingFlatIcon,
|
|
16134
|
+
TrendingUpIcon,
|
|
16071
16135
|
Typography,
|
|
16072
16136
|
UnArchivedIcon,
|
|
16073
16137
|
UnlockIcon,
|