UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 5.34 kB
{"version":3,"file":"style-props-data.cjs","names":[],"sources":["../../../../src/core/Box/style-props/style-props-data.ts"],"sourcesContent":["import type { StylePropType } from './resolvers';\nimport type { MantineStyleProps } from './style-props.types';\n\nexport interface SystemPropData {\n type: StylePropType;\n property: string | string[];\n}\n\nexport const STYlE_PROPS_DATA: Record<keyof MantineStyleProps, SystemPropData> = {\n m: { type: 'spacing', property: 'margin' },\n mt: { type: 'spacing', property: 'marginTop' },\n mb: { type: 'spacing', property: 'marginBottom' },\n ml: { type: 'spacing', property: 'marginLeft' },\n mr: { type: 'spacing', property: 'marginRight' },\n ms: { type: 'spacing', property: 'marginInlineStart' },\n me: { type: 'spacing', property: 'marginInlineEnd' },\n mis: { type: 'spacing', property: 'marginInlineStart' },\n mie: { type: 'spacing', property: 'marginInlineEnd' },\n mx: { type: 'spacing', property: 'marginInline' },\n my: { type: 'spacing', property: 'marginBlock' },\n\n p: { type: 'spacing', property: 'padding' },\n pt: { type: 'spacing', property: 'paddingTop' },\n pb: { type: 'spacing', property: 'paddingBottom' },\n pl: { type: 'spacing', property: 'paddingLeft' },\n pr: { type: 'spacing', property: 'paddingRight' },\n ps: { type: 'spacing', property: 'paddingInlineStart' },\n pe: { type: 'spacing', property: 'paddingInlineEnd' },\n pis: { type: 'spacing', property: 'paddingInlineStart' },\n pie: { type: 'spacing', property: 'paddingInlineEnd' },\n px: { type: 'spacing', property: 'paddingInline' },\n py: { type: 'spacing', property: 'paddingBlock' },\n\n bd: { type: 'border', property: 'border' },\n bdrs: { type: 'radius', property: 'borderRadius' },\n bg: { type: 'color', property: 'background' },\n c: { type: 'textColor', property: 'color' },\n opacity: { type: 'identity', property: 'opacity' },\n\n ff: { type: 'fontFamily', property: 'fontFamily' },\n fz: { type: 'fontSize', property: 'fontSize' },\n fw: { type: 'identity', property: 'fontWeight' },\n lts: { type: 'size', property: 'letterSpacing' },\n ta: { type: 'identity', property: 'textAlign' },\n lh: { type: 'lineHeight', property: 'lineHeight' },\n fs: { type: 'identity', property: 'fontStyle' },\n tt: { type: 'identity', property: 'textTransform' },\n td: { type: 'identity', property: 'textDecoration' },\n\n w: { type: 'spacing', property: 'width' },\n miw: { type: 'spacing', property: 'minWidth' },\n maw: { type: 'spacing', property: 'maxWidth' },\n h: { type: 'spacing', property: 'height' },\n mih: { type: 'spacing', property: 'minHeight' },\n mah: { type: 'spacing', property: 'maxHeight' },\n\n bgsz: { type: 'size', property: 'backgroundSize' },\n bgp: { type: 'identity', property: 'backgroundPosition' },\n bgr: { type: 'identity', property: 'backgroundRepeat' },\n bga: { type: 'identity', property: 'backgroundAttachment' },\n\n pos: { type: 'identity', property: 'position' },\n top: { type: 'size', property: 'top' },\n left: { type: 'size', property: 'left' },\n bottom: { type: 'size', property: 'bottom' },\n right: { type: 'size', property: 'right' },\n inset: { type: 'size', property: 'inset' },\n\n display: { type: 'identity', property: 'display' },\n flex: { type: 'identity', property: 'flex' },\n};\n"],"mappings":";;AAQA,MAAa,mBAAoE;CAC/E,GAAG;EAAE,MAAM;EAAW,UAAU;EAAU;CAC1C,IAAI;EAAE,MAAM;EAAW,UAAU;EAAa;CAC9C,IAAI;EAAE,MAAM;EAAW,UAAU;EAAgB;CACjD,IAAI;EAAE,MAAM;EAAW,UAAU;EAAc;CAC/C,IAAI;EAAE,MAAM;EAAW,UAAU;EAAe;CAChD,IAAI;EAAE,MAAM;EAAW,UAAU;EAAqB;CACtD,IAAI;EAAE,MAAM;EAAW,UAAU;EAAmB;CACpD,KAAK;EAAE,MAAM;EAAW,UAAU;EAAqB;CACvD,KAAK;EAAE,MAAM;EAAW,UAAU;EAAmB;CACrD,IAAI;EAAE,MAAM;EAAW,UAAU;EAAgB;CACjD,IAAI;EAAE,MAAM;EAAW,UAAU;EAAe;CAEhD,GAAG;EAAE,MAAM;EAAW,UAAU;EAAW;CAC3C,IAAI;EAAE,MAAM;EAAW,UAAU;EAAc;CAC/C,IAAI;EA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