[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 59642 lines (1994 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__webpack_require__(moduleId) X-Ref |
No description |
getDefault() X-Ref |
No description |
getModuleExports() X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
_extends() X-Ref |
No description |
classNames() X-Ref |
No description |
_iterableToArrayLimit(arr, i) X-Ref |
No description |
_slicedToArray(arr, i) X-Ref |
No description |
_objectWithoutProperties(source, excluded) X-Ref |
No description |
_arrayWithoutHoles(arr) X-Ref |
No description |
_nonIterableSpread() X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
_assertThisInitialized(self) X-Ref |
No description |
_getPrototypeOf(o) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread2(target) X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_defineProperties(target, props) X-Ref |
No description |
_createClass(Constructor, protoProps, staticProps) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_createForOfIteratorHelper(o, allowArrayLike) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
Button(props, ref) X-Ref |
No description |
_iterableToArray(iter) X-Ref |
No description |
_arrayWithHoles(arr) X-Ref |
No description |
_nonIterableRest() X-Ref |
No description |
css_browser_esm_css() X-Ref |
No description |
InnerGlobal(props, context, updater) X-Ref |
No description |
merge(registered, css, className) X-Ref |
No description |
_typeof(obj) X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) X-Ref |
No description |
_asyncToGenerator(fn) X-Ref |
No description |
_next(value) X-Ref |
No description |
_throw(err) X-Ref |
No description |
_setPrototypeOf(o, p) X-Ref |
No description |
useLiveRef(value) X-Ref |
A `React.Ref` that keeps track of the passed `value`. |
getDocument(element) X-Ref |
Returns `element.ownerDocument || document`. |
renderAsRenderProps(_ref) X-Ref |
renderAsRenderProps is used to wrap a component and convert the passed property "as" either a string or component, to the rendered tag if a string, or component. See VisuallyHidden hidden for example. return: {JSX.Element} The rendered element. param: {Props<T>} props |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
VisuallyHidden(_ref) X-Ref |
VisuallyHidden component to render text out non-visually for use in devices such as a screen reader. return: {JSX.Element} Element param: {Props<T>} props |
useToken(token, defaultValue) X-Ref |
React custom hook that returns the value of any token defined in the SystemContext. It's mainly used internally in [`useOptions`](#useoptions) and [`useProps`](#useprops). |
useProps(name, options, htmlProps) X-Ref |
React custom hook that returns the props returned by a given `use${name}Props` in the SystemContext. |
useOptions(name, options, htmlProps) X-Ref |
React custom hook that returns the options returned by a given `use${name}Options` in the SystemContext. |
toArray(arg) X-Ref |
Transforms `arg` into an array if it's not already. |
createHook(options) X-Ref |
Creates a React custom hook that will return component props. param: options |
isPlainObject(arg) X-Ref |
Checks whether `arg` is a plain object or not. returns: {boolean} |
__deprecatedSplitProps(props, keys) X-Ref |
Splits an object (`props`) into a tuple where the first item is an object with the passed `keys`, and the second item is an object with these keys omitted. |
splitProps(props, keys) X-Ref |
Splits an object (`props`) into a tuple where the first item is the `state` property, and the second item is the rest of the properties. It is also backward compatible with version 1. If `keys` are passed then splits an object (`props`) into a tuple where the first item is an object with the passed `keys`, and the second item is an object with these keys omitted. |
normalizePropsAreEqual(propsAreEqual) X-Ref |
This higher order functions take `propsAreEqual` function and returns a new function which normalizes the props. Normalizing in our case is making sure the `propsAreEqual` works with both version 1 (object spreading) and version 2 (state object) state passing. To achieve this, the returned function in case of a state object will spread the state object in both `prev` and `next props. Other case it just returns the function as is which makes sure that we are still backward compatible |
forwardRef(component) X-Ref |
No description |
memo(component, propsAreEqual) X-Ref |
No description |
createComponent(_ref) X-Ref |
Creates a React component. param: options |
tinycolor(color, opts) X-Ref |
No description |
inputToRGB(color) X-Ref |
No description |
rgbToRgb(r, g, b) X-Ref |
No description |
rgbToHsl(r, g, b) X-Ref |
No description |
hslToRgb(h, s, l) X-Ref |
No description |
hue2rgb(p, q, t) X-Ref |
No description |
rgbToHsv(r, g, b) X-Ref |
No description |
hsvToRgb(h, s, v) X-Ref |
No description |
rgbToHex(r, g, b, allow3Char) X-Ref |
No description |
rgbaToHex(r, g, b, a, allow4Char) X-Ref |
No description |
rgbaToArgbHex(r, g, b, a) X-Ref |
No description |
desaturate(color, amount) X-Ref |
No description |
saturate(color, amount) X-Ref |
No description |
greyscale(color) X-Ref |
No description |
lighten(color, amount) X-Ref |
No description |
brighten(color, amount) X-Ref |
No description |
darken(color, amount) X-Ref |
No description |
spin(color, amount) X-Ref |
No description |
complement(color) X-Ref |
No description |
triad(color) X-Ref |
No description |
tetrad(color) X-Ref |
No description |
splitcomplement(color) X-Ref |
No description |
analogous(color, results, slices) X-Ref |
No description |
monochromatic(color, results) X-Ref |
No description |
flip(o) X-Ref |
No description |
boundAlpha(a) X-Ref |
No description |
bound01(n, max) X-Ref |
No description |
clamp01(val) X-Ref |
No description |
parseIntFromHex(val) X-Ref |
No description |
isOnePointZero(n) X-Ref |
No description |
isPercentage(n) X-Ref |
No description |
pad2(c) X-Ref |
No description |
convertToPercentage(n) X-Ref |
No description |
convertDecimalToHex(d) X-Ref |
No description |
convertHexToDecimal(h) X-Ref |
No description |
isValidCSSUnit(color) X-Ref |
No description |
stringInputToObject(color) X-Ref |
No description |
validateWCAG2Parms(parms) X-Ref |
No description |
findFirstEnabledItem(items, excludeId) X-Ref |
No description |
getCurrentId(options, passedId) X-Ref |
No description |
getActiveElement(element) X-Ref |
Returns `element.ownerDocument.activeElement`. |
isSelfTarget(event) X-Ref |
Returns `true` if `event.target` and `event.currentTarget` are the same. |
shallowEqual(objA, objB) X-Ref |
Compares two objects. |
mergeRefs(refs) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
Icon(_ref) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread2(target) X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
setRef(ref, value) X-Ref |
No description |
useForkRef(refA, refB) X-Ref |
Merges up to two React Refs into a single memoized function React Ref so you can pass it to an element. |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
Tooltip(_ref4) X-Ref |
No description |
isUA(string) X-Ref |
Checks if a given string exists in the user agent string. |
_defineProperty(obj, key, value) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread2(target) X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
generateRandomString(prefix) X-Ref |
No description |
unstable_IdProvider(_ref) X-Ref |
No description |
checkIsBrowser() X-Ref |
No description |
userFocus(element) X-Ref |
No description |
hasUserFocus(element) X-Ref |
No description |
setUserFocus(element, value) X-Ref |
No description |
hasFocusWithin(element) X-Ref |
Checks if `element` has focus within. Elements that are referenced by `aria-activedescendant` are also considered. |
isPortalEvent(event) X-Ref |
Returns `true` if `event` has been fired within a React Portal element. |
isButton(element) X-Ref |
Checks whether `element` is a native HTML button element. returns: {boolean} |
focusIfNeeded(element) X-Ref |
No description |
useFocusOnMouseDown() X-Ref |
No description |
isNativeTabbable(element) X-Ref |
No description |
supportsDisabledAttribute(element) X-Ref |
No description |
getTabIndex(trulyDisabled, nativeTabbable, supportsDisabled, htmlTabIndex) X-Ref |
No description |
useDisableEvent(htmlEventRef, disabled) X-Ref |
No description |
murmur2(str) X-Ref |
No description |
handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) X-Ref |
No description |
createStringFromObject(mergedProps, registered, obj) X-Ref |
No description |
getRegisteredStyles(registered, registeredStyles, classNames) X-Ref |
No description |
matches(element, selectors) X-Ref |
Ponyfill for `Element.prototype.matches` |
closest(element, selectors) X-Ref |
Ponyfill for `Element.prototype.closest` |
isVisible(element) X-Ref |
No description |
hasNegativeTabIndex(element) X-Ref |
No description |
isFocusable(element) X-Ref |
Checks whether `element` is focusable or not. |
isTabbable(element) X-Ref |
Checks whether `element` is tabbable or not. |
getAllFocusableIn(container) X-Ref |
Returns all the focusable elements in `container`. param: {Element} container returns: {Element[]} |
getFirstFocusableIn(container) X-Ref |
Returns the first focusable element in `container`. param: {Element} container returns: {Element|null} |
getAllTabbableIn(container, fallbackToFocusable) X-Ref |
Returns all the tabbable elements in `container`, including the container itself. param: {Element} container param: fallbackToFocusable If `true`, it'll return focusable elements if there are no tabbable ones. returns: {Element[]} |
getFirstTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the first tabbable element in `container`, including the container itself if it's tabbable. param: {Element} container param: fallbackToFocusable If `true`, it'll return the first focusable element if there are no tabbable ones. returns: {Element|null} |
getLastTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the last tabbable element in `container`, including the container itself if it's tabbable. param: {Element} container param: fallbackToFocusable If `true`, it'll return the last focusable element if there are no tabbable ones. returns: {Element|null} |
getNextTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the next tabbable element in `container`. param: {Element} container param: fallbackToFocusable If `true`, it'll return the next focusable element if there are no tabbable ones. returns: {Element|null} |
getPreviousTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the previous tabbable element in `container`. param: {Element} container param: fallbackToFocusable If `true`, it'll return the previous focusable element if there are no tabbable ones. returns: {Element|null} |
getClosestFocusable(element) X-Ref |
Returns the closest focusable element. param: {Element} container returns: {Element|null} |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
getDefaultOrigin(type) X-Ref |
return: {'top' | 'left'} Default origin param: {GetAnimateOptions['type']} type The animation type |
getAnimateClassName(options) X-Ref |
return: {string | void} ClassName that applies the animations param: {GetAnimateOptions} options |
Animate(_ref) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
getPhrasePropTypes(defaultPhrases) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
baseClass(pureComponent) X-Ref |
No description |
withStyles(styleFn) X-Ref |
No description |
getResolveMethod(direction) X-Ref |
No description |
getCurrentTheme(direction) X-Ref |
No description |
getStyleDef(direction, wrappedComponentName) X-Ref |
No description |
getState(direction, wrappedComponentName) X-Ref |
No description |
withStylesHOC(WrappedComponent) X-Ref |
No description |
WithStyles(props, context) X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentWillUnmount() X-Ref |
No description |
render() X-Ref |
No description |
isRefObject(ref) X-Ref |
No description |
useWarning(condition) X-Ref |
Logs `messages` to the console using `console.warn` based on a `condition`. This should be used inside components. |
getWindow(element) X-Ref |
Returns `element.ownerDocument.defaultView || window`. |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, stickyBoundaryElement, chosenYAxis, boundaryElement, forcePosition) X-Ref |
Utility used to compute the popover position over the xAxis return: {Object} Popover xAxis position and constraints. param: {Object} anchorRect Anchor Rect. param: {Object} contentSize Content Size. param: {string} xAxis Desired xAxis. param: {string} corner Desired corner. param: {boolean} stickyBoundaryElement The boundary element to use when param: {string} chosenYAxis yAxis to be used. param: {Element} boundaryElement Boundary element. param: {boolean} forcePosition Don't adjust position based on anchor. |
computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, stickyBoundaryElement, anchorRef, relativeOffsetTop, forcePosition) X-Ref |
Utility used to compute the popover position over the yAxis return: {Object} Popover xAxis position and constraints. param: {Object} anchorRect Anchor Rect. param: {Object} contentSize Content Size. param: {string} yAxis Desired yAxis. param: {string} corner Desired corner. param: {boolean} stickyBoundaryElement The boundary element to use when param: {Element} anchorRef The anchor element. param: {Element} relativeOffsetTop If applicable, top offset of the param: {boolean} forcePosition Don't adjust position based on anchor. |
computePopoverPosition(anchorRect, contentSize) X-Ref |
Utility used to compute the popover position and the content max width/height for a popover given its anchor rect and its content size. return: {Object} Popover position and constraints. param: {Object} anchorRect Anchor Rect. param: {Object} contentSize Content Size. param: {string} position Position. param: {boolean} stickyBoundaryElement The boundary element to use when param: {Element} anchorRef The anchor element. param: {number} relativeOffsetTop If applicable, top offset of the param: {Element} boundaryElement Boundary element. param: {boolean} forcePosition Don't adjust position based on anchor. |
offsetIframe(rect, ownerDocument) X-Ref |
No description |
computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) X-Ref |
No description |
getComputedStyle(node) X-Ref |
No description |
withoutPadding(rect, element) X-Ref |
No description |
setAttribute(element, name, value) X-Ref |
Sets or removes an element attribute. param: {Element} element The element to modify. param: {string} name The attribute name to set or remove. param: {?string} value The value to set. A falsy value will remove the |
setStyle(element, property) X-Ref |
Sets or removes an element style property. param: {Element} element The element to modify. param: {string} property The property to set or remove. param: {?string} value The value to set. A falsy value will remove the |
setClass(element, name, toggle) X-Ref |
Sets or removes an element class. param: {Element} element The element to modify. param: {string} name The class to set or remove. param: {boolean} toggle True to set the class, false to remove. |
getAnchorDocument(anchor) X-Ref |
No description |
handleOnFocusOutside(event) X-Ref |
Shims an onFocusOutside callback to be compatible with a deprecated onClickOutside prop function, if provided. param: {FocusEvent} event Focus event from onFocusOutside. |
_interopDefault(ex) X-Ref |
No description |
merge(target, lowercase) X-Ref |
No description |
useForceUpdate() X-Ref |
No description |
withDefault(value, defaultValue) X-Ref |
No description |
toArray(a) X-Ref |
No description |
callProp(obj) X-Ref |
No description |
getForwardProps(props) X-Ref |
No description |
interpolateTo(props) X-Ref |
No description |
handleRef(ref, forward) X-Ref |
No description |
Animated() X-Ref |
No description |
AnimatedArray() X-Ref |
No description |
AnimatedObject() X-Ref |
No description |
injectApplyAnimatedValues(fn, transform) X-Ref |
No description |
injectColorNames(names) X-Ref |
No description |
injectFrame(raf, caf) X-Ref |
No description |
injectStringInterpolator(fn) X-Ref |
No description |
injectNow(nowFn) X-Ref |
No description |
injectDefaultElement(el) X-Ref |
No description |
injectAnimatedApi(fn) X-Ref |
No description |
injectCreateAnimatedStyle(factory) X-Ref |
No description |
injectManualFrameloop(callback) X-Ref |
No description |
AnimatedProps(props, callback) X-Ref |
No description |
createInterpolator(range, output, extrapolate) X-Ref |
No description |
interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight, map) X-Ref |
No description |
findRange(input, inputRange) X-Ref |
No description |
AnimatedInterpolation(parents, range, output, extrapolate) X-Ref |
No description |
useChain(refs, timeSteps, timeFrame) X-Ref |
No description |
addAnimatedStyles(node, styles) X-Ref |
Animated works by building a directed acyclic graph of dependencies transparently when you render your Animated components. new Animated.Value(0) .interpolate() .interpolate() new Animated.Value(1) opacity translateY scale style transform View#234 style View#123 A) Top Down phase When an AnimatedValue is updated, we recursively go down through this graph in order to find leaf nodes: the views that we flag as needing an update. B) Bottom Up phase When a view is flagged as needing an update, we recursively go back up in order to build the new value that it needs. The reason why we need this two-phases process is to deal with composite props such as transform which can receive values from multiple parents. |
AnimatedValue(_value) X-Ref |
No description |
AnimatedValueArray(values) X-Ref |
No description |
Controller() X-Ref |
No description |
useTransition(input, keyTransform, config) X-Ref |
No description |
cleanUp(state, filterKey) X-Ref |
No description |
diffItems(_ref9, props) X-Ref |
No description |
AnimatedStyle(style) X-Ref |
No description |
call() X-Ref |
No description |
normalizeColor(color) X-Ref |
No description |
hue2rgb(p, q, t) X-Ref |
No description |
hslToRgb(h, s, l) X-Ref |
No description |
parse255(str) X-Ref |
No description |
parse360(str) X-Ref |
No description |
parse1(str) X-Ref |
No description |
parsePercentage(str) X-Ref |
No description |
colorToRgba(input) X-Ref |
No description |
dangerousStyleValue(name, value, isCustomProperty) X-Ref |
No description |
isRenderProp(children) X-Ref |
No description |
memoize(fn, options) X-Ref |
No description |
isPrimitive(value) X-Ref |
No description |
monadic(fn, cache, serializer, arg) X-Ref |
No description |
variadic(fn, cache, serializer) X-Ref |
No description |
assemble(fn, context, strategy, cache, serialize) X-Ref |
No description |
strategyDefault(fn, options) X-Ref |
No description |
strategyVariadic(fn, options) X-Ref |
No description |
strategyMonadic(fn, options) X-Ref |
No description |
serializerDefault() X-Ref |
No description |
ObjectWithoutPrototypeCache() X-Ref |
No description |
defaultSetTimout() X-Ref |
No description |
defaultClearTimeout() X-Ref |
No description |
runTimeout(fun) X-Ref |
No description |
runClearTimeout(marker) X-Ref |
No description |
cleanUpNextTick() X-Ref |
No description |
drainQueue() X-Ref |
No description |
Item(fun, array) X-Ref |
No description |
noop() X-Ref |
No description |
isObject(arg) X-Ref |
Checks whether `arg` is an object or not. returns: {boolean} |
_superPropBase(object, property) X-Ref |
No description |
get_get(target, property, receiver) X-Ref |
No description |
_createSuper(Derived) X-Ref |
No description |
_isNativeReflectConstruct() X-Ref |
No description |
SlotComponent() X-Ref |
No description |
fill_FillComponent(_ref) X-Ref |
No description |
bubbles_virtually_slot_Slot(_ref) X-Ref |
Internal dependencies |
useForceUpdate() X-Ref |
No description |
bubbles_virtually_fill_Fill(_ref) X-Ref |
No description |
slot_fill_Slot(_ref) X-Ref |
No description |
slot_fill_Fill(props) X-Ref |
No description |
createSlotFill(name) X-Ref |
No description |
_toPropertyKey(arg) X-Ref |
No description |
_toPrimitive(input, hint) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
useSlotRegistry() X-Ref |
No description |
slot_fill_provider_SlotFillProvider(_ref) X-Ref |
No description |
_createSuper(Derived) X-Ref |
No description |
_isNativeReflectConstruct() X-Ref |
No description |
SlotFillProvider() X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
ToolbarItem(_ref, ref) X-Ref |
No description |
createEvent(element, type, eventInit) X-Ref |
Creates an `Event` in a way that also works on IE 11. |
isNativeClick(event) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
Icon(_ref) X-Ref |
Return an SVG icon. return: {JSX.Element} Icon component param: {IconProps} props icon is the SVG component to render |
emptyFunction() X-Ref |
No description |
emptyFunctionWithReset() X-Ref |
No description |
shim(props, propName, componentName, location, propFullName, secret) X-Ref |
No description |
getShim() X-Ref |
No description |
isValid(value) X-Ref |
No description |
isValid(value) X-Ref |
No description |
isValid(value) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
is(x, y) X-Ref |
inlined Object.is polyfill to avoid requiring consumers ship their own https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is |
shallowEqual(objA, objB) X-Ref |
Performs equality by iterating through keys on an object and returning false when any key has values which are not strictly equal between the arguments. Returns true when the values of all keys are strictly equal. |
shallowCompare(instance, nextProps, nextState) X-Ref |
Does a shallow comparison for props and state. See ReactComponentWithPureRenderMixin See also https://facebook.github.io/react/docs/shallow-compare.html |
fireEvent(element, type, eventInit) X-Ref |
Creates and dispatches `Event` in a way that also works on IE 11. |
Dashicon(_ref) X-Ref |
return: {JSX.Element} Element param: {Props} props |
isTextField(element) X-Ref |
Check whether the given element is a text field, where text field is defined by the ability to select within the input, or that it is contenteditable. |
setTextFieldValue(element, value) X-Ref |
No description |
_inheritsLoose(subClass, superClass) X-Ref |
No description |
warning(condition) X-Ref |
Logs `messages` to the console using `console.warn` based on a `condition`. |
_interopRequireDefault(obj) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
modifiers(props, propName) X-Ref |
No description |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
useSlot(name) X-Ref |
Internal dependencies |
_createSuper(Derived) X-Ref |
No description |
_isNativeReflectConstruct() X-Ref |
No description |
createScrollLockComponent() X-Ref |
Creates a ScrollLock component bound to the specified document. This function creates a ScrollLock component for the specified document and is exposed so we can create an isolated component for unit testing. return: {WPComponent} The bound ScrollLock component. param: {Object} args Keyword args. param: {HTMLDocument} args.htmlDocument The document to lock the scroll for. param: {string} args.className The name of the class used to lock scrolling. |
setLocked(locked) X-Ref |
Locks and unlocks scroll depending on the boolean argument. param: {boolean} locked Whether or not scroll should be locked. |
requestLock() X-Ref |
Requests scroll lock. This function tracks requests for scroll lock. It locks scroll on the first request and counts each request so `releaseLock` can unlock scroll when all requests have been released. |
releaseLock() X-Ref |
Releases a request for scroll lock. This function tracks released requests for scroll lock. When all requests have been released, it unlocks scroll. |
ScrollLock() X-Ref |
No description |
useSpokenMessage(message, politeness) X-Ref |
Custom hook which announces the message with the given politeness, if a valid message is provided. param: {string|WPElement} [message] Message to announce. param: {'polite'|'assertive'} politeness Politeness to announce. |
Snackbar(_ref, ref) X-Ref |
No description |
dismissMe(event) X-Ref |
No description |
onActionClick(event, onClick) X-Ref |
No description |
hasFocus(element) X-Ref |
Checks if `element` has focus. Elements that are referenced by `aria-activedescendant` are also considered. |
ensureFocus(element, _temp) X-Ref |
Ensures `element` will receive focus if it's not already. returns: {number} `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed. |
contains(parent, child) X-Ref |
Similar to `Element.prototype.contains`, but a little bit faster when `element` is the same as `child`. |
memoize(fn) X-Ref |
No description |
_inheritsLoose(subClass, superClass) X-Ref |
No description |
sheetForTag(tag) X-Ref |
No description |
createStyleElement(options) X-Ref |
No description |
StyleSheet(options) X-Ref |
No description |
Shortcut(_ref) X-Ref |
External dependencies |
getWidget(itemElement) X-Ref |
No description |
useItem(options) X-Ref |
No description |
targetIsAnotherItem(event, items) X-Ref |
No description |
_extends() X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_assertThisInitialized(self) X-Ref |
No description |
scrollIntoView(elem, container, config) X-Ref |
No description |
getClientPosition(elem) X-Ref |
No description |
getScroll(w, top) X-Ref |
No description |
getScrollLeft(w) X-Ref |
No description |
getScrollTop(w) X-Ref |
No description |
getOffset(el) X-Ref |
No description |
_getComputedStyle(elem, name, computedStyle_) X-Ref |
No description |
_getComputedStyleIE(elem, name) X-Ref |
No description |
each(arr, fn) X-Ref |
No description |
isBorderBoxFn(elem) X-Ref |
No description |
swap(elem, options, callback) X-Ref |
No description |
getPBMWidth(elem, props, which) X-Ref |
No description |
isWindow(obj) X-Ref |
A crude way of determining if an object is a window |
getWH(elem, name, extra) X-Ref |
No description |
getWHIgnoreDisplay(elem) X-Ref |
No description |
css(el, name, v) X-Ref |
No description |
setOffset(elem, offset) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isSameDay(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toISOMonthString(date, currentFormat) X-Ref |
No description |
isObject(value) X-Ref |
Checks if `value` is the [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) param: {*} value The value to check. since: 0.1.0 returns: {boolean} Returns `true` if `value` is an object, else `false`. |
rng() X-Ref |
No description |
validate(uuid) X-Ref |
No description |
stringify(arr) X-Ref |
No description |
v4(options, buf, offset) X-Ref |
No description |
stylis_min(W) X-Ref |
No description |
M(d, c, e, h, a) X-Ref |
No description |
X(d, c, e) X-Ref |
No description |
Z(d, c, e) X-Ref |
No description |
P(d, c, e, h) X-Ref |
No description |
L(d, c) X-Ref |
No description |
ea(d, c) X-Ref |
No description |
H(d, c, e, h, a, m, b, v, n, q) X-Ref |
No description |
T(d) X-Ref |
No description |
U(d) X-Ref |
No description |
B(d, c) X-Ref |
No description |
toSheet(block) X-Ref |
No description |
error(msg) X-Ref |
No description |
getAST() X-Ref |
No description |
matchListDefinitions() X-Ref |
No description |
matchDefinition() X-Ref |
No description |
matchGradient(gradientType, pattern, orientationMatcher) X-Ref |
No description |
matchCall(pattern, callback) X-Ref |
No description |
matchLinearOrientation() X-Ref |
No description |
matchSideOrCorner() X-Ref |
No description |
matchAngle() X-Ref |
No description |
matchListRadialOrientations() X-Ref |
No description |
matchRadialOrientation() X-Ref |
No description |
matchCircle() X-Ref |
No description |
matchEllipse() X-Ref |
No description |
matchExtentKeyword() X-Ref |
No description |
matchAtPosition() X-Ref |
No description |
matchPositioning() X-Ref |
No description |
matchCoordinates() X-Ref |
No description |
matchListing(matcher) X-Ref |
No description |
matchColorStop() X-Ref |
No description |
matchColor() X-Ref |
No description |
matchLiteralColor() X-Ref |
No description |
matchHexColor() X-Ref |
No description |
matchRGBColor() X-Ref |
No description |
matchRGBAColor() X-Ref |
No description |
matchNumber() X-Ref |
No description |
matchDistance() X-Ref |
No description |
matchPositionKeyword() X-Ref |
No description |
matchLength() X-Ref |
No description |
match(type, pattern, captureIndex) X-Ref |
No description |
scan(regexp) X-Ref |
No description |
consume(size) X-Ref |
No description |
registerTheme(theme) X-Ref |
No description |
registerInterface(interfaceToRegister) X-Ref |
No description |
create(makeFromTheme, createWithDirection) X-Ref |
No description |
createLTR(makeFromTheme) X-Ref |
No description |
createRTL(makeFromTheme) X-Ref |
No description |
get() X-Ref |
No description |
resolve() X-Ref |
No description |
resolveLTR() X-Ref |
No description |
resolveRTL() X-Ref |
No description |
flush() X-Ref |
No description |
isTouchDevice() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isAfterDay(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isBeforeDay(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toMomentObject(dateString, customFormat) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isDayVisible(day, month, numberOfMonths, enableOutsideDays) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toISODateString(date, currentFormat) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
testPassiveEventListeners() X-Ref |
No description |
get() X-Ref |
No description |
canUsePassiveEventListeners() X-Ref |
No description |
normalizeEventOptions(eventOptions) X-Ref |
No description |
eventOptionsKey(normalizedEventOptions) X-Ref |
Generate a unique key for any set of event options |
ensureCanMutateNextEventHandlers(eventHandlers) X-Ref |
No description |
TargetEventHandlers(target) X-Ref |
No description |
getEventHandlers(eventName, options) X-Ref |
No description |
handleEvent(eventName, options, event) X-Ref |
No description |
add(eventName, listener, options) X-Ref |
No description |
unsubscribe() X-Ref |
No description |
addEventListener(target, eventName, listener, options) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
onDayClick() X-Ref |
No description |
onDayMouseEnter() X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
CalendarDay() X-Ref |
No description |
shouldComponentUpdate(nextProps, nextState) X-Ref |
No description |
componentDidUpdate(prevProps) X-Ref |
No description |
onDayClick(day, e) X-Ref |
No description |
onDayMouseEnter(day, e) X-Ref |
No description |
onDayMouseLeave(day, e) X-Ref |
No description |
onKeyDown(day, e) X-Ref |
No description |
setButtonRef(ref) X-Ref |
No description |
render() X-Ref |
No description |
onMouseEnter(e) X-Ref |
No description |
onMouseLeave(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
onClick(e) X-Ref |
No description |
onKeyDown(e) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrases) X-Ref |
No description |
calculateDimension(el, axis) X-Ref |
No description |
getCalendarMonthWidth(daySize, calendarMonthPadding) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isSameMonth(a, b) X-Ref |
No description |
transformValue(value) X-Ref |
Parses and transforms an incoming value to better match the alignment values return: {string} The parsed value. param: {string} value An alignment value to parse. |
utils_getItemId(prefixId, value) X-Ref |
Creates an item ID based on a prefix ID and an alignment value. return: {string} The item id. param: {string} prefixId An ID to prefix. param: {string} value An alignment value. |
getAlignmentIndex() X-Ref |
Retrieves the alignment index from a value. return: {number} The index of a matching alignment. param: {string} alignment Value to check. |
ownKeys(object, enumerableOnly) X-Ref |
No description |
_objectSpread(target) X-Ref |
No description |
colors_values_ownKeys(object, enumerableOnly) X-Ref |
No description |
colors_values_objectSpread(target) X-Ref |
No description |
rgba() X-Ref |
Generating a CSS complient rgba() color value. return: {string} The converted rgba() color value. param: {string} hexValue The hex value to convert to rgba(). param: {number} alpha The alpha value for opacity. |
colors_color(value) X-Ref |
Retrieves a color from the color palette. return: {string} The color (or fallback, if not found). param: {import('lodash').PropertyPath} value The value to retrieve. |
reduceMotion() X-Ref |
Allows users to opt-out of animations via OS-level preferences. return: {string} Generated CSS code for the reduced style param: {'transition' | 'animation' | string} [prop='transition'] CSS Property name |
_EMOTION_STRINGIFIED_CSS_ERROR__() X-Ref |
No description |
cell_Cell(_ref) X-Ref |
No description |
useSealedState(initialState) X-Ref |
React custom hook that returns the very first value passed to `initialState`, even if it changes between re-renders. |
groupItems(items) X-Ref |
No description |
flatten(grid) X-Ref |
No description |
reverse(array) X-Ref |
No description |
findEnabledItemById(items, id) X-Ref |
No description |
isUpdater(argument) X-Ref |
No description |
applyState(argument, currentValue) X-Ref |
Receives a `setState` argument and calls it with `currentValue` if it's a function. Otherwise return the argument as the new value. |
unstable_useIdState(initialState) X-Ref |
No description |
isElementPreceding(element1, element2) X-Ref |
No description |
findDOMIndex(items, item) X-Ref |
No description |
getMaxLength(rows) X-Ref |
No description |
verticalizeItems(items) X-Ref |
Turns [row1, row1, row2, row2] into [row1, row2, row1, row2] |
createEmptyItem(groupId) X-Ref |
No description |
fillGroups(groups, currentId, shift) X-Ref |
Turns [[row1, row1], [row2]] into [[row1, row1], [row2, row2]] |
placeItemsAfter(items, id, shouldInsertNullItem) X-Ref |
No description |
getItemsInGroup(items, groupId) X-Ref |
No description |
getOppositeOrientation(orientation) X-Ref |
No description |
addItemAtIndex(array, item, index) X-Ref |
No description |
sortBasedOnDOMPosition(items) X-Ref |
No description |
setItemsBasedOnDOMPosition(items, setItems) X-Ref |
No description |
getCommonParent(items) X-Ref |
No description |
useIntersectionObserver(items, setItems) X-Ref |
No description |
useTimeoutObserver(items, setItems) X-Ref |
No description |
useSortBasedOnDOMPosition(items, setItems) X-Ref |
No description |
CompositeState_reducer(state, action) X-Ref |
No description |
useAction(fn) X-Ref |
No description |
useIsUnmountedRef() X-Ref |
No description |
useCompositeState(initialState) X-Ref |
No description |
createFocusEvent(element, type, eventInit) X-Ref |
No description |
fireBlurEvent(element, eventInit) X-Ref |
Creates and dispatches a blur event in a way that also works on IE 11. |
createKeyboardEvent(element, type, eventInit) X-Ref |
No description |
fireKeyboardEvent(element, type, eventInit) X-Ref |
Creates and dispatches `KeyboardEvent` in a way that also works on IE 11. |
getNextActiveElementOnBlur(event) X-Ref |
Cross-browser method that returns the next active element (the element that is receiving focus) after a blur event is dispatched. It receives the blur event object as the argument. |
canProxyKeyboardEvent(event) X-Ref |
No description |
useKeyboardEventProxy(virtual, currentItem, htmlEventHandler) X-Ref |
No description |
useActiveElementRef(elementRef) X-Ref |
No description |
findFirstEnabledItemInTheLastRow(items) X-Ref |
No description |
isItem(items, element) X-Ref |
No description |
useScheduleUserFocus(currentItem) X-Ref |
No description |
alignment_matrix_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
icon_ownKeys(object, enumerableOnly) X-Ref |
No description |
icon_objectSpread(target) X-Ref |
No description |
AlignmentMatrixControlIcon(_ref) X-Ref |
No description |
useBaseId(id) X-Ref |
No description |
AlignmentMatrixControl(_ref) X-Ref |
No description |
font(value) X-Ref |
return: {string} Font rule value param: {keyof FONT} value Path of value from `FONT` |
space() X-Ref |
Creates a spacing CSS value (px) based on grid system values. return: {string} The spacing value (px). param: {number} [value=1] Multiplier against the grid base value (8) |
BaseControl(_ref) X-Ref |
return: {JSX.Element} Element param: {Props} props |
flex_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
return: {JSX.Element} Element param: {VisualLabelProps} Props |
FlexBlock(_ref, ref) X-Ref |
No description |
FlexItem(_ref, ref) X-Ref |
No description |
FlexComponent(_ref, ref) X-Ref |
No description |
_taggedTemplateLiteral(strings, raw) X-Ref |
No description |
_templateObject9() X-Ref |
No description |
_templateObject8() X-Ref |
No description |
_templateObject7() X-Ref |
No description |
_templateObject6() X-Ref |
No description |
_templateObject5() X-Ref |
No description |
_templateObject4() X-Ref |
No description |
_templateObject3() X-Ref |
No description |
_templateObject2() X-Ref |
No description |
_templateObject() X-Ref |
No description |
withNext() X-Ref |
param: {import('react').ComponentType<TCurrentProps>} CurrentComponent param: {import('react').ComponentType<TNextProps>} NextComponent param: {string} namespace param: {(props: TCurrentProps) => TNextProps} adapter |
next_ownKeys(object, enumerableOnly) X-Ref |
No description |
next_objectSpread(target) X-Ref |
No description |
withNextComponent(Current) X-Ref |
param: {import('react').ComponentType<AdaptedTextProps>} Current |
getConvertedKey(key) X-Ref |
Flips a CSS property from left <-> right. return: {string} The flipped CSS property name, if applicable. param: {string} key The CSS property name. |
rtl_rtl() X-Ref |
A higher-order function that create an incredibly basic ltr -> rtl style converter for CSS objects. return: {Function} A function to output CSS styles for Emotion's renderer param: {import('react').CSSProperties} ltrStyles Ltr styles. Converts and renders from ltr -> rtl styles, if applicable. param: {import('react').CSSProperties} [rtlStyles] Rtl styles. Renders if provided. |
input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
Backdrop(_ref) X-Ref |
No description |
label_Label(_ref) X-Ref |
Internal dependencies |
useUniqueId(idProp) X-Ref |
No description |
InputBase(_ref, ref) X-Ref |
No description |
addV(v1, v2) X-Ref |
No description |
subV(v1, v2) X-Ref |
No description |
calculateDistance(movement) X-Ref |
Calculates distance param: movement the difference between current and initial vectors returns: distance |
calculateAllGeometry(movement, delta) X-Ref |
No description |
calculateAllKinematics(movement, delta, dt) X-Ref |
Calculates all kinematics param: movement the difference between current and initial vectors param: delta the difference between current and previous vectors param: delta_t the time difference between current and previous timestamps returns: all kinematics |
sign(x) X-Ref |
Because IE doesn't support `Math.sign` function, so we use the polyfill version of the function. This polyfill function is suggested by Mozilla: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign#Polyfill param: x target number |
minMax(value, min, max) X-Ref |
No description |
rubberband2(distance, constant) X-Ref |
No description |
rubberband(distance, dimension, constant) X-Ref |
No description |
rubberbandIfOutOfBounds(position, min, max, constant) X-Ref |
No description |
_defineProperties(target, props) X-Ref |
No description |
_createClass(Constructor, protoProps, staticProps) X-Ref |
No description |
_extends() X-Ref |
No description |
_inheritsLoose(subClass, superClass) X-Ref |
No description |
_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_assertThisInitialized(self) X-Ref |
No description |
_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_arrayLikeToArray(arr, len) X-Ref |
No description |
_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
noop() X-Ref |
No description |
chainFns() X-Ref |
TODO Beware that only optimized cases are covered in tests =) TODO Need to cover general case as well param: fns |
ensureVector(value, fallback) X-Ref |
Expects a simple value or 2D vector (an array with 2 elements) and always returns 2D vector. If simple value is passed, returns a vector with this value as both coordinates. param: value |
assignDefault(value, fallback) X-Ref |
Helper for defining a default value param: value param: fallback |
valueFn(v) X-Ref |
Resolves getters (functions) by calling them If simple value is given it just passes through param: v |
resolveWith(config, resolvers) X-Ref |
No description |
supportsGestureEvents() X-Ref |
Whether the browser supports GestureEvent (ie Safari) returns: true if the browser supports gesture event |
supportsTouchEvents() X-Ref |
No description |
supportsPointerEvents() X-Ref |
No description |
getEventTouches(event) X-Ref |
No description |
getTouchIds(event) X-Ref |
No description |
getGenericEventData(event) X-Ref |
No description |
getPointerEventValues(event, transform) X-Ref |
Gets pointer event values. param: event returns: pointer event values |
getTwoTouchesEventValues(event, pointerIds, transform) X-Ref |
Gets two touches event data param: event returns: two touches event data |
getScrollEventValues(event, transform) X-Ref |
Gets scroll event values param: event returns: scroll event values |
getWheelEventValues(event, transform) X-Ref |
Gets wheel event values. param: event returns: wheel event values |
getWebkitGestureEventValues(event, transform) X-Ref |
Gets webkit gesture event values. param: event returns: webkit gesture event values |
window(_x) X-Ref |
No description |
getInternalGenericOptions(config) X-Ref |
No description |
getInternalCoordinatesOptions(config) X-Ref |
No description |
getInternalDistanceAngleOptions(config) X-Ref |
No description |
getInternalDragOptions(config) X-Ref |
No description |
_buildMoveConfig(_ref) X-Ref |
No description |
_buildHoverConfig(_ref2) X-Ref |
No description |
_buildDragConfig(_ref3) X-Ref |
No description |
_buildPinchConfig(_ref4) X-Ref |
No description |
_buildScrollConfig(_ref5) X-Ref |
No description |
_buildWheelConfig(_ref6) X-Ref |
No description |
buildComplexConfig(config, actions) X-Ref |
No description |
getInitial(mixed) X-Ref |
No description |
getInitialState() X-Ref |
No description |
Recognizer(controller, args) X-Ref |
Creates an instance of a gesture recognizer. param: stateKey drag, move, pinch, etc. param: controller the controller attached to the gesture param: [args] the args that should be passed to the gesture handler |
getIntentionalDisplacement(movement, threshold) X-Ref |
No description |
computeRubberband(bounds, _ref, _ref2) X-Ref |
No description |
getGenericPayload(_ref3, event, isStartEvent) X-Ref |
Returns a generic, common payload for all gestures from an event. |
getStartGestureState(_ref4, values, event, initial) X-Ref |
Returns the reinitialized start state for the gesture. Should be common to all gestures. |
addEventIds(controller, event) X-Ref |
No description |
removeEventIds(controller, event) X-Ref |
No description |
clearAllWindowListeners(controller) X-Ref |
No description |
clearWindowListeners(_ref, stateKey, options) X-Ref |
No description |
updateWindowListeners(_ref2, stateKey, listeners, options) X-Ref |
No description |
updateDomListeners(_ref3, bindings) X-Ref |
No description |
getPropsListener(_ref4, bindings) X-Ref |
No description |
takeAll(array) X-Ref |
No description |
getDomTargetFromConfig(_ref5) X-Ref |
No description |
addBindings(bindings, name, fn) X-Ref |
bindings is an object which keys match ReactEventHandlerKeys. Since a recognizer might want to bind a handler function to an event key already used by a previously added recognizer, we need to make sure that each event key is an array of all the functions mapped for that key. |
addListeners(el, listeners, options) X-Ref |
No description |
removeListeners(el, listeners, options) X-Ref |
No description |
useRecognizers(handlers, config, nativeHandlers) X-Ref |
Utility hook called by all gesture hooks and that will be responsible for the internals. param: handlers param: classes param: config param: nativeHandlers - native handlers such as onClick, onMouseDown, etc. |
deprecationNoticeForDomTarget() X-Ref |
No description |
resolveClasses(internalHandlers) X-Ref |
No description |
CoordinatesRecognizer() X-Ref |
persistEvent(event) X-Ref |
No description |
DragRecognizer() X-Ref |
No description |
memoizeOne(resultFn, isEqual) X-Ref |
Inlined from https://github.com/alexreardon/memoize-one |
memoized() X-Ref |
No description |
equal(a, b) X-Ref |
Taken from https://github.com/FormidableLabs/react-fast-compare Dropped comments and ArrayBuffer handling |
isEqual(a, b) X-Ref |
No description |
useDrag(handler, config) X-Ref |
Drag hook. param: handler - the function fired every time the drag gesture updates param: [config={}] - the config object including generic options and drag options |
DistanceAngleRecognizer() X-Ref |
PinchRecognizer() X-Ref |
No description |
usePinch(handler, config) X-Ref |
Pinch hook. param: handler - the function fired every time the pinch gesture updates param: [config={}] - the config object including generic options and pinch options |
WheelRecognizer() X-Ref |
No description |
useWheel(handler, config) X-Ref |
Wheel hook. param: handler - the function fired every time the wheel gesture updates param: the config object including generic options and wheel options |
MoveRecognizer() X-Ref |
No description |
useMove(handler, config) X-Ref |
Move hook. param: handler - the function fired every time the move gesture updates param: [config={}] - the config object including generic options and move options |
useHover(handler, config) X-Ref |
Hover hook. param: handler - the function fired every time the hover gesture updates param: [config={}] - the config object including generic options and hover options |
ScrollRecognizer() X-Ref |
No description |
useScroll(handler, config) X-Ref |
Scroll hook. param: handler - the function fired every time the scroll gesture updates param: [config={}] - the config object including generic options and scroll options |
sortHandlers(handlers) X-Ref |
No description |
useGesture(_handlers, config) X-Ref |
param: {Handlers} handlers - an object with on[Gesture] keys containg gesture handlers param: {UseGestureConfig} [config={}] - the full config object returns: {(...args: any[]) => HookReturnType<Config>} |
includeStartEndHandlers(handlers, handlerKey) X-Ref |
No description |
getDragCursor(dragDirection) X-Ref |
Gets a CSS cursor value based on a drag direction. return: {string} The CSS cursor value. param: {string} dragDirection The drag direction. |
useDragCursor(isDragging, dragDirection) X-Ref |
Custom hook that renders a drag cursor when dragging. return: {string} The CSS cursor value. param: {boolean} isDragging The dragging state. param: {string} dragDirection The drag direction. |
state_ownKeys(object, enumerableOnly) X-Ref |
No description |
state_objectSpread(target) X-Ref |
No description |
mergeInitialState() X-Ref |
Prepares initialState for the reducer. return: {Object} Prepared initialState for the reducer param: {Object} initialState The initial state. |
inputControlStateReducer(composedStateReducers) X-Ref |
Creates a reducer that opens the channel for external state subscription and modification. This technique uses the "stateReducer" design pattern: https://kentcdodds.com/blog/the-state-reducer-pattern/ return: {Function} The reducer. param: {Function} composedStateReducers A custom reducer that can subscribe and modify state. |
useInputControlStateReducer() X-Ref |
A custom hook that connects and external stateReducer with an internal reducer. This hook manages the internal state of InputControl. However, by connecting an external stateReducer function, other components can react to actions as well as modify state before it is applied. This technique uses the "stateReducer" design pattern: https://kentcdodds.com/blog/the-state-reducer-pattern/ return: {Object} State, dispatch, and a collection of actions. param: {Function} stateReducer An external state reducer. param: {Object} initialState The initial state for the reducer. |
isValueDefined(value) X-Ref |
Determines if a value is null or undefined. return: {value is T} Whether value is not null or undefined. param: {T | null | undefined} value The value to check. |
isValueEmpty(value) X-Ref |
Determines if a value is empty, null, or undefined. return: {value is T} Whether value is empty. param: {T | "" | null | undefined} value The value to check. |
getDefinedValue() X-Ref |
Get the first defined/non-null value from an array. return: {T} A defined value or the fallback value. param: {Array<T | null | undefined>} values Values to derive from. param: {T} fallbackValue Fallback value if there are no defined values. |
useUpdateEffect(effect, deps) X-Ref |
A `React.useEffect` that will not run on the first render. Source: https://github.com/reakit/reakit/blob/HEAD/packages/reakit-utils/src/useUpdateEffect.ts param: {import('react').EffectCallback} effect param: {import('react').DependencyList} deps |
InputField(_ref, ref) X-Ref |
No description |
input_control_useUniqueId(idProp) X-Ref |
No description |
InputControl(_ref, ref) X-Ref |
No description |
number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getNumber(value) X-Ref |
Parses and retrieves a number value. return: {number} The parsed number value. param: {unknown} value The incoming value. |
add() X-Ref |
Safely adds 2 values. return: {number} The sum of values. param: {Array<number|string>} args Values to add together. |
subtract() X-Ref |
No description |
getPrecision(value) X-Ref |
No description |
roundClamp() X-Ref |
Clamps a value based on a min/max range with rounding return: {number} The rounded and clamped value. param: {number} value The value. param: {number} min The minimum range. param: {number} max The maximum range. param: {number} step A multiplier for the value. |
roundClampString() X-Ref |
Clamps a value based on a min/max range with rounding. Returns a string. return: {string} The rounded and clamped value. param: {Parameters<typeof roundClamp>} args Arguments for roundClamp(). |
useJumpStep(_ref) X-Ref |
A custom hook that calculates a step value (used by elements like input [type="number"]). This value can be modified based on whether the Shift key is being held down. For example, a shiftStep of 10, and a step of 1... Starting from 10, the next incremented value will be 11. Holding down shift... Starting from 10, the next incremented value will be 20. return: {number} The jump step value. param: {Object} props Properties for the hook. param: {boolean} [props.isShiftStepEnabled=true] Determines if jumping values with shift is enabled param: {number} [props.shiftStep=10] Multiplier to jump by, when holding shift key. param: {number} [props.step=1] Multiplier to jump by, when not-holding shift key. |
NumberControl(_ref, ref) X-Ref |
No description |
angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
AngleCircle(_ref) X-Ref |
No description |
getAngle(centerX, centerY, pointX, pointY) X-Ref |
No description |
AnglePickerControl(_ref) X-Ref |
No description |
filterOptions(search) X-Ref |
AutocompleterUI(_ref) X-Ref |
No description |
Autocomplete(_ref2) X-Ref |
No description |
insertCompletion(replacement) X-Ref |
No description |
select(option) X-Ref |
No description |
reset() X-Ref |
No description |
announce(options) X-Ref |
No description |
onChangeOptions(options) X-Ref |
Load options for an autocompleter. param: {Array} options |
handleKeyDown(event) X-Ref |
No description |
unit_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getParsedValue(value, unit, units) X-Ref |
Handles legacy value + unit handling. This component use to manage both incoming value and units separately. Moving forward, ideally the value should be a string that contains both the value and unit, example: '10px' return: {Array<number, string>} The extracted number and unit. param: {number|string} value Value param: {string} unit Unit value param: {Array<Object>} units Units to derive from. |
utils_hasUnits(units) X-Ref |
Checks if units are defined. return: {boolean} Whether units are defined. param: {any} units Units to check. |
parseUnit(initialValue) X-Ref |
Parses a number and unit from a value. return: {Array<number, string>} The extracted number and unit. param: {string} initialValue Value to parse param: {Array<Object>} units Units to derive from. |
getValidParsedUnit(next, units, fallbackValue, fallbackUnit) X-Ref |
Parses a number and unit from a value. Validates parsed value, using fallback value if invalid. return: {Array<number, string>} The extracted number and unit. param: {number|string} next The next value. param: {Array<Object>} units Units to derive from. param: {number|string} fallbackValue The fallback value. param: {string} fallbackUnit The fallback value. |
UnitSelectControl(_ref) X-Ref |
Renders a `select` if there are multiple units. Otherwise, renders a non-selectable label. param: {Object} props Component props. param: {string} [props.className] Class to set on the `select` element. param: {boolean} [props.isTabbable=true] Whether the control can be focused via keyboard navigation. param: {Array} [props.options=CSS_UNITS] Available units to select from. param: {Function} [props.onChange=noop] A callback function invoked when the value is changed. param: {string} [props.size="default"] Size of the control option. Supports "default" and "small". param: {string} [props.value="px"] Current unit. |
use_controlled_state_ownKeys(object, enumerableOnly) X-Ref |
No description |
use_controlled_state_objectSpread(target) X-Ref |
No description |
useControlledState(currentState) X-Ref |
Custom hooks for "controlled" components to track and consolidate internal state and incoming values. This is useful for components that render `input`, `textarea`, or `select` HTML elements. https://reactjs.org/docs/forms.html#controlled-components At first, a component using useControlledState receives an initial prop value, which is used as initial internal state. This internal state can be maintained and updated without relying on new incoming prop values. Unlike the basic useState hook, useControlledState's state can be updated if a new incoming prop value is changed. return: {[T | "", (nextState: T) => void]} The controlled value and the value setter. param: {T | undefined} currentState The current value. param: {Options<T>} [options=defaultOptions] Additional options for the hook. |
UnitControl(_ref, ref) X-Ref |
No description |
box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
BoxUnitControl(_ref) X-Ref |
No description |
Tooltip(_ref3) X-Ref |
No description |
mode(arr) X-Ref |
Gets an items with the most occurance within an array https://stackoverflow.com/a/20762713 return: {any} The item with the most occurances. param: {Array<any>} arr Array of items to check. |
getAllValue() X-Ref |
Gets the 'all' input value and unit from values data. return: {string} A value + unit for the 'all' input. param: {Object} values Box values. |
isValuesMixed() X-Ref |
Checks to determine if values are mixed. return: {boolean} Whether values are mixed. param: {Object} values Box values. |
isValuesDefined(values) X-Ref |
Checks to determine if values are defined. return: {boolean} Whether values are mixed. param: {Object} values Box values. |
all_input_control_ownKeys(object, enumerableOnly) X-Ref |
No description |
all_input_control_objectSpread(target) X-Ref |
No description |
AllInputControl(_ref) X-Ref |
No description |
input_controls_ownKeys(object, enumerableOnly) X-Ref |
No description |
input_controls_objectSpread(target) X-Ref |
No description |
BoxInputControls(_ref) X-Ref |
No description |
box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
BoxControlIcon(_ref) X-Ref |
Internal dependencies |
getSide(side, value) X-Ref |
No description |
LinkedButton(_ref) X-Ref |
No description |
box_control_visualizer_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
BoxControlVisualizer(_ref) X-Ref |
No description |
Sides(_ref2) X-Ref |
No description |
Top(_ref3) X-Ref |
No description |
Right(_ref4) X-Ref |
No description |
Bottom(_ref5) X-Ref |
No description |
Left(_ref6) X-Ref |
No description |
useSideAnimation(value) X-Ref |
Custom hook that renders the "flash" animation whenever the value changes. param: {string} value Value of (box) side. |
box_control_ownKeys(object, enumerableOnly) X-Ref |
No description |
box_control_objectSpread(target) X-Ref |
No description |
box_control_useUniqueId(idProp) X-Ref |
No description |
BoxControl(_ref) X-Ref |
No description |
ButtonGroup(_ref, ref) X-Ref |
No description |
bodySize() X-Ref |
No description |
headerFooterSizes() X-Ref |
No description |
handleBorderless() X-Ref |
No description |
handleShady() X-Ref |
No description |
Card(props) X-Ref |
No description |
body_ownKeys(object, enumerableOnly) X-Ref |
No description |
body_objectSpread(target) X-Ref |
No description |
CardBody(props) X-Ref |
No description |
CardDivider(props) X-Ref |
Internal dependencies |
footer_ownKeys(object, enumerableOnly) X-Ref |
No description |
footer_objectSpread(target) X-Ref |
No description |
CardFooter(props) X-Ref |
No description |
header_ownKeys(object, enumerableOnly) X-Ref |
No description |
header_objectSpread(target) X-Ref |
No description |
CardHeader(props) X-Ref |
No description |
CardMedia(props) X-Ref |
Internal dependencies |
CheckboxControl(_ref) X-Ref |
Internal dependencies |
ClipboardButton(_ref) X-Ref |
Internal dependencies |
useObservableState(initialState, onStateChange) X-Ref |
No description |
Dropdown(_ref) X-Ref |
No description |
toggle() X-Ref |
No description |
closeIfFocusOutside() X-Ref |
Closes the dropdown if a focus leaves the dropdown wrapper. This is intentionally distinct from `onClose` since focus loss from the popover is expected to occur when using the Dropdown's toggle button, in which case the correct behavior is to keep the dropdown closed. The same applies in case when focus is moved to the modal dialog. |
close() X-Ref |
No description |
Option(_ref) X-Ref |
No description |
DropdownLinkAction(_ref2) X-Ref |
No description |
ButtonAction(_ref4) X-Ref |
No description |
CircularOptionPicker(_ref5) X-Ref |
No description |
colorToState() X-Ref |
Given a hex color, get all other color properties (rgb, alpha, etc). return: {Object} An object of different color representations. param: {Object|string} data A hex color string or an object with a hex property param: {string} oldHue A reference to the hue of the previous color, otherwise dragging the saturation to zero will reset the current hue to zero as well. See https://github.com/casesandberg/react-color/issues/29#issuecomment-132686909. |
getPointOffset(e, container) X-Ref |
Get the top/left offsets of a point in a container, also returns the container width/height. return: {Object} An object of the offset positions & container size. param: {Event} e Mouse or touch event with a location coordinate. param: {HTMLElement} container The container div, returned point is relative to this container. |
isValidHex(hex) X-Ref |
Check if a string is a valid hex color code. return: {boolean} True if the color is a valid hex color. param: {string} hex A possible hex color. |
simpleCheckForValidColor(data) X-Ref |
Check an object for any valid color properties. return: {Object|boolean} If a valid representation of color, returns the data object. Otherwise returns false. param: {Object} data A possible object representing a color. |
calculateAlphaChange(e, props, container) X-Ref |
Calculate the current alpha based on a mouse or touch event return: {Object|null} If the alpha value has changed, returns a new color object. param: {Event} e A mouse or touch event on the alpha bar. param: {Object} props The current component props param: {HTMLElement} container The container div for the alpha bar graph. |
calculateHueChange(e, props, container) X-Ref |
Calculate the current hue based on a mouse or touch event return: {Object|null} If the hue value has changed, returns a new color object. param: {Event} e A mouse or touch event on the hue bar. param: {Object} props The current component props param: {HTMLElement} container The container div for the hue bar graph. |
calculateSaturationChange(e, props, container) X-Ref |
Calculate the current saturation & brightness based on a mouse or touch event return: {Object} Returns a new color object. param: {Event} e A mouse or touch event on the saturation graph. param: {Object} props The current component props param: {HTMLElement} container The container div for the 2D saturation graph. |
KeyboardShortcut(_ref) X-Ref |
No description |
KeyboardShortcuts(_ref2) X-Ref |
No description |
_createSuper(Derived) X-Ref |
No description |
_isNativeReflectConstruct() X-Ref |
No description |
Alpha() X-Ref |
No description |
hue_createSuper(Derived) X-Ref |
No description |
hue_isNativeReflectConstruct() X-Ref |
No description |
Hue() X-Ref |
No description |
TextControl(_ref, ref) X-Ref |
param: {Props} props Props param: {import('react').Ref<HTMLInputElement>} [ref] |
inputs_createSuper(Derived) X-Ref |
No description |
inputs_isNativeReflectConstruct() X-Ref |
No description |
Input() X-Ref |
No description |
Inputs(_ref2) X-Ref |
No description |
saturation_createSuper(Derived) X-Ref |
No description |
saturation_isNativeReflectConstruct() X-Ref |
No description |
Saturation(props) X-Ref |
No description |
color_picker_createSuper(Derived) X-Ref |
No description |
color_picker_isNativeReflectConstruct() X-Ref |
No description |
color_picker_ownKeys(object, enumerableOnly) X-Ref |
No description |
color_picker_objectSpread(target) X-Ref |
No description |
ColorPicker(_ref3) X-Ref |
No description |
DropdownOpenOnMount(_ref) X-Ref |
No description |
ColorOption(_ref2) X-Ref |
No description |
ColorInserter(_ref4) X-Ref |
No description |
ColorEdit(_ref5) X-Ref |
No description |
ColorPalette(_ref) X-Ref |
No description |
token_input_createSuper(Derived) X-Ref |
No description |
token_input_isNativeReflectConstruct() X-Ref |
No description |
TokenInput() X-Ref |
No description |
suggestions_list_createSuper(Derived) X-Ref |
No description |
suggestions_list_isNativeReflectConstruct() X-Ref |
No description |
SuggestionsList() X-Ref |
No description |
combobox_control_createSuper(Derived) X-Ref |
No description |
combobox_control_isNativeReflectConstruct() X-Ref |
No description |
_class() X-Ref |
No description |
ComboboxControl(_ref) X-Ref |
No description |
t(t) X-Ref |
No description |
cbToCb(cb) X-Ref |
Accepts a parameter and returns it if it's a function or a noop function if it's not. This allows us to accept a callback, but not worry about it if it's not passed. return: {Function} a function param: {Function} cb the callback |
downshift_esm_noop() X-Ref |
No description |
downshift_esm_scrollIntoView(node, menuNode) X-Ref |
Scroll node into view if necessary param: {HTMLElement} node the element that should scroll into view param: {HTMLElement} menuNode the menu element of the component |
isOrContainsNode(parent, child) X-Ref |
return: {Boolean} whether the parent is the child or the child is in the parent param: {HTMLElement} parent the parent node param: {HTMLElement} child the child node |
debounce(fn, time) X-Ref |
Simple debounce implementation. Will call the given function once after the time given has passed since it was last called. return: {Function} the debounced function param: {Function} fn the function to call after the time param: {Number} time the time to wait |
cancel() X-Ref |
No description |
wrapper() X-Ref |
No description |
callAllEventHandlers() X-Ref |
This is intended to be used to compose event handlers. They are executed in order until one of them sets `event.preventDownshiftDefault = true`. return: {Function} the event handler to add to an element param: {...Function} fns the event handler functions |
handleRefs() X-Ref |
No description |
downshift_esm_generateId() X-Ref |
This generates a unique ID for an instance of Downshift return: {String} the unique ID |
resetIdCounter() X-Ref |
Resets idCounter to 0. Used for SSR. |
downshift_esm_getA11yStatusMessage(_ref2) X-Ref |
Default implementation for status message. Only added when menu is open. Will specift if there are results in the list, and if so, how many, and what keys are relevant. return: {String} the a11y status message param: {Object} param the downshift state and other relevant properties |
unwrapArray(arg, defaultValue) X-Ref |
Takes an argument and if it's an array, returns the first item in the array otherwise returns the argument return: {*} the arg or it's first item param: {*} arg the maybe-array param: {*} defaultValue the value if arg is falsey not defined |
isDOMElement(element) X-Ref |
return: {Boolean} whether it's a DOM element param: {Object} element (P)react element |
getElementProps(element) X-Ref |
return: {Object} the props param: {Object} element (P)react element |
requiredProp(fnName, propName) X-Ref |
Throws a helpful error message for required properties. Useful to be used as a default in destructuring or object params. param: {String} fnName the function name param: {String} propName the prop name |
pickState(state) X-Ref |
return: {Object} state that is relevant to downshift param: {Object} state the state object |
getState(state, props) X-Ref |
This will perform a shallow merge of the given state object with the state coming from props (for the controlled component scenario) This is used in state updater functions so they're referencing the right state regardless of where it comes from. param: {Object} state The state of the component/hook. param: {Object} props The props that may contain controlled values. returns: {Object} The merged controlled state. |
isControlledProp(props, key) X-Ref |
This determines whether a prop is a "controlled prop" meaning it is state which is controlled by the outside of this component rather than within this component. return: {Boolean} whether it is a controlled controlled prop param: {Object} props The props that may contain controlled values. param: {String} key the key to check |
normalizeArrowKey(event) X-Ref |
Normalizes the 'key' property of a KeyboardEvent in IE/Edge return: {String} keyboard key param: {Object} event a keyboardEvent object |
isPlainObject(obj) X-Ref |
Simple check if the value passed is object literal return: {Boolean} whether it's object literal param: {*} obj any things |
getNextWrappingIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) X-Ref |
Returns the new index in the list, in a circular way. If next value is out of bonds from the total, it will wrap to either 0 or itemCount - 1. param: {number} moveAmount Number of positions to move. Negative to move backwards, positive forwards. param: {number} baseIndex The initial position to move from. param: {number} itemCount The total number of items. param: {Function} getItemNodeFromIndex Used to check if item is disabled. param: {boolean} circular Specify if navigation is circular. Default is true. returns: {number} The new index after the move. |
getNextNonDisabledIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) X-Ref |
Returns the next index in the list of an item that is not disabled. param: {number} moveAmount Number of positions to move. Negative to move backwards, positive forwards. param: {number} baseIndex The initial position to move from. param: {number} itemCount The total number of items. param: {Function} getItemNodeFromIndex Used to check if item is disabled. param: {boolean} circular Specify if navigation is circular. Default is true. returns: {number} The new index. Returns baseIndex if item is not disabled. Returns next non-disabled item otherwise. If no non-disabled found it will return -1. |
targetWithinDownshift(target, downshiftElements, document, checkActiveElement) X-Ref |
Checks if event target is within the downshift elements. param: {EventTarget} target Target to check. param: {HTMLElement[]} downshiftElements The elements that form downshift (list, toggle button etc). param: {Document} document The document. param: {boolean} checkActiveElement Whether to also check activeElement. returns: {boolean} Whether or not the target is within downshift elements. |
setStatus(status, documentProp) X-Ref |
param: {String} status the status message param: {Object} documentProp document passed by the user. |
getStatusDiv(documentProp) X-Ref |
Get the status node or create it if it does not already exist. return: {HTMLElement} the status node. param: {Object} documentProp document passed by the user. |
Downshift(_props) X-Ref |
No description |
validateGetMenuPropsCalledCorrectly(node, _ref12) X-Ref |
No description |
validateGetRootPropsCalledCorrectly(element, _ref13) X-Ref |
No description |
callOnChangeProps(action, state, newState) X-Ref |
No description |
invokeOnChangeHandler(key, action, state, newState) X-Ref |
No description |
downshift_esm_stateReducer(s, a) X-Ref |
Default state reducer that returns the changes. param: {Object} s state. param: {Object} a action with changes. returns: {Object} changes. |
downshift_esm_getA11ySelectionMessage(selectionParameters) X-Ref |
Returns a message to be added to aria-live region when item is selected. param: {Object} selectionParameters Parameters required to build the message. returns: {string} The a11y message. |
useElementIds(_ref) X-Ref |
No description |
getItemIndex(index, item, items) X-Ref |
No description |
downshift_esm_itemToString(item) X-Ref |
No description |
isAcceptedCharacterKey(key) X-Ref |
No description |
capitalizeString(string) X-Ref |
No description |
useLatestRef(val) X-Ref |
No description |
useEnhancedReducer(reducer, initialState, props) X-Ref |
Computes the controlled state using a the previous state, props, two reducers, one from downshift and an optional one from the user. Also calls the onChange handlers for state values that have changed. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. returns: {Array} An array with the state and an action dispatcher. |
useControlledReducer(reducer, initialState, props) X-Ref |
Wraps the useEnhancedReducer and applies the controlled prop values before returning the new state. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. returns: {Array} An array with the state and an action dispatcher. |
getDefaultValue(props, propKey, defaultStateValues) X-Ref |
No description |
getInitialValue(props, propKey, defaultStateValues) X-Ref |
No description |
downshift_esm_getInitialState(props) X-Ref |
No description |
getHighlightedIndexOnOpen(props, state, offset, getItemNodeFromIndex) X-Ref |
No description |
useMouseAndTouchTracker(isOpen, downshiftElementRefs, environment, handleBlur) X-Ref |
Reuse the movement tracking of mouse and touch events. param: {boolean} isOpen Whether the dropdown is open or not. param: {Array<Object>} downshiftElementRefs Downshift element refs to track movement (toggleButton, menu etc.) param: {Object} environment Environment where component/hook exists. param: {Function} handleBlur Handler on blur from mouse or touch. returns: {Object} Ref containing whether mouseDown or touchMove event is happening |
useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) X-Ref |
No description |
useScrollIntoView(_ref3) X-Ref |
No description |
downshiftCommonReducer(state, action, stateChangeTypes) X-Ref |
No description |
getItemIndexByCharacterKey(keysSoFar, highlightedIndex, items, itemToString, getItemNodeFromIndex) X-Ref |
No description |
getA11yStatusMessage(var isOpen = _ref.isOpen,resultCount = _ref.resultCount,previousResultCount = _ref.previousResultCount;if (!isOpen) X-Ref |
Default implementation for status message. Only added when menu is open. Will specift if there are results in the list, and if so, how many, and what keys are relevant. return: {String} the a11y status message param: {Object} param the downshift state and other relevant properties |
downshiftSelectReducer(state, action) X-Ref |
No description |
useSelect(userProps) X-Ref |
No description |
getInitialState(var initialState = downshift_esm_getInitialState(props) X-Ref |
No description |
useControlledReducer(var previousSelectedItemRef = Object(external_React_["useRef"]) X-Ref |
The useCombobox version of useControlledReducer, which also checks if the controlled prop selectedItem changed between renders. If so, it will also update inputValue with its string equivalent. It uses the common useEnhancedReducer to compute the rest of the state. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. returns: {Array} An array with the state and an action dispatcher. |
downshiftUseComboboxReducer(state, action) X-Ref |
No description |
useCombobox(userProps) X-Ref |
No description |
getInitialValue(return getInitialValue(props, propKey, defaultStateValues) X-Ref |
Returns the initial value for a state key in the following order: 1. controlled prop, 2. initial prop, 3. default prop, 4. default value from Downshift. param: {Object} props Props passed to the hook. param: {string} propKey Props key to generate the value for. returns: {any} The initial value for that prop. |
getDefaultValue(return getDefaultValue(props, propKey, defaultStateValues) X-Ref |
Returns the default value for a state key in the following order: 1. controlled prop, 2. default prop, 3. default value from Downshift. param: {Object} props Props passed to the hook. param: {string} propKey Props key to generate the value for. returns: {any} The initial value for that prop. |
getInitialState(var activeIndex = getInitialValue$1(props, 'activeIndex') X-Ref |
Gets the initial state based on the provided props. It uses initial, default and controlled props related to state in order to compute the initial value. param: {Object} props Props passed to the hook. returns: {Object} The initial state. |
isKeyDownOperationPermitted(event) X-Ref |
Returns true if dropdown keydown operation is permitted. Should not be allowed on keydown with modifier keys (ctrl, alt, shift, meta), on input element with text content that is either highlighted or selection cursor is not at the starting position. param: {KeyboardEvent} event The event from keydown. returns: {boolean} Whether the operation is allowed. |
downshift_esm_getA11yRemovalMessage(selectionParameters) X-Ref |
Returns a message to be added to aria-live region when item is removed. param: {Object} selectionParameters Parameters required to build the message. returns: {string} The a11y message. |
downshiftMultipleSelectionReducer(state, action) X-Ref |
No description |
useMultipleSelection(userProps) X-Ref |
No description |
CustomSelectControl(_ref3) X-Ref |
No description |
date_createSuper(Derived) X-Ref |
No description |
date_isNativeReflectConstruct() X-Ref |
No description |
DatePicker() X-Ref |
No description |
time_ownKeys(object, enumerableOnly) X-Ref |
No description |
time_objectSpread(target) X-Ref |
No description |
UpdateOnBlurAsIntegerField(_ref) X-Ref |
<UpdateOnBlurAsIntegerField> A shared component to parse, validate, and handle remounting of the underlying form field element like <input> and <select>. param: {Object} props Component props. param: {string} props.as Render the component as specific element tag, defaults to "input". param: {number|string} props.value The default value of the component which will be parsed to integer. param: {Function} props.onUpdate Call back when blurred and validated. |
handleBlur(event) X-Ref |
No description |
TimePicker(_ref2) X-Ref |
<TimePicker> param: {Object} props Component props. param: {boolean} props.is12Hour Should the time picker showed in 12 hour format or 24 hour format. param: {WPValidDateTimeFormat} props.currentTime The initial current time the time picker should render. param: {Function} props.onChange Callback function when the date changed. |
changeDate(newDate) X-Ref |
Function that sets the date state and calls the onChange with a new date. The date is truncated at the minutes. param: {Object} newDate The date object. |
update(name, value) X-Ref |
No description |
updateAmPm(value) X-Ref |
No description |
DateTimePicker(_ref, ref) X-Ref |
No description |
onClickDescriptionToggle() X-Ref |
No description |
select_control_useUniqueId(idProp) X-Ref |
No description |
SelectControl(_ref, ref) X-Ref |
No description |
DimensionControl(props) X-Ref |
Internal dependencies |
disabled_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
Disabled(_ref) X-Ref |
No description |
Draggable(_ref) X-Ref |
No description |
end(event) X-Ref |
Removes the element clone, resets cursor, and removes drag listener. param: {Object} event The non-custom DragEvent. |
start(event) X-Ref |
This method does a couple of things: - Clones the current element and spawns clone over original element. - Adds a fake temporary drag image to avoid browser defaults. - Sets transfer data. - Adds dragover listener. param: {Object} event The non-custom DragEvent. |
over(e) X-Ref |
No description |
getDragEventType(_ref) X-Ref |
No description |
isTypeSupportedByDropZone(type, dropZone) X-Ref |
No description |
isWithinElementBounds(element, x, y) X-Ref |
No description |
getPosition(event) X-Ref |
No description |
getHoveredDropZone(dropZones, position, dragEventType) X-Ref |
No description |
useDrop() X-Ref |
No description |
updateDragZones(event) X-Ref |
No description |
onDragOver(event) X-Ref |
No description |
resetDragState() X-Ref |
No description |
onDrop(event) X-Ref |
No description |
DropZoneContextProvider(props) X-Ref |
No description |
DropContainer(_ref2) X-Ref |
No description |
DropZoneProvider(_ref3) X-Ref |
No description |
drop_zone_ownKeys(object, enumerableOnly) X-Ref |
No description |
drop_zone_objectSpread(target) X-Ref |
No description |
useDropZone(_ref) X-Ref |
Internal dependencies |
DropZoneComponent(_ref2) X-Ref |
No description |
container_createSuper(Derived) X-Ref |
No description |
container_isNativeReflectConstruct() X-Ref |
No description |
cycleValue(value, total, offset) X-Ref |
No description |
NavigableContainer() X-Ref |
No description |
NavigableMenu(_ref, ref) X-Ref |
Internal dependencies |
dropdown_menu_ownKeys(object, enumerableOnly) X-Ref |
No description |
dropdown_menu_objectSpread(target) X-Ref |
No description |
mergeProps() X-Ref |
No description |
DropdownMenu(_ref) X-Ref |
No description |
external_link_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ExternalLink(_ref, ref) X-Ref |
No description |
focal_point_picker_style_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getExtension() X-Ref |
Gets the extension of a file name. return: {string} The extension of the file name. param: {string} filename The file name. |
isVideoType() X-Ref |
Checks if a file is a video. return: {boolean} Whether the file is a video. param: {string} filename The file name. |
fractionToPercentage(fraction) X-Ref |
Transforms a fraction value to a percentage value. return: {number} A percentage value. param: {number} fraction The fraction value. |
controls_ownKeys(object, enumerableOnly) X-Ref |
No description |
controls_objectSpread(target) X-Ref |
No description |
FocalPointPickerControls(_ref) X-Ref |
No description |
controls_UnitControl(props) X-Ref |
No description |
focal_point_style_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
FocalPoint(_ref) X-Ref |
External dependencies |
FocalPointPickerGrid(_ref) X-Ref |
No description |
useRevealAnimation(value) X-Ref |
Custom hook that renders the "flash" animation whenever the value changes. param: {string} value Value of (box) side. |
Media(_ref) X-Ref |
No description |
MediaPlaceholderElement(_ref2) X-Ref |
No description |
focal_point_picker_createSuper(Derived) X-Ref |
No description |
focal_point_picker_isNativeReflectConstruct() X-Ref |
No description |
FocalPointPicker(props) X-Ref |
No description |
FocusableIframe(_ref) X-Ref |
WordPress dependencies |
checkFocus() X-Ref |
Checks whether the iframe is the activeElement, inferring that it has then received focus, and calls the `onFocus` prop callback. |
floatClamp(value, min, max) X-Ref |
A float supported clamp function for a specific value. return: {number} A (float) number param: {number|null} value The value to clamp. param: {number} min The minimum value. param: {number} max The maximum value. |
useControlledRangeValue(_ref) X-Ref |
Hook to store a clamped value, derived from props. return: {[*, Function]} The controlled value and the value setter. param: {Object} settings Hook settings. param: {number} settings.min The minimum value. param: {number} settings.max The maximum value. param: {number} settings.value The current value. param: {any} settings.initial The initial value. |
useDebouncedHoverInteraction(_ref2) X-Ref |
Hook to encapsulate the debouncing "hover" to better handle the showing and hiding of the Tooltip. return: {Object} Bound properties for use on a React.Node. param: {Object} settings Hook settings. param: {Function} [settings.onShow=noop] A callback function invoked when the element is shown. param: {Function} [settings.onHide=noop] A callback function invoked when the element is hidden. param: {Function} [settings.onMouseMove=noop] A callback function invoked when the mouse is moved. param: {Function} [settings.onMouseLeave=noop] A callback function invoked when the mouse is moved out of the element. param: {number} [settings.timeout=300] Timeout before the element is shown or hidden. |
range_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
input_range_InputRange(_ref, ref) X-Ref |
No description |
RangeMark(_ref) X-Ref |
Internal dependencies |
rail_ownKeys(object, enumerableOnly) X-Ref |
No description |
rail_objectSpread(target) X-Ref |
No description |
RangeRail(_ref) X-Ref |
No description |
Marks(_ref2) X-Ref |
No description |
useMarks(_ref3) X-Ref |
No description |
tooltip_ownKeys(object, enumerableOnly) X-Ref |
No description |
tooltip_objectSpread(target) X-Ref |
No description |
SimpleTooltip(_ref) X-Ref |
No description |
useTooltipPosition(_ref2) X-Ref |
No description |
RangeControl(_ref, ref) X-Ref |
No description |
next_withNextComponent(current) X-Ref |
No description |
getSelectValueFromFontSize(fontSizes, value) X-Ref |
No description |
getSelectOptions(optionsArray, disableCustomFontSizes) X-Ref |
No description |
font_size_picker_FontSizePicker(_ref, ref) X-Ref |
No description |
FormFileUpload(_ref) X-Ref |
No description |
FormToggle(_ref) X-Ref |
No description |
Token(_ref) X-Ref |
No description |
form_token_field_ownKeys(object, enumerableOnly) X-Ref |
No description |
form_token_field_objectSpread(target) X-Ref |
No description |
form_token_field_createSuper(Derived) X-Ref |
No description |
form_token_field_isNativeReflectConstruct() X-Ref |
No description |
FormTokenField() X-Ref |
No description |
utils_ownKeys(object, enumerableOnly) X-Ref |
No description |
utils_objectSpread(target) X-Ref |
No description |
clampPercent(value) X-Ref |
Clamps a number between 0 and 100. return: {number} Value clamped between 0 and 100. param: {number} value Value to clamp. |
isOverlapping(value, initialIndex, newPosition) X-Ref |
Check if a control point is overlapping with another. return: {boolean} True if the point is overlapping. param: {ControlPoint[]} value Array of control points. param: {number} initialIndex Index of the position to test. param: {number} newPosition New position of the control point. param: {number} minDistance Distance considered to be overlapping. |
addControlPoint(points, position, color) X-Ref |
Adds a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} position Position to insert the new point. param: {Color} color Color to update the control point at index. |
removeControlPoint(points, index) X-Ref |
Removes a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} index Index to remove. |
updateControlPoint(points, index, newPoint) X-Ref |
Updates a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} index Index to update. param: {ControlPoint[]} newPoint New control point to replace the index. |
updateControlPointPosition(points, index, newPosition) X-Ref |
Updates the position of a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} index Index to update. param: {number} newPosition Position to move the control point at index. |
updateControlPointColor(points, index, newColor) X-Ref |
Updates the position of a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} index Index to update. param: {Color} newColor Color to update the control point at index. |
updateControlPointColorByPosition(points, position, newColor) X-Ref |
Updates the position of a control point from an array and returns the new array. return: {ControlPoint[]} New array of control points. param: {ControlPoint[]} points Array of control points. param: {number} position Position of the color stop. param: {string} newColor Color to update the control point at index. |
getHorizontalRelativeGradientPosition(mouseXCoordinate, containerElement, positionedElementWidth) X-Ref |
Gets the horizontal coordinate when dragging a control point with the mouse. return: {number} Whole number percentage from the left. param: {number} mouseXCoordinate Horizontal coordinate of the mouse position. param: {Element} containerElement Container for the gradient picker. param: {number} positionedElementWidth Width of the positioned element. |
ControlPointKeyboardMove(_ref) X-Ref |
No description |
ControlPointButton(_ref2) X-Ref |
No description |
ControlPoints(_ref3) X-Ref |
No description |
InsertPoint(_ref7) X-Ref |
No description |
customGradientBarReducer(state, action) X-Ref |
No description |
CustomGradientBar(_ref) X-Ref |
No description |
serializeGradientColor(_ref) X-Ref |
External dependencies |
serializeGradientPosition(position) X-Ref |
No description |
serializeGradientColorStop(_ref2) X-Ref |
No description |
serializeGradientOrientation(orientation) X-Ref |
No description |
serializeGradient(_ref3) X-Ref |
No description |
custom_gradient_picker_utils_ownKeys(object, enumerableOnly) X-Ref |
No description |
custom_gradient_picker_utils_objectSpread(target) X-Ref |
No description |
getLinearGradientRepresentationOfARadial(gradientAST) X-Ref |
No description |
hasUnsupportedLength(item) X-Ref |
No description |
getGradientAstWithDefault(value) X-Ref |
No description |
getGradientAstWithControlPoints(gradientAST, newControlPoints) X-Ref |
No description |
getStopCssColor(colorStop) X-Ref |
No description |
custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
custom_gradient_picker_ownKeys(object, enumerableOnly) X-Ref |
No description |
custom_gradient_picker_objectSpread(target) X-Ref |
No description |
CustomGradientPicker(_ref3) X-Ref |
No description |
GradientPicker(_ref) X-Ref |
No description |
frame_createSuper(Derived) X-Ref |
No description |
frame_isNativeReflectConstruct() X-Ref |
No description |
ModalFrameContent(_ref) X-Ref |
No description |
handleEscapeKeyDown(event) X-Ref |
No description |
ModalFrame() X-Ref |
No description |
hideApp(unhiddenElement) X-Ref |
Hides all elements in the body element from screen-readers except the provided element and elements that should not be hidden from screen-readers. The reason we do this is because `aria-modal="true"` currently is bugged in Safari, and support is spotty in other browsers overall. In the future we should consider removing these helper functions in favor of `aria-modal="true"`. param: {Element} unhiddenElement The element that should not be hidden. |
elementShouldBeHidden(element) X-Ref |
Determines if the passed element should not be hidden from screen readers. return: {boolean} Whether the element should not be hidden from screen-readers. param: {HTMLElement} element The element that should be checked. |
showApp() X-Ref |
Makes all elements in the body that have been hidden by `hideApp` visible again to screen-readers. |
modal_createSuper(Derived) X-Ref |
No description |
modal_isNativeReflectConstruct() X-Ref |
No description |
Modal(props) X-Ref |
No description |
PageControl(_ref) X-Ref |
No description |
FinishButton(props) X-Ref |
Internal dependencies |
Guide(_ref) X-Ref |
No description |
GuidePage(props) X-Ref |
WordPress dependencies |
IconButton(_ref, ref) X-Ref |
No description |
MenuGroup(_ref) X-Ref |
No description |
MenuItem(_ref, ref) X-Ref |
Renders a generic menu item for use inside the more menu. return: {WPComponent} The component to be rendered. param: {Object} props Component props. param: {WPElement} props.children Element to render as child of button. param: {string} props.info Text to use as description for button text. param: {string} props.className Class to set on the container. param: {WPIcon} props.icon Button's `icon` prop. param: {string|Object} props.shortcut Shortcut's `shortcut` prop. param: {boolean} props.isSelected Whether or not the menu item is currently selected. param: {string} [props.role="menuitem"] ARIA role of the menu item. param: {Object} ref React Element ref. |
MenuItemsChoice(_ref) X-Ref |
Internal dependencies |
TabbableContainer(_ref, ref) X-Ref |
Internal dependencies |
navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
use_navigation_tree_nodes_ownKeys(object, enumerableOnly) X-Ref |
No description |
use_navigation_tree_nodes_objectSpread(target) X-Ref |
No description |
use_create_navigation_tree_ownKeys(object, enumerableOnly) X-Ref |
No description |
use_create_navigation_tree_objectSpread(target) X-Ref |
No description |
Navigation(_ref) X-Ref |
No description |
NavigationBackButton(_ref, ref) X-Ref |
No description |
NavigationGroup(_ref) X-Ref |
No description |
NavigationItemBaseContent(props) X-Ref |
Internal dependencies |
use_navigation_tree_item_ownKeys(object, enumerableOnly) X-Ref |
No description |
use_navigation_tree_item_objectSpread(target) X-Ref |
No description |
NavigationItemBase(props) X-Ref |
No description |
item_ownKeys(object, enumerableOnly) X-Ref |
No description |
item_objectSpread(target) X-Ref |
No description |
NavigationItem(props) X-Ref |
No description |
use_navigation_tree_menu_ownKeys(object, enumerableOnly) X-Ref |
No description |
use_navigation_tree_menu_objectSpread(target) X-Ref |
No description |
MenuTitleSearch(_ref) X-Ref |
No description |
onKeyDown(event) X-Ref |
No description |
NavigationMenuTitle(_ref) X-Ref |
No description |
NavigationSearchNoResultsFound(_ref) X-Ref |
No description |
NavigationMenu(props) X-Ref |
No description |
useSpokenMessage(message, politeness) X-Ref |
Custom hook which announces the message with the given politeness, if a valid message is provided. param: {string|WPElement} [message] Message to announce. param: {'polite'|'assertive'} politeness Politeness to announce. |
getDefaultPoliteness(status) X-Ref |
Given a notice status, returns an assumed default politeness for the status. Defaults to 'assertive'. return: {'polite'|'assertive'} Notice politeness. param: {string} [status] Notice status. |
Notice(_ref) X-Ref |
No description |
NoticeList(_ref) X-Ref |
Renders a list of notices. return: {Object} The rendered notices list. param: {Object} $0 Props passed to the component. param: {Array} $0.notices Array of notices to render. param: {Function} $0.onRemove Function called when a notice should be removed / dismissed. param: {Object} $0.className Name of the class used by the component. param: {Object} $0.children Array of children to be rendered inside the notice list. |
PanelHeader(_ref) X-Ref |
No description |
Panel(_ref, ref) X-Ref |
No description |
PanelBody(_ref, ref) X-Ref |
No description |
PanelRow(_ref) X-Ref |
External dependencies |
Placeholder(_ref) X-Ref |
Renders a placeholder. Normally used by blocks to render their empty state. return: {Object} The rendered placeholder. param: {Object} props The component props. param: {WPIcon} props.icon An icon rendered before the label. param: {WPElement} props.children Children to be rendered. param: {string} props.label Title of the placeholder. param: {string} props.instructions Instructions of the placeholder. param: {string} props.className Class to set on the container div. param: {Object} props.notices A rendered notices list. param: {Object} props.preview Preview to be rendered in the placeholder. param: {boolean} props.isColumnLayout Whether a column layout should be used. |
terms_ownKeys(object, enumerableOnly) X-Ref |
No description |
terms_objectSpread(target) X-Ref |
No description |
buildTermsTree(flatTerms) X-Ref |
Returns terms in a tree form. return: {Array} Array of terms in tree format. param: {Array} flatTerms Array of terms in flat format. |
tree_select_getSelectOptions(tree) X-Ref |
No description |
TreeSelect(_ref) X-Ref |
No description |
CategorySelect(_ref) X-Ref |
WordPress dependencies |
AuthorSelect(_ref) X-Ref |
Internal dependencies |
QueryControls(_ref) X-Ref |
No description |
getChecked(options) X-Ref |
No description |
useInitialChecked(options) X-Ref |
No description |
fireChange(element, onChange) X-Ref |
No description |
radio_Radio(_ref, ref) X-Ref |
No description |
useRadioState(initialState) X-Ref |
No description |
radio_group_ownKeys(object, enumerableOnly) X-Ref |
No description |
radio_group_objectSpread(target) X-Ref |
No description |
radio_group_RadioGroup(_ref, ref) X-Ref |
No description |
RadioControl(_ref) X-Ref |
Internal dependencies |
__() X-Ref |
No description |
Resizer() X-Ref |
No description |
__() X-Ref |
No description |
Resizable(props) X-Ref |
No description |
useResizeLabel(_ref) X-Ref |
Custom hook that manages resize listener events. It also provides a label based on current resize width x height values. return: {UseResizeLabelProps} Properties for hook. param: {Object} props param: {string} props.axis Only shows the label corresponding to the axis. param: {number} props.fadeTimeout Duration (ms) before deactivating the resize label. param: {boolean} props.onResize Callback when a resize occurs. Provides { width, height } callback. param: {string} props.position Adjusts label value. param: {boolean} props.showPx Whether to add `PX` to the label. |
getSizeLabel(_ref2) X-Ref |
Gets the resize label based on width and height values (as well as recent changes). return: {undefined | string} The rendered label. param: {Object} props param: {string} props.axis Only shows the label corresponding to the axis. param: {number} props.height Height value. param: {boolean} props.moveX Recent width (x axis) changes. param: {boolean} props.moveY Recent width (y axis) changes. param: {string} props.position Adjusts label value. param: {boolean} props.showPx Whether to add `PX` to the label. param: {number} props.width Width value. |
resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
label_ownKeys(object, enumerableOnly) X-Ref |
No description |
label_objectSpread(target) X-Ref |
No description |
resize_tooltip_label_Label(_ref, ref) X-Ref |
No description |
ResizeTooltip(_ref, ref) X-Ref |
No description |
ResizableBox(_ref) X-Ref |
No description |
ResponsiveWrapper(_ref) X-Ref |
No description |
Sandbox(_ref) X-Ref |
No description |
isFrameAccessible() X-Ref |
No description |
trySandbox() X-Ref |
No description |
tryNoForceSandbox() X-Ref |
No description |
checkMessageForResize(event) X-Ref |
No description |
SnackbarList(_ref) X-Ref |
Renders a list of notices. return: {Object} The rendered notices list. param: {Object} $0 Props passed to the component. param: {Array} $0.notices Array of notices to render. param: {Function} $0.onRemove Function called when a notice should be removed / dismissed. param: {Object} $0.className Name of the class used by the component. param: {Object} $0.children Array of children to be rendered inside the notice list. |
spinner_styles_templateObject() X-Ref |
return: {string} The variable param: {keyof CONFIG} name The variable name |
Spinner() X-Ref |
Internal dependencies |
TabPanel(_ref2) X-Ref |
No description |
TextareaControl(_ref) X-Ref |
No description |
Tip(props) X-Ref |
return: {JSX.Element} Element param: {Props} props |
ToggleControl(_ref) X-Ref |
No description |
onChangeToggle(event) X-Ref |
No description |
ToolbarButton(_ref, ref) X-Ref |
No description |
toolbar_group_collapsed_ownKeys(object, enumerableOnly) X-Ref |
No description |
toolbar_group_collapsed_objectSpread(target) X-Ref |
No description |
ToolbarGroupCollapsed(_ref) X-Ref |
No description |
ToolbarGroup(_ref) X-Ref |
Renders a collapsible group of controls The `controls` prop accepts an array of sets. A set is an array of controls. Controls have the following shape: ``` { icon: string, title: string, subscript: string, onClick: Function, isActive: boolean, isDisabled: boolean } ``` For convenience it is also possible to pass only an array of controls. It is then assumed this is the only set. Either `controls` or `children` is required, otherwise this components renders nothing. param: {Object} props Component props. param: {Array} [props.controls] The controls to render in this toolbar. param: {WPElement} [props.children] Any other things to render inside the toolbar besides the controls. param: {string} [props.className] Class to set on the container div. param: {boolean} [props.isCollapsed] Turns ToolbarGroup into a dropdown menu. param: {string} [props.title] ARIA label for dropdown menu if is collapsed. |
useToolbarState(initialState) X-Ref |
No description |
ToolbarContainer(_ref, ref) X-Ref |
No description |
toolbar_Toolbar(_ref, ref) X-Ref |
Renders a toolbar. To add controls, simply pass `ToolbarButton` components as children. param: {Object} props Component props. param: {string} [props.className] Class to set on the container div. param: {string} [props.label] ARIA label for toolbar container. param: {Object} ref React Element ref. |
RovingTabIndex(_ref) X-Ref |
Provider for adding roving tab index behaviors to tree grid structures. param: {Object} props Component props. param: {WPElement} props.children Children to be rendered |
getRowFocusables(rowElement) X-Ref |
Return focusables in a row element, excluding those from other branches nested within the row. return: {?Array} The array of focusables in the row. param: {Element} rowElement The DOM element representing the row. |
TreeGrid(_ref, ref) X-Ref |
Renders both a table and tbody element, used to create a tree hierarchy. param: {Object} props Component props. param: {WPElement} props.children Children to be rendered. param: {Object} ref A ref to the underlying DOM table element. |
TreeGridRow(_ref, ref) X-Ref |
WordPress dependencies |
roving_tab_index_item_ownKeys(object, enumerableOnly) X-Ref |
No description |
roving_tab_index_item_objectSpread(target) X-Ref |
No description |
stopPropagation(event) X-Ref |
No description |
useNavigateRegions(ref) X-Ref |
No description |
focusRegion(offset) X-Ref |
No description |
onClick() X-Ref |
No description |
with_fallback_styles_createSuper(Derived) X-Ref |
No description |
with_fallback_styles_isNativeReflectConstruct() X-Ref |
No description |
_class() X-Ref |
No description |
with_filters_createSuper(Derived) X-Ref |
No description |
with_filters_isNativeReflectConstruct() X-Ref |
No description |
withFilters(hookName) X-Ref |
Creates a higher-order component which adds filtering capability to the wrapped component. Filters get applied when the original component is about to be mounted. When a filter is added or removed that matches the hook name, the wrapped component re-renders. return: {Function} Higher-order component factory. param: {string} hookName Hook name exposed to be used by filters. |
ensureFilteredComponent() X-Ref |
Initializes the FilteredComponent variable once, if not already assigned. Subsequent calls are effectively a noop. |
FilteredComponentRenderer() X-Ref |
No description |
onHooksUpdated(updatedHookName) X-Ref |
When a filter is added or removed for the matching hook name, each mounted instance should re-render with the new filters having been applied to the original component. param: {string} updatedHookName Name of the hook that was updated. |
isComponentLike(object) X-Ref |
Returns true if the given object is component-like. An object is component- like if it is an instance of wp.element.Component, or is a function. return: {boolean} Whether object is component-like. param: {*} object Object to test. |
with_notices_ownKeys(object, enumerableOnly) X-Ref |
No description |
with_notices_objectSpread(target) X-Ref |
No description |
with_notices_createSuper(Derived) X-Ref |
No description |
with_notices_isNativeReflectConstruct() X-Ref |
No description |
WrappedBlockEdit() X-Ref |
No description |
component_system_provider_ownKeys(object, enumerableOnly) X-Ref |
No description |
component_system_provider_objectSpread(target) X-Ref |
No description |
ComponentSystemProvider(_ref) X-Ref |
param: {Object} props param: {string[]} [props.__unstableNextInclude] param: {import('react').ReactNode} props.children param: {any} props.value |
_defineProperty(obj, key, value) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
onDateChange() X-Ref |
No description |
onFocusChange() X-Ref |
No description |
onClose() X-Ref |
No description |
isOutsideRange() X-Ref |
No description |
isDayBlocked() X-Ref |
No description |
isDayHighlighted() X-Ref |
No description |
onPrevMonthClick() X-Ref |
No description |
onNextMonthClick() X-Ref |
No description |
onOutsideClick() X-Ref |
No description |
onBlur() X-Ref |
No description |
DayPickerSingleDateController(props) X-Ref |
No description |
today(day) X-Ref |
No description |
blocked(day) X-Ref |
No description |
blockedCalendar(day) X-Ref |
No description |
blockedOutOfRange(day) X-Ref |
No description |
highlightedCalendar(day) X-Ref |
No description |
valid(day) X-Ref |
No description |
hovered(day) X-Ref |
No description |
selected(day) X-Ref |
No description |
firstDayOfWeek(day) X-Ref |
No description |
lastDayOfWeek(day) X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentWillReceiveProps(nextProps) X-Ref |
No description |
componentWillUpdate() X-Ref |
No description |
onDayClick(day, e) X-Ref |
No description |
onDayMouseEnter(day) X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
onPrevMonthClick() X-Ref |
No description |
onNextMonthClick() X-Ref |
No description |
onMonthChange(newMonth) X-Ref |
No description |
onYearChange(newMonth) X-Ref |
No description |
getFirstFocusableDay(newMonth) X-Ref |
No description |
getModifiers(visibleDays) X-Ref |
No description |
getModifiersForDay(day) X-Ref |
No description |
getStateForNewMonth(nextProps) X-Ref |
No description |
addModifier(updatedDays, day, modifier) X-Ref |
No description |
deleteModifier(updatedDays, day, modifier) X-Ref |
No description |
isBlocked(day) X-Ref |
No description |
isHovered(day) X-Ref |
No description |
isSelected(day) X-Ref |
No description |
isToday(day) X-Ref |
No description |
isFirstDayOfWeek(day) X-Ref |
No description |
isLastDayOfWeek(day) X-Ref |
No description |
render() X-Ref |
No description |
initialVisibleMonth() X-Ref |
No description |
y(a) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
registerCSSInterfaceWithDefaultTheme() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
create(stylesObject) X-Ref |
Function required as part of the react-with-styles interface. Parses the styles provided by react-with-styles to produce class names based on the style name and optionally the namespace if available. stylesObject {Object} The styles object passed to withStyles. Return an object mapping style names to class names. |
resolve(stylesArray) X-Ref |
Process styles to be consumed by a component. stylesArray {Array} Array of the following: values returned by create, plain JavaScript objects representing inline styles, or arrays thereof. Return an object with optional className and style properties to be spread on a component. |
inspect(value, from, noIndent) X-Ref |
No description |
wrapQuotes(s, defaultStyle, opts) X-Ref |
No description |
quote(s) X-Ref |
No description |
isArray(obj) X-Ref |
No description |
isDate(obj) X-Ref |
No description |
isRegExp(obj) X-Ref |
No description |
isError(obj) X-Ref |
No description |
isSymbol(obj) X-Ref |
No description |
isString(obj) X-Ref |
No description |
isNumber(obj) X-Ref |
No description |
isBigInt(obj) X-Ref |
No description |
isBoolean(obj) X-Ref |
No description |
has(obj, key) X-Ref |
No description |
toStr(obj) X-Ref |
No description |
nameOf(f) X-Ref |
No description |
indexOf(xs, x) X-Ref |
No description |
isMap(x) X-Ref |
No description |
isWeakMap(x) X-Ref |
No description |
isSet(x) X-Ref |
No description |
isWeakSet(x) X-Ref |
No description |
isElement(x) X-Ref |
No description |
inspectString(str, opts) X-Ref |
No description |
lowbyte(c) X-Ref |
No description |
markBoxed(str) X-Ref |
No description |
weakCollectionOf(type) X-Ref |
No description |
collectionOf(type, size, entries, indent) X-Ref |
No description |
singleLineValues(xs) X-Ref |
No description |
getIndent(opts, depth) X-Ref |
No description |
indentedJoin(xs, indent) X-Ref |
No description |
arrObjKeys(obj, inspect) X-Ref |
No description |
getClassName(namespace, styleName) X-Ref |
Construct a class name. namespace {String} Used to construct unique class names. styleName {String} Name identifying the specific style. Return the class name. |
separateStyles(stylesArray) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
registerInterfaceWithDefaultTheme(reactWithStylesInterface) X-Ref |
No description |
isValidMoment(testMoment) X-Ref |
No description |
constructPropValidatorVariations(propValidator) X-Ref |
No description |
createInvalidRequiredErrorMessage(propName, componentName, value) X-Ref |
No description |
preValidationRequireCheck(isRequired, componentName, propFullName, propValue) X-Ref |
No description |
createMomentChecker(type, typeValidator, validator, momentType) X-Ref |
No description |
propValidator(isRequired, predicate, props,propName,componentName,location,propFullName) X-Ref |
No description |
noop() X-Ref |
No description |
noopThunk() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransitionMonths) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
onOutsideClick() X-Ref |
No description |
initialVisibleMonth() X-Ref |
No description |
onPrevMonthClick() X-Ref |
No description |
onNextMonthClick() X-Ref |
No description |
onMonthChange() X-Ref |
No description |
onYearChange() X-Ref |
No description |
onMultiplyScrollableMonths() X-Ref |
No description |
onDayClick() X-Ref |
No description |
onDayMouseEnter() X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
onBlur() X-Ref |
No description |
DayPicker(props) X-Ref |
No description |
onKeyboardShortcutsPanelClose() X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentWillReceiveProps(nextProps) X-Ref |
No description |
shouldComponentUpdate(nextProps, nextState) X-Ref |
No description |
componentWillUpdate() X-Ref |
No description |
componentDidUpdate(prevProps) X-Ref |
No description |
componentWillUnmount() X-Ref |
No description |
onKeyDown(e) X-Ref |
No description |
onFinalKeyDown(e) X-Ref |
No description |
onKeyboardShortcutsPanelClose() X-Ref |
No description |
onPrevMonthClick(nextFocusedDate, e) X-Ref |
No description |
onMonthChange(currentMonth) X-Ref |
No description |
onYearChange(currentMonth) X-Ref |
No description |
onNextMonthClick(nextFocusedDate, e) X-Ref |
No description |
getFirstDayOfWeek() X-Ref |
No description |
getFirstVisibleIndex() X-Ref |
No description |
getFocusedDay(newMonth) X-Ref |
No description |
setMonthTitleHeight(monthTitleHeight) X-Ref |
No description |
setCalendarMonthWeeks(currentMonth) X-Ref |
No description |
setContainerRef(ref) X-Ref |
No description |
setCalendarInfoRef(ref) X-Ref |
No description |
setTransitionContainerRef(ref) X-Ref |
No description |
maybeTransitionNextMonth(newFocusedDate) X-Ref |
No description |
maybeTransitionPrevMonth(newFocusedDate) X-Ref |
No description |
multiplyScrollableMonths(e) X-Ref |
No description |
isHorizontal() X-Ref |
No description |
isVertical() X-Ref |
No description |
updateStateAfterMonthTransition() X-Ref |
No description |
adjustDayPickerHeight(newMonthHeight) X-Ref |
No description |
calculateAndSetDayPickerHeight() X-Ref |
No description |
openKeyboardShortcutsPanel(onCloseCallBack) X-Ref |
No description |
closeKeyboardShortcutsPanel() X-Ref |
No description |
renderNavigation() X-Ref |
No description |
onNextMonthClick(e) X-Ref |
No description |
onPrevMonthClick(e) X-Ref |
No description |
renderWeekHeader(index) X-Ref |
No description |
render() X-Ref |
No description |
onClick(e) X-Ref |
No description |
onMouseUp() X-Ref |
No description |
getStatics(component) X-Ref |
No description |
hoistNonReactStatics(targetComponent, sourceComponent, blacklist) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
throttle(func, wait, options) X-Ref |
Creates a throttled function that only invokes `func` at most once per every `wait` milliseconds. The throttled function comes with a `cancel` method to cancel delayed `func` invocations and a `flush` method to immediately invoke them. Provide `options` to indicate whether `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. The `func` is invoked with the last arguments provided to the throttled function. Subsequent calls to the throttled function return the result of the last `func` invocation. **Note:** If `leading` and `trailing` options are `true`, `func` is invoked on the trailing edge of the timeout only if the throttled function is invoked more than once during the `wait` timeout. If `wait` is `0` and `leading` is `false`, `func` invocation is deferred until to the next tick, similar to `setTimeout` with a timeout of `0`. See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) for details over the differences between `_.throttle` and `_.debounce`. param: {Function} func The function to throttle. param: {number} [wait=0] The number of milliseconds to throttle invocations to. param: {Object} [options={}] The options object. param: {boolean} [options.leading=true] param: {boolean} [options.trailing=true] since: 0.1.0 returns: {Function} Returns the new throttled function. |
debounce(func, wait, options) X-Ref |
Creates a debounced function that delays invoking `func` until after `wait` milliseconds have elapsed since the last time the debounced function was invoked. The debounced function comes with a `cancel` method to cancel delayed `func` invocations and a `flush` method to immediately invoke them. Provide `options` to indicate whether `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. The `func` is invoked with the last arguments provided to the debounced function. Subsequent calls to the debounced function return the result of the last `func` invocation. **Note:** If `leading` and `trailing` options are `true`, `func` is invoked on the trailing edge of the timeout only if the debounced function is invoked more than once during the `wait` timeout. If `wait` is `0` and `leading` is `false`, `func` invocation is deferred until to the next tick, similar to `setTimeout` with a timeout of `0`. See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) for details over the differences between `_.debounce` and `_.throttle`. param: {Function} func The function to debounce. param: {number} [wait=0] The number of milliseconds to delay. param: {Object} [options={}] The options object. param: {boolean} [options.leading=false] param: {number} [options.maxWait] param: {boolean} [options.trailing=true] since: 0.1.0 returns: {Function} Returns the new debounced function. |
invokeFunc(time) X-Ref |
No description |
leadingEdge(time) X-Ref |
No description |
remainingWait(time) X-Ref |
No description |
shouldInvoke(time) X-Ref |
No description |
timerExpired() X-Ref |
No description |
trailingEdge(time) X-Ref |
No description |
cancel() X-Ref |
No description |
flush() X-Ref |
No description |
debounced() X-Ref |
No description |
toNumber(value) X-Ref |
Converts `value` to a number. param: {*} value The value to process. since: 4.0.0 returns: {number} Returns the number. |
isSymbol(value) X-Ref |
Checks if `value` is classified as a `Symbol` primitive or object. param: {*} value The value to check. since: 4.0.0 returns: {boolean} Returns `true` if `value` is a symbol, else `false`. |
baseGetTag(value) X-Ref |
The base implementation of `getTag` without fallbacks for buggy environments. param: {*} value The value to query. returns: {string} Returns the `toStringTag`. |
getRawTag(value) X-Ref |
A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. param: {*} value The value to query. returns: {string} Returns the raw `toStringTag`. |
objectToString(value) X-Ref |
Converts `value` to a string using `Object.prototype.toString`. param: {*} value The value to convert. returns: {string} Returns the converted string. |
isObjectLike(value) X-Ref |
Checks if `value` is object-like. A value is object-like if it's not `null` and has a `typeof` result of "object". param: {*} value The value to check. since: 4.0.0 returns: {boolean} Returns `true` if `value` is object-like, else `false`. |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
OutsideClickHandler() X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentDidUpdate(_ref2) X-Ref |
No description |
componentWillUnmount() X-Ref |
No description |
onMouseDown(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
setChildNodeRef(ref) X-Ref |
No description |
addMouseDownEventListener(useCapture) X-Ref |
No description |
removeEventListeners() X-Ref |
No description |
render() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
onDayClick() X-Ref |
No description |
onDayMouseEnter() X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
onMonthChange() X-Ref |
No description |
onYearChange() X-Ref |
No description |
onMonthTransitionEnd() X-Ref |
No description |
getMonths(initialMonth, numberOfMonths, withoutTransitionMonths) X-Ref |
No description |
CalendarMonthGrid(props) X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentWillReceiveProps(nextProps) X-Ref |
No description |
shouldComponentUpdate(nextProps, nextState) X-Ref |
No description |
componentDidUpdate() X-Ref |
No description |
componentWillUnmount() X-Ref |
No description |
onTransitionEnd() X-Ref |
No description |
onMonthSelect(currentMonth, newMonthVal) X-Ref |
No description |
onYearSelect(currentMonth, newYearVal) X-Ref |
No description |
setContainerRef(ref) X-Ref |
No description |
render() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
onDayClick() X-Ref |
No description |
onDayMouseEnter() X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
onMonthSelect() X-Ref |
No description |
onYearSelect() X-Ref |
No description |
renderCalendarDay(props) X-Ref |
No description |
CalendarMonth(props) X-Ref |
No description |
componentDidMount() X-Ref |
No description |
componentWillReceiveProps(nextProps) X-Ref |
No description |
shouldComponentUpdate(nextProps, nextState) X-Ref |
No description |
componentWillUnmount() X-Ref |
No description |
setMonthTitleHeight() X-Ref |
No description |
setCaptionRef(ref) X-Ref |
No description |
render() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
CalendarWeek(_ref) X-Ref |
No description |
getPhrase(phrase, args) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
getStyles(stylesObj, isHovered) X-Ref |
No description |
onDayClick() X-Ref |
No description |
onDayMouseEnter() X-Ref |
No description |
onDayMouseLeave() X-Ref |
No description |
CustomizableCalendarDay() X-Ref |
No description |
shouldComponentUpdate(nextProps, nextState) X-Ref |
No description |
componentDidUpdate(prevProps) X-Ref |
No description |
onDayClick(day, e) X-Ref |
No description |
onDayMouseEnter(day, e) X-Ref |
No description |
onDayMouseLeave(day, e) X-Ref |
No description |
onKeyDown(day, e) X-Ref |
No description |
setButtonRef(ref) X-Ref |
No description |
render() X-Ref |
No description |
onMouseEnter(e) X-Ref |
No description |
onMouseLeave(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
onClick(e) X-Ref |
No description |
onKeyDown(e) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getCalendarMonthWeeks(month, enableOutsideDays) X-Ref |
No description |
isTransitionEndSupported() X-Ref |
No description |
getTransformStyles(transformValue) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isPrevMonth(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isNextMonth(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
onPrevMonthClick() X-Ref |
No description |
onNextMonthClick() X-Ref |
No description |
DayPickerNavigation(_ref) X-Ref |
No description |
onKeyUp(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
onKeyUp(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
LeftArrow(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
RightArrow(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
ChevronUp(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
ChevronDown(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_classCallCheck(instance, Constructor) X-Ref |
No description |
_possibleConstructorReturn(self, call) X-Ref |
No description |
_inherits(subClass, superClass) X-Ref |
No description |
openKeyboardShortcutsPanel() X-Ref |
No description |
closeKeyboardShortcutsPanel() X-Ref |
No description |
getKeyboardShortcuts(phrases) X-Ref |
No description |
DayPickerKeyboardShortcuts() X-Ref |
No description |
componentWillReceiveProps(nextProps) X-Ref |
No description |
componentDidUpdate() X-Ref |
No description |
onKeyDown(e) X-Ref |
No description |
onShowKeyboardShortcutsButtonClick() X-Ref |
No description |
setShowKeyboardShortcutsButtonRef(ref) X-Ref |
No description |
setHideKeyboardShortcutsButtonRef(ref) X-Ref |
No description |
handleFocus() X-Ref |
No description |
render() X-Ref |
No description |
onKeyDown(e) X-Ref |
No description |
onMouseUp(e) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
KeyboardShortcutRow(_ref) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
CloseButton(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getBlankDaysBeforeFirstDay(firstDayOfMonth, firstDayOfWeek) X-Ref |
No description |
getNumberOfCalendarMonthWeeks(month) X-Ref |
No description |
getActiveElement() X-Ref |
No description |
Generated: Sun Mar 7 01:00:03 2021 | Cross-referenced by PHPXref 0.7.1 |