noph-ui 0.2.3 → 0.2.4

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.
@@ -266,7 +266,7 @@
266
266
  }
267
267
 
268
268
  :global(.np-button .button-icon) {
269
- --_icon-size: calc((var(--button-height) - 0.5rem) / 2);
269
+ --_icon-size: calc((var(--button-height) - 0.375rem) / 2);
270
270
  --_icon-color: inherit;
271
271
  }
272
272
 
@@ -275,7 +275,7 @@
275
275
  display: block;
276
276
  }
277
277
  :global(.np-button .button-icon svg) {
278
- width: calc((var(--button-height) - 0.5rem) / 2);
279
- height: calc((var(--button-height) - 0.5rem) / 2);
278
+ width: calc((var(--button-height) - 0.375rem) / 2);
279
+ height: calc((var(--button-height) - 0.375rem) / 2);
280
280
  }
281
281
  </style>
@@ -79,7 +79,7 @@
79
79
  : ''}{selectedState
80
80
  ? (variant === 'outlined' || variant === 'text') && !toggle
81
81
  ? ''
82
- : 'selected'
82
+ : ' selected'
83
83
  : ''} {attributes.class}"
84
84
  >
85
85
  {@render content()}
@@ -93,7 +93,7 @@
93
93
  class="np-icon-button enabled {variant} {selectedState
94
94
  ? (variant === 'outlined' || variant === 'text') && !toggle
95
95
  ? ''
96
- : 'selected'
96
+ : ' selected'
97
97
  : ''} {attributes.class}"
98
98
  >
99
99
  {@render content()}
@@ -2,41 +2,43 @@
2
2
  let { children } = $props()
3
3
  </script>
4
4
 
5
- <span class="material-symbols-outlined">{@render children()}</span>
5
+ <svelte:head>
6
+ <style>
7
+ .material-symbols-outlined {
8
+ font-family: 'Material Symbols Outlined';
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ font-size: 24px;
12
+ line-height: 1;
13
+ letter-spacing: normal;
14
+ text-transform: none;
15
+ display: inline-block;
16
+ white-space: nowrap;
17
+ word-wrap: normal;
18
+ direction: ltr;
19
+ font-feature-settings: 'liga';
20
+ -webkit-font-feature-settings: 'liga';
21
+ -webkit-font-smoothing: antialiased;
22
+ }
23
+ .material-symbols-outlined {
24
+ font-variation-settings:
25
+ 'FILL' 0,
26
+ 'wght' 400,
27
+ 'GRAD' 0,
28
+ 'opsz' 24;
29
+ }
30
+ :where(.button-icon) .material-symbols-outlined {
31
+ display: inline-flex;
32
+ fill: currentColor;
33
+ color: var(--_icon-color);
34
+ font-size: var(--_icon-size);
35
+ inline-size: var(--_icon-size);
36
+ block-size: var(--_icon-size);
37
+ flex-shrink: 0;
38
+ writing-mode: horizontal-tb;
39
+ position: relative;
40
+ }
41
+ </style>
42
+ </svelte:head>
6
43
 
7
- <style>
8
- :global(.material-symbols-outlined) {
9
- font-family: 'Material Symbols Outlined';
10
- font-weight: normal;
11
- font-style: normal;
12
- font-size: 24px;
13
- line-height: 1;
14
- letter-spacing: normal;
15
- text-transform: none;
16
- display: inline-block;
17
- white-space: nowrap;
18
- word-wrap: normal;
19
- direction: ltr;
20
- font-feature-settings: 'liga';
21
- -webkit-font-feature-settings: 'liga';
22
- -webkit-font-smoothing: antialiased;
23
- }
24
- .material-symbols-outlined {
25
- font-variation-settings:
26
- 'FILL' 0,
27
- 'wght' 400,
28
- 'GRAD' 0,
29
- 'opsz' 24;
30
- }
31
- :global(:where(.button-icon) .material-symbols-outlined) {
32
- display: inline-flex;
33
- fill: currentColor;
34
- color: var(--_icon-color);
35
- font-size: var(--_icon-size);
36
- inline-size: var(--_icon-size);
37
- block-size: var(--_icon-size);
38
- flex-shrink: 0;
39
- writing-mode: horizontal-tb;
40
- position: relative;
41
- }
42
- </style>
44
+ <span class="material-symbols-outlined">{@render children()}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {
@@ -64,20 +64,20 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@material/material-color-utilities": "^0.3.0",
67
- "@playwright/test": "^1.49.0",
68
- "@sveltejs/adapter-vercel": "^5.5.1",
69
- "@sveltejs/kit": "^2.9.1",
67
+ "@playwright/test": "^1.49.1",
68
+ "@sveltejs/adapter-vercel": "^5.5.2",
69
+ "@sveltejs/kit": "^2.11.1",
70
70
  "@sveltejs/package": "^2.3.7",
71
- "@sveltejs/vite-plugin-svelte": "^5.0.1",
71
+ "@sveltejs/vite-plugin-svelte": "^5.0.2",
72
72
  "@types/eslint": "^9.6.1",
73
- "eslint": "^9.16.0",
73
+ "eslint": "^9.17.0",
74
74
  "eslint-config-prettier": "^9.1.0",
75
75
  "eslint-plugin-svelte": "^2.46.1",
76
76
  "globals": "^15.13.0",
77
77
  "prettier": "^3.4.2",
78
78
  "prettier-plugin-svelte": "^3.3.2",
79
79
  "publint": "^0.2.12",
80
- "svelte": "^5.10.0",
80
+ "svelte": "^5.14.0",
81
81
  "svelte-check": "^4.1.1",
82
82
  "typescript": "^5.7.2",
83
83
  "typescript-eslint": "^8.18.0",