@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/index.js
CHANGED
@@ -167,6 +167,8 @@ __export(components_exports, {
|
|
167
167
|
PinInput: () => PinInput,
|
168
168
|
Popover: () => Popover,
|
169
169
|
PopoverContent: () => PopoverContent,
|
170
|
+
PopoverPortal: () => PopoverPortal,
|
171
|
+
PopoverRoot: () => PopoverRoot,
|
170
172
|
PopoverTrigger: () => PopoverTrigger,
|
171
173
|
PricingCard: () => PricingCard,
|
172
174
|
PricingPlans: () => PricingPlans,
|
@@ -3688,6 +3690,8 @@ var Popover = ({
|
|
3688
3690
|
));
|
3689
3691
|
};
|
3690
3692
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3693
|
+
var PopoverPortal = PopoverPrimitive.Portal;
|
3694
|
+
var PopoverRoot = PopoverPrimitive.Root;
|
3691
3695
|
|
3692
3696
|
// elements/combobox/Combobox.tsx
|
3693
3697
|
var Combobox = React27.forwardRef(
|
@@ -4171,9 +4175,46 @@ var SortButton = (props) => {
|
|
4171
4175
|
};
|
4172
4176
|
|
4173
4177
|
// elements/tabs/Tabs.tsx
|
4174
|
-
var
|
4178
|
+
var React32 = __toESM(require("react"));
|
4175
4179
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4176
4180
|
var import_tailwind_variants = require("tailwind-variants");
|
4181
|
+
|
4182
|
+
// elements/floatBox/FloatBox.tsx
|
4183
|
+
var React31 = __toESM(require("react"));
|
4184
|
+
var FloatBox = ({
|
4185
|
+
className,
|
4186
|
+
open,
|
4187
|
+
side = "bottom",
|
4188
|
+
sideOffset = 40,
|
4189
|
+
...props
|
4190
|
+
}) => {
|
4191
|
+
let widthStyles = {
|
4192
|
+
trigger: "var(--radix-popover-trigger-width)",
|
4193
|
+
default: "auto"
|
4194
|
+
};
|
4195
|
+
let sideOffsetStyles = {
|
4196
|
+
bottom: { top: sideOffset },
|
4197
|
+
top: { bottom: sideOffset },
|
4198
|
+
right: { left: sideOffset },
|
4199
|
+
left: { right: sideOffset }
|
4200
|
+
};
|
4201
|
+
return /* @__PURE__ */ React31.createElement(
|
4202
|
+
"div",
|
4203
|
+
{
|
4204
|
+
className: cn(
|
4205
|
+
"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",
|
4206
|
+
sideOffsetStyles[side],
|
4207
|
+
className
|
4208
|
+
),
|
4209
|
+
style: { ...sideOffsetStyles[side] },
|
4210
|
+
"data-side": side,
|
4211
|
+
"data-floatbox-state": open ? "open" : "closed"
|
4212
|
+
},
|
4213
|
+
props.children
|
4214
|
+
);
|
4215
|
+
};
|
4216
|
+
|
4217
|
+
// elements/tabs/Tabs.tsx
|
4177
4218
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
4178
4219
|
base: "",
|
4179
4220
|
variants: {
|
@@ -4182,10 +4223,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
4182
4223
|
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",
|
4183
4224
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
4184
4225
|
},
|
4185
|
-
orientation: {
|
4186
|
-
horizontal: "",
|
4187
|
-
vertical: ""
|
4188
|
-
}
|
4226
|
+
orientation: { horizontal: "", vertical: "" }
|
4189
4227
|
},
|
4190
4228
|
compoundVariants: [
|
4191
4229
|
{
|
@@ -4199,10 +4237,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
4199
4237
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
4200
4238
|
}
|
4201
4239
|
],
|
4202
|
-
defaultVariants: {
|
4203
|
-
variant: "default",
|
4204
|
-
orientation: "horizontal"
|
4205
|
-
}
|
4240
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4206
4241
|
});
|
4207
4242
|
var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
4208
4243
|
base: "",
|
@@ -4212,10 +4247,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4212
4247
|
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",
|
4213
4248
|
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"
|
4214
4249
|
},
|
4215
|
-
orientation: {
|
4216
|
-
horizontal: "",
|
4217
|
-
vertical: ""
|
4218
|
-
}
|
4250
|
+
orientation: { horizontal: "", vertical: "" }
|
4219
4251
|
},
|
4220
4252
|
compoundVariants: [
|
4221
4253
|
{
|
@@ -4239,13 +4271,10 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4239
4271
|
class: "hawa-rounded-e-none"
|
4240
4272
|
}
|
4241
4273
|
],
|
4242
|
-
defaultVariants: {
|
4243
|
-
variant: "default",
|
4244
|
-
orientation: "horizontal"
|
4245
|
-
}
|
4274
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4246
4275
|
});
|
4247
|
-
var TabsContext =
|
4248
|
-
var Tabs =
|
4276
|
+
var TabsContext = React32.createContext({ orientation: "horizontal", variant: "default" });
|
4277
|
+
var Tabs = React32.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React32.createElement(
|
4249
4278
|
TabsPrimitive.Root,
|
4250
4279
|
{
|
4251
4280
|
ref,
|
@@ -4256,12 +4285,11 @@ var Tabs = React31.forwardRef(({ className, orientation, variant = "default", ..
|
|
4256
4285
|
),
|
4257
4286
|
...props
|
4258
4287
|
},
|
4259
|
-
/* @__PURE__ */
|
4288
|
+
/* @__PURE__ */ React32.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4260
4289
|
));
|
4261
|
-
|
4262
|
-
|
4263
|
-
|
4264
|
-
return /* @__PURE__ */ React31.createElement(
|
4290
|
+
var TabsList = React32.forwardRef(({ className, ...props }, ref) => {
|
4291
|
+
const { orientation, variant } = React32.useContext(TabsContext);
|
4292
|
+
return /* @__PURE__ */ React32.createElement(
|
4265
4293
|
TabsPrimitive.List,
|
4266
4294
|
{
|
4267
4295
|
ref,
|
@@ -4274,22 +4302,25 @@ var TabsList = React31.forwardRef(({ className, ...props }, ref) => {
|
|
4274
4302
|
}
|
4275
4303
|
);
|
4276
4304
|
});
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
return /* @__PURE__ */ React31.createElement(
|
4305
|
+
var TabsTrigger = React32.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4306
|
+
const { orientation, variant } = React32.useContext(TabsContext);
|
4307
|
+
return /* @__PURE__ */ React32.createElement(
|
4281
4308
|
TabsPrimitive.Trigger,
|
4282
4309
|
{
|
4283
4310
|
ref,
|
4284
|
-
className: cn(
|
4311
|
+
className: cn(
|
4312
|
+
tabsTriggerVariant({ variant, orientation }),
|
4313
|
+
"hawa-relative",
|
4314
|
+
className
|
4315
|
+
),
|
4285
4316
|
...props
|
4286
4317
|
},
|
4287
4318
|
props.children,
|
4288
|
-
chipProps && /* @__PURE__ */
|
4319
|
+
chipProps && /* @__PURE__ */ React32.createElement(Chip, { ...chipProps }),
|
4320
|
+
/* @__PURE__ */ React32.createElement(FloatBox, { open: props.showPopover }, props.popoverContent)
|
4289
4321
|
);
|
4290
4322
|
});
|
4291
|
-
|
4292
|
-
var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
4323
|
+
var TabsContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
|
4293
4324
|
TabsPrimitive.Content,
|
4294
4325
|
{
|
4295
4326
|
ref,
|
@@ -4300,6 +4331,9 @@ var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
4300
4331
|
...props
|
4301
4332
|
}
|
4302
4333
|
));
|
4334
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
4335
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
4336
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
4303
4337
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4304
4338
|
|
4305
4339
|
// elements/select/Select.tsx
|
@@ -4457,15 +4491,15 @@ var Select = ({
|
|
4457
4491
|
};
|
4458
4492
|
|
4459
4493
|
// elements/switch/Switch.tsx
|
4460
|
-
var
|
4494
|
+
var React34 = __toESM(require("react"));
|
4461
4495
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4462
|
-
var Switch =
|
4496
|
+
var Switch = React34.forwardRef(
|
4463
4497
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4464
|
-
const [parentDirection, setParentDirection] =
|
4498
|
+
const [parentDirection, setParentDirection] = React34.useState(
|
4465
4499
|
null
|
4466
4500
|
);
|
4467
|
-
const parentRef =
|
4468
|
-
|
4501
|
+
const parentRef = React34.useRef(null);
|
4502
|
+
React34.useEffect(() => {
|
4469
4503
|
var _a;
|
4470
4504
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4471
4505
|
if (parentNode) {
|
@@ -4493,13 +4527,13 @@ var Switch = React33.forwardRef(
|
|
4493
4527
|
full: "hawa-rounded-full",
|
4494
4528
|
inherit: "hawa-rounded-inner"
|
4495
4529
|
};
|
4496
|
-
return /* @__PURE__ */
|
4530
|
+
return /* @__PURE__ */ React34.createElement(
|
4497
4531
|
"div",
|
4498
4532
|
{
|
4499
4533
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4500
4534
|
ref: parentRef
|
4501
4535
|
},
|
4502
|
-
/* @__PURE__ */
|
4536
|
+
/* @__PURE__ */ React34.createElement(
|
4503
4537
|
SwitchPrimitives.Root,
|
4504
4538
|
{
|
4505
4539
|
className: cn(
|
@@ -4513,7 +4547,7 @@ var Switch = React33.forwardRef(
|
|
4513
4547
|
...props,
|
4514
4548
|
ref
|
4515
4549
|
},
|
4516
|
-
/* @__PURE__ */
|
4550
|
+
/* @__PURE__ */ React34.createElement(
|
4517
4551
|
SwitchPrimitives.Thumb,
|
4518
4552
|
{
|
4519
4553
|
className: cn(
|
@@ -4527,14 +4561,14 @@ var Switch = React33.forwardRef(
|
|
4527
4561
|
}
|
4528
4562
|
)
|
4529
4563
|
),
|
4530
|
-
label && /* @__PURE__ */
|
4564
|
+
label && /* @__PURE__ */ React34.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4531
4565
|
);
|
4532
4566
|
}
|
4533
4567
|
);
|
4534
4568
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4535
4569
|
|
4536
4570
|
// elements/checkbox/Checkbox.tsx
|
4537
|
-
var
|
4571
|
+
var React35 = __toESM(require("react"));
|
4538
4572
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4539
4573
|
var Checkbox = ({
|
4540
4574
|
id,
|
@@ -4554,7 +4588,7 @@ var Checkbox = ({
|
|
4554
4588
|
lg: 0.9,
|
4555
4589
|
xl: 1
|
4556
4590
|
};
|
4557
|
-
return /* @__PURE__ */
|
4591
|
+
return /* @__PURE__ */ React35.createElement(
|
4558
4592
|
"div",
|
4559
4593
|
{
|
4560
4594
|
className: cn(
|
@@ -4562,7 +4596,7 @@ var Checkbox = ({
|
|
4562
4596
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4563
4597
|
)
|
4564
4598
|
},
|
4565
|
-
/* @__PURE__ */
|
4599
|
+
/* @__PURE__ */ React35.createElement(
|
4566
4600
|
CheckboxElement,
|
4567
4601
|
{
|
4568
4602
|
...props,
|
@@ -4572,7 +4606,7 @@ var Checkbox = ({
|
|
4572
4606
|
id
|
4573
4607
|
}
|
4574
4608
|
),
|
4575
|
-
(label || helperText) && /* @__PURE__ */
|
4609
|
+
(label || helperText) && /* @__PURE__ */ React35.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React35.createElement(
|
4576
4610
|
"label",
|
4577
4611
|
{
|
4578
4612
|
htmlFor: id,
|
@@ -4586,7 +4620,7 @@ var Checkbox = ({
|
|
4586
4620
|
}
|
4587
4621
|
},
|
4588
4622
|
label
|
4589
|
-
), sublabel && /* @__PURE__ */
|
4623
|
+
), sublabel && /* @__PURE__ */ React35.createElement(
|
4590
4624
|
"label",
|
4591
4625
|
{
|
4592
4626
|
htmlFor: id,
|
@@ -4596,7 +4630,7 @@ var Checkbox = ({
|
|
4596
4630
|
)
|
4597
4631
|
},
|
4598
4632
|
sublabel
|
4599
|
-
), helperText && !disabled && /* @__PURE__ */
|
4633
|
+
), helperText && !disabled && /* @__PURE__ */ React35.createElement(
|
4600
4634
|
"label",
|
4601
4635
|
{
|
4602
4636
|
htmlFor: id,
|
@@ -4609,7 +4643,7 @@ var Checkbox = ({
|
|
4609
4643
|
))
|
4610
4644
|
);
|
4611
4645
|
};
|
4612
|
-
var CheckboxElement =
|
4646
|
+
var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4613
4647
|
let checkboxRadius = {
|
4614
4648
|
none: "hawa-rounded-none",
|
4615
4649
|
inherit: "hawa-rounded-sm",
|
@@ -4631,7 +4665,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4631
4665
|
lg: "1em",
|
4632
4666
|
xl: "1.25em"
|
4633
4667
|
};
|
4634
|
-
return /* @__PURE__ */
|
4668
|
+
return /* @__PURE__ */ React35.createElement(
|
4635
4669
|
CheckboxPrimitive.Root,
|
4636
4670
|
{
|
4637
4671
|
ref,
|
@@ -4643,14 +4677,14 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4643
4677
|
),
|
4644
4678
|
...props
|
4645
4679
|
},
|
4646
|
-
/* @__PURE__ */
|
4680
|
+
/* @__PURE__ */ React35.createElement(
|
4647
4681
|
CheckboxPrimitive.Indicator,
|
4648
4682
|
{
|
4649
4683
|
className: cn(
|
4650
4684
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4651
4685
|
)
|
4652
4686
|
},
|
4653
|
-
/* @__PURE__ */
|
4687
|
+
/* @__PURE__ */ React35.createElement(
|
4654
4688
|
"svg",
|
4655
4689
|
{
|
4656
4690
|
"aria-label": "Check Mark",
|
@@ -4661,7 +4695,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4661
4695
|
height: checkboxIndicatorSizes[size],
|
4662
4696
|
width: checkboxIndicatorSizes[size]
|
4663
4697
|
},
|
4664
|
-
/* @__PURE__ */
|
4698
|
+
/* @__PURE__ */ React35.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" })
|
4665
4699
|
),
|
4666
4700
|
" "
|
4667
4701
|
)
|
@@ -4670,9 +4704,9 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4670
4704
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4671
4705
|
|
4672
4706
|
// elements/progress/Progress.tsx
|
4673
|
-
var
|
4707
|
+
var React36 = __toESM(require("react"));
|
4674
4708
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4675
|
-
var Progress =
|
4709
|
+
var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React36.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React36.createElement(
|
4676
4710
|
ProgressPrimitive.Root,
|
4677
4711
|
{
|
4678
4712
|
ref,
|
@@ -4682,7 +4716,7 @@ var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4682
4716
|
),
|
4683
4717
|
...props
|
4684
4718
|
},
|
4685
|
-
/* @__PURE__ */
|
4719
|
+
/* @__PURE__ */ React36.createElement(
|
4686
4720
|
ProgressPrimitive.Indicator,
|
4687
4721
|
{
|
4688
4722
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -6697,21 +6731,21 @@ var StopPropagationWrapper = (props) => {
|
|
6697
6731
|
};
|
6698
6732
|
|
6699
6733
|
// elements/scrollArea/ScrollArea.tsx
|
6700
|
-
var
|
6734
|
+
var React43 = __toESM(require("react"));
|
6701
6735
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6702
|
-
var ScrollArea =
|
6736
|
+
var ScrollArea = React43.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6703
6737
|
ScrollAreaPrimitive.Root,
|
6704
6738
|
{
|
6705
6739
|
ref,
|
6706
6740
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6707
6741
|
...props
|
6708
6742
|
},
|
6709
|
-
/* @__PURE__ */
|
6710
|
-
/* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6743
|
+
/* @__PURE__ */ React43.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6744
|
+
/* @__PURE__ */ React43.createElement(ScrollBar, { orientation }),
|
6745
|
+
/* @__PURE__ */ React43.createElement(ScrollAreaPrimitive.Corner, null)
|
6712
6746
|
));
|
6713
6747
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6714
|
-
var ScrollBar =
|
6748
|
+
var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6715
6749
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6716
6750
|
{
|
6717
6751
|
ref,
|
@@ -6724,7 +6758,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6724
6758
|
),
|
6725
6759
|
...props
|
6726
6760
|
},
|
6727
|
-
/* @__PURE__ */
|
6761
|
+
/* @__PURE__ */ React43.createElement(
|
6728
6762
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6729
6763
|
{
|
6730
6764
|
className: cn(
|
@@ -7342,9 +7376,9 @@ var PasswordInput = ({
|
|
7342
7376
|
};
|
7343
7377
|
|
7344
7378
|
// elements/slider/Slider.tsx
|
7345
|
-
var
|
7379
|
+
var React51 = __toESM(require("react"));
|
7346
7380
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7347
|
-
var Slider =
|
7381
|
+
var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7348
7382
|
SliderPrimitive.Root,
|
7349
7383
|
{
|
7350
7384
|
ref,
|
@@ -7354,13 +7388,13 @@ var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7354
7388
|
),
|
7355
7389
|
...props
|
7356
7390
|
},
|
7357
|
-
/* @__PURE__ */
|
7358
|
-
/* @__PURE__ */
|
7391
|
+
/* @__PURE__ */ React51.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__ */ React51.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7392
|
+
/* @__PURE__ */ React51.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" })
|
7359
7393
|
));
|
7360
7394
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7361
7395
|
|
7362
7396
|
// elements/simpleTable/SimpleTable.tsx
|
7363
|
-
var
|
7397
|
+
var React52 = __toESM(require("react"));
|
7364
7398
|
var import_react_table2 = require("@tanstack/react-table");
|
7365
7399
|
var SimpleTable = ({
|
7366
7400
|
columns,
|
@@ -7375,7 +7409,7 @@ var SimpleTable = ({
|
|
7375
7409
|
columns,
|
7376
7410
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7377
7411
|
});
|
7378
|
-
return /* @__PURE__ */
|
7412
|
+
return /* @__PURE__ */ React52.createElement(
|
7379
7413
|
"div",
|
7380
7414
|
{
|
7381
7415
|
className: cn(
|
@@ -7383,8 +7417,8 @@ var SimpleTable = ({
|
|
7383
7417
|
classNames
|
7384
7418
|
)
|
7385
7419
|
},
|
7386
|
-
props.isLoading ? /* @__PURE__ */
|
7387
|
-
return /* @__PURE__ */
|
7420
|
+
props.isLoading ? /* @__PURE__ */ React52.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React52.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React52.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React52.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React52.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7421
|
+
return /* @__PURE__ */ React52.createElement(
|
7388
7422
|
TableHead,
|
7389
7423
|
{
|
7390
7424
|
condensed: props.condensed,
|
@@ -7399,7 +7433,7 @@ var SimpleTable = ({
|
|
7399
7433
|
header.getContext()
|
7400
7434
|
)
|
7401
7435
|
);
|
7402
|
-
})))), /* @__PURE__ */
|
7436
|
+
})))), /* @__PURE__ */ React52.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React52.createElement(
|
7403
7437
|
TableRow,
|
7404
7438
|
{
|
7405
7439
|
key: row.id,
|
@@ -7407,7 +7441,7 @@ var SimpleTable = ({
|
|
7407
7441
|
},
|
7408
7442
|
row.getVisibleCells().map((cell) => {
|
7409
7443
|
var _a2;
|
7410
|
-
return /* @__PURE__ */
|
7444
|
+
return /* @__PURE__ */ React52.createElement(
|
7411
7445
|
TableCell,
|
7412
7446
|
{
|
7413
7447
|
dir: props.direction,
|
@@ -7423,7 +7457,7 @@ var SimpleTable = ({
|
|
7423
7457
|
)
|
7424
7458
|
);
|
7425
7459
|
})
|
7426
|
-
)) : /* @__PURE__ */
|
7460
|
+
)) : /* @__PURE__ */ React52.createElement(TableRow, null, /* @__PURE__ */ React52.createElement(
|
7427
7461
|
TableCell,
|
7428
7462
|
{
|
7429
7463
|
colSpan: columns.length,
|
@@ -7435,12 +7469,12 @@ var SimpleTable = ({
|
|
7435
7469
|
};
|
7436
7470
|
|
7437
7471
|
// elements/separator/Separator.tsx
|
7438
|
-
var
|
7472
|
+
var React53 = __toESM(require("react"));
|
7439
7473
|
var Separator2 = ({
|
7440
7474
|
className,
|
7441
7475
|
orientation = "horizontal",
|
7442
7476
|
...props
|
7443
|
-
}) => /* @__PURE__ */
|
7477
|
+
}) => /* @__PURE__ */ React53.createElement(
|
7444
7478
|
"div",
|
7445
7479
|
{
|
7446
7480
|
className: cn(
|
@@ -7833,7 +7867,7 @@ var Count = (props) => {
|
|
7833
7867
|
};
|
7834
7868
|
|
7835
7869
|
// elements/toast/Toast.tsx
|
7836
|
-
var
|
7870
|
+
var React58 = __toESM(require("react"));
|
7837
7871
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7838
7872
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7839
7873
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7861,7 +7895,7 @@ var sizeStyles = {
|
|
7861
7895
|
sm: "hawa-text-xs"
|
7862
7896
|
};
|
7863
7897
|
var ToastProvider = ToastPrimitives.Provider;
|
7864
|
-
var ToastViewport =
|
7898
|
+
var ToastViewport = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7865
7899
|
ToastPrimitives.Viewport,
|
7866
7900
|
{
|
7867
7901
|
ref,
|
@@ -7873,8 +7907,8 @@ var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7873
7907
|
}
|
7874
7908
|
));
|
7875
7909
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7876
|
-
var Toast =
|
7877
|
-
return /* @__PURE__ */
|
7910
|
+
var Toast = React58.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7911
|
+
return /* @__PURE__ */ React58.createElement(
|
7878
7912
|
ToastPrimitives.Root,
|
7879
7913
|
{
|
7880
7914
|
ref,
|
@@ -7889,8 +7923,8 @@ var Toast = React57.forwardRef(({ className, variant, severity = "none", directi
|
|
7889
7923
|
);
|
7890
7924
|
});
|
7891
7925
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7892
|
-
var ToastAction =
|
7893
|
-
return /* @__PURE__ */
|
7926
|
+
var ToastAction = React58.forwardRef(({ className, ...props }, ref) => {
|
7927
|
+
return /* @__PURE__ */ React58.createElement(
|
7894
7928
|
ToastPrimitives.Action,
|
7895
7929
|
{
|
7896
7930
|
ref,
|
@@ -7908,7 +7942,7 @@ var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
7908
7942
|
);
|
7909
7943
|
});
|
7910
7944
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7911
|
-
var ToastClose =
|
7945
|
+
var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7912
7946
|
ToastPrimitives.Close,
|
7913
7947
|
{
|
7914
7948
|
ref,
|
@@ -7922,7 +7956,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7922
7956
|
"toast-close": "",
|
7923
7957
|
...props
|
7924
7958
|
},
|
7925
|
-
/* @__PURE__ */
|
7959
|
+
/* @__PURE__ */ React58.createElement(
|
7926
7960
|
"svg",
|
7927
7961
|
{
|
7928
7962
|
"aria-label": "Close Icon",
|
@@ -7931,7 +7965,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7931
7965
|
fill: "currentColor",
|
7932
7966
|
viewBox: "0 0 20 20"
|
7933
7967
|
},
|
7934
|
-
/* @__PURE__ */
|
7968
|
+
/* @__PURE__ */ React58.createElement(
|
7935
7969
|
"path",
|
7936
7970
|
{
|
7937
7971
|
fillRule: "evenodd",
|
@@ -7942,7 +7976,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7942
7976
|
)
|
7943
7977
|
));
|
7944
7978
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7945
|
-
var ToastTitle =
|
7979
|
+
var ToastTitle = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7946
7980
|
ToastPrimitives.Title,
|
7947
7981
|
{
|
7948
7982
|
ref,
|
@@ -7955,7 +7989,7 @@ var ToastTitle = React57.forwardRef(({ className, size = "default", ...props },
|
|
7955
7989
|
}
|
7956
7990
|
));
|
7957
7991
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7958
|
-
var ToastDescription =
|
7992
|
+
var ToastDescription = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7959
7993
|
ToastPrimitives.Description,
|
7960
7994
|
{
|
7961
7995
|
ref,
|
@@ -8219,13 +8253,13 @@ var Stats = ({
|
|
8219
8253
|
};
|
8220
8254
|
|
8221
8255
|
// layout/sidebar/Sidebar.tsx
|
8222
|
-
var
|
8256
|
+
var React64 = __toESM(require("react"));
|
8223
8257
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
8224
8258
|
var Accordion2 = AccordionPrimitive6.Root;
|
8225
8259
|
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";
|
8226
|
-
var AccordionItem2 =
|
8260
|
+
var AccordionItem2 = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8227
8261
|
AccordionItem2.displayName = "AccordionItem";
|
8228
|
-
var AccordionTrigger2 =
|
8262
|
+
var AccordionTrigger2 = React64.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React64.createElement(
|
8229
8263
|
AccordionPrimitive6.Trigger,
|
8230
8264
|
{
|
8231
8265
|
ref,
|
@@ -8233,7 +8267,7 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
8233
8267
|
...props
|
8234
8268
|
},
|
8235
8269
|
children,
|
8236
|
-
showArrow && /* @__PURE__ */
|
8270
|
+
showArrow && /* @__PURE__ */ React64.createElement(
|
8237
8271
|
"svg",
|
8238
8272
|
{
|
8239
8273
|
"aria-label": "Chevron Right Icon",
|
@@ -8244,11 +8278,11 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
8244
8278
|
width: "1em",
|
8245
8279
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8246
8280
|
},
|
8247
|
-
/* @__PURE__ */
|
8281
|
+
/* @__PURE__ */ React64.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" })
|
8248
8282
|
)
|
8249
8283
|
)));
|
8250
8284
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8251
|
-
var AccordionContent2 =
|
8285
|
+
var AccordionContent2 = React64.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
8252
8286
|
AccordionPrimitive6.Content,
|
8253
8287
|
{
|
8254
8288
|
ref,
|
@@ -8258,7 +8292,7 @@ var AccordionContent2 = React63.forwardRef(({ className, children, ...props }, r
|
|
8258
8292
|
),
|
8259
8293
|
...props
|
8260
8294
|
},
|
8261
|
-
/* @__PURE__ */
|
8295
|
+
/* @__PURE__ */ React64.createElement("div", null, children)
|
8262
8296
|
));
|
8263
8297
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8264
8298
|
var SidebarGroup = ({
|
@@ -8274,7 +8308,7 @@ var SidebarGroup = ({
|
|
8274
8308
|
...props
|
8275
8309
|
}) => {
|
8276
8310
|
const LinkComponent = props.LinkComponent || "a";
|
8277
|
-
return /* @__PURE__ */
|
8311
|
+
return /* @__PURE__ */ React64.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React64.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React64.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React64.createElement(
|
8278
8312
|
Accordion2,
|
8279
8313
|
{
|
8280
8314
|
value: openedItem,
|
@@ -8285,7 +8319,7 @@ var SidebarGroup = ({
|
|
8285
8319
|
collapsible: true,
|
8286
8320
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8287
8321
|
},
|
8288
|
-
items.map((item, idx) => /* @__PURE__ */
|
8322
|
+
items.map((item, idx) => /* @__PURE__ */ React64.createElement(
|
8289
8323
|
SidebarItem,
|
8290
8324
|
{
|
8291
8325
|
isOpen,
|
@@ -8313,14 +8347,14 @@ var SidebarItem = ({
|
|
8313
8347
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8314
8348
|
};
|
8315
8349
|
if (item.subitems) {
|
8316
|
-
return /* @__PURE__ */
|
8350
|
+
return /* @__PURE__ */ React64.createElement(
|
8317
8351
|
AccordionItem2,
|
8318
8352
|
{
|
8319
8353
|
value: item.value,
|
8320
8354
|
className: "hawa-overflow-x-clip ",
|
8321
8355
|
dir: direction
|
8322
8356
|
},
|
8323
|
-
/* @__PURE__ */
|
8357
|
+
/* @__PURE__ */ React64.createElement(
|
8324
8358
|
AccordionTrigger2,
|
8325
8359
|
{
|
8326
8360
|
className: cn(
|
@@ -8332,7 +8366,7 @@ var SidebarItem = ({
|
|
8332
8366
|
),
|
8333
8367
|
showArrow: isOpen
|
8334
8368
|
},
|
8335
|
-
/* @__PURE__ */
|
8369
|
+
/* @__PURE__ */ React64.createElement(
|
8336
8370
|
"div",
|
8337
8371
|
{
|
8338
8372
|
className: cn(
|
@@ -8340,7 +8374,7 @@ var SidebarItem = ({
|
|
8340
8374
|
)
|
8341
8375
|
},
|
8342
8376
|
item.icon && item.icon,
|
8343
|
-
/* @__PURE__ */
|
8377
|
+
/* @__PURE__ */ React64.createElement(
|
8344
8378
|
"span",
|
8345
8379
|
{
|
8346
8380
|
className: cn(
|
@@ -8352,14 +8386,14 @@ var SidebarItem = ({
|
|
8352
8386
|
)
|
8353
8387
|
)
|
8354
8388
|
),
|
8355
|
-
item.subitems && /* @__PURE__ */
|
8389
|
+
item.subitems && /* @__PURE__ */ React64.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React64.createElement(
|
8356
8390
|
"div",
|
8357
8391
|
{
|
8358
8392
|
className: cn(
|
8359
8393
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8360
8394
|
)
|
8361
8395
|
},
|
8362
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
8396
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React64.createElement(
|
8363
8397
|
LinkComponent,
|
8364
8398
|
{
|
8365
8399
|
href: subitem.slug,
|
@@ -8390,7 +8424,7 @@ var SidebarItem = ({
|
|
8390
8424
|
))
|
8391
8425
|
);
|
8392
8426
|
} else {
|
8393
|
-
return /* @__PURE__ */
|
8427
|
+
return /* @__PURE__ */ React64.createElement(
|
8394
8428
|
LinkComponent,
|
8395
8429
|
{
|
8396
8430
|
href: item.slug,
|
@@ -8414,7 +8448,7 @@ var SidebarItem = ({
|
|
8414
8448
|
"hawa-overflow-x-clip "
|
8415
8449
|
)
|
8416
8450
|
},
|
8417
|
-
/* @__PURE__ */
|
8451
|
+
/* @__PURE__ */ React64.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React64.createElement(
|
8418
8452
|
"span",
|
8419
8453
|
{
|
8420
8454
|
className: cn(
|
@@ -8424,7 +8458,7 @@ var SidebarItem = ({
|
|
8424
8458
|
},
|
8425
8459
|
item.label,
|
8426
8460
|
" ",
|
8427
|
-
item.badge && /* @__PURE__ */
|
8461
|
+
item.badge && /* @__PURE__ */ React64.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
8428
8462
|
))
|
8429
8463
|
);
|
8430
8464
|
}
|
@@ -9021,14 +9055,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9021
9055
|
};
|
9022
9056
|
|
9023
9057
|
// layout/appMenubar/AppMenubar.tsx
|
9024
|
-
var
|
9058
|
+
var React69 = __toESM(require("react"));
|
9025
9059
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
9026
9060
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9027
9061
|
var MenubarGroup = MenubarPrimitive.Group;
|
9028
9062
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9029
9063
|
var MenubarSub = MenubarPrimitive.Sub;
|
9030
9064
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9031
|
-
var Menubar =
|
9065
|
+
var Menubar = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9032
9066
|
MenubarPrimitive.Root,
|
9033
9067
|
{
|
9034
9068
|
ref,
|
@@ -9040,7 +9074,7 @@ var Menubar = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9040
9074
|
}
|
9041
9075
|
));
|
9042
9076
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9043
|
-
var MenubarTrigger =
|
9077
|
+
var MenubarTrigger = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9044
9078
|
MenubarPrimitive.Trigger,
|
9045
9079
|
{
|
9046
9080
|
ref,
|
@@ -9052,7 +9086,7 @@ var MenubarTrigger = React68.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9052
9086
|
}
|
9053
9087
|
));
|
9054
9088
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9055
|
-
var MenubarSubTrigger =
|
9089
|
+
var MenubarSubTrigger = React69.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9056
9090
|
MenubarPrimitive.SubTrigger,
|
9057
9091
|
{
|
9058
9092
|
ref,
|
@@ -9064,7 +9098,7 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
9064
9098
|
...props
|
9065
9099
|
},
|
9066
9100
|
children,
|
9067
|
-
/* @__PURE__ */
|
9101
|
+
/* @__PURE__ */ React69.createElement(
|
9068
9102
|
"svg",
|
9069
9103
|
{
|
9070
9104
|
"aria-label": "Chevron Right Icon",
|
@@ -9079,11 +9113,11 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
9079
9113
|
strokeLinejoin: "round",
|
9080
9114
|
className: "hawa-icon hawa-ml-auto"
|
9081
9115
|
},
|
9082
|
-
/* @__PURE__ */
|
9116
|
+
/* @__PURE__ */ React69.createElement("path", { d: "m9 18 6-6-6-6" })
|
9083
9117
|
)
|
9084
9118
|
));
|
9085
9119
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9086
|
-
var MenubarSubContent =
|
9120
|
+
var MenubarSubContent = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9087
9121
|
MenubarPrimitive.SubContent,
|
9088
9122
|
{
|
9089
9123
|
ref,
|
@@ -9095,8 +9129,8 @@ var MenubarSubContent = React68.forwardRef(({ className, ...props }, ref) => /*
|
|
9095
9129
|
}
|
9096
9130
|
));
|
9097
9131
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9098
|
-
var MenubarContent =
|
9099
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9132
|
+
var MenubarContent = React69.forwardRef(
|
9133
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React69.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React69.createElement(
|
9100
9134
|
MenubarPrimitive.Content,
|
9101
9135
|
{
|
9102
9136
|
ref,
|
@@ -9112,7 +9146,7 @@ var MenubarContent = React68.forwardRef(
|
|
9112
9146
|
))
|
9113
9147
|
);
|
9114
9148
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9115
|
-
var MenubarItem =
|
9149
|
+
var MenubarItem = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9116
9150
|
MenubarPrimitive.Item,
|
9117
9151
|
{
|
9118
9152
|
ref,
|
@@ -9125,7 +9159,7 @@ var MenubarItem = React68.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9125
9159
|
}
|
9126
9160
|
));
|
9127
9161
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9128
|
-
var MenubarCheckboxItem =
|
9162
|
+
var MenubarCheckboxItem = React69.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9129
9163
|
MenubarPrimitive.CheckboxItem,
|
9130
9164
|
{
|
9131
9165
|
ref,
|
@@ -9136,7 +9170,7 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
9136
9170
|
checked,
|
9137
9171
|
...props
|
9138
9172
|
},
|
9139
|
-
/* @__PURE__ */
|
9173
|
+
/* @__PURE__ */ React69.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__ */ React69.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React69.createElement(
|
9140
9174
|
"svg",
|
9141
9175
|
{
|
9142
9176
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9150,12 +9184,12 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
9150
9184
|
strokeLinejoin: "round",
|
9151
9185
|
className: "hawa-icon"
|
9152
9186
|
},
|
9153
|
-
/* @__PURE__ */
|
9187
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9154
9188
|
))),
|
9155
9189
|
children
|
9156
9190
|
));
|
9157
9191
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9158
|
-
var MenubarRadioItem =
|
9192
|
+
var MenubarRadioItem = React69.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9159
9193
|
MenubarPrimitive.RadioItem,
|
9160
9194
|
{
|
9161
9195
|
ref,
|
@@ -9165,7 +9199,7 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
9165
9199
|
),
|
9166
9200
|
...props
|
9167
9201
|
},
|
9168
|
-
/* @__PURE__ */
|
9202
|
+
/* @__PURE__ */ React69.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__ */ React69.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React69.createElement(
|
9169
9203
|
"svg",
|
9170
9204
|
{
|
9171
9205
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9179,12 +9213,12 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
9179
9213
|
strokeLinejoin: "round",
|
9180
9214
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9181
9215
|
},
|
9182
|
-
/* @__PURE__ */
|
9216
|
+
/* @__PURE__ */ React69.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9183
9217
|
))),
|
9184
9218
|
children
|
9185
9219
|
));
|
9186
9220
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9187
|
-
var MenubarLabel =
|
9221
|
+
var MenubarLabel = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9188
9222
|
MenubarPrimitive.Label,
|
9189
9223
|
{
|
9190
9224
|
ref,
|
@@ -9197,7 +9231,7 @@ var MenubarLabel = React68.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9197
9231
|
}
|
9198
9232
|
));
|
9199
9233
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9200
|
-
var MenubarSeparator =
|
9234
|
+
var MenubarSeparator = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9201
9235
|
MenubarPrimitive.Separator,
|
9202
9236
|
{
|
9203
9237
|
ref,
|
@@ -9210,7 +9244,7 @@ var MenubarShortcut = ({
|
|
9210
9244
|
className,
|
9211
9245
|
...props
|
9212
9246
|
}) => {
|
9213
|
-
return /* @__PURE__ */
|
9247
|
+
return /* @__PURE__ */ React69.createElement(
|
9214
9248
|
"span",
|
9215
9249
|
{
|
9216
9250
|
className: cn(
|
@@ -12239,7 +12273,7 @@ var import_react76 = require("react");
|
|
12239
12273
|
var import_react77 = require("react");
|
12240
12274
|
|
12241
12275
|
// hooks/useToast.ts
|
12242
|
-
var
|
12276
|
+
var React105 = __toESM(require("react"));
|
12243
12277
|
var TOAST_LIMIT = 5;
|
12244
12278
|
var TOAST_REMOVE_DELAY = 1e5;
|
12245
12279
|
var count = 0;
|
@@ -12325,8 +12359,8 @@ function toast({ ...props }) {
|
|
12325
12359
|
return { id, dismiss, update };
|
12326
12360
|
}
|
12327
12361
|
function useToast() {
|
12328
|
-
const [state, setState] =
|
12329
|
-
|
12362
|
+
const [state, setState] = React105.useState(memoryState);
|
12363
|
+
React105.useEffect(() => {
|
12330
12364
|
listeners.push(setState);
|
12331
12365
|
return () => {
|
12332
12366
|
const index = listeners.indexOf(setState);
|
@@ -12700,6 +12734,8 @@ function useTabs(initialTab = "") {
|
|
12700
12734
|
PinInput,
|
12701
12735
|
Popover,
|
12702
12736
|
PopoverContent,
|
12737
|
+
PopoverPortal,
|
12738
|
+
PopoverRoot,
|
12703
12739
|
PopoverTrigger,
|
12704
12740
|
PricingCard,
|
12705
12741
|
PricingPlans,
|