gd-design-library 0.0.5 → 0.0.6
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/assets/index.d.ts +0 -1
- package/components/core/Icon/constants.d.ts +0 -7
- package/components/core/Select/Select.types.d.ts +3 -4
- package/components/core/Select/constants.d.ts +0 -1
- package/components/core/Typography/Typography.types.d.ts +1 -1
- package/components/domainSpecific/index.d.ts +0 -2
- package/components/index.types.d.ts +0 -18
- package/components/layout/utils.d.ts +2 -2
- package/hooks/index.d.ts +0 -2
- package/index.mjs +7793 -5858
- package/package.json +1 -1
- package/tokens/button.d.ts +2 -2
- package/tokens/defaultTheme.d.ts +37 -191
- package/tokens/header.d.ts +2 -2
- package/tokens/index.d.ts +34 -190
- package/tokens/link.d.ts +9 -9
- package/tokens/list.d.ts +6 -6
- package/tokens/modal.d.ts +4 -4
- package/tokens/select.d.ts +3 -3
- package/tokens/shadow.d.ts +0 -3
- package/tokens/snackbar.d.ts +11 -11
- package/tokens/spacing.d.ts +1 -1
- package/types/index.d.ts +1 -2
- package/assets/icons/chevron-left.d.ts +0 -7
- package/components/domainSpecific/Card/Card.d.ts +0 -4
- package/components/domainSpecific/Card/Card.types.d.ts +0 -18
- package/components/domainSpecific/Card/StyledCard.d.ts +0 -2
- package/components/domainSpecific/Card/constants.d.ts +0 -1
- package/components/domainSpecific/Card/index.d.ts +0 -2
- package/components/domainSpecific/Carousel/Carousel.d.ts +0 -15
- package/components/domainSpecific/Carousel/Carousel.types.d.ts +0 -35
- package/components/domainSpecific/Carousel/StyledCarousel.d.ts +0 -27
- package/components/domainSpecific/Carousel/constants.d.ts +0 -1
- package/components/domainSpecific/Carousel/index.d.ts +0 -2
- package/components/domainSpecific/Carousel/utils.d.ts +0 -2
- package/hooks/useCarousel/index.d.ts +0 -1
- package/hooks/useCarousel/useCarousel.d.ts +0 -20
- package/hooks/useKeyControls/index.d.ts +0 -1
- package/hooks/useKeyControls/useKeyControls.d.ts +0 -2
- package/tokens/card.d.ts +0 -46
- package/tokens/carousel.d.ts +0 -110
- package/types/carousel.d.ts +0 -1
- package/types/keys.d.ts +0 -8
package/assets/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { DotIcon } from './icons/dot';
|
|
|
8
8
|
export { CheckIcon } from './icons/check';
|
|
9
9
|
export { ArrowDownIcon } from './icons/arrow-down';
|
|
10
10
|
export { ChevronRightIcon } from './icons/chevron-right';
|
|
11
|
-
export { ChevronLeftIcon } from './icons/chevron-left';
|
|
12
11
|
export { MobileMenuIcon } from './icons/mobile_menu_button';
|
|
13
12
|
export { HomeIcon } from './icons/home';
|
|
14
13
|
export { SlashIcon } from './icons/slash';
|
|
@@ -64,13 +64,6 @@ export declare const IconsList: {
|
|
|
64
64
|
fillSvg?: string | undefined;
|
|
65
65
|
fill?: string | undefined;
|
|
66
66
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
arrowLeft: ({ width, height, fillSvg, fill, ...rest }: {
|
|
68
|
-
[x: string]: any;
|
|
69
|
-
width?: number | undefined;
|
|
70
|
-
height?: number | undefined;
|
|
71
|
-
fillSvg?: string | undefined;
|
|
72
|
-
fill?: string | undefined;
|
|
73
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
74
67
|
mobileMenu: ({ width, height, fillSvg, fill, ...rest }: {
|
|
75
68
|
[x: string]: any;
|
|
76
69
|
width?: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import { Theme } from '../../../hooks
|
|
2
|
+
import { Theme } from '../../../hooks';
|
|
3
3
|
import { CommonCoreComponentProps, CommonCoreStyledComponentProps } from '..';
|
|
4
4
|
import { OnSelectProps } from '../types/events.types';
|
|
5
5
|
export interface Option {
|
|
@@ -26,9 +26,8 @@ export interface SelectProps<T extends HTMLElement = HTMLDivElement> extends Exc
|
|
|
26
26
|
initiator?: ReactNode;
|
|
27
27
|
width?: number | string;
|
|
28
28
|
emptyItemsResult?: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
renderDropdownHeader?: (theme: Theme, dropdownParams?: DropdownParams) => ReactNode;
|
|
29
|
+
renderOption?: (value: renderOptionType) => React.ReactNode;
|
|
30
|
+
renderDropdownHeader?: (theme: Theme, dropdownParams?: DropdownParams) => React.ReactNode;
|
|
32
31
|
autoOpen?: boolean;
|
|
33
32
|
activeIndex?: string | number;
|
|
34
33
|
}
|
|
@@ -9,24 +9,6 @@ export interface CommonStyledComponentProps {
|
|
|
9
9
|
$styles?: CSSObject;
|
|
10
10
|
theme: typeof defaultTheme;
|
|
11
11
|
}
|
|
12
|
-
export interface BoxComponentProps extends CommonComponentProps {
|
|
13
|
-
overflow?: string;
|
|
14
|
-
minWidth?: string;
|
|
15
|
-
width?: string;
|
|
16
|
-
maxWidth?: string;
|
|
17
|
-
minHeight?: string;
|
|
18
|
-
height?: string;
|
|
19
|
-
maxHeight?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface BoxStyledComponentProps extends CommonStyledComponentProps {
|
|
22
|
-
$overflow?: string;
|
|
23
|
-
$minWidth?: string;
|
|
24
|
-
$width?: string;
|
|
25
|
-
$maxWidth?: string;
|
|
26
|
-
$minHeight?: string;
|
|
27
|
-
$height?: string;
|
|
28
|
-
$maxHeight?: string;
|
|
29
|
-
}
|
|
30
12
|
export type AlignType = 'start' | 'center' | 'end' | 'stretch';
|
|
31
13
|
export type JustifyType = 'start' | 'center' | 'end' | 'between' | 'around';
|
|
32
14
|
export declare enum SizeVariant {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AlignType, JustifyType } from '../index.types';
|
|
2
|
-
export declare const calculateAlign: (align: AlignType) => "center" | "flex-end" | "flex-start"
|
|
3
|
-
export declare const calculateJustify: (justify: JustifyType) => "
|
|
2
|
+
export declare const calculateAlign: (align: AlignType) => "stretch" | "center" | "flex-end" | "flex-start";
|
|
3
|
+
export declare const calculateJustify: (justify: JustifyType) => "space-around" | "space-between" | "center" | "flex-end" | "flex-start";
|
|
4
4
|
export declare const calculateGutter: (gutter?: number | string) => string;
|