@purpurds/radio-card-group 6.1.4 → 6.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/radio-card-group",
3
- "version": "6.1.4",
3
+ "version": "6.2.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/radio-card-group.cjs.js",
6
6
  "types": "./dist/radio-card-group.d.ts",
@@ -17,10 +17,10 @@
17
17
  "dependencies": {
18
18
  "@radix-ui/react-radio-group": "~1.2.3",
19
19
  "classnames": "~2.5.0",
20
- "@purpurds/heading": "6.1.4",
21
- "@purpurds/paragraph": "6.1.4",
22
- "@purpurds/skeleton": "6.1.4",
23
- "@purpurds/tokens": "6.1.4"
20
+ "@purpurds/heading": "6.2.0",
21
+ "@purpurds/tokens": "6.2.0",
22
+ "@purpurds/paragraph": "6.2.0",
23
+ "@purpurds/skeleton": "6.2.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rushstack/eslint-patch": "~1.10.0",
@@ -28,28 +28,42 @@
28
28
  "@storybook/react": "^8.3.5",
29
29
  "@telia/base-rig": "~8.2.0",
30
30
  "@telia/react-rig": "~3.2.0",
31
- "@testing-library/dom": "~9.3.3",
31
+ "@testing-library/dom": "~10.4.0",
32
32
  "@testing-library/jest-dom": "~6.4.0",
33
- "@testing-library/react": "~14.3.0",
33
+ "@testing-library/react": "~ 16.2.0",
34
34
  "@types/node": "20.12.12",
35
- "@types/react-dom": "^18.3.0",
36
- "@types/react": "^18.3.3",
35
+ "@types/react-dom": "^19.0.4",
36
+ "@types/react": "^19.0.10",
37
37
  "eslint-plugin-testing-library": "~6.2.0",
38
38
  "eslint": "^8.57.0",
39
39
  "jsdom": "~22.1.0",
40
40
  "lint-staged": "~10.5.3",
41
41
  "prettier": "~2.8.8",
42
- "react-dom": "^18.3.1",
43
- "react": "^18.3.1",
42
+ "react-dom": "^19.0.0",
43
+ "react": "^19.0.0",
44
44
  "storybook": "^8.3.5",
45
45
  "typescript": "^5.6.3",
46
46
  "vite": "5.4.8",
47
47
  "vitest": "^2.1.2",
48
- "@purpurds/badge": "6.1.4",
49
- "@purpurds/button": "6.1.4",
50
- "@purpurds/component-rig": "1.0.0",
51
- "@purpurds/grid": "6.1.4",
52
- "@purpurds/text-field": "6.1.4"
48
+ "@purpurds/badge": "6.2.0",
49
+ "@purpurds/button": "6.2.0",
50
+ "@purpurds/grid": "6.2.0",
51
+ "@purpurds/text-field": "6.2.0",
52
+ "@purpurds/component-rig": "1.0.0"
53
+ },
54
+ "peerDependencies": {
55
+ "@types/react": "^18 || ^19",
56
+ "@types/react-dom": "^18 || ^19",
57
+ "react": "^18 || ^19",
58
+ "react-dom": "^18 || ^19"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "@types/react": {
62
+ "optional": true
63
+ },
64
+ "@types/react-dom": {
65
+ "optional": true
66
+ }
53
67
  },
54
68
  "scripts": {
55
69
  "build:dev": "vite",
@@ -141,14 +141,6 @@ export const RadioCardItem = forwardRef(RadioCardItemComponent);
141
141
  RadioCardItem.displayName = "RadioCardItem";
142
142
 
143
143
  export const isRadioCardItem = (
144
- child:
145
- | ReactElement
146
- | Iterable<ReactNode>
147
- | ReactPortal
148
- | string
149
- | number
150
- | boolean
151
- | null
152
- | undefined
144
+ child?: ReactNode
153
145
  ): child is ReactElement<RadioCardItemProps> =>
154
146
  isValidElement<RadioCardItemProps>(child) && child?.type === RadioCardItem;