gd-design-library 0.0.1 → 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.
Files changed (148) hide show
  1. package/README.md +4 -4
  2. package/assets/icons/account_circle.d.ts +7 -0
  3. package/assets/icons/arrow-down.d.ts +6 -0
  4. package/assets/icons/arrow-forward.d.ts +2 -1
  5. package/assets/icons/check.d.ts +2 -1
  6. package/assets/icons/chevron-right.d.ts +2 -1
  7. package/assets/icons/cross.d.ts +2 -1
  8. package/assets/icons/dot.d.ts +2 -1
  9. package/assets/icons/error_outline.d.ts +6 -0
  10. package/assets/icons/favorite.d.ts +7 -0
  11. package/assets/icons/home.d.ts +2 -1
  12. package/assets/icons/local_shipping.d.ts +7 -0
  13. package/assets/icons/mobile_menu_button.d.ts +7 -0
  14. package/assets/icons/shopping_bag.d.ts +7 -0
  15. package/assets/icons/slash.d.ts +2 -1
  16. package/assets/icons/star.d.ts +3 -1
  17. package/assets/icons/starOutlined.d.ts +6 -0
  18. package/assets/icons/toast_error.d.ts +2 -1
  19. package/assets/icons/toast_info.d.ts +2 -1
  20. package/assets/icons/toast_success.d.ts +2 -1
  21. package/assets/icons/toast_warning.d.ts +2 -1
  22. package/assets/index.d.ts +11 -83
  23. package/components/core/Dropdown/Dropdown.d.ts +4 -0
  24. package/components/core/Dropdown/Dropdown.types.d.ts +12 -0
  25. package/components/core/Dropdown/StyledDropdown.d.ts +2 -0
  26. package/components/core/Dropdown/constants.d.ts +1 -0
  27. package/components/core/Dropdown/hooks/index.d.ts +1 -0
  28. package/components/core/Dropdown/hooks/useDropdown.d.ts +3 -0
  29. package/components/core/Dropdown/index.d.ts +2 -0
  30. package/components/core/DropdownItem/DropdownItem.d.ts +4 -0
  31. package/components/core/DropdownItem/DropdownItem.types.d.ts +15 -0
  32. package/components/core/DropdownItem/StyledDropdownItem.d.ts +2 -0
  33. package/components/core/DropdownItem/constants.d.ts +1 -0
  34. package/components/core/DropdownItem/index.d.ts +2 -0
  35. package/components/core/Form/Form.d.ts +1 -1
  36. package/components/core/Form/utils.d.ts +1 -1
  37. package/components/core/Icon/Icon.d.ts +1 -4
  38. package/components/core/Icon/Icon.types.d.ts +1 -2
  39. package/components/core/Icon/constants.d.ts +74 -0
  40. package/components/core/Image/Image.d.ts +3 -0
  41. package/components/core/Image/Image.types.d.ts +27 -0
  42. package/components/core/Image/StyledImage.d.ts +5 -0
  43. package/components/core/Image/constants.d.ts +1 -0
  44. package/components/core/Image/index.d.ts +2 -0
  45. package/components/core/Input/Input.d.ts +1 -1
  46. package/components/core/Input/Input.types.d.ts +2 -1
  47. package/components/core/Input/StyledInput.d.ts +1 -1
  48. package/components/core/Label/Label.d.ts +1 -1
  49. package/components/core/Label/StyledLabel.d.ts +1 -1
  50. package/components/core/Link/Link.types.d.ts +1 -0
  51. package/components/core/List/StyledList.d.ts +1 -1
  52. package/components/core/Loader/StyledLoader.d.ts +1 -1
  53. package/components/core/Portal/Portal.d.ts +4 -3
  54. package/components/core/Select/Select.d.ts +5 -0
  55. package/components/core/Select/Select.types.d.ts +45 -0
  56. package/components/core/Select/StyledSelect.d.ts +24 -0
  57. package/components/core/Select/constants.d.ts +1 -0
  58. package/components/core/Select/hooks/index.d.ts +1 -0
  59. package/components/core/Select/hooks/useSelectContext.d.ts +3 -0
  60. package/components/core/Select/index.d.ts +2 -0
  61. package/components/core/Skeleton/StyledSkeleton.d.ts +1 -1
  62. package/components/core/Snackbar/Snackbar.d.ts +1 -1
  63. package/components/core/Switch/StyledSwitch.d.ts +1 -1
  64. package/components/core/Switch/Switch.d.ts +2 -2
  65. package/components/core/Switch/{types.d.ts → Switch.types.d.ts} +2 -2
  66. package/components/core/Switch/index.d.ts +1 -1
  67. package/components/core/Textarea/Textarea.d.ts +0 -1
  68. package/components/core/Tooltip/StyledTooltip.d.ts +1 -1
  69. package/components/core/Tooltip/Tooltip.d.ts +1 -1
  70. package/components/core/Tooltip/Tooltip.types.d.ts +1 -0
  71. package/components/core/Typography/Typography.d.ts +3 -2
  72. package/components/core/Typography/Typography.types.d.ts +2 -1
  73. package/components/core/Typography/utils.d.ts +1 -1
  74. package/components/core/Wrapper/StyledWrapper.d.ts +1 -1
  75. package/components/core/Wrapper/Wrapper.d.ts +1 -1
  76. package/components/core/index.d.ts +4 -0
  77. package/components/core/types/events.types.d.ts +6 -0
  78. package/components/domainSpecific/Header/Header.d.ts +4 -0
  79. package/components/domainSpecific/Header/Header.types.d.ts +23 -0
  80. package/components/domainSpecific/Header/StyledHeader.d.ts +123 -0
  81. package/components/domainSpecific/Header/constants.d.ts +1 -0
  82. package/components/domainSpecific/Header/index.d.ts +2 -0
  83. package/components/domainSpecific/Price/Price.d.ts +5 -0
  84. package/components/domainSpecific/Price/Price.types.d.ts +11 -0
  85. package/components/domainSpecific/Price/StyledPrice.d.ts +9 -0
  86. package/components/domainSpecific/Price/constants.d.ts +1 -0
  87. package/components/domainSpecific/Price/index.d.ts +1 -0
  88. package/components/domainSpecific/Rating/Rating.d.ts +2 -0
  89. package/components/domainSpecific/Rating/Rating.types.d.ts +19 -0
  90. package/components/domainSpecific/Rating/StyledRating.d.ts +5 -0
  91. package/components/domainSpecific/Rating/constants.d.ts +6 -0
  92. package/components/domainSpecific/Rating/index.d.ts +2 -0
  93. package/components/domainSpecific/Search/Search.d.ts +4 -0
  94. package/components/domainSpecific/Search/Search.types.d.ts +24 -0
  95. package/components/domainSpecific/Search/StyledSearch.d.ts +29 -0
  96. package/components/domainSpecific/Search/constants.d.ts +6 -0
  97. package/components/domainSpecific/Search/index.d.ts +2 -0
  98. package/components/domainSpecific/Search/renderers.d.ts +4 -0
  99. package/components/domainSpecific/Tabs/StyledTabs.d.ts +14 -0
  100. package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.d.ts +4 -0
  101. package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/SkeletonSearch.types.d.ts +5 -0
  102. package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/StyledSkeletonSearch.d.ts +82 -0
  103. package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/constants.d.ts +2 -0
  104. package/components/domainSpecific/Templates/Cards/Skeleton/SkeletonSearch/index.d.ts +2 -0
  105. package/components/domainSpecific/Templates/Cards/Skeleton/index.d.ts +1 -0
  106. package/components/domainSpecific/Templates/Cards/index.d.ts +1 -0
  107. package/components/domainSpecific/Templates/index.d.ts +1 -0
  108. package/components/domainSpecific/index.d.ts +5 -0
  109. package/components/layout/FlexContainer/FlexContainer.types.d.ts +4 -1
  110. package/components/layout/index.types.d.ts +6 -0
  111. package/constants/events.d.ts +5 -0
  112. package/constants/index.d.ts +1 -0
  113. package/constants/keyboard.d.ts +3 -0
  114. package/hooks/index.d.ts +3 -0
  115. package/hooks/useClickOutside/index.d.ts +1 -0
  116. package/hooks/useClickOutside/useClickOutside.d.ts +1 -0
  117. package/hooks/useMediaQuery/index.d.ts +1 -0
  118. package/hooks/useMediaQuery/useMediaQuery.d.ts +1 -0
  119. package/hooks/useTheme/useTheme.d.ts +1 -1
  120. package/index.mjs +6168 -4909
  121. package/package.json +10 -3
  122. package/tokens/borders.d.ts +2 -2
  123. package/tokens/button.d.ts +6 -3
  124. package/tokens/defaultTheme.d.ts +463 -12
  125. package/tokens/flexContainer.d.ts +1 -0
  126. package/tokens/header.d.ts +108 -0
  127. package/tokens/image.d.ts +32 -0
  128. package/tokens/index.d.ts +405 -12
  129. package/tokens/input.d.ts +9 -1
  130. package/tokens/label.d.ts +4 -0
  131. package/tokens/link.d.ts +16 -0
  132. package/tokens/list.d.ts +10 -0
  133. package/tokens/modal.d.ts +6 -1
  134. package/tokens/price.d.ts +19 -0
  135. package/tokens/rating.d.ts +57 -0
  136. package/tokens/search.d.ts +37 -0
  137. package/tokens/select.d.ts +53 -0
  138. package/tokens/shadow.d.ts +4 -0
  139. package/tokens/skeleton.d.ts +44 -0
  140. package/tokens/snackbar.d.ts +20 -6
  141. package/tokens/stepper.d.ts +32 -0
  142. package/tokens/tabs.d.ts +4 -0
  143. package/tokens/tooltip.d.ts +4 -0
  144. package/tokens/utils.d.ts +2 -2
  145. package/tokens/values.d.ts +4 -1
  146. package/utils/index.d.ts +1 -0
  147. package/utils/math.d.ts +6 -0
  148. package/index.js +0 -124
package/README.md CHANGED
@@ -113,7 +113,7 @@ Clone the repository and install the dependencies:
113
113
  ```sh
114
114
  git clone https://github.com/griddynamics/cto-rnd-system-design.git
115
115
  cd gd-design-system
116
- npm install
116
+ yarn install
117
117
  ```
118
118
 
119
119
  ### Development
@@ -121,7 +121,7 @@ npm install
121
121
  To start the development server, run:
122
122
 
123
123
  ```sh
124
- npm run dev
124
+ yarn run dev
125
125
  ```
126
126
 
127
127
  This will start the Vite development server and open the project in your default web browser.
@@ -131,7 +131,7 @@ This will start the Vite development server and open the project in your default
131
131
  To build the project for production, run:
132
132
 
133
133
  ```sh
134
- npm run build
134
+ yarn run build
135
135
  ```
136
136
 
137
137
  The output will be generated in the dist directory.
@@ -141,7 +141,7 @@ The output will be generated in the dist directory.
141
141
  To lint the project, run:
142
142
 
143
143
  ```sh
144
- npm run lint
144
+ yarn run lint
145
145
  ```
146
146
 
147
147
  ### Code Formatting with Prettier
@@ -0,0 +1,7 @@
1
+ export declare const AccountCircleIcon: ({ 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,6 @@
1
+ export declare const ArrowDownIcon: ({ width, height, fillSvg, fill, }: {
2
+ width?: number | undefined;
3
+ height?: number | undefined;
4
+ fillSvg?: string | undefined;
5
+ fill?: string | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- export declare const ArrowForwardIcon: ({ width, height, fillSvg, fill, }: {
1
+ export declare const ArrowForwardIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const CheckIcon: ({ width, height, fillSvg, fill, }: {
1
+ export declare const CheckIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const ChevronRightIcon: ({ width, height, fillSvg, fill, }: {
1
+ export declare const ChevronRightIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const CrossIcon: ({ width, height, fillSvg, fill, }: {
1
+ export declare const CrossIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const DotIcon: ({ width, height, fillSvg, fill }: {
1
+ export declare const DotIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -0,0 +1,6 @@
1
+ export declare const ErrorOutlineIcon: ({ width, height, color, ...rest }: {
2
+ [x: string]: any;
3
+ width?: number | undefined;
4
+ height?: number | undefined;
5
+ color?: string | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export declare const FavoriteIcon: ({ 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;
@@ -1,4 +1,5 @@
1
- export declare const HomeIcon: ({ width, height, fillSvg, fill }: {
1
+ export declare const HomeIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -0,0 +1,7 @@
1
+ export declare const LocalShippingIcon: ({ 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 MobileMenuIcon: ({ 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 ShoppingBagIcon: ({ 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;
@@ -1,4 +1,5 @@
1
- export declare const SlashIcon: ({ width, height, fillSvg, fill, }: {
1
+ export declare const SlashIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  fillSvg?: string | undefined;
@@ -1,5 +1,7 @@
1
- export declare const StarIcon: ({ width, height, fill }: {
1
+ export declare const StarIcon: ({ width, height, fillSvg, fill, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
5
+ fillSvg?: string | undefined;
4
6
  fill?: string | undefined;
5
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const StarOutlinedIcon: ({ width, height, fillSvg, fill, }: {
2
+ width?: number | undefined;
3
+ height?: number | undefined;
4
+ fillSvg?: string | undefined;
5
+ fill?: string | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- export declare const ToastErrorIcon: ({ width, height, color }: {
1
+ export declare const ToastErrorIcon: ({ width, height, color, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const ToastInfoIcon: ({ width, height, color }: {
1
+ export declare const ToastInfoIcon: ({ width, height, color, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const ToastSuccessIcon: ({ width, height, color }: {
1
+ export declare const ToastSuccessIcon: ({ width, height, color, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
- export declare const ToastWarningIcon: ({ width, height, color }: {
1
+ export declare const ToastWarningIcon: ({ width, height, color, ...rest }: {
2
+ [x: string]: any;
2
3
  width?: number | undefined;
3
4
  height?: number | undefined;
4
5
  color?: string | undefined;
package/assets/index.d.ts CHANGED
@@ -1,83 +1,11 @@
1
- import { StarIcon } from './icons/star';
2
- import { CrossIcon } from './icons/cross';
3
- import { ToastSuccessIcon } from './icons/toast_success';
4
- import { ToastWarningIcon } from './icons/toast_warning';
5
- import { ToastErrorIcon } from './icons/toast_error';
6
- import { ToastInfoIcon } from './icons/toast_info';
7
- import { DotIcon } from './icons/dot';
8
- import { CheckIcon } from './icons/check';
9
- import { HomeIcon } from './icons/home';
10
- import { ChevronRightIcon } from './icons/chevron-right';
11
- import { SlashIcon } from './icons/slash';
12
- import { ArrowForwardIcon } from './icons/arrow-forward';
13
- export { StarIcon, CrossIcon, ToastSuccessIcon, ToastWarningIcon, ToastErrorIcon, ToastInfoIcon, DotIcon, CheckIcon, HomeIcon, ChevronRightIcon, SlashIcon, ArrowForwardIcon, };
14
- declare const _default: {
15
- cross: ({ width, height, fillSvg, fill, }: {
16
- width?: number | undefined;
17
- height?: number | undefined;
18
- fillSvg?: string | undefined;
19
- fill?: string | undefined;
20
- }) => import("react/jsx-runtime").JSX.Element;
21
- success: ({ width, height, color }: {
22
- width?: number | undefined;
23
- height?: number | undefined;
24
- color?: string | undefined;
25
- }) => import("react/jsx-runtime").JSX.Element;
26
- star: ({ width, height, fill }: {
27
- width?: number | undefined;
28
- height?: number | undefined;
29
- fill?: string | undefined;
30
- }) => import("react/jsx-runtime").JSX.Element;
31
- error: ({ width, height, color }: {
32
- width?: number | undefined;
33
- height?: number | undefined;
34
- color?: string | undefined;
35
- }) => import("react/jsx-runtime").JSX.Element;
36
- warning: ({ width, height, color }: {
37
- width?: number | undefined;
38
- height?: number | undefined;
39
- color?: string | undefined;
40
- }) => import("react/jsx-runtime").JSX.Element;
41
- info: ({ width, height, color }: {
42
- width?: number | undefined;
43
- height?: number | undefined;
44
- color?: string | undefined;
45
- }) => import("react/jsx-runtime").JSX.Element;
46
- dot: ({ width, height, fillSvg, fill }: {
47
- width?: number | undefined;
48
- height?: number | undefined;
49
- fillSvg?: string | undefined;
50
- fill?: string | undefined;
51
- }) => import("react/jsx-runtime").JSX.Element;
52
- check: ({ width, height, fillSvg, fill, }: {
53
- width?: number | undefined;
54
- height?: number | undefined;
55
- fillSvg?: string | undefined;
56
- fill?: string | undefined;
57
- }) => import("react/jsx-runtime").JSX.Element;
58
- home: ({ width, height, fillSvg, fill }: {
59
- width?: number | undefined;
60
- height?: number | undefined;
61
- fillSvg?: string | undefined;
62
- fill?: string | undefined;
63
- }) => import("react/jsx-runtime").JSX.Element;
64
- chevronRight: ({ width, height, fillSvg, fill, }: {
65
- width?: number | undefined;
66
- height?: number | undefined;
67
- fillSvg?: string | undefined;
68
- fill?: string | undefined;
69
- }) => import("react/jsx-runtime").JSX.Element;
70
- slash: ({ width, height, fillSvg, fill, }: {
71
- width?: number | undefined;
72
- height?: number | undefined;
73
- fillSvg?: string | undefined;
74
- fill?: string | undefined;
75
- }) => import("react/jsx-runtime").JSX.Element;
76
- arrowForward: ({ width, height, fillSvg, fill, }: {
77
- width?: number | undefined;
78
- height?: number | undefined;
79
- fillSvg?: string | undefined;
80
- fill?: string | undefined;
81
- }) => import("react/jsx-runtime").JSX.Element;
82
- };
83
- export default _default;
1
+ export { StarIcon } from './icons/star';
2
+ export { CrossIcon } from './icons/cross';
3
+ export { ToastSuccessIcon } from './icons/toast_success';
4
+ export { ToastWarningIcon } from './icons/toast_warning';
5
+ export { ToastErrorIcon } from './icons/toast_error';
6
+ export { ToastInfoIcon } from './icons/toast_info';
7
+ export { DotIcon } from './icons/dot';
8
+ export { CheckIcon } from './icons/check';
9
+ export { ArrowDownIcon } from './icons/arrow-down';
10
+ export { ChevronRightIcon } from './icons/chevron-right';
11
+ export { MobileMenuIcon } from './icons/mobile_menu_button';
@@ -0,0 +1,4 @@
1
+ import { DropdownProps } from './Dropdown.types';
2
+ export declare const Dropdown: import('react').ForwardRefExoticComponent<DropdownProps & {
3
+ children?: import('react').ReactNode | undefined;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import { Theme } from '../../../hooks/useTheme';
2
+ import { OnSelectProps } from '../types/events.types';
3
+ export interface DropdownProps {
4
+ theme?: Theme;
5
+ onSelect?: (props: OnSelectProps) => void;
6
+ }
7
+ export interface StyledDropdownProps extends DropdownProps {
8
+ $width?: string;
9
+ }
10
+ export interface DropdownContextType {
11
+ onSelect?: (props: OnSelectProps) => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import { StyledDropdownProps } from './Dropdown.types';
2
+ export declare const StyledDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDropdownProps>> & string;
@@ -0,0 +1 @@
1
+ export declare const COMPONENT_NAME = "Dropdown";
@@ -0,0 +1 @@
1
+ export * from './useDropdown';
@@ -0,0 +1,3 @@
1
+ import { DropdownContextType } from '../Dropdown.types';
2
+ export declare const DropdownContext: import('react').Context<DropdownContextType | undefined>;
3
+ export declare const useDropdownContext: () => DropdownContextType;
@@ -0,0 +1,2 @@
1
+ export * from './Dropdown';
2
+ export * from './Dropdown.types';
@@ -0,0 +1,4 @@
1
+ import { DropdownItemProps } from './DropdownItem.types';
2
+ export declare const DropdownItem: import('react').ForwardRefExoticComponent<DropdownItemProps<unknown> & {
3
+ children?: import('react').ReactNode | undefined;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,15 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ import { Theme } from '../../../hooks/useTheme';
3
+ import { OnSelectProps } from '../types/events.types';
4
+ export interface DropdownItemProps<T> extends PropsWithChildren {
5
+ onSelect?: (props: OnSelectProps) => T;
6
+ children: ReactNode;
7
+ value?: unknown;
8
+ itemIndex?: number;
9
+ name?: string;
10
+ customClass?: string;
11
+ theme?: Theme;
12
+ }
13
+ export interface StyledDropdownItemProps {
14
+ theme?: Theme;
15
+ }
@@ -0,0 +1,2 @@
1
+ import { StyledDropdownItemProps } from './DropdownItem.types';
2
+ export declare const StyledDropdownItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDropdownItemProps>> & string;
@@ -0,0 +1 @@
1
+ export declare const COMPONENT_NAME = "DropdownItem";
@@ -0,0 +1,2 @@
1
+ export * from './DropdownItem';
2
+ export * from './DropdownItem.types';
@@ -1,4 +1,4 @@
1
- import { FormProps } from '.';
1
+ import { FormProps } from './Form.types';
2
2
  declare const Form: import('react').ForwardRefExoticComponent<FormProps & {
3
3
  children?: import('react').ReactNode | undefined;
4
4
  } & import('react').RefAttributes<HTMLFormElement>>;
@@ -1,3 +1,3 @@
1
- import { FormFieldsData } from './';
1
+ import { FormFieldsData } from './Form.types';
2
2
  export declare const transformFormDataToObjectWithValues: (targetForm?: HTMLFormElement) => FormFieldsData;
3
3
  export declare const transformFormElementDataToObjectWithValues: (targetElement: EventTarget, output?: FormFieldsData) => FormFieldsData;
@@ -1,5 +1,2 @@
1
1
  import { IconProps } from './Icon.types';
2
- export declare const Icon: {
3
- (props: IconProps): import("react/jsx-runtime").JSX.Element | null;
4
- displayName: string;
5
- };
2
+ export declare const Icon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<SVGElement>>;
@@ -1,6 +1,5 @@
1
- import { default as IconsList } from '../../../assets';
2
1
  export interface IconProps {
3
- name: keyof typeof IconsList;
2
+ name: string;
4
3
  width?: number;
5
4
  height?: number;
6
5
  fill?: string;
@@ -1 +1,75 @@
1
1
  export declare const COMPONENT_NAME = "CustomIcon";
2
+ export declare const IconsList: {
3
+ cross: ({ width, height, fillSvg, fill, ...rest }: {
4
+ [x: string]: any;
5
+ width?: number | undefined;
6
+ height?: number | undefined;
7
+ fillSvg?: string | undefined;
8
+ fill?: string | undefined;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ success: ({ width, height, color, ...rest }: {
11
+ [x: string]: any;
12
+ width?: number | undefined;
13
+ height?: number | undefined;
14
+ color?: string | undefined;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ star: ({ width, height, fillSvg, fill, ...rest }: {
17
+ [x: string]: any;
18
+ width?: number | undefined;
19
+ height?: number | undefined;
20
+ fillSvg?: string | undefined;
21
+ fill?: string | undefined;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ error: ({ width, height, color, ...rest }: {
24
+ [x: string]: any;
25
+ width?: number | undefined;
26
+ height?: number | undefined;
27
+ color?: string | undefined;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ warning: ({ width, height, color, ...rest }: {
30
+ [x: string]: any;
31
+ width?: number | undefined;
32
+ height?: number | undefined;
33
+ color?: string | undefined;
34
+ }) => import("react/jsx-runtime").JSX.Element;
35
+ info: ({ width, height, color, ...rest }: {
36
+ [x: string]: any;
37
+ width?: number | undefined;
38
+ height?: number | undefined;
39
+ color?: string | undefined;
40
+ }) => import("react/jsx-runtime").JSX.Element;
41
+ dot: ({ width, height, fillSvg, fill, ...rest }: {
42
+ [x: string]: any;
43
+ width?: number | undefined;
44
+ height?: number | undefined;
45
+ fillSvg?: string | undefined;
46
+ fill?: string | undefined;
47
+ }) => import("react/jsx-runtime").JSX.Element;
48
+ check: ({ width, height, fillSvg, fill, ...rest }: {
49
+ [x: string]: any;
50
+ width?: number | undefined;
51
+ height?: number | undefined;
52
+ fillSvg?: string | undefined;
53
+ fill?: string | undefined;
54
+ }) => import("react/jsx-runtime").JSX.Element;
55
+ arrowDown: ({ width, height, fillSvg, fill, }: {
56
+ width?: number | undefined;
57
+ height?: number | undefined;
58
+ fillSvg?: string | undefined;
59
+ fill?: string | undefined;
60
+ }) => import("react/jsx-runtime").JSX.Element;
61
+ arrowRight: ({ width, height, fillSvg, fill, ...rest }: {
62
+ [x: string]: any;
63
+ width?: number | undefined;
64
+ height?: number | undefined;
65
+ fillSvg?: string | undefined;
66
+ fill?: string | undefined;
67
+ }) => import("react/jsx-runtime").JSX.Element;
68
+ mobileMenu: ({ width, height, fillSvg, fill, ...rest }: {
69
+ [x: string]: any;
70
+ width?: number | undefined;
71
+ height?: number | undefined;
72
+ fillSvg?: string | undefined;
73
+ fill?: string | undefined;
74
+ }) => import("react/jsx-runtime").JSX.Element;
75
+ };
@@ -0,0 +1,3 @@
1
+ import { ImageProps } from './Image.types';
2
+ declare const Image: ({ id, src, alt, width, height, className, placeholder, caption, onClick, objectFit, styles, }: ImageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Image;
@@ -0,0 +1,27 @@
1
+ import { CommonComponentProps } from '../..';
2
+ import { Theme } from '../../../hooks/useTheme';
3
+ export interface ImageProps extends CommonComponentProps {
4
+ id?: string;
5
+ src?: string;
6
+ alt?: string;
7
+ width?: number;
8
+ height?: number;
9
+ className?: string;
10
+ placeholder?: string;
11
+ caption?: string;
12
+ onClick?: () => void;
13
+ objectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
14
+ }
15
+ export interface StyledImageWrapperProps extends Pick<ImageProps, 'width' | 'height' | 'id' | 'className'> {
16
+ theme: Theme;
17
+ }
18
+ export interface StyledImageProps extends Pick<ImageProps, 'objectFit'> {
19
+ theme: Theme;
20
+ isLoading: boolean;
21
+ }
22
+ export interface StyledImagePlaceholderProps {
23
+ theme: Theme;
24
+ }
25
+ export interface StyledImageCaptionProps {
26
+ theme: Theme;
27
+ }
@@ -0,0 +1,5 @@
1
+ import { StyledImageCaptionProps, StyledImagePlaceholderProps, StyledImageProps, StyledImageWrapperProps } from './Image.types';
2
+ export declare const StyledImageWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledImageWrapperProps>> & string;
3
+ export declare const StyledImage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, StyledImageProps>> & string;
4
+ export declare const Placeholder: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledImagePlaceholderProps>> & string;
5
+ export declare const Caption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, StyledImageCaptionProps>> & string;
@@ -0,0 +1 @@
1
+ export declare const COMPONENT_NAME = "Image";
@@ -0,0 +1,2 @@
1
+ export { default as Image } from './Image';
2
+ export * from './Image.types';
@@ -1,3 +1,3 @@
1
- import { InputFieldProps } from './';
1
+ import { InputFieldProps } from './Input.types';
2
2
  declare const Input: import('react').ForwardRefExoticComponent<InputFieldProps & import('react').RefAttributes<HTMLInputElement>>;
3
3
  export default Input;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, FocusEvent, MouseEvent } from 'react';
1
+ import { ChangeEvent, FocusEvent, MouseEvent, KeyboardEvent } from 'react';
2
2
  import { CommonCoreComponentProps, CommonCoreStyledComponentProps } from '../..';
3
3
  import { EnumOrPrimitive } from '../../../types';
4
4
  export declare enum InputVariantType {
@@ -43,6 +43,7 @@ export interface BaseInputFieldProps extends CommonCoreComponentProps<InputVaria
43
43
  defaultValue?: string | number;
44
44
  onClick?: (event: MouseEvent<HTMLInputElement>) => void;
45
45
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
46
+ onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
46
47
  onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
47
48
  onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
48
49
  disabled?: boolean;
@@ -1,3 +1,3 @@
1
- import { StyledInputProps } from '.';
1
+ import { StyledInputProps } from './Input.types';
2
2
  declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputProps>> & string;
3
3
  export default StyledInput;
@@ -1,4 +1,4 @@
1
- import { LabelProps } from './';
1
+ import { LabelProps } from './Label.types';
2
2
  declare const Label: import('react').ForwardRefExoticComponent<LabelProps & {
3
3
  children?: import('react').ReactNode | undefined;
4
4
  } & import('react').RefAttributes<HTMLLabelElement>>;
@@ -1,2 +1,2 @@
1
- import { StyledLabelProps } from './';
1
+ import { StyledLabelProps } from './Label.types';
2
2
  export declare const StyledLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, StyledLabelProps>> & string;
@@ -4,6 +4,7 @@ import { TabIndex, EnumOrPrimitive } from '../../../types';
4
4
  export declare enum LinkVariant {
5
5
  Primary = "primary",
6
6
  Secondary = "secondary",
7
+ Inverted = "inverted",
7
8
  Inherit = "inherit"
8
9
  }
9
10
  export declare enum LinkTarget {
@@ -1,3 +1,3 @@
1
- import { StyledListProps } from '.';
1
+ import { StyledListProps } from './List.types';
2
2
  export declare const StyledListWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, StyledListProps>> & string;
3
3
  export declare const StyledListItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, StyledListProps>> & string;
@@ -1,2 +1,2 @@
1
- import { LoaderStyledProps } from '.';
1
+ import { LoaderStyledProps } from './Loader.types';
2
2
  export declare const StyledLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LoaderStyledProps>> & string;
@@ -1,4 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PortalProps } from '.';
3
- declare const Portal: (props: PropsWithChildren<PortalProps>) => import('react').ReactPortal;
1
+ import { PortalProps } from './Portal.types';
2
+ declare const Portal: import('react').ForwardRefExoticComponent<PortalProps & {
3
+ children?: import('react').ReactNode | undefined;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
4
5
  export default Portal;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'react';
2
+ import { SelectProps, SelectRef } from '../..';
3
+ export declare const Select: <T extends HTMLElement = HTMLDivElement>(props: SelectProps<T> & {
4
+ ref?: Ref<SelectRef>;
5
+ }) => JSX.Element;