@cryptlex/web-components 6.1.0 → 6.3.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 (40) hide show
  1. package/dist/components/badge.js +1 -1
  2. package/dist/components/badge.js.map +1 -1
  3. package/dist/components/checkbox.d.ts +1 -1
  4. package/dist/components/checkbox.js +1 -1
  5. package/dist/components/checkbox.js.map +1 -1
  6. package/dist/components/data-table-commons.js +1 -1
  7. package/dist/components/data-table-commons.js.map +1 -1
  8. package/dist/components/data-table-filter.js +1 -1
  9. package/dist/components/data-table.js +1 -1
  10. package/dist/components/data-table.js.map +1 -1
  11. package/dist/components/dialog.js +1 -1
  12. package/dist/components/dialog.js.map +1 -1
  13. package/dist/components/field.js +1 -1
  14. package/dist/components/field.js.map +1 -1
  15. package/dist/components/id-search.js +1 -1
  16. package/dist/components/id-search.js.map +1 -1
  17. package/dist/components/key-value-card.js +1 -1
  18. package/dist/components/key-value-card.js.map +1 -1
  19. package/dist/components/menu.js +1 -1
  20. package/dist/components/menu.js.map +1 -1
  21. package/dist/components/multi-select.d.ts +2 -1
  22. package/dist/components/multi-select.js +1 -1
  23. package/dist/components/multi-select.js.map +1 -1
  24. package/dist/components/numberfield.d.ts +1 -1
  25. package/dist/components/numberfield.js +1 -1
  26. package/dist/components/numberfield.js.map +1 -1
  27. package/dist/components/searchfield.js +1 -1
  28. package/dist/components/searchfield.js.map +1 -1
  29. package/dist/components/select.d.ts +1 -1
  30. package/dist/components/select.js +1 -1
  31. package/dist/components/select.js.map +1 -1
  32. package/dist/components/textfield.js +1 -1
  33. package/dist/components/textfield.js.map +1 -1
  34. package/dist/utils/form-hook.js +1 -1
  35. package/dist/utils/form-hook.js.map +1 -1
  36. package/dist/utils/form-utils.d.ts +24 -0
  37. package/dist/utils/form-utils.js +2 -0
  38. package/dist/utils/form-utils.js.map +1 -0
  39. package/lib/utilities.css +20 -32
  40. package/package.json +1 -1
package/lib/utilities.css CHANGED
@@ -2,12 +2,20 @@
2
2
  @apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
3
3
  }
4
4
 
5
+ @utility ol {
6
+ @apply list-decimal list-inside;
7
+ }
8
+
9
+ @utility ul {
10
+ @apply list-disc list-inside;
11
+ }
12
+
5
13
  @utility caption {
6
- @apply text-xs font-medium;
14
+ @apply text-sm font-medium;
7
15
  }
8
16
 
9
17
  @utility body {
10
- @apply text-sm;
18
+ @apply text-base leading-relaxed;
11
19
  }
12
20
 
13
21
  @utility h5 {
@@ -19,15 +27,15 @@
19
27
  }
20
28
 
21
29
  @utility h3 {
22
- @apply text-xl font-normal;
30
+ @apply text-2xl font-normal leading-snug;
23
31
  }
24
32
 
25
33
  @utility h2 {
26
- @apply text-2xl font-light;
34
+ @apply text-3xl font-light leading-snug;
27
35
  }
28
36
 
29
37
  @utility h1 {
30
- @apply text-4xl font-extralight;
38
+ @apply text-5xl leading-tight font-extralight;
31
39
  }
32
40
 
33
41
  /* Fluid grid with minimum width */
@@ -43,7 +51,7 @@
43
51
  @apply disabled:cursor-not-allowed disabled:opacity-70 aria-disabled:cursor-not-allowed aria-disabled:opacity-70 data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-70;
44
52
  }
45
53
  @utility input {
46
- @apply border border-input bg-card px-icon py-2 body placeholder:text-muted-foreground disabled-muted focus-ring;
54
+ @apply border border-input bg-popover px-icon py-2 body placeholder:text-muted-foreground disabled-muted focus-ring;
47
55
  }
48
56
 
49
57
  /* A base set of classes for elements that can be clicked */
@@ -51,16 +59,16 @@
51
59
  @apply inline-flex gap-1 text-ellipsis overflow-hidden items-center justify-center font-medium transition-colors cursor-pointer ring-offset-background [&_svg:not([class*='size-'])]:size-icon shrink-0 [&_svg]:shrink-0 leading-none outline-none no-underline whitespace-nowrap select-none disabled-muted focus-ring;
52
60
  }
53
61
  @utility btn-primary {
54
- @apply border border-primary text-primary bg-card hover:bg-primary/10 data-[hovered]:bg-primary/10 focus:bg-primary/10 data-[focused]:bg-primary/10;
62
+ @apply border border-primary text-primary bg-popover hover:bg-primary/10 data-[hovered]:bg-primary/10 focus:bg-primary/10 data-[focused]:bg-primary/10;
55
63
  }
56
64
  @utility btn-destructive {
57
- @apply border border-destructive text-destructive bg-card hover:bg-destructive/10 data-[hovered]:bg-destructive/10 focus:bg-destructive/10 data-[focused]:bg-destructive/10;
65
+ @apply border border-destructive text-destructive bg-popover hover:bg-destructive/10 data-[hovered]:bg-destructive/10 focus:bg-destructive/10 data-[focused]:bg-destructive/10;
58
66
  }
59
67
  @utility btn-neutral {
60
- @apply border border-input text-accent bg-card hover:bg-accent/10 data-[hovered]:bg-accent/10 focus:bg-accent/10 data-[focused]:bg-accent/10;
68
+ @apply border border-input text-accent bg-popover hover:bg-accent/10 data-[hovered]:bg-accent/10 focus:bg-accent/10 data-[focused]:bg-accent/10;
61
69
  }
62
70
  @utility btn-secondary {
63
- @apply border border-secondary text-secondary bg-card hover:bg-secondary/10 data-[hovered]:bg-secondary/10 focus:bg-secondary/10 data-[focused]:bg-secondary/10;
71
+ @apply border border-secondary text-secondary bg-popover hover:bg-secondary/10 data-[hovered]:bg-secondary/10 focus:bg-secondary/10 data-[focused]:bg-secondary/10;
64
72
  }
65
73
  @utility btn-ghost {
66
74
  @apply bg-transparent focus:bg-accent/20 data-[focused]:bg-accent/20 hover:bg-accent/20 data-[hovered]:bg-accent/20;
@@ -79,36 +87,16 @@
79
87
  @apply flex flex-col gap-1;
80
88
  }
81
89
 
82
-
83
- @utility prose {
84
- /* TODO, starting points are not correct, use tw-type */
85
- li {
86
- @apply list-inside;
87
- }
88
-
89
- ul > li {
90
- @apply list-disc;
91
- }
92
-
93
- ol > li {
94
- @apply list-decimal;
95
- }
96
-
97
- p, ul, ol, blockquote, pre {
98
- @apply my-2;
99
- }
100
- }
101
-
102
90
  @utility steps {
103
91
  @apply ps-0;
104
92
  > ol {
105
- @apply list-none ps-0;
106
93
  counter-reset: steps-counter;
94
+ @apply list-none ps-0;
107
95
  }
108
96
 
109
97
  > ol > li {
110
- @apply relative ps-input pb-2 min-h-12;
111
98
  counter-increment: steps-counter;
99
+ @apply relative ps-input pb-2 min-h-12;
112
100
  }
113
101
  > ol > li + li {
114
102
  @apply mt-0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",