@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
package/dist/elements/index.js
CHANGED
@@ -164,10 +164,10 @@ __export(elements_exports, {
|
|
164
164
|
TableHead: () => TableHead,
|
165
165
|
TableHeader: () => TableHeader,
|
166
166
|
TableRow: () => TableRow,
|
167
|
-
Tabs: () =>
|
167
|
+
Tabs: () => Tabs2,
|
168
168
|
TabsContent: () => TabsContent,
|
169
|
-
TabsList: () =>
|
170
|
-
TabsTrigger: () =>
|
169
|
+
TabsList: () => TabsList2,
|
170
|
+
TabsTrigger: () => TabsTrigger2,
|
171
171
|
Textarea: () => Textarea,
|
172
172
|
Toast: () => Toast,
|
173
173
|
ToastAction: () => ToastAction,
|
@@ -3838,6 +3838,7 @@ var BackToTop = ({ ...props }) => {
|
|
3838
3838
|
|
3839
3839
|
// elements/radio/Radio.tsx
|
3840
3840
|
var import_react13 = __toESM(require("react"));
|
3841
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
3841
3842
|
|
3842
3843
|
// elements/popover/Popover.tsx
|
3843
3844
|
var React26 = __toESM(require("react"));
|
@@ -3982,9 +3983,10 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3982
3983
|
)
|
3983
3984
|
},
|
3984
3985
|
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
3985
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3986
|
-
|
3986
|
+
/* @__PURE__ */ import_react13.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react13.default.createElement(
|
3987
|
+
import_react_tabs.TabsList,
|
3987
3988
|
{
|
3989
|
+
role: "tablist",
|
3988
3990
|
ref: parentRef,
|
3989
3991
|
className: cn(
|
3990
3992
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -4010,9 +4012,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4010
4012
|
asChild: true
|
4011
4013
|
},
|
4012
4014
|
/* @__PURE__ */ import_react13.default.createElement(
|
4013
|
-
|
4015
|
+
import_react_tabs.TabsTrigger,
|
4014
4016
|
{
|
4015
|
-
"aria-current": "page",
|
4017
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4018
|
+
value: opt.value,
|
4019
|
+
role: "tab",
|
4020
|
+
tabIndex: 0,
|
4016
4021
|
onClick: () => {
|
4017
4022
|
if (props.disabled || opt.disabled) return;
|
4018
4023
|
handleChange(opt);
|
@@ -4028,10 +4033,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4028
4033
|
),
|
4029
4034
|
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
4030
4035
|
) : /* @__PURE__ */ import_react13.default.createElement(
|
4031
|
-
|
4036
|
+
import_react_tabs.TabsTrigger,
|
4032
4037
|
{
|
4033
4038
|
key: o,
|
4034
|
-
|
4039
|
+
role: "tab",
|
4040
|
+
tabIndex: 0,
|
4041
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4035
4042
|
onClick: () => {
|
4036
4043
|
if (props.disabled || opt.disabled) return;
|
4037
4044
|
handleChange(opt);
|
@@ -4039,13 +4046,14 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4039
4046
|
className: cn(
|
4040
4047
|
...radio_option_tabs_styling,
|
4041
4048
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4042
|
-
)
|
4049
|
+
),
|
4050
|
+
value: opt.value
|
4043
4051
|
},
|
4044
4052
|
opt.icon && opt.icon,
|
4045
4053
|
opt.label
|
4046
4054
|
);
|
4047
4055
|
})
|
4048
|
-
),
|
4056
|
+
)),
|
4049
4057
|
!forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
4050
4058
|
);
|
4051
4059
|
case "bordered":
|
@@ -5122,7 +5130,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
5122
5130
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5123
5131
|
});
|
5124
5132
|
var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
5125
|
-
var
|
5133
|
+
var Tabs2 = React42.forwardRef(
|
5126
5134
|
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
5127
5135
|
TabsPrimitive.Root,
|
5128
5136
|
{
|
@@ -5137,7 +5145,7 @@ var Tabs = React42.forwardRef(
|
|
5137
5145
|
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
5138
5146
|
)
|
5139
5147
|
);
|
5140
|
-
var
|
5148
|
+
var TabsList2 = React42.forwardRef(({ className, classNames, ...props }, ref) => {
|
5141
5149
|
const { orientation, variant, scrollable } = React42.useContext(TabsContext);
|
5142
5150
|
const { width } = useViewportSize();
|
5143
5151
|
if (scrollable && width < 768 && orientation === "horizontal") {
|
@@ -5169,7 +5177,7 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
5169
5177
|
);
|
5170
5178
|
}
|
5171
5179
|
});
|
5172
|
-
var
|
5180
|
+
var TabsTrigger2 = React42.forwardRef(
|
5173
5181
|
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
5174
5182
|
const { orientation, variant } = React42.useContext(TabsContext);
|
5175
5183
|
if (withPopover) {
|
@@ -5225,9 +5233,9 @@ var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
5225
5233
|
...props
|
5226
5234
|
}
|
5227
5235
|
));
|
5228
|
-
|
5229
|
-
|
5230
|
-
|
5236
|
+
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
5237
|
+
TabsList2.displayName = TabsPrimitive.List.displayName;
|
5238
|
+
TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
|
5231
5239
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
5232
5240
|
|
5233
5241
|
// elements/select/Select.tsx
|
package/dist/elements/index.mjs
CHANGED
package/dist/index.js
CHANGED
@@ -216,10 +216,10 @@ __export(components_exports, {
|
|
216
216
|
TableHead: () => TableHead,
|
217
217
|
TableHeader: () => TableHeader,
|
218
218
|
TableRow: () => TableRow,
|
219
|
-
Tabs: () =>
|
219
|
+
Tabs: () => Tabs2,
|
220
220
|
TabsContent: () => TabsContent,
|
221
|
-
TabsList: () =>
|
222
|
-
TabsTrigger: () =>
|
221
|
+
TabsList: () => TabsList2,
|
222
|
+
TabsTrigger: () => TabsTrigger2,
|
223
223
|
Testimonial: () => Testimonial,
|
224
224
|
Textarea: () => Textarea,
|
225
225
|
Toast: () => Toast,
|
@@ -3913,6 +3913,7 @@ var BackToTop = ({ ...props }) => {
|
|
3913
3913
|
|
3914
3914
|
// elements/radio/Radio.tsx
|
3915
3915
|
var import_react13 = __toESM(require("react"));
|
3916
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
3916
3917
|
|
3917
3918
|
// elements/popover/Popover.tsx
|
3918
3919
|
var React26 = __toESM(require("react"));
|
@@ -4057,9 +4058,10 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4057
4058
|
)
|
4058
4059
|
},
|
4059
4060
|
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
4060
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
4061
|
-
|
4061
|
+
/* @__PURE__ */ import_react13.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react13.default.createElement(
|
4062
|
+
import_react_tabs.TabsList,
|
4062
4063
|
{
|
4064
|
+
role: "tablist",
|
4063
4065
|
ref: parentRef,
|
4064
4066
|
className: cn(
|
4065
4067
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -4085,9 +4087,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4085
4087
|
asChild: true
|
4086
4088
|
},
|
4087
4089
|
/* @__PURE__ */ import_react13.default.createElement(
|
4088
|
-
|
4090
|
+
import_react_tabs.TabsTrigger,
|
4089
4091
|
{
|
4090
|
-
"aria-current": "page",
|
4092
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4093
|
+
value: opt.value,
|
4094
|
+
role: "tab",
|
4095
|
+
tabIndex: 0,
|
4091
4096
|
onClick: () => {
|
4092
4097
|
if (props.disabled || opt.disabled) return;
|
4093
4098
|
handleChange(opt);
|
@@ -4103,10 +4108,12 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4103
4108
|
),
|
4104
4109
|
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
4105
4110
|
) : /* @__PURE__ */ import_react13.default.createElement(
|
4106
|
-
|
4111
|
+
import_react_tabs.TabsTrigger,
|
4107
4112
|
{
|
4108
4113
|
key: o,
|
4109
|
-
|
4114
|
+
role: "tab",
|
4115
|
+
tabIndex: 0,
|
4116
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4110
4117
|
onClick: () => {
|
4111
4118
|
if (props.disabled || opt.disabled) return;
|
4112
4119
|
handleChange(opt);
|
@@ -4114,13 +4121,14 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4114
4121
|
className: cn(
|
4115
4122
|
...radio_option_tabs_styling,
|
4116
4123
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4117
|
-
)
|
4124
|
+
),
|
4125
|
+
value: opt.value
|
4118
4126
|
},
|
4119
4127
|
opt.icon && opt.icon,
|
4120
4128
|
opt.label
|
4121
4129
|
);
|
4122
4130
|
})
|
4123
|
-
),
|
4131
|
+
)),
|
4124
4132
|
!forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
4125
4133
|
);
|
4126
4134
|
case "bordered":
|
@@ -5649,7 +5657,7 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
5649
5657
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5650
5658
|
});
|
5651
5659
|
var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
5652
|
-
var
|
5660
|
+
var Tabs2 = React42.forwardRef(
|
5653
5661
|
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
5654
5662
|
TabsPrimitive.Root,
|
5655
5663
|
{
|
@@ -5664,7 +5672,7 @@ var Tabs = React42.forwardRef(
|
|
5664
5672
|
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
5665
5673
|
)
|
5666
5674
|
);
|
5667
|
-
var
|
5675
|
+
var TabsList2 = React42.forwardRef(({ className, classNames, ...props }, ref) => {
|
5668
5676
|
const { orientation, variant, scrollable } = React42.useContext(TabsContext);
|
5669
5677
|
const { width } = useViewportSize();
|
5670
5678
|
if (scrollable && width < 768 && orientation === "horizontal") {
|
@@ -5696,7 +5704,7 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
5696
5704
|
);
|
5697
5705
|
}
|
5698
5706
|
});
|
5699
|
-
var
|
5707
|
+
var TabsTrigger2 = React42.forwardRef(
|
5700
5708
|
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
5701
5709
|
const { orientation, variant } = React42.useContext(TabsContext);
|
5702
5710
|
if (withPopover) {
|
@@ -5752,9 +5760,9 @@ var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
5752
5760
|
...props
|
5753
5761
|
}
|
5754
5762
|
));
|
5755
|
-
|
5756
|
-
|
5757
|
-
|
5763
|
+
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
5764
|
+
TabsList2.displayName = TabsPrimitive.List.displayName;
|
5765
|
+
TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
|
5758
5766
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
5759
5767
|
|
5760
5768
|
// elements/select/Select.tsx
|
@@ -12535,14 +12543,14 @@ var FeedbackForm = (props) => {
|
|
12535
12543
|
var import_react79 = __toESM(require("react"));
|
12536
12544
|
var LegalTexts = ({ tabs, ...props }) => {
|
12537
12545
|
return /* @__PURE__ */ import_react79.default.createElement(
|
12538
|
-
|
12546
|
+
Tabs2,
|
12539
12547
|
{
|
12540
12548
|
value: props.activeTab,
|
12541
12549
|
onValueChange: props.handleTabChange,
|
12542
12550
|
defaultValue: props.defaultTab || tabs[0].value,
|
12543
12551
|
dir: props.direction
|
12544
12552
|
},
|
12545
|
-
/* @__PURE__ */ import_react79.default.createElement(
|
12553
|
+
/* @__PURE__ */ import_react79.default.createElement(TabsList2, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react79.default.createElement(TabsTrigger2, { key: index, value: tab.value }, tab.title))),
|
12546
12554
|
tabs.map((tab, index) => /* @__PURE__ */ import_react79.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react79.default.createElement(
|
12547
12555
|
ScrollArea,
|
12548
12556
|
{
|
package/dist/index.mjs
CHANGED
@@ -3669,6 +3669,7 @@ var BackToTop = ({ ...props }) => {
|
|
3669
3669
|
|
3670
3670
|
// elements/radio/Radio.tsx
|
3671
3671
|
import React27, { useState as useState6, useRef as useRef4, useEffect as useEffect5, forwardRef as forwardRef16 } from "react";
|
3672
|
+
import { TabsList, TabsTrigger, Tabs } from "@radix-ui/react-tabs";
|
3672
3673
|
|
3673
3674
|
// elements/popover/Popover.tsx
|
3674
3675
|
import * as React26 from "react";
|
@@ -3813,9 +3814,10 @@ var Radio = forwardRef16(
|
|
3813
3814
|
)
|
3814
3815
|
},
|
3815
3816
|
props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label),
|
3816
|
-
/* @__PURE__ */ React27.createElement(
|
3817
|
-
|
3817
|
+
/* @__PURE__ */ React27.createElement(Tabs, null, /* @__PURE__ */ React27.createElement(
|
3818
|
+
TabsList,
|
3818
3819
|
{
|
3820
|
+
role: "tablist",
|
3819
3821
|
ref: parentRef,
|
3820
3822
|
className: cn(
|
3821
3823
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -3841,9 +3843,12 @@ var Radio = forwardRef16(
|
|
3841
3843
|
asChild: true
|
3842
3844
|
},
|
3843
3845
|
/* @__PURE__ */ React27.createElement(
|
3844
|
-
|
3846
|
+
TabsTrigger,
|
3845
3847
|
{
|
3846
|
-
"aria-current": "page",
|
3848
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3849
|
+
value: opt.value,
|
3850
|
+
role: "tab",
|
3851
|
+
tabIndex: 0,
|
3847
3852
|
onClick: () => {
|
3848
3853
|
if (props.disabled || opt.disabled) return;
|
3849
3854
|
handleChange(opt);
|
@@ -3859,10 +3864,12 @@ var Radio = forwardRef16(
|
|
3859
3864
|
),
|
3860
3865
|
/* @__PURE__ */ React27.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3861
3866
|
) : /* @__PURE__ */ React27.createElement(
|
3862
|
-
|
3867
|
+
TabsTrigger,
|
3863
3868
|
{
|
3864
3869
|
key: o,
|
3865
|
-
|
3870
|
+
role: "tab",
|
3871
|
+
tabIndex: 0,
|
3872
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3866
3873
|
onClick: () => {
|
3867
3874
|
if (props.disabled || opt.disabled) return;
|
3868
3875
|
handleChange(opt);
|
@@ -3870,13 +3877,14 @@ var Radio = forwardRef16(
|
|
3870
3877
|
className: cn(
|
3871
3878
|
...radio_option_tabs_styling,
|
3872
3879
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3873
|
-
)
|
3880
|
+
),
|
3881
|
+
value: opt.value
|
3874
3882
|
},
|
3875
3883
|
opt.icon && opt.icon,
|
3876
3884
|
opt.label
|
3877
3885
|
);
|
3878
3886
|
})
|
3879
|
-
),
|
3887
|
+
)),
|
3880
3888
|
!forceHideHelperText && /* @__PURE__ */ React27.createElement(HelperText, { helperText: props.helperText })
|
3881
3889
|
);
|
3882
3890
|
case "bordered":
|
@@ -5405,7 +5413,7 @@ var tabsTriggerVariant = tv({
|
|
5405
5413
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
5406
5414
|
});
|
5407
5415
|
var TabsContext = React42.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
5408
|
-
var
|
5416
|
+
var Tabs2 = React42.forwardRef(
|
5409
5417
|
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
5410
5418
|
TabsPrimitive.Root,
|
5411
5419
|
{
|
@@ -5420,7 +5428,7 @@ var Tabs = React42.forwardRef(
|
|
5420
5428
|
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
5421
5429
|
)
|
5422
5430
|
);
|
5423
|
-
var
|
5431
|
+
var TabsList2 = React42.forwardRef(({ className, classNames, ...props }, ref) => {
|
5424
5432
|
const { orientation, variant, scrollable } = React42.useContext(TabsContext);
|
5425
5433
|
const { width } = useViewportSize();
|
5426
5434
|
if (scrollable && width < 768 && orientation === "horizontal") {
|
@@ -5452,7 +5460,7 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
5452
5460
|
);
|
5453
5461
|
}
|
5454
5462
|
});
|
5455
|
-
var
|
5463
|
+
var TabsTrigger2 = React42.forwardRef(
|
5456
5464
|
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
5457
5465
|
const { orientation, variant } = React42.useContext(TabsContext);
|
5458
5466
|
if (withPopover) {
|
@@ -5508,9 +5516,9 @@ var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
5508
5516
|
...props
|
5509
5517
|
}
|
5510
5518
|
));
|
5511
|
-
|
5512
|
-
|
5513
|
-
|
5519
|
+
Tabs2.displayName = TabsPrimitive.Root.displayName;
|
5520
|
+
TabsList2.displayName = TabsPrimitive.List.displayName;
|
5521
|
+
TabsTrigger2.displayName = TabsPrimitive.Trigger.displayName;
|
5514
5522
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
5515
5523
|
|
5516
5524
|
// elements/select/Select.tsx
|
@@ -12303,14 +12311,14 @@ var FeedbackForm = (props) => {
|
|
12303
12311
|
import React93 from "react";
|
12304
12312
|
var LegalTexts = ({ tabs, ...props }) => {
|
12305
12313
|
return /* @__PURE__ */ React93.createElement(
|
12306
|
-
|
12314
|
+
Tabs2,
|
12307
12315
|
{
|
12308
12316
|
value: props.activeTab,
|
12309
12317
|
onValueChange: props.handleTabChange,
|
12310
12318
|
defaultValue: props.defaultTab || tabs[0].value,
|
12311
12319
|
dir: props.direction
|
12312
12320
|
},
|
12313
|
-
/* @__PURE__ */ React93.createElement(
|
12321
|
+
/* @__PURE__ */ React93.createElement(TabsList2, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React93.createElement(TabsTrigger2, { key: index, value: tab.value }, tab.title))),
|
12314
12322
|
tabs.map((tab, index) => /* @__PURE__ */ React93.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React93.createElement(
|
12315
12323
|
ScrollArea,
|
12316
12324
|
{
|
@@ -13566,10 +13574,10 @@ export {
|
|
13566
13574
|
TableHead,
|
13567
13575
|
TableHeader,
|
13568
13576
|
TableRow,
|
13569
|
-
Tabs,
|
13577
|
+
Tabs2 as Tabs,
|
13570
13578
|
TabsContent,
|
13571
|
-
TabsList,
|
13572
|
-
TabsTrigger,
|
13579
|
+
TabsList2 as TabsList,
|
13580
|
+
TabsTrigger2 as TabsTrigger,
|
13573
13581
|
Testimonial,
|
13574
13582
|
Textarea,
|
13575
13583
|
Toast,
|
@@ -47,6 +47,7 @@ function cn(...inputs) {
|
|
47
47
|
|
48
48
|
// elements/radio/Radio.tsx
|
49
49
|
var import_react3 = __toESM(require("react"));
|
50
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
50
51
|
|
51
52
|
// elements/helperText/HelperText.tsx
|
52
53
|
var import_react = __toESM(require("react"));
|
@@ -278,9 +279,10 @@ var Radio = (0, import_react3.forwardRef)(
|
|
278
279
|
)
|
279
280
|
},
|
280
281
|
props.label && /* @__PURE__ */ import_react3.default.createElement(Label, { ...labelProps }, props.label),
|
281
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
282
|
-
|
282
|
+
/* @__PURE__ */ import_react3.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react3.default.createElement(
|
283
|
+
import_react_tabs.TabsList,
|
283
284
|
{
|
285
|
+
role: "tablist",
|
284
286
|
ref: parentRef,
|
285
287
|
className: cn(
|
286
288
|
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
@@ -306,9 +308,12 @@ var Radio = (0, import_react3.forwardRef)(
|
|
306
308
|
asChild: true
|
307
309
|
},
|
308
310
|
/* @__PURE__ */ import_react3.default.createElement(
|
309
|
-
|
311
|
+
import_react_tabs.TabsTrigger,
|
310
312
|
{
|
311
|
-
"aria-current": "page",
|
313
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
314
|
+
value: opt.value,
|
315
|
+
role: "tab",
|
316
|
+
tabIndex: 0,
|
312
317
|
onClick: () => {
|
313
318
|
if (props.disabled || opt.disabled) return;
|
314
319
|
handleChange(opt);
|
@@ -324,10 +329,12 @@ var Radio = (0, import_react3.forwardRef)(
|
|
324
329
|
),
|
325
330
|
/* @__PURE__ */ import_react3.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
326
331
|
) : /* @__PURE__ */ import_react3.default.createElement(
|
327
|
-
|
332
|
+
import_react_tabs.TabsTrigger,
|
328
333
|
{
|
329
334
|
key: o,
|
330
|
-
|
335
|
+
role: "tab",
|
336
|
+
tabIndex: 0,
|
337
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
331
338
|
onClick: () => {
|
332
339
|
if (props.disabled || opt.disabled) return;
|
333
340
|
handleChange(opt);
|
@@ -335,13 +342,14 @@ var Radio = (0, import_react3.forwardRef)(
|
|
335
342
|
className: cn(
|
336
343
|
...radio_option_tabs_styling,
|
337
344
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
338
|
-
)
|
345
|
+
),
|
346
|
+
value: opt.value
|
339
347
|
},
|
340
348
|
opt.icon && opt.icon,
|
341
349
|
opt.label
|
342
350
|
);
|
343
351
|
})
|
344
|
-
),
|
352
|
+
)),
|
345
353
|
!forceHideHelperText && /* @__PURE__ */ import_react3.default.createElement(HelperText, { helperText: props.helperText })
|
346
354
|
);
|
347
355
|
case "bordered":
|