noph-ui 0.21.2 → 0.21.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.
@@ -94,13 +94,16 @@
94
94
  {:else if isLink(attributes)}
95
95
  <a
96
96
  {...attributes}
97
+ onclick={(event) => {
98
+ ;(onclick as MouseEventHandler<HTMLAnchorElement>)?.(event)
99
+ }}
97
100
  aria-describedby={title ? uid : attributes['aria-describedby']}
98
101
  aria-label={title || attributes['aria-label']}
99
102
  bind:this={element}
100
103
  class={[
101
104
  'np-button',
102
105
  size,
103
- selected ? 'square' : 'round',
106
+ selected || loading ? 'square' : shape,
104
107
  toggle ? 'toggle' : '',
105
108
  'enabled',
106
109
  variant,
@@ -86,6 +86,9 @@
86
86
  {:else if isLink(attributes)}
87
87
  <a
88
88
  {...attributes}
89
+ onclick={(event) => {
90
+ ;(onclick as MouseEventHandler<HTMLAnchorElement>)?.(event)
91
+ }}
89
92
  aria-describedby={title ? uid : undefined}
90
93
  aria-label={title}
91
94
  bind:this={element}
@@ -15,8 +15,6 @@
15
15
  <Button
16
16
  size="xs"
17
17
  shape="square"
18
- --np-elevated-button-container-shape="var(--np-assist-chip-container-shape, var(--np-shape-corner-small))"
19
- --np-outlined-button-container-shape="var(--np-assist-chip-container-shape, var(--np-shape-corner-small))"
20
18
  --np-elevated-button-label-text-color="var(--np-assist-chip-label-text-color, var(--np-color-on-surface-variant))"
21
19
  --np-outlined-button-label-text-color="var(--np-assist-chip-label-text-color, var(--np-color-on-surface-variant))"
22
20
  --np-outlined-button-outline-color="var(--np-assist-chip-outline-color, var(--np-color-outline-variant))"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.21.2",
3
+ "version": "0.21.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {