@beterdichtbij/component-library 0.15.6 → 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.
@@ -85,6 +85,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
85
85
  required: false;
86
86
  default: number;
87
87
  };
88
+ mask: {
89
+ type: __PropType<string>;
90
+ required: true;
91
+ default: undefined;
92
+ };
88
93
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:modelValue" | "blur" | "enter")[], "click" | "update:modelValue" | "blur" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
89
94
  modelValue: {
90
95
  type: __PropType<string | undefined>;
@@ -171,6 +176,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
171
176
  required: false;
172
177
  default: number;
173
178
  };
179
+ mask: {
180
+ type: __PropType<string>;
181
+ required: true;
182
+ default: undefined;
183
+ };
174
184
  }>> & {
175
185
  onClick?: ((...args: any[]) => any) | undefined;
176
186
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -194,5 +204,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
194
204
  invalidFeedbackClass: string | undefined;
195
205
  invalidFeedbackText: string | undefined;
196
206
  delayTimeMs: number | undefined;
207
+ mask: string;
197
208
  }, {}>;
198
209
  export default _sfc_main;
@@ -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 };
@@ -17,4 +17,5 @@ export interface BDFormInputProps {
17
17
  invalidFeedbackClass?: string;
18
18
  invalidFeedbackText?: string;
19
19
  delayTimeMs?: number;
20
+ mask: string;
20
21
  }
@@ -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.15.6",
4
+ "version": "0.17.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [
@@ -69,6 +69,7 @@
69
69
  "@tiptap/vue-3": "2.1.12",
70
70
  "@vueuse/core": "10.6.1",
71
71
  "dropzone": "5.9.3",
72
+ "maska": "2.1.11",
72
73
  "uid": "2.0.2"
73
74
  },
74
75
  "devDependencies": {