@vmz/ui 0.1.23 → 0.1.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "description": "VMZ UI — official UI framework (component contracts + semantic token requirements). Not a theme. Not a plugin.",
6
6
  "license": "MIT",
@@ -1,5 +1,23 @@
1
1
  <template>
2
+ <a
3
+ v-if="href"
4
+ class="vmz-ui-btn"
5
+ data-vmz-ui="button"
6
+ data-vmz-motion="control"
7
+ data-vmz-motion-token="motion.control"
8
+ :data-variant="variant"
9
+ :data-size="size"
10
+ :data-block="block ? 'true' : 'false'"
11
+ :href="href"
12
+ :target="target"
13
+ :rel="rel"
14
+ @click="onClick"
15
+ >
16
+ <span v-if="loading" class="vmz-ui-btn__spinner" aria-hidden="true"></span>
17
+ <slot />
18
+ </a>
2
19
  <button
20
+ v-else
3
21
  :type="type"
4
22
  class="vmz-ui-btn"
5
23
  data-vmz-ui="button"
@@ -144,6 +162,9 @@ export default class Button {
144
162
  public loading: boolean = false;
145
163
  public block: boolean = false;
146
164
  public size: string = "middle";
165
+ public href: string = "";
166
+ public target: string = "";
167
+ public rel: string = "";
147
168
  public onClick: ((e: Event) => void) | null = null;
148
169
  }
149
170
  </script>