@berdsk/ui 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
.max-w-7xl { max-width: 80rem; }
|
|
39
39
|
.-translate-y-full { transform: translateY(-100%); }
|
|
40
40
|
.translate-y-full { transform: translateY(100%); }
|
|
41
|
+
.-top-full { top: -100%; }
|
|
42
|
+
.-bottom-full { bottom: -100%; }
|
|
41
43
|
.aspect-square { aspect-ratio: 1 / 1; }
|
|
42
44
|
.cursor-pointer { cursor: pointer; }
|
|
43
45
|
.cursor-not-allowed { cursor: not-allowed; }
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
* {
|
|
95
97
|
font-family: var(--berdsk-font-family);
|
|
96
98
|
}
|
|
97
|
-
`},[t]),(0,We.jsx)(Ue.Provider,{value:{theme:t},children:r})},Wr=()=>O.useContext(Ue);var b=require("react/jsx-runtime"),qe=({variant:e,color:r="currentColor",className:t,height:o=100,position:s})=>{let a={height:o},n=T("absolute left-0 w-full z-50 pointer-events-none",s==="top"?"top-0":"bottom-0",t),m={wavy:"bottom","wavy-simple":"top",arched:"bottom"},c=s,g=m[e]!==c?{color:r,transform:"scaleY(-1)",transformOrigin:"center"}:{color:r};return(0,b.jsxs)("div",{className:n,style:a,"aria-hidden":!0,children:[e==="wavy"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsxs)("g",{fill:"currentColor",children:[(0,b.jsx)("path",{d:"M1280 3.4C1050.59 18 1019.4 84.89 734.42 84.89c-320 0-320-84.3-640-84.3C59.4.59 28.2 1.6 0 3.4V140h1280z",fillOpacity:".3"}),(0,b.jsx)("path",{d:"M0 24.31c43.46-5.69 94.56-9.25 158.42-9.25 320 0 320 89.24 640 89.24 256.13 0 307.28-57.16 481.58-80V140H0z",fillOpacity:".5"}),(0,b.jsx)("path",{d:"M1280 51.76c-201 12.49-242.43 53.4-513.58 53.4-320 0-320-57-640-57-48.85.01-90.21 1.35-126.42 3.6V140h1280z"})]})}),e==="wavy-simple"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsx)("g",{fill:"currentColor",children:(0,b.jsx)("path",{d:"M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z"})})}),e==="arched"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsxs)("g",{fill:"currentColor",children:[(0,b.jsx)("path",{d:"M725.29 101.2C325.22 122.48 0 0 0 0v140h1280V0s-154.64 79.92-554.71 101.2z",fillOpacity:".3"}),(0,b.jsx)("path",{d:"M556.45 119.74C953.41 140 1280 14 1280 14v126H0V0s159.5 99.48 556.45 119.74z",fillOpacity:".5"}),(0,b.jsx)("path",{d:"M640 140c353.46 0 640-140 640-139v140H0V0s286.54 140 640 140z"})]})})]})},qr=({children:e,as:r="section",fullWidth:t=!1,screenHeight:o=!1,flex:s=!1,centerX:a=!1,centerY:n=!1,className:m="",containerClassName:c="",divisorTop:u,divisorBottom:g,...w})=>{let y=!!o,S=T("relative w-full",o&&"min-h-screen",s&&"flex-1",o&&"flex flex-col",(a||n)&&"flex",a&&(t||y)&&"items-center",n&&(t||y)&&"justify-center",a&&t&&!y&&"justify-center",n&&t&&!y&&"items-center",m),z=T("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl w-full",{"flex-1":o,flex:a||n,"justify-center":a,"items-center":n},c);return(0,b.jsxs)(r,{className:S,...w,children:[u&&(0,b.jsx)(qe,{position:"top",variant:u.variant,color:u.color,className:u.className,height:u.height}),t?e:(0,b.jsx)("div",{className:z,children:e}),g&&(0,b.jsx)(qe,{position:"bottom",variant:g.variant,color:g.color,className:g.className,height:g.height})]})};0&&(module.exports={Button,Icon,Section,ThemeProvider,defaultTheme,useTheme});
|
|
99
|
+
`},[t]),(0,We.jsx)(Ue.Provider,{value:{theme:t},children:r})},Wr=()=>O.useContext(Ue);var b=require("react/jsx-runtime"),qe=({variant:e,color:r="currentColor",className:t,height:o=100,position:s})=>{let a={height:o},n=T("absolute left-0 w-full z-50 pointer-events-none",s==="top"?"top-0 -translate-y-full":"bottom-0 translate-y-full",t),m={wavy:"bottom","wavy-simple":"top",arched:"bottom"},c=s==="top"?"bottom":"top",g=m[e]!==c?{color:r,transform:"scaleY(-1)",transformOrigin:"center"}:{color:r};return(0,b.jsxs)("div",{className:n,style:a,"aria-hidden":!0,children:[e==="wavy"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsxs)("g",{fill:"currentColor",children:[(0,b.jsx)("path",{d:"M1280 3.4C1050.59 18 1019.4 84.89 734.42 84.89c-320 0-320-84.3-640-84.3C59.4.59 28.2 1.6 0 3.4V140h1280z",fillOpacity:".3"}),(0,b.jsx)("path",{d:"M0 24.31c43.46-5.69 94.56-9.25 158.42-9.25 320 0 320 89.24 640 89.24 256.13 0 307.28-57.16 481.58-80V140H0z",fillOpacity:".5"}),(0,b.jsx)("path",{d:"M1280 51.76c-201 12.49-242.43 53.4-513.58 53.4-320 0-320-57-640-57-48.85.01-90.21 1.35-126.42 3.6V140h1280z"})]})}),e==="wavy-simple"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsx)("g",{fill:"currentColor",children:(0,b.jsx)("path",{d:"M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z"})})}),e==="arched"&&(0,b.jsx)("svg",{width:"100%",height:"100%",viewBox:"0 0 1280 140",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:g,children:(0,b.jsxs)("g",{fill:"currentColor",children:[(0,b.jsx)("path",{d:"M725.29 101.2C325.22 122.48 0 0 0 0v140h1280V0s-154.64 79.92-554.71 101.2z",fillOpacity:".3"}),(0,b.jsx)("path",{d:"M556.45 119.74C953.41 140 1280 14 1280 14v126H0V0s159.5 99.48 556.45 119.74z",fillOpacity:".5"}),(0,b.jsx)("path",{d:"M640 140c353.46 0 640-140 640-139v140H0V0s286.54 140 640 140z"})]})})]})},qr=({children:e,as:r="section",fullWidth:t=!1,screenHeight:o=!1,flex:s=!1,centerX:a=!1,centerY:n=!1,className:m="",containerClassName:c="",divisorTop:u,divisorBottom:g,...w})=>{let y=!!o,S=T("relative w-full",o&&"min-h-screen",s&&"flex-1",o&&"flex flex-col",(a||n)&&"flex",a&&(t||y)&&"items-center",n&&(t||y)&&"justify-center",a&&t&&!y&&"justify-center",n&&t&&!y&&"items-center",m),z=T("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl w-full",{"flex-1":o,flex:a||n,"justify-center":a,"items-center":n},c);return(0,b.jsxs)(r,{className:S,...w,children:[u&&(0,b.jsx)(qe,{position:"top",variant:u.variant,color:u.color,className:u.className,height:u.height}),t?e:(0,b.jsx)("div",{className:z,children:e}),g&&(0,b.jsx)(qe,{position:"bottom",variant:g.variant,color:g.color,className:g.className,height:g.height})]})};0&&(module.exports={Button,Icon,Section,ThemeProvider,defaultTheme,useTheme});
|
|
98
100
|
/*! Bundled license information:
|
|
99
101
|
|
|
100
102
|
classnames/index.js:
|