@sikka/hawa 0.30.26-next → 0.30.27-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 +310 -204
- package/dist/blocks/index.mjs +3 -2
- package/dist/blocks/misc/index.js +254 -148
- package/dist/blocks/misc/index.mjs +175 -69
- package/dist/chunk-R2SKHHDK.mjs +411 -0
- package/dist/{chunk-QDRFTC7W.mjs → chunk-SW7UK35T.mjs} +39 -13
- package/dist/{chunk-H7ZADF2Z.mjs → chunk-UDCDD66A.mjs} +8 -0
- package/dist/elements/index.js +389 -288
- package/dist/elements/index.mjs +5 -5
- package/dist/floatBox/index.d.mts +2 -0
- package/dist/floatBox/index.d.ts +2 -0
- package/dist/floatBox/index.js +23 -11
- package/dist/floatBox/index.js.map +1 -1
- package/dist/floatBox/index.mjs +23 -11
- package/dist/floatBox/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +12 -2
- package/dist/hooks/index.d.ts +12 -2
- package/dist/hooks/index.js +36 -0
- package/dist/hooks/index.mjs +16 -340
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +4233 -4174
- package/dist/index.mjs +1481 -1423
- package/dist/layout/index.mjs +3 -4
- package/dist/tabs/index.js +137 -31
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +137 -31
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4OOSUQZG.mjs +0 -12
- package/dist/chunk-57SB6MBG.mjs +0 -31
package/dist/elements/index.js
CHANGED
@@ -4108,38 +4108,156 @@ var SortButton = (props) => {
|
|
4108
4108
|
};
|
4109
4109
|
|
4110
4110
|
// elements/tabs/Tabs.tsx
|
4111
|
-
var
|
4111
|
+
var React40 = __toESM(require("react"));
|
4112
|
+
|
4113
|
+
// hooks/useIsomorphicEffect.ts
|
4114
|
+
var import_react14 = require("react");
|
4115
|
+
|
4116
|
+
// hooks/useDiscloser.ts
|
4117
|
+
var import_react15 = require("react");
|
4118
|
+
|
4119
|
+
// hooks/useHover.ts
|
4120
|
+
var import_react16 = require("react");
|
4121
|
+
|
4122
|
+
// hooks/useToast.ts
|
4123
|
+
var React33 = __toESM(require("react"));
|
4124
|
+
|
4125
|
+
// hooks/useCarousel.ts
|
4126
|
+
var import_react17 = require("react");
|
4127
|
+
|
4128
|
+
// hooks/useDialogCarousel.ts
|
4129
|
+
var import_react18 = require("react");
|
4130
|
+
var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
|
4131
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
4132
|
+
|
4133
|
+
// hooks/useDialogSteps.ts
|
4134
|
+
var import_react19 = require("react");
|
4135
|
+
|
4136
|
+
// hooks/useClipboard.ts
|
4137
|
+
var import_react20 = require("react");
|
4138
|
+
function useClipboard({ timeout = 2e3 } = {}) {
|
4139
|
+
const [error, setError] = (0, import_react20.useState)(null);
|
4140
|
+
const [copied, setCopied] = (0, import_react20.useState)(false);
|
4141
|
+
const [copyTimeout, setCopyTimeout] = (0, import_react20.useState)(null);
|
4142
|
+
const handleCopyResult = (value) => {
|
4143
|
+
clearTimeout(copyTimeout);
|
4144
|
+
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
4145
|
+
setCopied(value);
|
4146
|
+
};
|
4147
|
+
const copy = (valueToCopy) => {
|
4148
|
+
if ("clipboard" in navigator) {
|
4149
|
+
navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
|
4150
|
+
} else {
|
4151
|
+
setError(new Error("useClipboard: navigator.clipboard is not supported"));
|
4152
|
+
}
|
4153
|
+
};
|
4154
|
+
const reset = () => {
|
4155
|
+
setCopied(false);
|
4156
|
+
setError(null);
|
4157
|
+
clearTimeout(copyTimeout);
|
4158
|
+
};
|
4159
|
+
return { copy, reset, error, copied };
|
4160
|
+
}
|
4161
|
+
|
4162
|
+
// hooks/useBreakpoint.ts
|
4163
|
+
var import_react21 = require("react");
|
4164
|
+
|
4165
|
+
// hooks/useWindowSize.ts
|
4166
|
+
var import_react22 = require("react");
|
4167
|
+
|
4168
|
+
// hooks/useFocusWithin.ts
|
4169
|
+
var import_react23 = require("react");
|
4170
|
+
|
4171
|
+
// hooks/useMediaQuery.ts
|
4172
|
+
var import_react24 = require("react");
|
4173
|
+
|
4174
|
+
// hooks/useScrollPosition.ts
|
4175
|
+
var import_react25 = require("react");
|
4176
|
+
|
4177
|
+
// hooks/useTable.ts
|
4178
|
+
var import_react26 = require("react");
|
4179
|
+
|
4180
|
+
// hooks/useTabs.ts
|
4181
|
+
var import_react27 = require("react");
|
4182
|
+
|
4183
|
+
// hooks/useMeasureDirty.ts
|
4184
|
+
var import_react28 = require("react");
|
4185
|
+
var useMeasureDirty = (ref) => {
|
4186
|
+
const frame = (0, import_react28.useRef)(0);
|
4187
|
+
const [rect, set] = (0, import_react28.useState)({
|
4188
|
+
width: 0,
|
4189
|
+
height: 0,
|
4190
|
+
top: 0,
|
4191
|
+
left: 0,
|
4192
|
+
bottom: 0,
|
4193
|
+
right: 0
|
4194
|
+
});
|
4195
|
+
const [observer] = (0, import_react28.useState)(
|
4196
|
+
() => new ResizeObserver((entries) => {
|
4197
|
+
const entry = entries[0];
|
4198
|
+
if (entry) {
|
4199
|
+
cancelAnimationFrame(frame.current);
|
4200
|
+
frame.current = requestAnimationFrame(() => {
|
4201
|
+
if (ref.current) {
|
4202
|
+
set(entry.contentRect);
|
4203
|
+
}
|
4204
|
+
});
|
4205
|
+
}
|
4206
|
+
})
|
4207
|
+
);
|
4208
|
+
(0, import_react28.useEffect)(() => {
|
4209
|
+
observer.disconnect();
|
4210
|
+
if (ref.current) {
|
4211
|
+
observer.observe(ref.current);
|
4212
|
+
}
|
4213
|
+
}, [ref]);
|
4214
|
+
return rect;
|
4215
|
+
};
|
4216
|
+
|
4217
|
+
// elements/tabs/Tabs.tsx
|
4112
4218
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4113
4219
|
var import_tailwind_variants = require("tailwind-variants");
|
4114
4220
|
|
4115
4221
|
// elements/floatBox/FloatBox.tsx
|
4116
|
-
var
|
4222
|
+
var React39 = __toESM(require("react"));
|
4117
4223
|
var FloatBox = ({
|
4118
4224
|
className,
|
4119
4225
|
open,
|
4120
4226
|
side = "bottom",
|
4121
4227
|
sideOffset = 40,
|
4228
|
+
align = "center",
|
4122
4229
|
...props
|
4123
4230
|
}) => {
|
4124
|
-
let
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
|
4129
|
-
|
4130
|
-
top: {
|
4131
|
-
|
4132
|
-
|
4231
|
+
let stylesMap = {
|
4232
|
+
bottom: {
|
4233
|
+
start: { top: sideOffset, insetInlineStart: 0 },
|
4234
|
+
center: { top: sideOffset },
|
4235
|
+
end: { top: sideOffset, insetInlineEnd: 0 }
|
4236
|
+
},
|
4237
|
+
top: {
|
4238
|
+
start: { bottom: sideOffset, insetInlineStart: 0 },
|
4239
|
+
center: { bottom: sideOffset },
|
4240
|
+
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
4241
|
+
},
|
4242
|
+
right: {
|
4243
|
+
start: { left: sideOffset, top: -5 },
|
4244
|
+
center: { left: sideOffset },
|
4245
|
+
end: { left: sideOffset, bottom: 0 }
|
4246
|
+
},
|
4247
|
+
left: {
|
4248
|
+
start: { right: sideOffset, top: 0 },
|
4249
|
+
center: { right: sideOffset },
|
4250
|
+
end: { right: sideOffset, bottom: 0 }
|
4251
|
+
}
|
4133
4252
|
};
|
4134
|
-
return /* @__PURE__ */
|
4253
|
+
return /* @__PURE__ */ React39.createElement(
|
4135
4254
|
"div",
|
4136
4255
|
{
|
4137
4256
|
className: cn(
|
4138
4257
|
"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",
|
4139
|
-
sideOffsetStyles[side],
|
4140
4258
|
className
|
4141
4259
|
),
|
4142
|
-
style: { ...
|
4260
|
+
style: { ...stylesMap[side][align] },
|
4143
4261
|
"data-side": side,
|
4144
4262
|
"data-floatbox-state": open ? "open" : "closed"
|
4145
4263
|
},
|
@@ -4206,8 +4324,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4206
4324
|
],
|
4207
4325
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4208
4326
|
});
|
4209
|
-
var TabsContext =
|
4210
|
-
var Tabs =
|
4327
|
+
var TabsContext = React40.createContext({ orientation: "horizontal", variant: "default" });
|
4328
|
+
var Tabs = React40.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4211
4329
|
TabsPrimitive.Root,
|
4212
4330
|
{
|
4213
4331
|
ref,
|
@@ -4218,11 +4336,11 @@ var Tabs = React32.forwardRef(({ className, orientation, variant = "default", ..
|
|
4218
4336
|
),
|
4219
4337
|
...props
|
4220
4338
|
},
|
4221
|
-
/* @__PURE__ */
|
4339
|
+
/* @__PURE__ */ React40.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4222
4340
|
));
|
4223
|
-
var TabsList =
|
4224
|
-
const { orientation, variant } =
|
4225
|
-
return /* @__PURE__ */
|
4341
|
+
var TabsList = React40.forwardRef(({ className, ...props }, ref) => {
|
4342
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4343
|
+
return /* @__PURE__ */ React40.createElement(
|
4226
4344
|
TabsPrimitive.List,
|
4227
4345
|
{
|
4228
4346
|
ref,
|
@@ -4235,12 +4353,14 @@ var TabsList = React32.forwardRef(({ className, ...props }, ref) => {
|
|
4235
4353
|
}
|
4236
4354
|
);
|
4237
4355
|
});
|
4238
|
-
var TabsTrigger =
|
4239
|
-
const { orientation, variant } =
|
4240
|
-
|
4356
|
+
var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4357
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4358
|
+
const tabTriggerRef = React40.useRef(null);
|
4359
|
+
const { width } = useMeasureDirty(tabTriggerRef);
|
4360
|
+
return /* @__PURE__ */ React40.createElement(
|
4241
4361
|
TabsPrimitive.Trigger,
|
4242
4362
|
{
|
4243
|
-
ref,
|
4363
|
+
ref: tabTriggerRef,
|
4244
4364
|
className: cn(
|
4245
4365
|
tabsTriggerVariant({ variant, orientation }),
|
4246
4366
|
"hawa-relative",
|
@@ -4249,11 +4369,20 @@ var TabsTrigger = React32.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4249
4369
|
...props
|
4250
4370
|
},
|
4251
4371
|
props.children,
|
4252
|
-
chipProps && /* @__PURE__ */
|
4253
|
-
/* @__PURE__ */
|
4372
|
+
chipProps && /* @__PURE__ */ React40.createElement(Chip, { ...chipProps }),
|
4373
|
+
/* @__PURE__ */ React40.createElement(
|
4374
|
+
FloatBox,
|
4375
|
+
{
|
4376
|
+
align: orientation === "vertical" ? "start" : "start",
|
4377
|
+
side: orientation === "vertical" ? "right" : "bottom",
|
4378
|
+
sideOffset: orientation === "vertical" ? width + 30 : 45,
|
4379
|
+
open: props.showPopover
|
4380
|
+
},
|
4381
|
+
props.popoverContent
|
4382
|
+
)
|
4254
4383
|
);
|
4255
4384
|
});
|
4256
|
-
var TabsContent =
|
4385
|
+
var TabsContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4257
4386
|
TabsPrimitive.Content,
|
4258
4387
|
{
|
4259
4388
|
ref,
|
@@ -4270,7 +4399,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4270
4399
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4271
4400
|
|
4272
4401
|
// elements/select/Select.tsx
|
4273
|
-
var
|
4402
|
+
var import_react29 = __toESM(require("react"));
|
4274
4403
|
var import_react_select = __toESM(require("react-select"));
|
4275
4404
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4276
4405
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4281,10 +4410,10 @@ var Select = ({
|
|
4281
4410
|
}) => {
|
4282
4411
|
const NoOption = () => {
|
4283
4412
|
var _a, _b;
|
4284
|
-
return /* @__PURE__ */
|
4413
|
+
return /* @__PURE__ */ import_react29.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4285
4414
|
};
|
4286
4415
|
const Control = ({ children, innerProps, innerRef }) => {
|
4287
|
-
return /* @__PURE__ */
|
4416
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4288
4417
|
"div",
|
4289
4418
|
{
|
4290
4419
|
ref: innerRef,
|
@@ -4297,7 +4426,7 @@ var Select = ({
|
|
4297
4426
|
);
|
4298
4427
|
};
|
4299
4428
|
const Option = ({ children, innerProps, innerRef }) => {
|
4300
|
-
return /* @__PURE__ */
|
4429
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4301
4430
|
"div",
|
4302
4431
|
{
|
4303
4432
|
ref: innerRef,
|
@@ -4318,7 +4447,7 @@ var Select = ({
|
|
4318
4447
|
...menuProps
|
4319
4448
|
}) => {
|
4320
4449
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4321
|
-
return /* @__PURE__ */
|
4450
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4322
4451
|
"div",
|
4323
4452
|
{
|
4324
4453
|
className: cn(
|
@@ -4332,7 +4461,7 @@ var Select = ({
|
|
4332
4461
|
children
|
4333
4462
|
);
|
4334
4463
|
};
|
4335
|
-
return /* @__PURE__ */
|
4464
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4336
4465
|
"div",
|
4337
4466
|
{
|
4338
4467
|
className: cn(
|
@@ -4340,10 +4469,10 @@ var Select = ({
|
|
4340
4469
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4341
4470
|
)
|
4342
4471
|
},
|
4343
|
-
props.label && /* @__PURE__ */
|
4344
|
-
props.isLoading ? /* @__PURE__ */
|
4472
|
+
props.label && /* @__PURE__ */ import_react29.default.createElement(Label2, { ...labelProps }, props.label),
|
4473
|
+
props.isLoading ? /* @__PURE__ */ import_react29.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4345
4474
|
// TODO: enable keyboard to go to the next item in the list
|
4346
|
-
/* @__PURE__ */
|
4475
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
4347
4476
|
import_react_select.default,
|
4348
4477
|
{
|
4349
4478
|
noOptionsMessage: NoOption,
|
@@ -4380,7 +4509,7 @@ var Select = ({
|
|
4380
4509
|
isSearchable: props.isSearchable
|
4381
4510
|
}
|
4382
4511
|
)
|
4383
|
-
) : /* @__PURE__ */
|
4512
|
+
) : /* @__PURE__ */ import_react29.default.createElement(
|
4384
4513
|
import_creatable.default,
|
4385
4514
|
{
|
4386
4515
|
formatCreateLabel: (inputValue) => {
|
@@ -4410,7 +4539,7 @@ var Select = ({
|
|
4410
4539
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4411
4540
|
}
|
4412
4541
|
),
|
4413
|
-
!props.hideHelperText && /* @__PURE__ */
|
4542
|
+
!props.hideHelperText && /* @__PURE__ */ import_react29.default.createElement(
|
4414
4543
|
"p",
|
4415
4544
|
{
|
4416
4545
|
className: cn(
|
@@ -4424,15 +4553,15 @@ var Select = ({
|
|
4424
4553
|
};
|
4425
4554
|
|
4426
4555
|
// elements/switch/Switch.tsx
|
4427
|
-
var
|
4556
|
+
var React42 = __toESM(require("react"));
|
4428
4557
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4429
|
-
var Switch =
|
4558
|
+
var Switch = React42.forwardRef(
|
4430
4559
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4431
|
-
const [parentDirection, setParentDirection] =
|
4560
|
+
const [parentDirection, setParentDirection] = React42.useState(
|
4432
4561
|
null
|
4433
4562
|
);
|
4434
|
-
const parentRef =
|
4435
|
-
|
4563
|
+
const parentRef = React42.useRef(null);
|
4564
|
+
React42.useEffect(() => {
|
4436
4565
|
var _a;
|
4437
4566
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4438
4567
|
if (parentNode) {
|
@@ -4460,13 +4589,13 @@ var Switch = React34.forwardRef(
|
|
4460
4589
|
full: "hawa-rounded-full",
|
4461
4590
|
inherit: "hawa-rounded-inner"
|
4462
4591
|
};
|
4463
|
-
return /* @__PURE__ */
|
4592
|
+
return /* @__PURE__ */ React42.createElement(
|
4464
4593
|
"div",
|
4465
4594
|
{
|
4466
4595
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4467
4596
|
ref: parentRef
|
4468
4597
|
},
|
4469
|
-
/* @__PURE__ */
|
4598
|
+
/* @__PURE__ */ React42.createElement(
|
4470
4599
|
SwitchPrimitives.Root,
|
4471
4600
|
{
|
4472
4601
|
className: cn(
|
@@ -4480,7 +4609,7 @@ var Switch = React34.forwardRef(
|
|
4480
4609
|
...props,
|
4481
4610
|
ref
|
4482
4611
|
},
|
4483
|
-
/* @__PURE__ */
|
4612
|
+
/* @__PURE__ */ React42.createElement(
|
4484
4613
|
SwitchPrimitives.Thumb,
|
4485
4614
|
{
|
4486
4615
|
className: cn(
|
@@ -4494,14 +4623,14 @@ var Switch = React34.forwardRef(
|
|
4494
4623
|
}
|
4495
4624
|
)
|
4496
4625
|
),
|
4497
|
-
label && /* @__PURE__ */
|
4626
|
+
label && /* @__PURE__ */ React42.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4498
4627
|
);
|
4499
4628
|
}
|
4500
4629
|
);
|
4501
4630
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4502
4631
|
|
4503
4632
|
// elements/checkbox/Checkbox.tsx
|
4504
|
-
var
|
4633
|
+
var React43 = __toESM(require("react"));
|
4505
4634
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4506
4635
|
var Checkbox = ({
|
4507
4636
|
id,
|
@@ -4521,7 +4650,7 @@ var Checkbox = ({
|
|
4521
4650
|
lg: 0.9,
|
4522
4651
|
xl: 1
|
4523
4652
|
};
|
4524
|
-
return /* @__PURE__ */
|
4653
|
+
return /* @__PURE__ */ React43.createElement(
|
4525
4654
|
"div",
|
4526
4655
|
{
|
4527
4656
|
className: cn(
|
@@ -4529,7 +4658,7 @@ var Checkbox = ({
|
|
4529
4658
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4530
4659
|
)
|
4531
4660
|
},
|
4532
|
-
/* @__PURE__ */
|
4661
|
+
/* @__PURE__ */ React43.createElement(
|
4533
4662
|
CheckboxElement,
|
4534
4663
|
{
|
4535
4664
|
...props,
|
@@ -4539,7 +4668,7 @@ var Checkbox = ({
|
|
4539
4668
|
id
|
4540
4669
|
}
|
4541
4670
|
),
|
4542
|
-
(label || helperText) && /* @__PURE__ */
|
4671
|
+
(label || helperText) && /* @__PURE__ */ React43.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React43.createElement(
|
4543
4672
|
"label",
|
4544
4673
|
{
|
4545
4674
|
htmlFor: id,
|
@@ -4553,7 +4682,7 @@ var Checkbox = ({
|
|
4553
4682
|
}
|
4554
4683
|
},
|
4555
4684
|
label
|
4556
|
-
), sublabel && /* @__PURE__ */
|
4685
|
+
), sublabel && /* @__PURE__ */ React43.createElement(
|
4557
4686
|
"label",
|
4558
4687
|
{
|
4559
4688
|
htmlFor: id,
|
@@ -4563,7 +4692,7 @@ var Checkbox = ({
|
|
4563
4692
|
)
|
4564
4693
|
},
|
4565
4694
|
sublabel
|
4566
|
-
), helperText && !disabled && /* @__PURE__ */
|
4695
|
+
), helperText && !disabled && /* @__PURE__ */ React43.createElement(
|
4567
4696
|
"label",
|
4568
4697
|
{
|
4569
4698
|
htmlFor: id,
|
@@ -4576,7 +4705,7 @@ var Checkbox = ({
|
|
4576
4705
|
))
|
4577
4706
|
);
|
4578
4707
|
};
|
4579
|
-
var CheckboxElement =
|
4708
|
+
var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4580
4709
|
let checkboxRadius = {
|
4581
4710
|
none: "hawa-rounded-none",
|
4582
4711
|
inherit: "hawa-rounded-sm",
|
@@ -4598,7 +4727,7 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4598
4727
|
lg: "1em",
|
4599
4728
|
xl: "1.25em"
|
4600
4729
|
};
|
4601
|
-
return /* @__PURE__ */
|
4730
|
+
return /* @__PURE__ */ React43.createElement(
|
4602
4731
|
CheckboxPrimitive.Root,
|
4603
4732
|
{
|
4604
4733
|
ref,
|
@@ -4610,14 +4739,14 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4610
4739
|
),
|
4611
4740
|
...props
|
4612
4741
|
},
|
4613
|
-
/* @__PURE__ */
|
4742
|
+
/* @__PURE__ */ React43.createElement(
|
4614
4743
|
CheckboxPrimitive.Indicator,
|
4615
4744
|
{
|
4616
4745
|
className: cn(
|
4617
4746
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4618
4747
|
)
|
4619
4748
|
},
|
4620
|
-
/* @__PURE__ */
|
4749
|
+
/* @__PURE__ */ React43.createElement(
|
4621
4750
|
"svg",
|
4622
4751
|
{
|
4623
4752
|
"aria-label": "Check Mark",
|
@@ -4628,7 +4757,7 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4628
4757
|
height: checkboxIndicatorSizes[size],
|
4629
4758
|
width: checkboxIndicatorSizes[size]
|
4630
4759
|
},
|
4631
|
-
/* @__PURE__ */
|
4760
|
+
/* @__PURE__ */ React43.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" })
|
4632
4761
|
),
|
4633
4762
|
" "
|
4634
4763
|
)
|
@@ -4637,9 +4766,9 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4637
4766
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4638
4767
|
|
4639
4768
|
// elements/progress/Progress.tsx
|
4640
|
-
var
|
4769
|
+
var React44 = __toESM(require("react"));
|
4641
4770
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4642
|
-
var Progress =
|
4771
|
+
var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React44.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React44.createElement(
|
4643
4772
|
ProgressPrimitive.Root,
|
4644
4773
|
{
|
4645
4774
|
ref,
|
@@ -4649,7 +4778,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4649
4778
|
),
|
4650
4779
|
...props
|
4651
4780
|
},
|
4652
|
-
/* @__PURE__ */
|
4781
|
+
/* @__PURE__ */ React44.createElement(
|
4653
4782
|
ProgressPrimitive.Indicator,
|
4654
4783
|
{
|
4655
4784
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4660,7 +4789,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4660
4789
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4661
4790
|
|
4662
4791
|
// elements/breadcrumb/Breadcrumb.tsx
|
4663
|
-
var
|
4792
|
+
var import_react30 = __toESM(require("react"));
|
4664
4793
|
var Breadcrumb = ({
|
4665
4794
|
breadcrumbLinks,
|
4666
4795
|
separator = ">",
|
@@ -4671,7 +4800,7 @@ var Breadcrumb = ({
|
|
4671
4800
|
small: "hawa-text-sm",
|
4672
4801
|
xs: "hawa-text-xs"
|
4673
4802
|
};
|
4674
|
-
return /* @__PURE__ */
|
4803
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4675
4804
|
"div",
|
4676
4805
|
{
|
4677
4806
|
className: cn(
|
@@ -4679,13 +4808,13 @@ var Breadcrumb = ({
|
|
4679
4808
|
textStyles[size]
|
4680
4809
|
)
|
4681
4810
|
},
|
4682
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4811
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react30.default.createElement(
|
4683
4812
|
"div",
|
4684
4813
|
{
|
4685
4814
|
key: index,
|
4686
4815
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4687
4816
|
},
|
4688
|
-
/* @__PURE__ */
|
4817
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
4689
4818
|
"a",
|
4690
4819
|
{
|
4691
4820
|
href: singleBreadcrumbLink.href,
|
@@ -4693,49 +4822,49 @@ var Breadcrumb = ({
|
|
4693
4822
|
},
|
4694
4823
|
singleBreadcrumbLink.label
|
4695
4824
|
),
|
4696
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4825
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react30.default.createElement("div", null, separator) : /* @__PURE__ */ import_react30.default.createElement("div", null, separator) : null
|
4697
4826
|
))
|
4698
4827
|
);
|
4699
4828
|
};
|
4700
4829
|
|
4701
4830
|
// elements/appStores/AppStores.tsx
|
4702
|
-
var
|
4831
|
+
var import_react31 = __toESM(require("react"));
|
4703
4832
|
var AppStores = (props) => {
|
4704
|
-
return /* @__PURE__ */
|
4833
|
+
return /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react31.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react31.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_react31.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react31.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react31.default.createElement(
|
4705
4834
|
"path",
|
4706
4835
|
{
|
4707
4836
|
fill: "currentColor",
|
4708
4837
|
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"
|
4709
4838
|
}
|
4710
|
-
))), /* @__PURE__ */
|
4839
|
+
))), /* @__PURE__ */ import_react31.default.createElement("div", null, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react31.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_react31.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react31.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react31.default.createElement(
|
4711
4840
|
"path",
|
4712
4841
|
{
|
4713
4842
|
fill: "#FFD400",
|
4714
4843
|
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"
|
4715
4844
|
}
|
4716
|
-
), /* @__PURE__ */
|
4845
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4717
4846
|
"path",
|
4718
4847
|
{
|
4719
4848
|
fill: "#FF3333",
|
4720
4849
|
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"
|
4721
4850
|
}
|
4722
|
-
), /* @__PURE__ */
|
4851
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4723
4852
|
"path",
|
4724
4853
|
{
|
4725
4854
|
fill: "#48FF48",
|
4726
4855
|
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"
|
4727
4856
|
}
|
4728
|
-
), /* @__PURE__ */
|
4857
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4729
4858
|
"path",
|
4730
4859
|
{
|
4731
4860
|
fill: "#3BCCFF",
|
4732
4861
|
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"
|
4733
4862
|
}
|
4734
|
-
))), /* @__PURE__ */
|
4863
|
+
))), /* @__PURE__ */ import_react31.default.createElement("div", null, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
4735
4864
|
};
|
4736
4865
|
|
4737
4866
|
// elements/badge/Badge.tsx
|
4738
|
-
var
|
4867
|
+
var import_react32 = __toESM(require("react"));
|
4739
4868
|
var Badge = ({
|
4740
4869
|
anchor,
|
4741
4870
|
position = "right",
|
@@ -4743,14 +4872,14 @@ var Badge = ({
|
|
4743
4872
|
text,
|
4744
4873
|
className
|
4745
4874
|
}) => {
|
4746
|
-
const [badgePosition, setBadgePosition] = (0,
|
4747
|
-
const indicatorRef = (0,
|
4875
|
+
const [badgePosition, setBadgePosition] = (0, import_react32.useState)(null);
|
4876
|
+
const indicatorRef = (0, import_react32.useRef)(null);
|
4748
4877
|
const sizeStyles2 = {
|
4749
4878
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
4750
4879
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
4751
4880
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
4752
4881
|
};
|
4753
|
-
(0,
|
4882
|
+
(0, import_react32.useEffect)(() => {
|
4754
4883
|
const handlePositioning = () => {
|
4755
4884
|
var _a;
|
4756
4885
|
if (anchor.current && indicatorRef.current) {
|
@@ -4773,7 +4902,7 @@ var Badge = ({
|
|
4773
4902
|
window.removeEventListener("resize", handlePositioning);
|
4774
4903
|
};
|
4775
4904
|
}, [anchor]);
|
4776
|
-
return /* @__PURE__ */
|
4905
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react32.default.createElement(
|
4777
4906
|
"div",
|
4778
4907
|
{
|
4779
4908
|
style: {
|
@@ -4798,8 +4927,8 @@ var BadgedComponent = ({
|
|
4798
4927
|
size,
|
4799
4928
|
text
|
4800
4929
|
}) => {
|
4801
|
-
const ref = (0,
|
4802
|
-
return /* @__PURE__ */
|
4930
|
+
const ref = (0, import_react32.useRef)(null);
|
4931
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react32.default.createElement(
|
4803
4932
|
Badge,
|
4804
4933
|
{
|
4805
4934
|
size,
|
@@ -4812,7 +4941,7 @@ var BadgedComponent = ({
|
|
4812
4941
|
};
|
4813
4942
|
|
4814
4943
|
// elements/phoneInput/PhoneInput.tsx
|
4815
|
-
var
|
4944
|
+
var import_react33 = __toESM(require("react"));
|
4816
4945
|
|
4817
4946
|
// countries.ts
|
4818
4947
|
var countries = [
|
@@ -6509,10 +6638,10 @@ var countries_default = countries;
|
|
6509
6638
|
|
6510
6639
|
// elements/phoneInput/PhoneInput.tsx
|
6511
6640
|
var PhoneInput = ({ labelProps, ...props }) => {
|
6512
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6513
|
-
const [countryCode, setCountryCode] = (0,
|
6514
|
-
const inputRef = (0,
|
6515
|
-
(0,
|
6641
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react33.useState)("");
|
6642
|
+
const [countryCode, setCountryCode] = (0, import_react33.useState)(props.preferredCountry);
|
6643
|
+
const inputRef = (0, import_react33.useRef)(null);
|
6644
|
+
(0, import_react33.useEffect)(() => {
|
6516
6645
|
var _a;
|
6517
6646
|
if (inputRef.current) {
|
6518
6647
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
@@ -6530,7 +6659,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6530
6659
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6531
6660
|
}
|
6532
6661
|
};
|
6533
|
-
return /* @__PURE__ */
|
6662
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react33.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react33.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react33.default.createElement(
|
6534
6663
|
Select,
|
6535
6664
|
{
|
6536
6665
|
width: "fit",
|
@@ -6546,7 +6675,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6546
6675
|
value: countryCode == null ? void 0 : countryCode.label,
|
6547
6676
|
onChange: setCountryCode
|
6548
6677
|
}
|
6549
|
-
), /* @__PURE__ */
|
6678
|
+
), /* @__PURE__ */ import_react33.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_react33.default.createElement(
|
6550
6679
|
"input",
|
6551
6680
|
{
|
6552
6681
|
ref: inputRef,
|
@@ -6559,7 +6688,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6559
6688
|
type: "tel",
|
6560
6689
|
placeholder: props.placeholder
|
6561
6690
|
}
|
6562
|
-
))), /* @__PURE__ */
|
6691
|
+
))), /* @__PURE__ */ import_react33.default.createElement(
|
6563
6692
|
"p",
|
6564
6693
|
{
|
6565
6694
|
className: cn(
|
@@ -6572,7 +6701,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6572
6701
|
};
|
6573
6702
|
|
6574
6703
|
// elements/pinInput/PinInput.tsx
|
6575
|
-
var
|
6704
|
+
var import_react34 = __toESM(require("react"));
|
6576
6705
|
var PinInput = ({
|
6577
6706
|
label,
|
6578
6707
|
icon,
|
@@ -6582,7 +6711,7 @@ var PinInput = ({
|
|
6582
6711
|
inputProps,
|
6583
6712
|
...props
|
6584
6713
|
}) => {
|
6585
|
-
const [pin, setPin] = (0,
|
6714
|
+
const [pin, setPin] = (0, import_react34.useState)(Array.from(Array(digits)));
|
6586
6715
|
const handleKeyDown = (e, index) => {
|
6587
6716
|
let backTo = 0;
|
6588
6717
|
if (e.key === "Backspace") {
|
@@ -6591,7 +6720,7 @@ var PinInput = ({
|
|
6591
6720
|
previousInput == null ? void 0 : previousInput.focus();
|
6592
6721
|
}
|
6593
6722
|
};
|
6594
|
-
(0,
|
6723
|
+
(0, import_react34.useEffect)(() => {
|
6595
6724
|
let unfilled = pin.includes(void 0);
|
6596
6725
|
if (!unfilled && getPins) {
|
6597
6726
|
getPins(pin);
|
@@ -6616,13 +6745,13 @@ var PinInput = ({
|
|
6616
6745
|
}
|
6617
6746
|
}
|
6618
6747
|
};
|
6619
|
-
return /* @__PURE__ */
|
6748
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react34.default.createElement(
|
6620
6749
|
"div",
|
6621
6750
|
{
|
6622
6751
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6623
6752
|
dir: "ltr"
|
6624
6753
|
},
|
6625
|
-
pin.map((value, index) => /* @__PURE__ */
|
6754
|
+
pin.map((value, index) => /* @__PURE__ */ import_react34.default.createElement(
|
6626
6755
|
"input",
|
6627
6756
|
{
|
6628
6757
|
key: index,
|
@@ -6642,7 +6771,7 @@ var PinInput = ({
|
|
6642
6771
|
...inputProps
|
6643
6772
|
}
|
6644
6773
|
))
|
6645
|
-
), /* @__PURE__ */
|
6774
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
6646
6775
|
"p",
|
6647
6776
|
{
|
6648
6777
|
className: cn(
|
@@ -6655,30 +6784,30 @@ var PinInput = ({
|
|
6655
6784
|
};
|
6656
6785
|
|
6657
6786
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6658
|
-
var
|
6787
|
+
var import_react35 = __toESM(require("react"));
|
6659
6788
|
var StopPropagationWrapper = (props) => {
|
6660
6789
|
const handleClick = (e) => {
|
6661
6790
|
e.stopPropagation();
|
6662
6791
|
};
|
6663
|
-
return /* @__PURE__ */
|
6792
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { onClick: handleClick }, props.children);
|
6664
6793
|
};
|
6665
6794
|
|
6666
6795
|
// elements/scrollArea/ScrollArea.tsx
|
6667
|
-
var
|
6796
|
+
var React51 = __toESM(require("react"));
|
6668
6797
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6669
|
-
var ScrollArea =
|
6798
|
+
var ScrollArea = React51.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6670
6799
|
ScrollAreaPrimitive.Root,
|
6671
6800
|
{
|
6672
6801
|
ref,
|
6673
6802
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6674
6803
|
...props
|
6675
6804
|
},
|
6676
|
-
/* @__PURE__ */
|
6677
|
-
/* @__PURE__ */
|
6678
|
-
/* @__PURE__ */
|
6805
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6806
|
+
/* @__PURE__ */ React51.createElement(ScrollBar, { orientation }),
|
6807
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Corner, null)
|
6679
6808
|
));
|
6680
6809
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6681
|
-
var ScrollBar =
|
6810
|
+
var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6682
6811
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6683
6812
|
{
|
6684
6813
|
ref,
|
@@ -6691,7 +6820,7 @@ var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6691
6820
|
),
|
6692
6821
|
...props
|
6693
6822
|
},
|
6694
|
-
/* @__PURE__ */
|
6823
|
+
/* @__PURE__ */ React51.createElement(
|
6695
6824
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6696
6825
|
{
|
6697
6826
|
className: cn(
|
@@ -6704,7 +6833,7 @@ var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6704
6833
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6705
6834
|
|
6706
6835
|
// elements/colorPicker/ColorPicker.tsx
|
6707
|
-
var
|
6836
|
+
var import_react36 = __toESM(require("react"));
|
6708
6837
|
var ColorPicker = ({
|
6709
6838
|
containerProps,
|
6710
6839
|
colorPickerProps,
|
@@ -6715,8 +6844,8 @@ var ColorPicker = ({
|
|
6715
6844
|
preview = false,
|
6716
6845
|
...props
|
6717
6846
|
}) => {
|
6718
|
-
const [selectedColor, setSelectedColor] = (0,
|
6719
|
-
(0,
|
6847
|
+
const [selectedColor, setSelectedColor] = (0, import_react36.useState)(props.color);
|
6848
|
+
(0, import_react36.useEffect)(() => {
|
6720
6849
|
if (selectedColor && selectedColor[0] !== "#") {
|
6721
6850
|
setSelectedColor(`#${selectedColor}`);
|
6722
6851
|
}
|
@@ -6733,13 +6862,13 @@ var ColorPicker = ({
|
|
6733
6862
|
props.handleChange(e);
|
6734
6863
|
}
|
6735
6864
|
};
|
6736
|
-
return /* @__PURE__ */
|
6865
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react36.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react36.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react36.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react36.default.createElement(
|
6737
6866
|
"div",
|
6738
6867
|
{
|
6739
6868
|
style: { height: 40, backgroundColor: selectedColor },
|
6740
6869
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
6741
6870
|
},
|
6742
|
-
/* @__PURE__ */
|
6871
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
6743
6872
|
"input",
|
6744
6873
|
{
|
6745
6874
|
disabled: preview,
|
@@ -6758,7 +6887,7 @@ var ColorPicker = ({
|
|
6758
6887
|
...colorPickerProps
|
6759
6888
|
}
|
6760
6889
|
)
|
6761
|
-
), /* @__PURE__ */
|
6890
|
+
), /* @__PURE__ */ import_react36.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_react36.default.createElement(
|
6762
6891
|
"input",
|
6763
6892
|
{
|
6764
6893
|
disabled: preview,
|
@@ -6777,7 +6906,7 @@ var ColorPicker = ({
|
|
6777
6906
|
},
|
6778
6907
|
...textInputProps
|
6779
6908
|
}
|
6780
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
6909
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react36.default.createElement(
|
6781
6910
|
"p",
|
6782
6911
|
{
|
6783
6912
|
className: cn(
|
@@ -6790,7 +6919,7 @@ var ColorPicker = ({
|
|
6790
6919
|
};
|
6791
6920
|
|
6792
6921
|
// elements/progressCircle/ProgressCircle.tsx
|
6793
|
-
var
|
6922
|
+
var import_react37 = __toESM(require("react"));
|
6794
6923
|
var size2config = {
|
6795
6924
|
xs: { radius: 15, strokeWidth: 3 },
|
6796
6925
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -6807,7 +6936,7 @@ function getLimitedValue(input) {
|
|
6807
6936
|
return input;
|
6808
6937
|
}
|
6809
6938
|
}
|
6810
|
-
var ProgressCircle =
|
6939
|
+
var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
6811
6940
|
const {
|
6812
6941
|
value: inputValue,
|
6813
6942
|
size = "md",
|
@@ -6827,7 +6956,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6827
6956
|
const circumference = normalizedRadius * 2 * Math.PI;
|
6828
6957
|
const strokeDashoffset = value / 100 * circumference;
|
6829
6958
|
const offset = circumference - strokeDashoffset;
|
6830
|
-
return /* @__PURE__ */
|
6959
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react37.default.Fragment, null, /* @__PURE__ */ import_react37.default.createElement(
|
6831
6960
|
"div",
|
6832
6961
|
{
|
6833
6962
|
ref,
|
@@ -6836,7 +6965,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6836
6965
|
className
|
6837
6966
|
)
|
6838
6967
|
},
|
6839
|
-
/* @__PURE__ */
|
6968
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6840
6969
|
"svg",
|
6841
6970
|
{
|
6842
6971
|
width: radius * 2,
|
@@ -6844,7 +6973,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6844
6973
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
6845
6974
|
className: "hawa-rotate-180 hawa-transform"
|
6846
6975
|
},
|
6847
|
-
/* @__PURE__ */
|
6976
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6848
6977
|
"circle",
|
6849
6978
|
{
|
6850
6979
|
r: normalizedRadius,
|
@@ -6860,7 +6989,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6860
6989
|
)
|
6861
6990
|
}
|
6862
6991
|
),
|
6863
|
-
value > 0 ? /* @__PURE__ */
|
6992
|
+
value > 0 ? /* @__PURE__ */ import_react37.default.createElement(
|
6864
6993
|
"circle",
|
6865
6994
|
{
|
6866
6995
|
r: normalizedRadius,
|
@@ -6880,24 +7009,24 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6880
7009
|
}
|
6881
7010
|
) : null
|
6882
7011
|
),
|
6883
|
-
/* @__PURE__ */
|
7012
|
+
/* @__PURE__ */ import_react37.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
6884
7013
|
));
|
6885
7014
|
});
|
6886
7015
|
ProgressCircle.displayName = "ProgressCircle";
|
6887
7016
|
|
6888
7017
|
// elements/pagination/Pagination.tsx
|
6889
|
-
var
|
7018
|
+
var import_react38 = __toESM(require("react"));
|
6890
7019
|
var import_react_headless_pagination = require("react-headless-pagination");
|
6891
7020
|
var Pagination = ({
|
6892
7021
|
direction,
|
6893
7022
|
totalPages,
|
6894
7023
|
currentPage
|
6895
7024
|
}) => {
|
6896
|
-
const [page, setPage] =
|
7025
|
+
const [page, setPage] = import_react38.default.useState(currentPage || 0);
|
6897
7026
|
const handlePageChange = (page2) => {
|
6898
7027
|
setPage(page2);
|
6899
7028
|
};
|
6900
|
-
return /* @__PURE__ */
|
7029
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
6901
7030
|
import_react_headless_pagination.Pagination,
|
6902
7031
|
{
|
6903
7032
|
totalPages,
|
@@ -6909,10 +7038,10 @@ var Pagination = ({
|
|
6909
7038
|
truncableText: "...",
|
6910
7039
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
6911
7040
|
},
|
6912
|
-
/* @__PURE__ */
|
7041
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6913
7042
|
import_react_headless_pagination.Pagination.PrevButton,
|
6914
7043
|
{
|
6915
|
-
as: /* @__PURE__ */
|
7044
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6916
7045
|
"button",
|
6917
7046
|
{
|
6918
7047
|
"aria-label": "Previous Table Page",
|
@@ -6922,7 +7051,7 @@ var Pagination = ({
|
|
6922
7051
|
),
|
6923
7052
|
style: { minWidth: 36 }
|
6924
7053
|
},
|
6925
|
-
/* @__PURE__ */
|
7054
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6926
7055
|
"svg",
|
6927
7056
|
{
|
6928
7057
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6935,7 +7064,7 @@ var Pagination = ({
|
|
6935
7064
|
strokeLinecap: "round",
|
6936
7065
|
strokeLinejoin: "round"
|
6937
7066
|
},
|
6938
|
-
/* @__PURE__ */
|
7067
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6939
7068
|
)
|
6940
7069
|
),
|
6941
7070
|
className: cn(
|
@@ -6948,17 +7077,17 @@ var Pagination = ({
|
|
6948
7077
|
},
|
6949
7078
|
"Previous"
|
6950
7079
|
),
|
6951
|
-
/* @__PURE__ */
|
7080
|
+
/* @__PURE__ */ import_react38.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react38.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react38.default.createElement(
|
6952
7081
|
import_react_headless_pagination.Pagination.PageButton,
|
6953
7082
|
{
|
6954
7083
|
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",
|
6955
7084
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
6956
7085
|
}
|
6957
7086
|
))),
|
6958
|
-
/* @__PURE__ */
|
7087
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6959
7088
|
import_react_headless_pagination.Pagination.NextButton,
|
6960
7089
|
{
|
6961
|
-
as: /* @__PURE__ */
|
7090
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6962
7091
|
"button",
|
6963
7092
|
{
|
6964
7093
|
"aria-label": "Previous Table Page",
|
@@ -6968,7 +7097,7 @@ var Pagination = ({
|
|
6968
7097
|
),
|
6969
7098
|
style: { minWidth: 36 }
|
6970
7099
|
},
|
6971
|
-
/* @__PURE__ */
|
7100
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6972
7101
|
"svg",
|
6973
7102
|
{
|
6974
7103
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6981,7 +7110,7 @@ var Pagination = ({
|
|
6981
7110
|
strokeLinecap: "round",
|
6982
7111
|
strokeLinejoin: "round"
|
6983
7112
|
},
|
6984
|
-
/* @__PURE__ */
|
7113
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6985
7114
|
)
|
6986
7115
|
),
|
6987
7116
|
className: cn(
|
@@ -6998,14 +7127,14 @@ var Pagination = ({
|
|
6998
7127
|
};
|
6999
7128
|
|
7000
7129
|
// elements/passwordInput/PasswordInput.tsx
|
7001
|
-
var
|
7130
|
+
var import_react42 = __toESM(require("react"));
|
7002
7131
|
|
7003
7132
|
// icons/Emojis.tsx
|
7004
|
-
var
|
7133
|
+
var import_react39 = __toESM(require("react"));
|
7005
7134
|
|
7006
7135
|
// icons/InputIcons.tsx
|
7007
|
-
var
|
7008
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7136
|
+
var import_react40 = __toESM(require("react"));
|
7137
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react40.default.createElement(
|
7009
7138
|
"svg",
|
7010
7139
|
{
|
7011
7140
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7016,10 +7145,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElement("d
|
|
7016
7145
|
strokeLinecap: "round",
|
7017
7146
|
strokeLinejoin: "round"
|
7018
7147
|
},
|
7019
|
-
/* @__PURE__ */
|
7020
|
-
/* @__PURE__ */
|
7148
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7149
|
+
/* @__PURE__ */ import_react40.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7021
7150
|
));
|
7022
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7151
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react40.default.createElement(
|
7023
7152
|
"svg",
|
7024
7153
|
{
|
7025
7154
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7030,20 +7159,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElem
|
|
7030
7159
|
strokeLinecap: "round",
|
7031
7160
|
strokeLinejoin: "round"
|
7032
7161
|
},
|
7033
|
-
/* @__PURE__ */
|
7034
|
-
/* @__PURE__ */
|
7035
|
-
/* @__PURE__ */
|
7036
|
-
/* @__PURE__ */
|
7162
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7163
|
+
/* @__PURE__ */ import_react40.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" }),
|
7164
|
+
/* @__PURE__ */ import_react40.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" }),
|
7165
|
+
/* @__PURE__ */ import_react40.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7037
7166
|
));
|
7038
7167
|
|
7039
7168
|
// icons/CommonIcons.tsx
|
7040
|
-
var
|
7169
|
+
var import_react41 = __toESM(require("react"));
|
7041
7170
|
var CheckMark = ({ size = "default", className }) => {
|
7042
7171
|
let sizeStyles2 = {
|
7043
7172
|
default: "hawa-h-5 hawa-w-5",
|
7044
7173
|
sm: "hawa-h-3 hawa-w-3"
|
7045
7174
|
};
|
7046
|
-
return /* @__PURE__ */
|
7175
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7047
7176
|
"svg",
|
7048
7177
|
{
|
7049
7178
|
className: cn(sizeStyles2[size], className),
|
@@ -7051,7 +7180,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7051
7180
|
fill: "currentColor",
|
7052
7181
|
viewBox: "0 0 20 20"
|
7053
7182
|
},
|
7054
|
-
/* @__PURE__ */
|
7183
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7055
7184
|
"path",
|
7056
7185
|
{
|
7057
7186
|
fillRule: "evenodd",
|
@@ -7066,7 +7195,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7066
7195
|
default: "hawa-h-5 hawa-w-5",
|
7067
7196
|
sm: "hawa-h-3 hawa-w-3"
|
7068
7197
|
};
|
7069
|
-
return /* @__PURE__ */
|
7198
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7070
7199
|
"svg",
|
7071
7200
|
{
|
7072
7201
|
className: cn(sizeStyles2[size], className),
|
@@ -7074,7 +7203,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7074
7203
|
fill: "currentColor",
|
7075
7204
|
viewBox: "0 0 20 20"
|
7076
7205
|
},
|
7077
|
-
/* @__PURE__ */
|
7206
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7078
7207
|
"path",
|
7079
7208
|
{
|
7080
7209
|
fillRule: "evenodd",
|
@@ -7112,7 +7241,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7112
7241
|
strong: "80%",
|
7113
7242
|
"very-strong": "100%"
|
7114
7243
|
}[currentStrengthLevel];
|
7115
|
-
return /* @__PURE__ */
|
7244
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react42.default.createElement(
|
7116
7245
|
"div",
|
7117
7246
|
{
|
7118
7247
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7124,16 +7253,16 @@ var PasswordInput = ({
|
|
7124
7253
|
hidePopover,
|
7125
7254
|
...props
|
7126
7255
|
}) => {
|
7127
|
-
const [inputValue, setInputValue] = (0,
|
7128
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7129
|
-
const [currentStr, setCurrentStr] = (0,
|
7130
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7131
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7132
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7133
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7134
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7135
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7136
|
-
(0,
|
7256
|
+
const [inputValue, setInputValue] = (0, import_react42.useState)("");
|
7257
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react42.useState)(false);
|
7258
|
+
const [currentStr, setCurrentStr] = (0, import_react42.useState)(0);
|
7259
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react42.useState)(false);
|
7260
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react42.useState)(false);
|
7261
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react42.useState)(false);
|
7262
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react42.useState)(false);
|
7263
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7264
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7265
|
+
(0, import_react42.useEffect)(() => {
|
7137
7266
|
const calculateStrength = () => {
|
7138
7267
|
let strengthScore = 0;
|
7139
7268
|
if (lengthCriteriaMet)
|
@@ -7172,7 +7301,7 @@ var PasswordInput = ({
|
|
7172
7301
|
setIsInputFocused(false);
|
7173
7302
|
};
|
7174
7303
|
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";
|
7175
|
-
return /* @__PURE__ */
|
7304
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", null, /* @__PURE__ */ import_react42.default.createElement(
|
7176
7305
|
Popover,
|
7177
7306
|
{
|
7178
7307
|
width: "trigger",
|
@@ -7181,7 +7310,7 @@ var PasswordInput = ({
|
|
7181
7310
|
onOpenChange: setIsInputFocused,
|
7182
7311
|
triggerProps: { asChild: true },
|
7183
7312
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7184
|
-
trigger: /* @__PURE__ */
|
7313
|
+
trigger: /* @__PURE__ */ import_react42.default.createElement(
|
7185
7314
|
"div",
|
7186
7315
|
{
|
7187
7316
|
onClick: (e) => {
|
@@ -7191,7 +7320,7 @@ var PasswordInput = ({
|
|
7191
7320
|
}
|
7192
7321
|
}
|
7193
7322
|
},
|
7194
|
-
/* @__PURE__ */
|
7323
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7195
7324
|
Input,
|
7196
7325
|
{
|
7197
7326
|
width: "full",
|
@@ -7201,27 +7330,27 @@ var PasswordInput = ({
|
|
7201
7330
|
onFocus: handleInputFocus,
|
7202
7331
|
onBlur: handleInputBlur,
|
7203
7332
|
type: passwordVisible ? "text" : "password",
|
7204
|
-
endIcon: /* @__PURE__ */
|
7333
|
+
endIcon: /* @__PURE__ */ import_react42.default.createElement(
|
7205
7334
|
"div",
|
7206
7335
|
{
|
7207
7336
|
className: "hawa-cursor-pointer",
|
7208
7337
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7209
7338
|
},
|
7210
|
-
passwordVisible ? /* @__PURE__ */
|
7339
|
+
passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7211
7340
|
" "
|
7212
7341
|
)
|
7213
7342
|
}
|
7214
7343
|
)
|
7215
7344
|
)
|
7216
7345
|
},
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
), /* @__PURE__ */
|
7346
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react42.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7347
|
+
), /* @__PURE__ */ import_react42.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7219
7348
|
};
|
7220
7349
|
|
7221
7350
|
// elements/slider/Slider.tsx
|
7222
|
-
var
|
7351
|
+
var React59 = __toESM(require("react"));
|
7223
7352
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7224
|
-
var Slider =
|
7353
|
+
var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
7225
7354
|
SliderPrimitive.Root,
|
7226
7355
|
{
|
7227
7356
|
ref,
|
@@ -7231,13 +7360,13 @@ var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7231
7360
|
),
|
7232
7361
|
...props
|
7233
7362
|
},
|
7234
|
-
/* @__PURE__ */
|
7235
|
-
/* @__PURE__ */
|
7363
|
+
/* @__PURE__ */ React59.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__ */ React59.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7364
|
+
/* @__PURE__ */ React59.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" })
|
7236
7365
|
));
|
7237
7366
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7238
7367
|
|
7239
7368
|
// elements/simpleTable/SimpleTable.tsx
|
7240
|
-
var
|
7369
|
+
var React60 = __toESM(require("react"));
|
7241
7370
|
var import_react_table2 = require("@tanstack/react-table");
|
7242
7371
|
var SimpleTable = ({
|
7243
7372
|
columns,
|
@@ -7252,7 +7381,7 @@ var SimpleTable = ({
|
|
7252
7381
|
columns,
|
7253
7382
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7254
7383
|
});
|
7255
|
-
return /* @__PURE__ */
|
7384
|
+
return /* @__PURE__ */ React60.createElement(
|
7256
7385
|
"div",
|
7257
7386
|
{
|
7258
7387
|
className: cn(
|
@@ -7260,8 +7389,8 @@ var SimpleTable = ({
|
|
7260
7389
|
classNames
|
7261
7390
|
)
|
7262
7391
|
},
|
7263
|
-
props.isLoading ? /* @__PURE__ */
|
7264
|
-
return /* @__PURE__ */
|
7392
|
+
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7393
|
+
return /* @__PURE__ */ React60.createElement(
|
7265
7394
|
TableHead,
|
7266
7395
|
{
|
7267
7396
|
condensed: props.condensed,
|
@@ -7276,7 +7405,7 @@ var SimpleTable = ({
|
|
7276
7405
|
header.getContext()
|
7277
7406
|
)
|
7278
7407
|
);
|
7279
|
-
})))), /* @__PURE__ */
|
7408
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
7280
7409
|
TableRow,
|
7281
7410
|
{
|
7282
7411
|
key: row.id,
|
@@ -7284,7 +7413,7 @@ var SimpleTable = ({
|
|
7284
7413
|
},
|
7285
7414
|
row.getVisibleCells().map((cell) => {
|
7286
7415
|
var _a2;
|
7287
|
-
return /* @__PURE__ */
|
7416
|
+
return /* @__PURE__ */ React60.createElement(
|
7288
7417
|
TableCell,
|
7289
7418
|
{
|
7290
7419
|
dir: props.direction,
|
@@ -7300,7 +7429,7 @@ var SimpleTable = ({
|
|
7300
7429
|
)
|
7301
7430
|
);
|
7302
7431
|
})
|
7303
|
-
)) : /* @__PURE__ */
|
7432
|
+
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7304
7433
|
TableCell,
|
7305
7434
|
{
|
7306
7435
|
colSpan: columns.length,
|
@@ -7312,12 +7441,12 @@ var SimpleTable = ({
|
|
7312
7441
|
};
|
7313
7442
|
|
7314
7443
|
// elements/separator/Separator.tsx
|
7315
|
-
var
|
7444
|
+
var React61 = __toESM(require("react"));
|
7316
7445
|
var Separator2 = ({
|
7317
7446
|
className,
|
7318
7447
|
orientation = "horizontal",
|
7319
7448
|
...props
|
7320
|
-
}) => /* @__PURE__ */
|
7449
|
+
}) => /* @__PURE__ */ React61.createElement(
|
7321
7450
|
"div",
|
7322
7451
|
{
|
7323
7452
|
className: cn(
|
@@ -7330,12 +7459,12 @@ var Separator2 = ({
|
|
7330
7459
|
);
|
7331
7460
|
|
7332
7461
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7333
|
-
var
|
7462
|
+
var import_react43 = __toESM(require("react"));
|
7334
7463
|
var ScrollIndicator = ({
|
7335
7464
|
anchor,
|
7336
7465
|
inContainer = false
|
7337
7466
|
}) => {
|
7338
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7467
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react43.useState)(0);
|
7339
7468
|
const onScroll = () => {
|
7340
7469
|
const scrollElement = anchor.current;
|
7341
7470
|
if (scrollElement) {
|
@@ -7346,7 +7475,7 @@ var ScrollIndicator = ({
|
|
7346
7475
|
setScrollPercentage(percentageScrolled);
|
7347
7476
|
}
|
7348
7477
|
};
|
7349
|
-
(0,
|
7478
|
+
(0, import_react43.useEffect)(() => {
|
7350
7479
|
if (!anchor.current)
|
7351
7480
|
return;
|
7352
7481
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7355,7 +7484,7 @@ var ScrollIndicator = ({
|
|
7355
7484
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7356
7485
|
};
|
7357
7486
|
}, [anchor]);
|
7358
|
-
return /* @__PURE__ */
|
7487
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7359
7488
|
"div",
|
7360
7489
|
{
|
7361
7490
|
style: {
|
@@ -7371,39 +7500,11 @@ var ScrollIndicator = ({
|
|
7371
7500
|
};
|
7372
7501
|
|
7373
7502
|
// elements/codeBlock/CodeBlock.tsx
|
7374
|
-
var
|
7503
|
+
var import_react44 = __toESM(require("react"));
|
7375
7504
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7376
|
-
|
7377
|
-
// hooks/useClipboard.ts
|
7378
|
-
var import_react29 = require("react");
|
7379
|
-
function useClipboard({ timeout = 2e3 } = {}) {
|
7380
|
-
const [error, setError] = (0, import_react29.useState)(null);
|
7381
|
-
const [copied, setCopied] = (0, import_react29.useState)(false);
|
7382
|
-
const [copyTimeout, setCopyTimeout] = (0, import_react29.useState)(null);
|
7383
|
-
const handleCopyResult = (value) => {
|
7384
|
-
clearTimeout(copyTimeout);
|
7385
|
-
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
7386
|
-
setCopied(value);
|
7387
|
-
};
|
7388
|
-
const copy = (valueToCopy) => {
|
7389
|
-
if ("clipboard" in navigator) {
|
7390
|
-
navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
|
7391
|
-
} else {
|
7392
|
-
setError(new Error("useClipboard: navigator.clipboard is not supported"));
|
7393
|
-
}
|
7394
|
-
};
|
7395
|
-
const reset = () => {
|
7396
|
-
setCopied(false);
|
7397
|
-
setError(null);
|
7398
|
-
clearTimeout(copyTimeout);
|
7399
|
-
};
|
7400
|
-
return { copy, reset, error, copied };
|
7401
|
-
}
|
7402
|
-
|
7403
|
-
// elements/codeBlock/CodeBlock.tsx
|
7404
7505
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7405
7506
|
require("prismjs/components/prism-bash");
|
7406
|
-
var CopyIcon = () => /* @__PURE__ */
|
7507
|
+
var CopyIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
7407
7508
|
"svg",
|
7408
7509
|
{
|
7409
7510
|
"aria-label": "Copy",
|
@@ -7416,8 +7517,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react30.default.createElement(
|
|
7416
7517
|
height: "1em",
|
7417
7518
|
width: "1em"
|
7418
7519
|
},
|
7419
|
-
/* @__PURE__ */
|
7420
|
-
/* @__PURE__ */
|
7520
|
+
/* @__PURE__ */ import_react44.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7521
|
+
/* @__PURE__ */ import_react44.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" })
|
7421
7522
|
);
|
7422
7523
|
var CodeBlock = ({
|
7423
7524
|
tabs,
|
@@ -7431,7 +7532,7 @@ var CodeBlock = ({
|
|
7431
7532
|
...props
|
7432
7533
|
}) => {
|
7433
7534
|
const clipboard = useClipboard();
|
7434
|
-
const [selectedTab, setSelectedTab] = (0,
|
7535
|
+
const [selectedTab, setSelectedTab] = (0, import_react44.useState)(0);
|
7435
7536
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7436
7537
|
let widthStyles = {
|
7437
7538
|
full: "hawa-w-full",
|
@@ -7439,7 +7540,7 @@ var CodeBlock = ({
|
|
7439
7540
|
sm: "hawa-w-full hawa-max-w-sm",
|
7440
7541
|
xs: "hawa-w-full hawa-max-w-xs"
|
7441
7542
|
};
|
7442
|
-
return /* @__PURE__ */
|
7543
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
7443
7544
|
"div",
|
7444
7545
|
{
|
7445
7546
|
className: cn(
|
@@ -7448,7 +7549,7 @@ var CodeBlock = ({
|
|
7448
7549
|
classNames == null ? void 0 : classNames.root
|
7449
7550
|
)
|
7450
7551
|
},
|
7451
|
-
fileName && /* @__PURE__ */
|
7552
|
+
fileName && /* @__PURE__ */ import_react44.default.createElement(
|
7452
7553
|
"div",
|
7453
7554
|
{
|
7454
7555
|
className: cn(
|
@@ -7457,7 +7558,7 @@ var CodeBlock = ({
|
|
7457
7558
|
classNames == null ? void 0 : classNames.fileName
|
7458
7559
|
)
|
7459
7560
|
},
|
7460
|
-
/* @__PURE__ */
|
7561
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7461
7562
|
"div",
|
7462
7563
|
{
|
7463
7564
|
className: cn(
|
@@ -7467,7 +7568,7 @@ var CodeBlock = ({
|
|
7467
7568
|
fileName
|
7468
7569
|
)
|
7469
7570
|
),
|
7470
|
-
tabs && /* @__PURE__ */
|
7571
|
+
tabs && /* @__PURE__ */ import_react44.default.createElement(
|
7471
7572
|
"div",
|
7472
7573
|
{
|
7473
7574
|
className: cn(
|
@@ -7476,7 +7577,7 @@ var CodeBlock = ({
|
|
7476
7577
|
classNames == null ? void 0 : classNames.tabs
|
7477
7578
|
)
|
7478
7579
|
},
|
7479
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7580
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react44.default.createElement(
|
7480
7581
|
"div",
|
7481
7582
|
{
|
7482
7583
|
key: i,
|
@@ -7485,7 +7586,7 @@ var CodeBlock = ({
|
|
7485
7586
|
classNames == null ? void 0 : classNames.tab
|
7486
7587
|
)
|
7487
7588
|
},
|
7488
|
-
/* @__PURE__ */
|
7589
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7489
7590
|
"div",
|
7490
7591
|
{
|
7491
7592
|
onClick: () => setSelectedTab(i),
|
@@ -7497,7 +7598,7 @@ var CodeBlock = ({
|
|
7497
7598
|
)
|
7498
7599
|
))
|
7499
7600
|
),
|
7500
|
-
/* @__PURE__ */
|
7601
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7501
7602
|
"div",
|
7502
7603
|
{
|
7503
7604
|
className: cn(
|
@@ -7507,22 +7608,22 @@ var CodeBlock = ({
|
|
7507
7608
|
"hawa-overflow-y-auto"
|
7508
7609
|
)
|
7509
7610
|
},
|
7510
|
-
/* @__PURE__ */
|
7611
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7511
7612
|
"div",
|
7512
7613
|
{
|
7513
7614
|
className: cn(
|
7514
7615
|
"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"
|
7515
7616
|
)
|
7516
7617
|
},
|
7517
|
-
/* @__PURE__ */
|
7618
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7518
7619
|
Tooltip,
|
7519
7620
|
{
|
7520
7621
|
open: clipboard.copied,
|
7521
7622
|
side: "left",
|
7522
|
-
content: /* @__PURE__ */
|
7623
|
+
content: /* @__PURE__ */ import_react44.default.createElement("div", null, "Copied!"),
|
7523
7624
|
triggerProps: { asChild: true }
|
7524
7625
|
},
|
7525
|
-
/* @__PURE__ */
|
7626
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7526
7627
|
Button,
|
7527
7628
|
{
|
7528
7629
|
size: "smallIcon",
|
@@ -7530,18 +7631,18 @@ var CodeBlock = ({
|
|
7530
7631
|
variant: "outline",
|
7531
7632
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7532
7633
|
},
|
7533
|
-
/* @__PURE__ */
|
7634
|
+
/* @__PURE__ */ import_react44.default.createElement(CopyIcon, null)
|
7534
7635
|
)
|
7535
7636
|
)
|
7536
7637
|
),
|
7537
|
-
/* @__PURE__ */
|
7638
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7538
7639
|
import_prism_react_renderer.Highlight,
|
7539
7640
|
{
|
7540
7641
|
theme,
|
7541
7642
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7542
7643
|
language
|
7543
7644
|
},
|
7544
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7645
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react44.default.createElement(
|
7545
7646
|
"pre",
|
7546
7647
|
{
|
7547
7648
|
className: cn(
|
@@ -7551,7 +7652,7 @@ var CodeBlock = ({
|
|
7551
7652
|
wrapText && "hawa-text-wrap"
|
7552
7653
|
)
|
7553
7654
|
},
|
7554
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7655
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react44.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react44.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react44.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7555
7656
|
)
|
7556
7657
|
)
|
7557
7658
|
)
|
@@ -7559,8 +7660,8 @@ var CodeBlock = ({
|
|
7559
7660
|
};
|
7560
7661
|
|
7561
7662
|
// elements/carousel/Carousel.tsx
|
7562
|
-
var
|
7563
|
-
var
|
7663
|
+
var import_react45 = __toESM(require("react"));
|
7664
|
+
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7564
7665
|
var Carousel = ({
|
7565
7666
|
items,
|
7566
7667
|
showArrows,
|
@@ -7570,13 +7671,13 @@ var Carousel = ({
|
|
7570
7671
|
autoplayInterval = 3e3,
|
7571
7672
|
...props
|
7572
7673
|
}) => {
|
7573
|
-
const [emblaRef, emblaApi] = (0,
|
7674
|
+
const [emblaRef, emblaApi] = (0, import_embla_carousel_react2.default)({
|
7574
7675
|
...options,
|
7575
7676
|
direction,
|
7576
7677
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7577
7678
|
});
|
7578
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7579
|
-
(0,
|
7679
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react45.useState)(0);
|
7680
|
+
(0, import_react45.useEffect)(() => {
|
7580
7681
|
function selectHandler() {
|
7581
7682
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7582
7683
|
setSelectedIndex(index || 0);
|
@@ -7586,7 +7687,7 @@ var Carousel = ({
|
|
7586
7687
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7587
7688
|
};
|
7588
7689
|
}, [emblaApi]);
|
7589
|
-
(0,
|
7690
|
+
(0, import_react45.useEffect)(() => {
|
7590
7691
|
let autoplayTimer;
|
7591
7692
|
if (autoplay && emblaApi) {
|
7592
7693
|
autoplayTimer = setInterval(() => {
|
@@ -7598,17 +7699,17 @@ var Carousel = ({
|
|
7598
7699
|
clearInterval(autoplayTimer);
|
7599
7700
|
};
|
7600
7701
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7601
|
-
const length =
|
7702
|
+
const length = import_react45.default.Children.count(items);
|
7602
7703
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7603
7704
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7604
|
-
return /* @__PURE__ */
|
7705
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react45.default.createElement(
|
7605
7706
|
"div",
|
7606
7707
|
{
|
7607
7708
|
key: i,
|
7608
7709
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7609
7710
|
},
|
7610
7711
|
item
|
7611
|
-
))))), /* @__PURE__ */
|
7712
|
+
))))), /* @__PURE__ */ import_react45.default.createElement(
|
7612
7713
|
Dots,
|
7613
7714
|
{
|
7614
7715
|
direction,
|
@@ -7616,7 +7717,7 @@ var Carousel = ({
|
|
7616
7717
|
selectedIndex,
|
7617
7718
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7618
7719
|
}
|
7619
|
-
), showArrows && /* @__PURE__ */
|
7720
|
+
), showArrows && /* @__PURE__ */ import_react45.default.createElement(
|
7620
7721
|
CarouselControls,
|
7621
7722
|
{
|
7622
7723
|
canScrollNext,
|
@@ -7633,7 +7734,7 @@ var Dots = ({
|
|
7633
7734
|
direction
|
7634
7735
|
}) => {
|
7635
7736
|
const arr = new Array(itemsLength).fill(0);
|
7636
|
-
return /* @__PURE__ */
|
7737
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7637
7738
|
"div",
|
7638
7739
|
{
|
7639
7740
|
dir: direction,
|
@@ -7641,7 +7742,7 @@ var Dots = ({
|
|
7641
7742
|
},
|
7642
7743
|
arr.map((_, index) => {
|
7643
7744
|
const selected = index === selectedIndex;
|
7644
|
-
return /* @__PURE__ */
|
7745
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7645
7746
|
"div",
|
7646
7747
|
{
|
7647
7748
|
key: index,
|
@@ -7656,7 +7757,7 @@ var Dots = ({
|
|
7656
7757
|
);
|
7657
7758
|
};
|
7658
7759
|
var CarouselControls = (props) => {
|
7659
|
-
return /* @__PURE__ */
|
7760
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react45.default.createElement(
|
7660
7761
|
"button",
|
7661
7762
|
{
|
7662
7763
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7667,7 +7768,7 @@ var CarouselControls = (props) => {
|
|
7667
7768
|
props.canScrollPrev && "hawa-bg-primary"
|
7668
7769
|
)
|
7669
7770
|
},
|
7670
|
-
/* @__PURE__ */
|
7771
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7671
7772
|
"svg",
|
7672
7773
|
{
|
7673
7774
|
"aria-label": "Chevron Right Icon",
|
@@ -7676,9 +7777,9 @@ var CarouselControls = (props) => {
|
|
7676
7777
|
viewBox: "0 0 16 16",
|
7677
7778
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7678
7779
|
},
|
7679
|
-
/* @__PURE__ */
|
7780
|
+
/* @__PURE__ */ import_react45.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" })
|
7680
7781
|
)
|
7681
|
-
), /* @__PURE__ */
|
7782
|
+
), /* @__PURE__ */ import_react45.default.createElement(
|
7682
7783
|
"button",
|
7683
7784
|
{
|
7684
7785
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7689,7 +7790,7 @@ var CarouselControls = (props) => {
|
|
7689
7790
|
props.canScrollNext && "hawa-bg-primary"
|
7690
7791
|
)
|
7691
7792
|
},
|
7692
|
-
/* @__PURE__ */
|
7793
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7693
7794
|
"svg",
|
7694
7795
|
{
|
7695
7796
|
"aria-label": "Chevron Right Icon",
|
@@ -7698,19 +7799,19 @@ var CarouselControls = (props) => {
|
|
7698
7799
|
viewBox: "0 0 16 16",
|
7699
7800
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7700
7801
|
},
|
7701
|
-
/* @__PURE__ */
|
7802
|
+
/* @__PURE__ */ import_react45.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" })
|
7702
7803
|
)
|
7703
7804
|
));
|
7704
7805
|
};
|
7705
7806
|
|
7706
7807
|
// elements/count/Count.tsx
|
7707
|
-
var
|
7808
|
+
var import_react46 = __toESM(require("react"));
|
7708
7809
|
var Count = (props) => {
|
7709
|
-
return /* @__PURE__ */
|
7810
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react46.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7710
7811
|
};
|
7711
7812
|
|
7712
7813
|
// elements/toast/Toast.tsx
|
7713
|
-
var
|
7814
|
+
var React66 = __toESM(require("react"));
|
7714
7815
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7715
7816
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7716
7817
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7738,7 +7839,7 @@ var sizeStyles = {
|
|
7738
7839
|
sm: "hawa-text-xs"
|
7739
7840
|
};
|
7740
7841
|
var ToastProvider = ToastPrimitives.Provider;
|
7741
|
-
var ToastViewport =
|
7842
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7742
7843
|
ToastPrimitives.Viewport,
|
7743
7844
|
{
|
7744
7845
|
ref,
|
@@ -7750,8 +7851,8 @@ var ToastViewport = React58.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7750
7851
|
}
|
7751
7852
|
));
|
7752
7853
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7753
|
-
var Toast =
|
7754
|
-
return /* @__PURE__ */
|
7854
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7855
|
+
return /* @__PURE__ */ React66.createElement(
|
7755
7856
|
ToastPrimitives.Root,
|
7756
7857
|
{
|
7757
7858
|
ref,
|
@@ -7766,8 +7867,8 @@ var Toast = React58.forwardRef(({ className, variant, severity = "none", directi
|
|
7766
7867
|
);
|
7767
7868
|
});
|
7768
7869
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7769
|
-
var ToastAction =
|
7770
|
-
return /* @__PURE__ */
|
7870
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
7871
|
+
return /* @__PURE__ */ React66.createElement(
|
7771
7872
|
ToastPrimitives.Action,
|
7772
7873
|
{
|
7773
7874
|
ref,
|
@@ -7785,7 +7886,7 @@ var ToastAction = React58.forwardRef(({ className, ...props }, ref) => {
|
|
7785
7886
|
);
|
7786
7887
|
});
|
7787
7888
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7788
|
-
var ToastClose =
|
7889
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7789
7890
|
ToastPrimitives.Close,
|
7790
7891
|
{
|
7791
7892
|
ref,
|
@@ -7799,7 +7900,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7799
7900
|
"toast-close": "",
|
7800
7901
|
...props
|
7801
7902
|
},
|
7802
|
-
/* @__PURE__ */
|
7903
|
+
/* @__PURE__ */ React66.createElement(
|
7803
7904
|
"svg",
|
7804
7905
|
{
|
7805
7906
|
"aria-label": "Close Icon",
|
@@ -7808,7 +7909,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7808
7909
|
fill: "currentColor",
|
7809
7910
|
viewBox: "0 0 20 20"
|
7810
7911
|
},
|
7811
|
-
/* @__PURE__ */
|
7912
|
+
/* @__PURE__ */ React66.createElement(
|
7812
7913
|
"path",
|
7813
7914
|
{
|
7814
7915
|
fillRule: "evenodd",
|
@@ -7819,7 +7920,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7819
7920
|
)
|
7820
7921
|
));
|
7821
7922
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7822
|
-
var ToastTitle =
|
7923
|
+
var ToastTitle = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7823
7924
|
ToastPrimitives.Title,
|
7824
7925
|
{
|
7825
7926
|
ref,
|
@@ -7832,7 +7933,7 @@ var ToastTitle = React58.forwardRef(({ className, size = "default", ...props },
|
|
7832
7933
|
}
|
7833
7934
|
));
|
7834
7935
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7835
|
-
var ToastDescription =
|
7936
|
+
var ToastDescription = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7836
7937
|
ToastPrimitives.Description,
|
7837
7938
|
{
|
7838
7939
|
ref,
|
@@ -7847,11 +7948,11 @@ var ToastDescription = React58.forwardRef(({ className, size = "default", ...pro
|
|
7847
7948
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
7848
7949
|
|
7849
7950
|
// elements/toaster/Toaster.tsx
|
7850
|
-
var
|
7951
|
+
var import_react47 = __toESM(require("react"));
|
7851
7952
|
function Toaster(props) {
|
7852
7953
|
var _a;
|
7853
7954
|
let isRTL = props.direction === "rtl";
|
7854
|
-
return /* @__PURE__ */
|
7955
|
+
return /* @__PURE__ */ import_react47.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
7855
7956
|
id,
|
7856
7957
|
title,
|
7857
7958
|
description,
|
@@ -7859,7 +7960,7 @@ function Toaster(props) {
|
|
7859
7960
|
action,
|
7860
7961
|
...toastProps
|
7861
7962
|
}) {
|
7862
|
-
return /* @__PURE__ */
|
7963
|
+
return /* @__PURE__ */ import_react47.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react47.default.createElement(
|
7863
7964
|
"div",
|
7864
7965
|
{
|
7865
7966
|
className: cn(
|
@@ -7867,9 +7968,9 @@ function Toaster(props) {
|
|
7867
7968
|
action && "hawa-justify-between"
|
7868
7969
|
)
|
7869
7970
|
},
|
7870
|
-
/* @__PURE__ */
|
7871
|
-
/* @__PURE__ */
|
7872
|
-
/* @__PURE__ */
|
7971
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react47.default.createElement(ToastClose, null)),
|
7972
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
7973
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7873
7974
|
"div",
|
7874
7975
|
{
|
7875
7976
|
className: cn(
|
@@ -7877,11 +7978,11 @@ function Toaster(props) {
|
|
7877
7978
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
7878
7979
|
)
|
7879
7980
|
},
|
7880
|
-
/* @__PURE__ */
|
7881
|
-
action && /* @__PURE__ */
|
7981
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react47.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react47.default.createElement(ToastDescription, { size }, description)),
|
7982
|
+
action && /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
7882
7983
|
)
|
7883
7984
|
));
|
7884
|
-
}), /* @__PURE__ */
|
7985
|
+
}), /* @__PURE__ */ import_react47.default.createElement(
|
7885
7986
|
ToastViewport,
|
7886
7987
|
{
|
7887
7988
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -7890,20 +7991,20 @@ function Toaster(props) {
|
|
7890
7991
|
}
|
7891
7992
|
|
7892
7993
|
// elements/destroyableCard/DestroyableCard.tsx
|
7893
|
-
var
|
7994
|
+
var import_react48 = __toESM(require("react"));
|
7894
7995
|
var DestroyableCard = ({
|
7895
7996
|
position = "bottom-right",
|
7896
7997
|
fixed,
|
7897
7998
|
direction,
|
7898
7999
|
...props
|
7899
8000
|
}) => {
|
7900
|
-
const [closed, setClosed] = (0,
|
7901
|
-
const popUpRef = (0,
|
8001
|
+
const [closed, setClosed] = (0, import_react48.useState)(false);
|
8002
|
+
const popUpRef = (0, import_react48.useRef)(null);
|
7902
8003
|
const boxPosition = {
|
7903
8004
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
7904
8005
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
7905
8006
|
};
|
7906
|
-
return /* @__PURE__ */
|
8007
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7907
8008
|
"div",
|
7908
8009
|
{
|
7909
8010
|
className: cn(
|
@@ -7912,7 +8013,7 @@ var DestroyableCard = ({
|
|
7912
8013
|
),
|
7913
8014
|
ref: popUpRef
|
7914
8015
|
},
|
7915
|
-
/* @__PURE__ */
|
8016
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7916
8017
|
Card,
|
7917
8018
|
{
|
7918
8019
|
className: cn(
|
@@ -7921,7 +8022,7 @@ var DestroyableCard = ({
|
|
7921
8022
|
),
|
7922
8023
|
dir: direction
|
7923
8024
|
},
|
7924
|
-
/* @__PURE__ */
|
8025
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7925
8026
|
"button",
|
7926
8027
|
{
|
7927
8028
|
type: "button",
|
@@ -7940,7 +8041,7 @@ var DestroyableCard = ({
|
|
7940
8041
|
}, 200);
|
7941
8042
|
}
|
7942
8043
|
},
|
7943
|
-
/* @__PURE__ */
|
8044
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7944
8045
|
"svg",
|
7945
8046
|
{
|
7946
8047
|
"aria-hidden": "true",
|
@@ -7948,7 +8049,7 @@ var DestroyableCard = ({
|
|
7948
8049
|
fill: "currentColor",
|
7949
8050
|
viewBox: "0 0 20 20"
|
7950
8051
|
},
|
7951
|
-
/* @__PURE__ */
|
8052
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7952
8053
|
"path",
|
7953
8054
|
{
|
7954
8055
|
fillRule: "evenodd",
|
@@ -7958,13 +8059,13 @@ var DestroyableCard = ({
|
|
7958
8059
|
)
|
7959
8060
|
)
|
7960
8061
|
),
|
7961
|
-
/* @__PURE__ */
|
8062
|
+
/* @__PURE__ */ import_react48.default.createElement(CardContent, { headless: true }, props.children)
|
7962
8063
|
)
|
7963
8064
|
);
|
7964
8065
|
};
|
7965
8066
|
|
7966
8067
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
7967
|
-
var
|
8068
|
+
var import_react49 = __toESM(require("react"));
|
7968
8069
|
var InterfaceSettings = ({
|
7969
8070
|
orientation = "horizontal",
|
7970
8071
|
width = "default",
|
@@ -7972,13 +8073,13 @@ var InterfaceSettings = ({
|
|
7972
8073
|
handleLanguage,
|
7973
8074
|
...props
|
7974
8075
|
}) => {
|
7975
|
-
const [color, setColor] = (0,
|
7976
|
-
const [language, setLanguage] = (0,
|
8076
|
+
const [color, setColor] = (0, import_react49.useState)(props.currentColorMode);
|
8077
|
+
const [language, setLanguage] = (0, import_react49.useState)(props.currentLanguage);
|
7977
8078
|
let orientationStyle = {
|
7978
8079
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
7979
8080
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
7980
8081
|
};
|
7981
|
-
return /* @__PURE__ */
|
8082
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react49.default.createElement(
|
7982
8083
|
Radio,
|
7983
8084
|
{
|
7984
8085
|
name: "language",
|
@@ -7996,7 +8097,7 @@ var InterfaceSettings = ({
|
|
7996
8097
|
{ value: "en", label: "English" }
|
7997
8098
|
]
|
7998
8099
|
}
|
7999
|
-
), /* @__PURE__ */
|
8100
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
8000
8101
|
Radio,
|
8001
8102
|
{
|
8002
8103
|
name: "theme",
|
@@ -8012,7 +8113,7 @@ var InterfaceSettings = ({
|
|
8012
8113
|
options: [
|
8013
8114
|
{
|
8014
8115
|
value: "light",
|
8015
|
-
label: /* @__PURE__ */
|
8116
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
8016
8117
|
"svg",
|
8017
8118
|
{
|
8018
8119
|
width: "15",
|
@@ -8022,7 +8123,7 @@ var InterfaceSettings = ({
|
|
8022
8123
|
xmlns: "http://www.w3.org/2000/svg",
|
8023
8124
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8024
8125
|
},
|
8025
|
-
/* @__PURE__ */
|
8126
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8026
8127
|
"path",
|
8027
8128
|
{
|
8028
8129
|
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",
|
@@ -8033,7 +8134,7 @@ var InterfaceSettings = ({
|
|
8033
8134
|
},
|
8034
8135
|
{
|
8035
8136
|
value: "dark",
|
8036
|
-
label: /* @__PURE__ */
|
8137
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
8037
8138
|
"svg",
|
8038
8139
|
{
|
8039
8140
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8044,7 +8145,7 @@ var InterfaceSettings = ({
|
|
8044
8145
|
stroke: "currentColor",
|
8045
8146
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8046
8147
|
},
|
8047
|
-
/* @__PURE__ */
|
8148
|
+
/* @__PURE__ */ import_react49.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8048
8149
|
)
|
8049
8150
|
}
|
8050
8151
|
]
|
@@ -8053,14 +8154,14 @@ var InterfaceSettings = ({
|
|
8053
8154
|
};
|
8054
8155
|
|
8055
8156
|
// elements/phoneMockup/PhoneMockup.tsx
|
8056
|
-
var
|
8157
|
+
var import_react50 = __toESM(require("react"));
|
8057
8158
|
var PhoneMockup = ({
|
8058
8159
|
children,
|
8059
8160
|
upperOverlayGradiant,
|
8060
8161
|
lowerOverlayGradiant,
|
8061
8162
|
phone,
|
8062
8163
|
hideButtons
|
8063
|
-
}) => /* @__PURE__ */
|
8164
|
+
}) => /* @__PURE__ */ import_react50.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_react50.default.createElement(import_react50.default.Fragment, null, /* @__PURE__ */ import_react50.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_react50.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_react50.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_react50.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_react50.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_react50.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_react50.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)]" }));
|
8064
8165
|
// Annotate the CommonJS export names for ESM import in node:
|
8065
8166
|
0 && (module.exports = {
|
8066
8167
|
Accordion,
|