@stnd/ui 0.7.1 → 0.7.3
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/CHANGELOG.md +12 -0
- package/Combobox.svelte +13 -8
- package/TableOfContents.astro +12 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Combobox.svelte
CHANGED
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
{#each filteredOptions as opt (opt.value)}
|
|
292
292
|
<button
|
|
293
293
|
type="button"
|
|
294
|
-
class="std-
|
|
294
|
+
class="std-combobox-option"
|
|
295
295
|
class:selected={value === opt.value}
|
|
296
296
|
role="option"
|
|
297
297
|
aria-selected={value === opt.value}
|
|
@@ -340,11 +340,11 @@
|
|
|
340
340
|
align-items: center;
|
|
341
341
|
justify-content: space-between;
|
|
342
342
|
width: 100%;
|
|
343
|
-
padding: var(--trim) var(--
|
|
343
|
+
padding: calc(var(--trim) * 0.5) var(--trim);
|
|
344
344
|
background: var(--color-surface-dark-1);
|
|
345
345
|
font-weight: var(--font-weight);
|
|
346
|
-
|
|
347
|
-
text-box-trim:
|
|
346
|
+
|
|
347
|
+
text-box-trim: trim;
|
|
348
348
|
|
|
349
349
|
border: none;
|
|
350
350
|
border-radius: var(--radius-sm);
|
|
@@ -355,6 +355,8 @@
|
|
|
355
355
|
transition: all var(--transition-fast);
|
|
356
356
|
box-shadow: var(--shadow);
|
|
357
357
|
text-shadow: none !important;
|
|
358
|
+
|
|
359
|
+
& * {display: inline-flex;}
|
|
358
360
|
}
|
|
359
361
|
|
|
360
362
|
.std-combobox-trigger:hover,
|
|
@@ -382,14 +384,14 @@
|
|
|
382
384
|
min-width: 100%;
|
|
383
385
|
width: max-content;
|
|
384
386
|
max-width: 300px;
|
|
385
|
-
overflow:
|
|
387
|
+
overflow-y: auto;
|
|
386
388
|
background: var(--color-surface-light-2);
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
.std-combobox-header {
|
|
390
392
|
display: flex;
|
|
391
393
|
align-items: center;
|
|
392
|
-
padding: 0 var(--
|
|
394
|
+
padding: 0 var(--trim);
|
|
393
395
|
margin-bottom: var(--space-d4);
|
|
394
396
|
border-bottom: var(--border);
|
|
395
397
|
}
|
|
@@ -418,15 +420,18 @@
|
|
|
418
420
|
|
|
419
421
|
display: flex;
|
|
420
422
|
flex-direction: column;
|
|
421
|
-
gap:
|
|
423
|
+
gap: var(--trim);
|
|
422
424
|
overflow-y: auto;
|
|
425
|
+
padding: var(--trim);
|
|
423
426
|
}
|
|
424
427
|
|
|
425
428
|
.std-combobox-option {
|
|
426
429
|
display: flex;
|
|
427
430
|
align-items: center;
|
|
428
431
|
justify-content: space-between;
|
|
429
|
-
width: 100
|
|
432
|
+
width: 100;
|
|
433
|
+
padding: var(--leading) var(--trim);
|
|
434
|
+
& * {display:inline-flex;}
|
|
430
435
|
}
|
|
431
436
|
|
|
432
437
|
.std-combobox-option .truncate {
|
package/TableOfContents.astro
CHANGED
|
@@ -104,12 +104,12 @@ const tocHeadings = (headings || [])
|
|
|
104
104
|
border: 1px solid transparent;
|
|
105
105
|
opacity: 0.45;
|
|
106
106
|
transition:
|
|
107
|
-
opacity
|
|
108
|
-
background
|
|
109
|
-
border-color
|
|
110
|
-
box-shadow
|
|
111
|
-
backdrop-filter
|
|
112
|
-
padding
|
|
107
|
+
opacity var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1),
|
|
108
|
+
background var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1),
|
|
109
|
+
border-color var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1),
|
|
110
|
+
box-shadow var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1),
|
|
111
|
+
backdrop-filter var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1),
|
|
112
|
+
padding var(--duration-fast) cubic-bezier(0.16, 1, 0.3, 1);
|
|
113
113
|
user-select: none;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -121,13 +121,8 @@ const tocHeadings = (headings || [])
|
|
|
121
121
|
.stnd-toc:hover,
|
|
122
122
|
.stnd-toc:focus-within {
|
|
123
123
|
opacity: 1;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var(--color-surface-light-1, var(--color-background)) 92%,
|
|
127
|
-
transparent
|
|
128
|
-
);
|
|
129
|
-
backdrop-filter: var(--filter-glass, blur(20px)) saturate(160%);
|
|
130
|
-
-webkit-backdrop-filter: var(--filter-glass, blur(20px)) saturate(160%);
|
|
124
|
+
backdrop-filter: var(--filter-glass);
|
|
125
|
+
-webkit-backdrop-filter: var(--filter-glass);
|
|
131
126
|
border-color: var(--color-border);
|
|
132
127
|
box-shadow: var(--shadow-xl, var(--shadow-raised));
|
|
133
128
|
padding: 0.75rem 1rem 0.85rem 1.25rem;
|
|
@@ -135,6 +130,7 @@ const tocHeadings = (headings || [])
|
|
|
135
130
|
|
|
136
131
|
/* Architectural vertical spine guide */
|
|
137
132
|
.toc-spine {
|
|
133
|
+
display: none;
|
|
138
134
|
position: absolute;
|
|
139
135
|
right: 14px;
|
|
140
136
|
top: 0.75rem;
|
|
@@ -195,7 +191,7 @@ const tocHeadings = (headings || [])
|
|
|
195
191
|
.toc-list {
|
|
196
192
|
display: flex;
|
|
197
193
|
flex-direction: column;
|
|
198
|
-
gap:
|
|
194
|
+
gap: 0;
|
|
199
195
|
position: relative;
|
|
200
196
|
z-index: 2;
|
|
201
197
|
max-height: calc(75vh - 2rem);
|
|
@@ -218,9 +214,9 @@ const tocHeadings = (headings || [])
|
|
|
218
214
|
display: flex;
|
|
219
215
|
align-items: center;
|
|
220
216
|
justify-content: flex-end;
|
|
221
|
-
gap:
|
|
217
|
+
gap: 6px;
|
|
222
218
|
text-decoration: none;
|
|
223
|
-
padding: 3px
|
|
219
|
+
padding: 3px 0px 3px 6px;
|
|
224
220
|
border-radius: var(--radius-sm, 4px);
|
|
225
221
|
cursor: pointer;
|
|
226
222
|
transition: background 0.15s ease;
|