@once-ui-system/core 1.3.11 → 1.3.12
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.
|
@@ -5,6 +5,8 @@ interface CardProps extends React.ComponentProps<typeof Flex> {
|
|
|
5
5
|
href?: string;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
fillHeight?: boolean;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
12
|
export { Card };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAKzB,UAAU,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAKzB,UAAU,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,IAAI,+FAsCT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/components/Card.js
CHANGED
|
@@ -6,9 +6,9 @@ import styles from "./Card.module.scss";
|
|
|
6
6
|
import { ElementType } from "./ElementType";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
const Card = forwardRef(({ children, href, onClick, style, className, fillHeight, ...rest }, ref) => {
|
|
9
|
-
return (_jsx(ElementType, { tabIndex: onClick || href ? 0 : undefined, className: classNames("reset-button-styles", "display-flex", "fill-width", fillHeight ? "fill-height" : undefined, "min-width-0", (onClick || href) && "focus-ring", (onClick || href) && "radius-l"), href: href, onClick: onClick && onClick, role: onClick ? "button" : href ? "link" : "none", ref: ref, children: _jsx(Flex, { background: "surface", onBackground: "neutral-strong", transition: "macro-medium", border: "neutral-medium", cursor: "interactive", align: "left", className: styles.card, onClick: onClick && onClick,
|
|
9
|
+
return (_jsx(ElementType, { tabIndex: onClick || href ? 0 : undefined, className: classNames("reset-button-styles", "display-flex", "fill-width", fillHeight ? "fill-height" : undefined, "min-width-0", (onClick || href) && "focus-ring", (onClick || href) && "radius-l"), href: href, onClick: onClick && onClick, role: onClick ? "button" : href ? "link" : "none", ref: ref, children: _jsx(Flex, { background: "surface", onBackground: "neutral-strong", transition: "macro-medium", border: "neutral-medium", cursor: "interactive", align: "left", className: classNames(styles.card, className), onClick: onClick && onClick, style: {
|
|
10
10
|
...style,
|
|
11
|
-
}, children: children }) }));
|
|
11
|
+
}, ...rest, children: children }) }));
|
|
12
12
|
});
|
|
13
13
|
Card.displayName = "Card";
|
|
14
14
|
export { Card };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,UAAU,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