@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
3 lines (2 loc) • 2.21 kB
JavaScript
import"./column-components.298cc9f3.js";import"./column-components.d8adac4c.js";import"./column-components.732a45eb.js";import"./column-components.c709c904.js";import e from"@macrostrat/hyper";import{forwardRef as r,createElement as t}from"react";import{expandInnerSize as a,extractPadding as n,extractMargin as o,removeMargin as c,removePadding as s}from"@macrostrat/ui-components";import i from"classnames";function d(e,r){return Object.keys(r).forEach(function(t){"default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),e}function f(e,r,t,a){Object.defineProperty(e,r,{get:t,set:a,enumerable:!0,configurable:!0})}var l=globalThis,p={},m={},u=l.parcelRequirea149;null==u&&((u=function(e){if(e in p)return p[e].exports;if(e in m){var r=m[e];delete m[e];var t={id:e,exports:{}};return p[e]=t,r.call(t.exports,t,t.exports),t.exports}var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,r){m[e]=r},l.parcelRequirea149=u),u.register;var b={};f(b,"SVGNamespaces",()=>w),f(b,"SVG",()=>S),f(b,"ForeignObject",()=>j),f(b,"ColumnSVG",()=>_);var g=u("aVUB5"),$=u("kfx9r"),x=u("42xfs"),h=u("9TRyj");let w={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},S=r((r,t)=>{let{children:i,innerRef:d,...f}=r,{style:l,...p}=a(f),{paddingLeft:m,paddingTop:u}=n(r),b=o(r),g=c(s(p));return e("svg",{ref:t,style:{...b,...l},...g,...w},e("g",{transform:`translate(${m},${u})`},i))}),j=e=>t("foreignObject",e),_=function(r){let{children:t,className:n,innerRef:o,style:c,...s}=r,{pixelHeight:d}=(0,g.useColumn)(),{paddingLeft:f,paddingTop:l,innerHeight:p,innerWidth:m,height:u,width:b,...$}=a({innerHeight:d,...s});return e(S,{className:i(n,"section"),height:u,width:b,innerRef:o,...$,style:c},e("g.backdrop",{transform:`translate(${f},${l})`},t))};d(b,$),d(b,x),d(b,h);export{w as SVGNamespaces,S as SVG,j as ForeignObject,_ as ColumnSVG,$e150464fe9c7cb95$export$19fffca37ef3e106 as LocalStorage,$4a0ea9dcf1a07b76$export$32a0ad71237b9760 as ColumnBox,$4cfd4c889e62287b$export$e60368c40bae9fd4 as ColumnScroller};
//# sourceMappingURL=column-components.511bed71.js.map