@cryptlex/web-components 1.2.2 → 1.3.1

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 (55) hide show
  1. package/dist/components/ui/accordion.es.js +8 -8
  2. package/dist/components/ui/accordion.es.js.map +1 -1
  3. package/dist/components/ui/avatar.es.js +43 -0
  4. package/dist/components/ui/avatar.es.js.map +1 -0
  5. package/dist/components/ui/badge.es.js +1 -1
  6. package/dist/components/ui/badge.es.js.map +1 -1
  7. package/dist/components/ui/breadcrumb.es.js +1 -1
  8. package/dist/components/ui/breadcrumb.es.js.map +1 -1
  9. package/dist/components/ui/button.es.js +5 -5
  10. package/dist/components/ui/button.es.js.map +1 -1
  11. package/dist/components/ui/calendar.es.js +3 -3
  12. package/dist/components/ui/calendar.es.js.map +1 -1
  13. package/dist/components/ui/card.es.js +17 -17
  14. package/dist/components/ui/card.es.js.map +1 -1
  15. package/dist/components/ui/chart.es.js +14 -14
  16. package/dist/components/ui/chart.es.js.map +1 -1
  17. package/dist/components/ui/command.es.js +19 -19
  18. package/dist/components/ui/command.es.js.map +1 -1
  19. package/dist/components/ui/dialog.es.js +2 -2
  20. package/dist/components/ui/dialog.es.js.map +1 -1
  21. package/dist/components/ui/drawer.es.js +99 -0
  22. package/dist/components/ui/drawer.es.js.map +1 -0
  23. package/dist/components/ui/dropdown-menu.es.js +59 -59
  24. package/dist/components/ui/dropdown-menu.es.js.map +1 -1
  25. package/dist/components/ui/form.es.js +2 -2
  26. package/dist/components/ui/form.es.js.map +1 -1
  27. package/dist/components/ui/input-otp.es.js +49 -0
  28. package/dist/components/ui/input-otp.es.js.map +1 -0
  29. package/dist/components/ui/input.es.js +7 -7
  30. package/dist/components/ui/input.es.js.map +1 -1
  31. package/dist/components/ui/label.es.js +7 -7
  32. package/dist/components/ui/label.es.js.map +1 -1
  33. package/dist/components/ui/navigation-menu.es.js +2 -2
  34. package/dist/components/ui/navigation-menu.es.js.map +1 -1
  35. package/dist/components/ui/select.es.js +21 -21
  36. package/dist/components/ui/select.es.js.map +1 -1
  37. package/dist/components/ui/sheet.es.js +5 -5
  38. package/dist/components/ui/sheet.es.js.map +1 -1
  39. package/dist/components/ui/sidebar.es.js +85 -85
  40. package/dist/components/ui/sidebar.es.js.map +1 -1
  41. package/dist/components/ui/table.es.js +8 -8
  42. package/dist/components/ui/table.es.js.map +1 -1
  43. package/dist/components/ui/tabs.es.js +47 -0
  44. package/dist/components/ui/tabs.es.js.map +1 -0
  45. package/dist/components/ui/tooltip.es.js +8 -8
  46. package/dist/components/ui/tooltip.es.js.map +1 -1
  47. package/dist/index.es.d.ts +109 -8
  48. package/dist/index.es.js +220 -193
  49. package/dist/index.es.js.map +1 -1
  50. package/dist/utils/index.es.js +17 -5
  51. package/dist/utils/index.es.js.map +1 -1
  52. package/lib/index.css +13 -10
  53. package/lib/tokens.css +14 -14
  54. package/package.json +7 -4
  55. package/tailwind.preset.ts +69 -77
@@ -1,7 +1,7 @@
1
1
  import type { Config } from 'tailwindcss';
2
2
 
3
3
  const tokenRamps = (paletteName: string) => {
4
- const ramps = {};
4
+ const ramps: Record<number, string> = {};
5
5
  for (let i = 1; i <= 10; i++) {
6
6
  ramps[i] = `oklch(var(--${paletteName}-${i}) / <alpha-value>)`
7
7
  }
@@ -18,6 +18,70 @@ export default {
18
18
  md: 'calc(var(--radius) - 2px)',
19
19
  sm: 'calc(var(--radius) - 4px)',
20
20
  },
21
+ fontSize: {
22
+ // text-caption
23
+ caption: [
24
+ "var(--font-sm)",
25
+ {
26
+ lineHeight: "1.5"
27
+ },
28
+ ],
29
+ // text-body
30
+ body: [
31
+ "var(--font-base)",
32
+ {
33
+ lineHeight: "1.6",
34
+ },
35
+ ],
36
+ // text-heading-6
37
+ "heading-6": [
38
+ "var(--font-base)",
39
+ {
40
+ lineHeight: "1.2",
41
+ fontWeight: 700
42
+ },
43
+ ],
44
+ // text-heading-5
45
+ "heading-5": [
46
+ "var(--font-md)",
47
+ {
48
+ lineHeight: "1.2"
49
+ },
50
+ ],
51
+ // text-heading-4
52
+ "heading-4": [
53
+ "var(--font-lg)",
54
+ {
55
+ lineHeight: "1.2",
56
+ fontWeight: 500
57
+ },
58
+ ],
59
+ // text-heading-3
60
+ "heading-3": [
61
+ "var(--font-xl)",
62
+ {
63
+ lineHeight: "1.1",
64
+ fontWeight: 500
65
+ },
66
+ ],
67
+
68
+ // text-heading-2
69
+ "heading-2": [
70
+ "var(--font-2xl)",
71
+ {
72
+ lineHeight: "1",
73
+ fontWeight: 300
74
+ },
75
+ ],
76
+
77
+ // text-heading-1
78
+ "heading-1": [
79
+ "var(--font-3xl)",
80
+ {
81
+ lineHeight: "1",
82
+ },
83
+ ],
84
+ },
21
85
  colors: {
22
86
  transparent: 'transparent',
23
87
  current: 'currentColor',
@@ -88,6 +152,9 @@ export default {
88
152
  },
89
153
  },
90
154
  extend: {
155
+ gridTemplateColumns: {
156
+ 'fluid': "repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))"
157
+ },
91
158
  keyframes: {
92
159
  'accordion-down': {
93
160
  from: {
@@ -110,82 +177,7 @@ export default {
110
177
  'accordion-down': 'accordion-down 0.2s ease-out',
111
178
  'accordion-up': 'accordion-up 0.2s ease-out'
112
179
  },
113
- spacing: {
114
- 'v1': 'var(--vspace-1)',
115
- 'v2': 'var(--vspace-2)',
116
- 'v3': 'var(--vspace-3)',
117
- 'v4': 'var(--vspace-4)',
118
- 'v5': 'var(--vspace-5)',
119
- },
120
- fontSize: {
121
- // text-caption
122
- caption: [
123
- "0.7708em",
124
- {
125
- lineHeight: "16px",
126
- fontWeight: "400",
127
- },
128
- ],
129
- // text-body
130
- body: [
131
- "14px",
132
- {
133
- lineHeight: "20px",
134
- fontWeight: "400",
135
- },
136
- ],
137
- // text-heading-6
138
- "heading-6": [
139
- "1em",
140
- {
141
- lineHeight: "var(--vspace-1)",
142
- letterSpacing: "0em"
143
- },
144
- ],
145
- // text-heading-5
146
- "heading-5": [
147
- "1.1667em",
148
- {
149
- lineHeight: "var(--vspace-1)"
150
- },
151
- ],
152
- // text-heading-4
153
- "heading-4": [
154
- "1.3333em",
155
- {
156
- lineHeight: "var(--vspace-1)"
157
- },
158
- ],
159
- // text-heading-3
160
- "heading-3": [
161
- "1.75em",
162
- {
163
- lineHeight: "1em",
164
- fontWeight: "500",
165
- },
166
- ],
167
-
168
- // text-heading-2
169
- "heading-2": [
170
- "2.6458em",
171
- {
172
- lineHeight: "1em",
173
- fontWeight: "300",
174
- },
175
- ],
176
-
177
- // text-heading-1
178
- "heading-1": [
179
- "5.2917em",
180
- {
181
- lineHeight: "calc(5.2917/var(--space) * var(--vspace-1))",
182
- fontWeight: "400",
183
- },
184
- ],
185
- },
186
180
  }
187
181
  },
188
182
  plugins: [require('tailwindcss-animate')], // Include any plugins you need
189
- } satisfies Config;
190
-
191
- // export default tailwindPreset;
183
+ } satisfies Config;