@beterdichtbij/component-library 0.57.1 → 0.58.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.
- package/dist/bd-component-lib.cjs.js +70 -70
- package/dist/bd-component-lib.es.js +9051 -8507
- package/dist/bd-component-lib.umd.js +71 -71
- package/dist/components/atoms/BDPlaceholderList/BDPlaceholderList.vue.d.ts +14 -0
- package/dist/components/atoms/BDPlaceholderList/BDPlaceholderList.vue.d.ts.map +1 -0
- package/dist/components/atoms/icons/IconEdit.vue.d.ts.map +1 -1
- package/dist/interfaces/BDFormCheckboxProps.d.ts +1 -0
- package/dist/interfaces/BDMarkdownEditorProps.d.ts +5 -0
- package/dist/layout/BDCol.vue.d.ts +1 -0
- package/dist/scss/_badge.scss +15 -11
- package/dist/scss/_button.scss +8 -0
- package/dist/scss/_markdown-editor.scss +7 -1
- package/dist/scss/_table.scss +6 -2
- package/dist/types/tiptapVariants.d.ts +1 -0
- package/dist/utils/tiptap/suggestion.d.ts +31 -0
- package/package.json +17 -15
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _sfc_main: {
|
|
2
|
+
__name: string;
|
|
3
|
+
props: {
|
|
4
|
+
items: ArrayConstructor;
|
|
5
|
+
command: FunctionConstructor;
|
|
6
|
+
};
|
|
7
|
+
setup(__props: any, { expose: __expose }: {
|
|
8
|
+
expose: any;
|
|
9
|
+
}): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export default _sfc_main;
|
|
14
|
+
//# sourceMappingURL=BDPlaceholderList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BDPlaceholderList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDPlaceholderList/BDPlaceholderList.vue"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS;;;;;;;;SA+CP,SAAI,EAAE,WAAM;;;CAanB,CAAA;AAID,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconEdit.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconEdit.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IconEdit.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconEdit.vue"],"names":[],"mappings":";AAkBA,wBAA4E"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ModelValueString } from '../types/ModelValue';
|
|
2
2
|
import { TiptapVariants } from '../types/tiptapVariants';
|
|
3
3
|
import { ApiAttachment } from '../types/ApiAttachment';
|
|
4
|
+
export interface Token {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
4
8
|
export interface BDMarkdownEditorProps extends ModelValueString {
|
|
5
9
|
placeholder?: string;
|
|
6
10
|
errorText?: string;
|
|
@@ -9,4 +13,5 @@ export interface BDMarkdownEditorProps extends ModelValueString {
|
|
|
9
13
|
files?: ApiAttachment[];
|
|
10
14
|
pills?: Object[];
|
|
11
15
|
apiUrl?: string;
|
|
16
|
+
tokens?: Token[];
|
|
12
17
|
}
|
package/dist/scss/_badge.scss
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
.bd-badge {
|
|
2
|
+
margin: 1.5px;
|
|
3
|
+
}
|
|
1
4
|
|
|
2
5
|
@each $variant, $color in $theme-colors {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.bd-badge-warning {
|
|
10
|
-
color: $color-darkblue;
|
|
6
|
+
$bg-color: tint-color($color, 90%);
|
|
7
|
+
|
|
8
|
+
.bd-badge-#{$variant} {
|
|
9
|
+
@include badge($color, $bg-color);
|
|
11
10
|
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.bd-badge-warning {
|
|
14
|
+
color: $color-darkblue;
|
|
15
|
+
}
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
.bd-badge-warning {
|
|
18
|
+
color: $color-darkblue;
|
|
19
|
+
}
|
package/dist/scss/_button.scss
CHANGED
|
@@ -75,13 +75,19 @@
|
|
|
75
75
|
.bd-link-input-popover.bd-link-input-bottom {
|
|
76
76
|
position: absolute;
|
|
77
77
|
left: 100px;
|
|
78
|
-
bottom: 50px;
|
|
79
78
|
margin: auto;
|
|
80
79
|
z-index: 1050;
|
|
81
80
|
min-width: 300px;
|
|
82
81
|
max-width: 500px;
|
|
83
82
|
}
|
|
84
83
|
|
|
84
|
+
.bd-link-input-popover {
|
|
85
|
+
.validation-text {
|
|
86
|
+
font-size: 0.7em;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
.form-control {
|
|
86
92
|
display:inline;
|
|
87
93
|
margin:8px 0 16px 0;
|
package/dist/scss/_table.scss
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
import { Token } from '../../interfaces/BDMarkdownEditorProps';
|
|
3
|
+
interface QueryParams {
|
|
4
|
+
query: string;
|
|
5
|
+
}
|
|
6
|
+
interface CommandParams {
|
|
7
|
+
editor: Editor;
|
|
8
|
+
range: {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
};
|
|
12
|
+
props: Token;
|
|
13
|
+
}
|
|
14
|
+
interface SuggestionProps {
|
|
15
|
+
editor: Editor;
|
|
16
|
+
clientRect?: () => DOMRect | null;
|
|
17
|
+
items?: Token[];
|
|
18
|
+
event?: KeyboardEvent;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
declare const createSuggestion: (tokens?: Token[]) => {
|
|
22
|
+
items: ({ query }: QueryParams) => Token[];
|
|
23
|
+
command: ({ editor, range, props }: CommandParams) => void;
|
|
24
|
+
render: () => {
|
|
25
|
+
onStart: (props: SuggestionProps) => void;
|
|
26
|
+
onUpdate(props: SuggestionProps): void;
|
|
27
|
+
onKeyDown(props: SuggestionProps): any;
|
|
28
|
+
onExit(): void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export { createSuggestion };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@beterdichtbij/component-library",
|
|
3
3
|
"description": "Component library voor BeterDichtbij design system",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.58.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "24.x",
|
|
8
8
|
"npm": "11.x"
|
|
@@ -58,20 +58,22 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@primeuix/themes": "^2.0.3",
|
|
61
|
-
"@tiptap/extension-bold": "3.20.
|
|
62
|
-
"@tiptap/extension-bullet-list": "3.20.
|
|
63
|
-
"@tiptap/extension-document": "3.20.
|
|
64
|
-
"@tiptap/extension-hard-break": "3.20.
|
|
65
|
-
"@tiptap/extension-italic": "3.20.
|
|
66
|
-
"@tiptap/extension-link": "3.20.
|
|
67
|
-
"@tiptap/extension-list-item": "3.20.
|
|
68
|
-
"@tiptap/extension-
|
|
69
|
-
"@tiptap/extension-
|
|
70
|
-
"@tiptap/extension-
|
|
71
|
-
"@tiptap/extension-
|
|
72
|
-
"@tiptap/extension-
|
|
73
|
-
"@tiptap/
|
|
74
|
-
"@tiptap/
|
|
61
|
+
"@tiptap/extension-bold": "3.20.1",
|
|
62
|
+
"@tiptap/extension-bullet-list": "3.20.1",
|
|
63
|
+
"@tiptap/extension-document": "3.20.1",
|
|
64
|
+
"@tiptap/extension-hard-break": "3.20.1",
|
|
65
|
+
"@tiptap/extension-italic": "3.20.1",
|
|
66
|
+
"@tiptap/extension-link": "3.20.1",
|
|
67
|
+
"@tiptap/extension-list-item": "3.20.1",
|
|
68
|
+
"@tiptap/extension-mention": "3.20.1",
|
|
69
|
+
"@tiptap/extension-ordered-list": "3.20.1",
|
|
70
|
+
"@tiptap/extension-paragraph": "3.20.1",
|
|
71
|
+
"@tiptap/extension-placeholder": "3.20.1",
|
|
72
|
+
"@tiptap/extension-text": "3.20.1",
|
|
73
|
+
"@tiptap/extension-underline": "3.20.1",
|
|
74
|
+
"@tiptap/pm": "3.20.1",
|
|
75
|
+
"@tiptap/suggestion": "3.20.1",
|
|
76
|
+
"@tiptap/vue-3": "3.20.1",
|
|
75
77
|
"@vueuse/core": "14.2.1",
|
|
76
78
|
"dayjs": "^1.11.19",
|
|
77
79
|
"dropzone": "5.9.3",
|