@sikka/hawa 0.30.25-next → 0.30.26-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/blocks/index.js +100 -72
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/misc/index.js +88 -60
- package/dist/blocks/misc/index.mjs +105 -75
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-7LAUVLVZ.mjs → chunk-QDRFTC7W.mjs} +96 -62
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-MeUyaBib.d.mts +5 -0
- package/dist/commonTypes-MeUyaBib.d.ts +5 -0
- package/dist/elements/index.d.mts +5 -1
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.js +122 -86
- package/dist/elements/index.mjs +5 -1
- package/dist/floatBox/index.d.mts +12 -0
- package/dist/floatBox/index.d.ts +12 -0
- package/dist/floatBox/index.js +85 -0
- package/dist/floatBox/index.js.map +1 -0
- package/dist/floatBox/index.mjs +49 -0
- package/dist/floatBox/index.mjs.map +1 -0
- package/dist/index.css +101 -56
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +162 -126
- package/dist/index.mjs +683 -649
- package/dist/input/index.d.mts +2 -1
- package/dist/input/index.d.ts +2 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +6 -0
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +4 -0
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +9 -1
- package/dist/radio/index.d.ts +9 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +60 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +60 -32
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/dist/tooltip/index.d.mts +3 -4
- package/dist/tooltip/index.d.ts +3 -4
- package/package.json +8 -8
- package/dist/Label-9FHRF7Ex.d.mts +0 -14
- package/dist/Label-9FHRF7Ex.d.ts +0 -14
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- /package/dist/{chunk-CVOMHXJK.mjs → chunk-BXGDHNAY.mjs} +0 -0
package/dist/blocks/index.js
CHANGED
@@ -5546,7 +5546,7 @@ var ScrollBar = React33.forwardRef(({ className, orientation = "vertical", ...pr
|
|
5546
5546
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
5547
5547
|
|
5548
5548
|
// elements/tabs/Tabs.tsx
|
5549
|
-
var
|
5549
|
+
var React36 = __toESM(require("react"));
|
5550
5550
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5551
5551
|
var import_tailwind_variants = require("tailwind-variants");
|
5552
5552
|
|
@@ -5631,6 +5631,41 @@ var Chip = import_react27.default.forwardRef(
|
|
5631
5631
|
}
|
5632
5632
|
);
|
5633
5633
|
|
5634
|
+
// elements/floatBox/FloatBox.tsx
|
5635
|
+
var React35 = __toESM(require("react"));
|
5636
|
+
var FloatBox = ({
|
5637
|
+
className,
|
5638
|
+
open,
|
5639
|
+
side = "bottom",
|
5640
|
+
sideOffset = 40,
|
5641
|
+
...props
|
5642
|
+
}) => {
|
5643
|
+
let widthStyles = {
|
5644
|
+
trigger: "var(--radix-popover-trigger-width)",
|
5645
|
+
default: "auto"
|
5646
|
+
};
|
5647
|
+
let sideOffsetStyles = {
|
5648
|
+
bottom: { top: sideOffset },
|
5649
|
+
top: { bottom: sideOffset },
|
5650
|
+
right: { left: sideOffset },
|
5651
|
+
left: { right: sideOffset }
|
5652
|
+
};
|
5653
|
+
return /* @__PURE__ */ React35.createElement(
|
5654
|
+
"div",
|
5655
|
+
{
|
5656
|
+
className: cn(
|
5657
|
+
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
5658
|
+
sideOffsetStyles[side],
|
5659
|
+
className
|
5660
|
+
),
|
5661
|
+
style: { ...sideOffsetStyles[side] },
|
5662
|
+
"data-side": side,
|
5663
|
+
"data-floatbox-state": open ? "open" : "closed"
|
5664
|
+
},
|
5665
|
+
props.children
|
5666
|
+
);
|
5667
|
+
};
|
5668
|
+
|
5634
5669
|
// elements/tabs/Tabs.tsx
|
5635
5670
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
5636
5671
|
base: "",
|
@@ -5640,10 +5675,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
5640
5675
|
underlined: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
5641
5676
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
5642
5677
|
},
|
5643
|
-
orientation: {
|
5644
|
-
horizontal: "",
|
5645
|
-
vertical: ""
|
5646
|
-
}
|
5678
|
+
orientation: { horizontal: "", vertical: "" }
|
5647
5679
|
},
|
5648
5680
|
compoundVariants: [
|
5649
5681
|
{
|
@@ -5657,10 +5689,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
5657
5689
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
5658
5690
|
}
|
5659
5691
|
],
|
5660
|
-
defaultVariants: {
|
5661
|
-
variant: "default",
|
5662
|
-
orientation: "horizontal"
|
5663
|
-
}
|
5692
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5664
5693
|
});
|
5665
5694
|
var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
5666
5695
|
base: "",
|
@@ -5670,10 +5699,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
5670
5699
|
underlined: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-rounded-none hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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",
|
5671
5700
|
underlined_tabs: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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 hawa-bg-primary/10 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground dark:hawa-border-primary/10"
|
5672
5701
|
},
|
5673
|
-
orientation: {
|
5674
|
-
horizontal: "",
|
5675
|
-
vertical: ""
|
5676
|
-
}
|
5702
|
+
orientation: { horizontal: "", vertical: "" }
|
5677
5703
|
},
|
5678
5704
|
compoundVariants: [
|
5679
5705
|
{
|
@@ -5697,13 +5723,10 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
5697
5723
|
class: "hawa-rounded-e-none"
|
5698
5724
|
}
|
5699
5725
|
],
|
5700
|
-
defaultVariants: {
|
5701
|
-
variant: "default",
|
5702
|
-
orientation: "horizontal"
|
5703
|
-
}
|
5726
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5704
5727
|
});
|
5705
|
-
var TabsContext =
|
5706
|
-
var Tabs =
|
5728
|
+
var TabsContext = React36.createContext({ orientation: "horizontal", variant: "default" });
|
5729
|
+
var Tabs = React36.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
5707
5730
|
TabsPrimitive.Root,
|
5708
5731
|
{
|
5709
5732
|
ref,
|
@@ -5714,12 +5737,11 @@ var Tabs = React35.forwardRef(({ className, orientation, variant = "default", ..
|
|
5714
5737
|
),
|
5715
5738
|
...props
|
5716
5739
|
},
|
5717
|
-
/* @__PURE__ */
|
5740
|
+
/* @__PURE__ */ React36.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
5718
5741
|
));
|
5719
|
-
|
5720
|
-
|
5721
|
-
|
5722
|
-
return /* @__PURE__ */ React35.createElement(
|
5742
|
+
var TabsList = React36.forwardRef(({ className, ...props }, ref) => {
|
5743
|
+
const { orientation, variant } = React36.useContext(TabsContext);
|
5744
|
+
return /* @__PURE__ */ React36.createElement(
|
5723
5745
|
TabsPrimitive.List,
|
5724
5746
|
{
|
5725
5747
|
ref,
|
@@ -5732,22 +5754,25 @@ var TabsList = React35.forwardRef(({ className, ...props }, ref) => {
|
|
5732
5754
|
}
|
5733
5755
|
);
|
5734
5756
|
});
|
5735
|
-
|
5736
|
-
|
5737
|
-
|
5738
|
-
return /* @__PURE__ */ React35.createElement(
|
5757
|
+
var TabsTrigger = React36.forwardRef(({ className, chipProps, ...props }, ref) => {
|
5758
|
+
const { orientation, variant } = React36.useContext(TabsContext);
|
5759
|
+
return /* @__PURE__ */ React36.createElement(
|
5739
5760
|
TabsPrimitive.Trigger,
|
5740
5761
|
{
|
5741
5762
|
ref,
|
5742
|
-
className: cn(
|
5763
|
+
className: cn(
|
5764
|
+
tabsTriggerVariant({ variant, orientation }),
|
5765
|
+
"hawa-relative",
|
5766
|
+
className
|
5767
|
+
),
|
5743
5768
|
...props
|
5744
5769
|
},
|
5745
5770
|
props.children,
|
5746
|
-
chipProps && /* @__PURE__ */
|
5771
|
+
chipProps && /* @__PURE__ */ React36.createElement(Chip, { ...chipProps }),
|
5772
|
+
/* @__PURE__ */ React36.createElement(FloatBox, { open: props.showPopover }, props.popoverContent)
|
5747
5773
|
);
|
5748
5774
|
});
|
5749
|
-
|
5750
|
-
var TabsContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(
|
5775
|
+
var TabsContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
5751
5776
|
TabsPrimitive.Content,
|
5752
5777
|
{
|
5753
5778
|
ref,
|
@@ -5758,6 +5783,9 @@ var TabsContent = React35.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
5758
5783
|
...props
|
5759
5784
|
}
|
5760
5785
|
));
|
5786
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
5787
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
5788
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
5761
5789
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
5762
5790
|
|
5763
5791
|
// blocks/misc/LegalTexts.tsx
|
@@ -6236,12 +6264,12 @@ var AdCard = ({
|
|
6236
6264
|
var import_react38 = __toESM(require("react"));
|
6237
6265
|
|
6238
6266
|
// elements/separator/Separator.tsx
|
6239
|
-
var
|
6267
|
+
var React47 = __toESM(require("react"));
|
6240
6268
|
var Separator = ({
|
6241
6269
|
className,
|
6242
6270
|
orientation = "horizontal",
|
6243
6271
|
...props
|
6244
|
-
}) => /* @__PURE__ */
|
6272
|
+
}) => /* @__PURE__ */ React47.createElement(
|
6245
6273
|
"div",
|
6246
6274
|
{
|
6247
6275
|
className: cn(
|
@@ -6379,14 +6407,14 @@ var PricingCard = ({
|
|
6379
6407
|
var import_react39 = __toESM(require("react"));
|
6380
6408
|
|
6381
6409
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6382
|
-
var
|
6410
|
+
var React49 = __toESM(require("react"));
|
6383
6411
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6384
6412
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6385
6413
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
6386
6414
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
6387
6415
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
6388
6416
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
6389
|
-
var DropdownMenuSubTrigger =
|
6417
|
+
var DropdownMenuSubTrigger = React49.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6390
6418
|
DropdownMenuPrimitive.SubTrigger,
|
6391
6419
|
{
|
6392
6420
|
ref,
|
@@ -6397,9 +6425,9 @@ var DropdownMenuSubTrigger = React48.forwardRef(({ className, inset, children, .
|
|
6397
6425
|
),
|
6398
6426
|
...props
|
6399
6427
|
},
|
6400
|
-
/* @__PURE__ */
|
6428
|
+
/* @__PURE__ */ React49.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
6401
6429
|
" ",
|
6402
|
-
/* @__PURE__ */
|
6430
|
+
/* @__PURE__ */ React49.createElement(
|
6403
6431
|
"svg",
|
6404
6432
|
{
|
6405
6433
|
"aria-label": "Chevron Right Icon",
|
@@ -6411,7 +6439,7 @@ var DropdownMenuSubTrigger = React48.forwardRef(({ className, inset, children, .
|
|
6411
6439
|
width: "1em",
|
6412
6440
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
6413
6441
|
},
|
6414
|
-
/* @__PURE__ */
|
6442
|
+
/* @__PURE__ */ React49.createElement(
|
6415
6443
|
"path",
|
6416
6444
|
{
|
6417
6445
|
fillRule: "evenodd",
|
@@ -6421,7 +6449,7 @@ var DropdownMenuSubTrigger = React48.forwardRef(({ className, inset, children, .
|
|
6421
6449
|
)
|
6422
6450
|
));
|
6423
6451
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
6424
|
-
var DropdownMenuSubContent =
|
6452
|
+
var DropdownMenuSubContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6425
6453
|
DropdownMenuPrimitive.SubContent,
|
6426
6454
|
{
|
6427
6455
|
ref,
|
@@ -6433,7 +6461,7 @@ var DropdownMenuSubContent = React48.forwardRef(({ className, ...props }, ref) =
|
|
6433
6461
|
}
|
6434
6462
|
));
|
6435
6463
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6436
|
-
var DropdownMenuContent =
|
6464
|
+
var DropdownMenuContent = React49.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React49.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React49.createElement(
|
6437
6465
|
DropdownMenuPrimitive.Content,
|
6438
6466
|
{
|
6439
6467
|
ref,
|
@@ -6446,8 +6474,8 @@ var DropdownMenuContent = React48.forwardRef(({ className, sideOffset = 4, ...pr
|
|
6446
6474
|
}
|
6447
6475
|
)));
|
6448
6476
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
6449
|
-
var DropdownMenuItem =
|
6450
|
-
return /* @__PURE__ */
|
6477
|
+
var DropdownMenuItem = React49.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
6478
|
+
return /* @__PURE__ */ React49.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React49.createElement(
|
6451
6479
|
DropdownMenuPrimitive.Item,
|
6452
6480
|
{
|
6453
6481
|
disabled: props.disabled,
|
@@ -6460,14 +6488,14 @@ var DropdownMenuItem = React48.forwardRef(({ className, inset, badged, slug, Lin
|
|
6460
6488
|
),
|
6461
6489
|
...props
|
6462
6490
|
},
|
6463
|
-
/* @__PURE__ */
|
6491
|
+
/* @__PURE__ */ React49.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
6464
6492
|
props.end && props.end,
|
6465
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
6466
|
-
!props.end && badged && /* @__PURE__ */
|
6493
|
+
!props.end && props.shortcut && /* @__PURE__ */ React49.createElement(DropdownMenuShortcut, null, props.shortcut),
|
6494
|
+
!props.end && badged && /* @__PURE__ */ React49.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
6467
6495
|
));
|
6468
6496
|
});
|
6469
6497
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
6470
|
-
var DropdownMenuCheckboxItem =
|
6498
|
+
var DropdownMenuCheckboxItem = React49.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6471
6499
|
DropdownMenuPrimitive.CheckboxItem,
|
6472
6500
|
{
|
6473
6501
|
ref,
|
@@ -6478,7 +6506,7 @@ var DropdownMenuCheckboxItem = React48.forwardRef(({ className, children, checke
|
|
6478
6506
|
checked,
|
6479
6507
|
...props
|
6480
6508
|
},
|
6481
|
-
/* @__PURE__ */
|
6509
|
+
/* @__PURE__ */ React49.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__ */ React49.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React49.createElement(
|
6482
6510
|
"svg",
|
6483
6511
|
{
|
6484
6512
|
"aria-label": "Check Mark",
|
@@ -6489,12 +6517,12 @@ var DropdownMenuCheckboxItem = React48.forwardRef(({ className, children, checke
|
|
6489
6517
|
height: "0.60em",
|
6490
6518
|
width: "0.60em"
|
6491
6519
|
},
|
6492
|
-
/* @__PURE__ */
|
6520
|
+
/* @__PURE__ */ React49.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" })
|
6493
6521
|
), " ")),
|
6494
6522
|
children
|
6495
6523
|
));
|
6496
6524
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
6497
|
-
var DropdownMenuRadioItem =
|
6525
|
+
var DropdownMenuRadioItem = React49.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6498
6526
|
DropdownMenuPrimitive.RadioItem,
|
6499
6527
|
{
|
6500
6528
|
ref,
|
@@ -6504,7 +6532,7 @@ var DropdownMenuRadioItem = React48.forwardRef(({ className, children, ...props
|
|
6504
6532
|
),
|
6505
6533
|
...props
|
6506
6534
|
},
|
6507
|
-
/* @__PURE__ */
|
6535
|
+
/* @__PURE__ */ React49.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__ */ React49.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React49.createElement(
|
6508
6536
|
"svg",
|
6509
6537
|
{
|
6510
6538
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6519,12 +6547,12 @@ var DropdownMenuRadioItem = React48.forwardRef(({ className, children, ...props
|
|
6519
6547
|
strokeLinejoin: "round",
|
6520
6548
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
6521
6549
|
},
|
6522
|
-
/* @__PURE__ */
|
6550
|
+
/* @__PURE__ */ React49.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
6523
6551
|
))),
|
6524
6552
|
children
|
6525
6553
|
));
|
6526
6554
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
6527
|
-
var DropdownMenuLabel =
|
6555
|
+
var DropdownMenuLabel = React49.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6528
6556
|
DropdownMenuPrimitive.Label,
|
6529
6557
|
{
|
6530
6558
|
ref,
|
@@ -6537,7 +6565,7 @@ var DropdownMenuLabel = React48.forwardRef(({ className, inset, ...props }, ref)
|
|
6537
6565
|
}
|
6538
6566
|
));
|
6539
6567
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
6540
|
-
var DropdownMenuSeparator =
|
6568
|
+
var DropdownMenuSeparator = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
6541
6569
|
DropdownMenuPrimitive.Separator,
|
6542
6570
|
{
|
6543
6571
|
ref,
|
@@ -6550,7 +6578,7 @@ var DropdownMenuShortcut = ({
|
|
6550
6578
|
className,
|
6551
6579
|
...props
|
6552
6580
|
}) => {
|
6553
|
-
return /* @__PURE__ */
|
6581
|
+
return /* @__PURE__ */ React49.createElement(
|
6554
6582
|
"span",
|
6555
6583
|
{
|
6556
6584
|
className: cn(
|
@@ -6590,10 +6618,10 @@ var DropdownMenu = ({
|
|
6590
6618
|
default: "hawa-px-2 hawa-py-3 ",
|
6591
6619
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
6592
6620
|
};
|
6593
|
-
let [values, setValues] =
|
6621
|
+
let [values, setValues] = React49.useState(
|
6594
6622
|
items.map((item) => item.currentOption)
|
6595
6623
|
);
|
6596
|
-
return /* @__PURE__ */
|
6624
|
+
return /* @__PURE__ */ React49.createElement(
|
6597
6625
|
DropdownMenuRoot,
|
6598
6626
|
{
|
6599
6627
|
onOpenChange,
|
@@ -6601,8 +6629,8 @@ var DropdownMenu = ({
|
|
6601
6629
|
modal: false,
|
6602
6630
|
dir: direction
|
6603
6631
|
},
|
6604
|
-
/* @__PURE__ */
|
6605
|
-
/* @__PURE__ */
|
6632
|
+
/* @__PURE__ */ React49.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
6633
|
+
/* @__PURE__ */ React49.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React49.createElement(
|
6606
6634
|
DropdownMenuContent,
|
6607
6635
|
{
|
6608
6636
|
side,
|
@@ -6623,12 +6651,12 @@ var DropdownMenu = ({
|
|
6623
6651
|
var _a;
|
6624
6652
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
6625
6653
|
if (item.itemType === "separator") {
|
6626
|
-
return /* @__PURE__ */
|
6654
|
+
return /* @__PURE__ */ React49.createElement(DropdownMenuSeparator, { key: index });
|
6627
6655
|
} else if (item.itemType === "label") {
|
6628
|
-
return /* @__PURE__ */
|
6656
|
+
return /* @__PURE__ */ React49.createElement(DropdownMenuLabel, { key: index }, item.label);
|
6629
6657
|
} else if (item.itemType === "radio") {
|
6630
6658
|
let dd = item.currentOption;
|
6631
|
-
return /* @__PURE__ */
|
6659
|
+
return /* @__PURE__ */ React49.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React49.createElement(
|
6632
6660
|
DropdownMenuSubTrigger,
|
6633
6661
|
{
|
6634
6662
|
dir: direction,
|
@@ -6636,7 +6664,7 @@ var DropdownMenu = ({
|
|
6636
6664
|
},
|
6637
6665
|
item.icon && item.icon,
|
6638
6666
|
item.label && item.label
|
6639
|
-
), /* @__PURE__ */
|
6667
|
+
), /* @__PURE__ */ React49.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React49.createElement(
|
6640
6668
|
DropdownMenuRadioGroup,
|
6641
6669
|
{
|
6642
6670
|
value: values[index],
|
@@ -6650,12 +6678,12 @@ var DropdownMenu = ({
|
|
6650
6678
|
}
|
6651
6679
|
}
|
6652
6680
|
},
|
6653
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
6681
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React49.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
6654
6682
|
)));
|
6655
6683
|
} else if (item.itemType === "custom") {
|
6656
|
-
return /* @__PURE__ */
|
6684
|
+
return /* @__PURE__ */ React49.createElement("div", { key: index }, item.content);
|
6657
6685
|
} else {
|
6658
|
-
return item.subitems ? /* @__PURE__ */
|
6686
|
+
return item.subitems ? /* @__PURE__ */ React49.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React49.createElement(
|
6659
6687
|
DropdownMenuSubTrigger,
|
6660
6688
|
{
|
6661
6689
|
dir: direction,
|
@@ -6663,9 +6691,9 @@ var DropdownMenu = ({
|
|
6663
6691
|
},
|
6664
6692
|
item.icon && item.icon,
|
6665
6693
|
item.label && item.label
|
6666
|
-
), /* @__PURE__ */
|
6694
|
+
), /* @__PURE__ */ React49.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React49.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
6667
6695
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
6668
|
-
return /* @__PURE__ */
|
6696
|
+
return /* @__PURE__ */ React49.createElement(
|
6669
6697
|
DropdownMenuItem,
|
6670
6698
|
{
|
6671
6699
|
key: subIndex,
|
@@ -6694,7 +6722,7 @@ var DropdownMenu = ({
|
|
6694
6722
|
subitem.icon && subitem.icon,
|
6695
6723
|
subitem.label && subitem.label
|
6696
6724
|
);
|
6697
|
-
})))) : /* @__PURE__ */
|
6725
|
+
})))) : /* @__PURE__ */ React49.createElement(
|
6698
6726
|
DropdownMenuItem,
|
6699
6727
|
{
|
6700
6728
|
LinkComponent: ItemLinkComponent,
|
@@ -7208,9 +7236,9 @@ var CardPrice = (props) => /* @__PURE__ */ import_react43.default.createElement(
|
|
7208
7236
|
var import_react44 = __toESM(require("react"));
|
7209
7237
|
|
7210
7238
|
// elements/progress/Progress.tsx
|
7211
|
-
var
|
7239
|
+
var React55 = __toESM(require("react"));
|
7212
7240
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
7213
|
-
var Progress =
|
7241
|
+
var Progress = React55.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React55.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React55.createElement(Label, { ...props.labelProps }, props.label), /* @__PURE__ */ React55.createElement(
|
7214
7242
|
ProgressPrimitive.Root,
|
7215
7243
|
{
|
7216
7244
|
ref,
|
@@ -7220,7 +7248,7 @@ var Progress = React54.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
7220
7248
|
),
|
7221
7249
|
...props
|
7222
7250
|
},
|
7223
|
-
/* @__PURE__ */
|
7251
|
+
/* @__PURE__ */ React55.createElement(
|
7224
7252
|
ProgressPrimitive.Indicator,
|
7225
7253
|
{
|
7226
7254
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|