@digital-b2c/coreui-kit 0.6.0 → 0.7.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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +209 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +301 -17
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.mjs +209 -93
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -99
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ImgHTMLAttributes, ReactNode, Ref, AnchorHTMLAttributes, HTMLAttributes, FC, PropsWithChildren } from 'react';
|
|
3
|
+
import React__default, { ImgHTMLAttributes, ReactNode, Ref, AnchorHTMLAttributes, HTMLAttributes, FC, PropsWithChildren, CSSProperties } from 'react';
|
|
4
4
|
|
|
5
5
|
interface IPicture {
|
|
6
6
|
src: string;
|
|
@@ -322,6 +322,21 @@ declare const HeroBanner: (({ className, variant, title, subtitle, backgroundIma
|
|
|
322
322
|
Subtitle: ({ children }: HeroBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
+
interface HeroBannerCarouselItem {
|
|
326
|
+
title: string;
|
|
327
|
+
body: ReactNode;
|
|
328
|
+
image: PictureProps;
|
|
329
|
+
ctas: ICtaLogo[];
|
|
330
|
+
}
|
|
331
|
+
interface HeroBannerCarouselProps {
|
|
332
|
+
className?: string;
|
|
333
|
+
items?: HeroBannerCarouselItem[];
|
|
334
|
+
navPrevIcon?: string;
|
|
335
|
+
navNextIcon?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react_jsx_runtime.JSX.Element | null;
|
|
339
|
+
|
|
325
340
|
type MiniBannerSubtitleProps = {
|
|
326
341
|
children: ReactNode;
|
|
327
342
|
};
|
|
@@ -457,18 +472,18 @@ interface UpcomingEventCardProps {
|
|
|
457
472
|
showImage?: boolean;
|
|
458
473
|
}
|
|
459
474
|
|
|
460
|
-
type EventListVariants = 'grey';
|
|
461
475
|
interface EventListProps extends PropsWithChildren {
|
|
462
476
|
className?: string;
|
|
463
|
-
variant?: EventListVariants;
|
|
464
477
|
title?: ReactNode;
|
|
465
478
|
items: UpcomingEventCardProps[];
|
|
466
479
|
cta?: ICta & {
|
|
467
480
|
icon?: IconType;
|
|
468
481
|
};
|
|
482
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
483
|
+
variant?: 'internalEventList';
|
|
469
484
|
}
|
|
470
485
|
|
|
471
|
-
declare const EventList: (({ className, title, items, cta, variant, children }: EventListProps) => react_jsx_runtime.JSX.Element) & {
|
|
486
|
+
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react_jsx_runtime.JSX.Element) & {
|
|
472
487
|
Title: ({ children }: EventListTitleProps) => react_jsx_runtime.JSX.Element;
|
|
473
488
|
};
|
|
474
489
|
|
|
@@ -558,4 +573,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
558
573
|
*/
|
|
559
574
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
560
575
|
|
|
561
|
-
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, Footer, type FooterProps, HeroBanner, type HeroBannerProps, type ICta, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
576
|
+
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ImgHTMLAttributes, ReactNode, Ref, AnchorHTMLAttributes, HTMLAttributes, FC, PropsWithChildren } from 'react';
|
|
3
|
+
import React__default, { ImgHTMLAttributes, ReactNode, Ref, AnchorHTMLAttributes, HTMLAttributes, FC, PropsWithChildren, CSSProperties } from 'react';
|
|
4
4
|
|
|
5
5
|
interface IPicture {
|
|
6
6
|
src: string;
|
|
@@ -322,6 +322,21 @@ declare const HeroBanner: (({ className, variant, title, subtitle, backgroundIma
|
|
|
322
322
|
Subtitle: ({ children }: HeroBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
+
interface HeroBannerCarouselItem {
|
|
326
|
+
title: string;
|
|
327
|
+
body: ReactNode;
|
|
328
|
+
image: PictureProps;
|
|
329
|
+
ctas: ICtaLogo[];
|
|
330
|
+
}
|
|
331
|
+
interface HeroBannerCarouselProps {
|
|
332
|
+
className?: string;
|
|
333
|
+
items?: HeroBannerCarouselItem[];
|
|
334
|
+
navPrevIcon?: string;
|
|
335
|
+
navNextIcon?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const HeroBannerCarousel: ({ className, items, navPrevIcon, navNextIcon, }: HeroBannerCarouselProps) => react_jsx_runtime.JSX.Element | null;
|
|
339
|
+
|
|
325
340
|
type MiniBannerSubtitleProps = {
|
|
326
341
|
children: ReactNode;
|
|
327
342
|
};
|
|
@@ -457,18 +472,18 @@ interface UpcomingEventCardProps {
|
|
|
457
472
|
showImage?: boolean;
|
|
458
473
|
}
|
|
459
474
|
|
|
460
|
-
type EventListVariants = 'grey';
|
|
461
475
|
interface EventListProps extends PropsWithChildren {
|
|
462
476
|
className?: string;
|
|
463
|
-
variant?: EventListVariants;
|
|
464
477
|
title?: ReactNode;
|
|
465
478
|
items: UpcomingEventCardProps[];
|
|
466
479
|
cta?: ICta & {
|
|
467
480
|
icon?: IconType;
|
|
468
481
|
};
|
|
482
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
483
|
+
variant?: 'internalEventList';
|
|
469
484
|
}
|
|
470
485
|
|
|
471
|
-
declare const EventList: (({ className, title, items, cta, variant, children }: EventListProps) => react_jsx_runtime.JSX.Element) & {
|
|
486
|
+
declare const EventList: (({ className, title, items, cta, backgroundColor, variant, children, }: EventListProps) => react_jsx_runtime.JSX.Element) & {
|
|
472
487
|
Title: ({ children }: EventListTitleProps) => react_jsx_runtime.JSX.Element;
|
|
473
488
|
};
|
|
474
489
|
|
|
@@ -558,4 +573,4 @@ type SlotMap = Record<string, SlotComponent>;
|
|
|
558
573
|
*/
|
|
559
574
|
declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
|
|
560
575
|
|
|
561
|
-
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, Footer, type FooterProps, HeroBanner, type HeroBannerProps, type ICta, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
576
|
+
export { Anchor, type AnchorProps, BrandsStrip, type BrandsStripProps, Button, type ButtonProps, Card, CardCollection, type CardCollectionProps, type CardProps, ConditionalWrapper, type ConditionalWrapperProps, ContactModule, type ContactModuleProps, Container, type ContainerProps, CountingCard, type CountingCardProps, EventList, type EventListProps, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
|