@nordicsemiconductor/pc-nrfconnect-shared 245.0.0 → 246.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
+ ## 246.0.0 - 2026-04-22
11
+
12
+ ### Changed
13
+
14
+ - Aligned Card component styles with old implementation.
15
+
10
16
  ## 245.0.0 - 2026-04-21
11
17
 
12
18
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "245.0.0",
3
+ "version": "246.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
package/release_notes.md CHANGED
@@ -1,36 +1,3 @@
1
- ### Added
2
-
3
- - Added proto-slot components `Card.Header`, `Card.Header.Title`, `Card.Body`.
4
- - Added support for `className` and `ref` on `Card` and its proto-slot
5
- components.
6
- - Added support for `cardTitleClassName` and `cardSubtitleClassName` on
7
- `Card.Header.Title`
8
- - nRF54LS05 to the list of the known devices.
9
-
10
1
  ### Changed
11
2
 
12
- - Upgraded `tailwind` to `3.4.14` to allow for use of min/max width and min/max
13
- height with usual spacing units instead of screen sizes.
14
- - Refactored `Card` component to remove dependency on bootstrap and to allow for
15
- more flexibility.
16
-
17
- ### Steps to upgrade when using this package
18
-
19
- #### Migrating the `Card` component
20
-
21
- The `title` and `titleButton` are no longer available on `Card`, and the overall
22
- structure of `Card` changed. Follow this format:
23
-
24
- ```tsx
25
- import { Card } from '@nordicsemiconductor/pc-nrfconnect-shared';
26
-
27
- <Card>
28
- <Card.Header className="tw-flex tw-flex-row tw-justify-between">
29
- <Card.Header.Title cardTitle="your title here" />
30
- { /* your button here */ }
31
- </Card.Header>
32
- <Card.Body>
33
- { /* your card content here */ }
34
- </Card.Body>
35
- </Card>
36
- ```
3
+ - Aligned Card component styles with old implementation.
package/src/Card/Card.tsx CHANGED
@@ -60,7 +60,7 @@ interface CardHeaderComponent extends React.FC<CardHeaderProps> {
60
60
  const CardHeader: CardHeaderComponent = ({ children, className, ...attrs }) => (
61
61
  <header
62
62
  className={classNames(
63
- `tw-border-b tw-border-solid tw-border-b-black tw-border-opacity-10 tw-py-4`,
63
+ `tw-border-b tw-border-solid tw-border-b-black tw-border-opacity-10 tw-pb-3 tw-pt-5`,
64
64
  className,
65
65
  )}
66
66
  {...attrs}
@@ -98,7 +98,7 @@ interface CardComponent extends React.FC<CardProps> {
98
98
  const Card: CardComponent = ({ children, className, ...attrs }) => (
99
99
  <article
100
100
  className={classNames(
101
- `tw-preflight tw-relative tw-flex tw-flex-col tw-gap-4 tw-break-words tw-border tw-border-solid tw-border-black tw-border-opacity-10 tw-bg-white tw-px-4 tw-pb-4`,
101
+ `tw-preflight tw-relative tw-flex tw-flex-col tw-gap-3.5 tw-break-words tw-border tw-border-solid tw-border-black tw-border-opacity-10 tw-bg-white tw-px-4 tw-pb-4`,
102
102
  className,
103
103
  )}
104
104
  {...attrs}