@lfrprazeres/ui 0.1.0 → 0.2.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 +46 -6
- package/dist/charts/chart-data-table.d.ts +30 -0
- package/dist/charts/chart-data-table.d.ts.map +1 -0
- package/dist/charts/chart-data-table.js +34 -0
- package/dist/charts/chart-data-table.js.map +1 -0
- package/dist/charts/chart-frame.d.ts +33 -0
- package/dist/charts/chart-frame.d.ts.map +1 -0
- package/dist/charts/chart-frame.js +35 -0
- package/dist/charts/chart-frame.js.map +1 -0
- package/dist/charts/chart-legend-list.d.ts +20 -0
- package/dist/charts/chart-legend-list.d.ts.map +1 -0
- package/dist/charts/chart-legend-list.js +38 -0
- package/dist/charts/chart-legend-list.js.map +1 -0
- package/dist/charts/chart-ramp.d.ts +7 -0
- package/dist/charts/chart-ramp.d.ts.map +1 -0
- package/dist/charts/chart-ramp.js +16 -0
- package/dist/charts/chart-ramp.js.map +1 -0
- package/dist/charts/donut-chart.d.ts +16 -0
- package/dist/charts/donut-chart.d.ts.map +1 -0
- package/dist/charts/donut-chart.js +78 -0
- package/dist/charts/donut-chart.js.map +1 -0
- package/dist/charts/index.d.ts +10 -0
- package/dist/charts/index.js +9 -0
- package/dist/charts/line-chart.d.ts +22 -0
- package/dist/charts/line-chart.d.ts.map +1 -0
- package/dist/charts/line-chart.js +84 -0
- package/dist/charts/line-chart.js.map +1 -0
- package/dist/charts/types.d.ts +35 -0
- package/dist/charts/types.d.ts.map +1 -0
- package/dist/charts/use-cartesian-chart.d.ts +35 -0
- package/dist/charts/use-cartesian-chart.d.ts.map +1 -0
- package/dist/charts/use-cartesian-chart.js +48 -0
- package/dist/charts/use-cartesian-chart.js.map +1 -0
- package/dist/components/chip.d.ts +7 -4
- package/dist/components/chip.d.ts.map +1 -1
- package/dist/components/chip.js +15 -11
- package/dist/components/chip.js.map +1 -1
- package/dist/components/file-dropzone.d.ts +24 -0
- package/dist/components/file-dropzone.d.ts.map +1 -0
- package/dist/components/file-dropzone.js +70 -0
- package/dist/components/file-dropzone.js.map +1 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +3 -1
- package/dist/components/marquee.d.ts +7 -1
- package/dist/components/marquee.d.ts.map +1 -1
- package/dist/components/marquee.js +33 -9
- package/dist/components/marquee.js.map +1 -1
- package/dist/components/search-combobox-option.js +24 -0
- package/dist/components/search-combobox-option.js.map +1 -0
- package/dist/components/search-combobox.d.ts +35 -0
- package/dist/components/search-combobox.d.ts.map +1 -0
- package/dist/components/search-combobox.js +128 -0
- package/dist/components/search-combobox.js.map +1 -0
- package/dist/components/theme-toggle.d.ts +13 -2
- package/dist/components/theme-toggle.d.ts.map +1 -1
- package/dist/components/theme-toggle.js +6 -3
- package/dist/components/theme-toggle.js.map +1 -1
- package/dist/elements/avatar.d.ts +1 -1
- package/dist/elements/badge.d.ts +1 -1
- package/dist/elements/button.d.ts +1 -1
- package/dist/elements/chart.d.ts +47 -0
- package/dist/elements/chart.d.ts.map +1 -0
- package/dist/elements/chart.js +151 -0
- package/dist/elements/chart.js.map +1 -0
- package/dist/elements/checkbox.d.ts +1 -1
- package/dist/elements/dialog.d.ts +1 -1
- package/dist/elements/dropdown-menu.d.ts +1 -1
- package/dist/elements/index.d.ts +2 -1
- package/dist/elements/index.js +2 -1
- package/dist/elements/label.d.ts +1 -1
- package/dist/elements/popover.d.ts +1 -1
- package/dist/elements/select.d.ts +1 -1
- package/dist/elements/separator.d.ts +1 -1
- package/dist/elements/switch.d.ts +1 -1
- package/dist/elements/table.d.ts +13 -0
- package/dist/elements/table.d.ts.map +1 -0
- package/dist/elements/table.js +68 -0
- package/dist/elements/table.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4 -1
- package/dist/tokens/palettes/base.css +3 -3
- package/dist/tokens/palettes/cyberpunk.css +4 -4
- package/dist/tokens/palettes/gold.css +2 -2
- package/dist/tokens/palettes/minimal.css +1 -1
- package/package.json +11 -2
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../lib/cn.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/elements/table.tsx
|
|
5
|
+
function Table({ className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7
|
+
className: "relative w-full overflow-x-auto",
|
|
8
|
+
"data-slot": "table-container",
|
|
9
|
+
children: /* @__PURE__ */ jsx("table", {
|
|
10
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
11
|
+
"data-slot": "table",
|
|
12
|
+
...props
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function TableHeader({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx("thead", {
|
|
18
|
+
className: cn("[&_tr]:border-b", className),
|
|
19
|
+
"data-slot": "table-header",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function TableBody({ className, ...props }) {
|
|
24
|
+
return /* @__PURE__ */ jsx("tbody", {
|
|
25
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
26
|
+
"data-slot": "table-body",
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function TableFooter({ className, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx("tfoot", {
|
|
32
|
+
className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
|
|
33
|
+
"data-slot": "table-footer",
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function TableRow({ className, ...props }) {
|
|
38
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
39
|
+
className: cn("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", className),
|
|
40
|
+
"data-slot": "table-row",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function TableHead({ className, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("th", {
|
|
46
|
+
className: cn("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
47
|
+
"data-slot": "table-head",
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function TableCell({ className, ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx("td", {
|
|
53
|
+
className: cn("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className),
|
|
54
|
+
"data-slot": "table-cell",
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function TableCaption({ className, ...props }) {
|
|
59
|
+
return /* @__PURE__ */ jsx("caption", {
|
|
60
|
+
className: cn("mt-4 text-muted-foreground text-sm", className),
|
|
61
|
+
"data-slot": "table-caption",
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../src/elements/table.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/cn\";\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div\n className=\"relative w-full overflow-x-auto\"\n data-slot=\"table-container\"\n >\n <table\n className={cn(\"w-full caption-bottom text-sm\", className)}\n data-slot=\"table\"\n {...props}\n />\n </div>\n );\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n className={cn(\"[&_tr]:border-b\", className)}\n data-slot=\"table-header\"\n {...props}\n />\n );\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n data-slot=\"table-body\"\n {...props}\n />\n );\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n className={cn(\n \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n className\n )}\n data-slot=\"table-footer\"\n {...props}\n />\n );\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n className={cn(\n \"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted\",\n className\n )}\n data-slot=\"table-row\"\n {...props}\n />\n );\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n className={cn(\n \"h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n data-slot=\"table-head\"\n {...props}\n />\n );\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n className={cn(\n \"whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n data-slot=\"table-cell\"\n {...props}\n />\n );\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n <caption\n className={cn(\"mt-4 text-muted-foreground text-sm\", className)}\n data-slot=\"table-caption\"\n {...props}\n />\n );\n}\n\nexport {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow,\n};\n"],"mappings":";;;;AAMA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAwC;CACrE,OACE,oBAAC,OAAD;EACE,WAAU;EACV,aAAU;EAEV,UAAA,oBAAC,SAAD;GACE,WAAW,GAAG,iCAAiC,SAAS;GACxD,aAAU;GACV,GAAI;EACL,CAAA;CACE,CAAA;AAET;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC3E,OACE,oBAAC,SAAD;EACE,WAAW,GAAG,mBAAmB,SAAS;EAC1C,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAwC;CACzE,OACE,oBAAC,SAAD;EACE,WAAW,GAAG,8BAA8B,SAAS;EACrD,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC3E,OACE,oBAAC,SAAD;EACE,WAAW,GACT,2DACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAqC;CACrE,OACE,oBAAC,MAAD;EACE,WAAW,GACT,6GACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACtE,OACE,oBAAC,MAAD;EACE,WAAW,GACT,sJACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACtE,OACE,oBAAC,MAAD;EACE,WAAW,GACT,0GACA,SACF;EACA,aAAU;EACV,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SAC+B;CAClC,OACE,oBAAC,WAAD;EACE,WAAW,GAAG,sCAAsC,SAAS;EAC7D,aAAU;EACV,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Chip, ChipProps, chipVariants } from "./components/chip.js";
|
|
2
|
+
import { FileDropzone, FileDropzoneProps } from "./components/file-dropzone.js";
|
|
2
3
|
import { LanguageOption, LanguageSwitcher, LanguageSwitcherProps } from "./components/language-switcher.js";
|
|
3
4
|
import { Marquee, MarqueeProps } from "./components/marquee.js";
|
|
4
5
|
import { MessageBubble, MessageBubbleProps, MessageRole } from "./components/message-bubble.js";
|
|
6
|
+
import { SearchCombobox, SearchComboboxProps } from "./components/search-combobox.js";
|
|
5
7
|
import { StatDirection, StatTile, StatTileProps } from "./components/stat-tile.js";
|
|
6
8
|
import { StreamingDots, StreamingDotsProps } from "./components/streaming-dots.js";
|
|
7
|
-
import { ThemeMode, ThemeToggle, ThemeToggleProps } from "./components/theme-toggle.js";
|
|
9
|
+
import { ThemeMode, ThemeToggle, ThemeToggleLabels, ThemeToggleProps } from "./components/theme-toggle.js";
|
|
8
10
|
import "./components/index.js";
|
|
9
11
|
import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./elements/avatar.js";
|
|
10
12
|
import { Badge, badgeVariants } from "./elements/badge.js";
|
|
@@ -21,7 +23,8 @@ import { Separator } from "./elements/separator.js";
|
|
|
21
23
|
import { Skeleton } from "./elements/skeleton.js";
|
|
22
24
|
import { Toaster, toast } from "./elements/sonner.js";
|
|
23
25
|
import { Switch } from "./elements/switch.js";
|
|
26
|
+
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./elements/table.js";
|
|
24
27
|
import { Textarea } from "./elements/textarea.js";
|
|
25
28
|
import "./elements/index.js";
|
|
26
29
|
import { cn } from "./lib/cn.js";
|
|
27
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, ChipProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, LanguageOption, LanguageSwitcher, LanguageSwitcherProps, Marquee, MarqueeProps, MessageBubble, MessageBubbleProps, MessageRole, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, StatDirection, StatTile, StatTileProps, StreamingDots, StreamingDotsProps, Switch, Textarea, ThemeMode, ThemeToggle, ThemeToggleProps, Toaster, badgeVariants, buttonVariants, chipVariants, cn, toast };
|
|
30
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, ChipProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileDropzone, FileDropzoneProps, Input, Label, LanguageOption, LanguageSwitcher, LanguageSwitcherProps, Marquee, MarqueeProps, MessageBubble, MessageBubbleProps, MessageRole, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SearchCombobox, SearchComboboxProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, StatDirection, StatTile, StatTileProps, StreamingDots, StreamingDotsProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, ThemeMode, ThemeToggle, ThemeToggleLabels, ThemeToggleProps, Toaster, badgeVariants, buttonVariants, chipVariants, cn, toast };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { cn } from "./lib/cn.js";
|
|
2
2
|
import { Chip, chipVariants } from "./components/chip.js";
|
|
3
|
+
import { FileDropzone } from "./components/file-dropzone.js";
|
|
3
4
|
import { Button, buttonVariants } from "./elements/button.js";
|
|
4
5
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./elements/dropdown-menu.js";
|
|
5
6
|
import { LanguageSwitcher } from "./components/language-switcher.js";
|
|
6
7
|
import { Marquee } from "./components/marquee.js";
|
|
7
8
|
import { MessageBubble } from "./components/message-bubble.js";
|
|
9
|
+
import { SearchCombobox } from "./components/search-combobox.js";
|
|
8
10
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./elements/card.js";
|
|
9
11
|
import { StatTile } from "./components/stat-tile.js";
|
|
10
12
|
import { StreamingDots } from "./components/streaming-dots.js";
|
|
@@ -21,5 +23,6 @@ import { Separator } from "./elements/separator.js";
|
|
|
21
23
|
import { Skeleton } from "./elements/skeleton.js";
|
|
22
24
|
import { Toaster, toast } from "./elements/sonner.js";
|
|
23
25
|
import { Switch } from "./elements/switch.js";
|
|
26
|
+
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./elements/table.js";
|
|
24
27
|
import { Textarea } from "./elements/textarea.js";
|
|
25
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, LanguageSwitcher, Marquee, MessageBubble, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, StatTile, StreamingDots, Switch, Textarea, ThemeToggle, Toaster, badgeVariants, buttonVariants, chipVariants, cn, toast };
|
|
28
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FileDropzone, Input, Label, LanguageSwitcher, Marquee, MessageBubble, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SearchCombobox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, StatTile, StreamingDots, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, ThemeToggle, Toaster, badgeVariants, buttonVariants, chipVariants, cn, toast };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--tertiary: var(--neutral-200);
|
|
15
15
|
--tertiary-foreground: var(--neutral-900);
|
|
16
16
|
--muted: var(--neutral-100);
|
|
17
|
-
--muted-foreground: var(--neutral-
|
|
17
|
+
--muted-foreground: var(--neutral-600);
|
|
18
18
|
--accent: var(--neutral-100);
|
|
19
19
|
--accent-foreground: var(--neutral-900);
|
|
20
20
|
--destructive: var(--rose-600);
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
--sidebar-accent-foreground: var(--neutral-900);
|
|
35
35
|
--sidebar-border: var(--neutral-200);
|
|
36
36
|
--sidebar-ring: var(--neutral-400);
|
|
37
|
-
--positive: var(--emerald-
|
|
38
|
-
--negative: var(--rose-
|
|
37
|
+
--positive: var(--emerald-700);
|
|
38
|
+
--negative: var(--rose-700);
|
|
39
39
|
|
|
40
40
|
--motion-duration-fast: var(--duration-fast);
|
|
41
41
|
--motion-duration-base: var(--duration-base);
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
--popover-foreground: var(--slate-950);
|
|
16
16
|
--primary: var(--cyan-700);
|
|
17
17
|
--primary-foreground: var(--slate-50);
|
|
18
|
-
--secondary: var(--fuchsia-
|
|
18
|
+
--secondary: var(--fuchsia-700);
|
|
19
19
|
--secondary-foreground: var(--slate-50);
|
|
20
20
|
--tertiary: var(--violet-600);
|
|
21
21
|
--tertiary-foreground: var(--slate-50);
|
|
22
22
|
--muted: var(--slate-100);
|
|
23
|
-
--muted-foreground: var(--slate-
|
|
23
|
+
--muted-foreground: var(--slate-600);
|
|
24
24
|
--accent: var(--cyan-100);
|
|
25
25
|
--accent-foreground: var(--cyan-900);
|
|
26
26
|
--destructive: var(--rose-600);
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
--sidebar-accent-foreground: var(--cyan-900);
|
|
41
41
|
--sidebar-border: var(--slate-200);
|
|
42
42
|
--sidebar-ring: var(--cyan-500);
|
|
43
|
-
--positive: var(--emerald-
|
|
44
|
-
--negative: var(--rose-
|
|
43
|
+
--positive: var(--emerald-700);
|
|
44
|
+
--negative: var(--rose-700);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.palette-cyberpunk.dark {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
--sidebar-accent-foreground: var(--gold-900);
|
|
35
35
|
--sidebar-border: var(--sand-200);
|
|
36
36
|
--sidebar-ring: var(--gold-500);
|
|
37
|
-
--positive: var(--emerald-
|
|
38
|
-
--negative: var(--rose-
|
|
37
|
+
--positive: var(--emerald-700);
|
|
38
|
+
--negative: var(--rose-700);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.palette-gold.dark {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
--muted-foreground: var(--neutral-400);
|
|
61
61
|
--accent: var(--neutral-800);
|
|
62
62
|
--accent-foreground: var(--neutral-0);
|
|
63
|
-
--destructive: var(--neutral-
|
|
63
|
+
--destructive: var(--neutral-400);
|
|
64
64
|
--border: var(--neutral-0);
|
|
65
65
|
--input: var(--neutral-0);
|
|
66
66
|
--ring: var(--neutral-0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lfrprazeres/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A React design system: shadcn elements, composed components, and a three-tier token contract.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|
|
25
25
|
".": "./dist/index.js",
|
|
26
|
-
"./
|
|
26
|
+
"./charts": "./dist/charts/index.js",
|
|
27
27
|
"./components": "./dist/components/index.js",
|
|
28
|
+
"./elements": "./dist/elements/index.js",
|
|
28
29
|
"./styles.css": "./dist/styles.css",
|
|
29
30
|
"./tokens/*": "./dist/tokens/*"
|
|
30
31
|
},
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"publint": "^0.3.24",
|
|
64
65
|
"react": "^19.2.8",
|
|
65
66
|
"react-dom": "^19.2.8",
|
|
67
|
+
"recharts": "^3.8.0",
|
|
66
68
|
"size-limit": "^13.0.3",
|
|
67
69
|
"storybook": "^10.5.10",
|
|
68
70
|
"tailwindcss": "^4.3.3",
|
|
@@ -75,8 +77,14 @@
|
|
|
75
77
|
"peerDependencies": {
|
|
76
78
|
"react": "^19.0.0",
|
|
77
79
|
"react-dom": "^19.0.0",
|
|
80
|
+
"recharts": "^3.8.0",
|
|
78
81
|
"tailwindcss": "^4.0.0"
|
|
79
82
|
},
|
|
83
|
+
"peerDependenciesMeta": {
|
|
84
|
+
"recharts": {
|
|
85
|
+
"optional": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
80
88
|
"engines": {
|
|
81
89
|
"node": "^24.x",
|
|
82
90
|
"pnpm": ">=11"
|
|
@@ -89,6 +97,7 @@
|
|
|
89
97
|
"build": "tsdown",
|
|
90
98
|
"build-storybook": "storybook build",
|
|
91
99
|
"check": "ultracite check",
|
|
100
|
+
"check:charts": "node scripts/check-chart-isolation.mjs",
|
|
92
101
|
"check:package": "publint && attw --pack . --profile esm-only --exclude-entrypoints styles.css",
|
|
93
102
|
"check:rsc": "node scripts/check-rsc-directives.mjs",
|
|
94
103
|
"check:size": "size-limit",
|