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