{"version":3,"file":"weatherIcon.types.mjs","names":[],"sources":["../../../../package/common/weatherIcon/weatherIcon.types.ts"],"sourcesContent":["import type { CSSProperties, SVGAttributes } from 'react';\nimport type { DataProps } from '../types/slots.types';\n\nexport enum WeatherType {\n  Sunny = 'sunny',\n  ClearNight = 'clearNight',\n  Cloudy = 'cloudy',\n  PartlyCloudy = 'partlyCloudy',\n  PartlyCloudyNight = 'partlyCloudyNight',\n  RainyLight = 'rainyLight',\n  Rainy = 'rainy',\n  RainyHeavy = 'rainyHeavy',\n  Snowy = 'snowy',\n  Hail = 'hail',\n  Foggy = 'foggy',\n  Thunderstorm = 'thunderstorm',\n}\n\n/** The accessible name of each weather, read out by screen readers. */\nexport type WeatherIconLabels = Partial<Record<`${WeatherType}`, string>>;\n\n/**\n * The root is an `<svg>`, so the native attributes come from `SVGAttributes` rather than\n * `HtmlProps`. Its `type` is the attribute of `<script>` and `<style>`, not of an `<svg>`.\n */\nexport interface WeatherIconProps extends DataProps, Omit<SVGAttributes<SVGSVGElement>, 'type'> {\n  /**\n   * The weather to draw. Takes the enum or its string value, so an API's own enum with the same\n   * values passes as it is.\n   */\n  type: WeatherType | `${WeatherType}`;\n  /** Width and height, any CSS size. Default `64`. */\n  size?: number | string;\n  /**\n   * Default `true`. `false` draws a still frame, for small or repeated icons where the motion is\n   * too small to see but costs the same. Always still under `prefers-reduced-motion`.\n   */\n  animated?: boolean;\n  /** Text this component renders of its own. */\n  labels?: WeatherIconLabels;\n  className?: string;\n  style?: CSSProperties;\n}\n\n/** What a falling part needs to know to pick its still frame. */\nexport interface WeatherPartProps {\n  animated: boolean;\n}\n"],"mappings":"aAGA,IAAY,EAAL,SAAA,EAAA,OACL,GAAA,MAAA,QACA,EAAA,WAAA,aACA,EAAA,OAAA,SACA,EAAA,aAAA,eACA,EAAA,kBAAA,oBACA,EAAA,WAAA,aACA,EAAA,MAAA,QACA,EAAA,WAAA,aACA,EAAA,MAAA,QACA,EAAA,KAAA,OACA,EAAA,MAAA,QACA,EAAA,aAAA,gBACF,EAAA,CAAA,CAAA"}