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