@nordicsemiconductor/pc-nrfconnect-shared 217.0.0 → 218.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
CHANGED
|
@@ -7,6 +7,12 @@ 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
|
+
## 218.0.0 - 2025-07-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Add missing active class for the selected option in StateSelector.
|
|
15
|
+
|
|
10
16
|
## 217.0.0 - 2025-07-07
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/package.json
CHANGED
|
@@ -35,7 +35,8 @@ const SwitchButton: React.FC<{
|
|
|
35
35
|
children: React.ReactNode;
|
|
36
36
|
size?: 'sm' | 'md';
|
|
37
37
|
title?: string;
|
|
38
|
-
|
|
38
|
+
active?: boolean;
|
|
39
|
+
}> = ({ variant, onClick, disabled, children, size = 'md', title, active }) => (
|
|
39
40
|
<button
|
|
40
41
|
type="button"
|
|
41
42
|
className={`${classNames(
|
|
@@ -45,7 +46,8 @@ const SwitchButton: React.FC<{
|
|
|
45
46
|
variant === 'set' &&
|
|
46
47
|
'tw-border-gray-700 tw-bg-white tw-text-gray-700',
|
|
47
48
|
variant === 'unset' &&
|
|
48
|
-
'tw-border-white tw-bg-gray-700 tw-text-white'
|
|
49
|
+
'tw-border-white tw-bg-gray-700 tw-text-white',
|
|
50
|
+
active && 'active tw-z-[1]'
|
|
49
51
|
)}`}
|
|
50
52
|
onClick={onClick}
|
|
51
53
|
disabled={disabled}
|
|
@@ -87,6 +89,7 @@ export default ({
|
|
|
87
89
|
disabled={disabled}
|
|
88
90
|
size={size}
|
|
89
91
|
title={complexItem.title}
|
|
92
|
+
active={complexSelectedItem.key === complexItem.key}
|
|
90
93
|
>
|
|
91
94
|
{complexItem.renderItem}
|
|
92
95
|
</SwitchButton>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateSelector.d.ts","sourceRoot":"","sources":["../../../../src/StateSelector/StateSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,WAAW;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"StateSelector.d.ts","sourceRoot":"","sources":["../../../../src/StateSelector/StateSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,WAAW;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;AA2CvC,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,UAAU,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB;6EAQE,KAAK;AANR,wBAoCE"}
|