@sikka/hawa 0.35.5-next → 0.36.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chip-BtgTAs8x.d.mts → Chip-CGl24Kd9.d.mts} +2 -2
- package/dist/{Chip-DQsP5hFS.d.ts → Chip-Cato49ar.d.ts} +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +6 -4
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +6 -4
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +180 -172
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +201 -193
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +28 -5
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +0 -1
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +94 -69
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +81 -56
- package/dist/blocks/misc/index.mjs +65 -65
- package/dist/blocks/pricing/index.js +6 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chip/index.d.mts +2 -2
- package/dist/chip/index.d.ts +2 -2
- package/dist/chip/index.js +6 -4
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +6 -4
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-6QIOEUE2.mjs} +1 -1
- package/dist/{chunk-JEZLVXSU.mjs → chunk-BXBSZD5X.mjs} +26 -2
- package/dist/{chunk-LVXG3SMD.mjs → chunk-CJ57JBYA.mjs} +6 -4
- package/dist/{chunk-CD6AQVU3.mjs → chunk-HLYAX77R.mjs} +0 -1
- package/dist/{chunk-G7JHUC5N.mjs → chunk-NNPNQK6F.mjs} +211 -4
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/{chunk-TERP5K6R.mjs → chunk-T33FXOHA.mjs} +29 -189
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/dataTable/index.js +41 -5
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +41 -5
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -0
- package/dist/datePicker/index.d.ts +1 -0
- package/dist/datePicker/index.js +3 -2
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -2
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +8 -4
- package/dist/elements/index.d.ts +8 -4
- package/dist/elements/index.js +124 -87
- package/dist/elements/index.mjs +25 -13
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.css +10 -0
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +225 -189
- package/dist/index.mjs +771 -736
- package/dist/input/index.d.mts +6 -2
- package/dist/input/index.d.ts +6 -2
- package/dist/input/index.js +26 -2
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +26 -2
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +289 -281
- package/dist/layout/index.mjs +24 -56
- package/dist/passwordInput/index.js +26 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +26 -2
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -2
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -2
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +1 -1
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +1 -1
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.js +0 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +0 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/sidebar/index.js +6 -4
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +6 -4
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +26 -24
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +30 -28
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +7 -8
- package/dist/chunk-545D35G6.mjs +0 -54
@@ -1233,7 +1233,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
1233
1233
|
auto: ""
|
1234
1234
|
};
|
1235
1235
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
1236
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
1236
|
+
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm placeholder:hawa-text-muted-foreground";
|
1237
1237
|
const handleChange = (e) => {
|
1238
1238
|
let newValue = e.target.value;
|
1239
1239
|
if (props.prefixText) {
|
@@ -1272,7 +1272,31 @@ var Input = (0, import_react8.forwardRef)(
|
|
1272
1272
|
)
|
1273
1273
|
},
|
1274
1274
|
props.outsidePrefix
|
1275
|
-
), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(
|
1275
|
+
), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(
|
1276
|
+
Skeleton,
|
1277
|
+
{
|
1278
|
+
animation: "none",
|
1279
|
+
className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
|
1280
|
+
content: /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react8.default.createElement(
|
1281
|
+
"svg",
|
1282
|
+
{
|
1283
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1284
|
+
width: "20",
|
1285
|
+
height: "20",
|
1286
|
+
viewBox: "0 0 24 24",
|
1287
|
+
fill: "none",
|
1288
|
+
stroke: "currentColor",
|
1289
|
+
strokeWidth: "2",
|
1290
|
+
strokeLinecap: "round",
|
1291
|
+
strokeLinejoin: "round",
|
1292
|
+
className: "hawa-text-destructive"
|
1293
|
+
},
|
1294
|
+
/* @__PURE__ */ import_react8.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" }),
|
1295
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 9v4" }),
|
1296
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 17h.01" })
|
1297
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, /* @__PURE__ */ import_react8.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
|
1298
|
+
}
|
1299
|
+
)) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
|
1276
1300
|
"div",
|
1277
1301
|
{
|
1278
1302
|
className: cn(
|
@@ -3148,7 +3172,6 @@ var Select = ({
|
|
3148
3172
|
)
|
3149
3173
|
},
|
3150
3174
|
unstyled: true,
|
3151
|
-
autoFocus: true,
|
3152
3175
|
components: props.hideIndicator ? {
|
3153
3176
|
Option,
|
3154
3177
|
Menu,
|
@@ -3286,7 +3309,7 @@ var PhoneInput = ({
|
|
3286
3309
|
onChange: handleInputChange,
|
3287
3310
|
placeholder: props.placeholder,
|
3288
3311
|
className: cn(
|
3289
|
-
"hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
3312
|
+
"placeholder:hawa-text-muted-foreground hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
3290
3313
|
),
|
3291
3314
|
...inputProps
|
3292
3315
|
}
|
@@ -4515,7 +4538,7 @@ var PinInput = ({
|
|
4515
4538
|
id: `input-${index}`,
|
4516
4539
|
pattern: "[0-9]*",
|
4517
4540
|
className: cn(
|
4518
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
4541
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center placeholder:hawa-text-muted-foreground",
|
4519
4542
|
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
4520
4543
|
),
|
4521
4544
|
onChange: (e) => handleChange(e, index),
|
@@ -1,13 +1,13 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-BXBSZD5X.mjs";
|
5
5
|
import {
|
6
6
|
StopPropagationWrapper
|
7
7
|
} from "../../chunk-47APBDKK.mjs";
|
8
8
|
import {
|
9
9
|
Select
|
10
|
-
} from "../../chunk-
|
10
|
+
} from "../../chunk-HLYAX77R.mjs";
|
11
11
|
import {
|
12
12
|
EyeIcon,
|
13
13
|
HiddenEyeIcon
|
@@ -2379,7 +2379,7 @@ var PhoneInput = ({
|
|
2379
2379
|
onChange: handleInputChange,
|
2380
2380
|
placeholder: props.placeholder,
|
2381
2381
|
className: cn(
|
2382
|
-
"hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
2382
|
+
"placeholder:hawa-text-muted-foreground hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
2383
2383
|
),
|
2384
2384
|
...inputProps
|
2385
2385
|
}
|
@@ -3560,7 +3560,7 @@ var PinInput = ({
|
|
3560
3560
|
id: `input-${index}`,
|
3561
3561
|
pattern: "[0-9]*",
|
3562
3562
|
className: cn(
|
3563
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
3563
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center placeholder:hawa-text-muted-foreground",
|
3564
3564
|
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
3565
3565
|
),
|
3566
3566
|
onChange: (e) => handleChange(e, index),
|
package/dist/blocks/index.js
CHANGED
@@ -1254,7 +1254,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
1254
1254
|
auto: ""
|
1255
1255
|
};
|
1256
1256
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
1257
|
-
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
1257
|
+
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm placeholder:hawa-text-muted-foreground";
|
1258
1258
|
const handleChange = (e) => {
|
1259
1259
|
let newValue = e.target.value;
|
1260
1260
|
if (props.prefixText) {
|
@@ -1293,7 +1293,31 @@ var Input = (0, import_react8.forwardRef)(
|
|
1293
1293
|
)
|
1294
1294
|
},
|
1295
1295
|
props.outsidePrefix
|
1296
|
-
), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(
|
1296
|
+
), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : props.isLoadingError ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(
|
1297
|
+
Skeleton,
|
1298
|
+
{
|
1299
|
+
animation: "none",
|
1300
|
+
className: "hawa-h-[40px] hawa-w-full !hawa-bg-destructive/[0.3]",
|
1301
|
+
content: /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react8.default.createElement(
|
1302
|
+
"svg",
|
1303
|
+
{
|
1304
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1305
|
+
width: "20",
|
1306
|
+
height: "20",
|
1307
|
+
viewBox: "0 0 24 24",
|
1308
|
+
fill: "none",
|
1309
|
+
stroke: "currentColor",
|
1310
|
+
strokeWidth: "2",
|
1311
|
+
strokeLinecap: "round",
|
1312
|
+
strokeLinejoin: "round",
|
1313
|
+
className: "hawa-text-destructive"
|
1314
|
+
},
|
1315
|
+
/* @__PURE__ */ import_react8.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" }),
|
1316
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 9v4" }),
|
1317
|
+
/* @__PURE__ */ import_react8.default.createElement("path", { d: "M12 17h.01" })
|
1318
|
+
), /* @__PURE__ */ import_react8.default.createElement("span", null, /* @__PURE__ */ import_react8.default.createElement("span", { className: "hawa-text-destructive" }, props.loadingErrorMesssage || "Error loading data")))
|
1319
|
+
}
|
1320
|
+
)) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
|
1297
1321
|
"div",
|
1298
1322
|
{
|
1299
1323
|
className: cn(
|
@@ -3169,7 +3193,6 @@ var Select = ({
|
|
3169
3193
|
)
|
3170
3194
|
},
|
3171
3195
|
unstyled: true,
|
3172
|
-
autoFocus: true,
|
3173
3196
|
components: props.hideIndicator ? {
|
3174
3197
|
Option,
|
3175
3198
|
Menu,
|
@@ -3307,7 +3330,7 @@ var PhoneInput = ({
|
|
3307
3330
|
onChange: handleInputChange,
|
3308
3331
|
placeholder: props.placeholder,
|
3309
3332
|
className: cn(
|
3310
|
-
"hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
3333
|
+
"placeholder:hawa-text-muted-foreground hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
3311
3334
|
),
|
3312
3335
|
...inputProps
|
3313
3336
|
}
|
@@ -4672,7 +4695,7 @@ var PinInput = ({
|
|
4672
4695
|
id: `input-${index}`,
|
4673
4696
|
pattern: "[0-9]*",
|
4674
4697
|
className: cn(
|
4675
|
-
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
|
4698
|
+
"hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center placeholder:hawa-text-muted-foreground",
|
4676
4699
|
width === "full" ? "hawa-w-full" : "hawa-w-10"
|
4677
4700
|
),
|
4678
4701
|
onChange: (e) => handleChange(e, index),
|
@@ -5683,7 +5706,7 @@ var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...pr
|
|
5683
5706
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
5684
5707
|
|
5685
5708
|
// elements/tabs/Tabs.tsx
|
5686
|
-
var
|
5709
|
+
var React45 = __toESM(require("react"));
|
5687
5710
|
|
5688
5711
|
// hooks/useIsomorphicEffect.ts
|
5689
5712
|
var import_react29 = require("react");
|
@@ -5766,8 +5789,8 @@ var useMeasureDirty = (ref) => {
|
|
5766
5789
|
return rect;
|
5767
5790
|
};
|
5768
5791
|
|
5769
|
-
// hooks/
|
5770
|
-
var import_react44 =
|
5792
|
+
// hooks/useClickOutside.ts
|
5793
|
+
var import_react44 = require("react");
|
5771
5794
|
|
5772
5795
|
// elements/tabs/Tabs.tsx
|
5773
5796
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
@@ -5782,7 +5805,8 @@ var Chip = import_react45.default.forwardRef(
|
|
5782
5805
|
icon,
|
5783
5806
|
color,
|
5784
5807
|
radius = "inherit",
|
5785
|
-
|
5808
|
+
dot,
|
5809
|
+
dotStatus = "none",
|
5786
5810
|
...rest
|
5787
5811
|
}, ref) => {
|
5788
5812
|
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 ";
|
@@ -5801,7 +5825,8 @@ var Chip = import_react45.default.forwardRef(
|
|
5801
5825
|
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
5802
5826
|
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
5803
5827
|
};
|
5804
|
-
let
|
5828
|
+
let dotStatusStyles = {
|
5829
|
+
none: "hawa-bg-gray-500 dark:hawa-bg-gray-800",
|
5805
5830
|
available: "hawa-bg-green-500",
|
5806
5831
|
unavailable: "hawa-bg-red-500"
|
5807
5832
|
};
|
@@ -5829,10 +5854,10 @@ var Chip = import_react45.default.forwardRef(
|
|
5829
5854
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
5830
5855
|
)
|
5831
5856
|
},
|
5832
|
-
|
5857
|
+
dot && /* @__PURE__ */ import_react45.default.createElement(
|
5833
5858
|
"span",
|
5834
5859
|
{
|
5835
|
-
className: cn(dotStyles[size],
|
5860
|
+
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
5836
5861
|
}
|
5837
5862
|
),
|
5838
5863
|
icon && icon,
|
@@ -5855,7 +5880,7 @@ var Chip = import_react45.default.forwardRef(
|
|
5855
5880
|
);
|
5856
5881
|
|
5857
5882
|
// elements/floatBox/FloatBox.tsx
|
5858
|
-
var
|
5883
|
+
var React44 = __toESM(require("react"));
|
5859
5884
|
var FloatBox = ({
|
5860
5885
|
className,
|
5861
5886
|
open,
|
@@ -5893,7 +5918,7 @@ var FloatBox = ({
|
|
5893
5918
|
right: "hawa-arrow-default-left",
|
5894
5919
|
left: "hawa-arrow-default-right"
|
5895
5920
|
};
|
5896
|
-
return /* @__PURE__ */
|
5921
|
+
return /* @__PURE__ */ React44.createElement(
|
5897
5922
|
"div",
|
5898
5923
|
{
|
5899
5924
|
className: cn(
|
@@ -5904,8 +5929,8 @@ var FloatBox = ({
|
|
5904
5929
|
"data-side": side,
|
5905
5930
|
"data-floatbox-state": open ? "open" : "closed"
|
5906
5931
|
},
|
5907
|
-
withArrow && /* @__PURE__ */
|
5908
|
-
/* @__PURE__ */
|
5932
|
+
withArrow && /* @__PURE__ */ React44.createElement("div", { className: cn(arrowDirection[side]) }),
|
5933
|
+
/* @__PURE__ */ React44.createElement("span", null, props.children)
|
5909
5934
|
);
|
5910
5935
|
};
|
5911
5936
|
|
@@ -5968,8 +5993,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
5968
5993
|
],
|
5969
5994
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5970
5995
|
});
|
5971
|
-
var TabsContext =
|
5972
|
-
var Tabs =
|
5996
|
+
var TabsContext = React45.createContext({ orientation: "horizontal", variant: "default" });
|
5997
|
+
var Tabs = React45.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React45.createElement(
|
5973
5998
|
TabsPrimitive.Root,
|
5974
5999
|
{
|
5975
6000
|
ref,
|
@@ -5980,11 +6005,11 @@ var Tabs = React46.forwardRef(({ className, orientation, variant = "default", ..
|
|
5980
6005
|
),
|
5981
6006
|
...props
|
5982
6007
|
},
|
5983
|
-
/* @__PURE__ */
|
6008
|
+
/* @__PURE__ */ React45.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
5984
6009
|
));
|
5985
|
-
var TabsList =
|
5986
|
-
const { orientation, variant } =
|
5987
|
-
return /* @__PURE__ */
|
6010
|
+
var TabsList = React45.forwardRef(({ className, ...props }, ref) => {
|
6011
|
+
const { orientation, variant } = React45.useContext(TabsContext);
|
6012
|
+
return /* @__PURE__ */ React45.createElement(
|
5988
6013
|
TabsPrimitive.List,
|
5989
6014
|
{
|
5990
6015
|
ref,
|
@@ -5997,11 +6022,11 @@ var TabsList = React46.forwardRef(({ className, ...props }, ref) => {
|
|
5997
6022
|
}
|
5998
6023
|
);
|
5999
6024
|
});
|
6000
|
-
var TabsTrigger =
|
6001
|
-
const { orientation, variant } =
|
6002
|
-
const tabTriggerRef =
|
6025
|
+
var TabsTrigger = React45.forwardRef(({ className, chipProps, ...props }, ref) => {
|
6026
|
+
const { orientation, variant } = React45.useContext(TabsContext);
|
6027
|
+
const tabTriggerRef = React45.useRef(null);
|
6003
6028
|
const { width } = useMeasureDirty(tabTriggerRef);
|
6004
|
-
return /* @__PURE__ */
|
6029
|
+
return /* @__PURE__ */ React45.createElement(
|
6005
6030
|
TabsPrimitive.Trigger,
|
6006
6031
|
{
|
6007
6032
|
ref: tabTriggerRef,
|
@@ -6013,8 +6038,8 @@ var TabsTrigger = React46.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
6013
6038
|
...props
|
6014
6039
|
},
|
6015
6040
|
props.children,
|
6016
|
-
chipProps && /* @__PURE__ */
|
6017
|
-
/* @__PURE__ */
|
6041
|
+
chipProps && /* @__PURE__ */ React45.createElement(Chip, { ...chipProps }),
|
6042
|
+
/* @__PURE__ */ React45.createElement(
|
6018
6043
|
FloatBox,
|
6019
6044
|
{
|
6020
6045
|
withArrow: true,
|
@@ -6027,7 +6052,7 @@ var TabsTrigger = React46.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
6027
6052
|
)
|
6028
6053
|
);
|
6029
6054
|
});
|
6030
|
-
var TabsContent =
|
6055
|
+
var TabsContent = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React45.createElement(
|
6031
6056
|
TabsPrimitive.Content,
|
6032
6057
|
{
|
6033
6058
|
ref,
|
@@ -6520,12 +6545,12 @@ var AdCard = ({
|
|
6520
6545
|
var import_react56 = __toESM(require("react"));
|
6521
6546
|
|
6522
6547
|
// elements/separator/Separator.tsx
|
6523
|
-
var
|
6548
|
+
var React56 = __toESM(require("react"));
|
6524
6549
|
var Separator = ({
|
6525
6550
|
className,
|
6526
6551
|
orientation = "horizontal",
|
6527
6552
|
...props
|
6528
|
-
}) => /* @__PURE__ */
|
6553
|
+
}) => /* @__PURE__ */ React56.createElement(
|
6529
6554
|
"div",
|
6530
6555
|
{
|
6531
6556
|
className: cn(
|
@@ -6663,14 +6688,14 @@ var PricingCard = ({
|
|
6663
6688
|
var import_react58 = __toESM(require("react"));
|
6664
6689
|
|
6665
6690
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6666
|
-
var
|
6691
|
+
var React58 = __toESM(require("react"));
|
6667
6692
|
var import_react57 = require("@headlessui/react");
|
6668
6693
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6669
6694
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6670
6695
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
6671
6696
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
6672
6697
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
6673
|
-
var DropdownMenuSubTrigger =
|
6698
|
+
var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6674
6699
|
DropdownMenuPrimitive.SubTrigger,
|
6675
6700
|
{
|
6676
6701
|
ref,
|
@@ -6681,9 +6706,9 @@ var DropdownMenuSubTrigger = React59.forwardRef(({ className, inset, children, .
|
|
6681
6706
|
),
|
6682
6707
|
...props
|
6683
6708
|
},
|
6684
|
-
/* @__PURE__ */
|
6709
|
+
/* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
6685
6710
|
" ",
|
6686
|
-
/* @__PURE__ */
|
6711
|
+
/* @__PURE__ */ React58.createElement(
|
6687
6712
|
"svg",
|
6688
6713
|
{
|
6689
6714
|
"aria-label": "Chevron Right Icon",
|
@@ -6695,7 +6720,7 @@ var DropdownMenuSubTrigger = React59.forwardRef(({ className, inset, children, .
|
|
6695
6720
|
width: "1em",
|
6696
6721
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
6697
6722
|
},
|
6698
|
-
/* @__PURE__ */
|
6723
|
+
/* @__PURE__ */ React58.createElement(
|
6699
6724
|
"path",
|
6700
6725
|
{
|
6701
6726
|
fillRule: "evenodd",
|
@@ -6705,7 +6730,7 @@ var DropdownMenuSubTrigger = React59.forwardRef(({ className, inset, children, .
|
|
6705
6730
|
)
|
6706
6731
|
));
|
6707
6732
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
6708
|
-
var DropdownMenuSubContent =
|
6733
|
+
var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6709
6734
|
DropdownMenuPrimitive.SubContent,
|
6710
6735
|
{
|
6711
6736
|
ref,
|
@@ -6717,7 +6742,7 @@ var DropdownMenuSubContent = React59.forwardRef(({ className, ...props }, ref) =
|
|
6717
6742
|
}
|
6718
6743
|
));
|
6719
6744
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6720
|
-
var DropdownMenuContent =
|
6745
|
+
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(import_react57.Portal, null, /* @__PURE__ */ React58.createElement(
|
6721
6746
|
DropdownMenuPrimitive.Content,
|
6722
6747
|
{
|
6723
6748
|
ref,
|
@@ -6730,8 +6755,8 @@ var DropdownMenuContent = React59.forwardRef(({ className, sideOffset = 4, ...pr
|
|
6730
6755
|
}
|
6731
6756
|
)));
|
6732
6757
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
6733
|
-
var DropdownMenuItem =
|
6734
|
-
return /* @__PURE__ */
|
6758
|
+
var DropdownMenuItem = React58.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
6759
|
+
return /* @__PURE__ */ React58.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React58.createElement(
|
6735
6760
|
DropdownMenuPrimitive.Item,
|
6736
6761
|
{
|
6737
6762
|
disabled: props.disabled,
|
@@ -6744,14 +6769,14 @@ var DropdownMenuItem = React59.forwardRef(({ className, inset, badged, slug, Lin
|
|
6744
6769
|
),
|
6745
6770
|
...props
|
6746
6771
|
},
|
6747
|
-
/* @__PURE__ */
|
6772
|
+
/* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
6748
6773
|
props.end && props.end,
|
6749
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
6750
|
-
!props.end && badged && /* @__PURE__ */
|
6774
|
+
!props.end && props.shortcut && /* @__PURE__ */ React58.createElement(DropdownMenuShortcut, null, props.shortcut),
|
6775
|
+
!props.end && badged && /* @__PURE__ */ React58.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
6751
6776
|
));
|
6752
6777
|
});
|
6753
6778
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
6754
|
-
var DropdownMenuCheckboxItem =
|
6779
|
+
var DropdownMenuCheckboxItem = React58.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6755
6780
|
DropdownMenuPrimitive.CheckboxItem,
|
6756
6781
|
{
|
6757
6782
|
ref,
|
@@ -6762,7 +6787,7 @@ var DropdownMenuCheckboxItem = React59.forwardRef(({ className, children, checke
|
|
6762
6787
|
checked,
|
6763
6788
|
...props
|
6764
6789
|
},
|
6765
|
-
/* @__PURE__ */
|
6790
|
+
/* @__PURE__ */ React58.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React58.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React58.createElement(
|
6766
6791
|
"svg",
|
6767
6792
|
{
|
6768
6793
|
"aria-label": "Check Mark",
|
@@ -6773,12 +6798,12 @@ var DropdownMenuCheckboxItem = React59.forwardRef(({ className, children, checke
|
|
6773
6798
|
height: "0.60em",
|
6774
6799
|
width: "0.60em"
|
6775
6800
|
},
|
6776
|
-
/* @__PURE__ */
|
6801
|
+
/* @__PURE__ */ React58.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" })
|
6777
6802
|
), " ")),
|
6778
6803
|
children
|
6779
6804
|
));
|
6780
6805
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
6781
|
-
var DropdownMenuRadioItem =
|
6806
|
+
var DropdownMenuRadioItem = React58.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6782
6807
|
DropdownMenuPrimitive.RadioItem,
|
6783
6808
|
{
|
6784
6809
|
ref,
|
@@ -6788,7 +6813,7 @@ var DropdownMenuRadioItem = React59.forwardRef(({ className, children, ...props
|
|
6788
6813
|
),
|
6789
6814
|
...props
|
6790
6815
|
},
|
6791
|
-
/* @__PURE__ */
|
6816
|
+
/* @__PURE__ */ React58.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React58.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React58.createElement(
|
6792
6817
|
"svg",
|
6793
6818
|
{
|
6794
6819
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6803,12 +6828,12 @@ var DropdownMenuRadioItem = React59.forwardRef(({ className, children, ...props
|
|
6803
6828
|
strokeLinejoin: "round",
|
6804
6829
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
6805
6830
|
},
|
6806
|
-
/* @__PURE__ */
|
6831
|
+
/* @__PURE__ */ React58.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
6807
6832
|
))),
|
6808
6833
|
children
|
6809
6834
|
));
|
6810
6835
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
6811
|
-
var DropdownMenuLabel =
|
6836
|
+
var DropdownMenuLabel = React58.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6812
6837
|
DropdownMenuPrimitive.Label,
|
6813
6838
|
{
|
6814
6839
|
ref,
|
@@ -6821,7 +6846,7 @@ var DropdownMenuLabel = React59.forwardRef(({ className, inset, ...props }, ref)
|
|
6821
6846
|
}
|
6822
6847
|
));
|
6823
6848
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
6824
|
-
var DropdownMenuSeparator =
|
6849
|
+
var DropdownMenuSeparator = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6825
6850
|
DropdownMenuPrimitive.Separator,
|
6826
6851
|
{
|
6827
6852
|
ref,
|
@@ -6834,7 +6859,7 @@ var DropdownMenuShortcut = ({
|
|
6834
6859
|
className,
|
6835
6860
|
...props
|
6836
6861
|
}) => {
|
6837
|
-
return /* @__PURE__ */
|
6862
|
+
return /* @__PURE__ */ React58.createElement(
|
6838
6863
|
"span",
|
6839
6864
|
{
|
6840
6865
|
className: cn(
|
@@ -6875,10 +6900,10 @@ var DropdownMenu = ({
|
|
6875
6900
|
default: "hawa-px-2 hawa-py-3 ",
|
6876
6901
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
6877
6902
|
};
|
6878
|
-
let [values, setValues] =
|
6903
|
+
let [values, setValues] = React58.useState(
|
6879
6904
|
items.map((item) => item.currentOption)
|
6880
6905
|
);
|
6881
|
-
return /* @__PURE__ */
|
6906
|
+
return /* @__PURE__ */ React58.createElement(
|
6882
6907
|
DropdownMenuRoot,
|
6883
6908
|
{
|
6884
6909
|
onOpenChange,
|
@@ -6886,7 +6911,7 @@ var DropdownMenu = ({
|
|
6886
6911
|
modal: false,
|
6887
6912
|
dir: direction
|
6888
6913
|
},
|
6889
|
-
/* @__PURE__ */
|
6914
|
+
/* @__PURE__ */ React58.createElement(
|
6890
6915
|
DropdownMenuTrigger,
|
6891
6916
|
{
|
6892
6917
|
asChild: true,
|
@@ -6895,7 +6920,7 @@ var DropdownMenu = ({
|
|
6895
6920
|
},
|
6896
6921
|
trigger
|
6897
6922
|
),
|
6898
|
-
/* @__PURE__ */
|
6923
|
+
/* @__PURE__ */ React58.createElement(import_react57.Portal, null, /* @__PURE__ */ React58.createElement(
|
6899
6924
|
DropdownMenuContent,
|
6900
6925
|
{
|
6901
6926
|
side,
|
@@ -6916,12 +6941,12 @@ var DropdownMenu = ({
|
|
6916
6941
|
var _a;
|
6917
6942
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
6918
6943
|
if (item.itemType === "separator") {
|
6919
|
-
return /* @__PURE__ */
|
6944
|
+
return /* @__PURE__ */ React58.createElement(DropdownMenuSeparator, { key: index });
|
6920
6945
|
} else if (item.itemType === "label") {
|
6921
|
-
return /* @__PURE__ */
|
6946
|
+
return /* @__PURE__ */ React58.createElement(DropdownMenuLabel, { key: index }, item.label);
|
6922
6947
|
} else if (item.itemType === "radio") {
|
6923
6948
|
let dd = item.currentOption;
|
6924
|
-
return /* @__PURE__ */
|
6949
|
+
return /* @__PURE__ */ React58.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React58.createElement(
|
6925
6950
|
DropdownMenuSubTrigger,
|
6926
6951
|
{
|
6927
6952
|
dir: direction,
|
@@ -6929,7 +6954,7 @@ var DropdownMenu = ({
|
|
6929
6954
|
},
|
6930
6955
|
item.icon && item.icon,
|
6931
6956
|
item.label && item.label
|
6932
|
-
), /* @__PURE__ */
|
6957
|
+
), /* @__PURE__ */ React58.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React58.createElement(
|
6933
6958
|
DropdownMenuRadioGroup,
|
6934
6959
|
{
|
6935
6960
|
value: values[index],
|
@@ -6943,12 +6968,12 @@ var DropdownMenu = ({
|
|
6943
6968
|
}
|
6944
6969
|
}
|
6945
6970
|
},
|
6946
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
6971
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React58.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
6947
6972
|
)));
|
6948
6973
|
} else if (item.itemType === "custom") {
|
6949
|
-
return /* @__PURE__ */
|
6974
|
+
return /* @__PURE__ */ React58.createElement("div", { key: index }, item.content);
|
6950
6975
|
} else {
|
6951
|
-
return item.subitems ? /* @__PURE__ */
|
6976
|
+
return item.subitems ? /* @__PURE__ */ React58.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React58.createElement(
|
6952
6977
|
DropdownMenuSubTrigger,
|
6953
6978
|
{
|
6954
6979
|
dir: direction,
|
@@ -6956,9 +6981,9 @@ var DropdownMenu = ({
|
|
6956
6981
|
},
|
6957
6982
|
item.icon && item.icon,
|
6958
6983
|
item.label && item.label
|
6959
|
-
), /* @__PURE__ */
|
6984
|
+
), /* @__PURE__ */ React58.createElement(import_react57.Portal, null, /* @__PURE__ */ React58.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
6960
6985
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
6961
|
-
return /* @__PURE__ */
|
6986
|
+
return /* @__PURE__ */ React58.createElement(
|
6962
6987
|
DropdownMenuItem,
|
6963
6988
|
{
|
6964
6989
|
key: subIndex,
|
@@ -6987,7 +7012,7 @@ var DropdownMenu = ({
|
|
6987
7012
|
subitem.icon && subitem.icon,
|
6988
7013
|
subitem.label && subitem.label
|
6989
7014
|
);
|
6990
|
-
})))) : /* @__PURE__ */
|
7015
|
+
})))) : /* @__PURE__ */ React58.createElement(
|
6991
7016
|
DropdownMenuItem,
|
6992
7017
|
{
|
6993
7018
|
LinkComponent: ItemLinkComponent,
|
@@ -7501,9 +7526,9 @@ var CardPrice = (props) => /* @__PURE__ */ import_react62.default.createElement(
|
|
7501
7526
|
var import_react63 = __toESM(require("react"));
|
7502
7527
|
|
7503
7528
|
// elements/progress/Progress.tsx
|
7504
|
-
var
|
7529
|
+
var React64 = __toESM(require("react"));
|
7505
7530
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
7506
|
-
var Progress =
|
7531
|
+
var Progress = React64.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React64.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React64.createElement(Label, { ...props.labelProps }, props.label), /* @__PURE__ */ React64.createElement(
|
7507
7532
|
ProgressPrimitive.Root,
|
7508
7533
|
{
|
7509
7534
|
ref,
|
@@ -7513,7 +7538,7 @@ var Progress = React65.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
7513
7538
|
),
|
7514
7539
|
...props
|
7515
7540
|
},
|
7516
|
-
/* @__PURE__ */
|
7541
|
+
/* @__PURE__ */ React64.createElement(
|
7517
7542
|
ProgressPrimitive.Indicator,
|
7518
7543
|
{
|
7519
7544
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|