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.
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/tokens/link.d.ts CHANGED
@@ -58,6 +58,22 @@ export declare const link: {
58
58
  };
59
59
  };
60
60
  };
61
+ inverted: {
62
+ '&::after': {
63
+ content: string;
64
+ position: string;
65
+ right: string;
66
+ bottom: string;
67
+ left: string;
68
+ borderBottom: string;
69
+ };
70
+ '&:hover': {
71
+ backgroundColor: string;
72
+ '&::after': {
73
+ borderBottomColor: string;
74
+ };
75
+ };
76
+ };
61
77
  inherit: {
62
78
  color: string;
63
79
  };
package/tokens/list.d.ts CHANGED
@@ -73,4 +73,14 @@ export declare const list: {
73
73
  };
74
74
  };
75
75
  };
76
+ icons: {
77
+ bulletDot: {
78
+ name: string;
79
+ width: number;
80
+ height: number;
81
+ };
82
+ bulletCheck: {
83
+ name: string;
84
+ };
85
+ };
76
86
  };
package/tokens/modal.d.ts CHANGED
@@ -40,7 +40,7 @@ export declare const modal: {
40
40
  };
41
41
  closeButton: {
42
42
  background: string;
43
- border: string;
43
+ border: number;
44
44
  cursor: string;
45
45
  padding: string;
46
46
  };
@@ -56,4 +56,9 @@ export declare const modal: {
56
56
  justifyContent: string;
57
57
  zIndex: number;
58
58
  };
59
+ icons: {
60
+ close: {
61
+ name: string;
62
+ };
63
+ };
59
64
  };
@@ -0,0 +1,19 @@
1
+ export declare const price: {
2
+ default: {
3
+ display: string;
4
+ alignItems: string;
5
+ gap: string;
6
+ };
7
+ currentPrice: {
8
+ fontSize: string;
9
+ fontWeight: number;
10
+ lineHeight: string;
11
+ color: string;
12
+ };
13
+ oldPrice: {
14
+ fontSize: string;
15
+ fontWeight: number;
16
+ lineHeight: string;
17
+ color: string;
18
+ };
19
+ };
@@ -0,0 +1,57 @@
1
+ export declare const rating: {
2
+ default: {
3
+ display: string;
4
+ gap: number;
5
+ position: string;
6
+ overflow: string;
7
+ };
8
+ progress: {
9
+ position: string;
10
+ display: string;
11
+ overflow: string;
12
+ left: number;
13
+ svg: {
14
+ flexShrink: number;
15
+ flexGrow: number;
16
+ };
17
+ };
18
+ radioInput: {
19
+ display: string;
20
+ };
21
+ label: {
22
+ default: {
23
+ cursor: string;
24
+ };
25
+ active: {
26
+ '&:hover': {
27
+ transform: string;
28
+ transition: string;
29
+ };
30
+ };
31
+ readOnly: {
32
+ cursor: string;
33
+ };
34
+ };
35
+ size: {
36
+ sm: {
37
+ width: number;
38
+ height: number;
39
+ };
40
+ md: {
41
+ width: number;
42
+ height: number;
43
+ };
44
+ lg: {
45
+ width: number;
46
+ height: number;
47
+ };
48
+ };
49
+ icons: {
50
+ rateActive: {
51
+ name: string;
52
+ };
53
+ rateInactive: {
54
+ name: string;
55
+ };
56
+ };
57
+ };
@@ -0,0 +1,37 @@
1
+ export declare const search: {
2
+ base: {};
3
+ input: {
4
+ width: string;
5
+ boxSizing: "border-box";
6
+ };
7
+ dropdownHeader: {
8
+ row: {};
9
+ link: {
10
+ base: {};
11
+ typography: {};
12
+ };
13
+ icon: {};
14
+ };
15
+ renderer: {
16
+ row: {
17
+ width: string;
18
+ padding: string;
19
+ };
20
+ link: {
21
+ display: string;
22
+ alignItems: string;
23
+ '&:after': {
24
+ borderBottom: string;
25
+ };
26
+ '& svg': {
27
+ marginLeft: string;
28
+ };
29
+ };
30
+ linkIcon: {
31
+ fill: string;
32
+ name: string;
33
+ width: number;
34
+ height: number;
35
+ };
36
+ };
37
+ };
@@ -0,0 +1,53 @@
1
+ export declare const select: {
2
+ base: {
3
+ position: string;
4
+ display: string;
5
+ };
6
+ dropdown: {
7
+ position: string;
8
+ textAlign: string;
9
+ top: string;
10
+ left: string;
11
+ width: string;
12
+ background: string;
13
+ boxShadow: string;
14
+ fontFamily: string;
15
+ fontSize: string;
16
+ fontWeight: number;
17
+ listStyleType: string;
18
+ margin: string;
19
+ padding: string;
20
+ zIndex: number;
21
+ };
22
+ button: {
23
+ borderColor: string;
24
+ padding: string;
25
+ width: string;
26
+ display: string;
27
+ flexDirection: string;
28
+ justifyContent: string;
29
+ alignItems: string;
30
+ };
31
+ item: {
32
+ base: {
33
+ cursor: string;
34
+ padding: string;
35
+ '&:hover, &.active': {
36
+ backgroundColor: string;
37
+ };
38
+ };
39
+ };
40
+ arrowIconWrapper: {
41
+ transform: {
42
+ open: string;
43
+ close: string;
44
+ transition: string;
45
+ };
46
+ };
47
+ arrowIcon: {
48
+ name: string;
49
+ fill: string;
50
+ width: number;
51
+ height: number;
52
+ };
53
+ };
@@ -1,4 +1,5 @@
1
1
  export declare const DEFAULT_SHADOW: string;
2
+ export declare const SHADOW_3: string;
2
3
  export declare const shadows: {
3
4
  modal: {
4
5
  default: string;
@@ -7,4 +8,7 @@ export declare const shadows: {
7
8
  snackbar: {
8
9
  default: string;
9
10
  };
11
+ select: {
12
+ default: string;
13
+ };
10
14
  };
@@ -21,4 +21,48 @@ export declare const skeleton: {
21
21
  circular: {
22
22
  borderRadius: string;
23
23
  };
24
+ cards: {
25
+ search: {
26
+ base: {};
27
+ container: {
28
+ padding: string;
29
+ boxSizing: string;
30
+ flexWrap: string;
31
+ flexDirection: string;
32
+ };
33
+ header: {
34
+ width: string;
35
+ marginBottom: string;
36
+ };
37
+ row: {
38
+ width: string;
39
+ marginBottom: string;
40
+ gap: string;
41
+ };
42
+ columnImage: {
43
+ base: {
44
+ flex: number;
45
+ };
46
+ image: {
47
+ width: string;
48
+ height: string;
49
+ };
50
+ };
51
+ columnText: {
52
+ base: {
53
+ flex: number;
54
+ };
55
+ description: {
56
+ width: string;
57
+ height: string;
58
+ marginBottom: string;
59
+ };
60
+ price: {
61
+ width: string;
62
+ height: string;
63
+ marginBottom: string;
64
+ };
65
+ };
66
+ };
67
+ };
24
68
  };
@@ -10,11 +10,6 @@ export declare const snackbar: {
10
10
  spacing: {
11
11
  body: string;
12
12
  };
13
- closeIcon: {
14
- name: string;
15
- width: number;
16
- height: number;
17
- };
18
13
  container: {
19
14
  position: string;
20
15
  display: string;
@@ -191,8 +186,27 @@ export declare const snackbar: {
191
186
  top: string;
192
187
  right: string;
193
188
  background: string;
194
- border: string;
189
+ border: number;
195
190
  cursor: string;
196
191
  padding: string;
197
192
  };
193
+ icons: {
194
+ close: {
195
+ name: string;
196
+ width: number;
197
+ height: number;
198
+ };
199
+ success: {
200
+ name: string;
201
+ };
202
+ error: {
203
+ name: string;
204
+ };
205
+ warning: {
206
+ name: string;
207
+ };
208
+ info: {
209
+ name: string;
210
+ };
211
+ };
198
212
  };
@@ -107,4 +107,36 @@ export declare const stepper: {
107
107
  error: {};
108
108
  success: {};
109
109
  };
110
+ icons: {
111
+ active: {
112
+ width?: number | undefined;
113
+ height?: number | undefined;
114
+ name: string;
115
+ fill: string;
116
+ };
117
+ inactive: {
118
+ width?: number | undefined;
119
+ height?: number | undefined;
120
+ name: string;
121
+ fill: string;
122
+ };
123
+ complete: {
124
+ width?: number | undefined;
125
+ height?: number | undefined;
126
+ name: string;
127
+ fill: string;
128
+ };
129
+ error: {
130
+ width?: number | undefined;
131
+ height?: number | undefined;
132
+ name: string;
133
+ fill: string;
134
+ };
135
+ errorActive: {
136
+ width?: number | undefined;
137
+ height?: number | undefined;
138
+ name: string;
139
+ fill: string;
140
+ };
141
+ };
110
142
  };
package/tokens/tabs.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare const tabs: {
24
24
  color: string;
25
25
  transition: string;
26
26
  borderBottom: string;
27
+ flex: number;
27
28
  '&:hover': {
28
29
  ".Tabs__noticeCounter": {
29
30
  backgroundColor: string;
@@ -73,4 +74,7 @@ export declare const tabs: {
73
74
  backgroundColor: string;
74
75
  };
75
76
  };
77
+ tabButton: {
78
+ width: string;
79
+ };
76
80
  };
@@ -51,4 +51,8 @@ export declare const tooltip: {
51
51
  };
52
52
  };
53
53
  };
54
+ wrapper: {
55
+ display: string;
56
+ position: string;
57
+ };
54
58
  };
package/tokens/utils.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { CSSObject } from 'styled-components';
2
+ import { EnumOrPrimitive } from '../types';
2
3
  import { SpacingKey, Unit } from './types/index.types';
3
4
  import { colors } from './colors';
4
- import { EnumOrPrimitive } from '../types';
5
5
  export declare const generateStateStyles: (color: keyof typeof colors) => {
6
6
  focus: {
7
7
  outline: string;
8
8
  };
9
9
  disabled: {
10
10
  cursor: string;
11
- border: string;
11
+ border: number;
12
12
  };
13
13
  };
14
14
  export declare const convertJsonToCssKeyframe: (keyframeJson?: Record<string, CSSObject>) => import('styled-components/dist/models/Keyframes').default;
@@ -2,7 +2,7 @@ export declare const values: {
2
2
  borderThin: string;
3
3
  borderMedium: string;
4
4
  borderThick: string;
5
- borderNone: string;
5
+ borderNone: number;
6
6
  border: {
7
7
  radius: {
8
8
  none: string;
@@ -24,5 +24,8 @@ export declare const values: {
24
24
  separator: string;
25
25
  stepIcon: string;
26
26
  };
27
+ rating: {
28
+ label: string;
29
+ };
27
30
  };
28
31
  };
package/utils/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './getCharCount';
2
2
  export * from './uniqueKeys';
3
+ export * from './math';
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const convertToFormattedPercents: (props: {
3
+ max: number;
4
+ target: number;
5
+ formatChar?: ReactNode;
6
+ }) => ReactNode;