@sikka/hawa 0.30.26-next → 0.30.28-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 +319 -205
- package/dist/blocks/index.mjs +3 -2
- package/dist/blocks/misc/index.js +263 -149
- package/dist/blocks/misc/index.mjs +184 -70
- package/dist/{chunk-QDRFTC7W.mjs → chunk-MNK7PSNG.mjs} +48 -14
- package/dist/chunk-R2SKHHDK.mjs +411 -0
- package/dist/{chunk-H7ZADF2Z.mjs → chunk-UDCDD66A.mjs} +8 -0
- package/dist/elements/index.js +398 -289
- package/dist/elements/index.mjs +5 -5
- package/dist/floatBox/index.d.mts +3 -0
- package/dist/floatBox/index.d.ts +3 -0
- package/dist/floatBox/index.js +32 -12
- package/dist/floatBox/index.js.map +1 -1
- package/dist/floatBox/index.mjs +32 -12
- 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.css +68 -0
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +4243 -4176
- package/dist/index.mjs +1490 -1424
- package/dist/layout/index.mjs +3 -4
- package/dist/tabs/index.js +146 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +146 -32
- 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,42 +4108,168 @@ 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",
|
4229
|
+
arrow = true,
|
4122
4230
|
...props
|
4123
4231
|
}) => {
|
4124
|
-
let
|
4125
|
-
|
4126
|
-
|
4232
|
+
let stylesMap = {
|
4233
|
+
bottom: {
|
4234
|
+
start: { top: sideOffset, insetInlineStart: 0 },
|
4235
|
+
center: { top: sideOffset },
|
4236
|
+
end: { top: sideOffset, insetInlineEnd: 0 }
|
4237
|
+
},
|
4238
|
+
top: {
|
4239
|
+
start: { bottom: sideOffset, insetInlineStart: 0 },
|
4240
|
+
center: { bottom: sideOffset },
|
4241
|
+
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
4242
|
+
},
|
4243
|
+
right: {
|
4244
|
+
start: { left: sideOffset, top: -5 },
|
4245
|
+
center: { left: sideOffset },
|
4246
|
+
end: { left: sideOffset, bottom: 0 }
|
4247
|
+
},
|
4248
|
+
left: {
|
4249
|
+
start: { right: sideOffset, top: 0 },
|
4250
|
+
center: { right: sideOffset },
|
4251
|
+
end: { right: sideOffset, bottom: 0 }
|
4252
|
+
}
|
4127
4253
|
};
|
4128
|
-
|
4129
|
-
|
4130
|
-
|
4131
|
-
right:
|
4132
|
-
left:
|
4254
|
+
const arrowDirection = {
|
4255
|
+
top: "hawa-arrow-default-bottom",
|
4256
|
+
bottom: "hawa-arrow-default-top",
|
4257
|
+
right: "hawa-arrow-default-left",
|
4258
|
+
left: "hawa-arrow-default-right"
|
4133
4259
|
};
|
4134
|
-
return /* @__PURE__ */
|
4260
|
+
return /* @__PURE__ */ React39.createElement(
|
4135
4261
|
"div",
|
4136
4262
|
{
|
4137
4263
|
className: cn(
|
4138
|
-
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border
|
4139
|
-
sideOffsetStyles[side],
|
4264
|
+
"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-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 hawa-bg-popover",
|
4140
4265
|
className
|
4141
4266
|
),
|
4142
|
-
style: { ...
|
4267
|
+
style: { ...stylesMap[side][align] },
|
4143
4268
|
"data-side": side,
|
4144
4269
|
"data-floatbox-state": open ? "open" : "closed"
|
4145
4270
|
},
|
4146
|
-
|
4271
|
+
arrow && /* @__PURE__ */ React39.createElement("div", { className: cn("hawa-bg-red-500", arrowDirection[side]) }),
|
4272
|
+
/* @__PURE__ */ React39.createElement("span", null, props.children)
|
4147
4273
|
);
|
4148
4274
|
};
|
4149
4275
|
|
@@ -4206,8 +4332,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4206
4332
|
],
|
4207
4333
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4208
4334
|
});
|
4209
|
-
var TabsContext =
|
4210
|
-
var Tabs =
|
4335
|
+
var TabsContext = React40.createContext({ orientation: "horizontal", variant: "default" });
|
4336
|
+
var Tabs = React40.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4211
4337
|
TabsPrimitive.Root,
|
4212
4338
|
{
|
4213
4339
|
ref,
|
@@ -4218,11 +4344,11 @@ var Tabs = React32.forwardRef(({ className, orientation, variant = "default", ..
|
|
4218
4344
|
),
|
4219
4345
|
...props
|
4220
4346
|
},
|
4221
|
-
/* @__PURE__ */
|
4347
|
+
/* @__PURE__ */ React40.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4222
4348
|
));
|
4223
|
-
var TabsList =
|
4224
|
-
const { orientation, variant } =
|
4225
|
-
return /* @__PURE__ */
|
4349
|
+
var TabsList = React40.forwardRef(({ className, ...props }, ref) => {
|
4350
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4351
|
+
return /* @__PURE__ */ React40.createElement(
|
4226
4352
|
TabsPrimitive.List,
|
4227
4353
|
{
|
4228
4354
|
ref,
|
@@ -4235,12 +4361,14 @@ var TabsList = React32.forwardRef(({ className, ...props }, ref) => {
|
|
4235
4361
|
}
|
4236
4362
|
);
|
4237
4363
|
});
|
4238
|
-
var TabsTrigger =
|
4239
|
-
const { orientation, variant } =
|
4240
|
-
|
4364
|
+
var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4365
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4366
|
+
const tabTriggerRef = React40.useRef(null);
|
4367
|
+
const { width } = useMeasureDirty(tabTriggerRef);
|
4368
|
+
return /* @__PURE__ */ React40.createElement(
|
4241
4369
|
TabsPrimitive.Trigger,
|
4242
4370
|
{
|
4243
|
-
ref,
|
4371
|
+
ref: tabTriggerRef,
|
4244
4372
|
className: cn(
|
4245
4373
|
tabsTriggerVariant({ variant, orientation }),
|
4246
4374
|
"hawa-relative",
|
@@ -4249,11 +4377,20 @@ var TabsTrigger = React32.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4249
4377
|
...props
|
4250
4378
|
},
|
4251
4379
|
props.children,
|
4252
|
-
chipProps && /* @__PURE__ */
|
4253
|
-
/* @__PURE__ */
|
4380
|
+
chipProps && /* @__PURE__ */ React40.createElement(Chip, { ...chipProps }),
|
4381
|
+
/* @__PURE__ */ React40.createElement(
|
4382
|
+
FloatBox,
|
4383
|
+
{
|
4384
|
+
align: orientation === "vertical" ? "start" : "start",
|
4385
|
+
side: orientation === "vertical" ? "right" : "bottom",
|
4386
|
+
sideOffset: orientation === "vertical" ? width + 30 : 45,
|
4387
|
+
open: props.showPopover
|
4388
|
+
},
|
4389
|
+
props.popoverContent
|
4390
|
+
)
|
4254
4391
|
);
|
4255
4392
|
});
|
4256
|
-
var TabsContent =
|
4393
|
+
var TabsContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4257
4394
|
TabsPrimitive.Content,
|
4258
4395
|
{
|
4259
4396
|
ref,
|
@@ -4270,7 +4407,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4270
4407
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4271
4408
|
|
4272
4409
|
// elements/select/Select.tsx
|
4273
|
-
var
|
4410
|
+
var import_react29 = __toESM(require("react"));
|
4274
4411
|
var import_react_select = __toESM(require("react-select"));
|
4275
4412
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4276
4413
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4281,10 +4418,10 @@ var Select = ({
|
|
4281
4418
|
}) => {
|
4282
4419
|
const NoOption = () => {
|
4283
4420
|
var _a, _b;
|
4284
|
-
return /* @__PURE__ */
|
4421
|
+
return /* @__PURE__ */ import_react29.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4285
4422
|
};
|
4286
4423
|
const Control = ({ children, innerProps, innerRef }) => {
|
4287
|
-
return /* @__PURE__ */
|
4424
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4288
4425
|
"div",
|
4289
4426
|
{
|
4290
4427
|
ref: innerRef,
|
@@ -4297,7 +4434,7 @@ var Select = ({
|
|
4297
4434
|
);
|
4298
4435
|
};
|
4299
4436
|
const Option = ({ children, innerProps, innerRef }) => {
|
4300
|
-
return /* @__PURE__ */
|
4437
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4301
4438
|
"div",
|
4302
4439
|
{
|
4303
4440
|
ref: innerRef,
|
@@ -4318,7 +4455,7 @@ var Select = ({
|
|
4318
4455
|
...menuProps
|
4319
4456
|
}) => {
|
4320
4457
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4321
|
-
return /* @__PURE__ */
|
4458
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4322
4459
|
"div",
|
4323
4460
|
{
|
4324
4461
|
className: cn(
|
@@ -4332,7 +4469,7 @@ var Select = ({
|
|
4332
4469
|
children
|
4333
4470
|
);
|
4334
4471
|
};
|
4335
|
-
return /* @__PURE__ */
|
4472
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4336
4473
|
"div",
|
4337
4474
|
{
|
4338
4475
|
className: cn(
|
@@ -4340,10 +4477,10 @@ var Select = ({
|
|
4340
4477
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4341
4478
|
)
|
4342
4479
|
},
|
4343
|
-
props.label && /* @__PURE__ */
|
4344
|
-
props.isLoading ? /* @__PURE__ */
|
4480
|
+
props.label && /* @__PURE__ */ import_react29.default.createElement(Label2, { ...labelProps }, props.label),
|
4481
|
+
props.isLoading ? /* @__PURE__ */ import_react29.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4345
4482
|
// TODO: enable keyboard to go to the next item in the list
|
4346
|
-
/* @__PURE__ */
|
4483
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
4347
4484
|
import_react_select.default,
|
4348
4485
|
{
|
4349
4486
|
noOptionsMessage: NoOption,
|
@@ -4380,7 +4517,7 @@ var Select = ({
|
|
4380
4517
|
isSearchable: props.isSearchable
|
4381
4518
|
}
|
4382
4519
|
)
|
4383
|
-
) : /* @__PURE__ */
|
4520
|
+
) : /* @__PURE__ */ import_react29.default.createElement(
|
4384
4521
|
import_creatable.default,
|
4385
4522
|
{
|
4386
4523
|
formatCreateLabel: (inputValue) => {
|
@@ -4410,7 +4547,7 @@ var Select = ({
|
|
4410
4547
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4411
4548
|
}
|
4412
4549
|
),
|
4413
|
-
!props.hideHelperText && /* @__PURE__ */
|
4550
|
+
!props.hideHelperText && /* @__PURE__ */ import_react29.default.createElement(
|
4414
4551
|
"p",
|
4415
4552
|
{
|
4416
4553
|
className: cn(
|
@@ -4424,15 +4561,15 @@ var Select = ({
|
|
4424
4561
|
};
|
4425
4562
|
|
4426
4563
|
// elements/switch/Switch.tsx
|
4427
|
-
var
|
4564
|
+
var React42 = __toESM(require("react"));
|
4428
4565
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4429
|
-
var Switch =
|
4566
|
+
var Switch = React42.forwardRef(
|
4430
4567
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4431
|
-
const [parentDirection, setParentDirection] =
|
4568
|
+
const [parentDirection, setParentDirection] = React42.useState(
|
4432
4569
|
null
|
4433
4570
|
);
|
4434
|
-
const parentRef =
|
4435
|
-
|
4571
|
+
const parentRef = React42.useRef(null);
|
4572
|
+
React42.useEffect(() => {
|
4436
4573
|
var _a;
|
4437
4574
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4438
4575
|
if (parentNode) {
|
@@ -4460,13 +4597,13 @@ var Switch = React34.forwardRef(
|
|
4460
4597
|
full: "hawa-rounded-full",
|
4461
4598
|
inherit: "hawa-rounded-inner"
|
4462
4599
|
};
|
4463
|
-
return /* @__PURE__ */
|
4600
|
+
return /* @__PURE__ */ React42.createElement(
|
4464
4601
|
"div",
|
4465
4602
|
{
|
4466
4603
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4467
4604
|
ref: parentRef
|
4468
4605
|
},
|
4469
|
-
/* @__PURE__ */
|
4606
|
+
/* @__PURE__ */ React42.createElement(
|
4470
4607
|
SwitchPrimitives.Root,
|
4471
4608
|
{
|
4472
4609
|
className: cn(
|
@@ -4480,7 +4617,7 @@ var Switch = React34.forwardRef(
|
|
4480
4617
|
...props,
|
4481
4618
|
ref
|
4482
4619
|
},
|
4483
|
-
/* @__PURE__ */
|
4620
|
+
/* @__PURE__ */ React42.createElement(
|
4484
4621
|
SwitchPrimitives.Thumb,
|
4485
4622
|
{
|
4486
4623
|
className: cn(
|
@@ -4494,14 +4631,14 @@ var Switch = React34.forwardRef(
|
|
4494
4631
|
}
|
4495
4632
|
)
|
4496
4633
|
),
|
4497
|
-
label && /* @__PURE__ */
|
4634
|
+
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
4635
|
);
|
4499
4636
|
}
|
4500
4637
|
);
|
4501
4638
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4502
4639
|
|
4503
4640
|
// elements/checkbox/Checkbox.tsx
|
4504
|
-
var
|
4641
|
+
var React43 = __toESM(require("react"));
|
4505
4642
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4506
4643
|
var Checkbox = ({
|
4507
4644
|
id,
|
@@ -4521,7 +4658,7 @@ var Checkbox = ({
|
|
4521
4658
|
lg: 0.9,
|
4522
4659
|
xl: 1
|
4523
4660
|
};
|
4524
|
-
return /* @__PURE__ */
|
4661
|
+
return /* @__PURE__ */ React43.createElement(
|
4525
4662
|
"div",
|
4526
4663
|
{
|
4527
4664
|
className: cn(
|
@@ -4529,7 +4666,7 @@ var Checkbox = ({
|
|
4529
4666
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4530
4667
|
)
|
4531
4668
|
},
|
4532
|
-
/* @__PURE__ */
|
4669
|
+
/* @__PURE__ */ React43.createElement(
|
4533
4670
|
CheckboxElement,
|
4534
4671
|
{
|
4535
4672
|
...props,
|
@@ -4539,7 +4676,7 @@ var Checkbox = ({
|
|
4539
4676
|
id
|
4540
4677
|
}
|
4541
4678
|
),
|
4542
|
-
(label || helperText) && /* @__PURE__ */
|
4679
|
+
(label || helperText) && /* @__PURE__ */ React43.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React43.createElement(
|
4543
4680
|
"label",
|
4544
4681
|
{
|
4545
4682
|
htmlFor: id,
|
@@ -4553,7 +4690,7 @@ var Checkbox = ({
|
|
4553
4690
|
}
|
4554
4691
|
},
|
4555
4692
|
label
|
4556
|
-
), sublabel && /* @__PURE__ */
|
4693
|
+
), sublabel && /* @__PURE__ */ React43.createElement(
|
4557
4694
|
"label",
|
4558
4695
|
{
|
4559
4696
|
htmlFor: id,
|
@@ -4563,7 +4700,7 @@ var Checkbox = ({
|
|
4563
4700
|
)
|
4564
4701
|
},
|
4565
4702
|
sublabel
|
4566
|
-
), helperText && !disabled && /* @__PURE__ */
|
4703
|
+
), helperText && !disabled && /* @__PURE__ */ React43.createElement(
|
4567
4704
|
"label",
|
4568
4705
|
{
|
4569
4706
|
htmlFor: id,
|
@@ -4576,7 +4713,7 @@ var Checkbox = ({
|
|
4576
4713
|
))
|
4577
4714
|
);
|
4578
4715
|
};
|
4579
|
-
var CheckboxElement =
|
4716
|
+
var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4580
4717
|
let checkboxRadius = {
|
4581
4718
|
none: "hawa-rounded-none",
|
4582
4719
|
inherit: "hawa-rounded-sm",
|
@@ -4598,7 +4735,7 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4598
4735
|
lg: "1em",
|
4599
4736
|
xl: "1.25em"
|
4600
4737
|
};
|
4601
|
-
return /* @__PURE__ */
|
4738
|
+
return /* @__PURE__ */ React43.createElement(
|
4602
4739
|
CheckboxPrimitive.Root,
|
4603
4740
|
{
|
4604
4741
|
ref,
|
@@ -4610,14 +4747,14 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4610
4747
|
),
|
4611
4748
|
...props
|
4612
4749
|
},
|
4613
|
-
/* @__PURE__ */
|
4750
|
+
/* @__PURE__ */ React43.createElement(
|
4614
4751
|
CheckboxPrimitive.Indicator,
|
4615
4752
|
{
|
4616
4753
|
className: cn(
|
4617
4754
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4618
4755
|
)
|
4619
4756
|
},
|
4620
|
-
/* @__PURE__ */
|
4757
|
+
/* @__PURE__ */ React43.createElement(
|
4621
4758
|
"svg",
|
4622
4759
|
{
|
4623
4760
|
"aria-label": "Check Mark",
|
@@ -4628,7 +4765,7 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4628
4765
|
height: checkboxIndicatorSizes[size],
|
4629
4766
|
width: checkboxIndicatorSizes[size]
|
4630
4767
|
},
|
4631
|
-
/* @__PURE__ */
|
4768
|
+
/* @__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
4769
|
),
|
4633
4770
|
" "
|
4634
4771
|
)
|
@@ -4637,9 +4774,9 @@ var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default"
|
|
4637
4774
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4638
4775
|
|
4639
4776
|
// elements/progress/Progress.tsx
|
4640
|
-
var
|
4777
|
+
var React44 = __toESM(require("react"));
|
4641
4778
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4642
|
-
var Progress =
|
4779
|
+
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
4780
|
ProgressPrimitive.Root,
|
4644
4781
|
{
|
4645
4782
|
ref,
|
@@ -4649,7 +4786,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4649
4786
|
),
|
4650
4787
|
...props
|
4651
4788
|
},
|
4652
|
-
/* @__PURE__ */
|
4789
|
+
/* @__PURE__ */ React44.createElement(
|
4653
4790
|
ProgressPrimitive.Indicator,
|
4654
4791
|
{
|
4655
4792
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4660,7 +4797,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4660
4797
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4661
4798
|
|
4662
4799
|
// elements/breadcrumb/Breadcrumb.tsx
|
4663
|
-
var
|
4800
|
+
var import_react30 = __toESM(require("react"));
|
4664
4801
|
var Breadcrumb = ({
|
4665
4802
|
breadcrumbLinks,
|
4666
4803
|
separator = ">",
|
@@ -4671,7 +4808,7 @@ var Breadcrumb = ({
|
|
4671
4808
|
small: "hawa-text-sm",
|
4672
4809
|
xs: "hawa-text-xs"
|
4673
4810
|
};
|
4674
|
-
return /* @__PURE__ */
|
4811
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4675
4812
|
"div",
|
4676
4813
|
{
|
4677
4814
|
className: cn(
|
@@ -4679,13 +4816,13 @@ var Breadcrumb = ({
|
|
4679
4816
|
textStyles[size]
|
4680
4817
|
)
|
4681
4818
|
},
|
4682
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4819
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react30.default.createElement(
|
4683
4820
|
"div",
|
4684
4821
|
{
|
4685
4822
|
key: index,
|
4686
4823
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4687
4824
|
},
|
4688
|
-
/* @__PURE__ */
|
4825
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
4689
4826
|
"a",
|
4690
4827
|
{
|
4691
4828
|
href: singleBreadcrumbLink.href,
|
@@ -4693,49 +4830,49 @@ var Breadcrumb = ({
|
|
4693
4830
|
},
|
4694
4831
|
singleBreadcrumbLink.label
|
4695
4832
|
),
|
4696
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4833
|
+
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
4834
|
))
|
4698
4835
|
);
|
4699
4836
|
};
|
4700
4837
|
|
4701
4838
|
// elements/appStores/AppStores.tsx
|
4702
|
-
var
|
4839
|
+
var import_react31 = __toESM(require("react"));
|
4703
4840
|
var AppStores = (props) => {
|
4704
|
-
return /* @__PURE__ */
|
4841
|
+
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
4842
|
"path",
|
4706
4843
|
{
|
4707
4844
|
fill: "currentColor",
|
4708
4845
|
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
4846
|
}
|
4710
|
-
))), /* @__PURE__ */
|
4847
|
+
))), /* @__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
4848
|
"path",
|
4712
4849
|
{
|
4713
4850
|
fill: "#FFD400",
|
4714
4851
|
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
4852
|
}
|
4716
|
-
), /* @__PURE__ */
|
4853
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4717
4854
|
"path",
|
4718
4855
|
{
|
4719
4856
|
fill: "#FF3333",
|
4720
4857
|
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
4858
|
}
|
4722
|
-
), /* @__PURE__ */
|
4859
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4723
4860
|
"path",
|
4724
4861
|
{
|
4725
4862
|
fill: "#48FF48",
|
4726
4863
|
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
4864
|
}
|
4728
|
-
), /* @__PURE__ */
|
4865
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4729
4866
|
"path",
|
4730
4867
|
{
|
4731
4868
|
fill: "#3BCCFF",
|
4732
4869
|
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
4870
|
}
|
4734
|
-
))), /* @__PURE__ */
|
4871
|
+
))), /* @__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
4872
|
};
|
4736
4873
|
|
4737
4874
|
// elements/badge/Badge.tsx
|
4738
|
-
var
|
4875
|
+
var import_react32 = __toESM(require("react"));
|
4739
4876
|
var Badge = ({
|
4740
4877
|
anchor,
|
4741
4878
|
position = "right",
|
@@ -4743,14 +4880,14 @@ var Badge = ({
|
|
4743
4880
|
text,
|
4744
4881
|
className
|
4745
4882
|
}) => {
|
4746
|
-
const [badgePosition, setBadgePosition] = (0,
|
4747
|
-
const indicatorRef = (0,
|
4883
|
+
const [badgePosition, setBadgePosition] = (0, import_react32.useState)(null);
|
4884
|
+
const indicatorRef = (0, import_react32.useRef)(null);
|
4748
4885
|
const sizeStyles2 = {
|
4749
4886
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
4750
4887
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
4751
4888
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
4752
4889
|
};
|
4753
|
-
(0,
|
4890
|
+
(0, import_react32.useEffect)(() => {
|
4754
4891
|
const handlePositioning = () => {
|
4755
4892
|
var _a;
|
4756
4893
|
if (anchor.current && indicatorRef.current) {
|
@@ -4773,7 +4910,7 @@ var Badge = ({
|
|
4773
4910
|
window.removeEventListener("resize", handlePositioning);
|
4774
4911
|
};
|
4775
4912
|
}, [anchor]);
|
4776
|
-
return /* @__PURE__ */
|
4913
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react32.default.createElement(
|
4777
4914
|
"div",
|
4778
4915
|
{
|
4779
4916
|
style: {
|
@@ -4798,8 +4935,8 @@ var BadgedComponent = ({
|
|
4798
4935
|
size,
|
4799
4936
|
text
|
4800
4937
|
}) => {
|
4801
|
-
const ref = (0,
|
4802
|
-
return /* @__PURE__ */
|
4938
|
+
const ref = (0, import_react32.useRef)(null);
|
4939
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react32.default.createElement(
|
4803
4940
|
Badge,
|
4804
4941
|
{
|
4805
4942
|
size,
|
@@ -4812,7 +4949,7 @@ var BadgedComponent = ({
|
|
4812
4949
|
};
|
4813
4950
|
|
4814
4951
|
// elements/phoneInput/PhoneInput.tsx
|
4815
|
-
var
|
4952
|
+
var import_react33 = __toESM(require("react"));
|
4816
4953
|
|
4817
4954
|
// countries.ts
|
4818
4955
|
var countries = [
|
@@ -6509,10 +6646,10 @@ var countries_default = countries;
|
|
6509
6646
|
|
6510
6647
|
// elements/phoneInput/PhoneInput.tsx
|
6511
6648
|
var PhoneInput = ({ labelProps, ...props }) => {
|
6512
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6513
|
-
const [countryCode, setCountryCode] = (0,
|
6514
|
-
const inputRef = (0,
|
6515
|
-
(0,
|
6649
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react33.useState)("");
|
6650
|
+
const [countryCode, setCountryCode] = (0, import_react33.useState)(props.preferredCountry);
|
6651
|
+
const inputRef = (0, import_react33.useRef)(null);
|
6652
|
+
(0, import_react33.useEffect)(() => {
|
6516
6653
|
var _a;
|
6517
6654
|
if (inputRef.current) {
|
6518
6655
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
@@ -6530,7 +6667,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6530
6667
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6531
6668
|
}
|
6532
6669
|
};
|
6533
|
-
return /* @__PURE__ */
|
6670
|
+
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
6671
|
Select,
|
6535
6672
|
{
|
6536
6673
|
width: "fit",
|
@@ -6546,7 +6683,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6546
6683
|
value: countryCode == null ? void 0 : countryCode.label,
|
6547
6684
|
onChange: setCountryCode
|
6548
6685
|
}
|
6549
|
-
), /* @__PURE__ */
|
6686
|
+
), /* @__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
6687
|
"input",
|
6551
6688
|
{
|
6552
6689
|
ref: inputRef,
|
@@ -6559,7 +6696,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6559
6696
|
type: "tel",
|
6560
6697
|
placeholder: props.placeholder
|
6561
6698
|
}
|
6562
|
-
))), /* @__PURE__ */
|
6699
|
+
))), /* @__PURE__ */ import_react33.default.createElement(
|
6563
6700
|
"p",
|
6564
6701
|
{
|
6565
6702
|
className: cn(
|
@@ -6572,7 +6709,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6572
6709
|
};
|
6573
6710
|
|
6574
6711
|
// elements/pinInput/PinInput.tsx
|
6575
|
-
var
|
6712
|
+
var import_react34 = __toESM(require("react"));
|
6576
6713
|
var PinInput = ({
|
6577
6714
|
label,
|
6578
6715
|
icon,
|
@@ -6582,7 +6719,7 @@ var PinInput = ({
|
|
6582
6719
|
inputProps,
|
6583
6720
|
...props
|
6584
6721
|
}) => {
|
6585
|
-
const [pin, setPin] = (0,
|
6722
|
+
const [pin, setPin] = (0, import_react34.useState)(Array.from(Array(digits)));
|
6586
6723
|
const handleKeyDown = (e, index) => {
|
6587
6724
|
let backTo = 0;
|
6588
6725
|
if (e.key === "Backspace") {
|
@@ -6591,7 +6728,7 @@ var PinInput = ({
|
|
6591
6728
|
previousInput == null ? void 0 : previousInput.focus();
|
6592
6729
|
}
|
6593
6730
|
};
|
6594
|
-
(0,
|
6731
|
+
(0, import_react34.useEffect)(() => {
|
6595
6732
|
let unfilled = pin.includes(void 0);
|
6596
6733
|
if (!unfilled && getPins) {
|
6597
6734
|
getPins(pin);
|
@@ -6616,13 +6753,13 @@ var PinInput = ({
|
|
6616
6753
|
}
|
6617
6754
|
}
|
6618
6755
|
};
|
6619
|
-
return /* @__PURE__ */
|
6756
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react34.default.createElement(
|
6620
6757
|
"div",
|
6621
6758
|
{
|
6622
6759
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6623
6760
|
dir: "ltr"
|
6624
6761
|
},
|
6625
|
-
pin.map((value, index) => /* @__PURE__ */
|
6762
|
+
pin.map((value, index) => /* @__PURE__ */ import_react34.default.createElement(
|
6626
6763
|
"input",
|
6627
6764
|
{
|
6628
6765
|
key: index,
|
@@ -6642,7 +6779,7 @@ var PinInput = ({
|
|
6642
6779
|
...inputProps
|
6643
6780
|
}
|
6644
6781
|
))
|
6645
|
-
), /* @__PURE__ */
|
6782
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
6646
6783
|
"p",
|
6647
6784
|
{
|
6648
6785
|
className: cn(
|
@@ -6655,30 +6792,30 @@ var PinInput = ({
|
|
6655
6792
|
};
|
6656
6793
|
|
6657
6794
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6658
|
-
var
|
6795
|
+
var import_react35 = __toESM(require("react"));
|
6659
6796
|
var StopPropagationWrapper = (props) => {
|
6660
6797
|
const handleClick = (e) => {
|
6661
6798
|
e.stopPropagation();
|
6662
6799
|
};
|
6663
|
-
return /* @__PURE__ */
|
6800
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { onClick: handleClick }, props.children);
|
6664
6801
|
};
|
6665
6802
|
|
6666
6803
|
// elements/scrollArea/ScrollArea.tsx
|
6667
|
-
var
|
6804
|
+
var React51 = __toESM(require("react"));
|
6668
6805
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6669
|
-
var ScrollArea =
|
6806
|
+
var ScrollArea = React51.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6670
6807
|
ScrollAreaPrimitive.Root,
|
6671
6808
|
{
|
6672
6809
|
ref,
|
6673
6810
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6674
6811
|
...props
|
6675
6812
|
},
|
6676
|
-
/* @__PURE__ */
|
6677
|
-
/* @__PURE__ */
|
6678
|
-
/* @__PURE__ */
|
6813
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6814
|
+
/* @__PURE__ */ React51.createElement(ScrollBar, { orientation }),
|
6815
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Corner, null)
|
6679
6816
|
));
|
6680
6817
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6681
|
-
var ScrollBar =
|
6818
|
+
var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6682
6819
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6683
6820
|
{
|
6684
6821
|
ref,
|
@@ -6691,7 +6828,7 @@ var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6691
6828
|
),
|
6692
6829
|
...props
|
6693
6830
|
},
|
6694
|
-
/* @__PURE__ */
|
6831
|
+
/* @__PURE__ */ React51.createElement(
|
6695
6832
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6696
6833
|
{
|
6697
6834
|
className: cn(
|
@@ -6704,7 +6841,7 @@ var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6704
6841
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6705
6842
|
|
6706
6843
|
// elements/colorPicker/ColorPicker.tsx
|
6707
|
-
var
|
6844
|
+
var import_react36 = __toESM(require("react"));
|
6708
6845
|
var ColorPicker = ({
|
6709
6846
|
containerProps,
|
6710
6847
|
colorPickerProps,
|
@@ -6715,8 +6852,8 @@ var ColorPicker = ({
|
|
6715
6852
|
preview = false,
|
6716
6853
|
...props
|
6717
6854
|
}) => {
|
6718
|
-
const [selectedColor, setSelectedColor] = (0,
|
6719
|
-
(0,
|
6855
|
+
const [selectedColor, setSelectedColor] = (0, import_react36.useState)(props.color);
|
6856
|
+
(0, import_react36.useEffect)(() => {
|
6720
6857
|
if (selectedColor && selectedColor[0] !== "#") {
|
6721
6858
|
setSelectedColor(`#${selectedColor}`);
|
6722
6859
|
}
|
@@ -6733,13 +6870,13 @@ var ColorPicker = ({
|
|
6733
6870
|
props.handleChange(e);
|
6734
6871
|
}
|
6735
6872
|
};
|
6736
|
-
return /* @__PURE__ */
|
6873
|
+
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
6874
|
"div",
|
6738
6875
|
{
|
6739
6876
|
style: { height: 40, backgroundColor: selectedColor },
|
6740
6877
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
6741
6878
|
},
|
6742
|
-
/* @__PURE__ */
|
6879
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
6743
6880
|
"input",
|
6744
6881
|
{
|
6745
6882
|
disabled: preview,
|
@@ -6758,7 +6895,7 @@ var ColorPicker = ({
|
|
6758
6895
|
...colorPickerProps
|
6759
6896
|
}
|
6760
6897
|
)
|
6761
|
-
), /* @__PURE__ */
|
6898
|
+
), /* @__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
6899
|
"input",
|
6763
6900
|
{
|
6764
6901
|
disabled: preview,
|
@@ -6777,7 +6914,7 @@ var ColorPicker = ({
|
|
6777
6914
|
},
|
6778
6915
|
...textInputProps
|
6779
6916
|
}
|
6780
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
6917
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react36.default.createElement(
|
6781
6918
|
"p",
|
6782
6919
|
{
|
6783
6920
|
className: cn(
|
@@ -6790,7 +6927,7 @@ var ColorPicker = ({
|
|
6790
6927
|
};
|
6791
6928
|
|
6792
6929
|
// elements/progressCircle/ProgressCircle.tsx
|
6793
|
-
var
|
6930
|
+
var import_react37 = __toESM(require("react"));
|
6794
6931
|
var size2config = {
|
6795
6932
|
xs: { radius: 15, strokeWidth: 3 },
|
6796
6933
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -6807,7 +6944,7 @@ function getLimitedValue(input) {
|
|
6807
6944
|
return input;
|
6808
6945
|
}
|
6809
6946
|
}
|
6810
|
-
var ProgressCircle =
|
6947
|
+
var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
6811
6948
|
const {
|
6812
6949
|
value: inputValue,
|
6813
6950
|
size = "md",
|
@@ -6827,7 +6964,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6827
6964
|
const circumference = normalizedRadius * 2 * Math.PI;
|
6828
6965
|
const strokeDashoffset = value / 100 * circumference;
|
6829
6966
|
const offset = circumference - strokeDashoffset;
|
6830
|
-
return /* @__PURE__ */
|
6967
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react37.default.Fragment, null, /* @__PURE__ */ import_react37.default.createElement(
|
6831
6968
|
"div",
|
6832
6969
|
{
|
6833
6970
|
ref,
|
@@ -6836,7 +6973,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6836
6973
|
className
|
6837
6974
|
)
|
6838
6975
|
},
|
6839
|
-
/* @__PURE__ */
|
6976
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6840
6977
|
"svg",
|
6841
6978
|
{
|
6842
6979
|
width: radius * 2,
|
@@ -6844,7 +6981,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6844
6981
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
6845
6982
|
className: "hawa-rotate-180 hawa-transform"
|
6846
6983
|
},
|
6847
|
-
/* @__PURE__ */
|
6984
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6848
6985
|
"circle",
|
6849
6986
|
{
|
6850
6987
|
r: normalizedRadius,
|
@@ -6860,7 +6997,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6860
6997
|
)
|
6861
6998
|
}
|
6862
6999
|
),
|
6863
|
-
value > 0 ? /* @__PURE__ */
|
7000
|
+
value > 0 ? /* @__PURE__ */ import_react37.default.createElement(
|
6864
7001
|
"circle",
|
6865
7002
|
{
|
6866
7003
|
r: normalizedRadius,
|
@@ -6880,24 +7017,24 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6880
7017
|
}
|
6881
7018
|
) : null
|
6882
7019
|
),
|
6883
|
-
/* @__PURE__ */
|
7020
|
+
/* @__PURE__ */ import_react37.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
6884
7021
|
));
|
6885
7022
|
});
|
6886
7023
|
ProgressCircle.displayName = "ProgressCircle";
|
6887
7024
|
|
6888
7025
|
// elements/pagination/Pagination.tsx
|
6889
|
-
var
|
7026
|
+
var import_react38 = __toESM(require("react"));
|
6890
7027
|
var import_react_headless_pagination = require("react-headless-pagination");
|
6891
7028
|
var Pagination = ({
|
6892
7029
|
direction,
|
6893
7030
|
totalPages,
|
6894
7031
|
currentPage
|
6895
7032
|
}) => {
|
6896
|
-
const [page, setPage] =
|
7033
|
+
const [page, setPage] = import_react38.default.useState(currentPage || 0);
|
6897
7034
|
const handlePageChange = (page2) => {
|
6898
7035
|
setPage(page2);
|
6899
7036
|
};
|
6900
|
-
return /* @__PURE__ */
|
7037
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
6901
7038
|
import_react_headless_pagination.Pagination,
|
6902
7039
|
{
|
6903
7040
|
totalPages,
|
@@ -6909,10 +7046,10 @@ var Pagination = ({
|
|
6909
7046
|
truncableText: "...",
|
6910
7047
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
6911
7048
|
},
|
6912
|
-
/* @__PURE__ */
|
7049
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6913
7050
|
import_react_headless_pagination.Pagination.PrevButton,
|
6914
7051
|
{
|
6915
|
-
as: /* @__PURE__ */
|
7052
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6916
7053
|
"button",
|
6917
7054
|
{
|
6918
7055
|
"aria-label": "Previous Table Page",
|
@@ -6922,7 +7059,7 @@ var Pagination = ({
|
|
6922
7059
|
),
|
6923
7060
|
style: { minWidth: 36 }
|
6924
7061
|
},
|
6925
|
-
/* @__PURE__ */
|
7062
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6926
7063
|
"svg",
|
6927
7064
|
{
|
6928
7065
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6935,7 +7072,7 @@ var Pagination = ({
|
|
6935
7072
|
strokeLinecap: "round",
|
6936
7073
|
strokeLinejoin: "round"
|
6937
7074
|
},
|
6938
|
-
/* @__PURE__ */
|
7075
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6939
7076
|
)
|
6940
7077
|
),
|
6941
7078
|
className: cn(
|
@@ -6948,17 +7085,17 @@ var Pagination = ({
|
|
6948
7085
|
},
|
6949
7086
|
"Previous"
|
6950
7087
|
),
|
6951
|
-
/* @__PURE__ */
|
7088
|
+
/* @__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
7089
|
import_react_headless_pagination.Pagination.PageButton,
|
6953
7090
|
{
|
6954
7091
|
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
7092
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
6956
7093
|
}
|
6957
7094
|
))),
|
6958
|
-
/* @__PURE__ */
|
7095
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6959
7096
|
import_react_headless_pagination.Pagination.NextButton,
|
6960
7097
|
{
|
6961
|
-
as: /* @__PURE__ */
|
7098
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6962
7099
|
"button",
|
6963
7100
|
{
|
6964
7101
|
"aria-label": "Previous Table Page",
|
@@ -6968,7 +7105,7 @@ var Pagination = ({
|
|
6968
7105
|
),
|
6969
7106
|
style: { minWidth: 36 }
|
6970
7107
|
},
|
6971
|
-
/* @__PURE__ */
|
7108
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6972
7109
|
"svg",
|
6973
7110
|
{
|
6974
7111
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6981,7 +7118,7 @@ var Pagination = ({
|
|
6981
7118
|
strokeLinecap: "round",
|
6982
7119
|
strokeLinejoin: "round"
|
6983
7120
|
},
|
6984
|
-
/* @__PURE__ */
|
7121
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6985
7122
|
)
|
6986
7123
|
),
|
6987
7124
|
className: cn(
|
@@ -6998,14 +7135,14 @@ var Pagination = ({
|
|
6998
7135
|
};
|
6999
7136
|
|
7000
7137
|
// elements/passwordInput/PasswordInput.tsx
|
7001
|
-
var
|
7138
|
+
var import_react42 = __toESM(require("react"));
|
7002
7139
|
|
7003
7140
|
// icons/Emojis.tsx
|
7004
|
-
var
|
7141
|
+
var import_react39 = __toESM(require("react"));
|
7005
7142
|
|
7006
7143
|
// icons/InputIcons.tsx
|
7007
|
-
var
|
7008
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7144
|
+
var import_react40 = __toESM(require("react"));
|
7145
|
+
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
7146
|
"svg",
|
7010
7147
|
{
|
7011
7148
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7016,10 +7153,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElement("d
|
|
7016
7153
|
strokeLinecap: "round",
|
7017
7154
|
strokeLinejoin: "round"
|
7018
7155
|
},
|
7019
|
-
/* @__PURE__ */
|
7020
|
-
/* @__PURE__ */
|
7156
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7157
|
+
/* @__PURE__ */ import_react40.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7021
7158
|
));
|
7022
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7159
|
+
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
7160
|
"svg",
|
7024
7161
|
{
|
7025
7162
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7030,20 +7167,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElem
|
|
7030
7167
|
strokeLinecap: "round",
|
7031
7168
|
strokeLinejoin: "round"
|
7032
7169
|
},
|
7033
|
-
/* @__PURE__ */
|
7034
|
-
/* @__PURE__ */
|
7035
|
-
/* @__PURE__ */
|
7036
|
-
/* @__PURE__ */
|
7170
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7171
|
+
/* @__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" }),
|
7172
|
+
/* @__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" }),
|
7173
|
+
/* @__PURE__ */ import_react40.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7037
7174
|
));
|
7038
7175
|
|
7039
7176
|
// icons/CommonIcons.tsx
|
7040
|
-
var
|
7177
|
+
var import_react41 = __toESM(require("react"));
|
7041
7178
|
var CheckMark = ({ size = "default", className }) => {
|
7042
7179
|
let sizeStyles2 = {
|
7043
7180
|
default: "hawa-h-5 hawa-w-5",
|
7044
7181
|
sm: "hawa-h-3 hawa-w-3"
|
7045
7182
|
};
|
7046
|
-
return /* @__PURE__ */
|
7183
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7047
7184
|
"svg",
|
7048
7185
|
{
|
7049
7186
|
className: cn(sizeStyles2[size], className),
|
@@ -7051,7 +7188,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7051
7188
|
fill: "currentColor",
|
7052
7189
|
viewBox: "0 0 20 20"
|
7053
7190
|
},
|
7054
|
-
/* @__PURE__ */
|
7191
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7055
7192
|
"path",
|
7056
7193
|
{
|
7057
7194
|
fillRule: "evenodd",
|
@@ -7066,7 +7203,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7066
7203
|
default: "hawa-h-5 hawa-w-5",
|
7067
7204
|
sm: "hawa-h-3 hawa-w-3"
|
7068
7205
|
};
|
7069
|
-
return /* @__PURE__ */
|
7206
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7070
7207
|
"svg",
|
7071
7208
|
{
|
7072
7209
|
className: cn(sizeStyles2[size], className),
|
@@ -7074,7 +7211,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7074
7211
|
fill: "currentColor",
|
7075
7212
|
viewBox: "0 0 20 20"
|
7076
7213
|
},
|
7077
|
-
/* @__PURE__ */
|
7214
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7078
7215
|
"path",
|
7079
7216
|
{
|
7080
7217
|
fillRule: "evenodd",
|
@@ -7112,7 +7249,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7112
7249
|
strong: "80%",
|
7113
7250
|
"very-strong": "100%"
|
7114
7251
|
}[currentStrengthLevel];
|
7115
|
-
return /* @__PURE__ */
|
7252
|
+
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
7253
|
"div",
|
7117
7254
|
{
|
7118
7255
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7124,16 +7261,16 @@ var PasswordInput = ({
|
|
7124
7261
|
hidePopover,
|
7125
7262
|
...props
|
7126
7263
|
}) => {
|
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,
|
7264
|
+
const [inputValue, setInputValue] = (0, import_react42.useState)("");
|
7265
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react42.useState)(false);
|
7266
|
+
const [currentStr, setCurrentStr] = (0, import_react42.useState)(0);
|
7267
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react42.useState)(false);
|
7268
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react42.useState)(false);
|
7269
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react42.useState)(false);
|
7270
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react42.useState)(false);
|
7271
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7272
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7273
|
+
(0, import_react42.useEffect)(() => {
|
7137
7274
|
const calculateStrength = () => {
|
7138
7275
|
let strengthScore = 0;
|
7139
7276
|
if (lengthCriteriaMet)
|
@@ -7172,7 +7309,7 @@ var PasswordInput = ({
|
|
7172
7309
|
setIsInputFocused(false);
|
7173
7310
|
};
|
7174
7311
|
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__ */
|
7312
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", null, /* @__PURE__ */ import_react42.default.createElement(
|
7176
7313
|
Popover,
|
7177
7314
|
{
|
7178
7315
|
width: "trigger",
|
@@ -7181,7 +7318,7 @@ var PasswordInput = ({
|
|
7181
7318
|
onOpenChange: setIsInputFocused,
|
7182
7319
|
triggerProps: { asChild: true },
|
7183
7320
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7184
|
-
trigger: /* @__PURE__ */
|
7321
|
+
trigger: /* @__PURE__ */ import_react42.default.createElement(
|
7185
7322
|
"div",
|
7186
7323
|
{
|
7187
7324
|
onClick: (e) => {
|
@@ -7191,7 +7328,7 @@ var PasswordInput = ({
|
|
7191
7328
|
}
|
7192
7329
|
}
|
7193
7330
|
},
|
7194
|
-
/* @__PURE__ */
|
7331
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7195
7332
|
Input,
|
7196
7333
|
{
|
7197
7334
|
width: "full",
|
@@ -7201,27 +7338,27 @@ var PasswordInput = ({
|
|
7201
7338
|
onFocus: handleInputFocus,
|
7202
7339
|
onBlur: handleInputBlur,
|
7203
7340
|
type: passwordVisible ? "text" : "password",
|
7204
|
-
endIcon: /* @__PURE__ */
|
7341
|
+
endIcon: /* @__PURE__ */ import_react42.default.createElement(
|
7205
7342
|
"div",
|
7206
7343
|
{
|
7207
7344
|
className: "hawa-cursor-pointer",
|
7208
7345
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7209
7346
|
},
|
7210
|
-
passwordVisible ? /* @__PURE__ */
|
7347
|
+
passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7211
7348
|
" "
|
7212
7349
|
)
|
7213
7350
|
}
|
7214
7351
|
)
|
7215
7352
|
)
|
7216
7353
|
},
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
), /* @__PURE__ */
|
7354
|
+
/* @__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")))
|
7355
|
+
), /* @__PURE__ */ import_react42.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7219
7356
|
};
|
7220
7357
|
|
7221
7358
|
// elements/slider/Slider.tsx
|
7222
|
-
var
|
7359
|
+
var React59 = __toESM(require("react"));
|
7223
7360
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7224
|
-
var Slider =
|
7361
|
+
var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
7225
7362
|
SliderPrimitive.Root,
|
7226
7363
|
{
|
7227
7364
|
ref,
|
@@ -7231,13 +7368,13 @@ var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7231
7368
|
),
|
7232
7369
|
...props
|
7233
7370
|
},
|
7234
|
-
/* @__PURE__ */
|
7235
|
-
/* @__PURE__ */
|
7371
|
+
/* @__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" })),
|
7372
|
+
/* @__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
7373
|
));
|
7237
7374
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7238
7375
|
|
7239
7376
|
// elements/simpleTable/SimpleTable.tsx
|
7240
|
-
var
|
7377
|
+
var React60 = __toESM(require("react"));
|
7241
7378
|
var import_react_table2 = require("@tanstack/react-table");
|
7242
7379
|
var SimpleTable = ({
|
7243
7380
|
columns,
|
@@ -7252,7 +7389,7 @@ var SimpleTable = ({
|
|
7252
7389
|
columns,
|
7253
7390
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7254
7391
|
});
|
7255
|
-
return /* @__PURE__ */
|
7392
|
+
return /* @__PURE__ */ React60.createElement(
|
7256
7393
|
"div",
|
7257
7394
|
{
|
7258
7395
|
className: cn(
|
@@ -7260,8 +7397,8 @@ var SimpleTable = ({
|
|
7260
7397
|
classNames
|
7261
7398
|
)
|
7262
7399
|
},
|
7263
|
-
props.isLoading ? /* @__PURE__ */
|
7264
|
-
return /* @__PURE__ */
|
7400
|
+
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) => {
|
7401
|
+
return /* @__PURE__ */ React60.createElement(
|
7265
7402
|
TableHead,
|
7266
7403
|
{
|
7267
7404
|
condensed: props.condensed,
|
@@ -7276,7 +7413,7 @@ var SimpleTable = ({
|
|
7276
7413
|
header.getContext()
|
7277
7414
|
)
|
7278
7415
|
);
|
7279
|
-
})))), /* @__PURE__ */
|
7416
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
7280
7417
|
TableRow,
|
7281
7418
|
{
|
7282
7419
|
key: row.id,
|
@@ -7284,7 +7421,7 @@ var SimpleTable = ({
|
|
7284
7421
|
},
|
7285
7422
|
row.getVisibleCells().map((cell) => {
|
7286
7423
|
var _a2;
|
7287
|
-
return /* @__PURE__ */
|
7424
|
+
return /* @__PURE__ */ React60.createElement(
|
7288
7425
|
TableCell,
|
7289
7426
|
{
|
7290
7427
|
dir: props.direction,
|
@@ -7300,7 +7437,7 @@ var SimpleTable = ({
|
|
7300
7437
|
)
|
7301
7438
|
);
|
7302
7439
|
})
|
7303
|
-
)) : /* @__PURE__ */
|
7440
|
+
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7304
7441
|
TableCell,
|
7305
7442
|
{
|
7306
7443
|
colSpan: columns.length,
|
@@ -7312,12 +7449,12 @@ var SimpleTable = ({
|
|
7312
7449
|
};
|
7313
7450
|
|
7314
7451
|
// elements/separator/Separator.tsx
|
7315
|
-
var
|
7452
|
+
var React61 = __toESM(require("react"));
|
7316
7453
|
var Separator2 = ({
|
7317
7454
|
className,
|
7318
7455
|
orientation = "horizontal",
|
7319
7456
|
...props
|
7320
|
-
}) => /* @__PURE__ */
|
7457
|
+
}) => /* @__PURE__ */ React61.createElement(
|
7321
7458
|
"div",
|
7322
7459
|
{
|
7323
7460
|
className: cn(
|
@@ -7330,12 +7467,12 @@ var Separator2 = ({
|
|
7330
7467
|
);
|
7331
7468
|
|
7332
7469
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7333
|
-
var
|
7470
|
+
var import_react43 = __toESM(require("react"));
|
7334
7471
|
var ScrollIndicator = ({
|
7335
7472
|
anchor,
|
7336
7473
|
inContainer = false
|
7337
7474
|
}) => {
|
7338
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7475
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react43.useState)(0);
|
7339
7476
|
const onScroll = () => {
|
7340
7477
|
const scrollElement = anchor.current;
|
7341
7478
|
if (scrollElement) {
|
@@ -7346,7 +7483,7 @@ var ScrollIndicator = ({
|
|
7346
7483
|
setScrollPercentage(percentageScrolled);
|
7347
7484
|
}
|
7348
7485
|
};
|
7349
|
-
(0,
|
7486
|
+
(0, import_react43.useEffect)(() => {
|
7350
7487
|
if (!anchor.current)
|
7351
7488
|
return;
|
7352
7489
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7355,7 +7492,7 @@ var ScrollIndicator = ({
|
|
7355
7492
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7356
7493
|
};
|
7357
7494
|
}, [anchor]);
|
7358
|
-
return /* @__PURE__ */
|
7495
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7359
7496
|
"div",
|
7360
7497
|
{
|
7361
7498
|
style: {
|
@@ -7371,39 +7508,11 @@ var ScrollIndicator = ({
|
|
7371
7508
|
};
|
7372
7509
|
|
7373
7510
|
// elements/codeBlock/CodeBlock.tsx
|
7374
|
-
var
|
7511
|
+
var import_react44 = __toESM(require("react"));
|
7375
7512
|
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
7513
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7405
7514
|
require("prismjs/components/prism-bash");
|
7406
|
-
var CopyIcon = () => /* @__PURE__ */
|
7515
|
+
var CopyIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
7407
7516
|
"svg",
|
7408
7517
|
{
|
7409
7518
|
"aria-label": "Copy",
|
@@ -7416,8 +7525,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react30.default.createElement(
|
|
7416
7525
|
height: "1em",
|
7417
7526
|
width: "1em"
|
7418
7527
|
},
|
7419
|
-
/* @__PURE__ */
|
7420
|
-
/* @__PURE__ */
|
7528
|
+
/* @__PURE__ */ import_react44.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7529
|
+
/* @__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
7530
|
);
|
7422
7531
|
var CodeBlock = ({
|
7423
7532
|
tabs,
|
@@ -7431,7 +7540,7 @@ var CodeBlock = ({
|
|
7431
7540
|
...props
|
7432
7541
|
}) => {
|
7433
7542
|
const clipboard = useClipboard();
|
7434
|
-
const [selectedTab, setSelectedTab] = (0,
|
7543
|
+
const [selectedTab, setSelectedTab] = (0, import_react44.useState)(0);
|
7435
7544
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7436
7545
|
let widthStyles = {
|
7437
7546
|
full: "hawa-w-full",
|
@@ -7439,7 +7548,7 @@ var CodeBlock = ({
|
|
7439
7548
|
sm: "hawa-w-full hawa-max-w-sm",
|
7440
7549
|
xs: "hawa-w-full hawa-max-w-xs"
|
7441
7550
|
};
|
7442
|
-
return /* @__PURE__ */
|
7551
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
7443
7552
|
"div",
|
7444
7553
|
{
|
7445
7554
|
className: cn(
|
@@ -7448,7 +7557,7 @@ var CodeBlock = ({
|
|
7448
7557
|
classNames == null ? void 0 : classNames.root
|
7449
7558
|
)
|
7450
7559
|
},
|
7451
|
-
fileName && /* @__PURE__ */
|
7560
|
+
fileName && /* @__PURE__ */ import_react44.default.createElement(
|
7452
7561
|
"div",
|
7453
7562
|
{
|
7454
7563
|
className: cn(
|
@@ -7457,7 +7566,7 @@ var CodeBlock = ({
|
|
7457
7566
|
classNames == null ? void 0 : classNames.fileName
|
7458
7567
|
)
|
7459
7568
|
},
|
7460
|
-
/* @__PURE__ */
|
7569
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7461
7570
|
"div",
|
7462
7571
|
{
|
7463
7572
|
className: cn(
|
@@ -7467,7 +7576,7 @@ var CodeBlock = ({
|
|
7467
7576
|
fileName
|
7468
7577
|
)
|
7469
7578
|
),
|
7470
|
-
tabs && /* @__PURE__ */
|
7579
|
+
tabs && /* @__PURE__ */ import_react44.default.createElement(
|
7471
7580
|
"div",
|
7472
7581
|
{
|
7473
7582
|
className: cn(
|
@@ -7476,7 +7585,7 @@ var CodeBlock = ({
|
|
7476
7585
|
classNames == null ? void 0 : classNames.tabs
|
7477
7586
|
)
|
7478
7587
|
},
|
7479
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7588
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react44.default.createElement(
|
7480
7589
|
"div",
|
7481
7590
|
{
|
7482
7591
|
key: i,
|
@@ -7485,7 +7594,7 @@ var CodeBlock = ({
|
|
7485
7594
|
classNames == null ? void 0 : classNames.tab
|
7486
7595
|
)
|
7487
7596
|
},
|
7488
|
-
/* @__PURE__ */
|
7597
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7489
7598
|
"div",
|
7490
7599
|
{
|
7491
7600
|
onClick: () => setSelectedTab(i),
|
@@ -7497,7 +7606,7 @@ var CodeBlock = ({
|
|
7497
7606
|
)
|
7498
7607
|
))
|
7499
7608
|
),
|
7500
|
-
/* @__PURE__ */
|
7609
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7501
7610
|
"div",
|
7502
7611
|
{
|
7503
7612
|
className: cn(
|
@@ -7507,22 +7616,22 @@ var CodeBlock = ({
|
|
7507
7616
|
"hawa-overflow-y-auto"
|
7508
7617
|
)
|
7509
7618
|
},
|
7510
|
-
/* @__PURE__ */
|
7619
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7511
7620
|
"div",
|
7512
7621
|
{
|
7513
7622
|
className: cn(
|
7514
7623
|
"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
7624
|
)
|
7516
7625
|
},
|
7517
|
-
/* @__PURE__ */
|
7626
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7518
7627
|
Tooltip,
|
7519
7628
|
{
|
7520
7629
|
open: clipboard.copied,
|
7521
7630
|
side: "left",
|
7522
|
-
content: /* @__PURE__ */
|
7631
|
+
content: /* @__PURE__ */ import_react44.default.createElement("div", null, "Copied!"),
|
7523
7632
|
triggerProps: { asChild: true }
|
7524
7633
|
},
|
7525
|
-
/* @__PURE__ */
|
7634
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7526
7635
|
Button,
|
7527
7636
|
{
|
7528
7637
|
size: "smallIcon",
|
@@ -7530,18 +7639,18 @@ var CodeBlock = ({
|
|
7530
7639
|
variant: "outline",
|
7531
7640
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7532
7641
|
},
|
7533
|
-
/* @__PURE__ */
|
7642
|
+
/* @__PURE__ */ import_react44.default.createElement(CopyIcon, null)
|
7534
7643
|
)
|
7535
7644
|
)
|
7536
7645
|
),
|
7537
|
-
/* @__PURE__ */
|
7646
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7538
7647
|
import_prism_react_renderer.Highlight,
|
7539
7648
|
{
|
7540
7649
|
theme,
|
7541
7650
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7542
7651
|
language
|
7543
7652
|
},
|
7544
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7653
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react44.default.createElement(
|
7545
7654
|
"pre",
|
7546
7655
|
{
|
7547
7656
|
className: cn(
|
@@ -7551,7 +7660,7 @@ var CodeBlock = ({
|
|
7551
7660
|
wrapText && "hawa-text-wrap"
|
7552
7661
|
)
|
7553
7662
|
},
|
7554
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7663
|
+
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
7664
|
)
|
7556
7665
|
)
|
7557
7666
|
)
|
@@ -7559,8 +7668,8 @@ var CodeBlock = ({
|
|
7559
7668
|
};
|
7560
7669
|
|
7561
7670
|
// elements/carousel/Carousel.tsx
|
7562
|
-
var
|
7563
|
-
var
|
7671
|
+
var import_react45 = __toESM(require("react"));
|
7672
|
+
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7564
7673
|
var Carousel = ({
|
7565
7674
|
items,
|
7566
7675
|
showArrows,
|
@@ -7570,13 +7679,13 @@ var Carousel = ({
|
|
7570
7679
|
autoplayInterval = 3e3,
|
7571
7680
|
...props
|
7572
7681
|
}) => {
|
7573
|
-
const [emblaRef, emblaApi] = (0,
|
7682
|
+
const [emblaRef, emblaApi] = (0, import_embla_carousel_react2.default)({
|
7574
7683
|
...options,
|
7575
7684
|
direction,
|
7576
7685
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7577
7686
|
});
|
7578
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7579
|
-
(0,
|
7687
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react45.useState)(0);
|
7688
|
+
(0, import_react45.useEffect)(() => {
|
7580
7689
|
function selectHandler() {
|
7581
7690
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7582
7691
|
setSelectedIndex(index || 0);
|
@@ -7586,7 +7695,7 @@ var Carousel = ({
|
|
7586
7695
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7587
7696
|
};
|
7588
7697
|
}, [emblaApi]);
|
7589
|
-
(0,
|
7698
|
+
(0, import_react45.useEffect)(() => {
|
7590
7699
|
let autoplayTimer;
|
7591
7700
|
if (autoplay && emblaApi) {
|
7592
7701
|
autoplayTimer = setInterval(() => {
|
@@ -7598,17 +7707,17 @@ var Carousel = ({
|
|
7598
7707
|
clearInterval(autoplayTimer);
|
7599
7708
|
};
|
7600
7709
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7601
|
-
const length =
|
7710
|
+
const length = import_react45.default.Children.count(items);
|
7602
7711
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7603
7712
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7604
|
-
return /* @__PURE__ */
|
7713
|
+
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
7714
|
"div",
|
7606
7715
|
{
|
7607
7716
|
key: i,
|
7608
7717
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7609
7718
|
},
|
7610
7719
|
item
|
7611
|
-
))))), /* @__PURE__ */
|
7720
|
+
))))), /* @__PURE__ */ import_react45.default.createElement(
|
7612
7721
|
Dots,
|
7613
7722
|
{
|
7614
7723
|
direction,
|
@@ -7616,7 +7725,7 @@ var Carousel = ({
|
|
7616
7725
|
selectedIndex,
|
7617
7726
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7618
7727
|
}
|
7619
|
-
), showArrows && /* @__PURE__ */
|
7728
|
+
), showArrows && /* @__PURE__ */ import_react45.default.createElement(
|
7620
7729
|
CarouselControls,
|
7621
7730
|
{
|
7622
7731
|
canScrollNext,
|
@@ -7633,7 +7742,7 @@ var Dots = ({
|
|
7633
7742
|
direction
|
7634
7743
|
}) => {
|
7635
7744
|
const arr = new Array(itemsLength).fill(0);
|
7636
|
-
return /* @__PURE__ */
|
7745
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7637
7746
|
"div",
|
7638
7747
|
{
|
7639
7748
|
dir: direction,
|
@@ -7641,7 +7750,7 @@ var Dots = ({
|
|
7641
7750
|
},
|
7642
7751
|
arr.map((_, index) => {
|
7643
7752
|
const selected = index === selectedIndex;
|
7644
|
-
return /* @__PURE__ */
|
7753
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7645
7754
|
"div",
|
7646
7755
|
{
|
7647
7756
|
key: index,
|
@@ -7656,7 +7765,7 @@ var Dots = ({
|
|
7656
7765
|
);
|
7657
7766
|
};
|
7658
7767
|
var CarouselControls = (props) => {
|
7659
|
-
return /* @__PURE__ */
|
7768
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react45.default.createElement(
|
7660
7769
|
"button",
|
7661
7770
|
{
|
7662
7771
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7667,7 +7776,7 @@ var CarouselControls = (props) => {
|
|
7667
7776
|
props.canScrollPrev && "hawa-bg-primary"
|
7668
7777
|
)
|
7669
7778
|
},
|
7670
|
-
/* @__PURE__ */
|
7779
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7671
7780
|
"svg",
|
7672
7781
|
{
|
7673
7782
|
"aria-label": "Chevron Right Icon",
|
@@ -7676,9 +7785,9 @@ var CarouselControls = (props) => {
|
|
7676
7785
|
viewBox: "0 0 16 16",
|
7677
7786
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7678
7787
|
},
|
7679
|
-
/* @__PURE__ */
|
7788
|
+
/* @__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
7789
|
)
|
7681
|
-
), /* @__PURE__ */
|
7790
|
+
), /* @__PURE__ */ import_react45.default.createElement(
|
7682
7791
|
"button",
|
7683
7792
|
{
|
7684
7793
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7689,7 +7798,7 @@ var CarouselControls = (props) => {
|
|
7689
7798
|
props.canScrollNext && "hawa-bg-primary"
|
7690
7799
|
)
|
7691
7800
|
},
|
7692
|
-
/* @__PURE__ */
|
7801
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7693
7802
|
"svg",
|
7694
7803
|
{
|
7695
7804
|
"aria-label": "Chevron Right Icon",
|
@@ -7698,19 +7807,19 @@ var CarouselControls = (props) => {
|
|
7698
7807
|
viewBox: "0 0 16 16",
|
7699
7808
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7700
7809
|
},
|
7701
|
-
/* @__PURE__ */
|
7810
|
+
/* @__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
7811
|
)
|
7703
7812
|
));
|
7704
7813
|
};
|
7705
7814
|
|
7706
7815
|
// elements/count/Count.tsx
|
7707
|
-
var
|
7816
|
+
var import_react46 = __toESM(require("react"));
|
7708
7817
|
var Count = (props) => {
|
7709
|
-
return /* @__PURE__ */
|
7818
|
+
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
7819
|
};
|
7711
7820
|
|
7712
7821
|
// elements/toast/Toast.tsx
|
7713
|
-
var
|
7822
|
+
var React66 = __toESM(require("react"));
|
7714
7823
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7715
7824
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7716
7825
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7738,7 +7847,7 @@ var sizeStyles = {
|
|
7738
7847
|
sm: "hawa-text-xs"
|
7739
7848
|
};
|
7740
7849
|
var ToastProvider = ToastPrimitives.Provider;
|
7741
|
-
var ToastViewport =
|
7850
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7742
7851
|
ToastPrimitives.Viewport,
|
7743
7852
|
{
|
7744
7853
|
ref,
|
@@ -7750,8 +7859,8 @@ var ToastViewport = React58.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7750
7859
|
}
|
7751
7860
|
));
|
7752
7861
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7753
|
-
var Toast =
|
7754
|
-
return /* @__PURE__ */
|
7862
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7863
|
+
return /* @__PURE__ */ React66.createElement(
|
7755
7864
|
ToastPrimitives.Root,
|
7756
7865
|
{
|
7757
7866
|
ref,
|
@@ -7766,8 +7875,8 @@ var Toast = React58.forwardRef(({ className, variant, severity = "none", directi
|
|
7766
7875
|
);
|
7767
7876
|
});
|
7768
7877
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7769
|
-
var ToastAction =
|
7770
|
-
return /* @__PURE__ */
|
7878
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
7879
|
+
return /* @__PURE__ */ React66.createElement(
|
7771
7880
|
ToastPrimitives.Action,
|
7772
7881
|
{
|
7773
7882
|
ref,
|
@@ -7785,7 +7894,7 @@ var ToastAction = React58.forwardRef(({ className, ...props }, ref) => {
|
|
7785
7894
|
);
|
7786
7895
|
});
|
7787
7896
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7788
|
-
var ToastClose =
|
7897
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7789
7898
|
ToastPrimitives.Close,
|
7790
7899
|
{
|
7791
7900
|
ref,
|
@@ -7799,7 +7908,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7799
7908
|
"toast-close": "",
|
7800
7909
|
...props
|
7801
7910
|
},
|
7802
|
-
/* @__PURE__ */
|
7911
|
+
/* @__PURE__ */ React66.createElement(
|
7803
7912
|
"svg",
|
7804
7913
|
{
|
7805
7914
|
"aria-label": "Close Icon",
|
@@ -7808,7 +7917,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7808
7917
|
fill: "currentColor",
|
7809
7918
|
viewBox: "0 0 20 20"
|
7810
7919
|
},
|
7811
|
-
/* @__PURE__ */
|
7920
|
+
/* @__PURE__ */ React66.createElement(
|
7812
7921
|
"path",
|
7813
7922
|
{
|
7814
7923
|
fillRule: "evenodd",
|
@@ -7819,7 +7928,7 @@ var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7819
7928
|
)
|
7820
7929
|
));
|
7821
7930
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7822
|
-
var ToastTitle =
|
7931
|
+
var ToastTitle = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7823
7932
|
ToastPrimitives.Title,
|
7824
7933
|
{
|
7825
7934
|
ref,
|
@@ -7832,7 +7941,7 @@ var ToastTitle = React58.forwardRef(({ className, size = "default", ...props },
|
|
7832
7941
|
}
|
7833
7942
|
));
|
7834
7943
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7835
|
-
var ToastDescription =
|
7944
|
+
var ToastDescription = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7836
7945
|
ToastPrimitives.Description,
|
7837
7946
|
{
|
7838
7947
|
ref,
|
@@ -7847,11 +7956,11 @@ var ToastDescription = React58.forwardRef(({ className, size = "default", ...pro
|
|
7847
7956
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
7848
7957
|
|
7849
7958
|
// elements/toaster/Toaster.tsx
|
7850
|
-
var
|
7959
|
+
var import_react47 = __toESM(require("react"));
|
7851
7960
|
function Toaster(props) {
|
7852
7961
|
var _a;
|
7853
7962
|
let isRTL = props.direction === "rtl";
|
7854
|
-
return /* @__PURE__ */
|
7963
|
+
return /* @__PURE__ */ import_react47.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
7855
7964
|
id,
|
7856
7965
|
title,
|
7857
7966
|
description,
|
@@ -7859,7 +7968,7 @@ function Toaster(props) {
|
|
7859
7968
|
action,
|
7860
7969
|
...toastProps
|
7861
7970
|
}) {
|
7862
|
-
return /* @__PURE__ */
|
7971
|
+
return /* @__PURE__ */ import_react47.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react47.default.createElement(
|
7863
7972
|
"div",
|
7864
7973
|
{
|
7865
7974
|
className: cn(
|
@@ -7867,9 +7976,9 @@ function Toaster(props) {
|
|
7867
7976
|
action && "hawa-justify-between"
|
7868
7977
|
)
|
7869
7978
|
},
|
7870
|
-
/* @__PURE__ */
|
7871
|
-
/* @__PURE__ */
|
7872
|
-
/* @__PURE__ */
|
7979
|
+
/* @__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)),
|
7980
|
+
/* @__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" }),
|
7981
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7873
7982
|
"div",
|
7874
7983
|
{
|
7875
7984
|
className: cn(
|
@@ -7877,11 +7986,11 @@ function Toaster(props) {
|
|
7877
7986
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
7878
7987
|
)
|
7879
7988
|
},
|
7880
|
-
/* @__PURE__ */
|
7881
|
-
action && /* @__PURE__ */
|
7989
|
+
/* @__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)),
|
7990
|
+
action && /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
7882
7991
|
)
|
7883
7992
|
));
|
7884
|
-
}), /* @__PURE__ */
|
7993
|
+
}), /* @__PURE__ */ import_react47.default.createElement(
|
7885
7994
|
ToastViewport,
|
7886
7995
|
{
|
7887
7996
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -7890,20 +7999,20 @@ function Toaster(props) {
|
|
7890
7999
|
}
|
7891
8000
|
|
7892
8001
|
// elements/destroyableCard/DestroyableCard.tsx
|
7893
|
-
var
|
8002
|
+
var import_react48 = __toESM(require("react"));
|
7894
8003
|
var DestroyableCard = ({
|
7895
8004
|
position = "bottom-right",
|
7896
8005
|
fixed,
|
7897
8006
|
direction,
|
7898
8007
|
...props
|
7899
8008
|
}) => {
|
7900
|
-
const [closed, setClosed] = (0,
|
7901
|
-
const popUpRef = (0,
|
8009
|
+
const [closed, setClosed] = (0, import_react48.useState)(false);
|
8010
|
+
const popUpRef = (0, import_react48.useRef)(null);
|
7902
8011
|
const boxPosition = {
|
7903
8012
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
7904
8013
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
7905
8014
|
};
|
7906
|
-
return /* @__PURE__ */
|
8015
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7907
8016
|
"div",
|
7908
8017
|
{
|
7909
8018
|
className: cn(
|
@@ -7912,7 +8021,7 @@ var DestroyableCard = ({
|
|
7912
8021
|
),
|
7913
8022
|
ref: popUpRef
|
7914
8023
|
},
|
7915
|
-
/* @__PURE__ */
|
8024
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7916
8025
|
Card,
|
7917
8026
|
{
|
7918
8027
|
className: cn(
|
@@ -7921,7 +8030,7 @@ var DestroyableCard = ({
|
|
7921
8030
|
),
|
7922
8031
|
dir: direction
|
7923
8032
|
},
|
7924
|
-
/* @__PURE__ */
|
8033
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7925
8034
|
"button",
|
7926
8035
|
{
|
7927
8036
|
type: "button",
|
@@ -7940,7 +8049,7 @@ var DestroyableCard = ({
|
|
7940
8049
|
}, 200);
|
7941
8050
|
}
|
7942
8051
|
},
|
7943
|
-
/* @__PURE__ */
|
8052
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7944
8053
|
"svg",
|
7945
8054
|
{
|
7946
8055
|
"aria-hidden": "true",
|
@@ -7948,7 +8057,7 @@ var DestroyableCard = ({
|
|
7948
8057
|
fill: "currentColor",
|
7949
8058
|
viewBox: "0 0 20 20"
|
7950
8059
|
},
|
7951
|
-
/* @__PURE__ */
|
8060
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7952
8061
|
"path",
|
7953
8062
|
{
|
7954
8063
|
fillRule: "evenodd",
|
@@ -7958,13 +8067,13 @@ var DestroyableCard = ({
|
|
7958
8067
|
)
|
7959
8068
|
)
|
7960
8069
|
),
|
7961
|
-
/* @__PURE__ */
|
8070
|
+
/* @__PURE__ */ import_react48.default.createElement(CardContent, { headless: true }, props.children)
|
7962
8071
|
)
|
7963
8072
|
);
|
7964
8073
|
};
|
7965
8074
|
|
7966
8075
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
7967
|
-
var
|
8076
|
+
var import_react49 = __toESM(require("react"));
|
7968
8077
|
var InterfaceSettings = ({
|
7969
8078
|
orientation = "horizontal",
|
7970
8079
|
width = "default",
|
@@ -7972,13 +8081,13 @@ var InterfaceSettings = ({
|
|
7972
8081
|
handleLanguage,
|
7973
8082
|
...props
|
7974
8083
|
}) => {
|
7975
|
-
const [color, setColor] = (0,
|
7976
|
-
const [language, setLanguage] = (0,
|
8084
|
+
const [color, setColor] = (0, import_react49.useState)(props.currentColorMode);
|
8085
|
+
const [language, setLanguage] = (0, import_react49.useState)(props.currentLanguage);
|
7977
8086
|
let orientationStyle = {
|
7978
8087
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
7979
8088
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
7980
8089
|
};
|
7981
|
-
return /* @__PURE__ */
|
8090
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react49.default.createElement(
|
7982
8091
|
Radio,
|
7983
8092
|
{
|
7984
8093
|
name: "language",
|
@@ -7996,7 +8105,7 @@ var InterfaceSettings = ({
|
|
7996
8105
|
{ value: "en", label: "English" }
|
7997
8106
|
]
|
7998
8107
|
}
|
7999
|
-
), /* @__PURE__ */
|
8108
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
8000
8109
|
Radio,
|
8001
8110
|
{
|
8002
8111
|
name: "theme",
|
@@ -8012,7 +8121,7 @@ var InterfaceSettings = ({
|
|
8012
8121
|
options: [
|
8013
8122
|
{
|
8014
8123
|
value: "light",
|
8015
|
-
label: /* @__PURE__ */
|
8124
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
8016
8125
|
"svg",
|
8017
8126
|
{
|
8018
8127
|
width: "15",
|
@@ -8022,7 +8131,7 @@ var InterfaceSettings = ({
|
|
8022
8131
|
xmlns: "http://www.w3.org/2000/svg",
|
8023
8132
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8024
8133
|
},
|
8025
|
-
/* @__PURE__ */
|
8134
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
8026
8135
|
"path",
|
8027
8136
|
{
|
8028
8137
|
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 +8142,7 @@ var InterfaceSettings = ({
|
|
8033
8142
|
},
|
8034
8143
|
{
|
8035
8144
|
value: "dark",
|
8036
|
-
label: /* @__PURE__ */
|
8145
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
8037
8146
|
"svg",
|
8038
8147
|
{
|
8039
8148
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8044,7 +8153,7 @@ var InterfaceSettings = ({
|
|
8044
8153
|
stroke: "currentColor",
|
8045
8154
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8046
8155
|
},
|
8047
|
-
/* @__PURE__ */
|
8156
|
+
/* @__PURE__ */ import_react49.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8048
8157
|
)
|
8049
8158
|
}
|
8050
8159
|
]
|
@@ -8053,14 +8162,14 @@ var InterfaceSettings = ({
|
|
8053
8162
|
};
|
8054
8163
|
|
8055
8164
|
// elements/phoneMockup/PhoneMockup.tsx
|
8056
|
-
var
|
8165
|
+
var import_react50 = __toESM(require("react"));
|
8057
8166
|
var PhoneMockup = ({
|
8058
8167
|
children,
|
8059
8168
|
upperOverlayGradiant,
|
8060
8169
|
lowerOverlayGradiant,
|
8061
8170
|
phone,
|
8062
8171
|
hideButtons
|
8063
|
-
}) => /* @__PURE__ */
|
8172
|
+
}) => /* @__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
8173
|
// Annotate the CommonJS export names for ESM import in node:
|
8065
8174
|
0 && (module.exports = {
|
8066
8175
|
Accordion,
|