@sb1/ffe-cards-react 17.4.8 → 17.5.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.
@@ -25,9 +25,10 @@ import classNames from 'classnames';
25
25
  import { fixedForwardRef } from '../fixedForwardRef';
26
26
  function GroupCardWithForwardRef(_a, ref) {
27
27
  var _b;
28
- var shadow = _a.shadow, className = _a.className, children = _a.children, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, rest = __rest(_a, ["shadow", "className", "children", "bgColor", "bgDarkmodeColor"]);
28
+ var shadow = _a.shadow, className = _a.className, children = _a.children, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, noMargin = _a.noMargin, rest = __rest(_a, ["shadow", "className", "children", "bgColor", "bgDarkmodeColor", "noMargin"]);
29
29
  return (React.createElement("div", __assign({ className: classNames('ffe-group-card', (_b = {
30
- 'ffe-group-card--shadow': shadow
30
+ 'ffe-group-card--shadow': shadow,
31
+ 'ffe-group-card--no-margin': noMargin
31
32
  },
32
33
  _b["ffe-group-card--bg-".concat(bgColor)] = bgColor,
33
34
  _b["ffe-group-card--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
@@ -25,8 +25,8 @@ import classNames from 'classnames';
25
25
  import { WithCardAction, Text, Subtext, Title, CardName } from '../components';
26
26
  import { fixedForwardRef } from '../fixedForwardRef';
27
27
  function IconCardWithForwardRef(props, ref) {
28
- var className = props.className, condensed = props.condensed, icon = props.icon, children = props.children, iconPosition = props.iconPosition, rest = __rest(props, ["className", "condensed", "icon", "children", "iconPosition"]);
29
- return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: classNames('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--right': iconPosition === 'right' }, className) }, rest, { ref: ref }), function (_a) {
28
+ var className = props.className, condensed = props.condensed, icon = props.icon, noMargin = props.noMargin, children = props.children, iconPosition = props.iconPosition, rest = __rest(props, ["className", "condensed", "icon", "noMargin", "children", "iconPosition"]);
29
+ return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: classNames('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, { 'ffe-icon-card--right': iconPosition === 'right' }, className) }, rest, { ref: ref }), function (_a) {
30
30
  var CardAction = _a.CardAction;
31
31
  var bodyElement = (React.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
32
32
  ? children({
@@ -25,8 +25,8 @@ import classNames from 'classnames';
25
25
  import { WithCardAction, Text, Subtext, Title, CardName } from '../components';
26
26
  import { fixedForwardRef } from '../fixedForwardRef';
27
27
  function IllustrationCardWithForwardRef(props, ref) {
28
- var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "children"]);
29
- return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: classNames('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, {
28
+ var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "children"]);
29
+ return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: classNames('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, { 'ffe-illustration-card--no-margin': noMargin }, {
30
30
  'ffe-illustration-card--right': illustrationPosition === 'right',
31
31
  }, className) }, rest, { ref: ref }), function (_a) {
32
32
  var CardAction = _a.CardAction;
@@ -25,8 +25,8 @@ import classNames from 'classnames';
25
25
  import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
26
26
  import { fixedForwardRef } from '../fixedForwardRef';
27
27
  function ImageCardWithForwardRef(props, ref) {
28
- var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "children"]);
29
- return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-image-card", className: classNames('ffe-image-card', className) }, rest, { ref: ref }), function (_a) {
28
+ var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "children"]);
29
+ return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-image-card", className: classNames('ffe-image-card', { 'ffe-image-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
30
30
  var CardAction = _a.CardAction;
31
31
  return (React.createElement(React.Fragment, null,
32
32
  React.createElement("div", { className: "ffe-image-card__image-container" },
@@ -25,8 +25,8 @@ import classNames from 'classnames';
25
25
  import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
26
26
  import { fixedForwardRef } from '../fixedForwardRef';
27
27
  function StippledCardWithForwardRef(props, ref) {
28
- var className = props.className, condensed = props.condensed, img = props.img, children = props.children, rest = __rest(props, ["className", "condensed", "img", "children"]);
29
- return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-stippled-card", className: classNames('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, className) }, rest, { ref: ref }), function (_a) {
28
+ var className = props.className, condensed = props.condensed, img = props.img, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "noMargin", "children"]);
29
+ return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-stippled-card", className: classNames('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, { 'ffe-stippled-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
30
30
  var CardAction = _a.CardAction;
31
31
  return (React.createElement(React.Fragment, null,
32
32
  img && (React.createElement("div", { className: classNames('ffe-stippled-card__img', {
@@ -25,8 +25,8 @@ import classNames from 'classnames';
25
25
  import { CardName, Subtext, Text, Title, WithCardAction } from '../components';
26
26
  import { fixedForwardRef } from '../fixedForwardRef';
27
27
  function TextCardWithForwardRef(props, ref) {
28
- var className = props.className, leftAlign = props.leftAlign, children = props.children, rest = __rest(props, ["className", "leftAlign", "children"]);
29
- return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-text-card", className: classNames('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, className) }, rest, { ref: ref }), function (_a) {
28
+ var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "children"]);
29
+ return (React.createElement(WithCardAction, __assign({ baseClassName: "ffe-text-card", className: classNames('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, { 'ffe-text-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
30
30
  var CardAction = _a.CardAction;
31
31
  return typeof children === 'function'
32
32
  ? children({ Text: Text, Subtext: Subtext, Title: Title, CardName: CardName, CardAction: CardAction })
@@ -0,0 +1 @@
1
+ {"root":["../src/CardBase.tsx","../src/fixedForwardRef.tsx","../src/index.ts","../src/mergeRefs.ts","../src/types.ts","../src/GroupCard/GroupCard.tsx","../src/GroupCard/GroupCardElement.tsx","../src/GroupCard/GroupCardFooter.tsx","../src/GroupCard/GroupCardTitle.tsx","../src/IconCard/IconCard.tsx","../src/IllustrationCard/IllustrationCard.tsx","../src/ImageCard/ImageCard.tsx","../src/StippledCard/StippledCard.tsx","../src/TextCard/TextCard.tsx","../src/components/CardAction.tsx","../src/components/CardName.tsx","../src/components/ComponentBase.tsx","../src/components/Subtext.tsx","../src/components/Text.tsx","../src/components/Title.tsx","../src/components/WithCardAction.tsx","../src/components/index.ts"],"version":"5.6.2"}
@@ -31,9 +31,10 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var fixedForwardRef_1 = require("../fixedForwardRef");
32
32
  function GroupCardWithForwardRef(_a, ref) {
33
33
  var _b;
34
- var shadow = _a.shadow, className = _a.className, children = _a.children, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, rest = __rest(_a, ["shadow", "className", "children", "bgColor", "bgDarkmodeColor"]);
34
+ var shadow = _a.shadow, className = _a.className, children = _a.children, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, noMargin = _a.noMargin, rest = __rest(_a, ["shadow", "className", "children", "bgColor", "bgDarkmodeColor", "noMargin"]);
35
35
  return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('ffe-group-card', (_b = {
36
- 'ffe-group-card--shadow': shadow
36
+ 'ffe-group-card--shadow': shadow,
37
+ 'ffe-group-card--no-margin': noMargin
37
38
  },
38
39
  _b["ffe-group-card--bg-".concat(bgColor)] = bgColor,
39
40
  _b["ffe-group-card--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
@@ -31,8 +31,8 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var components_1 = require("../components");
32
32
  var fixedForwardRef_1 = require("../fixedForwardRef");
33
33
  function IconCardWithForwardRef(props, ref) {
34
- var className = props.className, condensed = props.condensed, icon = props.icon, children = props.children, iconPosition = props.iconPosition, rest = __rest(props, ["className", "condensed", "icon", "children", "iconPosition"]);
35
- return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: (0, classnames_1.default)('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--right': iconPosition === 'right' }, className) }, rest, { ref: ref }), function (_a) {
34
+ var className = props.className, condensed = props.condensed, icon = props.icon, noMargin = props.noMargin, children = props.children, iconPosition = props.iconPosition, rest = __rest(props, ["className", "condensed", "icon", "noMargin", "children", "iconPosition"]);
35
+ return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-icon-card", className: (0, classnames_1.default)('ffe-icon-card', { 'ffe-icon-card--condensed': condensed }, { 'ffe-icon-card--no-margin': noMargin }, { 'ffe-icon-card--right': iconPosition === 'right' }, className) }, rest, { ref: ref }), function (_a) {
36
36
  var CardAction = _a.CardAction;
37
37
  var bodyElement = (react_1.default.createElement("div", { className: "ffe-icon-card__body" }, typeof children === 'function'
38
38
  ? children({
@@ -31,8 +31,8 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var components_1 = require("../components");
32
32
  var fixedForwardRef_1 = require("../fixedForwardRef");
33
33
  function IllustrationCardWithForwardRef(props, ref) {
34
- var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "children"]);
35
- return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: (0, classnames_1.default)('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, {
34
+ var className = props.className, condensed = props.condensed, img = props.img, illustrationPosition = props.illustrationPosition, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "illustrationPosition", "noMargin", "children"]);
35
+ return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-illustration-card", className: (0, classnames_1.default)('ffe-illustration-card', { 'ffe-illustration-card--condensed': condensed }, { 'ffe-illustration-card--no-margin': noMargin }, {
36
36
  'ffe-illustration-card--right': illustrationPosition === 'right',
37
37
  }, className) }, rest, { ref: ref }), function (_a) {
38
38
  var CardAction = _a.CardAction;
@@ -31,8 +31,8 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var components_1 = require("../components");
32
32
  var fixedForwardRef_1 = require("../fixedForwardRef");
33
33
  function ImageCardWithForwardRef(props, ref) {
34
- var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "children"]);
35
- return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-image-card", className: (0, classnames_1.default)('ffe-image-card', className) }, rest, { ref: ref }), function (_a) {
34
+ var className = props.className, imageSrc = props.imageSrc, imageAltText = props.imageAltText, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "imageSrc", "imageAltText", "noMargin", "children"]);
35
+ return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-image-card", className: (0, classnames_1.default)('ffe-image-card', { 'ffe-image-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
36
36
  var CardAction = _a.CardAction;
37
37
  return (react_1.default.createElement(react_1.default.Fragment, null,
38
38
  react_1.default.createElement("div", { className: "ffe-image-card__image-container" },
@@ -31,8 +31,8 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var components_1 = require("../components");
32
32
  var fixedForwardRef_1 = require("../fixedForwardRef");
33
33
  function StippledCardWithForwardRef(props, ref) {
34
- var className = props.className, condensed = props.condensed, img = props.img, children = props.children, rest = __rest(props, ["className", "condensed", "img", "children"]);
35
- return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-stippled-card", className: (0, classnames_1.default)('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, className) }, rest, { ref: ref }), function (_a) {
34
+ var className = props.className, condensed = props.condensed, img = props.img, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "condensed", "img", "noMargin", "children"]);
35
+ return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-stippled-card", className: (0, classnames_1.default)('ffe-stippled-card', { 'ffe-stippled-card--condensed': condensed }, { 'ffe-stippled-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
36
36
  var CardAction = _a.CardAction;
37
37
  return (react_1.default.createElement(react_1.default.Fragment, null,
38
38
  img && (react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-stippled-card__img', {
@@ -31,8 +31,8 @@ var classnames_1 = __importDefault(require("classnames"));
31
31
  var components_1 = require("../components");
32
32
  var fixedForwardRef_1 = require("../fixedForwardRef");
33
33
  function TextCardWithForwardRef(props, ref) {
34
- var className = props.className, leftAlign = props.leftAlign, children = props.children, rest = __rest(props, ["className", "leftAlign", "children"]);
35
- return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-text-card", className: (0, classnames_1.default)('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, className) }, rest, { ref: ref }), function (_a) {
34
+ var className = props.className, leftAlign = props.leftAlign, noMargin = props.noMargin, children = props.children, rest = __rest(props, ["className", "leftAlign", "noMargin", "children"]);
35
+ return (react_1.default.createElement(components_1.WithCardAction, __assign({ baseClassName: "ffe-text-card", className: (0, classnames_1.default)('ffe-text-card', { 'ffe-text-card--left-align': leftAlign }, { 'ffe-text-card--no-margin': noMargin }, className) }, rest, { ref: ref }), function (_a) {
36
36
  var CardAction = _a.CardAction;
37
37
  return typeof children === 'function'
38
38
  ? children({ Text: components_1.Text, Subtext: components_1.Subtext, Title: components_1.Title, CardName: components_1.CardName, CardAction: CardAction })
@@ -0,0 +1 @@
1
+ {"root":["../src/CardBase.tsx","../src/fixedForwardRef.tsx","../src/index.ts","../src/mergeRefs.ts","../src/types.ts","../src/GroupCard/GroupCard.tsx","../src/GroupCard/GroupCardElement.tsx","../src/GroupCard/GroupCardFooter.tsx","../src/GroupCard/GroupCardTitle.tsx","../src/IconCard/IconCard.tsx","../src/IllustrationCard/IllustrationCard.tsx","../src/ImageCard/ImageCard.tsx","../src/StippledCard/StippledCard.tsx","../src/TextCard/TextCard.tsx","../src/components/CardAction.tsx","../src/components/CardName.tsx","../src/components/ComponentBase.tsx","../src/components/Subtext.tsx","../src/components/Text.tsx","../src/components/Title.tsx","../src/components/WithCardAction.tsx","../src/components/index.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-cards-react",
3
- "version": "17.4.8",
3
+ "version": "17.5.0",
4
4
  "description": "React implementation of ffe-react",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -26,7 +26,7 @@
26
26
  "test:watch": "ffe-buildtool jest --watch"
27
27
  },
28
28
  "dependencies": {
29
- "@sb1/ffe-cards": "^20.1.6"
29
+ "@sb1/ffe-cards": "^20.2.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@sb1/ffe-buildtool": "^0.9.0",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "a5936839dd60b9224755fc04b80d222aebcd6639"
43
+ "gitHead": "c6a16b645d478cedb93c4fac213aad083ef0042a"
44
44
  }
@@ -3,6 +3,7 @@ import { WithCardActionProps } from './components';
3
3
  import { BgColor, BgColorDarkmode, ComponentAsPropParams } from './types';
4
4
  export type CardBaseProps<As extends ElementType = 'div'> = Omit<ComponentAsPropParams<As>, 'children'> & {
5
5
  shadow?: boolean;
6
+ /** No margin on card */
6
7
  noMargin?: boolean;
7
8
  textCenter?: boolean;
8
9
  bgColor?: BgColor;
@@ -12,6 +13,7 @@ export type CardBaseProps<As extends ElementType = 'div'> = Omit<ComponentAsProp
12
13
  };
13
14
  export declare const CardBase: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
14
15
  shadow?: boolean;
16
+ /** No margin on card */
15
17
  noMargin?: boolean;
16
18
  textCenter?: boolean;
17
19
  bgColor?: BgColor;
@@ -8,5 +8,7 @@ export interface GroupCardProps extends Omit<React.ComponentPropsWithoutRef<'div
8
8
  bgColor?: BgColor;
9
9
  /** The background color for darkmode of the whole groupcard element */
10
10
  bgDarkmodeColor?: BgColorDarkmode;
11
+ /** No margin on card */
12
+ noMargin?: boolean;
11
13
  }
12
14
  export declare const GroupCard: (props: GroupCardProps & React.RefAttributes<any>) => React.JSX.Element;
@@ -7,6 +7,8 @@ export type IconCardProps<As extends ElementType = 'div'> = Omit<ComponentAsProp
7
7
  condensed?: boolean;
8
8
  /** Position icon at left (default) or right of the card content */
9
9
  iconPosition?: 'right' | 'left';
10
+ /** No margin on card */
11
+ noMargin?: boolean;
10
12
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
11
13
  };
12
14
  export declare const IconCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
@@ -16,5 +18,7 @@ export declare const IconCard: <As extends ElementType>(props: Omit<ComponentAsP
16
18
  condensed?: boolean;
17
19
  /** Position icon at left (default) or right of the card content */
18
20
  iconPosition?: "right" | "left";
21
+ /** No margin on card */
22
+ noMargin?: boolean;
19
23
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
20
24
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -7,6 +7,8 @@ export type IllustrationCardProps<As extends ElementType = 'div'> = Omit<Compone
7
7
  condensed?: boolean;
8
8
  /** Position illustration at left (default) or right of the card content */
9
9
  illustrationPosition?: 'right' | 'left';
10
+ /** No margin on card */
11
+ noMargin?: boolean;
10
12
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
11
13
  };
12
14
  export declare const IllustrationCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
@@ -16,5 +18,7 @@ export declare const IllustrationCard: <As extends ElementType>(props: Omit<Comp
16
18
  condensed?: boolean;
17
19
  /** Position illustration at left (default) or right of the card content */
18
20
  illustrationPosition?: "right" | "left";
21
+ /** No margin on card */
22
+ noMargin?: boolean;
19
23
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
20
24
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -5,6 +5,8 @@ export type ImageCardProps<As extends ElementType = 'div'> = Omit<ComponentAsPro
5
5
  imageSrc: string;
6
6
  /** The alt text for the image */
7
7
  imageAltText: string;
8
+ /** No margin on card */
9
+ noMargin?: boolean;
8
10
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
9
11
  };
10
12
  export declare const ImageCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
@@ -12,5 +14,7 @@ export declare const ImageCard: <As extends ElementType>(props: Omit<ComponentAs
12
14
  imageSrc: string;
13
15
  /** The alt text for the image */
14
16
  imageAltText: string;
17
+ /** No margin on card */
18
+ noMargin?: boolean;
15
19
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
16
20
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -8,6 +8,8 @@ export type StippledCardProps<As extends ElementType = 'div'> = Omit<ComponentAs
8
8
  element: ReactNode;
9
9
  type: 'icon' | 'custom';
10
10
  };
11
+ /** No margin on card */
12
+ noMargin?: boolean;
11
13
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
12
14
  };
13
15
  export declare const StippledCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
@@ -18,5 +20,7 @@ export declare const StippledCard: <As extends ElementType>(props: Omit<Componen
18
20
  element: ReactNode;
19
21
  type: "icon" | "custom";
20
22
  };
23
+ /** No margin on card */
24
+ noMargin?: boolean;
21
25
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
22
26
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -3,12 +3,16 @@ import { CardRenderProps, ComponentAsPropParams } from '../types';
3
3
  export type TextCardProps<As extends ElementType = 'div'> = Omit<ComponentAsPropParams<As>, 'children'> & {
4
4
  /** Left-aligned text on the card */
5
5
  leftAlign?: boolean;
6
+ /** No margin on card */
7
+ noMargin?: boolean;
6
8
  /** Function that's passed available subcomponents as arguments, or regular children */
7
9
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
8
10
  };
9
11
  export declare const TextCard: <As extends ElementType>(props: Omit<ComponentAsPropParams<As>, "children"> & {
10
12
  /** Left-aligned text on the card */
11
13
  leftAlign?: boolean;
14
+ /** No margin on card */
15
+ noMargin?: boolean;
12
16
  /** Function that's passed available subcomponents as arguments, or regular children */
13
17
  children: React.ReactNode | ((cardRenderProps: CardRenderProps) => React.ReactNode);
14
18
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import React, { ElementType } from 'react';
1
+ import React, { ElementType, ForwardedRef } from 'react';
2
2
  import { ComponentAsPropParams } from '../types';
3
3
  export type CardActionProps<As extends ElementType = 'a'> = ComponentAsPropParams<As>;
4
4
  export declare const CardAction: <As extends ElementType>(props: {
5
5
  as?: As | undefined;
6
6
  } & import("../types").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As>, "as" & {
7
- ref: React.ForwardedRef<any>;
7
+ ref: ForwardedRef<any>;
8
8
  }> & React.RefAttributes<any>) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ {"root":["../src/CardBase.tsx","../src/fixedForwardRef.tsx","../src/index.ts","../src/mergeRefs.ts","../src/types.ts","../src/GroupCard/GroupCard.tsx","../src/GroupCard/GroupCardElement.tsx","../src/GroupCard/GroupCardFooter.tsx","../src/GroupCard/GroupCardTitle.tsx","../src/IconCard/IconCard.tsx","../src/IllustrationCard/IllustrationCard.tsx","../src/ImageCard/ImageCard.tsx","../src/StippledCard/StippledCard.tsx","../src/TextCard/TextCard.tsx","../src/components/CardAction.tsx","../src/components/CardName.tsx","../src/components/ComponentBase.tsx","../src/components/Subtext.tsx","../src/components/Text.tsx","../src/components/Title.tsx","../src/components/WithCardAction.tsx","../src/components/index.ts"],"version":"5.6.2"}