{"mappings":";;AAAA;;;;;;;;;;CAUC;AAuBM,SAAS,0CAAS,KAAqB;IAC5C,IAAI,oBAAC,gBAAgB,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAa,EAAE;IAEpD,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,MAAM;QACR;oBACA;IACF;AACF","sources":["packages/react-aria/src/meter/useMeter.ts"],"sourcesContent":["/*\n * Copyright 2020 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 {\n  AriaProgressBarBaseProps,\n  ProgressBarBaseProps,\n  useProgressBar\n} from '../progress/useProgressBar';\nimport {DOMAttributes} from '@react-types/shared';\n\nexport type MeterProps = ProgressBarBaseProps;\nexport interface AriaMeterProps extends AriaProgressBarBaseProps {}\n\nexport interface MeterAria {\n  /** Props for the meter container element. */\n  meterProps: DOMAttributes;\n  /** Props for the meter's visual label (if any). */\n  labelProps: DOMAttributes;\n}\n\n/**\n * Provides the accessibility implementation for a meter component.\n * Meters represent a quantity within a known range, or a fractional value.\n */\nexport function useMeter(props: AriaMeterProps): MeterAria {\n  let {progressBarProps, labelProps} = useProgressBar(props);\n\n  return {\n    meterProps: {\n      ...progressBarProps,\n      role: 'meter'\n    },\n    labelProps\n  };\n}\n"],"names":[],"version":3,"file":"useMeter.mjs.map"}