@mond-design-system/react 6.2.2 → 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 +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -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 +9 -8
- 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
|
}
|
|
@@ -2538,7 +2539,7 @@ function SideNavItem({
|
|
|
2538
2539
|
}
|
|
2539
2540
|
|
|
2540
2541
|
// mds-cssmod:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/MediaPlaceholder/MediaPlaceholder.module.css?mds-scoped
|
|
2541
|
-
var MediaPlaceholder_module_default = { "media": "mds-MediaPlaceholder__media", "fill": "mds-MediaPlaceholder__fill", "image": "mds-MediaPlaceholder__image", "caption": "mds-MediaPlaceholder__caption", "cover": "mds-MediaPlaceholder__cover", "blurred": "mds-MediaPlaceholder__blurred" };
|
|
2542
|
+
var MediaPlaceholder_module_default = { "media": "mds-MediaPlaceholder__media", "frame": "mds-MediaPlaceholder__frame", "fill": "mds-MediaPlaceholder__fill", "image": "mds-MediaPlaceholder__image", "caption": "mds-MediaPlaceholder__caption", "cover": "mds-MediaPlaceholder__cover", "blurred": "mds-MediaPlaceholder__blurred" };
|
|
2542
2543
|
function MediaPlaceholder({
|
|
2543
2544
|
aspect,
|
|
2544
2545
|
src,
|
|
@@ -2554,13 +2555,13 @@ function MediaPlaceholder({
|
|
|
2554
2555
|
const [failed, setFailed] = react.useState();
|
|
2555
2556
|
const picture = src !== void 0 && failed !== src;
|
|
2556
2557
|
const vars = aspect === void 0 ? {} : { "--media-aspect": aspect };
|
|
2557
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
2558
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2558
2559
|
"div",
|
|
2559
2560
|
{
|
|
2560
2561
|
className: cx(MediaPlaceholder_module_default.media, blurred && MediaPlaceholder_module_default.blurred, className),
|
|
2561
2562
|
style: { ...vars, ...style },
|
|
2562
2563
|
...rest,
|
|
2563
|
-
children: [
|
|
2564
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MediaPlaceholder_module_default.frame, children: [
|
|
2564
2565
|
picture ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2565
2566
|
"img",
|
|
2566
2567
|
{
|
|
@@ -2577,7 +2578,7 @@ function MediaPlaceholder({
|
|
|
2577
2578
|
] }),
|
|
2578
2579
|
picture && caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(Text, { variant: "meta", tone: "on-media", className: MediaPlaceholder_module_default.caption, children: caption }),
|
|
2579
2580
|
cover !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: MediaPlaceholder_module_default.cover, children: cover })
|
|
2580
|
-
]
|
|
2581
|
+
] })
|
|
2581
2582
|
}
|
|
2582
2583
|
);
|
|
2583
2584
|
}
|