{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAgBM,MAAM,0DAA4B,CAAA,GAAA,oBAAY,EAAyD;IAC5G,YAAY;AACd;AAMO,MAAM,0DAAqB,CAAA,GAAA,iBAAS,EAAE,SAAS,mBAAmB,KAA8B,EAAE,GAAiC;IACxI,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAc,EAAE,OAAO,KAAK;IAC3C,IAAI,cAAC,UAAU,EAAE,GAAG,YAAW,GAAG;IAClC,qBACE,gCAAC,CAAA,GAAA,yCAAY;QACV,GAAG,UAAU;QACd,KAAK;QACL,WAAW,MAAM,SAAS,IAAI;QAC9B,MAAK;QACL,WAAW;;AAEjB","sources":["packages/react-aria-components/src/SelectionIndicator.tsx"],"sourcesContent":["/*\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ClassNameOrFunction, ContextValue, useContextProps} from './utils';\nimport React, {createContext, ForwardedRef, forwardRef} from 'react';\nimport {SharedElement, SharedElementPropsBase, SharedElementRenderProps} from './SharedElementTransition';\n\nexport interface SelectionIndicatorProps extends SharedElementPropsBase {\n  /**\n   * The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the element. A function may be provided to compute the class based on component state.\n   * @default 'react-aria-SelectionIndicator'\n   */\n  className?: ClassNameOrFunction<SharedElementRenderProps>,\n  /** Whether the SelectionIndicator is visible. This is usually set automatically by the parent component. */\n  isSelected?: boolean\n}\n\nexport const SelectionIndicatorContext = createContext<ContextValue<SelectionIndicatorProps, HTMLDivElement>>({\n  isSelected: false\n});\n\n\n/**\n * An animated indicator of selection state within a group of items.\n */\nexport const SelectionIndicator = forwardRef(function SelectionIndicator(props: SelectionIndicatorProps, ref: ForwardedRef<HTMLDivElement>) {\n  [props, ref] = useContextProps(props, ref, SelectionIndicatorContext);\n  let {isSelected, ...otherProps} = props;\n  return (\n    <SharedElement\n      {...otherProps}\n      ref={ref}\n      className={props.className || 'react-aria-SelectionIndicator'}\n      name=\"SelectionIndicator\"\n      isVisible={isSelected} />\n  );\n});\n"],"names":[],"version":3,"file":"SelectionIndicator.mjs.map"}