@leitware/composables 3.4.1 → 3.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leitware/composables",
3
- "version": "3.4.1",
3
+ "version": "3.6.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,6 +62,7 @@
62
62
  "react": "^18.0.0 || ^19.0.0",
63
63
  "react-dom": "^18.0.0 || ^19.0.0",
64
64
  "@fontsource-variable/inter": "^5.0.0",
65
+ "@fontsource-variable/geist": "^5.0.0",
65
66
  "@fontsource-variable/bricolage-grotesque": "^5.0.0",
66
67
  "@fontsource-variable/dm-sans": "^5.0.0",
67
68
  "@fontsource-variable/fraunces": "^5.0.0",
@@ -87,6 +88,9 @@
87
88
  "@fontsource-variable/inter": {
88
89
  "optional": true
89
90
  },
91
+ "@fontsource-variable/geist": {
92
+ "optional": true
93
+ },
90
94
  "@fontsource-variable/bricolage-grotesque": {
91
95
  "optional": true
92
96
  },
@@ -152,6 +156,7 @@
152
156
  "@fontsource-variable/bricolage-grotesque": "^5.2.10",
153
157
  "@fontsource-variable/dm-sans": "^5.2.8",
154
158
  "@fontsource-variable/fraunces": "^5.2.9",
159
+ "@fontsource-variable/geist": "^5.0.0",
155
160
  "@fontsource-variable/inter": "^5.2.8",
156
161
  "@fontsource-variable/jetbrains-mono": "^5.2.8",
157
162
  "@fontsource-variable/plus-jakarta-sans": "^5.2.8",
@@ -9,14 +9,14 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
9
9
  className={cn(
10
10
  FOCUS_RING,
11
11
  HOVER_RING,
12
- 'border-(color:--choice-border-color) not-data-checked:hover:bg-(--bg-surface-hover) dark:bg-surface-field/30 data-checked:bg-selected data-checked:text-selected-foreground dark:data-checked:bg-selected data-checked:border-selected aria-invalid:aria-checked:border-selected flex size-(--choice-size) items-center justify-center rounded-(--checkbox-radius) border transition-shadow group-has-disabled/field:opacity-disabled peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
12
+ 'border-(color:--choice-border-color) not-data-checked:hover:bg-(--bg-surface-hover) dark:bg-surface-field/30 data-checked:bg-selected data-checked:text-selected-foreground dark:data-checked:bg-selected data-checked:border-selected aria-invalid:aria-checked:border-selected flex size-(--choice-size) items-center justify-center rounded-(--checkbox-radius) border-(length:--choice-border-width) transition-shadow group-has-disabled/field:opacity-disabled peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
13
13
  className,
14
14
  )}
15
15
  {...props}
16
16
  >
17
17
  <CheckboxPrimitive.Indicator
18
18
  data-slot="checkbox-indicator"
19
- className="size-full [&>svg]:size-full [&>svg]:stroke-[3] grid place-content-center text-current transition-none"
19
+ className="size-full [&>svg]:size-(--checkbox-icon-size) [&>svg]:stroke-[3] flex items-center justify-center text-current transition-none"
20
20
  >
21
21
  <CheckIcon />
22
22
  </CheckboxPrimitive.Indicator>
@@ -7,7 +7,7 @@ function Kbd({ className, ...props }: React.ComponentProps<'kbd'>) {
7
7
  <kbd
8
8
  data-slot="kbd"
9
9
  className={cn(
10
- 'bg-muted text-muted-foreground pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-mono text-2xs font-medium select-none [&_svg:not([class*=size-])]:size-3',
10
+ 'bg-muted text-muted-foreground pointer-events-none inline-flex h-(--kbd-height) min-w-(--kbd-height) items-center justify-center gap-1 rounded-(--kbd-radius) px-1 font-mono text-(length:--kbd-font-size) font-medium select-none [&_svg:not([class*=size-])]:size-3',
11
11
  className,
12
12
  )}
13
13
  {...props}
@@ -23,7 +23,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
23
23
  className={cn(
24
24
  FOCUS_RING,
25
25
  HOVER_RING,
26
- 'border-(color:--choice-border-color) not-data-checked:hover:bg-(--bg-surface-hover) dark:bg-surface-field/30 data-checked:bg-selected data-checked:text-selected-foreground dark:data-checked:bg-selected data-checked:border-selected flex size-(--choice-size) rounded-full transition-shadow group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
26
+ 'border-(color:--choice-border-color) not-data-checked:hover:bg-(--bg-surface-hover) dark:bg-surface-field/30 data-checked:bg-selected data-checked:text-selected-foreground dark:data-checked:bg-selected data-checked:border-selected flex size-(--choice-size) rounded-full transition-shadow group/radio-group-item peer relative aspect-square shrink-0 border-(length:--choice-border-width) outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
27
27
  className,
28
28
  )}
29
29
  {...props}
@@ -1,7 +1,7 @@
1
1
  /* ============================================================================
2
2
  @leitware/composables - Gutenberg Preset
3
3
  ============================================================================
4
- Quiet book reading: charcoal, warm gold, and monospaced text.
4
+ Soft neutral surfaces, blue accents, and generous pill-shaped controls.
5
5
 
6
6
  HOW TO USE:
7
7
  1. Copy this file into your project's global CSS (e.g. index.css)
@@ -10,14 +10,14 @@
10
10
  ============================================================================ */
11
11
 
12
12
  :root {
13
- --bg-default: #f6f3e9;
13
+ --bg-default: #f5f5f3;
14
14
  --bg-inverse: #21201cff;
15
- --bg-muted: #ede9dc;
16
- --bg-surface-default: #fffdf6;
17
- --bg-surface-popover: #f9f9f8ff;
18
- --bg-surface-accent: #f1f0efff;
19
- --bg-surface-field: #fffdf6;
20
- --bg-surface-input: #dad9d633;
15
+ --bg-muted: #eaeae7;
16
+ --bg-surface-default: #fafaf9;
17
+ --bg-surface-popover: #fafaf9;
18
+ --bg-surface-accent: #e5e5e2;
19
+ --bg-surface-field: #e5e5e2;
20
+ --bg-surface-input: #eaeae7;
21
21
  --bg-surface-info: #f1fafdff;
22
22
  --bg-surface-success: #f5fbf5ff;
23
23
  --bg-surface-warning: #fff7edff;
@@ -26,17 +26,17 @@
26
26
  --bg-surface-inverse: #63635eff;
27
27
  --bg-surface-transparent: #0000000d;
28
28
  --bg-overlay: var(--overlays-black-alpha-800);
29
- --bg-surface-brand: #fef7fbff;
29
+ --bg-surface-brand: #e8ecff;
30
30
  --bg-surface-brand-2: #eefaf8ff;
31
31
  --bg-surface-brand-3: #fffaf0ff;
32
32
  --bg-surface-brand-4: #eef2fbff;
33
33
  --bg-surface-brand-5: #f0faf0ff;
34
- --bg-surface-hover: #e6dfcb;
34
+ --bg-surface-hover: #dededb;
35
35
  --bg-fill-default: #f9f9f8ff;
36
- --bg-fill-primary: #846000;
36
+ --bg-fill-primary: #0028ff;
37
37
  --bg-fill-primary-hover: #21201cff;
38
- --bg-fill-selected: #21201cff;
39
- --bg-fill-brand: #846000;
38
+ --bg-fill-selected: #0028ff;
39
+ --bg-fill-brand: #0028ff;
40
40
  --bg-fill-brand-2: #12a594ff;
41
41
  --bg-fill-brand-3: #ffc53dff;
42
42
  --bg-fill-brand-4: #3e63ddff;
@@ -47,32 +47,32 @@
47
47
  --bg-fill-critical: #e5484dff;
48
48
  --bg-fill-emphasis: #0090ffff;
49
49
  --bg-fill-transparent: #0000000d;
50
- --bg-fill-secondary: #f1f0efff;
50
+ --bg-fill-secondary: #e5e5e2;
51
51
  --bg-fill-secondary-hover: #f1f0efff;
52
52
  --bg-fill-secondary-inverse: #ffffffff;
53
- --text-default: #323437;
54
- --text-secondary: #58594e;
55
- --text-muted: #6b6b60;
53
+ --text-default: #292b2b;
54
+ --text-secondary: #555858;
55
+ --text-muted: #666969;
56
56
  --text-disabled: #cfcecaff;
57
57
  --text-inverse: #ffffffff;
58
- --text-on-fill-primary: #ffffff;
59
- --text-on-fill-selected: #ffffffff;
60
- --text-on-fill-brand: #ffffff;
61
- --text-on-fill-secondary: #21201cff;
62
- --text-on-surface-accent: #21201cff;
58
+ --text-on-fill-primary: #f8f8f6;
59
+ --text-on-fill-selected: #f8f8f6;
60
+ --text-on-fill-brand: #f8f8f6;
61
+ --text-on-fill-secondary: #303232;
62
+ --text-on-surface-accent: #303232;
63
63
  --text-info: #1d3e56ff;
64
64
  --text-success: #203c25ff;
65
65
  --text-warning: #582d1dff;
66
66
  --text-critical: #641723ff;
67
67
  --text-emphasis: #113264ff;
68
- --text-brand: #846000;
68
+ --text-brand: #0028ff;
69
69
  --text-brand-2: #0d6d5eff;
70
70
  --text-brand-3: #6f5b1bff;
71
71
  --text-brand-4: #1f3780ff;
72
72
  --text-brand-5: #203c25ff;
73
- --text-link: #113264ff;
74
- --icon-default: #21201cff;
75
- --icon-secondary: #63635eff;
73
+ --text-link: #0028ff;
74
+ --icon-default: #303232;
75
+ --icon-secondary: #666969;
76
76
  --icon-disabled: #e9e8e6ff;
77
77
  --icon-inverse: #f9f9f8ff;
78
78
  --icon-info: #00749eff;
@@ -80,19 +80,19 @@
80
80
  --icon-warning: #cc4e00ff;
81
81
  --icon-critical: #ce2c31ff;
82
82
  --icon-emphasis: #0d74ceff;
83
- --icon-brand: #c2298aff;
83
+ --icon-brand: #0028ff;
84
84
  --icon-brand-2: #12a594ff;
85
85
  --icon-brand-3: #e8a317ff;
86
86
  --icon-brand-4: #3e63ddff;
87
87
  --icon-brand-5: #2a7e3bff;
88
- --border-default: #d3cebd;
88
+ --border-default: #d4d5d1;
89
89
  --border-secondary: #dad9d6ff;
90
- --border-input: #c3bda9;
90
+ --border-input: transparent;
91
91
  --border-tertiary: #bcbbb5ff;
92
92
  --border-disabled: #dad9d6ff;
93
93
  --border-inverse: #63635eff;
94
- --border-focus: #846000;
95
- --border-brand: #e7acd0ff;
94
+ --border-focus: #0028ff;
95
+ --border-brand: #0028ff;
96
96
  --border-brand-2: #8ecec6ff;
97
97
  --border-brand-3: #edd5a0ff;
98
98
  --border-brand-4: #93a9e8ff;
@@ -116,8 +116,8 @@
116
116
  --sidebar-border: #cfcecaff;
117
117
  --sidebar-ring: #0d74ceff;
118
118
  --spacing: 0.25rem;
119
- --border-width-base: 0.0625rem;
120
- --radius: 0.375rem;
119
+ --border-width-base: 0px;
120
+ --radius: 0.75rem;
121
121
  --font-size-base: 1rem;
122
122
  --leading-base: 1.33;
123
123
  --letter-spacing-base: 0.025em;
@@ -133,14 +133,15 @@
133
133
  --container-2xl: 1440px;
134
134
  --dropdown-offset: 4;
135
135
  --overlay-offset: 4;
136
- --font-sans: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
137
- --font-heading: ui-sans-serif, system-ui, sans-serif;
136
+ --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
137
+ --font-heading:
138
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
138
139
  --font-brand: 'Bricolage Grotesque Variable', sans-serif;
139
- --button-radius: var(--radius);
140
+ --button-radius: 9999px;
140
141
  --card-radius: var(--radius-lg);
141
142
  --card-padding: calc(var(--spacing) * 4);
142
- --input-radius: var(--radius-md);
143
- --control-size-md: calc(var(--spacing) * 10);
143
+ --input-radius: calc(var(--radius) * 1.333333);
144
+ --control-size-md: calc(var(--spacing) * 12);
144
145
  --badge-radius: var(--radius-4xl);
145
146
  --motion-duration-fast: 100ms;
146
147
  --motion-duration-normal: 200ms;
@@ -159,8 +160,32 @@
159
160
  --hover-transform: none;
160
161
  --hover-shadow: var(--shadow-md);
161
162
  --active-scale: 0.98;
162
- --button-height: 2.5rem;
163
- --button-font-size: 0.8125rem;
163
+ --choice-size: calc(var(--spacing) * 6);
164
+ --checkbox-radius: calc(var(--radius) * 0.4);
165
+ --choice-border-width: 1px;
166
+ --checkbox-icon-size: calc(var(--spacing) * 5.5);
167
+ --hover-ring-width: 0px;
168
+ --focus-ring-width: 2px;
169
+ --choice-border-color: var(--border-default);
170
+ --kbd-height: calc(var(--spacing) * 6);
171
+ --kbd-radius: var(--radius-md);
172
+ --kbd-font-size: var(--text-xs);
173
+ --label-font-size: var(--text-xs);
174
+ --label-color: var(--text-muted);
175
+ --control-font-size: var(--text-sm);
176
+ --tabs-list-radius: 9999px;
177
+ --tabs-tab-radius: 9999px;
178
+ --tabs-tab-height: calc(var(--spacing) * 11);
179
+ --slider-size: calc(var(--spacing) * 14);
180
+ --switch-height: calc(var(--spacing) * 6);
181
+ --button-radius-sm: 9999px;
182
+ --button-radius-xs: 9999px;
183
+ --button-height: 3rem;
184
+ --button-height-sm: 2.75rem;
185
+ --button-height-lg: 3.5rem;
186
+ --button-font-size: 0.9375rem;
187
+ --control-size-sm: calc(var(--spacing) * 11);
188
+ --control-size-lg: calc(var(--spacing) * 14);
164
189
  --background: var(--bg-default);
165
190
  --foreground: var(--text-default);
166
191
  --card: var(--bg-surface-default);
@@ -182,33 +207,33 @@
182
207
  }
183
208
 
184
209
  .dark {
185
- --bg-default: #323437;
210
+ --bg-default: #242626;
186
211
  --bg-inverse: #eeeeecff;
187
- --bg-muted: #292b2e;
188
- --bg-surface-default: #2c2e31;
189
- --bg-surface-popover: #191918ff;
190
- --bg-surface-accent: #222221ff;
191
- --bg-surface-field: #393b3e;
192
- --bg-surface-input: #4948444d;
212
+ --bg-muted: #303333;
213
+ --bg-surface-default: #2c2e2e;
214
+ --bg-surface-popover: #2c2e2e;
215
+ --bg-surface-accent: #424545;
216
+ --bg-surface-field: #424545;
217
+ --bg-surface-input: #303333;
193
218
  --bg-surface-info: #111a27ff;
194
219
  --bg-surface-success: #141a15ff;
195
220
  --bg-surface-warning: #1e160fff;
196
- --bg-surface-critical: #473638;
221
+ --bg-surface-critical: #201314ff;
197
222
  --bg-surface-emphasis: #111927ff;
198
223
  --bg-surface-inverse: #b5b3adff;
199
224
  --bg-surface-transparent: #0000000d;
200
225
  --bg-overlay: var(--overlays-black-alpha-800);
201
- --bg-surface-brand: #21121dff;
226
+ --bg-surface-brand: #303c58;
202
227
  --bg-surface-brand-2: #0f201eff;
203
228
  --bg-surface-brand-3: #231e10ff;
204
229
  --bg-surface-brand-4: #111828ff;
205
230
  --bg-surface-brand-5: #141a15ff;
206
- --bg-surface-hover: #3b3d40;
231
+ --bg-surface-hover: #424545;
207
232
  --bg-fill-default: #191918ff;
208
- --bg-fill-primary: #e2b714;
233
+ --bg-fill-primary: #93b4ff;
209
234
  --bg-fill-primary-hover: #eeeeecff;
210
- --bg-fill-selected: #eeeeecff;
211
- --bg-fill-brand: #e2b714;
235
+ --bg-fill-selected: #93b4ff;
236
+ --bg-fill-brand: #93b4ff;
212
237
  --bg-fill-brand-2: #12a594ff;
213
238
  --bg-fill-brand-3: #ffc53dff;
214
239
  --bg-fill-brand-4: #3e63ddff;
@@ -219,32 +244,32 @@
219
244
  --bg-fill-critical: #e5484dff;
220
245
  --bg-fill-emphasis: #0090ffff;
221
246
  --bg-fill-transparent: #0000000d;
222
- --bg-fill-secondary: #222221ff;
247
+ --bg-fill-secondary: #3c3f3f;
223
248
  --bg-fill-secondary-hover: #222221ff;
224
249
  --bg-fill-secondary-inverse: #000000ff;
225
- --text-default: #d1d0c5;
226
- --text-secondary: #b5b5ac;
227
- --text-muted: #9a9c9e;
250
+ --text-default: #e5e6e2;
251
+ --text-secondary: #c0c3bf;
252
+ --text-muted: #a8ada9;
228
253
  --text-disabled: #494844ff;
229
254
  --text-inverse: #000000ff;
230
- --text-on-fill-primary: #323437;
231
- --text-on-fill-selected: #000000ff;
232
- --text-on-fill-brand: #323437;
233
- --text-on-fill-secondary: #eeeeecff;
234
- --text-on-surface-accent: #eeeeecff;
255
+ --text-on-fill-primary: #292b2b;
256
+ --text-on-fill-selected: #292b2b;
257
+ --text-on-fill-brand: #292b2b;
258
+ --text-on-fill-secondary: #e5e6e2;
259
+ --text-on-surface-accent: #e5e6e2;
235
260
  --text-info: #c2f3ffff;
236
261
  --text-success: #c2f0c2ff;
237
262
  --text-warning: #ffe0c2ff;
238
- --text-critical: #f17a86;
263
+ --text-critical: #ffd1d9ff;
239
264
  --text-emphasis: #c2e6ffff;
240
- --text-brand: #e2b714;
265
+ --text-brand: #93b4ff;
241
266
  --text-brand-2: #a8e5dcff;
242
267
  --text-brand-3: #ffe6a0ff;
243
268
  --text-brand-4: #aebff0ff;
244
269
  --text-brand-5: #c2f0c2ff;
245
- --text-link: #c2e6ffff;
246
- --icon-default: #eeeeecff;
247
- --icon-secondary: #b5b3adff;
270
+ --text-link: #93b4ff;
271
+ --icon-default: #e5e6e2;
272
+ --icon-secondary: #a8ada9;
248
273
  --icon-disabled: #31312eff;
249
274
  --icon-inverse: #191918ff;
250
275
  --icon-info: #75c7f0ff;
@@ -252,19 +277,19 @@
252
277
  --icon-warning: #ffa057ff;
253
278
  --icon-critical: #ff9592ff;
254
279
  --icon-emphasis: #70b8ffff;
255
- --icon-brand: #ff8dccff;
280
+ --icon-brand: #93b4ff;
256
281
  --icon-brand-2: #4dc8baff;
257
282
  --icon-brand-3: #e8b844ff;
258
283
  --icon-brand-4: #6e8defff;
259
284
  --icon-brand-5: #71d083ff;
260
- --border-default: #494b4d;
285
+ --border-default: #4d5250;
261
286
  --border-secondary: #494844ff;
262
- --border-input: #55575a;
287
+ --border-input: transparent;
263
288
  --border-tertiary: #62605bff;
264
289
  --border-disabled: #494844ff;
265
290
  --border-inverse: #b5b3adff;
266
- --border-focus: #e2b714;
267
- --border-brand: #833869ff;
291
+ --border-focus: #93b4ff;
292
+ --border-brand: #93b4ff;
268
293
  --border-brand-2: #2a6858ff;
269
294
  --border-brand-3: #6a5020ff;
270
295
  --border-brand-4: #2a4480ff;
@@ -287,14 +312,41 @@
287
312
  --sidebar-accent-foreground: #eeeeecff;
288
313
  --sidebar-border: #494844ff;
289
314
  --sidebar-ring: #70b8ffff;
290
- --font-sans: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
291
- --font-heading: ui-sans-serif, system-ui, sans-serif;
315
+ --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
316
+ --font-heading:
317
+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
292
318
  --font-brand: 'Bricolage Grotesque Variable', sans-serif;
293
- --radius: 0.375rem;
294
- --button-radius: var(--radius);
295
- --button-height: 2.5rem;
296
- --button-font-size: 0.8125rem;
297
- --control-size-md: calc(var(--spacing) * 10);
319
+ --radius: 0.75rem;
320
+ --choice-size: calc(var(--spacing) * 6);
321
+ --checkbox-radius: calc(var(--radius) * 0.4);
322
+ --choice-border-width: 1px;
323
+ --checkbox-icon-size: calc(var(--spacing) * 5.5);
324
+ --border-width-base: 0px;
325
+ --hover-ring-width: 0px;
326
+ --focus-ring-width: 2px;
327
+ --choice-border-color: var(--border-default);
328
+ --kbd-height: calc(var(--spacing) * 6);
329
+ --kbd-radius: var(--radius-md);
330
+ --kbd-font-size: var(--text-xs);
331
+ --label-font-size: var(--text-xs);
332
+ --label-color: var(--text-muted);
333
+ --control-font-size: var(--text-sm);
334
+ --tabs-list-radius: 9999px;
335
+ --tabs-tab-radius: 9999px;
336
+ --tabs-tab-height: calc(var(--spacing) * 11);
337
+ --slider-size: calc(var(--spacing) * 14);
338
+ --switch-height: calc(var(--spacing) * 6);
339
+ --input-radius: calc(var(--radius) * 1.333333);
340
+ --button-radius: 9999px;
341
+ --button-radius-sm: 9999px;
342
+ --button-radius-xs: 9999px;
343
+ --button-height: 3rem;
344
+ --button-height-sm: 2.75rem;
345
+ --button-height-lg: 3.5rem;
346
+ --button-font-size: 0.9375rem;
347
+ --control-size-md: calc(var(--spacing) * 12);
348
+ --control-size-sm: calc(var(--spacing) * 11);
349
+ --control-size-lg: calc(var(--spacing) * 14);
298
350
  --background: var(--bg-default);
299
351
  --foreground: var(--text-default);
300
352
  --card: var(--bg-surface-default);