@purpurds/promotion-card 8.4.0 → 8.5.1
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/promotion-card.cjs.js +13 -13
- package/dist/promotion-card.cjs.js.map +1 -1
- package/dist/promotion-card.d.ts +11 -10
- package/dist/promotion-card.d.ts.map +1 -1
- package/dist/promotion-card.es.js +132 -129
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +13 -13
- package/src/promotion-card.tsx +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/promotion-card",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/promotion-card.cjs.js",
|
|
6
6
|
"types": "./dist/promotion-card.d.ts",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"source": "src/promotion-card.tsx",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"classnames": "~2.5.0",
|
|
20
|
-
"@purpurds/
|
|
21
|
-
"@purpurds/
|
|
22
|
-
"@purpurds/
|
|
23
|
-
"@purpurds/
|
|
24
|
-
"@purpurds/
|
|
25
|
-
"@purpurds/
|
|
26
|
-
"@purpurds/
|
|
27
|
-
"@purpurds/
|
|
28
|
-
"@purpurds/
|
|
20
|
+
"@purpurds/badge": "8.5.1",
|
|
21
|
+
"@purpurds/button": "8.5.1",
|
|
22
|
+
"@purpurds/card": "8.5.1",
|
|
23
|
+
"@purpurds/common-types": "8.5.1",
|
|
24
|
+
"@purpurds/cta-link": "8.5.1",
|
|
25
|
+
"@purpurds/heading": "8.5.1",
|
|
26
|
+
"@purpurds/icon": "8.5.1",
|
|
27
|
+
"@purpurds/paragraph": "8.5.1",
|
|
28
|
+
"@purpurds/tokens": "8.5.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@storybook/react-vite": "^9.0.18",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"vite": "^6.2.1",
|
|
47
47
|
"vitest": "^3.1.2",
|
|
48
48
|
"@purpurds/component-rig": "1.0.0",
|
|
49
|
-
"@purpurds/grid": "8.
|
|
50
|
-
"@purpurds/text-spacing": "8.
|
|
51
|
-
"@purpurds/theme": "8.
|
|
49
|
+
"@purpurds/grid": "8.5.1",
|
|
50
|
+
"@purpurds/text-spacing": "8.5.1",
|
|
51
|
+
"@purpurds/theme": "8.5.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@types/react": "^18 || ^19",
|
package/src/promotion-card.tsx
CHANGED
|
@@ -39,9 +39,6 @@ const colors: StyleRecord = {
|
|
|
39
39
|
quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)",
|
|
40
40
|
} as const;
|
|
41
41
|
|
|
42
|
-
type DecorativeImage = { decorativeImage?: ReactNode };
|
|
43
|
-
type ProductImage = { productImage?: ReactNode };
|
|
44
|
-
|
|
45
42
|
export type PromotionCardProps = Omit<BaseProps, "children"> & {
|
|
46
43
|
variant?: PromotionCardVariant;
|
|
47
44
|
title: string;
|
|
@@ -59,7 +56,7 @@ export type PromotionCardProps = Omit<BaseProps, "children"> & {
|
|
|
59
56
|
* @deprecated Gradient has been removed from both design and implementation. This prop will be removed in the next major release.
|
|
60
57
|
*/
|
|
61
58
|
hasGradient?: boolean;
|
|
62
|
-
} & (
|
|
59
|
+
} & ({ decorativeImage?: ReactNode } | { productImage?: ReactNode });
|
|
63
60
|
|
|
64
61
|
const cx = c.bind(styles);
|
|
65
62
|
const rootClassName = "purpur-promotion-card";
|