const t=t=>({__html:t});function e(t={}){const e=[];return Object.keys(t).map((n=>{e.push(t[n])})),e}function n(t,e="",s=[]){let r=[];for(const[c,i]of Object.entries(t))if(i.$value){const t={variable:`${`--kd-${i.$type}`}${e}-${o(c)}`,categoryTree:s,type:i.$type};r.push(t)}else{const t=JSON.parse(JSON.stringify(s));t.push(c);const p=e+`-${o(c)}`;r=[...r,...n(i,p,t)]}return r}function o(t){return t.toLowerCase().split(" ").join("-")}export{e as createOptionsArray,n as getTokens,t as stringToReactHtml};
//# sourceMappingURL=storybook.js.map
