gd-design-library 0.0.3 → 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.
@@ -0,0 +1,7 @@
1
+ export declare const MinusIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
3
+ width?: number | undefined;
4
+ height?: number | undefined;
5
+ fillSvg?: string | undefined;
6
+ fill?: string | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const PlusIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
3
+ width?: number | undefined;
4
+ height?: number | undefined;
5
+ fillSvg?: string | undefined;
6
+ fill?: string | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
package/assets/index.d.ts CHANGED
@@ -9,3 +9,14 @@ export { CheckIcon } from './icons/check';
9
9
  export { ArrowDownIcon } from './icons/arrow-down';
10
10
  export { ChevronRightIcon } from './icons/chevron-right';
11
11
  export { MobileMenuIcon } from './icons/mobile_menu_button';
12
+ export { HomeIcon } from './icons/home';
13
+ export { SlashIcon } from './icons/slash';
14
+ export { ArrowForwardIcon } from './icons/arrow-forward';
15
+ export { LocalShippingIcon } from './icons/local_shipping';
16
+ export { FavoriteIcon } from './icons/favorite';
17
+ export { AccountCircleIcon } from './icons/account_circle';
18
+ export { ShoppingBagIcon } from './icons/shopping_bag';
19
+ export { ErrorOutlineIcon } from './icons/error_outline';
20
+ export { StarOutlinedIcon } from './icons/starOutlined';
21
+ export { MinusIcon } from './icons/minus';
22
+ export { PlusIcon } from './icons/plus';
@@ -11,10 +11,6 @@ export declare enum ButtonColorVariant {
11
11
  Primary = "primary",
12
12
  Secondary = "secondary"
13
13
  }
14
- export declare enum IconPosition {
15
- Left = "left",
16
- Right = "right"
17
- }
18
14
  export declare enum ButtonTypes {
19
15
  Button = "button",
20
16
  Submit = "submit",
@@ -36,7 +32,6 @@ export declare enum ButtonRole {
36
32
  export interface ButtonProps extends CommonCoreComponentProps<ButtonVariant, ButtonColorVariant> {
37
33
  iconStart?: ReactNode;
38
34
  iconEnd?: ReactNode;
39
- iconPosition?: IconPosition;
40
35
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
41
36
  type?: ButtonTypes | `${ButtonTypes}`;
42
37
  disabled?: boolean;
@@ -1,4 +1,3 @@
1
- export declare const COMPONENT_NAME = "CustomIcon";
2
1
  export declare const IconsList: {
3
2
  cross: ({ width, height, fillSvg, fill, ...rest }: {
4
3
  [x: string]: any;
@@ -72,4 +71,80 @@ export declare const IconsList: {
72
71
  fillSvg?: string | undefined;
73
72
  fill?: string | undefined;
74
73
  }) => import("react/jsx-runtime").JSX.Element;
74
+ home: ({ width, height, fillSvg, fill, ...rest }: {
75
+ [x: string]: any;
76
+ width?: number | undefined;
77
+ height?: number | undefined;
78
+ fillSvg?: string | undefined;
79
+ fill?: string | undefined;
80
+ }) => import("react/jsx-runtime").JSX.Element;
81
+ slash: ({ width, height, fillSvg, fill, ...rest }: {
82
+ [x: string]: any;
83
+ width?: number | undefined;
84
+ height?: number | undefined;
85
+ fillSvg?: string | undefined;
86
+ fill?: string | undefined;
87
+ }) => import("react/jsx-runtime").JSX.Element;
88
+ arrowForward: ({ width, height, fillSvg, fill, ...rest }: {
89
+ [x: string]: any;
90
+ width?: number | undefined;
91
+ height?: number | undefined;
92
+ fillSvg?: string | undefined;
93
+ fill?: string | undefined;
94
+ }) => import("react/jsx-runtime").JSX.Element;
95
+ localShipping: ({ width, height, fillSvg, fill, ...rest }: {
96
+ [x: string]: any;
97
+ width?: number | undefined;
98
+ height?: number | undefined;
99
+ fillSvg?: string | undefined;
100
+ fill?: string | undefined;
101
+ }) => import("react/jsx-runtime").JSX.Element;
102
+ favorite: ({ width, height, fillSvg, fill, ...rest }: {
103
+ [x: string]: any;
104
+ width?: number | undefined;
105
+ height?: number | undefined;
106
+ fillSvg?: string | undefined;
107
+ fill?: string | undefined;
108
+ }) => import("react/jsx-runtime").JSX.Element;
109
+ accountCircle: ({ width, height, fillSvg, fill, ...rest }: {
110
+ [x: string]: any;
111
+ width?: number | undefined;
112
+ height?: number | undefined;
113
+ fillSvg?: string | undefined;
114
+ fill?: string | undefined;
115
+ }) => import("react/jsx-runtime").JSX.Element;
116
+ shoppingBag: ({ width, height, fillSvg, fill, ...rest }: {
117
+ [x: string]: any;
118
+ width?: number | undefined;
119
+ height?: number | undefined;
120
+ fillSvg?: string | undefined;
121
+ fill?: string | undefined;
122
+ }) => import("react/jsx-runtime").JSX.Element;
123
+ errorOutline: ({ width, height, color, ...rest }: {
124
+ [x: string]: any;
125
+ width?: number | undefined;
126
+ height?: number | undefined;
127
+ color?: string | undefined;
128
+ }) => import("react/jsx-runtime").JSX.Element;
129
+ starOutlined: ({ width, height, fillSvg, fill, }: {
130
+ width?: number | undefined;
131
+ height?: number | undefined;
132
+ fillSvg?: string | undefined;
133
+ fill?: string | undefined;
134
+ }) => import("react/jsx-runtime").JSX.Element;
135
+ minus: ({ width, height, fillSvg, fill, ...rest }: {
136
+ [x: string]: any;
137
+ width?: number | undefined;
138
+ height?: number | undefined;
139
+ fillSvg?: string | undefined;
140
+ fill?: string | undefined;
141
+ }) => import("react/jsx-runtime").JSX.Element;
142
+ plus: ({ width, height, fillSvg, fill, ...rest }: {
143
+ [x: string]: any;
144
+ width?: number | undefined;
145
+ height?: number | undefined;
146
+ fillSvg?: string | undefined;
147
+ fill?: string | undefined;
148
+ }) => import("react/jsx-runtime").JSX.Element;
75
149
  };
150
+ export declare const COMPONENT_NAME = "Icon";
@@ -1,23 +1,23 @@
1
+ export * from './Breadcrumbs';
1
2
  export * from './Button';
2
- export * from './Typography';
3
+ export * from './Dropdown';
4
+ export * from './DropdownItem';
5
+ export * from './Form';
6
+ export * from './Icon';
7
+ export * from './Image';
3
8
  export * from './Input';
4
- export { Textarea } from './Textarea';
5
9
  export * from './Label';
6
- export * from './Loader';
7
- export * from './Form';
8
- export * from './Wrapper';
9
10
  export * from './Link';
11
+ export * from './List';
12
+ export * from './Loader';
13
+ export * from './Modal';
10
14
  export * from './Portal';
15
+ export * from './Select';
16
+ export * from './Skeleton';
17
+ export * from './Snackbar';
11
18
  export * from './Switch';
12
19
  export * from './Tooltip';
13
- export * from './Modal';
14
- export * from './Snackbar';
15
- export * from './Icon';
16
- export * from './Skeleton';
17
- export * from './List';
18
- export * from './Dropdown';
19
- export * from './DropdownItem';
20
- export * from './Select';
21
- export * from './Breadcrumbs';
22
- export * from './Image';
20
+ export * from './Typography';
21
+ export * from './Wrapper';
23
22
  export * from './types/index.types';
23
+ export { Textarea } from './Textarea';
@@ -0,0 +1,3 @@
1
+ import { CounterProps } from './Counter.types';
2
+ declare const Counter: import('react').ForwardRefExoticComponent<CounterProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default Counter;
@@ -0,0 +1,9 @@
1
+ import { CommonComponentProps, CommonStyledComponentProps } from '../..';
2
+ export interface CounterProps extends CommonComponentProps {
3
+ min?: number;
4
+ max?: number;
5
+ initial?: number;
6
+ inputDebounceMs?: number;
7
+ onCounterChange?: (qty: number) => void;
8
+ }
9
+ export type CounterStyledProps = CommonStyledComponentProps;
@@ -0,0 +1,13 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const StyledCounter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PropsWithChildren<import('../..').CommonStyledComponentProps>>> & string;
3
+ export declare const StylesNavButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<Omit<import('../..').ButtonProps & {
4
+ children?: import('react').ReactNode | undefined;
5
+ } & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
6
+ ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
7
+ }, Omit<import('../..').ButtonProps & {
8
+ children?: import('react').ReactNode | undefined;
9
+ } & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
10
+ ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
11
+ }>, never>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('../..').ButtonProps & {
12
+ children?: import('react').ReactNode | undefined;
13
+ } & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,5 @@
1
+ export declare const COMPONENT_NAME = "Counter";
2
+ export declare const INITIAL_QTY = 1;
3
+ export declare const MAX_INITIAL_QTY: number;
4
+ export declare const MIN_INITIAL_QTY = 1;
5
+ export declare const REGEX_NUMBER: RegExp;
@@ -0,0 +1,2 @@
1
+ export * from './Counter';
2
+ export * from './Counter.types';
@@ -1,7 +1,8 @@
1
+ export * from './Counter';
1
2
  export * from './Header';
2
- export * from './Tabs';
3
- export * from './Stepper';
4
3
  export * from './Price';
5
4
  export * from './Rating';
6
5
  export * from './Search';
6
+ export * from './Stepper';
7
+ export * from './Tabs';
7
8
  export * from './Templates';
@@ -1,4 +1,4 @@
1
1
  import { AlignType, JustifyType } from '../index.types';
2
- export declare const calculateAlign: (align: AlignType) => "flex-start" | "center" | "flex-end" | "stretch";
3
- export declare const calculateJustify: (justify: JustifyType) => "flex-start" | "center" | "flex-end" | "space-between" | "space-around";
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;