@ebx-ui/ebx-ui-component-library-sdk 0.0.1-security → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @ebx-ui/ebx-ui-component-library-sdk might be problematic. Click here for more details.
- package/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- package/@babel/runtime/helpers/esm/extends.js +16 -0
- package/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
- package/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
- package/@chakra-ui/accordion/dist/index.esm.js +391 -0
- package/@chakra-ui/alert/dist/index.esm.js +158 -0
- package/@chakra-ui/anatomy/dist/index.esm.js +117 -0
- package/@chakra-ui/breadcrumb/dist/index.esm.js +161 -0
- package/@chakra-ui/breakpoint-utils/dist/index.esm.js +162 -0
- package/@chakra-ui/button/dist/index.esm.js +246 -0
- package/@chakra-ui/checkbox/dist/index.esm.js +564 -0
- package/@chakra-ui/clickable/dist/index.esm.js +203 -0
- package/@chakra-ui/close-button/dist/index.esm.js +51 -0
- package/@chakra-ui/color-mode/dist/index.esm.js +268 -0
- package/@chakra-ui/css-reset/dist/index.esm.js +318 -0
- package/@chakra-ui/descendant/dist/index.esm.js +197 -0
- package/@chakra-ui/dom-utils/dist/index.esm.js +173 -0
- package/@chakra-ui/event-utils/dist/index.esm.js +69 -0
- package/@chakra-ui/focus-lock/dist/index.esm.js +51 -0
- package/@chakra-ui/form-control/dist/index.esm.js +306 -0
- package/@chakra-ui/hooks/dist/index.esm.js +771 -0
- package/@chakra-ui/icon/dist/index.esm.js +104 -0
- package/@chakra-ui/image/dist/index.esm.js +165 -0
- package/@chakra-ui/input/dist/index.esm.js +222 -0
- package/@chakra-ui/layout/dist/index.esm.js +962 -0
- package/@chakra-ui/lazy-utils/dist/index.esm.js +14 -0
- package/@chakra-ui/media-query/dist/index.esm.js +192 -0
- package/@chakra-ui/menu/dist/index.esm.js +883 -0
- package/@chakra-ui/modal/dist/index.esm.js +593 -0
- package/@chakra-ui/number-utils/dist/index.esm.js +49 -0
- package/@chakra-ui/object-utils/dist/index.esm.js +43 -0
- package/@chakra-ui/pin-input/dist/index.esm.js +260 -0
- package/@chakra-ui/popover/dist/index.esm.js +524 -0
- package/@chakra-ui/popper/dist/index.esm.js +355 -0
- package/@chakra-ui/portal/dist/index.esm.js +123 -0
- package/@chakra-ui/provider/dist/index.esm.js +40 -0
- package/@chakra-ui/radio/dist/index.esm.js +463 -0
- package/@chakra-ui/react/dist/index.esm.js +201 -0
- package/@chakra-ui/react-children-utils/dist/index.esm.js +2142 -0
- package/@chakra-ui/react-context/dist/index.esm.js +34 -0
- package/@chakra-ui/react-env/dist/index.esm.js +151 -0
- package/@chakra-ui/react-use-animation-state/dist/index.esm.js +31 -0
- package/@chakra-ui/react-use-callback-ref/dist/index.esm.js +15 -0
- package/@chakra-ui/react-use-controllable-state/dist/index.esm.js +37 -0
- package/@chakra-ui/react-use-disclosure/dist/index.esm.js +68 -0
- package/@chakra-ui/react-use-event-listener/dist/index.esm.js +22 -0
- package/@chakra-ui/react-use-focus-effect/dist/index.esm.js +78 -0
- package/@chakra-ui/react-use-focus-on-pointer-down/dist/index.esm.js +38 -0
- package/@chakra-ui/react-use-merge-refs/dist/index.esm.js +30 -0
- package/@chakra-ui/react-use-outside-click/dist/index.esm.js +67 -0
- package/@chakra-ui/react-use-pan-event/dist/index.esm.js +190 -0
- package/@chakra-ui/react-use-safe-layout-effect/dist/index.esm.js +6 -0
- package/@chakra-ui/react-use-size/dist/index.esm.js +65 -0
- package/@chakra-ui/react-use-timeout/dist/index.esm.js +22 -0
- package/@chakra-ui/react-use-update-effect/dist/index.esm.js +23 -0
- package/@chakra-ui/react-utils/dist/index.esm.js +63 -0
- package/@chakra-ui/select/dist/index.esm.js +142 -0
- package/@chakra-ui/shared-utils/dist/index.esm.js +46 -0
- package/@chakra-ui/slider/dist/index.esm.js +1842 -0
- package/@chakra-ui/spinner/dist/index.esm.js +59 -0
- package/@chakra-ui/styled-system/dist/index.esm.js +1653 -0
- package/@chakra-ui/switch/dist/index.esm.js +74 -0
- package/@chakra-ui/system/dist/index.esm.js +250 -0
- package/@chakra-ui/table/dist/index.esm.js +148 -0
- package/@chakra-ui/tag/dist/index.esm.js +96 -0
- package/@chakra-ui/theme/dist/index.esm.js +3307 -0
- package/@chakra-ui/theme-tools/dist/index.esm.js +245 -0
- package/@chakra-ui/toast/dist/index.esm.js +506 -0
- package/@chakra-ui/tooltip/dist/index.esm.js +330 -0
- package/@chakra-ui/transition/dist/index.esm.js +463 -0
- package/@chakra-ui/utils/dist/index.esm.js +1235 -0
- package/@chakra-ui/visually-hidden/dist/index.esm.js +35 -0
- package/@ctrl/tinycolor/dist/module/conversion.js +235 -0
- package/@ctrl/tinycolor/dist/module/css-color-names.js +154 -0
- package/@ctrl/tinycolor/dist/module/format-input.js +182 -0
- package/@ctrl/tinycolor/dist/module/index.js +491 -0
- package/@ctrl/tinycolor/dist/module/random.js +277 -0
- package/@ctrl/tinycolor/dist/module/util.js +82 -0
- package/@emotion/cache/dist/emotion-cache.esm.js +436 -0
- package/@emotion/hash/dist/emotion-hash.esm.js +55 -0
- package/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/@emotion/react/dist/emotion-element-3838ba9e.esm.js +275 -0
- package/@emotion/react/dist/emotion-react.esm.js +452 -0
- package/@emotion/serialize/dist/emotion-serialize.esm.js +316 -0
- package/@emotion/sheet/dist/emotion-sheet.esm.js +154 -0
- package/@emotion/styled/base/dist/emotion-styled-base.esm.js +194 -0
- package/@emotion/styled/dist/emotion-styled.esm.js +19 -0
- package/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +15 -0
- package/@emotion/unitless/dist/emotion-unitless.esm.js +50 -0
- package/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +14 -0
- package/@emotion/utils/dist/emotion-utils.esm.js +53 -0
- package/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/@popperjs/core/lib/createPopper.js +259 -0
- package/@popperjs/core/lib/dom-utils/contains.js +23 -0
- package/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +41 -0
- package/@popperjs/core/lib/dom-utils/getClippingRect.js +70 -0
- package/@popperjs/core/lib/dom-utils/getCompositeRect.js +58 -0
- package/@popperjs/core/lib/dom-utils/getComputedStyle.js +4 -0
- package/@popperjs/core/lib/dom-utils/getDocumentElement.js +6 -0
- package/@popperjs/core/lib/dom-utils/getDocumentRect.js +29 -0
- package/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +6 -0
- package/@popperjs/core/lib/dom-utils/getLayoutRect.js +25 -0
- package/@popperjs/core/lib/dom-utils/getNodeName.js +3 -0
- package/@popperjs/core/lib/dom-utils/getNodeScroll.js +11 -0
- package/@popperjs/core/lib/dom-utils/getOffsetParent.js +69 -0
- package/@popperjs/core/lib/dom-utils/getParentNode.js +19 -0
- package/@popperjs/core/lib/dom-utils/getScrollParent.js +16 -0
- package/@popperjs/core/lib/dom-utils/getViewportRect.js +31 -0
- package/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
- package/@popperjs/core/lib/dom-utils/getWindowScroll.js +10 -0
- package/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +13 -0
- package/@popperjs/core/lib/dom-utils/instanceOf.js +23 -0
- package/@popperjs/core/lib/dom-utils/isLayoutViewport.js +4 -0
- package/@popperjs/core/lib/dom-utils/isScrollParent.js +10 -0
- package/@popperjs/core/lib/dom-utils/isTableElement.js +4 -0
- package/@popperjs/core/lib/dom-utils/listScrollParents.js +26 -0
- package/@popperjs/core/lib/enums.js +31 -0
- package/@popperjs/core/lib/modifiers/applyStyles.js +84 -0
- package/@popperjs/core/lib/modifiers/arrow.js +101 -0
- package/@popperjs/core/lib/modifiers/computeStyles.js +181 -0
- package/@popperjs/core/lib/modifiers/eventListeners.js +49 -0
- package/@popperjs/core/lib/modifiers/flip.js +147 -0
- package/@popperjs/core/lib/modifiers/hide.js +61 -0
- package/@popperjs/core/lib/modifiers/offset.js +54 -0
- package/@popperjs/core/lib/modifiers/popperOffsets.js +25 -0
- package/@popperjs/core/lib/modifiers/preventOverflow.js +142 -0
- package/@popperjs/core/lib/popper.js +20 -0
- package/@popperjs/core/lib/utils/computeAutoPlacement.js +47 -0
- package/@popperjs/core/lib/utils/computeOffsets.js +70 -0
- package/@popperjs/core/lib/utils/debounce.js +15 -0
- package/@popperjs/core/lib/utils/detectOverflow.js +65 -0
- package/@popperjs/core/lib/utils/expandToHashMap.js +6 -0
- package/@popperjs/core/lib/utils/format.js +9 -0
- package/@popperjs/core/lib/utils/getAltAxis.js +3 -0
- package/@popperjs/core/lib/utils/getBasePlacement.js +4 -0
- package/@popperjs/core/lib/utils/getFreshSideObject.js +8 -0
- package/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +3 -0
- package/@popperjs/core/lib/utils/getOppositePlacement.js +11 -0
- package/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +9 -0
- package/@popperjs/core/lib/utils/getVariation.js +3 -0
- package/@popperjs/core/lib/utils/math.js +3 -0
- package/@popperjs/core/lib/utils/mergeByName.js +14 -0
- package/@popperjs/core/lib/utils/mergePaddingObject.js +4 -0
- package/@popperjs/core/lib/utils/orderModifiers.js +44 -0
- package/@popperjs/core/lib/utils/rectToClientRect.js +8 -0
- package/@popperjs/core/lib/utils/userAgent.js +11 -0
- package/@popperjs/core/lib/utils/validateModifiers.js +81 -0
- package/@popperjs/core/lib/utils/within.js +8 -0
- package/@remix-run/router/dist/router.js +3347 -0
- package/@zag-js/element-size/dist/index.mjs +31 -0
- package/@zag-js/focus-visible/dist/index.mjs +79 -0
- package/LICENSE +21 -0
- package/README.md +68 -3
- package/aria-hidden/dist/es2015/index.js +143 -0
- package/css-box-model/dist/css-box-model.esm.js +152 -0
- package/deepmerge/dist/cjs.js +133 -0
- package/focus-lock/dist/es2015/constants.js +22 -0
- package/focus-lock/dist/es2015/focusInside.js +18 -0
- package/focus-lock/dist/es2015/focusIsHidden.js +17 -0
- package/focus-lock/dist/es2015/focusMerge.js +66 -0
- package/focus-lock/dist/es2015/focusables.js +36 -0
- package/focus-lock/dist/es2015/index.js +13 -0
- package/focus-lock/dist/es2015/setFocus.js +40 -0
- package/focus-lock/dist/es2015/solver.js +70 -0
- package/focus-lock/dist/es2015/utils/DOMutils.js +49 -0
- package/focus-lock/dist/es2015/utils/all-affected.js +50 -0
- package/focus-lock/dist/es2015/utils/array.js +11 -0
- package/focus-lock/dist/es2015/utils/correctFocus.js +24 -0
- package/focus-lock/dist/es2015/utils/firstFocus.js +13 -0
- package/focus-lock/dist/es2015/utils/getActiveElement.js +17 -0
- package/focus-lock/dist/es2015/utils/is.js +67 -0
- package/focus-lock/dist/es2015/utils/parenting.js +59 -0
- package/focus-lock/dist/es2015/utils/tabOrder.js +24 -0
- package/focus-lock/dist/es2015/utils/tabUtils.js +32 -0
- package/focus-lock/dist/es2015/utils/tabbables.js +22 -0
- package/framer-motion/dist/es/animation/animate.mjs +41 -0
- package/framer-motion/dist/es/animation/utils/default-transitions.mjs +53 -0
- package/framer-motion/dist/es/animation/utils/easing.mjs +38 -0
- package/framer-motion/dist/es/animation/utils/is-animatable.mjs +30 -0
- package/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +5 -0
- package/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +5 -0
- package/framer-motion/dist/es/animation/utils/transitions.mjs +210 -0
- package/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs +71 -0
- package/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs +56 -0
- package/framer-motion/dist/es/components/AnimatePresence/index.mjs +161 -0
- package/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs +67 -0
- package/framer-motion/dist/es/context/LayoutGroupContext.mjs +5 -0
- package/framer-motion/dist/es/context/LazyContext.mjs +5 -0
- package/framer-motion/dist/es/context/MotionConfigContext.mjs +12 -0
- package/framer-motion/dist/es/context/MotionContext/create.mjs +13 -0
- package/framer-motion/dist/es/context/MotionContext/index.mjs +8 -0
- package/framer-motion/dist/es/context/MotionContext/utils.mjs +17 -0
- package/framer-motion/dist/es/context/PresenceContext.mjs +8 -0
- package/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs +8 -0
- package/framer-motion/dist/es/events/event-info.mjs +46 -0
- package/framer-motion/dist/es/events/use-dom-event.mjs +37 -0
- package/framer-motion/dist/es/events/use-pointer-event.mjs +40 -0
- package/framer-motion/dist/es/events/utils.mjs +8 -0
- package/framer-motion/dist/es/gestures/PanSession.mjs +148 -0
- package/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +449 -0
- package/framer-motion/dist/es/gestures/drag/use-drag.mjs +20 -0
- package/framer-motion/dist/es/gestures/drag/utils/constraints.mjs +124 -0
- package/framer-motion/dist/es/gestures/drag/utils/lock.mjs +53 -0
- package/framer-motion/dist/es/gestures/use-focus-gesture.mjs +22 -0
- package/framer-motion/dist/es/gestures/use-hover-gesture.mjs +28 -0
- package/framer-motion/dist/es/gestures/use-pan-gesture.mjs +46 -0
- package/framer-motion/dist/es/gestures/use-tap-gesture.mjs +67 -0
- package/framer-motion/dist/es/gestures/utils/event-type.mjs +13 -0
- package/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs +20 -0
- package/framer-motion/dist/es/motion/features/animations.mjs +42 -0
- package/framer-motion/dist/es/motion/features/definitions.mjs +34 -0
- package/framer-motion/dist/es/motion/features/drag.mjs +10 -0
- package/framer-motion/dist/es/motion/features/gestures.mjs +14 -0
- package/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +129 -0
- package/framer-motion/dist/es/motion/features/layout/index.mjs +7 -0
- package/framer-motion/dist/es/motion/features/load-features.mjs +14 -0
- package/framer-motion/dist/es/motion/features/viewport/observers.mjs +49 -0
- package/framer-motion/dist/es/motion/features/viewport/use-viewport.mjs +98 -0
- package/framer-motion/dist/es/motion/index.mjs +94 -0
- package/framer-motion/dist/es/motion/utils/VisualElementHandler.mjs +19 -0
- package/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +11 -0
- package/framer-motion/dist/es/motion/utils/make-renderless-component.mjs +6 -0
- package/framer-motion/dist/es/motion/utils/symbol.mjs +3 -0
- package/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +33 -0
- package/framer-motion/dist/es/motion/utils/use-visual-element.mjs +43 -0
- package/framer-motion/dist/es/motion/utils/use-visual-state.mjs +81 -0
- package/framer-motion/dist/es/motion/utils/valid-prop.mjs +83 -0
- package/framer-motion/dist/es/projection/animation/mix-values.mjs +91 -0
- package/framer-motion/dist/es/projection/geometry/conversion.mjs +33 -0
- package/framer-motion/dist/es/projection/geometry/copy.mjs +20 -0
- package/framer-motion/dist/es/projection/geometry/delta-apply.mjs +101 -0
- package/framer-motion/dist/es/projection/geometry/delta-calc.mjs +41 -0
- package/framer-motion/dist/es/projection/geometry/delta-remove.mjs +54 -0
- package/framer-motion/dist/es/projection/geometry/models.mjs +17 -0
- package/framer-motion/dist/es/projection/geometry/utils.mjs +23 -0
- package/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs +13 -0
- package/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs +27 -0
- package/framer-motion/dist/es/projection/node/create-projection-node.mjs +1228 -0
- package/framer-motion/dist/es/projection/node/id.mjs +13 -0
- package/framer-motion/dist/es/projection/node/state.mjs +19 -0
- package/framer-motion/dist/es/projection/shared/stack.mjs +111 -0
- package/framer-motion/dist/es/projection/styles/scale-border-radius.mjs +41 -0
- package/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs +57 -0
- package/framer-motion/dist/es/projection/styles/scale-correction.mjs +6 -0
- package/framer-motion/dist/es/projection/styles/transform.mjs +36 -0
- package/framer-motion/dist/es/projection/utils/each-axis.mjs +5 -0
- package/framer-motion/dist/es/projection/utils/has-transform.mjs +24 -0
- package/framer-motion/dist/es/projection/utils/measure.mjs +17 -0
- package/framer-motion/dist/es/render/dom/create-visual-element.mjs +11 -0
- package/framer-motion/dist/es/render/dom/motion-proxy.mjs +47 -0
- package/framer-motion/dist/es/render/dom/motion.mjs +43 -0
- package/framer-motion/dist/es/render/dom/use-render.mjs +27 -0
- package/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +6 -0
- package/framer-motion/dist/es/render/dom/utils/create-config.mjs +20 -0
- package/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +87 -0
- package/framer-motion/dist/es/render/dom/utils/filter-props.mjs +48 -0
- package/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +8 -0
- package/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs +30 -0
- package/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs +15 -0
- package/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +233 -0
- package/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +13 -0
- package/framer-motion/dist/es/render/dom/value-types/defaults.mjs +29 -0
- package/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +14 -0
- package/framer-motion/dist/es/render/dom/value-types/find.mjs +14 -0
- package/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +10 -0
- package/framer-motion/dist/es/render/dom/value-types/number.mjs +71 -0
- package/framer-motion/dist/es/render/dom/value-types/test.mjs +6 -0
- package/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +9 -0
- package/framer-motion/dist/es/render/dom/value-types/type-int.mjs +8 -0
- package/framer-motion/dist/es/render/html/config-motion.mjs +12 -0
- package/framer-motion/dist/es/render/html/use-props.mjs +53 -0
- package/framer-motion/dist/es/render/html/utils/build-styles.mjs +76 -0
- package/framer-motion/dist/es/render/html/utils/build-transform.mjs +43 -0
- package/framer-motion/dist/es/render/html/utils/create-render-state.mjs +9 -0
- package/framer-motion/dist/es/render/html/utils/render.mjs +9 -0
- package/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +15 -0
- package/framer-motion/dist/es/render/html/utils/transform.mjs +28 -0
- package/framer-motion/dist/es/render/html/visual-element.mjs +109 -0
- package/framer-motion/dist/es/render/index.mjs +515 -0
- package/framer-motion/dist/es/render/svg/config-motion.mjs +34 -0
- package/framer-motion/dist/es/render/svg/lowercase-elements.mjs +33 -0
- package/framer-motion/dist/es/render/svg/use-props.mjs +23 -0
- package/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +40 -0
- package/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +27 -0
- package/framer-motion/dist/es/render/svg/utils/create-render-state.mjs +8 -0
- package/framer-motion/dist/es/render/svg/utils/path.mjs +32 -0
- package/framer-motion/dist/es/render/svg/utils/render.mjs +12 -0
- package/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +15 -0
- package/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +18 -0
- package/framer-motion/dist/es/render/svg/visual-element.mjs +31 -0
- package/framer-motion/dist/es/render/utils/animation-state.mjs +329 -0
- package/framer-motion/dist/es/render/utils/animation.mjs +140 -0
- package/framer-motion/dist/es/render/utils/compare-by-depth.mjs +3 -0
- package/framer-motion/dist/es/render/utils/flat-tree.mjs +24 -0
- package/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +22 -0
- package/framer-motion/dist/es/render/utils/is-variant-label.mjs +8 -0
- package/framer-motion/dist/es/render/utils/lifecycles.mjs +43 -0
- package/framer-motion/dist/es/render/utils/motion-values.mjs +63 -0
- package/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +24 -0
- package/framer-motion/dist/es/render/utils/resolve-variants.mjs +26 -0
- package/framer-motion/dist/es/render/utils/setters.mjs +118 -0
- package/framer-motion/dist/es/render/utils/types.mjs +12 -0
- package/framer-motion/dist/es/utils/array.mjs +21 -0
- package/framer-motion/dist/es/utils/delay.mjs +16 -0
- package/framer-motion/dist/es/utils/is-browser.mjs +3 -0
- package/framer-motion/dist/es/utils/is-numerical-string.mjs +6 -0
- package/framer-motion/dist/es/utils/is-ref-object.mjs +6 -0
- package/framer-motion/dist/es/utils/is-zero-value-string.mjs +6 -0
- package/framer-motion/dist/es/utils/process.mjs +9 -0
- package/framer-motion/dist/es/utils/reduced-motion/index.mjs +19 -0
- package/framer-motion/dist/es/utils/reduced-motion/state.mjs +5 -0
- package/framer-motion/dist/es/utils/resolve-value.mjs +11 -0
- package/framer-motion/dist/es/utils/shallow-compare.mjs +14 -0
- package/framer-motion/dist/es/utils/subscription-manager.mjs +40 -0
- package/framer-motion/dist/es/utils/time-conversion.mjs +9 -0
- package/framer-motion/dist/es/utils/use-constant.mjs +18 -0
- package/framer-motion/dist/es/utils/use-force-update.mjs +19 -0
- package/framer-motion/dist/es/utils/use-instant-transition-state.mjs +5 -0
- package/framer-motion/dist/es/utils/use-is-mounted.mjs +15 -0
- package/framer-motion/dist/es/utils/use-isomorphic-effect.mjs +6 -0
- package/framer-motion/dist/es/utils/use-unmount-effect.mjs +7 -0
- package/framer-motion/dist/es/utils/warn-once.mjs +11 -0
- package/framer-motion/dist/es/value/index.mjs +305 -0
- package/framer-motion/dist/es/value/use-will-change/is.mjs +7 -0
- package/framer-motion/dist/es/value/utils/is-motion-value.mjs +3 -0
- package/framer-motion/dist/es/value/utils/resolve-motion-value.mjs +16 -0
- package/framer-motion/node_modules/framesync/dist/es/create-render-step.mjs +56 -0
- package/framer-motion/node_modules/framesync/dist/es/index.mjs +64 -0
- package/framer-motion/node_modules/framesync/dist/es/on-next-frame.mjs +9 -0
- package/framesync/dist/es/create-render-step.js +50 -0
- package/framesync/dist/es/index.js +68 -0
- package/framesync/dist/es/on-next-frame.js +13 -0
- package/get-nonce/dist/es2015/index.js +13 -0
- package/hey-listen/dist/hey-listen.es.js +16 -0
- package/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +103 -0
- package/index.js +163 -0
- package/lodash.mergewith/index.js +1977 -0
- package/package.json +17 -3
- package/popmotion/dist/es/animations/generators/decay.mjs +19 -0
- package/popmotion/dist/es/animations/generators/keyframes.mjs +39 -0
- package/popmotion/dist/es/animations/generators/spring.mjs +119 -0
- package/popmotion/dist/es/animations/index.mjs +89 -0
- package/popmotion/dist/es/animations/inertia.mjs +65 -0
- package/popmotion/dist/es/animations/utils/detect-animation-from-options.mjs +29 -0
- package/popmotion/dist/es/animations/utils/elapsed.mjs +13 -0
- package/popmotion/dist/es/animations/utils/find-spring.mjs +79 -0
- package/popmotion/dist/es/easing/cubic-bezier.mjs +74 -0
- package/popmotion/dist/es/easing/index.mjs +38 -0
- package/popmotion/dist/es/easing/utils.mjs +12 -0
- package/popmotion/dist/es/utils/clamp.mjs +3 -0
- package/popmotion/dist/es/utils/distance.mjs +18 -0
- package/popmotion/dist/es/utils/hsla-to-rgba.mjs +41 -0
- package/popmotion/dist/es/utils/inc.mjs +8 -0
- package/popmotion/dist/es/utils/interpolate.mjs +92 -0
- package/popmotion/dist/es/utils/is-point-3d.mjs +5 -0
- package/popmotion/dist/es/utils/is-point.mjs +3 -0
- package/popmotion/dist/es/utils/mix-color.mjs +41 -0
- package/popmotion/dist/es/utils/mix-complex.mjs +82 -0
- package/popmotion/dist/es/utils/mix.mjs +3 -0
- package/popmotion/dist/es/utils/pipe.mjs +4 -0
- package/popmotion/dist/es/utils/progress.mjs +6 -0
- package/popmotion/dist/es/utils/velocity-per-second.mjs +5 -0
- package/popmotion/node_modules/framesync/dist/es/create-render-step.mjs +56 -0
- package/popmotion/node_modules/framesync/dist/es/index.mjs +64 -0
- package/popmotion/node_modules/framesync/dist/es/on-next-frame.mjs +9 -0
- package/prop-types/factoryWithThrowingShims.js +65 -0
- package/prop-types/index.js +19 -0
- package/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/react-clientside-effect/lib/index.es.js +79 -0
- package/react-fast-compare/index.js +134 -0
- package/react-focus-lock/dist/es2015/Combination.js +27 -0
- package/react-focus-lock/dist/es2015/FocusGuard.js +34 -0
- package/react-focus-lock/dist/es2015/Lock.js +208 -0
- package/react-focus-lock/dist/es2015/Trap.js +277 -0
- package/react-focus-lock/dist/es2015/medium.js +14 -0
- package/react-focus-lock/dist/es2015/util.js +16 -0
- package/react-is/cjs/react-is.production.min.js +15 -0
- package/react-is/index.js +7 -0
- package/react-remove-scroll/dist/es2015/Combination.js +7 -0
- package/react-remove-scroll/dist/es2015/SideEffect.js +146 -0
- package/react-remove-scroll/dist/es2015/UI.js +36 -0
- package/react-remove-scroll/dist/es2015/aggresiveCapture.js +19 -0
- package/react-remove-scroll/dist/es2015/handleScroll.js +96 -0
- package/react-remove-scroll/dist/es2015/medium.js +2 -0
- package/react-remove-scroll/dist/es2015/sidecar.js +4 -0
- package/react-remove-scroll-bar/dist/es2015/component.js +28 -0
- package/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/react-remove-scroll-bar/dist/es2015/utils.js +34 -0
- package/react-router/dist/index.js +1348 -0
- package/react-router-dom/dist/index.js +895 -0
- package/react-style-singleton/dist/es2015/component.js +16 -0
- package/react-style-singleton/dist/es2015/hook.js +22 -0
- package/react-style-singleton/dist/es2015/singleton.js +48 -0
- package/style-value-types/dist/es/color/hex.mjs +38 -0
- package/style-value-types/dist/es/color/hsla.mjs +22 -0
- package/style-value-types/dist/es/color/index.mjs +28 -0
- package/style-value-types/dist/es/color/rgba.mjs +21 -0
- package/style-value-types/dist/es/color/utils.mjs +19 -0
- package/style-value-types/dist/es/complex/filter.mjs +24 -0
- package/style-value-types/dist/es/complex/index.mjs +53 -0
- package/style-value-types/dist/es/numbers/index.mjs +11 -0
- package/style-value-types/dist/es/numbers/units.mjs +15 -0
- package/style-value-types/dist/es/utils.mjs +10 -0
- package/stylis/src/Enum.js +20 -0
- package/stylis/src/Middleware.js +108 -0
- package/stylis/src/Parser.js +191 -0
- package/stylis/src/Prefixer.js +119 -0
- package/stylis/src/Serializer.js +35 -0
- package/stylis/src/Tokenizer.js +246 -0
- package/stylis/src/Utility.js +115 -0
- package/use-callback-ref/dist/es2015/assignRef.js +22 -0
- package/use-callback-ref/dist/es2015/useMergeRef.js +19 -0
- package/use-callback-ref/dist/es2015/useRef.js +39 -0
- package/use-sidecar/dist/es2015/exports.js +18 -0
- package/use-sidecar/dist/es2015/medium.js +78 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
export default function _defineProperty(obj, key, value) {
|
2
|
+
if (key in obj) {
|
3
|
+
Object.defineProperty(obj, key, {
|
4
|
+
value: value,
|
5
|
+
enumerable: true,
|
6
|
+
configurable: true,
|
7
|
+
writable: true
|
8
|
+
});
|
9
|
+
} else {
|
10
|
+
obj[key] = value;
|
11
|
+
}
|
12
|
+
|
13
|
+
return obj;
|
14
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export default function _extends() {
|
2
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
3
|
+
for (var i = 1; i < arguments.length; i++) {
|
4
|
+
var source = arguments[i];
|
5
|
+
|
6
|
+
for (var key in source) {
|
7
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
8
|
+
target[key] = source[key];
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
return target;
|
14
|
+
};
|
15
|
+
return _extends.apply(this, arguments);
|
16
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export default function _objectWithoutPropertiesLoose(source, excluded) {
|
2
|
+
if (source == null) return {};
|
3
|
+
var target = {};
|
4
|
+
var sourceKeys = Object.keys(source);
|
5
|
+
var key, i;
|
6
|
+
|
7
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
8
|
+
key = sourceKeys[i];
|
9
|
+
if (excluded.indexOf(key) >= 0) continue;
|
10
|
+
target[key] = source[key];
|
11
|
+
}
|
12
|
+
|
13
|
+
return target;
|
14
|
+
}
|
@@ -0,0 +1,391 @@
|
|
1
|
+
// ../../../react-shim.js
|
2
|
+
import React from "react";
|
3
|
+
|
4
|
+
// src/accordion-button.tsx
|
5
|
+
import {
|
6
|
+
chakra,
|
7
|
+
forwardRef
|
8
|
+
} from "@chakra-ui/system";
|
9
|
+
|
10
|
+
// ../../utilities/shared-utils/dist/index.esm.js
|
11
|
+
var cx = (...classNames) => classNames.filter(Boolean).join(" ");
|
12
|
+
function isDev() {
|
13
|
+
return process.env.NODE_ENV !== "production";
|
14
|
+
}
|
15
|
+
var warn = (options) => {
|
16
|
+
const { condition, message } = options;
|
17
|
+
if (condition && isDev()) {
|
18
|
+
console.warn(message);
|
19
|
+
}
|
20
|
+
};
|
21
|
+
function callAllHandlers(...fns) {
|
22
|
+
return function func(event) {
|
23
|
+
fns.some((fn) => {
|
24
|
+
fn == null ? void 0 : fn(event);
|
25
|
+
return event == null ? void 0 : event.defaultPrevented;
|
26
|
+
});
|
27
|
+
};
|
28
|
+
}
|
29
|
+
|
30
|
+
// src/accordion-context.ts
|
31
|
+
import { createDescendantContext } from "@chakra-ui/descendant";
|
32
|
+
import { createContext } from "@chakra-ui/react-context";
|
33
|
+
var [AccordionStylesProvider, useAccordionStyles] = createContext({
|
34
|
+
name: "AccordionStylesContext",
|
35
|
+
hookName: "useAccordionStyles",
|
36
|
+
providerName: "<Accordion />"
|
37
|
+
});
|
38
|
+
var [AccordionItemProvider, useAccordionItemContext] = createContext({
|
39
|
+
name: "AccordionItemContext",
|
40
|
+
hookName: "useAccordionItemContext",
|
41
|
+
providerName: "<AccordionItem />"
|
42
|
+
});
|
43
|
+
var [
|
44
|
+
AccordionDescendantsProvider,
|
45
|
+
useAccordionDescendantsContext,
|
46
|
+
useAccordionDescendants,
|
47
|
+
useAccordionDescendant
|
48
|
+
] = createDescendantContext();
|
49
|
+
|
50
|
+
// src/accordion-button.tsx
|
51
|
+
var AccordionButton = forwardRef(function AccordionButton2(props, ref) {
|
52
|
+
const { getButtonProps } = useAccordionItemContext();
|
53
|
+
const buttonProps = getButtonProps(props, ref);
|
54
|
+
const styles = useAccordionStyles();
|
55
|
+
const buttonStyles = {
|
56
|
+
display: "flex",
|
57
|
+
alignItems: "center",
|
58
|
+
width: "100%",
|
59
|
+
outline: 0,
|
60
|
+
...styles.button
|
61
|
+
};
|
62
|
+
return /* @__PURE__ */ React.createElement(chakra.button, {
|
63
|
+
...buttonProps,
|
64
|
+
className: cx("chakra-accordion__button", props.className),
|
65
|
+
__css: buttonStyles
|
66
|
+
});
|
67
|
+
});
|
68
|
+
AccordionButton.displayName = "AccordionButton";
|
69
|
+
|
70
|
+
// src/accordion-icon.tsx
|
71
|
+
import { Icon } from "@chakra-ui/icon";
|
72
|
+
|
73
|
+
// src/use-accordion.ts
|
74
|
+
import { createContext as createContext2 } from "@chakra-ui/react-context";
|
75
|
+
import { useControllableState } from "@chakra-ui/react-use-controllable-state";
|
76
|
+
import { mergeRefs } from "@chakra-ui/react-use-merge-refs";
|
77
|
+
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
78
|
+
function useAccordion(props) {
|
79
|
+
const {
|
80
|
+
onChange,
|
81
|
+
defaultIndex,
|
82
|
+
index: indexProp,
|
83
|
+
allowMultiple,
|
84
|
+
allowToggle,
|
85
|
+
...htmlProps
|
86
|
+
} = props;
|
87
|
+
allowMultipleWarning(props);
|
88
|
+
allowMultipleAndAllowToggleWarning(props);
|
89
|
+
const descendants = useAccordionDescendants();
|
90
|
+
const [focusedIndex, setFocusedIndex] = useState(-1);
|
91
|
+
useEffect(() => {
|
92
|
+
return () => {
|
93
|
+
setFocusedIndex(-1);
|
94
|
+
};
|
95
|
+
}, []);
|
96
|
+
const [index, setIndex] = useControllableState({
|
97
|
+
value: indexProp,
|
98
|
+
defaultValue() {
|
99
|
+
if (allowMultiple)
|
100
|
+
return defaultIndex ?? [];
|
101
|
+
return defaultIndex ?? -1;
|
102
|
+
},
|
103
|
+
onChange
|
104
|
+
});
|
105
|
+
const getAccordionItemProps = (idx) => {
|
106
|
+
let isOpen = false;
|
107
|
+
if (idx !== null) {
|
108
|
+
isOpen = Array.isArray(index) ? index.includes(idx) : index === idx;
|
109
|
+
}
|
110
|
+
const onChange2 = (isOpen2) => {
|
111
|
+
if (idx === null)
|
112
|
+
return;
|
113
|
+
if (allowMultiple && Array.isArray(index)) {
|
114
|
+
const nextState = isOpen2 ? index.concat(idx) : index.filter((i) => i !== idx);
|
115
|
+
setIndex(nextState);
|
116
|
+
} else if (isOpen2) {
|
117
|
+
setIndex(idx);
|
118
|
+
} else if (allowToggle) {
|
119
|
+
setIndex(-1);
|
120
|
+
}
|
121
|
+
};
|
122
|
+
return { isOpen, onChange: onChange2 };
|
123
|
+
};
|
124
|
+
return {
|
125
|
+
index,
|
126
|
+
setIndex,
|
127
|
+
htmlProps,
|
128
|
+
getAccordionItemProps,
|
129
|
+
focusedIndex,
|
130
|
+
setFocusedIndex,
|
131
|
+
descendants
|
132
|
+
};
|
133
|
+
}
|
134
|
+
var [AccordionProvider, useAccordionContext] = createContext2({
|
135
|
+
name: "AccordionContext",
|
136
|
+
hookName: "useAccordionContext",
|
137
|
+
providerName: "Accordion"
|
138
|
+
});
|
139
|
+
function useAccordionItem(props) {
|
140
|
+
const { isDisabled, isFocusable, id, ...htmlProps } = props;
|
141
|
+
const { getAccordionItemProps, setFocusedIndex } = useAccordionContext();
|
142
|
+
const buttonRef = useRef(null);
|
143
|
+
const reactId = useId();
|
144
|
+
const uid = id ?? reactId;
|
145
|
+
const buttonId = `accordion-button-${uid}`;
|
146
|
+
const panelId = `accordion-panel-${uid}`;
|
147
|
+
focusableNotDisabledWarning(props);
|
148
|
+
const { register, index, descendants } = useAccordionDescendant({
|
149
|
+
disabled: isDisabled && !isFocusable
|
150
|
+
});
|
151
|
+
const { isOpen, onChange } = getAccordionItemProps(index === -1 ? null : index);
|
152
|
+
warnIfOpenAndDisabled({ isOpen, isDisabled });
|
153
|
+
const onOpen = () => {
|
154
|
+
onChange == null ? void 0 : onChange(true);
|
155
|
+
};
|
156
|
+
const onClose = () => {
|
157
|
+
onChange == null ? void 0 : onChange(false);
|
158
|
+
};
|
159
|
+
const onClick = useCallback(() => {
|
160
|
+
onChange == null ? void 0 : onChange(!isOpen);
|
161
|
+
setFocusedIndex(index);
|
162
|
+
}, [index, setFocusedIndex, isOpen, onChange]);
|
163
|
+
const onKeyDown = useCallback((event) => {
|
164
|
+
const keyMap = {
|
165
|
+
ArrowDown: () => {
|
166
|
+
const next = descendants.nextEnabled(index);
|
167
|
+
next == null ? void 0 : next.node.focus();
|
168
|
+
},
|
169
|
+
ArrowUp: () => {
|
170
|
+
const prev = descendants.prevEnabled(index);
|
171
|
+
prev == null ? void 0 : prev.node.focus();
|
172
|
+
},
|
173
|
+
Home: () => {
|
174
|
+
const first = descendants.firstEnabled();
|
175
|
+
first == null ? void 0 : first.node.focus();
|
176
|
+
},
|
177
|
+
End: () => {
|
178
|
+
const last = descendants.lastEnabled();
|
179
|
+
last == null ? void 0 : last.node.focus();
|
180
|
+
}
|
181
|
+
};
|
182
|
+
const action = keyMap[event.key];
|
183
|
+
if (action) {
|
184
|
+
event.preventDefault();
|
185
|
+
action(event);
|
186
|
+
}
|
187
|
+
}, [descendants, index]);
|
188
|
+
const onFocus = useCallback(() => {
|
189
|
+
setFocusedIndex(index);
|
190
|
+
}, [setFocusedIndex, index]);
|
191
|
+
const getButtonProps = useCallback(function getButtonProps2(props2 = {}, ref = null) {
|
192
|
+
return {
|
193
|
+
...props2,
|
194
|
+
type: "button",
|
195
|
+
ref: mergeRefs(register, buttonRef, ref),
|
196
|
+
id: buttonId,
|
197
|
+
disabled: !!isDisabled,
|
198
|
+
"aria-expanded": !!isOpen,
|
199
|
+
"aria-controls": panelId,
|
200
|
+
onClick: callAllHandlers(props2.onClick, onClick),
|
201
|
+
onFocus: callAllHandlers(props2.onFocus, onFocus),
|
202
|
+
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown)
|
203
|
+
};
|
204
|
+
}, [
|
205
|
+
buttonId,
|
206
|
+
isDisabled,
|
207
|
+
isOpen,
|
208
|
+
onClick,
|
209
|
+
onFocus,
|
210
|
+
onKeyDown,
|
211
|
+
panelId,
|
212
|
+
register
|
213
|
+
]);
|
214
|
+
const getPanelProps = useCallback(function getPanelProps2(props2 = {}, ref = null) {
|
215
|
+
return {
|
216
|
+
...props2,
|
217
|
+
ref,
|
218
|
+
role: "region",
|
219
|
+
id: panelId,
|
220
|
+
"aria-labelledby": buttonId,
|
221
|
+
hidden: !isOpen
|
222
|
+
};
|
223
|
+
}, [buttonId, isOpen, panelId]);
|
224
|
+
return {
|
225
|
+
isOpen,
|
226
|
+
isDisabled,
|
227
|
+
isFocusable,
|
228
|
+
onOpen,
|
229
|
+
onClose,
|
230
|
+
getButtonProps,
|
231
|
+
getPanelProps,
|
232
|
+
htmlProps
|
233
|
+
};
|
234
|
+
}
|
235
|
+
function allowMultipleWarning(props) {
|
236
|
+
const index = props.index || props.defaultIndex;
|
237
|
+
const condition = index == null && !Array.isArray(index) && props.allowMultiple;
|
238
|
+
warn({
|
239
|
+
condition: !!condition,
|
240
|
+
message: `If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof index},`
|
241
|
+
});
|
242
|
+
}
|
243
|
+
function allowMultipleAndAllowToggleWarning(props) {
|
244
|
+
warn({
|
245
|
+
condition: !!(props.allowMultiple && props.allowToggle),
|
246
|
+
message: `If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not`
|
247
|
+
});
|
248
|
+
}
|
249
|
+
function focusableNotDisabledWarning(props) {
|
250
|
+
warn({
|
251
|
+
condition: !!(props.isFocusable && !props.isDisabled),
|
252
|
+
message: `Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
|
253
|
+
`
|
254
|
+
});
|
255
|
+
}
|
256
|
+
function warnIfOpenAndDisabled(props) {
|
257
|
+
warn({
|
258
|
+
condition: props.isOpen && !!props.isDisabled,
|
259
|
+
message: "Cannot open a disabled accordion item"
|
260
|
+
});
|
261
|
+
}
|
262
|
+
|
263
|
+
// src/accordion-icon.tsx
|
264
|
+
function AccordionIcon(props) {
|
265
|
+
const { isOpen, isDisabled } = useAccordionItemContext();
|
266
|
+
const { reduceMotion } = useAccordionContext();
|
267
|
+
const _className = cx("chakra-accordion__icon", props.className);
|
268
|
+
const styles = useAccordionStyles();
|
269
|
+
const iconStyles = {
|
270
|
+
opacity: isDisabled ? 0.4 : 1,
|
271
|
+
transform: isOpen ? "rotate(-180deg)" : void 0,
|
272
|
+
transition: reduceMotion ? void 0 : "transform 0.2s",
|
273
|
+
transformOrigin: "center",
|
274
|
+
...styles.icon
|
275
|
+
};
|
276
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
277
|
+
viewBox: "0 0 24 24",
|
278
|
+
"aria-hidden": true,
|
279
|
+
className: _className,
|
280
|
+
__css: iconStyles,
|
281
|
+
...props
|
282
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
283
|
+
fill: "currentColor",
|
284
|
+
d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
285
|
+
}));
|
286
|
+
}
|
287
|
+
AccordionIcon.displayName = "AccordionIcon";
|
288
|
+
|
289
|
+
// src/accordion-item.tsx
|
290
|
+
import {
|
291
|
+
chakra as chakra2,
|
292
|
+
forwardRef as forwardRef2
|
293
|
+
} from "@chakra-ui/system";
|
294
|
+
import { useMemo } from "react";
|
295
|
+
var AccordionItem = forwardRef2(function AccordionItem2(props, ref) {
|
296
|
+
const { children, className } = props;
|
297
|
+
const { htmlProps, ...context } = useAccordionItem(props);
|
298
|
+
const styles = useAccordionStyles();
|
299
|
+
const containerStyles = {
|
300
|
+
...styles.container,
|
301
|
+
overflowAnchor: "none"
|
302
|
+
};
|
303
|
+
const ctx = useMemo(() => context, [context]);
|
304
|
+
return /* @__PURE__ */ React.createElement(AccordionItemProvider, {
|
305
|
+
value: ctx
|
306
|
+
}, /* @__PURE__ */ React.createElement(chakra2.div, {
|
307
|
+
ref,
|
308
|
+
...htmlProps,
|
309
|
+
className: cx("chakra-accordion__item", className),
|
310
|
+
__css: containerStyles
|
311
|
+
}, typeof children === "function" ? children({
|
312
|
+
isExpanded: !!context.isOpen,
|
313
|
+
isDisabled: !!context.isDisabled
|
314
|
+
}) : children));
|
315
|
+
});
|
316
|
+
AccordionItem.displayName = "AccordionItem";
|
317
|
+
|
318
|
+
// src/accordion-panel.tsx
|
319
|
+
import { chakra as chakra3, forwardRef as forwardRef3 } from "@chakra-ui/system";
|
320
|
+
import { Collapse } from "@chakra-ui/transition";
|
321
|
+
var AccordionPanel = forwardRef3(function AccordionPanel2(props, ref) {
|
322
|
+
const { className, motionProps, ...rest } = props;
|
323
|
+
const { reduceMotion } = useAccordionContext();
|
324
|
+
const { getPanelProps, isOpen } = useAccordionItemContext();
|
325
|
+
const panelProps = getPanelProps(rest, ref);
|
326
|
+
const _className = cx("chakra-accordion__panel", className);
|
327
|
+
const styles = useAccordionStyles();
|
328
|
+
if (!reduceMotion) {
|
329
|
+
delete panelProps.hidden;
|
330
|
+
}
|
331
|
+
const child = /* @__PURE__ */ React.createElement(chakra3.div, {
|
332
|
+
...panelProps,
|
333
|
+
__css: styles.panel,
|
334
|
+
className: _className
|
335
|
+
});
|
336
|
+
if (!reduceMotion) {
|
337
|
+
return /* @__PURE__ */ React.createElement(Collapse, {
|
338
|
+
in: isOpen,
|
339
|
+
...motionProps
|
340
|
+
}, child);
|
341
|
+
}
|
342
|
+
return child;
|
343
|
+
});
|
344
|
+
AccordionPanel.displayName = "AccordionPanel";
|
345
|
+
|
346
|
+
// src/accordion.tsx
|
347
|
+
import {
|
348
|
+
chakra as chakra4,
|
349
|
+
forwardRef as forwardRef4,
|
350
|
+
omitThemingProps,
|
351
|
+
useMultiStyleConfig
|
352
|
+
} from "@chakra-ui/system";
|
353
|
+
import { useMemo as useMemo2 } from "react";
|
354
|
+
var Accordion = forwardRef4(function Accordion2({ children, reduceMotion, ...props }, ref) {
|
355
|
+
const styles = useMultiStyleConfig("Accordion", props);
|
356
|
+
const ownProps = omitThemingProps(props);
|
357
|
+
const { htmlProps, descendants, ...context } = useAccordion(ownProps);
|
358
|
+
const ctx = useMemo2(() => ({ ...context, reduceMotion: !!reduceMotion }), [context, reduceMotion]);
|
359
|
+
return /* @__PURE__ */ React.createElement(AccordionDescendantsProvider, {
|
360
|
+
value: descendants
|
361
|
+
}, /* @__PURE__ */ React.createElement(AccordionProvider, {
|
362
|
+
value: ctx
|
363
|
+
}, /* @__PURE__ */ React.createElement(AccordionStylesProvider, {
|
364
|
+
value: styles
|
365
|
+
}, /* @__PURE__ */ React.createElement(chakra4.div, {
|
366
|
+
ref,
|
367
|
+
...htmlProps,
|
368
|
+
className: cx("chakra-accordion", props.className),
|
369
|
+
__css: styles.root
|
370
|
+
}, children))));
|
371
|
+
});
|
372
|
+
Accordion.displayName = "Accordion";
|
373
|
+
|
374
|
+
// src/use-accordion-item-state.ts
|
375
|
+
function useAccordionItemState() {
|
376
|
+
const { isOpen, isDisabled, onClose, onOpen } = useAccordionItemContext();
|
377
|
+
return { isOpen, onClose, isDisabled, onOpen };
|
378
|
+
}
|
379
|
+
export {
|
380
|
+
Accordion,
|
381
|
+
AccordionButton,
|
382
|
+
AccordionIcon,
|
383
|
+
AccordionItem,
|
384
|
+
AccordionPanel,
|
385
|
+
AccordionProvider,
|
386
|
+
useAccordion,
|
387
|
+
useAccordionContext,
|
388
|
+
useAccordionItem,
|
389
|
+
useAccordionItemState,
|
390
|
+
useAccordionStyles
|
391
|
+
};
|
@@ -0,0 +1,158 @@
|
|
1
|
+
// ../../../react-shim.js
|
2
|
+
import React from "react";
|
3
|
+
|
4
|
+
// src/alert.tsx
|
5
|
+
import {
|
6
|
+
chakra,
|
7
|
+
forwardRef,
|
8
|
+
omitThemingProps,
|
9
|
+
useMultiStyleConfig
|
10
|
+
} from "@chakra-ui/system";
|
11
|
+
|
12
|
+
// ../../utilities/shared-utils/dist/index.esm.js
|
13
|
+
var cx = (...classNames) => classNames.filter(Boolean).join(" ");
|
14
|
+
|
15
|
+
// src/alert-context.ts
|
16
|
+
import { createContext } from "@chakra-ui/react-context";
|
17
|
+
|
18
|
+
// src/icons.tsx
|
19
|
+
import { Icon } from "@chakra-ui/icon";
|
20
|
+
function CheckIcon(props) {
|
21
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
22
|
+
viewBox: "0 0 24 24",
|
23
|
+
...props
|
24
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
25
|
+
fill: "currentColor",
|
26
|
+
d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"
|
27
|
+
}));
|
28
|
+
}
|
29
|
+
function InfoIcon(props) {
|
30
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
31
|
+
viewBox: "0 0 24 24",
|
32
|
+
...props
|
33
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
34
|
+
fill: "currentColor",
|
35
|
+
d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"
|
36
|
+
}));
|
37
|
+
}
|
38
|
+
function WarningIcon(props) {
|
39
|
+
return /* @__PURE__ */ React.createElement(Icon, {
|
40
|
+
viewBox: "0 0 24 24",
|
41
|
+
...props
|
42
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
43
|
+
fill: "currentColor",
|
44
|
+
d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"
|
45
|
+
}));
|
46
|
+
}
|
47
|
+
|
48
|
+
// src/alert-context.ts
|
49
|
+
import { Spinner } from "@chakra-ui/spinner";
|
50
|
+
var [AlertProvider, useAlertContext] = createContext({
|
51
|
+
name: "AlertContext",
|
52
|
+
hookName: "useAlertContext",
|
53
|
+
providerName: "<Alert />"
|
54
|
+
});
|
55
|
+
var [AlertStylesProvider, useAlertStyles] = createContext({
|
56
|
+
name: `AlertStylesContext`,
|
57
|
+
hookName: `useAlertStyles`,
|
58
|
+
providerName: "<Alert />"
|
59
|
+
});
|
60
|
+
var STATUSES = {
|
61
|
+
info: { icon: InfoIcon, colorScheme: "blue" },
|
62
|
+
warning: { icon: WarningIcon, colorScheme: "orange" },
|
63
|
+
success: { icon: CheckIcon, colorScheme: "green" },
|
64
|
+
error: { icon: WarningIcon, colorScheme: "red" },
|
65
|
+
loading: { icon: Spinner, colorScheme: "blue" }
|
66
|
+
};
|
67
|
+
function getStatusColorScheme(status) {
|
68
|
+
return STATUSES[status].colorScheme;
|
69
|
+
}
|
70
|
+
function getStatusIcon(status) {
|
71
|
+
return STATUSES[status].icon;
|
72
|
+
}
|
73
|
+
|
74
|
+
// src/alert.tsx
|
75
|
+
var Alert = forwardRef(function Alert2(props, ref) {
|
76
|
+
const { status = "info", addRole = true, ...rest } = omitThemingProps(props);
|
77
|
+
const colorScheme = props.colorScheme ?? getStatusColorScheme(status);
|
78
|
+
const styles = useMultiStyleConfig("Alert", { ...props, colorScheme });
|
79
|
+
const alertStyles = {
|
80
|
+
width: "100%",
|
81
|
+
display: "flex",
|
82
|
+
alignItems: "center",
|
83
|
+
position: "relative",
|
84
|
+
overflow: "hidden",
|
85
|
+
...styles.container
|
86
|
+
};
|
87
|
+
return /* @__PURE__ */ React.createElement(AlertProvider, {
|
88
|
+
value: { status }
|
89
|
+
}, /* @__PURE__ */ React.createElement(AlertStylesProvider, {
|
90
|
+
value: styles
|
91
|
+
}, /* @__PURE__ */ React.createElement(chakra.div, {
|
92
|
+
role: addRole ? "alert" : void 0,
|
93
|
+
ref,
|
94
|
+
...rest,
|
95
|
+
className: cx("chakra-alert", props.className),
|
96
|
+
__css: alertStyles
|
97
|
+
})));
|
98
|
+
});
|
99
|
+
Alert.displayName = "Alert";
|
100
|
+
|
101
|
+
// src/alert-description.tsx
|
102
|
+
import {
|
103
|
+
chakra as chakra2,
|
104
|
+
forwardRef as forwardRef2
|
105
|
+
} from "@chakra-ui/system";
|
106
|
+
var AlertDescription = forwardRef2(function AlertDescription2(props, ref) {
|
107
|
+
const styles = useAlertStyles();
|
108
|
+
const descriptionStyles = {
|
109
|
+
display: "inline",
|
110
|
+
...styles.description
|
111
|
+
};
|
112
|
+
return /* @__PURE__ */ React.createElement(chakra2.div, {
|
113
|
+
ref,
|
114
|
+
...props,
|
115
|
+
className: cx("chakra-alert__desc", props.className),
|
116
|
+
__css: descriptionStyles
|
117
|
+
});
|
118
|
+
});
|
119
|
+
AlertDescription.displayName = "AlertDescription";
|
120
|
+
|
121
|
+
// src/alert-icon.tsx
|
122
|
+
import { chakra as chakra3 } from "@chakra-ui/system";
|
123
|
+
function AlertIcon(props) {
|
124
|
+
const { status } = useAlertContext();
|
125
|
+
const BaseIcon = getStatusIcon(status);
|
126
|
+
const styles = useAlertStyles();
|
127
|
+
const css = status === "loading" ? styles.spinner : styles.icon;
|
128
|
+
return /* @__PURE__ */ React.createElement(chakra3.span, {
|
129
|
+
display: "inherit",
|
130
|
+
...props,
|
131
|
+
className: cx("chakra-alert__icon", props.className),
|
132
|
+
__css: css
|
133
|
+
}, props.children || /* @__PURE__ */ React.createElement(BaseIcon, {
|
134
|
+
h: "100%",
|
135
|
+
w: "100%"
|
136
|
+
}));
|
137
|
+
}
|
138
|
+
AlertIcon.displayName = "AlertIcon";
|
139
|
+
|
140
|
+
// src/alert-title.tsx
|
141
|
+
import { chakra as chakra4, forwardRef as forwardRef3 } from "@chakra-ui/system";
|
142
|
+
var AlertTitle = forwardRef3(function AlertTitle2(props, ref) {
|
143
|
+
const styles = useAlertStyles();
|
144
|
+
return /* @__PURE__ */ React.createElement(chakra4.div, {
|
145
|
+
ref,
|
146
|
+
...props,
|
147
|
+
className: cx("chakra-alert__title", props.className),
|
148
|
+
__css: styles.title
|
149
|
+
});
|
150
|
+
});
|
151
|
+
AlertTitle.displayName = "AlertTitle";
|
152
|
+
export {
|
153
|
+
Alert,
|
154
|
+
AlertDescription,
|
155
|
+
AlertIcon,
|
156
|
+
AlertTitle,
|
157
|
+
useAlertStyles
|
158
|
+
};
|