UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

126 lines (123 loc) 1.38 kB
'use client'; import { filterProps } from '../../../utils/filter-props/filter-props.mjs'; import 'react'; import 'react/jsx-runtime'; import '@mantine/hooks'; function extractStyleProps(others) { const { m, mx, my, mt, mb, ml, mr, me, ms, p, px, py, pt, pb, pl, pr, pe, ps, bd, bg, c, opacity, ff, fz, fw, lts, ta, lh, fs, tt, td, w, miw, maw, h, mih, mah, bgsz, bgp, bgr, bga, pos, top, left, bottom, right, inset, display, flex, hiddenFrom, visibleFrom, lightHidden, darkHidden, sx, ...rest } = others; const styleProps = filterProps({ m, mx, my, mt, mb, ml, mr, me, ms, p, px, py, pt, pb, pl, pr, pe, ps, bd, bg, c, opacity, ff, fz, fw, lts, ta, lh, fs, tt, td, w, miw, maw, h, mih, mah, bgsz, bgp, bgr, bga, pos, top, left, bottom, right, inset, display, flex, hiddenFrom, visibleFrom, lightHidden, darkHidden, sx }); return { styleProps, rest }; } export { extractStyleProps }; //# sourceMappingURL=extract-style-props.mjs.map