@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.
@@ -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, };
@@ -1,5 +1,6 @@
1
1
  export interface BDModalProps {
2
2
  title?: string;
3
+ titleImage?: string;
3
4
  submitButtonTitle?: string;
4
5
  closeButtonTitle?: string;
5
6
  hideFooterCancelButton: boolean;
@@ -0,0 +1,8 @@
1
+ export interface BDPillProps {
2
+ imgSrc?: string;
3
+ uri?: string;
4
+ uriDisplayName?: string;
5
+ title?: string;
6
+ subtitle?: string;
7
+ showClose?: boolean;
8
+ }
@@ -1,8 +1,15 @@
1
- .bd-badge {
2
- padding: 5px 8px;
3
- border-radius: $border-radius-default;
4
- font-weight: 500;
5
- font-style: normal;
6
- font-size: 0.75rem;
7
- line-height: 0.875rem;
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
+ }
@@ -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 $danger $danger $white none,
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;
@@ -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
- padding: 20px;
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;
@@ -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;
@@ -25,4 +25,5 @@
25
25
  @import "chatcloud";
26
26
  @import "table";
27
27
  @import "table-sort-header";
28
- @import "templates";
28
+ @import "templates";
29
+ @import "pill";
@@ -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;
@@ -7,5 +7,6 @@ export declare const BOOTSTRAP_VARIANTS: {
7
7
  readonly INFO: "info";
8
8
  readonly SUCCESS: "success";
9
9
  readonly LIGHT: "light";
10
+ readonly GRAY: "gray";
10
11
  };
11
12
  export type bootstrapVariants = GenericEnum<typeof BOOTSTRAP_VARIANTS>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.32.0",
4
+ "version": "0.34.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"