@sikka/hawa 0.36.2-next → 0.37.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/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 +11 -14
- package/dist/blocks/auth/index.mjs +1 -1
- package/dist/blocks/feedback/index.js +11 -14
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +295 -181
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +257 -143
- package/dist/blocks/misc/index.mjs +50 -16
- package/dist/blocks/pricing/index.js +94 -11
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-CJ57JBYA.mjs → chunk-I5YX7N76.mjs} +94 -11
- package/dist/{chunk-T33FXOHA.mjs → chunk-PO5OW6SQ.mjs} +151 -40
- package/dist/{chunk-HLYAX77R.mjs → chunk-SE5A4R76.mjs} +11 -14
- package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
- 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/elements/index.d.mts +28 -2
- package/dist/elements/index.d.ts +28 -2
- package/dist/elements/index.js +437 -284
- package/dist/elements/index.mjs +41 -4
- 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-CoPyqTu8.d.mts +63 -0
- package/dist/index-CoPyqTu8.d.ts +63 -0
- package/dist/index.css +20 -3
- package/dist/index.d.mts +52 -2
- package/dist/index.d.ts +52 -2
- package/dist/index.js +953 -707
- package/dist/index.mjs +481 -241
- package/dist/layout/index.js +1 -1
- package/dist/layout/index.mjs +1 -1
- 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/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
@@ -3136,6 +3136,10 @@ var Select = ({
|
|
3136
3136
|
children
|
3137
3137
|
);
|
3138
3138
|
};
|
3139
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
3140
|
+
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";
|
3141
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
3142
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
3139
3143
|
return /* @__PURE__ */ import_react9.default.createElement(
|
3140
3144
|
"div",
|
3141
3145
|
{
|
@@ -3157,26 +3161,22 @@ var Select = ({
|
|
3157
3161
|
props.controlClassNames
|
3158
3162
|
),
|
3159
3163
|
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",
|
3164
|
+
selectContainerStyles,
|
3165
|
+
props.phoneCode && phoneCodeStyles,
|
3163
3166
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
3164
3167
|
props.isMulti && "hawa-ps-0 "
|
3165
3168
|
),
|
3166
|
-
placeholder: () =>
|
3169
|
+
placeholder: () => selectPlaceholderStyles,
|
3167
3170
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
3168
3171
|
singleValue: () => "hawa-text-foreground",
|
3169
3172
|
indicatorsContainer: () => cn(
|
3170
|
-
|
3173
|
+
selectIndicatorContainerStyles,
|
3171
3174
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
3172
3175
|
)
|
3173
3176
|
},
|
3174
3177
|
unstyled: true,
|
3175
|
-
|
3176
|
-
|
3177
|
-
Menu,
|
3178
|
-
IndicatorsContainer: () => null
|
3179
|
-
} : {
|
3178
|
+
autoFocus: false,
|
3179
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
3180
3180
|
Option,
|
3181
3181
|
Menu,
|
3182
3182
|
// Control: (e) => (
|
@@ -3198,10 +3198,7 @@ var Select = ({
|
|
3198
3198
|
MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
|
3199
3199
|
"div",
|
3200
3200
|
{
|
3201
|
-
className:
|
3202
|
-
// e.className,
|
3203
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
3204
|
-
),
|
3201
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
3205
3202
|
...e
|
3206
3203
|
}
|
3207
3204
|
)
|
@@ -1526,6 +1526,10 @@ var Select = ({
|
|
1526
1526
|
children
|
1527
1527
|
);
|
1528
1528
|
};
|
1529
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
1530
|
+
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";
|
1531
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
1532
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
1529
1533
|
return /* @__PURE__ */ import_react12.default.createElement(
|
1530
1534
|
"div",
|
1531
1535
|
{
|
@@ -1547,26 +1551,22 @@ var Select = ({
|
|
1547
1551
|
props.controlClassNames
|
1548
1552
|
),
|
1549
1553
|
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",
|
1554
|
+
selectContainerStyles,
|
1555
|
+
props.phoneCode && phoneCodeStyles,
|
1553
1556
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
1554
1557
|
props.isMulti && "hawa-ps-0 "
|
1555
1558
|
),
|
1556
|
-
placeholder: () =>
|
1559
|
+
placeholder: () => selectPlaceholderStyles,
|
1557
1560
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
1558
1561
|
singleValue: () => "hawa-text-foreground",
|
1559
1562
|
indicatorsContainer: () => cn(
|
1560
|
-
|
1563
|
+
selectIndicatorContainerStyles,
|
1561
1564
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
1562
1565
|
)
|
1563
1566
|
},
|
1564
1567
|
unstyled: true,
|
1565
|
-
|
1566
|
-
|
1567
|
-
Menu,
|
1568
|
-
IndicatorsContainer: () => null
|
1569
|
-
} : {
|
1568
|
+
autoFocus: false,
|
1569
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
1570
1570
|
Option,
|
1571
1571
|
Menu,
|
1572
1572
|
// Control: (e) => (
|
@@ -1588,10 +1588,7 @@ var Select = ({
|
|
1588
1588
|
MultiValueContainer: (e) => /* @__PURE__ */ import_react12.default.createElement(
|
1589
1589
|
"div",
|
1590
1590
|
{
|
1591
|
-
className:
|
1592
|
-
// e.className,
|
1593
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
1594
|
-
),
|
1591
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
1595
1592
|
...e
|
1596
1593
|
}
|
1597
1594
|
)
|