@cryptlex/web-components 1.4.0 → 1.5.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 (94) hide show
  1. package/README.md +4 -13
  2. package/dist/components/data-table/column-picker.es.js +3 -4
  3. package/dist/components/data-table/column-picker.es.js.map +1 -1
  4. package/dist/components/data-table/data-table.es.js +84 -83
  5. package/dist/components/data-table/data-table.es.js.map +1 -1
  6. package/dist/components/data-table/page-size.es.js +5 -5
  7. package/dist/components/data-table/page-size.es.js.map +1 -1
  8. package/dist/components/data-table/paginator.es.js +25 -31
  9. package/dist/components/data-table/paginator.es.js.map +1 -1
  10. package/dist/components/data-table/table-actions.es.js +26 -27
  11. package/dist/components/data-table/table-actions.es.js.map +1 -1
  12. package/dist/components/data-table/table-commons.es.js +5 -4
  13. package/dist/components/data-table/table-commons.es.js.map +1 -1
  14. package/dist/components/data-table/table-content.es.js +34 -31
  15. package/dist/components/data-table/table-content.es.js.map +1 -1
  16. package/dist/components/data-table/table-filter.es.js +42 -45
  17. package/dist/components/data-table/table-filter.es.js.map +1 -1
  18. package/dist/components/key-value-card/key-value-card.es.js +17 -14
  19. package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
  20. package/dist/components/sidebar/app-layout.es.js +11 -15
  21. package/dist/components/sidebar/app-layout.es.js.map +1 -1
  22. package/dist/components/sidebar/breadcrumb.es.js +2 -3
  23. package/dist/components/sidebar/breadcrumb.es.js.map +1 -1
  24. package/dist/components/sidebar/nav-main.es.js +18 -18
  25. package/dist/components/sidebar/nav-main.es.js.map +1 -1
  26. package/dist/components/static-data-table/data-table.es.js +14 -14
  27. package/dist/components/static-data-table/data-table.es.js.map +1 -1
  28. package/dist/components/ui/accordion.es.js +9 -9
  29. package/dist/components/ui/accordion.es.js.map +1 -1
  30. package/dist/components/ui/avatar.es.js +16 -16
  31. package/dist/components/ui/avatar.es.js.map +1 -1
  32. package/dist/components/ui/badge.es.js +5 -24
  33. package/dist/components/ui/badge.es.js.map +1 -1
  34. package/dist/components/ui/breadcrumb.es.js +10 -10
  35. package/dist/components/ui/breadcrumb.es.js.map +1 -1
  36. package/dist/components/ui/button.es.js +17 -18
  37. package/dist/components/ui/button.es.js.map +1 -1
  38. package/dist/components/ui/calendar.es.js +8 -8
  39. package/dist/components/ui/calendar.es.js.map +1 -1
  40. package/dist/components/ui/card.es.js +21 -21
  41. package/dist/components/ui/card.es.js.map +1 -1
  42. package/dist/components/ui/chart.es.js +76 -102
  43. package/dist/components/ui/chart.es.js.map +1 -1
  44. package/dist/components/ui/checkbox.es.js +13 -19
  45. package/dist/components/ui/checkbox.es.js.map +1 -1
  46. package/dist/components/ui/command.es.js +4 -4
  47. package/dist/components/ui/command.es.js.map +1 -1
  48. package/dist/components/ui/copy-button.es.js +20 -34
  49. package/dist/components/ui/copy-button.es.js.map +1 -1
  50. package/dist/components/ui/dialog.es.js +32 -32
  51. package/dist/components/ui/dialog.es.js.map +1 -1
  52. package/dist/components/ui/drawer.es.js +2 -2
  53. package/dist/components/ui/drawer.es.js.map +1 -1
  54. package/dist/components/ui/dropdown-menu.es.js +74 -82
  55. package/dist/components/ui/dropdown-menu.es.js.map +1 -1
  56. package/dist/components/ui/input-otp.es.js +17 -17
  57. package/dist/components/ui/input-otp.es.js.map +1 -1
  58. package/dist/components/ui/input.es.js +7 -7
  59. package/dist/components/ui/input.es.js.map +1 -1
  60. package/dist/components/ui/link-button.es.js +6 -6
  61. package/dist/components/ui/link-button.es.js.map +1 -1
  62. package/dist/components/ui/mutli-select.es.js +52 -52
  63. package/dist/components/ui/mutli-select.es.js.map +1 -1
  64. package/dist/components/ui/navigation-menu.es.js +34 -34
  65. package/dist/components/ui/navigation-menu.es.js.map +1 -1
  66. package/dist/components/ui/pagination.es.js +38 -38
  67. package/dist/components/ui/pagination.es.js.map +1 -1
  68. package/dist/components/ui/password-input.es.js +13 -13
  69. package/dist/components/ui/password-input.es.js.map +1 -1
  70. package/dist/components/ui/radio-group.es.js +11 -11
  71. package/dist/components/ui/radio-group.es.js.map +1 -1
  72. package/dist/components/ui/search-input.es.js +11 -11
  73. package/dist/components/ui/search-input.es.js.map +1 -1
  74. package/dist/components/ui/select.es.js +31 -49
  75. package/dist/components/ui/select.es.js.map +1 -1
  76. package/dist/components/ui/sheet.es.js +17 -17
  77. package/dist/components/ui/sheet.es.js.map +1 -1
  78. package/dist/components/ui/sidebar.es.js +2 -3
  79. package/dist/components/ui/sidebar.es.js.map +1 -1
  80. package/dist/components/ui/table-page-layout.es.js +2 -2
  81. package/dist/components/ui/table-page-layout.es.js.map +1 -1
  82. package/dist/components/ui/table.es.js +37 -37
  83. package/dist/components/ui/table.es.js.map +1 -1
  84. package/dist/components/ui/tabs.es.js +2 -2
  85. package/dist/components/ui/tabs.es.js.map +1 -1
  86. package/dist/components/ui/tooltip.es.js +8 -8
  87. package/dist/components/ui/tooltip.es.js.map +1 -1
  88. package/dist/index.es.d.ts +29 -54
  89. package/dist/index.es.js +253 -256
  90. package/dist/utils/index.es.js.map +1 -1
  91. package/lib/index.css +24 -5
  92. package/lib/tailwind.preset.css +52 -40
  93. package/lib/tokens.css +0 -9
  94. package/package.json +1 -1
@@ -5,18 +5,28 @@
5
5
  @theme {
6
6
  /* Radius */
7
7
  --radius: 0.25rem;
8
- --radius-lg: var(--radius);
9
- --radius-md: calc(var(--radius) - 2px);
10
8
  --radius-sm: calc(var(--radius) - 4px);
9
+ --radius-md: calc(var(--radius) - 2px);
10
+ --radius-lg: var(--radius);
11
11
 
12
12
  /* Text Sizes */
13
+ --text-*: initial;
14
+ --text-xs: 0.75rem;
15
+ --text-xs--line-height: calc(1 / 0.75);
13
16
  --text-sm: 0.875rem;
17
+ --text-sm--line-height: calc(1.25 / 0.875);
14
18
  --text-base: 1rem;
15
- --text-md: 1.125rem;
16
- --text-lg: 1.25rem;
17
- --text-xl: 1.5rem;
18
- --text-2xl: 1.75rem;
19
- --text-3xl: 2rem;
19
+ --text-base--line-height: calc(1.5 / 1);
20
+ --text-lg: 1.125rem;
21
+ --text-lg--line-height: calc(1.75 / 1.125);
22
+ --text-xl: 1.25rem;
23
+ --text-xl--line-height: calc(1.75 / 1.25);
24
+ --text-2xl: 1.5rem;
25
+ --text-2xl--line-height: calc(2 / 1.5);
26
+ --text-3xl: 1.875rem;
27
+ --text-3xl--line-height: calc(2.25 / 1.875);
28
+ --text-4xl: 2.25rem;
29
+ --text-4xl--line-height: calc(2.5 / 2.25);
20
30
 
21
31
  /* Colors */
22
32
  --color-*: initial;
@@ -76,25 +86,25 @@
76
86
  --color-success-10: var(--success-10);
77
87
 
78
88
  --color-background: var(--color-neutral-2);
79
- --color-foreground: var(--color-neutral-10);
89
+ --color-foreground: var(--color-neutral-8);
80
90
 
81
- --color-card: var(--color-neutral-2);
91
+ --color-card: var(--color-neutral-1);
82
92
  --color-card-foreground: var(--color-foreground);
83
93
 
84
- --color-popover: var(--color-background);
94
+ --color-popover: var(--color-card);
85
95
  --color-popover-foreground: var(--color-foreground);
86
96
 
87
- --color-primary: var(--color-primary-8);
97
+ --color-primary: var(--color-primary-7);
88
98
  --color-primary-foreground: var(--color-primary-2);
89
- --color-secondary: var(--color-secondary-8);
99
+ --color-secondary: var(--color-secondary-7);
90
100
  --color-secondary-foreground: var(--color-secondary-2);
91
101
  --color-muted: var(--color-neutral-7);
92
102
  --color-muted-foreground: var(--color-neutral-4);
93
103
  --color-accent: var(--color-neutral-7);
94
104
  --color-accent-foreground: var(--color-neutral-4);
95
- --color-destructive: var(--color-destructive-8);
105
+ --color-destructive: var(--color-destructive-7);
96
106
  --color-destructive-foreground: var(--color-destructive-2);
97
- --color-success: var(--color-success-8);
107
+ --color-success: var(--color-success-7);
98
108
  --color-success-foreground: var(--color-success-2);
99
109
 
100
110
  --color-border: var(--color-neutral-3);
@@ -109,6 +119,7 @@
109
119
 
110
120
  --color-sidebar-background: var(--color-background);
111
121
  --color-sidebar-foreground: var(--color-foreground);
122
+
112
123
  /* // TODO */
113
124
  --color-sidebar-primary: 240 5.9% 10%;
114
125
  --color-sidebar-primary-foreground: 0 0% 98%;
@@ -174,47 +185,48 @@
174
185
  }
175
186
  }
176
187
 
177
- @utility text-caption {
178
- @apply text-sm;
188
+ @utility link {
189
+ @apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
179
190
  }
180
191
 
192
+ @utility caption {
193
+ @apply text-xs font-medium;
194
+ }
181
195
 
182
- @utility text-body {
183
- @apply text-base;
184
- /* lineHeight: '1.6', */
196
+ @utility body {
197
+ @apply text-sm;
185
198
  }
186
199
 
187
- @utility text-heading-6 {
188
- @apply text-base;
189
- /* fontWeight: 700, */
190
- /* lineHeight: '1.2', */
200
+ @utility h6 {
201
+ @apply text-base font-bold;
202
+ }
191
203
 
204
+ @utility h5 {
205
+ @apply text-lg font-semibold;
192
206
  }
193
207
 
194
- @utility text-heading-5 {
195
- @apply text-md;
196
- /* lineHeight: '1.2', */
208
+ @utility h4 {
209
+ @apply text-xl font-medium;
197
210
  }
198
211
 
199
- @utility text-heading-4 {
200
- @apply text-lg;
201
- /* lineHeight: '1.2', */
202
- /* fontWeight: 500, */
212
+ @utility h3 {
213
+ @apply text-2xl font-normal;
203
214
  }
204
215
 
205
- @utlility text-heading-3 {
206
- @apply text-xl;
216
+ @utility h2 {
217
+ @apply text-3xl font-light;
207
218
  }
208
219
 
209
- @utility text-heading-2 {
210
- @apply text-2xl;
211
- /* lineHeight: '1', */
212
- /* fontWeight: 300, */
220
+ @utility h1 {
221
+ @apply text-4xl font-extralight;
213
222
  }
214
223
 
215
- @utility text-heading-1 {
216
- @apply text-3xl;
217
- /* lineHeight: '1', */
224
+ /* Standard height for inputs ~32px */
225
+ @utility h-input {
226
+ @apply h-8;
218
227
  }
219
228
 
220
- @layer components {}
229
+ /* Standard size for icons */
230
+ @utility size-icon {
231
+ @apply size-4;
232
+ }
package/lib/tokens.css CHANGED
@@ -109,15 +109,6 @@
109
109
  --neutral-8: var(--xneutral-8);
110
110
  --neutral-9: var(--xneutral-9);
111
111
  --neutral-10: var(--xneutral-10);
112
- /* https://www.fluid-type-scale.com/, https://fluidtypography.com/ */
113
- --font-xs: clamp(0.52rem, 0.08vi + 0.5rem, 0.56rem);
114
- --font-sm: clamp(0.65rem, 0.18vi + 0.6rem, 0.75rem);
115
- --font-base: clamp(0.81rem, 0.34vi + 0.73rem, 1rem);
116
- --font-md: clamp(1.02rem, 0.58vi + 0.87rem, 1.33rem);
117
- --font-lg: clamp(1.27rem, 0.92vi + 1.04rem, 1.78rem);
118
- --font-xl: clamp(1.59rem, 1.42vi + 1.23rem, 2.37rem);
119
- --font-2xl: clamp(1.98rem, 2.13vi + 1.45rem, 3.16rem);
120
- --font-3xl: clamp(2.48rem, 3.14vi + 1.69rem, 4.21rem);
121
112
  }
122
113
 
123
114
  .dark {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",