@elliemae/ds-form-toggle 3.70.0-next.6 → 3.70.0-next.60
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/DSControlledToggle.js +50 -0
- package/dist/cjs/DSControlledToggle.js.map +7 -0
- package/dist/cjs/DSControlledToggleCTX.js +40 -0
- package/dist/cjs/DSControlledToggleCTX.js.map +7 -0
- package/dist/cjs/config/useDSControlledToggle.js +2 -17
- package/dist/cjs/config/useDSControlledToggle.js.map +2 -2
- package/dist/cjs/constants/index.js +0 -1
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/index.js +6 -3
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/package.json +1 -4
- package/dist/cjs/parts/Button.js +103 -0
- package/dist/cjs/parts/Button.js.map +7 -0
- package/dist/cjs/parts/Container.js +61 -0
- package/dist/cjs/parts/Container.js.map +7 -0
- package/dist/cjs/parts/styles/styles.js +246 -0
- package/dist/cjs/parts/styles/styles.js.map +7 -0
- package/dist/cjs/parts/wcagViolation/Button.wcagViolationLabels.js +110 -0
- package/dist/cjs/parts/wcagViolation/Button.wcagViolationLabels.js.map +7 -0
- package/dist/cjs/{config → parts/wcagViolation}/useGetWidestLabelWidth.js.map +1 -1
- package/dist/cjs/react-desc-prop-types.js +2 -0
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/form-toggle-typescript-valid.js +2 -1
- package/dist/cjs/typescript-testing/form-toggle-typescript-valid.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +40 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
- package/dist/esm/DSControlledToggle.js +20 -0
- package/dist/esm/DSControlledToggle.js.map +7 -0
- package/dist/esm/DSControlledToggleCTX.js +10 -0
- package/dist/esm/DSControlledToggleCTX.js.map +7 -0
- package/dist/esm/config/useDSControlledToggle.js +2 -17
- package/dist/esm/config/useDSControlledToggle.js.map +2 -2
- package/dist/esm/constants/index.js +0 -1
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/package.json +1 -4
- package/dist/esm/parts/Button.js +73 -0
- package/dist/esm/parts/Button.js.map +7 -0
- package/dist/esm/parts/Container.js +31 -0
- package/dist/esm/parts/Container.js.map +7 -0
- package/dist/esm/parts/styles/styles.js +216 -0
- package/dist/esm/parts/styles/styles.js.map +7 -0
- package/dist/esm/parts/wcagViolation/Button.wcagViolationLabels.js +86 -0
- package/dist/esm/parts/wcagViolation/Button.wcagViolationLabels.js.map +7 -0
- package/dist/esm/{config → parts/wcagViolation}/useGetWidestLabelWidth.js.map +1 -1
- package/dist/esm/react-desc-prop-types.js +9 -2
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/form-toggle-typescript-valid.js +2 -1
- package/dist/esm/typescript-testing/form-toggle-typescript-valid.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +17 -0
- package/dist/esm/typescript-testing/slot-props.js.map +7 -0
- package/dist/types/DSControlledToggleCTX.d.ts +4 -0
- package/dist/types/config/useDSControlledToggle.d.ts +8 -373
- package/dist/types/constants/index.d.ts +0 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/parts/Button.d.ts +3 -0
- package/dist/types/parts/Container.d.ts +2 -0
- package/dist/types/parts/styles/styles.d.ts +37 -0
- package/dist/types/parts/wcagViolation/Button.wcagViolationLabels.d.ts +3 -0
- package/dist/types/react-desc-prop-types.d.ts +17 -2
- package/package.json +11 -9
- package/dist/cjs/ControlledToggle.js +0 -127
- package/dist/cjs/ControlledToggle.js.map +0 -7
- package/dist/cjs/styles.js +0 -154
- package/dist/cjs/styles.js.map +0 -7
- package/dist/cjs/utils/styleHelpers.js +0 -116
- package/dist/cjs/utils/styleHelpers.js.map +0 -7
- package/dist/esm/ControlledToggle.js +0 -105
- package/dist/esm/ControlledToggle.js.map +0 -7
- package/dist/esm/styles.js +0 -134
- package/dist/esm/styles.js.map +0 -7
- package/dist/esm/utils/styleHelpers.js +0 -86
- package/dist/esm/utils/styleHelpers.js.map +0 -7
- package/dist/types/styles.d.ts +0 -44
- package/dist/types/tests/DSControlledToggle.a11y-specific-scenarios.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.api.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.app-sdk-compatibility.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.axe.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.data-testId.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.events.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.exports.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.get-owner-props-arguments.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.keyboard.test.d.ts +0 -1
- package/dist/types/tests/DSControlledToggle.pitfall.test.d.ts +0 -1
- package/dist/types/typescript-testing/form-toggle-typescript-valid.d.ts +0 -1
- package/dist/types/utils/styleHelpers.d.ts +0 -41
- /package/dist/cjs/{config → parts/wcagViolation}/useGetWidestLabelWidth.js +0 -0
- /package/dist/esm/{config → parts/wcagViolation}/useGetWidestLabelWidth.js +0 -0
- /package/dist/types/{ControlledToggle.d.ts → DSControlledToggle.d.ts} +0 -0
- /package/dist/types/{config → parts/wcagViolation}/useGetWidestLabelWidth.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
3
|
+
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/wcagViolation/useGetWidestLabelWidth.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { throttle } from 'lodash-es';\nimport React, { useState, useRef } from 'react';\n\n/**\n * This should not be required, we are doing this to keep the wcagViolationLabelOn/wcagViolationLabelOff working\n * 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\n *\n * ---\n *\n * 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\n */\nexport const useGetWidestLabelWidth = () => {\n const [width, setWidth] = useState<number>(0);\n const onLabelWidthRef = useRef<number>(68);\n const offLabelWidthRef = useRef<number>(68);\n // typescript with debounce doesn't work well, so we need to disable the exhaustive deps rule here\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const setLongestWidth = React.useCallback(\n throttle(\n () => {\n const longest = Math.max(onLabelWidthRef.current, offLabelWidthRef.current);\n setWidth(longest);\n },\n 20,\n { leading: false, trailing: true },\n ),\n [],\n );\n const handleRefOnLabelWidth = React.useCallback<React.RefCallback<HTMLDivElement>>(\n (node) => {\n const { clientWidth } = node || {};\n onLabelWidthRef.current = clientWidth ?? onLabelWidthRef.current;\n setLongestWidth();\n },\n [setLongestWidth],\n );\n const handleRefOffLabelWidth = React.useCallback<React.RefCallback<HTMLDivElement>>(\n (node) => {\n const { clientWidth } = node || {};\n offLabelWidthRef.current = clientWidth ?? offLabelWidthRef.current;\n setLongestWidth();\n },\n [setLongestWidth],\n );\n return { width, handleRefOnLabelWidth, handleRefOffLabelWidth };\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,gBAAgB;AACzB,OAAOA,UAAS,UAAU,cAAc;AAUjC,MAAM,yBAAyB,MAAM;AAC1C,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAiB,CAAC;AAC5C,QAAM,kBAAkB,OAAe,EAAE;AACzC,QAAM,mBAAmB,OAAe,EAAE;AAG1C,QAAM,kBAAkBA,OAAM;AAAA,IAC5B;AAAA,MACE,MAAM;AACJ,cAAM,UAAU,KAAK,IAAI,gBAAgB,SAAS,iBAAiB,OAAO;AAC1E,iBAAS,OAAO;AAAA,MAClB;AAAA,MACA;AAAA,MACA,EAAE,SAAS,OAAO,UAAU,KAAK;AAAA,IACnC;AAAA,IACA,CAAC;AAAA,EACH;AACA,QAAM,wBAAwBA,OAAM;AAAA,IAClC,CAAC,SAAS;AACR,YAAM,EAAE,YAAY,IAAI,QAAQ,CAAC;AACjC,sBAAgB,UAAU,eAAe,gBAAgB;AACzD,sBAAgB;AAAA,IAClB;AAAA,IACA,CAAC,eAAe;AAAA,EAClB;AACA,QAAM,yBAAyBA,OAAM;AAAA,IACnC,CAAC,SAAS;AACR,YAAM,EAAE,YAAY,IAAI,QAAQ,CAAC;AACjC,uBAAiB,UAAU,eAAe,iBAAiB;AAC3D,sBAAgB;AAAA,IAClB;AAAA,IACA,CAAC,eAAe;AAAA,EAClB;AACA,SAAO,EAAE,OAAO,uBAAuB,uBAAuB;AAChE;",
|
|
6
6
|
"names": ["React"]
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
PropTypes,
|
|
4
|
+
globalAttributesPropTypes,
|
|
5
|
+
xstyledPropTypes,
|
|
6
|
+
getPropsPerSlotPropTypes
|
|
7
|
+
} from "@elliemae/ds-props-helpers";
|
|
8
|
+
import { TOGGLE_SIZES, DSControlledToggleName, CONTROLLED_TOGGLE_SLOTS } from "./constants/index.js";
|
|
4
9
|
const defaultProps = {
|
|
5
10
|
checked: false,
|
|
6
11
|
onChange: () => null,
|
|
@@ -12,6 +17,7 @@ const defaultProps = {
|
|
|
12
17
|
const DSControlledTogglePropTypes = {
|
|
13
18
|
...globalAttributesPropTypes,
|
|
14
19
|
...xstyledPropTypes,
|
|
20
|
+
...getPropsPerSlotPropTypes(DSControlledToggleName, CONTROLLED_TOGGLE_SLOTS),
|
|
15
21
|
checked: PropTypes.bool.description("Whether the toggle is checked or not").defaultValue("false"),
|
|
16
22
|
onChange: PropTypes.func.description("OnClick callback").defaultValue("() => null"),
|
|
17
23
|
size: PropTypes.oneOf(["s", "m", "l"]).description("Size of toggle").defaultValue(TOGGLE_SIZES.MEDIUM),
|
|
@@ -22,6 +28,7 @@ const DSControlledTogglePropTypes = {
|
|
|
22
28
|
readOnly: PropTypes.bool.description("Whether the toggle is readOnly or not").defaultValue("false"),
|
|
23
29
|
containerProps: PropTypes.object.description("Set of properties attached to the main container"),
|
|
24
30
|
id: PropTypes.string.description("Unique id."),
|
|
31
|
+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description("Toggle button ref."),
|
|
25
32
|
labelOn: PropTypes.string.description("Past deprecation ETA, this fails WCAG, switch to appropiate designs").deprecated({ version: "25.3" }),
|
|
26
33
|
labelOff: PropTypes.string.description("Past deprecation ETA, this fails WCAG, switch to appropiate designs").deprecated({ version: "25.3" })
|
|
27
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { DSButtonV3T } from '@elliemae/ds-button-v2';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\nimport type { DSButtonV3T } from '@elliemae/ds-button-v2';\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerSlotPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { TOGGLE_SIZES, DSControlledToggleName, CONTROLLED_TOGGLE_SLOTS } from './constants/index.js';\n\nexport declare namespace DSControlledToggleT {\n export type ToggleSize = ObjectValues<typeof TOGGLE_SIZES>;\n\n // One entry per slot in CONTROLLED_TOGGLE_SLOTS \u2014 the function (dynamic) form of slot props.\n // Exhaustiveness against the slots is enforced in typescript-testing/slot-props.ts.\n export type SlotFunctionArguments = {\n dsFormtoggleButtonContentWrapper: () => object;\n dsFormtoggleCircle: () => object;\n dsFormtoggleTextWrapper: () => object;\n // legacy slot aliases \u2014 still injection points, see KNOWN_INTENTIONAL_DEVIATIONS.md\n dsFormtoggleControlledContainer: () => object;\n dsFormtoggleToggleCheckbox: () => object;\n };\n\n export interface DefaultProps {\n checked: boolean;\n onChange: (e: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;\n size: ToggleSize;\n readOnly: boolean;\n disabled: boolean;\n applyAriaDisabled: boolean;\n }\n\n export interface RequiredProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSControlledToggleName, typeof CONTROLLED_TOGGLE_SLOTS> {\n containerProps?: Record<string, unknown>;\n id?: string;\n /**\n * Ref forwarded to the focusable toggle button (role=\"switch\"). Mirrors the innerRef\n * contract of DSControlledRadio / DSControlledCheckbox so consumers (e.g. ds-data-table\n * custom cells) can reach the real focusable node for keyboard focus management.\n */\n innerRef?: React.MutableRefObject<HTMLButtonElement | null> | React.RefCallback<HTMLButtonElement>;\n }\n\n // this interface is the \"last chance\" for apps to keep using the deprecated props before the major release that will remove them\n // this is meant to \"break\" those using the old prop, but still allow a last chance to gradually update (requiring them to change the prop name)\n export interface PostDeprecationETAPropsFallback {\n /**\n * @deprecated a custom wcagViolationLabelOn violates the role='switch' by design and it's impossible to make it WCAG compliant.\n * Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.\n */\n wcagViolationLabelOn?: string; // used to be \"labelOn\"\n /**\n * @deprecated a custom wcagViolationLabelOff violates the role='switch' by design and it's impossible to make it WCAG compliant.\n * Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.\n */\n wcagViolationLabelOff?: string; // used to be \"labelOff\"\n }\n export interface PreDeprecationETAProps {\n /**\n * @deprecated a custom wcagViolationLabelOn violates the role='switch' by design and it's impossible to make it WCAG compliant.\n * Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.\n */\n labelOn?: string; // used to be \"labelOn\"\n /**\n * @deprecated a custom wcagViolationLabelOff violates the role='switch' by design and it's impossible to make it WCAG compliant.\n * Do not use it, if you need a custom label, you don't need a toggle, use a checkbox instead.\n */\n labelOff?: string; // used to be \"labelOff\"\n }\n\n export interface ButtonV3InherithedProps extends Omit<DSButtonV3T.Props, 'size' | 'children'> {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps,\n PreDeprecationETAProps,\n PostDeprecationETAPropsFallback {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps,\n PreDeprecationETAProps,\n PostDeprecationETAPropsFallback {}\n}\n\nexport const defaultProps: DSControlledToggleT.DefaultProps = {\n checked: false,\n onChange: () => null,\n size: TOGGLE_SIZES.MEDIUM,\n readOnly: false,\n disabled: false,\n applyAriaDisabled: false,\n};\n\nexport const DSControlledTogglePropTypes: DSPropTypesSchema<\n Omit<DSControlledToggleT.Props, keyof DSControlledToggleT.PostDeprecationETAPropsFallback> &\n DSControlledToggleT.PreDeprecationETAProps\n> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n ...getPropsPerSlotPropTypes(DSControlledToggleName, CONTROLLED_TOGGLE_SLOTS),\n checked: PropTypes.bool.description('Whether the toggle is checked or not').defaultValue('false'),\n onChange: PropTypes.func.description('OnClick callback').defaultValue('() => null'),\n size: PropTypes.oneOf(['s', 'm', 'l']).description('Size of toggle').defaultValue(TOGGLE_SIZES.MEDIUM),\n disabled: PropTypes.bool.description('Whether the toggle is disabled or not').defaultValue('false'),\n applyAriaDisabled: PropTypes.bool\n .description(\n 'Whether to apply disabled styling and announce as disabled in SR. CAN STILL RECEIVE FOCUS. PREVENTS ONLY MAIN ACTION.',\n )\n .defaultValue('false'),\n readOnly: PropTypes.bool.description('Whether the toggle is readOnly or not').defaultValue('false'),\n containerProps: PropTypes.object.description('Set of properties attached to the main container'),\n id: PropTypes.string.description('Unique id.'),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description('Toggle button ref.'),\n labelOn: PropTypes.string\n .description('Past deprecation ETA, this fails WCAG, switch to appropiate designs')\n .deprecated({ version: '25.3' }),\n labelOff: PropTypes.string\n .description('Past deprecation ETA, this fails WCAG, switch to appropiate designs')\n .deprecated({ version: '25.3' }),\n};\n\nexport const DSControlledTogglePropTypesSchema =\n DSControlledTogglePropTypes as unknown as ValidationMap<DSControlledToggleT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,cAAc,wBAAwB,+BAA+B;AAuFvE,MAAM,eAAiD;AAAA,EAC5D,SAAS;AAAA,EACT,UAAU,MAAM;AAAA,EAChB,MAAM,aAAa;AAAA,EACnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,mBAAmB;AACrB;AAEO,MAAM,8BAGT;AAAA,EACF,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG,yBAAyB,wBAAwB,uBAAuB;AAAA,EAC3E,SAAS,UAAU,KAAK,YAAY,sCAAsC,EAAE,aAAa,OAAO;AAAA,EAChG,UAAU,UAAU,KAAK,YAAY,kBAAkB,EAAE,aAAa,YAAY;AAAA,EAClF,MAAM,UAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAAE,YAAY,gBAAgB,EAAE,aAAa,aAAa,MAAM;AAAA,EACrG,UAAU,UAAU,KAAK,YAAY,uCAAuC,EAAE,aAAa,OAAO;AAAA,EAClG,mBAAmB,UAAU,KAC1B;AAAA,IACC;AAAA,EACF,EACC,aAAa,OAAO;AAAA,EACvB,UAAU,UAAU,KAAK,YAAY,uCAAuC,EAAE,aAAa,OAAO;AAAA,EAClG,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,IAAI,UAAU,OAAO,YAAY,YAAY;AAAA,EAC7C,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,CAAC,EAAE,YAAY,oBAAoB;AAAA,EAClG,SAAS,UAAU,OAChB,YAAY,qEAAqE,EACjF,WAAW,EAAE,SAAS,OAAO,CAAC;AAAA,EACjC,UAAU,UAAU,OACjB,YAAY,qEAAqE,EACjF,WAAW,EAAE,SAAS,OAAO,CAAC;AACnC;AAEO,MAAM,oCACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/form-toggle-typescript-valid.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSControlledToggle, TOGGLE_SIZES, type DSControlledToggleT } from '../index.js';\n\n/**\n * Namespace type aliases exposed by the package public API.\n */\ntype ComponentPropsForApp = DSControlledToggleT.Props;\ntype ComponentPropsInternals = DSControlledToggleT.InternalProps;\ntype ComponentPropsDefaultProps = DSControlledToggleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSControlledToggleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSControlledToggleT.RequiredProps;\n\n/**\n * Required props contract (empty for this component).\n */\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\n/**\n * Optional props contract.\n */\nconst testOptionalProps: ComponentPropsOptionalProps = {\n id: 'toggle-id',\n containerProps: {\n 'data-testid': 'toggle-container',\n 'aria-label': 'toggle container',\n },\n};\n\n/**\n * Partial defaults are valid for app-facing props.\n */\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n checked: true,\n size: TOGGLE_SIZES.MEDIUM,\n};\n\n/**\n * Public props composition using explicit type annotation.\n */\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\n/**\n * Public props composition using \"as\" syntax.\n */\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n/**\n * Internal props require all default values.\n */\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n checked: false,\n onChange: () => {},\n size: TOGGLE_SIZES.MEDIUM,\n readOnly: false,\n disabled: false,\n applyAriaDisabled: false,\n};\n\n/**\n * Internal props composition using explicit type annotation.\n */\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n/**\n * Internal props composition using \"as\" syntax.\n */\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n/**\n * Explicit app-facing definition validates individual keys.\n */\nconst testExplicitDefinition: ComponentPropsForApp = {\n id: 'toggle-explicit',\n containerProps: {\n 'data-testid': 'toggle-explicit-container',\n },\n checked: true,\n onChange: () => {},\n size: TOGGLE_SIZES.LARGE,\n readOnly: false,\n disabled: false,\n applyAriaDisabled: false,\n labelOn: 'Enabled',\n labelOff: 'Disabled',\n wcagViolationLabelOn: 'Legacy On',\n wcagViolationLabelOff: 'Legacy Off',\n};\n\n/**\n * Inferred compatibility validates the complete object against public props.\n */\nconst testInferedTypeCompatibility = {\n id: 'toggle-inferred',\n checked: false,\n onChange: () => {},\n size: TOGGLE_SIZES.SMALL,\n readOnly: false,\n disabled: true,\n applyAriaDisabled: true,\n labelOn: 'Enabled',\n labelOff: 'Disabled',\n} as ComponentPropsForApp;\n\n/**\n * As-const object should remain spread-compatible with component props.\n */\nconst testDefinitionAsConst = {\n id: 'toggle-const',\n checked: true,\n onChange: () => {},\n size: TOGGLE_SIZES.MEDIUM,\n readOnly: true,\n disabled: false,\n applyAriaDisabled: false,\n} as const;\n\n/**\n * TS validation usage component covering spread and inline syntaxes.\n */\nconst ExampleUsageComponent = () => (\n <>\n <DSControlledToggle {...testExplicitDefinition} />\n <DSControlledToggle {...testInferedTypeCompatibility} />\n <DSControlledToggle {...testDefinitionAsConst} />\n <DSControlledToggle\n id=\"toggle-inline\"\n containerProps={{\n 'data-testid': 'toggle-inline-container',\n }}\n checked\n onChange={() => {}}\n size={TOGGLE_SIZES.MEDIUM}\n readOnly={false}\n disabled={false}\n applyAriaDisabled={false}\n labelOn=\"Enabled\"\n labelOff=\"Disabled\"\n wcagViolationLabelOn=\"Legacy On\"\n wcagViolationLabelOff=\"Legacy Off\"\n />\n </>\n);\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSControlledToggle, TOGGLE_SIZES, type DSControlledToggleT } from '../index.js';\n\n/**\n * Namespace type aliases exposed by the package public API.\n */\ntype ComponentPropsForApp = DSControlledToggleT.Props;\ntype ComponentPropsInternals = DSControlledToggleT.InternalProps;\ntype ComponentPropsDefaultProps = DSControlledToggleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSControlledToggleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSControlledToggleT.RequiredProps;\n\n/**\n * Required props contract (empty for this component).\n */\nconst testRequiredProps: ComponentPropsRequiredProps = {};\n\n/**\n * Optional props contract.\n */\nconst testOptionalProps: ComponentPropsOptionalProps = {\n id: 'toggle-id',\n containerProps: {\n 'data-testid': 'toggle-container',\n 'aria-label': 'toggle container',\n },\n innerRef: { current: null },\n};\n\n/**\n * Partial defaults are valid for app-facing props.\n */\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n checked: true,\n size: TOGGLE_SIZES.MEDIUM,\n};\n\n/**\n * Public props composition using explicit type annotation.\n */\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\n/**\n * Public props composition using \"as\" syntax.\n */\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n/**\n * Internal props require all default values.\n */\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n checked: false,\n onChange: () => {},\n size: TOGGLE_SIZES.MEDIUM,\n readOnly: false,\n disabled: false,\n applyAriaDisabled: false,\n};\n\n/**\n * Internal props composition using explicit type annotation.\n */\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\n/**\n * Internal props composition using \"as\" syntax.\n */\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n/**\n * Explicit app-facing definition validates individual keys.\n */\nconst testExplicitDefinition: ComponentPropsForApp = {\n id: 'toggle-explicit',\n containerProps: {\n 'data-testid': 'toggle-explicit-container',\n },\n checked: true,\n onChange: () => {},\n size: TOGGLE_SIZES.LARGE,\n readOnly: false,\n disabled: false,\n applyAriaDisabled: false,\n labelOn: 'Enabled',\n labelOff: 'Disabled',\n wcagViolationLabelOn: 'Legacy On',\n wcagViolationLabelOff: 'Legacy Off',\n};\n\n/**\n * Inferred compatibility validates the complete object against public props.\n */\nconst testInferedTypeCompatibility = {\n id: 'toggle-inferred',\n checked: false,\n onChange: () => {},\n size: TOGGLE_SIZES.SMALL,\n readOnly: false,\n disabled: true,\n applyAriaDisabled: true,\n labelOn: 'Enabled',\n labelOff: 'Disabled',\n} as ComponentPropsForApp;\n\n/**\n * As-const object should remain spread-compatible with component props.\n */\nconst testDefinitionAsConst = {\n id: 'toggle-const',\n checked: true,\n onChange: () => {},\n size: TOGGLE_SIZES.MEDIUM,\n readOnly: true,\n disabled: false,\n applyAriaDisabled: false,\n} as const;\n\n/**\n * TS validation usage component covering spread and inline syntaxes.\n */\nconst ExampleUsageComponent = () => (\n <>\n <DSControlledToggle {...testExplicitDefinition} />\n <DSControlledToggle {...testInferedTypeCompatibility} />\n <DSControlledToggle {...testDefinitionAsConst} />\n <DSControlledToggle\n id=\"toggle-inline\"\n containerProps={{\n 'data-testid': 'toggle-inline-container',\n }}\n checked\n onChange={() => {}}\n size={TOGGLE_SIZES.MEDIUM}\n readOnly={false}\n disabled={false}\n applyAriaDisabled={false}\n labelOn=\"Enabled\"\n labelOff=\"Disabled\"\n wcagViolationLabelOn=\"Legacy On\"\n wcagViolationLabelOff=\"Legacy Off\"\n />\n </>\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACyIrB,mBACE,KADF;AAxIF,SAAS,oBAAoB,oBAA8C;AAc3E,MAAM,oBAAiD,CAAC;AAKxD,MAAM,oBAAiD;AAAA,EACrD,IAAI;AAAA,EACJ,gBAAgB;AAAA,IACd,eAAe;AAAA,IACf,cAAc;AAAA,EAChB;AAAA,EACA,UAAU,EAAE,SAAS,KAAK;AAC5B;AAKA,MAAM,sBAA2D;AAAA,EAC/D,SAAS;AAAA,EACT,MAAM,aAAa;AACrB;AAKA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAKA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAKA,MAAM,uBAA6D;AAAA,EACjE,SAAS;AAAA,EACT,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,MAAM,aAAa;AAAA,EACnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,mBAAmB;AACrB;AAKA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAKA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAKA,MAAM,yBAA+C;AAAA,EACnD,IAAI;AAAA,EACJ,gBAAgB;AAAA,IACd,eAAe;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,EACT,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,MAAM,aAAa;AAAA,EACnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,sBAAsB;AAAA,EACtB,uBAAuB;AACzB;AAKA,MAAM,+BAA+B;AAAA,EACnC,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,MAAM,aAAa;AAAA,EACnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,UAAU;AACZ;AAKA,MAAM,wBAAwB;AAAA,EAC5B,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,UAAU,MAAM;AAAA,EAAC;AAAA,EACjB,MAAM,aAAa;AAAA,EACnB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,mBAAmB;AACrB;AAKA,MAAM,wBAAwB,MAC5B,iCACE;AAAA,sBAAC,sBAAoB,GAAG,wBAAwB;AAAA,EAChD,oBAAC,sBAAoB,GAAG,8BAA8B;AAAA,EACtD,oBAAC,sBAAoB,GAAG,uBAAuB;AAAA,EAC/C;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,gBAAgB;AAAA,QACd,eAAe;AAAA,MACjB;AAAA,MACA,SAAO;AAAA,MACP,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,MAAM,aAAa;AAAA,MACnB,UAAU;AAAA,MACV,UAAU;AAAA,MACV,mBAAmB;AAAA,MACnB,SAAQ;AAAA,MACR,UAAS;AAAA,MACT,sBAAqB;AAAA,MACrB,uBAAsB;AAAA;AAAA,EACxB;AAAA,GACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const SlotPropsAsObject = {
|
|
3
|
+
dsFormtoggleButtonContentWrapper: { "aria-label": "just a typescript test" },
|
|
4
|
+
dsFormtoggleCircle: { "aria-label": "just a typescript test" },
|
|
5
|
+
dsFormtoggleTextWrapper: { "aria-label": "just a typescript test" },
|
|
6
|
+
dsFormtoggleControlledContainer: { "aria-label": "just a typescript test" },
|
|
7
|
+
dsFormtoggleToggleCheckbox: { "aria-label": "just a typescript test" }
|
|
8
|
+
};
|
|
9
|
+
const SlotPropsAsFunctions = {
|
|
10
|
+
dsFormtoggleButtonContentWrapper: () => ({ "aria-label": "just a typescript test" }),
|
|
11
|
+
dsFormtoggleCircle: () => ({ "aria-label": "just a typescript test" }),
|
|
12
|
+
dsFormtoggleTextWrapper: () => ({ "aria-label": "just a typescript test" }),
|
|
13
|
+
dsFormtoggleControlledContainer: () => ({ "aria-label": "just a typescript test" }),
|
|
14
|
+
dsFormtoggleToggleCheckbox: () => ({ "aria-label": "just a typescript test" })
|
|
15
|
+
};
|
|
16
|
+
const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
|
|
17
|
+
//# sourceMappingURL=slot-props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport type { DSControlledToggleT } from '../react-desc-prop-types.js';\nimport type { DSControlledToggleName, CONTROLLED_TOGGLE_SLOTS } from '../constants/index.js';\n\n// Exhaustiveness contract over CONTROLLED_TOGGLE_SLOTS \u2014 every slot must appear in SlotFunctionArguments.\n// The legacy aliases (dsFormtoggleControlledContainer, dsFormtoggleToggleCheckbox) are real injection\n// points kept for QA/consumer compatibility \u2014 see KNOWN_INTENTIONAL_DEVIATIONS.md.\n//\n// Slot props can be passed in two forms \u2014 object (static) and function (dynamic).\nconst SlotPropsAsObject: Partial<DSControlledToggleT.Props> = {\n dsFormtoggleButtonContentWrapper: { 'aria-label': 'just a typescript test' },\n dsFormtoggleCircle: { 'aria-label': 'just a typescript test' },\n dsFormtoggleTextWrapper: { 'aria-label': 'just a typescript test' },\n dsFormtoggleControlledContainer: { 'aria-label': 'just a typescript test' },\n dsFormtoggleToggleCheckbox: { 'aria-label': 'just a typescript test' },\n};\n\nconst SlotPropsAsFunctions: DSControlledToggleT.SlotFunctionArguments = {\n dsFormtoggleButtonContentWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n dsFormtoggleCircle: () => ({ 'aria-label': 'just a typescript test' }),\n dsFormtoggleTextWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n dsFormtoggleControlledContainer: () => ({ 'aria-label': 'just a typescript test' }),\n dsFormtoggleToggleCheckbox: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\n// Exhaustiveness check \u2014 fails compilation if a slot is missing from SlotFunctionArguments.\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSControlledToggleName, typeof CONTROLLED_TOGGLE_SLOTS>\n> = SlotPropsAsFunctions;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACUvB,MAAM,oBAAwD;AAAA,EAC5D,kCAAkC,EAAE,cAAc,yBAAyB;AAAA,EAC3E,oBAAoB,EAAE,cAAc,yBAAyB;AAAA,EAC7D,yBAAyB,EAAE,cAAc,yBAAyB;AAAA,EAClE,iCAAiC,EAAE,cAAc,yBAAyB;AAAA,EAC1E,4BAA4B,EAAE,cAAc,yBAAyB;AACvE;AAEA,MAAM,uBAAkE;AAAA,EACtE,kCAAkC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClF,oBAAoB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACpE,yBAAyB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACzE,iCAAiC,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACjF,4BAA4B,OAAO,EAAE,cAAc,yBAAyB;AAC9E;AAGA,MAAM,6CAEF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,378 +1,13 @@
|
|
|
1
|
+
import { useGetGlobalAttributes, useGetXstyledProps } from '@elliemae/ds-props-helpers';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { type DSControlledToggleT } from '../react-desc-prop-types.js';
|
|
3
|
-
|
|
4
|
+
import { useGetButtonProps } from './useGetButtonProps.js';
|
|
5
|
+
export interface ControlledToggleCTX {
|
|
4
6
|
propsWithDefault: DSControlledToggleT.InternalProps;
|
|
5
|
-
|
|
6
|
-
|
|
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;
|
|
18
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
19
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
20
|
-
"aria-braillelabel"?: string | undefined | undefined;
|
|
21
|
-
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
22
|
-
"aria-busy"?: (boolean | "true" | "false") | 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;
|
|
33
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
34
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
35
|
-
"aria-errormessage"?: string | undefined | undefined;
|
|
36
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
37
|
-
"aria-flowto"?: string | undefined | undefined;
|
|
38
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
39
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
40
|
-
"aria-hidden"?: (boolean | "true" | "false") | 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;
|
|
47
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
48
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
49
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
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;
|
|
55
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
56
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
57
|
-
"aria-required"?: (boolean | "true" | "false") | 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;
|
|
63
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
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;
|
|
70
|
-
onCopy?: React.ClipboardEventHandler<Element> | undefined;
|
|
71
|
-
onCopyCapture?: React.ClipboardEventHandler<Element> | undefined;
|
|
72
|
-
onCut?: React.ClipboardEventHandler<Element> | undefined;
|
|
73
|
-
onCutCapture?: React.ClipboardEventHandler<Element> | undefined;
|
|
74
|
-
onPaste?: React.ClipboardEventHandler<Element> | undefined;
|
|
75
|
-
onPasteCapture?: React.ClipboardEventHandler<Element> | undefined;
|
|
76
|
-
onCompositionEnd?: React.CompositionEventHandler<Element> | undefined;
|
|
77
|
-
onCompositionEndCapture?: React.CompositionEventHandler<Element> | undefined;
|
|
78
|
-
onCompositionStart?: React.CompositionEventHandler<Element> | undefined;
|
|
79
|
-
onCompositionStartCapture?: React.CompositionEventHandler<Element> | undefined;
|
|
80
|
-
onCompositionUpdate?: React.CompositionEventHandler<Element> | undefined;
|
|
81
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<Element> | undefined;
|
|
82
|
-
onFocus?: React.FocusEventHandler<Element> | undefined;
|
|
83
|
-
onFocusCapture?: React.FocusEventHandler<Element> | undefined;
|
|
84
|
-
onBlur?: React.FocusEventHandler<Element> | undefined;
|
|
85
|
-
onBlurCapture?: React.FocusEventHandler<Element> | undefined;
|
|
86
|
-
onChange?: React.FormEventHandler<Element> | undefined;
|
|
87
|
-
onChangeCapture?: React.FormEventHandler<Element> | undefined;
|
|
88
|
-
onBeforeInput?: React.InputEventHandler<Element> | undefined;
|
|
89
|
-
onBeforeInputCapture?: React.FormEventHandler<Element> | undefined;
|
|
90
|
-
onInput?: React.FormEventHandler<Element> | undefined;
|
|
91
|
-
onInputCapture?: React.FormEventHandler<Element> | undefined;
|
|
92
|
-
onReset?: React.FormEventHandler<Element> | undefined;
|
|
93
|
-
onResetCapture?: React.FormEventHandler<Element> | undefined;
|
|
94
|
-
onSubmit?: React.FormEventHandler<Element> | undefined;
|
|
95
|
-
onSubmitCapture?: React.FormEventHandler<Element> | undefined;
|
|
96
|
-
onInvalid?: React.FormEventHandler<Element> | undefined;
|
|
97
|
-
onInvalidCapture?: React.FormEventHandler<Element> | undefined;
|
|
98
|
-
onLoad?: React.ReactEventHandler<Element> | undefined;
|
|
99
|
-
onLoadCapture?: React.ReactEventHandler<Element> | undefined;
|
|
100
|
-
onError?: React.ReactEventHandler<Element> | undefined;
|
|
101
|
-
onErrorCapture?: React.ReactEventHandler<Element> | undefined;
|
|
102
|
-
onKeyDown?: React.KeyboardEventHandler<Element> | undefined;
|
|
103
|
-
onKeyDownCapture?: React.KeyboardEventHandler<Element> | undefined;
|
|
104
|
-
onKeyPress?: React.KeyboardEventHandler<Element> | undefined;
|
|
105
|
-
onKeyPressCapture?: React.KeyboardEventHandler<Element> | undefined;
|
|
106
|
-
onKeyUp?: React.KeyboardEventHandler<Element> | undefined;
|
|
107
|
-
onKeyUpCapture?: React.KeyboardEventHandler<Element> | undefined;
|
|
108
|
-
onAbort?: React.ReactEventHandler<Element> | undefined;
|
|
109
|
-
onAbortCapture?: React.ReactEventHandler<Element> | undefined;
|
|
110
|
-
onCanPlay?: React.ReactEventHandler<Element> | undefined;
|
|
111
|
-
onCanPlayCapture?: React.ReactEventHandler<Element> | undefined;
|
|
112
|
-
onCanPlayThrough?: React.ReactEventHandler<Element> | undefined;
|
|
113
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<Element> | undefined;
|
|
114
|
-
onDurationChange?: React.ReactEventHandler<Element> | undefined;
|
|
115
|
-
onDurationChangeCapture?: React.ReactEventHandler<Element> | undefined;
|
|
116
|
-
onEmptied?: React.ReactEventHandler<Element> | undefined;
|
|
117
|
-
onEmptiedCapture?: React.ReactEventHandler<Element> | undefined;
|
|
118
|
-
onEncrypted?: React.ReactEventHandler<Element> | undefined;
|
|
119
|
-
onEncryptedCapture?: React.ReactEventHandler<Element> | undefined;
|
|
120
|
-
onEnded?: React.ReactEventHandler<Element> | undefined;
|
|
121
|
-
onEndedCapture?: React.ReactEventHandler<Element> | undefined;
|
|
122
|
-
onLoadedData?: React.ReactEventHandler<Element> | undefined;
|
|
123
|
-
onLoadedDataCapture?: React.ReactEventHandler<Element> | undefined;
|
|
124
|
-
onLoadedMetadata?: React.ReactEventHandler<Element> | undefined;
|
|
125
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<Element> | undefined;
|
|
126
|
-
onLoadStart?: React.ReactEventHandler<Element> | undefined;
|
|
127
|
-
onLoadStartCapture?: React.ReactEventHandler<Element> | undefined;
|
|
128
|
-
onPause?: React.ReactEventHandler<Element> | undefined;
|
|
129
|
-
onPauseCapture?: React.ReactEventHandler<Element> | undefined;
|
|
130
|
-
onPlay?: React.ReactEventHandler<Element> | undefined;
|
|
131
|
-
onPlayCapture?: React.ReactEventHandler<Element> | undefined;
|
|
132
|
-
onPlaying?: React.ReactEventHandler<Element> | undefined;
|
|
133
|
-
onPlayingCapture?: React.ReactEventHandler<Element> | undefined;
|
|
134
|
-
onProgress?: React.ReactEventHandler<Element> | undefined;
|
|
135
|
-
onProgressCapture?: React.ReactEventHandler<Element> | undefined;
|
|
136
|
-
onRateChange?: React.ReactEventHandler<Element> | undefined;
|
|
137
|
-
onRateChangeCapture?: React.ReactEventHandler<Element> | undefined;
|
|
138
|
-
onSeeked?: React.ReactEventHandler<Element> | undefined;
|
|
139
|
-
onSeekedCapture?: React.ReactEventHandler<Element> | undefined;
|
|
140
|
-
onSeeking?: React.ReactEventHandler<Element> | undefined;
|
|
141
|
-
onSeekingCapture?: React.ReactEventHandler<Element> | undefined;
|
|
142
|
-
onStalled?: React.ReactEventHandler<Element> | undefined;
|
|
143
|
-
onStalledCapture?: React.ReactEventHandler<Element> | undefined;
|
|
144
|
-
onSuspend?: React.ReactEventHandler<Element> | undefined;
|
|
145
|
-
onSuspendCapture?: React.ReactEventHandler<Element> | undefined;
|
|
146
|
-
onTimeUpdate?: React.ReactEventHandler<Element> | undefined;
|
|
147
|
-
onTimeUpdateCapture?: React.ReactEventHandler<Element> | undefined;
|
|
148
|
-
onVolumeChange?: React.ReactEventHandler<Element> | undefined;
|
|
149
|
-
onVolumeChangeCapture?: React.ReactEventHandler<Element> | undefined;
|
|
150
|
-
onWaiting?: React.ReactEventHandler<Element> | undefined;
|
|
151
|
-
onWaitingCapture?: React.ReactEventHandler<Element> | undefined;
|
|
152
|
-
onAuxClick?: React.MouseEventHandler<Element> | undefined;
|
|
153
|
-
onAuxClickCapture?: React.MouseEventHandler<Element> | undefined;
|
|
154
|
-
onClickCapture?: React.MouseEventHandler<Element> | undefined;
|
|
155
|
-
onContextMenu?: React.MouseEventHandler<Element> | undefined;
|
|
156
|
-
onContextMenuCapture?: React.MouseEventHandler<Element> | undefined;
|
|
157
|
-
onDoubleClick?: React.MouseEventHandler<Element> | undefined;
|
|
158
|
-
onDoubleClickCapture?: React.MouseEventHandler<Element> | undefined;
|
|
159
|
-
onDrag?: React.DragEventHandler<Element> | undefined;
|
|
160
|
-
onDragCapture?: React.DragEventHandler<Element> | undefined;
|
|
161
|
-
onDragEnd?: React.DragEventHandler<Element> | undefined;
|
|
162
|
-
onDragEndCapture?: React.DragEventHandler<Element> | undefined;
|
|
163
|
-
onDragEnter?: React.DragEventHandler<Element> | undefined;
|
|
164
|
-
onDragEnterCapture?: React.DragEventHandler<Element> | undefined;
|
|
165
|
-
onDragExit?: React.DragEventHandler<Element> | undefined;
|
|
166
|
-
onDragExitCapture?: React.DragEventHandler<Element> | undefined;
|
|
167
|
-
onDragLeave?: React.DragEventHandler<Element> | undefined;
|
|
168
|
-
onDragLeaveCapture?: React.DragEventHandler<Element> | undefined;
|
|
169
|
-
onDragOver?: React.DragEventHandler<Element> | undefined;
|
|
170
|
-
onDragOverCapture?: React.DragEventHandler<Element> | undefined;
|
|
171
|
-
onDragStart?: React.DragEventHandler<Element> | undefined;
|
|
172
|
-
onDragStartCapture?: React.DragEventHandler<Element> | undefined;
|
|
173
|
-
onDrop?: React.DragEventHandler<Element> | undefined;
|
|
174
|
-
onDropCapture?: React.DragEventHandler<Element> | undefined;
|
|
175
|
-
onMouseDown?: React.MouseEventHandler<Element> | undefined;
|
|
176
|
-
onMouseDownCapture?: React.MouseEventHandler<Element> | undefined;
|
|
177
|
-
onMouseEnter?: React.MouseEventHandler<Element> | undefined;
|
|
178
|
-
onMouseLeave?: React.MouseEventHandler<Element> | undefined;
|
|
179
|
-
onMouseMove?: React.MouseEventHandler<Element> | undefined;
|
|
180
|
-
onMouseMoveCapture?: React.MouseEventHandler<Element> | undefined;
|
|
181
|
-
onMouseOut?: React.MouseEventHandler<Element> | undefined;
|
|
182
|
-
onMouseOutCapture?: React.MouseEventHandler<Element> | undefined;
|
|
183
|
-
onMouseOver?: React.MouseEventHandler<Element> | undefined;
|
|
184
|
-
onMouseOverCapture?: React.MouseEventHandler<Element> | undefined;
|
|
185
|
-
onMouseUp?: React.MouseEventHandler<Element> | undefined;
|
|
186
|
-
onMouseUpCapture?: React.MouseEventHandler<Element> | undefined;
|
|
187
|
-
onSelect?: React.ReactEventHandler<Element> | undefined;
|
|
188
|
-
onSelectCapture?: React.ReactEventHandler<Element> | undefined;
|
|
189
|
-
onTouchCancel?: React.TouchEventHandler<Element> | undefined;
|
|
190
|
-
onTouchCancelCapture?: React.TouchEventHandler<Element> | undefined;
|
|
191
|
-
onTouchEnd?: React.TouchEventHandler<Element> | undefined;
|
|
192
|
-
onTouchEndCapture?: React.TouchEventHandler<Element> | undefined;
|
|
193
|
-
onTouchMove?: React.TouchEventHandler<Element> | undefined;
|
|
194
|
-
onTouchMoveCapture?: React.TouchEventHandler<Element> | undefined;
|
|
195
|
-
onTouchStart?: React.TouchEventHandler<Element> | undefined;
|
|
196
|
-
onTouchStartCapture?: React.TouchEventHandler<Element> | undefined;
|
|
197
|
-
onPointerDown?: React.PointerEventHandler<Element> | undefined;
|
|
198
|
-
onPointerDownCapture?: React.PointerEventHandler<Element> | undefined;
|
|
199
|
-
onPointerMove?: React.PointerEventHandler<Element> | undefined;
|
|
200
|
-
onPointerMoveCapture?: React.PointerEventHandler<Element> | undefined;
|
|
201
|
-
onPointerUp?: React.PointerEventHandler<Element> | undefined;
|
|
202
|
-
onPointerUpCapture?: React.PointerEventHandler<Element> | undefined;
|
|
203
|
-
onPointerCancel?: React.PointerEventHandler<Element> | undefined;
|
|
204
|
-
onPointerCancelCapture?: React.PointerEventHandler<Element> | undefined;
|
|
205
|
-
onPointerEnter?: React.PointerEventHandler<Element> | undefined;
|
|
206
|
-
onPointerLeave?: React.PointerEventHandler<Element> | undefined;
|
|
207
|
-
onPointerOver?: React.PointerEventHandler<Element> | undefined;
|
|
208
|
-
onPointerOverCapture?: React.PointerEventHandler<Element> | undefined;
|
|
209
|
-
onPointerOut?: React.PointerEventHandler<Element> | undefined;
|
|
210
|
-
onPointerOutCapture?: React.PointerEventHandler<Element> | undefined;
|
|
211
|
-
onGotPointerCapture?: React.PointerEventHandler<Element> | undefined;
|
|
212
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<Element> | undefined;
|
|
213
|
-
onLostPointerCapture?: React.PointerEventHandler<Element> | undefined;
|
|
214
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<Element> | undefined;
|
|
215
|
-
onScroll?: React.UIEventHandler<Element> | undefined;
|
|
216
|
-
onScrollCapture?: React.UIEventHandler<Element> | undefined;
|
|
217
|
-
onWheel?: React.WheelEventHandler<Element> | undefined;
|
|
218
|
-
onWheelCapture?: React.WheelEventHandler<Element> | undefined;
|
|
219
|
-
onAnimationStart?: React.AnimationEventHandler<Element> | undefined;
|
|
220
|
-
onAnimationStartCapture?: React.AnimationEventHandler<Element> | undefined;
|
|
221
|
-
onAnimationEnd?: React.AnimationEventHandler<Element> | undefined;
|
|
222
|
-
onAnimationEndCapture?: React.AnimationEventHandler<Element> | undefined;
|
|
223
|
-
onAnimationIteration?: React.AnimationEventHandler<Element> | undefined;
|
|
224
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<Element> | undefined;
|
|
225
|
-
onTransitionEnd?: React.TransitionEventHandler<Element> | undefined;
|
|
226
|
-
onTransitionEndCapture?: React.TransitionEventHandler<Element> | undefined;
|
|
227
|
-
defaultChecked?: boolean | undefined | undefined;
|
|
228
|
-
defaultValue?: string | number | readonly 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;
|
|
235
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
236
|
-
contextMenu?: string | undefined | undefined;
|
|
237
|
-
dir?: string | undefined | undefined;
|
|
238
|
-
draggable?: (boolean | "true" | "false") | 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;
|
|
245
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
246
|
-
style?: React.CSSProperties | undefined;
|
|
247
|
-
tabIndex?: 0 | -1 | undefined;
|
|
248
|
-
title?: string | undefined | undefined;
|
|
249
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
250
|
-
radioGroup?: string | undefined | undefined;
|
|
251
|
-
role?: React.AriaRole | undefined;
|
|
252
|
-
about?: string | undefined | undefined;
|
|
253
|
-
datatype?: string | undefined | undefined;
|
|
254
|
-
inlist?: any;
|
|
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;
|
|
279
|
-
action?: string | undefined;
|
|
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;
|
|
298
|
-
crossOrigin?: "" | "anonymous" | "use-credentials" | 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;
|
|
304
|
-
download?: any;
|
|
305
|
-
encType?: string | undefined | undefined;
|
|
306
|
-
formAction?: string | undefined;
|
|
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;
|
|
373
|
-
}, never>>;
|
|
374
|
-
buttonProps: DSControlledToggleT.ButtonV3InherithedProps;
|
|
375
|
-
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
7
|
+
globalProps: ReturnType<typeof useGetGlobalAttributes>;
|
|
8
|
+
xstyledProps: ReturnType<typeof useGetXstyledProps>;
|
|
376
9
|
instanceUid: string;
|
|
10
|
+
buttonProps: ReturnType<typeof useGetButtonProps>;
|
|
377
11
|
handleOnClick: (e: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
378
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export declare const useDSControlledToggle: (propsFromUser: DSControlledToggleT.Props) => ControlledToggleCTX;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const DSControlledToggleName = "DSFormtoggle";
|
|
2
2
|
export declare const CONTROLLED_TOGGLE_SLOTS: {
|
|
3
|
-
readonly CONTAINER_WITH_RADIUS_SHAPE: "container-with-radius-shape";
|
|
4
3
|
readonly BUTTON_CONTENT_WRAPPER: "button-content-wrapper";
|
|
5
4
|
readonly CIRCLE: "circle";
|
|
6
5
|
readonly TEXT_WRAPPER: "text-wrapper";
|
|
@@ -10,7 +9,6 @@ export declare const CONTROLLED_TOGGLE_SLOTS: {
|
|
|
10
9
|
export declare const CONTROLLED_TOGGLE_DATA_TESTID: {
|
|
11
10
|
CONTROLLED_CONTAINER: string;
|
|
12
11
|
TOGGLE_CHECKBOX: string;
|
|
13
|
-
CONTAINER_WITH_RADIUS_SHAPE: "ds-formtoggle-container-with-radius-shape";
|
|
14
12
|
BUTTON_CONTENT_WRAPPER: "ds-formtoggle-button-content-wrapper";
|
|
15
13
|
CIRCLE: "ds-formtoggle-circle";
|
|
16
14
|
TEXT_WRAPPER: "ds-formtoggle-text-wrapper";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { CONTROLLED_TOGGLE_DATA_TESTID, CONTROLLED_TOGGLE_SLOTS, DSControlledToggleName, TOGGLE_SIZES, } from './constants/index.js';
|
|
2
|
+
export { DSControlledToggle, DSControlledToggleWithSchema } from './DSControlledToggle.js';
|
|
3
3
|
export type { DSControlledToggleT } from './react-desc-prop-types.js';
|