@webjsdev/ui 0.3.1 → 0.3.3

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 (39) hide show
  1. package/package.json +4 -3
  2. package/packages/registry/README.md +35 -0
  3. package/packages/registry/components/accordion.ts +74 -0
  4. package/packages/registry/components/alert-dialog.ts +359 -0
  5. package/packages/registry/components/alert.ts +51 -0
  6. package/packages/registry/components/aspect-ratio.ts +22 -0
  7. package/packages/registry/components/avatar.ts +52 -0
  8. package/packages/registry/components/badge.ts +40 -0
  9. package/packages/registry/components/breadcrumb.ts +43 -0
  10. package/packages/registry/components/button.ts +72 -0
  11. package/packages/registry/components/card.ts +86 -0
  12. package/packages/registry/components/checkbox.ts +97 -0
  13. package/packages/registry/components/collapsible.ts +60 -0
  14. package/packages/registry/components/dialog.ts +378 -0
  15. package/packages/registry/components/dropdown-menu.ts +607 -0
  16. package/packages/registry/components/hover-card.ts +175 -0
  17. package/packages/registry/components/input.ts +36 -0
  18. package/packages/registry/components/kbd.ts +25 -0
  19. package/packages/registry/components/label.ts +23 -0
  20. package/packages/registry/components/native-select.ts +110 -0
  21. package/packages/registry/components/pagination.ts +45 -0
  22. package/packages/registry/components/popover.ts +260 -0
  23. package/packages/registry/components/progress.ts +46 -0
  24. package/packages/registry/components/radio-group.ts +113 -0
  25. package/packages/registry/components/separator.ts +30 -0
  26. package/packages/registry/components/skeleton.ts +16 -0
  27. package/packages/registry/components/sonner.ts +240 -0
  28. package/packages/registry/components/switch.ts +52 -0
  29. package/packages/registry/components/table.ts +58 -0
  30. package/packages/registry/components/tabs.ts +271 -0
  31. package/packages/registry/components/textarea.ts +27 -0
  32. package/packages/registry/components/toggle-group.ts +236 -0
  33. package/packages/registry/components/toggle.ts +118 -0
  34. package/packages/registry/components/tooltip.ts +195 -0
  35. package/packages/registry/lib/utils.ts +241 -0
  36. package/packages/registry/package.json +7 -0
  37. package/packages/registry/registry.json +479 -0
  38. package/packages/registry/themes/base-colors.js +193 -0
  39. package/packages/registry/themes/index.css +141 -0
@@ -0,0 +1,141 @@
1
+ /* @webjsdev/ui theme */
2
+ /* Generated by `webjsui init`. Edit freely - you own this. */
3
+
4
+ @theme inline {
5
+ --radius-sm: calc(var(--radius) * 0.6);
6
+ --radius-md: calc(var(--radius) * 0.8);
7
+ --radius-lg: var(--radius);
8
+ --radius-xl: calc(var(--radius) * 1.4);
9
+ --radius-2xl: calc(var(--radius) * 1.8);
10
+ --radius-3xl: calc(var(--radius) * 2.2);
11
+ --color-background: var(--background);
12
+ --color-foreground: var(--foreground);
13
+ --color-card: var(--card);
14
+ --color-card-foreground: var(--card-foreground);
15
+ --color-popover: var(--popover);
16
+ --color-popover-foreground: var(--popover-foreground);
17
+ --color-primary: var(--primary);
18
+ --color-primary-foreground: var(--primary-foreground);
19
+ --color-secondary: var(--secondary);
20
+ --color-secondary-foreground: var(--secondary-foreground);
21
+ --color-muted: var(--muted);
22
+ --color-muted-foreground: var(--muted-foreground);
23
+ --color-accent: var(--accent);
24
+ --color-accent-foreground: var(--accent-foreground);
25
+ --color-destructive: var(--destructive);
26
+ --color-destructive-foreground: var(--destructive-foreground);
27
+ --color-border: var(--border);
28
+ --color-input: var(--input);
29
+ --color-ring: var(--ring);
30
+ --color-chart-1: var(--chart-1);
31
+ --color-chart-2: var(--chart-2);
32
+ --color-chart-3: var(--chart-3);
33
+ --color-chart-4: var(--chart-4);
34
+ --color-chart-5: var(--chart-5);
35
+ --color-sidebar: var(--sidebar);
36
+ --color-sidebar-foreground: var(--sidebar-foreground);
37
+ --color-sidebar-primary: var(--sidebar-primary);
38
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
39
+ --color-sidebar-accent: var(--sidebar-accent);
40
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
41
+ --color-sidebar-border: var(--sidebar-border);
42
+ --color-sidebar-ring: var(--sidebar-ring);
43
+ }
44
+
45
+ /* Custom variants for component data attributes */
46
+ @custom-variant data-open (&:where([data-state="open"]));
47
+ @custom-variant data-closed (&:where([data-state="closed"]));
48
+ @custom-variant data-checked (&:where([data-state="checked"]));
49
+ @custom-variant data-unchecked (&:where([data-state="unchecked"]));
50
+ @custom-variant data-active (&:where([data-state="active"]));
51
+ @custom-variant data-disabled (&:where([data-disabled]:not([data-disabled="false"])));
52
+ @custom-variant data-selected (&:where([data-selected="true"]));
53
+ @custom-variant data-horizontal (&:where([data-orientation="horizontal"]));
54
+ @custom-variant data-vertical (&:where([data-orientation="vertical"]));
55
+ @custom-variant dark (&:is(.dark *));
56
+
57
+ @keyframes accordion-down {
58
+ from { height: 0; }
59
+ to { height: var(--accordion-panel-height, auto); }
60
+ }
61
+ @keyframes accordion-up {
62
+ from { height: var(--accordion-panel-height, auto); }
63
+ to { height: 0; }
64
+ }
65
+
66
+ :root {
67
+ --radius: 0.625rem;
68
+ --background: oklch(1 0 0);
69
+ --foreground: oklch(0.145 0 0);
70
+ --card: oklch(1 0 0);
71
+ --card-foreground: oklch(0.145 0 0);
72
+ --popover: oklch(1 0 0);
73
+ --popover-foreground: oklch(0.145 0 0);
74
+ --primary: oklch(0.205 0 0);
75
+ --primary-foreground: oklch(0.985 0 0);
76
+ --secondary: oklch(0.97 0 0);
77
+ --secondary-foreground: oklch(0.205 0 0);
78
+ --muted: oklch(0.97 0 0);
79
+ --muted-foreground: oklch(0.556 0 0);
80
+ --accent: oklch(0.97 0 0);
81
+ --accent-foreground: oklch(0.205 0 0);
82
+ --destructive: oklch(0.577 0.245 27.325);
83
+ --destructive-foreground: oklch(0.97 0.01 17);
84
+ --border: oklch(0.922 0 0);
85
+ --input: oklch(0.922 0 0);
86
+ --ring: oklch(0.708 0 0);
87
+ --chart-1: oklch(0.81 0.10 252);
88
+ --chart-2: oklch(0.62 0.19 260);
89
+ --chart-3: oklch(0.55 0.22 263);
90
+ --chart-4: oklch(0.49 0.22 264);
91
+ --chart-5: oklch(0.42 0.18 265);
92
+ --sidebar: oklch(0.985 0 0);
93
+ --sidebar-foreground: oklch(0.145 0 0);
94
+ --sidebar-primary: oklch(0.205 0 0);
95
+ --sidebar-primary-foreground: oklch(0.985 0 0);
96
+ --sidebar-accent: oklch(0.97 0 0);
97
+ --sidebar-accent-foreground: oklch(0.205 0 0);
98
+ --sidebar-border: oklch(0.922 0 0);
99
+ --sidebar-ring: oklch(0.708 0 0);
100
+ }
101
+
102
+ .dark {
103
+ --background: oklch(0.145 0 0);
104
+ --foreground: oklch(0.985 0 0);
105
+ --card: oklch(0.205 0 0);
106
+ --card-foreground: oklch(0.985 0 0);
107
+ --popover: oklch(0.205 0 0);
108
+ --popover-foreground: oklch(0.985 0 0);
109
+ --primary: oklch(0.922 0 0);
110
+ --primary-foreground: oklch(0.205 0 0);
111
+ --secondary: oklch(0.269 0 0);
112
+ --secondary-foreground: oklch(0.985 0 0);
113
+ --muted: oklch(0.269 0 0);
114
+ --muted-foreground: oklch(0.708 0 0);
115
+ --accent: oklch(0.371 0 0);
116
+ --accent-foreground: oklch(0.985 0 0);
117
+ --destructive: oklch(0.704 0.191 22.216);
118
+ --destructive-foreground: oklch(0.58 0.22 27);
119
+ --border: oklch(1 0 0 / 10%);
120
+ --input: oklch(1 0 0 / 15%);
121
+ --ring: oklch(0.556 0 0);
122
+ --chart-1: oklch(0.81 0.10 252);
123
+ --chart-2: oklch(0.62 0.19 260);
124
+ --chart-3: oklch(0.55 0.22 263);
125
+ --chart-4: oklch(0.49 0.22 264);
126
+ --chart-5: oklch(0.42 0.18 265);
127
+ --sidebar: oklch(0.205 0 0);
128
+ --sidebar-foreground: oklch(0.985 0 0);
129
+ --sidebar-primary: oklch(0.488 0.243 264.376);
130
+ --sidebar-primary-foreground: oklch(0.985 0 0);
131
+ --sidebar-accent: oklch(0.269 0 0);
132
+ --sidebar-accent-foreground: oklch(0.985 0 0);
133
+ --sidebar-border: oklch(1 0 0 / 10%);
134
+ --sidebar-ring: oklch(0.439 0 0);
135
+ }
136
+
137
+ @layer base {
138
+ * {
139
+ @apply border-border outline-ring/50;
140
+ }
141
+ }