@cryptlex/web-components 1.0.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.
Files changed (64) hide show
  1. package/README.md +39 -0
  2. package/dist/components/ui/badge.es.js +27 -0
  3. package/dist/components/ui/badge.es.js.map +1 -0
  4. package/dist/components/ui/breadcrumb.es.js +91 -0
  5. package/dist/components/ui/breadcrumb.es.js.map +1 -0
  6. package/dist/components/ui/button.es.js +64 -0
  7. package/dist/components/ui/button.es.js.map +1 -0
  8. package/dist/components/ui/calendar.es.js +63 -0
  9. package/dist/components/ui/calendar.es.js.map +1 -0
  10. package/dist/components/ui/card.es.js +68 -0
  11. package/dist/components/ui/card.es.js.map +1 -0
  12. package/dist/components/ui/chart.es.js +211 -0
  13. package/dist/components/ui/chart.es.js.map +1 -0
  14. package/dist/components/ui/checkbox.es.js +28 -0
  15. package/dist/components/ui/checkbox.es.js.map +1 -0
  16. package/dist/components/ui/collapsible.es.js +8 -0
  17. package/dist/components/ui/collapsible.es.js.map +1 -0
  18. package/dist/components/ui/command.es.js +110 -0
  19. package/dist/components/ui/command.es.js.map +1 -0
  20. package/dist/components/ui/dialog.es.js +101 -0
  21. package/dist/components/ui/dialog.es.js.map +1 -0
  22. package/dist/components/ui/dropdown-menu.es.js +145 -0
  23. package/dist/components/ui/dropdown-menu.es.js.map +1 -0
  24. package/dist/components/ui/form.es.js +95 -0
  25. package/dist/components/ui/form.es.js.map +1 -0
  26. package/dist/components/ui/input.es.js +23 -0
  27. package/dist/components/ui/input.es.js.map +1 -0
  28. package/dist/components/ui/label.es.js +20 -0
  29. package/dist/components/ui/label.es.js.map +1 -0
  30. package/dist/components/ui/loader.es.js +10 -0
  31. package/dist/components/ui/loader.es.js.map +1 -0
  32. package/dist/components/ui/pagination.es.js +106 -0
  33. package/dist/components/ui/pagination.es.js.map +1 -0
  34. package/dist/components/ui/password-input.es.js +27 -0
  35. package/dist/components/ui/password-input.es.js.map +1 -0
  36. package/dist/components/ui/popover.es.js +25 -0
  37. package/dist/components/ui/popover.es.js.map +1 -0
  38. package/dist/components/ui/radio-group.es.js +32 -0
  39. package/dist/components/ui/radio-group.es.js.map +1 -0
  40. package/dist/components/ui/select.es.js +122 -0
  41. package/dist/components/ui/select.es.js.map +1 -0
  42. package/dist/components/ui/separator.es.js +25 -0
  43. package/dist/components/ui/separator.es.js.map +1 -0
  44. package/dist/components/ui/sheet.es.js +111 -0
  45. package/dist/components/ui/sheet.es.js.map +1 -0
  46. package/dist/components/ui/sidebar.es.js +534 -0
  47. package/dist/components/ui/sidebar.es.js.map +1 -0
  48. package/dist/components/ui/skeleton.es.js +18 -0
  49. package/dist/components/ui/skeleton.es.js.map +1 -0
  50. package/dist/components/ui/table.es.js +91 -0
  51. package/dist/components/ui/table.es.js.map +1 -0
  52. package/dist/components/ui/tooltip.es.js +24 -0
  53. package/dist/components/ui/tooltip.es.js.map +1 -0
  54. package/dist/hooks/use-mobile.es.js +15 -0
  55. package/dist/hooks/use-mobile.es.js.map +1 -0
  56. package/dist/index.es.d.ts +600 -0
  57. package/dist/index.es.js +178 -0
  58. package/dist/index.es.js.map +1 -0
  59. package/dist/utils/index.es.js +9 -0
  60. package/dist/utils/index.es.js.map +1 -0
  61. package/lib/index.css +24 -0
  62. package/lib/tokens.css +143 -0
  63. package/package.json +107 -0
  64. package/tailwind.preset.ts +77 -0
@@ -0,0 +1,178 @@
1
+ import { Badge as r, badgeVariants as t } from "./components/ui/badge.es.js";
2
+ import { Breadcrumb as n, BreadcrumbEllipsis as i, BreadcrumbItem as p, BreadcrumbLink as d, BreadcrumbList as l, BreadcrumbPage as m, BreadcrumbSeparator as u } from "./components/ui/breadcrumb.es.js";
3
+ import { Button as b, buttonVariants as C } from "./components/ui/button.es.js";
4
+ import { Calendar as c } from "./components/ui/calendar.es.js";
5
+ import { Card as D, CardContent as f, CardDescription as s, CardFooter as M, CardHeader as T, CardTitle as h } from "./components/ui/card.es.js";
6
+ import { ChartContainer as w, ChartLegend as I, ChartLegendContent as B, ChartStyle as F, ChartTooltip as L, ChartTooltipContent as G } from "./components/ui/chart.es.js";
7
+ import { Checkbox as k } from "./components/ui/checkbox.es.js";
8
+ import { Collapsible as R, CollapsibleContent as y, CollapsibleTrigger as A } from "./components/ui/collapsible.es.js";
9
+ import { Command as V, CommandDialog as O, CommandEmpty as N, CommandGroup as U, CommandInput as j, CommandItem as q, CommandList as z, CommandSeparator as J, CommandShortcut as K } from "./components/ui/command.es.js";
10
+ import { Dialog as W, DialogClose as X, DialogContent as Y, DialogDescription as Z, DialogFooter as _, DialogHeader as $, DialogOverlay as ee, DialogPortal as oe, DialogTitle as re, DialogTrigger as te } from "./components/ui/dialog.es.js";
11
+ import { DropdownMenu as ne, DropdownMenuCheckboxItem as ie, DropdownMenuContent as pe, DropdownMenuGroup as de, DropdownMenuItem as le, DropdownMenuLabel as me, DropdownMenuPortal as ue, DropdownMenuRadioGroup as Se, DropdownMenuRadioItem as be, DropdownMenuSeparator as Ce, DropdownMenuShortcut as ge, DropdownMenuSub as ce, DropdownMenuSubContent as xe, DropdownMenuSubTrigger as De, DropdownMenuTrigger as fe } from "./components/ui/dropdown-menu.es.js";
12
+ import { Form as Me, FormControl as Te, FormDescription as he, FormField as Pe, FormItem as we, FormLabel as Ie, FormMessage as Be, useFormField as Fe } from "./components/ui/form.es.js";
13
+ import { Input as Ge } from "./components/ui/input.es.js";
14
+ import { Label as ke } from "./components/ui/label.es.js";
15
+ import { Loader as Re } from "./components/ui/loader.es.js";
16
+ import { Pagination as Ae, PaginationContent as Ee, PaginationEllipsis as Ve, PaginationItem as Oe, PaginationLink as Ne, PaginationNext as Ue, PaginationPrevious as je } from "./components/ui/pagination.es.js";
17
+ import { PasswordInput as ze } from "./components/ui/password-input.es.js";
18
+ import { Popover as Ke, PopoverAnchor as Qe, PopoverContent as We, PopoverTrigger as Xe } from "./components/ui/popover.es.js";
19
+ import { RadioGroup as Ze, RadioGroupItem as _e } from "./components/ui/radio-group.es.js";
20
+ import { Select as eo, SelectContent as oo, SelectGroup as ro, SelectItem as to, SelectLabel as ao, SelectScrollDownButton as no, SelectScrollUpButton as io, SelectSeparator as po, SelectTrigger as lo, SelectValue as mo } from "./components/ui/select.es.js";
21
+ import { Separator as So } from "./components/ui/separator.es.js";
22
+ import { Sheet as Co, SheetClose as go, SheetContent as co, SheetDescription as xo, SheetFooter as Do, SheetHeader as fo, SheetOverlay as so, SheetPortal as Mo, SheetTitle as To, SheetTrigger as ho } from "./components/ui/sheet.es.js";
23
+ import { Sidebar as wo, SidebarContent as Io, SidebarFooter as Bo, SidebarGroup as Fo, SidebarGroupAction as Lo, SidebarGroupContent as Go, SidebarGroupLabel as vo, SidebarHeader as ko, SidebarInput as Ho, SidebarInset as Ro, SidebarMenu as yo, SidebarMenuAction as Ao, SidebarMenuBadge as Eo, SidebarMenuButton as Vo, SidebarMenuItem as Oo, SidebarMenuSkeleton as No, SidebarMenuSub as Uo, SidebarMenuSubButton as jo, SidebarMenuSubItem as qo, SidebarProvider as zo, SidebarRail as Jo, SidebarSeparator as Ko, SidebarTrigger as Qo, useSidebar as Wo } from "./components/ui/sidebar.es.js";
24
+ import { Skeleton as Yo } from "./components/ui/skeleton.es.js";
25
+ import { Table as _o, TableBody as $o, TableCaption as er, TableCell as or, TableFooter as rr, TableHead as tr, TableHeader as ar, TableRow as nr } from "./components/ui/table.es.js";
26
+ import { Tooltip as pr, TooltipContent as dr, TooltipProvider as lr, TooltipTrigger as mr } from "./components/ui/tooltip.es.js";
27
+ import { useIsMobile as Sr } from "./hooks/use-mobile.es.js";
28
+ import { cn as Cr } from "./utils/index.es.js";
29
+ export {
30
+ r as Badge,
31
+ n as Breadcrumb,
32
+ i as BreadcrumbEllipsis,
33
+ p as BreadcrumbItem,
34
+ d as BreadcrumbLink,
35
+ l as BreadcrumbList,
36
+ m as BreadcrumbPage,
37
+ u as BreadcrumbSeparator,
38
+ b as Button,
39
+ c as Calendar,
40
+ D as Card,
41
+ f as CardContent,
42
+ s as CardDescription,
43
+ M as CardFooter,
44
+ T as CardHeader,
45
+ h as CardTitle,
46
+ w as ChartContainer,
47
+ I as ChartLegend,
48
+ B as ChartLegendContent,
49
+ F as ChartStyle,
50
+ L as ChartTooltip,
51
+ G as ChartTooltipContent,
52
+ k as Checkbox,
53
+ R as Collapsible,
54
+ y as CollapsibleContent,
55
+ A as CollapsibleTrigger,
56
+ V as Command,
57
+ O as CommandDialog,
58
+ N as CommandEmpty,
59
+ U as CommandGroup,
60
+ j as CommandInput,
61
+ q as CommandItem,
62
+ z as CommandList,
63
+ J as CommandSeparator,
64
+ K as CommandShortcut,
65
+ W as Dialog,
66
+ X as DialogClose,
67
+ Y as DialogContent,
68
+ Z as DialogDescription,
69
+ _ as DialogFooter,
70
+ $ as DialogHeader,
71
+ ee as DialogOverlay,
72
+ oe as DialogPortal,
73
+ re as DialogTitle,
74
+ te as DialogTrigger,
75
+ ne as DropdownMenu,
76
+ ie as DropdownMenuCheckboxItem,
77
+ pe as DropdownMenuContent,
78
+ de as DropdownMenuGroup,
79
+ le as DropdownMenuItem,
80
+ me as DropdownMenuLabel,
81
+ ue as DropdownMenuPortal,
82
+ Se as DropdownMenuRadioGroup,
83
+ be as DropdownMenuRadioItem,
84
+ Ce as DropdownMenuSeparator,
85
+ ge as DropdownMenuShortcut,
86
+ ce as DropdownMenuSub,
87
+ xe as DropdownMenuSubContent,
88
+ De as DropdownMenuSubTrigger,
89
+ fe as DropdownMenuTrigger,
90
+ Me as Form,
91
+ Te as FormControl,
92
+ he as FormDescription,
93
+ Pe as FormField,
94
+ we as FormItem,
95
+ Ie as FormLabel,
96
+ Be as FormMessage,
97
+ Ge as Input,
98
+ ke as Label,
99
+ Re as Loader,
100
+ Ae as Pagination,
101
+ Ee as PaginationContent,
102
+ Ve as PaginationEllipsis,
103
+ Oe as PaginationItem,
104
+ Ne as PaginationLink,
105
+ Ue as PaginationNext,
106
+ je as PaginationPrevious,
107
+ ze as PasswordInput,
108
+ Ke as Popover,
109
+ Qe as PopoverAnchor,
110
+ We as PopoverContent,
111
+ Xe as PopoverTrigger,
112
+ Ze as RadioGroup,
113
+ _e as RadioGroupItem,
114
+ eo as Select,
115
+ oo as SelectContent,
116
+ ro as SelectGroup,
117
+ to as SelectItem,
118
+ ao as SelectLabel,
119
+ no as SelectScrollDownButton,
120
+ io as SelectScrollUpButton,
121
+ po as SelectSeparator,
122
+ lo as SelectTrigger,
123
+ mo as SelectValue,
124
+ So as Separator,
125
+ Co as Sheet,
126
+ go as SheetClose,
127
+ co as SheetContent,
128
+ xo as SheetDescription,
129
+ Do as SheetFooter,
130
+ fo as SheetHeader,
131
+ so as SheetOverlay,
132
+ Mo as SheetPortal,
133
+ To as SheetTitle,
134
+ ho as SheetTrigger,
135
+ wo as Sidebar,
136
+ Io as SidebarContent,
137
+ Bo as SidebarFooter,
138
+ Fo as SidebarGroup,
139
+ Lo as SidebarGroupAction,
140
+ Go as SidebarGroupContent,
141
+ vo as SidebarGroupLabel,
142
+ ko as SidebarHeader,
143
+ Ho as SidebarInput,
144
+ Ro as SidebarInset,
145
+ yo as SidebarMenu,
146
+ Ao as SidebarMenuAction,
147
+ Eo as SidebarMenuBadge,
148
+ Vo as SidebarMenuButton,
149
+ Oo as SidebarMenuItem,
150
+ No as SidebarMenuSkeleton,
151
+ Uo as SidebarMenuSub,
152
+ jo as SidebarMenuSubButton,
153
+ qo as SidebarMenuSubItem,
154
+ zo as SidebarProvider,
155
+ Jo as SidebarRail,
156
+ Ko as SidebarSeparator,
157
+ Qo as SidebarTrigger,
158
+ Yo as Skeleton,
159
+ _o as Table,
160
+ $o as TableBody,
161
+ er as TableCaption,
162
+ or as TableCell,
163
+ rr as TableFooter,
164
+ tr as TableHead,
165
+ ar as TableHeader,
166
+ nr as TableRow,
167
+ pr as Tooltip,
168
+ dr as TooltipContent,
169
+ lr as TooltipProvider,
170
+ mr as TooltipTrigger,
171
+ t as badgeVariants,
172
+ C as buttonVariants,
173
+ Cr as cn,
174
+ Fe as useFormField,
175
+ Sr as useIsMobile,
176
+ Wo as useSidebar
177
+ };
178
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import { clsx as o } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ function n(...r) {
4
+ return t(o(r));
5
+ }
6
+ export {
7
+ n as cn
8
+ };
9
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../lib/utils/index.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAGO,SAASA,KAAMC,GAAsB;AACnC,SAAAC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}
package/lib/index.css ADDED
@@ -0,0 +1,24 @@
1
+ @import url('tokens.css');
2
+ @tailwind base;
3
+ @tailwind components;
4
+ @tailwind utilities;
5
+
6
+ @layer base {
7
+ * {
8
+ @apply border-border;
9
+ }
10
+ body {
11
+ @apply bg-background text-foreground;
12
+ }
13
+ /* TODO This is just for testing purposing */
14
+ div,
15
+ h1,
16
+ h2,
17
+ h3,
18
+ h4,
19
+ h5,
20
+ h6 {
21
+ @apply font-bold
22
+ }
23
+
24
+ }
package/lib/tokens.css ADDED
@@ -0,0 +1,143 @@
1
+ :root {
2
+ --primary-hue: 218;
3
+ --primary-1: 99% .02 var(--primary-hue);
4
+ --primary-2: 90% .1 var(--primary-hue);
5
+ --primary-3: 80% .2 var(--primary-hue);
6
+ --primary-4: 72% .25 var(--primary-hue);
7
+ --primary-5: 67% .31 var(--primary-hue);
8
+ --primary-6: 50% .27 var(--primary-hue);
9
+ --primary-7: 35% .25 var(--primary-hue);
10
+ --primary-8: 25% .2 var(--primary-hue);
11
+ --primary-9: 13% .2 var(--primary-hue);
12
+ --primary-10: 5% .1 var(--primary-hue);
13
+
14
+ --neutral-s: 0.01;
15
+ --neutral-1: 99% var(--neutral-s) var(--primary-hue);
16
+ --neutral-2: 82% var(--neutral-s) var(--primary-hue);
17
+ --neutral-3: 73% var(--neutral-s) var(--primary-hue);
18
+ --neutral-4: 63% var(--neutral-s) var(--primary-hue);
19
+ --neutral-5: 54% var(--neutral-s) var(--primary-hue);
20
+ --neutral-6: 45% var(--neutral-s) var(--primary-hue);
21
+ --neutral-7: 36% var(--neutral-s) var(--primary-hue);
22
+ --neutral-8: 27% var(--neutral-s) var(--primary-hue);
23
+ --neutral-9: 18% var(--neutral-s) var(--primary-hue);
24
+ --neutral-10: 9% var(--neutral-s) var(--primary-hue);
25
+ --secondary-hue: 100;
26
+ --xsecondary-1: 0.99 0.02 var(--secondary-hue);
27
+ --xsecondary-2: 0.9 0.04 var(--secondary-hue);
28
+ --xsecondary-3: 0.67 0.13 var(--secondary-hue);
29
+ --xsecondary-4: 0.35 0.13 var(--secondary-hue);
30
+ --xsecondary-5: 0.13 0.13 var(--secondary-hue);
31
+ --secondary-1: var(--xsecondary-1);
32
+ --secondary-2: var(--xsecondary-2);
33
+ --secondary-3: var(--xsecondary-3);
34
+ --secondary-4: var(--xsecondary-4);
35
+ --secondary-5: var(--xsecondary-5);
36
+
37
+ --accent-hue: 230;
38
+ --xaccent-1: 0.99 0.02 var(--accent-hue);
39
+ --xaccent-2: 0.9 0.04 var(--accent-hue);
40
+ --xaccent-3: 0.67 0.13 var(--accent-hue);
41
+ --xaccent-4: 0.35 0.13 var(--accent-hue);
42
+ --xaccent-5: 0.13 0.13 var(--accent-hue);
43
+ --accent-1: var(--xaccent-1);
44
+ --accent-2: var(--xaccent-2);
45
+ --accent-3: var(--xaccent-3);
46
+ --accent-4: var(--xaccent-4);
47
+ --accent-5: var(--xaccent-5);
48
+
49
+ --red-hue: 13;
50
+ --xred-1: 0.99 0.02 var(--red-hue);
51
+ --xred-2: 0.9 0.04 var(--red-hue);
52
+ --xred-3: 0.67 0.13 var(--red-hue);
53
+ --xred-4: 0.35 0.13 var(--red-hue);
54
+ --xred-5: 0.13 0.13 var(--red-hue);
55
+ --red-1: var(--xred-1);
56
+ --red-2: var(--xred-2);
57
+ --red-3: var(--xred-3);
58
+ --red-4: var(--xred-4);
59
+
60
+ /* shadcn tokens */
61
+ --background: var(--neutral-1);
62
+ --foreground: var(--neutral-10);
63
+
64
+ --card: var(--background);
65
+ --card-foreground: var(--foreground);
66
+ --popover: var(--background);
67
+ --popover-foreground: var(--foreground);
68
+
69
+ --primary: var(--primary-8);
70
+ --primary-foreground: var(--primary-2);
71
+
72
+ --secondary: var(--primary);
73
+ --secondary-foreground: var(--primary-foreground);
74
+
75
+ --muted: 0 0% 96.1%;
76
+ --muted-foreground: 0 0% 45.1%;
77
+
78
+ --accent: 0 0% 96.1%;
79
+ --accent-foreground: 0 0% 9%;
80
+
81
+ --destructive: var(--red-3);
82
+ --destructive-foreground: var(--red-1);
83
+
84
+ --border: 0 0% 89.8%;
85
+ --input: 0 0% 89.8%;
86
+ --ring: 0 0% 3.9%;
87
+
88
+ --chart-1: 12 76% 61%;
89
+ --chart-2: 173 58% 39%;
90
+ --chart-3: 197 37% 24%;
91
+ --chart-4: 43 74% 66%;
92
+ --chart-5: 27 87% 67%;
93
+
94
+ --radius: 0rem;
95
+
96
+ --sidebar-background: 0 0% 98%;
97
+ --sidebar-foreground: 240 5.3% 26.1%;
98
+
99
+ --sidebar-primary: 240 5.9% 10%;
100
+ --sidebar-primary-foreground: 0 0% 98%;
101
+
102
+ --sidebar-accent: 240 4.8% 95.9%;
103
+ --sidebar-accent-foreground: 240 5.9% 10%;
104
+
105
+ --sidebar-border: 220 13% 91%;
106
+ --sidebar-ring: 217.2 91.2% 59.8%
107
+ }
108
+
109
+ .dark {
110
+ --background: 0 0% 3.9%;
111
+ --foreground: 0 0% 98%;
112
+ --card: 0 0% 3.9%;
113
+ --card-foreground: 0 0% 98%;
114
+ --popover: 0 0% 3.9%;
115
+ --popover-foreground: 0 0% 98%;
116
+ --primary: 0 0% 98%;
117
+ --primary-foreground: 0 0% 9%;
118
+ --secondary: 0 0% 14.9%;
119
+ --secondary-foreground: 0 0% 98%;
120
+ --muted: 0 0% 14.9%;
121
+ --muted-foreground: 0 0% 63.9%;
122
+ --accent: 0 0% 14.9%;
123
+ --accent-foreground: 0 0% 98%;
124
+ --destructive: 0 62.8% 30.6%;
125
+ --destructive-foreground: 0 0% 98%;
126
+ --border: 0 0% 14.9%;
127
+ --input: 0 0% 14.9%;
128
+ --ring: 0 0% 83.1%;
129
+ --chart-1: 220 70% 50%;
130
+ --chart-2: 160 60% 45%;
131
+ --chart-3: 30 80% 55%;
132
+ --chart-4: 280 65% 60%;
133
+ --chart-5: 340 75% 55%;
134
+
135
+ --sidebar-background: 240 5.9% 10%;
136
+ --sidebar-foreground: 240 4.8% 95.9%;
137
+ --sidebar-primary: 224.3 76.3% 48%;
138
+ --sidebar-primary-foreground: 0 0% 100%;
139
+ --sidebar-accent: 240 3.7% 15.9%;
140
+ --sidebar-accent-foreground: 240 4.8% 95.9%;
141
+ --sidebar-border: 240 3.7% 15.9%;
142
+ --sidebar-ring: 217.2 91.2% 59.8%
143
+ }
package/package.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "@cryptlex/web-components",
3
+ "version": "1.0.0",
4
+ "description": "React component library for Cryptlex web applications",
5
+ "author": "Cryptlex",
6
+ "type": "module",
7
+ "private": false,
8
+ "main": "./dist/index.es.js",
9
+ "module": "./dist/index.es.js",
10
+ "types": "./dist/index.es.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.es.d.ts",
14
+ "import": "./dist/index.es.js"
15
+ },
16
+ "./index.css": "./lib/index.css",
17
+ "./tokens.css": "./lib/tokens.css",
18
+ "./tailwind-preset": "./tailwind.preset.ts"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "tailwind.preset.ts",
23
+ "lib/tokens.css",
24
+ "lib/index.css"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/cryptlex/web-components"
29
+ },
30
+ "keywords": [
31
+ "react",
32
+ "components",
33
+ "ui",
34
+ "design-system",
35
+ "cryptlex"
36
+ ],
37
+ "sideEffects": [
38
+ "**/*.css",
39
+ "**/*.tsx"
40
+ ],
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@radix-ui/react-checkbox": "^1.1.2",
46
+ "@radix-ui/react-collapsible": "^1.1.1",
47
+ "@radix-ui/react-dialog": "^1.1.2",
48
+ "@radix-ui/react-dropdown-menu": "^2.1.2",
49
+ "@radix-ui/react-icons": "^1.3.0",
50
+ "@radix-ui/react-label": "^2.1.0",
51
+ "@radix-ui/react-popover": "^1.1.2",
52
+ "@radix-ui/react-radio-group": "^1.2.1",
53
+ "@radix-ui/react-select": "^2.1.2",
54
+ "@radix-ui/react-separator": "^1.1.0",
55
+ "@radix-ui/react-slot": "^1.1.0",
56
+ "@radix-ui/react-tooltip": "^1.1.3",
57
+ "@tanstack/react-table": "^8.20.5",
58
+ "class-variance-authority": "^0.7.0",
59
+ "clsx": "^2.1.1",
60
+ "cmdk": "1.0.0",
61
+ "date-fns": "^3.0.0",
62
+ "lucide-react": "^0.453.0",
63
+ "react": "^18.3.1",
64
+ "react-day-picker": "8.10.1",
65
+ "react-dom": "^18.3.1",
66
+ "recharts": "^2.13.0",
67
+ "react-hook-form": "^7.53.1",
68
+ "tailwind-merge": "^2.5.4",
69
+ "tailwindcss": "^3.4.14",
70
+ "tailwindcss-animate": "^1.0.7"
71
+ },
72
+ "devDependencies": {
73
+ "@chromatic-com/storybook": "^1.9.0",
74
+ "@eslint/js": "^9.11.1",
75
+ "@storybook/addon-docs": "^8.3.6",
76
+ "@storybook/addon-essentials": "^8.3.6",
77
+ "@storybook/addon-interactions": "^8.3.6",
78
+ "@storybook/addon-links": "^8.3.6",
79
+ "@storybook/addon-onboarding": "^8.3.6",
80
+ "@storybook/blocks": "^8.3.6",
81
+ "@storybook/react": "^8.3.6",
82
+ "@storybook/react-vite": "^8.3.6",
83
+ "@storybook/test": "^8.3.6",
84
+ "@types/node": "^22.7.8",
85
+ "@types/react": "^18.3.10",
86
+ "@types/react-dom": "^18.3.0",
87
+ "@vitejs/plugin-react": "^4.3.2",
88
+ "autoprefixer": "^10.4.20",
89
+ "eslint": "^9.11.1",
90
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
91
+ "eslint-plugin-react-refresh": "^0.4.12",
92
+ "eslint-plugin-storybook": "^0.10.1",
93
+ "globals": "^15.9.0",
94
+ "postcss": "^8.4.47",
95
+ "storybook": "^8.3.6",
96
+ "typescript": "^5.5.3",
97
+ "typescript-eslint": "^8.7.0",
98
+ "vite": "^5.4.8",
99
+ "vite-plugin-dts": "^4.2.4"
100
+ },
101
+ "scripts": {
102
+ "build": "tsc && vite build",
103
+ "lint": "eslint .",
104
+ "storybook": "storybook dev -p 6006",
105
+ "build:storybook": "storybook build"
106
+ }
107
+ }
@@ -0,0 +1,77 @@
1
+ import type { Config } from 'tailwindcss';
2
+
3
+ // Define your Tailwind preset configuration
4
+ const tailwindPreset: Config = {
5
+ darkMode: ['class'], // Enable dark mode based on class
6
+ content: [
7
+ './lib/**/*.{ts,tsx}', // Paths to your library components
8
+ './stories/**/*.{tsx,ts}', // Paths to any storybook files
9
+ './.storybook/**/*.{tsx,ts}', // Storybook config paths
10
+ ],
11
+ theme: {
12
+ extend: {
13
+ borderRadius: {
14
+ lg: 'var(--radius)',
15
+ md: 'calc(var(--radius) - 2px)',
16
+ sm: 'calc(var(--radius) - 4px)',
17
+ },
18
+ colors: {
19
+ background: 'oklch(var(--background))',
20
+ foreground: 'oklch(var(--foreground))',
21
+ card: {
22
+ DEFAULT: 'oklch(var(--card))',
23
+ foreground: 'oklch(var(--card-foreground))',
24
+ },
25
+ popover: {
26
+ DEFAULT: 'oklch(var(--popover))',
27
+ foreground: 'oklch(var(--popover-foreground))',
28
+ },
29
+ primary: {
30
+ DEFAULT: 'oklch(var(--primary))',
31
+ foreground: 'oklch(var(--primary-foreground))',
32
+ },
33
+ secondary: {
34
+ DEFAULT: 'oklch(var(--secondary))',
35
+ foreground: 'oklch(var(--secondary-foreground))',
36
+ },
37
+ muted: {
38
+ DEFAULT: 'oklch(var(--muted))',
39
+ foreground: 'oklch(var(--muted-foreground))',
40
+ },
41
+ accent: {
42
+ DEFAULT: 'oklch(var(--accent))',
43
+ foreground: 'oklch(var(--accent-foreground))',
44
+ },
45
+ destructive: {
46
+ DEFAULT: 'oklch(var(--destructive))',
47
+ foreground: 'oklch(var(--destructive-foreground))',
48
+ },
49
+ border: 'oklch(var(--border))',
50
+ input: 'oklch(var(--input))',
51
+ ring: 'oklch(var(--ring))',
52
+ chart: {
53
+ 1: 'oklch(var(--chart-1))',
54
+ 2: 'oklch(var(--chart-2))',
55
+ 3: 'oklch(var(--chart-3))',
56
+ 4: 'oklch(var(--chart-4))',
57
+ 5: 'oklch(var(--chart-5))',
58
+ },
59
+ sidebar: {
60
+ DEFAULT: 'oklch(var(--sidebar-background))',
61
+ foreground: 'oklch(var(--sidebar-foreground))',
62
+ primary: 'oklch(var(--sidebar-primary))',
63
+ primaryForeground:
64
+ 'oklch(var(--sidebar-primary-foreground))',
65
+ accent: 'oklch(var(--sidebar-accent))',
66
+ accentForeground:
67
+ 'oklch(var(--sidebar-accent-foreground))',
68
+ border: 'oklch(var(--sidebar-border))',
69
+ ring: 'oklch(var(--sidebar-ring))',
70
+ },
71
+ },
72
+ },
73
+ },
74
+ plugins: [require('tailwindcss-animate')], // Include any plugins you need
75
+ };
76
+
77
+ export default tailwindPreset;