@beterdichtbij/component-library 0.0.2 → 0.1.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.
Files changed (35) hide show
  1. package/dist/bd-component-lib.cjs.js +1 -1
  2. package/dist/bd-component-lib.css +3 -4
  3. package/dist/bd-component-lib.es.js +234 -161
  4. package/dist/bd-component-lib.umd.js +5 -6
  5. package/dist/components/atoms/BDAlert/BDAlert.vue.d.ts +9 -9
  6. package/dist/components/atoms/BDCard/BDCard.vue.d.ts +94 -0
  7. package/dist/components/atoms/BDCard/BDCard.vue.d.ts.map +1 -0
  8. package/dist/components/atoms/icons/IconAttachment.vue.d.ts.map +1 -0
  9. package/dist/components/atoms/icons/IconCaretLeft.vue.d.ts +2 -0
  10. package/dist/components/atoms/icons/IconCaretLeft.vue.d.ts.map +1 -0
  11. package/dist/components/atoms/icons/IconCaretRight.vue.d.ts +2 -0
  12. package/dist/components/atoms/icons/IconCaretRight.vue.d.ts.map +1 -0
  13. package/dist/components/atoms/icons/IconCheck.vue.d.ts +2 -0
  14. package/dist/components/atoms/icons/IconCheck.vue.d.ts.map +1 -0
  15. package/dist/components/atoms/icons/IconClose.vue.d.ts +2 -0
  16. package/dist/components/atoms/icons/IconClose.vue.d.ts.map +1 -0
  17. package/dist/components/atoms/icons/IconError.vue.d.ts +2 -0
  18. package/dist/components/atoms/icons/IconError.vue.d.ts.map +1 -0
  19. package/dist/components/atoms/icons/IconFile.vue.d.ts +2 -0
  20. package/dist/components/atoms/icons/IconFile.vue.d.ts.map +1 -0
  21. package/dist/components/atoms/icons/IconInfo.vue.d.ts +2 -0
  22. package/dist/components/atoms/icons/IconInfo.vue.d.ts.map +1 -0
  23. package/dist/components/atoms/icons/IconRemove.vue.d.ts +2 -0
  24. package/dist/components/atoms/icons/IconRemove.vue.d.ts.map +1 -0
  25. package/dist/components/atoms/icons/index.d.ts +10 -0
  26. package/dist/components/organisms/BDDropdown/BDDropdown.vue.d.ts +60 -1
  27. package/dist/types/BDAlert.d.ts +2 -3
  28. package/dist/types/BDDropDown.d.ts +9 -0
  29. package/dist/types/BDImage.d.ts +1 -1
  30. package/dist/types/BootstrapSize.d.ts +4 -0
  31. package/dist/types/BootstrapVariant.d.ts +4 -0
  32. package/dist/types/PopperOffset.d.ts +3 -0
  33. package/package.json +26 -16
  34. package/dist/components/atoms/icons/icon-info.vue.d.ts.map +0 -1
  35. /package/dist/components/atoms/icons/{icon-info.vue.d.ts → IconAttachment.vue.d.ts} +0 -0
@@ -6,18 +6,23 @@ declare const _sfc_main: import("vue").DefineComponent<{
6
6
  required: false;
7
7
  default: string;
8
8
  };
9
+ title: {
10
+ type: __PropType<string | undefined>;
11
+ required: false;
12
+ default: string;
13
+ };
9
14
  variant: {
10
15
  type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
11
16
  required: false;
12
17
  default: BOOTSTRAP_VARIANTS;
13
18
  };
14
- title: {
19
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ class: {
15
21
  type: __PropType<string | undefined>;
16
22
  required: false;
17
23
  default: string;
18
24
  };
19
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
- class: {
25
+ title: {
21
26
  type: __PropType<string | undefined>;
22
27
  required: false;
23
28
  default: string;
@@ -27,14 +32,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
27
32
  required: false;
28
33
  default: BOOTSTRAP_VARIANTS;
29
34
  };
30
- title: {
31
- type: __PropType<string | undefined>;
32
- required: false;
33
- default: string;
34
- };
35
35
  }>>, {
36
36
  class: string | undefined;
37
- variant: BOOTSTRAP_VARIANTS | undefined;
38
37
  title: string | undefined;
38
+ variant: BOOTSTRAP_VARIANTS | undefined;
39
39
  }, {}>;
40
40
  export default _sfc_main;
@@ -0,0 +1,94 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ class: {
4
+ type: __PropType<string | undefined>;
5
+ required: false;
6
+ default: string;
7
+ };
8
+ title: {
9
+ type: __PropType<string | undefined>;
10
+ required: false;
11
+ default: string;
12
+ };
13
+ noHeader: {
14
+ type: __PropType<boolean | undefined>;
15
+ required: false;
16
+ default: boolean;
17
+ };
18
+ noBody: {
19
+ type: __PropType<boolean | undefined>;
20
+ required: false;
21
+ default: boolean;
22
+ };
23
+ headerClass: {
24
+ type: __PropType<string | undefined>;
25
+ required: false;
26
+ default: string;
27
+ };
28
+ bodyClass: {
29
+ type: __PropType<string | undefined>;
30
+ required: false;
31
+ default: string;
32
+ };
33
+ id: {
34
+ type: __PropType<number | undefined>;
35
+ required: false;
36
+ default: number;
37
+ };
38
+ headerVariant: {
39
+ type: __PropType<string | undefined>;
40
+ required: false;
41
+ default: string;
42
+ };
43
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ class: {
45
+ type: __PropType<string | undefined>;
46
+ required: false;
47
+ default: string;
48
+ };
49
+ title: {
50
+ type: __PropType<string | undefined>;
51
+ required: false;
52
+ default: string;
53
+ };
54
+ noHeader: {
55
+ type: __PropType<boolean | undefined>;
56
+ required: false;
57
+ default: boolean;
58
+ };
59
+ noBody: {
60
+ type: __PropType<boolean | undefined>;
61
+ required: false;
62
+ default: boolean;
63
+ };
64
+ headerClass: {
65
+ type: __PropType<string | undefined>;
66
+ required: false;
67
+ default: string;
68
+ };
69
+ bodyClass: {
70
+ type: __PropType<string | undefined>;
71
+ required: false;
72
+ default: string;
73
+ };
74
+ id: {
75
+ type: __PropType<number | undefined>;
76
+ required: false;
77
+ default: number;
78
+ };
79
+ headerVariant: {
80
+ type: __PropType<string | undefined>;
81
+ required: false;
82
+ default: string;
83
+ };
84
+ }>>, {
85
+ class: string | undefined;
86
+ title: string | undefined;
87
+ noHeader: boolean | undefined;
88
+ noBody: boolean | undefined;
89
+ headerClass: string | undefined;
90
+ bodyClass: string | undefined;
91
+ id: number | undefined;
92
+ headerVariant: string | undefined;
93
+ }, {}>;
94
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDCard/BDCard.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8IAA8I,CAAC;AACrK,cAAc,8IAA8I,CAAC;AAC7J,eAAe,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconAttachment.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconAttachment.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconCaretLeft.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconCaretLeft.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconCaretRight.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconCaretRight.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconCheck.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconCheck.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconClose.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconClose.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconError.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconError.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconFile.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconFile.vue"],"names":[],"mappings":";AA8BA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconInfo.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconInfo.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconRemove.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconRemove.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,10 @@
1
+ import IconCheck from "./IconCheck.vue";
2
+ import IconError from "./IconError.vue";
3
+ import IconAttachment from "./IconAttachment.vue";
4
+ import IconInfo from "./IconInfo.vue";
5
+ import IconRemove from "./IconRemove.vue";
6
+ import IconFile from "./IconFile.vue";
7
+ import IconCaretRight from "./IconCaretRight.vue";
8
+ import IconCaretLeft from "./IconCaretLeft.vue";
9
+ import IconClose from './IconClose.vue';
10
+ export { IconAttachment, IconCheck, IconError, IconInfo, IconRemove, IconFile, IconCaretRight, IconCaretLeft, IconClose };
@@ -1,13 +1,72 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
+ import { BOOTSTRAP_SIZES, BOOTSTRAP_VARIANTS } from "../../../enums/bootstrap";
2
3
  declare const _sfc_main: import("vue").DefineComponent<{
4
+ right: {
5
+ type: __PropType<boolean | undefined>;
6
+ required: false;
7
+ };
8
+ noFlip: {
9
+ type: __PropType<boolean | undefined>;
10
+ required: false;
11
+ };
12
+ toggleTag: {
13
+ type: __PropType<string>;
14
+ required: true;
15
+ default: string;
16
+ };
3
17
  text: {
4
18
  type: __PropType<string | undefined>;
5
19
  required: false;
6
20
  };
21
+ variant: {
22
+ type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
23
+ required: false;
24
+ default: BOOTSTRAP_VARIANTS;
25
+ };
26
+ size: {
27
+ type: __PropType<BOOTSTRAP_SIZES | undefined>;
28
+ required: false;
29
+ default: BOOTSTRAP_SIZES;
30
+ };
31
+ offset: {
32
+ type: __PropType<string | [(number | undefined)?, (number | undefined)?] | undefined>;
33
+ required: false;
34
+ };
7
35
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ right: {
37
+ type: __PropType<boolean | undefined>;
38
+ required: false;
39
+ };
40
+ noFlip: {
41
+ type: __PropType<boolean | undefined>;
42
+ required: false;
43
+ };
44
+ toggleTag: {
45
+ type: __PropType<string>;
46
+ required: true;
47
+ default: string;
48
+ };
8
49
  text: {
9
50
  type: __PropType<string | undefined>;
10
51
  required: false;
11
52
  };
12
- }>>, {}, {}>;
53
+ variant: {
54
+ type: __PropType<BOOTSTRAP_VARIANTS | undefined>;
55
+ required: false;
56
+ default: BOOTSTRAP_VARIANTS;
57
+ };
58
+ size: {
59
+ type: __PropType<BOOTSTRAP_SIZES | undefined>;
60
+ required: false;
61
+ default: BOOTSTRAP_SIZES;
62
+ };
63
+ offset: {
64
+ type: __PropType<string | [(number | undefined)?, (number | undefined)?] | undefined>;
65
+ required: false;
66
+ };
67
+ }>>, {
68
+ toggleTag: string;
69
+ variant: BOOTSTRAP_VARIANTS | undefined;
70
+ size: BOOTSTRAP_SIZES | undefined;
71
+ }, {}>;
13
72
  export default _sfc_main;
@@ -1,6 +1,5 @@
1
- import { BOOTSTRAP_VARIANTS } from "../enums/bootstrap";
2
- export interface props {
1
+ import { props as BootstrapVariant } from "./BootstrapVariant";
2
+ export interface props extends BootstrapVariant {
3
3
  class?: string;
4
- variant?: BOOTSTRAP_VARIANTS;
5
4
  title?: string;
6
5
  }
@@ -0,0 +1,9 @@
1
+ import { props as BDTextType } from "./BDText";
2
+ import { props as BootstrapVariant } from "./BootstrapVariant";
3
+ import { bootstrapSize } from "./BootstrapSize";
4
+ import { PopperOffset } from "./PopperOffset";
5
+ export interface props extends BDTextType, BootstrapVariant, bootstrapSize, PopperOffset {
6
+ right?: boolean;
7
+ noFlip?: boolean;
8
+ toggleTag: string;
9
+ }
@@ -1,4 +1,4 @@
1
- import { BOOTSTRAP_SIZES } from "../enums/bootstrap.ts";
1
+ import { BOOTSTRAP_SIZES } from "../enums/bootstrap";
2
2
  export interface ImageProps {
3
3
  src: string;
4
4
  alt?: string;
@@ -0,0 +1,4 @@
1
+ import { BOOTSTRAP_SIZES } from '../enums/bootstrap';
2
+ export interface bootstrapSize {
3
+ size?: BOOTSTRAP_SIZES;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { BOOTSTRAP_VARIANTS } from '../enums/bootstrap';
2
+ export interface props {
3
+ variant?: BOOTSTRAP_VARIANTS;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface PopperOffset {
2
+ offset?: [number?, number?] | string;
3
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.1.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [
@@ -22,14 +22,20 @@
22
22
  "types": "./dist/main.d.ts",
23
23
  "scripts": {
24
24
  "dev": "vite",
25
- "build": "vite build && vue-tsc --emitDeclarationOnly",
25
+ "build": "vite build",
26
26
  "preview": "vite preview",
27
27
  "storybook": "storybook dev -p 6006",
28
- "build:lib": "vite build",
28
+ "install:publish" : "npm run audit:lib && npm install",
29
+ "build:lib": "tsc && vite build",
29
30
  "build:storybook": "storybook build",
31
+ "build:publish": "npm run install:publish && npm run test:ci && npm run build:lib && npm run build:storybook",
30
32
  "audit:lib": "npm audit --package-lock-only --audit-level=critical --include=prod --omit=dev",
31
- "lint:js": "eslint src --ext .ts,.vue",
32
- "vitest": "vitest --config vitest.config.ts"
33
+ "publish": "npm publish",
34
+ "publish:sb": "swa deploy --env production",
35
+ "publish:sb-prod": "swa deploy --config swa-cli-prod.config.json --env production",
36
+ "lint:js": "eslint src --ext .ts,.vue --fix",
37
+ "vitest": "vitest --config vitest.config.ts --coverage",
38
+ "test:ci": "vitest run --reporter=default --reporter=junit --outputFile=reports/junit.xml --coverage"
33
39
  },
34
40
  "keywords": [
35
41
  "vue",
@@ -41,23 +47,29 @@
41
47
  "peerDependencies": {
42
48
  "vue": "^3.2.47"
43
49
  },
50
+ "dependencies": {
51
+ "dropzone": "5.9.3",
52
+ "uid": "2.0.2"
53
+ },
44
54
  "devDependencies": {
55
+ "@azure/static-web-apps-cli": "1.1.4",
45
56
  "@fontsource/quicksand": "^5.0.2",
46
57
  "@fontsource/work-sans": "^5.0.2",
47
- "@storybook/addon-essentials": "^7.5.0",
48
- "@storybook/addon-interactions": "^7.5.0",
49
- "@storybook/addon-links": "^7.5.0",
50
- "@storybook/blocks": "^7.5.0",
58
+ "@storybook/addon-essentials": "^7.0.11",
59
+ "@storybook/addon-interactions": "^7.0.11",
60
+ "@storybook/addon-links": "^7.0.11",
61
+ "@storybook/blocks": "^7.0.11",
51
62
  "@storybook/testing-library": "^0.2.2",
52
- "@storybook/vue3": "^7.5.0",
53
- "@storybook/vue3-vite": "^7.5.0",
63
+ "@storybook/vue3": "^7.0.11",
64
+ "@storybook/vue3-vite": "^7.0.11",
65
+ "@types/dropzone": "5.7.6",
54
66
  "@typescript-eslint/eslint-plugin": "6.8.0",
55
67
  "@typescript-eslint/parser": "6.8.0",
56
68
  "@vitejs/plugin-vue": "^4.1.0",
69
+ "@vitest/coverage-v8": "0.32.0",
57
70
  "@vue/eslint-config-typescript": "12.0.0",
58
71
  "@vue/test-utils": "^2.3.2",
59
72
  "bootstrap": "^5.2.3",
60
- "chromatic": "^6.17.4",
61
73
  "eslint": "8.51.0",
62
74
  "eslint-config-prettier": "9.0.0",
63
75
  "eslint-plugin-prettier": "5.0.1",
@@ -69,13 +81,11 @@
69
81
  "react-dom": "^18.2.0",
70
82
  "rollup-plugin-typescript2": "^0.34.1",
71
83
  "sass": "^1.62.1",
72
- "storybook": "^7.5.0",
84
+ "storybook": "^7.0.11",
73
85
  "typescript": "^5.0.2",
74
86
  "vite": "^4.3.2",
75
87
  "vite-plugin-dts": "^2.3.0",
76
- "vitest": "^0.31.0",
77
- "vue": "^3.2.47",
78
- "vue-eslint-parser": "9.3.2"
88
+ "vitest": "0.32.0"
79
89
  },
80
90
  "description": "Component library voor BeterDichtbij design system",
81
91
  "repository": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon-info.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/icon-info.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}