@sikka/hawa 0.36.2-next → 0.37.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/appLayout/index.js +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +24 -25
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +24 -25
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +308 -192
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +270 -154
- package/dist/blocks/misc/index.mjs +53 -19
- package/dist/blocks/pricing/index.js +107 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/card/index.d.mts +3 -1
- package/dist/card/index.d.ts +3 -1
- package/dist/card/index.js +13 -11
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +13 -11
- package/dist/card/index.mjs.map +1 -1
- package/dist/{chunk-WABHQMUI.mjs → chunk-BPHQFAWM.mjs} +1 -1
- package/dist/{chunk-MVKP55SZ.mjs → chunk-BTDR3VAG.mjs} +1 -1
- package/dist/{chunk-7L2JUNG2.mjs → chunk-DS3AACQJ.mjs} +1 -1
- package/dist/{chunk-BXBSZD5X.mjs → chunk-MDHDHEPZ.mjs} +1 -1
- package/dist/{chunk-6QIOEUE2.mjs → chunk-ODOCZAWC.mjs} +1 -1
- package/dist/{chunk-YP2CCKZG.mjs → chunk-PXGL7ZXQ.mjs} +13 -11
- package/dist/{chunk-HLYAX77R.mjs → chunk-QXH7ZDMN.mjs} +12 -15
- package/dist/{chunk-T33FXOHA.mjs → chunk-QYWOI3DO.mjs} +152 -41
- package/dist/{chunk-NNPNQK6F.mjs → chunk-RNFJAEEU.mjs} +13 -11
- package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
- package/dist/{chunk-CJ57JBYA.mjs → chunk-ZTUWU652.mjs} +95 -12
- package/dist/combobox/index.d.mts +1 -4
- package/dist/combobox/index.d.ts +1 -4
- package/dist/combobox/index.js +2 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +2 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +4 -36
- package/dist/command/index.d.ts +4 -36
- package/dist/command/index.js +43 -5
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +39 -3
- package/dist/command/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +13 -11
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +13 -11
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +31 -3
- package/dist/elements/index.d.ts +31 -3
- package/dist/elements/index.js +450 -295
- package/dist/elements/index.mjs +43 -6
- package/dist/hooks/index.d.mts +25 -1
- package/dist/hooks/index.d.ts +25 -1
- package/dist/hooks/index.js +96 -0
- package/dist/hooks/index.mjs +9 -1
- package/dist/index-e_Ob_SnB.d.mts +63 -0
- package/dist/index-e_Ob_SnB.d.ts +63 -0
- package/dist/index.css +20 -3
- package/dist/index.d.mts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +966 -718
- package/dist/index.mjs +494 -252
- package/dist/layout/index.js +14 -12
- package/dist/layout/index.mjs +3 -3
- package/dist/phoneInput/index.js +11 -14
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +11 -14
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +94 -11
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +94 -11
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.js +11 -14
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +11 -14
- package/dist/select/index.mjs.map +1 -1
- package/dist/stats/index.js +13 -11
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +13 -11
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +189 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +184 -27
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1108,17 +1108,19 @@ var Card = React9.forwardRef(
|
|
1108
1108
|
);
|
1109
1109
|
}
|
1110
1110
|
);
|
1111
|
-
var CardHeader = React9.forwardRef(
|
1112
|
-
"div",
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1111
|
+
var CardHeader = React9.forwardRef(
|
1112
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React9.createElement(
|
1113
|
+
"div",
|
1114
|
+
{
|
1115
|
+
ref,
|
1116
|
+
className: cn(
|
1117
|
+
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
1118
|
+
className
|
1119
|
+
),
|
1120
|
+
...props
|
1121
|
+
}
|
1122
|
+
), props.actions && /* @__PURE__ */ React9.createElement("div", { className: "hawa-p-6" }, props.actions))
|
1123
|
+
);
|
1122
1124
|
var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
1123
1125
|
"h3",
|
1124
1126
|
{
|
@@ -3136,6 +3138,10 @@ var Select = ({
|
|
3136
3138
|
children
|
3137
3139
|
);
|
3138
3140
|
};
|
3141
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
3142
|
+
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";
|
3143
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
3144
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
3139
3145
|
return /* @__PURE__ */ import_react9.default.createElement(
|
3140
3146
|
"div",
|
3141
3147
|
{
|
@@ -3157,26 +3163,22 @@ var Select = ({
|
|
3157
3163
|
props.controlClassNames
|
3158
3164
|
),
|
3159
3165
|
container: () => cn(
|
3160
|
-
|
3161
|
-
props.phoneCode &&
|
3162
|
-
"hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
|
3166
|
+
selectContainerStyles,
|
3167
|
+
props.phoneCode && phoneCodeStyles,
|
3163
3168
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
3164
3169
|
props.isMulti && "hawa-ps-0 "
|
3165
3170
|
),
|
3166
|
-
placeholder: () =>
|
3171
|
+
placeholder: () => selectPlaceholderStyles,
|
3167
3172
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
3168
3173
|
singleValue: () => "hawa-text-foreground",
|
3169
3174
|
indicatorsContainer: () => cn(
|
3170
|
-
|
3175
|
+
selectIndicatorContainerStyles,
|
3171
3176
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
3172
3177
|
)
|
3173
3178
|
},
|
3174
3179
|
unstyled: true,
|
3175
|
-
|
3176
|
-
|
3177
|
-
Menu,
|
3178
|
-
IndicatorsContainer: () => null
|
3179
|
-
} : {
|
3180
|
+
autoFocus: false,
|
3181
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
3180
3182
|
Option,
|
3181
3183
|
Menu,
|
3182
3184
|
// Control: (e) => (
|
@@ -3198,10 +3200,7 @@ var Select = ({
|
|
3198
3200
|
MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
|
3199
3201
|
"div",
|
3200
3202
|
{
|
3201
|
-
className:
|
3202
|
-
// e.className,
|
3203
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
3204
|
-
),
|
3203
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
3205
3204
|
...e
|
3206
3205
|
}
|
3207
3206
|
)
|
@@ -1,17 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-MDHDHEPZ.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-QXH7ZDMN.mjs";
|
11
11
|
import {
|
12
12
|
EyeIcon,
|
13
13
|
HiddenEyeIcon
|
14
|
-
} from "../../chunk-
|
14
|
+
} from "../../chunk-DS3AACQJ.mjs";
|
15
15
|
import {
|
16
16
|
Button,
|
17
17
|
Card,
|
@@ -23,7 +23,7 @@ import {
|
|
23
23
|
Label,
|
24
24
|
Loading,
|
25
25
|
cn
|
26
|
-
} from "../../chunk-
|
26
|
+
} from "../../chunk-PXGL7ZXQ.mjs";
|
27
27
|
|
28
28
|
// blocks/auth/AuthButtons.tsx
|
29
29
|
import React2 from "react";
|
@@ -506,17 +506,19 @@ var Card = React6.forwardRef(
|
|
506
506
|
);
|
507
507
|
}
|
508
508
|
);
|
509
|
-
var CardHeader = React6.forwardRef(
|
510
|
-
"div",
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
509
|
+
var CardHeader = React6.forwardRef(
|
510
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React6.createElement(
|
511
|
+
"div",
|
512
|
+
{
|
513
|
+
ref,
|
514
|
+
className: cn(
|
515
|
+
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
516
|
+
className
|
517
|
+
),
|
518
|
+
...props
|
519
|
+
}
|
520
|
+
), props.actions && /* @__PURE__ */ React6.createElement("div", { className: "hawa-p-6" }, props.actions))
|
521
|
+
);
|
520
522
|
var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
521
523
|
"h3",
|
522
524
|
{
|
@@ -1526,6 +1528,10 @@ var Select = ({
|
|
1526
1528
|
children
|
1527
1529
|
);
|
1528
1530
|
};
|
1531
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
1532
|
+
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";
|
1533
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
1534
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
1529
1535
|
return /* @__PURE__ */ import_react12.default.createElement(
|
1530
1536
|
"div",
|
1531
1537
|
{
|
@@ -1547,26 +1553,22 @@ var Select = ({
|
|
1547
1553
|
props.controlClassNames
|
1548
1554
|
),
|
1549
1555
|
container: () => cn(
|
1550
|
-
|
1551
|
-
props.phoneCode &&
|
1552
|
-
"hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
|
1556
|
+
selectContainerStyles,
|
1557
|
+
props.phoneCode && phoneCodeStyles,
|
1553
1558
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
1554
1559
|
props.isMulti && "hawa-ps-0 "
|
1555
1560
|
),
|
1556
|
-
placeholder: () =>
|
1561
|
+
placeholder: () => selectPlaceholderStyles,
|
1557
1562
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
1558
1563
|
singleValue: () => "hawa-text-foreground",
|
1559
1564
|
indicatorsContainer: () => cn(
|
1560
|
-
|
1565
|
+
selectIndicatorContainerStyles,
|
1561
1566
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
1562
1567
|
)
|
1563
1568
|
},
|
1564
1569
|
unstyled: true,
|
1565
|
-
|
1566
|
-
|
1567
|
-
Menu,
|
1568
|
-
IndicatorsContainer: () => null
|
1569
|
-
} : {
|
1570
|
+
autoFocus: false,
|
1571
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
1570
1572
|
Option,
|
1571
1573
|
Menu,
|
1572
1574
|
// Control: (e) => (
|
@@ -1588,10 +1590,7 @@ var Select = ({
|
|
1588
1590
|
MultiValueContainer: (e) => /* @__PURE__ */ import_react12.default.createElement(
|
1589
1591
|
"div",
|
1590
1592
|
{
|
1591
|
-
className:
|
1592
|
-
// e.className,
|
1593
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
1594
|
-
),
|
1593
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
1595
1594
|
...e
|
1596
1595
|
}
|
1597
1596
|
)
|
@@ -1,27 +1,27 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Textarea
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-BPHQFAWM.mjs";
|
5
5
|
import {
|
6
6
|
Select
|
7
|
-
} from "../../chunk-
|
7
|
+
} from "../../chunk-QXH7ZDMN.mjs";
|
8
8
|
import {
|
9
9
|
Popover,
|
10
10
|
Radio
|
11
|
-
} from "../../chunk-
|
11
|
+
} from "../../chunk-BTDR3VAG.mjs";
|
12
12
|
import {
|
13
13
|
BadEmoji,
|
14
14
|
GoodEmoji,
|
15
15
|
VeryBadEmoji,
|
16
16
|
VeryGoodEmoji
|
17
|
-
} from "../../chunk-
|
17
|
+
} from "../../chunk-DS3AACQJ.mjs";
|
18
18
|
import {
|
19
19
|
Button,
|
20
20
|
Card,
|
21
21
|
CardContent,
|
22
22
|
Label,
|
23
23
|
cn
|
24
|
-
} from "../../chunk-
|
24
|
+
} from "../../chunk-PXGL7ZXQ.mjs";
|
25
25
|
|
26
26
|
// blocks/feedback/UserReferralSource.tsx
|
27
27
|
import React, { useRef, useState } from "react";
|