@openui-xio/ui 0.0.2
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/CHANGELOG.md +13 -0
- package/LICENSE +661 -0
- package/README.md +9 -0
- package/components.json +20 -0
- package/package.json +74 -0
- package/postcss.config.mjs +6 -0
- package/src/components/.gitkeep +0 -0
- package/src/components/accordion.tsx +66 -0
- package/src/components/alert-dialog.tsx +157 -0
- package/src/components/alert.tsx +66 -0
- package/src/components/aspect-ratio.tsx +11 -0
- package/src/components/avatar.tsx +53 -0
- package/src/components/badge.tsx +46 -0
- package/src/components/breadcrumb.tsx +109 -0
- package/src/components/button.tsx +46 -0
- package/src/components/calendar.tsx +85 -0
- package/src/components/card.tsx +92 -0
- package/src/components/carousel.tsx +241 -0
- package/src/components/chart.tsx +353 -0
- package/src/components/checkbox.tsx +32 -0
- package/src/components/collapsible.tsx +33 -0
- package/src/components/command.tsx +177 -0
- package/src/components/context-menu.tsx +252 -0
- package/src/components/dialog.tsx +135 -0
- package/src/components/drawer.tsx +132 -0
- package/src/components/dropdown-menu.tsx +257 -0
- package/src/components/form.tsx +168 -0
- package/src/components/hover-card.tsx +44 -0
- package/src/components/input-otp.tsx +77 -0
- package/src/components/input.tsx +21 -0
- package/src/components/label.tsx +24 -0
- package/src/components/menubar.tsx +276 -0
- package/src/components/navigation-menu.tsx +168 -0
- package/src/components/pagination.tsx +126 -0
- package/src/components/popover.tsx +48 -0
- package/src/components/progress.tsx +31 -0
- package/src/components/radio-group.tsx +45 -0
- package/src/components/resizable.tsx +56 -0
- package/src/components/scroll-area.tsx +58 -0
- package/src/components/select.tsx +185 -0
- package/src/components/separator.tsx +28 -0
- package/src/components/sheet.tsx +139 -0
- package/src/components/sidebar.tsx +726 -0
- package/src/components/skeleton.tsx +13 -0
- package/src/components/slider.tsx +63 -0
- package/src/components/sonner.tsx +25 -0
- package/src/components/switch.tsx +31 -0
- package/src/components/table.tsx +116 -0
- package/src/components/tabs.tsx +66 -0
- package/src/components/textarea.tsx +18 -0
- package/src/components/toggle-group.tsx +73 -0
- package/src/components/toggle.tsx +47 -0
- package/src/components/tooltip.tsx +61 -0
- package/src/hooks/.gitkeep +0 -0
- package/src/hooks/use-mobile.ts +21 -0
- package/src/lib/utils.ts +6 -0
- package/src/styles/globals.css +161 -0
- package/tsconfig.json +11 -0
- package/tsconfig.lint.json +8 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@source "../../../apps/**/*.{ts,tsx}";
|
|
3
|
+
@source "../../../components/**/*.{ts,tsx}";
|
|
4
|
+
@source "../**/*.{ts,tsx}";
|
|
5
|
+
|
|
6
|
+
@import "tw-animate-css";
|
|
7
|
+
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--background: oklch(1 0 0);
|
|
12
|
+
--foreground: oklch(0.145 0 0);
|
|
13
|
+
--card: oklch(1 0 0);
|
|
14
|
+
--card-foreground: oklch(0.145 0 0);
|
|
15
|
+
--popover: oklch(1 0 0);
|
|
16
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
17
|
+
--primary: oklch(0.205 0 0);
|
|
18
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
19
|
+
--secondary: oklch(0.97 0 0);
|
|
20
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
21
|
+
--muted: oklch(0.97 0 0);
|
|
22
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
23
|
+
--accent: oklch(0.97 0 0);
|
|
24
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
25
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
26
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
27
|
+
--border: oklch(0.922 0 0);
|
|
28
|
+
--input: oklch(0.922 0 0);
|
|
29
|
+
--ring: oklch(0.708 0 0);
|
|
30
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
31
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
32
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
33
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
34
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
35
|
+
--radius: 0.625rem;
|
|
36
|
+
--sidebar: oklch(0.985 0 0);
|
|
37
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
38
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
39
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
40
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
41
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
42
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
43
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dark {
|
|
47
|
+
--background: oklch(0.145 0 0);
|
|
48
|
+
--foreground: oklch(0.985 0 0);
|
|
49
|
+
--card: oklch(0.145 0 0);
|
|
50
|
+
--card-foreground: oklch(0.985 0 0);
|
|
51
|
+
--popover: oklch(0.145 0 0);
|
|
52
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
53
|
+
--primary: oklch(0.985 0 0);
|
|
54
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
55
|
+
--secondary: oklch(0.269 0 0);
|
|
56
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
57
|
+
--muted: oklch(0.269 0 0);
|
|
58
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
59
|
+
--accent: oklch(0.269 0 0);
|
|
60
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
61
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
62
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
63
|
+
--border: oklch(0.269 0 0);
|
|
64
|
+
--input: oklch(0.269 0 0);
|
|
65
|
+
--ring: oklch(0.556 0 0);
|
|
66
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
67
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
68
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
69
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
70
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
71
|
+
--sidebar: oklch(0.205 0 0);
|
|
72
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
74
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
76
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
77
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
78
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@theme inline {
|
|
82
|
+
--color-background: var(--background);
|
|
83
|
+
--color-foreground: var(--foreground);
|
|
84
|
+
--color-card: var(--card);
|
|
85
|
+
--color-card-foreground: var(--card-foreground);
|
|
86
|
+
--color-popover: var(--popover);
|
|
87
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
88
|
+
--color-primary: var(--primary);
|
|
89
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
90
|
+
--color-secondary: var(--secondary);
|
|
91
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
92
|
+
--color-muted: var(--muted);
|
|
93
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
94
|
+
--color-accent: var(--accent);
|
|
95
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
96
|
+
--color-destructive: var(--destructive);
|
|
97
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
98
|
+
--color-border: var(--border);
|
|
99
|
+
--color-input: var(--input);
|
|
100
|
+
--color-ring: var(--ring);
|
|
101
|
+
--color-chart-1: var(--chart-1);
|
|
102
|
+
--color-chart-2: var(--chart-2);
|
|
103
|
+
--color-chart-3: var(--chart-3);
|
|
104
|
+
--color-chart-4: var(--chart-4);
|
|
105
|
+
--color-chart-5: var(--chart-5);
|
|
106
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
107
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
108
|
+
--radius-lg: var(--radius);
|
|
109
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
110
|
+
--color-sidebar: var(--sidebar);
|
|
111
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
112
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
113
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
114
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
115
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
116
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
117
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@layer base {
|
|
121
|
+
* {
|
|
122
|
+
@apply border-border outline-ring/50;
|
|
123
|
+
}
|
|
124
|
+
body {
|
|
125
|
+
@apply bg-background text-foreground;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:root {
|
|
134
|
+
--glass-border-shadow: inset 2px 3px 1px -3px rgba(255, 255, 255, 0.8), inset 2px 3px 3px -2.5px rgba(255, 255, 255, 0.3), inset -2px -3px 1px -3px rgba(255, 255, 255, 0.8), inset -2px -3px 3px -2.5px rgba(255, 255, 255, 0.3), inset 0 0 1px 1px rgba(50,50,50,0.15);
|
|
135
|
+
--glass-body-shadow: inset 0 0 0 rgba(0,0,0,0), inset 0 4px 8px 4px rgba(255,255,255,0.1), inset 0 -16px 32px -24px rgba(0,0,0,0.1);
|
|
136
|
+
--glass-body-shadow-hover: inset 0 0 0 rgba(0,0,0,0), inset 0 4px 16px 4px rgba(255,255,255,0.15), inset 0 -16px 32px -24px rgba(0,0,0,0.1);
|
|
137
|
+
--glass-body-shadow-pressed: inset 0 0 0 rgba(0,0,0,0), inset 0 2px 4px 3px rgba(255,255,255,0.1), inset 0 -8px 16px -16px rgba(0,0,0,0.3);
|
|
138
|
+
|
|
139
|
+
--glass-inset-border-shadow: inset 0 0 1px 0px rgba(0,0,0,0.2);
|
|
140
|
+
--glass-inset-shadow: inset 0 2px 3px 1px rgba(0,0,0,0.05), inset -1px -4px 5px -5px rgba(255, 255, 255, 0.5), inset 0 4px 24px 12px rgba(0,0,0,0.05), 0.3px 0.7px 1px 0px rgba(255,255,255,0.2);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility glass-body {
|
|
144
|
+
@apply relative after:transition-all after:duration-150 after:pointer-events-none after:absolute after:inset-0 after:block after:size-full after:rounded-[inherit] after:shadow-[var(--glass-border-shadow),var(--glass-body-shadow)];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@utility glass-body-interactive {
|
|
148
|
+
@apply active:after:bg-black/2.5 enabled:hover:after:shadow-[var(--glass-border-shadow),var(--glass-body-shadow-hover)] enabled:active:after:shadow-[var(--glass-border-shadow),var(--glass-body-shadow-pressed)];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@utility glass-body-motion {
|
|
152
|
+
@apply transition-transform duration-300 ease-out shadow-black/5 shadow-lg;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@utility glass-body-motion-interactive {
|
|
156
|
+
@apply active:scale-[98%] hover:scale-[101%] hover:shadow-xl active:shadow-md;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@utility glass-inset {
|
|
160
|
+
@apply relative before:pointer-events-none before:absolute before:inset-0 before:block before:size-full before:rounded-[inherit] before:shadow-[var(--glass-inset-border-shadow),var(--glass-inset-shadow)];
|
|
161
|
+
}
|
package/tsconfig.json
ADDED