UNPKG

react-aria-components

Version:

A library of styleable components built using React Aria

46 lines (37 loc) 2.04 kB
var $c5ccf687772c0422$exports = require("./utils.main.js"); var $2d10bc562fea46b3$exports = require("./SharedElementTransition.main.js"); var $lAR0I$react = require("react"); function $parcel$interopDefault(a) { return a && a.__esModule ? a.default : a; } function $parcel$export(e, n, v, s) { Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); } $parcel$export(module.exports, "SelectionIndicatorContext", () => $54e872c96e6d295b$export$c9549807523555e0); $parcel$export(module.exports, "SelectionIndicator", () => $54e872c96e6d295b$export$17f80983afe4e444); /* * Copyright 2025 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ const $54e872c96e6d295b$export$c9549807523555e0 = /*#__PURE__*/ (0, $lAR0I$react.createContext)({ isSelected: false }); const $54e872c96e6d295b$export$17f80983afe4e444 = /*#__PURE__*/ (0, $lAR0I$react.forwardRef)(function SelectionIndicator(props, ref) { [props, ref] = (0, $c5ccf687772c0422$exports.useContextProps)(props, ref, $54e872c96e6d295b$export$c9549807523555e0); let { isSelected: isSelected, ...otherProps } = props; return /*#__PURE__*/ (0, ($parcel$interopDefault($lAR0I$react))).createElement((0, $2d10bc562fea46b3$exports.SharedElement), { ...otherProps, ref: ref, className: props.className || 'react-aria-SelectionIndicator', name: "SelectionIndicator", isVisible: isSelected }); }); //# sourceMappingURL=SelectionIndicator.main.js.map