@beterdichtbij/component-library 0.6.1 → 0.6.3-Utrecht-West

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 (38) 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 +2968 -2875
  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/BDArticle/BDArticle.vue.d.ts +47 -0
  7. package/dist/components/atoms/BDArticle/BDArticle.vue.d.ts.map +1 -0
  8. package/dist/components/atoms/BDBadge/BDBadge.vue.d.ts +6 -6
  9. package/dist/components/atoms/BDButton/BDButton.vue.d.ts +16 -18
  10. package/dist/components/atoms/BDFormInput/BDFormInput.vue.d.ts +1 -1
  11. package/dist/components/atoms/BDFormSelect/BDFormSelect.vue.d.ts +5 -6
  12. package/dist/components/atoms/BDProfileImage/BDProfileImage.vue.d.ts +5 -6
  13. package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +5 -6
  14. package/dist/components/molecules/BDUser/BDUser.vue.d.ts +45 -0
  15. package/dist/components/molecules/BDUser/BDUser.vue.d.ts.map +1 -0
  16. package/dist/components/organisms/BDDropdown/BDDropdown.vue.d.ts +47 -17
  17. package/dist/index.d.ts +7 -2
  18. package/dist/layout/BDContainer.vue.d.ts +3 -4
  19. package/dist/types/BDAlert.d.ts +3 -2
  20. package/dist/types/BDArticle.d.ts +7 -0
  21. package/dist/types/BDButton.d.ts +5 -4
  22. package/dist/types/BDDropDown.d.ts +7 -3
  23. package/dist/types/BDFormSelect.d.ts +2 -2
  24. package/dist/types/BDImage.d.ts +2 -2
  25. package/dist/types/BDMarkdownEditor.d.ts +2 -2
  26. package/dist/types/BDUser.d.ts +8 -0
  27. package/dist/types/BootstrapSizes.d.ts +8 -0
  28. package/dist/types/BootstrapVariants.d.ts +10 -0
  29. package/dist/types/ButtonColorVariants.d.ts +14 -0
  30. package/dist/types/Identifier.d.ts +3 -0
  31. package/dist/types/tiptapVariants.d.ts +6 -0
  32. package/dist/utils/type.d.ts +1 -0
  33. package/package.json +118 -119
  34. package/dist/enums/bootstrap.d.ts +0 -14
  35. package/dist/enums/tiptapVariants.d.ts +0 -4
  36. package/dist/enums/variants.d.ts +0 -12
  37. package/dist/types/BootstrapSize.d.ts +0 -4
  38. package/dist/types/BootstrapVariant.d.ts +0 -4
@@ -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,3 @@
1
+ export interface identifierProp {
2
+ identifier: string | number;
3
+ }
@@ -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,121 +1,120 @@
1
1
  {
2
- "name": "@beterdichtbij/component-library",
3
- "private": false,
4
- "version": "0.6.1",
5
- "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
- "type": "module",
7
- "files": [
8
- "dist"
9
- ],
10
- "main": "./dist/bd-component-lib.umd.js",
11
- "module": "./dist/bd-component-lib.es.js",
12
- "exports": {
13
- ".": {
14
- "import": {
15
- "types": "./dist/index.d.ts",
16
- "default": "./dist/bd-component-lib.es.js"
17
- },
18
- "require":
19
- {
20
- "types": "./dist/index.d.ts",
21
- "default": "./dist/bd-component-lib.umd.js"
22
- }
2
+ "name": "@beterdichtbij/component-library",
3
+ "private": false,
4
+ "version": "0.6.3-Utrecht-West",
5
+ "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
+ "type": "module",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "main": "./dist/bd-component-lib.umd.js",
11
+ "module": "./dist/bd-component-lib.es.js",
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/bd-component-lib.es.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/bd-component-lib.umd.js"
21
+ }
22
+ },
23
+ "./dist/bd-component-lib.css": {
24
+ "import": "./dist/bd-component-lib.css",
25
+ "require": "./dist/bd-component-lib.css"
26
+ }
23
27
  },
24
- "./dist/bd-component-lib.css": {
25
- "import": "./dist/bd-component-lib.css",
26
- "require": "./dist/bd-component-lib.css"
27
- }
28
- },
29
- "types": "./dist/main.d.ts",
30
- "scripts": {
31
- "dev": "vite",
32
- "build": "vite build",
33
- "preview": "vite preview",
34
- "storybook": "storybook dev -p 6006",
35
- "install:publish": "npm run audit:lib && npm install",
36
- "build:lib": "tsc && vite build",
37
- "build:storybook": "storybook build",
38
- "build:publish": "npm run install:publish && npm run test:ci && npm run build:lib && npm run build:storybook",
39
- "audit:lib": "npm audit --package-lock-only --audit-level=critical --include=prod --omit=dev",
40
- "publish:sb": "swa deploy --env production",
41
- "publish:sb-prod": "swa deploy --config swa-cli-prod.config.json --env production",
42
- "lint:js": "eslint src --ext .ts,.vue --fix",
43
- "vitest": "vitest --config vitest.config.ts --coverage",
44
- "test:ci": "vitest run --reporter=default --reporter=junit --outputFile=reports/junit.xml --coverage"
45
- },
46
- "keywords": [
47
- "vue",
48
- "vue3",
49
- "component",
50
- "library",
51
- "BeterDichtbij"
52
- ],
53
- "peerDependencies": {
54
- "vue": "^3.2.47"
55
- },
56
- "dependencies": {
57
- "@tiptap/extension-bold": "2.1.12",
58
- "@tiptap/extension-bullet-list": "2.1.12",
59
- "@tiptap/extension-document": "2.1.12",
60
- "@tiptap/extension-hard-break": "2.1.12",
61
- "@tiptap/extension-italic": "2.1.12",
62
- "@tiptap/extension-link": "2.1.12",
63
- "@tiptap/extension-list-item": "2.1.12",
64
- "@tiptap/extension-ordered-list": "2.1.12",
65
- "@tiptap/extension-paragraph": "2.1.12",
66
- "@tiptap/extension-placeholder": "2.1.12",
67
- "@tiptap/extension-text": "2.1.12",
68
- "@tiptap/extension-underline": "2.1.12",
69
- "@tiptap/pm": "2.1.12",
70
- "@tiptap/vue-3": "2.1.12",
71
- "@vueuse/core": "10.6.1",
72
- "dropzone": "5.9.3",
73
- "uid": "2.0.2"
74
- },
75
- "devDependencies": {
76
- "@azure/static-web-apps-cli": "1.1.4",
77
- "@fontsource/quicksand": "^5.0.2",
78
- "@fontsource/work-sans": "^5.0.2",
79
- "@storybook/addon-a11y": "7.5.3",
80
- "@storybook/addon-essentials": "^7.0.11",
81
- "@storybook/addon-interactions": "^7.0.11",
82
- "@storybook/addon-links": "^7.0.11",
83
- "@storybook/blocks": "^7.0.11",
84
- "@storybook/testing-library": "^0.2.2",
85
- "@storybook/vue3": "^7.0.11",
86
- "@storybook/vue3-vite": "^7.0.11",
87
- "@types/dropzone": "5.7.6",
88
- "@typescript-eslint/eslint-plugin": "6.8.0",
89
- "@typescript-eslint/parser": "6.8.0",
90
- "@vitejs/plugin-vue": "^4.1.0",
91
- "@vitest/coverage-v8": "0.32.0",
92
- "@vue/eslint-config-typescript": "12.0.0",
93
- "@vue/test-utils": "^2.3.2",
94
- "bootstrap": "5.3.0",
95
- "eslint": "8.51.0",
96
- "eslint-config-prettier": "9.0.0",
97
- "eslint-plugin-prettier": "5.0.1",
98
- "eslint-plugin-vue": "9.17.0",
99
- "jsdom": "^22.0.0",
100
- "path": "^0.12.7",
101
- "prettier": "3.0.3",
102
- "react": "^18.2.0",
103
- "react-dom": "^18.2.0",
104
- "rollup-plugin-typescript2": "^0.34.1",
105
- "sass": "^1.62.1",
106
- "storybook": "^7.0.11",
107
- "typescript": "^5.0.2",
108
- "vite": "^4.3.2",
109
- "vite-plugin-dts": "^2.3.0",
110
- "vitest": "0.32.0"
111
- },
112
- "description": "Component library voor BeterDichtbij design system",
113
- "repository": {
114
- "type": "git",
115
- "url": "git+https://ralph_van_der_neut@bitbucket.org/beterdichtbij/beterdichtbij-component-library.git"
116
- },
117
- "bugs": {
118
- "url": "https://bitbucket.org/beterdichtbij/beterdichtbij-component-library/issues"
119
- },
120
- "homepage": "https://bitbucket.org/beterdichtbij/beterdichtbij-component-library#readme"
121
- }
28
+ "types": "./dist/main.d.ts",
29
+ "scripts": {
30
+ "dev": "vite",
31
+ "build": "vite build",
32
+ "preview": "vite preview",
33
+ "storybook": "storybook dev -p 6006",
34
+ "install:publish": "npm run audit:lib && npm install",
35
+ "build:lib": "tsc && vite build",
36
+ "build:storybook": "storybook build",
37
+ "build:publish": "npm run install:publish && npm run build:lib && npm run build:storybook",
38
+ "audit:lib": "npm audit --package-lock-only --audit-level=critical --include=prod --omit=dev",
39
+ "publish:sb": "swa deploy --env production",
40
+ "publish:sb-prod": "swa deploy --config swa-cli-prod.config.json --env production",
41
+ "lint:js": "eslint src --ext .ts,.vue --fix",
42
+ "vitest": "vitest --config vitest.config.ts --coverage",
43
+ "test:ci": "vitest run --reporter=default --reporter=junit --outputFile=reports/junit.xml --coverage"
44
+ },
45
+ "keywords": [
46
+ "vue",
47
+ "vue3",
48
+ "component",
49
+ "library",
50
+ "BeterDichtbij"
51
+ ],
52
+ "peerDependencies": {
53
+ "vue": "^3.2.47"
54
+ },
55
+ "dependencies": {
56
+ "@tiptap/extension-bold": "2.1.12",
57
+ "@tiptap/extension-bullet-list": "2.1.12",
58
+ "@tiptap/extension-document": "2.1.12",
59
+ "@tiptap/extension-hard-break": "2.1.12",
60
+ "@tiptap/extension-italic": "2.1.12",
61
+ "@tiptap/extension-link": "2.1.12",
62
+ "@tiptap/extension-list-item": "2.1.12",
63
+ "@tiptap/extension-ordered-list": "2.1.12",
64
+ "@tiptap/extension-paragraph": "2.1.12",
65
+ "@tiptap/extension-placeholder": "2.1.12",
66
+ "@tiptap/extension-text": "2.1.12",
67
+ "@tiptap/extension-underline": "2.1.12",
68
+ "@tiptap/pm": "2.1.12",
69
+ "@tiptap/vue-3": "2.1.12",
70
+ "@vueuse/core": "10.6.1",
71
+ "dropzone": "5.9.3",
72
+ "uid": "2.0.2"
73
+ },
74
+ "devDependencies": {
75
+ "@azure/static-web-apps-cli": "1.1.4",
76
+ "@fontsource/quicksand": "^5.0.2",
77
+ "@fontsource/work-sans": "^5.0.2",
78
+ "@storybook/addon-a11y": "7.5.3",
79
+ "@storybook/addon-essentials": "^7.0.11",
80
+ "@storybook/addon-interactions": "^7.0.11",
81
+ "@storybook/addon-links": "^7.0.11",
82
+ "@storybook/blocks": "^7.0.11",
83
+ "@storybook/testing-library": "^0.2.2",
84
+ "@storybook/vue3": "^7.0.11",
85
+ "@storybook/vue3-vite": "^7.0.11",
86
+ "@types/dropzone": "5.7.6",
87
+ "@typescript-eslint/eslint-plugin": "6.8.0",
88
+ "@typescript-eslint/parser": "6.8.0",
89
+ "@vitejs/plugin-vue": "^4.1.0",
90
+ "@vitest/coverage-v8": "0.32.0",
91
+ "@vue/eslint-config-typescript": "12.0.0",
92
+ "@vue/test-utils": "^2.3.2",
93
+ "bootstrap": "5.3.0",
94
+ "eslint": "8.51.0",
95
+ "eslint-config-prettier": "9.0.0",
96
+ "eslint-plugin-prettier": "5.0.1",
97
+ "eslint-plugin-vue": "9.17.0",
98
+ "jsdom": "^22.0.0",
99
+ "path": "^0.12.7",
100
+ "prettier": "3.0.3",
101
+ "react": "^18.2.0",
102
+ "react-dom": "^18.2.0",
103
+ "rollup-plugin-typescript2": "^0.34.1",
104
+ "sass": "^1.62.1",
105
+ "storybook": "^7.0.11",
106
+ "typescript": "^5.0.2",
107
+ "vite": "^4.3.2",
108
+ "vite-plugin-dts": "^2.3.0",
109
+ "vitest": "0.32.0"
110
+ },
111
+ "description": "Component library voor BeterDichtbij design system",
112
+ "repository": {
113
+ "type": "git",
114
+ "url": "git+https://ralph_van_der_neut@bitbucket.org/beterdichtbij/beterdichtbij-component-library.git"
115
+ },
116
+ "bugs": {
117
+ "url": "https://bitbucket.org/beterdichtbij/beterdichtbij-component-library/issues"
118
+ },
119
+ "homepage": "https://bitbucket.org/beterdichtbij/beterdichtbij-component-library#readme"
120
+ }
@@ -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
- }