@beterdichtbij/component-library 0.16.1 → 0.17.0
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/bd-component-lib.cjs.js +34 -30
- package/dist/bd-component-lib.es.js +9557 -7178
- package/dist/bd-component-lib.umd.js +34 -30
- package/dist/components/atoms/BDToast/BDToast.vue.d.ts +0 -17
- package/dist/composables/useToaster.d.ts +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/interfaces/BDToastProps.d.ts +0 -2
- package/dist/scss/_toast.scss +41 -61
- package/package.json +1 -1
|
@@ -14,14 +14,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
14
14
|
required: false;
|
|
15
15
|
default: "info";
|
|
16
16
|
};
|
|
17
|
-
teleport: {
|
|
18
|
-
type: __PropType<import("vue").TeleportProps | undefined>;
|
|
19
|
-
required: false;
|
|
20
|
-
default: {
|
|
21
|
-
to: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
17
|
title: {
|
|
26
18
|
type: __PropType<string | undefined>;
|
|
27
19
|
required: false;
|
|
@@ -47,14 +39,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
47
39
|
required: false;
|
|
48
40
|
default: "info";
|
|
49
41
|
};
|
|
50
|
-
teleport: {
|
|
51
|
-
type: __PropType<import("vue").TeleportProps | undefined>;
|
|
52
|
-
required: false;
|
|
53
|
-
default: {
|
|
54
|
-
to: string;
|
|
55
|
-
disabled: boolean;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
42
|
title: {
|
|
59
43
|
type: __PropType<string | undefined>;
|
|
60
44
|
required: false;
|
|
@@ -70,6 +54,5 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
70
54
|
text: string | undefined;
|
|
71
55
|
title: string | undefined;
|
|
72
56
|
show: boolean | undefined;
|
|
73
|
-
teleport: import("vue").TeleportProps | undefined;
|
|
74
57
|
}, {}>;
|
|
75
58
|
export default _sfc_main;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Toast } from "bootstrap";
|
|
2
|
+
export declare function useToaster(options?: Toast.Options | undefined): {
|
|
3
|
+
showSuccessToast: (message: string) => void;
|
|
4
|
+
showInformationToast: (message: string) => void;
|
|
5
|
+
showWarningToast: (message: string) => void;
|
|
6
|
+
showDangerToast: (message: string) => void;
|
|
7
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdown
|
|
|
26
26
|
import BDUser from "./components/molecules/BDUser/BDUser.vue";
|
|
27
27
|
import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
|
|
28
28
|
import BDModal from "./components/organisms/BDModal/BDModal.vue";
|
|
29
|
-
|
|
29
|
+
import { useToaster } from "./composables/useToaster";
|
|
30
|
+
export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, IconAttachment, IconBold, IconBulletList, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, IconCalendar, BDArticle, BDUser, BDToast, useToaster };
|
package/dist/scss/_toast.scss
CHANGED
|
@@ -1,84 +1,64 @@
|
|
|
1
1
|
.toast{
|
|
2
2
|
&.bd-toast{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
border: 0px;
|
|
8
|
-
|
|
9
|
-
.toast-left-border{
|
|
10
|
-
width: 4px;
|
|
11
|
-
background-color: $info;
|
|
12
|
-
position: absolute;
|
|
13
|
-
left: 0;
|
|
14
|
-
top: 0;
|
|
15
|
-
height: 100%;
|
|
16
|
-
border-radius: $border-radius-default 0px 0px $border-radius-default;
|
|
17
|
-
}
|
|
3
|
+
margin: 0.5rem;
|
|
4
|
+
border: 0px;
|
|
5
|
+
margin-left: auto;
|
|
6
|
+
border-left: 4px solid $info;
|
|
18
7
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
.toast-header{
|
|
9
|
+
border-bottom: 1px solid hsla(203, 62%, 51%, 0.4) ;
|
|
10
|
+
padding: 20px 14px;
|
|
11
|
+
display:flex;
|
|
12
|
+
justify-content: baseline;
|
|
24
13
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
button{
|
|
15
|
+
margin-left:auto;
|
|
16
|
+
margin-right:0px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
svg{
|
|
20
|
+
fill: $info;
|
|
21
|
+
margin-right: 1rem;
|
|
22
|
+
}
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
margin-right: 1rem;
|
|
25
|
+
.toast-body {
|
|
26
|
+
padding-left: 20px;
|
|
33
27
|
}
|
|
34
28
|
|
|
35
|
-
|
|
29
|
+
&-danger{
|
|
30
|
+
border-color: $danger;
|
|
36
31
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
32
|
+
.toast-header{
|
|
33
|
+
border-color: hsla(8, 74%, 53%, 0.4);
|
|
40
34
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
.toast-header{
|
|
46
|
-
border-color: hsla(8, 74%, 53%, 0.4);
|
|
47
|
-
|
|
48
|
-
svg{
|
|
49
|
-
fill: $danger;
|
|
35
|
+
svg{
|
|
36
|
+
fill: $danger;
|
|
37
|
+
}
|
|
50
38
|
}
|
|
51
39
|
}
|
|
52
40
|
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
&-warning{
|
|
42
|
+
border-color: $warning;
|
|
55
43
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
background-color: $warning;
|
|
59
|
-
}
|
|
60
|
-
.toast-header{
|
|
61
|
-
border-color: hsla(48, 100%, 47%, 0.4);
|
|
44
|
+
.toast-header{
|
|
45
|
+
border-color: hsla(48, 100%, 47%, 0.4);
|
|
62
46
|
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
svg{
|
|
48
|
+
fill: $warning;
|
|
49
|
+
}
|
|
65
50
|
}
|
|
66
51
|
}
|
|
67
52
|
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
&-success{
|
|
54
|
+
border-color: $success;
|
|
70
55
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
border-color: hsla(155, 100%, 37%,0.4);
|
|
77
|
-
svg{
|
|
78
|
-
fill: $success
|
|
56
|
+
.toast-header{
|
|
57
|
+
border-color: hsla(155, 100%, 37%,0.4);
|
|
58
|
+
svg{
|
|
59
|
+
fill: $success
|
|
60
|
+
}
|
|
79
61
|
}
|
|
80
62
|
}
|
|
81
|
-
|
|
82
63
|
}
|
|
83
|
-
}
|
|
84
64
|
}
|