UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 2.15 kB
{"version":3,"file":"rating.style.cjs","names":["defineComponentSlotStyle","focusRingStyle"],"sources":["../../../../src/components/rating/rating.style.ts"],"sourcesContent":["import { defineComponentSlotStyle, focusRingStyle } from \"../../core\"\n\nexport const ratingStyle = defineComponentSlotStyle({\n base: {\n group: { position: \"relative\" },\n icon: {\n alignItems: \"center\",\n clipPath: \"{clip-path}\",\n display: \"inline-flex\",\n fill: \"currentColor\",\n justifyContent: \"center\",\n },\n item: {\n \"&:has(input:focus-visible)\": { ...focusRingStyle.outside },\n color: { base: \"{empty-color}\", _filled: \"{filled-color}\" },\n cursor: \"pointer\",\n display: \"block\",\n lineHeight: \"0\",\n rounded: \"l1\",\n _notLast: { inset: 0, position: \"absolute\" },\n _readOnly: { layerStyle: \"readOnly\" },\n _disabled: { layerStyle: \"disabled\" },\n },\n root: {\n \"--empty-color\": \"colors.bg.muted\",\n \"--filled-color\": \"colorScheme.solid\",\n display: \"flex\",\n w: \"max-content\",\n },\n },\n\n sizes: {\n xs: { icon: { fontSize: \"md\" } },\n sm: { icon: { fontSize: \"lg\" } },\n md: { icon: { fontSize: \"xl\" } },\n lg: { icon: { fontSize: \"2xl\" } },\n xl: { icon: { fontSize: \"3xl\" } },\n },\n\n defaultProps: {\n size: \"md\",\n },\n})\n\nexport type RatingStyle = typeof ratingStyle\n"],"mappings":";;;;AAEA,MAAa,cAAcA,wCAAyB;CAClD,MAAM;EACJ,OAAO,EAAE,UAAU,YAAY;EAC/B,MAAM;GACJ,YAAY;GACZ,UAAU;GACV,SAAS;GACT,MAAM;GACN,gBAAgB;GACjB;EACD,MAAM;GACJ,8BAA8B,EAAE,GAAGC,kCAAe,SAAS;GAC3D,OAAO;IAAE,MAAM;IAAiB,SAAS;IAAkB;GAC3D,QAAQ;GACR,SAAS;GACT,YAAY;GACZ,SAAS;GACT,UAAU;IAAE,OAAO;IAAG,UAAU;IAAY;GAC5C,WAAW,EAAE,YAAY,YAAY;GACrC,WAAW,EAAE,YAAY,YAAY;GACtC;EACD,MAAM;GACJ,iBAAiB;GACjB,kBAAkB;GAClB,SAAS;GACT,GAAG;GACJ;EACF;CAED,OAAO;EACL,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE;EAChC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EACjC,IAAI,EAAE,MAAM,EAAE,UAAU,OAAO,EAAE;EAClC;CAED,cAAc,EACZ,MAAM,MACP;CACF,CAAC"}