noph-ui 0.12.15 → 0.12.16
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/button/SegmentedButton.svelte +1 -1
- package/dist/navigation-drawer/NavigationDrawerItem.svelte +10 -4
- package/dist/navigation-rail/NavigationRailItem.svelte +2 -4
- package/dist/progress/CircularProgress.svelte +1 -3
- package/dist/progress/LinearProgress.svelte +1 -3
- package/package.json +8 -8
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
style="{attributes.style};grid-template-columns: repeat({options.length}, minmax(max-content, 1fr));"
|
|
22
22
|
>
|
|
23
23
|
{#each options as option, i}
|
|
24
|
-
<label class=
|
|
24
|
+
<label class={['np-segmented-button', option.icon && 'width-icon']}>
|
|
25
25
|
<div class="check-icon-wrapper">
|
|
26
26
|
<div class="check-icon">
|
|
27
27
|
<CheckIcon />
|
|
@@ -33,16 +33,22 @@
|
|
|
33
33
|
{#if isButton(attributes)}
|
|
34
34
|
<button
|
|
35
35
|
{...attributes as HTMLButtonAttributes}
|
|
36
|
-
class
|
|
37
|
-
|
|
36
|
+
class={[
|
|
37
|
+
'np-navigation-drawer-item',
|
|
38
|
+
selected && 'np-navigation-drawer-item-selected',
|
|
39
|
+
attributes.class,
|
|
40
|
+
]}
|
|
38
41
|
>
|
|
39
42
|
{@render content()}
|
|
40
43
|
</button>
|
|
41
44
|
{:else if isLink(attributes)}
|
|
42
45
|
<a
|
|
43
46
|
{...attributes}
|
|
44
|
-
class
|
|
45
|
-
|
|
47
|
+
class={[
|
|
48
|
+
'np-navigation-drawer-item',
|
|
49
|
+
selected && 'np-navigation-drawer-item-selected',
|
|
50
|
+
attributes.class,
|
|
51
|
+
]}
|
|
46
52
|
>
|
|
47
53
|
{@render content()}
|
|
48
54
|
</a>
|
|
@@ -26,16 +26,14 @@
|
|
|
26
26
|
{#if isButton(attributes)}
|
|
27
27
|
<button
|
|
28
28
|
{...attributes as HTMLButtonAttributes}
|
|
29
|
-
class
|
|
30
|
-
class="np-navigation-action {attributes.class}"
|
|
29
|
+
class={['np-navigation-action', selected && 'np-navigation-action-selected', attributes.class]}
|
|
31
30
|
>
|
|
32
31
|
{@render content()}
|
|
33
32
|
</button>
|
|
34
33
|
{:else if isLink(attributes)}
|
|
35
34
|
<a
|
|
36
35
|
{...attributes}
|
|
37
|
-
class
|
|
38
|
-
class="np-navigation-action {attributes.class}"
|
|
36
|
+
class={['np-navigation-action', selected && 'np-navigation-action-selected', attributes.class]}
|
|
39
37
|
>
|
|
40
38
|
{@render content()}
|
|
41
39
|
</a>
|
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
<div class="np-container" bind:this={element}>
|
|
17
17
|
<div
|
|
18
|
-
class:four-color={fourColor}
|
|
19
|
-
class:indeterminate
|
|
20
18
|
{...attributes}
|
|
21
|
-
class=
|
|
19
|
+
class={['progress', indeterminate && 'indeterminate', fourColor && 'four-color']}
|
|
22
20
|
role="progressbar"
|
|
23
21
|
aria-valuemin="0"
|
|
24
22
|
aria-valuemax={max}
|
|
@@ -25,10 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
<div class="np-container" bind:this={element}>
|
|
27
27
|
<div
|
|
28
|
-
class:four-color={fourColor}
|
|
29
|
-
class:indeterminate
|
|
30
28
|
{...attributes}
|
|
31
|
-
class=
|
|
29
|
+
class={['progress', indeterminate && 'indeterminate', fourColor && 'four-color']}
|
|
32
30
|
role="progressbar"
|
|
33
31
|
aria-valuemin="0"
|
|
34
32
|
aria-valuemax={max}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noph-ui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://noph.dev",
|
|
6
6
|
"repository": {
|
|
@@ -54,23 +54,23 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@material/material-color-utilities": "^0.3.0",
|
|
56
56
|
"@playwright/test": "^1.50.1",
|
|
57
|
-
"@sveltejs/adapter-vercel": "^5.6.
|
|
57
|
+
"@sveltejs/adapter-vercel": "^5.6.3",
|
|
58
58
|
"@sveltejs/kit": "^2.17.2",
|
|
59
59
|
"@sveltejs/package": "^2.3.10",
|
|
60
60
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
61
61
|
"@types/eslint": "^9.6.1",
|
|
62
|
-
"eslint": "^9.
|
|
62
|
+
"eslint": "^9.21.0",
|
|
63
63
|
"eslint-config-prettier": "^10.0.1",
|
|
64
64
|
"eslint-plugin-svelte": "^2.46.1",
|
|
65
|
-
"globals": "^
|
|
66
|
-
"prettier": "^3.5.
|
|
65
|
+
"globals": "^16.0.0",
|
|
66
|
+
"prettier": "^3.5.2",
|
|
67
67
|
"prettier-plugin-svelte": "^3.3.3",
|
|
68
|
-
"publint": "^0.3.
|
|
69
|
-
"svelte": "^5.20.
|
|
68
|
+
"publint": "^0.3.6",
|
|
69
|
+
"svelte": "^5.20.4",
|
|
70
70
|
"svelte-check": "^4.1.4",
|
|
71
71
|
"typescript": "^5.7.3",
|
|
72
72
|
"typescript-eslint": "^8.24.1",
|
|
73
|
-
"vite": "^6.1.
|
|
73
|
+
"vite": "^6.1.1",
|
|
74
74
|
"vitest": "^3.0.6"
|
|
75
75
|
},
|
|
76
76
|
"svelte": "./dist/index.js",
|