@signal9/era-ui 9.0.0 → 10.1.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.
Files changed (78) hide show
  1. package/dist/ai/artifact/artifact-close.svelte +2 -2
  2. package/dist/ai/checkpoint.svelte +1 -1
  3. package/dist/ai/context/context.svelte +1 -1
  4. package/dist/ai/conversation/conversation-scroll-button.svelte +1 -1
  5. package/dist/ai/conversations/conversations-item.svelte +3 -3
  6. package/dist/ai/index.js +1 -1
  7. package/dist/ai/message/message-branch-selector.svelte +2 -2
  8. package/dist/ai/message/message-usage.svelte +1 -1
  9. package/dist/ai/prompt-input/prompt-input-add-attachments.svelte +1 -1
  10. package/dist/ai/prompt-input/prompt-input-attachments.svelte +1 -1
  11. package/dist/ai/prompt-input/prompt-input-submit.svelte +1 -1
  12. package/dist/ai/run-status/run-status.svelte +4 -3
  13. package/dist/ai/suggestion/suggestion.svelte +1 -1
  14. package/dist/ai/swarm/swarm-actions.svelte +2 -2
  15. package/dist/ai/swarm/swarm-agent.svelte +2 -2
  16. package/dist/ai/swarm/swarm-artifact.svelte +1 -1
  17. package/dist/ai/swarm/swarm-barrier.svelte +1 -1
  18. package/dist/ai/swarm/swarm-footer.svelte +3 -2
  19. package/dist/ai/swarm/swarm-header.svelte +1 -1
  20. package/dist/ai/swarm/swarm-node.svelte +1 -1
  21. package/dist/ai/swarm/swarm-role.svelte +5 -2
  22. package/dist/ai/tool/tool-chip.svelte +1 -1
  23. package/dist/ai/web-preview/web-preview.svelte +2 -2
  24. package/dist/apps/index.d.ts +3 -3
  25. package/dist/apps/index.js +3 -3
  26. package/dist/apps/notes/editor/bubble-toolbar.svelte +3 -3
  27. package/dist/apps/notes/editor/slash-menu.svelte +2 -4
  28. package/dist/apps/notes/notes.svelte +12 -12
  29. package/dist/dev/audit/audits/anonymous-text.d.ts +2 -0
  30. package/dist/dev/audit/audits/anonymous-text.js +73 -0
  31. package/dist/dev/audit/audits/index.d.ts +2 -1
  32. package/dist/dev/audit/audits/index.js +3 -1
  33. package/dist/dev/audit/types.d.ts +1 -1
  34. package/dist/docs/css-utilities.js +1 -1
  35. package/dist/docs/llms-txt.js +2 -2
  36. package/dist/docs/notes.md +3 -3
  37. package/dist/era-ui.css +1 -1
  38. package/dist/generated-docs/bar.md +2 -2
  39. package/dist/generated-docs/button.md +1 -1
  40. package/dist/generated-docs/chip.md +1 -1
  41. package/dist/generated-docs/input.md +1 -1
  42. package/dist/generated-docs/llms-full.txt +101 -21
  43. package/dist/generated-docs/llms.txt +11 -7
  44. package/dist/generated-docs/manifest.json +32 -11
  45. package/dist/generated-docs/notes.md +3 -3
  46. package/dist/generated-docs/utilities.json +23 -4
  47. package/dist/generated-docs/utilities.md +82 -6
  48. package/dist/os/notification-center.svelte +1 -1
  49. package/dist/os/pane.svelte +2 -2
  50. package/dist/os/taskbar.svelte +4 -4
  51. package/dist/os/toast.svelte +2 -2
  52. package/dist/styles/index.css +43 -5
  53. package/dist/ui/bar/bar.svelte +13 -13
  54. package/dist/ui/bar/bar.svelte.d.ts +15 -15
  55. package/dist/ui/button/button.svelte +15 -4
  56. package/dist/ui/button/button.svelte.d.ts +1 -1
  57. package/dist/ui/button/index.d.ts +1 -1
  58. package/dist/ui/button/variants.d.ts +10 -13
  59. package/dist/ui/button/variants.js +13 -15
  60. package/dist/ui/chip/chip.svelte +25 -15
  61. package/dist/ui/chip/chip.svelte.d.ts +8 -8
  62. package/dist/ui/command/command-item.svelte +1 -1
  63. package/dist/ui/command/command-link-item.svelte +1 -1
  64. package/dist/ui/command-bar/command-bar.svelte +1 -1
  65. package/dist/ui/copy-button/copy-button.svelte +1 -1
  66. package/dist/ui/dialog/dialog-header.svelte +7 -2
  67. package/dist/ui/index.js +1 -1
  68. package/dist/ui/input/input.svelte +3 -3
  69. package/dist/ui/input/input.svelte.d.ts +1 -1
  70. package/dist/ui/input/variants.d.ts +6 -6
  71. package/dist/ui/input/variants.js +3 -3
  72. package/dist/ui/kv/kv.svelte +1 -1
  73. package/dist/ui/pane/pane-close.svelte +2 -2
  74. package/dist/ui/pane/pane-handle.svelte +3 -3
  75. package/dist/ui/select/select-trigger.svelte +1 -1
  76. package/dist/ui/select/select-value.svelte +1 -1
  77. package/dist/ui/step/step-summary.svelte +1 -1
  78. package/package.json +1 -1
@@ -290,7 +290,7 @@
290
290
  tabindex={-1}
291
291
  aria-selected={i === selectedIndex}
292
292
  class={cn(
293
- 'flex h-(--era-h-control) cursor-default items-center gap-(--era-gap) px-(--era-inset-control) text-body era-text-trim whitespace-nowrap',
293
+ 'flex h-(--era-h-control) cursor-default items-center gap-(--era-gap) px-(--era-inset-control) text-body leading-none whitespace-nowrap',
294
294
  i === selectedIndex ? 'bg-3 text-bright' : 'text-fg'
295
295
  )}
296
296
  onclick={() => choose(item)}
@@ -15,7 +15,7 @@
15
15
  resetDelay = 1500,
16
16
  label = 'Copy',
17
17
  copiedLabel = 'Copied',
18
- size = 'sm',
18
+ size = 'chip',
19
19
  idleIcon: IdleIcon = Copy,
20
20
  successIcon: SuccessIcon = Check,
21
21
  failureIcon: FailureIcon = X,
@@ -31,10 +31,15 @@
31
31
  `header` snippet, so the bar spans the panel edge to edge and the panel's
32
32
  radius follows this corner region (rd-md — the same law that sizes the
33
33
  pane's own corners). -->
34
- <Bar size="md" content="xxs" divider class={cn('pl-(--era-inset-control) select-none', className)}>
34
+ <Bar
35
+ size="control"
36
+ content="pill"
37
+ divider
38
+ class={cn('pl-(--era-inset-control) select-none', className)}
39
+ >
35
40
  {@render children?.()}
36
41
  {#if dismissable}
37
- <Close icon size="xxs" tone="destructive" aria-label="Close" class="ml-auto">
42
+ <Close icon size="pill" tone="destructive" aria-label="Close" class="ml-auto">
38
43
  <X />
39
44
  </Close>
40
45
  {/if}
package/dist/ui/index.js CHANGED
@@ -57,7 +57,7 @@ export * as Popover from './popover/index.js';
57
57
  export * as PinInput from './pin-input/index.js';
58
58
  // `Mode` as a top-level identifier is reserved for the component (above), so
59
59
  // the density-union type can't be re-exported here under its own name — it is
60
- // available (under its original name) from the `@sig-nine/era-ui/provider`
60
+ // available (under its original name) from the `@signal9/era-ui/provider`
61
61
  // subpath, or aliased as `DensityMode` below. Everything else flows through.
62
62
  export { modes, defaultMode, surfaces, defaultSurface, surfaceRegistry, corners, defaultCorners, fonts, defaultFont, motions, defaultMotion, axisRegistry, axisKeys } from './provider/index.js';
63
63
  export { Separator } from './separator/index.js';
@@ -9,7 +9,7 @@
9
9
  ref = $bindable(null),
10
10
  value = $bindable(''),
11
11
  icon = null,
12
- size = 'md',
12
+ size = 'control',
13
13
  bare = false,
14
14
  reveal = false,
15
15
  class: className,
@@ -27,7 +27,7 @@
27
27
  * Field tier. `pill` is badge height — for compact chrome where the field
28
28
  * sits level with xxs buttons. See inputVariants.
29
29
  */
30
- size?: 'md' | 'xxs';
30
+ size?: 'control' | 'pill';
31
31
  /** Drop the field chrome — for an input inside a container that is already the field. */
32
32
  bare?: boolean;
33
33
  /** Hold the field chrome back until hover — for a title or label that IS the content. */
@@ -54,7 +54,7 @@
54
54
  // with a default button (h-icon glyph), an xxs field with a pill-tier button
55
55
  // (icon-xxs). One size for both would leave the two glyphs in one bar drawn at
56
56
  // different weights.
57
- const glyphClass = $derived(size === 'xxs' ? 'size-(--era-glyph-pill)' : 'size-(--era-h-icon)');
57
+ const glyphClass = $derived(size === 'pill' ? 'size-(--era-glyph-pill)' : 'size-(--era-h-icon)');
58
58
  </script>
59
59
 
60
60
  {#if icon}
@@ -9,7 +9,7 @@ type $$ComponentProps = Omit<HTMLInputAttributes, 'size'> & {
9
9
  * Field tier. `pill` is badge height — for compact chrome where the field
10
10
  * sits level with xxs buttons. See inputVariants.
11
11
  */
12
- size?: 'md' | 'xxs';
12
+ size?: 'control' | 'pill';
13
13
  /** Drop the field chrome — for an input inside a container that is already the field. */
14
14
  bare?: boolean;
15
15
  /** Hold the field chrome back until hover — for a title or label that IS the content. */
@@ -60,8 +60,8 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
60
60
  * on this tier read as one family.
61
61
  */
62
62
  size: {
63
- md: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
64
- xxs: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
63
+ control: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
64
+ pill: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
65
65
  };
66
66
  /**
67
67
  * Height OVERRIDES, for the fields that are not their tier's height. No
@@ -128,8 +128,8 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
128
128
  * on this tier read as one family.
129
129
  */
130
130
  size: {
131
- md: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
132
- xxs: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
131
+ control: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
132
+ pill: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
133
133
  };
134
134
  /**
135
135
  * Height OVERRIDES, for the fields that are not their tier's height. No
@@ -196,8 +196,8 @@ export declare const inputVariants: import("tailwind-variants").TVReturnType<{
196
196
  * on this tier read as one family.
197
197
  */
198
198
  size: {
199
- md: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
200
- xxs: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
199
+ control: "h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)";
200
+ pill: "h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)";
201
201
  };
202
202
  /**
203
203
  * Height OVERRIDES, for the fields that are not their tier's height. No
@@ -63,8 +63,8 @@ export const inputVariants = tv({
63
63
  * on this tier read as one family.
64
64
  */
65
65
  size: {
66
- md: 'h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)',
67
- xxs: 'h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)'
66
+ control: 'h-(--era-h-control) rounded-(--era-rd-control) px-(--era-field-px)',
67
+ pill: 'h-(--era-h-pill) rounded-(--era-rd-pill) px-(--era-pill-px)'
68
68
  },
69
69
  /**
70
70
  * Height OVERRIDES, for the fields that are not their tier's height. No
@@ -100,5 +100,5 @@ export const inputVariants = tv({
100
100
  // second, differently-padded field.
101
101
  { bare: true, class: 'h-full rounded-none px-0' }
102
102
  ],
103
- defaultVariants: { bare: false, reveal: false, size: 'md' }
103
+ defaultVariants: { bare: false, reveal: false, size: 'control' }
104
104
  });
@@ -24,7 +24,7 @@
24
24
  // shrink-0 + nowrap like Badge/Chip: the overflow-hidden here is for the
25
25
  // key cell's squared corners, not a licence to crush — squeezed, this pill
26
26
  // clipped its value instead of bleeding it, which is quieter but no truer.
27
- 'inline-flex h-(--era-h-pill) shrink-0 items-center overflow-hidden rounded-(--era-rd-pill) bg-fill font-mono text-body era-text-trim leading-none whitespace-nowrap shadow-(--era-shadow)',
27
+ 'inline-flex h-(--era-h-pill) shrink-0 items-center overflow-hidden rounded-(--era-rd-pill) bg-fill font-mono text-body leading-none whitespace-nowrap shadow-(--era-shadow)',
28
28
  className
29
29
  )}
30
30
  {...restProps}
@@ -13,7 +13,7 @@
13
13
  } = $props();
14
14
  </script>
15
15
 
16
- <!-- A raw icon Button (size="xxs" = h-pill, rd-xxs), a tight SQUARE. No
16
+ <!-- A raw icon Button (size="pill" = h-pill, rd-xxs), a tight SQUARE. No
17
17
  data-pane-control: it stays in the drag zone, so a press-and-drag moves the
18
18
  pane while a clean click still closes (neodrag starts a drag only on
19
19
  movement and suppresses the trailing click after a real drag). Its natural
@@ -45,7 +45,7 @@
45
45
  <Button
46
46
  bind:ref
47
47
  icon
48
- size="xxs"
48
+ size="pill"
49
49
  tone="destructive"
50
50
  aria-label="Close"
51
51
  class={cn('[&_svg]:size-[calc(var(--era-sp)+0.3125rem)]', className)}
@@ -35,13 +35,13 @@
35
35
  control ⊃ pill, not chip ⊃ icon: a title bar is the densest chrome in the library and
36
36
  was a tier too short for it — 22px at dense against the 24 the reference
37
37
  terminal app uses, with 14px controls where it uses 18. The pairing is what
38
- carries that: content="xxs" puts the walls on --era-pill-inset-control (3/5/7/11),
38
+ carries that: content="pill" puts the walls on --era-pill-inset-control (3/5/7/11),
39
39
  which is the 3px that app hardcodes for exactly this bar. -->
40
40
  <Bar
41
41
  bind:ref
42
42
  data-pane-handle
43
- size="md"
44
- content="xxs"
43
+ size="control"
44
+ content="pill"
45
45
  divider
46
46
  class={cn(
47
47
  // The cap chrome (outset divider, rd-md bottom corners) is Bar's `divider`
@@ -14,7 +14,7 @@
14
14
  <Select.Trigger
15
15
  bind:ref
16
16
  class={cn(
17
- 'flex h-(--era-h-control) w-full items-center justify-between gap-(--era-icon-inset-chip) rounded-(--era-rd-control) bg-(--era-surface-bg-elevated) px-(--era-inset-control) text-body era-text-trim text-fg shadow-(--era-shadow) hover:bg-(--era-highlight) focus:bg-(--era-highlight) focus:outline-none disabled:opacity-50 data-[state=open]:rounded-b-none data-[state=open]:shadow-(--era-shadow-pressed)',
17
+ 'flex h-(--era-h-control) w-full items-center justify-between gap-(--era-icon-inset-chip) rounded-(--era-rd-control) bg-(--era-surface-bg-elevated) px-(--era-inset-control) text-body leading-none text-fg shadow-(--era-shadow) hover:bg-(--era-highlight) focus:bg-(--era-highlight) focus:outline-none disabled:opacity-50 data-[state=open]:rounded-b-none data-[state=open]:shadow-(--era-shadow-pressed)',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -55,7 +55,7 @@
55
55
  >
56
56
  {#each sel.selected as item (item.value)}
57
57
  <Chip
58
- size="xxs"
58
+ size="pill"
59
59
  ondismiss={snippet.disabled
60
60
  ? undefined
61
61
  : () =>
@@ -26,7 +26,7 @@
26
26
  <Collapsible.Trigger
27
27
  bind:ref
28
28
  class={cn(
29
- 'flex h-(--era-h-control) w-full min-w-0 era-interactive cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body era-text-trim text-muted transition-colors duration-(--era-duration) ease-(--era-ease) hover:text-fg',
29
+ 'flex h-(--era-h-control) w-full min-w-0 era-interactive cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body leading-none text-muted transition-colors duration-(--era-duration) ease-(--era-ease) hover:text-fg',
30
30
  className
31
31
  )}
32
32
  {...restProps}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "9.0.0",
3
+ "version": "10.1.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",