gd-design-library 0.0.2 → 0.0.3
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/README.md +4 -4
- package/assets/icons/account_circle.d.ts +7 -0
- package/assets/icons/arrow-down.d.ts +6 -0
- package/assets/icons/arrow-forward.d.ts +2 -1
- package/assets/icons/check.d.ts +2 -1
- package/assets/icons/chevron-right.d.ts +2 -1
- package/assets/icons/cross.d.ts +2 -1
- package/assets/icons/dot.d.ts +2 -1
- package/assets/icons/error_outline.d.ts +6 -0
- package/assets/icons/favorite.d.ts +7 -0
- package/assets/icons/home.d.ts +2 -1
- package/assets/icons/local_shipping.d.ts +7 -0
- package/assets/icons/mobile_menu_button.d.ts +7 -0
- package/assets/icons/shopping_bag.d.ts +7 -0
- package/assets/icons/slash.d.ts +2 -1
- package/assets/icons/star.d.ts +3 -1
- package/assets/icons/starOutlined.d.ts +6 -0
- package/assets/icons/toast_error.d.ts +2 -1
- package/assets/icons/toast_info.d.ts +2 -1
- package/assets/icons/toast_success.d.ts +2 -1
- package/assets/icons/toast_warning.d.ts +2 -1
- package/assets/index.d.ts +11 -83
- package/components/core/Dropdown/Dropdown.d.ts +4 -0
- package/components/core/Dropdown/Dropdown.types.d.ts +12 -0
- package/components/core/Dropdown/StyledDropdown.d.ts +2 -0
- package/components/core/Dropdown/constants.d.ts +1 -0
- package/components/core/Dropdown/hooks/index.d.ts +1 -0
- package/components/core/Dropdown/hooks/useDropdown.d.ts +3 -0
- package/components/core/Dropdown/index.d.ts +2 -0
- package/components/core/DropdownItem/DropdownItem.d.ts +4 -0
- package/components/core/DropdownItem/DropdownItem.types.d.ts +15 -0
- package/components/core/DropdownItem/StyledDropdownItem.d.ts +2 -0
- package/components/core/DropdownItem/constants.d.ts +1 -0
- package/components/core/DropdownItem/index.d.ts +2 -0
- package/components/core/Form/Form.d.ts +1 -1
- package/components/core/Form/utils.d.ts +1 -1
- package/components/core/Icon/Icon.d.ts +1 -4
- package/components/core/Icon/Icon.types.d.ts +1 -2
- package/components/core/Icon/constants.d.ts +74 -0
- package/components/core/Image/Image.d.ts +3 -0
- package/components/core/Image/Image.types.d.ts +27 -0
- package/components/core/Image/StyledImage.d.ts +5 -0
- package/components/core/Image/constants.d.ts +1 -0
- package/components/core/Image/index.d.ts +2 -0
- package/components/core/Input/Input.d.ts +1 -1
- package/components/core/Input/Input.types.d.ts +2 -1
- package/components/core/Input/StyledInput.d.ts +1 -1
- package/components/core/Label/Label.d.ts +1 -1
- package/components/core/Label/StyledLabel.d.ts +1 -1
- package/components/core/Link/Link.types.d.ts +1 -0
- package/components/core/List/StyledList.d.ts +1 -1
- package/components/core/Loader/StyledLoader.d.ts +1 -1
- package/components/core/Portal/Portal.d.ts +4 -3
- package/components/core/Select/Select.d.ts +5 -0
- package/components/core/Select/Select.types.d.ts +45 -0
- package/components/core/Select/StyledSelect.d.ts +24 -0
- package/components/core/Select/constants.d.ts +1 -0
- package/components/core/Select/hooks/index.d.ts +1 -0
- package/components/core/Select/hooks/useSelectContext.d.ts +3 -0
- package/components/core/Select/index.d.ts +2 -0
- package/components/core/Skeleton/StyledSkeleton.d.ts +1 -1
- package/components/core/Snackbar/Snackbar.d.ts +1 -1
- package/components/core/Switch/StyledSwitch.d.ts +1 -1
- package/components/core/Switch/Switch.d.ts +2 -2
- package/components/core/Switch/{types.d.ts → Switch.types.d.ts} +2 -2
- package/components/core/Switch/index.d.ts +1 -1
- package/components/core/Textarea/Textarea.d.ts +0 -1
- package/components/core/Tooltip/StyledTooltip.d.ts +1 -1
- package/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/components/core/Tooltip/Tooltip.types.d.ts +1 -0
- package/components/core/Typography/Typography.d.ts +3 -2
- package/components/core/Typography/Typography.types.d.ts +2 -1
- package/components/core/Typography/utils.d.ts +1 -1
- package/components/core/Wrapper/StyledWrapper.d.ts +1 -1
- package/components/core/Wrapper/Wrapper.d.ts +1 -1
- package/components/core/index.d.ts +4 -0
- package/components/core/types/events.types.d.ts +6 -0
- package/components/domainSpecific/Header/Header.d.ts +4 -0
- package/components/domainSpecific/Header/Header.types.d.ts +23 -0
- package/components/domainSpecific/Header/StyledHeader.d.ts +123 -0
- package/components/domainSpecific/Header/constants.d.ts +1 -0
- package/components/domainSpecific/Header/index.d.ts +2 -0
- package/components/domainSpecific/Price/Price.d.ts +5 -0
- package/components/domainSpecific/Price/Price.types.d.ts +11 -0
- package/components/domainSpecific/Price/StyledPrice.d.ts +9 -0
- package/components/domainSpecific/Price/constants.d.ts +1 -0
- package/components/domainSpecific/Price/index.d.ts +1 -0
- package/components/domainSpecific/Rating/Rating.d.ts +2 -0
- package/components/domainSpecific/Rating/Rating.types.d.ts +19 -0
- package/components/domainSpecific/Rating/StyledRating.d.ts +5 -0
- package/components/domainSpecific/Rating/constants.d.ts +6 -0
- package/components/domainSpecific/Rating/index.d.ts +2 -0
- package/components/domainSpecific/Search/Search.d.ts +4 -0
- package/components/domainSpecific/Search/Search.types.d.ts +24 -0
- package/components/domainSpecific/Search/StyledSearch.d.ts +29 -0
- package/components/domainSpecific/Search/constants.d.ts +6 -0
- package/components/domainSpecific/Search/index.d.ts +2 -0
- package/components/domainSpecific/Search/renderers.d.ts +4 -0
- package/components/domainSpecific/Tabs/StyledTabs.d.ts +14 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.d.ts +4 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.types.d.ts +5 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/StyledSkeletonSearch.d.ts +82 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/constants.d.ts +2 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/index.d.ts +2 -0
- package/components/domainSpecific/Templates/Cards/Skeleton/index.d.ts +1 -0
- package/components/domainSpecific/Templates/Cards/index.d.ts +1 -0
- package/components/domainSpecific/Templates/index.d.ts +1 -0
- package/components/domainSpecific/index.d.ts +5 -0
- package/components/layout/FlexContainer/FlexContainer.types.d.ts +4 -1
- package/components/layout/index.types.d.ts +6 -0
- package/constants/events.d.ts +5 -0
- package/constants/index.d.ts +1 -0
- package/constants/keyboard.d.ts +3 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/useClickOutside/index.d.ts +1 -0
- package/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/hooks/useMediaQuery/index.d.ts +1 -0
- package/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
- package/hooks/useTheme/useTheme.d.ts +1 -1
- package/index.mjs +6168 -4909
- package/package.json +10 -3
- package/tokens/borders.d.ts +2 -2
- package/tokens/button.d.ts +6 -3
- package/tokens/defaultTheme.d.ts +463 -12
- package/tokens/flexContainer.d.ts +1 -0
- package/tokens/header.d.ts +108 -0
- package/tokens/image.d.ts +32 -0
- package/tokens/index.d.ts +405 -12
- package/tokens/input.d.ts +9 -1
- package/tokens/label.d.ts +4 -0
- package/tokens/link.d.ts +16 -0
- package/tokens/list.d.ts +10 -0
- package/tokens/modal.d.ts +6 -1
- package/tokens/price.d.ts +19 -0
- package/tokens/rating.d.ts +57 -0
- package/tokens/search.d.ts +37 -0
- package/tokens/select.d.ts +53 -0
- package/tokens/shadow.d.ts +4 -0
- package/tokens/skeleton.d.ts +44 -0
- package/tokens/snackbar.d.ts +20 -6
- package/tokens/stepper.d.ts +32 -0
- package/tokens/tabs.d.ts +4 -0
- package/tokens/tooltip.d.ts +4 -0
- package/tokens/utils.d.ts +2 -2
- package/tokens/values.d.ts +4 -1
- package/utils/index.d.ts +1 -0
- package/utils/math.d.ts +6 -0
- package/index.js +0 -124
package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/StyledSkeletonSearch.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Theme } from '../../../../../../hooks/useTheme';
|
|
2
|
+
export declare const StyledSkeletonSearch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
theme: Theme;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const StyledSkeletonSearchContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('../../../../../layout').FlexContainerProps & {
|
|
6
|
+
children?: import('react').ReactNode | undefined;
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
theme: Theme;
|
|
11
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../layout').FlexContainerProps & {
|
|
12
|
+
children?: import('react').ReactNode | undefined;
|
|
13
|
+
} & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
14
|
+
export declare const StyledSkeletonSearchHeaderRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('../../../../../layout/Row/Row.types').RowProps & {
|
|
15
|
+
children?: import('react').ReactNode | undefined;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
theme: Theme;
|
|
20
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../layout/Row/Row.types').RowProps & {
|
|
21
|
+
children?: import('react').ReactNode | undefined;
|
|
22
|
+
} & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
23
|
+
export declare const StyledSkeletonSearchRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('../../../../../layout/Row/Row.types').RowProps & {
|
|
24
|
+
children?: import('react').ReactNode | undefined;
|
|
25
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
theme: Theme;
|
|
29
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../layout/Row/Row.types').RowProps & {
|
|
30
|
+
children?: import('react').ReactNode | undefined;
|
|
31
|
+
} & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
32
|
+
export declare const StyledSkeletonSearchColumnImageBase: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('../../../../../layout/Column/Column.types').ColumnProps & {
|
|
33
|
+
children?: import('react').ReactNode | undefined;
|
|
34
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
35
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
theme: Theme;
|
|
38
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../layout/Column/Column.types').ColumnProps & {
|
|
39
|
+
children?: import('react').ReactNode | undefined;
|
|
40
|
+
} & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
41
|
+
export declare const StyledSkeletonSearchColumnImage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
42
|
+
children?: import('react').ReactNode | undefined;
|
|
43
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
44
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
45
|
+
}, Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
46
|
+
children?: import('react').ReactNode | undefined;
|
|
47
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
48
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
49
|
+
}>, never>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
50
|
+
children?: import('react').ReactNode | undefined;
|
|
51
|
+
} & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
52
|
+
export declare const StyledSkeletonSearchColumnTextBase: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('../../../../../layout/Column/Column.types').ColumnProps & {
|
|
53
|
+
children?: import('react').ReactNode | undefined;
|
|
54
|
+
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
55
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
theme: Theme;
|
|
58
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../layout/Column/Column.types').ColumnProps & {
|
|
59
|
+
children?: import('react').ReactNode | undefined;
|
|
60
|
+
} & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
61
|
+
export declare const StyledSkeletonSearchColumnText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
62
|
+
children?: import('react').ReactNode | undefined;
|
|
63
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
64
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
65
|
+
}, Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
66
|
+
children?: import('react').ReactNode | undefined;
|
|
67
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
68
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
69
|
+
}>, never>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
70
|
+
children?: import('react').ReactNode | undefined;
|
|
71
|
+
} & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
72
|
+
export declare const StyledSkeletonSearchColumnPrice: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
73
|
+
children?: import('react').ReactNode | undefined;
|
|
74
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
75
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
76
|
+
}, Omit<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
77
|
+
children?: import('react').ReactNode | undefined;
|
|
78
|
+
} & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
79
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
80
|
+
}>, never>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('../../../../../core/Skeleton').SkeletonProps & {
|
|
81
|
+
children?: import('react').ReactNode | undefined;
|
|
82
|
+
} & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SkeletonSearch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Skeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Cards';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnumOrPrimitive } from '../../../types';
|
|
2
|
+
import { CommonComponentProps, CommonStyledComponentProps, FlexDirection, LayoutSize } from '../..';
|
|
2
3
|
export interface FlexContainerProps extends CommonComponentProps {
|
|
3
4
|
maxWidth?: LayoutSize;
|
|
4
5
|
isResponsive?: boolean;
|
|
6
|
+
flexDirection?: EnumOrPrimitive<FlexDirection>;
|
|
5
7
|
}
|
|
6
8
|
export interface StyledFlexContainerProps extends CommonStyledComponentProps {
|
|
7
9
|
$maxWidth: LayoutSize;
|
|
8
10
|
$isResponsive: boolean;
|
|
11
|
+
$flexDirection: EnumOrPrimitive<FlexDirection>;
|
|
9
12
|
}
|
package/constants/index.d.ts
CHANGED
package/constants/keyboard.d.ts
CHANGED
package/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useClickOutside';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useClickOutside: (ref: React.RefObject<HTMLElement>, callback: () => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useMediaQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMediaQuery: (query: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ThemeProviderProps, ThemeContextProps } from '.';
|
|
2
|
+
import { ThemeProviderProps, ThemeContextProps } from './useTheme.types';
|
|
3
3
|
export declare const ThemeProvider: (props: PropsWithChildren<ThemeProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const useTheme: () => ThemeContextProps;
|