oddsgate-ds 1.0.199 → 1.0.201
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/organisms/Glossary/Glossary.component.d.ts +2 -24
- package/dist/cjs/types/components/organisms/Glossary/Glossary.interface.d.ts +24 -0
- package/dist/cjs/types/components/organisms/Glossary/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/organisms/Glossary/Glossary.component.d.ts +2 -24
- package/dist/esm/types/components/organisms/Glossary/Glossary.interface.d.ts +24 -0
- package/dist/esm/types/components/organisms/Glossary/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/types.d.ts +27 -1
- package/package.json +1 -1
- package/src/components/molecules/CategoriesWrapper/CategoriesWrapper.theme.ts +1 -0
- package/src/components/organisms/Glossary/Glossary.component.tsx +6 -16
- package/src/components/organisms/Glossary/Glossary.interface.ts +12 -0
- package/src/components/organisms/Glossary/index.ts +1 -0
- package/src/index.ts +1 -0
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
categories: {
|
|
5
|
-
name: string;
|
|
6
|
-
items: {
|
|
7
|
-
slug: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}[];
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
type GlossaryProps = {
|
|
13
|
-
title: string;
|
|
14
|
-
subtitle: string;
|
|
15
|
-
items: GlossaryItem[];
|
|
16
|
-
categories: {
|
|
17
|
-
name: string;
|
|
18
|
-
items: {
|
|
19
|
-
slug: string;
|
|
20
|
-
name: string;
|
|
21
|
-
}[];
|
|
22
|
-
}[];
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
};
|
|
25
|
-
declare const Glossary: React.FC<GlossaryProps>;
|
|
2
|
+
import { GlossaryProps } from './Glossary.interface';
|
|
3
|
+
export declare const Glossary: React.FC<GlossaryProps>;
|
|
26
4
|
export default Glossary;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type GlossaryItem = {
|
|
2
|
+
title: string;
|
|
3
|
+
categories: {
|
|
4
|
+
name: string;
|
|
5
|
+
items: {
|
|
6
|
+
slug: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
export type GlossaryProps = {
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
items: GlossaryItem[];
|
|
15
|
+
categories: {
|
|
16
|
+
name: string;
|
|
17
|
+
items: {
|
|
18
|
+
slug: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}[];
|
|
21
|
+
}[];
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Glossary.component';
|
|
@@ -49,6 +49,7 @@ export { default as Cover } from './components/organisms/Cover';
|
|
|
49
49
|
export { default as Tabs } from './components/organisms/Tabs';
|
|
50
50
|
export { default as CircularSlider } from './components/organisms/CircularSlider';
|
|
51
51
|
export { default as ProductsSlider } from './components/organisms/ProductsSlider';
|
|
52
|
+
export { default as Glossary } from './components/organisms/Glossary';
|
|
52
53
|
export { iconsList } from './helpers/getIcons';
|
|
53
54
|
export { default as GlobalStyles } from './styles/Global';
|
|
54
55
|
export { default as clickOutSideToClose } from './helpers/clickOutsideToClose';
|
package/dist/types.d.ts
CHANGED
|
@@ -720,6 +720,32 @@ type IProductsSlider = {
|
|
|
720
720
|
|
|
721
721
|
declare const ProductsSlider: ({ content, style, className, }: IProductsSlider) => React__default.JSX.Element;
|
|
722
722
|
|
|
723
|
+
type GlossaryItem = {
|
|
724
|
+
title: string;
|
|
725
|
+
categories: {
|
|
726
|
+
name: string;
|
|
727
|
+
items: {
|
|
728
|
+
slug: string;
|
|
729
|
+
name: string;
|
|
730
|
+
}[];
|
|
731
|
+
}[];
|
|
732
|
+
};
|
|
733
|
+
type GlossaryProps = {
|
|
734
|
+
title: string;
|
|
735
|
+
subtitle: string;
|
|
736
|
+
items: GlossaryItem[];
|
|
737
|
+
categories: {
|
|
738
|
+
name: string;
|
|
739
|
+
items: {
|
|
740
|
+
slug: string;
|
|
741
|
+
name: string;
|
|
742
|
+
}[];
|
|
743
|
+
}[];
|
|
744
|
+
placeholder?: string;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
declare const Glossary: React__default.FC<GlossaryProps>;
|
|
748
|
+
|
|
723
749
|
declare const iconsList: string[];
|
|
724
750
|
|
|
725
751
|
declare const GlobalStyles: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
@@ -732,4 +758,4 @@ declare function useMediaMatch(query?: string): boolean;
|
|
|
732
758
|
|
|
733
759
|
declare const debounce: (callback: any, wait: number) => (...args: any) => void;
|
|
734
760
|
|
|
735
|
-
export { Accordion, AccordionItem, AwardBadge, AwardCard, BlogCard, Button, CardMarquee, CareersCard, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, EventsCard, Flex, FormField, GlobalStyles, 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 };
|
|
761
|
+
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 };
|
package/package.json
CHANGED
|
@@ -9,21 +9,9 @@ import {
|
|
|
9
9
|
import SearchBar from '@/components/molecules/SearchBar/SearchBar.component'
|
|
10
10
|
import GlossaryCategoryIndex from '@/components/molecules/CategoryIndex/CategoryIndex.component'
|
|
11
11
|
import CategoriesWrapper from '@/components/molecules/CategoriesWrapper/CategoriesWrapper.component'
|
|
12
|
+
import { GlossaryProps } from './Glossary.interface'
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
title: string
|
|
15
|
-
categories: { name: string, items: { slug: string, name: string }[] }[]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type GlossaryProps = {
|
|
19
|
-
title: string
|
|
20
|
-
subtitle: string
|
|
21
|
-
items: GlossaryItem[]
|
|
22
|
-
categories: { name: string, items: { slug: string, name: string }[] }[]
|
|
23
|
-
placeholder?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const Glossary: React.FC<GlossaryProps> = ({
|
|
14
|
+
export const Glossary: React.FC<GlossaryProps> = ({
|
|
27
15
|
title,
|
|
28
16
|
subtitle,
|
|
29
17
|
items,
|
|
@@ -59,13 +47,15 @@ const Glossary: React.FC<GlossaryProps> = ({
|
|
|
59
47
|
<SearchBar
|
|
60
48
|
value={searchTerm}
|
|
61
49
|
onChange={e => setSearchTerm(e.target.value)}
|
|
62
|
-
placeholder=
|
|
50
|
+
placeholder={placeholder}
|
|
63
51
|
/>
|
|
64
52
|
|
|
65
53
|
<GlossaryCategoryIndex
|
|
66
54
|
categories={categoryNames}
|
|
67
55
|
selectedCategory={selectedCategory}
|
|
68
|
-
onChange={cat =>
|
|
56
|
+
onChange={cat =>
|
|
57
|
+
setSelectedCategory(cat === selectedCategory ? null : cat)
|
|
58
|
+
}
|
|
69
59
|
/>
|
|
70
60
|
|
|
71
61
|
<StyledGlossaryCategories>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type GlossaryItem = {
|
|
2
|
+
title: string
|
|
3
|
+
categories: { name: string; items: { slug: string; name: string }[] }[]
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type GlossaryProps = {
|
|
7
|
+
title: string
|
|
8
|
+
subtitle: string
|
|
9
|
+
items: GlossaryItem[]
|
|
10
|
+
categories: { name: string; items: { slug: string; name: string }[] }[]
|
|
11
|
+
placeholder?: string
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Glossary.component'
|
package/src/index.ts
CHANGED
|
@@ -56,6 +56,7 @@ export { default as Cover } from './components/organisms/Cover'
|
|
|
56
56
|
export { default as Tabs } from './components/organisms/Tabs'
|
|
57
57
|
export { default as CircularSlider } from './components/organisms/CircularSlider'
|
|
58
58
|
export { default as ProductsSlider } from './components/organisms/ProductsSlider'
|
|
59
|
+
export { default as Glossary } from './components/organisms/Glossary'
|
|
59
60
|
|
|
60
61
|
export { iconsList } from './helpers/getIcons'
|
|
61
62
|
|