@chayns-components/typewriter 5.0.0-beta.304 → 5.0.0-beta.308
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typewriter.js","names":["_react","_interopRequireWildcard","require","_server","_Typewriter","_utils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TypewriterResetDelay","exports","TypewriterSpeed","Typewriter","_ref","children","onFinish","pseudoChildren","resetDelay","Medium","shouldForceCursorAnimation","shouldSortChildrenRandomly","shouldUseAnimationHeight","shouldUseResetAnimation","speed","textStyle","currentChildrenIndex","setCurrentChildrenIndex","useState","sortedChildren","useMemo","Array","isArray","shuffleArray","areMultipleChildrenGiven","childrenCount","length","textContent","currentChildren","React","isValidElement","renderToString","charactersCount","getCharactersCount","isResetAnimationActive","setIsResetAnimationActive","shownCharCount","setShownCharCount","shouldStopAnimation","setShouldStopAnimation","isAnimatingText","handleClick","useCallback","handleSetNextChildrenIndex","newIndex","useEffect","interval","window","setInterval","prevState","nextState","clearInterval","setTimeout","shownText","getSubTextFromHTML","pseudoTextHTML","pseudoText","createElement","StyledTypewriter","onClick","StyledTypewriterText","dangerouslySetInnerHTML","__html","style","StyledTypewriterPseudoText","displayName","_default"],"sources":["../../../src/components/typewriter/Typewriter.tsx"],"sourcesContent":["import React, { FC, ReactElement, useCallback, useEffect, useMemo, useState } from 'react';\nimport { renderToString } from 'react-dom/server';\nimport {\n StyledTypewriter,\n StyledTypewriterPseudoText,\n StyledTypewriterText,\n} from './Typewriter.styles';\nimport { getCharactersCount, getSubTextFromHTML, shuffleArray } from './utils';\n\n// noinspection JSUnusedGlobalSymbols\nexport enum TypewriterResetDelay {\n Slow = 4000,\n Medium = 2000,\n Fast = 1000,\n}\n\n// noinspection JSUnusedGlobalSymbols\nexport enum TypewriterSpeed {\n Slow = 35,\n Medium = 25,\n Fast = 15,\n}\n\nexport type TypewriterProps = {\n /**\n * The text to type\n */\n children: ReactElement | ReactElement[] | string | string[];\n /**\n * Function that is executed when the typewriter animation has finished. This function will not\n * be executed if multiple texts are used.\n */\n onFinish?: VoidFunction;\n /**\n * Pseudo-element to be rendered invisible during animation to define the size of the element\n * for the typewriter effect. By default, the \"children\" is used for this purpose.\n */\n pseudoChildren?: ReactElement | string;\n /**\n * Waiting time before the typewriter resets the content if multiple texts are given\n */\n resetDelay?: TypewriterResetDelay;\n /**\n * Specifies whether the cursor should be forced to animate even if no text is currently animated.\n */\n shouldForceCursorAnimation?: boolean;\n /**\n * Specifies whether the children should be sorted randomly if there are multiple texts.\n * This makes the typewriter start with a different text each time and also changes them\n * in a random order.\n */\n shouldSortChildrenRandomly?: boolean;\n /**\n * Specifies whether the animation should use its full height or the height of the current\n * chunk.\n */\n shouldUseAnimationHeight?: boolean;\n /**\n * Specifies whether the reset of the text should be animated with a backspace animation for\n * multiple texts.\n */\n shouldUseResetAnimation?: boolean;\n /**\n * The speed of the animation. Use the TypewriterSpeed enum for this prop.\n */\n speed?: TypewriterSpeed | number;\n /**\n * The style of the typewriter text element\n */\n textStyle?: React.CSSProperties;\n};\n\nconst Typewriter: FC<TypewriterProps> = ({\n children,\n onFinish,\n pseudoChildren,\n resetDelay = TypewriterResetDelay.Medium,\n shouldForceCursorAnimation = false,\n shouldSortChildrenRandomly = false,\n shouldUseAnimationHeight = false,\n shouldUseResetAnimation = false,\n speed = TypewriterSpeed.Medium,\n textStyle,\n}) => {\n const [currentChildrenIndex, setCurrentChildrenIndex] = useState(0);\n\n const sortedChildren = useMemo(\n () =>\n Array.isArray(children) && shouldSortChildrenRandomly\n ? shuffleArray<ReactElement | string>(children)\n : children,\n [children, shouldSortChildrenRandomly]\n );\n\n const areMultipleChildrenGiven = Array.isArray(sortedChildren);\n const childrenCount = areMultipleChildrenGiven ? sortedChildren.length : 1;\n\n const textContent = useMemo(() => {\n if (areMultipleChildrenGiven) {\n const currentChildren = sortedChildren[currentChildrenIndex];\n\n if (currentChildren) {\n return React.isValidElement(currentChildren)\n ? renderToString(currentChildren)\n : currentChildren;\n }\n\n return '';\n }\n\n return React.isValidElement(sortedChildren)\n ? renderToString(sortedChildren)\n : sortedChildren;\n }, [areMultipleChildrenGiven, currentChildrenIndex, sortedChildren]);\n\n const charactersCount = useMemo(() => getCharactersCount(textContent), [textContent]);\n\n const [isResetAnimationActive, setIsResetAnimationActive] = useState(false);\n const [shownCharCount, setShownCharCount] = useState(\n charactersCount > 0 ? 0 : textContent.length\n );\n const [shouldStopAnimation, setShouldStopAnimation] = useState(false);\n\n const isAnimatingText =\n shownCharCount !== textContent.length ||\n shouldForceCursorAnimation ||\n areMultipleChildrenGiven ||\n textContent.length === 0;\n\n const handleClick = useCallback(() => {\n setShouldStopAnimation(true);\n }, []);\n\n const handleSetNextChildrenIndex = useCallback(\n () =>\n setCurrentChildrenIndex(() => {\n let newIndex = currentChildrenIndex + 1;\n\n if (newIndex > childrenCount - 1) {\n newIndex = 0;\n }\n\n return newIndex;\n }),\n [childrenCount, currentChildrenIndex]\n );\n\n useEffect(() => {\n let interval: number | undefined;\n\n if (shouldStopAnimation || charactersCount === 0) {\n setShownCharCount(textContent.length);\n } else if (isResetAnimationActive) {\n interval = window.setInterval(() => {\n setShownCharCount((prevState) => {\n const nextState = prevState - 1;\n\n if (nextState === 0) {\n window.clearInterval(interval);\n\n if (areMultipleChildrenGiven) {\n setTimeout(() => {\n setIsResetAnimationActive(false);\n handleSetNextChildrenIndex();\n }, resetDelay);\n }\n }\n\n return nextState;\n });\n }, speed);\n } else {\n interval = window.setInterval(() => {\n setShownCharCount((prevState) => {\n let nextState = prevState + 1;\n\n if (nextState === charactersCount) {\n window.clearInterval(interval);\n\n /**\n * At this point, the next value for \"shownCharCount\" is deliberately set to\n * the length of the textContent in order to correctly display HTML elements\n * after the last letter.\n */\n nextState = textContent.length;\n\n if (areMultipleChildrenGiven) {\n setTimeout(() => {\n if (shouldUseResetAnimation) {\n setIsResetAnimationActive(true);\n } else {\n setShownCharCount(0);\n setTimeout(handleSetNextChildrenIndex, resetDelay / 2);\n }\n }, resetDelay);\n }\n }\n\n return nextState;\n });\n }, speed);\n }\n\n return () => {\n window.clearInterval(interval);\n };\n }, [\n shouldStopAnimation,\n speed,\n textContent.length,\n charactersCount,\n isResetAnimationActive,\n areMultipleChildrenGiven,\n resetDelay,\n childrenCount,\n handleSetNextChildrenIndex,\n shouldUseResetAnimation,\n ]);\n\n useEffect(() => {\n if (!isAnimatingText && typeof onFinish === 'function') {\n onFinish();\n }\n }, [isAnimatingText, onFinish]);\n\n const shownText = useMemo(\n () => getSubTextFromHTML(textContent, shownCharCount),\n [shownCharCount, textContent]\n );\n\n const pseudoTextHTML = useMemo(() => {\n if (pseudoChildren) {\n const pseudoText = React.isValidElement(pseudoChildren)\n ? renderToString(pseudoChildren)\n : pseudoChildren;\n\n if (shouldUseAnimationHeight) {\n return getSubTextFromHTML(pseudoText, shownCharCount);\n }\n\n return pseudoText;\n }\n\n if (shouldUseAnimationHeight && textContent) {\n return getSubTextFromHTML(textContent, shownCharCount);\n }\n\n return textContent || '​';\n }, [pseudoChildren, shouldUseAnimationHeight, shownCharCount, textContent]);\n\n return useMemo(\n () => (\n <StyledTypewriter onClick={handleClick}>\n <StyledTypewriterText\n dangerouslySetInnerHTML={{ __html: shownText }}\n isAnimatingText={isAnimatingText}\n style={textStyle}\n />\n {isAnimatingText && (\n <StyledTypewriterPseudoText\n dangerouslySetInnerHTML={{ __html: pseudoTextHTML }}\n />\n )}\n </StyledTypewriter>\n ),\n [handleClick, isAnimatingText, pseudoTextHTML, shownText, textStyle]\n );\n};\n\nTypewriter.displayName = 'Typewriter';\n\nexport default Typewriter;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;A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WAAW,CAAC,CAAC;EAE3E,OAAO,IAAAP,cAAO,EACV,mBACI/C,MAAA,CAAAY,OAAA,CAAAwE,aAAA,CAAChF,WAAA,CAAAiF,gBAAgB;IAACC,OAAO,EAAElB;EAAY,gBACnCpE,MAAA,CAAAY,OAAA,CAAAwE,aAAA,CAAChF,WAAA,CAAAmF,oBAAoB;IACjBC,uBAAuB,EAAE;MAAEC,MAAM,EAAET;IAAU,CAAE;IAC/Cb,eAAe,EAAEA,eAAgB;IACjCuB,KAAK,EAAEhD;EAAU,CACpB,CAAC,EACDyB,eAAe,iBACZnE,MAAA,CAAAY,OAAA,CAAAwE,aAAA,CAAChF,WAAA,CAAAuF,0BAA0B;IACvBH,uBAAuB,EAAE;MAAEC,MAAM,EAAEP;IAAe;EAAE,CACvD,CAES,CACrB,EACD,CAACd,WAAW,EAAED,eAAe,EAAEe,cAAc,EAAEF,SAAS,EAAEtC,SAAS,CACvE,CAAC;AACL,CAAC;AAEDZ,UAAU,CAAC8D,WAAW,GAAG,YAAY;AAAC,IAAAC,QAAA,GAAAjE,OAAA,CAAAhB,OAAA,GAEvBkB,UAAU"}
|
|
1
|
+
{"version":3,"file":"Typewriter.js","names":["_react","_interopRequireWildcard","require","_server","_Typewriter","_utils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TypewriterResetDelay","exports","TypewriterSpeed","Typewriter","_ref","children","onFinish","pseudoChildren","resetDelay","Medium","shouldForceCursorAnimation","shouldSortChildrenRandomly","shouldUseAnimationHeight","shouldUseResetAnimation","speed","textStyle","currentChildrenIndex","setCurrentChildrenIndex","useState","sortedChildren","useMemo","Array","isArray","shuffleArray","areMultipleChildrenGiven","childrenCount","length","textContent","currentChildren","React","isValidElement","renderToString","charactersCount","getCharactersCount","isResetAnimationActive","setIsResetAnimationActive","shownCharCount","setShownCharCount","shouldStopAnimation","setShouldStopAnimation","isAnimatingText","handleClick","useCallback","handleSetNextChildrenIndex","newIndex","useEffect","interval","window","setInterval","prevState","nextState","clearInterval","setTimeout","shownText","getSubTextFromHTML","pseudoTextHTML","pseudoText","createElement","StyledTypewriter","onClick","StyledTypewriterText","dangerouslySetInnerHTML","__html","style","StyledTypewriterPseudoText","displayName","_default"],"sources":["../../../src/components/typewriter/Typewriter.tsx"],"sourcesContent":["import React, { FC, ReactElement, useCallback, useEffect, useMemo, useState } from 'react';\nimport { renderToString } from 'react-dom/server';\nimport {\n StyledTypewriter,\n StyledTypewriterPseudoText,\n StyledTypewriterText,\n} from './Typewriter.styles';\nimport { getCharactersCount, getSubTextFromHTML, shuffleArray } from './utils';\n\n// noinspection JSUnusedGlobalSymbols\nexport enum TypewriterResetDelay {\n Slow = 4000,\n Medium = 2000,\n Fast = 1000,\n}\n\n// noinspection JSUnusedGlobalSymbols\nexport enum TypewriterSpeed {\n Slow = 35,\n Medium = 25,\n Fast = 15,\n}\n\nexport type TypewriterProps = {\n /**\n * The text to type\n */\n children: ReactElement | ReactElement[] | string | string[];\n /**\n * Function that is executed when the typewriter animation has finished. This function will not\n * be executed if multiple texts are used.\n */\n onFinish?: VoidFunction;\n /**\n * Pseudo-element to be rendered invisible during animation to define the size of the element\n * for the typewriter effect. By default, the \"children\" is used for this purpose.\n */\n pseudoChildren?: ReactElement | string;\n /**\n * Waiting time before the typewriter resets the content if multiple texts are given\n */\n resetDelay?: TypewriterResetDelay;\n /**\n * Specifies whether the cursor should be forced to animate even if no text is currently animated.\n */\n shouldForceCursorAnimation?: boolean;\n /**\n * Specifies whether the children should be sorted randomly if there are multiple texts.\n * This makes the typewriter start with a different text each time and also changes them\n * in a random order.\n */\n shouldSortChildrenRandomly?: boolean;\n /**\n * Specifies whether the animation should use its full height or the height of the current\n * chunk.\n */\n shouldUseAnimationHeight?: boolean;\n /**\n * Specifies whether the reset of the text should be animated with a backspace animation for\n * multiple texts.\n */\n shouldUseResetAnimation?: boolean;\n /**\n * The speed of the animation. Use the TypewriterSpeed enum for this prop.\n */\n speed?: TypewriterSpeed | number;\n /**\n * The style of the typewriter text element\n */\n textStyle?: React.CSSProperties;\n};\n\nconst Typewriter: FC<TypewriterProps> = ({\n children,\n onFinish,\n pseudoChildren,\n resetDelay = TypewriterResetDelay.Medium,\n shouldForceCursorAnimation = false,\n shouldSortChildrenRandomly = false,\n shouldUseAnimationHeight = false,\n shouldUseResetAnimation = false,\n speed = TypewriterSpeed.Medium,\n textStyle,\n}) => {\n const [currentChildrenIndex, setCurrentChildrenIndex] = useState(0);\n\n const sortedChildren = useMemo(\n () =>\n Array.isArray(children) && shouldSortChildrenRandomly\n ? shuffleArray<ReactElement | string>(children)\n : children,\n [children, shouldSortChildrenRandomly],\n );\n\n const areMultipleChildrenGiven = Array.isArray(sortedChildren);\n const childrenCount = areMultipleChildrenGiven ? sortedChildren.length : 1;\n\n const textContent = useMemo(() => {\n if (areMultipleChildrenGiven) {\n const currentChildren = sortedChildren[currentChildrenIndex];\n\n if (currentChildren) {\n return React.isValidElement(currentChildren)\n ? renderToString(currentChildren)\n : (currentChildren as string);\n }\n\n return '';\n }\n\n return React.isValidElement(sortedChildren)\n ? renderToString(sortedChildren)\n : (sortedChildren as string);\n }, [areMultipleChildrenGiven, currentChildrenIndex, sortedChildren]);\n\n const charactersCount = useMemo(() => getCharactersCount(textContent), [textContent]);\n\n const [isResetAnimationActive, setIsResetAnimationActive] = useState(false);\n const [shownCharCount, setShownCharCount] = useState(\n charactersCount > 0 ? 0 : textContent.length,\n );\n const [shouldStopAnimation, setShouldStopAnimation] = useState(false);\n\n const isAnimatingText =\n shownCharCount !== textContent.length ||\n shouldForceCursorAnimation ||\n areMultipleChildrenGiven ||\n textContent.length === 0;\n\n const handleClick = useCallback(() => {\n setShouldStopAnimation(true);\n }, []);\n\n const handleSetNextChildrenIndex = useCallback(\n () =>\n setCurrentChildrenIndex(() => {\n let newIndex = currentChildrenIndex + 1;\n\n if (newIndex > childrenCount - 1) {\n newIndex = 0;\n }\n\n return newIndex;\n }),\n [childrenCount, currentChildrenIndex],\n );\n\n useEffect(() => {\n let interval: number | undefined;\n\n if (shouldStopAnimation || charactersCount === 0) {\n setShownCharCount(textContent.length);\n } else if (isResetAnimationActive) {\n interval = window.setInterval(() => {\n setShownCharCount((prevState) => {\n const nextState = prevState - 1;\n\n if (nextState === 0) {\n window.clearInterval(interval);\n\n if (areMultipleChildrenGiven) {\n setTimeout(() => {\n setIsResetAnimationActive(false);\n handleSetNextChildrenIndex();\n }, resetDelay);\n }\n }\n\n return nextState;\n });\n }, speed);\n } else {\n interval = window.setInterval(() => {\n setShownCharCount((prevState) => {\n let nextState = prevState + 1;\n\n if (nextState === charactersCount) {\n window.clearInterval(interval);\n\n /**\n * At this point, the next value for \"shownCharCount\" is deliberately set to\n * the length of the textContent in order to correctly display HTML elements\n * after the last letter.\n */\n nextState = textContent.length;\n\n if (areMultipleChildrenGiven) {\n setTimeout(() => {\n if (shouldUseResetAnimation) {\n setIsResetAnimationActive(true);\n } else {\n setShownCharCount(0);\n setTimeout(handleSetNextChildrenIndex, resetDelay / 2);\n }\n }, resetDelay);\n }\n }\n\n return nextState;\n });\n }, speed);\n }\n\n return () => {\n window.clearInterval(interval);\n };\n }, [\n shouldStopAnimation,\n speed,\n textContent.length,\n charactersCount,\n isResetAnimationActive,\n areMultipleChildrenGiven,\n resetDelay,\n childrenCount,\n handleSetNextChildrenIndex,\n shouldUseResetAnimation,\n ]);\n\n useEffect(() => {\n if (!isAnimatingText && typeof onFinish === 'function') {\n onFinish();\n }\n }, [isAnimatingText, onFinish]);\n\n const shownText = useMemo(\n () => getSubTextFromHTML(textContent, shownCharCount),\n [shownCharCount, textContent],\n );\n\n const pseudoTextHTML = useMemo(() => {\n if (pseudoChildren) {\n const pseudoText = React.isValidElement(pseudoChildren)\n ? renderToString(pseudoChildren)\n : (pseudoChildren as string);\n\n if (shouldUseAnimationHeight) {\n return getSubTextFromHTML(pseudoText, shownCharCount);\n }\n\n return pseudoText;\n }\n\n if (shouldUseAnimationHeight && textContent) {\n return getSubTextFromHTML(textContent, shownCharCount);\n }\n\n return textContent || '​';\n }, [pseudoChildren, shouldUseAnimationHeight, shownCharCount, textContent]);\n\n return useMemo(\n () => (\n <StyledTypewriter onClick={handleClick}>\n <StyledTypewriterText\n dangerouslySetInnerHTML={{ __html: shownText }}\n isAnimatingText={isAnimatingText}\n style={textStyle}\n />\n {isAnimatingText && (\n <StyledTypewriterPseudoText\n dangerouslySetInnerHTML={{ __html: pseudoTextHTML }}\n />\n )}\n </StyledTypewriter>\n ),\n [handleClick, isAnimatingText, pseudoTextHTML, shownText, textStyle],\n );\n};\n\nTypewriter.displayName = 'Typewriter';\n\nexport default Typewriter;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAKA,IAAAG,MAAA,GAAAH,OAAA;AAA+E,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,I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OAAA,CAAAhB,OAAA,GAEvBkB,UAAU"}
|
|
@@ -1,7 +1,552 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { WithTheme } from '@chayns-components/core';
|
|
4
|
+
export declare const StyledTypewriter: import("styled-components").IStyledComponent<"web", {
|
|
5
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
6
|
+
key?: import("react").Key | null | undefined;
|
|
7
|
+
defaultChecked?: boolean | undefined;
|
|
8
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
9
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
10
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
11
|
+
accessKey?: string | undefined;
|
|
12
|
+
autoFocus?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
15
|
+
contextMenu?: string | undefined;
|
|
16
|
+
dir?: string | undefined;
|
|
17
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
lang?: string | undefined;
|
|
21
|
+
nonce?: string | undefined;
|
|
22
|
+
placeholder?: string | undefined;
|
|
23
|
+
slot?: string | undefined;
|
|
24
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
25
|
+
style?: import("react").CSSProperties | undefined;
|
|
26
|
+
tabIndex?: number | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
translate?: "yes" | "no" | undefined;
|
|
29
|
+
radioGroup?: string | undefined;
|
|
30
|
+
role?: import("react").AriaRole | undefined;
|
|
31
|
+
about?: string | undefined;
|
|
32
|
+
content?: string | undefined;
|
|
33
|
+
datatype?: string | undefined;
|
|
34
|
+
inlist?: any;
|
|
35
|
+
prefix?: string | undefined;
|
|
36
|
+
property?: string | undefined;
|
|
37
|
+
rel?: string | undefined;
|
|
38
|
+
resource?: string | undefined;
|
|
39
|
+
rev?: string | undefined;
|
|
40
|
+
typeof?: string | undefined;
|
|
41
|
+
vocab?: string | undefined;
|
|
42
|
+
autoCapitalize?: string | undefined;
|
|
43
|
+
autoCorrect?: string | undefined;
|
|
44
|
+
autoSave?: string | undefined;
|
|
45
|
+
color?: string | undefined;
|
|
46
|
+
itemProp?: string | undefined;
|
|
47
|
+
itemScope?: boolean | undefined;
|
|
48
|
+
itemType?: string | undefined;
|
|
49
|
+
itemID?: string | undefined;
|
|
50
|
+
itemRef?: string | undefined;
|
|
51
|
+
results?: number | undefined;
|
|
52
|
+
security?: string | undefined;
|
|
53
|
+
unselectable?: "on" | "off" | undefined;
|
|
54
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
|
+
is?: string | undefined;
|
|
56
|
+
"aria-activedescendant"?: string | undefined;
|
|
57
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
58
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
59
|
+
"aria-braillelabel"?: string | undefined;
|
|
60
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
61
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
62
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
63
|
+
"aria-colcount"?: number | undefined;
|
|
64
|
+
"aria-colindex"?: number | undefined;
|
|
65
|
+
"aria-colindextext"?: string | undefined;
|
|
66
|
+
"aria-colspan"?: number | undefined;
|
|
67
|
+
"aria-controls"?: string | undefined;
|
|
68
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
69
|
+
"aria-describedby"?: string | undefined;
|
|
70
|
+
"aria-description"?: string | undefined;
|
|
71
|
+
"aria-details"?: string | undefined;
|
|
72
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
73
|
+
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
74
|
+
"aria-errormessage"?: string | undefined;
|
|
75
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
76
|
+
"aria-flowto"?: string | undefined;
|
|
77
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
78
|
+
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
79
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
80
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
81
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
82
|
+
"aria-label"?: string | undefined;
|
|
83
|
+
"aria-labelledby"?: string | undefined;
|
|
84
|
+
"aria-level"?: number | undefined;
|
|
85
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
86
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
87
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
88
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
89
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
90
|
+
"aria-owns"?: string | undefined;
|
|
91
|
+
"aria-placeholder"?: string | undefined;
|
|
92
|
+
"aria-posinset"?: number | undefined;
|
|
93
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
94
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
95
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
96
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
97
|
+
"aria-roledescription"?: string | undefined;
|
|
98
|
+
"aria-rowcount"?: number | undefined;
|
|
99
|
+
"aria-rowindex"?: number | undefined;
|
|
100
|
+
"aria-rowindextext"?: string | undefined;
|
|
101
|
+
"aria-rowspan"?: number | undefined;
|
|
102
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
103
|
+
"aria-setsize"?: number | undefined;
|
|
104
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
105
|
+
"aria-valuemax"?: number | undefined;
|
|
106
|
+
"aria-valuemin"?: number | undefined;
|
|
107
|
+
"aria-valuenow"?: number | undefined;
|
|
108
|
+
"aria-valuetext"?: string | undefined;
|
|
109
|
+
children?: import("react").ReactNode;
|
|
110
|
+
dangerouslySetInnerHTML?: {
|
|
111
|
+
__html: string | TrustedHTML;
|
|
112
|
+
} | undefined;
|
|
113
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
114
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
115
|
+
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
116
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
117
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
118
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
119
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
120
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
121
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
122
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
123
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
124
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
125
|
+
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
126
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
127
|
+
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
128
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
129
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
130
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
131
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
132
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
|
+
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
134
|
+
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
135
|
+
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
136
|
+
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
137
|
+
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
138
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
139
|
+
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
140
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
141
|
+
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
142
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
143
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
144
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
145
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
146
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
147
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
148
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
149
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
150
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
151
|
+
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
152
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
153
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
154
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
155
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
156
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
+
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
162
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
163
|
+
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
164
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
165
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
166
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
167
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
+
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
+
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
+
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
+
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
+
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
+
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
+
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
+
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
+
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
+
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
+
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
196
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
197
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
198
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
199
|
+
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
200
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
201
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
202
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
203
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
204
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
205
|
+
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
206
|
+
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
207
|
+
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
208
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
209
|
+
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
210
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
211
|
+
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
212
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
213
|
+
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
214
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
215
|
+
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
216
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
217
|
+
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
218
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
219
|
+
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
220
|
+
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
221
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
222
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
223
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
224
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
227
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
228
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
229
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
230
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
231
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
232
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
233
|
+
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
234
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
235
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
236
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
237
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
238
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
239
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
240
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
241
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
242
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
243
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
244
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
245
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
246
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
247
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
248
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
249
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
250
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
251
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
252
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
253
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
254
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
255
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
256
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
257
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
258
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
259
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
260
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
261
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
262
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
263
|
+
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
264
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
265
|
+
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
266
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
267
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
268
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
269
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
270
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
271
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
272
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
273
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
275
|
+
}>;
|
|
276
|
+
export declare const StyledTypewriterPseudoText: import("styled-components").IStyledComponent<"web", {
|
|
277
|
+
ref?: import("react").LegacyRef<HTMLSpanElement> | undefined;
|
|
278
|
+
key?: import("react").Key | null | undefined;
|
|
279
|
+
defaultChecked?: boolean | undefined;
|
|
280
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
281
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
282
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
283
|
+
accessKey?: string | undefined;
|
|
284
|
+
autoFocus?: boolean | undefined;
|
|
285
|
+
className?: string | undefined;
|
|
286
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
287
|
+
contextMenu?: string | undefined;
|
|
288
|
+
dir?: string | undefined;
|
|
289
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
290
|
+
hidden?: boolean | undefined;
|
|
291
|
+
id?: string | undefined;
|
|
292
|
+
lang?: string | undefined;
|
|
293
|
+
nonce?: string | undefined;
|
|
294
|
+
placeholder?: string | undefined;
|
|
295
|
+
slot?: string | undefined;
|
|
296
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
297
|
+
style?: import("react").CSSProperties | undefined;
|
|
298
|
+
tabIndex?: number | undefined;
|
|
299
|
+
title?: string | undefined;
|
|
300
|
+
translate?: "yes" | "no" | undefined;
|
|
301
|
+
radioGroup?: string | undefined;
|
|
302
|
+
role?: import("react").AriaRole | undefined;
|
|
303
|
+
about?: string | undefined;
|
|
304
|
+
content?: string | undefined;
|
|
305
|
+
datatype?: string | undefined;
|
|
306
|
+
inlist?: any;
|
|
307
|
+
prefix?: string | undefined;
|
|
308
|
+
property?: string | undefined;
|
|
309
|
+
rel?: string | undefined;
|
|
310
|
+
resource?: string | undefined;
|
|
311
|
+
rev?: string | undefined;
|
|
312
|
+
typeof?: string | undefined;
|
|
313
|
+
vocab?: string | undefined;
|
|
314
|
+
autoCapitalize?: string | undefined;
|
|
315
|
+
autoCorrect?: string | undefined;
|
|
316
|
+
autoSave?: string | undefined;
|
|
317
|
+
color?: string | undefined;
|
|
318
|
+
itemProp?: string | undefined;
|
|
319
|
+
itemScope?: boolean | undefined;
|
|
320
|
+
itemType?: string | undefined;
|
|
321
|
+
itemID?: string | undefined;
|
|
322
|
+
itemRef?: string | undefined;
|
|
323
|
+
results?: number | undefined;
|
|
324
|
+
security?: string | undefined;
|
|
325
|
+
unselectable?: "on" | "off" | undefined;
|
|
326
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
327
|
+
is?: string | undefined;
|
|
328
|
+
"aria-activedescendant"?: string | undefined;
|
|
329
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
330
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
331
|
+
"aria-braillelabel"?: string | undefined;
|
|
332
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
333
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
334
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
335
|
+
"aria-colcount"?: number | undefined;
|
|
336
|
+
"aria-colindex"?: number | undefined;
|
|
337
|
+
"aria-colindextext"?: string | undefined;
|
|
338
|
+
"aria-colspan"?: number | undefined;
|
|
339
|
+
"aria-controls"?: string | undefined;
|
|
340
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
341
|
+
"aria-describedby"?: string | undefined;
|
|
342
|
+
"aria-description"?: string | undefined;
|
|
343
|
+
"aria-details"?: string | undefined;
|
|
344
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
345
|
+
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
346
|
+
"aria-errormessage"?: string | undefined;
|
|
347
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
348
|
+
"aria-flowto"?: string | undefined;
|
|
349
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
350
|
+
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
351
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
352
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
353
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
354
|
+
"aria-label"?: string | undefined;
|
|
355
|
+
"aria-labelledby"?: string | undefined;
|
|
356
|
+
"aria-level"?: number | undefined;
|
|
357
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
358
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
359
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
360
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
361
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
362
|
+
"aria-owns"?: string | undefined;
|
|
363
|
+
"aria-placeholder"?: string | undefined;
|
|
364
|
+
"aria-posinset"?: number | undefined;
|
|
365
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
366
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
367
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
368
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
369
|
+
"aria-roledescription"?: string | undefined;
|
|
370
|
+
"aria-rowcount"?: number | undefined;
|
|
371
|
+
"aria-rowindex"?: number | undefined;
|
|
372
|
+
"aria-rowindextext"?: string | undefined;
|
|
373
|
+
"aria-rowspan"?: number | undefined;
|
|
374
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
375
|
+
"aria-setsize"?: number | undefined;
|
|
376
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
377
|
+
"aria-valuemax"?: number | undefined;
|
|
378
|
+
"aria-valuemin"?: number | undefined;
|
|
379
|
+
"aria-valuenow"?: number | undefined;
|
|
380
|
+
"aria-valuetext"?: string | undefined;
|
|
381
|
+
children?: import("react").ReactNode;
|
|
382
|
+
dangerouslySetInnerHTML?: {
|
|
383
|
+
__html: string | TrustedHTML;
|
|
384
|
+
} | undefined;
|
|
385
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
386
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
387
|
+
onCut?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
388
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
389
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
390
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
391
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
392
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
393
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
394
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
395
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
396
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
397
|
+
onFocus?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
398
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
399
|
+
onBlur?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
400
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
401
|
+
onChange?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
402
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
403
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
404
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
405
|
+
onInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
406
|
+
onInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
407
|
+
onReset?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
408
|
+
onResetCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
409
|
+
onSubmit?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
410
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
411
|
+
onInvalid?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
412
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
413
|
+
onLoad?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
414
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
415
|
+
onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
416
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
417
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
418
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
419
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
420
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
421
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
422
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
423
|
+
onAbort?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
424
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
425
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
426
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
427
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
428
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
429
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
430
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
431
|
+
onEmptied?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
432
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
433
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
434
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
435
|
+
onEnded?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
436
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
437
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
438
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
439
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
440
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
441
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
442
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
443
|
+
onPause?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
444
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
445
|
+
onPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
446
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
447
|
+
onPlaying?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
448
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
449
|
+
onProgress?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
450
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
451
|
+
onRateChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
452
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
453
|
+
onResize?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
454
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
455
|
+
onSeeked?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
456
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
457
|
+
onSeeking?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
458
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
459
|
+
onStalled?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
460
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
461
|
+
onSuspend?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
462
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
463
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
464
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
465
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
466
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
467
|
+
onWaiting?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
468
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
469
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
470
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
471
|
+
onClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
472
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
473
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
474
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
475
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
476
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
477
|
+
onDrag?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
478
|
+
onDragCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
479
|
+
onDragEnd?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
480
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
481
|
+
onDragEnter?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
482
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
483
|
+
onDragExit?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
484
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
485
|
+
onDragLeave?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
486
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
487
|
+
onDragOver?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
488
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
489
|
+
onDragStart?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
490
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
491
|
+
onDrop?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
492
|
+
onDropCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
493
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
494
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
495
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
496
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
497
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
498
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
499
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
500
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
501
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
502
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
503
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
504
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
505
|
+
onSelect?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
506
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
507
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
508
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
509
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
510
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
511
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
512
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
513
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
514
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
515
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
516
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
517
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
518
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
519
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
520
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
521
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
522
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
523
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
524
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
525
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
526
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
527
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
528
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
529
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
530
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
531
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
532
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
533
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
534
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
535
|
+
onScroll?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
536
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
537
|
+
onWheel?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
538
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
539
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
540
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
541
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
542
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
543
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
544
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
545
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
546
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
547
|
+
}>;
|
|
548
|
+
type StyledTypewriterTextProps = WithTheme<{
|
|
549
|
+
isAnimatingText?: boolean;
|
|
550
|
+
}>;
|
|
551
|
+
export declare const StyledTypewriterText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledTypewriterTextProps>>;
|
|
552
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/typewriter",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.308",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chayns",
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"url": "https://github.com/TobitSoftware/chayns-components/issues"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@babel/cli": "^7.23.
|
|
36
|
+
"@babel/cli": "^7.23.4",
|
|
37
37
|
"@babel/core": "^7.23.3",
|
|
38
38
|
"@babel/preset-env": "^7.23.3",
|
|
39
39
|
"@babel/preset-react": "^7.23.3",
|
|
40
40
|
"@babel/preset-typescript": "^7.23.3",
|
|
41
|
-
"@types/react": "^
|
|
42
|
-
"@types/react-dom": "^
|
|
43
|
-
"@types/styled-components": "^5.1.
|
|
41
|
+
"@types/react": "^18.2.38",
|
|
42
|
+
"@types/react-dom": "^18.2.17",
|
|
43
|
+
"@types/styled-components": "^5.1.32",
|
|
44
44
|
"@types/uuid": "^9.0.7",
|
|
45
|
-
"babel-loader": "^
|
|
45
|
+
"babel-loader": "^9.1.3",
|
|
46
46
|
"lerna": "^7.4.2",
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-dom": "^
|
|
49
|
-
"styled-components": "^
|
|
50
|
-
"typescript": "^
|
|
47
|
+
"react": "^18.2.0",
|
|
48
|
+
"react-dom": "^18.2.0",
|
|
49
|
+
"styled-components": "^6.1.1",
|
|
50
|
+
"typescript": "^5.3.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@chayns-components/core": "^5.0.0-beta.
|
|
53
|
+
"@chayns-components/core": "^5.0.0-beta.308",
|
|
54
54
|
"@chayns/colors": "^2.0.0",
|
|
55
|
-
"clsx": "^
|
|
56
|
-
"framer-motion": "^
|
|
55
|
+
"clsx": "^2.0.0",
|
|
56
|
+
"framer-motion": "^10.16.5",
|
|
57
57
|
"uuid": "^9.0.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e472af9187df17e37604725914813b8caee13071"
|
|
68
68
|
}
|