@elliemae/ds-props-helpers 2.3.0-alpha.8 → 2.3.0-next.2

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 (174) hide show
  1. package/cjs/defaultProps/index.js +9 -0
  2. package/cjs/defaultProps/useMemoMergePropsWithDefault.js +48 -0
  3. package/cjs/getProps/index.js +20 -0
  4. package/cjs/globalProps/constants.js +15 -0
  5. package/cjs/globalProps/globalAttributesPropTypes.js +382 -0
  6. package/cjs/globalProps/index.js +11 -0
  7. package/cjs/globalProps/useGetGlobalAttributes.js +36 -0
  8. package/cjs/index.js +28 -0
  9. package/cjs/propTypes/PropTypes.js +130 -0
  10. package/cjs/propTypes/customPropTypes.js +21 -0
  11. package/cjs/propTypes/describe.js +64 -0
  12. package/cjs/propTypes/describeConversions.js +104 -0
  13. package/cjs/propTypes/describeGuards.js +21 -0
  14. package/cjs/propTypes/index.js +11 -0
  15. package/cjs/propTypes/toTypescript.js +160 -0
  16. package/cjs/propTypes/types.js +2 -0
  17. package/cjs/validation/errorTemplates.js +16 -0
  18. package/cjs/validation/index.js +15 -0
  19. package/cjs/validation/typescriptGuards.js +36 -0
  20. package/cjs/validation/typescriptParsers.js +45 -0
  21. package/cjs/validation/typescriptValidator.js +208 -0
  22. package/cjs/validation/validator.js +36 -0
  23. package/esm/defaultProps/index.js +1 -0
  24. package/esm/defaultProps/useMemoMergePropsWithDefault.js +39 -0
  25. package/esm/getProps/index.js +15 -0
  26. package/esm/globalProps/constants.js +11 -0
  27. package/{dist/esm → esm}/globalProps/globalAttributesPropTypes.js +67 -58
  28. package/esm/globalProps/index.js +2 -0
  29. package/esm/globalProps/useGetGlobalAttributes.js +32 -0
  30. package/esm/index.js +9 -0
  31. package/esm/propTypes/PropTypes.js +124 -0
  32. package/esm/propTypes/customPropTypes.js +17 -0
  33. package/esm/propTypes/describe.js +62 -0
  34. package/esm/propTypes/describeConversions.js +96 -0
  35. package/esm/propTypes/describeGuards.js +10 -0
  36. package/esm/propTypes/index.js +2 -0
  37. package/esm/propTypes/toTypescript.js +154 -0
  38. package/esm/propTypes/types.js +1 -0
  39. package/esm/validation/errorTemplates.js +11 -0
  40. package/esm/validation/index.js +3 -0
  41. package/esm/validation/typescriptGuards.js +23 -0
  42. package/esm/validation/typescriptParsers.js +41 -0
  43. package/esm/validation/typescriptValidator.js +203 -0
  44. package/esm/validation/validator.js +32 -0
  45. package/package.json +63 -65
  46. package/types/defaultProps/index.d.ts +1 -0
  47. package/types/defaultProps/useMemoMergePropsWithDefault.d.ts +1 -0
  48. package/types/getProps/index.d.ts +2 -0
  49. package/types/globalProps/constants.d.ts +3 -0
  50. package/types/globalProps/globalAttributesPropTypes.d.ts +363 -0
  51. package/types/globalProps/index.d.ts +2 -0
  52. package/types/globalProps/useGetGlobalAttributes.d.ts +5 -0
  53. package/types/index.d.ts +5 -0
  54. package/types/propTypes/PropTypes.d.ts +3 -0
  55. package/types/propTypes/customPropTypes.d.ts +2 -0
  56. package/types/propTypes/describe.d.ts +3 -0
  57. package/types/propTypes/describeConversions.d.ts +3 -0
  58. package/types/propTypes/describeGuards.d.ts +9 -0
  59. package/types/propTypes/index.d.ts +3 -0
  60. package/types/propTypes/toTypescript.d.ts +3 -0
  61. package/types/propTypes/types.d.ts +96 -0
  62. package/types/tests/globalProps/TestComponent.d.ts +1 -0
  63. package/types/tests/globalProps/globalAttributes.test.d.ts +1 -0
  64. package/types/tests/validation/any.validation.test.d.ts +1 -0
  65. package/types/tests/validation/array.validation.test.d.ts +1 -0
  66. package/types/tests/validation/boolean.validation.test.d.ts +1 -0
  67. package/types/tests/validation/function.validation.test.d.ts +1 -0
  68. package/types/tests/validation/number.validation.test.d.ts +1 -0
  69. package/types/tests/validation/object.validation.test.d.ts +1 -0
  70. package/types/tests/validation/schema.validation.test.d.ts +1 -0
  71. package/types/tests/validation/string.validation.test.d.ts +1 -0
  72. package/types/tests/validation/test.schema.d.ts +1 -0
  73. package/types/tests/validation/union.validation.test.d.ts +1 -0
  74. package/types/validation/errorTemplates.d.ts +2 -0
  75. package/types/validation/index.d.ts +3 -0
  76. package/types/validation/typescriptGuards.d.ts +12 -0
  77. package/types/validation/typescriptParsers.d.ts +1 -0
  78. package/types/validation/typescriptValidator.d.ts +15 -0
  79. package/types/validation/validator.d.ts +1 -0
  80. package/dist/cjs/defaultProps/index.js +0 -28
  81. package/dist/cjs/defaultProps/index.js.map +0 -7
  82. package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js +0 -48
  83. package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js.map +0 -7
  84. package/dist/cjs/getProps/index.js +0 -37
  85. package/dist/cjs/getProps/index.js.map +0 -7
  86. package/dist/cjs/globalProps/constants.js +0 -398
  87. package/dist/cjs/globalProps/constants.js.map +0 -7
  88. package/dist/cjs/globalProps/globalAttributesPropTypes.js +0 -398
  89. package/dist/cjs/globalProps/globalAttributesPropTypes.js.map +0 -7
  90. package/dist/cjs/globalProps/index.js +0 -29
  91. package/dist/cjs/globalProps/index.js.map +0 -7
  92. package/dist/cjs/globalProps/useGetGlobalAttributes.js +0 -56
  93. package/dist/cjs/globalProps/useGetGlobalAttributes.js.map +0 -7
  94. package/dist/cjs/index.js +0 -32
  95. package/dist/cjs/index.js.map +0 -7
  96. package/dist/cjs/propTypes/PropTypes.js +0 -136
  97. package/dist/cjs/propTypes/PropTypes.js.map +0 -7
  98. package/dist/cjs/propTypes/customPropTypes.js +0 -38
  99. package/dist/cjs/propTypes/customPropTypes.js.map +0 -7
  100. package/dist/cjs/propTypes/describe.js +0 -81
  101. package/dist/cjs/propTypes/describe.js.map +0 -7
  102. package/dist/cjs/propTypes/describeConversions.js +0 -96
  103. package/dist/cjs/propTypes/describeConversions.js.map +0 -7
  104. package/dist/cjs/propTypes/describeGuards.js +0 -49
  105. package/dist/cjs/propTypes/describeGuards.js.map +0 -7
  106. package/dist/cjs/propTypes/index.js +0 -37
  107. package/dist/cjs/propTypes/index.js.map +0 -7
  108. package/dist/cjs/propTypes/toTypescript.js +0 -139
  109. package/dist/cjs/propTypes/toTypescript.js.map +0 -7
  110. package/dist/cjs/propTypes/types.js +0 -27
  111. package/dist/cjs/propTypes/types.js.map +0 -7
  112. package/dist/cjs/tests/globalProps/TestComponent.js +0 -42
  113. package/dist/cjs/tests/globalProps/TestComponent.js.map +0 -7
  114. package/dist/cjs/tests/validation/test.schema.js +0 -67
  115. package/dist/cjs/tests/validation/test.schema.js.map +0 -7
  116. package/dist/cjs/validation/errorTemplates.js +0 -48
  117. package/dist/cjs/validation/errorTemplates.js.map +0 -7
  118. package/dist/cjs/validation/index.js +0 -30
  119. package/dist/cjs/validation/index.js.map +0 -7
  120. package/dist/cjs/validation/typescriptGuards.js +0 -65
  121. package/dist/cjs/validation/typescriptGuards.js.map +0 -7
  122. package/dist/cjs/validation/typescriptParsers.js +0 -76
  123. package/dist/cjs/validation/typescriptParsers.js.map +0 -7
  124. package/dist/cjs/validation/typescriptValidator.js +0 -171
  125. package/dist/cjs/validation/typescriptValidator.js.map +0 -7
  126. package/dist/cjs/validation/validator.js +0 -55
  127. package/dist/cjs/validation/validator.js.map +0 -7
  128. package/dist/esm/defaultProps/index.js +0 -3
  129. package/dist/esm/defaultProps/index.js.map +0 -7
  130. package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js +0 -19
  131. package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js.map +0 -7
  132. package/dist/esm/getProps/index.js +0 -8
  133. package/dist/esm/getProps/index.js.map +0 -7
  134. package/dist/esm/globalProps/constants.js +0 -369
  135. package/dist/esm/globalProps/constants.js.map +0 -7
  136. package/dist/esm/globalProps/globalAttributesPropTypes.js.map +0 -7
  137. package/dist/esm/globalProps/index.js +0 -4
  138. package/dist/esm/globalProps/index.js.map +0 -7
  139. package/dist/esm/globalProps/useGetGlobalAttributes.js +0 -27
  140. package/dist/esm/globalProps/useGetGlobalAttributes.js.map +0 -7
  141. package/dist/esm/index.js +0 -7
  142. package/dist/esm/index.js.map +0 -7
  143. package/dist/esm/propTypes/PropTypes.js +0 -107
  144. package/dist/esm/propTypes/PropTypes.js.map +0 -7
  145. package/dist/esm/propTypes/customPropTypes.js +0 -9
  146. package/dist/esm/propTypes/customPropTypes.js.map +0 -7
  147. package/dist/esm/propTypes/describe.js +0 -52
  148. package/dist/esm/propTypes/describe.js.map +0 -7
  149. package/dist/esm/propTypes/describeConversions.js +0 -76
  150. package/dist/esm/propTypes/describeConversions.js.map +0 -7
  151. package/dist/esm/propTypes/describeGuards.js +0 -20
  152. package/dist/esm/propTypes/describeGuards.js.map +0 -7
  153. package/dist/esm/propTypes/index.js +0 -8
  154. package/dist/esm/propTypes/index.js.map +0 -7
  155. package/dist/esm/propTypes/toTypescript.js +0 -110
  156. package/dist/esm/propTypes/toTypescript.js.map +0 -7
  157. package/dist/esm/propTypes/types.js +0 -2
  158. package/dist/esm/propTypes/types.js.map +0 -7
  159. package/dist/esm/tests/globalProps/TestComponent.js +0 -13
  160. package/dist/esm/tests/globalProps/TestComponent.js.map +0 -7
  161. package/dist/esm/tests/validation/test.schema.js +0 -38
  162. package/dist/esm/tests/validation/test.schema.js.map +0 -7
  163. package/dist/esm/validation/errorTemplates.js +0 -19
  164. package/dist/esm/validation/errorTemplates.js.map +0 -7
  165. package/dist/esm/validation/index.js +0 -5
  166. package/dist/esm/validation/index.js.map +0 -7
  167. package/dist/esm/validation/typescriptGuards.js +0 -36
  168. package/dist/esm/validation/typescriptGuards.js.map +0 -7
  169. package/dist/esm/validation/typescriptParsers.js +0 -47
  170. package/dist/esm/validation/typescriptParsers.js.map +0 -7
  171. package/dist/esm/validation/typescriptValidator.js +0 -153
  172. package/dist/esm/validation/typescriptValidator.js.map +0 -7
  173. package/dist/esm/validation/validator.js +0 -26
  174. package/dist/esm/validation/validator.js.map +0 -7
package/package.json CHANGED
@@ -1,110 +1,107 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "2.3.0-alpha.8",
3
+ "version": "2.3.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
- "files": [
7
- "dist"
8
- ],
9
- "module": "./dist/esm/index.js",
10
- "main": "./dist/cjs/index.js",
11
- "types": "./dist/types/index.d.ts",
6
+ "module": "./esm/index.js",
7
+ "main": "./cjs/index.js",
8
+ "types": "./types/index.d.ts",
12
9
  "exports": {
13
10
  ".": {
14
- "import": "./dist/esm/index.js",
15
- "require": "./dist/cjs/index.js"
11
+ "import": "./esm/index.js",
12
+ "require": "./cjs/index.js"
16
13
  },
17
14
  "./validation/validator": {
18
- "import": "./dist/esm/validation/validator.js",
19
- "require": "./dist/cjs/validation/validator.js"
15
+ "import": "./esm/validation/validator.js",
16
+ "require": "./cjs/validation/validator.js"
20
17
  },
21
18
  "./validation/typescriptValidator": {
22
- "import": "./dist/esm/validation/typescriptValidator.js",
23
- "require": "./dist/cjs/validation/typescriptValidator.js"
19
+ "import": "./esm/validation/typescriptValidator.js",
20
+ "require": "./cjs/validation/typescriptValidator.js"
24
21
  },
25
22
  "./validation/typescriptParsers": {
26
- "import": "./dist/esm/validation/typescriptParsers.js",
27
- "require": "./dist/cjs/validation/typescriptParsers.js"
23
+ "import": "./esm/validation/typescriptParsers.js",
24
+ "require": "./cjs/validation/typescriptParsers.js"
28
25
  },
29
26
  "./validation/typescriptGuards": {
30
- "import": "./dist/esm/validation/typescriptGuards.js",
31
- "require": "./dist/cjs/validation/typescriptGuards.js"
27
+ "import": "./esm/validation/typescriptGuards.js",
28
+ "require": "./cjs/validation/typescriptGuards.js"
32
29
  },
33
30
  "./validation": {
34
- "import": "./dist/esm/validation/index.js",
35
- "require": "./dist/cjs/validation/index.js"
31
+ "import": "./esm/validation/index.js",
32
+ "require": "./cjs/validation/index.js"
36
33
  },
37
34
  "./validation/errorTemplates": {
38
- "import": "./dist/esm/validation/errorTemplates.js",
39
- "require": "./dist/cjs/validation/errorTemplates.js"
35
+ "import": "./esm/validation/errorTemplates.js",
36
+ "require": "./cjs/validation/errorTemplates.js"
40
37
  },
41
38
  "./tests/validation/test.schema": {
42
- "import": "./dist/esm/tests/validation/test.schema.js",
43
- "require": "./dist/cjs/tests/validation/test.schema.js"
39
+ "import": "./esm/tests/validation/test.schema.js",
40
+ "require": "./cjs/tests/validation/test.schema.js"
44
41
  },
45
42
  "./tests/globalProps/TestComponent": {
46
- "import": "./dist/esm/tests/globalProps/TestComponent.js",
47
- "require": "./dist/cjs/tests/globalProps/TestComponent.js"
43
+ "import": "./esm/tests/globalProps/TestComponent.js",
44
+ "require": "./cjs/tests/globalProps/TestComponent.js"
48
45
  },
49
46
  "./propTypes/types": {
50
- "import": "./dist/esm/propTypes/types.js",
51
- "require": "./dist/cjs/propTypes/types.js"
47
+ "import": "./esm/propTypes/types.js",
48
+ "require": "./cjs/propTypes/types.js"
52
49
  },
53
50
  "./propTypes/toTypescript": {
54
- "import": "./dist/esm/propTypes/toTypescript.js",
55
- "require": "./dist/cjs/propTypes/toTypescript.js"
51
+ "import": "./esm/propTypes/toTypescript.js",
52
+ "require": "./cjs/propTypes/toTypescript.js"
56
53
  },
57
54
  "./propTypes/PropTypes": {
58
- "import": "./dist/esm/propTypes/PropTypes.js",
59
- "require": "./dist/cjs/propTypes/PropTypes.js"
55
+ "import": "./esm/propTypes/PropTypes.js",
56
+ "require": "./cjs/propTypes/PropTypes.js"
60
57
  },
61
58
  "./propTypes": {
62
- "import": "./dist/esm/propTypes/index.js",
63
- "require": "./dist/cjs/propTypes/index.js"
59
+ "import": "./esm/propTypes/index.js",
60
+ "require": "./cjs/propTypes/index.js"
64
61
  },
65
62
  "./propTypes/describeGuards": {
66
- "import": "./dist/esm/propTypes/describeGuards.js",
67
- "require": "./dist/cjs/propTypes/describeGuards.js"
63
+ "import": "./esm/propTypes/describeGuards.js",
64
+ "require": "./cjs/propTypes/describeGuards.js"
68
65
  },
69
66
  "./propTypes/describeConversions": {
70
- "import": "./dist/esm/propTypes/describeConversions.js",
71
- "require": "./dist/cjs/propTypes/describeConversions.js"
67
+ "import": "./esm/propTypes/describeConversions.js",
68
+ "require": "./cjs/propTypes/describeConversions.js"
72
69
  },
73
70
  "./propTypes/describe": {
74
- "import": "./dist/esm/propTypes/describe.js",
75
- "require": "./dist/cjs/propTypes/describe.js"
71
+ "import": "./esm/propTypes/describe.js",
72
+ "require": "./cjs/propTypes/describe.js"
76
73
  },
77
74
  "./propTypes/customPropTypes": {
78
- "import": "./dist/esm/propTypes/customPropTypes.js",
79
- "require": "./dist/cjs/propTypes/customPropTypes.js"
75
+ "import": "./esm/propTypes/customPropTypes.js",
76
+ "require": "./cjs/propTypes/customPropTypes.js"
80
77
  },
81
78
  "./globalProps/useGetGlobalAttributes": {
82
- "import": "./dist/esm/globalProps/useGetGlobalAttributes.js",
83
- "require": "./dist/cjs/globalProps/useGetGlobalAttributes.js"
79
+ "import": "./esm/globalProps/useGetGlobalAttributes.js",
80
+ "require": "./cjs/globalProps/useGetGlobalAttributes.js"
84
81
  },
85
82
  "./globalProps": {
86
- "import": "./dist/esm/globalProps/index.js",
87
- "require": "./dist/cjs/globalProps/index.js"
83
+ "import": "./esm/globalProps/index.js",
84
+ "require": "./cjs/globalProps/index.js"
88
85
  },
89
86
  "./globalProps/globalAttributesPropTypes": {
90
- "import": "./dist/esm/globalProps/globalAttributesPropTypes.js",
91
- "require": "./dist/cjs/globalProps/globalAttributesPropTypes.js"
87
+ "import": "./esm/globalProps/globalAttributesPropTypes.js",
88
+ "require": "./cjs/globalProps/globalAttributesPropTypes.js"
92
89
  },
93
90
  "./globalProps/constants": {
94
- "import": "./dist/esm/globalProps/constants.js",
95
- "require": "./dist/cjs/globalProps/constants.js"
91
+ "import": "./esm/globalProps/constants.js",
92
+ "require": "./cjs/globalProps/constants.js"
96
93
  },
97
94
  "./getProps": {
98
- "import": "./dist/esm/getProps/index.js",
99
- "require": "./dist/cjs/getProps/index.js"
95
+ "import": "./esm/getProps/index.js",
96
+ "require": "./cjs/getProps/index.js"
100
97
  },
101
98
  "./defaultProps/useMemoMergePropsWithDefault": {
102
- "import": "./dist/esm/defaultProps/useMemoMergePropsWithDefault.js",
103
- "require": "./dist/cjs/defaultProps/useMemoMergePropsWithDefault.js"
99
+ "import": "./esm/defaultProps/useMemoMergePropsWithDefault.js",
100
+ "require": "./cjs/defaultProps/useMemoMergePropsWithDefault.js"
104
101
  },
105
102
  "./defaultProps": {
106
- "import": "./dist/esm/defaultProps/index.js",
107
- "require": "./dist/cjs/defaultProps/index.js"
103
+ "import": "./esm/defaultProps/index.js",
104
+ "require": "./cjs/defaultProps/index.js"
108
105
  }
109
106
  },
110
107
  "sideEffects": [
@@ -116,15 +113,21 @@
116
113
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
117
114
  },
118
115
  "engines": {
119
- "pnpm": ">=6",
120
- "node": ">=16"
116
+ "npm": ">=7",
117
+ "node": ">=14"
118
+ },
119
+ "scripts": {
120
+ "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
121
+ "prebuild": "exit 0",
122
+ "predev": "exit 0",
123
+ "build": "node ../../scripts/build/build.js"
121
124
  },
122
125
  "dependencies": {
123
126
  "fast-deep-equal": "~3.1.3",
124
127
  "react-desc": "^4.1.3"
125
128
  },
126
129
  "devDependencies": {
127
- "@testing-library/jest-dom": "~5.15.1"
130
+ "@testing-library/jest-dom": "~5.15.0"
128
131
  },
129
132
  "peerDependencies": {
130
133
  "react": "~17.0.2",
@@ -132,12 +135,7 @@
132
135
  },
133
136
  "publishConfig": {
134
137
  "access": "public",
135
- "typeSafety": false
136
- },
137
- "scripts": {
138
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
139
- "prebuild": "exit 0",
140
- "predev": "exit 0",
141
- "build": "node ../../scripts/build/build.js"
138
+ "directory": "dist",
139
+ "generateSubmodules": true
142
140
  }
143
141
  }
@@ -0,0 +1 @@
1
+ export * from './useMemoMergePropsWithDefault';
@@ -0,0 +1 @@
1
+ export declare const useMemoMergePropsWithDefault: <T = Record<string, any>>(props: Partial<T>, defaultProps: Partial<T>, compare?: (a: any, b: any) => boolean) => T;
@@ -0,0 +1,2 @@
1
+ export declare const getAriaProps: (props: Record<string, unknown>) => Record<string, unknown>;
2
+ export declare const getDataProps: (props: Record<string, unknown>) => Record<string, unknown>;
@@ -0,0 +1,3 @@
1
+ import { AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
2
+ export declare type GlobalAttributes<T = true> = Record<keyof (AriaAttributes & DOMAttributes<Element> & HTMLAttributes<Element>), T>;
3
+ export declare const globalAttributes: GlobalAttributes<true>;
@@ -0,0 +1,363 @@
1
+ export declare const globalAttributesPropTypes: {
2
+ 'aria-*': any;
3
+ 'on-*': any;
4
+ 'data-*': any;
5
+ 'all HTML attributes': any;
6
+ about: any;
7
+ accept: any;
8
+ acceptCharset: any;
9
+ accessKey: any;
10
+ action: any;
11
+ allowFullScreen: any;
12
+ allowTransparency: any;
13
+ alt: any;
14
+ 'aria-activedescendant': any;
15
+ 'aria-atomic': any;
16
+ 'aria-autocomplete': any;
17
+ 'aria-busy': any;
18
+ 'aria-checked': any;
19
+ 'aria-colcount': any;
20
+ 'aria-colindex': any;
21
+ 'aria-colspan': any;
22
+ 'aria-controls': any;
23
+ 'aria-current': any;
24
+ 'aria-describedby': any;
25
+ 'aria-details': any;
26
+ 'aria-disabled': any;
27
+ 'aria-dropeffect': any;
28
+ 'aria-errormessage': any;
29
+ 'aria-expanded': any;
30
+ 'aria-flowto': any;
31
+ 'aria-grabbed': any;
32
+ 'aria-haspopup': any;
33
+ 'aria-hidden': any;
34
+ 'aria-invalid': any;
35
+ 'aria-keyshortcuts': any;
36
+ 'aria-label': any;
37
+ 'aria-labelledby': any;
38
+ 'aria-level': any;
39
+ 'aria-live': any;
40
+ 'aria-modal': any;
41
+ 'aria-multiline': any;
42
+ 'aria-multiselectable': any;
43
+ 'aria-orientation': any;
44
+ 'aria-owns': any;
45
+ 'aria-placeholder': any;
46
+ 'aria-posinset': any;
47
+ 'aria-pressed': any;
48
+ 'aria-readonly': any;
49
+ 'aria-relevant': any;
50
+ 'aria-required': any;
51
+ 'aria-roledescription': any;
52
+ 'aria-rowcount': any;
53
+ 'aria-rowindex': any;
54
+ 'aria-rowspan': any;
55
+ 'aria-selected': any;
56
+ 'aria-setsize': any;
57
+ 'aria-sort': any;
58
+ 'aria-valuemax': any;
59
+ 'aria-valuemin': any;
60
+ 'aria-valuenow': any;
61
+ 'aria-valuetext': any;
62
+ as: any;
63
+ async: any;
64
+ autoCapitalize: any;
65
+ autoComplete: any;
66
+ autoCorrect: any;
67
+ autoFocus: any;
68
+ autoPlay: any;
69
+ autoSave: any;
70
+ capture: any;
71
+ cellPadding: any;
72
+ cellSpacing: any;
73
+ challenge: any;
74
+ charSet: any;
75
+ checked: any;
76
+ cite: any;
77
+ classID: any;
78
+ className: any;
79
+ color: any;
80
+ cols: any;
81
+ colSpan: any;
82
+ content: any;
83
+ contentEditable: any;
84
+ contextMenu: any;
85
+ controls: any;
86
+ coords: any;
87
+ crossOrigin: any;
88
+ data: any;
89
+ datatype: any;
90
+ dateTime: any;
91
+ default: any;
92
+ defaultChecked: any;
93
+ defaultValue: any;
94
+ defer: any;
95
+ dir: any;
96
+ disabled: any;
97
+ download: any;
98
+ draggable: any;
99
+ encType: any;
100
+ form: any;
101
+ formAction: any;
102
+ formEncType: any;
103
+ formMethod: any;
104
+ formNoValidate: any;
105
+ formTarget: any;
106
+ frameBorder: any;
107
+ headers: any;
108
+ height: any;
109
+ hidden: any;
110
+ high: any;
111
+ href: any;
112
+ hrefLang: any;
113
+ htmlFor: any;
114
+ httpEquiv: any;
115
+ id: any;
116
+ inlist: any;
117
+ inputMode: any;
118
+ integrity: any;
119
+ is: any;
120
+ itemID: any;
121
+ itemProp: any;
122
+ itemRef: any;
123
+ itemScope: any;
124
+ itemType: any;
125
+ keyParams: any;
126
+ keyType: any;
127
+ kind: any;
128
+ label: any;
129
+ lang: any;
130
+ list: any;
131
+ loop: any;
132
+ low: any;
133
+ manifest: any;
134
+ marginHeight: any;
135
+ marginWidth: any;
136
+ max: any;
137
+ maxLength: any;
138
+ media: any;
139
+ mediaGroup: any;
140
+ method: any;
141
+ min: any;
142
+ minLength: any;
143
+ multiple: any;
144
+ muted: any;
145
+ name: any;
146
+ nonce: any;
147
+ noValidate: any;
148
+ onAbort: any;
149
+ onAbortCapture: any;
150
+ onAnimationEnd: any;
151
+ onAnimationEndCapture: any;
152
+ onAnimationIteration: any;
153
+ onAnimationIterationCapture: any;
154
+ onAnimationStart: any;
155
+ onAnimationStartCapture: any;
156
+ onAuxClick: any;
157
+ onAuxClickCapture: any;
158
+ onBeforeInput: any;
159
+ onBeforeInputCapture: any;
160
+ onBlur: any;
161
+ onBlurCapture: any;
162
+ onCanPlay: any;
163
+ onCanPlayCapture: any;
164
+ onCanPlayThrough: any;
165
+ onCanPlayThroughCapture: any;
166
+ onChange: any;
167
+ onChangeCapture: any;
168
+ onClick: any;
169
+ onClickCapture: any;
170
+ onCompositionEnd: any;
171
+ onCompositionEndCapture: any;
172
+ onCompositionStart: any;
173
+ onCompositionStartCapture: any;
174
+ onCompositionUpdate: any;
175
+ onCompositionUpdateCapture: any;
176
+ onContextMenu: any;
177
+ onContextMenuCapture: any;
178
+ onCopy: any;
179
+ onCopyCapture: any;
180
+ onCut: any;
181
+ onCutCapture: any;
182
+ onDoubleClick: any;
183
+ onDoubleClickCapture: any;
184
+ onDrag: any;
185
+ onDragCapture: any;
186
+ onDragEnd: any;
187
+ onDragEndCapture: any;
188
+ onDragEnter: any;
189
+ onDragEnterCapture: any;
190
+ onDragExit: any;
191
+ onDragExitCapture: any;
192
+ onDragLeave: any;
193
+ onDragLeaveCapture: any;
194
+ onDragOver: any;
195
+ onDragOverCapture: any;
196
+ onDragStart: any;
197
+ onDragStartCapture: any;
198
+ onDrop: any;
199
+ onDropCapture: any;
200
+ onDurationChange: any;
201
+ onDurationChangeCapture: any;
202
+ onEmptied: any;
203
+ onEmptiedCapture: any;
204
+ onEncrypted: any;
205
+ onEncryptedCapture: any;
206
+ onEnded: any;
207
+ onEndedCapture: any;
208
+ onError: any;
209
+ onErrorCapture: any;
210
+ onFocus: any;
211
+ onFocusCapture: any;
212
+ onGotPointerCapture: any;
213
+ onGotPointerCaptureCapture: any;
214
+ onInput: any;
215
+ onInputCapture: any;
216
+ onInvalid: any;
217
+ onInvalidCapture: any;
218
+ onKeyDown: any;
219
+ onKeyDownCapture: any;
220
+ onKeyPress: any;
221
+ onKeyPressCapture: any;
222
+ onKeyUp: any;
223
+ onKeyUpCapture: any;
224
+ onLoad: any;
225
+ onLoadCapture: any;
226
+ onLoadedData: any;
227
+ onLoadedDataCapture: any;
228
+ onLoadedMetadata: any;
229
+ onLoadedMetadataCapture: any;
230
+ onLoadStart: any;
231
+ onLoadStartCapture: any;
232
+ onLostPointerCapture: any;
233
+ onLostPointerCaptureCapture: any;
234
+ onMouseDown: any;
235
+ onMouseDownCapture: any;
236
+ onMouseEnter: any;
237
+ onMouseLeave: any;
238
+ onMouseMove: any;
239
+ onMouseMoveCapture: any;
240
+ onMouseOut: any;
241
+ onMouseOutCapture: any;
242
+ onMouseOver: any;
243
+ onMouseOverCapture: any;
244
+ onMouseUp: any;
245
+ onMouseUpCapture: any;
246
+ onPaste: any;
247
+ onPasteCapture: any;
248
+ onPause: any;
249
+ onPauseCapture: any;
250
+ onPlay: any;
251
+ onPlayCapture: any;
252
+ onPlaying: any;
253
+ onPlayingCapture: any;
254
+ onPointerCancel: any;
255
+ onPointerCancelCapture: any;
256
+ onPointerDown: any;
257
+ onPointerDownCapture: any;
258
+ onPointerEnter: any;
259
+ onPointerEnterCapture: any;
260
+ onPointerLeave: any;
261
+ onPointerLeaveCapture: any;
262
+ onPointerMove: any;
263
+ onPointerMoveCapture: any;
264
+ onPointerOut: any;
265
+ onPointerOutCapture: any;
266
+ onPointerOver: any;
267
+ onPointerOverCapture: any;
268
+ onPointerUp: any;
269
+ onPointerUpCapture: any;
270
+ onProgress: any;
271
+ onProgressCapture: any;
272
+ onRateChange: any;
273
+ onRateChangeCapture: any;
274
+ onReset: any;
275
+ onResetCapture: any;
276
+ onScroll: any;
277
+ onScrollCapture: any;
278
+ onSeeked: any;
279
+ onSeekedCapture: any;
280
+ onSeeking: any;
281
+ onSeekingCapture: any;
282
+ onSelect: any;
283
+ onSelectCapture: any;
284
+ onStalled: any;
285
+ onStalledCapture: any;
286
+ onSubmit: any;
287
+ onSubmitCapture: any;
288
+ onSuspend: any;
289
+ onSuspendCapture: any;
290
+ onTimeUpdate: any;
291
+ onTimeUpdateCapture: any;
292
+ onTouchCancel: any;
293
+ onTouchCancelCapture: any;
294
+ onTouchEnd: any;
295
+ onTouchEndCapture: any;
296
+ onTouchMove: any;
297
+ onTouchMoveCapture: any;
298
+ onTouchStart: any;
299
+ onTouchStartCapture: any;
300
+ onTransitionEnd: any;
301
+ onTransitionEndCapture: any;
302
+ onVolumeChange: any;
303
+ onVolumeChangeCapture: any;
304
+ onWaiting: any;
305
+ onWaitingCapture: any;
306
+ onWheel: any;
307
+ onWheelCapture: any;
308
+ open: any;
309
+ optimum: any;
310
+ pattern: any;
311
+ placeholder: any;
312
+ playsInline: any;
313
+ poster: any;
314
+ prefix: any;
315
+ preload: any;
316
+ property: any;
317
+ radioGroup: any;
318
+ readOnly: any;
319
+ rel: any;
320
+ required: any;
321
+ resource: any;
322
+ results: any;
323
+ reversed: any;
324
+ role: any;
325
+ rows: any;
326
+ rowSpan: any;
327
+ sandbox: any;
328
+ scope: any;
329
+ scoped: any;
330
+ scrolling: any;
331
+ seamless: any;
332
+ security: any;
333
+ selected: any;
334
+ shape: any;
335
+ size: any;
336
+ sizes: any;
337
+ slot: any;
338
+ span: any;
339
+ spellCheck: any;
340
+ src: any;
341
+ srcDoc: any;
342
+ srcLang: any;
343
+ srcSet: any;
344
+ start: any;
345
+ step: any;
346
+ style: any;
347
+ summary: any;
348
+ suppressContentEditableWarning: any;
349
+ suppressHydrationWarning: any;
350
+ tabIndex: any;
351
+ target: any;
352
+ title: any;
353
+ translate: any;
354
+ type: any;
355
+ typeof: any;
356
+ unselectable: any;
357
+ useMap: any;
358
+ value: any;
359
+ vocab: any;
360
+ width: any;
361
+ wmode: any;
362
+ wrap: any;
363
+ };
@@ -0,0 +1,2 @@
1
+ export * from './useGetGlobalAttributes';
2
+ export * from './globalAttributesPropTypes';
@@ -0,0 +1,5 @@
1
+ import { AriaAttributes, DOMAttributes, HTMLAttributes } from 'react';
2
+ import { GlobalAttributes } from './constants';
3
+ declare type PropsWithAttributes<T extends Record<string, unknown>> = T & AriaAttributes & DOMAttributes<Element> & HTMLAttributes<Element>;
4
+ export declare const useGetGlobalAttributes: <T extends Record<string, unknown>>(props: PropsWithAttributes<T>, overrides: GlobalAttributes<(...args: unknown[]) => unknown>) => AriaAttributes & DOMAttributes<Element> & HTMLAttributes<Element>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './defaultProps';
2
+ export * from './validation';
3
+ export * from './getProps';
4
+ export * from './globalProps';
5
+ export * from './propTypes';
@@ -0,0 +1,3 @@
1
+ import { PropTypesObj } from './types';
2
+ declare const PropTypes: PropTypesObj;
3
+ export default PropTypes;
@@ -0,0 +1,2 @@
1
+ import { Validator } from 'prop-types';
2
+ export declare const tupleValidator: (tupleShape: Validator<unknown>[]) => Validator<unknown>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { DocumentedReactComponent } from './types';
3
+ export default function describe<C>(ComponentInstance: React.ComponentType<C>): DocumentedReactComponent<C>;
@@ -0,0 +1,3 @@
1
+ import { Requireable } from 'prop-types';
2
+ import { ReactDescT } from './types';
3
+ export declare const convertPropType: (propType: ReactDescT) => Requireable<unknown>;
@@ -0,0 +1,9 @@
1
+ import { AllPropTypes, ParametizedPropTypes, ReactDescT } from './types';
2
+ export declare const hasArguments: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is ParametizedPropTypes;
3
+ export declare const isOneOfType: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").oneOfType;
4
+ export declare const isArrayOf: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").arrayOf;
5
+ export declare const isShape: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").shape;
6
+ export declare const isInstanceOf: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").instanceOf;
7
+ export declare const isOneOf: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").oneOf;
8
+ export declare const isObjectOf: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").objectOf;
9
+ export declare const isExact: (propType: ReactDescT, realPropType: AllPropTypes) => realPropType is typeof import("prop-types").exact;
@@ -0,0 +1,3 @@
1
+ import PropTypes from './PropTypes';
2
+ import describe from './describe';
3
+ export { describe, PropTypes };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ComponentDocumentation, TypescriptDocumentation } from './types';
3
+ export default function descToTypescript<C>(component: React.ComponentType<C>, reactDesc: ComponentDocumentation): TypescriptDocumentation;