es-components 21.14.0 → 21.14.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/bundle/main.min.js +9 -9
- package/cjs/index.js +663 -698
- package/lib/index.js +661 -695
- package/package.json +3 -3
- package/types/src/components/base/icons/FullColorIcon.d.ts +1 -1
- package/types/src/components/base/icons/Icon.d.ts +3 -4
- package/types/src/components/base/icons/IconContext.d.ts +0 -1
- package/types/src/components/base/icons/useIconStyles.d.ts +1 -1
- package/types/src/components/containers/drawer/DrawerContext.d.ts +0 -1
- package/types/src/components/containers/drawer/DrawerPanel.d.ts +12 -13
- package/types/src/components/containers/form/Form.d.ts +1 -1
- package/types/src/components/containers/loading-skeleton/LoadingSkeleton.d.ts +2 -2
- package/types/src/components/containers/menu/Menu.d.ts +5 -4
- package/types/src/components/containers/menu/MenuSection.d.ts +4 -4
- package/types/src/components/containers/prompt/Prompt.d.ts +3 -3
- package/types/src/components/containers/tabPanels/Tab.d.ts +4 -4
- package/types/src/components/containers/tabPanels/TabPanel.d.ts +2 -2
- package/types/src/components/containers/table/Table.d.ts +4 -4
- package/types/src/components/containers/tooltip/Tooltip.d.ts +8 -8
- package/types/src/components/controls/AdditionalHelp.d.ts +1 -1
- package/types/src/components/controls/Control.d.ts +3 -3
- package/types/src/components/controls/answer-group/AnswerButton.d.ts +17 -19
- package/types/src/components/controls/answer-group/AnswerGroup.d.ts +1 -1
- package/types/src/components/controls/buttons/ActionButton.d.ts +13 -301
- package/types/src/components/controls/buttons/Button.d.ts +7 -294
- package/types/src/components/controls/buttons/ButtonBase.d.ts +3 -285
- package/types/src/components/controls/buttons/DropdownButton.d.ts +9 -9
- package/types/src/components/controls/buttons/IconButton.d.ts +9 -9
- package/types/src/components/controls/buttons/LinkButton.d.ts +1 -282
- package/types/src/components/controls/buttons/OutlineButton.d.ts +15 -305
- package/types/src/components/controls/buttons/PopoverLink.d.ts +1 -283
- package/types/src/components/controls/buttons/ToggleButton.d.ts +9 -9
- package/types/src/components/controls/buttons/features/withLoadingStateWhileRunning.d.ts +9 -9
- package/types/src/components/controls/checkbox/CheckAllBox.d.ts +26 -30
- package/types/src/components/controls/checkbox/Checkbox.d.ts +28 -32
- package/types/src/components/controls/dropdown/Dropdown.d.ts +29 -31
- package/types/src/components/controls/radio-buttons/RadioButton.d.ts +14 -16
- package/types/src/components/controls/radio-buttons/RadioGroup.d.ts +3 -10
- package/types/src/components/controls/radio-buttons/RadioGroupContext.d.ts +4 -4
- package/types/src/components/controls/switch/Switch.d.ts +7 -7
- package/types/src/components/controls/textbox/InputBase.d.ts +54 -62
- package/types/src/components/controls/textbox/MaskedTextbox.d.ts +15 -18
- package/types/src/components/controls/textbox/Textbox.d.ts +28 -32
- package/types/src/components/controls/textbox/inputMaskType.d.ts +0 -1
- package/types/src/components/navigation/Navigation.d.ts +2 -2
- package/types/src/components/navigation/NavigationItem.d.ts +4 -4
- package/types/src/components/patterns/callToAction/CallToAction.d.ts +1 -1
- package/types/src/components/patterns/callToAction/LightCallToAction.d.ts +1 -1
- package/types/src/components/patterns/dateInput/DateInput.d.ts +6 -6
- package/types/src/components/patterns/dateInput/Day.d.ts +2 -2
- package/types/src/components/patterns/dateInput/Month.d.ts +4 -4
- package/types/src/components/patterns/dateInput/Year.d.ts +2 -2
- package/types/src/components/patterns/datepicker/DatePicker.d.ts +2 -2
- package/types/src/components/patterns/datepicker/ReactDatePickerPropTypes.d.ts +1 -1
- package/types/src/components/patterns/datepicker/datePickerStyles.d.ts +1 -1
- package/types/src/components/patterns/incrementer/Incrementer.d.ts +6 -6
- package/types/src/components/patterns/progress-tracker/ProgressTracker.d.ts +18 -19
- package/types/src/components/patterns/selectionDrawer/SelectionDrawer.d.ts +9 -8
- package/types/src/components/patterns/selectionDrawer/SelectionDrawerItem.d.ts +17 -10
- package/types/src/components/patterns/selectionDrawer/SelectionDrawerProvider.d.ts +2 -4
- package/types/src/components/patterns/starRating/StarRating.d.ts +5 -5
- package/types/src/components/patterns/starRating/StarRatingExplanation.d.ts +1 -1
- package/types/src/components/patterns/statusTracker/StatusTracker.d.ts +2 -2
- package/types/src/components/util/RootCloseWrapper.d.ts +1 -1
- package/types/src/components/util/StyleReset.d.ts +1 -1
- package/types/src/components/util/callRef.d.ts +1 -1
- package/types/src/components/util/htmlProps/button.d.ts +0 -1
- package/types/src/components/util/isParseableDate.d.ts +0 -1
- package/types/src/components/util/useRootNode.d.ts +1 -1
- package/types/src/components/util/withWindowSize.d.ts +4 -3
- package/types/src/global.d.ts +2 -1
- package/types/src/hooks/useMountedOnlyState.d.ts +0 -1
- package/types/src/index.d.ts +29 -30
- package/types/tsconfig.tsbuildinfo +1 -0
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ValidationSelectionColors } from "../radio-buttons/RadioButton";
|
|
4
4
|
export declare const CheckboxLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
5
|
-
disabled?: boolean
|
|
5
|
+
disabled?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const CheckboxInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const CheckboxDisplayWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -15,7 +15,7 @@ export type CheckboxProps = Override<JSXElementProps<'input'>, {
|
|
|
15
15
|
}>;
|
|
16
16
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key">, "ref">, "displayClassName"> & {
|
|
17
17
|
/** Applies as className on the display wrapper. */
|
|
18
|
-
displayClassName?: string
|
|
18
|
+
displayClassName?: string;
|
|
19
19
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
20
20
|
export declare const propTypes: {
|
|
21
21
|
/** applies to the display wrapper */
|
|
@@ -25,8 +25,6 @@ export declare const propTypes: {
|
|
|
25
25
|
style: PropTypes.Requireable<React.CSSProperties | undefined> | PropTypes.Validator<React.CSSProperties | undefined>;
|
|
26
26
|
title: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
27
27
|
pattern: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
28
|
-
type: PropTypes.Requireable<React.HTMLInputTypeAttribute | undefined> | PropTypes.Validator<React.HTMLInputTypeAttribute | undefined>;
|
|
29
|
-
name: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
30
28
|
suppressHydrationWarning: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
31
29
|
className: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
32
30
|
color: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
@@ -35,6 +33,8 @@ export declare const propTypes: {
|
|
|
35
33
|
lang: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
36
34
|
max: PropTypes.Requireable<string | number | undefined> | PropTypes.Validator<string | number | undefined>;
|
|
37
35
|
min: PropTypes.Requireable<string | number | undefined> | PropTypes.Validator<string | number | undefined>;
|
|
36
|
+
name: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
37
|
+
type: PropTypes.Requireable<React.HTMLInputTypeAttribute | undefined> | PropTypes.Validator<React.HTMLInputTypeAttribute | undefined>;
|
|
38
38
|
width: PropTypes.Requireable<string | number | undefined> | PropTypes.Validator<string | number | undefined>;
|
|
39
39
|
role: PropTypes.Requireable<React.AriaRole | undefined> | PropTypes.Validator<React.AriaRole | undefined>;
|
|
40
40
|
tabIndex: PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
@@ -50,7 +50,7 @@ export declare const propTypes: {
|
|
|
50
50
|
"aria-colindextext": PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
51
51
|
"aria-colspan": PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
52
52
|
"aria-controls": PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
53
|
-
"aria-current": PropTypes.Requireable<boolean | "time" | "
|
|
53
|
+
"aria-current": PropTypes.Requireable<boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined> | PropTypes.Validator<boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined>;
|
|
54
54
|
"aria-describedby": PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
55
55
|
"aria-description": PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
56
56
|
"aria-details": PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
@@ -236,9 +236,7 @@ export declare const propTypes: {
|
|
|
236
236
|
onPointerCancel: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
237
237
|
onPointerCancelCapture: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
238
238
|
onPointerEnter: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
239
|
-
onPointerEnterCapture: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
240
239
|
onPointerLeave: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
241
|
-
onPointerLeaveCapture: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
242
240
|
onPointerOver: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
243
241
|
onPointerOverCapture: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
244
242
|
onPointerOut: PropTypes.Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
@@ -260,17 +258,17 @@ export declare const propTypes: {
|
|
|
260
258
|
onTransitionEnd: PropTypes.Requireable<React.TransitionEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.TransitionEventHandler<HTMLInputElement> | undefined>;
|
|
261
259
|
onTransitionEndCapture: PropTypes.Requireable<React.TransitionEventHandler<HTMLInputElement> | undefined> | PropTypes.Validator<React.TransitionEventHandler<HTMLInputElement> | undefined>;
|
|
262
260
|
css: PropTypes.Requireable<import("styled-components").CSSProp | undefined> | PropTypes.Validator<import("styled-components").CSSProp | undefined>;
|
|
263
|
-
list: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
264
|
-
step: PropTypes.Requireable<string | number | undefined> | PropTypes.Validator<string | number | undefined>;
|
|
265
261
|
defaultChecked: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
266
262
|
defaultValue: PropTypes.Requireable<string | number | readonly string[] | undefined> | PropTypes.Validator<string | number | readonly string[] | undefined>;
|
|
267
263
|
suppressContentEditableWarning: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
268
264
|
accessKey: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
265
|
+
autoCapitalize: PropTypes.Requireable<(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined> | PropTypes.Validator<(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined>;
|
|
269
266
|
autoFocus: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
270
267
|
contentEditable: PropTypes.Requireable<"inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined> | PropTypes.Validator<"inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined>;
|
|
271
268
|
contextMenu: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
272
269
|
dir: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
273
270
|
draggable: PropTypes.Requireable<(boolean | "true" | "false") | undefined> | PropTypes.Validator<(boolean | "true" | "false") | undefined>;
|
|
271
|
+
enterKeyHint: PropTypes.Requireable<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined> | PropTypes.Validator<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined>;
|
|
274
272
|
hidden: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
275
273
|
nonce: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
276
274
|
spellCheck: PropTypes.Requireable<(boolean | "true" | "false") | undefined> | PropTypes.Validator<(boolean | "true" | "false") | undefined>;
|
|
@@ -287,7 +285,6 @@ export declare const propTypes: {
|
|
|
287
285
|
rev: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
288
286
|
typeof: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
289
287
|
vocab: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
290
|
-
autoCapitalize: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
291
288
|
autoCorrect: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
292
289
|
autoSave: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
293
290
|
itemProp: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
@@ -300,27 +297,28 @@ export declare const propTypes: {
|
|
|
300
297
|
unselectable: PropTypes.Requireable<"off" | "on" | undefined> | PropTypes.Validator<"off" | "on" | undefined>;
|
|
301
298
|
inputMode: PropTypes.Requireable<"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined> | PropTypes.Validator<"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined>;
|
|
302
299
|
is: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
303
|
-
size: PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
304
300
|
alt: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
305
301
|
src: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
306
|
-
value: PropTypes.Requireable<string | number | readonly string[] | undefined> | PropTypes.Validator<string | number | readonly string[] | undefined>;
|
|
307
|
-
accept: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
308
|
-
autoComplete: PropTypes.Requireable<React.HTMLInputAutoCompleteAttribute | undefined> | PropTypes.Validator<React.HTMLInputAutoCompleteAttribute | undefined>;
|
|
309
|
-
capture: PropTypes.Requireable<boolean | "user" | "environment" | undefined> | PropTypes.Validator<boolean | "user" | "environment" | undefined>;
|
|
310
|
-
checked: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
311
302
|
disabled: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
312
|
-
enterKeyHint: PropTypes.Requireable<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined> | PropTypes.Validator<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined>;
|
|
313
303
|
formAction: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
314
304
|
formEncType: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
315
305
|
formMethod: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
316
306
|
formNoValidate: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
317
307
|
formTarget: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
308
|
+
value: PropTypes.Requireable<string | number | readonly string[] | undefined> | PropTypes.Validator<string | number | readonly string[] | undefined>;
|
|
309
|
+
autoComplete: PropTypes.Requireable<React.HTMLInputAutoCompleteAttribute | undefined> | PropTypes.Validator<React.HTMLInputAutoCompleteAttribute | undefined>;
|
|
310
|
+
accept: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
311
|
+
capture: PropTypes.Requireable<boolean | "user" | "environment" | undefined> | PropTypes.Validator<boolean | "user" | "environment" | undefined>;
|
|
312
|
+
checked: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
313
|
+
list: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
318
314
|
maxLength: PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
319
315
|
minLength: PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
320
316
|
multiple: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
321
317
|
placeholder: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
322
318
|
readOnly: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
323
319
|
required: PropTypes.Requireable<boolean | undefined> | PropTypes.Validator<boolean | undefined>;
|
|
320
|
+
size: PropTypes.Requireable<number | undefined> | PropTypes.Validator<number | undefined>;
|
|
321
|
+
step: PropTypes.Requireable<string | number | undefined> | PropTypes.Validator<string | number | undefined>;
|
|
324
322
|
};
|
|
325
323
|
export declare const defaultProps: {
|
|
326
324
|
displayClassName: string;
|
|
@@ -329,8 +327,6 @@ export declare const defaultProps: {
|
|
|
329
327
|
style?: React.CSSProperties | undefined;
|
|
330
328
|
title?: string | undefined;
|
|
331
329
|
pattern?: string | undefined;
|
|
332
|
-
type?: React.HTMLInputTypeAttribute | undefined;
|
|
333
|
-
name?: string | undefined;
|
|
334
330
|
suppressHydrationWarning?: boolean | undefined;
|
|
335
331
|
className?: string | undefined;
|
|
336
332
|
color?: string | undefined;
|
|
@@ -339,6 +335,8 @@ export declare const defaultProps: {
|
|
|
339
335
|
lang?: string | undefined;
|
|
340
336
|
max?: string | number | undefined;
|
|
341
337
|
min?: string | number | undefined;
|
|
338
|
+
name?: string | undefined;
|
|
339
|
+
type?: React.HTMLInputTypeAttribute | undefined;
|
|
342
340
|
width?: string | number | undefined;
|
|
343
341
|
role?: React.AriaRole | undefined;
|
|
344
342
|
tabIndex?: number | undefined;
|
|
@@ -354,7 +352,7 @@ export declare const defaultProps: {
|
|
|
354
352
|
"aria-colindextext"?: string | undefined;
|
|
355
353
|
"aria-colspan"?: number | undefined;
|
|
356
354
|
"aria-controls"?: string | undefined;
|
|
357
|
-
"aria-current"?: boolean | "time" | "
|
|
355
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
358
356
|
"aria-describedby"?: string | undefined;
|
|
359
357
|
"aria-description"?: string | undefined;
|
|
360
358
|
"aria-details"?: string | undefined;
|
|
@@ -538,9 +536,7 @@ export declare const defaultProps: {
|
|
|
538
536
|
onPointerCancel?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
539
537
|
onPointerCancelCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
540
538
|
onPointerEnter?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
541
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
542
539
|
onPointerLeave?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
543
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
544
540
|
onPointerOver?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
545
541
|
onPointerOverCapture?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
546
542
|
onPointerOut?: React.PointerEventHandler<HTMLInputElement> | undefined;
|
|
@@ -562,17 +558,17 @@ export declare const defaultProps: {
|
|
|
562
558
|
onTransitionEnd?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
563
559
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
564
560
|
css?: import("styled-components").CSSProp | undefined;
|
|
565
|
-
list?: string | undefined;
|
|
566
|
-
step?: string | number | undefined;
|
|
567
561
|
defaultChecked?: boolean | undefined;
|
|
568
562
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
569
563
|
suppressContentEditableWarning?: boolean | undefined;
|
|
570
564
|
accessKey?: string | undefined;
|
|
565
|
+
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
571
566
|
autoFocus?: boolean | undefined;
|
|
572
567
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
573
568
|
contextMenu?: string | undefined;
|
|
574
569
|
dir?: string | undefined;
|
|
575
570
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
571
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
576
572
|
hidden?: boolean | undefined;
|
|
577
573
|
nonce?: string | undefined;
|
|
578
574
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -589,7 +585,6 @@ export declare const defaultProps: {
|
|
|
589
585
|
rev?: string | undefined;
|
|
590
586
|
typeof?: string | undefined;
|
|
591
587
|
vocab?: string | undefined;
|
|
592
|
-
autoCapitalize?: string | undefined;
|
|
593
588
|
autoCorrect?: string | undefined;
|
|
594
589
|
autoSave?: string | undefined;
|
|
595
590
|
itemProp?: string | undefined;
|
|
@@ -602,26 +597,27 @@ export declare const defaultProps: {
|
|
|
602
597
|
unselectable?: "off" | "on" | undefined;
|
|
603
598
|
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
604
599
|
is?: string | undefined;
|
|
605
|
-
size?: number | undefined;
|
|
606
600
|
alt?: string | undefined;
|
|
607
601
|
src?: string | undefined;
|
|
608
|
-
value?: string | number | readonly string[] | undefined;
|
|
609
|
-
accept?: string | undefined;
|
|
610
|
-
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
611
|
-
capture?: boolean | "user" | "environment" | undefined;
|
|
612
|
-
checked?: boolean | undefined;
|
|
613
602
|
disabled?: boolean | undefined;
|
|
614
|
-
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
615
603
|
formAction?: string | undefined;
|
|
616
604
|
formEncType?: string | undefined;
|
|
617
605
|
formMethod?: string | undefined;
|
|
618
606
|
formNoValidate?: boolean | undefined;
|
|
619
607
|
formTarget?: string | undefined;
|
|
608
|
+
value?: string | number | readonly string[] | undefined;
|
|
609
|
+
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
610
|
+
accept?: string | undefined;
|
|
611
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
612
|
+
checked?: boolean | undefined;
|
|
613
|
+
list?: string | undefined;
|
|
620
614
|
maxLength?: number | undefined;
|
|
621
615
|
minLength?: number | undefined;
|
|
622
616
|
multiple?: boolean | undefined;
|
|
623
617
|
placeholder?: string | undefined;
|
|
624
618
|
readOnly?: boolean | undefined;
|
|
625
619
|
required?: boolean | undefined;
|
|
620
|
+
size?: number | undefined;
|
|
621
|
+
step?: string | number | undefined;
|
|
626
622
|
};
|
|
627
623
|
export default Checkbox;
|
|
@@ -6,7 +6,7 @@ export type DropdownProps = JSXElementProps<'select'> & {
|
|
|
6
6
|
flat?: boolean;
|
|
7
7
|
};
|
|
8
8
|
declare const Dropdown: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "key">, "ref"> & {
|
|
9
|
-
flat?: boolean
|
|
9
|
+
flat?: boolean;
|
|
10
10
|
} & React.RefAttributes<HTMLSelectElement>>;
|
|
11
11
|
export declare const propTypes: {
|
|
12
12
|
/** Whether the input should be rendered as a flat-style input */
|
|
@@ -15,13 +15,13 @@ export declare const propTypes: {
|
|
|
15
15
|
slot?: React.Validator<string | null | undefined> | undefined;
|
|
16
16
|
style?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
17
17
|
title?: React.Validator<string | null | undefined> | undefined;
|
|
18
|
-
ref?: React.Validator<((instance: HTMLSelectElement | null) => void) | React.RefObject<HTMLSelectElement> | null | undefined> | undefined;
|
|
19
|
-
name?: React.Validator<string | null | undefined> | undefined;
|
|
18
|
+
ref?: React.Validator<((instance: HTMLSelectElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLSelectElement> | null | undefined> | undefined;
|
|
20
19
|
suppressHydrationWarning?: React.Validator<boolean | null | undefined> | undefined;
|
|
21
20
|
className?: React.Validator<string | null | undefined> | undefined;
|
|
22
21
|
color?: React.Validator<string | null | undefined> | undefined;
|
|
23
22
|
id?: React.Validator<string | null | undefined> | undefined;
|
|
24
23
|
lang?: React.Validator<string | null | undefined> | undefined;
|
|
24
|
+
name?: React.Validator<string | null | undefined> | undefined;
|
|
25
25
|
role?: React.Validator<React.AriaRole | null | undefined> | undefined;
|
|
26
26
|
tabIndex?: React.Validator<number | null | undefined> | undefined;
|
|
27
27
|
"aria-activedescendant"?: React.Validator<string | null | undefined> | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const propTypes: {
|
|
|
36
36
|
"aria-colindextext"?: React.Validator<string | null | undefined> | undefined;
|
|
37
37
|
"aria-colspan"?: React.Validator<number | null | undefined> | undefined;
|
|
38
38
|
"aria-controls"?: React.Validator<string | null | undefined> | undefined;
|
|
39
|
-
"aria-current"?: React.Validator<boolean | "time" | "
|
|
39
|
+
"aria-current"?: React.Validator<boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | null | undefined> | undefined;
|
|
40
40
|
"aria-describedby"?: React.Validator<string | null | undefined> | undefined;
|
|
41
41
|
"aria-description"?: React.Validator<string | null | undefined> | undefined;
|
|
42
42
|
"aria-details"?: React.Validator<string | null | undefined> | undefined;
|
|
@@ -220,9 +220,7 @@ export declare const propTypes: {
|
|
|
220
220
|
onPointerCancel?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
221
221
|
onPointerCancelCapture?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
222
222
|
onPointerEnter?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
223
|
-
onPointerEnterCapture?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
224
223
|
onPointerLeave?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
225
|
-
onPointerLeaveCapture?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
226
224
|
onPointerOver?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
227
225
|
onPointerOverCapture?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
228
226
|
onPointerOut?: React.Validator<React.PointerEventHandler<HTMLSelectElement> | null | undefined> | undefined;
|
|
@@ -249,11 +247,13 @@ export declare const propTypes: {
|
|
|
249
247
|
defaultValue?: React.Validator<string | number | readonly string[] | null | undefined> | undefined;
|
|
250
248
|
suppressContentEditableWarning?: React.Validator<boolean | null | undefined> | undefined;
|
|
251
249
|
accessKey?: React.Validator<string | null | undefined> | undefined;
|
|
250
|
+
autoCapitalize?: React.Validator<(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | null | undefined> | undefined;
|
|
252
251
|
autoFocus?: React.Validator<boolean | null | undefined> | undefined;
|
|
253
252
|
contentEditable?: React.Validator<"inherit" | (boolean | "true" | "false") | "plaintext-only" | null | undefined> | undefined;
|
|
254
253
|
contextMenu?: React.Validator<string | null | undefined> | undefined;
|
|
255
254
|
dir?: React.Validator<string | null | undefined> | undefined;
|
|
256
255
|
draggable?: React.Validator<(boolean | "true" | "false") | null | undefined> | undefined;
|
|
256
|
+
enterKeyHint?: React.Validator<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | null | undefined> | undefined;
|
|
257
257
|
hidden?: React.Validator<boolean | null | undefined> | undefined;
|
|
258
258
|
nonce?: React.Validator<string | null | undefined> | undefined;
|
|
259
259
|
spellCheck?: React.Validator<(boolean | "true" | "false") | null | undefined> | undefined;
|
|
@@ -270,7 +270,6 @@ export declare const propTypes: {
|
|
|
270
270
|
rev?: React.Validator<string | null | undefined> | undefined;
|
|
271
271
|
typeof?: React.Validator<string | null | undefined> | undefined;
|
|
272
272
|
vocab?: React.Validator<string | null | undefined> | undefined;
|
|
273
|
-
autoCapitalize?: React.Validator<string | null | undefined> | undefined;
|
|
274
273
|
autoCorrect?: React.Validator<string | null | undefined> | undefined;
|
|
275
274
|
autoSave?: React.Validator<string | null | undefined> | undefined;
|
|
276
275
|
itemProp?: React.Validator<string | null | undefined> | undefined;
|
|
@@ -283,12 +282,12 @@ export declare const propTypes: {
|
|
|
283
282
|
unselectable?: React.Validator<"off" | "on" | null | undefined> | undefined;
|
|
284
283
|
inputMode?: React.Validator<"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | null | undefined> | undefined;
|
|
285
284
|
is?: React.Validator<string | null | undefined> | undefined;
|
|
286
|
-
|
|
285
|
+
disabled?: React.Validator<boolean | null | undefined> | undefined;
|
|
287
286
|
value?: React.Validator<string | number | readonly string[] | null | undefined> | undefined;
|
|
288
287
|
autoComplete?: React.Validator<string | null | undefined> | undefined;
|
|
289
|
-
disabled?: React.Validator<boolean | null | undefined> | undefined;
|
|
290
288
|
multiple?: React.Validator<boolean | null | undefined> | undefined;
|
|
291
289
|
required?: React.Validator<boolean | null | undefined> | undefined;
|
|
290
|
+
size?: React.Validator<number | null | undefined> | undefined;
|
|
292
291
|
theme?: React.Validator<DefaultTheme | null | undefined> | undefined;
|
|
293
292
|
};
|
|
294
293
|
export declare const defaultProps: {
|
|
@@ -297,40 +296,40 @@ export declare const defaultProps: {
|
|
|
297
296
|
slot?: string | undefined;
|
|
298
297
|
style?: React.CSSProperties | undefined;
|
|
299
298
|
title?: string | undefined;
|
|
300
|
-
ref?: ((instance: HTMLSelectElement | null) => void) | React.RefObject<HTMLSelectElement> | null | undefined;
|
|
301
|
-
name?: string | undefined;
|
|
299
|
+
ref?: ((instance: HTMLSelectElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLSelectElement> | null | undefined;
|
|
302
300
|
suppressHydrationWarning?: boolean | undefined;
|
|
303
301
|
className?: string | undefined;
|
|
304
302
|
color?: string | undefined;
|
|
305
303
|
id?: string | undefined;
|
|
306
304
|
lang?: string | undefined;
|
|
305
|
+
name?: string | undefined;
|
|
307
306
|
role?: React.AriaRole | undefined;
|
|
308
307
|
tabIndex?: number | undefined;
|
|
309
308
|
"aria-activedescendant"?: string | undefined;
|
|
310
309
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
311
|
-
"aria-autocomplete"?: "
|
|
310
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
312
311
|
"aria-braillelabel"?: string | undefined;
|
|
313
312
|
"aria-brailleroledescription"?: string | undefined;
|
|
314
313
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
315
|
-
"aria-checked"?: boolean | "
|
|
314
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
316
315
|
"aria-colcount"?: number | undefined;
|
|
317
316
|
"aria-colindex"?: number | undefined;
|
|
318
317
|
"aria-colindextext"?: string | undefined;
|
|
319
318
|
"aria-colspan"?: number | undefined;
|
|
320
319
|
"aria-controls"?: string | undefined;
|
|
321
|
-
"aria-current"?: boolean | "
|
|
320
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
322
321
|
"aria-describedby"?: string | undefined;
|
|
323
322
|
"aria-description"?: string | undefined;
|
|
324
323
|
"aria-details"?: string | undefined;
|
|
325
324
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
326
|
-
"aria-dropeffect"?: "
|
|
325
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
327
326
|
"aria-errormessage"?: string | undefined;
|
|
328
327
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
329
328
|
"aria-flowto"?: string | undefined;
|
|
330
329
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
331
|
-
"aria-haspopup"?: boolean | "
|
|
330
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
332
331
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
333
|
-
"aria-invalid"?: boolean | "
|
|
332
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
334
333
|
"aria-keyshortcuts"?: string | undefined;
|
|
335
334
|
"aria-label"?: string | undefined;
|
|
336
335
|
"aria-labelledby"?: string | undefined;
|
|
@@ -343,9 +342,9 @@ export declare const defaultProps: {
|
|
|
343
342
|
"aria-owns"?: string | undefined;
|
|
344
343
|
"aria-placeholder"?: string | undefined;
|
|
345
344
|
"aria-posinset"?: number | undefined;
|
|
346
|
-
"aria-pressed"?: boolean | "
|
|
345
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
347
346
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
348
|
-
"aria-relevant"?: "
|
|
347
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
349
348
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
350
349
|
"aria-roledescription"?: string | undefined;
|
|
351
350
|
"aria-rowcount"?: number | undefined;
|
|
@@ -354,12 +353,12 @@ export declare const defaultProps: {
|
|
|
354
353
|
"aria-rowspan"?: number | undefined;
|
|
355
354
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
356
355
|
"aria-setsize"?: number | undefined;
|
|
357
|
-
"aria-sort"?: "
|
|
356
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
358
357
|
"aria-valuemax"?: number | undefined;
|
|
359
358
|
"aria-valuemin"?: number | undefined;
|
|
360
359
|
"aria-valuenow"?: number | undefined;
|
|
361
360
|
"aria-valuetext"?: string | undefined;
|
|
362
|
-
children?: React.ReactNode;
|
|
361
|
+
children?: React.ReactNode | undefined;
|
|
363
362
|
dangerouslySetInnerHTML?: {
|
|
364
363
|
__html: string | TrustedHTML;
|
|
365
364
|
} | undefined;
|
|
@@ -502,9 +501,7 @@ export declare const defaultProps: {
|
|
|
502
501
|
onPointerCancel?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
503
502
|
onPointerCancelCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
504
503
|
onPointerEnter?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
505
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
506
504
|
onPointerLeave?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
507
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
508
505
|
onPointerOver?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
509
506
|
onPointerOverCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
510
507
|
onPointerOut?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
@@ -531,15 +528,17 @@ export declare const defaultProps: {
|
|
|
531
528
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
532
529
|
suppressContentEditableWarning?: boolean | undefined;
|
|
533
530
|
accessKey?: string | undefined;
|
|
531
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
534
532
|
autoFocus?: boolean | undefined;
|
|
535
|
-
contentEditable?:
|
|
533
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
536
534
|
contextMenu?: string | undefined;
|
|
537
535
|
dir?: string | undefined;
|
|
538
536
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
537
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
539
538
|
hidden?: boolean | undefined;
|
|
540
539
|
nonce?: string | undefined;
|
|
541
540
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
542
|
-
translate?: "
|
|
541
|
+
translate?: "yes" | "no" | undefined;
|
|
543
542
|
radioGroup?: string | undefined;
|
|
544
543
|
about?: string | undefined;
|
|
545
544
|
content?: string | undefined;
|
|
@@ -552,7 +551,6 @@ export declare const defaultProps: {
|
|
|
552
551
|
rev?: string | undefined;
|
|
553
552
|
typeof?: string | undefined;
|
|
554
553
|
vocab?: string | undefined;
|
|
555
|
-
autoCapitalize?: string | undefined;
|
|
556
554
|
autoCorrect?: string | undefined;
|
|
557
555
|
autoSave?: string | undefined;
|
|
558
556
|
itemProp?: string | undefined;
|
|
@@ -562,15 +560,15 @@ export declare const defaultProps: {
|
|
|
562
560
|
itemRef?: string | undefined;
|
|
563
561
|
results?: number | undefined;
|
|
564
562
|
security?: string | undefined;
|
|
565
|
-
unselectable?: "
|
|
566
|
-
inputMode?: "
|
|
563
|
+
unselectable?: "on" | "off" | undefined;
|
|
564
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
567
565
|
is?: string | undefined;
|
|
568
|
-
size?: number | undefined;
|
|
569
|
-
value?: string | number | readonly string[] | undefined;
|
|
570
|
-
autoComplete?: string | undefined;
|
|
571
566
|
disabled?: boolean | undefined;
|
|
567
|
+
value?: string | readonly string[] | number | undefined;
|
|
568
|
+
autoComplete?: string | undefined;
|
|
572
569
|
multiple?: boolean | undefined;
|
|
573
570
|
required?: boolean | undefined;
|
|
571
|
+
size?: number | undefined;
|
|
574
572
|
theme?: DefaultTheme | undefined;
|
|
575
573
|
};
|
|
576
574
|
export default Dropdown;
|
|
@@ -27,7 +27,7 @@ export interface ValidationSelectionColors {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const getValidationSelectionColors: (theme: DefaultTheme, validationState: ValidationStyleType, checked?: boolean) => ValidationSelectionColors;
|
|
29
29
|
export declare const RadioButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key">, "ref"> & {
|
|
30
|
-
displayClassName?: string
|
|
30
|
+
displayClassName?: string;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
32
32
|
export declare const propTypes: {
|
|
33
33
|
/** supports styled-component usage, applies to the wrapping Label */
|
|
@@ -39,8 +39,6 @@ export declare const propTypes: {
|
|
|
39
39
|
style: import("prop-types").Requireable<React.CSSProperties | undefined> | import("prop-types").Validator<React.CSSProperties | undefined>;
|
|
40
40
|
title: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
41
41
|
pattern: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
42
|
-
type: import("prop-types").Requireable<React.HTMLInputTypeAttribute | undefined> | import("prop-types").Validator<React.HTMLInputTypeAttribute | undefined>;
|
|
43
|
-
name: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
44
42
|
suppressHydrationWarning: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
45
43
|
color: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
46
44
|
height: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
@@ -48,6 +46,8 @@ export declare const propTypes: {
|
|
|
48
46
|
lang: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
49
47
|
max: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
50
48
|
min: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
49
|
+
name: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
50
|
+
type: import("prop-types").Requireable<React.HTMLInputTypeAttribute | undefined> | import("prop-types").Validator<React.HTMLInputTypeAttribute | undefined>;
|
|
51
51
|
width: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
52
52
|
role: import("prop-types").Requireable<React.AriaRole | undefined> | import("prop-types").Validator<React.AriaRole | undefined>;
|
|
53
53
|
tabIndex: import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
@@ -63,7 +63,7 @@ export declare const propTypes: {
|
|
|
63
63
|
"aria-colindextext": import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
64
64
|
"aria-colspan": import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
65
65
|
"aria-controls": import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
66
|
-
"aria-current": import("prop-types").Requireable<boolean | "time" | "
|
|
66
|
+
"aria-current": import("prop-types").Requireable<boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined> | import("prop-types").Validator<boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined>;
|
|
67
67
|
"aria-describedby": import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
68
68
|
"aria-description": import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
69
69
|
"aria-details": import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
@@ -249,9 +249,7 @@ export declare const propTypes: {
|
|
|
249
249
|
onPointerCancel: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
250
250
|
onPointerCancelCapture: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
251
251
|
onPointerEnter: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
252
|
-
onPointerEnterCapture: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
253
252
|
onPointerLeave: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
254
|
-
onPointerLeaveCapture: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
255
253
|
onPointerOver: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
256
254
|
onPointerOverCapture: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
257
255
|
onPointerOut: import("prop-types").Requireable<React.PointerEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.PointerEventHandler<HTMLInputElement> | undefined>;
|
|
@@ -273,17 +271,17 @@ export declare const propTypes: {
|
|
|
273
271
|
onTransitionEnd: import("prop-types").Requireable<React.TransitionEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.TransitionEventHandler<HTMLInputElement> | undefined>;
|
|
274
272
|
onTransitionEndCapture: import("prop-types").Requireable<React.TransitionEventHandler<HTMLInputElement> | undefined> | import("prop-types").Validator<React.TransitionEventHandler<HTMLInputElement> | undefined>;
|
|
275
273
|
css: import("prop-types").Requireable<import("styled-components").CSSProp | undefined> | import("prop-types").Validator<import("styled-components").CSSProp | undefined>;
|
|
276
|
-
list: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
277
|
-
step: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
278
274
|
defaultChecked: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
279
275
|
defaultValue: import("prop-types").Requireable<string | number | readonly string[] | undefined> | import("prop-types").Validator<string | number | readonly string[] | undefined>;
|
|
280
276
|
suppressContentEditableWarning: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
281
277
|
accessKey: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
278
|
+
autoCapitalize: import("prop-types").Requireable<(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined> | import("prop-types").Validator<(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined>;
|
|
282
279
|
autoFocus: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
283
280
|
contentEditable: import("prop-types").Requireable<"inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined> | import("prop-types").Validator<"inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined>;
|
|
284
281
|
contextMenu: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
285
282
|
dir: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
286
283
|
draggable: import("prop-types").Requireable<(boolean | "true" | "false") | undefined> | import("prop-types").Validator<(boolean | "true" | "false") | undefined>;
|
|
284
|
+
enterKeyHint: import("prop-types").Requireable<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined> | import("prop-types").Validator<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined>;
|
|
287
285
|
hidden: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
288
286
|
nonce: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
289
287
|
spellCheck: import("prop-types").Requireable<(boolean | "true" | "false") | undefined> | import("prop-types").Validator<(boolean | "true" | "false") | undefined>;
|
|
@@ -300,7 +298,6 @@ export declare const propTypes: {
|
|
|
300
298
|
rev: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
301
299
|
typeof: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
302
300
|
vocab: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
303
|
-
autoCapitalize: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
304
301
|
autoCorrect: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
305
302
|
autoSave: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
306
303
|
itemProp: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
@@ -313,26 +310,27 @@ export declare const propTypes: {
|
|
|
313
310
|
unselectable: import("prop-types").Requireable<"off" | "on" | undefined> | import("prop-types").Validator<"off" | "on" | undefined>;
|
|
314
311
|
inputMode: import("prop-types").Requireable<"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined> | import("prop-types").Validator<"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined>;
|
|
315
312
|
is: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
316
|
-
size: import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
317
313
|
alt: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
318
314
|
src: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
319
|
-
value: import("prop-types").Requireable<string | number | readonly string[] | undefined> | import("prop-types").Validator<string | number | readonly string[] | undefined>;
|
|
320
|
-
accept: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
321
|
-
autoComplete: import("prop-types").Requireable<React.HTMLInputAutoCompleteAttribute | undefined> | import("prop-types").Validator<React.HTMLInputAutoCompleteAttribute | undefined>;
|
|
322
|
-
capture: import("prop-types").Requireable<boolean | "user" | "environment" | undefined> | import("prop-types").Validator<boolean | "user" | "environment" | undefined>;
|
|
323
|
-
checked: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
324
315
|
disabled: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
325
|
-
enterKeyHint: import("prop-types").Requireable<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined> | import("prop-types").Validator<"search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined>;
|
|
326
316
|
formAction: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
327
317
|
formEncType: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
328
318
|
formMethod: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
329
319
|
formNoValidate: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
330
320
|
formTarget: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
321
|
+
value: import("prop-types").Requireable<string | number | readonly string[] | undefined> | import("prop-types").Validator<string | number | readonly string[] | undefined>;
|
|
322
|
+
autoComplete: import("prop-types").Requireable<React.HTMLInputAutoCompleteAttribute | undefined> | import("prop-types").Validator<React.HTMLInputAutoCompleteAttribute | undefined>;
|
|
323
|
+
accept: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
324
|
+
capture: import("prop-types").Requireable<boolean | "user" | "environment" | undefined> | import("prop-types").Validator<boolean | "user" | "environment" | undefined>;
|
|
325
|
+
checked: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
326
|
+
list: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
331
327
|
maxLength: import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
332
328
|
minLength: import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
333
329
|
multiple: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
334
330
|
placeholder: import("prop-types").Requireable<string | undefined> | import("prop-types").Validator<string | undefined>;
|
|
335
331
|
readOnly: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
336
332
|
required: import("prop-types").Requireable<boolean | undefined> | import("prop-types").Validator<boolean | undefined>;
|
|
333
|
+
size: import("prop-types").Requireable<number | undefined> | import("prop-types").Validator<number | undefined>;
|
|
334
|
+
step: import("prop-types").Requireable<string | number | undefined> | import("prop-types").Validator<string | number | undefined>;
|
|
337
335
|
};
|
|
338
336
|
export default RadioButton;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { RadioGroupContextShape } from "./RadioGroupContext";
|
|
4
|
-
export type RadioGroupProps<A extends
|
|
3
|
+
import { RadioGroupContextShape, IsAnswerGroup } from "./RadioGroupContext";
|
|
4
|
+
export type RadioGroupProps<A extends IsAnswerGroup = undefined> = Override<RadioGroupContextShape<A>, {
|
|
5
5
|
children: NonNullable<React.ReactNode>;
|
|
6
6
|
}>;
|
|
7
|
-
declare function RadioGroup<
|
|
7
|
+
declare function RadioGroup<A extends IsAnswerGroup>({ children, selectedValue, disableAllOptions, ...props }: RadioGroupProps<A>): React.JSX.Element;
|
|
8
8
|
declare namespace RadioGroup {
|
|
9
9
|
var propTypes: {
|
|
10
10
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -12,10 +12,6 @@ declare namespace RadioGroup {
|
|
|
12
12
|
selectedValue: PropTypes.Requireable<string | number | readonly string[] | undefined> | PropTypes.Validator<string | number | readonly string[] | undefined>;
|
|
13
13
|
disableAllOptions: PropTypes.Requireable<boolean>;
|
|
14
14
|
};
|
|
15
|
-
var defaultProps: {
|
|
16
|
-
selectedValue: string;
|
|
17
|
-
disableAllOptions: boolean;
|
|
18
|
-
};
|
|
19
15
|
}
|
|
20
16
|
export declare const propTypes: {
|
|
21
17
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -23,8 +19,5 @@ export declare const propTypes: {
|
|
|
23
19
|
selectedValue: PropTypes.Requireable<string | number | readonly string[] | undefined> | PropTypes.Validator<string | number | readonly string[] | undefined>;
|
|
24
20
|
disableAllOptions: PropTypes.Requireable<boolean>;
|
|
25
21
|
};
|
|
26
|
-
export declare const defaultProps: {
|
|
27
|
-
disableAllOptions: boolean;
|
|
28
|
-
};
|
|
29
22
|
/** @component */
|
|
30
23
|
export default RadioGroup;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as CSS from 'csstype';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import { HTMLInputProps } from "../../util/htmlProps";
|
|
5
4
|
import type { RadioButtonProps } from "./RadioButton";
|
|
6
5
|
import type { ButtonSize, ButtonVariantStyleType } from "../../../../../../../shared/types/dist/src";
|
|
7
|
-
export type
|
|
6
|
+
export type IsAnswerGroup = boolean | undefined;
|
|
7
|
+
export type RadioGroupContextShape<A extends IsAnswerGroup = undefined> = Override<RadioButtonProps, {
|
|
8
8
|
name: string;
|
|
9
9
|
disableAllOptions?: boolean;
|
|
10
10
|
selectedValue?: HTMLInputProps['value'];
|
|
@@ -24,5 +24,5 @@ export declare const radioGroupContextPropTypes: {
|
|
|
24
24
|
/** Disable all radio buttons */
|
|
25
25
|
disableAllOptions: PropTypes.Requireable<boolean>;
|
|
26
26
|
};
|
|
27
|
-
export declare const RadioGroupContext: import("react").Context<RadioGroupContextShape<
|
|
28
|
-
export declare function useRadioGroupContext<T extends
|
|
27
|
+
export declare const RadioGroupContext: import("react").Context<RadioGroupContextShape<IsAnswerGroup>>;
|
|
28
|
+
export declare function useRadioGroupContext<T extends IsAnswerGroup = undefined>(): RadioGroupContextShape<T>;
|