@uselets/ui 0.2.0 → 0.4.0
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 +90 -2
- package/dist/components/accordion.d.ts +31 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +74 -0
- package/dist/components/alert-dialog.js +2 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/alert.js.map +1 -1
- package/dist/components/avatar.d.ts +4 -4
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.d.ts +22 -0
- package/dist/components/badge.js +2 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +47 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button-group.d.ts +33 -0
- package/dist/components/button-group.js +2 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.d.ts +8 -5
- package/dist/components/button.js +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.d.ts +34 -0
- package/dist/components/calendar.js +2 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/carousel.d.ts +62 -0
- package/dist/components/carousel.js +2 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/center.d.ts +21 -0
- package/dist/components/center.js +2 -0
- package/dist/components/center.js.map +1 -0
- package/dist/components/chart.d.ts +263 -0
- package/dist/components/chart.js +8 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +20 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +2 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.d.ts +103 -0
- package/dist/components/combobox.js +2 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +65 -0
- package/dist/components/command.js +2 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/container.d.ts +19 -0
- package/dist/components/container.js +2 -0
- package/dist/components/container.js.map +1 -0
- package/dist/components/dialog.d.ts +18 -10
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/drawer.d.ts +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.d.ts +36 -42
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.d.ts +2 -2
- package/dist/components/field.js +1 -1
- package/dist/components/field.js.map +1 -1
- package/dist/components/group.d.ts +21 -0
- package/dist/components/group.js +2 -0
- package/dist/components/group.js.map +1 -0
- package/dist/components/hover-card.d.ts +24 -0
- package/dist/components/hover-card.js +2 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +51 -0
- package/dist/components/input-group.js +2 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/kbd.d.ts +6 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/kbd.js.map +1 -1
- package/dist/components/label.d.ts +2 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label.js.map +1 -1
- package/dist/components/native-select.js +1 -1
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/navigation-menu.d.ts +56 -0
- package/dist/components/navigation-menu.js +2 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +53 -0
- package/dist/components/pagination.js +2 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.d.ts +43 -0
- package/dist/components/popover.js +2 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +15 -0
- package/dist/components/progress.js +2 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +19 -0
- package/dist/components/radio-group.js +2 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable.d.ts +25 -0
- package/dist/components/resizable.js +2 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scroll-area.d.ts +21 -0
- package/dist/components/scroll-area.js +2 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +15 -17
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.d.ts +4 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.d.ts +61 -0
- package/dist/components/sheet.js +2 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.d.ts +192 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.js +1 -1
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts +18 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.js +1 -1
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.d.ts +10 -2
- package/dist/components/spinner.js +1 -1
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/stack.d.ts +19 -0
- package/dist/components/stack.js +2 -0
- package/dist/components/stack.js.map +1 -0
- package/dist/components/switch.d.ts +17 -0
- package/dist/components/switch.js +2 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +48 -0
- package/dist/components/table.js +2 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +36 -0
- package/dist/components/tabs.js +2 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/theme.d.ts +5 -2
- package/dist/components/theme.js +1 -1
- package/dist/components/theme.js.map +1 -1
- package/dist/components/toggle-group.d.ts +32 -0
- package/dist/components/toggle-group.js +2 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +22 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +29 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +7 -0
- package/dist/hooks/use-mobile.js +2 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/index.d.ts +42 -5
- package/dist/index.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles.css +1436 -3
- package/package.json +21 -10
- package/dist/styles.css.map +0 -1
- package/dist/styles.js +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/stack.d.ts
|
|
8
|
+
declare const stackVariants: (props?: ({
|
|
9
|
+
size?: "xs" | "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
|
+
type StackProps = React.ComponentProps<'div'> & VariantProps<typeof stackVariants>;
|
|
12
|
+
declare function Stack({
|
|
13
|
+
className,
|
|
14
|
+
size,
|
|
15
|
+
...props
|
|
16
|
+
}: StackProps): react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Stack, StackProps, stackVariants };
|
|
19
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{jsx as t}from"react/jsx-runtime";import{cva as n}from"class-variance-authority";const r=n(`flex flex-col`,{variants:{size:{xs:`gap-1`,sm:`gap-2`,md:`gap-3`,lg:`gap-4`,xl:`gap-6`}},defaultVariants:{size:`md`}});function Stack({className:n,size:i=`md`,...a}){return t(`div`,{"data-slot":`stack`,"data-size":i,className:e(r({size:i}),n),...a})}export{Stack,r as stackVariants};
|
|
2
|
+
//# sourceMappingURL=stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.js","names":[],"sources":["../../src/components/stack.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../lib/utils'\n\nconst stackVariants = cva('flex flex-col', {\n variants: {\n size: {\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-3',\n lg: 'gap-4',\n xl: 'gap-6'\n }\n },\n defaultVariants: {\n size: 'md'\n }\n})\n\nexport type StackProps = React.ComponentProps<'div'> & VariantProps<typeof stackVariants>\n\nfunction Stack({ className, size = 'md', ...props }: StackProps) {\n return <div data-slot=\"stack\" data-size={size} className={cn(stackVariants({ size }), className)} {...props} />\n}\n\nexport { Stack, stackVariants }\n"],"mappings":"yJAMA,MAAM,EAAgB,EAAI,gBAAiB,CACzC,SAAU,CACR,KAAM,CACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACL,CACF,CACD,gBAAiB,CACf,KAAM,KACP,CACF,CAAC,CAIF,SAAS,MAAM,CAAE,YAAW,OAAO,KAAM,GAAG,GAAqB,CAC/D,OAAO,EAAC,MAAD,CAAK,YAAU,QAAQ,YAAW,EAAM,UAAW,EAAG,EAAc,CAAE,OAAM,CAAC,CAAE,EAAU,CAAE,GAAI,EAAS,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { Switch as Switch$1 } from "radix-ui";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch.d.ts
|
|
7
|
+
type SwitchProps = React.ComponentProps<typeof Switch$1.Root> & {
|
|
8
|
+
size?: 'sm' | 'default';
|
|
9
|
+
};
|
|
10
|
+
declare function Switch({
|
|
11
|
+
className,
|
|
12
|
+
size,
|
|
13
|
+
...props
|
|
14
|
+
}: SwitchProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Switch, SwitchProps };
|
|
17
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{Switch as t}from"radix-ui";import{jsx as n}from"react/jsx-runtime";function Switch({className:r,size:i=`default`,...a}){return n(t.Root,{"data-slot":`switch`,"data-size":i,className:e(`peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none`,`after:absolute after:-inset-x-3 after:-inset-y-2`,`focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20`,`data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6`,`dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,`data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80`,`data-disabled:cursor-not-allowed data-disabled:opacity-50`,r),...a,children:n(t.Thumb,{"data-slot":`switch-thumb`,className:e(`pointer-events-none block rounded-full bg-background ring-0 transition-transform`,`group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3`,`group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)]`,`group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)]`,`group-data-[size=default]/switch:data-unchecked:translate-x-0`,`group-data-[size=sm]/switch:data-unchecked:translate-x-0`,`dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground`)})})}export{Switch};
|
|
2
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","names":["SwitchPrimitive"],"sources":["../../src/components/switch.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { Switch as SwitchPrimitive } from 'radix-ui'\n\nimport { cn } from '../lib/utils'\n\nexport type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {\n size?: 'sm' | 'default'\n}\n\nfunction Switch({ className, size = 'default', ...props }: SwitchProps) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n data-size={size}\n className={cn(\n 'peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none',\n 'after:absolute after:-inset-x-3 after:-inset-y-2',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50',\n 'aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20',\n 'data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6',\n 'dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',\n 'data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80',\n 'data-disabled:cursor-not-allowed data-disabled:opacity-50',\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n 'pointer-events-none block rounded-full bg-background ring-0 transition-transform',\n 'group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3',\n 'group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)]',\n 'group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)]',\n 'group-data-[size=default]/switch:data-unchecked:translate-x-0',\n 'group-data-[size=sm]/switch:data-unchecked:translate-x-0',\n 'dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground'\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n"],"mappings":"4IAUA,SAAS,OAAO,CAAE,YAAW,OAAO,UAAW,GAAG,GAAsB,CACtE,OACE,EAACA,EAAgB,KAAjB,CACE,YAAU,SACV,YAAW,EACX,UAAW,EACT,kIACA,mDACA,4EACA,uFACA,iGACA,gFACA,kFACA,4DACA,EACD,CACD,GAAI,WAEJ,EAACA,EAAgB,MAAjB,CACE,YAAU,eACV,UAAW,EACT,mFACA,6EACA,6EACA,wEACA,gEACA,2DACA,4EACD,CACD,CAAA,CACmB,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/table.d.ts
|
|
6
|
+
type TableProps = React.ComponentProps<'table'>;
|
|
7
|
+
type TableHeaderProps = React.ComponentProps<'thead'>;
|
|
8
|
+
type TableBodyProps = React.ComponentProps<'tbody'>;
|
|
9
|
+
type TableFooterProps = React.ComponentProps<'tfoot'>;
|
|
10
|
+
type TableRowProps = React.ComponentProps<'tr'>;
|
|
11
|
+
type TableHeadProps = React.ComponentProps<'th'>;
|
|
12
|
+
type TableCellProps = React.ComponentProps<'td'>;
|
|
13
|
+
type TableCaptionProps = React.ComponentProps<'caption'>;
|
|
14
|
+
declare function Table({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: TableProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
declare function TableHeader({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: TableHeaderProps): react_jsx_runtime0.JSX.Element;
|
|
22
|
+
declare function TableBody({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}: TableBodyProps): react_jsx_runtime0.JSX.Element;
|
|
26
|
+
declare function TableFooter({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: TableFooterProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
+
declare function TableRow({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: TableRowProps): react_jsx_runtime0.JSX.Element;
|
|
34
|
+
declare function TableHead({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: TableHeadProps): react_jsx_runtime0.JSX.Element;
|
|
38
|
+
declare function TableCell({
|
|
39
|
+
className,
|
|
40
|
+
...props
|
|
41
|
+
}: TableCellProps): react_jsx_runtime0.JSX.Element;
|
|
42
|
+
declare function TableCaption({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: TableCaptionProps): react_jsx_runtime0.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps };
|
|
48
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{jsx as t}from"react/jsx-runtime";function Table({className:n,...r}){return t(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:t(`table`,{"data-slot":`table`,className:e(`w-full caption-bottom text-sm`,n),...r})})}function TableHeader({className:n,...r}){return t(`thead`,{"data-slot":`table-header`,className:e(`[&_tr]:border-b`,n),...r})}function TableBody({className:n,...r}){return t(`tbody`,{"data-slot":`table-body`,className:e(`[&_tr:last-child]:border-0`,n),...r})}function TableFooter({className:n,...r}){return t(`tfoot`,{"data-slot":`table-footer`,className:e(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,n),...r})}function TableRow({className:n,...r}){return t(`tr`,{"data-slot":`table-row`,className:e(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,n),...r})}function TableHead({className:n,...r}){return t(`th`,{"data-slot":`table-head`,className:e(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0`,n),...r})}function TableCell({className:n,...r}){return t(`td`,{"data-slot":`table-cell`,className:e(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,n),...r})}function TableCaption({className:n,...r}){return t(`caption`,{"data-slot":`table-caption`,className:e(`mt-4 text-sm text-muted-foreground`,n),...r})}export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow};
|
|
2
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../src/components/table.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cn } from '../lib/utils'\n\nexport type TableProps = React.ComponentProps<'table'>\n\nexport type TableHeaderProps = React.ComponentProps<'thead'>\n\nexport type TableBodyProps = React.ComponentProps<'tbody'>\n\nexport type TableFooterProps = React.ComponentProps<'tfoot'>\n\nexport type TableRowProps = React.ComponentProps<'tr'>\n\nexport type TableHeadProps = React.ComponentProps<'th'>\n\nexport type TableCellProps = React.ComponentProps<'td'>\n\nexport type TableCaptionProps = React.ComponentProps<'caption'>\n\nfunction Table({ className, ...props }: TableProps) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table data-slot=\"table\" className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n )\n}\n\nfunction TableHeader({ className, ...props }: TableHeaderProps) {\n return <thead data-slot=\"table-header\" className={cn('[&_tr]:border-b', className)} {...props} />\n}\n\nfunction TableBody({ className, ...props }: TableBodyProps) {\n return <tbody data-slot=\"table-body\" className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n}\n\nfunction TableFooter({ className, ...props }: TableFooterProps) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n )\n}\n\nfunction TableRow({ className, ...props }: TableRowProps) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className)}\n {...props}\n />\n )\n}\n\nfunction TableHead({ className, ...props }: TableHeadProps) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n 'h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCell({ className, ...props }: TableCellProps) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn('p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0', className)}\n {...props}\n />\n )\n}\n\nfunction TableCaption({ className, ...props }: TableCaptionProps) {\n return (\n <caption data-slot=\"table-caption\" className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />\n )\n}\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption }\n"],"mappings":"0GAoBA,SAAS,MAAM,CAAE,YAAW,GAAG,GAAqB,CAClD,OACE,EAAC,MAAD,CAAK,YAAU,kBAAkB,UAAU,2CACzC,EAAC,QAAD,CAAO,YAAU,QAAQ,UAAW,EAAG,gCAAiC,EAAU,CAAE,GAAI,EAAS,CAAA,CAC7F,CAAA,CAIV,SAAS,YAAY,CAAE,YAAW,GAAG,GAA2B,CAC9D,OAAO,EAAC,QAAD,CAAO,YAAU,eAAe,UAAW,EAAG,kBAAmB,EAAU,CAAE,GAAI,EAAS,CAAA,CAGnG,SAAS,UAAU,CAAE,YAAW,GAAG,GAAyB,CAC1D,OAAO,EAAC,QAAD,CAAO,YAAU,aAAa,UAAW,EAAG,6BAA8B,EAAU,CAAE,GAAI,EAAS,CAAA,CAG5G,SAAS,YAAY,CAAE,YAAW,GAAG,GAA2B,CAC9D,OACE,EAAC,QAAD,CACE,YAAU,eACV,UAAW,EAAG,0DAA2D,EAAU,CACnF,GAAI,EACJ,CAAA,CAIN,SAAS,SAAS,CAAE,YAAW,GAAG,GAAwB,CACxD,OACE,EAAC,KAAD,CACE,YAAU,YACV,UAAW,EAAG,8EAA+E,EAAU,CACvG,GAAI,EACJ,CAAA,CAIN,SAAS,UAAU,CAAE,YAAW,GAAG,GAAyB,CAC1D,OACE,EAAC,KAAD,CACE,YAAU,aACV,UAAW,EACT,+GACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,SAAS,UAAU,CAAE,YAAW,GAAG,GAAyB,CAC1D,OACE,EAAC,KAAD,CACE,YAAU,aACV,UAAW,EAAG,mEAAoE,EAAU,CAC5F,GAAI,EACJ,CAAA,CAIN,SAAS,aAAa,CAAE,YAAW,GAAG,GAA4B,CAChE,OACE,EAAC,UAAD,CAAS,YAAU,gBAAgB,UAAW,EAAG,qCAAsC,EAAU,CAAE,GAAI,EAAS,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
|
+
|
|
8
|
+
//#region src/components/tabs.d.ts
|
|
9
|
+
type TabsProps = React.ComponentProps<typeof Tabs$1.Root>;
|
|
10
|
+
declare function Tabs({
|
|
11
|
+
className,
|
|
12
|
+
orientation,
|
|
13
|
+
...props
|
|
14
|
+
}: TabsProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare const tabsListVariants: (props?: ({
|
|
16
|
+
variant?: "default" | "line" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
18
|
+
type TabsListProps = React.ComponentProps<typeof Tabs$1.List> & VariantProps<typeof tabsListVariants>;
|
|
19
|
+
type TabsTriggerProps = React.ComponentProps<typeof Tabs$1.Trigger>;
|
|
20
|
+
type TabsContentProps = React.ComponentProps<typeof Tabs$1.Content>;
|
|
21
|
+
declare function TabsList({
|
|
22
|
+
className,
|
|
23
|
+
variant,
|
|
24
|
+
...props
|
|
25
|
+
}: TabsListProps): react_jsx_runtime0.JSX.Element;
|
|
26
|
+
declare function TabsTrigger({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: TabsTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
+
declare function TabsContent({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: TabsContentProps): react_jsx_runtime0.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps, tabsListVariants };
|
|
36
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{Tabs as t}from"radix-ui";import{jsx as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";function Tabs({className:r,orientation:i=`horizontal`,...a}){return n(t.Root,{"data-slot":`tabs`,"data-orientation":i,className:e(`group/tabs flex gap-2 data-horizontal:flex-col`,r),...a})}const i=r(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-0.75 text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function TabsList({className:r,variant:a=`default`,...o}){return n(t.List,{"data-slot":`tabs-list`,"data-variant":a,className:e(i({variant:a}),r),...o})}function TabsTrigger({className:r,...i}){return n(t.Trigger,{"data-slot":`tabs-trigger`,className:e(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:-bottom-1.25 group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,r),...i})}function TabsContent({className:r,...i}){return n(t.Content,{"data-slot":`tabs-content`,className:e(`flex-1 text-sm outline-none`,r),...i})}export{Tabs,TabsContent,TabsList,TabsTrigger,i as tabsListVariants};
|
|
2
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","names":["TabsPrimitive"],"sources":["../../src/components/tabs.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { Tabs as TabsPrimitive } from 'radix-ui'\n\nimport { cn } from '../lib/utils'\n\nexport type TabsProps = React.ComponentProps<typeof TabsPrimitive.Root>\n\nfunction Tabs({ className, orientation = 'horizontal', ...props }: TabsProps) {\n return (\n <TabsPrimitive.Root\n data-slot=\"tabs\"\n data-orientation={orientation}\n className={cn('group/tabs flex gap-2 data-horizontal:flex-col', className)}\n {...props}\n />\n )\n}\n\nconst tabsListVariants = cva(\n 'group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-0.75 text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none',\n {\n variants: {\n variant: {\n default: 'bg-muted',\n line: 'gap-1 bg-transparent'\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nexport type TabsListProps = React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>\n\nexport type TabsTriggerProps = React.ComponentProps<typeof TabsPrimitive.Trigger>\n\nexport type TabsContentProps = React.ComponentProps<typeof TabsPrimitive.Content>\n\nfunction TabsList({ className, variant = 'default', ...props }: TabsListProps) {\n return (\n <TabsPrimitive.List\n data-slot=\"tabs-list\"\n data-variant={variant}\n className={cn(tabsListVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nfunction TabsTrigger({ className, ...props }: TabsTriggerProps) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n \"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n 'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent',\n 'data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground',\n 'after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:-bottom-1.25 group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TabsContent({ className, ...props }: TabsContentProps) {\n return (\n <TabsPrimitive.Content\n data-slot=\"tabs-content\"\n className={cn('flex-1 text-sm outline-none', className)}\n {...props}\n />\n )\n}\n\nexport { Tabs, TabsContent, TabsList, tabsListVariants, TabsTrigger }\n"],"mappings":"yLASA,SAAS,KAAK,CAAE,YAAW,cAAc,aAAc,GAAG,GAAoB,CAC5E,OACE,EAACA,EAAc,KAAf,CACE,YAAU,OACV,mBAAkB,EAClB,UAAW,EAAG,iDAAkD,EAAU,CAC1E,GAAI,EACJ,CAAA,CAIN,MAAM,EAAmB,EACvB,yOACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,WACT,KAAM,uBACP,CACF,CACD,gBAAiB,CACf,QAAS,UACV,CACF,CACF,CAQD,SAAS,SAAS,CAAE,YAAW,UAAU,UAAW,GAAG,GAAwB,CAC7E,OACE,EAACA,EAAc,KAAf,CACE,YAAU,YACV,eAAc,EACd,UAAW,EAAG,EAAiB,CAAE,UAAS,CAAC,CAAE,EAAU,CACvD,GAAI,EACJ,CAAA,CAIN,SAAS,YAAY,CAAE,YAAW,GAAG,GAA2B,CAC9D,OACE,EAACA,EAAc,QAAf,CACE,YAAU,eACV,UAAW,EACT,guBACA,gQACA,oJACA,sYACA,EACD,CACD,GAAI,EACJ,CAAA,CAIN,SAAS,YAAY,CAAE,YAAW,GAAG,GAA2B,CAC9D,OACE,EAACA,EAAc,QAAf,CACE,YAAU,eACV,UAAW,EAAG,8BAA+B,EAAU,CACvD,GAAI,EACJ,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/textarea.d.ts
|
|
6
|
+
type TextareaProps = React.ComponentProps<'textarea'>;
|
|
7
|
+
declare function Textarea({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: TextareaProps): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Textarea, TextareaProps };
|
|
13
|
+
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{jsx as t}from"react/jsx-runtime";function Textarea({className:n,...r}){return t(`textarea`,{"data-slot":`textarea`,className:e(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),...r})}export{Textarea};
|
|
2
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../src/components/textarea.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cn } from '../lib/utils'\n\nexport type TextareaProps = React.ComponentProps<'textarea'>\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n 'flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Textarea }\n"],"mappings":"0GAMA,SAAS,SAAS,CAAE,YAAW,GAAG,GAAwB,CACxD,OACE,EAAC,WAAD,CACE,YAAU,WACV,UAAW,EACT,yhBACA,EACD,CACD,GAAI,EACJ,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { Button } from "./button.js";
|
|
2
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
3
5
|
|
|
4
6
|
//#region src/components/theme.d.ts
|
|
5
7
|
type Theme = 'dark' | 'light' | 'system';
|
|
@@ -12,6 +14,7 @@ type ThemeProviderState = {
|
|
|
12
14
|
theme: Theme;
|
|
13
15
|
setTheme: (theme: Theme) => void;
|
|
14
16
|
};
|
|
17
|
+
type ModeToggleProps = React.ComponentProps<typeof Button>;
|
|
15
18
|
declare function ThemeProvider({
|
|
16
19
|
children,
|
|
17
20
|
defaultTheme,
|
|
@@ -19,7 +22,7 @@ declare function ThemeProvider({
|
|
|
19
22
|
...props
|
|
20
23
|
}: ThemeProviderProps): react_jsx_runtime0.JSX.Element;
|
|
21
24
|
declare const useTheme: () => ThemeProviderState;
|
|
22
|
-
declare function ModeToggle(): react_jsx_runtime0.JSX.Element;
|
|
25
|
+
declare function ModeToggle(props: ModeToggleProps): react_jsx_runtime0.JSX.Element;
|
|
23
26
|
//#endregion
|
|
24
|
-
export { ModeToggle, ThemeProvider, useTheme };
|
|
27
|
+
export { ModeToggle, ModeToggleProps, Theme, ThemeProvider, ThemeProviderProps, ThemeProviderState, useTheme };
|
|
25
28
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/components/theme.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{Button as e}from"./button.js";import{DropdownMenu as t,DropdownMenuContent as n,DropdownMenuItem as r,DropdownMenuTrigger as i}from"./dropdown-menu.js";import{IconMoon as a,IconSun as o}from"@tabler/icons-react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{createContext as l,use as u,useEffect as d,useState as f}from"react";const p=l({});function ThemeProvider({children:e,defaultTheme:t=`system`,storageKey:n=`vite-ui-theme`,...r}){let[i,a]=f(()=>localStorage.getItem(n)||t);d(()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),i===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(i)},[i]);let o={theme:i,setTheme:e=>{localStorage.setItem(n,e),a(e)}};return s(p.Provider,{...r,value:o,children:e})}const useTheme=()=>{let e=u(p);if(e===void 0||Object.keys(e).length===0)throw Error(`useTheme must be used within a ThemeProvider`);return e};function ModeToggle(l){let{setTheme:u}=useTheme();return c(t,{children:[s(i,{children:c(e,{variant:`outline`,size:`icon`,...l,children:[s(o,{className:`h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),s(a,{className:`absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s(`span`,{className:`sr-only`,children:`Toggle theme`})]})}),c(n,{align:`end`,children:[s(r,{onClick:()=>u(`light`),children:`Light`}),s(r,{onClick:()=>u(`dark`),children:`Dark`}),s(r,{onClick:()=>u(`system`),children:`System`})]})]})}export{ModeToggle,ThemeProvider,useTheme};
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","names":[],"sources":["../../src/components/theme.tsx"],"sourcesContent":["import { createContext, use, useEffect, useState } from 'react'\n\nimport { IconMoon, IconSun } from '@tabler/icons-react'\n\nimport { Button } from './button'\nimport { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from './dropdown-menu'\n\
|
|
1
|
+
{"version":3,"file":"theme.js","names":[],"sources":["../../src/components/theme.tsx"],"sourcesContent":["import type * as React from 'react'\nimport { createContext, use, useEffect, useState } from 'react'\n\nimport { IconMoon, IconSun } from '@tabler/icons-react'\n\nimport { Button } from './button'\nimport { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from './dropdown-menu'\n\nexport type Theme = 'dark' | 'light' | 'system'\n\nexport type ThemeProviderProps = {\n children: React.ReactNode\n defaultTheme?: Theme\n storageKey?: string\n}\n\nexport type ThemeProviderState = {\n theme: Theme\n setTheme: (theme: Theme) => void\n}\n\nexport type ModeToggleProps = React.ComponentProps<typeof Button>\n\nconst ThemeProviderContext = createContext({} as ThemeProviderState)\n\nexport function ThemeProvider({\n children,\n defaultTheme = 'system',\n storageKey = 'vite-ui-theme',\n ...props\n}: ThemeProviderProps) {\n const [theme, setTheme] = useState<Theme>(() => (localStorage.getItem(storageKey) as Theme) || defaultTheme)\n\n useEffect(() => {\n const root = window.document.documentElement\n\n root.classList.remove('light', 'dark')\n\n if (theme === 'system') {\n const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'\n\n root.classList.add(systemTheme)\n return\n }\n\n root.classList.add(theme)\n }, [theme])\n\n const value = {\n theme,\n setTheme: (theme: Theme) => {\n localStorage.setItem(storageKey, theme)\n setTheme(theme)\n }\n }\n\n return (\n <ThemeProviderContext.Provider {...props} value={value}>\n {children}\n </ThemeProviderContext.Provider>\n )\n}\n\nexport const useTheme = () => {\n const context = use(ThemeProviderContext)\n\n if (context === undefined || Object.keys(context).length === 0) {\n throw new Error('useTheme must be used within a ThemeProvider')\n }\n\n return context\n}\n\nexport function ModeToggle(props: ModeToggleProps) {\n const { setTheme } = useTheme()\n\n return (\n <DropdownMenu>\n <DropdownMenuTrigger>\n <Button variant=\"outline\" size=\"icon\" {...props}>\n <IconSun className=\"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90\" />\n <IconMoon className=\"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0\" />\n <span className=\"sr-only\">Toggle theme</span>\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n <DropdownMenuItem onClick={() => setTheme('light')}>Light</DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme('dark')}>Dark</DropdownMenuItem>\n <DropdownMenuItem onClick={() => setTheme('system')}>System</DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n"],"mappings":"sXAuBA,MAAM,EAAuB,EAAc,EAAE,CAAuB,CAEpE,SAAgB,cAAc,CAC5B,WACA,eAAe,SACf,aAAa,gBACb,GAAG,GACkB,CACrB,GAAM,CAAC,EAAO,GAAY,MAAuB,aAAa,QAAQ,EAAW,EAAc,EAAa,CAE5G,MAAgB,CACd,IAAM,EAAO,OAAO,SAAS,gBAI7B,GAFA,EAAK,UAAU,OAAO,QAAS,OAAO,CAElC,IAAU,SAAU,CACtB,IAAM,EAAc,OAAO,WAAW,+BAA+B,CAAC,QAAU,OAAS,QAEzF,EAAK,UAAU,IAAI,EAAY,CAC/B,OAGF,EAAK,UAAU,IAAI,EAAM,EACxB,CAAC,EAAM,CAAC,CAEX,IAAM,EAAQ,CACZ,QACA,SAAW,GAAiB,CAC1B,aAAa,QAAQ,EAAY,EAAM,CACvC,EAAS,EAAM,EAElB,CAED,OACE,EAAC,EAAqB,SAAtB,CAA+B,GAAI,EAAc,QAC9C,WAC6B,CAAA,CAIpC,MAAa,aAAiB,CAC5B,IAAM,EAAU,EAAI,EAAqB,CAEzC,GAAI,IAAY,IAAA,IAAa,OAAO,KAAK,EAAQ,CAAC,SAAW,EAC3D,MAAU,MAAM,+CAA+C,CAGjE,OAAO,GAGT,SAAgB,WAAW,EAAwB,CACjD,GAAM,CAAE,YAAa,UAAU,CAE/B,OACE,EAAC,EAAD,CAAA,SAAA,CACE,EAAC,EAAD,CAAA,SACE,EAAC,EAAD,CAAQ,QAAQ,UAAU,KAAK,OAAO,GAAI,WAA1C,CACE,EAAC,EAAD,CAAS,UAAU,uFAAyF,CAAA,CAC5G,EAAC,EAAD,CAAU,UAAU,+FAAiG,CAAA,CACrH,EAAC,OAAD,CAAM,UAAU,mBAAU,eAAmB,CAAA,CACtC,GACW,CAAA,CACtB,EAAC,EAAD,CAAqB,MAAM,eAA3B,CACE,EAAC,EAAD,CAAkB,YAAe,EAAS,QAAQ,UAAE,QAAwB,CAAA,CAC5E,EAAC,EAAD,CAAkB,YAAe,EAAS,OAAO,UAAE,OAAuB,CAAA,CAC1E,EAAC,EAAD,CAAkB,YAAe,EAAS,SAAS,UAAE,SAAyB,CAAA,CAC1D,GACT,CAAA,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { toggleVariants } from "./toggle.js";
|
|
3
|
+
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
import { VariantProps } from "class-variance-authority";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toggle-group.d.ts
|
|
9
|
+
type ToggleGroupProps = React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants> & {
|
|
10
|
+
spacing?: number;
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
};
|
|
13
|
+
type ToggleGroupItemProps = React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>;
|
|
14
|
+
declare function ToggleGroup({
|
|
15
|
+
className,
|
|
16
|
+
variant,
|
|
17
|
+
size,
|
|
18
|
+
spacing,
|
|
19
|
+
orientation,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}: ToggleGroupProps): react_jsx_runtime0.JSX.Element;
|
|
23
|
+
declare function ToggleGroupItem({
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
...props
|
|
29
|
+
}: ToggleGroupItemProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps };
|
|
32
|
+
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{toggleVariants as t}from"./toggle.js";import{ToggleGroup as n}from"radix-ui";import{jsx as r}from"react/jsx-runtime";import*as i from"react";const a=i.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function ToggleGroup({className:t,variant:i,size:o,spacing:s=0,orientation:c=`horizontal`,children:l,...u}){return r(n.Root,{"data-slot":`toggle-group`,"data-variant":i,"data-size":o,"data-spacing":s,"data-orientation":c,style:{"--gap":s},className:e(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,t),...u,children:r(a.Provider,{value:{variant:i,size:o,spacing:s,orientation:c},children:l})})}function ToggleGroupItem({className:o,children:s,variant:c=`default`,size:l=`default`,...u}){let d=i.useContext(a);return r(n.Item,{"data-slot":`toggle-group-item`,"data-variant":d.variant||c,"data-size":d.size||l,"data-spacing":d.spacing,className:e(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t`,t({variant:d.variant||c,size:d.size||l}),o),...u,children:s})}export{ToggleGroup,ToggleGroupItem};
|
|
2
|
+
//# sourceMappingURL=toggle-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.js","names":["ToggleGroupPrimitive"],"sources":["../../src/components/toggle-group.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport type { VariantProps } from 'class-variance-authority'\nimport { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui'\n\nimport { cn } from '../lib/utils'\nimport { toggleVariants } from './toggle'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: 'horizontal' | 'vertical'\n }\n>({\n size: 'default',\n variant: 'default',\n spacing: 0,\n orientation: 'horizontal'\n})\n\nexport type ToggleGroupProps = React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: 'horizontal' | 'vertical'\n }\n\nexport type ToggleGroupItemProps = React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n spacing = 0,\n orientation = 'horizontal',\n children,\n ...props\n}: ToggleGroupProps) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n data-orientation={orientation}\n style={{ '--gap': spacing } as React.CSSProperties}\n className={cn(\n 'group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, spacing, orientation }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant = 'default',\n size = 'default',\n ...props\n}: ToggleGroupItemProps) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-spacing={context.spacing}\n className={cn(\n 'shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t',\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size\n }),\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"mappings":"sNAQA,MAAM,EAAqB,EAAM,cAK/B,CACA,KAAM,UACN,QAAS,UACT,QAAS,EACT,YAAa,aACd,CAAC,CAWF,SAAS,YAAY,CACnB,YACA,UACA,OACA,UAAU,EACV,cAAc,aACd,WACA,GAAG,GACgB,CACnB,OACE,EAACA,EAAqB,KAAtB,CACE,YAAU,eACV,eAAc,EACd,YAAW,EACX,eAAc,EACd,mBAAkB,EAClB,MAAO,CAAE,QAAS,EAAS,CAC3B,UAAW,EACT,oMACA,EACD,CACD,GAAI,WAEJ,EAAC,EAAmB,SAApB,CAA6B,MAAO,CAAE,UAAS,OAAM,UAAS,cAAa,CACxE,WAC2B,CAAA,CACJ,CAAA,CAIhC,SAAS,gBAAgB,CACvB,YACA,WACA,UAAU,UACV,OAAO,UACP,GAAG,GACoB,CACvB,IAAM,EAAU,EAAM,WAAW,EAAmB,CAEpD,OACE,EAACA,EAAqB,KAAtB,CACE,YAAU,oBACV,eAAc,EAAQ,SAAW,EACjC,YAAW,EAAQ,MAAQ,EAC3B,eAAc,EAAQ,QACtB,UAAW,EACT,qvBACA,EAAe,CACb,QAAS,EAAQ,SAAW,EAC5B,KAAM,EAAQ,MAAQ,EACvB,CAAC,CACF,EACD,CACD,GAAI,EAEH,WACyB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { Toggle as Toggle$1 } from "radix-ui";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
7
|
+
|
|
8
|
+
//#region src/components/toggle.d.ts
|
|
9
|
+
declare const toggleVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "outline" | null | undefined;
|
|
11
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
|
+
type ToggleProps = React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>;
|
|
14
|
+
declare function Toggle({
|
|
15
|
+
className,
|
|
16
|
+
variant,
|
|
17
|
+
size,
|
|
18
|
+
...props
|
|
19
|
+
}: ToggleProps): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Toggle, ToggleProps, toggleVariants };
|
|
22
|
+
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{Toggle as t}from"radix-ui";import{jsx as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";const i=r(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]`,lg:`h-9 min-w-9 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function Toggle({className:r,variant:a=`default`,size:o=`default`,...s}){return n(t.Root,{"data-slot":`toggle`,className:e(i({variant:a,size:o,className:r})),...s})}export{Toggle,i as toggleVariants};
|
|
2
|
+
//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","names":["TogglePrimitive"],"sources":["../../src/components/toggle.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { Toggle as TogglePrimitive } from 'radix-ui'\n\nimport { cn } from '../lib/utils'\n\nconst toggleVariants = cva(\n \"group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline: 'border border-input bg-transparent hover:bg-muted'\n },\n size: {\n default: 'h-8 min-w-8 px-2',\n sm: 'h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]',\n lg: 'h-9 min-w-9 px-2.5'\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default'\n }\n }\n)\n\nexport type ToggleProps = React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>\n\nfunction Toggle({ className, variant = 'default', size = 'default', ...props }: ToggleProps) {\n return (\n <TogglePrimitive.Root data-slot=\"toggle\" className={cn(toggleVariants({ variant, size, className }))} {...props} />\n )\n}\n\nexport { Toggle, toggleVariants }\n"],"mappings":"2LAOA,MAAM,EAAiB,EACrB,shBACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,oDACV,CACD,KAAM,CACJ,QAAS,mBACT,GAAI,wEACJ,GAAI,qBACL,CACF,CACD,gBAAiB,CACf,QAAS,UACT,KAAM,UACP,CACF,CACF,CAID,SAAS,OAAO,CAAE,YAAW,UAAU,UAAW,OAAO,UAAW,GAAG,GAAsB,CAC3F,OACE,EAACA,EAAgB,KAAjB,CAAsB,YAAU,SAAS,UAAW,EAAG,EAAe,CAAE,UAAS,OAAM,YAAW,CAAC,CAAC,CAAE,GAAI,EAAS,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as __name } from "../chunk-IpJEthwI.js";
|
|
2
|
+
import { Tooltip as Tooltip$1 } from "radix-ui";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tooltip.d.ts
|
|
7
|
+
type TooltipProviderProps = React.ComponentProps<typeof Tooltip$1.Provider>;
|
|
8
|
+
type TooltipProps = React.ComponentProps<typeof Tooltip$1.Root>;
|
|
9
|
+
type TooltipTriggerProps = React.ComponentProps<typeof Tooltip$1.Trigger>;
|
|
10
|
+
type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Content>;
|
|
11
|
+
declare function TooltipProvider({
|
|
12
|
+
delayDuration,
|
|
13
|
+
...props
|
|
14
|
+
}: TooltipProviderProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare function Tooltip({
|
|
16
|
+
...props
|
|
17
|
+
}: TooltipProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
declare function TooltipTrigger({
|
|
19
|
+
...props
|
|
20
|
+
}: TooltipTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
declare function TooltipContent({
|
|
22
|
+
className,
|
|
23
|
+
sideOffset,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}: TooltipContentProps): react_jsx_runtime0.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Tooltip, TooltipContent, TooltipContentProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps };
|
|
29
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import{cn as e}from"../lib/utils.js";import{Tooltip as t}from"radix-ui";import{jsx as n,jsxs as r}from"react/jsx-runtime";function TooltipProvider({delayDuration:e=0,...r}){return n(t.Provider,{"data-slot":`tooltip-provider`,delayDuration:e,...r})}function Tooltip({...e}){return n(t.Root,{"data-slot":`tooltip`,...e})}function TooltipTrigger({...e}){return n(t.Trigger,{"data-slot":`tooltip-trigger`,...e})}function TooltipContent({className:i,sideOffset:a=0,children:o,...s}){return n(t.Portal,{children:r(t.Content,{"data-slot":`tooltip-content`,sideOffset:a,className:e(`bg-foreground text-background z-50 w-fit max-w-xs rounded-md px-3 py-1.5 text-xs origin-(--radix-tooltip-content-transform-origin)`,`data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95`,`data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,i),...s,children:[o,n(t.Arrow,{className:`size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 translate-y-[calc(-50%-2px)]`})]})})}export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger};
|
|
2
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":["TooltipPrimitive"],"sources":["../../src/components/tooltip.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { Tooltip as TooltipPrimitive } from 'radix-ui'\n\nimport { cn } from '../lib/utils'\n\nexport type TooltipProviderProps = React.ComponentProps<typeof TooltipPrimitive.Provider>\n\nexport type TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>\n\nexport type TooltipTriggerProps = React.ComponentProps<typeof TooltipPrimitive.Trigger>\n\nexport type TooltipContentProps = React.ComponentProps<typeof TooltipPrimitive.Content>\n\nfunction TooltipProvider({ delayDuration = 0, ...props }: TooltipProviderProps) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />\n}\n\nfunction Tooltip({ ...props }: TooltipProps) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\nfunction TooltipTrigger({ ...props }: TooltipTriggerProps) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({ className, sideOffset = 0, children, ...props }: TooltipContentProps) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'bg-foreground text-background z-50 w-fit max-w-xs rounded-md px-3 py-1.5 text-xs origin-(--radix-tooltip-content-transform-origin)',\n 'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95',\n 'data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',\n 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 translate-y-[calc(-50%-2px)]\" />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n )\n}\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }\n"],"mappings":"uJAcA,SAAS,gBAAgB,CAAE,gBAAgB,EAAG,GAAG,GAA+B,CAC9E,OAAO,EAACA,EAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAI,EAAS,CAAA,CAG5G,SAAS,QAAQ,CAAE,GAAG,GAAuB,CAC3C,OAAO,EAACA,EAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAI,EAAS,CAAA,CAGjE,SAAS,eAAe,CAAE,GAAG,GAA8B,CACzD,OAAO,EAACA,EAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAI,EAAS,CAAA,CAG5E,SAAS,eAAe,CAAE,YAAW,aAAa,EAAG,WAAU,GAAG,GAA8B,CAC9F,OACE,EAACA,EAAiB,OAAlB,CAAA,SACE,EAACA,EAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAW,EACT,qIACA,8KACA,yEACA,8JACA,EACD,CACD,GAAI,WAVN,CAYG,EACD,EAACA,EAAiB,MAAlB,CAAwB,UAAU,mGAAqG,CAAA,CAC9G,GACH,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../chunk-IpJEthwI.js";import*as e from"react";function useIsMobile(){let[t,n]=e.useState(void 0);return e.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),onChange=()=>{n(window.innerWidth<768)};return e.addEventListener(`change`,onChange),n(window.innerWidth<768),()=>e.removeEventListener(`change`,onChange)},[]),!!t}export{useIsMobile};
|
|
2
|
+
//# sourceMappingURL=use-mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.js","names":[],"sources":["../../src/hooks/use-mobile.ts"],"sourcesContent":["import * as React from 'react'\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n }\n mql.addEventListener('change', onChange)\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n return () => mql.removeEventListener('change', onChange)\n }, [])\n\n return !!isMobile\n}\n"],"mappings":"qDAIA,SAAgB,aAAc,CAC5B,GAAM,CAAC,EAAU,GAAe,EAAM,SAA8B,IAAA,GAAU,CAY9E,OAVA,EAAM,cAAgB,CACpB,IAAM,EAAM,OAAO,WAAW,qBAA0C,CAClE,aAAiB,CACrB,EAAY,OAAO,WAAa,IAAkB,EAIpD,OAFA,EAAI,iBAAiB,SAAU,SAAS,CACxC,EAAY,OAAO,WAAa,IAAkB,KACrC,EAAI,oBAAoB,SAAU,SAAS,EACvD,EAAE,CAAC,CAEC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
+
import { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion.js";
|
|
2
|
+
import { Button, ButtonProps, buttonVariants } from "./components/button.js";
|
|
3
|
+
import { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogFooterProps, AlertDialogHeader, AlertDialogHeaderProps, AlertDialogMedia, AlertDialogMediaProps, AlertDialogOverlay, AlertDialogOverlayProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerProps } from "./components/alert-dialog.js";
|
|
1
4
|
import { Alert, AlertAction, AlertActionProps, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps } from "./components/alert.js";
|
|
2
5
|
import { Avatar, AvatarBadge, AvatarBadgeProps, AvatarFallback, AvatarFallbackProps, AvatarGroup, AvatarGroupCount, AvatarGroupCountProps, AvatarGroupProps, AvatarImage, AvatarImageProps, AvatarProps } from "./components/avatar.js";
|
|
3
|
-
import {
|
|
6
|
+
import { Badge, BadgeProps, badgeVariants } from "./components/badge.js";
|
|
7
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbList, BreadcrumbListProps, BreadcrumbPage, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps } from "./components/breadcrumb.js";
|
|
8
|
+
import { Separator, SeparatorProps } from "./components/separator.js";
|
|
9
|
+
import { ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupSeparatorProps, ButtonGroupText, ButtonGroupTextProps, buttonGroupVariants } from "./components/button-group.js";
|
|
10
|
+
import { Calendar, CalendarDayButton, CalendarDayButtonProps, CalendarProps, DateRange } from "./components/calendar.js";
|
|
4
11
|
import { Card, CardAction, CardActionProps, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps } from "./components/card.js";
|
|
12
|
+
import { Carousel, CarouselApi, CarouselContent, CarouselContentProps, CarouselItem, CarouselItemProps, CarouselNext, CarouselNextProps, CarouselPrevious, CarouselPreviousProps, CarouselProps, useCarousel } from "./components/carousel.js";
|
|
13
|
+
import { Center, CenterProps, centerVariants } from "./components/center.js";
|
|
14
|
+
import { Bar, BarChart, CartesianGrid, ChartConfig, ChartContainer, ChartContainerProps, ChartLegend, ChartLegendContent, ChartLegendContentProps, ChartLegendProps, ChartStyle, ChartStyleProps, ChartTooltip, ChartTooltipContent, ChartTooltipContentProps, ChartTooltipProps, XAxis } from "./components/chart.js";
|
|
15
|
+
import { Checkbox, CheckboxProps } from "./components/checkbox.js";
|
|
16
|
+
import { Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps } from "./components/collapsible.js";
|
|
17
|
+
import { Combobox, ComboboxChip, ComboboxChipProps, ComboboxChips, ComboboxChipsInput, ComboboxChipsInputProps, ComboboxChipsProps, ComboboxClear, ComboboxClearProps, ComboboxCollection, ComboboxCollectionProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxLabel, ComboboxLabelProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxSeparator, ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerProps, ComboboxValue, ComboboxValueProps, useComboboxAnchor } from "./components/combobox.js";
|
|
5
18
|
import { Dialog, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps } from "./components/dialog.js";
|
|
19
|
+
import { Command, CommandDialog, CommandDialogProps, CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps } from "./components/command.js";
|
|
20
|
+
import { Container, ContainerProps, containerVariants } from "./components/container.js";
|
|
6
21
|
import { Drawer, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOverlay, DrawerOverlayProps, DrawerPortal, DrawerPortalProps, DrawerProps, DrawerTitle, DrawerTitleProps, DrawerTrigger, DrawerTriggerProps } from "./components/drawer.js";
|
|
7
22
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuPortalProps, DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuShortcut, DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTrigger, DropdownMenuSubTriggerProps, DropdownMenuTrigger, DropdownMenuTriggerProps } from "./components/dropdown-menu.js";
|
|
8
23
|
import { Empty, EmptyContent, EmptyContentProps, EmptyDescription, EmptyDescriptionProps, EmptyHeader, EmptyHeaderProps, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyTitle, EmptyTitleProps } from "./components/empty.js";
|
|
9
24
|
import { Label, LabelProps } from "./components/label.js";
|
|
10
25
|
import { Field, FieldContent, FieldContentProps, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorProps, FieldGroup, FieldGroupProps, FieldLabel, FieldLabelProps, FieldLegend, FieldLegendProps, FieldProps, FieldSeparator, FieldSeparatorProps, FieldSet, FieldSetProps, FieldTitle, FieldTitleProps } from "./components/field.js";
|
|
26
|
+
import { Group, GroupProps, groupVariants } from "./components/group.js";
|
|
27
|
+
import { HoverCard, HoverCardContent, HoverCardContentProps, HoverCardProps, HoverCardTrigger, HoverCardTriggerProps } from "./components/hover-card.js";
|
|
28
|
+
import { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps } from "./components/input-group.js";
|
|
11
29
|
import { InputOTP, InputOTPGroup, InputOTPGroupProps, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "./components/input-otp.js";
|
|
12
30
|
import { Input, InputProps } from "./components/input.js";
|
|
13
|
-
import { Kbd, KbdGroup } from "./components/kbd.js";
|
|
31
|
+
import { Kbd, KbdGroup, KbdGroupProps, KbdProps } from "./components/kbd.js";
|
|
14
32
|
import { NativeSelect, NativeSelectOptGroup, NativeSelectOptGroupProps, NativeSelectOption, NativeSelectOptionProps, NativeSelectProps } from "./components/native-select.js";
|
|
33
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuIndicator, NavigationMenuIndicatorProps, NavigationMenuItem, NavigationMenuItemProps, NavigationMenuLink, NavigationMenuLinkProps, NavigationMenuList, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport, NavigationMenuViewportProps, navigationMenuTriggerStyle } from "./components/navigation-menu.js";
|
|
34
|
+
import { Pagination, PaginationContent, PaginationContentProps, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationItemProps, PaginationLink, PaginationLinkProps, PaginationNext, PaginationNextProps, PaginationPrevious, PaginationPreviousProps, PaginationProps } from "./components/pagination.js";
|
|
35
|
+
import { Popover, PopoverAnchor, PopoverAnchorProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverHeader, PopoverHeaderProps, PopoverProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps } from "./components/popover.js";
|
|
36
|
+
import { Progress, ProgressProps } from "./components/progress.js";
|
|
37
|
+
import { RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioGroupProps } from "./components/radio-group.js";
|
|
38
|
+
import { ResizableHandle, ResizableHandleProps, ResizablePanel, ResizablePanelGroup, ResizablePanelGroupProps, ResizablePanelProps } from "./components/resizable.js";
|
|
39
|
+
import { ScrollArea, ScrollAreaProps, ScrollBar, ScrollBarProps } from "./components/scroll-area.js";
|
|
15
40
|
import { Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupProps, SelectItem, SelectItemProps, SelectLabel, SelectLabelProps, SelectProps, SelectScrollDownButton, SelectScrollDownButtonProps, SelectScrollUpButton, SelectScrollUpButtonProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps } from "./components/select.js";
|
|
16
|
-
import {
|
|
41
|
+
import { Sheet, SheetClose, SheetCloseProps, SheetContent, SheetContentProps, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetOverlay, SheetOverlayProps, SheetPortal, SheetPortalProps, SheetProps, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps } from "./components/sheet.js";
|
|
42
|
+
import { Tooltip, TooltipContent, TooltipContentProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps } from "./components/tooltip.js";
|
|
43
|
+
import { Sidebar, SidebarContent, SidebarContentProps, SidebarFooter, SidebarFooterProps, SidebarGroup, SidebarGroupAction, SidebarGroupActionProps, SidebarGroupContent, SidebarGroupContentProps, SidebarGroupLabel, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeader, SidebarHeaderProps, SidebarInput, SidebarInputProps, SidebarInset, SidebarInsetProps, SidebarMenu, SidebarMenuAction, SidebarMenuActionProps, SidebarMenuBadge, SidebarMenuBadgeProps, SidebarMenuButton, SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeleton, SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailProps, SidebarSeparator, SidebarSeparatorProps, SidebarTrigger, SidebarTriggerProps, useSidebar } from "./components/sidebar.js";
|
|
17
44
|
import { Skeleton, SkeletonProps } from "./components/skeleton.js";
|
|
45
|
+
import { Slider, SliderProps } from "./components/slider.js";
|
|
18
46
|
import { Toaster, ToasterProps, toast } from "./components/sonner.js";
|
|
19
|
-
import { Spinner } from "./components/spinner.js";
|
|
47
|
+
import { Spinner, SpinnerProps, spinnerVariants } from "./components/spinner.js";
|
|
48
|
+
import { Stack, StackProps, stackVariants } from "./components/stack.js";
|
|
49
|
+
import { Switch, SwitchProps } from "./components/switch.js";
|
|
50
|
+
import { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps } from "./components/table.js";
|
|
51
|
+
import { Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps, tabsListVariants } from "./components/tabs.js";
|
|
52
|
+
import { Textarea, TextareaProps } from "./components/textarea.js";
|
|
53
|
+
import { ModeToggle, ModeToggleProps, Theme, ThemeProvider, ThemeProviderProps, ThemeProviderState, useTheme } from "./components/theme.js";
|
|
54
|
+
import { Toggle, ToggleProps, toggleVariants } from "./components/toggle.js";
|
|
55
|
+
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "./components/toggle-group.js";
|
|
56
|
+
import { useIsMobile } from "./hooks/use-mobile.js";
|
|
20
57
|
import { cn } from "./lib/utils.js";
|
|
21
|
-
export { Alert, AlertAction, AlertActionProps, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps, Avatar, AvatarBadge, AvatarBadgeProps, AvatarFallback, AvatarFallbackProps, AvatarGroup, AvatarGroupCount, AvatarGroupCountProps, AvatarGroupProps, AvatarImage, AvatarImageProps, AvatarProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps, Dialog, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, Drawer, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOverlay, DrawerOverlayProps, DrawerPortal, DrawerPortalProps, DrawerProps, DrawerTitle, DrawerTitleProps, DrawerTrigger, DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuPortalProps, DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuShortcut, DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTrigger, DropdownMenuSubTriggerProps, DropdownMenuTrigger, DropdownMenuTriggerProps, Empty, EmptyContent, EmptyContentProps, EmptyDescription, EmptyDescriptionProps, EmptyHeader, EmptyHeaderProps, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyTitle, EmptyTitleProps, Field, FieldContent, FieldContentProps, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorProps, FieldGroup, FieldGroupProps, FieldLabel, FieldLabelProps, FieldLegend, FieldLegendProps, FieldProps, FieldSeparator, FieldSeparatorProps, FieldSet, FieldSetProps, FieldTitle, FieldTitleProps, Input, InputOTP, InputOTPGroup, InputOTPGroupProps, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps, InputProps, Kbd, KbdGroup, Label, LabelProps, NativeSelect, NativeSelectOptGroup, NativeSelectOptGroupProps, NativeSelectOption, NativeSelectOptionProps, NativeSelectProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupProps, SelectItem, SelectItemProps, SelectLabel, SelectLabelProps, SelectProps, SelectScrollDownButton, SelectScrollDownButtonProps, SelectScrollUpButton, SelectScrollUpButtonProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Separator, SeparatorProps, Skeleton, SkeletonProps, Spinner, Toaster, ToasterProps, buttonVariants, cn, toast };
|
|
58
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps, Alert, AlertAction, AlertActionProps, AlertDescription, AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogContent, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogFooterProps, AlertDialogHeader, AlertDialogHeaderProps, AlertDialogMedia, AlertDialogMediaProps, AlertDialogOverlay, AlertDialogOverlayProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerProps, AlertProps, AlertTitle, AlertTitleProps, Avatar, AvatarBadge, AvatarBadgeProps, AvatarFallback, AvatarFallbackProps, AvatarGroup, AvatarGroupCount, AvatarGroupCountProps, AvatarGroupProps, AvatarImage, AvatarImageProps, AvatarProps, Badge, BadgeProps, Bar, BarChart, Breadcrumb, BreadcrumbEllipsis, BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbList, BreadcrumbListProps, BreadcrumbPage, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparator, BreadcrumbSeparatorProps, Button, ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupSeparatorProps, ButtonGroupText, ButtonGroupTextProps, ButtonProps, Calendar, CalendarDayButton, CalendarDayButtonProps, CalendarProps, Card, CardAction, CardActionProps, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps, Carousel, CarouselApi, CarouselContent, CarouselContentProps, CarouselItem, CarouselItemProps, CarouselNext, CarouselNextProps, CarouselPrevious, CarouselPreviousProps, CarouselProps, CartesianGrid, Center, CenterProps, ChartConfig, ChartContainer, ChartContainerProps, ChartLegend, ChartLegendContent, ChartLegendContentProps, ChartLegendProps, ChartStyle, ChartStyleProps, ChartTooltip, ChartTooltipContent, ChartTooltipContentProps, ChartTooltipProps, Checkbox, CheckboxProps, Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps, Combobox, ComboboxChip, ComboboxChipProps, ComboboxChips, ComboboxChipsInput, ComboboxChipsInputProps, ComboboxChipsProps, ComboboxClear, ComboboxClearProps, ComboboxCollection, ComboboxCollectionProps, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxLabel, ComboboxLabelProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxSeparator, ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerProps, ComboboxValue, ComboboxValueProps, Command, CommandDialog, CommandDialogProps, CommandEmpty, CommandEmptyProps, CommandGroup, CommandGroupProps, CommandInput, CommandInputProps, CommandItem, CommandItemProps, CommandList, CommandListProps, CommandProps, CommandSeparator, CommandSeparatorProps, CommandShortcut, CommandShortcutProps, Container, ContainerProps, DateRange, Dialog, DialogClose, DialogCloseProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, Drawer, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerOverlay, DrawerOverlayProps, DrawerPortal, DrawerPortalProps, DrawerProps, DrawerTitle, DrawerTitleProps, DrawerTrigger, DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuPortalProps, DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioGroupProps, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuSeparatorProps, DropdownMenuShortcut, DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubContentProps, DropdownMenuSubProps, DropdownMenuSubTrigger, DropdownMenuSubTriggerProps, DropdownMenuTrigger, DropdownMenuTriggerProps, Empty, EmptyContent, EmptyContentProps, EmptyDescription, EmptyDescriptionProps, EmptyHeader, EmptyHeaderProps, EmptyMedia, EmptyMediaProps, EmptyProps, EmptyTitle, EmptyTitleProps, Field, FieldContent, FieldContentProps, FieldDescription, FieldDescriptionProps, FieldError, FieldErrorProps, FieldGroup, FieldGroupProps, FieldLabel, FieldLabelProps, FieldLegend, FieldLegendProps, FieldProps, FieldSeparator, FieldSeparatorProps, FieldSet, FieldSetProps, FieldTitle, FieldTitleProps, Group, GroupProps, HoverCard, HoverCardContent, HoverCardContentProps, HoverCardProps, HoverCardTrigger, HoverCardTriggerProps, Input, InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps, InputOTP, InputOTPGroup, InputOTPGroupProps, InputOTPProps, InputOTPSeparator, InputOTPSeparatorProps, InputOTPSlot, InputOTPSlotProps, InputProps, Kbd, KbdGroup, KbdGroupProps, KbdProps, Label, LabelProps, ModeToggle, ModeToggleProps, NativeSelect, NativeSelectOptGroup, NativeSelectOptGroupProps, NativeSelectOption, NativeSelectOptionProps, NativeSelectProps, NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuIndicator, NavigationMenuIndicatorProps, NavigationMenuItem, NavigationMenuItemProps, NavigationMenuLink, NavigationMenuLinkProps, NavigationMenuList, NavigationMenuListProps, NavigationMenuProps, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport, NavigationMenuViewportProps, Pagination, PaginationContent, PaginationContentProps, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationItemProps, PaginationLink, PaginationLinkProps, PaginationNext, PaginationNextProps, PaginationPrevious, PaginationPreviousProps, PaginationProps, Popover, PopoverAnchor, PopoverAnchorProps, PopoverContent, PopoverContentProps, PopoverDescription, PopoverDescriptionProps, PopoverHeader, PopoverHeaderProps, PopoverProps, PopoverTitle, PopoverTitleProps, PopoverTrigger, PopoverTriggerProps, Progress, ProgressProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, RadioGroup, RadioGroupItem, RadioGroupItemProps, RadioGroupProps, ResizableHandle, ResizableHandleProps, ResizablePanel, ResizablePanelGroup, ResizablePanelGroupProps, ResizablePanelProps, ScrollArea, ScrollAreaProps, ScrollBar, ScrollBarProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupProps, SelectItem, SelectItemProps, SelectLabel, SelectLabelProps, SelectProps, SelectScrollDownButton, SelectScrollDownButtonProps, SelectScrollUpButton, SelectScrollUpButtonProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Separator, SeparatorProps, Sheet, SheetClose, SheetCloseProps, SheetContent, SheetContentProps, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetOverlay, SheetOverlayProps, SheetPortal, SheetPortalProps, SheetProps, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps, Sidebar, SidebarContent, SidebarContentProps, SidebarFooter, SidebarFooterProps, SidebarGroup, SidebarGroupAction, SidebarGroupActionProps, SidebarGroupContent, SidebarGroupContentProps, SidebarGroupLabel, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeader, SidebarHeaderProps, SidebarInput, SidebarInputProps, SidebarInset, SidebarInsetProps, SidebarMenu, SidebarMenuAction, SidebarMenuActionProps, SidebarMenuBadge, SidebarMenuBadgeProps, SidebarMenuButton, SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeleton, SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarProps, SidebarProvider, SidebarProviderProps, SidebarRail, SidebarRailProps, SidebarSeparator, SidebarSeparatorProps, SidebarTrigger, SidebarTriggerProps, Skeleton, SkeletonProps, Slider, SliderProps, Spinner, SpinnerProps, Stack, StackProps, Switch, SwitchProps, Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Tabs, TabsContent, TabsContentProps, TabsList, TabsListProps, TabsProps, TabsTrigger, TabsTriggerProps, Textarea, TextareaProps, Theme, ThemeProvider, ThemeProviderProps, ThemeProviderState, Toaster, ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleProps, Tooltip, TooltipContent, TooltipContentProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps, XAxis, badgeVariants, buttonGroupVariants, buttonVariants, centerVariants, cn, containerVariants, groupVariants, navigationMenuTriggerStyle, spinnerVariants, stackVariants, tabsListVariants, toast, toggleVariants, useCarousel, useComboboxAnchor, useIsMobile, useSidebar, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cn as e}from"./lib/utils.js";import{Alert as t,AlertAction as n,AlertDescription as r,AlertTitle as i}from"./components/alert.js";import{Avatar as a,AvatarBadge as o,AvatarFallback as s,AvatarGroup as c,AvatarGroupCount as l,AvatarImage as u}from"./components/avatar.js";import{Button as d,buttonVariants as f}from"./components/button.js";import{Card as p,CardAction as m,CardContent as h,CardDescription as g,CardFooter as _,CardHeader as v,CardTitle as y}from"./components/card.js";import{Dialog as b,DialogClose as x,DialogContent as S,DialogDescription as C,DialogFooter as w,DialogHeader as T,DialogOverlay as E,DialogPortal as D,DialogTitle as O,DialogTrigger as k}from"./components/dialog.js";import{Drawer as A,DrawerClose as j,DrawerContent as M,DrawerDescription as N,DrawerFooter as P,DrawerHeader as F,DrawerOverlay as I,DrawerPortal as L,DrawerTitle as R,DrawerTrigger as z}from"./components/drawer.js";import{DropdownMenu as B,DropdownMenuCheckboxItem as V,DropdownMenuContent as H,DropdownMenuGroup as U,DropdownMenuItem as W,DropdownMenuLabel as G,DropdownMenuPortal as K,DropdownMenuRadioGroup as q,DropdownMenuRadioItem as J,DropdownMenuSeparator as Y,DropdownMenuShortcut as X,DropdownMenuSub as Z,DropdownMenuSubContent as Q,DropdownMenuSubTrigger as $,DropdownMenuTrigger as ee}from"./components/dropdown-menu.js";import{Empty as te,EmptyContent as ne,EmptyDescription as re,EmptyHeader as ie,EmptyMedia as ae,EmptyTitle as oe}from"./components/empty.js";import{Label as se}from"./components/label.js";import{Separator as ce}from"./components/separator.js";import{Field as le,FieldContent as ue,FieldDescription as de,FieldError as fe,FieldGroup as pe,FieldLabel as me,FieldLegend as he,FieldSeparator as ge,FieldSet as _e,FieldTitle as ve}from"./components/field.js";import{Input as ye}from"./components/input.js";import{InputOTP as be,InputOTPGroup as xe,InputOTPSeparator as Se,InputOTPSlot as Ce,REGEXP_ONLY_CHARS as we,REGEXP_ONLY_DIGITS as Te,REGEXP_ONLY_DIGITS_AND_CHARS as Ee}from"./components/input-otp.js";import{Kbd as De,KbdGroup as Oe}from"./components/kbd.js";import{NativeSelect as ke,NativeSelectOptGroup as Ae,NativeSelectOption as je}from"./components/native-select.js";import{Select as Me,SelectContent as Ne,SelectGroup as Pe,SelectItem as Fe,SelectLabel as Ie,SelectScrollDownButton as Le,SelectScrollUpButton as Re,SelectSeparator as ze,SelectTrigger as Be,SelectValue as Ve}from"./components/select.js";import{Skeleton as He}from"./components/skeleton.js";import{Toaster as Ue,toast as We}from"./components/sonner.js";import{Spinner as Ge}from"./components/spinner.js";export{t as Alert,n as AlertAction,r as AlertDescription,i as AlertTitle,a as Avatar,o as AvatarBadge,s as AvatarFallback,c as AvatarGroup,l as AvatarGroupCount,u as AvatarImage,d as Button,p as Card,m as CardAction,h as CardContent,g as CardDescription,_ as CardFooter,v as CardHeader,y as CardTitle,b as Dialog,x as DialogClose,S as DialogContent,C as DialogDescription,w as DialogFooter,T as DialogHeader,E as DialogOverlay,D as DialogPortal,O as DialogTitle,k as DialogTrigger,A as Drawer,j as DrawerClose,M as DrawerContent,N as DrawerDescription,P as DrawerFooter,F as DrawerHeader,I as DrawerOverlay,L as DrawerPortal,R as DrawerTitle,z as DrawerTrigger,B as DropdownMenu,V as DropdownMenuCheckboxItem,H as DropdownMenuContent,U as DropdownMenuGroup,W as DropdownMenuItem,G as DropdownMenuLabel,K as DropdownMenuPortal,q as DropdownMenuRadioGroup,J as DropdownMenuRadioItem,Y as DropdownMenuSeparator,X as DropdownMenuShortcut,Z as DropdownMenuSub,Q as DropdownMenuSubContent,$ as DropdownMenuSubTrigger,ee as DropdownMenuTrigger,te as Empty,ne as EmptyContent,re as EmptyDescription,ie as EmptyHeader,ae as EmptyMedia,oe as EmptyTitle,le as Field,ue as FieldContent,de as FieldDescription,fe as FieldError,pe as FieldGroup,me as FieldLabel,he as FieldLegend,ge as FieldSeparator,_e as FieldSet,ve as FieldTitle,ye as Input,be as InputOTP,xe as InputOTPGroup,Se as InputOTPSeparator,Ce as InputOTPSlot,De as Kbd,Oe as KbdGroup,se as Label,ke as NativeSelect,Ae as NativeSelectOptGroup,je as NativeSelectOption,we as REGEXP_ONLY_CHARS,Te as REGEXP_ONLY_DIGITS,Ee as REGEXP_ONLY_DIGITS_AND_CHARS,Me as Select,Ne as SelectContent,Pe as SelectGroup,Fe as SelectItem,Ie as SelectLabel,Le as SelectScrollDownButton,Re as SelectScrollUpButton,ze as SelectSeparator,Be as SelectTrigger,Ve as SelectValue,ce as Separator,He as Skeleton,Ge as Spinner,Ue as Toaster,f as buttonVariants,e as cn,We as toast};
|
|
1
|
+
import{cn as e}from"./lib/utils.js";import{Accordion as t,AccordionContent as n,AccordionItem as r,AccordionTrigger as i}from"./components/accordion.js";import{Alert as a,AlertAction as o,AlertDescription as s,AlertTitle as c}from"./components/alert.js";import{Button as l,buttonVariants as u}from"./components/button.js";import{AlertDialog as d,AlertDialogAction as f,AlertDialogCancel as p,AlertDialogContent as m,AlertDialogDescription as h,AlertDialogFooter as g,AlertDialogHeader as _,AlertDialogMedia as v,AlertDialogOverlay as y,AlertDialogPortal as b,AlertDialogTitle as x,AlertDialogTrigger as S}from"./components/alert-dialog.js";import{Avatar as C,AvatarBadge as w,AvatarFallback as T,AvatarGroup as E,AvatarGroupCount as D,AvatarImage as O}from"./components/avatar.js";import{Badge as k,badgeVariants as A}from"./components/badge.js";import{Breadcrumb as j,BreadcrumbEllipsis as M,BreadcrumbItem as N,BreadcrumbLink as P,BreadcrumbList as F,BreadcrumbPage as I,BreadcrumbSeparator as L}from"./components/breadcrumb.js";import{Separator as R}from"./components/separator.js";import{ButtonGroup as z,ButtonGroupSeparator as B,ButtonGroupText as V,buttonGroupVariants as H}from"./components/button-group.js";import{Calendar as U,CalendarDayButton as W}from"./components/calendar.js";import{Card as G,CardAction as K,CardContent as q,CardDescription as J,CardFooter as Y,CardHeader as X,CardTitle as Z}from"./components/card.js";import{Carousel as Q,CarouselContent as $,CarouselItem as ee,CarouselNext as te,CarouselPrevious as ne,useCarousel as re}from"./components/carousel.js";import{Center as ie,centerVariants as ae}from"./components/center.js";import{Bar as oe,BarChart as se,CartesianGrid as ce,ChartContainer as le,ChartLegend as ue,ChartLegendContent as de,ChartStyle as fe,ChartTooltip as pe,ChartTooltipContent as me,XAxis as he}from"./components/chart.js";import{Checkbox as ge}from"./components/checkbox.js";import{Collapsible as _e,CollapsibleContent as ve,CollapsibleTrigger as ye}from"./components/collapsible.js";import{Input as be}from"./components/input.js";import{Textarea as xe}from"./components/textarea.js";import{InputGroup as Se,InputGroupAddon as Ce,InputGroupButton as we,InputGroupInput as Te,InputGroupText as Ee,InputGroupTextarea as De}from"./components/input-group.js";import{Combobox as Oe,ComboboxChip as ke,ComboboxChips as Ae,ComboboxChipsInput as je,ComboboxClear as Me,ComboboxCollection as Ne,ComboboxContent as Pe,ComboboxEmpty as Fe,ComboboxGroup as Ie,ComboboxInput as Le,ComboboxItem as Re,ComboboxLabel as ze,ComboboxList as Be,ComboboxSeparator as Ve,ComboboxTrigger as He,ComboboxValue as Ue,useComboboxAnchor as We}from"./components/combobox.js";import{Dialog as Ge,DialogClose as Ke,DialogContent as qe,DialogDescription as Je,DialogFooter as Ye,DialogHeader as Xe,DialogOverlay as Ze,DialogPortal as Qe,DialogTitle as $e,DialogTrigger as et}from"./components/dialog.js";import{Command as tt,CommandDialog as nt,CommandEmpty as rt,CommandGroup as it,CommandInput as at,CommandItem as ot,CommandList as st,CommandSeparator as ct,CommandShortcut as lt}from"./components/command.js";import{Container as ut,containerVariants as dt}from"./components/container.js";import{Drawer as ft,DrawerClose as pt,DrawerContent as mt,DrawerDescription as ht,DrawerFooter as gt,DrawerHeader as _t,DrawerOverlay as vt,DrawerPortal as yt,DrawerTitle as bt,DrawerTrigger as xt}from"./components/drawer.js";import{DropdownMenu as St,DropdownMenuCheckboxItem as Ct,DropdownMenuContent as wt,DropdownMenuGroup as Tt,DropdownMenuItem as Et,DropdownMenuLabel as Dt,DropdownMenuPortal as Ot,DropdownMenuRadioGroup as kt,DropdownMenuRadioItem as At,DropdownMenuSeparator as jt,DropdownMenuShortcut as Mt,DropdownMenuSub as Nt,DropdownMenuSubContent as Pt,DropdownMenuSubTrigger as Ft,DropdownMenuTrigger as It}from"./components/dropdown-menu.js";import{Empty as Lt,EmptyContent as Rt,EmptyDescription as zt,EmptyHeader as Bt,EmptyMedia as Vt,EmptyTitle as Ht}from"./components/empty.js";import{Label as Ut}from"./components/label.js";import{Field as Wt,FieldContent as Gt,FieldDescription as Kt,FieldError as qt,FieldGroup as Jt,FieldLabel as Yt,FieldLegend as Xt,FieldSeparator as Zt,FieldSet as Qt,FieldTitle as $t}from"./components/field.js";import{Group as en,groupVariants as tn}from"./components/group.js";import{HoverCard as nn,HoverCardContent as rn,HoverCardTrigger as an}from"./components/hover-card.js";import{InputOTP as on,InputOTPGroup as sn,InputOTPSeparator as cn,InputOTPSlot as ln,REGEXP_ONLY_CHARS as un,REGEXP_ONLY_DIGITS as dn,REGEXP_ONLY_DIGITS_AND_CHARS as fn}from"./components/input-otp.js";import{Kbd as pn,KbdGroup as mn}from"./components/kbd.js";import{NativeSelect as hn,NativeSelectOptGroup as gn,NativeSelectOption as _n}from"./components/native-select.js";import{NavigationMenu as vn,NavigationMenuContent as yn,NavigationMenuIndicator as bn,NavigationMenuItem as xn,NavigationMenuLink as Sn,NavigationMenuList as Cn,NavigationMenuTrigger as wn,NavigationMenuViewport as Tn,navigationMenuTriggerStyle as En}from"./components/navigation-menu.js";import{Pagination as Dn,PaginationContent as On,PaginationEllipsis as kn,PaginationItem as An,PaginationLink as jn,PaginationNext as Mn,PaginationPrevious as Nn}from"./components/pagination.js";import{Popover as Pn,PopoverAnchor as Fn,PopoverContent as In,PopoverDescription as Ln,PopoverHeader as Rn,PopoverTitle as zn,PopoverTrigger as Bn}from"./components/popover.js";import{Progress as Vn}from"./components/progress.js";import{RadioGroup as Hn,RadioGroupItem as Un}from"./components/radio-group.js";import{ResizableHandle as Wn,ResizablePanel as Gn,ResizablePanelGroup as Kn}from"./components/resizable.js";import{ScrollArea as qn,ScrollBar as Jn}from"./components/scroll-area.js";import{Select as Yn,SelectContent as Xn,SelectGroup as Zn,SelectItem as Qn,SelectLabel as $n,SelectScrollDownButton as er,SelectScrollUpButton as tr,SelectSeparator as nr,SelectTrigger as rr,SelectValue as ir}from"./components/select.js";import{Sheet as ar,SheetClose as or,SheetContent as sr,SheetDescription as cr,SheetFooter as lr,SheetHeader as ur,SheetOverlay as dr,SheetPortal as fr,SheetTitle as pr,SheetTrigger as mr}from"./components/sheet.js";import{useIsMobile as hr}from"./hooks/use-mobile.js";import{Skeleton as gr}from"./components/skeleton.js";import{Tooltip as _r,TooltipContent as vr,TooltipProvider as yr,TooltipTrigger as br}from"./components/tooltip.js";import{Sidebar as xr,SidebarContent as Sr,SidebarFooter as Cr,SidebarGroup as wr,SidebarGroupAction as Tr,SidebarGroupContent as Er,SidebarGroupLabel as Dr,SidebarHeader as Or,SidebarInput as kr,SidebarInset as Ar,SidebarMenu as jr,SidebarMenuAction as Mr,SidebarMenuBadge as Nr,SidebarMenuButton as Pr,SidebarMenuItem as Fr,SidebarMenuSkeleton as Ir,SidebarMenuSub as Lr,SidebarMenuSubButton as Rr,SidebarMenuSubItem as zr,SidebarProvider as Br,SidebarRail as Vr,SidebarSeparator as Hr,SidebarTrigger as Ur,useSidebar as Wr}from"./components/sidebar.js";import{Slider as Gr}from"./components/slider.js";import{Toaster as Kr,toast as qr}from"./components/sonner.js";import{Spinner as Jr,spinnerVariants as Yr}from"./components/spinner.js";import{Stack as Xr,stackVariants as Zr}from"./components/stack.js";import{Switch as Qr}from"./components/switch.js";import{Table as $r,TableBody as ei,TableCaption as ti,TableCell as ni,TableFooter as ri,TableHead as ii,TableHeader as ai,TableRow as oi}from"./components/table.js";import{Tabs as si,TabsContent as ci,TabsList as li,TabsTrigger as ui,tabsListVariants as di}from"./components/tabs.js";import{ModeToggle as fi,ThemeProvider as pi,useTheme as mi}from"./components/theme.js";import{Toggle as hi,toggleVariants as gi}from"./components/toggle.js";import{ToggleGroup as _i,ToggleGroupItem as vi}from"./components/toggle-group.js";export{t as Accordion,n as AccordionContent,r as AccordionItem,i as AccordionTrigger,a as Alert,o as AlertAction,s as AlertDescription,d as AlertDialog,f as AlertDialogAction,p as AlertDialogCancel,m as AlertDialogContent,h as AlertDialogDescription,g as AlertDialogFooter,_ as AlertDialogHeader,v as AlertDialogMedia,y as AlertDialogOverlay,b as AlertDialogPortal,x as AlertDialogTitle,S as AlertDialogTrigger,c as AlertTitle,C as Avatar,w as AvatarBadge,T as AvatarFallback,E as AvatarGroup,D as AvatarGroupCount,O as AvatarImage,k as Badge,oe as Bar,se as BarChart,j as Breadcrumb,M as BreadcrumbEllipsis,N as BreadcrumbItem,P as BreadcrumbLink,F as BreadcrumbList,I as BreadcrumbPage,L as BreadcrumbSeparator,l as Button,z as ButtonGroup,B as ButtonGroupSeparator,V as ButtonGroupText,U as Calendar,W as CalendarDayButton,G as Card,K as CardAction,q as CardContent,J as CardDescription,Y as CardFooter,X as CardHeader,Z as CardTitle,Q as Carousel,$ as CarouselContent,ee as CarouselItem,te as CarouselNext,ne as CarouselPrevious,ce as CartesianGrid,ie as Center,le as ChartContainer,ue as ChartLegend,de as ChartLegendContent,fe as ChartStyle,pe as ChartTooltip,me as ChartTooltipContent,ge as Checkbox,_e as Collapsible,ve as CollapsibleContent,ye as CollapsibleTrigger,Oe as Combobox,ke as ComboboxChip,Ae as ComboboxChips,je as ComboboxChipsInput,Me as ComboboxClear,Ne as ComboboxCollection,Pe as ComboboxContent,Fe as ComboboxEmpty,Ie as ComboboxGroup,Le as ComboboxInput,Re as ComboboxItem,ze as ComboboxLabel,Be as ComboboxList,Ve as ComboboxSeparator,He as ComboboxTrigger,Ue as ComboboxValue,tt as Command,nt as CommandDialog,rt as CommandEmpty,it as CommandGroup,at as CommandInput,ot as CommandItem,st as CommandList,ct as CommandSeparator,lt as CommandShortcut,ut as Container,Ge as Dialog,Ke as DialogClose,qe as DialogContent,Je as DialogDescription,Ye as DialogFooter,Xe as DialogHeader,Ze as DialogOverlay,Qe as DialogPortal,$e as DialogTitle,et as DialogTrigger,ft as Drawer,pt as DrawerClose,mt as DrawerContent,ht as DrawerDescription,gt as DrawerFooter,_t as DrawerHeader,vt as DrawerOverlay,yt as DrawerPortal,bt as DrawerTitle,xt as DrawerTrigger,St as DropdownMenu,Ct as DropdownMenuCheckboxItem,wt as DropdownMenuContent,Tt as DropdownMenuGroup,Et as DropdownMenuItem,Dt as DropdownMenuLabel,Ot as DropdownMenuPortal,kt as DropdownMenuRadioGroup,At as DropdownMenuRadioItem,jt as DropdownMenuSeparator,Mt as DropdownMenuShortcut,Nt as DropdownMenuSub,Pt as DropdownMenuSubContent,Ft as DropdownMenuSubTrigger,It as DropdownMenuTrigger,Lt as Empty,Rt as EmptyContent,zt as EmptyDescription,Bt as EmptyHeader,Vt as EmptyMedia,Ht as EmptyTitle,Wt as Field,Gt as FieldContent,Kt as FieldDescription,qt as FieldError,Jt as FieldGroup,Yt as FieldLabel,Xt as FieldLegend,Zt as FieldSeparator,Qt as FieldSet,$t as FieldTitle,en as Group,nn as HoverCard,rn as HoverCardContent,an as HoverCardTrigger,be as Input,Se as InputGroup,Ce as InputGroupAddon,we as InputGroupButton,Te as InputGroupInput,Ee as InputGroupText,De as InputGroupTextarea,on as InputOTP,sn as InputOTPGroup,cn as InputOTPSeparator,ln as InputOTPSlot,pn as Kbd,mn as KbdGroup,Ut as Label,fi as ModeToggle,hn as NativeSelect,gn as NativeSelectOptGroup,_n as NativeSelectOption,vn as NavigationMenu,yn as NavigationMenuContent,bn as NavigationMenuIndicator,xn as NavigationMenuItem,Sn as NavigationMenuLink,Cn as NavigationMenuList,wn as NavigationMenuTrigger,Tn as NavigationMenuViewport,Dn as Pagination,On as PaginationContent,kn as PaginationEllipsis,An as PaginationItem,jn as PaginationLink,Mn as PaginationNext,Nn as PaginationPrevious,Pn as Popover,Fn as PopoverAnchor,In as PopoverContent,Ln as PopoverDescription,Rn as PopoverHeader,zn as PopoverTitle,Bn as PopoverTrigger,Vn as Progress,un as REGEXP_ONLY_CHARS,dn as REGEXP_ONLY_DIGITS,fn as REGEXP_ONLY_DIGITS_AND_CHARS,Hn as RadioGroup,Un as RadioGroupItem,Wn as ResizableHandle,Gn as ResizablePanel,Kn as ResizablePanelGroup,qn as ScrollArea,Jn as ScrollBar,Yn as Select,Xn as SelectContent,Zn as SelectGroup,Qn as SelectItem,$n as SelectLabel,er as SelectScrollDownButton,tr as SelectScrollUpButton,nr as SelectSeparator,rr as SelectTrigger,ir as SelectValue,R as Separator,ar as Sheet,or as SheetClose,sr as SheetContent,cr as SheetDescription,lr as SheetFooter,ur as SheetHeader,dr as SheetOverlay,fr as SheetPortal,pr as SheetTitle,mr as SheetTrigger,xr as Sidebar,Sr as SidebarContent,Cr as SidebarFooter,wr as SidebarGroup,Tr as SidebarGroupAction,Er as SidebarGroupContent,Dr as SidebarGroupLabel,Or as SidebarHeader,kr as SidebarInput,Ar as SidebarInset,jr as SidebarMenu,Mr as SidebarMenuAction,Nr as SidebarMenuBadge,Pr as SidebarMenuButton,Fr as SidebarMenuItem,Ir as SidebarMenuSkeleton,Lr as SidebarMenuSub,Rr as SidebarMenuSubButton,zr as SidebarMenuSubItem,Br as SidebarProvider,Vr as SidebarRail,Hr as SidebarSeparator,Ur as SidebarTrigger,gr as Skeleton,Gr as Slider,Jr as Spinner,Xr as Stack,Qr as Switch,$r as Table,ei as TableBody,ti as TableCaption,ni as TableCell,ri as TableFooter,ii as TableHead,ai as TableHeader,oi as TableRow,si as Tabs,ci as TabsContent,li as TabsList,ui as TabsTrigger,xe as Textarea,pi as ThemeProvider,Kr as Toaster,hi as Toggle,_i as ToggleGroup,vi as ToggleGroupItem,_r as Tooltip,vr as TooltipContent,yr as TooltipProvider,br as TooltipTrigger,he as XAxis,A as badgeVariants,H as buttonGroupVariants,u as buttonVariants,ae as centerVariants,e as cn,dt as containerVariants,tn as groupVariants,En as navigationMenuTriggerStyle,Yr as spinnerVariants,Zr as stackVariants,di as tabsListVariants,qr as toast,gi as toggleVariants,re as useCarousel,We as useComboboxAnchor,hr as useIsMobile,Wr as useSidebar,mi as useTheme};
|