@beterdichtbij/component-library 0.7.1 → 0.9.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.
@@ -1,4 +1,5 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset")[], "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
2
2
  onSubmit?: ((...args: any[]) => any) | undefined;
3
+ onReset?: ((...args: any[]) => any) | undefined;
3
4
  }, {}, {}>;
4
5
  export default _sfc_main;
@@ -0,0 +1,54 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: __PropType<string | boolean>;
5
+ required: true;
6
+ default: undefined;
7
+ };
8
+ value: {
9
+ type: __PropType<string | boolean>;
10
+ required: true;
11
+ default: boolean;
12
+ };
13
+ uncheckedValue: {
14
+ type: __PropType<string | boolean>;
15
+ required: true;
16
+ default: boolean;
17
+ };
18
+ state: {
19
+ type: __PropType<import("../../../types/ValidationState").ValidationStateType>;
20
+ required: true;
21
+ default: undefined;
22
+ };
23
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "input")[], "update:modelValue" | "change" | "input", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ modelValue: {
25
+ type: __PropType<string | boolean>;
26
+ required: true;
27
+ default: undefined;
28
+ };
29
+ value: {
30
+ type: __PropType<string | boolean>;
31
+ required: true;
32
+ default: boolean;
33
+ };
34
+ uncheckedValue: {
35
+ type: __PropType<string | boolean>;
36
+ required: true;
37
+ default: boolean;
38
+ };
39
+ state: {
40
+ type: __PropType<import("../../../types/ValidationState").ValidationStateType>;
41
+ required: true;
42
+ default: undefined;
43
+ };
44
+ }>> & {
45
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
46
+ onChange?: ((...args: any[]) => any) | undefined;
47
+ onInput?: ((...args: any[]) => any) | undefined;
48
+ }, {
49
+ modelValue: string | boolean;
50
+ state: import("../../../types/ValidationState").ValidationStateType;
51
+ value: string | boolean;
52
+ uncheckedValue: string | boolean;
53
+ }, {}>;
54
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDFormCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDFormCheckbox/BDFormCheckbox.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,+GAA+G,CAAC;AACtI,cAAc,+GAA+G,CAAC;AAC9H,eAAe,SAAS,CAAC"}
@@ -1,2 +1,28 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
- export default _default;
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ label: {
4
+ type: __PropType<string | null | undefined>;
5
+ required: false;
6
+ default: undefined;
7
+ };
8
+ labelForId: {
9
+ type: __PropType<string | undefined>;
10
+ required: false;
11
+ default: undefined;
12
+ };
13
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ label: {
15
+ type: __PropType<string | null | undefined>;
16
+ required: false;
17
+ default: undefined;
18
+ };
19
+ labelForId: {
20
+ type: __PropType<string | undefined>;
21
+ required: false;
22
+ default: undefined;
23
+ };
24
+ }>>, {
25
+ label: string | null | undefined;
26
+ labelForId: string | undefined;
27
+ }, {}>;
28
+ export default _sfc_main;
@@ -1 +1 @@
1
- {"version":3,"file":"BDInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDInputGroup/BDInputGroup.vue"],"names":[],"mappings":";AAaA,wBAA4E"}
1
+ {"version":3,"file":"BDInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDInputGroup/BDInputGroup.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2GAA2G,CAAC;AAClI,cAAc,2GAA2G,CAAC;AAC1H,eAAe,SAAS,CAAC"}
@@ -0,0 +1,75 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ id: {
4
+ type: __PropType<string | undefined>;
5
+ required: false;
6
+ };
7
+ show: {
8
+ type: __PropType<boolean | undefined>;
9
+ required: false;
10
+ default: boolean;
11
+ };
12
+ variant: {
13
+ type: __PropType<import('../../../types/ToastVariants').toastVariants | undefined>;
14
+ required: false;
15
+ default: "info";
16
+ };
17
+ teleport: {
18
+ type: __PropType<import("vue").TeleportProps | undefined>;
19
+ required: false;
20
+ default: {
21
+ to: string;
22
+ disabled: boolean;
23
+ };
24
+ };
25
+ title: {
26
+ type: __PropType<string | undefined>;
27
+ required: false;
28
+ default: string;
29
+ };
30
+ text: {
31
+ type: __PropType<string | undefined>;
32
+ required: false;
33
+ default: string;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ id: {
37
+ type: __PropType<string | undefined>;
38
+ required: false;
39
+ };
40
+ show: {
41
+ type: __PropType<boolean | undefined>;
42
+ required: false;
43
+ default: boolean;
44
+ };
45
+ variant: {
46
+ type: __PropType<import('../../../types/ToastVariants').toastVariants | undefined>;
47
+ required: false;
48
+ default: "info";
49
+ };
50
+ teleport: {
51
+ type: __PropType<import("vue").TeleportProps | undefined>;
52
+ required: false;
53
+ default: {
54
+ to: string;
55
+ disabled: boolean;
56
+ };
57
+ };
58
+ title: {
59
+ type: __PropType<string | undefined>;
60
+ required: false;
61
+ default: string;
62
+ };
63
+ text: {
64
+ type: __PropType<string | undefined>;
65
+ required: false;
66
+ default: string;
67
+ };
68
+ }>>, {
69
+ variant: import('../../../types/ToastVariants').toastVariants | undefined;
70
+ text: string | undefined;
71
+ title: string | undefined;
72
+ show: boolean | undefined;
73
+ teleport: import("vue").TeleportProps | undefined;
74
+ }, {}>;
75
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDToast.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDToast/BDToast.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iGAAiG,CAAC;AACxH,cAAc,iGAAiG,CAAC;AAChH,eAAe,SAAS,CAAC"}
@@ -14,19 +14,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
14
14
  };
15
15
  };
16
16
  details: {
17
- type: __PropType<string[]>;
17
+ type: __PropType<string | string[]>;
18
18
  required: true;
19
- default: never[];
19
+ default: undefined;
20
20
  };
21
21
  hideImage: {
22
22
  type: __PropType<boolean>;
23
23
  required: true;
24
24
  default: boolean;
25
25
  };
26
- identifier: {
27
- type: __PropType<string | number>;
28
- required: true;
29
- };
30
26
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
27
  name: {
32
28
  type: __PropType<string>;
@@ -42,23 +38,19 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
38
  };
43
39
  };
44
40
  details: {
45
- type: __PropType<string[]>;
41
+ type: __PropType<string | string[]>;
46
42
  required: true;
47
- default: never[];
43
+ default: undefined;
48
44
  };
49
45
  hideImage: {
50
46
  type: __PropType<boolean>;
51
47
  required: true;
52
48
  default: boolean;
53
49
  };
54
- identifier: {
55
- type: __PropType<string | number>;
56
- required: true;
57
- };
58
50
  }>>, {
59
51
  name: string;
60
52
  img: import("../../../interfaces/BDImage").ImageProps;
61
- details: string[];
53
+ details: string | string[];
62
54
  hideImage: boolean;
63
55
  }, {}>;
64
56
  export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -16,11 +16,13 @@ import BDBadge from "./components/atoms/BDBadge/BDBadge.vue";
16
16
  import BDForm from "./components/atoms/BDForm/BDForm.vue";
17
17
  import BDPagination from "./components/atoms/BDPagination/BDPagination.vue";
18
18
  import BDFormSelect from "./components/atoms/BDFormSelect/BDFormSelect.vue";
19
+ import BDFormCheckbox from "./components/atoms/BDFormCheckbox/BDFormCheckbox.vue";
19
20
  import BDArticle from "./components/atoms/BDArticle/BDArticle.vue";
21
+ import BDToast from "./components/atoms/BDToast/BDToast.vue";
20
22
  import BDDropdownItem from "./components/molecules/BDDropdownItem/BDDropdownItem.vue";
21
23
  import BDDropzone from "./components/molecules/BDDropzone/BDDropzone.vue";
22
24
  import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue";
23
25
  import BDUser from "./components/molecules/BDUser/BDUser.vue";
24
26
  import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
25
27
  import BDModal from "./components/organisms/BDModal/BDModal.vue";
26
- export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, IconAttachment, IconBold, IconBulletList, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, BDArticle, BDUser };
28
+ export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, IconAttachment, IconBold, IconBulletList, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, BDArticle, BDUser, BDToast };
@@ -0,0 +1,7 @@
1
+ import { ValidationStateType } from '../types/ValidationState';
2
+ export interface bdFormCheckboxProps {
3
+ modelValue: boolean | string;
4
+ value: boolean | string;
5
+ uncheckedValue: boolean | string;
6
+ state: ValidationStateType;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface BDInputGroupProps {
2
+ label?: string | null;
3
+ labelForId?: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ import { toastVariants } from '../types/ToastVariants';
2
+ import { TeleportProps } from "vue";
3
+ export interface BDToastProps {
4
+ id?: string;
5
+ show?: boolean;
6
+ variant?: toastVariants;
7
+ teleport?: TeleportProps;
8
+ title?: string;
9
+ text?: string;
10
+ }
@@ -1,8 +1,7 @@
1
- import { identifierProp } from '../types/Identifier';
2
1
  import { ImageProps } from "./BDImage";
3
- export interface BDUserProps extends identifierProp {
2
+ export interface BDUserProps {
4
3
  name: string;
5
4
  img: ImageProps;
6
- details: string[];
5
+ details: string[] | string;
7
6
  hideImage: boolean;
8
7
  }
@@ -0,0 +1,8 @@
1
+ import { GenericEnum } from '../utils/type';
2
+ export declare const TOAST_VARIANTS: {
3
+ readonly DANGER: "danger";
4
+ readonly WARNING: "warning";
5
+ readonly INFO: "info";
6
+ readonly SUCCESS: "success";
7
+ };
8
+ export type toastVariants = GenericEnum<typeof TOAST_VARIANTS>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.7.1",
4
+ "version": "0.9.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [
@@ -67,6 +67,7 @@
67
67
  "@tiptap/extension-underline": "2.1.12",
68
68
  "@tiptap/pm": "2.1.12",
69
69
  "@tiptap/vue-3": "2.1.12",
70
+ "@types/bootstrap": "5.2.10",
70
71
  "@vueuse/core": "10.6.1",
71
72
  "dropzone": "5.9.3",
72
73
  "uid": "2.0.2"