@signal9/era-ui 1.8.8 → 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.
@@ -20,7 +20,7 @@
20
20
  ...restProps
21
21
  }: Button.RootProps & {
22
22
  tone?: 'default' | 'accent' | 'destructive' | 'success';
23
- size?: 'default' | 'sm' | 'xs' | 'icon';
23
+ size?: 'default' | 'sm' | 'xxs' | 'xs' | 'icon';
24
24
  variant?: 'filled' | 'link';
25
25
  active?: boolean;
26
26
  icon?: boolean;
@@ -2,7 +2,7 @@ import type { Snippet } from 'svelte';
2
2
  import { Button } from 'bits-ui';
3
3
  type $$ComponentProps = Button.RootProps & {
4
4
  tone?: 'default' | 'accent' | 'destructive' | 'success';
5
- size?: 'default' | 'sm' | 'xs' | 'icon';
5
+ size?: 'default' | 'sm' | 'xxs' | 'xs' | 'icon';
6
6
  variant?: 'filled' | 'link';
7
7
  active?: boolean;
8
8
  icon?: boolean;
@@ -12,6 +12,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
12
12
  size: {
13
13
  default: string;
14
14
  sm: string;
15
+ xxs: string;
15
16
  xs: string;
16
17
  icon: string;
17
18
  };
@@ -35,6 +36,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
35
36
  size: {
36
37
  default: string;
37
38
  sm: string;
39
+ xxs: string;
38
40
  xs: string;
39
41
  icon: string;
40
42
  };
@@ -58,6 +60,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
58
60
  size: {
59
61
  default: string;
60
62
  sm: string;
63
+ xxs: string;
61
64
  xs: string;
62
65
  icon: string;
63
66
  };
@@ -14,7 +14,7 @@ export const buttonVariants = tv({
14
14
  link: 'inline-flex underline-offset-2 hover:underline'
15
15
  },
16
16
  tone: { default: '', accent: '', destructive: '', success: '' },
17
- size: { default: '', sm: '', xs: '', icon: '' },
17
+ size: { default: '', sm: '', xxs: '', xs: '', icon: '' },
18
18
  icon: { true: '' },
19
19
  active: { true: '' }
20
20
  },
@@ -30,6 +30,11 @@ export const buttonVariants = tv({
30
30
  size: 'sm',
31
31
  class: 'h-(--era-h-sm) min-w-(--era-h-sm) rounded-(--era-rd-sm)'
32
32
  },
33
+ {
34
+ variant: 'filled',
35
+ size: 'xxs',
36
+ class: 'h-(--era-h-xxs) min-w-(--era-h-xxs) rounded-(--era-rd-xxs)'
37
+ },
33
38
  {
34
39
  variant: 'filled',
35
40
  size: 'xs',
@@ -54,6 +59,7 @@ export const buttonVariants = tv({
54
59
  size: 'sm',
55
60
  class: 'px-(--era-inset-sm) has-[svg]:gap-(--era-inset-sm)'
56
61
  },
62
+ { variant: 'filled', icon: false, size: 'xxs', class: 'px-(--era-pill-xxs)' },
57
63
  { variant: 'filled', icon: false, size: 'xs', class: 'px-(--era-px-sm)' },
58
64
  { variant: 'filled', icon: false, size: 'icon', class: 'px-(--era-px-sm)' },
59
65
  { variant: 'filled', icon: true, class: 'aspect-square px-0' },
@@ -12,15 +12,15 @@
12
12
  } = $props();
13
13
  </script>
14
14
 
15
- <!-- A raw icon Button (size="icon" = h-xs, a SQUARE that nests concentrically in
16
- the sm handle bar via the bar's xs-inset-sm gap). No data-pane-control: it
17
- stays in the drag zone, so a press-and-drag moves the pane while a clean
18
- click still closes (neodrag starts a drag only on movement and suppresses
19
- the trailing click after a real drag). -->
15
+ <!-- A raw icon Button at the xxs tier (h-xxs SQUARE) so its hover box matches the
16
+ tab pills' highlight height. No data-pane-control: it stays in the drag zone,
17
+ so a press-and-drag moves the pane while a clean click still closes (neodrag
18
+ starts a drag only on movement and suppresses the trailing click after a real
19
+ drag). -->
20
20
  <Button
21
21
  bind:ref
22
22
  icon
23
- size="icon"
23
+ size="xxs"
24
24
  tone="destructive"
25
25
  aria-label="Close"
26
26
  class={className}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "1.8.8",
3
+ "version": "1.10.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",