@real-system/box-primitive
Version:
A basic div with style props that should be used to build other components
2 lines (1 loc) • 907 B
JavaScript
import c,{forwardRef as p}from"react";import{makeTestId as b}from"@real-system/utils-library";import v from"@real-system/styled-library";const d=v("div")({boxSizing:"border-box"});var m=Object.defineProperty,s=Object.defineProperties,O=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,o=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,u=(r,e)=>{for(var t in e||(e={}))i.call(e,t)&&o(r,t,e[t]);if(n)for(var t of n(e))f.call(e,t)&&o(r,t,e[t]);return r},y=(r,e)=>s(r,O(e)),x=(r,e)=>{var t={};for(var a in r)i.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&n)for(var a of n(r))e.indexOf(a)<0&&f.call(r,a)&&(t[a]=r[a]);return t};const g=p(function(r,e){var t=r,{children:a}=t,l=x(t,["children"]);return c.createElement(d,y(u({"data-testid":b("box")},l),{ref:e}),a)});export{g as Box};