@cerberus-design/react 0.15.0-next-16cc2b5 → 0.15.0-next-b2ad645
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 +99 -0
- package/build/legacy/components/Select.cjs +48 -32
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Select.server.cjs +78 -0
- package/build/legacy/components/Select.server.cjs.map +1 -0
- package/build/legacy/index.cjs +159 -113
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +99 -0
- package/build/modern/chunk-FV4UITYD.js +97 -0
- package/build/modern/chunk-FV4UITYD.js.map +1 -0
- package/build/modern/chunk-YWMPB2JR.js +41 -0
- package/build/modern/chunk-YWMPB2JR.js.map +1 -0
- package/build/modern/components/Select.js +2 -1
- package/build/modern/components/Select.server.js +33 -0
- package/build/modern/components/Select.server.js.map +1 -0
- package/build/modern/index.js +41 -11
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Select.server.tsx +80 -0
- package/src/components/Select.tsx +37 -28
- package/src/index.ts +1 -0
- package/build/modern/chunk-X6WFDKKJ.js +0 -90
- package/build/modern/chunk-X6WFDKKJ.js.map +0 -1
package/build/legacy/index.cjs
CHANGED
|
@@ -107,6 +107,20 @@ __export(src_exports, {
|
|
|
107
107
|
Radio: () => Radio,
|
|
108
108
|
RangePickerInput: () => RangePickerInput,
|
|
109
109
|
Select: () => Select,
|
|
110
|
+
SelectClearTrigger: () => SelectClearTrigger,
|
|
111
|
+
SelectContent: () => SelectContent,
|
|
112
|
+
SelectControl: () => SelectControl,
|
|
113
|
+
SelectIndicator: () => SelectIndicator,
|
|
114
|
+
SelectItem: () => SelectItem,
|
|
115
|
+
SelectItemGroup: () => SelectItemGroup,
|
|
116
|
+
SelectItemGroupLabel: () => SelectItemGroupLabel,
|
|
117
|
+
SelectItemIndicator: () => SelectItemIndicator,
|
|
118
|
+
SelectItemText: () => SelectItemText,
|
|
119
|
+
SelectLabel: () => SelectLabel,
|
|
120
|
+
SelectPositioner: () => SelectPositioner,
|
|
121
|
+
SelectRoot: () => SelectRoot,
|
|
122
|
+
SelectTrigger: () => SelectTrigger,
|
|
123
|
+
SelectValueText: () => SelectValueText,
|
|
110
124
|
Show: () => Show,
|
|
111
125
|
Spinner: () => Spinner,
|
|
112
126
|
THEME_KEY: () => THEME_KEY,
|
|
@@ -2582,57 +2596,75 @@ function Tooltip(props) {
|
|
|
2582
2596
|
}
|
|
2583
2597
|
|
|
2584
2598
|
// src/components/Select.tsx
|
|
2585
|
-
var
|
|
2599
|
+
var import_select2 = require("@ark-ui/react/select");
|
|
2586
2600
|
var import_recipes39 = require("@cerberus/styled-system/recipes");
|
|
2587
2601
|
var import_css46 = require("@cerberus/styled-system/css");
|
|
2588
2602
|
var import_jsx2 = require("@cerberus/styled-system/jsx");
|
|
2603
|
+
|
|
2604
|
+
// src/components/Select.server.tsx
|
|
2605
|
+
var import_select = require("@ark-ui/react/select");
|
|
2589
2606
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2607
|
+
function SelectRoot(props) {
|
|
2608
|
+
const { children, ...rootProps } = props;
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_select.Select.Root, { ...rootProps, children: [
|
|
2610
|
+
children,
|
|
2611
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.HiddenSelect, {})
|
|
2612
|
+
] });
|
|
2613
|
+
}
|
|
2614
|
+
var SelectLabel = import_select.Select.Label;
|
|
2615
|
+
var SelectControl = import_select.Select.Control;
|
|
2616
|
+
var SelectTrigger = import_select.Select.Trigger;
|
|
2617
|
+
var SelectValueText = import_select.Select.ValueText;
|
|
2618
|
+
var SelectIndicator = import_select.Select.Indicator;
|
|
2619
|
+
var SelectClearTrigger = import_select.Select.ClearTrigger;
|
|
2620
|
+
var SelectPositioner = import_select.Select.Positioner;
|
|
2621
|
+
var SelectContent = import_select.Select.Content;
|
|
2622
|
+
var SelectItemGroup = import_select.Select.ItemGroup;
|
|
2623
|
+
var SelectItemGroupLabel = import_select.Select.ItemGroupLabel;
|
|
2624
|
+
var SelectItem = import_select.Select.Item;
|
|
2625
|
+
var SelectItemText = import_select.Select.ItemText;
|
|
2626
|
+
var SelectItemIndicator = import_select.Select.ItemIndicator;
|
|
2627
|
+
|
|
2628
|
+
// src/components/Select.tsx
|
|
2629
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2590
2630
|
function Select(props) {
|
|
2591
2631
|
const { collection, label: label5, placeholder, size, ...rootProps } = props;
|
|
2592
2632
|
const { icons } = useCerberusContext();
|
|
2593
2633
|
const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
|
|
2594
2634
|
const styles = (0, import_recipes39.select)({ size });
|
|
2595
|
-
return /* @__PURE__ */ (0,
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Indicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectArrow, {}) })
|
|
2611
|
-
] })
|
|
2612
|
-
] }) }),
|
|
2613
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Positioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.Content, { className: styles.content, children: props.children }) }) }),
|
|
2614
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_select.Select.HiddenSelect, {})
|
|
2615
|
-
]
|
|
2616
|
-
}
|
|
2617
|
-
);
|
|
2635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectRoot, { className: styles.root, collection, ...rootProps, children: [
|
|
2636
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectLabel, { className: styles.label, children: [
|
|
2637
|
+
label5,
|
|
2638
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: props.required, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, { as: "span", color: "page.text.100", children: "(required)" }) })
|
|
2639
|
+
] }),
|
|
2640
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectControl, { className: styles.control, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectTrigger, { className: styles.trigger, children: [
|
|
2641
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectValueText, { placeholder }),
|
|
2642
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx2.HStack, { children: [
|
|
2643
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
|
|
2644
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectIndicator, { className: styles.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectArrow, {}) })
|
|
2645
|
+
] })
|
|
2646
|
+
] }) }),
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectContent, { className: styles.content, children: props.children }) }) }),
|
|
2648
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_select2.Select.HiddenSelect, {})
|
|
2649
|
+
] });
|
|
2618
2650
|
}
|
|
2619
2651
|
function Option(props) {
|
|
2620
2652
|
const { item, ...itemProps } = props;
|
|
2621
2653
|
const { icons } = useCerberusContext();
|
|
2622
2654
|
const { selectChecked: CheckedIcon } = icons;
|
|
2623
2655
|
const styles = (0, import_recipes39.select)();
|
|
2624
|
-
return /* @__PURE__ */ (0,
|
|
2625
|
-
/* @__PURE__ */ (0,
|
|
2626
|
-
/* @__PURE__ */ (0,
|
|
2656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectItem, { ...itemProps, item, className: styles.item, children: [
|
|
2657
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemText, { className: styles.itemText, children: item == null ? void 0 : item.label }),
|
|
2658
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CheckedIcon, {}) })
|
|
2627
2659
|
] });
|
|
2628
2660
|
}
|
|
2629
2661
|
function OptionGroup(props) {
|
|
2630
|
-
return /* @__PURE__ */ (0,
|
|
2662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItemGroup, { ...props });
|
|
2631
2663
|
}
|
|
2632
2664
|
function OptionGroupLabel(props) {
|
|
2633
2665
|
const styles = (0, import_recipes39.select)();
|
|
2634
|
-
return /* @__PURE__ */ (0,
|
|
2635
|
-
|
|
2666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2667
|
+
SelectItemGroupLabel,
|
|
2636
2668
|
{
|
|
2637
2669
|
...props,
|
|
2638
2670
|
className: (0, import_css46.cx)(props.className, styles.itemGroupLabel)
|
|
@@ -2640,7 +2672,7 @@ function OptionGroupLabel(props) {
|
|
|
2640
2672
|
);
|
|
2641
2673
|
}
|
|
2642
2674
|
function createSelectCollection(collection) {
|
|
2643
|
-
return (0,
|
|
2675
|
+
return (0, import_select2.createListCollection)({
|
|
2644
2676
|
items: collection
|
|
2645
2677
|
});
|
|
2646
2678
|
}
|
|
@@ -2649,7 +2681,7 @@ function createSelectCollection(collection) {
|
|
|
2649
2681
|
var import_react22 = require("react");
|
|
2650
2682
|
var import_css47 = require("@cerberus/styled-system/css");
|
|
2651
2683
|
var import_jsx3 = require("@cerberus/styled-system/jsx");
|
|
2652
|
-
var
|
|
2684
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2653
2685
|
var ConfirmModalContext = (0, import_react22.createContext)(null);
|
|
2654
2686
|
function ConfirmModal(props) {
|
|
2655
2687
|
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
@@ -2690,36 +2722,36 @@ function ConfirmModal(props) {
|
|
|
2690
2722
|
}),
|
|
2691
2723
|
[handleShow]
|
|
2692
2724
|
);
|
|
2693
|
-
return /* @__PURE__ */ (0,
|
|
2725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(ConfirmModalContext.Provider, { value, children: [
|
|
2694
2726
|
props.children,
|
|
2695
|
-
/* @__PURE__ */ (0,
|
|
2696
|
-
/* @__PURE__ */ (0,
|
|
2697
|
-
/* @__PURE__ */ (0,
|
|
2727
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx3.VStack, { gap: "xl", w: "full", children: [
|
|
2728
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx3.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
2729
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2698
2730
|
import_jsx3.HStack,
|
|
2699
2731
|
{
|
|
2700
2732
|
alignSelf: "center",
|
|
2701
2733
|
justify: "center",
|
|
2702
2734
|
paddingBlockEnd: "md",
|
|
2703
2735
|
w: "full",
|
|
2704
|
-
children: /* @__PURE__ */ (0,
|
|
2736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2705
2737
|
Show,
|
|
2706
2738
|
{
|
|
2707
2739
|
when: palette === "danger",
|
|
2708
|
-
fallback: /* @__PURE__ */ (0,
|
|
2740
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2709
2741
|
Avatar,
|
|
2710
2742
|
{
|
|
2711
2743
|
ariaLabel: "",
|
|
2712
2744
|
gradient: "charon-light",
|
|
2713
|
-
icon: /* @__PURE__ */ (0,
|
|
2745
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ConfirmIcon, { size: 24 }),
|
|
2714
2746
|
src: ""
|
|
2715
2747
|
}
|
|
2716
2748
|
),
|
|
2717
|
-
children: /* @__PURE__ */ (0,
|
|
2749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2718
2750
|
Avatar,
|
|
2719
2751
|
{
|
|
2720
2752
|
ariaLabel: "",
|
|
2721
2753
|
gradient: "hades-dark",
|
|
2722
|
-
icon: /* @__PURE__ */ (0,
|
|
2754
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ConfirmIcon, { size: 24 }),
|
|
2723
2755
|
src: ""
|
|
2724
2756
|
}
|
|
2725
2757
|
)
|
|
@@ -2727,11 +2759,11 @@ function ConfirmModal(props) {
|
|
|
2727
2759
|
)
|
|
2728
2760
|
}
|
|
2729
2761
|
),
|
|
2730
|
-
/* @__PURE__ */ (0,
|
|
2731
|
-
/* @__PURE__ */ (0,
|
|
2762
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
2763
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
2732
2764
|
] }),
|
|
2733
|
-
/* @__PURE__ */ (0,
|
|
2734
|
-
/* @__PURE__ */ (0,
|
|
2765
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx3.HStack, { gap: "4", w: "full", children: [
|
|
2766
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2735
2767
|
Button,
|
|
2736
2768
|
{
|
|
2737
2769
|
autoFocus: true,
|
|
@@ -2745,7 +2777,7 @@ function ConfirmModal(props) {
|
|
|
2745
2777
|
children: content == null ? void 0 : content.actionText
|
|
2746
2778
|
}
|
|
2747
2779
|
),
|
|
2748
|
-
/* @__PURE__ */ (0,
|
|
2780
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2749
2781
|
Button,
|
|
2750
2782
|
{
|
|
2751
2783
|
className: (0, import_css47.css)({
|
|
@@ -2777,7 +2809,7 @@ var import_react23 = require("react");
|
|
|
2777
2809
|
var import_jsx4 = require("@cerberus/styled-system/jsx");
|
|
2778
2810
|
var import_css48 = require("@cerberus/styled-system/css");
|
|
2779
2811
|
var import_jsx5 = require("@cerberus/styled-system/jsx");
|
|
2780
|
-
var
|
|
2812
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2781
2813
|
var CTAModalContext = (0, import_react23.createContext)(null);
|
|
2782
2814
|
function CTAModal(props) {
|
|
2783
2815
|
var _a, _b;
|
|
@@ -2815,32 +2847,32 @@ function CTAModal(props) {
|
|
|
2815
2847
|
}),
|
|
2816
2848
|
[handleShow]
|
|
2817
2849
|
);
|
|
2818
|
-
return /* @__PURE__ */ (0,
|
|
2850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(CTAModalContext.Provider, { value, children: [
|
|
2819
2851
|
props.children,
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
2821
|
-
/* @__PURE__ */ (0,
|
|
2822
|
-
/* @__PURE__ */ (0,
|
|
2823
|
-
/* @__PURE__ */ (0,
|
|
2824
|
-
/* @__PURE__ */ (0,
|
|
2852
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Dialog, { size: "sm", children: [
|
|
2853
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogCloseIconTrigger, {}),
|
|
2854
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
|
|
2855
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx5.VStack, { gap: "lg", w: "full", children: [
|
|
2856
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2825
2857
|
Avatar,
|
|
2826
2858
|
{
|
|
2827
2859
|
ariaLabel: "",
|
|
2828
2860
|
gradient: "charon-light",
|
|
2829
|
-
icon: /* @__PURE__ */ (0,
|
|
2861
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2830
2862
|
Show,
|
|
2831
2863
|
{
|
|
2832
2864
|
when: Boolean(confirmIcon),
|
|
2833
|
-
fallback: /* @__PURE__ */ (0,
|
|
2865
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FallbackIcon, { size: 24 }),
|
|
2834
2866
|
children: confirmIcon
|
|
2835
2867
|
}
|
|
2836
2868
|
),
|
|
2837
2869
|
src: ""
|
|
2838
2870
|
}
|
|
2839
2871
|
),
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2841
|
-
/* @__PURE__ */ (0,
|
|
2872
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
2873
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
2842
2874
|
] }) }),
|
|
2843
|
-
/* @__PURE__ */ (0,
|
|
2875
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx4.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Show, { when: Boolean((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.length), children: (_b = content == null ? void 0 : content.actions) == null ? void 0 : _b.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2844
2876
|
Button,
|
|
2845
2877
|
{
|
|
2846
2878
|
"data-index": index,
|
|
@@ -2903,7 +2935,7 @@ function clearNotificationState(dispatch) {
|
|
|
2903
2935
|
}
|
|
2904
2936
|
|
|
2905
2937
|
// src/context/notification-center.tsx
|
|
2906
|
-
var
|
|
2938
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2907
2939
|
var NotificationsContext = (0, import_react24.createContext)(null);
|
|
2908
2940
|
function NotificationCenter(props) {
|
|
2909
2941
|
const [state, dispatch] = (0, import_react24.useReducer)(notificationCenterReducer, []);
|
|
@@ -2957,10 +2989,10 @@ function NotificationCenter(props) {
|
|
|
2957
2989
|
}),
|
|
2958
2990
|
[handleNotify]
|
|
2959
2991
|
);
|
|
2960
|
-
return /* @__PURE__ */ (0,
|
|
2992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(NotificationsContext.Provider, { value, children: [
|
|
2961
2993
|
props.children,
|
|
2962
|
-
/* @__PURE__ */ (0,
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
2994
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Show, { when: state.length > 0, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Portal, { container: props.container, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: styles.center, children: [
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Show, { when: state.length >= 4, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2964
2996
|
Button,
|
|
2965
2997
|
{
|
|
2966
2998
|
className: (0, import_css49.cx)(styles.closeAll, (0, import_patterns14.animateIn)()),
|
|
@@ -2972,7 +3004,7 @@ function NotificationCenter(props) {
|
|
|
2972
3004
|
children: "Close all"
|
|
2973
3005
|
}
|
|
2974
3006
|
) }),
|
|
2975
|
-
/* @__PURE__ */ (0,
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2976
3008
|
"div",
|
|
2977
3009
|
{
|
|
2978
3010
|
className: (0, import_patterns14.vstack)({
|
|
@@ -2982,7 +3014,7 @@ function NotificationCenter(props) {
|
|
|
2982
3014
|
style: {
|
|
2983
3015
|
alignItems: "flex-end"
|
|
2984
3016
|
},
|
|
2985
|
-
children: state.map((option) => /* @__PURE__ */ (0,
|
|
3017
|
+
children: state.map((option) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2986
3018
|
MatchNotification,
|
|
2987
3019
|
{
|
|
2988
3020
|
...option,
|
|
@@ -3009,25 +3041,25 @@ function MatchNotification(props) {
|
|
|
3009
3041
|
);
|
|
3010
3042
|
switch (palette) {
|
|
3011
3043
|
case "success":
|
|
3012
|
-
return /* @__PURE__ */ (0,
|
|
3013
|
-
/* @__PURE__ */ (0,
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "success", children: [
|
|
3045
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "success", children: heading }),
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "success", children: description })
|
|
3015
3047
|
] });
|
|
3016
3048
|
case "warning":
|
|
3017
|
-
return /* @__PURE__ */ (0,
|
|
3018
|
-
/* @__PURE__ */ (0,
|
|
3019
|
-
/* @__PURE__ */ (0,
|
|
3049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "warning", children: [
|
|
3050
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "warning", children: heading }),
|
|
3051
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "warning", children: description })
|
|
3020
3052
|
] });
|
|
3021
3053
|
case "danger":
|
|
3022
|
-
return /* @__PURE__ */ (0,
|
|
3023
|
-
/* @__PURE__ */ (0,
|
|
3024
|
-
/* @__PURE__ */ (0,
|
|
3054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "danger", children: [
|
|
3055
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "danger", children: heading }),
|
|
3056
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "danger", children: description })
|
|
3025
3057
|
] });
|
|
3026
3058
|
case "info":
|
|
3027
3059
|
default:
|
|
3028
|
-
return /* @__PURE__ */ (0,
|
|
3029
|
-
/* @__PURE__ */ (0,
|
|
3030
|
-
/* @__PURE__ */ (0,
|
|
3060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Notification, { ...sharedProps, palette: "info", children: [
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationHeading, { palette: "info", children: heading }),
|
|
3062
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(NotificationDescription, { palette: "info", children: description })
|
|
3031
3063
|
] });
|
|
3032
3064
|
}
|
|
3033
3065
|
}
|
|
@@ -3047,7 +3079,7 @@ var import_css50 = require("@cerberus/styled-system/css");
|
|
|
3047
3079
|
var import_patterns15 = require("@cerberus/styled-system/patterns");
|
|
3048
3080
|
var import_jsx6 = require("@cerberus/styled-system/jsx");
|
|
3049
3081
|
var import_react26 = require("@ark-ui/react");
|
|
3050
|
-
var
|
|
3082
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3051
3083
|
var PromptModalContext = (0, import_react25.createContext)(null);
|
|
3052
3084
|
function PromptModal(props) {
|
|
3053
3085
|
const resolveRef = (0, import_react25.useRef)(null);
|
|
@@ -3097,36 +3129,36 @@ function PromptModal(props) {
|
|
|
3097
3129
|
}),
|
|
3098
3130
|
[handleShow]
|
|
3099
3131
|
);
|
|
3100
|
-
return /* @__PURE__ */ (0,
|
|
3132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(PromptModalContext.Provider, { value, children: [
|
|
3101
3133
|
props.children,
|
|
3102
|
-
/* @__PURE__ */ (0,
|
|
3103
|
-
/* @__PURE__ */ (0,
|
|
3104
|
-
/* @__PURE__ */ (0,
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Dialog, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx6.VStack, { gap: "xl", w: "full", children: [
|
|
3135
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx6.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
3136
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3105
3137
|
import_jsx6.HStack,
|
|
3106
3138
|
{
|
|
3107
3139
|
alignSelf: "center",
|
|
3108
3140
|
justify: "center",
|
|
3109
3141
|
paddingBlockEnd: "md",
|
|
3110
3142
|
w: "full",
|
|
3111
|
-
children: /* @__PURE__ */ (0,
|
|
3143
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3112
3144
|
Show,
|
|
3113
3145
|
{
|
|
3114
3146
|
when: palette === "danger",
|
|
3115
|
-
fallback: /* @__PURE__ */ (0,
|
|
3147
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3116
3148
|
Avatar,
|
|
3117
3149
|
{
|
|
3118
3150
|
ariaLabel: "",
|
|
3119
3151
|
gradient: "charon-light",
|
|
3120
|
-
icon: /* @__PURE__ */ (0,
|
|
3152
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(PromptIcon, { size: 24 }),
|
|
3121
3153
|
src: ""
|
|
3122
3154
|
}
|
|
3123
3155
|
),
|
|
3124
|
-
children: /* @__PURE__ */ (0,
|
|
3156
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3125
3157
|
Avatar,
|
|
3126
3158
|
{
|
|
3127
3159
|
ariaLabel: "",
|
|
3128
3160
|
gradient: "hades-dark",
|
|
3129
|
-
icon: /* @__PURE__ */ (0,
|
|
3161
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(PromptIcon, { size: 24 }),
|
|
3130
3162
|
src: ""
|
|
3131
3163
|
}
|
|
3132
3164
|
)
|
|
@@ -3134,18 +3166,18 @@ function PromptModal(props) {
|
|
|
3134
3166
|
)
|
|
3135
3167
|
}
|
|
3136
3168
|
),
|
|
3137
|
-
/* @__PURE__ */ (0,
|
|
3138
|
-
/* @__PURE__ */ (0,
|
|
3169
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
3170
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
3139
3171
|
] }),
|
|
3140
|
-
/* @__PURE__ */ (0,
|
|
3172
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3141
3173
|
import_jsx6.VStack,
|
|
3142
3174
|
{
|
|
3143
3175
|
alignItems: "flex-start",
|
|
3144
3176
|
marginBlockStart: "md",
|
|
3145
3177
|
marginBlockEnd: "lg",
|
|
3146
3178
|
w: "full",
|
|
3147
|
-
children: /* @__PURE__ */ (0,
|
|
3148
|
-
/* @__PURE__ */ (0,
|
|
3179
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Field, { invalid: !isValid, children: [
|
|
3180
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3149
3181
|
Label,
|
|
3150
3182
|
{
|
|
3151
3183
|
className: (0, import_patterns15.hstack)({
|
|
@@ -3156,12 +3188,12 @@ function PromptModal(props) {
|
|
|
3156
3188
|
size: "md",
|
|
3157
3189
|
children: [
|
|
3158
3190
|
"Type",
|
|
3159
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
|
|
3160
3192
|
"to confirm"
|
|
3161
3193
|
]
|
|
3162
3194
|
}
|
|
3163
3195
|
),
|
|
3164
|
-
/* @__PURE__ */ (0,
|
|
3196
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3165
3197
|
Input,
|
|
3166
3198
|
{
|
|
3167
3199
|
id: "confirm",
|
|
@@ -3173,8 +3205,8 @@ function PromptModal(props) {
|
|
|
3173
3205
|
] })
|
|
3174
3206
|
}
|
|
3175
3207
|
),
|
|
3176
|
-
/* @__PURE__ */ (0,
|
|
3177
|
-
/* @__PURE__ */ (0,
|
|
3208
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx6.HStack, { gap: "md", justify: "stretch", w: "full", children: [
|
|
3209
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3178
3210
|
Button,
|
|
3179
3211
|
{
|
|
3180
3212
|
autoFocus: true,
|
|
@@ -3189,7 +3221,7 @@ function PromptModal(props) {
|
|
|
3189
3221
|
children: content == null ? void 0 : content.actionText
|
|
3190
3222
|
}
|
|
3191
3223
|
),
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react26.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3193
3225
|
Button,
|
|
3194
3226
|
{
|
|
3195
3227
|
className: (0, import_css50.css)({
|
|
@@ -3281,7 +3313,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
|
|
|
3281
3313
|
}
|
|
3282
3314
|
|
|
3283
3315
|
// src/context/theme.tsx
|
|
3284
|
-
var
|
|
3316
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3285
3317
|
var ThemeContext = (0, import_react28.createContext)(
|
|
3286
3318
|
null
|
|
3287
3319
|
);
|
|
@@ -3291,7 +3323,7 @@ function ThemeProvider(props) {
|
|
|
3291
3323
|
updateMode: props.updateMode,
|
|
3292
3324
|
updateTheme: props.updateTheme
|
|
3293
3325
|
});
|
|
3294
|
-
return /* @__PURE__ */ (0,
|
|
3326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ThemeContext.Provider, { value: state, children: props.children });
|
|
3295
3327
|
}
|
|
3296
3328
|
function useThemeContext() {
|
|
3297
3329
|
const context = (0, import_react28.useContext)(ThemeContext);
|
|
@@ -3473,9 +3505,9 @@ function rootColorsReducer(state, action) {
|
|
|
3473
3505
|
}
|
|
3474
3506
|
|
|
3475
3507
|
// src/config/icons/checkbox.icons.tsx
|
|
3476
|
-
var
|
|
3508
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3477
3509
|
function CheckmarkIcon(props) {
|
|
3478
|
-
return /* @__PURE__ */ (0,
|
|
3510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3479
3511
|
"svg",
|
|
3480
3512
|
{
|
|
3481
3513
|
"aria-hidden": "true",
|
|
@@ -3484,7 +3516,7 @@ function CheckmarkIcon(props) {
|
|
|
3484
3516
|
role: "img",
|
|
3485
3517
|
viewBox: "0 0 24 24",
|
|
3486
3518
|
...props,
|
|
3487
|
-
children: /* @__PURE__ */ (0,
|
|
3519
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3488
3520
|
"path",
|
|
3489
3521
|
{
|
|
3490
3522
|
fill: "currentColor",
|
|
@@ -3495,7 +3527,7 @@ function CheckmarkIcon(props) {
|
|
|
3495
3527
|
);
|
|
3496
3528
|
}
|
|
3497
3529
|
function IndeterminateIcon(props) {
|
|
3498
|
-
return /* @__PURE__ */ (0,
|
|
3530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
3499
3531
|
"svg",
|
|
3500
3532
|
{
|
|
3501
3533
|
"aria-hidden": "true",
|
|
@@ -3504,15 +3536,15 @@ function IndeterminateIcon(props) {
|
|
|
3504
3536
|
fill: "none",
|
|
3505
3537
|
viewBox: "0 0 24 24",
|
|
3506
3538
|
...props,
|
|
3507
|
-
children: /* @__PURE__ */ (0,
|
|
3539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
|
|
3508
3540
|
}
|
|
3509
3541
|
);
|
|
3510
3542
|
}
|
|
3511
3543
|
|
|
3512
3544
|
// src/components/AnimatingUploadIcon.tsx
|
|
3513
|
-
var
|
|
3545
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3514
3546
|
function AnimatingUploadIcon(props) {
|
|
3515
|
-
return /* @__PURE__ */ (0,
|
|
3547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3516
3548
|
"svg",
|
|
3517
3549
|
{
|
|
3518
3550
|
"aria-hidden": "true",
|
|
@@ -3520,7 +3552,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3520
3552
|
width: props.size ?? "1em",
|
|
3521
3553
|
height: props.size ?? "1em",
|
|
3522
3554
|
viewBox: "0 0 24 24",
|
|
3523
|
-
children: /* @__PURE__ */ (0,
|
|
3555
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
3524
3556
|
"g",
|
|
3525
3557
|
{
|
|
3526
3558
|
fill: "none",
|
|
@@ -3529,14 +3561,14 @@ function AnimatingUploadIcon(props) {
|
|
|
3529
3561
|
strokeLinejoin: "round",
|
|
3530
3562
|
strokeWidth: 1.5,
|
|
3531
3563
|
children: [
|
|
3532
|
-
/* @__PURE__ */ (0,
|
|
3564
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3533
3565
|
"path",
|
|
3534
3566
|
{
|
|
3535
3567
|
"data-name": "animating-trail",
|
|
3536
3568
|
strokeDasharray: "2 4",
|
|
3537
3569
|
strokeDashoffset: 6,
|
|
3538
3570
|
d: "M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9",
|
|
3539
|
-
children: /* @__PURE__ */ (0,
|
|
3571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3540
3572
|
"animate",
|
|
3541
3573
|
{
|
|
3542
3574
|
attributeName: "stroke-dashoffset",
|
|
@@ -3547,14 +3579,14 @@ function AnimatingUploadIcon(props) {
|
|
|
3547
3579
|
)
|
|
3548
3580
|
}
|
|
3549
3581
|
),
|
|
3550
|
-
/* @__PURE__ */ (0,
|
|
3582
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3551
3583
|
"path",
|
|
3552
3584
|
{
|
|
3553
3585
|
"data-name": "half-circle",
|
|
3554
3586
|
strokeDasharray: 32,
|
|
3555
3587
|
strokeDashoffset: 32,
|
|
3556
3588
|
d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9",
|
|
3557
|
-
children: /* @__PURE__ */ (0,
|
|
3589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3558
3590
|
"animate",
|
|
3559
3591
|
{
|
|
3560
3592
|
fill: "freeze",
|
|
@@ -3566,7 +3598,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3566
3598
|
)
|
|
3567
3599
|
}
|
|
3568
3600
|
),
|
|
3569
|
-
/* @__PURE__ */ (0,
|
|
3601
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3570
3602
|
"svg",
|
|
3571
3603
|
{
|
|
3572
3604
|
"aria-hidden": "true",
|
|
@@ -3576,7 +3608,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3576
3608
|
x: "27%",
|
|
3577
3609
|
y: "27%",
|
|
3578
3610
|
viewBox: "0 0 24 24",
|
|
3579
|
-
children: /* @__PURE__ */ (0,
|
|
3611
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3580
3612
|
"polygon",
|
|
3581
3613
|
{
|
|
3582
3614
|
fill: "currentColor",
|
|
@@ -3584,7 +3616,7 @@ function AnimatingUploadIcon(props) {
|
|
|
3584
3616
|
strokeWidth: 0.8,
|
|
3585
3617
|
opacity: "1",
|
|
3586
3618
|
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 ",
|
|
3587
|
-
children: /* @__PURE__ */ (0,
|
|
3619
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3588
3620
|
"animate",
|
|
3589
3621
|
{
|
|
3590
3622
|
fill: "freeze",
|
|
@@ -3719,6 +3751,20 @@ __reExport(src_exports, require("@dnd-kit/core"), module.exports);
|
|
|
3719
3751
|
Radio,
|
|
3720
3752
|
RangePickerInput,
|
|
3721
3753
|
Select,
|
|
3754
|
+
SelectClearTrigger,
|
|
3755
|
+
SelectContent,
|
|
3756
|
+
SelectControl,
|
|
3757
|
+
SelectIndicator,
|
|
3758
|
+
SelectItem,
|
|
3759
|
+
SelectItemGroup,
|
|
3760
|
+
SelectItemGroupLabel,
|
|
3761
|
+
SelectItemIndicator,
|
|
3762
|
+
SelectItemText,
|
|
3763
|
+
SelectLabel,
|
|
3764
|
+
SelectPositioner,
|
|
3765
|
+
SelectRoot,
|
|
3766
|
+
SelectTrigger,
|
|
3767
|
+
SelectValueText,
|
|
3722
3768
|
Show,
|
|
3723
3769
|
Spinner,
|
|
3724
3770
|
THEME_KEY,
|