@nordicsemiconductor/pc-nrfconnect-shared 243.0.0 → 244.0.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/Changelog.md +7 -0
- package/README.md +10 -0
- package/dist/bootstrap.css +250 -233
- package/dist/scripts/nordic-publish.js +3 -3
- package/dist/typings/scripts/esbuild-renderer.d.ts +4 -3
- package/dist/typings/scripts/esbuild-renderer.d.ts.map +1 -1
- package/package.json +3 -3
- package/release_notes.md +2 -9
- package/scripts/esbuild-renderer.ts +5 -3
- package/src/variables.scss +20 -18
|
@@ -11,7 +11,7 @@ export declare const build: (additionalOptions: AdditionalOptions, { externalRea
|
|
|
11
11
|
outdir?: string | undefined;
|
|
12
12
|
outbase?: string | undefined;
|
|
13
13
|
external: string[];
|
|
14
|
-
packages?: "external" | undefined;
|
|
14
|
+
packages?: "bundle" | "external" | undefined;
|
|
15
15
|
alias?: Record<string, string> | undefined;
|
|
16
16
|
loader: {
|
|
17
17
|
[ext: string]: esbuild.Loader;
|
|
@@ -36,10 +36,10 @@ export declare const build: (additionalOptions: AdditionalOptions, { externalRea
|
|
|
36
36
|
footer?: {
|
|
37
37
|
[type: string]: string;
|
|
38
38
|
} | undefined;
|
|
39
|
-
entryPoints?: (string
|
|
39
|
+
entryPoints?: ((string | {
|
|
40
40
|
in: string;
|
|
41
41
|
out: string;
|
|
42
|
-
}[]) | undefined;
|
|
42
|
+
})[] | Record<string, string>) | undefined;
|
|
43
43
|
stdin?: esbuild.StdinOptions | undefined;
|
|
44
44
|
plugins: esbuild.Plugin[];
|
|
45
45
|
absWorkingDir?: string | undefined;
|
|
@@ -78,6 +78,7 @@ export declare const build: (additionalOptions: AdditionalOptions, { externalRea
|
|
|
78
78
|
} | undefined;
|
|
79
79
|
pure?: string[] | undefined;
|
|
80
80
|
keepNames?: boolean | undefined;
|
|
81
|
+
absPaths?: esbuild.AbsPaths[] | undefined;
|
|
81
82
|
color?: boolean | undefined;
|
|
82
83
|
logLevel: esbuild.LogLevel;
|
|
83
84
|
logLimit?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild-renderer.d.ts","sourceRoot":"","sources":["../../../scripts/esbuild-renderer.ts"],"names":[],"mappings":"AAQA,OAAO,OAAO,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAuBrD,KAAK,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"esbuild-renderer.d.ts","sourceRoot":"","sources":["../../../scripts/esbuild-renderer.ts"],"names":[],"mappings":"AAQA,OAAO,OAAO,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAuBrD,KAAK,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AA0F/C,eAAO,MAAM,KAAK,GACd,mBAAmB,iBAAiB,EACpC;;CAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAYjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/pc-nrfconnect-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "244.0.0",
|
|
4
4
|
"description": "Shared commodities for developing pc-nrfconnect-* packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"date-fns": "2.29.3",
|
|
62
62
|
"electron": "^32.1.2",
|
|
63
63
|
"electron-store": "8.1.0",
|
|
64
|
-
"esbuild": "0.
|
|
65
|
-
"esbuild-sass-plugin": "
|
|
64
|
+
"esbuild": "^0.27.2",
|
|
65
|
+
"esbuild-sass-plugin": "^3.6.0",
|
|
66
66
|
"esbuild-style-plugin": "1.6.2",
|
|
67
67
|
"eslint": "^8.57.1",
|
|
68
68
|
"eslint-config-airbnb": "19.0.4",
|
package/release_notes.md
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
### Fixed
|
|
2
|
-
|
|
3
|
-
- shared@232 introduced a bug that the `NRFUTIL_*` env variables were not
|
|
4
|
-
cleared which could cause problems if users set them in their environment.
|
|
5
|
-
|
|
6
1
|
### Changed
|
|
7
2
|
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
problems (if it is imported as `process` it may hinder replacing NODE_ENV
|
|
11
|
-
during compilation).
|
|
3
|
+
- Major upgrade of `esbuild` and `esbuild-sass-plugin` which brings along Sass
|
|
4
|
+
updates and deprecations.
|
|
@@ -69,14 +69,16 @@ const options = (
|
|
|
69
69
|
sassPlugin({
|
|
70
70
|
filter: /\.(module|icss)\.scss/,
|
|
71
71
|
cssImports: true,
|
|
72
|
-
quietDeps: false,
|
|
73
|
-
|
|
74
72
|
transform: postcssModules({}),
|
|
75
73
|
}),
|
|
76
74
|
sassPlugin({
|
|
77
75
|
filter: /\.scss$/,
|
|
78
76
|
cssImports: true,
|
|
79
|
-
|
|
77
|
+
silenceDeprecations:
|
|
78
|
+
process.env.ENABLE_ALL_SASS_WARNINGS === 'true'
|
|
79
|
+
? undefined
|
|
80
|
+
: ['import'],
|
|
81
|
+
quietDeps: process.env.ENABLE_ALL_SASS_WARNINGS !== 'true',
|
|
80
82
|
}),
|
|
81
83
|
postCssPlugin({
|
|
82
84
|
postcss: {
|
package/src/variables.scss
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
@use "sass:color";
|
|
8
|
+
@use "sass:math";
|
|
9
|
+
|
|
7
10
|
@import '../styles.scss';
|
|
8
11
|
|
|
9
12
|
//
|
|
@@ -49,7 +52,7 @@ $h6-font-size: ($font-size-base * 0.85); // ~12px
|
|
|
49
52
|
//** Unit-less `line-height` for use in components like buttons.
|
|
50
53
|
$line-height-base: 1.428571429; // 20/14
|
|
51
54
|
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
|
52
|
-
$line-height-computed: floor(($font-size-base * $line-height-base)); // ~20px
|
|
55
|
+
$line-height-computed: math.floor(($font-size-base * $line-height-base)); // ~20px
|
|
53
56
|
|
|
54
57
|
//** By default, this inherits from the `<body>`.
|
|
55
58
|
$headings-font-family: inherit;
|
|
@@ -335,20 +338,20 @@ $navbar-collapse-max-height: 340px;
|
|
|
335
338
|
|
|
336
339
|
$navbar-default-color: #777;
|
|
337
340
|
$navbar-default-bg: #f8f8f8;
|
|
338
|
-
$navbar-default-border:
|
|
341
|
+
$navbar-default-border: color.adjust($navbar-default-bg, $lightness: -6.5%);
|
|
339
342
|
|
|
340
343
|
// Navbar links
|
|
341
344
|
$navbar-default-link-color: #777;
|
|
342
345
|
$navbar-default-link-hover-color: #333;
|
|
343
346
|
$navbar-default-link-hover-bg: transparent;
|
|
344
347
|
$navbar-default-link-active-color: #555;
|
|
345
|
-
$navbar-default-link-active-bg:
|
|
348
|
+
$navbar-default-link-active-bg: color.adjust($navbar-default-bg, $lightness: -6.5%);
|
|
346
349
|
$navbar-default-link-disabled-color: #ccc;
|
|
347
350
|
$navbar-default-link-disabled-bg: transparent;
|
|
348
351
|
|
|
349
352
|
// Navbar brand label
|
|
350
353
|
$navbar-default-brand-color: $navbar-default-link-color;
|
|
351
|
-
$navbar-default-brand-hover-color:
|
|
354
|
+
$navbar-default-brand-hover-color: color.adjust($navbar-default-brand-color, $lightness: -10%);
|
|
352
355
|
$navbar-default-brand-hover-bg: transparent;
|
|
353
356
|
|
|
354
357
|
// Navbar toggle
|
|
@@ -360,14 +363,14 @@ $navbar-default-toggle-border-color: #ddd;
|
|
|
360
363
|
// Reset inverted navbar basics
|
|
361
364
|
$navbar-inverse-color: $gray-200;
|
|
362
365
|
$navbar-inverse-bg: #222;
|
|
363
|
-
$navbar-inverse-border:
|
|
366
|
+
$navbar-inverse-border: color.adjust($navbar-inverse-bg, $lightness: -10%);
|
|
364
367
|
|
|
365
368
|
// Inverted navbar links
|
|
366
369
|
$navbar-inverse-link-color: $gray-200;
|
|
367
370
|
$navbar-inverse-link-hover-color: #fff;
|
|
368
371
|
$navbar-inverse-link-hover-bg: transparent;
|
|
369
372
|
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color;
|
|
370
|
-
$navbar-inverse-link-active-bg:
|
|
373
|
+
$navbar-inverse-link-active-bg: color.adjust($navbar-inverse-bg, $lightness: -10%);
|
|
371
374
|
$navbar-inverse-link-disabled-color: #444;
|
|
372
375
|
$navbar-inverse-link-disabled-bg: transparent;
|
|
373
376
|
|
|
@@ -452,8 +455,8 @@ $jumbotron-padding: 30px;
|
|
|
452
455
|
$jumbotron-color: inherit;
|
|
453
456
|
$jumbotron-bg: $gray-50;
|
|
454
457
|
$jumbotron-heading-color: inherit;
|
|
455
|
-
$jumbotron-font-size: ceil(($font-size-base * 1.5));
|
|
456
|
-
$jumbotron-heading-font-size: ceil(($font-size-base * 4.5));
|
|
458
|
+
$jumbotron-font-size: math.ceil(($font-size-base * 1.5));
|
|
459
|
+
$jumbotron-heading-font-size: math.ceil(($font-size-base * 4.5));
|
|
457
460
|
|
|
458
461
|
//== Form states and alerts
|
|
459
462
|
//
|
|
@@ -461,19 +464,18 @@ $jumbotron-heading-font-size: ceil(($font-size-base * 4.5));
|
|
|
461
464
|
|
|
462
465
|
$state-success-text: #3c763d;
|
|
463
466
|
$state-success-bg: #dff0d8;
|
|
464
|
-
$state-success-border:
|
|
467
|
+
$state-success-border: color.adjust($state-success-bg, $hue: -10deg, $lightness: -5%);
|
|
465
468
|
|
|
466
469
|
$state-info-text: #31708f;
|
|
467
470
|
$state-info-bg: #d9edf7;
|
|
468
|
-
$state-info-border:
|
|
469
|
-
|
|
471
|
+
$state-info-border: color.adjust($state-info-bg, $hue: -10deg, $lightness: -7%);
|
|
470
472
|
$state-warning-text: #8a6d3b;
|
|
471
473
|
$state-warning-bg: #fcf8e3;
|
|
472
|
-
$state-warning-border:
|
|
474
|
+
$state-warning-border: color.adjust($state-warning-bg, $hue: -10deg, $lightness: -5%);
|
|
473
475
|
|
|
474
476
|
$state-danger-text: #a94442;
|
|
475
477
|
$state-danger-bg: #f2dede;
|
|
476
|
-
$state-danger-border:
|
|
478
|
+
$state-danger-border: color.adjust($state-danger-bg, $hue: -10deg, $lightness: -5%);
|
|
477
479
|
|
|
478
480
|
//== Tooltips
|
|
479
481
|
//
|
|
@@ -506,7 +508,7 @@ $popover-border-color: rgba(0, 0, 0, 0.2);
|
|
|
506
508
|
$popover-fallback-border-color: #ccc;
|
|
507
509
|
|
|
508
510
|
//** Popover title background color
|
|
509
|
-
$popover-title-bg:
|
|
511
|
+
$popover-title-bg: color.adjust($popover-bg, $lightness: -3%);
|
|
510
512
|
|
|
511
513
|
//** Popover arrow width
|
|
512
514
|
$popover-arrow-width: 10px;
|
|
@@ -518,9 +520,9 @@ $popover-arrow-outer-width: ($popover-arrow-width + 1);
|
|
|
518
520
|
//** Popover outer arrow color
|
|
519
521
|
$popover-arrow-outer-color: fadein($popover-border-color, 5%);
|
|
520
522
|
//** Popover outer arrow fallback color
|
|
521
|
-
$popover-arrow-outer-fallback-color:
|
|
523
|
+
$popover-arrow-outer-fallback-color: color.adjust(
|
|
522
524
|
$popover-fallback-border-color,
|
|
523
|
-
20%
|
|
525
|
+
$lightness: -20%
|
|
524
526
|
);
|
|
525
527
|
|
|
526
528
|
//== Labels
|
|
@@ -644,7 +646,7 @@ $list-group-active-bg: $component-active-bg;
|
|
|
644
646
|
//** Border color of active list elements
|
|
645
647
|
$list-group-active-border: $list-group-active-bg;
|
|
646
648
|
//** Text color for content within active list items
|
|
647
|
-
$list-group-active-text-color:
|
|
649
|
+
$list-group-active-text-color: color.adjust($list-group-active-bg, $lightness: 40%);
|
|
648
650
|
|
|
649
651
|
//** Text color of disabled list items
|
|
650
652
|
$list-group-disabled-color: $gray-400;
|
|
@@ -718,7 +720,7 @@ $thumbnail-caption-padding: 9px;
|
|
|
718
720
|
//##
|
|
719
721
|
|
|
720
722
|
$well-bg: #f5f5f5;
|
|
721
|
-
$well-border:
|
|
723
|
+
$well-border: color.adjust($well-bg, $lightness: -7%);
|
|
722
724
|
|
|
723
725
|
//== Badges
|
|
724
726
|
//
|