@hachej/boring-ui-kit 0.1.12 → 0.1.14
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/README.md +268 -31
- package/dist/index.d.ts +11 -1
- package/dist/index.js +113 -55
- package/dist/styles.css +2848 -0
- package/package.json +13 -4
package/dist/index.js
CHANGED
|
@@ -1706,29 +1706,47 @@ function Checkbox({
|
|
|
1706
1706
|
);
|
|
1707
1707
|
}
|
|
1708
1708
|
|
|
1709
|
+
// src/radio.tsx
|
|
1710
|
+
import * as React8 from "react";
|
|
1711
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1712
|
+
var Radio = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1713
|
+
"input",
|
|
1714
|
+
{
|
|
1715
|
+
ref,
|
|
1716
|
+
type: "radio",
|
|
1717
|
+
"data-slot": "radio",
|
|
1718
|
+
className: cn(
|
|
1719
|
+
"size-4 shrink-0 rounded-full border border-input accent-primary shadow-xs transition-shadow outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
1720
|
+
className
|
|
1721
|
+
),
|
|
1722
|
+
...props
|
|
1723
|
+
}
|
|
1724
|
+
));
|
|
1725
|
+
Radio.displayName = "Radio";
|
|
1726
|
+
|
|
1709
1727
|
// src/alert-dialog.tsx
|
|
1710
1728
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1711
|
-
import { jsx as
|
|
1729
|
+
import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1712
1730
|
function AlertDialog({
|
|
1713
1731
|
...props
|
|
1714
1732
|
}) {
|
|
1715
|
-
return /* @__PURE__ */
|
|
1733
|
+
return /* @__PURE__ */ jsx39(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
1716
1734
|
}
|
|
1717
1735
|
function AlertDialogTrigger({
|
|
1718
1736
|
...props
|
|
1719
1737
|
}) {
|
|
1720
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ jsx39(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
1721
1739
|
}
|
|
1722
1740
|
function AlertDialogPortal({
|
|
1723
1741
|
...props
|
|
1724
1742
|
}) {
|
|
1725
|
-
return /* @__PURE__ */
|
|
1743
|
+
return /* @__PURE__ */ jsx39(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
1726
1744
|
}
|
|
1727
1745
|
function AlertDialogOverlay({
|
|
1728
1746
|
className,
|
|
1729
1747
|
...props
|
|
1730
1748
|
}) {
|
|
1731
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ jsx39(
|
|
1732
1750
|
AlertDialogPrimitive.Overlay,
|
|
1733
1751
|
{
|
|
1734
1752
|
"data-slot": "alert-dialog-overlay",
|
|
@@ -1746,8 +1764,8 @@ function AlertDialogContent({
|
|
|
1746
1764
|
...props
|
|
1747
1765
|
}) {
|
|
1748
1766
|
return /* @__PURE__ */ jsxs13(AlertDialogPortal, { children: [
|
|
1749
|
-
/* @__PURE__ */
|
|
1750
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ jsx39(AlertDialogOverlay, {}),
|
|
1768
|
+
/* @__PURE__ */ jsx39(
|
|
1751
1769
|
AlertDialogPrimitive.Content,
|
|
1752
1770
|
{
|
|
1753
1771
|
"data-slot": "alert-dialog-content",
|
|
@@ -1765,7 +1783,7 @@ function AlertDialogHeader({
|
|
|
1765
1783
|
className,
|
|
1766
1784
|
...props
|
|
1767
1785
|
}) {
|
|
1768
|
-
return /* @__PURE__ */
|
|
1786
|
+
return /* @__PURE__ */ jsx39(
|
|
1769
1787
|
"div",
|
|
1770
1788
|
{
|
|
1771
1789
|
"data-slot": "alert-dialog-header",
|
|
@@ -1781,7 +1799,7 @@ function AlertDialogFooter({
|
|
|
1781
1799
|
className,
|
|
1782
1800
|
...props
|
|
1783
1801
|
}) {
|
|
1784
|
-
return /* @__PURE__ */
|
|
1802
|
+
return /* @__PURE__ */ jsx39(
|
|
1785
1803
|
"div",
|
|
1786
1804
|
{
|
|
1787
1805
|
"data-slot": "alert-dialog-footer",
|
|
@@ -1797,7 +1815,7 @@ function AlertDialogTitle({
|
|
|
1797
1815
|
className,
|
|
1798
1816
|
...props
|
|
1799
1817
|
}) {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1818
|
+
return /* @__PURE__ */ jsx39(
|
|
1801
1819
|
AlertDialogPrimitive.Title,
|
|
1802
1820
|
{
|
|
1803
1821
|
"data-slot": "alert-dialog-title",
|
|
@@ -1813,7 +1831,7 @@ function AlertDialogDescription({
|
|
|
1813
1831
|
className,
|
|
1814
1832
|
...props
|
|
1815
1833
|
}) {
|
|
1816
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ jsx39(
|
|
1817
1835
|
AlertDialogPrimitive.Description,
|
|
1818
1836
|
{
|
|
1819
1837
|
"data-slot": "alert-dialog-description",
|
|
@@ -1826,7 +1844,7 @@ function AlertDialogMedia({
|
|
|
1826
1844
|
className,
|
|
1827
1845
|
...props
|
|
1828
1846
|
}) {
|
|
1829
|
-
return /* @__PURE__ */
|
|
1847
|
+
return /* @__PURE__ */ jsx39(
|
|
1830
1848
|
"div",
|
|
1831
1849
|
{
|
|
1832
1850
|
"data-slot": "alert-dialog-media",
|
|
@@ -1844,7 +1862,7 @@ function AlertDialogAction({
|
|
|
1844
1862
|
size = "default",
|
|
1845
1863
|
...props
|
|
1846
1864
|
}) {
|
|
1847
|
-
return /* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ jsx39(Button, { variant, size, asChild: true, children: /* @__PURE__ */ jsx39(
|
|
1848
1866
|
AlertDialogPrimitive.Action,
|
|
1849
1867
|
{
|
|
1850
1868
|
"data-slot": "alert-dialog-action",
|
|
@@ -1859,7 +1877,7 @@ function AlertDialogCancel({
|
|
|
1859
1877
|
size = "default",
|
|
1860
1878
|
...props
|
|
1861
1879
|
}) {
|
|
1862
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ jsx39(Button, { variant, size, asChild: true, children: /* @__PURE__ */ jsx39(
|
|
1863
1881
|
AlertDialogPrimitive.Cancel,
|
|
1864
1882
|
{
|
|
1865
1883
|
"data-slot": "alert-dialog-cancel",
|
|
@@ -1871,16 +1889,16 @@ function AlertDialogCancel({
|
|
|
1871
1889
|
|
|
1872
1890
|
// src/popover.tsx
|
|
1873
1891
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1874
|
-
import { jsx as
|
|
1892
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
1875
1893
|
function Popover({
|
|
1876
1894
|
...props
|
|
1877
1895
|
}) {
|
|
1878
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
1879
1897
|
}
|
|
1880
1898
|
function PopoverTrigger({
|
|
1881
1899
|
...props
|
|
1882
1900
|
}) {
|
|
1883
|
-
return /* @__PURE__ */
|
|
1901
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
1884
1902
|
}
|
|
1885
1903
|
function PopoverContent({
|
|
1886
1904
|
className,
|
|
@@ -1888,7 +1906,7 @@ function PopoverContent({
|
|
|
1888
1906
|
sideOffset = 4,
|
|
1889
1907
|
...props
|
|
1890
1908
|
}) {
|
|
1891
|
-
return /* @__PURE__ */
|
|
1909
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx40(
|
|
1892
1910
|
PopoverPrimitive.Content,
|
|
1893
1911
|
{
|
|
1894
1912
|
"data-slot": "popover-content",
|
|
@@ -1905,10 +1923,10 @@ function PopoverContent({
|
|
|
1905
1923
|
function PopoverAnchor({
|
|
1906
1924
|
...props
|
|
1907
1925
|
}) {
|
|
1908
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
1909
1927
|
}
|
|
1910
1928
|
function PopoverHeader({ className, ...props }) {
|
|
1911
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsx40(
|
|
1912
1930
|
"div",
|
|
1913
1931
|
{
|
|
1914
1932
|
"data-slot": "popover-header",
|
|
@@ -1918,7 +1936,7 @@ function PopoverHeader({ className, ...props }) {
|
|
|
1918
1936
|
);
|
|
1919
1937
|
}
|
|
1920
1938
|
function PopoverTitle({ className, ...props }) {
|
|
1921
|
-
return /* @__PURE__ */
|
|
1939
|
+
return /* @__PURE__ */ jsx40(
|
|
1922
1940
|
"div",
|
|
1923
1941
|
{
|
|
1924
1942
|
"data-slot": "popover-title",
|
|
@@ -1931,7 +1949,7 @@ function PopoverDescription({
|
|
|
1931
1949
|
className,
|
|
1932
1950
|
...props
|
|
1933
1951
|
}) {
|
|
1934
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsx40(
|
|
1935
1953
|
"p",
|
|
1936
1954
|
{
|
|
1937
1955
|
"data-slot": "popover-description",
|
|
@@ -1943,7 +1961,7 @@ function PopoverDescription({
|
|
|
1943
1961
|
|
|
1944
1962
|
// src/scroll-area.tsx
|
|
1945
1963
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
1946
|
-
import { jsx as
|
|
1964
|
+
import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1947
1965
|
function ScrollArea({
|
|
1948
1966
|
className,
|
|
1949
1967
|
children,
|
|
@@ -1956,7 +1974,7 @@ function ScrollArea({
|
|
|
1956
1974
|
className: cn("relative", className),
|
|
1957
1975
|
...props,
|
|
1958
1976
|
children: [
|
|
1959
|
-
/* @__PURE__ */
|
|
1977
|
+
/* @__PURE__ */ jsx41(
|
|
1960
1978
|
ScrollAreaPrimitive.Viewport,
|
|
1961
1979
|
{
|
|
1962
1980
|
"data-slot": "scroll-area-viewport",
|
|
@@ -1964,8 +1982,8 @@ function ScrollArea({
|
|
|
1964
1982
|
children
|
|
1965
1983
|
}
|
|
1966
1984
|
),
|
|
1967
|
-
/* @__PURE__ */
|
|
1968
|
-
/* @__PURE__ */
|
|
1985
|
+
/* @__PURE__ */ jsx41(ScrollBar, {}),
|
|
1986
|
+
/* @__PURE__ */ jsx41(ScrollAreaPrimitive.Corner, {})
|
|
1969
1987
|
]
|
|
1970
1988
|
}
|
|
1971
1989
|
);
|
|
@@ -1975,7 +1993,7 @@ function ScrollBar({
|
|
|
1975
1993
|
orientation = "vertical",
|
|
1976
1994
|
...props
|
|
1977
1995
|
}) {
|
|
1978
|
-
return /* @__PURE__ */
|
|
1996
|
+
return /* @__PURE__ */ jsx41(
|
|
1979
1997
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1980
1998
|
{
|
|
1981
1999
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -1987,7 +2005,7 @@ function ScrollBar({
|
|
|
1987
2005
|
className
|
|
1988
2006
|
),
|
|
1989
2007
|
...props,
|
|
1990
|
-
children: /* @__PURE__ */
|
|
2008
|
+
children: /* @__PURE__ */ jsx41(
|
|
1991
2009
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
1992
2010
|
{
|
|
1993
2011
|
"data-slot": "scroll-area-thumb",
|
|
@@ -2000,30 +2018,30 @@ function ScrollBar({
|
|
|
2000
2018
|
|
|
2001
2019
|
// src/sheet.tsx
|
|
2002
2020
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2003
|
-
import { jsx as
|
|
2021
|
+
import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2004
2022
|
function Sheet({ ...props }) {
|
|
2005
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx42(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
2006
2024
|
}
|
|
2007
2025
|
function SheetTrigger({
|
|
2008
2026
|
...props
|
|
2009
2027
|
}) {
|
|
2010
|
-
return /* @__PURE__ */
|
|
2028
|
+
return /* @__PURE__ */ jsx42(SheetPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
2011
2029
|
}
|
|
2012
2030
|
function SheetClose({
|
|
2013
2031
|
...props
|
|
2014
2032
|
}) {
|
|
2015
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ jsx42(SheetPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
2016
2034
|
}
|
|
2017
2035
|
function SheetPortal({
|
|
2018
2036
|
...props
|
|
2019
2037
|
}) {
|
|
2020
|
-
return /* @__PURE__ */
|
|
2038
|
+
return /* @__PURE__ */ jsx42(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2021
2039
|
}
|
|
2022
2040
|
function SheetOverlay({
|
|
2023
2041
|
className,
|
|
2024
2042
|
...props
|
|
2025
2043
|
}) {
|
|
2026
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx42(
|
|
2027
2045
|
SheetPrimitive.Overlay,
|
|
2028
2046
|
{
|
|
2029
2047
|
"data-slot": "sheet-overlay",
|
|
@@ -2043,7 +2061,7 @@ function SheetContent({
|
|
|
2043
2061
|
...props
|
|
2044
2062
|
}) {
|
|
2045
2063
|
return /* @__PURE__ */ jsxs15(SheetPortal, { children: [
|
|
2046
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ jsx42(SheetOverlay, {}),
|
|
2047
2065
|
/* @__PURE__ */ jsxs15(
|
|
2048
2066
|
SheetPrimitive.Content,
|
|
2049
2067
|
{
|
|
@@ -2060,8 +2078,8 @@ function SheetContent({
|
|
|
2060
2078
|
children: [
|
|
2061
2079
|
children,
|
|
2062
2080
|
showCloseButton && /* @__PURE__ */ jsxs15(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2064
|
-
/* @__PURE__ */
|
|
2081
|
+
/* @__PURE__ */ jsx42("span", { "aria-hidden": "true", className: "text-base leading-none", children: "\xD7" }),
|
|
2082
|
+
/* @__PURE__ */ jsx42("span", { className: "sr-only", children: "Close" })
|
|
2065
2083
|
] })
|
|
2066
2084
|
]
|
|
2067
2085
|
}
|
|
@@ -2069,7 +2087,7 @@ function SheetContent({
|
|
|
2069
2087
|
] });
|
|
2070
2088
|
}
|
|
2071
2089
|
function SheetHeader({ className, ...props }) {
|
|
2072
|
-
return /* @__PURE__ */
|
|
2090
|
+
return /* @__PURE__ */ jsx42(
|
|
2073
2091
|
"div",
|
|
2074
2092
|
{
|
|
2075
2093
|
"data-slot": "sheet-header",
|
|
@@ -2079,7 +2097,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
2079
2097
|
);
|
|
2080
2098
|
}
|
|
2081
2099
|
function SheetFooter({ className, ...props }) {
|
|
2082
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx42(
|
|
2083
2101
|
"div",
|
|
2084
2102
|
{
|
|
2085
2103
|
"data-slot": "sheet-footer",
|
|
@@ -2092,7 +2110,7 @@ function SheetTitle({
|
|
|
2092
2110
|
className,
|
|
2093
2111
|
...props
|
|
2094
2112
|
}) {
|
|
2095
|
-
return /* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ jsx42(
|
|
2096
2114
|
SheetPrimitive.Title,
|
|
2097
2115
|
{
|
|
2098
2116
|
"data-slot": "sheet-title",
|
|
@@ -2105,7 +2123,7 @@ function SheetDescription({
|
|
|
2105
2123
|
className,
|
|
2106
2124
|
...props
|
|
2107
2125
|
}) {
|
|
2108
|
-
return /* @__PURE__ */
|
|
2126
|
+
return /* @__PURE__ */ jsx42(
|
|
2109
2127
|
SheetPrimitive.Description,
|
|
2110
2128
|
{
|
|
2111
2129
|
"data-slot": "sheet-description",
|
|
@@ -2126,12 +2144,12 @@ function useToast() {
|
|
|
2126
2144
|
}
|
|
2127
2145
|
|
|
2128
2146
|
// src/hover-card.tsx
|
|
2129
|
-
import * as
|
|
2147
|
+
import * as React9 from "react";
|
|
2130
2148
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2131
|
-
import { jsx as
|
|
2149
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2132
2150
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2133
2151
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2134
|
-
var HoverCardContent =
|
|
2152
|
+
var HoverCardContent = React9.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
2135
2153
|
HoverCardPrimitive.Content,
|
|
2136
2154
|
{
|
|
2137
2155
|
ref,
|
|
@@ -2155,7 +2173,7 @@ var CollapsibleContent2 = CollapsiblePrimitive2.CollapsibleContent;
|
|
|
2155
2173
|
// src/button-group.tsx
|
|
2156
2174
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2157
2175
|
import { cva as cva4 } from "class-variance-authority";
|
|
2158
|
-
import { jsx as
|
|
2176
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2159
2177
|
var buttonGroupVariants = cva4(
|
|
2160
2178
|
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
2161
2179
|
{
|
|
@@ -2173,7 +2191,7 @@ function ButtonGroup({
|
|
|
2173
2191
|
orientation,
|
|
2174
2192
|
...props
|
|
2175
2193
|
}) {
|
|
2176
|
-
return /* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ jsx44(
|
|
2177
2195
|
"div",
|
|
2178
2196
|
{
|
|
2179
2197
|
role: "group",
|
|
@@ -2190,7 +2208,7 @@ function ButtonGroupText({
|
|
|
2190
2208
|
...props
|
|
2191
2209
|
}) {
|
|
2192
2210
|
const Comp = asChild ? Slot3 : "div";
|
|
2193
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ jsx44(
|
|
2194
2212
|
Comp,
|
|
2195
2213
|
{
|
|
2196
2214
|
className: cn(
|
|
@@ -2206,7 +2224,7 @@ function ButtonGroupSeparator({
|
|
|
2206
2224
|
orientation = "vertical",
|
|
2207
2225
|
...props
|
|
2208
2226
|
}) {
|
|
2209
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsx44(
|
|
2210
2228
|
Separator,
|
|
2211
2229
|
{
|
|
2212
2230
|
"data-slot": "button-group-separator",
|
|
@@ -2219,9 +2237,9 @@ function ButtonGroupSeparator({
|
|
|
2219
2237
|
|
|
2220
2238
|
// src/input-group.tsx
|
|
2221
2239
|
import { cva as cva5 } from "class-variance-authority";
|
|
2222
|
-
import { jsx as
|
|
2240
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2223
2241
|
function InputGroup({ className, ...props }) {
|
|
2224
|
-
return /* @__PURE__ */
|
|
2242
|
+
return /* @__PURE__ */ jsx45(
|
|
2225
2243
|
"div",
|
|
2226
2244
|
{
|
|
2227
2245
|
"data-slot": "input-group",
|
|
@@ -2259,7 +2277,7 @@ function InputGroupAddon({
|
|
|
2259
2277
|
align = "inline-start",
|
|
2260
2278
|
...props
|
|
2261
2279
|
}) {
|
|
2262
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx45(
|
|
2263
2281
|
"div",
|
|
2264
2282
|
{
|
|
2265
2283
|
role: "group",
|
|
@@ -2292,10 +2310,10 @@ function InputGroupButton({
|
|
|
2292
2310
|
size = "xs",
|
|
2293
2311
|
...props
|
|
2294
2312
|
}) {
|
|
2295
|
-
return /* @__PURE__ */
|
|
2313
|
+
return /* @__PURE__ */ jsx45(Button, { type, "data-size": size, variant, className: cn(inputGroupButtonVariants({ size }), className), ...props });
|
|
2296
2314
|
}
|
|
2297
2315
|
function InputGroupText({ className, ...props }) {
|
|
2298
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ jsx45(
|
|
2299
2317
|
"span",
|
|
2300
2318
|
{
|
|
2301
2319
|
className: cn("flex items-center gap-2 text-sm text-muted-foreground [&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none", className),
|
|
@@ -2304,7 +2322,7 @@ function InputGroupText({ className, ...props }) {
|
|
|
2304
2322
|
);
|
|
2305
2323
|
}
|
|
2306
2324
|
function InputGroupInput({ className, ...props }) {
|
|
2307
|
-
return /* @__PURE__ */
|
|
2325
|
+
return /* @__PURE__ */ jsx45(
|
|
2308
2326
|
Input,
|
|
2309
2327
|
{
|
|
2310
2328
|
"data-slot": "input-group-control",
|
|
@@ -2314,7 +2332,7 @@ function InputGroupInput({ className, ...props }) {
|
|
|
2314
2332
|
);
|
|
2315
2333
|
}
|
|
2316
2334
|
function InputGroupTextarea({ className, ...props }) {
|
|
2317
|
-
return /* @__PURE__ */
|
|
2335
|
+
return /* @__PURE__ */ jsx45(
|
|
2318
2336
|
Textarea,
|
|
2319
2337
|
{
|
|
2320
2338
|
"data-slot": "input-group-control",
|
|
@@ -2323,6 +2341,39 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
2323
2341
|
}
|
|
2324
2342
|
);
|
|
2325
2343
|
}
|
|
2344
|
+
|
|
2345
|
+
// src/choice-group.tsx
|
|
2346
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2347
|
+
function ChoiceGroup({ className, ...props }) {
|
|
2348
|
+
return /* @__PURE__ */ jsx46("fieldset", { "data-slot": "choice-group", className: cn("grid gap-2", className), ...props });
|
|
2349
|
+
}
|
|
2350
|
+
function ChoiceGroupLegend({ className, ...props }) {
|
|
2351
|
+
return /* @__PURE__ */ jsx46("legend", { "data-slot": "choice-group-legend", className: cn("mb-2 text-sm font-medium leading-5 text-foreground", className), ...props });
|
|
2352
|
+
}
|
|
2353
|
+
function ChoiceItem({ className, ...props }) {
|
|
2354
|
+
return /* @__PURE__ */ jsx46(
|
|
2355
|
+
"label",
|
|
2356
|
+
{
|
|
2357
|
+
"data-slot": "choice-item",
|
|
2358
|
+
className: cn(
|
|
2359
|
+
"flex items-start gap-3 rounded-md border border-border/70 bg-background px-3 py-2 text-sm text-foreground transition-colors hover:bg-muted/30",
|
|
2360
|
+
"has-[:checked]:border-ring/60 has-[:checked]:bg-muted/40 has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50",
|
|
2361
|
+
"has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50",
|
|
2362
|
+
className
|
|
2363
|
+
),
|
|
2364
|
+
...props
|
|
2365
|
+
}
|
|
2366
|
+
);
|
|
2367
|
+
}
|
|
2368
|
+
function ChoiceItemBody({ className, ...props }) {
|
|
2369
|
+
return /* @__PURE__ */ jsx46("span", { "data-slot": "choice-item-body", className: cn("flex flex-col gap-1", className), ...props });
|
|
2370
|
+
}
|
|
2371
|
+
function ChoiceItemTitle({ className, ...props }) {
|
|
2372
|
+
return /* @__PURE__ */ jsx46("span", { "data-slot": "choice-item-title", className: cn("leading-5", className), ...props });
|
|
2373
|
+
}
|
|
2374
|
+
function ChoiceItemDescription({ className, ...props }) {
|
|
2375
|
+
return /* @__PURE__ */ jsx46("small", { "data-slot": "choice-item-description", className: cn("text-sm leading-5 text-muted-foreground", className), ...props });
|
|
2376
|
+
}
|
|
2326
2377
|
export {
|
|
2327
2378
|
AlertDialog,
|
|
2328
2379
|
AlertDialogAction,
|
|
@@ -2354,6 +2405,12 @@ export {
|
|
|
2354
2405
|
Chip,
|
|
2355
2406
|
ChipButton,
|
|
2356
2407
|
ChipRemove,
|
|
2408
|
+
ChoiceGroup,
|
|
2409
|
+
ChoiceGroupLegend,
|
|
2410
|
+
ChoiceItem,
|
|
2411
|
+
ChoiceItemBody,
|
|
2412
|
+
ChoiceItemDescription,
|
|
2413
|
+
ChoiceItemTitle,
|
|
2357
2414
|
Collapsible,
|
|
2358
2415
|
CollapsibleContent2 as CollapsibleContent,
|
|
2359
2416
|
CollapsibleTrigger2 as CollapsibleTrigger,
|
|
@@ -2444,6 +2501,7 @@ export {
|
|
|
2444
2501
|
PopoverHeader,
|
|
2445
2502
|
PopoverTitle,
|
|
2446
2503
|
PopoverTrigger,
|
|
2504
|
+
Radio,
|
|
2447
2505
|
ResizeHandle,
|
|
2448
2506
|
ScrollArea,
|
|
2449
2507
|
ScrollBar,
|