sprintify-ui 0.0.18 → 0.0.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.
Files changed (42) hide show
  1. package/dist/sprintify-ui.es.js +5552 -4491
  2. package/dist/types/src/components/BaseActionItem.vue.d.ts +121 -0
  3. package/dist/types/src/components/BaseAlert.vue.d.ts +3 -3
  4. package/dist/types/src/components/BaseAppDialogs.vue.d.ts +1 -1
  5. package/dist/types/src/components/BaseBoolean.vue.d.ts +2 -2
  6. package/dist/types/src/components/BaseCounter.vue.d.ts +3 -3
  7. package/dist/types/src/components/BaseDialog.vue.d.ts +4 -4
  8. package/dist/types/src/components/BaseInput.vue.d.ts +1 -1
  9. package/dist/types/src/components/BaseLayoutSidebar.vue.d.ts +114 -0
  10. package/dist/types/src/components/BaseLayoutSidebarConfigurable.vue.d.ts +163 -0
  11. package/dist/types/src/components/BaseLayoutStacked.vue.d.ts +76 -0
  12. package/dist/types/src/components/BaseLayoutStackedConfigurable.vue.d.ts +163 -0
  13. package/dist/types/src/components/BaseMenuItem.vue.d.ts +5 -5
  14. package/dist/types/src/components/BaseNavbar.vue.d.ts +20 -1
  15. package/dist/types/src/components/BaseNavbarItem.vue.d.ts +17 -71
  16. package/dist/types/src/components/BaseNavbarItemContent.vue.d.ts +11 -2
  17. package/dist/types/src/components/BaseNavbarSideItem.vue.d.ts +26 -0
  18. package/dist/types/src/components/BaseNavbarSideItemContent.vue.d.ts +50 -0
  19. package/dist/types/src/components/BaseSwitch.vue.d.ts +3 -3
  20. package/dist/types/src/components/BaseSystemAlert.vue.d.ts +8 -8
  21. package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
  22. package/dist/types/src/components/index.d.ts +5 -1
  23. package/package.json +1 -1
  24. package/src/components/BaseActionItem.vue +68 -0
  25. package/src/components/BaseBreadcrumbs.vue +1 -1
  26. package/src/components/{HasMany.stories.js → BaseHasMany.stories.js} +0 -0
  27. package/src/components/BaseLayoutSidebar.vue +199 -0
  28. package/src/components/BaseLayoutSidebarConfigurable.stories.js +111 -0
  29. package/src/components/BaseLayoutSidebarConfigurable.vue +115 -0
  30. package/src/components/BaseLayoutStacked.vue +52 -0
  31. package/src/components/BaseLayoutStackedConfigurable.stories.js +92 -0
  32. package/src/components/BaseLayoutStackedConfigurable.vue +124 -0
  33. package/src/components/BaseMediaItem.vue +7 -7
  34. package/src/components/BaseMediaLibrary.vue +3 -3
  35. package/src/components/BaseMediaPreview.vue +1 -1
  36. package/src/components/BaseNavbar.stories.js +18 -14
  37. package/src/components/BaseNavbar.vue +19 -3
  38. package/src/components/BaseNavbarItem.vue +17 -43
  39. package/src/components/BaseNavbarItemContent.vue +36 -16
  40. package/src/components/BaseNavbarSideItem.vue +42 -0
  41. package/src/components/BaseNavbarSideItemContent.vue +77 -0
  42. package/src/components/index.ts +9 -0
@@ -0,0 +1,163 @@
1
+ import { User } from '@/types/User';
2
+ import { PropType } from 'vue';
3
+ import { ActionItem } from '../types/types';
4
+ declare const _default: {
5
+ new (...args: any[]): {
6
+ $: import("vue").ComponentInternalInstance;
7
+ $data: {};
8
+ $props: Partial<{
9
+ dark: boolean;
10
+ appName: string;
11
+ logoUrl: string;
12
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
+ appName: {
14
+ default: string;
15
+ type: StringConstructor;
16
+ };
17
+ logoUrl: {
18
+ default: string;
19
+ type: StringConstructor;
20
+ };
21
+ menu: {
22
+ required: true;
23
+ type: PropType<ActionItem[]>;
24
+ };
25
+ userMenu: {
26
+ required: true;
27
+ type: PropType<ActionItem[]>;
28
+ };
29
+ user: {
30
+ required: true;
31
+ type: PropType<User>;
32
+ };
33
+ dark: {
34
+ default: boolean;
35
+ type: BooleanConstructor;
36
+ };
37
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dark" | "appName" | "logoUrl">;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $slots: Readonly<{
45
+ [name: string]: import("vue").Slot | undefined;
46
+ }>;
47
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
48
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
49
+ $emit: (event: string, ...args: any[]) => void;
50
+ $el: any;
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ appName: {
53
+ default: string;
54
+ type: StringConstructor;
55
+ };
56
+ logoUrl: {
57
+ default: string;
58
+ type: StringConstructor;
59
+ };
60
+ menu: {
61
+ required: true;
62
+ type: PropType<ActionItem[]>;
63
+ };
64
+ userMenu: {
65
+ required: true;
66
+ type: PropType<ActionItem[]>;
67
+ };
68
+ user: {
69
+ required: true;
70
+ type: PropType<User>;
71
+ };
72
+ dark: {
73
+ default: boolean;
74
+ type: BooleanConstructor;
75
+ };
76
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
77
+ dark: boolean;
78
+ appName: string;
79
+ logoUrl: string;
80
+ }, {}, string> & {
81
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
82
+ created?: ((() => void) | (() => void)[]) | undefined;
83
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
84
+ mounted?: ((() => void) | (() => void)[]) | undefined;
85
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
86
+ updated?: ((() => void) | (() => void)[]) | undefined;
87
+ activated?: ((() => void) | (() => void)[]) | undefined;
88
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
89
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
90
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
91
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
92
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
93
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
94
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
95
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
96
+ };
97
+ $forceUpdate: () => void;
98
+ $nextTick: typeof import("vue").nextTick;
99
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
100
+ } & Readonly<import("vue").ExtractPropTypes<{
101
+ appName: {
102
+ default: string;
103
+ type: StringConstructor;
104
+ };
105
+ logoUrl: {
106
+ default: string;
107
+ type: StringConstructor;
108
+ };
109
+ menu: {
110
+ required: true;
111
+ type: PropType<ActionItem[]>;
112
+ };
113
+ userMenu: {
114
+ required: true;
115
+ type: PropType<ActionItem[]>;
116
+ };
117
+ user: {
118
+ required: true;
119
+ type: PropType<User>;
120
+ };
121
+ dark: {
122
+ default: boolean;
123
+ type: BooleanConstructor;
124
+ };
125
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
126
+ __isFragment?: undefined;
127
+ __isTeleport?: undefined;
128
+ __isSuspense?: undefined;
129
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
130
+ appName: {
131
+ default: string;
132
+ type: StringConstructor;
133
+ };
134
+ logoUrl: {
135
+ default: string;
136
+ type: StringConstructor;
137
+ };
138
+ menu: {
139
+ required: true;
140
+ type: PropType<ActionItem[]>;
141
+ };
142
+ userMenu: {
143
+ required: true;
144
+ type: PropType<ActionItem[]>;
145
+ };
146
+ user: {
147
+ required: true;
148
+ type: PropType<User>;
149
+ };
150
+ dark: {
151
+ default: boolean;
152
+ type: BooleanConstructor;
153
+ };
154
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
155
+ dark: boolean;
156
+ appName: string;
157
+ logoUrl: string;
158
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
159
+ $slots: {
160
+ default: (_: {}) => any;
161
+ };
162
+ });
163
+ export default _default;
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  };
19
19
  color: {
20
20
  default: string;
21
- type: PropType<"success" | "danger" | "warning" | "dark" | "light">;
21
+ type: PropType<"dark" | "light" | "danger" | "success" | "warning">;
22
22
  };
23
23
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
24
  label: {
@@ -39,13 +39,13 @@ declare const _default: import("vue").DefineComponent<{
39
39
  };
40
40
  color: {
41
41
  default: string;
42
- type: PropType<"success" | "danger" | "warning" | "dark" | "light">;
42
+ type: PropType<"dark" | "light" | "danger" | "success" | "warning">;
43
43
  };
44
44
  }>>, {
45
- color: "success" | "danger" | "warning" | "dark" | "light";
46
- icon: string;
47
45
  label: string;
48
- count: number;
49
46
  active: boolean;
47
+ color: "dark" | "light" | "danger" | "success" | "warning";
48
+ icon: string;
49
+ count: number;
50
50
  }>;
51
51
  export default _default;
@@ -3,13 +3,18 @@ declare const _default: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
+ dark: boolean;
6
7
  size: string;
7
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
8
9
  size: {
9
10
  default: string;
10
11
  type: StringConstructor;
11
12
  };
12
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size">;
13
+ dark: {
14
+ default: boolean;
15
+ type: BooleanConstructor;
16
+ };
17
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dark" | "size">;
13
18
  $attrs: {
14
19
  [x: string]: unknown;
15
20
  };
@@ -28,7 +33,12 @@ declare const _default: {
28
33
  default: string;
29
34
  type: StringConstructor;
30
35
  };
36
+ dark: {
37
+ default: boolean;
38
+ type: BooleanConstructor;
39
+ };
31
40
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
41
+ dark: boolean;
32
42
  size: string;
33
43
  }, {}, string> & {
34
44
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -55,6 +65,10 @@ declare const _default: {
55
65
  default: string;
56
66
  type: StringConstructor;
57
67
  };
68
+ dark: {
69
+ default: boolean;
70
+ type: BooleanConstructor;
71
+ };
58
72
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
59
73
  __isFragment?: undefined;
60
74
  __isTeleport?: undefined;
@@ -64,7 +78,12 @@ declare const _default: {
64
78
  default: string;
65
79
  type: StringConstructor;
66
80
  };
81
+ dark: {
82
+ default: boolean;
83
+ type: BooleanConstructor;
84
+ };
67
85
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
86
+ dark: boolean;
68
87
  size: string;
69
88
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
70
89
  $slots: {
@@ -1,80 +1,26 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ActionItem } from '@/types/types';
3
- declare const _default: {
4
- new (...args: any[]): {
5
- $: import("vue").ComponentInternalInstance;
6
- $data: {};
7
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
8
- item: {
9
- required: true;
10
- type: PropType<ActionItem>;
11
- };
12
- }>> & {
13
- onClick?: ((...args: any[]) => any) | undefined;
14
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
15
- $attrs: {
16
- [x: string]: unknown;
17
- };
18
- $refs: {
19
- [x: string]: unknown;
20
- };
21
- $slots: Readonly<{
22
- [name: string]: import("vue").Slot | undefined;
23
- }>;
24
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
25
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
26
- $emit: (event: "click", ...args: any[]) => void;
27
- $el: any;
28
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
29
- item: {
30
- required: true;
31
- type: PropType<ActionItem>;
32
- };
33
- }>> & {
34
- onClick?: ((...args: any[]) => any) | undefined;
35
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], string, {}, {}, string> & {
36
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
37
- created?: ((() => void) | (() => void)[]) | undefined;
38
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
39
- mounted?: ((() => void) | (() => void)[]) | undefined;
40
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
41
- updated?: ((() => void) | (() => void)[]) | undefined;
42
- activated?: ((() => void) | (() => void)[]) | undefined;
43
- deactivated?: ((() => void) | (() => void)[]) | undefined;
44
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
45
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
46
- destroyed?: ((() => void) | (() => void)[]) | undefined;
47
- unmounted?: ((() => void) | (() => void)[]) | undefined;
48
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
49
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
50
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
51
- };
52
- $forceUpdate: () => void;
53
- $nextTick: typeof import("vue").nextTick;
54
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
55
- } & Readonly<import("vue").ExtractPropTypes<{
56
- item: {
57
- required: true;
58
- type: PropType<ActionItem>;
59
- };
60
- }>> & {
61
- onClick?: ((...args: any[]) => any) | undefined;
62
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
63
- __isFragment?: undefined;
64
- __isTeleport?: undefined;
65
- __isSuspense?: undefined;
66
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
3
+ declare const _default: import("vue").DefineComponent<{
67
4
  item: {
68
5
  required: true;
69
6
  type: PropType<ActionItem>;
70
7
  };
8
+ dark: {
9
+ default: boolean;
10
+ type: BooleanConstructor;
11
+ };
12
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ item: {
14
+ required: true;
15
+ type: PropType<ActionItem>;
16
+ };
17
+ dark: {
18
+ default: boolean;
19
+ type: BooleanConstructor;
20
+ };
71
21
  }>> & {
72
22
  onClick?: ((...args: any[]) => any) | undefined;
73
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
74
- $slots: {
75
- default: (_: {
76
- active: boolean;
77
- }) => any;
78
- };
79
- });
23
+ }, {
24
+ dark: boolean;
25
+ }>;
80
26
  export default _default;
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
15
15
  default: undefined;
16
16
  type: NumberConstructor;
17
17
  };
18
+ dark: {
19
+ default: boolean;
20
+ type: BooleanConstructor;
21
+ };
18
22
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
23
  label: {
20
24
  default: undefined;
@@ -32,10 +36,15 @@ declare const _default: import("vue").DefineComponent<{
32
36
  default: undefined;
33
37
  type: NumberConstructor;
34
38
  };
39
+ dark: {
40
+ default: boolean;
41
+ type: BooleanConstructor;
42
+ };
35
43
  }>>, {
36
- icon: string;
44
+ dark: boolean;
37
45
  label: string;
38
- count: number;
39
46
  active: boolean;
47
+ icon: string;
48
+ count: number;
40
49
  }>;
41
50
  export default _default;
@@ -0,0 +1,26 @@
1
+ import { PropType } from 'vue';
2
+ import { ActionItem } from '@/types/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ item: {
5
+ required: true;
6
+ type: PropType<ActionItem>;
7
+ };
8
+ dark: {
9
+ default: boolean;
10
+ type: BooleanConstructor;
11
+ };
12
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ item: {
14
+ required: true;
15
+ type: PropType<ActionItem>;
16
+ };
17
+ dark: {
18
+ default: boolean;
19
+ type: BooleanConstructor;
20
+ };
21
+ }>> & {
22
+ onClick?: ((...args: any[]) => any) | undefined;
23
+ }, {
24
+ dark: boolean;
25
+ }>;
26
+ export default _default;
@@ -0,0 +1,50 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ default: undefined;
4
+ type: StringConstructor;
5
+ };
6
+ icon: {
7
+ default: undefined;
8
+ type: StringConstructor;
9
+ };
10
+ active: {
11
+ default: boolean;
12
+ type: BooleanConstructor;
13
+ };
14
+ count: {
15
+ default: undefined;
16
+ type: NumberConstructor;
17
+ };
18
+ dark: {
19
+ default: boolean;
20
+ type: BooleanConstructor;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ label: {
24
+ default: undefined;
25
+ type: StringConstructor;
26
+ };
27
+ icon: {
28
+ default: undefined;
29
+ type: StringConstructor;
30
+ };
31
+ active: {
32
+ default: boolean;
33
+ type: BooleanConstructor;
34
+ };
35
+ count: {
36
+ default: undefined;
37
+ type: NumberConstructor;
38
+ };
39
+ dark: {
40
+ default: boolean;
41
+ type: BooleanConstructor;
42
+ };
43
+ }>>, {
44
+ dark: boolean;
45
+ label: string;
46
+ active: boolean;
47
+ icon: string;
48
+ count: number;
49
+ }>;
50
+ export default _default;
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  };
7
7
  color: {
8
8
  default: string;
9
- type: PropType<"success" | "info" | "danger" | "warning" | "dark" | "light" | "primary">;
9
+ type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "info" | "primary">;
10
10
  };
11
11
  size: {
12
12
  default: string;
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  };
31
31
  color: {
32
32
  default: string;
33
- type: PropType<"success" | "info" | "danger" | "warning" | "dark" | "light" | "primary">;
33
+ type: PropType<"dark" | "light" | "danger" | "success" | "warning" | "info" | "primary">;
34
34
  };
35
35
  size: {
36
36
  default: string;
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  }>> & {
40
40
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
41
  }, {
42
- color: "success" | "info" | "danger" | "warning" | "dark" | "light" | "primary";
42
+ color: "dark" | "light" | "danger" | "success" | "warning" | "info" | "primary";
43
43
  modelValue: boolean;
44
44
  size: "base" | "xs" | "sm" | "lg" | "xl";
45
45
  }>;
@@ -5,8 +5,8 @@ declare const _default: {
5
5
  $: import("vue").ComponentInternalInstance;
6
6
  $data: {};
7
7
  $props: Partial<{
8
- color: "success" | "info" | "danger" | "warning";
9
8
  to: RouteLocationRaw | undefined;
9
+ color: "danger" | "success" | "warning" | "info";
10
10
  action: () => Promise<void> | void;
11
11
  closable: boolean;
12
12
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -20,7 +20,7 @@ declare const _default: {
20
20
  };
21
21
  color: {
22
22
  default: string;
23
- type: PropType<"success" | "info" | "danger" | "warning">;
23
+ type: PropType<"danger" | "success" | "warning" | "info">;
24
24
  };
25
25
  closable: {
26
26
  default: boolean;
@@ -28,7 +28,7 @@ declare const _default: {
28
28
  };
29
29
  }>> & {
30
30
  onClose?: ((...args: any[]) => any) | undefined;
31
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "color" | "to" | "action" | "closable">;
31
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "to" | "color" | "action" | "closable">;
32
32
  $attrs: {
33
33
  [x: string]: unknown;
34
34
  };
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  };
54
54
  color: {
55
55
  default: string;
56
- type: PropType<"success" | "info" | "danger" | "warning">;
56
+ type: PropType<"danger" | "success" | "warning" | "info">;
57
57
  };
58
58
  closable: {
59
59
  default: boolean;
@@ -62,8 +62,8 @@ declare const _default: {
62
62
  }>> & {
63
63
  onClose?: ((...args: any[]) => any) | undefined;
64
64
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
65
- color: "success" | "info" | "danger" | "warning";
66
65
  to: RouteLocationRaw | undefined;
66
+ color: "danger" | "success" | "warning" | "info";
67
67
  action: () => Promise<void> | void;
68
68
  closable: boolean;
69
69
  }, {}, string> & {
@@ -97,7 +97,7 @@ declare const _default: {
97
97
  };
98
98
  color: {
99
99
  default: string;
100
- type: PropType<"success" | "info" | "danger" | "warning">;
100
+ type: PropType<"danger" | "success" | "warning" | "info">;
101
101
  };
102
102
  closable: {
103
103
  default: boolean;
@@ -120,7 +120,7 @@ declare const _default: {
120
120
  };
121
121
  color: {
122
122
  default: string;
123
- type: PropType<"success" | "info" | "danger" | "warning">;
123
+ type: PropType<"danger" | "success" | "warning" | "info">;
124
124
  };
125
125
  closable: {
126
126
  default: boolean;
@@ -129,8 +129,8 @@ declare const _default: {
129
129
  }>> & {
130
130
  onClose?: ((...args: any[]) => any) | undefined;
131
131
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
132
- color: "success" | "info" | "danger" | "warning";
133
132
  to: RouteLocationRaw | undefined;
133
+ color: "danger" | "success" | "warning" | "info";
134
134
  action: () => Promise<void> | void;
135
135
  closable: boolean;
136
136
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -144,8 +144,8 @@ declare const _default: import("vue").DefineComponent<{
144
144
  default: () => {};
145
145
  };
146
146
  }>>, {
147
- label: string;
148
147
  meta: Record<string, any> | unknown[];
148
+ label: string;
149
149
  width: number;
150
150
  toggle: boolean;
151
151
  field: string;
@@ -59,4 +59,8 @@ import BaseTable from './BaseTable.vue';
59
59
  import BaseTableColumn from './BaseTableColumn.vue';
60
60
  import BaseTextarea from './BaseTextarea.vue';
61
61
  import BaseTextareaAutoresize from './BaseTextareaAutoresize.vue';
62
- export { BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseFilePicker, BaseFileUploader, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProcessRing, BaseReadMore, BaseSelect, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, };
62
+ import BaseLayoutStacked from './BaseLayoutStacked.vue';
63
+ import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
64
+ import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
65
+ import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
66
+ export { BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseFilePicker, BaseFileUploader, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProcessRing, BaseReadMore, BaseSelect, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <RouterLink
3
+ v-if="item.to"
4
+ v-slot="{ isActive, href: slotHref, navigate }"
5
+ custom
6
+ :to="item.to"
7
+ >
8
+ <a
9
+ :active="isActive"
10
+ :href="slotHref"
11
+ :class="itemClass"
12
+ :aria-current="isActive ? 'page' : undefined"
13
+ @click.prevent="onClick(navigate)"
14
+ >
15
+ <slot :active="isActive"> </slot>
16
+ </a>
17
+ </RouterLink>
18
+ <button
19
+ v-else-if="item.action"
20
+ type="button"
21
+ :class="itemClass"
22
+ @click="onClick(item.action)"
23
+ >
24
+ <slot :active="false"> </slot>
25
+ </button>
26
+ <a
27
+ v-else-if="item.href"
28
+ :href="item.href"
29
+ :class="itemClass"
30
+ @click="onClick()"
31
+ >
32
+ <slot :active="false"> </slot>
33
+ </a>
34
+ </template>
35
+
36
+ <script setup lang="ts">
37
+ import { PropType } from 'vue';
38
+ import { ActionItem } from '@/types/types';
39
+
40
+ defineProps({
41
+ item: {
42
+ required: true,
43
+ type: Object as PropType<ActionItem>,
44
+ },
45
+ dark: {
46
+ default: false,
47
+ type: Boolean,
48
+ },
49
+ itemClass: {
50
+ default: '',
51
+ type: [String, Array, Object],
52
+ },
53
+ });
54
+
55
+ const closeMenu = inject('closeMenu') as () => void;
56
+
57
+ const emit = defineEmits(['click']);
58
+
59
+ type asyncFunc = () => Promise<void>;
60
+
61
+ async function onClick(func: asyncFunc | null = null) {
62
+ if (func) {
63
+ await func();
64
+ }
65
+ emit('click');
66
+ closeMenu();
67
+ }
68
+ </script>
@@ -21,7 +21,7 @@
21
21
  >
22
22
  <a
23
23
  :href="href"
24
- class="text-sm text-slate-500"
24
+ class="text-sm"
25
25
  :class="[
26
26
  { 'ml-3': index > 0 },
27
27
  isExactActive