@signal9/era-ui 12.1.0 → 12.1.2

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 (74) hide show
  1. package/dist/docs/badge.md +1 -1
  2. package/dist/docs/button.md +1 -1
  3. package/dist/docs/chip.md +1 -1
  4. package/dist/docs/component-docs-core.js +2 -1
  5. package/dist/docs/package-name.d.ts +18 -0
  6. package/dist/docs/package-name.js +18 -0
  7. package/dist/docs/quickstart.md +1 -1
  8. package/dist/docs/separator.md +1 -1
  9. package/dist/docs/table.md +1 -1
  10. package/dist/generated-docs/accordion.md +1 -1
  11. package/dist/generated-docs/alert-dialog.md +1 -1
  12. package/dist/generated-docs/aspect-ratio.md +1 -1
  13. package/dist/generated-docs/avatar.md +1 -1
  14. package/dist/generated-docs/badge.md +2 -2
  15. package/dist/generated-docs/bar.md +1 -1
  16. package/dist/generated-docs/button-group.md +1 -1
  17. package/dist/generated-docs/button.md +2 -2
  18. package/dist/generated-docs/calendar.md +1 -1
  19. package/dist/generated-docs/card.md +1 -1
  20. package/dist/generated-docs/checkbox.md +1 -1
  21. package/dist/generated-docs/chip.md +2 -2
  22. package/dist/generated-docs/code-block.md +1 -1
  23. package/dist/generated-docs/collapsible.md +1 -1
  24. package/dist/generated-docs/combobox.md +1 -1
  25. package/dist/generated-docs/command.md +1 -1
  26. package/dist/generated-docs/context-menu.md +1 -1
  27. package/dist/generated-docs/copy-button.md +1 -1
  28. package/dist/generated-docs/cycle.md +1 -1
  29. package/dist/generated-docs/date-field.md +1 -1
  30. package/dist/generated-docs/date-picker.md +1 -1
  31. package/dist/generated-docs/date-range-field.md +1 -1
  32. package/dist/generated-docs/date-range-picker.md +1 -1
  33. package/dist/generated-docs/dialog.md +1 -1
  34. package/dist/generated-docs/dropdown-menu.md +1 -1
  35. package/dist/generated-docs/file-upload.md +1 -1
  36. package/dist/generated-docs/input.md +1 -1
  37. package/dist/generated-docs/kv.md +1 -1
  38. package/dist/generated-docs/label.md +1 -1
  39. package/dist/generated-docs/link-preview.md +1 -1
  40. package/dist/generated-docs/llms-full.txt +66 -66
  41. package/dist/generated-docs/logo.md +1 -1
  42. package/dist/generated-docs/manifest.json +61 -61
  43. package/dist/generated-docs/menu.md +1 -1
  44. package/dist/generated-docs/menubar.md +1 -1
  45. package/dist/generated-docs/meter.md +1 -1
  46. package/dist/generated-docs/mode.md +1 -1
  47. package/dist/generated-docs/navigation-menu.md +1 -1
  48. package/dist/generated-docs/pagination.md +1 -1
  49. package/dist/generated-docs/pane.md +1 -1
  50. package/dist/generated-docs/pin-input.md +1 -1
  51. package/dist/generated-docs/popover.md +1 -1
  52. package/dist/generated-docs/progress.md +1 -1
  53. package/dist/generated-docs/radio-group.md +1 -1
  54. package/dist/generated-docs/range-calendar.md +1 -1
  55. package/dist/generated-docs/rating-group.md +1 -1
  56. package/dist/generated-docs/scroll-area.md +1 -1
  57. package/dist/generated-docs/select.md +1 -1
  58. package/dist/generated-docs/separator.md +2 -2
  59. package/dist/generated-docs/sheet.md +1 -1
  60. package/dist/generated-docs/skeleton.md +1 -1
  61. package/dist/generated-docs/slider.md +1 -1
  62. package/dist/generated-docs/step.md +1 -1
  63. package/dist/generated-docs/switch.md +1 -1
  64. package/dist/generated-docs/table.md +2 -2
  65. package/dist/generated-docs/tabs.md +1 -1
  66. package/dist/generated-docs/time-field.md +1 -1
  67. package/dist/generated-docs/time-range-field.md +1 -1
  68. package/dist/generated-docs/toggle-group.md +1 -1
  69. package/dist/generated-docs/toggle.md +1 -1
  70. package/dist/generated-docs/toolbar.md +1 -1
  71. package/dist/generated-docs/tooltip.md +1 -1
  72. package/dist/generated-docs/video-player.md +1 -1
  73. package/dist/ui/pane/pane-root.svelte +35 -1
  74. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```svelte
4
4
  <script>
5
- import { Badge } from '$lib/ui/badge';
5
+ import { Badge } from '@signal9/era-ui/badge';
6
6
  </script>
7
7
 
8
8
  <Badge>draft</Badge>
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```svelte
4
4
  <script>
5
- import { Button } from '$lib/ui/button';
5
+ import { Button } from '@signal9/era-ui/button';
6
6
  </script>
7
7
 
8
8
  <Button onclick={() => console.log('clicked')}>Save</Button>
package/dist/docs/chip.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```svelte
4
4
  <script>
5
- import { Chip } from '$lib/ui/chip';
5
+ import { Chip } from '@signal9/era-ui/chip';
6
6
 
7
7
  let tags = $state(['alpha', 'beta', 'gamma']);
8
8
  </script>
@@ -1,3 +1,4 @@
1
+ import { PACKAGE } from './package-name.js';
1
2
  import { extractProps } from './extract-props.js';
2
3
  export function buildComponentDocFromSources(entry, sources, appendix) {
3
4
  const { slug, name, description } = entry;
@@ -11,7 +12,7 @@ export function buildComponentDocFromSources(entry, sources, appendix) {
11
12
  }
12
13
  return lines.join('\n');
13
14
  }
14
- lines.push('## Import', '', '```ts', `import { ${root.alias} } from "$lib/ui/${slug}";`, '```', '');
15
+ lines.push('## Import', '', '```ts', `import { ${root.alias} } from "${PACKAGE}/${slug}";`, '```', '');
15
16
  const subs = sources.subExportsBySlug[slug] ?? [];
16
17
  const files = sources.svelteBySlug[slug] ?? {};
17
18
  if (root.kind === 'namespace') {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The specifier a CONSUMER writes.
3
+ *
4
+ * Not `$lib/ui/<slug>` — that is a SvelteKit alias which resolves only inside
5
+ * this repo, so every doc that printed it was handing consumers an import that
6
+ * cannot work anywhere else. It had reached 61 of the 73 generated component
7
+ * docs and all of llms-full.txt, which is the file agents fetch, before anyone
8
+ * tried to follow one.
9
+ *
10
+ * npm's name deliberately: the package publishes to two registries under two
11
+ * names (`@sig-nine/era-ui` on GitHub Packages, where the scope must match the
12
+ * repo owner) and npm's is the one a reader can install without auth.
13
+ *
14
+ * Its own module, with no imports of its own, because the node doc builder
15
+ * loads it through --experimental-strip-types — which cannot follow the `.js`
16
+ * specifiers the rest of src/lib/docs uses.
17
+ */
18
+ export declare const PACKAGE = "@signal9/era-ui";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The specifier a CONSUMER writes.
3
+ *
4
+ * Not `$lib/ui/<slug>` — that is a SvelteKit alias which resolves only inside
5
+ * this repo, so every doc that printed it was handing consumers an import that
6
+ * cannot work anywhere else. It had reached 61 of the 73 generated component
7
+ * docs and all of llms-full.txt, which is the file agents fetch, before anyone
8
+ * tried to follow one.
9
+ *
10
+ * npm's name deliberately: the package publishes to two registries under two
11
+ * names (`@sig-nine/era-ui` on GitHub Packages, where the scope must match the
12
+ * repo owner) and npm's is the one a reader can install without auth.
13
+ *
14
+ * Its own module, with no imports of its own, because the node doc builder
15
+ * loads it through --experimental-strip-types — which cannot follow the `.js`
16
+ * specifiers the rest of src/lib/docs uses.
17
+ */
18
+ export const PACKAGE = '@signal9/era-ui';
@@ -4,7 +4,7 @@ Use a single, pure component import from `$lib/ui` for a clean docs-friendly sta
4
4
 
5
5
  ```svelte
6
6
  <script lang="ts">
7
- import { Badge, Bar, Button, ButtonGroup, Card, Separator } from '$lib/ui';
7
+ import { Badge, Bar, Button, ButtonGroup, Card, Separator } from '@signal9/era-ui';
8
8
  </script>
9
9
 
10
10
  <section class="mx-auto flex w-full max-w-4xl flex-col gap-content p-content">
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```svelte
4
4
  <script>
5
- import { Separator } from '$lib/ui/separator';
5
+ import { Separator } from '@signal9/era-ui/separator';
6
6
  </script>
7
7
 
8
8
  <p>
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```svelte
4
4
  <script lang="ts">
5
- import { Table } from '$lib/ui/table';
5
+ import { Table } from '@signal9/era-ui/table';
6
6
 
7
7
  const rows = [
8
8
  { id: 1, name: 'Ada', role: 'Engineer' },
@@ -5,7 +5,7 @@ Collapsible content sections.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Accordion } from "$lib/ui/accordion";
8
+ import { Accordion } from "@signal9/era-ui/accordion";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A modal confirmation before destructive actions.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { AlertDialog } from "$lib/ui/alert-dialog";
8
+ import { AlertDialog } from "@signal9/era-ui/alert-dialog";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Maintains a specified aspect ratio for content.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { AspectRatio } from "$lib/ui/aspect-ratio";
8
+ import { AspectRatio } from "@signal9/era-ui/aspect-ratio";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ An image with optional initials/icon fallback.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Avatar } from "$lib/ui/avatar";
8
+ import { Avatar } from "@signal9/era-ui/avatar";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A small label for status or categorization.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Badge } from "$lib/ui/badge";
8
+ import { Badge } from "@signal9/era-ui/badge";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -22,7 +22,7 @@ Inherits all props from `HTMLAttributes<HTMLSpanElement>`.
22
22
 
23
23
  ```svelte
24
24
  <script>
25
- import { Badge } from '$lib/ui/badge';
25
+ import { Badge } from '@signal9/era-ui/badge';
26
26
  </script>
27
27
 
28
28
  <Badge>draft</Badge>
@@ -5,7 +5,7 @@ A flex container for toolbars and headers, in three heights.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Bar } from "$lib/ui/bar";
8
+ import { Bar } from "@signal9/era-ui/bar";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Groups buttons with consistent spacing.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { ButtonGroup } from "$lib/ui/button-group";
8
+ import { ButtonGroup } from "@signal9/era-ui/button-group";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ A flexible button or link element.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Button } from "$lib/ui/button";
8
+ import { Button } from "@signal9/era-ui/button";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -30,7 +30,7 @@ and screen-reader accessible names don't change shape mid-flight. |
30
30
 
31
31
  ```svelte
32
32
  <script>
33
- import { Button } from '$lib/ui/button';
33
+ import { Button } from '@signal9/era-ui/button';
34
34
  </script>
35
35
 
36
36
  <Button onclick={() => console.log('clicked')}>Save</Button>
@@ -5,7 +5,7 @@ A date picker calendar grid.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Calendar } from "$lib/ui/calendar";
8
+ import { Calendar } from "@signal9/era-ui/calendar";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A surface container that can behave as a link or button.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Card } from "$lib/ui/card";
8
+ import { Card } from "@signal9/era-ui/card";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Toggleable check with indeterminate support.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Checkbox } from "$lib/ui/checkbox";
8
+ import { Checkbox } from "@signal9/era-ui/checkbox";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ An interactive, optionally dismissible token.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Chip } from "$lib/ui/chip";
8
+ import { Chip } from "@signal9/era-ui/chip";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -24,7 +24,7 @@ that nests inside an md container (a select trigger, a button). |
24
24
 
25
25
  ```svelte
26
26
  <script>
27
- import { Chip } from '$lib/ui/chip';
27
+ import { Chip } from '@signal9/era-ui/chip';
28
28
 
29
29
  let tags = $state(['alpha', 'beta', 'gamma']);
30
30
  </script>
@@ -5,7 +5,7 @@ A code snippet with optional copy button.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { CodeBlock } from "$lib/ui/code-block";
8
+ import { CodeBlock } from "@signal9/era-ui/code-block";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Show and hide content sections with a trigger.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Collapsible } from "$lib/ui/collapsible";
8
+ import { Collapsible } from "@signal9/era-ui/collapsible";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Search and select from a filtered list of options.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Combobox } from "$lib/ui/combobox";
8
+ import { Combobox } from "@signal9/era-ui/combobox";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A searchable command menu for quick navigation.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Command } from "$lib/ui/command";
8
+ import { Command } from "@signal9/era-ui/command";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Options and actions triggered by right-click.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { ContextMenu } from "$lib/ui/context-menu";
8
+ import { ContextMenu } from "@signal9/era-ui/context-menu";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ An icon button that copies text and cross-fades to a result glyph.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { CopyButton } from "$lib/ui/copy-button";
8
+ import { CopyButton } from "@signal9/era-ui/copy-button";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ A single button that steps through an ordered set of states.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Cycle } from "$lib/ui/cycle";
8
+ import { Cycle } from "@signal9/era-ui/cycle";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Segmented date input with keyboard navigation.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { DateField } from "$lib/ui/date-field";
8
+ import { DateField } from "@signal9/era-ui/date-field";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Date input with a calendar popover.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { DatePicker } from "$lib/ui/date-picker";
8
+ import { DatePicker } from "@signal9/era-ui/date-picker";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Segmented start/end date input.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { DateRangeField } from "$lib/ui/date-range-field";
8
+ import { DateRangeField } from "@signal9/era-ui/date-range-field";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ Date range input with a calendar popover.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { DateRangePicker } from "$lib/ui/date-range-picker";
8
+ import { DateRangePicker } from "@signal9/era-ui/date-range-picker";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A modal window for content or user input.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Dialog } from "$lib/ui/dialog";
8
+ import { Dialog } from "@signal9/era-ui/dialog";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A menu of selectable items.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { DropdownMenu } from "$lib/ui/dropdown-menu";
8
+ import { DropdownMenu } from "@signal9/era-ui/dropdown-menu";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site:
@@ -5,7 +5,7 @@ A file input with click-to-browse and drag-and-drop.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { FileUpload } from "$lib/ui/file-upload";
8
+ import { FileUpload } from "@signal9/era-ui/file-upload";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ A text input field, with textarea variant.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Input } from "$lib/ui/input";
8
+ import { Input } from "@signal9/era-ui/input";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ A key-value pair display using Badge.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { KV } from "$lib/ui/kv";
8
+ import { KV } from "@signal9/era-ui/kv";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Identifies or describes associated UI elements.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { Label } from "$lib/ui/label";
8
+ import { Label } from "@signal9/era-ui/label";
9
9
  ```
10
10
 
11
11
  ## Props
@@ -5,7 +5,7 @@ Shows rich preview content when hovering a link.
5
5
  ## Import
6
6
 
7
7
  ```ts
8
- import { LinkPreview } from "$lib/ui/link-preview";
8
+ import { LinkPreview } from "@signal9/era-ui/link-preview";
9
9
  ```
10
10
 
11
11
  Composed from sub-components — compose explicitly at the call site: