@elliemae/ds-props-helpers 3.0.0-next.2 → 3.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/defaultProps/index.js +28 -0
- package/dist/cjs/defaultProps/index.js.map +7 -0
- package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js +62 -0
- package/dist/cjs/defaultProps/useMemoMergePropsWithDefault.js.map +7 -0
- package/dist/cjs/getProps/index.js +37 -0
- package/dist/cjs/getProps/index.js.map +7 -0
- package/dist/cjs/globalProps/constants.js +397 -0
- package/dist/cjs/globalProps/constants.js.map +7 -0
- package/dist/cjs/globalProps/globalAttributesPropTypes.js +398 -0
- package/dist/cjs/globalProps/globalAttributesPropTypes.js.map +7 -0
- package/dist/cjs/globalProps/index.js +29 -0
- package/dist/cjs/globalProps/index.js.map +7 -0
- package/dist/cjs/globalProps/useGetGlobalAttributes.js +56 -0
- package/dist/cjs/globalProps/useGetGlobalAttributes.js.map +7 -0
- package/dist/cjs/index.js +34 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/propTypes/PropTypes.js +149 -0
- package/dist/cjs/propTypes/PropTypes.js.map +7 -0
- package/dist/cjs/propTypes/customPropTypes.js +38 -0
- package/dist/cjs/propTypes/customPropTypes.js.map +7 -0
- package/dist/cjs/propTypes/describe.js +81 -0
- package/dist/cjs/propTypes/describe.js.map +7 -0
- package/dist/cjs/propTypes/describeConversions.js +96 -0
- package/dist/cjs/propTypes/describeConversions.js.map +7 -0
- package/dist/cjs/propTypes/describeGuards.js +49 -0
- package/dist/cjs/propTypes/describeGuards.js.map +7 -0
- package/dist/cjs/propTypes/index.js +37 -0
- package/dist/cjs/propTypes/index.js.map +7 -0
- package/dist/cjs/propTypes/toTypescript.js +154 -0
- package/dist/cjs/propTypes/toTypescript.js.map +7 -0
- package/dist/cjs/propTypes/types.js +27 -0
- package/dist/cjs/propTypes/types.js.map +7 -0
- package/dist/cjs/tests/globalProps/TestComponent.js +54 -0
- package/dist/cjs/tests/globalProps/TestComponent.js.map +7 -0
- package/dist/cjs/tests/validation/test.schema.js +67 -0
- package/dist/cjs/tests/validation/test.schema.js.map +7 -0
- package/dist/cjs/tests/xstyledProps/TestComponent.js +60 -0
- package/dist/cjs/tests/xstyledProps/TestComponent.js.map +7 -0
- package/dist/cjs/useDeprecateComponent/index.js +40 -0
- package/dist/cjs/useDeprecateComponent/index.js.map +7 -0
- package/dist/cjs/validation/errorTemplates.js +48 -0
- package/dist/cjs/validation/errorTemplates.js.map +7 -0
- package/dist/cjs/validation/index.js +30 -0
- package/dist/cjs/validation/index.js.map +7 -0
- package/dist/cjs/validation/typescriptGuards.js +65 -0
- package/dist/cjs/validation/typescriptGuards.js.map +7 -0
- package/dist/cjs/validation/typescriptParsers.js +76 -0
- package/dist/cjs/validation/typescriptParsers.js.map +7 -0
- package/dist/cjs/validation/typescriptValidator.js +171 -0
- package/dist/cjs/validation/typescriptValidator.js.map +7 -0
- package/dist/cjs/validation/validator.js +55 -0
- package/dist/cjs/validation/validator.js.map +7 -0
- package/dist/cjs/xstyledProps/constants.js +88 -0
- package/dist/cjs/xstyledProps/constants.js.map +7 -0
- package/dist/cjs/xstyledProps/index.js +29 -0
- package/dist/cjs/xstyledProps/index.js.map +7 -0
- package/dist/cjs/xstyledProps/useGetXstyledProps.js +48 -0
- package/dist/cjs/xstyledProps/useGetXstyledProps.js.map +7 -0
- package/dist/cjs/xstyledProps/xstyledPropTypes.js +92 -0
- package/dist/cjs/xstyledProps/xstyledPropTypes.js.map +7 -0
- package/dist/esm/defaultProps/index.js +3 -0
- package/dist/esm/defaultProps/index.js.map +7 -0
- package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js +35 -0
- package/dist/esm/defaultProps/useMemoMergePropsWithDefault.js.map +7 -0
- package/dist/esm/getProps/index.js +8 -0
- package/dist/esm/getProps/index.js.map +7 -0
- package/dist/esm/globalProps/constants.js +368 -0
- package/dist/esm/globalProps/constants.js.map +7 -0
- package/dist/esm/globalProps/globalAttributesPropTypes.js +369 -0
- package/dist/esm/globalProps/globalAttributesPropTypes.js.map +7 -0
- package/dist/esm/globalProps/index.js +4 -0
- package/dist/esm/globalProps/index.js.map +7 -0
- package/dist/esm/globalProps/useGetGlobalAttributes.js +27 -0
- package/dist/esm/globalProps/useGetGlobalAttributes.js.map +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/propTypes/PropTypes.js +122 -0
- package/dist/esm/propTypes/PropTypes.js.map +7 -0
- package/dist/esm/propTypes/customPropTypes.js +9 -0
- package/dist/esm/propTypes/customPropTypes.js.map +7 -0
- package/dist/esm/propTypes/describe.js +52 -0
- package/dist/esm/propTypes/describe.js.map +7 -0
- package/dist/esm/propTypes/describeConversions.js +76 -0
- package/dist/esm/propTypes/describeConversions.js.map +7 -0
- package/dist/esm/propTypes/describeGuards.js +20 -0
- package/dist/esm/propTypes/describeGuards.js.map +7 -0
- package/dist/esm/propTypes/index.js +8 -0
- package/dist/esm/propTypes/index.js.map +7 -0
- package/dist/esm/propTypes/toTypescript.js +127 -0
- package/dist/esm/propTypes/toTypescript.js.map +7 -0
- package/dist/esm/propTypes/types.js +2 -0
- package/dist/esm/propTypes/types.js.map +7 -0
- package/dist/esm/tests/globalProps/TestComponent.js +27 -0
- package/dist/esm/tests/globalProps/TestComponent.js.map +7 -0
- package/dist/esm/tests/validation/test.schema.js +38 -0
- package/dist/esm/tests/validation/test.schema.js.map +7 -0
- package/dist/esm/tests/xstyledProps/TestComponent.js +33 -0
- package/dist/esm/tests/xstyledProps/TestComponent.js.map +7 -0
- package/dist/esm/useDeprecateComponent/index.js +11 -0
- package/dist/esm/useDeprecateComponent/index.js.map +7 -0
- package/dist/esm/validation/errorTemplates.js +19 -0
- package/dist/esm/validation/errorTemplates.js.map +7 -0
- package/dist/esm/validation/index.js +5 -0
- package/dist/esm/validation/index.js.map +7 -0
- package/dist/esm/validation/typescriptGuards.js +36 -0
- package/dist/esm/validation/typescriptGuards.js.map +7 -0
- package/dist/esm/validation/typescriptParsers.js +47 -0
- package/dist/esm/validation/typescriptParsers.js.map +7 -0
- package/dist/esm/validation/typescriptValidator.js +153 -0
- package/dist/esm/validation/typescriptValidator.js.map +7 -0
- package/dist/esm/validation/validator.js +26 -0
- package/dist/esm/validation/validator.js.map +7 -0
- package/dist/esm/xstyledProps/constants.js +59 -0
- package/dist/esm/xstyledProps/constants.js.map +7 -0
- package/dist/esm/xstyledProps/index.js +4 -0
- package/dist/esm/xstyledProps/index.js.map +7 -0
- package/dist/esm/xstyledProps/useGetXstyledProps.js +19 -0
- package/dist/esm/xstyledProps/useGetXstyledProps.js.map +7 -0
- package/dist/esm/xstyledProps/xstyledPropTypes.js +63 -0
- package/dist/esm/xstyledProps/xstyledPropTypes.js.map +7 -0
- package/package.json +91 -45
- package/cjs/defaultProps/index.js +0 -9
- package/cjs/defaultProps/useMemoMergePropsWithDefault.js +0 -48
- package/cjs/getProps/index.js +0 -20
- package/cjs/globalProps/constants.js +0 -15
- package/cjs/globalProps/globalAttributesPropTypes.js +0 -372
- package/cjs/globalProps/index.js +0 -11
- package/cjs/globalProps/useGetGlobalAttributes.js +0 -36
- package/cjs/index.js +0 -24
- package/cjs/validation/errorTemplates.js +0 -16
- package/cjs/validation/index.js +0 -15
- package/cjs/validation/typescriptGuards.js +0 -36
- package/cjs/validation/typescriptParsers.js +0 -45
- package/cjs/validation/typescriptValidator.js +0 -207
- package/cjs/validation/validator.js +0 -36
- package/esm/defaultProps/index.js +0 -1
- package/esm/defaultProps/useMemoMergePropsWithDefault.js +0 -39
- package/esm/getProps/index.js +0 -15
- package/esm/globalProps/constants.js +0 -11
- package/esm/globalProps/globalAttributesPropTypes.js +0 -368
- package/esm/globalProps/index.js +0 -2
- package/esm/globalProps/useGetGlobalAttributes.js +0 -32
- package/esm/index.js +0 -7
- package/esm/validation/errorTemplates.js +0 -11
- package/esm/validation/index.js +0 -3
- package/esm/validation/typescriptGuards.js +0 -23
- package/esm/validation/typescriptParsers.js +0 -41
- package/esm/validation/typescriptValidator.js +0 -202
- package/esm/validation/validator.js +0 -32
- package/types/defaultProps/index.d.ts +0 -1
- package/types/defaultProps/useMemoMergePropsWithDefault.d.ts +0 -1
- package/types/getProps/index.d.ts +0 -2
- package/types/globalProps/constants.d.ts +0 -3
- package/types/globalProps/globalAttributesPropTypes.d.ts +0 -2169
- package/types/globalProps/index.d.ts +0 -2
- package/types/globalProps/useGetGlobalAttributes.d.ts +0 -5
- package/types/index.d.ts +0 -4
- package/types/tests/any.validation.test.d.ts +0 -1
- package/types/tests/array.validation.test.d.ts +0 -1
- package/types/tests/boolean.validation.test.d.ts +0 -1
- package/types/tests/function.validation.test.d.ts +0 -1
- package/types/tests/number.validation.test.d.ts +0 -1
- package/types/tests/object.validation.test.d.ts +0 -1
- package/types/tests/schema.validation.test.d.ts +0 -1
- package/types/tests/string.validation.test.d.ts +0 -1
- package/types/tests/test.schema.d.ts +0 -1
- package/types/tests/union.validation.test.d.ts +0 -1
- package/types/validation/errorTemplates.d.ts +0 -2
- package/types/validation/index.d.ts +0 -3
- package/types/validation/typescriptGuards.d.ts +0 -12
- package/types/validation/typescriptParsers.d.ts +0 -1
- package/types/validation/typescriptValidator.d.ts +0 -15
- package/types/validation/validator.d.ts +0 -1
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactDesc = require('react-desc');
|
|
6
|
-
|
|
7
|
-
/* eslint-disable max-lines */
|
|
8
|
-
const globalAttributesPropTypes = {
|
|
9
|
-
'aria-*': reactDesc.PropTypes.any.description('Aria related properties -- global --'),
|
|
10
|
-
'on-*': reactDesc.PropTypes.func.description('Any supported React event -- global --'),
|
|
11
|
-
'data-*': reactDesc.PropTypes.any.description('Any data property to attach to the root container -- global --'),
|
|
12
|
-
'all HTML attributes': reactDesc.PropTypes.any.description('HTML attributes such as id, className, autoComplete, href and so on -- global --'),
|
|
13
|
-
about: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
14
|
-
accept: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
15
|
-
acceptCharset: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
16
|
-
accessKey: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
17
|
-
action: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
18
|
-
allowFullScreen: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
19
|
-
allowTransparency: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
20
|
-
alt: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
21
|
-
'aria-activedescendant': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
22
|
-
'aria-atomic': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
23
|
-
'aria-autocomplete': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
24
|
-
'aria-busy': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
25
|
-
'aria-checked': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
26
|
-
'aria-colcount': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
27
|
-
'aria-colindex': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
28
|
-
'aria-colspan': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
29
|
-
'aria-controls': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
30
|
-
'aria-current': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
31
|
-
'aria-describedby': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
32
|
-
'aria-details': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
33
|
-
'aria-disabled': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
34
|
-
'aria-dropeffect': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
35
|
-
'aria-errormessage': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
36
|
-
'aria-expanded': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
37
|
-
'aria-flowto': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
38
|
-
'aria-grabbed': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
39
|
-
'aria-haspopup': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
40
|
-
'aria-hidden': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
41
|
-
'aria-invalid': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
42
|
-
'aria-keyshortcuts': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
43
|
-
'aria-label': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
44
|
-
'aria-labelledby': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
45
|
-
'aria-level': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
46
|
-
'aria-live': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
47
|
-
'aria-modal': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
48
|
-
'aria-multiline': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
49
|
-
'aria-multiselectable': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
50
|
-
'aria-orientation': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
51
|
-
'aria-owns': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
52
|
-
'aria-placeholder': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
53
|
-
'aria-posinset': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
54
|
-
'aria-pressed': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
55
|
-
'aria-readonly': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
56
|
-
'aria-relevant': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
57
|
-
'aria-required': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
58
|
-
'aria-roledescription': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
59
|
-
'aria-rowcount': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
60
|
-
'aria-rowindex': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
61
|
-
'aria-rowspan': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
62
|
-
'aria-selected': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
63
|
-
'aria-setsize': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
64
|
-
'aria-sort': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
65
|
-
'aria-valuemax': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
66
|
-
'aria-valuemin': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
67
|
-
'aria-valuenow': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
68
|
-
'aria-valuetext': reactDesc.PropTypes.any.description('-- hidden --'),
|
|
69
|
-
as: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
70
|
-
async: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
71
|
-
autoCapitalize: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
72
|
-
autoComplete: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
73
|
-
autoCorrect: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
74
|
-
autoFocus: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
75
|
-
autoPlay: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
76
|
-
autoSave: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
77
|
-
capture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
78
|
-
cellPadding: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
79
|
-
cellSpacing: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
80
|
-
challenge: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
81
|
-
charSet: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
82
|
-
checked: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
83
|
-
cite: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
84
|
-
classID: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
85
|
-
className: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
86
|
-
color: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
87
|
-
cols: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
88
|
-
colSpan: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
89
|
-
content: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
90
|
-
contentEditable: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
91
|
-
contextMenu: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
92
|
-
controls: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
93
|
-
coords: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
94
|
-
crossOrigin: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
95
|
-
data: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
96
|
-
datatype: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
97
|
-
dateTime: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
98
|
-
default: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
99
|
-
defaultChecked: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
100
|
-
defaultValue: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
101
|
-
defer: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
102
|
-
dir: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
103
|
-
disabled: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
104
|
-
download: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
105
|
-
draggable: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
106
|
-
encType: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
107
|
-
form: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
108
|
-
formAction: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
109
|
-
formEncType: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
110
|
-
formMethod: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
111
|
-
formNoValidate: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
112
|
-
formTarget: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
113
|
-
frameBorder: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
114
|
-
headers: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
115
|
-
height: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
116
|
-
hidden: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
117
|
-
high: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
118
|
-
href: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
119
|
-
hrefLang: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
120
|
-
htmlFor: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
121
|
-
httpEquiv: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
122
|
-
id: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
123
|
-
inlist: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
124
|
-
inputMode: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
125
|
-
integrity: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
126
|
-
is: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
127
|
-
itemID: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
128
|
-
itemProp: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
129
|
-
itemRef: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
130
|
-
itemScope: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
131
|
-
itemType: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
132
|
-
keyParams: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
133
|
-
keyType: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
134
|
-
kind: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
135
|
-
label: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
136
|
-
lang: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
137
|
-
list: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
138
|
-
loop: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
139
|
-
low: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
140
|
-
manifest: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
141
|
-
marginHeight: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
142
|
-
marginWidth: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
143
|
-
max: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
144
|
-
maxLength: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
145
|
-
media: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
146
|
-
mediaGroup: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
147
|
-
method: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
148
|
-
min: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
149
|
-
minLength: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
150
|
-
multiple: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
151
|
-
muted: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
152
|
-
name: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
153
|
-
nonce: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
154
|
-
noValidate: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
155
|
-
onAbort: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
156
|
-
onAbortCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
157
|
-
onAnimationEnd: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
158
|
-
onAnimationEndCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
159
|
-
onAnimationIteration: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
160
|
-
onAnimationIterationCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
161
|
-
onAnimationStart: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
162
|
-
onAnimationStartCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
163
|
-
onAuxClick: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
164
|
-
onAuxClickCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
165
|
-
onBeforeInput: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
166
|
-
onBeforeInputCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
167
|
-
onBlur: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
168
|
-
onBlurCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
169
|
-
onCanPlay: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
170
|
-
onCanPlayCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
171
|
-
onCanPlayThrough: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
172
|
-
onCanPlayThroughCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
173
|
-
onChange: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
174
|
-
onChangeCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
175
|
-
onClick: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
176
|
-
onClickCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
177
|
-
onCompositionEnd: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
178
|
-
onCompositionEndCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
179
|
-
onCompositionStart: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
180
|
-
onCompositionStartCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
181
|
-
onCompositionUpdate: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
182
|
-
onCompositionUpdateCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
183
|
-
onContextMenu: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
184
|
-
onContextMenuCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
185
|
-
onCopy: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
186
|
-
onCopyCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
187
|
-
onCut: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
188
|
-
onCutCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
189
|
-
onDoubleClick: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
190
|
-
onDoubleClickCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
191
|
-
onDrag: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
192
|
-
onDragCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
193
|
-
onDragEnd: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
194
|
-
onDragEndCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
195
|
-
onDragEnter: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
196
|
-
onDragEnterCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
197
|
-
onDragExit: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
198
|
-
onDragExitCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
199
|
-
onDragLeave: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
200
|
-
onDragLeaveCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
201
|
-
onDragOver: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
202
|
-
onDragOverCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
203
|
-
onDragStart: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
204
|
-
onDragStartCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
205
|
-
onDrop: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
206
|
-
onDropCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
207
|
-
onDurationChange: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
208
|
-
onDurationChangeCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
209
|
-
onEmptied: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
210
|
-
onEmptiedCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
211
|
-
onEncrypted: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
212
|
-
onEncryptedCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
213
|
-
onEnded: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
214
|
-
onEndedCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
215
|
-
onError: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
216
|
-
onErrorCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
217
|
-
onFocus: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
218
|
-
onFocusCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
219
|
-
onGotPointerCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
220
|
-
onGotPointerCaptureCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
221
|
-
onInput: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
222
|
-
onInputCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
223
|
-
onInvalid: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
224
|
-
onInvalidCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
225
|
-
onKeyDown: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
226
|
-
onKeyDownCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
227
|
-
onKeyPress: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
228
|
-
onKeyPressCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
229
|
-
onKeyUp: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
230
|
-
onKeyUpCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
231
|
-
onLoad: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
232
|
-
onLoadCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
233
|
-
onLoadedData: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
234
|
-
onLoadedDataCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
235
|
-
onLoadedMetadata: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
236
|
-
onLoadedMetadataCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
237
|
-
onLoadStart: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
238
|
-
onLoadStartCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
239
|
-
onLostPointerCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
240
|
-
onLostPointerCaptureCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
241
|
-
onMouseDown: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
242
|
-
onMouseDownCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
243
|
-
onMouseEnter: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
244
|
-
onMouseLeave: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
245
|
-
onMouseMove: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
246
|
-
onMouseMoveCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
247
|
-
onMouseOut: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
248
|
-
onMouseOutCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
249
|
-
onMouseOver: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
250
|
-
onMouseOverCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
251
|
-
onMouseUp: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
252
|
-
onMouseUpCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
253
|
-
onPaste: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
254
|
-
onPasteCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
255
|
-
onPause: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
256
|
-
onPauseCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
257
|
-
onPlay: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
258
|
-
onPlayCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
259
|
-
onPlaying: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
260
|
-
onPlayingCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
261
|
-
onPointerCancel: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
262
|
-
onPointerCancelCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
263
|
-
onPointerDown: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
264
|
-
onPointerDownCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
265
|
-
onPointerEnter: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
266
|
-
onPointerEnterCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
267
|
-
onPointerLeave: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
268
|
-
onPointerLeaveCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
269
|
-
onPointerMove: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
270
|
-
onPointerMoveCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
271
|
-
onPointerOut: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
272
|
-
onPointerOutCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
273
|
-
onPointerOver: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
274
|
-
onPointerOverCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
275
|
-
onPointerUp: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
276
|
-
onPointerUpCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
277
|
-
onProgress: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
278
|
-
onProgressCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
279
|
-
onRateChange: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
280
|
-
onRateChangeCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
281
|
-
onReset: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
282
|
-
onResetCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
283
|
-
onScroll: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
284
|
-
onScrollCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
285
|
-
onSeeked: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
286
|
-
onSeekedCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
287
|
-
onSeeking: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
288
|
-
onSeekingCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
289
|
-
onSelect: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
290
|
-
onSelectCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
291
|
-
onStalled: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
292
|
-
onStalledCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
293
|
-
onSubmit: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
294
|
-
onSubmitCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
295
|
-
onSuspend: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
296
|
-
onSuspendCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
297
|
-
onTimeUpdate: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
298
|
-
onTimeUpdateCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
299
|
-
onTouchCancel: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
300
|
-
onTouchCancelCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
301
|
-
onTouchEnd: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
302
|
-
onTouchEndCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
303
|
-
onTouchMove: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
304
|
-
onTouchMoveCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
305
|
-
onTouchStart: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
306
|
-
onTouchStartCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
307
|
-
onTransitionEnd: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
308
|
-
onTransitionEndCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
309
|
-
onVolumeChange: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
310
|
-
onVolumeChangeCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
311
|
-
onWaiting: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
312
|
-
onWaitingCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
313
|
-
onWheel: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
314
|
-
onWheelCapture: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
315
|
-
open: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
316
|
-
optimum: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
317
|
-
pattern: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
318
|
-
placeholder: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
319
|
-
playsInline: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
320
|
-
poster: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
321
|
-
prefix: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
322
|
-
preload: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
323
|
-
property: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
324
|
-
radioGroup: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
325
|
-
readOnly: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
326
|
-
rel: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
327
|
-
required: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
328
|
-
resource: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
329
|
-
results: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
330
|
-
reversed: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
331
|
-
role: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
332
|
-
rows: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
333
|
-
rowSpan: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
334
|
-
sandbox: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
335
|
-
scope: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
336
|
-
scoped: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
337
|
-
scrolling: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
338
|
-
seamless: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
339
|
-
security: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
340
|
-
selected: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
341
|
-
shape: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
342
|
-
size: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
343
|
-
sizes: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
344
|
-
slot: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
345
|
-
span: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
346
|
-
spellCheck: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
347
|
-
src: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
348
|
-
srcDoc: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
349
|
-
srcLang: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
350
|
-
srcSet: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
351
|
-
start: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
352
|
-
step: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
353
|
-
style: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
354
|
-
summary: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
355
|
-
suppressContentEditableWarning: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
356
|
-
suppressHydrationWarning: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
357
|
-
tabIndex: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
358
|
-
target: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
359
|
-
title: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
360
|
-
translate: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
361
|
-
type: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
362
|
-
typeof: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
363
|
-
unselectable: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
364
|
-
useMap: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
365
|
-
value: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
366
|
-
vocab: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
367
|
-
width: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
368
|
-
wmode: reactDesc.PropTypes.any.description('-- hidden --'),
|
|
369
|
-
wrap: reactDesc.PropTypes.any.description('-- hidden --')
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
exports.globalAttributesPropTypes = globalAttributesPropTypes;
|
package/cjs/globalProps/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var useGetGlobalAttributes = require('./useGetGlobalAttributes.js');
|
|
6
|
-
var globalAttributesPropTypes = require('./globalAttributesPropTypes.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.useGetGlobalAttributes = useGetGlobalAttributes.useGetGlobalAttributes;
|
|
11
|
-
exports.globalAttributesPropTypes = globalAttributesPropTypes.globalAttributesPropTypes;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
8
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
|
9
|
-
var react = require('react');
|
|
10
|
-
var constants = require('./constants.js');
|
|
11
|
-
|
|
12
|
-
const useGetGlobalAttributes = (props, overrides) => {
|
|
13
|
-
const componentGlobalAttributes = react.useMemo(() => {
|
|
14
|
-
const globalAttributesObject = {};
|
|
15
|
-
Object.entries(props).forEach(_ref => {
|
|
16
|
-
let [key, value] = _ref;
|
|
17
|
-
|
|
18
|
-
if (key in constants.globalAttributes || key.startsWith('data-')) {
|
|
19
|
-
if (key in overrides && typeof value === 'function' && typeof overrides[key] === 'function') {
|
|
20
|
-
const newFunc = function () {
|
|
21
|
-
value(...arguments);
|
|
22
|
-
overrides[key](...arguments);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
globalAttributesObject[key] = newFunc;
|
|
26
|
-
} else {
|
|
27
|
-
globalAttributesObject[key] = value;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return globalAttributesObject;
|
|
32
|
-
}, [props, overrides]);
|
|
33
|
-
return componentGlobalAttributes;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.useGetGlobalAttributes = useGetGlobalAttributes;
|
package/cjs/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var useMemoMergePropsWithDefault = require('./defaultProps/useMemoMergePropsWithDefault.js');
|
|
6
|
-
var validator = require('./validation/validator.js');
|
|
7
|
-
var errorTemplates = require('./validation/errorTemplates.js');
|
|
8
|
-
var typescriptValidator = require('./validation/typescriptValidator.js');
|
|
9
|
-
var index = require('./getProps/index.js');
|
|
10
|
-
var useGetGlobalAttributes = require('./globalProps/useGetGlobalAttributes.js');
|
|
11
|
-
var globalAttributesPropTypes = require('./globalProps/globalAttributesPropTypes.js');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.useMemoMergePropsWithDefault = useMemoMergePropsWithDefault.useMemoMergePropsWithDefault;
|
|
16
|
-
exports.useValidatePropTypes = validator.useValidatePropTypes;
|
|
17
|
-
exports.throwRequiredError = errorTemplates.throwRequiredError;
|
|
18
|
-
exports.throwTypeError = errorTemplates.throwTypeError;
|
|
19
|
-
exports.useValidateTypescriptPropTypes = typescriptValidator.useValidateTypescriptPropTypes;
|
|
20
|
-
exports.validateTypescriptPropTypesImplementation = typescriptValidator.validateTypescriptPropTypesImplementation;
|
|
21
|
-
exports.getAriaProps = index.getAriaProps;
|
|
22
|
-
exports.getDataProps = index.getDataProps;
|
|
23
|
-
exports.useGetGlobalAttributes = useGetGlobalAttributes.useGetGlobalAttributes;
|
|
24
|
-
exports.globalAttributesPropTypes = globalAttributesPropTypes.globalAttributesPropTypes;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/es.string.replace.js');
|
|
6
|
-
|
|
7
|
-
/* eslint-disable max-params */
|
|
8
|
-
const throwTypeError = (componentName, validPropKey, invalidProp, validFormat) => {
|
|
9
|
-
throw new Error("".concat(componentName, ":: You are trying to pass a not valid \"").concat(validPropKey, "\" property, \n please provide a valid type.\n\n Received: ").concat(invalidProp, " (").concat(typeof invalidProp, ")\n Expected: (").concat(validFormat.replace('\n', ' or '), ")\n "));
|
|
10
|
-
};
|
|
11
|
-
const throwRequiredError = (componentName, validPropKey) => {
|
|
12
|
-
throw new Error("".concat(componentName, ":: Please provide a/an \"").concat(validPropKey, "\" property to use this component. \n This property is required.\n "));
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
exports.throwRequiredError = throwRequiredError;
|
|
16
|
-
exports.throwTypeError = throwTypeError;
|
package/cjs/validation/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var validator = require('./validator.js');
|
|
6
|
-
var errorTemplates = require('./errorTemplates.js');
|
|
7
|
-
var typescriptValidator = require('./typescriptValidator.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.useValidatePropTypes = validator.useValidatePropTypes;
|
|
12
|
-
exports.throwRequiredError = errorTemplates.throwRequiredError;
|
|
13
|
-
exports.throwTypeError = errorTemplates.throwTypeError;
|
|
14
|
-
exports.useValidateTypescriptPropTypes = typescriptValidator.useValidateTypescriptPropTypes;
|
|
15
|
-
exports.validateTypescriptPropTypesImplementation = typescriptValidator.validateTypescriptPropTypesImplementation;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
8
|
-
|
|
9
|
-
const isPrimitiveType = format => ['string', 'number', 'boolean'].includes(format);
|
|
10
|
-
const isUndefined = format => format === '"undefined"';
|
|
11
|
-
const isNull = format => format === '"null"';
|
|
12
|
-
const isUnion = format => {
|
|
13
|
-
let depth = 0;
|
|
14
|
-
let satisfies = false;
|
|
15
|
-
format.split('').forEach(char => {
|
|
16
|
-
if (['{', '('].includes(char)) depth += 1;else if (['}', ')'].includes(char)) depth -= 1;else if (char === '|' && depth === 0) satisfies = true;
|
|
17
|
-
});
|
|
18
|
-
return satisfies;
|
|
19
|
-
};
|
|
20
|
-
const isString = format => !isUnion(format) && format[0] === '"' && format.slice(-1) === '"';
|
|
21
|
-
const isArray = format => !isUnion(format) && format.slice(-2) === '[]';
|
|
22
|
-
const isObject = format => format === 'object' || !isUnion(format) && format[0] === '{' && format.slice(-1) === '}';
|
|
23
|
-
const isFunction = format => !isUnion(format) && format === '((...args: any[]) => any)';
|
|
24
|
-
const isJSXorNode = format => !isUnion(format) && ['React.ReactNode', 'JSX.Element'].includes(format);
|
|
25
|
-
const isSomethingWithParenthesis = format => !isUnion(format) && format[0] === '(' && format.slice(-1) === ')';
|
|
26
|
-
|
|
27
|
-
exports.isArray = isArray;
|
|
28
|
-
exports.isFunction = isFunction;
|
|
29
|
-
exports.isJSXorNode = isJSXorNode;
|
|
30
|
-
exports.isNull = isNull;
|
|
31
|
-
exports.isObject = isObject;
|
|
32
|
-
exports.isPrimitiveType = isPrimitiveType;
|
|
33
|
-
exports.isSomethingWithParenthesis = isSomethingWithParenthesis;
|
|
34
|
-
exports.isString = isString;
|
|
35
|
-
exports.isUndefined = isUndefined;
|
|
36
|
-
exports.isUnion = isUnion;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
6
|
-
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
-
require('core-js/modules/esnext.iterator.for-each.js');
|
|
8
|
-
|
|
9
|
-
/* eslint-disable complexity */
|
|
10
|
-
const typescriptObjectParser = format => {
|
|
11
|
-
const keyValuePairs = []; // State of the algorithm
|
|
12
|
-
|
|
13
|
-
let lastKey = '';
|
|
14
|
-
let lastValue = '';
|
|
15
|
-
let shouldAppendToKey = true;
|
|
16
|
-
|
|
17
|
-
const pushPair = () => {
|
|
18
|
-
if (lastKey) keyValuePairs.push([lastKey, lastValue]);
|
|
19
|
-
lastKey = '';
|
|
20
|
-
lastValue = '';
|
|
21
|
-
shouldAppendToKey = true;
|
|
22
|
-
}; // Complex -- but working -- logic
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let depth = 0;
|
|
26
|
-
format.split('').forEach(char => {
|
|
27
|
-
if (char === '{') {
|
|
28
|
-
depth += 1;
|
|
29
|
-
if (depth > 1) lastValue += char;
|
|
30
|
-
} else if (char === '}') {
|
|
31
|
-
if (depth > 1) lastValue += char;
|
|
32
|
-
depth -= 1;
|
|
33
|
-
if (depth === 1) pushPair();
|
|
34
|
-
} else if (char === ':') {
|
|
35
|
-
shouldAppendToKey = false;
|
|
36
|
-
if (depth > 1) lastValue += char;
|
|
37
|
-
} else if (char === ',') {
|
|
38
|
-
if (depth === 1) pushPair();else lastValue += char;
|
|
39
|
-
} else if (char === ' ') ; else if (shouldAppendToKey) lastKey += char;else lastValue += char;
|
|
40
|
-
});
|
|
41
|
-
pushPair();
|
|
42
|
-
return keyValuePairs;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
exports.typescriptObjectParser = typescriptObjectParser;
|