@stnd/ui 0.7.0 → 0.7.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/CHANGELOG.md +14 -0
- package/Combobox.svelte +17 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @stnd/ui
|
|
2
2
|
|
|
3
|
+
## 0.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Auto-bumped @stnd/ui due to modified code.
|
|
8
|
+
|
|
9
|
+
## 0.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Auto-bumped @stnd/ui due to modified code.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @stnd/icon@0.3.1
|
|
16
|
+
|
|
3
17
|
## 0.7.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
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,14 +340,14 @@
|
|
|
340
340
|
align-items: center;
|
|
341
341
|
justify-content: space-between;
|
|
342
342
|
width: 100%;
|
|
343
|
-
padding: var(--
|
|
344
|
-
background: var(--color-surface-
|
|
343
|
+
padding: calc(var(--trim) * 0.5) var(--trim);
|
|
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
|
-
border-radius: var(--radius);
|
|
350
|
+
border-radius: var(--radius-sm);
|
|
351
351
|
color: var(--color-muted);
|
|
352
352
|
cursor: pointer;
|
|
353
353
|
text-align: left;
|
|
@@ -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 {
|
|
@@ -447,7 +452,8 @@
|
|
|
447
452
|
}
|
|
448
453
|
|
|
449
454
|
.icon {
|
|
450
|
-
opacity:
|
|
455
|
+
opacity: 1;
|
|
456
|
+
color:var(--color-subtle);
|
|
451
457
|
flex-shrink: 0;
|
|
452
458
|
}
|
|
453
459
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stnd/ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./Combobox.svelte",
|
|
6
6
|
"exports": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"wrangler": "^4.129.0",
|
|
33
|
-
"@stnd/icon": "0.3.
|
|
33
|
+
"@stnd/icon": "0.3.1",
|
|
34
34
|
"@stnd/store": "0.5.1",
|
|
35
35
|
"@stnd/utils": "0.6.1"
|
|
36
36
|
},
|