@warmio/design 1.9.1 → 1.10.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/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 next version, `1.9.1`, updates the light default button shadow and white-to-gray gradient.
29
- Version `1.9.0` switches shared UI type to Inter, keeps JetBrains Mono
30
- for numbers and code, and adds the closed type-size tokens. The previous `1.8.0`
31
- release added Fluid-derived surface-only Button press feedback.
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,34 @@ 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']:hover {
376
+ color: var(--foreground);
377
+ }
378
+ [data-warm-button][data-presentation='tableHeaderLink']:hover::before {
379
+ background-image: none;
380
+ background-color: transparent;
381
+ box-shadow: none;
382
+ }
356
383
  [data-warm-button][data-presentation='touch']:not([data-explicit-size]) {
357
384
  min-height: var(--button-min-height-touch);
358
385
  }
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
@@ -15,6 +15,7 @@ const presentationToPrivateSize = {
15
15
  promptOption: 'option',
16
16
  sidebarIcon: 'icon',
17
17
  tableHeader: 'default',
18
+ tableHeaderLink: 'default',
18
19
  threadMore: 'icon-xs',
19
20
  threadNew: 'sm',
20
21
  touch: 'default',
package/interfaces.css CHANGED
@@ -26,7 +26,7 @@ html.theme-switching *::after {
26
26
  }
27
27
 
28
28
  a:not([data-slot='button']):not([role='button']) {
29
- text-underline-position: from-font;
29
+ text-underline-position: auto;
30
30
  text-decoration-skip-ink: auto;
31
31
  }
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/design",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Warm's public design contract: CSS tokens and Button/Logo primitives.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/theme.css CHANGED
@@ -298,6 +298,7 @@
298
298
  --button-size-md: 2rem;
299
299
  --button-size-lg: 3rem;
300
300
  --button-underline-offset: 0.25rem;
301
+ --button-underline-thickness: 1px;
301
302
  --button-focus-ring: 3px;
302
303
  --logo-size-badge: 0.75rem;
303
304
  --logo-size-default: 1.75rem;