{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAsBM,MAAM,0DAAQ,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,MAC7C,KAAyB,EACzB,GAA2B;IAE3B,IAAI,WAAC,UAAU,eAAe,GAAG,YAAW,GAAG;IAC/C,MAAM,cAAC,UAAU,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;IAE1C,qBACE,gCAAC,CAAA,GAAA,yCAAc;QACZ,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACV,YAAY;QACZ,cAAc,CAAA,GAAA,yCAAS,EAAE,CAAA,GAAA,sDAAK,GAAG;YAC/B,eAAe,YAAY;YAC3B,cAAc,YAAY;YAC1B,eAAe,YAAY;QAC7B;;AAGN","sources":["packages/@adobe/react-spectrum/src/meter/Meter.tsx"],"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 {classNames} from '../utils/classNames';\nimport {DOMRef} from '@react-types/shared';\nimport {ProgressBarBase, SpectrumProgressBarBaseProps} from '../progress/ProgressBarBase';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/barloader/vars.css';\nimport {useMeter} from 'react-aria/useMeter';\n\nexport interface SpectrumMeterProps extends SpectrumProgressBarBaseProps {\n  /**\n   * The [visual style](https://spectrum.adobe.com/page/meter/#Options) of the Meter.\n   *\n   * @default 'informative'\n   */\n  variant?: 'informative' | 'positive' | 'warning' | 'critical';\n}\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nexport const Meter = React.forwardRef(function Meter(\n  props: SpectrumMeterProps,\n  ref: DOMRef<HTMLDivElement>\n) {\n  let {variant = 'informative', ...otherProps} = props;\n  const {meterProps, labelProps} = useMeter(props);\n\n  return (\n    <ProgressBarBase\n      {...otherProps}\n      ref={ref}\n      barProps={meterProps}\n      labelProps={labelProps}\n      barClassName={classNames(styles, {\n        'is-positive': variant === 'positive',\n        'is-warning': variant === 'warning',\n        'is-critical': variant === 'critical'\n      })}\n    />\n  );\n});\n"],"names":[],"version":3,"file":"Meter.mjs.map"}