@warmio/design 1.9.1 → 1.10.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.
- package/README.md +6 -4
- package/components.css +31 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +1 -0
- package/interfaces.css +1 -1
- package/package.json +1 -1
- package/theme.css +10 -33
package/README.md
CHANGED
|
@@ -25,10 +25,12 @@ Package ships `components.css` (token-only styles for the primitives) and `dist/
|
|
|
25
25
|
|
|
26
26
|
## Releases
|
|
27
27
|
|
|
28
|
-
The
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
The `1.10.0` release adds the `tableHeaderLink` Button presentation for
|
|
29
|
+
borderless, underlined sortable table headers. The `1.9.1` release updated the
|
|
30
|
+
light default button shadow and white-to-gray gradient. Version `1.9.0`
|
|
31
|
+
switched shared UI type to Inter, kept JetBrains Mono for numbers and code, and
|
|
32
|
+
added the closed type-size tokens. The previous `1.8.0` release added
|
|
33
|
+
Fluid-derived surface-only Button press feedback.
|
|
32
34
|
|
|
33
35
|
Bump this `package.json` version for additive tokens (incl. motion/surface), fonts,
|
|
34
36
|
spacing, or primitive changes. Follow the exact sequence in
|
package/components.css
CHANGED
|
@@ -191,7 +191,6 @@ button[data-warm-button][data-variant='apple'] {
|
|
|
191
191
|
[data-warm-button][data-variant='arrow'] {
|
|
192
192
|
border-width: 0;
|
|
193
193
|
text-decoration: underline;
|
|
194
|
-
text-underline-offset: var(--button-underline-offset);
|
|
195
194
|
}
|
|
196
195
|
[data-warm-button][data-variant='arrow'] svg {
|
|
197
196
|
width: var(--button-icon-size);
|
|
@@ -353,6 +352,37 @@ button[data-warm-button][data-variant='apple'] {
|
|
|
353
352
|
[data-warm-button][data-presentation='tableHeader']:hover::before {
|
|
354
353
|
background-color: transparent;
|
|
355
354
|
}
|
|
355
|
+
[data-warm-button][data-presentation='tableHeaderLink']:not([data-explicit-size]) {
|
|
356
|
+
height: auto;
|
|
357
|
+
min-height: 0;
|
|
358
|
+
width: var(--button-width-full);
|
|
359
|
+
justify-content: flex-start;
|
|
360
|
+
gap: var(--button-gap);
|
|
361
|
+
padding: 0;
|
|
362
|
+
border-radius: 0;
|
|
363
|
+
font-weight: 400;
|
|
364
|
+
line-height: var(--button-line-height);
|
|
365
|
+
color: var(--muted-foreground);
|
|
366
|
+
text-decoration: underline;
|
|
367
|
+
text-decoration-thickness: var(--button-underline-thickness);
|
|
368
|
+
text-underline-offset: var(--button-underline-offset);
|
|
369
|
+
}
|
|
370
|
+
[data-warm-button][data-presentation='tableHeaderLink']::before {
|
|
371
|
+
background-image: none;
|
|
372
|
+
background-color: transparent;
|
|
373
|
+
box-shadow: none;
|
|
374
|
+
}
|
|
375
|
+
[data-warm-button][data-presentation='tableHeaderLink']:focus-visible {
|
|
376
|
+
box-shadow: none;
|
|
377
|
+
}
|
|
378
|
+
[data-warm-button][data-presentation='tableHeaderLink']:hover {
|
|
379
|
+
color: var(--foreground);
|
|
380
|
+
}
|
|
381
|
+
[data-warm-button][data-presentation='tableHeaderLink']:hover::before {
|
|
382
|
+
background-image: none;
|
|
383
|
+
background-color: transparent;
|
|
384
|
+
box-shadow: none;
|
|
385
|
+
}
|
|
356
386
|
[data-warm-button][data-presentation='touch']:not([data-explicit-size]) {
|
|
357
387
|
min-height: var(--button-min-height-touch);
|
|
358
388
|
}
|
package/dist/button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export type ButtonPresentation = 'assistantIcon' | 'assistantRoundIcon' | 'composerIcon' | 'default' | 'headerAction' | 'compact' | 'controlPeer' | 'editPill' | 'hero' | 'menuOption' | 'promptCategory' | 'promptOption' | 'sidebarIcon' | 'tableHeader' | 'threadMore' | 'threadNew' | 'touch';
|
|
2
|
+
export type ButtonPresentation = 'assistantIcon' | 'assistantRoundIcon' | 'composerIcon' | 'default' | 'headerAction' | 'compact' | 'controlPeer' | 'editPill' | 'hero' | 'menuOption' | 'promptCategory' | 'promptOption' | 'sidebarIcon' | 'tableHeader' | 'tableHeaderLink' | 'threadMore' | 'threadNew' | 'touch';
|
|
3
3
|
export type ButtonVariant = 'default' | 'outline' | 'ghost' | 'destructive' | 'apple' | 'arrow';
|
|
4
4
|
export type ButtonSize = 'compact' | 'default' | 'jumbo' | 'icon';
|
|
5
5
|
export type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> & {
|
package/dist/button.js
CHANGED
package/interfaces.css
CHANGED
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -133,11 +133,7 @@
|
|
|
133
133
|
--warning-bg-subtle: oklch(0.96 0.03 85);
|
|
134
134
|
--warning-bg-muted: oklch(0.9 0.1 85);
|
|
135
135
|
--warning-border: oklch(0.75 0.12 85);
|
|
136
|
-
--warning-card-surface: color-mix(
|
|
137
|
-
in oklch,
|
|
138
|
-
var(--card) 82%,
|
|
139
|
-
oklch(from var(--warning) l calc(c + 0.08) h) 18%
|
|
140
|
-
);
|
|
136
|
+
--warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
|
|
141
137
|
|
|
142
138
|
/* Finance = legible on-surface tones of WARM_COLORS.finance
|
|
143
139
|
(libraries/app-core/utils/colors.ts): cash=sage, debt=mauve, investment=seafoam.
|
|
@@ -153,12 +149,8 @@
|
|
|
153
149
|
--error-text: oklch(0.35 0.14 30);
|
|
154
150
|
--error-bg-subtle: oklch(0.96 0.02 30);
|
|
155
151
|
--error-bg-muted: oklch(0.9 0.06 30);
|
|
156
|
-
--error-border: oklch(0.
|
|
157
|
-
--danger-card-surface: color-mix(
|
|
158
|
-
in oklch,
|
|
159
|
-
var(--card) 98%,
|
|
160
|
-
oklch(from var(--destructive) l calc(c + 0.1) h) 2%
|
|
161
|
-
);
|
|
152
|
+
--error-border: oklch(0.68 0.08 30);
|
|
153
|
+
--danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
|
|
162
154
|
|
|
163
155
|
/* Info = Blue (H: 250) */
|
|
164
156
|
--info-text: oklch(0.35 0.1 250);
|
|
@@ -298,6 +290,7 @@
|
|
|
298
290
|
--button-size-md: 2rem;
|
|
299
291
|
--button-size-lg: 3rem;
|
|
300
292
|
--button-underline-offset: 0.25rem;
|
|
293
|
+
--button-underline-thickness: 1px;
|
|
301
294
|
--button-focus-ring: 3px;
|
|
302
295
|
--logo-size-badge: 0.75rem;
|
|
303
296
|
--logo-size-default: 1.75rem;
|
|
@@ -484,12 +477,8 @@
|
|
|
484
477
|
--warning-text: oklch(0.7 0.15 85);
|
|
485
478
|
--warning-bg-subtle: oklch(0.2 0.05 85);
|
|
486
479
|
--warning-bg-muted: oklch(0.25 0.08 85);
|
|
487
|
-
--warning-border: oklch(0.35 0.
|
|
488
|
-
--warning-card-surface: color-mix(
|
|
489
|
-
in oklch,
|
|
490
|
-
var(--card) 80%,
|
|
491
|
-
oklch(from var(--warning) l calc(c + 0.06) h) 20%
|
|
492
|
-
);
|
|
480
|
+
--warning-border: oklch(0.35 0.06 85);
|
|
481
|
+
--warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
|
|
493
482
|
|
|
494
483
|
/* Finance (dark variants) — lightened for legibility on dark surfaces */
|
|
495
484
|
--finance-cash: oklch(0.74 0.06 128);
|
|
@@ -500,12 +489,8 @@
|
|
|
500
489
|
--error-text: oklch(0.7 0.12 30);
|
|
501
490
|
--error-bg-subtle: oklch(0.2 0.05 30);
|
|
502
491
|
--error-bg-muted: oklch(0.25 0.06 30);
|
|
503
|
-
--error-border: oklch(0.35 0.
|
|
504
|
-
--danger-card-surface: color-mix(
|
|
505
|
-
in oklch,
|
|
506
|
-
var(--card) 92%,
|
|
507
|
-
oklch(from var(--destructive) l calc(c + 0.1) h) 8%
|
|
508
|
-
);
|
|
492
|
+
--error-border: oklch(0.35 0.04 30);
|
|
493
|
+
--danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
|
|
509
494
|
|
|
510
495
|
--info-text: oklch(0.7 0.08 250);
|
|
511
496
|
--info-bg-subtle: oklch(0.2 0.02 250);
|
|
@@ -602,11 +587,7 @@
|
|
|
602
587
|
--warning-bg-subtle: oklch(0.96 0.03 85);
|
|
603
588
|
--warning-bg-muted: oklch(0.9 0.1 85);
|
|
604
589
|
--warning-border: oklch(0.75 0.12 85);
|
|
605
|
-
--warning-card-surface: color-mix(
|
|
606
|
-
in oklch,
|
|
607
|
-
var(--card) 82%,
|
|
608
|
-
oklch(from var(--warning) l calc(c + 0.08) h) 18%
|
|
609
|
-
);
|
|
590
|
+
--warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
|
|
610
591
|
|
|
611
592
|
/* Finance (light variants) — darkened for legibility on light surfaces */
|
|
612
593
|
--finance-cash: oklch(0.43 0.055 128);
|
|
@@ -618,11 +599,7 @@
|
|
|
618
599
|
--error-bg-subtle: oklch(0.96 0.02 30);
|
|
619
600
|
--error-bg-muted: oklch(0.9 0.06 30);
|
|
620
601
|
--error-border: oklch(0.75 0.08 30);
|
|
621
|
-
--danger-card-surface: color-mix(
|
|
622
|
-
in oklch,
|
|
623
|
-
var(--card) 98%,
|
|
624
|
-
oklch(from var(--destructive) l calc(c + 0.1) h) 2%
|
|
625
|
-
);
|
|
602
|
+
--danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
|
|
626
603
|
|
|
627
604
|
--info-text: oklch(0.35 0.1 250);
|
|
628
605
|
--info-bg-subtle: oklch(0.96 0.02 250);
|