@purpurds/promotion-card 5.24.2 → 5.24.3

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/promotion-card",
3
- "version": "5.24.2",
3
+ "version": "5.24.3",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/promotion-card.cjs.js",
6
6
  "types": "./dist/promotion-card.d.ts",
@@ -16,13 +16,13 @@
16
16
  "source": "src/promotion-card.tsx",
17
17
  "dependencies": {
18
18
  "classnames": "~2.5.0",
19
- "@purpurds/card": "5.24.2",
20
- "@purpurds/badge": "5.24.2",
21
- "@purpurds/heading": "5.24.2",
22
- "@purpurds/button": "5.24.2",
23
- "@purpurds/icon": "5.24.2",
24
- "@purpurds/tokens": "5.24.2",
25
- "@purpurds/cta-link": "5.24.2"
19
+ "@purpurds/button": "5.24.3",
20
+ "@purpurds/card": "5.24.3",
21
+ "@purpurds/heading": "5.24.3",
22
+ "@purpurds/badge": "5.24.3",
23
+ "@purpurds/cta-link": "5.24.3",
24
+ "@purpurds/tokens": "5.24.3",
25
+ "@purpurds/icon": "5.24.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rushstack/eslint-patch": "~1.10.0",
@@ -46,10 +46,10 @@
46
46
  "typescript": "^5.6.3",
47
47
  "vite": "5.4.8",
48
48
  "vitest": "^2.1.2",
49
- "@purpurds/component-rig": "1.0.0",
50
- "@purpurds/paragraph": "5.24.2",
51
- "@purpurds/text-spacing": "5.24.2",
52
- "@purpurds/grid": "5.24.2"
49
+ "@purpurds/paragraph": "5.24.3",
50
+ "@purpurds/text-spacing": "5.24.3",
51
+ "@purpurds/grid": "5.24.3",
52
+ "@purpurds/component-rig": "1.0.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build:dev": "vite",
@@ -1,4 +1,4 @@
1
- @import "@purpurds/tokens/breakpoint/variables";
1
+ @use "@purpurds/tokens/breakpoint/variables" as *;
2
2
 
3
3
  .purpur-promotion-card {
4
4
  $root: &;
@@ -155,9 +155,9 @@ const PromotionCardComponent = (
155
155
  {actions && actions.length > 0 && (
156
156
  <div className={cx(`${rootClassName}__actions`)}>
157
157
  {actions.map(({ label, variant: variantOverride, ...rest }, index) => {
158
- const variant = variantOverride ?? index === 0 ? "primary" : "secondary";
158
+ const actionVariant = variantOverride ?? index === 0 ? "primary" : "secondary";
159
159
  const props = {
160
- variant,
160
+ variant: actionVariant,
161
161
  negative: variant === "primary",
162
162
  ...rest,
163
163
  children: label,