@spectral_labs/ui 1.1.0 → 1.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.
- package/dist/components/app-bar/app-bar.svelte +19 -0
- package/dist/components/tree/__tests__/TreeLabelContentTest.svelte +21 -0
- package/dist/components/tree/__tests__/tree.test.svelte.js +30 -0
- package/dist/components/tree/components/tree-item.svelte +37 -4
- package/dist/components/tree/components/tree-item.svelte.d.ts.map +1 -1
- package/dist/components/tree/components/tree-root.svelte +15 -5
- package/dist/components/tree/components/tree-root.svelte.d.ts.map +1 -1
- package/dist/components/tree/index.d.ts +1 -1
- package/dist/components/tree/index.d.ts.map +1 -1
- package/dist/components/tree/tree.svelte.d.ts.map +1 -1
- package/dist/components/tree/tree.svelte.js +9 -3
- package/dist/components/tree/types.d.ts +21 -0
- package/dist/components/tree/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -83,6 +83,25 @@
|
|
|
83
83
|
flex-shrink: 0;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Push the trailing slot to the far right of `.sp-app-bar-row`. In small
|
|
88
|
+
* mode the row layout is `leading | title | children | trailing` ; only
|
|
89
|
+
* `.sp-app-bar-title` (when present) carries `flex: 1` to push trailing
|
|
90
|
+
* right. When the consumer renders the brand inside the `leading`
|
|
91
|
+
* snippet and omits `title` (e.g. to keep a clickable brand link), the
|
|
92
|
+
* trailing collapsed against the leading. `margin-left: auto` makes the
|
|
93
|
+
* trailing universally right-aligned without changing the title spacer
|
|
94
|
+
* logic — neutral when title is present (title already absorbs the row
|
|
95
|
+
* flex), corrective when title is absent.
|
|
96
|
+
*
|
|
97
|
+
* Medium/large modes use `.sp-app-bar-spacer` as the explicit flex
|
|
98
|
+
* spacer, so trailing is already right-aligned there. We scope this
|
|
99
|
+
* fix to `.small` only to avoid surprise.
|
|
100
|
+
*/
|
|
101
|
+
.sp-app-bar.small .sp-app-bar-trailing {
|
|
102
|
+
margin-left: auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
86
105
|
.sp-app-bar-headline {
|
|
87
106
|
padding: 0 1rem 1.5rem;
|
|
88
107
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script lang='ts'>
|
|
2
|
+
import * as Tree from '../index.js'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
Test fixture for the `labelContent` snippet on Tree.Item. Renders a
|
|
7
|
+
custom HTML structure (icon stand-in + text span) in place of the
|
|
8
|
+
built-in plain-text label, so the test can assert that the snippet
|
|
9
|
+
output reaches the DOM exactly where the `label` string used to.
|
|
10
|
+
-->
|
|
11
|
+
<Tree.Root selectionMode='single' aria-label='Label-content tree'>
|
|
12
|
+
<Tree.Item id='lib' hasChildren textValue='My Library'>
|
|
13
|
+
{#snippet labelContent()}
|
|
14
|
+
<svg data-testid='lib-icon' aria-hidden='true' width='16' height='16' viewBox='0 0 24 24'>
|
|
15
|
+
<path d='M3 21h18M5 21V7l7-4 7 4v14' />
|
|
16
|
+
</svg>
|
|
17
|
+
<span data-testid='lib-label'>My Library</span>
|
|
18
|
+
{/snippet}
|
|
19
|
+
<Tree.Item id='col-1' label='Design' />
|
|
20
|
+
</Tree.Item>
|
|
21
|
+
</Tree.Root>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { flushSync, mount, unmount } from 'svelte';
|
|
2
2
|
import { afterEach, describe, expect, it } from 'vitest';
|
|
3
|
+
import TreeLabelContentTest from './TreeLabelContentTest.svelte';
|
|
3
4
|
import TreeTest from './TreeTest.svelte';
|
|
4
5
|
describe('tree', () => {
|
|
5
6
|
let target;
|
|
@@ -196,4 +197,33 @@ describe('tree', () => {
|
|
|
196
197
|
flushSync();
|
|
197
198
|
expect(target.querySelector('[data-tree-item="root-b"][data-selected]')).toBeNull();
|
|
198
199
|
});
|
|
200
|
+
describe('labelContent snippet', () => {
|
|
201
|
+
let snippetTarget;
|
|
202
|
+
let snippetInstance;
|
|
203
|
+
function setupSnippet() {
|
|
204
|
+
snippetTarget = document.createElement('div');
|
|
205
|
+
document.body.appendChild(snippetTarget);
|
|
206
|
+
snippetInstance = mount(TreeLabelContentTest, { target: snippetTarget });
|
|
207
|
+
flushSync();
|
|
208
|
+
}
|
|
209
|
+
afterEach(() => {
|
|
210
|
+
if (snippetInstance)
|
|
211
|
+
unmount(snippetInstance);
|
|
212
|
+
snippetInstance = undefined;
|
|
213
|
+
snippetTarget?.remove();
|
|
214
|
+
});
|
|
215
|
+
it('renders the labelContent snippet inside .sp-tree-item-content', () => {
|
|
216
|
+
setupSnippet();
|
|
217
|
+
const item = snippetTarget.querySelector('[data-tree-item="lib"]');
|
|
218
|
+
const content = item?.querySelector('.sp-tree-item-content');
|
|
219
|
+
expect(content).toBeTruthy();
|
|
220
|
+
// The custom snippet's children land inside the content slot —
|
|
221
|
+
// both the icon and the named label span are reachable.
|
|
222
|
+
expect(content?.querySelector('[data-testid="lib-icon"]')).toBeTruthy();
|
|
223
|
+
expect(content?.querySelector('[data-testid="lib-label"]')?.textContent).toBe('My Library');
|
|
224
|
+
// The plain-text label fallback path is bypassed when the snippet
|
|
225
|
+
// is provided — the content slot has no stray text-only child.
|
|
226
|
+
expect(content?.textContent?.trim()).toBe('My Library');
|
|
227
|
+
});
|
|
228
|
+
});
|
|
199
229
|
});
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
const {
|
|
7
7
|
id,
|
|
8
8
|
label,
|
|
9
|
+
labelContent,
|
|
9
10
|
textValue,
|
|
10
11
|
hasChildren = false,
|
|
11
12
|
disabled = false,
|
|
@@ -81,7 +82,15 @@
|
|
|
81
82
|
aria-hidden='true'
|
|
82
83
|
onclick={onChevronClick}
|
|
83
84
|
>
|
|
84
|
-
<svg
|
|
85
|
+
<svg
|
|
86
|
+
viewBox='0 0 24 24'
|
|
87
|
+
fill='none'
|
|
88
|
+
stroke='currentColor'
|
|
89
|
+
stroke-width='2'
|
|
90
|
+
stroke-linecap='round'
|
|
91
|
+
stroke-linejoin='round'
|
|
92
|
+
aria-hidden='true'
|
|
93
|
+
>
|
|
85
94
|
<polyline points='9 18 15 12 9 6'></polyline>
|
|
86
95
|
</svg>
|
|
87
96
|
</button>
|
|
@@ -89,7 +98,11 @@
|
|
|
89
98
|
<span class='sp-tree-item-spacer'></span>
|
|
90
99
|
{/if}
|
|
91
100
|
<span class='sp-tree-item-content'>
|
|
92
|
-
{
|
|
101
|
+
{#if labelContent}
|
|
102
|
+
{@render labelContent()}
|
|
103
|
+
{:else}
|
|
104
|
+
{label ?? ''}
|
|
105
|
+
{/if}
|
|
93
106
|
</span>
|
|
94
107
|
</div>
|
|
95
108
|
{#if hasChildren && isExpanded}
|
|
@@ -133,7 +146,11 @@
|
|
|
133
146
|
}
|
|
134
147
|
|
|
135
148
|
.sp-tree-item[data-selected] > .sp-tree-item-row:hover {
|
|
136
|
-
background: color-mix(
|
|
149
|
+
background: color-mix(
|
|
150
|
+
in oklch,
|
|
151
|
+
var(--sp-sys-color-primary) 90%,
|
|
152
|
+
var(--sp-sys-color-on-primary)
|
|
153
|
+
);
|
|
137
154
|
}
|
|
138
155
|
|
|
139
156
|
.sp-tree-item:focus-visible > .sp-tree-item-row {
|
|
@@ -169,7 +186,8 @@
|
|
|
169
186
|
color: inherit;
|
|
170
187
|
cursor: pointer;
|
|
171
188
|
flex-shrink: 0;
|
|
172
|
-
transition: rotate var(--sp-sys-motion-duration-short2, 100ms)
|
|
189
|
+
transition: rotate var(--sp-sys-motion-duration-short2, 100ms)
|
|
190
|
+
var(--sp-sys-motion-easing-standard, ease);
|
|
173
191
|
}
|
|
174
192
|
|
|
175
193
|
.sp-tree-item-chevron svg {
|
|
@@ -186,14 +204,29 @@
|
|
|
186
204
|
flex-shrink: 0;
|
|
187
205
|
}
|
|
188
206
|
|
|
207
|
+
/* Row content slot. Inline-flex (with gap) makes the `labelContent`
|
|
208
|
+
snippet usage natural — `<Icon/><span>label</span>` aligns out of the
|
|
209
|
+
box. For the plain-text `label` case the inline-flex container is
|
|
210
|
+
idempotent (a single inline child renders identically to a `display:
|
|
211
|
+
inline` parent). The ellipsis is scoped to the inner text via the
|
|
212
|
+
child rule below so an icon + text combo still truncates cleanly. */
|
|
189
213
|
.sp-tree-item-content {
|
|
190
214
|
flex: 1;
|
|
191
215
|
min-width: 0;
|
|
216
|
+
display: inline-flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 0.5rem;
|
|
192
219
|
white-space: nowrap;
|
|
193
220
|
overflow: hidden;
|
|
194
221
|
text-overflow: ellipsis;
|
|
195
222
|
}
|
|
196
223
|
|
|
224
|
+
.sp-tree-item-content > :global(span) {
|
|
225
|
+
min-width: 0;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
}
|
|
229
|
+
|
|
197
230
|
.sp-tree-item-children {
|
|
198
231
|
/* Children are nested inside the item */
|
|
199
232
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/tree/components/tree-item.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"tree-item.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/tree/components/tree-item.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAyFhD,QAAA,MAAM,QAAQ,mDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -16,9 +16,15 @@
|
|
|
16
16
|
}: TreeProps = $props()
|
|
17
17
|
|
|
18
18
|
const { context } = createTree({
|
|
19
|
-
get selectionMode() {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
get selectionMode() {
|
|
20
|
+
return selectionMode
|
|
21
|
+
},
|
|
22
|
+
get selectedKeys() {
|
|
23
|
+
return selectedKeys
|
|
24
|
+
},
|
|
25
|
+
get expandedKeys() {
|
|
26
|
+
return expandedKeys
|
|
27
|
+
},
|
|
22
28
|
onSelectionChange: (keys) => {
|
|
23
29
|
selectedKeys = keys
|
|
24
30
|
onSelectionChange?.(keys)
|
|
@@ -27,8 +33,12 @@
|
|
|
27
33
|
expandedKeys = keys
|
|
28
34
|
onExpandedChange?.(keys)
|
|
29
35
|
},
|
|
30
|
-
get disabled() {
|
|
31
|
-
|
|
36
|
+
get disabled() {
|
|
37
|
+
return disabled
|
|
38
|
+
},
|
|
39
|
+
get direction() {
|
|
40
|
+
return direction
|
|
41
|
+
},
|
|
32
42
|
})
|
|
33
43
|
|
|
34
44
|
setTreeContext(context)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/tree/components/tree-root.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"tree-root.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/tree/components/tree-root.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAyD5C,QAAA,MAAM,QAAQ,4GAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Item } from './components/tree-item.svelte';
|
|
2
2
|
export { default as Root } from './components/tree-root.svelte';
|
|
3
|
-
export type { TreeItemProps, TreeNode, TreeProps
|
|
3
|
+
export type { TreeItemProps, TreeNode, TreeProps } from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAC/D,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAC/D,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tree/tree.svelte.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,WAAW;IAC1B,sBAAsB;IACtB,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC7C,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAA;IACjB,sBAAsB;IACtB,SAAS,EAAE,KAAK,GAAG,KAAK,CAAA;IACxB,mCAAmC;IACnC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACnC,yCAAyC;IACzC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,mCAAmC;IACnC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACnC,mCAAmC;IACnC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5E,gDAAgD;IAChD,YAAY,EAAE,CAA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,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAC9C,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,KAAK,GAAG,KAAK,CAAA;CACzB;AAQD,wBAAgB,UAAU,CAAC,IAAI,EAAE,iBAAiB;;EAqNjD"}
|
|
@@ -178,9 +178,15 @@ export function createTree(opts) {
|
|
|
178
178
|
}
|
|
179
179
|
// ── Context ──────────────────────────────────────────────────────────
|
|
180
180
|
const context = {
|
|
181
|
-
get selectionMode() {
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
get selectionMode() {
|
|
182
|
+
return opts.selectionMode;
|
|
183
|
+
},
|
|
184
|
+
get disabled() {
|
|
185
|
+
return opts.disabled;
|
|
186
|
+
},
|
|
187
|
+
get direction() {
|
|
188
|
+
return opts.direction;
|
|
189
|
+
},
|
|
184
190
|
isExpanded,
|
|
185
191
|
toggleExpanded,
|
|
186
192
|
isSelected,
|
|
@@ -30,6 +30,27 @@ export interface TreeItemProps {
|
|
|
30
30
|
id: string;
|
|
31
31
|
/** Display label for the item row. */
|
|
32
32
|
label?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional snippet that overrides the plain-text `label` for the row
|
|
35
|
+
* content. Use when the row needs more than text — for example a leading
|
|
36
|
+
* icon, a trailing badge, or a multi-segment label.
|
|
37
|
+
*
|
|
38
|
+
* When provided, the snippet is rendered inside `.sp-tree-item-content`
|
|
39
|
+
* (which is flex-styled) so a typical pattern is
|
|
40
|
+
* `<Icon/> <span>label text</span>` :
|
|
41
|
+
*
|
|
42
|
+
* <Tree.Item id="lib" hasChildren>
|
|
43
|
+
* {#snippet labelContent()}
|
|
44
|
+
* <Library size={16} />
|
|
45
|
+
* <span>My Library</span>
|
|
46
|
+
* {/snippet}
|
|
47
|
+
* ...children
|
|
48
|
+
* </Tree.Item>
|
|
49
|
+
*
|
|
50
|
+
* `textValue` should still be set (or `label` left in place as a
|
|
51
|
+
* fallback) so typeahead and accessibility have a string to work with.
|
|
52
|
+
*/
|
|
53
|
+
labelContent?: Snippet;
|
|
33
54
|
/** Text value for typeahead and accessibility (defaults to label). */
|
|
34
55
|
textValue?: string;
|
|
35
56
|
/** Whether this item has children (shows expand chevron). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAIrC,MAAM,WAAW,QAAQ;IACvB,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAID,MAAM,WAAW,SAAS,CAAC,EAAE,SAAS,QAAQ,GAAG,QAAQ;IACvD,sBAAsB;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;IAChD,yCAAyC;IACzC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5B,yCAAyC;IACzC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5B,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IACjD,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAChD,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,sBAAsB;IACtB,WAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IAC3B,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAID,MAAM,WAAW,aAAa;IAC5B,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAA;I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