sprintify-ui 0.6.19 → 0.6.21

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.
@@ -8756,9 +8756,10 @@ const Dd = /* @__PURE__ */ _e({
8756
8756
  icon: { default: "" },
8757
8757
  iconPosition: { default: "start" },
8758
8758
  size: { default: "md" },
8759
- color: { default: "primary" },
8759
+ color: { default: "" },
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",
@@ -8767,6 +8768,7 @@ const Dd = /* @__PURE__ */ _e({
8767
8768
  lg: "btn-lg",
8768
8769
  xl: "btn-xl"
8769
8770
  }, r = {
8771
+ "": "",
8770
8772
  primary: "btn-primary",
8771
8773
  secondary: "btn-secondary",
8772
8774
  "secondary-outline": "btn-secondary-outline",
@@ -8797,7 +8799,8 @@ const Dd = /* @__PURE__ */ _e({
8797
8799
  return (l, s) => (P(), Re(Hr(l.as), {
8798
8800
  ref: "button",
8799
8801
  class: fe(T(i)),
8800
- to: l.to
8802
+ to: l.to,
8803
+ onClick: s[0] || (s[0] = (c) => l.$emit("click"))
8801
8804
  }, {
8802
8805
  default: we(() => [
8803
8806
  B("div", {
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  default: undefined;
11
11
  };
12
12
  color: {
13
- type: import("vue").PropType<"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">;
13
+ type: import("vue").PropType<"" | "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">;
14
14
  default: string;
15
15
  };
16
16
  icon: {
@@ -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;
@@ -43,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
43
45
  default: undefined;
44
46
  };
45
47
  color: {
46
- type: import("vue").PropType<"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">;
48
+ type: import("vue").PropType<"" | "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">;
47
49
  default: string;
48
50
  };
49
51
  icon: {
@@ -66,10 +68,12 @@ 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
- 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";
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";
73
77
  icon: string;
74
78
  loading: boolean;
75
79
  size: "xs" | "sm" | "lg" | "xl" | "md";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.19",
3
+ "version": "0.6.21",
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
  });
@@ -58,6 +58,7 @@ const sizes = {
58
58
  };
59
59
 
60
60
  const colors = {
61
+ '': '',
61
62
  'primary': 'btn-primary',
62
63
  'secondary': 'btn-secondary',
63
64
  'secondary-outline': 'btn-secondary-outline',
@@ -93,10 +94,12 @@ const props = withDefaults(defineProps<{
93
94
  icon: '',
94
95
  iconPosition: 'start',
95
96
  size: 'md',
96
- color: 'primary',
97
+ color: '',
97
98
  to: undefined,
98
99
  });
99
100
 
101
+ defineEmits(['click']);
102
+
100
103
  const classes = computed(() => {
101
104
  const classes = ['btn'];
102
105