@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/elements/index.js
CHANGED
@@ -3193,207 +3193,209 @@ var BackToTop = ({ ...props }) => {
|
|
3193
3193
|
|
3194
3194
|
// elements/radio/Radio.tsx
|
3195
3195
|
var import_react11 = __toESM(require("react"));
|
3196
|
-
var Radio = (
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3205
|
-
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3196
|
+
var Radio = (0, import_react11.forwardRef)(
|
3197
|
+
({
|
3198
|
+
design = "default",
|
3199
|
+
width = "default",
|
3200
|
+
size = "default",
|
3201
|
+
orientation = "horizontal",
|
3202
|
+
name,
|
3203
|
+
labelProps,
|
3204
|
+
tabsContainerClassName,
|
3205
|
+
forceHideHelperText = false,
|
3206
|
+
onChange,
|
3207
|
+
...props
|
3208
|
+
}, ref) => {
|
3209
|
+
var _a, _b, _c;
|
3210
|
+
const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
|
3211
|
+
props.defaultValue || props.value
|
3212
|
+
);
|
3213
|
+
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
3214
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
3214
3215
|
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
3215
|
-
|
3216
|
-
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3225
|
-
|
3226
|
-
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
|
3231
|
-
|
3232
|
-
|
3233
|
-
|
3234
|
-
|
3235
|
-
|
3236
|
-
|
3237
|
-
|
3238
|
-
|
3239
|
-
|
3240
|
-
|
3241
|
-
|
3242
|
-
|
3243
|
-
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
{
|
3255
|
-
ref: parentRef,
|
3256
|
-
className: cn(
|
3257
|
-
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3258
|
-
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3259
|
-
orientationStyle[orientation],
|
3260
|
-
widthStyle[width],
|
3261
|
-
tabsContainerClassName
|
3262
|
-
)
|
3263
|
-
},
|
3264
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
|
3265
|
-
"li",
|
3216
|
+
let orientationStyle = {
|
3217
|
+
horizontal: "hawa-flex hawa-flex-row",
|
3218
|
+
vertical: "hawa-flex hawa-flex-col"
|
3219
|
+
};
|
3220
|
+
let tabSizeStyle = {
|
3221
|
+
default: "hawa-py-2 hawa-px-4 hawa-text-sm",
|
3222
|
+
lg: "hawa-py-2 hawa-px-4",
|
3223
|
+
sm: "hawa-p-1.5 hawa-text-xs",
|
3224
|
+
xs: "hawa-p-1 hawa-text-[10px]"
|
3225
|
+
};
|
3226
|
+
let widthStyle = {
|
3227
|
+
none: "",
|
3228
|
+
default: "hawa-max-w-fit",
|
3229
|
+
full: "hawa-w-full"
|
3230
|
+
};
|
3231
|
+
const [parentDirection, setParentDirection] = import_react11.default.useState(
|
3232
|
+
null
|
3233
|
+
);
|
3234
|
+
const parentRef = (0, import_react11.useRef)(null);
|
3235
|
+
(0, import_react11.useEffect)(() => {
|
3236
|
+
var _a2;
|
3237
|
+
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
3238
|
+
if (parentNode) {
|
3239
|
+
const dir = window.getComputedStyle(parentNode).direction;
|
3240
|
+
setParentDirection(dir);
|
3241
|
+
}
|
3242
|
+
});
|
3243
|
+
const handleChange = (opt) => {
|
3244
|
+
setSelectedOption(opt.value);
|
3245
|
+
if (onChange) {
|
3246
|
+
onChange(opt.value);
|
3247
|
+
} else {
|
3248
|
+
console.log("onChange was not provided");
|
3249
|
+
}
|
3250
|
+
};
|
3251
|
+
switch (design) {
|
3252
|
+
case "tabs":
|
3253
|
+
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(
|
3254
|
+
"ul",
|
3266
3255
|
{
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
|
3271
|
-
|
3256
|
+
ref: parentRef,
|
3257
|
+
className: cn(
|
3258
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3259
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
|
3260
|
+
orientationStyle[orientation],
|
3261
|
+
widthStyle[width],
|
3262
|
+
tabsContainerClassName
|
3263
|
+
)
|
3264
|
+
},
|
3265
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
|
3266
|
+
"li",
|
3267
|
+
{
|
3268
|
+
"aria-current": "page",
|
3269
|
+
onClick: () => {
|
3270
|
+
if (props.disabled)
|
3271
|
+
return;
|
3272
|
+
handleChange(opt);
|
3273
|
+
},
|
3274
|
+
className: cn(
|
3275
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
3276
|
+
!props.disabled && "hawa-cursor-pointer",
|
3277
|
+
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
3278
|
+
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
3279
|
+
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
3280
|
+
tabSizeStyle[size],
|
3281
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3282
|
+
),
|
3283
|
+
key: o
|
3272
3284
|
},
|
3285
|
+
opt.icon && opt.icon,
|
3286
|
+
opt.label
|
3287
|
+
))
|
3288
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
|
3289
|
+
"p",
|
3290
|
+
{
|
3291
|
+
className: cn(
|
3292
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3293
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3294
|
+
)
|
3295
|
+
},
|
3296
|
+
props.helperText
|
3297
|
+
));
|
3298
|
+
case "bordered":
|
3299
|
+
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(
|
3300
|
+
"div",
|
3301
|
+
{
|
3273
3302
|
className: cn(
|
3274
|
-
"
|
3275
|
-
|
3276
|
-
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
3277
|
-
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
3278
|
-
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
3279
|
-
tabSizeStyle[size],
|
3280
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3303
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3304
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3281
3305
|
),
|
3282
|
-
key:
|
3306
|
+
key: i + 1
|
3283
3307
|
},
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
},
|
3295
|
-
props.helperText
|
3296
|
-
));
|
3297
|
-
case "bordered":
|
3298
|
-
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(
|
3299
|
-
"div",
|
3300
|
-
{
|
3301
|
-
className: cn(
|
3302
|
-
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3303
|
-
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3308
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3309
|
+
"input",
|
3310
|
+
{
|
3311
|
+
disabled: opt.disabled,
|
3312
|
+
id: opt.value.toString(),
|
3313
|
+
type: "radio",
|
3314
|
+
value: opt.value,
|
3315
|
+
name,
|
3316
|
+
onChange: () => handleChange(opt)
|
3317
|
+
}
|
3304
3318
|
),
|
3305
|
-
|
3306
|
-
|
3307
|
-
|
3319
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3320
|
+
"label",
|
3321
|
+
{
|
3322
|
+
htmlFor: opt.value.toString(),
|
3323
|
+
className: cn(
|
3324
|
+
"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",
|
3325
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3326
|
+
)
|
3327
|
+
},
|
3328
|
+
opt.label
|
3329
|
+
)
|
3330
|
+
))));
|
3331
|
+
case "cards":
|
3332
|
+
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(
|
3308
3333
|
"input",
|
3309
3334
|
{
|
3310
|
-
disabled: opt.disabled,
|
3311
|
-
id: opt.value.toString(),
|
3312
3335
|
type: "radio",
|
3313
|
-
|
3336
|
+
id: opt.value.toString(),
|
3314
3337
|
name,
|
3315
|
-
|
3338
|
+
value: opt.value.toString(),
|
3339
|
+
className: "hawa-peer hawa-hidden",
|
3340
|
+
required: true,
|
3341
|
+
disabled: opt.disabled
|
3316
3342
|
}
|
3317
|
-
),
|
3318
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3343
|
+
), /* @__PURE__ */ import_react11.default.createElement(
|
3319
3344
|
"label",
|
3320
3345
|
{
|
3321
3346
|
htmlFor: opt.value.toString(),
|
3322
3347
|
className: cn(
|
3323
|
-
"hawa-
|
3324
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
3348
|
+
"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",
|
3349
|
+
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"
|
3325
3350
|
)
|
3326
3351
|
},
|
3327
|
-
opt.label
|
3328
|
-
)
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
"input",
|
3333
|
-
{
|
3334
|
-
type: "radio",
|
3335
|
-
id: opt.value.toString(),
|
3336
|
-
name,
|
3337
|
-
value: opt.value.toString(),
|
3338
|
-
className: "hawa-peer hawa-hidden",
|
3339
|
-
required: true,
|
3340
|
-
disabled: opt.disabled
|
3341
|
-
}
|
3342
|
-
), /* @__PURE__ */ import_react11.default.createElement(
|
3343
|
-
"label",
|
3344
|
-
{
|
3345
|
-
htmlFor: opt.value.toString(),
|
3346
|
-
className: cn(
|
3347
|
-
"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",
|
3348
|
-
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"
|
3349
|
-
)
|
3350
|
-
},
|
3351
|
-
/* @__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))
|
3352
|
-
))));
|
3353
|
-
default:
|
3354
|
-
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(
|
3355
|
-
"div",
|
3356
|
-
{
|
3357
|
-
className: cn(
|
3358
|
-
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3359
|
-
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3360
|
-
),
|
3361
|
-
key: i + 1
|
3362
|
-
},
|
3363
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3364
|
-
"input",
|
3352
|
+
/* @__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))
|
3353
|
+
))));
|
3354
|
+
default:
|
3355
|
+
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(
|
3356
|
+
"div",
|
3365
3357
|
{
|
3366
|
-
|
3367
|
-
|
3368
|
-
|
3369
|
-
|
3370
|
-
|
3371
|
-
|
3372
|
-
|
3373
|
-
|
3374
|
-
|
3375
|
-
|
3358
|
+
className: cn(
|
3359
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3360
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3361
|
+
),
|
3362
|
+
key: i + 1
|
3363
|
+
},
|
3364
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3365
|
+
"input",
|
3366
|
+
{
|
3367
|
+
disabled: opt.disabled,
|
3368
|
+
id: opt.value.toString(),
|
3369
|
+
type: "radio",
|
3370
|
+
value: opt.value,
|
3371
|
+
name,
|
3372
|
+
onChange: () => handleChange(opt)
|
3373
|
+
}
|
3374
|
+
),
|
3375
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
3376
|
+
"label",
|
3377
|
+
{
|
3378
|
+
htmlFor: opt.value.toString(),
|
3379
|
+
className: cn(
|
3380
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3381
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3382
|
+
)
|
3383
|
+
},
|
3384
|
+
opt.label
|
3385
|
+
)
|
3386
|
+
))), /* @__PURE__ */ import_react11.default.createElement(
|
3387
|
+
"p",
|
3376
3388
|
{
|
3377
|
-
htmlFor: opt.value.toString(),
|
3378
3389
|
className: cn(
|
3379
|
-
"hawa-text-
|
3380
|
-
|
3390
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3391
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3381
3392
|
)
|
3382
3393
|
},
|
3383
|
-
|
3384
|
-
)
|
3385
|
-
|
3386
|
-
"p",
|
3387
|
-
{
|
3388
|
-
className: cn(
|
3389
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3390
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3391
|
-
)
|
3392
|
-
},
|
3393
|
-
props.helperText
|
3394
|
-
));
|
3394
|
+
props.helperText
|
3395
|
+
));
|
3396
|
+
}
|
3395
3397
|
}
|
3396
|
-
|
3398
|
+
);
|
3397
3399
|
|
3398
3400
|
// elements/combobox/Combobox.tsx
|
3399
3401
|
var React27 = __toESM(require("react"));
|
package/dist/elements/index.mjs
CHANGED
package/dist/index.css
CHANGED
@@ -3289,6 +3289,9 @@ body {
|
|
3289
3289
|
.hover\:hawa-bg-destructive\/90:hover {
|
3290
3290
|
background-color: hsl(var(--destructive) / 0.9);
|
3291
3291
|
}
|
3292
|
+
.hover\:hawa-bg-foreground\/10:hover {
|
3293
|
+
background-color: hsl(var(--foreground) / 0.1);
|
3294
|
+
}
|
3292
3295
|
.hover\:hawa-bg-gray-100:hover {
|
3293
3296
|
--tw-bg-opacity: 1;
|
3294
3297
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
@@ -3963,6 +3966,9 @@ body {
|
|
3963
3966
|
--tw-bg-opacity: 1;
|
3964
3967
|
background-color: rgb(34 211 238 / var(--tw-bg-opacity));
|
3965
3968
|
}
|
3969
|
+
:is(.hawa-dark .dark\:hawa-bg-foreground\/5) {
|
3970
|
+
background-color: hsl(var(--foreground) / 0.05);
|
3971
|
+
}
|
3966
3972
|
:is(.hawa-dark .dark\:hawa-bg-gray-600) {
|
3967
3973
|
--tw-bg-opacity: 1;
|
3968
3974
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
@@ -4074,6 +4080,9 @@ body {
|
|
4074
4080
|
--tw-border-opacity: 1;
|
4075
4081
|
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
4076
4082
|
}
|
4083
|
+
:is(.hawa-dark .dark\:hover\:hawa-bg-foreground\/20:hover) {
|
4084
|
+
background-color: hsl(var(--foreground) / 0.2);
|
4085
|
+
}
|
4077
4086
|
:is(.hawa-dark .dark\:hover\:hawa-bg-gray-600:hover) {
|
4078
4087
|
--tw-bg-opacity: 1;
|
4079
4088
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
package/dist/index.d.mts
CHANGED
@@ -159,7 +159,7 @@ type MenuItemType = {
|
|
159
159
|
};
|
160
160
|
interface DropdownMenuProps {
|
161
161
|
trigger?: any;
|
162
|
-
items
|
162
|
+
items: MenuItemType[];
|
163
163
|
direction?: DirectionType;
|
164
164
|
className?: ExtendedDropdownMenuContentProps["className"];
|
165
165
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
@@ -518,7 +518,7 @@ type RadioTypes = {
|
|
518
518
|
tabsContainerClassName?: string;
|
519
519
|
forceHideHelperText?: boolean;
|
520
520
|
};
|
521
|
-
declare const Radio:
|
521
|
+
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
|
522
522
|
|
523
523
|
interface TableHeadProps extends React$1.ThHTMLAttributes<HTMLTableCellElement> {
|
524
524
|
clickable?: boolean;
|
@@ -757,7 +757,7 @@ type SelectOptionProps = {
|
|
757
757
|
type SelectTypes = {
|
758
758
|
label?: string;
|
759
759
|
hideHelperText?: boolean;
|
760
|
-
options
|
760
|
+
options: SelectOptionProps[];
|
761
761
|
labelKey?: string;
|
762
762
|
isCreatable?: boolean;
|
763
763
|
isClearable?: boolean;
|
package/dist/index.d.ts
CHANGED
@@ -159,7 +159,7 @@ type MenuItemType = {
|
|
159
159
|
};
|
160
160
|
interface DropdownMenuProps {
|
161
161
|
trigger?: any;
|
162
|
-
items
|
162
|
+
items: MenuItemType[];
|
163
163
|
direction?: DirectionType;
|
164
164
|
className?: ExtendedDropdownMenuContentProps["className"];
|
165
165
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
@@ -518,7 +518,7 @@ type RadioTypes = {
|
|
518
518
|
tabsContainerClassName?: string;
|
519
519
|
forceHideHelperText?: boolean;
|
520
520
|
};
|
521
|
-
declare const Radio:
|
521
|
+
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
|
522
522
|
|
523
523
|
interface TableHeadProps extends React$1.ThHTMLAttributes<HTMLTableCellElement> {
|
524
524
|
clickable?: boolean;
|
@@ -757,7 +757,7 @@ type SelectOptionProps = {
|
|
757
757
|
type SelectTypes = {
|
758
758
|
label?: string;
|
759
759
|
hideHelperText?: boolean;
|
760
|
-
options
|
760
|
+
options: SelectOptionProps[];
|
761
761
|
labelKey?: string;
|
762
762
|
isCreatable?: boolean;
|
763
763
|
isClearable?: boolean;
|