@sikka/hawa 0.30.23-next → 0.30.25-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/{DropdownMenu-sSnQc6fT.d.ts → DropdownMenu-o_-MnT5h.d.mts} +6 -6
- package/dist/{DropdownMenu-arqV1gRt.d.mts → DropdownMenu-p-Ha-y2R.d.ts} +6 -6
- package/dist/appLayout/index.d.mts +8 -1
- package/dist/appLayout/index.d.ts +8 -1
- package/dist/appLayout/index.js +31 -0
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +35 -4
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.d.mts +5 -2
- package/dist/appTopbar/index.d.ts +5 -2
- package/dist/appTopbar/index.js +31 -0
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +31 -0
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +31 -0
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.mjs +3 -3
- package/dist/breadcrumb/index.d.mts +7 -5
- package/dist/breadcrumb/index.d.ts +7 -5
- package/dist/breadcrumb/index.js +36 -12
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +36 -12
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/{chunk-CXBN42TF.mjs → chunk-7LAUVLVZ.mjs} +1 -1
- package/dist/{chunk-HOE4FCIF.mjs → chunk-DGOT2FVH.mjs} +30 -0
- package/dist/{chunk-MH5K6NEO.mjs → chunk-TKSAYWDH.mjs} +1 -1
- package/dist/combobox/index.js +44 -35
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +44 -35
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-52DloiYq.d.mts +7 -0
- package/dist/commonTypes-52DloiYq.d.ts +7 -0
- package/dist/dataTable/index.js +31 -0
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +31 -0
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/docsLayout/index.d.mts +1 -1
- package/dist/docsLayout/index.d.ts +1 -1
- package/dist/dropdownMenu/index.d.mts +9 -5
- package/dist/dropdownMenu/index.d.ts +9 -5
- package/dist/dropdownMenu/index.js +30 -0
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +30 -0
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +8 -6
- package/dist/elements/index.d.ts +8 -6
- package/dist/elements/index.js +101 -47
- package/dist/elements/index.mjs +74 -50
- package/dist/index.d.mts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +101 -47
- package/dist/index.mjs +206 -152
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +31 -0
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.d.mts +8 -1
- package/dist/splitButton/index.d.ts +8 -1
- package/dist/splitButton/index.js +31 -0
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +31 -0
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/elements/index.js
CHANGED
@@ -825,6 +825,9 @@ var DropdownMenu = ({
|
|
825
825
|
default: "hawa-px-2 hawa-py-3 ",
|
826
826
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
827
827
|
};
|
828
|
+
let [values, setValues] = React5.useState(
|
829
|
+
items.map((item) => item.currentOption)
|
830
|
+
);
|
828
831
|
return /* @__PURE__ */ React5.createElement(
|
829
832
|
DropdownMenuRoot,
|
830
833
|
{
|
@@ -852,11 +855,38 @@ var DropdownMenu = ({
|
|
852
855
|
},
|
853
856
|
header && header,
|
854
857
|
items && items.map((item, index) => {
|
858
|
+
var _a;
|
855
859
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
856
860
|
if (item.itemType === "separator") {
|
857
861
|
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index });
|
858
862
|
} else if (item.itemType === "label") {
|
859
863
|
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
864
|
+
} else if (item.itemType === "radio") {
|
865
|
+
let dd = item.currentOption;
|
866
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(
|
867
|
+
DropdownMenuSubTrigger,
|
868
|
+
{
|
869
|
+
dir: direction,
|
870
|
+
className: cn(sizeStyles2[size])
|
871
|
+
},
|
872
|
+
item.icon && item.icon,
|
873
|
+
item.label && item.label
|
874
|
+
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
875
|
+
DropdownMenuRadioGroup,
|
876
|
+
{
|
877
|
+
value: values[index],
|
878
|
+
onValueChange: (e) => {
|
879
|
+
let newValues = [...values];
|
880
|
+
newValues[index] = e;
|
881
|
+
setValues(newValues);
|
882
|
+
console.log("changing to ", e);
|
883
|
+
if (item.onOptionChange) {
|
884
|
+
item.onOptionChange(e);
|
885
|
+
}
|
886
|
+
}
|
887
|
+
},
|
888
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
889
|
+
)));
|
860
890
|
} else if (item.itemType === "custom") {
|
861
891
|
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
862
892
|
} else {
|
@@ -3704,46 +3734,55 @@ var Combobox = React27.forwardRef(
|
|
3704
3734
|
}
|
3705
3735
|
),
|
3706
3736
|
/* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
|
3707
|
-
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(
|
3708
|
-
|
3737
|
+
/* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(
|
3738
|
+
CommandGroup,
|
3709
3739
|
{
|
3710
|
-
|
3711
|
-
|
3712
|
-
|
3713
|
-
|
3714
|
-
|
3715
|
-
|
3716
|
-
|
3717
|
-
|
3740
|
+
className: cn(
|
3741
|
+
"hawa-max-h-[200px]",
|
3742
|
+
data.length > 0 && "hawa-overflow-y-scroll"
|
3743
|
+
)
|
3744
|
+
},
|
3745
|
+
data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3746
|
+
CommandItem,
|
3747
|
+
{
|
3748
|
+
key: i,
|
3749
|
+
onSelect: () => {
|
3750
|
+
const newValue = getProperty(item, valueKey);
|
3751
|
+
setValue(
|
3718
3752
|
newValue === value ? "" : newValue
|
3719
3753
|
);
|
3754
|
+
if (props.onChange) {
|
3755
|
+
props.onChange(
|
3756
|
+
newValue === value ? "" : newValue
|
3757
|
+
);
|
3758
|
+
}
|
3759
|
+
setOpen(false);
|
3720
3760
|
}
|
3721
|
-
setOpen(false);
|
3722
|
-
}
|
3723
|
-
},
|
3724
|
-
/* @__PURE__ */ React27.createElement(
|
3725
|
-
"svg",
|
3726
|
-
{
|
3727
|
-
"aria-label": "Check Icon",
|
3728
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3729
|
-
width: "24",
|
3730
|
-
height: "24",
|
3731
|
-
viewBox: "0 0 24 24",
|
3732
|
-
fill: "none",
|
3733
|
-
stroke: "currentColor",
|
3734
|
-
strokeWidth: "2",
|
3735
|
-
strokeLinecap: "round",
|
3736
|
-
strokeLinejoin: "round",
|
3737
|
-
className: cn(
|
3738
|
-
"hawa-icon",
|
3739
|
-
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
3740
|
-
),
|
3741
|
-
style: { marginInlineEnd: "0.5rem" }
|
3742
3761
|
},
|
3743
|
-
/* @__PURE__ */ React27.createElement(
|
3744
|
-
|
3745
|
-
|
3746
|
-
|
3762
|
+
/* @__PURE__ */ React27.createElement(
|
3763
|
+
"svg",
|
3764
|
+
{
|
3765
|
+
"aria-label": "Check Icon",
|
3766
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3767
|
+
width: "24",
|
3768
|
+
height: "24",
|
3769
|
+
viewBox: "0 0 24 24",
|
3770
|
+
fill: "none",
|
3771
|
+
stroke: "currentColor",
|
3772
|
+
strokeWidth: "2",
|
3773
|
+
strokeLinecap: "round",
|
3774
|
+
strokeLinejoin: "round",
|
3775
|
+
className: cn(
|
3776
|
+
"hawa-icon",
|
3777
|
+
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
3778
|
+
),
|
3779
|
+
style: { marginInlineEnd: "0.5rem" }
|
3780
|
+
},
|
3781
|
+
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3782
|
+
),
|
3783
|
+
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3784
|
+
))
|
3785
|
+
))
|
3747
3786
|
)
|
3748
3787
|
))
|
3749
3788
|
);
|
@@ -4590,24 +4629,39 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
4590
4629
|
var import_react15 = __toESM(require("react"));
|
4591
4630
|
var Breadcrumb = ({
|
4592
4631
|
breadcrumbLinks,
|
4593
|
-
separator = ">"
|
4632
|
+
separator = ">",
|
4633
|
+
size = "normal"
|
4594
4634
|
}) => {
|
4595
|
-
|
4635
|
+
const textStyles = {
|
4636
|
+
normal: "",
|
4637
|
+
small: "hawa-text-sm",
|
4638
|
+
xs: "hawa-text-xs"
|
4639
|
+
};
|
4640
|
+
return /* @__PURE__ */ import_react15.default.createElement(
|
4596
4641
|
"div",
|
4597
4642
|
{
|
4598
|
-
|
4599
|
-
|
4643
|
+
className: cn(
|
4644
|
+
"hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm",
|
4645
|
+
textStyles[size]
|
4646
|
+
)
|
4600
4647
|
},
|
4601
|
-
/* @__PURE__ */ import_react15.default.createElement(
|
4602
|
-
"
|
4648
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react15.default.createElement(
|
4649
|
+
"div",
|
4603
4650
|
{
|
4604
|
-
|
4605
|
-
className:
|
4651
|
+
key: index,
|
4652
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4606
4653
|
},
|
4607
|
-
|
4608
|
-
|
4609
|
-
|
4610
|
-
|
4654
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
4655
|
+
"a",
|
4656
|
+
{
|
4657
|
+
href: singleBreadcrumbLink.href,
|
4658
|
+
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
4659
|
+
},
|
4660
|
+
singleBreadcrumbLink.label
|
4661
|
+
),
|
4662
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react15.default.createElement("div", null, separator) : /* @__PURE__ */ import_react15.default.createElement("div", null, separator) : null
|
4663
|
+
))
|
4664
|
+
);
|
4611
4665
|
};
|
4612
4666
|
|
4613
4667
|
// elements/appStores/AppStores.tsx
|
package/dist/elements/index.mjs
CHANGED
@@ -28,7 +28,7 @@ import {
|
|
28
28
|
TabsTrigger,
|
29
29
|
Textarea,
|
30
30
|
UncheckMark
|
31
|
-
} from "../chunk-
|
31
|
+
} from "../chunk-7LAUVLVZ.mjs";
|
32
32
|
import {
|
33
33
|
Sheet,
|
34
34
|
SheetClose,
|
@@ -40,7 +40,7 @@ import {
|
|
40
40
|
SheetPortal,
|
41
41
|
SheetTitle,
|
42
42
|
SheetTrigger
|
43
|
-
} from "../chunk-
|
43
|
+
} from "../chunk-TKSAYWDH.mjs";
|
44
44
|
import {
|
45
45
|
Button,
|
46
46
|
Card,
|
@@ -74,7 +74,7 @@ import {
|
|
74
74
|
buttonVariants,
|
75
75
|
calculateLuminance,
|
76
76
|
cn
|
77
|
-
} from "../chunk-
|
77
|
+
} from "../chunk-DGOT2FVH.mjs";
|
78
78
|
import {
|
79
79
|
__require
|
80
80
|
} from "../chunk-4OOSUQZG.mjs";
|
@@ -1577,46 +1577,55 @@ var Combobox = React13.forwardRef(
|
|
1577
1577
|
}
|
1578
1578
|
),
|
1579
1579
|
/* @__PURE__ */ React13.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."),
|
1580
|
-
/* @__PURE__ */ React13.createElement(CommandList, null, /* @__PURE__ */ React13.createElement(
|
1581
|
-
|
1580
|
+
/* @__PURE__ */ React13.createElement(CommandList, null, /* @__PURE__ */ React13.createElement(
|
1581
|
+
CommandGroup,
|
1582
1582
|
{
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1583
|
+
className: cn(
|
1584
|
+
"hawa-max-h-[200px]",
|
1585
|
+
data.length > 0 && "hawa-overflow-y-scroll"
|
1586
|
+
)
|
1587
|
+
},
|
1588
|
+
data.map((item, i) => /* @__PURE__ */ React13.createElement(
|
1589
|
+
CommandItem,
|
1590
|
+
{
|
1591
|
+
key: i,
|
1592
|
+
onSelect: () => {
|
1593
|
+
const newValue = getProperty(item, valueKey);
|
1594
|
+
setValue(
|
1591
1595
|
newValue === value ? "" : newValue
|
1592
1596
|
);
|
1597
|
+
if (props.onChange) {
|
1598
|
+
props.onChange(
|
1599
|
+
newValue === value ? "" : newValue
|
1600
|
+
);
|
1601
|
+
}
|
1602
|
+
setOpen(false);
|
1593
1603
|
}
|
1594
|
-
setOpen(false);
|
1595
|
-
}
|
1596
|
-
},
|
1597
|
-
/* @__PURE__ */ React13.createElement(
|
1598
|
-
"svg",
|
1599
|
-
{
|
1600
|
-
"aria-label": "Check Icon",
|
1601
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1602
|
-
width: "24",
|
1603
|
-
height: "24",
|
1604
|
-
viewBox: "0 0 24 24",
|
1605
|
-
fill: "none",
|
1606
|
-
stroke: "currentColor",
|
1607
|
-
strokeWidth: "2",
|
1608
|
-
strokeLinecap: "round",
|
1609
|
-
strokeLinejoin: "round",
|
1610
|
-
className: cn(
|
1611
|
-
"hawa-icon",
|
1612
|
-
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
1613
|
-
),
|
1614
|
-
style: { marginInlineEnd: "0.5rem" }
|
1615
1604
|
},
|
1616
|
-
/* @__PURE__ */ React13.createElement(
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1605
|
+
/* @__PURE__ */ React13.createElement(
|
1606
|
+
"svg",
|
1607
|
+
{
|
1608
|
+
"aria-label": "Check Icon",
|
1609
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1610
|
+
width: "24",
|
1611
|
+
height: "24",
|
1612
|
+
viewBox: "0 0 24 24",
|
1613
|
+
fill: "none",
|
1614
|
+
stroke: "currentColor",
|
1615
|
+
strokeWidth: "2",
|
1616
|
+
strokeLinecap: "round",
|
1617
|
+
strokeLinejoin: "round",
|
1618
|
+
className: cn(
|
1619
|
+
"hawa-icon",
|
1620
|
+
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
1621
|
+
),
|
1622
|
+
style: { marginInlineEnd: "0.5rem" }
|
1623
|
+
},
|
1624
|
+
/* @__PURE__ */ React13.createElement("polyline", { points: "20 6 9 17 4 12" })
|
1625
|
+
),
|
1626
|
+
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
1627
|
+
))
|
1628
|
+
))
|
1620
1629
|
)
|
1621
1630
|
))
|
1622
1631
|
);
|
@@ -1960,24 +1969,39 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1960
1969
|
import React17 from "react";
|
1961
1970
|
var Breadcrumb = ({
|
1962
1971
|
breadcrumbLinks,
|
1963
|
-
separator = ">"
|
1972
|
+
separator = ">",
|
1973
|
+
size = "normal"
|
1964
1974
|
}) => {
|
1965
|
-
|
1975
|
+
const textStyles = {
|
1976
|
+
normal: "",
|
1977
|
+
small: "hawa-text-sm",
|
1978
|
+
xs: "hawa-text-xs"
|
1979
|
+
};
|
1980
|
+
return /* @__PURE__ */ React17.createElement(
|
1966
1981
|
"div",
|
1967
1982
|
{
|
1968
|
-
|
1969
|
-
|
1983
|
+
className: cn(
|
1984
|
+
"hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm",
|
1985
|
+
textStyles[size]
|
1986
|
+
)
|
1970
1987
|
},
|
1971
|
-
/* @__PURE__ */ React17.createElement(
|
1972
|
-
"
|
1988
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React17.createElement(
|
1989
|
+
"div",
|
1973
1990
|
{
|
1974
|
-
|
1975
|
-
className:
|
1991
|
+
key: index,
|
1992
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
1976
1993
|
},
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1994
|
+
/* @__PURE__ */ React17.createElement(
|
1995
|
+
"a",
|
1996
|
+
{
|
1997
|
+
href: singleBreadcrumbLink.href,
|
1998
|
+
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
1999
|
+
},
|
2000
|
+
singleBreadcrumbLink.label
|
2001
|
+
),
|
2002
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React17.createElement("div", null, separator) : /* @__PURE__ */ React17.createElement("div", null, separator) : null
|
2003
|
+
))
|
2004
|
+
);
|
1981
2005
|
};
|
1982
2006
|
|
1983
2007
|
// elements/appStores/AppStores.tsx
|
package/dist/index.d.mts
CHANGED
@@ -149,10 +149,13 @@ type MenuItemType = {
|
|
149
149
|
slug?: string;
|
150
150
|
end?: any;
|
151
151
|
presist?: boolean;
|
152
|
-
itemType?: "separator" | "label" | "custom";
|
152
|
+
itemType?: "separator" | "label" | "custom" | "radio";
|
153
153
|
action?: () => void;
|
154
154
|
highlighted?: boolean;
|
155
155
|
subitems?: SubItem$1[];
|
156
|
+
options?: RadioOptionType[];
|
157
|
+
currentOption?: string;
|
158
|
+
onOptionChange?: (value: string) => void;
|
156
159
|
disabled?: boolean;
|
157
160
|
onMiddleClick?: (e: any) => void;
|
158
161
|
onClick?: any;
|
@@ -180,10 +183,7 @@ interface DropdownMenuRadioProps {
|
|
180
183
|
trigger?: React$1.ReactNode;
|
181
184
|
side?: ExtendedDropdownMenuContentProps["side"];
|
182
185
|
align?: ExtendedDropdownMenuContentProps["align"];
|
183
|
-
options:
|
184
|
-
label?: any;
|
185
|
-
value: string;
|
186
|
-
}[];
|
186
|
+
options: RadioOptionType[];
|
187
187
|
value: string;
|
188
188
|
onValueChange: any;
|
189
189
|
label?: string;
|
@@ -817,14 +817,16 @@ declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive
|
|
817
817
|
labelProps?: LabelProps | undefined;
|
818
818
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
819
819
|
|
820
|
+
type BreadcrumbItemProps = {
|
821
|
+
label: string;
|
822
|
+
href: string;
|
823
|
+
};
|
820
824
|
interface BCTypes {
|
821
825
|
/** The array of crumbs, each one with a label and a href link */
|
822
|
-
breadcrumbLinks:
|
823
|
-
label: string;
|
824
|
-
href: string;
|
825
|
-
}[];
|
826
|
+
breadcrumbLinks: BreadcrumbItemProps[];
|
826
827
|
/** The separator between each crumb, can be character or React Node. The default is ">" */
|
827
828
|
separator?: string | ReactNode;
|
829
|
+
size?: "normal" | "small" | "xs";
|
828
830
|
}
|
829
831
|
declare const Breadcrumb: FC<BCTypes>;
|
830
832
|
|
@@ -2102,4 +2104,4 @@ declare function useTabs(initialTab?: string): {
|
|
2102
2104
|
handleTabChange: (index: any) => void;
|
2103
2105
|
};
|
2104
2106
|
|
2105
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
2107
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
@@ -149,10 +149,13 @@ type MenuItemType = {
|
|
149
149
|
slug?: string;
|
150
150
|
end?: any;
|
151
151
|
presist?: boolean;
|
152
|
-
itemType?: "separator" | "label" | "custom";
|
152
|
+
itemType?: "separator" | "label" | "custom" | "radio";
|
153
153
|
action?: () => void;
|
154
154
|
highlighted?: boolean;
|
155
155
|
subitems?: SubItem$1[];
|
156
|
+
options?: RadioOptionType[];
|
157
|
+
currentOption?: string;
|
158
|
+
onOptionChange?: (value: string) => void;
|
156
159
|
disabled?: boolean;
|
157
160
|
onMiddleClick?: (e: any) => void;
|
158
161
|
onClick?: any;
|
@@ -180,10 +183,7 @@ interface DropdownMenuRadioProps {
|
|
180
183
|
trigger?: React$1.ReactNode;
|
181
184
|
side?: ExtendedDropdownMenuContentProps["side"];
|
182
185
|
align?: ExtendedDropdownMenuContentProps["align"];
|
183
|
-
options:
|
184
|
-
label?: any;
|
185
|
-
value: string;
|
186
|
-
}[];
|
186
|
+
options: RadioOptionType[];
|
187
187
|
value: string;
|
188
188
|
onValueChange: any;
|
189
189
|
label?: string;
|
@@ -817,14 +817,16 @@ declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive
|
|
817
817
|
labelProps?: LabelProps | undefined;
|
818
818
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
819
819
|
|
820
|
+
type BreadcrumbItemProps = {
|
821
|
+
label: string;
|
822
|
+
href: string;
|
823
|
+
};
|
820
824
|
interface BCTypes {
|
821
825
|
/** The array of crumbs, each one with a label and a href link */
|
822
|
-
breadcrumbLinks:
|
823
|
-
label: string;
|
824
|
-
href: string;
|
825
|
-
}[];
|
826
|
+
breadcrumbLinks: BreadcrumbItemProps[];
|
826
827
|
/** The separator between each crumb, can be character or React Node. The default is ">" */
|
827
828
|
separator?: string | ReactNode;
|
829
|
+
size?: "normal" | "small" | "xs";
|
828
830
|
}
|
829
831
|
declare const Breadcrumb: FC<BCTypes>;
|
830
832
|
|
@@ -2102,4 +2104,4 @@ declare function useTabs(initialTab?: string): {
|
|
2102
2104
|
handleTabChange: (index: any) => void;
|
2103
2105
|
};
|
2104
2106
|
|
2105
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
2107
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|