UNPKG

@yamada-ui/react

Version:

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

1 lines 5.13 kB
{"version":3,"file":"pagination.style.cjs","names":["defineComponentSlotStyle","iconButtonStyle"],"sources":["../../../../src/components/pagination/pagination.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { iconButtonStyle } from \"../button\"\n\nexport const paginationStyle = defineComponentSlotStyle({\n base: {\n item: {\n fontWeight: \"normal\",\n _current: {\n cursor: \"default\",\n pointerEvents: \"none\",\n },\n },\n root: {\n \"& > [data-ellipsis]\": {\n pointerEvents: \"none\",\n },\n },\n text: {\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"center\",\n },\n },\n\n variants: {\n outline: {\n item: {\n ...iconButtonStyle.variants?.ghost,\n _current: {\n ...iconButtonStyle.variants?.outline,\n },\n },\n },\n solid: {\n item: {\n ...iconButtonStyle.variants?.ghost,\n _current: {\n ...iconButtonStyle.variants?.solid,\n },\n },\n },\n subtle: {\n item: {\n ...iconButtonStyle.variants?.ghost,\n _current: {\n ...iconButtonStyle.variants?.subtle,\n },\n },\n },\n surface: {\n item: {\n ...iconButtonStyle.variants?.ghost,\n _current: {\n ...iconButtonStyle.variants?.surface,\n },\n },\n },\n },\n\n sizes: {\n xs: {\n item: {\n ...iconButtonStyle.sizes?.xs,\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.xs.fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.sm\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n sm: {\n item: {\n ...iconButtonStyle.sizes?.sm,\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.sm.fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.md\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n md: {\n item: {\n ...iconButtonStyle.sizes?.md,\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.md.fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.lg\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n lg: {\n item: {\n ...iconButtonStyle.sizes?.lg,\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.lg.fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.xl\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n xl: {\n item: {\n ...iconButtonStyle.sizes?.xl,\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.xl.fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.2xl\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n \"2xl\": {\n item: {\n ...iconButtonStyle.sizes?.[\"2xl\"],\n fontSize: \"{font-size}\",\n _icon: { fontSize: iconButtonStyle.sizes?.[\"2xl\"].fontSize },\n },\n root: {\n \"--font-size\": \"fontSizes.2xl\",\n },\n text: {\n fontSize: \"{font-size}\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"solid\",\n },\n})\n\nexport type PaginationStyle = typeof paginationStyle\n"],"mappings":";;;;AAGA,MAAa,kBAAkBA,wCAAyB;CACtD,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,UAAU;IACR,QAAQ;IACR,eAAe;IAChB;GACF;EACD,MAAM,EACJ,uBAAuB,EACrB,eAAe,QAChB,EACF;EACD,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,gBAAgB;GACjB;EACF;CAED,UAAU;EACR,SAAS,EACP,MAAM;GACJ,GAAGC,0CAAgB,UAAU;GAC7B,UAAU,EACR,GAAGA,0CAAgB,UAAU,SAC9B;GACF,EACF;EACD,OAAO,EACL,MAAM;GACJ,GAAGA,0CAAgB,UAAU;GAC7B,UAAU,EACR,GAAGA,0CAAgB,UAAU,OAC9B;GACF,EACF;EACD,QAAQ,EACN,MAAM;GACJ,GAAGA,0CAAgB,UAAU;GAC7B,UAAU,EACR,GAAGA,0CAAgB,UAAU,QAC9B;GAC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