@beterdichtbij/component-library 0.32.0 → 0.33.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 +29 -29
- package/dist/bd-component-lib.es.js +1919 -1912
- package/dist/bd-component-lib.umd.js +23 -23
- 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 +15 -0
- package/dist/scss/base/variables.scss +12 -2
- package/dist/scss/mixins.scss +19 -0
- package/dist/types/BootstrapVariants.d.ts +1 -0
- package/package.json +1 -1
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
|
|
|
@@ -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;
|