@wonderflow/react-components 17.3.0 → 17.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"product-card-media.d.ts","sourceRoot":"","sources":["../../../../src/components/product-card/product-card-media/product-card-media.tsx"],"names":[],"mappings":";AA6BA,oBAAY,qBAAqB,GAAG,cAAc,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAA;AAEF,oBAAY,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,CAAA;AAQ9F,eAAO,MAAM,gBAAgB,2BAiFE,CAAC"}
1
+ {"version":3,"file":"product-card-media.d.ts","sourceRoot":"","sources":["../../../../src/components/product-card/product-card-media/product-card-media.tsx"],"names":[],"mappings":";AA8BA,oBAAY,qBAAqB,GAAG,cAAc,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAA;AAEF,oBAAY,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,CAAA;AAQ9F,eAAO,MAAM,gBAAgB,2BAiFE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  /*
3
- * Copyright 2023-2025 Wonderflow Design Team
3
+ * Copyright 2023-2026 Wonderflow Design Team
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -14,6 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
+ import clsx from 'clsx';
17
18
  import { forwardRef, useEffect, useState, } from 'react';
18
19
  import { AspectRatio, Grid, Skeleton, } from '../../..';
19
20
  import * as styles from './product-card-media.module.css';
@@ -46,7 +47,7 @@ export const ProductCardMedia = forwardRef(({ source = [], ratio = '1', isLoadin
46
47
  }, []);
47
48
  if (source.length === 0)
48
49
  return null;
49
- return (_jsx("div", { ref: forwardedRef, className: className, style: { ...style }, ...otherProps, children: _jsx(AspectRatio, { ratio: ratio, children: isLoading
50
+ return (_jsx("div", { ref: forwardedRef, className: clsx(styles.Media, className), style: { ...style }, ...otherProps, children: _jsx(AspectRatio, { ratio: ratio, children: isLoading
50
51
  ? (_jsx(Skeleton, { style: { borderRadius: '0', lineHeight: '2rem' }, width: "inherit", height: "inherit" }))
51
52
  : (_jsx(Grid, { "aria-label": "", rows: imgs.length > 2 ? 2 : 1, rowMinHeight: "1fr", columns: imgs.length > 2 ? 2 : 1, colMinWidth: "1fr", children: imgs.map((el) => (_jsx(Grid.Item, { className: styles.Image, row: el.row, column: el.col, style: { backgroundImage: `url("${el.val}")` } }, `${el.val}-${el.row}-${el.col}`))) })) }) }));
52
53
  });
@@ -1 +1 @@
1
- @layer components{.Image{background-position:50%;background-repeat:no-repeat;background-size:cover;border:1px solid var(--dimmed-1)}}
1
+ @layer components{.Media{border-bottom:1px solid var(--dimmed-1)}.Image{background-position:50%;background-repeat:no-repeat;background-size:cover}}
@@ -1 +1 @@
1
- {"version":3,"file":"product-card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/product-card/product-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoC7C,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,WAAW,CAwD5C,CAAC;AAEF,eAAe,KAAK,CAAC;AAQr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eAAO,MAAM,eAAe,+DAAoB,CAAC;AAgBjD,eAAO,MAAM,SAAS,+DAAoB,CAAC;AAK3C,eAAO,MAAM,kBAAkB,+DAAoB,CAAC;AAKpD,eAAO,MAAM,gCAAgC,+DAAoB,CAAC;AAMlE,eAAO,MAAM,cAAc,+DAAoB,CAAC;AAOhD,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,OAAO,WAAW,CAKnE,CAAC"}
@@ -86,7 +86,9 @@ export default story;
86
86
  const Template = args => (_jsx("div", { style: { width: '272px' }, children: _jsx(ProductCard, { ...args }) }));
87
87
  // Base
88
88
  export const Default = Template.bind({});
89
- Default.args = {};
89
+ Default.args = {
90
+ kpiItems: 11,
91
+ };
90
92
  export const Loading = Template.bind({});
91
93
  Loading.args = {
92
94
  isLoading: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderflow/react-components",
3
- "version": "17.3.0",
3
+ "version": "17.3.1",
4
4
  "description": "UI components from Wonderflow's Wanda design system",
5
5
  "author": "Wonderflow",
6
6
  "license": "Apache-2.0",
@@ -81,9 +81,9 @@
81
81
  "@types/react": "17.0.43",
82
82
  "@types/react-dom": "17.0.14",
83
83
  "@types/react-test-renderer": "18.0.7",
84
- "@wonderflow/config": "17.3.0",
85
- "@wonderflow/tokens": "17.3.0",
86
- "@wonderflow/charts": "17.3.0",
84
+ "@wonderflow/config": "17.3.1",
85
+ "@wonderflow/tokens": "17.3.1",
86
+ "@wonderflow/charts": "17.3.1",
87
87
  "@types/uuid": "9.0.8",
88
88
  "babel-loader": "8.2.5",
89
89
  "cpy-cli": "3.1.1",