@sikka/hawa 0.48.0-next → 0.49.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +3 -28
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +3 -28
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.js +53 -98
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +53 -98
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +263 -409
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +263 -409
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appMenubar/index.js +15 -20
- package/dist/appMenubar/index.js.map +1 -1
- package/dist/appMenubar/index.mjs +15 -20
- package/dist/appMenubar/index.mjs.map +1 -1
- package/dist/appTabs/index.js +28 -37
- package/dist/appTabs/index.js.map +1 -1
- package/dist/appTabs/index.mjs +28 -37
- package/dist/appTabs/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +125 -173
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +125 -173
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +50 -82
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +50 -82
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/badge/index.d.mts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/index.js +2 -18
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +2 -18
- package/dist/badge/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +539 -792
- package/dist/blocks/auth/index.mjs +433 -604
- package/dist/blocks/feedback/index.js +214 -375
- package/dist/blocks/feedback/index.mjs +12 -25
- package/dist/blocks/index.d.mts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/index.js +940 -1445
- package/dist/blocks/index.mjs +469 -615
- package/dist/blocks/misc/index.js +136 -251
- package/dist/blocks/misc/index.mjs +29 -54
- package/dist/blocks/pricing/index.js +220 -397
- package/dist/blocks/pricing/index.mjs +63 -134
- package/dist/breadcrumb/index.js +1 -5
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +1 -5
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/button/index.js +50 -82
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +50 -82
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +50 -82
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +50 -82
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.js +7 -35
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +7 -35
- package/dist/card/index.mjs.map +1 -1
- package/dist/carousel/index.js +15 -27
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +15 -27
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/checkbox/index.js +2 -13
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +2 -13
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/index.js +2 -16
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +2 -16
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
- package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
- package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
- package/dist/chunk-GHGWQVTM.mjs +150 -0
- package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
- package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
- package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
- package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
- package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
- package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
- package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
- package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
- package/dist/codeBlock/index.js +50 -82
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +50 -82
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +21 -33
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +22 -37
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +141 -223
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +141 -223
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +129 -212
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +129 -212
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +254 -394
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +254 -394
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +64 -105
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +64 -105
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +8 -39
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +8 -39
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/dialog/index.js +70 -122
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +70 -122
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +169 -358
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +169 -358
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/docsSidebar/index.js +9 -16
- package/dist/docsSidebar/index.js.map +1 -1
- package/dist/docsSidebar/index.mjs +9 -16
- package/dist/docsSidebar/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +124 -164
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +124 -164
- 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 +841 -1505
- package/dist/elements/index.mjs +381 -718
- package/dist/fileDropzone/index.js +60 -159
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +60 -159
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/glow/index.js +4 -16
- package/dist/glow/index.js.map +1 -1
- package/dist/glow/index.mjs +4 -16
- package/dist/glow/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -5
- package/dist/hooks/index.d.ts +1 -5
- package/dist/hooks/index.js +11 -24
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
- package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
- package/dist/index.css +1 -6
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1549 -2512
- package/dist/index.mjs +1550 -2516
- package/dist/input/index.js +20 -29
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +20 -29
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +122 -163
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +122 -163
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +19 -26
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +19 -26
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +434 -790
- package/dist/layout/index.mjs +143 -243
- package/dist/loading/index.js +30 -53
- package/dist/loading/index.js.map +1 -1
- package/dist/loading/index.mjs +30 -53
- package/dist/loading/index.mjs.map +1 -1
- package/dist/logos/index.js +66 -191
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +66 -191
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navbar/index.js +1 -4
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +1 -4
- package/dist/navbar/index.mjs.map +1 -1
- package/dist/navigationMenu/index.js +14 -22
- package/dist/navigationMenu/index.js.map +1 -1
- package/dist/navigationMenu/index.mjs +14 -22
- package/dist/navigationMenu/index.mjs.map +1 -1
- package/dist/pagination/index.js +1 -5
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +1 -5
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/passwordInput/index.js +36 -65
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +36 -65
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +20 -29
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +20 -29
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +14 -16
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +14 -16
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/popover/index.js +14 -24
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +14 -24
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.js +19 -26
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +19 -26
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progressCircle/index.js +67 -71
- package/dist/progressCircle/index.js.map +1 -1
- package/dist/progressCircle/index.mjs +67 -71
- package/dist/progressCircle/index.mjs.map +1 -1
- package/dist/radio/index.js +122 -163
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +122 -163
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/scrollIndicator/index.js +1 -4
- package/dist/scrollIndicator/index.js.map +1 -1
- package/dist/scrollIndicator/index.mjs +1 -4
- package/dist/scrollIndicator/index.mjs.map +1 -1
- package/dist/select/index.js +20 -29
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +20 -29
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.js.map +1 -1
- package/dist/separator/index.mjs.map +1 -1
- package/dist/sheet/index.js +42 -53
- package/dist/sheet/index.js.map +1 -1
- package/dist/sheet/index.mjs +42 -53
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.js +66 -133
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +66 -133
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/signature/index.js +19 -26
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +19 -26
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +50 -81
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +50 -81
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs.map +1 -1
- package/dist/sonner/index.js.map +1 -1
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/sortButton/index.js +50 -82
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +50 -82
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +214 -294
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +214 -294
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +7 -35
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +7 -35
- package/dist/stats/index.mjs.map +1 -1
- package/dist/switch/index.js +24 -34
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +24 -34
- package/dist/switch/index.mjs.map +1 -1
- package/dist/table/index.js +27 -29
- package/dist/table/index.js.map +1 -1
- package/dist/table/index.mjs +27 -29
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/index.js +54 -76
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +54 -76
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.js +21 -38
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +21 -38
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.js +2 -10
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +2 -10
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toaster/index.js +3 -16
- package/dist/toaster/index.js.map +1 -1
- package/dist/toaster/index.mjs +3 -16
- package/dist/toaster/index.mjs.map +1 -1
- package/dist/tooltip/index.js +19 -26
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +19 -26
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-JP2N5WKD.mjs +0 -190
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
useViewportSize
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-WQR4XZGL.mjs";
|
5
5
|
import {
|
6
6
|
Button,
|
7
7
|
Chip,
|
@@ -9,7 +9,7 @@ import {
|
|
9
9
|
Label,
|
10
10
|
Skeleton,
|
11
11
|
cn
|
12
|
-
} from "./chunk-
|
12
|
+
} from "./chunk-KDGJZPWK.mjs";
|
13
13
|
|
14
14
|
// elements/alert/Alert.tsx
|
15
15
|
import React, { useRef, useState, useEffect } from "react";
|
@@ -104,20 +104,9 @@ var Alert = ({
|
|
104
104
|
), props.actions && /* @__PURE__ */ React.createElement(
|
105
105
|
"div",
|
106
106
|
{
|
107
|
-
className: cn(
|
108
|
-
"hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2",
|
109
|
-
classNames == null ? void 0 : classNames.actions
|
110
|
-
)
|
107
|
+
className: cn("hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.actions)
|
111
108
|
},
|
112
|
-
props.actions.map((act, index) => /* @__PURE__ */ React.createElement(
|
113
|
-
Button,
|
114
|
-
{
|
115
|
-
key: index,
|
116
|
-
variant: act.variant,
|
117
|
-
onClick: act.onClick()
|
118
|
-
},
|
119
|
-
act.label
|
120
|
-
))
|
109
|
+
props.actions.map((act, index) => /* @__PURE__ */ React.createElement(Button, { key: index, variant: act.variant, onClick: act.onClick() }, act.label))
|
121
110
|
))),
|
122
111
|
!props.persistent && /* @__PURE__ */ React.createElement(
|
123
112
|
"button",
|
@@ -139,9 +128,7 @@ var Alert = ({
|
|
139
128
|
setClosed(true);
|
140
129
|
setTimeout(() => {
|
141
130
|
if (alertRef == null ? void 0 : alertRef.current) {
|
142
|
-
alertRef == null ? void 0 : alertRef.current.removeChild(
|
143
|
-
alertRef == null ? void 0 : alertRef.current.children[0]
|
144
|
-
);
|
131
|
+
alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
|
145
132
|
}
|
146
133
|
}, 200);
|
147
134
|
}
|
@@ -2299,16 +2286,7 @@ var Checkbox = ({
|
|
2299
2286
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
2300
2287
|
)
|
2301
2288
|
},
|
2302
|
-
/* @__PURE__ */ React5.createElement(
|
2303
|
-
CheckboxElement,
|
2304
|
-
{
|
2305
|
-
...props,
|
2306
|
-
size,
|
2307
|
-
radius,
|
2308
|
-
disabled,
|
2309
|
-
id
|
2310
|
-
}
|
2311
|
-
),
|
2289
|
+
/* @__PURE__ */ React5.createElement(CheckboxElement, { ...props, size, radius, disabled, id }),
|
2312
2290
|
(label || helperText) && /* @__PURE__ */ React5.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React5.createElement(
|
2313
2291
|
"label",
|
2314
2292
|
{
|
@@ -2383,9 +2361,7 @@ var CheckboxElement = React5.forwardRef(({ radius = "inherit", size = "default",
|
|
2383
2361
|
/* @__PURE__ */ React5.createElement(
|
2384
2362
|
CheckboxPrimitive.Indicator,
|
2385
2363
|
{
|
2386
|
-
className: cn(
|
2387
|
-
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
2388
|
-
)
|
2364
|
+
className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
|
2389
2365
|
},
|
2390
2366
|
/* @__PURE__ */ React5.createElement(
|
2391
2367
|
"svg",
|
@@ -2616,83 +2592,75 @@ var Tabs = React8.forwardRef(
|
|
2616
2592
|
/* @__PURE__ */ React8.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
2617
2593
|
)
|
2618
2594
|
);
|
2619
|
-
var TabsList = React8.forwardRef(
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
ref,
|
2627
|
-
className: cn(
|
2628
|
-
tabsListVariant({ variant, orientation }),
|
2629
|
-
"hawa-flex-row hawa-flex-nowrap",
|
2630
|
-
className
|
2631
|
-
),
|
2632
|
-
...props
|
2633
|
-
}
|
2634
|
-
));
|
2635
|
-
} else {
|
2636
|
-
return /* @__PURE__ */ React8.createElement(
|
2637
|
-
TabsPrimitive.List,
|
2638
|
-
{
|
2639
|
-
ref,
|
2640
|
-
className: cn(
|
2641
|
-
tabsListVariant({ variant, orientation }),
|
2642
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
2643
|
-
"hawa-flex-wrap",
|
2644
|
-
className
|
2645
|
-
),
|
2646
|
-
...props
|
2647
|
-
}
|
2648
|
-
);
|
2649
|
-
}
|
2650
|
-
});
|
2651
|
-
var TabsTrigger = React8.forwardRef(
|
2652
|
-
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
2653
|
-
const { orientation, variant } = React8.useContext(TabsContext);
|
2654
|
-
if (withPopover) {
|
2655
|
-
return /* @__PURE__ */ React8.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React8.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React8.createElement(
|
2656
|
-
TabsPrimitive.Trigger,
|
2595
|
+
var TabsList = React8.forwardRef(
|
2596
|
+
({ className, classNames, ...props }, ref) => {
|
2597
|
+
const { orientation, variant, scrollable } = React8.useContext(TabsContext);
|
2598
|
+
const { width } = useViewportSize();
|
2599
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
2600
|
+
return /* @__PURE__ */ React8.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React8.createElement(
|
2601
|
+
TabsPrimitive.List,
|
2657
2602
|
{
|
2603
|
+
ref,
|
2658
2604
|
className: cn(
|
2659
|
-
|
2660
|
-
"hawa-
|
2605
|
+
tabsListVariant({ variant, orientation }),
|
2606
|
+
"hawa-flex-row hawa-flex-nowrap",
|
2661
2607
|
className
|
2662
2608
|
),
|
2663
2609
|
...props
|
2664
|
-
}
|
2665
|
-
props.children,
|
2666
|
-
chipProps && /* @__PURE__ */ React8.createElement(Chip, { ...chipProps })
|
2667
|
-
)), /* @__PURE__ */ React8.createElement(
|
2668
|
-
Popover.Content,
|
2669
|
-
{
|
2670
|
-
onClick: onPopoverClick,
|
2671
|
-
asChild: true,
|
2672
|
-
className: cn(
|
2673
|
-
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
2674
|
-
"hawa-arrow-default-top hawa-mt-2"
|
2675
|
-
)
|
2676
|
-
},
|
2677
|
-
/* @__PURE__ */ React8.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
2610
|
+
}
|
2678
2611
|
));
|
2679
2612
|
} else {
|
2680
2613
|
return /* @__PURE__ */ React8.createElement(
|
2681
|
-
TabsPrimitive.
|
2614
|
+
TabsPrimitive.List,
|
2682
2615
|
{
|
2616
|
+
ref,
|
2683
2617
|
className: cn(
|
2684
|
-
|
2685
|
-
"hawa-
|
2618
|
+
tabsListVariant({ variant, orientation }),
|
2619
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
2620
|
+
"hawa-flex-wrap",
|
2686
2621
|
className
|
2687
2622
|
),
|
2688
2623
|
...props
|
2689
|
-
}
|
2690
|
-
props.children,
|
2691
|
-
chipProps && /* @__PURE__ */ React8.createElement(Chip, { ...chipProps })
|
2624
|
+
}
|
2692
2625
|
);
|
2693
2626
|
}
|
2694
2627
|
}
|
2695
2628
|
);
|
2629
|
+
var TabsTrigger = React8.forwardRef(({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
2630
|
+
const { orientation, variant } = React8.useContext(TabsContext);
|
2631
|
+
if (withPopover) {
|
2632
|
+
return /* @__PURE__ */ React8.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React8.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React8.createElement(
|
2633
|
+
TabsPrimitive.Trigger,
|
2634
|
+
{
|
2635
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
2636
|
+
...props
|
2637
|
+
},
|
2638
|
+
props.children,
|
2639
|
+
chipProps && /* @__PURE__ */ React8.createElement(Chip, { ...chipProps })
|
2640
|
+
)), /* @__PURE__ */ React8.createElement(
|
2641
|
+
Popover.Content,
|
2642
|
+
{
|
2643
|
+
onClick: onPopoverClick,
|
2644
|
+
asChild: true,
|
2645
|
+
className: cn(
|
2646
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
2647
|
+
"hawa-arrow-default-top hawa-mt-2"
|
2648
|
+
)
|
2649
|
+
},
|
2650
|
+
/* @__PURE__ */ React8.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
2651
|
+
));
|
2652
|
+
} else {
|
2653
|
+
return /* @__PURE__ */ React8.createElement(
|
2654
|
+
TabsPrimitive.Trigger,
|
2655
|
+
{
|
2656
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
2657
|
+
...props
|
2658
|
+
},
|
2659
|
+
props.children,
|
2660
|
+
chipProps && /* @__PURE__ */ React8.createElement(Chip, { ...chipProps })
|
2661
|
+
);
|
2662
|
+
}
|
2663
|
+
});
|
2696
2664
|
var TabsContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
2697
2665
|
TabsPrimitive.Content,
|
2698
2666
|
{
|
@@ -2713,19 +2681,19 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2713
2681
|
import * as React9 from "react";
|
2714
2682
|
import { OTPInput, OTPInputContext } from "input-otp";
|
2715
2683
|
|
2716
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2684
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
2717
2685
|
import { forwardRef as forwardRef6, createElement as createElement5 } from "react";
|
2718
2686
|
|
2719
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2687
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
2720
2688
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
2721
2689
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
2722
2690
|
return Boolean(className) && array.indexOf(className) === index;
|
2723
2691
|
}).join(" ");
|
2724
2692
|
|
2725
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2693
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
2726
2694
|
import { forwardRef as forwardRef5, createElement as createElement4 } from "react";
|
2727
2695
|
|
2728
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2696
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
2729
2697
|
var defaultAttributes = {
|
2730
2698
|
xmlns: "http://www.w3.org/2000/svg",
|
2731
2699
|
width: 24,
|
@@ -2738,7 +2706,7 @@ var defaultAttributes = {
|
|
2738
2706
|
strokeLinejoin: "round"
|
2739
2707
|
};
|
2740
2708
|
|
2741
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2709
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
2742
2710
|
var Icon = forwardRef5(
|
2743
2711
|
({
|
2744
2712
|
color = "currentColor",
|
@@ -2770,7 +2738,7 @@ var Icon = forwardRef5(
|
|
2770
2738
|
}
|
2771
2739
|
);
|
2772
2740
|
|
2773
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2741
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
2774
2742
|
var createLucideIcon = (iconName, iconNode) => {
|
2775
2743
|
const Component = forwardRef6(
|
2776
2744
|
({ className, ...props }, ref) => createElement5(Icon, {
|
@@ -2784,7 +2752,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
2784
2752
|
return Component;
|
2785
2753
|
};
|
2786
2754
|
|
2787
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
2755
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
2788
2756
|
var Dot = createLucideIcon("Dot", [
|
2789
2757
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
2790
2758
|
]);
|
@@ -2844,21 +2812,19 @@ var PinInput = ({ separatorPosition = 0, ...props }) => {
|
|
2844
2812
|
// elements/popover/Popover.tsx
|
2845
2813
|
import * as React10 from "react";
|
2846
2814
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
2847
|
-
var PopoverContent = React10.forwardRef(
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
|
2854
|
-
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2858
|
-
|
2859
|
-
|
2860
|
-
))
|
2861
|
-
);
|
2815
|
+
var PopoverContent = React10.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React10.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React10.createElement(
|
2816
|
+
PopoverPrimitive.Content,
|
2817
|
+
{
|
2818
|
+
ref,
|
2819
|
+
align,
|
2820
|
+
sideOffset,
|
2821
|
+
className: cn(
|
2822
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
2823
|
+
className
|
2824
|
+
),
|
2825
|
+
...props
|
2826
|
+
}
|
2827
|
+
)));
|
2862
2828
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
2863
2829
|
var Popover2 = ({
|
2864
2830
|
trigger,
|
@@ -2878,15 +2844,7 @@ var Popover2 = ({
|
|
2878
2844
|
trigger: "var(--radix-popover-trigger-width)",
|
2879
2845
|
default: "auto"
|
2880
2846
|
};
|
2881
|
-
return /* @__PURE__ */ React10.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React10.createElement(
|
2882
|
-
PopoverPrimitive.Trigger,
|
2883
|
-
{
|
2884
|
-
className: "hawa-w-full",
|
2885
|
-
disabled: disableTrigger,
|
2886
|
-
...triggerProps
|
2887
|
-
},
|
2888
|
-
trigger
|
2889
|
-
), /* @__PURE__ */ React10.createElement(
|
2847
|
+
return /* @__PURE__ */ React10.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React10.createElement(PopoverPrimitive.Trigger, { className: "hawa-w-full", disabled: disableTrigger, ...triggerProps }, trigger), /* @__PURE__ */ React10.createElement(
|
2890
2848
|
PopoverContent,
|
2891
2849
|
{
|
2892
2850
|
side,
|
@@ -2943,12 +2901,8 @@ var Radio = forwardRef9(
|
|
2943
2901
|
default: "hawa-max-w-fit",
|
2944
2902
|
full: "hawa-w-full"
|
2945
2903
|
};
|
2946
|
-
const [parentDirection, setParentDirection] = React11.useState(
|
2947
|
-
|
2948
|
-
);
|
2949
|
-
const [selectedOption, setSelectedOption] = useState5(
|
2950
|
-
props.defaultValue || props.value
|
2951
|
-
);
|
2904
|
+
const [parentDirection, setParentDirection] = React11.useState(null);
|
2905
|
+
const [selectedOption, setSelectedOption] = useState5(props.defaultValue || props.value);
|
2952
2906
|
const [openTooltip, setOpenTooltip] = useState5(null);
|
2953
2907
|
const parentRef = useRef4(null);
|
2954
2908
|
useEffect4(() => {
|
@@ -2977,89 +2931,78 @@ var Radio = forwardRef9(
|
|
2977
2931
|
];
|
2978
2932
|
switch (design) {
|
2979
2933
|
case "tabs":
|
2980
|
-
return /* @__PURE__ */ React11.createElement(
|
2981
|
-
|
2934
|
+
return /* @__PURE__ */ React11.createElement("div", { className: cn("hawa-gap-2 hawa-flex hawa-flex-col", containerClassNames == null ? void 0 : containerClassNames.tabs) }, props.label && /* @__PURE__ */ React11.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React11.createElement(Tabs2, null, /* @__PURE__ */ React11.createElement(
|
2935
|
+
TabsList2,
|
2982
2936
|
{
|
2937
|
+
role: "tablist",
|
2938
|
+
ref: parentRef,
|
2983
2939
|
className: cn(
|
2984
|
-
"hawa-
|
2985
|
-
|
2940
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
2941
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
2942
|
+
orientationStyle[orientation],
|
2943
|
+
widthStyle[width],
|
2944
|
+
tabsContainerClassName,
|
2945
|
+
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
2986
2946
|
)
|
2987
2947
|
},
|
2988
|
-
props.
|
2989
|
-
|
2990
|
-
|
2991
|
-
|
2992
|
-
|
2993
|
-
|
2994
|
-
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
widthStyle[width],
|
2999
|
-
tabsContainerClassName,
|
3000
|
-
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
3001
|
-
)
|
3002
|
-
},
|
3003
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3004
|
-
return opt.tooltip ? /* @__PURE__ */ React11.createElement(
|
3005
|
-
PopoverRoot,
|
2948
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
2949
|
+
return opt.tooltip ? /* @__PURE__ */ React11.createElement(
|
2950
|
+
PopoverRoot,
|
2951
|
+
{
|
2952
|
+
key: o,
|
2953
|
+
open: o === openTooltip,
|
2954
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
2955
|
+
},
|
2956
|
+
/* @__PURE__ */ React11.createElement(
|
2957
|
+
PopoverTrigger,
|
3006
2958
|
{
|
3007
|
-
|
3008
|
-
|
3009
|
-
|
2959
|
+
onMouseEnter: () => setOpenTooltip(o),
|
2960
|
+
onMouseLeave: () => setOpenTooltip(null),
|
2961
|
+
asChild: true
|
3010
2962
|
},
|
3011
2963
|
/* @__PURE__ */ React11.createElement(
|
3012
|
-
|
2964
|
+
TabsTrigger2,
|
3013
2965
|
{
|
3014
|
-
|
3015
|
-
|
3016
|
-
|
3017
|
-
|
3018
|
-
|
3019
|
-
|
3020
|
-
|
3021
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3022
|
-
value: opt.value,
|
3023
|
-
role: "tab",
|
3024
|
-
tabIndex: 0,
|
3025
|
-
onClick: () => {
|
3026
|
-
if (props.disabled || opt.disabled) return;
|
3027
|
-
handleChange(opt);
|
3028
|
-
},
|
3029
|
-
className: cn(
|
3030
|
-
...radio_option_tabs_styling,
|
3031
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3032
|
-
)
|
2966
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
2967
|
+
value: opt.value,
|
2968
|
+
role: "tab",
|
2969
|
+
tabIndex: 0,
|
2970
|
+
onClick: () => {
|
2971
|
+
if (props.disabled || opt.disabled) return;
|
2972
|
+
handleChange(opt);
|
3033
2973
|
},
|
3034
|
-
|
3035
|
-
|
3036
|
-
|
3037
|
-
|
3038
|
-
/* @__PURE__ */ React11.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3039
|
-
) : /* @__PURE__ */ React11.createElement(
|
3040
|
-
TabsTrigger2,
|
3041
|
-
{
|
3042
|
-
key: o,
|
3043
|
-
role: "tab",
|
3044
|
-
tabIndex: 0,
|
3045
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3046
|
-
onClick: () => {
|
3047
|
-
if (props.disabled || opt.disabled) return;
|
3048
|
-
handleChange(opt);
|
2974
|
+
className: cn(
|
2975
|
+
...radio_option_tabs_styling,
|
2976
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
2977
|
+
)
|
3049
2978
|
},
|
3050
|
-
|
3051
|
-
|
3052
|
-
|
3053
|
-
|
3054
|
-
|
2979
|
+
opt.icon && opt.icon,
|
2980
|
+
opt.label
|
2981
|
+
)
|
2982
|
+
),
|
2983
|
+
/* @__PURE__ */ React11.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
2984
|
+
) : /* @__PURE__ */ React11.createElement(
|
2985
|
+
TabsTrigger2,
|
2986
|
+
{
|
2987
|
+
key: o,
|
2988
|
+
role: "tab",
|
2989
|
+
tabIndex: 0,
|
2990
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
2991
|
+
onClick: () => {
|
2992
|
+
if (props.disabled || opt.disabled) return;
|
2993
|
+
handleChange(opt);
|
3055
2994
|
},
|
3056
|
-
|
3057
|
-
|
3058
|
-
|
3059
|
-
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
2995
|
+
className: cn(
|
2996
|
+
...radio_option_tabs_styling,
|
2997
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
2998
|
+
),
|
2999
|
+
value: opt.value
|
3000
|
+
},
|
3001
|
+
opt.icon && opt.icon,
|
3002
|
+
opt.label
|
3003
|
+
);
|
3004
|
+
})
|
3005
|
+
)), !forceHideHelperText && /* @__PURE__ */ React11.createElement(HelperText, { helperText: props.helperText }));
|
3063
3006
|
case "bordered":
|
3064
3007
|
return /* @__PURE__ */ React11.createElement(
|
3065
3008
|
"div",
|
@@ -3107,11 +3050,7 @@ var Radio = forwardRef9(
|
|
3107
3050
|
return /* @__PURE__ */ React11.createElement(
|
3108
3051
|
"ul",
|
3109
3052
|
{
|
3110
|
-
className: cn(
|
3111
|
-
orientationStyle[orientation],
|
3112
|
-
"hawa-gap-4",
|
3113
|
-
containerClassNames == null ? void 0 : containerClassNames.cards
|
3114
|
-
)
|
3053
|
+
className: cn(orientationStyle[orientation], "hawa-gap-4", containerClassNames == null ? void 0 : containerClassNames.cards)
|
3115
3054
|
},
|
3116
3055
|
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React11.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React11.createElement(
|
3117
3056
|
"input",
|
@@ -3137,49 +3076,38 @@ var Radio = forwardRef9(
|
|
3137
3076
|
)))
|
3138
3077
|
);
|
3139
3078
|
default:
|
3140
|
-
return /* @__PURE__ */ React11.createElement(
|
3079
|
+
return /* @__PURE__ */ React11.createElement("div", { className: cn("hawa-flex hawa-flex-col hawa-gap-2", containerClassNames == null ? void 0 : containerClassNames.default) }, props.label && /* @__PURE__ */ React11.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React11.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React11.createElement(
|
3141
3080
|
"div",
|
3142
3081
|
{
|
3143
3082
|
className: cn(
|
3144
|
-
"hawa-flex hawa-
|
3145
|
-
|
3146
|
-
)
|
3083
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3084
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3085
|
+
),
|
3086
|
+
key: i + 1
|
3147
3087
|
},
|
3148
|
-
|
3149
|
-
|
3150
|
-
"div",
|
3088
|
+
/* @__PURE__ */ React11.createElement(
|
3089
|
+
"input",
|
3151
3090
|
{
|
3091
|
+
disabled: opt.disabled,
|
3092
|
+
id: opt.value.toString(),
|
3093
|
+
type: "radio",
|
3094
|
+
value: opt.value,
|
3095
|
+
name,
|
3096
|
+
onChange: () => handleChange(opt)
|
3097
|
+
}
|
3098
|
+
),
|
3099
|
+
/* @__PURE__ */ React11.createElement(
|
3100
|
+
"label",
|
3101
|
+
{
|
3102
|
+
htmlFor: opt.value.toString(),
|
3152
3103
|
className: cn(
|
3153
|
-
"
|
3154
|
-
|
3155
|
-
)
|
3156
|
-
key: i + 1
|
3104
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3105
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3106
|
+
)
|
3157
3107
|
},
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
disabled: opt.disabled,
|
3162
|
-
id: opt.value.toString(),
|
3163
|
-
type: "radio",
|
3164
|
-
value: opt.value,
|
3165
|
-
name,
|
3166
|
-
onChange: () => handleChange(opt)
|
3167
|
-
}
|
3168
|
-
),
|
3169
|
-
/* @__PURE__ */ React11.createElement(
|
3170
|
-
"label",
|
3171
|
-
{
|
3172
|
-
htmlFor: opt.value.toString(),
|
3173
|
-
className: cn(
|
3174
|
-
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3175
|
-
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3176
|
-
)
|
3177
|
-
},
|
3178
|
-
opt.label
|
3179
|
-
)
|
3180
|
-
))),
|
3181
|
-
/* @__PURE__ */ React11.createElement(HelperText, { helperText: props.helperText })
|
3182
|
-
);
|
3108
|
+
opt.label
|
3109
|
+
)
|
3110
|
+
))), /* @__PURE__ */ React11.createElement(HelperText, { helperText: props.helperText }));
|
3183
3111
|
}
|
3184
3112
|
}
|
3185
3113
|
);
|
@@ -3207,15 +3135,7 @@ var Textarea = React12.forwardRef(
|
|
3207
3135
|
className
|
3208
3136
|
)
|
3209
3137
|
},
|
3210
|
-
/* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React12.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React12.createElement(
|
3211
|
-
"div",
|
3212
|
-
{
|
3213
|
-
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
3214
|
-
},
|
3215
|
-
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
3216
|
-
"/",
|
3217
|
-
textareaProps == null ? void 0 : textareaProps.maxLength
|
3218
|
-
)),
|
3138
|
+
/* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React12.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength)),
|
3219
3139
|
isLoading ? /* @__PURE__ */ React12.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React12.createElement(
|
3220
3140
|
"textarea",
|
3221
3141
|
{
|
@@ -3306,7 +3226,7 @@ export {
|
|
3306
3226
|
|
3307
3227
|
lucide-react/dist/esm/shared/src/utils.js:
|
3308
3228
|
(**
|
3309
|
-
* @license lucide-react v0.
|
3229
|
+
* @license lucide-react v0.435.0 - ISC
|
3310
3230
|
*
|
3311
3231
|
* This source code is licensed under the ISC license.
|
3312
3232
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3314,7 +3234,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
3314
3234
|
|
3315
3235
|
lucide-react/dist/esm/defaultAttributes.js:
|
3316
3236
|
(**
|
3317
|
-
* @license lucide-react v0.
|
3237
|
+
* @license lucide-react v0.435.0 - ISC
|
3318
3238
|
*
|
3319
3239
|
* This source code is licensed under the ISC license.
|
3320
3240
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3322,7 +3242,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
3322
3242
|
|
3323
3243
|
lucide-react/dist/esm/Icon.js:
|
3324
3244
|
(**
|
3325
|
-
* @license lucide-react v0.
|
3245
|
+
* @license lucide-react v0.435.0 - ISC
|
3326
3246
|
*
|
3327
3247
|
* This source code is licensed under the ISC license.
|
3328
3248
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3330,7 +3250,7 @@ lucide-react/dist/esm/Icon.js:
|
|
3330
3250
|
|
3331
3251
|
lucide-react/dist/esm/createLucideIcon.js:
|
3332
3252
|
(**
|
3333
|
-
* @license lucide-react v0.
|
3253
|
+
* @license lucide-react v0.435.0 - ISC
|
3334
3254
|
*
|
3335
3255
|
* This source code is licensed under the ISC license.
|
3336
3256
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3338,7 +3258,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
3338
3258
|
|
3339
3259
|
lucide-react/dist/esm/icons/dot.js:
|
3340
3260
|
(**
|
3341
|
-
* @license lucide-react v0.
|
3261
|
+
* @license lucide-react v0.435.0 - ISC
|
3342
3262
|
*
|
3343
3263
|
* This source code is licensed under the ISC license.
|
3344
3264
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -3346,7 +3266,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
3346
3266
|
|
3347
3267
|
lucide-react/dist/esm/lucide-react.js:
|
3348
3268
|
(**
|
3349
|
-
* @license lucide-react v0.
|
3269
|
+
* @license lucide-react v0.435.0 - ISC
|
3350
3270
|
*
|
3351
3271
|
* This source code is licensed under the ISC license.
|
3352
3272
|
* See the LICENSE file in the root directory of this source tree.
|