@digital-b2c/coreui-kit 0.4.0 → 0.4.1
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 +6 -6
- 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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -12
package/dist/index.cjs
CHANGED
|
@@ -511,8 +511,7 @@ var BrandsStrip = ({
|
|
|
511
511
|
const [show, setShow] = React52.useState(false);
|
|
512
512
|
const { is } = useViewPort_default();
|
|
513
513
|
const isTabletBelow = is("tablet", "below");
|
|
514
|
-
|
|
515
|
-
const shouldAnimate = title === void 0 && animate;
|
|
514
|
+
const shouldAnimate = title && animate;
|
|
516
515
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
517
516
|
"div",
|
|
518
517
|
{
|
|
@@ -575,9 +574,10 @@ function resolveCompoundSlots(children, slots) {
|
|
|
575
574
|
|
|
576
575
|
// src/components/Card/Card.module.scss
|
|
577
576
|
var Card_module_default = {
|
|
578
|
-
card: "Card_module_card"
|
|
577
|
+
card: "Card_module_card",
|
|
578
|
+
logo: "Card_module_logo"
|
|
579
579
|
};
|
|
580
|
-
var Card = ({ className, title, subtitle, cta, icon, children }) => {
|
|
580
|
+
var Card = ({ className, title, subtitle, cta, icon, logo, children }) => {
|
|
581
581
|
var _a, _b;
|
|
582
582
|
const slots = resolveCompoundSlots(children, {
|
|
583
583
|
title: CardTitle,
|
|
@@ -586,10 +586,10 @@ var Card = ({ className, title, subtitle, cta, icon, children }) => {
|
|
|
586
586
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
587
587
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
588
588
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(Card_module_default.card, className), children: [
|
|
589
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }),
|
|
589
|
+
logo ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: Card_module_default.logo }, logo)) : icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon, className: Card_module_default.logo }),
|
|
590
590
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Card_module_default.content, children: [
|
|
591
591
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "h4", children: titleNode }),
|
|
592
|
-
subtitleNode &&
|
|
592
|
+
subtitleNode && subtitleNode
|
|
593
593
|
] }),
|
|
594
594
|
cta && /* @__PURE__ */ jsxRuntime.jsx(
|
|
595
595
|
Button,
|