@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.
@@ -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
- 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, };
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 };
@@ -1,10 +1,8 @@
1
1
  import { toastVariants } from '../types/ToastVariants';
2
- import { TeleportProps } from "vue";
3
2
  export interface BDToastProps {
4
3
  id?: string;
5
4
  show?: boolean;
6
5
  variant?: toastVariants;
7
- teleport?: TeleportProps;
8
6
  title?: string;
9
7
  text?: string;
10
8
  }
@@ -1,84 +1,64 @@
1
1
  .toast{
2
2
  &.bd-toast{
3
- position: absolute;
4
- margin: 0.5rem;
5
- bottom: 0%;
6
- right: 0%;
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
- .toast-header{
20
- border-bottom: 1px solid hsla(203, 62%, 51%, 0.4) ;
21
- padding: 20px 14px;
22
- display:flex;
23
- justify-content: baseline;
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
- button{
26
- margin-left:auto;
27
- margin-right:0px;
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
- svg{
31
- fill: $info;
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
- .toast-body {
38
- padding-left: 20px;
39
- }
32
+ .toast-header{
33
+ border-color: hsla(8, 74%, 53%, 0.4);
40
34
 
41
- &-danger{
42
- .toast-left-border{
43
- background-color: $danger;
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
- &-warning{
57
- .toast-left-border{
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
- svg{
64
- fill: $warning;
47
+ svg{
48
+ fill: $warning;
49
+ }
65
50
  }
66
51
  }
67
52
 
68
-
69
- }
53
+ &-success{
54
+ border-color: $success;
70
55
 
71
- &-success{
72
- .toast-left-border{
73
- background-color: $success;
74
- }
75
- .toast-header{
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.16.1",
4
+ "version": "0.17.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [