@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.
- package/dist/ui/pane/pane-tab-list.svelte +7 -2
- package/dist/ui/pane/pane-tab-list.svelte.d.ts +2 -2
- package/dist/ui/pane/pane-tab-panel.svelte +10 -4
- package/dist/ui/pane/pane-tab-panel.svelte.d.ts +2 -2
- package/dist/ui/pane/pane-tab.svelte +10 -5
- package/dist/ui/pane/pane-tab.svelte.d.ts +2 -2
- package/dist/ui/pane/pane-tabs.svelte +12 -4
- package/dist/ui/pane/pane-tabs.svelte.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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 {
|
|
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<
|
|
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 {
|
|
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
|
|
9
|
-
runs out of room — the resizable counterpart to
|
|
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<
|
|
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 {
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(null),
|
|
8
|
+
class: className,
|
|
9
|
+
...restProps
|
|
10
|
+
}: TabsPrimitive.TriggerProps = $props();
|
|
6
11
|
</script>
|
|
7
12
|
|
|
8
|
-
<!-- A tab trigger
|
|
9
|
-
|
|
10
|
-
|
|
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<
|
|
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
|
-
|
|
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
|
|
9
|
-
and the active panel stack and fill the pane.
|
|
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<
|
|
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;
|