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.52 kB
{"version":3,"file":"popover.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/popover/popover.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const popoverStyle = defineComponentSlotStyle({\n base: {\n body: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flex: \"1\",\n flexDirection: \"column\",\n gap: \"{gap}\",\n },\n content: {\n bg: \"bg.float\",\n borderColor: \"border.muted\",\n borderWidth: \"1px\",\n boxShadow: \"sm\",\n display: \"flex\",\n flexDirection: \"column\",\n focusVisibleRing: \"none\",\n gap: \"{gap}\",\n p: \"{padding}\",\n rounded: \"l2\",\n },\n footer: {\n alignItems: \"center\",\n display: \"flex\",\n gap: \"{gap}\",\n justifyContent: \"flex-start\",\n },\n header: {\n alignItems: \"center\",\n display: \"flex\",\n fontWeight: \"semibold\",\n gap: \"{gap}\",\n justifyContent: \"flex-start\",\n },\n positioner: {\n zIndex: \"recoome\",\n },\n },\n\n sizes: {\n xs: {\n content: {\n \"--gap\": \"spaces.1\",\n \"--padding\": \"spaces.2\",\n fontSize: \"xs\",\n },\n },\n sm: {\n content: {\n \"--gap\": \"spaces.2\",\n \"--padding\": \"spaces.3\",\n fontSize: \"sm\",\n },\n },\n md: {\n content: {\n \"--gap\": \"spaces.3\",\n \"--padding\": \"spaces.4\",\n fontSize: \"md\",\n },\n },\n lg: {\n content: {\n \"--gap\": \"spaces.4\",\n \"--padding\": \"spaces.5\",\n fontSize: \"md\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n },\n})\n\nexport type PopoverStyle = typeof popoverStyle\n"],"mappings":";;;AAEA,MAAa,eAAeA,wCAAyB;CACnD,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,MAAM;GACN,eAAe;GACf,KAAK;GACN;EACD,SAAS;GACP,IAAI;GACJ,aAAa;GACb,aAAa;GACb,WAAW;GACX,SAAS;GACT,eAAe;GACf,kBAAkB;GAClB,KAAK;GACL,GAAG;GACH,SAAS;GACV;EACD,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,KAAK;GACL,gBAAgB;GACjB;EACD,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,gBAAgB;GACjB;EACD,YAAY,EACV,QAAQ,WACT;EACF;CAED,OAAO;EACL,IAAI,EACF,SAAS;GACP,SAAS;GACT,aAAa;GACb,UAAU;GACX,EACF;EACD,IAAI,EACF,SAAS;GACP,SAAS;GACT,aAAa;GACb,UAAU;GACX,EACF;EACD,IAAI,EACF,SAAS;GACP,SAAS;GACT,aAAa;GACb,UAAU;GACX,EACF;EACD,IAAI,EACF,SAAS;GACP,SAAS;GACT,aAAa;GACb,UAAU;GACX,EACF;EACF;CAED,cAAc,EACZ,MAAM,MACP;CACF,CAAC"}