@digital-b2c/coreui-kit 0.26.0 → 0.26.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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -230,9 +230,11 @@ type InfoCardTitleProps = {
|
|
|
230
230
|
children: ReactNode;
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
+
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
234
|
+
|
|
233
235
|
interface InfoCardProps {
|
|
234
236
|
className?: string;
|
|
235
|
-
icon?: IconType;
|
|
237
|
+
icon?: IconType | PictureProps;
|
|
236
238
|
badge?: string;
|
|
237
239
|
title?: ReactNode;
|
|
238
240
|
subtitle?: ReactNode;
|
|
@@ -282,8 +284,6 @@ interface PaginationProps {
|
|
|
282
284
|
|
|
283
285
|
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react.JSX.Element;
|
|
284
286
|
|
|
285
|
-
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
286
|
-
|
|
287
287
|
interface PracticeCardProps {
|
|
288
288
|
className?: string;
|
|
289
289
|
title?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -230,9 +230,11 @@ type InfoCardTitleProps = {
|
|
|
230
230
|
children: ReactNode;
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
+
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
234
|
+
|
|
233
235
|
interface InfoCardProps {
|
|
234
236
|
className?: string;
|
|
235
|
-
icon?: IconType;
|
|
237
|
+
icon?: IconType | PictureProps;
|
|
236
238
|
badge?: string;
|
|
237
239
|
title?: ReactNode;
|
|
238
240
|
subtitle?: ReactNode;
|
|
@@ -282,8 +284,6 @@ interface PaginationProps {
|
|
|
282
284
|
|
|
283
285
|
declare const Pagination: ({ className, totalPages, currentPage, loop, hasNumber, disableArrows, onPageChange, showEllipsis, boundaryCount, siblingCount, hidePagesBorder, renderLink, }: PaginationProps) => react.JSX.Element;
|
|
284
286
|
|
|
285
|
-
declare const Picture: ({ className, ...props }: PictureProps) => react.JSX.Element;
|
|
286
|
-
|
|
287
287
|
interface PracticeCardProps {
|
|
288
288
|
className?: string;
|
|
289
289
|
title?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1148,7 +1148,7 @@ var InfoCard_module_default = {
|
|
|
1148
1148
|
"info-card": "InfoCard_module_info-card",
|
|
1149
1149
|
header: "InfoCard_module_header",
|
|
1150
1150
|
badge: "InfoCard_module_badge",
|
|
1151
|
-
|
|
1151
|
+
icon: "InfoCard_module_icon"
|
|
1152
1152
|
};
|
|
1153
1153
|
var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
1154
1154
|
var _a, _b;
|
|
@@ -1160,7 +1160,7 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
|
|
|
1160
1160
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
1161
1161
|
return /* @__PURE__ */ jsxs("div", { className: clsx65(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
|
|
1162
1162
|
/* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
|
|
1163
|
-
icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx65(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
1163
|
+
icon && typeof icon === "object" ? /* @__PURE__ */ jsx(Picture, __spreadValues({ className: InfoCard_module_default.icon }, icon)) : icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx65(InfoCard_module_default.badge, "h4"), children: badge }) : null,
|
|
1164
1164
|
titleNode && /* @__PURE__ */ jsx("div", { className: "h4", children: titleNode })
|
|
1165
1165
|
] }),
|
|
1166
1166
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "body", children: subtitleNode })
|