{"version":3,"sources":["../src/components/Rating/RatingItem/RatingItem.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { RatingItemProps } from './RatingItem.types';\nimport { useRatingItem } from './useRatingItem';\nimport { renderRatingItem } from './renderRatingItem';\n\n/**\n * A RatingItem component representing a single star/icon within a Rating.\n */\nexport const RatingItem = React.forwardRef<HTMLSpanElement, RatingItemProps>((props, ref) => {\n  const state = useRatingItem(props, ref);\n\n  Object.assign(state.root, {\n    'data-appearance': state.iconFillWidth === 1 ? 'filled' : state.iconFillWidth > 0 ? 'filled-half' : 'outline',\n  });\n\n  return renderRatingItem(state);\n});\n\nRatingItem.displayName = 'RatingItem';\n"],"names":["RatingItem","React","forwardRef","props","ref","state","useRatingItem","Object","assign","root","iconFillWidth","renderRatingItem","displayName"],"mappings":"AAAA;;;;;+BAUaA;;;eAAAA;;;;iEARU;+BAEO;kCACG;AAK1B,MAAMA,2BAAaC,OAAMC,UAAU,CAAmC,CAACC,OAAOC;IACnF,MAAMC,QAAQC,IAAAA,4BAAa,EAACH,OAAOC;IAEnCG,OAAOC,MAAM,CAACH,MAAMI,IAAI,EAAE;QACxB,mBAAmBJ,MAAMK,aAAa,KAAK,IAAI,WAAWL,MAAMK,aAAa,GAAG,IAAI,gBAAgB;IACtG;IAEA,OAAOC,IAAAA,kCAAgB,EAACN;AAC1B;AAEAL,WAAWY,WAAW,GAAG"}