UNPKG

@yamada-ui/react

Version:

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

51 lines (49 loc) 1.29 kB
const require_config = require('../../core/system/config.cjs'); const require_focus_ring = require('../../core/css/focus-ring.cjs'); //#region src/components/rating/rating.style.ts const ratingStyle = require_config.defineComponentSlotStyle({ base: { group: { position: "relative" }, icon: { alignItems: "center", clipPath: "{clip-path}", display: "inline-flex", fill: "currentColor", justifyContent: "center" }, item: { "&:has(input:focus-visible)": { ...require_focus_ring.focusRingStyle.outside }, color: { base: "{empty-color}", _filled: "{filled-color}" }, cursor: "pointer", display: "block", lineHeight: "0", rounded: "l1", _notLast: { inset: 0, position: "absolute" }, _readOnly: { layerStyle: "readOnly" }, _disabled: { layerStyle: "disabled" } }, root: { "--empty-color": "colors.bg.muted", "--filled-color": "colorScheme.solid", display: "flex", w: "max-content" } }, sizes: { xs: { icon: { fontSize: "md" } }, sm: { icon: { fontSize: "lg" } }, md: { icon: { fontSize: "xl" } }, lg: { icon: { fontSize: "2xl" } }, xl: { icon: { fontSize: "3xl" } } }, defaultProps: { size: "md" } }); //#endregion exports.ratingStyle = ratingStyle; //# sourceMappingURL=rating.style.cjs.map