@signal9/era-ui 21.0.0 → 23.0.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 (103) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/dev/audit/audits/off-tier-height.js +16 -2
  3. package/dist/dev/audit/audits/wall-is-isotropic.js +15 -10
  4. package/dist/era-ui.css +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/styles/typography.css +48 -9
  7. package/dist/ui/accordion/accordion-trigger.svelte +2 -2
  8. package/dist/ui/accordion/accordion-trigger.svelte.d.ts +2 -2
  9. package/dist/ui/alert-dialog/alert-dialog-content.svelte +6 -2
  10. package/dist/ui/alert-dialog/alert-dialog-content.svelte.d.ts +2 -2
  11. package/dist/ui/alert-dialog/alert-dialog-root.svelte +33 -0
  12. package/dist/ui/alert-dialog/alert-dialog-root.svelte.d.ts +8 -0
  13. package/dist/ui/alert-dialog/alert-dialog-trigger.svelte +8 -0
  14. package/dist/ui/alert-dialog/index.d.ts +1 -1
  15. package/dist/ui/alert-dialog/index.js +1 -1
  16. package/dist/ui/card/card.svelte +3 -0
  17. package/dist/ui/combobox/combobox-trigger.svelte +2 -2
  18. package/dist/ui/combobox/combobox-trigger.svelte.d.ts +2 -2
  19. package/dist/ui/context-menu/context-menu-content.svelte +6 -2
  20. package/dist/ui/context-menu/context-menu-content.svelte.d.ts +2 -2
  21. package/dist/ui/context-menu/context-menu-root.svelte +33 -0
  22. package/dist/ui/context-menu/context-menu-root.svelte.d.ts +8 -0
  23. package/dist/ui/context-menu/context-menu-sub-content.svelte +6 -2
  24. package/dist/ui/context-menu/context-menu-sub-content.svelte.d.ts +2 -2
  25. package/dist/ui/context-menu/context-menu-sub-trigger.svelte +2 -2
  26. package/dist/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +2 -2
  27. package/dist/ui/context-menu/context-menu-trigger.svelte +8 -0
  28. package/dist/ui/context-menu/index.d.ts +1 -1
  29. package/dist/ui/context-menu/index.js +1 -1
  30. package/dist/ui/date-field/date-field-input.svelte +9 -0
  31. package/dist/ui/date-picker/date-picker-trigger.svelte +2 -2
  32. package/dist/ui/date-picker/date-picker-trigger.svelte.d.ts +2 -2
  33. package/dist/ui/date-range-field/date-range-field-input.svelte +9 -0
  34. package/dist/ui/date-range-picker/date-range-picker-trigger.svelte +2 -2
  35. package/dist/ui/date-range-picker/date-range-picker-trigger.svelte.d.ts +2 -2
  36. package/dist/ui/dialog/dialog-content.svelte +16 -2
  37. package/dist/ui/dialog/dialog-content.svelte.d.ts +2 -2
  38. package/dist/ui/dialog/dialog-root.svelte +43 -0
  39. package/dist/ui/dialog/dialog-root.svelte.d.ts +8 -0
  40. package/dist/ui/dialog/dialog-trigger.svelte +10 -0
  41. package/dist/ui/dialog/index.d.ts +1 -1
  42. package/dist/ui/dialog/index.js +1 -1
  43. package/dist/ui/dropdown-menu/dropdown-menu-content.svelte +6 -2
  44. package/dist/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +2 -2
  45. package/dist/ui/dropdown-menu/dropdown-menu-root.svelte +33 -0
  46. package/dist/ui/dropdown-menu/dropdown-menu-root.svelte.d.ts +8 -0
  47. package/dist/ui/dropdown-menu/dropdown-menu-sub-content.svelte +6 -2
  48. package/dist/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +2 -2
  49. package/dist/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +2 -2
  50. package/dist/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +2 -2
  51. package/dist/ui/dropdown-menu/dropdown-menu-trigger.svelte +10 -2
  52. package/dist/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +2 -2
  53. package/dist/ui/dropdown-menu/index.d.ts +1 -1
  54. package/dist/ui/dropdown-menu/index.js +1 -1
  55. package/dist/ui/index.d.ts +1 -0
  56. package/dist/ui/index.js +1 -0
  57. package/dist/ui/link-preview/index.d.ts +1 -1
  58. package/dist/ui/link-preview/index.js +1 -1
  59. package/dist/ui/link-preview/link-preview-content.svelte +6 -2
  60. package/dist/ui/link-preview/link-preview-content.svelte.d.ts +2 -2
  61. package/dist/ui/link-preview/link-preview-root.svelte +33 -0
  62. package/dist/ui/link-preview/link-preview-root.svelte.d.ts +8 -0
  63. package/dist/ui/link-preview/link-preview-trigger.svelte +8 -0
  64. package/dist/ui/menubar/menubar-content.svelte +6 -2
  65. package/dist/ui/menubar/menubar-content.svelte.d.ts +2 -2
  66. package/dist/ui/menubar/menubar-root.svelte +26 -1
  67. package/dist/ui/menubar/menubar-root.svelte.d.ts +1 -1
  68. package/dist/ui/menubar/menubar-sub-content.svelte +6 -2
  69. package/dist/ui/menubar/menubar-sub-content.svelte.d.ts +2 -2
  70. package/dist/ui/menubar/menubar-sub-trigger.svelte +2 -2
  71. package/dist/ui/menubar/menubar-sub-trigger.svelte.d.ts +2 -2
  72. package/dist/ui/meter/meter.svelte +50 -2
  73. package/dist/ui/meter/meter.svelte.d.ts +38 -1
  74. package/dist/ui/nav/index.d.ts +2 -0
  75. package/dist/ui/nav/index.js +2 -0
  76. package/dist/ui/nav/nav-bar.svelte +51 -0
  77. package/dist/ui/nav/nav-bar.svelte.d.ts +21 -0
  78. package/dist/ui/nav/nav-item.svelte +79 -0
  79. package/dist/ui/nav/nav-item.svelte.d.ts +29 -0
  80. package/dist/ui/provider/axes.d.ts +14 -1
  81. package/dist/ui/provider/axis-relay.svelte.d.ts +34 -0
  82. package/dist/ui/provider/axis-relay.svelte.js +109 -0
  83. package/dist/ui/select/select-content.svelte +2 -2
  84. package/dist/ui/select/select-content.svelte.d.ts +2 -2
  85. package/dist/ui/select/select-trigger.svelte +2 -2
  86. package/dist/ui/select/select-trigger.svelte.d.ts +2 -2
  87. package/dist/ui/sheet/sheet-content.svelte +8 -2
  88. package/dist/ui/sheet/sheet-content.svelte.d.ts +2 -2
  89. package/dist/ui/step/step-content.svelte +2 -2
  90. package/dist/ui/step/step-content.svelte.d.ts +2 -2
  91. package/dist/ui/step/step-summary.svelte +2 -2
  92. package/dist/ui/step/step-summary.svelte.d.ts +2 -2
  93. package/dist/ui/time-field/time-field-input.svelte +9 -0
  94. package/dist/ui/time-range-field/time-range-field-input.svelte +9 -0
  95. package/dist/ui/tooltip/index.d.ts +1 -1
  96. package/dist/ui/tooltip/index.js +1 -1
  97. package/dist/ui/tooltip/tooltip-content.svelte +6 -2
  98. package/dist/ui/tooltip/tooltip-content.svelte.d.ts +2 -2
  99. package/dist/ui/tooltip/tooltip-root.svelte +33 -0
  100. package/dist/ui/tooltip/tooltip-root.svelte.d.ts +8 -0
  101. package/dist/ui/tooltip/tooltip-trigger.svelte +8 -0
  102. package/dist/utils/index.d.ts +36 -3
  103. package/package.json +6 -4
@@ -1,6 +1,6 @@
1
1
  import { type ClassValue } from 'clsx';
2
2
  import type { Snippet } from 'svelte';
3
- import type { WithoutChildrenOrChild } from 'bits-ui';
3
+ import type { WithoutChildren, WithoutChildrenOrChild } from 'bits-ui';
4
4
  /**
5
5
  * Merges class lists with Tailwind conflict resolution (last wins).
6
6
  * Accepts Svelte's full `ClassValue` shape (strings, arrays, objects).
@@ -9,8 +9,41 @@ export declare function cn(...inputs: ClassValue[]): string;
9
9
  /** `tv` preconfigured with this library's tailwind-merge settings. */
10
10
  export declare const tv: import("tailwind-variants").TV;
11
11
  export type { VariantProps } from 'tailwind-variants';
12
- /** Props for a bits-ui part wrapper that renders its own `children`. */
13
- export type PartProps<T> = WithoutChildrenOrChild<T> & {
12
+ /**
13
+ * Props for a bits-ui part that era only RESTYLES — it forwards `children` and
14
+ * adds classes, and renders no markup of its own.
15
+ *
16
+ * `child` is kept. It is bits-ui's escape hatch: the snippet receives the props
17
+ * the part would have rendered, and the caller renders their own element with
18
+ * them — a Trigger as an `<a>`, a Content as a custom component. era used to
19
+ * strip it from every part, which made the whole library strictly less capable
20
+ * than the primitives it wraps, for no reason on these 18: era contributes a
21
+ * class string, and bits-ui hands that class straight to the `child` snippet's
22
+ * props, so the escape hatch keeps era's styling on the way out. It already
23
+ * worked at runtime — `child` rode in on restProps and bits-ui checks it before
24
+ * `children` — so the only thing stopping anyone was this type.
25
+ *
26
+ * A part where era renders chrome of its own takes {@link OwnedPartProps}.
27
+ */
28
+ export type PartProps<T> = WithoutChildren<T> & {
29
+ children?: Snippet;
30
+ };
31
+ /**
32
+ * Props for a bits-ui part whose markup era OWNS — a trigger that renders its
33
+ * own chevron, a content that renders its own overlay, a summary with a status
34
+ * spinner.
35
+ *
36
+ * `child` is withheld here, and the reason is that it cannot be honoured. The
37
+ * snippet replaces the element era was going to render, and era's extra markup
38
+ * lives INSIDE that element, so taking over rendering drops the chevron, the
39
+ * overlay or the indicator with no error and no visual clue — era's signature
40
+ * failure mode. Better to refuse it in the type than to accept it and quietly
41
+ * render something else.
42
+ *
43
+ * If you need the underlying element, reach for the primitive directly:
44
+ * `import { Select } from 'bits-ui'`. era wraps, it does not replace.
45
+ */
46
+ export type OwnedPartProps<T> = WithoutChildrenOrChild<T> & {
14
47
  children?: Snippet;
15
48
  };
16
49
  export { hotkeys, keys, parseKeybinding, matchKeyBindingPress, createKeybindingsHandler, formatKeybinding, isApplePlatform, modKey, type KeyBindingMap, type KeyBindingPress, type KeyBindingOptions } from './hotkeys.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "21.0.0",
3
+ "version": "23.0.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",
@@ -25,10 +25,12 @@
25
25
  "check:classes": "node --experimental-strip-types scripts/check-classes.ts",
26
26
  "check:twmerge": "node --experimental-strip-types scripts/check-twmerge.ts",
27
27
  "build:llm-docs": "node --experimental-strip-types scripts/build-llm-docs.ts",
28
- "prebuild": "npm run check:surfaces && npm run check:tokens && npm run check:routes && npm run check:canonical && npm run check:layers && npm run check:themes && npm run check:classes && npm run check:twmerge && npm run check:doc-tokens && npm run build:llm-docs",
29
- "validate": "npm run check && npm run lint && npm run format:check && npm run check:surfaces && npm run check:tokens && npm run check:routes && npm run check:canonical && npm run check:layers && npm run check:themes && npm run check:classes && npm run check:twmerge && npm run check:doc-tokens",
28
+ "prebuild": "npm run check:surfaces && npm run check:tokens && npm run check:routes && npm run check:canonical && npm run check:layers && npm run check:themes && npm run check:classes && npm run check:twmerge && npm run check:doc-tokens && npm run check:audit-controls && npm run check:specimen-coverage && npm run build:llm-docs",
29
+ "validate": "npm run check && npm run lint && npm run format:check && npm run check:surfaces && npm run check:tokens && npm run check:routes && npm run check:canonical && npm run check:layers && npm run check:themes && npm run check:classes && npm run check:twmerge && npm run check:doc-tokens && npm run check:audit-controls && npm run check:specimen-coverage",
30
30
  "test": "npm run test:visual",
31
- "check:doc-tokens": "node --experimental-strip-types scripts/check-doc-tokens.ts"
31
+ "check:doc-tokens": "node --experimental-strip-types scripts/check-doc-tokens.ts",
32
+ "check:audit-controls": "node --experimental-strip-types scripts/check-audit-controls.ts",
33
+ "check:specimen-coverage": "node --experimental-strip-types scripts/check-specimen-coverage.ts"
32
34
  },
33
35
  "files": [
34
36
  "dist",