@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.mjs
CHANGED
@@ -3032,208 +3032,210 @@ var BackToTop = ({ ...props }) => {
|
|
3032
3032
|
};
|
3033
3033
|
|
3034
3034
|
// elements/radio/Radio.tsx
|
3035
|
-
import React24, { useState as useState5, useRef as useRef4, useEffect as useEffect4 } from "react";
|
3036
|
-
var Radio = (
|
3037
|
-
|
3038
|
-
|
3039
|
-
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3043
|
-
|
3044
|
-
|
3045
|
-
|
3046
|
-
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3050
|
-
|
3051
|
-
|
3052
|
-
|
3053
|
-
|
3035
|
+
import React24, { useState as useState5, useRef as useRef4, useEffect as useEffect4, forwardRef as forwardRef14 } from "react";
|
3036
|
+
var Radio = forwardRef14(
|
3037
|
+
({
|
3038
|
+
design = "default",
|
3039
|
+
width = "default",
|
3040
|
+
size = "default",
|
3041
|
+
orientation = "horizontal",
|
3042
|
+
name,
|
3043
|
+
labelProps,
|
3044
|
+
tabsContainerClassName,
|
3045
|
+
forceHideHelperText = false,
|
3046
|
+
onChange,
|
3047
|
+
...props
|
3048
|
+
}, ref) => {
|
3049
|
+
var _a, _b, _c;
|
3050
|
+
const [selectedOption, setSelectedOption] = useState5(
|
3051
|
+
props.defaultValue || props.value
|
3052
|
+
);
|
3053
|
+
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
3054
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
3054
3055
|
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
3055
|
-
|
3056
|
-
|
3057
|
-
|
3058
|
-
|
3059
|
-
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
|
3065
|
-
|
3066
|
-
|
3067
|
-
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
{
|
3095
|
-
ref: parentRef,
|
3096
|
-
className: cn(
|
3097
|
-
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3098
|
-
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3099
|
-
orientationStyle[orientation],
|
3100
|
-
widthStyle[width],
|
3101
|
-
tabsContainerClassName
|
3102
|
-
)
|
3103
|
-
},
|
3104
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React24.createElement(
|
3105
|
-
"li",
|
3056
|
+
let orientationStyle = {
|
3057
|
+
horizontal: "hawa-flex hawa-flex-row",
|
3058
|
+
vertical: "hawa-flex hawa-flex-col"
|
3059
|
+
};
|
3060
|
+
let tabSizeStyle = {
|
3061
|
+
default: "hawa-py-2 hawa-px-4 hawa-text-sm",
|
3062
|
+
lg: "hawa-py-2 hawa-px-4",
|
3063
|
+
sm: "hawa-p-1.5 hawa-text-xs",
|
3064
|
+
xs: "hawa-p-1 hawa-text-[10px]"
|
3065
|
+
};
|
3066
|
+
let widthStyle = {
|
3067
|
+
none: "",
|
3068
|
+
default: "hawa-max-w-fit",
|
3069
|
+
full: "hawa-w-full"
|
3070
|
+
};
|
3071
|
+
const [parentDirection, setParentDirection] = React24.useState(
|
3072
|
+
null
|
3073
|
+
);
|
3074
|
+
const parentRef = useRef4(null);
|
3075
|
+
useEffect4(() => {
|
3076
|
+
var _a2;
|
3077
|
+
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
3078
|
+
if (parentNode) {
|
3079
|
+
const dir = window.getComputedStyle(parentNode).direction;
|
3080
|
+
setParentDirection(dir);
|
3081
|
+
}
|
3082
|
+
});
|
3083
|
+
const handleChange = (opt) => {
|
3084
|
+
setSelectedOption(opt.value);
|
3085
|
+
if (onChange) {
|
3086
|
+
onChange(opt.value);
|
3087
|
+
} else {
|
3088
|
+
console.log("onChange was not provided");
|
3089
|
+
}
|
3090
|
+
};
|
3091
|
+
switch (design) {
|
3092
|
+
case "tabs":
|
3093
|
+
return /* @__PURE__ */ React24.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React24.createElement(
|
3094
|
+
"ul",
|
3106
3095
|
{
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3096
|
+
ref: parentRef,
|
3097
|
+
className: cn(
|
3098
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3099
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3100
|
+
orientationStyle[orientation],
|
3101
|
+
widthStyle[width],
|
3102
|
+
tabsContainerClassName
|
3103
|
+
)
|
3104
|
+
},
|
3105
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ React24.createElement(
|
3106
|
+
"li",
|
3107
|
+
{
|
3108
|
+
"aria-current": "page",
|
3109
|
+
onClick: () => {
|
3110
|
+
if (props.disabled)
|
3111
|
+
return;
|
3112
|
+
handleChange(opt);
|
3113
|
+
},
|
3114
|
+
className: cn(
|
3115
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
3116
|
+
!props.disabled && "hawa-cursor-pointer",
|
3117
|
+
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
3118
|
+
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
3119
|
+
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
3120
|
+
tabSizeStyle[size],
|
3121
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3122
|
+
),
|
3123
|
+
key: o
|
3112
3124
|
},
|
3125
|
+
opt.icon && opt.icon,
|
3126
|
+
opt.label
|
3127
|
+
))
|
3128
|
+
), !forceHideHelperText && /* @__PURE__ */ React24.createElement(
|
3129
|
+
"p",
|
3130
|
+
{
|
3113
3131
|
className: cn(
|
3114
|
-
"hawa-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3132
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3133
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3134
|
+
)
|
3135
|
+
},
|
3136
|
+
props.helperText
|
3137
|
+
));
|
3138
|
+
case "bordered":
|
3139
|
+
return /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React24.createElement(
|
3140
|
+
"div",
|
3141
|
+
{
|
3142
|
+
className: cn(
|
3143
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3144
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3121
3145
|
),
|
3122
|
-
key:
|
3146
|
+
key: i + 1
|
3123
3147
|
},
|
3124
|
-
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3128
|
-
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3133
|
-
|
3134
|
-
},
|
3135
|
-
props.helperText
|
3136
|
-
));
|
3137
|
-
case "bordered":
|
3138
|
-
return /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React24.createElement(
|
3139
|
-
"div",
|
3140
|
-
{
|
3141
|
-
className: cn(
|
3142
|
-
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3143
|
-
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3148
|
+
/* @__PURE__ */ React24.createElement(
|
3149
|
+
"input",
|
3150
|
+
{
|
3151
|
+
disabled: opt.disabled,
|
3152
|
+
id: opt.value.toString(),
|
3153
|
+
type: "radio",
|
3154
|
+
value: opt.value,
|
3155
|
+
name,
|
3156
|
+
onChange: () => handleChange(opt)
|
3157
|
+
}
|
3144
3158
|
),
|
3145
|
-
|
3146
|
-
|
3147
|
-
|
3159
|
+
/* @__PURE__ */ React24.createElement(
|
3160
|
+
"label",
|
3161
|
+
{
|
3162
|
+
htmlFor: opt.value.toString(),
|
3163
|
+
className: cn(
|
3164
|
+
"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",
|
3165
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3166
|
+
)
|
3167
|
+
},
|
3168
|
+
opt.label
|
3169
|
+
)
|
3170
|
+
))));
|
3171
|
+
case "cards":
|
3172
|
+
return /* @__PURE__ */ React24.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React24.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React24.createElement(
|
3148
3173
|
"input",
|
3149
3174
|
{
|
3150
|
-
disabled: opt.disabled,
|
3151
|
-
id: opt.value.toString(),
|
3152
3175
|
type: "radio",
|
3153
|
-
|
3176
|
+
id: opt.value.toString(),
|
3154
3177
|
name,
|
3155
|
-
|
3178
|
+
value: opt.value.toString(),
|
3179
|
+
className: "hawa-peer hawa-hidden",
|
3180
|
+
required: true,
|
3181
|
+
disabled: opt.disabled
|
3156
3182
|
}
|
3157
|
-
),
|
3158
|
-
/* @__PURE__ */ React24.createElement(
|
3183
|
+
), /* @__PURE__ */ React24.createElement(
|
3159
3184
|
"label",
|
3160
3185
|
{
|
3161
3186
|
htmlFor: opt.value.toString(),
|
3162
3187
|
className: cn(
|
3163
|
-
"hawa-
|
3164
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
3188
|
+
"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",
|
3189
|
+
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"
|
3165
3190
|
)
|
3166
3191
|
},
|
3167
|
-
opt.label
|
3168
|
-
)
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
"input",
|
3173
|
-
{
|
3174
|
-
type: "radio",
|
3175
|
-
id: opt.value.toString(),
|
3176
|
-
name,
|
3177
|
-
value: opt.value.toString(),
|
3178
|
-
className: "hawa-peer hawa-hidden",
|
3179
|
-
required: true,
|
3180
|
-
disabled: opt.disabled
|
3181
|
-
}
|
3182
|
-
), /* @__PURE__ */ React24.createElement(
|
3183
|
-
"label",
|
3184
|
-
{
|
3185
|
-
htmlFor: opt.value.toString(),
|
3186
|
-
className: cn(
|
3187
|
-
"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",
|
3188
|
-
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"
|
3189
|
-
)
|
3190
|
-
},
|
3191
|
-
/* @__PURE__ */ React24.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3192
|
-
))));
|
3193
|
-
default:
|
3194
|
-
return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement(
|
3195
|
-
"div",
|
3196
|
-
{
|
3197
|
-
className: cn(
|
3198
|
-
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3199
|
-
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3200
|
-
),
|
3201
|
-
key: i + 1
|
3202
|
-
},
|
3203
|
-
/* @__PURE__ */ React24.createElement(
|
3204
|
-
"input",
|
3192
|
+
/* @__PURE__ */ React24.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3193
|
+
))));
|
3194
|
+
default:
|
3195
|
+
return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React24.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React24.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React24.createElement(
|
3196
|
+
"div",
|
3205
3197
|
{
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3198
|
+
className: cn(
|
3199
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3200
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3201
|
+
),
|
3202
|
+
key: i + 1
|
3203
|
+
},
|
3204
|
+
/* @__PURE__ */ React24.createElement(
|
3205
|
+
"input",
|
3206
|
+
{
|
3207
|
+
disabled: opt.disabled,
|
3208
|
+
id: opt.value.toString(),
|
3209
|
+
type: "radio",
|
3210
|
+
value: opt.value,
|
3211
|
+
name,
|
3212
|
+
onChange: () => handleChange(opt)
|
3213
|
+
}
|
3214
|
+
),
|
3215
|
+
/* @__PURE__ */ React24.createElement(
|
3216
|
+
"label",
|
3217
|
+
{
|
3218
|
+
htmlFor: opt.value.toString(),
|
3219
|
+
className: cn(
|
3220
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3221
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3222
|
+
)
|
3223
|
+
},
|
3224
|
+
opt.label
|
3225
|
+
)
|
3226
|
+
))), /* @__PURE__ */ React24.createElement(
|
3227
|
+
"p",
|
3216
3228
|
{
|
3217
|
-
htmlFor: opt.value.toString(),
|
3218
3229
|
className: cn(
|
3219
|
-
"hawa-text-
|
3220
|
-
|
3230
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3231
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3221
3232
|
)
|
3222
3233
|
},
|
3223
|
-
|
3224
|
-
)
|
3225
|
-
|
3226
|
-
"p",
|
3227
|
-
{
|
3228
|
-
className: cn(
|
3229
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3230
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3231
|
-
)
|
3232
|
-
},
|
3233
|
-
props.helperText
|
3234
|
-
));
|
3234
|
+
props.helperText
|
3235
|
+
));
|
3236
|
+
}
|
3235
3237
|
}
|
3236
|
-
|
3238
|
+
);
|
3237
3239
|
|
3238
3240
|
// elements/combobox/Combobox.tsx
|
3239
3241
|
import * as React27 from "react";
|
@@ -8285,7 +8287,11 @@ var AppLayout = ({
|
|
8285
8287
|
let openDrawerWidth = 200;
|
8286
8288
|
let drawerSizeStyle = {
|
8287
8289
|
opened: { sm: "100", md: openDrawerWidth, lg: "250" },
|
8288
|
-
closed: {
|
8290
|
+
closed: {
|
8291
|
+
sm: closeDrawerWidth,
|
8292
|
+
md: closeDrawerWidth,
|
8293
|
+
lg: closeDrawerWidth
|
8294
|
+
}
|
8289
8295
|
};
|
8290
8296
|
const ref = useRef10(null);
|
8291
8297
|
const isRTL = direction === "rtl";
|
@@ -8398,7 +8404,7 @@ var AppLayout = ({
|
|
8398
8404
|
sideOffset: 5,
|
8399
8405
|
width: profileMenuWidth,
|
8400
8406
|
direction: isRTL ? "rtl" : "ltr",
|
8401
|
-
items: props.profileMenuItems,
|
8407
|
+
items: props.profileMenuItems || [],
|
8402
8408
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8403
8409
|
trigger: /* @__PURE__ */ React66.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__ */ React66.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React66.createElement(
|
8404
8410
|
"svg",
|
@@ -8698,7 +8704,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8698
8704
|
side: "bottom",
|
8699
8705
|
sideOffset: 5,
|
8700
8706
|
direction: isRTL ? "rtl" : "ltr",
|
8701
|
-
items: props.profileMenuItems,
|
8707
|
+
items: props.profileMenuItems || [],
|
8702
8708
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8703
8709
|
trigger: /* @__PURE__ */ React67.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__ */ React67.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React67.createElement(
|
8704
8710
|
"svg",
|
@@ -9966,7 +9972,7 @@ var RegisterForm = ({
|
|
9966
9972
|
isMulti: false,
|
9967
9973
|
isSearchable: false,
|
9968
9974
|
isClearable: false,
|
9969
|
-
options: props.userReferenceOptions,
|
9975
|
+
options: props.userReferenceOptions || [],
|
9970
9976
|
onChange: (e) => {
|
9971
9977
|
field.onChange(e.value);
|
9972
9978
|
}
|
@@ -11175,7 +11181,7 @@ var ContactForm = ({
|
|
11175
11181
|
Select,
|
11176
11182
|
{
|
11177
11183
|
label,
|
11178
|
-
options: customField.options,
|
11184
|
+
options: customField.options || [],
|
11179
11185
|
value: field.value,
|
11180
11186
|
onChange: (option) => field.onChange(option.value)
|
11181
11187
|
}
|