@sikka/hawa 0.29.14-next → 0.30.0-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/feedback/index.js +15 -13
- package/dist/blocks/feedback/index.mjs +15 -13
- package/dist/blocks/index.js +15 -13
- package/dist/blocks/index.mjs +1 -1
- package/dist/{chunk-XKVSLAKW.mjs → chunk-TGB72TYK.mjs} +15 -13
- package/dist/combobox/index.d.mts +1 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +224 -218
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +224 -218
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dialog/index.d.mts +1 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +9 -4
- package/dist/elements/index.d.ts +9 -4
- package/dist/elements/index.js +87 -81
- package/dist/elements/index.mjs +15 -11
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +87 -81
- package/dist/index.mjs +113 -107
- package/dist/passwordInput/index.js +15 -13
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +15 -13
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +15 -13
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +15 -13
- package/dist/popover/index.mjs.map +1 -1
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1665,7 +1665,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1665
1665
|
...props
|
1666
1666
|
}
|
1667
1667
|
));
|
1668
|
-
var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal,
|
1668
|
+
var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1669
1669
|
DialogPrimitive.Content,
|
1670
1670
|
{
|
1671
1671
|
onPointerDownOutside: (e) => {
|
@@ -3196,72 +3196,10 @@ var Radio = ({
|
|
3196
3196
|
import * as React27 from "react";
|
3197
3197
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
3198
3198
|
|
3199
|
-
// elements/popover/Popover.tsx
|
3200
|
-
import * as React25 from "react";
|
3201
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
3202
|
-
var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
|
3203
|
-
PopoverPrimitive.Content,
|
3204
|
-
{
|
3205
|
-
ref,
|
3206
|
-
align,
|
3207
|
-
sideOffset,
|
3208
|
-
className: cn(
|
3209
|
-
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[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",
|
3210
|
-
className
|
3211
|
-
),
|
3212
|
-
...props
|
3213
|
-
}
|
3214
|
-
)));
|
3215
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3216
|
-
var Popover = ({
|
3217
|
-
trigger,
|
3218
|
-
children,
|
3219
|
-
className,
|
3220
|
-
align = "center",
|
3221
|
-
side,
|
3222
|
-
sideOffset = 4,
|
3223
|
-
open,
|
3224
|
-
width = "default",
|
3225
|
-
disableTrigger,
|
3226
|
-
contentProps,
|
3227
|
-
triggerProps,
|
3228
|
-
...props
|
3229
|
-
}) => {
|
3230
|
-
let widthStyles = {
|
3231
|
-
trigger: "var(--radix-popover-trigger-width)",
|
3232
|
-
default: "auto"
|
3233
|
-
};
|
3234
|
-
return /* @__PURE__ */ React25.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React25.createElement(
|
3235
|
-
PopoverPrimitive.Trigger,
|
3236
|
-
{
|
3237
|
-
className: "hawa-w-full",
|
3238
|
-
disabled: disableTrigger,
|
3239
|
-
...triggerProps
|
3240
|
-
},
|
3241
|
-
trigger
|
3242
|
-
), /* @__PURE__ */ React25.createElement(
|
3243
|
-
PopoverContent,
|
3244
|
-
{
|
3245
|
-
side,
|
3246
|
-
className,
|
3247
|
-
align,
|
3248
|
-
sideOffset,
|
3249
|
-
style: {
|
3250
|
-
width: widthStyles[width],
|
3251
|
-
maxWidth: "var(--radix-popover-content-available-width)",
|
3252
|
-
maxHeight: "var(--radix-popover-content-available-height)"
|
3253
|
-
},
|
3254
|
-
...contentProps
|
3255
|
-
},
|
3256
|
-
children
|
3257
|
-
));
|
3258
|
-
};
|
3259
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3260
|
-
|
3261
3199
|
// elements/command/Command.tsx
|
3262
|
-
import * as
|
3200
|
+
import * as React25 from "react";
|
3263
3201
|
import { Command as CommandPrimitive } from "cmdk";
|
3264
|
-
var Command =
|
3202
|
+
var Command = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3265
3203
|
CommandPrimitive,
|
3266
3204
|
{
|
3267
3205
|
ref,
|
@@ -3274,15 +3212,15 @@ var Command = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
3274
3212
|
));
|
3275
3213
|
Command.displayName = CommandPrimitive.displayName;
|
3276
3214
|
var CommandDialog = ({ children, ...props }) => {
|
3277
|
-
return /* @__PURE__ */
|
3215
|
+
return /* @__PURE__ */ React25.createElement(Dialog, { ...props }, /* @__PURE__ */ React25.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React25.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
3278
3216
|
};
|
3279
|
-
var CommandInput =
|
3217
|
+
var CommandInput = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3280
3218
|
"div",
|
3281
3219
|
{
|
3282
3220
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
3283
3221
|
"cmdk-input-wrapper": ""
|
3284
3222
|
},
|
3285
|
-
/* @__PURE__ */
|
3223
|
+
/* @__PURE__ */ React25.createElement(
|
3286
3224
|
"svg",
|
3287
3225
|
{
|
3288
3226
|
"aria-label": "Search Icon",
|
@@ -3297,10 +3235,10 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3297
3235
|
strokeLinejoin: "round",
|
3298
3236
|
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
3299
3237
|
},
|
3300
|
-
/* @__PURE__ */
|
3301
|
-
/* @__PURE__ */
|
3238
|
+
/* @__PURE__ */ React25.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
3239
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m21 21-4.3-4.3" })
|
3302
3240
|
),
|
3303
|
-
/* @__PURE__ */
|
3241
|
+
/* @__PURE__ */ React25.createElement(
|
3304
3242
|
CommandPrimitive.Input,
|
3305
3243
|
{
|
3306
3244
|
ref,
|
@@ -3313,7 +3251,7 @@ var CommandInput = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3313
3251
|
)
|
3314
3252
|
));
|
3315
3253
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
3316
|
-
var CommandList =
|
3254
|
+
var CommandList = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3317
3255
|
CommandPrimitive.List,
|
3318
3256
|
{
|
3319
3257
|
ref,
|
@@ -3325,7 +3263,7 @@ var CommandList = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3325
3263
|
}
|
3326
3264
|
));
|
3327
3265
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
3328
|
-
var CommandEmpty =
|
3266
|
+
var CommandEmpty = React25.forwardRef((props, ref) => /* @__PURE__ */ React25.createElement(
|
3329
3267
|
CommandPrimitive.Empty,
|
3330
3268
|
{
|
3331
3269
|
ref,
|
@@ -3334,7 +3272,7 @@ var CommandEmpty = React26.forwardRef((props, ref) => /* @__PURE__ */ React26.cr
|
|
3334
3272
|
}
|
3335
3273
|
));
|
3336
3274
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
3337
|
-
var CommandGroup =
|
3275
|
+
var CommandGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3338
3276
|
CommandPrimitive.Group,
|
3339
3277
|
{
|
3340
3278
|
ref,
|
@@ -3346,7 +3284,7 @@ var CommandGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3346
3284
|
}
|
3347
3285
|
));
|
3348
3286
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
3349
|
-
var CommandSeparator =
|
3287
|
+
var CommandSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3350
3288
|
CommandPrimitive.Separator,
|
3351
3289
|
{
|
3352
3290
|
ref,
|
@@ -3355,7 +3293,7 @@ var CommandSeparator = React26.forwardRef(({ className, ...props }, ref) => /* @
|
|
3355
3293
|
}
|
3356
3294
|
));
|
3357
3295
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
3358
|
-
var CommandItem =
|
3296
|
+
var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
3359
3297
|
CommandPrimitive.Item,
|
3360
3298
|
{
|
3361
3299
|
ref,
|
@@ -3371,7 +3309,7 @@ var CommandShortcut = ({
|
|
3371
3309
|
className,
|
3372
3310
|
...props
|
3373
3311
|
}) => {
|
3374
|
-
return /* @__PURE__ */
|
3312
|
+
return /* @__PURE__ */ React25.createElement(
|
3375
3313
|
"span",
|
3376
3314
|
{
|
3377
3315
|
className: cn(
|
@@ -3384,6 +3322,70 @@ var CommandShortcut = ({
|
|
3384
3322
|
};
|
3385
3323
|
CommandShortcut.displayName = "CommandShortcut";
|
3386
3324
|
|
3325
|
+
// elements/popover/Popover.tsx
|
3326
|
+
import * as React26 from "react";
|
3327
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
3328
|
+
var PopoverContent = React26.forwardRef(
|
3329
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
|
3330
|
+
PopoverPrimitive.Content,
|
3331
|
+
{
|
3332
|
+
ref,
|
3333
|
+
align,
|
3334
|
+
sideOffset,
|
3335
|
+
className: cn(
|
3336
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[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",
|
3337
|
+
className
|
3338
|
+
),
|
3339
|
+
...props
|
3340
|
+
}
|
3341
|
+
))
|
3342
|
+
);
|
3343
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3344
|
+
var Popover = ({
|
3345
|
+
trigger,
|
3346
|
+
children,
|
3347
|
+
className,
|
3348
|
+
align = "center",
|
3349
|
+
side,
|
3350
|
+
sideOffset = 4,
|
3351
|
+
open,
|
3352
|
+
width = "default",
|
3353
|
+
disableTrigger,
|
3354
|
+
contentProps,
|
3355
|
+
triggerProps,
|
3356
|
+
...props
|
3357
|
+
}) => {
|
3358
|
+
let widthStyles = {
|
3359
|
+
trigger: "var(--radix-popover-trigger-width)",
|
3360
|
+
default: "auto"
|
3361
|
+
};
|
3362
|
+
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
|
3363
|
+
PopoverPrimitive.Trigger,
|
3364
|
+
{
|
3365
|
+
className: "hawa-w-full",
|
3366
|
+
disabled: disableTrigger,
|
3367
|
+
...triggerProps
|
3368
|
+
},
|
3369
|
+
trigger
|
3370
|
+
), /* @__PURE__ */ React26.createElement(
|
3371
|
+
PopoverContent,
|
3372
|
+
{
|
3373
|
+
side,
|
3374
|
+
className,
|
3375
|
+
align,
|
3376
|
+
sideOffset,
|
3377
|
+
style: {
|
3378
|
+
width: widthStyles[width],
|
3379
|
+
maxWidth: "var(--radix-popover-content-available-width)",
|
3380
|
+
maxHeight: "var(--radix-popover-content-available-height)"
|
3381
|
+
},
|
3382
|
+
...contentProps
|
3383
|
+
},
|
3384
|
+
children
|
3385
|
+
));
|
3386
|
+
};
|
3387
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3388
|
+
|
3387
3389
|
// elements/combobox/Combobox.tsx
|
3388
3390
|
var Combobox = React27.forwardRef(
|
3389
3391
|
({
|
@@ -3394,11 +3396,13 @@ var Combobox = React27.forwardRef(
|
|
3394
3396
|
direction,
|
3395
3397
|
labelProps,
|
3396
3398
|
data,
|
3399
|
+
renderOption,
|
3397
3400
|
...props
|
3398
3401
|
}, ref) => {
|
3399
3402
|
var _a, _b, _c;
|
3400
3403
|
const [open, setOpen] = React27.useState(false);
|
3401
3404
|
const [value, setValue] = React27.useState(defaultValue);
|
3405
|
+
const containerRef = React27.useRef(null);
|
3402
3406
|
function getProperty(obj, key) {
|
3403
3407
|
return obj[key];
|
3404
3408
|
}
|
@@ -3413,7 +3417,8 @@ var Combobox = React27.forwardRef(
|
|
3413
3417
|
className: cn(
|
3414
3418
|
"hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
|
3415
3419
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
3416
|
-
)
|
3420
|
+
),
|
3421
|
+
ref: containerRef
|
3417
3422
|
},
|
3418
3423
|
props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
|
3419
3424
|
/* @__PURE__ */ React27.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React27.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React27.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React27.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React27.createElement(
|
@@ -3471,7 +3476,8 @@ var Combobox = React27.forwardRef(
|
|
3471
3476
|
{
|
3472
3477
|
sideOffset: 0,
|
3473
3478
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
|
3474
|
-
dir: direction
|
3479
|
+
dir: direction,
|
3480
|
+
container: containerRef.current
|
3475
3481
|
},
|
3476
3482
|
/* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
|
3477
3483
|
CommandInput,
|
@@ -3479,7 +3485,7 @@ var Combobox = React27.forwardRef(
|
|
3479
3485
|
dir: direction,
|
3480
3486
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
3481
3487
|
}
|
3482
|
-
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-
|
3488
|
+
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3483
3489
|
CommandItem,
|
3484
3490
|
{
|
3485
3491
|
key: i,
|
@@ -3515,7 +3521,7 @@ var Combobox = React27.forwardRef(
|
|
3515
3521
|
},
|
3516
3522
|
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3517
3523
|
),
|
3518
|
-
getProperty(item, labelKey)
|
3524
|
+
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3519
3525
|
))))
|
3520
3526
|
))
|
3521
3527
|
);
|
@@ -4419,7 +4425,7 @@ var AppStores = (props) => {
|
|
4419
4425
|
};
|
4420
4426
|
|
4421
4427
|
// elements/badge/Badge.tsx
|
4422
|
-
import React38, { useEffect as useEffect7, useState as useState9, useRef as
|
4428
|
+
import React38, { useEffect as useEffect7, useState as useState9, useRef as useRef7 } from "react";
|
4423
4429
|
var Badge = ({
|
4424
4430
|
anchor,
|
4425
4431
|
position = "right",
|
@@ -4428,7 +4434,7 @@ var Badge = ({
|
|
4428
4434
|
className
|
4429
4435
|
}) => {
|
4430
4436
|
const [badgePosition, setBadgePosition] = useState9(null);
|
4431
|
-
const indicatorRef =
|
4437
|
+
const indicatorRef = useRef7(null);
|
4432
4438
|
const sizeStyles2 = {
|
4433
4439
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
4434
4440
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
@@ -4482,7 +4488,7 @@ var BadgedComponent = ({
|
|
4482
4488
|
size,
|
4483
4489
|
text
|
4484
4490
|
}) => {
|
4485
|
-
const ref =
|
4491
|
+
const ref = useRef7(null);
|
4486
4492
|
return /* @__PURE__ */ React38.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React38.createElement(
|
4487
4493
|
Badge,
|
4488
4494
|
{
|
@@ -4496,7 +4502,7 @@ var BadgedComponent = ({
|
|
4496
4502
|
};
|
4497
4503
|
|
4498
4504
|
// elements/phoneInput/PhoneInput.tsx
|
4499
|
-
import React39, { useState as useState10, useRef as
|
4505
|
+
import React39, { useState as useState10, useRef as useRef8, useEffect as useEffect8 } from "react";
|
4500
4506
|
|
4501
4507
|
// countries.ts
|
4502
4508
|
var countries = [
|
@@ -6195,7 +6201,7 @@ var countries_default = countries;
|
|
6195
6201
|
var PhoneInput = ({ labelProps, ...props }) => {
|
6196
6202
|
const [phoneNumber, setPhoneNumber] = useState10("");
|
6197
6203
|
const [countryCode, setCountryCode] = useState10(props.preferredCountry);
|
6198
|
-
const inputRef =
|
6204
|
+
const inputRef = useRef8(null);
|
6199
6205
|
useEffect8(() => {
|
6200
6206
|
var _a;
|
6201
6207
|
if (inputRef.current) {
|
@@ -7679,7 +7685,7 @@ function Toaster(props) {
|
|
7679
7685
|
}
|
7680
7686
|
|
7681
7687
|
// elements/destroyableCard/DestroyableCard.tsx
|
7682
|
-
import React59, { useRef as
|
7688
|
+
import React59, { useRef as useRef9, useState as useState18 } from "react";
|
7683
7689
|
var DestroyableCard = ({
|
7684
7690
|
position = "bottom-right",
|
7685
7691
|
fixed,
|
@@ -7687,7 +7693,7 @@ var DestroyableCard = ({
|
|
7687
7693
|
...props
|
7688
7694
|
}) => {
|
7689
7695
|
const [closed, setClosed] = useState18(false);
|
7690
|
-
const popUpRef =
|
7696
|
+
const popUpRef = useRef9(null);
|
7691
7697
|
const boxPosition = {
|
7692
7698
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
7693
7699
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
@@ -8223,7 +8229,7 @@ var Navbar = ({
|
|
8223
8229
|
};
|
8224
8230
|
|
8225
8231
|
// layout/appLayout/AppLayout.tsx
|
8226
|
-
import React66, { useEffect as useEffect14, useRef as
|
8232
|
+
import React66, { useEffect as useEffect14, useRef as useRef10, useState as useState21 } from "react";
|
8227
8233
|
var AppLayout = ({
|
8228
8234
|
profileMenuWidth = "default",
|
8229
8235
|
DrawerFooterActions,
|
@@ -8246,7 +8252,7 @@ var AppLayout = ({
|
|
8246
8252
|
opened: { sm: "100", md: openDrawerWidth, lg: "250" },
|
8247
8253
|
closed: { sm: closeDrawerWidth, md: closeDrawerWidth, lg: closeDrawerWidth }
|
8248
8254
|
};
|
8249
|
-
const ref =
|
8255
|
+
const ref = useRef10(null);
|
8250
8256
|
const isRTL = direction === "rtl";
|
8251
8257
|
const [openedSidebarItem, setOpenedSidebarItem] = useState21("");
|
8252
8258
|
const [size, setSize] = useState21(1200);
|
@@ -8930,7 +8936,7 @@ var AppTabs = ({ tabs, className }) => {
|
|
8930
8936
|
};
|
8931
8937
|
|
8932
8938
|
// layout/docsLayout/DocsLayout.tsx
|
8933
|
-
import React72, { useEffect as useEffect16, useRef as
|
8939
|
+
import React72, { useEffect as useEffect16, useRef as useRef11, useState as useState24 } from "react";
|
8934
8940
|
|
8935
8941
|
// hooks/useBreakpoint.ts
|
8936
8942
|
import { useState as useState23, useEffect as useEffect15 } from "react";
|
@@ -9039,7 +9045,7 @@ var DocsLayout = ({
|
|
9039
9045
|
lg: closeDrawerWidth
|
9040
9046
|
}
|
9041
9047
|
};
|
9042
|
-
const ref =
|
9048
|
+
const ref = useRef11(null);
|
9043
9049
|
const isRTL = direction === "rtl";
|
9044
9050
|
let size = useBreakpoint();
|
9045
9051
|
if (typeof window == "undefined") {
|
@@ -10310,7 +10316,7 @@ var CodeConfirmation = (props) => {
|
|
10310
10316
|
};
|
10311
10317
|
|
10312
10318
|
// blocks/feedback/UserReferralSource.tsx
|
10313
|
-
import React81, { useRef as
|
10319
|
+
import React81, { useRef as useRef12, useState as useState29 } from "react";
|
10314
10320
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10315
10321
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10316
10322
|
import * as z6 from "zod";
|
@@ -10321,7 +10327,7 @@ var UserReferralSource = ({
|
|
10321
10327
|
}) => {
|
10322
10328
|
var _a, _b;
|
10323
10329
|
const [closed, setClosed] = useState29(false);
|
10324
|
-
const popUpRef =
|
10330
|
+
const popUpRef = useRef12(null);
|
10325
10331
|
const formSchema = z6.object({
|
10326
10332
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
10327
10333
|
feedback: z6.string().optional()
|
@@ -10468,7 +10474,7 @@ var UserReferralSource = ({
|
|
10468
10474
|
};
|
10469
10475
|
|
10470
10476
|
// blocks/feedback/FeedbackRating.tsx
|
10471
|
-
import React82, { useEffect as useEffect18, useRef as
|
10477
|
+
import React82, { useEffect as useEffect18, useRef as useRef13, useState as useState30 } from "react";
|
10472
10478
|
var FeedbackRating = ({
|
10473
10479
|
position = "bottom-right",
|
10474
10480
|
...props
|
@@ -10477,7 +10483,7 @@ var FeedbackRating = ({
|
|
10477
10483
|
const [answered, setAnswered] = useState30(false);
|
10478
10484
|
const [clickedOption, setClickedOption] = useState30(null);
|
10479
10485
|
const [closingTimer, setClosingTimer] = useState30(5);
|
10480
|
-
const popUpRef =
|
10486
|
+
const popUpRef = useRef13(null);
|
10481
10487
|
const boxPosition = {
|
10482
10488
|
"bottom-right": "hawa-right-4",
|
10483
10489
|
"bottom-left": "hawa-left-4"
|
@@ -11189,12 +11195,12 @@ var ActionCard = (props) => {
|
|
11189
11195
|
};
|
11190
11196
|
|
11191
11197
|
// blocks/cards/AdCard.tsx
|
11192
|
-
import React94, { useState as useState33, useEffect as useEffect19, useRef as
|
11198
|
+
import React94, { useState as useState33, useEffect as useEffect19, useRef as useRef14 } from "react";
|
11193
11199
|
var AdCard = ({
|
11194
11200
|
orientation = "vertical",
|
11195
11201
|
...props
|
11196
11202
|
}) => {
|
11197
|
-
const adRef =
|
11203
|
+
const adRef = useRef14(null);
|
11198
11204
|
const [closed, setClosed] = useState33(false);
|
11199
11205
|
let duration = 0;
|
11200
11206
|
useEffect19(() => {
|
@@ -11869,7 +11875,7 @@ var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : us
|
|
11869
11875
|
import { useState as useState36 } from "react";
|
11870
11876
|
|
11871
11877
|
// hooks/useHover.ts
|
11872
|
-
import { useEffect as useEffect22, useRef as
|
11878
|
+
import { useEffect as useEffect22, useRef as useRef15, useState as useState37 } from "react";
|
11873
11879
|
|
11874
11880
|
// hooks/useToast.ts
|
11875
11881
|
import * as React104 from "react";
|
@@ -11976,7 +11982,7 @@ function useToast() {
|
|
11976
11982
|
}
|
11977
11983
|
|
11978
11984
|
// hooks/useCarousel.ts
|
11979
|
-
import { useState as useState39, useRef as
|
11985
|
+
import { useState as useState39, useRef as useRef16 } from "react";
|
11980
11986
|
|
11981
11987
|
// hooks/useDialogCarousel.ts
|
11982
11988
|
import { useEffect as useEffect24, useState as useState40 } from "react";
|
@@ -12022,11 +12028,11 @@ var useDialogCarousel = (options) => {
|
|
12022
12028
|
};
|
12023
12029
|
|
12024
12030
|
// hooks/useDialogSteps.ts
|
12025
|
-
import { useState as useState41, useEffect as useEffect25, useRef as
|
12031
|
+
import { useState as useState41, useEffect as useEffect25, useRef as useRef17 } from "react";
|
12026
12032
|
var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
|
12027
12033
|
const [currentStep, setCurrentStep] = useState41(initialStep);
|
12028
12034
|
const [dialogHeight, setDialogHeight] = useState41(null);
|
12029
|
-
const visibleStepRef =
|
12035
|
+
const visibleStepRef = useRef17(null);
|
12030
12036
|
useEffect25(() => {
|
12031
12037
|
if (visibleStepRef.current) {
|
12032
12038
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
@@ -12079,7 +12085,7 @@ var useWindowSize = () => {
|
|
12079
12085
|
};
|
12080
12086
|
|
12081
12087
|
// hooks/useFocusWithin.ts
|
12082
|
-
import { useRef as
|
12088
|
+
import { useRef as useRef18, useState as useState43, useEffect as useEffect27 } from "react";
|
12083
12089
|
function containsRelatedTarget(event) {
|
12084
12090
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
12085
12091
|
return event.currentTarget.contains(event.relatedTarget);
|
@@ -12090,9 +12096,9 @@ function useFocusWithin({
|
|
12090
12096
|
onBlur,
|
12091
12097
|
onFocus
|
12092
12098
|
} = {}) {
|
12093
|
-
const ref =
|
12099
|
+
const ref = useRef18(null);
|
12094
12100
|
const [focused, _setFocused] = useState43(false);
|
12095
|
-
const focusedRef =
|
12101
|
+
const focusedRef = useRef18(false);
|
12096
12102
|
const setFocused = (value) => {
|
12097
12103
|
_setFocused(value);
|
12098
12104
|
focusedRef.current = value;
|
@@ -12125,7 +12131,7 @@ function useFocusWithin({
|
|
12125
12131
|
}
|
12126
12132
|
|
12127
12133
|
// hooks/useMediaQuery.ts
|
12128
|
-
import { useState as useState44, useEffect as useEffect28, useRef as
|
12134
|
+
import { useState as useState44, useEffect as useEffect28, useRef as useRef19 } from "react";
|
12129
12135
|
function attachMediaListener(query, callback) {
|
12130
12136
|
try {
|
12131
12137
|
query.addEventListener("change", callback);
|
@@ -12150,7 +12156,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
12150
12156
|
const [matches, setMatches] = useState44(
|
12151
12157
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
12152
12158
|
);
|
12153
|
-
const queryRef =
|
12159
|
+
const queryRef = useRef19();
|
12154
12160
|
useEffect28(() => {
|
12155
12161
|
if ("matchMedia" in window) {
|
12156
12162
|
queryRef.current = window.matchMedia(query);
|
@@ -411,19 +411,21 @@ var Input = (0, import_react6.forwardRef)(
|
|
411
411
|
// elements/popover/Popover.tsx
|
412
412
|
var React8 = __toESM(require("react"));
|
413
413
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
414
|
-
var PopoverContent = React8.forwardRef(
|
415
|
-
PopoverPrimitive.
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
414
|
+
var PopoverContent = React8.forwardRef(
|
415
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React8.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React8.createElement(
|
416
|
+
PopoverPrimitive.Content,
|
417
|
+
{
|
418
|
+
ref,
|
419
|
+
align,
|
420
|
+
sideOffset,
|
421
|
+
className: cn(
|
422
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[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",
|
423
|
+
className
|
424
|
+
),
|
425
|
+
...props
|
426
|
+
}
|
427
|
+
))
|
428
|
+
);
|
427
429
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
428
430
|
var Popover = ({
|
429
431
|
trigger,
|