@mond-design-system/react 4.11.0 → 4.12.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.
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +14 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1842,7 +1842,7 @@ function Container(props) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
1844
|
// mds-cssmod:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Card/Card.module.css?mds-scoped
|
|
1845
|
-
var Card_module_default = { "card": "mds-Card__card", "variant-raised": "mds-Card__variant-raised", "variant-sunken": "mds-Card__variant-sunken", "emphasis": "mds-Card__emphasis", "interactive": "mds-Card__interactive", "header": "mds-Card__header", "body": "mds-Card__body", "footer": "mds-Card__footer" };
|
|
1845
|
+
var Card_module_default = { "card": "mds-Card__card", "variant-raised": "mds-Card__variant-raised", "variant-sunken": "mds-Card__variant-sunken", "emphasis": "mds-Card__emphasis", "interactive": "mds-Card__interactive", "header": "mds-Card__header", "body": "mds-Card__body", "footer": "mds-Card__footer", "clipped": "mds-Card__clipped" };
|
|
1846
1846
|
function Card({ children, variant = "card", emphasis = false, onClick, href, as, className, ref, ...rest }) {
|
|
1847
1847
|
const cardClass = cx(Card_module_default.card, Card_module_default[`variant-${variant}`], emphasis && Card_module_default.emphasis, className);
|
|
1848
1848
|
if (href !== void 0) {
|
|
@@ -1868,8 +1868,16 @@ function Card({ children, variant = "card", emphasis = false, onClick, href, as,
|
|
|
1868
1868
|
function CardHeader({ className, ...rest }) {
|
|
1869
1869
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx(Card_module_default.header, className), ...rest });
|
|
1870
1870
|
}
|
|
1871
|
-
function CardBody({ className, ...rest }) {
|
|
1872
|
-
|
|
1871
|
+
function CardBody({ lines, className, style, ...rest }) {
|
|
1872
|
+
const vars = lines === void 0 ? void 0 : { "--card-lines": lines };
|
|
1873
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1874
|
+
"div",
|
|
1875
|
+
{
|
|
1876
|
+
className: cx(Card_module_default.body, lines !== void 0 && Card_module_default.clipped, className),
|
|
1877
|
+
style: { ...vars, ...style },
|
|
1878
|
+
...rest
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1873
1881
|
}
|
|
1874
1882
|
function CardFooter({ className, ...rest }) {
|
|
1875
1883
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx(Card_module_default.footer, className), ...rest });
|