@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/index.mjs
CHANGED
@@ -37,13 +37,7 @@ var calculateLuminance = (color) => {
|
|
37
37
|
|
38
38
|
// elements/card/Card.tsx
|
39
39
|
var Card = React.forwardRef(
|
40
|
-
({
|
41
|
-
className,
|
42
|
-
variant = "default",
|
43
|
-
clickable = false,
|
44
|
-
asContainer = false,
|
45
|
-
...props
|
46
|
-
}, ref) => {
|
40
|
+
({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
|
47
41
|
let variantStyles = {
|
48
42
|
default: cn(
|
49
43
|
"hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -55,14 +49,7 @@ var Card = React.forwardRef(
|
|
55
49
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
56
50
|
)
|
57
51
|
};
|
58
|
-
return /* @__PURE__ */ React.createElement(
|
59
|
-
"div",
|
60
|
-
{
|
61
|
-
ref,
|
62
|
-
className: cn(!asContainer && variantStyles[variant], className),
|
63
|
-
...props
|
64
|
-
}
|
65
|
-
);
|
52
|
+
return /* @__PURE__ */ React.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
|
66
53
|
}
|
67
54
|
);
|
68
55
|
var CardHeader = React.forwardRef(
|
@@ -70,30 +57,15 @@ var CardHeader = React.forwardRef(
|
|
70
57
|
"div",
|
71
58
|
{
|
72
59
|
ref,
|
73
|
-
className: cn(
|
74
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
75
|
-
className
|
76
|
-
),
|
60
|
+
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
|
77
61
|
...props
|
78
62
|
}
|
79
63
|
), props.actions && /* @__PURE__ */ React.createElement("div", { className: "hawa-p-6" }, props.actions))
|
80
64
|
);
|
81
|
-
var CardTitle = React.forwardRef(
|
82
|
-
"h3",
|
83
|
-
|
84
|
-
|
85
|
-
className: cn("hawa-text-2xl hawa-font-semibold", className),
|
86
|
-
...props
|
87
|
-
}
|
88
|
-
));
|
89
|
-
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
90
|
-
"p",
|
91
|
-
{
|
92
|
-
ref,
|
93
|
-
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
94
|
-
...props
|
95
|
-
}
|
96
|
-
));
|
65
|
+
var CardTitle = React.forwardRef(
|
66
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
|
67
|
+
);
|
68
|
+
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
|
97
69
|
var CardContent = React.forwardRef(
|
98
70
|
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
99
71
|
"div",
|
@@ -159,57 +131,42 @@ var Loading = ({
|
|
159
131
|
};
|
160
132
|
switch (design.split("-")[0]) {
|
161
133
|
case "dots":
|
162
|
-
return /* @__PURE__ */ React2.createElement(
|
134
|
+
return /* @__PURE__ */ React2.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ React2.createElement(
|
163
135
|
"div",
|
164
136
|
{
|
165
137
|
className: cn(
|
166
|
-
"hawa-
|
167
|
-
|
138
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
139
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
140
|
+
animationStyles[design.split("-")[1]],
|
141
|
+
color ? color : "hawa-bg-primary"
|
168
142
|
)
|
169
|
-
}
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
),
|
192
|
-
/* @__PURE__ */ React2.createElement(
|
193
|
-
"div",
|
194
|
-
{
|
195
|
-
className: cn(
|
196
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
197
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
198
|
-
animationStyles[design.split("-")[1]],
|
199
|
-
color ? color : "hawa-bg-primary"
|
200
|
-
)
|
201
|
-
}
|
202
|
-
)
|
203
|
-
);
|
143
|
+
}
|
144
|
+
), /* @__PURE__ */ React2.createElement(
|
145
|
+
"div",
|
146
|
+
{
|
147
|
+
className: cn(
|
148
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
149
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
150
|
+
animationStyles[design.split("-")[1]],
|
151
|
+
color ? color : "hawa-bg-primary"
|
152
|
+
)
|
153
|
+
}
|
154
|
+
), /* @__PURE__ */ React2.createElement(
|
155
|
+
"div",
|
156
|
+
{
|
157
|
+
className: cn(
|
158
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
159
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
160
|
+
animationStyles[design.split("-")[1]],
|
161
|
+
color ? color : "hawa-bg-primary"
|
162
|
+
)
|
163
|
+
}
|
164
|
+
));
|
204
165
|
case "square":
|
205
166
|
return /* @__PURE__ */ React2.createElement(
|
206
167
|
"svg",
|
207
168
|
{
|
208
|
-
className: cn(
|
209
|
-
"squircle-container",
|
210
|
-
sizeStyles2[size],
|
211
|
-
classNames == null ? void 0 : classNames.container
|
212
|
-
),
|
169
|
+
className: cn("squircle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container),
|
213
170
|
viewBox: "0 0 35 35",
|
214
171
|
height: "35",
|
215
172
|
width: "35"
|
@@ -250,11 +207,7 @@ var Loading = ({
|
|
250
207
|
height: "37",
|
251
208
|
width: "37",
|
252
209
|
preserveAspectRatio: "xMidYMid meet",
|
253
|
-
className: cn(
|
254
|
-
"squircle-container",
|
255
|
-
sizeStyles2[size],
|
256
|
-
classNames == null ? void 0 : classNames.container
|
257
|
-
)
|
210
|
+
className: cn("squircle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container)
|
258
211
|
},
|
259
212
|
/* @__PURE__ */ React2.createElement(
|
260
213
|
"path",
|
@@ -297,11 +250,7 @@ var Loading = ({
|
|
297
250
|
viewBox: "0 0 40 40",
|
298
251
|
height: "40",
|
299
252
|
width: "40",
|
300
|
-
className: cn(
|
301
|
-
"circle-container",
|
302
|
-
sizeStyles2[size],
|
303
|
-
classNames == null ? void 0 : classNames.container
|
304
|
-
)
|
253
|
+
className: cn("circle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container)
|
305
254
|
},
|
306
255
|
/* @__PURE__ */ React2.createElement(
|
307
256
|
"circle",
|
@@ -382,38 +331,31 @@ var Tooltip = ({
|
|
382
331
|
delayDuration = 300,
|
383
332
|
...props
|
384
333
|
}) => {
|
385
|
-
return /* @__PURE__ */ React3.createElement(
|
386
|
-
TooltipPrimitive.
|
334
|
+
return /* @__PURE__ */ React3.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ React3.createElement(
|
335
|
+
TooltipPrimitive.Root,
|
387
336
|
{
|
388
|
-
|
389
|
-
|
337
|
+
open: !disabled && open,
|
338
|
+
defaultOpen,
|
339
|
+
onOpenChange,
|
340
|
+
...props
|
390
341
|
},
|
342
|
+
/* @__PURE__ */ React3.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
391
343
|
/* @__PURE__ */ React3.createElement(
|
392
|
-
|
344
|
+
TooltipContent,
|
393
345
|
{
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
...
|
346
|
+
size,
|
347
|
+
side,
|
348
|
+
align: "center",
|
349
|
+
...contentProps,
|
350
|
+
style: {
|
351
|
+
...contentProps == null ? void 0 : contentProps.style,
|
352
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
353
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
354
|
+
}
|
398
355
|
},
|
399
|
-
|
400
|
-
/* @__PURE__ */ React3.createElement(
|
401
|
-
TooltipContent,
|
402
|
-
{
|
403
|
-
size,
|
404
|
-
side,
|
405
|
-
align: "center",
|
406
|
-
...contentProps,
|
407
|
-
style: {
|
408
|
-
...contentProps == null ? void 0 : contentProps.style,
|
409
|
-
maxWidth: "var(--radix-tooltip-content-available-width)",
|
410
|
-
maxHeight: "var(--radix-tooltip-content-available-height)"
|
411
|
-
}
|
412
|
-
},
|
413
|
-
content
|
414
|
-
)
|
356
|
+
content
|
415
357
|
)
|
416
|
-
);
|
358
|
+
));
|
417
359
|
};
|
418
360
|
|
419
361
|
// elements/skeleton/Skeleton.tsx
|
@@ -626,17 +568,11 @@ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) =>
|
|
626
568
|
}
|
627
569
|
));
|
628
570
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
629
|
-
var DropdownMenuShortcut = ({
|
630
|
-
className,
|
631
|
-
...props
|
632
|
-
}) => {
|
571
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
633
572
|
return /* @__PURE__ */ React5.createElement(
|
634
573
|
"span",
|
635
574
|
{
|
636
|
-
className: cn(
|
637
|
-
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
638
|
-
className
|
639
|
-
),
|
575
|
+
className: cn("hawa-text-xs hawa-tracking-widest hawa-opacity-60", className),
|
640
576
|
...props
|
641
577
|
}
|
642
578
|
);
|
@@ -673,178 +609,144 @@ var DropdownMenu = ({
|
|
673
609
|
default: "hawa-px-2 hawa-py-3 ",
|
674
610
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
675
611
|
};
|
676
|
-
let [values, setValues] = React5.useState(
|
677
|
-
|
678
|
-
|
679
|
-
return /* @__PURE__ */ React5.createElement(
|
680
|
-
DropdownMenuRoot,
|
612
|
+
let [values, setValues] = React5.useState(items.map((item) => item.currentOption));
|
613
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuRoot, { onOpenChange, open, modal: false, dir: direction }, /* @__PURE__ */ React5.createElement(
|
614
|
+
DropdownMenuTrigger,
|
681
615
|
{
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
dir: direction
|
616
|
+
asChild: true,
|
617
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
618
|
+
...triggerProps
|
686
619
|
},
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
className: cn(
|
704
|
-
className,
|
705
|
-
classNames == null ? void 0 : classNames.content,
|
706
|
-
widthStyles[width],
|
707
|
-
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
708
|
-
),
|
709
|
-
style: {
|
710
|
-
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
711
|
-
},
|
712
|
-
...contentProps
|
620
|
+
trigger
|
621
|
+
), /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(
|
622
|
+
DropdownMenuContent,
|
623
|
+
{
|
624
|
+
side,
|
625
|
+
sideOffset,
|
626
|
+
align,
|
627
|
+
alignOffset,
|
628
|
+
className: cn(
|
629
|
+
className,
|
630
|
+
classNames == null ? void 0 : classNames.content,
|
631
|
+
widthStyles[width],
|
632
|
+
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
633
|
+
),
|
634
|
+
style: {
|
635
|
+
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
713
636
|
},
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
}
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
item.label && item.label
|
738
|
-
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
739
|
-
DropdownMenuRadioGroup,
|
740
|
-
{
|
741
|
-
value: values[index],
|
742
|
-
onValueChange: (e) => {
|
743
|
-
let newValues = [...values];
|
744
|
-
newValues[index] = e;
|
745
|
-
setValues(newValues);
|
746
|
-
console.log("changing to ", e);
|
747
|
-
if (item.onOptionChange) {
|
748
|
-
item.onOptionChange(e);
|
749
|
-
}
|
637
|
+
...contentProps
|
638
|
+
},
|
639
|
+
header && header,
|
640
|
+
items && items.map((item, index) => {
|
641
|
+
var _a;
|
642
|
+
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
643
|
+
if (item.itemType === "separator") {
|
644
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index, className: classNames == null ? void 0 : classNames.separator });
|
645
|
+
} else if (item.itemType === "label") {
|
646
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
647
|
+
} else if (item.itemType === "radio") {
|
648
|
+
let dd = item.currentOption;
|
649
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles2[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
650
|
+
DropdownMenuRadioGroup,
|
651
|
+
{
|
652
|
+
value: values[index],
|
653
|
+
onValueChange: (e) => {
|
654
|
+
let newValues = [...values];
|
655
|
+
newValues[index] = e;
|
656
|
+
setValues(newValues);
|
657
|
+
console.log("changing to ", e);
|
658
|
+
if (item.onOptionChange) {
|
659
|
+
item.onOptionChange(e);
|
750
660
|
}
|
751
|
-
}
|
752
|
-
|
753
|
-
)))
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
className: cn(sizeStyles2[size])
|
762
|
-
},
|
763
|
-
item.icon && item.icon,
|
764
|
-
item.label && item.label
|
765
|
-
), /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
766
|
-
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
767
|
-
return /* @__PURE__ */ React5.createElement(
|
768
|
-
DropdownMenuItem,
|
769
|
-
{
|
770
|
-
key: subIndex,
|
771
|
-
LinkComponent: SubitemLinkComponent,
|
772
|
-
slug: subitem.slug,
|
773
|
-
disabled: subitem.disabled,
|
774
|
-
className: cn(
|
775
|
-
sizeStyles2[size],
|
776
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
777
|
-
),
|
778
|
-
onMouseDown: (event) => {
|
779
|
-
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
780
|
-
event.preventDefault();
|
781
|
-
if (subitem.onMiddleClick) {
|
782
|
-
subitem.onMiddleClick(item.value);
|
783
|
-
}
|
784
|
-
}
|
785
|
-
},
|
786
|
-
onSelect: () => {
|
787
|
-
subitem.action && subitem.action();
|
788
|
-
if (onItemSelect) {
|
789
|
-
onItemSelect(subitem.value);
|
790
|
-
}
|
791
|
-
}
|
792
|
-
},
|
793
|
-
subitem.icon && subitem.icon,
|
794
|
-
subitem.label && subitem.label
|
795
|
-
);
|
796
|
-
})))) : /* @__PURE__ */ React5.createElement(
|
661
|
+
}
|
662
|
+
},
|
663
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
664
|
+
)));
|
665
|
+
} else if (item.itemType === "custom") {
|
666
|
+
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
667
|
+
} else {
|
668
|
+
return item.subitems ? /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles2[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
669
|
+
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
670
|
+
return /* @__PURE__ */ React5.createElement(
|
797
671
|
DropdownMenuItem,
|
798
672
|
{
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
disabled:
|
673
|
+
key: subIndex,
|
674
|
+
LinkComponent: SubitemLinkComponent,
|
675
|
+
slug: subitem.slug,
|
676
|
+
disabled: subitem.disabled,
|
677
|
+
className: cn(
|
678
|
+
sizeStyles2[size],
|
679
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
680
|
+
),
|
803
681
|
onMouseDown: (event) => {
|
804
682
|
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
805
683
|
event.preventDefault();
|
806
|
-
if (
|
807
|
-
|
684
|
+
if (subitem.onMiddleClick) {
|
685
|
+
subitem.onMiddleClick(item.value);
|
808
686
|
}
|
809
687
|
}
|
810
688
|
},
|
811
|
-
|
812
|
-
|
813
|
-
|
689
|
+
onSelect: () => {
|
690
|
+
subitem.action && subitem.action();
|
691
|
+
if (onItemSelect) {
|
692
|
+
onItemSelect(subitem.value);
|
814
693
|
}
|
815
|
-
}
|
816
|
-
|
817
|
-
|
818
|
-
|
694
|
+
}
|
695
|
+
},
|
696
|
+
subitem.icon && subitem.icon,
|
697
|
+
subitem.label && subitem.label
|
698
|
+
);
|
699
|
+
})))) : /* @__PURE__ */ React5.createElement(
|
700
|
+
DropdownMenuItem,
|
701
|
+
{
|
702
|
+
LinkComponent: ItemLinkComponent,
|
703
|
+
slug: item.slug,
|
704
|
+
key: index,
|
705
|
+
disabled: item.disabled,
|
706
|
+
onMouseDown: (event) => {
|
707
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
708
|
+
event.preventDefault();
|
709
|
+
if (item.onMiddleClick) {
|
710
|
+
item.onMiddleClick(item.value);
|
819
711
|
}
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
712
|
+
}
|
713
|
+
},
|
714
|
+
onClick: (event) => {
|
715
|
+
if (item.onClick) {
|
716
|
+
item.onClick(item.value);
|
717
|
+
}
|
718
|
+
},
|
719
|
+
onSelect: (e) => {
|
720
|
+
if (item.presist) {
|
721
|
+
e.preventDefault();
|
722
|
+
}
|
723
|
+
if (item.action) {
|
724
|
+
item.action();
|
725
|
+
if (onItemSelect) {
|
726
|
+
onItemSelect(item.value);
|
829
727
|
}
|
830
|
-
}
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
sizeStyles2[size],
|
836
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
|
837
|
-
item.presist && "focus:hawa-bg-transparent",
|
838
|
-
classNames == null ? void 0 : classNames.item
|
839
|
-
)
|
728
|
+
} else {
|
729
|
+
if (onItemSelect) {
|
730
|
+
onItemSelect(item.value);
|
731
|
+
}
|
732
|
+
}
|
840
733
|
},
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
734
|
+
end: item.end,
|
735
|
+
shortcut: item.shortcut,
|
736
|
+
badged: item.badged,
|
737
|
+
className: cn(
|
738
|
+
sizeStyles2[size],
|
739
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
|
740
|
+
item.presist && "focus:hawa-bg-transparent",
|
741
|
+
classNames == null ? void 0 : classNames.item
|
742
|
+
)
|
743
|
+
},
|
744
|
+
item.icon && item.icon,
|
745
|
+
item.label && item.label
|
746
|
+
);
|
747
|
+
}
|
748
|
+
})
|
749
|
+
)));
|
848
750
|
};
|
849
751
|
var DropdownMenuRadio = (props) => {
|
850
752
|
const ariaLabel = props.label ? `${props.label} radio group` : void 0;
|
@@ -887,16 +789,7 @@ import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
|
887
789
|
// elements/chip/Chip.tsx
|
888
790
|
import React6 from "react";
|
889
791
|
var Chip = React6.forwardRef(
|
890
|
-
({
|
891
|
-
label,
|
892
|
-
size = "normal",
|
893
|
-
icon,
|
894
|
-
color,
|
895
|
-
radius = "inherit",
|
896
|
-
dot,
|
897
|
-
dotStatus = "none",
|
898
|
-
...rest
|
899
|
-
}, ref) => {
|
792
|
+
({ label, size = "normal", icon, color, radius = "inherit", dot, dotStatus = "none", ...rest }, ref) => {
|
900
793
|
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
901
794
|
let radiusStyles = {
|
902
795
|
inherit: " hawa-rounded",
|
@@ -943,12 +836,7 @@ var Chip = React6.forwardRef(
|
|
943
836
|
rest.className
|
944
837
|
)
|
945
838
|
},
|
946
|
-
dot && /* @__PURE__ */ React6.createElement(
|
947
|
-
"span",
|
948
|
-
{
|
949
|
-
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
950
|
-
}
|
951
|
-
),
|
839
|
+
dot && /* @__PURE__ */ React6.createElement("span", { className: cn(dotStyles[size], dotStatusStyles[dotStatus]) }),
|
952
840
|
icon && icon,
|
953
841
|
label
|
954
842
|
);
|
@@ -1058,18 +946,7 @@ var Accordion = React9.forwardRef(
|
|
1058
946
|
triggerclassNames
|
1059
947
|
)
|
1060
948
|
},
|
1061
|
-
/* @__PURE__ */ React9.createElement(
|
1062
|
-
"span",
|
1063
|
-
{
|
1064
|
-
className: cn(
|
1065
|
-
"hawa-flex hawa-flex-row",
|
1066
|
-
item.chip && "hawa-gap-2"
|
1067
|
-
)
|
1068
|
-
},
|
1069
|
-
item.trigger,
|
1070
|
-
" ",
|
1071
|
-
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
1072
|
-
)
|
949
|
+
/* @__PURE__ */ React9.createElement("span", { className: cn("hawa-flex hawa-flex-row", item.chip && "hawa-gap-2") }, item.trigger, " ", item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip }))
|
1073
950
|
),
|
1074
951
|
/* @__PURE__ */ React9.createElement(
|
1075
952
|
AccordionContent,
|
@@ -1251,22 +1128,13 @@ var Logos = {
|
|
1251
1128
|
}
|
1252
1129
|
)
|
1253
1130
|
),
|
1254
|
-
hawa: (props) => /* @__PURE__ */ React11.createElement(
|
1255
|
-
"
|
1131
|
+
hawa: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlSpace: "preserve", viewBox: "0 0 765 765", ...props }, /* @__PURE__ */ React11.createElement(
|
1132
|
+
"path",
|
1256
1133
|
{
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
},
|
1262
|
-
/* @__PURE__ */ React11.createElement(
|
1263
|
-
"path",
|
1264
|
-
{
|
1265
|
-
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
1266
|
-
fill: "currentColor"
|
1267
|
-
}
|
1268
|
-
)
|
1269
|
-
),
|
1134
|
+
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
1135
|
+
fill: "currentColor"
|
1136
|
+
}
|
1137
|
+
)),
|
1270
1138
|
sikka: (props) => /* @__PURE__ */ React11.createElement(
|
1271
1139
|
"svg",
|
1272
1140
|
{
|
@@ -1335,101 +1203,42 @@ var Logos = {
|
|
1335
1203
|
d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"
|
1336
1204
|
}
|
1337
1205
|
)),
|
1338
|
-
instagram: (props) => /* @__PURE__ */ React11.createElement(
|
1339
|
-
|
1206
|
+
instagram: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", ...props }, /* @__PURE__ */ React11.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })),
|
1207
|
+
telegram: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "Telegram"), /* @__PURE__ */ React11.createElement(
|
1208
|
+
"path",
|
1340
1209
|
{
|
1341
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1342
1210
|
fill: "currentColor",
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
telegram: (props) => /* @__PURE__ */ React11.createElement(
|
1349
|
-
"svg",
|
1211
|
+
d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
1212
|
+
}
|
1213
|
+
)),
|
1214
|
+
youtube: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "YouTube"), /* @__PURE__ */ React11.createElement(
|
1215
|
+
"path",
|
1350
1216
|
{
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
/* @__PURE__ */ React11.createElement(
|
1358
|
-
"path",
|
1359
|
-
{
|
1360
|
-
fill: "currentColor",
|
1361
|
-
d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
1362
|
-
}
|
1363
|
-
)
|
1364
|
-
),
|
1365
|
-
youtube: (props) => /* @__PURE__ */ React11.createElement(
|
1366
|
-
"svg",
|
1217
|
+
fill: "currentColor",
|
1218
|
+
d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
1219
|
+
}
|
1220
|
+
)),
|
1221
|
+
tiktok: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "TikTok"), /* @__PURE__ */ React11.createElement(
|
1222
|
+
"path",
|
1367
1223
|
{
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
/* @__PURE__ */ React11.createElement(
|
1375
|
-
"path",
|
1376
|
-
{
|
1377
|
-
fill: "currentColor",
|
1378
|
-
d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
1379
|
-
}
|
1380
|
-
)
|
1381
|
-
),
|
1382
|
-
tiktok: (props) => /* @__PURE__ */ React11.createElement(
|
1383
|
-
"svg",
|
1384
|
-
{
|
1385
|
-
role: "img",
|
1386
|
-
viewBox: "0 0 24 24",
|
1387
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1388
|
-
...props
|
1389
|
-
},
|
1390
|
-
/* @__PURE__ */ React11.createElement("title", null, "TikTok"),
|
1391
|
-
/* @__PURE__ */ React11.createElement(
|
1392
|
-
"path",
|
1393
|
-
{
|
1394
|
-
fill: "currentColor",
|
1395
|
-
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
1396
|
-
}
|
1397
|
-
)
|
1398
|
-
),
|
1399
|
-
linkedin: (props) => /* @__PURE__ */ React11.createElement(
|
1400
|
-
"svg",
|
1224
|
+
fill: "currentColor",
|
1225
|
+
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
1226
|
+
}
|
1227
|
+
)),
|
1228
|
+
linkedin: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "LinkedIn"), /* @__PURE__ */ React11.createElement(
|
1229
|
+
"path",
|
1401
1230
|
{
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
/* @__PURE__ */ React11.createElement(
|
1409
|
-
"path",
|
1410
|
-
{
|
1411
|
-
fill: "currentColor",
|
1412
|
-
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
1413
|
-
}
|
1414
|
-
)
|
1415
|
-
),
|
1416
|
-
behance: (props) => /* @__PURE__ */ React11.createElement(
|
1417
|
-
"svg",
|
1231
|
+
fill: "currentColor",
|
1232
|
+
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
1233
|
+
}
|
1234
|
+
)),
|
1235
|
+
behance: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "Behance"), /* @__PURE__ */ React11.createElement(
|
1236
|
+
"path",
|
1418
1237
|
{
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
},
|
1424
|
-
/* @__PURE__ */ React11.createElement("title", null, "Behance"),
|
1425
|
-
/* @__PURE__ */ React11.createElement(
|
1426
|
-
"path",
|
1427
|
-
{
|
1428
|
-
fill: "currentColor",
|
1429
|
-
d: "M16.969 16.927a2.561 2.561 0 0 0 1.901.677 2.501 2.501 0 0 0 1.531-.475c.362-.235.636-.584.779-.99h2.585a5.091 5.091 0 0 1-1.9 2.896 5.292 5.292 0 0 1-3.091.88 5.839 5.839 0 0 1-2.284-.433 4.871 4.871 0 0 1-1.723-1.211 5.657 5.657 0 0 1-1.08-1.874 7.057 7.057 0 0 1-.383-2.393c-.005-.8.129-1.595.396-2.349a5.313 5.313 0 0 1 5.088-3.604 4.87 4.87 0 0 1 2.376.563c.661.362 1.231.87 1.668 1.485a6.2 6.2 0 0 1 .943 2.133c.194.821.263 1.666.205 2.508h-7.699c-.063.79.184 1.574.688 2.187ZM6.947 4.084a8.065 8.065 0 0 1 1.928.198 4.29 4.29 0 0 1 1.49.638c.418.303.748.711.958 1.182.241.579.357 1.203.341 1.83a3.506 3.506 0 0 1-.506 1.961 3.726 3.726 0 0 1-1.503 1.287 3.588 3.588 0 0 1 2.027 1.437c.464.747.697 1.615.67 2.494a4.593 4.593 0 0 1-.423 2.032 3.945 3.945 0 0 1-1.163 1.413 5.114 5.114 0 0 1-1.683.807 7.135 7.135 0 0 1-1.928.259H0V4.084h6.947Zm-.235 12.9c.308.004.616-.029.916-.099a2.18 2.18 0 0 0 .766-.332c.228-.158.411-.371.534-.619.142-.317.208-.663.191-1.009a2.08 2.08 0 0 0-.642-1.715 2.618 2.618 0 0 0-1.696-.505h-3.54v4.279h3.471Zm13.635-5.967a2.13 2.13 0 0 0-1.654-.619 2.336 2.336 0 0 0-1.163.259 2.474 2.474 0 0 0-.738.62 2.359 2.359 0 0 0-.396.792c-.074.239-.12.485-.137.734h4.769a3.239 3.239 0 0 0-.679-1.785l-.002-.001Zm-13.813-.648a2.254 2.254 0 0 0 1.423-.433c.399-.355.607-.88.56-1.413a1.916 1.916 0 0 0-.178-.891 1.298 1.298 0 0 0-.495-.533 1.851 1.851 0 0 0-.711-.274 3.966 3.966 0 0 0-.835-.073H3.241v3.631h3.293v-.014ZM21.62 5.122h-5.976v1.527h5.976V5.122Z"
|
1430
|
-
}
|
1431
|
-
)
|
1432
|
-
),
|
1238
|
+
fill: "currentColor",
|
1239
|
+
d: "M16.969 16.927a2.561 2.561 0 0 0 1.901.677 2.501 2.501 0 0 0 1.531-.475c.362-.235.636-.584.779-.99h2.585a5.091 5.091 0 0 1-1.9 2.896 5.292 5.292 0 0 1-3.091.88 5.839 5.839 0 0 1-2.284-.433 4.871 4.871 0 0 1-1.723-1.211 5.657 5.657 0 0 1-1.08-1.874 7.057 7.057 0 0 1-.383-2.393c-.005-.8.129-1.595.396-2.349a5.313 5.313 0 0 1 5.088-3.604 4.87 4.87 0 0 1 2.376.563c.661.362 1.231.87 1.668 1.485a6.2 6.2 0 0 1 .943 2.133c.194.821.263 1.666.205 2.508h-7.699c-.063.79.184 1.574.688 2.187ZM6.947 4.084a8.065 8.065 0 0 1 1.928.198 4.29 4.29 0 0 1 1.49.638c.418.303.748.711.958 1.182.241.579.357 1.203.341 1.83a3.506 3.506 0 0 1-.506 1.961 3.726 3.726 0 0 1-1.503 1.287 3.588 3.588 0 0 1 2.027 1.437c.464.747.697 1.615.67 2.494a4.593 4.593 0 0 1-.423 2.032 3.945 3.945 0 0 1-1.163 1.413 5.114 5.114 0 0 1-1.683.807 7.135 7.135 0 0 1-1.928.259H0V4.084h6.947Zm-.235 12.9c.308.004.616-.029.916-.099a2.18 2.18 0 0 0 .766-.332c.228-.158.411-.371.534-.619.142-.317.208-.663.191-1.009a2.08 2.08 0 0 0-.642-1.715 2.618 2.618 0 0 0-1.696-.505h-3.54v4.279h3.471Zm13.635-5.967a2.13 2.13 0 0 0-1.654-.619 2.336 2.336 0 0 0-1.163.259 2.474 2.474 0 0 0-.738.62 2.359 2.359 0 0 0-.396.792c-.074.239-.12.485-.137.734h4.769a3.239 3.239 0 0 0-.679-1.785l-.002-.001Zm-13.813-.648a2.254 2.254 0 0 0 1.423-.433c.399-.355.607-.88.56-1.413a1.916 1.916 0 0 0-.178-.891 1.298 1.298 0 0 0-.495-.533 1.851 1.851 0 0 0-.711-.274 3.966 3.966 0 0 0-.835-.073H3.241v3.631h3.293v-.014ZM21.62 5.122h-5.976v1.527h5.976V5.122Z"
|
1240
|
+
}
|
1241
|
+
)),
|
1433
1242
|
microsoft: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React11.createElement(
|
1434
1243
|
"path",
|
1435
1244
|
{
|
@@ -1437,21 +1246,13 @@ var Logos = {
|
|
1437
1246
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
1438
1247
|
}
|
1439
1248
|
)),
|
1440
|
-
github: (props) => /* @__PURE__ */ React11.createElement(
|
1441
|
-
"
|
1249
|
+
github: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 438.549 438.549", ...props }, /* @__PURE__ */ React11.createElement(
|
1250
|
+
"path",
|
1442
1251
|
{
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
/* @__PURE__ */ React11.createElement(
|
1448
|
-
"path",
|
1449
|
-
{
|
1450
|
-
fill: "currentColor",
|
1451
|
-
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
1452
|
-
}
|
1453
|
-
)
|
1454
|
-
),
|
1252
|
+
fill: "currentColor",
|
1253
|
+
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
1254
|
+
}
|
1255
|
+
)),
|
1455
1256
|
radix: (props) => /* @__PURE__ */ React11.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React11.createElement(
|
1456
1257
|
"path",
|
1457
1258
|
{
|
@@ -1508,23 +1309,13 @@ var Logos = {
|
|
1508
1309
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
1509
1310
|
}
|
1510
1311
|
)),
|
1511
|
-
googleplay: (props) => /* @__PURE__ */ React11.createElement(
|
1512
|
-
"
|
1312
|
+
googleplay: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "Google Play"), /* @__PURE__ */ React11.createElement(
|
1313
|
+
"path",
|
1513
1314
|
{
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
},
|
1519
|
-
/* @__PURE__ */ React11.createElement("title", null, "Google Play"),
|
1520
|
-
/* @__PURE__ */ React11.createElement(
|
1521
|
-
"path",
|
1522
|
-
{
|
1523
|
-
fill: "currentColor",
|
1524
|
-
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
1525
|
-
}
|
1526
|
-
)
|
1527
|
-
),
|
1315
|
+
fill: "currentColor",
|
1316
|
+
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
1317
|
+
}
|
1318
|
+
)),
|
1528
1319
|
apple: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
1529
1320
|
"path",
|
1530
1321
|
{
|
@@ -1532,23 +1323,13 @@ var Logos = {
|
|
1532
1323
|
fill: "currentColor"
|
1533
1324
|
}
|
1534
1325
|
)),
|
1535
|
-
applestore: (props) => /* @__PURE__ */ React11.createElement(
|
1536
|
-
"
|
1326
|
+
applestore: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "App Store"), /* @__PURE__ */ React11.createElement(
|
1327
|
+
"path",
|
1537
1328
|
{
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
},
|
1543
|
-
/* @__PURE__ */ React11.createElement("title", null, "App Store"),
|
1544
|
-
/* @__PURE__ */ React11.createElement(
|
1545
|
-
"path",
|
1546
|
-
{
|
1547
|
-
fill: "currentColor",
|
1548
|
-
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
1549
|
-
}
|
1550
|
-
)
|
1551
|
-
),
|
1329
|
+
fill: "currentColor",
|
1330
|
+
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
1331
|
+
}
|
1332
|
+
)),
|
1552
1333
|
paypal: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React11.createElement(
|
1553
1334
|
"path",
|
1554
1335
|
{
|
@@ -1572,50 +1353,21 @@ var Logos = {
|
|
1572
1353
|
},
|
1573
1354
|
/* @__PURE__ */ React11.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
1574
1355
|
),
|
1575
|
-
whatsapp: (props) => /* @__PURE__ */ React11.createElement(
|
1576
|
-
|
1356
|
+
whatsapp: (props) => /* @__PURE__ */ React11.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React11.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })),
|
1357
|
+
visa: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "Visa"), /* @__PURE__ */ React11.createElement(
|
1358
|
+
"path",
|
1577
1359
|
{
|
1578
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1579
|
-
viewBox: "0 0 24 24",
|
1580
1360
|
fill: "currentColor",
|
1581
|
-
|
1582
|
-
}
|
1583
|
-
|
1584
|
-
),
|
1585
|
-
|
1586
|
-
"svg",
|
1587
|
-
{
|
1588
|
-
role: "img",
|
1589
|
-
viewBox: "0 0 24 24",
|
1590
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1591
|
-
...props
|
1592
|
-
},
|
1593
|
-
/* @__PURE__ */ React11.createElement("title", null, "Visa"),
|
1594
|
-
/* @__PURE__ */ React11.createElement(
|
1595
|
-
"path",
|
1596
|
-
{
|
1597
|
-
fill: "currentColor",
|
1598
|
-
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
1599
|
-
}
|
1600
|
-
)
|
1601
|
-
),
|
1602
|
-
mastercard: (props) => /* @__PURE__ */ React11.createElement(
|
1603
|
-
"svg",
|
1361
|
+
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
1362
|
+
}
|
1363
|
+
)),
|
1364
|
+
mastercard: (props) => /* @__PURE__ */ React11.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React11.createElement("title", null, "MasterCard"), /* @__PURE__ */ React11.createElement(
|
1365
|
+
"path",
|
1604
1366
|
{
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
},
|
1610
|
-
/* @__PURE__ */ React11.createElement("title", null, "MasterCard"),
|
1611
|
-
/* @__PURE__ */ React11.createElement(
|
1612
|
-
"path",
|
1613
|
-
{
|
1614
|
-
fill: "currentColor",
|
1615
|
-
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
1616
|
-
}
|
1617
|
-
)
|
1618
|
-
)
|
1367
|
+
fill: "currentColor",
|
1368
|
+
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
1369
|
+
}
|
1370
|
+
))
|
1619
1371
|
};
|
1620
1372
|
|
1621
1373
|
// elements/navigationMenu/NavigationMenu.tsx
|
@@ -1692,30 +1444,22 @@ var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) =>
|
|
1692
1444
|
}
|
1693
1445
|
));
|
1694
1446
|
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React12.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React12.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React12.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
1695
|
-
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1696
|
-
|
1447
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { className: cn("hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center") }, /* @__PURE__ */ React12.createElement(
|
1448
|
+
NavigationMenuPrimitive.Viewport,
|
1697
1449
|
{
|
1698
1450
|
className: cn(
|
1699
|
-
"hawa-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1704
|
-
{
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
|
1710
|
-
|
1711
|
-
style: {
|
1712
|
-
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
1713
|
-
},
|
1714
|
-
ref,
|
1715
|
-
...props
|
1716
|
-
}
|
1717
|
-
)
|
1718
|
-
));
|
1451
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90",
|
1452
|
+
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
1453
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
1454
|
+
className
|
1455
|
+
),
|
1456
|
+
style: {
|
1457
|
+
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
1458
|
+
},
|
1459
|
+
ref,
|
1460
|
+
...props
|
1461
|
+
}
|
1462
|
+
)));
|
1719
1463
|
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1720
1464
|
NavigationMenuPrimitive.Indicator,
|
1721
1465
|
{
|
@@ -1806,58 +1550,53 @@ var sheetVariants = cva2(
|
|
1806
1550
|
}
|
1807
1551
|
}
|
1808
1552
|
);
|
1809
|
-
var SheetContent = React13.forwardRef(
|
1810
|
-
|
1811
|
-
|
1553
|
+
var SheetContent = React13.forwardRef(({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
1554
|
+
SheetPrimitive.Content,
|
1555
|
+
{
|
1556
|
+
ref,
|
1557
|
+
className: cn(sheetVariants({ side }), className),
|
1558
|
+
onPointerDownOutside: (e) => {
|
1559
|
+
if (persist) {
|
1560
|
+
e.preventDefault();
|
1561
|
+
}
|
1562
|
+
},
|
1563
|
+
...props
|
1564
|
+
},
|
1565
|
+
children,
|
1566
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
1567
|
+
SheetPrimitive.Close,
|
1812
1568
|
{
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1569
|
+
className: cn(
|
1570
|
+
"hawa-absolute hawa-rounded-sm 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-secondary",
|
1571
|
+
{
|
1572
|
+
"hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
|
1573
|
+
"hawa-left-4 hawa-top-4": side === "right",
|
1574
|
+
"hawa-bottom-4 hawa-right-4": side === "top"
|
1818
1575
|
}
|
1819
|
-
|
1820
|
-
...props
|
1576
|
+
)
|
1821
1577
|
},
|
1822
|
-
|
1823
|
-
|
1824
|
-
SheetPrimitive.Close,
|
1578
|
+
/* @__PURE__ */ React13.createElement(
|
1579
|
+
"svg",
|
1825
1580
|
{
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
"hawa-bottom-4 hawa-right-4": side === "top"
|
1832
|
-
}
|
1833
|
-
)
|
1581
|
+
"aria-label": "Close Icon",
|
1582
|
+
"aria-hidden": "true",
|
1583
|
+
className: "hawa-h-5 hawa-w-5",
|
1584
|
+
fill: "currentColor",
|
1585
|
+
viewBox: "0 0 20 20"
|
1834
1586
|
},
|
1835
1587
|
/* @__PURE__ */ React13.createElement(
|
1836
|
-
"
|
1588
|
+
"path",
|
1837
1589
|
{
|
1838
|
-
|
1839
|
-
"
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
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",
|
1849
|
-
clipRule: "evenodd"
|
1850
|
-
}
|
1851
|
-
)
|
1852
|
-
),
|
1853
|
-
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1854
|
-
)
|
1855
|
-
))
|
1856
|
-
);
|
1857
|
-
var SheetHeader = ({
|
1858
|
-
className,
|
1859
|
-
...props
|
1860
|
-
}) => /* @__PURE__ */ React13.createElement(
|
1590
|
+
fillRule: "evenodd",
|
1591
|
+
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",
|
1592
|
+
clipRule: "evenodd"
|
1593
|
+
}
|
1594
|
+
)
|
1595
|
+
),
|
1596
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1597
|
+
)
|
1598
|
+
)));
|
1599
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ React13.createElement(
|
1861
1600
|
"div",
|
1862
1601
|
{
|
1863
1602
|
className: cn(
|
@@ -1867,10 +1606,7 @@ var SheetHeader = ({
|
|
1867
1606
|
...props
|
1868
1607
|
}
|
1869
1608
|
);
|
1870
|
-
var SheetFooter = ({
|
1871
|
-
className,
|
1872
|
-
...props
|
1873
|
-
}) => /* @__PURE__ */ React13.createElement(
|
1609
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ React13.createElement(
|
1874
1610
|
"div",
|
1875
1611
|
{
|
1876
1612
|
className: cn(
|
@@ -1884,10 +1620,7 @@ var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
1884
1620
|
SheetPrimitive.Title,
|
1885
1621
|
{
|
1886
1622
|
ref,
|
1887
|
-
className: cn(
|
1888
|
-
"hawa-text-lg hawa-font-semibold hawa-text-foreground",
|
1889
|
-
className
|
1890
|
-
),
|
1623
|
+
className: cn("hawa-text-lg hawa-font-semibold hawa-text-foreground", className),
|
1891
1624
|
...props
|
1892
1625
|
}
|
1893
1626
|
));
|
@@ -1924,23 +1657,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1924
1657
|
}
|
1925
1658
|
));
|
1926
1659
|
var DialogContent = React14.forwardRef(
|
1927
|
-
({
|
1928
|
-
ids,
|
1929
|
-
className,
|
1930
|
-
classNames,
|
1931
|
-
children,
|
1932
|
-
persist,
|
1933
|
-
hideCloseButton,
|
1934
|
-
overlayProps,
|
1935
|
-
...props
|
1936
|
-
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(
|
1937
|
-
DialogOverlay,
|
1938
|
-
{
|
1939
|
-
className: classNames == null ? void 0 : classNames.overlay,
|
1940
|
-
id: ids == null ? void 0 : ids.overlay,
|
1941
|
-
...overlayProps
|
1942
|
-
}
|
1943
|
-
), /* @__PURE__ */ React14.createElement(
|
1660
|
+
({ ids, className, classNames, children, persist, hideCloseButton, overlayProps, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay, ...overlayProps }), /* @__PURE__ */ React14.createElement(
|
1944
1661
|
DialogPrimitive.Content,
|
1945
1662
|
{
|
1946
1663
|
onPointerDownOutside: (e) => {
|
@@ -1960,19 +1677,99 @@ var DialogContent = React14.forwardRef(
|
|
1960
1677
|
DialogPrimitive.Close,
|
1961
1678
|
{
|
1962
1679
|
className: cn(
|
1963
|
-
"hawa-absolute hawa-top-4 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",
|
1964
|
-
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4",
|
1965
|
-
classNames == null ? void 0 : classNames.closeButton
|
1966
|
-
),
|
1967
|
-
id: ids == null ? void 0 : ids.closeButton
|
1680
|
+
"hawa-absolute hawa-top-4 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",
|
1681
|
+
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4",
|
1682
|
+
classNames == null ? void 0 : classNames.closeButton
|
1683
|
+
),
|
1684
|
+
id: ids == null ? void 0 : ids.closeButton
|
1685
|
+
},
|
1686
|
+
/* @__PURE__ */ React14.createElement(
|
1687
|
+
"svg",
|
1688
|
+
{
|
1689
|
+
id: ids == null ? void 0 : ids.closeIcon,
|
1690
|
+
"aria-label": "Close Icon",
|
1691
|
+
"aria-hidden": "true",
|
1692
|
+
className: "hawa-h-5 hawa-w-5",
|
1693
|
+
fill: "currentColor",
|
1694
|
+
viewBox: "0 0 20 20"
|
1695
|
+
},
|
1696
|
+
/* @__PURE__ */ React14.createElement(
|
1697
|
+
"path",
|
1698
|
+
{
|
1699
|
+
fillRule: "evenodd",
|
1700
|
+
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",
|
1701
|
+
clipRule: "evenodd"
|
1702
|
+
}
|
1703
|
+
)
|
1704
|
+
),
|
1705
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1706
|
+
)
|
1707
|
+
))
|
1708
|
+
);
|
1709
|
+
var DialogCarouselContent = React14.forwardRef(({ className, children, onPrev, persist, hideCloseButton, hidePrevButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1710
|
+
DialogPrimitive.Content,
|
1711
|
+
{
|
1712
|
+
onPointerDownOutside: (e) => {
|
1713
|
+
if (persist) {
|
1714
|
+
e.preventDefault();
|
1715
|
+
}
|
1716
|
+
},
|
1717
|
+
ref,
|
1718
|
+
className: cn(
|
1719
|
+
"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",
|
1720
|
+
className
|
1721
|
+
),
|
1722
|
+
...props
|
1723
|
+
},
|
1724
|
+
children,
|
1725
|
+
/* @__PURE__ */ React14.createElement(
|
1726
|
+
"div",
|
1727
|
+
{
|
1728
|
+
className: cn(
|
1729
|
+
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
1730
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
1731
|
+
)
|
1732
|
+
},
|
1733
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
1734
|
+
"div",
|
1735
|
+
{
|
1736
|
+
onClick: onPrev,
|
1737
|
+
className: cn(
|
1738
|
+
"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",
|
1739
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
1740
|
+
)
|
1741
|
+
},
|
1742
|
+
/* @__PURE__ */ React14.createElement(
|
1743
|
+
"svg",
|
1744
|
+
{
|
1745
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1746
|
+
width: "24",
|
1747
|
+
height: "24",
|
1748
|
+
viewBox: "0 0 24 24",
|
1749
|
+
fill: "none",
|
1750
|
+
className: "hawa-h-6 hawa-w-6",
|
1751
|
+
stroke: "currentColor",
|
1752
|
+
strokeWidth: "2",
|
1753
|
+
strokeLinecap: "round",
|
1754
|
+
strokeLinejoin: "round"
|
1755
|
+
},
|
1756
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
1757
|
+
)
|
1758
|
+
),
|
1759
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1760
|
+
DialogPrimitive.Close,
|
1761
|
+
{
|
1762
|
+
className: cn(
|
1763
|
+
"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",
|
1764
|
+
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
|
1765
|
+
)
|
1968
1766
|
},
|
1969
1767
|
/* @__PURE__ */ React14.createElement(
|
1970
1768
|
"svg",
|
1971
1769
|
{
|
1972
|
-
id: ids == null ? void 0 : ids.closeIcon,
|
1973
1770
|
"aria-label": "Close Icon",
|
1974
1771
|
"aria-hidden": "true",
|
1975
|
-
className: "hawa-h-
|
1772
|
+
className: "hawa-h-6 hawa-w-6",
|
1976
1773
|
fill: "currentColor",
|
1977
1774
|
viewBox: "0 0 20 20"
|
1978
1775
|
},
|
@@ -1987,102 +1784,9 @@ var DialogContent = React14.forwardRef(
|
|
1987
1784
|
),
|
1988
1785
|
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1989
1786
|
)
|
1990
|
-
)
|
1991
|
-
);
|
1992
|
-
var
|
1993
|
-
({
|
1994
|
-
className,
|
1995
|
-
children,
|
1996
|
-
onPrev,
|
1997
|
-
persist,
|
1998
|
-
hideCloseButton,
|
1999
|
-
hidePrevButton,
|
2000
|
-
...props
|
2001
|
-
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
2002
|
-
DialogPrimitive.Content,
|
2003
|
-
{
|
2004
|
-
onPointerDownOutside: (e) => {
|
2005
|
-
if (persist) {
|
2006
|
-
e.preventDefault();
|
2007
|
-
}
|
2008
|
-
},
|
2009
|
-
ref,
|
2010
|
-
className: cn(
|
2011
|
-
"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",
|
2012
|
-
className
|
2013
|
-
),
|
2014
|
-
...props
|
2015
|
-
},
|
2016
|
-
children,
|
2017
|
-
/* @__PURE__ */ React14.createElement(
|
2018
|
-
"div",
|
2019
|
-
{
|
2020
|
-
className: cn(
|
2021
|
-
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
2022
|
-
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
2023
|
-
)
|
2024
|
-
},
|
2025
|
-
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
2026
|
-
"div",
|
2027
|
-
{
|
2028
|
-
onClick: onPrev,
|
2029
|
-
className: cn(
|
2030
|
-
"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",
|
2031
|
-
props.dir === "rtl" && "hawa-rotate-180"
|
2032
|
-
)
|
2033
|
-
},
|
2034
|
-
/* @__PURE__ */ React14.createElement(
|
2035
|
-
"svg",
|
2036
|
-
{
|
2037
|
-
xmlns: "http://www.w3.org/2000/svg",
|
2038
|
-
width: "24",
|
2039
|
-
height: "24",
|
2040
|
-
viewBox: "0 0 24 24",
|
2041
|
-
fill: "none",
|
2042
|
-
className: "hawa-h-6 hawa-w-6",
|
2043
|
-
stroke: "currentColor",
|
2044
|
-
strokeWidth: "2",
|
2045
|
-
strokeLinecap: "round",
|
2046
|
-
strokeLinejoin: "round"
|
2047
|
-
},
|
2048
|
-
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
2049
|
-
)
|
2050
|
-
),
|
2051
|
-
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
2052
|
-
DialogPrimitive.Close,
|
2053
|
-
{
|
2054
|
-
className: cn(
|
2055
|
-
"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",
|
2056
|
-
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
|
2057
|
-
)
|
2058
|
-
},
|
2059
|
-
/* @__PURE__ */ React14.createElement(
|
2060
|
-
"svg",
|
2061
|
-
{
|
2062
|
-
"aria-label": "Close Icon",
|
2063
|
-
"aria-hidden": "true",
|
2064
|
-
className: "hawa-h-6 hawa-w-6",
|
2065
|
-
fill: "currentColor",
|
2066
|
-
viewBox: "0 0 20 20"
|
2067
|
-
},
|
2068
|
-
/* @__PURE__ */ React14.createElement(
|
2069
|
-
"path",
|
2070
|
-
{
|
2071
|
-
fillRule: "evenodd",
|
2072
|
-
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",
|
2073
|
-
clipRule: "evenodd"
|
2074
|
-
}
|
2075
|
-
)
|
2076
|
-
),
|
2077
|
-
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2078
|
-
)
|
2079
|
-
)
|
2080
|
-
))
|
2081
|
-
);
|
2082
|
-
var DialogHeader = ({
|
2083
|
-
className,
|
2084
|
-
...props
|
2085
|
-
}) => /* @__PURE__ */ React14.createElement(
|
1787
|
+
)
|
1788
|
+
)));
|
1789
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React14.createElement(
|
2086
1790
|
"div",
|
2087
1791
|
{
|
2088
1792
|
className: cn(
|
@@ -2107,17 +1811,11 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
2107
1811
|
DialogPrimitive.Description,
|
2108
1812
|
{
|
2109
1813
|
ref,
|
2110
|
-
className: cn(
|
2111
|
-
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
2112
|
-
className
|
2113
|
-
),
|
1814
|
+
className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
|
2114
1815
|
...props
|
2115
1816
|
}
|
2116
1817
|
));
|
2117
|
-
var DialogFooter = ({
|
2118
|
-
className,
|
2119
|
-
...props
|
2120
|
-
}) => /* @__PURE__ */ React14.createElement(
|
1818
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React14.createElement(
|
2121
1819
|
"div",
|
2122
1820
|
{
|
2123
1821
|
className: cn(
|
@@ -2158,11 +1856,7 @@ var DialogCarousel = ({
|
|
2158
1856
|
))
|
2159
1857
|
)));
|
2160
1858
|
};
|
2161
|
-
var DialogSteps = ({
|
2162
|
-
currentStep,
|
2163
|
-
visibleStepRef,
|
2164
|
-
children
|
2165
|
-
}) => {
|
1859
|
+
var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
|
2166
1860
|
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
2167
1861
|
React14.useEffect(() => {
|
2168
1862
|
if (visibleStepRef.current) {
|
@@ -2191,21 +1885,8 @@ var DialogSteps = ({
|
|
2191
1885
|
))
|
2192
1886
|
);
|
2193
1887
|
};
|
2194
|
-
var DialogStep = ({
|
2195
|
-
id,
|
2196
|
-
children,
|
2197
|
-
className,
|
2198
|
-
stepRef
|
2199
|
-
}) => {
|
2200
|
-
return /* @__PURE__ */ React14.createElement(
|
2201
|
-
"div",
|
2202
|
-
{
|
2203
|
-
id,
|
2204
|
-
ref: stepRef,
|
2205
|
-
className: cn("hawa-w-full hawa-px-1", className)
|
2206
|
-
},
|
2207
|
-
children
|
2208
|
-
);
|
1888
|
+
var DialogStep = ({ id, children, className, stepRef }) => {
|
1889
|
+
return /* @__PURE__ */ React14.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
|
2209
1890
|
};
|
2210
1891
|
var DialogBody = ({ children, className }) => {
|
2211
1892
|
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
@@ -2232,9 +1913,7 @@ import { cva as cva3 } from "class-variance-authority";
|
|
2232
1913
|
|
2233
1914
|
// elements/helperText/HelperText.tsx
|
2234
1915
|
import React15 from "react";
|
2235
|
-
var HelperText = ({
|
2236
|
-
helperText
|
2237
|
-
}) => /* @__PURE__ */ React15.createElement(
|
1916
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ React15.createElement(
|
2238
1917
|
"p",
|
2239
1918
|
{
|
2240
1919
|
className: cn(
|
@@ -2475,20 +2154,9 @@ var Alert = ({
|
|
2475
2154
|
), props.actions && /* @__PURE__ */ React18.createElement(
|
2476
2155
|
"div",
|
2477
2156
|
{
|
2478
|
-
className: cn(
|
2479
|
-
"hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2",
|
2480
|
-
classNames == null ? void 0 : classNames.actions
|
2481
|
-
)
|
2157
|
+
className: cn("hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.actions)
|
2482
2158
|
},
|
2483
|
-
props.actions.map((act, index) => /* @__PURE__ */ React18.createElement(
|
2484
|
-
Button,
|
2485
|
-
{
|
2486
|
-
key: index,
|
2487
|
-
variant: act.variant,
|
2488
|
-
onClick: act.onClick()
|
2489
|
-
},
|
2490
|
-
act.label
|
2491
|
-
))
|
2159
|
+
props.actions.map((act, index) => /* @__PURE__ */ React18.createElement(Button, { key: index, variant: act.variant, onClick: act.onClick() }, act.label))
|
2492
2160
|
))),
|
2493
2161
|
!props.persistent && /* @__PURE__ */ React18.createElement(
|
2494
2162
|
"button",
|
@@ -2510,9 +2178,7 @@ var Alert = ({
|
|
2510
2178
|
setClosed(true);
|
2511
2179
|
setTimeout(() => {
|
2512
2180
|
if (alertRef == null ? void 0 : alertRef.current) {
|
2513
|
-
alertRef == null ? void 0 : alertRef.current.removeChild(
|
2514
|
-
alertRef == null ? void 0 : alertRef.current.children[0]
|
2515
|
-
);
|
2181
|
+
alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
|
2516
2182
|
}
|
2517
2183
|
}, 200);
|
2518
2184
|
}
|
@@ -2699,16 +2365,7 @@ var Checkbox = ({
|
|
2699
2365
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
2700
2366
|
)
|
2701
2367
|
},
|
2702
|
-
/* @__PURE__ */ React21.createElement(
|
2703
|
-
CheckboxElement,
|
2704
|
-
{
|
2705
|
-
...props,
|
2706
|
-
size,
|
2707
|
-
radius,
|
2708
|
-
disabled,
|
2709
|
-
id
|
2710
|
-
}
|
2711
|
-
),
|
2368
|
+
/* @__PURE__ */ React21.createElement(CheckboxElement, { ...props, size, radius, disabled, id }),
|
2712
2369
|
(label || helperText) && /* @__PURE__ */ React21.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React21.createElement(
|
2713
2370
|
"label",
|
2714
2371
|
{
|
@@ -2783,9 +2440,7 @@ var CheckboxElement = React21.forwardRef(({ radius = "inherit", size = "default"
|
|
2783
2440
|
/* @__PURE__ */ React21.createElement(
|
2784
2441
|
CheckboxPrimitive.Indicator,
|
2785
2442
|
{
|
2786
|
-
className: cn(
|
2787
|
-
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
2788
|
-
)
|
2443
|
+
className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
|
2789
2444
|
},
|
2790
2445
|
/* @__PURE__ */ React21.createElement(
|
2791
2446
|
"svg",
|
@@ -2980,14 +2635,16 @@ var Input = forwardRef13(
|
|
2980
2635
|
|
2981
2636
|
// elements/table/Table.tsx
|
2982
2637
|
import * as React23 from "react";
|
2983
|
-
var Table = React23.forwardRef(
|
2984
|
-
"
|
2985
|
-
|
2986
|
-
|
2987
|
-
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
2638
|
+
var Table = React23.forwardRef(
|
2639
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React23.createElement(
|
2640
|
+
"table",
|
2641
|
+
{
|
2642
|
+
ref,
|
2643
|
+
className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
|
2644
|
+
...props
|
2645
|
+
}
|
2646
|
+
))
|
2647
|
+
);
|
2991
2648
|
var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
2992
2649
|
"thead",
|
2993
2650
|
{
|
@@ -3020,26 +2677,25 @@ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3020
2677
|
"tfoot",
|
3021
2678
|
{
|
3022
2679
|
ref,
|
3023
|
-
className: cn(
|
3024
|
-
"hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
|
3025
|
-
className
|
3026
|
-
),
|
3027
|
-
...props
|
3028
|
-
}
|
3029
|
-
));
|
3030
|
-
var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
3031
|
-
"tr",
|
3032
|
-
{
|
3033
|
-
ref,
|
3034
|
-
className: cn(
|
3035
|
-
"hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
|
3036
|
-
"[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
|
3037
|
-
"[&:not(:last-child)]:hawa-border-b",
|
3038
|
-
className
|
3039
|
-
),
|
2680
|
+
className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className),
|
3040
2681
|
...props
|
3041
2682
|
}
|
3042
2683
|
));
|
2684
|
+
var TableRow = React23.forwardRef(
|
2685
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
2686
|
+
"tr",
|
2687
|
+
{
|
2688
|
+
ref,
|
2689
|
+
className: cn(
|
2690
|
+
"hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
|
2691
|
+
"[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
|
2692
|
+
"[&:not(:last-child)]:hawa-border-b",
|
2693
|
+
className
|
2694
|
+
),
|
2695
|
+
...props
|
2696
|
+
}
|
2697
|
+
)
|
2698
|
+
);
|
3043
2699
|
var TableCell = React23.forwardRef(
|
3044
2700
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
3045
2701
|
let paddingStyles = {
|
@@ -3072,10 +2728,7 @@ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3072
2728
|
"caption",
|
3073
2729
|
{
|
3074
2730
|
ref,
|
3075
|
-
className: cn(
|
3076
|
-
"hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
|
3077
|
-
className
|
3078
|
-
),
|
2731
|
+
className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className),
|
3079
2732
|
...props
|
3080
2733
|
}
|
3081
2734
|
));
|
@@ -3107,9 +2760,7 @@ var DataTable = ({
|
|
3107
2760
|
const [sorting, setSorting] = React24.useState(
|
3108
2761
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
3109
2762
|
);
|
3110
|
-
const [columnFilters, setColumnFilters] = React24.useState(
|
3111
|
-
[]
|
3112
|
-
);
|
2763
|
+
const [columnFilters, setColumnFilters] = React24.useState([]);
|
3113
2764
|
const [globalFilter, setGlobalFilter] = React24.useState("");
|
3114
2765
|
const [expanded, setExpanded] = React24.useState({});
|
3115
2766
|
const [columnVisibility, setColumnVisibility] = React24.useState(() => {
|
@@ -3251,52 +2902,38 @@ var DataTable = ({
|
|
3251
2902
|
)
|
3252
2903
|
) : null
|
3253
2904
|
}
|
3254
|
-
), enableHideColumns && /* @__PURE__ */ React24.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React24.createElement(
|
3255
|
-
|
2905
|
+
), enableHideColumns && /* @__PURE__ */ React24.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React24.createElement(Button, { variant: "outline", className: "hawa-flex hawa-flex-row hawa-gap-2" }, ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns", /* @__PURE__ */ React24.createElement(
|
2906
|
+
"svg",
|
3256
2907
|
{
|
3257
|
-
|
3258
|
-
|
2908
|
+
width: "15",
|
2909
|
+
height: "15",
|
2910
|
+
viewBox: "0 0 15 15",
|
2911
|
+
fill: "none",
|
2912
|
+
xmlns: "http://www.w3.org/2000/svg"
|
3259
2913
|
},
|
3260
|
-
((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
|
3261
2914
|
/* @__PURE__ */ React24.createElement(
|
3262
|
-
"
|
2915
|
+
"path",
|
3263
2916
|
{
|
3264
|
-
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
},
|
3270
|
-
/* @__PURE__ */ React24.createElement(
|
3271
|
-
"path",
|
3272
|
-
{
|
3273
|
-
d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
|
3274
|
-
fill: "currentColor",
|
3275
|
-
"fill-rule": "evenodd",
|
3276
|
-
"clip-rule": "evenodd"
|
3277
|
-
}
|
3278
|
-
)
|
2917
|
+
d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
|
2918
|
+
fill: "currentColor",
|
2919
|
+
fillRule: "evenodd",
|
2920
|
+
clipRule: "evenodd"
|
2921
|
+
}
|
3279
2922
|
)
|
3280
|
-
)), /* @__PURE__ */ React24.createElement(
|
3281
|
-
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
translateFn ? translateFn(
|
3295
|
-
((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
|
3296
|
-
) : column.id
|
3297
|
-
);
|
3298
|
-
})
|
3299
|
-
))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
2923
|
+
))), /* @__PURE__ */ React24.createElement(DropdownMenuContent, { align: props.direction === "rtl" ? "start" : "end" }, table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
|
2924
|
+
var _a2, _b2;
|
2925
|
+
return /* @__PURE__ */ React24.createElement(
|
2926
|
+
DropdownMenuCheckboxItem,
|
2927
|
+
{
|
2928
|
+
key: column.id,
|
2929
|
+
checked: column.getIsVisible(),
|
2930
|
+
onCheckedChange: (value) => column.toggleVisibility(!!value)
|
2931
|
+
},
|
2932
|
+
translateFn ? translateFn(
|
2933
|
+
((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
|
2934
|
+
) : column.id
|
2935
|
+
);
|
2936
|
+
})))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
3300
2937
|
return /* @__PURE__ */ React24.createElement(
|
3301
2938
|
Button,
|
3302
2939
|
{
|
@@ -3346,45 +2983,25 @@ var DataTable = ({
|
|
3346
2983
|
width: `${header.column.columnDef.size}px !important`
|
3347
2984
|
}
|
3348
2985
|
},
|
3349
|
-
header.isPlaceholder ? null : flexRender(
|
3350
|
-
header.column.columnDef.header,
|
3351
|
-
header.getContext()
|
3352
|
-
)
|
2986
|
+
header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())
|
3353
2987
|
);
|
3354
|
-
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(
|
3355
|
-
|
3356
|
-
|
3357
|
-
|
3358
|
-
|
3359
|
-
|
3360
|
-
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3365
|
-
key: cell.id,
|
3366
|
-
dir: props.direction,
|
3367
|
-
style: {
|
3368
|
-
maxWidth: `${cell.column.columnDef.maxSize}px !important`,
|
3369
|
-
minWidth: `${cell.column.columnDef.minSize}px !important`,
|
3370
|
-
width: `${cell.column.columnDef.size}px !important`
|
3371
|
-
},
|
3372
|
-
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
|
2988
|
+
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
|
2989
|
+
var _a2;
|
2990
|
+
return /* @__PURE__ */ React24.createElement(
|
2991
|
+
TableCell,
|
2992
|
+
{
|
2993
|
+
key: cell.id,
|
2994
|
+
dir: props.direction,
|
2995
|
+
style: {
|
2996
|
+
maxWidth: `${cell.column.columnDef.maxSize}px !important`,
|
2997
|
+
minWidth: `${cell.column.columnDef.minSize}px !important`,
|
2998
|
+
width: `${cell.column.columnDef.size}px !important`
|
3373
2999
|
},
|
3374
|
-
|
3375
|
-
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
})
|
3380
|
-
)) : /* @__PURE__ */ React24.createElement(TableRow, null, /* @__PURE__ */ React24.createElement(
|
3381
|
-
TableCell,
|
3382
|
-
{
|
3383
|
-
colSpan: columns.length,
|
3384
|
-
className: "hawa-h-24 hawa-text-center"
|
3385
|
-
},
|
3386
|
-
(_h = props.texts) == null ? void 0 : _h.noData
|
3387
|
-
))))),
|
3000
|
+
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
|
3001
|
+
},
|
3002
|
+
flexRender(cell.column.columnDef.cell, cell.getContext())
|
3003
|
+
);
|
3004
|
+
}))) : /* @__PURE__ */ React24.createElement(TableRow, null, /* @__PURE__ */ React24.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_h = props.texts) == null ? void 0 : _h.noData))))),
|
3388
3005
|
/* @__PURE__ */ React24.createElement(
|
3389
3006
|
"div",
|
3390
3007
|
{
|
@@ -3394,16 +3011,7 @@ var DataTable = ({
|
|
3394
3011
|
)
|
3395
3012
|
},
|
3396
3013
|
!props.showCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
|
3397
|
-
props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React24.createElement(
|
3398
|
-
"div",
|
3399
|
-
{
|
3400
|
-
className: "hawa-text-muted-foreground hawa-text-sm",
|
3401
|
-
dir: props.direction
|
3402
|
-
},
|
3403
|
-
/* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
|
3404
|
-
" ",
|
3405
|
-
/* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
3406
|
-
), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
3014
|
+
props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-muted-foreground hawa-text-sm", dir: props.direction }, /* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total), " ", /* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
3407
3015
|
"div",
|
3408
3016
|
{
|
3409
3017
|
className: "hawa-text-muted-foreground hawa-text-sm",
|
@@ -3424,9 +3032,7 @@ var DataTable = ({
|
|
3424
3032
|
direction: props.direction,
|
3425
3033
|
items: (props.bulkActions || []).map((action) => ({
|
3426
3034
|
...action,
|
3427
|
-
action: () => action.action(
|
3428
|
-
table.getFilteredSelectedRowModel().rows
|
3429
|
-
)
|
3035
|
+
action: () => action.action(table.getFilteredSelectedRowModel().rows)
|
3430
3036
|
})),
|
3431
3037
|
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
|
3432
3038
|
}
|
@@ -3480,9 +3086,7 @@ var DataTable = ({
|
|
3480
3086
|
size: "smallIcon",
|
3481
3087
|
onClick: () => table.setPageIndex(0),
|
3482
3088
|
disabled: !table.getCanPreviousPage(),
|
3483
|
-
className: cn(
|
3484
|
-
props.direction === "rtl" && "hawa-rotate-180"
|
3485
|
-
)
|
3089
|
+
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
3486
3090
|
},
|
3487
3091
|
/* @__PURE__ */ React24.createElement(
|
3488
3092
|
"svg",
|
@@ -3508,9 +3112,7 @@ var DataTable = ({
|
|
3508
3112
|
size: "smallIcon",
|
3509
3113
|
onClick: () => table.previousPage(),
|
3510
3114
|
disabled: !table.getCanPreviousPage(),
|
3511
|
-
className: cn(
|
3512
|
-
props.direction === "rtl" && "hawa-rotate-180"
|
3513
|
-
)
|
3115
|
+
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
3514
3116
|
},
|
3515
3117
|
/* @__PURE__ */ React24.createElement(
|
3516
3118
|
"svg",
|
@@ -3536,9 +3138,7 @@ var DataTable = ({
|
|
3536
3138
|
size: "smallIcon",
|
3537
3139
|
onClick: () => table.nextPage(),
|
3538
3140
|
disabled: !table.getCanNextPage(),
|
3539
|
-
className: cn(
|
3540
|
-
props.direction === "ltr" && "hawa-rotate-180"
|
3541
|
-
)
|
3141
|
+
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
3542
3142
|
},
|
3543
3143
|
/* @__PURE__ */ React24.createElement(
|
3544
3144
|
"svg",
|
@@ -3564,9 +3164,7 @@ var DataTable = ({
|
|
3564
3164
|
size: "smallIcon",
|
3565
3165
|
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
3566
3166
|
disabled: !table.getCanNextPage(),
|
3567
|
-
className: cn(
|
3568
|
-
props.direction === "ltr" && "hawa-rotate-180"
|
3569
|
-
)
|
3167
|
+
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
3570
3168
|
},
|
3571
3169
|
/* @__PURE__ */ React24.createElement(
|
3572
3170
|
"svg",
|
@@ -3689,21 +3287,19 @@ import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
|
3689
3287
|
// elements/popover/Popover.tsx
|
3690
3288
|
import * as React26 from "react";
|
3691
3289
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
3692
|
-
var PopoverContent = React26.forwardRef(
|
3693
|
-
|
3694
|
-
|
3695
|
-
|
3696
|
-
|
3697
|
-
|
3698
|
-
|
3699
|
-
|
3700
|
-
|
3701
|
-
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
))
|
3706
|
-
);
|
3290
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
|
3291
|
+
PopoverPrimitive.Content,
|
3292
|
+
{
|
3293
|
+
ref,
|
3294
|
+
align,
|
3295
|
+
sideOffset,
|
3296
|
+
className: cn(
|
3297
|
+
"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",
|
3298
|
+
className
|
3299
|
+
),
|
3300
|
+
...props
|
3301
|
+
}
|
3302
|
+
)));
|
3707
3303
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3708
3304
|
var Popover = ({
|
3709
3305
|
trigger,
|
@@ -3723,15 +3319,7 @@ var Popover = ({
|
|
3723
3319
|
trigger: "var(--radix-popover-trigger-width)",
|
3724
3320
|
default: "auto"
|
3725
3321
|
};
|
3726
|
-
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
|
3727
|
-
PopoverPrimitive.Trigger,
|
3728
|
-
{
|
3729
|
-
className: "hawa-w-full",
|
3730
|
-
disabled: disableTrigger,
|
3731
|
-
...triggerProps
|
3732
|
-
},
|
3733
|
-
trigger
|
3734
|
-
), /* @__PURE__ */ React26.createElement(
|
3322
|
+
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(PopoverPrimitive.Trigger, { className: "hawa-w-full", disabled: disableTrigger, ...triggerProps }, trigger), /* @__PURE__ */ React26.createElement(
|
3735
3323
|
PopoverContent,
|
3736
3324
|
{
|
3737
3325
|
side,
|
@@ -3786,12 +3374,8 @@ var Radio = forwardRef16(
|
|
3786
3374
|
default: "hawa-max-w-fit",
|
3787
3375
|
full: "hawa-w-full"
|
3788
3376
|
};
|
3789
|
-
const [parentDirection, setParentDirection] = React27.useState(
|
3790
|
-
|
3791
|
-
);
|
3792
|
-
const [selectedOption, setSelectedOption] = useState7(
|
3793
|
-
props.defaultValue || props.value
|
3794
|
-
);
|
3377
|
+
const [parentDirection, setParentDirection] = React27.useState(null);
|
3378
|
+
const [selectedOption, setSelectedOption] = useState7(props.defaultValue || props.value);
|
3795
3379
|
const [openTooltip, setOpenTooltip] = useState7(null);
|
3796
3380
|
const parentRef = useRef4(null);
|
3797
3381
|
useEffect5(() => {
|
@@ -3820,89 +3404,78 @@ var Radio = forwardRef16(
|
|
3820
3404
|
];
|
3821
3405
|
switch (design) {
|
3822
3406
|
case "tabs":
|
3823
|
-
return /* @__PURE__ */ React27.createElement(
|
3824
|
-
|
3407
|
+
return /* @__PURE__ */ React27.createElement("div", { className: cn("hawa-gap-2 hawa-flex hawa-flex-col", containerClassNames == null ? void 0 : containerClassNames.tabs) }, props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React27.createElement(Tabs, null, /* @__PURE__ */ React27.createElement(
|
3408
|
+
TabsList,
|
3825
3409
|
{
|
3410
|
+
role: "tablist",
|
3411
|
+
ref: parentRef,
|
3826
3412
|
className: cn(
|
3827
|
-
"hawa-
|
3828
|
-
|
3413
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3414
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
3415
|
+
orientationStyle[orientation],
|
3416
|
+
widthStyle[width],
|
3417
|
+
tabsContainerClassName,
|
3418
|
+
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
3829
3419
|
)
|
3830
3420
|
},
|
3831
|
-
props.
|
3832
|
-
|
3833
|
-
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3837
|
-
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
widthStyle[width],
|
3842
|
-
tabsContainerClassName,
|
3843
|
-
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
3844
|
-
)
|
3845
|
-
},
|
3846
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3847
|
-
return opt.tooltip ? /* @__PURE__ */ React27.createElement(
|
3848
|
-
PopoverRoot,
|
3421
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3422
|
+
return opt.tooltip ? /* @__PURE__ */ React27.createElement(
|
3423
|
+
PopoverRoot,
|
3424
|
+
{
|
3425
|
+
key: o,
|
3426
|
+
open: o === openTooltip,
|
3427
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3428
|
+
},
|
3429
|
+
/* @__PURE__ */ React27.createElement(
|
3430
|
+
PopoverTrigger,
|
3849
3431
|
{
|
3850
|
-
|
3851
|
-
|
3852
|
-
|
3432
|
+
onMouseEnter: () => setOpenTooltip(o),
|
3433
|
+
onMouseLeave: () => setOpenTooltip(null),
|
3434
|
+
asChild: true
|
3853
3435
|
},
|
3854
3436
|
/* @__PURE__ */ React27.createElement(
|
3855
|
-
|
3437
|
+
TabsTrigger,
|
3856
3438
|
{
|
3857
|
-
|
3858
|
-
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3865
|
-
value: opt.value,
|
3866
|
-
role: "tab",
|
3867
|
-
tabIndex: 0,
|
3868
|
-
onClick: () => {
|
3869
|
-
if (props.disabled || opt.disabled) return;
|
3870
|
-
handleChange(opt);
|
3871
|
-
},
|
3872
|
-
className: cn(
|
3873
|
-
...radio_option_tabs_styling,
|
3874
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3875
|
-
)
|
3439
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3440
|
+
value: opt.value,
|
3441
|
+
role: "tab",
|
3442
|
+
tabIndex: 0,
|
3443
|
+
onClick: () => {
|
3444
|
+
if (props.disabled || opt.disabled) return;
|
3445
|
+
handleChange(opt);
|
3876
3446
|
},
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
/* @__PURE__ */ React27.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3882
|
-
) : /* @__PURE__ */ React27.createElement(
|
3883
|
-
TabsTrigger,
|
3884
|
-
{
|
3885
|
-
key: o,
|
3886
|
-
role: "tab",
|
3887
|
-
tabIndex: 0,
|
3888
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3889
|
-
onClick: () => {
|
3890
|
-
if (props.disabled || opt.disabled) return;
|
3891
|
-
handleChange(opt);
|
3447
|
+
className: cn(
|
3448
|
+
...radio_option_tabs_styling,
|
3449
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3450
|
+
)
|
3892
3451
|
},
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3452
|
+
opt.icon && opt.icon,
|
3453
|
+
opt.label
|
3454
|
+
)
|
3455
|
+
),
|
3456
|
+
/* @__PURE__ */ React27.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3457
|
+
) : /* @__PURE__ */ React27.createElement(
|
3458
|
+
TabsTrigger,
|
3459
|
+
{
|
3460
|
+
key: o,
|
3461
|
+
role: "tab",
|
3462
|
+
tabIndex: 0,
|
3463
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3464
|
+
onClick: () => {
|
3465
|
+
if (props.disabled || opt.disabled) return;
|
3466
|
+
handleChange(opt);
|
3898
3467
|
},
|
3899
|
-
|
3900
|
-
|
3901
|
-
|
3902
|
-
|
3903
|
-
|
3904
|
-
|
3905
|
-
|
3468
|
+
className: cn(
|
3469
|
+
...radio_option_tabs_styling,
|
3470
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3471
|
+
),
|
3472
|
+
value: opt.value
|
3473
|
+
},
|
3474
|
+
opt.icon && opt.icon,
|
3475
|
+
opt.label
|
3476
|
+
);
|
3477
|
+
})
|
3478
|
+
)), !forceHideHelperText && /* @__PURE__ */ React27.createElement(HelperText, { helperText: props.helperText }));
|
3906
3479
|
case "bordered":
|
3907
3480
|
return /* @__PURE__ */ React27.createElement(
|
3908
3481
|
"div",
|
@@ -3950,11 +3523,7 @@ var Radio = forwardRef16(
|
|
3950
3523
|
return /* @__PURE__ */ React27.createElement(
|
3951
3524
|
"ul",
|
3952
3525
|
{
|
3953
|
-
className: cn(
|
3954
|
-
orientationStyle[orientation],
|
3955
|
-
"hawa-gap-4",
|
3956
|
-
containerClassNames == null ? void 0 : containerClassNames.cards
|
3957
|
-
)
|
3526
|
+
className: cn(orientationStyle[orientation], "hawa-gap-4", containerClassNames == null ? void 0 : containerClassNames.cards)
|
3958
3527
|
},
|
3959
3528
|
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React27.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React27.createElement(
|
3960
3529
|
"input",
|
@@ -3980,49 +3549,38 @@ var Radio = forwardRef16(
|
|
3980
3549
|
)))
|
3981
3550
|
);
|
3982
3551
|
default:
|
3983
|
-
return /* @__PURE__ */ React27.createElement(
|
3552
|
+
return /* @__PURE__ */ React27.createElement("div", { className: cn("hawa-flex hawa-flex-col hawa-gap-2", containerClassNames == null ? void 0 : containerClassNames.default) }, props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React27.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React27.createElement(
|
3984
3553
|
"div",
|
3985
3554
|
{
|
3986
3555
|
className: cn(
|
3987
|
-
"hawa-flex hawa-
|
3988
|
-
|
3989
|
-
)
|
3556
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3557
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3558
|
+
),
|
3559
|
+
key: i + 1
|
3990
3560
|
},
|
3991
|
-
|
3992
|
-
|
3993
|
-
|
3561
|
+
/* @__PURE__ */ React27.createElement(
|
3562
|
+
"input",
|
3563
|
+
{
|
3564
|
+
disabled: opt.disabled,
|
3565
|
+
id: opt.value.toString(),
|
3566
|
+
type: "radio",
|
3567
|
+
value: opt.value,
|
3568
|
+
name,
|
3569
|
+
onChange: () => handleChange(opt)
|
3570
|
+
}
|
3571
|
+
),
|
3572
|
+
/* @__PURE__ */ React27.createElement(
|
3573
|
+
"label",
|
3994
3574
|
{
|
3575
|
+
htmlFor: opt.value.toString(),
|
3995
3576
|
className: cn(
|
3996
|
-
"
|
3997
|
-
|
3998
|
-
)
|
3999
|
-
key: i + 1
|
3577
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3578
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3579
|
+
)
|
4000
3580
|
},
|
4001
|
-
|
4002
|
-
|
4003
|
-
|
4004
|
-
disabled: opt.disabled,
|
4005
|
-
id: opt.value.toString(),
|
4006
|
-
type: "radio",
|
4007
|
-
value: opt.value,
|
4008
|
-
name,
|
4009
|
-
onChange: () => handleChange(opt)
|
4010
|
-
}
|
4011
|
-
),
|
4012
|
-
/* @__PURE__ */ React27.createElement(
|
4013
|
-
"label",
|
4014
|
-
{
|
4015
|
-
htmlFor: opt.value.toString(),
|
4016
|
-
className: cn(
|
4017
|
-
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
4018
|
-
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
4019
|
-
)
|
4020
|
-
},
|
4021
|
-
opt.label
|
4022
|
-
)
|
4023
|
-
))),
|
4024
|
-
/* @__PURE__ */ React27.createElement(HelperText, { helperText: props.helperText })
|
4025
|
-
);
|
3581
|
+
opt.label
|
3582
|
+
)
|
3583
|
+
))), /* @__PURE__ */ React27.createElement(HelperText, { helperText: props.helperText }));
|
4026
3584
|
}
|
4027
3585
|
}
|
4028
3586
|
);
|
@@ -4035,66 +3593,57 @@ import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
|
4035
3593
|
import * as React28 from "react";
|
4036
3594
|
import { Dialog as Dialog2 } from "@radix-ui/react-dialog";
|
4037
3595
|
import { Command as CommandPrimitive } from "cmdk";
|
4038
|
-
var Command = React28.forwardRef(
|
4039
|
-
|
4040
|
-
|
4041
|
-
ref,
|
4042
|
-
className: cn(
|
4043
|
-
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
4044
|
-
className
|
4045
|
-
),
|
4046
|
-
...props
|
4047
|
-
}
|
4048
|
-
));
|
4049
|
-
var CommandDialog = ({ children, ...props }) => {
|
4050
|
-
return /* @__PURE__ */ React28.createElement(Dialog2, { ...props }, /* @__PURE__ */ React28.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React28.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
4051
|
-
};
|
4052
|
-
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
4053
|
-
"div",
|
4054
|
-
{
|
4055
|
-
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
4056
|
-
"cmdk-input-wrapper": ""
|
4057
|
-
},
|
4058
|
-
/* @__PURE__ */ React28.createElement(
|
4059
|
-
"svg",
|
4060
|
-
{
|
4061
|
-
"aria-label": "Search Icon",
|
4062
|
-
xmlns: "http://www.w3.org/2000/svg",
|
4063
|
-
width: "24",
|
4064
|
-
height: "24",
|
4065
|
-
viewBox: "0 0 24 24",
|
4066
|
-
fill: "none",
|
4067
|
-
stroke: "currentColor",
|
4068
|
-
strokeWidth: "2",
|
4069
|
-
strokeLinecap: "round",
|
4070
|
-
strokeLinejoin: "round",
|
4071
|
-
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
4072
|
-
},
|
4073
|
-
/* @__PURE__ */ React28.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
4074
|
-
/* @__PURE__ */ React28.createElement("path", { d: "m21 21-4.3-4.3" })
|
4075
|
-
),
|
4076
|
-
/* @__PURE__ */ React28.createElement(
|
4077
|
-
CommandPrimitive.Input,
|
3596
|
+
var Command = React28.forwardRef(
|
3597
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
3598
|
+
CommandPrimitive,
|
4078
3599
|
{
|
4079
3600
|
ref,
|
4080
3601
|
className: cn(
|
4081
|
-
"hawa-flex hawa-h-
|
3602
|
+
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
4082
3603
|
className
|
4083
3604
|
),
|
4084
3605
|
...props
|
4085
3606
|
}
|
4086
3607
|
)
|
4087
|
-
)
|
4088
|
-
var
|
4089
|
-
|
3608
|
+
);
|
3609
|
+
var CommandDialog = ({ children, ...props }) => {
|
3610
|
+
return /* @__PURE__ */ React28.createElement(Dialog2, { ...props }, /* @__PURE__ */ React28.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React28.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
3611
|
+
};
|
3612
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React28.createElement(
|
3613
|
+
"svg",
|
3614
|
+
{
|
3615
|
+
"aria-label": "Search Icon",
|
3616
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3617
|
+
width: "24",
|
3618
|
+
height: "24",
|
3619
|
+
viewBox: "0 0 24 24",
|
3620
|
+
fill: "none",
|
3621
|
+
stroke: "currentColor",
|
3622
|
+
strokeWidth: "2",
|
3623
|
+
strokeLinecap: "round",
|
3624
|
+
strokeLinejoin: "round",
|
3625
|
+
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
3626
|
+
},
|
3627
|
+
/* @__PURE__ */ React28.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
3628
|
+
/* @__PURE__ */ React28.createElement("path", { d: "m21 21-4.3-4.3" })
|
3629
|
+
), /* @__PURE__ */ React28.createElement(
|
3630
|
+
CommandPrimitive.Input,
|
4090
3631
|
{
|
4091
3632
|
ref,
|
4092
3633
|
className: cn(
|
4093
|
-
"hawa-
|
3634
|
+
"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",
|
4094
3635
|
className
|
4095
3636
|
),
|
4096
3637
|
...props
|
4097
3638
|
}
|
3639
|
+
)));
|
3640
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
3641
|
+
CommandPrimitive.List,
|
3642
|
+
{
|
3643
|
+
ref,
|
3644
|
+
className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
|
3645
|
+
...props
|
3646
|
+
}
|
4098
3647
|
));
|
4099
3648
|
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ React28.createElement(
|
4100
3649
|
CommandPrimitive.Empty,
|
@@ -4150,52 +3699,30 @@ var CommandShortcut = ({
|
|
4150
3699
|
}
|
4151
3700
|
);
|
4152
3701
|
};
|
4153
|
-
var FullCommand = ({
|
4154
|
-
items,
|
4155
|
-
|
4156
|
-
|
4157
|
-
|
4158
|
-
|
4159
|
-
|
4160
|
-
|
4161
|
-
|
4162
|
-
|
4163
|
-
|
4164
|
-
|
4165
|
-
|
4166
|
-
|
4167
|
-
|
4168
|
-
|
4169
|
-
|
4170
|
-
)
|
4171
|
-
|
4172
|
-
|
4173
|
-
|
4174
|
-
|
4175
|
-
CommandItem,
|
4176
|
-
{
|
4177
|
-
key: subIndex,
|
4178
|
-
onSelect: () => {
|
4179
|
-
if (onActionClick) onActionClick();
|
4180
|
-
subItem.action();
|
4181
|
-
}
|
4182
|
-
},
|
4183
|
-
/* @__PURE__ */ React28.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
4184
|
-
/* @__PURE__ */ React28.createElement("span", null, subItem.label),
|
4185
|
-
subItem.shortcut && /* @__PURE__ */ React28.createElement(CommandShortcut, null, subItem.shortcut)
|
4186
|
-
)));
|
4187
|
-
} else if (item.type === "separator") {
|
4188
|
-
return /* @__PURE__ */ React28.createElement(CommandSeparator, { key: index });
|
4189
|
-
}
|
4190
|
-
return null;
|
4191
|
-
}))
|
4192
|
-
);
|
3702
|
+
var FullCommand = ({ items, direction = "ltr", texts, onActionClick }) => {
|
3703
|
+
return /* @__PURE__ */ React28.createElement(Command, { dir: direction, className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full" }, /* @__PURE__ */ React28.createElement(CommandInput, { placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..." }), /* @__PURE__ */ React28.createElement(CommandList, null, /* @__PURE__ */ React28.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3704
|
+
var _a;
|
3705
|
+
if (item.type === "group") {
|
3706
|
+
return /* @__PURE__ */ React28.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React28.createElement(
|
3707
|
+
CommandItem,
|
3708
|
+
{
|
3709
|
+
key: subIndex,
|
3710
|
+
onSelect: () => {
|
3711
|
+
if (onActionClick) onActionClick();
|
3712
|
+
subItem.action();
|
3713
|
+
}
|
3714
|
+
},
|
3715
|
+
/* @__PURE__ */ React28.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
3716
|
+
/* @__PURE__ */ React28.createElement("span", null, subItem.label),
|
3717
|
+
subItem.shortcut && /* @__PURE__ */ React28.createElement(CommandShortcut, null, subItem.shortcut)
|
3718
|
+
)));
|
3719
|
+
} else if (item.type === "separator") {
|
3720
|
+
return /* @__PURE__ */ React28.createElement(CommandSeparator, { key: index });
|
3721
|
+
}
|
3722
|
+
return null;
|
3723
|
+
})));
|
4193
3724
|
};
|
4194
|
-
var AppCommand = ({
|
4195
|
-
commandProps,
|
4196
|
-
dialogProps,
|
4197
|
-
onActionClick
|
4198
|
-
}) => {
|
3725
|
+
var AppCommand = ({ commandProps, dialogProps, onActionClick }) => {
|
4199
3726
|
return /* @__PURE__ */ React28.createElement(Dialog2, { ...dialogProps }, /* @__PURE__ */ React28.createElement(
|
4200
3727
|
DialogContent,
|
4201
3728
|
{
|
@@ -4241,9 +3768,7 @@ var Combobox = React29.forwardRef(
|
|
4241
3768
|
setOpen(open2);
|
4242
3769
|
}
|
4243
3770
|
};
|
4244
|
-
const selectedItem = data.find(
|
4245
|
-
(item) => getProperty(item, valueKey) === value
|
4246
|
-
);
|
3771
|
+
const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
|
4247
3772
|
return /* @__PURE__ */ React29.createElement(
|
4248
3773
|
"div",
|
4249
3774
|
{
|
@@ -4304,8 +3829,7 @@ var Combobox = React29.forwardRef(
|
|
4304
3829
|
Command,
|
4305
3830
|
{
|
4306
3831
|
filter: (value2, search) => {
|
4307
|
-
if (value2.toLowerCase().includes(search.toLowerCase()))
|
4308
|
-
return 1;
|
3832
|
+
if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
|
4309
3833
|
return 0;
|
4310
3834
|
}
|
4311
3835
|
},
|
@@ -4321,10 +3845,7 @@ var Combobox = React29.forwardRef(
|
|
4321
3845
|
/* @__PURE__ */ React29.createElement(CommandList, null, /* @__PURE__ */ React29.createElement(
|
4322
3846
|
CommandGroup,
|
4323
3847
|
{
|
4324
|
-
className: cn(
|
4325
|
-
"hawa-max-h-[200px]",
|
4326
|
-
data.length > 0 && "hawa-overflow-y-auto"
|
4327
|
-
)
|
3848
|
+
className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
|
4328
3849
|
},
|
4329
3850
|
data.map((item, i) => /* @__PURE__ */ React29.createElement(
|
4330
3851
|
CommandItem,
|
@@ -4332,13 +3853,9 @@ var Combobox = React29.forwardRef(
|
|
4332
3853
|
key: i,
|
4333
3854
|
onSelect: () => {
|
4334
3855
|
const newValue = getProperty(item, valueKey);
|
4335
|
-
setValue(
|
4336
|
-
newValue === value ? "" : newValue
|
4337
|
-
);
|
3856
|
+
setValue(newValue === value ? "" : newValue);
|
4338
3857
|
if (props.onChange) {
|
4339
|
-
props.onChange(
|
4340
|
-
newValue === value ? "" : newValue
|
4341
|
-
);
|
3858
|
+
props.onChange(newValue === value ? "" : newValue);
|
4342
3859
|
}
|
4343
3860
|
setOpen(false);
|
4344
3861
|
}
|
@@ -4396,15 +3913,7 @@ var Textarea = React30.forwardRef(
|
|
4396
3913
|
className
|
4397
3914
|
)
|
4398
3915
|
},
|
4399
|
-
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement(
|
4400
|
-
"div",
|
4401
|
-
{
|
4402
|
-
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
4403
|
-
},
|
4404
|
-
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
4405
|
-
"/",
|
4406
|
-
textareaProps == null ? void 0 : textareaProps.maxLength
|
4407
|
-
)),
|
3916
|
+
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength)),
|
4408
3917
|
isLoading ? /* @__PURE__ */ React30.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React30.createElement(
|
4409
3918
|
"textarea",
|
4410
3919
|
{
|
@@ -4447,13 +3956,7 @@ var FileDropzone = ({
|
|
4447
3956
|
var _a, _b, _c, _d, _e, _f;
|
4448
3957
|
const [cmp, setCmp] = useState9(0);
|
4449
3958
|
const [max, setMax] = useState9(0);
|
4450
|
-
const {
|
4451
|
-
getRootProps,
|
4452
|
-
getInputProps,
|
4453
|
-
fileRejections,
|
4454
|
-
acceptedFiles,
|
4455
|
-
isDragActive
|
4456
|
-
} = useDropzone({
|
3959
|
+
const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = useDropzone({
|
4457
3960
|
multiple: true,
|
4458
3961
|
accept,
|
4459
3962
|
maxSize,
|
@@ -4493,53 +3996,19 @@ var FileDropzone = ({
|
|
4493
3996
|
const k = 1024;
|
4494
3997
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
4495
3998
|
const i = Math.floor(Math.log(maxSize) / Math.log(1024));
|
4496
|
-
setMax(
|
4497
|
-
parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]
|
4498
|
-
);
|
3999
|
+
setMax(parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]);
|
4499
4000
|
}
|
4500
4001
|
}, [maxSize]);
|
4501
4002
|
const errs = fileRejections.map((rej, i) => {
|
4502
4003
|
switch (rej.errors[0].code) {
|
4503
4004
|
case "file-too-large":
|
4504
|
-
return /* @__PURE__ */ React31.createElement(
|
4505
|
-
Alert,
|
4506
|
-
{
|
4507
|
-
key: i,
|
4508
|
-
text: rej.file.name,
|
4509
|
-
title: texts.fileTooLarge,
|
4510
|
-
severity: "error"
|
4511
|
-
}
|
4512
|
-
);
|
4005
|
+
return /* @__PURE__ */ React31.createElement(Alert, { key: i, text: rej.file.name, title: texts.fileTooLarge, severity: "error" });
|
4513
4006
|
case "too-many-files":
|
4514
|
-
return /* @__PURE__ */ React31.createElement(
|
4515
|
-
Alert,
|
4516
|
-
{
|
4517
|
-
key: i,
|
4518
|
-
text: rej.file.name,
|
4519
|
-
title: texts.tooManyFiles,
|
4520
|
-
severity: "error"
|
4521
|
-
}
|
4522
|
-
);
|
4007
|
+
return /* @__PURE__ */ React31.createElement(Alert, { key: i, text: rej.file.name, title: texts.tooManyFiles, severity: "error" });
|
4523
4008
|
case "file-invalid-type":
|
4524
|
-
return /* @__PURE__ */ React31.createElement(
|
4525
|
-
Alert,
|
4526
|
-
{
|
4527
|
-
key: i,
|
4528
|
-
text: rej.file.name,
|
4529
|
-
title: texts.invalidFileType,
|
4530
|
-
severity: "error"
|
4531
|
-
}
|
4532
|
-
);
|
4009
|
+
return /* @__PURE__ */ React31.createElement(Alert, { key: i, text: rej.file.name, title: texts.invalidFileType, severity: "error" });
|
4533
4010
|
default:
|
4534
|
-
return /* @__PURE__ */ React31.createElement(
|
4535
|
-
Alert,
|
4536
|
-
{
|
4537
|
-
key: i,
|
4538
|
-
text: rej.file.name,
|
4539
|
-
title: rej.errors[0].code,
|
4540
|
-
severity: "error"
|
4541
|
-
}
|
4542
|
-
);
|
4011
|
+
return /* @__PURE__ */ React31.createElement(Alert, { key: i, text: rej.file.name, title: rej.errors[0].code, severity: "error" });
|
4543
4012
|
}
|
4544
4013
|
});
|
4545
4014
|
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ React31.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ React31.createElement(
|
@@ -4626,21 +4095,7 @@ var FileDropzone = ({
|
|
4626
4095
|
acceptedFiles.length > 0 && /* @__PURE__ */ React31.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2" }, /* @__PURE__ */ React31.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
4627
4096
|
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React31.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
|
4628
4097
|
/* @__PURE__ */ React31.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
|
4629
|
-
), disclaimer && /* @__PURE__ */ React31.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React31.createElement(
|
4630
|
-
"a",
|
4631
|
-
{
|
4632
|
-
href: termsLink,
|
4633
|
-
className: "clickable-link hawa-text-muted-foreground/50"
|
4634
|
-
},
|
4635
|
-
(_d = texts.terms) != null ? _d : "Terms"
|
4636
|
-
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React31.createElement(
|
4637
|
-
"a",
|
4638
|
-
{
|
4639
|
-
href: privacyLink,
|
4640
|
-
className: "clickable-link hawa-text-muted-foreground/50"
|
4641
|
-
},
|
4642
|
-
(_f = texts.privacyPolicy) != null ? _f : "Privacy Policy"
|
4643
|
-
)));
|
4098
|
+
), disclaimer && /* @__PURE__ */ React31.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ React31.createElement("a", { href: termsLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_d = texts.terms) != null ? _d : "Terms"), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ React31.createElement("a", { href: privacyLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_f = texts.privacyPolicy) != null ? _f : "Privacy Policy")));
|
4644
4099
|
};
|
4645
4100
|
|
4646
4101
|
// elements/sortButton/SortButton.tsx
|
@@ -4721,9 +4176,7 @@ var reducer = (state, action) => {
|
|
4721
4176
|
case "UPDATE_TOAST":
|
4722
4177
|
return {
|
4723
4178
|
...state,
|
4724
|
-
toasts: state.toasts.map(
|
4725
|
-
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
4726
|
-
)
|
4179
|
+
toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t)
|
4727
4180
|
};
|
4728
4181
|
case "DISMISS_TOAST": {
|
4729
4182
|
const { toastId } = action;
|
@@ -5019,10 +4472,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
5019
4472
|
if ("matchMedia" in window) {
|
5020
4473
|
queryRef.current = window.matchMedia(query);
|
5021
4474
|
setMatches(queryRef.current.matches);
|
5022
|
-
return attachMediaListener(
|
5023
|
-
queryRef.current,
|
5024
|
-
(event) => setMatches(event.matches)
|
5025
|
-
);
|
4475
|
+
return attachMediaListener(queryRef.current, (event) => setMatches(event.matches));
|
5026
4476
|
}
|
5027
4477
|
return void 0;
|
5028
4478
|
}, [query]);
|
@@ -5104,21 +4554,15 @@ function useClickOutside(handler, events, nodes) {
|
|
5104
4554
|
const { target } = event != null ? event : {};
|
5105
4555
|
if (Array.isArray(nodes)) {
|
5106
4556
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
5107
|
-
const shouldTrigger = nodes.every(
|
5108
|
-
(node) => !!node && !event.composedPath().includes(node)
|
5109
|
-
);
|
4557
|
+
const shouldTrigger = nodes.every((node) => !!node && !event.composedPath().includes(node));
|
5110
4558
|
shouldTrigger && !shouldIgnore && handler();
|
5111
4559
|
} else if (ref.current && !ref.current.contains(target)) {
|
5112
4560
|
handler();
|
5113
4561
|
}
|
5114
4562
|
};
|
5115
|
-
(events || DEFAULT_EVENTS).forEach(
|
5116
|
-
(fn) => document.addEventListener(fn, listener)
|
5117
|
-
);
|
4563
|
+
(events || DEFAULT_EVENTS).forEach((fn) => document.addEventListener(fn, listener));
|
5118
4564
|
return () => {
|
5119
|
-
(events || DEFAULT_EVENTS).forEach(
|
5120
|
-
(fn) => document.removeEventListener(fn, listener)
|
5121
|
-
);
|
4565
|
+
(events || DEFAULT_EVENTS).forEach((fn) => document.removeEventListener(fn, listener));
|
5122
4566
|
};
|
5123
4567
|
}, [ref, handler, nodes]);
|
5124
4568
|
return ref;
|
@@ -5196,16 +4640,14 @@ function shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable = false)
|
|
5196
4640
|
function useShortcuts(hotkeys, tagsToIgnore = ["INPUT", "TEXTAREA", "SELECT"], triggerOnContentEditable = false) {
|
5197
4641
|
useEffect21(() => {
|
5198
4642
|
const keydownListener = (event) => {
|
5199
|
-
hotkeys.forEach(
|
5200
|
-
(
|
5201
|
-
if (
|
5202
|
-
|
5203
|
-
event.preventDefault();
|
5204
|
-
}
|
5205
|
-
handler(event);
|
4643
|
+
hotkeys.forEach(([hotkey, handler, options = { preventDefault: true }]) => {
|
4644
|
+
if (getHotkeyMatcher(hotkey)(event) && shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable)) {
|
4645
|
+
if (options.preventDefault) {
|
4646
|
+
event.preventDefault();
|
5206
4647
|
}
|
4648
|
+
handler(event);
|
5207
4649
|
}
|
5208
|
-
);
|
4650
|
+
});
|
5209
4651
|
};
|
5210
4652
|
document.documentElement.addEventListener("keydown", keydownListener);
|
5211
4653
|
return () => document.documentElement.removeEventListener("keydown", keydownListener);
|
@@ -5445,83 +4887,75 @@ var Tabs2 = React42.forwardRef(
|
|
5445
4887
|
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
5446
4888
|
)
|
5447
4889
|
);
|
5448
|
-
var TabsList2 = React42.forwardRef(
|
5449
|
-
|
5450
|
-
|
5451
|
-
|
5452
|
-
|
5453
|
-
|
5454
|
-
|
5455
|
-
ref,
|
5456
|
-
className: cn(
|
5457
|
-
tabsListVariant({ variant, orientation }),
|
5458
|
-
"hawa-flex-row hawa-flex-nowrap",
|
5459
|
-
className
|
5460
|
-
),
|
5461
|
-
...props
|
5462
|
-
}
|
5463
|
-
));
|
5464
|
-
} else {
|
5465
|
-
return /* @__PURE__ */ React42.createElement(
|
5466
|
-
TabsPrimitive.List,
|
5467
|
-
{
|
5468
|
-
ref,
|
5469
|
-
className: cn(
|
5470
|
-
tabsListVariant({ variant, orientation }),
|
5471
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
5472
|
-
"hawa-flex-wrap",
|
5473
|
-
className
|
5474
|
-
),
|
5475
|
-
...props
|
5476
|
-
}
|
5477
|
-
);
|
5478
|
-
}
|
5479
|
-
});
|
5480
|
-
var TabsTrigger2 = React42.forwardRef(
|
5481
|
-
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
5482
|
-
const { orientation, variant } = React42.useContext(TabsContext);
|
5483
|
-
if (withPopover) {
|
5484
|
-
return /* @__PURE__ */ React42.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React42.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React42.createElement(
|
5485
|
-
TabsPrimitive.Trigger,
|
4890
|
+
var TabsList2 = React42.forwardRef(
|
4891
|
+
({ className, classNames, ...props }, ref) => {
|
4892
|
+
const { orientation, variant, scrollable } = React42.useContext(TabsContext);
|
4893
|
+
const { width } = useViewportSize();
|
4894
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
4895
|
+
return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React42.createElement(
|
4896
|
+
TabsPrimitive.List,
|
5486
4897
|
{
|
4898
|
+
ref,
|
5487
4899
|
className: cn(
|
5488
|
-
|
5489
|
-
"hawa-
|
4900
|
+
tabsListVariant({ variant, orientation }),
|
4901
|
+
"hawa-flex-row hawa-flex-nowrap",
|
5490
4902
|
className
|
5491
4903
|
),
|
5492
4904
|
...props
|
5493
|
-
}
|
5494
|
-
props.children,
|
5495
|
-
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
5496
|
-
)), /* @__PURE__ */ React42.createElement(
|
5497
|
-
Popover2.Content,
|
5498
|
-
{
|
5499
|
-
onClick: onPopoverClick,
|
5500
|
-
asChild: true,
|
5501
|
-
className: cn(
|
5502
|
-
"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",
|
5503
|
-
"hawa-arrow-default-top hawa-mt-2"
|
5504
|
-
)
|
5505
|
-
},
|
5506
|
-
/* @__PURE__ */ React42.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4905
|
+
}
|
5507
4906
|
));
|
5508
4907
|
} else {
|
5509
4908
|
return /* @__PURE__ */ React42.createElement(
|
5510
|
-
TabsPrimitive.
|
4909
|
+
TabsPrimitive.List,
|
5511
4910
|
{
|
4911
|
+
ref,
|
5512
4912
|
className: cn(
|
5513
|
-
|
5514
|
-
"hawa-
|
4913
|
+
tabsListVariant({ variant, orientation }),
|
4914
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
4915
|
+
"hawa-flex-wrap",
|
5515
4916
|
className
|
5516
4917
|
),
|
5517
4918
|
...props
|
5518
|
-
}
|
5519
|
-
props.children,
|
5520
|
-
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4919
|
+
}
|
5521
4920
|
);
|
5522
4921
|
}
|
5523
4922
|
}
|
5524
4923
|
);
|
4924
|
+
var TabsTrigger2 = React42.forwardRef(({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
4925
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4926
|
+
if (withPopover) {
|
4927
|
+
return /* @__PURE__ */ React42.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React42.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React42.createElement(
|
4928
|
+
TabsPrimitive.Trigger,
|
4929
|
+
{
|
4930
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
4931
|
+
...props
|
4932
|
+
},
|
4933
|
+
props.children,
|
4934
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4935
|
+
)), /* @__PURE__ */ React42.createElement(
|
4936
|
+
Popover2.Content,
|
4937
|
+
{
|
4938
|
+
onClick: onPopoverClick,
|
4939
|
+
asChild: true,
|
4940
|
+
className: cn(
|
4941
|
+
"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",
|
4942
|
+
"hawa-arrow-default-top hawa-mt-2"
|
4943
|
+
)
|
4944
|
+
},
|
4945
|
+
/* @__PURE__ */ React42.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4946
|
+
));
|
4947
|
+
} else {
|
4948
|
+
return /* @__PURE__ */ React42.createElement(
|
4949
|
+
TabsPrimitive.Trigger,
|
4950
|
+
{
|
4951
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
4952
|
+
...props
|
4953
|
+
},
|
4954
|
+
props.children,
|
4955
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4956
|
+
);
|
4957
|
+
}
|
4958
|
+
});
|
5525
4959
|
var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
5526
4960
|
TabsPrimitive.Content,
|
5527
4961
|
{
|
@@ -5715,9 +5149,7 @@ import * as React44 from "react";
|
|
5715
5149
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
5716
5150
|
var Switch = React44.forwardRef(
|
5717
5151
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5718
|
-
const [parentDirection, setParentDirection] = React44.useState(
|
5719
|
-
null
|
5720
|
-
);
|
5152
|
+
const [parentDirection, setParentDirection] = React44.useState(null);
|
5721
5153
|
const parentRef = React44.useRef(null);
|
5722
5154
|
React44.useEffect(() => {
|
5723
5155
|
var _a;
|
@@ -5747,42 +5179,34 @@ var Switch = React44.forwardRef(
|
|
5747
5179
|
full: "hawa-rounded-full",
|
5748
5180
|
inherit: "hawa-rounded-inner"
|
5749
5181
|
};
|
5750
|
-
return /* @__PURE__ */ React44.createElement(
|
5751
|
-
|
5182
|
+
return /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center", ref: parentRef }, /* @__PURE__ */ React44.createElement(
|
5183
|
+
SwitchPrimitives.Root,
|
5752
5184
|
{
|
5753
|
-
className:
|
5754
|
-
|
5185
|
+
className: cn(
|
5186
|
+
"data-[state=unchecked]:hawa-bg-primary/20",
|
5187
|
+
"data-[state=checked]:hawa-bg-primary",
|
5188
|
+
"hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
|
5189
|
+
rootRoundednessStyles[roundedness],
|
5190
|
+
className,
|
5191
|
+
rootSize[size]
|
5192
|
+
),
|
5193
|
+
...props,
|
5194
|
+
ref
|
5755
5195
|
},
|
5756
5196
|
/* @__PURE__ */ React44.createElement(
|
5757
|
-
SwitchPrimitives.
|
5197
|
+
SwitchPrimitives.Thumb,
|
5758
5198
|
{
|
5759
5199
|
className: cn(
|
5760
|
-
|
5761
|
-
"
|
5762
|
-
"
|
5763
|
-
|
5764
|
-
|
5765
|
-
|
5766
|
-
)
|
5767
|
-
|
5768
|
-
|
5769
|
-
|
5770
|
-
/* @__PURE__ */ React44.createElement(
|
5771
|
-
SwitchPrimitives.Thumb,
|
5772
|
-
{
|
5773
|
-
className: cn(
|
5774
|
-
thumbSize[size],
|
5775
|
-
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
5776
|
-
"data-[state=checked]:hawa-bg-primary-foreground",
|
5777
|
-
"hawa-bg-white dark:hawa-bg-background",
|
5778
|
-
thumbRoundednessStyles[roundedness],
|
5779
|
-
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
5780
|
-
)
|
5781
|
-
}
|
5782
|
-
)
|
5783
|
-
),
|
5784
|
-
label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5785
|
-
);
|
5200
|
+
thumbSize[size],
|
5201
|
+
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
5202
|
+
"data-[state=checked]:hawa-bg-primary-foreground",
|
5203
|
+
"hawa-bg-white dark:hawa-bg-background",
|
5204
|
+
thumbRoundednessStyles[roundedness],
|
5205
|
+
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
5206
|
+
)
|
5207
|
+
}
|
5208
|
+
)
|
5209
|
+
), label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label));
|
5786
5210
|
}
|
5787
5211
|
);
|
5788
5212
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
@@ -5812,11 +5236,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
5812
5236
|
|
5813
5237
|
// elements/breadcrumb/Breadcrumb.tsx
|
5814
5238
|
import React46 from "react";
|
5815
|
-
var Breadcrumb = ({
|
5816
|
-
breadcrumbLinks,
|
5817
|
-
separator = ">",
|
5818
|
-
size = "normal"
|
5819
|
-
}) => {
|
5239
|
+
var Breadcrumb = ({ breadcrumbLinks, separator = ">", size = "normal" }) => {
|
5820
5240
|
const textStyles = {
|
5821
5241
|
normal: "",
|
5822
5242
|
small: "hawa-text-sm",
|
@@ -5941,25 +5361,9 @@ var Badge = ({
|
|
5941
5361
|
size === "large" && text && text
|
5942
5362
|
));
|
5943
5363
|
};
|
5944
|
-
var BadgedComponent = ({
|
5945
|
-
children,
|
5946
|
-
className,
|
5947
|
-
hideBadge,
|
5948
|
-
position,
|
5949
|
-
size,
|
5950
|
-
text
|
5951
|
-
}) => {
|
5364
|
+
var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
|
5952
5365
|
const ref = useRef16(null);
|
5953
|
-
return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(
|
5954
|
-
Badge,
|
5955
|
-
{
|
5956
|
-
size,
|
5957
|
-
text,
|
5958
|
-
position,
|
5959
|
-
anchor: ref,
|
5960
|
-
className: "hawa-z-10"
|
5961
|
-
}
|
5962
|
-
), children);
|
5366
|
+
return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(Badge, { size, text, position, anchor: ref, className: "hawa-z-10" }), children);
|
5963
5367
|
};
|
5964
5368
|
|
5965
5369
|
// elements/phoneInput/PhoneInput.tsx
|
@@ -7722,19 +7126,19 @@ var PhoneInput = ({
|
|
7722
7126
|
import * as React50 from "react";
|
7723
7127
|
import { OTPInput, OTPInputContext } from "input-otp";
|
7724
7128
|
|
7725
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7129
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7726
7130
|
import { forwardRef as forwardRef25, createElement as createElement24 } from "react";
|
7727
7131
|
|
7728
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7132
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7729
7133
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7730
7134
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7731
7135
|
return Boolean(className) && array.indexOf(className) === index;
|
7732
7136
|
}).join(" ");
|
7733
7137
|
|
7734
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7138
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7735
7139
|
import { forwardRef as forwardRef24, createElement as createElement23 } from "react";
|
7736
7140
|
|
7737
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7141
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7738
7142
|
var defaultAttributes = {
|
7739
7143
|
xmlns: "http://www.w3.org/2000/svg",
|
7740
7144
|
width: 24,
|
@@ -7747,7 +7151,7 @@ var defaultAttributes = {
|
|
7747
7151
|
strokeLinejoin: "round"
|
7748
7152
|
};
|
7749
7153
|
|
7750
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7154
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7751
7155
|
var Icon = forwardRef24(
|
7752
7156
|
({
|
7753
7157
|
color = "currentColor",
|
@@ -7779,7 +7183,7 @@ var Icon = forwardRef24(
|
|
7779
7183
|
}
|
7780
7184
|
);
|
7781
7185
|
|
7782
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7186
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7783
7187
|
var createLucideIcon = (iconName, iconNode) => {
|
7784
7188
|
const Component = forwardRef25(
|
7785
7189
|
({ className, ...props }, ref) => createElement24(Icon, {
|
@@ -7793,7 +7197,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7793
7197
|
return Component;
|
7794
7198
|
};
|
7795
7199
|
|
7796
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7200
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7797
7201
|
var Dot = createLucideIcon("Dot", [
|
7798
7202
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7799
7203
|
]);
|
@@ -7860,10 +7264,7 @@ var StopPropagationWrapper = (props) => {
|
|
7860
7264
|
};
|
7861
7265
|
|
7862
7266
|
// elements/colorPicker/ColorPicker.tsx
|
7863
|
-
import React52, {
|
7864
|
-
useState as useState30,
|
7865
|
-
useEffect as useEffect28
|
7866
|
-
} from "react";
|
7267
|
+
import React52, { useState as useState30, useEffect as useEffect28 } from "react";
|
7867
7268
|
var ColorPicker = ({
|
7868
7269
|
containerProps,
|
7869
7270
|
colorPickerProps,
|
@@ -7910,10 +7311,7 @@ var ColorPicker = ({
|
|
7910
7311
|
props.handleChange(e);
|
7911
7312
|
}
|
7912
7313
|
},
|
7913
|
-
className: cn(
|
7914
|
-
"hawa-mt-0 hawa-h-[38px] hawa-opacity-0",
|
7915
|
-
props.colorPickerClassNames
|
7916
|
-
),
|
7314
|
+
className: cn("hawa-mt-0 hawa-h-[38px] hawa-opacity-0", props.colorPickerClassNames),
|
7917
7315
|
...colorPickerProps
|
7918
7316
|
}
|
7919
7317
|
)
|
@@ -7956,93 +7354,85 @@ function getLimitedValue(input) {
|
|
7956
7354
|
} else {
|
7957
7355
|
return input;
|
7958
7356
|
}
|
7959
|
-
}
|
7960
|
-
var ProgressCircle = React53.forwardRef(
|
7961
|
-
|
7962
|
-
|
7963
|
-
|
7964
|
-
|
7965
|
-
|
7966
|
-
|
7967
|
-
|
7968
|
-
|
7969
|
-
|
7970
|
-
|
7971
|
-
|
7972
|
-
|
7973
|
-
|
7974
|
-
|
7975
|
-
|
7976
|
-
|
7977
|
-
|
7978
|
-
|
7979
|
-
|
7980
|
-
|
7981
|
-
|
7982
|
-
|
7983
|
-
ref,
|
7984
|
-
className: cn(
|
7985
|
-
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
7986
|
-
className
|
7987
|
-
)
|
7988
|
-
},
|
7989
|
-
/* @__PURE__ */ React53.createElement(
|
7990
|
-
"svg",
|
7357
|
+
}
|
7358
|
+
var ProgressCircle = React53.forwardRef(
|
7359
|
+
(props, ref) => {
|
7360
|
+
const {
|
7361
|
+
value: inputValue,
|
7362
|
+
size = "md",
|
7363
|
+
className,
|
7364
|
+
showAnimation = true,
|
7365
|
+
color,
|
7366
|
+
tooltip,
|
7367
|
+
radius: inputRadius,
|
7368
|
+
strokeWidth: inputStrokeWidth,
|
7369
|
+
children,
|
7370
|
+
...other
|
7371
|
+
} = props;
|
7372
|
+
const value = getLimitedValue(inputValue);
|
7373
|
+
const radius = inputRadius != null ? inputRadius : size2config[size].radius;
|
7374
|
+
const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
|
7375
|
+
const normalizedRadius = radius - strokeWidth / 2;
|
7376
|
+
const circumference = normalizedRadius * 2 * Math.PI;
|
7377
|
+
const strokeDashoffset = value / 100 * circumference;
|
7378
|
+
const offset = circumference - strokeDashoffset;
|
7379
|
+
return /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(
|
7380
|
+
"div",
|
7991
7381
|
{
|
7992
|
-
|
7993
|
-
|
7994
|
-
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7995
|
-
className: "hawa-rotate-180 hawa-transform"
|
7382
|
+
ref,
|
7383
|
+
className: cn("hawa-flex hawa-flex-col hawa-items-center hawa-justify-center", className)
|
7996
7384
|
},
|
7997
7385
|
/* @__PURE__ */ React53.createElement(
|
7998
|
-
"
|
7386
|
+
"svg",
|
7999
7387
|
{
|
8000
|
-
|
8001
|
-
|
8002
|
-
|
8003
|
-
|
8004
|
-
|
8005
|
-
|
8006
|
-
|
8007
|
-
|
8008
|
-
|
8009
|
-
|
8010
|
-
|
8011
|
-
|
7388
|
+
width: radius * 2,
|
7389
|
+
height: radius * 2,
|
7390
|
+
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7391
|
+
className: "hawa-rotate-180 hawa-transform"
|
7392
|
+
},
|
7393
|
+
/* @__PURE__ */ React53.createElement(
|
7394
|
+
"circle",
|
7395
|
+
{
|
7396
|
+
r: normalizedRadius,
|
7397
|
+
cx: radius,
|
7398
|
+
cy: radius,
|
7399
|
+
strokeWidth,
|
7400
|
+
fill: "transparent",
|
7401
|
+
stroke: "",
|
7402
|
+
strokeLinecap: "round",
|
7403
|
+
className: cn("hawa-transition-colors hawa-ease-linear", "hawa-stroke-primary/20")
|
7404
|
+
}
|
7405
|
+
),
|
7406
|
+
value > 0 ? /* @__PURE__ */ React53.createElement(
|
7407
|
+
"circle",
|
7408
|
+
{
|
7409
|
+
r: normalizedRadius,
|
7410
|
+
cx: radius,
|
7411
|
+
cy: radius,
|
7412
|
+
strokeWidth,
|
7413
|
+
strokeDasharray: circumference + " " + circumference,
|
7414
|
+
strokeDashoffset: offset,
|
7415
|
+
fill: "transparent",
|
7416
|
+
stroke: "",
|
7417
|
+
strokeLinecap: "round",
|
7418
|
+
className: cn(
|
7419
|
+
"hawa-transition-colors hawa-ease-linear",
|
7420
|
+
"hawa-stroke-primary",
|
7421
|
+
showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
|
7422
|
+
)
|
7423
|
+
}
|
7424
|
+
) : null
|
8012
7425
|
),
|
8013
|
-
|
8014
|
-
|
8015
|
-
|
8016
|
-
|
8017
|
-
cx: radius,
|
8018
|
-
cy: radius,
|
8019
|
-
strokeWidth,
|
8020
|
-
strokeDasharray: circumference + " " + circumference,
|
8021
|
-
strokeDashoffset: offset,
|
8022
|
-
fill: "transparent",
|
8023
|
-
stroke: "",
|
8024
|
-
strokeLinecap: "round",
|
8025
|
-
className: cn(
|
8026
|
-
"hawa-transition-colors hawa-ease-linear",
|
8027
|
-
"hawa-stroke-primary",
|
8028
|
-
showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
|
8029
|
-
)
|
8030
|
-
}
|
8031
|
-
) : null
|
8032
|
-
),
|
8033
|
-
/* @__PURE__ */ React53.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
8034
|
-
));
|
8035
|
-
});
|
7426
|
+
/* @__PURE__ */ React53.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7427
|
+
));
|
7428
|
+
}
|
7429
|
+
);
|
8036
7430
|
ProgressCircle.displayName = "ProgressCircle";
|
8037
7431
|
|
8038
7432
|
// elements/pagination/Pagination.tsx
|
8039
7433
|
import React54 from "react";
|
8040
7434
|
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
8041
|
-
var Pagination = ({
|
8042
|
-
direction,
|
8043
|
-
totalPages,
|
8044
|
-
currentPage
|
8045
|
-
}) => {
|
7435
|
+
var Pagination = ({ direction, totalPages, currentPage }) => {
|
8046
7436
|
const [page, setPage] = React54.useState(currentPage || 0);
|
8047
7437
|
const handlePageChange = (page2) => {
|
8048
7438
|
setPage(page2);
|
@@ -8152,96 +7542,56 @@ import React58, { useEffect as useEffect29, useState as useState31 } from "react
|
|
8152
7542
|
|
8153
7543
|
// icons/Emojis.tsx
|
8154
7544
|
import React55 from "react";
|
8155
|
-
var VeryGoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
8156
|
-
"
|
7545
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React55.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React55.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React55.createElement(
|
7546
|
+
"path",
|
8157
7547
|
{
|
8158
|
-
|
8159
|
-
|
8160
|
-
|
8161
|
-
|
8162
|
-
|
8163
|
-
|
8164
|
-
|
8165
|
-
"path",
|
8166
|
-
{
|
8167
|
-
clipRule: "evenodd",
|
8168
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
8169
|
-
fill: "currentColor",
|
8170
|
-
fillRule: "evenodd"
|
8171
|
-
}
|
8172
|
-
), /* @__PURE__ */ React55.createElement(
|
8173
|
-
"path",
|
8174
|
-
{
|
8175
|
-
clipRule: "evenodd",
|
8176
|
-
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
8177
|
-
fill: "#FF990A",
|
8178
|
-
fillRule: "evenodd"
|
8179
|
-
}
|
8180
|
-
))
|
8181
|
-
);
|
8182
|
-
var GoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
8183
|
-
"svg",
|
7548
|
+
clipRule: "evenodd",
|
7549
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
7550
|
+
fill: "currentColor",
|
7551
|
+
fillRule: "evenodd"
|
7552
|
+
}
|
7553
|
+
), /* @__PURE__ */ React55.createElement(
|
7554
|
+
"path",
|
8184
7555
|
{
|
8185
|
-
|
8186
|
-
|
8187
|
-
|
8188
|
-
|
8189
|
-
|
8190
|
-
|
8191
|
-
|
8192
|
-
|
8193
|
-
{
|
8194
|
-
clipRule: "evenodd",
|
8195
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
8196
|
-
fill: "currentColor",
|
8197
|
-
fillRule: "evenodd"
|
8198
|
-
}
|
8199
|
-
))
|
8200
|
-
);
|
8201
|
-
var BadEmoji = () => /* @__PURE__ */ React55.createElement(
|
8202
|
-
"svg",
|
7556
|
+
clipRule: "evenodd",
|
7557
|
+
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
7558
|
+
fill: "#FF990A",
|
7559
|
+
fillRule: "evenodd"
|
7560
|
+
}
|
7561
|
+
)));
|
7562
|
+
var GoodEmoji = () => /* @__PURE__ */ React55.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React55.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React55.createElement(
|
7563
|
+
"path",
|
8203
7564
|
{
|
8204
|
-
|
8205
|
-
|
8206
|
-
|
8207
|
-
|
8208
|
-
|
8209
|
-
|
8210
|
-
|
8211
|
-
|
8212
|
-
{
|
8213
|
-
clipRule: "evenodd",
|
8214
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
8215
|
-
fill: "currentColor",
|
8216
|
-
fillRule: "evenodd"
|
8217
|
-
}
|
8218
|
-
))
|
8219
|
-
);
|
8220
|
-
var VeryBadEmoji = () => /* @__PURE__ */ React55.createElement(
|
8221
|
-
"svg",
|
7565
|
+
clipRule: "evenodd",
|
7566
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
7567
|
+
fill: "currentColor",
|
7568
|
+
fillRule: "evenodd"
|
7569
|
+
}
|
7570
|
+
)));
|
7571
|
+
var BadEmoji = () => /* @__PURE__ */ React55.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React55.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React55.createElement(
|
7572
|
+
"path",
|
8222
7573
|
{
|
8223
|
-
|
8224
|
-
|
8225
|
-
|
8226
|
-
|
8227
|
-
|
8228
|
-
|
8229
|
-
|
8230
|
-
|
8231
|
-
|
8232
|
-
|
8233
|
-
|
8234
|
-
|
8235
|
-
|
8236
|
-
|
8237
|
-
|
8238
|
-
|
8239
|
-
|
8240
|
-
|
8241
|
-
|
8242
|
-
|
8243
|
-
|
8244
|
-
);
|
7574
|
+
clipRule: "evenodd",
|
7575
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
7576
|
+
fill: "currentColor",
|
7577
|
+
fillRule: "evenodd"
|
7578
|
+
}
|
7579
|
+
)));
|
7580
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React55.createElement("svg", { fill: "none", height: "16", viewBox: "0 0 16 16", width: "16", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React55.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React55.createElement(
|
7581
|
+
"path",
|
7582
|
+
{
|
7583
|
+
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
7584
|
+
fill: "#0070F3"
|
7585
|
+
}
|
7586
|
+
), /* @__PURE__ */ React55.createElement(
|
7587
|
+
"path",
|
7588
|
+
{
|
7589
|
+
clipRule: "evenodd",
|
7590
|
+
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
7591
|
+
fill: "currentColor",
|
7592
|
+
fillRule: "evenodd"
|
7593
|
+
}
|
7594
|
+
)));
|
8245
7595
|
|
8246
7596
|
// icons/InputIcons.tsx
|
8247
7597
|
import React56 from "react";
|
@@ -8348,14 +7698,7 @@ var MenuIcon = () => /* @__PURE__ */ React57.createElement(
|
|
8348
7698
|
|
8349
7699
|
// elements/passwordInput/PasswordInput.tsx
|
8350
7700
|
var PasswordStrengthIndicator = ({ strength }) => {
|
8351
|
-
const strengthLevels = [
|
8352
|
-
"none",
|
8353
|
-
"very-weak",
|
8354
|
-
"weak",
|
8355
|
-
"medium",
|
8356
|
-
"strong",
|
8357
|
-
"very-strong"
|
8358
|
-
];
|
7701
|
+
const strengthLevels = ["none", "very-weak", "weak", "medium", "strong", "very-strong"];
|
8359
7702
|
const strengthColors = {
|
8360
7703
|
none: "hawa-bg-red-700",
|
8361
7704
|
"very-weak": "hawa-bg-red-600",
|
@@ -8381,10 +7724,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
8381
7724
|
}
|
8382
7725
|
));
|
8383
7726
|
};
|
8384
|
-
var PasswordInput = ({
|
8385
|
-
hidePopover,
|
8386
|
-
...props
|
8387
|
-
}) => {
|
7727
|
+
var PasswordInput = ({ hidePopover, ...props }) => {
|
8388
7728
|
const [inputValue, setInputValue] = useState31("");
|
8389
7729
|
const [isInputFocused, setIsInputFocused] = useState31(false);
|
8390
7730
|
const [currentStr, setCurrentStr] = useState31(0);
|
@@ -8512,63 +7852,34 @@ var SimpleTable = ({
|
|
8512
7852
|
columns,
|
8513
7853
|
getCoreRowModel: getCoreRowModel2()
|
8514
7854
|
});
|
8515
|
-
return /* @__PURE__ */ React60.createElement(
|
8516
|
-
|
8517
|
-
|
8518
|
-
className: cn(
|
8519
|
-
"hawa-flex hawa-w-full hawa-flex-col hawa-gap-4",
|
8520
|
-
classNames
|
8521
|
-
)
|
8522
|
-
},
|
8523
|
-
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
8524
|
-
return /* @__PURE__ */ React60.createElement(
|
8525
|
-
TableHead,
|
8526
|
-
{
|
8527
|
-
condensed: props.condensed,
|
8528
|
-
dir: props.direction,
|
8529
|
-
key: header.id,
|
8530
|
-
style: {
|
8531
|
-
maxWidth: header.column.columnDef.maxSize
|
8532
|
-
}
|
8533
|
-
},
|
8534
|
-
header.isPlaceholder ? null : flexRender2(
|
8535
|
-
header.column.columnDef.header,
|
8536
|
-
header.getContext()
|
8537
|
-
)
|
8538
|
-
);
|
8539
|
-
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
8540
|
-
TableRow,
|
7855
|
+
return /* @__PURE__ */ React60.createElement("div", { className: cn("hawa-flex hawa-w-full hawa-flex-col hawa-gap-4", classNames) }, props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7856
|
+
return /* @__PURE__ */ React60.createElement(
|
7857
|
+
TableHead,
|
8541
7858
|
{
|
8542
|
-
|
8543
|
-
|
7859
|
+
condensed: props.condensed,
|
7860
|
+
dir: props.direction,
|
7861
|
+
key: header.id,
|
7862
|
+
style: {
|
7863
|
+
maxWidth: header.column.columnDef.maxSize
|
7864
|
+
}
|
8544
7865
|
},
|
8545
|
-
|
8546
|
-
|
8547
|
-
|
8548
|
-
|
8549
|
-
|
8550
|
-
dir: props.direction,
|
8551
|
-
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
|
8552
|
-
style: {
|
8553
|
-
maxWidth: cell.column.columnDef.maxSize
|
8554
|
-
},
|
8555
|
-
key: cell.id
|
8556
|
-
},
|
8557
|
-
flexRender2(
|
8558
|
-
cell.column.columnDef.cell,
|
8559
|
-
cell.getContext()
|
8560
|
-
)
|
8561
|
-
);
|
8562
|
-
})
|
8563
|
-
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7866
|
+
header.isPlaceholder ? null : flexRender2(header.column.columnDef.header, header.getContext())
|
7867
|
+
);
|
7868
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
|
7869
|
+
var _a2;
|
7870
|
+
return /* @__PURE__ */ React60.createElement(
|
8564
7871
|
TableCell,
|
8565
7872
|
{
|
8566
|
-
|
8567
|
-
|
7873
|
+
dir: props.direction,
|
7874
|
+
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
|
7875
|
+
style: {
|
7876
|
+
maxWidth: cell.column.columnDef.maxSize
|
7877
|
+
},
|
7878
|
+
key: cell.id
|
8568
7879
|
},
|
8569
|
-
(
|
8570
|
-
)
|
8571
|
-
);
|
7880
|
+
flexRender2(cell.column.columnDef.cell, cell.getContext())
|
7881
|
+
);
|
7882
|
+
}))) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_b = props.texts) == null ? void 0 : _b.noData)), props.extra))));
|
8572
7883
|
};
|
8573
7884
|
|
8574
7885
|
// elements/separator/Separator.tsx
|
@@ -8591,10 +7902,7 @@ var Separator2 = ({
|
|
8591
7902
|
|
8592
7903
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8593
7904
|
import React62, { useState as useState32, useEffect as useEffect30 } from "react";
|
8594
|
-
var ScrollIndicator = ({
|
8595
|
-
anchor,
|
8596
|
-
inContainer = false
|
8597
|
-
}) => {
|
7905
|
+
var ScrollIndicator = ({ anchor, inContainer = false }) => {
|
8598
7906
|
const [scrollPercentage, setScrollPercentage] = useState32(0);
|
8599
7907
|
const onScroll = () => {
|
8600
7908
|
const scrollElement = anchor.current;
|
@@ -8856,34 +8164,22 @@ var Carousel = ({
|
|
8856
8164
|
}
|
8857
8165
|
));
|
8858
8166
|
};
|
8859
|
-
var Dots = ({
|
8860
|
-
onDotClick,
|
8861
|
-
itemsLength,
|
8862
|
-
selectedIndex,
|
8863
|
-
direction
|
8864
|
-
}) => {
|
8167
|
+
var Dots = ({ onDotClick, itemsLength, selectedIndex, direction }) => {
|
8865
8168
|
const arr = new Array(itemsLength).fill(0);
|
8866
|
-
return /* @__PURE__ */ React64.createElement(
|
8867
|
-
|
8868
|
-
|
8869
|
-
|
8870
|
-
|
8871
|
-
|
8872
|
-
|
8873
|
-
|
8874
|
-
|
8875
|
-
|
8876
|
-
|
8877
|
-
|
8878
|
-
|
8879
|
-
|
8880
|
-
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
8881
|
-
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
8882
|
-
)
|
8883
|
-
}
|
8884
|
-
);
|
8885
|
-
})
|
8886
|
-
);
|
8169
|
+
return /* @__PURE__ */ React64.createElement("div", { dir: direction, className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
|
8170
|
+
const selected = index === selectedIndex;
|
8171
|
+
return /* @__PURE__ */ React64.createElement(
|
8172
|
+
"div",
|
8173
|
+
{
|
8174
|
+
key: index,
|
8175
|
+
onClick: () => onDotClick(index),
|
8176
|
+
className: cn(
|
8177
|
+
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
8178
|
+
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
8179
|
+
)
|
8180
|
+
}
|
8181
|
+
);
|
8182
|
+
}));
|
8887
8183
|
};
|
8888
8184
|
var CarouselControls = (props) => {
|
8889
8185
|
return /* @__PURE__ */ React64.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2" }, /* @__PURE__ */ React64.createElement(
|
@@ -9053,11 +8349,7 @@ var ToastTitle = React66.forwardRef(({ className, size = "default", ...props },
|
|
9053
8349
|
ToastPrimitives.Title,
|
9054
8350
|
{
|
9055
8351
|
ref,
|
9056
|
-
className: cn(
|
9057
|
-
"hawa-select-text hawa-text-sm hawa-font-semibold",
|
9058
|
-
sizeStyles[size],
|
9059
|
-
className
|
9060
|
-
),
|
8352
|
+
className: cn("hawa-select-text hawa-text-sm hawa-font-semibold", sizeStyles[size], className),
|
9061
8353
|
...props
|
9062
8354
|
}
|
9063
8355
|
));
|
@@ -9066,11 +8358,7 @@ var ToastDescription = React66.forwardRef(({ className, size = "default", ...pro
|
|
9066
8358
|
ToastPrimitives.Description,
|
9067
8359
|
{
|
9068
8360
|
ref,
|
9069
|
-
className: cn(
|
9070
|
-
"hawa-select-text hawa-opacity-90",
|
9071
|
-
sizeStyles[size],
|
9072
|
-
className
|
9073
|
-
),
|
8361
|
+
className: cn("hawa-select-text hawa-opacity-90", sizeStyles[size], className),
|
9074
8362
|
...props
|
9075
8363
|
}
|
9076
8364
|
));
|
@@ -9111,12 +8399,7 @@ function Toaster(props) {
|
|
9111
8399
|
action && /* @__PURE__ */ React67.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
9112
8400
|
)
|
9113
8401
|
));
|
9114
|
-
}), /* @__PURE__ */ React67.createElement(
|
9115
|
-
ToastViewport,
|
9116
|
-
{
|
9117
|
-
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
9118
|
-
}
|
9119
|
-
));
|
8402
|
+
}), /* @__PURE__ */ React67.createElement(ToastViewport, { className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0") }));
|
9120
8403
|
}
|
9121
8404
|
|
9122
8405
|
// elements/destroyableCard/DestroyableCard.tsx
|
@@ -9136,10 +8419,7 @@ var DestroyableCard = ({
|
|
9136
8419
|
return /* @__PURE__ */ React68.createElement(
|
9137
8420
|
"div",
|
9138
8421
|
{
|
9139
|
-
className: cn(
|
9140
|
-
"hawa-transition-all",
|
9141
|
-
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
9142
|
-
),
|
8422
|
+
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
9143
8423
|
ref: popUpRef
|
9144
8424
|
},
|
9145
8425
|
/* @__PURE__ */ React68.createElement(
|
@@ -9332,28 +8612,19 @@ var Accordion2 = AccordionPrimitive6.Root;
|
|
9332
8612
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
9333
8613
|
var AccordionItem2 = React72.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React72.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
9334
8614
|
AccordionItem2.displayName = "AccordionItem";
|
9335
|
-
var AccordionTrigger2 = React72.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React72.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React72.createElement(
|
9336
|
-
|
8615
|
+
var AccordionTrigger2 = React72.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React72.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React72.createElement(AccordionPrimitive6.Trigger, { ref, className: cn(triggerStyles, className), ...props }, children, showArrow && /* @__PURE__ */ React72.createElement(
|
8616
|
+
"svg",
|
9337
8617
|
{
|
9338
|
-
|
9339
|
-
|
9340
|
-
|
8618
|
+
"aria-label": "Chevron Right Icon",
|
8619
|
+
stroke: "currentColor",
|
8620
|
+
fill: "currentColor",
|
8621
|
+
viewBox: "0 0 16 16",
|
8622
|
+
height: "1em",
|
8623
|
+
width: "1em",
|
8624
|
+
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
9341
8625
|
},
|
9342
|
-
|
9343
|
-
|
9344
|
-
"svg",
|
9345
|
-
{
|
9346
|
-
"aria-label": "Chevron Right Icon",
|
9347
|
-
stroke: "currentColor",
|
9348
|
-
fill: "currentColor",
|
9349
|
-
viewBox: "0 0 16 16",
|
9350
|
-
height: "1em",
|
9351
|
-
width: "1em",
|
9352
|
-
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
9353
|
-
},
|
9354
|
-
/* @__PURE__ */ React72.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
9355
|
-
)
|
9356
|
-
)));
|
8626
|
+
/* @__PURE__ */ React72.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8627
|
+
))));
|
9357
8628
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
9358
8629
|
var AccordionContent2 = React72.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React72.createElement(
|
9359
8630
|
AccordionPrimitive6.Content,
|
@@ -9407,111 +8678,78 @@ var SidebarGroup = ({
|
|
9407
8678
|
))
|
9408
8679
|
)));
|
9409
8680
|
};
|
9410
|
-
var SidebarItem = ({
|
9411
|
-
item,
|
9412
|
-
onItemClick,
|
9413
|
-
onSubItemClick,
|
9414
|
-
direction,
|
9415
|
-
isOpen = true,
|
9416
|
-
LinkComponent,
|
9417
|
-
...props
|
9418
|
-
}) => {
|
8681
|
+
var SidebarItem = ({ item, onItemClick, onSubItemClick, direction, isOpen = true, LinkComponent, ...props }) => {
|
9419
8682
|
const getSelectedStyle = (value) => {
|
9420
8683
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
9421
8684
|
};
|
9422
8685
|
if (item.subitems) {
|
9423
|
-
return /* @__PURE__ */ React72.createElement(
|
9424
|
-
|
8686
|
+
return /* @__PURE__ */ React72.createElement(AccordionItem2, { value: item.value, className: "hawa-overflow-x-clip", dir: direction }, /* @__PURE__ */ React72.createElement(
|
8687
|
+
AccordionTrigger2,
|
9425
8688
|
{
|
9426
|
-
|
9427
|
-
|
9428
|
-
|
8689
|
+
className: cn(
|
8690
|
+
"hawa-w-full hawa-overflow-x-clip",
|
8691
|
+
props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hawa-h-10 hover:hawa-bg-primary/10",
|
8692
|
+
item.subitems && item.subitems.some((subitem) => props.selectedItem === subitem.value) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""
|
8693
|
+
),
|
8694
|
+
showArrow: isOpen
|
9429
8695
|
},
|
9430
8696
|
/* @__PURE__ */ React72.createElement(
|
9431
|
-
|
8697
|
+
"div",
|
9432
8698
|
{
|
9433
8699
|
className: cn(
|
9434
|
-
"hawa-w-
|
9435
|
-
|
9436
|
-
item.subitems && item.subitems.some(
|
9437
|
-
(subitem) => props.selectedItem === subitem.value
|
9438
|
-
) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""
|
9439
|
-
),
|
9440
|
-
showArrow: isOpen
|
8700
|
+
"hawa-flex hawa-h-fit hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2"
|
8701
|
+
)
|
9441
8702
|
},
|
8703
|
+
item.icon && item.icon,
|
9442
8704
|
/* @__PURE__ */ React72.createElement(
|
9443
|
-
"
|
8705
|
+
"span",
|
9444
8706
|
{
|
9445
8707
|
className: cn(
|
9446
|
-
"hawa-
|
8708
|
+
"hawa-transition-all hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap",
|
8709
|
+
isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
|
9447
8710
|
)
|
9448
8711
|
},
|
9449
|
-
item.
|
9450
|
-
/* @__PURE__ */ React72.createElement(
|
9451
|
-
"span",
|
9452
|
-
{
|
9453
|
-
className: cn(
|
9454
|
-
"hawa-transition-all hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap",
|
9455
|
-
isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
|
9456
|
-
)
|
9457
|
-
},
|
9458
|
-
item.label,
|
9459
|
-
item.badge && /* @__PURE__ */ React72.createElement(
|
9460
|
-
Chip,
|
9461
|
-
{
|
9462
|
-
label: item.badge.label,
|
9463
|
-
color: item.badge.color,
|
9464
|
-
size: "small"
|
9465
|
-
}
|
9466
|
-
)
|
9467
|
-
)
|
8712
|
+
item.label,
|
8713
|
+
item.badge && /* @__PURE__ */ React72.createElement(Chip, { label: item.badge.label, color: item.badge.color, size: "small" })
|
9468
8714
|
)
|
9469
|
-
)
|
9470
|
-
|
9471
|
-
|
8715
|
+
)
|
8716
|
+
), item.subitems && /* @__PURE__ */ React72.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React72.createElement(
|
8717
|
+
"div",
|
8718
|
+
{
|
8719
|
+
className: cn(
|
8720
|
+
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8721
|
+
)
|
8722
|
+
},
|
8723
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React72.createElement(
|
8724
|
+
LinkComponent,
|
9472
8725
|
{
|
9473
|
-
|
9474
|
-
|
9475
|
-
)
|
9476
|
-
|
9477
|
-
|
9478
|
-
|
9479
|
-
{
|
9480
|
-
href: subitem.slug,
|
9481
|
-
key: idx,
|
9482
|
-
onMouseDown: (e) => {
|
9483
|
-
if (subitem.onMouseDown) {
|
9484
|
-
subitem.onMouseDown(e);
|
9485
|
-
}
|
9486
|
-
},
|
9487
|
-
onClick: (e) => {
|
9488
|
-
e.stopPropagation();
|
9489
|
-
if (subitem.onClick) {
|
9490
|
-
subitem.onClick(e);
|
9491
|
-
}
|
9492
|
-
if (onSubItemClick) {
|
9493
|
-
onSubItemClick([item.value, subitem.value]);
|
9494
|
-
}
|
9495
|
-
},
|
9496
|
-
className: cn(
|
9497
|
-
"hawa-flex hawa-h-full hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-2 hawa-overflow-x-clip hawa-whitespace-nowrap hawa-rounded hawa-p-2 hawa-transition-all",
|
9498
|
-
// bg-foreground/10
|
9499
|
-
getSelectedStyle(subitem.value)
|
9500
|
-
)
|
8726
|
+
href: subitem.slug,
|
8727
|
+
key: idx,
|
8728
|
+
onMouseDown: (e) => {
|
8729
|
+
if (subitem.onMouseDown) {
|
8730
|
+
subitem.onMouseDown(e);
|
8731
|
+
}
|
9501
8732
|
},
|
9502
|
-
|
9503
|
-
|
9504
|
-
|
9505
|
-
|
9506
|
-
{
|
9507
|
-
label: subitem.badge.label,
|
9508
|
-
color: subitem.badge.color,
|
9509
|
-
size: "small"
|
8733
|
+
onClick: (e) => {
|
8734
|
+
e.stopPropagation();
|
8735
|
+
if (subitem.onClick) {
|
8736
|
+
subitem.onClick(e);
|
9510
8737
|
}
|
8738
|
+
if (onSubItemClick) {
|
8739
|
+
onSubItemClick([item.value, subitem.value]);
|
8740
|
+
}
|
8741
|
+
},
|
8742
|
+
className: cn(
|
8743
|
+
"hawa-flex hawa-h-full hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-2 hawa-overflow-x-clip hawa-whitespace-nowrap hawa-rounded hawa-p-2 hawa-transition-all",
|
8744
|
+
// bg-foreground/10
|
8745
|
+
getSelectedStyle(subitem.value)
|
9511
8746
|
)
|
9512
|
-
|
8747
|
+
},
|
8748
|
+
subitem.icon && subitem.icon,
|
8749
|
+
subitem.label,
|
8750
|
+
subitem.badge && /* @__PURE__ */ React72.createElement(Chip, { label: subitem.badge.label, color: subitem.badge.color, size: "small" })
|
9513
8751
|
))
|
9514
|
-
);
|
8752
|
+
)));
|
9515
8753
|
} else {
|
9516
8754
|
return /* @__PURE__ */ React72.createElement(
|
9517
8755
|
LinkComponent,
|
@@ -9531,11 +8769,7 @@ var SidebarItem = ({
|
|
9531
8769
|
onItemClick([item.value]);
|
9532
8770
|
}
|
9533
8771
|
},
|
9534
|
-
className: cn(
|
9535
|
-
triggerStyles,
|
9536
|
-
getSelectedStyle(item.value),
|
9537
|
-
"hawa-overflow-x-clip"
|
9538
|
-
)
|
8772
|
+
className: cn(triggerStyles, getSelectedStyle(item.value), "hawa-overflow-x-clip")
|
9539
8773
|
},
|
9540
8774
|
/* @__PURE__ */ React72.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React72.createElement(
|
9541
8775
|
"span",
|
@@ -9547,14 +8781,7 @@ var SidebarItem = ({
|
|
9547
8781
|
},
|
9548
8782
|
item.label,
|
9549
8783
|
" ",
|
9550
|
-
item.badge && /* @__PURE__ */ React72.createElement(
|
9551
|
-
Chip,
|
9552
|
-
{
|
9553
|
-
label: item.badge.label,
|
9554
|
-
color: item.badge.color,
|
9555
|
-
size: "small"
|
9556
|
-
}
|
9557
|
-
)
|
8784
|
+
item.badge && /* @__PURE__ */ React72.createElement(Chip, { label: item.badge.label, color: item.badge.color, size: "small" })
|
9558
8785
|
))
|
9559
8786
|
);
|
9560
8787
|
}
|
@@ -9649,10 +8876,7 @@ var Navbar = ({
|
|
9649
8876
|
strokeWidth: "2",
|
9650
8877
|
strokeLinecap: "round",
|
9651
8878
|
strokeLinejoin: "round",
|
9652
|
-
className: cn(
|
9653
|
-
"hawa-h-6 hawa-w-6",
|
9654
|
-
!isOpen ? "hawa-invisible" : "hawa-visible"
|
9655
|
-
)
|
8879
|
+
className: cn("hawa-h-6 hawa-w-6", !isOpen ? "hawa-invisible" : "hawa-visible")
|
9656
8880
|
},
|
9657
8881
|
/* @__PURE__ */ React74.createElement("path", { d: "M18 6 6 18" }),
|
9658
8882
|
/* @__PURE__ */ React74.createElement("path", { d: "m6 6 12 12" })
|
@@ -9692,7 +8916,9 @@ import * as Dialog3 from "@radix-ui/react-dialog";
|
|
9692
8916
|
var LOCAL_STORAGE_KEY2 = "@sikka/hawa/keep-drawer-open";
|
9693
8917
|
var AppLayout = ({
|
9694
8918
|
profileMenuWidth = "default",
|
8919
|
+
userInfoPosition = "next_to_avatar",
|
9695
8920
|
DrawerFooterActions,
|
8921
|
+
profileMenuItems,
|
9696
8922
|
classNames,
|
9697
8923
|
bordered = true,
|
9698
8924
|
design = "default",
|
@@ -9725,9 +8951,7 @@ var AppLayout = ({
|
|
9725
8951
|
};
|
9726
8952
|
const isRTL = direction === "rtl";
|
9727
8953
|
const [openedSidebarItem, setOpenedSidebarItem] = useState38("");
|
9728
|
-
const [size, setSize] = useState38(
|
9729
|
-
typeof window !== "undefined" && window.innerWidth || 1200
|
9730
|
-
);
|
8954
|
+
const [size, setSize] = useState38(typeof window !== "undefined" && window.innerWidth || 1200);
|
9731
8955
|
const [openSideMenu, setOpenSideMenu] = useState38(() => {
|
9732
8956
|
const savedState = localStorage.getItem(LOCAL_STORAGE_KEY2);
|
9733
8957
|
return savedState ? JSON.parse(savedState) : false;
|
@@ -9780,8 +9004,20 @@ var AppLayout = ({
|
|
9780
9004
|
setOpenSideMenu(false);
|
9781
9005
|
onDrawerExpanded && onDrawerExpanded(false);
|
9782
9006
|
}
|
9783
|
-
}, [size, keepDrawerOpen]);
|
9784
|
-
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9007
|
+
}, [size, keepDrawerOpen]);
|
9008
|
+
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9009
|
+
let finalProfileMenuItems = profileMenuItems;
|
9010
|
+
if (userInfoPosition === "in_dropdown") {
|
9011
|
+
if (profileMenuItems && profileMenuItems.length > 0) {
|
9012
|
+
finalProfileMenuItems = [
|
9013
|
+
{
|
9014
|
+
content: /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-end hawa-p-2 hawa-text-xs hawa-flex hawa-flex-col hawa-justify-center hawa-items-start" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-font-bold" }, props.username), /* @__PURE__ */ React75.createElement("div", null, props.email)),
|
9015
|
+
itemType: "custom"
|
9016
|
+
},
|
9017
|
+
...profileMenuItems
|
9018
|
+
];
|
9019
|
+
}
|
9020
|
+
}
|
9785
9021
|
return /* @__PURE__ */ React75.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ React75.createElement(
|
9786
9022
|
"div",
|
9787
9023
|
{
|
@@ -9794,10 +9030,7 @@ var AppLayout = ({
|
|
9794
9030
|
size > 600 ? /* @__PURE__ */ React75.createElement(
|
9795
9031
|
"div",
|
9796
9032
|
{
|
9797
|
-
className: cn(
|
9798
|
-
"dark:hawa-text-white",
|
9799
|
-
size > 600 ? "hawa-ms-14" : "hawa-ms-2"
|
9800
|
-
),
|
9033
|
+
className: cn("dark:hawa-text-white", size > 600 ? "hawa-ms-14" : "hawa-ms-2"),
|
9801
9034
|
style: {
|
9802
9035
|
marginInlineStart: `${drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] + 10}px`
|
9803
9036
|
}
|
@@ -9822,7 +9055,7 @@ var AppLayout = ({
|
|
9822
9055
|
props.pageTitle ? /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React75.createElement("div", null)
|
9823
9056
|
)
|
9824
9057
|
),
|
9825
|
-
/* @__PURE__ */ React75.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-font-bold" }, props.username),
|
9058
|
+
/* @__PURE__ */ React75.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 && userInfoPosition === "next_to_avatar" ? /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-end hawa-text-xs hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-font-bold" }, props.username), /* @__PURE__ */ React75.createElement("div", null, props.email)) : null, /* @__PURE__ */ React75.createElement(
|
9826
9059
|
DropdownMenu,
|
9827
9060
|
{
|
9828
9061
|
LinkComponent: MenuLinkComponent,
|
@@ -9832,7 +9065,7 @@ var AppLayout = ({
|
|
9832
9065
|
sideOffset: 10,
|
9833
9066
|
width: profileMenuWidth,
|
9834
9067
|
direction,
|
9835
|
-
items:
|
9068
|
+
items: finalProfileMenuItems || [],
|
9836
9069
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9837
9070
|
trigger: /* @__PURE__ */ React75.createElement(
|
9838
9071
|
"div",
|
@@ -9983,10 +9216,7 @@ var AppLayout = ({
|
|
9983
9216
|
size: "smallIcon",
|
9984
9217
|
onClick: () => {
|
9985
9218
|
const newKeepOpenState = !keepDrawerOpen;
|
9986
|
-
localStorage.setItem(
|
9987
|
-
LOCAL_STORAGE_KEY2,
|
9988
|
-
JSON.stringify(newKeepOpenState)
|
9989
|
-
);
|
9219
|
+
localStorage.setItem(LOCAL_STORAGE_KEY2, JSON.stringify(newKeepOpenState));
|
9990
9220
|
setKeepDrawerOpen(newKeepOpenState);
|
9991
9221
|
}
|
9992
9222
|
},
|
@@ -10012,14 +9242,7 @@ var AppLayout = ({
|
|
10012
9242
|
)
|
10013
9243
|
) : null
|
10014
9244
|
)
|
10015
|
-
)), /* @__PURE__ */ React75.createElement(
|
10016
|
-
Dialog3.Root,
|
10017
|
-
{
|
10018
|
-
open: size < 600 && openSideMenu,
|
10019
|
-
onOpenChange: setOpenSideMenu
|
10020
|
-
},
|
10021
|
-
/* @__PURE__ */ React75.createElement(Dialog3.Portal, { container }, /* @__PURE__ */ React75.createElement(Dialog3.Overlay, { className: "hawa-fixed hawa-inset-0 hawa-bg-foreground/20 hawa-backdrop-blur-[2px] data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out hawa-z-10 data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0" }))
|
10022
|
-
), /* @__PURE__ */ React75.createElement(
|
9245
|
+
)), /* @__PURE__ */ React75.createElement(Dialog3.Root, { open: size < 600 && openSideMenu, onOpenChange: setOpenSideMenu }, /* @__PURE__ */ React75.createElement(Dialog3.Portal, { container }, /* @__PURE__ */ React75.createElement(Dialog3.Overlay, { className: "hawa-fixed hawa-inset-0 hawa-bg-foreground/20 hawa-backdrop-blur-[2px] data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out hawa-z-10 data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0" }))), /* @__PURE__ */ React75.createElement(
|
10023
9246
|
"div",
|
10024
9247
|
{
|
10025
9248
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all hawa-z-0",
|
@@ -10101,15 +9324,7 @@ var AppTopbar = ({ ...props }) => {
|
|
10101
9324
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
10102
9325
|
)
|
10103
9326
|
},
|
10104
|
-
size > 600 ? /* @__PURE__ */ React76.createElement(
|
10105
|
-
"div",
|
10106
|
-
{
|
10107
|
-
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
10108
|
-
},
|
10109
|
-
/* @__PURE__ */ React76.createElement("div", { className: "hawa-font-bold" }, props.username),
|
10110
|
-
" ",
|
10111
|
-
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
10112
|
-
) : null,
|
9327
|
+
size > 600 ? /* @__PURE__ */ React76.createElement("div", { className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs" }, /* @__PURE__ */ React76.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ React76.createElement("div", null, props.email)) : null,
|
10113
9328
|
/* @__PURE__ */ React76.createElement(
|
10114
9329
|
DropdownMenu,
|
10115
9330
|
{
|
@@ -10219,22 +9434,20 @@ var MenubarSubContent = React77.forwardRef(({ className, ...props }, ref) => /*
|
|
10219
9434
|
}
|
10220
9435
|
));
|
10221
9436
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
10222
|
-
var MenubarContent = React77.forwardRef(
|
10223
|
-
|
10224
|
-
|
10225
|
-
|
10226
|
-
|
10227
|
-
|
10228
|
-
|
10229
|
-
|
10230
|
-
|
10231
|
-
|
10232
|
-
|
10233
|
-
|
10234
|
-
|
10235
|
-
|
10236
|
-
))
|
10237
|
-
);
|
9437
|
+
var MenubarContent = React77.forwardRef(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React77.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React77.createElement(
|
9438
|
+
MenubarPrimitive.Content,
|
9439
|
+
{
|
9440
|
+
ref,
|
9441
|
+
align,
|
9442
|
+
alignOffset,
|
9443
|
+
sideOffset,
|
9444
|
+
className: cn(
|
9445
|
+
"hawa-z-50 hawa-min-w-[12rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in 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",
|
9446
|
+
className
|
9447
|
+
),
|
9448
|
+
...props
|
9449
|
+
}
|
9450
|
+
)));
|
10238
9451
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
10239
9452
|
var MenubarItem = React77.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React77.createElement(
|
10240
9453
|
MenubarPrimitive.Item,
|
@@ -10330,10 +9543,7 @@ var MenubarSeparator = React77.forwardRef(({ className, ...props }, ref) => /* @
|
|
10330
9543
|
}
|
10331
9544
|
));
|
10332
9545
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
10333
|
-
var MenubarShortcut = ({
|
10334
|
-
className,
|
10335
|
-
...props
|
10336
|
-
}) => {
|
9546
|
+
var MenubarShortcut = ({ className, ...props }) => {
|
10337
9547
|
return /* @__PURE__ */ React77.createElement(
|
10338
9548
|
"span",
|
10339
9549
|
{
|
@@ -10351,44 +9561,35 @@ MenubarShortcut.displayname = "MenubarShortcut";
|
|
10351
9561
|
import React78, { useState as useState39 } from "react";
|
10352
9562
|
var AppTabs = ({ tabs, className }) => {
|
10353
9563
|
const [selectedIndex, setSelectedIndex] = useState39(0);
|
10354
|
-
return /* @__PURE__ */ React78.createElement(
|
10355
|
-
|
10356
|
-
|
10357
|
-
|
10358
|
-
|
10359
|
-
|
10360
|
-
|
10361
|
-
|
10362
|
-
|
10363
|
-
|
10364
|
-
|
10365
|
-
"a",
|
10366
|
-
{
|
10367
|
-
href: tab.path,
|
10368
|
-
key: index,
|
10369
|
-
onMouseDown: (e) => {
|
10370
|
-
if (tab.onMouseDown) {
|
10371
|
-
tab.onMouseDown(e);
|
10372
|
-
}
|
10373
|
-
},
|
10374
|
-
onClick: (e) => {
|
10375
|
-
if (tab.onClick) {
|
10376
|
-
tab.onClick(e);
|
10377
|
-
}
|
10378
|
-
setSelectedIndex(index);
|
10379
|
-
},
|
10380
|
-
className: cn(
|
10381
|
-
"hawa-z-10 hawa-flex hawa-items-center hawa-translate-y-[1.1px] hawa-select-none hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-4 hawa-py-2 hawa-text-sm hawa-transition-all",
|
10382
|
-
"hawa-border",
|
10383
|
-
// Always have a border but make it transparent
|
10384
|
-
selected ? "hawa-border hawa-border-b-transparent hawa-bg-background" : "hawa-cursor-pointer hawa-border-transparent hover:hawa-bg-card-foreground/5"
|
10385
|
-
)
|
9564
|
+
return /* @__PURE__ */ React78.createElement("div", { className: cn("hawa-w-full hawa-border-b hawa-bg-card hawa-p-6 hawa-pb-0", className) }, /* @__PURE__ */ React78.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center" }, tabs.map((tab, index) => {
|
9565
|
+
const selected = index === selectedIndex;
|
9566
|
+
return /* @__PURE__ */ React78.createElement(
|
9567
|
+
"a",
|
9568
|
+
{
|
9569
|
+
href: tab.path,
|
9570
|
+
key: index,
|
9571
|
+
onMouseDown: (e) => {
|
9572
|
+
if (tab.onMouseDown) {
|
9573
|
+
tab.onMouseDown(e);
|
9574
|
+
}
|
10386
9575
|
},
|
10387
|
-
|
10388
|
-
|
10389
|
-
|
10390
|
-
|
10391
|
-
|
9576
|
+
onClick: (e) => {
|
9577
|
+
if (tab.onClick) {
|
9578
|
+
tab.onClick(e);
|
9579
|
+
}
|
9580
|
+
setSelectedIndex(index);
|
9581
|
+
},
|
9582
|
+
className: cn(
|
9583
|
+
"hawa-z-10 hawa-flex hawa-items-center hawa-translate-y-[1.1px] hawa-select-none hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-4 hawa-py-2 hawa-text-sm hawa-transition-all",
|
9584
|
+
"hawa-border",
|
9585
|
+
// Always have a border but make it transparent
|
9586
|
+
selected ? "hawa-border hawa-border-b-transparent hawa-bg-background" : "hawa-cursor-pointer hawa-border-transparent hover:hawa-bg-card-foreground/5"
|
9587
|
+
)
|
9588
|
+
},
|
9589
|
+
tab.icon && tab.icon,
|
9590
|
+
tab.label
|
9591
|
+
);
|
9592
|
+
})));
|
10392
9593
|
};
|
10393
9594
|
|
10394
9595
|
// layout/docsLayout/DocsLayout.tsx
|
@@ -10436,25 +9637,18 @@ var DocsSidebar = ({
|
|
10436
9637
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
10437
9638
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
10438
9639
|
};
|
10439
|
-
return /* @__PURE__ */ React79.createElement(
|
9640
|
+
return /* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-col hawa-overflow-x-clip", dir: direction }, pages.map((page, index) => /* @__PURE__ */ React79.createElement(
|
10440
9641
|
"div",
|
10441
9642
|
{
|
10442
|
-
|
10443
|
-
|
9643
|
+
key: index,
|
9644
|
+
className: cn(
|
9645
|
+
"hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hawa-py-1 hawa-text-xs hawa-transition-all hover:hawa-bg-gray-100",
|
9646
|
+
(propCurrentPage || activePage) === page ? selectedStyles[direction || "rtl"] : ""
|
9647
|
+
),
|
9648
|
+
onClick: (event) => handlePageClick(page, event)
|
10444
9649
|
},
|
10445
|
-
|
10446
|
-
|
10447
|
-
{
|
10448
|
-
key: index,
|
10449
|
-
className: cn(
|
10450
|
-
"hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hawa-py-1 hawa-text-xs hawa-transition-all hover:hawa-bg-gray-100",
|
10451
|
-
(propCurrentPage || activePage) === page ? selectedStyles[direction || "rtl"] : ""
|
10452
|
-
),
|
10453
|
-
onClick: (event) => handlePageClick(page, event)
|
10454
|
-
},
|
10455
|
-
page
|
10456
|
-
))
|
10457
|
-
);
|
9650
|
+
page
|
9651
|
+
)));
|
10458
9652
|
};
|
10459
9653
|
|
10460
9654
|
// layout/docsLayout/DocsLayout.tsx
|
@@ -10589,14 +9783,7 @@ var DocsLayout = ({
|
|
10589
9783
|
}
|
10590
9784
|
)
|
10591
9785
|
)
|
10592
|
-
)), /* @__PURE__ */ React80.createElement(
|
10593
|
-
SheetContent,
|
10594
|
-
{
|
10595
|
-
side: isRTL ? "right" : "left",
|
10596
|
-
className: "hawa-pt-10"
|
10597
|
-
},
|
10598
|
-
/* @__PURE__ */ React80.createElement(DocsSidebar, { direction, pages: pages || [] })
|
10599
|
-
))
|
9786
|
+
)), /* @__PURE__ */ React80.createElement(SheetContent, { side: isRTL ? "right" : "left", className: "hawa-pt-10" }, /* @__PURE__ */ React80.createElement(DocsSidebar, { direction, pages: pages || [] })))
|
10600
9787
|
)
|
10601
9788
|
),
|
10602
9789
|
/* @__PURE__ */ React80.createElement(
|
@@ -10632,14 +9819,7 @@ var DocsLayout = ({
|
|
10632
9819
|
},
|
10633
9820
|
ref
|
10634
9821
|
},
|
10635
|
-
/* @__PURE__ */ React80.createElement(
|
10636
|
-
DocsSidebar,
|
10637
|
-
{
|
10638
|
-
direction,
|
10639
|
-
pages: pages || [],
|
10640
|
-
currentPage
|
10641
|
-
}
|
10642
|
-
)
|
9822
|
+
/* @__PURE__ */ React80.createElement(DocsSidebar, { direction, pages: pages || [], currentPage })
|
10643
9823
|
), /* @__PURE__ */ React80.createElement(
|
10644
9824
|
"div",
|
10645
9825
|
{
|
@@ -11287,7 +10467,7 @@ var RegisterForm = ({
|
|
11287
10467
|
);
|
11288
10468
|
}
|
11289
10469
|
},
|
11290
|
-
registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React83.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-mb-4" }, /* @__PURE__ */ React83.createElement(TabsList2, { className: "hawa-w-full" }, registerTypes.map((registerType) => /* @__PURE__ */ React83.createElement(TabsTrigger2, { value: registerType.value }, registerType.label)))),
|
10470
|
+
registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React83.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-mb-4" }, /* @__PURE__ */ React83.createElement(TabsList2, { className: "hawa-w-full" }, registerTypes.map((registerType, k) => /* @__PURE__ */ React83.createElement(TabsTrigger2, { key: k, value: registerType.value }, registerType.label)))),
|
11291
10471
|
/* @__PURE__ */ React83.createElement(
|
11292
10472
|
TabsContent,
|
11293
10473
|
{
|
@@ -11689,14 +10869,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
11689
10869
|
handleEmail: props.handleEmail,
|
11690
10870
|
handlePhone: props.handlePhone
|
11691
10871
|
}
|
11692
|
-
), props.allowRegister && /* @__PURE__ */ React84.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React84.createElement(
|
11693
|
-
"span",
|
11694
|
-
{
|
11695
|
-
onClick: props.handleRouteToRegister,
|
11696
|
-
className: "clickable-link"
|
11697
|
-
},
|
11698
|
-
texts == null ? void 0 : texts.createAccount
|
11699
|
-
)))));
|
10872
|
+
), props.allowRegister && /* @__PURE__ */ React84.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React84.createElement("span", { onClick: props.handleRouteToRegister, className: "clickable-link" }, texts == null ? void 0 : texts.createAccount)))));
|
11700
10873
|
};
|
11701
10874
|
|
11702
10875
|
// blocks/auth/CheckEmail.tsx
|
@@ -11725,11 +10898,7 @@ import React86 from "react";
|
|
11725
10898
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
11726
10899
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
11727
10900
|
import * as z3 from "zod";
|
11728
|
-
var NewPasswordForm = ({
|
11729
|
-
texts,
|
11730
|
-
isLoading,
|
11731
|
-
...props
|
11732
|
-
}) => {
|
10901
|
+
var NewPasswordForm = ({ texts, isLoading, ...props }) => {
|
11733
10902
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
11734
10903
|
const formSchema = z3.object({
|
11735
10904
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
@@ -11751,9 +10920,7 @@ var NewPasswordForm = ({
|
|
11751
10920
|
if (props.handleNewPassword) {
|
11752
10921
|
return props.handleNewPassword(e);
|
11753
10922
|
} else {
|
11754
|
-
console.log(
|
11755
|
-
"Form is submitted but handleSubmission prop is missing"
|
11756
|
-
);
|
10923
|
+
console.log("Form is submitted but handleSubmission prop is missing");
|
11757
10924
|
}
|
11758
10925
|
})
|
11759
10926
|
},
|
@@ -11807,14 +10974,7 @@ var NewPasswordForm = ({
|
|
11807
10974
|
);
|
11808
10975
|
}
|
11809
10976
|
}
|
11810
|
-
)), /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React86.createElement(
|
11811
|
-
"span",
|
11812
|
-
{
|
11813
|
-
className: "clickable-link",
|
11814
|
-
onClick: props.handleRouteToRegister
|
11815
|
-
},
|
11816
|
-
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
11817
|
-
)))
|
10977
|
+
)), /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React86.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React86.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register")))
|
11818
10978
|
));
|
11819
10979
|
};
|
11820
10980
|
|
@@ -11880,22 +11040,7 @@ var ResetPasswordForm = ({
|
|
11880
11040
|
}
|
11881
11041
|
}
|
11882
11042
|
)),
|
11883
|
-
/* @__PURE__ */ React87.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React87.createElement(
|
11884
|
-
Button,
|
11885
|
-
{
|
11886
|
-
type: "submit",
|
11887
|
-
className: "hawa-w-full",
|
11888
|
-
isLoading
|
11889
|
-
},
|
11890
|
-
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
11891
|
-
), allowRegister && /* @__PURE__ */ React87.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React87.createElement(
|
11892
|
-
"span",
|
11893
|
-
{
|
11894
|
-
className: "clickable-link",
|
11895
|
-
onClick: props.handleRouteToRegister
|
11896
|
-
},
|
11897
|
-
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
11898
|
-
)))
|
11043
|
+
/* @__PURE__ */ React87.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React87.createElement(Button, { type: "submit", className: "hawa-w-full", isLoading }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ React87.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React87.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register")))
|
11899
11044
|
)) : /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
11900
11045
|
};
|
11901
11046
|
|
@@ -11943,7 +11088,7 @@ var CodeConfirmation = ({ codeLength = 6, ...props }) => {
|
|
11943
11088
|
}
|
11944
11089
|
};
|
11945
11090
|
}, []);
|
11946
|
-
return /* @__PURE__ */ React88.createElement(Card, null, /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React88.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React88.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React88.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React88.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React88.createElement("span", null, (
|
11091
|
+
return /* @__PURE__ */ React88.createElement(Card, null, /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React88.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React88.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React88.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React88.createElement("div", { className: "hawa-text-muted-foreground hawa-flex hawa-flex-row" }, /* @__PURE__ */ React88.createElement("span", null, `${(_d = props.texts) == null ? void 0 : _d.weSentCode} ` || `We've sent a code to `, /* @__PURE__ */ React88.createElement("span", { dir: "ltr" }, props.identifier)))), /* @__PURE__ */ React88.createElement(
|
11947
11092
|
"form",
|
11948
11093
|
{
|
11949
11094
|
noValidate: true,
|
@@ -12037,19 +11182,13 @@ var UserReferralSource = ({
|
|
12037
11182
|
return /* @__PURE__ */ React89.createElement(
|
12038
11183
|
"div",
|
12039
11184
|
{
|
12040
|
-
className: cn(
|
12041
|
-
"hawa-transition-all",
|
12042
|
-
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
12043
|
-
),
|
11185
|
+
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
12044
11186
|
ref: popUpRef
|
12045
11187
|
},
|
12046
11188
|
/* @__PURE__ */ React89.createElement(
|
12047
11189
|
Card,
|
12048
11190
|
{
|
12049
|
-
className: cn(
|
12050
|
-
"hawa-fixed hawa-bottom-4 hawa-p-0 ",
|
12051
|
-
boxPosition[position]
|
12052
|
-
),
|
11191
|
+
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0", boxPosition[position]),
|
12053
11192
|
dir: props.direction
|
12054
11193
|
},
|
12055
11194
|
/* @__PURE__ */ React89.createElement(
|
@@ -12058,7 +11197,7 @@ var UserReferralSource = ({
|
|
12058
11197
|
type: "button",
|
12059
11198
|
className: cn(
|
12060
11199
|
props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
|
12061
|
-
"hawa-absolute
|
11200
|
+
"hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"
|
12062
11201
|
),
|
12063
11202
|
"data-dismiss-target": "#toast-default",
|
12064
11203
|
"aria-label": "Close",
|
@@ -12110,7 +11249,7 @@ var UserReferralSource = ({
|
|
12110
11249
|
)
|
12111
11250
|
},
|
12112
11251
|
/* @__PURE__ */ React89.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
12113
|
-
/* @__PURE__ */ React89.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded
|
11252
|
+
/* @__PURE__ */ React89.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, /* @__PURE__ */ React89.createElement(
|
12114
11253
|
Controller6,
|
12115
11254
|
{
|
12116
11255
|
control,
|
@@ -12162,10 +11301,7 @@ var UserReferralSource = ({
|
|
12162
11301
|
|
12163
11302
|
// blocks/feedback/FeedbackRating.tsx
|
12164
11303
|
import React90, { useEffect as useEffect35, useRef as useRef22, useState as useState45 } from "react";
|
12165
|
-
var FeedbackRating = ({
|
12166
|
-
position = "bottom-right",
|
12167
|
-
...props
|
12168
|
-
}) => {
|
11304
|
+
var FeedbackRating = ({ position = "bottom-right", ...props }) => {
|
12169
11305
|
const [closed, setClosed] = useState45(false);
|
12170
11306
|
const [answered, setAnswered] = useState45(false);
|
12171
11307
|
const [clickedOption, setClickedOption] = useState45(null);
|
@@ -12255,9 +11391,7 @@ var FeedbackRating = ({
|
|
12255
11391
|
}, 4800);
|
12256
11392
|
setTimeout(() => {
|
12257
11393
|
var _a, _b;
|
12258
|
-
(_b = popUpRef.current) == null ? void 0 : _b.removeChild(
|
12259
|
-
(_a = popUpRef.current) == null ? void 0 : _a.children[0]
|
12260
|
-
);
|
11394
|
+
(_b = popUpRef.current) == null ? void 0 : _b.removeChild((_a = popUpRef.current) == null ? void 0 : _a.children[0]);
|
12261
11395
|
clearTimeout(timeoutDestroy);
|
12262
11396
|
}, 5300);
|
12263
11397
|
},
|
@@ -12407,9 +11541,7 @@ var FeedbackForm = (props) => {
|
|
12407
11541
|
return /* @__PURE__ */ React92.createElement(
|
12408
11542
|
Card,
|
12409
11543
|
{
|
12410
|
-
className: cn(
|
12411
|
-
props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""
|
12412
|
-
),
|
11544
|
+
className: cn(props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""),
|
12413
11545
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
12414
11546
|
},
|
12415
11547
|
/* @__PURE__ */ React92.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React92.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React92.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React92.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React92.createElement(
|
@@ -12582,10 +11714,7 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
12582
11714
|
|
12583
11715
|
// blocks/misc/Announcement.tsx
|
12584
11716
|
import React97 from "react";
|
12585
|
-
var Announcement = ({
|
12586
|
-
onActionClick,
|
12587
|
-
...props
|
12588
|
-
}) => {
|
11717
|
+
var Announcement = ({ onActionClick, ...props }) => {
|
12589
11718
|
return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(
|
12590
11719
|
CardContent,
|
12591
11720
|
{
|
@@ -12593,14 +11722,7 @@ var Announcement = ({
|
|
12593
11722
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
12594
11723
|
},
|
12595
11724
|
/* @__PURE__ */ React97.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ React97.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React97.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
12596
|
-
/* @__PURE__ */ React97.createElement(
|
12597
|
-
Button,
|
12598
|
-
{
|
12599
|
-
onClick: () => onActionClick(),
|
12600
|
-
className: "hawa-whitespace-nowrap"
|
12601
|
-
},
|
12602
|
-
props.actionText
|
12603
|
-
)
|
11725
|
+
/* @__PURE__ */ React97.createElement(Button, { onClick: () => onActionClick(), className: "hawa-whitespace-nowrap" }, props.actionText)
|
12604
11726
|
));
|
12605
11727
|
};
|
12606
11728
|
|
@@ -12646,25 +11768,22 @@ var ContactForm = ({
|
|
12646
11768
|
}) => {
|
12647
11769
|
var _a, _b, _c, _d, _e;
|
12648
11770
|
const customFieldsSchema = z8.object({
|
12649
|
-
...customFields == null ? void 0 : customFields.reduce(
|
12650
|
-
(
|
12651
|
-
|
12652
|
-
|
12653
|
-
|
12654
|
-
|
12655
|
-
|
12656
|
-
|
12657
|
-
|
12658
|
-
|
12659
|
-
|
12660
|
-
|
12661
|
-
|
12662
|
-
|
12663
|
-
|
12664
|
-
|
12665
|
-
},
|
12666
|
-
{}
|
12667
|
-
)
|
11771
|
+
...customFields == null ? void 0 : customFields.reduce((acc, curr) => {
|
11772
|
+
switch (curr.type) {
|
11773
|
+
case "text":
|
11774
|
+
acc[curr.name] = z8.string().optional().default("");
|
11775
|
+
break;
|
11776
|
+
case "number":
|
11777
|
+
acc[curr.name] = z8.string().optional().default("");
|
11778
|
+
break;
|
11779
|
+
case "select":
|
11780
|
+
acc[curr.name] = z8.string().optional().default("");
|
11781
|
+
break;
|
11782
|
+
default:
|
11783
|
+
break;
|
11784
|
+
}
|
11785
|
+
return acc;
|
11786
|
+
}, {})
|
12668
11787
|
});
|
12669
11788
|
const contactFormSchema = z8.object({
|
12670
11789
|
name: z8.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
|
@@ -12734,13 +11853,10 @@ var ContactForm = ({
|
|
12734
11853
|
/* @__PURE__ */ React100.createElement(
|
12735
11854
|
"div",
|
12736
11855
|
{
|
12737
|
-
className: cn(
|
12738
|
-
"hawa-flex
|
12739
|
-
|
12740
|
-
|
12741
|
-
"hawa-flex-col": size === "sm"
|
12742
|
-
}
|
12743
|
-
)
|
11856
|
+
className: cn("hawa-flex hawa-items-start hawa-justify-start hawa-gap-2", {
|
11857
|
+
"hawa-flex-row": size === "default",
|
11858
|
+
"hawa-flex-col": size === "sm"
|
11859
|
+
})
|
12744
11860
|
},
|
12745
11861
|
/* @__PURE__ */ React100.createElement(
|
12746
11862
|
Controller9,
|
@@ -12838,9 +11954,7 @@ var ContactForm = ({
|
|
12838
11954
|
placeholder: texts == null ? void 0 : texts.message.placeholder,
|
12839
11955
|
className: "hawa-min-h-20",
|
12840
11956
|
...field,
|
12841
|
-
onKeyDown: getHotkeyHandler([
|
12842
|
-
["mod+enter", () => SubmitForm(getValues())]
|
12843
|
-
])
|
11957
|
+
onKeyDown: getHotkeyHandler([["mod+enter", () => SubmitForm(getValues())]])
|
12844
11958
|
},
|
12845
11959
|
classNames: { textarea: "hawa-min-h-40 hawa-h-full" },
|
12846
11960
|
helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
|
@@ -12849,14 +11963,7 @@ var ContactForm = ({
|
|
12849
11963
|
}
|
12850
11964
|
}
|
12851
11965
|
),
|
12852
|
-
/* @__PURE__ */ React100.createElement(
|
12853
|
-
Button,
|
12854
|
-
{
|
12855
|
-
type: "submit",
|
12856
|
-
className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
|
12857
|
-
},
|
12858
|
-
(texts == null ? void 0 : texts.submit) || "Submit"
|
12859
|
-
)
|
11966
|
+
/* @__PURE__ */ React100.createElement(Button, { type: "submit", className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton) }, (texts == null ? void 0 : texts.submit) || "Submit")
|
12860
11967
|
))
|
12861
11968
|
);
|
12862
11969
|
};
|
@@ -12905,10 +12012,7 @@ var ActionCard = (props) => {
|
|
12905
12012
|
|
12906
12013
|
// blocks/cards/AdCard.tsx
|
12907
12014
|
import React102, { useState as useState48, useEffect as useEffect36, useRef as useRef23 } from "react";
|
12908
|
-
var AdCard = ({
|
12909
|
-
orientation = "vertical",
|
12910
|
-
...props
|
12911
|
-
}) => {
|
12015
|
+
var AdCard = ({ orientation = "vertical", ...props }) => {
|
12912
12016
|
const adRef = useRef23(null);
|
12913
12017
|
const [closed, setClosed] = useState48(false);
|
12914
12018
|
let duration = 0;
|
@@ -12937,43 +12041,34 @@ var AdCard = ({
|
|
12937
12041
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
12938
12042
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
12939
12043
|
};
|
12940
|
-
return /* @__PURE__ */ React102.createElement("div", { ref: adRef }, /* @__PURE__ */ React102.createElement(
|
12941
|
-
"
|
12044
|
+
return /* @__PURE__ */ React102.createElement("div", { ref: adRef }, /* @__PURE__ */ React102.createElement("div", { className: cn(cardStyles[orientation], props.className), onClick: props.handleClick }, /* @__PURE__ */ React102.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start" }, /* @__PURE__ */ React102.createElement(
|
12045
|
+
"img",
|
12942
12046
|
{
|
12943
|
-
|
12944
|
-
|
12945
|
-
}
|
12946
|
-
|
12947
|
-
|
12948
|
-
|
12949
|
-
|
12950
|
-
|
12951
|
-
|
12952
|
-
|
12953
|
-
|
12954
|
-
|
12955
|
-
|
12956
|
-
{
|
12957
|
-
onClick: (e) => {
|
12958
|
-
e.stopPropagation();
|
12959
|
-
if (props.canHide) {
|
12960
|
-
setClosed(true);
|
12961
|
-
setTimeout(() => {
|
12962
|
-
if (adRef.current) {
|
12963
|
-
adRef.current.removeChild(adRef.current.children[0]);
|
12964
|
-
}
|
12965
|
-
}, 200);
|
12966
|
-
} else {
|
12967
|
-
if (props.handleCantHide) {
|
12968
|
-
props.handleCantHide();
|
12047
|
+
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
12048
|
+
className: imageStyles[orientation]
|
12049
|
+
}
|
12050
|
+
)), /* @__PURE__ */ React102.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React102.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React102.createElement("div", { className: "hawa-text-[12px]" }, props.description)), props.canHide && /* @__PURE__ */ React102.createElement(
|
12051
|
+
"span",
|
12052
|
+
{
|
12053
|
+
onClick: (e) => {
|
12054
|
+
e.stopPropagation();
|
12055
|
+
if (props.canHide) {
|
12056
|
+
setClosed(true);
|
12057
|
+
setTimeout(() => {
|
12058
|
+
if (adRef.current) {
|
12059
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
12969
12060
|
}
|
12061
|
+
}, 200);
|
12062
|
+
} else {
|
12063
|
+
if (props.handleCantHide) {
|
12064
|
+
props.handleCantHide();
|
12970
12065
|
}
|
12971
|
-
}
|
12972
|
-
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
12066
|
+
}
|
12973
12067
|
},
|
12974
|
-
"
|
12975
|
-
|
12976
|
-
|
12068
|
+
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
12069
|
+
},
|
12070
|
+
"Hide"
|
12071
|
+
)));
|
12977
12072
|
};
|
12978
12073
|
|
12979
12074
|
// blocks/cards/PricingCard.tsx
|
@@ -12992,13 +12087,7 @@ var PricingCard = ({
|
|
12992
12087
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background",
|
12993
12088
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background"
|
12994
12089
|
};
|
12995
|
-
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React103.createElement(
|
12996
|
-
Skeleton,
|
12997
|
-
{
|
12998
|
-
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
12999
|
-
fade: "bottom"
|
13000
|
-
}
|
13001
|
-
) : /* @__PURE__ */ React103.createElement(
|
12090
|
+
return /* @__PURE__ */ React103.createElement(React103.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React103.createElement(Skeleton, { className: cn(cardSizes[size], "hawa-h-[200px]"), fade: "bottom" }) : /* @__PURE__ */ React103.createElement(
|
13002
12091
|
Card,
|
13003
12092
|
{
|
13004
12093
|
dir: direction,
|
@@ -13053,48 +12142,26 @@ var PricingCard = ({
|
|
13053
12142
|
clipRule: "evenodd"
|
13054
12143
|
}
|
13055
12144
|
)
|
13056
|
-
) : /* @__PURE__ */ React103.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React103.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React103.createElement(
|
13057
|
-
|
13058
|
-
|
13059
|
-
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
13060
|
-
color: "oceanic",
|
13061
|
-
size: "small"
|
13062
|
-
}
|
13063
|
-
))),
|
13064
|
-
feature.hint && /* @__PURE__ */ React103.createElement(
|
13065
|
-
Tooltip,
|
12145
|
+
) : /* @__PURE__ */ React103.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React103.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React103.createElement(Chip, { label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "", color: "oceanic", size: "small" }))),
|
12146
|
+
feature.hint && /* @__PURE__ */ React103.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React103.createElement(
|
12147
|
+
"svg",
|
13066
12148
|
{
|
13067
|
-
|
13068
|
-
|
12149
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12150
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
12151
|
+
viewBox: "0 0 24 24",
|
12152
|
+
fill: "none",
|
12153
|
+
stroke: "currentColor",
|
12154
|
+
strokeWidth: "2",
|
12155
|
+
strokeLinecap: "round",
|
12156
|
+
strokeLinejoin: "round"
|
13069
12157
|
},
|
13070
|
-
/* @__PURE__ */ React103.createElement(
|
13071
|
-
|
13072
|
-
|
13073
|
-
|
13074
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
13075
|
-
viewBox: "0 0 24 24",
|
13076
|
-
fill: "none",
|
13077
|
-
stroke: "currentColor",
|
13078
|
-
strokeWidth: "2",
|
13079
|
-
strokeLinecap: "round",
|
13080
|
-
strokeLinejoin: "round"
|
13081
|
-
},
|
13082
|
-
/* @__PURE__ */ React103.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
13083
|
-
/* @__PURE__ */ React103.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
13084
|
-
/* @__PURE__ */ React103.createElement("path", { d: "M12 17h.01" })
|
13085
|
-
)
|
13086
|
-
)
|
12158
|
+
/* @__PURE__ */ React103.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
12159
|
+
/* @__PURE__ */ React103.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
12160
|
+
/* @__PURE__ */ React103.createElement("path", { d: "M12 17h.01" })
|
12161
|
+
))
|
13087
12162
|
);
|
13088
12163
|
})),
|
13089
|
-
/* @__PURE__ */ React103.createElement(
|
13090
|
-
Button,
|
13091
|
-
{
|
13092
|
-
onClick: props.onPlanClicked,
|
13093
|
-
disabled: currentPlan,
|
13094
|
-
className: "hawa-w-full"
|
13095
|
-
},
|
13096
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
13097
|
-
)
|
12164
|
+
/* @__PURE__ */ React103.createElement(Button, { onClick: props.onPlanClicked, disabled: currentPlan, className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.buttonText)
|
13098
12165
|
))
|
13099
12166
|
));
|
13100
12167
|
};
|
@@ -13181,25 +12248,16 @@ var ItemCard = ({
|
|
13181
12248
|
DropdownMenu,
|
13182
12249
|
{
|
13183
12250
|
items: headerActions,
|
13184
|
-
trigger: /* @__PURE__ */ React104.createElement(
|
13185
|
-
|
12251
|
+
trigger: /* @__PURE__ */ React104.createElement(Button, { variant: "ghost", size: "smallIcon", onClick: handleOpenActionHeader }, /* @__PURE__ */ React104.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"), /* @__PURE__ */ React104.createElement(
|
12252
|
+
"svg",
|
13186
12253
|
{
|
13187
|
-
|
13188
|
-
|
13189
|
-
|
12254
|
+
className: "hawa-h-5 hawa-w-5",
|
12255
|
+
"aria-hidden": "true",
|
12256
|
+
fill: "currentColor",
|
12257
|
+
viewBox: "0 0 20 20"
|
13190
12258
|
},
|
13191
|
-
/* @__PURE__ */ React104.createElement("
|
13192
|
-
|
13193
|
-
"svg",
|
13194
|
-
{
|
13195
|
-
className: "hawa-h-5 hawa-w-5",
|
13196
|
-
"aria-hidden": "true",
|
13197
|
-
fill: "currentColor",
|
13198
|
-
viewBox: "0 0 20 20"
|
13199
|
-
},
|
13200
|
-
/* @__PURE__ */ React104.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
13201
|
-
)
|
13202
|
-
)
|
12259
|
+
/* @__PURE__ */ React104.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
12260
|
+
))
|
13203
12261
|
}
|
13204
12262
|
))), /* @__PURE__ */ React104.createElement("div", { className: "hawa-mx-2" }, header && /* @__PURE__ */ React104.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight" }, header), content && /* @__PURE__ */ React104.createElement("span", { className: "hawa-w-full hawa-font-normal" }, content)), actions || counts ? /* @__PURE__ */ React104.createElement(
|
13205
12263
|
"div",
|
@@ -13296,11 +12354,7 @@ var PricingPlans = ({
|
|
13296
12354
|
import React107 from "react";
|
13297
12355
|
var ComparingPlans = (props) => {
|
13298
12356
|
const uniqueFeatures = Array.from(
|
13299
|
-
new Set(
|
13300
|
-
props.plans.flatMap(
|
13301
|
-
(plan) => plan.features.map((feature) => feature.text)
|
13302
|
-
)
|
13303
|
-
)
|
12357
|
+
new Set(props.plans.flatMap((plan) => plan.features.map((feature) => feature.text)))
|
13304
12358
|
);
|
13305
12359
|
return /* @__PURE__ */ React107.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React107.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React107.createElement(
|
13306
12360
|
Radio,
|
@@ -13370,9 +12424,7 @@ var ComparingPlans = (props) => {
|
|
13370
12424
|
)
|
13371
12425
|
},
|
13372
12426
|
/* @__PURE__ */ React107.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
13373
|
-
(plan) => plan.features.some(
|
13374
|
-
(feature) => feature.text === featureText && feature.hint
|
13375
|
-
)
|
12427
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.hint)
|
13376
12428
|
) && /* @__PURE__ */ React107.createElement(
|
13377
12429
|
Tooltip,
|
13378
12430
|
{
|
@@ -13380,13 +12432,9 @@ var ComparingPlans = (props) => {
|
|
13380
12432
|
content: (_b = (_a = props.plans.find(
|
13381
12433
|
(plan) => {
|
13382
12434
|
var _a2;
|
13383
|
-
return (_a2 = plan.features.find(
|
13384
|
-
(feature) => feature.text === featureText
|
13385
|
-
)) == null ? void 0 : _a2.hint;
|
12435
|
+
return (_a2 = plan.features.find((feature) => feature.text === featureText)) == null ? void 0 : _a2.hint;
|
13386
12436
|
}
|
13387
|
-
)) == null ? void 0 : _a.features.find(
|
13388
|
-
(feature) => feature.text === featureText
|
13389
|
-
)) == null ? void 0 : _b.hint
|
12437
|
+
)) == null ? void 0 : _a.features.find((feature) => feature.text === featureText)) == null ? void 0 : _b.hint
|
13390
12438
|
},
|
13391
12439
|
/* @__PURE__ */ React107.createElement(
|
13392
12440
|
"svg",
|
@@ -13401,9 +12449,7 @@ var ComparingPlans = (props) => {
|
|
13401
12449
|
/* @__PURE__ */ React107.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
13402
12450
|
)
|
13403
12451
|
), props.plans.some(
|
13404
|
-
(plan) => plan.features.some(
|
13405
|
-
(feature) => feature.text === featureText && feature.soon
|
13406
|
-
)
|
12452
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.soon)
|
13407
12453
|
) && /* @__PURE__ */ React107.createElement(
|
13408
12454
|
Chip,
|
13409
12455
|
{
|
@@ -13415,9 +12461,7 @@ var ComparingPlans = (props) => {
|
|
13415
12461
|
}
|
13416
12462
|
)),
|
13417
12463
|
props.plans.map((plan, planIndex) => {
|
13418
|
-
const feature = plan.features.find(
|
13419
|
-
(f) => f.text === featureText
|
13420
|
-
);
|
12464
|
+
const feature = plan.features.find((f) => f.text === featureText);
|
13421
12465
|
return /* @__PURE__ */ React107.createElement(
|
13422
12466
|
"div",
|
13423
12467
|
{
|
@@ -13431,32 +12475,25 @@ var ComparingPlans = (props) => {
|
|
13431
12475
|
})
|
13432
12476
|
), props.showButtons && /* @__PURE__ */ React107.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ React107.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
13433
12477
|
var _a;
|
13434
|
-
return /* @__PURE__ */ React107.createElement(
|
13435
|
-
|
12478
|
+
return /* @__PURE__ */ React107.createElement("div", { key: i, className: "hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React107.createElement(
|
12479
|
+
Button,
|
13436
12480
|
{
|
13437
|
-
|
13438
|
-
|
13439
|
-
|
13440
|
-
|
13441
|
-
|
13442
|
-
|
13443
|
-
|
13444
|
-
|
13445
|
-
|
13446
|
-
|
13447
|
-
|
13448
|
-
// plan: plan.id,
|
13449
|
-
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
13450
|
-
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
13451
|
-
...plan
|
13452
|
-
};
|
13453
|
-
props.onPlanClicked(clickedData);
|
13454
|
-
}
|
12481
|
+
className: "hawa-w-full hawa-max-w-xs",
|
12482
|
+
onClick: () => {
|
12483
|
+
var _a2, _b;
|
12484
|
+
if (props.onPlanClicked) {
|
12485
|
+
let clickedData = {
|
12486
|
+
// plan: plan.id,
|
12487
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
12488
|
+
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
12489
|
+
...plan
|
12490
|
+
};
|
12491
|
+
props.onPlanClicked(clickedData);
|
13455
12492
|
}
|
13456
|
-
}
|
13457
|
-
|
13458
|
-
)
|
13459
|
-
);
|
12493
|
+
}
|
12494
|
+
},
|
12495
|
+
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
12496
|
+
));
|
13460
12497
|
})));
|
13461
12498
|
};
|
13462
12499
|
|
@@ -13485,41 +12522,25 @@ var HorizontalPricing = (props) => {
|
|
13485
12522
|
options: props.billingCycles,
|
13486
12523
|
defaultValue: props.currentCycle
|
13487
12524
|
}
|
13488
|
-
)), data.map((d, i) => /* @__PURE__ */ React108.createElement(
|
13489
|
-
"
|
12525
|
+
)), data.map((d, i) => /* @__PURE__ */ React108.createElement("label", { key: i, htmlFor: d.title, className: "", onClick: () => setSelectedCard(d.title) }, /* @__PURE__ */ React108.createElement(
|
12526
|
+
"input",
|
13490
12527
|
{
|
13491
|
-
|
13492
|
-
|
13493
|
-
|
13494
|
-
|
12528
|
+
type: "radio",
|
12529
|
+
name: "radio",
|
12530
|
+
id: d.title,
|
12531
|
+
className: "hawa-peer hawa-appearance-none"
|
12532
|
+
}
|
12533
|
+
), /* @__PURE__ */ React108.createElement(
|
12534
|
+
"div",
|
12535
|
+
{
|
12536
|
+
className: cn(
|
12537
|
+
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
12538
|
+
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
12539
|
+
)
|
13495
12540
|
},
|
13496
|
-
/* @__PURE__ */ React108.createElement(
|
13497
|
-
|
13498
|
-
|
13499
|
-
type: "radio",
|
13500
|
-
name: "radio",
|
13501
|
-
id: d.title,
|
13502
|
-
className: "hawa-peer hawa-appearance-none"
|
13503
|
-
}
|
13504
|
-
),
|
13505
|
-
/* @__PURE__ */ React108.createElement(
|
13506
|
-
"div",
|
13507
|
-
{
|
13508
|
-
className: cn(
|
13509
|
-
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
13510
|
-
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
13511
|
-
)
|
13512
|
-
},
|
13513
|
-
/* @__PURE__ */ React108.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React108.createElement(CheckIcons, null), /* @__PURE__ */ React108.createElement(
|
13514
|
-
CardText,
|
13515
|
-
{
|
13516
|
-
title: "Enterprise",
|
13517
|
-
subtitle: "For startups and new businesses"
|
13518
|
-
}
|
13519
|
-
)),
|
13520
|
-
/* @__PURE__ */ React108.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
13521
|
-
)
|
13522
|
-
))));
|
12541
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React108.createElement(CheckIcons, null), /* @__PURE__ */ React108.createElement(CardText, { title: "Enterprise", subtitle: "For startups and new businesses" })),
|
12542
|
+
/* @__PURE__ */ React108.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
12543
|
+
)))));
|
13523
12544
|
};
|
13524
12545
|
var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement(
|
13525
12546
|
"svg",
|
@@ -13805,7 +12826,7 @@ export {
|
|
13805
12826
|
|
13806
12827
|
lucide-react/dist/esm/shared/src/utils.js:
|
13807
12828
|
(**
|
13808
|
-
* @license lucide-react v0.
|
12829
|
+
* @license lucide-react v0.435.0 - ISC
|
13809
12830
|
*
|
13810
12831
|
* This source code is licensed under the ISC license.
|
13811
12832
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13813,7 +12834,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13813
12834
|
|
13814
12835
|
lucide-react/dist/esm/defaultAttributes.js:
|
13815
12836
|
(**
|
13816
|
-
* @license lucide-react v0.
|
12837
|
+
* @license lucide-react v0.435.0 - ISC
|
13817
12838
|
*
|
13818
12839
|
* This source code is licensed under the ISC license.
|
13819
12840
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13821,7 +12842,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13821
12842
|
|
13822
12843
|
lucide-react/dist/esm/Icon.js:
|
13823
12844
|
(**
|
13824
|
-
* @license lucide-react v0.
|
12845
|
+
* @license lucide-react v0.435.0 - ISC
|
13825
12846
|
*
|
13826
12847
|
* This source code is licensed under the ISC license.
|
13827
12848
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13829,7 +12850,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13829
12850
|
|
13830
12851
|
lucide-react/dist/esm/createLucideIcon.js:
|
13831
12852
|
(**
|
13832
|
-
* @license lucide-react v0.
|
12853
|
+
* @license lucide-react v0.435.0 - ISC
|
13833
12854
|
*
|
13834
12855
|
* This source code is licensed under the ISC license.
|
13835
12856
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13837,7 +12858,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13837
12858
|
|
13838
12859
|
lucide-react/dist/esm/icons/dot.js:
|
13839
12860
|
(**
|
13840
|
-
* @license lucide-react v0.
|
12861
|
+
* @license lucide-react v0.435.0 - ISC
|
13841
12862
|
*
|
13842
12863
|
* This source code is licensed under the ISC license.
|
13843
12864
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13845,7 +12866,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13845
12866
|
|
13846
12867
|
lucide-react/dist/esm/lucide-react.js:
|
13847
12868
|
(**
|
13848
|
-
* @license lucide-react v0.
|
12869
|
+
* @license lucide-react v0.435.0 - ISC
|
13849
12870
|
*
|
13850
12871
|
* This source code is licensed under the ISC license.
|
13851
12872
|
* See the LICENSE file in the root directory of this source tree.
|