@sikka/hawa 0.30.24-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/breadcrumb/index.d.mts +7 -5
- package/dist/breadcrumb/index.d.ts +7 -5
- package/dist/breadcrumb/index.js +36 -12
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +36 -12
- package/dist/breadcrumb/index.mjs.map +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 +11 -5
- package/dist/elements/index.d.ts +11 -5
- package/dist/elements/index.js +149 -98
- package/dist/elements/index.mjs +32 -13
- 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 +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +189 -138
- package/dist/index.mjs +706 -657
- 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",
|
@@ -4696,24 +4730,39 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
4696
4730
|
var import_react15 = __toESM(require("react"));
|
4697
4731
|
var Breadcrumb = ({
|
4698
4732
|
breadcrumbLinks,
|
4699
|
-
separator = ">"
|
4733
|
+
separator = ">",
|
4734
|
+
size = "normal"
|
4700
4735
|
}) => {
|
4701
|
-
|
4736
|
+
const textStyles = {
|
4737
|
+
normal: "",
|
4738
|
+
small: "hawa-text-sm",
|
4739
|
+
xs: "hawa-text-xs"
|
4740
|
+
};
|
4741
|
+
return /* @__PURE__ */ import_react15.default.createElement(
|
4702
4742
|
"div",
|
4703
4743
|
{
|
4704
|
-
|
4705
|
-
|
4744
|
+
className: cn(
|
4745
|
+
"hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm",
|
4746
|
+
textStyles[size]
|
4747
|
+
)
|
4706
4748
|
},
|
4707
|
-
/* @__PURE__ */ import_react15.default.createElement(
|
4708
|
-
"
|
4749
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react15.default.createElement(
|
4750
|
+
"div",
|
4709
4751
|
{
|
4710
|
-
|
4711
|
-
className:
|
4752
|
+
key: index,
|
4753
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4712
4754
|
},
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
|
4755
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
4756
|
+
"a",
|
4757
|
+
{
|
4758
|
+
href: singleBreadcrumbLink.href,
|
4759
|
+
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
4760
|
+
},
|
4761
|
+
singleBreadcrumbLink.label
|
4762
|
+
),
|
4763
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react15.default.createElement("div", null, separator) : /* @__PURE__ */ import_react15.default.createElement("div", null, separator) : null
|
4764
|
+
))
|
4765
|
+
);
|
4717
4766
|
};
|
4718
4767
|
|
4719
4768
|
// elements/appStores/AppStores.tsx
|
@@ -6682,21 +6731,21 @@ var StopPropagationWrapper = (props) => {
|
|
6682
6731
|
};
|
6683
6732
|
|
6684
6733
|
// elements/scrollArea/ScrollArea.tsx
|
6685
|
-
var
|
6734
|
+
var React43 = __toESM(require("react"));
|
6686
6735
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6687
|
-
var ScrollArea =
|
6736
|
+
var ScrollArea = React43.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6688
6737
|
ScrollAreaPrimitive.Root,
|
6689
6738
|
{
|
6690
6739
|
ref,
|
6691
6740
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6692
6741
|
...props
|
6693
6742
|
},
|
6694
|
-
/* @__PURE__ */
|
6695
|
-
/* @__PURE__ */
|
6696
|
-
/* @__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)
|
6697
6746
|
));
|
6698
6747
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6699
|
-
var ScrollBar =
|
6748
|
+
var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6700
6749
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6701
6750
|
{
|
6702
6751
|
ref,
|
@@ -6709,7 +6758,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6709
6758
|
),
|
6710
6759
|
...props
|
6711
6760
|
},
|
6712
|
-
/* @__PURE__ */
|
6761
|
+
/* @__PURE__ */ React43.createElement(
|
6713
6762
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6714
6763
|
{
|
6715
6764
|
className: cn(
|
@@ -7327,9 +7376,9 @@ var PasswordInput = ({
|
|
7327
7376
|
};
|
7328
7377
|
|
7329
7378
|
// elements/slider/Slider.tsx
|
7330
|
-
var
|
7379
|
+
var React51 = __toESM(require("react"));
|
7331
7380
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7332
|
-
var Slider =
|
7381
|
+
var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7333
7382
|
SliderPrimitive.Root,
|
7334
7383
|
{
|
7335
7384
|
ref,
|
@@ -7339,13 +7388,13 @@ var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7339
7388
|
),
|
7340
7389
|
...props
|
7341
7390
|
},
|
7342
|
-
/* @__PURE__ */
|
7343
|
-
/* @__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" })
|
7344
7393
|
));
|
7345
7394
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7346
7395
|
|
7347
7396
|
// elements/simpleTable/SimpleTable.tsx
|
7348
|
-
var
|
7397
|
+
var React52 = __toESM(require("react"));
|
7349
7398
|
var import_react_table2 = require("@tanstack/react-table");
|
7350
7399
|
var SimpleTable = ({
|
7351
7400
|
columns,
|
@@ -7360,7 +7409,7 @@ var SimpleTable = ({
|
|
7360
7409
|
columns,
|
7361
7410
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7362
7411
|
});
|
7363
|
-
return /* @__PURE__ */
|
7412
|
+
return /* @__PURE__ */ React52.createElement(
|
7364
7413
|
"div",
|
7365
7414
|
{
|
7366
7415
|
className: cn(
|
@@ -7368,8 +7417,8 @@ var SimpleTable = ({
|
|
7368
7417
|
classNames
|
7369
7418
|
)
|
7370
7419
|
},
|
7371
|
-
props.isLoading ? /* @__PURE__ */
|
7372
|
-
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(
|
7373
7422
|
TableHead,
|
7374
7423
|
{
|
7375
7424
|
condensed: props.condensed,
|
@@ -7384,7 +7433,7 @@ var SimpleTable = ({
|
|
7384
7433
|
header.getContext()
|
7385
7434
|
)
|
7386
7435
|
);
|
7387
|
-
})))), /* @__PURE__ */
|
7436
|
+
})))), /* @__PURE__ */ React52.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React52.createElement(
|
7388
7437
|
TableRow,
|
7389
7438
|
{
|
7390
7439
|
key: row.id,
|
@@ -7392,7 +7441,7 @@ var SimpleTable = ({
|
|
7392
7441
|
},
|
7393
7442
|
row.getVisibleCells().map((cell) => {
|
7394
7443
|
var _a2;
|
7395
|
-
return /* @__PURE__ */
|
7444
|
+
return /* @__PURE__ */ React52.createElement(
|
7396
7445
|
TableCell,
|
7397
7446
|
{
|
7398
7447
|
dir: props.direction,
|
@@ -7408,7 +7457,7 @@ var SimpleTable = ({
|
|
7408
7457
|
)
|
7409
7458
|
);
|
7410
7459
|
})
|
7411
|
-
)) : /* @__PURE__ */
|
7460
|
+
)) : /* @__PURE__ */ React52.createElement(TableRow, null, /* @__PURE__ */ React52.createElement(
|
7412
7461
|
TableCell,
|
7413
7462
|
{
|
7414
7463
|
colSpan: columns.length,
|
@@ -7420,12 +7469,12 @@ var SimpleTable = ({
|
|
7420
7469
|
};
|
7421
7470
|
|
7422
7471
|
// elements/separator/Separator.tsx
|
7423
|
-
var
|
7472
|
+
var React53 = __toESM(require("react"));
|
7424
7473
|
var Separator2 = ({
|
7425
7474
|
className,
|
7426
7475
|
orientation = "horizontal",
|
7427
7476
|
...props
|
7428
|
-
}) => /* @__PURE__ */
|
7477
|
+
}) => /* @__PURE__ */ React53.createElement(
|
7429
7478
|
"div",
|
7430
7479
|
{
|
7431
7480
|
className: cn(
|
@@ -7818,7 +7867,7 @@ var Count = (props) => {
|
|
7818
7867
|
};
|
7819
7868
|
|
7820
7869
|
// elements/toast/Toast.tsx
|
7821
|
-
var
|
7870
|
+
var React58 = __toESM(require("react"));
|
7822
7871
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7823
7872
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7824
7873
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7846,7 +7895,7 @@ var sizeStyles = {
|
|
7846
7895
|
sm: "hawa-text-xs"
|
7847
7896
|
};
|
7848
7897
|
var ToastProvider = ToastPrimitives.Provider;
|
7849
|
-
var ToastViewport =
|
7898
|
+
var ToastViewport = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7850
7899
|
ToastPrimitives.Viewport,
|
7851
7900
|
{
|
7852
7901
|
ref,
|
@@ -7858,8 +7907,8 @@ var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7858
7907
|
}
|
7859
7908
|
));
|
7860
7909
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7861
|
-
var Toast =
|
7862
|
-
return /* @__PURE__ */
|
7910
|
+
var Toast = React58.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7911
|
+
return /* @__PURE__ */ React58.createElement(
|
7863
7912
|
ToastPrimitives.Root,
|
7864
7913
|
{
|
7865
7914
|
ref,
|
@@ -7874,8 +7923,8 @@ var Toast = React57.forwardRef(({ className, variant, severity = "none", directi
|
|
7874
7923
|
);
|
7875
7924
|
});
|
7876
7925
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7877
|
-
var ToastAction =
|
7878
|
-
return /* @__PURE__ */
|
7926
|
+
var ToastAction = React58.forwardRef(({ className, ...props }, ref) => {
|
7927
|
+
return /* @__PURE__ */ React58.createElement(
|
7879
7928
|
ToastPrimitives.Action,
|
7880
7929
|
{
|
7881
7930
|
ref,
|
@@ -7893,7 +7942,7 @@ var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
7893
7942
|
);
|
7894
7943
|
});
|
7895
7944
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7896
|
-
var ToastClose =
|
7945
|
+
var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7897
7946
|
ToastPrimitives.Close,
|
7898
7947
|
{
|
7899
7948
|
ref,
|
@@ -7907,7 +7956,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7907
7956
|
"toast-close": "",
|
7908
7957
|
...props
|
7909
7958
|
},
|
7910
|
-
/* @__PURE__ */
|
7959
|
+
/* @__PURE__ */ React58.createElement(
|
7911
7960
|
"svg",
|
7912
7961
|
{
|
7913
7962
|
"aria-label": "Close Icon",
|
@@ -7916,7 +7965,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7916
7965
|
fill: "currentColor",
|
7917
7966
|
viewBox: "0 0 20 20"
|
7918
7967
|
},
|
7919
|
-
/* @__PURE__ */
|
7968
|
+
/* @__PURE__ */ React58.createElement(
|
7920
7969
|
"path",
|
7921
7970
|
{
|
7922
7971
|
fillRule: "evenodd",
|
@@ -7927,7 +7976,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7927
7976
|
)
|
7928
7977
|
));
|
7929
7978
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7930
|
-
var ToastTitle =
|
7979
|
+
var ToastTitle = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7931
7980
|
ToastPrimitives.Title,
|
7932
7981
|
{
|
7933
7982
|
ref,
|
@@ -7940,7 +7989,7 @@ var ToastTitle = React57.forwardRef(({ className, size = "default", ...props },
|
|
7940
7989
|
}
|
7941
7990
|
));
|
7942
7991
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7943
|
-
var ToastDescription =
|
7992
|
+
var ToastDescription = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7944
7993
|
ToastPrimitives.Description,
|
7945
7994
|
{
|
7946
7995
|
ref,
|
@@ -8204,13 +8253,13 @@ var Stats = ({
|
|
8204
8253
|
};
|
8205
8254
|
|
8206
8255
|
// layout/sidebar/Sidebar.tsx
|
8207
|
-
var
|
8256
|
+
var React64 = __toESM(require("react"));
|
8208
8257
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
8209
8258
|
var Accordion2 = AccordionPrimitive6.Root;
|
8210
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";
|
8211
|
-
var AccordionItem2 =
|
8260
|
+
var AccordionItem2 = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8212
8261
|
AccordionItem2.displayName = "AccordionItem";
|
8213
|
-
var AccordionTrigger2 =
|
8262
|
+
var AccordionTrigger2 = React64.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React64.createElement(
|
8214
8263
|
AccordionPrimitive6.Trigger,
|
8215
8264
|
{
|
8216
8265
|
ref,
|
@@ -8218,7 +8267,7 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
8218
8267
|
...props
|
8219
8268
|
},
|
8220
8269
|
children,
|
8221
|
-
showArrow && /* @__PURE__ */
|
8270
|
+
showArrow && /* @__PURE__ */ React64.createElement(
|
8222
8271
|
"svg",
|
8223
8272
|
{
|
8224
8273
|
"aria-label": "Chevron Right Icon",
|
@@ -8229,11 +8278,11 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
8229
8278
|
width: "1em",
|
8230
8279
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8231
8280
|
},
|
8232
|
-
/* @__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" })
|
8233
8282
|
)
|
8234
8283
|
)));
|
8235
8284
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8236
|
-
var AccordionContent2 =
|
8285
|
+
var AccordionContent2 = React64.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
8237
8286
|
AccordionPrimitive6.Content,
|
8238
8287
|
{
|
8239
8288
|
ref,
|
@@ -8243,7 +8292,7 @@ var AccordionContent2 = React63.forwardRef(({ className, children, ...props }, r
|
|
8243
8292
|
),
|
8244
8293
|
...props
|
8245
8294
|
},
|
8246
|
-
/* @__PURE__ */
|
8295
|
+
/* @__PURE__ */ React64.createElement("div", null, children)
|
8247
8296
|
));
|
8248
8297
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8249
8298
|
var SidebarGroup = ({
|
@@ -8259,7 +8308,7 @@ var SidebarGroup = ({
|
|
8259
8308
|
...props
|
8260
8309
|
}) => {
|
8261
8310
|
const LinkComponent = props.LinkComponent || "a";
|
8262
|
-
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(
|
8263
8312
|
Accordion2,
|
8264
8313
|
{
|
8265
8314
|
value: openedItem,
|
@@ -8270,7 +8319,7 @@ var SidebarGroup = ({
|
|
8270
8319
|
collapsible: true,
|
8271
8320
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8272
8321
|
},
|
8273
|
-
items.map((item, idx) => /* @__PURE__ */
|
8322
|
+
items.map((item, idx) => /* @__PURE__ */ React64.createElement(
|
8274
8323
|
SidebarItem,
|
8275
8324
|
{
|
8276
8325
|
isOpen,
|
@@ -8298,14 +8347,14 @@ var SidebarItem = ({
|
|
8298
8347
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8299
8348
|
};
|
8300
8349
|
if (item.subitems) {
|
8301
|
-
return /* @__PURE__ */
|
8350
|
+
return /* @__PURE__ */ React64.createElement(
|
8302
8351
|
AccordionItem2,
|
8303
8352
|
{
|
8304
8353
|
value: item.value,
|
8305
8354
|
className: "hawa-overflow-x-clip ",
|
8306
8355
|
dir: direction
|
8307
8356
|
},
|
8308
|
-
/* @__PURE__ */
|
8357
|
+
/* @__PURE__ */ React64.createElement(
|
8309
8358
|
AccordionTrigger2,
|
8310
8359
|
{
|
8311
8360
|
className: cn(
|
@@ -8317,7 +8366,7 @@ var SidebarItem = ({
|
|
8317
8366
|
),
|
8318
8367
|
showArrow: isOpen
|
8319
8368
|
},
|
8320
|
-
/* @__PURE__ */
|
8369
|
+
/* @__PURE__ */ React64.createElement(
|
8321
8370
|
"div",
|
8322
8371
|
{
|
8323
8372
|
className: cn(
|
@@ -8325,7 +8374,7 @@ var SidebarItem = ({
|
|
8325
8374
|
)
|
8326
8375
|
},
|
8327
8376
|
item.icon && item.icon,
|
8328
|
-
/* @__PURE__ */
|
8377
|
+
/* @__PURE__ */ React64.createElement(
|
8329
8378
|
"span",
|
8330
8379
|
{
|
8331
8380
|
className: cn(
|
@@ -8337,14 +8386,14 @@ var SidebarItem = ({
|
|
8337
8386
|
)
|
8338
8387
|
)
|
8339
8388
|
),
|
8340
|
-
item.subitems && /* @__PURE__ */
|
8389
|
+
item.subitems && /* @__PURE__ */ React64.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React64.createElement(
|
8341
8390
|
"div",
|
8342
8391
|
{
|
8343
8392
|
className: cn(
|
8344
8393
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8345
8394
|
)
|
8346
8395
|
},
|
8347
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
8396
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React64.createElement(
|
8348
8397
|
LinkComponent,
|
8349
8398
|
{
|
8350
8399
|
href: subitem.slug,
|
@@ -8375,7 +8424,7 @@ var SidebarItem = ({
|
|
8375
8424
|
))
|
8376
8425
|
);
|
8377
8426
|
} else {
|
8378
|
-
return /* @__PURE__ */
|
8427
|
+
return /* @__PURE__ */ React64.createElement(
|
8379
8428
|
LinkComponent,
|
8380
8429
|
{
|
8381
8430
|
href: item.slug,
|
@@ -8399,7 +8448,7 @@ var SidebarItem = ({
|
|
8399
8448
|
"hawa-overflow-x-clip "
|
8400
8449
|
)
|
8401
8450
|
},
|
8402
|
-
/* @__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(
|
8403
8452
|
"span",
|
8404
8453
|
{
|
8405
8454
|
className: cn(
|
@@ -8409,7 +8458,7 @@ var SidebarItem = ({
|
|
8409
8458
|
},
|
8410
8459
|
item.label,
|
8411
8460
|
" ",
|
8412
|
-
item.badge && /* @__PURE__ */
|
8461
|
+
item.badge && /* @__PURE__ */ React64.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
8413
8462
|
))
|
8414
8463
|
);
|
8415
8464
|
}
|
@@ -9006,14 +9055,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9006
9055
|
};
|
9007
9056
|
|
9008
9057
|
// layout/appMenubar/AppMenubar.tsx
|
9009
|
-
var
|
9058
|
+
var React69 = __toESM(require("react"));
|
9010
9059
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
9011
9060
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9012
9061
|
var MenubarGroup = MenubarPrimitive.Group;
|
9013
9062
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9014
9063
|
var MenubarSub = MenubarPrimitive.Sub;
|
9015
9064
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9016
|
-
var Menubar =
|
9065
|
+
var Menubar = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9017
9066
|
MenubarPrimitive.Root,
|
9018
9067
|
{
|
9019
9068
|
ref,
|
@@ -9025,7 +9074,7 @@ var Menubar = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9025
9074
|
}
|
9026
9075
|
));
|
9027
9076
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9028
|
-
var MenubarTrigger =
|
9077
|
+
var MenubarTrigger = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9029
9078
|
MenubarPrimitive.Trigger,
|
9030
9079
|
{
|
9031
9080
|
ref,
|
@@ -9037,7 +9086,7 @@ var MenubarTrigger = React68.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9037
9086
|
}
|
9038
9087
|
));
|
9039
9088
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9040
|
-
var MenubarSubTrigger =
|
9089
|
+
var MenubarSubTrigger = React69.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9041
9090
|
MenubarPrimitive.SubTrigger,
|
9042
9091
|
{
|
9043
9092
|
ref,
|
@@ -9049,7 +9098,7 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
9049
9098
|
...props
|
9050
9099
|
},
|
9051
9100
|
children,
|
9052
|
-
/* @__PURE__ */
|
9101
|
+
/* @__PURE__ */ React69.createElement(
|
9053
9102
|
"svg",
|
9054
9103
|
{
|
9055
9104
|
"aria-label": "Chevron Right Icon",
|
@@ -9064,11 +9113,11 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
9064
9113
|
strokeLinejoin: "round",
|
9065
9114
|
className: "hawa-icon hawa-ml-auto"
|
9066
9115
|
},
|
9067
|
-
/* @__PURE__ */
|
9116
|
+
/* @__PURE__ */ React69.createElement("path", { d: "m9 18 6-6-6-6" })
|
9068
9117
|
)
|
9069
9118
|
));
|
9070
9119
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9071
|
-
var MenubarSubContent =
|
9120
|
+
var MenubarSubContent = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9072
9121
|
MenubarPrimitive.SubContent,
|
9073
9122
|
{
|
9074
9123
|
ref,
|
@@ -9080,8 +9129,8 @@ var MenubarSubContent = React68.forwardRef(({ className, ...props }, ref) => /*
|
|
9080
9129
|
}
|
9081
9130
|
));
|
9082
9131
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9083
|
-
var MenubarContent =
|
9084
|
-
({ 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(
|
9085
9134
|
MenubarPrimitive.Content,
|
9086
9135
|
{
|
9087
9136
|
ref,
|
@@ -9097,7 +9146,7 @@ var MenubarContent = React68.forwardRef(
|
|
9097
9146
|
))
|
9098
9147
|
);
|
9099
9148
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9100
|
-
var MenubarItem =
|
9149
|
+
var MenubarItem = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9101
9150
|
MenubarPrimitive.Item,
|
9102
9151
|
{
|
9103
9152
|
ref,
|
@@ -9110,7 +9159,7 @@ var MenubarItem = React68.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9110
9159
|
}
|
9111
9160
|
));
|
9112
9161
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9113
|
-
var MenubarCheckboxItem =
|
9162
|
+
var MenubarCheckboxItem = React69.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9114
9163
|
MenubarPrimitive.CheckboxItem,
|
9115
9164
|
{
|
9116
9165
|
ref,
|
@@ -9121,7 +9170,7 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
9121
9170
|
checked,
|
9122
9171
|
...props
|
9123
9172
|
},
|
9124
|
-
/* @__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(
|
9125
9174
|
"svg",
|
9126
9175
|
{
|
9127
9176
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9135,12 +9184,12 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
9135
9184
|
strokeLinejoin: "round",
|
9136
9185
|
className: "hawa-icon"
|
9137
9186
|
},
|
9138
|
-
/* @__PURE__ */
|
9187
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9139
9188
|
))),
|
9140
9189
|
children
|
9141
9190
|
));
|
9142
9191
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9143
|
-
var MenubarRadioItem =
|
9192
|
+
var MenubarRadioItem = React69.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9144
9193
|
MenubarPrimitive.RadioItem,
|
9145
9194
|
{
|
9146
9195
|
ref,
|
@@ -9150,7 +9199,7 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
9150
9199
|
),
|
9151
9200
|
...props
|
9152
9201
|
},
|
9153
|
-
/* @__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(
|
9154
9203
|
"svg",
|
9155
9204
|
{
|
9156
9205
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9164,12 +9213,12 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
9164
9213
|
strokeLinejoin: "round",
|
9165
9214
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9166
9215
|
},
|
9167
|
-
/* @__PURE__ */
|
9216
|
+
/* @__PURE__ */ React69.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9168
9217
|
))),
|
9169
9218
|
children
|
9170
9219
|
));
|
9171
9220
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9172
|
-
var MenubarLabel =
|
9221
|
+
var MenubarLabel = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9173
9222
|
MenubarPrimitive.Label,
|
9174
9223
|
{
|
9175
9224
|
ref,
|
@@ -9182,7 +9231,7 @@ var MenubarLabel = React68.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9182
9231
|
}
|
9183
9232
|
));
|
9184
9233
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9185
|
-
var MenubarSeparator =
|
9234
|
+
var MenubarSeparator = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
9186
9235
|
MenubarPrimitive.Separator,
|
9187
9236
|
{
|
9188
9237
|
ref,
|
@@ -9195,7 +9244,7 @@ var MenubarShortcut = ({
|
|
9195
9244
|
className,
|
9196
9245
|
...props
|
9197
9246
|
}) => {
|
9198
|
-
return /* @__PURE__ */
|
9247
|
+
return /* @__PURE__ */ React69.createElement(
|
9199
9248
|
"span",
|
9200
9249
|
{
|
9201
9250
|
className: cn(
|
@@ -12224,7 +12273,7 @@ var import_react76 = require("react");
|
|
12224
12273
|
var import_react77 = require("react");
|
12225
12274
|
|
12226
12275
|
// hooks/useToast.ts
|
12227
|
-
var
|
12276
|
+
var React105 = __toESM(require("react"));
|
12228
12277
|
var TOAST_LIMIT = 5;
|
12229
12278
|
var TOAST_REMOVE_DELAY = 1e5;
|
12230
12279
|
var count = 0;
|
@@ -12310,8 +12359,8 @@ function toast({ ...props }) {
|
|
12310
12359
|
return { id, dismiss, update };
|
12311
12360
|
}
|
12312
12361
|
function useToast() {
|
12313
|
-
const [state, setState] =
|
12314
|
-
|
12362
|
+
const [state, setState] = React105.useState(memoryState);
|
12363
|
+
React105.useEffect(() => {
|
12315
12364
|
listeners.push(setState);
|
12316
12365
|
return () => {
|
12317
12366
|
const index = listeners.indexOf(setState);
|
@@ -12685,6 +12734,8 @@ function useTabs(initialTab = "") {
|
|
12685
12734
|
PinInput,
|
12686
12735
|
Popover,
|
12687
12736
|
PopoverContent,
|
12737
|
+
PopoverPortal,
|
12738
|
+
PopoverRoot,
|
12688
12739
|
PopoverTrigger,
|
12689
12740
|
PricingCard,
|
12690
12741
|
PricingPlans,
|