@sikka/hawa 0.24.4-next → 0.24.6-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.d.mts +1 -2
- package/dist/accordion/index.d.ts +1 -2
- package/dist/accordion/index.mjs +219 -7
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1325 -0
- package/dist/appLayout/index.mjs +1285 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +281 -0
- package/dist/appMenubar/index.mjs +224 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +92 -0
- package/dist/appTabs/index.mjs +50 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +483 -0
- package/dist/appTopbar/index.mjs +441 -0
- package/dist/avatar/index.d.mts +5 -4
- package/dist/avatar/index.d.ts +5 -4
- package/dist/backToTop/index.mjs +353 -3
- package/dist/badge/index.d.mts +2 -2
- package/dist/badge/index.d.ts +2 -2
- package/dist/blocks/index.js +4 -3
- package/dist/blocks/index.mjs +4 -3
- package/dist/checkbox/index.d.mts +1 -2
- package/dist/checkbox/index.d.ts +1 -2
- package/dist/chip/index.d.mts +36 -2
- package/dist/chip/index.d.ts +36 -2
- package/dist/chip/index.mjs +83 -3
- package/dist/chunk-62GI5F2P.mjs +442 -0
- package/dist/chunk-7NCNPRCL.mjs +120 -0
- package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
- package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
- package/dist/chunk-LRLLDOQZ.mjs +178 -0
- package/dist/chunk-ND4BWUKH.mjs +34 -0
- package/dist/codeBlock/index.mjs +684 -310
- package/dist/colorPicker/index.d.mts +2 -1
- package/dist/colorPicker/index.d.ts +2 -1
- package/dist/colorPicker/index.mjs +2 -167
- package/dist/combobox/index.d.mts +9 -1
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +61 -393
- package/dist/command/index.mjs +10 -425
- package/dist/commonTypes-3J1E3b61.d.mts +6 -0
- package/dist/commonTypes-3J1E3b61.d.ts +6 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +45 -0
- package/dist/copyrights/index.mjs +8 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +45 -0
- package/dist/count/index.mjs +8 -0
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +926 -0
- package/dist/docsLayout/index.mjs +886 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +111 -0
- package/dist/docsSidebar/index.mjs +69 -0
- package/dist/index.css +9 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -44
- package/dist/index.mjs +54 -44
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/input/index.mjs +14 -98
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/interfaceSettings/index.mjs +24 -110
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/index.mjs +2 -87
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +53 -44
- package/dist/layout/index.mjs +50 -41
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +27 -137
- package/dist/phoneInput/index.mjs +19 -129
- package/dist/radio/index.d.mts +1 -4
- package/dist/radio/index.d.ts +1 -4
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +341 -0
- package/dist/sidebar/index.mjs +298 -0
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.mjs +21 -45
- package/dist/skeleton/index.d.mts +3 -3
- package/dist/skeleton/index.d.ts +3 -3
- package/dist/skeleton/index.mjs +3 -29
- package/dist/sortButton/index.mjs +9 -260
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +10 -259
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +191 -0
- package/dist/stats/index.mjs +154 -0
- package/dist/stopPropagationWrapper/index.d.mts +2 -2
- package/dist/stopPropagationWrapper/index.d.ts +2 -2
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +19 -1
- package/dist/tabs/index.d.ts +19 -1
- package/dist/tabs/index.mjs +94 -14
- package/dist/textarea/index.d.mts +8 -1
- package/dist/textarea/index.d.ts +8 -1
- package/dist/textarea/index.mjs +92 -8
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Label-fkQ4ebuH.d.mts +0 -12
- package/dist/Label-fkQ4ebuH.d.ts +0 -12
- package/dist/chunk-72HYR6WB.mjs +0 -88
- package/dist/chunk-JYSC6GKM.mjs +0 -229
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-N7XOVCit.d.mts +0 -5
- package/dist/commonTypes-N7XOVCit.d.ts +0 -5
- package/dist/index-DUZFcPRO.d.mts +0 -38
- package/dist/index-DUZFcPRO.d.ts +0 -38
package/dist/combobox/index.mjs
CHANGED
@@ -1,432 +1,100 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
Command,
|
3
|
+
CommandEmpty,
|
4
|
+
CommandGroup,
|
5
|
+
CommandInput,
|
6
|
+
CommandItem,
|
5
7
|
cn
|
6
|
-
} from "../chunk-
|
8
|
+
} from "../chunk-62GI5F2P.mjs";
|
7
9
|
|
8
10
|
// components/elements/combobox/Combobox.tsx
|
9
11
|
import * as React5 from "react";
|
10
12
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
11
13
|
|
12
|
-
// components/elements/
|
14
|
+
// components/elements/label/Label.tsx
|
13
15
|
import * as React2 from "react";
|
14
|
-
import { Command as CommandPrimitive } from "cmdk";
|
15
16
|
|
16
|
-
// components/elements/
|
17
|
-
import
|
18
|
-
import * as
|
19
|
-
var
|
20
|
-
|
21
|
-
DialogPrimitive.Overlay,
|
17
|
+
// components/elements/tooltip/Tooltip.tsx
|
18
|
+
import React from "react";
|
19
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
20
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
21
|
+
TooltipPrimitive.Content,
|
22
22
|
{
|
23
23
|
ref,
|
24
|
+
sideOffset,
|
24
25
|
className: cn(
|
25
|
-
"hawa-
|
26
|
+
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
|
26
27
|
className
|
27
28
|
),
|
28
29
|
...props
|
29
30
|
}
|
30
31
|
));
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
},
|
39
|
-
ref,
|
40
|
-
className: cn(
|
41
|
-
"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-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",
|
42
|
-
className
|
43
|
-
),
|
44
|
-
...props
|
45
|
-
},
|
32
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
33
|
+
var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
34
|
+
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
35
|
+
var Tooltip = ({
|
36
|
+
side,
|
37
|
+
open,
|
38
|
+
content,
|
46
39
|
children,
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
)
|
54
|
-
},
|
55
|
-
/* @__PURE__ */ React.createElement(
|
56
|
-
"svg",
|
57
|
-
{
|
58
|
-
"aria-label": "Close Icon",
|
59
|
-
"aria-hidden": "true",
|
60
|
-
className: "hawa-h-5 hawa-w-5",
|
61
|
-
fill: "currentColor",
|
62
|
-
viewBox: "0 0 20 20"
|
63
|
-
},
|
64
|
-
/* @__PURE__ */ React.createElement(
|
65
|
-
"path",
|
66
|
-
{
|
67
|
-
fillRule: "evenodd",
|
68
|
-
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",
|
69
|
-
clipRule: "evenodd"
|
70
|
-
}
|
71
|
-
)
|
72
|
-
),
|
73
|
-
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
74
|
-
)
|
75
|
-
)));
|
76
|
-
var DialogCarouselContent = React.forwardRef(
|
77
|
-
({
|
78
|
-
className,
|
79
|
-
children,
|
80
|
-
onPrev,
|
81
|
-
persist,
|
82
|
-
hideCloseButton,
|
83
|
-
hidePrevButton,
|
84
|
-
...props
|
85
|
-
}, ref) => /* @__PURE__ */ React.createElement(DialogPortal, null, /* @__PURE__ */ React.createElement(DialogOverlay, null), /* @__PURE__ */ React.createElement(
|
86
|
-
DialogPrimitive.Content,
|
87
|
-
{
|
88
|
-
onPointerDownOutside: (e) => {
|
89
|
-
if (persist) {
|
90
|
-
e.preventDefault();
|
91
|
-
}
|
92
|
-
},
|
93
|
-
ref,
|
94
|
-
className: cn(
|
95
|
-
"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",
|
96
|
-
className
|
97
|
-
),
|
98
|
-
...props
|
99
|
-
},
|
100
|
-
children,
|
101
|
-
/* @__PURE__ */ React.createElement(
|
102
|
-
"div",
|
103
|
-
{
|
104
|
-
className: cn(
|
105
|
-
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
106
|
-
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
107
|
-
)
|
108
|
-
},
|
109
|
-
hidePrevButton ? /* @__PURE__ */ React.createElement("div", null) : /* @__PURE__ */ React.createElement(
|
110
|
-
"div",
|
111
|
-
{
|
112
|
-
onClick: onPrev,
|
113
|
-
className: cn(
|
114
|
-
"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",
|
115
|
-
props.dir === "rtl" && "hawa-rotate-180"
|
116
|
-
)
|
117
|
-
},
|
118
|
-
/* @__PURE__ */ React.createElement(
|
119
|
-
"svg",
|
120
|
-
{
|
121
|
-
xmlns: "http://www.w3.org/2000/svg",
|
122
|
-
width: "24",
|
123
|
-
height: "24",
|
124
|
-
viewBox: "0 0 24 24",
|
125
|
-
fill: "none",
|
126
|
-
className: "hawa-h-6 hawa-w-6",
|
127
|
-
stroke: "currentColor",
|
128
|
-
strokeWidth: "2",
|
129
|
-
strokeLinecap: "round",
|
130
|
-
strokeLinejoin: "round"
|
131
|
-
},
|
132
|
-
/* @__PURE__ */ React.createElement("path", { d: "m15 18-6-6 6-6" })
|
133
|
-
)
|
134
|
-
),
|
135
|
-
!hideCloseButton && /* @__PURE__ */ React.createElement(
|
136
|
-
DialogPrimitive.Close,
|
137
|
-
{
|
138
|
-
className: cn(
|
139
|
-
"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 ",
|
140
|
-
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
141
|
-
)
|
142
|
-
},
|
143
|
-
/* @__PURE__ */ React.createElement(
|
144
|
-
"svg",
|
145
|
-
{
|
146
|
-
"aria-label": "Close Icon",
|
147
|
-
"aria-hidden": "true",
|
148
|
-
className: "hawa-h-6 hawa-w-6",
|
149
|
-
fill: "currentColor",
|
150
|
-
viewBox: "0 0 20 20"
|
151
|
-
},
|
152
|
-
/* @__PURE__ */ React.createElement(
|
153
|
-
"path",
|
154
|
-
{
|
155
|
-
fillRule: "evenodd",
|
156
|
-
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",
|
157
|
-
clipRule: "evenodd"
|
158
|
-
}
|
159
|
-
)
|
160
|
-
),
|
161
|
-
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
162
|
-
)
|
163
|
-
)
|
164
|
-
))
|
165
|
-
);
|
166
|
-
var DialogHeader = ({
|
167
|
-
className,
|
40
|
+
defaultOpen,
|
41
|
+
onOpenChange,
|
42
|
+
triggerProps,
|
43
|
+
contentProps,
|
44
|
+
providerProps,
|
45
|
+
delayDuration = 300,
|
168
46
|
...props
|
169
|
-
}) => /* @__PURE__ */ React.createElement(
|
170
|
-
"div",
|
171
|
-
{
|
172
|
-
className: cn(
|
173
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
|
174
|
-
className
|
175
|
-
),
|
176
|
-
...props
|
177
|
-
}
|
178
|
-
);
|
179
|
-
var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
180
|
-
DialogPrimitive.Title,
|
181
|
-
{
|
182
|
-
ref,
|
183
|
-
className: cn(
|
184
|
-
"hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
|
185
|
-
className
|
186
|
-
),
|
187
|
-
...props
|
188
|
-
}
|
189
|
-
));
|
190
|
-
var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
191
|
-
DialogPrimitive.Description,
|
192
|
-
{
|
193
|
-
ref,
|
194
|
-
className: cn(
|
195
|
-
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
196
|
-
className
|
197
|
-
),
|
198
|
-
...props
|
199
|
-
}
|
200
|
-
));
|
201
|
-
var DialogFooter = ({
|
202
|
-
className,
|
203
|
-
...props
|
204
|
-
}) => /* @__PURE__ */ React.createElement(
|
205
|
-
"div",
|
206
|
-
{
|
207
|
-
className: cn(
|
208
|
-
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
|
209
|
-
className
|
210
|
-
),
|
211
|
-
...props
|
212
|
-
}
|
213
|
-
);
|
214
|
-
var DialogCarousel = ({
|
215
|
-
stepsApi,
|
216
|
-
stepsRef,
|
217
|
-
children,
|
218
|
-
direction
|
219
|
-
}) => {
|
220
|
-
React.useEffect(() => {
|
221
|
-
if (stepsApi) {
|
222
|
-
stepsApi.reInit();
|
223
|
-
}
|
224
|
-
}, [stepsApi, children]);
|
225
|
-
return /* @__PURE__ */ React.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React.createElement(
|
226
|
-
"div",
|
227
|
-
{
|
228
|
-
className: "hawa-flex",
|
229
|
-
style: {
|
230
|
-
transition: "height 0.2s"
|
231
|
-
}
|
232
|
-
},
|
233
|
-
React.Children.map(children, (child, index) => /* @__PURE__ */ React.createElement(
|
234
|
-
"div",
|
235
|
-
{
|
236
|
-
className: cn(
|
237
|
-
"hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
238
|
-
),
|
239
|
-
key: index
|
240
|
-
},
|
241
|
-
child
|
242
|
-
))
|
243
|
-
)));
|
244
|
-
};
|
245
|
-
var DialogSteps = ({
|
246
|
-
currentStep,
|
247
|
-
visibleStepRef,
|
248
|
-
children
|
249
47
|
}) => {
|
250
|
-
const [dialogHeight, setDialogHeight] = React.useState(null);
|
251
|
-
React.useEffect(() => {
|
252
|
-
if (visibleStepRef.current) {
|
253
|
-
setDialogHeight(visibleStepRef.current.offsetHeight);
|
254
|
-
console.log("height is ", visibleStepRef.current.offsetHeight);
|
255
|
-
}
|
256
|
-
}, [currentStep, visibleStepRef]);
|
257
48
|
return /* @__PURE__ */ React.createElement(
|
258
|
-
|
49
|
+
TooltipPrimitive.TooltipProvider,
|
259
50
|
{
|
260
|
-
|
261
|
-
|
262
|
-
height: dialogHeight || "fit-content",
|
263
|
-
transition: "height 0.2s"
|
264
|
-
}
|
51
|
+
delayDuration,
|
52
|
+
...providerProps
|
265
53
|
},
|
266
|
-
|
267
|
-
|
54
|
+
/* @__PURE__ */ React.createElement(
|
55
|
+
TooltipPrimitive.Root,
|
268
56
|
{
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
57
|
+
open,
|
58
|
+
defaultOpen,
|
59
|
+
onOpenChange,
|
60
|
+
...props
|
273
61
|
},
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
};
|
278
|
-
var DialogStep = ({
|
279
|
-
id,
|
280
|
-
children,
|
281
|
-
className,
|
282
|
-
stepRef
|
283
|
-
}) => {
|
284
|
-
return /* @__PURE__ */ React.createElement(
|
285
|
-
"div",
|
286
|
-
{
|
287
|
-
id,
|
288
|
-
ref: stepRef,
|
289
|
-
className: cn("hawa-w-full hawa-px-1", className)
|
290
|
-
},
|
291
|
-
children
|
62
|
+
/* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
63
|
+
/* @__PURE__ */ React.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
|
64
|
+
)
|
292
65
|
);
|
293
66
|
};
|
294
|
-
var DialogBody = ({ children, className }) => {
|
295
|
-
return /* @__PURE__ */ React.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
296
|
-
};
|
297
|
-
DialogBody.displayName = "DialogBody";
|
298
|
-
DialogStep.displayName = "DialogStep";
|
299
|
-
DialogSteps.displayName = "DialogSteps";
|
300
|
-
DialogCarousel.displayName = "DialogCarousel";
|
301
|
-
DialogCarouselContent.displayName = "DialogCarouselContent";
|
302
|
-
DialogHeader.displayName = "DialogHeader";
|
303
|
-
DialogFooter.displayName = "DialogFooter";
|
304
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
305
|
-
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
306
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
307
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
308
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
309
67
|
|
310
|
-
// components/elements/
|
311
|
-
var
|
312
|
-
|
68
|
+
// components/elements/label/Label.tsx
|
69
|
+
var Label = React2.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React2.createElement(
|
70
|
+
"label",
|
313
71
|
{
|
314
72
|
ref,
|
315
73
|
className: cn(
|
316
|
-
"hawa-
|
74
|
+
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
317
75
|
className
|
318
76
|
),
|
319
77
|
...props
|
320
|
-
}
|
321
|
-
));
|
322
|
-
Command.displayName = CommandPrimitive.displayName;
|
323
|
-
var CommandInput = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
324
|
-
"div",
|
325
|
-
{
|
326
|
-
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
327
|
-
"cmdk-input-wrapper": ""
|
328
78
|
},
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
xmlns: "http://www.w3.org/2000/svg",
|
334
|
-
width: "24",
|
335
|
-
height: "24",
|
336
|
-
viewBox: "0 0 24 24",
|
337
|
-
fill: "none",
|
338
|
-
stroke: "currentColor",
|
339
|
-
strokeWidth: "2",
|
340
|
-
strokeLinecap: "round",
|
341
|
-
strokeLinejoin: "round",
|
342
|
-
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
343
|
-
},
|
344
|
-
/* @__PURE__ */ React2.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
345
|
-
/* @__PURE__ */ React2.createElement("path", { d: "m21 21-4.3-4.3" })
|
346
|
-
),
|
347
|
-
/* @__PURE__ */ React2.createElement(
|
348
|
-
CommandPrimitive.Input,
|
349
|
-
{
|
350
|
-
ref,
|
351
|
-
className: cn(
|
352
|
-
"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",
|
353
|
-
className
|
354
|
-
),
|
355
|
-
...props
|
356
|
-
}
|
357
|
-
)
|
358
|
-
));
|
359
|
-
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
360
|
-
var CommandList = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
361
|
-
CommandPrimitive.List,
|
362
|
-
{
|
363
|
-
ref,
|
364
|
-
className: cn(
|
365
|
-
"hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
|
366
|
-
className
|
367
|
-
),
|
368
|
-
...props
|
369
|
-
}
|
370
|
-
));
|
371
|
-
CommandList.displayName = CommandPrimitive.List.displayName;
|
372
|
-
var CommandEmpty = React2.forwardRef((props, ref) => /* @__PURE__ */ React2.createElement(
|
373
|
-
CommandPrimitive.Empty,
|
374
|
-
{
|
375
|
-
ref,
|
376
|
-
className: "hawa-py-6 hawa-text-center hawa-text-sm",
|
377
|
-
...props
|
378
|
-
}
|
379
|
-
));
|
380
|
-
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
381
|
-
var CommandGroup = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
382
|
-
CommandPrimitive.Group,
|
383
|
-
{
|
384
|
-
ref,
|
385
|
-
className: cn(
|
386
|
-
"hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground",
|
387
|
-
className
|
388
|
-
),
|
389
|
-
...props
|
390
|
-
}
|
391
|
-
));
|
392
|
-
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
393
|
-
var CommandSeparator = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
394
|
-
CommandPrimitive.Separator,
|
395
|
-
{
|
396
|
-
ref,
|
397
|
-
className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
|
398
|
-
...props
|
399
|
-
}
|
400
|
-
));
|
401
|
-
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
402
|
-
var CommandItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
403
|
-
CommandPrimitive.Item,
|
79
|
+
children,
|
80
|
+
required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
81
|
+
), hint && /* @__PURE__ */ React2.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React2.createElement(
|
82
|
+
"svg",
|
404
83
|
{
|
405
|
-
|
406
|
-
className:
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
"span",
|
420
|
-
{
|
421
|
-
className: cn(
|
422
|
-
"hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
|
423
|
-
className
|
424
|
-
),
|
425
|
-
...props
|
426
|
-
}
|
427
|
-
);
|
428
|
-
};
|
429
|
-
CommandShortcut.displayName = "CommandShortcut";
|
84
|
+
xmlns: "http://www.w3.org/2000/svg",
|
85
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
86
|
+
viewBox: "0 0 24 24",
|
87
|
+
fill: "none",
|
88
|
+
stroke: "currentColor",
|
89
|
+
strokeWidth: "2",
|
90
|
+
strokeLinecap: "round",
|
91
|
+
strokeLinejoin: "round"
|
92
|
+
},
|
93
|
+
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
94
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
95
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
|
96
|
+
))));
|
97
|
+
Label.displayName = "Label";
|
430
98
|
|
431
99
|
// components/elements/popover/Popover.tsx
|
432
100
|
import * as React3 from "react";
|