oddsgate-ds 1.0.225 → 1.0.226
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/atoms/Button/Button.component.d.ts +1 -1
- package/dist/cjs/types/components/atoms/Button/Button.interface.d.ts +4 -0
- package/dist/cjs/types/components/molecules/CategoriesWrapper/CategoriesWrapper.component.d.ts +4 -0
- package/dist/cjs/types/components/molecules/CategoriesWrapper/CategoriesWrapper.interface.d.ts +7 -0
- package/dist/cjs/types/components/molecules/CategoriesWrapper/CategoriesWrapper.theme.d.ts +6 -0
- package/dist/cjs/types/components/molecules/CategoriesWrapper/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/CategoryIndex/CategoryIndex.component.d.ts +4 -0
- package/dist/cjs/types/components/molecules/CategoryIndex/CategoryIndex.interface.d.ts +8 -0
- package/dist/cjs/types/components/molecules/CategoryIndex/CategoryIndex.theme.d.ts +7 -0
- package/dist/cjs/types/components/molecules/CategoryIndex/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/SearchBar/SearchBar.component.d.ts +4 -0
- package/dist/cjs/types/components/molecules/SearchBar/SearchBar.interface.d.ts +8 -0
- package/dist/cjs/types/components/molecules/SearchBar/SearchBar.theme.d.ts +4 -0
- package/dist/cjs/types/components/molecules/SearchBar/index.d.ts +1 -0
- package/dist/cjs/types/components/organisms/Glossary/Glossary.component.d.ts +4 -0
- package/dist/cjs/types/components/organisms/Glossary/Glossary.interface.d.ts +18 -0
- package/dist/cjs/types/components/organisms/Glossary/Glossary.themes.d.ts +8 -0
- package/dist/cjs/types/components/organisms/Glossary/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Button/Button.component.d.ts +1 -1
- package/dist/esm/types/components/atoms/Button/Button.interface.d.ts +4 -0
- package/dist/esm/types/components/molecules/CategoriesWrapper/CategoriesWrapper.component.d.ts +4 -0
- package/dist/esm/types/components/molecules/CategoriesWrapper/CategoriesWrapper.interface.d.ts +7 -0
- package/dist/esm/types/components/molecules/CategoriesWrapper/CategoriesWrapper.theme.d.ts +6 -0
- package/dist/esm/types/components/molecules/CategoriesWrapper/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/CategoryIndex/CategoryIndex.component.d.ts +4 -0
- package/dist/esm/types/components/molecules/CategoryIndex/CategoryIndex.interface.d.ts +8 -0
- package/dist/esm/types/components/molecules/CategoryIndex/CategoryIndex.theme.d.ts +7 -0
- package/dist/esm/types/components/molecules/CategoryIndex/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/SearchBar/SearchBar.component.d.ts +4 -0
- package/dist/esm/types/components/molecules/SearchBar/SearchBar.interface.d.ts +8 -0
- package/dist/esm/types/components/molecules/SearchBar/SearchBar.theme.d.ts +4 -0
- package/dist/esm/types/components/molecules/SearchBar/index.d.ts +1 -0
- package/dist/esm/types/components/organisms/Glossary/Glossary.component.d.ts +4 -0
- package/dist/esm/types/components/organisms/Glossary/Glossary.interface.d.ts +18 -0
- package/dist/esm/types/components/organisms/Glossary/Glossary.themes.d.ts +8 -0
- package/dist/esm/types/components/organisms/Glossary/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +4 -0
- package/dist/types.d.ts +56 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IButton } from './Button.interface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const Button: ({ id, as, children, variant, mode, outlined, leftIcon, rightIcon, removeLabel, className, href, ariaLabel, rel, target, disabled, type, ...props }: IButton) => React.JSX.Element;
|
|
3
|
+
declare const Button: ({ id, as, children, variant, mode, outlined, leftIcon, rightIcon, removeLabel, className, href, ariaLabel, rel, target, disabled, type, iconAnimation, hideIconOnMobile, ...props }: IButton) => React.JSX.Element;
|
|
4
4
|
export default Button;
|
|
@@ -20,9 +20,13 @@ interface IButtonBase {
|
|
|
20
20
|
export interface IButtonSC extends IButtonBase {
|
|
21
21
|
$variant?: string;
|
|
22
22
|
$mode?: string;
|
|
23
|
+
$iconAnimation?: boolean;
|
|
24
|
+
$hideIconOnMobile?: boolean;
|
|
23
25
|
}
|
|
24
26
|
export interface IButton extends IButtonBase {
|
|
25
27
|
variant?: string;
|
|
26
28
|
mode?: string;
|
|
29
|
+
iconAnimation?: boolean;
|
|
30
|
+
hideIconOnMobile?: boolean;
|
|
27
31
|
}
|
|
28
32
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledCategoryWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const StyledCategorySeparator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const StyledCategorySeparatorLine: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const StyledCategoryContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const StyledCategoryItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CategoriesWrapper.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ItemProps = {
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledGlossaryCategoryIndex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const StyledGlossaryCategoryIndexItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ItemProps>> & string;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CategoryIndex.component';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledGlossarySearch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const SearchInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
4
|
+
export declare const SearchButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchBar.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type GlossaryItem = {
|
|
2
|
+
title: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
};
|
|
5
|
+
export type GlossaryCategoryData = {
|
|
6
|
+
[category: string]: GlossaryItem[];
|
|
7
|
+
};
|
|
8
|
+
export type GlossaryProps = {
|
|
9
|
+
searchTerm: string;
|
|
10
|
+
setSearchTerm: (term: string) => void;
|
|
11
|
+
selectedCategory: string | null;
|
|
12
|
+
setSelectedCategory: (cat: string | null) => void;
|
|
13
|
+
categoryData: GlossaryCategoryData;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
backToTopButton?: string;
|
|
16
|
+
noResultsText?: string;
|
|
17
|
+
tryAnotherLetterText?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledGlossary: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const StyledGlossaryTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
4
|
+
export declare const StyledGlossaryCategories: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const StyledNoResultsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const StyledNoResultsTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
7
|
+
export declare const StyledNoResultsSubtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
8
|
+
export declare const StyledBackButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Glossary.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';
|
|
@@ -49,6 +52,7 @@ export { default as Cover } from './components/organisms/Cover';
|
|
|
49
52
|
export { default as Tabs } from './components/organisms/Tabs';
|
|
50
53
|
export { default as CircularSlider } from './components/organisms/CircularSlider';
|
|
51
54
|
export { default as ProductsSlider } from './components/organisms/ProductsSlider';
|
|
55
|
+
export { default as Glossary } from './components/organisms/Glossary';
|
|
52
56
|
export { iconsList } from './helpers/getIcons';
|
|
53
57
|
export { default as GlobalStyles } from './styles/Global';
|
|
54
58
|
export { default as clickOutSideToClose } from './helpers/clickOutsideToClose';
|
package/dist/types.d.ts
CHANGED
|
@@ -156,9 +156,11 @@ interface IButtonBase {
|
|
|
156
156
|
interface IButton extends IButtonBase {
|
|
157
157
|
variant?: string;
|
|
158
158
|
mode?: string;
|
|
159
|
+
iconAnimation?: boolean;
|
|
160
|
+
hideIconOnMobile?: boolean;
|
|
159
161
|
}
|
|
160
162
|
|
|
161
|
-
declare const Button: ({ id, as, children, variant, mode, outlined, leftIcon, rightIcon, removeLabel, className, href, ariaLabel, rel, target, disabled, type, ...props }: IButton) => React__default.JSX.Element;
|
|
163
|
+
declare const Button: ({ id, as, children, variant, mode, outlined, leftIcon, rightIcon, removeLabel, className, href, ariaLabel, rel, target, disabled, type, iconAnimation, hideIconOnMobile, ...props }: IButton) => React__default.JSX.Element;
|
|
162
164
|
|
|
163
165
|
type ISpacer = {
|
|
164
166
|
id?: string;
|
|
@@ -432,6 +434,37 @@ interface IAwardBadge {
|
|
|
432
434
|
*/
|
|
433
435
|
declare const AwardBadge: ({ label, variant, }: IAwardBadge) => React__default.JSX.Element;
|
|
434
436
|
|
|
437
|
+
interface SearchBarProps {
|
|
438
|
+
value: string;
|
|
439
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
440
|
+
placeholder?: string;
|
|
441
|
+
onClick?: () => void;
|
|
442
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
declare const SearchBar: React__default.FC<SearchBarProps>;
|
|
446
|
+
|
|
447
|
+
interface CategoriesWrapperProps {
|
|
448
|
+
category: string;
|
|
449
|
+
categoryItems: {
|
|
450
|
+
title: string;
|
|
451
|
+
slug: string;
|
|
452
|
+
}[];
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare const CategoriesWrapper: React__default.FC<CategoriesWrapperProps>;
|
|
456
|
+
|
|
457
|
+
interface CategoryIndexProps {
|
|
458
|
+
categories: {
|
|
459
|
+
name: string;
|
|
460
|
+
slug: string;
|
|
461
|
+
}[];
|
|
462
|
+
onChange: (category: string | null) => void;
|
|
463
|
+
selectedCategory: string | null | undefined;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
declare const CategoryIndex: React__default.FC<CategoryIndexProps>;
|
|
467
|
+
|
|
435
468
|
type PortalComponentProps = {
|
|
436
469
|
wrapperId: string;
|
|
437
470
|
children?: React.ReactNode;
|
|
@@ -720,6 +753,27 @@ type IProductsSlider = {
|
|
|
720
753
|
|
|
721
754
|
declare const ProductsSlider: ({ content, style, className, }: IProductsSlider) => React__default.JSX.Element;
|
|
722
755
|
|
|
756
|
+
type GlossaryItem = {
|
|
757
|
+
title: string;
|
|
758
|
+
slug: string;
|
|
759
|
+
};
|
|
760
|
+
type GlossaryCategoryData = {
|
|
761
|
+
[category: string]: GlossaryItem[];
|
|
762
|
+
};
|
|
763
|
+
type GlossaryProps = {
|
|
764
|
+
searchTerm: string;
|
|
765
|
+
setSearchTerm: (term: string) => void;
|
|
766
|
+
selectedCategory: string | null;
|
|
767
|
+
setSelectedCategory: (cat: string | null) => void;
|
|
768
|
+
categoryData: GlossaryCategoryData;
|
|
769
|
+
placeholder?: string;
|
|
770
|
+
backToTopButton?: string;
|
|
771
|
+
noResultsText?: string;
|
|
772
|
+
tryAnotherLetterText?: string;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
declare const Glossary: React__default.FC<GlossaryProps>;
|
|
776
|
+
|
|
723
777
|
declare const iconsList: string[];
|
|
724
778
|
|
|
725
779
|
declare const GlobalStyles: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
@@ -732,4 +786,4 @@ declare function useMediaMatch(query?: string): boolean;
|
|
|
732
786
|
|
|
733
787
|
declare const debounce: (callback: any, wait: number) => (...args: any) => void;
|
|
734
788
|
|
|
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 };
|
|
789
|
+
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 };
|