@sikka/hawa 0.43.6-next → 0.44.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/blocks/feedback/index.js +16 -8
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +24 -16
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/pricing/index.js +16 -8
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-VVUNGE7V.mjs → chunk-MEXJAHQV.mjs} +25 -17
- package/dist/{chunk-A6PONMZ6.mjs → chunk-OE6XZ6LW.mjs} +16 -8
- package/dist/datePicker/index.js +10 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +10 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.js +25 -17
- package/dist/elements/index.mjs +1 -1
- package/dist/index.js +27 -19
- package/dist/index.mjs +27 -19
- package/dist/interfaceSettings/index.js +16 -8
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +16 -8
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/radio/index.js +16 -8
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +16 -8
- package/dist/radio/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -596,6 +596,7 @@ Card.displayName = "Card";
|
|
596
596
|
|
597
597
|
// elements/radio/Radio.tsx
|
598
598
|
var import_react4 = __toESM(require("react"));
|
599
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
599
600
|
|
600
601
|
// elements/popover/Popover.tsx
|
601
602
|
var React7 = __toESM(require("react"));
|
@@ -739,9 +740,10 @@ var Radio = (0, import_react4.forwardRef)(
|
|
739
740
|
)
|
740
741
|
},
|
741
742
|
props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label),
|
742
|
-
/* @__PURE__ */ import_react4.default.createElement(
|
743
|
-
|
743
|
+
/* @__PURE__ */ import_react4.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react4.default.createElement(
|
744
|
+
import_react_tabs.TabsList,
|
744
745
|
{
|
746
|
+
role: "tablist",
|
745
747
|
ref: parentRef,
|
746
748
|
className: cn(
|
747
749
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -767,9 +769,12 @@ var Radio = (0, import_react4.forwardRef)(
|
|
767
769
|
asChild: true
|
768
770
|
},
|
769
771
|
/* @__PURE__ */ import_react4.default.createElement(
|
770
|
-
|
772
|
+
import_react_tabs.TabsTrigger,
|
771
773
|
{
|
772
|
-
"aria-current": "page",
|
774
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
775
|
+
value: opt.value,
|
776
|
+
role: "tab",
|
777
|
+
tabIndex: 0,
|
773
778
|
onClick: () => {
|
774
779
|
if (props.disabled || opt.disabled) return;
|
775
780
|
handleChange(opt);
|
@@ -785,10 +790,12 @@ var Radio = (0, import_react4.forwardRef)(
|
|
785
790
|
),
|
786
791
|
/* @__PURE__ */ import_react4.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
787
792
|
) : /* @__PURE__ */ import_react4.default.createElement(
|
788
|
-
|
793
|
+
import_react_tabs.TabsTrigger,
|
789
794
|
{
|
790
795
|
key: o,
|
791
|
-
|
796
|
+
role: "tab",
|
797
|
+
tabIndex: 0,
|
798
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
792
799
|
onClick: () => {
|
793
800
|
if (props.disabled || opt.disabled) return;
|
794
801
|
handleChange(opt);
|
@@ -796,13 +803,14 @@ var Radio = (0, import_react4.forwardRef)(
|
|
796
803
|
className: cn(
|
797
804
|
...radio_option_tabs_styling,
|
798
805
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
799
|
-
)
|
806
|
+
),
|
807
|
+
value: opt.value
|
800
808
|
},
|
801
809
|
opt.icon && opt.icon,
|
802
810
|
opt.label
|
803
811
|
);
|
804
812
|
})
|
805
|
-
),
|
813
|
+
)),
|
806
814
|
!forceHideHelperText && /* @__PURE__ */ import_react4.default.createElement(HelperText, { helperText: props.helperText })
|
807
815
|
);
|
808
816
|
case "bordered":
|
package/dist/blocks/index.js
CHANGED
@@ -5066,6 +5066,7 @@ var z6 = __toESM(require("zod"));
|
|
5066
5066
|
|
5067
5067
|
// elements/radio/Radio.tsx
|
5068
5068
|
var import_react25 = __toESM(require("react"));
|
5069
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
5069
5070
|
|
5070
5071
|
// elements/popover/Popover.tsx
|
5071
5072
|
var React27 = __toESM(require("react"));
|
@@ -5209,9 +5210,10 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5209
5210
|
)
|
5210
5211
|
},
|
5211
5212
|
props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label),
|
5212
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5213
|
-
|
5213
|
+
/* @__PURE__ */ import_react25.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react25.default.createElement(
|
5214
|
+
import_react_tabs.TabsList,
|
5214
5215
|
{
|
5216
|
+
role: "tablist",
|
5215
5217
|
ref: parentRef,
|
5216
5218
|
className: cn(
|
5217
5219
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -5237,9 +5239,12 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5237
5239
|
asChild: true
|
5238
5240
|
},
|
5239
5241
|
/* @__PURE__ */ import_react25.default.createElement(
|
5240
|
-
|
5242
|
+
import_react_tabs.TabsTrigger,
|
5241
5243
|
{
|
5242
|
-
"aria-current": "page",
|
5244
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
5245
|
+
value: opt.value,
|
5246
|
+
role: "tab",
|
5247
|
+
tabIndex: 0,
|
5243
5248
|
onClick: () => {
|
5244
5249
|
if (props.disabled || opt.disabled) return;
|
5245
5250
|
handleChange(opt);
|
@@ -5255,10 +5260,12 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5255
5260
|
),
|
5256
5261
|
/* @__PURE__ */ import_react25.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
5257
5262
|
) : /* @__PURE__ */ import_react25.default.createElement(
|
5258
|
-
|
5263
|
+
import_react_tabs.TabsTrigger,
|
5259
5264
|
{
|
5260
5265
|
key: o,
|
5261
|
-
|
5266
|
+
role: "tab",
|
5267
|
+
tabIndex: 0,
|
5268
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
5262
5269
|
onClick: () => {
|
5263
5270
|
if (props.disabled || opt.disabled) return;
|
5264
5271
|
handleChange(opt);
|
@@ -5266,13 +5273,14 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5266
5273
|
className: cn(
|
5267
5274
|
...radio_option_tabs_styling,
|
5268
5275
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
5269
|
-
)
|
5276
|
+
),
|
5277
|
+
value: opt.value
|
5270
5278
|
},
|
5271
5279
|
opt.icon && opt.icon,
|
5272
5280
|
opt.label
|
5273
5281
|
);
|
5274
5282
|
})
|
5275
|
-
),
|
5283
|
+
)),
|
5276
5284
|
!forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText })
|
5277
5285
|
);
|
5278
5286
|
case "bordered":
|
@@ -6286,7 +6294,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
6286
6294
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
6287
6295
|
});
|
6288
6296
|
var TabsContext = React44.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
6289
|
-
var
|
6297
|
+
var Tabs2 = React44.forwardRef(
|
6290
6298
|
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
6291
6299
|
TabsPrimitive.Root,
|
6292
6300
|
{
|
@@ -6301,7 +6309,7 @@ var Tabs = React44.forwardRef(
|
|
6301
6309
|
/* @__PURE__ */ React44.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
6302
6310
|
)
|
6303
6311
|
);
|
6304
|
-
var
|
6312
|
+
var TabsList2 = React44.forwardRef(({ className, classNames, ...props }, ref) => {
|
6305
6313
|
const { orientation, variant, scrollable } = React44.useContext(TabsContext);
|
6306
6314
|
const { width } = useViewportSize();
|
6307
6315
|
if (scrollable && width < 768 && orientation === "horizontal") {
|
@@ -6333,7 +6341,7 @@ var TabsList = React44.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
6333
6341
|
);
|
6334
6342
|
}
|
6335
6343
|
});
|
6336
|
-
var
|
6344
|
+
var TabsTrigger2 = React44.forwardRef(
|
6337
6345
|
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
6338
6346
|
const { orientation, variant } = React44.useContext(TabsContext);
|
6339
6347
|
if (withPopover) {
|
@@ -6389,22 +6397,22 @@ var TabsContent = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
6389
6397
|
...props
|
6390
6398
|
}
|
6391
6399
|
));
|
6392
|
-
|
6393
|
-
|
6394
|
-
|
6400
|
+
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
6401
|
+
TabsList2.displayName = TabsPrimitive.List.displayName;
|
6402
|
+
TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
|
6395
6403
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
6396
6404
|
|
6397
6405
|
// blocks/misc/LegalTexts.tsx
|
6398
6406
|
var LegalTexts = ({ tabs, ...props }) => {
|
6399
6407
|
return /* @__PURE__ */ import_react50.default.createElement(
|
6400
|
-
|
6408
|
+
Tabs2,
|
6401
6409
|
{
|
6402
6410
|
value: props.activeTab,
|
6403
6411
|
onValueChange: props.handleTabChange,
|
6404
6412
|
defaultValue: props.defaultTab || tabs[0].value,
|
6405
6413
|
dir: props.direction
|
6406
6414
|
},
|
6407
|
-
/* @__PURE__ */ import_react50.default.createElement(
|
6415
|
+
/* @__PURE__ */ import_react50.default.createElement(TabsList2, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsTrigger2, { key: index, value: tab.value }, tab.title))),
|
6408
6416
|
tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react50.default.createElement(
|
6409
6417
|
ScrollArea,
|
6410
6418
|
{
|
package/dist/blocks/index.mjs
CHANGED
@@ -1048,6 +1048,7 @@ var import_react12 = __toESM(require("react"));
|
|
1048
1048
|
|
1049
1049
|
// elements/radio/Radio.tsx
|
1050
1050
|
var import_react13 = __toESM(require("react"));
|
1051
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
1051
1052
|
|
1052
1053
|
// elements/popover/Popover.tsx
|
1053
1054
|
var React17 = __toESM(require("react"));
|
@@ -1148,9 +1149,10 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1148
1149
|
)
|
1149
1150
|
},
|
1150
1151
|
props.label && /* @__PURE__ */ import_react13.default.createElement(Label, { ...labelProps }, props.label),
|
1151
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
1152
|
-
|
1152
|
+
/* @__PURE__ */ import_react13.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react13.default.createElement(
|
1153
|
+
import_react_tabs.TabsList,
|
1153
1154
|
{
|
1155
|
+
role: "tablist",
|
1154
1156
|
ref: parentRef,
|
1155
1157
|
className: cn(
|
1156
1158
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -1176,9 +1178,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1176
1178
|
asChild: true
|
1177
1179
|
},
|
1178
1180
|
/* @__PURE__ */ import_react13.default.createElement(
|
1179
|
-
|
1181
|
+
import_react_tabs.TabsTrigger,
|
1180
1182
|
{
|
1181
|
-
"aria-current": "page",
|
1183
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1184
|
+
value: opt.value,
|
1185
|
+
role: "tab",
|
1186
|
+
tabIndex: 0,
|
1182
1187
|
onClick: () => {
|
1183
1188
|
if (props.disabled || opt.disabled) return;
|
1184
1189
|
handleChange(opt);
|
@@ -1194,10 +1199,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1194
1199
|
),
|
1195
1200
|
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
1196
1201
|
) : /* @__PURE__ */ import_react13.default.createElement(
|
1197
|
-
|
1202
|
+
import_react_tabs.TabsTrigger,
|
1198
1203
|
{
|
1199
1204
|
key: o,
|
1200
|
-
|
1205
|
+
role: "tab",
|
1206
|
+
tabIndex: 0,
|
1207
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
1201
1208
|
onClick: () => {
|
1202
1209
|
if (props.disabled || opt.disabled) return;
|
1203
1210
|
handleChange(opt);
|
@@ -1205,13 +1212,14 @@ var Radio = (0, import_react13.forwardRef)(
|
|
1205
1212
|
className: cn(
|
1206
1213
|
...radio_option_tabs_styling,
|
1207
1214
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
1208
|
-
)
|
1215
|
+
),
|
1216
|
+
value: opt.value
|
1209
1217
|
},
|
1210
1218
|
opt.icon && opt.icon,
|
1211
1219
|
opt.label
|
1212
1220
|
);
|
1213
1221
|
})
|
1214
|
-
),
|
1222
|
+
)),
|
1215
1223
|
!forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
1216
1224
|
);
|
1217
1225
|
case "bordered":
|
@@ -2615,6 +2615,7 @@ var PopoverRoot = PopoverPrimitive.Root;
|
|
2615
2615
|
|
2616
2616
|
// elements/radio/Radio.tsx
|
2617
2617
|
import React9, { useState as useState3, useRef as useRef3, useEffect as useEffect3, forwardRef as forwardRef7 } from "react";
|
2618
|
+
import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
2618
2619
|
var Radio = forwardRef7(
|
2619
2620
|
({
|
2620
2621
|
design = "default",
|
@@ -2691,9 +2692,10 @@ var Radio = forwardRef7(
|
|
2691
2692
|
)
|
2692
2693
|
},
|
2693
2694
|
props.label && /* @__PURE__ */ React9.createElement(Label, { ...labelProps }, props.label),
|
2694
|
-
/* @__PURE__ */ React9.createElement(
|
2695
|
-
|
2695
|
+
/* @__PURE__ */ React9.createElement(Tabs, null, /* @__PURE__ */ React9.createElement(
|
2696
|
+
TabsList,
|
2696
2697
|
{
|
2698
|
+
role: "tablist",
|
2697
2699
|
ref: parentRef,
|
2698
2700
|
className: cn(
|
2699
2701
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -2719,9 +2721,12 @@ var Radio = forwardRef7(
|
|
2719
2721
|
asChild: true
|
2720
2722
|
},
|
2721
2723
|
/* @__PURE__ */ React9.createElement(
|
2722
|
-
|
2724
|
+
TabsTrigger,
|
2723
2725
|
{
|
2724
|
-
"aria-current": "page",
|
2726
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
2727
|
+
value: opt.value,
|
2728
|
+
role: "tab",
|
2729
|
+
tabIndex: 0,
|
2725
2730
|
onClick: () => {
|
2726
2731
|
if (props.disabled || opt.disabled) return;
|
2727
2732
|
handleChange(opt);
|
@@ -2737,10 +2742,12 @@ var Radio = forwardRef7(
|
|
2737
2742
|
),
|
2738
2743
|
/* @__PURE__ */ React9.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
2739
2744
|
) : /* @__PURE__ */ React9.createElement(
|
2740
|
-
|
2745
|
+
TabsTrigger,
|
2741
2746
|
{
|
2742
2747
|
key: o,
|
2743
|
-
|
2748
|
+
role: "tab",
|
2749
|
+
tabIndex: 0,
|
2750
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
2744
2751
|
onClick: () => {
|
2745
2752
|
if (props.disabled || opt.disabled) return;
|
2746
2753
|
handleChange(opt);
|
@@ -2748,13 +2755,14 @@ var Radio = forwardRef7(
|
|
2748
2755
|
className: cn(
|
2749
2756
|
...radio_option_tabs_styling,
|
2750
2757
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
2751
|
-
)
|
2758
|
+
),
|
2759
|
+
value: opt.value
|
2752
2760
|
},
|
2753
2761
|
opt.icon && opt.icon,
|
2754
2762
|
opt.label
|
2755
2763
|
);
|
2756
2764
|
})
|
2757
|
-
),
|
2765
|
+
)),
|
2758
2766
|
!forceHideHelperText && /* @__PURE__ */ React9.createElement(HelperText, { helperText: props.helperText })
|
2759
2767
|
);
|
2760
2768
|
case "bordered":
|
@@ -3116,7 +3124,7 @@ var tabsTriggerVariant = tv({
|
|
3116
3124
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
3117
3125
|
});
|
3118
3126
|
var TabsContext = React12.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
3119
|
-
var
|
3127
|
+
var Tabs2 = React12.forwardRef(
|
3120
3128
|
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
3121
3129
|
TabsPrimitive.Root,
|
3122
3130
|
{
|
@@ -3131,7 +3139,7 @@ var Tabs = React12.forwardRef(
|
|
3131
3139
|
/* @__PURE__ */ React12.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
3132
3140
|
)
|
3133
3141
|
);
|
3134
|
-
var
|
3142
|
+
var TabsList2 = React12.forwardRef(({ className, classNames, ...props }, ref) => {
|
3135
3143
|
const { orientation, variant, scrollable } = React12.useContext(TabsContext);
|
3136
3144
|
const { width } = useViewportSize();
|
3137
3145
|
if (scrollable && width < 768 && orientation === "horizontal") {
|
@@ -3163,7 +3171,7 @@ var TabsList = React12.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
3163
3171
|
);
|
3164
3172
|
}
|
3165
3173
|
});
|
3166
|
-
var
|
3174
|
+
var TabsTrigger2 = React12.forwardRef(
|
3167
3175
|
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
3168
3176
|
const { orientation, variant } = React12.useContext(TabsContext);
|
3169
3177
|
if (withPopover) {
|
@@ -3219,9 +3227,9 @@ var TabsContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3219
3227
|
...props
|
3220
3228
|
}
|
3221
3229
|
));
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3230
|
+
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
3231
|
+
TabsList2.displayName = TabsPrimitive.List.displayName;
|
3232
|
+
TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
|
3225
3233
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
3226
3234
|
|
3227
3235
|
// elements/separator/Separator.tsx
|
@@ -3286,9 +3294,9 @@ export {
|
|
3286
3294
|
Textarea,
|
3287
3295
|
ScrollArea,
|
3288
3296
|
ScrollBar,
|
3289
|
-
Tabs,
|
3290
|
-
TabsList,
|
3291
|
-
TabsTrigger,
|
3297
|
+
Tabs2 as Tabs,
|
3298
|
+
TabsList2 as TabsList,
|
3299
|
+
TabsTrigger2 as TabsTrigger,
|
3292
3300
|
TabsContent,
|
3293
3301
|
Separator,
|
3294
3302
|
Progress
|
@@ -72,6 +72,7 @@ var PopoverRoot = PopoverPrimitive.Root;
|
|
72
72
|
|
73
73
|
// elements/radio/Radio.tsx
|
74
74
|
import React2, { useState, useRef, useEffect, forwardRef as forwardRef2 } from "react";
|
75
|
+
import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
75
76
|
var Radio = forwardRef2(
|
76
77
|
({
|
77
78
|
design = "default",
|
@@ -148,9 +149,10 @@ var Radio = forwardRef2(
|
|
148
149
|
)
|
149
150
|
},
|
150
151
|
props.label && /* @__PURE__ */ React2.createElement(Label, { ...labelProps }, props.label),
|
151
|
-
/* @__PURE__ */ React2.createElement(
|
152
|
-
|
152
|
+
/* @__PURE__ */ React2.createElement(Tabs, null, /* @__PURE__ */ React2.createElement(
|
153
|
+
TabsList,
|
153
154
|
{
|
155
|
+
role: "tablist",
|
154
156
|
ref: parentRef,
|
155
157
|
className: cn(
|
156
158
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -176,9 +178,12 @@ var Radio = forwardRef2(
|
|
176
178
|
asChild: true
|
177
179
|
},
|
178
180
|
/* @__PURE__ */ React2.createElement(
|
179
|
-
|
181
|
+
TabsTrigger,
|
180
182
|
{
|
181
|
-
"aria-current": "page",
|
183
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
184
|
+
value: opt.value,
|
185
|
+
role: "tab",
|
186
|
+
tabIndex: 0,
|
182
187
|
onClick: () => {
|
183
188
|
if (props.disabled || opt.disabled) return;
|
184
189
|
handleChange(opt);
|
@@ -194,10 +199,12 @@ var Radio = forwardRef2(
|
|
194
199
|
),
|
195
200
|
/* @__PURE__ */ React2.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
196
201
|
) : /* @__PURE__ */ React2.createElement(
|
197
|
-
|
202
|
+
TabsTrigger,
|
198
203
|
{
|
199
204
|
key: o,
|
200
|
-
|
205
|
+
role: "tab",
|
206
|
+
tabIndex: 0,
|
207
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
201
208
|
onClick: () => {
|
202
209
|
if (props.disabled || opt.disabled) return;
|
203
210
|
handleChange(opt);
|
@@ -205,13 +212,14 @@ var Radio = forwardRef2(
|
|
205
212
|
className: cn(
|
206
213
|
...radio_option_tabs_styling,
|
207
214
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
208
|
-
)
|
215
|
+
),
|
216
|
+
value: opt.value
|
209
217
|
},
|
210
218
|
opt.icon && opt.icon,
|
211
219
|
opt.label
|
212
220
|
);
|
213
221
|
})
|
214
|
-
),
|
222
|
+
)),
|
215
223
|
!forceHideHelperText && /* @__PURE__ */ React2.createElement(HelperText, { helperText: props.helperText })
|
216
224
|
);
|
217
225
|
case "bordered":
|
package/dist/datePicker/index.js
CHANGED
@@ -619,7 +619,16 @@ var DatePicker = ({
|
|
619
619
|
popoverContentProps,
|
620
620
|
...props
|
621
621
|
}) => {
|
622
|
-
return /* @__PURE__ */ React8.createElement(PopoverRoot, null, /* @__PURE__ */ React8.createElement(
|
622
|
+
return /* @__PURE__ */ React8.createElement(PopoverRoot, null, /* @__PURE__ */ React8.createElement(
|
623
|
+
PopoverTrigger,
|
624
|
+
{
|
625
|
+
...popoverTriggerProps,
|
626
|
+
tabIndex: -1,
|
627
|
+
autoFocus: false,
|
628
|
+
className: "focus:hawa-outline-none"
|
629
|
+
},
|
630
|
+
trigger
|
631
|
+
), /* @__PURE__ */ React8.createElement(
|
623
632
|
PopoverContent,
|
624
633
|
{
|
625
634
|
align: props.dir === "rtl" ? "end" : "start",
|