@cerberus-design/react 0.18.1 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/legacy/_tsup-dts-rollup.d.cts +2 -0
- package/build/legacy/components/CircularProgress.cjs +81 -50
- package/build/legacy/components/CircularProgress.cjs.map +1 -1
- package/build/legacy/index.cjs +130 -107
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +2 -0
- package/build/modern/{chunk-URJ6JHLG.js → chunk-A5UXCB4L.js} +4 -4
- package/build/modern/{chunk-IE2HWT3I.js → chunk-PRV3HAK3.js} +65 -41
- package/build/modern/chunk-PRV3HAK3.js.map +1 -0
- package/build/modern/components/CircularProgress.js +2 -1
- package/build/modern/components/cta-dialog/index.js +2 -2
- package/build/modern/components/cta-dialog/provider.js +2 -2
- package/build/modern/index.js +5 -5
- package/package.json +9 -9
- package/src/components/CircularProgress.tsx +57 -33
- package/build/modern/chunk-IE2HWT3I.js.map +0 -1
- /package/build/modern/{chunk-URJ6JHLG.js.map → chunk-A5UXCB4L.js.map} +0 -0
package/build/legacy/index.cjs
CHANGED
|
@@ -1443,7 +1443,19 @@ function Checkbox2(props) {
|
|
|
1443
1443
|
|
|
1444
1444
|
// src/components/CircularProgress.tsx
|
|
1445
1445
|
var import_recipes14 = require("styled-system/recipes");
|
|
1446
|
+
|
|
1447
|
+
// src/components/for.tsx
|
|
1446
1448
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1449
|
+
function For(props) {
|
|
1450
|
+
var _a;
|
|
1451
|
+
if (!props.each || !props.each.length) {
|
|
1452
|
+
return props.fallback || null;
|
|
1453
|
+
}
|
|
1454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: (_a = props.each) == null ? void 0 : _a.map(props.children) });
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
// src/components/CircularProgress.tsx
|
|
1458
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1447
1459
|
function CircularProgress(props) {
|
|
1448
1460
|
const { size = "1.1em" } = props;
|
|
1449
1461
|
const sizeProps = props.size ? {
|
|
@@ -1456,7 +1468,7 @@ function CircularProgress(props) {
|
|
|
1456
1468
|
const now = props.now >= 100 ? 100 : props.now;
|
|
1457
1469
|
const bgStyle = props.bgStyle ?? "filled";
|
|
1458
1470
|
const styles = (0, import_recipes14.circularProgress)();
|
|
1459
|
-
return /* @__PURE__ */ (0,
|
|
1471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1460
1472
|
"div",
|
|
1461
1473
|
{
|
|
1462
1474
|
id: props.id,
|
|
@@ -1466,7 +1478,7 @@ function CircularProgress(props) {
|
|
|
1466
1478
|
"aria-valuenow": now,
|
|
1467
1479
|
className: styles.root,
|
|
1468
1480
|
role: "progressbar",
|
|
1469
|
-
children: /* @__PURE__ */ (0,
|
|
1481
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1470
1482
|
"svg",
|
|
1471
1483
|
{
|
|
1472
1484
|
"data-complete": now === 100,
|
|
@@ -1478,17 +1490,17 @@ function CircularProgress(props) {
|
|
|
1478
1490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1479
1491
|
...sizeProps,
|
|
1480
1492
|
children: [
|
|
1481
|
-
/* @__PURE__ */ (0,
|
|
1482
|
-
/* @__PURE__ */ (0,
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1484
|
-
/* @__PURE__ */ (0,
|
|
1493
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("title", { children: props.title }),
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("desc", { children: `${now}% ${status}` }),
|
|
1495
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("linearGradient", { id: "gradient", children: [
|
|
1496
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1485
1497
|
"stop",
|
|
1486
1498
|
{
|
|
1487
1499
|
offset: "0%",
|
|
1488
1500
|
stopColor: "var(--cerberus-colors-data-viz-progress-start)"
|
|
1489
1501
|
}
|
|
1490
1502
|
),
|
|
1491
|
-
/* @__PURE__ */ (0,
|
|
1503
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1492
1504
|
"stop",
|
|
1493
1505
|
{
|
|
1494
1506
|
offset: "100%",
|
|
@@ -1496,7 +1508,7 @@ function CircularProgress(props) {
|
|
|
1496
1508
|
}
|
|
1497
1509
|
)
|
|
1498
1510
|
] }) }),
|
|
1499
|
-
/* @__PURE__ */ (0,
|
|
1511
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Show, { when: bgStyle === "filled", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1500
1512
|
"circle",
|
|
1501
1513
|
{
|
|
1502
1514
|
className: styles.base,
|
|
@@ -1506,7 +1518,7 @@ function CircularProgress(props) {
|
|
|
1506
1518
|
pathLength: "100"
|
|
1507
1519
|
}
|
|
1508
1520
|
) }),
|
|
1509
|
-
/* @__PURE__ */ (0,
|
|
1521
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1510
1522
|
"circle",
|
|
1511
1523
|
{
|
|
1512
1524
|
className: styles.track,
|
|
@@ -1516,48 +1528,69 @@ function CircularProgress(props) {
|
|
|
1516
1528
|
pathLength: "100"
|
|
1517
1529
|
}
|
|
1518
1530
|
),
|
|
1519
|
-
/* @__PURE__ */ (0,
|
|
1520
|
-
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1532
|
+
Show,
|
|
1521
1533
|
{
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1534
|
+
when: now > 0,
|
|
1535
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1536
|
+
"text",
|
|
1537
|
+
{
|
|
1538
|
+
"data-fallback": true,
|
|
1539
|
+
className: styles.description,
|
|
1540
|
+
x: "50%",
|
|
1541
|
+
y: "27%",
|
|
1542
|
+
dominantBaseline: "middle",
|
|
1543
|
+
textAnchor: "middle",
|
|
1544
|
+
textLength: "65%",
|
|
1545
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(For, { each: status.split(" "), children: (word, idx) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("tspan", { x: "50%", dy: "1.2em", children: word }, `${word}:${idx}`) })
|
|
1546
|
+
}
|
|
1547
|
+
),
|
|
1548
|
+
children: [
|
|
1549
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1550
|
+
"circle",
|
|
1551
|
+
{
|
|
1552
|
+
"data-complete": now === 100,
|
|
1553
|
+
className: styles.path,
|
|
1554
|
+
cx: "50%",
|
|
1555
|
+
cy: "50%",
|
|
1556
|
+
fill: "none",
|
|
1557
|
+
r: radius,
|
|
1558
|
+
pathLength: "100",
|
|
1559
|
+
strokeDasharray: "100",
|
|
1560
|
+
strokeDashoffset: 100 - now,
|
|
1561
|
+
transform: "rotate(-90 50 50)"
|
|
1562
|
+
}
|
|
1563
|
+
),
|
|
1564
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("g", { children: [
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1566
|
+
"text",
|
|
1567
|
+
{
|
|
1568
|
+
className: styles.title,
|
|
1569
|
+
x: "50%",
|
|
1570
|
+
y: "47%",
|
|
1571
|
+
dominantBaseline: "middle",
|
|
1572
|
+
textAnchor: "middle",
|
|
1573
|
+
children: [
|
|
1574
|
+
now,
|
|
1575
|
+
"%"
|
|
1576
|
+
]
|
|
1577
|
+
}
|
|
1578
|
+
),
|
|
1579
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1580
|
+
"text",
|
|
1581
|
+
{
|
|
1582
|
+
className: styles.description,
|
|
1583
|
+
x: "50%",
|
|
1584
|
+
y: "59%",
|
|
1585
|
+
dominantBaseline: "middle",
|
|
1586
|
+
textAnchor: "middle",
|
|
1587
|
+
children: status
|
|
1588
|
+
}
|
|
1589
|
+
)
|
|
1590
|
+
] })
|
|
1591
|
+
]
|
|
1532
1592
|
}
|
|
1533
|
-
)
|
|
1534
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("g", { children: [
|
|
1535
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1536
|
-
"text",
|
|
1537
|
-
{
|
|
1538
|
-
className: styles.title,
|
|
1539
|
-
x: "50%",
|
|
1540
|
-
y: "47%",
|
|
1541
|
-
dominantBaseline: "middle",
|
|
1542
|
-
textAnchor: "middle",
|
|
1543
|
-
children: [
|
|
1544
|
-
now,
|
|
1545
|
-
"%"
|
|
1546
|
-
]
|
|
1547
|
-
}
|
|
1548
|
-
),
|
|
1549
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1550
|
-
"text",
|
|
1551
|
-
{
|
|
1552
|
-
className: styles.description,
|
|
1553
|
-
x: "50%",
|
|
1554
|
-
y: "59%",
|
|
1555
|
-
dominantBaseline: "middle",
|
|
1556
|
-
textAnchor: "middle",
|
|
1557
|
-
children: status
|
|
1558
|
-
}
|
|
1559
|
-
)
|
|
1560
|
-
] })
|
|
1593
|
+
)
|
|
1561
1594
|
]
|
|
1562
1595
|
}
|
|
1563
1596
|
)
|
|
@@ -1570,11 +1603,11 @@ var import_combobox = require("@ark-ui/react/combobox");
|
|
|
1570
1603
|
var import_factory3 = require("@ark-ui/react/factory");
|
|
1571
1604
|
var import_recipes15 = require("styled-system/recipes");
|
|
1572
1605
|
var import_css17 = require("styled-system/css");
|
|
1573
|
-
var
|
|
1606
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1574
1607
|
function ComboboxRoot(props) {
|
|
1575
1608
|
const { size, ...rootProps } = props;
|
|
1576
1609
|
const styles = (0, import_recipes15.combobox)({ size });
|
|
1577
|
-
return /* @__PURE__ */ (0,
|
|
1610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1578
1611
|
import_combobox.Combobox.Root,
|
|
1579
1612
|
{
|
|
1580
1613
|
...rootProps,
|
|
@@ -1584,11 +1617,11 @@ function ComboboxRoot(props) {
|
|
|
1584
1617
|
}
|
|
1585
1618
|
function ComboboxLabel(props) {
|
|
1586
1619
|
const styles = (0, import_recipes15.combobox)();
|
|
1587
|
-
return /* @__PURE__ */ (0,
|
|
1620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_combobox.Combobox.Label, { ...props, className: (0, import_css17.cx)(styles.label, props.className) });
|
|
1588
1621
|
}
|
|
1589
1622
|
function ComboboxControl(props) {
|
|
1590
1623
|
const styles = (0, import_recipes15.combobox)();
|
|
1591
|
-
return /* @__PURE__ */ (0,
|
|
1624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1592
1625
|
import_combobox.Combobox.Control,
|
|
1593
1626
|
{
|
|
1594
1627
|
...props,
|
|
@@ -1598,11 +1631,11 @@ function ComboboxControl(props) {
|
|
|
1598
1631
|
}
|
|
1599
1632
|
function ComboboxInput(props) {
|
|
1600
1633
|
const styles = (0, import_recipes15.combobox)();
|
|
1601
|
-
return /* @__PURE__ */ (0,
|
|
1634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_combobox.Combobox.Input, { ...props, className: (0, import_css17.cx)(styles.input, props.className) });
|
|
1602
1635
|
}
|
|
1603
1636
|
function ComboboxTrigger(props) {
|
|
1604
1637
|
const styles = (0, import_recipes15.combobox)();
|
|
1605
|
-
return /* @__PURE__ */ (0,
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1606
1639
|
import_combobox.Combobox.Trigger,
|
|
1607
1640
|
{
|
|
1608
1641
|
...props,
|
|
@@ -1612,7 +1645,7 @@ function ComboboxTrigger(props) {
|
|
|
1612
1645
|
}
|
|
1613
1646
|
function ComboboxClearTrigger(props) {
|
|
1614
1647
|
const styles = (0, import_recipes15.combobox)();
|
|
1615
|
-
return /* @__PURE__ */ (0,
|
|
1648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1616
1649
|
import_combobox.Combobox.ClearTrigger,
|
|
1617
1650
|
{
|
|
1618
1651
|
...props,
|
|
@@ -1622,7 +1655,7 @@ function ComboboxClearTrigger(props) {
|
|
|
1622
1655
|
}
|
|
1623
1656
|
function ComboboxPositioner(props) {
|
|
1624
1657
|
const styles = (0, import_recipes15.combobox)();
|
|
1625
|
-
return /* @__PURE__ */ (0,
|
|
1658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1626
1659
|
import_combobox.Combobox.Positioner,
|
|
1627
1660
|
{
|
|
1628
1661
|
...props,
|
|
@@ -1633,7 +1666,7 @@ function ComboboxPositioner(props) {
|
|
|
1633
1666
|
function ComboboxContent(props) {
|
|
1634
1667
|
const { size, ...contentProps } = props;
|
|
1635
1668
|
const styles = (0, import_recipes15.combobox)({ size });
|
|
1636
|
-
return /* @__PURE__ */ (0,
|
|
1669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1637
1670
|
import_combobox.Combobox.Content,
|
|
1638
1671
|
{
|
|
1639
1672
|
...contentProps,
|
|
@@ -1643,7 +1676,7 @@ function ComboboxContent(props) {
|
|
|
1643
1676
|
}
|
|
1644
1677
|
function ComboboxItemGroup(props) {
|
|
1645
1678
|
const styles = (0, import_recipes15.combobox)();
|
|
1646
|
-
return /* @__PURE__ */ (0,
|
|
1679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1647
1680
|
import_combobox.Combobox.ItemGroup,
|
|
1648
1681
|
{
|
|
1649
1682
|
...props,
|
|
@@ -1653,7 +1686,7 @@ function ComboboxItemGroup(props) {
|
|
|
1653
1686
|
}
|
|
1654
1687
|
function ComboboxItemGroupLabel(props) {
|
|
1655
1688
|
const styles = (0, import_recipes15.combobox)();
|
|
1656
|
-
return /* @__PURE__ */ (0,
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1657
1690
|
import_combobox.Combobox.ItemGroupLabel,
|
|
1658
1691
|
{
|
|
1659
1692
|
...props,
|
|
@@ -1663,11 +1696,11 @@ function ComboboxItemGroupLabel(props) {
|
|
|
1663
1696
|
}
|
|
1664
1697
|
function ComboboxItem(props) {
|
|
1665
1698
|
const styles = (0, import_recipes15.combobox)();
|
|
1666
|
-
return /* @__PURE__ */ (0,
|
|
1699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_combobox.Combobox.Item, { ...props, className: (0, import_css17.cx)(styles.item, props.className) });
|
|
1667
1700
|
}
|
|
1668
1701
|
function ComboboxItemText(props) {
|
|
1669
1702
|
const styles = (0, import_recipes15.combobox)();
|
|
1670
|
-
return /* @__PURE__ */ (0,
|
|
1703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1671
1704
|
import_combobox.Combobox.ItemText,
|
|
1672
1705
|
{
|
|
1673
1706
|
...props,
|
|
@@ -1677,7 +1710,7 @@ function ComboboxItemText(props) {
|
|
|
1677
1710
|
}
|
|
1678
1711
|
function ComboboxItemIndicator(props) {
|
|
1679
1712
|
const styles = (0, import_recipes15.combobox)();
|
|
1680
|
-
return /* @__PURE__ */ (0,
|
|
1713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1681
1714
|
import_combobox.Combobox.ItemIndicator,
|
|
1682
1715
|
{
|
|
1683
1716
|
...props,
|
|
@@ -1687,7 +1720,7 @@ function ComboboxItemIndicator(props) {
|
|
|
1687
1720
|
}
|
|
1688
1721
|
function ComboboxStartIcon(props) {
|
|
1689
1722
|
const styles = (0, import_recipes15.combobox)();
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_factory3.ark.span, { ...props, className: styles.startIcon });
|
|
1691
1724
|
}
|
|
1692
1725
|
var ComboItemText = ComboboxItemText;
|
|
1693
1726
|
|
|
@@ -1710,52 +1743,52 @@ var ComboboxParts = {
|
|
|
1710
1743
|
|
|
1711
1744
|
// src/components/Portal.tsx
|
|
1712
1745
|
var import_react11 = require("@ark-ui/react");
|
|
1713
|
-
var
|
|
1746
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1714
1747
|
function Portal(props) {
|
|
1715
|
-
return /* @__PURE__ */ (0,
|
|
1748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react11.Portal, { ...props });
|
|
1716
1749
|
}
|
|
1717
1750
|
|
|
1718
1751
|
// src/components/combobox/combobox.tsx
|
|
1719
|
-
var
|
|
1752
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1720
1753
|
function Combobox2(props) {
|
|
1721
1754
|
const { label: label4, children, startIcon, ...rootProps } = props;
|
|
1722
1755
|
const { icons } = useCerberusContext();
|
|
1723
1756
|
const { selectArrow: SelectArrow, close: CloseIcon } = icons;
|
|
1724
1757
|
const hasStartIcon = Boolean(startIcon);
|
|
1725
|
-
return /* @__PURE__ */ (0,
|
|
1726
|
-
/* @__PURE__ */ (0,
|
|
1727
|
-
/* @__PURE__ */ (0,
|
|
1728
|
-
/* @__PURE__ */ (0,
|
|
1729
|
-
/* @__PURE__ */ (0,
|
|
1758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ComboboxParts.Root, { ...rootProps, children: [
|
|
1759
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Show, { when: label4, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.Label, { children: label4 }) }),
|
|
1760
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ComboboxParts.Control, { children: [
|
|
1761
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Show, { when: hasStartIcon, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxStartIcon, { children: startIcon }) }),
|
|
1762
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1730
1763
|
ComboboxParts.Input,
|
|
1731
1764
|
{
|
|
1732
1765
|
...hasStartIcon && { "data-has": "start-indicator" }
|
|
1733
1766
|
}
|
|
1734
1767
|
),
|
|
1735
|
-
/* @__PURE__ */ (0,
|
|
1736
|
-
/* @__PURE__ */ (0,
|
|
1768
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CloseIcon, {}) }),
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectArrow, {}) })
|
|
1737
1770
|
] }),
|
|
1738
|
-
/* @__PURE__ */ (0,
|
|
1771
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.Content, { size: rootProps.size, children }) }) })
|
|
1739
1772
|
] });
|
|
1740
1773
|
}
|
|
1741
1774
|
|
|
1742
1775
|
// src/components/combobox/item.tsx
|
|
1743
|
-
var
|
|
1776
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1744
1777
|
function ComboItemWithIndicator(props) {
|
|
1745
1778
|
const { icons } = useCerberusContext();
|
|
1746
1779
|
const { selectChecked: CheckedIcon } = icons;
|
|
1747
|
-
return /* @__PURE__ */ (0,
|
|
1748
|
-
/* @__PURE__ */ (0,
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ComboboxParts.Item, { ...props, children: [
|
|
1781
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CheckedIcon, {}) }),
|
|
1749
1782
|
props.children
|
|
1750
1783
|
] });
|
|
1751
1784
|
}
|
|
1752
1785
|
|
|
1753
1786
|
// src/components/combobox/item-group.tsx
|
|
1754
|
-
var
|
|
1787
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1755
1788
|
function ComboItemGroup(props) {
|
|
1756
1789
|
const { label: label4, children, ...groupProps } = props;
|
|
1757
|
-
return /* @__PURE__ */ (0,
|
|
1758
|
-
/* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(ComboboxParts.ItemGroup, { ...groupProps, children: [
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ComboboxParts.ItemGroupLabel, { children: label4 }),
|
|
1759
1792
|
children
|
|
1760
1793
|
] });
|
|
1761
1794
|
}
|
|
@@ -1767,11 +1800,11 @@ var import_react12 = require("react");
|
|
|
1767
1800
|
var import_select = require("@ark-ui/react/select");
|
|
1768
1801
|
var import_recipes16 = require("styled-system/recipes");
|
|
1769
1802
|
var import_css18 = require("styled-system/css");
|
|
1770
|
-
var
|
|
1803
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1771
1804
|
function SelectRoot(props) {
|
|
1772
1805
|
const { size, ...rootProps } = props;
|
|
1773
1806
|
const styles = (0, import_recipes16.select)({ size });
|
|
1774
|
-
return /* @__PURE__ */ (0,
|
|
1807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1775
1808
|
import_select.Select.Root,
|
|
1776
1809
|
{
|
|
1777
1810
|
...rootProps,
|
|
@@ -1781,14 +1814,14 @@ function SelectRoot(props) {
|
|
|
1781
1814
|
}
|
|
1782
1815
|
function SelectLabel(props) {
|
|
1783
1816
|
const styles = (0, import_recipes16.select)();
|
|
1784
|
-
return /* @__PURE__ */ (0,
|
|
1817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.Label, { ...props, className: (0, import_css18.cx)(styles.label, props.className) });
|
|
1785
1818
|
}
|
|
1786
1819
|
function SelectControl(props) {
|
|
1787
|
-
return /* @__PURE__ */ (0,
|
|
1820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.Control, { ...props });
|
|
1788
1821
|
}
|
|
1789
1822
|
function SelectTrigger(props) {
|
|
1790
1823
|
const styles = (0, import_recipes16.select)();
|
|
1791
|
-
return /* @__PURE__ */ (0,
|
|
1824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1792
1825
|
import_select.Select.Trigger,
|
|
1793
1826
|
{
|
|
1794
1827
|
...props,
|
|
@@ -1797,11 +1830,11 @@ function SelectTrigger(props) {
|
|
|
1797
1830
|
);
|
|
1798
1831
|
}
|
|
1799
1832
|
function SelectValueText(props) {
|
|
1800
|
-
return /* @__PURE__ */ (0,
|
|
1833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.ValueText, { ...props });
|
|
1801
1834
|
}
|
|
1802
1835
|
function SelectIndicator(props) {
|
|
1803
1836
|
const styles = (0, import_recipes16.select)();
|
|
1804
|
-
return /* @__PURE__ */ (0,
|
|
1837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1805
1838
|
import_select.Select.Indicator,
|
|
1806
1839
|
{
|
|
1807
1840
|
...props,
|
|
@@ -1810,11 +1843,11 @@ function SelectIndicator(props) {
|
|
|
1810
1843
|
);
|
|
1811
1844
|
}
|
|
1812
1845
|
function SelectClearTrigger(props) {
|
|
1813
|
-
return /* @__PURE__ */ (0,
|
|
1846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.ClearTrigger, { ...props });
|
|
1814
1847
|
}
|
|
1815
1848
|
function SelectPositioner(props) {
|
|
1816
1849
|
const styles = (0, import_recipes16.select)();
|
|
1817
|
-
return /* @__PURE__ */ (0,
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1818
1851
|
import_select.Select.Positioner,
|
|
1819
1852
|
{
|
|
1820
1853
|
...props,
|
|
@@ -1825,7 +1858,7 @@ function SelectPositioner(props) {
|
|
|
1825
1858
|
function SelectContent(props) {
|
|
1826
1859
|
const { size, ...contentProps } = props;
|
|
1827
1860
|
const styles = (0, import_recipes16.select)({ size });
|
|
1828
|
-
return /* @__PURE__ */ (0,
|
|
1861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1829
1862
|
import_select.Select.Content,
|
|
1830
1863
|
{
|
|
1831
1864
|
...contentProps,
|
|
@@ -1834,11 +1867,11 @@ function SelectContent(props) {
|
|
|
1834
1867
|
);
|
|
1835
1868
|
}
|
|
1836
1869
|
function SelectItemGroup(props) {
|
|
1837
|
-
return /* @__PURE__ */ (0,
|
|
1870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.ItemGroup, { ...props });
|
|
1838
1871
|
}
|
|
1839
1872
|
function SelectItemGroupLabel(props) {
|
|
1840
1873
|
const styles = (0, import_recipes16.select)();
|
|
1841
|
-
return /* @__PURE__ */ (0,
|
|
1874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1842
1875
|
import_select.Select.ItemGroupLabel,
|
|
1843
1876
|
{
|
|
1844
1877
|
...props,
|
|
@@ -1848,14 +1881,14 @@ function SelectItemGroupLabel(props) {
|
|
|
1848
1881
|
}
|
|
1849
1882
|
function SelectItem(props) {
|
|
1850
1883
|
const styles = (0, import_recipes16.select)();
|
|
1851
|
-
return /* @__PURE__ */ (0,
|
|
1884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.Item, { ...props, className: (0, import_css18.cx)(styles.item, props.className) });
|
|
1852
1885
|
}
|
|
1853
1886
|
function SelectItemText(props) {
|
|
1854
|
-
return /* @__PURE__ */ (0,
|
|
1887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.ItemText, { ...props });
|
|
1855
1888
|
}
|
|
1856
1889
|
function SelectItemIndicator(props) {
|
|
1857
1890
|
const styles = (0, import_recipes16.select)();
|
|
1858
|
-
return /* @__PURE__ */ (0,
|
|
1891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1859
1892
|
import_select.Select.ItemIndicator,
|
|
1860
1893
|
{
|
|
1861
1894
|
...props,
|
|
@@ -1864,7 +1897,7 @@ function SelectItemIndicator(props) {
|
|
|
1864
1897
|
);
|
|
1865
1898
|
}
|
|
1866
1899
|
function SelectHiddenSelect(props) {
|
|
1867
|
-
return /* @__PURE__ */ (0,
|
|
1900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_select.Select.HiddenSelect, { ...props });
|
|
1868
1901
|
}
|
|
1869
1902
|
function createSelectCollection(collection) {
|
|
1870
1903
|
return (0, import_select.createListCollection)({
|
|
@@ -1905,16 +1938,6 @@ function useStatefulCollection(initialItems = []) {
|
|
|
1905
1938
|
var import_react14 = require("react");
|
|
1906
1939
|
var import_jsx4 = require("styled-system/jsx");
|
|
1907
1940
|
|
|
1908
|
-
// src/components/for.tsx
|
|
1909
|
-
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1910
|
-
function For(props) {
|
|
1911
|
-
var _a;
|
|
1912
|
-
if (!props.each || !props.each.length) {
|
|
1913
|
-
return props.fallback || null;
|
|
1914
|
-
}
|
|
1915
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: (_a = props.each) == null ? void 0 : _a.map(props.children) });
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
1941
|
// src/components/dialog/primitives.tsx
|
|
1919
1942
|
var import_dialog = require("@ark-ui/react/dialog");
|
|
1920
1943
|
var import_css19 = require("styled-system/css");
|