oddsgate-ds 1.0.211 → 1.0.212
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/molecules/CategoriesWrapper/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/CategoryIndex/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/SearchBar/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/molecules/CategoriesWrapper/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/CategoryIndex/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/SearchBar/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +3 -0
- package/dist/types.d.ts +27 -1
- package/package.json +1 -1
- package/src/components/molecules/CategoriesWrapper/index.ts +1 -0
- package/src/components/molecules/CategoryIndex/index.ts +1 -0
- package/src/components/molecules/SearchBar/index.ts +1 -0
- package/src/components/organisms/Glossary/Glossary.component.tsx +2 -3
- package/src/index.ts +3 -0
|
@@ -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
|
@@ -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'
|
|
@@ -34,7 +34,6 @@ export const Glossary: React.FC<GlossaryProps> = ({
|
|
|
34
34
|
selectedCategory,
|
|
35
35
|
setSelectedCategory,
|
|
36
36
|
categoryData,
|
|
37
|
-
displayedCategories,
|
|
38
37
|
placeholder,
|
|
39
38
|
noResults,
|
|
40
39
|
backToTopButton,
|
|
@@ -42,7 +41,7 @@ export const Glossary: React.FC<GlossaryProps> = ({
|
|
|
42
41
|
tryAnotherLetterText
|
|
43
42
|
}) => {
|
|
44
43
|
const categoryNames = Object.keys(categoryData)
|
|
45
|
-
|
|
44
|
+
console.log("categoryData", categoryData)
|
|
46
45
|
return (
|
|
47
46
|
<StyledGlossary>
|
|
48
47
|
<SearchBar
|
|
@@ -66,7 +65,7 @@ export const Glossary: React.FC<GlossaryProps> = ({
|
|
|
66
65
|
) : (
|
|
67
66
|
<>
|
|
68
67
|
<StyledGlossaryCategories>
|
|
69
|
-
{
|
|
68
|
+
{categoryNames.map(category => (
|
|
70
69
|
<CategoriesWrapper
|
|
71
70
|
key={category}
|
|
72
71
|
category={category}
|
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'
|