@sikka/hawa 0.48.0-next → 0.49.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +3 -28
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +3 -28
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.js +53 -98
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +53 -98
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +263 -409
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +263 -409
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appMenubar/index.js +15 -20
- package/dist/appMenubar/index.js.map +1 -1
- package/dist/appMenubar/index.mjs +15 -20
- package/dist/appMenubar/index.mjs.map +1 -1
- package/dist/appTabs/index.js +28 -37
- package/dist/appTabs/index.js.map +1 -1
- package/dist/appTabs/index.mjs +28 -37
- package/dist/appTabs/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +125 -173
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +125 -173
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +50 -82
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +50 -82
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/badge/index.d.mts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/index.js +2 -18
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +2 -18
- package/dist/badge/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +539 -792
- package/dist/blocks/auth/index.mjs +433 -604
- package/dist/blocks/feedback/index.js +214 -375
- package/dist/blocks/feedback/index.mjs +12 -25
- package/dist/blocks/index.d.mts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/index.js +940 -1445
- package/dist/blocks/index.mjs +469 -615
- package/dist/blocks/misc/index.js +136 -251
- package/dist/blocks/misc/index.mjs +29 -54
- package/dist/blocks/pricing/index.js +220 -397
- package/dist/blocks/pricing/index.mjs +63 -134
- package/dist/breadcrumb/index.js +1 -5
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +1 -5
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/button/index.js +50 -82
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +50 -82
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +50 -82
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +50 -82
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.js +7 -35
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +7 -35
- package/dist/card/index.mjs.map +1 -1
- package/dist/carousel/index.js +15 -27
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +15 -27
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/checkbox/index.js +2 -13
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +2 -13
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/index.js +2 -16
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +2 -16
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
- package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
- package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
- package/dist/chunk-GHGWQVTM.mjs +150 -0
- package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
- package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
- package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
- package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
- package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
- package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
- package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
- package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
- package/dist/codeBlock/index.js +50 -82
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +50 -82
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +21 -33
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +22 -37
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +141 -223
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +141 -223
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +129 -212
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +129 -212
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +254 -394
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +254 -394
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +64 -105
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +64 -105
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +8 -39
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +8 -39
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/dialog/index.js +70 -122
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +70 -122
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +169 -358
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +169 -358
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/docsSidebar/index.js +9 -16
- package/dist/docsSidebar/index.js.map +1 -1
- package/dist/docsSidebar/index.mjs +9 -16
- package/dist/docsSidebar/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +124 -164
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +124 -164
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +841 -1505
- package/dist/elements/index.mjs +381 -718
- package/dist/fileDropzone/index.js +60 -159
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +60 -159
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/glow/index.js +4 -16
- package/dist/glow/index.js.map +1 -1
- package/dist/glow/index.mjs +4 -16
- package/dist/glow/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -5
- package/dist/hooks/index.d.ts +1 -5
- package/dist/hooks/index.js +11 -24
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
- package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
- package/dist/index.css +1 -6
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1549 -2512
- package/dist/index.mjs +1550 -2516
- package/dist/input/index.js +20 -29
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +20 -29
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +122 -163
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +122 -163
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +19 -26
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +19 -26
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +434 -790
- package/dist/layout/index.mjs +143 -243
- package/dist/loading/index.js +30 -53
- package/dist/loading/index.js.map +1 -1
- package/dist/loading/index.mjs +30 -53
- package/dist/loading/index.mjs.map +1 -1
- package/dist/logos/index.js +66 -191
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +66 -191
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navbar/index.js +1 -4
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +1 -4
- package/dist/navbar/index.mjs.map +1 -1
- package/dist/navigationMenu/index.js +14 -22
- package/dist/navigationMenu/index.js.map +1 -1
- package/dist/navigationMenu/index.mjs +14 -22
- package/dist/navigationMenu/index.mjs.map +1 -1
- package/dist/pagination/index.js +1 -5
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +1 -5
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/passwordInput/index.js +36 -65
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +36 -65
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +20 -29
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +20 -29
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +14 -16
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +14 -16
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/popover/index.js +14 -24
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +14 -24
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.js +19 -26
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +19 -26
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progressCircle/index.js +67 -71
- package/dist/progressCircle/index.js.map +1 -1
- package/dist/progressCircle/index.mjs +67 -71
- package/dist/progressCircle/index.mjs.map +1 -1
- package/dist/radio/index.js +122 -163
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +122 -163
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/scrollIndicator/index.js +1 -4
- package/dist/scrollIndicator/index.js.map +1 -1
- package/dist/scrollIndicator/index.mjs +1 -4
- package/dist/scrollIndicator/index.mjs.map +1 -1
- package/dist/select/index.js +20 -29
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +20 -29
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.js.map +1 -1
- package/dist/separator/index.mjs.map +1 -1
- package/dist/sheet/index.js +42 -53
- package/dist/sheet/index.js.map +1 -1
- package/dist/sheet/index.mjs +42 -53
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.js +66 -133
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +66 -133
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/signature/index.js +19 -26
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +19 -26
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +50 -81
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +50 -81
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs.map +1 -1
- package/dist/sonner/index.js.map +1 -1
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/sortButton/index.js +50 -82
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +50 -82
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +214 -294
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +214 -294
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +7 -35
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +7 -35
- package/dist/stats/index.mjs.map +1 -1
- package/dist/switch/index.js +24 -34
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +24 -34
- package/dist/switch/index.mjs.map +1 -1
- package/dist/table/index.js +27 -29
- package/dist/table/index.js.map +1 -1
- package/dist/table/index.mjs +27 -29
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/index.js +54 -76
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +54 -76
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.js +21 -38
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +21 -38
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.js +2 -10
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +2 -10
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toaster/index.js +3 -16
- package/dist/toaster/index.js.map +1 -1
- package/dist/toaster/index.mjs +3 -16
- package/dist/toaster/index.mjs.map +1 -1
- package/dist/tooltip/index.js +19 -26
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +19 -26
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-JP2N5WKD.mjs +0 -190
@@ -62,9 +62,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
62
62
|
|
63
63
|
// elements/helperText/HelperText.tsx
|
64
64
|
var import_react3 = __toESM(require("react"));
|
65
|
-
var HelperText = ({
|
66
|
-
helperText
|
67
|
-
}) => /* @__PURE__ */ import_react3.default.createElement(
|
65
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react3.default.createElement(
|
68
66
|
"p",
|
69
67
|
{
|
70
68
|
className: cn(
|
@@ -115,38 +113,31 @@ var Tooltip = ({
|
|
115
113
|
delayDuration = 300,
|
116
114
|
...props
|
117
115
|
}) => {
|
118
|
-
return /* @__PURE__ */ import_react4.default.createElement(
|
119
|
-
TooltipPrimitive.
|
116
|
+
return /* @__PURE__ */ import_react4.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react4.default.createElement(
|
117
|
+
TooltipPrimitive.Root,
|
120
118
|
{
|
121
|
-
|
122
|
-
|
119
|
+
open: !disabled && open,
|
120
|
+
defaultOpen,
|
121
|
+
onOpenChange,
|
122
|
+
...props
|
123
123
|
},
|
124
|
+
/* @__PURE__ */ import_react4.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
124
125
|
/* @__PURE__ */ import_react4.default.createElement(
|
125
|
-
|
126
|
+
TooltipContent,
|
126
127
|
{
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
...
|
128
|
+
size,
|
129
|
+
side,
|
130
|
+
align: "center",
|
131
|
+
...contentProps,
|
132
|
+
style: {
|
133
|
+
...contentProps == null ? void 0 : contentProps.style,
|
134
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
135
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
136
|
+
}
|
131
137
|
},
|
132
|
-
|
133
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
134
|
-
TooltipContent,
|
135
|
-
{
|
136
|
-
size,
|
137
|
-
side,
|
138
|
-
align: "center",
|
139
|
-
...contentProps,
|
140
|
-
style: {
|
141
|
-
...contentProps == null ? void 0 : contentProps.style,
|
142
|
-
maxWidth: "var(--radix-tooltip-content-available-width)",
|
143
|
-
maxHeight: "var(--radix-tooltip-content-available-height)"
|
144
|
-
}
|
145
|
-
},
|
146
|
-
content
|
147
|
-
)
|
138
|
+
content
|
148
139
|
)
|
149
|
-
);
|
140
|
+
));
|
150
141
|
};
|
151
142
|
|
152
143
|
// elements/label/Label.tsx
|
@@ -223,57 +214,42 @@ var Loading = ({
|
|
223
214
|
};
|
224
215
|
switch (design.split("-")[0]) {
|
225
216
|
case "dots":
|
226
|
-
return /* @__PURE__ */ import_react5.default.createElement(
|
217
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ import_react5.default.createElement(
|
227
218
|
"div",
|
228
219
|
{
|
229
220
|
className: cn(
|
230
|
-
"hawa-
|
231
|
-
|
221
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
222
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
223
|
+
animationStyles[design.split("-")[1]],
|
224
|
+
color ? color : "hawa-bg-primary"
|
232
225
|
)
|
233
|
-
}
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
),
|
256
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
257
|
-
"div",
|
258
|
-
{
|
259
|
-
className: cn(
|
260
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
261
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
262
|
-
animationStyles[design.split("-")[1]],
|
263
|
-
color ? color : "hawa-bg-primary"
|
264
|
-
)
|
265
|
-
}
|
266
|
-
)
|
267
|
-
);
|
226
|
+
}
|
227
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
228
|
+
"div",
|
229
|
+
{
|
230
|
+
className: cn(
|
231
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
232
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
233
|
+
animationStyles[design.split("-")[1]],
|
234
|
+
color ? color : "hawa-bg-primary"
|
235
|
+
)
|
236
|
+
}
|
237
|
+
), /* @__PURE__ */ import_react5.default.createElement(
|
238
|
+
"div",
|
239
|
+
{
|
240
|
+
className: cn(
|
241
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
242
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
243
|
+
animationStyles[design.split("-")[1]],
|
244
|
+
color ? color : "hawa-bg-primary"
|
245
|
+
)
|
246
|
+
}
|
247
|
+
));
|
268
248
|
case "square":
|
269
249
|
return /* @__PURE__ */ import_react5.default.createElement(
|
270
250
|
"svg",
|
271
251
|
{
|
272
|
-
className: cn(
|
273
|
-
"squircle-container",
|
274
|
-
sizeStyles[size],
|
275
|
-
classNames == null ? void 0 : classNames.container
|
276
|
-
),
|
252
|
+
className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container),
|
277
253
|
viewBox: "0 0 35 35",
|
278
254
|
height: "35",
|
279
255
|
width: "35"
|
@@ -314,11 +290,7 @@ var Loading = ({
|
|
314
290
|
height: "37",
|
315
291
|
width: "37",
|
316
292
|
preserveAspectRatio: "xMidYMid meet",
|
317
|
-
className: cn(
|
318
|
-
"squircle-container",
|
319
|
-
sizeStyles[size],
|
320
|
-
classNames == null ? void 0 : classNames.container
|
321
|
-
)
|
293
|
+
className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
|
322
294
|
},
|
323
295
|
/* @__PURE__ */ import_react5.default.createElement(
|
324
296
|
"path",
|
@@ -361,11 +333,7 @@ var Loading = ({
|
|
361
333
|
viewBox: "0 0 40 40",
|
362
334
|
height: "40",
|
363
335
|
width: "40",
|
364
|
-
className: cn(
|
365
|
-
"circle-container",
|
366
|
-
sizeStyles[size],
|
367
|
-
classNames == null ? void 0 : classNames.container
|
368
|
-
)
|
336
|
+
className: cn("circle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
|
369
337
|
},
|
370
338
|
/* @__PURE__ */ import_react5.default.createElement(
|
371
339
|
"circle",
|
@@ -507,13 +475,7 @@ Button.displayName = "Button";
|
|
507
475
|
// elements/card/Card.tsx
|
508
476
|
var React8 = __toESM(require("react"));
|
509
477
|
var Card = React8.forwardRef(
|
510
|
-
({
|
511
|
-
className,
|
512
|
-
variant = "default",
|
513
|
-
clickable = false,
|
514
|
-
asContainer = false,
|
515
|
-
...props
|
516
|
-
}, ref) => {
|
478
|
+
({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
|
517
479
|
let variantStyles = {
|
518
480
|
default: cn(
|
519
481
|
"hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -525,14 +487,7 @@ var Card = React8.forwardRef(
|
|
525
487
|
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"
|
526
488
|
)
|
527
489
|
};
|
528
|
-
return /* @__PURE__ */ React8.createElement(
|
529
|
-
"div",
|
530
|
-
{
|
531
|
-
ref,
|
532
|
-
className: cn(!asContainer && variantStyles[variant], className),
|
533
|
-
...props
|
534
|
-
}
|
535
|
-
);
|
490
|
+
return /* @__PURE__ */ React8.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
|
536
491
|
}
|
537
492
|
);
|
538
493
|
var CardHeader = React8.forwardRef(
|
@@ -540,30 +495,15 @@ var CardHeader = React8.forwardRef(
|
|
540
495
|
"div",
|
541
496
|
{
|
542
497
|
ref,
|
543
|
-
className: cn(
|
544
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
545
|
-
className
|
546
|
-
),
|
498
|
+
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
|
547
499
|
...props
|
548
500
|
}
|
549
501
|
), props.actions && /* @__PURE__ */ React8.createElement("div", { className: "hawa-p-6" }, props.actions))
|
550
502
|
);
|
551
|
-
var CardTitle = React8.forwardRef(
|
552
|
-
"h3",
|
553
|
-
|
554
|
-
|
555
|
-
className: cn("hawa-text-2xl hawa-font-semibold", className),
|
556
|
-
...props
|
557
|
-
}
|
558
|
-
));
|
559
|
-
var CardDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
560
|
-
"p",
|
561
|
-
{
|
562
|
-
ref,
|
563
|
-
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
564
|
-
...props
|
565
|
-
}
|
566
|
-
));
|
503
|
+
var CardTitle = React8.forwardRef(
|
504
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
|
505
|
+
);
|
506
|
+
var CardDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React8.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
|
567
507
|
var CardContent = React8.forwardRef(
|
568
508
|
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React8.createElement(
|
569
509
|
"div",
|
@@ -659,16 +599,7 @@ function Skeleton({
|
|
659
599
|
// elements/chip/Chip.tsx
|
660
600
|
var import_react7 = __toESM(require("react"));
|
661
601
|
var Chip = import_react7.default.forwardRef(
|
662
|
-
({
|
663
|
-
label,
|
664
|
-
size = "normal",
|
665
|
-
icon,
|
666
|
-
color,
|
667
|
-
radius = "inherit",
|
668
|
-
dot,
|
669
|
-
dotStatus = "none",
|
670
|
-
...rest
|
671
|
-
}, ref) => {
|
602
|
+
({ label, size = "normal", icon, color, radius = "inherit", dot, dotStatus = "none", ...rest }, ref) => {
|
672
603
|
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 ";
|
673
604
|
let radiusStyles = {
|
674
605
|
inherit: " hawa-rounded",
|
@@ -715,12 +646,7 @@ var Chip = import_react7.default.forwardRef(
|
|
715
646
|
rest.className
|
716
647
|
)
|
717
648
|
},
|
718
|
-
dot && /* @__PURE__ */ import_react7.default.createElement(
|
719
|
-
"span",
|
720
|
-
{
|
721
|
-
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
722
|
-
}
|
723
|
-
),
|
649
|
+
dot && /* @__PURE__ */ import_react7.default.createElement("span", { className: cn(dotStyles[size], dotStatusStyles[dotStatus]) }),
|
724
650
|
icon && icon,
|
725
651
|
label
|
726
652
|
);
|
@@ -755,13 +681,7 @@ var PricingCard = ({
|
|
755
681
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background",
|
756
682
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background"
|
757
683
|
};
|
758
|
-
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react8.default.createElement(
|
759
|
-
Skeleton,
|
760
|
-
{
|
761
|
-
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
762
|
-
fade: "bottom"
|
763
|
-
}
|
764
|
-
) : /* @__PURE__ */ import_react8.default.createElement(
|
684
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: cn(cardSizes[size], "hawa-h-[200px]"), fade: "bottom" }) : /* @__PURE__ */ import_react8.default.createElement(
|
765
685
|
Card,
|
766
686
|
{
|
767
687
|
dir: direction,
|
@@ -816,48 +736,26 @@ var PricingCard = ({
|
|
816
736
|
clipRule: "evenodd"
|
817
737
|
}
|
818
738
|
)
|
819
|
-
) : /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react8.default.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__ */ import_react8.default.createElement(
|
820
|
-
|
821
|
-
|
822
|
-
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
823
|
-
color: "oceanic",
|
824
|
-
size: "small"
|
825
|
-
}
|
826
|
-
))),
|
827
|
-
feature.hint && /* @__PURE__ */ import_react8.default.createElement(
|
828
|
-
Tooltip,
|
739
|
+
) : /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react8.default.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__ */ import_react8.default.createElement(Chip, { label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "", color: "oceanic", size: "small" }))),
|
740
|
+
feature.hint && /* @__PURE__ */ import_react8.default.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ import_react8.default.createElement(
|
741
|
+
"svg",
|
829
742
|
{
|
830
|
-
|
831
|
-
|
743
|
+
xmlns: "http://www.w3.org/2000/svg",
|
744
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
745
|
+
viewBox: "0 0 24 24",
|
746
|
+
fill: "none",
|
747
|
+
stroke: "currentColor",
|
748
|
+
strokeWidth: "2",
|
749
|
+
strokeLinecap: "round",
|
750
|
+
strokeLinejoin: "round"
|
832
751
|
},
|
833
|
-
/* @__PURE__ */ import_react8.default.createElement(
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
838
|
-
viewBox: "0 0 24 24",
|
839
|
-
fill: "none",
|
840
|
-
stroke: "currentColor",
|
841
|
-
strokeWidth: "2",
|
842
|
-
strokeLinecap: "round",
|
843
|
-
strokeLinejoin: "round"
|
844
|
-
},
|
845
|
-
/* @__PURE__ */ import_react8.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
846
|
-
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
847
|
-
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 17h.01" })
|
848
|
-
)
|
849
|
-
)
|
752
|
+
/* @__PURE__ */ import_react8.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
753
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
754
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 17h.01" })
|
755
|
+
))
|
850
756
|
);
|
851
757
|
})),
|
852
|
-
/* @__PURE__ */ import_react8.default.createElement(
|
853
|
-
Button,
|
854
|
-
{
|
855
|
-
onClick: props.onPlanClicked,
|
856
|
-
disabled: currentPlan,
|
857
|
-
className: "hawa-w-full"
|
858
|
-
},
|
859
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
860
|
-
)
|
758
|
+
/* @__PURE__ */ import_react8.default.createElement(Button, { onClick: props.onPlanClicked, disabled: currentPlan, className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.buttonText)
|
861
759
|
))
|
862
760
|
));
|
863
761
|
};
|
@@ -1029,17 +927,11 @@ var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) =>
|
|
1029
927
|
}
|
1030
928
|
));
|
1031
929
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
1032
|
-
var DropdownMenuShortcut = ({
|
1033
|
-
className,
|
1034
|
-
...props
|
1035
|
-
}) => {
|
930
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
1036
931
|
return /* @__PURE__ */ React13.createElement(
|
1037
932
|
"span",
|
1038
933
|
{
|
1039
|
-
className: cn(
|
1040
|
-
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
1041
|
-
className
|
1042
|
-
),
|
934
|
+
className: cn("hawa-text-xs hawa-tracking-widest hawa-opacity-60", className),
|
1043
935
|
...props
|
1044
936
|
}
|
1045
937
|
);
|
@@ -1059,21 +951,19 @@ var import_react_tabs = require("@radix-ui/react-tabs");
|
|
1059
951
|
// elements/popover/Popover.tsx
|
1060
952
|
var React17 = __toESM(require("react"));
|
1061
953
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
1062
|
-
var PopoverContent = React17.forwardRef(
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
))
|
1076
|
-
);
|
954
|
+
var PopoverContent = React17.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React17.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React17.createElement(
|
955
|
+
PopoverPrimitive.Content,
|
956
|
+
{
|
957
|
+
ref,
|
958
|
+
align,
|
959
|
+
sideOffset,
|
960
|
+
className: cn(
|
961
|
+
"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",
|
962
|
+
className
|
963
|
+
),
|
964
|
+
...props
|
965
|
+
}
|
966
|
+
)));
|
1077
967
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
1078
968
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
1079
969
|
var PopoverRoot = PopoverPrimitive.Root;
|
@@ -1112,12 +1002,8 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1112
1002
|
default: "hawa-max-w-fit",
|
1113
1003
|
full: "hawa-w-full"
|
1114
1004
|
};
|
1115
|
-
const [parentDirection, setParentDirection] = import_react13.default.useState(
|
1116
|
-
|
1117
|
-
);
|
1118
|
-
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(
|
1119
|
-
props.defaultValue || props.value
|
1120
|
-
);
|
1005
|
+
const [parentDirection, setParentDirection] = import_react13.default.useState(null);
|
1006
|
+
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(props.defaultValue || props.value);
|
1121
1007
|
const [openTooltip, setOpenTooltip] = (0, import_react13.useState)(null);
|
1122
1008
|
const parentRef = (0, import_react13.useRef)(null);
|
1123
1009
|
(0, import_react13.useEffect)(() => {
|
@@ -1146,89 +1032,78 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1146
1032
|
];
|
1147
1033
|
switch (design) {
|
1148
1034
|
case "tabs":
|
1149
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
1150
|
-
|
1035
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn("hawa-gap-2 hawa-flex hawa-flex-col", containerClassNames == null ? void 0 : containerClassNames.tabs) }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react13.default.createElement(
|
1036
|
+
import_react_tabs.TabsList,
|
1151
1037
|
{
|
1038
|
+
role: "tablist",
|
1039
|
+
ref: parentRef,
|
1152
1040
|
className: cn(
|
1153
|
-
"hawa-
|
1154
|
-
|
1041
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
1042
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
1043
|
+
orientationStyle[orientation],
|
1044
|
+
widthStyle[width],
|
1045
|
+
tabsContainerClassName,
|
1046
|
+
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
1155
1047
|
)
|
1156
1048
|
},
|
1157
|
-
props.
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
widthStyle[width],
|
1168
|
-
tabsContainerClassName,
|
1169
|
-
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
1170
|
-
)
|
1171
|
-
},
|
1172
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
1173
|
-
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
1174
|
-
PopoverRoot,
|
1049
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
1050
|
+
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
1051
|
+
PopoverRoot,
|
1052
|
+
{
|
1053
|
+
key: o,
|
1054
|
+
open: o === openTooltip,
|
1055
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
1056
|
+
},
|
1057
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1058
|
+
PopoverTrigger,
|
1175
1059
|
{
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1060
|
+
onMouseEnter: () => setOpenTooltip(o),
|
1061
|
+
onMouseLeave: () => setOpenTooltip(null),
|
1062
|
+
asChild: true
|
1179
1063
|
},
|
1180
1064
|
/* @__PURE__ */ import_react13.default.createElement(
|
1181
|
-
|
1065
|
+
import_react_tabs.TabsTrigger,
|
1182
1066
|
{
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1191
|
-
value: opt.value,
|
1192
|
-
role: "tab",
|
1193
|
-
tabIndex: 0,
|
1194
|
-
onClick: () => {
|
1195
|
-
if (props.disabled || opt.disabled) return;
|
1196
|
-
handleChange(opt);
|
1197
|
-
},
|
1198
|
-
className: cn(
|
1199
|
-
...radio_option_tabs_styling,
|
1200
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
1201
|
-
)
|
1067
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1068
|
+
value: opt.value,
|
1069
|
+
role: "tab",
|
1070
|
+
tabIndex: 0,
|
1071
|
+
onClick: () => {
|
1072
|
+
if (props.disabled || opt.disabled) return;
|
1073
|
+
handleChange(opt);
|
1202
1074
|
},
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
1208
|
-
) : /* @__PURE__ */ import_react13.default.createElement(
|
1209
|
-
import_react_tabs.TabsTrigger,
|
1210
|
-
{
|
1211
|
-
key: o,
|
1212
|
-
role: "tab",
|
1213
|
-
tabIndex: 0,
|
1214
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1215
|
-
onClick: () => {
|
1216
|
-
if (props.disabled || opt.disabled) return;
|
1217
|
-
handleChange(opt);
|
1075
|
+
className: cn(
|
1076
|
+
...radio_option_tabs_styling,
|
1077
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
1078
|
+
)
|
1218
1079
|
},
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1080
|
+
opt.icon && opt.icon,
|
1081
|
+
opt.label
|
1082
|
+
)
|
1083
|
+
),
|
1084
|
+
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
1085
|
+
) : /* @__PURE__ */ import_react13.default.createElement(
|
1086
|
+
import_react_tabs.TabsTrigger,
|
1087
|
+
{
|
1088
|
+
key: o,
|
1089
|
+
role: "tab",
|
1090
|
+
tabIndex: 0,
|
1091
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1092
|
+
onClick: () => {
|
1093
|
+
if (props.disabled || opt.disabled) return;
|
1094
|
+
handleChange(opt);
|
1224
1095
|
},
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1096
|
+
className: cn(
|
1097
|
+
...radio_option_tabs_styling,
|
1098
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
1099
|
+
),
|
1100
|
+
value: opt.value
|
1101
|
+
},
|
1102
|
+
opt.icon && opt.icon,
|
1103
|
+
opt.label
|
1104
|
+
);
|
1105
|
+
})
|
1106
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
1232
1107
|
case "bordered":
|
1233
1108
|
return /* @__PURE__ */ import_react13.default.createElement(
|
1234
1109
|
"div",
|
@@ -1276,11 +1151,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1276
1151
|
return /* @__PURE__ */ import_react13.default.createElement(
|
1277
1152
|
"ul",
|
1278
1153
|
{
|
1279
|
-
className: cn(
|
1280
|
-
orientationStyle[orientation],
|
1281
|
-
"hawa-gap-4",
|
1282
|
-
containerClassNames == null ? void 0 : containerClassNames.cards
|
1283
|
-
)
|
1154
|
+
className: cn(orientationStyle[orientation], "hawa-gap-4", containerClassNames == null ? void 0 : containerClassNames.cards)
|
1284
1155
|
},
|
1285
1156
|
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
1286
1157
|
"input",
|
@@ -1306,49 +1177,38 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1306
1177
|
)))
|
1307
1178
|
);
|
1308
1179
|
default:
|
1309
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
1180
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn("hawa-flex hawa-flex-col hawa-gap-2", containerClassNames == null ? void 0 : containerClassNames.default) }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
1310
1181
|
"div",
|
1311
1182
|
{
|
1312
1183
|
className: cn(
|
1313
|
-
"hawa-flex hawa-
|
1314
|
-
|
1315
|
-
)
|
1184
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
1185
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
1186
|
+
),
|
1187
|
+
key: i + 1
|
1316
1188
|
},
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1189
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1190
|
+
"input",
|
1191
|
+
{
|
1192
|
+
disabled: opt.disabled,
|
1193
|
+
id: opt.value.toString(),
|
1194
|
+
type: "radio",
|
1195
|
+
value: opt.value,
|
1196
|
+
name,
|
1197
|
+
onChange: () => handleChange(opt)
|
1198
|
+
}
|
1199
|
+
),
|
1200
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1201
|
+
"label",
|
1320
1202
|
{
|
1203
|
+
htmlFor: opt.value.toString(),
|
1321
1204
|
className: cn(
|
1322
|
-
"
|
1323
|
-
|
1324
|
-
)
|
1325
|
-
key: i + 1
|
1205
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
1206
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
1207
|
+
)
|
1326
1208
|
},
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
disabled: opt.disabled,
|
1331
|
-
id: opt.value.toString(),
|
1332
|
-
type: "radio",
|
1333
|
-
value: opt.value,
|
1334
|
-
name,
|
1335
|
-
onChange: () => handleChange(opt)
|
1336
|
-
}
|
1337
|
-
),
|
1338
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
1339
|
-
"label",
|
1340
|
-
{
|
1341
|
-
htmlFor: opt.value.toString(),
|
1342
|
-
className: cn(
|
1343
|
-
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
1344
|
-
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
1345
|
-
)
|
1346
|
-
},
|
1347
|
-
opt.label
|
1348
|
-
)
|
1349
|
-
))),
|
1350
|
-
/* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
1351
|
-
);
|
1209
|
+
opt.label
|
1210
|
+
)
|
1211
|
+
))), /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
1352
1212
|
}
|
1353
1213
|
}
|
1354
1214
|
);
|
@@ -1606,11 +1466,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
1606
1466
|
// blocks/pricing/ComparingPlans.tsx
|
1607
1467
|
var ComparingPlans = (props) => {
|
1608
1468
|
const uniqueFeatures = Array.from(
|
1609
|
-
new Set(
|
1610
|
-
props.plans.flatMap(
|
1611
|
-
(plan) => plan.features.map((feature) => feature.text)
|
1612
|
-
)
|
1613
|
-
)
|
1469
|
+
new Set(props.plans.flatMap((plan) => plan.features.map((feature) => feature.text)))
|
1614
1470
|
);
|
1615
1471
|
return /* @__PURE__ */ import_react18.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react18.default.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__ */ import_react18.default.createElement(
|
1616
1472
|
Radio,
|
@@ -1680,9 +1536,7 @@ var ComparingPlans = (props) => {
|
|
1680
1536
|
)
|
1681
1537
|
},
|
1682
1538
|
/* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
1683
|
-
(plan) => plan.features.some(
|
1684
|
-
(feature) => feature.text === featureText && feature.hint
|
1685
|
-
)
|
1539
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.hint)
|
1686
1540
|
) && /* @__PURE__ */ import_react18.default.createElement(
|
1687
1541
|
Tooltip,
|
1688
1542
|
{
|
@@ -1690,13 +1544,9 @@ var ComparingPlans = (props) => {
|
|
1690
1544
|
content: (_b = (_a = props.plans.find(
|
1691
1545
|
(plan) => {
|
1692
1546
|
var _a2;
|
1693
|
-
return (_a2 = plan.features.find(
|
1694
|
-
(feature) => feature.text === featureText
|
1695
|
-
)) == null ? void 0 : _a2.hint;
|
1547
|
+
return (_a2 = plan.features.find((feature) => feature.text === featureText)) == null ? void 0 : _a2.hint;
|
1696
1548
|
}
|
1697
|
-
)) == null ? void 0 : _a.features.find(
|
1698
|
-
(feature) => feature.text === featureText
|
1699
|
-
)) == null ? void 0 : _b.hint
|
1549
|
+
)) == null ? void 0 : _a.features.find((feature) => feature.text === featureText)) == null ? void 0 : _b.hint
|
1700
1550
|
},
|
1701
1551
|
/* @__PURE__ */ import_react18.default.createElement(
|
1702
1552
|
"svg",
|
@@ -1711,9 +1561,7 @@ var ComparingPlans = (props) => {
|
|
1711
1561
|
/* @__PURE__ */ import_react18.default.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" })
|
1712
1562
|
)
|
1713
1563
|
), props.plans.some(
|
1714
|
-
(plan) => plan.features.some(
|
1715
|
-
(feature) => feature.text === featureText && feature.soon
|
1716
|
-
)
|
1564
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.soon)
|
1717
1565
|
) && /* @__PURE__ */ import_react18.default.createElement(
|
1718
1566
|
Chip,
|
1719
1567
|
{
|
@@ -1725,9 +1573,7 @@ var ComparingPlans = (props) => {
|
|
1725
1573
|
}
|
1726
1574
|
)),
|
1727
1575
|
props.plans.map((plan, planIndex) => {
|
1728
|
-
const feature = plan.features.find(
|
1729
|
-
(f) => f.text === featureText
|
1730
|
-
);
|
1576
|
+
const feature = plan.features.find((f) => f.text === featureText);
|
1731
1577
|
return /* @__PURE__ */ import_react18.default.createElement(
|
1732
1578
|
"div",
|
1733
1579
|
{
|
@@ -1741,32 +1587,25 @@ var ComparingPlans = (props) => {
|
|
1741
1587
|
})
|
1742
1588
|
), props.showButtons && /* @__PURE__ */ import_react18.default.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__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
1743
1589
|
var _a;
|
1744
|
-
return /* @__PURE__ */ import_react18.default.createElement(
|
1745
|
-
|
1590
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { key: i, className: "hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ import_react18.default.createElement(
|
1591
|
+
Button,
|
1746
1592
|
{
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
// plan: plan.id,
|
1759
|
-
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
1760
|
-
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
1761
|
-
...plan
|
1762
|
-
};
|
1763
|
-
props.onPlanClicked(clickedData);
|
1764
|
-
}
|
1593
|
+
className: "hawa-w-full hawa-max-w-xs",
|
1594
|
+
onClick: () => {
|
1595
|
+
var _a2, _b;
|
1596
|
+
if (props.onPlanClicked) {
|
1597
|
+
let clickedData = {
|
1598
|
+
// plan: plan.id,
|
1599
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
1600
|
+
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
1601
|
+
...plan
|
1602
|
+
};
|
1603
|
+
props.onPlanClicked(clickedData);
|
1765
1604
|
}
|
1766
|
-
}
|
1767
|
-
|
1768
|
-
)
|
1769
|
-
);
|
1605
|
+
}
|
1606
|
+
},
|
1607
|
+
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
1608
|
+
));
|
1770
1609
|
})));
|
1771
1610
|
};
|
1772
1611
|
|
@@ -1795,41 +1634,25 @@ var HorizontalPricing = (props) => {
|
|
1795
1634
|
options: props.billingCycles,
|
1796
1635
|
defaultValue: props.currentCycle
|
1797
1636
|
}
|
1798
|
-
)), data.map((d, i) => /* @__PURE__ */ import_react19.default.createElement(
|
1799
|
-
"
|
1637
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react19.default.createElement("label", { key: i, htmlFor: d.title, className: "", onClick: () => setSelectedCard(d.title) }, /* @__PURE__ */ import_react19.default.createElement(
|
1638
|
+
"input",
|
1639
|
+
{
|
1640
|
+
type: "radio",
|
1641
|
+
name: "radio",
|
1642
|
+
id: d.title,
|
1643
|
+
className: "hawa-peer hawa-appearance-none"
|
1644
|
+
}
|
1645
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
1646
|
+
"div",
|
1800
1647
|
{
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1648
|
+
className: cn(
|
1649
|
+
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
1650
|
+
"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"
|
1651
|
+
)
|
1805
1652
|
},
|
1806
|
-
/* @__PURE__ */ import_react19.default.createElement(
|
1807
|
-
|
1808
|
-
|
1809
|
-
type: "radio",
|
1810
|
-
name: "radio",
|
1811
|
-
id: d.title,
|
1812
|
-
className: "hawa-peer hawa-appearance-none"
|
1813
|
-
}
|
1814
|
-
),
|
1815
|
-
/* @__PURE__ */ import_react19.default.createElement(
|
1816
|
-
"div",
|
1817
|
-
{
|
1818
|
-
className: cn(
|
1819
|
-
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
1820
|
-
"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"
|
1821
|
-
)
|
1822
|
-
},
|
1823
|
-
/* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react19.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react19.default.createElement(
|
1824
|
-
CardText,
|
1825
|
-
{
|
1826
|
-
title: "Enterprise",
|
1827
|
-
subtitle: "For startups and new businesses"
|
1828
|
-
}
|
1829
|
-
)),
|
1830
|
-
/* @__PURE__ */ import_react19.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
1831
|
-
)
|
1832
|
-
))));
|
1653
|
+
/* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react19.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react19.default.createElement(CardText, { title: "Enterprise", subtitle: "For startups and new businesses" })),
|
1654
|
+
/* @__PURE__ */ import_react19.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
1655
|
+
)))));
|
1833
1656
|
};
|
1834
1657
|
var CheckIcons = () => /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(
|
1835
1658
|
"svg",
|