oddsgate-ds 1.0.211 → 1.0.213

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.
@@ -0,0 +1 @@
1
+ export { default } from './CategoriesWrapper.component';
@@ -0,0 +1 @@
1
+ export { default } from './CategoryIndex.component';
@@ -0,0 +1 @@
1
+ export { default } from './SearchBar.component';
@@ -25,6 +25,9 @@ export { default as LegalLinks } from './components/atoms/LegalLinks';
25
25
  export { default as Marquee } from './components/atoms/Marquee';
26
26
  export { default as CardMarquee } from './components/atoms/CardMarquee';
27
27
  export { default as AwardBadge } from './components/atoms/AwardBadge';
28
+ export { default as SearchBar } from './components/molecules/SearchBar';
29
+ export { default as CategoriesWrapper } from './components/molecules/CategoriesWrapper';
30
+ export { default as CategoryIndex } from './components/molecules/CategoryIndex';
28
31
  export { default as PortalComponent } from './components/common/PortalComponent';
29
32
  export { Accordion as Accordion } from './components/molecules/Accordion';
30
33
  export { AccordionItem as AccordionItem } from './components/molecules/Accordion';
package/dist/types.d.ts CHANGED
@@ -432,6 +432,32 @@ interface IAwardBadge {
432
432
  */
433
433
  declare const AwardBadge: ({ label, variant, }: IAwardBadge) => React__default.JSX.Element;
434
434
 
435
+ interface SearchBarProps {
436
+ value: string;
437
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
438
+ placeholder?: string;
439
+ }
440
+
441
+ declare const SearchBar: React__default.FC<SearchBarProps>;
442
+
443
+ interface CategoriesWrapperProps {
444
+ category: string;
445
+ categoryItems: {
446
+ title: string;
447
+ slug: string;
448
+ }[];
449
+ }
450
+
451
+ declare const CategoriesWrapper: React__default.FC<CategoriesWrapperProps>;
452
+
453
+ interface CategoryIndexProps {
454
+ categories: string[];
455
+ onChange: (category: string | null) => void;
456
+ selectedCategory: string | null;
457
+ }
458
+
459
+ declare const CategoryIndex: React__default.FC<CategoryIndexProps>;
460
+
435
461
  type PortalComponentProps = {
436
462
  wrapperId: string;
437
463
  children?: React.ReactNode;
@@ -750,4 +776,4 @@ declare function useMediaMatch(query?: string): boolean;
750
776
 
751
777
  declare const debounce: (callback: any, wait: number) => (...args: any) => void;
752
778
 
753
- export { Accordion, AccordionItem, AwardBadge, AwardCard, BlogCard, Button, CardMarquee, CareersCard, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, EventsCard, Flex, FormField, GlobalStyles, Glossary, Heading, Icon, IconBox, IconTitle, ImageWrapper, LegalLinks, LicenseCard, Loader, LogosCard, Marquee, Modal, NewsCard, OffCanvas, PortalComponent, ProductCard, ProductsSlider, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, debounce, iconsList, isTouchDevice, useMediaMatch, variables };
779
+ export { Accordion, AccordionItem, AwardBadge, AwardCard, BlogCard, Button, CardMarquee, CareersCard, CategoriesWrapper, CategoryIndex, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, EventsCard, Flex, FormField, GlobalStyles, Glossary, Heading, Icon, IconBox, IconTitle, ImageWrapper, LegalLinks, LicenseCard, Loader, LogosCard, Marquee, Modal, NewsCard, OffCanvas, PortalComponent, ProductCard, ProductsSlider, Quote, RichText, Row, ScrollingNav, SearchBar, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, debounce, iconsList, isTouchDevice, useMediaMatch, variables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.211",
3
+ "version": "1.0.213",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -0,0 +1 @@
1
+ export { default } from './CategoriesWrapper.component'
@@ -0,0 +1 @@
1
+ export { default } from './CategoryIndex.component'
@@ -0,0 +1 @@
1
+ export { default } from './SearchBar.component'
@@ -42,7 +42,8 @@ export const Glossary: React.FC<GlossaryProps> = ({
42
42
  tryAnotherLetterText
43
43
  }) => {
44
44
  const categoryNames = Object.keys(categoryData)
45
-
45
+ console.log("categoryData", categoryData)
46
+ console.log("displayedCategories", displayedCategories)
46
47
  return (
47
48
  <StyledGlossary>
48
49
  <SearchBar
package/src/index.ts CHANGED
@@ -27,6 +27,9 @@ export { default as LegalLinks } from './components/atoms/LegalLinks'
27
27
  export { default as Marquee } from './components/atoms/Marquee'
28
28
  export { default as CardMarquee } from './components/atoms/CardMarquee'
29
29
  export { default as AwardBadge } from './components/atoms/AwardBadge'
30
+ export { default as SearchBar } from './components/molecules/SearchBar'
31
+ export { default as CategoriesWrapper } from './components/molecules/CategoriesWrapper'
32
+ export { default as CategoryIndex } from './components/molecules/CategoryIndex'
30
33
 
31
34
  //common
32
35
  export { default as PortalComponent } from './components/common/PortalComponent'