@nordicsemiconductor/pc-nrfconnect-shared 239.0.0 → 240.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/.eslintrc.js ADDED
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2023 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5
+ */
6
+
7
+ module.exports = require('./config/eslintrc');
package/Changelog.md CHANGED
@@ -7,6 +7,16 @@ 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
+ ## 240.0.0 - 2025-12-02
11
+
12
+ ### Changed
13
+
14
+ - Duplicate Tailwind classes and surrounding whitespaces are now removed.
15
+
16
+ ### Fixed
17
+
18
+ - Checking the order of Tailwind classes was not done anymore.
19
+
10
20
  ## 239.0.0 - 2025-11-12
11
21
 
12
22
  ### Added
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  module.exports = {
8
+ plugins: ['prettier-plugin-tailwindcss'],
8
9
  singleQuote: true,
9
10
  tabWidth: 4,
10
11
  arrowParens: 'avoid',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "239.0.0",
3
+ "version": "240.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -94,7 +94,7 @@
94
94
  "postcss": "8.4.24",
95
95
  "postcss-modules": "^6.0.0",
96
96
  "prettier": "^3.6.2",
97
- "prettier-plugin-tailwindcss": "^0.3.0",
97
+ "prettier-plugin-tailwindcss": "^0.7.2",
98
98
  "prettysize": "2.0.0",
99
99
  "protobufjs": "^7.0.0",
100
100
  "react": "18.2.0",
@@ -129,8 +129,5 @@
129
129
  "@commander-js/extra-typings": "^10.0.3"
130
130
  },
131
131
  "typings": "./typings/generated/src/index.d.ts",
132
- "eslintConfig": {
133
- "extends": "./config/eslintrc"
134
- },
135
132
  "prettier": "./config/prettier.config.js"
136
133
  }
package/release_notes.md CHANGED
@@ -1,9 +1,7 @@
1
- ### Added
1
+ ### Changed
2
2
 
3
- - Link to the nRF54LM20 DK product page.
3
+ - Duplicate Tailwind classes and surrounding whitespaces are now removed.
4
4
 
5
- ### Changed
5
+ ### Fixed
6
6
 
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`.
7
+ - Checking the order of Tailwind classes was not done anymore.
@@ -50,9 +50,9 @@ const Button: React.FC<ButtonProps> = ({
50
50
  variant === 'primary' &&
51
51
  'tw-border tw-border-transparent tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
52
52
  variant === 'secondary' &&
53
- 'tw-border tw-border-gray-700 tw-bg-white tw-text-gray-700 active:enabled:tw-bg-gray-50',
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-border tw-border-transparent 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
57
  'tw-border tw-border-transparent tw-bg-nordicBlue tw-text-white active:enabled:tw-bg-nordicBlue-700',
58
58
  variant === 'warning' &&
@@ -23,7 +23,7 @@ const ShowMoreInfo = ({
23
23
  }) => (
24
24
  <PseudoButton
25
25
  className={classNames(
26
- isVisible ? 'tw-visible' : 'tw-invisible group-hover:tw-visible',
26
+ isVisible ? 'tw-visible' : 'tw-invisible group-hover:tw-visible',
27
27
  `mdi mdi-chevron-${isVisible ? 'up' : 'down'}`,
28
28
  )}
29
29
  testId="show-more-device-info"
@@ -11,8 +11,8 @@ import { displayedDeviceName } from '../../deviceInfo/deviceInfo';
11
11
  import { Device } from '../../deviceSlice';
12
12
 
13
13
  const Row = ({ children }: { children: ReactNode }) => (
14
- <div className=" tw-flex tw-flex-row tw-pr-5">
15
- <div className=" tw-w-[68px]" />
14
+ <div className="tw-flex tw-flex-row tw-pr-5">
15
+ <div className="tw-w-[68px]" />
16
16
  {children}
17
17
  </div>
18
18
  );
@@ -125,7 +125,7 @@ export default <T,>({
125
125
  <button
126
126
  type="button"
127
127
  className={classNames(
128
- 'tw-bg-transparent tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600',
128
+ 'tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-bg-transparent tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600',
129
129
  size === 'sm' && 'tw-text-2xs',
130
130
  )}
131
131
  key={JSON.stringify(item.value)}
@@ -75,7 +75,7 @@ const SingleFlashMessage = ({
75
75
  return (
76
76
  <div
77
77
  ref={divRef}
78
- className={`tw-flex tw-w-full tw-flex-col tw-justify-between tw-p-4 tw-text-white ${classNames(
78
+ className={`tw-flex tw-w-full tw-flex-col tw-justify-between tw-p-4 tw-text-white ${classNames(
79
79
  variant === 'error' && 'tw-bg-red',
80
80
  variant === 'success' && 'tw-bg-green',
81
81
  variant === 'info' && 'tw-bg-nordicBlue',
@@ -119,9 +119,9 @@ export const Group = ({
119
119
  <div className={className}>
120
120
  <button
121
121
  className={classNames(
122
- 'tw-row tw-preflight tw- tw-flex tw-items-center tw-justify-between tw-text-left',
122
+ 'tw-preflight tw-flex tw-flex-row tw-items-center tw-justify-between tw-text-left',
123
123
  headingFullWidth && 'tw-w-full',
124
- !collapsible && ' tw-cursor-default',
124
+ !collapsible && 'tw-cursor-default',
125
125
  )}
126
126
  type="button"
127
127
  onClick={() => {
@@ -122,7 +122,7 @@ export default ({
122
122
  {items.map(item => (
123
123
  <button
124
124
  type="button"
125
- className="tw-bg-transparent tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600"
125
+ className="tw-clear-both tw-block tw-h-6 tw-w-full tw-whitespace-nowrap tw-border-0 tw-bg-transparent tw-px-2 tw-py-1 tw-text-left tw-font-normal tw-text-white hover:tw-bg-gray-600 focus:tw-bg-gray-600"
126
126
  key={item.value}
127
127
  onClick={() => onClickItem(item)}
128
128
  >