@nordicsemiconductor/pc-nrfconnect-shared 237.0.0 → 239.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 +24 -0
- package/package.json +1 -1
- package/release_notes.md +7 -2
- package/src/Button/Button.tsx +5 -5
- package/src/Device/deviceInfo/deviceInfo.ts +4 -2
- package/src/Group/Group.tsx +6 -6
- package/src/utils/colors.scss +1 -0
- package/src/utils/colors.ts +3 -0
- package/styles.scss +1 -0
- package/typings/generated/src/Device/deviceInfo/deviceInfo.d.ts.map +1 -1
- package/typings/generated/src/Group/Group.d.ts +2 -2
- package/typings/generated/src/utils/colors.d.ts +1 -0
- package/typings/generated/src/utils/colors.d.ts.map +1 -1
package/Changelog.md
CHANGED
|
@@ -7,6 +7,30 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 239.0.0 - 2025-11-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Link to the nRF54LM20 DK product page.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- The width of buttons with the variants `primary`, `success`, `info`,
|
|
19
|
+
`warning`, and `danger` is slightly increased to match the width of the
|
|
20
|
+
variant `secondary`.
|
|
21
|
+
|
|
22
|
+
## 238.0.0 - 2025-11-12
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- A typo in `Group` props.
|
|
27
|
+
|
|
28
|
+
### Steps to upgrade when using this package
|
|
29
|
+
|
|
30
|
+
- Rename prop `collapseStatePersistanceId` to `collapseStatePersistenceId`
|
|
31
|
+
everywhere it is used. Running the type check will highlight remaining
|
|
32
|
+
occurrences. No data migration is needed; only the prop name changed.
|
|
33
|
+
|
|
10
34
|
## 237.0.0 - 2025-11-12
|
|
11
35
|
|
|
12
36
|
### Changed
|
package/package.json
CHANGED
package/release_notes.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
### Added
|
|
2
|
+
|
|
3
|
+
- Link to the nRF54LM20 DK product page.
|
|
4
|
+
|
|
1
5
|
### Changed
|
|
2
6
|
|
|
3
|
-
- The
|
|
4
|
-
|
|
7
|
+
- The width of buttons with the variants `primary`, `success`, `info`,
|
|
8
|
+
`warning`, and `danger` is slightly increased to match the width of the
|
|
9
|
+
variant `secondary`.
|
package/src/Button/Button.tsx
CHANGED
|
@@ -48,17 +48,17 @@ const Button: React.FC<ButtonProps> = ({
|
|
|
48
48
|
size === 'lg' && 'tw-h-8 tw-px-4 tw-text-sm',
|
|
49
49
|
size === 'xl' && 'tw-h-8 tw-px-4 tw-text-base',
|
|
50
50
|
variant === 'primary' &&
|
|
51
|
-
'tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
|
|
51
|
+
'tw-border tw-border-transparent tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
|
|
52
52
|
variant === 'secondary' &&
|
|
53
53
|
'tw-border tw-border-gray-700 tw-bg-white tw-text-gray-700 active:enabled:tw-bg-gray-50',
|
|
54
54
|
variant === 'success' &&
|
|
55
|
-
'tw-bg-green tw-text-white active:enabled:tw-bg-green-700',
|
|
55
|
+
'tw-border tw-border-transparent tw-bg-green tw-text-white active:enabled:tw-bg-green-700',
|
|
56
56
|
variant === 'info' &&
|
|
57
|
-
'tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
|
|
57
|
+
'tw-border tw-border-transparent tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
|
|
58
58
|
variant === 'warning' &&
|
|
59
|
-
'tw-bg-orange tw-text-white active:enabled:tw-bg-orange-700',
|
|
59
|
+
'tw-border tw-border-transparent tw-bg-orange tw-text-white active:enabled:tw-bg-orange-700',
|
|
60
60
|
variant === 'danger' &&
|
|
61
|
-
'tw-bg-red tw-text-white active:enabled:tw-bg-red-700',
|
|
61
|
+
'tw-border tw-border-transparent tw-bg-red tw-text-white active:enabled:tw-bg-red-700',
|
|
62
62
|
variant === 'link-button' &&
|
|
63
63
|
'tw-border tw-border-nordicBlue tw-bg-white tw-text-nordicBlue active:enabled:tw-bg-gray-50',
|
|
64
64
|
className,
|
|
@@ -276,8 +276,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
|
|
|
276
276
|
cores: 1,
|
|
277
277
|
icon: nrf54logo,
|
|
278
278
|
website: {
|
|
279
|
-
productPage:
|
|
280
|
-
|
|
279
|
+
productPage:
|
|
280
|
+
'https://www.nordicsemi.com/Products/Development-hardware/nRF54LM20-DK',
|
|
281
|
+
buyOnline:
|
|
282
|
+
'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF54LM20%20DK',
|
|
281
283
|
},
|
|
282
284
|
},
|
|
283
285
|
PCA10188: {
|
package/src/Group/Group.tsx
CHANGED
|
@@ -85,7 +85,7 @@ export const Group = ({
|
|
|
85
85
|
collapsible = false,
|
|
86
86
|
defaultCollapsed = !!collapsible,
|
|
87
87
|
onToggled,
|
|
88
|
-
|
|
88
|
+
collapseStatePersistenceId,
|
|
89
89
|
}: {
|
|
90
90
|
className?: string;
|
|
91
91
|
heading: React.ReactNode;
|
|
@@ -97,12 +97,12 @@ export const Group = ({
|
|
|
97
97
|
defaultCollapsed?: boolean;
|
|
98
98
|
onToggled?: (isNowExpanded: boolean) => void;
|
|
99
99
|
/** Unique identifier for persisting the group's collapse state across sessions. When provided, enables state persistence. */
|
|
100
|
-
|
|
100
|
+
collapseStatePersistenceId?: string;
|
|
101
101
|
}) => {
|
|
102
102
|
const getInitialCollapseState = () => {
|
|
103
|
-
if (
|
|
103
|
+
if (collapseStatePersistenceId) {
|
|
104
104
|
const persistedState = getPersistedGroupCollapseState(
|
|
105
|
-
|
|
105
|
+
collapseStatePersistenceId,
|
|
106
106
|
);
|
|
107
107
|
if (persistedState !== undefined) {
|
|
108
108
|
return persistedState;
|
|
@@ -146,9 +146,9 @@ export const Group = ({
|
|
|
146
146
|
onToggled?.(collapsed);
|
|
147
147
|
setCollapsed(!collapsed);
|
|
148
148
|
|
|
149
|
-
if (
|
|
149
|
+
if (collapseStatePersistenceId) {
|
|
150
150
|
persistGroupCollapseState(
|
|
151
|
-
|
|
151
|
+
collapseStatePersistenceId,
|
|
152
152
|
!collapsed,
|
|
153
153
|
);
|
|
154
154
|
}
|
package/src/utils/colors.scss
CHANGED
package/src/utils/colors.ts
CHANGED
package/styles.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACL;
|
|
1
|
+
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACL;AAuSD,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,UAC2B,CAAC;AASxE,eAAO,MAAM,mBAAmB,GAC5B,QAAQ,MAAM,EACd;;CAA+B,WAOlC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const Group: ({ className, heading, title, children, gap, headingFullWidth, collapsible, defaultCollapsed, onToggled,
|
|
2
|
+
export declare const Group: ({ className, heading, title, children, gap, headingFullWidth, collapsible, defaultCollapsed, onToggled, collapseStatePersistenceId, }: {
|
|
3
3
|
className?: string;
|
|
4
4
|
heading: React.ReactNode;
|
|
5
5
|
headingFullWidth?: boolean;
|
|
@@ -10,6 +10,6 @@ export declare const Group: ({ className, heading, title, children, gap, heading
|
|
|
10
10
|
defaultCollapsed?: boolean;
|
|
11
11
|
onToggled?: (isNowExpanded: boolean) => void;
|
|
12
12
|
/** Unique identifier for persisting the group's collapse state across sessions. When provided, enables state persistence. */
|
|
13
|
-
|
|
13
|
+
collapseStatePersistenceId?: string;
|
|
14
14
|
}) => JSX.Element;
|
|
15
15
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/utils/colors.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/utils/colors.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKlB,CAAC"}
|