@teamturing/react-kit 2.51.3 → 2.51.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1342 -24149
- package/esm/_virtual/_commonjsHelpers.js +1 -3
- package/esm/core/ActionList/ActionListItem.js +18 -20
- package/esm/core/ActionList/ActionListSectionDivider.js +2 -2
- package/esm/core/ActionList/ActionListSectionHeader.js +3 -3
- package/esm/core/ActionList/index.js +3 -3
- package/esm/core/AnimatePresence/index.js +2 -5
- package/esm/core/Avatar/index.js +3 -3
- package/esm/core/AvatarGroup/AvatarGroupItem.js +4 -4
- package/esm/core/AvatarGroup/index.js +13 -13
- package/esm/core/BadgeAttacher/index.js +2 -2
- package/esm/core/Breadcrumbs/BreadcrumbsItem.js +4 -4
- package/esm/core/Breadcrumbs/index.js +5 -5
- package/esm/core/Button/index.js +7 -7
- package/esm/core/Card/index.js +1 -1
- package/esm/core/Checkbox/index.js +3 -3
- package/esm/core/Chip/index.js +4 -4
- package/esm/core/ClickArea/index.js +2 -2
- package/esm/core/CounterBadge/index.js +3 -3
- package/esm/core/Datagrid/DatagridBody.js +3 -3
- package/esm/core/Datagrid/DatagridCell.js +2 -2
- package/esm/core/Datagrid/DatagridHeader.js +7 -7
- package/esm/core/Datagrid/DatagridRow.js +3 -3
- package/esm/core/Datagrid/DatagridSubheader.js +3 -3
- package/esm/core/Datagrid/index.js +4 -4
- package/esm/core/DescriptionList/index.js +11 -11
- package/esm/core/Dialog/DialogBody.js +2 -2
- package/esm/core/Dialog/DialogFooter.js +2 -2
- package/esm/core/Dialog/DialogHeader.js +2 -2
- package/esm/core/Dialog/DialogHeaderSubtitle.js +2 -2
- package/esm/core/Dialog/DialogHeaderTitle.js +2 -2
- package/esm/core/Dialog/index.js +8 -8
- package/esm/core/Drawer/DrawerBody.js +2 -2
- package/esm/core/Drawer/DrawerFooter.js +2 -2
- package/esm/core/Drawer/DrawerHeader.js +2 -2
- package/esm/core/Drawer/DrawerHeaderIconButton.js +2 -2
- package/esm/core/Drawer/index.js +12 -13
- package/esm/core/EmptyState/index.js +8 -9
- package/esm/core/Flash/index.js +12 -15
- package/esm/core/FormControl/FormControlCaption.js +2 -2
- package/esm/core/FormControl/FormControlErrorMessage.js +2 -2
- package/esm/core/FormControl/FormControlLabel.js +5 -5
- package/esm/core/FormControl/FormControlSuccessMessage.js +2 -2
- package/esm/core/FormControl/FormControlTooltipIcon.js +5 -6
- package/esm/core/FormControl/index.js +8 -8
- package/esm/core/Grid/index.js +4 -6
- package/esm/core/HorizontalDivider/index.js +2 -2
- package/esm/core/IconButton/index.js +3 -3
- package/esm/core/IconToggleButton/index.js +3 -3
- package/esm/core/ItemList/index.js +2 -2
- package/esm/core/MotionView/index.js +1 -1
- package/esm/core/Overlay/index.js +4 -4
- package/esm/core/OverlayPopper/index.js +4 -6
- package/esm/core/Pagination/index.js +15 -17
- package/esm/core/Pill/index.js +11 -12
- package/esm/core/Radio/index.js +3 -3
- package/esm/core/SearchSelectInput/index.js +22 -28
- package/esm/core/Select/SelectOption.js +3 -3
- package/esm/core/Select/index.js +11 -13
- package/esm/core/Spinner/index.js +2 -3
- package/esm/core/Stack/index.js +4 -4
- package/esm/core/StyledIcon/index.js +3 -3
- package/esm/core/Switch/index.js +3 -3
- package/esm/core/Tab/TabItem.js +5 -5
- package/esm/core/Tab/index.js +18 -19
- package/esm/core/TextInput/TextInputTrailingAction.js +4 -4
- package/esm/core/TextInput/index.js +9 -11
- package/esm/core/Textarea/index.js +6 -8
- package/esm/core/ThemeProvider/index.js +2 -2
- package/esm/core/Toast/index.js +6 -8
- package/esm/core/Tooltip/BaseTooltip.js +8 -8
- package/esm/core/Tooltip/index.js +4 -4
- package/esm/core/Tooltip/useTooltip.js +1 -3
- package/esm/enigma/EnigmaUI/index.js +3 -4
- package/esm/enigma/Layout/SingleColumnLayout/index.js +4 -4
- package/esm/enigma/View/ChipGroupView/index.js +6 -6
- package/esm/enigma/View/GridView/index.js +5 -5
- package/esm/enigma/View/HorizontalDividerView/index.js +2 -2
- package/esm/enigma/View/IconView/index.js +4 -4
- package/esm/enigma/View/ImageView/index.js +2 -2
- package/esm/enigma/View/TextView/index.js +2 -2
- package/esm/hook/useFocusTrap.js +5 -5
- package/esm/hook/useFocusZone.js +2 -2
- package/esm/hook/useResize.js +1 -1
- package/esm/index.js +1 -1
- package/esm/theme/index.js +1 -13
- package/package.json +2 -2
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/jsx-runtime.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-jsx-runtime.development.js +0 -3
- package/esm/_virtual/react-jsx-runtime.production.min.js +0 -3
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -593
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -731
- package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -1621
- package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -233
- package/esm/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -321
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -136
- package/esm/node_modules/@primer/behaviors/dist/esm/focus-trap.js +0 -105
- package/esm/node_modules/@primer/behaviors/dist/esm/focus-zone.js +0 -436
- package/esm/node_modules/@primer/behaviors/dist/esm/polyfills/event-listener-signal.js +0 -38
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/iterate-focusable-elements.js +0 -65
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/unique-id.js +0 -6
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/user-agent.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/animation/animators/instant.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.js +0 -16
- package/esm/node_modules/framer-motion/dist/es/animation/animators/js/index.js +0 -303
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.js +0 -199
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.js +0 -31
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -87
- package/esm/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -51
- package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -89
- package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -129
- package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -101
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/single-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -71
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -63
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/animation/utils/keyframes.js +0 -45
- package/esm/node_modules/framer-motion/dist/es/animation/utils/transitions.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -71
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -56
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -158
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/debug/record.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/back.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -51
- package/esm/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -37
- package/esm/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -60
- package/esm/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -104
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -457
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -27
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -125
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.js +0 -53
- package/esm/node_modules/framer-motion/dist/es/gestures/focus.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/gestures/hover.js +0 -32
- package/esm/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -148
- package/esm/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -46
- package/esm/node_modules/framer-motion/dist/es/gestures/press.js +0 -120
- package/esm/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js +0 -20
- package/esm/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -31
- package/esm/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -38
- package/esm/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/esm/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -131
- package/esm/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -72
- package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -49
- package/esm/node_modules/framer-motion/dist/es/motion/index.js +0 -79
- package/esm/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -75
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -81
- package/esm/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -59
- package/esm/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -93
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -20
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -122
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -54
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -25
- package/esm/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -27
- package/esm/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1494
- package/esm/node_modules/framer-motion/dist/es/projection/node/state.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -112
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -35
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -42
- package/esm/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -507
- package/esm/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -48
- package/esm/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/render/dom/motion-proxy.js +0 -47
- package/esm/node_modules/framer-motion/dist/es/render/dom/motion.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -35
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/create-config.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -89
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -57
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -230
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -72
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -55
- package/esm/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -57
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -74
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -45
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/transform.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/render/store.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -46
- package/esm/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -52
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -32
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -319
- package/esm/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -63
- package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -26
- package/esm/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -101
- package/esm/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/utils/array.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/clamp.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/delay.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/utils/errors.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -42
- package/esm/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -92
- package/esm/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/memo.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/utils/mix-color.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/utils/mix-complex.js +0 -64
- package/esm/node_modules/framer-motion/dist/es/utils/mix.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/utils/noop.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/pipe.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/progress.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
- package/esm/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/utils/time-conversion.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/use-force-update.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/use-is-mounted.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/use-unmount-effect.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/value/index.js +0 -331
- package/esm/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -22
- package/esm/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -25
- package/esm/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -92
- package/esm/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/value/types/utils.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -16
- package/esm/node_modules/lodash.debounce/index.js +0 -363
- package/esm/node_modules/lodash.throttle/index.js +0 -424
- package/esm/node_modules/lodash.toarray/index.js +0 -849
- package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1140
- package/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -53
- package/esm/node_modules/react/jsx-runtime.js +0 -12
- package/esm/node_modules/react-is/cjs/react-is.development.js +0 -211
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -123
- package/esm/node_modules/react-is/index.js +0 -12
- package/esm/node_modules/tabbable/dist/index.esm.js +0 -560
- package/esm/packages/icons/esm/AHorizontalLine.js +0 -15
- package/esm/packages/icons/esm/AInCircleFilled.js +0 -21
- package/esm/packages/icons/esm/AVertialLine.js +0 -15
- package/esm/packages/icons/esm/Ai.js +0 -23
- package/esm/packages/icons/esm/AiColor.js +0 -23
- package/esm/packages/icons/esm/AiSad.js +0 -24
- package/esm/packages/icons/esm/Alarm.js +0 -17
- package/esm/packages/icons/esm/AppleColor.js +0 -18
- package/esm/packages/icons/esm/ArrowBelow.js +0 -17
- package/esm/packages/icons/esm/ArrowDiagonal.js +0 -15
- package/esm/packages/icons/esm/ArrowDown.js +0 -17
- package/esm/packages/icons/esm/ArrowLeft.js +0 -17
- package/esm/packages/icons/esm/ArrowLeftCircle.js +0 -15
- package/esm/packages/icons/esm/ArrowLeftLimit.js +0 -17
- package/esm/packages/icons/esm/ArrowLeftRight.js +0 -17
- package/esm/packages/icons/esm/ArrowRight.js +0 -17
- package/esm/packages/icons/esm/ArrowRightCircle.js +0 -15
- package/esm/packages/icons/esm/ArrowRightLimit.js +0 -17
- package/esm/packages/icons/esm/ArrowUp.js +0 -17
- package/esm/packages/icons/esm/ArrowUpDown.js +0 -17
- package/esm/packages/icons/esm/ArrowUpLimit.js +0 -17
- package/esm/packages/icons/esm/Barchart.js +0 -15
- package/esm/packages/icons/esm/Book.js +0 -17
- package/esm/packages/icons/esm/BookColor.js +0 -28
- package/esm/packages/icons/esm/Bookmark.js +0 -17
- package/esm/packages/icons/esm/BookmarkAnimation.js +0 -17
- package/esm/packages/icons/esm/Box.js +0 -24
- package/esm/packages/icons/esm/BoxPlus.js +0 -15
- package/esm/packages/icons/esm/BusColor.js +0 -36
- package/esm/packages/icons/esm/Calendar.js +0 -22
- package/esm/packages/icons/esm/CalendarCheck.js +0 -17
- package/esm/packages/icons/esm/CalendarCheckColor.js +0 -20
- package/esm/packages/icons/esm/CalendarColor.js +0 -36
- package/esm/packages/icons/esm/Camera.js +0 -22
- package/esm/packages/icons/esm/CameraColor.js +0 -30
- package/esm/packages/icons/esm/Card.js +0 -17
- package/esm/packages/icons/esm/CardsPercent.js +0 -19
- package/esm/packages/icons/esm/CardsPercentColor.js +0 -23
- package/esm/packages/icons/esm/CaretDown.js +0 -15
- package/esm/packages/icons/esm/CaretLeft.js +0 -15
- package/esm/packages/icons/esm/CaretRight.js +0 -15
- package/esm/packages/icons/esm/CaretUp.js +0 -15
- package/esm/packages/icons/esm/Cart.js +0 -17
- package/esm/packages/icons/esm/ChatBubble.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleBadgeColor.js +0 -32
- package/esm/packages/icons/esm/ChatBubbleCorrect.js +0 -24
- package/esm/packages/icons/esm/ChatBubbleCorrectColor.js +0 -22
- package/esm/packages/icons/esm/ChatBubbleDots.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleQuestion.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleQuestionAnimation.js +0 -16
- package/esm/packages/icons/esm/ChatBubbleQuestionColor.js +0 -20
- package/esm/packages/icons/esm/Check.js +0 -15
- package/esm/packages/icons/esm/CheckInCircle.js +0 -17
- package/esm/packages/icons/esm/CheckInCircleColor.js +0 -20
- package/esm/packages/icons/esm/CheckInCircleLine.js +0 -20
- package/esm/packages/icons/esm/ChevronDown.js +0 -17
- package/esm/packages/icons/esm/ChevronDownTwo.js +0 -23
- package/esm/packages/icons/esm/ChevronLeft.js +0 -17
- package/esm/packages/icons/esm/ChevronRight.js +0 -17
- package/esm/packages/icons/esm/ChevronRightTwo.js +0 -23
- package/esm/packages/icons/esm/ChevronUp.js +0 -17
- package/esm/packages/icons/esm/ChevronUpTwo.js +0 -23
- package/esm/packages/icons/esm/Circles.js +0 -17
- package/esm/packages/icons/esm/Clip.js +0 -15
- package/esm/packages/icons/esm/Close.js +0 -17
- package/esm/packages/icons/esm/CloseInCircle.js +0 -17
- package/esm/packages/icons/esm/Coin.js +0 -17
- package/esm/packages/icons/esm/Contact.js +0 -17
- package/esm/packages/icons/esm/Copy.js +0 -22
- package/esm/packages/icons/esm/Correct.js +0 -16
- package/esm/packages/icons/esm/Coupon.js +0 -17
- package/esm/packages/icons/esm/Crop.js +0 -24
- package/esm/packages/icons/esm/Crown.js +0 -17
- package/esm/packages/icons/esm/Curriculum.js +0 -31
- package/esm/packages/icons/esm/CurriculumColor.js +0 -38
- package/esm/packages/icons/esm/Cursor.js +0 -22
- package/esm/packages/icons/esm/Delete.js +0 -17
- package/esm/packages/icons/esm/Document.js +0 -22
- package/esm/packages/icons/esm/Dots.js +0 -17
- package/esm/packages/icons/esm/Download.js +0 -18
- package/esm/packages/icons/esm/Emoji.js +0 -17
- package/esm/packages/icons/esm/EmojiPlus.js +0 -22
- package/esm/packages/icons/esm/EmojiPlusDash.js +0 -17
- package/esm/packages/icons/esm/Eng.js +0 -20
- package/esm/packages/icons/esm/Enter.js +0 -17
- package/esm/packages/icons/esm/Equal.js +0 -17
- package/esm/packages/icons/esm/Eraser.js +0 -17
- package/esm/packages/icons/esm/ExclamationPointInCircle.js +0 -17
- package/esm/packages/icons/esm/ExternalLink.js +0 -27
- package/esm/packages/icons/esm/EyeOff.js +0 -15
- package/esm/packages/icons/esm/EyeOn.js +0 -22
- package/esm/packages/icons/esm/EyesTwo.js +0 -15
- package/esm/packages/icons/esm/FaceHappy.js +0 -17
- package/esm/packages/icons/esm/FaceSad.js +0 -17
- package/esm/packages/icons/esm/Facebook.js +0 -15
- package/esm/packages/icons/esm/FacebookColor.js +0 -20
- package/esm/packages/icons/esm/Filter.js +0 -17
- package/esm/packages/icons/esm/Find.js +0 -17
- package/esm/packages/icons/esm/Fire.js +0 -15
- package/esm/packages/icons/esm/FireColor.js +0 -27
- package/esm/packages/icons/esm/Flag.js +0 -15
- package/esm/packages/icons/esm/Folder.js +0 -17
- package/esm/packages/icons/esm/Frame.js +0 -17
- package/esm/packages/icons/esm/Glasses.js +0 -17
- package/esm/packages/icons/esm/Global.js +0 -17
- package/esm/packages/icons/esm/GoogleColor.js +0 -35
- package/esm/packages/icons/esm/Graph.js +0 -17
- package/esm/packages/icons/esm/Hair.js +0 -17
- package/esm/packages/icons/esm/Headphone.js +0 -17
- package/esm/packages/icons/esm/Heart.js +0 -17
- package/esm/packages/icons/esm/Home.js +0 -17
- package/esm/packages/icons/esm/Infinite.js +0 -15
- package/esm/packages/icons/esm/InfoInCircle.js +0 -17
- package/esm/packages/icons/esm/Instagram.js +0 -17
- package/esm/packages/icons/esm/KakaoColor.js +0 -20
- package/esm/packages/icons/esm/Kor.js +0 -20
- package/esm/packages/icons/esm/LandscapeArrow.js +0 -20
- package/esm/packages/icons/esm/League.js +0 -17
- package/esm/packages/icons/esm/Letter.js +0 -17
- package/esm/packages/icons/esm/LetterCrownColor.js +0 -26
- package/esm/packages/icons/esm/LetterCrownOpenColor.js +0 -35
- package/esm/packages/icons/esm/LetterHeartColor.js +0 -26
- package/esm/packages/icons/esm/LetterHeartOpenColor.js +0 -35
- package/esm/packages/icons/esm/LineThree.js +0 -17
- package/esm/packages/icons/esm/Link.js +0 -22
- package/esm/packages/icons/esm/Lock.js +0 -17
- package/esm/packages/icons/esm/LogoApple.js +0 -17
- package/esm/packages/icons/esm/LogoColor.js +0 -22
- package/esm/packages/icons/esm/LogoFacebook.js +0 -17
- package/esm/packages/icons/esm/LogoKakao.js +0 -17
- package/esm/packages/icons/esm/LogoNaver.js +0 -15
- package/esm/packages/icons/esm/MagicWand.js +0 -22
- package/esm/packages/icons/esm/Maxsize.js +0 -15
- package/esm/packages/icons/esm/Minsize.js +0 -17
- package/esm/packages/icons/esm/Minus.js +0 -17
- package/esm/packages/icons/esm/MinusInCircle.js +0 -17
- package/esm/packages/icons/esm/Moneybag.js +0 -17
- package/esm/packages/icons/esm/MoneybagColor.js +0 -20
- package/esm/packages/icons/esm/Moon.js +0 -15
- package/esm/packages/icons/esm/More.js +0 -17
- package/esm/packages/icons/esm/MyBubble.js +0 -17
- package/esm/packages/icons/esm/NaverColor.js +0 -18
- package/esm/packages/icons/esm/New.js +0 -22
- package/esm/packages/icons/esm/Note.js +0 -17
- package/esm/packages/icons/esm/NoteColor.js +0 -18
- package/esm/packages/icons/esm/NotePenColor.js +0 -46
- package/esm/packages/icons/esm/NumberFiveFilled.js +0 -17
- package/esm/packages/icons/esm/NumberFiveOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberFourFilled.js +0 -17
- package/esm/packages/icons/esm/NumberFourOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberOneFilled.js +0 -17
- package/esm/packages/icons/esm/NumberOneOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberThreeFilled.js +0 -17
- package/esm/packages/icons/esm/NumberThreeOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberTwoFilled.js +0 -17
- package/esm/packages/icons/esm/NumberTwoOutlined.js +0 -20
- package/esm/packages/icons/esm/Out.js +0 -17
- package/esm/packages/icons/esm/PalmTreeColor.js +0 -41
- package/esm/packages/icons/esm/PaperCheck.js +0 -36
- package/esm/packages/icons/esm/PaperPen.js +0 -31
- package/esm/packages/icons/esm/PaperPenColor.js +0 -20
- package/esm/packages/icons/esm/PaperTwo.js +0 -18
- package/esm/packages/icons/esm/Pause.js +0 -17
- package/esm/packages/icons/esm/Pen.js +0 -17
- package/esm/packages/icons/esm/PercentInCircle.js +0 -22
- package/esm/packages/icons/esm/Picture.js +0 -17
- package/esm/packages/icons/esm/Pill.js +0 -25
- package/esm/packages/icons/esm/PillColor.js +0 -18
- package/esm/packages/icons/esm/Pin.js +0 -17
- package/esm/packages/icons/esm/PinColorRed.js +0 -26
- package/esm/packages/icons/esm/Play.js +0 -15
- package/esm/packages/icons/esm/Plus.js +0 -17
- package/esm/packages/icons/esm/PlusInCircle.js +0 -17
- package/esm/packages/icons/esm/PointInCircle.js +0 -22
- package/esm/packages/icons/esm/PointInCircleColor.js +0 -27
- package/esm/packages/icons/esm/PortraitArrow.js +0 -20
- package/esm/packages/icons/esm/Present.js +0 -21
- package/esm/packages/icons/esm/PresentColor.js +0 -20
- package/esm/packages/icons/esm/Print.js +0 -20
- package/esm/packages/icons/esm/Problem.js +0 -15
- package/esm/packages/icons/esm/Profile.js +0 -17
- package/esm/packages/icons/esm/ProgressGradient.js +0 -41
- package/esm/packages/icons/esm/QuestionMarkInCircle.js +0 -17
- package/esm/packages/icons/esm/QuestionMarkInCircleOutlined.js +0 -20
- package/esm/packages/icons/esm/QuizColor.js +0 -28
- package/esm/packages/icons/esm/RaffleColor.js +0 -113
- package/esm/packages/icons/esm/Receipt.js +0 -17
- package/esm/packages/icons/esm/Refresh.js +0 -17
- package/esm/packages/icons/esm/Repeat.js +0 -15
- package/esm/packages/icons/esm/ReportColor.js +0 -30
- package/esm/packages/icons/esm/School.js +0 -20
- package/esm/packages/icons/esm/SchoolColor.js +0 -27
- package/esm/packages/icons/esm/Scroll.js +0 -22
- package/esm/packages/icons/esm/Search.js +0 -15
- package/esm/packages/icons/esm/Set.js +0 -20
- package/esm/packages/icons/esm/Setting.js +0 -17
- package/esm/packages/icons/esm/Share.js +0 -22
- package/esm/packages/icons/esm/ShieldCheck.js +0 -15
- package/esm/packages/icons/esm/Sidebar.js +0 -17
- package/esm/packages/icons/esm/Siren.js +0 -17
- package/esm/packages/icons/esm/Skipback.js +0 -17
- package/esm/packages/icons/esm/Skipforward.js +0 -17
- package/esm/packages/icons/esm/SoundOff.js +0 -15
- package/esm/packages/icons/esm/SoundOn.js +0 -25
- package/esm/packages/icons/esm/SoundPaper.js +0 -20
- package/esm/packages/icons/esm/Speaker.js +0 -17
- package/esm/packages/icons/esm/Stackup.js +0 -27
- package/esm/packages/icons/esm/Star.js +0 -17
- package/esm/packages/icons/esm/StarColor.js +0 -21
- package/esm/packages/icons/esm/Store.js +0 -15
- package/esm/packages/icons/esm/Sun.js +0 -15
- package/esm/packages/icons/esm/Sync.js +0 -17
- package/esm/packages/icons/esm/TestUploadColor.js +0 -26
- package/esm/packages/icons/esm/Thumbdown.js +0 -17
- package/esm/packages/icons/esm/Thumbup.js +0 -17
- package/esm/packages/icons/esm/Thunder.js +0 -17
- package/esm/packages/icons/esm/Ticket.js +0 -17
- package/esm/packages/icons/esm/TicketColor.js +0 -29
- package/esm/packages/icons/esm/Time.js +0 -17
- package/esm/packages/icons/esm/Timer.js +0 -17
- package/esm/packages/icons/esm/Top.js +0 -17
- package/esm/packages/icons/esm/Touch.js +0 -26
- package/esm/packages/icons/esm/Trash.js +0 -17
- package/esm/packages/icons/esm/Treasurebox.js +0 -22
- package/esm/packages/icons/esm/Trophy.js +0 -17
- package/esm/packages/icons/esm/Twinkle.js +0 -15
- package/esm/packages/icons/esm/TwinkleColor.js +0 -48
- package/esm/packages/icons/esm/Undo.js +0 -17
- package/esm/packages/icons/esm/University.js +0 -26
- package/esm/packages/icons/esm/UserBlocked.js +0 -17
- package/esm/packages/icons/esm/UserCheck.js +0 -17
- package/esm/packages/icons/esm/UserPlus.js +0 -17
- package/esm/packages/icons/esm/UserTwo.js +0 -23
- package/esm/packages/icons/esm/Video.js +0 -17
- package/esm/packages/icons/esm/VideoColor.js +0 -18
- package/esm/packages/icons/esm/VoteColor.js +0 -24
- package/esm/packages/icons/esm/Warning.js +0 -17
- package/esm/packages/icons/esm/Wifi.js +0 -27
- package/esm/packages/icons/esm/Workbook.js +0 -28
- package/esm/packages/icons/esm/WorkbookColor.js +0 -29
- package/esm/packages/icons/esm/Wrong.js +0 -20
- package/esm/packages/icons/esm/Youtube.js +0 -17
- package/esm/packages/icons/esm/_virtual/_rollupPluginBabelHelpers.js +0 -16
- package/esm/packages/icons/esm/index.js +0 -242
- package/esm/packages/token-studio/esm/foundation/breakpoint/device.js +0 -7
- package/esm/packages/token-studio/esm/foundation/gradient/colorStopList/index.js +0 -9
- package/esm/packages/token-studio/esm/foundation/gradient/direction/index.js +0 -9
- package/esm/packages/token-studio/esm/foundation/opacity/index.js +0 -5
- package/esm/packages/token-studio/esm/foundation/palette/index.js +0 -169
- package/esm/packages/token-studio/esm/foundation/rounding/index.js +0 -13
- package/esm/packages/token-studio/esm/foundation/shadow/index.js +0 -5
- package/esm/packages/token-studio/esm/foundation/spacing/index.js +0 -56
- package/esm/packages/token-studio/esm/foundation/typography/fontSize/index.js +0 -18
- package/esm/packages/token-studio/esm/foundation/typography/fontWeight/index.js +0 -13
- package/esm/packages/token-studio/esm/foundation/typography/lineHeight/index.js +0 -6
- package/esm/packages/token-studio/esm/token/breakpoints/index.js +0 -6
- package/esm/packages/token-studio/esm/token/color/gpai/dark.js +0 -223
- package/esm/packages/token-studio/esm/token/color/gpai/light.js +0 -223
- package/esm/packages/token-studio/esm/token/color/index.js +0 -223
- package/esm/packages/token-studio/esm/token/elevation/index.js +0 -7
- package/esm/packages/token-studio/esm/token/gradient/index.js +0 -41
- package/esm/packages/token-studio/esm/token/opacity/index.js +0 -7
- package/esm/packages/token-studio/esm/token/radii/index.js +0 -15
- package/esm/packages/token-studio/esm/token/space/index.js +0 -55
- package/esm/packages/token-studio/esm/token/typography/fontSizes.js +0 -17
- package/esm/packages/token-studio/esm/token/typography/fontWeights.js +0 -9
- package/esm/packages/token-studio/esm/token/typography/index.js +0 -133
- package/esm/packages/token-studio/esm/token/typography/lineHeights.js +0 -8
- package/esm/packages/utils/esm/commaizeNumber.js +0 -10
- package/esm/packages/utils/esm/forcePixelValue.js +0 -8
- package/esm/packages/utils/esm/isArray.js +0 -3
- package/esm/packages/utils/esm/isFunction.js +0 -3
- package/esm/packages/utils/esm/isNullable.js +0 -3
- package/esm/packages/utils/esm/noop.js +0 -6
- package/esm/packages/utils/esm/scrollIntoView.js +0 -46
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { isShadowRoot, isHTMLElement } from '../../utils/dist/floating-ui.utils.dom.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useLayoutEffect } from 'react';
|
|
4
|
-
import { tabbable } from '../../../tabbable/dist/index.esm.js';
|
|
5
|
-
|
|
6
|
-
// Avoid Chrome DevTools blue warning.
|
|
7
|
-
function getPlatform() {
|
|
8
|
-
const uaData = navigator.userAgentData;
|
|
9
|
-
if (uaData != null && uaData.platform) {
|
|
10
|
-
return uaData.platform;
|
|
11
|
-
}
|
|
12
|
-
return navigator.platform;
|
|
13
|
-
}
|
|
14
|
-
function getUserAgent() {
|
|
15
|
-
const uaData = navigator.userAgentData;
|
|
16
|
-
if (uaData && Array.isArray(uaData.brands)) {
|
|
17
|
-
return uaData.brands.map(_ref => {
|
|
18
|
-
let {
|
|
19
|
-
brand,
|
|
20
|
-
version
|
|
21
|
-
} = _ref;
|
|
22
|
-
return brand + "/" + version;
|
|
23
|
-
}).join(' ');
|
|
24
|
-
}
|
|
25
|
-
return navigator.userAgent;
|
|
26
|
-
}
|
|
27
|
-
function isSafari() {
|
|
28
|
-
// Chrome DevTools does not complain about navigator.vendor
|
|
29
|
-
return /apple/i.test(navigator.vendor);
|
|
30
|
-
}
|
|
31
|
-
function isMac() {
|
|
32
|
-
return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;
|
|
33
|
-
}
|
|
34
|
-
function isJSDOM() {
|
|
35
|
-
return getUserAgent().includes('jsdom/');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const FOCUSABLE_ATTRIBUTE = 'data-floating-ui-focusable';
|
|
39
|
-
const TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled])," + "[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
40
|
-
|
|
41
|
-
function activeElement(doc) {
|
|
42
|
-
let activeElement = doc.activeElement;
|
|
43
|
-
while (((_activeElement = activeElement) == null || (_activeElement = _activeElement.shadowRoot) == null ? void 0 : _activeElement.activeElement) != null) {
|
|
44
|
-
var _activeElement;
|
|
45
|
-
activeElement = activeElement.shadowRoot.activeElement;
|
|
46
|
-
}
|
|
47
|
-
return activeElement;
|
|
48
|
-
}
|
|
49
|
-
function contains(parent, child) {
|
|
50
|
-
if (!parent || !child) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode();
|
|
54
|
-
|
|
55
|
-
// First, attempt with faster native method
|
|
56
|
-
if (parent.contains(child)) {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// then fallback to custom implementation with Shadow DOM support
|
|
61
|
-
if (rootNode && isShadowRoot(rootNode)) {
|
|
62
|
-
let next = child;
|
|
63
|
-
while (next) {
|
|
64
|
-
if (parent === next) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
next = next.parentNode || next.host;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Give up, the result is false
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
function getTarget(event) {
|
|
76
|
-
if ('composedPath' in event) {
|
|
77
|
-
return event.composedPath()[0];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// TS thinks `event` is of type never as it assumes all browsers support
|
|
81
|
-
// `composedPath()`, but browsers without shadow DOM don't.
|
|
82
|
-
return event.target;
|
|
83
|
-
}
|
|
84
|
-
function isEventTargetWithin(event, node) {
|
|
85
|
-
if (node == null) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if ('composedPath' in event) {
|
|
89
|
-
return event.composedPath().includes(node);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't
|
|
93
|
-
const e = event;
|
|
94
|
-
return e.target != null && node.contains(e.target);
|
|
95
|
-
}
|
|
96
|
-
function isRootElement(element) {
|
|
97
|
-
return element.matches('html,body');
|
|
98
|
-
}
|
|
99
|
-
function getDocument(node) {
|
|
100
|
-
return (node == null ? void 0 : node.ownerDocument) || document;
|
|
101
|
-
}
|
|
102
|
-
function isTypeableElement(element) {
|
|
103
|
-
return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
|
|
104
|
-
}
|
|
105
|
-
function matchesFocusVisible(element) {
|
|
106
|
-
// We don't want to block focus from working with `visibleOnly`
|
|
107
|
-
// (JSDOM doesn't match `:focus-visible` when the element has `:focus`)
|
|
108
|
-
if (!element || isJSDOM()) return true;
|
|
109
|
-
try {
|
|
110
|
-
return element.matches(':focus-visible');
|
|
111
|
-
} catch (_e) {
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
function getFloatingFocusElement(floatingElement) {
|
|
116
|
-
if (!floatingElement) {
|
|
117
|
-
return null;
|
|
118
|
-
}
|
|
119
|
-
// Try to find the element that has `{...getFloatingProps()}` spread on it.
|
|
120
|
-
// This indicates the floating element is acting as a positioning wrapper, and
|
|
121
|
-
// so focus should be managed on the child element with the event handlers and
|
|
122
|
-
// aria props.
|
|
123
|
-
return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector("[" + FOCUSABLE_ATTRIBUTE + "]") || floatingElement;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function getNodeChildren(nodes, id, onlyOpenChildren) {
|
|
127
|
-
if (onlyOpenChildren === void 0) {
|
|
128
|
-
onlyOpenChildren = true;
|
|
129
|
-
}
|
|
130
|
-
const directChildren = nodes.filter(node => {
|
|
131
|
-
var _node$context;
|
|
132
|
-
return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));
|
|
133
|
-
});
|
|
134
|
-
return directChildren.flatMap(child => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
135
|
-
}
|
|
136
|
-
function isReactEvent(event) {
|
|
137
|
-
return 'nativeEvent' in event;
|
|
138
|
-
}
|
|
139
|
-
function isMouseLikePointerType(pointerType, strict) {
|
|
140
|
-
// On some Linux machines with Chromium, mouse inputs return a `pointerType`
|
|
141
|
-
// of "pen": https://github.com/floating-ui/floating-ui/issues/2015
|
|
142
|
-
const values = ['mouse', 'pen'];
|
|
143
|
-
if (!strict) {
|
|
144
|
-
values.push('', undefined);
|
|
145
|
-
}
|
|
146
|
-
return values.includes(pointerType);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
var isClient = typeof document !== 'undefined';
|
|
150
|
-
|
|
151
|
-
var noop = function noop() {};
|
|
152
|
-
var index = isClient ? useLayoutEffect : noop;
|
|
153
|
-
|
|
154
|
-
// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379
|
|
155
|
-
const SafeReact = {
|
|
156
|
-
...React
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
function useLatestRef(value) {
|
|
160
|
-
const ref = React.useRef(value);
|
|
161
|
-
index(() => {
|
|
162
|
-
ref.current = value;
|
|
163
|
-
});
|
|
164
|
-
return ref;
|
|
165
|
-
}
|
|
166
|
-
const useInsertionEffect = SafeReact.useInsertionEffect;
|
|
167
|
-
const useSafeInsertionEffect = useInsertionEffect || (fn => fn());
|
|
168
|
-
function useEffectEvent(callback) {
|
|
169
|
-
const ref = React.useRef(() => {
|
|
170
|
-
if (process.env.NODE_ENV !== "production") {
|
|
171
|
-
throw new Error('Cannot call an event handler while rendering.');
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
useSafeInsertionEffect(() => {
|
|
175
|
-
ref.current = callback;
|
|
176
|
-
});
|
|
177
|
-
return React.useCallback(function () {
|
|
178
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
179
|
-
args[_key] = arguments[_key];
|
|
180
|
-
}
|
|
181
|
-
return ref.current == null ? void 0 : ref.current(...args);
|
|
182
|
-
}, []);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
const getTabbableOptions = () => ({
|
|
186
|
-
getShadowRoot: true,
|
|
187
|
-
displayCheck:
|
|
188
|
-
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
189
|
-
// check if `ResizeObserver` is a real function (not polyfilled), which
|
|
190
|
-
// determines if the current environment is JSDOM-like.
|
|
191
|
-
typeof ResizeObserver === 'function' && ResizeObserver.toString().includes('[native code]') ? 'full' : 'none'
|
|
192
|
-
});
|
|
193
|
-
function getTabbableIn(container, dir) {
|
|
194
|
-
const list = tabbable(container, getTabbableOptions());
|
|
195
|
-
const len = list.length;
|
|
196
|
-
if (len === 0) return;
|
|
197
|
-
const active = activeElement(getDocument(container));
|
|
198
|
-
const index = list.indexOf(active);
|
|
199
|
-
const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;
|
|
200
|
-
return list[nextIndex];
|
|
201
|
-
}
|
|
202
|
-
function getNextTabbable(referenceElement) {
|
|
203
|
-
return getTabbableIn(getDocument(referenceElement).body, 1) || referenceElement;
|
|
204
|
-
}
|
|
205
|
-
function getPreviousTabbable(referenceElement) {
|
|
206
|
-
return getTabbableIn(getDocument(referenceElement).body, -1) || referenceElement;
|
|
207
|
-
}
|
|
208
|
-
function isOutsideEvent(event, container) {
|
|
209
|
-
const containerElement = container || event.currentTarget;
|
|
210
|
-
const relatedTarget = event.relatedTarget;
|
|
211
|
-
return !relatedTarget || !contains(containerElement, relatedTarget);
|
|
212
|
-
}
|
|
213
|
-
function disableFocusInside(container) {
|
|
214
|
-
const tabbableElements = tabbable(container, getTabbableOptions());
|
|
215
|
-
tabbableElements.forEach(element => {
|
|
216
|
-
element.dataset.tabindex = element.getAttribute('tabindex') || '';
|
|
217
|
-
element.setAttribute('tabindex', '-1');
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function enableFocusInside(container) {
|
|
221
|
-
const elements = container.querySelectorAll('[data-tabindex]');
|
|
222
|
-
elements.forEach(element => {
|
|
223
|
-
const tabindex = element.dataset.tabindex;
|
|
224
|
-
delete element.dataset.tabindex;
|
|
225
|
-
if (tabindex) {
|
|
226
|
-
element.setAttribute('tabindex', tabindex);
|
|
227
|
-
} else {
|
|
228
|
-
element.removeAttribute('tabindex');
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export { activeElement, contains, disableFocusInside, enableFocusInside, getDocument, getFloatingFocusElement, getNextTabbable, getNodeChildren, getPlatform, getPreviousTabbable, getTabbableOptions, getTarget, getUserAgent, isEventTargetWithin, isJSDOM, isMac, isMouseLikePointerType, isOutsideEvent, isReactEvent, isRootElement, isSafari, isTypeableElement, matchesFocusVisible, useEffectEvent, useLatestRef, index as useModernLayoutEffect };
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { offset as offset$1, shift as shift$1, flip as flip$1, computePosition, arrow as arrow$2 } from '../../dom/dist/floating-ui.dom.js';
|
|
2
|
-
export { autoUpdate, platform } from '../../dom/dist/floating-ui.dom.js';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { useLayoutEffect } from 'react';
|
|
5
|
-
import * as ReactDOM from 'react-dom';
|
|
6
|
-
|
|
7
|
-
var isClient = typeof document !== 'undefined';
|
|
8
|
-
|
|
9
|
-
var noop = function noop() {};
|
|
10
|
-
var index = isClient ? useLayoutEffect : noop;
|
|
11
|
-
|
|
12
|
-
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
13
|
-
// functions
|
|
14
|
-
function deepEqual(a, b) {
|
|
15
|
-
if (a === b) {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
if (typeof a !== typeof b) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (typeof a === 'function' && a.toString() === b.toString()) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
let length;
|
|
25
|
-
let i;
|
|
26
|
-
let keys;
|
|
27
|
-
if (a && b && typeof a === 'object') {
|
|
28
|
-
if (Array.isArray(a)) {
|
|
29
|
-
length = a.length;
|
|
30
|
-
if (length !== b.length) return false;
|
|
31
|
-
for (i = length; i-- !== 0;) {
|
|
32
|
-
if (!deepEqual(a[i], b[i])) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
keys = Object.keys(a);
|
|
39
|
-
length = keys.length;
|
|
40
|
-
if (length !== Object.keys(b).length) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
for (i = length; i-- !== 0;) {
|
|
44
|
-
if (!{}.hasOwnProperty.call(b, keys[i])) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
for (i = length; i-- !== 0;) {
|
|
49
|
-
const key = keys[i];
|
|
50
|
-
if (key === '_owner' && a.$$typeof) {
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (!deepEqual(a[key], b[key])) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
return a !== a && b !== b;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function getDPR(element) {
|
|
63
|
-
if (typeof window === 'undefined') {
|
|
64
|
-
return 1;
|
|
65
|
-
}
|
|
66
|
-
const win = element.ownerDocument.defaultView || window;
|
|
67
|
-
return win.devicePixelRatio || 1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function roundByDPR(element, value) {
|
|
71
|
-
const dpr = getDPR(element);
|
|
72
|
-
return Math.round(value * dpr) / dpr;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function useLatestRef(value) {
|
|
76
|
-
const ref = React.useRef(value);
|
|
77
|
-
index(() => {
|
|
78
|
-
ref.current = value;
|
|
79
|
-
});
|
|
80
|
-
return ref;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Provides data to position a floating element.
|
|
85
|
-
* @see https://floating-ui.com/docs/useFloating
|
|
86
|
-
*/
|
|
87
|
-
function useFloating(options) {
|
|
88
|
-
if (options === void 0) {
|
|
89
|
-
options = {};
|
|
90
|
-
}
|
|
91
|
-
const {
|
|
92
|
-
placement = 'bottom',
|
|
93
|
-
strategy = 'absolute',
|
|
94
|
-
middleware = [],
|
|
95
|
-
platform,
|
|
96
|
-
elements: {
|
|
97
|
-
reference: externalReference,
|
|
98
|
-
floating: externalFloating
|
|
99
|
-
} = {},
|
|
100
|
-
transform = true,
|
|
101
|
-
whileElementsMounted,
|
|
102
|
-
open
|
|
103
|
-
} = options;
|
|
104
|
-
const [data, setData] = React.useState({
|
|
105
|
-
x: 0,
|
|
106
|
-
y: 0,
|
|
107
|
-
strategy,
|
|
108
|
-
placement,
|
|
109
|
-
middlewareData: {},
|
|
110
|
-
isPositioned: false
|
|
111
|
-
});
|
|
112
|
-
const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
|
|
113
|
-
if (!deepEqual(latestMiddleware, middleware)) {
|
|
114
|
-
setLatestMiddleware(middleware);
|
|
115
|
-
}
|
|
116
|
-
const [_reference, _setReference] = React.useState(null);
|
|
117
|
-
const [_floating, _setFloating] = React.useState(null);
|
|
118
|
-
const setReference = React.useCallback(node => {
|
|
119
|
-
if (node !== referenceRef.current) {
|
|
120
|
-
referenceRef.current = node;
|
|
121
|
-
_setReference(node);
|
|
122
|
-
}
|
|
123
|
-
}, []);
|
|
124
|
-
const setFloating = React.useCallback(node => {
|
|
125
|
-
if (node !== floatingRef.current) {
|
|
126
|
-
floatingRef.current = node;
|
|
127
|
-
_setFloating(node);
|
|
128
|
-
}
|
|
129
|
-
}, []);
|
|
130
|
-
const referenceEl = externalReference || _reference;
|
|
131
|
-
const floatingEl = externalFloating || _floating;
|
|
132
|
-
const referenceRef = React.useRef(null);
|
|
133
|
-
const floatingRef = React.useRef(null);
|
|
134
|
-
const dataRef = React.useRef(data);
|
|
135
|
-
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
136
|
-
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
137
|
-
const platformRef = useLatestRef(platform);
|
|
138
|
-
const openRef = useLatestRef(open);
|
|
139
|
-
const update = React.useCallback(() => {
|
|
140
|
-
if (!referenceRef.current || !floatingRef.current) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
const config = {
|
|
144
|
-
placement,
|
|
145
|
-
strategy,
|
|
146
|
-
middleware: latestMiddleware
|
|
147
|
-
};
|
|
148
|
-
if (platformRef.current) {
|
|
149
|
-
config.platform = platformRef.current;
|
|
150
|
-
}
|
|
151
|
-
computePosition(referenceRef.current, floatingRef.current, config).then(data => {
|
|
152
|
-
const fullData = {
|
|
153
|
-
...data,
|
|
154
|
-
// The floating element's position may be recomputed while it's closed
|
|
155
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
156
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
157
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
158
|
-
isPositioned: openRef.current !== false
|
|
159
|
-
};
|
|
160
|
-
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
161
|
-
dataRef.current = fullData;
|
|
162
|
-
ReactDOM.flushSync(() => {
|
|
163
|
-
setData(fullData);
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}, [latestMiddleware, placement, strategy, platformRef, openRef]);
|
|
168
|
-
index(() => {
|
|
169
|
-
if (open === false && dataRef.current.isPositioned) {
|
|
170
|
-
dataRef.current.isPositioned = false;
|
|
171
|
-
setData(data => ({
|
|
172
|
-
...data,
|
|
173
|
-
isPositioned: false
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
}, [open]);
|
|
177
|
-
const isMountedRef = React.useRef(false);
|
|
178
|
-
index(() => {
|
|
179
|
-
isMountedRef.current = true;
|
|
180
|
-
return () => {
|
|
181
|
-
isMountedRef.current = false;
|
|
182
|
-
};
|
|
183
|
-
}, []);
|
|
184
|
-
index(() => {
|
|
185
|
-
if (referenceEl) referenceRef.current = referenceEl;
|
|
186
|
-
if (floatingEl) floatingRef.current = floatingEl;
|
|
187
|
-
if (referenceEl && floatingEl) {
|
|
188
|
-
if (whileElementsMountedRef.current) {
|
|
189
|
-
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
190
|
-
}
|
|
191
|
-
update();
|
|
192
|
-
}
|
|
193
|
-
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
194
|
-
const refs = React.useMemo(() => ({
|
|
195
|
-
reference: referenceRef,
|
|
196
|
-
floating: floatingRef,
|
|
197
|
-
setReference,
|
|
198
|
-
setFloating
|
|
199
|
-
}), [setReference, setFloating]);
|
|
200
|
-
const elements = React.useMemo(() => ({
|
|
201
|
-
reference: referenceEl,
|
|
202
|
-
floating: floatingEl
|
|
203
|
-
}), [referenceEl, floatingEl]);
|
|
204
|
-
const floatingStyles = React.useMemo(() => {
|
|
205
|
-
const initialStyles = {
|
|
206
|
-
position: strategy,
|
|
207
|
-
left: 0,
|
|
208
|
-
top: 0
|
|
209
|
-
};
|
|
210
|
-
if (!elements.floating) {
|
|
211
|
-
return initialStyles;
|
|
212
|
-
}
|
|
213
|
-
const x = roundByDPR(elements.floating, data.x);
|
|
214
|
-
const y = roundByDPR(elements.floating, data.y);
|
|
215
|
-
if (transform) {
|
|
216
|
-
return {
|
|
217
|
-
...initialStyles,
|
|
218
|
-
transform: "translate(" + x + "px, " + y + "px)",
|
|
219
|
-
...(getDPR(elements.floating) >= 1.5 && {
|
|
220
|
-
willChange: 'transform'
|
|
221
|
-
})
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
return {
|
|
225
|
-
position: strategy,
|
|
226
|
-
left: x,
|
|
227
|
-
top: y
|
|
228
|
-
};
|
|
229
|
-
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
230
|
-
return React.useMemo(() => ({
|
|
231
|
-
...data,
|
|
232
|
-
update,
|
|
233
|
-
refs,
|
|
234
|
-
elements,
|
|
235
|
-
floatingStyles
|
|
236
|
-
}), [data, update, refs, elements, floatingStyles]);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Provides data to position an inner element of the floating element so that it
|
|
241
|
-
* appears centered to the reference element.
|
|
242
|
-
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
243
|
-
* @see https://floating-ui.com/docs/arrow
|
|
244
|
-
*/
|
|
245
|
-
const arrow$1 = options => {
|
|
246
|
-
function isRef(value) {
|
|
247
|
-
return {}.hasOwnProperty.call(value, 'current');
|
|
248
|
-
}
|
|
249
|
-
return {
|
|
250
|
-
name: 'arrow',
|
|
251
|
-
options,
|
|
252
|
-
fn(state) {
|
|
253
|
-
const {
|
|
254
|
-
element,
|
|
255
|
-
padding
|
|
256
|
-
} = typeof options === 'function' ? options(state) : options;
|
|
257
|
-
if (element && isRef(element)) {
|
|
258
|
-
if (element.current != null) {
|
|
259
|
-
return arrow$2({
|
|
260
|
-
element: element.current,
|
|
261
|
-
padding
|
|
262
|
-
}).fn(state);
|
|
263
|
-
}
|
|
264
|
-
return {};
|
|
265
|
-
}
|
|
266
|
-
if (element) {
|
|
267
|
-
return arrow$2({
|
|
268
|
-
element,
|
|
269
|
-
padding
|
|
270
|
-
}).fn(state);
|
|
271
|
-
}
|
|
272
|
-
return {};
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Modifies the placement by translating the floating element along the
|
|
279
|
-
* specified axes.
|
|
280
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
281
|
-
* object may be passed.
|
|
282
|
-
* @see https://floating-ui.com/docs/offset
|
|
283
|
-
*/
|
|
284
|
-
const offset = (options, deps) => ({
|
|
285
|
-
...offset$1(options),
|
|
286
|
-
options: [options, deps]
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
291
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
292
|
-
* @see https://floating-ui.com/docs/shift
|
|
293
|
-
*/
|
|
294
|
-
const shift = (options, deps) => ({
|
|
295
|
-
...shift$1(options),
|
|
296
|
-
options: [options, deps]
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
301
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
302
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
303
|
-
* @see https://floating-ui.com/docs/flip
|
|
304
|
-
*/
|
|
305
|
-
const flip = (options, deps) => ({
|
|
306
|
-
...flip$1(options),
|
|
307
|
-
options: [options, deps]
|
|
308
|
-
});
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Provides data to position an inner element of the floating element so that it
|
|
312
|
-
* appears centered to the reference element.
|
|
313
|
-
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
314
|
-
* @see https://floating-ui.com/docs/arrow
|
|
315
|
-
*/
|
|
316
|
-
const arrow = (options, deps) => ({
|
|
317
|
-
...arrow$1(options),
|
|
318
|
-
options: [options, deps]
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
export { arrow, computePosition, flip, offset, shift, useFloating };
|