@signal9/era-ui 10.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 (47) hide show
  1. package/dist/ai/index.js +1 -1
  2. package/dist/ai/message/message-usage.svelte +1 -1
  3. package/dist/ai/prompt-input/prompt-input-attachments.svelte +1 -1
  4. package/dist/ai/run-status/run-status.svelte +3 -2
  5. package/dist/ai/swarm/swarm-agent.svelte +2 -2
  6. package/dist/ai/swarm/swarm-artifact.svelte +1 -1
  7. package/dist/ai/swarm/swarm-barrier.svelte +1 -1
  8. package/dist/ai/swarm/swarm-footer.svelte +3 -2
  9. package/dist/ai/swarm/swarm-header.svelte +1 -1
  10. package/dist/ai/swarm/swarm-node.svelte +1 -1
  11. package/dist/ai/swarm/swarm-role.svelte +5 -2
  12. package/dist/ai/tool/tool-chip.svelte +1 -1
  13. package/dist/apps/index.d.ts +3 -3
  14. package/dist/apps/index.js +3 -3
  15. package/dist/apps/notes/editor/slash-menu.svelte +2 -4
  16. package/dist/apps/notes/notes.svelte +1 -1
  17. package/dist/dev/audit/audits/anonymous-text.d.ts +2 -0
  18. package/dist/dev/audit/audits/anonymous-text.js +73 -0
  19. package/dist/dev/audit/audits/index.d.ts +2 -1
  20. package/dist/dev/audit/audits/index.js +3 -1
  21. package/dist/dev/audit/types.d.ts +1 -1
  22. package/dist/docs/css-utilities.js +1 -1
  23. package/dist/docs/llms-txt.js +2 -2
  24. package/dist/docs/notes.md +3 -3
  25. package/dist/era-ui.css +1 -1
  26. package/dist/generated-docs/llms-full.txt +96 -16
  27. package/dist/generated-docs/llms.txt +11 -7
  28. package/dist/generated-docs/manifest.json +28 -7
  29. package/dist/generated-docs/notes.md +3 -3
  30. package/dist/generated-docs/utilities.json +23 -4
  31. package/dist/generated-docs/utilities.md +82 -6
  32. package/dist/styles/index.css +43 -5
  33. package/dist/ui/bar/bar.svelte +1 -1
  34. package/dist/ui/bar/bar.svelte.d.ts +1 -1
  35. package/dist/ui/button/button.svelte +12 -1
  36. package/dist/ui/button/variants.d.ts +1 -1
  37. package/dist/ui/button/variants.js +1 -1
  38. package/dist/ui/chip/chip.svelte +13 -3
  39. package/dist/ui/chip/chip.svelte.d.ts +1 -1
  40. package/dist/ui/command/command-item.svelte +1 -1
  41. package/dist/ui/command/command-link-item.svelte +1 -1
  42. package/dist/ui/command-bar/command-bar.svelte +1 -1
  43. package/dist/ui/index.js +1 -1
  44. package/dist/ui/kv/kv.svelte +1 -1
  45. package/dist/ui/select/select-trigger.svelte +1 -1
  46. package/dist/ui/step/step-summary.svelte +1 -1
  47. package/package.json +1 -1
@@ -22,7 +22,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
22
22
  active: {
23
23
  true: "";
24
24
  };
25
- }, undefined, "items-center gap-(--era-gap) text-body era-interactive era-text-trim", {
25
+ }, undefined, "items-center gap-(--era-gap) text-body era-interactive leading-none", {
26
26
  variant: {
27
27
  filled: "flex justify-center shadow-(--era-shadow) hover:shadow-(--era-highlight-shadow) active:shadow-(--era-shadow-pressed) [&:active>*]:translate-x-(--era-press-sink-x) [&:active>*]:translate-y-(--era-press-sink-y)";
28
28
  link: "inline-flex underline-offset-2 hover:underline";
@@ -3,7 +3,7 @@ import { tv } from '../../utils/index.js';
3
3
  // entirely, so all geometry lives on filled compound variants rather than a
4
4
  // plain size variant.
5
5
  export const buttonVariants = tv({
6
- base: 'items-center gap-(--era-gap) text-body era-interactive era-text-trim',
6
+ base: 'items-center gap-(--era-gap) text-body era-interactive leading-none',
7
7
  variants: {
8
8
  variant: {
9
9
  // The active: press treatment is inert outside the bevel surface —
@@ -13,7 +13,7 @@
13
13
  export const chipVariants = tv({
14
14
  // shrink-0 + nowrap for the same reason Badge carries them: the pill is
15
15
  // already exactly its text's size, so any squeeze puts ink outside the fill.
16
- base: 'inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-(--era-shadow) era-text-trim',
16
+ base: 'inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-(--era-shadow)',
17
17
  variants: {
18
18
  size: {
19
19
  chip: 'h-(--era-h-chip) min-w-(--era-h-chip) rounded-(--era-rd-chip) pl-(--era-chip-px)',
@@ -23,8 +23,18 @@
23
23
  },
24
24
  compoundVariants: [
25
25
  // Text-only: symmetric pill padding, inter-element gap for a lead icon.
26
- { size: 'chip', dismissible: false, class: 'gap-(--era-gap) pr-(--era-chip-px)' },
27
- { size: 'pill', dismissible: false, class: 'gap-(--era-gap) pr-(--era-pill-px)' },
26
+ {
27
+ size: 'chip',
28
+ dismissible: false,
29
+ class:
30
+ 'gap-(--era-gap) pr-(--era-chip-px) not-has-[svg]:era-label-ink not-has-[svg]:text-center'
31
+ },
32
+ {
33
+ size: 'pill',
34
+ dismissible: false,
35
+ class:
36
+ 'gap-(--era-gap) pr-(--era-pill-px) not-has-[svg]:era-label-ink not-has-[svg]:text-center'
37
+ },
28
38
  // Dismissible, two geometries because the two tiers afford different ones:
29
39
  //
30
40
  // chip — the pill-tier button NESTS, with its concentric gap mirrored as
@@ -7,7 +7,7 @@ export declare const chipVariants: import("tailwind-variants").TVReturnType<{
7
7
  true: "";
8
8
  false: "";
9
9
  };
10
- }, undefined, "inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-(--era-shadow) era-text-trim", {
10
+ }, undefined, "inline-flex shrink-0 items-center bg-fill font-mono text-body leading-none whitespace-nowrap text-fg shadow-(--era-shadow)", {
11
11
  size: {
12
12
  chip: "h-(--era-h-chip) min-w-(--era-h-chip) rounded-(--era-rd-chip) pl-(--era-chip-px)";
13
13
  pill: "h-(--era-h-pill) min-w-(--era-h-pill) rounded-(--era-rd-pill) pl-(--era-pill-px)";
@@ -8,7 +8,7 @@
8
8
  <Command.Item
9
9
  bind:ref
10
10
  class={cn(
11
- 'flex h-(--era-h-control) cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body era-text-trim text-fg outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-(--era-highlight)',
11
+ 'flex h-(--era-h-control) cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body leading-none text-fg outline-none select-none not-has-[svg]:era-label-ink data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-(--era-highlight)',
12
12
  className
13
13
  )}
14
14
  {...restProps}
@@ -8,7 +8,7 @@
8
8
  <Command.LinkItem
9
9
  bind:ref
10
10
  class={cn(
11
- 'flex h-(--era-h-control) cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body era-text-trim text-fg no-underline outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-(--era-highlight)',
11
+ 'flex h-(--era-h-control) cursor-pointer items-center gap-(--era-gap) rounded-(--era-rd-control) px-(--era-inset-control) text-body leading-none text-fg no-underline outline-none select-none not-has-[svg]:era-label-ink data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-(--era-highlight)',
12
12
  className
13
13
  )}
14
14
  {...restProps}
@@ -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)}
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';
@@ -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}
@@ -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}
@@ -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": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",