@beterdichtbij/component-library 0.32.0 → 0.34.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 +31 -31
- package/dist/bd-component-lib.es.js +4333 -4259
- package/dist/bd-component-lib.umd.js +29 -29
- package/dist/components/atoms/BDPill/BDPill.vue.d.ts +74 -0
- package/dist/components/atoms/BDPill/BDPill.vue.d.ts.map +1 -0
- package/dist/components/organisms/BDModal/BDModal.vue.d.ts +11 -0
- package/dist/index.d.ts +2 -1
- package/dist/interfaces/BDModalProps.d.ts +1 -0
- package/dist/interfaces/BDPillProps.d.ts +8 -0
- package/dist/scss/_badge.scss +15 -8
- package/dist/scss/_button.scss +1 -7
- package/dist/scss/_card.scss +15 -8
- package/dist/scss/_modal.scss +20 -0
- package/dist/scss/_pill.scss +89 -0
- package/dist/scss/base/variables.scss +12 -2
- package/dist/scss/component-library-styling.scss +2 -1
- package/dist/scss/mixins.scss +19 -0
- package/dist/types/BootstrapVariants.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
imgSrc: {
|
|
4
|
+
type: __PropType<string | undefined>;
|
|
5
|
+
required: false;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
uri: {
|
|
9
|
+
type: __PropType<string | undefined>;
|
|
10
|
+
required: false;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
uriDisplayName: {
|
|
14
|
+
type: __PropType<string | undefined>;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
title: {
|
|
19
|
+
type: __PropType<string | undefined>;
|
|
20
|
+
required: false;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
subtitle: {
|
|
24
|
+
type: __PropType<string | undefined>;
|
|
25
|
+
required: false;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
showClose: {
|
|
29
|
+
type: __PropType<boolean | undefined>;
|
|
30
|
+
required: false;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
imgSrc: {
|
|
35
|
+
type: __PropType<string | undefined>;
|
|
36
|
+
required: false;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
uri: {
|
|
40
|
+
type: __PropType<string | undefined>;
|
|
41
|
+
required: false;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
uriDisplayName: {
|
|
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
|
+
subtitle: {
|
|
55
|
+
type: __PropType<string | undefined>;
|
|
56
|
+
required: false;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
showClose: {
|
|
60
|
+
type: __PropType<boolean | undefined>;
|
|
61
|
+
required: false;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>> & {
|
|
65
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
title: string | undefined;
|
|
68
|
+
imgSrc: string | undefined;
|
|
69
|
+
uri: string | undefined;
|
|
70
|
+
uriDisplayName: string | undefined;
|
|
71
|
+
subtitle: string | undefined;
|
|
72
|
+
showClose: boolean | undefined;
|
|
73
|
+
}, {}>;
|
|
74
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BDPill.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDPill/BDPill.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,+FAA+F,CAAC;AACtH,cAAc,+FAA+F,CAAC;AAC9G,eAAe,SAAS,CAAC"}
|
|
@@ -5,6 +5,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
5
5
|
required: false;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
+
titleImage: {
|
|
9
|
+
type: __PropType<string | undefined>;
|
|
10
|
+
required: false;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
8
13
|
submitButtonTitle: {
|
|
9
14
|
type: __PropType<string | undefined>;
|
|
10
15
|
required: false;
|
|
@@ -41,6 +46,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
41
46
|
required: false;
|
|
42
47
|
default: string;
|
|
43
48
|
};
|
|
49
|
+
titleImage: {
|
|
50
|
+
type: __PropType<string | undefined>;
|
|
51
|
+
required: false;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
44
54
|
submitButtonTitle: {
|
|
45
55
|
type: __PropType<string | undefined>;
|
|
46
56
|
required: false;
|
|
@@ -76,6 +86,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
76
86
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
77
87
|
}, {
|
|
78
88
|
title: string | undefined;
|
|
89
|
+
titleImage: string | undefined;
|
|
79
90
|
submitButtonTitle: string | undefined;
|
|
80
91
|
closeButtonTitle: string | undefined;
|
|
81
92
|
hideFooterCancelButton: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import BDFormSelect from "./components/atoms/BDFormSelect/BDFormSelect.vue";
|
|
|
20
20
|
import BDFormCheckbox from "./components/atoms/BDFormCheckbox/BDFormCheckbox.vue";
|
|
21
21
|
import BDArticle from "./components/atoms/BDArticle/BDArticle.vue";
|
|
22
22
|
import BDToast from "./components/atoms/BDToast/BDToast.vue";
|
|
23
|
+
import BDPill from "./components/atoms/BDPill/BDPill.vue";
|
|
23
24
|
import BDDropdownItem from "./components/molecules/BDDropdownItem/BDDropdownItem.vue";
|
|
24
25
|
import BDDropzone from "./components/molecules/BDDropzone/BDDropzone.vue";
|
|
25
26
|
import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue";
|
|
@@ -41,4 +42,4 @@ import { vBdTooltip } from "./directives/BDTooltip";
|
|
|
41
42
|
import { type ChangePasswordData } from './types/ChangePasswordData';
|
|
42
43
|
import { type ValidationChangePasswordData } from './types/ValidationChangePasswordData';
|
|
43
44
|
import { getDisplayDate } from "./utils/display-date";
|
|
44
|
-
export { BDChatCloud, BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDChangePasswordTemplate, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, BDImageAttachmentPreviewList, BDHeader, BDMobileMenu, BDTable, IconAcademy, IconArrowDown, IconArrowUp, IconAttachment, IconBold, IconBulletList, IconCalendar, IconCardView, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconDownloadImage, IconEdit, IconError, IconEyeShow, IconEyeSlash, IconFile, IconHyperlink, IconInfo, IconItalic, IconListView, IconMenu, IconOrderedList, IconRemove, IconService, IconSort, IconSortAsc, IconSortDesc, IconSortNone, IconTriangleExclamation, IconUnderline, IconContactPerson, ChangePasswordData, ValidationChangePasswordData, useModal, useServerErrors, useToaster, useValidation, vBdTooltip, getDisplayDate, };
|
|
45
|
+
export { BDChatCloud, BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDChangePasswordTemplate, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, BDImageAttachmentPreviewList, BDHeader, BDMobileMenu, BDTable, BDPill, IconAcademy, IconArrowDown, IconArrowUp, IconAttachment, IconBold, IconBulletList, IconCalendar, IconCardView, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconDownloadImage, IconEdit, IconError, IconEyeShow, IconEyeSlash, IconFile, IconHyperlink, IconInfo, IconItalic, IconListView, IconMenu, IconOrderedList, IconRemove, IconService, IconSort, IconSortAsc, IconSortDesc, IconSortNone, IconTriangleExclamation, IconUnderline, IconContactPerson, ChangePasswordData, ValidationChangePasswordData, useModal, useServerErrors, useToaster, useValidation, vBdTooltip, getDisplayDate, };
|
package/dist/scss/_badge.scss
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
|
|
2
|
+
@each $variant, $color in $theme-colors {
|
|
3
|
+
$bg-color: tint-color($color, 90%);
|
|
4
|
+
.bd-badge-#{$variant} {
|
|
5
|
+
@include badge($color, $bg-color);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.bd-badge-warning {
|
|
10
|
+
color: $color-darkblue;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.bd-badge-warning {
|
|
14
|
+
color: $color-darkblue;
|
|
15
|
+
}
|
package/dist/scss/_button.scss
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
$btn-variants:
|
|
12
12
|
"primary" $white $blue-text $white $blue-dark none,
|
|
13
13
|
"secondary" $font-color-primary $white $font-color-primary $gray-7 $gray 1px solid $gray,
|
|
14
|
-
"danger" $white $
|
|
14
|
+
"danger" $white $red-text $white $red-dark none,
|
|
15
15
|
"colleague" $white $green-text $white $green-dark none,
|
|
16
16
|
"outline-primary" $font-color-primary $white $white $font-color-primary $gray-primary 1px solid $gray-primary,
|
|
17
17
|
"outline-primary-dark" $font-color-primary transparent $white $font-color-primary $gray-primary 1px solid $gray-primary,
|
|
@@ -49,12 +49,6 @@ $btn-variants:
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.btn-close {
|
|
53
|
-
.modal & {
|
|
54
|
-
background-image: initial;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
52
|
button {
|
|
59
53
|
&.btn-remove {
|
|
60
54
|
position: absolute;
|
package/dist/scss/_card.scss
CHANGED
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: space-between;
|
|
10
10
|
position: relative;
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
&.danger {
|
|
13
|
+
background-color: $red-header;
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
&.colleague {
|
|
13
17
|
background-color: $color-colleague;
|
|
14
|
-
}
|
|
18
|
+
}
|
|
15
19
|
|
|
16
20
|
h2 {
|
|
17
21
|
color: $white;
|
|
@@ -20,10 +24,6 @@
|
|
|
20
24
|
font-size: 1.25rem;
|
|
21
25
|
line-height: 23px;
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
.btn-primary {
|
|
25
|
-
background: #2272C4;
|
|
26
|
-
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.card-body {
|
|
@@ -82,9 +82,16 @@
|
|
|
82
82
|
&.no-body .card-header {
|
|
83
83
|
background-color: $white;
|
|
84
84
|
color: $font-color-primary;
|
|
85
|
-
border:none;
|
|
85
|
+
border: none;
|
|
86
86
|
border-radius: $border-radius-default;
|
|
87
|
-
|
|
87
|
+
|
|
88
|
+
&.danger {
|
|
89
|
+
background-color: #dc3545;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.colleague {
|
|
93
|
+
background-color: $color-colleague;
|
|
94
|
+
}
|
|
88
95
|
|
|
89
96
|
h2 {
|
|
90
97
|
font-weight: $font-normal;
|
package/dist/scss/_modal.scss
CHANGED
|
@@ -20,11 +20,26 @@
|
|
|
20
20
|
display: flex;
|
|
21
21
|
gap: 4px;
|
|
22
22
|
background: transparent;
|
|
23
|
+
background-image: initial;
|
|
23
24
|
color: $gray-primary;
|
|
24
25
|
|
|
25
26
|
.icon-close {
|
|
26
27
|
width: 24px;
|
|
27
28
|
height: 24px;
|
|
29
|
+
background-color: $blue-text;
|
|
30
|
+
display: inline-block;
|
|
31
|
+
padding: 4px;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
path {
|
|
34
|
+
fill: $color-white;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: $color-lightblue;
|
|
39
|
+
path {
|
|
40
|
+
fill: $blue-text;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
28
43
|
}
|
|
29
44
|
}
|
|
30
45
|
|
|
@@ -118,6 +133,11 @@
|
|
|
118
133
|
margin-top: 20px;
|
|
119
134
|
line-height:normal;
|
|
120
135
|
}
|
|
136
|
+
|
|
137
|
+
.title-image {
|
|
138
|
+
height: 31px;
|
|
139
|
+
margin-right: 10px;
|
|
140
|
+
}
|
|
121
141
|
}
|
|
122
142
|
}
|
|
123
143
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.pills-list {
|
|
2
|
+
&__wrapper {
|
|
3
|
+
margin-bottom: 20px;
|
|
4
|
+
|
|
5
|
+
.bd-chat-cloud-card__footer &{
|
|
6
|
+
margin-bottom: 0px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&__ul {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
flex-flow: wrap;
|
|
15
|
+
list-style: none;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
padding: 5px 0px;
|
|
18
|
+
|
|
19
|
+
.bd-chat-cloud-card__footer &{
|
|
20
|
+
padding: 0px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__li {
|
|
25
|
+
max-width: 300px;
|
|
26
|
+
overflow: auto;
|
|
27
|
+
margin: 5px 5px 0px 0px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.bd-pill {
|
|
32
|
+
display: flex;
|
|
33
|
+
height: 72px;
|
|
34
|
+
width: auto;
|
|
35
|
+
background: #f0f7ff;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
border: 1px solid #d9ecff;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
position: relative;
|
|
40
|
+
|
|
41
|
+
&__logo {
|
|
42
|
+
height: inherit;
|
|
43
|
+
padding: 16px;
|
|
44
|
+
margin: 0px;
|
|
45
|
+
border-right: 1px solid #d9ecff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__description {
|
|
49
|
+
padding: 8px 16px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__link {
|
|
56
|
+
font-size: 12px;
|
|
57
|
+
line-height: 14px;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
svg.icon {
|
|
60
|
+
fill: $blue;
|
|
61
|
+
display: inline-block;
|
|
62
|
+
position: relative;
|
|
63
|
+
}
|
|
64
|
+
&:hover {
|
|
65
|
+
text-decoration: underline;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__title {
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
line-height: 23px;
|
|
73
|
+
font-weight: 700;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&__subtitle {
|
|
80
|
+
font-size: 13px;
|
|
81
|
+
line-height: 15px;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
|
|
84
|
+
color: hsla(221, 13%, 48%, 1);
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -50,6 +50,11 @@ $gray-7: #F7F8FA; // grijs 7: button secondary bg-color hover /borde
|
|
|
50
50
|
$gray-secondary: #6B758A; // grijs secondair: subtitles, date cardview
|
|
51
51
|
$gray-primary: #394156; // grijs primair: headings default tekst color
|
|
52
52
|
|
|
53
|
+
// red colors direved from Evers + de Gier colorscheme 2024
|
|
54
|
+
$red-header: #DE4141; // red header
|
|
55
|
+
$red-text: #C32222; // button variant danger
|
|
56
|
+
$red-dark: #AE1E1E; // hover button danger
|
|
57
|
+
|
|
53
58
|
// theme colors
|
|
54
59
|
$danger:$red;
|
|
55
60
|
$primary:$blue;
|
|
@@ -83,7 +88,8 @@ $theme-colors: (
|
|
|
83
88
|
"danger": $danger,
|
|
84
89
|
"success": $success,
|
|
85
90
|
"light": $light,
|
|
86
|
-
"dark" : $dark
|
|
91
|
+
"dark" : $dark,
|
|
92
|
+
"gray": $secondary,
|
|
87
93
|
);
|
|
88
94
|
|
|
89
95
|
//variables font
|
|
@@ -191,4 +197,8 @@ $form-range-track-border-radius: 1rem;
|
|
|
191
197
|
$form-range-thumb-border-radius: 1rem;
|
|
192
198
|
$form-range-track-height: .5rem;
|
|
193
199
|
$form-range-thumb-width: 1rem;
|
|
194
|
-
$form-range-thumb-height: $form-range-thumb-width;
|
|
200
|
+
$form-range-thumb-height: $form-range-thumb-width;
|
|
201
|
+
|
|
202
|
+
//focus ring
|
|
203
|
+
$focus-ring-width: 0px;
|
|
204
|
+
$focus-ring-color: $color-white;
|
package/dist/scss/mixins.scss
CHANGED
|
@@ -13,6 +13,25 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
@mixin badge($color, $bg-color) {
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
padding: 5px 8px;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-size: 0.75rem;
|
|
22
|
+
line-height: 0.875rem;
|
|
23
|
+
background-color: $bg-color;
|
|
24
|
+
color: $color;
|
|
25
|
+
svg {
|
|
26
|
+
fill: $color;
|
|
27
|
+
height: 12px;
|
|
28
|
+
width: 12px;
|
|
29
|
+
&.icon{
|
|
30
|
+
margin-right:8px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
16
35
|
@mixin button($variant, $color, $bg-color, $hover-color, $hover-bg-color, $hover-border-color, $border, $solid, $border-color) {
|
|
17
36
|
color: $color;
|
|
18
37
|
background-color: $bg-color;
|