[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 74207 lines (2395 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
SlotComponent:: (11 methods):
use_slot_useSlot()
rng()
validate()
stringify_stringify()
v4()
StyleProvider()
useForceUpdate()
fill_Fill()
slot_Slot()
useSlotRegistry()
SlotFillProvider()
provider_SlotFillProvider:: (458 methods):
slot_fill_Fill()
Provider()
createSlotFill()
getDefaultOrigin()
getAnimateClassName()
Animate()
computeAnchorRect()
popover_getComputedStyle()
withoutPadding()
setAttribute()
setStyle()
setClass()
getAnchorDocument()
PopoverSlot()
Shortcut()
Tooltip()
transformValue()
getItemId()
getAlignmentIndex()
emotion_react_browser_esm_css()
emotion_react_browser_esm_merge()
names()
rgba()
reduceMotion()
_EMOTION_STRINGIFIED_CSS_ERROR__()
cell_Cell()
useSealedState()
groupItems()
flatten()
reverse()
findEnabledItemById()
isUpdater()
applyState()
unstable_useIdState()
isElementPreceding()
findDOMIndex()
getMaxLength()
verticalizeItems()
createEmptyItem()
fillGroups()
placeItemsAfter()
getItemsInGroup()
getOppositeOrientation()
addItemAtIndex()
sortBasedOnDOMPosition()
setItemsBasedOnDOMPosition()
getCommonParent()
useIntersectionObserver()
useTimeoutObserver()
useSortBasedOnDOMPosition()
reducer()
useAction()
useIsUnmountedRef()
useCompositeState()
createFocusEvent()
fireBlurEvent()
createKeyboardEvent()
fireKeyboardEvent()
getNextActiveElementOnBlur()
canProxyKeyboardEvent()
useKeyboardEventProxy()
useActiveElementRef()
findFirstEnabledItemInTheLastRow()
isItem()
useScheduleUserFocus()
alignment_matrix_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
AlignmentMatrixControlIcon()
useBaseId()
AlignmentMatrixControl()
__extends()
__()
__rest()
__decorate()
__param()
__metadata()
__awaiter()
adopt()
fulfilled()
rejected()
step()
__generator()
verb()
step()
__exportStar()
__values()
tslib_es6_read()
__spread()
__spreadArrays()
tslib_es6_spreadArray()
__await()
__asyncGenerator()
verb()
resume()
step()
fulfill()
reject()
settle()
__asyncDelegator()
verb()
__asyncValues()
verb()
settle()
__makeTemplateObject()
__importStar()
__importDefault()
__classPrivateFieldGet()
__classPrivateFieldSet()
loadFeatures()
useFeatures()
useVisualElementContext()
initPrefersReducedMotion()
useReducedMotion()
useReducedMotionConfig()
useVisualElement()
is_ref_object_isRefObject()
useMotionRef()
isVariantLabels()
isVariantLabel()
getCurrent()
getVelocity()
resolveVariantFromProps()
resolveVariant()
checkIfControllingVariants()
checkIfVariantNode()
getCurrentTreeVariants()
useCreateMotionContext()
variantLabelsAsDependency()
useConstant()
createRenderStep()
velocityPerSecond()
addUniqueItem()
removeItem()
moveItem()
SubscriptionManager()
MotionValue()
motionValue()
findSpring()
approximateRoot()
calcAngularFreq()
isSpringType()
getSpringOptions()
spring()
createSpring()
isString()
parseHex()
hueToRgb()
hslaToRgba()
test()
analyse()
complex_parse()
createTransformer()
getAnimatableNone()
getMixer()
mix_complex_analyse()
detectMixerFactory()
createMixers()
fastInterpolate()
slowInterpolate()
interpolate()
defaultEasing()
defaultOffset()
convertOffsetToTimes()
keyframes_keyframes()
createInterpolator()
decay()
detectAnimationFromOptions()
loopElapsed()
reverseElapsed()
hasRepeatDelayElapsed()
animate()
repeat()
complete()
update()
play()
inertia()
isOutOfBounds()
boundaryNearest()
startAnimation()
startSpring()
binarySubdivide()
newtonRaphsonIterate()
cubicBezier()
getTForX()
applyDefaultFilter()
animatable_none_getAnimatableNone()
isTransitionDefined()
convertTransitionToAnimationOptions()
getDelayFromTransition()
hydrateKeyframes()
getPopmotionAnimationOptions()
getAnimation()
start()
set()
isZero()
getZeroUnit()
getValueTransition()
startAnimation()
animate_animate()
mixValues()
getRadius()
compress()
copyAxisInto()
copyBoxInto()
isIdentityScale()
hasScale()
hasTransform()
hasTranslate()
scalePoint()
applyPointDelta()
applyAxisDelta()
applyBoxDelta()
applyTreeDeltas()
translateAxis()
transformAxis()
transformBox()
distance()
calcLength()
isNear()
calcAxisDelta()
calcBoxDelta()
calcRelativeAxis()
calcRelativeBox()
calcRelativeAxisPosition()
calcRelativePosition()
removePointDelta()
removeAxisDelta()
removeAxisTransforms()
removeBoxTransforms()
isAxisDeltaZero()
isDeltaZero()
boxEquals()
NodeStack()
addScaleCorrector()
buildProjectionTransform()
eachAxis()
sortTransformProps()
isTransformProp()
isTransformOriginProp()
FlatTree()
resolveMotionValue()
createProjectionNode()
ProjectionNode()
updateLayout()
notifyLayoutUpdate()
clearSnapshot()
clearMeasurements()
resetTransformStyle()
finishAnimation()
resolveTargetDelta()
calcProjection()
resetRotation()
removeLeadSnapshots()
mixAxisDelta()
mixAxis()
mixBox()
hasOpacityCrossfade()
mountNodeEarly()
roundAxis()
roundBox()
useProjectionId()
useProjection()
VisualElementHandler()
motion_createMotionComponent()
MotionComponent()
useLayoutId()
createMotionProxy()
custom()
isSVGComponent()
isForcedMotionValue()
buildTransform()
buildTransformOrigin()
isCSSVariable()
buildHTMLStyles()
copyRawValuesOnly()
useInitialMotionValues()
useStyle()
useHTMLProps()
isValidMotionProp()
loadExternalIsValidProp()
filterProps()
calcOrigin()
calcSVGTransformOrigin()
buildSVGPath()
buildSVGAttrs()
useSVGProps()
createUseRender()
renderHTML()
renderSVG()
scrapeMotionValuesFromProps()
scrape_motion_values_scrapeMotionValuesFromProps()
isAnimationControls()
makeState()
makeLatestValues()
create_config_createDomMotionConfig()
addDomEvent()
useDomEvent()
useFocusGesture()
isMouseEvent()
isTouchEvent()
filterPrimaryPointer()
pointFromTouch()
pointFromMouse()
extractEventInfo()
getPointerEventName()
addPointerEvent()
usePointerEvent()
createLock()
getGlobalLock()
isDragActive()
createHoverEvent()
useHoverGesture()
useUnmountEffect()
useTapGesture()
removePointerEndListener()
checkPointerEnd()
onPointerUp()
onPointerCancel()
onPointerDown()
initIntersectionObserver()
observeIntersection()
useViewport()
use_viewport_useIntersectionObserver()
useMissingIntersectionObserver()
usePresence()
useIsPresent()
isPresent()
shallowCompare()
setMotionValue()
setTarget()
setVariants()
setValues()
checkTargetForNewValues()
getOriginFromTransition()
getOrigin()
animateVisualElement()
animateVariant()
animateTarget()
animateChildren()
stopAnimation()
sortByTreeOrder()
shouldBlockAnimation()
animateList()
createAnimationState()
isAnimated()
setAnimateFunction()
animateChanges()
setActive()
checkVariantsDidChange()
createTypeState()
createState()
PanSession()
transformPoint()
subtractPoint()
getPanInfo()
startDevicePoint()
lastDevicePoint()
PanSession_getVelocity()
applyConstraints()
calcRelativeAxisConstraints()
calcRelativeConstraints()
calcViewportAxisConstraints()
calcViewportConstraints()
constraints_calcOrigin()
rebaseAxisConstraints()
resolveDragElastic()
resolveAxisElastic()
resolvePointElastic()
convertBoundingBoxToBox()
convertBoxToBoundingBox()
transformBoxPoints()
measureViewportBox()
measurePageBox()
VisualElementDragControls()
shouldDrag()
getCurrentDirection()
useDrag()
usePanGesture()
onPointerDown()
createLifecycles()
updateMotionValuesFromProps()
render()
triggerBuild()
update()
bindToMotionValue()
css_variables_conversion_isCSSVariable()
parseCSSVariable()
getVariableValue()
resolveCSSVariables()
removeNonTranslationalTransform()
unitConversion()
visual_element_getComputedStyle()
pixelsToPercent()
MeasureLayoutWithContext()
MeasureLayout()
createDomMotionComponent()
styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useFlexItem()
useFlexBlock()
FlexBlock()
FlexItem()
useResponsiveValue()
space()
getConvertedKey()
rtl()
hook_useDeprecatedProps()
useFlex()
component_Flex()
truncate_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
truncateMiddle()
truncateContent()
useTruncate()
getColorComputationNode()
isColor()
_getComputedBackgroundColor()
getOptimalTextColor()
getOptimalTextShade()
text_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
createHighlighterText()
getFontSize()
getHeadingFontSize()
getLineHeight()
hook_EMOTION_STRINGIFIED_CSS_ERROR_()
useText()
component_Text()
input_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
Backdrop()
label_Label()
useUniqueId()
getUIFlexProps()
InputBase()
maths_b2a210f4_esm_clamp()
rubberband()
rubberbandIfOutOfBounds()
computeRubberband()
actions_8e12537b_esm_defineProperty()
actions_8e12537b_esm_ownKeys()
actions_8e12537b_esm_objectSpread2()
capitalize()
toHandlerProp()
parseProp()
toDomEventType()
isTouch()
getPointerType()
getCurrentTargetTouchList()
getTouchList()
getValueEvent()
distanceAngle()
touchIds()
touchDistanceAngle()
pointerId()
pointerValues()
wheelValues()
scrollValues()
getEventDetails()
call()
noop()
chain()
assignDefault()
Engine:: (1 method):
selectAxis()
CoordinatesEngine:: (0 methods):
DragEngine:: (6 methods):
persistEvent()
actions_8e12537b_esm_supportsTouchEvents()
isTouchScreen()
actions_8e12537b_esm_supportsPointerEvents()
supportsPointerLock()
supportsGestureEvents()
PinchEngine:: (0 methods):
MoveEngine:: (0 methods):
ScrollEngine:: (0 methods):
WheelEngine:: (0 methods):
HoverEngine:: (5 methods):
actions_8e12537b_esm_registerAction()
use_gesture_core_esm_objectWithoutPropertiesLoose()
_objectWithoutProperties()
resolveWith()
use_gesture_core_esm_parse()
EventStore:: (0 methods):
TimeoutStore:: (0 methods):
Controller:: (296 methods):
setupGesture()
resolveGestures()
sortHandlers()
registerGesture()
use_gesture_core_esm_parseMergedHandlers()
useRecognizers()
use_gesture_react_esm_useDrag()
usePinch()
useWheel()
useScroll()
useMove()
useHover()
createUseGesture()
useGesture()
getDragCursor()
useDragCursor()
mergeInitialState()
inputControlStateReducer()
useInputControlStateReducer()
use_update_effect_useUpdateEffect()
InputField()
input_control_useUniqueId()
InputControl()
angle_picker_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
AngleCircle()
getAngle()
useSpacer()
Spacer()
AnglePickerControl()
filterOptions()
getDefaultUseItems()
getAutoCompleterUI()
AutocompleterUI()
useAutocomplete()
insertCompletion()
select()
reset()
announce()
onChangeOptions()
handleKeyDown()
useAutocompleteProps()
_onKeyDown()
Autocomplete()
font()
base_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
border_box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useBorderBoxControlLinkedButton()
useBorderBoxControlVisualizer()
number_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
getNumber()
add()
subtract()
getPrecision()
roundClamp()
roundClampString()
isValueDefined()
isValueEmpty()
getDefinedValue()
isValueNumeric()
NumberControl()
unit_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
border_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useBorderControlStylePicker()
useObservableState()
Dropdown()
toggle()
closeIfFocusOutside()
close()
getAlignmentProps()
getValidChildren()
useHStack()
HStack()
icon_Icon()
select_control_useUniqueId()
SelectControl()
useControlledState()
floatClamp()
useControlledRangeValue()
useDebouncedHoverInteraction()
range_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
input_range_InputRange()
RangeMark()
RangeRail()
Marks()
useMarks()
SimpleTooltip()
useTooltipPosition()
RangeControl()
color_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
getWindow_getWindow()
isElement()
isHTMLElement()
isShadowRoot()
getBoundingClientRect()
getWindowScroll()
getHTMLElementScroll()
getNodeScroll()
getNodeName()
getDocumentElement()
getWindowScrollBarX()
getComputedStyle_getComputedStyle()
isScrollParent()
isElementScaled()
getCompositeRect()
getLayoutRect()
getParentNode()
getScrollParent()
listScrollParents()
isTableElement()
getTrueOffsetParent()
getContainingBlock()
getOffsetParent()
orderModifiers_order()
sort()
orderModifiers()
debounce()
mergeByName()
areValidElements()
popperGenerator()
runModifierEffects()
cleanupModifierEffects()
effect()
getBasePlacement()
getVariation()
getMainAxisFromPlacement()
computeOffsets()
popperOffsets()
roundOffsetsByDPR()
mapToStyles()
computeStyles()
applyStyles()
applyStyles_effect()
distanceAndSkiddingToXY()
offset()
getOppositePlacement()
getOppositeVariationPlacement()
getViewportRect()
getDocumentRect()
contains_contains()
rectToClientRect()
getInnerBoundingClientRect()
getClientRectFromMixedType()
getClippingParents()
getClippingRect()
getFreshSideObject()
mergePaddingObject()
expandToHashMap()
detectOverflow()
computeAutoPlacement()
getExpandedFallbackPlacements()
flip()
getAltAxis()
within()
withinMaxClamp()
preventOverflow()
arrow()
arrow_effect()
getSideOffsets()
isAnySideFullyClipped()
hide()
useLastValue()
useDisclosureState()
useDialogState()
PopoverState_applyStyles()
usePopoverState()
useTooltipState()
getBodyElement()
Portal()
globallyHideTooltipOnEscape()
component_Shortcut()
tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
content_TooltipContent()
component_Tooltip()
index_module_u()
useControlledValue()
isLegacyProps()
getColorFromLegacyProps()
use_deprecated_props_useDeprecatedProps()
Option()
DropdownLinkAction()
ButtonAction()
CircularOptionPicker()
useVStack()
VStack()
component_Truncate()
useHeading()
UnconnectedHeading()
color_palette_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
SinglePalette()
MultiplePalettes()
CustomColorPickerDropdown()
ColorPalette()
getParsedQuantityAndUnit()
hasUnits()
parseQuantityAndUnitFromRawValue()
getValidParsedQuantityAndUnit()
getAccessibleLabelForUnit()
filterUnitsWithSettings()
getUnitsWithCurrentUnit()
useBorderControlDropdown()
UnitSelectControl()
UnforwardedUnitControl()
useBorderControl()
utils_getAlignmentProps()
useGrid()
Grid()
useBorderBoxControlSplitControls()
useBorderBoxControl()
box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
BoxUnitControl()
unit_control_Tooltip()
mode()
getAllValue()
getAllUnitFallback()
isValuesMixed()
isValuesDefined()
getInitialSide()
normalizeSides()
AllInputControl()
BoxInputControls()
AxialInputControls()
box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
BoxControlIcon()
LinkedButton()
box_control_visualizer_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
BoxControlVisualizer()
Sides()
Top()
Right()
Bottom()
Left()
useSideAnimation()
box_control_useUniqueId()
BoxControl()
ButtonGroup()
elevation_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
getBoxShadow()
useElevation()
component_Elevation()
card_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
getBorders()
useSurface()
card_hook_useDeprecatedProps()
useCard()
component_Card()
scrollable_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useScrollable()
component_Scrollable()
useCardBody()
CardBody()
divider_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
UnconnectedDivider()
useCardDivider()
CardDivider()
useCardFooter()
CardFooter()
useCardHeader()
CardHeader()
useCardMedia()
CardMedia()
CheckboxControl()
ClipboardButton()
item_group_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useItemGroup()
ItemGroup()
clampPercent()
isOverlapping()
addControlPoint()
removeControlPoint()
updateControlPoint()
updateControlPointPosition()
updateControlPointColor()
updateControlPointColorByPosition()
getHorizontalRelativeGradientPosition()
ControlPointButton()
GradientColorPickerDropdown()
ControlPoints()
InsertPoint()
customGradientBarReducer()
CustomGradientBar()
serializeGradientColor()
serializeGradientPosition()
serializeGradientColorStop()
serializeGradientOrientation()
serializeGradient()
getLinearGradientRepresentation()
hasUnsupportedLength()
getGradientAstWithDefault()
getGradientAstWithControlPoints()
getStopCssColor()
custom_gradient_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
CustomGradientPicker()
SingleOrigin()
MultipleOrigin()
GradientPicker()
cycleValue()
NavigableContainer:: (10 methods):
NavigableMenu()
mergeProps()
DropdownMenu()
palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
NameInput()
getNameForPosition()
palette_edit_Option()
isTemporaryElement()
PaletteEditListView()
PaletteEdit()
TokenInput:: (157 methods):
SuggestionsList()
ComboboxControl()
hideApp()
elementShouldBeHidden()
showApp()
Modal()
handleEscapeKeyDown()
confirm_dialog_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
ConfirmDialog()
objectWithoutPropertiesLoose_objectWithoutPropertiesLoose()
index_module_t()
cbToCb()
downshift_esm_noop()
scrollIntoView()
isOrContainsNode()
downshift_esm_debounce()
cancel()
wrapper()
callAllEventHandlers()
handleRefs()
generateId()
resetIdCounter()
getA11yStatusMessage()
unwrapArray()
isDOMElement()
getElementProps()
requiredProp()
pickState()
getState()
isControlledProp()
normalizeArrowKey()
downshift_esm_isPlainObject()
getNextWrappingIndex()
getNextNonDisabledIndex()
targetWithinDownshift()
setStatus()
getStatusDiv()
Downshift()
validateGetMenuPropsCalledCorrectly()
validateGetRootPropsCalledCorrectly()
callOnChangeProps()
invokeOnChangeHandler()
stateReducer()
getA11ySelectionMessage()
useElementIds()
getItemIndex()
itemToString()
isAcceptedCharacterKey()
capitalizeString()
useLatestRef()
useEnhancedReducer()
useControlledReducer()
getDefaultValue()
getInitialValue()
getInitialState()
getHighlightedIndexOnOpen()
useMouseAndTouchTracker()
useA11yMessageSetter()
useScrollIntoView()
downshiftCommonReducer()
getItemIndexByCharacterKey()
getA11yStatusMessage()
downshiftSelectReducer()
useSelect()
getInitialState()
useControlledReducer()
downshiftUseComboboxReducer()
useCombobox()
getInitialValue()
getDefaultValue()
getInitialState()
isKeyDownOperationPermitted()
getA11yRemovalMessage()
downshiftMultipleSelectionReducer()
useMultipleSelection()
CustomSelectControl()
getDescribedBy()
DatePickerDay()
DatePicker()
from12hTo24h()
UpdateOnBlurAsIntegerField()
handleBlur()
TimePicker()
changeDate()
update()
updateAmPm()
DateTimePicker()
onClickDescriptionToggle()
DimensionControl()
disabled_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
Disabled()
Draggable()
end()
start()
over()
useIsMounted()
use_force_update_useForceUpdate()
newChildrenMap()
updateChildLookup()
onlyElements()
DropZoneComponent()
DropZoneProvider()
Swatch()
getDefaultColors()
getGradientFromCSSColors()
getColorStopsFromColors()
getColorsFromColorStops()
DuotoneSwatch()
ColorOption()
ColorListPicker()
CustomDuotoneBar()
DuotonePicker()
external_link_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
ExternalLink()
useFlyoutResizeUpdater()
useUpdateEffect_useUpdateEffect()
removeIndexFromArray()
removeItemFromArray_removeItemFromArray()
useMenuContext()
_toConsumableArray()
closest_closest()
isEmpty()
useDisclosureRef()
usePreventBodyScroll()
useFocusOnShow()
usePortalRef()
removeFromDOM()
isFocusTrap()
useFocusTrap()
hidByFocusingAnotherElement()
useFocusOnHide()
useNestedDialogs()
dialogContains()
isDisclosure()
isInDocument()
useEventListenerOutside()
useMouseDownRef()
useHideOnClickOutside()
useDisableHoverOutside()
useFocusOnChildUnmount()
isActualElement()
useFocusOnBlur()
FlyoutContent()
useFlyout()
component_Flyout()
focal_point_picker_style_EMOTION_STRINGIFIED_CSS_ERROR_()
getExtension()
isVideoType()
fractionToPercentage()
FocalPointPickerControls()
controls_UnitControl()
focal_point_style_EMOTION_STRINGIFIED_CSS_ERROR_()
FocalPoint()
FocalPointPickerGrid()
useRevealAnimation()
media_Media()
MediaPlaceholderElement()
FocalPointPicker:: (21 methods):
FocusableIframe()
useRadioState()
toggle_group_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
ToggleGroupControlBackdrop()
component_ToggleGroupControl()
getChecked()
useInitialChecked()
fireChange()
toggle_group_control_option_base_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
ToggleGroupControlOptionBase()
ToggleGroupControlOption()
splitValueAndUnitFromSize()
isSimpleCssValue()
getFontSizeOptions()
getSelectOptions()
getToggleGroupOptions()
getSelectedOption()
FontSizePicker()
FormFileUpload()
FormToggle()
Token()
FormTokenField:: (109 methods):
PageControl()
Guide()
GuidePage()
IconButton()
hook_useItem()
component_Item()
KeyboardShortcut()
KeyboardShortcuts()
MenuGroup()
MenuItem()
MenuItemsChoice()
TabbableContainer()
useCombinedRef()
SearchControl()
navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
Navigation()
NavigationBackButton()
NavigationGroup()
NavigationItemBaseContent()
NavigationItemBase()
NavigationItem()
MenuTitleSearch()
onKeyDown()
NavigationMenuTitle()
NavigationSearchNoResultsFound()
NavigationMenu()
component_EMOTION_STRINGIFIED_CSS_ERROR_()
NavigatorProvider()
navigator_screen_component_EMOTION_STRINGIFIED_CSS_ERROR_()
NavigatorScreen()
useNavigator()
useNavigatorButton()
NavigatorButton()
useNavigatorBackButton()
NavigatorBackButton()
useSpokenMessage()
getDefaultPoliteness()
Notice()
NoticeList()
PanelHeader()
Panel()
PanelBody()
Placeholder()
buildTermsTree()
tree_select_getSelectOptions()
TreeSelect()
CategorySelect()
AuthorSelect()
QueryControls()
radio_Radio()
radio_group_RadioGroup()
RadioControl()
__()
Resizer()
__()
Resizable()
useResizeLabel()
getSizeLabel()
resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
resize_tooltip_label_Label()
ResizeTooltip()
ResizableBox()
ResponsiveWrapper()
sendResize()
removeViewportStyles()
Sandbox()
isFrameAccessible()
trySandbox()
tryNoForceSandbox()
checkMessageForResize()
snackbar_useSpokenMessage()
Snackbar()
dismissMe()
onActionClick()
SnackbarList()
spinner_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
Spinner()
component_Surface()
TabPanel()
TextControl()
TextareaControl()
Tip()
ToggleControl()
onChangeToggle()
ToggleGroupControlOptionIcon()
toolbar_item_ToolbarItem()
ToolbarButton()
ToolbarGroupCollapsed()
ToolbarGroup()
useToolbarState()
ToolbarContainer()
toolbar_Toolbar()
ToolbarDropdownMenu()
tools_panel_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
useToolsPanelHeader()
useToolsPanel()
useToolsPanelItem()
RovingTabIndex()
getRowFocusables()
TreeGrid()
TreeGridRow()
stopPropagation()
z_stack_styles_EMOTION_STRINGIFIED_CSS_ERROR_()
ZStack()
useNavigateRegions()
focusRegion()
onClick()
withFilters()
ensureFilteredComponent()
FilteredComponentRenderer:: (3 methods):
onHooksUpdated()
isComponentLike()
Component()
Class: SlotComponent - X-Ref
use_slot_useSlot(name) X-Ref |
Internal dependencies |
rng() X-Ref |
No description |
validate(uuid) X-Ref |
No description |
stringify_stringify(arr) X-Ref |
No description |
v4(options, buf, offset) X-Ref |
No description |
StyleProvider(_ref) X-Ref |
No description |
useForceUpdate() X-Ref |
No description |
fill_Fill(_ref) X-Ref |
No description |
slot_Slot(_ref, forwardedRef) X-Ref |
No description |
useSlotRegistry() X-Ref |
No description |
SlotFillProvider(_ref) X-Ref |
No description |
Class: provider_SlotFillProvider - X-Ref
Internal dependenciesslot_fill_Fill(props) X-Ref |
No description |
Provider(_ref2) X-Ref |
No description |
createSlotFill(name) 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 |
computeAnchorRect(anchorRefFallback, anchorRect, getAnchorRect) X-Ref |
No description |
popover_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 |
PopoverSlot(_ref2, ref) X-Ref |
No description |
Shortcut(_ref) X-Ref |
return: {JSX.Element | null} Element param: {Props} props Props |
Tooltip(props) 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. |
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. |
emotion_react_browser_esm_css() X-Ref |
No description |
emotion_react_browser_esm_merge(registered, css, className) X-Ref |
No description |
names(e,f) X-Ref |
No description |
rgba() X-Ref |
Generating a CSS compliant 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. |
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 |
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 |
AlignmentMatrixControlIcon(_ref) X-Ref |
No description |
useBaseId(id) X-Ref |
No description |
AlignmentMatrixControl(_ref) X-Ref |
No description |
__extends(d, b) X-Ref |
No description |
__() X-Ref |
No description |
__rest(s, e) X-Ref |
No description |
__decorate(decorators, target, key, desc) X-Ref |
No description |
__param(paramIndex, decorator) X-Ref |
No description |
__metadata(metadataKey, metadataValue) X-Ref |
No description |
__awaiter(thisArg, _arguments, P, generator) X-Ref |
No description |
adopt(value) X-Ref |
No description |
fulfilled(value) X-Ref |
No description |
rejected(value) X-Ref |
No description |
step(result) X-Ref |
No description |
__generator(thisArg, body) X-Ref |
No description |
verb(n) X-Ref |
No description |
step(op) X-Ref |
No description |
__exportStar(m, o) X-Ref |
No description |
__values(o) X-Ref |
No description |
tslib_es6_read(o, n) X-Ref |
No description |
__spread() X-Ref |
No description |
__spreadArrays() X-Ref |
No description |
tslib_es6_spreadArray(to, from, pack) X-Ref |
No description |
__await(v) X-Ref |
No description |
__asyncGenerator(thisArg, _arguments, generator) X-Ref |
No description |
verb(n) X-Ref |
No description |
resume(n, v) X-Ref |
No description |
step(r) X-Ref |
No description |
fulfill(value) X-Ref |
No description |
reject(value) X-Ref |
No description |
settle(f, v) X-Ref |
No description |
__asyncDelegator(o) X-Ref |
No description |
verb(n, f) X-Ref |
No description |
__asyncValues(o) X-Ref |
No description |
verb(n) X-Ref |
No description |
settle(resolve, reject, d, v) X-Ref |
No description |
__makeTemplateObject(cooked, raw) X-Ref |
No description |
__importStar(mod) X-Ref |
No description |
__importDefault(mod) X-Ref |
No description |
__classPrivateFieldGet(receiver, state, kind, f) X-Ref |
No description |
__classPrivateFieldSet(receiver, state, value, kind, f) X-Ref |
No description |
loadFeatures(features) X-Ref |
No description |
useFeatures(props, visualElement, preloadedFeatures) X-Ref |
Load features via renderless components based on the provided MotionProps. |
useVisualElementContext() X-Ref |
initPrefersReducedMotion() X-Ref |
useReducedMotion() X-Ref |
A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting. This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion. It will actively respond to changes and re-render your components with the latest setting. ```jsx export function Sidebar({ isOpen }) { const shouldReduceMotion = useReducedMotion() const closedX = shouldReduceMotion ? 0 : "-100%" return ( <motion.div animate={{ opacity: isOpen ? 1 : 0, x: isOpen ? 0 : closedX }} /> ) } ``` return: boolean |
useReducedMotionConfig() X-Ref |
TODO See if people miss automatically updating shouldReduceMotion setting |
useVisualElement(Component, visualState, props, createVisualElement) X-Ref |
No description |
is_ref_object_isRefObject(ref) X-Ref |
No description |
useMotionRef(visualState, visualElement, externalRef) X-Ref |
Creates a ref function that, when called, hydrates the provided external ref and VisualElement. |
isVariantLabels(v) X-Ref |
Decides if the supplied variable is an array of variant labels |
isVariantLabel(v) X-Ref |
Decides if the supplied variable is variant label |
getCurrent(visualElement) X-Ref |
Creates an object containing the latest state of every MotionValue on a VisualElement |
getVelocity(visualElement) X-Ref |
Creates an object containing the latest velocity of every MotionValue on a VisualElement |
resolveVariantFromProps(props, definition, custom, currentValues, currentVelocity) X-Ref |
No description |
resolveVariant(visualElement, definition, custom) X-Ref |
No description |
checkIfControllingVariants(props) X-Ref |
No description |
checkIfVariantNode(props) X-Ref |
No description |
getCurrentTreeVariants(props, context) X-Ref |
No description |
useCreateMotionContext(props) X-Ref |
No description |
variantLabelsAsDependency(prop) X-Ref |
No description |
useConstant(init) X-Ref |
Creates a constant value over the lifecycle of a component. Even if `useMemo` is provided an empty array as its final argument, it doesn't offer a guarantee that it won't re-run for performance reasons later on. By using `useConstant` you can ensure that initialisers don't execute twice or more. |
createRenderStep(runNextFrame) X-Ref |
No description |
velocityPerSecond(velocity, frameDuration) X-Ref |
No description |
addUniqueItem(arr, item) X-Ref |
No description |
removeItem(arr, item) X-Ref |
No description |
moveItem(_a, fromIndex, toIndex) X-Ref |
No description |
SubscriptionManager() X-Ref |
No description |
MotionValue(init) X-Ref |
param: init - The initiating value param: config - Optional configuration options |
motionValue(init) X-Ref |
findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, }) X-Ref |
No description |
approximateRoot(envelope, derivative, initialGuess) X-Ref |
No description |
calcAngularFreq(undampedFreq, dampingRatio) X-Ref |
No description |
isSpringType(options, keys) X-Ref |
No description |
getSpringOptions(options) X-Ref |
No description |
spring(_a) X-Ref |
No description |
createSpring() X-Ref |
No description |
isString(v) X-Ref |
No description |
parseHex(v) X-Ref |
No description |
hueToRgb(p, q, t) X-Ref |
No description |
hslaToRgba({ hue, saturation, lightness, alpha }) X-Ref |
No description |
test(v) X-Ref |
No description |
analyse(v) X-Ref |
No description |
complex_parse(v) X-Ref |
No description |
createTransformer(v) X-Ref |
No description |
getAnimatableNone(v) X-Ref |
No description |
getMixer(origin, target) X-Ref |
No description |
mix_complex_analyse(value) X-Ref |
No description |
detectMixerFactory(v) X-Ref |
No description |
createMixers(output, ease, customMixer) X-Ref |
No description |
fastInterpolate([from, to], [mixer]) X-Ref |
No description |
slowInterpolate(input, mixers) X-Ref |
No description |
interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) X-Ref |
No description |
defaultEasing(values, easing) X-Ref |
No description |
defaultOffset(values) X-Ref |
No description |
convertOffsetToTimes(offset, duration) X-Ref |
No description |
keyframes_keyframes({ from = 0, to = 1, ease, offset, duration = 300, }) X-Ref |
No description |
createInterpolator() X-Ref |
No description |
decay({ velocity = 0, from = 0, power = 0.8, timeConstant = 350, restDelta = 0.5, modifyTarget, }) X-Ref |
No description |
detectAnimationFromOptions(config) X-Ref |
No description |
loopElapsed(elapsed, duration, delay = 0) X-Ref |
No description |
reverseElapsed(elapsed, duration, delay = 0, isForwardPlayback = true) X-Ref |
No description |
hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) X-Ref |
No description |
animate(_a) X-Ref |
No description |
repeat() X-Ref |
No description |
complete() X-Ref |
No description |
update(delta) X-Ref |
No description |
play() X-Ref |
No description |
inertia({ from = 0, velocity = 0, min, max, power = 0.8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop, }) X-Ref |
No description |
isOutOfBounds(v) X-Ref |
No description |
boundaryNearest(v) X-Ref |
No description |
startAnimation(options) X-Ref |
No description |
startSpring(options) X-Ref |
No description |
binarySubdivide(aX, aA, aB, mX1, mX2) X-Ref |
No description |
newtonRaphsonIterate(aX, aGuessT, mX1, mX2) X-Ref |
No description |
cubicBezier(mX1, mY1, mX2, mY2) X-Ref |
No description |
getTForX(aX) X-Ref |
No description |
applyDefaultFilter(v) X-Ref |
No description |
animatable_none_getAnimatableNone(key, value) X-Ref |
No description |
isTransitionDefined(_a) X-Ref |
Decide whether a transition is defined on a given Transition. This filters out orchestration options and returns true if any options are left. |
convertTransitionToAnimationOptions(_a) X-Ref |
Convert Framer Motion's Transition type into Popmotion-compatible options. |
getDelayFromTransition(transition, key) X-Ref |
Get the delay for a value by checking Transition with decreasing specificity. |
hydrateKeyframes(options) X-Ref |
No description |
getPopmotionAnimationOptions(transition, options, key) X-Ref |
No description |
getAnimation(key, value, target, transition, onComplete) X-Ref |
No description |
start() X-Ref |
No description |
set() X-Ref |
No description |
isZero(value) X-Ref |
No description |
getZeroUnit(potentialUnitType) X-Ref |
No description |
getValueTransition(transition, key) X-Ref |
No description |
startAnimation(key, value, target, transition) X-Ref |
Start animation on a MotionValue. This function is an interface between Framer Motion and Popmotion |
animate_animate(from, to, transition) X-Ref |
Animate a single value or a `MotionValue`. The first argument is either a `MotionValue` to animate, or an initial animation value. The second is either a value to animate to, or an array of keyframes to animate through. The third argument can be either tween or spring options, and optional lifecycle methods: `onUpdate`, `onPlay`, `onComplete`, `onRepeat` and `onStop`. Returns `AnimationPlaybackControls`, currently just a `stop` method. ```javascript const x = useMotionValue(0) useEffect(() => { const controls = animate(x, 100, { type: "spring", stiffness: 2000, onComplete: v => {} }) return controls.stop }) ``` |
mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) X-Ref |
No description |
getRadius(values, radiusName) X-Ref |
No description |
compress(min, max, easing) X-Ref |
No description |
copyAxisInto(axis, originAxis) X-Ref |
Reset an axis to the provided origin box. This is a mutative operation. |
copyBoxInto(box, originBox) X-Ref |
Reset a box to the provided origin box. This is a mutative operation. |
isIdentityScale(scale) X-Ref |
No description |
hasScale(_a) X-Ref |
No description |
hasTransform(values) X-Ref |
No description |
hasTranslate(value) X-Ref |
No description |
scalePoint(point, scale, originPoint) X-Ref |
Scales a point based on a factor and an originPoint |
applyPointDelta(point, translate, scale, originPoint, boxScale) X-Ref |
Applies a translate/scale delta to a point |
applyAxisDelta(axis, translate, scale, originPoint, boxScale) X-Ref |
Applies a translate/scale delta to an axis |
applyBoxDelta(box, _a) X-Ref |
Applies a translate/scale delta to a box |
applyTreeDeltas(box, treeScale, treePath, isSharedTransition) X-Ref |
Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms in a tree upon our box before then calculating how to project it into our desired viewport-relative box This is the final nested loop within updateLayoutDelta for future refactoring |
translateAxis(axis, distance) X-Ref |
No description |
transformAxis(axis, transforms, _a) X-Ref |
Apply a transform to an axis from the latest resolved motion values. This function basically acts as a bridge between a flat motion value map and applyAxisDelta |
transformBox(box, transform) X-Ref |
Apply a transform to a box from the latest resolved motion values. |
distance(a, b) X-Ref |
No description |
calcLength(axis) X-Ref |
No description |
isNear(value, target, maxDistance) X-Ref |
No description |
calcAxisDelta(delta, source, target, origin) X-Ref |
No description |
calcBoxDelta(delta, source, target, origin) X-Ref |
No description |
calcRelativeAxis(target, relative, parent) X-Ref |
No description |
calcRelativeBox(target, relative, parent) X-Ref |
No description |
calcRelativeAxisPosition(target, layout, parent) X-Ref |
No description |
calcRelativePosition(target, layout, parent) X-Ref |
No description |
removePointDelta(point, translate, scale, originPoint, boxScale) X-Ref |
Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse |
removeAxisDelta(axis, translate, scale, origin, boxScale, originAxis, sourceAxis) X-Ref |
Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse |
removeAxisTransforms(axis, transforms, _a, origin, sourceAxis) X-Ref |
Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse and acts as a bridge between motion values and removeAxisDelta |
removeBoxTransforms(box, transforms, originBox, sourceBox) X-Ref |
Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse and acts as a bridge between motion values and removeAxisDelta |
isAxisDeltaZero(delta) X-Ref |
No description |
isDeltaZero(delta) X-Ref |
No description |
boxEquals(a, b) X-Ref |
No description |
NodeStack() X-Ref |
No description |
addScaleCorrector(correctors) X-Ref |
No description |
buildProjectionTransform(delta, treeScale, latestTransform) X-Ref |
No description |
eachAxis(callback) X-Ref |
No description |
sortTransformProps(a, b) X-Ref |
A function to use with Array.sort to sort transform keys by their default order. |
isTransformProp(key) X-Ref |
A quick lookup for transform props. |
isTransformOriginProp(key) X-Ref |
A quick lookup for transform origin props |
FlatTree() X-Ref |
No description |
resolveMotionValue(value) X-Ref |
If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself TODO: Remove and move to library |
createProjectionNode(_a) X-Ref |
We set this to true once, on the first update. Any nodes added to the tree beyond that update will be given a `data-projection-id` attribute. |
ProjectionNode(id, latestValues, parent) X-Ref |
No description |
updateLayout(node) X-Ref |
No description |
notifyLayoutUpdate(node) X-Ref |
No description |
clearSnapshot(node) X-Ref |
Clearing transition TODO: Investigate why this transition is being passed in as {type: false } from Framer and why we need it at all |
clearMeasurements(node) X-Ref |
No description |
resetTransformStyle(node) X-Ref |
No description |
finishAnimation(node) X-Ref |
No description |
resolveTargetDelta(node) X-Ref |
No description |
calcProjection(node) X-Ref |
No description |
resetRotation(node) X-Ref |
No description |
removeLeadSnapshots(stack) X-Ref |
No description |
mixAxisDelta(output, delta, p) X-Ref |
No description |
mixAxis(output, from, to, p) X-Ref |
No description |
mixBox(output, from, to, p) X-Ref |
No description |
hasOpacityCrossfade(node) X-Ref |
No description |
mountNodeEarly(node, id) X-Ref |
No description |
roundAxis(axis) X-Ref |
No description |
roundBox(box) X-Ref |
No description |
useProjectionId() X-Ref |
No description |
useProjection(projectionId, _a, visualElement, ProjectionNodeConstructor) X-Ref |
VisualElementHandler() X-Ref |
No description |
motion_createMotionComponent(_a) X-Ref |
Create a `motion` component. This function accepts a Component argument, which can be either a string (ie "div" for `motion.div`), or an actual React component. Alongside this is a config option which provides a way of rendering the provided component "offline", or outside the React render cycle. |
MotionComponent(props, externalRef) X-Ref |
No description |
useLayoutId(_a) X-Ref |
No description |
createMotionProxy(createConfig) X-Ref |
Convert any React component into a `motion` component. The provided component **must** use `React.forwardRef` to the underlying DOM component you want to animate. ```jsx const Component = React.forwardRef((props, ref) => { return <div ref={ref} /> }) const MotionComponent = motion(Component) ``` |
custom(Component, customMotionComponentConfig) X-Ref |
No description |
isSVGComponent(Component) X-Ref |
No description |
isForcedMotionValue(key, _a) X-Ref |
No description |
buildTransform(_a, _b, transformIsDefault, transformTemplate) X-Ref |
Build a CSS transform style from individual x/y/scale etc properties. This outputs with a default order of transforms/scales/rotations, this can be customised by providing a transformTemplate function. |
buildTransformOrigin(_a) X-Ref |
Build a transformOrigin style. Uses the same defaults as the browser for undefined origins. |
isCSSVariable(key) X-Ref |
Returns true if the provided key is a CSS variable |
buildHTMLStyles(state, latestValues, options, transformTemplate) X-Ref |
No description |
copyRawValuesOnly(target, source, props) X-Ref |
No description |
useInitialMotionValues(_a, visualState, isStatic) X-Ref |
No description |
useStyle(props, visualState, isStatic) X-Ref |
No description |
useHTMLProps(props, visualState, isStatic) X-Ref |
No description |
isValidMotionProp(key) X-Ref |
Check whether a prop name is a valid `MotionProp` key. returns: `true` is key is a valid `MotionProp`. param: key - Name of the property to check |
loadExternalIsValidProp(isValidProp) X-Ref |
No description |
filterProps(props, isDom, forwardMotionProps) X-Ref |
No description |
calcOrigin(origin, offset, size) X-Ref |
No description |
calcSVGTransformOrigin(dimensions, originX, originY) X-Ref |
The SVG transform origin defaults are different to CSS and is less intuitive, so we use the measured dimensions of the SVG to reconcile these. |
buildSVGPath(attrs, length, spacing, offset, useDashCase) X-Ref |
Build SVG path properties. Uses the path's measured length to convert our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset and stroke-dasharray attributes. This function is mutative to reduce per-frame GC. |
buildSVGAttrs(state, _a, options, transformTemplate) X-Ref |
Build SVG visual attrbutes, like cx and style.transform |
useSVGProps(props, visualState) X-Ref |
No description |
createUseRender(forwardMotionProps) X-Ref |
No description |
renderHTML(element, _a, styleProp, projection) X-Ref |
No description |
renderSVG(element, renderState, _styleProp, projection) X-Ref |
No description |
scrapeMotionValuesFromProps(props) X-Ref |
No description |
scrape_motion_values_scrapeMotionValuesFromProps(props) X-Ref |
No description |
isAnimationControls(v) X-Ref |
No description |
makeState(_a, props, context, presenceContext) X-Ref |
No description |
makeLatestValues(props, context, presenceContext, scrapeMotionValues) X-Ref |
No description |
create_config_createDomMotionConfig(Component, _a, preloadedFeatures, createVisualElement, projectionNodeConstructor) X-Ref |
No description |
addDomEvent(target, eventName, handler, options) X-Ref |
No description |
useDomEvent(ref, eventName, handler, options) X-Ref |
Attaches an event listener directly to the provided DOM element. Bypassing React's event system can be desirable, for instance when attaching non-passive event handlers. ```jsx const ref = useRef(null) useDomEvent(ref, 'wheel', onWheel, { passive: false }) return <div ref={ref} /> ``` param: ref - React.RefObject that's been provided to the element you want to bind the listener to. param: eventName - Name of the event you want listen for. param: handler - Function to fire when receiving the event. param: options - Options to pass to `Event.addEventListener`. |
useFocusGesture(_a) X-Ref |
param: props param: ref |
isMouseEvent(event) X-Ref |
No description |
isTouchEvent(event) X-Ref |
No description |
filterPrimaryPointer(eventHandler) X-Ref |
Filters out events not attached to the primary pointer (currently left mouse button) param: eventHandler |
pointFromTouch(e, pointType) X-Ref |
No description |
pointFromMouse(point, pointType) X-Ref |
No description |
extractEventInfo(event, pointType) X-Ref |
No description |
getPointerEventName(name) X-Ref |
No description |
addPointerEvent(target, eventName, handler, options) X-Ref |
No description |
usePointerEvent(ref, eventName, handler, options) X-Ref |
No description |
createLock(name) X-Ref |
No description |
getGlobalLock(drag) X-Ref |
No description |
isDragActive() X-Ref |
No description |
createHoverEvent(visualElement, isActive, callback) X-Ref |
No description |
useHoverGesture(_a) X-Ref |
No description |
useUnmountEffect(callback) X-Ref |
No description |
useTapGesture(_a) X-Ref |
param: handlers - |
removePointerEndListener() X-Ref |
No description |
checkPointerEnd() X-Ref |
No description |
onPointerUp(event, info) X-Ref |
No description |
onPointerCancel(event, info) X-Ref |
No description |
onPointerDown(event, info) X-Ref |
No description |
initIntersectionObserver(_a) X-Ref |
No description |
observeIntersection(element, options, callback) X-Ref |
No description |
useViewport(_a) X-Ref |
No description |
use_viewport_useIntersectionObserver(shouldObserve, state, visualElement, _a) X-Ref |
No description |
useMissingIntersectionObserver(shouldObserve, state, visualElement, _a) X-Ref |
If IntersectionObserver is missing, we activate inView and fire onViewportEnter on mount. This way, the page will be in the state the author expects users to see it in for everyone. |
usePresence() X-Ref |
When a component is the child of `AnimatePresence`, it can use `usePresence` to access information about whether it's still present in the React tree. ```jsx import { usePresence } from "framer-motion" export const Component = () => { const [isPresent, safeToRemove] = usePresence() useEffect(() => { !isPresent && setTimeout(safeToRemove, 1000) }, [isPresent]) return <div /> } ``` If `isPresent` is `false`, it means that a component has been removed the tree, but `AnimatePresence` won't really remove it until `safeToRemove` has been called. |
useIsPresent() X-Ref |
Similar to `usePresence`, except `useIsPresent` simply returns whether or not the component is present. There is no `safeToRemove` function. ```jsx import { useIsPresent } from "framer-motion" export const Component = () => { const isPresent = useIsPresent() useEffect(() => { !isPresent && console.log("I've been removed!") }, [isPresent]) return <div /> } ``` |
isPresent(context) X-Ref |
No description |
shallowCompare(next, prev) X-Ref |
No description |
setMotionValue(visualElement, key, value) X-Ref |
Set VisualElement's MotionValue, creating a new MotionValue for it if it doesn't exist. |
setTarget(visualElement, definition) X-Ref |
No description |
setVariants(visualElement, variantLabels) X-Ref |
No description |
setValues(visualElement, definition) X-Ref |
No description |
checkTargetForNewValues(visualElement, target, origin) X-Ref |
No description |
getOriginFromTransition(key, transition) X-Ref |
No description |
getOrigin(target, transition, visualElement) X-Ref |
No description |
animateVisualElement(visualElement, definition, options) X-Ref |
animateVariant(visualElement, variant, options) X-Ref |
No description |
animateTarget(visualElement, definition, _a) X-Ref |
animateChildren(visualElement, variant, delayChildren, staggerChildren, staggerDirection, options) X-Ref |
No description |
stopAnimation(visualElement) X-Ref |
No description |
sortByTreeOrder(a, b) X-Ref |
No description |
shouldBlockAnimation(_a, key) X-Ref |
Decide whether we should block this animation. Previously, we achieved this just by checking whether the key was listed in protectedKeys, but this posed problems if an animation was triggered by afterChildren and protectedKeys had been set to true in the meantime. |
animateList(visualElement) X-Ref |
No description |
createAnimationState(visualElement) X-Ref |
No description |
isAnimated(key) X-Ref |
No description |
setAnimateFunction(makeAnimator) X-Ref |
This just allows us to inject mocked animation functions |
animateChanges(options, changedActiveType) X-Ref |
When we receive new props, we need to: 1. Create a list of protected keys for each type. This is a directory of value keys that are currently being "handled" by types of a higher priority so that whenever an animation is played of a given type, these values are protected from being animated. 2. Determine if an animation type needs animating. 3. Determine if any values have been removed from a type and figure out what to animate those to. |
setActive(type, isActive, options) X-Ref |
Change whether a certain animation type is active. |
checkVariantsDidChange(prev, next) X-Ref |
No description |
createTypeState(isActive) X-Ref |
No description |
createState() X-Ref |
No description |
PanSession(event, handlers, _a) X-Ref |
transformPoint(info, transformPagePoint) X-Ref |
subtractPoint(a, b) X-Ref |
No description |
getPanInfo(_a, history) X-Ref |
No description |
startDevicePoint(history) X-Ref |
No description |
lastDevicePoint(history) X-Ref |
No description |
PanSession_getVelocity(history, timeDelta) X-Ref |
No description |
applyConstraints(point, _a, elastic) X-Ref |
Apply constraints to a point. These constraints are both physical along an axis, and an elastic factor that determines how much to constrain the point by if it does lie outside the defined parameters. |
calcRelativeAxisConstraints(axis, min, max) X-Ref |
Calculate constraints in terms of the viewport when defined relatively to the measured axis. This is measured from the nearest edge, so a max constraint of 200 on an axis with a max value of 300 would return a constraint of 500 - axis length |
calcRelativeConstraints(layoutBox, _a) X-Ref |
Calculate constraints in terms of the viewport when defined relatively to the measured bounding box. |
calcViewportAxisConstraints(layoutAxis, constraintsAxis) X-Ref |
Calculate viewport constraints when defined as another viewport-relative axis |
calcViewportConstraints(layoutBox, constraintsBox) X-Ref |
Calculate viewport constraints when defined as another viewport-relative box |
constraints_calcOrigin(source, target) X-Ref |
Calculate a transform origin relative to the source axis, between 0-1, that results in an asthetically pleasing scale/transform needed to project from source to target. |
rebaseAxisConstraints(layout, constraints) X-Ref |
Rebase the calculated viewport constraints relative to the layout.min point. |
resolveDragElastic(dragElastic) X-Ref |
Accepts a dragElastic prop and returns resolved elastic values for each axis. |
resolveAxisElastic(dragElastic, minLabel, maxLabel) X-Ref |
No description |
resolvePointElastic(dragElastic, label) X-Ref |
No description |
convertBoundingBoxToBox(_a) X-Ref |
Bounding boxes tend to be defined as top, left, right, bottom. For various operations it's easier to consider each axis individually. This function returns a bounding box as a map of single-axis min/max values. |
convertBoxToBoundingBox(_a) X-Ref |
No description |
transformBoxPoints(point, transformPoint) X-Ref |
Applies a TransformPoint function to a bounding box. TransformPoint is usually a function provided by Framer to allow measured points to be corrected for device scaling. This is used when measuring DOM elements and DOM event points. |
measureViewportBox(instance, transformPoint) X-Ref |
No description |
measurePageBox(element, rootProjectionNode, transformPagePoint) X-Ref |
No description |
VisualElementDragControls(visualElement) X-Ref |
No description |
shouldDrag(direction, drag, currentDirection) X-Ref |
No description |
getCurrentDirection(offset, lockThreshold) X-Ref |
Based on an x/y offset determine the current drag direction. If both axis' offsets are lower than the provided threshold, return `null`. param: offset - The x/y offset from origin. param: lockThreshold - (Optional) - the minimum absolute offset before we can determine a drag direction. |
useDrag(props) X-Ref |
A hook that allows an element to be dragged. |
usePanGesture(_a) X-Ref |
param: handlers - param: ref - |
onPointerDown(event) X-Ref |
No description |
createLifecycles() X-Ref |
No description |
updateMotionValuesFromProps(element, next, prev) X-Ref |
No description |
render() X-Ref |
Render the element with the latest styles outside of the React render lifecycle |
triggerBuild() X-Ref |
No description |
update() X-Ref |
No description |
bindToMotionValue(key, value) X-Ref |
No description |
css_variables_conversion_isCSSVariable(value) X-Ref |
No description |
parseCSSVariable(current) X-Ref |
Parse Framer's special CSS variable format into a CSS token and a fallback. ``` `var(--foo, #fff)` => [`--foo`, '#fff'] ``` param: current |
getVariableValue(current, element, depth) X-Ref |
No description |
resolveCSSVariables(visualElement, _a, transitionEnd) X-Ref |
Resolve CSS variables from |
removeNonTranslationalTransform(visualElement) X-Ref |
No description |
unitConversion(visualElement, target, origin, transitionEnd) X-Ref |
Convert value types for x/y/width/height/top/left/bottom/right Allows animation between `'auto'` -> `'100%'` or `0` -> `'calc(50% - 10vw)'` |
visual_element_getComputedStyle(element) X-Ref |
No description |
pixelsToPercent(pixels, axis) X-Ref |
No description |
MeasureLayoutWithContext() X-Ref |
No description |
MeasureLayout(props) X-Ref |
No description |
createDomMotionComponent(key) X-Ref |
Create a DOM `motion` component with the provided string. This is primarily intended as a full alternative to `motion` for consumers who have to support environments that don't support `Proxy`. ```javascript import { createDomMotionComponent } from "framer-motion" const motion = { div: createDomMotionComponent('div') } ``` |
styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useFlexItem(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexItemProps, 'div'>} props |
useFlexBlock(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexBlockProps, 'div'>} props |
FlexBlock(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexBlockProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
FlexItem(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexItemProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useResponsiveValue(values) X-Ref |
No description |
space(value) X-Ref |
A function that handles numbers, numeric strings, and unit values. When given a number or a numeric string, it will return the grid-based value as a factor of GRID_BASE, defined above. When given a unit value or one of the named CSS values like `auto`, it will simply return the value back. param: value A number, numeric string, or a unit value. |
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() X-Ref |
A higher-order function that create an incredibly basic ltr -> rtl style converter for CSS objects. return: {() => import('@emotion/react').SerializedStyles} 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. |
hook_useDeprecatedProps(_ref) X-Ref |
return: {import('../../ui/context').WordPressComponentProps<import('../types').FlexProps, 'div'>} Props with the deprecated props removed. param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexProps, 'div'>} props |
useFlex(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexProps, 'div'>} props |
component_Flex(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FlexProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
truncate_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
truncateMiddle(word, headLength, tailLength, ellipsis) X-Ref |
param: {string} word param: {number} headLength param: {number} tailLength param: {string} ellipsis |
truncateContent() X-Ref |
param: {string} words param: {typeof TRUNCATE_DEFAULT_PROPS} props |
useTruncate(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'span'>} props |
getColorComputationNode() X-Ref |
return: {HTMLDivElement | undefined} The HTML element for color computation. |
isColor(value) X-Ref |
return: {boolean} Whether the value is a valid color. param: {string | unknown} value |
_getComputedBackgroundColor(backgroundColor) X-Ref |
Retrieves the computed background color. This is useful for getting the value of a CSS variable color. return: {string} The computed background color. param: {string | unknown} backgroundColor The background color to compute. |
getOptimalTextColor(backgroundColor) X-Ref |
Get the text shade optimized for readability, based on a background color. return: {string} The optimized text color (black or white). param: {string | unknown} backgroundColor The background color. |
getOptimalTextShade(backgroundColor) X-Ref |
Get the text shade optimized for readability, based on a background color. return: {string} The optimized text shade (dark or light). param: {string | unknown} backgroundColor The background color. |
text_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
createHighlighterText(_ref) X-Ref |
param: {Options} options |
getFontSize() X-Ref |
No description |
getHeadingFontSize() X-Ref |
No description |
getLineHeight(adjustLineHeightForInnerControls, lineHeight) X-Ref |
Internal dependencies |
hook_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useText(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'span'>} props |
component_Text(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'span'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
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 |
getUIFlexProps(labelPosition) X-Ref |
No description |
InputBase(_ref, ref) X-Ref |
No description |
maths_b2a210f4_esm_clamp(v, min, max) X-Ref |
No description |
rubberband(distance, dimension, constant) X-Ref |
No description |
rubberbandIfOutOfBounds(position, min, max, constant = 0.15) X-Ref |
No description |
computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) X-Ref |
No description |
actions_8e12537b_esm_defineProperty(obj, key, value) X-Ref |
No description |
actions_8e12537b_esm_ownKeys(object, enumerableOnly) X-Ref |
No description |
actions_8e12537b_esm_objectSpread2(target) X-Ref |
No description |
capitalize(string) X-Ref |
No description |
toHandlerProp(device, action = '', capture = false) X-Ref |
No description |
parseProp(prop) X-Ref |
No description |
toDomEventType(device, action = '') X-Ref |
No description |
isTouch(event) X-Ref |
No description |
getPointerType(event) X-Ref |
No description |
getCurrentTargetTouchList(event) X-Ref |
No description |
getTouchList(event) X-Ref |
No description |
getValueEvent(event) X-Ref |
No description |
distanceAngle(P1, P2) X-Ref |
No description |
touchIds(event) X-Ref |
No description |
touchDistanceAngle(event, ids) X-Ref |
No description |
pointerId(event) X-Ref |
No description |
pointerValues(event) X-Ref |
No description |
wheelValues(event) X-Ref |
No description |
scrollValues(event) X-Ref |
No description |
getEventDetails(event) X-Ref |
No description |
call(v, ...args) X-Ref |
No description |
noop() X-Ref |
No description |
chain(...fns) X-Ref |
No description |
assignDefault(value, fallback) X-Ref |
No description |
selectAxis([dx, dy], threshold) X-Ref |
No description |
Class: CoordinatesEngine - X-Ref
Class: DragEngine - X-Ref
persistEvent(event) X-Ref |
No description |
actions_8e12537b_esm_supportsTouchEvents() X-Ref |
No description |
isTouchScreen() X-Ref |
No description |
actions_8e12537b_esm_supportsPointerEvents() X-Ref |
No description |
supportsPointerLock() X-Ref |
No description |
supportsGestureEvents() X-Ref |
No description |
Class: PinchEngine - X-Ref
Class: MoveEngine - X-Ref
Class: ScrollEngine - X-Ref
Class: WheelEngine - X-Ref
Class: HoverEngine - X-Ref
actions_8e12537b_esm_registerAction(action) X-Ref |
No description |
use_gesture_core_esm_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_objectWithoutProperties(source, excluded) X-Ref |
No description |
resolveWith(config = {}, resolvers) X-Ref |
No description |
use_gesture_core_esm_parse(config, gestureKey) X-Ref |
No description |
Class: EventStore - X-Ref
Class: TimeoutStore - X-Ref
Class: Controller - X-Ref
setupGesture(ctrl, gestureKey) X-Ref |
No description |
resolveGestures(ctrl, internalHandlers) X-Ref |
No description |
sortHandlers(_handlers) X-Ref |
No description |
registerGesture(actions, handlers, handlerKey, key, internalHandlers, config) X-Ref |
No description |
use_gesture_core_esm_parseMergedHandlers(mergedHandlers, mergedConfig) X-Ref |
No description |
useRecognizers(handlers, config = {}, gestureKey, nativeHandlers) X-Ref |
No description |
use_gesture_react_esm_useDrag(handler, config) X-Ref |
No description |
usePinch(handler, config) X-Ref |
No description |
useWheel(handler, config) X-Ref |
No description |
useScroll(handler, config) X-Ref |
No description |
useMove(handler, config) X-Ref |
No description |
useHover(handler, config) X-Ref |
No description |
createUseGesture(actions) X-Ref |
No description |
useGesture(handlers, config) X-Ref |
No description |
getDragCursor(dragDirection) X-Ref |
Gets a CSS cursor value based on a drag direction. return: The CSS cursor value. param: 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. |
mergeInitialState() X-Ref |
Prepares initialState for the reducer. return: Prepared initialState for the reducer param: 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: The reducer. param: 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: State, dispatch, and a collection of actions. param: stateReducer An external state reducer. param: initialState The initial state for the reducer. |
use_update_effect_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 |
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 |
useSpacer(props) X-Ref |
No description |
Spacer(props, forwardedRef) X-Ref |
No description |
AnglePickerControl(_ref) X-Ref |
No description |
filterOptions(search) X-Ref |
No description |
getDefaultUseItems(autocompleter) X-Ref |
No description |
getAutoCompleterUI(autocompleter) X-Ref |
No description |
AutocompleterUI(_ref) X-Ref |
No description |
useAutocomplete(_ref) X-Ref |
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 |
useAutocompleteProps(options) X-Ref |
No description |
_onKeyDown(event) X-Ref |
No description |
Autocomplete(_ref3) X-Ref |
No description |
font(value) X-Ref |
return: {string} Font rule value param: {keyof FONT} value Path of value from `FONT` |
base_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
border_box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useBorderBoxControlLinkedButton(props) X-Ref |
No description |
useBorderBoxControlVisualizer(props) 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 |
Safely subtracts 2 values. return: {number} The difference of the values. param: {Array<number|string>} args Values to subtract together. |
getPrecision(value) X-Ref |
Determines the decimal position of a number value. return: {number} The number of decimal places. param: {number} value The number to evaluate. |
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(). |
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. |
isValueNumeric(value) X-Ref |
Checks to see if a value is a numeric value (`number` or `string`). Intentionally ignores whether the thousands delimiters are only in the thousands marks. return: {boolean} Whether value is numeric. param: {any} value param: {string} [locale] |
NumberControl(_ref, ref) X-Ref |
No description |
unit_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
border_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useBorderControlStylePicker(props) X-Ref |
No description |
useObservableState(initialState, onStateChange) X-Ref |
No description |
Dropdown(props) X-Ref |
No description |
toggle() X-Ref |
No description |
closeIfFocusOutside() X-Ref |
Closes the popover when focus leaves it unless the toggle was pressed or focus has moved to a separate dialog. The former is to let the toggle handle closing the popover and the latter is to preserve presence in case a dialog has opened, allowing focus to return when it's dismissed. |
close() X-Ref |
No description |
getAlignmentProps(alignment) X-Ref |
return: {import('./types').AlignmentProps} Alignment props. param: {import('./types').HStackAlignment | import('react').CSSProperties[ 'alignItems' ]} alignment Where to align. param: {import('../flex/types').FlexDirection} [direction='row'] Direction to align. |
getValidChildren(children) X-Ref |
Gets a collection of available children elements from a React component's children prop. return: An array of available children. param: children |
useHStack(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
HStack(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
icon_Icon(_ref) X-Ref |
Return an SVG icon. return: {JSX.Element} Icon component param: {IconProps} props icon is the SVG component to render |
select_control_useUniqueId(idProp) X-Ref |
No description |
SelectControl(_ref, ref) 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. |
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 |
RangeRail(_ref) X-Ref |
No description |
Marks(_ref2) X-Ref |
No description |
useMarks(_ref3) X-Ref |
No description |
SimpleTooltip(_ref) X-Ref |
Internal dependencies |
useTooltipPosition(_ref2) X-Ref |
No description |
RangeControl(_ref, ref) X-Ref |
No description |
color_picker_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getWindow_getWindow(node) X-Ref |
No description |
isElement(node) X-Ref |
No description |
isHTMLElement(node) X-Ref |
No description |
isShadowRoot(node) X-Ref |
No description |
getBoundingClientRect(element, includeScale) X-Ref |
No description |
getWindowScroll(node) X-Ref |
No description |
getHTMLElementScroll(element) X-Ref |
No description |
getNodeScroll(node) X-Ref |
No description |
getNodeName(element) X-Ref |
No description |
getDocumentElement(element) X-Ref |
No description |
getWindowScrollBarX(element) X-Ref |
No description |
getComputedStyle_getComputedStyle(element) X-Ref |
No description |
isScrollParent(element) X-Ref |
No description |
isElementScaled(element) X-Ref |
No description |
getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) X-Ref |
No description |
getLayoutRect(element) X-Ref |
No description |
getParentNode(element) X-Ref |
No description |
getScrollParent(node) X-Ref |
No description |
listScrollParents(element, list) X-Ref |
No description |
isTableElement(element) X-Ref |
No description |
getTrueOffsetParent(element) X-Ref |
No description |
getContainingBlock(element) X-Ref |
No description |
getOffsetParent(element) X-Ref |
No description |
orderModifiers_order(modifiers) X-Ref |
No description |
sort(modifier) X-Ref |
No description |
orderModifiers(modifiers) X-Ref |
No description |
debounce(fn) X-Ref |
No description |
mergeByName(modifiers) X-Ref |
No description |
areValidElements() X-Ref |
No description |
popperGenerator(generatorOptions) X-Ref |
No description |
runModifierEffects() X-Ref |
No description |
cleanupModifierEffects() X-Ref |
No description |
effect(_ref) X-Ref |
No description |
getBasePlacement(placement) X-Ref |
No description |
getVariation(placement) X-Ref |
No description |
getMainAxisFromPlacement(placement) X-Ref |
No description |
computeOffsets(_ref) X-Ref |
No description |
popperOffsets(_ref) X-Ref |
No description |
roundOffsetsByDPR(_ref) X-Ref |
No description |
mapToStyles(_ref2) X-Ref |
No description |
computeStyles(_ref5) X-Ref |
No description |
applyStyles(_ref) X-Ref |
No description |
applyStyles_effect(_ref2) X-Ref |
No description |
distanceAndSkiddingToXY(placement, rects, offset) X-Ref |
No description |
offset(_ref2) X-Ref |
No description |
getOppositePlacement(placement) X-Ref |
No description |
getOppositeVariationPlacement(placement) X-Ref |
No description |
getViewportRect(element) X-Ref |
No description |
getDocumentRect(element) X-Ref |
No description |
contains_contains(parent, child) X-Ref |
No description |
rectToClientRect(rect) X-Ref |
No description |
getInnerBoundingClientRect(element) X-Ref |
No description |
getClientRectFromMixedType(element, clippingParent) X-Ref |
No description |
getClippingParents(element) X-Ref |
No description |
getClippingRect(element, boundary, rootBoundary) X-Ref |
No description |
getFreshSideObject() X-Ref |
No description |
mergePaddingObject(paddingObject) X-Ref |
No description |
expandToHashMap(value, keys) X-Ref |
No description |
detectOverflow(state, options) X-Ref |
No description |
computeAutoPlacement(state, options) X-Ref |
No description |
getExpandedFallbackPlacements(placement) X-Ref |
No description |
flip(_ref) X-Ref |
No description |
getAltAxis(axis) X-Ref |
No description |
within(min, value, max) X-Ref |
No description |
withinMaxClamp(min, value, max) X-Ref |
No description |
preventOverflow(_ref) X-Ref |
No description |
arrow(_ref) X-Ref |
No description |
arrow_effect(_ref2) X-Ref |
No description |
getSideOffsets(overflow, rect, preventedOffsets) X-Ref |
No description |
isAnySideFullyClipped(overflow) X-Ref |
No description |
hide(_ref) X-Ref |
No description |
useLastValue(value) X-Ref |
No description |
useDisclosureState(initialState) X-Ref |
No description |
useDialogState(initialState) X-Ref |
No description |
PopoverState_applyStyles(styles) X-Ref |
No description |
usePopoverState(initialState) X-Ref |
No description |
useTooltipState(initialState) X-Ref |
No description |
getBodyElement() X-Ref |
Portal(_ref) X-Ref |
No description |
globallyHideTooltipOnEscape(event) X-Ref |
No description |
component_Shortcut(props, forwardedRef) X-Ref |
No description |
tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
content_TooltipContent(props, forwardedRef) X-Ref |
param: {import('../context').WordPressComponentProps<import('./types').ContentProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
component_Tooltip(props, forwardedRef) X-Ref |
param: {import('../context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
index_module_u() X-Ref |
No description |
useControlledValue(_ref) X-Ref |
Simplified and improved implementation of useControlledState. return: The controlled value and the value setter. param: props param: props.defaultValue param: props.value param: props.onChange |
isLegacyProps(props) X-Ref |
Internal dependencies |
getColorFromLegacyProps(props) X-Ref |
No description |
use_deprecated_props_useDeprecatedProps(props) 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 |
useVStack(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
VStack(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
component_Truncate(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'span'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useHeading(props) X-Ref |
No description |
UnconnectedHeading(props, forwardedRef) X-Ref |
No description |
color_palette_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
SinglePalette(_ref) X-Ref |
No description |
MultiplePalettes(_ref3) X-Ref |
No description |
CustomColorPickerDropdown(_ref5) X-Ref |
No description |
ColorPalette(_ref6) X-Ref |
No description |
getParsedQuantityAndUnit(rawValue, fallbackUnit, allowedUnits) 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: The extracted quantity and unit. The quantity can be `undefined` in case the raw value param: rawValue The raw value as a string (may or may not contain the unit) param: fallbackUnit The unit used as a fallback, if not unit is detected in the `value` param: allowedUnits Units to derive from. |
hasUnits(units) X-Ref |
Checks if units are defined. return: Whether the list actually contains any units. param: units List of units. |
parseQuantityAndUnitFromRawValue(rawValue) X-Ref |
Parses a quantity and unit from a raw string value, given a list of allowed units and otherwise falling back to the default unit. return: The extracted quantity and unit. The quantity can be `undefined` in case the raw value param: rawValue The raw value as a string (may or may not contain the unit) param: allowedUnits Units to derive from. |
getValidParsedQuantityAndUnit(rawValue, allowedUnits, fallbackQuantity, fallbackUnit) X-Ref |
Parses quantity and unit from a raw value. Validates parsed value, using fallback value if invalid. return: The extracted quantity and unit. The quantity can be `undefined` in case the raw value param: rawValue The next value. param: allowedUnits Units to derive from. param: fallbackQuantity The fallback quantity, used in case it's not possible to parse a valid quantity from the raw value. param: fallbackUnit The fallback unit, used in case it's not possible to parse a valid unit from the raw value. |
getAccessibleLabelForUnit(unit) X-Ref |
Takes a unit value and finds the matching accessibility label for the unit abbreviation. return: a11y label for the unit abbreviation param: unit Unit value (example: `px`) |
filterUnitsWithSettings() X-Ref |
Filters available units based on values defined a list of allowed unit values. return: Filtered units. param: allowedUnitValues Collection of allowed unit value strings. param: availableUnits Collection of available unit objects. |
getUnitsWithCurrentUnit(rawValue, legacyUnit) X-Ref |
Get available units with the unit for the currently selected value prepended if it is not available in the list of units. This is useful to ensure that the current value's unit is always accurately displayed in the UI, even if the intention is to hide the availability of that unit. return: A collection of units containing the unit for the current value. param: rawValue Selected value to parse. param: legacyUnit Legacy unit value, if rawValue needs it appended. param: units List of available units. |
useBorderControlDropdown(props) X-Ref |
No description |
UnitSelectControl(_ref) X-Ref |
No description |
UnforwardedUnitControl(unitControlProps, forwardedRef) X-Ref |
No description |
useBorderControl(props) X-Ref |
No description |
utils_getAlignmentProps(alignment) X-Ref |
return: {{ alignItems?: import('react').CSSProperties['alignItems'], justifyContent?: import('react').CSSProperties['justifyContent']}} CSS props for alignment param: {keyof typeof ALIGNMENTS | undefined} alignment |
useGrid(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
Grid(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useBorderBoxControlSplitControls(props) X-Ref |
No description |
useBorderBoxControl(props) X-Ref |
No description |
box_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
BoxUnitControl(_ref) X-Ref |
No description |
unit_control_Tooltip(_ref3) X-Ref |
No description |
mode(arr) X-Ref |
Gets an items with the most occurrence within an array https://stackoverflow.com/a/20762713 return: {any} The item with the most occurrences. 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. param: {Object} selectedUnits Box units. param: {Array} availableSides Available box sides to evaluate. |
getAllUnitFallback(selectedUnits) X-Ref |
Determine the most common unit selection to use as a fallback option. return: {string} Most common unit selection. param: {Object} selectedUnits Current unit selections for individual sides. |
isValuesMixed() X-Ref |
Checks to determine if values are mixed. return: {boolean} Whether values are mixed. param: {Object} values Box values. param: {Object} selectedUnits Box units. param: {Array} sides Available box sides to evaluate. |
isValuesDefined(values) X-Ref |
Checks to determine if values are defined. return: {boolean} Whether values are mixed. param: {Object} values Box values. |
getInitialSide(isLinked, splitOnAxis) X-Ref |
Get initial selected side, factoring in whether the sides are linked, and whether the vertical / horizontal directions are grouped via splitOnAxis. return: {string} The initial side. param: {boolean} isLinked Whether the box control's fields are linked. param: {boolean} splitOnAxis Whether splitting by horizontal or vertical axis. |
normalizeSides(sides) X-Ref |
Normalizes provided sides configuration to an array containing only top, right, bottom and left. This essentially just maps `horizontal` or `vertical` to their appropriate sides to facilitate correctly determining value for all input control. return: {Array} Normalized sides configuration. param: {Array} sides Available sides for box control. |
AllInputControl(_ref) X-Ref |
No description |
BoxInputControls(_ref) X-Ref |
No description |
AxialInputControls(_ref) X-Ref |
No description |
box_control_icon_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
BoxControlIcon(_ref) X-Ref |
Internal dependencies |
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_useUniqueId(idProp) X-Ref |
No description |
BoxControl(_ref) X-Ref |
No description |
ButtonGroup(_ref, ref) X-Ref |
No description |
elevation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getBoxShadow(value) X-Ref |
return: {string} The box shadow value. param: {number} value |
useElevation(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
component_Elevation(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
card_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
getBorders(_ref) X-Ref |
param: {Object} props param: {boolean} [props.borderBottom] param: {boolean} [props.borderLeft] param: {boolean} [props.borderRight] param: {boolean} [props.borderTop] |
useSurface(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
card_hook_useDeprecatedProps(_ref) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').Props, 'div'>} props |
useCard(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').Props, 'div'>} props |
component_Card(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
scrollable_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useScrollable(props) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props |
component_Scrollable(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useCardBody(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').BodyProps, 'div'>} props |
CardBody(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').BodyProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
divider_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
UnconnectedDivider(props, forwardedRef) X-Ref |
No description |
useCardDivider(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../../divider').DividerProps, 'hr', false>} props |
CardDivider(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../../divider').DividerProps, 'hr', false>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useCardFooter(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FooterProps, 'div'>} props |
CardFooter(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').FooterProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useCardHeader(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').HeaderProps, 'div'>} props |
CardHeader(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').HeaderProps, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useCardMedia(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<{ children: import('react').ReactNode }, 'div'>} props |
CardMedia(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<{ children: import('react').ReactNode }, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
CheckboxControl(_ref) X-Ref |
Internal dependencies |
ClipboardButton(_ref) X-Ref |
No description |
item_group_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useItemGroup(props) X-Ref |
No description |
ItemGroup(props, forwardedRef) 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. |
ControlPointButton(_ref) X-Ref |
No description |
GradientColorPickerDropdown(_ref2) X-Ref |
No description |
ControlPoints(_ref3) X-Ref |
No description |
InsertPoint(_ref6) 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 |
getLinearGradientRepresentation(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 |
CustomGradientPicker(_ref3) X-Ref |
No description |
SingleOrigin(_ref) X-Ref |
No description |
MultipleOrigin(_ref3) X-Ref |
No description |
GradientPicker(_ref5) X-Ref |
No description |
cycleValue(value, total, offset) X-Ref |
No description |
Class: NavigableContainer - X-Ref
NavigableMenu(_ref, ref) X-Ref |
Internal dependencies |
mergeProps() X-Ref |
No description |
DropdownMenu(dropdownMenuProps) X-Ref |
No description |
palette_edit_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
NameInput(_ref) X-Ref |
No description |
getNameForPosition(position) X-Ref |
No description |
palette_edit_Option(_ref2) X-Ref |
No description |
isTemporaryElement(slugPrefix, _ref3, index) X-Ref |
No description |
PaletteEditListView(_ref4) X-Ref |
No description |
PaletteEdit(_ref5) X-Ref |
No description |
Class: TokenInput - X-Ref
SuggestionsList(_ref) X-Ref |
No description |
ComboboxControl(_ref) 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(props, forwardedRef) X-Ref |
No description |
handleEscapeKeyDown(event) X-Ref |
No description |
confirm_dialog_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ConfirmDialog(props, forwardedRef) X-Ref |
No description |
objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
index_module_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 |
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, environment) 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 param: {Window} environment The window context where downshift renders. |
downshift_esm_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 |
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. |
getA11yStatusMessage(var isOpen = _ref2.isOpen,resultCount = _ref2.resultCount,previousResultCount = _ref2.previousResultCount;if (!isOpen) X-Ref |
Default implementation for status message. Only added when menu is open. Will specify 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. returns: {Object} The merged controlled state. param: {Object} state The state of the component/hook. param: {Object} props The props that may contain controlled values. |
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 |
downshift_esm_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. returns: {number} The new index after the move. 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. |
getNextNonDisabledIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) X-Ref |
Returns the next index in the list of an item that is not disabled. 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. 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. |
targetWithinDownshift(target, downshiftElements, environment, checkActiveElement) X-Ref |
Checks if event target is within the downshift elements. returns: {boolean} Whether or not the target is within downshift elements. param: {EventTarget} target Target to check. param: {HTMLElement[]} downshiftElements The elements that form downshift (list, toggle button etc). param: {Window} environment The window context where downshift renders. param: {boolean} checkActiveElement Whether to also check activeElement. |
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 |
stateReducer(s, a) X-Ref |
Default state reducer that returns the changes. returns: {Object} changes. param: {Object} s state. param: {Object} a action with changes. |
getA11ySelectionMessage(selectionParameters) X-Ref |
Returns a message to be added to aria-live region when item is selected. returns: {string} The a11y message. param: {Object} selectionParameters Parameters required to build the message. |
useElementIds(_ref) X-Ref |
No description |
getItemIndex(index, item, items) X-Ref |
No description |
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. returns: {Array} An array with the state and an action dispatcher. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. |
useControlledReducer(var _useEnhancedReducer = useEnhancedReducer(reducer, initialState, props) X-Ref |
Wraps the useEnhancedReducer and applies the controlled prop values before returning the new state. returns: {Array} An array with the state and an action dispatcher. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. |
getDefaultValue(if (defaultStateValues === void 0) X-Ref |
No description |
getInitialValue(if (defaultStateValues === void 0) X-Ref |
No description |
getInitialState(var selectedItem = getInitialValue$1(props, 'selectedItem') 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. returns: {Object} Ref containing whether mouseDown or touchMove event is happening 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. |
useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) X-Ref |
No description |
useScrollIntoView(_ref3) X-Ref |
No description |
downshiftCommonReducer(state, action, stateChangeTypes) X-Ref |
No description |
getItemIndexByCharacterKey(_a) X-Ref |
No description |
getA11yStatusMessage(_a) 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 = getInitialState$2(props) X-Ref |
No description |
useControlledReducer(reducer, initialState, props) 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. returns: {Array} An array with the state and an action dispatcher. param: {Function} reducer Reducer function from downshift. param: {Object} initialState Initial state of the hook. param: {Object} props The hook props. |
downshiftUseComboboxReducer(state, action) X-Ref |
No description |
useCombobox(userProps) X-Ref |
No description |
getInitialValue(props, propKey) 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. returns: {any} The initial value for that prop. param: {Object} props Props passed to the hook. param: {string} propKey Props key to generate the value for. |
getDefaultValue(props, propKey) 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. returns: {any} The initial value for that prop. param: {Object} props Props passed to the hook. param: {string} propKey Props key to generate the value for. |
getInitialState(props) 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. returns: {Object} The initial state. param: {Object} props Props passed to the hook. |
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. returns: {boolean} Whether the operation is allowed. param: {KeyboardEvent} event The event from keydown. |
getA11yRemovalMessage(selectionParameters) X-Ref |
Returns a message to be added to aria-live region when item is removed. returns: {string} The a11y message. param: {Object} selectionParameters Parameters required to build the message. |
downshiftMultipleSelectionReducer(state, action) X-Ref |
No description |
useMultipleSelection(userProps) X-Ref |
No description |
CustomSelectControl(_ref3) X-Ref |
No description |
getDescribedBy() X-Ref |
No description |
DatePickerDay(_ref) X-Ref |
No description |
DatePicker(_ref2) X-Ref |
No description |
from12hTo24h(hours, isPm) 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. param: {string} [props.className] |
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 |
DimensionControl(props) X-Ref |
Internal dependencies |
disabled_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
Disabled(_ref) X-Ref |
return: {JSX.Element} Element wrapping the children to disable them when isDisabled is true. param: {OwnProps & import('react').HTMLAttributes<HTMLDivElement>} props |
Draggable(_ref) X-Ref |
return: {JSX.Element} A draggable component. param: {Props} props |
end(event) X-Ref |
Removes the element clone, resets cursor, and removes drag listener. param: {import('react').DragEvent} 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: {import('react').DragEvent} event The non-custom DragEvent. |
over(e) X-Ref |
param: {import('react').DragEvent<Element>} e |
useIsMounted() X-Ref |
No description |
use_force_update_useForceUpdate() X-Ref |
No description |
newChildrenMap() X-Ref |
No description |
updateChildLookup(children, allChildren) X-Ref |
No description |
onlyElements(children) X-Ref |
No description |
DropZoneComponent(_ref) X-Ref |
Internal dependencies |
DropZoneProvider(_ref) X-Ref |
WordPress dependencies |
Swatch(_ref) X-Ref |
No description |
getDefaultColors(palette) X-Ref |
Calculate the brightest and darkest values from a color palette. return: {string[]} Tuple of the darkest color and brightest color. param: {Object[]} palette Color palette for the theme. |
getGradientFromCSSColors() X-Ref |
Generate a duotone gradient from a list of colors. return: {string} CSS gradient string for the duotone swatch. param: {string[]} colors CSS color strings. param: {string} angle CSS gradient angle. |
getColorStopsFromColors(colors) X-Ref |
Convert a color array to an array of color stops. return: {Object[]} Color stop information. param: {string[]} colors CSS colors array |
getColorsFromColorStops() X-Ref |
Convert a color stop array to an array colors. return: {string[]} CSS colors array. param: {Object[]} colorStops Color stop information. |
DuotoneSwatch(_ref) X-Ref |
No description |
ColorOption(_ref) X-Ref |
No description |
ColorListPicker(_ref2) X-Ref |
No description |
CustomDuotoneBar(_ref) X-Ref |
No description |
DuotonePicker(_ref) X-Ref |
No description |
external_link_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ExternalLink(_ref, ref) X-Ref |
No description |
useFlyoutResizeUpdater(_ref) X-Ref |
param: { { onResize?: () => any } } onResize |
useUpdateEffect_useUpdateEffect(effect, deps) X-Ref |
A `React.useEffect` that will not run on the first render. |
removeIndexFromArray(array, index) X-Ref |
Immutably removes an index from an array. returns: {Array} A new array without the item in the passed index. |
removeItemFromArray_removeItemFromArray(array, item) X-Ref |
Immutably removes an item from an array. returns: {Array} A new array without the passed item. |
useMenuContext(menuRef, role, options) X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
closest_closest(element, selectors) X-Ref |
Ponyfill for `Element.prototype.closest` |
isEmpty(arg) X-Ref |
Checks whether `arg` is empty or not. |
useDisclosureRef(dialogRef, options) X-Ref |
No description |
usePreventBodyScroll(targetRef, options) X-Ref |
No description |
useFocusOnShow(dialogRef, nestedDialogs, options) X-Ref |
No description |
usePortalRef(dialogRef, options) X-Ref |
No description |
removeFromDOM(element) X-Ref |
No description |
isFocusTrap(element) X-Ref |
No description |
useFocusTrap(dialogRef, visibleModals, options) X-Ref |
No description |
hidByFocusingAnotherElement(dialogRef) X-Ref |
No description |
useFocusOnHide(dialogRef, disclosureRef, options) X-Ref |
No description |
useNestedDialogs(dialogRef, options) X-Ref |
No description |
dialogContains(target) X-Ref |
No description |
isDisclosure(target, disclosure) X-Ref |
No description |
isInDocument(target) X-Ref |
No description |
useEventListenerOutside(containerRef, disclosureRef, nestedDialogs, eventType, listener, shouldListen, capture) X-Ref |
No description |
useMouseDownRef(dialogRef, options) X-Ref |
No description |
useHideOnClickOutside(dialogRef, disclosureRef, nestedDialogs, options) X-Ref |
No description |
useDisableHoverOutside(portalRef, nestedDialogs, options) X-Ref |
No description |
useFocusOnChildUnmount(dialogRef, options) X-Ref |
When the focused child gets removed from the DOM, we make sure to move focus to the dialog. |
isActualElement(element) X-Ref |
No description |
useFocusOnBlur(dialogRef, options) X-Ref |
No description |
FlyoutContent(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').ContentProps, 'div', false>} props param: {import('react').ForwardedRef<any>} forwardedRef forwardedRef |
useFlyout(props) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').Props, 'div', false>} props |
component_Flyout(props, forwardedRef) X-Ref |
param: {import('../../ui/context').WordPressComponentProps<import('../types').Props, 'div', false>} props param: {import('react').ForwardedRef<any>} forwardedRef |
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. |
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_Media(_ref) X-Ref |
No description |
MediaPlaceholderElement(_ref2) X-Ref |
No description |
Class: FocalPointPicker - X-Ref
FocusableIframe(_ref) X-Ref |
WordPress dependencies |
useRadioState(initialState) X-Ref |
No description |
toggle_group_control_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ToggleGroupControlBackdrop(_ref) X-Ref |
No description |
component_ToggleGroupControl(props, forwardedRef) X-Ref |
No description |
getChecked(options) X-Ref |
No description |
useInitialChecked(options) X-Ref |
No description |
fireChange(element, onChange) X-Ref |
No description |
toggle_group_control_option_base_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ToggleGroupControlOptionBase(props, forwardedRef) X-Ref |
No description |
ToggleGroupControlOption(props) X-Ref |
Internal dependencies |
splitValueAndUnitFromSize(size) X-Ref |
Helper util to split a font size to its numeric value and its `unit`, if exists. return: {[number, string]} An array with the numeric value and the unit if exists. param: {string|number} size Font size. |
isSimpleCssValue(value) X-Ref |
Some themes use css vars for their font sizes, so until we have the way of calculating them don't display them. return: {boolean} Whether the value is a simple css value. param: {string|number} value The value that is checked. |
getFontSizeOptions(useSelectControl, optionsArray, disableCustomFontSizes, optionsContainComplexCssValues) X-Ref |
Return font size options in the proper format depending on the currently used control (select, toggle group). return: {Object[]|null} Array of font sizes in proper format for the used control. param: {boolean} useSelectControl Whether to use a select control. param: {Object[]} optionsArray Array of available font sizes objects. param: {*} disableCustomFontSizes Flag that indicates if custom font sizes are disabled. param: {boolean} optionsContainComplexCssValues Whether font sizes contain at least one complex css value(clamp, var, etc..). |
getSelectOptions(optionsArray, disableCustomFontSizes) X-Ref |
No description |
getToggleGroupOptions(optionsArray, optionsContainComplexCssValues) X-Ref |
No description |
getSelectedOption(fontSizes, value) X-Ref |
No description |
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 |
Class: FormTokenField - X-Ref
PageControl(_ref) X-Ref |
No description |
Guide(_ref) X-Ref |
No description |
GuidePage(props) X-Ref |
WordPress dependencies |
IconButton(_ref, ref) X-Ref |
No description |
hook_useItem(props) X-Ref |
No description |
component_Item(props, forwardedRef) X-Ref |
No description |
KeyboardShortcut(_ref) X-Ref |
No description |
KeyboardShortcuts(_ref2) X-Ref |
No description |
MenuGroup(props) X-Ref |
No description |
MenuItem(props, ref) X-Ref |
No description |
MenuItemsChoice(_ref) X-Ref |
Internal dependencies |
TabbableContainer(_ref, ref) X-Ref |
Internal dependencies |
useCombinedRef() X-Ref |
External dependencies |
SearchControl(_ref, ref) X-Ref |
No description |
navigation_styles_EMOTION_STRINGIFIED_CSS_ERROR_() 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 |
NavigationItemBase(props) X-Ref |
No description |
NavigationItem(props) 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 |
component_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
NavigatorProvider(props, forwardedRef) X-Ref |
No description |
navigator_screen_component_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
NavigatorScreen(props, forwardedRef) X-Ref |
No description |
useNavigator() X-Ref |
Retrieves a `navigator` instance. |
useNavigatorButton(props) X-Ref |
No description |
NavigatorButton(props, forwardedRef) X-Ref |
No description |
useNavigatorBackButton(props) X-Ref |
No description |
NavigatorBackButton(props, forwardedRef) 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 |
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. |
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 |
radio_Radio(_ref, ref) 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: Properties for hook. param: props param: props.axis Only shows the label corresponding to the axis. param: props.fadeTimeout Duration (ms) before deactivating the resize label. param: props.onResize Callback when a resize occurs. Provides { width, height } callback. param: props.position Adjusts label value. param: 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: The rendered label. param: props param: props.axis Only shows the label corresponding to the axis. param: props.height Height value. param: props.moveX Recent width (x axis) changes. param: props.moveY Recent width (y axis) changes. param: props.position Adjusts label value. param: props.showPx Whether to add `PX` to the label. param: props.width Width value. |
resize_tooltip_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
resize_tooltip_label_Label(_ref, ref) X-Ref |
No description |
ResizeTooltip(_ref, ref) X-Ref |
No description |
ResizableBox(_ref, ref) X-Ref |
No description |
ResponsiveWrapper(_ref) X-Ref |
No description |
sendResize() X-Ref |
No description |
removeViewportStyles( ruleOrNode ) 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 |
snackbar_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 |
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_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
Spinner(_ref) X-Ref |
return: {JSX.Element} Element param: {Props} props |
component_Surface(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<import('./types').Props, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
TabPanel(_ref2) X-Ref |
No description |
TextControl(_ref, ref) X-Ref |
param: {Props} props Props param: {import('react').ForwardedRef<HTMLInputElement>} ref |
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 |
ToggleGroupControlOptionIcon(props) X-Ref |
Internal dependencies |
toolbar_item_ToolbarItem(_ref, ref) X-Ref |
No description |
ToolbarButton(_ref, ref) 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. |
ToolbarDropdownMenu(props, ref) X-Ref |
No description |
tools_panel_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
useToolsPanelHeader(props) X-Ref |
No description |
useToolsPanel(props) X-Ref |
No description |
useToolsPanelItem(props) X-Ref |
No description |
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: {Function} props.onExpandRow Callback to fire when row is expanded. param: {Function} props.onCollapseRow Callback to fire when row is collapsed. param: {Function} props.onFocusRow Callback to fire when moving focus to a different row. param: {Object} ref A ref to the underlying DOM table element. |
TreeGridRow(_ref, ref) X-Ref |
WordPress dependencies |
stopPropagation(event) X-Ref |
No description |
z_stack_styles_EMOTION_STRINGIFIED_CSS_ERROR_() X-Ref |
No description |
ZStack(props, forwardedRef) X-Ref |
No description |
useNavigateRegions() X-Ref |
No description |
focusRegion(offset) X-Ref |
No description |
onClick() 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. |
Class: FilteredComponentRenderer - X-Ref
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. |
Component(props, ref) X-Ref |
Override the default edit UI to include notices if supported. return: {WPComponent} Wrapped component. param: {WPComponent} OriginalComponent Original component. |
noop() X-Ref |
No description |
noopThunk() X-Ref |
No description |
addNumericSeparator(num, str) X-Ref |
No description |
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 |
isString(obj) X-Ref |
No description |
isNumber(obj) X-Ref |
No description |
isBoolean(obj) X-Ref |
No description |
isSymbol(obj) X-Ref |
No description |
isBigInt(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 |
isWeakRef(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 |
classNames() 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 |
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 |
y(a) 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 |
__nested_webpack_require_187__(moduleId) X-Ref |
No description |
defaultSanitize(string) X-Ref |
No description |
escapeRegExpFn(string) X-Ref |
No description |
getStatics(component) X-Ref |
No description |
hoistNonReactStatics(targetComponent, sourceComponent, blacklist) X-Ref |
No description |
isTouchDevice() X-Ref |
No description |
baseGetTag(value) X-Ref |
The base implementation of `getTag` without fallbacks for buggy environments. returns: {string} Returns the `toStringTag`. param: {*} value The value to query. |
baseTrim(string) X-Ref |
The base implementation of `_.trim`. returns: {string} Returns the trimmed string. param: {string} string The string to trim. |
getRawTag(value) X-Ref |
A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. returns: {string} Returns the raw `toStringTag`. param: {*} value The value to query. |
objectToString(value) X-Ref |
Converts `value` to a string using `Object.prototype.toString`. returns: {string} Returns the converted string. param: {*} value The value to convert. |
trimmedEndIndex(string) X-Ref |
Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace character of `string`. returns: {number} Returns the index of the last non-whitespace character. param: {string} string The string to inspect. |
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`. returns: {Function} Returns the new debounced function. 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 |
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 |
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('')`) returns: {boolean} Returns `true` if `value` is an object, else `false`. param: {*} value The value to check. since: 0.1.0 |
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". returns: {boolean} Returns `true` if `value` is object-like, else `false`. param: {*} value The value to check. since: 4.0.0 |
isSymbol(value) X-Ref |
Checks if `value` is classified as a `Symbol` primitive or object. returns: {boolean} Returns `true` if `value` is a symbol, else `false`. param: {*} value The value to check. since: 4.0.0 |
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`. returns: {Function} Returns the new throttled function. 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 |
toNumber(value) X-Ref |
Converts `value` to a number. returns: {number} Returns the number. param: {*} value The value to process. since: 4.0.0 |
memize( fn, options ) X-Ref |
Accepts a function to be memoized, and returns a new memoized function, with optional options. return: {F & MemizeMemoizedFunction} Memoized function. param: {F} fn Function to memoize. param: {MemizeOptions} [options] Options object. |
memoized( ) X-Ref |
No description |
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 |
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 |
_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 |
_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 |
_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 |
CalendarWeek(_ref) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
ChevronDown(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
ChevronUp(props) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
CloseButton(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 |
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 |
_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 |
_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 |
_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 |
_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 |
_interopRequireDefault(obj) X-Ref |
No description |
KeyboardShortcutRow(_ref) 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 |
_interopRequireDefault(obj) X-Ref |
No description |
_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 |
_interopRequireDefault(obj) X-Ref |
No description |
calculateDimension(el, axis) X-Ref |
No description |
getActiveElement() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getCalendarDaySettings(day, ariaLabelFormat, daySize, modifiers, phrases) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getCalendarMonthWeeks(month, enableOutsideDays) X-Ref |
No description |
getCalendarMonthWidth(daySize, calendarMonthPadding) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
getBlankDaysBeforeFirstDay(firstDayOfMonth, firstDayOfWeek) X-Ref |
No description |
getNumberOfCalendarMonthWeeks(month) X-Ref |
No description |
getPhrase(phrase, args) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
_defineProperty(obj, key, value) X-Ref |
No description |
getPhrasePropTypes(defaultPhrases) X-Ref |
No description |
getTransformStyles(transformValue) 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 |
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 |
isDayVisible(day, month, numberOfMonths, enableOutsideDays) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isNextMonth(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isPrevMonth(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isSameDay(a, b) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
isSameMonth(a, b) X-Ref |
No description |
isTransitionEndSupported() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
registerCSSInterfaceWithDefaultTheme() X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
registerInterfaceWithDefaultTheme(reactWithStylesInterface) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toISODateString(date, currentFormat) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toISOMonthString(date, currentFormat) X-Ref |
No description |
_interopRequireDefault(obj) X-Ref |
No description |
toMomentObject(dateString, customFormat) X-Ref |
No description |
z(a) 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 |
isValid(value) X-Ref |
No description |
isValid(value) X-Ref |
No description |
isValid(value) X-Ref |
No description |
isValidMoment(testMoment) 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 |
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 |
_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. |
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 |
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 |
_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 |
__webpack_require__(moduleId) X-Ref |
No description |
extends_extends() 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 |
_rollupPluginBabelHelpers_1f0bf8c2_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 |
_rollupPluginBabelHelpers_0c84a174_defineProperty(obj, key, value) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_ownKeys(object, enumerableOnly) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_objectSpread2(target) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_arrayLikeToArray(arr, len) X-Ref |
No description |
_rollupPluginBabelHelpers_0c84a174_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
isRenderProp(children) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_defineProperty(obj, key, value) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_ownKeys(object, enumerableOnly) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_objectSpread2(target) X-Ref |
No description |
es_rollupPluginBabelHelpers_1f0bf8c2_objectWithoutPropertiesLoose(source, excluded) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_unsupportedIterableToArray(o, minLen) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_arrayLikeToArray(arr, len) X-Ref |
No description |
_rollupPluginBabelHelpers_1f0bf8c2_createForOfIteratorHelperLoose(o, allowArrayLike) X-Ref |
No description |
isObject_isObject(arg) X-Ref |
Checks whether `arg` is an object or not. returns: {boolean} |
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. |
shallowEqual(objA, objB) X-Ref |
Compares two objects. |
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 |
createComponent_forwardRef(component) X-Ref |
No description |
memo(component, propsAreEqual) X-Ref |
No description |
createComponent(_ref) X-Ref |
Creates a React component. param: options |
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 |
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. |
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. |
getDocument(element) X-Ref |
Returns `element.ownerDocument || document`. |
getWindow(element) X-Ref |
Returns `element.ownerDocument.defaultView || window`. |
checkIsBrowser() X-Ref |
No description |
useLiveRef(value) X-Ref |
A `React.Ref` that keeps track of the passed `value`. |
isSelfTarget(event) X-Ref |
Returns `true` if `event.target` and `event.currentTarget` are the same. |
getActiveElement_getActiveElement(element) X-Ref |
Returns `element.ownerDocument.activeElement`. |
contains(parent, child) X-Ref |
Similar to `Element.prototype.contains`, but a little bit faster when `element` is the same as `child`. |
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} |
isUA(string) X-Ref |
Checks if a given string exists in the user agent string. |
matches(element, selectors) X-Ref |
Ponyfill for `Element.prototype.matches` |
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`. returns: {Element[]} param: {Element} container |
getFirstFocusableIn(container) X-Ref |
Returns the first focusable element in `container`. returns: {Element|null} param: {Element} container |
getAllTabbableIn(container, fallbackToFocusable) X-Ref |
Returns all the tabbable elements in `container`, including the container itself. returns: {Element[]} param: {Element} container param: fallbackToFocusable If `true`, it'll return focusable elements if there are no tabbable ones. |
getFirstTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the first tabbable element in `container`, including the container itself if it's tabbable. returns: {Element|null} param: {Element} container param: fallbackToFocusable If `true`, it'll return the first focusable element if there are no tabbable ones. |
getLastTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the last tabbable element in `container`, including the container itself if it's tabbable. returns: {Element|null} param: {Element} container param: fallbackToFocusable If `true`, it'll return the last focusable element if there are no tabbable ones. |
getNextTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the next tabbable element in `container`. returns: {Element|null} param: {Element} container param: fallbackToFocusable If `true`, it'll return the next focusable element if there are no tabbable ones. |
getPreviousTabbableIn(container, fallbackToFocusable) X-Ref |
Returns the previous tabbable element in `container`. returns: {Element|null} param: {Element} container param: fallbackToFocusable If `true`, it'll return the previous focusable element if there are no tabbable ones. |
getClosestFocusable(element) X-Ref |
Returns the closest focusable element. returns: {Element|null} param: {Element} container |
focusIfNeeded(element) 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 |
isNativeClick(event) X-Ref |
No description |
findFirstEnabledItem(items, excludeId) X-Ref |
No description |
getCurrentId(options, passedId) X-Ref |
No description |
userFocus(element) X-Ref |
No description |
hasUserFocus(element) X-Ref |
No description |
setUserFocus(element, value) X-Ref |
No description |
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. |
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. |
generateRandomString(prefix) X-Ref |
No description |
unstable_IdProvider(_ref) X-Ref |
No description |
createEvent(element, type, eventInit) X-Ref |
Creates an `Event` in a way that also works on IE 11. |
fireEvent(element, type, eventInit) X-Ref |
Creates and dispatches `Event` in a way that also works on IE 11. |
setTextFieldValue(element, value) X-Ref |
No description |
getWidget(itemElement) X-Ref |
No description |
useItem(options) X-Ref |
No description |
targetIsAnotherItem(event, items) X-Ref |
No description |
computePopoverXAxisPosition(anchorRect, contentSize, xAxis, corner, stickyBoundaryElement, chosenYAxis, boundaryElement, forcePosition, forceXAlignment) 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. param: {boolean} forceXAlignment Don't adjust alignment based on YAxis |
computePopoverYAxisPosition(anchorRect, contentSize, yAxis, corner, stickyBoundaryElement, anchorRef, relativeOffsetTop, forcePosition, editorWrapper) 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 switching between sticky param: {Element} anchorRef The anchor element. param: {Element} relativeOffsetTop If applicable, top offset of the relative positioned param: {boolean} forcePosition Don't adjust position based on anchor. param: {Element|null} editorWrapper Element that wraps the editor content. Used to access |
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 switching between param: {Element} anchorRef The anchor element. param: {number} relativeOffsetTop If applicable, top offset of the relative positioned param: {Element} boundaryElement Boundary element. param: {boolean} forcePosition Don't adjust position based on anchor. param: {boolean} forceXAlignment Don't adjust alignment based on YAxis param: {Element|null} editorWrapper Element that wraps the editor content. Used to access |
offsetIframe(rect, ownerDocument, container) X-Ref |
Offsets the given rect by the position of the iframe that contains the element. If the owner document is not in an iframe then it returns with the original rect. If the popover container document and the anchor document are the same, the original rect will also be returned. return: {DOMRect} offsetted bounds param: {DOMRect} rect bounds of the element param: {Document} ownerDocument document of the element param: {Element} container The popover container to position. |
Dashicon(_ref) X-Ref |
return: {JSX.Element} Element param: {Props} props |
Icon(_ref) X-Ref |
No description |
useUpdateEffect(effect, deps) X-Ref |
Runs an effect only on update (i.e., ignores the first render) param: {import('react').EffectCallback} effect param: {import('react').DependencyList} deps |
useContextSystemBridge(_ref) X-Ref |
Consolidates incoming ContextSystem values with a (potential) parent ContextSystem value. Note: This function will warn if it detects an un-memoized `value` return: {Record<string, any>} The consolidated value. param: {Object} props param: {Record<string, any>} props.value |
getNamespace(componentName) X-Ref |
Creates a dedicated context namespace HTML attribute for components. ns is short for "namespace" return: {Record<string, any>} A props object with the namespaced HTML attribute. param: {string} componentName The name for the component. |
getConnectedNamespace() X-Ref |
Creates a dedicated connected context namespace HTML attribute for components. ns is short for "namespace" return: {Record<string, any>} A props object with the namespaced HTML attribute. |
getStyledClassName(namespace) X-Ref |
Generates the connected component CSS className based on the namespace. return: The generated CSS className. param: namespace The name of the connected component. |
sheetForTag(tag) X-Ref |
No description |
createStyleElement(options) X-Ref |
No description |
StyleSheet(options) X-Ref |
No description |
hash(value, length) X-Ref |
return: {number} param: {string} value param: {number} length |
trim(value) X-Ref |
return: {string} param: {string} value |
match(value, pattern) X-Ref |
return: {string?} param: {string} value param: {RegExp} pattern |
replace(value, pattern, replacement) X-Ref |
return: {string} param: {string} value param: {(string|RegExp)} pattern param: {string} replacement |
indexof(value, search) X-Ref |
return: {number} param: {string} value param: {string} search |
Utility_charat(value, index) X-Ref |
return: {number} param: {string} value param: {number} index |
Utility_substr(value, begin, end) X-Ref |
return: {string} param: {string} value param: {number} begin param: {number} end |
Utility_strlen(value) X-Ref |
return: {number} param: {string} value |
Utility_sizeof(value) X-Ref |
return: {number} param: {any[]} value |
Utility_append(value, array) X-Ref |
return: {any} param: {any} value param: {any[]} array |
Utility_combine(array, callback) X-Ref |
return: {string} param: {string[]} array param: {function} callback |
node(value, root, parent, type, props, children, length) X-Ref |
param: {string} value param: {object | null} root param: {object | null} parent param: {string} type param: {string[] | string} props param: {object[] | string} children param: {number} length |
copy(root, props) X-Ref |
return: {object} param: {object} root param: {object} props |
Tokenizer_char() X-Ref |
return: {number} |
prev() X-Ref |
return: {number} |
next() X-Ref |
return: {number} |
peek() X-Ref |
return: {number} |
caret() X-Ref |
return: {number} |
slice(begin, end) X-Ref |
return: {string} param: {number} begin param: {number} end |
token(type) X-Ref |
return: {number} param: {number} type |
alloc(value) X-Ref |
return: {any[]} param: {string} value |
dealloc(value) X-Ref |
return: {any} param: {any} value |
delimit(type) X-Ref |
return: {string} param: {number} type |
Tokenizer_tokenize(value) X-Ref |
return: {string[]} param: {string} value |
whitespace(type) X-Ref |
return: {string} param: {number} type |
tokenizer(children) X-Ref |
return: {string[]} param: {string[]} children |
escaping(index, count) X-Ref |
return: {string} param: {number} index param: {number} count |
delimiter(type) X-Ref |
return: {number} param: {number} type |
commenter(type, index) X-Ref |
return: {number} param: {number} type param: {number} index |
identifier(index) X-Ref |
No description |
serialize(children, callback) X-Ref |
return: {string} param: {object[]} children param: {function} callback |
stringify(element, index, children, callback) X-Ref |
return: {string} param: {object} element param: {number} index param: {object[]} children param: {function} callback |
prefix(value, length) X-Ref |
return: {string} param: {string} value param: {number} length |
middleware(collection) X-Ref |
return: {function} param: {function[]} collection |
rulesheet(callback) X-Ref |
return: {function} param: {function} callback |
prefixer(element, index, children, callback) X-Ref |
param: {object} element param: {number} index param: {object[]} children param: {function} callback |
namespace(element) X-Ref |
param: {object} element param: {number} index param: {object[]} children |
compile(value) X-Ref |
return: {object[]} param: {string} value |
parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) X-Ref |
return: {object} param: {string} value param: {object} root param: {object?} parent param: {string[]} rule param: {string[]} rules param: {string[]} rulesets param: {number[]} pseudo param: {number[]} points param: {string[]} declarations |
ruleset(value, root, parent, index, offset, rules, points, type, props, children, length) X-Ref |
return: {object} param: {string} value param: {object} root param: {object?} parent param: {number} index param: {number} offset param: {string[]} rules param: {number[]} points param: {string} type param: {string[]} props param: {string[]} children param: {number} length |
comment(value, root, parent) X-Ref |
return: {object} param: {number} value param: {object} root param: {object?} parent |
declaration(value, root, parent, length) X-Ref |
return: {object} param: {string} value param: {object} root param: {object?} parent param: {number} length |
murmur2(str) X-Ref |
No description |
memoize(fn) X-Ref |
No description |
handleInterpolation(mergedProps, registered, interpolation) X-Ref |
No description |
createStringFromObject(mergedProps, registered, obj) X-Ref |
No description |
withTheme(Component) X-Ref |
No description |
emotion_element_cbed451f_browser_esm_useInsertionEffectMaybe(create) X-Ref |
No description |
emotion_utils_browser_esm_getRegisteredStyles(registered, registeredStyles, classNames) X-Ref |
No description |
insertWithoutScoping(cache, serialized) X-Ref |
No description |
merge(registered, css, className) X-Ref |
No description |
useContextSystem(props, namespace) X-Ref |
Custom hook that derives registered props from the Context system. These derived props are then consolidated with incoming component props. return: {ConnectedProps<P>} The connected props. param: {P} props Incoming props from the component. param: {string} namespace The namespace to register and to derive context props from. |
contextConnect(Component, namespace) X-Ref |
Forwards ref (React.ForwardRef) and "Connects" (or registers) a component within the Context system under a specified namespace. This is an (experimental) evolution of the initial connect() HOC. The hope is that we can improve render performance by removing functional component wrappers. return: The connected WordPressComponent param: Component The component to register into the Context system. param: namespace The namespace to register the component under. param: options |
getConnectNamespace(Component) X-Ref |
Attempts to retrieve the connected namespace from a component. return: The connected namespaces. param: Component The component to retrieve a namespace from. |
hasConnectNamespace(Component, match) X-Ref |
Checks to see if a component is connected within the Context system. param: Component The component to retrieve a namespace from. param: match The namespace to check. |
dist_emotion_utils_browser_esm_getRegisteredStyles(registered, registeredStyles, classNames) X-Ref |
No description |
emotion_styled_base_browser_esm_useInsertionEffectMaybe(create) X-Ref |
No description |
VisuallyHidden(props, forwardedRef) X-Ref |
param: {import('../ui/context').WordPressComponentProps<{ children: import('react').ReactNode }, 'div'>} props param: {import('react').ForwardedRef<any>} forwardedRef |
useDeprecatedProps(_ref) X-Ref |
No description |
Button(props, ref) X-Ref |
No description |
setLocked(locked) X-Ref |
param: {boolean} locked |
ScrollLock() X-Ref |
A component that will lock scrolling when it is mounted and unlock scrolling when it is unmounted. return: {null} Render nothing. |
FillComponent(_ref) X-Ref |
No description |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |