sprintify-ui 0.7.10 → 0.7.12
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/dist/sprintify-ui.es.js +4403 -4358
- package/dist/types/components/BaseAppDialogs.vue.d.ts +1 -0
- package/dist/types/components/BaseButton.vue.d.ts +1 -1
- package/dist/types/components/BaseCardRow.vue.d.ts +1 -1
- package/dist/types/components/BaseDialog.vue.d.ts +9 -0
- package/dist/types/components/BaseTable.vue.d.ts +1 -1
- package/dist/types/components/BaseTableCell.vue.d.ts +1 -1
- package/dist/types/components/BaseTableHeader.vue.d.ts +1 -1
- package/dist/types/components/BaseTableRow.vue.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/src/components/BaseAppDialogs.vue +1 -0
- package/src/components/BaseDialog.stories.js +7 -0
- package/src/components/BaseDialog.vue +13 -1
- package/src/stores/dialogs.ts +1 -0
- package/src/types/index.ts +2 -0
|
@@ -61,7 +61,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
61
|
}>>> & {
|
|
62
62
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
64
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
65
65
|
type: "button" | "submit" | "reset";
|
|
66
66
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
67
67
|
color: string;
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
size: string;
|
|
13
13
|
class: string;
|
|
14
14
|
}>>>, {
|
|
15
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
15
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
16
16
|
size: "xs" | "sm" | "lg" | "base";
|
|
17
17
|
}, {}>, {
|
|
18
18
|
default?(_: {}): any;
|
|
@@ -12,6 +12,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
12
12
|
default: string;
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
};
|
|
15
|
+
html: {
|
|
16
|
+
default: boolean;
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
};
|
|
15
19
|
confirmText: {
|
|
16
20
|
default(): string;
|
|
17
21
|
type: StringConstructor;
|
|
@@ -36,6 +40,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
40
|
default: string;
|
|
37
41
|
type: StringConstructor;
|
|
38
42
|
};
|
|
43
|
+
html: {
|
|
44
|
+
default: boolean;
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
39
47
|
confirmText: {
|
|
40
48
|
default(): string;
|
|
41
49
|
type: StringConstructor;
|
|
@@ -50,6 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
58
|
}, {
|
|
51
59
|
title: string;
|
|
52
60
|
message: string;
|
|
61
|
+
html: boolean;
|
|
53
62
|
confirmText: string;
|
|
54
63
|
cancelText: string;
|
|
55
64
|
}, {}>, {
|
|
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
flush: boolean;
|
|
26
26
|
class: undefined;
|
|
27
27
|
}>>>, {
|
|
28
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
28
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
29
29
|
spacing: CellSpacing;
|
|
30
30
|
grid: boolean;
|
|
31
31
|
striped: boolean;
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
colspan: undefined;
|
|
34
34
|
class: undefined;
|
|
35
35
|
}>>>, {
|
|
36
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
36
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
37
37
|
title: string;
|
|
38
38
|
to: RouteLocationRaw;
|
|
39
39
|
href: string;
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
align: string;
|
|
17
17
|
colspan: undefined;
|
|
18
18
|
}>>>, {
|
|
19
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
19
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
20
20
|
align: "right" | "left" | "center";
|
|
21
21
|
colspan: number;
|
|
22
22
|
}, {}>, {
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
onMouseenter?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
onMouseleave?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
class: string | false | 0 | ClassNameValue[] | null;
|
|
36
|
+
class: string | false | 0 | 0n | ClassNameValue[] | null;
|
|
37
37
|
title: string;
|
|
38
38
|
to: RouteLocationRaw;
|
|
39
39
|
href: string;
|
|
@@ -116,6 +116,7 @@ export interface DialogOptions {
|
|
|
116
116
|
color?: 'info' | 'success' | 'danger' | 'warning';
|
|
117
117
|
title: string;
|
|
118
118
|
message: string;
|
|
119
|
+
html?: boolean;
|
|
119
120
|
confirmText?: string;
|
|
120
121
|
cancelText?: string;
|
|
121
122
|
closeOnOutsideClick?: boolean;
|
|
@@ -127,6 +128,7 @@ export interface Dialog {
|
|
|
127
128
|
color: 'info' | 'success' | 'danger' | 'warning';
|
|
128
129
|
title: string;
|
|
129
130
|
message: string;
|
|
131
|
+
html: boolean;
|
|
130
132
|
confirmText: string;
|
|
131
133
|
cancelText: string;
|
|
132
134
|
closeOnOutsideClick: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprintify-ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build-fast": "rimraf dist && vite build",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@tailwindcss/typography": "^0.5.8",
|
|
23
23
|
"@vueup/vue-quill": "^1.0.0",
|
|
24
24
|
"@vueuse/core": "^10.0.0",
|
|
25
|
-
"axios": "
|
|
25
|
+
"axios": "<1.0.0",
|
|
26
26
|
"croppie": "^2.6.5",
|
|
27
27
|
"flatpickr": "^4.6.13",
|
|
28
28
|
"humanize-duration": "^3.0.0",
|
|
@@ -34,6 +34,13 @@ Demo.args = {
|
|
|
34
34
|
title: 'Be careful',
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
export const Html = Template.bind({});
|
|
38
|
+
Html.args = {
|
|
39
|
+
title: 'Be careful',
|
|
40
|
+
message: '<strong>HTML</strong> is allowed. <a href="#">Link</a><p>Eiusmod id Lorem est ullamco et ex exercitation cupidatat do velit nisi Lorem officia et.</p>',
|
|
41
|
+
html: true,
|
|
42
|
+
};
|
|
43
|
+
|
|
37
44
|
const ColorsTemplate = (args) => ({
|
|
38
45
|
components: { BaseDialog },
|
|
39
46
|
setup() {
|
|
@@ -42,7 +42,15 @@
|
|
|
42
42
|
{{ title }}
|
|
43
43
|
</h3>
|
|
44
44
|
<div class="mt-2">
|
|
45
|
-
<
|
|
45
|
+
<div
|
|
46
|
+
v-if="html"
|
|
47
|
+
class="text-slate-500 prose-sm prose-p:leading-snug prose-a:text-blue-600 prose-a:underline"
|
|
48
|
+
v-html="message"
|
|
49
|
+
/>
|
|
50
|
+
<p
|
|
51
|
+
v-else
|
|
52
|
+
class="text-sm text-slate-500"
|
|
53
|
+
>
|
|
46
54
|
{{ message }}
|
|
47
55
|
</p>
|
|
48
56
|
</div>
|
|
@@ -91,6 +99,10 @@ defineProps({
|
|
|
91
99
|
default: '',
|
|
92
100
|
type: String,
|
|
93
101
|
},
|
|
102
|
+
html: {
|
|
103
|
+
default: false,
|
|
104
|
+
type: Boolean,
|
|
105
|
+
},
|
|
94
106
|
confirmText: {
|
|
95
107
|
default() {
|
|
96
108
|
return t('sui.confirm');
|
package/src/stores/dialogs.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const useDialogsStore = defineStore('dialogs', {
|
|
|
17
17
|
color: options.color ?? 'info',
|
|
18
18
|
title: options.title,
|
|
19
19
|
message: options.message,
|
|
20
|
+
html: options.html ?? false,
|
|
20
21
|
confirmText: options.confirmText ?? t('sui.confirm'),
|
|
21
22
|
cancelText: options.cancelText ?? t('sui.cancel'),
|
|
22
23
|
closeOnOutsideClick: options.closeOnOutsideClick ?? true,
|
package/src/types/index.ts
CHANGED
|
@@ -150,6 +150,7 @@ export interface DialogOptions {
|
|
|
150
150
|
color?: 'info' | 'success' | 'danger' | 'warning';
|
|
151
151
|
title: string;
|
|
152
152
|
message: string;
|
|
153
|
+
html?: boolean;
|
|
153
154
|
confirmText?: string;
|
|
154
155
|
cancelText?: string;
|
|
155
156
|
closeOnOutsideClick?: boolean;
|
|
@@ -162,6 +163,7 @@ export interface Dialog {
|
|
|
162
163
|
color: 'info' | 'success' | 'danger' | 'warning';
|
|
163
164
|
title: string;
|
|
164
165
|
message: string;
|
|
166
|
+
html: boolean;
|
|
165
167
|
confirmText: string;
|
|
166
168
|
cancelText: string;
|
|
167
169
|
closeOnOutsideClick: boolean;
|