noph-ui 0.33.3 → 0.33.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.
@@ -9,46 +9,42 @@
9
9
  let { children, element = $bindable(), ...attributes }: IconProps = $props()
10
10
  </script>
11
11
 
12
- <svelte:head>
13
- <style>
14
- .np-icon {
15
- font-family: 'Material Symbols Outlined';
16
- font-weight: normal;
17
- font-style: normal;
18
- font-size: var(--np-icon-size, var(--_icon-size, 1.5rem));
19
- line-height: 1;
20
- letter-spacing: normal;
21
- text-transform: none;
22
- display: inline-block;
23
- white-space: nowrap;
24
- word-wrap: normal;
25
- direction: ltr;
26
- font-feature-settings: 'liga';
27
- -webkit-font-feature-settings: 'liga';
28
- -webkit-font-smoothing: antialiased;
29
- }
30
- .np-icon {
31
- transition-property: font-variation-settings;
32
- transition-timing-function: ease-in;
33
- transition: font-variation-settings 0.3s;
34
- font-variation-settings: var(--np-icon-settings, 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24);
35
- }
36
- :where(.button-icon) .np-icon {
37
- display: inline-flex;
38
- fill: currentColor;
39
- color: var(--_icon-color);
40
- inline-size: var(--np-icon-size, var(--_icon-size));
41
- block-size: var(--np-icon-size, var(--_icon-size));
42
- flex-shrink: 0;
43
- writing-mode: horizontal-tb;
44
- position: relative;
45
- }
46
- </style>
47
- </svelte:head>
48
-
49
12
  <span
50
13
  aria-hidden="true"
51
14
  {...attributes}
52
15
  class={['np-icon', 'notranslate', attributes.class]}
53
16
  bind:this={element}>{@render children()}</span
54
17
  >
18
+
19
+ <style>
20
+ :global(.np-icon) {
21
+ font-family: 'Material Symbols Outlined';
22
+ font-weight: normal;
23
+ font-style: normal;
24
+ font-size: var(--np-icon-size, var(--_icon-size, 1.5rem));
25
+ line-height: 1;
26
+ letter-spacing: normal;
27
+ text-transform: none;
28
+ display: inline-block;
29
+ white-space: nowrap;
30
+ word-wrap: normal;
31
+ direction: ltr;
32
+ font-feature-settings: 'liga';
33
+ -webkit-font-feature-settings: 'liga';
34
+ -webkit-font-smoothing: antialiased;
35
+ transition-property: font-variation-settings;
36
+ transition-timing-function: ease-in;
37
+ transition: font-variation-settings 0.3s;
38
+ font-variation-settings: var(--np-icon-settings, 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24);
39
+ }
40
+ :global(:where(.button-icon) .np-icon) {
41
+ display: inline-flex;
42
+ fill: currentColor;
43
+ color: var(--_icon-color);
44
+ inline-size: var(--np-icon-size, var(--_icon-size));
45
+ block-size: var(--np-icon-size, var(--_icon-size));
46
+ flex-shrink: 0;
47
+ writing-mode: horizontal-tb;
48
+ position: relative;
49
+ }
50
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {