oddsgate-ds 1.0.209 → 1.0.210
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/CategoriesWrapper.interface.d.ts +4 -2
- package/dist/cjs/types/components/organisms/Glossary/Glossary.component.d.ts +1 -13
- package/dist/cjs/types/components/organisms/Glossary/Glossary.interface.d.ts +13 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/molecules/CategoriesWrapper/CategoriesWrapper.interface.d.ts +4 -2
- package/dist/esm/types/components/organisms/Glossary/Glossary.component.d.ts +1 -13
- package/dist/esm/types/components/organisms/Glossary/Glossary.interface.d.ts +13 -0
- package/dist/types.d.ts +24 -2
- package/package.json +1 -1
- package/src/components/molecules/CategoriesWrapper/CategoriesWrapper.component.tsx +4 -2
- package/src/components/molecules/CategoriesWrapper/CategoriesWrapper.interface.ts +2 -2
- package/src/components/organisms/Glossary/Glossary.component.tsx +1 -13
- package/src/components/organisms/Glossary/Glossary.interface.ts +10 -0
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
searchTerm: string;
|
|
4
|
-
setSearchTerm: (term: string) => void;
|
|
5
|
-
selectedCategory: string | null;
|
|
6
|
-
setSelectedCategory: (cat: string | null) => void;
|
|
7
|
-
categoryData: Record<string, string[]>;
|
|
8
|
-
displayedCategories: string[];
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
noResults?: boolean;
|
|
11
|
-
backToTopButton?: boolean;
|
|
12
|
-
noResultsText?: string;
|
|
13
|
-
tryAnotherLetterText?: string;
|
|
14
|
-
};
|
|
2
|
+
import { GlossaryProps } from './Glossary.interface';
|
|
15
3
|
export declare const Glossary: React.FC<GlossaryProps>;
|
|
16
4
|
export default Glossary;
|
|
@@ -18,5 +18,18 @@ export type GlossaryProps = {
|
|
|
18
18
|
}[];
|
|
19
19
|
}[];
|
|
20
20
|
placeholder?: string;
|
|
21
|
+
searchTerm: string;
|
|
22
|
+
setSearchTerm: (term: string) => void;
|
|
23
|
+
selectedCategory: string | null;
|
|
24
|
+
setSelectedCategory: (cat: string | null) => void;
|
|
25
|
+
categoryData: Record<string, {
|
|
26
|
+
title: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
}[]>;
|
|
29
|
+
displayedCategories: string[];
|
|
30
|
+
noResults?: boolean;
|
|
31
|
+
backToTopButton?: boolean;
|
|
32
|
+
noResultsText?: string;
|
|
33
|
+
tryAnotherLetterText?: string;
|
|
21
34
|
};
|
|
22
35
|
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -720,19 +720,41 @@ 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
|
+
};
|
|
723
733
|
type GlossaryProps = {
|
|
734
|
+
items: GlossaryItem[];
|
|
735
|
+
categories: {
|
|
736
|
+
name: string;
|
|
737
|
+
items: {
|
|
738
|
+
slug: string;
|
|
739
|
+
name: string;
|
|
740
|
+
}[];
|
|
741
|
+
}[];
|
|
742
|
+
placeholder?: string;
|
|
724
743
|
searchTerm: string;
|
|
725
744
|
setSearchTerm: (term: string) => void;
|
|
726
745
|
selectedCategory: string | null;
|
|
727
746
|
setSelectedCategory: (cat: string | null) => void;
|
|
728
|
-
categoryData: Record<string,
|
|
747
|
+
categoryData: Record<string, {
|
|
748
|
+
title: string;
|
|
749
|
+
slug: string;
|
|
750
|
+
}[]>;
|
|
729
751
|
displayedCategories: string[];
|
|
730
|
-
placeholder?: string;
|
|
731
752
|
noResults?: boolean;
|
|
732
753
|
backToTopButton?: boolean;
|
|
733
754
|
noResultsText?: string;
|
|
734
755
|
tryAnotherLetterText?: string;
|
|
735
756
|
};
|
|
757
|
+
|
|
736
758
|
declare const Glossary: React__default.FC<GlossaryProps>;
|
|
737
759
|
|
|
738
760
|
declare const iconsList: string[];
|
package/package.json
CHANGED
|
@@ -24,7 +24,9 @@ const CategoriesWrapper: React.FC<CategoriesWrapperProps> = ({
|
|
|
24
24
|
<StyledCategoryContent>
|
|
25
25
|
{categoryItems.map((item, index) => (
|
|
26
26
|
<StyledCategoryItem key={index}>
|
|
27
|
-
<Button
|
|
27
|
+
<Button as="a" href={item.slug} variant="text">
|
|
28
|
+
{item.title}
|
|
29
|
+
</Button>
|
|
28
30
|
</StyledCategoryItem>
|
|
29
31
|
))}
|
|
30
32
|
</StyledCategoryContent>
|
|
@@ -34,4 +36,4 @@ const CategoriesWrapper: React.FC<CategoriesWrapperProps> = ({
|
|
|
34
36
|
)
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
export default CategoriesWrapper
|
|
39
|
+
export default CategoriesWrapper
|
|
@@ -13,20 +13,8 @@ import GlossaryCategoryIndex from '@/components/molecules/CategoryIndex/Category
|
|
|
13
13
|
import CategoriesWrapper from '@/components/molecules/CategoriesWrapper/CategoriesWrapper.component'
|
|
14
14
|
import Button from '@/components/atoms/Button'
|
|
15
15
|
import Icon from '@/components/atoms/Icon'
|
|
16
|
+
import { GlossaryProps } from './Glossary.interface'
|
|
16
17
|
|
|
17
|
-
type GlossaryProps = {
|
|
18
|
-
searchTerm: string
|
|
19
|
-
setSearchTerm: (term: string) => void
|
|
20
|
-
selectedCategory: string | null
|
|
21
|
-
setSelectedCategory: (cat: string | null) => void
|
|
22
|
-
categoryData: Record<string, string[]>
|
|
23
|
-
displayedCategories: string[]
|
|
24
|
-
placeholder?: string
|
|
25
|
-
noResults?: boolean
|
|
26
|
-
backToTopButton?: boolean
|
|
27
|
-
noResultsText?: string
|
|
28
|
-
tryAnotherLetterText?: string
|
|
29
|
-
}
|
|
30
18
|
|
|
31
19
|
export const Glossary: React.FC<GlossaryProps> = ({
|
|
32
20
|
searchTerm,
|
|
@@ -7,4 +7,14 @@ export type GlossaryProps = {
|
|
|
7
7
|
items: GlossaryItem[]
|
|
8
8
|
categories: { name: string; items: { slug: string; name: string }[] }[]
|
|
9
9
|
placeholder?: string
|
|
10
|
+
searchTerm: string
|
|
11
|
+
setSearchTerm: (term: string) => void
|
|
12
|
+
selectedCategory: string | null
|
|
13
|
+
setSelectedCategory: (cat: string | null) => void
|
|
14
|
+
categoryData: Record<string, { title: string; slug: string }[]>
|
|
15
|
+
displayedCategories: string[]
|
|
16
|
+
noResults?: boolean
|
|
17
|
+
backToTopButton?: boolean
|
|
18
|
+
noResultsText?: string
|
|
19
|
+
tryAnotherLetterText?: string
|
|
10
20
|
}
|