carbon-react 110.2.1 → 110.2.4
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/esm/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +1 -1
- package/esm/__internal__/checkable-input/checkable-input.component.d.ts +50 -0
- package/esm/__internal__/checkable-input/checkable-input.component.js +360 -98
- package/esm/__internal__/checkable-input/checkable-input.style.d.ts +11 -2
- package/esm/__internal__/checkable-input/checkable-input.style.js +0 -7
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.d.ts +31 -0
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +301 -45
- package/esm/__internal__/checkable-input/hidden-checkable-input.style.d.ts +1 -1
- package/esm/__internal__/checkable-input/index.d.ts +2 -5
- package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
- package/esm/__internal__/input/input.style.d.ts +1 -1
- package/esm/components/definition-list/dd.component.d.ts +4 -1
- package/esm/components/definition-list/dd.component.js +1 -0
- package/esm/components/definition-list/dl.component.d.ts +4 -1
- package/esm/components/definition-list/dl.component.js +1 -0
- package/esm/components/definition-list/dt.component.d.ts +4 -1
- package/esm/components/definition-list/dt.component.js +1 -0
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +1 -0
- package/esm/components/popover-container/popover-container.component.d.ts +2 -0
- package/esm/components/popover-container/popover-container.component.js +9 -4
- package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +1 -1
- package/lib/__internal__/checkable-input/checkable-input.component.d.ts +50 -0
- package/lib/__internal__/checkable-input/checkable-input.component.js +360 -98
- package/lib/__internal__/checkable-input/checkable-input.style.d.ts +11 -2
- package/lib/__internal__/checkable-input/checkable-input.style.js +1 -9
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.d.ts +31 -0
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +301 -45
- package/lib/__internal__/checkable-input/hidden-checkable-input.style.d.ts +1 -1
- package/lib/__internal__/checkable-input/index.d.ts +2 -5
- package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
- package/lib/__internal__/input/input.style.d.ts +1 -1
- package/lib/components/definition-list/dd.component.d.ts +4 -1
- package/lib/components/definition-list/dd.component.js +1 -0
- package/lib/components/definition-list/dl.component.d.ts +4 -1
- package/lib/components/definition-list/dl.component.js +1 -0
- package/lib/components/definition-list/dt.component.d.ts +4 -1
- package/lib/components/definition-list/dt.component.js +1 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +1 -0
- package/lib/components/popover-container/popover-container.component.d.ts +2 -0
- package/lib/components/popover-container/popover-container.component.js +9 -4
- package/package.json +1 -1
- package/esm/__internal__/checkable-input/checkable-input.d.ts +0 -55
- package/esm/__internal__/checkable-input/hidden-checkable-input.d.ts +0 -42
- package/lib/__internal__/checkable-input/checkable-input.d.ts +0 -55
- package/lib/__internal__/checkable-input/hidden-checkable-input.d.ts +0 -42
|
@@ -48,26 +48,26 @@ const HiddenCheckableInput = ({
|
|
|
48
48
|
|
|
49
49
|
const handleFocus = ev => {
|
|
50
50
|
if (props.onFocus) props.onFocus(ev);
|
|
51
|
-
if (onFocus) onFocus(
|
|
52
|
-
if (onFocusGroup) onFocusGroup(
|
|
51
|
+
if (onFocus) onFocus();
|
|
52
|
+
if (onFocusGroup) onFocusGroup();
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const handleBlur = ev => {
|
|
56
56
|
if (props.onBlur) props.onBlur(ev);
|
|
57
|
-
if (onBlur) onBlur(
|
|
58
|
-
if (onBlurGroup) onBlurGroup(
|
|
57
|
+
if (onBlur) onBlur();
|
|
58
|
+
if (onBlurGroup) onBlurGroup();
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
const handleMouseEnter = ev => {
|
|
62
62
|
if (props.onMouseEnter) props.onMouseEnter(ev);
|
|
63
|
-
if (onMouseEnter) onMouseEnter(
|
|
64
|
-
if (onMouseEnterGroup) onMouseEnterGroup(
|
|
63
|
+
if (onMouseEnter) onMouseEnter();
|
|
64
|
+
if (onMouseEnterGroup) onMouseEnterGroup();
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
const handleMouseLeave = ev => {
|
|
68
68
|
if (props.onMouseLeave) props.onMouseLeave(ev);
|
|
69
|
-
if (onMouseLeave) onMouseLeave(
|
|
70
|
-
if (onMouseLeaveGroup) onMouseLeaveGroup(
|
|
69
|
+
if (onMouseLeave) onMouseLeave();
|
|
70
|
+
if (onMouseLeaveGroup) onMouseLeaveGroup();
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
return /*#__PURE__*/_react.default.createElement(_hiddenCheckableInput.default, _extends({
|
|
@@ -91,43 +91,299 @@ const HiddenCheckableInput = ({
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
HiddenCheckableInput.propTypes = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
94
|
+
"about": _propTypes.default.string,
|
|
95
|
+
"accept": _propTypes.default.string,
|
|
96
|
+
"accessKey": _propTypes.default.string,
|
|
97
|
+
"alt": _propTypes.default.string,
|
|
98
|
+
"aria-activedescendant": _propTypes.default.string,
|
|
99
|
+
"aria-atomic": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
100
|
+
"aria-autocomplete": _propTypes.default.oneOf(["both", "inline", "list", "none"]),
|
|
101
|
+
"aria-busy": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
102
|
+
"aria-checked": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
|
|
103
|
+
"aria-colcount": _propTypes.default.number,
|
|
104
|
+
"aria-colindex": _propTypes.default.number,
|
|
105
|
+
"aria-colspan": _propTypes.default.number,
|
|
106
|
+
"aria-controls": _propTypes.default.string,
|
|
107
|
+
"aria-current": _propTypes.default.oneOfType([_propTypes.default.oneOf(["date", "false", "location", "page", "step", "time", "true"]), _propTypes.default.bool]),
|
|
108
|
+
"aria-describedby": _propTypes.default.string,
|
|
109
|
+
"aria-details": _propTypes.default.string,
|
|
110
|
+
"aria-disabled": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
111
|
+
"aria-dropeffect": _propTypes.default.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
|
|
112
|
+
"aria-errormessage": _propTypes.default.string,
|
|
113
|
+
"aria-expanded": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
114
|
+
"aria-flowto": _propTypes.default.string,
|
|
115
|
+
"aria-grabbed": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
116
|
+
"aria-haspopup": _propTypes.default.oneOfType([_propTypes.default.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), _propTypes.default.bool]),
|
|
117
|
+
"aria-hidden": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
118
|
+
"aria-invalid": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "grammar", "spelling", "true"]), _propTypes.default.bool]),
|
|
119
|
+
"aria-keyshortcuts": _propTypes.default.string,
|
|
120
|
+
"aria-label": _propTypes.default.string,
|
|
121
|
+
"aria-labelledby": _propTypes.default.string,
|
|
122
|
+
"aria-level": _propTypes.default.number,
|
|
123
|
+
"aria-live": _propTypes.default.oneOf(["assertive", "off", "polite"]),
|
|
124
|
+
"aria-modal": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
125
|
+
"aria-multiline": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
126
|
+
"aria-multiselectable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
127
|
+
"aria-orientation": _propTypes.default.oneOf(["horizontal", "vertical"]),
|
|
128
|
+
"aria-owns": _propTypes.default.string,
|
|
129
|
+
"aria-placeholder": _propTypes.default.string,
|
|
130
|
+
"aria-posinset": _propTypes.default.number,
|
|
131
|
+
"aria-pressed": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "mixed", "true"]), _propTypes.default.bool]),
|
|
132
|
+
"aria-readonly": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
133
|
+
"aria-relevant": _propTypes.default.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
|
|
134
|
+
"aria-required": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
135
|
+
"aria-roledescription": _propTypes.default.string,
|
|
136
|
+
"aria-rowcount": _propTypes.default.number,
|
|
137
|
+
"aria-rowindex": _propTypes.default.number,
|
|
138
|
+
"aria-rowspan": _propTypes.default.number,
|
|
139
|
+
"aria-selected": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
140
|
+
"aria-setsize": _propTypes.default.number,
|
|
141
|
+
"aria-sort": _propTypes.default.oneOf(["ascending", "descending", "none", "other"]),
|
|
142
|
+
"aria-valuemax": _propTypes.default.number,
|
|
143
|
+
"aria-valuemin": _propTypes.default.number,
|
|
144
|
+
"aria-valuenow": _propTypes.default.number,
|
|
145
|
+
"aria-valuetext": _propTypes.default.string,
|
|
146
|
+
"autoCapitalize": _propTypes.default.string,
|
|
147
|
+
"autoComplete": _propTypes.default.string,
|
|
148
|
+
"autoCorrect": _propTypes.default.string,
|
|
149
|
+
"autoFocus": _propTypes.default.bool,
|
|
150
|
+
"autoSave": _propTypes.default.string,
|
|
151
|
+
"capture": _propTypes.default.oneOfType([_propTypes.default.oneOf(["environment", "user"]), _propTypes.default.bool]),
|
|
152
|
+
"checked": _propTypes.default.bool,
|
|
153
|
+
"children": _propTypes.default.node,
|
|
154
|
+
"className": _propTypes.default.string,
|
|
155
|
+
"color": _propTypes.default.string,
|
|
156
|
+
"contentEditable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "inherit", "true"]), _propTypes.default.bool]),
|
|
157
|
+
"contextMenu": _propTypes.default.string,
|
|
158
|
+
"crossOrigin": _propTypes.default.string,
|
|
159
|
+
"css": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
160
|
+
"__emotion_styles": _propTypes.default.any.isRequired
|
|
161
|
+
}), _propTypes.default.string, _propTypes.default.bool]),
|
|
162
|
+
"dangerouslySetInnerHTML": _propTypes.default.shape({
|
|
163
|
+
"__html": _propTypes.default.string.isRequired
|
|
164
|
+
}),
|
|
165
|
+
"datatype": _propTypes.default.string,
|
|
166
|
+
"defaultChecked": _propTypes.default.bool,
|
|
167
|
+
"defaultValue": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.number, _propTypes.default.string]),
|
|
168
|
+
"dir": _propTypes.default.string,
|
|
169
|
+
"disabled": _propTypes.default.bool,
|
|
170
|
+
"draggable": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
171
|
+
"enterKeyHint": _propTypes.default.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
|
|
172
|
+
"form": _propTypes.default.string,
|
|
173
|
+
"formAction": _propTypes.default.string,
|
|
174
|
+
"formEncType": _propTypes.default.string,
|
|
175
|
+
"formMethod": _propTypes.default.string,
|
|
176
|
+
"formNoValidate": _propTypes.default.bool,
|
|
177
|
+
"formTarget": _propTypes.default.string,
|
|
178
|
+
"height": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
179
|
+
"hidden": _propTypes.default.bool,
|
|
180
|
+
"id": _propTypes.default.string,
|
|
181
|
+
"inlist": _propTypes.default.any,
|
|
182
|
+
"inputMode": _propTypes.default.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
|
|
183
|
+
"inputRef": _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
184
|
+
"current": _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.object]).isRequired
|
|
185
|
+
})]),
|
|
186
|
+
"is": _propTypes.default.string,
|
|
187
|
+
"itemID": _propTypes.default.string,
|
|
188
|
+
"itemProp": _propTypes.default.string,
|
|
189
|
+
"itemRef": _propTypes.default.string,
|
|
190
|
+
"itemScope": _propTypes.default.bool,
|
|
191
|
+
"itemType": _propTypes.default.string,
|
|
192
|
+
"lang": _propTypes.default.string,
|
|
193
|
+
"list": _propTypes.default.string,
|
|
194
|
+
"max": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
195
|
+
"maxLength": _propTypes.default.number,
|
|
196
|
+
"min": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
197
|
+
"minLength": _propTypes.default.number,
|
|
198
|
+
"multiple": _propTypes.default.bool,
|
|
199
|
+
"name": _propTypes.default.string,
|
|
200
|
+
"onAbort": _propTypes.default.func,
|
|
201
|
+
"onAbortCapture": _propTypes.default.func,
|
|
202
|
+
"onAnimationEnd": _propTypes.default.func,
|
|
203
|
+
"onAnimationEndCapture": _propTypes.default.func,
|
|
204
|
+
"onAnimationIteration": _propTypes.default.func,
|
|
205
|
+
"onAnimationIterationCapture": _propTypes.default.func,
|
|
206
|
+
"onAnimationStart": _propTypes.default.func,
|
|
207
|
+
"onAnimationStartCapture": _propTypes.default.func,
|
|
208
|
+
"onAuxClick": _propTypes.default.func,
|
|
209
|
+
"onAuxClickCapture": _propTypes.default.func,
|
|
210
|
+
"onBeforeInput": _propTypes.default.func,
|
|
211
|
+
"onBeforeInputCapture": _propTypes.default.func,
|
|
212
|
+
"onBlur": _propTypes.default.func,
|
|
213
|
+
"onBlurCapture": _propTypes.default.func,
|
|
214
|
+
"onCanPlay": _propTypes.default.func,
|
|
215
|
+
"onCanPlayCapture": _propTypes.default.func,
|
|
216
|
+
"onCanPlayThrough": _propTypes.default.func,
|
|
217
|
+
"onCanPlayThroughCapture": _propTypes.default.func,
|
|
218
|
+
"onChange": _propTypes.default.func,
|
|
219
|
+
"onChangeCapture": _propTypes.default.func,
|
|
220
|
+
"onClick": _propTypes.default.func,
|
|
221
|
+
"onClickCapture": _propTypes.default.func,
|
|
222
|
+
"onCompositionEnd": _propTypes.default.func,
|
|
223
|
+
"onCompositionEndCapture": _propTypes.default.func,
|
|
224
|
+
"onCompositionStart": _propTypes.default.func,
|
|
225
|
+
"onCompositionStartCapture": _propTypes.default.func,
|
|
226
|
+
"onCompositionUpdate": _propTypes.default.func,
|
|
227
|
+
"onCompositionUpdateCapture": _propTypes.default.func,
|
|
228
|
+
"onContextMenu": _propTypes.default.func,
|
|
229
|
+
"onContextMenuCapture": _propTypes.default.func,
|
|
230
|
+
"onCopy": _propTypes.default.func,
|
|
231
|
+
"onCopyCapture": _propTypes.default.func,
|
|
232
|
+
"onCut": _propTypes.default.func,
|
|
233
|
+
"onCutCapture": _propTypes.default.func,
|
|
234
|
+
"onDoubleClick": _propTypes.default.func,
|
|
235
|
+
"onDoubleClickCapture": _propTypes.default.func,
|
|
236
|
+
"onDrag": _propTypes.default.func,
|
|
237
|
+
"onDragCapture": _propTypes.default.func,
|
|
238
|
+
"onDragEnd": _propTypes.default.func,
|
|
239
|
+
"onDragEndCapture": _propTypes.default.func,
|
|
240
|
+
"onDragEnter": _propTypes.default.func,
|
|
241
|
+
"onDragEnterCapture": _propTypes.default.func,
|
|
242
|
+
"onDragExit": _propTypes.default.func,
|
|
243
|
+
"onDragExitCapture": _propTypes.default.func,
|
|
244
|
+
"onDragLeave": _propTypes.default.func,
|
|
245
|
+
"onDragLeaveCapture": _propTypes.default.func,
|
|
246
|
+
"onDragOver": _propTypes.default.func,
|
|
247
|
+
"onDragOverCapture": _propTypes.default.func,
|
|
248
|
+
"onDragStart": _propTypes.default.func,
|
|
249
|
+
"onDragStartCapture": _propTypes.default.func,
|
|
250
|
+
"onDrop": _propTypes.default.func,
|
|
251
|
+
"onDropCapture": _propTypes.default.func,
|
|
252
|
+
"onDurationChange": _propTypes.default.func,
|
|
253
|
+
"onDurationChangeCapture": _propTypes.default.func,
|
|
254
|
+
"onEmptied": _propTypes.default.func,
|
|
255
|
+
"onEmptiedCapture": _propTypes.default.func,
|
|
256
|
+
"onEncrypted": _propTypes.default.func,
|
|
257
|
+
"onEncryptedCapture": _propTypes.default.func,
|
|
258
|
+
"onEnded": _propTypes.default.func,
|
|
259
|
+
"onEndedCapture": _propTypes.default.func,
|
|
260
|
+
"onError": _propTypes.default.func,
|
|
261
|
+
"onErrorCapture": _propTypes.default.func,
|
|
262
|
+
"onFocus": _propTypes.default.func,
|
|
263
|
+
"onFocusCapture": _propTypes.default.func,
|
|
264
|
+
"onGotPointerCapture": _propTypes.default.func,
|
|
265
|
+
"onGotPointerCaptureCapture": _propTypes.default.func,
|
|
266
|
+
"onInput": _propTypes.default.func,
|
|
267
|
+
"onInputCapture": _propTypes.default.func,
|
|
268
|
+
"onInvalid": _propTypes.default.func,
|
|
269
|
+
"onInvalidCapture": _propTypes.default.func,
|
|
270
|
+
"onKeyDown": _propTypes.default.func,
|
|
271
|
+
"onKeyDownCapture": _propTypes.default.func,
|
|
272
|
+
"onKeyPress": _propTypes.default.func,
|
|
273
|
+
"onKeyPressCapture": _propTypes.default.func,
|
|
274
|
+
"onKeyUp": _propTypes.default.func,
|
|
275
|
+
"onKeyUpCapture": _propTypes.default.func,
|
|
276
|
+
"onLoad": _propTypes.default.func,
|
|
277
|
+
"onLoadCapture": _propTypes.default.func,
|
|
278
|
+
"onLoadedData": _propTypes.default.func,
|
|
279
|
+
"onLoadedDataCapture": _propTypes.default.func,
|
|
280
|
+
"onLoadedMetadata": _propTypes.default.func,
|
|
281
|
+
"onLoadedMetadataCapture": _propTypes.default.func,
|
|
282
|
+
"onLoadStart": _propTypes.default.func,
|
|
283
|
+
"onLoadStartCapture": _propTypes.default.func,
|
|
284
|
+
"onLostPointerCapture": _propTypes.default.func,
|
|
285
|
+
"onLostPointerCaptureCapture": _propTypes.default.func,
|
|
286
|
+
"onMouseDown": _propTypes.default.func,
|
|
287
|
+
"onMouseDownCapture": _propTypes.default.func,
|
|
288
|
+
"onMouseEnter": _propTypes.default.func,
|
|
289
|
+
"onMouseLeave": _propTypes.default.func,
|
|
290
|
+
"onMouseMove": _propTypes.default.func,
|
|
291
|
+
"onMouseMoveCapture": _propTypes.default.func,
|
|
292
|
+
"onMouseOut": _propTypes.default.func,
|
|
293
|
+
"onMouseOutCapture": _propTypes.default.func,
|
|
294
|
+
"onMouseOver": _propTypes.default.func,
|
|
295
|
+
"onMouseOverCapture": _propTypes.default.func,
|
|
296
|
+
"onMouseUp": _propTypes.default.func,
|
|
297
|
+
"onMouseUpCapture": _propTypes.default.func,
|
|
298
|
+
"onPaste": _propTypes.default.func,
|
|
299
|
+
"onPasteCapture": _propTypes.default.func,
|
|
300
|
+
"onPause": _propTypes.default.func,
|
|
301
|
+
"onPauseCapture": _propTypes.default.func,
|
|
302
|
+
"onPlay": _propTypes.default.func,
|
|
303
|
+
"onPlayCapture": _propTypes.default.func,
|
|
304
|
+
"onPlaying": _propTypes.default.func,
|
|
305
|
+
"onPlayingCapture": _propTypes.default.func,
|
|
306
|
+
"onPointerCancel": _propTypes.default.func,
|
|
307
|
+
"onPointerCancelCapture": _propTypes.default.func,
|
|
308
|
+
"onPointerDown": _propTypes.default.func,
|
|
309
|
+
"onPointerDownCapture": _propTypes.default.func,
|
|
310
|
+
"onPointerEnter": _propTypes.default.func,
|
|
311
|
+
"onPointerEnterCapture": _propTypes.default.func,
|
|
312
|
+
"onPointerLeave": _propTypes.default.func,
|
|
313
|
+
"onPointerLeaveCapture": _propTypes.default.func,
|
|
314
|
+
"onPointerMove": _propTypes.default.func,
|
|
315
|
+
"onPointerMoveCapture": _propTypes.default.func,
|
|
316
|
+
"onPointerOut": _propTypes.default.func,
|
|
317
|
+
"onPointerOutCapture": _propTypes.default.func,
|
|
318
|
+
"onPointerOver": _propTypes.default.func,
|
|
319
|
+
"onPointerOverCapture": _propTypes.default.func,
|
|
320
|
+
"onPointerUp": _propTypes.default.func,
|
|
321
|
+
"onPointerUpCapture": _propTypes.default.func,
|
|
322
|
+
"onProgress": _propTypes.default.func,
|
|
323
|
+
"onProgressCapture": _propTypes.default.func,
|
|
324
|
+
"onRateChange": _propTypes.default.func,
|
|
325
|
+
"onRateChangeCapture": _propTypes.default.func,
|
|
326
|
+
"onReset": _propTypes.default.func,
|
|
327
|
+
"onResetCapture": _propTypes.default.func,
|
|
328
|
+
"onScroll": _propTypes.default.func,
|
|
329
|
+
"onScrollCapture": _propTypes.default.func,
|
|
330
|
+
"onSeeked": _propTypes.default.func,
|
|
331
|
+
"onSeekedCapture": _propTypes.default.func,
|
|
332
|
+
"onSeeking": _propTypes.default.func,
|
|
333
|
+
"onSeekingCapture": _propTypes.default.func,
|
|
334
|
+
"onSelect": _propTypes.default.func,
|
|
335
|
+
"onSelectCapture": _propTypes.default.func,
|
|
336
|
+
"onStalled": _propTypes.default.func,
|
|
337
|
+
"onStalledCapture": _propTypes.default.func,
|
|
338
|
+
"onSubmit": _propTypes.default.func,
|
|
339
|
+
"onSubmitCapture": _propTypes.default.func,
|
|
340
|
+
"onSuspend": _propTypes.default.func,
|
|
341
|
+
"onSuspendCapture": _propTypes.default.func,
|
|
342
|
+
"onTimeUpdate": _propTypes.default.func,
|
|
343
|
+
"onTimeUpdateCapture": _propTypes.default.func,
|
|
344
|
+
"onTouchCancel": _propTypes.default.func,
|
|
345
|
+
"onTouchCancelCapture": _propTypes.default.func,
|
|
346
|
+
"onTouchEnd": _propTypes.default.func,
|
|
347
|
+
"onTouchEndCapture": _propTypes.default.func,
|
|
348
|
+
"onTouchMove": _propTypes.default.func,
|
|
349
|
+
"onTouchMoveCapture": _propTypes.default.func,
|
|
350
|
+
"onTouchStart": _propTypes.default.func,
|
|
351
|
+
"onTouchStartCapture": _propTypes.default.func,
|
|
352
|
+
"onTransitionEnd": _propTypes.default.func,
|
|
353
|
+
"onTransitionEndCapture": _propTypes.default.func,
|
|
354
|
+
"onVolumeChange": _propTypes.default.func,
|
|
355
|
+
"onVolumeChangeCapture": _propTypes.default.func,
|
|
356
|
+
"onWaiting": _propTypes.default.func,
|
|
357
|
+
"onWaitingCapture": _propTypes.default.func,
|
|
358
|
+
"onWheel": _propTypes.default.func,
|
|
359
|
+
"onWheelCapture": _propTypes.default.func,
|
|
360
|
+
"pattern": _propTypes.default.string,
|
|
361
|
+
"placeholder": _propTypes.default.string,
|
|
362
|
+
"prefix": _propTypes.default.string,
|
|
363
|
+
"property": _propTypes.default.string,
|
|
364
|
+
"radioGroup": _propTypes.default.string,
|
|
365
|
+
"readOnly": _propTypes.default.bool,
|
|
366
|
+
"required": _propTypes.default.bool,
|
|
367
|
+
"resource": _propTypes.default.string,
|
|
368
|
+
"results": _propTypes.default.number,
|
|
369
|
+
"role": _propTypes.default.string,
|
|
370
|
+
"security": _propTypes.default.string,
|
|
371
|
+
"slot": _propTypes.default.string,
|
|
372
|
+
"spellCheck": _propTypes.default.oneOfType([_propTypes.default.oneOf(["false", "true"]), _propTypes.default.bool]),
|
|
373
|
+
"src": _propTypes.default.string,
|
|
374
|
+
"step": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
375
|
+
"style": _propTypes.default.object,
|
|
376
|
+
"suppressContentEditableWarning": _propTypes.default.bool,
|
|
377
|
+
"suppressHydrationWarning": _propTypes.default.bool,
|
|
378
|
+
"tabIndex": _propTypes.default.number,
|
|
379
|
+
"title": _propTypes.default.string,
|
|
380
|
+
"translate": _propTypes.default.oneOf(["no", "yes"]),
|
|
381
|
+
"type": _propTypes.default.string.isRequired,
|
|
382
|
+
"typeof": _propTypes.default.string,
|
|
383
|
+
"unselectable": _propTypes.default.oneOf(["off", "on"]),
|
|
384
|
+
"value": _propTypes.default.string,
|
|
385
|
+
"vocab": _propTypes.default.string,
|
|
386
|
+
"width": _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
131
387
|
};
|
|
132
388
|
|
|
133
389
|
var _default = /*#__PURE__*/_react.default.memo(HiddenCheckableInput);
|
|
@@ -2,5 +2,5 @@ import { CommonInputPresentationProps } from "./input-presentation.component";
|
|
|
2
2
|
import { InputContextProps } from "../input-behaviour";
|
|
3
3
|
import { CarbonProviderProps } from "../../components/carbon-provider";
|
|
4
4
|
export declare const StyledInputPresentationContainer: import("styled-components").StyledComponent<"div", any, Pick<CommonInputPresentationProps, "inputWidth">, never>;
|
|
5
|
-
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "
|
|
5
|
+
declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "align" | "readOnly" | "size"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
|
|
6
6
|
export default InputPresentationStyle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CommonInputProps } from "./input.component";
|
|
2
|
-
declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "
|
|
2
|
+
declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly">, never>;
|
|
3
3
|
export default StyledInput;
|
|
@@ -4,5 +4,8 @@ export interface DdProps extends SpaceProps {
|
|
|
4
4
|
/** Prop for what will render in the `<Dd></Dd>` tags */
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const Dd:
|
|
7
|
+
declare const Dd: {
|
|
8
|
+
({ children, ...rest }: DdProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
8
11
|
export default Dd;
|
|
@@ -5,5 +5,8 @@ export interface DlProps extends SpaceProps, StyledDlProps, StyledDtDivProps, St
|
|
|
5
5
|
/** prop to render children. */
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const Dl:
|
|
8
|
+
declare const Dl: {
|
|
9
|
+
({ children, w, dtTextAlign, ddTextAlign, asSingleColumn, ...rest }: DlProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
9
12
|
export default Dl;
|
|
@@ -4,5 +4,8 @@ export interface DtProps extends SpaceProps {
|
|
|
4
4
|
/** Prop for what will render in the `<Dd></Dd>` tags */
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare const Dt:
|
|
7
|
+
declare const Dt: {
|
|
8
|
+
({ children, ...rest }: DtProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
8
11
|
export default Dt;
|
|
@@ -37,20 +37,25 @@ const renderOpen = ({
|
|
|
37
37
|
"data-element": dataElement,
|
|
38
38
|
ref,
|
|
39
39
|
"aria-label": ariaLabel,
|
|
40
|
-
id
|
|
40
|
+
id,
|
|
41
|
+
"aria-expanded": ariaExpanded,
|
|
42
|
+
"aria-haspopup": ariaHasPopup
|
|
41
43
|
}) => /*#__PURE__*/_react.default.createElement(_popoverContainer.PopoverContainerOpenIcon, {
|
|
42
44
|
tabIndex: tabIndex,
|
|
43
45
|
onAction: onClick,
|
|
44
46
|
"data-element": dataElement,
|
|
45
47
|
ref: ref,
|
|
46
48
|
"aria-label": ariaLabel,
|
|
47
|
-
"aria-haspopup":
|
|
49
|
+
"aria-haspopup": ariaHasPopup,
|
|
50
|
+
"aria-expanded": ariaExpanded,
|
|
48
51
|
id: id
|
|
49
52
|
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
50
53
|
type: "settings"
|
|
51
54
|
}));
|
|
52
55
|
|
|
53
56
|
renderOpen.propTypes = {
|
|
57
|
+
"aria-expanded": _propTypes.default.bool.isRequired,
|
|
58
|
+
"aria-haspopup": _propTypes.default.oneOf(["dialog"]).isRequired,
|
|
54
59
|
"aria-label": _propTypes.default.string,
|
|
55
60
|
"data-element": _propTypes.default.string.isRequired,
|
|
56
61
|
"id": _propTypes.default.string,
|
|
@@ -143,6 +148,8 @@ const PopoverContainer = ({
|
|
|
143
148
|
|
|
144
149
|
const renderOpenComponentProps = {
|
|
145
150
|
tabIndex: isOpen ? -1 : 0,
|
|
151
|
+
"aria-expanded": isOpen,
|
|
152
|
+
"aria-haspopup": "dialog",
|
|
146
153
|
isOpen,
|
|
147
154
|
"data-element": "popover-container-open-component",
|
|
148
155
|
onClick: handleOpenButtonClick,
|
|
@@ -166,8 +173,6 @@ const PopoverContainer = ({
|
|
|
166
173
|
const handleClick = (0, _useClickAwayListener.default)(handleClickAway, "mousedown");
|
|
167
174
|
return /*#__PURE__*/_react.default.createElement(_popoverContainer.PopoverContainerWrapperStyle, {
|
|
168
175
|
"data-component": "popover-container",
|
|
169
|
-
role: "region",
|
|
170
|
-
"aria-labelledby": popoverContainerId,
|
|
171
176
|
onMouseDown: handleClick
|
|
172
177
|
}, renderOpenComponent(renderOpenComponentProps), /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
|
|
173
178
|
in: isOpen,
|
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import { ValidationProps } from "../validations";
|
|
4
|
-
import { CommonHiddenCheckableInputProps } from "./hidden-checkable-input";
|
|
5
|
-
|
|
6
|
-
export interface CommonCheckableInputProps
|
|
7
|
-
extends ValidationProps,
|
|
8
|
-
CommonHiddenCheckableInputProps {
|
|
9
|
-
/** If true, the component will be disabled */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Help content to be displayed under an input */
|
|
12
|
-
fieldHelp?: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* If true, the FieldHelp will be displayed inline
|
|
15
|
-
* To be used with labelInline prop set to true
|
|
16
|
-
*/
|
|
17
|
-
fieldHelpInline?: boolean;
|
|
18
|
-
/** Unique Identifier for the input. Will use a randomly generated GUID if none is provided */
|
|
19
|
-
id?: string;
|
|
20
|
-
/** Sets percentage-based input width */
|
|
21
|
-
inputWidth?: number | string;
|
|
22
|
-
/** Label content */
|
|
23
|
-
label?: React.ReactNode;
|
|
24
|
-
/** The content for the help tooltip, to appear next to the Label */
|
|
25
|
-
labelHelp?: string | React.ReactNode;
|
|
26
|
-
/** Spacing between label and a field for inline label, given number will be multiplied by base spacing unit (8) */
|
|
27
|
-
labelSpacing?: 1 | 2;
|
|
28
|
-
/** Label width */
|
|
29
|
-
labelWidth?: number;
|
|
30
|
-
/** Flag to configure component as mandatory */
|
|
31
|
-
required?: boolean;
|
|
32
|
-
/** If true the label switches position with the input */
|
|
33
|
-
reverse?: boolean;
|
|
34
|
-
/** Size of the component */
|
|
35
|
-
size?: "small" | "large";
|
|
36
|
-
/** The id of the element that labels the input */
|
|
37
|
-
ariaLabelledBy?: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface CheckableInputProps extends CommonCheckableInputProps {
|
|
41
|
-
/** Used to set the visible aspect of the input (i.e. the checkbox sprite, input slider etc) */
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
/** HTML type attribute of the input */
|
|
44
|
-
type: string;
|
|
45
|
-
/** Value passed to the input */
|
|
46
|
-
value?: string;
|
|
47
|
-
/** Text alignment of the label */
|
|
48
|
-
labelAlign?: "left" | "right";
|
|
49
|
-
/** When true label is inline */
|
|
50
|
-
labelInline?: boolean;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
declare function CheckableInput(props: CheckableInputProps): JSX.Element;
|
|
54
|
-
|
|
55
|
-
export default CheckableInput;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
export interface CommonHiddenCheckableInputProps
|
|
4
|
-
extends Omit<
|
|
5
|
-
React.InputHTMLAttributes<HTMLInputElement>,
|
|
6
|
-
"value" | "size" | "type"
|
|
7
|
-
> {
|
|
8
|
-
/** If true the Component will be focused when page load */
|
|
9
|
-
autoFocus?: boolean;
|
|
10
|
-
/** Checked state of the input */
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
/** Input name */
|
|
13
|
-
name?: string;
|
|
14
|
-
/** OnChange event handler */
|
|
15
|
-
onChange?: (ev: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
/** OnFocus event handler */
|
|
17
|
-
onFocus?: (ev: React.FocusEvent<HTMLInputElement>) => void;
|
|
18
|
-
/** Blur event handler */
|
|
19
|
-
onBlur?: (ev: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
-
/** OnMouseLeave event handler */
|
|
21
|
-
onMouseLeave?: (ev: React.MouseEvent<HTMLInputElement>) => void;
|
|
22
|
-
/** OnMouseEnter event handler */
|
|
23
|
-
onMouseEnter?: (ev: React.MouseEvent<HTMLInputElement>) => void;
|
|
24
|
-
/** Value of the input */
|
|
25
|
-
value?: string;
|
|
26
|
-
/** A callback to retrieve the input reference */
|
|
27
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface HiddenCheckableInputProps
|
|
31
|
-
extends CommonHiddenCheckableInputProps {
|
|
32
|
-
/** HTML type attribute of the input */
|
|
33
|
-
type: string;
|
|
34
|
-
/** Role attribute of the input */
|
|
35
|
-
role?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare function HiddenCheckableInput(
|
|
39
|
-
props: HiddenCheckableInputProps
|
|
40
|
-
): JSX.Element;
|
|
41
|
-
|
|
42
|
-
export default HiddenCheckableInput;
|