@sikka/hawa 0.30.25-next → 0.30.27-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/index.js +345 -211
- package/dist/blocks/index.mjs +3 -2
- package/dist/blocks/misc/index.js +289 -155
- package/dist/blocks/misc/index.mjs +212 -76
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chunk-R2SKHHDK.mjs +411 -0
- package/dist/{chunk-7LAUVLVZ.mjs → chunk-SW7UK35T.mjs} +123 -63
- package/dist/{chunk-H7ZADF2Z.mjs → chunk-UDCDD66A.mjs} +8 -0
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-MeUyaBib.d.mts +5 -0
- package/dist/commonTypes-MeUyaBib.d.ts +5 -0
- package/dist/elements/index.d.mts +5 -1
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.js +431 -294
- package/dist/elements/index.mjs +9 -5
- package/dist/floatBox/index.d.mts +14 -0
- package/dist/floatBox/index.d.ts +14 -0
- package/dist/floatBox/index.js +97 -0
- package/dist/floatBox/index.js.map +1 -0
- package/dist/floatBox/index.mjs +61 -0
- package/dist/floatBox/index.mjs.map +1 -0
- 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 +101 -56
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +7860 -7765
- package/dist/index.mjs +1529 -1437
- package/dist/input/index.d.mts +2 -1
- package/dist/input/index.d.ts +2 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/layout/index.mjs +3 -4
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +6 -0
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +4 -0
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +9 -1
- package/dist/radio/index.d.ts +9 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +172 -38
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +172 -38
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/dist/tooltip/index.d.mts +3 -4
- package/dist/tooltip/index.d.ts +3 -4
- package/package.json +8 -8
- package/dist/Label-9FHRF7Ex.d.mts +0 -14
- package/dist/Label-9FHRF7Ex.d.ts +0 -14
- package/dist/chunk-4OOSUQZG.mjs +0 -12
- package/dist/chunk-57SB6MBG.mjs +0 -31
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- /package/dist/{chunk-CVOMHXJK.mjs → chunk-BXGDHNAY.mjs} +0 -0
package/dist/elements/index.js
CHANGED
@@ -122,6 +122,8 @@ __export(elements_exports, {
|
|
122
122
|
PinInput: () => PinInput,
|
123
123
|
Popover: () => Popover,
|
124
124
|
PopoverContent: () => PopoverContent,
|
125
|
+
PopoverPortal: () => PopoverPortal,
|
126
|
+
PopoverRoot: () => PopoverRoot,
|
125
127
|
PopoverTrigger: () => PopoverTrigger,
|
126
128
|
Progress: () => Progress,
|
127
129
|
ProgressCircle: () => ProgressCircle,
|
@@ -3621,6 +3623,8 @@ var Popover = ({
|
|
3621
3623
|
));
|
3622
3624
|
};
|
3623
3625
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3626
|
+
var PopoverPortal = PopoverPrimitive.Portal;
|
3627
|
+
var PopoverRoot = PopoverPrimitive.Root;
|
3624
3628
|
|
3625
3629
|
// elements/combobox/Combobox.tsx
|
3626
3630
|
var Combobox = React27.forwardRef(
|
@@ -4104,9 +4108,164 @@ var SortButton = (props) => {
|
|
4104
4108
|
};
|
4105
4109
|
|
4106
4110
|
// elements/tabs/Tabs.tsx
|
4107
|
-
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
|
4108
4218
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4109
4219
|
var import_tailwind_variants = require("tailwind-variants");
|
4220
|
+
|
4221
|
+
// elements/floatBox/FloatBox.tsx
|
4222
|
+
var React39 = __toESM(require("react"));
|
4223
|
+
var FloatBox = ({
|
4224
|
+
className,
|
4225
|
+
open,
|
4226
|
+
side = "bottom",
|
4227
|
+
sideOffset = 40,
|
4228
|
+
align = "center",
|
4229
|
+
...props
|
4230
|
+
}) => {
|
4231
|
+
let stylesMap = {
|
4232
|
+
bottom: {
|
4233
|
+
start: { top: sideOffset, insetInlineStart: 0 },
|
4234
|
+
center: { top: sideOffset },
|
4235
|
+
end: { top: sideOffset, insetInlineEnd: 0 }
|
4236
|
+
},
|
4237
|
+
top: {
|
4238
|
+
start: { bottom: sideOffset, insetInlineStart: 0 },
|
4239
|
+
center: { bottom: sideOffset },
|
4240
|
+
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
4241
|
+
},
|
4242
|
+
right: {
|
4243
|
+
start: { left: sideOffset, top: -5 },
|
4244
|
+
center: { left: sideOffset },
|
4245
|
+
end: { left: sideOffset, bottom: 0 }
|
4246
|
+
},
|
4247
|
+
left: {
|
4248
|
+
start: { right: sideOffset, top: 0 },
|
4249
|
+
center: { right: sideOffset },
|
4250
|
+
end: { right: sideOffset, bottom: 0 }
|
4251
|
+
}
|
4252
|
+
};
|
4253
|
+
return /* @__PURE__ */ React39.createElement(
|
4254
|
+
"div",
|
4255
|
+
{
|
4256
|
+
className: cn(
|
4257
|
+
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
4258
|
+
className
|
4259
|
+
),
|
4260
|
+
style: { ...stylesMap[side][align] },
|
4261
|
+
"data-side": side,
|
4262
|
+
"data-floatbox-state": open ? "open" : "closed"
|
4263
|
+
},
|
4264
|
+
props.children
|
4265
|
+
);
|
4266
|
+
};
|
4267
|
+
|
4268
|
+
// elements/tabs/Tabs.tsx
|
4110
4269
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
4111
4270
|
base: "",
|
4112
4271
|
variants: {
|
@@ -4115,10 +4274,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
4115
4274
|
underlined: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
4116
4275
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
4117
4276
|
},
|
4118
|
-
orientation: {
|
4119
|
-
horizontal: "",
|
4120
|
-
vertical: ""
|
4121
|
-
}
|
4277
|
+
orientation: { horizontal: "", vertical: "" }
|
4122
4278
|
},
|
4123
4279
|
compoundVariants: [
|
4124
4280
|
{
|
@@ -4132,10 +4288,7 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
4132
4288
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
4133
4289
|
}
|
4134
4290
|
],
|
4135
|
-
defaultVariants: {
|
4136
|
-
variant: "default",
|
4137
|
-
orientation: "horizontal"
|
4138
|
-
}
|
4291
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4139
4292
|
});
|
4140
4293
|
var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
4141
4294
|
base: "",
|
@@ -4145,10 +4298,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4145
4298
|
underlined: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-rounded-none hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
4146
4299
|
underlined_tabs: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 hawa-bg-primary/10 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground dark:hawa-border-primary/10"
|
4147
4300
|
},
|
4148
|
-
orientation: {
|
4149
|
-
horizontal: "",
|
4150
|
-
vertical: ""
|
4151
|
-
}
|
4301
|
+
orientation: { horizontal: "", vertical: "" }
|
4152
4302
|
},
|
4153
4303
|
compoundVariants: [
|
4154
4304
|
{
|
@@ -4172,13 +4322,10 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4172
4322
|
class: "hawa-rounded-e-none"
|
4173
4323
|
}
|
4174
4324
|
],
|
4175
|
-
defaultVariants: {
|
4176
|
-
variant: "default",
|
4177
|
-
orientation: "horizontal"
|
4178
|
-
}
|
4325
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4179
4326
|
});
|
4180
|
-
var TabsContext =
|
4181
|
-
var Tabs =
|
4327
|
+
var TabsContext = React40.createContext({ orientation: "horizontal", variant: "default" });
|
4328
|
+
var Tabs = React40.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4182
4329
|
TabsPrimitive.Root,
|
4183
4330
|
{
|
4184
4331
|
ref,
|
@@ -4189,12 +4336,11 @@ var Tabs = React31.forwardRef(({ className, orientation, variant = "default", ..
|
|
4189
4336
|
),
|
4190
4337
|
...props
|
4191
4338
|
},
|
4192
|
-
/* @__PURE__ */
|
4339
|
+
/* @__PURE__ */ React40.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4193
4340
|
));
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4197
|
-
return /* @__PURE__ */ React31.createElement(
|
4341
|
+
var TabsList = React40.forwardRef(({ className, ...props }, ref) => {
|
4342
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4343
|
+
return /* @__PURE__ */ React40.createElement(
|
4198
4344
|
TabsPrimitive.List,
|
4199
4345
|
{
|
4200
4346
|
ref,
|
@@ -4207,22 +4353,36 @@ var TabsList = React31.forwardRef(({ className, ...props }, ref) => {
|
|
4207
4353
|
}
|
4208
4354
|
);
|
4209
4355
|
});
|
4210
|
-
|
4211
|
-
|
4212
|
-
const
|
4213
|
-
|
4356
|
+
var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4357
|
+
const { orientation, variant } = React40.useContext(TabsContext);
|
4358
|
+
const tabTriggerRef = React40.useRef(null);
|
4359
|
+
const { width } = useMeasureDirty(tabTriggerRef);
|
4360
|
+
return /* @__PURE__ */ React40.createElement(
|
4214
4361
|
TabsPrimitive.Trigger,
|
4215
4362
|
{
|
4216
|
-
ref,
|
4217
|
-
className: cn(
|
4363
|
+
ref: tabTriggerRef,
|
4364
|
+
className: cn(
|
4365
|
+
tabsTriggerVariant({ variant, orientation }),
|
4366
|
+
"hawa-relative",
|
4367
|
+
className
|
4368
|
+
),
|
4218
4369
|
...props
|
4219
4370
|
},
|
4220
4371
|
props.children,
|
4221
|
-
chipProps && /* @__PURE__ */
|
4372
|
+
chipProps && /* @__PURE__ */ React40.createElement(Chip, { ...chipProps }),
|
4373
|
+
/* @__PURE__ */ React40.createElement(
|
4374
|
+
FloatBox,
|
4375
|
+
{
|
4376
|
+
align: orientation === "vertical" ? "start" : "start",
|
4377
|
+
side: orientation === "vertical" ? "right" : "bottom",
|
4378
|
+
sideOffset: orientation === "vertical" ? width + 30 : 45,
|
4379
|
+
open: props.showPopover
|
4380
|
+
},
|
4381
|
+
props.popoverContent
|
4382
|
+
)
|
4222
4383
|
);
|
4223
4384
|
});
|
4224
|
-
|
4225
|
-
var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
4385
|
+
var TabsContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4226
4386
|
TabsPrimitive.Content,
|
4227
4387
|
{
|
4228
4388
|
ref,
|
@@ -4233,10 +4393,13 @@ var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
4233
4393
|
...props
|
4234
4394
|
}
|
4235
4395
|
));
|
4396
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
4397
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
4398
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
4236
4399
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4237
4400
|
|
4238
4401
|
// elements/select/Select.tsx
|
4239
|
-
var
|
4402
|
+
var import_react29 = __toESM(require("react"));
|
4240
4403
|
var import_react_select = __toESM(require("react-select"));
|
4241
4404
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4242
4405
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4247,10 +4410,10 @@ var Select = ({
|
|
4247
4410
|
}) => {
|
4248
4411
|
const NoOption = () => {
|
4249
4412
|
var _a, _b;
|
4250
|
-
return /* @__PURE__ */
|
4413
|
+
return /* @__PURE__ */ import_react29.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4251
4414
|
};
|
4252
4415
|
const Control = ({ children, innerProps, innerRef }) => {
|
4253
|
-
return /* @__PURE__ */
|
4416
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4254
4417
|
"div",
|
4255
4418
|
{
|
4256
4419
|
ref: innerRef,
|
@@ -4263,7 +4426,7 @@ var Select = ({
|
|
4263
4426
|
);
|
4264
4427
|
};
|
4265
4428
|
const Option = ({ children, innerProps, innerRef }) => {
|
4266
|
-
return /* @__PURE__ */
|
4429
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4267
4430
|
"div",
|
4268
4431
|
{
|
4269
4432
|
ref: innerRef,
|
@@ -4284,7 +4447,7 @@ var Select = ({
|
|
4284
4447
|
...menuProps
|
4285
4448
|
}) => {
|
4286
4449
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4287
|
-
return /* @__PURE__ */
|
4450
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4288
4451
|
"div",
|
4289
4452
|
{
|
4290
4453
|
className: cn(
|
@@ -4298,7 +4461,7 @@ var Select = ({
|
|
4298
4461
|
children
|
4299
4462
|
);
|
4300
4463
|
};
|
4301
|
-
return /* @__PURE__ */
|
4464
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
4302
4465
|
"div",
|
4303
4466
|
{
|
4304
4467
|
className: cn(
|
@@ -4306,10 +4469,10 @@ var Select = ({
|
|
4306
4469
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4307
4470
|
)
|
4308
4471
|
},
|
4309
|
-
props.label && /* @__PURE__ */
|
4310
|
-
props.isLoading ? /* @__PURE__ */
|
4472
|
+
props.label && /* @__PURE__ */ import_react29.default.createElement(Label2, { ...labelProps }, props.label),
|
4473
|
+
props.isLoading ? /* @__PURE__ */ import_react29.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4311
4474
|
// TODO: enable keyboard to go to the next item in the list
|
4312
|
-
/* @__PURE__ */
|
4475
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
4313
4476
|
import_react_select.default,
|
4314
4477
|
{
|
4315
4478
|
noOptionsMessage: NoOption,
|
@@ -4346,7 +4509,7 @@ var Select = ({
|
|
4346
4509
|
isSearchable: props.isSearchable
|
4347
4510
|
}
|
4348
4511
|
)
|
4349
|
-
) : /* @__PURE__ */
|
4512
|
+
) : /* @__PURE__ */ import_react29.default.createElement(
|
4350
4513
|
import_creatable.default,
|
4351
4514
|
{
|
4352
4515
|
formatCreateLabel: (inputValue) => {
|
@@ -4376,7 +4539,7 @@ var Select = ({
|
|
4376
4539
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4377
4540
|
}
|
4378
4541
|
),
|
4379
|
-
!props.hideHelperText && /* @__PURE__ */
|
4542
|
+
!props.hideHelperText && /* @__PURE__ */ import_react29.default.createElement(
|
4380
4543
|
"p",
|
4381
4544
|
{
|
4382
4545
|
className: cn(
|
@@ -4390,15 +4553,15 @@ var Select = ({
|
|
4390
4553
|
};
|
4391
4554
|
|
4392
4555
|
// elements/switch/Switch.tsx
|
4393
|
-
var
|
4556
|
+
var React42 = __toESM(require("react"));
|
4394
4557
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4395
|
-
var Switch =
|
4558
|
+
var Switch = React42.forwardRef(
|
4396
4559
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4397
|
-
const [parentDirection, setParentDirection] =
|
4560
|
+
const [parentDirection, setParentDirection] = React42.useState(
|
4398
4561
|
null
|
4399
4562
|
);
|
4400
|
-
const parentRef =
|
4401
|
-
|
4563
|
+
const parentRef = React42.useRef(null);
|
4564
|
+
React42.useEffect(() => {
|
4402
4565
|
var _a;
|
4403
4566
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4404
4567
|
if (parentNode) {
|
@@ -4426,13 +4589,13 @@ var Switch = React33.forwardRef(
|
|
4426
4589
|
full: "hawa-rounded-full",
|
4427
4590
|
inherit: "hawa-rounded-inner"
|
4428
4591
|
};
|
4429
|
-
return /* @__PURE__ */
|
4592
|
+
return /* @__PURE__ */ React42.createElement(
|
4430
4593
|
"div",
|
4431
4594
|
{
|
4432
4595
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4433
4596
|
ref: parentRef
|
4434
4597
|
},
|
4435
|
-
/* @__PURE__ */
|
4598
|
+
/* @__PURE__ */ React42.createElement(
|
4436
4599
|
SwitchPrimitives.Root,
|
4437
4600
|
{
|
4438
4601
|
className: cn(
|
@@ -4446,7 +4609,7 @@ var Switch = React33.forwardRef(
|
|
4446
4609
|
...props,
|
4447
4610
|
ref
|
4448
4611
|
},
|
4449
|
-
/* @__PURE__ */
|
4612
|
+
/* @__PURE__ */ React42.createElement(
|
4450
4613
|
SwitchPrimitives.Thumb,
|
4451
4614
|
{
|
4452
4615
|
className: cn(
|
@@ -4460,14 +4623,14 @@ var Switch = React33.forwardRef(
|
|
4460
4623
|
}
|
4461
4624
|
)
|
4462
4625
|
),
|
4463
|
-
label && /* @__PURE__ */
|
4626
|
+
label && /* @__PURE__ */ React42.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4464
4627
|
);
|
4465
4628
|
}
|
4466
4629
|
);
|
4467
4630
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4468
4631
|
|
4469
4632
|
// elements/checkbox/Checkbox.tsx
|
4470
|
-
var
|
4633
|
+
var React43 = __toESM(require("react"));
|
4471
4634
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4472
4635
|
var Checkbox = ({
|
4473
4636
|
id,
|
@@ -4487,7 +4650,7 @@ var Checkbox = ({
|
|
4487
4650
|
lg: 0.9,
|
4488
4651
|
xl: 1
|
4489
4652
|
};
|
4490
|
-
return /* @__PURE__ */
|
4653
|
+
return /* @__PURE__ */ React43.createElement(
|
4491
4654
|
"div",
|
4492
4655
|
{
|
4493
4656
|
className: cn(
|
@@ -4495,7 +4658,7 @@ var Checkbox = ({
|
|
4495
4658
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4496
4659
|
)
|
4497
4660
|
},
|
4498
|
-
/* @__PURE__ */
|
4661
|
+
/* @__PURE__ */ React43.createElement(
|
4499
4662
|
CheckboxElement,
|
4500
4663
|
{
|
4501
4664
|
...props,
|
@@ -4505,7 +4668,7 @@ var Checkbox = ({
|
|
4505
4668
|
id
|
4506
4669
|
}
|
4507
4670
|
),
|
4508
|
-
(label || helperText) && /* @__PURE__ */
|
4671
|
+
(label || helperText) && /* @__PURE__ */ React43.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React43.createElement(
|
4509
4672
|
"label",
|
4510
4673
|
{
|
4511
4674
|
htmlFor: id,
|
@@ -4519,7 +4682,7 @@ var Checkbox = ({
|
|
4519
4682
|
}
|
4520
4683
|
},
|
4521
4684
|
label
|
4522
|
-
), sublabel && /* @__PURE__ */
|
4685
|
+
), sublabel && /* @__PURE__ */ React43.createElement(
|
4523
4686
|
"label",
|
4524
4687
|
{
|
4525
4688
|
htmlFor: id,
|
@@ -4529,7 +4692,7 @@ var Checkbox = ({
|
|
4529
4692
|
)
|
4530
4693
|
},
|
4531
4694
|
sublabel
|
4532
|
-
), helperText && !disabled && /* @__PURE__ */
|
4695
|
+
), helperText && !disabled && /* @__PURE__ */ React43.createElement(
|
4533
4696
|
"label",
|
4534
4697
|
{
|
4535
4698
|
htmlFor: id,
|
@@ -4542,7 +4705,7 @@ var Checkbox = ({
|
|
4542
4705
|
))
|
4543
4706
|
);
|
4544
4707
|
};
|
4545
|
-
var CheckboxElement =
|
4708
|
+
var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4546
4709
|
let checkboxRadius = {
|
4547
4710
|
none: "hawa-rounded-none",
|
4548
4711
|
inherit: "hawa-rounded-sm",
|
@@ -4564,7 +4727,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4564
4727
|
lg: "1em",
|
4565
4728
|
xl: "1.25em"
|
4566
4729
|
};
|
4567
|
-
return /* @__PURE__ */
|
4730
|
+
return /* @__PURE__ */ React43.createElement(
|
4568
4731
|
CheckboxPrimitive.Root,
|
4569
4732
|
{
|
4570
4733
|
ref,
|
@@ -4576,14 +4739,14 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4576
4739
|
),
|
4577
4740
|
...props
|
4578
4741
|
},
|
4579
|
-
/* @__PURE__ */
|
4742
|
+
/* @__PURE__ */ React43.createElement(
|
4580
4743
|
CheckboxPrimitive.Indicator,
|
4581
4744
|
{
|
4582
4745
|
className: cn(
|
4583
4746
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4584
4747
|
)
|
4585
4748
|
},
|
4586
|
-
/* @__PURE__ */
|
4749
|
+
/* @__PURE__ */ React43.createElement(
|
4587
4750
|
"svg",
|
4588
4751
|
{
|
4589
4752
|
"aria-label": "Check Mark",
|
@@ -4594,7 +4757,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4594
4757
|
height: checkboxIndicatorSizes[size],
|
4595
4758
|
width: checkboxIndicatorSizes[size]
|
4596
4759
|
},
|
4597
|
-
/* @__PURE__ */
|
4760
|
+
/* @__PURE__ */ React43.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
4598
4761
|
),
|
4599
4762
|
" "
|
4600
4763
|
)
|
@@ -4603,9 +4766,9 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4603
4766
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4604
4767
|
|
4605
4768
|
// elements/progress/Progress.tsx
|
4606
|
-
var
|
4769
|
+
var React44 = __toESM(require("react"));
|
4607
4770
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4608
|
-
var Progress =
|
4771
|
+
var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React44.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React44.createElement(
|
4609
4772
|
ProgressPrimitive.Root,
|
4610
4773
|
{
|
4611
4774
|
ref,
|
@@ -4615,7 +4778,7 @@ var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4615
4778
|
),
|
4616
4779
|
...props
|
4617
4780
|
},
|
4618
|
-
/* @__PURE__ */
|
4781
|
+
/* @__PURE__ */ React44.createElement(
|
4619
4782
|
ProgressPrimitive.Indicator,
|
4620
4783
|
{
|
4621
4784
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4626,7 +4789,7 @@ var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4626
4789
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4627
4790
|
|
4628
4791
|
// elements/breadcrumb/Breadcrumb.tsx
|
4629
|
-
var
|
4792
|
+
var import_react30 = __toESM(require("react"));
|
4630
4793
|
var Breadcrumb = ({
|
4631
4794
|
breadcrumbLinks,
|
4632
4795
|
separator = ">",
|
@@ -4637,7 +4800,7 @@ var Breadcrumb = ({
|
|
4637
4800
|
small: "hawa-text-sm",
|
4638
4801
|
xs: "hawa-text-xs"
|
4639
4802
|
};
|
4640
|
-
return /* @__PURE__ */
|
4803
|
+
return /* @__PURE__ */ import_react30.default.createElement(
|
4641
4804
|
"div",
|
4642
4805
|
{
|
4643
4806
|
className: cn(
|
@@ -4645,13 +4808,13 @@ var Breadcrumb = ({
|
|
4645
4808
|
textStyles[size]
|
4646
4809
|
)
|
4647
4810
|
},
|
4648
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
4811
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react30.default.createElement(
|
4649
4812
|
"div",
|
4650
4813
|
{
|
4651
4814
|
key: index,
|
4652
4815
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4653
4816
|
},
|
4654
|
-
/* @__PURE__ */
|
4817
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
4655
4818
|
"a",
|
4656
4819
|
{
|
4657
4820
|
href: singleBreadcrumbLink.href,
|
@@ -4659,49 +4822,49 @@ var Breadcrumb = ({
|
|
4659
4822
|
},
|
4660
4823
|
singleBreadcrumbLink.label
|
4661
4824
|
),
|
4662
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
4825
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react30.default.createElement("div", null, separator) : /* @__PURE__ */ import_react30.default.createElement("div", null, separator) : null
|
4663
4826
|
))
|
4664
4827
|
);
|
4665
4828
|
};
|
4666
4829
|
|
4667
4830
|
// elements/appStores/AppStores.tsx
|
4668
|
-
var
|
4831
|
+
var import_react31 = __toESM(require("react"));
|
4669
4832
|
var AppStores = (props) => {
|
4670
|
-
return /* @__PURE__ */
|
4833
|
+
return /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react31.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react31.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react31.default.createElement(
|
4671
4834
|
"path",
|
4672
4835
|
{
|
4673
4836
|
fill: "currentColor",
|
4674
4837
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
4675
4838
|
}
|
4676
|
-
))), /* @__PURE__ */
|
4839
|
+
))), /* @__PURE__ */ import_react31.default.createElement("div", null, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react31.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react31.default.createElement(
|
4677
4840
|
"path",
|
4678
4841
|
{
|
4679
4842
|
fill: "#FFD400",
|
4680
4843
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
4681
4844
|
}
|
4682
|
-
), /* @__PURE__ */
|
4845
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4683
4846
|
"path",
|
4684
4847
|
{
|
4685
4848
|
fill: "#FF3333",
|
4686
4849
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
4687
4850
|
}
|
4688
|
-
), /* @__PURE__ */
|
4851
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4689
4852
|
"path",
|
4690
4853
|
{
|
4691
4854
|
fill: "#48FF48",
|
4692
4855
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
4693
4856
|
}
|
4694
|
-
), /* @__PURE__ */
|
4857
|
+
), /* @__PURE__ */ import_react31.default.createElement(
|
4695
4858
|
"path",
|
4696
4859
|
{
|
4697
4860
|
fill: "#3BCCFF",
|
4698
4861
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
4699
4862
|
}
|
4700
|
-
))), /* @__PURE__ */
|
4863
|
+
))), /* @__PURE__ */ import_react31.default.createElement("div", null, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
4701
4864
|
};
|
4702
4865
|
|
4703
4866
|
// elements/badge/Badge.tsx
|
4704
|
-
var
|
4867
|
+
var import_react32 = __toESM(require("react"));
|
4705
4868
|
var Badge = ({
|
4706
4869
|
anchor,
|
4707
4870
|
position = "right",
|
@@ -4709,14 +4872,14 @@ var Badge = ({
|
|
4709
4872
|
text,
|
4710
4873
|
className
|
4711
4874
|
}) => {
|
4712
|
-
const [badgePosition, setBadgePosition] = (0,
|
4713
|
-
const indicatorRef = (0,
|
4875
|
+
const [badgePosition, setBadgePosition] = (0, import_react32.useState)(null);
|
4876
|
+
const indicatorRef = (0, import_react32.useRef)(null);
|
4714
4877
|
const sizeStyles2 = {
|
4715
4878
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
4716
4879
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
4717
4880
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
4718
4881
|
};
|
4719
|
-
(0,
|
4882
|
+
(0, import_react32.useEffect)(() => {
|
4720
4883
|
const handlePositioning = () => {
|
4721
4884
|
var _a;
|
4722
4885
|
if (anchor.current && indicatorRef.current) {
|
@@ -4739,7 +4902,7 @@ var Badge = ({
|
|
4739
4902
|
window.removeEventListener("resize", handlePositioning);
|
4740
4903
|
};
|
4741
4904
|
}, [anchor]);
|
4742
|
-
return /* @__PURE__ */
|
4905
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react32.default.createElement(
|
4743
4906
|
"div",
|
4744
4907
|
{
|
4745
4908
|
style: {
|
@@ -4764,8 +4927,8 @@ var BadgedComponent = ({
|
|
4764
4927
|
size,
|
4765
4928
|
text
|
4766
4929
|
}) => {
|
4767
|
-
const ref = (0,
|
4768
|
-
return /* @__PURE__ */
|
4930
|
+
const ref = (0, import_react32.useRef)(null);
|
4931
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react32.default.createElement(
|
4769
4932
|
Badge,
|
4770
4933
|
{
|
4771
4934
|
size,
|
@@ -4778,7 +4941,7 @@ var BadgedComponent = ({
|
|
4778
4941
|
};
|
4779
4942
|
|
4780
4943
|
// elements/phoneInput/PhoneInput.tsx
|
4781
|
-
var
|
4944
|
+
var import_react33 = __toESM(require("react"));
|
4782
4945
|
|
4783
4946
|
// countries.ts
|
4784
4947
|
var countries = [
|
@@ -6475,10 +6638,10 @@ var countries_default = countries;
|
|
6475
6638
|
|
6476
6639
|
// elements/phoneInput/PhoneInput.tsx
|
6477
6640
|
var PhoneInput = ({ labelProps, ...props }) => {
|
6478
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
6479
|
-
const [countryCode, setCountryCode] = (0,
|
6480
|
-
const inputRef = (0,
|
6481
|
-
(0,
|
6641
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react33.useState)("");
|
6642
|
+
const [countryCode, setCountryCode] = (0, import_react33.useState)(props.preferredCountry);
|
6643
|
+
const inputRef = (0, import_react33.useRef)(null);
|
6644
|
+
(0, import_react33.useEffect)(() => {
|
6482
6645
|
var _a;
|
6483
6646
|
if (inputRef.current) {
|
6484
6647
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
@@ -6496,7 +6659,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6496
6659
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6497
6660
|
}
|
6498
6661
|
};
|
6499
|
-
return /* @__PURE__ */
|
6662
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react33.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react33.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react33.default.createElement(
|
6500
6663
|
Select,
|
6501
6664
|
{
|
6502
6665
|
width: "fit",
|
@@ -6512,7 +6675,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6512
6675
|
value: countryCode == null ? void 0 : countryCode.label,
|
6513
6676
|
onChange: setCountryCode
|
6514
6677
|
}
|
6515
|
-
), /* @__PURE__ */
|
6678
|
+
), /* @__PURE__ */ import_react33.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react33.default.createElement(
|
6516
6679
|
"input",
|
6517
6680
|
{
|
6518
6681
|
ref: inputRef,
|
@@ -6525,7 +6688,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6525
6688
|
type: "tel",
|
6526
6689
|
placeholder: props.placeholder
|
6527
6690
|
}
|
6528
|
-
))), /* @__PURE__ */
|
6691
|
+
))), /* @__PURE__ */ import_react33.default.createElement(
|
6529
6692
|
"p",
|
6530
6693
|
{
|
6531
6694
|
className: cn(
|
@@ -6538,7 +6701,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6538
6701
|
};
|
6539
6702
|
|
6540
6703
|
// elements/pinInput/PinInput.tsx
|
6541
|
-
var
|
6704
|
+
var import_react34 = __toESM(require("react"));
|
6542
6705
|
var PinInput = ({
|
6543
6706
|
label,
|
6544
6707
|
icon,
|
@@ -6548,7 +6711,7 @@ var PinInput = ({
|
|
6548
6711
|
inputProps,
|
6549
6712
|
...props
|
6550
6713
|
}) => {
|
6551
|
-
const [pin, setPin] = (0,
|
6714
|
+
const [pin, setPin] = (0, import_react34.useState)(Array.from(Array(digits)));
|
6552
6715
|
const handleKeyDown = (e, index) => {
|
6553
6716
|
let backTo = 0;
|
6554
6717
|
if (e.key === "Backspace") {
|
@@ -6557,7 +6720,7 @@ var PinInput = ({
|
|
6557
6720
|
previousInput == null ? void 0 : previousInput.focus();
|
6558
6721
|
}
|
6559
6722
|
};
|
6560
|
-
(0,
|
6723
|
+
(0, import_react34.useEffect)(() => {
|
6561
6724
|
let unfilled = pin.includes(void 0);
|
6562
6725
|
if (!unfilled && getPins) {
|
6563
6726
|
getPins(pin);
|
@@ -6582,13 +6745,13 @@ var PinInput = ({
|
|
6582
6745
|
}
|
6583
6746
|
}
|
6584
6747
|
};
|
6585
|
-
return /* @__PURE__ */
|
6748
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react34.default.createElement(
|
6586
6749
|
"div",
|
6587
6750
|
{
|
6588
6751
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6589
6752
|
dir: "ltr"
|
6590
6753
|
},
|
6591
|
-
pin.map((value, index) => /* @__PURE__ */
|
6754
|
+
pin.map((value, index) => /* @__PURE__ */ import_react34.default.createElement(
|
6592
6755
|
"input",
|
6593
6756
|
{
|
6594
6757
|
key: index,
|
@@ -6608,7 +6771,7 @@ var PinInput = ({
|
|
6608
6771
|
...inputProps
|
6609
6772
|
}
|
6610
6773
|
))
|
6611
|
-
), /* @__PURE__ */
|
6774
|
+
), /* @__PURE__ */ import_react34.default.createElement(
|
6612
6775
|
"p",
|
6613
6776
|
{
|
6614
6777
|
className: cn(
|
@@ -6621,30 +6784,30 @@ var PinInput = ({
|
|
6621
6784
|
};
|
6622
6785
|
|
6623
6786
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6624
|
-
var
|
6787
|
+
var import_react35 = __toESM(require("react"));
|
6625
6788
|
var StopPropagationWrapper = (props) => {
|
6626
6789
|
const handleClick = (e) => {
|
6627
6790
|
e.stopPropagation();
|
6628
6791
|
};
|
6629
|
-
return /* @__PURE__ */
|
6792
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", { onClick: handleClick }, props.children);
|
6630
6793
|
};
|
6631
6794
|
|
6632
6795
|
// elements/scrollArea/ScrollArea.tsx
|
6633
|
-
var
|
6796
|
+
var React51 = __toESM(require("react"));
|
6634
6797
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6635
|
-
var ScrollArea =
|
6798
|
+
var ScrollArea = React51.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6636
6799
|
ScrollAreaPrimitive.Root,
|
6637
6800
|
{
|
6638
6801
|
ref,
|
6639
6802
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6640
6803
|
...props
|
6641
6804
|
},
|
6642
|
-
/* @__PURE__ */
|
6643
|
-
/* @__PURE__ */
|
6644
|
-
/* @__PURE__ */
|
6805
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6806
|
+
/* @__PURE__ */ React51.createElement(ScrollBar, { orientation }),
|
6807
|
+
/* @__PURE__ */ React51.createElement(ScrollAreaPrimitive.Corner, null)
|
6645
6808
|
));
|
6646
6809
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6647
|
-
var ScrollBar =
|
6810
|
+
var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
6648
6811
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6649
6812
|
{
|
6650
6813
|
ref,
|
@@ -6657,7 +6820,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6657
6820
|
),
|
6658
6821
|
...props
|
6659
6822
|
},
|
6660
|
-
/* @__PURE__ */
|
6823
|
+
/* @__PURE__ */ React51.createElement(
|
6661
6824
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6662
6825
|
{
|
6663
6826
|
className: cn(
|
@@ -6670,7 +6833,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6670
6833
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6671
6834
|
|
6672
6835
|
// elements/colorPicker/ColorPicker.tsx
|
6673
|
-
var
|
6836
|
+
var import_react36 = __toESM(require("react"));
|
6674
6837
|
var ColorPicker = ({
|
6675
6838
|
containerProps,
|
6676
6839
|
colorPickerProps,
|
@@ -6681,8 +6844,8 @@ var ColorPicker = ({
|
|
6681
6844
|
preview = false,
|
6682
6845
|
...props
|
6683
6846
|
}) => {
|
6684
|
-
const [selectedColor, setSelectedColor] = (0,
|
6685
|
-
(0,
|
6847
|
+
const [selectedColor, setSelectedColor] = (0, import_react36.useState)(props.color);
|
6848
|
+
(0, import_react36.useEffect)(() => {
|
6686
6849
|
if (selectedColor && selectedColor[0] !== "#") {
|
6687
6850
|
setSelectedColor(`#${selectedColor}`);
|
6688
6851
|
}
|
@@ -6699,13 +6862,13 @@ var ColorPicker = ({
|
|
6699
6862
|
props.handleChange(e);
|
6700
6863
|
}
|
6701
6864
|
};
|
6702
|
-
return /* @__PURE__ */
|
6865
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react36.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react36.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react36.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react36.default.createElement(
|
6703
6866
|
"div",
|
6704
6867
|
{
|
6705
6868
|
style: { height: 40, backgroundColor: selectedColor },
|
6706
6869
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
6707
6870
|
},
|
6708
|
-
/* @__PURE__ */
|
6871
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
6709
6872
|
"input",
|
6710
6873
|
{
|
6711
6874
|
disabled: preview,
|
@@ -6724,7 +6887,7 @@ var ColorPicker = ({
|
|
6724
6887
|
...colorPickerProps
|
6725
6888
|
}
|
6726
6889
|
)
|
6727
|
-
), /* @__PURE__ */
|
6890
|
+
), /* @__PURE__ */ import_react36.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react36.default.createElement(
|
6728
6891
|
"input",
|
6729
6892
|
{
|
6730
6893
|
disabled: preview,
|
@@ -6743,7 +6906,7 @@ var ColorPicker = ({
|
|
6743
6906
|
},
|
6744
6907
|
...textInputProps
|
6745
6908
|
}
|
6746
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
6909
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react36.default.createElement(
|
6747
6910
|
"p",
|
6748
6911
|
{
|
6749
6912
|
className: cn(
|
@@ -6756,7 +6919,7 @@ var ColorPicker = ({
|
|
6756
6919
|
};
|
6757
6920
|
|
6758
6921
|
// elements/progressCircle/ProgressCircle.tsx
|
6759
|
-
var
|
6922
|
+
var import_react37 = __toESM(require("react"));
|
6760
6923
|
var size2config = {
|
6761
6924
|
xs: { radius: 15, strokeWidth: 3 },
|
6762
6925
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -6773,7 +6936,7 @@ function getLimitedValue(input) {
|
|
6773
6936
|
return input;
|
6774
6937
|
}
|
6775
6938
|
}
|
6776
|
-
var ProgressCircle =
|
6939
|
+
var ProgressCircle = import_react37.default.forwardRef((props, ref) => {
|
6777
6940
|
const {
|
6778
6941
|
value: inputValue,
|
6779
6942
|
size = "md",
|
@@ -6793,7 +6956,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6793
6956
|
const circumference = normalizedRadius * 2 * Math.PI;
|
6794
6957
|
const strokeDashoffset = value / 100 * circumference;
|
6795
6958
|
const offset = circumference - strokeDashoffset;
|
6796
|
-
return /* @__PURE__ */
|
6959
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react37.default.Fragment, null, /* @__PURE__ */ import_react37.default.createElement(
|
6797
6960
|
"div",
|
6798
6961
|
{
|
6799
6962
|
ref,
|
@@ -6802,7 +6965,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6802
6965
|
className
|
6803
6966
|
)
|
6804
6967
|
},
|
6805
|
-
/* @__PURE__ */
|
6968
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6806
6969
|
"svg",
|
6807
6970
|
{
|
6808
6971
|
width: radius * 2,
|
@@ -6810,7 +6973,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6810
6973
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
6811
6974
|
className: "hawa-rotate-180 hawa-transform"
|
6812
6975
|
},
|
6813
|
-
/* @__PURE__ */
|
6976
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
6814
6977
|
"circle",
|
6815
6978
|
{
|
6816
6979
|
r: normalizedRadius,
|
@@ -6826,7 +6989,7 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6826
6989
|
)
|
6827
6990
|
}
|
6828
6991
|
),
|
6829
|
-
value > 0 ? /* @__PURE__ */
|
6992
|
+
value > 0 ? /* @__PURE__ */ import_react37.default.createElement(
|
6830
6993
|
"circle",
|
6831
6994
|
{
|
6832
6995
|
r: normalizedRadius,
|
@@ -6846,24 +7009,24 @@ var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
|
|
6846
7009
|
}
|
6847
7010
|
) : null
|
6848
7011
|
),
|
6849
|
-
/* @__PURE__ */
|
7012
|
+
/* @__PURE__ */ import_react37.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
6850
7013
|
));
|
6851
7014
|
});
|
6852
7015
|
ProgressCircle.displayName = "ProgressCircle";
|
6853
7016
|
|
6854
7017
|
// elements/pagination/Pagination.tsx
|
6855
|
-
var
|
7018
|
+
var import_react38 = __toESM(require("react"));
|
6856
7019
|
var import_react_headless_pagination = require("react-headless-pagination");
|
6857
7020
|
var Pagination = ({
|
6858
7021
|
direction,
|
6859
7022
|
totalPages,
|
6860
7023
|
currentPage
|
6861
7024
|
}) => {
|
6862
|
-
const [page, setPage] =
|
7025
|
+
const [page, setPage] = import_react38.default.useState(currentPage || 0);
|
6863
7026
|
const handlePageChange = (page2) => {
|
6864
7027
|
setPage(page2);
|
6865
7028
|
};
|
6866
|
-
return /* @__PURE__ */
|
7029
|
+
return /* @__PURE__ */ import_react38.default.createElement(
|
6867
7030
|
import_react_headless_pagination.Pagination,
|
6868
7031
|
{
|
6869
7032
|
totalPages,
|
@@ -6875,10 +7038,10 @@ var Pagination = ({
|
|
6875
7038
|
truncableText: "...",
|
6876
7039
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
6877
7040
|
},
|
6878
|
-
/* @__PURE__ */
|
7041
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6879
7042
|
import_react_headless_pagination.Pagination.PrevButton,
|
6880
7043
|
{
|
6881
|
-
as: /* @__PURE__ */
|
7044
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6882
7045
|
"button",
|
6883
7046
|
{
|
6884
7047
|
"aria-label": "Previous Table Page",
|
@@ -6888,7 +7051,7 @@ var Pagination = ({
|
|
6888
7051
|
),
|
6889
7052
|
style: { minWidth: 36 }
|
6890
7053
|
},
|
6891
|
-
/* @__PURE__ */
|
7054
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6892
7055
|
"svg",
|
6893
7056
|
{
|
6894
7057
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6901,7 +7064,7 @@ var Pagination = ({
|
|
6901
7064
|
strokeLinecap: "round",
|
6902
7065
|
strokeLinejoin: "round"
|
6903
7066
|
},
|
6904
|
-
/* @__PURE__ */
|
7067
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6905
7068
|
)
|
6906
7069
|
),
|
6907
7070
|
className: cn(
|
@@ -6914,17 +7077,17 @@ var Pagination = ({
|
|
6914
7077
|
},
|
6915
7078
|
"Previous"
|
6916
7079
|
),
|
6917
|
-
/* @__PURE__ */
|
7080
|
+
/* @__PURE__ */ import_react38.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react38.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react38.default.createElement(
|
6918
7081
|
import_react_headless_pagination.Pagination.PageButton,
|
6919
7082
|
{
|
6920
7083
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
6921
7084
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
6922
7085
|
}
|
6923
7086
|
))),
|
6924
|
-
/* @__PURE__ */
|
7087
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6925
7088
|
import_react_headless_pagination.Pagination.NextButton,
|
6926
7089
|
{
|
6927
|
-
as: /* @__PURE__ */
|
7090
|
+
as: /* @__PURE__ */ import_react38.default.createElement(
|
6928
7091
|
"button",
|
6929
7092
|
{
|
6930
7093
|
"aria-label": "Previous Table Page",
|
@@ -6934,7 +7097,7 @@ var Pagination = ({
|
|
6934
7097
|
),
|
6935
7098
|
style: { minWidth: 36 }
|
6936
7099
|
},
|
6937
|
-
/* @__PURE__ */
|
7100
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
6938
7101
|
"svg",
|
6939
7102
|
{
|
6940
7103
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6947,7 +7110,7 @@ var Pagination = ({
|
|
6947
7110
|
strokeLinecap: "round",
|
6948
7111
|
strokeLinejoin: "round"
|
6949
7112
|
},
|
6950
|
-
/* @__PURE__ */
|
7113
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
6951
7114
|
)
|
6952
7115
|
),
|
6953
7116
|
className: cn(
|
@@ -6964,14 +7127,14 @@ var Pagination = ({
|
|
6964
7127
|
};
|
6965
7128
|
|
6966
7129
|
// elements/passwordInput/PasswordInput.tsx
|
6967
|
-
var
|
7130
|
+
var import_react42 = __toESM(require("react"));
|
6968
7131
|
|
6969
7132
|
// icons/Emojis.tsx
|
6970
|
-
var
|
7133
|
+
var import_react39 = __toESM(require("react"));
|
6971
7134
|
|
6972
7135
|
// icons/InputIcons.tsx
|
6973
|
-
var
|
6974
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7136
|
+
var import_react40 = __toESM(require("react"));
|
7137
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react40.default.createElement(
|
6975
7138
|
"svg",
|
6976
7139
|
{
|
6977
7140
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6982,10 +7145,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElement("d
|
|
6982
7145
|
strokeLinecap: "round",
|
6983
7146
|
strokeLinejoin: "round"
|
6984
7147
|
},
|
6985
|
-
/* @__PURE__ */
|
6986
|
-
/* @__PURE__ */
|
7148
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7149
|
+
/* @__PURE__ */ import_react40.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
6987
7150
|
));
|
6988
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7151
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react40.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react40.default.createElement(
|
6989
7152
|
"svg",
|
6990
7153
|
{
|
6991
7154
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6996,20 +7159,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react25.default.createElem
|
|
6996
7159
|
strokeLinecap: "round",
|
6997
7160
|
strokeLinejoin: "round"
|
6998
7161
|
},
|
6999
|
-
/* @__PURE__ */
|
7000
|
-
/* @__PURE__ */
|
7001
|
-
/* @__PURE__ */
|
7002
|
-
/* @__PURE__ */
|
7162
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7163
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7164
|
+
/* @__PURE__ */ import_react40.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7165
|
+
/* @__PURE__ */ import_react40.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7003
7166
|
));
|
7004
7167
|
|
7005
7168
|
// icons/CommonIcons.tsx
|
7006
|
-
var
|
7169
|
+
var import_react41 = __toESM(require("react"));
|
7007
7170
|
var CheckMark = ({ size = "default", className }) => {
|
7008
7171
|
let sizeStyles2 = {
|
7009
7172
|
default: "hawa-h-5 hawa-w-5",
|
7010
7173
|
sm: "hawa-h-3 hawa-w-3"
|
7011
7174
|
};
|
7012
|
-
return /* @__PURE__ */
|
7175
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7013
7176
|
"svg",
|
7014
7177
|
{
|
7015
7178
|
className: cn(sizeStyles2[size], className),
|
@@ -7017,7 +7180,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7017
7180
|
fill: "currentColor",
|
7018
7181
|
viewBox: "0 0 20 20"
|
7019
7182
|
},
|
7020
|
-
/* @__PURE__ */
|
7183
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7021
7184
|
"path",
|
7022
7185
|
{
|
7023
7186
|
fillRule: "evenodd",
|
@@ -7032,7 +7195,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7032
7195
|
default: "hawa-h-5 hawa-w-5",
|
7033
7196
|
sm: "hawa-h-3 hawa-w-3"
|
7034
7197
|
};
|
7035
|
-
return /* @__PURE__ */
|
7198
|
+
return /* @__PURE__ */ import_react41.default.createElement(
|
7036
7199
|
"svg",
|
7037
7200
|
{
|
7038
7201
|
className: cn(sizeStyles2[size], className),
|
@@ -7040,7 +7203,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7040
7203
|
fill: "currentColor",
|
7041
7204
|
viewBox: "0 0 20 20"
|
7042
7205
|
},
|
7043
|
-
/* @__PURE__ */
|
7206
|
+
/* @__PURE__ */ import_react41.default.createElement(
|
7044
7207
|
"path",
|
7045
7208
|
{
|
7046
7209
|
fillRule: "evenodd",
|
@@ -7078,7 +7241,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7078
7241
|
strong: "80%",
|
7079
7242
|
"very-strong": "100%"
|
7080
7243
|
}[currentStrengthLevel];
|
7081
|
-
return /* @__PURE__ */
|
7244
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react42.default.createElement(
|
7082
7245
|
"div",
|
7083
7246
|
{
|
7084
7247
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7090,16 +7253,16 @@ var PasswordInput = ({
|
|
7090
7253
|
hidePopover,
|
7091
7254
|
...props
|
7092
7255
|
}) => {
|
7093
|
-
const [inputValue, setInputValue] = (0,
|
7094
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7095
|
-
const [currentStr, setCurrentStr] = (0,
|
7096
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7097
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7098
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7099
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7100
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7101
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7102
|
-
(0,
|
7256
|
+
const [inputValue, setInputValue] = (0, import_react42.useState)("");
|
7257
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react42.useState)(false);
|
7258
|
+
const [currentStr, setCurrentStr] = (0, import_react42.useState)(0);
|
7259
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react42.useState)(false);
|
7260
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react42.useState)(false);
|
7261
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react42.useState)(false);
|
7262
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react42.useState)(false);
|
7263
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7264
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react42.useState)(false);
|
7265
|
+
(0, import_react42.useEffect)(() => {
|
7103
7266
|
const calculateStrength = () => {
|
7104
7267
|
let strengthScore = 0;
|
7105
7268
|
if (lengthCriteriaMet)
|
@@ -7138,7 +7301,7 @@ var PasswordInput = ({
|
|
7138
7301
|
setIsInputFocused(false);
|
7139
7302
|
};
|
7140
7303
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7141
|
-
return /* @__PURE__ */
|
7304
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", null, /* @__PURE__ */ import_react42.default.createElement(
|
7142
7305
|
Popover,
|
7143
7306
|
{
|
7144
7307
|
width: "trigger",
|
@@ -7147,7 +7310,7 @@ var PasswordInput = ({
|
|
7147
7310
|
onOpenChange: setIsInputFocused,
|
7148
7311
|
triggerProps: { asChild: true },
|
7149
7312
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7150
|
-
trigger: /* @__PURE__ */
|
7313
|
+
trigger: /* @__PURE__ */ import_react42.default.createElement(
|
7151
7314
|
"div",
|
7152
7315
|
{
|
7153
7316
|
onClick: (e) => {
|
@@ -7157,7 +7320,7 @@ var PasswordInput = ({
|
|
7157
7320
|
}
|
7158
7321
|
}
|
7159
7322
|
},
|
7160
|
-
/* @__PURE__ */
|
7323
|
+
/* @__PURE__ */ import_react42.default.createElement(
|
7161
7324
|
Input,
|
7162
7325
|
{
|
7163
7326
|
width: "full",
|
@@ -7167,27 +7330,27 @@ var PasswordInput = ({
|
|
7167
7330
|
onFocus: handleInputFocus,
|
7168
7331
|
onBlur: handleInputBlur,
|
7169
7332
|
type: passwordVisible ? "text" : "password",
|
7170
|
-
endIcon: /* @__PURE__ */
|
7333
|
+
endIcon: /* @__PURE__ */ import_react42.default.createElement(
|
7171
7334
|
"div",
|
7172
7335
|
{
|
7173
7336
|
className: "hawa-cursor-pointer",
|
7174
7337
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7175
7338
|
},
|
7176
|
-
passwordVisible ? /* @__PURE__ */
|
7339
|
+
passwordVisible ? /* @__PURE__ */ import_react42.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react42.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7177
7340
|
" "
|
7178
7341
|
)
|
7179
7342
|
}
|
7180
7343
|
)
|
7181
7344
|
)
|
7182
7345
|
},
|
7183
|
-
/* @__PURE__ */
|
7184
|
-
), /* @__PURE__ */
|
7346
|
+
/* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react42.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react42.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react42.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react42.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7347
|
+
), /* @__PURE__ */ import_react42.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7185
7348
|
};
|
7186
7349
|
|
7187
7350
|
// elements/slider/Slider.tsx
|
7188
|
-
var
|
7351
|
+
var React59 = __toESM(require("react"));
|
7189
7352
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7190
|
-
var Slider =
|
7353
|
+
var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
7191
7354
|
SliderPrimitive.Root,
|
7192
7355
|
{
|
7193
7356
|
ref,
|
@@ -7197,13 +7360,13 @@ var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7197
7360
|
),
|
7198
7361
|
...props
|
7199
7362
|
},
|
7200
|
-
/* @__PURE__ */
|
7201
|
-
/* @__PURE__ */
|
7363
|
+
/* @__PURE__ */ React59.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React59.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7364
|
+
/* @__PURE__ */ React59.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7202
7365
|
));
|
7203
7366
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7204
7367
|
|
7205
7368
|
// elements/simpleTable/SimpleTable.tsx
|
7206
|
-
var
|
7369
|
+
var React60 = __toESM(require("react"));
|
7207
7370
|
var import_react_table2 = require("@tanstack/react-table");
|
7208
7371
|
var SimpleTable = ({
|
7209
7372
|
columns,
|
@@ -7218,7 +7381,7 @@ var SimpleTable = ({
|
|
7218
7381
|
columns,
|
7219
7382
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7220
7383
|
});
|
7221
|
-
return /* @__PURE__ */
|
7384
|
+
return /* @__PURE__ */ React60.createElement(
|
7222
7385
|
"div",
|
7223
7386
|
{
|
7224
7387
|
className: cn(
|
@@ -7226,8 +7389,8 @@ var SimpleTable = ({
|
|
7226
7389
|
classNames
|
7227
7390
|
)
|
7228
7391
|
},
|
7229
|
-
props.isLoading ? /* @__PURE__ */
|
7230
|
-
return /* @__PURE__ */
|
7392
|
+
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7393
|
+
return /* @__PURE__ */ React60.createElement(
|
7231
7394
|
TableHead,
|
7232
7395
|
{
|
7233
7396
|
condensed: props.condensed,
|
@@ -7242,7 +7405,7 @@ var SimpleTable = ({
|
|
7242
7405
|
header.getContext()
|
7243
7406
|
)
|
7244
7407
|
);
|
7245
|
-
})))), /* @__PURE__ */
|
7408
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
7246
7409
|
TableRow,
|
7247
7410
|
{
|
7248
7411
|
key: row.id,
|
@@ -7250,7 +7413,7 @@ var SimpleTable = ({
|
|
7250
7413
|
},
|
7251
7414
|
row.getVisibleCells().map((cell) => {
|
7252
7415
|
var _a2;
|
7253
|
-
return /* @__PURE__ */
|
7416
|
+
return /* @__PURE__ */ React60.createElement(
|
7254
7417
|
TableCell,
|
7255
7418
|
{
|
7256
7419
|
dir: props.direction,
|
@@ -7266,7 +7429,7 @@ var SimpleTable = ({
|
|
7266
7429
|
)
|
7267
7430
|
);
|
7268
7431
|
})
|
7269
|
-
)) : /* @__PURE__ */
|
7432
|
+
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7270
7433
|
TableCell,
|
7271
7434
|
{
|
7272
7435
|
colSpan: columns.length,
|
@@ -7278,12 +7441,12 @@ var SimpleTable = ({
|
|
7278
7441
|
};
|
7279
7442
|
|
7280
7443
|
// elements/separator/Separator.tsx
|
7281
|
-
var
|
7444
|
+
var React61 = __toESM(require("react"));
|
7282
7445
|
var Separator2 = ({
|
7283
7446
|
className,
|
7284
7447
|
orientation = "horizontal",
|
7285
7448
|
...props
|
7286
|
-
}) => /* @__PURE__ */
|
7449
|
+
}) => /* @__PURE__ */ React61.createElement(
|
7287
7450
|
"div",
|
7288
7451
|
{
|
7289
7452
|
className: cn(
|
@@ -7296,12 +7459,12 @@ var Separator2 = ({
|
|
7296
7459
|
);
|
7297
7460
|
|
7298
7461
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7299
|
-
var
|
7462
|
+
var import_react43 = __toESM(require("react"));
|
7300
7463
|
var ScrollIndicator = ({
|
7301
7464
|
anchor,
|
7302
7465
|
inContainer = false
|
7303
7466
|
}) => {
|
7304
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7467
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react43.useState)(0);
|
7305
7468
|
const onScroll = () => {
|
7306
7469
|
const scrollElement = anchor.current;
|
7307
7470
|
if (scrollElement) {
|
@@ -7312,7 +7475,7 @@ var ScrollIndicator = ({
|
|
7312
7475
|
setScrollPercentage(percentageScrolled);
|
7313
7476
|
}
|
7314
7477
|
};
|
7315
|
-
(0,
|
7478
|
+
(0, import_react43.useEffect)(() => {
|
7316
7479
|
if (!anchor.current)
|
7317
7480
|
return;
|
7318
7481
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7321,7 +7484,7 @@ var ScrollIndicator = ({
|
|
7321
7484
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7322
7485
|
};
|
7323
7486
|
}, [anchor]);
|
7324
|
-
return /* @__PURE__ */
|
7487
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
7325
7488
|
"div",
|
7326
7489
|
{
|
7327
7490
|
style: {
|
@@ -7337,39 +7500,11 @@ var ScrollIndicator = ({
|
|
7337
7500
|
};
|
7338
7501
|
|
7339
7502
|
// elements/codeBlock/CodeBlock.tsx
|
7340
|
-
var
|
7503
|
+
var import_react44 = __toESM(require("react"));
|
7341
7504
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7342
|
-
|
7343
|
-
// hooks/useClipboard.ts
|
7344
|
-
var import_react29 = require("react");
|
7345
|
-
function useClipboard({ timeout = 2e3 } = {}) {
|
7346
|
-
const [error, setError] = (0, import_react29.useState)(null);
|
7347
|
-
const [copied, setCopied] = (0, import_react29.useState)(false);
|
7348
|
-
const [copyTimeout, setCopyTimeout] = (0, import_react29.useState)(null);
|
7349
|
-
const handleCopyResult = (value) => {
|
7350
|
-
clearTimeout(copyTimeout);
|
7351
|
-
setCopyTimeout(setTimeout(() => setCopied(false), timeout));
|
7352
|
-
setCopied(value);
|
7353
|
-
};
|
7354
|
-
const copy = (valueToCopy) => {
|
7355
|
-
if ("clipboard" in navigator) {
|
7356
|
-
navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
|
7357
|
-
} else {
|
7358
|
-
setError(new Error("useClipboard: navigator.clipboard is not supported"));
|
7359
|
-
}
|
7360
|
-
};
|
7361
|
-
const reset = () => {
|
7362
|
-
setCopied(false);
|
7363
|
-
setError(null);
|
7364
|
-
clearTimeout(copyTimeout);
|
7365
|
-
};
|
7366
|
-
return { copy, reset, error, copied };
|
7367
|
-
}
|
7368
|
-
|
7369
|
-
// elements/codeBlock/CodeBlock.tsx
|
7370
7505
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7371
7506
|
require("prismjs/components/prism-bash");
|
7372
|
-
var CopyIcon = () => /* @__PURE__ */
|
7507
|
+
var CopyIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
7373
7508
|
"svg",
|
7374
7509
|
{
|
7375
7510
|
"aria-label": "Copy",
|
@@ -7382,8 +7517,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react30.default.createElement(
|
|
7382
7517
|
height: "1em",
|
7383
7518
|
width: "1em"
|
7384
7519
|
},
|
7385
|
-
/* @__PURE__ */
|
7386
|
-
/* @__PURE__ */
|
7520
|
+
/* @__PURE__ */ import_react44.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7521
|
+
/* @__PURE__ */ import_react44.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7387
7522
|
);
|
7388
7523
|
var CodeBlock = ({
|
7389
7524
|
tabs,
|
@@ -7397,7 +7532,7 @@ var CodeBlock = ({
|
|
7397
7532
|
...props
|
7398
7533
|
}) => {
|
7399
7534
|
const clipboard = useClipboard();
|
7400
|
-
const [selectedTab, setSelectedTab] = (0,
|
7535
|
+
const [selectedTab, setSelectedTab] = (0, import_react44.useState)(0);
|
7401
7536
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7402
7537
|
let widthStyles = {
|
7403
7538
|
full: "hawa-w-full",
|
@@ -7405,7 +7540,7 @@ var CodeBlock = ({
|
|
7405
7540
|
sm: "hawa-w-full hawa-max-w-sm",
|
7406
7541
|
xs: "hawa-w-full hawa-max-w-xs"
|
7407
7542
|
};
|
7408
|
-
return /* @__PURE__ */
|
7543
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
7409
7544
|
"div",
|
7410
7545
|
{
|
7411
7546
|
className: cn(
|
@@ -7414,7 +7549,7 @@ var CodeBlock = ({
|
|
7414
7549
|
classNames == null ? void 0 : classNames.root
|
7415
7550
|
)
|
7416
7551
|
},
|
7417
|
-
fileName && /* @__PURE__ */
|
7552
|
+
fileName && /* @__PURE__ */ import_react44.default.createElement(
|
7418
7553
|
"div",
|
7419
7554
|
{
|
7420
7555
|
className: cn(
|
@@ -7423,7 +7558,7 @@ var CodeBlock = ({
|
|
7423
7558
|
classNames == null ? void 0 : classNames.fileName
|
7424
7559
|
)
|
7425
7560
|
},
|
7426
|
-
/* @__PURE__ */
|
7561
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7427
7562
|
"div",
|
7428
7563
|
{
|
7429
7564
|
className: cn(
|
@@ -7433,7 +7568,7 @@ var CodeBlock = ({
|
|
7433
7568
|
fileName
|
7434
7569
|
)
|
7435
7570
|
),
|
7436
|
-
tabs && /* @__PURE__ */
|
7571
|
+
tabs && /* @__PURE__ */ import_react44.default.createElement(
|
7437
7572
|
"div",
|
7438
7573
|
{
|
7439
7574
|
className: cn(
|
@@ -7442,7 +7577,7 @@ var CodeBlock = ({
|
|
7442
7577
|
classNames == null ? void 0 : classNames.tabs
|
7443
7578
|
)
|
7444
7579
|
},
|
7445
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7580
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react44.default.createElement(
|
7446
7581
|
"div",
|
7447
7582
|
{
|
7448
7583
|
key: i,
|
@@ -7451,7 +7586,7 @@ var CodeBlock = ({
|
|
7451
7586
|
classNames == null ? void 0 : classNames.tab
|
7452
7587
|
)
|
7453
7588
|
},
|
7454
|
-
/* @__PURE__ */
|
7589
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7455
7590
|
"div",
|
7456
7591
|
{
|
7457
7592
|
onClick: () => setSelectedTab(i),
|
@@ -7463,7 +7598,7 @@ var CodeBlock = ({
|
|
7463
7598
|
)
|
7464
7599
|
))
|
7465
7600
|
),
|
7466
|
-
/* @__PURE__ */
|
7601
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7467
7602
|
"div",
|
7468
7603
|
{
|
7469
7604
|
className: cn(
|
@@ -7473,22 +7608,22 @@ var CodeBlock = ({
|
|
7473
7608
|
"hawa-overflow-y-auto"
|
7474
7609
|
)
|
7475
7610
|
},
|
7476
|
-
/* @__PURE__ */
|
7611
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7477
7612
|
"div",
|
7478
7613
|
{
|
7479
7614
|
className: cn(
|
7480
7615
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7481
7616
|
)
|
7482
7617
|
},
|
7483
|
-
/* @__PURE__ */
|
7618
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7484
7619
|
Tooltip,
|
7485
7620
|
{
|
7486
7621
|
open: clipboard.copied,
|
7487
7622
|
side: "left",
|
7488
|
-
content: /* @__PURE__ */
|
7623
|
+
content: /* @__PURE__ */ import_react44.default.createElement("div", null, "Copied!"),
|
7489
7624
|
triggerProps: { asChild: true }
|
7490
7625
|
},
|
7491
|
-
/* @__PURE__ */
|
7626
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7492
7627
|
Button,
|
7493
7628
|
{
|
7494
7629
|
size: "smallIcon",
|
@@ -7496,18 +7631,18 @@ var CodeBlock = ({
|
|
7496
7631
|
variant: "outline",
|
7497
7632
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7498
7633
|
},
|
7499
|
-
/* @__PURE__ */
|
7634
|
+
/* @__PURE__ */ import_react44.default.createElement(CopyIcon, null)
|
7500
7635
|
)
|
7501
7636
|
)
|
7502
7637
|
),
|
7503
|
-
/* @__PURE__ */
|
7638
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7504
7639
|
import_prism_react_renderer.Highlight,
|
7505
7640
|
{
|
7506
7641
|
theme,
|
7507
7642
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7508
7643
|
language
|
7509
7644
|
},
|
7510
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7645
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react44.default.createElement(
|
7511
7646
|
"pre",
|
7512
7647
|
{
|
7513
7648
|
className: cn(
|
@@ -7517,7 +7652,7 @@ var CodeBlock = ({
|
|
7517
7652
|
wrapText && "hawa-text-wrap"
|
7518
7653
|
)
|
7519
7654
|
},
|
7520
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7655
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react44.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react44.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react44.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7521
7656
|
)
|
7522
7657
|
)
|
7523
7658
|
)
|
@@ -7525,8 +7660,8 @@ var CodeBlock = ({
|
|
7525
7660
|
};
|
7526
7661
|
|
7527
7662
|
// elements/carousel/Carousel.tsx
|
7528
|
-
var
|
7529
|
-
var
|
7663
|
+
var import_react45 = __toESM(require("react"));
|
7664
|
+
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
7530
7665
|
var Carousel = ({
|
7531
7666
|
items,
|
7532
7667
|
showArrows,
|
@@ -7536,13 +7671,13 @@ var Carousel = ({
|
|
7536
7671
|
autoplayInterval = 3e3,
|
7537
7672
|
...props
|
7538
7673
|
}) => {
|
7539
|
-
const [emblaRef, emblaApi] = (0,
|
7674
|
+
const [emblaRef, emblaApi] = (0, import_embla_carousel_react2.default)({
|
7540
7675
|
...options,
|
7541
7676
|
direction,
|
7542
7677
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
7543
7678
|
});
|
7544
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
7545
|
-
(0,
|
7679
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react45.useState)(0);
|
7680
|
+
(0, import_react45.useEffect)(() => {
|
7546
7681
|
function selectHandler() {
|
7547
7682
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
7548
7683
|
setSelectedIndex(index || 0);
|
@@ -7552,7 +7687,7 @@ var Carousel = ({
|
|
7552
7687
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
7553
7688
|
};
|
7554
7689
|
}, [emblaApi]);
|
7555
|
-
(0,
|
7690
|
+
(0, import_react45.useEffect)(() => {
|
7556
7691
|
let autoplayTimer;
|
7557
7692
|
if (autoplay && emblaApi) {
|
7558
7693
|
autoplayTimer = setInterval(() => {
|
@@ -7564,17 +7699,17 @@ var Carousel = ({
|
|
7564
7699
|
clearInterval(autoplayTimer);
|
7565
7700
|
};
|
7566
7701
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7567
|
-
const length =
|
7702
|
+
const length = import_react45.default.Children.count(items);
|
7568
7703
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7569
7704
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7570
|
-
return /* @__PURE__ */
|
7705
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react45.default.createElement(
|
7571
7706
|
"div",
|
7572
7707
|
{
|
7573
7708
|
key: i,
|
7574
7709
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7575
7710
|
},
|
7576
7711
|
item
|
7577
|
-
))))), /* @__PURE__ */
|
7712
|
+
))))), /* @__PURE__ */ import_react45.default.createElement(
|
7578
7713
|
Dots,
|
7579
7714
|
{
|
7580
7715
|
direction,
|
@@ -7582,7 +7717,7 @@ var Carousel = ({
|
|
7582
7717
|
selectedIndex,
|
7583
7718
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7584
7719
|
}
|
7585
|
-
), showArrows && /* @__PURE__ */
|
7720
|
+
), showArrows && /* @__PURE__ */ import_react45.default.createElement(
|
7586
7721
|
CarouselControls,
|
7587
7722
|
{
|
7588
7723
|
canScrollNext,
|
@@ -7599,7 +7734,7 @@ var Dots = ({
|
|
7599
7734
|
direction
|
7600
7735
|
}) => {
|
7601
7736
|
const arr = new Array(itemsLength).fill(0);
|
7602
|
-
return /* @__PURE__ */
|
7737
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7603
7738
|
"div",
|
7604
7739
|
{
|
7605
7740
|
dir: direction,
|
@@ -7607,7 +7742,7 @@ var Dots = ({
|
|
7607
7742
|
},
|
7608
7743
|
arr.map((_, index) => {
|
7609
7744
|
const selected = index === selectedIndex;
|
7610
|
-
return /* @__PURE__ */
|
7745
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7611
7746
|
"div",
|
7612
7747
|
{
|
7613
7748
|
key: index,
|
@@ -7622,7 +7757,7 @@ var Dots = ({
|
|
7622
7757
|
);
|
7623
7758
|
};
|
7624
7759
|
var CarouselControls = (props) => {
|
7625
|
-
return /* @__PURE__ */
|
7760
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react45.default.createElement(
|
7626
7761
|
"button",
|
7627
7762
|
{
|
7628
7763
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7633,7 +7768,7 @@ var CarouselControls = (props) => {
|
|
7633
7768
|
props.canScrollPrev && "hawa-bg-primary"
|
7634
7769
|
)
|
7635
7770
|
},
|
7636
|
-
/* @__PURE__ */
|
7771
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7637
7772
|
"svg",
|
7638
7773
|
{
|
7639
7774
|
"aria-label": "Chevron Right Icon",
|
@@ -7642,9 +7777,9 @@ var CarouselControls = (props) => {
|
|
7642
7777
|
viewBox: "0 0 16 16",
|
7643
7778
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7644
7779
|
},
|
7645
|
-
/* @__PURE__ */
|
7780
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
7646
7781
|
)
|
7647
|
-
), /* @__PURE__ */
|
7782
|
+
), /* @__PURE__ */ import_react45.default.createElement(
|
7648
7783
|
"button",
|
7649
7784
|
{
|
7650
7785
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7655,7 +7790,7 @@ var CarouselControls = (props) => {
|
|
7655
7790
|
props.canScrollNext && "hawa-bg-primary"
|
7656
7791
|
)
|
7657
7792
|
},
|
7658
|
-
/* @__PURE__ */
|
7793
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7659
7794
|
"svg",
|
7660
7795
|
{
|
7661
7796
|
"aria-label": "Chevron Right Icon",
|
@@ -7664,19 +7799,19 @@ var CarouselControls = (props) => {
|
|
7664
7799
|
viewBox: "0 0 16 16",
|
7665
7800
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7666
7801
|
},
|
7667
|
-
/* @__PURE__ */
|
7802
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
7668
7803
|
)
|
7669
7804
|
));
|
7670
7805
|
};
|
7671
7806
|
|
7672
7807
|
// elements/count/Count.tsx
|
7673
|
-
var
|
7808
|
+
var import_react46 = __toESM(require("react"));
|
7674
7809
|
var Count = (props) => {
|
7675
|
-
return /* @__PURE__ */
|
7810
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react46.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7676
7811
|
};
|
7677
7812
|
|
7678
7813
|
// elements/toast/Toast.tsx
|
7679
|
-
var
|
7814
|
+
var React66 = __toESM(require("react"));
|
7680
7815
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7681
7816
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7682
7817
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7704,7 +7839,7 @@ var sizeStyles = {
|
|
7704
7839
|
sm: "hawa-text-xs"
|
7705
7840
|
};
|
7706
7841
|
var ToastProvider = ToastPrimitives.Provider;
|
7707
|
-
var ToastViewport =
|
7842
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7708
7843
|
ToastPrimitives.Viewport,
|
7709
7844
|
{
|
7710
7845
|
ref,
|
@@ -7716,8 +7851,8 @@ var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7716
7851
|
}
|
7717
7852
|
));
|
7718
7853
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7719
|
-
var Toast =
|
7720
|
-
return /* @__PURE__ */
|
7854
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7855
|
+
return /* @__PURE__ */ React66.createElement(
|
7721
7856
|
ToastPrimitives.Root,
|
7722
7857
|
{
|
7723
7858
|
ref,
|
@@ -7732,8 +7867,8 @@ var Toast = React57.forwardRef(({ className, variant, severity = "none", directi
|
|
7732
7867
|
);
|
7733
7868
|
});
|
7734
7869
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7735
|
-
var ToastAction =
|
7736
|
-
return /* @__PURE__ */
|
7870
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
7871
|
+
return /* @__PURE__ */ React66.createElement(
|
7737
7872
|
ToastPrimitives.Action,
|
7738
7873
|
{
|
7739
7874
|
ref,
|
@@ -7751,7 +7886,7 @@ var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
7751
7886
|
);
|
7752
7887
|
});
|
7753
7888
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7754
|
-
var ToastClose =
|
7889
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7755
7890
|
ToastPrimitives.Close,
|
7756
7891
|
{
|
7757
7892
|
ref,
|
@@ -7765,7 +7900,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7765
7900
|
"toast-close": "",
|
7766
7901
|
...props
|
7767
7902
|
},
|
7768
|
-
/* @__PURE__ */
|
7903
|
+
/* @__PURE__ */ React66.createElement(
|
7769
7904
|
"svg",
|
7770
7905
|
{
|
7771
7906
|
"aria-label": "Close Icon",
|
@@ -7774,7 +7909,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7774
7909
|
fill: "currentColor",
|
7775
7910
|
viewBox: "0 0 20 20"
|
7776
7911
|
},
|
7777
|
-
/* @__PURE__ */
|
7912
|
+
/* @__PURE__ */ React66.createElement(
|
7778
7913
|
"path",
|
7779
7914
|
{
|
7780
7915
|
fillRule: "evenodd",
|
@@ -7785,7 +7920,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7785
7920
|
)
|
7786
7921
|
));
|
7787
7922
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7788
|
-
var ToastTitle =
|
7923
|
+
var ToastTitle = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7789
7924
|
ToastPrimitives.Title,
|
7790
7925
|
{
|
7791
7926
|
ref,
|
@@ -7798,7 +7933,7 @@ var ToastTitle = React57.forwardRef(({ className, size = "default", ...props },
|
|
7798
7933
|
}
|
7799
7934
|
));
|
7800
7935
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7801
|
-
var ToastDescription =
|
7936
|
+
var ToastDescription = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
7802
7937
|
ToastPrimitives.Description,
|
7803
7938
|
{
|
7804
7939
|
ref,
|
@@ -7813,11 +7948,11 @@ var ToastDescription = React57.forwardRef(({ className, size = "default", ...pro
|
|
7813
7948
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
7814
7949
|
|
7815
7950
|
// elements/toaster/Toaster.tsx
|
7816
|
-
var
|
7951
|
+
var import_react47 = __toESM(require("react"));
|
7817
7952
|
function Toaster(props) {
|
7818
7953
|
var _a;
|
7819
7954
|
let isRTL = props.direction === "rtl";
|
7820
|
-
return /* @__PURE__ */
|
7955
|
+
return /* @__PURE__ */ import_react47.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
7821
7956
|
id,
|
7822
7957
|
title,
|
7823
7958
|
description,
|
@@ -7825,7 +7960,7 @@ function Toaster(props) {
|
|
7825
7960
|
action,
|
7826
7961
|
...toastProps
|
7827
7962
|
}) {
|
7828
|
-
return /* @__PURE__ */
|
7963
|
+
return /* @__PURE__ */ import_react47.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react47.default.createElement(
|
7829
7964
|
"div",
|
7830
7965
|
{
|
7831
7966
|
className: cn(
|
@@ -7833,9 +7968,9 @@ function Toaster(props) {
|
|
7833
7968
|
action && "hawa-justify-between"
|
7834
7969
|
)
|
7835
7970
|
},
|
7836
|
-
/* @__PURE__ */
|
7837
|
-
/* @__PURE__ */
|
7838
|
-
/* @__PURE__ */
|
7971
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react47.default.createElement(ToastClose, null)),
|
7972
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
7973
|
+
/* @__PURE__ */ import_react47.default.createElement(
|
7839
7974
|
"div",
|
7840
7975
|
{
|
7841
7976
|
className: cn(
|
@@ -7843,11 +7978,11 @@ function Toaster(props) {
|
|
7843
7978
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
7844
7979
|
)
|
7845
7980
|
},
|
7846
|
-
/* @__PURE__ */
|
7847
|
-
action && /* @__PURE__ */
|
7981
|
+
/* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react47.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react47.default.createElement(ToastDescription, { size }, description)),
|
7982
|
+
action && /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
7848
7983
|
)
|
7849
7984
|
));
|
7850
|
-
}), /* @__PURE__ */
|
7985
|
+
}), /* @__PURE__ */ import_react47.default.createElement(
|
7851
7986
|
ToastViewport,
|
7852
7987
|
{
|
7853
7988
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -7856,20 +7991,20 @@ function Toaster(props) {
|
|
7856
7991
|
}
|
7857
7992
|
|
7858
7993
|
// elements/destroyableCard/DestroyableCard.tsx
|
7859
|
-
var
|
7994
|
+
var import_react48 = __toESM(require("react"));
|
7860
7995
|
var DestroyableCard = ({
|
7861
7996
|
position = "bottom-right",
|
7862
7997
|
fixed,
|
7863
7998
|
direction,
|
7864
7999
|
...props
|
7865
8000
|
}) => {
|
7866
|
-
const [closed, setClosed] = (0,
|
7867
|
-
const popUpRef = (0,
|
8001
|
+
const [closed, setClosed] = (0, import_react48.useState)(false);
|
8002
|
+
const popUpRef = (0, import_react48.useRef)(null);
|
7868
8003
|
const boxPosition = {
|
7869
8004
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
7870
8005
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
7871
8006
|
};
|
7872
|
-
return /* @__PURE__ */
|
8007
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7873
8008
|
"div",
|
7874
8009
|
{
|
7875
8010
|
className: cn(
|
@@ -7878,7 +8013,7 @@ var DestroyableCard = ({
|
|
7878
8013
|
),
|
7879
8014
|
ref: popUpRef
|
7880
8015
|
},
|
7881
|
-
/* @__PURE__ */
|
8016
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7882
8017
|
Card,
|
7883
8018
|
{
|
7884
8019
|
className: cn(
|
@@ -7887,7 +8022,7 @@ var DestroyableCard = ({
|
|
7887
8022
|
),
|
7888
8023
|
dir: direction
|
7889
8024
|
},
|
7890
|
-
/* @__PURE__ */
|
8025
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7891
8026
|
"button",
|
7892
8027
|
{
|
7893
8028
|
type: "button",
|
@@ -7906,7 +8041,7 @@ var DestroyableCard = ({
|
|
7906
8041
|
}, 200);
|
7907
8042
|
}
|
7908
8043
|
},
|
7909
|
-
/* @__PURE__ */
|
8044
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7910
8045
|
"svg",
|
7911
8046
|
{
|
7912
8047
|
"aria-hidden": "true",
|
@@ -7914,7 +8049,7 @@ var DestroyableCard = ({
|
|
7914
8049
|
fill: "currentColor",
|
7915
8050
|
viewBox: "0 0 20 20"
|
7916
8051
|
},
|
7917
|
-
/* @__PURE__ */
|
8052
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7918
8053
|
"path",
|
7919
8054
|
{
|
7920
8055
|
fillRule: "evenodd",
|
@@ -7924,13 +8059,13 @@ var DestroyableCard = ({
|
|
7924
8059
|
)
|
7925
8060
|
)
|
7926
8061
|
),
|
7927
|
-
/* @__PURE__ */
|
8062
|
+
/* @__PURE__ */ import_react48.default.createElement(CardContent, { headless: true }, props.children)
|
7928
8063
|
)
|
7929
8064
|
);
|
7930
8065
|
};
|
7931
8066
|
|
7932
8067
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
7933
|
-
var
|
8068
|
+
var import_react49 = __toESM(require("react"));
|
7934
8069
|
var InterfaceSettings = ({
|
7935
8070
|
orientation = "horizontal",
|
7936
8071
|
width = "default",
|
@@ -7938,13 +8073,13 @@ var InterfaceSettings = ({
|
|
7938
8073
|
handleLanguage,
|
7939
8074
|
...props
|
7940
8075
|
}) => {
|
7941
|
-
const [color, setColor] = (0,
|
7942
|
-
const [language, setLanguage] = (0,
|
8076
|
+
const [color, setColor] = (0, import_react49.useState)(props.currentColorMode);
|
8077
|
+
const [language, setLanguage] = (0, import_react49.useState)(props.currentLanguage);
|
7943
8078
|
let orientationStyle = {
|
7944
8079
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
7945
8080
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
7946
8081
|
};
|
7947
|
-
return /* @__PURE__ */
|
8082
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react49.default.createElement(
|
7948
8083
|
Radio,
|
7949
8084
|
{
|
7950
8085
|
name: "language",
|
@@ -7962,7 +8097,7 @@ var InterfaceSettings = ({
|
|
7962
8097
|
{ value: "en", label: "English" }
|
7963
8098
|
]
|
7964
8099
|
}
|
7965
|
-
), /* @__PURE__ */
|
8100
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
7966
8101
|
Radio,
|
7967
8102
|
{
|
7968
8103
|
name: "theme",
|
@@ -7978,7 +8113,7 @@ var InterfaceSettings = ({
|
|
7978
8113
|
options: [
|
7979
8114
|
{
|
7980
8115
|
value: "light",
|
7981
|
-
label: /* @__PURE__ */
|
8116
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
7982
8117
|
"svg",
|
7983
8118
|
{
|
7984
8119
|
width: "15",
|
@@ -7988,7 +8123,7 @@ var InterfaceSettings = ({
|
|
7988
8123
|
xmlns: "http://www.w3.org/2000/svg",
|
7989
8124
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
7990
8125
|
},
|
7991
|
-
/* @__PURE__ */
|
8126
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7992
8127
|
"path",
|
7993
8128
|
{
|
7994
8129
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
@@ -7999,7 +8134,7 @@ var InterfaceSettings = ({
|
|
7999
8134
|
},
|
8000
8135
|
{
|
8001
8136
|
value: "dark",
|
8002
|
-
label: /* @__PURE__ */
|
8137
|
+
label: /* @__PURE__ */ import_react49.default.createElement(
|
8003
8138
|
"svg",
|
8004
8139
|
{
|
8005
8140
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8010,7 +8145,7 @@ var InterfaceSettings = ({
|
|
8010
8145
|
stroke: "currentColor",
|
8011
8146
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8012
8147
|
},
|
8013
|
-
/* @__PURE__ */
|
8148
|
+
/* @__PURE__ */ import_react49.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8014
8149
|
)
|
8015
8150
|
}
|
8016
8151
|
]
|
@@ -8019,14 +8154,14 @@ var InterfaceSettings = ({
|
|
8019
8154
|
};
|
8020
8155
|
|
8021
8156
|
// elements/phoneMockup/PhoneMockup.tsx
|
8022
|
-
var
|
8157
|
+
var import_react50 = __toESM(require("react"));
|
8023
8158
|
var PhoneMockup = ({
|
8024
8159
|
children,
|
8025
8160
|
upperOverlayGradiant,
|
8026
8161
|
lowerOverlayGradiant,
|
8027
8162
|
phone,
|
8028
8163
|
hideButtons
|
8029
|
-
}) => /* @__PURE__ */
|
8164
|
+
}) => /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react50.default.createElement(import_react50.default.Fragment, null, /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react50.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react50.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8030
8165
|
// Annotate the CommonJS export names for ESM import in node:
|
8031
8166
|
0 && (module.exports = {
|
8032
8167
|
Accordion,
|
@@ -8120,6 +8255,8 @@ var PhoneMockup = ({
|
|
8120
8255
|
PinInput,
|
8121
8256
|
Popover,
|
8122
8257
|
PopoverContent,
|
8258
|
+
PopoverPortal,
|
8259
|
+
PopoverRoot,
|
8123
8260
|
PopoverTrigger,
|
8124
8261
|
Progress,
|
8125
8262
|
ProgressCircle,
|