From 4bde0cbbe8b267d7178a6d10c8b25b8dff8b6ff8 Mon Sep 17 00:00:00 2001 From: matyasf Date: Tue, 11 Feb 2025 13:31:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20preview=20for=20PR=201863=20?= =?UTF-8?q?=F0=9F=9B=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pr-preview/pr-1863/docs/Children.json | 2 +- pr-preview/pr-1863/docs/DateTime.json | 2 +- pr-preview/pr-1863/docs/FocusRegion.json | 2 +- pr-preview/pr-1863/docs/FocusRegionManager.json | 2 +- pr-preview/pr-1863/docs/FormPropTypes.json | 2 +- pr-preview/pr-1863/docs/I18nPropTypes.json | 2 +- pr-preview/pr-1863/docs/KeyboardFocusRegion.json | 2 +- pr-preview/pr-1863/docs/Locale.json | 2 +- pr-preview/pr-1863/docs/MenuContext.json | 2 +- pr-preview/pr-1863/docs/PositionPropTypes.json | 2 +- pr-preview/pr-1863/docs/ResponsivePropTypes.json | 2 +- pr-preview/pr-1863/docs/ScreenReaderFocusRegion.json | 2 +- pr-preview/pr-1863/docs/SourceCodeEditor.json | 2 +- pr-preview/pr-1863/docs/TextDirectionContext.json | 2 +- pr-preview/pr-1863/docs/ThemeRegistry.json | 2 +- pr-preview/pr-1863/docs/ThemeablePropTypes.json | 2 +- pr-preview/pr-1863/docs/TopNavBarContext.json | 2 +- .../pr-1863/docs/addElementQueryMatchListener.json | 2 +- pr-preview/pr-1863/docs/addEventListener.json | 2 +- .../pr-1863/docs/addMediaQueryMatchListener.json | 2 +- .../pr-1863/docs/addPositionChangeListener.json | 2 +- pr-preview/pr-1863/docs/alpha.json | 2 +- pr-preview/pr-1863/docs/calculateElementPosition.json | 2 +- pr-preview/pr-1863/docs/callRenderProp.json | 2 +- pr-preview/pr-1863/docs/camelize.json | 2 +- pr-preview/pr-1863/docs/canUseDOM.json | 2 +- pr-preview/pr-1863/docs/capitalizeFirstLetter.json | 2 +- pr-preview/pr-1863/docs/childrenOrValue.json | 2 +- pr-preview/pr-1863/docs/cloneArray.json | 2 +- pr-preview/pr-1863/docs/contains.json | 2 +- pr-preview/pr-1863/docs/containsActiveElement.json | 2 +- pr-preview/pr-1863/docs/contrast.json | 2 +- pr-preview/pr-1863/docs/contrastWithAlpha.json | 2 +- pr-preview/pr-1863/docs/controllable.json | 2 +- pr-preview/pr-1863/docs/conversions.json | 2 +- pr-preview/pr-1863/docs/createChainedFunction.json | 2 +- pr-preview/pr-1863/docs/cursor.json | 2 +- pr-preview/pr-1863/docs/darken.json | 2 +- pr-preview/pr-1863/docs/debounce.json | 2 +- pr-preview/pr-1863/docs/decorator.json | 2 +- pr-preview/pr-1863/docs/deepEqual.json | 2 +- pr-preview/pr-1863/docs/deprecated.json | 2 +- pr-preview/pr-1863/docs/element.json | 2 +- pr-preview/pr-1863/docs/ensureSingleChild.json | 2 +- pr-preview/pr-1863/docs/experimental.json | 2 +- pr-preview/pr-1863/docs/findDOMNode.json | 2 +- pr-preview/pr-1863/docs/findFocusable.json | 2 +- pr-preview/pr-1863/docs/findTabbable.json | 2 +- pr-preview/pr-1863/docs/getActiveElement.json | 2 +- pr-preview/pr-1863/docs/getBoundingClientRect.json | 2 +- pr-preview/pr-1863/docs/getBrowser.json | 2 +- pr-preview/pr-1863/docs/getClassList.json | 2 +- pr-preview/pr-1863/docs/getComputedStyle.json | 2 +- pr-preview/pr-1863/docs/getDisplayName.json | 2 +- pr-preview/pr-1863/docs/getElementType.json | 2 +- pr-preview/pr-1863/docs/getFontSize.json | 2 +- pr-preview/pr-1863/docs/getInteraction.json | 2 +- pr-preview/pr-1863/docs/getOffsetParents.json | 2 +- pr-preview/pr-1863/docs/getScrollParents.json | 2 +- pr-preview/pr-1863/docs/getShorthandPropValue.json | 2 +- pr-preview/pr-1863/docs/getTextDirection.json | 2 +- pr-preview/pr-1863/docs/hack.json | 2 +- pr-preview/pr-1863/docs/handleMouseOverOut.json | 2 +- pr-preview/pr-1863/docs/hasVisibleChildren.json | 2 +- pr-preview/pr-1863/docs/isActiveElement.json | 2 +- pr-preview/pr-1863/docs/isDefinedCustomElement.json | 2 +- pr-preview/pr-1863/docs/isValid.json | 2 +- pr-preview/pr-1863/docs/isVisible.json | 2 +- pr-preview/pr-1863/docs/jsonToMediaQuery.json | 2 +- pr-preview/pr-1863/docs/lighten.json | 2 +- pr-preview/pr-1863/docs/makeRequirable.json | 2 +- pr-preview/pr-1863/docs/makeThemeVars.json | 2 +- pr-preview/pr-1863/docs/matchComponentTypes.json | 2 +- pr-preview/pr-1863/docs/matchMedia.json | 2 +- pr-preview/pr-1863/docs/mergeDeep.json | 2 +- pr-preview/pr-1863/docs/mirrorPlacement.json | 2 +- pr-preview/pr-1863/docs/mirrorShorthand.json | 2 +- pr-preview/pr-1863/docs/ms.json | 2 +- pr-preview/pr-1863/docs/omitProps.json | 2 +- pr-preview/pr-1863/docs/overlayColors.json | 2 +- pr-preview/pr-1863/docs/ownerDocument.json | 2 +- pr-preview/pr-1863/docs/ownerWindow.json | 2 +- pr-preview/pr-1863/docs/parseQuery.json | 2 +- pr-preview/pr-1863/docs/parseUnit.json | 2 +- pr-preview/pr-1863/docs/pascalize.json | 2 +- pr-preview/pr-1863/docs/pickProps.json | 2 +- pr-preview/pr-1863/docs/px.json | 2 +- pr-preview/pr-1863/docs/requestAnimationFrame.json | 2 +- pr-preview/pr-1863/docs/scopeTab.json | 2 +- pr-preview/pr-1863/docs/shallowEqual.json | 2 +- .../pr-1863/docs/textDirectionContextConsumer.json | 2 +- pr-preview/pr-1863/docs/transformSelection.json | 2 +- pr-preview/pr-1863/docs/uid.json | 2 +- pr-preview/pr-1863/docs/validateContrast.json | 2 +- pr-preview/pr-1863/docs/windowMessageListener.json | 2 +- pr-preview/pr-1863/docs/withStyle.json | 2 +- pr-preview/pr-1863/docs/within.json | 2 +- pr-preview/pr-1863/docs/xor.json | 2 +- pr-preview/pr-1863/main.js | 11 ++++++----- 99 files changed, 104 insertions(+), 103 deletions(-) diff --git a/pr-preview/pr-1863/docs/Children.json b/pr-preview/pr-1863/docs/Children.json index 53c86e1f13..63bfa35a56 100644 --- a/pr-preview/pr-1863/docs/Children.json +++ b/pr-preview/pr-1863/docs/Children.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * @module Children\n */","meta":{"filename":"pmr88ttt7tm4z6feclojb.js","lineno":161,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"Children","longname":"module:Children","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/Children.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/Children.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/Children.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/Children","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/Children.ts').default","esPath":"@instructure/ui-prop-types/es/Children","themePath":"packages/ui-prop-types/src/Children.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/Children.ts","id":"Children","title":"Children"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * @module Children\n */","meta":{"filename":"hqiw4tv7w6997cun6qu7.js","lineno":161,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"Children","longname":"module:Children","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/Children.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/Children.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/Children.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/Children","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/Children.ts').default","esPath":"@instructure/ui-prop-types/es/Children","themePath":"packages/ui-prop-types/src/Children.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/Children.ts","id":"Children","title":"Children"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/DateTime.json b/pr-preview/pr-1863/docs/DateTime.json index 442be9981f..7190abd6c2 100644 --- a/pr-preview/pr-1863/docs/DateTime.json +++ b/pr-preview/pr-1863/docs/DateTime.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * @deprecated\n * #### DEPRECATION WARNING: Will be removed in a future version, which will include a\n * time library agnostic API.\n * A wrapper for [moment](https://momentjs.com/) utils.\n * @module DateTime\n */","meta":{"filename":"npz6wrgs5btkjvsq4ymh.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","deprecated":"#### DEPRECATION WARNING: Will be removed in a future version, which will include a\ntime library agnostic API.\nA wrapper for [moment](https://momentjs.com/) utils.","kind":"module","name":"DateTime","longname":"module:DateTime","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/DateTime.ts","extension":".ts","srcPath":"packages/ui-i18n/src/DateTime.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/DateTime.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/DateTime","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/DateTime.ts').default","esPath":"@instructure/ui-i18n/es/DateTime","themePath":"packages/ui-i18n/src/DateTime.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/DateTime.ts","id":"DateTime","title":"DateTime"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * @deprecated\n * #### DEPRECATION WARNING: Will be removed in a future version, which will include a\n * time library agnostic API.\n * A wrapper for [moment](https://momentjs.com/) utils.\n * @module DateTime\n */","meta":{"filename":"v1hp79lvdyxpipew3vd6l.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","deprecated":"#### DEPRECATION WARNING: Will be removed in a future version, which will include a\ntime library agnostic API.\nA wrapper for [moment](https://momentjs.com/) utils.","kind":"module","name":"DateTime","longname":"module:DateTime","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/DateTime.ts","extension":".ts","srcPath":"packages/ui-i18n/src/DateTime.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/DateTime.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/DateTime","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/DateTime.ts').default","esPath":"@instructure/ui-i18n/es/DateTime","themePath":"packages/ui-i18n/src/DateTime.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/DateTime.ts","id":"DateTime","title":"DateTime"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/FocusRegion.json b/pr-preview/pr-1863/docs/FocusRegion.json index d5cb2032ac..f9e22eea44 100644 --- a/pr-preview/pr-1863/docs/FocusRegion.json +++ b/pr-preview/pr-1863/docs/FocusRegion.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations, manages [ScreenReaderFocusRegion](#ScreenReaderFocusRegion)\n * and [KeyboardFocusRegion](#KeyboardFocusRegion) for the given DOM element.\n * - Scoping focus within a given context (DOM node),\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module FocusRegion\n */","meta":{"filename":"nu4n8tndh7kw6v5b8p2h.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations, manages [ScreenReaderFocusRegion](#ScreenReaderFocusRegion)\nand [KeyboardFocusRegion](#KeyboardFocusRegion) for the given DOM element.\n- Scoping focus within a given context (DOM node),\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"FocusRegion","longname":"module:FocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/FocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/FocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/FocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/FocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/FocusRegion","themePath":"packages/ui-a11y-utils/src/FocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegion.ts","id":"FocusRegion","title":"FocusRegion"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations, manages [ScreenReaderFocusRegion](#ScreenReaderFocusRegion)\n * and [KeyboardFocusRegion](#KeyboardFocusRegion) for the given DOM element.\n * - Scoping focus within a given context (DOM node),\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module FocusRegion\n */","meta":{"filename":"ktt1m37o6vp85na6r4egw3.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations, manages [ScreenReaderFocusRegion](#ScreenReaderFocusRegion)\nand [KeyboardFocusRegion](#KeyboardFocusRegion) for the given DOM element.\n- Scoping focus within a given context (DOM node),\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"FocusRegion","longname":"module:FocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/FocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/FocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/FocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/FocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/FocusRegion","themePath":"packages/ui-a11y-utils/src/FocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegion.ts","id":"FocusRegion","title":"FocusRegion"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/FocusRegionManager.json b/pr-preview/pr-1863/docs/FocusRegionManager.json index 8bd2650b57..65f52df3ff 100644 --- a/pr-preview/pr-1863/docs/FocusRegionManager.json +++ b/pr-preview/pr-1863/docs/FocusRegionManager.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations, manages multiple [FocusRegion](#FocusRegion)s.\n * - Scoping focus within a given context,\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module FocusManager\n */","meta":{"filename":"gnivbocr5ocfionhbn6x9s.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations, manages multiple [FocusRegion](#FocusRegion)s.\n- Scoping focus within a given context,\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"FocusManager","longname":"module:FocusManager","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegionManager.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/FocusRegionManager","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/FocusRegionManager.ts').default","esPath":"@instructure/ui-a11y-utils/es/FocusRegionManager","themePath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegionManager.ts","id":"FocusRegionManager","title":"FocusRegionManager"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations, manages multiple [FocusRegion](#FocusRegion)s.\n * - Scoping focus within a given context,\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module FocusManager\n */","meta":{"filename":"o228r2d0hphhliaagwvq6.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations, manages multiple [FocusRegion](#FocusRegion)s.\n- Scoping focus within a given context,\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"FocusManager","longname":"module:FocusManager","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegionManager.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/FocusRegionManager","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/FocusRegionManager.ts').default","esPath":"@instructure/ui-a11y-utils/es/FocusRegionManager","themePath":"packages/ui-a11y-utils/src/FocusRegionManager.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/FocusRegionManager.ts","id":"FocusRegionManager","title":"FocusRegionManager"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/FormPropTypes.json b/pr-preview/pr-1863/docs/FormPropTypes.json index b24704634c..9240b4dbe6 100644 --- a/pr-preview/pr-1863/docs/FormPropTypes.json +++ b/pr-preview/pr-1863/docs/FormPropTypes.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/form\n * ---\n * Custom prop types for React components.\n * @module FormPropTypes\n */","meta":{"filename":"o447dtisosehuw70tuvuo.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for React components.","kind":"module","name":"FormPropTypes","longname":"module:FormPropTypes","undocumented":false,"category":"utilities/form","relativePath":"packages/ui-form-field/src/FormPropTypes.ts","extension":".ts","srcPath":"packages/ui-form-field/src/FormPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-form-field/src/FormPropTypes.ts","packageName":"@instructure/ui-form-field","requirePath":"@instructure/ui-form-field/lib/FormPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-form-field/src/FormPropTypes.ts').default","esPath":"@instructure/ui-form-field/es/FormPropTypes","themePath":"packages/ui-form-field/src/FormPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-form-field/src/FormPropTypes.ts","id":"FormPropTypes","title":"FormPropTypes"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/form\n * ---\n * Custom prop types for React components.\n * @module FormPropTypes\n */","meta":{"filename":"gdcrjcs75xlkyoy6f7ypzg.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for React components.","kind":"module","name":"FormPropTypes","longname":"module:FormPropTypes","undocumented":false,"category":"utilities/form","relativePath":"packages/ui-form-field/src/FormPropTypes.ts","extension":".ts","srcPath":"packages/ui-form-field/src/FormPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-form-field/src/FormPropTypes.ts","packageName":"@instructure/ui-form-field","requirePath":"@instructure/ui-form-field/lib/FormPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-form-field/src/FormPropTypes.ts').default","esPath":"@instructure/ui-form-field/es/FormPropTypes","themePath":"packages/ui-form-field/src/FormPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-form-field/src/FormPropTypes.ts","id":"FormPropTypes","title":"FormPropTypes"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/I18nPropTypes.json b/pr-preview/pr-1863/docs/I18nPropTypes.json index a6151846d5..95ba03382e 100644 --- a/pr-preview/pr-1863/docs/I18nPropTypes.json +++ b/pr-preview/pr-1863/docs/I18nPropTypes.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * @module I18nPropTypes\n * Custom I18n prop types for React components.\n */","meta":{"filename":"xd153mmny9c22jwexmhyjy.js","lineno":12,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"I18nPropTypes\nCustom I18n prop types for React components.","longname":"I18nPropTypes\nCustom I18n prop types for React components.module:","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/I18nPropTypes.ts","extension":".ts","srcPath":"packages/ui-i18n/src/I18nPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/I18nPropTypes.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/I18nPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/I18nPropTypes.ts').default","esPath":"@instructure/ui-i18n/es/I18nPropTypes","themePath":"packages/ui-i18n/src/I18nPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/I18nPropTypes.ts","id":"I18nPropTypes","title":"I18nPropTypes"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * @module I18nPropTypes\n * Custom I18n prop types for React components.\n */","meta":{"filename":"fxad8r0nw9tugm2szy9fk.js","lineno":12,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"I18nPropTypes\nCustom I18n prop types for React components.","longname":"I18nPropTypes\nCustom I18n prop types for React components.module:","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/I18nPropTypes.ts","extension":".ts","srcPath":"packages/ui-i18n/src/I18nPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/I18nPropTypes.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/I18nPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/I18nPropTypes.ts').default","esPath":"@instructure/ui-i18n/es/I18nPropTypes","themePath":"packages/ui-i18n/src/I18nPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/I18nPropTypes.ts","id":"I18nPropTypes","title":"I18nPropTypes"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/KeyboardFocusRegion.json b/pr-preview/pr-1863/docs/KeyboardFocusRegion.json index ab58082bff..d60225f034 100644 --- a/pr-preview/pr-1863/docs/KeyboardFocusRegion.json +++ b/pr-preview/pr-1863/docs/KeyboardFocusRegion.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations.\n * - Scoping focus within a given context (DOM node),\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module KeyboardFocusRegion\n */","meta":{"filename":"vt6scpvkqkhcd2gur4a77e.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations.\n- Scoping focus within a given context (DOM node),\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"KeyboardFocusRegion","longname":"module:KeyboardFocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/KeyboardFocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/KeyboardFocusRegion","themePath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","id":"KeyboardFocusRegion","title":"KeyboardFocusRegion"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Class for focus operations.\n * - Scoping focus within a given context (DOM node),\n * - Mark active element for focus later\n * - Return focus to the marked element\n * @module KeyboardFocusRegion\n */","meta":{"filename":"zi91q58ykpjsrmit2mgifp.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nClass for focus operations.\n- Scoping focus within a given context (DOM node),\n- Mark active element for focus later\n- Return focus to the marked element","kind":"module","name":"KeyboardFocusRegion","longname":"module:KeyboardFocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/KeyboardFocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/KeyboardFocusRegion","themePath":"packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/KeyboardFocusRegion.ts","id":"KeyboardFocusRegion","title":"KeyboardFocusRegion"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/Locale.json b/pr-preview/pr-1863/docs/Locale.json index 3f420fd926..5d0dab5754 100644 --- a/pr-preview/pr-1863/docs/Locale.json +++ b/pr-preview/pr-1863/docs/Locale.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * Localization utilities\n * @module Locale\n */","meta":{"filename":"r5o3ppsrte5zuiw1d40pd.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Localization utilities","kind":"module","name":"Locale","longname":"module:Locale","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/Locale.ts","extension":".ts","srcPath":"packages/ui-i18n/src/Locale.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/Locale.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/Locale","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/Locale.ts').default","esPath":"@instructure/ui-i18n/es/Locale","themePath":"packages/ui-i18n/src/Locale.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/Locale.ts","id":"Locale","title":"Locale"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n * Localization utilities\n * @module Locale\n */","meta":{"filename":"f1c08grcoh9y4ob1ftzaj8.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Localization utilities","kind":"module","name":"Locale","longname":"module:Locale","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/Locale.ts","extension":".ts","srcPath":"packages/ui-i18n/src/Locale.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/Locale.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/Locale","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/Locale.ts').default","esPath":"@instructure/ui-i18n/es/Locale","themePath":"packages/ui-i18n/src/Locale.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/Locale.ts","id":"Locale","title":"Locale"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/MenuContext.json b/pr-preview/pr-1863/docs/MenuContext.json index 45158f833e..167c9aa80a 100644 --- a/pr-preview/pr-1863/docs/MenuContext.json +++ b/pr-preview/pr-1863/docs/MenuContext.json @@ -1 +1 @@ -{"comment":"/**\n---\nprivate: true\n---\n@module MenuContext\n**/","meta":{"filename":"uykyweg2djhvzsj9wsnrym.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"MenuContext","longname":"module:MenuContext","undocumented":false,"private":true,"relativePath":"packages/ui-menu/src/MenuContext.ts","extension":".ts","srcPath":"packages/ui-menu/src/MenuContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-menu/src/MenuContext.ts","packageName":"@instructure/ui-menu","requirePath":"@instructure/ui-menu/lib/MenuContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-menu/src/MenuContext.ts').default","esPath":"@instructure/ui-menu/es/MenuContext","themePath":"packages/ui-menu/src/MenuContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-menu/src/MenuContext.ts","id":"MenuContext","title":"MenuContext"} \ No newline at end of file +{"comment":"/**\n---\nprivate: true\n---\n@module MenuContext\n**/","meta":{"filename":"kno3etn8h5d01wj6zg21etp.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"MenuContext","longname":"module:MenuContext","undocumented":false,"private":true,"relativePath":"packages/ui-menu/src/MenuContext.ts","extension":".ts","srcPath":"packages/ui-menu/src/MenuContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-menu/src/MenuContext.ts","packageName":"@instructure/ui-menu","requirePath":"@instructure/ui-menu/lib/MenuContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-menu/src/MenuContext.ts').default","esPath":"@instructure/ui-menu/es/MenuContext","themePath":"packages/ui-menu/src/MenuContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-menu/src/MenuContext.ts","id":"MenuContext","title":"MenuContext"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/PositionPropTypes.json b/pr-preview/pr-1863/docs/PositionPropTypes.json index 30cdca6de7..72c8d7d525 100644 --- a/pr-preview/pr-1863/docs/PositionPropTypes.json +++ b/pr-preview/pr-1863/docs/PositionPropTypes.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/position\n * ---\n * Custom prop types for `ui-position` components.\n * @module PositionPropTypes\n */","meta":{"filename":"3y0t0xps8bmw7bmmwf5rk.js","lineno":25,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for `ui-position` components.","kind":"module","name":"PositionPropTypes","longname":"module:PositionPropTypes","undocumented":false,"category":"utilities/position","relativePath":"packages/ui-position/src/PositionPropTypes.ts","extension":".ts","srcPath":"packages/ui-position/src/PositionPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/PositionPropTypes.ts","packageName":"@instructure/ui-position","requirePath":"@instructure/ui-position/lib/PositionPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-position/src/PositionPropTypes.ts').default","esPath":"@instructure/ui-position/es/PositionPropTypes","themePath":"packages/ui-position/src/PositionPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/PositionPropTypes.ts","id":"PositionPropTypes","title":"PositionPropTypes"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/position\n * ---\n * Custom prop types for `ui-position` components.\n * @module PositionPropTypes\n */","meta":{"filename":"9nooe07ver8ie5bmv0pr7i.js","lineno":25,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for `ui-position` components.","kind":"module","name":"PositionPropTypes","longname":"module:PositionPropTypes","undocumented":false,"category":"utilities/position","relativePath":"packages/ui-position/src/PositionPropTypes.ts","extension":".ts","srcPath":"packages/ui-position/src/PositionPropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/PositionPropTypes.ts","packageName":"@instructure/ui-position","requirePath":"@instructure/ui-position/lib/PositionPropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-position/src/PositionPropTypes.ts').default","esPath":"@instructure/ui-position/es/PositionPropTypes","themePath":"packages/ui-position/src/PositionPropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/PositionPropTypes.ts","id":"PositionPropTypes","title":"PositionPropTypes"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/ResponsivePropTypes.json b/pr-preview/pr-1863/docs/ResponsivePropTypes.json index d962988665..c868756ced 100644 --- a/pr-preview/pr-1863/docs/ResponsivePropTypes.json +++ b/pr-preview/pr-1863/docs/ResponsivePropTypes.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Custom prop types for `ui-responsive` components.\n * @module ResponsivePropTypes\n */","meta":{"filename":"9k9egaymfprl5g7vrimdgo.js","lineno":29,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for `ui-responsive` components.","kind":"module","name":"ResponsivePropTypes","longname":"module:ResponsivePropTypes","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/ResponsivePropTypes.ts","extension":".ts","srcPath":"packages/ui-responsive/src/ResponsivePropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/ResponsivePropTypes.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/ResponsivePropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/ResponsivePropTypes.ts').default","esPath":"@instructure/ui-responsive/es/ResponsivePropTypes","themePath":"packages/ui-responsive/src/ResponsivePropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/ResponsivePropTypes.ts","id":"ResponsivePropTypes","title":"ResponsivePropTypes"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Custom prop types for `ui-responsive` components.\n * @module ResponsivePropTypes\n */","meta":{"filename":"jr3rwqhj69ccnubuvqehr.js","lineno":29,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for `ui-responsive` components.","kind":"module","name":"ResponsivePropTypes","longname":"module:ResponsivePropTypes","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/ResponsivePropTypes.ts","extension":".ts","srcPath":"packages/ui-responsive/src/ResponsivePropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/ResponsivePropTypes.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/ResponsivePropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/ResponsivePropTypes.ts').default","esPath":"@instructure/ui-responsive/es/ResponsivePropTypes","themePath":"packages/ui-responsive/src/ResponsivePropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/ResponsivePropTypes.ts","id":"ResponsivePropTypes","title":"ResponsivePropTypes"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/ScreenReaderFocusRegion.json b/pr-preview/pr-1863/docs/ScreenReaderFocusRegion.json index 7f8433ddfa..d6efe2c9a1 100644 --- a/pr-preview/pr-1863/docs/ScreenReaderFocusRegion.json +++ b/pr-preview/pr-1863/docs/ScreenReaderFocusRegion.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Utility that hides all DOM elements outside of a specified node. Used,\n * for example, in overlay components where we want to restrict the screen\n * readers to the overlay content.\n * @module ScreenReaderFocusRegion\n */","meta":{"filename":"75dbidmyeivndnptusnjxp.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nUtility that hides all DOM elements outside of a specified node. Used,\nfor example, in overlay components where we want to restrict the screen\nreaders to the overlay content.","kind":"module","name":"ScreenReaderFocusRegion","longname":"module:ScreenReaderFocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/ScreenReaderFocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/ScreenReaderFocusRegion","themePath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","id":"ScreenReaderFocusRegion","title":"ScreenReaderFocusRegion"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Utility that hides all DOM elements outside of a specified node. Used,\n * for example, in overlay components where we want to restrict the screen\n * readers to the overlay content.\n * @module ScreenReaderFocusRegion\n */","meta":{"filename":"3on147c8s9qzuiqme3nwq.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nUtility that hides all DOM elements outside of a specified node. Used,\nfor example, in overlay components where we want to restrict the screen\nreaders to the overlay content.","kind":"module","name":"ScreenReaderFocusRegion","longname":"module:ScreenReaderFocusRegion","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","extension":".ts","srcPath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","packageName":"@instructure/ui-a11y-utils","requirePath":"@instructure/ui-a11y-utils/lib/ScreenReaderFocusRegion","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts').default","esPath":"@instructure/ui-a11y-utils/es/ScreenReaderFocusRegion","themePath":"packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-a11y-utils/src/ScreenReaderFocusRegion.ts","id":"ScreenReaderFocusRegion","title":"ScreenReaderFocusRegion"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/SourceCodeEditor.json b/pr-preview/pr-1863/docs/SourceCodeEditor.json index b1aac3daca..c05476dc8c 100644 --- a/pr-preview/pr-1863/docs/SourceCodeEditor.json +++ b/pr-preview/pr-1863/docs/SourceCodeEditor.json @@ -1 +1 @@ -{"description":"\nA wrapper around the popular [CodeMirror](https://codemirror.net/) code editor component. CodeMirror provides a text input field with features like line gutters, syntax highlighting, and autocompletion.\n\n```javascript\n---\ntype: embed\n---\n\n \n If you are currently using our CodeEditor component, we suggest upgrading to SourceCodeEditor, because it has many more features and is way more accessible.\n \n \n See the migration guide at the bottom of the CodeEditor docs page for more info.\n \n\n```\n\n### Built-in features\n\nSourceCodeEditor has a lot of built-in features that makes editing code easier.\n\n##### Command keybinding\n\nThe editor has a lot of handy key bindings for commands like copying and deleting lines, moving lines up and down, selection and indentation, etc. See the keymaps here: [defaultKeymap](https://codemirror.net/docs/ref/#commands.defaultKeymap), [closeBracketsKeymap](https://codemirror.net/docs/ref/#autocomplete.closeBracketsKeymap), [historyKeymap](https://codemirror.net/docs/ref/#commands.historyKeymap), [foldKeymap](https://codemirror.net/docs/ref/#language.foldKeymap), [completionKeymap](https://codemirror.net/docs/ref/#autocomplete.completionKeymap), [lintKeymap](https://codemirror.net/docs/ref/#lint.lintKeymap).\n\n##### History\n\nThe history feature remembers the steps of the code editing and selections, and lets you undo and redo them.\n\n##### Cursor and selection\n\nInstead of using the browser's native selection and cursor, SourceCodeEditor uses its own system. This allows the editor to display secondary selection ranges, and tends to produce a type of selection more in line with that users expect in a text editor.\n\nIt also allows **multiple** cursors to be placed (`Cmd/Ctrl` + click), multiple ranges to be selected and edited at the same time.\n\n**Rectangular selections:** by default, it will react to left mouse drag with the `Option/Alt` key held down. When such a selection occurs, the text within the rectangle that was dragged over will be selected, as one selection range per line.\n\nThe editor highlights text that matches the current selection.\n\n##### Bracket matching and closing\n\nWhenever the cursor is next to a bracket, that bracket and the one it matches are highlighted. Or, when no matching bracket is found, another highlighting style is used to indicate this.\n\nWhen a closeable bracket is typed, its closing bracket is immediately inserted after the cursor.\n\n### Language support\n\nSetting the correct language adds **syntax highlighting** and other helpful features to the editor, like **code folding**, **auto-indentation**, **syntax-aware selection** and **autocompletion** features.\n\n**Note:** In case you need support for additional languages, please contact us on [GitHub](https://github.com/instructure/instructure-ui)!\n\n```js\n---\ntype: example\n---\n\nconst languages = {\n json: `{\n \"name\": \"@instructure/ui-source-code-editor\",\n \"version\": \"8.24.2\",\n \"description\": \"A UI component library made by Instructure Inc.\",\n \"author\": \"Instructure, Inc. Engineering and Product Design\",\n \"module\": \"./es/index.js\",\n \"main\": \"./lib/index.js\",\n \"types\": \"./types/index.d.ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/instructure/instructure-ui.git\"\n },\n}`,\n javascript: `const fruit: string = \"apple\"\n\nconst re = new RegExp('ab+c')\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}\n\n/**\n * This is an example\n * @param {Object} props\n */\nconst Example = () => {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`,\n html: `\n\n \n \n \n \n Example app\n \n \n
\n \n
\n\n \n \n`,\n css: `a {\n text-decoration: none;\n\n &:hover { text-decoration: underline; }\n}\n\na:link, a:visited, a:hover, a:active {\n background-color: green;\n color: white;\n padding: 10px 25px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n}\n\n.centertext { text-align: center; }\n\nimg { opacity: 0.5; filter: alpha(opacity=50); }`,\n markdown: `#### The quarterly results look great!\n\n> - Revenue was off the chart.\n> - Profits were higher than ever.\n\n*Everything* is going according to **plan**.\n\n---\ntype: example\n---`,\n shell: `#!/bin/bash\n\n# example of using arguments to a script\necho \"My first name is $1\"\necho \"My surname is $2\"\necho \"Total number of arguments is $#\"\n\n________________________________________\n\n$ chmod a+x name.sh\n$ ./name.sh Hans-Wolfgang Loidl\nMy first name is Hans-Wolfgang\nMy surname is Loidl\nTotal number of arguments is 2`,\n yml: `---\n doe: \"a deer, a female deer\"\n ray: \"a drop of golden sun\"\n pi: 3.14159\n xmas: true\n french-hens: 3\n calling-birds:\n - huey\n - dewey\n - louie\n - fred\n xmas-fifth-day:\n calling-birds: four\n french-hens: 3\n golden-rings: 5\n partridges:\n count: 1\n location: \"a pear tree\"\n turtle-doves: two`\n}\n\nconst languageMap = {\n json: languages.json,\n js: languages.javascript,\n jsx: languages.javascript,\n javascript: languages.javascript,\n html: languages.html,\n css: languages.css,\n markdown: languages.markdown,\n sh: languages.shell,\n shell: languages.shell,\n bash: languages.shell,\n yml: languages.yml,\n yaml: languages.yml,\n}\n\nclass LanguageExamples extends React.Component {\n state = {\n currentLanguage: 'javascript',\n currentValue: languageMap.javascript,\n }\n\n render() {\n const languageKeys = Object.keys(languageMap)\n\n return (\n \n \n {\n this.setState({\n currentLanguage,\n currentValue: languageMap[currentLanguage]\n })\n }}\n >\n {languageKeys.map(language => (\n ))}\n \n \n\n \n \n {\n this.setState({\n currentValue: value\n })\n }}\n lineNumbers\n lineWrapping\n highlightActiveLine\n highlightActiveLineGutter\n />\n \n \n \n )\n }\n}\n\nrender()\n\n```\n\n### Controlled mode\n\nSourceCodeEditor works best as an uncontrolled component (with the `defaultValue` prop), and that is how we recommend it to be used. As an uncontrolled component, the underlying CodeMirror component can take care of all interactions.\n\nWe've implemented the \"controlled\" usage, but please let us know if you run into any performance issues or bugs.\n\n```js\n---\ntype: example\n---\nclass ControlledExample extends React.Component {\n state = {\n value: `const fruit: string = \"apple\"\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}`\n }\n\n textAreaRef = null\n\n render () {\n return (\n \n \n \n \n {\n this.setState({ value })\n }}\n highlightActiveLine\n highlightActiveLineGutter\n lineWrapping\n lineNumbers\n foldGutter\n spellcheck\n />\n \n \n \n \n Change value}\n textareaRef={(e) => { this.textAreaRef = e }}\n defaultValue={this.state.value}\n />\n \n \n \n \n \n )\n }\n}\n\nrender()\n```\n\n### Editable and readOnly\n\nThe editability of the content can be set with the combination of the `editable` and `readOnly` props.\n\nThe `readOnly` prop works like a \"preventDefault\" and disables any interaction by the user or API calls (e.g. copy-paste).\nIf the `editable` prop is set to `false`, the editor is also not focusable, and the `contenteditable=\"false\"` is set on the content.\n\n```js\n---\ntype: example\n---\nclass EditableExample extends React.Component {\n state = {\n editable: true,\n readOnly: false\n }\n\n render () {\n return (\n \n \n \n {['editable', 'readOnly'].map((prop) => (\n {\n this.setState({ [prop]: !this.state[prop] })\n }}\n />\n ))}\n \n \n\n \n \n )\n }\n}\n\nrender()\n```\n\n### Gutter settings\n\nThe `lineNumbers` prop displays the line numbers in the side gutter, and the `foldGutter` prop displays the toggleable fold icon next to foldable code blocks.\n\nIf any of these two props are active, the gutter is displayed, and the `highlightActiveLineGutter` highlights the active line in the gutter. (The `highlightActiveLine` prop highlights the line itself.)\n\n```js\n---\ntype: example\n---\nclass GutterExample extends React.Component {\n state = {\n lineNumbers: true,\n foldGutter: true,\n highlightActiveLineGutter: true,\n highlightActiveLine: true,\n }\n\n render () {\n return (\n \n \n \n {['lineNumbers', 'foldGutter', 'highlightActiveLineGutter', 'highlightActiveLine'].map((prop) => (\n {\n this.setState({ [prop]: !this.state[prop] })\n }}\n />\n ))}\n \n \n\n {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Indentation\n\n##### auto-indent\n\nThe editor automatically indents the lines on input. The `indentOnLoad` prop indents the code on the initial load and when the `value` prop is updated.\n\n##### indent with tab\n\nWhen the `indentWithTab` feature is turned on, Tab and Shift-Tab will indent the code.\nBy default, it is turned off, and tabbing will focus the next element in the tab order.\n\n**Accessibility note**: Even if `indentWithTab` is on, pressing Escape before tabbing will not handle indentation and will handle focus instead. When using this feature, it is recommended to add info about this behaviour in your documentation.\n\n##### indent unit\n\nYou can also override the unit by which indentation happens (defaults to 2 spaces).\nThe `indentUnitCount` prop should be a string consisting either entirely of spaces or entirely of tabs.\n\n##### manual re-indent\n\nAnother useful feature is the `indentAll` public method on the `SourceCodeEditor` component that can be called anytime to trigger a re-indent on the content.\n\n```js\n---\ntype: example\n---\nclass IndentExample extends React.Component {\n state = {\n indentWithTab: true,\n indentUnitCount: '2',\n }\n\n editor = null\n\n get indentUnit() {\n return Array(parseInt(this.state.indentUnitCount)).fill(' ').join('')\n }\n\n reIndent () {\n this.editor.indentAll()\n }\n\n indentCurrentSelection () {\n this.editor.indentCurrentSelection()\n }\n\n render () {\n return (\n \n \n \n {\n this.setState({ indentWithTab: !this.state.indentWithTab })\n }}\n />\n {\n this.setState({indentUnitCount})\n this.reIndent()\n }}\n >\n {['2', '4', '8'].map(count => )}\n \n \n \n \n \n\n { this.editor = component }}\n language=\"jsx\"\n indentWithTab={this.state.indentWithTab}\n indentUnit={this.indentUnit}\n defaultValue={`const fruit: string = \"apple\"\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}\n\n/**\n * This is an example\n * @param {Object} props\n */\nconst Example = () => {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Direction\n\nSourceCodeEditor is a bidirectional component. It will inherit the text-direction from the context, and can be set directly on the component with the `direction` prop. The `rtl` mode will flip the overall layout and selects base paragraph direction to RTL.\n\nThe `rtlMoveVisually` prop controls the cursor movement in RTL mode, whether it should be **visual** (pressing the left arrow moves the cursor left) or **logical** (pressing the left arrow moves to the next lower index in the string, which is visually right in RTL text).\n\n```js\n---\ntype: example\n---\nclass DirectionExample extends React.Component {\n state = {\n contextDir: 'unset',\n editorDir: 'unset',\n rtlMoveVisually: true,\n }\n\n render () {\n return (\n \n \n \n \n {\n this.setState({contextDir})\n }}\n >\n {['unset', 'ltr', 'rtl'].map(dir => )}\n \n {\n this.setState({editorDir})\n }}\n >\n {['unset', 'ltr', 'rtl'].map(dir => )}\n \n {\n this.setState({ rtlMoveVisually: !this.state.rtlMoveVisually })\n }}\n />\n \n \n\n \n \n \n )\n }\n}\n\nrender()\n```\n\n### Focus management\n\nBy default, SourceCodeEditor is tabbable/focusable, and once it is in focus, tabbing will move the focus on the page. These behaviours can be changed with the [editable](/#SourceCodeEditor/#editable-and-readonly) and [indentWithTab](/#SourceCodeEditor/#indentation-indent-with-tab) props.\n\nThe `autofocus` prop will automatically focus the editor on the initial render.\n\nYou can also manually focus the editor with its public `focus` method (the `hasFocus` getter is also available).\n\n```js\n---\ntype: example\n---\nclass FocusExample extends React.Component {\n state = {\n indentWithTab: true,\n indentUnitCount: '2',\n }\n\n editor = null\n\n render () {\n return (\n \n \n \n \n\n { this.editor = component }}\n language=\"jsx\"\n onFocus={() => {\n console.log('onFocus')\n console.log({ hasFocus: this.editor.hasFocus })\n }}\n onBlur={() => {\n console.log('onBlur')\n console.log({ hasFocus: this.editor.hasFocus })\n }}\n defaultValue={`function exampleMethod(props: Props) {\n return props ? props.value : null\n}`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Attachment\n\nThe `attachment` prop removes the top/bottom border-radius and margin of the editor, so it can be attached to the top or bottom of another element.\n\n```js\n---\ntype: example\n---\nclass AttachmentExample extends React.Component {\n state = {\n attachment: 'none'\n }\n\n render () {\n const viewProps = {\n as: 'div',\n background: 'primary-inverse',\n padding: 'small'\n }\n\n return (\n \n \n {\n this.setState({attachment})\n }}\n >\n {['none', 'top', 'bottom'].map(attachment => )}\n \n \n\n {this.state.attachment === 'bottom' && (\n \n CodeEditor is attached to the bottom of this element\n \n )}\n \n {this.state.attachment === 'top' && (\n \n CodeEditor is attached to the top of this element\n \n )}\n \n )\n }\n}\n\nrender()\n```\n\n### Search\n\nTo enable the search panel use the `searchConfig` prop.\n\nYou can open the search panel in the code editor by pressing `cmd/ctrl+f` when the editor is in focus (otherwise the browser's search will open). The reason you would use this instead of the browser native search is because it will miss results that are far out of view in the text rendered by the editor. This is the limitation of the underlying CodeMirror component.\n\nHitting `Enter` jumps to the next result and `Shift+Enter` to the previous. Alternatively you can use the up and down buttons to the right of the input field.\n\nPlacement: the search panel will open at the bottom of the editor. This cannot be changed unfortunately due to a limitation in CodeMirror.\n\n```js\n---\ntype: example\n---\n\n```\n","displayName":"SourceCodeEditor","methods":[],"props":{"label":{"type":{"name":"string"},"required":true,"description":"The label text that screen readers will read when this component gets\nfocus.","tsType":{"name":"string"}},"language":{"type":{"name":"enum","value":[{"value":"'sh'","computed":false},{"value":"'js'","computed":false},{"value":"'json'","computed":false},{"value":"'javascript'","computed":false},{"value":"'jsx'","computed":false},{"value":"'shell'","computed":false},{"value":"'css'","computed":false},{"value":"'html'","computed":false},{"value":"'markdown'","computed":false},{"value":"'yaml'","computed":false},{"value":"'yml'","computed":false},{"value":"'bash'","computed":false}]},"required":false,"description":"The language to use (adds autocomplete and syntax highlighting).","tsType":{"name":"union","raw":"| 'sh'\n| 'js'\n| 'json'\n| 'javascript'\n| 'jsx'\n| 'shell'\n| 'css'\n| 'html'\n| 'markdown'\n| 'yaml'\n| 'yml'\n| 'bash'","elements":[{"name":"literal","value":"'sh'"},{"name":"literal","value":"'js'"},{"name":"literal","value":"'json'"},{"name":"literal","value":"'javascript'"},{"name":"literal","value":"'jsx'"},{"name":"literal","value":"'shell'"},{"name":"literal","value":"'css'"},{"name":"literal","value":"'html'"},{"name":"literal","value":"'markdown'"},{"name":"literal","value":"'yaml'"},{"name":"literal","value":"'yml'"},{"name":"literal","value":"'bash'"}]},"defaultValue":{"value":"'jsx'","computed":false}},"readOnly":{"type":{"name":"bool"},"required":false,"description":"This disables editing of the editor content by the user and API calls.\n\n__Note:__ The editor is still focusable in readOnly mode. Read more at the [codemirror documentation](https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly).","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"editable":{"type":{"name":"bool"},"required":false,"description":"Controls whether the editor content DOM is editable.\n\n__Note:__ When set to false, the editor is not focusable.\n(This doesn't affect API calls that change the editor content, e.g.: copy-paste,\neven when those are bound to keys or buttons.) Read more at the [codemirror documentation](https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable).","tsType":{"name":"boolean"},"defaultValue":{"value":"true","computed":false}},"lineNumbers":{"type":{"name":"bool"},"required":false,"description":"Whether to display the line numbers in the gutter","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"foldGutter":{"type":{"name":"bool"},"required":false,"description":"Whether to show a fold status indicator before foldable lines (which can be clicked to fold or unfold the line)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"highlightActiveLineGutter":{"type":{"name":"bool"},"required":false,"description":"Whether to highlight gutter elements on the active line (visible only when a gutter is visible)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"highlightActiveLine":{"type":{"name":"bool"},"required":false,"description":"Highlights the lines that have a cursor on them","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"lineWrapping":{"type":{"name":"bool"},"required":false,"description":"Whether it should scroll or wrap for long lines. Defaults to false (scroll)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"autofocus":{"type":{"name":"bool"},"required":false,"description":"Whether the editor should focus itself on initialization","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"spellcheck":{"type":{"name":"bool"},"required":false,"description":"Whether spellcheck will be enabled on the input","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"direction":{"type":{"name":"enum","value":[{"value":"'ltr'","computed":false},{"value":"'rtl'","computed":false}]},"required":false,"description":"Flips overall layout and selects base paragraph direction to be \"LTR\" or \"RTL\".","tsType":{"name":"union","raw":"'ltr' | 'rtl'","elements":[{"name":"literal","value":"'ltr'"},{"name":"literal","value":"'rtl'"}]}},"rtlMoveVisually":{"type":{"name":"bool"},"required":false,"description":"Whether horizontal cursor movement through \"RTL\" text is visual\n(pressing the left arrow moves the cursor left) or logical\n(pressing the left arrow moves to the next lower index in the string,\nwhich is visually right in \"RTL\" text)","tsType":{"name":"boolean"},"defaultValue":{"value":"true","computed":false}},"indentOnLoad":{"type":{"name":"bool"},"required":false,"description":"Whether the editor should auto-indent the code on this initial load\nand when the `value` is changed","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"indentWithTab":{"type":{"name":"bool"},"required":false,"description":"When this feature is on, Tab and Shift-Tab will indent the code. By default, it is turned off, and tabbing will focus the next element in the tab order.\n\n__Note__: Even if this feature is on, pressing Escape before tabbing will not handle indentation and will handle focus instead.","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"indentUnit":{"type":{"name":"string"},"required":false,"description":"Overrides the unit by which indentation happens (defaults to 2 spaces).\nShould be a string consisting either entirely of spaces or entirely of tabs.","tsType":{"name":"string"}},"defaultValue":{"type":{"name":"string"},"required":false,"description":"The default value of the editor (in uncontrolled mode)","tsType":{"name":"string"},"defaultValue":{"value":"''","computed":false}},"value":{"type":{"name":"custom","raw":"controllable(PropTypes.string, 'onChange', 'defaultValue')"},"required":false,"description":"The selected value for the controlled version\n(needs an onChange handler to work)","tsType":{"name":"string"}},"onChange":{"type":{"name":"func"},"required":false,"description":"Called when the value of the component changes.","tsType":{"name":"signature","type":"function","raw":"(value: string) => void","signature":{"arguments":[{"type":{"name":"string"},"name":"value"}],"return":{"name":"void"}}}},"onFocus":{"type":{"name":"func"},"required":false,"description":"Called when the editor receives focus","tsType":{"name":"signature","type":"function","raw":"() => void","signature":{"arguments":[],"return":{"name":"void"}}}},"onBlur":{"type":{"name":"func"},"required":false,"description":"Called when the editor loses focus","tsType":{"name":"signature","type":"function","raw":"() => void","signature":{"arguments":[],"return":{"name":"void"}}}},"attachment":{"type":{"name":"enum","value":[{"value":"'bottom'","computed":false},{"value":"'top'","computed":false}]},"required":false,"description":"Sets minor visual styles (border radius & top/bottom margin)","tsType":{"name":"union","raw":"'bottom' | 'top'","elements":[{"name":"literal","value":"'bottom'"},{"name":"literal","value":"'top'"}]}},"height":{"type":{"name":"string"},"required":false,"description":"The height of the editor.","tsType":{"name":"string"},"defaultValue":{"value":"'auto'","computed":false}},"width":{"type":{"name":"string"},"required":false,"description":"The width of the editor.","tsType":{"name":"string"}},"elementRef":{"type":{"name":"func"},"required":false,"description":"provides a reference to the underlying html root element","tsType":{"name":"signature","type":"function","raw":"(element: HTMLDivElement | null) => void","signature":{"arguments":[{"type":{"name":"union","raw":"HTMLDivElement | null","elements":[{"name":"HTMLDivElement"},{"name":"null"}]},"name":"element"}],"return":{"name":"void"}}}},"containerRef":{"type":{"name":"func"},"required":false,"description":"provides a reference to the html element of the editor's container","tsType":{"name":"signature","type":"function","raw":"(element: HTMLDivElement | null) => void","signature":{"arguments":[{"type":{"name":"union","raw":"HTMLDivElement | null","elements":[{"name":"HTMLDivElement"},{"name":"null"}]},"name":"element"}],"return":{"name":"void"}}}},"searchConfig":{"type":{"name":"object"},"required":false,"description":"enable search panel in editor when pressing ctrl/cmd+f","tsType":{"name":"signature","type":"object","raw":"{\n placeholder: string\n nextResultLabel: string\n prevResultLabel: string\n}","signature":{"properties":[{"key":"placeholder","value":{"name":"string","required":true}},{"key":"nextResultLabel","value":{"name":"string","required":true}},{"key":"prevResultLabel","value":{"name":"string","required":true}}]}}},"dir":{"required":false,"tsType":{"name":"union","raw":"'ltr' | 'rtl'","elements":[{"name":"literal","value":"'ltr'"},{"name":"literal","value":"'rtl'"}]},"description":""}},"category":"components","relativePath":"packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","extension":".tsx","srcPath":"packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","packageName":"@instructure/ui-source-code-editor","requirePath":"@instructure/ui-source-code-editor/lib/SourceCodeEditor/index","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx').default","esPath":"@instructure/ui-source-code-editor/es/SourceCodeEditor/index","themePath":"packages/ui-source-code-editor/src/SourceCodeEditor/theme.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-source-code-editor/src/SourceCodeEditor/theme.ts","id":"SourceCodeEditor","title":"SourceCodeEditor"} \ No newline at end of file +{"description":"\nA wrapper around the popular [CodeMirror](https://codemirror.net/) code editor component. CodeMirror provides a text input field with features like line gutters, syntax highlighting, and autocompletion.\n\n```javascript\n---\ntype: embed\n---\n\n \n If you are currently using our CodeEditor component, we suggest upgrading to SourceCodeEditor, because it has many more features and is way more accessible.\n \n \n See the migration guide at the bottom of the CodeEditor docs page for more info.\n \n\n```\n\n### Built-in features\n\nSourceCodeEditor has a lot of built-in features that makes editing code easier.\n\n##### Command keybinding\n\nThe editor has a lot of handy key bindings for commands like copying and deleting lines, moving lines up and down, selection and indentation, etc. See the keymaps here: [defaultKeymap](https://codemirror.net/docs/ref/#commands.defaultKeymap), [closeBracketsKeymap](https://codemirror.net/docs/ref/#autocomplete.closeBracketsKeymap), [historyKeymap](https://codemirror.net/docs/ref/#commands.historyKeymap), [foldKeymap](https://codemirror.net/docs/ref/#language.foldKeymap), [completionKeymap](https://codemirror.net/docs/ref/#autocomplete.completionKeymap), [lintKeymap](https://codemirror.net/docs/ref/#lint.lintKeymap).\n\n##### History\n\nThe history feature remembers the steps of the code editing and selections, and lets you undo and redo them.\n\n##### Cursor and selection\n\nInstead of using the browser's native selection and cursor, SourceCodeEditor uses its own system. This allows the editor to display secondary selection ranges, and tends to produce a type of selection more in line with that users expect in a text editor.\n\nIt also allows **multiple** cursors to be placed (`Cmd/Ctrl` + click), multiple ranges to be selected and edited at the same time.\n\n**Rectangular selections:** by default, it will react to left mouse drag with the `Option/Alt` key held down. When such a selection occurs, the text within the rectangle that was dragged over will be selected, as one selection range per line.\n\nThe editor highlights text that matches the current selection.\n\n##### Bracket matching and closing\n\nWhenever the cursor is next to a bracket, that bracket and the one it matches are highlighted. Or, when no matching bracket is found, another highlighting style is used to indicate this.\n\nWhen a closeable bracket is typed, its closing bracket is immediately inserted after the cursor.\n\n### Language support\n\nSetting the correct language adds **syntax highlighting** and other helpful features to the editor, like **code folding**, **auto-indentation**, **syntax-aware selection** and **autocompletion** features.\n\n**Note:** In case you need support for additional languages, please contact us on [GitHub](https://github.com/instructure/instructure-ui)!\n\n```js\n---\ntype: example\n---\n\nconst languages = {\n json: `{\n \"name\": \"@instructure/ui-source-code-editor\",\n \"version\": \"8.24.2\",\n \"description\": \"A UI component library made by Instructure Inc.\",\n \"author\": \"Instructure, Inc. Engineering and Product Design\",\n \"module\": \"./es/index.js\",\n \"main\": \"./lib/index.js\",\n \"types\": \"./types/index.d.ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/instructure/instructure-ui.git\"\n },\n}`,\n javascript: `const fruit: string = \"apple\"\n\nconst re = new RegExp('ab+c')\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}\n\n/**\n * This is an example\n * @param {Object} props\n */\nconst Example = () => {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`,\n html: `\n\n \n \n \n \n Example app\n \n \n
\n \n
\n\n \n \n`,\n css: `a {\n text-decoration: none;\n\n &:hover { text-decoration: underline; }\n}\n\na:link, a:visited, a:hover, a:active {\n background-color: green;\n color: white;\n padding: 10px 25px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n}\n\n.centertext { text-align: center; }\n\nimg { opacity: 0.5; filter: alpha(opacity=50); }`,\n markdown: `#### The quarterly results look great!\n\n> - Revenue was off the chart.\n> - Profits were higher than ever.\n\n*Everything* is going according to **plan**.\n\n---\ntype: example\n---`,\n shell: `#!/bin/bash\n\n# example of using arguments to a script\necho \"My first name is $1\"\necho \"My surname is $2\"\necho \"Total number of arguments is $#\"\n\n________________________________________\n\n$ chmod a+x name.sh\n$ ./name.sh Hans-Wolfgang Loidl\nMy first name is Hans-Wolfgang\nMy surname is Loidl\nTotal number of arguments is 2`,\n yml: `---\n doe: \"a deer, a female deer\"\n ray: \"a drop of golden sun\"\n pi: 3.14159\n xmas: true\n french-hens: 3\n calling-birds:\n - huey\n - dewey\n - louie\n - fred\n xmas-fifth-day:\n calling-birds: four\n french-hens: 3\n golden-rings: 5\n partridges:\n count: 1\n location: \"a pear tree\"\n turtle-doves: two`\n}\n\nconst languageMap = {\n json: languages.json,\n js: languages.javascript,\n jsx: languages.javascript,\n javascript: languages.javascript,\n html: languages.html,\n css: languages.css,\n markdown: languages.markdown,\n sh: languages.shell,\n shell: languages.shell,\n bash: languages.shell,\n yml: languages.yml,\n yaml: languages.yml,\n}\n\nclass LanguageExamples extends React.Component {\n state = {\n currentLanguage: 'javascript',\n currentValue: languageMap.javascript,\n }\n\n render() {\n const languageKeys = Object.keys(languageMap)\n\n return (\n \n \n {\n this.setState({\n currentLanguage,\n currentValue: languageMap[currentLanguage]\n })\n }}\n >\n {languageKeys.map(language => (\n ))}\n \n \n\n \n \n {\n this.setState({\n currentValue: value\n })\n }}\n lineNumbers\n lineWrapping\n highlightActiveLine\n highlightActiveLineGutter\n />\n \n \n \n )\n }\n}\n\nrender()\n\n```\n\n### Controlled mode\n\nSourceCodeEditor works best as an uncontrolled component (with the `defaultValue` prop), and that is how we recommend it to be used. As an uncontrolled component, the underlying CodeMirror component can take care of all interactions.\n\nWe've implemented the \"controlled\" usage, but please let us know if you run into any performance issues or bugs.\n\n```js\n---\ntype: example\n---\nclass ControlledExample extends React.Component {\n state = {\n value: `const fruit: string = \"apple\"\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}`\n }\n\n textAreaRef = null\n\n render () {\n return (\n \n \n \n \n {\n this.setState({ value })\n }}\n highlightActiveLine\n highlightActiveLineGutter\n lineWrapping\n lineNumbers\n foldGutter\n spellcheck\n />\n \n \n \n \n Change value}\n textareaRef={(e) => { this.textAreaRef = e }}\n defaultValue={this.state.value}\n />\n \n \n \n \n \n )\n }\n}\n\nrender()\n```\n\n### Editable and readOnly\n\nThe editability of the content can be set with the combination of the `editable` and `readOnly` props.\n\nThe `readOnly` prop works like a \"preventDefault\" and disables any interaction by the user or API calls (e.g. copy-paste).\nIf the `editable` prop is set to `false`, the editor is also not focusable, and the `contenteditable=\"false\"` is set on the content.\n\n```js\n---\ntype: example\n---\nclass EditableExample extends React.Component {\n state = {\n editable: true,\n readOnly: false\n }\n\n render () {\n return (\n \n \n \n {['editable', 'readOnly'].map((prop) => (\n {\n this.setState({ [prop]: !this.state[prop] })\n }}\n />\n ))}\n \n \n\n \n \n )\n }\n}\n\nrender()\n```\n\n### Gutter settings\n\nThe `lineNumbers` prop displays the line numbers in the side gutter, and the `foldGutter` prop displays the toggleable fold icon next to foldable code blocks.\n\nIf any of these two props are active, the gutter is displayed, and the `highlightActiveLineGutter` highlights the active line in the gutter. (The `highlightActiveLine` prop highlights the line itself.)\n\n```js\n---\ntype: example\n---\nclass GutterExample extends React.Component {\n state = {\n lineNumbers: true,\n foldGutter: true,\n highlightActiveLineGutter: true,\n highlightActiveLine: true,\n }\n\n render () {\n return (\n \n \n \n {['lineNumbers', 'foldGutter', 'highlightActiveLineGutter', 'highlightActiveLine'].map((prop) => (\n {\n this.setState({ [prop]: !this.state[prop] })\n }}\n />\n ))}\n \n \n\n {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Indentation\n\n##### auto-indent\n\nThe editor automatically indents the lines on input. The `indentOnLoad` prop indents the code on the initial load and when the `value` prop is updated.\n\n##### indent with tab\n\nWhen the `indentWithTab` feature is turned on, Tab and Shift-Tab will indent the code.\nBy default, it is turned off, and tabbing will focus the next element in the tab order.\n\n**Accessibility note**: Even if `indentWithTab` is on, pressing Escape before tabbing will not handle indentation and will handle focus instead. When using this feature, it is recommended to add info about this behaviour in your documentation.\n\n##### indent unit\n\nYou can also override the unit by which indentation happens (defaults to 2 spaces).\nThe `indentUnitCount` prop should be a string consisting either entirely of spaces or entirely of tabs.\n\n##### manual re-indent\n\nAnother useful feature is the `indentAll` public method on the `SourceCodeEditor` component that can be called anytime to trigger a re-indent on the content.\n\n```js\n---\ntype: example\n---\nclass IndentExample extends React.Component {\n state = {\n indentWithTab: true,\n indentUnitCount: '2',\n }\n\n editor = null\n\n get indentUnit() {\n return Array(parseInt(this.state.indentUnitCount)).fill(' ').join('')\n }\n\n reIndent () {\n this.editor.indentAll()\n }\n\n indentCurrentSelection () {\n this.editor.indentCurrentSelection()\n }\n\n render () {\n return (\n \n \n \n {\n this.setState({ indentWithTab: !this.state.indentWithTab })\n }}\n />\n {\n this.setState({indentUnitCount})\n this.reIndent()\n }}\n >\n {['2', '4', '8'].map(count => )}\n \n \n \n \n \n\n { this.editor = component }}\n language=\"jsx\"\n indentWithTab={this.state.indentWithTab}\n indentUnit={this.indentUnit}\n defaultValue={`const fruit: string = \"apple\"\n\nfunction exampleMethod(props: Props) {\n return props ? props.value : null\n}\n\n/**\n * This is an example\n * @param {Object} props\n */\nconst Example = () => {\n return (\n \n }\n placement='end center'\n offsetX='20px'\n >\n \n Positioned content\n \n \n \n )\n}\n\nrender()`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Direction\n\nSourceCodeEditor is a bidirectional component. It will inherit the text-direction from the context, and can be set directly on the component with the `direction` prop. The `rtl` mode will flip the overall layout and selects base paragraph direction to RTL.\n\nThe `rtlMoveVisually` prop controls the cursor movement in RTL mode, whether it should be **visual** (pressing the left arrow moves the cursor left) or **logical** (pressing the left arrow moves to the next lower index in the string, which is visually right in RTL text).\n\n```js\n---\ntype: example\n---\nclass DirectionExample extends React.Component {\n state = {\n contextDir: 'unset',\n editorDir: 'unset',\n rtlMoveVisually: true,\n }\n\n render () {\n return (\n \n \n \n \n {\n this.setState({contextDir})\n }}\n >\n {['unset', 'ltr', 'rtl'].map(dir => )}\n \n {\n this.setState({editorDir})\n }}\n >\n {['unset', 'ltr', 'rtl'].map(dir => )}\n \n {\n this.setState({ rtlMoveVisually: !this.state.rtlMoveVisually })\n }}\n />\n \n \n\n \n \n \n )\n }\n}\n\nrender()\n```\n\n### Focus management\n\nBy default, SourceCodeEditor is tabbable/focusable, and once it is in focus, tabbing will move the focus on the page. These behaviours can be changed with the [editable](/#SourceCodeEditor/#editable-and-readonly) and [indentWithTab](/#SourceCodeEditor/#indentation-indent-with-tab) props.\n\nThe `autofocus` prop will automatically focus the editor on the initial render.\n\nYou can also manually focus the editor with its public `focus` method (the `hasFocus` getter is also available).\n\n```js\n---\ntype: example\n---\nclass FocusExample extends React.Component {\n state = {\n indentWithTab: true,\n indentUnitCount: '2',\n }\n\n editor = null\n\n render () {\n return (\n \n \n \n \n\n { this.editor = component }}\n language=\"jsx\"\n onFocus={() => {\n console.log('onFocus')\n console.log({ hasFocus: this.editor.hasFocus })\n }}\n onBlur={() => {\n console.log('onBlur')\n console.log({ hasFocus: this.editor.hasFocus })\n }}\n defaultValue={`function exampleMethod(props: Props) {\n return props ? props.value : null\n}`}\n />\n \n )\n }\n}\n\nrender()\n```\n\n### Attachment\n\nThe `attachment` prop removes the top/bottom border-radius and margin of the editor, so it can be attached to the top or bottom of another element.\n\n```js\n---\ntype: example\n---\nclass AttachmentExample extends React.Component {\n state = {\n attachment: 'none'\n }\n\n render () {\n const viewProps = {\n as: 'div',\n background: 'primary-inverse',\n padding: 'small'\n }\n\n return (\n \n \n {\n this.setState({attachment})\n }}\n >\n {['none', 'top', 'bottom'].map(attachment => )}\n \n \n\n {this.state.attachment === 'bottom' && (\n \n CodeEditor is attached to the bottom of this element\n \n )}\n \n {this.state.attachment === 'top' && (\n \n CodeEditor is attached to the top of this element\n \n )}\n \n )\n }\n}\n\nrender()\n```\n\n### Search\n\nTo enable the search panel use the `searchConfig` prop.\n\nYou can open the search panel in the code editor by pressing `cmd/ctrl+f` when the editor is in focus (otherwise the browser's search will open). The reason you would use this instead of the browser native search is because it will miss results that are far out of view in the text rendered by the editor. This is the limitation of the underlying CodeMirror component.\n\nHitting `Enter` jumps to the next result and `Shift+Enter` to the previous. Alternatively you can use the up and down buttons to the right of the input field.\n\nPlacement: the search panel will open at the bottom of the editor. This cannot be changed unfortunately due to a limitation in CodeMirror.\n\n```js\n---\ntype: example\n---\n\n```\n","displayName":"SourceCodeEditor","methods":[],"props":{"label":{"type":{"name":"string"},"required":true,"description":"The label text that screen readers will read when this component gets\nfocus.","tsType":{"name":"string"}},"language":{"type":{"name":"enum","value":[{"value":"'sh'","computed":false},{"value":"'js'","computed":false},{"value":"'json'","computed":false},{"value":"'javascript'","computed":false},{"value":"'jsx'","computed":false},{"value":"'shell'","computed":false},{"value":"'css'","computed":false},{"value":"'html'","computed":false},{"value":"'markdown'","computed":false},{"value":"'yaml'","computed":false},{"value":"'yml'","computed":false},{"value":"'bash'","computed":false}]},"required":false,"description":"The language to use (adds autocomplete and syntax highlighting).","tsType":{"name":"union","raw":"| 'sh'\n| 'js'\n| 'json'\n| 'javascript'\n| 'jsx'\n| 'shell'\n| 'css'\n| 'html'\n| 'markdown'\n| 'yaml'\n| 'yml'\n| 'bash'","elements":[{"name":"literal","value":"'sh'"},{"name":"literal","value":"'js'"},{"name":"literal","value":"'json'"},{"name":"literal","value":"'javascript'"},{"name":"literal","value":"'jsx'"},{"name":"literal","value":"'shell'"},{"name":"literal","value":"'css'"},{"name":"literal","value":"'html'"},{"name":"literal","value":"'markdown'"},{"name":"literal","value":"'yaml'"},{"name":"literal","value":"'yml'"},{"name":"literal","value":"'bash'"}]},"defaultValue":{"value":"'jsx'","computed":false}},"readOnly":{"type":{"name":"bool"},"required":false,"description":"This disables editing of the editor content by the user and API calls.\n\n__Note:__ The editor is still focusable in readOnly mode. Read more at the [codemirror documentation](https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly).","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"editable":{"type":{"name":"bool"},"required":false,"description":"Controls whether the editor content DOM is editable.\n\n__Note:__ When set to false, the editor is not focusable.\n(This doesn't affect API calls that change the editor content, e.g.: copy-paste,\neven when those are bound to keys or buttons.) Read more at the [codemirror documentation](https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable).","tsType":{"name":"boolean"},"defaultValue":{"value":"true","computed":false}},"lineNumbers":{"type":{"name":"bool"},"required":false,"description":"Whether to display the line numbers in the gutter","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"foldGutter":{"type":{"name":"bool"},"required":false,"description":"Whether to show a fold status indicator before foldable lines (which can be clicked to fold or unfold the line)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"highlightActiveLineGutter":{"type":{"name":"bool"},"required":false,"description":"Whether to highlight gutter elements on the active line (visible only when a gutter is visible)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"highlightActiveLine":{"type":{"name":"bool"},"required":false,"description":"Highlights the lines that have a cursor on them","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"lineWrapping":{"type":{"name":"bool"},"required":false,"description":"Whether it should scroll or wrap for long lines. Defaults to false (scroll)","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"autofocus":{"type":{"name":"bool"},"required":false,"description":"Whether the editor should focus itself on initialization","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"spellcheck":{"type":{"name":"bool"},"required":false,"description":"Whether spellcheck will be enabled on the input","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"direction":{"type":{"name":"enum","value":[{"value":"'ltr'","computed":false},{"value":"'rtl'","computed":false}]},"required":false,"description":"Flips overall layout and selects base paragraph direction to be \"LTR\" or \"RTL\".","tsType":{"name":"union","raw":"'ltr' | 'rtl'","elements":[{"name":"literal","value":"'ltr'"},{"name":"literal","value":"'rtl'"}]}},"rtlMoveVisually":{"type":{"name":"bool"},"required":false,"description":"Whether horizontal cursor movement through \"RTL\" text is visual\n(pressing the left arrow moves the cursor left) or logical\n(pressing the left arrow moves to the next lower index in the string,\nwhich is visually right in \"RTL\" text)","tsType":{"name":"boolean"},"defaultValue":{"value":"true","computed":false}},"indentOnLoad":{"type":{"name":"bool"},"required":false,"description":"Whether the editor should auto-indent the code on this initial load\nand when the `value` is changed","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"indentWithTab":{"type":{"name":"bool"},"required":false,"description":"When this feature is on, Tab and Shift-Tab will indent the code. By default, it is turned off, and tabbing will focus the next element in the tab order.\n\n__Note__: Even if this feature is on, pressing Escape before tabbing will not handle indentation and will handle focus instead.","tsType":{"name":"boolean"},"defaultValue":{"value":"false","computed":false}},"indentUnit":{"type":{"name":"string"},"required":false,"description":"Overrides the unit by which indentation happens (defaults to 2 spaces).\nShould be a string consisting either entirely of spaces or entirely of tabs.","tsType":{"name":"string"}},"defaultValue":{"type":{"name":"string"},"required":false,"description":"The default value of the editor (in uncontrolled mode)","tsType":{"name":"string"},"defaultValue":{"value":"''","computed":false}},"value":{"type":{"name":"custom","raw":"controllable(PropTypes.string, 'onChange', 'defaultValue')"},"required":false,"description":"The selected value for the controlled version\n(needs an onChange handler to work)","tsType":{"name":"string"}},"onChange":{"type":{"name":"func"},"required":false,"description":"Called when the value of the component changes.","tsType":{"name":"signature","type":"function","raw":"(value: string) => void","signature":{"arguments":[{"type":{"name":"string"},"name":"value"}],"return":{"name":"void"}}}},"onFocus":{"type":{"name":"func"},"required":false,"description":"Called when the editor receives focus","tsType":{"name":"signature","type":"function","raw":"() => void","signature":{"arguments":[],"return":{"name":"void"}}}},"onBlur":{"type":{"name":"func"},"required":false,"description":"Called when the editor loses focus","tsType":{"name":"signature","type":"function","raw":"() => void","signature":{"arguments":[],"return":{"name":"void"}}}},"attachment":{"type":{"name":"enum","value":[{"value":"'bottom'","computed":false},{"value":"'top'","computed":false}]},"required":false,"description":"Sets minor visual styles (border radius & top/bottom margin)","tsType":{"name":"union","raw":"'bottom' | 'top'","elements":[{"name":"literal","value":"'bottom'"},{"name":"literal","value":"'top'"}]}},"height":{"type":{"name":"string"},"required":false,"description":"The height of the editor.","tsType":{"name":"string"},"defaultValue":{"value":"'auto'","computed":false}},"width":{"type":{"name":"string"},"required":false,"description":"The width of the editor.","tsType":{"name":"string"}},"elementRef":{"type":{"name":"func"},"required":false,"description":"provides a reference to the underlying html root element","tsType":{"name":"signature","type":"function","raw":"(element: HTMLDivElement | null) => void","signature":{"arguments":[{"type":{"name":"union","raw":"HTMLDivElement | null","elements":[{"name":"HTMLDivElement"},{"name":"null"}]},"name":"element"}],"return":{"name":"void"}}}},"containerRef":{"type":{"name":"func"},"required":false,"description":"provides a reference to the html element of the editor's container","tsType":{"name":"signature","type":"function","raw":"(element: HTMLDivElement | null) => void","signature":{"arguments":[{"type":{"name":"union","raw":"HTMLDivElement | null","elements":[{"name":"HTMLDivElement"},{"name":"null"}]},"name":"element"}],"return":{"name":"void"}}}},"searchConfig":{"type":{"name":"object"},"required":false,"description":"enable search panel in editor when pressing ctrl/cmd+f","tsType":{"name":"signature","type":"object","raw":"{\n placeholder: string\n nextResultLabel: string\n prevResultLabel: string\n}","signature":{"properties":[{"key":"placeholder","value":{"name":"string","required":true}},{"key":"nextResultLabel","value":{"name":"string","required":true}},{"key":"prevResultLabel","value":{"name":"string","required":true}}]}}},"dir":{"required":false,"tsType":{"name":"union","raw":"'ltr' | 'rtl'","elements":[{"name":"literal","value":"'ltr'"},{"name":"literal","value":"'rtl'"}]},"description":""}},"category":"components","relativePath":"packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","extension":".tsx","srcPath":"packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx","packageName":"@instructure/ui-source-code-editor","requirePath":"@instructure/ui-source-code-editor/lib/SourceCodeEditor/index","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx').default","esPath":"@instructure/ui-source-code-editor/es/SourceCodeEditor/index","themePath":"packages/ui-source-code-editor/src/SourceCodeEditor/theme.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-source-code-editor/src/SourceCodeEditor/theme.ts","id":"SourceCodeEditor","title":"SourceCodeEditor"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/TextDirectionContext.json b/pr-preview/pr-1863/docs/TextDirectionContext.json index f556c1c186..05115c6798 100644 --- a/pr-preview/pr-1863/docs/TextDirectionContext.json +++ b/pr-preview/pr-1863/docs/TextDirectionContext.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n *\n * This React context the text direction. I can have 2 values:\n * `ltr`, `rtl`. Its default value is the document's `dir` value, if\n * this is not given then `ltr`. For more info on the values see\n * [mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).\n * If its set to `ltr` or `rtl` then some InstUI components (e.g.\n * [DrawerLayout](#DrawerLayout) will automatically orient based on its value.\n *\n * @module TextDirectionContext\n */","meta":{"filename":"a4w8i7odhzs0sb2233axc7i.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nThis React context the text direction. I can have 2 values:\n`ltr`, `rtl`. Its default value is the document's `dir` value, if\nthis is not given then `ltr`. For more info on the values see\n[mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).\nIf its set to `ltr` or `rtl` then some InstUI components (e.g.\n[DrawerLayout](#DrawerLayout) will automatically orient based on its value.","kind":"module","name":"TextDirectionContext","longname":"module:TextDirectionContext","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/TextDirectionContext.ts","extension":".ts","srcPath":"packages/ui-i18n/src/TextDirectionContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/TextDirectionContext.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/TextDirectionContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/TextDirectionContext.ts').default","esPath":"@instructure/ui-i18n/es/TextDirectionContext","themePath":"packages/ui-i18n/src/TextDirectionContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/TextDirectionContext.ts","id":"TextDirectionContext","title":"TextDirectionContext"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/i18n\n * ---\n *\n * This React context the text direction. I can have 2 values:\n * `ltr`, `rtl`. Its default value is the document's `dir` value, if\n * this is not given then `ltr`. For more info on the values see\n * [mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).\n * If its set to `ltr` or `rtl` then some InstUI components (e.g.\n * [DrawerLayout](#DrawerLayout) will automatically orient based on its value.\n *\n * @module TextDirectionContext\n */","meta":{"filename":"6z2vjk1m3vrqq012xx7fan.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nThis React context the text direction. I can have 2 values:\n`ltr`, `rtl`. Its default value is the document's `dir` value, if\nthis is not given then `ltr`. For more info on the values see\n[mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).\nIf its set to `ltr` or `rtl` then some InstUI components (e.g.\n[DrawerLayout](#DrawerLayout) will automatically orient based on its value.","kind":"module","name":"TextDirectionContext","longname":"module:TextDirectionContext","undocumented":false,"category":"utilities/i18n","relativePath":"packages/ui-i18n/src/TextDirectionContext.ts","extension":".ts","srcPath":"packages/ui-i18n/src/TextDirectionContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/TextDirectionContext.ts","packageName":"@instructure/ui-i18n","requirePath":"@instructure/ui-i18n/lib/TextDirectionContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-i18n/src/TextDirectionContext.ts').default","esPath":"@instructure/ui-i18n/es/TextDirectionContext","themePath":"packages/ui-i18n/src/TextDirectionContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-i18n/src/TextDirectionContext.ts","id":"TextDirectionContext","title":"TextDirectionContext"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/ThemeRegistry.json b/pr-preview/pr-1863/docs/ThemeRegistry.json index d4cf7ed7af..7ad377fa02 100644 --- a/pr-preview/pr-1863/docs/ThemeRegistry.json +++ b/pr-preview/pr-1863/docs/ThemeRegistry.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/themes\n * ---\n * DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.\n * A global theme registry used for registering theme objects, setting globally available themes\n * and receiving the currently used theme.\n * @module ThemeRegistry\n */","meta":{"filename":"l04nlcvxubcam0lnfz0i9c.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.\nA global theme registry used for registering theme objects, setting globally available themes\nand receiving the currently used theme.","kind":"module","name":"ThemeRegistry","longname":"module:ThemeRegistry","undocumented":false,"category":"utilities/themes","relativePath":"packages/theme-registry/src/ThemeRegistry.ts","extension":".ts","srcPath":"packages/theme-registry/src/ThemeRegistry.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/theme-registry/src/ThemeRegistry.ts","packageName":"@instructure/theme-registry","requirePath":"@instructure/theme-registry/lib/ThemeRegistry","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/theme-registry/src/ThemeRegistry.ts').default","esPath":"@instructure/theme-registry/es/ThemeRegistry","themePath":"packages/theme-registry/src/ThemeRegistry.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/theme-registry/src/ThemeRegistry.ts","id":"ThemeRegistry","title":"ThemeRegistry"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/themes\n * ---\n * DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.\n * A global theme registry used for registering theme objects, setting globally available themes\n * and receiving the currently used theme.\n * @module ThemeRegistry\n */","meta":{"filename":"0ewdvjfxctrhetrzuf290fa.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.\nA global theme registry used for registering theme objects, setting globally available themes\nand receiving the currently used theme.","kind":"module","name":"ThemeRegistry","longname":"module:ThemeRegistry","undocumented":false,"category":"utilities/themes","relativePath":"packages/theme-registry/src/ThemeRegistry.ts","extension":".ts","srcPath":"packages/theme-registry/src/ThemeRegistry.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/theme-registry/src/ThemeRegistry.ts","packageName":"@instructure/theme-registry","requirePath":"@instructure/theme-registry/lib/ThemeRegistry","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/theme-registry/src/ThemeRegistry.ts').default","esPath":"@instructure/theme-registry/es/ThemeRegistry","themePath":"packages/theme-registry/src/ThemeRegistry.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/theme-registry/src/ThemeRegistry.ts","id":"ThemeRegistry","title":"ThemeRegistry"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/ThemeablePropTypes.json b/pr-preview/pr-1863/docs/ThemeablePropTypes.json index 47c1f60515..d9253ec27a 100644 --- a/pr-preview/pr-1863/docs/ThemeablePropTypes.json +++ b/pr-preview/pr-1863/docs/ThemeablePropTypes.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/themes\n * ---\n * Custom prop types for themeable React components.\n * @module ThemeablePropTypes\n */","meta":{"filename":"ozp52q8acfr4jseybgrvv.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for themeable React components.","kind":"module","name":"ThemeablePropTypes","longname":"module:ThemeablePropTypes","undocumented":false,"category":"utilities/themes","relativePath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","extension":".ts","srcPath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/emotion/src/styleUtils/ThemeablePropTypes.ts","packageName":"@instructure/emotion","requirePath":"@instructure/emotion/lib/styleUtils/ThemeablePropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/emotion/src/styleUtils/ThemeablePropTypes.ts').default","esPath":"@instructure/emotion/es/styleUtils/ThemeablePropTypes","themePath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/emotion/src/styleUtils/ThemeablePropTypes.ts","id":"ThemeablePropTypes","title":"ThemeablePropTypes"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/themes\n * ---\n * Custom prop types for themeable React components.\n * @module ThemeablePropTypes\n */","meta":{"filename":"wxytd5uwcjeu4evohiife.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Custom prop types for themeable React components.","kind":"module","name":"ThemeablePropTypes","longname":"module:ThemeablePropTypes","undocumented":false,"category":"utilities/themes","relativePath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","extension":".ts","srcPath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/emotion/src/styleUtils/ThemeablePropTypes.ts","packageName":"@instructure/emotion","requirePath":"@instructure/emotion/lib/styleUtils/ThemeablePropTypes","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/emotion/src/styleUtils/ThemeablePropTypes.ts').default","esPath":"@instructure/emotion/es/styleUtils/ThemeablePropTypes","themePath":"packages/emotion/src/styleUtils/ThemeablePropTypes.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/emotion/src/styleUtils/ThemeablePropTypes.ts","id":"ThemeablePropTypes","title":"ThemeablePropTypes"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/TopNavBarContext.json b/pr-preview/pr-1863/docs/TopNavBarContext.json index 100df5b48f..715d85b612 100644 --- a/pr-preview/pr-1863/docs/TopNavBarContext.json +++ b/pr-preview/pr-1863/docs/TopNavBarContext.json @@ -1 +1 @@ -{"comment":"/**\n---\nprivate: true\n---\n@module TopNavBarContext\n**/","meta":{"filename":"deuqaxawg4rgzaqp5vwoec.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"TopNavBarContext","longname":"module:TopNavBarContext","undocumented":false,"private":true,"relativePath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","extension":".ts","srcPath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","packageName":"@instructure/ui-top-nav-bar","requirePath":"@instructure/ui-top-nav-bar/lib/TopNavBar/TopNavBarContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts').default","esPath":"@instructure/ui-top-nav-bar/es/TopNavBar/TopNavBarContext","themePath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","id":"TopNavBarContext","title":"TopNavBarContext"} \ No newline at end of file +{"comment":"/**\n---\nprivate: true\n---\n@module TopNavBarContext\n**/","meta":{"filename":"g5pbmcsl1zuywfvq3ndhsm.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"","kind":"module","name":"TopNavBarContext","longname":"module:TopNavBarContext","undocumented":false,"private":true,"relativePath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","extension":".ts","srcPath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","packageName":"@instructure/ui-top-nav-bar","requirePath":"@instructure/ui-top-nav-bar/lib/TopNavBar/TopNavBarContext","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts').default","esPath":"@instructure/ui-top-nav-bar/es/TopNavBar/TopNavBarContext","themePath":"packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-top-nav-bar/src/TopNavBar/TopNavBarContext.ts","id":"TopNavBarContext","title":"TopNavBarContext"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/addElementQueryMatchListener.json b/pr-preview/pr-1863/docs/addElementQueryMatchListener.json index f069fd0a22..0718555112 100644 --- a/pr-preview/pr-1863/docs/addElementQueryMatchListener.json +++ b/pr-preview/pr-1863/docs/addElementQueryMatchListener.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Given an object of named queries, listens for changes in the\n * element size and notifies which queries match via a function\n * callback. The callback method is only called when the query\n * matches change, not on all element resizes. (If you are looking\n * to call a method on all element resizes use\n * [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) instead)\n *\n *\n * This function shares an interface with\n * [addMediaQueryMatchListener](#addMediaQueryMatchListener)\n * so that they can be used interchangeably.\n *\n * The [Responsive](#Responsive) component with the `match` prop\n * set to `element` utilizes this function. This is a low level\n * utility method and, in most cases, [Responsive](#Responsive)\n * should be used instead.\n *\n * ```js-code\n * class MyComponent extends Component {\n * state = {\n * matches: []\n * }\n *\n * _listener = null\n *\n * componentDidMount () {\n * const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n * const el = findDOMNode(this)\n *\n * this._listener = addElementQueryMatchListener(query, el, this.updateMatches)\n * }\n *\n * componentWillUnmount () {\n * if (this._listener) {\n * this._listener.remove()\n * }\n * }\n *\n * updateMatches = (matches) => {\n * this.setState({ matches })\n * }\n * ...\n * }\n * ```\n * @module addElementQueryMatchListener\n * @param {Object} query - object consisting of names and query objects\n * @param {Node|Window|React.ReactElement|React.Component|function} el - a DOM node or a function returning a DOM node\n * @param {function} cb - called with an array of the names of the currently\n * matching queries whenever a matching query changes\n * @returns {function} remove() function to call to remove the listener\n */","meta":{"filename":"8ulyb0aq00owxpdmpemip.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Given an object of named queries, listens for changes in the\nelement size and notifies which queries match via a function\ncallback. The callback method is only called when the query\nmatches change, not on all element resizes. (If you are looking\nto call a method on all element resizes use\n[ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) instead)\n\n\nThis function shares an interface with\n[addMediaQueryMatchListener](#addMediaQueryMatchListener)\nso that they can be used interchangeably.\n\nThe [Responsive](#Responsive) component with the `match` prop\nset to `element` utilizes this function. This is a low level\nutility method and, in most cases, [Responsive](#Responsive)\nshould be used instead.\n\n```js-code\nclass MyComponent extends Component {\n state = {\n matches: []\n }\n\n _listener = null\n\n componentDidMount () {\n const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n const el = findDOMNode(this)\n\n this._listener = addElementQueryMatchListener(query, el, this.updateMatches)\n }\n\n componentWillUnmount () {\n if (this._listener) {\n this._listener.remove()\n }\n }\n\n updateMatches = (matches) => {\n this.setState({ matches })\n }\n ...\n}\n```","kind":"module","name":"addElementQueryMatchListener","params":[{"type":{"names":["Object"]},"description":"object consisting of names and query objects","name":"query"},{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"a DOM node or a function returning a DOM node","name":"el"},{"type":{"names":["function"]},"description":"called with an array of the names of the currently\nmatching queries whenever a matching query changes","name":"cb"}],"returns":[{"type":{"names":["function"]},"description":"remove() function to call to remove the listener"}],"longname":"module:addElementQueryMatchListener","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","extension":".ts","srcPath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addElementQueryMatchListener.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/addElementQueryMatchListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/addElementQueryMatchListener.ts').default","esPath":"@instructure/ui-responsive/es/addElementQueryMatchListener","themePath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addElementQueryMatchListener.ts","id":"addElementQueryMatchListener","title":"addElementQueryMatchListener"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Given an object of named queries, listens for changes in the\n * element size and notifies which queries match via a function\n * callback. The callback method is only called when the query\n * matches change, not on all element resizes. (If you are looking\n * to call a method on all element resizes use\n * [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) instead)\n *\n *\n * This function shares an interface with\n * [addMediaQueryMatchListener](#addMediaQueryMatchListener)\n * so that they can be used interchangeably.\n *\n * The [Responsive](#Responsive) component with the `match` prop\n * set to `element` utilizes this function. This is a low level\n * utility method and, in most cases, [Responsive](#Responsive)\n * should be used instead.\n *\n * ```js-code\n * class MyComponent extends Component {\n * state = {\n * matches: []\n * }\n *\n * _listener = null\n *\n * componentDidMount () {\n * const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n * const el = findDOMNode(this)\n *\n * this._listener = addElementQueryMatchListener(query, el, this.updateMatches)\n * }\n *\n * componentWillUnmount () {\n * if (this._listener) {\n * this._listener.remove()\n * }\n * }\n *\n * updateMatches = (matches) => {\n * this.setState({ matches })\n * }\n * ...\n * }\n * ```\n * @module addElementQueryMatchListener\n * @param {Object} query - object consisting of names and query objects\n * @param {Node|Window|React.ReactElement|React.Component|function} el - a DOM node or a function returning a DOM node\n * @param {function} cb - called with an array of the names of the currently\n * matching queries whenever a matching query changes\n * @returns {function} remove() function to call to remove the listener\n */","meta":{"filename":"dhjm8ko6i1825n73mlndeu.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Given an object of named queries, listens for changes in the\nelement size and notifies which queries match via a function\ncallback. The callback method is only called when the query\nmatches change, not on all element resizes. (If you are looking\nto call a method on all element resizes use\n[ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver) instead)\n\n\nThis function shares an interface with\n[addMediaQueryMatchListener](#addMediaQueryMatchListener)\nso that they can be used interchangeably.\n\nThe [Responsive](#Responsive) component with the `match` prop\nset to `element` utilizes this function. This is a low level\nutility method and, in most cases, [Responsive](#Responsive)\nshould be used instead.\n\n```js-code\nclass MyComponent extends Component {\n state = {\n matches: []\n }\n\n _listener = null\n\n componentDidMount () {\n const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n const el = findDOMNode(this)\n\n this._listener = addElementQueryMatchListener(query, el, this.updateMatches)\n }\n\n componentWillUnmount () {\n if (this._listener) {\n this._listener.remove()\n }\n }\n\n updateMatches = (matches) => {\n this.setState({ matches })\n }\n ...\n}\n```","kind":"module","name":"addElementQueryMatchListener","params":[{"type":{"names":["Object"]},"description":"object consisting of names and query objects","name":"query"},{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"a DOM node or a function returning a DOM node","name":"el"},{"type":{"names":["function"]},"description":"called with an array of the names of the currently\nmatching queries whenever a matching query changes","name":"cb"}],"returns":[{"type":{"names":["function"]},"description":"remove() function to call to remove the listener"}],"longname":"module:addElementQueryMatchListener","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","extension":".ts","srcPath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addElementQueryMatchListener.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/addElementQueryMatchListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/addElementQueryMatchListener.ts').default","esPath":"@instructure/ui-responsive/es/addElementQueryMatchListener","themePath":"packages/ui-responsive/src/addElementQueryMatchListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addElementQueryMatchListener.ts","id":"addElementQueryMatchListener","title":"addElementQueryMatchListener"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/addEventListener.json b/pr-preview/pr-1863/docs/addEventListener.json index debf31c419..c09234a784 100644 --- a/pr-preview/pr-1863/docs/addEventListener.json +++ b/pr-preview/pr-1863/docs/addEventListener.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n * Wrapper function for DOM addEventListener\n * @module addEventListener\n * @param { Node | Window } el - DOM node which will have the event listener attached\n * @param { string } event - a string specifying the event name ('click', 'focus', etc)\n * @param { React.EventHandler> } handler - function to run when event occurs\n * @param { boolean } capture - should the event be executed in the capturing or bubbling phase\n * @returns {{ remove(): void }} a method to remove the event listener\n */","meta":{"filename":"fm4aml2i0xg3g8dkbts6y2.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Wrapper function for DOM addEventListener","kind":"module","name":"addEventListener","params":[{"type":{"names":["Node","Window"]},"description":"DOM node which will have the event listener attached","name":"el"},{"type":{"names":["string"]},"description":"a string specifying the event name ('click', 'focus', etc)","name":"event"},{"type":{"names":["React.EventHandler.>"]},"description":"function to run when event occurs","name":"handler"},{"type":{"names":["boolean"]},"description":"should the event be executed in the capturing or bubbling phase","name":"capture"}],"returns":[{"type":{"names":["Object"]},"description":"a method to remove the event listener"}],"longname":"module:addEventListener","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/addEventListener.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/addEventListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addEventListener.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/addEventListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/addEventListener.ts').default","esPath":"@instructure/ui-dom-utils/es/addEventListener","themePath":"packages/ui-dom-utils/src/addEventListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addEventListener.ts","id":"addEventListener","title":"addEventListener"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n * Wrapper function for DOM addEventListener\n * @module addEventListener\n * @param { Node | Window } el - DOM node which will have the event listener attached\n * @param { string } event - a string specifying the event name ('click', 'focus', etc)\n * @param { React.EventHandler> } handler - function to run when event occurs\n * @param { boolean } capture - should the event be executed in the capturing or bubbling phase\n * @returns {{ remove(): void }} a method to remove the event listener\n */","meta":{"filename":"t4g7e97gceiw9s1e0097ka.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Wrapper function for DOM addEventListener","kind":"module","name":"addEventListener","params":[{"type":{"names":["Node","Window"]},"description":"DOM node which will have the event listener attached","name":"el"},{"type":{"names":["string"]},"description":"a string specifying the event name ('click', 'focus', etc)","name":"event"},{"type":{"names":["React.EventHandler.>"]},"description":"function to run when event occurs","name":"handler"},{"type":{"names":["boolean"]},"description":"should the event be executed in the capturing or bubbling phase","name":"capture"}],"returns":[{"type":{"names":["Object"]},"description":"a method to remove the event listener"}],"longname":"module:addEventListener","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/addEventListener.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/addEventListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addEventListener.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/addEventListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/addEventListener.ts').default","esPath":"@instructure/ui-dom-utils/es/addEventListener","themePath":"packages/ui-dom-utils/src/addEventListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addEventListener.ts","id":"addEventListener","title":"addEventListener"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/addMediaQueryMatchListener.json b/pr-preview/pr-1863/docs/addMediaQueryMatchListener.json index 8595bfe89c..d27dc2bcd4 100644 --- a/pr-preview/pr-1863/docs/addMediaQueryMatchListener.json +++ b/pr-preview/pr-1863/docs/addMediaQueryMatchListener.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Given an object of named queries, listens for changes in the\n * window size and notifies which queries match via a function\n * callback. The callback method is only called when the query\n * matches change, not on all window resizes.\n *\n * This function shares an interface with\n * [addElementQueryMatchListener](#addElementQueryMatchListener)\n * so that they can be used interchangeably.\n *\n * The [Responsive](#Responsive) component with the `match` prop\n * set to `media` utilizes this function. This is a low level utility\n * method and, in most cases, [Responsive](#Responsive) should be\n * used instead.\n *\n * ```js-code\n * class MyComponent extends Component {\n * state = {\n * matches: []\n * }\n *\n * _listener = null\n *\n * componentDidMount () {\n * const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n * const el = findDOMNode(this)\n *\n * this._listener = addMediaQueryMatchListener(query, el, this.updateMatches)\n * }\n *\n * componentWillUnmount () {\n * if (this._listener) {\n * this._listener.remove()\n * }\n * }\n *\n * updateMatches = (matches) => {\n * this.setState({ matches })\n * }\n * ...\n * }\n * ```\n * @module addMediaQueryMatchListener\n * @param {Object} query - object consisting of names and query objects\n * @param {Node|Window|React.ReactElement|React.Component|function} el - a DOM node or a function returning a DOM node\n * @param {function} cb - called with an array of the names of the currently matching queries whenever a matching query changes\n * @param {object} matchMedia - called with an array of the names of the currently matching queries whenever a matching query changes\n * @returns {function} remove() function to call to remove the listener\n */","meta":{"filename":"4awy02e2zxa5rqou1p6rsp.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Given an object of named queries, listens for changes in the\nwindow size and notifies which queries match via a function\ncallback. The callback method is only called when the query\nmatches change, not on all window resizes.\n\nThis function shares an interface with\n[addElementQueryMatchListener](#addElementQueryMatchListener)\nso that they can be used interchangeably.\n\nThe [Responsive](#Responsive) component with the `match` prop\nset to `media` utilizes this function. This is a low level utility\nmethod and, in most cases, [Responsive](#Responsive) should be\nused instead.\n\n```js-code\nclass MyComponent extends Component {\n state = {\n matches: []\n }\n\n _listener = null\n\n componentDidMount () {\n const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n const el = findDOMNode(this)\n\n this._listener = addMediaQueryMatchListener(query, el, this.updateMatches)\n }\n\n componentWillUnmount () {\n if (this._listener) {\n this._listener.remove()\n }\n }\n\n updateMatches = (matches) => {\n this.setState({ matches })\n }\n ...\n}\n```","kind":"module","name":"addMediaQueryMatchListener","params":[{"type":{"names":["Object"]},"description":"object consisting of names and query objects","name":"query"},{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"a DOM node or a function returning a DOM node","name":"el"},{"type":{"names":["function"]},"description":"called with an array of the names of the currently matching queries whenever a matching query changes","name":"cb"},{"type":{"names":["object"]},"description":"called with an array of the names of the currently matching queries whenever a matching query changes","name":"matchMedia"}],"returns":[{"type":{"names":["function"]},"description":"remove() function to call to remove the listener"}],"longname":"module:addMediaQueryMatchListener","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","extension":".ts","srcPath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addMediaQueryMatchListener.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/addMediaQueryMatchListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/addMediaQueryMatchListener.ts').default","esPath":"@instructure/ui-responsive/es/addMediaQueryMatchListener","themePath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addMediaQueryMatchListener.ts","id":"addMediaQueryMatchListener","title":"addMediaQueryMatchListener"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/layout\n * ---\n * Given an object of named queries, listens for changes in the\n * window size and notifies which queries match via a function\n * callback. The callback method is only called when the query\n * matches change, not on all window resizes.\n *\n * This function shares an interface with\n * [addElementQueryMatchListener](#addElementQueryMatchListener)\n * so that they can be used interchangeably.\n *\n * The [Responsive](#Responsive) component with the `match` prop\n * set to `media` utilizes this function. This is a low level utility\n * method and, in most cases, [Responsive](#Responsive) should be\n * used instead.\n *\n * ```js-code\n * class MyComponent extends Component {\n * state = {\n * matches: []\n * }\n *\n * _listener = null\n *\n * componentDidMount () {\n * const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n * const el = findDOMNode(this)\n *\n * this._listener = addMediaQueryMatchListener(query, el, this.updateMatches)\n * }\n *\n * componentWillUnmount () {\n * if (this._listener) {\n * this._listener.remove()\n * }\n * }\n *\n * updateMatches = (matches) => {\n * this.setState({ matches })\n * }\n * ...\n * }\n * ```\n * @module addMediaQueryMatchListener\n * @param {Object} query - object consisting of names and query objects\n * @param {Node|Window|React.ReactElement|React.Component|function} el - a DOM node or a function returning a DOM node\n * @param {function} cb - called with an array of the names of the currently matching queries whenever a matching query changes\n * @param {object} matchMedia - called with an array of the names of the currently matching queries whenever a matching query changes\n * @returns {function} remove() function to call to remove the listener\n */","meta":{"filename":"2stu8j7ofc4t33gj8oezj.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Given an object of named queries, listens for changes in the\nwindow size and notifies which queries match via a function\ncallback. The callback method is only called when the query\nmatches change, not on all window resizes.\n\nThis function shares an interface with\n[addElementQueryMatchListener](#addElementQueryMatchListener)\nso that they can be used interchangeably.\n\nThe [Responsive](#Responsive) component with the `match` prop\nset to `media` utilizes this function. This is a low level utility\nmethod and, in most cases, [Responsive](#Responsive) should be\nused instead.\n\n```js-code\nclass MyComponent extends Component {\n state = {\n matches: []\n }\n\n _listener = null\n\n componentDidMount () {\n const query = {myFirstQuery: { minWidth: 100 }, mySecondQuery: { maxHeight: '30rem'}}\n const el = findDOMNode(this)\n\n this._listener = addMediaQueryMatchListener(query, el, this.updateMatches)\n }\n\n componentWillUnmount () {\n if (this._listener) {\n this._listener.remove()\n }\n }\n\n updateMatches = (matches) => {\n this.setState({ matches })\n }\n ...\n}\n```","kind":"module","name":"addMediaQueryMatchListener","params":[{"type":{"names":["Object"]},"description":"object consisting of names and query objects","name":"query"},{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"a DOM node or a function returning a DOM node","name":"el"},{"type":{"names":["function"]},"description":"called with an array of the names of the currently matching queries whenever a matching query changes","name":"cb"},{"type":{"names":["object"]},"description":"called with an array of the names of the currently matching queries whenever a matching query changes","name":"matchMedia"}],"returns":[{"type":{"names":["function"]},"description":"remove() function to call to remove the listener"}],"longname":"module:addMediaQueryMatchListener","undocumented":false,"category":"utilities/layout","relativePath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","extension":".ts","srcPath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addMediaQueryMatchListener.ts","packageName":"@instructure/ui-responsive","requirePath":"@instructure/ui-responsive/lib/addMediaQueryMatchListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-responsive/src/addMediaQueryMatchListener.ts').default","esPath":"@instructure/ui-responsive/es/addMediaQueryMatchListener","themePath":"packages/ui-responsive/src/addMediaQueryMatchListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-responsive/src/addMediaQueryMatchListener.ts","id":"addMediaQueryMatchListener","title":"addMediaQueryMatchListener"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/addPositionChangeListener.json b/pr-preview/pr-1863/docs/addPositionChangeListener.json index e5a8528286..ca548a66c8 100644 --- a/pr-preview/pr-1863/docs/addPositionChangeListener.json +++ b/pr-preview/pr-1863/docs/addPositionChangeListener.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n * Adds a listener to an element and calls a specified handler\n * function whenever the position changes\n * @module\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node\n * @param {function} handler - function to run if the position has changed\n * @returns {function} remove - cancel the listener and no longer execute the handler function\n */","meta":{"filename":"97wcdo6u7qqix6b3j5aj5t.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Adds a listener to an element and calls a specified handler\nfunction whenever the position changes","kind":"module","name":"97wcdo6u7qqix6b3j5aj5t","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"el"},{"type":{"names":["function"]},"description":"function to run if the position has changed","name":"handler"}],"returns":[{"type":{"names":["function"]},"description":"remove - cancel the listener and no longer execute the handler function"}],"longname":"module:97wcdo6u7qqix6b3j5aj5t","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addPositionChangeListener.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/addPositionChangeListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/addPositionChangeListener.ts').default","esPath":"@instructure/ui-dom-utils/es/addPositionChangeListener","themePath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addPositionChangeListener.ts","id":"addPositionChangeListener","title":"addPositionChangeListener"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n * Adds a listener to an element and calls a specified handler\n * function whenever the position changes\n * @module\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node\n * @param {function} handler - function to run if the position has changed\n * @returns {function} remove - cancel the listener and no longer execute the handler function\n */","meta":{"filename":"n8pcry82butw0fnxqn9q4.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Adds a listener to an element and calls a specified handler\nfunction whenever the position changes","kind":"module","name":"n8pcry82butw0fnxqn9q4","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"el"},{"type":{"names":["function"]},"description":"function to run if the position has changed","name":"handler"}],"returns":[{"type":{"names":["function"]},"description":"remove - cancel the listener and no longer execute the handler function"}],"longname":"module:n8pcry82butw0fnxqn9q4","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addPositionChangeListener.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/addPositionChangeListener","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/addPositionChangeListener.ts').default","esPath":"@instructure/ui-dom-utils/es/addPositionChangeListener","themePath":"packages/ui-dom-utils/src/addPositionChangeListener.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/addPositionChangeListener.ts","id":"addPositionChangeListener","title":"addPositionChangeListener"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/alpha.json b/pr-preview/pr-1863/docs/alpha.json index 05a0972a8a..e3af4b69ab 100644 --- a/pr-preview/pr-1863/docs/alpha.json +++ b/pr-preview/pr-1863/docs/alpha.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Adjust the alpha transparency of a color\n * @module alpha\n * @param {String} color\n * @param {Number} percent\n * @returns {String} color as rgb string\n */","meta":{"filename":"jc9rehbvv917fwwgqu4gc.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Adjust the alpha transparency of a color","kind":"module","name":"alpha","params":[{"type":{"names":["String"]},"name":"color"},{"type":{"names":["Number"]},"name":"percent"}],"returns":[{"type":{"names":["String"]},"description":"color as rgb string"}],"longname":"module:alpha","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/alpha.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/alpha.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/alpha.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/alpha","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/alpha.ts').default","esPath":"@instructure/ui-color-utils/es/alpha","themePath":"packages/ui-color-utils/src/alpha.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/alpha.ts","id":"alpha","title":"alpha"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Adjust the alpha transparency of a color\n * @module alpha\n * @param {String} color\n * @param {Number} percent\n * @returns {String} color as rgb string\n */","meta":{"filename":"9dyex8p5ebqlju685xqrl.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Adjust the alpha transparency of a color","kind":"module","name":"alpha","params":[{"type":{"names":["String"]},"name":"color"},{"type":{"names":["Number"]},"name":"percent"}],"returns":[{"type":{"names":["String"]},"description":"color as rgb string"}],"longname":"module:alpha","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/alpha.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/alpha.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/alpha.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/alpha","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/alpha.ts').default","esPath":"@instructure/ui-color-utils/es/alpha","themePath":"packages/ui-color-utils/src/alpha.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/alpha.ts","id":"alpha","title":"alpha"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/calculateElementPosition.json b/pr-preview/pr-1863/docs/calculateElementPosition.json index 4837db8153..e3cec11276 100644 --- a/pr-preview/pr-1863/docs/calculateElementPosition.json +++ b/pr-preview/pr-1863/docs/calculateElementPosition.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/position\n * ---\n *\n * Calculate the coordinates to attach an element\n * to a designated target with specified constraints\n * @module\n * @param {ReactComponent|DomNode} el - component or DOM node\n * @param {DomNode} target - the target DOM node\n * @param {Object} options - constraints for the positioning\n * @param {string} options.placement - designates where the element will be attached\n * ('top', 'bottom', 'left', 'right', 'top left' etc.)\n * @param {DomNode} options.container - DOM node where the element is contained\n * @param {boolean} options.over - whether or not you want the element to position over the target\n * @param {string} options.constrain - if the element should be constrained to 'window',\n * 'scroll-parent', 'parent', or 'none'\n * @param {string|number} options.offsetX - the horizontal offset for the positioned element\n * @param {string|number} options.offsetY - the vertical offset for the positioned element\n * @returns {Object} object containing style with the calculated position in the 'transform'\n * property\n */","meta":{"filename":"sobfeo3rz3hl7s66prt1ag.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nCalculate the coordinates to attach an element\nto a designated target with specified constraints","kind":"module","name":"sobfeo3rz3hl7s66prt1ag","params":[{"type":{"names":["ReactComponent","DomNode"]},"description":"component or DOM node","name":"el"},{"type":{"names":["DomNode"]},"description":"the target DOM node","name":"target"},{"type":{"names":["Object"]},"description":"constraints for the positioning","name":"options"},{"type":{"names":["string"]},"description":"designates where the element will be attached\n ('top', 'bottom', 'left', 'right', 'top left' etc.)","name":"options.placement"},{"type":{"names":["DomNode"]},"description":"DOM node where the element is contained","name":"options.container"},{"type":{"names":["boolean"]},"description":"whether or not you want the element to position over the target","name":"options.over"},{"type":{"names":["string"]},"description":"if the element should be constrained to 'window',\n 'scroll-parent', 'parent', or 'none'","name":"options.constrain"},{"type":{"names":["string","number"]},"description":"the horizontal offset for the positioned element","name":"options.offsetX"},{"type":{"names":["string","number"]},"description":"the vertical offset for the positioned element","name":"options.offsetY"}],"returns":[{"type":{"names":["Object"]},"description":"object containing style with the calculated position in the 'transform'\n property"}],"longname":"module:sobfeo3rz3hl7s66prt1ag","undocumented":false,"category":"utilities/position","relativePath":"packages/ui-position/src/calculateElementPosition.ts","extension":".ts","srcPath":"packages/ui-position/src/calculateElementPosition.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/calculateElementPosition.ts","packageName":"@instructure/ui-position","requirePath":"@instructure/ui-position/lib/calculateElementPosition","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-position/src/calculateElementPosition.ts').default","esPath":"@instructure/ui-position/es/calculateElementPosition","themePath":"packages/ui-position/src/calculateElementPosition.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/calculateElementPosition.ts","id":"calculateElementPosition","title":"calculateElementPosition"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/position\n * ---\n *\n * Calculate the coordinates to attach an element\n * to a designated target with specified constraints\n * @module\n * @param {ReactComponent|DomNode} el - component or DOM node\n * @param {DomNode} target - the target DOM node\n * @param {Object} options - constraints for the positioning\n * @param {string} options.placement - designates where the element will be attached\n * ('top', 'bottom', 'left', 'right', 'top left' etc.)\n * @param {DomNode} options.container - DOM node where the element is contained\n * @param {boolean} options.over - whether or not you want the element to position over the target\n * @param {string} options.constrain - if the element should be constrained to 'window',\n * 'scroll-parent', 'parent', or 'none'\n * @param {string|number} options.offsetX - the horizontal offset for the positioned element\n * @param {string|number} options.offsetY - the vertical offset for the positioned element\n * @returns {Object} object containing style with the calculated position in the 'transform'\n * property\n */","meta":{"filename":"gkqz0x5a8k4in9khyb8k8s.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nCalculate the coordinates to attach an element\nto a designated target with specified constraints","kind":"module","name":"gkqz0x5a8k4in9khyb8k8s","params":[{"type":{"names":["ReactComponent","DomNode"]},"description":"component or DOM node","name":"el"},{"type":{"names":["DomNode"]},"description":"the target DOM node","name":"target"},{"type":{"names":["Object"]},"description":"constraints for the positioning","name":"options"},{"type":{"names":["string"]},"description":"designates where the element will be attached\n ('top', 'bottom', 'left', 'right', 'top left' etc.)","name":"options.placement"},{"type":{"names":["DomNode"]},"description":"DOM node where the element is contained","name":"options.container"},{"type":{"names":["boolean"]},"description":"whether or not you want the element to position over the target","name":"options.over"},{"type":{"names":["string"]},"description":"if the element should be constrained to 'window',\n 'scroll-parent', 'parent', or 'none'","name":"options.constrain"},{"type":{"names":["string","number"]},"description":"the horizontal offset for the positioned element","name":"options.offsetX"},{"type":{"names":["string","number"]},"description":"the vertical offset for the positioned element","name":"options.offsetY"}],"returns":[{"type":{"names":["Object"]},"description":"object containing style with the calculated position in the 'transform'\n property"}],"longname":"module:gkqz0x5a8k4in9khyb8k8s","undocumented":false,"category":"utilities/position","relativePath":"packages/ui-position/src/calculateElementPosition.ts","extension":".ts","srcPath":"packages/ui-position/src/calculateElementPosition.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/calculateElementPosition.ts","packageName":"@instructure/ui-position","requirePath":"@instructure/ui-position/lib/calculateElementPosition","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-position/src/calculateElementPosition.ts').default","esPath":"@instructure/ui-position/es/calculateElementPosition","themePath":"packages/ui-position/src/calculateElementPosition.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-position/src/calculateElementPosition.ts","id":"calculateElementPosition","title":"calculateElementPosition"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/callRenderProp.json b/pr-preview/pr-1863/docs/callRenderProp.json index 0dfac5525b..fdaf18d39f 100644 --- a/pr-preview/pr-1863/docs/callRenderProp.json +++ b/pr-preview/pr-1863/docs/callRenderProp.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Evaluate a provided value to create a renderable React element.\n * @module callRenderProp\n * @param value\n * @param props\n */","meta":{"filename":"jernei5y3aboslcn650ldc.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Evaluate a provided value to create a renderable React element.","kind":"module","name":"callRenderProp","params":[{"name":"value"},{"name":"props"}],"longname":"module:callRenderProp","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/callRenderProp.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/callRenderProp.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/callRenderProp.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/callRenderProp","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/callRenderProp.ts').default","esPath":"@instructure/ui-react-utils/es/callRenderProp","themePath":"packages/ui-react-utils/src/callRenderProp.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/callRenderProp.ts","id":"callRenderProp","title":"callRenderProp"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Evaluate a provided value to create a renderable React element.\n * @module callRenderProp\n * @param value\n * @param props\n */","meta":{"filename":"i295e4kqq0k7ckrs18bzxu.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Evaluate a provided value to create a renderable React element.","kind":"module","name":"callRenderProp","params":[{"name":"value"},{"name":"props"}],"longname":"module:callRenderProp","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/callRenderProp.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/callRenderProp.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/callRenderProp.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/callRenderProp","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/callRenderProp.ts').default","esPath":"@instructure/ui-react-utils/es/callRenderProp","themePath":"packages/ui-react-utils/src/callRenderProp.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/callRenderProp.ts","id":"callRenderProp","title":"callRenderProp"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/camelize.json b/pr-preview/pr-1863/docs/camelize.json index b0e4b4b622..90ecf7d2d7 100644 --- a/pr-preview/pr-1863/docs/camelize.json +++ b/pr-preview/pr-1863/docs/camelize.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Converts a hyphenated string to camel case\n *\n * Example inputs:\n * - 'foo-bar'\n * - 'baz-qux'\n *\n * Example outputs:\n * - 'fooBar'\n * - 'bazQux'\n *\n * @module camelize\n * @param {String} str\n * @returns {String} Returns camel cased string\n */","meta":{"filename":"w2ot3m8iasalgioywe6z0c.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Converts a hyphenated string to camel case\n\nExample inputs:\n - 'foo-bar'\n - 'baz-qux'\n\nExample outputs:\n - 'fooBar'\n - 'bazQux'","kind":"module","name":"camelize","params":[{"type":{"names":["String"]},"name":"str"}],"returns":[{"type":{"names":["String"]},"description":"Returns camel cased string"}],"longname":"module:camelize","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/camelize.ts","extension":".ts","srcPath":"packages/ui-utils/src/camelize.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/camelize.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/camelize","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/camelize.ts').default","esPath":"@instructure/ui-utils/es/camelize","themePath":"packages/ui-utils/src/camelize.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/camelize.ts","id":"camelize","title":"camelize"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Converts a hyphenated string to camel case\n *\n * Example inputs:\n * - 'foo-bar'\n * - 'baz-qux'\n *\n * Example outputs:\n * - 'fooBar'\n * - 'bazQux'\n *\n * @module camelize\n * @param {String} str\n * @returns {String} Returns camel cased string\n */","meta":{"filename":"1g8offcpi87gpxib2vjbut.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Converts a hyphenated string to camel case\n\nExample inputs:\n - 'foo-bar'\n - 'baz-qux'\n\nExample outputs:\n - 'fooBar'\n - 'bazQux'","kind":"module","name":"camelize","params":[{"type":{"names":["String"]},"name":"str"}],"returns":[{"type":{"names":["String"]},"description":"Returns camel cased string"}],"longname":"module:camelize","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/camelize.ts","extension":".ts","srcPath":"packages/ui-utils/src/camelize.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/camelize.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/camelize","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/camelize.ts').default","esPath":"@instructure/ui-utils/es/camelize","themePath":"packages/ui-utils/src/camelize.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/camelize.ts","id":"camelize","title":"camelize"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/canUseDOM.json b/pr-preview/pr-1863/docs/canUseDOM.json index 6f25a062f2..302285a45b 100644 --- a/pr-preview/pr-1863/docs/canUseDOM.json +++ b/pr-preview/pr-1863/docs/canUseDOM.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Performs simple test to determine if DOM can be accessed\n * @module\n * @returns {boolean} whether the dom can be used\n */","meta":{"filename":"jumfn58woztnl2qgaxnqbe.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nPerforms simple test to determine if DOM can be accessed","kind":"module","name":"jumfn58woztnl2qgaxnqbe","returns":[{"type":{"names":["boolean"]},"description":"whether the dom can be used"}],"longname":"module:jumfn58woztnl2qgaxnqbe","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/canUseDOM.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/canUseDOM.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/canUseDOM.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/canUseDOM","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/canUseDOM.ts').default","esPath":"@instructure/ui-dom-utils/es/canUseDOM","themePath":"packages/ui-dom-utils/src/canUseDOM.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/canUseDOM.ts","id":"canUseDOM","title":"canUseDOM"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Performs simple test to determine if DOM can be accessed\n * @module\n * @returns {boolean} whether the dom can be used\n */","meta":{"filename":"rzegg42cbebtxfa3cv47t.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nPerforms simple test to determine if DOM can be accessed","kind":"module","name":"rzegg42cbebtxfa3cv47t","returns":[{"type":{"names":["boolean"]},"description":"whether the dom can be used"}],"longname":"module:rzegg42cbebtxfa3cv47t","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/canUseDOM.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/canUseDOM.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/canUseDOM.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/canUseDOM","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/canUseDOM.ts').default","esPath":"@instructure/ui-dom-utils/es/canUseDOM","themePath":"packages/ui-dom-utils/src/canUseDOM.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/canUseDOM.ts","id":"canUseDOM","title":"canUseDOM"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/capitalizeFirstLetter.json b/pr-preview/pr-1863/docs/capitalizeFirstLetter.json index 3a8f2f32a5..ff9ea36cea 100644 --- a/pr-preview/pr-1863/docs/capitalizeFirstLetter.json +++ b/pr-preview/pr-1863/docs/capitalizeFirstLetter.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Capitalize the first letter in a string\n * @module capitalizeFirstLetter\n * @param {String} str\n */","meta":{"filename":"69downxxt9upuqbog9k8ae.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Capitalize the first letter in a string","kind":"module","name":"capitalizeFirstLetter","params":[{"type":{"names":["String"]},"name":"str"}],"longname":"module:capitalizeFirstLetter","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/capitalizeFirstLetter.ts","extension":".ts","srcPath":"packages/ui-utils/src/capitalizeFirstLetter.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/capitalizeFirstLetter.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/capitalizeFirstLetter","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/capitalizeFirstLetter.ts').default","esPath":"@instructure/ui-utils/es/capitalizeFirstLetter","themePath":"packages/ui-utils/src/capitalizeFirstLetter.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/capitalizeFirstLetter.ts","id":"capitalizeFirstLetter","title":"capitalizeFirstLetter"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Capitalize the first letter in a string\n * @module capitalizeFirstLetter\n * @param {String} str\n */","meta":{"filename":"wor1en38swk9u0w9cknjy7.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Capitalize the first letter in a string","kind":"module","name":"capitalizeFirstLetter","params":[{"type":{"names":["String"]},"name":"str"}],"longname":"module:capitalizeFirstLetter","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/capitalizeFirstLetter.ts","extension":".ts","srcPath":"packages/ui-utils/src/capitalizeFirstLetter.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/capitalizeFirstLetter.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/capitalizeFirstLetter","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/capitalizeFirstLetter.ts').default","esPath":"@instructure/ui-utils/es/capitalizeFirstLetter","themePath":"packages/ui-utils/src/capitalizeFirstLetter.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/capitalizeFirstLetter.ts","id":"capitalizeFirstLetter","title":"capitalizeFirstLetter"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/childrenOrValue.json b/pr-preview/pr-1863/docs/childrenOrValue.json index 6df31aab34..764a548a2b 100644 --- a/pr-preview/pr-1863/docs/childrenOrValue.json +++ b/pr-preview/pr-1863/docs/childrenOrValue.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that either value is provided as a prop if as=\"input\", and children\n * if provided otherwise\n *\n * ```js-code\n * import { childrenOrValue } from '@instructure/ui-prop-types'\n *\n * class Foo extends Component {\n * static propTypes = {\n * children: childrenOrValue,\n * value: childrenOrValue\n * }\n * ...\n * ```\n * @module childrenOrValue\n */","meta":{"filename":"86vdu37waqmogysjh4ntpa.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that either value is provided as a prop if as=\"input\", and children\nif provided otherwise\n\n```js-code\n import { childrenOrValue } from '@instructure/ui-prop-types'\n\n class Foo extends Component {\n static propTypes = {\n children: childrenOrValue,\n value: childrenOrValue\n }\n ...\n```","kind":"module","name":"childrenOrValue","longname":"module:childrenOrValue","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/childrenOrValue.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/childrenOrValue.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/childrenOrValue.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/childrenOrValue","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/childrenOrValue.ts').default","esPath":"@instructure/ui-prop-types/es/childrenOrValue","themePath":"packages/ui-prop-types/src/childrenOrValue.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/childrenOrValue.ts","id":"childrenOrValue","title":"childrenOrValue"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that either value is provided as a prop if as=\"input\", and children\n * if provided otherwise\n *\n * ```js-code\n * import { childrenOrValue } from '@instructure/ui-prop-types'\n *\n * class Foo extends Component {\n * static propTypes = {\n * children: childrenOrValue,\n * value: childrenOrValue\n * }\n * ...\n * ```\n * @module childrenOrValue\n */","meta":{"filename":"wnosi7whmndoy3pml4tnq.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that either value is provided as a prop if as=\"input\", and children\nif provided otherwise\n\n```js-code\n import { childrenOrValue } from '@instructure/ui-prop-types'\n\n class Foo extends Component {\n static propTypes = {\n children: childrenOrValue,\n value: childrenOrValue\n }\n ...\n```","kind":"module","name":"childrenOrValue","longname":"module:childrenOrValue","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/childrenOrValue.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/childrenOrValue.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/childrenOrValue.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/childrenOrValue","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/childrenOrValue.ts').default","esPath":"@instructure/ui-prop-types/es/childrenOrValue","themePath":"packages/ui-prop-types/src/childrenOrValue.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/childrenOrValue.ts","id":"childrenOrValue","title":"childrenOrValue"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/cloneArray.json b/pr-preview/pr-1863/docs/cloneArray.json index 9c4f8e792e..9a2ddfe88b 100644 --- a/pr-preview/pr-1863/docs/cloneArray.json +++ b/pr-preview/pr-1863/docs/cloneArray.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Deep clones an array with sub arrays\n * @module cloneArray\n * @param {Array} arr\n * @returns {Array} Returns a copy of the array\n */","meta":{"filename":"yxw3rulxtyhgri4lota51v.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Deep clones an array with sub arrays","kind":"module","name":"cloneArray","params":[{"type":{"names":["Array"]},"name":"arr"}],"returns":[{"type":{"names":["Array"]},"description":"Returns a copy of the array"}],"longname":"module:cloneArray","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/cloneArray.ts","extension":".ts","srcPath":"packages/ui-utils/src/cloneArray.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/cloneArray.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/cloneArray","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/cloneArray.ts').default","esPath":"@instructure/ui-utils/es/cloneArray","themePath":"packages/ui-utils/src/cloneArray.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/cloneArray.ts","id":"cloneArray","title":"cloneArray"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Deep clones an array with sub arrays\n * @module cloneArray\n * @param {Array} arr\n * @returns {Array} Returns a copy of the array\n */","meta":{"filename":"4a6hpkl7u1wraotjmd4hs.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Deep clones an array with sub arrays","kind":"module","name":"cloneArray","params":[{"type":{"names":["Array"]},"name":"arr"}],"returns":[{"type":{"names":["Array"]},"description":"Returns a copy of the array"}],"longname":"module:cloneArray","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/cloneArray.ts","extension":".ts","srcPath":"packages/ui-utils/src/cloneArray.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/cloneArray.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/cloneArray","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/cloneArray.ts').default","esPath":"@instructure/ui-utils/es/cloneArray","themePath":"packages/ui-utils/src/cloneArray.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/cloneArray.ts","id":"cloneArray","title":"cloneArray"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/contains.json b/pr-preview/pr-1863/docs/contains.json index 7590f33efb..dda597e3fe 100644 --- a/pr-preview/pr-1863/docs/contains.json +++ b/pr-preview/pr-1863/docs/contains.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Determine if an element contains another DOM node\n * @module containsWithDOM\n * @param { Node | Window | React.ReactElement | function | null } context - component or DOM node\n * @param { Node | Window | React.ReactElement | function | null } el - component or DOM node which we want to determine if contained within the context\n * @returns { boolean } if the element is contained within the context\n */","meta":{"filename":"925qfu1i2w7qq8ayoukm.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nDetermine if an element contains another DOM node","kind":"module","name":"containsWithDOM","params":[{"type":{"names":["Node","Window","React.ReactElement","function","null"]},"description":"component or DOM node","name":"context"},{"type":{"names":["Node","Window","React.ReactElement","function","null"]},"description":"component or DOM node which we want to determine if contained within the context","name":"el"}],"returns":[{"type":{"names":["boolean"]},"description":"if the element is contained within the context"}],"longname":"module:containsWithDOM","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/contains.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/contains.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/contains.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/contains","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/contains.ts').default","esPath":"@instructure/ui-dom-utils/es/contains","themePath":"packages/ui-dom-utils/src/contains.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/contains.ts","id":"contains","title":"contains"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Determine if an element contains another DOM node\n * @module containsWithDOM\n * @param { Node | Window | React.ReactElement | function | null } context - component or DOM node\n * @param { Node | Window | React.ReactElement | function | null } el - component or DOM node which we want to determine if contained within the context\n * @returns { boolean } if the element is contained within the context\n */","meta":{"filename":"570tioeim1oekgon35lb2.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nDetermine if an element contains another DOM node","kind":"module","name":"containsWithDOM","params":[{"type":{"names":["Node","Window","React.ReactElement","function","null"]},"description":"component or DOM node","name":"context"},{"type":{"names":["Node","Window","React.ReactElement","function","null"]},"description":"component or DOM node which we want to determine if contained within the context","name":"el"}],"returns":[{"type":{"names":["boolean"]},"description":"if the element is contained within the context"}],"longname":"module:containsWithDOM","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/contains.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/contains.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/contains.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/contains","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/contains.ts').default","esPath":"@instructure/ui-dom-utils/es/contains","themePath":"packages/ui-dom-utils/src/contains.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/contains.ts","id":"contains","title":"contains"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/containsActiveElement.json b/pr-preview/pr-1863/docs/containsActiveElement.json index 82f035789a..4791408f2e 100644 --- a/pr-preview/pr-1863/docs/containsActiveElement.json +++ b/pr-preview/pr-1863/docs/containsActiveElement.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Determine if an element contains the active element\n * @module containsActiveElement\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @returns {boolean} if the element contains the active element\n */","meta":{"filename":"r4d1nm7ze7smbgmzmzmt5.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nDetermine if an element contains the active element","kind":"module","name":"containsActiveElement","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"}],"returns":[{"type":{"names":["boolean"]},"description":"if the element contains the active element"}],"longname":"module:containsActiveElement","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/containsActiveElement.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/containsActiveElement.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/containsActiveElement.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/containsActiveElement","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/containsActiveElement.ts').default","esPath":"@instructure/ui-dom-utils/es/containsActiveElement","themePath":"packages/ui-dom-utils/src/containsActiveElement.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/containsActiveElement.ts","id":"containsActiveElement","title":"containsActiveElement"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Determine if an element contains the active element\n * @module containsActiveElement\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @returns {boolean} if the element contains the active element\n */","meta":{"filename":"k0m53qk9lzau10slvne059.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nDetermine if an element contains the active element","kind":"module","name":"containsActiveElement","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"}],"returns":[{"type":{"names":["boolean"]},"description":"if the element contains the active element"}],"longname":"module:containsActiveElement","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/containsActiveElement.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/containsActiveElement.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/containsActiveElement.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/containsActiveElement","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/containsActiveElement.ts').default","esPath":"@instructure/ui-dom-utils/es/containsActiveElement","themePath":"packages/ui-dom-utils/src/containsActiveElement.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/containsActiveElement.ts","id":"containsActiveElement","title":"containsActiveElement"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/contrast.json b/pr-preview/pr-1863/docs/contrast.json index 63f67dd4c4..63bc45c906 100644 --- a/pr-preview/pr-1863/docs/contrast.json +++ b/pr-preview/pr-1863/docs/contrast.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * check the contrast ratio of 2 colors. Optionally number of decimal places can be added\n * @module contrast\n * @param {String} color1\n * @param {String} color2\n * @param {Number} decimalPlaces\n * @returns {Number} color contrast ratio\n */","meta":{"filename":"e8fl5dugeuttkzijgbgpfq.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"check the contrast ratio of 2 colors. Optionally number of decimal places can be added","kind":"module","name":"contrast","params":[{"type":{"names":["String"]},"name":"color1"},{"type":{"names":["String"]},"name":"color2"},{"type":{"names":["Number"]},"name":"decimalPlaces"}],"returns":[{"type":{"names":["Number"]},"description":"color contrast ratio"}],"longname":"module:contrast","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/contrast.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/contrast.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrast.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/contrast","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/contrast.ts').default","esPath":"@instructure/ui-color-utils/es/contrast","themePath":"packages/ui-color-utils/src/contrast.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrast.ts","id":"contrast","title":"contrast"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * check the contrast ratio of 2 colors. Optionally number of decimal places can be added\n * @module contrast\n * @param {String} color1\n * @param {String} color2\n * @param {Number} decimalPlaces\n * @returns {Number} color contrast ratio\n */","meta":{"filename":"r6g8zc0trl9c3zqoz2lst.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"check the contrast ratio of 2 colors. Optionally number of decimal places can be added","kind":"module","name":"contrast","params":[{"type":{"names":["String"]},"name":"color1"},{"type":{"names":["String"]},"name":"color2"},{"type":{"names":["Number"]},"name":"decimalPlaces"}],"returns":[{"type":{"names":["Number"]},"description":"color contrast ratio"}],"longname":"module:contrast","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/contrast.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/contrast.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrast.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/contrast","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/contrast.ts').default","esPath":"@instructure/ui-color-utils/es/contrast","themePath":"packages/ui-color-utils/src/contrast.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrast.ts","id":"contrast","title":"contrast"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/contrastWithAlpha.json b/pr-preview/pr-1863/docs/contrastWithAlpha.json index cd95c14596..15d2b6e6e6 100644 --- a/pr-preview/pr-1863/docs/contrastWithAlpha.json +++ b/pr-preview/pr-1863/docs/contrastWithAlpha.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Calculates two, not necesseraly opaque color's contrast on top of each other.\n * The method assumes that the bottom color is on top of a white background (only important if it isn't opaque)\n * @module contrastWithAlpha\n * @param {String} color1\n * @param {String} color2\n * @param {Number} decimalPlaces\n * @returns {Number} color contrast ratio\n */","meta":{"filename":"4zgkfrcyo8o3wn9yxwwutt.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Calculates two, not necesseraly opaque color's contrast on top of each other.\nThe method assumes that the bottom color is on top of a white background (only important if it isn't opaque)","kind":"module","name":"contrastWithAlpha","params":[{"type":{"names":["String"]},"name":"color1"},{"type":{"names":["String"]},"name":"color2"},{"type":{"names":["Number"]},"name":"decimalPlaces"}],"returns":[{"type":{"names":["Number"]},"description":"color contrast ratio"}],"longname":"module:contrastWithAlpha","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/contrastWithAlpha.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/contrastWithAlpha.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrastWithAlpha.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/contrastWithAlpha","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/contrastWithAlpha.ts').default","esPath":"@instructure/ui-color-utils/es/contrastWithAlpha","themePath":"packages/ui-color-utils/src/contrastWithAlpha.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrastWithAlpha.ts","id":"contrastWithAlpha","title":"contrastWithAlpha"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Calculates two, not necesseraly opaque color's contrast on top of each other.\n * The method assumes that the bottom color is on top of a white background (only important if it isn't opaque)\n * @module contrastWithAlpha\n * @param {String} color1\n * @param {String} color2\n * @param {Number} decimalPlaces\n * @returns {Number} color contrast ratio\n */","meta":{"filename":"6js0dzph6xycis5jp2r106.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Calculates two, not necesseraly opaque color's contrast on top of each other.\nThe method assumes that the bottom color is on top of a white background (only important if it isn't opaque)","kind":"module","name":"contrastWithAlpha","params":[{"type":{"names":["String"]},"name":"color1"},{"type":{"names":["String"]},"name":"color2"},{"type":{"names":["Number"]},"name":"decimalPlaces"}],"returns":[{"type":{"names":["Number"]},"description":"color contrast ratio"}],"longname":"module:contrastWithAlpha","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/contrastWithAlpha.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/contrastWithAlpha.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrastWithAlpha.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/contrastWithAlpha","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/contrastWithAlpha.ts').default","esPath":"@instructure/ui-color-utils/es/contrastWithAlpha","themePath":"packages/ui-color-utils/src/contrastWithAlpha.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/contrastWithAlpha.ts","id":"contrastWithAlpha","title":"contrastWithAlpha"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/controllable.json b/pr-preview/pr-1863/docs/controllable.json index ead2d69389..35a6a40745 100644 --- a/pr-preview/pr-1863/docs/controllable.json +++ b/pr-preview/pr-1863/docs/controllable.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Ensure that a corresponding handler function is provided for the given prop if the\n * component does not manage its own state.\n *\n * ```js-code\n * import { controllable } from '@instructure/ui-prop-types'\n *\n * class Foo extends Component {\n * static propTypes = {\n * selected: controllable(PropTypes.bool, 'onSelect', 'defaultSelected'),\n * onSelect: PropTypes.func,\n * defaultSelected: PropTypes.bool\n * }\n * ...\n * ```\n *\n * This will throw an error if the 'selected' prop is supplied without a corresponding\n * 'onSelect' handler and will recommend using 'defaultSelected' instead.\n * @module controllable\n * @param {function} checkType - validates the prop type. Returns null if valid, error otherwise\n * @param {string} handlerName - name of the handler function\n * @param {string} defaultPropName - name of the default prop\n * @returns {function} A function that return Error if designated prop is\n * supplied without a corresponding handler function\n */","meta":{"filename":"ex9i4rsewpmeby9wp2dsm7.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Ensure that a corresponding handler function is provided for the given prop if the\ncomponent does not manage its own state.\n\n```js-code\n import { controllable } from '@instructure/ui-prop-types'\n\n class Foo extends Component {\n static propTypes = {\n selected: controllable(PropTypes.bool, 'onSelect', 'defaultSelected'),\n onSelect: PropTypes.func,\n defaultSelected: PropTypes.bool\n }\n ...\n```\n\nThis will throw an error if the 'selected' prop is supplied without a corresponding\n'onSelect' handler and will recommend using 'defaultSelected' instead.","kind":"module","name":"controllable","params":[{"type":{"names":["function"]},"description":"validates the prop type. Returns null if valid, error otherwise","name":"checkType"},{"type":{"names":["string"]},"description":"name of the handler function","name":"handlerName"},{"type":{"names":["string"]},"description":"name of the default prop","name":"defaultPropName"}],"returns":[{"type":{"names":["function"]},"description":"A function that return Error if designated prop is\nsupplied without a corresponding handler function"}],"longname":"module:controllable","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/controllable.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/controllable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/controllable.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/controllable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/controllable.ts').default","esPath":"@instructure/ui-prop-types/es/controllable","themePath":"packages/ui-prop-types/src/controllable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/controllable.ts","id":"controllable","title":"controllable"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Ensure that a corresponding handler function is provided for the given prop if the\n * component does not manage its own state.\n *\n * ```js-code\n * import { controllable } from '@instructure/ui-prop-types'\n *\n * class Foo extends Component {\n * static propTypes = {\n * selected: controllable(PropTypes.bool, 'onSelect', 'defaultSelected'),\n * onSelect: PropTypes.func,\n * defaultSelected: PropTypes.bool\n * }\n * ...\n * ```\n *\n * This will throw an error if the 'selected' prop is supplied without a corresponding\n * 'onSelect' handler and will recommend using 'defaultSelected' instead.\n * @module controllable\n * @param {function} checkType - validates the prop type. Returns null if valid, error otherwise\n * @param {string} handlerName - name of the handler function\n * @param {string} defaultPropName - name of the default prop\n * @returns {function} A function that return Error if designated prop is\n * supplied without a corresponding handler function\n */","meta":{"filename":"fknb3fp01cglikatwcvu.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Ensure that a corresponding handler function is provided for the given prop if the\ncomponent does not manage its own state.\n\n```js-code\n import { controllable } from '@instructure/ui-prop-types'\n\n class Foo extends Component {\n static propTypes = {\n selected: controllable(PropTypes.bool, 'onSelect', 'defaultSelected'),\n onSelect: PropTypes.func,\n defaultSelected: PropTypes.bool\n }\n ...\n```\n\nThis will throw an error if the 'selected' prop is supplied without a corresponding\n'onSelect' handler and will recommend using 'defaultSelected' instead.","kind":"module","name":"controllable","params":[{"type":{"names":["function"]},"description":"validates the prop type. Returns null if valid, error otherwise","name":"checkType"},{"type":{"names":["string"]},"description":"name of the handler function","name":"handlerName"},{"type":{"names":["string"]},"description":"name of the default prop","name":"defaultPropName"}],"returns":[{"type":{"names":["function"]},"description":"A function that return Error if designated prop is\nsupplied without a corresponding handler function"}],"longname":"module:controllable","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/controllable.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/controllable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/controllable.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/controllable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/controllable.ts').default","esPath":"@instructure/ui-prop-types/es/controllable","themePath":"packages/ui-prop-types/src/controllable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/controllable.ts","id":"controllable","title":"controllable"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/conversions.json b/pr-preview/pr-1863/docs/conversions.json index 59d8522ea3..d7463c0577 100644 --- a/pr-preview/pr-1863/docs/conversions.json +++ b/pr-preview/pr-1863/docs/conversions.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Color conversion utilities to transform between `TinyColor` colors (https://github.com/bgrins/TinyColor)\n * @module conversions\n */","meta":{"filename":"fzvcmgxs4ahvfdbwbllk5.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Color conversion utilities to transform between `TinyColor` colors (https://github.com/bgrins/TinyColor)","kind":"module","name":"conversions","longname":"module:conversions","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/conversions.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/conversions.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/conversions.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/conversions","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/conversions.ts').default","esPath":"@instructure/ui-color-utils/es/conversions","themePath":"packages/ui-color-utils/src/conversions.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/conversions.ts","id":"conversions","title":"conversions"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Color conversion utilities to transform between `TinyColor` colors (https://github.com/bgrins/TinyColor)\n * @module conversions\n */","meta":{"filename":"z31ijasnkaziu36le8rc.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Color conversion utilities to transform between `TinyColor` colors (https://github.com/bgrins/TinyColor)","kind":"module","name":"conversions","longname":"module:conversions","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/conversions.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/conversions.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/conversions.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/conversions","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/conversions.ts').default","esPath":"@instructure/ui-color-utils/es/conversions","themePath":"packages/ui-color-utils/src/conversions.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/conversions.ts","id":"conversions","title":"conversions"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/createChainedFunction.json b/pr-preview/pr-1863/docs/createChainedFunction.json index 82d78795f2..f547439873 100644 --- a/pr-preview/pr-1863/docs/createChainedFunction.json +++ b/pr-preview/pr-1863/docs/createChainedFunction.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Safe chained functions\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * Forked from: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/createChainedFunction.js\n * @module createChainedFunction\n * @param {function} funcs to chain\n * @returns {function|null}\n */","meta":{"filename":"f1n4cshrlnp2g7x0v1qch8.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Safe chained functions\n\nWill only create a new function if needed,\notherwise will pass back existing functions or null.\n\nForked from: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/createChainedFunction.js","kind":"module","name":"createChainedFunction","params":[{"type":{"names":["function"]},"description":"to chain","name":"funcs"}],"returns":[{"type":{"names":["function","null"]}}],"longname":"module:createChainedFunction","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-utils/src/createChainedFunction.ts","extension":".ts","srcPath":"packages/ui-utils/src/createChainedFunction.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/createChainedFunction.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/createChainedFunction","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/createChainedFunction.ts').default","esPath":"@instructure/ui-utils/es/createChainedFunction","themePath":"packages/ui-utils/src/createChainedFunction.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/createChainedFunction.ts","id":"createChainedFunction","title":"createChainedFunction"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Safe chained functions\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n *\n * Forked from: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/createChainedFunction.js\n * @module createChainedFunction\n * @param {function} funcs to chain\n * @returns {function|null}\n */","meta":{"filename":"jy6ynhkarhac196fjh2fy4.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Safe chained functions\n\nWill only create a new function if needed,\notherwise will pass back existing functions or null.\n\nForked from: https://github.com/react-bootstrap/react-overlays/blob/master/src/utils/createChainedFunction.js","kind":"module","name":"createChainedFunction","params":[{"type":{"names":["function"]},"description":"to chain","name":"funcs"}],"returns":[{"type":{"names":["function","null"]}}],"longname":"module:createChainedFunction","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-utils/src/createChainedFunction.ts","extension":".ts","srcPath":"packages/ui-utils/src/createChainedFunction.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/createChainedFunction.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/createChainedFunction","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/createChainedFunction.ts').default","esPath":"@instructure/ui-utils/es/createChainedFunction","themePath":"packages/ui-utils/src/createChainedFunction.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/createChainedFunction.ts","id":"createChainedFunction","title":"createChainedFunction"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/cursor.json b/pr-preview/pr-1863/docs/cursor.json index 51dc07be01..0abe3c6b4a 100644 --- a/pr-preview/pr-1863/docs/cursor.json +++ b/pr-preview/pr-1863/docs/cursor.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that the given prop is a valid css `cursor` value.\n *\n * The list of possible cursor values is taken from\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor.\n *\n * Note that this does not currently support `url(...)` values.\n * @module cursor\n */","meta":{"filename":"mw2u44h88fa774nm7bnof.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that the given prop is a valid css `cursor` value.\n\nThe list of possible cursor values is taken from\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/cursor.\n\nNote that this does not currently support `url(...)` values.","kind":"module","name":"cursor","longname":"module:cursor","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/cursor.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/cursor.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/cursor.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/cursor","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/cursor.ts').default","esPath":"@instructure/ui-prop-types/es/cursor","themePath":"packages/ui-prop-types/src/cursor.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/cursor.ts","id":"cursor","title":"cursor"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that the given prop is a valid css `cursor` value.\n *\n * The list of possible cursor values is taken from\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor.\n *\n * Note that this does not currently support `url(...)` values.\n * @module cursor\n */","meta":{"filename":"rsl6ymbfx1gmnugcy4s53i.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that the given prop is a valid css `cursor` value.\n\nThe list of possible cursor values is taken from\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/cursor.\n\nNote that this does not currently support `url(...)` values.","kind":"module","name":"cursor","longname":"module:cursor","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/cursor.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/cursor.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/cursor.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/cursor","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/cursor.ts').default","esPath":"@instructure/ui-prop-types/es/cursor","themePath":"packages/ui-prop-types/src/cursor.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/cursor.ts","id":"cursor","title":"cursor"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/darken.json b/pr-preview/pr-1863/docs/darken.json index aa355f41fb..a821cbdd97 100644 --- a/pr-preview/pr-1863/docs/darken.json +++ b/pr-preview/pr-1863/docs/darken.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * darken a color\n * @module darken\n * @param {String} color\n * @param {Number} percent\n * @returns {String} color as rgb string\n */","meta":{"filename":"gdhmuf3hlvfb7iheyx3m1m.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"darken a color","kind":"module","name":"darken","params":[{"type":{"names":["String"]},"name":"color"},{"type":{"names":["Number"]},"name":"percent"}],"returns":[{"type":{"names":["String"]},"description":"color as rgb string"}],"longname":"module:darken","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/darken.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/darken.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/darken.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/darken","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/darken.ts').default","esPath":"@instructure/ui-color-utils/es/darken","themePath":"packages/ui-color-utils/src/darken.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/darken.ts","id":"darken","title":"darken"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * darken a color\n * @module darken\n * @param {String} color\n * @param {Number} percent\n * @returns {String} color as rgb string\n */","meta":{"filename":"dl0ah5989xl5nssgjicoi5.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"darken a color","kind":"module","name":"darken","params":[{"type":{"names":["String"]},"name":"color"},{"type":{"names":["Number"]},"name":"percent"}],"returns":[{"type":{"names":["String"]},"description":"color as rgb string"}],"longname":"module:darken","undocumented":false,"category":"utilities","relativePath":"packages/ui-color-utils/src/darken.ts","extension":".ts","srcPath":"packages/ui-color-utils/src/darken.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/darken.ts","packageName":"@instructure/ui-color-utils","requirePath":"@instructure/ui-color-utils/lib/darken","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-color-utils/src/darken.ts').default","esPath":"@instructure/ui-color-utils/es/darken","themePath":"packages/ui-color-utils/src/darken.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-color-utils/src/darken.ts","id":"darken","title":"darken"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/debounce.json b/pr-preview/pr-1863/docs/debounce.json index 3a531de4bb..dc16dadfff 100644 --- a/pr-preview/pr-1863/docs/debounce.json +++ b/pr-preview/pr-1863/docs/debounce.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\n * since the last time the debounced function was invoked. The debounced function comes with a cancel\n * method to cancel delayed func invocations and a flush method to immediately invoke them. Provide options\n * to indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout.\n * The func is invoked with the last arguments provided to the debounced function. Subsequent calls to the\n * debounced function return the result of the last func invocation.\n *\n * [lodash.debounce](https://github.com/lodash/lodash/blob/master/debounce.js)\n * doesn't work well with [sinon fakeTimers](http://sinonjs.org/releases/v1.17.7/fake-timers/)\n * so this is forked from the lodash source.\n *\n * Note: Modified from the original to check for cancelled boolean before invoking func to prevent React setState\n * on unmounted components.\n * For a cool explanation see https://css-tricks.com/debouncing-throttling-explained-examples/\n *\n * @module debounce\n *\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n */","meta":{"filename":"1vpmvcot0schhwd8fisxhg.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\nsince the last time the debounced function was invoked. The debounced function comes with a cancel\nmethod to cancel delayed func invocations and a flush method to immediately invoke them. Provide options\nto indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout.\nThe func is invoked with the last arguments provided to the debounced function. Subsequent calls to the\ndebounced function return the result of the last func invocation.\n\n[lodash.debounce](https://github.com/lodash/lodash/blob/master/debounce.js)\ndoesn't work well with [sinon fakeTimers](http://sinonjs.org/releases/v1.17.7/fake-timers/)\nso this is forked from the lodash source.\n\nNote: Modified from the original to check for cancelled boolean before invoking func to prevent React setState\non unmounted components.\nFor a cool explanation see https://css-tricks.com/debouncing-throttling-explained-examples/","kind":"module","name":"debounce","params":[{"type":{"names":["function"]},"description":"The function to debounce.","name":"func"},{"type":{"names":["number"]},"optional":true,"defaultvalue":0,"description":"The number of milliseconds to delay.","name":"wait"},{"type":{"names":["Object"]},"optional":true,"defaultvalue":"{}","description":"The options object.","name":"options"},{"type":{"names":["boolean"]},"optional":true,"defaultvalue":false,"description":"Specify invoking on the leading edge of the timeout.","name":"options.leading"},{"type":{"names":["number"]},"optional":true,"description":"The maximum time `func` is allowed to be delayed before it's invoked.","name":"options.maxWait"},{"type":{"names":["boolean"]},"optional":true,"defaultvalue":true,"description":"Specify invoking on the trailing edge of the timeout.","name":"options.trailing"}],"returns":[{"type":{"names":["function"]},"description":"Returns the new debounced function."}],"longname":"module:debounce","undocumented":false,"category":"utilities","relativePath":"packages/debounce/src/debounce.ts","extension":".ts","srcPath":"packages/debounce/src/debounce.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/debounce/src/debounce.ts","packageName":"@instructure/debounce","requirePath":"@instructure/debounce/lib/debounce","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/debounce/src/debounce.ts').default","esPath":"@instructure/debounce/es/debounce","themePath":"packages/debounce/src/debounce.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/debounce/src/debounce.ts","id":"debounce","title":"debounce"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\n * since the last time the debounced function was invoked. The debounced function comes with a cancel\n * method to cancel delayed func invocations and a flush method to immediately invoke them. Provide options\n * to indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout.\n * The func is invoked with the last arguments provided to the debounced function. Subsequent calls to the\n * debounced function return the result of the last func invocation.\n *\n * [lodash.debounce](https://github.com/lodash/lodash/blob/master/debounce.js)\n * doesn't work well with [sinon fakeTimers](http://sinonjs.org/releases/v1.17.7/fake-timers/)\n * so this is forked from the lodash source.\n *\n * Note: Modified from the original to check for cancelled boolean before invoking func to prevent React setState\n * on unmounted components.\n * For a cool explanation see https://css-tricks.com/debouncing-throttling-explained-examples/\n *\n * @module debounce\n *\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n */","meta":{"filename":"z6e1pj13afeaj81x65wsbt.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Creates a debounced function that delays invoking func until after wait milliseconds have elapsed\nsince the last time the debounced function was invoked. The debounced function comes with a cancel\nmethod to cancel delayed func invocations and a flush method to immediately invoke them. Provide options\nto indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout.\nThe func is invoked with the last arguments provided to the debounced function. Subsequent calls to the\ndebounced function return the result of the last func invocation.\n\n[lodash.debounce](https://github.com/lodash/lodash/blob/master/debounce.js)\ndoesn't work well with [sinon fakeTimers](http://sinonjs.org/releases/v1.17.7/fake-timers/)\nso this is forked from the lodash source.\n\nNote: Modified from the original to check for cancelled boolean before invoking func to prevent React setState\non unmounted components.\nFor a cool explanation see https://css-tricks.com/debouncing-throttling-explained-examples/","kind":"module","name":"debounce","params":[{"type":{"names":["function"]},"description":"The function to debounce.","name":"func"},{"type":{"names":["number"]},"optional":true,"defaultvalue":0,"description":"The number of milliseconds to delay.","name":"wait"},{"type":{"names":["Object"]},"optional":true,"defaultvalue":"{}","description":"The options object.","name":"options"},{"type":{"names":["boolean"]},"optional":true,"defaultvalue":false,"description":"Specify invoking on the leading edge of the timeout.","name":"options.leading"},{"type":{"names":["number"]},"optional":true,"description":"The maximum time `func` is allowed to be delayed before it's invoked.","name":"options.maxWait"},{"type":{"names":["boolean"]},"optional":true,"defaultvalue":true,"description":"Specify invoking on the trailing edge of the timeout.","name":"options.trailing"}],"returns":[{"type":{"names":["function"]},"description":"Returns the new debounced function."}],"longname":"module:debounce","undocumented":false,"category":"utilities","relativePath":"packages/debounce/src/debounce.ts","extension":".ts","srcPath":"packages/debounce/src/debounce.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/debounce/src/debounce.ts","packageName":"@instructure/debounce","requirePath":"@instructure/debounce/lib/debounce","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/debounce/src/debounce.ts').default","esPath":"@instructure/debounce/es/debounce","themePath":"packages/debounce/src/debounce.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/debounce/src/debounce.ts","id":"debounce","title":"debounce"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/decorator.json b/pr-preview/pr-1863/docs/decorator.json index 95a40c2457..71a606d16c 100644 --- a/pr-preview/pr-1863/docs/decorator.json +++ b/pr-preview/pr-1863/docs/decorator.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Wraps (decorates) a React component to add additional functionality\n *\n * @module decorator\n * @param {Function} decorate a function that returns a decorated component\n * @returns {Class} A decorated component class\n */","meta":{"filename":"27hk6xbee6zoiwk69379c.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Wraps (decorates) a React component to add additional functionality","kind":"module","name":"decorator","params":[{"type":{"names":["function"]},"description":"a function that returns a decorated component","name":"decorate"}],"returns":[{"type":{"names":["Class"]},"description":"A decorated component class"}],"longname":"module:decorator","undocumented":false,"category":"utilities","relativePath":"packages/ui-decorator/src/decorator.ts","extension":".ts","srcPath":"packages/ui-decorator/src/decorator.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-decorator/src/decorator.ts","packageName":"@instructure/ui-decorator","requirePath":"@instructure/ui-decorator/lib/decorator","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-decorator/src/decorator.ts').default","esPath":"@instructure/ui-decorator/es/decorator","themePath":"packages/ui-decorator/src/decorator.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-decorator/src/decorator.ts","id":"decorator","title":"decorator"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * Wraps (decorates) a React component to add additional functionality\n *\n * @module decorator\n * @param {Function} decorate a function that returns a decorated component\n * @returns {Class} A decorated component class\n */","meta":{"filename":"7lakm58n6bnr6pufl2z8bc.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Wraps (decorates) a React component to add additional functionality","kind":"module","name":"decorator","params":[{"type":{"names":["function"]},"description":"a function that returns a decorated component","name":"decorate"}],"returns":[{"type":{"names":["Class"]},"description":"A decorated component class"}],"longname":"module:decorator","undocumented":false,"category":"utilities","relativePath":"packages/ui-decorator/src/decorator.ts","extension":".ts","srcPath":"packages/ui-decorator/src/decorator.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-decorator/src/decorator.ts","packageName":"@instructure/ui-decorator","requirePath":"@instructure/ui-decorator/lib/decorator","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-decorator/src/decorator.ts').default","esPath":"@instructure/ui-decorator/es/decorator","themePath":"packages/ui-decorator/src/decorator.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-decorator/src/decorator.ts","id":"decorator","title":"decorator"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/deepEqual.json b/pr-preview/pr-1863/docs/deepEqual.json index 64a512873e..683d424791 100644 --- a/pr-preview/pr-1863/docs/deepEqual.json +++ b/pr-preview/pr-1863/docs/deepEqual.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * A wrapper for [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal)\n * @module deepEqual\n */","meta":{"filename":"qpsb84bv0qh77j2hivy6og.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"A wrapper for [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal)","kind":"module","name":"deepEqual","longname":"module:deepEqual","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/deepEqual.ts","extension":".ts","srcPath":"packages/ui-utils/src/deepEqual.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/deepEqual.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/deepEqual","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/deepEqual.ts').default","esPath":"@instructure/ui-utils/es/deepEqual","themePath":"packages/ui-utils/src/deepEqual.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/deepEqual.ts","id":"deepEqual","title":"deepEqual"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * A wrapper for [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal)\n * @module deepEqual\n */","meta":{"filename":"eqqdq3vb5tp4kytcz2rgnx.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"A wrapper for [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal)","kind":"module","name":"deepEqual","longname":"module:deepEqual","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/deepEqual.ts","extension":".ts","srcPath":"packages/ui-utils/src/deepEqual.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/deepEqual.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/deepEqual","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/deepEqual.ts').default","esPath":"@instructure/ui-utils/es/deepEqual","themePath":"packages/ui-utils/src/deepEqual.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/deepEqual.ts","id":"deepEqual","title":"deepEqual"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/deprecated.json b/pr-preview/pr-1863/docs/deprecated.json index f935b5c99f..68eb0c0b33 100644 --- a/pr-preview/pr-1863/docs/deprecated.json +++ b/pr-preview/pr-1863/docs/deprecated.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Deprecate React component props. Warnings will display in the console when deprecated\n * props are used. Include the version number when the deprecated component will be removed.\n *\n * ```js-code\n * class Example extends Component {\n * static propTypes = {\n * currentProp: PropTypes.func\n * }\n * }\n * export default deprecated('7.0.0', {\n * deprecatedProp: 'currentProp',\n * nowNonExistentProp: true\n * })(Example)\n * ```\n *\n * @param {string} version\n * @param {object} oldProps (if this argument is null or undefined, the entire component is deprecated)\n * @param {string} message\n * @return {function} React component with deprecated props behavior\n * @module deprecated\n */","meta":{"filename":"nqp08unshusz01v1161w69.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Deprecate React component props. Warnings will display in the console when deprecated\nprops are used. Include the version number when the deprecated component will be removed.\n\n```js-code\n class Example extends Component {\n static propTypes = {\n currentProp: PropTypes.func\n }\n }\n export default deprecated('7.0.0', {\n deprecatedProp: 'currentProp',\n nowNonExistentProp: true\n })(Example)\n```","params":[{"type":{"names":["string"]},"name":"version"},{"type":{"names":["object"]},"description":"(if this argument is null or undefined, the entire component is deprecated)","name":"oldProps"},{"type":{"names":["string"]},"name":"message"}],"returns":[{"type":{"names":["function"]},"description":"React component with deprecated props behavior"}],"kind":"module","name":"deprecated","longname":"module:deprecated","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/deprecated.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/deprecated.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/deprecated.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/deprecated","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/deprecated.ts').default","esPath":"@instructure/ui-react-utils/es/deprecated","themePath":"packages/ui-react-utils/src/deprecated.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/deprecated.ts","id":"deprecated","title":"deprecated"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Deprecate React component props. Warnings will display in the console when deprecated\n * props are used. Include the version number when the deprecated component will be removed.\n *\n * ```js-code\n * class Example extends Component {\n * static propTypes = {\n * currentProp: PropTypes.func\n * }\n * }\n * export default deprecated('7.0.0', {\n * deprecatedProp: 'currentProp',\n * nowNonExistentProp: true\n * })(Example)\n * ```\n *\n * @param {string} version\n * @param {object} oldProps (if this argument is null or undefined, the entire component is deprecated)\n * @param {string} message\n * @return {function} React component with deprecated props behavior\n * @module deprecated\n */","meta":{"filename":"l95f2i9kw3gdq5zl4g64.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Deprecate React component props. Warnings will display in the console when deprecated\nprops are used. Include the version number when the deprecated component will be removed.\n\n```js-code\n class Example extends Component {\n static propTypes = {\n currentProp: PropTypes.func\n }\n }\n export default deprecated('7.0.0', {\n deprecatedProp: 'currentProp',\n nowNonExistentProp: true\n })(Example)\n```","params":[{"type":{"names":["string"]},"name":"version"},{"type":{"names":["object"]},"description":"(if this argument is null or undefined, the entire component is deprecated)","name":"oldProps"},{"type":{"names":["string"]},"name":"message"}],"returns":[{"type":{"names":["function"]},"description":"React component with deprecated props behavior"}],"kind":"module","name":"deprecated","longname":"module:deprecated","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/deprecated.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/deprecated.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/deprecated.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/deprecated","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/deprecated.ts').default","esPath":"@instructure/ui-react-utils/es/deprecated","themePath":"packages/ui-react-utils/src/deprecated.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/deprecated.ts","id":"deprecated","title":"deprecated"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/element.json b/pr-preview/pr-1863/docs/element.json index 4f35c98a5e..33a6b72cd0 100644 --- a/pr-preview/pr-1863/docs/element.json +++ b/pr-preview/pr-1863/docs/element.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that the given prop is a valid React element. If the DOM is accessible,\n * also verify if the prop is an instance of `Element`.\n * @module element\n */","meta":{"filename":"vtppxgvrwg2qqj2kinnhk.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that the given prop is a valid React element. If the DOM is accessible,\nalso verify if the prop is an instance of `Element`.","kind":"module","name":"element","longname":"module:element","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/element.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/element.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/element.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/element","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/element.ts').default","esPath":"@instructure/ui-prop-types/es/element","themePath":"packages/ui-prop-types/src/element.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/element.ts","id":"element","title":"element"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/PropTypes\n * ---\n * Verify that the given prop is a valid React element. If the DOM is accessible,\n * also verify if the prop is an instance of `Element`.\n * @module element\n */","meta":{"filename":"l8onjv5silc0b8lmd1w1d.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Verify that the given prop is a valid React element. If the DOM is accessible,\nalso verify if the prop is an instance of `Element`.","kind":"module","name":"element","longname":"module:element","undocumented":false,"category":"utilities/PropTypes","relativePath":"packages/ui-prop-types/src/element.ts","extension":".ts","srcPath":"packages/ui-prop-types/src/element.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/element.ts","packageName":"@instructure/ui-prop-types","requirePath":"@instructure/ui-prop-types/lib/element","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-prop-types/src/element.ts').default","esPath":"@instructure/ui-prop-types/es/element","themePath":"packages/ui-prop-types/src/element.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-prop-types/src/element.ts","id":"element","title":"element"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/ensureSingleChild.json b/pr-preview/pr-1863/docs/ensureSingleChild.json index f10f2e564d..a61d5e2c74 100644 --- a/pr-preview/pr-1863/docs/ensureSingleChild.json +++ b/pr-preview/pr-1863/docs/ensureSingleChild.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n *\n * Ensure a single child. If it is a child of length 1, return a\n * cloned instance of the child. If it is a child of length > 1,\n * wrap in a span and return the child. Return null if child has\n * no length.\n * @module ensureSingleChild\n * @param {ReactNode} child\n * @param {Object} props - props for child\n * @returns {ReactElement|null} cloned instance for a single child, or children wrapped in a span\n */","meta":{"filename":"hhtigkc4ma4cgqbw8hv30b.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nEnsure a single child. If it is a child of length 1, return a\ncloned instance of the child. If it is a child of length > 1,\nwrap in a span and return the child. Return null if child has\nno length.","kind":"module","name":"ensureSingleChild","params":[{"type":{"names":["ReactNode"]},"name":"child"},{"type":{"names":["Object"]},"description":"props for child","name":"props"}],"returns":[{"type":{"names":["ReactElement","null"]},"description":"cloned instance for a single child, or children wrapped in a span"}],"longname":"module:ensureSingleChild","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/ensureSingleChild.tsx","extension":".tsx","srcPath":"packages/ui-react-utils/src/ensureSingleChild.tsx","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/ensureSingleChild.tsx","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/ensureSingleChild","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/ensureSingleChild.tsx').default","esPath":"@instructure/ui-react-utils/es/ensureSingleChild","themePath":"packages/ui-react-utils/src/ensureSingleChild.tsx","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/ensureSingleChild.tsx","id":"ensureSingleChild","title":"ensureSingleChild"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n *\n * Ensure a single child. If it is a child of length 1, return a\n * cloned instance of the child. If it is a child of length > 1,\n * wrap in a span and return the child. Return null if child has\n * no length.\n * @module ensureSingleChild\n * @param {ReactNode} child\n * @param {Object} props - props for child\n * @returns {ReactElement|null} cloned instance for a single child, or children wrapped in a span\n */","meta":{"filename":"f1rktkhs8blsudbs2bnrkh.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nEnsure a single child. If it is a child of length 1, return a\ncloned instance of the child. If it is a child of length > 1,\nwrap in a span and return the child. Return null if child has\nno length.","kind":"module","name":"ensureSingleChild","params":[{"type":{"names":["ReactNode"]},"name":"child"},{"type":{"names":["Object"]},"description":"props for child","name":"props"}],"returns":[{"type":{"names":["ReactElement","null"]},"description":"cloned instance for a single child, or children wrapped in a span"}],"longname":"module:ensureSingleChild","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/ensureSingleChild.tsx","extension":".tsx","srcPath":"packages/ui-react-utils/src/ensureSingleChild.tsx","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/ensureSingleChild.tsx","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/ensureSingleChild","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/ensureSingleChild.tsx').default","esPath":"@instructure/ui-react-utils/es/ensureSingleChild","themePath":"packages/ui-react-utils/src/ensureSingleChild.tsx","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/ensureSingleChild.tsx","id":"ensureSingleChild","title":"ensureSingleChild"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/experimental.json b/pr-preview/pr-1863/docs/experimental.json index 6d4a5f8cf1..5820909561 100644 --- a/pr-preview/pr-1863/docs/experimental.json +++ b/pr-preview/pr-1863/docs/experimental.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Flag React component and component props as experimental.\n * Warnings will display in the console when experimental components/props\n * props are used.\n *\n * ```js-code\n * class Example extends Component {\n * static propTypes = {\n * currentProp: PropTypes.func\n * }\n * }\n * export default experimental(['experimentalProp'])(Example)\n * ```\n *\n * @module experimental\n * @param {array} experimentalProps (if this argument is null or undefined, the entire component is flagged)\n * @param {string} message\n * @return {function} React component flagged as experimental\n */","meta":{"filename":"ieyela0da7hw9ti43o9eqj.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Flag React component and component props as experimental.\nWarnings will display in the console when experimental components/props\nprops are used.\n\n```js-code\n class Example extends Component {\n static propTypes = {\n currentProp: PropTypes.func\n }\n }\n export default experimental(['experimentalProp'])(Example)\n```","kind":"module","name":"experimental","params":[{"type":{"names":["array"]},"description":"(if this argument is null or undefined, the entire component is flagged)","name":"experimentalProps"},{"type":{"names":["string"]},"name":"message"}],"returns":[{"type":{"names":["function"]},"description":"React component flagged as experimental"}],"longname":"module:experimental","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/experimental.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/experimental.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/experimental.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/experimental","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/experimental.ts').default","esPath":"@instructure/ui-react-utils/es/experimental","themePath":"packages/ui-react-utils/src/experimental.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/experimental.ts","id":"experimental","title":"experimental"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Flag React component and component props as experimental.\n * Warnings will display in the console when experimental components/props\n * props are used.\n *\n * ```js-code\n * class Example extends Component {\n * static propTypes = {\n * currentProp: PropTypes.func\n * }\n * }\n * export default experimental(['experimentalProp'])(Example)\n * ```\n *\n * @module experimental\n * @param {array} experimentalProps (if this argument is null or undefined, the entire component is flagged)\n * @param {string} message\n * @return {function} React component flagged as experimental\n */","meta":{"filename":"qgzhmkehpa8bnzkqis255.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Flag React component and component props as experimental.\nWarnings will display in the console when experimental components/props\nprops are used.\n\n```js-code\n class Example extends Component {\n static propTypes = {\n currentProp: PropTypes.func\n }\n }\n export default experimental(['experimentalProp'])(Example)\n```","kind":"module","name":"experimental","params":[{"type":{"names":["array"]},"description":"(if this argument is null or undefined, the entire component is flagged)","name":"experimentalProps"},{"type":{"names":["string"]},"name":"message"}],"returns":[{"type":{"names":["function"]},"description":"React component flagged as experimental"}],"longname":"module:experimental","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/experimental.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/experimental.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/experimental.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/experimental","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/experimental.ts').default","esPath":"@instructure/ui-react-utils/es/experimental","themePath":"packages/ui-react-utils/src/experimental.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/experimental.ts","id":"experimental","title":"experimental"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/findDOMNode.json b/pr-preview/pr-1863/docs/findDOMNode.json index 94f161389a..94185e144b 100644 --- a/pr-preview/pr-1863/docs/findDOMNode.json +++ b/pr-preview/pr-1863/docs/findDOMNode.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Wrapper function for React.findDOMNode\n * @module findDOMNode\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component, DOM node, or function returning a DOM node\n * @returns { Node | Window | null | undefined } The root node of this element\n */","meta":{"filename":"h45goe8xowclppgqpepp3r.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nWrapper function for React.findDOMNode","kind":"module","name":"findDOMNode","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component, DOM node, or function returning a DOM node","name":"el"}],"returns":[{"type":{"names":["Node","Window","null","undefined"]},"description":"The root node of this element"}],"longname":"module:findDOMNode","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/findDOMNode.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findDOMNode.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findDOMNode.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findDOMNode","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findDOMNode.ts').default","esPath":"@instructure/ui-dom-utils/es/findDOMNode","themePath":"packages/ui-dom-utils/src/findDOMNode.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findDOMNode.ts","id":"findDOMNode","title":"findDOMNode"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Wrapper function for React.findDOMNode\n * @module findDOMNode\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component, DOM node, or function returning a DOM node\n * @returns { Node | Window | null | undefined } The root node of this element\n */","meta":{"filename":"4r45mb3lr69nwj6c6ek1x.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nWrapper function for React.findDOMNode","kind":"module","name":"findDOMNode","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component, DOM node, or function returning a DOM node","name":"el"}],"returns":[{"type":{"names":["Node","Window","null","undefined"]},"description":"The root node of this element"}],"longname":"module:findDOMNode","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/findDOMNode.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findDOMNode.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findDOMNode.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findDOMNode","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findDOMNode.ts').default","esPath":"@instructure/ui-dom-utils/es/findDOMNode","themePath":"packages/ui-dom-utils/src/findDOMNode.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findDOMNode.ts","id":"findDOMNode","title":"findDOMNode"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/findFocusable.json b/pr-preview/pr-1863/docs/findFocusable.json index 302f021219..c085d03968 100644 --- a/pr-preview/pr-1863/docs/findFocusable.json +++ b/pr-preview/pr-1863/docs/findFocusable.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Given an element, finds and returns all visible, focusable children.\n * Focusable elements include input, select, textarea, button, and object.\n * Anchor tags are also focusable if they include an href or\n * tabindex attribute (including tabindices less than zero).\n * @module findFocusable\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @param { function } filter - a function to filter the matching nodes\n * @param { boolean } shouldSearchRootNode - should the root node be included in the search\n * @returns { Array } array of all tabbable children\n */","meta":{"filename":"h1arzxntlce1me8jg2la82.js","lineno":13,"columnno":0,"path":"/tmp","code":{}},"description":"\nGiven an element, finds and returns all visible, focusable children.\nFocusable elements include input, select, textarea, button, and object.\nAnchor tags are also focusable if they include an href or\ntabindex attribute (including tabindices less than zero).","kind":"module","name":"findFocusable","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"},{"type":{"names":["function"]},"description":"a function to filter the matching nodes","name":"filter"},{"type":{"names":["boolean"]},"description":"should the root node be included in the search","name":"shouldSearchRootNode"}],"returns":[{"type":{"names":["Array"]},"description":"array of all tabbable children"}],"longname":"module:findFocusable","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-dom-utils/src/findFocusable.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findFocusable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findFocusable.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findFocusable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findFocusable.ts').default","esPath":"@instructure/ui-dom-utils/es/findFocusable","themePath":"packages/ui-dom-utils/src/findFocusable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findFocusable.ts","id":"findFocusable","title":"findFocusable"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Given an element, finds and returns all visible, focusable children.\n * Focusable elements include input, select, textarea, button, and object.\n * Anchor tags are also focusable if they include an href or\n * tabindex attribute (including tabindices less than zero).\n * @module findFocusable\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @param { function } filter - a function to filter the matching nodes\n * @param { boolean } shouldSearchRootNode - should the root node be included in the search\n * @returns { Array } array of all tabbable children\n */","meta":{"filename":"b3qqvcp3lvvmqmcnn0pqwa.js","lineno":13,"columnno":0,"path":"/tmp","code":{}},"description":"\nGiven an element, finds and returns all visible, focusable children.\nFocusable elements include input, select, textarea, button, and object.\nAnchor tags are also focusable if they include an href or\ntabindex attribute (including tabindices less than zero).","kind":"module","name":"findFocusable","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"},{"type":{"names":["function"]},"description":"a function to filter the matching nodes","name":"filter"},{"type":{"names":["boolean"]},"description":"should the root node be included in the search","name":"shouldSearchRootNode"}],"returns":[{"type":{"names":["Array"]},"description":"array of all tabbable children"}],"longname":"module:findFocusable","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-dom-utils/src/findFocusable.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findFocusable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findFocusable.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findFocusable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findFocusable.ts').default","esPath":"@instructure/ui-dom-utils/es/findFocusable","themePath":"packages/ui-dom-utils/src/findFocusable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findFocusable.ts","id":"findFocusable","title":"findFocusable"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/findTabbable.json b/pr-preview/pr-1863/docs/findTabbable.json index a9c34759ba..235d624b49 100644 --- a/pr-preview/pr-1863/docs/findTabbable.json +++ b/pr-preview/pr-1863/docs/findTabbable.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Given an element, finds and returns all visible, tabbable children.\n * Tabbable elements include input, select, textarea, button, and object.\n * Anchor tags are also tabbable if they include an href or zero or positive\n * tabindex attribute (to include elements with negative tabindex attributes,\n * use findFocusable).\n *\n * @module findTabbable\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @param { boolean } shouldSearchRootNode - should the root node be included in the search\n * @returns { Array } array of all tabbable children\n */","meta":{"filename":"nzo60s976lsx2sagol7ll8.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGiven an element, finds and returns all visible, tabbable children.\nTabbable elements include input, select, textarea, button, and object.\nAnchor tags are also tabbable if they include an href or zero or positive\ntabindex attribute (to include elements with negative tabindex attributes,\nuse findFocusable).","kind":"module","name":"findTabbable","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"},{"type":{"names":["boolean"]},"description":"should the root node be included in the search","name":"shouldSearchRootNode"}],"returns":[{"type":{"names":["Array"]},"description":"array of all tabbable children"}],"longname":"module:findTabbable","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-dom-utils/src/findTabbable.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findTabbable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findTabbable.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findTabbable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findTabbable.ts').default","esPath":"@instructure/ui-dom-utils/es/findTabbable","themePath":"packages/ui-dom-utils/src/findTabbable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findTabbable.ts","id":"findTabbable","title":"findTabbable"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/a11y\n * ---\n *\n * Given an element, finds and returns all visible, tabbable children.\n * Tabbable elements include input, select, textarea, button, and object.\n * Anchor tags are also tabbable if they include an href or zero or positive\n * tabindex attribute (to include elements with negative tabindex attributes,\n * use findFocusable).\n *\n * @module findTabbable\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component or DOM node\n * @param { boolean } shouldSearchRootNode - should the root node be included in the search\n * @returns { Array } array of all tabbable children\n */","meta":{"filename":"0p8s30p5dv6h1o4h7zqceuu.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGiven an element, finds and returns all visible, tabbable children.\nTabbable elements include input, select, textarea, button, and object.\nAnchor tags are also tabbable if they include an href or zero or positive\ntabindex attribute (to include elements with negative tabindex attributes,\nuse findFocusable).","kind":"module","name":"findTabbable","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component or DOM node","name":"el"},{"type":{"names":["boolean"]},"description":"should the root node be included in the search","name":"shouldSearchRootNode"}],"returns":[{"type":{"names":["Array"]},"description":"array of all tabbable children"}],"longname":"module:findTabbable","undocumented":false,"category":"utilities/a11y","relativePath":"packages/ui-dom-utils/src/findTabbable.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/findTabbable.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findTabbable.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/findTabbable","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/findTabbable.ts').default","esPath":"@instructure/ui-dom-utils/es/findTabbable","themePath":"packages/ui-dom-utils/src/findTabbable.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/findTabbable.ts","id":"findTabbable","title":"findTabbable"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getActiveElement.json b/pr-preview/pr-1863/docs/getActiveElement.json index f3c7d4c329..8e6558f8e8 100644 --- a/pr-preview/pr-1863/docs/getActiveElement.json +++ b/pr-preview/pr-1863/docs/getActiveElement.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Get the active element of the specified document\n * @module getActiveElement\n * @param { Document } doc - document by default or user specified doc\n * @return { Element | null } the active element\n */","meta":{"filename":"4m0ixzwrbg2i7psxrnyzjm.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGet the active element of the specified document","kind":"module","name":"getActiveElement","params":[{"type":{"names":["Document"]},"description":"document by default or user specified doc","name":"doc"}],"returns":[{"type":{"names":["Element","null"]},"description":"the active element"}],"longname":"module:getActiveElement","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getActiveElement.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getActiveElement.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getActiveElement.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getActiveElement","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getActiveElement.ts').default","esPath":"@instructure/ui-dom-utils/es/getActiveElement","themePath":"packages/ui-dom-utils/src/getActiveElement.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getActiveElement.ts","id":"getActiveElement","title":"getActiveElement"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Get the active element of the specified document\n * @module getActiveElement\n * @param { Document } doc - document by default or user specified doc\n * @return { Element | null } the active element\n */","meta":{"filename":"fumh743cyxq0n5eqm0w0frn.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGet the active element of the specified document","kind":"module","name":"getActiveElement","params":[{"type":{"names":["Document"]},"description":"document by default or user specified doc","name":"doc"}],"returns":[{"type":{"names":["Element","null"]},"description":"the active element"}],"longname":"module:getActiveElement","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getActiveElement.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getActiveElement.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getActiveElement.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getActiveElement","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getActiveElement.ts').default","esPath":"@instructure/ui-dom-utils/es/getActiveElement","themePath":"packages/ui-dom-utils/src/getActiveElement.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getActiveElement.ts","id":"getActiveElement","title":"getActiveElement"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getBoundingClientRect.json b/pr-preview/pr-1863/docs/getBoundingClientRect.json index 714274612b..031b3fb2ac 100644 --- a/pr-preview/pr-1863/docs/getBoundingClientRect.json +++ b/pr-preview/pr-1863/docs/getBoundingClientRect.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Gets the bounding rectangle of an element\n * @module getBoundingClientRect\n *\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component, DOM node, or function returning a DOM node\n * @return {object} rect - object with top, left coords and height and width\n */","meta":{"filename":"9d2coc2lf3w3glf3ftzv36.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGets the bounding rectangle of an element","kind":"module","name":"getBoundingClientRect","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component, DOM node, or function returning a DOM node","name":"el"}],"returns":[{"type":{"names":["object"]},"description":"rect - object with top, left coords and height and width"}],"longname":"module:getBoundingClientRect","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getBoundingClientRect.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getBoundingClientRect","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getBoundingClientRect.ts').default","esPath":"@instructure/ui-dom-utils/es/getBoundingClientRect","themePath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getBoundingClientRect.ts","id":"getBoundingClientRect","title":"getBoundingClientRect"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Gets the bounding rectangle of an element\n * @module getBoundingClientRect\n *\n * @param { Node | Window | React.ReactElement | React.Component | function | null } el - component, DOM node, or function returning a DOM node\n * @return {object} rect - object with top, left coords and height and width\n */","meta":{"filename":"3n9djwkck24xrdn50pajqg.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGets the bounding rectangle of an element","kind":"module","name":"getBoundingClientRect","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function","null"]},"description":"component, DOM node, or function returning a DOM node","name":"el"}],"returns":[{"type":{"names":["object"]},"description":"rect - object with top, left coords and height and width"}],"longname":"module:getBoundingClientRect","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getBoundingClientRect.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getBoundingClientRect","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getBoundingClientRect.ts').default","esPath":"@instructure/ui-dom-utils/es/getBoundingClientRect","themePath":"packages/ui-dom-utils/src/getBoundingClientRect.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getBoundingClientRect.ts","id":"getBoundingClientRect","title":"getBoundingClientRect"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getBrowser.json b/pr-preview/pr-1863/docs/getBrowser.json index df981bc28d..67d3dedf9d 100644 --- a/pr-preview/pr-1863/docs/getBrowser.json +++ b/pr-preview/pr-1863/docs/getBrowser.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities\n * ---\n * A utility module using the [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) browser\n * detection library.\n *\n * @module getBrowser\n */","meta":{"filename":"moaauzu455mbei2z0e98u.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"A utility module using the [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) browser\ndetection library.","kind":"module","name":"getBrowser","longname":"module:getBrowser","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/getBrowser.ts","extension":".ts","srcPath":"packages/ui-utils/src/getBrowser.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/getBrowser.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/getBrowser","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/getBrowser.ts').default","esPath":"@instructure/ui-utils/es/getBrowser","themePath":"packages/ui-utils/src/getBrowser.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/getBrowser.ts","id":"getBrowser","title":"getBrowser"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities\n * ---\n * A utility module using the [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) browser\n * detection library.\n *\n * @module getBrowser\n */","meta":{"filename":"sfnfw72sup8i3jw0f4kxmd.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"A utility module using the [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) browser\ndetection library.","kind":"module","name":"getBrowser","longname":"module:getBrowser","undocumented":false,"category":"utilities","relativePath":"packages/ui-utils/src/getBrowser.ts","extension":".ts","srcPath":"packages/ui-utils/src/getBrowser.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/getBrowser.ts","packageName":"@instructure/ui-utils","requirePath":"@instructure/ui-utils/lib/getBrowser","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-utils/src/getBrowser.ts').default","esPath":"@instructure/ui-utils/es/getBrowser","themePath":"packages/ui-utils/src/getBrowser.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-utils/src/getBrowser.ts","id":"getBrowser","title":"getBrowser"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getClassList.json b/pr-preview/pr-1863/docs/getClassList.json index 7c92e9aa38..f02a51fc6d 100644 --- a/pr-preview/pr-1863/docs/getClassList.json +++ b/pr-preview/pr-1863/docs/getClassList.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Produces a classList object containing functions\n * for both adding and removing classes from an element.\n * Also provides a contains function to query if the\n * element contains a specified class name.\n * @module getClassList\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } element - component or DOM node\n * @return {Object} object containing classList functions 'contains', 'add', and 'remove'\n */","meta":{"filename":"lzy6yxtt0p1c99ulne99s.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nProduces a classList object containing functions\nfor both adding and removing classes from an element.\nAlso provides a contains function to query if the\nelement contains a specified class name.","kind":"module","name":"getClassList","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"element"}],"returns":[{"type":{"names":["Object"]},"description":"object containing classList functions 'contains', 'add', and 'remove'"}],"longname":"module:getClassList","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getClassList.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getClassList.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getClassList.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getClassList","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getClassList.ts').default","esPath":"@instructure/ui-dom-utils/es/getClassList","themePath":"packages/ui-dom-utils/src/getClassList.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getClassList.ts","id":"getClassList","title":"getClassList"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Produces a classList object containing functions\n * for both adding and removing classes from an element.\n * Also provides a contains function to query if the\n * element contains a specified class name.\n * @module getClassList\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } element - component or DOM node\n * @return {Object} object containing classList functions 'contains', 'add', and 'remove'\n */","meta":{"filename":"3cc6p89sikbjiuq2djn35d.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nProduces a classList object containing functions\nfor both adding and removing classes from an element.\nAlso provides a contains function to query if the\nelement contains a specified class name.","kind":"module","name":"getClassList","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"element"}],"returns":[{"type":{"names":["Object"]},"description":"object containing classList functions 'contains', 'add', and 'remove'"}],"longname":"module:getClassList","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getClassList.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getClassList.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getClassList.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getClassList","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getClassList.ts').default","esPath":"@instructure/ui-dom-utils/es/getClassList","themePath":"packages/ui-dom-utils/src/getClassList.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getClassList.ts","id":"getClassList","title":"getClassList"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getComputedStyle.json b/pr-preview/pr-1863/docs/getComputedStyle.json index 160d60c71b..4e79c2df59 100644 --- a/pr-preview/pr-1863/docs/getComputedStyle.json +++ b/pr-preview/pr-1863/docs/getComputedStyle.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Get the associated CSS properties and values for a\n * specified element\n * @module getComputedStyle\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node\n * @param { string | null | undefined } pseudoElt - A string specifying the pseudo-element to match. Omitted (or null ) for real elements.\n * @returns { Object } object containing css properties and values for the element\n */","meta":{"filename":"28o6n274pvci8lxrhou1kwu.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGet the associated CSS properties and values for a\nspecified element","kind":"module","name":"getComputedStyle","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"el"},{"type":{"names":["string","null","undefined"]},"description":"A string specifying the pseudo-element to match. Omitted (or null ) for real elements.","name":"pseudoElt"}],"returns":[{"type":{"names":["Object"]},"description":"object containing css properties and values for the element"}],"longname":"module:getComputedStyle","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getComputedStyle.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getComputedStyle.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getComputedStyle.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getComputedStyle","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getComputedStyle.ts').default","esPath":"@instructure/ui-dom-utils/es/getComputedStyle","themePath":"packages/ui-dom-utils/src/getComputedStyle.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getComputedStyle.ts","id":"getComputedStyle","title":"getComputedStyle"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/DOM\n * ---\n *\n * Get the associated CSS properties and values for a\n * specified element\n * @module getComputedStyle\n *\n * @param { Node | Window | React.ReactElement | React.Component | function } el - component or DOM node\n * @param { string | null | undefined } pseudoElt - A string specifying the pseudo-element to match. Omitted (or null ) for real elements.\n * @returns { Object } object containing css properties and values for the element\n */","meta":{"filename":"gjlz031tx3froo53wf6h3d.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"\nGet the associated CSS properties and values for a\nspecified element","kind":"module","name":"getComputedStyle","params":[{"type":{"names":["Node","Window","React.ReactElement","React.Component","function"]},"description":"component or DOM node","name":"el"},{"type":{"names":["string","null","undefined"]},"description":"A string specifying the pseudo-element to match. Omitted (or null ) for real elements.","name":"pseudoElt"}],"returns":[{"type":{"names":["Object"]},"description":"object containing css properties and values for the element"}],"longname":"module:getComputedStyle","undocumented":false,"category":"utilities/DOM","relativePath":"packages/ui-dom-utils/src/getComputedStyle.ts","extension":".ts","srcPath":"packages/ui-dom-utils/src/getComputedStyle.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getComputedStyle.ts","packageName":"@instructure/ui-dom-utils","requirePath":"@instructure/ui-dom-utils/lib/getComputedStyle","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-dom-utils/src/getComputedStyle.ts').default","esPath":"@instructure/ui-dom-utils/es/getComputedStyle","themePath":"packages/ui-dom-utils/src/getComputedStyle.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-dom-utils/src/getComputedStyle.ts","id":"getComputedStyle","title":"getComputedStyle"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getDisplayName.json b/pr-preview/pr-1863/docs/getDisplayName.json index cc082a79e1..49e90032a8 100644 --- a/pr-preview/pr-1863/docs/getDisplayName.json +++ b/pr-preview/pr-1863/docs/getDisplayName.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Get the displayName of a React component.\n * needs a babel plugin to work https://github.com/facebook/react/issues/4915 !!\n * @module getDisplayName\n * @param {ComponentType|String} ReactComponent\n * @returns {String} the component displayName\n */","meta":{"filename":"1uy7qvpnyz1owld1nf48r.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Get the displayName of a React component.\nneeds a babel plugin to work https://github.com/facebook/react/issues/4915 !!","kind":"module","name":"getDisplayName","params":[{"type":{"names":["ComponentType","String"]},"name":"ReactComponent"}],"returns":[{"type":{"names":["String"]},"description":"the component displayName"}],"longname":"module:getDisplayName","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/getDisplayName.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/getDisplayName.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/getDisplayName.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/getDisplayName","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/getDisplayName.ts').default","esPath":"@instructure/ui-react-utils/es/getDisplayName","themePath":"packages/ui-react-utils/src/getDisplayName.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/getDisplayName.ts","id":"getDisplayName","title":"getDisplayName"} \ No newline at end of file +{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Get the displayName of a React component.\n * needs a babel plugin to work https://github.com/facebook/react/issues/4915 !!\n * @module getDisplayName\n * @param {ComponentType|String} ReactComponent\n * @returns {String} the component displayName\n */","meta":{"filename":"kzxqgyrtjviuogp2mah3o.js","lineno":1,"columnno":0,"path":"/tmp","code":{}},"description":"Get the displayName of a React component.\nneeds a babel plugin to work https://github.com/facebook/react/issues/4915 !!","kind":"module","name":"getDisplayName","params":[{"type":{"names":["ComponentType","String"]},"name":"ReactComponent"}],"returns":[{"type":{"names":["String"]},"description":"the component displayName"}],"longname":"module:getDisplayName","undocumented":false,"category":"utilities/react","relativePath":"packages/ui-react-utils/src/getDisplayName.ts","extension":".ts","srcPath":"packages/ui-react-utils/src/getDisplayName.ts","srcUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/getDisplayName.ts","packageName":"@instructure/ui-react-utils","requirePath":"@instructure/ui-react-utils/lib/getDisplayName","requireStr":"require('/home/runner/work/instructure-ui/instructure-ui/packages/ui-react-utils/src/getDisplayName.ts').default","esPath":"@instructure/ui-react-utils/es/getDisplayName","themePath":"packages/ui-react-utils/src/getDisplayName.ts","themeUrl":"https://github.com/instructure/instructure-ui/tree/master/packages/ui-react-utils/src/getDisplayName.ts","id":"getDisplayName","title":"getDisplayName"} \ No newline at end of file diff --git a/pr-preview/pr-1863/docs/getElementType.json b/pr-preview/pr-1863/docs/getElementType.json index dc419a2bd7..040c1763ef 100644 --- a/pr-preview/pr-1863/docs/getElementType.json +++ b/pr-preview/pr-1863/docs/getElementType.json @@ -1 +1 @@ -{"comment":"/**\n * ---\n * category: utilities/react\n * ---\n * Get the React element type for a component. It uses the following logic:\n * 1. type defined by the `as` prop\n * 2. type returned by the `getDefault()` parameter\n * 3. `` if it has a `href` or `to` prop\n * 4. `