sprintify-ui 0.6.19 → 0.6.20

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.
@@ -8759,6 +8759,7 @@ const Dd = /* @__PURE__ */ _e({
8759
8759
  color: { default: "primary" },
8760
8760
  to: { default: void 0 }
8761
8761
  },
8762
+ emits: ["click"],
8762
8763
  setup(n) {
8763
8764
  const t = n, e = {
8764
8765
  xs: "btn-xs",
@@ -8797,7 +8798,8 @@ const Dd = /* @__PURE__ */ _e({
8797
8798
  return (l, s) => (P(), Re(Hr(l.as), {
8798
8799
  ref: "button",
8799
8800
  class: fe(T(i)),
8800
- to: l.to
8801
+ to: l.to,
8802
+ onClick: s[0] || (s[0] = (c) => l.$emit("click"))
8801
8803
  }, {
8802
8804
  default: we(() => [
8803
8805
  B("div", {
@@ -33,7 +33,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
33
33
  type: import("vue").PropType<"start" | "end">;
34
34
  default: string;
35
35
  };
36
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ click: (...args: any[]) => void;
38
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
39
  class: {
38
40
  type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
39
41
  default: string;
@@ -66,7 +68,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
66
68
  type: import("vue").PropType<"start" | "end">;
67
69
  default: string;
68
70
  };
69
- }>>, {
71
+ }>> & {
72
+ onClick?: ((...args: any[]) => any) | undefined;
73
+ }, {
70
74
  class: string | false | 0 | ClassNameValue[] | null;
71
75
  to: RouteLocationRaw;
72
76
  color: "danger" | "success" | "warning" | "primary" | "secondary" | "info" | "black" | "white" | "secondary-outline" | "success-outline" | "danger-outline" | "warning-outline" | "info-outline" | "slate-100" | "slate-100-outline" | "slate-200" | "slate-200-outline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.19",
3
+ "version": "0.6.20",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -4,6 +4,7 @@
4
4
  ref="button"
5
5
  :class="classes"
6
6
  :to="to"
7
+ @click="$emit('click')"
7
8
  >
8
9
  <div
9
10
  :class="containerClass"
@@ -44,7 +45,6 @@ import { ClassNameValue, twMerge } from 'tailwind-merge';
44
45
  import { RouteLocationRaw } from 'vue-router';
45
46
  import { BaseIcon } from '.';
46
47
 
47
-
48
48
  defineOptions({
49
49
  inheritAttrs: false,
50
50
  });
@@ -97,6 +97,8 @@ const props = withDefaults(defineProps<{
97
97
  to: undefined,
98
98
  });
99
99
 
100
+ defineEmits(['click']);
101
+
100
102
  const classes = computed(() => {
101
103
  const classes = ['btn'];
102
104