noph-ui 0.12.17 → 0.13.0
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.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
bind:this={element}
|
|
21
21
|
style="{attributes.style};grid-template-columns: repeat({options.length}, minmax(max-content, 1fr));"
|
|
22
22
|
>
|
|
23
|
-
{#each options as option, i}
|
|
23
|
+
{#each options as option, i (i)}
|
|
24
24
|
<label class={['np-segmented-button', option.icon && 'width-icon']}>
|
|
25
25
|
<div class="check-icon-wrapper">
|
|
26
26
|
<div class="check-icon">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
icon,
|
|
15
15
|
element = $bindable(),
|
|
16
16
|
ariaLabelRemove = 'Remove',
|
|
17
|
-
|
|
17
|
+
onremove,
|
|
18
18
|
name,
|
|
19
19
|
value,
|
|
20
20
|
group = $bindable(),
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
{#if removable}
|
|
86
86
|
<IconButton
|
|
87
87
|
{disabled}
|
|
88
|
+
type="button"
|
|
88
89
|
--np-icon-button-container-height="1.75rem"
|
|
89
90
|
--np-icon-button-container-width="1.75rem"
|
|
90
91
|
--np-icon-button-icon-size="1.125rem"
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
if (element === undefined) {
|
|
94
95
|
return
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
onremove?.(element)
|
|
97
98
|
}}
|
|
98
99
|
>
|
|
99
100
|
<CloseIcon />
|
package/dist/chip/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
supportingText = '',
|
|
14
14
|
tabindex = 0,
|
|
15
15
|
start,
|
|
16
|
+
end,
|
|
16
17
|
label,
|
|
17
18
|
style,
|
|
18
19
|
noAsterisk = false,
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
bind:value
|
|
176
177
|
bind:this={selectElement}
|
|
177
178
|
>
|
|
178
|
-
{#each options as option}
|
|
179
|
+
{#each options as option, index (index)}
|
|
179
180
|
<option value={option.value} selected={option.selected}>{option.label}</option>
|
|
180
181
|
{/each}
|
|
181
182
|
</select>
|
|
@@ -188,7 +189,11 @@
|
|
|
188
189
|
</div>
|
|
189
190
|
<div class="end">
|
|
190
191
|
<span class="icon trailing">
|
|
191
|
-
{
|
|
192
|
+
{#if end}
|
|
193
|
+
{@render end()}
|
|
194
|
+
{:else}
|
|
195
|
+
{@render arrows()}
|
|
196
|
+
{/if}
|
|
192
197
|
</span>
|
|
193
198
|
</div>
|
|
194
199
|
</div>
|
|
@@ -223,7 +228,7 @@
|
|
|
223
228
|
}}
|
|
224
229
|
bind:element={menuElement}
|
|
225
230
|
>
|
|
226
|
-
{#each options as option}
|
|
231
|
+
{#each options as option, index (index)}
|
|
227
232
|
<Item
|
|
228
233
|
onclick={(event) => {
|
|
229
234
|
value = option.value
|
package/dist/select/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noph-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://noph.dev",
|
|
6
6
|
"repository": {
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@material/material-color-utilities": "^0.3.0",
|
|
56
56
|
"@playwright/test": "^1.50.1",
|
|
57
57
|
"@sveltejs/adapter-vercel": "^5.6.3",
|
|
58
|
-
"@sveltejs/kit": "^2.17.
|
|
58
|
+
"@sveltejs/kit": "^2.17.3",
|
|
59
59
|
"@sveltejs/package": "^2.3.10",
|
|
60
60
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
61
61
|
"@types/eslint": "^9.6.1",
|
|
62
62
|
"eslint": "^9.21.0",
|
|
63
63
|
"eslint-config-prettier": "^10.0.1",
|
|
64
|
-
"eslint-plugin-svelte": "^
|
|
64
|
+
"eslint-plugin-svelte": "^3.0.0",
|
|
65
65
|
"globals": "^16.0.0",
|
|
66
66
|
"prettier": "^3.5.2",
|
|
67
67
|
"prettier-plugin-svelte": "^3.3.3",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"svelte": "^5.20.4",
|
|
70
70
|
"svelte-check": "^4.1.4",
|
|
71
71
|
"typescript": "^5.7.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
73
|
-
"vite": "^6.
|
|
74
|
-
"vitest": "^3.0.
|
|
72
|
+
"typescript-eslint": "^8.25.0",
|
|
73
|
+
"vite": "^6.2.0",
|
|
74
|
+
"vitest": "^3.0.7"
|
|
75
75
|
},
|
|
76
76
|
"svelte": "./dist/index.js",
|
|
77
77
|
"types": "./dist/index.d.ts",
|