@cryptlex/web-components 6.6.6-alpha19 → 6.6.6-alpha21
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/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/data-table.d.ts +1 -0
- package/dist/components/data-table.js +1 -1
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/form.d.ts +9 -3
- package/dist/components/form.js +1 -1
- package/dist/components/form.js.map +1 -1
- package/dist/components/icons.d.ts +10 -0
- package/dist/components/icons.js +120 -75
- package/dist/components/icons.js.map +1 -1
- package/dist/components/id-search.d.ts +2 -2
- package/dist/components/id-search.js +1 -1
- package/dist/components/id-search.js.map +1 -1
- package/dist/components/list-box.js +1 -1
- package/dist/components/list-box.js.map +1 -1
- package/dist/components/multi-select.d.ts +1 -1
- package/dist/components/multi-select.js +1 -1
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/numberfield.d.ts +1 -1
- package/dist/components/numberfield.js +1 -1
- package/dist/components/numberfield.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/searchfield.d.ts +1 -1
- package/dist/components/searchfield.js +1 -1
- package/dist/components/searchfield.js.map +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/sidebar.d.ts +10 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.js.map +1 -1
- package/dist/components/textfield.d.ts +2 -2
- package/dist/components/textfield.js +1 -1
- package/dist/components/textfield.js.map +1 -1
- package/lib/index.css +18 -22
- package/package.json +2 -1
package/lib/index.css
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@import 'tailwindcss';
|
|
2
|
+
@plugin 'tailwindcss-react-aria-components';
|
|
2
3
|
@import './tokens.css';
|
|
3
4
|
/** https://tailwindcss.com/docs/theme#theme-variable-namespaces */
|
|
4
|
-
@theme
|
|
5
|
+
@theme {
|
|
5
6
|
/* Radius */
|
|
6
7
|
--radius-*: initial;
|
|
7
8
|
|
|
@@ -70,16 +71,10 @@
|
|
|
70
71
|
--color-success-10: var(--success-10);
|
|
71
72
|
|
|
72
73
|
--color-background: var(--color-neutral-3);
|
|
74
|
+
--color-foreground: var(--color-neutral-8);
|
|
73
75
|
--color-elevation-1: var(--color-neutral-2);
|
|
74
76
|
--color-elevation-2: var(--color-neutral-1);
|
|
75
77
|
|
|
76
|
-
--color-foreground: var(--color-neutral-8);
|
|
77
|
-
--color-card: var(--color-elevation-1);
|
|
78
|
-
--color-card-foreground: var(--color-foreground);
|
|
79
|
-
/* Assuming popovers only show up over cards ??? */
|
|
80
|
-
--color-popover: var(--color-elevation-2);
|
|
81
|
-
--color-popover-foreground: var(--color-foreground);
|
|
82
|
-
|
|
83
78
|
--color-primary: var(--color-primary-7);
|
|
84
79
|
--color-primary-foreground: var(--color-primary-2);
|
|
85
80
|
--color-secondary: var(--color-secondary-7);
|
|
@@ -103,9 +98,6 @@
|
|
|
103
98
|
--color-chart-4: var(--color-secondary-4);
|
|
104
99
|
--color-chart-5: var(--color-secondary-2);
|
|
105
100
|
|
|
106
|
-
--color-sidebar-background: var(--color-elevation-1);
|
|
107
|
-
--color-sidebar-foreground: var(--color-foreground);
|
|
108
|
-
|
|
109
101
|
--spacing-input: --spacing(8);
|
|
110
102
|
--spacing-icon: --spacing(4);
|
|
111
103
|
--spacing-table: --spacing(100);
|
|
@@ -130,47 +122,51 @@
|
|
|
130
122
|
@apply text-primary/70 focus:text-primary hover:text-primary;
|
|
131
123
|
}
|
|
132
124
|
|
|
125
|
+
@utility bg-glass-1 {
|
|
126
|
+
@apply bg-elevation-1/20 backdrop-blur-xl;
|
|
127
|
+
}
|
|
128
|
+
|
|
133
129
|
/* Fluid grid with minimum width */
|
|
134
130
|
@utility grid-fluid {
|
|
135
131
|
@apply grid grid-cols-[repeat(auto-fill,_minmax(var(--fluid-grid-min),_1fr))] gap-icon;
|
|
136
132
|
}
|
|
137
133
|
|
|
138
134
|
@utility focus-ring {
|
|
139
|
-
@apply
|
|
135
|
+
@apply focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden;
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
@utility disabled-muted {
|
|
143
|
-
@apply disabled:cursor-not-allowed disabled:opacity-70 aria-disabled:cursor-not-allowed aria-disabled:opacity-70
|
|
139
|
+
@apply disabled:cursor-not-allowed disabled:opacity-70 aria-disabled:cursor-not-allowed aria-disabled:opacity-70 disabled:pointer-events-none;
|
|
144
140
|
}
|
|
145
141
|
@utility input {
|
|
146
|
-
@apply border border-input bg-
|
|
142
|
+
@apply border border-input bg-elevation-2 px-icon py-2 body-sm placeholder:text-muted-foreground disabled-muted focus-ring;
|
|
147
143
|
}
|
|
148
144
|
|
|
149
145
|
/* A base set of classes for elements that can be clicked */
|
|
150
146
|
@utility btn {
|
|
151
|
-
@apply inline-flex body-sm gap-1
|
|
147
|
+
@apply inline-flex body-sm gap-1 disabled:pointer-events-none 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 [&_svg]:opacity-70 leading-none outline-none no-underline whitespace-nowrap select-none disabled-muted focus-ring;
|
|
152
148
|
}
|
|
153
149
|
|
|
154
150
|
@utility btn-link {
|
|
155
151
|
@apply btn-ghost underline underline-offset-2;
|
|
156
152
|
}
|
|
157
153
|
@utility btn-primary {
|
|
158
|
-
@apply border border-primary text-primary bg-primary/10 hover:bg-primary/20
|
|
154
|
+
@apply border border-primary text-primary bg-primary/10 hover:bg-primary/20 focus:bg-primary/20;
|
|
159
155
|
}
|
|
160
156
|
@utility btn-destructive {
|
|
161
|
-
@apply border border-destructive text-destructive bg-destructive/10 hover:bg-destructive/20
|
|
157
|
+
@apply border border-destructive text-destructive bg-destructive/10 hover:bg-destructive/20 focus:bg-destructive/20;
|
|
162
158
|
}
|
|
163
159
|
@utility btn-neutral {
|
|
164
|
-
@apply border border-input text-accent bg-accent/10 hover:bg-accent/20
|
|
160
|
+
@apply border border-input text-accent bg-accent/10 hover:bg-accent/20 focus:bg-accent/20;
|
|
165
161
|
}
|
|
166
162
|
@utility btn-secondary {
|
|
167
|
-
@apply border border-secondary text-secondary bg-secondary/10 hover:bg-secondary/20
|
|
163
|
+
@apply border border-secondary text-secondary bg-secondary/10 hover:bg-secondary/20 focus:bg-secondary/20;
|
|
168
164
|
}
|
|
169
165
|
@utility btn-ghost {
|
|
170
|
-
@apply bg-transparent focus:bg-accent/20
|
|
166
|
+
@apply bg-transparent focus:bg-accent/20 hover:bg-accent/20;
|
|
171
167
|
}
|
|
172
168
|
@utility btn-tab {
|
|
173
|
-
@apply truncate btn btn-ghost input-dim font-normal text-accent justify-start
|
|
169
|
+
@apply truncate btn btn-ghost input-dim font-normal text-accent justify-start selected:bg-primary/20 selected:font-medium selected:text-primary;
|
|
174
170
|
}
|
|
175
171
|
/* Dimensions for a standard input */
|
|
176
172
|
@utility input-dim {
|
|
@@ -214,7 +210,7 @@
|
|
|
214
210
|
}
|
|
215
211
|
|
|
216
212
|
body {
|
|
217
|
-
@apply bg-background text-foreground;
|
|
213
|
+
@apply bg-gradient-to-t from-background to-neutral-1 text-foreground;
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
.tw-prose a {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptlex/web-components",
|
|
3
|
-
"version": "6.6.6-
|
|
3
|
+
"version": "6.6.6-alpha21",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"rollup-preserve-directives": "1.1.3",
|
|
94
94
|
"sass": "1.89.2",
|
|
95
95
|
"storybook": "9.1.4",
|
|
96
|
+
"tailwindcss-react-aria-components": "2.0.1",
|
|
96
97
|
"typescript": "5.9.2",
|
|
97
98
|
"vite": "7.1.4",
|
|
98
99
|
"vite-plugin-dts": "4.5.4",
|