@codefast/ui 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZMF2SRE5.js → chunk-26W5NJTU.js} +1 -1
- package/dist/chunk-26W5NJTU.js.map +1 -0
- package/dist/chunk-3COHZ24E.cjs +2 -0
- package/dist/chunk-3COHZ24E.cjs.map +1 -0
- package/dist/{chunk-QEWITXOV.cjs → chunk-4MTN7WZ2.cjs} +1 -1
- package/dist/chunk-4MTN7WZ2.cjs.map +1 -0
- package/dist/chunk-5QETIFO4.js +2 -0
- package/dist/chunk-5QETIFO4.js.map +1 -0
- package/dist/{chunk-WECV77JD.cjs → chunk-5RJANBDJ.cjs} +1 -1
- package/dist/chunk-5RJANBDJ.cjs.map +1 -0
- package/dist/chunk-6UQKMUZG.cjs +2 -0
- package/dist/chunk-6UQKMUZG.cjs.map +1 -0
- package/dist/chunk-AVEDWLNQ.js +2 -0
- package/dist/chunk-AVEDWLNQ.js.map +1 -0
- package/dist/{chunk-YLE5XFEO.cjs → chunk-EW7DAPDC.cjs} +1 -1
- package/dist/chunk-EW7DAPDC.cjs.map +1 -0
- package/dist/{chunk-RSNKUKY7.js → chunk-HDHZESSG.js} +1 -1
- package/dist/chunk-HDHZESSG.js.map +1 -0
- package/dist/{chunk-GCHNSK5O.cjs → chunk-JMM2MTPI.cjs} +1 -1
- package/dist/chunk-JMM2MTPI.cjs.map +1 -0
- package/dist/{chunk-WRO3QIWH.js → chunk-JNOLIDCD.js} +1 -1
- package/dist/chunk-JNOLIDCD.js.map +1 -0
- package/dist/{chunk-F5TIIJJJ.cjs → chunk-LOJBMYTH.cjs} +1 -1
- package/dist/chunk-LOJBMYTH.cjs.map +1 -0
- package/dist/{chunk-A5ILA637.js → chunk-RBP4PBCK.js} +1 -1
- package/dist/chunk-RBP4PBCK.js.map +1 -0
- package/dist/{chunk-L7IASKCH.js → chunk-RVGKUNXC.js} +1 -1
- package/dist/{chunk-L7IASKCH.js.map → chunk-RVGKUNXC.js.map} +1 -1
- package/dist/{chunk-72NPDP3X.cjs → chunk-T3G5USVY.cjs} +1 -1
- package/dist/chunk-T3G5USVY.cjs.map +1 -0
- package/dist/chunk-VDVLCSO4.js +2 -0
- package/dist/chunk-VDVLCSO4.js.map +1 -0
- package/dist/{chunk-2OBTJ7SD.cjs → chunk-WKKCZQNO.cjs} +2 -2
- package/dist/chunk-WKKCZQNO.cjs.map +1 -0
- package/dist/{chunk-FNQFZJUG.js → chunk-WQFHFTYS.js} +1 -1
- package/dist/chunk-WQFHFTYS.js.map +1 -0
- package/dist/react/accordion.cjs.map +1 -1
- package/dist/react/accordion.js.map +1 -1
- package/dist/react/alert-dialog.cjs +1 -1
- package/dist/react/alert-dialog.cjs.map +1 -1
- package/dist/react/alert-dialog.js +1 -1
- package/dist/react/alert-dialog.js.map +1 -1
- package/dist/react/alert.cjs.map +1 -1
- package/dist/react/alert.js.map +1 -1
- package/dist/react/avatar.cjs.map +1 -1
- package/dist/react/avatar.js.map +1 -1
- package/dist/react/blockquote.cjs.map +1 -1
- package/dist/react/blockquote.js.map +1 -1
- package/dist/react/box.cjs.map +1 -1
- package/dist/react/box.js.map +1 -1
- package/dist/react/breadcrumb.cjs.map +1 -1
- package/dist/react/breadcrumb.js.map +1 -1
- package/dist/react/button.cjs +1 -1
- package/dist/react/button.js +1 -1
- package/dist/react/calendar.cjs +1 -1
- package/dist/react/calendar.js +1 -1
- package/dist/react/card.cjs.map +1 -1
- package/dist/react/card.js.map +1 -1
- package/dist/react/carousel.cjs +1 -1
- package/dist/react/carousel.cjs.map +1 -1
- package/dist/react/carousel.js +1 -1
- package/dist/react/carousel.js.map +1 -1
- package/dist/react/checkbox-cards.cjs +1 -1
- package/dist/react/checkbox-cards.cjs.map +1 -1
- package/dist/react/checkbox-cards.js +1 -1
- package/dist/react/checkbox-cards.js.map +1 -1
- package/dist/react/checkbox-group.cjs +1 -1
- package/dist/react/checkbox-group.cjs.map +1 -1
- package/dist/react/checkbox-group.js +1 -1
- package/dist/react/checkbox-group.js.map +1 -1
- package/dist/react/checkbox-group.primitive.cjs +1 -1
- package/dist/react/checkbox-group.primitive.js +1 -1
- package/dist/react/checkbox.cjs +1 -1
- package/dist/react/checkbox.cjs.map +1 -1
- package/dist/react/checkbox.js +1 -1
- package/dist/react/checkbox.js.map +1 -1
- package/dist/react/code.cjs.map +1 -1
- package/dist/react/code.js.map +1 -1
- package/dist/react/collapsible.cjs.map +1 -1
- package/dist/react/collapsible.js.map +1 -1
- package/dist/react/command.cjs +1 -1
- package/dist/react/command.cjs.map +1 -1
- package/dist/react/command.js +1 -1
- package/dist/react/command.js.map +1 -1
- package/dist/react/container.cjs.map +1 -1
- package/dist/react/container.js.map +1 -1
- package/dist/react/context-menu.cjs.map +1 -1
- package/dist/react/context-menu.js.map +1 -1
- package/dist/react/data-table.cjs +1 -1
- package/dist/react/data-table.js +1 -1
- package/dist/react/dialog.cjs +1 -1
- package/dist/react/dialog.js +1 -1
- package/dist/react/drawer.cjs.map +1 -1
- package/dist/react/drawer.js.map +1 -1
- package/dist/react/dropdown-menu.cjs +1 -1
- package/dist/react/dropdown-menu.js +1 -1
- package/dist/react/em.cjs.map +1 -1
- package/dist/react/em.js.map +1 -1
- package/dist/react/form.cjs +1 -1
- package/dist/react/form.cjs.map +1 -1
- package/dist/react/form.js +1 -1
- package/dist/react/form.js.map +1 -1
- package/dist/react/heading.cjs.map +1 -1
- package/dist/react/heading.js.map +1 -1
- package/dist/react/hover-card.cjs.map +1 -1
- package/dist/react/hover-card.js.map +1 -1
- package/dist/react/input-otp.cjs +1 -1
- package/dist/react/input-otp.cjs.map +1 -1
- package/dist/react/input-otp.js +1 -1
- package/dist/react/input-otp.js.map +1 -1
- package/dist/react/input.cjs +1 -1
- package/dist/react/input.cjs.map +1 -1
- package/dist/react/input.d.cts +113 -34
- package/dist/react/input.d.ts +113 -34
- package/dist/react/input.js +1 -1
- package/dist/react/input.js.map +1 -1
- package/dist/react/kbd.cjs.map +1 -1
- package/dist/react/kbd.js.map +1 -1
- package/dist/react/label.cjs +1 -1
- package/dist/react/label.js +1 -1
- package/dist/react/menubar.cjs.map +1 -1
- package/dist/react/menubar.js.map +1 -1
- package/dist/react/navigation-menu.cjs.map +1 -1
- package/dist/react/navigation-menu.js.map +1 -1
- package/dist/react/pagination.cjs +1 -1
- package/dist/react/pagination.cjs.map +1 -1
- package/dist/react/pagination.js +1 -1
- package/dist/react/pagination.js.map +1 -1
- package/dist/react/popover.cjs.map +1 -1
- package/dist/react/popover.js.map +1 -1
- package/dist/react/pre.cjs.map +1 -1
- package/dist/react/pre.js.map +1 -1
- package/dist/react/progress.cjs.map +1 -1
- package/dist/react/progress.js.map +1 -1
- package/dist/react/quote.cjs.map +1 -1
- package/dist/react/quote.js.map +1 -1
- package/dist/react/radio-cards.cjs +1 -1
- package/dist/react/radio-cards.cjs.map +1 -1
- package/dist/react/radio-cards.js +1 -1
- package/dist/react/radio-cards.js.map +1 -1
- package/dist/react/radio-group.cjs.map +1 -1
- package/dist/react/radio-group.js.map +1 -1
- package/dist/react/radio.cjs.map +1 -1
- package/dist/react/radio.js.map +1 -1
- package/dist/react/scroll-area.cjs.map +1 -1
- package/dist/react/scroll-area.js.map +1 -1
- package/dist/react/section.cjs.map +1 -1
- package/dist/react/section.js.map +1 -1
- package/dist/react/select.cjs +1 -1
- package/dist/react/select.js +1 -1
- package/dist/react/separator.cjs.map +1 -1
- package/dist/react/separator.js.map +1 -1
- package/dist/react/sheet.cjs.map +1 -1
- package/dist/react/sheet.js.map +1 -1
- package/dist/react/slider.cjs.map +1 -1
- package/dist/react/slider.js.map +1 -1
- package/dist/react/spinner.cjs +1 -1
- package/dist/react/spinner.js +1 -1
- package/dist/react/strong.cjs.map +1 -1
- package/dist/react/strong.js.map +1 -1
- package/dist/react/switch.cjs +1 -1
- package/dist/react/switch.cjs.map +1 -1
- package/dist/react/switch.js +1 -1
- package/dist/react/switch.js.map +1 -1
- package/dist/react/table.cjs.map +1 -1
- package/dist/react/table.js.map +1 -1
- package/dist/react/tabs.cjs.map +1 -1
- package/dist/react/tabs.js.map +1 -1
- package/dist/react/text-input.cjs +2 -0
- package/dist/react/text-input.cjs.map +1 -0
- package/dist/react/text-input.d.cts +11 -0
- package/dist/react/text-input.d.ts +11 -0
- package/dist/react/text-input.js +2 -0
- package/dist/react/text-input.js.map +1 -0
- package/dist/react/text.cjs.map +1 -1
- package/dist/react/text.js.map +1 -1
- package/dist/react/textarea.cjs +1 -1
- package/dist/react/textarea.cjs.map +1 -1
- package/dist/react/textarea.js +1 -1
- package/dist/react/textarea.js.map +1 -1
- package/dist/react/toggle-group.cjs +1 -1
- package/dist/react/toggle-group.cjs.map +1 -1
- package/dist/react/toggle-group.js +1 -1
- package/dist/react/toggle-group.js.map +1 -1
- package/dist/react/toggle.cjs +1 -1
- package/dist/react/toggle.js +1 -1
- package/dist/react/tooltip.cjs.map +1 -1
- package/dist/react/tooltip.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +76 -102
- package/dist/chunk-2OBTJ7SD.cjs.map +0 -1
- package/dist/chunk-3OEPCFBF.cjs +0 -2
- package/dist/chunk-3OEPCFBF.cjs.map +0 -1
- package/dist/chunk-6AFJCDFU.js +0 -2
- package/dist/chunk-6AFJCDFU.js.map +0 -1
- package/dist/chunk-72NPDP3X.cjs.map +0 -1
- package/dist/chunk-7CHCTEST.js +0 -2
- package/dist/chunk-7CHCTEST.js.map +0 -1
- package/dist/chunk-A5ILA637.js.map +0 -1
- package/dist/chunk-DH3YP4ZC.cjs +0 -2
- package/dist/chunk-DH3YP4ZC.cjs.map +0 -1
- package/dist/chunk-DTSAQICV.js +0 -2
- package/dist/chunk-DTSAQICV.js.map +0 -1
- package/dist/chunk-F5TIIJJJ.cjs.map +0 -1
- package/dist/chunk-FNQFZJUG.js.map +0 -1
- package/dist/chunk-GCHNSK5O.cjs.map +0 -1
- package/dist/chunk-NH6X3FON.js +0 -2
- package/dist/chunk-NH6X3FON.js.map +0 -1
- package/dist/chunk-P563ILDJ.cjs +0 -2
- package/dist/chunk-P563ILDJ.cjs.map +0 -1
- package/dist/chunk-QEWITXOV.cjs.map +0 -1
- package/dist/chunk-RSNKUKY7.js.map +0 -1
- package/dist/chunk-VVA2EE5V.js +0 -2
- package/dist/chunk-VVA2EE5V.js.map +0 -1
- package/dist/chunk-VZ6P3BCB.cjs +0 -2
- package/dist/chunk-VZ6P3BCB.cjs.map +0 -1
- package/dist/chunk-WECV77JD.cjs.map +0 -1
- package/dist/chunk-WRO3QIWH.js.map +0 -1
- package/dist/chunk-YLE5XFEO.cjs.map +0 -1
- package/dist/chunk-ZMF2SRE5.js.map +0 -1
- package/dist/hooks/use-media-query.cjs +0 -2
- package/dist/hooks/use-media-query.cjs.map +0 -1
- package/dist/hooks/use-media-query.d.cts +0 -3
- package/dist/hooks/use-media-query.d.ts +0 -3
- package/dist/hooks/use-media-query.js +0 -2
- package/dist/hooks/use-media-query.js.map +0 -1
- package/dist/hooks/use-mutation-observer.cjs +0 -2
- package/dist/hooks/use-mutation-observer.cjs.map +0 -1
- package/dist/hooks/use-mutation-observer.d.cts +0 -5
- package/dist/hooks/use-mutation-observer.d.ts +0 -5
- package/dist/hooks/use-mutation-observer.js +0 -2
- package/dist/hooks/use-mutation-observer.js.map +0 -1
- package/dist/lib/colors.cjs +0 -2
- package/dist/lib/colors.cjs.map +0 -1
- package/dist/lib/colors.d.cts +0 -1759
- package/dist/lib/colors.d.ts +0 -1759
- package/dist/lib/colors.js +0 -2
- package/dist/lib/colors.js.map +0 -1
- package/dist/plugin/animate.plugin.cjs +0 -2
- package/dist/plugin/animate.plugin.cjs.map +0 -1
- package/dist/plugin/animate.plugin.js +0 -2
- package/dist/plugin/animate.plugin.js.map +0 -1
- package/dist/plugin/base.plugin.cjs +0 -2
- package/dist/plugin/base.plugin.cjs.map +0 -1
- package/dist/plugin/base.plugin.js +0 -2
- package/dist/plugin/base.plugin.js.map +0 -1
- package/dist/plugin/perspective.plugin.cjs +0 -2
- package/dist/plugin/perspective.plugin.cjs.map +0 -1
- package/dist/plugin/perspective.plugin.js +0 -2
- package/dist/plugin/perspective.plugin.js.map +0 -1
- package/dist/tailwind.config.cjs +0 -2
- package/dist/tailwind.config.cjs.map +0 -1
- package/dist/tailwind.config.js +0 -2
- package/dist/tailwind.config.js.map +0 -1
- package/plugin/animate.plugin.ts +0 -319
- package/plugin/base.plugin.ts +0 -21
- package/plugin/perspective.plugin.ts +0 -11
- package/src/hooks/use-media-query.ts +0 -22
- package/src/hooks/use-mutation-observer.ts +0 -26
- package/src/lib/colors.ts +0 -1757
- package/src/lib/utils.ts +0 -6
- package/src/react/accordion.tsx +0 -86
- package/src/react/alert-dialog.tsx +0 -177
- package/src/react/alert.tsx +0 -71
- package/src/react/aspect-ratio.tsx +0 -17
- package/src/react/avatar.tsx +0 -58
- package/src/react/badge.tsx +0 -39
- package/src/react/blockquote.tsx +0 -26
- package/src/react/box.tsx +0 -34
- package/src/react/breadcrumb.tsx +0 -148
- package/src/react/button.tsx +0 -95
- package/src/react/calendar.tsx +0 -79
- package/src/react/card.tsx +0 -103
- package/src/react/carousel.tsx +0 -299
- package/src/react/checkbox-cards.tsx +0 -59
- package/src/react/checkbox-group.primitive.tsx +0 -200
- package/src/react/checkbox-group.tsx +0 -53
- package/src/react/checkbox.tsx +0 -36
- package/src/react/code.tsx +0 -26
- package/src/react/collapsible.tsx +0 -54
- package/src/react/command.tsx +0 -199
- package/src/react/container.tsx +0 -27
- package/src/react/context-menu.tsx +0 -302
- package/src/react/data-table.tsx +0 -249
- package/src/react/dialog.tsx +0 -156
- package/src/react/drawer.tsx +0 -132
- package/src/react/dropdown-menu.tsx +0 -286
- package/src/react/em.tsx +0 -26
- package/src/react/form.tsx +0 -218
- package/src/react/heading.tsx +0 -27
- package/src/react/hover-card.tsx +0 -73
- package/src/react/input-otp.tsx +0 -114
- package/src/react/input.tsx +0 -42
- package/src/react/kbd.tsx +0 -36
- package/src/react/label.tsx +0 -31
- package/src/react/menubar.tsx +0 -316
- package/src/react/navigation-menu.tsx +0 -192
- package/src/react/pagination.tsx +0 -150
- package/src/react/popover.tsx +0 -82
- package/src/react/pre.tsx +0 -26
- package/src/react/progress.tsx +0 -35
- package/src/react/quote.tsx +0 -26
- package/src/react/radio-cards.tsx +0 -46
- package/src/react/radio-group.tsx +0 -48
- package/src/react/radio.tsx +0 -38
- package/src/react/resizable.tsx +0 -62
- package/src/react/scroll-area.tsx +0 -106
- package/src/react/section.tsx +0 -26
- package/src/react/select.tsx +0 -217
- package/src/react/separator.tsx +0 -32
- package/src/react/sheet.tsx +0 -170
- package/src/react/skeleton.tsx +0 -18
- package/src/react/slider.tsx +0 -41
- package/src/react/sonner.tsx +0 -40
- package/src/react/spinner.tsx +0 -68
- package/src/react/strong.tsx +0 -26
- package/src/react/switch.tsx +0 -33
- package/src/react/table.tsx +0 -142
- package/src/react/tabs.tsx +0 -87
- package/src/react/text.tsx +0 -34
- package/src/react/textarea.tsx +0 -30
- package/src/react/toggle-group.tsx +0 -81
- package/src/react/toggle.tsx +0 -49
- package/src/react/tooltip.tsx +0 -81
- package/src/styles/styles.css +0 -3
- package/tailwind.config.ts +0 -126
package/src/react/table.tsx
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cn } from '../lib/utils';
|
|
3
|
-
|
|
4
|
-
/* -----------------------------------------------------------------------------
|
|
5
|
-
* Component: Table
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
-
|
|
8
|
-
type TableElement = HTMLTableElement;
|
|
9
|
-
type TableProps = React.HTMLAttributes<HTMLTableElement>;
|
|
10
|
-
|
|
11
|
-
const Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, ref) => (
|
|
12
|
-
<div className="relative w-full overflow-auto">
|
|
13
|
-
<table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props} />
|
|
14
|
-
</div>
|
|
15
|
-
));
|
|
16
|
-
|
|
17
|
-
Table.displayName = 'Table';
|
|
18
|
-
|
|
19
|
-
/* -----------------------------------------------------------------------------
|
|
20
|
-
* Component: TableHeader
|
|
21
|
-
* -------------------------------------------------------------------------- */
|
|
22
|
-
|
|
23
|
-
type TableHeaderElement = HTMLTableSectionElement;
|
|
24
|
-
type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
25
|
-
|
|
26
|
-
const TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, ref) => (
|
|
27
|
-
<thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
|
|
28
|
-
));
|
|
29
|
-
|
|
30
|
-
TableHeader.displayName = 'TableHeader';
|
|
31
|
-
|
|
32
|
-
/* -----------------------------------------------------------------------------
|
|
33
|
-
* Component: TableBody
|
|
34
|
-
* -------------------------------------------------------------------------- */
|
|
35
|
-
|
|
36
|
-
type TableBodyElement = HTMLTableSectionElement;
|
|
37
|
-
type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
38
|
-
|
|
39
|
-
const TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, ref) => (
|
|
40
|
-
<tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props} />
|
|
41
|
-
));
|
|
42
|
-
|
|
43
|
-
TableBody.displayName = 'TableBody';
|
|
44
|
-
|
|
45
|
-
/* -----------------------------------------------------------------------------
|
|
46
|
-
* Component: TableFooter
|
|
47
|
-
* -------------------------------------------------------------------------- */
|
|
48
|
-
|
|
49
|
-
type TableFooterElement = HTMLTableSectionElement;
|
|
50
|
-
type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
51
|
-
|
|
52
|
-
const TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, ref) => (
|
|
53
|
-
<tfoot ref={ref} className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)} {...props} />
|
|
54
|
-
));
|
|
55
|
-
|
|
56
|
-
TableFooter.displayName = 'TableFooter';
|
|
57
|
-
|
|
58
|
-
/* -----------------------------------------------------------------------------
|
|
59
|
-
* Component: TableRow
|
|
60
|
-
* -------------------------------------------------------------------------- */
|
|
61
|
-
|
|
62
|
-
type TableRowElement = HTMLTableRowElement;
|
|
63
|
-
type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
|
|
64
|
-
|
|
65
|
-
const TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, ref) => (
|
|
66
|
-
<tr
|
|
67
|
-
ref={ref}
|
|
68
|
-
className={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition', className)}
|
|
69
|
-
{...props}
|
|
70
|
-
/>
|
|
71
|
-
));
|
|
72
|
-
|
|
73
|
-
TableRow.displayName = 'TableRow';
|
|
74
|
-
|
|
75
|
-
/* -----------------------------------------------------------------------------
|
|
76
|
-
* Component: TableHead
|
|
77
|
-
* -------------------------------------------------------------------------- */
|
|
78
|
-
|
|
79
|
-
type TableHeadElement = HTMLTableCellElement;
|
|
80
|
-
type TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
81
|
-
|
|
82
|
-
const TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, ref) => (
|
|
83
|
-
<th
|
|
84
|
-
ref={ref}
|
|
85
|
-
className={cn(
|
|
86
|
-
'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',
|
|
87
|
-
className,
|
|
88
|
-
)}
|
|
89
|
-
{...props}
|
|
90
|
-
/>
|
|
91
|
-
));
|
|
92
|
-
|
|
93
|
-
TableHead.displayName = 'TableHead';
|
|
94
|
-
|
|
95
|
-
/* -----------------------------------------------------------------------------
|
|
96
|
-
* Component: TableCell
|
|
97
|
-
* -------------------------------------------------------------------------- */
|
|
98
|
-
|
|
99
|
-
type TableCellElement = HTMLTableCellElement;
|
|
100
|
-
type TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
101
|
-
|
|
102
|
-
const TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, ref) => (
|
|
103
|
-
<td ref={ref} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />
|
|
104
|
-
));
|
|
105
|
-
|
|
106
|
-
TableCell.displayName = 'TableCell';
|
|
107
|
-
|
|
108
|
-
/* -----------------------------------------------------------------------------
|
|
109
|
-
* Component: TableCaption
|
|
110
|
-
* -------------------------------------------------------------------------- */
|
|
111
|
-
|
|
112
|
-
type TableCaptionElement = HTMLTableCaptionElement;
|
|
113
|
-
type TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;
|
|
114
|
-
|
|
115
|
-
const TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(({ className, ...props }, ref) => (
|
|
116
|
-
<caption ref={ref} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />
|
|
117
|
-
));
|
|
118
|
-
|
|
119
|
-
TableCaption.displayName = 'TableCaption';
|
|
120
|
-
|
|
121
|
-
/* -----------------------------------------------------------------------------
|
|
122
|
-
* Exports
|
|
123
|
-
* -------------------------------------------------------------------------- */
|
|
124
|
-
|
|
125
|
-
export {
|
|
126
|
-
Table,
|
|
127
|
-
TableHeader,
|
|
128
|
-
TableBody,
|
|
129
|
-
TableFooter,
|
|
130
|
-
TableHead,
|
|
131
|
-
TableRow,
|
|
132
|
-
TableCell,
|
|
133
|
-
TableCaption,
|
|
134
|
-
type TableProps,
|
|
135
|
-
type TableHeaderProps,
|
|
136
|
-
type TableBodyProps,
|
|
137
|
-
type TableFooterProps,
|
|
138
|
-
type TableHeadProps,
|
|
139
|
-
type TableRowProps,
|
|
140
|
-
type TableCellProps,
|
|
141
|
-
type TableCaptionProps,
|
|
142
|
-
};
|
package/src/react/tabs.tsx
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
5
|
-
import { cn } from '../lib/utils';
|
|
6
|
-
|
|
7
|
-
/* -----------------------------------------------------------------------------
|
|
8
|
-
* Component: Tabs
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
10
|
-
|
|
11
|
-
type TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;
|
|
12
|
-
const Tabs = TabsPrimitive.Root;
|
|
13
|
-
|
|
14
|
-
/* -----------------------------------------------------------------------------
|
|
15
|
-
* Component: TabsList
|
|
16
|
-
* -------------------------------------------------------------------------- */
|
|
17
|
-
|
|
18
|
-
type TabsListElement = React.ElementRef<typeof TabsPrimitive.List>;
|
|
19
|
-
type TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>;
|
|
20
|
-
|
|
21
|
-
const TabsList = React.forwardRef<TabsListElement, TabsListProps>(({ className, ...props }, ref) => (
|
|
22
|
-
<TabsPrimitive.List
|
|
23
|
-
ref={ref}
|
|
24
|
-
className={cn(
|
|
25
|
-
'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',
|
|
26
|
-
className,
|
|
27
|
-
)}
|
|
28
|
-
{...props}
|
|
29
|
-
/>
|
|
30
|
-
));
|
|
31
|
-
|
|
32
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
33
|
-
|
|
34
|
-
/* -----------------------------------------------------------------------------
|
|
35
|
-
* Component: TabsTrigger
|
|
36
|
-
* -------------------------------------------------------------------------- */
|
|
37
|
-
|
|
38
|
-
type TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;
|
|
39
|
-
type TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;
|
|
40
|
-
|
|
41
|
-
const TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(({ className, ...props }, ref) => (
|
|
42
|
-
<TabsPrimitive.Trigger
|
|
43
|
-
ref={ref}
|
|
44
|
-
className={cn(
|
|
45
|
-
'data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',
|
|
46
|
-
className,
|
|
47
|
-
)}
|
|
48
|
-
{...props}
|
|
49
|
-
/>
|
|
50
|
-
));
|
|
51
|
-
|
|
52
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
53
|
-
|
|
54
|
-
/* -----------------------------------------------------------------------------
|
|
55
|
-
* Component: TabsContent
|
|
56
|
-
* -------------------------------------------------------------------------- */
|
|
57
|
-
|
|
58
|
-
type TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;
|
|
59
|
-
type TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;
|
|
60
|
-
|
|
61
|
-
const TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(({ className, ...props }, ref) => (
|
|
62
|
-
<TabsPrimitive.Content
|
|
63
|
-
ref={ref}
|
|
64
|
-
className={cn(
|
|
65
|
-
'mt-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',
|
|
66
|
-
className,
|
|
67
|
-
)}
|
|
68
|
-
{...props}
|
|
69
|
-
/>
|
|
70
|
-
));
|
|
71
|
-
|
|
72
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
73
|
-
|
|
74
|
-
/* -----------------------------------------------------------------------------
|
|
75
|
-
* Exports
|
|
76
|
-
* -------------------------------------------------------------------------- */
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
Tabs,
|
|
80
|
-
TabsList,
|
|
81
|
-
TabsTrigger,
|
|
82
|
-
TabsContent,
|
|
83
|
-
type TabsProps,
|
|
84
|
-
type TabsListProps,
|
|
85
|
-
type TabsTriggerProps,
|
|
86
|
-
type TabsContentProps,
|
|
87
|
-
};
|
package/src/react/text.tsx
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
-
|
|
4
|
-
/* -----------------------------------------------------------------------------
|
|
5
|
-
* Component: Text
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
-
|
|
8
|
-
type TextElement = HTMLParagraphElement;
|
|
9
|
-
|
|
10
|
-
interface TextParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
11
|
-
as?: 'p';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface TextSpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
15
|
-
as: 'span';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type TextProps = (TextParagraphProps | TextSpanProps) & {
|
|
19
|
-
asChild?: boolean;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const Text = React.forwardRef<TextElement, TextProps>(({ as: Tag = 'p', asChild, ...props }, ref) => {
|
|
23
|
-
const Component = asChild ? Slot : Tag;
|
|
24
|
-
|
|
25
|
-
return <Component ref={ref} {...props} />;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
Text.displayName = 'Text';
|
|
29
|
-
|
|
30
|
-
/* -----------------------------------------------------------------------------
|
|
31
|
-
* Exports
|
|
32
|
-
* -------------------------------------------------------------------------- */
|
|
33
|
-
|
|
34
|
-
export { Text, type TextProps };
|
package/src/react/textarea.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { cn } from '../lib/utils';
|
|
3
|
-
|
|
4
|
-
/* -----------------------------------------------------------------------------
|
|
5
|
-
* Component: Textarea
|
|
6
|
-
* -------------------------------------------------------------------------- */
|
|
7
|
-
|
|
8
|
-
type TextareaElement = HTMLTextAreaElement;
|
|
9
|
-
type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
10
|
-
|
|
11
|
-
const Textarea = React.forwardRef<TextareaElement, TextareaProps>(({ className, ...props }, ref) => {
|
|
12
|
-
return (
|
|
13
|
-
<textarea
|
|
14
|
-
ref={ref}
|
|
15
|
-
className={cn(
|
|
16
|
-
'border-input placeholder:text-muted-foreground flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
17
|
-
className,
|
|
18
|
-
)}
|
|
19
|
-
{...props}
|
|
20
|
-
/>
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
Textarea.displayName = 'Textarea';
|
|
25
|
-
|
|
26
|
-
/* -----------------------------------------------------------------------------
|
|
27
|
-
* Exports
|
|
28
|
-
* -------------------------------------------------------------------------- */
|
|
29
|
-
|
|
30
|
-
export { Textarea, type TextareaProps };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
5
|
-
import { createToggleGroupScope } from '@radix-ui/react-toggle-group';
|
|
6
|
-
import { createContextScope, type Scope } from '@radix-ui/react-context';
|
|
7
|
-
import { cn } from '../lib/utils';
|
|
8
|
-
import { toggleVariants, type ToggleVariantsProps } from './toggle';
|
|
9
|
-
|
|
10
|
-
/* -----------------------------------------------------------------------------
|
|
11
|
-
* Component: ToggleGroup
|
|
12
|
-
* -------------------------------------------------------------------------- */
|
|
13
|
-
|
|
14
|
-
const TOGGLE_GROUP_NAME = 'ToggleGroup';
|
|
15
|
-
|
|
16
|
-
type ScopedProps<P> = P & { __scopeToggleGroup?: Scope };
|
|
17
|
-
|
|
18
|
-
const [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);
|
|
19
|
-
|
|
20
|
-
const useToggleGroupScope = createToggleGroupScope();
|
|
21
|
-
|
|
22
|
-
const [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);
|
|
23
|
-
|
|
24
|
-
type ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;
|
|
25
|
-
type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;
|
|
26
|
-
|
|
27
|
-
const ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(
|
|
28
|
-
({ __scopeToggleGroup, children, className, variant, size, ...props }: ScopedProps<ToggleGroupProps>, ref) => {
|
|
29
|
-
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<ToggleGroupProvider scope={__scopeToggleGroup} size={size} variant={variant}>
|
|
33
|
-
<ToggleGroupPrimitive.Root
|
|
34
|
-
ref={ref}
|
|
35
|
-
className={cn('flex items-center justify-center gap-1', className)}
|
|
36
|
-
{...toggleGroupScope}
|
|
37
|
-
{...props}
|
|
38
|
-
>
|
|
39
|
-
{children}
|
|
40
|
-
</ToggleGroupPrimitive.Root>
|
|
41
|
-
</ToggleGroupProvider>
|
|
42
|
-
);
|
|
43
|
-
},
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
ToggleGroup.displayName = TOGGLE_GROUP_NAME;
|
|
47
|
-
|
|
48
|
-
/* -----------------------------------------------------------------------------
|
|
49
|
-
* Component: ToggleGroupItem
|
|
50
|
-
* -------------------------------------------------------------------------- */
|
|
51
|
-
|
|
52
|
-
const TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';
|
|
53
|
-
|
|
54
|
-
type ToggleGroupItemElement = React.ElementRef<typeof ToggleGroupPrimitive.Item>;
|
|
55
|
-
type ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>;
|
|
56
|
-
|
|
57
|
-
const ToggleGroupItem = React.forwardRef<ToggleGroupItemElement, ToggleGroupItemProps>(
|
|
58
|
-
({ __scopeToggleGroup, children, className, ...props }: ScopedProps<ToggleGroupItemProps>, ref) => {
|
|
59
|
-
const context = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);
|
|
60
|
-
const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<ToggleGroupPrimitive.Item
|
|
64
|
-
ref={ref}
|
|
65
|
-
className={toggleVariants({ ...context, className })}
|
|
66
|
-
{...toggleGroupScope}
|
|
67
|
-
{...props}
|
|
68
|
-
>
|
|
69
|
-
{children}
|
|
70
|
-
</ToggleGroupPrimitive.Item>
|
|
71
|
-
);
|
|
72
|
-
},
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;
|
|
76
|
-
|
|
77
|
-
/* -----------------------------------------------------------------------------
|
|
78
|
-
* Exports
|
|
79
|
-
* -------------------------------------------------------------------------- */
|
|
80
|
-
|
|
81
|
-
export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps };
|
package/src/react/toggle.tsx
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
5
|
-
import { tv, type VariantProps } from 'tailwind-variants';
|
|
6
|
-
|
|
7
|
-
/* -----------------------------------------------------------------------------
|
|
8
|
-
* Variant: Toggle
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
10
|
-
|
|
11
|
-
const toggleVariants = tv({
|
|
12
|
-
base: 'hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',
|
|
13
|
-
variants: {
|
|
14
|
-
variant: {
|
|
15
|
-
default: 'bg-transparent',
|
|
16
|
-
outline: 'border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-sm',
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
default: 'h-10 px-3',
|
|
20
|
-
sm: 'h-9 px-2.5',
|
|
21
|
-
lg: 'h-11 px-5',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
variant: 'default',
|
|
26
|
-
size: 'default',
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
type ToggleVariantsProps = VariantProps<typeof toggleVariants>;
|
|
31
|
-
|
|
32
|
-
/* -----------------------------------------------------------------------------
|
|
33
|
-
* Component: Toggle
|
|
34
|
-
* -------------------------------------------------------------------------- */
|
|
35
|
-
|
|
36
|
-
type ToggleElement = React.ElementRef<typeof TogglePrimitive.Root>;
|
|
37
|
-
type ToggleProps = React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & ToggleVariantsProps;
|
|
38
|
-
|
|
39
|
-
const Toggle = React.forwardRef<ToggleElement, ToggleProps>(({ className, variant, size, ...props }, ref) => (
|
|
40
|
-
<TogglePrimitive.Root ref={ref} className={toggleVariants({ variant, size, className })} {...props} />
|
|
41
|
-
));
|
|
42
|
-
|
|
43
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
44
|
-
|
|
45
|
-
/* -----------------------------------------------------------------------------
|
|
46
|
-
* Exports
|
|
47
|
-
* -------------------------------------------------------------------------- */
|
|
48
|
-
|
|
49
|
-
export { Toggle, toggleVariants, type ToggleProps, type ToggleVariantsProps };
|
package/src/react/tooltip.tsx
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
|
-
import { cn } from '../lib/utils';
|
|
6
|
-
|
|
7
|
-
/* -----------------------------------------------------------------------------
|
|
8
|
-
* Component: TooltipProvider
|
|
9
|
-
* -------------------------------------------------------------------------- */
|
|
10
|
-
|
|
11
|
-
type TooltipProviderProps = React.ComponentProps<typeof TooltipPrimitive.Provider>;
|
|
12
|
-
const TooltipProvider = TooltipPrimitive.Provider;
|
|
13
|
-
|
|
14
|
-
/* -----------------------------------------------------------------------------
|
|
15
|
-
* Component: Tooltip
|
|
16
|
-
* -------------------------------------------------------------------------- */
|
|
17
|
-
|
|
18
|
-
type TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;
|
|
19
|
-
const Tooltip = TooltipPrimitive.Root;
|
|
20
|
-
|
|
21
|
-
/* -----------------------------------------------------------------------------
|
|
22
|
-
* Component: TooltipTrigger
|
|
23
|
-
* -------------------------------------------------------------------------- */
|
|
24
|
-
|
|
25
|
-
type TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;
|
|
26
|
-
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
27
|
-
|
|
28
|
-
/* -----------------------------------------------------------------------------
|
|
29
|
-
* Component: TooltipContent
|
|
30
|
-
* -------------------------------------------------------------------------- */
|
|
31
|
-
|
|
32
|
-
type TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;
|
|
33
|
-
type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;
|
|
34
|
-
|
|
35
|
-
const TooltipContent = React.forwardRef<TooltipContentElement, TooltipContentProps>(
|
|
36
|
-
({ className, sideOffset = 6, ...props }, ref) => (
|
|
37
|
-
<TooltipPrimitive.Portal>
|
|
38
|
-
<TooltipPrimitive.Content
|
|
39
|
-
ref={ref}
|
|
40
|
-
className={cn(
|
|
41
|
-
'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border px-3 py-1.5 text-xs',
|
|
42
|
-
className,
|
|
43
|
-
)}
|
|
44
|
-
sideOffset={sideOffset}
|
|
45
|
-
{...props}
|
|
46
|
-
/>
|
|
47
|
-
</TooltipPrimitive.Portal>
|
|
48
|
-
),
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
52
|
-
|
|
53
|
-
/* -----------------------------------------------------------------------------
|
|
54
|
-
* Component: TooltipArrow
|
|
55
|
-
* -------------------------------------------------------------------------- */
|
|
56
|
-
|
|
57
|
-
type TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;
|
|
58
|
-
type TooltipArrowProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>;
|
|
59
|
-
|
|
60
|
-
const TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(({ className, ...props }, ref) => (
|
|
61
|
-
<TooltipPrimitive.Arrow ref={ref} className={cn('fill-primary', className)} {...props} />
|
|
62
|
-
));
|
|
63
|
-
|
|
64
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
65
|
-
|
|
66
|
-
/* -----------------------------------------------------------------------------
|
|
67
|
-
* Exports
|
|
68
|
-
* -------------------------------------------------------------------------- */
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
TooltipProvider,
|
|
72
|
-
Tooltip,
|
|
73
|
-
TooltipTrigger,
|
|
74
|
-
TooltipContent,
|
|
75
|
-
TooltipArrow,
|
|
76
|
-
type TooltipProviderProps,
|
|
77
|
-
type TooltipProps,
|
|
78
|
-
type TooltipTriggerProps,
|
|
79
|
-
type TooltipContentProps,
|
|
80
|
-
type TooltipArrowProps,
|
|
81
|
-
};
|
package/src/styles/styles.css
DELETED
package/tailwind.config.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { fontFamily } from 'tailwindcss/defaultTheme';
|
|
2
|
-
import animate from './plugin/animate.plugin';
|
|
3
|
-
import base from './plugin/base.plugin';
|
|
4
|
-
import perspective from './plugin/perspective.plugin';
|
|
5
|
-
import { Config } from 'tailwindcss';
|
|
6
|
-
|
|
7
|
-
const tailwindcssConfig: Config = {
|
|
8
|
-
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
|
|
9
|
-
darkMode: ['class'],
|
|
10
|
-
plugins: [animate, perspective, base],
|
|
11
|
-
theme: {
|
|
12
|
-
extend: {
|
|
13
|
-
animation: {
|
|
14
|
-
'collapsible-open': 'collapsible-open 200ms ease',
|
|
15
|
-
'collapsible-closed': 'collapsible-closed 200ms ease',
|
|
16
|
-
'caret-blink': 'caret-blink 1000ms ease infinite',
|
|
17
|
-
},
|
|
18
|
-
borderColor: {
|
|
19
|
-
DEFAULT: 'hsl(var(--border))',
|
|
20
|
-
},
|
|
21
|
-
borderRadius: {
|
|
22
|
-
sm: 'calc(var(--radius, 0.25rem) - 0.125px)', // 2px
|
|
23
|
-
DEFAULT: 'var(--radius, 0.25rem)', // 4px
|
|
24
|
-
md: 'calc(var(--radius, 0.25rem) + 0.125rem)', // 6px
|
|
25
|
-
lg: 'calc(var(--radius, 0.25rem) + 0.25rem)', // 8px
|
|
26
|
-
xl: 'calc(var(--radius, 0.25rem) + 0.5rem)', // 12px
|
|
27
|
-
'2xl': 'calc(var(--radius, 0.25rem) + 0.75rem)', // 16px
|
|
28
|
-
'3xl': 'calc(var(--radius, 0.25rem) + 1.25rem)', // 24px
|
|
29
|
-
},
|
|
30
|
-
colors: {
|
|
31
|
-
accent: {
|
|
32
|
-
DEFAULT: 'hsl(var(--accent))',
|
|
33
|
-
foreground: 'hsl(var(--accent-foreground))',
|
|
34
|
-
},
|
|
35
|
-
background: 'hsl(var(--background))',
|
|
36
|
-
border: 'hsl(var(--border))',
|
|
37
|
-
card: {
|
|
38
|
-
DEFAULT: 'hsl(var(--card))',
|
|
39
|
-
foreground: 'hsl(var(--card-foreground))',
|
|
40
|
-
},
|
|
41
|
-
destructive: {
|
|
42
|
-
DEFAULT: 'hsl(var(--destructive))',
|
|
43
|
-
foreground: 'hsl(var(--destructive-foreground))',
|
|
44
|
-
},
|
|
45
|
-
foreground: 'hsl(var(--foreground))',
|
|
46
|
-
info: {
|
|
47
|
-
DEFAULT: 'hsl(var(--info))',
|
|
48
|
-
foreground: 'hsl(var(--info-foreground))',
|
|
49
|
-
},
|
|
50
|
-
input: 'hsl(var(--input))',
|
|
51
|
-
muted: {
|
|
52
|
-
DEFAULT: 'hsl(var(--muted))',
|
|
53
|
-
foreground: 'hsl(var(--muted-foreground))',
|
|
54
|
-
},
|
|
55
|
-
popover: {
|
|
56
|
-
DEFAULT: 'hsl(var(--popover))',
|
|
57
|
-
foreground: 'hsl(var(--popover-foreground))',
|
|
58
|
-
},
|
|
59
|
-
primary: {
|
|
60
|
-
DEFAULT: 'hsl(var(--primary))',
|
|
61
|
-
foreground: 'hsl(var(--primary-foreground))',
|
|
62
|
-
},
|
|
63
|
-
ring: 'hsl(var(--ring))',
|
|
64
|
-
secondary: {
|
|
65
|
-
DEFAULT: 'hsl(var(--secondary))',
|
|
66
|
-
foreground: 'hsl(var(--secondary-foreground))',
|
|
67
|
-
},
|
|
68
|
-
success: {
|
|
69
|
-
DEFAULT: 'hsl(var(--success))',
|
|
70
|
-
foreground: 'hsl(var(--success-foreground))',
|
|
71
|
-
},
|
|
72
|
-
warning: {
|
|
73
|
-
DEFAULT: 'hsl(var(--warning))',
|
|
74
|
-
foreground: 'hsl(var(--warning-foreground))',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
fontFamily: {
|
|
78
|
-
sans: `var(--font-sans, ${fontFamily.sans.join(', ')})`,
|
|
79
|
-
},
|
|
80
|
-
keyframes: {
|
|
81
|
-
'collapsible-open': {
|
|
82
|
-
from: {
|
|
83
|
-
height: '0',
|
|
84
|
-
},
|
|
85
|
-
to: {
|
|
86
|
-
height: 'var(--radix-collapsible-content-height)',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
'collapsible-closed': {
|
|
90
|
-
from: {
|
|
91
|
-
height: 'var(--radix-collapsible-content-height)',
|
|
92
|
-
},
|
|
93
|
-
to: {
|
|
94
|
-
height: '0',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
'caret-blink': {
|
|
98
|
-
'0%,70%,100%': {
|
|
99
|
-
opacity: '1',
|
|
100
|
-
},
|
|
101
|
-
'20%,50%': {
|
|
102
|
-
opacity: '0',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
outlineColor: {
|
|
107
|
-
DEFAULT: 'hsl(var(--ring))',
|
|
108
|
-
},
|
|
109
|
-
ringColor: {
|
|
110
|
-
DEFAULT: 'hsl(var(--ring))',
|
|
111
|
-
},
|
|
112
|
-
ringOffsetColor: {
|
|
113
|
-
DEFAULT: 'hsl(var(--background))',
|
|
114
|
-
},
|
|
115
|
-
spacing: {
|
|
116
|
-
0.75: '0.1875rem', // 3px
|
|
117
|
-
18: '4.5rem', // 72px
|
|
118
|
-
},
|
|
119
|
-
transitionDuration: {
|
|
120
|
-
250: '250ms',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export default tailwindcssConfig;
|