@purpurds/radio-card-group 5.13.0 → 5.15.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/dist/LICENSE.txt +4 -4
- package/dist/radio-card-group.cjs.js +5 -5
- package/dist/radio-card-group.cjs.js.map +1 -1
- package/dist/radio-card-group.d.ts +3 -3
- package/dist/radio-card-group.d.ts.map +1 -1
- package/dist/radio-card-group.es.js +375 -386
- package/dist/radio-card-group.es.js.map +1 -1
- package/dist/radio-card-item.d.ts +1 -1
- package/package.json +10 -10
- package/src/radio-card-group.stories.tsx +2 -2
- package/src/radio-card-group.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/radio-card-group",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.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",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@radix-ui/react-radio-group": "~1.1.3",
|
|
18
18
|
"classnames": "~2.5.0",
|
|
19
|
-
"@purpurds/heading": "5.
|
|
20
|
-
"@purpurds/paragraph": "5.
|
|
21
|
-
"@purpurds/
|
|
22
|
-
"@purpurds/
|
|
19
|
+
"@purpurds/heading": "5.15.0",
|
|
20
|
+
"@purpurds/paragraph": "5.15.0",
|
|
21
|
+
"@purpurds/tokens": "5.15.0",
|
|
22
|
+
"@purpurds/skeleton": "5.15.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@rushstack/eslint-patch": "~1.10.0",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"typescript": "^5.5.4",
|
|
45
45
|
"vite": "5.3.4",
|
|
46
46
|
"vitest": "~1.5.0",
|
|
47
|
-
"@purpurds/
|
|
48
|
-
"@purpurds/
|
|
49
|
-
"@purpurds/
|
|
50
|
-
"@purpurds/text-field": "5.
|
|
51
|
-
"@purpurds/
|
|
47
|
+
"@purpurds/button": "5.15.0",
|
|
48
|
+
"@purpurds/badge": "5.15.0",
|
|
49
|
+
"@purpurds/grid": "5.15.0",
|
|
50
|
+
"@purpurds/text-field": "5.15.0",
|
|
51
|
+
"@purpurds/component-rig": "1.0.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build:dev": "vite",
|
|
@@ -12,7 +12,7 @@ import "@purpurds/paragraph/styles";
|
|
|
12
12
|
import "@purpurds/skeleton/styles";
|
|
13
13
|
import imageFile from "../static/story-image.png";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
RADIO_CARD_GROUP_ORIENTATION,
|
|
16
16
|
RADIO_POSITION,
|
|
17
17
|
RadioCardGroup,
|
|
18
18
|
RadioCardGroupItem,
|
|
@@ -47,7 +47,7 @@ const meta = {
|
|
|
47
47
|
orientation: {
|
|
48
48
|
table: {
|
|
49
49
|
type: {
|
|
50
|
-
summary:
|
|
50
|
+
summary: RADIO_CARD_GROUP_ORIENTATION.map((x) => `"${x}"`).join(" | "),
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
},
|
package/src/radio-card-group.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import { cx } from "./classnames";
|
|
|
6
6
|
import { isRadioCardItem, RadioCardItem, RadioCardItemProps } from "./radio-card-item";
|
|
7
7
|
|
|
8
8
|
export type RadioCardGroupItem = RadioCardItemProps & { ref?: Ref<HTMLDivElement> };
|
|
9
|
-
export const
|
|
9
|
+
export const RADIO_CARD_GROUP_ORIENTATION = ["horizontal", "vertical"] as const;
|
|
10
10
|
export const RADIO_POSITION = ["right", "left"] as const;
|
|
11
11
|
|
|
12
12
|
export type RadioCardGroupProps = {
|
|
@@ -55,7 +55,7 @@ export type RadioCardGroupProps = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Set to stack cards horizontally or vertically. When `horizontal`, the min card width with is 100% when container is sm, and `--purpur-breakpoint-lg` / 4 when the container is md or larger.
|
|
57
57
|
* */
|
|
58
|
-
orientation?: (typeof
|
|
58
|
+
orientation?: (typeof RADIO_CARD_GROUP_ORIENTATION)[number];
|
|
59
59
|
/**
|
|
60
60
|
* The position if the radio in the card items.
|
|
61
61
|
* */
|