@sikka/hawa 0.35.5-next → 0.36.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chip-BtgTAs8x.d.mts → Chip-CGl24Kd9.d.mts} +2 -2
- package/dist/{Chip-DQsP5hFS.d.ts → Chip-Cato49ar.d.ts} +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +6 -4
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +6 -4
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +180 -172
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +201 -193
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +28 -5
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +0 -1
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +94 -69
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +81 -56
- package/dist/blocks/misc/index.mjs +65 -65
- package/dist/blocks/pricing/index.js +6 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chip/index.d.mts +2 -2
- package/dist/chip/index.d.ts +2 -2
- package/dist/chip/index.js +6 -4
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +6 -4
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-6QIOEUE2.mjs} +1 -1
- package/dist/{chunk-JEZLVXSU.mjs → chunk-BXBSZD5X.mjs} +26 -2
- package/dist/{chunk-LVXG3SMD.mjs → chunk-CJ57JBYA.mjs} +6 -4
- package/dist/{chunk-CD6AQVU3.mjs → chunk-HLYAX77R.mjs} +0 -1
- package/dist/{chunk-G7JHUC5N.mjs → chunk-NNPNQK6F.mjs} +211 -4
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/{chunk-TERP5K6R.mjs → chunk-T33FXOHA.mjs} +29 -189
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/dataTable/index.js +41 -5
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +41 -5
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -0
- package/dist/datePicker/index.d.ts +1 -0
- package/dist/datePicker/index.js +3 -2
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -2
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +8 -4
- package/dist/elements/index.d.ts +8 -4
- package/dist/elements/index.js +124 -87
- package/dist/elements/index.mjs +25 -13
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.css +10 -0
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +225 -189
- package/dist/index.mjs +771 -736
- package/dist/input/index.d.mts +6 -2
- package/dist/input/index.d.ts +6 -2
- package/dist/input/index.js +26 -2
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +26 -2
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +289 -281
- package/dist/layout/index.mjs +24 -56
- package/dist/passwordInput/index.js +26 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +26 -2
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -2
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -2
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +1 -1
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +1 -1
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.js +0 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +0 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/sidebar/index.js +6 -4
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +6 -4
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +26 -24
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +30 -28
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +7 -8
- package/dist/chunk-545D35G6.mjs +0 -54
package/dist/index.js
CHANGED
@@ -232,6 +232,7 @@ __export(components_exports, {
|
|
232
232
|
reducer: () => reducer,
|
233
233
|
toast: () => toast,
|
234
234
|
useBreakpoint: () => useBreakpoint,
|
235
|
+
useClickOutside: () => useClickOutside,
|
235
236
|
useClipboard: () => useClipboard,
|
236
237
|
useDialogCarousel: () => useDialogCarousel,
|
237
238
|
useFocusWithin: () => useFocusWithin,
|
@@ -1091,7 +1092,8 @@ var Chip = import_react5.default.forwardRef(
|
|
1091
1092
|
icon,
|
1092
1093
|
color,
|
1093
1094
|
radius = "inherit",
|
1094
|
-
|
1095
|
+
dot,
|
1096
|
+
dotStatus = "none",
|
1095
1097
|
...rest
|
1096
1098
|
}, ref) => {
|
1097
1099
|
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
@@ -1110,7 +1112,8 @@ var Chip = import_react5.default.forwardRef(
|
|
1110
1112
|
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
1111
1113
|
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
1112
1114
|
};
|
1113
|
-
let
|
1115
|
+
let dotStatusStyles = {
|
1116
|
+
none: "hawa-bg-gray-500 dark:hawa-bg-gray-800",
|
1114
1117
|
available: "hawa-bg-green-500",
|
1115
1118
|
unavailable: "hawa-bg-red-500"
|
1116
1119
|
};
|
@@ -1138,10 +1141,10 @@ var Chip = import_react5.default.forwardRef(
|
|
1138
1141
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
1139
1142
|
)
|
1140
1143
|
},
|
1141
|
-
|
1144
|
+
dot && /* @__PURE__ */ import_react5.default.createElement(
|
1142
1145
|
"span",
|
1143
1146
|
{
|
1144
|
-
className: cn(dotStyles[size],
|
1147
|
+
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
1145
1148
|
}
|
1146
1149
|
),
|
1147
1150
|
icon && icon,
|
@@ -2658,7 +2661,7 @@ var Input = (0, import_react11.forwardRef)(
|
|
2658
2661
|
auto: ""
|
2659
2662
|
};
|
2660
2663
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
2661
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
2664
|
+
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm placeholder:hawa-text-muted-foreground";
|
2662
2665
|
const handleChange = (e) => {
|
2663
2666
|
let newValue = e.target.value;
|
2664
2667
|
if (props.prefixText) {
|
@@ -2697,7 +2700,31 @@ var Input = (0, import_react11.forwardRef)(
|
|
2697
2700
|
)
|
2698
2701
|
},
|
2699
2702
|
props.outsidePrefix
|
2700
|
-
), props.isLoading ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react11.default.createElement(
|
2703
|
+
), props.isLoading ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement(
|
2704
|
+
Skeleton,
|
2705
|
+
{
|
2706
|
+
animation: "none",
|
2707
|
+
className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
|
2708
|
+
content: /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react11.default.createElement(
|
2709
|
+
"svg",
|
2710
|
+
{
|
2711
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2712
|
+
width: "20",
|
2713
|
+
height: "20",
|
2714
|
+
viewBox: "0 0 24 24",
|
2715
|
+
fill: "none",
|
2716
|
+
stroke: "currentColor",
|
2717
|
+
strokeWidth: "2",
|
2718
|
+
strokeLinecap: "round",
|
2719
|
+
strokeLinejoin: "round",
|
2720
|
+
className: "hawa-text-destructive"
|
2721
|
+
},
|
2722
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
|
2723
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 9v4" }),
|
2724
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 17h.01" })
|
2725
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, /* @__PURE__ */ import_react11.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
|
2726
|
+
}
|
2727
|
+
)) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react11.default.createElement(
|
2701
2728
|
"div",
|
2702
2729
|
{
|
2703
2730
|
className: cn(
|
@@ -2889,6 +2916,7 @@ TableHeader.displayName = "TableHeader";
|
|
2889
2916
|
TableCaption.displayName = "TableCaption";
|
2890
2917
|
|
2891
2918
|
// elements/dataTable/DataTable.tsx
|
2919
|
+
var LOCAL_STORAGE_KEY = "datatable-column-visibility";
|
2892
2920
|
var DataTable = ({
|
2893
2921
|
columns,
|
2894
2922
|
data,
|
@@ -2908,7 +2936,10 @@ var DataTable = ({
|
|
2908
2936
|
);
|
2909
2937
|
const [globalFilter, setGlobalFilter] = React23.useState("");
|
2910
2938
|
const [expanded, setExpanded] = React23.useState({});
|
2911
|
-
const [columnVisibility, setColumnVisibility] = React23.useState({
|
2939
|
+
const [columnVisibility, setColumnVisibility] = React23.useState(() => {
|
2940
|
+
const savedVisibility = localStorage.getItem(LOCAL_STORAGE_KEY);
|
2941
|
+
return savedVisibility ? JSON.parse(savedVisibility) : {};
|
2942
|
+
});
|
2912
2943
|
const [rowSelection, setRowSelection] = React23.useState({});
|
2913
2944
|
const table = (0, import_react_table.useReactTable)({
|
2914
2945
|
data,
|
@@ -2938,12 +2969,20 @@ var DataTable = ({
|
|
2938
2969
|
label: `${item} / ${pageText}`,
|
2939
2970
|
value: item
|
2940
2971
|
}));
|
2972
|
+
React23.useEffect(() => {
|
2973
|
+
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
|
2974
|
+
}, [columnVisibility]);
|
2941
2975
|
React23.useEffect(() => {
|
2942
2976
|
setColumnVisibility((prev) => {
|
2943
2977
|
let newColumnVisibility = {};
|
2944
2978
|
columns.forEach((column) => {
|
2945
2979
|
var _a2;
|
2946
|
-
|
2980
|
+
const savedVisibility = prev[column.accessorKey];
|
2981
|
+
if (savedVisibility !== void 0) {
|
2982
|
+
newColumnVisibility[column.accessorKey] = savedVisibility;
|
2983
|
+
} else {
|
2984
|
+
newColumnVisibility[column.accessorKey] = !((_a2 = column.meta) == null ? void 0 : _a2.hidden);
|
2985
|
+
}
|
2947
2986
|
});
|
2948
2987
|
return newColumnVisibility;
|
2949
2988
|
});
|
@@ -3112,7 +3151,7 @@ var DataTable = ({
|
|
3112
3151
|
}
|
3113
3152
|
table.setPageIndex(page);
|
3114
3153
|
},
|
3115
|
-
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
|
3154
|
+
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
|
3116
3155
|
}
|
3117
3156
|
)), /* @__PURE__ */ React23.createElement(
|
3118
3157
|
DropdownMenu,
|
@@ -4277,7 +4316,7 @@ var SortButton = (props) => {
|
|
4277
4316
|
};
|
4278
4317
|
|
4279
4318
|
// elements/tabs/Tabs.tsx
|
4280
|
-
var
|
4319
|
+
var React41 = __toESM(require("react"));
|
4281
4320
|
|
4282
4321
|
// hooks/useIsomorphicEffect.ts
|
4283
4322
|
var import_react16 = require("react");
|
@@ -4693,33 +4732,42 @@ var useMeasureDirty = (ref) => {
|
|
4693
4732
|
return rect;
|
4694
4733
|
};
|
4695
4734
|
|
4696
|
-
// hooks/
|
4697
|
-
var import_react31 =
|
4698
|
-
var
|
4699
|
-
|
4700
|
-
import_react31.
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4735
|
+
// hooks/useClickOutside.ts
|
4736
|
+
var import_react31 = require("react");
|
4737
|
+
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
4738
|
+
function useClickOutside(handler, events, nodes) {
|
4739
|
+
const ref = (0, import_react31.useRef)();
|
4740
|
+
(0, import_react31.useEffect)(() => {
|
4741
|
+
const listener = (event) => {
|
4742
|
+
const { target } = event != null ? event : {};
|
4743
|
+
if (Array.isArray(nodes)) {
|
4744
|
+
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
4745
|
+
const shouldTrigger = nodes.every(
|
4746
|
+
(node) => !!node && !event.composedPath().includes(node)
|
4747
|
+
);
|
4748
|
+
shouldTrigger && !shouldIgnore && handler();
|
4749
|
+
} else if (ref.current && !ref.current.contains(target)) {
|
4750
|
+
handler();
|
4704
4751
|
}
|
4705
4752
|
};
|
4706
|
-
|
4707
|
-
|
4753
|
+
(events || DEFAULT_EVENTS).forEach(
|
4754
|
+
(fn) => document.addEventListener(fn, listener)
|
4755
|
+
);
|
4708
4756
|
return () => {
|
4709
|
-
|
4710
|
-
|
4757
|
+
(events || DEFAULT_EVENTS).forEach(
|
4758
|
+
(fn) => document.removeEventListener(fn, listener)
|
4759
|
+
);
|
4711
4760
|
};
|
4712
|
-
}, [ref,
|
4761
|
+
}, [ref, handler, nodes]);
|
4713
4762
|
return ref;
|
4714
|
-
}
|
4715
|
-
var useOutsideClick_default = useOutsideClick;
|
4763
|
+
}
|
4716
4764
|
|
4717
4765
|
// elements/tabs/Tabs.tsx
|
4718
4766
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4719
4767
|
var import_tailwind_variants = require("tailwind-variants");
|
4720
4768
|
|
4721
4769
|
// elements/floatBox/FloatBox.tsx
|
4722
|
-
var
|
4770
|
+
var React40 = __toESM(require("react"));
|
4723
4771
|
var FloatBox = ({
|
4724
4772
|
className,
|
4725
4773
|
open,
|
@@ -4757,7 +4805,7 @@ var FloatBox = ({
|
|
4757
4805
|
right: "hawa-arrow-default-left",
|
4758
4806
|
left: "hawa-arrow-default-right"
|
4759
4807
|
};
|
4760
|
-
return /* @__PURE__ */
|
4808
|
+
return /* @__PURE__ */ React40.createElement(
|
4761
4809
|
"div",
|
4762
4810
|
{
|
4763
4811
|
className: cn(
|
@@ -4768,8 +4816,8 @@ var FloatBox = ({
|
|
4768
4816
|
"data-side": side,
|
4769
4817
|
"data-floatbox-state": open ? "open" : "closed"
|
4770
4818
|
},
|
4771
|
-
withArrow && /* @__PURE__ */
|
4772
|
-
/* @__PURE__ */
|
4819
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4820
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4773
4821
|
);
|
4774
4822
|
};
|
4775
4823
|
|
@@ -4832,8 +4880,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4832
4880
|
],
|
4833
4881
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4834
4882
|
});
|
4835
|
-
var TabsContext =
|
4836
|
-
var Tabs =
|
4883
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4884
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4837
4885
|
TabsPrimitive.Root,
|
4838
4886
|
{
|
4839
4887
|
ref,
|
@@ -4844,11 +4892,11 @@ var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ..
|
|
4844
4892
|
),
|
4845
4893
|
...props
|
4846
4894
|
},
|
4847
|
-
/* @__PURE__ */
|
4895
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4848
4896
|
));
|
4849
|
-
var TabsList =
|
4850
|
-
const { orientation, variant } =
|
4851
|
-
return /* @__PURE__ */
|
4897
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4898
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4899
|
+
return /* @__PURE__ */ React41.createElement(
|
4852
4900
|
TabsPrimitive.List,
|
4853
4901
|
{
|
4854
4902
|
ref,
|
@@ -4861,11 +4909,11 @@ var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4861
4909
|
}
|
4862
4910
|
);
|
4863
4911
|
});
|
4864
|
-
var TabsTrigger =
|
4865
|
-
const { orientation, variant } =
|
4866
|
-
const tabTriggerRef =
|
4912
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4913
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4914
|
+
const tabTriggerRef = React41.useRef(null);
|
4867
4915
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4868
|
-
return /* @__PURE__ */
|
4916
|
+
return /* @__PURE__ */ React41.createElement(
|
4869
4917
|
TabsPrimitive.Trigger,
|
4870
4918
|
{
|
4871
4919
|
ref: tabTriggerRef,
|
@@ -4877,8 +4925,8 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4877
4925
|
...props
|
4878
4926
|
},
|
4879
4927
|
props.children,
|
4880
|
-
chipProps && /* @__PURE__ */
|
4881
|
-
/* @__PURE__ */
|
4928
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4929
|
+
/* @__PURE__ */ React41.createElement(
|
4882
4930
|
FloatBox,
|
4883
4931
|
{
|
4884
4932
|
withArrow: true,
|
@@ -4891,7 +4939,7 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4891
4939
|
)
|
4892
4940
|
);
|
4893
4941
|
});
|
4894
|
-
var TabsContent =
|
4942
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4895
4943
|
TabsPrimitive.Content,
|
4896
4944
|
{
|
4897
4945
|
ref,
|
@@ -5006,7 +5054,6 @@ var Select = ({
|
|
5006
5054
|
)
|
5007
5055
|
},
|
5008
5056
|
unstyled: true,
|
5009
|
-
autoFocus: true,
|
5010
5057
|
components: props.hideIndicator ? {
|
5011
5058
|
Option,
|
5012
5059
|
Menu: Menu2,
|
@@ -5096,15 +5143,15 @@ var Select = ({
|
|
5096
5143
|
};
|
5097
5144
|
|
5098
5145
|
// elements/switch/Switch.tsx
|
5099
|
-
var
|
5146
|
+
var React43 = __toESM(require("react"));
|
5100
5147
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
5101
|
-
var Switch =
|
5148
|
+
var Switch = React43.forwardRef(
|
5102
5149
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5103
|
-
const [parentDirection, setParentDirection] =
|
5150
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
5104
5151
|
null
|
5105
5152
|
);
|
5106
|
-
const parentRef =
|
5107
|
-
|
5153
|
+
const parentRef = React43.useRef(null);
|
5154
|
+
React43.useEffect(() => {
|
5108
5155
|
var _a;
|
5109
5156
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
5110
5157
|
if (parentNode) {
|
@@ -5132,13 +5179,13 @@ var Switch = React44.forwardRef(
|
|
5132
5179
|
full: "hawa-rounded-full",
|
5133
5180
|
inherit: "hawa-rounded-inner"
|
5134
5181
|
};
|
5135
|
-
return /* @__PURE__ */
|
5182
|
+
return /* @__PURE__ */ React43.createElement(
|
5136
5183
|
"div",
|
5137
5184
|
{
|
5138
5185
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
5139
5186
|
ref: parentRef
|
5140
5187
|
},
|
5141
|
-
/* @__PURE__ */
|
5188
|
+
/* @__PURE__ */ React43.createElement(
|
5142
5189
|
SwitchPrimitives.Root,
|
5143
5190
|
{
|
5144
5191
|
className: cn(
|
@@ -5152,7 +5199,7 @@ var Switch = React44.forwardRef(
|
|
5152
5199
|
...props,
|
5153
5200
|
ref
|
5154
5201
|
},
|
5155
|
-
/* @__PURE__ */
|
5202
|
+
/* @__PURE__ */ React43.createElement(
|
5156
5203
|
SwitchPrimitives.Thumb,
|
5157
5204
|
{
|
5158
5205
|
className: cn(
|
@@ -5166,14 +5213,14 @@ var Switch = React44.forwardRef(
|
|
5166
5213
|
}
|
5167
5214
|
)
|
5168
5215
|
),
|
5169
|
-
label && /* @__PURE__ */
|
5216
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5170
5217
|
);
|
5171
5218
|
}
|
5172
5219
|
);
|
5173
5220
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
5174
5221
|
|
5175
5222
|
// elements/checkbox/Checkbox.tsx
|
5176
|
-
var
|
5223
|
+
var React44 = __toESM(require("react"));
|
5177
5224
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
5178
5225
|
var Checkbox = ({
|
5179
5226
|
id,
|
@@ -5193,7 +5240,7 @@ var Checkbox = ({
|
|
5193
5240
|
lg: 0.9,
|
5194
5241
|
xl: 1
|
5195
5242
|
};
|
5196
|
-
return /* @__PURE__ */
|
5243
|
+
return /* @__PURE__ */ React44.createElement(
|
5197
5244
|
"div",
|
5198
5245
|
{
|
5199
5246
|
className: cn(
|
@@ -5201,7 +5248,7 @@ var Checkbox = ({
|
|
5201
5248
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
5202
5249
|
)
|
5203
5250
|
},
|
5204
|
-
/* @__PURE__ */
|
5251
|
+
/* @__PURE__ */ React44.createElement(
|
5205
5252
|
CheckboxElement,
|
5206
5253
|
{
|
5207
5254
|
...props,
|
@@ -5211,7 +5258,7 @@ var Checkbox = ({
|
|
5211
5258
|
id
|
5212
5259
|
}
|
5213
5260
|
),
|
5214
|
-
(label || helperText) && /* @__PURE__ */
|
5261
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
5215
5262
|
"label",
|
5216
5263
|
{
|
5217
5264
|
htmlFor: id,
|
@@ -5225,7 +5272,7 @@ var Checkbox = ({
|
|
5225
5272
|
}
|
5226
5273
|
},
|
5227
5274
|
label
|
5228
|
-
), sublabel && /* @__PURE__ */
|
5275
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
5229
5276
|
"label",
|
5230
5277
|
{
|
5231
5278
|
htmlFor: id,
|
@@ -5235,7 +5282,7 @@ var Checkbox = ({
|
|
5235
5282
|
)
|
5236
5283
|
},
|
5237
5284
|
sublabel
|
5238
|
-
), helperText && !disabled && /* @__PURE__ */
|
5285
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
5239
5286
|
"label",
|
5240
5287
|
{
|
5241
5288
|
htmlFor: id,
|
@@ -5248,7 +5295,7 @@ var Checkbox = ({
|
|
5248
5295
|
))
|
5249
5296
|
);
|
5250
5297
|
};
|
5251
|
-
var CheckboxElement =
|
5298
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
5252
5299
|
let checkboxRadius = {
|
5253
5300
|
none: "hawa-rounded-none",
|
5254
5301
|
inherit: "hawa-rounded-sm",
|
@@ -5270,7 +5317,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5270
5317
|
lg: "1em",
|
5271
5318
|
xl: "1.25em"
|
5272
5319
|
};
|
5273
|
-
return /* @__PURE__ */
|
5320
|
+
return /* @__PURE__ */ React44.createElement(
|
5274
5321
|
CheckboxPrimitive.Root,
|
5275
5322
|
{
|
5276
5323
|
ref,
|
@@ -5282,14 +5329,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5282
5329
|
),
|
5283
5330
|
...props
|
5284
5331
|
},
|
5285
|
-
/* @__PURE__ */
|
5332
|
+
/* @__PURE__ */ React44.createElement(
|
5286
5333
|
CheckboxPrimitive.Indicator,
|
5287
5334
|
{
|
5288
5335
|
className: cn(
|
5289
5336
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
5290
5337
|
)
|
5291
5338
|
},
|
5292
|
-
/* @__PURE__ */
|
5339
|
+
/* @__PURE__ */ React44.createElement(
|
5293
5340
|
"svg",
|
5294
5341
|
{
|
5295
5342
|
"aria-label": "Check Mark",
|
@@ -5300,7 +5347,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5300
5347
|
height: checkboxIndicatorSizes[size],
|
5301
5348
|
width: checkboxIndicatorSizes[size]
|
5302
5349
|
},
|
5303
|
-
/* @__PURE__ */
|
5350
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
5304
5351
|
),
|
5305
5352
|
" "
|
5306
5353
|
)
|
@@ -5309,9 +5356,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5309
5356
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
5310
5357
|
|
5311
5358
|
// elements/progress/Progress.tsx
|
5312
|
-
var
|
5359
|
+
var React45 = __toESM(require("react"));
|
5313
5360
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
5314
|
-
var Progress =
|
5361
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
5315
5362
|
ProgressPrimitive.Root,
|
5316
5363
|
{
|
5317
5364
|
ref,
|
@@ -5321,7 +5368,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5321
5368
|
),
|
5322
5369
|
...props
|
5323
5370
|
},
|
5324
|
-
/* @__PURE__ */
|
5371
|
+
/* @__PURE__ */ React45.createElement(
|
5325
5372
|
ProgressPrimitive.Indicator,
|
5326
5373
|
{
|
5327
5374
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -7228,7 +7275,7 @@ var PhoneInput = ({
|
|
7228
7275
|
onChange: handleInputChange,
|
7229
7276
|
placeholder: props.placeholder,
|
7230
7277
|
className: cn(
|
7231
|
-
"hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
7278
|
+
"placeholder:hawa-text-muted-foreground hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
7232
7279
|
),
|
7233
7280
|
...inputProps
|
7234
7281
|
}
|
@@ -7306,7 +7353,7 @@ var PinInput = ({
|
|
7306
7353
|
id: `input-${index}`,
|
7307
7354
|
pattern: "[0-9]*",
|
7308
7355
|
className: cn(
|
7309
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
7356
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center placeholder:hawa-text-muted-foreground",
|
7310
7357
|
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
7311
7358
|
),
|
7312
7359
|
onChange: (e) => handleChange(e, index),
|
@@ -7337,21 +7384,21 @@ var StopPropagationWrapper = (props) => {
|
|
7337
7384
|
};
|
7338
7385
|
|
7339
7386
|
// elements/scrollArea/ScrollArea.tsx
|
7340
|
-
var
|
7387
|
+
var React52 = __toESM(require("react"));
|
7341
7388
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
7342
|
-
var ScrollArea =
|
7389
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
7343
7390
|
ScrollAreaPrimitive.Root,
|
7344
7391
|
{
|
7345
7392
|
ref,
|
7346
7393
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
7347
7394
|
...props
|
7348
7395
|
},
|
7349
|
-
/* @__PURE__ */
|
7350
|
-
/* @__PURE__ */
|
7351
|
-
/* @__PURE__ */
|
7396
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
7397
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
7398
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
7352
7399
|
));
|
7353
7400
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
7354
|
-
var ScrollBar =
|
7401
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
7355
7402
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
7356
7403
|
{
|
7357
7404
|
ref,
|
@@ -7364,7 +7411,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
7364
7411
|
),
|
7365
7412
|
...props
|
7366
7413
|
},
|
7367
|
-
/* @__PURE__ */
|
7414
|
+
/* @__PURE__ */ React52.createElement(
|
7368
7415
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
7369
7416
|
{
|
7370
7417
|
className: cn(
|
@@ -7441,7 +7488,7 @@ var ColorPicker = ({
|
|
7441
7488
|
value: selectedColor,
|
7442
7489
|
className: cn(
|
7443
7490
|
"hawa-block hawa-h-[40px] hawa-w-24 hawa-rounded hawa-rounded-l-none hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all",
|
7444
|
-
"hawa-border hawa-border-l-0 hawa-border-l-transparent"
|
7491
|
+
"hawa-border hawa-border-l-0 hawa-border-l-transparent placeholder:hawa-text-muted-foreground"
|
7445
7492
|
// "hawa-border hawa-border-x-0 hawa-border-x-transparent hawa-border-b-0 hawa-rounded-tr-none"
|
7446
7493
|
),
|
7447
7494
|
style: {
|
@@ -7847,6 +7894,27 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7847
7894
|
)
|
7848
7895
|
);
|
7849
7896
|
};
|
7897
|
+
var MenuIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
7898
|
+
"svg",
|
7899
|
+
{
|
7900
|
+
"aria-label": "Menu Button",
|
7901
|
+
stroke: "currentColor",
|
7902
|
+
fill: "currentColor",
|
7903
|
+
strokeWidth: 0,
|
7904
|
+
viewBox: "0 0 20 20",
|
7905
|
+
"aria-hidden": "true",
|
7906
|
+
height: "1.6em",
|
7907
|
+
width: "1.6em"
|
7908
|
+
},
|
7909
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7910
|
+
"path",
|
7911
|
+
{
|
7912
|
+
fillRule: "evenodd",
|
7913
|
+
clipRule: "evenodd",
|
7914
|
+
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
7915
|
+
}
|
7916
|
+
)
|
7917
|
+
);
|
7850
7918
|
|
7851
7919
|
// elements/passwordInput/PasswordInput.tsx
|
7852
7920
|
var PasswordStrengthIndicator = ({ strength }) => {
|
@@ -7982,9 +8050,9 @@ var PasswordInput = ({
|
|
7982
8050
|
};
|
7983
8051
|
|
7984
8052
|
// elements/slider/Slider.tsx
|
7985
|
-
var
|
8053
|
+
var React60 = __toESM(require("react"));
|
7986
8054
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7987
|
-
var Slider =
|
8055
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7988
8056
|
SliderPrimitive.Root,
|
7989
8057
|
{
|
7990
8058
|
ref,
|
@@ -7994,13 +8062,13 @@ var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7994
8062
|
),
|
7995
8063
|
...props
|
7996
8064
|
},
|
7997
|
-
/* @__PURE__ */
|
7998
|
-
/* @__PURE__ */
|
8065
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React60.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
8066
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7999
8067
|
));
|
8000
8068
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
8001
8069
|
|
8002
8070
|
// elements/simpleTable/SimpleTable.tsx
|
8003
|
-
var
|
8071
|
+
var React61 = __toESM(require("react"));
|
8004
8072
|
var import_react_table2 = require("@tanstack/react-table");
|
8005
8073
|
var SimpleTable = ({
|
8006
8074
|
columns,
|
@@ -8015,7 +8083,7 @@ var SimpleTable = ({
|
|
8015
8083
|
columns,
|
8016
8084
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
8017
8085
|
});
|
8018
|
-
return /* @__PURE__ */
|
8086
|
+
return /* @__PURE__ */ React61.createElement(
|
8019
8087
|
"div",
|
8020
8088
|
{
|
8021
8089
|
className: cn(
|
@@ -8023,8 +8091,8 @@ var SimpleTable = ({
|
|
8023
8091
|
classNames
|
8024
8092
|
)
|
8025
8093
|
},
|
8026
|
-
props.isLoading ? /* @__PURE__ */
|
8027
|
-
return /* @__PURE__ */
|
8094
|
+
props.isLoading ? /* @__PURE__ */ React61.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React61.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React61.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React61.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React61.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
8095
|
+
return /* @__PURE__ */ React61.createElement(
|
8028
8096
|
TableHead,
|
8029
8097
|
{
|
8030
8098
|
condensed: props.condensed,
|
@@ -8039,7 +8107,7 @@ var SimpleTable = ({
|
|
8039
8107
|
header.getContext()
|
8040
8108
|
)
|
8041
8109
|
);
|
8042
|
-
})))), /* @__PURE__ */
|
8110
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
8043
8111
|
TableRow,
|
8044
8112
|
{
|
8045
8113
|
key: row.id,
|
@@ -8047,7 +8115,7 @@ var SimpleTable = ({
|
|
8047
8115
|
},
|
8048
8116
|
row.getVisibleCells().map((cell) => {
|
8049
8117
|
var _a2;
|
8050
|
-
return /* @__PURE__ */
|
8118
|
+
return /* @__PURE__ */ React61.createElement(
|
8051
8119
|
TableCell,
|
8052
8120
|
{
|
8053
8121
|
dir: props.direction,
|
@@ -8063,7 +8131,7 @@ var SimpleTable = ({
|
|
8063
8131
|
)
|
8064
8132
|
);
|
8065
8133
|
})
|
8066
|
-
)) : /* @__PURE__ */
|
8134
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
8067
8135
|
TableCell,
|
8068
8136
|
{
|
8069
8137
|
colSpan: columns.length,
|
@@ -8075,12 +8143,12 @@ var SimpleTable = ({
|
|
8075
8143
|
};
|
8076
8144
|
|
8077
8145
|
// elements/separator/Separator.tsx
|
8078
|
-
var
|
8146
|
+
var React62 = __toESM(require("react"));
|
8079
8147
|
var Separator2 = ({
|
8080
8148
|
className,
|
8081
8149
|
orientation = "horizontal",
|
8082
8150
|
...props
|
8083
|
-
}) => /* @__PURE__ */
|
8151
|
+
}) => /* @__PURE__ */ React62.createElement(
|
8084
8152
|
"div",
|
8085
8153
|
{
|
8086
8154
|
className: cn(
|
@@ -8445,7 +8513,7 @@ var Count = (props) => {
|
|
8445
8513
|
};
|
8446
8514
|
|
8447
8515
|
// elements/toast/Toast.tsx
|
8448
|
-
var
|
8516
|
+
var React67 = __toESM(require("react"));
|
8449
8517
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
8450
8518
|
var import_class_variance_authority4 = require("class-variance-authority");
|
8451
8519
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -8473,7 +8541,7 @@ var sizeStyles = {
|
|
8473
8541
|
sm: "hawa-text-xs"
|
8474
8542
|
};
|
8475
8543
|
var ToastProvider = ToastPrimitives.Provider;
|
8476
|
-
var ToastViewport =
|
8544
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8477
8545
|
ToastPrimitives.Viewport,
|
8478
8546
|
{
|
8479
8547
|
ref,
|
@@ -8485,8 +8553,8 @@ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8485
8553
|
}
|
8486
8554
|
));
|
8487
8555
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8488
|
-
var Toast =
|
8489
|
-
return /* @__PURE__ */
|
8556
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8557
|
+
return /* @__PURE__ */ React67.createElement(
|
8490
8558
|
ToastPrimitives.Root,
|
8491
8559
|
{
|
8492
8560
|
ref,
|
@@ -8501,8 +8569,8 @@ var Toast = React68.forwardRef(({ className, variant, severity = "none", directi
|
|
8501
8569
|
);
|
8502
8570
|
});
|
8503
8571
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8504
|
-
var ToastAction =
|
8505
|
-
return /* @__PURE__ */
|
8572
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
8573
|
+
return /* @__PURE__ */ React67.createElement(
|
8506
8574
|
ToastPrimitives.Action,
|
8507
8575
|
{
|
8508
8576
|
ref,
|
@@ -8520,7 +8588,7 @@ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
|
|
8520
8588
|
);
|
8521
8589
|
});
|
8522
8590
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8523
|
-
var ToastClose =
|
8591
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8524
8592
|
ToastPrimitives.Close,
|
8525
8593
|
{
|
8526
8594
|
ref,
|
@@ -8534,7 +8602,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8534
8602
|
"toast-close": "",
|
8535
8603
|
...props
|
8536
8604
|
},
|
8537
|
-
/* @__PURE__ */
|
8605
|
+
/* @__PURE__ */ React67.createElement(
|
8538
8606
|
"svg",
|
8539
8607
|
{
|
8540
8608
|
"aria-label": "Close Icon",
|
@@ -8543,7 +8611,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8543
8611
|
fill: "currentColor",
|
8544
8612
|
viewBox: "0 0 20 20"
|
8545
8613
|
},
|
8546
|
-
/* @__PURE__ */
|
8614
|
+
/* @__PURE__ */ React67.createElement(
|
8547
8615
|
"path",
|
8548
8616
|
{
|
8549
8617
|
fillRule: "evenodd",
|
@@ -8554,7 +8622,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8554
8622
|
)
|
8555
8623
|
));
|
8556
8624
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8557
|
-
var ToastTitle =
|
8625
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8558
8626
|
ToastPrimitives.Title,
|
8559
8627
|
{
|
8560
8628
|
ref,
|
@@ -8567,7 +8635,7 @@ var ToastTitle = React68.forwardRef(({ className, size = "default", ...props },
|
|
8567
8635
|
}
|
8568
8636
|
));
|
8569
8637
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8570
|
-
var ToastDescription =
|
8638
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8571
8639
|
ToastPrimitives.Description,
|
8572
8640
|
{
|
8573
8641
|
ref,
|
@@ -8831,13 +8899,13 @@ var Stats = ({
|
|
8831
8899
|
};
|
8832
8900
|
|
8833
8901
|
// layout/sidebar/Sidebar.tsx
|
8834
|
-
var
|
8902
|
+
var React73 = __toESM(require("react"));
|
8835
8903
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
8836
8904
|
var Accordion2 = AccordionPrimitive6.Root;
|
8837
8905
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
8838
|
-
var AccordionItem2 =
|
8906
|
+
var AccordionItem2 = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8839
8907
|
AccordionItem2.displayName = "AccordionItem";
|
8840
|
-
var AccordionTrigger2 =
|
8908
|
+
var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React73.createElement(
|
8841
8909
|
AccordionPrimitive6.Trigger,
|
8842
8910
|
{
|
8843
8911
|
ref,
|
@@ -8845,7 +8913,7 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
|
|
8845
8913
|
...props
|
8846
8914
|
},
|
8847
8915
|
children,
|
8848
|
-
showArrow && /* @__PURE__ */
|
8916
|
+
showArrow && /* @__PURE__ */ React73.createElement(
|
8849
8917
|
"svg",
|
8850
8918
|
{
|
8851
8919
|
"aria-label": "Chevron Right Icon",
|
@@ -8856,11 +8924,11 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
|
|
8856
8924
|
width: "1em",
|
8857
8925
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8858
8926
|
},
|
8859
|
-
/* @__PURE__ */
|
8927
|
+
/* @__PURE__ */ React73.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8860
8928
|
)
|
8861
8929
|
)));
|
8862
8930
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8863
|
-
var AccordionContent2 =
|
8931
|
+
var AccordionContent2 = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(
|
8864
8932
|
AccordionPrimitive6.Content,
|
8865
8933
|
{
|
8866
8934
|
ref,
|
@@ -8870,7 +8938,7 @@ var AccordionContent2 = React74.forwardRef(({ className, children, ...props }, r
|
|
8870
8938
|
),
|
8871
8939
|
...props
|
8872
8940
|
},
|
8873
|
-
/* @__PURE__ */
|
8941
|
+
/* @__PURE__ */ React73.createElement("div", null, children)
|
8874
8942
|
));
|
8875
8943
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8876
8944
|
var SidebarGroup = ({
|
@@ -8886,7 +8954,7 @@ var SidebarGroup = ({
|
|
8886
8954
|
...props
|
8887
8955
|
}) => {
|
8888
8956
|
const LinkComponent = props.LinkComponent || "a";
|
8889
|
-
return /* @__PURE__ */
|
8957
|
+
return /* @__PURE__ */ React73.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React73.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React73.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React73.createElement(
|
8890
8958
|
Accordion2,
|
8891
8959
|
{
|
8892
8960
|
value: openedItem,
|
@@ -8897,7 +8965,7 @@ var SidebarGroup = ({
|
|
8897
8965
|
collapsible: true,
|
8898
8966
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8899
8967
|
},
|
8900
|
-
items.map((item, idx) => /* @__PURE__ */
|
8968
|
+
items.map((item, idx) => /* @__PURE__ */ React73.createElement(
|
8901
8969
|
SidebarItem,
|
8902
8970
|
{
|
8903
8971
|
isOpen,
|
@@ -8925,14 +8993,14 @@ var SidebarItem = ({
|
|
8925
8993
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8926
8994
|
};
|
8927
8995
|
if (item.subitems) {
|
8928
|
-
return /* @__PURE__ */
|
8996
|
+
return /* @__PURE__ */ React73.createElement(
|
8929
8997
|
AccordionItem2,
|
8930
8998
|
{
|
8931
8999
|
value: item.value,
|
8932
9000
|
className: "hawa-overflow-x-clip ",
|
8933
9001
|
dir: direction
|
8934
9002
|
},
|
8935
|
-
/* @__PURE__ */
|
9003
|
+
/* @__PURE__ */ React73.createElement(
|
8936
9004
|
AccordionTrigger2,
|
8937
9005
|
{
|
8938
9006
|
className: cn(
|
@@ -8944,7 +9012,7 @@ var SidebarItem = ({
|
|
8944
9012
|
),
|
8945
9013
|
showArrow: isOpen
|
8946
9014
|
},
|
8947
|
-
/* @__PURE__ */
|
9015
|
+
/* @__PURE__ */ React73.createElement(
|
8948
9016
|
"div",
|
8949
9017
|
{
|
8950
9018
|
className: cn(
|
@@ -8952,7 +9020,7 @@ var SidebarItem = ({
|
|
8952
9020
|
)
|
8953
9021
|
},
|
8954
9022
|
item.icon && item.icon,
|
8955
|
-
/* @__PURE__ */
|
9023
|
+
/* @__PURE__ */ React73.createElement(
|
8956
9024
|
"span",
|
8957
9025
|
{
|
8958
9026
|
className: cn(
|
@@ -8964,14 +9032,14 @@ var SidebarItem = ({
|
|
8964
9032
|
)
|
8965
9033
|
)
|
8966
9034
|
),
|
8967
|
-
item.subitems && /* @__PURE__ */
|
9035
|
+
item.subitems && /* @__PURE__ */ React73.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React73.createElement(
|
8968
9036
|
"div",
|
8969
9037
|
{
|
8970
9038
|
className: cn(
|
8971
9039
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8972
9040
|
)
|
8973
9041
|
},
|
8974
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
9042
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React73.createElement(
|
8975
9043
|
LinkComponent,
|
8976
9044
|
{
|
8977
9045
|
href: subitem.slug,
|
@@ -9002,7 +9070,7 @@ var SidebarItem = ({
|
|
9002
9070
|
))
|
9003
9071
|
);
|
9004
9072
|
} else {
|
9005
|
-
return /* @__PURE__ */
|
9073
|
+
return /* @__PURE__ */ React73.createElement(
|
9006
9074
|
LinkComponent,
|
9007
9075
|
{
|
9008
9076
|
href: item.slug,
|
@@ -9026,7 +9094,7 @@ var SidebarItem = ({
|
|
9026
9094
|
"hawa-overflow-x-clip "
|
9027
9095
|
)
|
9028
9096
|
},
|
9029
|
-
/* @__PURE__ */
|
9097
|
+
/* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React73.createElement(
|
9030
9098
|
"span",
|
9031
9099
|
{
|
9032
9100
|
className: cn(
|
@@ -9036,7 +9104,7 @@ var SidebarItem = ({
|
|
9036
9104
|
},
|
9037
9105
|
item.label,
|
9038
9106
|
" ",
|
9039
|
-
item.badge && /* @__PURE__ */
|
9107
|
+
item.badge && /* @__PURE__ */ React73.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
9040
9108
|
))
|
9041
9109
|
);
|
9042
9110
|
}
|
@@ -9205,6 +9273,15 @@ var AppLayout = ({
|
|
9205
9273
|
);
|
9206
9274
|
const [openSideMenu, setOpenSideMenu] = (0, import_react57.useState)(true);
|
9207
9275
|
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react57.useState)(keepOpen);
|
9276
|
+
const handleClickOutside = () => {
|
9277
|
+
if (typeof window !== "undefined") {
|
9278
|
+
if (window.innerWidth < 600) {
|
9279
|
+
setKeepDrawerOpen(false);
|
9280
|
+
setOpenSideMenu(false);
|
9281
|
+
}
|
9282
|
+
}
|
9283
|
+
};
|
9284
|
+
const ref = useClickOutside(handleClickOutside);
|
9208
9285
|
(0, import_react57.useEffect)(() => {
|
9209
9286
|
if (typeof window !== "undefined") {
|
9210
9287
|
const resize = () => {
|
@@ -9223,25 +9300,14 @@ var AppLayout = ({
|
|
9223
9300
|
(0, import_react57.useEffect)(() => {
|
9224
9301
|
setKeepDrawerOpen(keepOpen);
|
9225
9302
|
}, [setKeepOpen]);
|
9226
|
-
const handleClickOutside = () => {
|
9227
|
-
if (typeof window !== "undefined") {
|
9228
|
-
if (keepDrawerOpen)
|
9229
|
-
return;
|
9230
|
-
if (window.innerWidth < 600) {
|
9231
|
-
setKeepDrawerOpen(false);
|
9232
|
-
setOpenSideMenu(false);
|
9233
|
-
}
|
9234
|
-
}
|
9235
|
-
};
|
9236
|
-
const ref = useOutsideClick_default(handleClickOutside);
|
9237
|
-
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9238
9303
|
(0, import_react57.useEffect)(() => {
|
9239
9304
|
if (size > 600) {
|
9240
9305
|
setOpenSideMenu(keepDrawerOpen);
|
9241
9306
|
} else {
|
9242
9307
|
setOpenSideMenu(false);
|
9243
9308
|
}
|
9244
|
-
}, [size]);
|
9309
|
+
}, [size, keepDrawerOpen]);
|
9310
|
+
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9245
9311
|
return /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react57.default.createElement(
|
9246
9312
|
"div",
|
9247
9313
|
{
|
@@ -9331,9 +9397,7 @@ var AppLayout = ({
|
|
9331
9397
|
style: {
|
9332
9398
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
9333
9399
|
},
|
9334
|
-
onMouseEnter: () =>
|
9335
|
-
setOpenSideMenu(true);
|
9336
|
-
},
|
9400
|
+
onMouseEnter: () => setOpenSideMenu(true),
|
9337
9401
|
onMouseLeave: () => {
|
9338
9402
|
if (size > 600) {
|
9339
9403
|
if (keepDrawerOpen) {
|
@@ -9366,23 +9430,23 @@ var AppLayout = ({
|
|
9366
9430
|
!props.header && /* @__PURE__ */ import_react57.default.createElement(
|
9367
9431
|
"img",
|
9368
9432
|
{
|
9433
|
+
src: props.logoLink,
|
9369
9434
|
className: cn(
|
9370
9435
|
"hawa-h-9 hawa-opacity-0 hawa-transition-all",
|
9371
9436
|
!openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
9372
9437
|
classNames == null ? void 0 : classNames.fullLogoImg
|
9373
|
-
)
|
9374
|
-
src: props.logoLink
|
9438
|
+
)
|
9375
9439
|
}
|
9376
9440
|
),
|
9377
9441
|
size > 600 ? /* @__PURE__ */ import_react57.default.createElement(
|
9378
9442
|
"img",
|
9379
9443
|
{
|
9444
|
+
src: props.logoSymbol,
|
9380
9445
|
className: cn(
|
9381
9446
|
"hawa-fixed hawa-h-9 hawa-transition-all hawa-start-2.5 hawa-top-2.5",
|
9382
9447
|
openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
9383
9448
|
classNames == null ? void 0 : classNames.symbolLogoImg
|
9384
|
-
)
|
9385
|
-
src: props.logoSymbol
|
9449
|
+
)
|
9386
9450
|
}
|
9387
9451
|
) : null
|
9388
9452
|
),
|
@@ -9401,22 +9465,14 @@ var AppLayout = ({
|
|
9401
9465
|
SidebarGroup,
|
9402
9466
|
{
|
9403
9467
|
direction,
|
9404
|
-
onItemClick: (values) => {
|
9405
|
-
if (clickedItem) {
|
9406
|
-
clickedItem(values);
|
9407
|
-
}
|
9408
|
-
},
|
9409
|
-
onSubItemClick: (values) => {
|
9410
|
-
if (clickedItem) {
|
9411
|
-
clickedItem(values);
|
9412
|
-
}
|
9413
|
-
},
|
9414
9468
|
selectedItem: currentPage,
|
9415
9469
|
openedItem: openedSidebarItem,
|
9416
9470
|
setOpenedItem: (e) => setOpenedSidebarItem(e),
|
9417
9471
|
isOpen: keepDrawerOpen || openSideMenu,
|
9418
9472
|
items: props.drawerItems,
|
9419
|
-
LinkComponent: DrawerLinkComponent
|
9473
|
+
LinkComponent: DrawerLinkComponent,
|
9474
|
+
onItemClick: (values) => clickedItem && clickedItem(values),
|
9475
|
+
onSubItemClick: (values) => clickedItem && clickedItem(values)
|
9420
9476
|
}
|
9421
9477
|
)
|
9422
9478
|
),
|
@@ -9494,27 +9550,6 @@ var AppLayout = ({
|
|
9494
9550
|
props.children
|
9495
9551
|
));
|
9496
9552
|
};
|
9497
|
-
var MenuIcon = () => /* @__PURE__ */ import_react57.default.createElement(
|
9498
|
-
"svg",
|
9499
|
-
{
|
9500
|
-
"aria-label": "Menu Button",
|
9501
|
-
stroke: "currentColor",
|
9502
|
-
fill: "currentColor",
|
9503
|
-
strokeWidth: 0,
|
9504
|
-
viewBox: "0 0 20 20",
|
9505
|
-
"aria-hidden": "true",
|
9506
|
-
height: "1.6em",
|
9507
|
-
width: "1.6em"
|
9508
|
-
},
|
9509
|
-
/* @__PURE__ */ import_react57.default.createElement(
|
9510
|
-
"path",
|
9511
|
-
{
|
9512
|
-
fillRule: "evenodd",
|
9513
|
-
clipRule: "evenodd",
|
9514
|
-
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
9515
|
-
}
|
9516
|
-
)
|
9517
|
-
);
|
9518
9553
|
|
9519
9554
|
// layout/appTopbar/AppTopbar.tsx
|
9520
9555
|
var import_react58 = __toESM(require("react"));
|
@@ -9622,14 +9657,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9622
9657
|
};
|
9623
9658
|
|
9624
9659
|
// layout/appMenubar/AppMenubar.tsx
|
9625
|
-
var
|
9660
|
+
var React78 = __toESM(require("react"));
|
9626
9661
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
9627
9662
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9628
9663
|
var MenubarGroup = MenubarPrimitive.Group;
|
9629
9664
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9630
9665
|
var MenubarSub = MenubarPrimitive.Sub;
|
9631
9666
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9632
|
-
var Menubar =
|
9667
|
+
var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9633
9668
|
MenubarPrimitive.Root,
|
9634
9669
|
{
|
9635
9670
|
ref,
|
@@ -9641,7 +9676,7 @@ var Menubar = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9641
9676
|
}
|
9642
9677
|
));
|
9643
9678
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9644
|
-
var MenubarTrigger =
|
9679
|
+
var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9645
9680
|
MenubarPrimitive.Trigger,
|
9646
9681
|
{
|
9647
9682
|
ref,
|
@@ -9653,7 +9688,7 @@ var MenubarTrigger = React79.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9653
9688
|
}
|
9654
9689
|
));
|
9655
9690
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9656
|
-
var MenubarSubTrigger =
|
9691
|
+
var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9657
9692
|
MenubarPrimitive.SubTrigger,
|
9658
9693
|
{
|
9659
9694
|
ref,
|
@@ -9665,7 +9700,7 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
|
|
9665
9700
|
...props
|
9666
9701
|
},
|
9667
9702
|
children,
|
9668
|
-
/* @__PURE__ */
|
9703
|
+
/* @__PURE__ */ React78.createElement(
|
9669
9704
|
"svg",
|
9670
9705
|
{
|
9671
9706
|
"aria-label": "Chevron Right Icon",
|
@@ -9680,11 +9715,11 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
|
|
9680
9715
|
strokeLinejoin: "round",
|
9681
9716
|
className: "hawa-icon hawa-ml-auto"
|
9682
9717
|
},
|
9683
|
-
/* @__PURE__ */
|
9718
|
+
/* @__PURE__ */ React78.createElement("path", { d: "m9 18 6-6-6-6" })
|
9684
9719
|
)
|
9685
9720
|
));
|
9686
9721
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9687
|
-
var MenubarSubContent =
|
9722
|
+
var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9688
9723
|
MenubarPrimitive.SubContent,
|
9689
9724
|
{
|
9690
9725
|
ref,
|
@@ -9696,8 +9731,8 @@ var MenubarSubContent = React79.forwardRef(({ className, ...props }, ref) => /*
|
|
9696
9731
|
}
|
9697
9732
|
));
|
9698
9733
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9699
|
-
var MenubarContent =
|
9700
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9734
|
+
var MenubarContent = React78.forwardRef(
|
9735
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React78.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React78.createElement(
|
9701
9736
|
MenubarPrimitive.Content,
|
9702
9737
|
{
|
9703
9738
|
ref,
|
@@ -9713,7 +9748,7 @@ var MenubarContent = React79.forwardRef(
|
|
9713
9748
|
))
|
9714
9749
|
);
|
9715
9750
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9716
|
-
var MenubarItem =
|
9751
|
+
var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9717
9752
|
MenubarPrimitive.Item,
|
9718
9753
|
{
|
9719
9754
|
ref,
|
@@ -9726,7 +9761,7 @@ var MenubarItem = React79.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9726
9761
|
}
|
9727
9762
|
));
|
9728
9763
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9729
|
-
var MenubarCheckboxItem =
|
9764
|
+
var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9730
9765
|
MenubarPrimitive.CheckboxItem,
|
9731
9766
|
{
|
9732
9767
|
ref,
|
@@ -9737,7 +9772,7 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
|
|
9737
9772
|
checked,
|
9738
9773
|
...props
|
9739
9774
|
},
|
9740
|
-
/* @__PURE__ */
|
9775
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9741
9776
|
"svg",
|
9742
9777
|
{
|
9743
9778
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9751,12 +9786,12 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
|
|
9751
9786
|
strokeLinejoin: "round",
|
9752
9787
|
className: "hawa-icon"
|
9753
9788
|
},
|
9754
|
-
/* @__PURE__ */
|
9789
|
+
/* @__PURE__ */ React78.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9755
9790
|
))),
|
9756
9791
|
children
|
9757
9792
|
));
|
9758
9793
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9759
|
-
var MenubarRadioItem =
|
9794
|
+
var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9760
9795
|
MenubarPrimitive.RadioItem,
|
9761
9796
|
{
|
9762
9797
|
ref,
|
@@ -9766,7 +9801,7 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
|
|
9766
9801
|
),
|
9767
9802
|
...props
|
9768
9803
|
},
|
9769
|
-
/* @__PURE__ */
|
9804
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9770
9805
|
"svg",
|
9771
9806
|
{
|
9772
9807
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9780,12 +9815,12 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
|
|
9780
9815
|
strokeLinejoin: "round",
|
9781
9816
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9782
9817
|
},
|
9783
|
-
/* @__PURE__ */
|
9818
|
+
/* @__PURE__ */ React78.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9784
9819
|
))),
|
9785
9820
|
children
|
9786
9821
|
));
|
9787
9822
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9788
|
-
var MenubarLabel =
|
9823
|
+
var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9789
9824
|
MenubarPrimitive.Label,
|
9790
9825
|
{
|
9791
9826
|
ref,
|
@@ -9798,7 +9833,7 @@ var MenubarLabel = React79.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9798
9833
|
}
|
9799
9834
|
));
|
9800
9835
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9801
|
-
var MenubarSeparator =
|
9836
|
+
var MenubarSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9802
9837
|
MenubarPrimitive.Separator,
|
9803
9838
|
{
|
9804
9839
|
ref,
|
@@ -9811,7 +9846,7 @@ var MenubarShortcut = ({
|
|
9811
9846
|
className,
|
9812
9847
|
...props
|
9813
9848
|
}) => {
|
9814
|
-
return /* @__PURE__ */
|
9849
|
+
return /* @__PURE__ */ React78.createElement(
|
9815
9850
|
"span",
|
9816
9851
|
{
|
9817
9852
|
className: cn(
|
@@ -13054,6 +13089,7 @@ var Usage = (props) => {
|
|
13054
13089
|
reducer,
|
13055
13090
|
toast,
|
13056
13091
|
useBreakpoint,
|
13092
|
+
useClickOutside,
|
13057
13093
|
useClipboard,
|
13058
13094
|
useDialogCarousel,
|
13059
13095
|
useFocusWithin,
|