@sikka/hawa 0.48.1-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.js +202 -468
- package/dist/blocks/auth/index.mjs +96 -280
- package/dist/blocks/feedback/index.js +214 -375
- package/dist/blocks/feedback/index.mjs +12 -25
- package/dist/blocks/index.js +604 -1122
- package/dist/blocks/index.mjs +132 -291
- 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 -2
- package/dist/index.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +1194 -2170
- package/dist/index.mjs +1195 -2174
- 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
package/dist/combobox/index.js
CHANGED
@@ -67,23 +67,7 @@ var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
67
67
|
}
|
68
68
|
));
|
69
69
|
var DialogContent = React.forwardRef(
|
70
|
-
({
|
71
|
-
ids,
|
72
|
-
className,
|
73
|
-
classNames,
|
74
|
-
children,
|
75
|
-
persist,
|
76
|
-
hideCloseButton,
|
77
|
-
overlayProps,
|
78
|
-
...props
|
79
|
-
}, ref) => /* @__PURE__ */ React.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React.createElement(
|
80
|
-
DialogOverlay,
|
81
|
-
{
|
82
|
-
className: classNames == null ? void 0 : classNames.overlay,
|
83
|
-
id: ids == null ? void 0 : ids.overlay,
|
84
|
-
...overlayProps
|
85
|
-
}
|
86
|
-
), /* @__PURE__ */ React.createElement(
|
70
|
+
({ ids, className, classNames, children, persist, hideCloseButton, overlayProps, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay, ...overlayProps }), /* @__PURE__ */ React.createElement(
|
87
71
|
DialogPrimitive.Content,
|
88
72
|
{
|
89
73
|
onPointerDownOutside: (e) => {
|
@@ -132,100 +116,87 @@ var DialogContent = React.forwardRef(
|
|
132
116
|
)
|
133
117
|
))
|
134
118
|
);
|
135
|
-
var DialogCarouselContent = React.forwardRef(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
119
|
+
var DialogCarouselContent = React.forwardRef(({ className, children, onPrev, persist, hideCloseButton, hidePrevButton, ...props }, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
120
|
+
DialogPrimitive.Content,
|
121
|
+
{
|
122
|
+
onPointerDownOutside: (e) => {
|
123
|
+
if (persist) {
|
124
|
+
e.preventDefault();
|
125
|
+
}
|
126
|
+
},
|
127
|
+
ref,
|
128
|
+
className: cn(
|
129
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 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-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
|
130
|
+
className
|
131
|
+
),
|
143
132
|
...props
|
144
|
-
},
|
145
|
-
|
133
|
+
},
|
134
|
+
children,
|
135
|
+
/* @__PURE__ */ React.createElement(
|
136
|
+
"div",
|
146
137
|
{
|
147
|
-
onPointerDownOutside: (e) => {
|
148
|
-
if (persist) {
|
149
|
-
e.preventDefault();
|
150
|
-
}
|
151
|
-
},
|
152
|
-
ref,
|
153
138
|
className: cn(
|
154
|
-
"hawa-
|
155
|
-
|
156
|
-
)
|
157
|
-
...props
|
139
|
+
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
140
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
141
|
+
)
|
158
142
|
},
|
159
|
-
|
160
|
-
/* @__PURE__ */ React.createElement(
|
143
|
+
hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
|
161
144
|
"div",
|
162
145
|
{
|
146
|
+
onClick: onPrev,
|
163
147
|
className: cn(
|
164
|
-
"hawa-
|
165
|
-
|
148
|
+
"hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
149
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
166
150
|
)
|
167
151
|
},
|
168
|
-
|
169
|
-
"
|
152
|
+
/* @__PURE__ */ React.createElement(
|
153
|
+
"svg",
|
170
154
|
{
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
155
|
+
xmlns: "http://www.w3.org/2000/svg",
|
156
|
+
width: "24",
|
157
|
+
height: "24",
|
158
|
+
viewBox: "0 0 24 24",
|
159
|
+
fill: "none",
|
160
|
+
className: "hawa-h-6 hawa-w-6",
|
161
|
+
stroke: "currentColor",
|
162
|
+
strokeWidth: "2",
|
163
|
+
strokeLinecap: "round",
|
164
|
+
strokeLinejoin: "round"
|
176
165
|
},
|
177
|
-
/* @__PURE__ */ React.createElement(
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
stroke: "currentColor",
|
187
|
-
strokeWidth: "2",
|
188
|
-
strokeLinecap: "round",
|
189
|
-
strokeLinejoin: "round"
|
190
|
-
},
|
191
|
-
/* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
|
166
|
+
/* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
|
167
|
+
)
|
168
|
+
),
|
169
|
+
!hideCloseButton && /* @__PURE__ */ React.createElement(
|
170
|
+
DialogPrimitive.Close,
|
171
|
+
{
|
172
|
+
className: cn(
|
173
|
+
"hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
174
|
+
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
|
192
175
|
)
|
193
|
-
|
194
|
-
|
195
|
-
|
176
|
+
},
|
177
|
+
/* @__PURE__ */ React.createElement(
|
178
|
+
"svg",
|
196
179
|
{
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
180
|
+
"aria-label": "Close Icon",
|
181
|
+
"aria-hidden": "true",
|
182
|
+
className: "hawa-h-6 hawa-w-6",
|
183
|
+
fill: "currentColor",
|
184
|
+
viewBox: "0 0 20 20"
|
201
185
|
},
|
202
186
|
/* @__PURE__ */ React.createElement(
|
203
|
-
"
|
187
|
+
"path",
|
204
188
|
{
|
205
|
-
|
206
|
-
"
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
"path",
|
213
|
-
{
|
214
|
-
fillRule: "evenodd",
|
215
|
-
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
216
|
-
clipRule: "evenodd"
|
217
|
-
}
|
218
|
-
)
|
219
|
-
),
|
220
|
-
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
221
|
-
)
|
189
|
+
fillRule: "evenodd",
|
190
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
191
|
+
clipRule: "evenodd"
|
192
|
+
}
|
193
|
+
)
|
194
|
+
),
|
195
|
+
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
222
196
|
)
|
223
|
-
)
|
224
|
-
);
|
225
|
-
var DialogHeader = ({
|
226
|
-
className,
|
227
|
-
...props
|
228
|
-
}) => /* @__PURE__ */ React.createElement(
|
197
|
+
)
|
198
|
+
)));
|
199
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
|
229
200
|
"div",
|
230
201
|
{
|
231
202
|
className: cn(
|
@@ -250,17 +221,11 @@ var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
250
221
|
DialogPrimitive.Description,
|
251
222
|
{
|
252
223
|
ref,
|
253
|
-
className: cn(
|
254
|
-
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
255
|
-
className
|
256
|
-
),
|
224
|
+
className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
|
257
225
|
...props
|
258
226
|
}
|
259
227
|
));
|
260
|
-
var DialogFooter = ({
|
261
|
-
className,
|
262
|
-
...props
|
263
|
-
}) => /* @__PURE__ */ React.createElement(
|
228
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React.createElement(
|
264
229
|
"div",
|
265
230
|
{
|
266
231
|
className: cn(
|
@@ -301,11 +266,7 @@ var DialogCarousel = ({
|
|
301
266
|
))
|
302
267
|
)));
|
303
268
|
};
|
304
|
-
var DialogSteps = ({
|
305
|
-
currentStep,
|
306
|
-
visibleStepRef,
|
307
|
-
children
|
308
|
-
}) => {
|
269
|
+
var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
|
309
270
|
const [dialogHeight, setDialogHeight] = React.useState(null);
|
310
271
|
React.useEffect(() => {
|
311
272
|
if (visibleStepRef.current) {
|
@@ -334,21 +295,8 @@ var DialogSteps = ({
|
|
334
295
|
))
|
335
296
|
);
|
336
297
|
};
|
337
|
-
var DialogStep = ({
|
338
|
-
id,
|
339
|
-
children,
|
340
|
-
className,
|
341
|
-
stepRef
|
342
|
-
}) => {
|
343
|
-
return /* @__PURE__ */ React.createElement(
|
344
|
-
"div",
|
345
|
-
{
|
346
|
-
id,
|
347
|
-
ref: stepRef,
|
348
|
-
className: cn("hawa-w-full hawa-px-1", className)
|
349
|
-
},
|
350
|
-
children
|
351
|
-
);
|
298
|
+
var DialogStep = ({ id, children, className, stepRef }) => {
|
299
|
+
return /* @__PURE__ */ React.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
|
352
300
|
};
|
353
301
|
var DialogBody = ({ children, className }) => {
|
354
302
|
return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
@@ -367,63 +315,54 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
367
315
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
368
316
|
|
369
317
|
// elements/command/Command.tsx
|
370
|
-
var Command = React2.forwardRef(
|
371
|
-
|
372
|
-
|
373
|
-
ref,
|
374
|
-
className: cn(
|
375
|
-
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
376
|
-
className
|
377
|
-
),
|
378
|
-
...props
|
379
|
-
}
|
380
|
-
));
|
381
|
-
var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
382
|
-
"div",
|
383
|
-
{
|
384
|
-
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
385
|
-
"cmdk-input-wrapper": ""
|
386
|
-
},
|
387
|
-
/* @__PURE__ */ React2.createElement(
|
388
|
-
"svg",
|
389
|
-
{
|
390
|
-
"aria-label": "Search Icon",
|
391
|
-
xmlns: "http://www.w3.org/2000/svg",
|
392
|
-
width: "24",
|
393
|
-
height: "24",
|
394
|
-
viewBox: "0 0 24 24",
|
395
|
-
fill: "none",
|
396
|
-
stroke: "currentColor",
|
397
|
-
strokeWidth: "2",
|
398
|
-
strokeLinecap: "round",
|
399
|
-
strokeLinejoin: "round",
|
400
|
-
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
401
|
-
},
|
402
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
403
|
-
/* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
|
404
|
-
),
|
405
|
-
/* @__PURE__ */ React2.createElement(
|
406
|
-
import_cmdk.Command.Input,
|
318
|
+
var Command = React2.forwardRef(
|
319
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
320
|
+
import_cmdk.Command,
|
407
321
|
{
|
408
322
|
ref,
|
409
323
|
className: cn(
|
410
|
-
"hawa-flex hawa-h-
|
324
|
+
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
411
325
|
className
|
412
326
|
),
|
413
327
|
...props
|
414
328
|
}
|
415
329
|
)
|
416
|
-
)
|
417
|
-
var
|
418
|
-
|
330
|
+
);
|
331
|
+
var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React2.createElement(
|
332
|
+
"svg",
|
333
|
+
{
|
334
|
+
"aria-label": "Search Icon",
|
335
|
+
xmlns: "http://www.w3.org/2000/svg",
|
336
|
+
width: "24",
|
337
|
+
height: "24",
|
338
|
+
viewBox: "0 0 24 24",
|
339
|
+
fill: "none",
|
340
|
+
stroke: "currentColor",
|
341
|
+
strokeWidth: "2",
|
342
|
+
strokeLinecap: "round",
|
343
|
+
strokeLinejoin: "round",
|
344
|
+
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
345
|
+
},
|
346
|
+
/* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
347
|
+
/* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
|
348
|
+
), /* @__PURE__ */ React2.createElement(
|
349
|
+
import_cmdk.Command.Input,
|
419
350
|
{
|
420
351
|
ref,
|
421
352
|
className: cn(
|
422
|
-
"hawa-
|
353
|
+
"hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
423
354
|
className
|
424
355
|
),
|
425
356
|
...props
|
426
357
|
}
|
358
|
+
)));
|
359
|
+
var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
360
|
+
import_cmdk.Command.List,
|
361
|
+
{
|
362
|
+
ref,
|
363
|
+
className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
|
364
|
+
...props
|
365
|
+
}
|
427
366
|
));
|
428
367
|
var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
|
429
368
|
import_cmdk.Command.Empty,
|
@@ -490,9 +429,7 @@ CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
490
429
|
|
491
430
|
// elements/helperText/HelperText.tsx
|
492
431
|
var import_react = __toESM(require("react"));
|
493
|
-
var HelperText = ({
|
494
|
-
helperText
|
495
|
-
}) => /* @__PURE__ */ import_react.default.createElement(
|
432
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react.default.createElement(
|
496
433
|
"p",
|
497
434
|
{
|
498
435
|
className: cn(
|
@@ -543,38 +480,31 @@ var Tooltip = ({
|
|
543
480
|
delayDuration = 300,
|
544
481
|
...props
|
545
482
|
}) => {
|
546
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
547
|
-
TooltipPrimitive.
|
483
|
+
return /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react2.default.createElement(
|
484
|
+
TooltipPrimitive.Root,
|
548
485
|
{
|
549
|
-
|
550
|
-
|
486
|
+
open: !disabled && open,
|
487
|
+
defaultOpen,
|
488
|
+
onOpenChange,
|
489
|
+
...props
|
551
490
|
},
|
491
|
+
/* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
552
492
|
/* @__PURE__ */ import_react2.default.createElement(
|
553
|
-
|
493
|
+
TooltipContent,
|
554
494
|
{
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
...
|
495
|
+
size,
|
496
|
+
side,
|
497
|
+
align: "center",
|
498
|
+
...contentProps,
|
499
|
+
style: {
|
500
|
+
...contentProps == null ? void 0 : contentProps.style,
|
501
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
502
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
503
|
+
}
|
559
504
|
},
|
560
|
-
|
561
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
562
|
-
TooltipContent,
|
563
|
-
{
|
564
|
-
size,
|
565
|
-
side,
|
566
|
-
align: "center",
|
567
|
-
...contentProps,
|
568
|
-
style: {
|
569
|
-
...contentProps == null ? void 0 : contentProps.style,
|
570
|
-
maxWidth: "var(--radix-tooltip-content-available-width)",
|
571
|
-
maxHeight: "var(--radix-tooltip-content-available-height)"
|
572
|
-
}
|
573
|
-
},
|
574
|
-
content
|
575
|
-
)
|
505
|
+
content
|
576
506
|
)
|
577
|
-
);
|
507
|
+
));
|
578
508
|
};
|
579
509
|
|
580
510
|
// elements/label/Label.tsx
|
@@ -622,21 +552,19 @@ Label.displayName = "Label";
|
|
622
552
|
// elements/popover/Popover.tsx
|
623
553
|
var React6 = __toESM(require("react"));
|
624
554
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
625
|
-
var PopoverContent = React6.forwardRef(
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
))
|
639
|
-
);
|
555
|
+
var PopoverContent = React6.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React6.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React6.createElement(
|
556
|
+
PopoverPrimitive.Content,
|
557
|
+
{
|
558
|
+
ref,
|
559
|
+
align,
|
560
|
+
sideOffset,
|
561
|
+
className: cn(
|
562
|
+
"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",
|
563
|
+
className
|
564
|
+
),
|
565
|
+
...props
|
566
|
+
}
|
567
|
+
)));
|
640
568
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
641
569
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
642
570
|
|
@@ -708,9 +636,7 @@ var Combobox = React8.forwardRef(
|
|
708
636
|
setOpen(open2);
|
709
637
|
}
|
710
638
|
};
|
711
|
-
const selectedItem = data.find(
|
712
|
-
(item) => getProperty(item, valueKey) === value
|
713
|
-
);
|
639
|
+
const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
|
714
640
|
return /* @__PURE__ */ React8.createElement(
|
715
641
|
"div",
|
716
642
|
{
|
@@ -771,8 +697,7 @@ var Combobox = React8.forwardRef(
|
|
771
697
|
Command,
|
772
698
|
{
|
773
699
|
filter: (value2, search) => {
|
774
|
-
if (value2.toLowerCase().includes(search.toLowerCase()))
|
775
|
-
return 1;
|
700
|
+
if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
|
776
701
|
return 0;
|
777
702
|
}
|
778
703
|
},
|
@@ -788,10 +713,7 @@ var Combobox = React8.forwardRef(
|
|
788
713
|
/* @__PURE__ */ React8.createElement(CommandList, null, /* @__PURE__ */ React8.createElement(
|
789
714
|
CommandGroup,
|
790
715
|
{
|
791
|
-
className: cn(
|
792
|
-
"hawa-max-h-[200px]",
|
793
|
-
data.length > 0 && "hawa-overflow-y-auto"
|
794
|
-
)
|
716
|
+
className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
|
795
717
|
},
|
796
718
|
data.map((item, i) => /* @__PURE__ */ React8.createElement(
|
797
719
|
CommandItem,
|
@@ -799,13 +721,9 @@ var Combobox = React8.forwardRef(
|
|
799
721
|
key: i,
|
800
722
|
onSelect: () => {
|
801
723
|
const newValue = getProperty(item, valueKey);
|
802
|
-
setValue(
|
803
|
-
newValue === value ? "" : newValue
|
804
|
-
);
|
724
|
+
setValue(newValue === value ? "" : newValue);
|
805
725
|
if (props.onChange) {
|
806
|
-
props.onChange(
|
807
|
-
newValue === value ? "" : newValue
|
808
|
-
);
|
726
|
+
props.onChange(newValue === value ? "" : newValue);
|
809
727
|
}
|
810
728
|
setOpen(false);
|
811
729
|
}
|