@rufous/ui 0.3.57 → 0.3.59
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 +260 -192
- package/dist/main.d.cts +23 -1
- package/dist/main.d.ts +23 -1
- package/dist/main.js +959 -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,
|
|
@@ -2139,6 +2196,10 @@ var BaseDialog = ({
|
|
|
2139
2196
|
confirmText = "SUBMIT",
|
|
2140
2197
|
submitText = "Submit",
|
|
2141
2198
|
title = "",
|
|
2199
|
+
hideHeader = false,
|
|
2200
|
+
customHeader,
|
|
2201
|
+
hideFooter = false,
|
|
2202
|
+
customFooter,
|
|
2142
2203
|
isLoading = false,
|
|
2143
2204
|
disableConfirmBtn = false,
|
|
2144
2205
|
fullScreen = false,
|
|
@@ -2213,7 +2274,7 @@ var BaseDialog = ({
|
|
|
2213
2274
|
}, [open, portalZ]);
|
|
2214
2275
|
if (!open && !TransitionComponent) return null;
|
|
2215
2276
|
const isButtonLoading = isSubmitting || loading;
|
|
2216
|
-
const renderButtons = () => /* @__PURE__ */
|
|
2277
|
+
const renderButtons = () => /* @__PURE__ */ React140.createElement(React140.Fragment, null, showCancelButton && /* @__PURE__ */ React140.createElement(
|
|
2217
2278
|
"button",
|
|
2218
2279
|
{
|
|
2219
2280
|
className: "btn-cancel",
|
|
@@ -2222,7 +2283,7 @@ var BaseDialog = ({
|
|
|
2222
2283
|
type: "button"
|
|
2223
2284
|
},
|
|
2224
2285
|
cancelText
|
|
2225
|
-
), form ? /* @__PURE__ */
|
|
2286
|
+
), form ? /* @__PURE__ */ React140.createElement(
|
|
2226
2287
|
"button",
|
|
2227
2288
|
{
|
|
2228
2289
|
className: "btn-confirm",
|
|
@@ -2230,9 +2291,9 @@ var BaseDialog = ({
|
|
|
2230
2291
|
style: { position: "relative" },
|
|
2231
2292
|
type: "submit"
|
|
2232
2293
|
},
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
isButtonLoading && /* @__PURE__ */
|
|
2235
|
-
) : 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(
|
|
2236
2297
|
"button",
|
|
2237
2298
|
{
|
|
2238
2299
|
className: "btn-confirm",
|
|
@@ -2252,18 +2313,18 @@ var BaseDialog = ({
|
|
|
2252
2313
|
}
|
|
2253
2314
|
}
|
|
2254
2315
|
},
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
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" }))
|
|
2257
2318
|
));
|
|
2258
2319
|
const containerClass = ["dialog-container", size ? `size-${size}` : "", sxClass, className].filter(Boolean).join(" ");
|
|
2259
2320
|
const containerStyle = { minWidth, minHeight };
|
|
2260
|
-
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(
|
|
2261
2322
|
X,
|
|
2262
2323
|
{
|
|
2263
2324
|
size: 18,
|
|
2264
2325
|
color: themeConfig?.icon || "#666666"
|
|
2265
2326
|
}
|
|
2266
|
-
))), /* @__PURE__ */
|
|
2327
|
+
))), /* @__PURE__ */ React140.createElement("div", { className: "dialog-divider" })), /* @__PURE__ */ React140.createElement(
|
|
2267
2328
|
"div",
|
|
2268
2329
|
{
|
|
2269
2330
|
className: "dialog-body",
|
|
@@ -2273,8 +2334,8 @@ var BaseDialog = ({
|
|
|
2273
2334
|
}
|
|
2274
2335
|
},
|
|
2275
2336
|
children
|
|
2276
|
-
), /* @__PURE__ */
|
|
2277
|
-
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(
|
|
2278
2339
|
"form",
|
|
2279
2340
|
{
|
|
2280
2341
|
ref: setContainerRef,
|
|
@@ -2286,7 +2347,7 @@ var BaseDialog = ({
|
|
|
2286
2347
|
}
|
|
2287
2348
|
},
|
|
2288
2349
|
dialogInner
|
|
2289
|
-
) : /* @__PURE__ */
|
|
2350
|
+
) : /* @__PURE__ */ React140.createElement(
|
|
2290
2351
|
"div",
|
|
2291
2352
|
{
|
|
2292
2353
|
ref: setContainerRef,
|
|
@@ -2295,17 +2356,17 @@ var BaseDialog = ({
|
|
|
2295
2356
|
},
|
|
2296
2357
|
dialogInner
|
|
2297
2358
|
);
|
|
2298
|
-
const overlayNode = (content) => /* @__PURE__ */
|
|
2359
|
+
const overlayNode = (content) => /* @__PURE__ */ React140.createElement(
|
|
2299
2360
|
"div",
|
|
2300
2361
|
{
|
|
2301
2362
|
className: `dialog-overlay ${size === "fullScreen" ? "overlay-fullscreen" : ""}`,
|
|
2302
2363
|
style: { zIndex: overlayZ }
|
|
2303
2364
|
},
|
|
2304
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ React140.createElement(DialogDepthContext.Provider, { value: depth + 1 }, content)
|
|
2305
2366
|
);
|
|
2306
2367
|
if (TransitionComponent) {
|
|
2307
2368
|
return import_react_dom.default.createPortal(
|
|
2308
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ React140.createElement(
|
|
2309
2370
|
TransitionComponent,
|
|
2310
2371
|
{
|
|
2311
2372
|
in: open,
|
|
@@ -5186,9 +5247,9 @@ var DateRangeField = ({
|
|
|
5186
5247
|
DateRangeField.displayName = "DateRangeField";
|
|
5187
5248
|
|
|
5188
5249
|
// lib/Progress/LinearProgress.tsx
|
|
5189
|
-
var
|
|
5250
|
+
var React149 = __toESM(require("react"), 1);
|
|
5190
5251
|
var clamp = (n) => Math.max(0, Math.min(100, n));
|
|
5191
|
-
var LinearProgress =
|
|
5252
|
+
var LinearProgress = React149.forwardRef(
|
|
5192
5253
|
({
|
|
5193
5254
|
variant = "indeterminate",
|
|
5194
5255
|
value = 0,
|
|
@@ -5215,7 +5276,7 @@ var LinearProgress = React142.forwardRef(
|
|
|
5215
5276
|
"aria-valuemin": 0,
|
|
5216
5277
|
"aria-valuemax": 100
|
|
5217
5278
|
} : {};
|
|
5218
|
-
return /* @__PURE__ */
|
|
5279
|
+
return /* @__PURE__ */ React149.createElement(
|
|
5219
5280
|
"div",
|
|
5220
5281
|
{
|
|
5221
5282
|
ref,
|
|
@@ -5229,21 +5290,21 @@ var LinearProgress = React142.forwardRef(
|
|
|
5229
5290
|
},
|
|
5230
5291
|
...rest
|
|
5231
5292
|
},
|
|
5232
|
-
variant === "buffer" && /* @__PURE__ */
|
|
5293
|
+
variant === "buffer" && /* @__PURE__ */ React149.createElement(
|
|
5233
5294
|
"span",
|
|
5234
5295
|
{
|
|
5235
5296
|
className: "rf-linear-progress__buffer",
|
|
5236
5297
|
style: { width: `${vb}%`, background: color, opacity: 0.3 }
|
|
5237
5298
|
}
|
|
5238
5299
|
),
|
|
5239
|
-
/* @__PURE__ */
|
|
5300
|
+
/* @__PURE__ */ React149.createElement(
|
|
5240
5301
|
"span",
|
|
5241
5302
|
{
|
|
5242
5303
|
className: "rf-linear-progress__bar",
|
|
5243
5304
|
style: variant === "determinate" || variant === "buffer" ? { width: `${v}%`, background: color } : { background: color }
|
|
5244
5305
|
}
|
|
5245
5306
|
),
|
|
5246
|
-
variant === "indeterminate" && /* @__PURE__ */
|
|
5307
|
+
variant === "indeterminate" && /* @__PURE__ */ React149.createElement(
|
|
5247
5308
|
"span",
|
|
5248
5309
|
{
|
|
5249
5310
|
className: "rf-linear-progress__bar rf-linear-progress__bar--secondary",
|
|
@@ -5256,13 +5317,13 @@ var LinearProgress = React142.forwardRef(
|
|
|
5256
5317
|
LinearProgress.displayName = "LinearProgress";
|
|
5257
5318
|
|
|
5258
5319
|
// lib/Progress/RufousLogoLoader.tsx
|
|
5259
|
-
var
|
|
5320
|
+
var React150 = __toESM(require("react"), 1);
|
|
5260
5321
|
var _uid = 0;
|
|
5261
5322
|
var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
5262
|
-
const clipId =
|
|
5323
|
+
const clipId = React150.useRef(`rll-${++_uid}`).current;
|
|
5263
5324
|
const height = size * (38.795 / 54.585);
|
|
5264
5325
|
const sxClass = useSx(sx);
|
|
5265
|
-
return /* @__PURE__ */
|
|
5326
|
+
return /* @__PURE__ */ React150.createElement("div", { className: ["rufous-logo-loader", sxClass, className].filter(Boolean).join(" "), style: { width: size, height } }, /* @__PURE__ */ React150.createElement(
|
|
5266
5327
|
"svg",
|
|
5267
5328
|
{
|
|
5268
5329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5271,14 +5332,14 @@ var RufousLogoLoader = ({ size = 80, sx, className }) => {
|
|
|
5271
5332
|
height,
|
|
5272
5333
|
className: "rufous-logo-loader__svg"
|
|
5273
5334
|
},
|
|
5274
|
-
/* @__PURE__ */
|
|
5335
|
+
/* @__PURE__ */ React150.createElement("defs", null, /* @__PURE__ */ React150.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React150.createElement(
|
|
5275
5336
|
"path",
|
|
5276
5337
|
{
|
|
5277
5338
|
transform: "translate(2208 18.205)",
|
|
5278
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"
|
|
5279
5340
|
}
|
|
5280
5341
|
))),
|
|
5281
|
-
/* @__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" })))
|
|
5282
5343
|
));
|
|
5283
5344
|
};
|
|
5284
5345
|
|
|
@@ -7073,8 +7134,8 @@ var RadioGroup = import_react21.default.forwardRef(function RadioGroup2(props, r
|
|
|
7073
7134
|
RadioGroup.displayName = "RadioGroup";
|
|
7074
7135
|
|
|
7075
7136
|
// lib/FormGroup/FormGroup.tsx
|
|
7076
|
-
var
|
|
7077
|
-
var FormGroup =
|
|
7137
|
+
var React156 = __toESM(require("react"), 1);
|
|
7138
|
+
var FormGroup = React156.forwardRef(
|
|
7078
7139
|
({ row = false, spacing, sx, className, style, children, ...rest }, ref) => {
|
|
7079
7140
|
const sxClass = useSx(sx);
|
|
7080
7141
|
const classes = ["rf-form-group", sxClass, className].filter(Boolean).join(" ");
|
|
@@ -7086,7 +7147,7 @@ var FormGroup = React149.forwardRef(
|
|
|
7086
7147
|
gap,
|
|
7087
7148
|
...style
|
|
7088
7149
|
};
|
|
7089
|
-
return /* @__PURE__ */
|
|
7150
|
+
return /* @__PURE__ */ React156.createElement("div", { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7090
7151
|
}
|
|
7091
7152
|
);
|
|
7092
7153
|
FormGroup.displayName = "FormGroup";
|
|
@@ -7879,12 +7940,12 @@ var Skeleton = ({
|
|
|
7879
7940
|
Skeleton.displayName = "Skeleton";
|
|
7880
7941
|
|
|
7881
7942
|
// lib/Box/Box.tsx
|
|
7882
|
-
var
|
|
7943
|
+
var React165 = __toESM(require("react"), 1);
|
|
7883
7944
|
function sp(val) {
|
|
7884
7945
|
if (val === void 0) return void 0;
|
|
7885
7946
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
7886
7947
|
}
|
|
7887
|
-
var Box =
|
|
7948
|
+
var Box = React165.forwardRef(
|
|
7888
7949
|
({
|
|
7889
7950
|
component = "div",
|
|
7890
7951
|
children,
|
|
@@ -7984,18 +8045,18 @@ var Box = React158.forwardRef(
|
|
|
7984
8045
|
};
|
|
7985
8046
|
const classes = ["rf-box", sxClass, className].filter(Boolean).join(" ");
|
|
7986
8047
|
const Tag = component;
|
|
7987
|
-
return /* @__PURE__ */
|
|
8048
|
+
return /* @__PURE__ */ React165.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
7988
8049
|
}
|
|
7989
8050
|
);
|
|
7990
8051
|
Box.displayName = "Box";
|
|
7991
8052
|
|
|
7992
8053
|
// lib/Stack/Stack.tsx
|
|
7993
|
-
var
|
|
8054
|
+
var React166 = __toESM(require("react"), 1);
|
|
7994
8055
|
function sp2(val) {
|
|
7995
8056
|
if (val === void 0) return void 0;
|
|
7996
8057
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
7997
8058
|
}
|
|
7998
|
-
var Stack =
|
|
8059
|
+
var Stack = React166.forwardRef(
|
|
7999
8060
|
({
|
|
8000
8061
|
direction = "column",
|
|
8001
8062
|
spacing,
|
|
@@ -8072,14 +8133,14 @@ var Stack = React159.forwardRef(
|
|
|
8072
8133
|
const classes = ["rf-stack", sxClass, className].filter(Boolean).join(" ");
|
|
8073
8134
|
let content;
|
|
8074
8135
|
if (divider) {
|
|
8075
|
-
const childArray =
|
|
8136
|
+
const childArray = React166.Children.toArray(children).filter(
|
|
8076
8137
|
(child) => child !== null && child !== void 0
|
|
8077
8138
|
);
|
|
8078
8139
|
content = childArray.reduce((acc, child, idx) => {
|
|
8079
8140
|
acc.push(child);
|
|
8080
8141
|
if (idx < childArray.length - 1) {
|
|
8081
8142
|
acc.push(
|
|
8082
|
-
/* @__PURE__ */
|
|
8143
|
+
/* @__PURE__ */ React166.createElement("div", { key: `divider-${idx}`, className: "rf-stack-divider" }, divider)
|
|
8083
8144
|
);
|
|
8084
8145
|
}
|
|
8085
8146
|
return acc;
|
|
@@ -8088,13 +8149,13 @@ var Stack = React159.forwardRef(
|
|
|
8088
8149
|
content = children;
|
|
8089
8150
|
}
|
|
8090
8151
|
const Tag = component;
|
|
8091
|
-
return /* @__PURE__ */
|
|
8152
|
+
return /* @__PURE__ */ React166.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, content);
|
|
8092
8153
|
}
|
|
8093
8154
|
);
|
|
8094
8155
|
Stack.displayName = "Stack";
|
|
8095
8156
|
|
|
8096
8157
|
// lib/Grid/Grid.tsx
|
|
8097
|
-
var
|
|
8158
|
+
var React167 = __toESM(require("react"), 1);
|
|
8098
8159
|
function sp3(val) {
|
|
8099
8160
|
if (val === void 0) return void 0;
|
|
8100
8161
|
return typeof val === "number" ? `${val * 8}px` : val;
|
|
@@ -8111,7 +8172,7 @@ function getSpacingGap(spacing) {
|
|
|
8111
8172
|
const base = spacing.xs ?? spacing.sm ?? spacing.md ?? 0;
|
|
8112
8173
|
return `${base * 8}px`;
|
|
8113
8174
|
}
|
|
8114
|
-
var Grid =
|
|
8175
|
+
var Grid = React167.forwardRef(
|
|
8115
8176
|
({
|
|
8116
8177
|
container = false,
|
|
8117
8178
|
item = false,
|
|
@@ -8205,13 +8266,13 @@ var Grid = React160.forwardRef(
|
|
|
8205
8266
|
className
|
|
8206
8267
|
].filter(Boolean).join(" ");
|
|
8207
8268
|
const Tag = component;
|
|
8208
|
-
return /* @__PURE__ */
|
|
8269
|
+
return /* @__PURE__ */ React167.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
8209
8270
|
}
|
|
8210
8271
|
);
|
|
8211
8272
|
Grid.displayName = "Grid";
|
|
8212
8273
|
|
|
8213
8274
|
// lib/Container/Container.tsx
|
|
8214
|
-
var
|
|
8275
|
+
var React168 = __toESM(require("react"), 1);
|
|
8215
8276
|
var BREAKPOINT_PX = {
|
|
8216
8277
|
xs: 444,
|
|
8217
8278
|
sm: 600,
|
|
@@ -8219,7 +8280,7 @@ var BREAKPOINT_PX = {
|
|
|
8219
8280
|
lg: 1200,
|
|
8220
8281
|
xl: 1536
|
|
8221
8282
|
};
|
|
8222
|
-
var Container =
|
|
8283
|
+
var Container = React168.forwardRef(
|
|
8223
8284
|
({
|
|
8224
8285
|
maxWidth = "lg",
|
|
8225
8286
|
fixed = false,
|
|
@@ -8244,7 +8305,7 @@ var Container = React161.forwardRef(
|
|
|
8244
8305
|
...style
|
|
8245
8306
|
};
|
|
8246
8307
|
const Tag = component;
|
|
8247
|
-
return /* @__PURE__ */
|
|
8308
|
+
return /* @__PURE__ */ React168.createElement(Tag, { ref, className: classes, style: inlineStyle, ...rest }, children);
|
|
8248
8309
|
}
|
|
8249
8310
|
);
|
|
8250
8311
|
Container.displayName = "Container";
|
|
@@ -8504,8 +8565,8 @@ var TablePagination = import_react30.default.forwardRef(
|
|
|
8504
8565
|
TablePagination.displayName = "TablePagination";
|
|
8505
8566
|
|
|
8506
8567
|
// lib/Paper/Paper.tsx
|
|
8507
|
-
var
|
|
8508
|
-
var Paper =
|
|
8568
|
+
var React170 = __toESM(require("react"), 1);
|
|
8569
|
+
var Paper = React170.forwardRef(
|
|
8509
8570
|
({
|
|
8510
8571
|
elevation = 1,
|
|
8511
8572
|
square = false,
|
|
@@ -8527,14 +8588,14 @@ var Paper = React163.forwardRef(
|
|
|
8527
8588
|
className
|
|
8528
8589
|
].filter(Boolean).join(" ");
|
|
8529
8590
|
const Tag = component;
|
|
8530
|
-
return /* @__PURE__ */
|
|
8591
|
+
return /* @__PURE__ */ React170.createElement(Tag, { ref, className: classes, style, ...rest }, children);
|
|
8531
8592
|
}
|
|
8532
8593
|
);
|
|
8533
8594
|
Paper.displayName = "Paper";
|
|
8534
8595
|
|
|
8535
8596
|
// lib/Card/Card.tsx
|
|
8536
|
-
var
|
|
8537
|
-
var Card =
|
|
8597
|
+
var React171 = __toESM(require("react"), 1);
|
|
8598
|
+
var Card = React171.forwardRef(
|
|
8538
8599
|
({
|
|
8539
8600
|
elevation = 1,
|
|
8540
8601
|
variant = "elevation",
|
|
@@ -8553,33 +8614,33 @@ var Card = React164.forwardRef(
|
|
|
8553
8614
|
sxClass,
|
|
8554
8615
|
className
|
|
8555
8616
|
].filter(Boolean).join(" ");
|
|
8556
|
-
return /* @__PURE__ */
|
|
8617
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8557
8618
|
}
|
|
8558
8619
|
);
|
|
8559
8620
|
Card.displayName = "Card";
|
|
8560
|
-
var CardContent =
|
|
8621
|
+
var CardContent = React171.forwardRef(
|
|
8561
8622
|
({ children, className, style, sx, ...rest }, ref) => {
|
|
8562
8623
|
const sxClass = useSx(sx);
|
|
8563
8624
|
const classes = ["rf-card-content", sxClass, className].filter(Boolean).join(" ");
|
|
8564
|
-
return /* @__PURE__ */
|
|
8625
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8565
8626
|
}
|
|
8566
8627
|
);
|
|
8567
8628
|
CardContent.displayName = "CardContent";
|
|
8568
|
-
var CardHeader =
|
|
8629
|
+
var CardHeader = React171.forwardRef(
|
|
8569
8630
|
({ title, subheader, avatar, action, className, style, sx, ...rest }, ref) => {
|
|
8570
8631
|
const sxClass = useSx(sx);
|
|
8571
8632
|
const classes = ["rf-card-header", sxClass, className].filter(Boolean).join(" ");
|
|
8572
|
-
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));
|
|
8573
8634
|
}
|
|
8574
8635
|
);
|
|
8575
8636
|
CardHeader.displayName = "CardHeader";
|
|
8576
|
-
var CardMedia =
|
|
8637
|
+
var CardMedia = React171.forwardRef(
|
|
8577
8638
|
({ component = "div", image, src, height, alt, className, style, sx, ...rest }, ref) => {
|
|
8578
8639
|
const sxClass = useSx(sx);
|
|
8579
8640
|
const classes = ["rf-card-media", sxClass, className].filter(Boolean).join(" ");
|
|
8580
8641
|
const computedHeight = height !== void 0 ? typeof height === "number" ? `${height}px` : height : "200px";
|
|
8581
8642
|
if (component === "img") {
|
|
8582
|
-
return /* @__PURE__ */
|
|
8643
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8583
8644
|
"img",
|
|
8584
8645
|
{
|
|
8585
8646
|
ref,
|
|
@@ -8592,7 +8653,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8592
8653
|
);
|
|
8593
8654
|
}
|
|
8594
8655
|
if (component === "video") {
|
|
8595
|
-
return /* @__PURE__ */
|
|
8656
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8596
8657
|
"video",
|
|
8597
8658
|
{
|
|
8598
8659
|
ref,
|
|
@@ -8608,7 +8669,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8608
8669
|
...image ? { backgroundImage: `url(${image})` } : {},
|
|
8609
8670
|
...style
|
|
8610
8671
|
};
|
|
8611
|
-
return /* @__PURE__ */
|
|
8672
|
+
return /* @__PURE__ */ React171.createElement(
|
|
8612
8673
|
"div",
|
|
8613
8674
|
{
|
|
8614
8675
|
ref,
|
|
@@ -8620,7 +8681,7 @@ var CardMedia = React164.forwardRef(
|
|
|
8620
8681
|
}
|
|
8621
8682
|
);
|
|
8622
8683
|
CardMedia.displayName = "CardMedia";
|
|
8623
|
-
var CardActions =
|
|
8684
|
+
var CardActions = React171.forwardRef(
|
|
8624
8685
|
({ disableSpacing = false, children, className, style, sx, ...rest }, ref) => {
|
|
8625
8686
|
const sxClass = useSx(sx);
|
|
8626
8687
|
const classes = [
|
|
@@ -8629,13 +8690,13 @@ var CardActions = React164.forwardRef(
|
|
|
8629
8690
|
sxClass,
|
|
8630
8691
|
className
|
|
8631
8692
|
].filter(Boolean).join(" ");
|
|
8632
|
-
return /* @__PURE__ */
|
|
8693
|
+
return /* @__PURE__ */ React171.createElement("div", { ref, className: classes, style, ...rest }, children);
|
|
8633
8694
|
}
|
|
8634
8695
|
);
|
|
8635
8696
|
CardActions.displayName = "CardActions";
|
|
8636
8697
|
|
|
8637
8698
|
// lib/Accordion/Accordion.tsx
|
|
8638
|
-
var
|
|
8699
|
+
var React172 = __toESM(require("react"), 1);
|
|
8639
8700
|
var import_react31 = require("react");
|
|
8640
8701
|
var AccordionContext = (0, import_react31.createContext)({
|
|
8641
8702
|
expanded: false,
|
|
@@ -8643,7 +8704,7 @@ var AccordionContext = (0, import_react31.createContext)({
|
|
|
8643
8704
|
toggle: () => {
|
|
8644
8705
|
}
|
|
8645
8706
|
});
|
|
8646
|
-
var Accordion =
|
|
8707
|
+
var Accordion = React172.forwardRef(
|
|
8647
8708
|
({
|
|
8648
8709
|
expanded: expandedProp,
|
|
8649
8710
|
defaultExpanded = false,
|
|
@@ -8678,11 +8739,11 @@ var Accordion = React165.forwardRef(
|
|
|
8678
8739
|
sxClass,
|
|
8679
8740
|
className
|
|
8680
8741
|
].filter(Boolean).join(" ");
|
|
8681
|
-
return /* @__PURE__ */
|
|
8742
|
+
return /* @__PURE__ */ React172.createElement(AccordionContext.Provider, { value: { expanded, disabled, toggle } }, /* @__PURE__ */ React172.createElement("div", { ref, className: classes, style, ...rest }, children));
|
|
8682
8743
|
}
|
|
8683
8744
|
);
|
|
8684
8745
|
Accordion.displayName = "Accordion";
|
|
8685
|
-
var ChevronIcon = () => /* @__PURE__ */
|
|
8746
|
+
var ChevronIcon = () => /* @__PURE__ */ React172.createElement(
|
|
8686
8747
|
"svg",
|
|
8687
8748
|
{
|
|
8688
8749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8696,9 +8757,9 @@ var ChevronIcon = () => /* @__PURE__ */ React165.createElement(
|
|
|
8696
8757
|
strokeLinejoin: "round",
|
|
8697
8758
|
"aria-hidden": "true"
|
|
8698
8759
|
},
|
|
8699
|
-
/* @__PURE__ */
|
|
8760
|
+
/* @__PURE__ */ React172.createElement("polyline", { points: "6 9 12 15 18 9" })
|
|
8700
8761
|
);
|
|
8701
|
-
var AccordionSummary =
|
|
8762
|
+
var AccordionSummary = React172.forwardRef(
|
|
8702
8763
|
({ expandIcon, children, sx, className, style, ...rest }, ref) => {
|
|
8703
8764
|
const sxClass = useSx(sx);
|
|
8704
8765
|
const { expanded, toggle, disabled } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8712,7 +8773,7 @@ var AccordionSummary = React165.forwardRef(
|
|
|
8712
8773
|
"rf-accordion-summary-icon",
|
|
8713
8774
|
expanded ? "rf-accordion-icon-expanded" : ""
|
|
8714
8775
|
].filter(Boolean).join(" ");
|
|
8715
|
-
return /* @__PURE__ */
|
|
8776
|
+
return /* @__PURE__ */ React172.createElement(
|
|
8716
8777
|
"button",
|
|
8717
8778
|
{
|
|
8718
8779
|
ref,
|
|
@@ -8724,13 +8785,13 @@ var AccordionSummary = React165.forwardRef(
|
|
|
8724
8785
|
"aria-expanded": expanded,
|
|
8725
8786
|
...rest
|
|
8726
8787
|
},
|
|
8727
|
-
/* @__PURE__ */
|
|
8728
|
-
/* @__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))
|
|
8729
8790
|
);
|
|
8730
8791
|
}
|
|
8731
8792
|
);
|
|
8732
8793
|
AccordionSummary.displayName = "AccordionSummary";
|
|
8733
|
-
var AccordionDetails =
|
|
8794
|
+
var AccordionDetails = React172.forwardRef(
|
|
8734
8795
|
({ children, sx, className, style, ...rest }, ref) => {
|
|
8735
8796
|
const sxClass = useSx(sx);
|
|
8736
8797
|
const { expanded } = (0, import_react31.useContext)(AccordionContext);
|
|
@@ -8743,7 +8804,7 @@ var AccordionDetails = React165.forwardRef(
|
|
|
8743
8804
|
sxClass,
|
|
8744
8805
|
className
|
|
8745
8806
|
].filter(Boolean).join(" ");
|
|
8746
|
-
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)));
|
|
8747
8808
|
}
|
|
8748
8809
|
);
|
|
8749
8810
|
AccordionDetails.displayName = "AccordionDetails";
|
|
@@ -9454,7 +9515,7 @@ var Drawer = ({
|
|
|
9454
9515
|
Drawer.displayName = "Drawer";
|
|
9455
9516
|
|
|
9456
9517
|
// lib/Pagination/Pagination.tsx
|
|
9457
|
-
var
|
|
9518
|
+
var React178 = __toESM(require("react"), 1);
|
|
9458
9519
|
function range(start, end) {
|
|
9459
9520
|
const out = [];
|
|
9460
9521
|
for (let i = start; i <= end; i++) out.push(i);
|
|
@@ -9493,7 +9554,7 @@ function buildItems(count, page, siblingCount, boundaryCount) {
|
|
|
9493
9554
|
endPages.forEach((p) => items.push({ type: "page", page: p, key: `p-${p}` }));
|
|
9494
9555
|
return items;
|
|
9495
9556
|
}
|
|
9496
|
-
var Pagination =
|
|
9557
|
+
var Pagination = React178.forwardRef(
|
|
9497
9558
|
({
|
|
9498
9559
|
count,
|
|
9499
9560
|
page: pageProp,
|
|
@@ -9514,7 +9575,7 @@ var Pagination = React171.forwardRef(
|
|
|
9514
9575
|
...rest
|
|
9515
9576
|
}, ref) => {
|
|
9516
9577
|
const isControlled = pageProp !== void 0;
|
|
9517
|
-
const [uncontrolledPage, setUncontrolledPage] =
|
|
9578
|
+
const [uncontrolledPage, setUncontrolledPage] = React178.useState(defaultPage);
|
|
9518
9579
|
const page = isControlled ? pageProp : uncontrolledPage;
|
|
9519
9580
|
const sxClass = useSx(sx);
|
|
9520
9581
|
const classes = [
|
|
@@ -9531,7 +9592,7 @@ var Pagination = React171.forwardRef(
|
|
|
9531
9592
|
onChange?.(e, clamped);
|
|
9532
9593
|
};
|
|
9533
9594
|
const items = buildItems(count, page, siblingCount, boundaryCount);
|
|
9534
|
-
const renderControl = (key, label, targetPage, isDisabled, symbol) => /* @__PURE__ */
|
|
9595
|
+
const renderControl = (key, label, targetPage, isDisabled, symbol) => /* @__PURE__ */ React178.createElement("li", { key }, /* @__PURE__ */ React178.createElement(
|
|
9535
9596
|
"button",
|
|
9536
9597
|
{
|
|
9537
9598
|
type: "button",
|
|
@@ -9542,12 +9603,12 @@ var Pagination = React171.forwardRef(
|
|
|
9542
9603
|
},
|
|
9543
9604
|
symbol
|
|
9544
9605
|
));
|
|
9545
|
-
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) => {
|
|
9546
9607
|
if (item.type === "start-ellipsis" || item.type === "end-ellipsis") {
|
|
9547
|
-
return /* @__PURE__ */
|
|
9608
|
+
return /* @__PURE__ */ React178.createElement("li", { key: item.key, "aria-hidden": "true" }, /* @__PURE__ */ React178.createElement("span", { className: "rf-pagination__ellipsis" }, "\u2026"));
|
|
9548
9609
|
}
|
|
9549
9610
|
const isActive = item.page === page;
|
|
9550
|
-
return /* @__PURE__ */
|
|
9611
|
+
return /* @__PURE__ */ React178.createElement("li", { key: item.key }, /* @__PURE__ */ React178.createElement(
|
|
9551
9612
|
"button",
|
|
9552
9613
|
{
|
|
9553
9614
|
type: "button",
|
|
@@ -9679,14 +9740,14 @@ var Snackbar = ({
|
|
|
9679
9740
|
Snackbar.displayName = "Snackbar";
|
|
9680
9741
|
|
|
9681
9742
|
// lib/Alert/Alert.tsx
|
|
9682
|
-
var
|
|
9743
|
+
var React180 = __toESM(require("react"), 1);
|
|
9683
9744
|
var DEFAULT_ICONS = {
|
|
9684
|
-
success: /* @__PURE__ */
|
|
9685
|
-
info: /* @__PURE__ */
|
|
9686
|
-
warning: /* @__PURE__ */
|
|
9687
|
-
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" }))
|
|
9688
9749
|
};
|
|
9689
|
-
var Alert =
|
|
9750
|
+
var Alert = React180.forwardRef(
|
|
9690
9751
|
({
|
|
9691
9752
|
severity = "info",
|
|
9692
9753
|
variant = "standard",
|
|
@@ -9709,7 +9770,7 @@ var Alert = React173.forwardRef(
|
|
|
9709
9770
|
className
|
|
9710
9771
|
].filter(Boolean).join(" ");
|
|
9711
9772
|
const resolvedIcon = icon === false ? null : icon ?? DEFAULT_ICONS[severity];
|
|
9712
|
-
const closeAction = onClose && !action ? /* @__PURE__ */
|
|
9773
|
+
const closeAction = onClose && !action ? /* @__PURE__ */ React180.createElement(
|
|
9713
9774
|
"button",
|
|
9714
9775
|
{
|
|
9715
9776
|
type: "button",
|
|
@@ -9719,18 +9780,18 @@ var Alert = React173.forwardRef(
|
|
|
9719
9780
|
},
|
|
9720
9781
|
"\xD7"
|
|
9721
9782
|
) : null;
|
|
9722
|
-
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));
|
|
9723
9784
|
}
|
|
9724
9785
|
);
|
|
9725
9786
|
Alert.displayName = "Alert";
|
|
9726
9787
|
|
|
9727
9788
|
// lib/Timeline/Timeline.tsx
|
|
9728
|
-
var
|
|
9729
|
-
var TimelineContext =
|
|
9730
|
-
var TimelineItemContext =
|
|
9789
|
+
var React181 = __toESM(require("react"), 1);
|
|
9790
|
+
var TimelineContext = React181.createContext({ position: "right" });
|
|
9791
|
+
var TimelineItemContext = React181.createContext({
|
|
9731
9792
|
effectivePosition: "right"
|
|
9732
9793
|
});
|
|
9733
|
-
var Timeline =
|
|
9794
|
+
var Timeline = React181.forwardRef(
|
|
9734
9795
|
({ position = "right", sx, className, children, ...rest }, ref) => {
|
|
9735
9796
|
const sxClass = useSx(sx);
|
|
9736
9797
|
const classes = [
|
|
@@ -9739,17 +9800,17 @@ var Timeline = React174.forwardRef(
|
|
|
9739
9800
|
sxClass,
|
|
9740
9801
|
className
|
|
9741
9802
|
].filter(Boolean).join(" ");
|
|
9742
|
-
const indexed =
|
|
9743
|
-
if (!
|
|
9744
|
-
return
|
|
9803
|
+
const indexed = React181.Children.map(children, (child, idx) => {
|
|
9804
|
+
if (!React181.isValidElement(child)) return child;
|
|
9805
|
+
return React181.cloneElement(child, {
|
|
9745
9806
|
"data-rf-timeline-index": idx
|
|
9746
9807
|
});
|
|
9747
9808
|
});
|
|
9748
|
-
return /* @__PURE__ */
|
|
9809
|
+
return /* @__PURE__ */ React181.createElement(TimelineContext.Provider, { value: { position } }, /* @__PURE__ */ React181.createElement("ul", { ref, className: classes, ...rest }, indexed));
|
|
9749
9810
|
}
|
|
9750
9811
|
);
|
|
9751
9812
|
Timeline.displayName = "Timeline";
|
|
9752
|
-
var TimelineItem =
|
|
9813
|
+
var TimelineItem = React181.forwardRef(
|
|
9753
9814
|
(props, ref) => {
|
|
9754
9815
|
const {
|
|
9755
9816
|
position: positionProp,
|
|
@@ -9758,7 +9819,7 @@ var TimelineItem = React174.forwardRef(
|
|
|
9758
9819
|
children,
|
|
9759
9820
|
...rest
|
|
9760
9821
|
} = props;
|
|
9761
|
-
const { position: parentPosition } =
|
|
9822
|
+
const { position: parentPosition } = React181.useContext(TimelineContext);
|
|
9762
9823
|
const idx = rest["data-rf-timeline-index"];
|
|
9763
9824
|
let effectivePosition;
|
|
9764
9825
|
if (positionProp) {
|
|
@@ -9773,8 +9834,8 @@ var TimelineItem = React174.forwardRef(
|
|
|
9773
9834
|
effectivePosition = (idx ?? 0) % 2 === 0 ? "left" : "right";
|
|
9774
9835
|
}
|
|
9775
9836
|
let hasOpposite = false;
|
|
9776
|
-
|
|
9777
|
-
if (
|
|
9837
|
+
React181.Children.forEach(children, (child) => {
|
|
9838
|
+
if (React181.isValidElement(child) && child.type?.displayName === "TimelineOppositeContent") {
|
|
9778
9839
|
hasOpposite = true;
|
|
9779
9840
|
}
|
|
9780
9841
|
});
|
|
@@ -9786,17 +9847,17 @@ var TimelineItem = React174.forwardRef(
|
|
|
9786
9847
|
sxClass,
|
|
9787
9848
|
className
|
|
9788
9849
|
].filter(Boolean).join(" ");
|
|
9789
|
-
return /* @__PURE__ */
|
|
9850
|
+
return /* @__PURE__ */ React181.createElement(TimelineItemContext.Provider, { value: { effectivePosition } }, /* @__PURE__ */ React181.createElement("li", { ref, className: classes, ...rest }, children));
|
|
9790
9851
|
}
|
|
9791
9852
|
);
|
|
9792
9853
|
TimelineItem.displayName = "TimelineItem";
|
|
9793
|
-
var TimelineSeparator =
|
|
9854
|
+
var TimelineSeparator = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9794
9855
|
const sxClass = useSx(sx);
|
|
9795
9856
|
const classes = ["rf-timeline-separator", sxClass, className].filter(Boolean).join(" ");
|
|
9796
|
-
return /* @__PURE__ */
|
|
9857
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9797
9858
|
});
|
|
9798
9859
|
TimelineSeparator.displayName = "TimelineSeparator";
|
|
9799
|
-
var TimelineDot =
|
|
9860
|
+
var TimelineDot = React181.forwardRef(
|
|
9800
9861
|
({ color = "grey", variant = "filled", sx, className, children, ...rest }, ref) => {
|
|
9801
9862
|
const sxClass = useSx(sx);
|
|
9802
9863
|
const classes = [
|
|
@@ -9807,31 +9868,31 @@ var TimelineDot = React174.forwardRef(
|
|
|
9807
9868
|
sxClass,
|
|
9808
9869
|
className
|
|
9809
9870
|
].filter(Boolean).join(" ");
|
|
9810
|
-
return /* @__PURE__ */
|
|
9871
|
+
return /* @__PURE__ */ React181.createElement("span", { ref, className: classes, ...rest }, children);
|
|
9811
9872
|
}
|
|
9812
9873
|
);
|
|
9813
9874
|
TimelineDot.displayName = "TimelineDot";
|
|
9814
|
-
var TimelineConnector =
|
|
9875
|
+
var TimelineConnector = React181.forwardRef(({ sx, className, ...rest }, ref) => {
|
|
9815
9876
|
const sxClass = useSx(sx);
|
|
9816
9877
|
const classes = ["rf-timeline-connector", sxClass, className].filter(Boolean).join(" ");
|
|
9817
|
-
return /* @__PURE__ */
|
|
9878
|
+
return /* @__PURE__ */ React181.createElement("span", { ref, className: classes, ...rest });
|
|
9818
9879
|
});
|
|
9819
9880
|
TimelineConnector.displayName = "TimelineConnector";
|
|
9820
|
-
var TimelineContent =
|
|
9881
|
+
var TimelineContent = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9821
9882
|
const sxClass = useSx(sx);
|
|
9822
9883
|
const classes = ["rf-timeline-content", sxClass, className].filter(Boolean).join(" ");
|
|
9823
|
-
return /* @__PURE__ */
|
|
9884
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9824
9885
|
});
|
|
9825
9886
|
TimelineContent.displayName = "TimelineContent";
|
|
9826
|
-
var TimelineOppositeContent =
|
|
9887
|
+
var TimelineOppositeContent = React181.forwardRef(({ sx, className, children, ...rest }, ref) => {
|
|
9827
9888
|
const sxClass = useSx(sx);
|
|
9828
9889
|
const classes = ["rf-timeline-opposite-content", sxClass, className].filter(Boolean).join(" ");
|
|
9829
|
-
return /* @__PURE__ */
|
|
9890
|
+
return /* @__PURE__ */ React181.createElement("div", { ref, className: classes, ...rest }, children);
|
|
9830
9891
|
});
|
|
9831
9892
|
TimelineOppositeContent.displayName = "TimelineOppositeContent";
|
|
9832
9893
|
|
|
9833
9894
|
// lib/ClickAwayListener/ClickAwayListener.tsx
|
|
9834
|
-
var
|
|
9895
|
+
var React182 = __toESM(require("react"), 1);
|
|
9835
9896
|
function mapEventPropToEvent(eventProp) {
|
|
9836
9897
|
return eventProp.substring(2).toLowerCase();
|
|
9837
9898
|
}
|
|
@@ -9849,7 +9910,7 @@ function setRef(ref, value) {
|
|
|
9849
9910
|
}
|
|
9850
9911
|
}
|
|
9851
9912
|
function useForkRef(refA, refB) {
|
|
9852
|
-
return
|
|
9913
|
+
return React182.useMemo(() => {
|
|
9853
9914
|
if (refA == null && refB == null) {
|
|
9854
9915
|
return null;
|
|
9855
9916
|
}
|
|
@@ -9860,14 +9921,14 @@ function useForkRef(refA, refB) {
|
|
|
9860
9921
|
}, [refA, refB]);
|
|
9861
9922
|
}
|
|
9862
9923
|
function useEventCallback(fn) {
|
|
9863
|
-
const ref =
|
|
9864
|
-
|
|
9924
|
+
const ref = React182.useRef(fn);
|
|
9925
|
+
React182.useEffect(() => {
|
|
9865
9926
|
ref.current = fn;
|
|
9866
9927
|
});
|
|
9867
|
-
return
|
|
9928
|
+
return React182.useCallback((...args) => ref.current(...args), []);
|
|
9868
9929
|
}
|
|
9869
9930
|
function getReactElementRef(element) {
|
|
9870
|
-
const major = parseInt(
|
|
9931
|
+
const major = parseInt(React182.version, 10);
|
|
9871
9932
|
if (major >= 19) {
|
|
9872
9933
|
return element.props?.ref ?? null;
|
|
9873
9934
|
}
|
|
@@ -9881,11 +9942,11 @@ function ClickAwayListener(props) {
|
|
|
9881
9942
|
onClickAway,
|
|
9882
9943
|
touchEvent = "onTouchEnd"
|
|
9883
9944
|
} = props;
|
|
9884
|
-
const movedRef =
|
|
9885
|
-
const nodeRef =
|
|
9886
|
-
const activatedRef =
|
|
9887
|
-
const syntheticEventRef =
|
|
9888
|
-
|
|
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(() => {
|
|
9889
9950
|
const id = setTimeout(() => {
|
|
9890
9951
|
activatedRef.current = true;
|
|
9891
9952
|
}, 0);
|
|
@@ -9934,7 +9995,7 @@ function ClickAwayListener(props) {
|
|
|
9934
9995
|
if (touchEvent !== false) {
|
|
9935
9996
|
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
|
9936
9997
|
}
|
|
9937
|
-
|
|
9998
|
+
React182.useEffect(() => {
|
|
9938
9999
|
if (touchEvent === false) {
|
|
9939
10000
|
return void 0;
|
|
9940
10001
|
}
|
|
@@ -9953,7 +10014,7 @@ function ClickAwayListener(props) {
|
|
|
9953
10014
|
if (mouseEvent !== false) {
|
|
9954
10015
|
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
|
9955
10016
|
}
|
|
9956
|
-
|
|
10017
|
+
React182.useEffect(() => {
|
|
9957
10018
|
if (mouseEvent === false) {
|
|
9958
10019
|
return void 0;
|
|
9959
10020
|
}
|
|
@@ -9964,7 +10025,7 @@ function ClickAwayListener(props) {
|
|
|
9964
10025
|
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
|
9965
10026
|
};
|
|
9966
10027
|
}, [handleClickAway, mouseEvent]);
|
|
9967
|
-
return
|
|
10028
|
+
return React182.cloneElement(children, childrenProps);
|
|
9968
10029
|
}
|
|
9969
10030
|
|
|
9970
10031
|
// lib/Link/Link.tsx
|
|
@@ -13315,38 +13376,38 @@ var CustomTaskItem = import_extension_task_item.default.extend({
|
|
|
13315
13376
|
});
|
|
13316
13377
|
|
|
13317
13378
|
// lib/RufousTextEditor/icons.tsx
|
|
13318
|
-
var
|
|
13379
|
+
var React197 = __toESM(require("react"), 1);
|
|
13319
13380
|
var s = { width: 20, height: 20, viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" };
|
|
13320
|
-
var IconUndo = () => /* @__PURE__ */
|
|
13321
|
-
var IconRedo = () => /* @__PURE__ */
|
|
13322
|
-
var IconBold = () => /* @__PURE__ */
|
|
13323
|
-
var IconItalic = () => /* @__PURE__ */
|
|
13324
|
-
var IconLink = () => /* @__PURE__ */
|
|
13325
|
-
var IconStrike = () => /* @__PURE__ */
|
|
13326
|
-
var IconHeading = () => /* @__PURE__ */
|
|
13327
|
-
var IconFontSize = () => /* @__PURE__ */
|
|
13328
|
-
var IconColor = () => /* @__PURE__ */
|
|
13329
|
-
var IconFont = () => /* @__PURE__ */
|
|
13330
|
-
var IconLineHeight = () => /* @__PURE__ */
|
|
13331
|
-
var IconBulletList = () => /* @__PURE__ */
|
|
13332
|
-
var IconOrderedList = () => /* @__PURE__ */
|
|
13333
|
-
var IconAlignLeft = () => /* @__PURE__ */
|
|
13334
|
-
var IconAlignCenter = () => /* @__PURE__ */
|
|
13335
|
-
var IconAlignRight = () => /* @__PURE__ */
|
|
13336
|
-
var IconAlignJustify = () => /* @__PURE__ */
|
|
13337
|
-
var IconIndentIncrease = () => /* @__PURE__ */
|
|
13338
|
-
var IconIndentDecrease = () => /* @__PURE__ */
|
|
13339
|
-
var IconTable = () => /* @__PURE__ */
|
|
13340
|
-
var IconImage = () => /* @__PURE__ */
|
|
13341
|
-
var IconVideo = () => /* @__PURE__ */
|
|
13342
|
-
var IconCut = () => /* @__PURE__ */
|
|
13343
|
-
var IconCopy = () => /* @__PURE__ */
|
|
13344
|
-
var IconCode = () => /* @__PURE__ */
|
|
13345
|
-
var IconFullscreen = () => /* @__PURE__ */
|
|
13346
|
-
var IconTranslate = () => /* @__PURE__ */
|
|
13347
|
-
var IconTaskList = () => /* @__PURE__ */
|
|
13348
|
-
var IconCheck = () => /* @__PURE__ */
|
|
13349
|
-
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" }));
|
|
13350
13411
|
|
|
13351
13412
|
// lib/RufousTextEditor/Toolbar.tsx
|
|
13352
13413
|
var COLOR_PALETTE = [
|
|
@@ -15855,6 +15916,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15855
15916
|
Autocomplete,
|
|
15856
15917
|
Avatar,
|
|
15857
15918
|
AvatarGroup,
|
|
15919
|
+
BarChartIcon,
|
|
15858
15920
|
BaseDialog,
|
|
15859
15921
|
BookmarkIcon,
|
|
15860
15922
|
Box,
|
|
@@ -15901,6 +15963,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15901
15963
|
DifficultyMediumIcon,
|
|
15902
15964
|
Divider,
|
|
15903
15965
|
DollarIcon,
|
|
15966
|
+
DonutLargeIcon,
|
|
15904
15967
|
DownloadIcon,
|
|
15905
15968
|
DownloadPdfIcon,
|
|
15906
15969
|
DragIndicatorIcon,
|
|
@@ -15934,6 +15997,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15934
15997
|
IndustryIcon,
|
|
15935
15998
|
InfoIcon,
|
|
15936
15999
|
InvoiceIcon,
|
|
16000
|
+
LightbulbIcon,
|
|
15937
16001
|
LineHeight,
|
|
15938
16002
|
LinearProgress,
|
|
15939
16003
|
Link,
|
|
@@ -15973,6 +16037,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15973
16037
|
PersonSearchIcon,
|
|
15974
16038
|
PhoneField,
|
|
15975
16039
|
PhoneIcon,
|
|
16040
|
+
PieChartIcon,
|
|
15976
16041
|
PinIcon,
|
|
15977
16042
|
PlaceIcon,
|
|
15978
16043
|
PlusIcon,
|
|
@@ -15992,6 +16057,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
15992
16057
|
Radio,
|
|
15993
16058
|
RadioGroup,
|
|
15994
16059
|
Rating,
|
|
16060
|
+
RecommendIcon,
|
|
15995
16061
|
RefreshIcon,
|
|
15996
16062
|
RemoveIcon,
|
|
15997
16063
|
ResendInviteIcon,
|
|
@@ -16012,6 +16078,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
16012
16078
|
SendIcon,
|
|
16013
16079
|
SettingsIcon,
|
|
16014
16080
|
ShareIcon,
|
|
16081
|
+
ShowChartIcon,
|
|
16015
16082
|
SidebarIcon,
|
|
16016
16083
|
Skeleton,
|
|
16017
16084
|
Slide,
|
|
@@ -16064,6 +16131,7 @@ function useCitiesSearch(debounceMs = 300) {
|
|
|
16064
16131
|
TrashIcon,
|
|
16065
16132
|
TreeSelect,
|
|
16066
16133
|
TrendingFlatIcon,
|
|
16134
|
+
TrendingUpIcon,
|
|
16067
16135
|
Typography,
|
|
16068
16136
|
UnArchivedIcon,
|
|
16069
16137
|
UnlockIcon,
|