@digital-b2c/coreui-kit 0.10.0 → 0.10.2

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.d.cts CHANGED
@@ -174,6 +174,40 @@ declare const CountingCard: (({ className, title, count, image, children }: Coun
174
174
  Title: ({ children }: CountingCardTitleProps) => react_jsx_runtime.JSX.Element;
175
175
  };
176
176
 
177
+ type ResourceView = 'grid' | 'list';
178
+ type ResourceItemType = 'pdf' | 'link';
179
+ interface ResourceItem {
180
+ title: string;
181
+ date: string;
182
+ image?: string;
183
+ type: ResourceItemType;
184
+ href: string;
185
+ hasNotification?: boolean;
186
+ category?: string;
187
+ }
188
+ interface ResourceCardItemProps {
189
+ item: ResourceItem;
190
+ view: ResourceView;
191
+ }
192
+
193
+ declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
194
+
195
+ type FilterOption = 'all' | 'pdf' | 'link';
196
+ type SortOption = 'latest' | 'oldest' | 'az' | 'za';
197
+ interface FilterBarProps {
198
+ view: ResourceView;
199
+ onViewChange: (v: ResourceView) => void;
200
+ isMobile: boolean;
201
+ filterValue: FilterOption;
202
+ onFilterChange: (v: FilterOption) => void;
203
+ sortValue: SortOption;
204
+ onSortChange: (v: SortOption) => void;
205
+ searchValue: string;
206
+ onSearchChange: (v: string) => void;
207
+ }
208
+
209
+ declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react_jsx_runtime.JSX.Element;
210
+
177
211
  type InfoCardSubtitleProps = {
178
212
  children: ReactNode;
179
213
  };
@@ -219,6 +253,26 @@ interface PracticeCardProps {
219
253
 
220
254
  declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react_jsx_runtime.JSX.Element;
221
255
 
256
+ interface SidebarCategory {
257
+ label: string;
258
+ /**
259
+ * Value matched against `ResourceItem.category` to filter items.
260
+ * Omit it (e.g. an "All Resources" entry) to show every item.
261
+ */
262
+ value?: string;
263
+ active?: boolean;
264
+ hasNotification?: boolean;
265
+ }
266
+ interface SidebarProps {
267
+ categories: SidebarCategory[];
268
+ isMobile: boolean;
269
+ onToggle?: () => void;
270
+ selectedIndex: number;
271
+ onSelect: (index: number) => void;
272
+ }
273
+
274
+ declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
275
+
222
276
  interface LogoBarProps {
223
277
  className?: string;
224
278
  items: ICtaHoverLogo[];
@@ -599,29 +653,6 @@ declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, child
599
653
  Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react_jsx_runtime.JSX.Element;
600
654
  };
601
655
 
602
- type ResourceView = 'grid' | 'list';
603
- type ResourceItemType = 'pdf' | 'link';
604
- type FilterOption = 'all' | 'pdf' | 'link';
605
- type SortOption = 'latest' | 'oldest' | 'az' | 'za';
606
- interface ResourceItem {
607
- title: string;
608
- date: string;
609
- image?: string;
610
- type: ResourceItemType;
611
- href: string;
612
- hasNotification?: boolean;
613
- category?: string;
614
- }
615
- interface SidebarCategory {
616
- label: string;
617
- /**
618
- * Value matched against `ResourceItem.category` to filter items.
619
- * Omit it (e.g. an "All Resources" entry) to show every item.
620
- */
621
- value?: string;
622
- active?: boolean;
623
- hasNotification?: boolean;
624
- }
625
656
  interface ResourcesGridListProps {
626
657
  className?: string;
627
658
  items?: ResourceItem[];
@@ -657,4 +688,4 @@ type SlotMap = Record<string, SlotComponent>;
657
688
  */
658
689
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
659
690
 
660
- 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 ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, InternalBrandsTab, type InternalBrandsTabProps, LogoBar, type LogoBarProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, type ResourceItem, type ResourceView, ResourcesGridList, type ResourcesGridListProps, type SidebarCategory, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
691
+ 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, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, InternalBrandsTab, type InternalBrandsTabProps, LogoBar, type LogoBarProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
package/dist/index.d.ts CHANGED
@@ -174,6 +174,40 @@ declare const CountingCard: (({ className, title, count, image, children }: Coun
174
174
  Title: ({ children }: CountingCardTitleProps) => react_jsx_runtime.JSX.Element;
175
175
  };
176
176
 
177
+ type ResourceView = 'grid' | 'list';
178
+ type ResourceItemType = 'pdf' | 'link';
179
+ interface ResourceItem {
180
+ title: string;
181
+ date: string;
182
+ image?: string;
183
+ type: ResourceItemType;
184
+ href: string;
185
+ hasNotification?: boolean;
186
+ category?: string;
187
+ }
188
+ interface ResourceCardItemProps {
189
+ item: ResourceItem;
190
+ view: ResourceView;
191
+ }
192
+
193
+ declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
194
+
195
+ type FilterOption = 'all' | 'pdf' | 'link';
196
+ type SortOption = 'latest' | 'oldest' | 'az' | 'za';
197
+ interface FilterBarProps {
198
+ view: ResourceView;
199
+ onViewChange: (v: ResourceView) => void;
200
+ isMobile: boolean;
201
+ filterValue: FilterOption;
202
+ onFilterChange: (v: FilterOption) => void;
203
+ sortValue: SortOption;
204
+ onSortChange: (v: SortOption) => void;
205
+ searchValue: string;
206
+ onSearchChange: (v: string) => void;
207
+ }
208
+
209
+ declare function FilterBar({ view, onViewChange, isMobile, filterValue, onFilterChange, sortValue, onSortChange, searchValue, onSearchChange, }: FilterBarProps): react_jsx_runtime.JSX.Element;
210
+
177
211
  type InfoCardSubtitleProps = {
178
212
  children: ReactNode;
179
213
  };
@@ -219,6 +253,26 @@ interface PracticeCardProps {
219
253
 
220
254
  declare const PracticeCard: ({ className, title, cta, image }: PracticeCardProps) => react_jsx_runtime.JSX.Element;
221
255
 
256
+ interface SidebarCategory {
257
+ label: string;
258
+ /**
259
+ * Value matched against `ResourceItem.category` to filter items.
260
+ * Omit it (e.g. an "All Resources" entry) to show every item.
261
+ */
262
+ value?: string;
263
+ active?: boolean;
264
+ hasNotification?: boolean;
265
+ }
266
+ interface SidebarProps {
267
+ categories: SidebarCategory[];
268
+ isMobile: boolean;
269
+ onToggle?: () => void;
270
+ selectedIndex: number;
271
+ onSelect: (index: number) => void;
272
+ }
273
+
274
+ declare const Sidebar: ({ categories, isMobile, onToggle, selectedIndex, onSelect, }: SidebarProps) => react_jsx_runtime.JSX.Element;
275
+
222
276
  interface LogoBarProps {
223
277
  className?: string;
224
278
  items: ICtaHoverLogo[];
@@ -599,29 +653,6 @@ declare const TextCenterCtaInBottom: (({ className, title, subtitle, ctas, child
599
653
  Subtitle: ({ children }: TextCenterCtaInBottomSubtitleProps) => react_jsx_runtime.JSX.Element;
600
654
  };
601
655
 
602
- type ResourceView = 'grid' | 'list';
603
- type ResourceItemType = 'pdf' | 'link';
604
- type FilterOption = 'all' | 'pdf' | 'link';
605
- type SortOption = 'latest' | 'oldest' | 'az' | 'za';
606
- interface ResourceItem {
607
- title: string;
608
- date: string;
609
- image?: string;
610
- type: ResourceItemType;
611
- href: string;
612
- hasNotification?: boolean;
613
- category?: string;
614
- }
615
- interface SidebarCategory {
616
- label: string;
617
- /**
618
- * Value matched against `ResourceItem.category` to filter items.
619
- * Omit it (e.g. an "All Resources" entry) to show every item.
620
- */
621
- value?: string;
622
- active?: boolean;
623
- hasNotification?: boolean;
624
- }
625
656
  interface ResourcesGridListProps {
626
657
  className?: string;
627
658
  items?: ResourceItem[];
@@ -657,4 +688,4 @@ type SlotMap = Record<string, SlotComponent>;
657
688
  */
658
689
  declare function resolveCompoundSlots(children: ReactNode, slots: SlotMap): Record<string, ReactNode>;
659
690
 
660
- 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 ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, InternalBrandsTab, type InternalBrandsTabProps, LogoBar, type LogoBarProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, type ResourceItem, type ResourceView, ResourcesGridList, type ResourcesGridListProps, type SidebarCategory, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };
691
+ 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, FilterBar, type FilterBarProps, type FilterOption, Footer, type FooterProps, HeroBanner, HeroBannerCarousel, type HeroBannerCarouselProps, type HeroBannerProps, type ICta, type ICtaHoverLogo, type ICtaIcon, type ICtaLogo, type IPicture, Icon, type IconType, InfoCard, type InfoCardProps, InternalBrandsTab, type InternalBrandsTabProps, LogoBar, type LogoBarProps, MiniBanner, type MiniBannerProps, MiniSectionCta, type MiniSectionCtaProps, Pagination, type PaginationProps, Picture, type PictureProps, PracticeCard, type PracticeCardProps, PracticePathCards, type PracticePathCardsProps, ResourceCardItem, type ResourceCardItemProps, type ResourceItem, type ResourceItemType, type ResourceView, ResourcesGridList, type ResourcesGridListProps, Sidebar, type SidebarCategory, type SidebarProps, type SortOption, Teaser5050With3Text, type Teaser5050With3TextProps, Teaser5050WithCta, type Teaser5050WithCtaProps, TextBody, type TextBodyProps, TextCenterCtaInBottom, type TextCenterCtaInBottomProps, TextEvent, type TextEventProps, resolveCompoundSlots, svgs, useIntersectionObserver };