gd-design-library 0.0.1

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 (206) hide show
  1. package/README.md +201 -0
  2. package/assets/icons/arrow-forward.d.ts +6 -0
  3. package/assets/icons/check.d.ts +6 -0
  4. package/assets/icons/chevron-right.d.ts +6 -0
  5. package/assets/icons/cross.d.ts +6 -0
  6. package/assets/icons/dot.d.ts +6 -0
  7. package/assets/icons/home.d.ts +6 -0
  8. package/assets/icons/slash.d.ts +6 -0
  9. package/assets/icons/star.d.ts +5 -0
  10. package/assets/icons/toast_error.d.ts +5 -0
  11. package/assets/icons/toast_info.d.ts +5 -0
  12. package/assets/icons/toast_success.d.ts +5 -0
  13. package/assets/icons/toast_warning.d.ts +5 -0
  14. package/assets/index.d.ts +83 -0
  15. package/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  16. package/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +14 -0
  17. package/components/core/Breadcrumbs/StyledBreadcrumbs.d.ts +6 -0
  18. package/components/core/Breadcrumbs/constants.d.ts +1 -0
  19. package/components/core/Breadcrumbs/index.d.ts +2 -0
  20. package/components/core/Button/Button.d.ts +5 -0
  21. package/components/core/Button/Button.types.d.ts +52 -0
  22. package/components/core/Button/StyledButton.d.ts +5 -0
  23. package/components/core/Button/constants.d.ts +1 -0
  24. package/components/core/Button/index.d.ts +2 -0
  25. package/components/core/Form/Form.d.ts +5 -0
  26. package/components/core/Form/Form.types.d.ts +24 -0
  27. package/components/core/Form/StyledForm.d.ts +2 -0
  28. package/components/core/Form/constants.d.ts +1 -0
  29. package/components/core/Form/index.d.ts +2 -0
  30. package/components/core/Form/utils.d.ts +3 -0
  31. package/components/core/Icon/Icon.d.ts +5 -0
  32. package/components/core/Icon/Icon.types.d.ts +8 -0
  33. package/components/core/Icon/constants.d.ts +1 -0
  34. package/components/core/Icon/index.d.ts +2 -0
  35. package/components/core/Input/Input.d.ts +3 -0
  36. package/components/core/Input/Input.types.d.ts +68 -0
  37. package/components/core/Input/StyledInput.d.ts +3 -0
  38. package/components/core/Input/constants.d.ts +1 -0
  39. package/components/core/Input/index.d.ts +2 -0
  40. package/components/core/Label/Label.d.ts +5 -0
  41. package/components/core/Label/Label.types.d.ts +23 -0
  42. package/components/core/Label/StyledLabel.d.ts +2 -0
  43. package/components/core/Label/constants.d.ts +1 -0
  44. package/components/core/Label/index.d.ts +2 -0
  45. package/components/core/Link/Link.d.ts +4 -0
  46. package/components/core/Link/Link.types.d.ts +35 -0
  47. package/components/core/Link/StyledLink.d.ts +2 -0
  48. package/components/core/Link/constants.d.ts +1 -0
  49. package/components/core/Link/index.d.ts +2 -0
  50. package/components/core/List/List.d.ts +3 -0
  51. package/components/core/List/List.types.d.ts +12 -0
  52. package/components/core/List/StyledList.d.ts +3 -0
  53. package/components/core/List/constants.d.ts +1 -0
  54. package/components/core/List/index.d.ts +2 -0
  55. package/components/core/Loader/Loader.d.ts +4 -0
  56. package/components/core/Loader/Loader.types.d.ts +13 -0
  57. package/components/core/Loader/StyledLoader.d.ts +2 -0
  58. package/components/core/Loader/constants.d.ts +2 -0
  59. package/components/core/Loader/index.d.ts +2 -0
  60. package/components/core/Modal/Modal.d.ts +2 -0
  61. package/components/core/Modal/Modal.types.d.ts +12 -0
  62. package/components/core/Modal/StyledModal.d.ts +7 -0
  63. package/components/core/Modal/constants.d.ts +1 -0
  64. package/components/core/Modal/index.d.ts +2 -0
  65. package/components/core/Portal/Portal.d.ts +4 -0
  66. package/components/core/Portal/Portal.types.d.ts +7 -0
  67. package/components/core/Portal/constants.d.ts +1 -0
  68. package/components/core/Portal/index.d.ts +2 -0
  69. package/components/core/Skeleton/Skeleton.d.ts +4 -0
  70. package/components/core/Skeleton/Skeleton.types.d.ts +19 -0
  71. package/components/core/Skeleton/StyledSkeleton.d.ts +2 -0
  72. package/components/core/Skeleton/constants.d.ts +2 -0
  73. package/components/core/Skeleton/index.d.ts +2 -0
  74. package/components/core/Snackbar/Snackbar.d.ts +2 -0
  75. package/components/core/Snackbar/Snackbar.types.d.ts +41 -0
  76. package/components/core/Snackbar/SnackbarManager.d.ts +3 -0
  77. package/components/core/Snackbar/StyledSnackbar.d.ts +13 -0
  78. package/components/core/Snackbar/constants.d.ts +8 -0
  79. package/components/core/Snackbar/index.d.ts +4 -0
  80. package/components/core/Switch/StyledSwitch.d.ts +2 -0
  81. package/components/core/Switch/Switch.d.ts +2 -0
  82. package/components/core/Switch/constants.d.ts +1 -0
  83. package/components/core/Switch/index.d.ts +2 -0
  84. package/components/core/Switch/types.d.ts +18 -0
  85. package/components/core/Textarea/StyledTextarea.d.ts +3 -0
  86. package/components/core/Textarea/Textarea.d.ts +3 -0
  87. package/components/core/Textarea/Textarea.types.d.ts +42 -0
  88. package/components/core/Textarea/TextareaWidget.d.ts +3 -0
  89. package/components/core/Textarea/constants.d.ts +1 -0
  90. package/components/core/Textarea/hooks/index.d.ts +2 -0
  91. package/components/core/Textarea/hooks/useDynamicHeightAdjustment.d.ts +2 -0
  92. package/components/core/Textarea/hooks/useResizeObserver.d.ts +2 -0
  93. package/components/core/Textarea/index.d.ts +3 -0
  94. package/components/core/Tooltip/StyledTooltip.d.ts +3 -0
  95. package/components/core/Tooltip/Tooltip.d.ts +3 -0
  96. package/components/core/Tooltip/Tooltip.types.d.ts +17 -0
  97. package/components/core/Tooltip/constants.d.ts +3 -0
  98. package/components/core/Tooltip/index.d.ts +1 -0
  99. package/components/core/Tooltip/utils.d.ts +22 -0
  100. package/components/core/Typography/StyledTypography.d.ts +2 -0
  101. package/components/core/Typography/Typography.d.ts +3 -0
  102. package/components/core/Typography/Typography.types.d.ts +58 -0
  103. package/components/core/Typography/constants.d.ts +3 -0
  104. package/components/core/Typography/index.d.ts +2 -0
  105. package/components/core/Typography/utils.d.ts +2 -0
  106. package/components/core/Wrapper/StyledWrapper.d.ts +2 -0
  107. package/components/core/Wrapper/Wrapper.d.ts +5 -0
  108. package/components/core/Wrapper/Wrapper.types.d.ts +8 -0
  109. package/components/core/Wrapper/constants.d.ts +1 -0
  110. package/components/core/Wrapper/index.d.ts +2 -0
  111. package/components/core/index.d.ts +19 -0
  112. package/components/core/types/common.types.d.ts +24 -0
  113. package/components/core/types/cursors.types.d.ts +14 -0
  114. package/components/core/types/index.types.d.ts +3 -0
  115. package/components/core/types/roles.types.d.ts +3 -0
  116. package/components/domainSpecific/Stepper/Stepper.d.ts +2 -0
  117. package/components/domainSpecific/Stepper/Stepper.types.d.ts +39 -0
  118. package/components/domainSpecific/Stepper/StyledStepper.d.ts +6 -0
  119. package/components/domainSpecific/Stepper/constants.d.ts +1 -0
  120. package/components/domainSpecific/Stepper/index.d.ts +2 -0
  121. package/components/domainSpecific/Stepper/utils.d.ts +2 -0
  122. package/components/domainSpecific/Tabs/StyledTabs.d.ts +7 -0
  123. package/components/domainSpecific/Tabs/Tabs.d.ts +2 -0
  124. package/components/domainSpecific/Tabs/Tabs.types.d.ts +19 -0
  125. package/components/domainSpecific/Tabs/constants.d.ts +6 -0
  126. package/components/domainSpecific/Tabs/index.d.ts +2 -0
  127. package/components/domainSpecific/index.d.ts +2 -0
  128. package/components/index.d.ts +4 -0
  129. package/components/index.types.d.ts +37 -0
  130. package/components/layout/Column/Column.d.ts +4 -0
  131. package/components/layout/Column/Column.types.d.ts +5 -0
  132. package/components/layout/Column/StyledColumn.d.ts +2 -0
  133. package/components/layout/Column/constants.d.ts +1 -0
  134. package/components/layout/Column/index.d.ts +1 -0
  135. package/components/layout/FlexContainer/FlexContainer.d.ts +5 -0
  136. package/components/layout/FlexContainer/FlexContainer.types.d.ts +9 -0
  137. package/components/layout/FlexContainer/StyledFlexContainer.d.ts +2 -0
  138. package/components/layout/FlexContainer/constants.d.ts +1 -0
  139. package/components/layout/FlexContainer/index.d.ts +2 -0
  140. package/components/layout/FlexContainer/utils.d.ts +2 -0
  141. package/components/layout/Row/Row.d.ts +5 -0
  142. package/components/layout/Row/Row.types.d.ts +5 -0
  143. package/components/layout/Row/StyledRow.d.ts +2 -0
  144. package/components/layout/Row/constants.d.ts +1 -0
  145. package/components/layout/Row/index.d.ts +1 -0
  146. package/components/layout/index.d.ts +4 -0
  147. package/components/layout/index.types.d.ts +1 -0
  148. package/components/layout/utils.d.ts +4 -0
  149. package/constants/index.d.ts +2 -0
  150. package/constants/keyboard.d.ts +3 -0
  151. package/constants/positioning.d.ts +6 -0
  152. package/constants/timers.d.ts +2 -0
  153. package/hooks/index.d.ts +1 -0
  154. package/hooks/useAutoFocus/index.d.ts +1 -0
  155. package/hooks/useAutoFocus/useAutoFocus.d.ts +2 -0
  156. package/hooks/useTheme/index.d.ts +3 -0
  157. package/hooks/useTheme/useTheme.d.ts +4 -0
  158. package/hooks/useTheme/useTheme.types.d.ts +14 -0
  159. package/index.d.ts +3 -0
  160. package/index.js +124 -0
  161. package/index.mjs +8627 -0
  162. package/package.json +14 -0
  163. package/style.css +1 -0
  164. package/tokens/animations.d.ts +41 -0
  165. package/tokens/borders.d.ts +8 -0
  166. package/tokens/breadcrumbs.d.ts +23 -0
  167. package/tokens/button.d.ts +109 -0
  168. package/tokens/colors.d.ts +150 -0
  169. package/tokens/column.d.ts +5 -0
  170. package/tokens/cursors.d.ts +16 -0
  171. package/tokens/defaultTheme.d.ts +1425 -0
  172. package/tokens/display.d.ts +15 -0
  173. package/tokens/flexContainer.d.ts +7 -0
  174. package/tokens/font.d.ts +47 -0
  175. package/tokens/form.d.ts +3 -0
  176. package/tokens/icon.d.ts +28 -0
  177. package/tokens/index.d.ts +1339 -0
  178. package/tokens/input.d.ts +66 -0
  179. package/tokens/label.d.ts +18 -0
  180. package/tokens/link.d.ts +64 -0
  181. package/tokens/list.d.ts +76 -0
  182. package/tokens/loader.d.ts +42 -0
  183. package/tokens/modal.d.ts +59 -0
  184. package/tokens/radius.d.ts +10 -0
  185. package/tokens/reset.d.ts +1 -0
  186. package/tokens/row.d.ts +5 -0
  187. package/tokens/shadow.d.ts +10 -0
  188. package/tokens/skeleton.d.ts +24 -0
  189. package/tokens/snackbar.d.ts +198 -0
  190. package/tokens/spacing.d.ts +9 -0
  191. package/tokens/stepper.d.ts +110 -0
  192. package/tokens/switch.d.ts +8 -0
  193. package/tokens/tabs.d.ts +76 -0
  194. package/tokens/textarea.d.ts +55 -0
  195. package/tokens/tooltip.d.ts +54 -0
  196. package/tokens/types/index.types.d.ts +8 -0
  197. package/tokens/typography.d.ts +116 -0
  198. package/tokens/utils.d.ts +17 -0
  199. package/tokens/values.d.ts +28 -0
  200. package/tokens/wrapper.d.ts +29 -0
  201. package/types/accesability.d.ts +5 -0
  202. package/types/index.d.ts +2 -0
  203. package/types/misc.d.ts +6 -0
  204. package/utils/getCharCount.d.ts +3 -0
  205. package/utils/index.d.ts +2 -0
  206. package/utils/uniqueKeys.d.ts +1 -0
@@ -0,0 +1,8 @@
1
+ export declare const switchToggle: {
2
+ default: {
3
+ display: string;
4
+ position: string;
5
+ padding: string;
6
+ border: string;
7
+ };
8
+ };
@@ -0,0 +1,76 @@
1
+ export declare const tabs: {
2
+ default: {
3
+ display: string;
4
+ flexDirection: string;
5
+ width: string;
6
+ };
7
+ header: {
8
+ display: string;
9
+ flexDirection: string;
10
+ position: string;
11
+ '&::after': {
12
+ content: string;
13
+ position: string;
14
+ width: string;
15
+ bottom: number;
16
+ zIndex: number;
17
+ borderBottom: string;
18
+ };
19
+ };
20
+ label: {
21
+ default: {
22
+ fontWeight: number;
23
+ fontSize: string;
24
+ color: string;
25
+ transition: string;
26
+ borderBottom: string;
27
+ '&:hover': {
28
+ ".Tabs__noticeCounter": {
29
+ backgroundColor: string;
30
+ };
31
+ };
32
+ };
33
+ active: {
34
+ borderBottomColor: string;
35
+ };
36
+ disabled: {
37
+ default: {
38
+ '&:hover': {
39
+ ".Tabs__noticeCounter": {
40
+ backgroundColor: string;
41
+ };
42
+ };
43
+ ".Tabs__noticeCounter": {
44
+ color: string;
45
+ };
46
+ borderBottom: string;
47
+ };
48
+ active: {
49
+ borderBottomWidth: string;
50
+ borderBottomColor: string;
51
+ };
52
+ };
53
+ };
54
+ panelsWrapper: {};
55
+ panel: {};
56
+ noticeCounter: {
57
+ default: {
58
+ width?: number | undefined;
59
+ height?: number | undefined;
60
+ display: string;
61
+ alignItems: string;
62
+ justifyContent: string;
63
+ backgroundColor: string;
64
+ color: string;
65
+ fontWeight: number;
66
+ fontSize: string;
67
+ borderRadius: string;
68
+ };
69
+ active: {
70
+ backgroundColor: string;
71
+ };
72
+ disabled: {
73
+ backgroundColor: string;
74
+ };
75
+ };
76
+ };
@@ -0,0 +1,55 @@
1
+ export declare const textarea: {
2
+ default: {};
3
+ variants: {
4
+ default: {};
5
+ outlined: {
6
+ '&:hover': {};
7
+ '&:active': {};
8
+ '&:focus': {};
9
+ '&:disabled': {};
10
+ '&:read-only': {};
11
+ primary: {
12
+ '&:hover': {};
13
+ '&:active': {};
14
+ '&:focus': {};
15
+ '&:disabled': {};
16
+ '&:read-only': {};
17
+ };
18
+ secondary: {
19
+ '&:hover': {};
20
+ '&:active': {};
21
+ '&:focus': {};
22
+ '&:disabled': {};
23
+ '&:read-only': {};
24
+ };
25
+ default: {
26
+ '&:hover': {};
27
+ '&:active': {};
28
+ '&:focus': {};
29
+ '&:disabled': {};
30
+ '&:read-only': {};
31
+ };
32
+ success: {
33
+ '&:hover': {};
34
+ '&:active': {};
35
+ '&:focus': {};
36
+ '&:disabled': {};
37
+ '&:read-only': {};
38
+ };
39
+ warning: {
40
+ '&:hover': {};
41
+ '&:active': {};
42
+ '&:focus': {};
43
+ '&:disabled': {};
44
+ '&:read-only': {};
45
+ };
46
+ error: {
47
+ '&:hover': {};
48
+ '&:active': {};
49
+ '&:focus': {};
50
+ '&:disabled': {};
51
+ '&:read-only': {};
52
+ };
53
+ };
54
+ };
55
+ };
@@ -0,0 +1,54 @@
1
+ export declare const tooltip: {
2
+ default: {
3
+ position: "absolute";
4
+ display: string;
5
+ backgroundColor: string;
6
+ padding: string;
7
+ whiteSpace: string;
8
+ '&::after': {
9
+ position: "absolute";
10
+ content: string;
11
+ border: string;
12
+ };
13
+ '&.tooltip-bottom': {
14
+ transform: string;
15
+ '&::after': {
16
+ top: number;
17
+ left: string;
18
+ borderLeftColor: string;
19
+ borderTopColor: string;
20
+ transform: string;
21
+ };
22
+ };
23
+ '&.tooltip-top': {
24
+ transform: string;
25
+ '&::after': {
26
+ bottom: number;
27
+ left: string;
28
+ borderRightColor: string;
29
+ borderBottomColor: string;
30
+ transform: string;
31
+ };
32
+ };
33
+ '&.tooltip-left': {
34
+ transform: string;
35
+ '&::after': {
36
+ right: number;
37
+ top: string;
38
+ borderRightColor: string;
39
+ borderTopColor: string;
40
+ transform: string;
41
+ };
42
+ };
43
+ '&.tooltip-right': {
44
+ transform: string;
45
+ '&::after': {
46
+ left: number;
47
+ top: string;
48
+ borderLeftColor: string;
49
+ borderBottomColor: string;
50
+ transform: string;
51
+ };
52
+ };
53
+ };
54
+ };
@@ -0,0 +1,8 @@
1
+ import { spacing } from '..';
2
+ export type LayoutSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
3
+ export type SpacingKey = keyof typeof spacing;
4
+ export declare enum Unit {
5
+ Px = "px",
6
+ Rem = "rem",
7
+ Percents = "%"
8
+ }
@@ -0,0 +1,116 @@
1
+ export declare const typography: {
2
+ base: {
3
+ fontFamily: string;
4
+ };
5
+ inherit: {
6
+ fontSize: string;
7
+ fontWeight: string;
8
+ lineHeight: string;
9
+ };
10
+ light: {
11
+ fontWeight: number;
12
+ };
13
+ normal: {
14
+ fontWeight: number;
15
+ };
16
+ semibold: {
17
+ fontWeight: number;
18
+ };
19
+ strong: {
20
+ fontWeight: number;
21
+ };
22
+ i: {
23
+ fontStyle: string;
24
+ };
25
+ uppercase: {
26
+ textTransform: string;
27
+ };
28
+ lowercase: {
29
+ textTransform: string;
30
+ };
31
+ underline: {
32
+ textDecoration: string;
33
+ };
34
+ strike: {
35
+ textDecoration: string;
36
+ };
37
+ h1: {
38
+ fontSize: string;
39
+ fontWeight: number;
40
+ lineHeight: string;
41
+ marginTop: string;
42
+ marginBottom: string;
43
+ };
44
+ h2: {
45
+ fontSize: string;
46
+ fontWeight: number;
47
+ lineHeight: string;
48
+ marginTop: string;
49
+ marginBottom: string;
50
+ };
51
+ h3: {
52
+ fontSize: string;
53
+ fontWeight: number;
54
+ lineHeight: string;
55
+ marginTop: string;
56
+ marginBottom: string;
57
+ };
58
+ h4: {
59
+ fontSize: string;
60
+ fontWeight: number;
61
+ lineHeight: string;
62
+ marginTop: string;
63
+ marginBottom: string;
64
+ };
65
+ h5: {
66
+ fontSize: string;
67
+ fontWeight: number;
68
+ lineHeight: string;
69
+ marginTop: string;
70
+ marginBottom: string;
71
+ };
72
+ h6: {
73
+ fontSize: string;
74
+ fontWeight: number;
75
+ lineHeight: string;
76
+ marginTop: string;
77
+ marginBottom: string;
78
+ };
79
+ p: {
80
+ fontSize: string;
81
+ fontWeight: number;
82
+ lineHeight: string;
83
+ };
84
+ small: {
85
+ fontSize: string;
86
+ fontWeight: number;
87
+ lineHeight: string;
88
+ };
89
+ caption: {
90
+ fontSize: string;
91
+ fontWeight: number;
92
+ lineHeight: string;
93
+ };
94
+ span: {
95
+ xs: {
96
+ fontSize: string;
97
+ lineHeight: string;
98
+ };
99
+ sm: {
100
+ fontSize: string;
101
+ lineHeight: string;
102
+ };
103
+ md: {
104
+ fontSize: string;
105
+ lineHeight: string;
106
+ };
107
+ lg: {
108
+ fontSize: string;
109
+ lineHeight: string;
110
+ };
111
+ xl: {
112
+ fontSize: string;
113
+ lineHeight: string;
114
+ };
115
+ };
116
+ };
@@ -0,0 +1,17 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { SpacingKey, Unit } from './types/index.types';
3
+ import { colors } from './colors';
4
+ import { EnumOrPrimitive } from '../types';
5
+ export declare const generateStateStyles: (color: keyof typeof colors) => {
6
+ focus: {
7
+ outline: string;
8
+ };
9
+ disabled: {
10
+ cursor: string;
11
+ border: string;
12
+ };
13
+ };
14
+ export declare const convertJsonToCssKeyframe: (keyframeJson?: Record<string, CSSObject>) => import('styled-components/dist/models/Keyframes').default;
15
+ export declare const convertToUnit: (value: string | number, unit?: EnumOrPrimitive<Unit>) => string;
16
+ export declare const getSpacing: (sizeKey?: EnumOrPrimitive<SpacingKey> | number, unit?: EnumOrPrimitive<Unit>) => string | number;
17
+ export declare const hexToRgba: (hex: string, alpha?: number) => string;
@@ -0,0 +1,28 @@
1
+ export declare const values: {
2
+ borderThin: string;
3
+ borderMedium: string;
4
+ borderThick: string;
5
+ borderNone: string;
6
+ border: {
7
+ radius: {
8
+ none: string;
9
+ };
10
+ };
11
+ screenSmall: string;
12
+ screenMedium: string;
13
+ screenLarge: string;
14
+ screenXLarge: string;
15
+ responsiveSmall: string;
16
+ responsiveMedium: string;
17
+ responsiveLarge: string;
18
+ responsiveXLarge: string;
19
+ zIndex: {
20
+ snackbar: number;
21
+ };
22
+ transitions: {
23
+ stepper: {
24
+ separator: string;
25
+ stepIcon: string;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,29 @@
1
+ export declare const wrapper: {
2
+ default: {
3
+ justifyContent: string;
4
+ alignItems: string;
5
+ backdropFilter: string;
6
+ backgroundColor: string;
7
+ };
8
+ inline: {
9
+ display: string;
10
+ };
11
+ section: {
12
+ display: string;
13
+ top: number;
14
+ left: number;
15
+ width: string;
16
+ height: string;
17
+ position: string;
18
+ zIndex: number;
19
+ };
20
+ fullPage: {
21
+ display: string;
22
+ position: string;
23
+ top: number;
24
+ left: number;
25
+ width: string;
26
+ height: string;
27
+ zIndex: number;
28
+ };
29
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum TabIndex {
2
+ Default = 0,
3
+ Disabled = -1,
4
+ HighPriority = 1
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './misc';
2
+ export * from './accesability';
@@ -0,0 +1,6 @@
1
+ export type NullableType<T = undefined> = T | null;
2
+ export type EnumOrPrimitive<T extends string | number> = T | `${T}`;
3
+ export interface WithOptional<T = undefined> {
4
+ value?: T;
5
+ }
6
+ export type Maybe<T> = T | null;
@@ -0,0 +1,3 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { Maybe } from '../types';
3
+ export declare const getCharCount: <T extends HTMLTextAreaElement | HTMLInputElement>(element: Maybe<T>, event: ChangeEvent<T>, maxLength?: number) => Maybe<number>;
@@ -0,0 +1,2 @@
1
+ export * from './getCharCount';
2
+ export * from './uniqueKeys';
@@ -0,0 +1 @@
1
+ export declare const generateUniqueId: (id?: string | number, prefix?: string) => string;