REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 3.04 KB
Close
/home/byroehnu/.trash/node_modules11/react-popper/lib/cjs/Popper.js.flow
Text
Base64
// @flow strict import * as React from 'react'; import { type State, type Placement, type PositioningStrategy, type VirtualElement, type StrictModifiers, type Modifier, } from '@popperjs/core/lib'; import { ManagerReferenceNodeContext } from './Manager'; import type { Ref } from './RefTypes'; import { unwrapArray, setRef } from './utils'; import { usePopper } from './usePopper'; type ReferenceElement = ?(VirtualElement | HTMLElement); type Modifiers = Array<StrictModifiers | $Shape<Modifier<string, {}>>>; export type PopperArrowProps = {| ref: Ref, style: CSSStyleDeclaration, |}; export type PopperChildrenProps = {| ref: Ref, style: CSSStyleDeclaration, placement: Placement, isReferenceHidden: ?boolean, hasPopperEscaped: ?boolean, update: () => Promise<null | $Shape<State>>, forceUpdate: () => void, arrowProps: PopperArrowProps, |}; export type PopperChildren = (PopperChildrenProps) => React.Node; export type PopperProps = $ReadOnly<{| children: PopperChildren, innerRef?: Ref, modifiers?: Modifiers, placement?: Placement, strategy?: PositioningStrategy, referenceElement?: ReferenceElement, onFirstUpdate?: ($Shape<State>) => void, |}>; const NOOP = () => void 0; const NOOP_PROMISE = () => Promise.resolve(null); const EMPTY_MODIFIERS = []; export function Popper({ placement = 'bottom', strategy = 'absolute', modifiers = EMPTY_MODIFIERS, referenceElement, onFirstUpdate, innerRef, children, }: PopperProps): React.Node { const referenceNode = React.useContext(ManagerReferenceNodeContext); const [popperElement, setPopperElement] = React.useState(null); const [arrowElement, setArrowElement] = React.useState(null); React.useEffect(() => { setRef(innerRef, popperElement) }, [innerRef, popperElement]); const options = React.useMemo( () => ({ placement, strategy, onFirstUpdate, modifiers: [ ...modifiers, { name: 'arrow', enabled: arrowElement != null, options: { element: arrowElement }, }, ], }), [placement, strategy, onFirstUpdate, modifiers, arrowElement] ); const { state, styles, forceUpdate, update } = usePopper( referenceElement || referenceNode, popperElement, options ); const childrenProps = React.useMemo( () => ({ ref: setPopperElement, style: styles.popper, placement: state ? state.placement : placement, hasPopperEscaped: state && state.modifiersData.hide ? state.modifiersData.hide.hasPopperEscaped : null, isReferenceHidden: state && state.modifiersData.hide ? state.modifiersData.hide.isReferenceHidden : null, arrowProps: { style: styles.arrow, ref: setArrowElement, }, forceUpdate: forceUpdate || NOOP, update: update || NOOP_PROMISE, }), [ setPopperElement, setArrowElement, placement, state, styles, update, forceUpdate, ] ); return unwrapArray(children)(childrenProps); }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 14
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__typings__
DIR
-
drwxr-xr-x
2026-02-28 00:28:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
746 B
lrw-r--r--
2026-02-28 00:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js.flow
607 B
lrw-r--r--
2026-02-28 00:28:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Manager.js
2.16 KB
lrw-r--r--
2026-02-28 00:27:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Manager.js.flow
1.03 KB
lrw-r--r--
2026-02-28 00:27:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Popper.js
3.66 KB
lrw-r--r--
2026-02-28 00:28:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Popper.js.flow
3.04 KB
lrw-r--r--
2026-02-28 00:28:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Reference.js
2.13 KB
lrw-r--r--
2026-02-28 00:28:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Reference.js.flow
1.12 KB
lrw-r--r--
2026-02-28 00:28:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RefTypes.js
13 B
lrw-r--r--
2026-02-28 00:28:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RefTypes.js.flow
145 B
lrw-r--r--
2026-02-28 00:28:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
usePopper.js
4.61 KB
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
usePopper.js.flow
3.96 KB
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
2.81 KB
lrw-r--r--
2026-02-28 00:28:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js.flow
1.46 KB
lrw-r--r--
2026-02-28 00:28:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).