noph-ui 0.21.0 → 0.21.1

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.
@@ -97,7 +97,15 @@
97
97
  aria-describedby={title ? uid : attributes['aria-describedby']}
98
98
  aria-label={title || attributes['aria-label']}
99
99
  bind:this={element}
100
- class={['np-button', size, selected ? 'square' : 'round', 'enabled', variant, attributes.class]}
100
+ class={[
101
+ 'np-button',
102
+ size,
103
+ selected ? 'square' : 'round',
104
+ toggle ? 'toggle' : '',
105
+ 'enabled',
106
+ variant,
107
+ attributes.class,
108
+ ]}
101
109
  >
102
110
  {@render content()}
103
111
  </a>
@@ -140,6 +148,7 @@
140
148
  overflow: hidden;
141
149
  font-weight: 500;
142
150
  text-decoration: none;
151
+ --np-icon-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
143
152
  transition:
144
153
  background-color 150ms linear,
145
154
  border-radius 150ms ease-in-out,
@@ -230,6 +239,12 @@
230
239
  .xl:active {
231
240
  border-radius: 1rem;
232
241
  }
242
+ .toggle {
243
+ --np-icon-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
244
+ }
245
+ .selected {
246
+ --np-icon-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
247
+ }
233
248
  .disabled {
234
249
  pointer-events: none;
235
250
  color: color-mix(in srgb, var(--np-color-on-surface) 38%, transparent);
@@ -96,6 +96,7 @@
96
96
  variant,
97
97
  selected || loading ? 'square' : shape,
98
98
  'enabled',
99
+ toggle && 'toggle',
99
100
  selected ? 'selected' : '',
100
101
  attributes.class,
101
102
  ]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {