@beterdichtbij/component-library 0.6.1 → 0.6.2

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.
Files changed (31) hide show
  1. package/dist/bd-component-lib.cjs.js +30 -30
  2. package/dist/bd-component-lib.css +1 -1
  3. package/dist/bd-component-lib.es.js +2392 -2354
  4. package/dist/bd-component-lib.umd.js +32 -32
  5. package/dist/components/atoms/BDAlert/BDAlert.vue.d.ts +9 -10
  6. package/dist/components/atoms/BDBadge/BDBadge.vue.d.ts +6 -6
  7. package/dist/components/atoms/BDButton/BDButton.vue.d.ts +16 -18
  8. package/dist/components/atoms/BDFormInput/BDFormInput.vue.d.ts +1 -1
  9. package/dist/components/atoms/BDFormSelect/BDFormSelect.vue.d.ts +5 -6
  10. package/dist/components/atoms/BDProfileImage/BDProfileImage.vue.d.ts +5 -6
  11. package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +5 -6
  12. package/dist/components/organisms/BDDropdown/BDDropdown.vue.d.ts +47 -17
  13. package/dist/index.d.ts +5 -2
  14. package/dist/layout/BDContainer.vue.d.ts +3 -4
  15. package/dist/types/BDAlert.d.ts +3 -2
  16. package/dist/types/BDButton.d.ts +5 -4
  17. package/dist/types/BDDropDown.d.ts +7 -3
  18. package/dist/types/BDFormSelect.d.ts +2 -2
  19. package/dist/types/BDImage.d.ts +2 -2
  20. package/dist/types/BDMarkdownEditor.d.ts +2 -2
  21. package/dist/types/BootstrapSizes.d.ts +8 -0
  22. package/dist/types/BootstrapVariants.d.ts +10 -0
  23. package/dist/types/ButtonColorVariants.d.ts +14 -0
  24. package/dist/types/tiptapVariants.d.ts +6 -0
  25. package/dist/utils/type.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/dist/enums/bootstrap.d.ts +0 -14
  28. package/dist/enums/tiptapVariants.d.ts +0 -4
  29. package/dist/enums/variants.d.ts +0 -12
  30. package/dist/types/BootstrapSize.d.ts +0 -4
  31. package/dist/types/BootstrapVariant.d.ts +0 -4
@@ -1,6 +1,10 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_VARIANTS } from "../../../enums/bootstrap";
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
+ variant: {
4
+ type: __PropType<import('../../../types/BootstrapVariants').bootstrapVariants | undefined>;
5
+ required: false;
6
+ default: "primary";
7
+ };
4
8
  class: {
5
9
  type: __PropType<string | undefined>;
6
10
  required: false;
@@ -11,12 +15,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
11
15
  required: false;
12
16
  default: string;
13
17
  };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
19
  variant: {
15
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
20
+ type: __PropType<import('../../../types/BootstrapVariants').bootstrapVariants | undefined>;
16
21
  required: false;
17
- default: BOOTSTRAP_VARIANTS;
22
+ default: "primary";
18
23
  };
19
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
24
  class: {
21
25
  type: __PropType<string | undefined>;
22
26
  required: false;
@@ -27,14 +31,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
27
31
  required: false;
28
32
  default: string;
29
33
  };
30
- variant: {
31
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
32
- required: false;
33
- default: BOOTSTRAP_VARIANTS;
34
- };
35
34
  }>>, {
36
- variant: BOOTSTRAP_VARIANTS | undefined;
37
35
  class: string | undefined;
36
+ variant: import('../../../types/BootstrapVariants').bootstrapVariants | undefined;
38
37
  title: string | undefined;
39
38
  }, {}>;
40
39
  export default _sfc_main;
@@ -1,18 +1,18 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_VARIANTS } from '../../../enums/bootstrap';
2
+ import { bootstrapVariants } from '../../../types/BootstrapVariants';
3
3
  declare const _sfc_main: import("vue").DefineComponent<{
4
4
  variant: {
5
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
5
+ type: __PropType<bootstrapVariants | undefined>;
6
6
  required: false;
7
- default: BOOTSTRAP_VARIANTS;
7
+ default: "primary";
8
8
  };
9
9
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
10
  variant: {
11
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
11
+ type: __PropType<bootstrapVariants | undefined>;
12
12
  required: false;
13
- default: BOOTSTRAP_VARIANTS;
13
+ default: "primary";
14
14
  };
15
15
  }>>, {
16
- variant: BOOTSTRAP_VARIANTS | undefined;
16
+ variant: bootstrapVariants | undefined;
17
17
  }, {}>;
18
18
  export default _sfc_main;
@@ -1,11 +1,14 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_SIZES } from "../../../enums/bootstrap";
3
- import { BTN_VARIANTS } from "../../../enums/variants";
4
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
+ size: {
4
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
5
+ required: false;
6
+ default: "md";
7
+ };
5
8
  variant: {
6
- type: __PropType<BTN_VARIANTS | undefined>;
9
+ type: __PropType<import('../../../types/ButtonColorVariants').btnColorVariants | undefined>;
7
10
  required: false;
8
- default: BTN_VARIANTS;
11
+ default: "primary";
9
12
  };
10
13
  blockElement: {
11
14
  type: __PropType<boolean | undefined>;
@@ -16,11 +19,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
16
19
  required: false;
17
20
  default: boolean;
18
21
  };
19
- size: {
20
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
21
- required: false;
22
- default: BOOTSTRAP_SIZES;
23
- };
24
22
  to: {
25
23
  type: __PropType<string | object>;
26
24
  required: true;
@@ -42,10 +40,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
40
  required: false;
43
41
  };
44
42
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ size: {
44
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
45
+ required: false;
46
+ default: "md";
47
+ };
45
48
  variant: {
46
- type: __PropType<BTN_VARIANTS | undefined>;
49
+ type: __PropType<import('../../../types/ButtonColorVariants').btnColorVariants | undefined>;
47
50
  required: false;
48
- default: BTN_VARIANTS;
51
+ default: "primary";
49
52
  };
50
53
  blockElement: {
51
54
  type: __PropType<boolean | undefined>;
@@ -56,11 +59,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
56
59
  required: false;
57
60
  default: boolean;
58
61
  };
59
- size: {
60
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
61
- required: false;
62
- default: BOOTSTRAP_SIZES;
63
- };
64
62
  to: {
65
63
  type: __PropType<string | object>;
66
64
  required: true;
@@ -84,8 +82,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
84
82
  }>> & {
85
83
  onClick?: ((...args: any[]) => any) | undefined;
86
84
  }, {
87
- variant: BTN_VARIANTS | undefined;
85
+ size: import('../../../types/BootstrapSizes').bootstrapSizes | undefined;
86
+ variant: import('../../../types/ButtonColorVariants').btnColorVariants | undefined;
88
87
  disabled: boolean | undefined;
89
- size: BOOTSTRAP_SIZES | undefined;
90
88
  }, {}>;
91
89
  export default _sfc_main;
@@ -157,8 +157,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
157
157
  onBlur?: ((...args: any[]) => any) | undefined;
158
158
  onEnter?: ((...args: any[]) => any) | undefined;
159
159
  }, {
160
- disabled: boolean | null | undefined;
161
160
  type: string;
161
+ disabled: boolean | null | undefined;
162
162
  modelValue: string | undefined;
163
163
  state: boolean | null | undefined;
164
164
  readonly: boolean | null | undefined;
@@ -1,10 +1,9 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_SIZES } from '../../../enums/bootstrap';
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
4
3
  size: {
5
- type: __PropType<BOOTSTRAP_SIZES.SM | BOOTSTRAP_SIZES.MD | BOOTSTRAP_SIZES.LG | undefined>;
4
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
6
5
  required: false;
7
- default: BOOTSTRAP_SIZES;
6
+ default: "md";
8
7
  };
9
8
  disabled: {
10
9
  type: __PropType<boolean | undefined>;
@@ -29,9 +28,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
28
  };
30
29
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "input")[], "change" | "update:modelValue" | "input", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
30
  size: {
32
- type: __PropType<BOOTSTRAP_SIZES.SM | BOOTSTRAP_SIZES.MD | BOOTSTRAP_SIZES.LG | undefined>;
31
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
33
32
  required: false;
34
- default: BOOTSTRAP_SIZES;
33
+ default: "md";
35
34
  };
36
35
  disabled: {
37
36
  type: __PropType<boolean | undefined>;
@@ -59,7 +58,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
59
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
60
59
  onInput?: ((...args: any[]) => any) | undefined;
61
60
  }, {
62
- size: BOOTSTRAP_SIZES.SM | BOOTSTRAP_SIZES.MD | BOOTSTRAP_SIZES.LG | undefined;
61
+ size: import('../../../types/BootstrapSizes').bootstrapSizes | undefined;
63
62
  state: import("../../../types/ValidationState").ValidationStateType | undefined;
64
63
  }, {}>;
65
64
  export default _sfc_main;
@@ -1,5 +1,4 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_SIZES } from "../../../enums/bootstrap";
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
4
3
  showFooter: {
5
4
  type: __PropType<boolean>;
@@ -7,9 +6,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
7
6
  default: boolean;
8
7
  };
9
8
  size: {
10
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
9
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
11
10
  required: false;
12
- default: BOOTSTRAP_SIZES;
11
+ default: "lg";
13
12
  };
14
13
  linkText: {
15
14
  type: __PropType<string>;
@@ -33,9 +32,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
32
  default: boolean;
34
33
  };
35
34
  size: {
36
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
35
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
37
36
  required: false;
38
- default: BOOTSTRAP_SIZES;
37
+ default: "lg";
39
38
  };
40
39
  linkText: {
41
40
  type: __PropType<string>;
@@ -55,7 +54,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
55
54
  }>> & {
56
55
  onClick?: ((...args: any[]) => any) | undefined;
57
56
  }, {
58
- size: BOOTSTRAP_SIZES | undefined;
57
+ size: import('../../../types/BootstrapSizes').bootstrapSizes | undefined;
59
58
  showFooter: boolean;
60
59
  linkText: string;
61
60
  src: string;
@@ -1,5 +1,4 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { TIPTAP_VARIANTS } from '../../../enums/tiptapVariants';
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
4
3
  placeholder: {
5
4
  type: __PropType<string | undefined>;
@@ -14,9 +13,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
14
13
  required: false;
15
14
  };
16
15
  variant: {
17
- type: __PropType<TIPTAP_VARIANTS>;
16
+ type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
18
17
  required: true;
19
- default: TIPTAP_VARIANTS;
18
+ default: "basic";
20
19
  };
21
20
  modelValue: {
22
21
  type: __PropType<string>;
@@ -36,9 +35,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
35
  required: false;
37
36
  };
38
37
  variant: {
39
- type: __PropType<TIPTAP_VARIANTS>;
38
+ type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
40
39
  required: true;
41
- default: TIPTAP_VARIANTS;
40
+ default: "basic";
42
41
  };
43
42
  modelValue: {
44
43
  type: __PropType<string>;
@@ -47,6 +46,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
47
46
  }>> & {
48
47
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
48
  }, {
50
- variant: TIPTAP_VARIANTS;
49
+ variant: import('../../../types/tiptapVariants').TiptapVariants;
51
50
  }, {}>;
52
51
  export default _sfc_main;
@@ -1,72 +1,102 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_SIZES, BOOTSTRAP_VARIANTS } from "../../../enums/bootstrap";
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
+ size: {
4
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
5
+ required: false;
6
+ default: "md";
7
+ };
8
+ variant: {
9
+ type: __PropType<import('../../../types/BootstrapVariants').bootstrapVariants | undefined>;
10
+ required: false;
11
+ default: "primary";
12
+ };
4
13
  right: {
5
14
  type: __PropType<boolean | undefined>;
6
15
  required: false;
16
+ default: undefined;
7
17
  };
8
18
  noFlip: {
9
19
  type: __PropType<boolean | undefined>;
10
20
  required: false;
21
+ default: undefined;
11
22
  };
12
23
  toggleTag: {
13
24
  type: __PropType<string>;
14
25
  required: true;
15
26
  default: string;
16
27
  };
17
- text: {
28
+ toggleClass: {
18
29
  type: __PropType<string | undefined>;
19
30
  required: false;
20
31
  };
21
- variant: {
22
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
32
+ actionToggle: {
33
+ type: __PropType<boolean | undefined>;
23
34
  required: false;
24
- default: BOOTSTRAP_VARIANTS;
35
+ default: undefined;
25
36
  };
26
- size: {
27
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
37
+ text: {
38
+ type: __PropType<string | undefined>;
28
39
  required: false;
29
- default: BOOTSTRAP_SIZES;
40
+ default: string;
30
41
  };
31
42
  offset: {
32
43
  type: __PropType<string | [(number | undefined)?, (number | undefined)?] | undefined>;
33
44
  required: false;
45
+ default: undefined;
34
46
  };
35
47
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ size: {
49
+ type: __PropType<import('../../../types/BootstrapSizes').bootstrapSizes | undefined>;
50
+ required: false;
51
+ default: "md";
52
+ };
53
+ variant: {
54
+ type: __PropType<import('../../../types/BootstrapVariants').bootstrapVariants | undefined>;
55
+ required: false;
56
+ default: "primary";
57
+ };
36
58
  right: {
37
59
  type: __PropType<boolean | undefined>;
38
60
  required: false;
61
+ default: undefined;
39
62
  };
40
63
  noFlip: {
41
64
  type: __PropType<boolean | undefined>;
42
65
  required: false;
66
+ default: undefined;
43
67
  };
44
68
  toggleTag: {
45
69
  type: __PropType<string>;
46
70
  required: true;
47
71
  default: string;
48
72
  };
49
- text: {
73
+ toggleClass: {
50
74
  type: __PropType<string | undefined>;
51
75
  required: false;
52
76
  };
53
- variant: {
54
- type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
77
+ actionToggle: {
78
+ type: __PropType<boolean | undefined>;
55
79
  required: false;
56
- default: BOOTSTRAP_VARIANTS;
80
+ default: undefined;
57
81
  };
58
- size: {
59
- type: __PropType<BOOTSTRAP_SIZES | undefined>;
82
+ text: {
83
+ type: __PropType<string | undefined>;
60
84
  required: false;
61
- default: BOOTSTRAP_SIZES;
85
+ default: string;
62
86
  };
63
87
  offset: {
64
88
  type: __PropType<string | [(number | undefined)?, (number | undefined)?] | undefined>;
65
89
  required: false;
90
+ default: undefined;
66
91
  };
67
92
  }>>, {
68
- variant: BOOTSTRAP_VARIANTS | undefined;
69
- size: BOOTSTRAP_SIZES | undefined;
93
+ size: import('../../../types/BootstrapSizes').bootstrapSizes | undefined;
94
+ variant: import('../../../types/BootstrapVariants').bootstrapVariants | undefined;
95
+ text: string | undefined;
96
+ right: boolean | undefined;
97
+ noFlip: boolean | undefined;
70
98
  toggleTag: string;
99
+ actionToggle: boolean | undefined;
100
+ offset: string | [(number | undefined)?, (number | undefined)?] | undefined;
71
101
  }, {}>;
72
102
  export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ import BDCol from "./layout/BDCol.vue";
2
+ import BDContainer from "./layout/BDContainer.vue";
3
+ import BDRow from "./layout/BDRow.vue";
4
+ import { IconAttachment, IconBold, IconBulletList, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline } from "./components/atoms/icons/index";
1
5
  import BDButton from "./components/atoms/BDButton/BDButton.vue";
2
6
  import BDLogo from "./components/atoms/BDLogo/BDLogo.vue";
3
7
  import BDLink from "./components/atoms/BDLink/BDLink.vue";
@@ -18,5 +22,4 @@ import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdown
18
22
  import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
19
23
  import BDHeader from "./components/organisms/BDHeader/BDHeader.vue";
20
24
  import BDModal from "./components/organisms/BDModal/BDModal.vue";
21
- import { BOOTSTRAP_VARIANTS } from "./enums/bootstrap";
22
- export { BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDHeader, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BOOTSTRAP_VARIANTS };
25
+ export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDHeader, 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 };
@@ -1,5 +1,4 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import { BOOTSTRAP_SIZES } from "../enums/bootstrap";
3
2
  declare const _sfc_main: import("vue").DefineComponent<{
4
3
  class: {
5
4
  type: __PropType<string | undefined>;
@@ -7,7 +6,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
7
6
  default: string;
8
7
  };
9
8
  fluid: {
10
- type: __PropType<boolean | BOOTSTRAP_SIZES | undefined>;
9
+ type: __PropType<any>;
11
10
  required: false;
12
11
  skipCheck: boolean;
13
12
  default: boolean;
@@ -19,13 +18,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
19
18
  default: string;
20
19
  };
21
20
  fluid: {
22
- type: __PropType<boolean | BOOTSTRAP_SIZES | undefined>;
21
+ type: __PropType<any>;
23
22
  required: false;
24
23
  skipCheck: boolean;
25
24
  default: boolean;
26
25
  };
27
26
  }>>, {
28
27
  class: string | undefined;
29
- fluid: boolean | BOOTSTRAP_SIZES | undefined;
28
+ fluid: any;
30
29
  }, {}>;
31
30
  export default _sfc_main;
@@ -1,5 +1,6 @@
1
- import { props as BootstrapVariant } from "./BootstrapVariant";
2
- export interface props extends BootstrapVariant {
1
+ import { bootstrapVariants } from "./BootstrapVariants";
2
+ export interface props {
3
+ variant?: bootstrapVariants;
3
4
  class?: string;
4
5
  title?: string;
5
6
  }
@@ -1,8 +1,9 @@
1
- import { bootstrapSize } from "./BootstrapSize";
2
- import { BTN_VARIANTS } from '../enums/variants';
1
+ import { bootstrapSizes } from '../types/BootstrapSizes';
2
+ import { btnColorVariants } from '../types/ButtonColorVariants';
3
3
  import { props as linkProps } from "./BDLink";
4
- export interface props extends bootstrapSize, linkProps {
5
- variant?: BTN_VARIANTS;
4
+ export interface props extends linkProps {
5
+ size?: bootstrapSizes;
6
+ variant?: btnColorVariants;
6
7
  blockElement?: boolean;
7
8
  disabled?: boolean;
8
9
  }
@@ -1,9 +1,13 @@
1
1
  import { props as BDTextType } from "./BDText";
2
- import { props as BootstrapVariant } from "./BootstrapVariant";
3
- import { bootstrapSize } from "./BootstrapSize";
2
+ import { bootstrapVariants } from "./BootstrapVariants";
3
+ import { bootstrapSizes } from '../types/BootstrapSizes';
4
4
  import { PopperOffset } from "./PopperOffset";
5
- export interface props extends BDTextType, BootstrapVariant, bootstrapSize, PopperOffset {
5
+ export interface props extends BDTextType, PopperOffset {
6
+ size?: bootstrapSizes;
7
+ variant?: bootstrapVariants;
6
8
  right?: boolean;
7
9
  noFlip?: boolean;
8
10
  toggleTag: string;
11
+ toggleClass?: string;
12
+ actionToggle?: boolean;
9
13
  }
@@ -1,9 +1,9 @@
1
1
  import { ModelValueStringAndNumber } from "./ModelValue";
2
2
  import { ValidationState } from './ValidationState';
3
3
  import { BDOption } from "./BDOption";
4
- import { BOOTSTRAP_SIZES } from '../enums/bootstrap';
4
+ import { bootstrapSizes } from './BootstrapSizes';
5
5
  export interface BDFormSelectProps extends ModelValueStringAndNumber, ValidationState {
6
- size?: BOOTSTRAP_SIZES.SM | BOOTSTRAP_SIZES.MD | BOOTSTRAP_SIZES.LG;
6
+ size?: bootstrapSizes;
7
7
  disabled?: boolean;
8
8
  autofocus?: boolean;
9
9
  options?: BDOption[];
@@ -1,10 +1,10 @@
1
- import { BOOTSTRAP_SIZES } from "../enums/bootstrap";
1
+ import { bootstrapSizes } from '../types/BootstrapSizes';
2
2
  export interface ImageProps {
3
3
  src: string;
4
4
  alt?: string;
5
5
  }
6
6
  export interface BDProfileImageProps extends ImageProps {
7
7
  showFooter: boolean;
8
- size?: BOOTSTRAP_SIZES;
8
+ size?: bootstrapSizes;
9
9
  linkText: string;
10
10
  }
@@ -1,8 +1,8 @@
1
1
  import { ModelValueString } from "./ModelValue";
2
- import { TIPTAP_VARIANTS } from '../enums/tiptapVariants';
2
+ import { TiptapVariants } from '../types/tiptapVariants';
3
3
  export interface BDMarkdownEditorProps extends ModelValueString {
4
4
  placeholder?: string;
5
5
  errorText?: string;
6
6
  state?: boolean;
7
- variant: TIPTAP_VARIANTS;
7
+ variant: TiptapVariants;
8
8
  }
@@ -0,0 +1,8 @@
1
+ import { GenericEnum } from '../utils/type';
2
+ export declare const BOOTSTRAP_SIZES: {
3
+ readonly XS: "xs";
4
+ readonly SM: "sm";
5
+ readonly MD: "md";
6
+ readonly LG: "lg";
7
+ };
8
+ export type bootstrapSizes = GenericEnum<typeof BOOTSTRAP_SIZES>;
@@ -0,0 +1,10 @@
1
+ import { GenericEnum } from '../utils/type';
2
+ export declare const BOOTSTRAP_VARIANTS: {
3
+ readonly PRIMARY: "primary";
4
+ readonly SECONDARY: "secondary";
5
+ readonly DANGER: "danger";
6
+ readonly WARNING: "warning";
7
+ readonly INFO: "info";
8
+ readonly SUCCESS: "success";
9
+ };
10
+ export type bootstrapVariants = GenericEnum<typeof BOOTSTRAP_VARIANTS>;
@@ -0,0 +1,14 @@
1
+ import { GenericEnum } from '../utils/type';
2
+ export declare const BTN_COLOR_VARIANTS: {
3
+ readonly PRIMARY: "primary";
4
+ readonly SECONDARY: "secondary";
5
+ readonly COLLEAGUE: "colleague";
6
+ readonly DANGER: "danger";
7
+ readonly OUT_PRIMARY: "outline-primary";
8
+ readonly OUT_PRIMARY_DARK: "outline-primary-dark";
9
+ readonly OUT_TERTIARY: "outline-tertiary";
10
+ readonly OUT_LINK: "link";
11
+ readonly LIGHT: "light";
12
+ readonly DARK: "dark";
13
+ };
14
+ export type btnColorVariants = GenericEnum<typeof BTN_COLOR_VARIANTS>;
@@ -0,0 +1,6 @@
1
+ import { GenericEnum } from '../utils/type';
2
+ export declare const TIPTAP_VARIANTS: {
3
+ readonly BASIC: "basic";
4
+ readonly FULL: "full";
5
+ };
6
+ export type TiptapVariants = GenericEnum<typeof TIPTAP_VARIANTS>;
@@ -0,0 +1 @@
1
+ export type GenericEnum<T> = T[keyof T];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [
@@ -1,14 +0,0 @@
1
- export declare enum BOOTSTRAP_SIZES {
2
- XS = "xs",
3
- SM = "sm",
4
- MD = "md",
5
- LG = "lg"
6
- }
7
- export declare enum BOOTSTRAP_VARIANTS {
8
- PRIMARY = "primary",
9
- SECONDARY = "secondary",
10
- DANGER = "danger",
11
- WARNING = "warning",
12
- INFO = "info",
13
- SUCCESS = "success"
14
- }
@@ -1,4 +0,0 @@
1
- export declare enum TIPTAP_VARIANTS {
2
- BASIC = "basic",
3
- FULL = "full"
4
- }
@@ -1,12 +0,0 @@
1
- export declare enum BTN_VARIANTS {
2
- PRIMARY = "primary",
3
- SECONDARY = "secondary",
4
- COLLEAGUE = "colleague",
5
- DANGER = "danger",
6
- OUT_PRIMARY = "outline-primary",
7
- OUT_PRIMARY_DARK = "outline-primary-dark",
8
- OUT_TERTIARY = "outline-tertiary",
9
- OUT_LINK = "link",
10
- LIGHT = "light",
11
- DARK = "dark"
12
- }
@@ -1,4 +0,0 @@
1
- import { BOOTSTRAP_SIZES } from '../enums/bootstrap';
2
- export interface bootstrapSize {
3
- size?: BOOTSTRAP_SIZES;
4
- }
@@ -1,4 +0,0 @@
1
- import { BOOTSTRAP_VARIANTS } from '../enums/bootstrap';
2
- export interface props {
3
- variant?: BOOTSTRAP_VARIANTS;
4
- }