@sikka/hawa 0.32.2-next → 0.33.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/{Chip-BT2hUlGJ.d.mts → Chip-BtgTAs8x.d.mts} +1 -1
- package/dist/{Chip-Dt7zJ-jZ.d.ts → Chip-DQsP5hFS.d.ts} +1 -1
- package/dist/Label-UbMDLtJF.d.mts +14 -0
- package/dist/Label-UbMDLtJF.d.ts +14 -0
- package/dist/alert/index.js +151 -34
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +148 -31
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +191 -145
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +226 -180
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +147 -30
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +142 -25
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +230 -229
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +147 -148
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +230 -229
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +155 -154
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +174 -173
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +3 -2
- package/dist/button/index.d.ts +3 -2
- package/dist/button/index.js +138 -21
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +138 -21
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.d.mts +15 -0
- package/dist/calendar/index.d.ts +15 -0
- package/dist/calendar/index.js +545 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/index.mjs +509 -0
- package/dist/calendar/index.mjs.map +1 -0
- package/dist/{chunk-WFPAI2QC.mjs → chunk-3HJ3JXPA.mjs} +130 -174
- package/dist/{chunk-XRUPXLOK.mjs → chunk-AW5FW5TY.mjs} +1 -1
- package/dist/{chunk-MQWYXMSK.mjs → chunk-CKLK3G32.mjs} +242 -197
- package/dist/{chunk-XZLXGXIA.mjs → chunk-E3WWI4I5.mjs} +1 -1
- package/dist/{chunk-WUMWQIAW.mjs → chunk-FRYGQYUO.mjs} +1 -1
- package/dist/{chunk-S6TZHTWS.mjs → chunk-GEB3LM5A.mjs} +1 -1
- package/dist/{chunk-2QAGLSHC.mjs → chunk-IQEBXGLM.mjs} +1 -1
- package/dist/{chunk-PA3Z7W32.mjs → chunk-OS2UOK5C.mjs} +147 -146
- package/dist/{chunk-3S44N7SB.mjs → chunk-RTGD7N7I.mjs} +1 -1
- package/dist/{chunk-WAVKQ44V.mjs → chunk-UBNCETCU.mjs} +1 -1
- package/dist/codeBlock/index.js +138 -92
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +157 -111
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/commonTypes-CgDwjGvU.d.mts +5 -0
- package/dist/commonTypes-CgDwjGvU.d.ts +5 -0
- package/dist/commonTypes-DZdITB5m.d.mts +4 -0
- package/dist/commonTypes-DZdITB5m.d.ts +4 -0
- package/dist/dataTable/index.d.mts +2 -1
- package/dist/dataTable/index.d.ts +2 -1
- package/dist/dataTable/index.js +177 -174
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +177 -174
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +20 -0
- package/dist/datePicker/index.d.ts +20 -0
- package/dist/datePicker/index.js +630 -0
- package/dist/datePicker/index.js.map +1 -0
- package/dist/datePicker/index.mjs +593 -0
- package/dist/datePicker/index.mjs.map +1 -0
- 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.js +231 -114
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +222 -105
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -6
- package/dist/dropdownMenu/index.d.ts +1 -6
- package/dist/elements/index.d.mts +9 -8
- package/dist/elements/index.d.ts +9 -8
- package/dist/elements/index.js +54 -51
- package/dist/elements/index.mjs +7 -5
- package/dist/fileDropzone/index.js +184 -67
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +176 -59
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +83 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -51
- package/dist/index.mjs +74 -71
- package/dist/input/index.d.mts +1 -2
- package/dist/input/index.d.ts +1 -2
- package/dist/label/index.d.mts +2 -1
- package/dist/label/index.d.ts +2 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +204 -158
- package/dist/layout/index.mjs +2 -2
- package/dist/phoneInput/index.d.mts +1 -2
- package/dist/phoneInput/index.d.ts +1 -2
- package/dist/progress/index.d.mts +1 -8
- package/dist/progress/index.d.ts +1 -8
- package/dist/radio/index.d.mts +1 -9
- package/dist/radio/index.d.ts +1 -9
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +2 -1
- package/dist/signature/index.d.ts +2 -1
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sortButton/index.js +145 -28
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +145 -28
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -2
- package/dist/splitButton/index.d.ts +3 -2
- package/dist/splitButton/index.js +145 -28
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +145 -28
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/package.json +3 -1
- package/dist/commonTypes-CMqMLkhN.d.mts +0 -4
- package/dist/commonTypes-CMqMLkhN.d.ts +0 -4
- package/dist/commonTypes-D_7LV7Ri.d.mts +0 -5
- package/dist/commonTypes-D_7LV7Ri.d.ts +0 -5
@@ -0,0 +1,509 @@
|
|
1
|
+
"use client";
|
2
|
+
|
3
|
+
// elements/calendar/Calendar.tsx
|
4
|
+
import * as React5 from "react";
|
5
|
+
import { DayPicker } from "react-day-picker";
|
6
|
+
|
7
|
+
// util/index.ts
|
8
|
+
import { clsx } from "clsx";
|
9
|
+
import { twMerge } from "tailwind-merge";
|
10
|
+
function cn(...inputs) {
|
11
|
+
return twMerge(clsx(inputs));
|
12
|
+
}
|
13
|
+
|
14
|
+
// elements/button/Button.tsx
|
15
|
+
import * as React4 from "react";
|
16
|
+
import { cva } from "class-variance-authority";
|
17
|
+
|
18
|
+
// elements/label/Label.tsx
|
19
|
+
import * as React2 from "react";
|
20
|
+
|
21
|
+
// elements/tooltip/Tooltip.tsx
|
22
|
+
import React from "react";
|
23
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
24
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
25
|
+
TooltipPrimitive.Content,
|
26
|
+
{
|
27
|
+
ref,
|
28
|
+
sideOffset,
|
29
|
+
className: cn(
|
30
|
+
"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",
|
31
|
+
{
|
32
|
+
"hawa-text-xs": size === "small",
|
33
|
+
"hawa-text-xl": size === "large"
|
34
|
+
},
|
35
|
+
className
|
36
|
+
),
|
37
|
+
...props
|
38
|
+
}
|
39
|
+
));
|
40
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
41
|
+
var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
42
|
+
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
43
|
+
var Tooltip = ({
|
44
|
+
side,
|
45
|
+
size,
|
46
|
+
open,
|
47
|
+
content,
|
48
|
+
children,
|
49
|
+
disabled,
|
50
|
+
defaultOpen,
|
51
|
+
onOpenChange,
|
52
|
+
triggerProps,
|
53
|
+
contentProps,
|
54
|
+
providerProps,
|
55
|
+
delayDuration = 300,
|
56
|
+
...props
|
57
|
+
}) => {
|
58
|
+
return /* @__PURE__ */ React.createElement(
|
59
|
+
TooltipPrimitive.TooltipProvider,
|
60
|
+
{
|
61
|
+
delayDuration,
|
62
|
+
...providerProps
|
63
|
+
},
|
64
|
+
/* @__PURE__ */ React.createElement(
|
65
|
+
TooltipPrimitive.Root,
|
66
|
+
{
|
67
|
+
open: !disabled && open,
|
68
|
+
defaultOpen,
|
69
|
+
onOpenChange,
|
70
|
+
...props
|
71
|
+
},
|
72
|
+
/* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
73
|
+
/* @__PURE__ */ React.createElement(
|
74
|
+
TooltipContent,
|
75
|
+
{
|
76
|
+
size,
|
77
|
+
side,
|
78
|
+
align: "center",
|
79
|
+
...contentProps,
|
80
|
+
style: {
|
81
|
+
...contentProps == null ? void 0 : contentProps.style,
|
82
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
83
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
84
|
+
}
|
85
|
+
},
|
86
|
+
content
|
87
|
+
)
|
88
|
+
)
|
89
|
+
);
|
90
|
+
};
|
91
|
+
|
92
|
+
// elements/label/Label.tsx
|
93
|
+
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(
|
94
|
+
"label",
|
95
|
+
{
|
96
|
+
ref,
|
97
|
+
className: cn(
|
98
|
+
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
99
|
+
className
|
100
|
+
),
|
101
|
+
...props
|
102
|
+
},
|
103
|
+
children,
|
104
|
+
required && /* @__PURE__ */ React2.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
105
|
+
), hint && /* @__PURE__ */ React2.createElement(
|
106
|
+
Tooltip,
|
107
|
+
{
|
108
|
+
content: hint,
|
109
|
+
side: hintSide,
|
110
|
+
triggerProps: {
|
111
|
+
tabIndex: -1,
|
112
|
+
onClick: (event) => event.preventDefault()
|
113
|
+
}
|
114
|
+
},
|
115
|
+
/* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(
|
116
|
+
"svg",
|
117
|
+
{
|
118
|
+
xmlns: "http://www.w3.org/2000/svg",
|
119
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
120
|
+
viewBox: "0 0 24 24",
|
121
|
+
fill: "none",
|
122
|
+
stroke: "currentColor",
|
123
|
+
strokeWidth: "2",
|
124
|
+
strokeLinecap: "round",
|
125
|
+
strokeLinejoin: "round"
|
126
|
+
},
|
127
|
+
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
128
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
129
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M12 17h.01" })
|
130
|
+
))
|
131
|
+
)));
|
132
|
+
Label.displayName = "Label";
|
133
|
+
|
134
|
+
// elements/loading/Loading.tsx
|
135
|
+
import React3 from "react";
|
136
|
+
var Loading = ({
|
137
|
+
design = "spinner",
|
138
|
+
size = "normal",
|
139
|
+
themeMode = "light",
|
140
|
+
classNames,
|
141
|
+
color,
|
142
|
+
...props
|
143
|
+
}) => {
|
144
|
+
let sizeStyles = {
|
145
|
+
button: "hawa-h-4 hawa-w-4",
|
146
|
+
xs: "hawa-h-1 hawa-w-1",
|
147
|
+
sm: "hawa-h-6 hawa-w-6",
|
148
|
+
normal: "hawa-h-8 hawa-w-8",
|
149
|
+
lg: "hawa-h-14 hawa-w-14",
|
150
|
+
xl: "hawa-h-24 hawa-w-24"
|
151
|
+
};
|
152
|
+
let progressSizes = {
|
153
|
+
button: "hawa-h-1",
|
154
|
+
xs: "hawa-h-1 hawa-w-1",
|
155
|
+
sm: "hawa-h-6 hawa-w-6",
|
156
|
+
normal: "",
|
157
|
+
lg: "hawa-h-6",
|
158
|
+
xl: "hawa-h-10 hawa-w-64"
|
159
|
+
};
|
160
|
+
let animationStyles = {
|
161
|
+
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
162
|
+
bounce: "hawa-animate-bounce"
|
163
|
+
};
|
164
|
+
switch (design.split("-")[0]) {
|
165
|
+
case "dots":
|
166
|
+
return /* @__PURE__ */ React3.createElement(
|
167
|
+
"div",
|
168
|
+
{
|
169
|
+
className: cn(
|
170
|
+
"hawa-flex hawa-flex-row hawa-gap-2",
|
171
|
+
classNames == null ? void 0 : classNames.container
|
172
|
+
)
|
173
|
+
},
|
174
|
+
/* @__PURE__ */ React3.createElement(
|
175
|
+
"div",
|
176
|
+
{
|
177
|
+
className: cn(
|
178
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
179
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
180
|
+
animationStyles[design.split("-")[1]],
|
181
|
+
color ? color : "hawa-bg-primary"
|
182
|
+
)
|
183
|
+
}
|
184
|
+
),
|
185
|
+
/* @__PURE__ */ React3.createElement(
|
186
|
+
"div",
|
187
|
+
{
|
188
|
+
className: cn(
|
189
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
190
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
191
|
+
animationStyles[design.split("-")[1]],
|
192
|
+
color ? color : "hawa-bg-primary"
|
193
|
+
)
|
194
|
+
}
|
195
|
+
),
|
196
|
+
/* @__PURE__ */ React3.createElement(
|
197
|
+
"div",
|
198
|
+
{
|
199
|
+
className: cn(
|
200
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
201
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
202
|
+
animationStyles[design.split("-")[1]],
|
203
|
+
color ? color : "hawa-bg-primary"
|
204
|
+
)
|
205
|
+
}
|
206
|
+
)
|
207
|
+
);
|
208
|
+
case "square":
|
209
|
+
return /* @__PURE__ */ React3.createElement(
|
210
|
+
"svg",
|
211
|
+
{
|
212
|
+
className: cn(
|
213
|
+
"squircle-container",
|
214
|
+
sizeStyles[size],
|
215
|
+
classNames == null ? void 0 : classNames.container
|
216
|
+
),
|
217
|
+
viewBox: "0 0 35 35",
|
218
|
+
height: "35",
|
219
|
+
width: "35"
|
220
|
+
},
|
221
|
+
/* @__PURE__ */ React3.createElement(
|
222
|
+
"rect",
|
223
|
+
{
|
224
|
+
className: "squircle-track",
|
225
|
+
x: "2.5",
|
226
|
+
y: "2.5",
|
227
|
+
fill: "none",
|
228
|
+
strokeWidth: "5px",
|
229
|
+
width: "32.5",
|
230
|
+
height: "32.5"
|
231
|
+
}
|
232
|
+
),
|
233
|
+
/* @__PURE__ */ React3.createElement(
|
234
|
+
"rect",
|
235
|
+
{
|
236
|
+
className: "square-car",
|
237
|
+
x: "2.5",
|
238
|
+
y: "2.5",
|
239
|
+
fill: "none",
|
240
|
+
strokeWidth: "5px",
|
241
|
+
width: "32.5",
|
242
|
+
height: "32.5",
|
243
|
+
pathLength: "100"
|
244
|
+
}
|
245
|
+
)
|
246
|
+
);
|
247
|
+
case "squircle":
|
248
|
+
return /* @__PURE__ */ React3.createElement(
|
249
|
+
"svg",
|
250
|
+
{
|
251
|
+
x: "0px",
|
252
|
+
y: "0px",
|
253
|
+
viewBox: "0 0 37 37",
|
254
|
+
height: "37",
|
255
|
+
width: "37",
|
256
|
+
preserveAspectRatio: "xMidYMid meet",
|
257
|
+
className: cn(
|
258
|
+
"squircle-container",
|
259
|
+
sizeStyles[size],
|
260
|
+
classNames == null ? void 0 : classNames.container
|
261
|
+
)
|
262
|
+
},
|
263
|
+
/* @__PURE__ */ React3.createElement(
|
264
|
+
"path",
|
265
|
+
{
|
266
|
+
className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
|
267
|
+
fill: "none",
|
268
|
+
strokeWidth: "5",
|
269
|
+
pathLength: "100",
|
270
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
271
|
+
}
|
272
|
+
),
|
273
|
+
/* @__PURE__ */ React3.createElement(
|
274
|
+
"path",
|
275
|
+
{
|
276
|
+
className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
|
277
|
+
fill: "none",
|
278
|
+
strokeWidth: "5",
|
279
|
+
pathLength: "100",
|
280
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
281
|
+
}
|
282
|
+
)
|
283
|
+
);
|
284
|
+
case "progress":
|
285
|
+
return /* @__PURE__ */ React3.createElement(
|
286
|
+
"div",
|
287
|
+
{
|
288
|
+
className: cn(
|
289
|
+
"progress-loading after:hawa-rounded hawa-rounded",
|
290
|
+
progressSizes[size],
|
291
|
+
classNames == null ? void 0 : classNames.container
|
292
|
+
)
|
293
|
+
}
|
294
|
+
);
|
295
|
+
case "orbit":
|
296
|
+
return /* @__PURE__ */ React3.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
|
297
|
+
default:
|
298
|
+
return /* @__PURE__ */ React3.createElement(
|
299
|
+
"svg",
|
300
|
+
{
|
301
|
+
viewBox: "0 0 40 40",
|
302
|
+
height: "40",
|
303
|
+
width: "40",
|
304
|
+
className: cn(
|
305
|
+
"circle-container",
|
306
|
+
sizeStyles[size],
|
307
|
+
classNames == null ? void 0 : classNames.container
|
308
|
+
)
|
309
|
+
},
|
310
|
+
/* @__PURE__ */ React3.createElement(
|
311
|
+
"circle",
|
312
|
+
{
|
313
|
+
className: cn(
|
314
|
+
"circle-track",
|
315
|
+
{
|
316
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
317
|
+
"hawa-stroke-primary": themeMode === "light"
|
318
|
+
},
|
319
|
+
classNames == null ? void 0 : classNames.track
|
320
|
+
),
|
321
|
+
cx: "20",
|
322
|
+
cy: "20",
|
323
|
+
r: "17.5",
|
324
|
+
fill: "none",
|
325
|
+
strokeWidth: "5px",
|
326
|
+
pathLength: "100"
|
327
|
+
}
|
328
|
+
),
|
329
|
+
/* @__PURE__ */ React3.createElement(
|
330
|
+
"circle",
|
331
|
+
{
|
332
|
+
className: cn(
|
333
|
+
"circle-car",
|
334
|
+
{
|
335
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
336
|
+
"hawa-stroke-primary": themeMode === "light"
|
337
|
+
},
|
338
|
+
classNames == null ? void 0 : classNames.car
|
339
|
+
),
|
340
|
+
cx: "20",
|
341
|
+
cy: "20",
|
342
|
+
r: "17.5",
|
343
|
+
fill: "none",
|
344
|
+
pathLength: "100",
|
345
|
+
strokeWidth: "5px"
|
346
|
+
}
|
347
|
+
)
|
348
|
+
);
|
349
|
+
}
|
350
|
+
};
|
351
|
+
|
352
|
+
// elements/button/Button.tsx
|
353
|
+
var buttonVariants = cva(
|
354
|
+
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
355
|
+
{
|
356
|
+
variants: {
|
357
|
+
variant: {
|
358
|
+
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
359
|
+
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
360
|
+
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
361
|
+
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
362
|
+
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
363
|
+
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
364
|
+
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
365
|
+
combobox: "hawa-bg-background hawa-border",
|
366
|
+
neoBrutalism: "neo-brutalism"
|
367
|
+
// "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
|
368
|
+
},
|
369
|
+
size: {
|
370
|
+
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
371
|
+
heightless: "hawa-px-4 hawa-py-4",
|
372
|
+
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
373
|
+
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
374
|
+
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
375
|
+
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
376
|
+
icon: "hawa-h-10 hawa-w-10",
|
377
|
+
smallIcon: "hawa-h-7 hawa-w-7"
|
378
|
+
}
|
379
|
+
},
|
380
|
+
defaultVariants: {
|
381
|
+
variant: "default",
|
382
|
+
size: "default"
|
383
|
+
}
|
384
|
+
}
|
385
|
+
);
|
386
|
+
var Button = React4.forwardRef(
|
387
|
+
({
|
388
|
+
className,
|
389
|
+
label,
|
390
|
+
variant,
|
391
|
+
size,
|
392
|
+
asChild = false,
|
393
|
+
centered = true,
|
394
|
+
isLoading,
|
395
|
+
children,
|
396
|
+
...props
|
397
|
+
}, ref) => {
|
398
|
+
const Comp = "button";
|
399
|
+
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
400
|
+
return /* @__PURE__ */ React4.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React4.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React4.createElement(
|
401
|
+
Comp,
|
402
|
+
{
|
403
|
+
className: cn(
|
404
|
+
buttonVariants({ variant, size, className }),
|
405
|
+
centered && "hawa-justify-center"
|
406
|
+
),
|
407
|
+
ref,
|
408
|
+
...props
|
409
|
+
},
|
410
|
+
isLoading ? /* @__PURE__ */ React4.createElement(
|
411
|
+
Loading,
|
412
|
+
{
|
413
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
414
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
415
|
+
color: loadingColor,
|
416
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
417
|
+
}
|
418
|
+
) : children
|
419
|
+
));
|
420
|
+
}
|
421
|
+
);
|
422
|
+
Button.displayName = "Button";
|
423
|
+
|
424
|
+
// elements/calendar/Calendar.tsx
|
425
|
+
function Calendar({
|
426
|
+
className,
|
427
|
+
classNames,
|
428
|
+
showOutsideDays = true,
|
429
|
+
...props
|
430
|
+
}) {
|
431
|
+
return /* @__PURE__ */ React5.createElement(
|
432
|
+
DayPicker,
|
433
|
+
{
|
434
|
+
showOutsideDays,
|
435
|
+
className: cn("hawa-p-3", className),
|
436
|
+
classNames: {
|
437
|
+
months: "hawa-flex hawa-flex-col sm:hawa-flex-row hawa-space-y-4 sm:hawa-space-x-4 sm:hawa-space-y-0",
|
438
|
+
month: "hawa-space-y-4",
|
439
|
+
caption: "hawa-flex hawa-justify-center hawa-pt-1 hawa-relative hawa-items-center",
|
440
|
+
caption_label: "hawa-text-sm hawa-font-medium",
|
441
|
+
nav: "hawa-space-x-1 hawa-flex hawa-items-center",
|
442
|
+
nav_button: cn(
|
443
|
+
buttonVariants({ variant: "outline" }),
|
444
|
+
"hawa-h-7 hawa-w-7 hawa-bg-transparent hawa-p-0 hawa-opacity-50 hover:hawa-opacity-100"
|
445
|
+
),
|
446
|
+
nav_button_previous: "hawa-absolute hawa-start-1 !hawa-h-8 !hawa-w-8 !hawa-p-0 hawa-justify-center",
|
447
|
+
nav_button_next: "hawa-absolute hawa-end-1 !hawa-h-8 !hawa-w-8 !hawa-p-0 hawa-justify-center",
|
448
|
+
table: "hawa-w-full hawa-border-collapse hawa-space-y-1 ",
|
449
|
+
head_row: "hawa-flex",
|
450
|
+
head_cell: "hawa-text-muted-foreground hawa-rounded-md hawa-w-9 hawa-font-normal hawa-text-[0.8rem]",
|
451
|
+
row: "hawa-flex hawa-w-full hawa-mt-2",
|
452
|
+
cell: "hawa-h-9 hawa-w-9 hawa-text-center hawa-text-sm hawa-p-0 hawa-relative [&:has([aria-selected].day-range-end)]:hawa-rounded-r-md [&:has([aria-selected].day-outside)]:hawa-bg-accent/50 [&:has([aria-selected])]:hawa-bg-accent first:[&:has([aria-selected])]:hawa-rounded-l-md last:[&:has([aria-selected])]:hawa-rounded-r-md focus-within:hawa-relative focus-within:hawa-z-20",
|
453
|
+
day: cn(
|
454
|
+
buttonVariants({ variant: "ghost" }),
|
455
|
+
"hawa-h-9 hawa-w-9 hawa-justify-center !hawa-p-0 hawa-font-normal aria-selected:hawa-opacity-100"
|
456
|
+
),
|
457
|
+
day_range_end: "day-range-end",
|
458
|
+
day_selected: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary hover:hawa-text-primary-foreground focus:hawa-bg-primary focus:hawa-text-primary-foreground",
|
459
|
+
day_today: "hawa-bg-accent hawa-text-accent-foreground",
|
460
|
+
day_outside: "day-outside hawa-text-muted-foreground hawa-opacity-50 aria-selected:hawa-bg-accent/50 aria-selected:hawa-text-muted-foreground aria-selected:hawa-opacity-30",
|
461
|
+
day_disabled: "hawa-text-muted-foreground hawa-opacity-50",
|
462
|
+
day_range_middle: "aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground",
|
463
|
+
day_hidden: "hawa-invisible",
|
464
|
+
...classNames
|
465
|
+
},
|
466
|
+
components: {
|
467
|
+
IconLeft: ({ ...props2 }) => /* @__PURE__ */ React5.createElement(
|
468
|
+
"svg",
|
469
|
+
{
|
470
|
+
xmlns: "http://www.w3.org/2000/svg",
|
471
|
+
width: "20",
|
472
|
+
height: "20",
|
473
|
+
"aria-label": "Next Month",
|
474
|
+
viewBox: "0 0 24 24",
|
475
|
+
fill: "none",
|
476
|
+
stroke: "currentColor",
|
477
|
+
strokeWidth: "2",
|
478
|
+
strokeLinecap: "round",
|
479
|
+
strokeLinejoin: "round"
|
480
|
+
},
|
481
|
+
/* @__PURE__ */ React5.createElement("path", { d: "m15 18-6-6 6-6" })
|
482
|
+
),
|
483
|
+
IconRight: ({ ...props2 }) => /* @__PURE__ */ React5.createElement(
|
484
|
+
"svg",
|
485
|
+
{
|
486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
487
|
+
width: "20",
|
488
|
+
height: "20",
|
489
|
+
"aria-label": "Next Month",
|
490
|
+
viewBox: "0 0 24 24",
|
491
|
+
fill: "none",
|
492
|
+
stroke: "currentColor",
|
493
|
+
strokeWidth: "2",
|
494
|
+
strokeLinecap: "round",
|
495
|
+
strokeLinejoin: "round",
|
496
|
+
className: "hawa-rotate-180"
|
497
|
+
},
|
498
|
+
/* @__PURE__ */ React5.createElement("path", { d: "m15 18-6-6 6-6" })
|
499
|
+
)
|
500
|
+
},
|
501
|
+
...props
|
502
|
+
}
|
503
|
+
);
|
504
|
+
}
|
505
|
+
Calendar.displayName = "Calendar";
|
506
|
+
export {
|
507
|
+
Calendar
|
508
|
+
};
|
509
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../elements/calendar/Calendar.tsx","../../util/index.ts","../../elements/button/Button.tsx","../../elements/label/Label.tsx","../../elements/tooltip/Tooltip.tsx","../../elements/loading/Loading.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { DateRange, DayPicker } from \"react-day-picker\";\n\nimport { cn } from \"@util/index\";\n\nimport { buttonVariants } from \"../button\";\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>;\nexport type CalendarValueType = {\n single: Date;\n multiple: Date[];\n range: DateRange;\n};\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\"hawa-p-3\", className)}\n classNames={{\n months:\n \"hawa-flex hawa-flex-col sm:hawa-flex-row hawa-space-y-4 sm:hawa-space-x-4 sm:hawa-space-y-0\",\n month: \"hawa-space-y-4\",\n caption:\n \"hawa-flex hawa-justify-center hawa-pt-1 hawa-relative hawa-items-center\",\n caption_label: \"hawa-text-sm hawa-font-medium\",\n nav: \"hawa-space-x-1 hawa-flex hawa-items-center\",\n nav_button: cn(\n buttonVariants({ variant: \"outline\" }),\n \"hawa-h-7 hawa-w-7 hawa-bg-transparent hawa-p-0 hawa-opacity-50 hover:hawa-opacity-100\",\n ),\n nav_button_previous:\n \"hawa-absolute hawa-start-1 !hawa-h-8 !hawa-w-8 !hawa-p-0 hawa-justify-center\",\n nav_button_next:\n \"hawa-absolute hawa-end-1 !hawa-h-8 !hawa-w-8 !hawa-p-0 hawa-justify-center\",\n table: \"hawa-w-full hawa-border-collapse hawa-space-y-1 \",\n head_row: \"hawa-flex\",\n head_cell:\n \"hawa-text-muted-foreground hawa-rounded-md hawa-w-9 hawa-font-normal hawa-text-[0.8rem]\",\n row: \"hawa-flex hawa-w-full hawa-mt-2\",\n cell: \"hawa-h-9 hawa-w-9 hawa-text-center hawa-text-sm hawa-p-0 hawa-relative [&:has([aria-selected].day-range-end)]:hawa-rounded-r-md [&:has([aria-selected].day-outside)]:hawa-bg-accent/50 [&:has([aria-selected])]:hawa-bg-accent first:[&:has([aria-selected])]:hawa-rounded-l-md last:[&:has([aria-selected])]:hawa-rounded-r-md focus-within:hawa-relative focus-within:hawa-z-20\",\n day: cn(\n buttonVariants({ variant: \"ghost\" }),\n \"hawa-h-9 hawa-w-9 hawa-justify-center !hawa-p-0 hawa-font-normal aria-selected:hawa-opacity-100\",\n ),\n day_range_end: \"day-range-end\",\n day_selected:\n \"hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary hover:hawa-text-primary-foreground focus:hawa-bg-primary focus:hawa-text-primary-foreground\",\n day_today: \"hawa-bg-accent hawa-text-accent-foreground\",\n day_outside:\n \"day-outside hawa-text-muted-foreground hawa-opacity-50 aria-selected:hawa-bg-accent/50 aria-selected:hawa-text-muted-foreground aria-selected:hawa-opacity-30\",\n day_disabled: \"hawa-text-muted-foreground hawa-opacity-50\",\n day_range_middle:\n \"aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground\",\n day_hidden: \"hawa-invisible\",\n ...classNames,\n }}\n components={{\n IconLeft: ({ ...props }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n aria-label=\"Next Month\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n ),\n IconRight: ({ ...props }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n aria-label=\"Next Month\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"hawa-rotate-180\"\n >\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n ),\n }}\n {...props}\n />\n );\n}\nCalendar.displayName = \"Calendar\";\n\nexport { Calendar };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\ntype Palette = {\n name: string;\n colors: {\n [key: number]: string;\n };\n};\ntype Rgb = {\n r: number;\n g: number;\n b: number;\n};\nfunction hexToRgb(hex: string): Rgb | null {\n const sanitizedHex = hex.replaceAll(\"##\", \"#\");\n const colorParts = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(\n sanitizedHex\n );\n\n if (!colorParts) {\n return null;\n }\n\n const [, r, g, b] = colorParts;\n\n return {\n r: parseInt(r, 16),\n g: parseInt(g, 16),\n b: parseInt(b, 16)\n } as Rgb;\n}\n\nfunction rgbToHex(r: number, g: number, b: number): string {\n const toHex = (c: number) => `0${c.toString(16)}`.slice(-2);\n return `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n}\n\nexport function getTextColor(color: string): \"#FFF\" | \"#333\" {\n const rgbColor = hexToRgb(color);\n\n if (!rgbColor) {\n return \"#333\";\n }\n\n const { r, g, b } = rgbColor;\n const luma = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n return luma < 120 ? \"#FFF\" : \"#333\";\n}\n\nfunction lighten(hex: string, intensity: number): string {\n const color = hexToRgb(`#${hex}`);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r + (255 - color.r) * intensity);\n const g = Math.round(color.g + (255 - color.g) * intensity);\n const b = Math.round(color.b + (255 - color.b) * intensity);\n\n return rgbToHex(r, g, b);\n}\n\nfunction darken(hex: string, intensity: number): string {\n const color = hexToRgb(hex);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r * intensity);\n const g = Math.round(color.g * intensity);\n const b = Math.round(color.b * intensity);\n\n return rgbToHex(r, g, b);\n}\nconst parseColor = (color: any) => {\n if (color.startsWith(\"#\")) {\n // Convert hex to RGB\n let r = parseInt(color.slice(1, 3), 16);\n let g = parseInt(color.slice(3, 5), 16);\n let b = parseInt(color.slice(5, 7), 16);\n return [r, g, b];\n } else if (color.startsWith(\"rgb\")) {\n // Extract RGB values from rgb() format\n return color.match(/\\d+/g).map(Number);\n }\n // Default to white if format is unrecognized\n return [255, 255, 255];\n};\nexport const calculateLuminance = (color: any) => {\n const [r, g, b] = parseColor(color)?.map((c: any) => {\n c /= 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nfunction getPallette(baseColor: string): Palette {\n const name = baseColor;\n\n const response: Palette = {\n name,\n colors: {\n 500: `#${baseColor}`.replace(\"##\", \"#\")\n }\n };\n\n const intensityMap: {\n [key: number]: number;\n } = {\n 50: 0.95,\n 100: 0.9,\n 200: 0.75,\n 300: 0.6,\n 400: 0.3,\n 600: 0.9,\n 700: 0.75,\n 800: 0.6,\n 900: 0.49\n };\n\n [50, 100, 200, 300, 400].forEach((level) => {\n response.colors[level] = lighten(baseColor, intensityMap[level]);\n });\n [600, 700, 800, 900].forEach((level) => {\n response.colors[level] = darken(baseColor, intensityMap[level]);\n });\n\n return response as Palette;\n}\n\nexport { getPallette };\n\n// const hexToRgb = (hex) => {\n// let d = hex?.split(\"#\")[1];\n// var aRgbHex = d?.match(/.{1,2}/g);\n// var aRgb = [\n// parseInt(aRgbHex[0], 16),\n// parseInt(aRgbHex[1], 16),\n// parseInt(aRgbHex[2], 16)\n// ];\n// return aRgb;\n// };\n// const getTextColor = (backColor) => {\n// let rgbArray = hexToRgb(backColor);\n// if (rgbArray[0] * 0.299 + rgbArray[1] * 0.587 + rgbArray[2] * 0.114 > 186) {\n// return \"#000000\";\n// } else {\n// return \"#ffffff\";\n// }\n// };\n// const replaceAt = function (string, index, replacement) {\n// // if (replacement == \"\" || replacement == \" \") {\n// // return (\n// // string.substring(0, index) +\n// // string.substring(index + replacement.length )\n// // );\n// // }\n// const replaced = string.substring(0, index) + replacement + string.substring(index + 1)\n// return replaced\n// };\n\n// export { hexToRgb, getTextColor, replaceAt };\n","import * as React from \"react\";\n\nimport { cn } from \"@util/index\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { Label } from \"../label\";\nimport { Loading } from \"../loading/Loading\";\n\nconst buttonVariants = cva(\n \"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90\",\n light: \"hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40\",\n destructive:\n \"hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90\",\n outline:\n \"hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground\",\n secondary:\n \"hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80\",\n ghost: \"hover:hawa-bg-accent hover:hawa-text-accent-foreground\",\n link: \"hawa-text-primary hawa-underline-offset-4 hover:hawa-underline\",\n combobox: \"hawa-bg-background hawa-border\",\n neoBrutalism: \"neo-brutalism\",\n // \"hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active\",\n },\n size: {\n default: \"hawa-h-10 hawa-px-4 hawa-py-2\",\n heightless: \"hawa-px-4 hawa-py-4\",\n xs: \"hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 \",\n sm: \"hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3\",\n lg: \"hawa-h-11 hawa-rounded-md hawa-px-8\",\n xl: \"hawa-h-14 hawa-rounded-md hawa-px-10\",\n icon: \"hawa-h-10 hawa-w-10\",\n smallIcon: \"hawa-h-7 hawa-w-7\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n centered?: boolean;\n isLoading?: boolean;\n label?: string;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n label,\n variant,\n size,\n asChild = false,\n centered = true,\n isLoading,\n children,\n ...props\n },\n ref,\n ) => {\n const Comp = \"button\";\n\n // Determine the color for the HawaLoading component based on the variant\n const loadingColor =\n variant === \"outline\" || variant === \"ghost\" || variant === \"neoBrutalism\"\n ? \"hawa-bg-primary\"\n : \"hawa-bg-primary-foreground\";\n\n return (\n <div className=\"flex flex-col\">\n {label && <Label className=\"hawa-mb-2\">{label}</Label>}\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n centered && \"hawa-justify-center\",\n )}\n ref={ref}\n {...props}\n >\n {isLoading ? (\n <Loading\n design={\n size === \"icon\" || size === \"smallIcon\"\n ? \"spinner\"\n : \"dots-pulse\"\n }\n themeMode={variant === \"outline\" ? \"light\" : \"dark\"}\n color={loadingColor}\n size={size === \"sm\" || size === \"xs\" ? \"xs\" : \"button\"}\n />\n ) : (\n children\n )}\n </Comp>\n </div>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","import * as React from \"react\";\n\nimport { PositionType } from \"@_types/commonTypes\";\n\nimport { cn } from \"@util/index\";\nimport { Tooltip } from \"../tooltip\";\n\nexport type LabelProps = {\n hint?: React.ReactNode;\n hintSide?: PositionType;\n htmlFor?: string;\n required?: boolean;\n};\n\nconst Label = React.forwardRef<\n HTMLLabelElement,\n React.LabelHTMLAttributes<HTMLLabelElement> & LabelProps\n>(({ className, hint, hintSide, required, children, ...props }, ref) => (\n <div className=\"hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all\">\n <label\n ref={ref}\n className={cn(\n \"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70\",\n className\n )}\n {...props}\n >\n {children}\n {required && <span className=\"hawa-mx-0.5 hawa-text-red-500\">*</span>}\n </label>\n {hint && (\n <Tooltip\n content={hint}\n side={hintSide}\n triggerProps={{\n tabIndex: -1,\n onClick: (event) => event.preventDefault()\n }}\n >\n <div>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n className=\"hawa-h-[14px] hawa-w-[14px] hawa-cursor-help\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" />\n <path d=\"M12 17h.01\" />\n </svg>\n </div>\n </Tooltip>\n )}\n </div>\n));\n\nLabel.displayName = \"Label\";\n\nexport { Label };\n","import React from \"react\";\n\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { cn } from \"@util/index\";\n\nimport { PositionType } from \"@_types/commonTypes\";\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {\n size?: \"default\" | \"small\" | \"large\";\n }\n>(({ className, sideOffset = 4, size = \"default\", ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"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\",\n {\n \"hawa-text-xs\": size === \"small\",\n \"hawa-text-xl\": size === \"large\"\n },\n className\n )}\n {...props}\n />\n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nconst TooltipArrow = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Arrow>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>\n>(({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow ref={ref} className={cn(className)} {...props} />\n));\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\ntype TooltipTypes = {\n /** Controls the open state of the tooltip. */\n open?: any;\n /** Specifies the side where the tooltip will appear. */\n side?: PositionType;\n /** Content to be displayed within the tooltip. */\n content?: any;\n /** Elements to which the tooltip is anchored. */\n children?: any;\n /** Sets the default open state of the tooltip. */\n defaultOpen?: any;\n /** Event handler for open state changes. */\n onOpenChange?: any;\n /** Duration of the delay before the tooltip appears. */\n delayDuration?: any;\n /** Size of the tooltip. */\n size?: \"default\" | \"small\" | \"large\";\n /** Disables the tooltip. */\n disabled?: boolean;\n triggerProps?: TooltipPrimitive.TooltipTriggerProps;\n contentProps?: TooltipPrimitive.TooltipContentProps;\n providerProps?: TooltipPrimitive.TooltipProviderProps;\n};\n\nconst Tooltip: React.FunctionComponent<TooltipTypes> = ({\n side,\n size,\n open,\n content,\n children,\n disabled,\n defaultOpen,\n onOpenChange,\n triggerProps,\n contentProps,\n providerProps,\n delayDuration = 300,\n ...props\n}) => {\n return (\n <TooltipPrimitive.TooltipProvider\n delayDuration={delayDuration}\n {...providerProps}\n >\n <TooltipPrimitive.Root\n open={!disabled && open}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n {...props}\n >\n <TooltipPrimitive.Trigger {...triggerProps}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipContent\n size={size}\n side={side}\n align=\"center\"\n {...contentProps}\n style={{\n ...contentProps?.style,\n maxWidth: \"var(--radix-tooltip-content-available-width)\",\n maxHeight: \"var(--radix-tooltip-content-available-height)\"\n }}\n >\n {content}\n </TooltipContent>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.TooltipProvider>\n );\n};\n\nexport { Tooltip };\n","import React, { FC } from \"react\";\n\nimport { cn } from \"@util/index\";\n\ntype LoadingTypes = {\n /** Specifies the size of the loading component.*/\n size?: \"button\" | \"xs\" | \"sm\" | \"normal\" | \"lg\" | \"xl\";\n /** Determines the design of the loading animation.*/\n design?:\n | \"spinner\"\n | \"dots-bounce\"\n | \"dots-pulse\"\n | \"pulse\"\n | \"spinner-dots\"\n | \"squircle\"\n | \"square\"\n | \"progress\"\n | \"orbit\";\n /** Specifies the color of the loading component. By default it will inherit the value of --primary global CSS variable*/\n color?: string;\n classNames?: {\n container?: string;\n track?: string;\n car?: string;\n };\n themeMode?: \"dark\" | \"light\";\n};\n\nexport const Loading: FC<LoadingTypes> = ({\n design = \"spinner\",\n size = \"normal\",\n themeMode = \"light\",\n classNames,\n color,\n ...props\n}) => {\n let sizeStyles = {\n button: \"hawa-h-4 hawa-w-4\",\n xs: \"hawa-h-1 hawa-w-1\",\n sm: \"hawa-h-6 hawa-w-6\",\n normal: \"hawa-h-8 hawa-w-8\",\n lg: \"hawa-h-14 hawa-w-14\",\n xl: \"hawa-h-24 hawa-w-24\"\n };\n let progressSizes = {\n button: \"hawa-h-1\",\n xs: \"hawa-h-1 hawa-w-1\",\n sm: \"hawa-h-6 hawa-w-6\",\n normal: \"\",\n lg: \"hawa-h-6\",\n xl: \"hawa-h-10 hawa-w-64\"\n };\n\n let animationStyles: any = {\n pulse: \"hawa-animate-in hawa-fade-in hawa-duration-1000\",\n bounce: \"hawa-animate-bounce\"\n };\n switch (design.split(\"-\")[0]) {\n case \"dots\":\n return (\n <div\n className={cn(\n \"hawa-flex hawa-flex-row hawa-gap-2\",\n classNames?.container\n )}\n >\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n </div>\n );\n case \"square\":\n return (\n <svg\n className={cn(\n \"squircle-container\",\n sizeStyles[size],\n classNames?.container\n )}\n viewBox=\"0 0 35 35\"\n height=\"35\"\n width=\"35\"\n >\n <rect\n className=\"squircle-track\"\n x=\"2.5\"\n y=\"2.5\"\n fill=\"none\"\n strokeWidth=\"5px\"\n width=\"32.5\"\n height=\"32.5\"\n />\n <rect\n className=\"square-car\"\n x=\"2.5\"\n y=\"2.5\"\n fill=\"none\"\n strokeWidth=\"5px\"\n width=\"32.5\"\n height=\"32.5\"\n pathLength=\"100\"\n />\n </svg>\n );\n case \"squircle\":\n return (\n <svg\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 37 37\"\n height=\"37\"\n width=\"37\"\n preserveAspectRatio=\"xMidYMid meet\"\n className={cn(\n \"squircle-container\",\n sizeStyles[size],\n classNames?.container\n )}\n >\n <path\n className={cn(\"squircle-track\", classNames?.track)}\n fill=\"none\"\n strokeWidth=\"5\"\n pathLength=\"100\"\n d=\"M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5\"\n ></path>\n <path\n className={cn(\"squircle-car\", classNames?.car)}\n fill=\"none\"\n strokeWidth=\"5\"\n pathLength=\"100\"\n d=\"M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5\"\n ></path>\n </svg>\n );\n case \"progress\":\n return (\n <div\n className={cn(\n \"progress-loading after:hawa-rounded hawa-rounded\",\n progressSizes[size],\n classNames?.container\n )}\n ></div>\n );\n case \"orbit\":\n return (\n <div className={cn(\"orbit-container\", classNames?.container)}></div>\n );\n\n default:\n return (\n <svg\n viewBox=\"0 0 40 40\"\n height=\"40\"\n width=\"40\"\n className={cn(\n \"circle-container\",\n sizeStyles[size],\n classNames?.container\n )}\n >\n <circle\n className={cn(\n \"circle-track\",\n {\n \"hawa-stroke-primary-foreground\": themeMode === \"dark\",\n \"hawa-stroke-primary\": themeMode === \"light\"\n },\n classNames?.track\n )}\n cx=\"20\"\n cy=\"20\"\n r=\"17.5\"\n fill=\"none\"\n strokeWidth=\"5px\"\n pathLength=\"100\"\n />\n <circle\n className={cn(\n \"circle-car\",\n {\n \"hawa-stroke-primary-foreground\": themeMode === \"dark\",\n \"hawa-stroke-primary\": themeMode === \"light\"\n },\n classNames?.car\n )}\n cx=\"20\"\n cy=\"20\"\n r=\"17.5\"\n fill=\"none\"\n pathLength=\"100\"\n strokeWidth=\"5px\"\n />\n </svg>\n );\n }\n};\n"],"mappings":";;;AAAA,YAAYA,YAAW;AACvB,SAAoB,iBAAiB;;;ACDrC,SAAS,YAA6B;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACLA,YAAYC,YAAW;AAGvB,SAAS,WAA8B;;;ACHvC,YAAYC,YAAW;;;ACAvB,OAAO,WAAW;AAElB,YAAY,sBAAsB;AAKlC,IAAM,iBAAiB,MAAM,WAK3B,CAAC,EAAE,WAAW,aAAa,GAAG,OAAO,WAAW,GAAG,MAAM,GAAG,QAC5D;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,QACE,gBAAgB,SAAS;AAAA,QACzB,gBAAgB,SAAS;AAAA,MAC3B;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAA+B,yBAAQ;AAEtD,IAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B,oCAAkB,wBAAjB,EAAuB,KAAU,WAAW,GAAG,SAAS,GAAI,G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