@sikka/hawa 0.39.0-next → 0.40.1-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/{DropdownMenu-B3cTLPDi.d.mts → DropdownMenu-FVVDS2rX.d.mts} +6 -1
- package/dist/{DropdownMenu-BO1TNMm5.d.ts → DropdownMenu-SFJtRGAw.d.ts} +6 -1
- package/dist/{Radio-lgoClQrv.d.ts → Radio-DlPwVCG4.d.ts} +6 -0
- package/dist/{Radio-uQ7DtzcI.d.mts → Radio-Dyvlywnk.d.mts} +6 -0
- package/dist/alert/index.js +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +2 -2
- 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 +14 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +14 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +2 -2
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +2 -2
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +15 -15
- package/dist/blocks/auth/index.mjs +17 -17
- package/dist/blocks/feedback/index.js +162 -119
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +455 -463
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +238 -289
- package/dist/blocks/misc/index.mjs +147 -200
- package/dist/blocks/pricing/index.js +162 -119
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +2 -2
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +2 -2
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-C2IX3SUD.mjs → chunk-27G5FKOP.mjs} +1 -1
- package/dist/{chunk-IC5WYNKN.mjs → chunk-AJTYKC5R.mjs} +1 -1
- package/dist/{chunk-UMOBOCED.mjs → chunk-CTNKKP2O.mjs} +2 -2
- package/dist/chunk-CTZRVSTI.mjs +346 -0
- package/dist/{chunk-XFSBC5VI.mjs → chunk-DYPGZ2IP.mjs} +1 -1
- package/dist/{chunk-UJ5SXC3M.mjs → chunk-GN7EIDTE.mjs} +1 -1
- package/dist/{chunk-VMVZM3QQ.mjs → chunk-GU2DOJ7Q.mjs} +31 -8
- package/dist/{chunk-W3CF7BSC.mjs → chunk-QSEQS7DS.mjs} +251 -261
- package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
- package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
- package/dist/{chunk-ZBUBNKF6.mjs → chunk-XCW5YNMS.mjs} +34 -1
- package/dist/codeBlock/index.js +2 -2
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -2
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/commonTypes-189mW5eB.d.mts +8 -0
- package/dist/commonTypes-189mW5eB.d.ts +8 -0
- package/dist/commonTypes-DUY2LJm1.d.mts +3 -0
- package/dist/commonTypes-DUY2LJm1.d.ts +3 -0
- package/dist/commonTypes-D_7LV7Ri.d.mts +5 -0
- package/dist/commonTypes-D_7LV7Ri.d.ts +5 -0
- package/dist/dataTable/index.js +2 -2
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +2 -2
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +1 -1
- package/dist/datePicker/index.js +3 -3
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -3
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +2 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +2 -2
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +6 -1
- package/dist/dropdownMenu/index.d.ts +6 -1
- package/dist/dropdownMenu/index.js +29 -6
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +29 -6
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +7 -5
- package/dist/elements/index.d.ts +7 -5
- package/dist/elements/index.js +559 -544
- package/dist/elements/index.mjs +5 -5
- package/dist/fileDropzone/index.d.mts +2 -2
- package/dist/fileDropzone/index.d.ts +2 -2
- package/dist/fileDropzone/index.js +2 -2
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +2 -2
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/fileUploader/index.d.mts +2 -2
- package/dist/fileUploader/index.d.ts +2 -2
- package/dist/glow/index.d.mts +3 -3
- package/dist/glow/index.d.ts +3 -3
- package/dist/hooks/index.d.mts +8 -1
- package/dist/hooks/index.d.ts +8 -1
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/index.mjs +5 -1
- package/dist/index.css +0 -91
- package/dist/index.d.mts +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +1033 -972
- package/dist/index.mjs +984 -925
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/interfaceSettings/index.js +160 -117
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +160 -117
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/layout/index.d.mts +3 -1
- package/dist/layout/index.d.ts +3 -1
- package/dist/layout/index.js +14 -3
- package/dist/layout/index.mjs +14 -3
- package/dist/navigationMenu/index.d.mts +2 -1
- package/dist/navigationMenu/index.d.ts +2 -1
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/phoneInput/index.d.mts +1 -1
- package/dist/phoneInput/index.d.ts +1 -1
- package/dist/pinInput/index.js +13 -13
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +13 -13
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +15 -1
- package/dist/radio/index.d.ts +15 -1
- package/dist/radio/index.js +160 -117
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +160 -117
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sonner/index.d.mts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/sortButton/index.js +2 -2
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +2 -2
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -9
- package/dist/splitButton/index.d.ts +3 -9
- package/dist/splitButton/index.js +2 -2
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +2 -2
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +4 -2
- package/dist/tabs/index.d.ts +4 -2
- package/dist/tabs/index.js +123 -174
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +118 -169
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +4 -22
- package/dist/toaster/index.d.ts +4 -22
- package/dist/tooltip/index.d.mts +4 -3
- package/dist/tooltip/index.d.ts +4 -3
- package/package.json +3 -5
- package/dist/Label-UbMDLtJF.d.mts +0 -14
- package/dist/Label-UbMDLtJF.d.ts +0 -14
- package/dist/chunk-WDCKXU54.mjs +0 -303
- package/dist/commonTypes-CgDwjGvU.d.mts +0 -5
- package/dist/commonTypes-CgDwjGvU.d.ts +0 -5
- package/dist/commonTypes-DZdITB5m.d.mts +0 -4
- package/dist/commonTypes-DZdITB5m.d.ts +0 -4
- package/dist/floatBox/index.d.mts +0 -15
- package/dist/floatBox/index.d.ts +0 -15
- package/dist/floatBox/index.js +0 -105
- package/dist/floatBox/index.js.map +0 -1
- package/dist/floatBox/index.mjs +0 -69
- package/dist/floatBox/index.mjs.map +0 -1
@@ -43,7 +43,7 @@ __export(misc_exports, {
|
|
43
43
|
module.exports = __toCommonJS(misc_exports);
|
44
44
|
|
45
45
|
// blocks/misc/LegalTexts.tsx
|
46
|
-
var
|
46
|
+
var import_react21 = __toESM(require("react"));
|
47
47
|
|
48
48
|
// elements/scrollArea/ScrollArea.tsx
|
49
49
|
var React = __toESM(require("react"));
|
@@ -178,7 +178,7 @@ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...prop
|
|
178
178
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
179
179
|
|
180
180
|
// elements/tabs/Tabs.tsx
|
181
|
-
var
|
181
|
+
var React11 = __toESM(require("react"));
|
182
182
|
|
183
183
|
// hooks/useIsomorphicEffect.ts
|
184
184
|
var import_react = require("react");
|
@@ -229,37 +229,6 @@ var import_react14 = require("react");
|
|
229
229
|
|
230
230
|
// hooks/useMeasureDirty.ts
|
231
231
|
var import_react15 = require("react");
|
232
|
-
var useMeasureDirty = (ref) => {
|
233
|
-
const frame = (0, import_react15.useRef)(0);
|
234
|
-
const [rect, set] = (0, import_react15.useState)({
|
235
|
-
width: 0,
|
236
|
-
height: 0,
|
237
|
-
top: 0,
|
238
|
-
left: 0,
|
239
|
-
bottom: 0,
|
240
|
-
right: 0
|
241
|
-
});
|
242
|
-
const [observer] = (0, import_react15.useState)(
|
243
|
-
() => new ResizeObserver((entries) => {
|
244
|
-
const entry = entries[0];
|
245
|
-
if (entry) {
|
246
|
-
cancelAnimationFrame(frame.current);
|
247
|
-
frame.current = requestAnimationFrame(() => {
|
248
|
-
if (ref.current) {
|
249
|
-
set(entry.contentRect);
|
250
|
-
}
|
251
|
-
});
|
252
|
-
}
|
253
|
-
})
|
254
|
-
);
|
255
|
-
(0, import_react15.useEffect)(() => {
|
256
|
-
observer.disconnect();
|
257
|
-
if (ref.current) {
|
258
|
-
observer.observe(ref.current);
|
259
|
-
}
|
260
|
-
}, [ref]);
|
261
|
-
return rect;
|
262
|
-
};
|
263
232
|
|
264
233
|
// hooks/useClickOutside.ts
|
265
234
|
var import_react16 = require("react");
|
@@ -267,13 +236,45 @@ var import_react16 = require("react");
|
|
267
236
|
// hooks/useShortcuts.ts
|
268
237
|
var import_react17 = require("react");
|
269
238
|
|
239
|
+
// hooks/useWindowEvent.ts
|
240
|
+
var import_react18 = require("react");
|
241
|
+
function useWindowEvent(type, listener, options) {
|
242
|
+
(0, import_react18.useEffect)(() => {
|
243
|
+
window.addEventListener(type, listener, options);
|
244
|
+
return () => window.removeEventListener(type, listener, options);
|
245
|
+
}, [type, listener]);
|
246
|
+
}
|
247
|
+
|
248
|
+
// hooks/useViewportSize.ts
|
249
|
+
var import_react19 = require("react");
|
250
|
+
var eventListerOptions = {
|
251
|
+
passive: true
|
252
|
+
};
|
253
|
+
function useViewportSize() {
|
254
|
+
const [windowSize, setWindowSize] = (0, import_react19.useState)({
|
255
|
+
width: 0,
|
256
|
+
height: 0
|
257
|
+
});
|
258
|
+
const setSize = (0, import_react19.useCallback)(() => {
|
259
|
+
setWindowSize({
|
260
|
+
width: window.innerWidth || 0,
|
261
|
+
height: window.innerHeight || 0
|
262
|
+
});
|
263
|
+
}, []);
|
264
|
+
useWindowEvent("resize", setSize, eventListerOptions);
|
265
|
+
useWindowEvent("orientationchange", setSize, eventListerOptions);
|
266
|
+
(0, import_react19.useEffect)(setSize, []);
|
267
|
+
return windowSize;
|
268
|
+
}
|
269
|
+
|
270
270
|
// elements/tabs/Tabs.tsx
|
271
|
+
var Popover = __toESM(require("@radix-ui/react-popover"));
|
271
272
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
272
273
|
var import_tailwind_variants = require("tailwind-variants");
|
273
274
|
|
274
275
|
// elements/chip/Chip.tsx
|
275
|
-
var
|
276
|
-
var Chip =
|
276
|
+
var import_react20 = __toESM(require("react"));
|
277
|
+
var Chip = import_react20.default.forwardRef(
|
277
278
|
({
|
278
279
|
label,
|
279
280
|
size = "normal",
|
@@ -317,7 +318,7 @@ var Chip = import_react18.default.forwardRef(
|
|
317
318
|
oceanic: "hawa-text-white dark:hawa-text-black hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
318
319
|
};
|
319
320
|
if (label) {
|
320
|
-
return /* @__PURE__ */
|
321
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
321
322
|
"span",
|
322
323
|
{
|
323
324
|
...rest,
|
@@ -329,7 +330,7 @@ var Chip = import_react18.default.forwardRef(
|
|
329
330
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
330
331
|
)
|
331
332
|
},
|
332
|
-
dot && /* @__PURE__ */
|
333
|
+
dot && /* @__PURE__ */ import_react20.default.createElement(
|
333
334
|
"span",
|
334
335
|
{
|
335
336
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -339,7 +340,7 @@ var Chip = import_react18.default.forwardRef(
|
|
339
340
|
label
|
340
341
|
);
|
341
342
|
} else {
|
342
|
-
return /* @__PURE__ */
|
343
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
343
344
|
"span",
|
344
345
|
{
|
345
346
|
...rest,
|
@@ -354,61 +355,6 @@ var Chip = import_react18.default.forwardRef(
|
|
354
355
|
}
|
355
356
|
);
|
356
357
|
|
357
|
-
// elements/floatBox/FloatBox.tsx
|
358
|
-
var React11 = __toESM(require("react"));
|
359
|
-
var FloatBox = ({
|
360
|
-
className,
|
361
|
-
open,
|
362
|
-
side = "bottom",
|
363
|
-
sideOffset = 40,
|
364
|
-
align = "center",
|
365
|
-
withArrow = false,
|
366
|
-
...props
|
367
|
-
}) => {
|
368
|
-
let stylesMap = {
|
369
|
-
bottom: {
|
370
|
-
start: { top: sideOffset, insetInlineStart: 0 },
|
371
|
-
center: { top: sideOffset },
|
372
|
-
end: { top: sideOffset, insetInlineEnd: 0 }
|
373
|
-
},
|
374
|
-
top: {
|
375
|
-
start: { bottom: sideOffset, insetInlineStart: 0 },
|
376
|
-
center: { bottom: sideOffset },
|
377
|
-
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
378
|
-
},
|
379
|
-
right: {
|
380
|
-
start: { left: sideOffset, top: -5 },
|
381
|
-
center: { left: sideOffset },
|
382
|
-
end: { left: sideOffset, bottom: 0 }
|
383
|
-
},
|
384
|
-
left: {
|
385
|
-
start: { right: sideOffset, top: 0 },
|
386
|
-
center: { right: sideOffset },
|
387
|
-
end: { right: sideOffset, bottom: 0 }
|
388
|
-
}
|
389
|
-
};
|
390
|
-
const arrowDirection = {
|
391
|
-
top: "hawa-arrow-default-bottom",
|
392
|
-
bottom: "hawa-arrow-default-top",
|
393
|
-
right: "hawa-arrow-default-left",
|
394
|
-
left: "hawa-arrow-default-right"
|
395
|
-
};
|
396
|
-
return /* @__PURE__ */ React11.createElement(
|
397
|
-
"div",
|
398
|
-
{
|
399
|
-
className: cn(
|
400
|
-
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-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 hawa-bg-popover",
|
401
|
-
className
|
402
|
-
),
|
403
|
-
style: { ...stylesMap[side][align] },
|
404
|
-
"data-side": side,
|
405
|
-
"data-floatbox-state": open ? "open" : "closed"
|
406
|
-
},
|
407
|
-
withArrow && /* @__PURE__ */ React11.createElement("div", { className: cn(arrowDirection[side]) }),
|
408
|
-
/* @__PURE__ */ React11.createElement("span", null, props.children)
|
409
|
-
);
|
410
|
-
};
|
411
|
-
|
412
358
|
// elements/tabs/Tabs.tsx
|
413
359
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
414
360
|
base: "",
|
@@ -468,39 +414,27 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
468
414
|
],
|
469
415
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
470
416
|
});
|
471
|
-
var TabsContext =
|
472
|
-
var Tabs =
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
)
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
);
|
490
|
-
|
491
|
-
|
492
|
-
const resize = () => {
|
493
|
-
setSize(window.innerWidth);
|
494
|
-
};
|
495
|
-
resize();
|
496
|
-
window.addEventListener("resize", resize);
|
497
|
-
return () => {
|
498
|
-
window.removeEventListener("resize", resize);
|
499
|
-
};
|
500
|
-
}
|
501
|
-
}, []);
|
502
|
-
if (props.scrollable && size < 768 && orientation === "horizontal") {
|
503
|
-
return /* @__PURE__ */ React12.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React12.createElement(
|
417
|
+
var TabsContext = React11.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
418
|
+
var Tabs = React11.forwardRef(
|
419
|
+
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
420
|
+
TabsPrimitive.Root,
|
421
|
+
{
|
422
|
+
ref,
|
423
|
+
className: cn(
|
424
|
+
"hawa-flex hawa-gap-2",
|
425
|
+
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
426
|
+
className
|
427
|
+
),
|
428
|
+
...props
|
429
|
+
},
|
430
|
+
/* @__PURE__ */ React11.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
431
|
+
)
|
432
|
+
);
|
433
|
+
var TabsList = React11.forwardRef(({ className, classNames, ...props }, ref) => {
|
434
|
+
const { orientation, variant, scrollable } = React11.useContext(TabsContext);
|
435
|
+
const { width } = useViewportSize();
|
436
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
437
|
+
return /* @__PURE__ */ React11.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React11.createElement(
|
504
438
|
TabsPrimitive.List,
|
505
439
|
{
|
506
440
|
ref,
|
@@ -513,7 +447,7 @@ var TabsList = React12.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
513
447
|
}
|
514
448
|
));
|
515
449
|
} else {
|
516
|
-
return /* @__PURE__ */
|
450
|
+
return /* @__PURE__ */ React11.createElement(
|
517
451
|
TabsPrimitive.List,
|
518
452
|
{
|
519
453
|
ref,
|
@@ -528,37 +462,52 @@ var TabsList = React12.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
528
462
|
);
|
529
463
|
}
|
530
464
|
});
|
531
|
-
var TabsTrigger =
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
465
|
+
var TabsTrigger = React11.forwardRef(
|
466
|
+
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
467
|
+
const { orientation, variant } = React11.useContext(TabsContext);
|
468
|
+
if (withPopover) {
|
469
|
+
return /* @__PURE__ */ React11.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React11.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React11.createElement(
|
470
|
+
TabsPrimitive.Trigger,
|
471
|
+
{
|
472
|
+
className: cn(
|
473
|
+
tabsTriggerVariant({ variant, orientation }),
|
474
|
+
"hawa-relative",
|
475
|
+
className
|
476
|
+
),
|
477
|
+
...props
|
478
|
+
},
|
479
|
+
props.children,
|
480
|
+
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
481
|
+
)), /* @__PURE__ */ React11.createElement(
|
482
|
+
Popover.Content,
|
483
|
+
{
|
484
|
+
onClick: onPopoverClick,
|
485
|
+
asChild: true,
|
486
|
+
className: cn(
|
487
|
+
"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",
|
488
|
+
"hawa-arrow-default-top hawa-mt-2"
|
489
|
+
)
|
490
|
+
},
|
491
|
+
/* @__PURE__ */ React11.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
492
|
+
));
|
493
|
+
} else {
|
494
|
+
return /* @__PURE__ */ React11.createElement(
|
495
|
+
TabsPrimitive.Trigger,
|
496
|
+
{
|
497
|
+
className: cn(
|
498
|
+
tabsTriggerVariant({ variant, orientation }),
|
499
|
+
"hawa-relative",
|
500
|
+
className
|
501
|
+
),
|
502
|
+
...props
|
503
|
+
},
|
504
|
+
props.children,
|
505
|
+
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
506
|
+
);
|
507
|
+
}
|
508
|
+
}
|
509
|
+
);
|
510
|
+
var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
562
511
|
TabsPrimitive.Content,
|
563
512
|
{
|
564
513
|
ref,
|
@@ -576,7 +525,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
576
525
|
|
577
526
|
// blocks/misc/LegalTexts.tsx
|
578
527
|
var LegalTexts = ({ tabs, ...props }) => {
|
579
|
-
return /* @__PURE__ */
|
528
|
+
return /* @__PURE__ */ import_react21.default.createElement(
|
580
529
|
Tabs,
|
581
530
|
{
|
582
531
|
value: props.activeTab,
|
@@ -584,8 +533,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
584
533
|
defaultValue: props.defaultTab || tabs[0].value,
|
585
534
|
dir: props.direction
|
586
535
|
},
|
587
|
-
/* @__PURE__ */
|
588
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
536
|
+
/* @__PURE__ */ import_react21.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react21.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
537
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react21.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react21.default.createElement(
|
589
538
|
ScrollArea,
|
590
539
|
{
|
591
540
|
className: cn(
|
@@ -599,15 +548,15 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
599
548
|
};
|
600
549
|
|
601
550
|
// blocks/misc/EmptyState.tsx
|
602
|
-
var
|
551
|
+
var import_react25 = __toESM(require("react"));
|
603
552
|
|
604
553
|
// elements/button/Button.tsx
|
605
|
-
var
|
554
|
+
var React17 = __toESM(require("react"));
|
606
555
|
var import_class_variance_authority = require("class-variance-authority");
|
607
556
|
|
608
557
|
// elements/helperText/HelperText.tsx
|
609
|
-
var
|
610
|
-
var HelperText = ({ helperText }) => /* @__PURE__ */
|
558
|
+
var import_react22 = __toESM(require("react"));
|
559
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react22.default.createElement(
|
611
560
|
"p",
|
612
561
|
{
|
613
562
|
className: cn(
|
@@ -619,12 +568,12 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react20.default.crea
|
|
619
568
|
);
|
620
569
|
|
621
570
|
// elements/label/Label.tsx
|
622
|
-
var
|
571
|
+
var React15 = __toESM(require("react"));
|
623
572
|
|
624
573
|
// elements/tooltip/Tooltip.tsx
|
625
|
-
var
|
574
|
+
var import_react23 = __toESM(require("react"));
|
626
575
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
627
|
-
var TooltipContent =
|
576
|
+
var TooltipContent = import_react23.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react23.default.createElement(
|
628
577
|
TooltipPrimitive.Content,
|
629
578
|
{
|
630
579
|
ref,
|
@@ -641,7 +590,7 @@ var TooltipContent = import_react21.default.forwardRef(({ className, sideOffset
|
|
641
590
|
}
|
642
591
|
));
|
643
592
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
644
|
-
var TooltipArrow =
|
593
|
+
var TooltipArrow = import_react23.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
645
594
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
646
595
|
var Tooltip = ({
|
647
596
|
side,
|
@@ -658,13 +607,13 @@ var Tooltip = ({
|
|
658
607
|
delayDuration = 300,
|
659
608
|
...props
|
660
609
|
}) => {
|
661
|
-
return /* @__PURE__ */
|
610
|
+
return /* @__PURE__ */ import_react23.default.createElement(
|
662
611
|
TooltipPrimitive.TooltipProvider,
|
663
612
|
{
|
664
613
|
delayDuration,
|
665
614
|
...providerProps
|
666
615
|
},
|
667
|
-
/* @__PURE__ */
|
616
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
668
617
|
TooltipPrimitive.Root,
|
669
618
|
{
|
670
619
|
open: !disabled && open,
|
@@ -672,8 +621,8 @@ var Tooltip = ({
|
|
672
621
|
onOpenChange,
|
673
622
|
...props
|
674
623
|
},
|
675
|
-
/* @__PURE__ */
|
676
|
-
/* @__PURE__ */
|
624
|
+
/* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
625
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
677
626
|
TooltipContent,
|
678
627
|
{
|
679
628
|
size,
|
@@ -693,7 +642,7 @@ var Tooltip = ({
|
|
693
642
|
};
|
694
643
|
|
695
644
|
// elements/label/Label.tsx
|
696
|
-
var Label =
|
645
|
+
var Label = React15.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React15.createElement(
|
697
646
|
"label",
|
698
647
|
{
|
699
648
|
ref,
|
@@ -704,8 +653,8 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
704
653
|
...props
|
705
654
|
},
|
706
655
|
children,
|
707
|
-
required && /* @__PURE__ */
|
708
|
-
), hint && /* @__PURE__ */
|
656
|
+
required && /* @__PURE__ */ React15.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
657
|
+
), hint && /* @__PURE__ */ React15.createElement(
|
709
658
|
Tooltip,
|
710
659
|
{
|
711
660
|
content: hint,
|
@@ -715,7 +664,7 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
715
664
|
onClick: (event) => event.preventDefault()
|
716
665
|
}
|
717
666
|
},
|
718
|
-
/* @__PURE__ */
|
667
|
+
/* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement(
|
719
668
|
"svg",
|
720
669
|
{
|
721
670
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -727,15 +676,15 @@ var Label = React16.forwardRef(({ className, hint, hintSide, required, children,
|
|
727
676
|
strokeLinecap: "round",
|
728
677
|
strokeLinejoin: "round"
|
729
678
|
},
|
730
|
-
/* @__PURE__ */
|
731
|
-
/* @__PURE__ */
|
732
|
-
/* @__PURE__ */
|
679
|
+
/* @__PURE__ */ React15.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
680
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
681
|
+
/* @__PURE__ */ React15.createElement("path", { d: "M12 17h.01" })
|
733
682
|
))
|
734
683
|
)));
|
735
684
|
Label.displayName = "Label";
|
736
685
|
|
737
686
|
// elements/loading/Loading.tsx
|
738
|
-
var
|
687
|
+
var import_react24 = __toESM(require("react"));
|
739
688
|
var Loading = ({
|
740
689
|
design = "spinner",
|
741
690
|
size = "normal",
|
@@ -766,7 +715,7 @@ var Loading = ({
|
|
766
715
|
};
|
767
716
|
switch (design.split("-")[0]) {
|
768
717
|
case "dots":
|
769
|
-
return /* @__PURE__ */
|
718
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
770
719
|
"div",
|
771
720
|
{
|
772
721
|
className: cn(
|
@@ -774,7 +723,7 @@ var Loading = ({
|
|
774
723
|
classNames == null ? void 0 : classNames.container
|
775
724
|
)
|
776
725
|
},
|
777
|
-
/* @__PURE__ */
|
726
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
778
727
|
"div",
|
779
728
|
{
|
780
729
|
className: cn(
|
@@ -785,7 +734,7 @@ var Loading = ({
|
|
785
734
|
)
|
786
735
|
}
|
787
736
|
),
|
788
|
-
/* @__PURE__ */
|
737
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
789
738
|
"div",
|
790
739
|
{
|
791
740
|
className: cn(
|
@@ -796,7 +745,7 @@ var Loading = ({
|
|
796
745
|
)
|
797
746
|
}
|
798
747
|
),
|
799
|
-
/* @__PURE__ */
|
748
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
800
749
|
"div",
|
801
750
|
{
|
802
751
|
className: cn(
|
@@ -809,7 +758,7 @@ var Loading = ({
|
|
809
758
|
)
|
810
759
|
);
|
811
760
|
case "square":
|
812
|
-
return /* @__PURE__ */
|
761
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
813
762
|
"svg",
|
814
763
|
{
|
815
764
|
className: cn(
|
@@ -821,7 +770,7 @@ var Loading = ({
|
|
821
770
|
height: "35",
|
822
771
|
width: "35"
|
823
772
|
},
|
824
|
-
/* @__PURE__ */
|
773
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
825
774
|
"rect",
|
826
775
|
{
|
827
776
|
className: "squircle-track",
|
@@ -833,7 +782,7 @@ var Loading = ({
|
|
833
782
|
height: "32.5"
|
834
783
|
}
|
835
784
|
),
|
836
|
-
/* @__PURE__ */
|
785
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
837
786
|
"rect",
|
838
787
|
{
|
839
788
|
className: "square-car",
|
@@ -848,7 +797,7 @@ var Loading = ({
|
|
848
797
|
)
|
849
798
|
);
|
850
799
|
case "squircle":
|
851
|
-
return /* @__PURE__ */
|
800
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
852
801
|
"svg",
|
853
802
|
{
|
854
803
|
x: "0px",
|
@@ -863,7 +812,7 @@ var Loading = ({
|
|
863
812
|
classNames == null ? void 0 : classNames.container
|
864
813
|
)
|
865
814
|
},
|
866
|
-
/* @__PURE__ */
|
815
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
867
816
|
"path",
|
868
817
|
{
|
869
818
|
className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
|
@@ -873,7 +822,7 @@ var Loading = ({
|
|
873
822
|
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
874
823
|
}
|
875
824
|
),
|
876
|
-
/* @__PURE__ */
|
825
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
877
826
|
"path",
|
878
827
|
{
|
879
828
|
className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
|
@@ -885,7 +834,7 @@ var Loading = ({
|
|
885
834
|
)
|
886
835
|
);
|
887
836
|
case "progress":
|
888
|
-
return /* @__PURE__ */
|
837
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
889
838
|
"div",
|
890
839
|
{
|
891
840
|
className: cn(
|
@@ -896,9 +845,9 @@ var Loading = ({
|
|
896
845
|
}
|
897
846
|
);
|
898
847
|
case "orbit":
|
899
|
-
return /* @__PURE__ */
|
848
|
+
return /* @__PURE__ */ import_react24.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
|
900
849
|
default:
|
901
|
-
return /* @__PURE__ */
|
850
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
902
851
|
"svg",
|
903
852
|
{
|
904
853
|
viewBox: "0 0 40 40",
|
@@ -910,7 +859,7 @@ var Loading = ({
|
|
910
859
|
classNames == null ? void 0 : classNames.container
|
911
860
|
)
|
912
861
|
},
|
913
|
-
/* @__PURE__ */
|
862
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
914
863
|
"circle",
|
915
864
|
{
|
916
865
|
className: cn(
|
@@ -929,7 +878,7 @@ var Loading = ({
|
|
929
878
|
pathLength: "100"
|
930
879
|
}
|
931
880
|
),
|
932
|
-
/* @__PURE__ */
|
881
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
933
882
|
"circle",
|
934
883
|
{
|
935
884
|
className: cn(
|
@@ -983,7 +932,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
983
932
|
defaultVariants: { variant: "default", size: "default" }
|
984
933
|
}
|
985
934
|
);
|
986
|
-
var Button =
|
935
|
+
var Button = React17.forwardRef(
|
987
936
|
({
|
988
937
|
className,
|
989
938
|
label,
|
@@ -995,13 +944,13 @@ var Button = React18.forwardRef(
|
|
995
944
|
children,
|
996
945
|
labelProps,
|
997
946
|
showHelperText = false,
|
998
|
-
|
947
|
+
asInput = false,
|
999
948
|
...props
|
1000
949
|
}, ref) => {
|
1001
950
|
const Comp = "button";
|
1002
951
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
1003
|
-
if (
|
1004
|
-
return /* @__PURE__ */
|
952
|
+
if (asInput) {
|
953
|
+
return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React17.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React17.createElement(
|
1005
954
|
Comp,
|
1006
955
|
{
|
1007
956
|
className: cn(
|
@@ -1011,7 +960,7 @@ var Button = React18.forwardRef(
|
|
1011
960
|
ref,
|
1012
961
|
...props
|
1013
962
|
},
|
1014
|
-
isLoading ? /* @__PURE__ */
|
963
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
1015
964
|
Loading,
|
1016
965
|
{
|
1017
966
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -1020,9 +969,9 @@ var Button = React18.forwardRef(
|
|
1020
969
|
size: size === "sm" || size === "xs" ? "xs" : "button"
|
1021
970
|
}
|
1022
971
|
) : children
|
1023
|
-
), showHelperText && /* @__PURE__ */
|
972
|
+
), showHelperText && /* @__PURE__ */ React17.createElement(HelperText, { helperText: props.helperText }));
|
1024
973
|
} else {
|
1025
|
-
return /* @__PURE__ */
|
974
|
+
return /* @__PURE__ */ React17.createElement(
|
1026
975
|
Comp,
|
1027
976
|
{
|
1028
977
|
className: cn(
|
@@ -1032,7 +981,7 @@ var Button = React18.forwardRef(
|
|
1032
981
|
ref,
|
1033
982
|
...props
|
1034
983
|
},
|
1035
|
-
isLoading ? /* @__PURE__ */
|
984
|
+
isLoading ? /* @__PURE__ */ React17.createElement(
|
1036
985
|
Loading,
|
1037
986
|
{
|
1038
987
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -1048,8 +997,8 @@ var Button = React18.forwardRef(
|
|
1048
997
|
Button.displayName = "Button";
|
1049
998
|
|
1050
999
|
// elements/card/Card.tsx
|
1051
|
-
var
|
1052
|
-
var Card =
|
1000
|
+
var React18 = __toESM(require("react"));
|
1001
|
+
var Card = React18.forwardRef(
|
1053
1002
|
({
|
1054
1003
|
className,
|
1055
1004
|
variant = "default",
|
@@ -1068,7 +1017,7 @@ var Card = React19.forwardRef(
|
|
1068
1017
|
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"
|
1069
1018
|
)
|
1070
1019
|
};
|
1071
|
-
return /* @__PURE__ */
|
1020
|
+
return /* @__PURE__ */ React18.createElement(
|
1072
1021
|
"div",
|
1073
1022
|
{
|
1074
1023
|
ref,
|
@@ -1078,8 +1027,8 @@ var Card = React19.forwardRef(
|
|
1078
1027
|
);
|
1079
1028
|
}
|
1080
1029
|
);
|
1081
|
-
var CardHeader =
|
1082
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
1030
|
+
var CardHeader = React18.forwardRef(
|
1031
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React18.createElement(
|
1083
1032
|
"div",
|
1084
1033
|
{
|
1085
1034
|
ref,
|
@@ -1089,9 +1038,9 @@ var CardHeader = React19.forwardRef(
|
|
1089
1038
|
),
|
1090
1039
|
...props
|
1091
1040
|
}
|
1092
|
-
), props.actions && /* @__PURE__ */
|
1041
|
+
), props.actions && /* @__PURE__ */ React18.createElement("div", { className: "hawa-p-6" }, props.actions))
|
1093
1042
|
);
|
1094
|
-
var CardTitle =
|
1043
|
+
var CardTitle = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1095
1044
|
"h3",
|
1096
1045
|
{
|
1097
1046
|
ref,
|
@@ -1099,7 +1048,7 @@ var CardTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
1099
1048
|
...props
|
1100
1049
|
}
|
1101
1050
|
));
|
1102
|
-
var CardDescription =
|
1051
|
+
var CardDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1103
1052
|
"p",
|
1104
1053
|
{
|
1105
1054
|
ref,
|
@@ -1107,8 +1056,8 @@ var CardDescription = React19.forwardRef(({ className, ...props }, ref) => /* @_
|
|
1107
1056
|
...props
|
1108
1057
|
}
|
1109
1058
|
));
|
1110
|
-
var CardContent =
|
1111
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
1059
|
+
var CardContent = React18.forwardRef(
|
1060
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1112
1061
|
"div",
|
1113
1062
|
{
|
1114
1063
|
ref,
|
@@ -1121,7 +1070,7 @@ var CardContent = React19.forwardRef(
|
|
1121
1070
|
}
|
1122
1071
|
)
|
1123
1072
|
);
|
1124
|
-
var CardFooter =
|
1073
|
+
var CardFooter = React18.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1125
1074
|
"div",
|
1126
1075
|
{
|
1127
1076
|
ref,
|
@@ -1142,7 +1091,7 @@ Card.displayName = "Card";
|
|
1142
1091
|
|
1143
1092
|
// blocks/misc/EmptyState.tsx
|
1144
1093
|
var EmptyState = ({ texts, onActionClick }) => {
|
1145
|
-
return /* @__PURE__ */
|
1094
|
+
return /* @__PURE__ */ import_react25.default.createElement(Card, null, /* @__PURE__ */ import_react25.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react25.default.createElement(
|
1146
1095
|
"svg",
|
1147
1096
|
{
|
1148
1097
|
stroke: "currentColor",
|
@@ -1152,37 +1101,37 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
1152
1101
|
height: "0.35em",
|
1153
1102
|
width: "0.35em"
|
1154
1103
|
},
|
1155
|
-
/* @__PURE__ */
|
1156
|
-
)), /* @__PURE__ */
|
1104
|
+
/* @__PURE__ */ import_react25.default.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
1105
|
+
)), /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react25.default.createElement(CardFooter, null, /* @__PURE__ */ import_react25.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
1157
1106
|
};
|
1158
1107
|
|
1159
1108
|
// blocks/misc/Testimonial.tsx
|
1160
|
-
var
|
1109
|
+
var import_react26 = __toESM(require("react"));
|
1161
1110
|
var Testimonial = () => {
|
1162
|
-
return /* @__PURE__ */
|
1111
|
+
return /* @__PURE__ */ import_react26.default.createElement(Card, null, /* @__PURE__ */ import_react26.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react26.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react26.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react26.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react26.default.createElement(
|
1163
1112
|
"path",
|
1164
1113
|
{
|
1165
1114
|
d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
|
1166
1115
|
fill: "#FFFFFF"
|
1167
1116
|
}
|
1168
|
-
), /* @__PURE__ */
|
1117
|
+
), /* @__PURE__ */ import_react26.default.createElement(
|
1169
1118
|
"path",
|
1170
1119
|
{
|
1171
1120
|
d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
|
1172
1121
|
fill: "#FFFFFF"
|
1173
1122
|
}
|
1174
|
-
)), /* @__PURE__ */
|
1123
|
+
)), /* @__PURE__ */ import_react26.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react26.default.createElement("div", null, " Chief Information Security Officer")))));
|
1175
1124
|
};
|
1176
1125
|
|
1177
1126
|
// blocks/misc/LeadGenerator.tsx
|
1178
|
-
var
|
1127
|
+
var import_react29 = __toESM(require("react"));
|
1179
1128
|
var import_react_hook_form = require("react-hook-form");
|
1180
1129
|
|
1181
1130
|
// elements/input/Input.tsx
|
1182
|
-
var
|
1131
|
+
var import_react28 = __toESM(require("react"));
|
1183
1132
|
|
1184
1133
|
// elements/skeleton/Skeleton.tsx
|
1185
|
-
var
|
1134
|
+
var import_react27 = __toESM(require("react"));
|
1186
1135
|
function Skeleton({
|
1187
1136
|
className,
|
1188
1137
|
content,
|
@@ -1201,7 +1150,7 @@ function Skeleton({
|
|
1201
1150
|
right: "hawa-mask-fade-right",
|
1202
1151
|
left: "hawa-mask-fade-left "
|
1203
1152
|
};
|
1204
|
-
return /* @__PURE__ */
|
1153
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
1205
1154
|
"div",
|
1206
1155
|
{
|
1207
1156
|
className: cn(
|
@@ -1217,7 +1166,7 @@ function Skeleton({
|
|
1217
1166
|
}
|
1218
1167
|
|
1219
1168
|
// elements/input/Input.tsx
|
1220
|
-
var Input = (0,
|
1169
|
+
var Input = (0, import_react28.forwardRef)(
|
1221
1170
|
({
|
1222
1171
|
margin = "none",
|
1223
1172
|
width = "full",
|
@@ -1261,7 +1210,7 @@ var Input = (0, import_react26.forwardRef)(
|
|
1261
1210
|
props.onChange(newEvent);
|
1262
1211
|
}
|
1263
1212
|
};
|
1264
|
-
return /* @__PURE__ */
|
1213
|
+
return /* @__PURE__ */ import_react28.default.createElement(
|
1265
1214
|
"div",
|
1266
1215
|
{
|
1267
1216
|
className: cn(
|
@@ -1272,8 +1221,8 @@ var Input = (0, import_react26.forwardRef)(
|
|
1272
1221
|
"hawa-w-full hawa-gap-2"
|
1273
1222
|
)
|
1274
1223
|
},
|
1275
|
-
props.label && /* @__PURE__ */
|
1276
|
-
/* @__PURE__ */
|
1224
|
+
props.label && /* @__PURE__ */ import_react28.default.createElement(Label, { ...labelProps }, props.label),
|
1225
|
+
/* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ import_react28.default.createElement(
|
1277
1226
|
"span",
|
1278
1227
|
{
|
1279
1228
|
className: cn(
|
@@ -1282,12 +1231,12 @@ var Input = (0, import_react26.forwardRef)(
|
|
1282
1231
|
)
|
1283
1232
|
},
|
1284
1233
|
props.outsidePrefix
|
1285
|
-
), props.isLoading ? /* @__PURE__ */
|
1234
|
+
), props.isLoading ? /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react28.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react28.default.createElement(
|
1286
1235
|
Skeleton,
|
1287
1236
|
{
|
1288
1237
|
animation: "none",
|
1289
1238
|
className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
|
1290
|
-
content: /* @__PURE__ */
|
1239
|
+
content: /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react28.default.createElement(
|
1291
1240
|
"svg",
|
1292
1241
|
{
|
1293
1242
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1301,12 +1250,12 @@ var Input = (0, import_react26.forwardRef)(
|
|
1301
1250
|
strokeLinejoin: "round",
|
1302
1251
|
className: "hawa-text-destructive"
|
1303
1252
|
},
|
1304
|
-
/* @__PURE__ */
|
1305
|
-
/* @__PURE__ */
|
1306
|
-
/* @__PURE__ */
|
1307
|
-
), /* @__PURE__ */
|
1253
|
+
/* @__PURE__ */ import_react28.default.createElement("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
|
1254
|
+
/* @__PURE__ */ import_react28.default.createElement("path", { d: "M12 9v4" }),
|
1255
|
+
/* @__PURE__ */ import_react28.default.createElement("path", { d: "M12 17h.01" })
|
1256
|
+
), /* @__PURE__ */ import_react28.default.createElement("span", null, /* @__PURE__ */ import_react28.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
|
1308
1257
|
}
|
1309
|
-
)) : /* @__PURE__ */
|
1258
|
+
)) : /* @__PURE__ */ import_react28.default.createElement(import_react28.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react28.default.createElement(
|
1310
1259
|
"div",
|
1311
1260
|
{
|
1312
1261
|
className: cn(
|
@@ -1314,7 +1263,7 @@ var Input = (0, import_react26.forwardRef)(
|
|
1314
1263
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
1315
1264
|
)
|
1316
1265
|
}
|
1317
|
-
), /* @__PURE__ */
|
1266
|
+
), /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react28.default.createElement(
|
1318
1267
|
"div",
|
1319
1268
|
{
|
1320
1269
|
className: cn(
|
@@ -1323,7 +1272,7 @@ var Input = (0, import_react26.forwardRef)(
|
|
1323
1272
|
)
|
1324
1273
|
},
|
1325
1274
|
props.endIcon
|
1326
|
-
), /* @__PURE__ */
|
1275
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
1327
1276
|
"input",
|
1328
1277
|
{
|
1329
1278
|
required: true,
|
@@ -1349,7 +1298,7 @@ var Input = (0, import_react26.forwardRef)(
|
|
1349
1298
|
inputProps == null ? void 0 : inputProps.className
|
1350
1299
|
)
|
1351
1300
|
}
|
1352
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
1301
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react28.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react28.default.createElement(
|
1353
1302
|
"div",
|
1354
1303
|
{
|
1355
1304
|
className: cn(
|
@@ -1358,7 +1307,7 @@ var Input = (0, import_react26.forwardRef)(
|
|
1358
1307
|
)
|
1359
1308
|
},
|
1360
1309
|
props.helperText
|
1361
|
-
), showCount && /* @__PURE__ */
|
1310
|
+
), showCount && /* @__PURE__ */ import_react28.default.createElement(
|
1362
1311
|
"div",
|
1363
1312
|
{
|
1364
1313
|
className: cn(
|
@@ -1389,14 +1338,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
1389
1338
|
console.log("handleNewsletterSub props was not provided");
|
1390
1339
|
}
|
1391
1340
|
};
|
1392
|
-
return /* @__PURE__ */
|
1341
|
+
return /* @__PURE__ */ import_react29.default.createElement(Card, null, /* @__PURE__ */ import_react29.default.createElement(CardHeader, null, /* @__PURE__ */ import_react29.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react29.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react29.default.createElement(CardContent, null, /* @__PURE__ */ import_react29.default.createElement(
|
1393
1342
|
"form",
|
1394
1343
|
{
|
1395
1344
|
noValidate: true,
|
1396
1345
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
1397
1346
|
onSubmit: handleSubmit(onSubmit)
|
1398
1347
|
},
|
1399
|
-
/* @__PURE__ */
|
1348
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
1400
1349
|
import_react_hook_form.Controller,
|
1401
1350
|
{
|
1402
1351
|
name: "email",
|
@@ -1409,27 +1358,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
1409
1358
|
}
|
1410
1359
|
},
|
1411
1360
|
defaultValue: "",
|
1412
|
-
render: ({ field }) => /* @__PURE__ */
|
1361
|
+
render: ({ field }) => /* @__PURE__ */ import_react29.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
1413
1362
|
}
|
1414
1363
|
),
|
1415
|
-
/* @__PURE__ */
|
1364
|
+
/* @__PURE__ */ import_react29.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
1416
1365
|
)));
|
1417
1366
|
};
|
1418
1367
|
|
1419
1368
|
// blocks/misc/Announcement.tsx
|
1420
|
-
var
|
1369
|
+
var import_react30 = __toESM(require("react"));
|
1421
1370
|
var Announcement = ({
|
1422
1371
|
onActionClick,
|
1423
1372
|
...props
|
1424
1373
|
}) => {
|
1425
|
-
return /* @__PURE__ */
|
1374
|
+
return /* @__PURE__ */ import_react30.default.createElement(Card, null, /* @__PURE__ */ import_react30.default.createElement(
|
1426
1375
|
CardContent,
|
1427
1376
|
{
|
1428
1377
|
headless: true,
|
1429
1378
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
1430
1379
|
},
|
1431
|
-
/* @__PURE__ */
|
1432
|
-
/* @__PURE__ */
|
1380
|
+
/* @__PURE__ */ import_react30.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
1381
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
1433
1382
|
Button,
|
1434
1383
|
{
|
1435
1384
|
onClick: () => onActionClick(),
|
@@ -1441,15 +1390,15 @@ var Announcement = ({
|
|
1441
1390
|
};
|
1442
1391
|
|
1443
1392
|
// blocks/misc/NotFound.tsx
|
1444
|
-
var
|
1393
|
+
var import_react31 = __toESM(require("react"));
|
1445
1394
|
var NotFound = ({ texts }) => {
|
1446
|
-
return /* @__PURE__ */
|
1395
|
+
return /* @__PURE__ */ import_react31.default.createElement(Card, null, /* @__PURE__ */ import_react31.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ import_react31.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react31.default.createElement(import_react31.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react31.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react31.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
1447
1396
|
};
|
1448
1397
|
|
1449
1398
|
// blocks/misc/NoPermission.tsx
|
1450
|
-
var
|
1399
|
+
var import_react32 = __toESM(require("react"));
|
1451
1400
|
var NoPermission = ({ texts }) => {
|
1452
|
-
return /* @__PURE__ */
|
1401
|
+
return /* @__PURE__ */ import_react32.default.createElement(Card, null, /* @__PURE__ */ import_react32.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react32.default.createElement(
|
1453
1402
|
"svg",
|
1454
1403
|
{
|
1455
1404
|
stroke: "currentColor",
|
@@ -1459,18 +1408,18 @@ var NoPermission = ({ texts }) => {
|
|
1459
1408
|
height: "0.35em",
|
1460
1409
|
width: "0.35em"
|
1461
1410
|
},
|
1462
|
-
/* @__PURE__ */
|
1463
|
-
)), /* @__PURE__ */
|
1411
|
+
/* @__PURE__ */ import_react32.default.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
|
1412
|
+
)), /* @__PURE__ */ import_react32.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react32.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
1464
1413
|
};
|
1465
1414
|
|
1466
1415
|
// blocks/misc/ContactForm.tsx
|
1467
|
-
var
|
1416
|
+
var import_react34 = __toESM(require("react"));
|
1468
1417
|
var import_react_hook_form2 = require("react-hook-form");
|
1469
1418
|
var import_zod = require("@hookform/resolvers/zod");
|
1470
1419
|
var z = __toESM(require("zod"));
|
1471
1420
|
|
1472
1421
|
// elements/select/Select.tsx
|
1473
|
-
var
|
1422
|
+
var import_react33 = __toESM(require("react"));
|
1474
1423
|
var import_react_select = __toESM(require("react-select"));
|
1475
1424
|
var import_creatable = __toESM(require("react-select/creatable"));
|
1476
1425
|
var import_clsx2 = __toESM(require("clsx"));
|
@@ -1481,10 +1430,10 @@ var Select = ({
|
|
1481
1430
|
}) => {
|
1482
1431
|
const NoOption = () => {
|
1483
1432
|
var _a, _b;
|
1484
|
-
return /* @__PURE__ */
|
1433
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
1485
1434
|
};
|
1486
1435
|
const Control = ({ children, innerProps, innerRef }) => {
|
1487
|
-
return /* @__PURE__ */
|
1436
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
1488
1437
|
"div",
|
1489
1438
|
{
|
1490
1439
|
ref: innerRef,
|
@@ -1497,7 +1446,7 @@ var Select = ({
|
|
1497
1446
|
);
|
1498
1447
|
};
|
1499
1448
|
const Option = ({ children, innerProps, innerRef }) => {
|
1500
|
-
return /* @__PURE__ */
|
1449
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
1501
1450
|
"div",
|
1502
1451
|
{
|
1503
1452
|
ref: innerRef,
|
@@ -1518,7 +1467,7 @@ var Select = ({
|
|
1518
1467
|
...menuProps
|
1519
1468
|
}) => {
|
1520
1469
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
1521
|
-
return /* @__PURE__ */
|
1470
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
1522
1471
|
"div",
|
1523
1472
|
{
|
1524
1473
|
className: cn(
|
@@ -1536,7 +1485,7 @@ var Select = ({
|
|
1536
1485
|
let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
|
1537
1486
|
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
1538
1487
|
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
1539
|
-
return /* @__PURE__ */
|
1488
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
1540
1489
|
"div",
|
1541
1490
|
{
|
1542
1491
|
className: cn(
|
@@ -1544,10 +1493,10 @@ var Select = ({
|
|
1544
1493
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
1545
1494
|
)
|
1546
1495
|
},
|
1547
|
-
props.label && /* @__PURE__ */
|
1548
|
-
props.isLoading ? /* @__PURE__ */
|
1496
|
+
props.label && /* @__PURE__ */ import_react33.default.createElement(Label, { ...labelProps }, props.label),
|
1497
|
+
props.isLoading ? /* @__PURE__ */ import_react33.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
1549
1498
|
// TODO: enable keyboard to go to the next item in the list
|
1550
|
-
/* @__PURE__ */
|
1499
|
+
/* @__PURE__ */ import_react33.default.createElement(
|
1551
1500
|
import_react_select.default,
|
1552
1501
|
{
|
1553
1502
|
noOptionsMessage: NoOption,
|
@@ -1581,7 +1530,7 @@ var Select = ({
|
|
1581
1530
|
// {...e}
|
1582
1531
|
// />
|
1583
1532
|
// ),
|
1584
|
-
ValueContainer: (e) => /* @__PURE__ */
|
1533
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react33.default.createElement(
|
1585
1534
|
"div",
|
1586
1535
|
{
|
1587
1536
|
className: cn(
|
@@ -1591,7 +1540,7 @@ var Select = ({
|
|
1591
1540
|
...e
|
1592
1541
|
}
|
1593
1542
|
),
|
1594
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
1543
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react33.default.createElement(
|
1595
1544
|
"div",
|
1596
1545
|
{
|
1597
1546
|
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
@@ -1610,7 +1559,7 @@ var Select = ({
|
|
1610
1559
|
isSearchable: props.isSearchable
|
1611
1560
|
}
|
1612
1561
|
)
|
1613
|
-
) : /* @__PURE__ */
|
1562
|
+
) : /* @__PURE__ */ import_react33.default.createElement(
|
1614
1563
|
import_creatable.default,
|
1615
1564
|
{
|
1616
1565
|
formatCreateLabel: (inputValue) => {
|
@@ -1640,13 +1589,13 @@ var Select = ({
|
|
1640
1589
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
1641
1590
|
}
|
1642
1591
|
),
|
1643
|
-
!props.hideHelperText && /* @__PURE__ */
|
1592
|
+
!props.hideHelperText && /* @__PURE__ */ import_react33.default.createElement(HelperText, { helperText: props.helperText })
|
1644
1593
|
);
|
1645
1594
|
};
|
1646
1595
|
|
1647
1596
|
// elements/textarea/Textarea.tsx
|
1648
|
-
var
|
1649
|
-
var Textarea =
|
1597
|
+
var React28 = __toESM(require("react"));
|
1598
|
+
var Textarea = React28.forwardRef(
|
1650
1599
|
({
|
1651
1600
|
className,
|
1652
1601
|
classNames,
|
@@ -1658,7 +1607,7 @@ var Textarea = React29.forwardRef(
|
|
1658
1607
|
isLoading,
|
1659
1608
|
...props
|
1660
1609
|
}, ref) => {
|
1661
|
-
return /* @__PURE__ */
|
1610
|
+
return /* @__PURE__ */ React28.createElement(
|
1662
1611
|
"div",
|
1663
1612
|
{
|
1664
1613
|
className: cn(
|
@@ -1667,7 +1616,7 @@ var Textarea = React29.forwardRef(
|
|
1667
1616
|
className
|
1668
1617
|
)
|
1669
1618
|
},
|
1670
|
-
/* @__PURE__ */
|
1619
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React28.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React28.createElement(
|
1671
1620
|
"div",
|
1672
1621
|
{
|
1673
1622
|
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
@@ -1676,7 +1625,7 @@ var Textarea = React29.forwardRef(
|
|
1676
1625
|
"/",
|
1677
1626
|
textareaProps == null ? void 0 : textareaProps.maxLength
|
1678
1627
|
)),
|
1679
|
-
isLoading ? /* @__PURE__ */
|
1628
|
+
isLoading ? /* @__PURE__ */ React28.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React28.createElement(
|
1680
1629
|
"textarea",
|
1681
1630
|
{
|
1682
1631
|
...textareaProps,
|
@@ -1687,7 +1636,7 @@ var Textarea = React29.forwardRef(
|
|
1687
1636
|
ref
|
1688
1637
|
}
|
1689
1638
|
),
|
1690
|
-
/* @__PURE__ */
|
1639
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React28.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React28.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
1691
1640
|
);
|
1692
1641
|
}
|
1693
1642
|
);
|
@@ -1764,7 +1713,7 @@ var ContactForm = ({
|
|
1764
1713
|
console.log("Form is submitted but onSubmit prop is missing");
|
1765
1714
|
}
|
1766
1715
|
};
|
1767
|
-
return /* @__PURE__ */
|
1716
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1768
1717
|
Card,
|
1769
1718
|
{
|
1770
1719
|
className: cn(
|
@@ -1773,7 +1722,7 @@ var ContactForm = ({
|
|
1773
1722
|
),
|
1774
1723
|
style: cardless ? { boxShadow: "none" } : void 0
|
1775
1724
|
},
|
1776
|
-
/* @__PURE__ */
|
1725
|
+
/* @__PURE__ */ import_react34.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react34.default.createElement(CardHeader, null, /* @__PURE__ */ import_react34.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react34.default.createElement(CardDescription, null, ((_e = texts == null ? void 0 : texts.success) == null ? void 0 : _e.description) || "Thank you for your submission, we will get back to you as soon as possible.")) : /* @__PURE__ */ import_react34.default.createElement(
|
1777
1726
|
"form",
|
1778
1727
|
{
|
1779
1728
|
noValidate: true,
|
@@ -1782,7 +1731,7 @@ var ContactForm = ({
|
|
1782
1731
|
id: formId,
|
1783
1732
|
autoComplete: formAutoComplete
|
1784
1733
|
},
|
1785
|
-
/* @__PURE__ */
|
1734
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
1786
1735
|
"div",
|
1787
1736
|
{
|
1788
1737
|
className: cn(
|
@@ -1793,14 +1742,14 @@ var ContactForm = ({
|
|
1793
1742
|
}
|
1794
1743
|
)
|
1795
1744
|
},
|
1796
|
-
/* @__PURE__ */
|
1745
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
1797
1746
|
import_react_hook_form2.Controller,
|
1798
1747
|
{
|
1799
1748
|
control,
|
1800
1749
|
name: "name",
|
1801
1750
|
render: ({ field }) => {
|
1802
1751
|
var _a2;
|
1803
|
-
return /* @__PURE__ */
|
1752
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1804
1753
|
Input,
|
1805
1754
|
{
|
1806
1755
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -1813,14 +1762,14 @@ var ContactForm = ({
|
|
1813
1762
|
}
|
1814
1763
|
}
|
1815
1764
|
),
|
1816
|
-
/* @__PURE__ */
|
1765
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
1817
1766
|
import_react_hook_form2.Controller,
|
1818
1767
|
{
|
1819
1768
|
control,
|
1820
1769
|
name: "email",
|
1821
1770
|
render: ({ field }) => {
|
1822
1771
|
var _a2;
|
1823
|
-
return /* @__PURE__ */
|
1772
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1824
1773
|
Input,
|
1825
1774
|
{
|
1826
1775
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -1836,7 +1785,7 @@ var ContactForm = ({
|
|
1836
1785
|
),
|
1837
1786
|
customFields && customFields.map((customField) => {
|
1838
1787
|
console.log("custom", customField);
|
1839
|
-
return /* @__PURE__ */
|
1788
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1840
1789
|
import_react_hook_form2.Controller,
|
1841
1790
|
{
|
1842
1791
|
control,
|
@@ -1846,7 +1795,7 @@ var ContactForm = ({
|
|
1846
1795
|
switch (type) {
|
1847
1796
|
case "text":
|
1848
1797
|
case "number":
|
1849
|
-
return /* @__PURE__ */
|
1798
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1850
1799
|
Input,
|
1851
1800
|
{
|
1852
1801
|
id: customField.name,
|
@@ -1857,7 +1806,7 @@ var ContactForm = ({
|
|
1857
1806
|
}
|
1858
1807
|
);
|
1859
1808
|
case "select":
|
1860
|
-
return /* @__PURE__ */
|
1809
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1861
1810
|
Select,
|
1862
1811
|
{
|
1863
1812
|
label,
|
@@ -1867,20 +1816,20 @@ var ContactForm = ({
|
|
1867
1816
|
}
|
1868
1817
|
);
|
1869
1818
|
default:
|
1870
|
-
return /* @__PURE__ */
|
1819
|
+
return /* @__PURE__ */ import_react34.default.createElement("div", null, "Unknown type");
|
1871
1820
|
}
|
1872
1821
|
}
|
1873
1822
|
}
|
1874
1823
|
);
|
1875
1824
|
}),
|
1876
|
-
/* @__PURE__ */
|
1825
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
1877
1826
|
import_react_hook_form2.Controller,
|
1878
1827
|
{
|
1879
1828
|
control,
|
1880
1829
|
name: "message",
|
1881
1830
|
render: ({ field }) => {
|
1882
1831
|
var _a2;
|
1883
|
-
return /* @__PURE__ */
|
1832
|
+
return /* @__PURE__ */ import_react34.default.createElement(
|
1884
1833
|
Textarea,
|
1885
1834
|
{
|
1886
1835
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -1897,7 +1846,7 @@ var ContactForm = ({
|
|
1897
1846
|
}
|
1898
1847
|
}
|
1899
1848
|
),
|
1900
|
-
/* @__PURE__ */
|
1849
|
+
/* @__PURE__ */ import_react34.default.createElement(
|
1901
1850
|
Button,
|
1902
1851
|
{
|
1903
1852
|
type: "submit",
|