@mond-design-system/react 6.2.3 → 6.3.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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1933,7 +1933,7 @@ function Container(props) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
1935
|
// mds-cssmod:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Card/Card.module.css?mds-scoped
|
|
1936
|
-
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" };
|
|
1936
|
+
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", "flowed": "mds-Card__flowed" };
|
|
1937
1937
|
function Card({ children, variant = "card", emphasis = false, onClick, href, as, className, ref, ...rest }) {
|
|
1938
1938
|
const cardClass = cx(Card_module_default.card, Card_module_default[`variant-${variant}`], emphasis && Card_module_default.emphasis, className);
|
|
1939
1939
|
const own = react.useRef(null);
|
|
@@ -1973,12 +1973,13 @@ function Card({ children, variant = "card", emphasis = false, onClick, href, as,
|
|
|
1973
1973
|
function CardHeader({ className, ...rest }) {
|
|
1974
1974
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx(Card_module_default.header, className), ...rest });
|
|
1975
1975
|
}
|
|
1976
|
-
function CardBody({ lines, className, style, ...rest }) {
|
|
1977
|
-
const
|
|
1976
|
+
function CardBody({ lines, clip = "ellipsis", className, style, ...rest }) {
|
|
1977
|
+
const budgeted = lines !== void 0;
|
|
1978
|
+
const vars = budgeted ? { "--card-lines": lines } : void 0;
|
|
1978
1979
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1979
1980
|
"div",
|
|
1980
1981
|
{
|
|
1981
|
-
className: cx(Card_module_default.body,
|
|
1982
|
+
className: cx(Card_module_default.body, budgeted && (clip === "flow" ? Card_module_default.flowed : Card_module_default.clipped), className),
|
|
1982
1983
|
style: { ...vars, ...style },
|
|
1983
1984
|
...rest
|
|
1984
1985
|
}
|