@sikka/hawa 0.30.12-next → 0.30.14-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/{DropdownMenu-o2-hzTmS.d.mts → DropdownMenu-arqV1gRt.d.mts} +1 -1
- package/dist/{DropdownMenu-q6HfeO08.d.ts → DropdownMenu-sSnQc6fT.d.ts} +1 -1
- package/dist/{Radio-ZM5l4CwH.d.mts → Radio-9MkZay6D.d.mts} +3 -3
- package/dist/{Radio-MHGhfbpA.d.ts → Radio-bhKmANMf.d.ts} +3 -3
- package/dist/appLayout/index.js +6 -2
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +6 -2
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +3 -5
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +3 -5
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +1 -1
- package/dist/blocks/auth/index.mjs +2 -2
- package/dist/blocks/feedback/index.js +179 -177
- package/dist/blocks/feedback/index.mjs +2 -2
- package/dist/blocks/index.d.mts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +181 -179
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +1 -1
- package/dist/blocks/misc/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +179 -177
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-3GZMGTI5.mjs → chunk-OUAQNQWP.mjs} +180 -178
- package/dist/chunk-R52CZJK3.mjs +215 -0
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -1
- package/dist/dropdownMenu/index.d.ts +1 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +179 -177
- package/dist/elements/index.mjs +1 -1
- package/dist/index.css +9 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +188 -182
- package/dist/index.mjs +189 -183
- package/dist/interfaceSettings/index.js +179 -177
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +180 -178
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +7 -3
- package/dist/layout/index.mjs +7 -3
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +2 -2
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio/index.js +179 -177
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +180 -178
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.js +3 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +3 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-U42KD2OQ.mjs +0 -213
- /package/dist/{chunk-M3IRSZWA.mjs → chunk-ER7YWU7Z.mjs} +0 -0
package/dist/index.js
CHANGED
@@ -3260,207 +3260,209 @@ var BackToTop = ({ ...props }) => {
|
|
3260
3260
|
|
3261
3261
|
// elements/radio/Radio.tsx
|
3262
3262
|
var import_react11 = __toESM(require("react"));
|
3263
|
-
var Radio = (
|
3264
|
-
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
|
3263
|
+
var Radio = (0, import_react11.forwardRef)(
|
3264
|
+
({
|
3265
|
+
design = "default",
|
3266
|
+
width = "default",
|
3267
|
+
size = "default",
|
3268
|
+
orientation = "horizontal",
|
3269
|
+
name,
|
3270
|
+
labelProps,
|
3271
|
+
tabsContainerClassName,
|
3272
|
+
forceHideHelperText = false,
|
3273
|
+
onChange,
|
3274
|
+
...props
|
3275
|
+
}, ref) => {
|
3276
|
+
var _a, _b, _c;
|
3277
|
+
const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
|
3278
|
+
props.defaultValue || props.value
|
3279
|
+
);
|
3280
|
+
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
3281
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
3281
3282
|
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3307
|
-
|
3308
|
-
|
3309
|
-
|
3310
|
-
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3316
|
-
|
3317
|
-
|
3318
|
-
|
3319
|
-
|
3320
|
-
|
3321
|
-
{
|
3322
|
-
ref: parentRef,
|
3323
|
-
className: cn(
|
3324
|
-
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3325
|
-
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3326
|
-
orientationStyle[orientation],
|
3327
|
-
widthStyle[width],
|
3328
|
-
tabsContainerClassName
|
3329
|
-
)
|
3330
|
-
},
|
3331
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
|
3332
|
-
"li",
|
3283
|
+
let orientationStyle = {
|
3284
|
+
horizontal: "hawa-flex hawa-flex-row",
|
3285
|
+
vertical: "hawa-flex hawa-flex-col"
|
3286
|
+
};
|
3287
|
+
let tabSizeStyle = {
|
3288
|
+
default: "hawa-py-2 hawa-px-4 hawa-text-sm",
|
3289
|
+
lg: "hawa-py-2 hawa-px-4",
|
3290
|
+
sm: "hawa-p-1.5 hawa-text-xs",
|
3291
|
+
xs: "hawa-p-1 hawa-text-[10px]"
|
3292
|
+
};
|
3293
|
+
let widthStyle = {
|
3294
|
+
none: "",
|
3295
|
+
default: "hawa-max-w-fit",
|
3296
|
+
full: "hawa-w-full"
|
3297
|
+
};
|
3298
|
+
const [parentDirection, setParentDirection] = import_react11.default.useState(
|
3299
|
+
null
|
3300
|
+
);
|
3301
|
+
const parentRef = (0, import_react11.useRef)(null);
|
3302
|
+
(0, import_react11.useEffect)(() => {
|
3303
|
+
var _a2;
|
3304
|
+
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
3305
|
+
if (parentNode) {
|
3306
|
+
const dir = window.getComputedStyle(parentNode).direction;
|
3307
|
+
setParentDirection(dir);
|
3308
|
+
}
|
3309
|
+
});
|
3310
|
+
const handleChange = (opt) => {
|
3311
|
+
setSelectedOption(opt.value);
|
3312
|
+
if (onChange) {
|
3313
|
+
onChange(opt.value);
|
3314
|
+
} else {
|
3315
|
+
console.log("onChange was not provided");
|
3316
|
+
}
|
3317
|
+
};
|
3318
|
+
switch (design) {
|
3319
|
+
case "tabs":
|
3320
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
|
3321
|
+
"ul",
|
3333
3322
|
{
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3338
|
-
|
3323
|
+
ref: parentRef,
|
3324
|
+
className: cn(
|
3325
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3326
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3327
|
+
orientationStyle[orientation],
|
3328
|
+
widthStyle[width],
|
3329
|
+
tabsContainerClassName
|
3330
|
+
)
|
3331
|
+
},
|
3332
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
|
3333
|
+
"li",
|
3334
|
+
{
|
3335
|
+
"aria-current": "page",
|
3336
|
+
onClick: () => {
|
3337
|
+
if (props.disabled)
|
3338
|
+
return;
|
3339
|
+
handleChange(opt);
|
3340
|
+
},
|
3341
|
+
className: cn(
|
3342
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
3343
|
+
!props.disabled && "hawa-cursor-pointer",
|
3344
|
+
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
3345
|
+
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
3346
|
+
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
3347
|
+
tabSizeStyle[size],
|
3348
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3349
|
+
),
|
3350
|
+
key: o
|
3339
3351
|
},
|
3352
|
+
opt.icon && opt.icon,
|
3353
|
+
opt.label
|
3354
|
+
))
|
3355
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
3356
|
+
"p",
|
3357
|
+
{
|
3340
3358
|
className: cn(
|
3341
|
-
"hawa-
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3345
|
-
|
3346
|
-
|
3347
|
-
|
3359
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3360
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3361
|
+
)
|
3362
|
+
},
|
3363
|
+
props.helperText
|
3364
|
+
));
|
3365
|
+
case "bordered":
|
3366
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
|
3367
|
+
"div",
|
3368
|
+
{
|
3369
|
+
className: cn(
|
3370
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3371
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3348
3372
|
),
|
3349
|
-
key:
|
3373
|
+
key: i + 1
|
3350
3374
|
},
|
3351
|
-
|
3352
|
-
|
3353
|
-
|
3354
|
-
|
3355
|
-
|
3356
|
-
|
3357
|
-
|
3358
|
-
|
3359
|
-
|
3360
|
-
|
3361
|
-
},
|
3362
|
-
props.helperText
|
3363
|
-
));
|
3364
|
-
case "bordered":
|
3365
|
-
return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
|
3366
|
-
"div",
|
3367
|
-
{
|
3368
|
-
className: cn(
|
3369
|
-
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3370
|
-
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3375
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3376
|
+
"input",
|
3377
|
+
{
|
3378
|
+
disabled: opt.disabled,
|
3379
|
+
id: opt.value.toString(),
|
3380
|
+
type: "radio",
|
3381
|
+
value: opt.value,
|
3382
|
+
name,
|
3383
|
+
onChange: () => handleChange(opt)
|
3384
|
+
}
|
3371
3385
|
),
|
3372
|
-
|
3373
|
-
|
3374
|
-
|
3386
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3387
|
+
"label",
|
3388
|
+
{
|
3389
|
+
htmlFor: opt.value.toString(),
|
3390
|
+
className: cn(
|
3391
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
3392
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3393
|
+
)
|
3394
|
+
},
|
3395
|
+
opt.label
|
3396
|
+
)
|
3397
|
+
))));
|
3398
|
+
case "cards":
|
3399
|
+
return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
|
3375
3400
|
"input",
|
3376
3401
|
{
|
3377
|
-
disabled: opt.disabled,
|
3378
|
-
id: opt.value.toString(),
|
3379
3402
|
type: "radio",
|
3380
|
-
|
3403
|
+
id: opt.value.toString(),
|
3381
3404
|
name,
|
3382
|
-
|
3405
|
+
value: opt.value.toString(),
|
3406
|
+
className: "hawa-peer hawa-hidden",
|
3407
|
+
required: true,
|
3408
|
+
disabled: opt.disabled
|
3383
3409
|
}
|
3384
|
-
),
|
3385
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3410
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
3386
3411
|
"label",
|
3387
3412
|
{
|
3388
3413
|
htmlFor: opt.value.toString(),
|
3389
3414
|
className: cn(
|
3390
|
-
"hawa-
|
3391
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
3415
|
+
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3416
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3392
3417
|
)
|
3393
3418
|
},
|
3394
|
-
opt.label
|
3395
|
-
)
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
"input",
|
3400
|
-
{
|
3401
|
-
type: "radio",
|
3402
|
-
id: opt.value.toString(),
|
3403
|
-
name,
|
3404
|
-
value: opt.value.toString(),
|
3405
|
-
className: "hawa-peer hawa-hidden",
|
3406
|
-
required: true,
|
3407
|
-
disabled: opt.disabled
|
3408
|
-
}
|
3409
|
-
), /* @__PURE__ */ import_react11.default.createElement(
|
3410
|
-
"label",
|
3411
|
-
{
|
3412
|
-
htmlFor: opt.value.toString(),
|
3413
|
-
className: cn(
|
3414
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3415
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
|
3416
|
-
)
|
3417
|
-
},
|
3418
|
-
/* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3419
|
-
))));
|
3420
|
-
default:
|
3421
|
-
return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
|
3422
|
-
"div",
|
3423
|
-
{
|
3424
|
-
className: cn(
|
3425
|
-
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3426
|
-
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3427
|
-
),
|
3428
|
-
key: i + 1
|
3429
|
-
},
|
3430
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3431
|
-
"input",
|
3419
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3420
|
+
))));
|
3421
|
+
default:
|
3422
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
|
3423
|
+
"div",
|
3432
3424
|
{
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
|
3437
|
-
|
3438
|
-
|
3439
|
-
|
3440
|
-
|
3441
|
-
|
3442
|
-
|
3425
|
+
className: cn(
|
3426
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3427
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3428
|
+
),
|
3429
|
+
key: i + 1
|
3430
|
+
},
|
3431
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3432
|
+
"input",
|
3433
|
+
{
|
3434
|
+
disabled: opt.disabled,
|
3435
|
+
id: opt.value.toString(),
|
3436
|
+
type: "radio",
|
3437
|
+
value: opt.value,
|
3438
|
+
name,
|
3439
|
+
onChange: () => handleChange(opt)
|
3440
|
+
}
|
3441
|
+
),
|
3442
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3443
|
+
"label",
|
3444
|
+
{
|
3445
|
+
htmlFor: opt.value.toString(),
|
3446
|
+
className: cn(
|
3447
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3448
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3449
|
+
)
|
3450
|
+
},
|
3451
|
+
opt.label
|
3452
|
+
)
|
3453
|
+
))), /* @__PURE__ */ import_react11.default.createElement(
|
3454
|
+
"p",
|
3443
3455
|
{
|
3444
|
-
htmlFor: opt.value.toString(),
|
3445
3456
|
className: cn(
|
3446
|
-
"hawa-text-
|
3447
|
-
|
3457
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3458
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3448
3459
|
)
|
3449
3460
|
},
|
3450
|
-
|
3451
|
-
)
|
3452
|
-
|
3453
|
-
"p",
|
3454
|
-
{
|
3455
|
-
className: cn(
|
3456
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3457
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3458
|
-
)
|
3459
|
-
},
|
3460
|
-
props.helperText
|
3461
|
-
));
|
3461
|
+
props.helperText
|
3462
|
+
));
|
3463
|
+
}
|
3462
3464
|
}
|
3463
|
-
|
3465
|
+
);
|
3464
3466
|
|
3465
3467
|
// elements/combobox/Combobox.tsx
|
3466
3468
|
var React27 = __toESM(require("react"));
|
@@ -8505,7 +8507,11 @@ var AppLayout = ({
|
|
8505
8507
|
let openDrawerWidth = 200;
|
8506
8508
|
let drawerSizeStyle = {
|
8507
8509
|
opened: { sm: "100", md: openDrawerWidth, lg: "250" },
|
8508
|
-
closed: {
|
8510
|
+
closed: {
|
8511
|
+
sm: closeDrawerWidth,
|
8512
|
+
md: closeDrawerWidth,
|
8513
|
+
lg: closeDrawerWidth
|
8514
|
+
}
|
8509
8515
|
};
|
8510
8516
|
const ref = (0, import_react40.useRef)(null);
|
8511
8517
|
const isRTL = direction === "rtl";
|
@@ -8618,7 +8624,7 @@ var AppLayout = ({
|
|
8618
8624
|
sideOffset: 5,
|
8619
8625
|
width: profileMenuWidth,
|
8620
8626
|
direction: isRTL ? "rtl" : "ltr",
|
8621
|
-
items: props.profileMenuItems,
|
8627
|
+
items: props.profileMenuItems || [],
|
8622
8628
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8623
8629
|
trigger: /* @__PURE__ */ import_react40.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react40.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react40.default.createElement(
|
8624
8630
|
"svg",
|
@@ -8918,7 +8924,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8918
8924
|
side: "bottom",
|
8919
8925
|
sideOffset: 5,
|
8920
8926
|
direction: isRTL ? "rtl" : "ltr",
|
8921
|
-
items: props.profileMenuItems,
|
8927
|
+
items: props.profileMenuItems || [],
|
8922
8928
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8923
8929
|
trigger: /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react41.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react41.default.createElement(
|
8924
8930
|
"svg",
|
@@ -10186,7 +10192,7 @@ var RegisterForm = ({
|
|
10186
10192
|
isMulti: false,
|
10187
10193
|
isSearchable: false,
|
10188
10194
|
isClearable: false,
|
10189
|
-
options: props.userReferenceOptions,
|
10195
|
+
options: props.userReferenceOptions || [],
|
10190
10196
|
onChange: (e) => {
|
10191
10197
|
field.onChange(e.value);
|
10192
10198
|
}
|
@@ -11395,7 +11401,7 @@ var ContactForm = ({
|
|
11395
11401
|
Select,
|
11396
11402
|
{
|
11397
11403
|
label,
|
11398
|
-
options: customField.options,
|
11404
|
+
options: customField.options || [],
|
11399
11405
|
value: field.value,
|
11400
11406
|
onChange: (option) => field.onChange(option.value)
|
11401
11407
|
}
|