@elliemae/ds-form-toggle 3.52.1 → 3.53.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ControlledToggle.js +75 -73
- package/dist/cjs/ControlledToggle.js.map +2 -2
- package/dist/cjs/config/useDSControlledToggle.js +25 -2
- package/dist/cjs/config/useDSControlledToggle.js.map +2 -2
- package/dist/cjs/{parts/AddTooltipOnReadOnly.js → config/useGetButtonProps.js} +30 -10
- package/dist/cjs/config/useGetButtonProps.js.map +7 -0
- package/dist/cjs/{DSFormToggleDefinitions.js → config/useGetWidestLabelWidth.js} +40 -6
- package/dist/cjs/config/useGetWidestLabelWidth.js.map +7 -0
- package/dist/cjs/constants/index.js +16 -3
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/index.js +11 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +12 -17
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styles.js +49 -35
- package/dist/cjs/styles.js.map +2 -2
- package/dist/cjs/utils/styleHelpers.js +12 -13
- package/dist/cjs/utils/styleHelpers.js.map +2 -2
- package/dist/esm/ControlledToggle.js +81 -79
- package/dist/esm/ControlledToggle.js.map +2 -2
- package/dist/esm/config/useDSControlledToggle.js +25 -2
- package/dist/esm/config/useDSControlledToggle.js.map +2 -2
- package/dist/esm/config/useGetButtonProps.js +31 -0
- package/dist/esm/config/useGetButtonProps.js.map +7 -0
- package/dist/esm/config/useGetWidestLabelWidth.js +40 -0
- package/dist/esm/config/useGetWidestLabelWidth.js.map +7 -0
- package/dist/esm/constants/index.js +16 -3
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +12 -17
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styles.js +50 -36
- package/dist/esm/styles.js.map +2 -2
- package/dist/esm/utils/styleHelpers.js +12 -13
- package/dist/esm/utils/styleHelpers.js.map +2 -2
- package/dist/types/config/useDSControlledToggle.d.ts +190 -193
- package/dist/types/config/useGetButtonProps.d.ts +10 -0
- package/dist/types/config/useGetWidestLabelWidth.d.ts +14 -0
- package/dist/types/constants/index.d.ts +15 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/react-desc-prop-types.d.ts +39 -15
- package/dist/types/styles.d.ts +31 -31
- package/dist/types/tests/DSControlledToggle.app-sdk-compatibility.test.d.ts +1 -0
- package/dist/types/tests/DSControlledToggle.data-testId.test.d.ts +1 -0
- package/dist/types/utils/styleHelpers.d.ts +9 -9
- package/package.json +10 -13
- package/dist/cjs/DSFormToggleDefinitions.js.map +0 -7
- package/dist/cjs/parts/AddTooltipOnReadOnly.js.map +0 -7
- package/dist/esm/DSFormToggleDefinitions.js +0 -6
- package/dist/esm/DSFormToggleDefinitions.js.map +0 -7
- package/dist/esm/parts/AddTooltipOnReadOnly.js +0 -11
- package/dist/esm/parts/AddTooltipOnReadOnly.js.map +0 -7
- package/dist/types/DSFormToggleDefinitions.d.ts +0 -1
- package/dist/types/parts/AddTooltipOnReadOnly.d.ts +0 -5
|
@@ -1,78 +1,72 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-props-helpers';
|
|
3
2
|
import { type DSControlledToggleT } from '../react-desc-prop-types.js';
|
|
4
|
-
export interface DSControlledToggleCTX {
|
|
5
|
-
propsWithDefault: DSControlledToggleT.InternalProps;
|
|
6
|
-
globalProps: ReturnType<typeof useGetGlobalAttributes>;
|
|
7
|
-
xstyledProps: ReturnType<typeof useGetXstyledProps>;
|
|
8
|
-
instanceUid: string;
|
|
9
|
-
}
|
|
10
3
|
export declare const useDSControlledToggle: (propsFromUser: DSControlledToggleT.Props) => {
|
|
11
4
|
propsWithDefault: DSControlledToggleT.InternalProps;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
width: number;
|
|
6
|
+
handleRefOnLabelWidth: (instance: HTMLDivElement | 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];
|
|
7
|
+
handleRefOffLabelWidth: (instance: HTMLDivElement | 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];
|
|
8
|
+
globalProps: Partial<Pick<object, "shape" | "content" | "size" | "children" | "type" | "onClick" | "form" | "list" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap"> & Omit<{
|
|
9
|
+
shape?: string | undefined | undefined;
|
|
10
|
+
content?: string | undefined | undefined;
|
|
11
|
+
size?: number | undefined | undefined;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
type?: string | undefined | undefined;
|
|
14
|
+
onClick?: React.MouseEventHandler<Element> | undefined;
|
|
15
|
+
form?: string | undefined | undefined;
|
|
16
|
+
list?: string | undefined | undefined;
|
|
17
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
23
18
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
24
|
-
"aria-autocomplete"?: "none" | "
|
|
25
|
-
"aria-braillelabel"?: string | undefined;
|
|
26
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
19
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
20
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
21
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
27
22
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
28
|
-
"aria-checked"?: boolean | "
|
|
29
|
-
"aria-colcount"?: number | undefined;
|
|
30
|
-
"aria-colindex"?: number | undefined;
|
|
31
|
-
"aria-colindextext"?: string | undefined;
|
|
32
|
-
"aria-colspan"?: number | undefined;
|
|
33
|
-
"aria-controls"?: string | undefined;
|
|
34
|
-
"aria-current"?: boolean | "
|
|
35
|
-
"aria-describedby"?: string | undefined;
|
|
36
|
-
"aria-description"?: string | undefined;
|
|
37
|
-
"aria-details"?: string | undefined;
|
|
23
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
24
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
25
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
26
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
27
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
28
|
+
"aria-controls"?: string | undefined | undefined;
|
|
29
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
30
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
31
|
+
"aria-description"?: string | undefined | undefined;
|
|
32
|
+
"aria-details"?: string | undefined | undefined;
|
|
38
33
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
39
|
-
"aria-dropeffect"?: "none" | "
|
|
40
|
-
"aria-errormessage"?: string | undefined;
|
|
34
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
35
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
41
36
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
42
|
-
"aria-flowto"?: string | undefined;
|
|
37
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
43
38
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
44
|
-
"aria-haspopup"?: boolean | "
|
|
39
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
45
40
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
46
|
-
"aria-invalid"?: boolean | "
|
|
47
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
48
|
-
"aria-label"?: string | undefined;
|
|
49
|
-
"aria-labelledby"?: string | undefined;
|
|
50
|
-
"aria-level"?: number | undefined;
|
|
51
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
41
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
42
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
43
|
+
"aria-label"?: string | undefined | undefined;
|
|
44
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
45
|
+
"aria-level"?: number | undefined | undefined;
|
|
46
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
52
47
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
53
48
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
54
49
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
55
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
56
|
-
"aria-owns"?: string | undefined;
|
|
57
|
-
"aria-placeholder"?: string | undefined;
|
|
58
|
-
"aria-posinset"?: number | undefined;
|
|
59
|
-
"aria-pressed"?: boolean | "
|
|
50
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
51
|
+
"aria-owns"?: string | undefined | undefined;
|
|
52
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
53
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
54
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
60
55
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
61
|
-
"aria-relevant"?: "
|
|
56
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
62
57
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
"aria-roledescription"?: string | undefined;
|
|
64
|
-
"aria-rowcount"?: number | undefined;
|
|
65
|
-
"aria-rowindex"?: number | undefined;
|
|
66
|
-
"aria-rowindextext"?: string | undefined;
|
|
67
|
-
"aria-rowspan"?: number | undefined;
|
|
58
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
59
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
60
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
61
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
62
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
68
63
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
69
|
-
"aria-setsize"?: number | undefined;
|
|
70
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
71
|
-
"aria-valuemax"?: number | undefined;
|
|
72
|
-
"aria-valuemin"?: number | undefined;
|
|
73
|
-
"aria-valuenow"?: number | undefined;
|
|
74
|
-
"aria-valuetext"?: string | undefined;
|
|
75
|
-
children?: React.ReactNode;
|
|
64
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
65
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
66
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
67
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
68
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
69
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
76
70
|
onCopy?: React.ClipboardEventHandler<Element> | undefined;
|
|
77
71
|
onCopyCapture?: React.ClipboardEventHandler<Element> | undefined;
|
|
78
72
|
onCut?: React.ClipboardEventHandler<Element> | undefined;
|
|
@@ -89,8 +83,9 @@ export declare const useDSControlledToggle: (propsFromUser: DSControlledToggleT.
|
|
|
89
83
|
onFocusCapture?: React.FocusEventHandler<Element> | undefined;
|
|
90
84
|
onBlur?: React.FocusEventHandler<Element> | undefined;
|
|
91
85
|
onBlurCapture?: React.FocusEventHandler<Element> | undefined;
|
|
86
|
+
onChange?: React.FormEventHandler<Element> | undefined;
|
|
92
87
|
onChangeCapture?: React.FormEventHandler<Element> | undefined;
|
|
93
|
-
onBeforeInput?: React.
|
|
88
|
+
onBeforeInput?: React.InputEventHandler<Element> | undefined;
|
|
94
89
|
onBeforeInputCapture?: React.FormEventHandler<Element> | undefined;
|
|
95
90
|
onInput?: React.FormEventHandler<Element> | undefined;
|
|
96
91
|
onInputCapture?: React.FormEventHandler<Element> | undefined;
|
|
@@ -156,7 +151,6 @@ export declare const useDSControlledToggle: (propsFromUser: DSControlledToggleT.
|
|
|
156
151
|
onWaitingCapture?: React.ReactEventHandler<Element> | undefined;
|
|
157
152
|
onAuxClick?: React.MouseEventHandler<Element> | undefined;
|
|
158
153
|
onAuxClickCapture?: React.MouseEventHandler<Element> | undefined;
|
|
159
|
-
onClick?: React.MouseEventHandler<Element> | undefined;
|
|
160
154
|
onClickCapture?: React.MouseEventHandler<Element> | undefined;
|
|
161
155
|
onContextMenu?: React.MouseEventHandler<Element> | undefined;
|
|
162
156
|
onContextMenuCapture?: React.MouseEventHandler<Element> | undefined;
|
|
@@ -230,151 +224,154 @@ export declare const useDSControlledToggle: (propsFromUser: DSControlledToggleT.
|
|
|
230
224
|
onAnimationIterationCapture?: React.AnimationEventHandler<Element> | undefined;
|
|
231
225
|
onTransitionEnd?: React.TransitionEventHandler<Element> | undefined;
|
|
232
226
|
onTransitionEndCapture?: React.TransitionEventHandler<Element> | undefined;
|
|
233
|
-
defaultChecked?: boolean | undefined;
|
|
227
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
234
228
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
235
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
236
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
237
|
-
accessKey?: string | undefined;
|
|
238
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
|
|
239
|
-
autoFocus?: boolean | undefined;
|
|
240
|
-
className?: string | undefined;
|
|
229
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
230
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
231
|
+
accessKey?: string | undefined | undefined;
|
|
232
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
233
|
+
autoFocus?: boolean | undefined | undefined;
|
|
234
|
+
className?: string | undefined | undefined;
|
|
241
235
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
242
|
-
contextMenu?: string | undefined;
|
|
243
|
-
dir?: string | undefined;
|
|
236
|
+
contextMenu?: string | undefined | undefined;
|
|
237
|
+
dir?: string | undefined | undefined;
|
|
244
238
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
245
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
246
|
-
hidden?: boolean | undefined;
|
|
247
|
-
id?: string | undefined;
|
|
248
|
-
lang?: string | undefined;
|
|
249
|
-
nonce?: string | undefined;
|
|
250
|
-
slot?: string | undefined;
|
|
239
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
240
|
+
hidden?: boolean | undefined | undefined;
|
|
241
|
+
id?: string | undefined | undefined;
|
|
242
|
+
lang?: string | undefined | undefined;
|
|
243
|
+
nonce?: string | undefined | undefined;
|
|
244
|
+
slot?: string | undefined | undefined;
|
|
251
245
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
252
246
|
style?: React.CSSProperties | undefined;
|
|
253
247
|
tabIndex?: 0 | -1 | undefined;
|
|
254
|
-
title?: string | undefined;
|
|
255
|
-
translate?: "yes" | "no" | undefined;
|
|
256
|
-
radioGroup?: string | undefined;
|
|
248
|
+
title?: string | undefined | undefined;
|
|
249
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
250
|
+
radioGroup?: string | undefined | undefined;
|
|
257
251
|
role?: React.AriaRole | undefined;
|
|
258
|
-
about?: string | undefined;
|
|
259
|
-
|
|
260
|
-
datatype?: string | undefined;
|
|
252
|
+
about?: string | undefined | undefined;
|
|
253
|
+
datatype?: string | undefined | undefined;
|
|
261
254
|
inlist?: any;
|
|
262
|
-
prefix?: string | undefined;
|
|
263
|
-
property?: string | undefined;
|
|
264
|
-
rel?: string | undefined;
|
|
265
|
-
resource?: string | undefined;
|
|
266
|
-
rev?: string | undefined;
|
|
267
|
-
typeof?: string | undefined;
|
|
268
|
-
vocab?: string | undefined;
|
|
269
|
-
autoCorrect?: string | undefined;
|
|
270
|
-
autoSave?: string | undefined;
|
|
271
|
-
color?: string | undefined;
|
|
272
|
-
itemProp?: string | undefined;
|
|
273
|
-
itemScope?: boolean | undefined;
|
|
274
|
-
itemType?: string | undefined;
|
|
275
|
-
itemID?: string | undefined;
|
|
276
|
-
itemRef?: string | undefined;
|
|
277
|
-
results?: number | undefined;
|
|
278
|
-
security?: string | undefined;
|
|
279
|
-
unselectable?: "
|
|
280
|
-
inputMode?: "none" | "
|
|
281
|
-
is?: string | undefined;
|
|
282
|
-
exportparts?: string | undefined;
|
|
283
|
-
part?: string | undefined;
|
|
284
|
-
accept?: string | undefined;
|
|
285
|
-
acceptCharset?: string | undefined;
|
|
255
|
+
prefix?: string | undefined | undefined;
|
|
256
|
+
property?: string | undefined | undefined;
|
|
257
|
+
rel?: string | undefined | undefined;
|
|
258
|
+
resource?: string | undefined | undefined;
|
|
259
|
+
rev?: string | undefined | undefined;
|
|
260
|
+
typeof?: string | undefined | undefined;
|
|
261
|
+
vocab?: string | undefined | undefined;
|
|
262
|
+
autoCorrect?: string | undefined | undefined;
|
|
263
|
+
autoSave?: string | undefined | undefined;
|
|
264
|
+
color?: string | undefined | undefined;
|
|
265
|
+
itemProp?: string | undefined | undefined;
|
|
266
|
+
itemScope?: boolean | undefined | undefined;
|
|
267
|
+
itemType?: string | undefined | undefined;
|
|
268
|
+
itemID?: string | undefined | undefined;
|
|
269
|
+
itemRef?: string | undefined | undefined;
|
|
270
|
+
results?: number | undefined | undefined;
|
|
271
|
+
security?: string | undefined | undefined;
|
|
272
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
273
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
274
|
+
is?: string | undefined | undefined;
|
|
275
|
+
exportparts?: string | undefined | undefined;
|
|
276
|
+
part?: string | undefined | undefined;
|
|
277
|
+
accept?: string | undefined | undefined;
|
|
278
|
+
acceptCharset?: string | undefined | undefined;
|
|
286
279
|
action?: string | undefined;
|
|
287
|
-
allowFullScreen?: boolean | undefined;
|
|
288
|
-
allowTransparency?: boolean | undefined;
|
|
289
|
-
alt?: string | undefined;
|
|
290
|
-
async?: boolean | undefined;
|
|
291
|
-
autoComplete?: string | undefined;
|
|
292
|
-
autoPlay?: boolean | undefined;
|
|
293
|
-
capture?: boolean | "user" | "environment" | undefined;
|
|
294
|
-
cellPadding?: string |
|
|
295
|
-
cellSpacing?: string |
|
|
296
|
-
charSet?: string | undefined;
|
|
297
|
-
challenge?: string | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
280
|
+
allowFullScreen?: boolean | undefined | undefined;
|
|
281
|
+
allowTransparency?: boolean | undefined | undefined;
|
|
282
|
+
alt?: string | undefined | undefined;
|
|
283
|
+
async?: boolean | undefined | undefined;
|
|
284
|
+
autoComplete?: string | undefined | undefined;
|
|
285
|
+
autoPlay?: boolean | undefined | undefined;
|
|
286
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
287
|
+
cellPadding?: number | string | undefined | undefined;
|
|
288
|
+
cellSpacing?: number | string | undefined | undefined;
|
|
289
|
+
charSet?: string | undefined | undefined;
|
|
290
|
+
challenge?: string | undefined | undefined;
|
|
291
|
+
checked?: boolean | undefined | undefined;
|
|
292
|
+
cite?: string | undefined | undefined;
|
|
293
|
+
classID?: string | undefined | undefined;
|
|
294
|
+
cols?: number | undefined | undefined;
|
|
295
|
+
colSpan?: number | undefined | undefined;
|
|
296
|
+
controls?: boolean | undefined | undefined;
|
|
297
|
+
coords?: string | undefined | undefined;
|
|
304
298
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
305
|
-
data?: string | undefined;
|
|
306
|
-
dateTime?: string | undefined;
|
|
307
|
-
default?: boolean | undefined;
|
|
308
|
-
defer?: boolean | undefined;
|
|
299
|
+
data?: string | undefined | undefined;
|
|
300
|
+
dateTime?: string | undefined | undefined;
|
|
301
|
+
default?: boolean | undefined | undefined;
|
|
302
|
+
defer?: boolean | undefined | undefined;
|
|
303
|
+
disabled?: boolean | undefined | undefined;
|
|
309
304
|
download?: any;
|
|
310
|
-
encType?: string | undefined;
|
|
305
|
+
encType?: string | undefined | undefined;
|
|
311
306
|
formAction?: string | undefined;
|
|
312
|
-
formEncType?: string | undefined;
|
|
313
|
-
formMethod?: string | undefined;
|
|
314
|
-
formNoValidate?: boolean | undefined;
|
|
315
|
-
formTarget?: string | undefined;
|
|
316
|
-
frameBorder?: string |
|
|
317
|
-
headers?: string | undefined;
|
|
318
|
-
height?: string |
|
|
319
|
-
high?: number | undefined;
|
|
320
|
-
href?: string | undefined;
|
|
321
|
-
hrefLang?: string | undefined;
|
|
322
|
-
htmlFor?: string | undefined;
|
|
323
|
-
httpEquiv?: string | undefined;
|
|
324
|
-
integrity?: string | undefined;
|
|
325
|
-
keyParams?: string | undefined;
|
|
326
|
-
keyType?: string | undefined;
|
|
327
|
-
kind?: string | undefined;
|
|
328
|
-
label?: string | undefined;
|
|
329
|
-
loop?: boolean | undefined;
|
|
330
|
-
low?: number | undefined;
|
|
331
|
-
manifest?: string | undefined;
|
|
332
|
-
marginHeight?: number | undefined;
|
|
333
|
-
marginWidth?: number | undefined;
|
|
334
|
-
max?: string |
|
|
335
|
-
maxLength?: number | undefined;
|
|
336
|
-
media?: string | undefined;
|
|
337
|
-
mediaGroup?: string | undefined;
|
|
338
|
-
method?: string | undefined;
|
|
339
|
-
min?: string |
|
|
340
|
-
minLength?: number | undefined;
|
|
341
|
-
multiple?: boolean | undefined;
|
|
342
|
-
muted?: boolean | undefined;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
useMap?: string | undefined;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
307
|
+
formEncType?: string | undefined | undefined;
|
|
308
|
+
formMethod?: string | undefined | undefined;
|
|
309
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
310
|
+
formTarget?: string | undefined | undefined;
|
|
311
|
+
frameBorder?: number | string | undefined | undefined;
|
|
312
|
+
headers?: string | undefined | undefined;
|
|
313
|
+
height?: number | string | undefined | undefined;
|
|
314
|
+
high?: number | undefined | undefined;
|
|
315
|
+
href?: string | undefined | undefined;
|
|
316
|
+
hrefLang?: string | undefined | undefined;
|
|
317
|
+
htmlFor?: string | undefined | undefined;
|
|
318
|
+
httpEquiv?: string | undefined | undefined;
|
|
319
|
+
integrity?: string | undefined | undefined;
|
|
320
|
+
keyParams?: string | undefined | undefined;
|
|
321
|
+
keyType?: string | undefined | undefined;
|
|
322
|
+
kind?: string | undefined | undefined;
|
|
323
|
+
label?: string | undefined | undefined;
|
|
324
|
+
loop?: boolean | undefined | undefined;
|
|
325
|
+
low?: number | undefined | undefined;
|
|
326
|
+
manifest?: string | undefined | undefined;
|
|
327
|
+
marginHeight?: number | undefined | undefined;
|
|
328
|
+
marginWidth?: number | undefined | undefined;
|
|
329
|
+
max?: number | string | undefined | undefined;
|
|
330
|
+
maxLength?: number | undefined | undefined;
|
|
331
|
+
media?: string | undefined | undefined;
|
|
332
|
+
mediaGroup?: string | undefined | undefined;
|
|
333
|
+
method?: string | undefined | undefined;
|
|
334
|
+
min?: number | string | undefined | undefined;
|
|
335
|
+
minLength?: number | undefined | undefined;
|
|
336
|
+
multiple?: boolean | undefined | undefined;
|
|
337
|
+
muted?: boolean | undefined | undefined;
|
|
338
|
+
name?: string | undefined | undefined;
|
|
339
|
+
noValidate?: boolean | undefined | undefined;
|
|
340
|
+
open?: boolean | undefined | undefined;
|
|
341
|
+
optimum?: number | undefined | undefined;
|
|
342
|
+
pattern?: string | undefined | undefined;
|
|
343
|
+
placeholder?: string | undefined | undefined;
|
|
344
|
+
playsInline?: boolean | undefined | undefined;
|
|
345
|
+
poster?: string | undefined | undefined;
|
|
346
|
+
preload?: string | undefined | undefined;
|
|
347
|
+
readOnly?: boolean | undefined | undefined;
|
|
348
|
+
required?: boolean | undefined | undefined;
|
|
349
|
+
reversed?: boolean | undefined | undefined;
|
|
350
|
+
rows?: number | undefined | undefined;
|
|
351
|
+
rowSpan?: number | undefined | undefined;
|
|
352
|
+
sandbox?: string | undefined | undefined;
|
|
353
|
+
scope?: string | undefined | undefined;
|
|
354
|
+
scoped?: boolean | undefined | undefined;
|
|
355
|
+
scrolling?: string | undefined | undefined;
|
|
356
|
+
seamless?: boolean | undefined | undefined;
|
|
357
|
+
selected?: boolean | undefined | undefined;
|
|
358
|
+
sizes?: string | undefined | undefined;
|
|
359
|
+
span?: number | undefined | undefined;
|
|
360
|
+
src?: string | undefined | undefined;
|
|
361
|
+
srcDoc?: string | undefined | undefined;
|
|
362
|
+
srcLang?: string | undefined | undefined;
|
|
363
|
+
srcSet?: string | undefined | undefined;
|
|
364
|
+
start?: number | undefined | undefined;
|
|
365
|
+
step?: number | string | undefined | undefined;
|
|
366
|
+
summary?: string | undefined | undefined;
|
|
367
|
+
target?: string | undefined | undefined;
|
|
368
|
+
useMap?: string | undefined | undefined;
|
|
369
|
+
value?: string | number | readonly string[] | undefined;
|
|
370
|
+
width?: number | string | undefined | undefined;
|
|
371
|
+
wmode?: string | undefined | undefined;
|
|
372
|
+
wrap?: string | undefined | undefined;
|
|
377
373
|
}, never>>;
|
|
374
|
+
buttonProps: DSControlledToggleT.ButtonV3InherithedProps;
|
|
378
375
|
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
379
376
|
instanceUid: string;
|
|
380
377
|
handleOnClick: (e: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GlobalAttributesT } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import { type DSControlledToggleT } from '../react-desc-prop-types.js';
|
|
3
|
+
interface UseGetButtonPropsConfigT {
|
|
4
|
+
handleOnClick: (e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
5
|
+
globalProps: GlobalAttributesT<HTMLButtonElement>;
|
|
6
|
+
propsWithDefault: DSControlledToggleT.InternalProps;
|
|
7
|
+
instanceUid: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useGetButtonProps: (config: UseGetButtonPropsConfigT) => DSControlledToggleT.ButtonV3InherithedProps;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This should not be required, we are doing this to keep the wcagViolationLabelOn/wcagViolationLabelOff working
|
|
4
|
+
* this calculates the width of the widest custom label and sets the width of both labels to that width to avoid layout shift on toggle
|
|
5
|
+
*
|
|
6
|
+
* ---
|
|
7
|
+
*
|
|
8
|
+
* this can be safely removed in favor of a sensible default min-width for the accessible ON/OFF labels when we can actually kill the wcagViolationLabelOn/wcagViolationLabelOff props
|
|
9
|
+
*/
|
|
10
|
+
export declare const useGetWidestLabelWidth: () => {
|
|
11
|
+
width: number;
|
|
12
|
+
handleRefOnLabelWidth: (instance: HTMLDivElement | 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];
|
|
13
|
+
handleRefOffLabelWidth: (instance: HTMLDivElement | 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];
|
|
14
|
+
};
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
export declare const DSControlledToggleName = "
|
|
1
|
+
export declare const DSControlledToggleName = "DSFormtoggle";
|
|
2
2
|
export declare const CONTROLLED_TOGGLE_SLOTS: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly CONTAINER_WITH_RADIUS_SHAPE: "container-with-radius-shape";
|
|
4
|
+
readonly BUTTON_CONTENT_WRAPPER: "button-content-wrapper";
|
|
5
|
+
readonly CIRCLE: "circle";
|
|
6
|
+
readonly TEXT_WRAPPER: "text-wrapper";
|
|
7
|
+
readonly CONTROLLED_CONTAINER: "controlled-container";
|
|
4
8
|
readonly TOGGLE_CHECKBOX: "toggle-checkbox";
|
|
5
9
|
};
|
|
6
10
|
export declare const CONTROLLED_TOGGLE_DATA_TESTID: {
|
|
7
11
|
CONTROLLED_CONTAINER: string;
|
|
8
12
|
TOGGLE_CHECKBOX: string;
|
|
13
|
+
CONTAINER_WITH_RADIUS_SHAPE: "ds-formtoggle-container-with-radius-shape";
|
|
14
|
+
BUTTON_CONTENT_WRAPPER: "ds-formtoggle-button-content-wrapper";
|
|
15
|
+
CIRCLE: "ds-formtoggle-circle";
|
|
16
|
+
TEXT_WRAPPER: "ds-formtoggle-text-wrapper";
|
|
17
|
+
};
|
|
18
|
+
export declare const TOGGLE_SIZES: {
|
|
19
|
+
readonly SMALL: "s";
|
|
20
|
+
readonly MEDIUM: "m";
|
|
21
|
+
readonly LARGE: "l";
|
|
9
22
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
import type { DSButtonV3T } from '@elliemae/ds-button-v2';
|
|
2
|
+
import type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';
|
|
3
|
+
import { TOGGLE_SIZES } from './constants/index.js';
|
|
4
4
|
export declare namespace DSControlledToggleT {
|
|
5
|
-
type ToggleSize =
|
|
6
|
-
interface OptionalProps {
|
|
7
|
-
containerProps: Record<string, unknown>;
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
5
|
+
type ToggleSize = ObjectValues<typeof TOGGLE_SIZES>;
|
|
10
6
|
interface DefaultProps {
|
|
11
|
-
labelOn: string;
|
|
12
|
-
labelOff: string;
|
|
13
|
-
name: string;
|
|
14
|
-
value: string;
|
|
15
7
|
checked: boolean;
|
|
16
8
|
onChange: (e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
17
9
|
size: ToggleSize;
|
|
@@ -19,11 +11,43 @@ export declare namespace DSControlledToggleT {
|
|
|
19
11
|
disabled: boolean;
|
|
20
12
|
applyAriaDisabled: boolean;
|
|
21
13
|
}
|
|
22
|
-
interface
|
|
14
|
+
interface RequiredProps {
|
|
15
|
+
}
|
|
16
|
+
interface OptionalProps {
|
|
17
|
+
containerProps?: Record<string, unknown>;
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
20
|
+
interface PostDeprecationETAPropsFallback {
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated a custom wcagViolationLabelOn violates the role='switch' by design and it's impossible to make it WCAG compliant.
|
|
23
|
+
* Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.
|
|
24
|
+
*/
|
|
25
|
+
wcagViolationLabelOn?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated a custom wcagViolationLabelOff violates the role='switch' by design and it's impossible to make it WCAG compliant.
|
|
28
|
+
* Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.
|
|
29
|
+
*/
|
|
30
|
+
wcagViolationLabelOff?: string;
|
|
31
|
+
}
|
|
32
|
+
interface PostDeprecationETAProps {
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated a custom wcagViolationLabelOn violates the role='switch' by design and it's impossible to make it WCAG compliant.
|
|
35
|
+
* Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.
|
|
36
|
+
*/
|
|
37
|
+
labelOn?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated a custom wcagViolationLabelOff violates the role='switch' by design and it's impossible to make it WCAG compliant.
|
|
40
|
+
* Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.
|
|
41
|
+
*/
|
|
42
|
+
labelOff?: string;
|
|
43
|
+
}
|
|
44
|
+
interface ButtonV3InherithedProps extends Omit<DSButtonV3T.Props, 'size' | 'children'> {
|
|
45
|
+
}
|
|
46
|
+
interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>, XstyledProps, RequiredProps, PostDeprecationETAProps, PostDeprecationETAPropsFallback {
|
|
23
47
|
}
|
|
24
|
-
interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>, XstyledProps {
|
|
48
|
+
interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>, XstyledProps, RequiredProps, PostDeprecationETAProps, PostDeprecationETAPropsFallback {
|
|
25
49
|
}
|
|
26
50
|
}
|
|
27
51
|
export declare const defaultProps: DSControlledToggleT.DefaultProps;
|
|
28
|
-
export declare const DSControlledTogglePropTypes: DSPropTypesSchema<DSControlledToggleT.Props>;
|
|
52
|
+
export declare const DSControlledTogglePropTypes: DSPropTypesSchema<Omit<DSControlledToggleT.Props, keyof DSControlledToggleT.PostDeprecationETAPropsFallback> & DSControlledToggleT.PostDeprecationETAProps>;
|
|
29
53
|
export declare const DSControlledTogglePropTypesSchema: ValidationMap<DSControlledToggleT.Props>;
|