@sikka/hawa 0.31.9-next → 0.31.11-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/appLayout/index.js +144 -132
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +139 -127
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/index.js +199 -196
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +145 -142
- package/dist/blocks/misc/index.mjs +63 -60
- package/dist/{chunk-UDCDD66A.mjs → chunk-JU6Q4Q3T.mjs} +21 -1
- package/dist/{chunk-JXN2PVGT.mjs → chunk-VZNDYO6H.mjs} +1 -1
- package/dist/elements/index.js +253 -250
- package/dist/elements/index.mjs +3 -3
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.js +730 -718
- package/dist/index.mjs +660 -648
- package/dist/layout/index.js +252 -240
- package/dist/layout/index.mjs +9 -15
- package/dist/tabs/index.js +26 -23
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +26 -23
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +16 -14
- /package/dist/{chunk-R2SKHHDK.mjs → chunk-OPYDG34F.mjs} +0 -0
package/dist/elements/index.js
CHANGED
@@ -4114,7 +4114,7 @@ var SortButton = (props) => {
|
|
4114
4114
|
};
|
4115
4115
|
|
4116
4116
|
// elements/tabs/Tabs.tsx
|
4117
|
-
var
|
4117
|
+
var React41 = __toESM(require("react"));
|
4118
4118
|
|
4119
4119
|
// hooks/useIsomorphicEffect.ts
|
4120
4120
|
var import_react14 = require("react");
|
@@ -4220,12 +4220,15 @@ var useMeasureDirty = (ref) => {
|
|
4220
4220
|
return rect;
|
4221
4221
|
};
|
4222
4222
|
|
4223
|
+
// hooks/useOutsideClick.ts
|
4224
|
+
var import_react29 = __toESM(require("react"));
|
4225
|
+
|
4223
4226
|
// elements/tabs/Tabs.tsx
|
4224
4227
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4225
4228
|
var import_tailwind_variants = require("tailwind-variants");
|
4226
4229
|
|
4227
4230
|
// elements/floatBox/FloatBox.tsx
|
4228
|
-
var
|
4231
|
+
var React40 = __toESM(require("react"));
|
4229
4232
|
var FloatBox = ({
|
4230
4233
|
className,
|
4231
4234
|
open,
|
@@ -4263,7 +4266,7 @@ var FloatBox = ({
|
|
4263
4266
|
right: "hawa-arrow-default-left",
|
4264
4267
|
left: "hawa-arrow-default-right"
|
4265
4268
|
};
|
4266
|
-
return /* @__PURE__ */
|
4269
|
+
return /* @__PURE__ */ React40.createElement(
|
4267
4270
|
"div",
|
4268
4271
|
{
|
4269
4272
|
className: cn(
|
@@ -4274,8 +4277,8 @@ var FloatBox = ({
|
|
4274
4277
|
"data-side": side,
|
4275
4278
|
"data-floatbox-state": open ? "open" : "closed"
|
4276
4279
|
},
|
4277
|
-
withArrow && /* @__PURE__ */
|
4278
|
-
/* @__PURE__ */
|
4280
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4281
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4279
4282
|
);
|
4280
4283
|
};
|
4281
4284
|
|
@@ -4338,8 +4341,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4338
4341
|
],
|
4339
4342
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4340
4343
|
});
|
4341
|
-
var TabsContext =
|
4342
|
-
var Tabs =
|
4344
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4345
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4343
4346
|
TabsPrimitive.Root,
|
4344
4347
|
{
|
4345
4348
|
ref,
|
@@ -4350,11 +4353,11 @@ var Tabs = React40.forwardRef(({ className, orientation, variant = "default", ..
|
|
4350
4353
|
),
|
4351
4354
|
...props
|
4352
4355
|
},
|
4353
|
-
/* @__PURE__ */
|
4356
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4354
4357
|
));
|
4355
|
-
var TabsList =
|
4356
|
-
const { orientation, variant } =
|
4357
|
-
return /* @__PURE__ */
|
4358
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4359
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4360
|
+
return /* @__PURE__ */ React41.createElement(
|
4358
4361
|
TabsPrimitive.List,
|
4359
4362
|
{
|
4360
4363
|
ref,
|
@@ -4367,11 +4370,11 @@ var TabsList = React40.forwardRef(({ className, ...props }, ref) => {
|
|
4367
4370
|
}
|
4368
4371
|
);
|
4369
4372
|
});
|
4370
|
-
var TabsTrigger =
|
4371
|
-
const { orientation, variant } =
|
4372
|
-
const tabTriggerRef =
|
4373
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4374
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4375
|
+
const tabTriggerRef = React41.useRef(null);
|
4373
4376
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4374
|
-
return /* @__PURE__ */
|
4377
|
+
return /* @__PURE__ */ React41.createElement(
|
4375
4378
|
TabsPrimitive.Trigger,
|
4376
4379
|
{
|
4377
4380
|
ref: tabTriggerRef,
|
@@ -4383,8 +4386,8 @@ var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4383
4386
|
...props
|
4384
4387
|
},
|
4385
4388
|
props.children,
|
4386
|
-
chipProps && /* @__PURE__ */
|
4387
|
-
/* @__PURE__ */
|
4389
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4390
|
+
/* @__PURE__ */ React41.createElement(
|
4388
4391
|
FloatBox,
|
4389
4392
|
{
|
4390
4393
|
withArrow: true,
|
@@ -4397,7 +4400,7 @@ var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4397
4400
|
)
|
4398
4401
|
);
|
4399
4402
|
});
|
4400
|
-
var TabsContent =
|
4403
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4401
4404
|
TabsPrimitive.Content,
|
4402
4405
|
{
|
4403
4406
|
ref,
|
@@ -4414,7 +4417,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4414
4417
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4415
4418
|
|
4416
4419
|
// elements/select/Select.tsx
|
4417
|
-
var
|
4420
|
+
var import_react30 = __toESM(require("react"));
|
4418
4421
|
var import_react_select = __toESM(require("react-select"));
|
4419
4422
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4420
4423
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4425,10 +4428,10 @@ var Select = ({
|
|
4425
4428
|
}) => {
|
4426
4429
|
const NoOption = () => {
|
4427
4430
|
var _a, _b;
|
4428
|
-
return /* @__PURE__ */
|
4431
|
+
return /* @__PURE__ */ import_react30.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4429
4432
|
};
|
4430
4433
|
const Control = ({ children, innerProps, innerRef }) => {
|
4431
|
-
return /* @__PURE__ */
|
4434
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4432
4435
|
"div",
|
4433
4436
|
{
|
4434
4437
|
ref: innerRef,
|
@@ -4441,7 +4444,7 @@ var Select = ({
|
|
4441
4444
|
);
|
4442
4445
|
};
|
4443
4446
|
const Option = ({ children, innerProps, innerRef }) => {
|
4444
|
-
return /* @__PURE__ */
|
4447
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4445
4448
|
"div",
|
4446
4449
|
{
|
4447
4450
|
ref: innerRef,
|
@@ -4462,7 +4465,7 @@ var Select = ({
|
|
4462
4465
|
...menuProps
|
4463
4466
|
}) => {
|
4464
4467
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4465
|
-
return /* @__PURE__ */
|
4468
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4466
4469
|
"div",
|
4467
4470
|
{
|
4468
4471
|
className: cn(
|
@@ -4476,7 +4479,7 @@ var Select = ({
|
|
4476
4479
|
children
|
4477
4480
|
);
|
4478
4481
|
};
|
4479
|
-
return /* @__PURE__ */
|
4482
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4480
4483
|
"div",
|
4481
4484
|
{
|
4482
4485
|
className: cn(
|
@@ -4484,10 +4487,10 @@ var Select = ({
|
|
4484
4487
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4485
4488
|
)
|
4486
4489
|
},
|
4487
|
-
props.label && /* @__PURE__ */
|
4488
|
-
props.isLoading ? /* @__PURE__ */
|
4490
|
+
props.label && /* @__PURE__ */ import_react30.default.createElement(Label2, { ...labelProps }, props.label),
|
4491
|
+
props.isLoading ? /* @__PURE__ */ import_react30.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4489
4492
|
// TODO: enable keyboard to go to the next item in the list
|
4490
|
-
/* @__PURE__ */
|
4493
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
4491
4494
|
import_react_select.default,
|
4492
4495
|
{
|
4493
4496
|
noOptionsMessage: NoOption,
|
@@ -4526,7 +4529,7 @@ var Select = ({
|
|
4526
4529
|
// {...e}
|
4527
4530
|
// />
|
4528
4531
|
// ),
|
4529
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4532
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react30.default.createElement(
|
4530
4533
|
"div",
|
4531
4534
|
{
|
4532
4535
|
className: cn(
|
@@ -4536,7 +4539,7 @@ var Select = ({
|
|
4536
4539
|
...e
|
4537
4540
|
}
|
4538
4541
|
),
|
4539
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4542
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react30.default.createElement(
|
4540
4543
|
"div",
|
4541
4544
|
{
|
4542
4545
|
className: cn(
|
@@ -4558,7 +4561,7 @@ var Select = ({
|
|
4558
4561
|
isSearchable: props.isSearchable
|
4559
4562
|
}
|
4560
4563
|
)
|
4561
|
-
) : /* @__PURE__ */
|
4564
|
+
) : /* @__PURE__ */ import_react30.default.createElement(
|
4562
4565
|
import_creatable.default,
|
4563
4566
|
{
|
4564
4567
|
formatCreateLabel: (inputValue) => {
|
@@ -4588,7 +4591,7 @@ var Select = ({
|
|
4588
4591
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4589
4592
|
}
|
4590
4593
|
),
|
4591
|
-
!props.hideHelperText && /* @__PURE__ */
|
4594
|
+
!props.hideHelperText && /* @__PURE__ */ import_react30.default.createElement(
|
4592
4595
|
"p",
|
4593
4596
|
{
|
4594
4597
|
className: cn(
|
@@ -4602,15 +4605,15 @@ var Select = ({
|
|
4602
4605
|
};
|
4603
4606
|
|
4604
4607
|
// elements/switch/Switch.tsx
|
4605
|
-
var
|
4608
|
+
var React43 = __toESM(require("react"));
|
4606
4609
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4607
|
-
var Switch =
|
4610
|
+
var Switch = React43.forwardRef(
|
4608
4611
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4609
|
-
const [parentDirection, setParentDirection] =
|
4612
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
4610
4613
|
null
|
4611
4614
|
);
|
4612
|
-
const parentRef =
|
4613
|
-
|
4615
|
+
const parentRef = React43.useRef(null);
|
4616
|
+
React43.useEffect(() => {
|
4614
4617
|
var _a;
|
4615
4618
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4616
4619
|
if (parentNode) {
|
@@ -4638,13 +4641,13 @@ var Switch = React42.forwardRef(
|
|
4638
4641
|
full: "hawa-rounded-full",
|
4639
4642
|
inherit: "hawa-rounded-inner"
|
4640
4643
|
};
|
4641
|
-
return /* @__PURE__ */
|
4644
|
+
return /* @__PURE__ */ React43.createElement(
|
4642
4645
|
"div",
|
4643
4646
|
{
|
4644
4647
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4645
4648
|
ref: parentRef
|
4646
4649
|
},
|
4647
|
-
/* @__PURE__ */
|
4650
|
+
/* @__PURE__ */ React43.createElement(
|
4648
4651
|
SwitchPrimitives.Root,
|
4649
4652
|
{
|
4650
4653
|
className: cn(
|
@@ -4658,7 +4661,7 @@ var Switch = React42.forwardRef(
|
|
4658
4661
|
...props,
|
4659
4662
|
ref
|
4660
4663
|
},
|
4661
|
-
/* @__PURE__ */
|
4664
|
+
/* @__PURE__ */ React43.createElement(
|
4662
4665
|
SwitchPrimitives.Thumb,
|
4663
4666
|
{
|
4664
4667
|
className: cn(
|
@@ -4672,14 +4675,14 @@ var Switch = React42.forwardRef(
|
|
4672
4675
|
}
|
4673
4676
|
)
|
4674
4677
|
),
|
4675
|
-
label && /* @__PURE__ */
|
4678
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4676
4679
|
);
|
4677
4680
|
}
|
4678
4681
|
);
|
4679
4682
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4680
4683
|
|
4681
4684
|
// elements/checkbox/Checkbox.tsx
|
4682
|
-
var
|
4685
|
+
var React44 = __toESM(require("react"));
|
4683
4686
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4684
4687
|
var Checkbox = ({
|
4685
4688
|
id,
|
@@ -4699,7 +4702,7 @@ var Checkbox = ({
|
|
4699
4702
|
lg: 0.9,
|
4700
4703
|
xl: 1
|
4701
4704
|
};
|
4702
|
-
return /* @__PURE__ */
|
4705
|
+
return /* @__PURE__ */ React44.createElement(
|
4703
4706
|
"div",
|
4704
4707
|
{
|
4705
4708
|
className: cn(
|
@@ -4707,7 +4710,7 @@ var Checkbox = ({
|
|
4707
4710
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4708
4711
|
)
|
4709
4712
|
},
|
4710
|
-
/* @__PURE__ */
|
4713
|
+
/* @__PURE__ */ React44.createElement(
|
4711
4714
|
CheckboxElement,
|
4712
4715
|
{
|
4713
4716
|
...props,
|
@@ -4717,7 +4720,7 @@ var Checkbox = ({
|
|
4717
4720
|
id
|
4718
4721
|
}
|
4719
4722
|
),
|
4720
|
-
(label || helperText) && /* @__PURE__ */
|
4723
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
4721
4724
|
"label",
|
4722
4725
|
{
|
4723
4726
|
htmlFor: id,
|
@@ -4731,7 +4734,7 @@ var Checkbox = ({
|
|
4731
4734
|
}
|
4732
4735
|
},
|
4733
4736
|
label
|
4734
|
-
), sublabel && /* @__PURE__ */
|
4737
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
4735
4738
|
"label",
|
4736
4739
|
{
|
4737
4740
|
htmlFor: id,
|
@@ -4741,7 +4744,7 @@ var Checkbox = ({
|
|
4741
4744
|
)
|
4742
4745
|
},
|
4743
4746
|
sublabel
|
4744
|
-
), helperText && !disabled && /* @__PURE__ */
|
4747
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
4745
4748
|
"label",
|
4746
4749
|
{
|
4747
4750
|
htmlFor: id,
|
@@ -4754,7 +4757,7 @@ var Checkbox = ({
|
|
4754
4757
|
))
|
4755
4758
|
);
|
4756
4759
|
};
|
4757
|
-
var CheckboxElement =
|
4760
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4758
4761
|
let checkboxRadius = {
|
4759
4762
|
none: "hawa-rounded-none",
|
4760
4763
|
inherit: "hawa-rounded-sm",
|
@@ -4776,7 +4779,7 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4776
4779
|
lg: "1em",
|
4777
4780
|
xl: "1.25em"
|
4778
4781
|
};
|
4779
|
-
return /* @__PURE__ */
|
4782
|
+
return /* @__PURE__ */ React44.createElement(
|
4780
4783
|
CheckboxPrimitive.Root,
|
4781
4784
|
{
|
4782
4785
|
ref,
|
@@ -4788,14 +4791,14 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4788
4791
|
),
|
4789
4792
|
...props
|
4790
4793
|
},
|
4791
|
-
/* @__PURE__ */
|
4794
|
+
/* @__PURE__ */ React44.createElement(
|
4792
4795
|
CheckboxPrimitive.Indicator,
|
4793
4796
|
{
|
4794
4797
|
className: cn(
|
4795
4798
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4796
4799
|
)
|
4797
4800
|
},
|
4798
|
-
/* @__PURE__ */
|
4801
|
+
/* @__PURE__ */ React44.createElement(
|
4799
4802
|
"svg",
|
4800
4803
|
{
|
4801
4804
|
"aria-label": "Check Mark",
|
@@ -4806,7 +4809,7 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4806
4809
|
height: checkboxIndicatorSizes[size],
|
4807
4810
|
width: checkboxIndicatorSizes[size]
|
4808
4811
|
},
|
4809
|
-
/* @__PURE__ */
|
4812
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
4810
4813
|
),
|
4811
4814
|
" "
|
4812
4815
|
)
|
@@ -4815,9 +4818,9 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4815
4818
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4816
4819
|
|
4817
4820
|
// elements/progress/Progress.tsx
|
4818
|
-
var
|
4821
|
+
var React45 = __toESM(require("react"));
|
4819
4822
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4820
|
-
var Progress =
|
4823
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
4821
4824
|
ProgressPrimitive.Root,
|
4822
4825
|
{
|
4823
4826
|
ref,
|
@@ -4827,7 +4830,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4827
4830
|
),
|
4828
4831
|
...props
|
4829
4832
|
},
|
4830
|
-
/* @__PURE__ */
|
4833
|
+
/* @__PURE__ */ React45.createElement(
|
4831
4834
|
ProgressPrimitive.Indicator,
|
4832
4835
|
{
|
4833
4836
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4838,7 +4841,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4838
4841
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4839
4842
|
|
4840
4843
|
// elements/breadcrumb/Breadcrumb.tsx
|
4841
|
-
var
|
4844
|
+
var import_react31 = __toESM(require("react"));
|
4842
4845
|
var Breadcrumb = ({
|
4843
4846
|
breadcrumbLinks,
|
4844
4847
|
separator = ">",
|
@@ -4849,7 +4852,7 @@ var Breadcrumb = ({
|
|
4849
4852
|
small: "hawa-text-sm",
|
4850
4853
|
xs: "hawa-text-xs"
|
4851
4854
|
};
|
4852
|
-
return /* @__PURE__ */
|
4855
|
+
return /* @__PURE__ */ import_react31.default.createElement(
|
4853
4856
|
"div",
|
4854
4857
|
{
|
4855
4858
|
className: cn(
|
@@ -4857,13 +4860,13 @@ var Breadcrumb = ({
|
|
4857
4860
|
textStyles[size]
|
4858
4861
|
)
|
4859
4862
|
},
|
4860
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4863
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react31.default.createElement(
|
4861
4864
|
"div",
|
4862
4865
|
{
|
4863
4866
|
key: index,
|
4864
4867
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4865
4868
|
},
|
4866
|
-
/* @__PURE__ */
|
4869
|
+
/* @__PURE__ */ import_react31.default.createElement(
|
4867
4870
|
"a",
|
4868
4871
|
{
|
4869
4872
|
href: singleBreadcrumbLink.href,
|
@@ -4871,49 +4874,49 @@ var Breadcrumb = ({
|
|
4871
4874
|
},
|
4872
4875
|
singleBreadcrumbLink.label
|
4873
4876
|
),
|
4874
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4877
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react31.default.createElement("div", null, separator) : /* @__PURE__ */ import_react31.default.createElement("div", null, separator) : null
|
4875
4878
|
))
|
4876
4879
|
);
|
4877
4880
|
};
|
4878
4881
|
|
4879
4882
|
// elements/appStores/AppStores.tsx
|
4880
|
-
var
|
4883
|
+
var import_react32 = __toESM(require("react"));
|
4881
4884
|
var AppStores = (props) => {
|
4882
|
-
return /* @__PURE__ */
|
4885
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react32.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react32.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react32.default.createElement(
|
4883
4886
|
"path",
|
4884
4887
|
{
|
4885
4888
|
fill: "currentColor",
|
4886
4889
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
4887
4890
|
}
|
4888
|
-
))), /* @__PURE__ */
|
4891
|
+
))), /* @__PURE__ */ import_react32.default.createElement("div", null, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react32.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react32.default.createElement(
|
4889
4892
|
"path",
|
4890
4893
|
{
|
4891
4894
|
fill: "#FFD400",
|
4892
4895
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
4893
4896
|
}
|
4894
|
-
), /* @__PURE__ */
|
4897
|
+
), /* @__PURE__ */ import_react32.default.createElement(
|
4895
4898
|
"path",
|
4896
4899
|
{
|
4897
4900
|
fill: "#FF3333",
|
4898
4901
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
4899
4902
|
}
|
4900
|
-
), /* @__PURE__ */
|
4903
|
+
), /* @__PURE__ */ import_react32.default.createElement(
|
4901
4904
|
"path",
|
4902
4905
|
{
|
4903
4906
|
fill: "#48FF48",
|
4904
4907
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
4905
4908
|
}
|
4906
|
-
), /* @__PURE__ */
|
4909
|
+
), /* @__PURE__ */ import_react32.default.createElement(
|
4907
4910
|
"path",
|
4908
4911
|
{
|
4909
4912
|
fill: "#3BCCFF",
|
4910
4913
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
4911
4914
|
}
|
4912
|
-
))), /* @__PURE__ */
|
4915
|
+
))), /* @__PURE__ */ import_react32.default.createElement("div", null, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
4913
4916
|
};
|
4914
4917
|
|
4915
4918
|
// elements/badge/Badge.tsx
|
4916
|
-
var
|
4919
|
+
var import_react33 = __toESM(require("react"));
|
4917
4920
|
var Badge = ({
|
4918
4921
|
anchor,
|
4919
4922
|
position = "right",
|
@@ -4921,14 +4924,14 @@ var Badge = ({
|
|
4921
4924
|
text,
|
4922
4925
|
className
|
4923
4926
|
}) => {
|
4924
|
-
const [badgePosition, setBadgePosition] = (0,
|
4925
|
-
const indicatorRef = (0,
|
4927
|
+
const [badgePosition, setBadgePosition] = (0, import_react33.useState)(null);
|
4928
|
+
const indicatorRef = (0, import_react33.useRef)(null);
|
4926
4929
|
const sizeStyles2 = {
|
4927
4930
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
4928
4931
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
4929
4932
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
4930
4933
|
};
|
4931
|
-
(0,
|
4934
|
+
(0, import_react33.useEffect)(() => {
|
4932
4935
|
const handlePositioning = () => {
|
4933
4936
|
var _a;
|
4934
4937
|
if (anchor.current && indicatorRef.current) {
|
@@ -4951,7 +4954,7 @@ var Badge = ({
|
|
4951
4954
|
window.removeEventListener("resize", handlePositioning);
|
4952
4955
|
};
|
4953
4956
|
}, [anchor]);
|
4954
|
-
return /* @__PURE__ */
|
4957
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react33.default.createElement(
|
4955
4958
|
"div",
|
4956
4959
|
{
|
4957
4960
|
style: {
|
@@ -4976,8 +4979,8 @@ var BadgedComponent = ({
|
|
4976
4979
|
size,
|
4977
4980
|
text
|
4978
4981
|
}) => {
|
4979
|
-
const ref = (0,
|
4980
|
-
return /* @__PURE__ */
|
4982
|
+
const ref = (0, import_react33.useRef)(null);
|
4983
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react33.default.createElement(
|
4981
4984
|
Badge,
|
4982
4985
|
{
|
4983
4986
|
size,
|
@@ -4990,7 +4993,7 @@ var BadgedComponent = ({
|
|
4990
4993
|
};
|
4991
4994
|
|
4992
4995
|
// elements/phoneInput/PhoneInput.tsx
|
4993
|
-
var
|
4996
|
+
var import_react34 = __toESM(require("react"));
|
4994
4997
|
|
4995
4998
|
// countries.ts
|
4996
4999
|
var countries = [
|
@@ -6691,9 +6694,9 @@ var PhoneInput = ({
|
|
6691
6694
|
inputProps,
|
6692
6695
|
...props
|
6693
6696
|
}) => {
|
6694
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6695
|
-
const [countryCode, setCountryCode] = (0,
|
6696
|
-
const inputRef = (0,
|
6697
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react34.useState)("");
|
6698
|
+
const [countryCode, setCountryCode] = (0, import_react34.useState)(props.preferredCountry);
|
6699
|
+
const inputRef = (0, import_react34.useRef)(null);
|
6697
6700
|
const handleInputChange = (e) => {
|
6698
6701
|
const validChars = /^[0-9-()]+$/;
|
6699
6702
|
const input = e.target.value;
|
@@ -6706,7 +6709,7 @@ var PhoneInput = ({
|
|
6706
6709
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6707
6710
|
}
|
6708
6711
|
};
|
6709
|
-
return /* @__PURE__ */
|
6712
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react34.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react34.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react34.default.createElement(
|
6710
6713
|
Select,
|
6711
6714
|
{
|
6712
6715
|
phoneCode: true,
|
@@ -6722,7 +6725,7 @@ var PhoneInput = ({
|
|
6722
6725
|
value: countryCode == null ? void 0 : countryCode.label,
|
6723
6726
|
defaultValue: props.preferredCountry
|
6724
6727
|
}
|
6725
|
-
), /* @__PURE__ */
|
6728
|
+
), /* @__PURE__ */ import_react34.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react34.default.createElement(
|
6726
6729
|
"input",
|
6727
6730
|
{
|
6728
6731
|
type: "tel",
|
@@ -6736,7 +6739,7 @@ var PhoneInput = ({
|
|
6736
6739
|
),
|
6737
6740
|
...inputProps
|
6738
6741
|
}
|
6739
|
-
))), /* @__PURE__ */
|
6742
|
+
))), /* @__PURE__ */ import_react34.default.createElement(
|
6740
6743
|
"p",
|
6741
6744
|
{
|
6742
6745
|
className: cn(
|
@@ -6749,7 +6752,7 @@ var PhoneInput = ({
|
|
6749
6752
|
};
|
6750
6753
|
|
6751
6754
|
// elements/pinInput/PinInput.tsx
|
6752
|
-
var
|
6755
|
+
var import_react35 = __toESM(require("react"));
|
6753
6756
|
var PinInput = ({
|
6754
6757
|
label,
|
6755
6758
|
icon,
|
@@ -6759,7 +6762,7 @@ var PinInput = ({
|
|
6759
6762
|
inputProps,
|
6760
6763
|
...props
|
6761
6764
|
}) => {
|
6762
|
-
const [pin, setPin] = (0,
|
6765
|
+
const [pin, setPin] = (0, import_react35.useState)(Array.from(Array(digits)));
|
6763
6766
|
const handleKeyDown = (e, index) => {
|
6764
6767
|
let backTo = 0;
|
6765
6768
|
if (e.key === "Backspace") {
|
@@ -6768,7 +6771,7 @@ var PinInput = ({
|
|
6768
6771
|
previousInput == null ? void 0 : previousInput.focus();
|
6769
6772
|
}
|
6770
6773
|
};
|
6771
|
-
(0,
|
6774
|
+
(0, import_react35.useEffect)(() => {
|
6772
6775
|
let unfilled = pin.includes(void 0);
|
6773
6776
|
if (!unfilled && getPins) {
|
6774
6777
|
getPins(pin);
|
@@ -6793,13 +6796,13 @@ var PinInput = ({
|
|
6793
6796
|
}
|
6794
6797
|
}
|
6795
6798
|
};
|
6796
|
-
return /* @__PURE__ */
|
6799
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react35.default.createElement(
|
6797
6800
|
"div",
|
6798
6801
|
{
|
6799
6802
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6800
6803
|
dir: "ltr"
|
6801
6804
|
},
|
6802
|
-
pin.map((value, index) => /* @__PURE__ */
|
6805
|
+
pin.map((value, index) => /* @__PURE__ */ import_react35.default.createElement(
|
6803
6806
|
"input",
|
6804
6807
|
{
|
6805
6808
|
key: index,
|
@@ -6819,7 +6822,7 @@ var PinInput = ({
|
|
6819
6822
|
...inputProps
|
6820
6823
|
}
|
6821
6824
|
))
|
6822
|
-
), /* @__PURE__ */
|
6825
|
+
), /* @__PURE__ */ import_react35.default.createElement(
|
6823
6826
|
"p",
|
6824
6827
|
{
|
6825
6828
|
className: cn(
|
@@ -6832,30 +6835,30 @@ var PinInput = ({
|
|
6832
6835
|
};
|
6833
6836
|
|
6834
6837
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6835
|
-
var
|
6838
|
+
var import_react36 = __toESM(require("react"));
|
6836
6839
|
var StopPropagationWrapper = (props) => {
|
6837
6840
|
const handleClick = (e) => {
|
6838
6841
|
e.stopPropagation();
|
6839
6842
|
};
|
6840
|
-
return /* @__PURE__ */
|
6843
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { onClick: handleClick }, props.children);
|
6841
6844
|
};
|
6842
6845
|
|
6843
6846
|
// elements/scrollArea/ScrollArea.tsx
|
6844
|
-
var
|
6847
|
+
var React52 = __toESM(require("react"));
|
6845
6848
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6846
|
-
var ScrollArea =
|
6849
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6847
6850
|
ScrollAreaPrimitive.Root,
|
6848
6851
|
{
|
6849
6852
|
ref,
|
6850
6853
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6851
6854
|
...props
|
6852
6855
|
},
|
6853
|
-
/* @__PURE__ */
|
6854
|
-
/* @__PURE__ */
|
6855
|
-
/* @__PURE__ */
|
6856
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6857
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
6858
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
6856
6859
|
));
|
6857
6860
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6858
|
-
var ScrollBar =
|
6861
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6859
6862
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6860
6863
|
{
|
6861
6864
|
ref,
|
@@ -6868,7 +6871,7 @@ var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6868
6871
|
),
|
6869
6872
|
...props
|
6870
6873
|
},
|
6871
|
-
/* @__PURE__ */
|
6874
|
+
/* @__PURE__ */ React52.createElement(
|
6872
6875
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6873
6876
|
{
|
6874
6877
|
className: cn(
|
@@ -6881,7 +6884,7 @@ var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6881
6884
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6882
6885
|
|
6883
6886
|
// elements/colorPicker/ColorPicker.tsx
|
6884
|
-
var
|
6887
|
+
var import_react37 = __toESM(require("react"));
|
6885
6888
|
var ColorPicker = ({
|
6886
6889
|
containerProps,
|
6887
6890
|
colorPickerProps,
|
@@ -6892,8 +6895,8 @@ var ColorPicker = ({
|
|
6892
6895
|
preview = false,
|
6893
6896
|
...props
|
6894
6897
|
}) => {
|
6895
|
-
const [selectedColor, setSelectedColor] = (0,
|
6896
|
-
(0,
|
6898
|
+
const [selectedColor, setSelectedColor] = (0, import_react37.useState)(props.color);
|
6899
|
+
(0, import_react37.useEffect)(() => {
|
6897
6900
|
if (selectedColor && selectedColor[0] !== "#") {
|
6898
6901
|
setSelectedColor(`#${selectedColor}`);
|
6899
6902
|
}
|
@@ -6910,13 +6913,13 @@ var ColorPicker = ({
|
|
6910
6913
|
props.handleChange(e);
|
6911
6914
|
}
|
6912
6915
|
};
|
6913
|
-
return /* @__PURE__ */
|
6916
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react37.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react37.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react37.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react37.default.createElement(
|
6914
6917
|
"div",
|
6915
6918
|
{
|
6916
6919
|
style: { height: 40, backgroundColor: selectedColor },
|
6917
6920
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
6918
6921
|
},
|
6919
|
-
/* @__PURE__ */
|
6922
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6920
6923
|
"input",
|
6921
6924
|
{
|
6922
6925
|
disabled: preview,
|
@@ -6935,7 +6938,7 @@ var ColorPicker = ({
|
|
6935
6938
|
...colorPickerProps
|
6936
6939
|
}
|
6937
6940
|
)
|
6938
|
-
), /* @__PURE__ */
|
6941
|
+
), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react37.default.createElement(
|
6939
6942
|
"input",
|
6940
6943
|
{
|
6941
6944
|
disabled: preview,
|
@@ -6954,7 +6957,7 @@ var ColorPicker = ({
|
|
6954
6957
|
},
|
6955
6958
|
...textInputProps
|
6956
6959
|
}
|
6957
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
6960
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react37.default.createElement(
|
6958
6961
|
"p",
|
6959
6962
|
{
|
6960
6963
|
className: cn(
|
@@ -6967,7 +6970,7 @@ var ColorPicker = ({
|
|
6967
6970
|
};
|
6968
6971
|
|
6969
6972
|
// elements/progressCircle/ProgressCircle.tsx
|
6970
|
-
var
|
6973
|
+
var import_react38 = __toESM(require("react"));
|
6971
6974
|
var size2config = {
|
6972
6975
|
xs: { radius: 15, strokeWidth: 3 },
|
6973
6976
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -6984,7 +6987,7 @@ function getLimitedValue(input) {
|
|
6984
6987
|
return input;
|
6985
6988
|
}
|
6986
6989
|
}
|
6987
|
-
var ProgressCircle =
|
6990
|
+
var ProgressCircle = import_react38.default.forwardRef((props, ref) => {
|
6988
6991
|
const {
|
6989
6992
|
value: inputValue,
|
6990
6993
|
size = "md",
|
@@ -7004,7 +7007,7 @@ var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
|
7004
7007
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7005
7008
|
const strokeDashoffset = value / 100 * circumference;
|
7006
7009
|
const offset = circumference - strokeDashoffset;
|
7007
|
-
return /* @__PURE__ */
|
7010
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(
|
7008
7011
|
"div",
|
7009
7012
|
{
|
7010
7013
|
ref,
|
@@ -7013,7 +7016,7 @@ var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
|
7013
7016
|
className
|
7014
7017
|
)
|
7015
7018
|
},
|
7016
|
-
/* @__PURE__ */
|
7019
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
7017
7020
|
"svg",
|
7018
7021
|
{
|
7019
7022
|
width: radius * 2,
|
@@ -7021,7 +7024,7 @@ var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
|
7021
7024
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7022
7025
|
className: "hawa-rotate-180 hawa-transform"
|
7023
7026
|
},
|
7024
|
-
/* @__PURE__ */
|
7027
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
7025
7028
|
"circle",
|
7026
7029
|
{
|
7027
7030
|
r: normalizedRadius,
|
@@ -7037,7 +7040,7 @@ var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
|
7037
7040
|
)
|
7038
7041
|
}
|
7039
7042
|
),
|
7040
|
-
value > 0 ? /* @__PURE__ */
|
7043
|
+
value > 0 ? /* @__PURE__ */ import_react38.default.createElement(
|
7041
7044
|
"circle",
|
7042
7045
|
{
|
7043
7046
|
r: normalizedRadius,
|
@@ -7057,24 +7060,24 @@ var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
|
7057
7060
|
}
|
7058
7061
|
) : null
|
7059
7062
|
),
|
7060
|
-
/* @__PURE__ */
|
7063
|
+
/* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7061
7064
|
));
|
7062
7065
|
});
|
7063
7066
|
ProgressCircle.displayName = "ProgressCircle";
|
7064
7067
|
|
7065
7068
|
// elements/pagination/Pagination.tsx
|
7066
|
-
var
|
7069
|
+
var import_react39 = __toESM(require("react"));
|
7067
7070
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7068
7071
|
var Pagination = ({
|
7069
7072
|
direction,
|
7070
7073
|
totalPages,
|
7071
7074
|
currentPage
|
7072
7075
|
}) => {
|
7073
|
-
const [page, setPage] =
|
7076
|
+
const [page, setPage] = import_react39.default.useState(currentPage || 0);
|
7074
7077
|
const handlePageChange = (page2) => {
|
7075
7078
|
setPage(page2);
|
7076
7079
|
};
|
7077
|
-
return /* @__PURE__ */
|
7080
|
+
return /* @__PURE__ */ import_react39.default.createElement(
|
7078
7081
|
import_react_headless_pagination.Pagination,
|
7079
7082
|
{
|
7080
7083
|
totalPages,
|
@@ -7086,10 +7089,10 @@ var Pagination = ({
|
|
7086
7089
|
truncableText: "...",
|
7087
7090
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7088
7091
|
},
|
7089
|
-
/* @__PURE__ */
|
7092
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7090
7093
|
import_react_headless_pagination.Pagination.PrevButton,
|
7091
7094
|
{
|
7092
|
-
as: /* @__PURE__ */
|
7095
|
+
as: /* @__PURE__ */ import_react39.default.createElement(
|
7093
7096
|
"button",
|
7094
7097
|
{
|
7095
7098
|
"aria-label": "Previous Table Page",
|
@@ -7099,7 +7102,7 @@ var Pagination = ({
|
|
7099
7102
|
),
|
7100
7103
|
style: { minWidth: 36 }
|
7101
7104
|
},
|
7102
|
-
/* @__PURE__ */
|
7105
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7103
7106
|
"svg",
|
7104
7107
|
{
|
7105
7108
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7112,7 +7115,7 @@ var Pagination = ({
|
|
7112
7115
|
strokeLinecap: "round",
|
7113
7116
|
strokeLinejoin: "round"
|
7114
7117
|
},
|
7115
|
-
/* @__PURE__ */
|
7118
|
+
/* @__PURE__ */ import_react39.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7116
7119
|
)
|
7117
7120
|
),
|
7118
7121
|
className: cn(
|
@@ -7125,17 +7128,17 @@ var Pagination = ({
|
|
7125
7128
|
},
|
7126
7129
|
"Previous"
|
7127
7130
|
),
|
7128
|
-
/* @__PURE__ */
|
7131
|
+
/* @__PURE__ */ import_react39.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react39.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react39.default.createElement(
|
7129
7132
|
import_react_headless_pagination.Pagination.PageButton,
|
7130
7133
|
{
|
7131
7134
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7132
7135
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7133
7136
|
}
|
7134
7137
|
))),
|
7135
|
-
/* @__PURE__ */
|
7138
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7136
7139
|
import_react_headless_pagination.Pagination.NextButton,
|
7137
7140
|
{
|
7138
|
-
as: /* @__PURE__ */
|
7141
|
+
as: /* @__PURE__ */ import_react39.default.createElement(
|
7139
7142
|
"button",
|
7140
7143
|
{
|
7141
7144
|
"aria-label": "Previous Table Page",
|
@@ -7145,7 +7148,7 @@ var Pagination = ({
|
|
7145
7148
|
),
|
7146
7149
|
style: { minWidth: 36 }
|
7147
7150
|
},
|
7148
|
-
/* @__PURE__ */
|
7151
|
+
/* @__PURE__ */ import_react39.default.createElement(
|
7149
7152
|
"svg",
|
7150
7153
|
{
|
7151
7154
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7158,7 +7161,7 @@ var Pagination = ({
|
|
7158
7161
|
strokeLinecap: "round",
|
7159
7162
|
strokeLinejoin: "round"
|
7160
7163
|
},
|
7161
|
-
/* @__PURE__ */
|
7164
|
+
/* @__PURE__ */ import_react39.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7162
7165
|
)
|
7163
7166
|
),
|
7164
7167
|
className: cn(
|
@@ -7175,14 +7178,14 @@ var Pagination = ({
|
|
7175
7178
|
};
|
7176
7179
|
|
7177
7180
|
// elements/passwordInput/PasswordInput.tsx
|
7178
|
-
var
|
7181
|
+
var import_react43 = __toESM(require("react"));
|
7179
7182
|
|
7180
7183
|
// icons/Emojis.tsx
|
7181
|
-
var
|
7184
|
+
var import_react40 = __toESM(require("react"));
|
7182
7185
|
|
7183
7186
|
// icons/InputIcons.tsx
|
7184
|
-
var
|
7185
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7187
|
+
var import_react41 = __toESM(require("react"));
|
7188
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react41.default.createElement(
|
7186
7189
|
"svg",
|
7187
7190
|
{
|
7188
7191
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7193,10 +7196,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElement("d
|
|
7193
7196
|
strokeLinecap: "round",
|
7194
7197
|
strokeLinejoin: "round"
|
7195
7198
|
},
|
7196
|
-
/* @__PURE__ */
|
7197
|
-
/* @__PURE__ */
|
7199
|
+
/* @__PURE__ */ import_react41.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7200
|
+
/* @__PURE__ */ import_react41.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7198
7201
|
));
|
7199
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7202
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react41.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react41.default.createElement(
|
7200
7203
|
"svg",
|
7201
7204
|
{
|
7202
7205
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7207,20 +7210,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElem
|
|
7207
7210
|
strokeLinecap: "round",
|
7208
7211
|
strokeLinejoin: "round"
|
7209
7212
|
},
|
7210
|
-
/* @__PURE__ */
|
7211
|
-
/* @__PURE__ */
|
7212
|
-
/* @__PURE__ */
|
7213
|
-
/* @__PURE__ */
|
7213
|
+
/* @__PURE__ */ import_react41.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7214
|
+
/* @__PURE__ */ import_react41.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7215
|
+
/* @__PURE__ */ import_react41.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7216
|
+
/* @__PURE__ */ import_react41.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7214
7217
|
));
|
7215
7218
|
|
7216
7219
|
// icons/CommonIcons.tsx
|
7217
|
-
var
|
7220
|
+
var import_react42 = __toESM(require("react"));
|
7218
7221
|
var CheckMark = ({ size = "default", className }) => {
|
7219
7222
|
let sizeStyles2 = {
|
7220
7223
|
default: "hawa-h-5 hawa-w-5",
|
7221
7224
|
sm: "hawa-h-3 hawa-w-3"
|
7222
7225
|
};
|
7223
|
-
return /* @__PURE__ */
|
7226
|
+
return /* @__PURE__ */ import_react42.default.createElement(
|
7224
7227
|
"svg",
|
7225
7228
|
{
|
7226
7229
|
className: cn(sizeStyles2[size], className),
|
@@ -7228,7 +7231,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7228
7231
|
fill: "currentColor",
|
7229
7232
|
viewBox: "0 0 20 20"
|
7230
7233
|
},
|
7231
|
-
/* @__PURE__ */
|
7234
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7232
7235
|
"path",
|
7233
7236
|
{
|
7234
7237
|
fillRule: "evenodd",
|
@@ -7243,7 +7246,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7243
7246
|
default: "hawa-h-5 hawa-w-5",
|
7244
7247
|
sm: "hawa-h-3 hawa-w-3"
|
7245
7248
|
};
|
7246
|
-
return /* @__PURE__ */
|
7249
|
+
return /* @__PURE__ */ import_react42.default.createElement(
|
7247
7250
|
"svg",
|
7248
7251
|
{
|
7249
7252
|
className: cn(sizeStyles2[size], className),
|
@@ -7251,7 +7254,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7251
7254
|
fill: "currentColor",
|
7252
7255
|
viewBox: "0 0 20 20"
|
7253
7256
|
},
|
7254
|
-
/* @__PURE__ */
|
7257
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7255
7258
|
"path",
|
7256
7259
|
{
|
7257
7260
|
fillRule: "evenodd",
|
@@ -7289,7 +7292,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7289
7292
|
strong: "80%",
|
7290
7293
|
"very-strong": "100%"
|
7291
7294
|
}[currentStrengthLevel];
|
7292
|
-
return /* @__PURE__ */
|
7295
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react43.default.createElement(
|
7293
7296
|
"div",
|
7294
7297
|
{
|
7295
7298
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7301,16 +7304,16 @@ var PasswordInput = ({
|
|
7301
7304
|
hidePopover,
|
7302
7305
|
...props
|
7303
7306
|
}) => {
|
7304
|
-
const [inputValue, setInputValue] = (0,
|
7305
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7306
|
-
const [currentStr, setCurrentStr] = (0,
|
7307
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7308
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7309
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7310
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7311
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7312
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7313
|
-
(0,
|
7307
|
+
const [inputValue, setInputValue] = (0, import_react43.useState)("");
|
7308
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react43.useState)(false);
|
7309
|
+
const [currentStr, setCurrentStr] = (0, import_react43.useState)(0);
|
7310
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react43.useState)(false);
|
7311
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react43.useState)(false);
|
7312
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react43.useState)(false);
|
7313
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react43.useState)(false);
|
7314
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react43.useState)(false);
|
7315
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react43.useState)(false);
|
7316
|
+
(0, import_react43.useEffect)(() => {
|
7314
7317
|
const calculateStrength = () => {
|
7315
7318
|
let strengthScore = 0;
|
7316
7319
|
if (lengthCriteriaMet)
|
@@ -7349,7 +7352,7 @@ var PasswordInput = ({
|
|
7349
7352
|
setIsInputFocused(false);
|
7350
7353
|
};
|
7351
7354
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7352
|
-
return /* @__PURE__ */
|
7355
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", null, /* @__PURE__ */ import_react43.default.createElement(
|
7353
7356
|
Popover,
|
7354
7357
|
{
|
7355
7358
|
width: "trigger",
|
@@ -7358,7 +7361,7 @@ var PasswordInput = ({
|
|
7358
7361
|
onOpenChange: setIsInputFocused,
|
7359
7362
|
triggerProps: { asChild: true },
|
7360
7363
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7361
|
-
trigger: /* @__PURE__ */
|
7364
|
+
trigger: /* @__PURE__ */ import_react43.default.createElement(
|
7362
7365
|
"div",
|
7363
7366
|
{
|
7364
7367
|
onClick: (e) => {
|
@@ -7368,7 +7371,7 @@ var PasswordInput = ({
|
|
7368
7371
|
}
|
7369
7372
|
}
|
7370
7373
|
},
|
7371
|
-
/* @__PURE__ */
|
7374
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7372
7375
|
Input,
|
7373
7376
|
{
|
7374
7377
|
width: "full",
|
@@ -7378,27 +7381,27 @@ var PasswordInput = ({
|
|
7378
7381
|
onFocus: handleInputFocus,
|
7379
7382
|
onBlur: handleInputBlur,
|
7380
7383
|
type: passwordVisible ? "text" : "password",
|
7381
|
-
endIcon: /* @__PURE__ */
|
7384
|
+
endIcon: /* @__PURE__ */ import_react43.default.createElement(
|
7382
7385
|
"div",
|
7383
7386
|
{
|
7384
7387
|
className: "hawa-cursor-pointer",
|
7385
7388
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7386
7389
|
},
|
7387
|
-
passwordVisible ? /* @__PURE__ */
|
7390
|
+
passwordVisible ? /* @__PURE__ */ import_react43.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react43.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7388
7391
|
" "
|
7389
7392
|
)
|
7390
7393
|
}
|
7391
7394
|
)
|
7392
7395
|
)
|
7393
7396
|
},
|
7394
|
-
/* @__PURE__ */
|
7395
|
-
), /* @__PURE__ */
|
7397
|
+
/* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react43.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react43.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react43.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react43.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react43.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react43.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react43.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react43.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react43.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react43.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react43.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react43.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react43.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react43.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react43.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react43.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7398
|
+
), /* @__PURE__ */ import_react43.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7396
7399
|
};
|
7397
7400
|
|
7398
7401
|
// elements/slider/Slider.tsx
|
7399
|
-
var
|
7402
|
+
var React60 = __toESM(require("react"));
|
7400
7403
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7401
|
-
var Slider =
|
7404
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7402
7405
|
SliderPrimitive.Root,
|
7403
7406
|
{
|
7404
7407
|
ref,
|
@@ -7408,13 +7411,13 @@ var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7408
7411
|
),
|
7409
7412
|
...props
|
7410
7413
|
},
|
7411
|
-
/* @__PURE__ */
|
7412
|
-
/* @__PURE__ */
|
7414
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React60.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7415
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7413
7416
|
));
|
7414
7417
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7415
7418
|
|
7416
7419
|
// elements/simpleTable/SimpleTable.tsx
|
7417
|
-
var
|
7420
|
+
var React61 = __toESM(require("react"));
|
7418
7421
|
var import_react_table2 = require("@tanstack/react-table");
|
7419
7422
|
var SimpleTable = ({
|
7420
7423
|
columns,
|
@@ -7429,7 +7432,7 @@ var SimpleTable = ({
|
|
7429
7432
|
columns,
|
7430
7433
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7431
7434
|
});
|
7432
|
-
return /* @__PURE__ */
|
7435
|
+
return /* @__PURE__ */ React61.createElement(
|
7433
7436
|
"div",
|
7434
7437
|
{
|
7435
7438
|
className: cn(
|
@@ -7437,8 +7440,8 @@ var SimpleTable = ({
|
|
7437
7440
|
classNames
|
7438
7441
|
)
|
7439
7442
|
},
|
7440
|
-
props.isLoading ? /* @__PURE__ */
|
7441
|
-
return /* @__PURE__ */
|
7443
|
+
props.isLoading ? /* @__PURE__ */ React61.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React61.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React61.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React61.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React61.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7444
|
+
return /* @__PURE__ */ React61.createElement(
|
7442
7445
|
TableHead,
|
7443
7446
|
{
|
7444
7447
|
condensed: props.condensed,
|
@@ -7453,7 +7456,7 @@ var SimpleTable = ({
|
|
7453
7456
|
header.getContext()
|
7454
7457
|
)
|
7455
7458
|
);
|
7456
|
-
})))), /* @__PURE__ */
|
7459
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
7457
7460
|
TableRow,
|
7458
7461
|
{
|
7459
7462
|
key: row.id,
|
@@ -7461,7 +7464,7 @@ var SimpleTable = ({
|
|
7461
7464
|
},
|
7462
7465
|
row.getVisibleCells().map((cell) => {
|
7463
7466
|
var _a2;
|
7464
|
-
return /* @__PURE__ */
|
7467
|
+
return /* @__PURE__ */ React61.createElement(
|
7465
7468
|
TableCell,
|
7466
7469
|
{
|
7467
7470
|
dir: props.direction,
|
@@ -7477,7 +7480,7 @@ var SimpleTable = ({
|
|
7477
7480
|
)
|
7478
7481
|
);
|
7479
7482
|
})
|
7480
|
-
)) : /* @__PURE__ */
|
7483
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
7481
7484
|
TableCell,
|
7482
7485
|
{
|
7483
7486
|
colSpan: columns.length,
|
@@ -7489,12 +7492,12 @@ var SimpleTable = ({
|
|
7489
7492
|
};
|
7490
7493
|
|
7491
7494
|
// elements/separator/Separator.tsx
|
7492
|
-
var
|
7495
|
+
var React62 = __toESM(require("react"));
|
7493
7496
|
var Separator2 = ({
|
7494
7497
|
className,
|
7495
7498
|
orientation = "horizontal",
|
7496
7499
|
...props
|
7497
|
-
}) => /* @__PURE__ */
|
7500
|
+
}) => /* @__PURE__ */ React62.createElement(
|
7498
7501
|
"div",
|
7499
7502
|
{
|
7500
7503
|
className: cn(
|
@@ -7507,12 +7510,12 @@ var Separator2 = ({
|
|
7507
7510
|
);
|
7508
7511
|
|
7509
7512
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7510
|
-
var
|
7513
|
+
var import_react44 = __toESM(require("react"));
|
7511
7514
|
var ScrollIndicator = ({
|
7512
7515
|
anchor,
|
7513
7516
|
inContainer = false
|
7514
7517
|
}) => {
|
7515
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7518
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react44.useState)(0);
|
7516
7519
|
const onScroll = () => {
|
7517
7520
|
const scrollElement = anchor.current;
|
7518
7521
|
if (scrollElement) {
|
@@ -7523,7 +7526,7 @@ var ScrollIndicator = ({
|
|
7523
7526
|
setScrollPercentage(percentageScrolled);
|
7524
7527
|
}
|
7525
7528
|
};
|
7526
|
-
(0,
|
7529
|
+
(0, import_react44.useEffect)(() => {
|
7527
7530
|
if (!anchor.current)
|
7528
7531
|
return;
|
7529
7532
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7532,7 +7535,7 @@ var ScrollIndicator = ({
|
|
7532
7535
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7533
7536
|
};
|
7534
7537
|
}, [anchor]);
|
7535
|
-
return /* @__PURE__ */
|
7538
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
7536
7539
|
"div",
|
7537
7540
|
{
|
7538
7541
|
style: {
|
@@ -7548,11 +7551,11 @@ var ScrollIndicator = ({
|
|
7548
7551
|
};
|
7549
7552
|
|
7550
7553
|
// elements/codeBlock/CodeBlock.tsx
|
7551
|
-
var
|
7554
|
+
var import_react45 = __toESM(require("react"));
|
7552
7555
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7553
7556
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7554
7557
|
require("prismjs/components/prism-bash");
|
7555
|
-
var CopyIcon = () => /* @__PURE__ */
|
7558
|
+
var CopyIcon = () => /* @__PURE__ */ import_react45.default.createElement(
|
7556
7559
|
"svg",
|
7557
7560
|
{
|
7558
7561
|
"aria-label": "Copy",
|
@@ -7565,8 +7568,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
|
7565
7568
|
height: "1em",
|
7566
7569
|
width: "1em"
|
7567
7570
|
},
|
7568
|
-
/* @__PURE__ */
|
7569
|
-
/* @__PURE__ */
|
7571
|
+
/* @__PURE__ */ import_react45.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7572
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7570
7573
|
);
|
7571
7574
|
var CodeBlock = ({
|
7572
7575
|
tabs,
|
@@ -7580,7 +7583,7 @@ var CodeBlock = ({
|
|
7580
7583
|
...props
|
7581
7584
|
}) => {
|
7582
7585
|
const clipboard = useClipboard();
|
7583
|
-
const [selectedTab, setSelectedTab] = (0,
|
7586
|
+
const [selectedTab, setSelectedTab] = (0, import_react45.useState)(0);
|
7584
7587
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7585
7588
|
let widthStyles = {
|
7586
7589
|
full: "hawa-w-full",
|
@@ -7588,7 +7591,7 @@ var CodeBlock = ({
|
|
7588
7591
|
sm: "hawa-w-full hawa-max-w-sm",
|
7589
7592
|
xs: "hawa-w-full hawa-max-w-xs"
|
7590
7593
|
};
|
7591
|
-
return /* @__PURE__ */
|
7594
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7592
7595
|
"div",
|
7593
7596
|
{
|
7594
7597
|
className: cn(
|
@@ -7597,7 +7600,7 @@ var CodeBlock = ({
|
|
7597
7600
|
classNames == null ? void 0 : classNames.root
|
7598
7601
|
)
|
7599
7602
|
},
|
7600
|
-
fileName && /* @__PURE__ */
|
7603
|
+
fileName && /* @__PURE__ */ import_react45.default.createElement(
|
7601
7604
|
"div",
|
7602
7605
|
{
|
7603
7606
|
className: cn(
|
@@ -7606,7 +7609,7 @@ var CodeBlock = ({
|
|
7606
7609
|
classNames == null ? void 0 : classNames.fileName
|
7607
7610
|
)
|
7608
7611
|
},
|
7609
|
-
/* @__PURE__ */
|
7612
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7610
7613
|
"div",
|
7611
7614
|
{
|
7612
7615
|
className: cn(
|
@@ -7616,7 +7619,7 @@ var CodeBlock = ({
|
|
7616
7619
|
fileName
|
7617
7620
|
)
|
7618
7621
|
),
|
7619
|
-
tabs && /* @__PURE__ */
|
7622
|
+
tabs && /* @__PURE__ */ import_react45.default.createElement(
|
7620
7623
|
"div",
|
7621
7624
|
{
|
7622
7625
|
className: cn(
|
@@ -7625,7 +7628,7 @@ var CodeBlock = ({
|
|
7625
7628
|
classNames == null ? void 0 : classNames.tabs
|
7626
7629
|
)
|
7627
7630
|
},
|
7628
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7631
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react45.default.createElement(
|
7629
7632
|
"div",
|
7630
7633
|
{
|
7631
7634
|
key: i,
|
@@ -7634,7 +7637,7 @@ var CodeBlock = ({
|
|
7634
7637
|
classNames == null ? void 0 : classNames.tab
|
7635
7638
|
)
|
7636
7639
|
},
|
7637
|
-
/* @__PURE__ */
|
7640
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7638
7641
|
"div",
|
7639
7642
|
{
|
7640
7643
|
onClick: () => setSelectedTab(i),
|
@@ -7646,7 +7649,7 @@ var CodeBlock = ({
|
|
7646
7649
|
)
|
7647
7650
|
))
|
7648
7651
|
),
|
7649
|
-
/* @__PURE__ */
|
7652
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7650
7653
|
"div",
|
7651
7654
|
{
|
7652
7655
|
className: cn(
|
@@ -7656,22 +7659,22 @@ var CodeBlock = ({
|
|
7656
7659
|
"hawa-overflow-y-auto"
|
7657
7660
|
)
|
7658
7661
|
},
|
7659
|
-
/* @__PURE__ */
|
7662
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7660
7663
|
"div",
|
7661
7664
|
{
|
7662
7665
|
className: cn(
|
7663
7666
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7664
7667
|
)
|
7665
7668
|
},
|
7666
|
-
/* @__PURE__ */
|
7669
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7667
7670
|
Tooltip,
|
7668
7671
|
{
|
7669
7672
|
open: clipboard.copied,
|
7670
7673
|
side: "left",
|
7671
|
-
content: /* @__PURE__ */
|
7674
|
+
content: /* @__PURE__ */ import_react45.default.createElement("div", null, "Copied!"),
|
7672
7675
|
triggerProps: { asChild: true }
|
7673
7676
|
},
|
7674
|
-
/* @__PURE__ */
|
7677
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7675
7678
|
Button,
|
7676
7679
|
{
|
7677
7680
|
size: "smallIcon",
|
@@ -7679,18 +7682,18 @@ var CodeBlock = ({
|
|
7679
7682
|
variant: "outline",
|
7680
7683
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7681
7684
|
},
|
7682
|
-
/* @__PURE__ */
|
7685
|
+
/* @__PURE__ */ import_react45.default.createElement(CopyIcon, null)
|
7683
7686
|
)
|
7684
7687
|
)
|
7685
7688
|
),
|
7686
|
-
/* @__PURE__ */
|
7689
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7687
7690
|
import_prism_react_renderer.Highlight,
|
7688
7691
|
{
|
7689
7692
|
theme,
|
7690
7693
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7691
7694
|
language
|
7692
7695
|
},
|
7693
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7696
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react45.default.createElement(
|
7694
7697
|
"pre",
|
7695
7698
|
{
|
7696
7699
|
className: cn(
|
@@ -7700,7 +7703,7 @@ var CodeBlock = ({
|
|
7700
7703
|
wrapText && "hawa-text-wrap"
|
7701
7704
|
)
|
7702
7705
|
},
|
7703
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7706
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react45.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react45.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react45.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7704
7707
|
)
|
7705
7708
|
)
|
7706
7709
|
)
|
@@ -7708,7 +7711,7 @@ var CodeBlock = ({
|
|
7708
7711
|
};
|
7709
7712
|
|
7710
7713
|
// elements/carousel/Carousel.tsx
|
7711
|
-
var
|
7714
|
+
var import_react46 = __toESM(require("react"));
|
7712
7715
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7713
7716
|
var Carousel = ({
|
7714
7717
|
items,
|
@@ -7724,8 +7727,8 @@ var Carousel = ({
|
|
7724
7727
|
direction,
|
7725
7728
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7726
7729
|
});
|
7727
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7728
|
-
(0,
|
7730
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react46.useState)(0);
|
7731
|
+
(0, import_react46.useEffect)(() => {
|
7729
7732
|
function selectHandler() {
|
7730
7733
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7731
7734
|
setSelectedIndex(index || 0);
|
@@ -7735,7 +7738,7 @@ var Carousel = ({
|
|
7735
7738
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7736
7739
|
};
|
7737
7740
|
}, [emblaApi]);
|
7738
|
-
(0,
|
7741
|
+
(0, import_react46.useEffect)(() => {
|
7739
7742
|
let autoplayTimer;
|
7740
7743
|
if (autoplay && emblaApi) {
|
7741
7744
|
autoplayTimer = setInterval(() => {
|
@@ -7747,17 +7750,17 @@ var Carousel = ({
|
|
7747
7750
|
clearInterval(autoplayTimer);
|
7748
7751
|
};
|
7749
7752
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7750
|
-
const length =
|
7753
|
+
const length = import_react46.default.Children.count(items);
|
7751
7754
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7752
7755
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7753
|
-
return /* @__PURE__ */
|
7756
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react46.default.createElement(
|
7754
7757
|
"div",
|
7755
7758
|
{
|
7756
7759
|
key: i,
|
7757
7760
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7758
7761
|
},
|
7759
7762
|
item
|
7760
|
-
))))), /* @__PURE__ */
|
7763
|
+
))))), /* @__PURE__ */ import_react46.default.createElement(
|
7761
7764
|
Dots,
|
7762
7765
|
{
|
7763
7766
|
direction,
|
@@ -7765,7 +7768,7 @@ var Carousel = ({
|
|
7765
7768
|
selectedIndex,
|
7766
7769
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7767
7770
|
}
|
7768
|
-
), showArrows && /* @__PURE__ */
|
7771
|
+
), showArrows && /* @__PURE__ */ import_react46.default.createElement(
|
7769
7772
|
CarouselControls,
|
7770
7773
|
{
|
7771
7774
|
canScrollNext,
|
@@ -7782,7 +7785,7 @@ var Dots = ({
|
|
7782
7785
|
direction
|
7783
7786
|
}) => {
|
7784
7787
|
const arr = new Array(itemsLength).fill(0);
|
7785
|
-
return /* @__PURE__ */
|
7788
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7786
7789
|
"div",
|
7787
7790
|
{
|
7788
7791
|
dir: direction,
|
@@ -7790,7 +7793,7 @@ var Dots = ({
|
|
7790
7793
|
},
|
7791
7794
|
arr.map((_, index) => {
|
7792
7795
|
const selected = index === selectedIndex;
|
7793
|
-
return /* @__PURE__ */
|
7796
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
7794
7797
|
"div",
|
7795
7798
|
{
|
7796
7799
|
key: index,
|
@@ -7805,7 +7808,7 @@ var Dots = ({
|
|
7805
7808
|
);
|
7806
7809
|
};
|
7807
7810
|
var CarouselControls = (props) => {
|
7808
|
-
return /* @__PURE__ */
|
7811
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react46.default.createElement(
|
7809
7812
|
"button",
|
7810
7813
|
{
|
7811
7814
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7816,7 +7819,7 @@ var CarouselControls = (props) => {
|
|
7816
7819
|
props.canScrollPrev && "hawa-bg-primary"
|
7817
7820
|
)
|
7818
7821
|
},
|
7819
|
-
/* @__PURE__ */
|
7822
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7820
7823
|
"svg",
|
7821
7824
|
{
|
7822
7825
|
"aria-label": "Chevron Right Icon",
|
@@ -7825,9 +7828,9 @@ var CarouselControls = (props) => {
|
|
7825
7828
|
viewBox: "0 0 16 16",
|
7826
7829
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7827
7830
|
},
|
7828
|
-
/* @__PURE__ */
|
7831
|
+
/* @__PURE__ */ import_react46.default.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" })
|
7829
7832
|
)
|
7830
|
-
), /* @__PURE__ */
|
7833
|
+
), /* @__PURE__ */ import_react46.default.createElement(
|
7831
7834
|
"button",
|
7832
7835
|
{
|
7833
7836
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7838,7 +7841,7 @@ var CarouselControls = (props) => {
|
|
7838
7841
|
props.canScrollNext && "hawa-bg-primary"
|
7839
7842
|
)
|
7840
7843
|
},
|
7841
|
-
/* @__PURE__ */
|
7844
|
+
/* @__PURE__ */ import_react46.default.createElement(
|
7842
7845
|
"svg",
|
7843
7846
|
{
|
7844
7847
|
"aria-label": "Chevron Right Icon",
|
@@ -7847,19 +7850,19 @@ var CarouselControls = (props) => {
|
|
7847
7850
|
viewBox: "0 0 16 16",
|
7848
7851
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7849
7852
|
},
|
7850
|
-
/* @__PURE__ */
|
7853
|
+
/* @__PURE__ */ import_react46.default.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" })
|
7851
7854
|
)
|
7852
7855
|
));
|
7853
7856
|
};
|
7854
7857
|
|
7855
7858
|
// elements/count/Count.tsx
|
7856
|
-
var
|
7859
|
+
var import_react47 = __toESM(require("react"));
|
7857
7860
|
var Count = (props) => {
|
7858
|
-
return /* @__PURE__ */
|
7861
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react47.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7859
7862
|
};
|
7860
7863
|
|
7861
7864
|
// elements/toast/Toast.tsx
|
7862
|
-
var
|
7865
|
+
var React67 = __toESM(require("react"));
|
7863
7866
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7864
7867
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7865
7868
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7887,7 +7890,7 @@ var sizeStyles = {
|
|
7887
7890
|
sm: "hawa-text-xs"
|
7888
7891
|
};
|
7889
7892
|
var ToastProvider = ToastPrimitives.Provider;
|
7890
|
-
var ToastViewport =
|
7893
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7891
7894
|
ToastPrimitives.Viewport,
|
7892
7895
|
{
|
7893
7896
|
ref,
|
@@ -7899,8 +7902,8 @@ var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7899
7902
|
}
|
7900
7903
|
));
|
7901
7904
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7902
|
-
var Toast =
|
7903
|
-
return /* @__PURE__ */
|
7905
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7906
|
+
return /* @__PURE__ */ React67.createElement(
|
7904
7907
|
ToastPrimitives.Root,
|
7905
7908
|
{
|
7906
7909
|
ref,
|
@@ -7915,8 +7918,8 @@ var Toast = React66.forwardRef(({ className, variant, severity = "none", directi
|
|
7915
7918
|
);
|
7916
7919
|
});
|
7917
7920
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7918
|
-
var ToastAction =
|
7919
|
-
return /* @__PURE__ */
|
7921
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
7922
|
+
return /* @__PURE__ */ React67.createElement(
|
7920
7923
|
ToastPrimitives.Action,
|
7921
7924
|
{
|
7922
7925
|
ref,
|
@@ -7934,7 +7937,7 @@ var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
|
7934
7937
|
);
|
7935
7938
|
});
|
7936
7939
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7937
|
-
var ToastClose =
|
7940
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7938
7941
|
ToastPrimitives.Close,
|
7939
7942
|
{
|
7940
7943
|
ref,
|
@@ -7948,7 +7951,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7948
7951
|
"toast-close": "",
|
7949
7952
|
...props
|
7950
7953
|
},
|
7951
|
-
/* @__PURE__ */
|
7954
|
+
/* @__PURE__ */ React67.createElement(
|
7952
7955
|
"svg",
|
7953
7956
|
{
|
7954
7957
|
"aria-label": "Close Icon",
|
@@ -7957,7 +7960,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7957
7960
|
fill: "currentColor",
|
7958
7961
|
viewBox: "0 0 20 20"
|
7959
7962
|
},
|
7960
|
-
/* @__PURE__ */
|
7963
|
+
/* @__PURE__ */ React67.createElement(
|
7961
7964
|
"path",
|
7962
7965
|
{
|
7963
7966
|
fillRule: "evenodd",
|
@@ -7968,7 +7971,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7968
7971
|
)
|
7969
7972
|
));
|
7970
7973
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7971
|
-
var ToastTitle =
|
7974
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7972
7975
|
ToastPrimitives.Title,
|
7973
7976
|
{
|
7974
7977
|
ref,
|
@@ -7981,7 +7984,7 @@ var ToastTitle = React66.forwardRef(({ className, size = "default", ...props },
|
|
7981
7984
|
}
|
7982
7985
|
));
|
7983
7986
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7984
|
-
var ToastDescription =
|
7987
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7985
7988
|
ToastPrimitives.Description,
|
7986
7989
|
{
|
7987
7990
|
ref,
|
@@ -7996,11 +7999,11 @@ var ToastDescription = React66.forwardRef(({ className, size = "default", ...pro
|
|
7996
7999
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
7997
8000
|
|
7998
8001
|
// elements/toaster/Toaster.tsx
|
7999
|
-
var
|
8002
|
+
var import_react48 = __toESM(require("react"));
|
8000
8003
|
function Toaster(props) {
|
8001
8004
|
var _a;
|
8002
8005
|
let isRTL = props.direction === "rtl";
|
8003
|
-
return /* @__PURE__ */
|
8006
|
+
return /* @__PURE__ */ import_react48.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8004
8007
|
id,
|
8005
8008
|
title,
|
8006
8009
|
description,
|
@@ -8008,7 +8011,7 @@ function Toaster(props) {
|
|
8008
8011
|
action,
|
8009
8012
|
...toastProps
|
8010
8013
|
}) {
|
8011
|
-
return /* @__PURE__ */
|
8014
|
+
return /* @__PURE__ */ import_react48.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react48.default.createElement(
|
8012
8015
|
"div",
|
8013
8016
|
{
|
8014
8017
|
className: cn(
|
@@ -8016,9 +8019,9 @@ function Toaster(props) {
|
|
8016
8019
|
action && "hawa-justify-between"
|
8017
8020
|
)
|
8018
8021
|
},
|
8019
|
-
/* @__PURE__ */
|
8020
|
-
/* @__PURE__ */
|
8021
|
-
/* @__PURE__ */
|
8022
|
+
/* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react48.default.createElement(ToastClose, null)),
|
8023
|
+
/* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8024
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
8022
8025
|
"div",
|
8023
8026
|
{
|
8024
8027
|
className: cn(
|
@@ -8026,11 +8029,11 @@ function Toaster(props) {
|
|
8026
8029
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8027
8030
|
)
|
8028
8031
|
},
|
8029
|
-
/* @__PURE__ */
|
8030
|
-
action && /* @__PURE__ */
|
8032
|
+
/* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react48.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react48.default.createElement(ToastDescription, { size }, description)),
|
8033
|
+
action && /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8031
8034
|
)
|
8032
8035
|
));
|
8033
|
-
}), /* @__PURE__ */
|
8036
|
+
}), /* @__PURE__ */ import_react48.default.createElement(
|
8034
8037
|
ToastViewport,
|
8035
8038
|
{
|
8036
8039
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8039,20 +8042,20 @@ function Toaster(props) {
|
|
8039
8042
|
}
|
8040
8043
|
|
8041
8044
|
// elements/destroyableCard/DestroyableCard.tsx
|
8042
|
-
var
|
8045
|
+
var import_react49 = __toESM(require("react"));
|
8043
8046
|
var DestroyableCard = ({
|
8044
8047
|
position = "bottom-right",
|
8045
8048
|
fixed,
|
8046
8049
|
direction,
|
8047
8050
|
...props
|
8048
8051
|
}) => {
|
8049
|
-
const [closed, setClosed] = (0,
|
8050
|
-
const popUpRef = (0,
|
8052
|
+
const [closed, setClosed] = (0, import_react49.useState)(false);
|
8053
|
+
const popUpRef = (0, import_react49.useRef)(null);
|
8051
8054
|
const boxPosition = {
|
8052
8055
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8053
8056
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8054
8057
|
};
|
8055
|
-
return /* @__PURE__ */
|
8058
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
8056
8059
|
"div",
|
8057
8060
|
{
|
8058
8061
|
className: cn(
|
@@ -8061,7 +8064,7 @@ var DestroyableCard = ({
|
|
8061
8064
|
),
|
8062
8065
|
ref: popUpRef
|
8063
8066
|
},
|
8064
|
-
/* @__PURE__ */
|
8067
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8065
8068
|
Card,
|
8066
8069
|
{
|
8067
8070
|
className: cn(
|
@@ -8070,7 +8073,7 @@ var DestroyableCard = ({
|
|
8070
8073
|
),
|
8071
8074
|
dir: direction
|
8072
8075
|
},
|
8073
|
-
/* @__PURE__ */
|
8076
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8074
8077
|
"button",
|
8075
8078
|
{
|
8076
8079
|
type: "button",
|
@@ -8089,7 +8092,7 @@ var DestroyableCard = ({
|
|
8089
8092
|
}, 200);
|
8090
8093
|
}
|
8091
8094
|
},
|
8092
|
-
/* @__PURE__ */
|
8095
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8093
8096
|
"svg",
|
8094
8097
|
{
|
8095
8098
|
"aria-hidden": "true",
|
@@ -8097,7 +8100,7 @@ var DestroyableCard = ({
|
|
8097
8100
|
fill: "currentColor",
|
8098
8101
|
viewBox: "0 0 20 20"
|
8099
8102
|
},
|
8100
|
-
/* @__PURE__ */
|
8103
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8101
8104
|
"path",
|
8102
8105
|
{
|
8103
8106
|
fillRule: "evenodd",
|
@@ -8107,13 +8110,13 @@ var DestroyableCard = ({
|
|
8107
8110
|
)
|
8108
8111
|
)
|
8109
8112
|
),
|
8110
|
-
/* @__PURE__ */
|
8113
|
+
/* @__PURE__ */ import_react49.default.createElement(CardContent, { headless: true }, props.children)
|
8111
8114
|
)
|
8112
8115
|
);
|
8113
8116
|
};
|
8114
8117
|
|
8115
8118
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8116
|
-
var
|
8119
|
+
var import_react50 = __toESM(require("react"));
|
8117
8120
|
var InterfaceSettings = ({
|
8118
8121
|
orientation = "horizontal",
|
8119
8122
|
width = "default",
|
@@ -8121,13 +8124,13 @@ var InterfaceSettings = ({
|
|
8121
8124
|
handleLanguage,
|
8122
8125
|
...props
|
8123
8126
|
}) => {
|
8124
|
-
const [color, setColor] = (0,
|
8125
|
-
const [language, setLanguage] = (0,
|
8127
|
+
const [color, setColor] = (0, import_react50.useState)(props.currentColorMode);
|
8128
|
+
const [language, setLanguage] = (0, import_react50.useState)(props.currentLanguage);
|
8126
8129
|
let orientationStyle = {
|
8127
8130
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8128
8131
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8129
8132
|
};
|
8130
|
-
return /* @__PURE__ */
|
8133
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react50.default.createElement(
|
8131
8134
|
Radio,
|
8132
8135
|
{
|
8133
8136
|
name: "language",
|
@@ -8145,7 +8148,7 @@ var InterfaceSettings = ({
|
|
8145
8148
|
{ value: "en", label: "English" }
|
8146
8149
|
]
|
8147
8150
|
}
|
8148
|
-
), /* @__PURE__ */
|
8151
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
8149
8152
|
Radio,
|
8150
8153
|
{
|
8151
8154
|
name: "theme",
|
@@ -8161,7 +8164,7 @@ var InterfaceSettings = ({
|
|
8161
8164
|
options: [
|
8162
8165
|
{
|
8163
8166
|
value: "light",
|
8164
|
-
label: /* @__PURE__ */
|
8167
|
+
label: /* @__PURE__ */ import_react50.default.createElement(
|
8165
8168
|
"svg",
|
8166
8169
|
{
|
8167
8170
|
width: "15",
|
@@ -8171,7 +8174,7 @@ var InterfaceSettings = ({
|
|
8171
8174
|
xmlns: "http://www.w3.org/2000/svg",
|
8172
8175
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8173
8176
|
},
|
8174
|
-
/* @__PURE__ */
|
8177
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
8175
8178
|
"path",
|
8176
8179
|
{
|
8177
8180
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
@@ -8182,7 +8185,7 @@ var InterfaceSettings = ({
|
|
8182
8185
|
},
|
8183
8186
|
{
|
8184
8187
|
value: "dark",
|
8185
|
-
label: /* @__PURE__ */
|
8188
|
+
label: /* @__PURE__ */ import_react50.default.createElement(
|
8186
8189
|
"svg",
|
8187
8190
|
{
|
8188
8191
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8193,7 +8196,7 @@ var InterfaceSettings = ({
|
|
8193
8196
|
stroke: "currentColor",
|
8194
8197
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8195
8198
|
},
|
8196
|
-
/* @__PURE__ */
|
8199
|
+
/* @__PURE__ */ import_react50.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8197
8200
|
)
|
8198
8201
|
}
|
8199
8202
|
]
|
@@ -8202,14 +8205,14 @@ var InterfaceSettings = ({
|
|
8202
8205
|
};
|
8203
8206
|
|
8204
8207
|
// elements/phoneMockup/PhoneMockup.tsx
|
8205
|
-
var
|
8208
|
+
var import_react51 = __toESM(require("react"));
|
8206
8209
|
var PhoneMockup = ({
|
8207
8210
|
children,
|
8208
8211
|
upperOverlayGradiant,
|
8209
8212
|
lowerOverlayGradiant,
|
8210
8213
|
phone,
|
8211
8214
|
hideButtons
|
8212
|
-
}) => /* @__PURE__ */
|
8215
|
+
}) => /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react51.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8213
8216
|
// Annotate the CommonJS export names for ESM import in node:
|
8214
8217
|
0 && (module.exports = {
|
8215
8218
|
Accordion,
|