@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
158 lines (155 loc) • 2.1 kB
JavaScript
import { filterProps } from '@mantine/styles';
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
function extractSystemStyles(others) {
const _a = others, {
m,
mx,
my,
mt,
mb,
ml,
mr,
p,
px,
py,
pt,
pb,
pl,
pr,
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
} = _a, rest = __objRest(_a, [
"m",
"mx",
"my",
"mt",
"mb",
"ml",
"mr",
"p",
"px",
"py",
"pt",
"pb",
"pl",
"pr",
"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"
]);
const systemStyles = filterProps({
m,
mx,
my,
mt,
mb,
ml,
mr,
p,
px,
py,
pt,
pb,
pl,
pr,
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
});
return { systemStyles, rest };
}
export { extractSystemStyles };
//# sourceMappingURL=extract-system-styles.js.map