@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/elements/index.js
CHANGED
@@ -1023,7 +1023,8 @@ var Chip = import_react5.default.forwardRef(
|
|
1023
1023
|
icon,
|
1024
1024
|
color,
|
1025
1025
|
radius = "inherit",
|
1026
|
-
|
1026
|
+
dot,
|
1027
|
+
dotStatus = "none",
|
1027
1028
|
...rest
|
1028
1029
|
}, ref) => {
|
1029
1030
|
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 ";
|
@@ -1042,7 +1043,8 @@ var Chip = import_react5.default.forwardRef(
|
|
1042
1043
|
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
1043
1044
|
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
1044
1045
|
};
|
1045
|
-
let
|
1046
|
+
let dotStatusStyles = {
|
1047
|
+
none: "hawa-bg-gray-500 dark:hawa-bg-gray-800",
|
1046
1048
|
available: "hawa-bg-green-500",
|
1047
1049
|
unavailable: "hawa-bg-red-500"
|
1048
1050
|
};
|
@@ -1070,10 +1072,10 @@ var Chip = import_react5.default.forwardRef(
|
|
1070
1072
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
1071
1073
|
)
|
1072
1074
|
},
|
1073
|
-
|
1075
|
+
dot && /* @__PURE__ */ import_react5.default.createElement(
|
1074
1076
|
"span",
|
1075
1077
|
{
|
1076
|
-
className: cn(dotStyles[size],
|
1078
|
+
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
1077
1079
|
}
|
1078
1080
|
),
|
1079
1081
|
icon && icon,
|
@@ -2590,7 +2592,7 @@ var Input = (0, import_react11.forwardRef)(
|
|
2590
2592
|
auto: ""
|
2591
2593
|
};
|
2592
2594
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
2593
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
2595
|
+
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";
|
2594
2596
|
const handleChange = (e) => {
|
2595
2597
|
let newValue = e.target.value;
|
2596
2598
|
if (props.prefixText) {
|
@@ -2629,7 +2631,31 @@ var Input = (0, import_react11.forwardRef)(
|
|
2629
2631
|
)
|
2630
2632
|
},
|
2631
2633
|
props.outsidePrefix
|
2632
|
-
), 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(
|
2634
|
+
), 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(
|
2635
|
+
Skeleton,
|
2636
|
+
{
|
2637
|
+
animation: "none",
|
2638
|
+
className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
|
2639
|
+
content: /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react11.default.createElement(
|
2640
|
+
"svg",
|
2641
|
+
{
|
2642
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2643
|
+
width: "20",
|
2644
|
+
height: "20",
|
2645
|
+
viewBox: "0 0 24 24",
|
2646
|
+
fill: "none",
|
2647
|
+
stroke: "currentColor",
|
2648
|
+
strokeWidth: "2",
|
2649
|
+
strokeLinecap: "round",
|
2650
|
+
strokeLinejoin: "round",
|
2651
|
+
className: "hawa-text-destructive"
|
2652
|
+
},
|
2653
|
+
/* @__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" }),
|
2654
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 9v4" }),
|
2655
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 17h.01" })
|
2656
|
+
), /* @__PURE__ */ import_react11.default.createElement("span", null, /* @__PURE__ */ import_react11.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
|
2657
|
+
}
|
2658
|
+
)) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react11.default.createElement(
|
2633
2659
|
"div",
|
2634
2660
|
{
|
2635
2661
|
className: cn(
|
@@ -2821,6 +2847,7 @@ TableHeader.displayName = "TableHeader";
|
|
2821
2847
|
TableCaption.displayName = "TableCaption";
|
2822
2848
|
|
2823
2849
|
// elements/dataTable/DataTable.tsx
|
2850
|
+
var LOCAL_STORAGE_KEY = "datatable-column-visibility";
|
2824
2851
|
var DataTable = ({
|
2825
2852
|
columns,
|
2826
2853
|
data,
|
@@ -2840,7 +2867,10 @@ var DataTable = ({
|
|
2840
2867
|
);
|
2841
2868
|
const [globalFilter, setGlobalFilter] = React23.useState("");
|
2842
2869
|
const [expanded, setExpanded] = React23.useState({});
|
2843
|
-
const [columnVisibility, setColumnVisibility] = React23.useState({
|
2870
|
+
const [columnVisibility, setColumnVisibility] = React23.useState(() => {
|
2871
|
+
const savedVisibility = localStorage.getItem(LOCAL_STORAGE_KEY);
|
2872
|
+
return savedVisibility ? JSON.parse(savedVisibility) : {};
|
2873
|
+
});
|
2844
2874
|
const [rowSelection, setRowSelection] = React23.useState({});
|
2845
2875
|
const table = (0, import_react_table.useReactTable)({
|
2846
2876
|
data,
|
@@ -2870,12 +2900,20 @@ var DataTable = ({
|
|
2870
2900
|
label: `${item} / ${pageText}`,
|
2871
2901
|
value: item
|
2872
2902
|
}));
|
2903
|
+
React23.useEffect(() => {
|
2904
|
+
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
|
2905
|
+
}, [columnVisibility]);
|
2873
2906
|
React23.useEffect(() => {
|
2874
2907
|
setColumnVisibility((prev) => {
|
2875
2908
|
let newColumnVisibility = {};
|
2876
2909
|
columns.forEach((column) => {
|
2877
2910
|
var _a2;
|
2878
|
-
|
2911
|
+
const savedVisibility = prev[column.accessorKey];
|
2912
|
+
if (savedVisibility !== void 0) {
|
2913
|
+
newColumnVisibility[column.accessorKey] = savedVisibility;
|
2914
|
+
} else {
|
2915
|
+
newColumnVisibility[column.accessorKey] = !((_a2 = column.meta) == null ? void 0 : _a2.hidden);
|
2916
|
+
}
|
2879
2917
|
});
|
2880
2918
|
return newColumnVisibility;
|
2881
2919
|
});
|
@@ -3044,7 +3082,7 @@ var DataTable = ({
|
|
3044
3082
|
}
|
3045
3083
|
table.setPageIndex(page);
|
3046
3084
|
},
|
3047
|
-
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
|
3085
|
+
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
|
3048
3086
|
}
|
3049
3087
|
)), /* @__PURE__ */ React23.createElement(
|
3050
3088
|
DropdownMenu,
|
@@ -4209,7 +4247,7 @@ var SortButton = (props) => {
|
|
4209
4247
|
};
|
4210
4248
|
|
4211
4249
|
// elements/tabs/Tabs.tsx
|
4212
|
-
var
|
4250
|
+
var React41 = __toESM(require("react"));
|
4213
4251
|
|
4214
4252
|
// hooks/useIsomorphicEffect.ts
|
4215
4253
|
var import_react16 = require("react");
|
@@ -4315,15 +4353,15 @@ var useMeasureDirty = (ref) => {
|
|
4315
4353
|
return rect;
|
4316
4354
|
};
|
4317
4355
|
|
4318
|
-
// hooks/
|
4319
|
-
var import_react31 =
|
4356
|
+
// hooks/useClickOutside.ts
|
4357
|
+
var import_react31 = require("react");
|
4320
4358
|
|
4321
4359
|
// elements/tabs/Tabs.tsx
|
4322
4360
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4323
4361
|
var import_tailwind_variants = require("tailwind-variants");
|
4324
4362
|
|
4325
4363
|
// elements/floatBox/FloatBox.tsx
|
4326
|
-
var
|
4364
|
+
var React40 = __toESM(require("react"));
|
4327
4365
|
var FloatBox = ({
|
4328
4366
|
className,
|
4329
4367
|
open,
|
@@ -4361,7 +4399,7 @@ var FloatBox = ({
|
|
4361
4399
|
right: "hawa-arrow-default-left",
|
4362
4400
|
left: "hawa-arrow-default-right"
|
4363
4401
|
};
|
4364
|
-
return /* @__PURE__ */
|
4402
|
+
return /* @__PURE__ */ React40.createElement(
|
4365
4403
|
"div",
|
4366
4404
|
{
|
4367
4405
|
className: cn(
|
@@ -4372,8 +4410,8 @@ var FloatBox = ({
|
|
4372
4410
|
"data-side": side,
|
4373
4411
|
"data-floatbox-state": open ? "open" : "closed"
|
4374
4412
|
},
|
4375
|
-
withArrow && /* @__PURE__ */
|
4376
|
-
/* @__PURE__ */
|
4413
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4414
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4377
4415
|
);
|
4378
4416
|
};
|
4379
4417
|
|
@@ -4436,8 +4474,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4436
4474
|
],
|
4437
4475
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4438
4476
|
});
|
4439
|
-
var TabsContext =
|
4440
|
-
var Tabs =
|
4477
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4478
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4441
4479
|
TabsPrimitive.Root,
|
4442
4480
|
{
|
4443
4481
|
ref,
|
@@ -4448,11 +4486,11 @@ var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ..
|
|
4448
4486
|
),
|
4449
4487
|
...props
|
4450
4488
|
},
|
4451
|
-
/* @__PURE__ */
|
4489
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4452
4490
|
));
|
4453
|
-
var TabsList =
|
4454
|
-
const { orientation, variant } =
|
4455
|
-
return /* @__PURE__ */
|
4491
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4492
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4493
|
+
return /* @__PURE__ */ React41.createElement(
|
4456
4494
|
TabsPrimitive.List,
|
4457
4495
|
{
|
4458
4496
|
ref,
|
@@ -4465,11 +4503,11 @@ var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4465
4503
|
}
|
4466
4504
|
);
|
4467
4505
|
});
|
4468
|
-
var TabsTrigger =
|
4469
|
-
const { orientation, variant } =
|
4470
|
-
const tabTriggerRef =
|
4506
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4507
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4508
|
+
const tabTriggerRef = React41.useRef(null);
|
4471
4509
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4472
|
-
return /* @__PURE__ */
|
4510
|
+
return /* @__PURE__ */ React41.createElement(
|
4473
4511
|
TabsPrimitive.Trigger,
|
4474
4512
|
{
|
4475
4513
|
ref: tabTriggerRef,
|
@@ -4481,8 +4519,8 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4481
4519
|
...props
|
4482
4520
|
},
|
4483
4521
|
props.children,
|
4484
|
-
chipProps && /* @__PURE__ */
|
4485
|
-
/* @__PURE__ */
|
4522
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4523
|
+
/* @__PURE__ */ React41.createElement(
|
4486
4524
|
FloatBox,
|
4487
4525
|
{
|
4488
4526
|
withArrow: true,
|
@@ -4495,7 +4533,7 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4495
4533
|
)
|
4496
4534
|
);
|
4497
4535
|
});
|
4498
|
-
var TabsContent =
|
4536
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4499
4537
|
TabsPrimitive.Content,
|
4500
4538
|
{
|
4501
4539
|
ref,
|
@@ -4610,7 +4648,6 @@ var Select = ({
|
|
4610
4648
|
)
|
4611
4649
|
},
|
4612
4650
|
unstyled: true,
|
4613
|
-
autoFocus: true,
|
4614
4651
|
components: props.hideIndicator ? {
|
4615
4652
|
Option,
|
4616
4653
|
Menu,
|
@@ -4700,15 +4737,15 @@ var Select = ({
|
|
4700
4737
|
};
|
4701
4738
|
|
4702
4739
|
// elements/switch/Switch.tsx
|
4703
|
-
var
|
4740
|
+
var React43 = __toESM(require("react"));
|
4704
4741
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4705
|
-
var Switch =
|
4742
|
+
var Switch = React43.forwardRef(
|
4706
4743
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4707
|
-
const [parentDirection, setParentDirection] =
|
4744
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
4708
4745
|
null
|
4709
4746
|
);
|
4710
|
-
const parentRef =
|
4711
|
-
|
4747
|
+
const parentRef = React43.useRef(null);
|
4748
|
+
React43.useEffect(() => {
|
4712
4749
|
var _a;
|
4713
4750
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4714
4751
|
if (parentNode) {
|
@@ -4736,13 +4773,13 @@ var Switch = React44.forwardRef(
|
|
4736
4773
|
full: "hawa-rounded-full",
|
4737
4774
|
inherit: "hawa-rounded-inner"
|
4738
4775
|
};
|
4739
|
-
return /* @__PURE__ */
|
4776
|
+
return /* @__PURE__ */ React43.createElement(
|
4740
4777
|
"div",
|
4741
4778
|
{
|
4742
4779
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4743
4780
|
ref: parentRef
|
4744
4781
|
},
|
4745
|
-
/* @__PURE__ */
|
4782
|
+
/* @__PURE__ */ React43.createElement(
|
4746
4783
|
SwitchPrimitives.Root,
|
4747
4784
|
{
|
4748
4785
|
className: cn(
|
@@ -4756,7 +4793,7 @@ var Switch = React44.forwardRef(
|
|
4756
4793
|
...props,
|
4757
4794
|
ref
|
4758
4795
|
},
|
4759
|
-
/* @__PURE__ */
|
4796
|
+
/* @__PURE__ */ React43.createElement(
|
4760
4797
|
SwitchPrimitives.Thumb,
|
4761
4798
|
{
|
4762
4799
|
className: cn(
|
@@ -4770,14 +4807,14 @@ var Switch = React44.forwardRef(
|
|
4770
4807
|
}
|
4771
4808
|
)
|
4772
4809
|
),
|
4773
|
-
label && /* @__PURE__ */
|
4810
|
+
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)
|
4774
4811
|
);
|
4775
4812
|
}
|
4776
4813
|
);
|
4777
4814
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4778
4815
|
|
4779
4816
|
// elements/checkbox/Checkbox.tsx
|
4780
|
-
var
|
4817
|
+
var React44 = __toESM(require("react"));
|
4781
4818
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4782
4819
|
var Checkbox = ({
|
4783
4820
|
id,
|
@@ -4797,7 +4834,7 @@ var Checkbox = ({
|
|
4797
4834
|
lg: 0.9,
|
4798
4835
|
xl: 1
|
4799
4836
|
};
|
4800
|
-
return /* @__PURE__ */
|
4837
|
+
return /* @__PURE__ */ React44.createElement(
|
4801
4838
|
"div",
|
4802
4839
|
{
|
4803
4840
|
className: cn(
|
@@ -4805,7 +4842,7 @@ var Checkbox = ({
|
|
4805
4842
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4806
4843
|
)
|
4807
4844
|
},
|
4808
|
-
/* @__PURE__ */
|
4845
|
+
/* @__PURE__ */ React44.createElement(
|
4809
4846
|
CheckboxElement,
|
4810
4847
|
{
|
4811
4848
|
...props,
|
@@ -4815,7 +4852,7 @@ var Checkbox = ({
|
|
4815
4852
|
id
|
4816
4853
|
}
|
4817
4854
|
),
|
4818
|
-
(label || helperText) && /* @__PURE__ */
|
4855
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
4819
4856
|
"label",
|
4820
4857
|
{
|
4821
4858
|
htmlFor: id,
|
@@ -4829,7 +4866,7 @@ var Checkbox = ({
|
|
4829
4866
|
}
|
4830
4867
|
},
|
4831
4868
|
label
|
4832
|
-
), sublabel && /* @__PURE__ */
|
4869
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
4833
4870
|
"label",
|
4834
4871
|
{
|
4835
4872
|
htmlFor: id,
|
@@ -4839,7 +4876,7 @@ var Checkbox = ({
|
|
4839
4876
|
)
|
4840
4877
|
},
|
4841
4878
|
sublabel
|
4842
|
-
), helperText && !disabled && /* @__PURE__ */
|
4879
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
4843
4880
|
"label",
|
4844
4881
|
{
|
4845
4882
|
htmlFor: id,
|
@@ -4852,7 +4889,7 @@ var Checkbox = ({
|
|
4852
4889
|
))
|
4853
4890
|
);
|
4854
4891
|
};
|
4855
|
-
var CheckboxElement =
|
4892
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4856
4893
|
let checkboxRadius = {
|
4857
4894
|
none: "hawa-rounded-none",
|
4858
4895
|
inherit: "hawa-rounded-sm",
|
@@ -4874,7 +4911,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4874
4911
|
lg: "1em",
|
4875
4912
|
xl: "1.25em"
|
4876
4913
|
};
|
4877
|
-
return /* @__PURE__ */
|
4914
|
+
return /* @__PURE__ */ React44.createElement(
|
4878
4915
|
CheckboxPrimitive.Root,
|
4879
4916
|
{
|
4880
4917
|
ref,
|
@@ -4886,14 +4923,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4886
4923
|
),
|
4887
4924
|
...props
|
4888
4925
|
},
|
4889
|
-
/* @__PURE__ */
|
4926
|
+
/* @__PURE__ */ React44.createElement(
|
4890
4927
|
CheckboxPrimitive.Indicator,
|
4891
4928
|
{
|
4892
4929
|
className: cn(
|
4893
4930
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4894
4931
|
)
|
4895
4932
|
},
|
4896
|
-
/* @__PURE__ */
|
4933
|
+
/* @__PURE__ */ React44.createElement(
|
4897
4934
|
"svg",
|
4898
4935
|
{
|
4899
4936
|
"aria-label": "Check Mark",
|
@@ -4904,7 +4941,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4904
4941
|
height: checkboxIndicatorSizes[size],
|
4905
4942
|
width: checkboxIndicatorSizes[size]
|
4906
4943
|
},
|
4907
|
-
/* @__PURE__ */
|
4944
|
+
/* @__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" })
|
4908
4945
|
),
|
4909
4946
|
" "
|
4910
4947
|
)
|
@@ -4913,9 +4950,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4913
4950
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4914
4951
|
|
4915
4952
|
// elements/progress/Progress.tsx
|
4916
|
-
var
|
4953
|
+
var React45 = __toESM(require("react"));
|
4917
4954
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4918
|
-
var Progress =
|
4955
|
+
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(
|
4919
4956
|
ProgressPrimitive.Root,
|
4920
4957
|
{
|
4921
4958
|
ref,
|
@@ -4925,7 +4962,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4925
4962
|
),
|
4926
4963
|
...props
|
4927
4964
|
},
|
4928
|
-
/* @__PURE__ */
|
4965
|
+
/* @__PURE__ */ React45.createElement(
|
4929
4966
|
ProgressPrimitive.Indicator,
|
4930
4967
|
{
|
4931
4968
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -6832,7 +6869,7 @@ var PhoneInput = ({
|
|
6832
6869
|
onChange: handleInputChange,
|
6833
6870
|
placeholder: props.placeholder,
|
6834
6871
|
className: cn(
|
6835
|
-
"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"
|
6872
|
+
"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"
|
6836
6873
|
),
|
6837
6874
|
...inputProps
|
6838
6875
|
}
|
@@ -6910,7 +6947,7 @@ var PinInput = ({
|
|
6910
6947
|
id: `input-${index}`,
|
6911
6948
|
pattern: "[0-9]*",
|
6912
6949
|
className: cn(
|
6913
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
6950
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center placeholder:hawa-text-muted-foreground",
|
6914
6951
|
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
6915
6952
|
),
|
6916
6953
|
onChange: (e) => handleChange(e, index),
|
@@ -6941,21 +6978,21 @@ var StopPropagationWrapper = (props) => {
|
|
6941
6978
|
};
|
6942
6979
|
|
6943
6980
|
// elements/scrollArea/ScrollArea.tsx
|
6944
|
-
var
|
6981
|
+
var React52 = __toESM(require("react"));
|
6945
6982
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6946
|
-
var ScrollArea =
|
6983
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6947
6984
|
ScrollAreaPrimitive.Root,
|
6948
6985
|
{
|
6949
6986
|
ref,
|
6950
6987
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6951
6988
|
...props
|
6952
6989
|
},
|
6953
|
-
/* @__PURE__ */
|
6954
|
-
/* @__PURE__ */
|
6955
|
-
/* @__PURE__ */
|
6990
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6991
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
6992
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
6956
6993
|
));
|
6957
6994
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6958
|
-
var ScrollBar =
|
6995
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6959
6996
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6960
6997
|
{
|
6961
6998
|
ref,
|
@@ -6968,7 +7005,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6968
7005
|
),
|
6969
7006
|
...props
|
6970
7007
|
},
|
6971
|
-
/* @__PURE__ */
|
7008
|
+
/* @__PURE__ */ React52.createElement(
|
6972
7009
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6973
7010
|
{
|
6974
7011
|
className: cn(
|
@@ -7045,7 +7082,7 @@ var ColorPicker = ({
|
|
7045
7082
|
value: selectedColor,
|
7046
7083
|
className: cn(
|
7047
7084
|
"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",
|
7048
|
-
"hawa-border hawa-border-l-0 hawa-border-l-transparent"
|
7085
|
+
"hawa-border hawa-border-l-0 hawa-border-l-transparent placeholder:hawa-text-muted-foreground"
|
7049
7086
|
// "hawa-border hawa-border-x-0 hawa-border-x-transparent hawa-border-b-0 hawa-rounded-tr-none"
|
7050
7087
|
),
|
7051
7088
|
style: {
|
@@ -7496,9 +7533,9 @@ var PasswordInput = ({
|
|
7496
7533
|
};
|
7497
7534
|
|
7498
7535
|
// elements/slider/Slider.tsx
|
7499
|
-
var
|
7536
|
+
var React60 = __toESM(require("react"));
|
7500
7537
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7501
|
-
var Slider =
|
7538
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7502
7539
|
SliderPrimitive.Root,
|
7503
7540
|
{
|
7504
7541
|
ref,
|
@@ -7508,13 +7545,13 @@ var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7508
7545
|
),
|
7509
7546
|
...props
|
7510
7547
|
},
|
7511
|
-
/* @__PURE__ */
|
7512
|
-
/* @__PURE__ */
|
7548
|
+
/* @__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" })),
|
7549
|
+
/* @__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" })
|
7513
7550
|
));
|
7514
7551
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7515
7552
|
|
7516
7553
|
// elements/simpleTable/SimpleTable.tsx
|
7517
|
-
var
|
7554
|
+
var React61 = __toESM(require("react"));
|
7518
7555
|
var import_react_table2 = require("@tanstack/react-table");
|
7519
7556
|
var SimpleTable = ({
|
7520
7557
|
columns,
|
@@ -7529,7 +7566,7 @@ var SimpleTable = ({
|
|
7529
7566
|
columns,
|
7530
7567
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7531
7568
|
});
|
7532
|
-
return /* @__PURE__ */
|
7569
|
+
return /* @__PURE__ */ React61.createElement(
|
7533
7570
|
"div",
|
7534
7571
|
{
|
7535
7572
|
className: cn(
|
@@ -7537,8 +7574,8 @@ var SimpleTable = ({
|
|
7537
7574
|
classNames
|
7538
7575
|
)
|
7539
7576
|
},
|
7540
|
-
props.isLoading ? /* @__PURE__ */
|
7541
|
-
return /* @__PURE__ */
|
7577
|
+
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) => {
|
7578
|
+
return /* @__PURE__ */ React61.createElement(
|
7542
7579
|
TableHead,
|
7543
7580
|
{
|
7544
7581
|
condensed: props.condensed,
|
@@ -7553,7 +7590,7 @@ var SimpleTable = ({
|
|
7553
7590
|
header.getContext()
|
7554
7591
|
)
|
7555
7592
|
);
|
7556
|
-
})))), /* @__PURE__ */
|
7593
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
7557
7594
|
TableRow,
|
7558
7595
|
{
|
7559
7596
|
key: row.id,
|
@@ -7561,7 +7598,7 @@ var SimpleTable = ({
|
|
7561
7598
|
},
|
7562
7599
|
row.getVisibleCells().map((cell) => {
|
7563
7600
|
var _a2;
|
7564
|
-
return /* @__PURE__ */
|
7601
|
+
return /* @__PURE__ */ React61.createElement(
|
7565
7602
|
TableCell,
|
7566
7603
|
{
|
7567
7604
|
dir: props.direction,
|
@@ -7577,7 +7614,7 @@ var SimpleTable = ({
|
|
7577
7614
|
)
|
7578
7615
|
);
|
7579
7616
|
})
|
7580
|
-
)) : /* @__PURE__ */
|
7617
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
7581
7618
|
TableCell,
|
7582
7619
|
{
|
7583
7620
|
colSpan: columns.length,
|
@@ -7589,12 +7626,12 @@ var SimpleTable = ({
|
|
7589
7626
|
};
|
7590
7627
|
|
7591
7628
|
// elements/separator/Separator.tsx
|
7592
|
-
var
|
7629
|
+
var React62 = __toESM(require("react"));
|
7593
7630
|
var Separator2 = ({
|
7594
7631
|
className,
|
7595
7632
|
orientation = "horizontal",
|
7596
7633
|
...props
|
7597
|
-
}) => /* @__PURE__ */
|
7634
|
+
}) => /* @__PURE__ */ React62.createElement(
|
7598
7635
|
"div",
|
7599
7636
|
{
|
7600
7637
|
className: cn(
|
@@ -7959,7 +7996,7 @@ var Count = (props) => {
|
|
7959
7996
|
};
|
7960
7997
|
|
7961
7998
|
// elements/toast/Toast.tsx
|
7962
|
-
var
|
7999
|
+
var React67 = __toESM(require("react"));
|
7963
8000
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7964
8001
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7965
8002
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7987,7 +8024,7 @@ var sizeStyles = {
|
|
7987
8024
|
sm: "hawa-text-xs"
|
7988
8025
|
};
|
7989
8026
|
var ToastProvider = ToastPrimitives.Provider;
|
7990
|
-
var ToastViewport =
|
8027
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7991
8028
|
ToastPrimitives.Viewport,
|
7992
8029
|
{
|
7993
8030
|
ref,
|
@@ -7999,8 +8036,8 @@ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7999
8036
|
}
|
8000
8037
|
));
|
8001
8038
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8002
|
-
var Toast =
|
8003
|
-
return /* @__PURE__ */
|
8039
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8040
|
+
return /* @__PURE__ */ React67.createElement(
|
8004
8041
|
ToastPrimitives.Root,
|
8005
8042
|
{
|
8006
8043
|
ref,
|
@@ -8015,8 +8052,8 @@ var Toast = React68.forwardRef(({ className, variant, severity = "none", directi
|
|
8015
8052
|
);
|
8016
8053
|
});
|
8017
8054
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8018
|
-
var ToastAction =
|
8019
|
-
return /* @__PURE__ */
|
8055
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
8056
|
+
return /* @__PURE__ */ React67.createElement(
|
8020
8057
|
ToastPrimitives.Action,
|
8021
8058
|
{
|
8022
8059
|
ref,
|
@@ -8034,7 +8071,7 @@ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
|
|
8034
8071
|
);
|
8035
8072
|
});
|
8036
8073
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8037
|
-
var ToastClose =
|
8074
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8038
8075
|
ToastPrimitives.Close,
|
8039
8076
|
{
|
8040
8077
|
ref,
|
@@ -8048,7 +8085,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8048
8085
|
"toast-close": "",
|
8049
8086
|
...props
|
8050
8087
|
},
|
8051
|
-
/* @__PURE__ */
|
8088
|
+
/* @__PURE__ */ React67.createElement(
|
8052
8089
|
"svg",
|
8053
8090
|
{
|
8054
8091
|
"aria-label": "Close Icon",
|
@@ -8057,7 +8094,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8057
8094
|
fill: "currentColor",
|
8058
8095
|
viewBox: "0 0 20 20"
|
8059
8096
|
},
|
8060
|
-
/* @__PURE__ */
|
8097
|
+
/* @__PURE__ */ React67.createElement(
|
8061
8098
|
"path",
|
8062
8099
|
{
|
8063
8100
|
fillRule: "evenodd",
|
@@ -8068,7 +8105,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8068
8105
|
)
|
8069
8106
|
));
|
8070
8107
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8071
|
-
var ToastTitle =
|
8108
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8072
8109
|
ToastPrimitives.Title,
|
8073
8110
|
{
|
8074
8111
|
ref,
|
@@ -8081,7 +8118,7 @@ var ToastTitle = React68.forwardRef(({ className, size = "default", ...props },
|
|
8081
8118
|
}
|
8082
8119
|
));
|
8083
8120
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8084
|
-
var ToastDescription =
|
8121
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8085
8122
|
ToastPrimitives.Description,
|
8086
8123
|
{
|
8087
8124
|
ref,
|