bootstrap-italia 2.17.0 → 2.17.3
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/css/bootstrap-italia.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +8 -8
- package/dist/js/bootstrap-italia.min.js +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +4 -4
- package/src/js/version.js +1 -1
- package/src/scss/base/_functions.scss +14 -10
- package/src/scss/base/_variables.scss +7 -5
- package/src/scss/base/_version.scss +1 -1
- package/src/scss/base/vendor/_rfs.scss +3 -1
- package/src/scss/components/_chips.scss +2 -2
- package/src/scss/components/_toolbar.scss +0 -3
package/dist/version.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// NOTE:bootstrap italia version variable, useful to check for the current version
|
|
10
10
|
|
|
11
|
-
const BOOTSTRAP_ITALIA_VERSION = '2.17.
|
|
11
|
+
const BOOTSTRAP_ITALIA_VERSION = '2.17.3';
|
|
12
12
|
|
|
13
13
|
export { BOOTSTRAP_ITALIA_VERSION as default };
|
|
14
14
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap Italia (https://italia.github.io/bootstrap-italia/)\n * Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS\n * Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// NOTE:bootstrap italia version variable, useful to check for the current version\n\nconst BOOTSTRAP_ITALIA_VERSION = '2.17.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap Italia (https://italia.github.io/bootstrap-italia/)\n * Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS\n * Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// NOTE:bootstrap italia version variable, useful to check for the current version\n\nconst BOOTSTRAP_ITALIA_VERSION = '2.17.3'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEK,MAAC,wBAAwB,GAAG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bootstrap-italia",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"css",
|
|
6
6
|
"sass",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@babel/preset-react": "^7.16.7",
|
|
59
59
|
"@eslint/eslintrc": "^3.2.0",
|
|
60
60
|
"@eslint/js": "^9.15.0",
|
|
61
|
-
"@octokit/rest": "^
|
|
61
|
+
"@octokit/rest": "^22.0.1",
|
|
62
62
|
"@rollup/plugin-babel": "^6.0.4",
|
|
63
63
|
"@rollup/plugin-legacy": "^3.0.2",
|
|
64
64
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"gh-pages": "^5.0.0",
|
|
77
77
|
"globals": "^15.12.0",
|
|
78
78
|
"pa11y": "^8.0.0",
|
|
79
|
-
"pa11y-ci": "^
|
|
79
|
+
"pa11y-ci": "^4.0.1",
|
|
80
80
|
"prettier": "^3.3.3",
|
|
81
81
|
"replace-in-file": "^6.3.2",
|
|
82
82
|
"rollup": "^4.26.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@splidejs/splide": "^4.1.4",
|
|
99
99
|
"@types/bootstrap": "^5.2.6",
|
|
100
100
|
"animejs": "^3.2.1",
|
|
101
|
-
"design-tokens-italia": "^1.
|
|
101
|
+
"design-tokens-italia": "^1.3.2",
|
|
102
102
|
"just-validate": "^4.3.0",
|
|
103
103
|
"minimasonry": "^1.3.2",
|
|
104
104
|
"progressbar.js": "^1.1.0",
|
package/src/js/version.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
|
4
4
|
|
|
5
|
+
@use 'sass:meta';
|
|
6
|
+
@use 'sass:color';
|
|
7
|
+
@use 'sass:math';
|
|
8
|
+
|
|
5
9
|
// Ascending
|
|
6
10
|
// Used to evaluate Sass maps like our grid breakpoints.
|
|
7
11
|
@mixin _assert-ascending($map, $map-name) {
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
|
|
35
39
|
// Colors
|
|
36
40
|
@function to-rgb($value) {
|
|
37
|
-
@return
|
|
41
|
+
@return color.channel($value, 'red', $space: rgb), color.channel($value, 'green', $space: rgb), color.channel($value, 'blue', $space: rgb);
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
// stylelint-disable scss/dollar-variable-pattern
|
|
@@ -209,9 +213,9 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
|
|
|
209
213
|
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
|
210
214
|
@function luminance($color) {
|
|
211
215
|
$rgb: (
|
|
212
|
-
'r':
|
|
213
|
-
'g':
|
|
214
|
-
'b':
|
|
216
|
+
'r': math.round(color.channel($color, 'red', $space: rgb)),
|
|
217
|
+
'g': math.round(color.channel($color, 'green', $space: rgb)),
|
|
218
|
+
'b': math.round(color.channel($color, 'blue', $space: rgb)),
|
|
215
219
|
);
|
|
216
220
|
|
|
217
221
|
@each $name, $value in $rgb {
|
|
@@ -230,18 +234,18 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
|
|
|
230
234
|
// Return opaque color
|
|
231
235
|
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
|
|
232
236
|
@function opaque($background, $foreground) {
|
|
233
|
-
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
|
|
237
|
+
@return color.mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
|
|
234
238
|
}
|
|
235
239
|
|
|
236
240
|
// scss-docs-start color-functions
|
|
237
241
|
// Tint a color: mix a color with white
|
|
238
242
|
@function tint-color($color, $weight) {
|
|
239
|
-
@return mix(white, $color, $weight);
|
|
243
|
+
@return color.mix(white, $color, $weight);
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
// Shade a color: mix a color with black
|
|
243
247
|
@function shade-color($color, $weight) {
|
|
244
|
-
@return mix(black, $color, $weight);
|
|
248
|
+
@return color.mix(black, $color, $weight);
|
|
245
249
|
}
|
|
246
250
|
|
|
247
251
|
// Shade the color if the weight is positive, else tint it
|
|
@@ -260,7 +264,7 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
|
|
|
260
264
|
@return $value1;
|
|
261
265
|
}
|
|
262
266
|
|
|
263
|
-
@if type-of($value1) == number and type-of($value2) == number and
|
|
267
|
+
@if meta.type-of($value1) == number and meta.type-of($value2) == number and math.compatible($value1, $value2) {
|
|
264
268
|
@return $value1 + $value2;
|
|
265
269
|
}
|
|
266
270
|
|
|
@@ -280,11 +284,11 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
|
|
|
280
284
|
@return $value1;
|
|
281
285
|
}
|
|
282
286
|
|
|
283
|
-
@if type-of($value1) == number and type-of($value2) == number and
|
|
287
|
+
@if meta.type-of($value1) == number and meta.type-of($value2) == number and math.compatible($value1, $value2) {
|
|
284
288
|
@return $value1 - $value2;
|
|
285
289
|
}
|
|
286
290
|
|
|
287
|
-
@if type-of($value2) != number {
|
|
291
|
+
@if meta.type-of($value2) != number {
|
|
288
292
|
$value2: unquote('(') + $value2 + unquote(')');
|
|
289
293
|
}
|
|
290
294
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Import Design Tokens Italia
|
|
2
2
|
// @import '../../node_modules/design-tokens-italia/scss/variables';
|
|
3
3
|
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
4
6
|
// Color vars
|
|
5
7
|
// HSB (https://it.wikipedia.org/wiki/Hue_Saturation_Brightness, coincidente con il modello HSV)
|
|
6
8
|
// è lo spazio colore scelto per ottenere le varianti colore della tonalità primaria.
|
|
@@ -21,7 +23,7 @@ $gray-800: hsl(0, 0%, 15%) !default; // color-gray-15
|
|
|
21
23
|
$gray-900: hsl(0, 0%, 10%) !default; // color-gray-10
|
|
22
24
|
|
|
23
25
|
$grays: () !default;
|
|
24
|
-
$grays: map
|
|
26
|
+
$grays: map.merge(
|
|
25
27
|
(
|
|
26
28
|
'100': $gray-100,
|
|
27
29
|
'200': $gray-200,
|
|
@@ -89,7 +91,7 @@ $gray-border-disabled: $gray-disabled !default; // color-border-disabled
|
|
|
89
91
|
$secondary: $gray-secondary !default;
|
|
90
92
|
|
|
91
93
|
$colors: () !default;
|
|
92
|
-
$colors: map
|
|
94
|
+
$colors: map.merge(
|
|
93
95
|
(
|
|
94
96
|
'indigo': $indigo,
|
|
95
97
|
'purple': $purple,
|
|
@@ -121,7 +123,7 @@ $warning: $orange-accessible !default;
|
|
|
121
123
|
$danger: $red-accessible !default;
|
|
122
124
|
|
|
123
125
|
$theme-colors: () !default;
|
|
124
|
-
$theme-colors: map
|
|
126
|
+
$theme-colors: map.merge(
|
|
125
127
|
(
|
|
126
128
|
'primary': $primary,
|
|
127
129
|
'secondary': $secondary,
|
|
@@ -412,7 +414,7 @@ $neutral-2-a7: hsb($neutral-2-h, $neutral-2-s + 4, $neutral-2-b - 85) !default;
|
|
|
412
414
|
// Backgrounds
|
|
413
415
|
$color-background-emphasis: hsl(210, 54%, 20%); // color-slate-20
|
|
414
416
|
$color-background-primary-lighter: hsl(210, 62%, 97%); // color-blue-97
|
|
415
|
-
$color-background-primary-hover: hsl(210, 100
|
|
417
|
+
$color-background-primary-hover: hsl(210, 100%, 30%); // color-blue-30
|
|
416
418
|
$color-background-secondary-hover: hsl(210, 33%, 28%); // color-slate-28
|
|
417
419
|
$color-background-secondary-lighter: hsl(210, 3%, 85%); // color-slate-85
|
|
418
420
|
$color-background-muted: $gray-100; // color-gray-96
|
|
@@ -1966,7 +1968,7 @@ $grid-list-text-gap: $v-gap;
|
|
|
1966
1968
|
$grid-item-sm-col: 50%;
|
|
1967
1969
|
$grid-item-lg-col: 33.333333%;
|
|
1968
1970
|
$grid-item-icon-size: 24px;
|
|
1969
|
-
$grid-item-overlay: hsla(
|
|
1971
|
+
$grid-item-overlay: hsla(210deg, 54%, 20%, 0.85);
|
|
1970
1972
|
|
|
1971
1973
|
// list
|
|
1972
1974
|
$list-font-size: 1rem;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// stylelint-disable property-blacklist, scss/dollar-variable-default
|
|
2
2
|
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
|
|
3
5
|
// SCSS RFS mixin
|
|
4
6
|
//
|
|
5
7
|
// Automated responsive values for font sizes, paddings, margins and much more
|
|
@@ -30,7 +32,7 @@ $rfs-two-dimensional: false !default;
|
|
|
30
32
|
// Factor of decrease
|
|
31
33
|
$rfs-factor: 10 !default;
|
|
32
34
|
|
|
33
|
-
@if type-of($rfs-factor) != number or $rfs-factor <= 1 {
|
|
35
|
+
@if meta.type-of($rfs-factor) != number or $rfs-factor <= 1 {
|
|
34
36
|
@error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
border-radius: $v-gap * 1.5;
|
|
9
9
|
height: $v-gap * 3;
|
|
10
10
|
min-width: 100px;
|
|
11
|
-
padding: 0 $v-gap / 2 2px $v-gap;
|
|
11
|
+
padding: 0 calc($v-gap / 2) 2px $v-gap;
|
|
12
12
|
transition: all 0.05s;
|
|
13
13
|
margin-top: $v-gap * 0.5;
|
|
14
14
|
margin-bottom: $v-gap;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
height: $v-gap * 4;
|
|
68
68
|
min-width: 120px;
|
|
69
69
|
border-radius: $v-gap * 2;
|
|
70
|
-
padding: 2px $v-gap / 2 0 $v-gap * 2;
|
|
70
|
+
padding: 2px calc($v-gap / 2) 0 $v-gap * 2;
|
|
71
71
|
//label
|
|
72
72
|
.chip-label {
|
|
73
73
|
font-size: $chips-label-font-size-l;
|