@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 2.54 kB
Source Map (JSON)
{"version":3,"file":"color-swatch.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/color-swatch/color-swatch.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const colorSwatchStyle = defineComponentSlotStyle({\n base: {\n overlay: {\n boxSize: \"full\",\n inset: 0,\n position: \"absolute\",\n },\n root: {\n \"& > *\": {\n alignItems: \"center\",\n boxSize: \"full\",\n display: \"flex\",\n inset: 0,\n justifyContent: \"center\",\n overflow: \"hidden\",\n position: \"absolute\",\n },\n \"--checkers-bg\": [\"colors.whiteAlpha.500\", \"colors.blackAlpha.500\"],\n \"--checkers-fg\": [\"colors.blackAlpha.300\", \"colors.whiteAlpha.300\"],\n aspectRatio: \"1\",\n overflow: \"hidden\",\n position: \"relative\",\n w: \"{width}\",\n },\n },\n\n sizes: {\n \"2xs\": {\n root: { \"--width\": \"sizes.6\" },\n },\n xs: {\n root: { \"--width\": \"sizes.8\" },\n },\n sm: {\n root: { \"--width\": \"sizes.9\" },\n },\n md: {\n root: { \"--width\": \"sizes.10\" },\n },\n lg: {\n root: { \"--width\": \"sizes.11\" },\n },\n xl: {\n root: { \"--width\": \"sizes.12\" },\n },\n \"2xl\": {\n root: { \"--width\": \"sizes.14\" },\n },\n },\n\n variants: {\n circle: {\n root: { rounded: \"full\" },\n },\n plain: {\n root: { rounded: \"l2\" },\n },\n square: {\n root: { rounded: \"0\" },\n },\n },\n\n defaultProps: {\n size: \"xs\",\n variant: \"plain\",\n },\n})\n\nexport type ColorSwatchStyle = typeof colorSwatchStyle\n"],"mappings":";;;AAEA,MAAa,mBAAmBA,wCAAyB;CACvD,MAAM;EACJ,SAAS;GACP,SAAS;GACT,OAAO;GACP,UAAU;GACX;EACD,MAAM;GACJ,SAAS;IACP,YAAY;IACZ,SAAS;IACT,SAAS;IACT,OAAO;IACP,gBAAgB;IAChB,UAAU;IACV,UAAU;IACX;GACD,iBAAiB,CAAC,yBAAyB,wBAAwB;GACnE,iBAAiB,CAAC,yBAAyB,wBAAwB;GACnE,aAAa;GACb,UAAU;GACV,UAAU;GACV,GAAG;GACJ;EACF;CAED,OAAO;EACL,OAAO,EACL,MAAM,EAAE,WAAW,WAAW,EAC/B;EACD,IAAI,EACF,MAAM,EAAE,WAAW,WAAW,EAC/B;EACD,IAAI,EACF,MAAM,EAAE,WAAW,WAAW,EAC/B;EACD,IAAI,EACF,MAAM,EAAE,WAAW,YAAY,EAChC;EACD,IAAI,EACF,MAAM,EAAE,WAAW,YAAY,EAChC;EACD,IAAI,EACF,MAAM,EAAE,WAAW,YAAY,EAChC;EACD,OAAO,EACL,MAAM,EAAE,WAAW,YAAY,EAChC;EACF;CAED,UAAU;EACR,QAAQ,EACN,MAAM,EAAE,SAAS,QAAQ,EAC1B;EACD,OAAO,EACL,MAAM,EAAE,SAAS,MAAM,EACxB;EACD,QAAQ,EACN,MAAM,EAAE,SAAS,KAAK,EACvB;EACF;CAED,cAAc;EACZ,MAAM;EACN,SAAS;EACV;CACF,CAAC"}