@cerberus-design/react 0.19.3 → 0.20.0
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 +233 -4
- package/build/legacy/components/carousel/carousel.cjs +239 -0
- package/build/legacy/components/carousel/carousel.cjs.map +1 -0
- package/build/legacy/components/carousel/carousel.d.cts +2 -0
- package/build/legacy/components/carousel/index.cjs +257 -0
- package/build/legacy/components/carousel/index.cjs.map +1 -0
- package/build/legacy/components/carousel/index.d.cts +19 -0
- package/build/legacy/components/carousel/parts.cjs +198 -0
- package/build/legacy/components/carousel/parts.cjs.map +1 -0
- package/build/legacy/components/carousel/parts.d.cts +1 -0
- package/build/legacy/components/carousel/primitives.cjs +198 -0
- package/build/legacy/components/carousel/primitives.cjs.map +1 -0
- package/build/legacy/components/carousel/primitives.d.cts +16 -0
- package/build/legacy/index.cjs +490 -418
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +19 -0
- package/build/modern/_tsup-dts-rollup.d.ts +233 -4
- package/build/modern/{chunk-TBCTCQXG.js → chunk-2Z7IKMZC.js} +4 -4
- package/build/modern/{chunk-UAVGKLHV.js → chunk-CONG7TGJ.js} +5 -5
- package/build/modern/{chunk-JBYWQERR.js → chunk-LY6ULD43.js} +4 -4
- package/build/modern/chunk-PH3GZIQE.js +39 -0
- package/build/modern/chunk-PH3GZIQE.js.map +1 -0
- package/build/modern/chunk-RJTFRZAL.js +32 -0
- package/build/modern/chunk-RJTFRZAL.js.map +1 -0
- package/build/modern/chunk-VVZOWCNQ.js +27 -0
- package/build/modern/chunk-VVZOWCNQ.js.map +1 -0
- package/build/modern/chunk-YUAUGU3G.js +1 -0
- package/build/modern/chunk-YUAUGU3G.js.map +1 -0
- package/build/modern/components/carousel/carousel.d.ts +2 -0
- package/build/modern/components/carousel/carousel.js +15 -0
- package/build/modern/components/carousel/carousel.js.map +1 -0
- package/build/modern/components/carousel/index.d.ts +19 -0
- package/build/modern/components/carousel/index.js +36 -0
- package/build/modern/components/carousel/index.js.map +1 -0
- package/build/modern/components/carousel/parts.d.ts +1 -0
- package/build/modern/components/carousel/parts.js +12 -0
- package/build/modern/components/carousel/parts.js.map +1 -0
- package/build/modern/components/carousel/primitives.d.ts +16 -0
- package/build/modern/components/carousel/primitives.js +25 -0
- package/build/modern/components/carousel/primitives.js.map +1 -0
- package/build/modern/components/combobox/index.js +6 -6
- package/build/modern/components/cta-dialog/index.js +4 -4
- package/build/modern/components/cta-dialog/provider.js +4 -4
- package/build/modern/components/date-picker/calendar.js +2 -2
- package/build/modern/components/date-picker/index.js +8 -8
- package/build/modern/components/deprecated/Label.js +1 -1
- package/build/modern/components/dialog/index.js +3 -3
- package/build/modern/components/field/index.js +3 -3
- package/build/modern/components/file-upload/file-status.js +1 -1
- package/build/modern/components/file-upload/index.js +1 -1
- package/build/modern/components/notifications/center.js +2 -2
- package/build/modern/components/notifications/index.js +3 -3
- package/build/modern/components/radio/index.js +3 -3
- package/build/modern/components/select/index.js +3 -3
- package/build/modern/context/confirm-modal.js +1 -1
- package/build/modern/context/prompt-modal.js +2 -2
- package/build/modern/index.d.ts +19 -0
- package/build/modern/index.js +152 -125
- package/build/modern/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/carousel/carousel.tsx +55 -0
- package/src/components/carousel/index.ts +3 -0
- package/src/components/carousel/parts.ts +71 -0
- package/src/components/carousel/primitives.ts +58 -0
- package/src/index.ts +1 -0
- /package/build/modern/{chunk-TBCTCQXG.js.map → chunk-2Z7IKMZC.js.map} +0 -0
- /package/build/modern/{chunk-UAVGKLHV.js.map → chunk-CONG7TGJ.js.map} +0 -0
- /package/build/modern/{chunk-JBYWQERR.js.map → chunk-LY6ULD43.js.map} +0 -0
package/build/legacy/index.cjs
CHANGED
|
@@ -49,6 +49,16 @@ __export(index_exports, {
|
|
|
49
49
|
CTAModal: () => CTAModal,
|
|
50
50
|
CalendarDate: () => import_date.CalendarDate,
|
|
51
51
|
Caption: () => Caption,
|
|
52
|
+
Carousel: () => Carousel2,
|
|
53
|
+
CarouselControl: () => CarouselControl,
|
|
54
|
+
CarouselIndicator: () => CarouselIndicator,
|
|
55
|
+
CarouselIndicatorGroup: () => CarouselIndicatorGroup,
|
|
56
|
+
CarouselItem: () => CarouselItem,
|
|
57
|
+
CarouselItemGroup: () => CarouselItemGroup,
|
|
58
|
+
CarouselNextTrigger: () => CarouselNextTrigger,
|
|
59
|
+
CarouselParts: () => CarouselParts,
|
|
60
|
+
CarouselPrevTrigger: () => CarouselPrevTrigger,
|
|
61
|
+
CarouselRoot: () => CarouselRoot,
|
|
52
62
|
CerberusProvider: () => CerberusProvider,
|
|
53
63
|
Checkbox: () => Checkbox2,
|
|
54
64
|
CheckboxControl: () => CheckboxControl,
|
|
@@ -1492,9 +1502,71 @@ var ButtonParts = {
|
|
|
1492
1502
|
Icon: ButtonIcon
|
|
1493
1503
|
};
|
|
1494
1504
|
|
|
1505
|
+
// src/components/carousel/primitives.ts
|
|
1506
|
+
var import_carousel = require("@ark-ui/react/carousel");
|
|
1507
|
+
var import_recipes13 = require("styled-system/recipes");
|
|
1508
|
+
var { withSlotRecipe: withSlotRecipe5 } = createCerberusPrimitive(import_recipes13.carousel);
|
|
1509
|
+
var CarouselRoot = withSlotRecipe5(import_carousel.Carousel.Root, "root");
|
|
1510
|
+
var CarouselControl = withSlotRecipe5(import_carousel.Carousel.Control, "control");
|
|
1511
|
+
var CarouselPrevTrigger = withSlotRecipe5(
|
|
1512
|
+
import_carousel.Carousel.PrevTrigger,
|
|
1513
|
+
"prevTrigger"
|
|
1514
|
+
);
|
|
1515
|
+
var CarouselNextTrigger = withSlotRecipe5(
|
|
1516
|
+
import_carousel.Carousel.NextTrigger,
|
|
1517
|
+
"nextTrigger"
|
|
1518
|
+
);
|
|
1519
|
+
var CarouselIndicatorGroup = withSlotRecipe5(
|
|
1520
|
+
import_carousel.Carousel.IndicatorGroup,
|
|
1521
|
+
"indicatorGroup"
|
|
1522
|
+
);
|
|
1523
|
+
var CarouselIndicator = withSlotRecipe5(import_carousel.Carousel.Indicator, "indicator");
|
|
1524
|
+
var CarouselItemGroup = withSlotRecipe5(import_carousel.Carousel.ItemGroup, "itemGroup");
|
|
1525
|
+
var CarouselItem = withSlotRecipe5(import_carousel.Carousel.Item, "item");
|
|
1526
|
+
|
|
1527
|
+
// src/components/carousel/parts.ts
|
|
1528
|
+
var CarouselParts = {
|
|
1529
|
+
Root: CarouselRoot,
|
|
1530
|
+
Control: CarouselControl,
|
|
1531
|
+
PrevTrigger: CarouselPrevTrigger,
|
|
1532
|
+
NextTrigger: CarouselNextTrigger,
|
|
1533
|
+
IndicatorGroup: CarouselIndicatorGroup,
|
|
1534
|
+
Indicator: CarouselIndicator,
|
|
1535
|
+
ItemGroup: CarouselItemGroup,
|
|
1536
|
+
Item: CarouselItem
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
// src/components/for/for.tsx
|
|
1540
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1541
|
+
function For(props) {
|
|
1542
|
+
var _a;
|
|
1543
|
+
if (!props.each || !props.each.length) {
|
|
1544
|
+
return props.fallback || null;
|
|
1545
|
+
}
|
|
1546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: (_a = props.each) == null ? void 0 : _a.map(props.children) });
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
// src/components/carousel/carousel.tsx
|
|
1550
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1551
|
+
function CarouselEl(props) {
|
|
1552
|
+
const { showIndicators = false, children, ...rootProps } = props;
|
|
1553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(CarouselParts.Root, { ...rootProps, children: [
|
|
1554
|
+
children,
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: showIndicators, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CarouselParts.IndicatorGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(For, { each: Array.from({ length: props.slideCount ?? 0 }), children: (_, idx) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CarouselParts.Indicator, { index: idx }, idx) }) }) })
|
|
1556
|
+
] });
|
|
1557
|
+
}
|
|
1558
|
+
var Carousel2 = {
|
|
1559
|
+
Root: CarouselEl,
|
|
1560
|
+
ItemGroup: CarouselParts.ItemGroup,
|
|
1561
|
+
Item: CarouselParts.Item,
|
|
1562
|
+
Control: CarouselParts.Control,
|
|
1563
|
+
PrevTrigger: CarouselParts.PrevTrigger,
|
|
1564
|
+
NextTrigger: CarouselParts.NextTrigger
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1495
1567
|
// src/components/text/text.tsx
|
|
1496
1568
|
var import_jsx3 = require("styled-system/jsx");
|
|
1497
|
-
var
|
|
1569
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1498
1570
|
function Text(props) {
|
|
1499
1571
|
const { as = "p", ...pandaJSXProps } = props;
|
|
1500
1572
|
const cache2 = {
|
|
@@ -1512,35 +1584,35 @@ function Text(props) {
|
|
|
1512
1584
|
};
|
|
1513
1585
|
if (as in cache2) {
|
|
1514
1586
|
const Component = cache2[as];
|
|
1515
|
-
return /* @__PURE__ */ (0,
|
|
1587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Component, { ...pandaJSXProps });
|
|
1516
1588
|
}
|
|
1517
|
-
return /* @__PURE__ */ (0,
|
|
1589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx3.P, { ...pandaJSXProps });
|
|
1518
1590
|
}
|
|
1519
1591
|
|
|
1520
1592
|
// src/components/checkbox/primitives.tsx
|
|
1521
1593
|
var import_react12 = require("@ark-ui/react");
|
|
1522
|
-
var
|
|
1523
|
-
var { withSlotRecipe:
|
|
1524
|
-
var CheckboxRoot =
|
|
1594
|
+
var import_recipes14 = require("styled-system/recipes");
|
|
1595
|
+
var { withSlotRecipe: withSlotRecipe6, withNoRecipe: withNoRecipe3 } = createCerberusPrimitive(import_recipes14.checkbox);
|
|
1596
|
+
var CheckboxRoot = withSlotRecipe6(
|
|
1525
1597
|
import_react12.Checkbox.Root,
|
|
1526
1598
|
"root"
|
|
1527
1599
|
);
|
|
1528
|
-
var CheckboxLabel =
|
|
1600
|
+
var CheckboxLabel = withSlotRecipe6(
|
|
1529
1601
|
import_react12.Checkbox.Label,
|
|
1530
1602
|
"label"
|
|
1531
1603
|
);
|
|
1532
|
-
var CheckboxControl =
|
|
1604
|
+
var CheckboxControl = withSlotRecipe6(
|
|
1533
1605
|
import_react12.Checkbox.Control,
|
|
1534
1606
|
"control"
|
|
1535
1607
|
);
|
|
1536
|
-
var CheckboxIndicator =
|
|
1608
|
+
var CheckboxIndicator = withSlotRecipe6(
|
|
1537
1609
|
import_react12.Checkbox.Indicator,
|
|
1538
1610
|
"indicator"
|
|
1539
1611
|
);
|
|
1540
1612
|
var CheckboxHiddenInput = withNoRecipe3(
|
|
1541
1613
|
import_react12.Checkbox.HiddenInput
|
|
1542
1614
|
);
|
|
1543
|
-
var CheckboxGroup =
|
|
1615
|
+
var CheckboxGroup = withSlotRecipe6(
|
|
1544
1616
|
import_react12.Checkbox.Group,
|
|
1545
1617
|
"group"
|
|
1546
1618
|
);
|
|
@@ -1556,67 +1628,67 @@ var CheckboxParts = {
|
|
|
1556
1628
|
};
|
|
1557
1629
|
|
|
1558
1630
|
// src/components/checkbox/checkbox-icon.tsx
|
|
1559
|
-
var
|
|
1631
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1560
1632
|
function CheckboxIcon(props) {
|
|
1561
1633
|
const { icons } = useCerberusContext();
|
|
1562
1634
|
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon2 } = icons;
|
|
1563
|
-
return /* @__PURE__ */ (0,
|
|
1635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckboxParts.Indicator, { indeterminate: props.indeterminate, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Show, { when: props.indeterminate, fallback: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CheckIcon, {}), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(IndeterminateIcon2, {}) }) });
|
|
1564
1636
|
}
|
|
1565
1637
|
|
|
1566
1638
|
// src/components/checkbox/checkbox.tsx
|
|
1567
|
-
var
|
|
1639
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1568
1640
|
function Checkbox2(props) {
|
|
1569
1641
|
const { size, children, ...rootProps } = props;
|
|
1570
|
-
return /* @__PURE__ */ (0,
|
|
1571
|
-
/* @__PURE__ */ (0,
|
|
1572
|
-
/* @__PURE__ */ (0,
|
|
1642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(CheckboxParts.Root, { ...rootProps, children: [
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CheckboxParts.Control, { size, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CheckboxIcon, { indeterminate: rootProps.checked === "indeterminate" }) }),
|
|
1644
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(CheckboxParts.Label, { size, children: [
|
|
1573
1645
|
children,
|
|
1574
|
-
/* @__PURE__ */ (0,
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Show, { when: props.required, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Text, { as: "span", "data-part": "required-indicator", children: "(required)" }) })
|
|
1575
1647
|
] }),
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CheckboxParts.HiddenInput, {})
|
|
1577
1649
|
] });
|
|
1578
1650
|
}
|
|
1579
1651
|
|
|
1580
1652
|
// src/components/circular-progress/primitives.ts
|
|
1581
1653
|
var import_progress = require("@ark-ui/react/progress");
|
|
1582
1654
|
var import_factory5 = require("@ark-ui/react/factory");
|
|
1583
|
-
var
|
|
1584
|
-
var { withSlotRecipe:
|
|
1585
|
-
var CircularProgressRoot =
|
|
1655
|
+
var import_recipes15 = require("styled-system/recipes");
|
|
1656
|
+
var { withSlotRecipe: withSlotRecipe7 } = createCerberusPrimitive(import_recipes15.circularProgress);
|
|
1657
|
+
var CircularProgressRoot = withSlotRecipe7(
|
|
1586
1658
|
import_progress.Progress.Root,
|
|
1587
1659
|
"root"
|
|
1588
1660
|
);
|
|
1589
|
-
var CircularProgressLabel =
|
|
1661
|
+
var CircularProgressLabel = withSlotRecipe7(
|
|
1590
1662
|
import_progress.Progress.Label,
|
|
1591
1663
|
"label"
|
|
1592
1664
|
);
|
|
1593
|
-
var CircularProgressValueText =
|
|
1665
|
+
var CircularProgressValueText = withSlotRecipe7(
|
|
1594
1666
|
import_progress.Progress.ValueText,
|
|
1595
1667
|
"valueText"
|
|
1596
1668
|
);
|
|
1597
|
-
var CircularProgressCircle =
|
|
1598
|
-
var CircularProgressCircleTrack =
|
|
1669
|
+
var CircularProgressCircle = withSlotRecipe7(import_progress.Progress.Circle, "circle");
|
|
1670
|
+
var CircularProgressCircleTrack = withSlotRecipe7(
|
|
1599
1671
|
import_progress.Progress.CircleTrack,
|
|
1600
1672
|
"circleTrack"
|
|
1601
1673
|
);
|
|
1602
|
-
var CircularProgressCircleRange =
|
|
1674
|
+
var CircularProgressCircleRange = withSlotRecipe7(
|
|
1603
1675
|
import_progress.Progress.CircleRange,
|
|
1604
1676
|
"circleRange"
|
|
1605
1677
|
);
|
|
1606
|
-
var CircularProgressInfoGroup =
|
|
1678
|
+
var CircularProgressInfoGroup = withSlotRecipe7(import_factory5.ark.div, "infoGroup");
|
|
1607
1679
|
|
|
1608
1680
|
// src/components/circular-progress/circular-progress.tsx
|
|
1609
|
-
var
|
|
1681
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1610
1682
|
function CircularProgress(props) {
|
|
1611
1683
|
const { label: label4, ...rootProps } = props;
|
|
1612
|
-
return /* @__PURE__ */ (0,
|
|
1613
|
-
/* @__PURE__ */ (0,
|
|
1614
|
-
/* @__PURE__ */ (0,
|
|
1615
|
-
/* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(CircularProgressRoot, { ...rootProps, children: [
|
|
1685
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(CircularProgressCircle, { children: [
|
|
1686
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CircularProgressCircleTrack, {}),
|
|
1687
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CircularProgressCircleRange, {})
|
|
1616
1688
|
] }),
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1618
|
-
/* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1689
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(CircularProgressInfoGroup, { children: [
|
|
1690
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CircularProgressValueText, {}),
|
|
1691
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CircularProgressLabel, { children: label4 ?? "Done" })
|
|
1620
1692
|
] })
|
|
1621
1693
|
] });
|
|
1622
1694
|
}
|
|
@@ -1624,61 +1696,61 @@ function CircularProgress(props) {
|
|
|
1624
1696
|
// src/components/combobox/primitives.tsx
|
|
1625
1697
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
1626
1698
|
var import_factory6 = require("@ark-ui/react/factory");
|
|
1627
|
-
var
|
|
1628
|
-
var { withSlotRecipe:
|
|
1629
|
-
var ComboboxRoot =
|
|
1699
|
+
var import_recipes16 = require("styled-system/recipes");
|
|
1700
|
+
var { withSlotRecipe: withSlotRecipe8 } = createCerberusPrimitive(import_recipes16.combobox);
|
|
1701
|
+
var ComboboxRoot = withSlotRecipe8(
|
|
1630
1702
|
import_combobox.Combobox.Root,
|
|
1631
1703
|
"root"
|
|
1632
1704
|
);
|
|
1633
|
-
var ComboboxLabel =
|
|
1705
|
+
var ComboboxLabel = withSlotRecipe8(
|
|
1634
1706
|
import_combobox.Combobox.Label,
|
|
1635
1707
|
"label"
|
|
1636
1708
|
);
|
|
1637
|
-
var ComboboxControl =
|
|
1709
|
+
var ComboboxControl = withSlotRecipe8(
|
|
1638
1710
|
import_combobox.Combobox.Control,
|
|
1639
1711
|
"control"
|
|
1640
1712
|
);
|
|
1641
|
-
var ComboboxInput =
|
|
1713
|
+
var ComboboxInput = withSlotRecipe8(
|
|
1642
1714
|
import_combobox.Combobox.Input,
|
|
1643
1715
|
"input"
|
|
1644
1716
|
);
|
|
1645
|
-
var ComboboxTrigger =
|
|
1717
|
+
var ComboboxTrigger = withSlotRecipe8(
|
|
1646
1718
|
import_combobox.Combobox.Trigger,
|
|
1647
1719
|
"trigger"
|
|
1648
1720
|
);
|
|
1649
|
-
var ComboboxClearTrigger =
|
|
1721
|
+
var ComboboxClearTrigger = withSlotRecipe8(
|
|
1650
1722
|
import_combobox.Combobox.ClearTrigger,
|
|
1651
1723
|
"clearTrigger"
|
|
1652
1724
|
);
|
|
1653
|
-
var ComboboxPositioner =
|
|
1725
|
+
var ComboboxPositioner = withSlotRecipe8(
|
|
1654
1726
|
import_combobox.Combobox.Positioner,
|
|
1655
1727
|
"positioner"
|
|
1656
1728
|
);
|
|
1657
|
-
var ComboboxContent =
|
|
1729
|
+
var ComboboxContent = withSlotRecipe8(
|
|
1658
1730
|
import_combobox.Combobox.Content,
|
|
1659
1731
|
"content"
|
|
1660
1732
|
);
|
|
1661
|
-
var ComboboxItemGroup =
|
|
1733
|
+
var ComboboxItemGroup = withSlotRecipe8(
|
|
1662
1734
|
import_combobox.Combobox.ItemGroup,
|
|
1663
1735
|
"itemGroup"
|
|
1664
1736
|
);
|
|
1665
|
-
var ComboboxItemGroupLabel =
|
|
1737
|
+
var ComboboxItemGroupLabel = withSlotRecipe8(
|
|
1666
1738
|
import_combobox.Combobox.ItemGroupLabel,
|
|
1667
1739
|
"itemGroupLabel"
|
|
1668
1740
|
);
|
|
1669
|
-
var ComboboxItem =
|
|
1741
|
+
var ComboboxItem = withSlotRecipe8(
|
|
1670
1742
|
import_combobox.Combobox.Item,
|
|
1671
1743
|
"item"
|
|
1672
1744
|
);
|
|
1673
|
-
var ComboboxItemText =
|
|
1745
|
+
var ComboboxItemText = withSlotRecipe8(
|
|
1674
1746
|
import_combobox.Combobox.ItemText,
|
|
1675
1747
|
"itemText"
|
|
1676
1748
|
);
|
|
1677
|
-
var ComboboxItemIndicator =
|
|
1749
|
+
var ComboboxItemIndicator = withSlotRecipe8(
|
|
1678
1750
|
import_combobox.Combobox.ItemIndicator,
|
|
1679
1751
|
"itemIndicator"
|
|
1680
1752
|
);
|
|
1681
|
-
var ComboboxStartIcon =
|
|
1753
|
+
var ComboboxStartIcon = withSlotRecipe8(
|
|
1682
1754
|
import_factory6.ark.span,
|
|
1683
1755
|
"startIcon"
|
|
1684
1756
|
);
|
|
@@ -1706,7 +1778,7 @@ var import_react13 = require("@ark-ui/react");
|
|
|
1706
1778
|
var Portal = import_react13.Portal;
|
|
1707
1779
|
|
|
1708
1780
|
// src/components/combobox/combobox.tsx
|
|
1709
|
-
var
|
|
1781
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1710
1782
|
function Combobox2(props) {
|
|
1711
1783
|
const [{ startIcon, label: label4, ...elProps }, rootProps] = splitProps(props, [
|
|
1712
1784
|
"label",
|
|
@@ -1717,40 +1789,40 @@ function Combobox2(props) {
|
|
|
1717
1789
|
const { icons } = useCerberusContext();
|
|
1718
1790
|
const { selectArrow: SelectArrow, close: CloseIcon } = icons;
|
|
1719
1791
|
const hasStartIcon = Boolean(startIcon);
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1721
|
-
/* @__PURE__ */ (0,
|
|
1722
|
-
/* @__PURE__ */ (0,
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ComboboxParts.Root, { ...rootProps, children: [
|
|
1793
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Show, { when: label4, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.Label, { children: label4 }) }),
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ComboboxParts.Control, { children: [
|
|
1795
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Show, { when: hasStartIcon, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxStartIcon, { children: startIcon }) }),
|
|
1796
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1725
1797
|
ComboboxParts.Input,
|
|
1726
1798
|
{
|
|
1727
1799
|
...hasStartIcon && { "data-has": "start-indicator" }
|
|
1728
1800
|
}
|
|
1729
1801
|
),
|
|
1730
|
-
/* @__PURE__ */ (0,
|
|
1731
|
-
/* @__PURE__ */ (0,
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CloseIcon, {}) }),
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectArrow, {}) })
|
|
1732
1804
|
] }),
|
|
1733
|
-
/* @__PURE__ */ (0,
|
|
1805
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Portal, { container: elProps.container, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.Content, { size: rootProps.size, children: elProps.children }) }) })
|
|
1734
1806
|
] });
|
|
1735
1807
|
}
|
|
1736
1808
|
|
|
1737
1809
|
// src/components/combobox/item.tsx
|
|
1738
|
-
var
|
|
1810
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1739
1811
|
function ComboItemWithIndicator(props) {
|
|
1740
1812
|
const { icons } = useCerberusContext();
|
|
1741
1813
|
const { selectChecked: CheckedIcon } = icons;
|
|
1742
|
-
return /* @__PURE__ */ (0,
|
|
1743
|
-
/* @__PURE__ */ (0,
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(ComboboxParts.Item, { ...props, children: [
|
|
1815
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ComboboxParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckedIcon, {}) }),
|
|
1744
1816
|
props.children
|
|
1745
1817
|
] });
|
|
1746
1818
|
}
|
|
1747
1819
|
|
|
1748
1820
|
// src/components/combobox/item-group.tsx
|
|
1749
|
-
var
|
|
1821
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1750
1822
|
function ComboItemGroup(props) {
|
|
1751
1823
|
const { label: label4, children, ...groupProps } = props;
|
|
1752
|
-
return /* @__PURE__ */ (0,
|
|
1753
|
-
/* @__PURE__ */ (0,
|
|
1824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(ComboboxParts.ItemGroup, { ...groupProps, children: [
|
|
1825
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ComboboxParts.ItemGroupLabel, { children: label4 }),
|
|
1754
1826
|
children
|
|
1755
1827
|
] });
|
|
1756
1828
|
}
|
|
@@ -1760,46 +1832,46 @@ var import_react14 = require("react");
|
|
|
1760
1832
|
|
|
1761
1833
|
// src/components/select/primitives.tsx
|
|
1762
1834
|
var import_select = require("@ark-ui/react/select");
|
|
1763
|
-
var
|
|
1764
|
-
var { withSlotRecipe:
|
|
1765
|
-
var SelectRoot =
|
|
1766
|
-
var SelectLabel =
|
|
1835
|
+
var import_recipes17 = require("styled-system/recipes");
|
|
1836
|
+
var { withSlotRecipe: withSlotRecipe9, withNoRecipe: withNoRecipe4 } = createCerberusPrimitive(import_recipes17.select);
|
|
1837
|
+
var SelectRoot = withSlotRecipe9(import_select.Select.Root, "root");
|
|
1838
|
+
var SelectLabel = withSlotRecipe9(
|
|
1767
1839
|
import_select.Select.Label,
|
|
1768
1840
|
"label"
|
|
1769
1841
|
);
|
|
1770
1842
|
var SelectControl = withNoRecipe4(import_select.Select.Control);
|
|
1771
|
-
var SelectTrigger =
|
|
1843
|
+
var SelectTrigger = withSlotRecipe9(
|
|
1772
1844
|
import_select.Select.Trigger,
|
|
1773
1845
|
"trigger"
|
|
1774
1846
|
);
|
|
1775
1847
|
var SelectValueText = withNoRecipe4(
|
|
1776
1848
|
import_select.Select.ValueText
|
|
1777
1849
|
);
|
|
1778
|
-
var SelectIndicator =
|
|
1850
|
+
var SelectIndicator = withSlotRecipe9(
|
|
1779
1851
|
import_select.Select.Indicator,
|
|
1780
1852
|
"indicator"
|
|
1781
1853
|
);
|
|
1782
1854
|
var SelectClearTrigger = withNoRecipe4(
|
|
1783
1855
|
import_select.Select.ClearTrigger
|
|
1784
1856
|
);
|
|
1785
|
-
var SelectPositioner =
|
|
1857
|
+
var SelectPositioner = withSlotRecipe9(
|
|
1786
1858
|
import_select.Select.Positioner,
|
|
1787
1859
|
"positioner"
|
|
1788
1860
|
);
|
|
1789
|
-
var SelectContent =
|
|
1861
|
+
var SelectContent = withSlotRecipe9(
|
|
1790
1862
|
import_select.Select.Content,
|
|
1791
1863
|
"content"
|
|
1792
1864
|
);
|
|
1793
1865
|
var SelectItemGroup = withNoRecipe4(
|
|
1794
1866
|
import_select.Select.ItemGroup
|
|
1795
1867
|
);
|
|
1796
|
-
var SelectItemGroupLabel =
|
|
1868
|
+
var SelectItemGroupLabel = withSlotRecipe9(
|
|
1797
1869
|
import_select.Select.ItemGroupLabel,
|
|
1798
1870
|
"itemGroupLabel"
|
|
1799
1871
|
);
|
|
1800
|
-
var SelectItem =
|
|
1872
|
+
var SelectItem = withSlotRecipe9(import_select.Select.Item, "item");
|
|
1801
1873
|
var SelectItemText = withNoRecipe4(import_select.Select.ItemText);
|
|
1802
|
-
var SelectItemIndicator =
|
|
1874
|
+
var SelectItemIndicator = withSlotRecipe9(
|
|
1803
1875
|
import_select.Select.ItemIndicator,
|
|
1804
1876
|
"itemIndicator"
|
|
1805
1877
|
);
|
|
@@ -1845,28 +1917,18 @@ function useStatefulCollection(initialItems = []) {
|
|
|
1845
1917
|
var import_react16 = require("react");
|
|
1846
1918
|
var import_jsx4 = require("styled-system/jsx");
|
|
1847
1919
|
|
|
1848
|
-
// src/components/for/for.tsx
|
|
1849
|
-
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1850
|
-
function For(props) {
|
|
1851
|
-
var _a;
|
|
1852
|
-
if (!props.each || !props.each.length) {
|
|
1853
|
-
return props.fallback || null;
|
|
1854
|
-
}
|
|
1855
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: (_a = props.each) == null ? void 0 : _a.map(props.children) });
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
1920
|
// src/components/dialog/primitives.tsx
|
|
1859
1921
|
var import_dialog = require("@ark-ui/react/dialog");
|
|
1860
|
-
var
|
|
1861
|
-
var { withSlotRecipe:
|
|
1922
|
+
var import_recipes18 = require("styled-system/recipes");
|
|
1923
|
+
var { withSlotRecipe: withSlotRecipe10, withNoRecipe: withNoRecipe5 } = createCerberusPrimitive(import_recipes18.dialog);
|
|
1862
1924
|
var DialogRoot = withNoRecipe5(import_dialog.Dialog.Root);
|
|
1863
1925
|
var DialogProvider = DialogRoot;
|
|
1864
|
-
var DialogTrigger =
|
|
1865
|
-
var DialogBackdrop =
|
|
1866
|
-
var DialogPositioner =
|
|
1867
|
-
var DialogContent =
|
|
1868
|
-
var DialogHeading =
|
|
1869
|
-
var DialogDescription =
|
|
1926
|
+
var DialogTrigger = withSlotRecipe10(import_dialog.Dialog.Trigger, "trigger");
|
|
1927
|
+
var DialogBackdrop = withSlotRecipe10(import_dialog.Dialog.Backdrop, "backdrop");
|
|
1928
|
+
var DialogPositioner = withSlotRecipe10(import_dialog.Dialog.Positioner, "positioner");
|
|
1929
|
+
var DialogContent = withSlotRecipe10(import_dialog.Dialog.Content, "content");
|
|
1930
|
+
var DialogHeading = withSlotRecipe10(import_dialog.Dialog.Title, "title");
|
|
1931
|
+
var DialogDescription = withSlotRecipe10(
|
|
1870
1932
|
import_dialog.Dialog.Description,
|
|
1871
1933
|
"description"
|
|
1872
1934
|
);
|
|
@@ -1886,39 +1948,39 @@ var DialogParts = {
|
|
|
1886
1948
|
|
|
1887
1949
|
// src/components/icon-button/primitives.ts
|
|
1888
1950
|
var import_factory7 = require("@ark-ui/react/factory");
|
|
1889
|
-
var
|
|
1890
|
-
var { withRecipe: withRecipe2 } = createCerberusPrimitive(
|
|
1951
|
+
var import_recipes19 = require("styled-system/recipes");
|
|
1952
|
+
var { withRecipe: withRecipe2 } = createCerberusPrimitive(import_recipes19.iconButton);
|
|
1891
1953
|
var IconButtonRoot = withRecipe2(import_factory7.ark.button);
|
|
1892
1954
|
|
|
1893
1955
|
// src/components/icon-button/button.tsx
|
|
1894
|
-
var
|
|
1956
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1895
1957
|
function IconButton(props) {
|
|
1896
1958
|
const { ariaLabel, ...rootProps } = props;
|
|
1897
|
-
return /* @__PURE__ */ (0,
|
|
1959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(IconButtonRoot, { ...rootProps, "aria-label": ariaLabel ?? "Icon Button" });
|
|
1898
1960
|
}
|
|
1899
1961
|
|
|
1900
1962
|
// src/components/dialog/close-icon-trigger.tsx
|
|
1901
|
-
var
|
|
1963
|
+
var import_recipes20 = require("styled-system/recipes");
|
|
1902
1964
|
var import_css12 = require("styled-system/css");
|
|
1903
|
-
var
|
|
1965
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1904
1966
|
function DialogCloseIconTrigger(props) {
|
|
1905
|
-
const styles = (0,
|
|
1967
|
+
const styles = (0, import_recipes20.dialog)();
|
|
1906
1968
|
const { icons } = useCerberusContext();
|
|
1907
1969
|
const { close: CloseIcon } = icons;
|
|
1908
|
-
return /* @__PURE__ */ (0,
|
|
1970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1909
1971
|
DialogCloseTrigger,
|
|
1910
1972
|
{
|
|
1911
1973
|
...props,
|
|
1912
1974
|
className: (0, import_css12.cx)(styles.closeTrigger, props.className),
|
|
1913
1975
|
asChild: true,
|
|
1914
|
-
children: /* @__PURE__ */ (0,
|
|
1976
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1915
1977
|
IconButton,
|
|
1916
1978
|
{
|
|
1917
1979
|
ariaLabel: "Close dialog",
|
|
1918
1980
|
palette: "action",
|
|
1919
1981
|
size: "lg",
|
|
1920
1982
|
usage: "ghost",
|
|
1921
|
-
children: /* @__PURE__ */ (0,
|
|
1983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CloseIcon, {})
|
|
1922
1984
|
}
|
|
1923
1985
|
)
|
|
1924
1986
|
}
|
|
@@ -1926,11 +1988,11 @@ function DialogCloseIconTrigger(props) {
|
|
|
1926
1988
|
}
|
|
1927
1989
|
|
|
1928
1990
|
// src/components/dialog/dialog.tsx
|
|
1929
|
-
var
|
|
1991
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1930
1992
|
function Dialog2(props) {
|
|
1931
|
-
return /* @__PURE__ */ (0,
|
|
1932
|
-
/* @__PURE__ */ (0,
|
|
1933
|
-
/* @__PURE__ */ (0,
|
|
1993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Portal, { children: [
|
|
1994
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DialogBackdrop, {}),
|
|
1995
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DialogPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DialogContent, { ...props }) })
|
|
1934
1996
|
] });
|
|
1935
1997
|
}
|
|
1936
1998
|
|
|
@@ -1941,16 +2003,16 @@ var CTAModalContext = (0, import_react15.createContext)(null);
|
|
|
1941
2003
|
// src/components/cta-dialog/trigger-item.tsx
|
|
1942
2004
|
var import_css13 = require("styled-system/css");
|
|
1943
2005
|
var import_factory8 = require("@ark-ui/react/factory");
|
|
1944
|
-
var
|
|
1945
|
-
var
|
|
2006
|
+
var import_recipes21 = require("styled-system/recipes");
|
|
2007
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1946
2008
|
function TriggerItem(props) {
|
|
1947
2009
|
const { asChild, children, ...buttonProps } = props;
|
|
1948
2010
|
if (asChild) {
|
|
1949
|
-
return /* @__PURE__ */ (0,
|
|
2011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1950
2012
|
import_factory8.ark.div,
|
|
1951
2013
|
{
|
|
1952
2014
|
className: (0, import_css13.cx)(
|
|
1953
|
-
(0,
|
|
2015
|
+
(0, import_recipes21.button)({
|
|
1954
2016
|
shape: "rounded",
|
|
1955
2017
|
usage: "ghost"
|
|
1956
2018
|
}),
|
|
@@ -1963,7 +2025,7 @@ function TriggerItem(props) {
|
|
|
1963
2025
|
}
|
|
1964
2026
|
);
|
|
1965
2027
|
}
|
|
1966
|
-
return /* @__PURE__ */ (0,
|
|
2028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1967
2029
|
Button,
|
|
1968
2030
|
{
|
|
1969
2031
|
...buttonProps,
|
|
@@ -1978,7 +2040,7 @@ function TriggerItem(props) {
|
|
|
1978
2040
|
}
|
|
1979
2041
|
|
|
1980
2042
|
// src/components/cta-dialog/provider.tsx
|
|
1981
|
-
var
|
|
2043
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1982
2044
|
function CTAModal(props) {
|
|
1983
2045
|
const [open, setOpen] = (0, import_react16.useState)(false);
|
|
1984
2046
|
const [content, setContent] = (0, import_react16.useState)(null);
|
|
@@ -2009,9 +2071,9 @@ function CTAModal(props) {
|
|
|
2009
2071
|
}),
|
|
2010
2072
|
[handleShow]
|
|
2011
2073
|
);
|
|
2012
|
-
return /* @__PURE__ */ (0,
|
|
2074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(CTAModalContext.Provider, { value, children: [
|
|
2013
2075
|
props.children,
|
|
2014
|
-
/* @__PURE__ */ (0,
|
|
2076
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2015
2077
|
Dialog2,
|
|
2016
2078
|
{
|
|
2017
2079
|
size: "sm",
|
|
@@ -2019,34 +2081,34 @@ function CTAModal(props) {
|
|
|
2019
2081
|
"--dialog-content-min-h": "auto"
|
|
2020
2082
|
},
|
|
2021
2083
|
children: [
|
|
2022
|
-
/* @__PURE__ */ (0,
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2024
|
-
/* @__PURE__ */ (0,
|
|
2025
|
-
/* @__PURE__ */ (0,
|
|
2084
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogCloseIconTrigger, {}),
|
|
2085
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
|
|
2086
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx4.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2026
2088
|
Avatar2,
|
|
2027
2089
|
{
|
|
2028
2090
|
gradient: "charon-light",
|
|
2029
|
-
fallback: /* @__PURE__ */ (0,
|
|
2091
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2030
2092
|
Show,
|
|
2031
2093
|
{
|
|
2032
2094
|
when: confirmIcon,
|
|
2033
|
-
fallback: /* @__PURE__ */ (0,
|
|
2095
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FallbackIcon, { size: 24 }),
|
|
2034
2096
|
children: confirmIcon
|
|
2035
2097
|
}
|
|
2036
2098
|
)
|
|
2037
2099
|
}
|
|
2038
2100
|
),
|
|
2039
|
-
/* @__PURE__ */ (0,
|
|
2040
|
-
/* @__PURE__ */ (0,
|
|
2101
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
2102
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
2041
2103
|
] }) }),
|
|
2042
|
-
/* @__PURE__ */ (0,
|
|
2104
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx4.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(For, { each: content == null ? void 0 : content.actions._actions, children: (action, index) => {
|
|
2043
2105
|
var _a;
|
|
2044
|
-
return /* @__PURE__ */ (0,
|
|
2106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2045
2107
|
Show,
|
|
2046
2108
|
{
|
|
2047
2109
|
when: ((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.type) === "btnAction",
|
|
2048
|
-
fallback: /* @__PURE__ */ (0,
|
|
2049
|
-
children: /* @__PURE__ */ (0,
|
|
2110
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TriggerItem, { asChild: true, children: action }),
|
|
2111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TriggerItem, { "data-index": index, onClick: handleActionClick, children: action == null ? void 0 : action.text })
|
|
2050
2112
|
},
|
|
2051
2113
|
index
|
|
2052
2114
|
);
|
|
@@ -2086,31 +2148,31 @@ function createCTAModalActions(providedActions) {
|
|
|
2086
2148
|
|
|
2087
2149
|
// src/components/date-picker/primitives.tsx
|
|
2088
2150
|
var import_date_picker = require("@ark-ui/react/date-picker");
|
|
2089
|
-
var
|
|
2090
|
-
var { withSlotRecipe:
|
|
2091
|
-
var DatePickerLabel =
|
|
2092
|
-
var DatePickerControl =
|
|
2093
|
-
var DatePickerInputEl =
|
|
2094
|
-
var DatePickerTrigger =
|
|
2095
|
-
var DatePickerContent =
|
|
2096
|
-
var DatePickerViewControl =
|
|
2151
|
+
var import_recipes22 = require("styled-system/recipes");
|
|
2152
|
+
var { withSlotRecipe: withSlotRecipe11, withNoRecipe: withNoRecipe6 } = createCerberusPrimitive(import_recipes22.datePicker);
|
|
2153
|
+
var DatePickerLabel = withSlotRecipe11(import_date_picker.DatePicker.Label, "label");
|
|
2154
|
+
var DatePickerControl = withSlotRecipe11(import_date_picker.DatePicker.Control, "control");
|
|
2155
|
+
var DatePickerInputEl = withSlotRecipe11(import_date_picker.DatePicker.Input, "input");
|
|
2156
|
+
var DatePickerTrigger = withSlotRecipe11(import_date_picker.DatePicker.Trigger, "trigger");
|
|
2157
|
+
var DatePickerContent = withSlotRecipe11(import_date_picker.DatePicker.Content, "content");
|
|
2158
|
+
var DatePickerViewControl = withSlotRecipe11(
|
|
2097
2159
|
import_date_picker.DatePicker.Control,
|
|
2098
2160
|
"viewControl"
|
|
2099
2161
|
);
|
|
2100
|
-
var DatePickerRangeText =
|
|
2162
|
+
var DatePickerRangeText = withSlotRecipe11(
|
|
2101
2163
|
import_date_picker.DatePicker.RangeText,
|
|
2102
2164
|
"rangeText"
|
|
2103
2165
|
);
|
|
2104
|
-
var DatePickerTable =
|
|
2105
|
-
var DatePickerTableHeader =
|
|
2166
|
+
var DatePickerTable = withSlotRecipe11(import_date_picker.DatePicker.Table, "table");
|
|
2167
|
+
var DatePickerTableHeader = withSlotRecipe11(
|
|
2106
2168
|
import_date_picker.DatePicker.TableHeader,
|
|
2107
2169
|
"tableHeader"
|
|
2108
2170
|
);
|
|
2109
|
-
var DatePickerTableCell =
|
|
2171
|
+
var DatePickerTableCell = withSlotRecipe11(
|
|
2110
2172
|
import_date_picker.DatePicker.TableCell,
|
|
2111
2173
|
"tableCell"
|
|
2112
2174
|
);
|
|
2113
|
-
var DatePickerTableCellTrigger =
|
|
2175
|
+
var DatePickerTableCellTrigger = withSlotRecipe11(
|
|
2114
2176
|
import_date_picker.DatePicker.TableCellTrigger,
|
|
2115
2177
|
"tableCellTrigger"
|
|
2116
2178
|
);
|
|
@@ -2157,9 +2219,9 @@ var DatePickerParts = {
|
|
|
2157
2219
|
};
|
|
2158
2220
|
|
|
2159
2221
|
// src/components/date-picker/date-picker.tsx
|
|
2160
|
-
var
|
|
2222
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2161
2223
|
function DatePicker2(props) {
|
|
2162
|
-
return /* @__PURE__ */ (0,
|
|
2224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2163
2225
|
DatePickerParts.Root,
|
|
2164
2226
|
{
|
|
2165
2227
|
...props,
|
|
@@ -2171,19 +2233,19 @@ function DatePicker2(props) {
|
|
|
2171
2233
|
}
|
|
2172
2234
|
|
|
2173
2235
|
// src/components/date-picker/trigger.tsx
|
|
2174
|
-
var
|
|
2236
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2175
2237
|
function DatePickerTrigger2(props) {
|
|
2176
2238
|
const { icons } = useCerberusContext();
|
|
2177
2239
|
const { calendar: CalendarIcon } = icons;
|
|
2178
|
-
return /* @__PURE__ */ (0,
|
|
2240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DatePickerParts.Trigger, { ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IconButton, { ariaLabel: "Open calendar", size: "sm", usage: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CalendarIcon, {}) }) });
|
|
2179
2241
|
}
|
|
2180
2242
|
|
|
2181
2243
|
// src/components/date-picker/input.tsx
|
|
2182
|
-
var
|
|
2244
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2183
2245
|
function DatePickerInput(props) {
|
|
2184
|
-
return /* @__PURE__ */ (0,
|
|
2185
|
-
/* @__PURE__ */ (0,
|
|
2186
|
-
/* @__PURE__ */ (0,
|
|
2246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(DatePickerParts.Control, { children: [
|
|
2247
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DatePickerTrigger2, {}),
|
|
2248
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2187
2249
|
DatePickerParts.Input,
|
|
2188
2250
|
{
|
|
2189
2251
|
...props,
|
|
@@ -2195,11 +2257,11 @@ function DatePickerInput(props) {
|
|
|
2195
2257
|
}
|
|
2196
2258
|
|
|
2197
2259
|
// src/components/date-picker/range-input.tsx
|
|
2198
|
-
var
|
|
2260
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2199
2261
|
function RangePickerInput(props) {
|
|
2200
|
-
return /* @__PURE__ */ (0,
|
|
2201
|
-
/* @__PURE__ */ (0,
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(DatePickerParts.Control, { "data-range": true, children: [
|
|
2263
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DatePickerTrigger2, {}),
|
|
2264
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2203
2265
|
DatePickerParts.Input,
|
|
2204
2266
|
{
|
|
2205
2267
|
...props,
|
|
@@ -2209,7 +2271,7 @@ function RangePickerInput(props) {
|
|
|
2209
2271
|
index: 0
|
|
2210
2272
|
}
|
|
2211
2273
|
),
|
|
2212
|
-
/* @__PURE__ */ (0,
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2213
2275
|
DatePickerParts.Input,
|
|
2214
2276
|
{
|
|
2215
2277
|
...props,
|
|
@@ -2224,21 +2286,21 @@ function RangePickerInput(props) {
|
|
|
2224
2286
|
}
|
|
2225
2287
|
|
|
2226
2288
|
// src/components/date-picker/content.tsx
|
|
2227
|
-
var
|
|
2289
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2228
2290
|
function DatePickerContent2(props) {
|
|
2229
2291
|
const { withModal, container, ...contentProps } = props;
|
|
2230
|
-
return /* @__PURE__ */ (0,
|
|
2292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Portal, { disabled: withModal ?? false, container, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePickerParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePickerParts.Content, { ...contentProps }) }) });
|
|
2231
2293
|
}
|
|
2232
2294
|
|
|
2233
2295
|
// src/components/date-picker/view-control-group.tsx
|
|
2234
2296
|
var import_css14 = require("styled-system/css");
|
|
2235
|
-
var
|
|
2297
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2236
2298
|
function DatePickerViewControlGroup(props) {
|
|
2237
2299
|
const { icons } = useCerberusContext();
|
|
2238
2300
|
const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2240
|
-
/* @__PURE__ */ (0,
|
|
2241
|
-
/* @__PURE__ */ (0,
|
|
2301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DatePickerParts.ViewControl, { ...props, children: [
|
|
2302
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DatePickerParts.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PrevIcon, {}) }) }),
|
|
2303
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DatePickerParts.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2242
2304
|
Button,
|
|
2243
2305
|
{
|
|
2244
2306
|
className: (0, import_css14.css)({
|
|
@@ -2248,15 +2310,15 @@ function DatePickerViewControlGroup(props) {
|
|
|
2248
2310
|
shape: "rounded",
|
|
2249
2311
|
size: "sm",
|
|
2250
2312
|
usage: "ghost",
|
|
2251
|
-
children: /* @__PURE__ */ (0,
|
|
2313
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DatePickerParts.RangeText, {})
|
|
2252
2314
|
}
|
|
2253
2315
|
) }),
|
|
2254
|
-
/* @__PURE__ */ (0,
|
|
2316
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DatePickerParts.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(NextIcon, {}) }) })
|
|
2255
2317
|
] });
|
|
2256
2318
|
}
|
|
2257
2319
|
|
|
2258
2320
|
// src/components/date-picker/day-view.tsx
|
|
2259
|
-
var
|
|
2321
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2260
2322
|
function DatePickerDayView(props) {
|
|
2261
2323
|
function isToday(date) {
|
|
2262
2324
|
const today2 = /* @__PURE__ */ new Date();
|
|
@@ -2274,11 +2336,11 @@ function DatePickerDayView(props) {
|
|
|
2274
2336
|
if (isPastDay(date)) return "past";
|
|
2275
2337
|
return "future";
|
|
2276
2338
|
}
|
|
2277
|
-
return /* @__PURE__ */ (0,
|
|
2278
|
-
/* @__PURE__ */ (0,
|
|
2279
|
-
/* @__PURE__ */ (0,
|
|
2280
|
-
/* @__PURE__ */ (0,
|
|
2281
|
-
/* @__PURE__ */ (0,
|
|
2339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.View, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.Context, { children: (datePickerData) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
2340
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerViewControlGroup, {}),
|
|
2341
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(DatePickerParts.Table, { children: [
|
|
2342
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableRow, { children: datePickerData.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableHeader, { children: weekDay.narrow }, id)) }) }),
|
|
2343
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableBody, { children: datePickerData.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.TableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2282
2344
|
DatePickerParts.TableCellTrigger,
|
|
2283
2345
|
{
|
|
2284
2346
|
"data-date": getDayValue(day),
|
|
@@ -2290,30 +2352,30 @@ function DatePickerDayView(props) {
|
|
|
2290
2352
|
}
|
|
2291
2353
|
|
|
2292
2354
|
// src/components/date-picker/month-view.tsx
|
|
2293
|
-
var
|
|
2355
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2294
2356
|
function DatePickerMonthView(props) {
|
|
2295
|
-
return /* @__PURE__ */ (0,
|
|
2296
|
-
/* @__PURE__ */ (0,
|
|
2297
|
-
/* @__PURE__ */ (0,
|
|
2357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.Context, { children: (datePicker2) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
2358
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerViewControlGroup, {}),
|
|
2359
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.Table, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.TableBody, { children: datePicker2.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.TableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.TableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
|
|
2298
2360
|
] }) }) });
|
|
2299
2361
|
}
|
|
2300
2362
|
|
|
2301
2363
|
// src/components/date-picker/year-view.tsx
|
|
2302
|
-
var
|
|
2364
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2303
2365
|
function DatePickerYearView(props) {
|
|
2304
|
-
return /* @__PURE__ */ (0,
|
|
2305
|
-
/* @__PURE__ */ (0,
|
|
2306
|
-
/* @__PURE__ */ (0,
|
|
2366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.Context, { children: (datePicker2) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
2367
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerViewControlGroup, {}),
|
|
2368
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.Table, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableBody, { children: datePicker2.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
|
|
2307
2369
|
] }) }) });
|
|
2308
2370
|
}
|
|
2309
2371
|
|
|
2310
2372
|
// src/components/date-picker/calendar.tsx
|
|
2311
|
-
var
|
|
2373
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2312
2374
|
function DatePickerCalendar(props) {
|
|
2313
|
-
return /* @__PURE__ */ (0,
|
|
2314
|
-
/* @__PURE__ */ (0,
|
|
2315
|
-
/* @__PURE__ */ (0,
|
|
2316
|
-
/* @__PURE__ */ (0,
|
|
2375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DatePickerContent2, { ...props, children: [
|
|
2376
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerDayView, {}),
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerMonthView, { view: "month" }),
|
|
2378
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerYearView, { view: "year" })
|
|
2317
2379
|
] });
|
|
2318
2380
|
}
|
|
2319
2381
|
|
|
@@ -2323,10 +2385,10 @@ var import_date = require("@internationalized/date");
|
|
|
2323
2385
|
|
|
2324
2386
|
// src/context/feature-flags.tsx
|
|
2325
2387
|
var import_react17 = require("react");
|
|
2326
|
-
var
|
|
2388
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2327
2389
|
var FeatureFlagContext = (0, import_react17.createContext)(null);
|
|
2328
2390
|
function FeatureFlags(props) {
|
|
2329
|
-
return /* @__PURE__ */ (0,
|
|
2391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
|
|
2330
2392
|
}
|
|
2331
2393
|
function useFeatureFlags(key) {
|
|
2332
2394
|
const context = (0, import_react17.useContext)(FeatureFlagContext);
|
|
@@ -2339,29 +2401,29 @@ function useFeatureFlags(key) {
|
|
|
2339
2401
|
}
|
|
2340
2402
|
|
|
2341
2403
|
// src/components/feature-flag/feature-flag.tsx
|
|
2342
|
-
var
|
|
2404
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2343
2405
|
function FeatureFlag(props) {
|
|
2344
2406
|
const showContent = useFeatureFlags(props.flag);
|
|
2345
|
-
return /* @__PURE__ */ (0,
|
|
2407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Show, { when: showContent, children: props.children });
|
|
2346
2408
|
}
|
|
2347
2409
|
|
|
2348
2410
|
// src/components/fieldset/primitives.tsx
|
|
2349
2411
|
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
2350
|
-
var
|
|
2351
|
-
var { withSlotRecipe:
|
|
2352
|
-
var FieldsetRoot =
|
|
2412
|
+
var import_recipes23 = require("styled-system/recipes");
|
|
2413
|
+
var { withSlotRecipe: withSlotRecipe12 } = createCerberusPrimitive(import_recipes23.fieldset);
|
|
2414
|
+
var FieldsetRoot = withSlotRecipe12(
|
|
2353
2415
|
import_fieldset.Fieldset.Root,
|
|
2354
2416
|
"root"
|
|
2355
2417
|
);
|
|
2356
|
-
var FieldsetLegend =
|
|
2418
|
+
var FieldsetLegend = withSlotRecipe12(
|
|
2357
2419
|
import_fieldset.Fieldset.Legend,
|
|
2358
2420
|
"legend"
|
|
2359
2421
|
);
|
|
2360
|
-
var FieldsetHelperText =
|
|
2422
|
+
var FieldsetHelperText = withSlotRecipe12(
|
|
2361
2423
|
import_fieldset.Fieldset.HelperText,
|
|
2362
2424
|
"helperText"
|
|
2363
2425
|
);
|
|
2364
|
-
var FieldsetErrorText =
|
|
2426
|
+
var FieldsetErrorText = withSlotRecipe12(
|
|
2365
2427
|
import_fieldset.Fieldset.ErrorText,
|
|
2366
2428
|
"errorText"
|
|
2367
2429
|
);
|
|
@@ -2375,32 +2437,32 @@ var FieldsetParts = {
|
|
|
2375
2437
|
};
|
|
2376
2438
|
|
|
2377
2439
|
// src/components/fieldset/fieldset.tsx
|
|
2378
|
-
var
|
|
2440
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2379
2441
|
function Fieldset2(props) {
|
|
2380
2442
|
const [fieldsetProps, { usage }, rootProps] = splitProps(
|
|
2381
2443
|
props,
|
|
2382
2444
|
["legend", "helperText", "errorText", "children"],
|
|
2383
2445
|
["usage"]
|
|
2384
2446
|
);
|
|
2385
|
-
return /* @__PURE__ */ (0,
|
|
2386
|
-
/* @__PURE__ */ (0,
|
|
2387
|
-
/* @__PURE__ */ (0,
|
|
2447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(FieldsetParts.Root, { ...rootProps, children: [
|
|
2448
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FieldsetParts.Legend, { usage, children: fieldsetProps.legend }),
|
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FieldsetParts.HelperText, { usage, children: fieldsetProps.helperText }),
|
|
2388
2450
|
fieldsetProps.children,
|
|
2389
|
-
/* @__PURE__ */ (0,
|
|
2451
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(FieldsetParts.ErrorText, { children: fieldsetProps.errorText })
|
|
2390
2452
|
] });
|
|
2391
2453
|
}
|
|
2392
2454
|
|
|
2393
2455
|
// src/components/file-upload/file-status.tsx
|
|
2394
2456
|
var import_react18 = require("react");
|
|
2395
|
-
var
|
|
2457
|
+
var import_recipes25 = require("styled-system/recipes");
|
|
2396
2458
|
var import_css15 = require("styled-system/css");
|
|
2397
2459
|
var import_patterns3 = require("styled-system/patterns");
|
|
2398
2460
|
|
|
2399
2461
|
// src/components/progress/primitives.ts
|
|
2400
2462
|
var import_factory9 = require("@ark-ui/react/factory");
|
|
2401
|
-
var
|
|
2402
|
-
var { withSlotRecipe:
|
|
2403
|
-
var ProgressBarRoot =
|
|
2463
|
+
var import_recipes24 = require("styled-system/recipes");
|
|
2464
|
+
var { withSlotRecipe: withSlotRecipe13 } = createCerberusPrimitive(import_recipes24.progressBar);
|
|
2465
|
+
var ProgressBarRoot = withSlotRecipe13(
|
|
2404
2466
|
import_factory9.ark.div,
|
|
2405
2467
|
"root",
|
|
2406
2468
|
{
|
|
@@ -2411,26 +2473,26 @@ var ProgressBarRoot = withSlotRecipe12(
|
|
|
2411
2473
|
}
|
|
2412
2474
|
}
|
|
2413
2475
|
);
|
|
2414
|
-
var ProgressBarBar =
|
|
2476
|
+
var ProgressBarBar = withSlotRecipe13(
|
|
2415
2477
|
import_factory9.ark.div,
|
|
2416
2478
|
"bar"
|
|
2417
2479
|
);
|
|
2418
2480
|
|
|
2419
2481
|
// src/components/progress/progress-bar.tsx
|
|
2420
|
-
var
|
|
2482
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2421
2483
|
function ProgressBar(props) {
|
|
2422
2484
|
const { indeterminate, now, label: label4, ...nativeProps } = props;
|
|
2423
2485
|
const nowClamped = Math.min(100, Math.max(0, now || 0));
|
|
2424
2486
|
const width = {
|
|
2425
2487
|
width: indeterminate ? "50%" : `${nowClamped}%`
|
|
2426
2488
|
};
|
|
2427
|
-
return /* @__PURE__ */ (0,
|
|
2489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2428
2490
|
ProgressBarRoot,
|
|
2429
2491
|
{
|
|
2430
2492
|
...nativeProps,
|
|
2431
2493
|
"aria-label": label4,
|
|
2432
2494
|
"aria-valuenow": indeterminate ? 0 : nowClamped,
|
|
2433
|
-
children: /* @__PURE__ */ (0,
|
|
2495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2434
2496
|
ProgressBarBar,
|
|
2435
2497
|
{
|
|
2436
2498
|
...indeterminate && { "data-state": "indeterminate" },
|
|
@@ -2443,7 +2505,7 @@ function ProgressBar(props) {
|
|
|
2443
2505
|
}
|
|
2444
2506
|
|
|
2445
2507
|
// src/components/file-upload/file-status.tsx
|
|
2446
|
-
var
|
|
2508
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2447
2509
|
var processStatus = /* @__PURE__ */ ((processStatus2) => {
|
|
2448
2510
|
processStatus2["TODO"] = "todo";
|
|
2449
2511
|
processStatus2["PROCESSING"] = "processing";
|
|
@@ -2459,15 +2521,15 @@ function FileStatus(props) {
|
|
|
2459
2521
|
const styles = (0, import_react18.useMemo)(() => {
|
|
2460
2522
|
switch (status) {
|
|
2461
2523
|
case "todo" /* TODO */:
|
|
2462
|
-
return (0,
|
|
2524
|
+
return (0, import_recipes25.fileStatus)({ status: "todo" });
|
|
2463
2525
|
case "processing" /* PROCESSING */:
|
|
2464
|
-
return (0,
|
|
2526
|
+
return (0, import_recipes25.fileStatus)({ status: "processing" });
|
|
2465
2527
|
case "done" /* DONE */:
|
|
2466
|
-
return (0,
|
|
2528
|
+
return (0, import_recipes25.fileStatus)({ status: "done" });
|
|
2467
2529
|
case "error" /* ERROR */:
|
|
2468
|
-
return (0,
|
|
2530
|
+
return (0, import_recipes25.fileStatus)({ status: "error" });
|
|
2469
2531
|
default:
|
|
2470
|
-
return (0,
|
|
2532
|
+
return (0, import_recipes25.fileStatus)();
|
|
2471
2533
|
}
|
|
2472
2534
|
}, [status]);
|
|
2473
2535
|
const handleClick = (0, import_react18.useCallback)(
|
|
@@ -2479,20 +2541,20 @@ function FileStatus(props) {
|
|
|
2479
2541
|
},
|
|
2480
2542
|
[onClick, status]
|
|
2481
2543
|
);
|
|
2482
|
-
return /* @__PURE__ */ (0,
|
|
2544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
2483
2545
|
"div",
|
|
2484
2546
|
{
|
|
2485
2547
|
...nativeProps,
|
|
2486
2548
|
className: (0, import_css15.cx)(nativeProps.className, styles.root, (0, import_patterns3.hstack)()),
|
|
2487
2549
|
children: [
|
|
2488
|
-
/* @__PURE__ */ (0,
|
|
2550
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2489
2551
|
Avatar2,
|
|
2490
2552
|
{
|
|
2491
2553
|
gradient: modalIconPalette,
|
|
2492
|
-
fallback: /* @__PURE__ */ (0,
|
|
2554
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(MatchFileStatusIcon, { size: 24, status })
|
|
2493
2555
|
}
|
|
2494
2556
|
),
|
|
2495
|
-
/* @__PURE__ */ (0,
|
|
2557
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
2496
2558
|
"div",
|
|
2497
2559
|
{
|
|
2498
2560
|
className: (0, import_patterns3.vstack)({
|
|
@@ -2501,7 +2563,7 @@ function FileStatus(props) {
|
|
|
2501
2563
|
w: "full"
|
|
2502
2564
|
}),
|
|
2503
2565
|
children: [
|
|
2504
|
-
/* @__PURE__ */ (0,
|
|
2566
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2505
2567
|
"small",
|
|
2506
2568
|
{
|
|
2507
2569
|
className: (0, import_css15.css)({
|
|
@@ -2511,7 +2573,7 @@ function FileStatus(props) {
|
|
|
2511
2573
|
children: file
|
|
2512
2574
|
}
|
|
2513
2575
|
),
|
|
2514
|
-
/* @__PURE__ */ (0,
|
|
2576
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2515
2577
|
ProgressBar,
|
|
2516
2578
|
{
|
|
2517
2579
|
id: props.id,
|
|
@@ -2520,27 +2582,27 @@ function FileStatus(props) {
|
|
|
2520
2582
|
size: "sm"
|
|
2521
2583
|
}
|
|
2522
2584
|
),
|
|
2523
|
-
/* @__PURE__ */ (0,
|
|
2585
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Field3, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2524
2586
|
FieldHelperText,
|
|
2525
2587
|
{
|
|
2526
2588
|
className: (0, import_css15.css)({
|
|
2527
2589
|
color: "page.text.100"
|
|
2528
2590
|
}),
|
|
2529
2591
|
id: `help:${file}`,
|
|
2530
|
-
children: /* @__PURE__ */ (0,
|
|
2592
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(MatchFileStatusText, { status, now })
|
|
2531
2593
|
}
|
|
2532
2594
|
) })
|
|
2533
2595
|
]
|
|
2534
2596
|
}
|
|
2535
2597
|
),
|
|
2536
|
-
/* @__PURE__ */ (0,
|
|
2598
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2537
2599
|
IconButton,
|
|
2538
2600
|
{
|
|
2539
2601
|
ariaLabel: actionLabel,
|
|
2540
2602
|
onClick: handleClick,
|
|
2541
2603
|
palette,
|
|
2542
2604
|
size: "sm",
|
|
2543
|
-
children: /* @__PURE__ */ (0,
|
|
2605
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(MatchStatusAction, { status })
|
|
2544
2606
|
}
|
|
2545
2607
|
)
|
|
2546
2608
|
]
|
|
@@ -2557,13 +2619,13 @@ function MatchFileStatusIcon(props) {
|
|
|
2557
2619
|
} = icons;
|
|
2558
2620
|
switch (props.status) {
|
|
2559
2621
|
case "todo" /* TODO */:
|
|
2560
|
-
return /* @__PURE__ */ (0,
|
|
2622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TodoIcon, { size: props.size });
|
|
2561
2623
|
case "processing" /* PROCESSING */:
|
|
2562
|
-
return /* @__PURE__ */ (0,
|
|
2624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FileUploaderIcon, { size: props.size });
|
|
2563
2625
|
case "done" /* DONE */:
|
|
2564
|
-
return /* @__PURE__ */ (0,
|
|
2626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DoneIcon, { size: props.size });
|
|
2565
2627
|
case "error" /* ERROR */:
|
|
2566
|
-
return /* @__PURE__ */ (0,
|
|
2628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InvalidIcon, { size: props.size });
|
|
2567
2629
|
default:
|
|
2568
2630
|
throw new Error("Unknown status");
|
|
2569
2631
|
}
|
|
@@ -2588,11 +2650,11 @@ function MatchStatusAction(props) {
|
|
|
2588
2650
|
switch (props.status) {
|
|
2589
2651
|
case "todo" /* TODO */:
|
|
2590
2652
|
case "processing" /* PROCESSING */:
|
|
2591
|
-
return /* @__PURE__ */ (0,
|
|
2653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CloseIcon, {});
|
|
2592
2654
|
case "error" /* ERROR */:
|
|
2593
|
-
return /* @__PURE__ */ (0,
|
|
2655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RedoIcon, {});
|
|
2594
2656
|
case "done" /* DONE */:
|
|
2595
|
-
return /* @__PURE__ */ (0,
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TrashIcon, {});
|
|
2596
2658
|
default:
|
|
2597
2659
|
throw new Error("Invalid status");
|
|
2598
2660
|
}
|
|
@@ -2640,14 +2702,14 @@ function getModalIconPalette(status) {
|
|
|
2640
2702
|
// src/components/file-upload/file-uploader.tsx
|
|
2641
2703
|
var import_css16 = require("styled-system/css");
|
|
2642
2704
|
var import_patterns4 = require("styled-system/patterns");
|
|
2643
|
-
var
|
|
2644
|
-
var
|
|
2705
|
+
var import_recipes26 = require("styled-system/recipes");
|
|
2706
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2645
2707
|
function FileUploader(props) {
|
|
2646
2708
|
var _a;
|
|
2647
2709
|
const { icons } = useCerberusContext();
|
|
2648
|
-
const styles = (0,
|
|
2710
|
+
const styles = (0, import_recipes26.fileUploader)();
|
|
2649
2711
|
const { waitingFileUploader: Icon } = icons;
|
|
2650
|
-
return /* @__PURE__ */ (0,
|
|
2712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2651
2713
|
"div",
|
|
2652
2714
|
{
|
|
2653
2715
|
...props.disabled ? { "aria-disabled": true } : {},
|
|
@@ -2658,8 +2720,8 @@ function FileUploader(props) {
|
|
|
2658
2720
|
styles.container
|
|
2659
2721
|
),
|
|
2660
2722
|
children: [
|
|
2661
|
-
/* @__PURE__ */ (0,
|
|
2662
|
-
/* @__PURE__ */ (0,
|
|
2723
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Avatar2, { gradient: "charon-light", fallback: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, {}) }) }),
|
|
2724
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2663
2725
|
"label",
|
|
2664
2726
|
{
|
|
2665
2727
|
className: (0, import_css16.cx)(
|
|
@@ -2670,12 +2732,12 @@ function FileUploader(props) {
|
|
|
2670
2732
|
),
|
|
2671
2733
|
htmlFor: props.name,
|
|
2672
2734
|
children: [
|
|
2673
|
-
/* @__PURE__ */ (0,
|
|
2735
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Show, { when: props.heading, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: styles.heading, children: props.heading }) }),
|
|
2674
2736
|
"Import ",
|
|
2675
2737
|
(_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
|
|
2676
2738
|
" files",
|
|
2677
|
-
/* @__PURE__ */ (0,
|
|
2678
|
-
/* @__PURE__ */ (0,
|
|
2739
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: styles.description, children: "Click to select files" }),
|
|
2740
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2679
2741
|
"input",
|
|
2680
2742
|
{
|
|
2681
2743
|
...props,
|
|
@@ -2693,9 +2755,9 @@ function FileUploader(props) {
|
|
|
2693
2755
|
|
|
2694
2756
|
// src/components/menu/primitives.ts
|
|
2695
2757
|
var import_react19 = require("@ark-ui/react");
|
|
2696
|
-
var
|
|
2697
|
-
var { withSlotRecipe:
|
|
2698
|
-
var MenuRoot =
|
|
2758
|
+
var import_recipes27 = require("styled-system/recipes");
|
|
2759
|
+
var { withSlotRecipe: withSlotRecipe14, withNoRecipe: withNoRecipe7 } = createCerberusPrimitive(import_recipes27.menu);
|
|
2760
|
+
var MenuRoot = withSlotRecipe14(import_react19.Menu.Root, "root");
|
|
2699
2761
|
var MenuTriggerEl = withNoRecipe7(import_react19.Menu.Trigger);
|
|
2700
2762
|
var MenuTriggerItem = withNoRecipe7(
|
|
2701
2763
|
import_react19.Menu.TriggerItem
|
|
@@ -2704,31 +2766,31 @@ var MenuIndicator = withNoRecipe7(import_react19.Menu.Indicator);
|
|
|
2704
2766
|
var MenuPositioner = withNoRecipe7(
|
|
2705
2767
|
import_react19.Menu.Positioner
|
|
2706
2768
|
);
|
|
2707
|
-
var MenuContentEl =
|
|
2769
|
+
var MenuContentEl = withSlotRecipe14(
|
|
2708
2770
|
import_react19.Menu.Content,
|
|
2709
2771
|
"content"
|
|
2710
2772
|
);
|
|
2711
|
-
var MenuItemEl =
|
|
2773
|
+
var MenuItemEl = withSlotRecipe14(import_react19.Menu.Item, "item");
|
|
2712
2774
|
var MenuItemGroupEl = withNoRecipe7(
|
|
2713
2775
|
import_react19.Menu.ItemGroup
|
|
2714
2776
|
);
|
|
2715
|
-
var MenuItemGroupLabelEl =
|
|
2777
|
+
var MenuItemGroupLabelEl = withSlotRecipe14(
|
|
2716
2778
|
import_react19.Menu.ItemGroupLabel,
|
|
2717
2779
|
"itemGroupLabel"
|
|
2718
2780
|
);
|
|
2719
|
-
var MenuSeparatorEl =
|
|
2781
|
+
var MenuSeparatorEl = withSlotRecipe14(
|
|
2720
2782
|
import_react19.Menu.Separator,
|
|
2721
2783
|
"separator"
|
|
2722
2784
|
);
|
|
2723
2785
|
|
|
2724
2786
|
// src/components/menu/menu.tsx
|
|
2725
|
-
var
|
|
2787
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2726
2788
|
var Menu = MenuRoot;
|
|
2727
2789
|
function MenuTrigger(props) {
|
|
2728
|
-
return /* @__PURE__ */ (0,
|
|
2790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MenuTriggerEl, { ...props, asChild: true });
|
|
2729
2791
|
}
|
|
2730
2792
|
function MenuContent(props) {
|
|
2731
|
-
return /* @__PURE__ */ (0,
|
|
2793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MenuPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MenuContentEl, { ...props }) });
|
|
2732
2794
|
}
|
|
2733
2795
|
var MenuItem = MenuItemEl;
|
|
2734
2796
|
var MenuItemGroup = MenuItemGroupEl;
|
|
@@ -2737,23 +2799,23 @@ var MenuSeparator = MenuSeparatorEl;
|
|
|
2737
2799
|
|
|
2738
2800
|
// src/components/notifications/primitives.tsx
|
|
2739
2801
|
var import_toast = require("@ark-ui/react/toast");
|
|
2740
|
-
var
|
|
2741
|
-
var { withSlotRecipe:
|
|
2802
|
+
var import_recipes28 = require("styled-system/recipes");
|
|
2803
|
+
var { withSlotRecipe: withSlotRecipe15 } = createCerberusPrimitive(import_recipes28.toast);
|
|
2742
2804
|
var NotificationProvider = import_toast.Toaster;
|
|
2743
|
-
var NotificationRoot =
|
|
2805
|
+
var NotificationRoot = withSlotRecipe15(
|
|
2744
2806
|
import_toast.Toast.Root,
|
|
2745
2807
|
"root"
|
|
2746
2808
|
);
|
|
2747
|
-
var NotificationHeading =
|
|
2809
|
+
var NotificationHeading = withSlotRecipe15(
|
|
2748
2810
|
import_toast.Toast.Title,
|
|
2749
2811
|
"title"
|
|
2750
2812
|
);
|
|
2751
|
-
var NotificationDescription =
|
|
2752
|
-
var NotificationCloseTrigger =
|
|
2813
|
+
var NotificationDescription = withSlotRecipe15(import_toast.Toast.Description, "description");
|
|
2814
|
+
var NotificationCloseTrigger = withSlotRecipe15(
|
|
2753
2815
|
import_toast.Toast.CloseTrigger,
|
|
2754
2816
|
"closeTrigger"
|
|
2755
2817
|
);
|
|
2756
|
-
var NotificationActionTrigger =
|
|
2818
|
+
var NotificationActionTrigger = withSlotRecipe15(
|
|
2757
2819
|
import_toast.Toast.ActionTrigger,
|
|
2758
2820
|
"actionTrigger"
|
|
2759
2821
|
);
|
|
@@ -2773,49 +2835,49 @@ var import_jsx5 = require("styled-system/jsx");
|
|
|
2773
2835
|
|
|
2774
2836
|
// src/components/notifications/match-icon.tsx
|
|
2775
2837
|
var import_factory10 = require("@ark-ui/react/factory");
|
|
2776
|
-
var
|
|
2777
|
-
var
|
|
2838
|
+
var import_recipes29 = require("styled-system/recipes");
|
|
2839
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2778
2840
|
function MatchNotificationIcon(props) {
|
|
2779
2841
|
const { icons } = useCerberusContext();
|
|
2780
2842
|
const type = props.type || "info";
|
|
2781
|
-
const styles = (0,
|
|
2843
|
+
const styles = (0, import_recipes29.toast)();
|
|
2782
2844
|
const key = `${type}Notification`;
|
|
2783
2845
|
const Icon = icons[key] || ToastLoadingIcon;
|
|
2784
|
-
return /* @__PURE__ */ (0,
|
|
2846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_factory10.ark.div, { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, {}) });
|
|
2785
2847
|
}
|
|
2786
2848
|
function ToastLoadingIcon() {
|
|
2787
|
-
return /* @__PURE__ */ (0,
|
|
2849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner, { size: "1rem" });
|
|
2788
2850
|
}
|
|
2789
2851
|
|
|
2790
2852
|
// src/components/notifications/close-trigger.tsx
|
|
2791
|
-
var
|
|
2853
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2792
2854
|
function ToastCloseTrigger(props) {
|
|
2793
2855
|
const { icons } = useCerberusContext();
|
|
2794
2856
|
const { close: CloseIcon } = icons;
|
|
2795
|
-
return /* @__PURE__ */ (0,
|
|
2857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(NotificationParts.CloseTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CloseIcon, {}) });
|
|
2796
2858
|
}
|
|
2797
2859
|
|
|
2798
2860
|
// src/components/notifications/center.tsx
|
|
2799
|
-
var
|
|
2861
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2800
2862
|
var toaster = (0, import_toast2.createToaster)({
|
|
2801
2863
|
gap: 16,
|
|
2802
2864
|
overlap: true,
|
|
2803
2865
|
placement: "top-end"
|
|
2804
2866
|
});
|
|
2805
2867
|
function NotificationCenter() {
|
|
2806
|
-
return /* @__PURE__ */ (0,
|
|
2868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_toast2.Toaster, { toaster, children: (toast3) => {
|
|
2807
2869
|
var _a;
|
|
2808
|
-
return /* @__PURE__ */ (0,
|
|
2809
|
-
/* @__PURE__ */ (0,
|
|
2870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(NotificationParts.Root, { children: [
|
|
2871
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2810
2872
|
MatchNotificationIcon,
|
|
2811
2873
|
{
|
|
2812
2874
|
type: toast3.type
|
|
2813
2875
|
}
|
|
2814
2876
|
),
|
|
2815
|
-
/* @__PURE__ */ (0,
|
|
2816
|
-
/* @__PURE__ */ (0,
|
|
2817
|
-
/* @__PURE__ */ (0,
|
|
2818
|
-
/* @__PURE__ */ (0,
|
|
2877
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx5.Box, { flex: "1", paddingBlock: "sm", children: [
|
|
2878
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(NotificationParts.Heading, { children: toast3.title }),
|
|
2879
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(NotificationParts.Description, { children: toast3.description }),
|
|
2880
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Show, { when: toast3.action, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(NotificationParts.ActionTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2819
2881
|
Button,
|
|
2820
2882
|
{
|
|
2821
2883
|
palette: toast3.type,
|
|
@@ -2825,7 +2887,7 @@ function NotificationCenter() {
|
|
|
2825
2887
|
}
|
|
2826
2888
|
) }) })
|
|
2827
2889
|
] }),
|
|
2828
|
-
/* @__PURE__ */ (0,
|
|
2890
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastCloseTrigger, {})
|
|
2829
2891
|
] }, toast3.id);
|
|
2830
2892
|
} });
|
|
2831
2893
|
}
|
|
@@ -2843,29 +2905,29 @@ function useNotificationCenter() {
|
|
|
2843
2905
|
|
|
2844
2906
|
// src/components/radio/primitives.tsx
|
|
2845
2907
|
var import_radio_group = require("@ark-ui/react/radio-group");
|
|
2846
|
-
var
|
|
2847
|
-
var { withSlotRecipe:
|
|
2848
|
-
var RadioGroupRoot =
|
|
2908
|
+
var import_recipes30 = require("styled-system/recipes");
|
|
2909
|
+
var { withSlotRecipe: withSlotRecipe16 } = createCerberusPrimitive(import_recipes30.radioGroup);
|
|
2910
|
+
var RadioGroupRoot = withSlotRecipe16(
|
|
2849
2911
|
import_radio_group.RadioGroup.Root,
|
|
2850
2912
|
"root"
|
|
2851
2913
|
);
|
|
2852
|
-
var RadioGroupLabel =
|
|
2914
|
+
var RadioGroupLabel = withSlotRecipe16(
|
|
2853
2915
|
import_radio_group.RadioGroup.Label,
|
|
2854
2916
|
"label"
|
|
2855
2917
|
);
|
|
2856
|
-
var RadioGroupIndicator =
|
|
2918
|
+
var RadioGroupIndicator = withSlotRecipe16(
|
|
2857
2919
|
import_radio_group.RadioGroup.Indicator,
|
|
2858
2920
|
"indicator"
|
|
2859
2921
|
);
|
|
2860
|
-
var RadioGroupItem =
|
|
2922
|
+
var RadioGroupItem = withSlotRecipe16(
|
|
2861
2923
|
import_radio_group.RadioGroup.Item,
|
|
2862
2924
|
"item"
|
|
2863
2925
|
);
|
|
2864
|
-
var RadioGroupItemText =
|
|
2926
|
+
var RadioGroupItemText = withSlotRecipe16(
|
|
2865
2927
|
import_radio_group.RadioGroup.ItemText,
|
|
2866
2928
|
"itemText"
|
|
2867
2929
|
);
|
|
2868
|
-
var RadioGroupItemControl =
|
|
2930
|
+
var RadioGroupItemControl = withSlotRecipe16(
|
|
2869
2931
|
import_radio_group.RadioGroup.ItemControl,
|
|
2870
2932
|
"itemControl"
|
|
2871
2933
|
);
|
|
@@ -2884,34 +2946,34 @@ var RadioParts = {
|
|
|
2884
2946
|
};
|
|
2885
2947
|
|
|
2886
2948
|
// src/components/radio/radio.tsx
|
|
2887
|
-
var
|
|
2949
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2888
2950
|
function Radio(props) {
|
|
2889
2951
|
const { size, children, ...groupProps } = props;
|
|
2890
|
-
return /* @__PURE__ */ (0,
|
|
2891
|
-
/* @__PURE__ */ (0,
|
|
2892
|
-
/* @__PURE__ */ (0,
|
|
2893
|
-
/* @__PURE__ */ (0,
|
|
2952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(RadioGroupItem, { ...groupProps, children: [
|
|
2953
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RadioGroupItemControl, { size }),
|
|
2954
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RadioGroupItemText, { size, children }),
|
|
2955
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RadioGroupItemHiddenInput, {})
|
|
2894
2956
|
] });
|
|
2895
2957
|
}
|
|
2896
2958
|
|
|
2897
2959
|
// src/components/rating/primitives.tsx
|
|
2898
2960
|
var import_rating_group = require("@ark-ui/react/rating-group");
|
|
2899
|
-
var
|
|
2900
|
-
var { withSlotRecipe:
|
|
2901
|
-
var RatingRoot =
|
|
2961
|
+
var import_recipes31 = require("styled-system/recipes");
|
|
2962
|
+
var { withSlotRecipe: withSlotRecipe17 } = createCerberusPrimitive(import_recipes31.ratingGroup);
|
|
2963
|
+
var RatingRoot = withSlotRecipe17(
|
|
2902
2964
|
import_rating_group.RatingGroup.Root,
|
|
2903
2965
|
"root"
|
|
2904
2966
|
);
|
|
2905
|
-
var RatingLabel =
|
|
2967
|
+
var RatingLabel = withSlotRecipe17(
|
|
2906
2968
|
import_rating_group.RatingGroup.Label,
|
|
2907
2969
|
"label"
|
|
2908
2970
|
);
|
|
2909
|
-
var RatingControl =
|
|
2971
|
+
var RatingControl = withSlotRecipe17(
|
|
2910
2972
|
import_rating_group.RatingGroup.Control,
|
|
2911
2973
|
"control"
|
|
2912
2974
|
);
|
|
2913
2975
|
var RatingContext = import_rating_group.RatingGroup.Context;
|
|
2914
|
-
var RatingItem =
|
|
2976
|
+
var RatingItem = withSlotRecipe17(
|
|
2915
2977
|
import_rating_group.RatingGroup.Item,
|
|
2916
2978
|
"item"
|
|
2917
2979
|
);
|
|
@@ -2930,21 +2992,21 @@ var RatingParts = {
|
|
|
2930
2992
|
};
|
|
2931
2993
|
|
|
2932
2994
|
// src/components/rating/rating.tsx
|
|
2933
|
-
var
|
|
2995
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2934
2996
|
function Rating(props) {
|
|
2935
2997
|
const [{ label: label4 }, styleProps, rootProps] = splitProps(
|
|
2936
2998
|
props,
|
|
2937
2999
|
["label"],
|
|
2938
3000
|
["orientation", "palette", "size"]
|
|
2939
3001
|
);
|
|
2940
|
-
return /* @__PURE__ */ (0,
|
|
2941
|
-
/* @__PURE__ */ (0,
|
|
2942
|
-
/* @__PURE__ */ (0,
|
|
3002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(RatingParts.Root, { ...styleProps, ...rootProps, children: [
|
|
3003
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Show, { when: label4, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RatingParts.Label, { children: label4 }) }),
|
|
3004
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RatingParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RatingParts.Context, { children: (context) => context.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2943
3005
|
RatingParts.Item,
|
|
2944
3006
|
{
|
|
2945
3007
|
index: item,
|
|
2946
3008
|
palette: styleProps.palette,
|
|
2947
|
-
children: /* @__PURE__ */ (0,
|
|
3009
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RatingParts.ItemContext, { children: rootProps.children })
|
|
2948
3010
|
},
|
|
2949
3011
|
item
|
|
2950
3012
|
)) }) })
|
|
@@ -2972,33 +3034,33 @@ var SelectParts = {
|
|
|
2972
3034
|
|
|
2973
3035
|
// src/components/select/select.tsx
|
|
2974
3036
|
var import_jsx6 = require("styled-system/jsx");
|
|
2975
|
-
var
|
|
3037
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2976
3038
|
function Select2(props) {
|
|
2977
3039
|
const { collection, container, placeholder, ...rootProps } = props;
|
|
2978
3040
|
const { icons } = useCerberusContext();
|
|
2979
3041
|
const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
|
|
2980
|
-
return /* @__PURE__ */ (0,
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
2982
|
-
/* @__PURE__ */ (0,
|
|
2983
|
-
/* @__PURE__ */ (0,
|
|
2984
|
-
/* @__PURE__ */ (0,
|
|
2985
|
-
/* @__PURE__ */ (0,
|
|
3042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(SelectParts.Root, { collection, ...rootProps, children: [
|
|
3043
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(SelectParts.Trigger, { children: [
|
|
3044
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.ValueText, { placeholder }),
|
|
3045
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx6.HStack, { children: [
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
|
|
3047
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectArrow, {}) })
|
|
2986
3048
|
] })
|
|
2987
3049
|
] }) }),
|
|
2988
|
-
/* @__PURE__ */ (0,
|
|
2989
|
-
/* @__PURE__ */ (0,
|
|
3050
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Portal, { container, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.Content, { size: rootProps.size, children: props.children }) }) }),
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SelectParts.HiddenSelect, {})
|
|
2990
3052
|
] });
|
|
2991
3053
|
}
|
|
2992
3054
|
|
|
2993
3055
|
// src/components/select/option.tsx
|
|
2994
|
-
var
|
|
3056
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2995
3057
|
function Option(props) {
|
|
2996
3058
|
const { item, ...itemProps } = props;
|
|
2997
3059
|
const { icons } = useCerberusContext();
|
|
2998
3060
|
const { selectChecked: CheckedIcon } = icons;
|
|
2999
|
-
return /* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3001
|
-
/* @__PURE__ */ (0,
|
|
3061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(SelectParts.Item, { ...itemProps, item, children: [
|
|
3062
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SelectParts.ItemText, { children: item == null ? void 0 : item.label }),
|
|
3063
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SelectParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CheckedIcon, {}) })
|
|
3002
3064
|
] });
|
|
3003
3065
|
}
|
|
3004
3066
|
|
|
@@ -3008,18 +3070,18 @@ var OptionGroupLabel = SelectItemGroupLabel;
|
|
|
3008
3070
|
|
|
3009
3071
|
// src/components/switch/primitives.tsx
|
|
3010
3072
|
var import_switch = require("@ark-ui/react/switch");
|
|
3011
|
-
var
|
|
3012
|
-
var { withSlotRecipe:
|
|
3013
|
-
var SwitchRoot =
|
|
3014
|
-
var SwitchLabel =
|
|
3073
|
+
var import_recipes32 = require("styled-system/recipes");
|
|
3074
|
+
var { withSlotRecipe: withSlotRecipe18, withNoRecipe: withNoRecipe8 } = createCerberusPrimitive(import_recipes32.switchRecipe);
|
|
3075
|
+
var SwitchRoot = withSlotRecipe18(import_switch.Switch.Root, "root");
|
|
3076
|
+
var SwitchLabel = withSlotRecipe18(
|
|
3015
3077
|
import_switch.Switch.Label,
|
|
3016
3078
|
"label"
|
|
3017
3079
|
);
|
|
3018
|
-
var SwitchControl =
|
|
3080
|
+
var SwitchControl = withSlotRecipe18(
|
|
3019
3081
|
import_switch.Switch.Control,
|
|
3020
3082
|
"control"
|
|
3021
3083
|
);
|
|
3022
|
-
var SwitchThumb =
|
|
3084
|
+
var SwitchThumb = withSlotRecipe18(
|
|
3023
3085
|
import_switch.Switch.Thumb,
|
|
3024
3086
|
"thumb"
|
|
3025
3087
|
);
|
|
@@ -3037,83 +3099,83 @@ var SwitchParts = {
|
|
|
3037
3099
|
};
|
|
3038
3100
|
|
|
3039
3101
|
// src/components/switch/switch-indicator.tsx
|
|
3040
|
-
var
|
|
3102
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3041
3103
|
function SwitchIndicator() {
|
|
3042
3104
|
const { icons } = useCerberusContext();
|
|
3043
3105
|
const { toggleChecked: CheckIcon } = icons;
|
|
3044
|
-
return /* @__PURE__ */ (0,
|
|
3106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CheckIcon, {});
|
|
3045
3107
|
}
|
|
3046
3108
|
|
|
3047
3109
|
// src/components/switch/switch.tsx
|
|
3048
|
-
var
|
|
3110
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3049
3111
|
function Switch2(props) {
|
|
3050
3112
|
const { children, ...rootProps } = props;
|
|
3051
|
-
return /* @__PURE__ */ (0,
|
|
3052
|
-
/* @__PURE__ */ (0,
|
|
3053
|
-
/* @__PURE__ */ (0,
|
|
3054
|
-
/* @__PURE__ */ (0,
|
|
3113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(SwitchParts.Root, { ...rootProps, children: [
|
|
3114
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SwitchParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SwitchParts.Thumb, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SwitchIndicator, {}) }) }),
|
|
3115
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SwitchParts.Label, { children }),
|
|
3116
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SwitchParts.HiddenInput, {})
|
|
3055
3117
|
] });
|
|
3056
3118
|
}
|
|
3057
3119
|
|
|
3058
3120
|
// src/components/table/primitives.tsx
|
|
3059
3121
|
var import_factory11 = require("@ark-ui/react/factory");
|
|
3060
|
-
var
|
|
3061
|
-
var { withSlotRecipe:
|
|
3062
|
-
var TableRoot =
|
|
3122
|
+
var import_recipes33 = require("styled-system/recipes");
|
|
3123
|
+
var { withSlotRecipe: withSlotRecipe19 } = createCerberusPrimitive(import_recipes33.table);
|
|
3124
|
+
var TableRoot = withSlotRecipe19(import_factory11.ark.div, "root", {
|
|
3063
3125
|
defaultProps: {
|
|
3064
3126
|
"data-scope": "table",
|
|
3065
3127
|
"data-part": "root"
|
|
3066
3128
|
}
|
|
3067
3129
|
});
|
|
3068
|
-
var TableEl =
|
|
3130
|
+
var TableEl = withSlotRecipe19(import_factory11.ark.table, "table", {
|
|
3069
3131
|
defaultProps: {
|
|
3070
3132
|
"data-scope": "table",
|
|
3071
3133
|
"data-part": "table"
|
|
3072
3134
|
}
|
|
3073
3135
|
});
|
|
3074
|
-
var Caption =
|
|
3136
|
+
var Caption = withSlotRecipe19(import_factory11.ark.caption, "caption", {
|
|
3075
3137
|
defaultProps: {
|
|
3076
3138
|
"data-scope": "table",
|
|
3077
3139
|
"data-part": "caption"
|
|
3078
3140
|
}
|
|
3079
3141
|
});
|
|
3080
|
-
var Thead =
|
|
3142
|
+
var Thead = withSlotRecipe19(import_factory11.ark.thead, "thead", {
|
|
3081
3143
|
defaultProps: {
|
|
3082
3144
|
"data-scope": "table",
|
|
3083
3145
|
"data-part": "header"
|
|
3084
3146
|
}
|
|
3085
3147
|
});
|
|
3086
|
-
var Th =
|
|
3148
|
+
var Th = withSlotRecipe19(import_factory11.ark.th, "th", {
|
|
3087
3149
|
defaultProps: {
|
|
3088
3150
|
"data-scope": "table",
|
|
3089
3151
|
"data-part": "header-col"
|
|
3090
3152
|
}
|
|
3091
3153
|
});
|
|
3092
|
-
var Tbody =
|
|
3154
|
+
var Tbody = withSlotRecipe19(import_factory11.ark.tbody, "tbody", {
|
|
3093
3155
|
defaultProps: {
|
|
3094
3156
|
"data-scope": "table",
|
|
3095
3157
|
"data-part": "body"
|
|
3096
3158
|
}
|
|
3097
3159
|
});
|
|
3098
|
-
var Tr =
|
|
3160
|
+
var Tr = withSlotRecipe19(import_factory11.ark.tr, "tr", {
|
|
3099
3161
|
defaultProps: {
|
|
3100
3162
|
"data-scope": "table",
|
|
3101
3163
|
"data-part": "row"
|
|
3102
3164
|
}
|
|
3103
3165
|
});
|
|
3104
|
-
var Td =
|
|
3166
|
+
var Td = withSlotRecipe19(import_factory11.ark.td, "td", {
|
|
3105
3167
|
defaultProps: {
|
|
3106
3168
|
"data-scope": "table",
|
|
3107
3169
|
"data-part": "cell"
|
|
3108
3170
|
}
|
|
3109
3171
|
});
|
|
3110
|
-
var Tfoot =
|
|
3172
|
+
var Tfoot = withSlotRecipe19(import_factory11.ark.tfoot, "tfoot", {
|
|
3111
3173
|
defaultProps: {
|
|
3112
3174
|
"data-scope": "table",
|
|
3113
3175
|
"data-part": "footer"
|
|
3114
3176
|
}
|
|
3115
3177
|
});
|
|
3116
|
-
var TableTrigger =
|
|
3178
|
+
var TableTrigger = withSlotRecipe19(
|
|
3117
3179
|
import_factory11.ark.button,
|
|
3118
3180
|
"trigger",
|
|
3119
3181
|
{
|
|
@@ -3139,11 +3201,11 @@ var TableParts = {
|
|
|
3139
3201
|
};
|
|
3140
3202
|
|
|
3141
3203
|
// src/components/table/table.tsx
|
|
3142
|
-
var
|
|
3204
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3143
3205
|
function TableRootEl(props) {
|
|
3144
3206
|
const { sticky, caption, ...rootProps } = props;
|
|
3145
|
-
return /* @__PURE__ */ (0,
|
|
3146
|
-
/* @__PURE__ */ (0,
|
|
3207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(TableRoot, { ...rootProps, "data-sticky": sticky ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(TableEl, { children: [
|
|
3208
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Show, { when: caption, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Caption, { children: caption }) }),
|
|
3147
3209
|
rootProps.children
|
|
3148
3210
|
] }) });
|
|
3149
3211
|
}
|
|
@@ -3161,19 +3223,19 @@ var Table = {
|
|
|
3161
3223
|
|
|
3162
3224
|
// src/components/tabs/primitives.tsx
|
|
3163
3225
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
3164
|
-
var
|
|
3165
|
-
var { withSlotRecipe:
|
|
3166
|
-
var TabsRoot =
|
|
3167
|
-
var TabsList =
|
|
3168
|
-
var TabsTrigger =
|
|
3226
|
+
var import_recipes34 = require("styled-system/recipes");
|
|
3227
|
+
var { withSlotRecipe: withSlotRecipe20 } = createCerberusPrimitive(import_recipes34.tabs);
|
|
3228
|
+
var TabsRoot = withSlotRecipe20(import_tabs.Tabs.Root, "root");
|
|
3229
|
+
var TabsList = withSlotRecipe20(import_tabs.Tabs.List, "list");
|
|
3230
|
+
var TabsTrigger = withSlotRecipe20(
|
|
3169
3231
|
import_tabs.Tabs.Trigger,
|
|
3170
3232
|
"trigger"
|
|
3171
3233
|
);
|
|
3172
|
-
var TabsContent =
|
|
3234
|
+
var TabsContent = withSlotRecipe20(
|
|
3173
3235
|
import_tabs.Tabs.Content,
|
|
3174
3236
|
"content"
|
|
3175
3237
|
);
|
|
3176
|
-
var TabsIndicator =
|
|
3238
|
+
var TabsIndicator = withSlotRecipe20(
|
|
3177
3239
|
import_tabs.Tabs.Indicator,
|
|
3178
3240
|
"indicator"
|
|
3179
3241
|
);
|
|
@@ -3188,12 +3250,12 @@ var TabsParts = {
|
|
|
3188
3250
|
};
|
|
3189
3251
|
|
|
3190
3252
|
// src/components/tabs/tabs.tsx
|
|
3191
|
-
var
|
|
3253
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3192
3254
|
function TabsList2(props) {
|
|
3193
3255
|
const { children, ...listProps } = props;
|
|
3194
|
-
return /* @__PURE__ */ (0,
|
|
3256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(TabsParts.List, { ...listProps, children: [
|
|
3195
3257
|
children,
|
|
3196
|
-
/* @__PURE__ */ (0,
|
|
3258
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TabsParts.Indicator, {})
|
|
3197
3259
|
] });
|
|
3198
3260
|
}
|
|
3199
3261
|
var Tabs2 = {
|
|
@@ -3206,8 +3268,8 @@ var Tabs2 = {
|
|
|
3206
3268
|
// src/components/tag/tag.tsx
|
|
3207
3269
|
var import_factory12 = require("@ark-ui/react/factory");
|
|
3208
3270
|
var import_css17 = require("styled-system/css");
|
|
3209
|
-
var
|
|
3210
|
-
var
|
|
3271
|
+
var import_recipes35 = require("styled-system/recipes");
|
|
3272
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3211
3273
|
function Tag(props) {
|
|
3212
3274
|
const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
|
|
3213
3275
|
const palette = (props == null ? void 0 : props.palette) ?? "page";
|
|
@@ -3216,13 +3278,13 @@ function Tag(props) {
|
|
|
3216
3278
|
const closableStyles = isClosable ? closableCss : "";
|
|
3217
3279
|
const { icons } = useCerberusContext();
|
|
3218
3280
|
const { close: Close } = icons;
|
|
3219
|
-
return /* @__PURE__ */ (0,
|
|
3281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
3220
3282
|
import_factory12.ark.span,
|
|
3221
3283
|
{
|
|
3222
3284
|
...nativeProps,
|
|
3223
3285
|
className: (0, import_css17.cx)(
|
|
3224
3286
|
nativeProps.className,
|
|
3225
|
-
(0,
|
|
3287
|
+
(0, import_recipes35.tag)({
|
|
3226
3288
|
gradient,
|
|
3227
3289
|
palette,
|
|
3228
3290
|
shape,
|
|
@@ -3232,7 +3294,7 @@ function Tag(props) {
|
|
|
3232
3294
|
),
|
|
3233
3295
|
children: [
|
|
3234
3296
|
props.children,
|
|
3235
|
-
/* @__PURE__ */ (0,
|
|
3297
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3236
3298
|
IconButton,
|
|
3237
3299
|
{
|
|
3238
3300
|
ariaLabel: "Close",
|
|
@@ -3240,7 +3302,7 @@ function Tag(props) {
|
|
|
3240
3302
|
palette: "action",
|
|
3241
3303
|
usage: "filled",
|
|
3242
3304
|
size: "sm",
|
|
3243
|
-
children: /* @__PURE__ */ (0,
|
|
3305
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Close, {})
|
|
3244
3306
|
}
|
|
3245
3307
|
) })
|
|
3246
3308
|
]
|
|
@@ -3254,12 +3316,12 @@ var closableCss = (0, import_css17.css)({
|
|
|
3254
3316
|
});
|
|
3255
3317
|
|
|
3256
3318
|
// src/components/theme/theme.tsx
|
|
3257
|
-
var
|
|
3319
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3258
3320
|
function Theme(props) {
|
|
3259
3321
|
const { mode, theme, ...nativeProps } = props;
|
|
3260
3322
|
const colorMode = mode || "light";
|
|
3261
3323
|
const themeName = theme || "cerberus";
|
|
3262
|
-
return /* @__PURE__ */ (0,
|
|
3324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3263
3325
|
cerberus.div,
|
|
3264
3326
|
{
|
|
3265
3327
|
...nativeProps,
|
|
@@ -3286,29 +3348,29 @@ var ToggleParts = {
|
|
|
3286
3348
|
|
|
3287
3349
|
// src/components/tooltip/primitives.ts
|
|
3288
3350
|
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
3289
|
-
var
|
|
3290
|
-
var { withSlotRecipe:
|
|
3291
|
-
var TooltipRoot =
|
|
3351
|
+
var import_recipes36 = require("styled-system/recipes");
|
|
3352
|
+
var { withSlotRecipe: withSlotRecipe21 } = createCerberusPrimitive(import_recipes36.tooltip);
|
|
3353
|
+
var TooltipRoot = withSlotRecipe21(
|
|
3292
3354
|
import_tooltip.Tooltip.Root,
|
|
3293
3355
|
"root"
|
|
3294
3356
|
);
|
|
3295
|
-
var TooltipTrigger =
|
|
3357
|
+
var TooltipTrigger = withSlotRecipe21(
|
|
3296
3358
|
import_tooltip.Tooltip.Trigger,
|
|
3297
3359
|
"trigger"
|
|
3298
3360
|
);
|
|
3299
|
-
var TooltipPositioner =
|
|
3361
|
+
var TooltipPositioner = withSlotRecipe21(
|
|
3300
3362
|
import_tooltip.Tooltip.Positioner,
|
|
3301
3363
|
"positioner"
|
|
3302
3364
|
);
|
|
3303
|
-
var TooltipContent =
|
|
3365
|
+
var TooltipContent = withSlotRecipe21(
|
|
3304
3366
|
import_tooltip.Tooltip.Content,
|
|
3305
3367
|
"content"
|
|
3306
3368
|
);
|
|
3307
|
-
var TooltipArrow =
|
|
3369
|
+
var TooltipArrow = withSlotRecipe21(
|
|
3308
3370
|
import_tooltip.Tooltip.Arrow,
|
|
3309
3371
|
"arrow"
|
|
3310
3372
|
);
|
|
3311
|
-
var TooltipArrowTip =
|
|
3373
|
+
var TooltipArrowTip = withSlotRecipe21(
|
|
3312
3374
|
import_tooltip.Tooltip.ArrowTip,
|
|
3313
3375
|
"arrowTip"
|
|
3314
3376
|
);
|
|
@@ -3324,16 +3386,16 @@ var TooltipParts = {
|
|
|
3324
3386
|
};
|
|
3325
3387
|
|
|
3326
3388
|
// src/components/tooltip/tooltip.tsx
|
|
3327
|
-
var
|
|
3389
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3328
3390
|
function Tooltip2(props) {
|
|
3329
3391
|
const { content, children, ...rootProps } = props;
|
|
3330
3392
|
const position = {
|
|
3331
3393
|
placement: props.positioning || "top"
|
|
3332
3394
|
};
|
|
3333
|
-
return /* @__PURE__ */ (0,
|
|
3334
|
-
/* @__PURE__ */ (0,
|
|
3335
|
-
/* @__PURE__ */ (0,
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(TooltipParts.Root, { openDelay: 400, positioning: position, ...rootProps, children: [
|
|
3396
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TooltipParts.Trigger, { asChild: true, children }),
|
|
3397
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TooltipParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(TooltipParts.Content, { children: [
|
|
3398
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TooltipParts.Arrow, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(TooltipParts.ArrowTip, {}) }),
|
|
3337
3399
|
content
|
|
3338
3400
|
] }) })
|
|
3339
3401
|
] });
|
|
@@ -3343,7 +3405,7 @@ function Tooltip2(props) {
|
|
|
3343
3405
|
var import_react20 = require("react");
|
|
3344
3406
|
var import_css18 = require("styled-system/css");
|
|
3345
3407
|
var import_jsx7 = require("styled-system/jsx");
|
|
3346
|
-
var
|
|
3408
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3347
3409
|
var ConfirmModalContext = (0, import_react20.createContext)(null);
|
|
3348
3410
|
function ConfirmModal(props) {
|
|
3349
3411
|
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
@@ -3395,16 +3457,16 @@ function ConfirmModal(props) {
|
|
|
3395
3457
|
}),
|
|
3396
3458
|
[handleShow]
|
|
3397
3459
|
);
|
|
3398
|
-
return /* @__PURE__ */ (0,
|
|
3460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(ConfirmModalContext.Provider, { value, children: [
|
|
3399
3461
|
props.children,
|
|
3400
|
-
/* @__PURE__ */ (0,
|
|
3462
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogProvider, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3401
3463
|
Dialog2,
|
|
3402
3464
|
{
|
|
3403
3465
|
size: "sm",
|
|
3404
3466
|
style: {
|
|
3405
3467
|
"--dialog-content-min-h": "auto"
|
|
3406
3468
|
},
|
|
3407
|
-
children: /* @__PURE__ */ (0,
|
|
3469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3408
3470
|
import_jsx7.VStack,
|
|
3409
3471
|
{
|
|
3410
3472
|
alignItems: "flex-start",
|
|
@@ -3412,39 +3474,39 @@ function ConfirmModal(props) {
|
|
|
3412
3474
|
justify: "space-between",
|
|
3413
3475
|
w: "full",
|
|
3414
3476
|
children: [
|
|
3415
|
-
/* @__PURE__ */ (0,
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3416
3478
|
import_jsx7.HStack,
|
|
3417
3479
|
{
|
|
3418
3480
|
alignSelf: "center",
|
|
3419
3481
|
justify: "center",
|
|
3420
3482
|
paddingBlockEnd: "md",
|
|
3421
3483
|
w: "full",
|
|
3422
|
-
children: /* @__PURE__ */ (0,
|
|
3484
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3423
3485
|
Show,
|
|
3424
3486
|
{
|
|
3425
3487
|
when: palette === "danger",
|
|
3426
|
-
fallback: /* @__PURE__ */ (0,
|
|
3488
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3427
3489
|
Avatar2,
|
|
3428
3490
|
{
|
|
3429
3491
|
gradient: "charon-light",
|
|
3430
|
-
fallback: /* @__PURE__ */ (0,
|
|
3492
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ConfirmIcon, { size: 24 })
|
|
3431
3493
|
}
|
|
3432
3494
|
),
|
|
3433
|
-
children: /* @__PURE__ */ (0,
|
|
3495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3434
3496
|
Avatar2,
|
|
3435
3497
|
{
|
|
3436
3498
|
gradient: "hades-dark",
|
|
3437
|
-
fallback: /* @__PURE__ */ (0,
|
|
3499
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ConfirmIcon, { size: 24 })
|
|
3438
3500
|
}
|
|
3439
3501
|
)
|
|
3440
3502
|
}
|
|
3441
3503
|
)
|
|
3442
3504
|
}
|
|
3443
3505
|
),
|
|
3444
|
-
/* @__PURE__ */ (0,
|
|
3445
|
-
/* @__PURE__ */ (0,
|
|
3446
|
-
/* @__PURE__ */ (0,
|
|
3447
|
-
/* @__PURE__ */ (0,
|
|
3506
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
3507
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Show, { when: content == null ? void 0 : content.description, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogDescription, { children: content == null ? void 0 : content.description }) }),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx7.HStack, { gap: "md", pt: "md", w: "full", children: [
|
|
3509
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3448
3510
|
Button,
|
|
3449
3511
|
{
|
|
3450
3512
|
autoFocus: true,
|
|
@@ -3458,7 +3520,7 @@ function ConfirmModal(props) {
|
|
|
3458
3520
|
children: content == null ? void 0 : content.actionText
|
|
3459
3521
|
}
|
|
3460
3522
|
),
|
|
3461
|
-
/* @__PURE__ */ (0,
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3462
3524
|
Button,
|
|
3463
3525
|
{
|
|
3464
3526
|
className: (0, import_css18.css)({
|
|
@@ -3495,7 +3557,7 @@ var import_dialog4 = require("@ark-ui/react/dialog");
|
|
|
3495
3557
|
var import_jsx8 = require("styled-system/jsx");
|
|
3496
3558
|
var import_css19 = require("styled-system/css");
|
|
3497
3559
|
var import_patterns5 = require("styled-system/patterns");
|
|
3498
|
-
var
|
|
3560
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3499
3561
|
var PromptModalContext = (0, import_react21.createContext)(null);
|
|
3500
3562
|
function PromptModal(props) {
|
|
3501
3563
|
const resolveRef = (0, import_react21.useRef)(null);
|
|
@@ -3542,16 +3604,16 @@ function PromptModal(props) {
|
|
|
3542
3604
|
}),
|
|
3543
3605
|
[handleShow]
|
|
3544
3606
|
);
|
|
3545
|
-
return /* @__PURE__ */ (0,
|
|
3607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(PromptModalContext.Provider, { value, children: [
|
|
3546
3608
|
props.children,
|
|
3547
|
-
/* @__PURE__ */ (0,
|
|
3609
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3548
3610
|
Dialog2,
|
|
3549
3611
|
{
|
|
3550
3612
|
size: "sm",
|
|
3551
3613
|
style: {
|
|
3552
3614
|
"--dialog-content-min-h": "auto"
|
|
3553
3615
|
},
|
|
3554
|
-
children: /* @__PURE__ */ (0,
|
|
3616
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
3555
3617
|
import_jsx8.VStack,
|
|
3556
3618
|
{
|
|
3557
3619
|
alignItems: "flex-start",
|
|
@@ -3559,46 +3621,46 @@ function PromptModal(props) {
|
|
|
3559
3621
|
justify: "space-between",
|
|
3560
3622
|
w: "full",
|
|
3561
3623
|
children: [
|
|
3562
|
-
/* @__PURE__ */ (0,
|
|
3624
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3563
3625
|
import_jsx8.HStack,
|
|
3564
3626
|
{
|
|
3565
3627
|
alignSelf: "center",
|
|
3566
3628
|
justify: "center",
|
|
3567
3629
|
paddingBlockEnd: "md",
|
|
3568
3630
|
w: "full",
|
|
3569
|
-
children: /* @__PURE__ */ (0,
|
|
3631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3570
3632
|
Show,
|
|
3571
3633
|
{
|
|
3572
3634
|
when: palette === "danger",
|
|
3573
|
-
fallback: /* @__PURE__ */ (0,
|
|
3635
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3574
3636
|
Avatar2,
|
|
3575
3637
|
{
|
|
3576
3638
|
gradient: "charon-light",
|
|
3577
|
-
fallback: /* @__PURE__ */ (0,
|
|
3639
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PromptIcon, { size: 24 })
|
|
3578
3640
|
}
|
|
3579
3641
|
),
|
|
3580
|
-
children: /* @__PURE__ */ (0,
|
|
3642
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3581
3643
|
Avatar2,
|
|
3582
3644
|
{
|
|
3583
3645
|
gradient: "hades-dark",
|
|
3584
|
-
fallback: /* @__PURE__ */ (0,
|
|
3646
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PromptIcon, { size: 24 })
|
|
3585
3647
|
}
|
|
3586
3648
|
)
|
|
3587
3649
|
}
|
|
3588
3650
|
)
|
|
3589
3651
|
}
|
|
3590
3652
|
),
|
|
3591
|
-
/* @__PURE__ */ (0,
|
|
3592
|
-
/* @__PURE__ */ (0,
|
|
3593
|
-
/* @__PURE__ */ (0,
|
|
3653
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
3654
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DialogDescription, { children: content == null ? void 0 : content.description }),
|
|
3655
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3594
3656
|
import_jsx8.VStack,
|
|
3595
3657
|
{
|
|
3596
3658
|
alignItems: "flex-start",
|
|
3597
3659
|
marginBlockStart: "md",
|
|
3598
3660
|
marginBlockEnd: "lg",
|
|
3599
3661
|
w: "full",
|
|
3600
|
-
children: /* @__PURE__ */ (0,
|
|
3601
|
-
/* @__PURE__ */ (0,
|
|
3662
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(FieldRoot, { invalid: !isValid, children: [
|
|
3663
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
3602
3664
|
FieldLabel,
|
|
3603
3665
|
{
|
|
3604
3666
|
className: (0, import_patterns5.hstack)({
|
|
@@ -3610,17 +3672,17 @@ function PromptModal(props) {
|
|
|
3610
3672
|
}),
|
|
3611
3673
|
children: [
|
|
3612
3674
|
"Type",
|
|
3613
|
-
/* @__PURE__ */ (0,
|
|
3675
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
|
|
3614
3676
|
"to confirm"
|
|
3615
3677
|
]
|
|
3616
3678
|
}
|
|
3617
3679
|
),
|
|
3618
|
-
/* @__PURE__ */ (0,
|
|
3680
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
|
|
3619
3681
|
] })
|
|
3620
3682
|
}
|
|
3621
3683
|
),
|
|
3622
|
-
/* @__PURE__ */ (0,
|
|
3623
|
-
/* @__PURE__ */ (0,
|
|
3684
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
|
|
3685
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3624
3686
|
Button,
|
|
3625
3687
|
{
|
|
3626
3688
|
autoFocus: true,
|
|
@@ -3635,7 +3697,7 @@ function PromptModal(props) {
|
|
|
3635
3697
|
children: content == null ? void 0 : content.actionText
|
|
3636
3698
|
}
|
|
3637
3699
|
),
|
|
3638
|
-
/* @__PURE__ */ (0,
|
|
3700
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_dialog4.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3639
3701
|
Button,
|
|
3640
3702
|
{
|
|
3641
3703
|
className: (0, import_css19.css)({
|
|
@@ -3731,7 +3793,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
|
|
|
3731
3793
|
}
|
|
3732
3794
|
|
|
3733
3795
|
// src/context/theme.tsx
|
|
3734
|
-
var
|
|
3796
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3735
3797
|
var ThemeContext = (0, import_react23.createContext)(
|
|
3736
3798
|
null
|
|
3737
3799
|
);
|
|
@@ -3741,7 +3803,7 @@ function ThemeProvider(props) {
|
|
|
3741
3803
|
updateMode: props.updateMode,
|
|
3742
3804
|
updateTheme: props.updateTheme
|
|
3743
3805
|
});
|
|
3744
|
-
return /* @__PURE__ */ (0,
|
|
3806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ThemeContext.Provider, { value: state, children: props.children });
|
|
3745
3807
|
}
|
|
3746
3808
|
function useThemeContext() {
|
|
3747
3809
|
const context = (0, import_react23.useContext)(ThemeContext);
|
|
@@ -3786,9 +3848,9 @@ function rootColorsReducer(state, action) {
|
|
|
3786
3848
|
}
|
|
3787
3849
|
|
|
3788
3850
|
// src/config/icons/checkbox.icons.tsx
|
|
3789
|
-
var
|
|
3851
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3790
3852
|
function CheckmarkIcon() {
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
3853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3792
3854
|
"svg",
|
|
3793
3855
|
{
|
|
3794
3856
|
"aria-hidden": "true",
|
|
@@ -3796,7 +3858,7 @@ function CheckmarkIcon() {
|
|
|
3796
3858
|
fill: "none",
|
|
3797
3859
|
role: "img",
|
|
3798
3860
|
viewBox: "0 0 24 24",
|
|
3799
|
-
children: /* @__PURE__ */ (0,
|
|
3861
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3800
3862
|
"path",
|
|
3801
3863
|
{
|
|
3802
3864
|
fill: "currentColor",
|
|
@@ -3807,7 +3869,7 @@ function CheckmarkIcon() {
|
|
|
3807
3869
|
);
|
|
3808
3870
|
}
|
|
3809
3871
|
function IndeterminateIcon() {
|
|
3810
|
-
return /* @__PURE__ */ (0,
|
|
3872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3811
3873
|
"svg",
|
|
3812
3874
|
{
|
|
3813
3875
|
"aria-hidden": "true",
|
|
@@ -3815,15 +3877,15 @@ function IndeterminateIcon() {
|
|
|
3815
3877
|
role: "img",
|
|
3816
3878
|
fill: "none",
|
|
3817
3879
|
viewBox: "0 0 24 24",
|
|
3818
|
-
children: /* @__PURE__ */ (0,
|
|
3880
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
|
|
3819
3881
|
}
|
|
3820
3882
|
);
|
|
3821
3883
|
}
|
|
3822
3884
|
|
|
3823
3885
|
// src/components/AnimatingUploadIcon.tsx
|
|
3824
|
-
var
|
|
3886
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3825
3887
|
function AnimatingUploadIcon(props) {
|
|
3826
|
-
return /* @__PURE__ */ (0,
|
|
3888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3827
3889
|
"svg",
|
|
3828
3890
|
{
|
|
3829
3891
|
"aria-hidden": "true",
|
|
@@ -3831,7 +3893,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3831
3893
|
width: props.size ?? "1em",
|
|
3832
3894
|
height: props.size ?? "1em",
|
|
3833
3895
|
viewBox: "0 0 24 24",
|
|
3834
|
-
children: /* @__PURE__ */ (0,
|
|
3896
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
3835
3897
|
"g",
|
|
3836
3898
|
{
|
|
3837
3899
|
fill: "none",
|
|
@@ -3840,14 +3902,14 @@ function AnimatingUploadIcon(props) {
|
|
|
3840
3902
|
strokeLinejoin: "round",
|
|
3841
3903
|
strokeWidth: 1.5,
|
|
3842
3904
|
children: [
|
|
3843
|
-
/* @__PURE__ */ (0,
|
|
3905
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3844
3906
|
"path",
|
|
3845
3907
|
{
|
|
3846
3908
|
"data-name": "animating-trail",
|
|
3847
3909
|
strokeDasharray: "2 4",
|
|
3848
3910
|
strokeDashoffset: 6,
|
|
3849
3911
|
d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
|
|
3850
|
-
children: /* @__PURE__ */ (0,
|
|
3912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3851
3913
|
"animate",
|
|
3852
3914
|
{
|
|
3853
3915
|
attributeName: "stroke-dashoffset",
|
|
@@ -3858,14 +3920,14 @@ function AnimatingUploadIcon(props) {
|
|
|
3858
3920
|
)
|
|
3859
3921
|
}
|
|
3860
3922
|
),
|
|
3861
|
-
/* @__PURE__ */ (0,
|
|
3923
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3862
3924
|
"path",
|
|
3863
3925
|
{
|
|
3864
3926
|
"data-name": "half-circle",
|
|
3865
3927
|
strokeDasharray: 32,
|
|
3866
3928
|
strokeDashoffset: 32,
|
|
3867
3929
|
d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
|
|
3868
|
-
children: /* @__PURE__ */ (0,
|
|
3930
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3869
3931
|
"animate",
|
|
3870
3932
|
{
|
|
3871
3933
|
fill: "freeze",
|
|
@@ -3877,7 +3939,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3877
3939
|
)
|
|
3878
3940
|
}
|
|
3879
3941
|
),
|
|
3880
|
-
/* @__PURE__ */ (0,
|
|
3942
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3881
3943
|
"svg",
|
|
3882
3944
|
{
|
|
3883
3945
|
"aria-hidden": "true",
|
|
@@ -3887,7 +3949,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3887
3949
|
x: "27%",
|
|
3888
3950
|
y: "27%",
|
|
3889
3951
|
viewBox: "0 0 24 24",
|
|
3890
|
-
children: /* @__PURE__ */ (0,
|
|
3952
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3891
3953
|
"polygon",
|
|
3892
3954
|
{
|
|
3893
3955
|
fill: "currentColor",
|
|
@@ -3895,7 +3957,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3895
3957
|
strokeWidth: 0.8,
|
|
3896
3958
|
opacity: "1",
|
|
3897
3959
|
points: "3.7,6.7 7.5,2.9 7.5,15 8.5,15 8.5,2.9 12.3,6.7 13,6 8,1 3,6 ",
|
|
3898
|
-
children: /* @__PURE__ */ (0,
|
|
3960
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3899
3961
|
"animate",
|
|
3900
3962
|
{
|
|
3901
3963
|
fill: "freeze",
|
|
@@ -3964,6 +4026,16 @@ __reExport(index_exports, require("@dnd-kit/core"), module.exports);
|
|
|
3964
4026
|
CTAModal,
|
|
3965
4027
|
CalendarDate,
|
|
3966
4028
|
Caption,
|
|
4029
|
+
Carousel,
|
|
4030
|
+
CarouselControl,
|
|
4031
|
+
CarouselIndicator,
|
|
4032
|
+
CarouselIndicatorGroup,
|
|
4033
|
+
CarouselItem,
|
|
4034
|
+
CarouselItemGroup,
|
|
4035
|
+
CarouselNextTrigger,
|
|
4036
|
+
CarouselParts,
|
|
4037
|
+
CarouselPrevTrigger,
|
|
4038
|
+
CarouselRoot,
|
|
3967
4039
|
CerberusProvider,
|
|
3968
4040
|
Checkbox,
|
|
3969
4041
|
CheckboxControl,
|