@rte-ds/core 1.3.5 → 1.3.6

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,9 +1,12 @@
1
1
  import { Size } from "../common/common-types";
2
2
 
3
- export const cardSize: Record<Size, number> = {
3
+ export type CardSize = Size | "full";
4
+
5
+ export const cardSize: Record<CardSize, number | string> = {
4
6
  xs: 240,
5
7
  s: 360,
6
8
  m: 480,
7
9
  l: 600,
8
10
  xl: 720,
11
+ full: "100%",
9
12
  };
@@ -1,9 +1,9 @@
1
- import { Size } from "../common/common-types";
1
+ import { CardSize } from "./card.constats";
2
2
 
3
3
  export type CardType = "default" | "outlined";
4
4
 
5
5
  export interface CardProps {
6
- size?: Size;
6
+ size?: CardSize;
7
7
  cardType?: CardType;
8
8
  clickable?: boolean;
9
9
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rte-ds/core",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "lint": "eslint .",