@signal9/era-ui 1.4.0 → 1.4.1

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.
@@ -1,8 +1,13 @@
1
1
  <script lang="ts">
2
- import { Tabs } from 'bits-ui';
2
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
3
+ import * as Tabs from '../tabs';
3
4
  import { cn } from '../../utils/index.js';
4
5
 
5
- let { ref = $bindable(null), class: className, ...restProps }: Tabs.ListProps = $props();
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ ...restProps
10
+ }: TabsPrimitive.ListProps = $props();
6
11
  </script>
7
12
 
8
13
  <!-- A horizontal row of tab triggers, sized to sit inside the handle Bar. -->
@@ -1,4 +1,4 @@
1
- import { Tabs } from 'bits-ui';
2
- declare const PaneTabList: import("svelte").Component<Tabs.ListProps, {}, "ref">;
1
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
2
+ declare const PaneTabList: import("svelte").Component<TabsPrimitive.ListProps, {}, "ref">;
3
3
  type PaneTabList = ReturnType<typeof PaneTabList>;
4
4
  export default PaneTabList;
@@ -1,12 +1,18 @@
1
1
  <script lang="ts">
2
- import { Tabs } from 'bits-ui';
2
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
3
+ import * as Tabs from '../tabs';
3
4
  import { cn } from '../../utils/index.js';
4
5
 
5
- let { ref = $bindable(null), class: className, ...restProps }: Tabs.ContentProps = $props();
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ ...restProps
10
+ }: TabsPrimitive.ContentProps = $props();
6
11
  </script>
7
12
 
8
- <!-- The body for a tab. Fills the pane below the handle and scrolls when it
9
- runs out of room — the resizable counterpart to Pane.Content. -->
13
+ <!-- The body for a tab (era-ui Tabs.Content). Fills the pane below the handle
14
+ and scrolls when it runs out of room — the resizable counterpart to
15
+ Pane.Content. -->
10
16
  <Tabs.Content
11
17
  bind:ref
12
18
  class={cn('min-h-0 flex-1 overflow-auto p-(--era-pad-md)', className)}
@@ -1,4 +1,4 @@
1
- import { Tabs } from 'bits-ui';
2
- declare const PaneTabPanel: import("svelte").Component<Tabs.ContentProps, {}, "ref">;
1
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
2
+ declare const PaneTabPanel: import("svelte").Component<TabsPrimitive.ContentProps, {}, "ref">;
3
3
  type PaneTabPanel = ReturnType<typeof PaneTabPanel>;
4
4
  export default PaneTabPanel;
@@ -1,13 +1,18 @@
1
1
  <script lang="ts">
2
- import { Tabs } from 'bits-ui';
2
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
3
+ import * as Tabs from '../tabs';
3
4
  import { cn } from '../../utils/index.js';
4
5
 
5
- let { ref = $bindable(null), class: className, ...restProps }: Tabs.TriggerProps = $props();
6
+ let {
7
+ ref = $bindable(null),
8
+ class: className,
9
+ ...restProps
10
+ }: TabsPrimitive.TriggerProps = $props();
6
11
  </script>
7
12
 
8
- <!-- A tab trigger as an xs-tier pill the content tier the sm handle Bar is
9
- built for. data-pane-control carves it out of the drag zone so it clicks,
10
- not drags. Active state paints with the hover token. -->
13
+ <!-- A tab trigger (era-ui Tabs.Trigger) styled as a text pill for the handle
14
+ Bar. data-pane-control carves it out of the drag zone so it clicks, not
15
+ drags. Active state paints with the hover token. -->
11
16
  <Tabs.Trigger
12
17
  bind:ref
13
18
  data-pane-control
@@ -1,4 +1,4 @@
1
- import { Tabs } from 'bits-ui';
2
- declare const PaneTab: import("svelte").Component<Tabs.TriggerProps, {}, "ref">;
1
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
2
+ declare const PaneTab: import("svelte").Component<TabsPrimitive.TriggerProps, {}, "ref">;
3
3
  type PaneTab = ReturnType<typeof PaneTab>;
4
4
  export default PaneTab;
@@ -1,10 +1,18 @@
1
1
  <script lang="ts">
2
- import { Tabs } from 'bits-ui';
2
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
3
+ import * as Tabs from '../tabs';
3
4
  import { cn } from '../../utils/index.js';
4
5
 
5
- let { ref = $bindable(null), class: className, ...restProps }: Tabs.RootProps = $props();
6
+ // Rendered via the era-ui Tabs primitive; typed from bits-ui's public prop
7
+ // types (a portable, explicitly-named annotation — ComponentProps of the
8
+ // wrapper infers an unnameable type that breaks .d.ts emit).
9
+ let {
10
+ ref = $bindable(null),
11
+ class: className,
12
+ ...restProps
13
+ }: TabsPrimitive.RootProps = $props();
6
14
  </script>
7
15
 
8
- <!-- Tabs.Root laid out as a flex column so the handle (with the tab triggers)
9
- and the active panel stack and fill the pane. Wrap the handle + panels. -->
16
+ <!-- Composes the era-ui Tabs primitive, laid out as a flex column so the handle
17
+ (with the tab triggers) and the active panel stack and fill the pane. -->
10
18
  <Tabs.Root bind:ref class={cn('flex min-h-0 flex-1 flex-col', className)} {...restProps} />
@@ -1,4 +1,4 @@
1
- import { Tabs } from 'bits-ui';
2
- declare const PaneTabs: import("svelte").Component<Tabs.RootProps, {}, "ref">;
1
+ import type { Tabs as TabsPrimitive } from 'bits-ui';
2
+ declare const PaneTabs: import("svelte").Component<TabsPrimitive.RootProps, {}, "ref">;
3
3
  type PaneTabs = ReturnType<typeof PaneTabs>;
4
4
  export default PaneTabs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",