@cerberus-design/react 0.18.0 → 0.18.1
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/build/legacy/_tsup-dts-rollup.d.cts +10 -5
- package/build/legacy/components/CircularProgress.cjs +15 -37
- package/build/legacy/components/CircularProgress.cjs.map +1 -1
- package/build/legacy/index.cjs +259 -280
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +10 -5
- package/build/modern/{chunk-JFSCSAHD.js → chunk-25S67KZH.js} +4 -4
- package/build/modern/{chunk-H2HP63H4.js → chunk-CJVKAGCJ.js} +4 -4
- package/build/modern/{chunk-Q3LUIS3M.js → chunk-IE2HWT3I.js} +16 -37
- package/build/modern/chunk-IE2HWT3I.js.map +1 -0
- package/build/modern/{chunk-TGY3RICC.js → chunk-KABRV6TB.js} +4 -4
- package/build/modern/{chunk-SDV6XUM6.js → chunk-RF4VKGOQ.js} +2 -2
- package/build/modern/{chunk-NYRNXRTZ.js → chunk-TS7PAQPV.js} +4 -4
- package/build/modern/{chunk-STCGFGTK.js → chunk-TV346AYO.js} +4 -4
- package/build/modern/{chunk-6DU5QBPR.js → chunk-UCVB2VOI.js} +4 -4
- package/build/modern/components/CircularProgress.js +1 -2
- package/build/modern/components/FileStatus.js +4 -4
- package/build/modern/components/Tag.js +2 -2
- package/build/modern/components/combobox/combobox.js +2 -2
- package/build/modern/components/combobox/index.js +2 -2
- package/build/modern/components/cta-dialog/index.js +3 -3
- package/build/modern/components/cta-dialog/provider.js +3 -3
- package/build/modern/components/date-picker/calendar.js +2 -2
- package/build/modern/components/date-picker/day-view.js +2 -2
- package/build/modern/components/date-picker/index.js +8 -8
- package/build/modern/components/date-picker/month-view.js +2 -2
- package/build/modern/components/date-picker/view-control-group.js +2 -2
- package/build/modern/components/date-picker/year-view.js +2 -2
- package/build/modern/components/deprecated/Label.js +1 -1
- package/build/modern/components/deprecated/NavMenuTrigger.js +2 -2
- package/build/modern/components/dialog/index.js +3 -3
- package/build/modern/components/field/index.js +3 -3
- package/build/modern/components/notifications/center.js +3 -3
- package/build/modern/components/notifications/index.js +4 -4
- package/build/modern/components/notifications/match-icon.js +2 -2
- package/build/modern/components/select/index.js +2 -2
- package/build/modern/components/select/select.js +2 -2
- package/build/modern/context/confirm-modal.js +3 -3
- package/build/modern/context/prompt-modal.js +4 -4
- package/build/modern/index.js +60 -60
- package/package.json +5 -6
- package/src/components/CircularProgress.tsx +26 -38
- package/build/modern/chunk-Q3LUIS3M.js.map +0 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- /package/build/modern/{chunk-JFSCSAHD.js.map → chunk-25S67KZH.js.map} +0 -0
- /package/build/modern/{chunk-H2HP63H4.js.map → chunk-CJVKAGCJ.js.map} +0 -0
- /package/build/modern/{chunk-TGY3RICC.js.map → chunk-KABRV6TB.js.map} +0 -0
- /package/build/modern/{chunk-SDV6XUM6.js.map → chunk-RF4VKGOQ.js.map} +0 -0
- /package/build/modern/{chunk-NYRNXRTZ.js.map → chunk-TS7PAQPV.js.map} +0 -0
- /package/build/modern/{chunk-STCGFGTK.js.map → chunk-TV346AYO.js.map} +0 -0
- /package/build/modern/{chunk-6DU5QBPR.js.map → chunk-UCVB2VOI.js.map} +0 -0
package/build/legacy/index.cjs
CHANGED
|
@@ -1442,15 +1442,20 @@ function Checkbox2(props) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
// src/components/CircularProgress.tsx
|
|
1445
|
-
var
|
|
1446
|
-
var import_css17 = require("styled-system/css");
|
|
1445
|
+
var import_recipes14 = require("styled-system/recipes");
|
|
1447
1446
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1448
1447
|
function CircularProgress(props) {
|
|
1448
|
+
const { size = "1.1em" } = props;
|
|
1449
|
+
const sizeProps = props.size ? {
|
|
1450
|
+
height: size,
|
|
1451
|
+
width: size
|
|
1452
|
+
} : {};
|
|
1449
1453
|
const strokeW = 14;
|
|
1450
1454
|
const radius = `calc(50% * (1 - ${strokeW}/100))`;
|
|
1451
1455
|
const status = props.syntax ?? "Done";
|
|
1452
1456
|
const now = props.now >= 100 ? 100 : props.now;
|
|
1453
1457
|
const bgStyle = props.bgStyle ?? "filled";
|
|
1458
|
+
const styles = (0, import_recipes14.circularProgress)();
|
|
1454
1459
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1455
1460
|
"div",
|
|
1456
1461
|
{
|
|
@@ -1459,27 +1464,19 @@ function CircularProgress(props) {
|
|
|
1459
1464
|
"aria-valuemin": 0,
|
|
1460
1465
|
"aria-valuemax": 100,
|
|
1461
1466
|
"aria-valuenow": now,
|
|
1462
|
-
className:
|
|
1463
|
-
alignSelf: "stretch",
|
|
1464
|
-
flex: 1,
|
|
1465
|
-
m: "4px",
|
|
1466
|
-
position: "relative"
|
|
1467
|
-
}),
|
|
1467
|
+
className: styles.root,
|
|
1468
1468
|
role: "progressbar",
|
|
1469
1469
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1470
1470
|
"svg",
|
|
1471
1471
|
{
|
|
1472
1472
|
"data-complete": now === 100,
|
|
1473
|
-
className:
|
|
1474
|
-
display: "block",
|
|
1475
|
-
rounded: "full",
|
|
1476
|
-
transition: "all 0.5s ease"
|
|
1477
|
-
}),
|
|
1473
|
+
className: styles.group,
|
|
1478
1474
|
fill: "none",
|
|
1479
1475
|
strokeLinecap: "round",
|
|
1480
1476
|
strokeWidth: strokeW,
|
|
1481
1477
|
viewBox: "0 0 100 100",
|
|
1482
1478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1479
|
+
...sizeProps,
|
|
1483
1480
|
children: [
|
|
1484
1481
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("title", { children: props.title }),
|
|
1485
1482
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("desc", { children: `${now}% ${status}` }),
|
|
@@ -1502,9 +1499,7 @@ function CircularProgress(props) {
|
|
|
1502
1499
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: bgStyle === "filled", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1503
1500
|
"circle",
|
|
1504
1501
|
{
|
|
1505
|
-
className:
|
|
1506
|
-
fill: "page.surface.initial"
|
|
1507
|
-
}),
|
|
1502
|
+
className: styles.base,
|
|
1508
1503
|
cx: "50%",
|
|
1509
1504
|
cy: "50%",
|
|
1510
1505
|
r: `calc(50% * (1 - ${strokeW}/100))`,
|
|
@@ -1514,9 +1509,7 @@ function CircularProgress(props) {
|
|
|
1514
1509
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1515
1510
|
"circle",
|
|
1516
1511
|
{
|
|
1517
|
-
className:
|
|
1518
|
-
stroke: "page.bg.100"
|
|
1519
|
-
}),
|
|
1512
|
+
className: styles.track,
|
|
1520
1513
|
cx: "50%",
|
|
1521
1514
|
cy: "50%",
|
|
1522
1515
|
r: radius,
|
|
@@ -1527,13 +1520,7 @@ function CircularProgress(props) {
|
|
|
1527
1520
|
"circle",
|
|
1528
1521
|
{
|
|
1529
1522
|
"data-complete": now === 100,
|
|
1530
|
-
className:
|
|
1531
|
-
stroke: "url(#gradient)",
|
|
1532
|
-
transition: "stroke-dashoffset, stroke 0.5s ease",
|
|
1533
|
-
_isComplete: {
|
|
1534
|
-
stroke: "success.bg.initial"
|
|
1535
|
-
}
|
|
1536
|
-
}),
|
|
1523
|
+
className: styles.path,
|
|
1537
1524
|
cx: "50%",
|
|
1538
1525
|
cy: "50%",
|
|
1539
1526
|
fill: "none",
|
|
@@ -1548,11 +1535,7 @@ function CircularProgress(props) {
|
|
|
1548
1535
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1549
1536
|
"text",
|
|
1550
1537
|
{
|
|
1551
|
-
className:
|
|
1552
|
-
fill: "page.text.initial",
|
|
1553
|
-
fontFamily: "mono",
|
|
1554
|
-
textStyle: "1.25rem"
|
|
1555
|
-
}),
|
|
1538
|
+
className: styles.title,
|
|
1556
1539
|
x: "50%",
|
|
1557
1540
|
y: "47%",
|
|
1558
1541
|
dominantBaseline: "middle",
|
|
@@ -1566,11 +1549,7 @@ function CircularProgress(props) {
|
|
|
1566
1549
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1567
1550
|
"text",
|
|
1568
1551
|
{
|
|
1569
|
-
className:
|
|
1570
|
-
fill: "page.text.100",
|
|
1571
|
-
fontSize: "0.5rem",
|
|
1572
|
-
fontWeight: 600
|
|
1573
|
-
}),
|
|
1552
|
+
className: styles.description,
|
|
1574
1553
|
x: "50%",
|
|
1575
1554
|
y: "59%",
|
|
1576
1555
|
dominantBaseline: "middle",
|
|
@@ -1589,125 +1568,125 @@ function CircularProgress(props) {
|
|
|
1589
1568
|
// src/components/combobox/primitives.tsx
|
|
1590
1569
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
1591
1570
|
var import_factory3 = require("@ark-ui/react/factory");
|
|
1592
|
-
var
|
|
1593
|
-
var
|
|
1571
|
+
var import_recipes15 = require("styled-system/recipes");
|
|
1572
|
+
var import_css17 = require("styled-system/css");
|
|
1594
1573
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1595
1574
|
function ComboboxRoot(props) {
|
|
1596
1575
|
const { size, ...rootProps } = props;
|
|
1597
|
-
const styles = (0,
|
|
1576
|
+
const styles = (0, import_recipes15.combobox)({ size });
|
|
1598
1577
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1599
1578
|
import_combobox.Combobox.Root,
|
|
1600
1579
|
{
|
|
1601
1580
|
...rootProps,
|
|
1602
|
-
className: (0,
|
|
1581
|
+
className: (0, import_css17.cx)(styles.root, rootProps.className)
|
|
1603
1582
|
}
|
|
1604
1583
|
);
|
|
1605
1584
|
}
|
|
1606
1585
|
function ComboboxLabel(props) {
|
|
1607
|
-
const styles = (0,
|
|
1608
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Label, { ...props, className: (0,
|
|
1586
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Label, { ...props, className: (0, import_css17.cx)(styles.label, props.className) });
|
|
1609
1588
|
}
|
|
1610
1589
|
function ComboboxControl(props) {
|
|
1611
|
-
const styles = (0,
|
|
1590
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1612
1591
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1613
1592
|
import_combobox.Combobox.Control,
|
|
1614
1593
|
{
|
|
1615
1594
|
...props,
|
|
1616
|
-
className: (0,
|
|
1595
|
+
className: (0, import_css17.cx)(styles.control, props.className)
|
|
1617
1596
|
}
|
|
1618
1597
|
);
|
|
1619
1598
|
}
|
|
1620
1599
|
function ComboboxInput(props) {
|
|
1621
|
-
const styles = (0,
|
|
1622
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Input, { ...props, className: (0,
|
|
1600
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Input, { ...props, className: (0, import_css17.cx)(styles.input, props.className) });
|
|
1623
1602
|
}
|
|
1624
1603
|
function ComboboxTrigger(props) {
|
|
1625
|
-
const styles = (0,
|
|
1604
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1626
1605
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1627
1606
|
import_combobox.Combobox.Trigger,
|
|
1628
1607
|
{
|
|
1629
1608
|
...props,
|
|
1630
|
-
className: (0,
|
|
1609
|
+
className: (0, import_css17.cx)(styles.trigger, props.className)
|
|
1631
1610
|
}
|
|
1632
1611
|
);
|
|
1633
1612
|
}
|
|
1634
1613
|
function ComboboxClearTrigger(props) {
|
|
1635
|
-
const styles = (0,
|
|
1614
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1636
1615
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1637
1616
|
import_combobox.Combobox.ClearTrigger,
|
|
1638
1617
|
{
|
|
1639
1618
|
...props,
|
|
1640
|
-
className: (0,
|
|
1619
|
+
className: (0, import_css17.cx)(styles.clearTrigger, props.className)
|
|
1641
1620
|
}
|
|
1642
1621
|
);
|
|
1643
1622
|
}
|
|
1644
1623
|
function ComboboxPositioner(props) {
|
|
1645
|
-
const styles = (0,
|
|
1624
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1646
1625
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1647
1626
|
import_combobox.Combobox.Positioner,
|
|
1648
1627
|
{
|
|
1649
1628
|
...props,
|
|
1650
|
-
className: (0,
|
|
1629
|
+
className: (0, import_css17.cx)(styles.positioner, props.className)
|
|
1651
1630
|
}
|
|
1652
1631
|
);
|
|
1653
1632
|
}
|
|
1654
1633
|
function ComboboxContent(props) {
|
|
1655
1634
|
const { size, ...contentProps } = props;
|
|
1656
|
-
const styles = (0,
|
|
1635
|
+
const styles = (0, import_recipes15.combobox)({ size });
|
|
1657
1636
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1658
1637
|
import_combobox.Combobox.Content,
|
|
1659
1638
|
{
|
|
1660
1639
|
...contentProps,
|
|
1661
|
-
className: (0,
|
|
1640
|
+
className: (0, import_css17.cx)(styles.content, contentProps.className)
|
|
1662
1641
|
}
|
|
1663
1642
|
);
|
|
1664
1643
|
}
|
|
1665
1644
|
function ComboboxItemGroup(props) {
|
|
1666
|
-
const styles = (0,
|
|
1645
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1667
1646
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1668
1647
|
import_combobox.Combobox.ItemGroup,
|
|
1669
1648
|
{
|
|
1670
1649
|
...props,
|
|
1671
|
-
className: (0,
|
|
1650
|
+
className: (0, import_css17.cx)(styles.itemGroup, props.className)
|
|
1672
1651
|
}
|
|
1673
1652
|
);
|
|
1674
1653
|
}
|
|
1675
1654
|
function ComboboxItemGroupLabel(props) {
|
|
1676
|
-
const styles = (0,
|
|
1655
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1677
1656
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1678
1657
|
import_combobox.Combobox.ItemGroupLabel,
|
|
1679
1658
|
{
|
|
1680
1659
|
...props,
|
|
1681
|
-
className: (0,
|
|
1660
|
+
className: (0, import_css17.cx)(styles.itemGroupLabel, props.className)
|
|
1682
1661
|
}
|
|
1683
1662
|
);
|
|
1684
1663
|
}
|
|
1685
1664
|
function ComboboxItem(props) {
|
|
1686
|
-
const styles = (0,
|
|
1687
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Item, { ...props, className: (0,
|
|
1665
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Item, { ...props, className: (0, import_css17.cx)(styles.item, props.className) });
|
|
1688
1667
|
}
|
|
1689
1668
|
function ComboboxItemText(props) {
|
|
1690
|
-
const styles = (0,
|
|
1669
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1691
1670
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1692
1671
|
import_combobox.Combobox.ItemText,
|
|
1693
1672
|
{
|
|
1694
1673
|
...props,
|
|
1695
|
-
className: (0,
|
|
1674
|
+
className: (0, import_css17.cx)(styles.itemText, props.className)
|
|
1696
1675
|
}
|
|
1697
1676
|
);
|
|
1698
1677
|
}
|
|
1699
1678
|
function ComboboxItemIndicator(props) {
|
|
1700
|
-
const styles = (0,
|
|
1679
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1701
1680
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1702
1681
|
import_combobox.Combobox.ItemIndicator,
|
|
1703
1682
|
{
|
|
1704
1683
|
...props,
|
|
1705
|
-
className: (0,
|
|
1684
|
+
className: (0, import_css17.cx)(styles.itemIndicator, props.className)
|
|
1706
1685
|
}
|
|
1707
1686
|
);
|
|
1708
1687
|
}
|
|
1709
1688
|
function ComboboxStartIcon(props) {
|
|
1710
|
-
const styles = (0,
|
|
1689
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1711
1690
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_factory3.ark.span, { ...props, className: styles.startIcon });
|
|
1712
1691
|
}
|
|
1713
1692
|
var ComboItemText = ComboboxItemText;
|
|
@@ -1786,34 +1765,34 @@ var import_react12 = require("react");
|
|
|
1786
1765
|
|
|
1787
1766
|
// src/components/select/primitives.tsx
|
|
1788
1767
|
var import_select = require("@ark-ui/react/select");
|
|
1789
|
-
var
|
|
1790
|
-
var
|
|
1768
|
+
var import_recipes16 = require("styled-system/recipes");
|
|
1769
|
+
var import_css18 = require("styled-system/css");
|
|
1791
1770
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1792
1771
|
function SelectRoot(props) {
|
|
1793
1772
|
const { size, ...rootProps } = props;
|
|
1794
|
-
const styles = (0,
|
|
1773
|
+
const styles = (0, import_recipes16.select)({ size });
|
|
1795
1774
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1796
1775
|
import_select.Select.Root,
|
|
1797
1776
|
{
|
|
1798
1777
|
...rootProps,
|
|
1799
|
-
className: (0,
|
|
1778
|
+
className: (0, import_css18.cx)(styles.root, rootProps.className)
|
|
1800
1779
|
}
|
|
1801
1780
|
);
|
|
1802
1781
|
}
|
|
1803
1782
|
function SelectLabel(props) {
|
|
1804
|
-
const styles = (0,
|
|
1805
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Label, { ...props, className: (0,
|
|
1783
|
+
const styles = (0, import_recipes16.select)();
|
|
1784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Label, { ...props, className: (0, import_css18.cx)(styles.label, props.className) });
|
|
1806
1785
|
}
|
|
1807
1786
|
function SelectControl(props) {
|
|
1808
1787
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Control, { ...props });
|
|
1809
1788
|
}
|
|
1810
1789
|
function SelectTrigger(props) {
|
|
1811
|
-
const styles = (0,
|
|
1790
|
+
const styles = (0, import_recipes16.select)();
|
|
1812
1791
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1813
1792
|
import_select.Select.Trigger,
|
|
1814
1793
|
{
|
|
1815
1794
|
...props,
|
|
1816
|
-
className: (0,
|
|
1795
|
+
className: (0, import_css18.cx)(styles.trigger, props.className)
|
|
1817
1796
|
}
|
|
1818
1797
|
);
|
|
1819
1798
|
}
|
|
@@ -1821,12 +1800,12 @@ function SelectValueText(props) {
|
|
|
1821
1800
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ValueText, { ...props });
|
|
1822
1801
|
}
|
|
1823
1802
|
function SelectIndicator(props) {
|
|
1824
|
-
const styles = (0,
|
|
1803
|
+
const styles = (0, import_recipes16.select)();
|
|
1825
1804
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1826
1805
|
import_select.Select.Indicator,
|
|
1827
1806
|
{
|
|
1828
1807
|
...props,
|
|
1829
|
-
className: (0,
|
|
1808
|
+
className: (0, import_css18.cx)(styles.indicator, props.className)
|
|
1830
1809
|
}
|
|
1831
1810
|
);
|
|
1832
1811
|
}
|
|
@@ -1834,23 +1813,23 @@ function SelectClearTrigger(props) {
|
|
|
1834
1813
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ClearTrigger, { ...props });
|
|
1835
1814
|
}
|
|
1836
1815
|
function SelectPositioner(props) {
|
|
1837
|
-
const styles = (0,
|
|
1816
|
+
const styles = (0, import_recipes16.select)();
|
|
1838
1817
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1839
1818
|
import_select.Select.Positioner,
|
|
1840
1819
|
{
|
|
1841
1820
|
...props,
|
|
1842
|
-
className: (0,
|
|
1821
|
+
className: (0, import_css18.cx)(styles.positioner, props.className)
|
|
1843
1822
|
}
|
|
1844
1823
|
);
|
|
1845
1824
|
}
|
|
1846
1825
|
function SelectContent(props) {
|
|
1847
1826
|
const { size, ...contentProps } = props;
|
|
1848
|
-
const styles = (0,
|
|
1827
|
+
const styles = (0, import_recipes16.select)({ size });
|
|
1849
1828
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1850
1829
|
import_select.Select.Content,
|
|
1851
1830
|
{
|
|
1852
1831
|
...contentProps,
|
|
1853
|
-
className: (0,
|
|
1832
|
+
className: (0, import_css18.cx)(styles.content, contentProps.className)
|
|
1854
1833
|
}
|
|
1855
1834
|
);
|
|
1856
1835
|
}
|
|
@@ -1858,29 +1837,29 @@ function SelectItemGroup(props) {
|
|
|
1858
1837
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ItemGroup, { ...props });
|
|
1859
1838
|
}
|
|
1860
1839
|
function SelectItemGroupLabel(props) {
|
|
1861
|
-
const styles = (0,
|
|
1840
|
+
const styles = (0, import_recipes16.select)();
|
|
1862
1841
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1863
1842
|
import_select.Select.ItemGroupLabel,
|
|
1864
1843
|
{
|
|
1865
1844
|
...props,
|
|
1866
|
-
className: (0,
|
|
1845
|
+
className: (0, import_css18.cx)(styles.itemGroupLabel, props.className)
|
|
1867
1846
|
}
|
|
1868
1847
|
);
|
|
1869
1848
|
}
|
|
1870
1849
|
function SelectItem(props) {
|
|
1871
|
-
const styles = (0,
|
|
1872
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Item, { ...props, className: (0,
|
|
1850
|
+
const styles = (0, import_recipes16.select)();
|
|
1851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Item, { ...props, className: (0, import_css18.cx)(styles.item, props.className) });
|
|
1873
1852
|
}
|
|
1874
1853
|
function SelectItemText(props) {
|
|
1875
1854
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ItemText, { ...props });
|
|
1876
1855
|
}
|
|
1877
1856
|
function SelectItemIndicator(props) {
|
|
1878
|
-
const styles = (0,
|
|
1857
|
+
const styles = (0, import_recipes16.select)();
|
|
1879
1858
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1880
1859
|
import_select.Select.ItemIndicator,
|
|
1881
1860
|
{
|
|
1882
1861
|
...props,
|
|
1883
|
-
className: (0,
|
|
1862
|
+
className: (0, import_css18.cx)(styles.itemIndicator, props.className)
|
|
1884
1863
|
}
|
|
1885
1864
|
);
|
|
1886
1865
|
}
|
|
@@ -1938,64 +1917,64 @@ function For(props) {
|
|
|
1938
1917
|
|
|
1939
1918
|
// src/components/dialog/primitives.tsx
|
|
1940
1919
|
var import_dialog = require("@ark-ui/react/dialog");
|
|
1941
|
-
var
|
|
1942
|
-
var
|
|
1920
|
+
var import_css19 = require("styled-system/css");
|
|
1921
|
+
var import_recipes17 = require("styled-system/recipes");
|
|
1943
1922
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1944
1923
|
function DialogRoot(props) {
|
|
1945
1924
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.Root, { ...props });
|
|
1946
1925
|
}
|
|
1947
1926
|
function DialogTrigger(props) {
|
|
1948
|
-
const styles = (0,
|
|
1927
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1949
1928
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1950
1929
|
import_dialog.Dialog.Trigger,
|
|
1951
1930
|
{
|
|
1952
1931
|
...props,
|
|
1953
|
-
className: (0,
|
|
1932
|
+
className: (0, import_css19.cx)(styles.trigger, props.className)
|
|
1954
1933
|
}
|
|
1955
1934
|
);
|
|
1956
1935
|
}
|
|
1957
1936
|
function DialogBackdrop(props) {
|
|
1958
|
-
const styles = (0,
|
|
1937
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1959
1938
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1960
1939
|
import_dialog.Dialog.Backdrop,
|
|
1961
1940
|
{
|
|
1962
1941
|
...props,
|
|
1963
|
-
className: (0,
|
|
1942
|
+
className: (0, import_css19.cx)(styles.backdrop, props.className)
|
|
1964
1943
|
}
|
|
1965
1944
|
);
|
|
1966
1945
|
}
|
|
1967
1946
|
function DialogPositioner(props) {
|
|
1968
|
-
const styles = (0,
|
|
1947
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1969
1948
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1970
1949
|
import_dialog.Dialog.Positioner,
|
|
1971
1950
|
{
|
|
1972
1951
|
...props,
|
|
1973
|
-
className: (0,
|
|
1952
|
+
className: (0, import_css19.cx)(styles.positioner, props.className)
|
|
1974
1953
|
}
|
|
1975
1954
|
);
|
|
1976
1955
|
}
|
|
1977
1956
|
function DialogContent(props) {
|
|
1978
1957
|
const { size, ...contentProps } = props;
|
|
1979
|
-
const styles = (0,
|
|
1958
|
+
const styles = (0, import_recipes17.dialog)({ size });
|
|
1980
1959
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1981
1960
|
import_dialog.Dialog.Content,
|
|
1982
1961
|
{
|
|
1983
1962
|
...contentProps,
|
|
1984
|
-
className: (0,
|
|
1963
|
+
className: (0, import_css19.cx)(styles.content, contentProps.className)
|
|
1985
1964
|
}
|
|
1986
1965
|
);
|
|
1987
1966
|
}
|
|
1988
1967
|
function DialogHeading(props) {
|
|
1989
|
-
const styles = (0,
|
|
1990
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.Title, { ...props, className: (0,
|
|
1968
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.Title, { ...props, className: (0, import_css19.cx)(styles.title, props.className) });
|
|
1991
1970
|
}
|
|
1992
1971
|
function DialogDescription(props) {
|
|
1993
|
-
const styles = (0,
|
|
1972
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1994
1973
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1995
1974
|
import_dialog.Dialog.Description,
|
|
1996
1975
|
{
|
|
1997
1976
|
...props,
|
|
1998
|
-
className: (0,
|
|
1977
|
+
className: (0, import_css19.cx)(styles.description, props.className)
|
|
1999
1978
|
}
|
|
2000
1979
|
);
|
|
2001
1980
|
}
|
|
@@ -2018,8 +1997,8 @@ var DialogParts = {
|
|
|
2018
1997
|
|
|
2019
1998
|
// src/components/IconButton.tsx
|
|
2020
1999
|
var import_factory4 = require("@ark-ui/react/factory");
|
|
2021
|
-
var
|
|
2022
|
-
var
|
|
2000
|
+
var import_css20 = require("styled-system/css");
|
|
2001
|
+
var import_recipes18 = require("styled-system/recipes");
|
|
2023
2002
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2024
2003
|
function IconButton(props) {
|
|
2025
2004
|
const { ariaLabel, palette, usage, size, ...nativeProps } = props;
|
|
@@ -2028,9 +2007,9 @@ function IconButton(props) {
|
|
|
2028
2007
|
{
|
|
2029
2008
|
...nativeProps,
|
|
2030
2009
|
"aria-label": ariaLabel ?? "Icon Button",
|
|
2031
|
-
className: (0,
|
|
2010
|
+
className: (0, import_css20.cx)(
|
|
2032
2011
|
nativeProps.className,
|
|
2033
|
-
(0,
|
|
2012
|
+
(0, import_recipes18.iconButton)({
|
|
2034
2013
|
palette,
|
|
2035
2014
|
usage,
|
|
2036
2015
|
size
|
|
@@ -2041,18 +2020,18 @@ function IconButton(props) {
|
|
|
2041
2020
|
}
|
|
2042
2021
|
|
|
2043
2022
|
// src/components/dialog/close-icon-trigger.tsx
|
|
2044
|
-
var
|
|
2045
|
-
var
|
|
2023
|
+
var import_recipes19 = require("styled-system/recipes");
|
|
2024
|
+
var import_css21 = require("styled-system/css");
|
|
2046
2025
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2047
2026
|
function DialogCloseIconTrigger(props) {
|
|
2048
|
-
const styles = (0,
|
|
2027
|
+
const styles = (0, import_recipes19.dialog)();
|
|
2049
2028
|
const { icons } = useCerberusContext();
|
|
2050
2029
|
const { close: CloseIcon } = icons;
|
|
2051
2030
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2052
2031
|
DialogCloseTrigger,
|
|
2053
2032
|
{
|
|
2054
2033
|
...props,
|
|
2055
|
-
className: (0,
|
|
2034
|
+
className: (0, import_css21.cx)(styles.closeTrigger, props.className),
|
|
2056
2035
|
asChild: true,
|
|
2057
2036
|
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2058
2037
|
IconButton,
|
|
@@ -2082,9 +2061,9 @@ var import_react13 = require("react");
|
|
|
2082
2061
|
var CTAModalContext = (0, import_react13.createContext)(null);
|
|
2083
2062
|
|
|
2084
2063
|
// src/components/cta-dialog/trigger-item.tsx
|
|
2085
|
-
var
|
|
2064
|
+
var import_css22 = require("styled-system/css");
|
|
2086
2065
|
var import_factory5 = require("@ark-ui/react/factory");
|
|
2087
|
-
var
|
|
2066
|
+
var import_recipes20 = require("styled-system/recipes");
|
|
2088
2067
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2089
2068
|
function TriggerItem(props) {
|
|
2090
2069
|
const { asChild, children, ...buttonProps } = props;
|
|
@@ -2092,12 +2071,12 @@ function TriggerItem(props) {
|
|
|
2092
2071
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2093
2072
|
import_factory5.ark.div,
|
|
2094
2073
|
{
|
|
2095
|
-
className: (0,
|
|
2096
|
-
(0,
|
|
2074
|
+
className: (0, import_css22.cx)(
|
|
2075
|
+
(0, import_recipes20.button)({
|
|
2097
2076
|
shape: "rounded",
|
|
2098
2077
|
usage: "ghost"
|
|
2099
2078
|
}),
|
|
2100
|
-
(0,
|
|
2079
|
+
(0, import_css22.css)({
|
|
2101
2080
|
w: "1/2"
|
|
2102
2081
|
})
|
|
2103
2082
|
),
|
|
@@ -2110,7 +2089,7 @@ function TriggerItem(props) {
|
|
|
2110
2089
|
Button,
|
|
2111
2090
|
{
|
|
2112
2091
|
...buttonProps,
|
|
2113
|
-
className: (0,
|
|
2092
|
+
className: (0, import_css22.css)({
|
|
2114
2093
|
w: "1/2"
|
|
2115
2094
|
}),
|
|
2116
2095
|
shape: "rounded",
|
|
@@ -2220,116 +2199,116 @@ function createCTAModalActions(providedActions) {
|
|
|
2220
2199
|
|
|
2221
2200
|
// src/components/date-picker/primitives.tsx
|
|
2222
2201
|
var import_date_picker = require("@ark-ui/react/date-picker");
|
|
2223
|
-
var
|
|
2224
|
-
var
|
|
2202
|
+
var import_css23 = require("styled-system/css");
|
|
2203
|
+
var import_recipes21 = require("styled-system/recipes");
|
|
2225
2204
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2226
2205
|
function DatePickerLabel(props) {
|
|
2227
|
-
const styles = (0,
|
|
2206
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2228
2207
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2229
2208
|
import_date_picker.DatePicker.Label,
|
|
2230
2209
|
{
|
|
2231
2210
|
...props,
|
|
2232
|
-
className: (0,
|
|
2211
|
+
className: (0, import_css23.cx)(styles.label, props.className)
|
|
2233
2212
|
}
|
|
2234
2213
|
);
|
|
2235
2214
|
}
|
|
2236
2215
|
function DatePickerControl(props) {
|
|
2237
|
-
const styles = (0,
|
|
2216
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2238
2217
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2239
2218
|
import_date_picker.DatePicker.Control,
|
|
2240
2219
|
{
|
|
2241
2220
|
...props,
|
|
2242
|
-
className: (0,
|
|
2221
|
+
className: (0, import_css23.cx)(styles.control, props.className)
|
|
2243
2222
|
}
|
|
2244
2223
|
);
|
|
2245
2224
|
}
|
|
2246
2225
|
function DatePickerInputEl(props) {
|
|
2247
|
-
const styles = (0,
|
|
2226
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2248
2227
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2249
2228
|
import_date_picker.DatePicker.Input,
|
|
2250
2229
|
{
|
|
2251
2230
|
...props,
|
|
2252
|
-
className: (0,
|
|
2231
|
+
className: (0, import_css23.cx)(styles.input, props.className)
|
|
2253
2232
|
}
|
|
2254
2233
|
);
|
|
2255
2234
|
}
|
|
2256
2235
|
function DatePickerTrigger(props) {
|
|
2257
|
-
const styles = (0,
|
|
2236
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2258
2237
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2259
2238
|
import_date_picker.DatePicker.Trigger,
|
|
2260
2239
|
{
|
|
2261
2240
|
...props,
|
|
2262
|
-
className: (0,
|
|
2241
|
+
className: (0, import_css23.cx)(styles.trigger, props.className)
|
|
2263
2242
|
}
|
|
2264
2243
|
);
|
|
2265
2244
|
}
|
|
2266
2245
|
function DatePickerContent(props) {
|
|
2267
|
-
const styles = (0,
|
|
2246
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2268
2247
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2269
2248
|
import_date_picker.DatePicker.Content,
|
|
2270
2249
|
{
|
|
2271
2250
|
...props,
|
|
2272
|
-
className: (0,
|
|
2251
|
+
className: (0, import_css23.cx)(styles.content, props.className)
|
|
2273
2252
|
}
|
|
2274
2253
|
);
|
|
2275
2254
|
}
|
|
2276
2255
|
function DatePickerViewControl(props) {
|
|
2277
|
-
const styles = (0,
|
|
2256
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2278
2257
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2279
2258
|
import_date_picker.DatePicker.Control,
|
|
2280
2259
|
{
|
|
2281
2260
|
...props,
|
|
2282
|
-
className: (0,
|
|
2261
|
+
className: (0, import_css23.cx)(styles.viewControl, props.className)
|
|
2283
2262
|
}
|
|
2284
2263
|
);
|
|
2285
2264
|
}
|
|
2286
2265
|
function DatePickerRangeText(props) {
|
|
2287
|
-
const styles = (0,
|
|
2266
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2288
2267
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2289
2268
|
import_date_picker.DatePicker.RangeText,
|
|
2290
2269
|
{
|
|
2291
2270
|
...props,
|
|
2292
|
-
className: (0,
|
|
2271
|
+
className: (0, import_css23.cx)(styles.rangeText, props.className)
|
|
2293
2272
|
}
|
|
2294
2273
|
);
|
|
2295
2274
|
}
|
|
2296
2275
|
function DatePickerTable(props) {
|
|
2297
|
-
const styles = (0,
|
|
2276
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2298
2277
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2299
2278
|
import_date_picker.DatePicker.Table,
|
|
2300
2279
|
{
|
|
2301
2280
|
...props,
|
|
2302
|
-
className: (0,
|
|
2281
|
+
className: (0, import_css23.cx)(styles.table, props.className)
|
|
2303
2282
|
}
|
|
2304
2283
|
);
|
|
2305
2284
|
}
|
|
2306
2285
|
function DatePickerTableHeader(props) {
|
|
2307
|
-
const styles = (0,
|
|
2286
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2308
2287
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2309
2288
|
import_date_picker.DatePicker.TableHeader,
|
|
2310
2289
|
{
|
|
2311
2290
|
...props,
|
|
2312
|
-
className: (0,
|
|
2291
|
+
className: (0, import_css23.cx)(styles.tableHeader, props.className)
|
|
2313
2292
|
}
|
|
2314
2293
|
);
|
|
2315
2294
|
}
|
|
2316
2295
|
function DatePickerTableCell(props) {
|
|
2317
|
-
const styles = (0,
|
|
2296
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2318
2297
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2319
2298
|
import_date_picker.DatePicker.TableCell,
|
|
2320
2299
|
{
|
|
2321
2300
|
...props,
|
|
2322
|
-
className: (0,
|
|
2301
|
+
className: (0, import_css23.cx)(styles.tableCell, props.className)
|
|
2323
2302
|
}
|
|
2324
2303
|
);
|
|
2325
2304
|
}
|
|
2326
2305
|
function DatePickerTableCellTrigger(props) {
|
|
2327
|
-
const styles = (0,
|
|
2306
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2328
2307
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2329
2308
|
import_date_picker.DatePicker.TableCellTrigger,
|
|
2330
2309
|
{
|
|
2331
2310
|
...props,
|
|
2332
|
-
className: (0,
|
|
2311
|
+
className: (0, import_css23.cx)(styles.tableCellTrigger, props.className)
|
|
2333
2312
|
}
|
|
2334
2313
|
);
|
|
2335
2314
|
}
|
|
@@ -2482,7 +2461,7 @@ function DatePickerContent2(props) {
|
|
|
2482
2461
|
}
|
|
2483
2462
|
|
|
2484
2463
|
// src/components/date-picker/view-control-group.tsx
|
|
2485
|
-
var
|
|
2464
|
+
var import_css24 = require("styled-system/css");
|
|
2486
2465
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2487
2466
|
function DatePickerViewControlGroup(props) {
|
|
2488
2467
|
const { icons } = useCerberusContext();
|
|
@@ -2492,7 +2471,7 @@ function DatePickerViewControlGroup(props) {
|
|
|
2492
2471
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2493
2472
|
Button,
|
|
2494
2473
|
{
|
|
2495
|
-
className: (0,
|
|
2474
|
+
className: (0, import_css24.css)({
|
|
2496
2475
|
h: "2rem",
|
|
2497
2476
|
paddingInline: "md"
|
|
2498
2477
|
}),
|
|
@@ -2619,42 +2598,42 @@ function FeatureFlag(props) {
|
|
|
2619
2598
|
|
|
2620
2599
|
// src/components/fieldset/primitives.tsx
|
|
2621
2600
|
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
2622
|
-
var
|
|
2623
|
-
var
|
|
2601
|
+
var import_css25 = require("styled-system/css");
|
|
2602
|
+
var import_recipes22 = require("styled-system/recipes");
|
|
2624
2603
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2625
2604
|
function FieldsetRoot(props) {
|
|
2626
|
-
const styles = (0,
|
|
2627
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0,
|
|
2605
|
+
const styles = (0, import_recipes22.fieldset)();
|
|
2606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css25.cx)(styles.root, props.className) });
|
|
2628
2607
|
}
|
|
2629
2608
|
function FieldsetLegend(props) {
|
|
2630
2609
|
const { usage, ...legendProps } = props;
|
|
2631
|
-
const styles = (0,
|
|
2610
|
+
const styles = (0, import_recipes22.fieldset)({ usage });
|
|
2632
2611
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2633
2612
|
import_fieldset.Fieldset.Legend,
|
|
2634
2613
|
{
|
|
2635
2614
|
...legendProps,
|
|
2636
|
-
className: (0,
|
|
2615
|
+
className: (0, import_css25.cx)(styles.legend, legendProps.className)
|
|
2637
2616
|
}
|
|
2638
2617
|
);
|
|
2639
2618
|
}
|
|
2640
2619
|
function FieldsetHelperText(props) {
|
|
2641
2620
|
const { usage, ...helperTextProps } = props;
|
|
2642
|
-
const styles = (0,
|
|
2621
|
+
const styles = (0, import_recipes22.fieldset)({ usage });
|
|
2643
2622
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2644
2623
|
import_fieldset.Fieldset.HelperText,
|
|
2645
2624
|
{
|
|
2646
2625
|
...helperTextProps,
|
|
2647
|
-
className: (0,
|
|
2626
|
+
className: (0, import_css25.cx)(styles.helperText, helperTextProps.className)
|
|
2648
2627
|
}
|
|
2649
2628
|
);
|
|
2650
2629
|
}
|
|
2651
2630
|
function FieldsetErrorText(props) {
|
|
2652
|
-
const styles = (0,
|
|
2631
|
+
const styles = (0, import_recipes22.fieldset)();
|
|
2653
2632
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2654
2633
|
import_fieldset.Fieldset.ErrorText,
|
|
2655
2634
|
{
|
|
2656
2635
|
...props,
|
|
2657
|
-
className: (0,
|
|
2636
|
+
className: (0, import_css25.cx)(styles.errorText, props.className)
|
|
2658
2637
|
}
|
|
2659
2638
|
);
|
|
2660
2639
|
}
|
|
@@ -2685,18 +2664,18 @@ function Fieldset2(props) {
|
|
|
2685
2664
|
|
|
2686
2665
|
// src/components/FileStatus.tsx
|
|
2687
2666
|
var import_react18 = require("react");
|
|
2688
|
-
var
|
|
2689
|
-
var
|
|
2690
|
-
var
|
|
2667
|
+
var import_recipes24 = require("styled-system/recipes");
|
|
2668
|
+
var import_css27 = require("styled-system/css");
|
|
2669
|
+
var import_patterns3 = require("styled-system/patterns");
|
|
2691
2670
|
|
|
2692
2671
|
// src/components/ProgressBar.tsx
|
|
2693
2672
|
var import_factory6 = require("@ark-ui/react/factory");
|
|
2694
|
-
var
|
|
2695
|
-
var
|
|
2673
|
+
var import_css26 = require("styled-system/css");
|
|
2674
|
+
var import_recipes23 = require("styled-system/recipes");
|
|
2696
2675
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2697
2676
|
function ProgressBar(props) {
|
|
2698
2677
|
const { indeterminate, size, usage, now, label: label4, ...nativeProps } = props;
|
|
2699
|
-
const styles = (0,
|
|
2678
|
+
const styles = (0, import_recipes23.progressBar)({ size, usage });
|
|
2700
2679
|
const nowClamped = Math.min(100, Math.max(0, now || 0));
|
|
2701
2680
|
const width = {
|
|
2702
2681
|
width: indeterminate ? "50%" : `${nowClamped}%`
|
|
@@ -2709,7 +2688,7 @@ function ProgressBar(props) {
|
|
|
2709
2688
|
"aria-valuemin": 0,
|
|
2710
2689
|
"aria-valuemax": 100,
|
|
2711
2690
|
"aria-valuenow": indeterminate ? 0 : nowClamped,
|
|
2712
|
-
className: (0,
|
|
2691
|
+
className: (0, import_css26.cx)(nativeProps.className, styles.root),
|
|
2713
2692
|
role: "progressbar",
|
|
2714
2693
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2715
2694
|
import_factory6.ark.div,
|
|
@@ -2741,15 +2720,15 @@ function FileStatus(props) {
|
|
|
2741
2720
|
const styles = (0, import_react18.useMemo)(() => {
|
|
2742
2721
|
switch (status) {
|
|
2743
2722
|
case "todo" /* TODO */:
|
|
2744
|
-
return (0,
|
|
2723
|
+
return (0, import_recipes24.fileStatus)({ status: "todo" });
|
|
2745
2724
|
case "processing" /* PROCESSING */:
|
|
2746
|
-
return (0,
|
|
2725
|
+
return (0, import_recipes24.fileStatus)({ status: "processing" });
|
|
2747
2726
|
case "done" /* DONE */:
|
|
2748
|
-
return (0,
|
|
2727
|
+
return (0, import_recipes24.fileStatus)({ status: "done" });
|
|
2749
2728
|
case "error" /* ERROR */:
|
|
2750
|
-
return (0,
|
|
2729
|
+
return (0, import_recipes24.fileStatus)({ status: "error" });
|
|
2751
2730
|
default:
|
|
2752
|
-
return (0,
|
|
2731
|
+
return (0, import_recipes24.fileStatus)();
|
|
2753
2732
|
}
|
|
2754
2733
|
}, [status]);
|
|
2755
2734
|
const handleClick = (0, import_react18.useCallback)(
|
|
@@ -2765,7 +2744,7 @@ function FileStatus(props) {
|
|
|
2765
2744
|
"div",
|
|
2766
2745
|
{
|
|
2767
2746
|
...nativeProps,
|
|
2768
|
-
className: (0,
|
|
2747
|
+
className: (0, import_css27.cx)(nativeProps.className, styles.root, (0, import_patterns3.hstack)()),
|
|
2769
2748
|
children: [
|
|
2770
2749
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2771
2750
|
Avatar2,
|
|
@@ -2777,7 +2756,7 @@ function FileStatus(props) {
|
|
|
2777
2756
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2778
2757
|
"div",
|
|
2779
2758
|
{
|
|
2780
|
-
className: (0,
|
|
2759
|
+
className: (0, import_patterns3.vstack)({
|
|
2781
2760
|
alignItems: "flex-start",
|
|
2782
2761
|
gap: "0.12rem",
|
|
2783
2762
|
w: "full"
|
|
@@ -2786,7 +2765,7 @@ function FileStatus(props) {
|
|
|
2786
2765
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2787
2766
|
"small",
|
|
2788
2767
|
{
|
|
2789
|
-
className: (0,
|
|
2768
|
+
className: (0, import_css27.css)({
|
|
2790
2769
|
color: "page.text.initial",
|
|
2791
2770
|
textStyle: "label-sm"
|
|
2792
2771
|
}),
|
|
@@ -2805,7 +2784,7 @@ function FileStatus(props) {
|
|
|
2805
2784
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field2, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2806
2785
|
FieldHelperText,
|
|
2807
2786
|
{
|
|
2808
|
-
className: (0,
|
|
2787
|
+
className: (0, import_css27.css)({
|
|
2809
2788
|
color: "page.text.100"
|
|
2810
2789
|
}),
|
|
2811
2790
|
id: `help:${file}`,
|
|
@@ -2920,21 +2899,21 @@ function getModalIconPalette(status) {
|
|
|
2920
2899
|
}
|
|
2921
2900
|
|
|
2922
2901
|
// src/components/FileUploader.tsx
|
|
2923
|
-
var
|
|
2924
|
-
var
|
|
2925
|
-
var
|
|
2902
|
+
var import_css28 = require("styled-system/css");
|
|
2903
|
+
var import_patterns4 = require("styled-system/patterns");
|
|
2904
|
+
var import_recipes25 = require("styled-system/recipes");
|
|
2926
2905
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2927
2906
|
function FileUploader(props) {
|
|
2928
2907
|
var _a;
|
|
2929
2908
|
const { icons } = useCerberusContext();
|
|
2930
|
-
const styles = (0,
|
|
2909
|
+
const styles = (0, import_recipes25.fileUploader)();
|
|
2931
2910
|
const { waitingFileUploader: Icon } = icons;
|
|
2932
2911
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2933
2912
|
"div",
|
|
2934
2913
|
{
|
|
2935
2914
|
...props.disabled ? { "aria-disabled": true } : {},
|
|
2936
|
-
className: (0,
|
|
2937
|
-
(0,
|
|
2915
|
+
className: (0, import_css28.cx)(
|
|
2916
|
+
(0, import_patterns4.vstack)({
|
|
2938
2917
|
justify: "center"
|
|
2939
2918
|
}),
|
|
2940
2919
|
styles.container
|
|
@@ -2944,8 +2923,8 @@ function FileUploader(props) {
|
|
|
2944
2923
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2945
2924
|
"label",
|
|
2946
2925
|
{
|
|
2947
|
-
className: (0,
|
|
2948
|
-
(0,
|
|
2926
|
+
className: (0, import_css28.cx)(
|
|
2927
|
+
(0, import_patterns4.vstack)({
|
|
2949
2928
|
justify: "center"
|
|
2950
2929
|
}),
|
|
2951
2930
|
styles.label
|
|
@@ -2961,7 +2940,7 @@ function FileUploader(props) {
|
|
|
2961
2940
|
"input",
|
|
2962
2941
|
{
|
|
2963
2942
|
...props,
|
|
2964
|
-
className: (0,
|
|
2943
|
+
className: (0, import_css28.cx)(props.className, styles.input),
|
|
2965
2944
|
type: "file"
|
|
2966
2945
|
}
|
|
2967
2946
|
)
|
|
@@ -2975,10 +2954,10 @@ function FileUploader(props) {
|
|
|
2975
2954
|
|
|
2976
2955
|
// src/components/Menu.tsx
|
|
2977
2956
|
var import_react19 = require("@ark-ui/react");
|
|
2978
|
-
var
|
|
2979
|
-
var
|
|
2957
|
+
var import_recipes26 = require("styled-system/recipes");
|
|
2958
|
+
var import_css29 = require("styled-system/css");
|
|
2980
2959
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2981
|
-
var menuStyles = (0,
|
|
2960
|
+
var menuStyles = (0, import_recipes26.menu)();
|
|
2982
2961
|
function Menu(props) {
|
|
2983
2962
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Root, { ...props });
|
|
2984
2963
|
}
|
|
@@ -2990,12 +2969,12 @@ function MenuContent(props) {
|
|
|
2990
2969
|
import_react19.Menu.Content,
|
|
2991
2970
|
{
|
|
2992
2971
|
...props,
|
|
2993
|
-
className: (0,
|
|
2972
|
+
className: (0, import_css29.cx)(props.className, menuStyles.content)
|
|
2994
2973
|
}
|
|
2995
2974
|
) });
|
|
2996
2975
|
}
|
|
2997
2976
|
function MenuItem(props) {
|
|
2998
|
-
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Item, { ...props, className: (0,
|
|
2977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Item, { ...props, className: (0, import_css29.cx)(props.className, menuStyles.item) });
|
|
2999
2978
|
}
|
|
3000
2979
|
function MenuItemGroup(props) {
|
|
3001
2980
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.ItemGroup, { ...props });
|
|
@@ -3005,7 +2984,7 @@ function MenuGroupLabel(props) {
|
|
|
3005
2984
|
import_react19.Menu.ItemGroupLabel,
|
|
3006
2985
|
{
|
|
3007
2986
|
...props,
|
|
3008
|
-
className: (0,
|
|
2987
|
+
className: (0, import_css29.cx)(props.className, menuStyles.itemGroupLabel)
|
|
3009
2988
|
}
|
|
3010
2989
|
);
|
|
3011
2990
|
}
|
|
@@ -3014,54 +2993,54 @@ function MenuSeparator(props) {
|
|
|
3014
2993
|
import_react19.Menu.Separator,
|
|
3015
2994
|
{
|
|
3016
2995
|
...props,
|
|
3017
|
-
className: (0,
|
|
2996
|
+
className: (0, import_css29.cx)(props.className, menuStyles.separator)
|
|
3018
2997
|
}
|
|
3019
2998
|
);
|
|
3020
2999
|
}
|
|
3021
3000
|
|
|
3022
3001
|
// src/components/notifications/primitives.tsx
|
|
3023
3002
|
var import_toast = require("@ark-ui/react/toast");
|
|
3024
|
-
var
|
|
3025
|
-
var
|
|
3003
|
+
var import_css30 = require("styled-system/css");
|
|
3004
|
+
var import_recipes27 = require("styled-system/recipes");
|
|
3026
3005
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3027
3006
|
function NotificationProvider(props) {
|
|
3028
3007
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toaster, { ...props });
|
|
3029
3008
|
}
|
|
3030
3009
|
function NotificationRoot(props) {
|
|
3031
|
-
const styles = (0,
|
|
3032
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Root, { ...props, className: (0,
|
|
3010
|
+
const styles = (0, import_recipes27.toast)();
|
|
3011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Root, { ...props, className: (0, import_css30.cx)(styles.root, props.className) });
|
|
3033
3012
|
}
|
|
3034
3013
|
function NotificationHeading(props) {
|
|
3035
|
-
const styles = (0,
|
|
3036
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Title, { ...props, className: (0,
|
|
3014
|
+
const styles = (0, import_recipes27.toast)();
|
|
3015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Title, { ...props, className: (0, import_css30.cx)(styles.title, props.className) });
|
|
3037
3016
|
}
|
|
3038
3017
|
function NotificationDescription(props) {
|
|
3039
|
-
const styles = (0,
|
|
3018
|
+
const styles = (0, import_recipes27.toast)();
|
|
3040
3019
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3041
3020
|
import_toast.Toast.Description,
|
|
3042
3021
|
{
|
|
3043
3022
|
...props,
|
|
3044
|
-
className: (0,
|
|
3023
|
+
className: (0, import_css30.cx)(styles.description, props.className)
|
|
3045
3024
|
}
|
|
3046
3025
|
);
|
|
3047
3026
|
}
|
|
3048
3027
|
function NotificationCloseTrigger(props) {
|
|
3049
|
-
const styles = (0,
|
|
3028
|
+
const styles = (0, import_recipes27.toast)();
|
|
3050
3029
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3051
3030
|
import_toast.Toast.CloseTrigger,
|
|
3052
3031
|
{
|
|
3053
3032
|
...props,
|
|
3054
|
-
className: (0,
|
|
3033
|
+
className: (0, import_css30.cx)(styles.closeTrigger, props.className)
|
|
3055
3034
|
}
|
|
3056
3035
|
);
|
|
3057
3036
|
}
|
|
3058
3037
|
function NotificationActionTrigger(props) {
|
|
3059
|
-
const styles = (0,
|
|
3038
|
+
const styles = (0, import_recipes27.toast)();
|
|
3060
3039
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3061
3040
|
import_toast.Toast.ActionTrigger,
|
|
3062
3041
|
{
|
|
3063
3042
|
...props,
|
|
3064
|
-
className: (0,
|
|
3043
|
+
className: (0, import_css30.cx)(styles.actionTrigger, props.className)
|
|
3065
3044
|
}
|
|
3066
3045
|
);
|
|
3067
3046
|
}
|
|
@@ -3080,13 +3059,13 @@ var import_toast2 = require("@ark-ui/react/toast");
|
|
|
3080
3059
|
var import_jsx5 = require("styled-system/jsx");
|
|
3081
3060
|
|
|
3082
3061
|
// src/components/notifications/match-icon.tsx
|
|
3083
|
-
var
|
|
3062
|
+
var import_recipes28 = require("styled-system/recipes");
|
|
3084
3063
|
var import_factory7 = require("@ark-ui/react/factory");
|
|
3085
3064
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3086
3065
|
function MatchNotificationIcon(props) {
|
|
3087
3066
|
const { icons } = useCerberusContext();
|
|
3088
3067
|
const type = props.type || "info";
|
|
3089
|
-
const styles = (0,
|
|
3068
|
+
const styles = (0, import_recipes28.toast)();
|
|
3090
3069
|
const key = `${type}Notification`;
|
|
3091
3070
|
const Icon = icons[key] || ToastLoadingIcon;
|
|
3092
3071
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_factory7.ark.div, { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, {}) });
|
|
@@ -3151,69 +3130,69 @@ function useNotificationCenter() {
|
|
|
3151
3130
|
|
|
3152
3131
|
// src/components/radio/primitives.tsx
|
|
3153
3132
|
var import_radio_group = require("@ark-ui/react/radio-group");
|
|
3154
|
-
var
|
|
3155
|
-
var
|
|
3133
|
+
var import_css31 = require("styled-system/css");
|
|
3134
|
+
var import_recipes29 = require("styled-system/recipes");
|
|
3156
3135
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3157
3136
|
function RadioGroupRoot(props) {
|
|
3158
3137
|
const { size, orientation, ...rootProps } = props;
|
|
3159
|
-
const styles = (0,
|
|
3138
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3160
3139
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3161
3140
|
import_radio_group.RadioGroup.Root,
|
|
3162
3141
|
{
|
|
3163
3142
|
...rootProps,
|
|
3164
|
-
className: (0,
|
|
3143
|
+
className: (0, import_css31.cx)(styles.root, rootProps.className)
|
|
3165
3144
|
}
|
|
3166
3145
|
);
|
|
3167
3146
|
}
|
|
3168
3147
|
function RadioGroupLabel(props) {
|
|
3169
|
-
const styles = (0,
|
|
3148
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3170
3149
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3171
3150
|
import_radio_group.RadioGroup.Label,
|
|
3172
3151
|
{
|
|
3173
3152
|
...props,
|
|
3174
|
-
className: (0,
|
|
3153
|
+
className: (0, import_css31.cx)(styles.label, props.className)
|
|
3175
3154
|
}
|
|
3176
3155
|
);
|
|
3177
3156
|
}
|
|
3178
3157
|
function RadioGroupIndicator(props) {
|
|
3179
|
-
const styles = (0,
|
|
3158
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3180
3159
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3181
3160
|
import_radio_group.RadioGroup.Indicator,
|
|
3182
3161
|
{
|
|
3183
3162
|
...props,
|
|
3184
|
-
className: (0,
|
|
3163
|
+
className: (0, import_css31.cx)(styles.indicator, props.className)
|
|
3185
3164
|
}
|
|
3186
3165
|
);
|
|
3187
3166
|
}
|
|
3188
3167
|
function RadioGroupItem(props) {
|
|
3189
|
-
const styles = (0,
|
|
3168
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3190
3169
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3191
3170
|
import_radio_group.RadioGroup.Item,
|
|
3192
3171
|
{
|
|
3193
3172
|
...props,
|
|
3194
|
-
className: (0,
|
|
3173
|
+
className: (0, import_css31.cx)(styles.item, props.className)
|
|
3195
3174
|
}
|
|
3196
3175
|
);
|
|
3197
3176
|
}
|
|
3198
3177
|
function RadioGroupItemText(props) {
|
|
3199
3178
|
const { size, orientation, ...itemTextProps } = props;
|
|
3200
|
-
const styles = (0,
|
|
3179
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3201
3180
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3202
3181
|
import_radio_group.RadioGroup.ItemText,
|
|
3203
3182
|
{
|
|
3204
3183
|
...itemTextProps,
|
|
3205
|
-
className: (0,
|
|
3184
|
+
className: (0, import_css31.cx)(styles.itemText, itemTextProps.className)
|
|
3206
3185
|
}
|
|
3207
3186
|
);
|
|
3208
3187
|
}
|
|
3209
3188
|
function RadioGroupItemControl(props) {
|
|
3210
3189
|
const { size, orientation, ...itemControlProps } = props;
|
|
3211
|
-
const styles = (0,
|
|
3190
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3212
3191
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3213
3192
|
import_radio_group.RadioGroup.ItemControl,
|
|
3214
3193
|
{
|
|
3215
3194
|
...itemControlProps,
|
|
3216
|
-
className: (0,
|
|
3195
|
+
className: (0, import_css31.cx)(styles.itemControl, itemControlProps.className)
|
|
3217
3196
|
}
|
|
3218
3197
|
);
|
|
3219
3198
|
}
|
|
@@ -3246,37 +3225,37 @@ function Radio(props) {
|
|
|
3246
3225
|
|
|
3247
3226
|
// src/components/rating/primitives.tsx
|
|
3248
3227
|
var import_rating_group = require("@ark-ui/react/rating-group");
|
|
3249
|
-
var
|
|
3250
|
-
var
|
|
3228
|
+
var import_css32 = require("styled-system/css");
|
|
3229
|
+
var import_recipes30 = require("styled-system/recipes");
|
|
3251
3230
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3252
3231
|
function RatingRoot(props) {
|
|
3253
3232
|
const { orientation, size, ...rootProps } = props;
|
|
3254
|
-
const styles = (0,
|
|
3233
|
+
const styles = (0, import_recipes30.ratingGroup)({ orientation, size });
|
|
3255
3234
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3256
3235
|
import_rating_group.RatingGroup.Root,
|
|
3257
3236
|
{
|
|
3258
3237
|
...rootProps,
|
|
3259
|
-
className: (0,
|
|
3238
|
+
className: (0, import_css32.cx)(styles.root, rootProps.className)
|
|
3260
3239
|
}
|
|
3261
3240
|
);
|
|
3262
3241
|
}
|
|
3263
3242
|
function RatingLabel(props) {
|
|
3264
|
-
const styles = (0,
|
|
3243
|
+
const styles = (0, import_recipes30.ratingGroup)();
|
|
3265
3244
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3266
3245
|
import_rating_group.RatingGroup.Label,
|
|
3267
3246
|
{
|
|
3268
3247
|
...props,
|
|
3269
|
-
className: (0,
|
|
3248
|
+
className: (0, import_css32.cx)(styles.label, props.className)
|
|
3270
3249
|
}
|
|
3271
3250
|
);
|
|
3272
3251
|
}
|
|
3273
3252
|
function RatingControl(props) {
|
|
3274
|
-
const styles = (0,
|
|
3253
|
+
const styles = (0, import_recipes30.ratingGroup)();
|
|
3275
3254
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3276
3255
|
import_rating_group.RatingGroup.Control,
|
|
3277
3256
|
{
|
|
3278
3257
|
...props,
|
|
3279
|
-
className: (0,
|
|
3258
|
+
className: (0, import_css32.cx)(styles.control, props.className)
|
|
3280
3259
|
}
|
|
3281
3260
|
);
|
|
3282
3261
|
}
|
|
@@ -3285,12 +3264,12 @@ function RatingContext(props) {
|
|
|
3285
3264
|
}
|
|
3286
3265
|
function RatingItem(props) {
|
|
3287
3266
|
const { palette, ...itemProps } = props;
|
|
3288
|
-
const styles = (0,
|
|
3267
|
+
const styles = (0, import_recipes30.ratingGroup)({ palette });
|
|
3289
3268
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3290
3269
|
import_rating_group.RatingGroup.Item,
|
|
3291
3270
|
{
|
|
3292
3271
|
...itemProps,
|
|
3293
|
-
className: (0,
|
|
3272
|
+
className: (0, import_css32.cx)(styles.item, itemProps.className)
|
|
3294
3273
|
}
|
|
3295
3274
|
);
|
|
3296
3275
|
}
|
|
@@ -3393,37 +3372,37 @@ function OptionGroupLabel(props) {
|
|
|
3393
3372
|
|
|
3394
3373
|
// src/components/switch/primitives.tsx
|
|
3395
3374
|
var import_switch = require("@ark-ui/react/switch");
|
|
3396
|
-
var
|
|
3397
|
-
var
|
|
3375
|
+
var import_css33 = require("styled-system/css");
|
|
3376
|
+
var import_recipes31 = require("styled-system/recipes");
|
|
3398
3377
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3399
3378
|
function SwitchRoot(props) {
|
|
3400
3379
|
const { size, ...rootProps } = props;
|
|
3401
|
-
const styles = (0,
|
|
3380
|
+
const styles = (0, import_recipes31.switchRecipe)({ size });
|
|
3402
3381
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3403
3382
|
import_switch.Switch.Root,
|
|
3404
3383
|
{
|
|
3405
3384
|
...rootProps,
|
|
3406
|
-
className: (0,
|
|
3385
|
+
className: (0, import_css33.cx)(styles.root, rootProps.className)
|
|
3407
3386
|
}
|
|
3408
3387
|
);
|
|
3409
3388
|
}
|
|
3410
3389
|
function SwitchLabel(props) {
|
|
3411
|
-
const styles = (0,
|
|
3412
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Label, { ...props, className: (0,
|
|
3390
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Label, { ...props, className: (0, import_css33.cx)(styles.label, props.className) });
|
|
3413
3392
|
}
|
|
3414
3393
|
function SwitchControl(props) {
|
|
3415
|
-
const styles = (0,
|
|
3394
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3416
3395
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3417
3396
|
import_switch.Switch.Control,
|
|
3418
3397
|
{
|
|
3419
3398
|
...props,
|
|
3420
|
-
className: (0,
|
|
3399
|
+
className: (0, import_css33.cx)(styles.control, props.className)
|
|
3421
3400
|
}
|
|
3422
3401
|
);
|
|
3423
3402
|
}
|
|
3424
3403
|
function SwitchThumb(props) {
|
|
3425
|
-
const styles = (0,
|
|
3426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Thumb, { ...props, className: (0,
|
|
3404
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Thumb, { ...props, className: (0, import_css33.cx)(styles.thumb, props.className) });
|
|
3427
3406
|
}
|
|
3428
3407
|
function SwitchHiddenInput(props) {
|
|
3429
3408
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.HiddenInput, { ...props });
|
|
@@ -3459,12 +3438,12 @@ function Switch2(props) {
|
|
|
3459
3438
|
|
|
3460
3439
|
// src/components/table/primitives.tsx
|
|
3461
3440
|
var import_factory8 = require("@ark-ui/react/factory");
|
|
3462
|
-
var
|
|
3463
|
-
var
|
|
3441
|
+
var import_css34 = require("styled-system/css");
|
|
3442
|
+
var import_recipes32 = require("styled-system/recipes");
|
|
3464
3443
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3465
3444
|
function TableRoot(props) {
|
|
3466
3445
|
const { decoration, size, ...rootProps } = props;
|
|
3467
|
-
const styles = (0,
|
|
3446
|
+
const styles = (0, import_recipes32.table)({
|
|
3468
3447
|
decoration,
|
|
3469
3448
|
size
|
|
3470
3449
|
});
|
|
@@ -3472,115 +3451,115 @@ function TableRoot(props) {
|
|
|
3472
3451
|
import_factory8.ark.div,
|
|
3473
3452
|
{
|
|
3474
3453
|
...rootProps,
|
|
3475
|
-
className: (0,
|
|
3454
|
+
className: (0, import_css34.cx)(styles.root, rootProps.className),
|
|
3476
3455
|
"data-scope": "table",
|
|
3477
3456
|
"data-part": "root"
|
|
3478
3457
|
}
|
|
3479
3458
|
);
|
|
3480
3459
|
}
|
|
3481
3460
|
function TableEl(props) {
|
|
3482
|
-
const styles = (0,
|
|
3461
|
+
const styles = (0, import_recipes32.table)();
|
|
3483
3462
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3484
3463
|
import_factory8.ark.table,
|
|
3485
3464
|
{
|
|
3486
3465
|
...props,
|
|
3487
|
-
className: (0,
|
|
3466
|
+
className: (0, import_css34.cx)(styles.table, props.className),
|
|
3488
3467
|
"data-scope": "table",
|
|
3489
3468
|
"data-part": "table"
|
|
3490
3469
|
}
|
|
3491
3470
|
);
|
|
3492
3471
|
}
|
|
3493
3472
|
function Caption(props) {
|
|
3494
|
-
const styles = (0,
|
|
3473
|
+
const styles = (0, import_recipes32.table)();
|
|
3495
3474
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3496
3475
|
import_factory8.ark.caption,
|
|
3497
3476
|
{
|
|
3498
3477
|
...props,
|
|
3499
|
-
className: (0,
|
|
3478
|
+
className: (0, import_css34.cx)(styles.caption, props.className),
|
|
3500
3479
|
"data-scope": "table",
|
|
3501
3480
|
"data-part": "caption"
|
|
3502
3481
|
}
|
|
3503
3482
|
);
|
|
3504
3483
|
}
|
|
3505
3484
|
function Thead(props) {
|
|
3506
|
-
const styles = (0,
|
|
3485
|
+
const styles = (0, import_recipes32.table)();
|
|
3507
3486
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3508
3487
|
import_factory8.ark.thead,
|
|
3509
3488
|
{
|
|
3510
3489
|
...props,
|
|
3511
|
-
className: (0,
|
|
3490
|
+
className: (0, import_css34.cx)(styles.thead, props.className),
|
|
3512
3491
|
"data-scope": "table",
|
|
3513
3492
|
"data-part": "header"
|
|
3514
3493
|
}
|
|
3515
3494
|
);
|
|
3516
3495
|
}
|
|
3517
3496
|
function Th(props) {
|
|
3518
|
-
const styles = (0,
|
|
3497
|
+
const styles = (0, import_recipes32.table)();
|
|
3519
3498
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3520
3499
|
import_factory8.ark.th,
|
|
3521
3500
|
{
|
|
3522
3501
|
...props,
|
|
3523
|
-
className: (0,
|
|
3502
|
+
className: (0, import_css34.cx)(styles.th, props.className),
|
|
3524
3503
|
"data-scope": "table",
|
|
3525
3504
|
"data-part": "header-col"
|
|
3526
3505
|
}
|
|
3527
3506
|
);
|
|
3528
3507
|
}
|
|
3529
3508
|
function Tbody(props) {
|
|
3530
|
-
const styles = (0,
|
|
3509
|
+
const styles = (0, import_recipes32.table)();
|
|
3531
3510
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3532
3511
|
import_factory8.ark.tbody,
|
|
3533
3512
|
{
|
|
3534
3513
|
...props,
|
|
3535
|
-
className: (0,
|
|
3514
|
+
className: (0, import_css34.cx)(styles.tbody, props.className),
|
|
3536
3515
|
"data-scope": "table",
|
|
3537
3516
|
"data-part": "body"
|
|
3538
3517
|
}
|
|
3539
3518
|
);
|
|
3540
3519
|
}
|
|
3541
3520
|
function Tr(props) {
|
|
3542
|
-
const styles = (0,
|
|
3521
|
+
const styles = (0, import_recipes32.table)();
|
|
3543
3522
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3544
3523
|
import_factory8.ark.tr,
|
|
3545
3524
|
{
|
|
3546
3525
|
...props,
|
|
3547
|
-
className: (0,
|
|
3526
|
+
className: (0, import_css34.cx)(styles.tr, props.className),
|
|
3548
3527
|
"data-scope": "table",
|
|
3549
3528
|
"data-part": "row"
|
|
3550
3529
|
}
|
|
3551
3530
|
);
|
|
3552
3531
|
}
|
|
3553
3532
|
function Td(props) {
|
|
3554
|
-
const styles = (0,
|
|
3533
|
+
const styles = (0, import_recipes32.table)();
|
|
3555
3534
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3556
3535
|
import_factory8.ark.td,
|
|
3557
3536
|
{
|
|
3558
3537
|
...props,
|
|
3559
|
-
className: (0,
|
|
3538
|
+
className: (0, import_css34.cx)(styles.td, props.className),
|
|
3560
3539
|
"data-scope": "table",
|
|
3561
3540
|
"data-part": "cell"
|
|
3562
3541
|
}
|
|
3563
3542
|
);
|
|
3564
3543
|
}
|
|
3565
3544
|
function Tfoot(props) {
|
|
3566
|
-
const styles = (0,
|
|
3545
|
+
const styles = (0, import_recipes32.table)();
|
|
3567
3546
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3568
3547
|
import_factory8.ark.tfoot,
|
|
3569
3548
|
{
|
|
3570
3549
|
...props,
|
|
3571
|
-
className: (0,
|
|
3550
|
+
className: (0, import_css34.cx)(styles.tfoot, props.className),
|
|
3572
3551
|
"data-scope": "table",
|
|
3573
3552
|
"data-part": "footer"
|
|
3574
3553
|
}
|
|
3575
3554
|
);
|
|
3576
3555
|
}
|
|
3577
3556
|
function TableTrigger(props) {
|
|
3578
|
-
const styles = (0,
|
|
3557
|
+
const styles = (0, import_recipes32.table)();
|
|
3579
3558
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3580
3559
|
import_factory8.ark.button,
|
|
3581
3560
|
{
|
|
3582
3561
|
...props,
|
|
3583
|
-
className: (0,
|
|
3562
|
+
className: (0, import_css34.cx)(styles.trigger, props.className),
|
|
3584
3563
|
"data-scope": "table",
|
|
3585
3564
|
"data-part": "trigger"
|
|
3586
3565
|
}
|
|
@@ -3624,39 +3603,39 @@ var Table = {
|
|
|
3624
3603
|
|
|
3625
3604
|
// src/components/tabs/primitives.tsx
|
|
3626
3605
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3606
|
+
var import_css35 = require("styled-system/css");
|
|
3607
|
+
var import_recipes33 = require("styled-system/recipes");
|
|
3629
3608
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3630
3609
|
function TabsRoot(props) {
|
|
3631
3610
|
const { palette, ...rootProps } = props;
|
|
3632
|
-
const styles = (0,
|
|
3611
|
+
const styles = (0, import_recipes33.tabs)({ palette });
|
|
3633
3612
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3634
3613
|
import_tabs.Tabs.Root,
|
|
3635
3614
|
{
|
|
3636
3615
|
...rootProps,
|
|
3637
|
-
className: (0,
|
|
3616
|
+
className: (0, import_css35.cx)(styles.root, rootProps.className)
|
|
3638
3617
|
}
|
|
3639
3618
|
);
|
|
3640
3619
|
}
|
|
3641
3620
|
function TabsList(props) {
|
|
3642
|
-
const styles = (0,
|
|
3643
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.List, { ...props, className: (0,
|
|
3621
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.List, { ...props, className: (0, import_css35.cx)(styles.list, props.className) });
|
|
3644
3623
|
}
|
|
3645
3624
|
function TabsTrigger(props) {
|
|
3646
|
-
const styles = (0,
|
|
3647
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Trigger, { ...props, className: (0,
|
|
3625
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Trigger, { ...props, className: (0, import_css35.cx)(styles.trigger, props.className) });
|
|
3648
3627
|
}
|
|
3649
3628
|
function TabsContent(props) {
|
|
3650
|
-
const styles = (0,
|
|
3651
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Content, { ...props, className: (0,
|
|
3629
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Content, { ...props, className: (0, import_css35.cx)(styles.content, props.className) });
|
|
3652
3631
|
}
|
|
3653
3632
|
function TabsIndicator(props) {
|
|
3654
|
-
const styles = (0,
|
|
3633
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3655
3634
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3656
3635
|
import_tabs.Tabs.Indicator,
|
|
3657
3636
|
{
|
|
3658
3637
|
...props,
|
|
3659
|
-
className: (0,
|
|
3638
|
+
className: (0, import_css35.cx)(styles.indicator, props.className)
|
|
3660
3639
|
}
|
|
3661
3640
|
);
|
|
3662
3641
|
}
|
|
@@ -3688,8 +3667,8 @@ var Tabs2 = {
|
|
|
3688
3667
|
|
|
3689
3668
|
// src/components/Tag.tsx
|
|
3690
3669
|
var import_factory9 = require("@ark-ui/react/factory");
|
|
3691
|
-
var
|
|
3692
|
-
var
|
|
3670
|
+
var import_css36 = require("styled-system/css");
|
|
3671
|
+
var import_recipes34 = require("styled-system/recipes");
|
|
3693
3672
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3694
3673
|
function Tag(props) {
|
|
3695
3674
|
const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
|
|
@@ -3703,9 +3682,9 @@ function Tag(props) {
|
|
|
3703
3682
|
import_factory9.ark.span,
|
|
3704
3683
|
{
|
|
3705
3684
|
...nativeProps,
|
|
3706
|
-
className: (0,
|
|
3685
|
+
className: (0, import_css36.cx)(
|
|
3707
3686
|
nativeProps.className,
|
|
3708
|
-
(0,
|
|
3687
|
+
(0, import_recipes34.tag)({
|
|
3709
3688
|
gradient,
|
|
3710
3689
|
palette,
|
|
3711
3690
|
shape,
|
|
@@ -3730,7 +3709,7 @@ function Tag(props) {
|
|
|
3730
3709
|
}
|
|
3731
3710
|
);
|
|
3732
3711
|
}
|
|
3733
|
-
var closableCss = (0,
|
|
3712
|
+
var closableCss = (0, import_css36.css)({
|
|
3734
3713
|
bgColor: "action.bg.active",
|
|
3735
3714
|
color: "action.text.initial",
|
|
3736
3715
|
paddingInlineEnd: "0"
|
|
@@ -3754,12 +3733,12 @@ var ToggleParts = {
|
|
|
3754
3733
|
|
|
3755
3734
|
// src/components/Tooltip.tsx
|
|
3756
3735
|
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
3757
|
-
var
|
|
3758
|
-
var
|
|
3736
|
+
var import_css37 = require("styled-system/css");
|
|
3737
|
+
var import_recipes35 = require("styled-system/recipes");
|
|
3759
3738
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3760
3739
|
function Tooltip(props) {
|
|
3761
3740
|
const { content, children, asChild, ...nativeProps } = props;
|
|
3762
|
-
const styles = (0,
|
|
3741
|
+
const styles = (0, import_recipes35.tooltip)();
|
|
3763
3742
|
const position = {
|
|
3764
3743
|
placement: props.position || "top"
|
|
3765
3744
|
};
|
|
@@ -3769,7 +3748,7 @@ function Tooltip(props) {
|
|
|
3769
3748
|
import_tooltip.Tooltip.Content,
|
|
3770
3749
|
{
|
|
3771
3750
|
...nativeProps,
|
|
3772
|
-
className: (0,
|
|
3751
|
+
className: (0, import_css37.cx)(nativeProps.className, styles.content),
|
|
3773
3752
|
children: [
|
|
3774
3753
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
|
|
3775
3754
|
content
|
|
@@ -3781,7 +3760,7 @@ function Tooltip(props) {
|
|
|
3781
3760
|
|
|
3782
3761
|
// src/context/confirm-modal.tsx
|
|
3783
3762
|
var import_react20 = require("react");
|
|
3784
|
-
var
|
|
3763
|
+
var import_css38 = require("styled-system/css");
|
|
3785
3764
|
var import_jsx7 = require("styled-system/jsx");
|
|
3786
3765
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3787
3766
|
var ConfirmModalContext = (0, import_react20.createContext)(null);
|
|
@@ -3865,7 +3844,7 @@ function ConfirmModal(props) {
|
|
|
3865
3844
|
Button,
|
|
3866
3845
|
{
|
|
3867
3846
|
autoFocus: true,
|
|
3868
|
-
className: (0,
|
|
3847
|
+
className: (0, import_css38.css)({
|
|
3869
3848
|
w: "1/2"
|
|
3870
3849
|
}),
|
|
3871
3850
|
name: "confirm",
|
|
@@ -3878,7 +3857,7 @@ function ConfirmModal(props) {
|
|
|
3878
3857
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3879
3858
|
Button,
|
|
3880
3859
|
{
|
|
3881
|
-
className: (0,
|
|
3860
|
+
className: (0, import_css38.css)({
|
|
3882
3861
|
w: "1/2"
|
|
3883
3862
|
}),
|
|
3884
3863
|
name: "cancel",
|
|
@@ -3906,8 +3885,8 @@ function useConfirmModal() {
|
|
|
3906
3885
|
var import_react21 = require("react");
|
|
3907
3886
|
var import_dialog4 = require("@ark-ui/react/dialog");
|
|
3908
3887
|
var import_jsx8 = require("styled-system/jsx");
|
|
3909
|
-
var
|
|
3910
|
-
var
|
|
3888
|
+
var import_css39 = require("styled-system/css");
|
|
3889
|
+
var import_patterns5 = require("styled-system/patterns");
|
|
3911
3890
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3912
3891
|
var PromptModalContext = (0, import_react21.createContext)(null);
|
|
3913
3892
|
function PromptModal(props) {
|
|
@@ -4012,7 +3991,7 @@ function PromptModal(props) {
|
|
|
4012
3991
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
4013
3992
|
FieldLabel,
|
|
4014
3993
|
{
|
|
4015
|
-
className: (0,
|
|
3994
|
+
className: (0, import_patterns5.hstack)({
|
|
4016
3995
|
gap: "xs",
|
|
4017
3996
|
justify: "flex-start !important",
|
|
4018
3997
|
marginBlockEnd: "xs",
|
|
@@ -4036,7 +4015,7 @@ function PromptModal(props) {
|
|
|
4036
4015
|
Button,
|
|
4037
4016
|
{
|
|
4038
4017
|
autoFocus: true,
|
|
4039
|
-
className: (0,
|
|
4018
|
+
className: (0, import_css39.css)({
|
|
4040
4019
|
w: "1/2"
|
|
4041
4020
|
}),
|
|
4042
4021
|
disabled: !isValid,
|
|
@@ -4050,7 +4029,7 @@ function PromptModal(props) {
|
|
|
4050
4029
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dialog4.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
4051
4030
|
Button,
|
|
4052
4031
|
{
|
|
4053
|
-
className: (0,
|
|
4032
|
+
className: (0, import_css39.css)({
|
|
4054
4033
|
w: "1/2"
|
|
4055
4034
|
}),
|
|
4056
4035
|
name: "cancel",
|