import{_ as __rest,a as __assign}from"./tslib.es6-bjGg6Bxl.js";import React__default from"react";var gapSize=function(a){return"0"===a?"jn-gap-0":"px"===a?"jn-gap-px":"0.5"===a?"jn-gap-0.5":"1"===a?"jn-gap-1":"1.5"===a?"jn-gap-1.5":"2"===a?"jn-gap-2":"2.5"===a?"jn-gap-2.5":"3"===a?"jn-gap-3":"3.5"===a?"jn-gap-3.5":"4"===a?"jn-gap-4":"5"===a?"jn-gap-5":"6"===a?"jn-gap-6":"7"===a?"jn-gap-7":"8"===a?"jn-gap-8":"9"===a?"jn-gap-9":"10"===a?"jn-gap-10":"11"===a?"jn-gap-11":"12"===a?"jn-gap-12":"14"===a?"jn-gap-14":"16"===a?"jn-gap-16":"20"===a?"jn-gap-20":"24"===a?"jn-gap-24":"28"===a?"jn-gap-28":"32"===a?"jn-gap-32":"36"===a?"jn-gap-36":"40"===a?"jn-gap-40":"44"===a?"jn-gap-44":"48"===a?"jn-gap-48":"52"===a?"jn-gap-52":"56"===a?"jn-gap-56":"60"===a?"jn-gap-60":"64"===a?"jn-gap-64":"72"===a?"jn-gap-72":"80"===a?"jn-gap-80":"96"===a?"jn-gap-96":"jn-gap-0"},baseStack=function(a,b,c){return"\n      ".concat("vertical"===a?"jn-flex jn-flex-col":"jn-flex jn-flex-row","\n      ").concat(c&&"jn-flex-wrap","\n      ").concat(gapSize(b),"\n    ")},alignItems=function(a){return"start"===a?"jn-items-start":"end"===a?"jn-items-end":"center"===a?"jn-items-center":"baseline"===a?"jn-items-baseline":"stretch"===a?"jn-items-stretch":""},justifyItems=function(a){return"start"===a?"jn-justify-start":"end"===a?"jn-justify-end":"center"===a?"jn-justify-center":"between"===a?"jn-justify-between":"around"===a?"jn-justify-around":"evenly"===a?"jn-justify-evenly":""},Stack=function(a){var b=a.direction,c=void 0===b?"horizontal":b,d=a.gap,e=void 0===d?"0":d,f=a.alignment,g=void 0===f?"stretch":f,h=a.distribution,i=void 0===h?"start":h,j=a.wrap,k=a.className,l=void 0===k?"":k,m=a.children,n=void 0===m?null:m,o=__rest(a,["direction","gap","alignment","distribution","wrap","className","children"]);return React__default.createElement("div",__assign({className:"juno-stack ".concat(baseStack(c,e,void 0!==j&&j)," ").concat(alignItems(g)," ").concat(justifyItems(i)," ").concat(l||"")},o),n)};export{Stack as S};