sprintify-ui 0.6.24 → 0.6.26

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.
@@ -8751,9 +8751,11 @@ const Dd = /* @__PURE__ */ _e({
8751
8751
  __name: "BaseButton",
8752
8752
  props: {
8753
8753
  as: { default: "button" },
8754
+ disabled: { type: Boolean, default: !1 },
8754
8755
  class: { type: [Array, String, null, Number, Boolean], default: "" },
8755
8756
  loading: { type: Boolean, default: !1 },
8756
8757
  icon: { default: "" },
8758
+ type: { default: "submit" },
8757
8759
  iconPosition: { default: "start" },
8758
8760
  size: { default: "md" },
8759
8761
  color: { default: "" },
@@ -8800,6 +8802,8 @@ const Dd = /* @__PURE__ */ _e({
8800
8802
  ref: "button",
8801
8803
  class: fe(T(i)),
8802
8804
  to: l.to,
8805
+ disabled: l.disabled,
8806
+ type: l.type,
8803
8807
  onClick: s[0] || (s[0] = (c) => l.$emit("click"))
8804
8808
  }, {
8805
8809
  default: ye(() => [
@@ -8821,7 +8825,7 @@ const Dd = /* @__PURE__ */ _e({
8821
8825
  l.loading ? (P(), G("div", wE, EE)) : Se("", !0)
8822
8826
  ]),
8823
8827
  _: 3
8824
- }, 8, ["class", "to"]));
8828
+ }, 8, ["class", "to", "disabled", "type"]));
8825
8829
  }
8826
8830
  }), SE = ["type", "disabled", "onClick"], ig = /* @__PURE__ */ _e({
8827
8831
  __name: "BaseButtonGroup",
@@ -5,6 +5,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
6
6
  default: string;
7
7
  };
8
+ type: {
9
+ type: import("vue").PropType<"button" | "submit" | "reset">;
10
+ default: string;
11
+ };
8
12
  to: {
9
13
  type: import("vue").PropType<RouteLocationRaw>;
10
14
  default: undefined;
@@ -17,6 +21,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
21
  type: import("vue").PropType<string>;
18
22
  default: string;
19
23
  };
24
+ disabled: {
25
+ type: import("vue").PropType<boolean>;
26
+ default: boolean;
27
+ };
20
28
  loading: {
21
29
  type: import("vue").PropType<boolean>;
22
30
  default: boolean;
@@ -40,6 +48,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
48
  type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
41
49
  default: string;
42
50
  };
51
+ type: {
52
+ type: import("vue").PropType<"button" | "submit" | "reset">;
53
+ default: string;
54
+ };
43
55
  to: {
44
56
  type: import("vue").PropType<RouteLocationRaw>;
45
57
  default: undefined;
@@ -52,6 +64,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
52
64
  type: import("vue").PropType<string>;
53
65
  default: string;
54
66
  };
67
+ disabled: {
68
+ type: import("vue").PropType<boolean>;
69
+ default: boolean;
70
+ };
55
71
  loading: {
56
72
  type: import("vue").PropType<boolean>;
57
73
  default: boolean;
@@ -72,9 +88,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
72
88
  onClick?: ((...args: any[]) => any) | undefined;
73
89
  }, {
74
90
  class: string | false | 0 | ClassNameValue[] | null;
91
+ type: "button" | "submit" | "reset";
75
92
  to: RouteLocationRaw;
76
93
  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";
77
94
  icon: string;
95
+ disabled: boolean;
78
96
  loading: boolean;
79
97
  size: "xs" | "sm" | "lg" | "xl" | "md";
80
98
  as: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.24",
3
+ "version": "0.6.26",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -4,6 +4,8 @@
4
4
  ref="button"
5
5
  :class="classes"
6
6
  :to="to"
7
+ :disabled="disabled"
8
+ :type="type"
7
9
  @click="$emit('click')"
8
10
  >
9
11
  <div
@@ -80,18 +82,22 @@ const colors = {
80
82
 
81
83
  const props = withDefaults(defineProps<{
82
84
  as?: string;
85
+ disabled?: boolean;
83
86
  class?: ClassNameValue,
84
87
  loading?: boolean;
85
88
  icon?: string;
89
+ type?: 'button' | 'submit' | 'reset';
86
90
  iconPosition?: 'start' | 'end';
87
91
  size?: keyof typeof sizes;
88
92
  color?: keyof typeof colors;
89
93
  to?: RouteLocationRaw;
90
94
  }>(), {
91
95
  as: 'button',
96
+ disabled: false,
92
97
  class: '',
93
98
  loading: false,
94
99
  icon: '',
100
+ type: 'submit',
95
101
  iconPosition: 'start',
96
102
  size: 'md',
97
103
  color: '',