@digital-b2c/coreui-kit 0.21.2 → 0.21.4
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 +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -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 +13 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1184,10 +1184,11 @@ interface QuoteSectionBlockItem {
|
|
|
1184
1184
|
interface QuoteSectionBlockProps {
|
|
1185
1185
|
className?: string;
|
|
1186
1186
|
title?: string;
|
|
1187
|
+
viewtype?: string;
|
|
1187
1188
|
items?: QuoteSectionBlockItem[];
|
|
1188
1189
|
}
|
|
1189
1190
|
|
|
1190
|
-
declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) => react.JSX.Element | null;
|
|
1191
|
+
declare const QuoteSectionBlock: ({ className, title, viewtype, items, }: QuoteSectionBlockProps) => react.JSX.Element | null;
|
|
1191
1192
|
|
|
1192
1193
|
type PageLoaderLogoProps = {
|
|
1193
1194
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1184,10 +1184,11 @@ interface QuoteSectionBlockItem {
|
|
|
1184
1184
|
interface QuoteSectionBlockProps {
|
|
1185
1185
|
className?: string;
|
|
1186
1186
|
title?: string;
|
|
1187
|
+
viewtype?: string;
|
|
1187
1188
|
items?: QuoteSectionBlockItem[];
|
|
1188
1189
|
}
|
|
1189
1190
|
|
|
1190
|
-
declare const QuoteSectionBlock: ({ className, title, items }: QuoteSectionBlockProps) => react.JSX.Element | null;
|
|
1191
|
+
declare const QuoteSectionBlock: ({ className, title, viewtype, items, }: QuoteSectionBlockProps) => react.JSX.Element | null;
|
|
1191
1192
|
|
|
1192
1193
|
type PageLoaderLogoProps = {
|
|
1193
1194
|
children: ReactNode;
|
package/dist/index.mjs
CHANGED
|
@@ -5690,6 +5690,7 @@ var QuoteSectionBlock_module_default = {
|
|
|
5690
5690
|
inner: "QuoteSectionBlock_module_inner",
|
|
5691
5691
|
title: "QuoteSectionBlock_module_title",
|
|
5692
5692
|
swiperContainer: "QuoteSectionBlock_module_swiperContainer",
|
|
5693
|
+
swiperContainerFullWidth: "QuoteSectionBlock_module_swiperContainerFullWidth",
|
|
5693
5694
|
card: "QuoteSectionBlock_module_card",
|
|
5694
5695
|
quoteLogo: "QuoteSectionBlock_module_quoteLogo",
|
|
5695
5696
|
bodyText: "QuoteSectionBlock_module_bodyText",
|
|
@@ -5700,7 +5701,12 @@ var QuoteSectionBlock_module_default = {
|
|
|
5700
5701
|
jobTitleLogo: "QuoteSectionBlock_module_jobTitleLogo",
|
|
5701
5702
|
controls: "QuoteSectionBlock_module_controls"
|
|
5702
5703
|
};
|
|
5703
|
-
var QuoteSectionBlock = ({
|
|
5704
|
+
var QuoteSectionBlock = ({
|
|
5705
|
+
className,
|
|
5706
|
+
title,
|
|
5707
|
+
viewtype,
|
|
5708
|
+
items = []
|
|
5709
|
+
}) => {
|
|
5704
5710
|
const { is } = useViewPort_default();
|
|
5705
5711
|
const isMobile = is("tablet", "below");
|
|
5706
5712
|
const [swiperInstance, setSwiperInstance] = useState(null);
|
|
@@ -5708,7 +5714,7 @@ var QuoteSectionBlock = ({ className, title, items = [] }) => {
|
|
|
5708
5714
|
if (!items.length) return null;
|
|
5709
5715
|
return /* @__PURE__ */ jsx("div", { className: clsx52(QuoteSectionBlock_module_default.quoteSectionBlock, className), children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: QuoteSectionBlock_module_default.inner, children: [
|
|
5710
5716
|
title && /* @__PURE__ */ jsx("h2", { className: QuoteSectionBlock_module_default.title, children: title }),
|
|
5711
|
-
/* @__PURE__ */ jsx("div", { className: QuoteSectionBlock_module_default.swiperContainer, children: /* @__PURE__ */ jsx(
|
|
5717
|
+
/* @__PURE__ */ jsx("div", { className: !viewtype ? QuoteSectionBlock_module_default.swiperContainer : QuoteSectionBlock_module_default.swiperContainerFullWidth, children: /* @__PURE__ */ jsx(
|
|
5712
5718
|
Swiper,
|
|
5713
5719
|
{
|
|
5714
5720
|
slidesPerView: "auto",
|
|
@@ -5913,7 +5919,7 @@ var BrandsTab = (props) => {
|
|
|
5913
5919
|
const isTabletBelow = is("tablet", "below");
|
|
5914
5920
|
const accordionItems = useMemo(() => {
|
|
5915
5921
|
return (tabs == null ? void 0 : tabs.map((tab, index) => {
|
|
5916
|
-
var _a2, _b2, _c2, _d2, _e2
|
|
5922
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
5917
5923
|
return {
|
|
5918
5924
|
id: index,
|
|
5919
5925
|
title: typeof tab.trigger.active === "string" ? tab.trigger.active : /* @__PURE__ */ jsx(Picture, __spreadValues({}, tab.trigger.active)),
|
|
@@ -5950,10 +5956,10 @@ var BrandsTab = (props) => {
|
|
|
5950
5956
|
__spreadProps(__spreadValues({
|
|
5951
5957
|
variant: "secondary",
|
|
5952
5958
|
className: BrandsTab_module_default["card-cta"]
|
|
5953
|
-
},
|
|
5954
|
-
href: (
|
|
5955
|
-
title: (
|
|
5956
|
-
children: /* @__PURE__ */ jsx("span", { "aria-label": (
|
|
5959
|
+
}, tab.cta), {
|
|
5960
|
+
href: (_b2 = tab.cta) == null ? void 0 : _b2.url,
|
|
5961
|
+
title: (_c2 = tab.cta) == null ? void 0 : _c2.label,
|
|
5962
|
+
children: /* @__PURE__ */ jsx("span", { "aria-label": (_d2 = tab.cta) == null ? void 0 : _d2.label, children: (_e2 = tab.cta) == null ? void 0 : _e2.label })
|
|
5957
5963
|
})
|
|
5958
5964
|
)
|
|
5959
5965
|
]
|