UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

3 lines 1.22 kB
'use client'; import{a as $}from"./chunk-FOFU25YN.js";import{a as r,c as i,d as T}from"./chunk-CIUXHROH.js";import{c as d}from"./chunk-262C6VLB.js";import{b as o}from"./chunk-CMFNILWJ.js";import{a as t,b as s}from"./chunk-XYM7TA65.js";import*as w from"@radix-ui/react-toolbar";import{forwardRef as c}from"react";import R from"lodash/fp/omit";import{jsx as a}from"react/jsx-runtime";var b=c(({children:u,disabled:l=!1,elevation:m=T,fullWidth:p=!1,orientation:e=i,...f},x)=>a(d,{className:t(`${o}-${r}__wrapper`,`${o}-${r}__wrapper--${e}`,"h-5 max-h-5 min-h-5 px-half py-0",p?`${o}-${r}__wrapper--full-width w-full`:"w-fit",l?`${o}-${r}__wrapper--disabled`:""),elevation:m,children:a(w.Root,{ref:x,className:s(`${o}-${r}`,`${o}-${r}--${e}`,"flex items-center gap-1 p-1",m==="3"?"rounded-full":"rounded-sm",e==="horizontal"?"flex-row":"flex-col",p?`${o}-${r}--full-width w-full`:"w-fit",l?`${o}-${r}--disabled cursor-not-allowed bg-disabled-light text-disabled`:"cursor-default",f.className),...e===void 0?{}:{orientation:e},...R(["className"],f),children:a($.Provider,{value:{disabled:l,orientation:e},children:u})})}));b.displayName="Toolbar";var A=b;export{b as a,A as b}; //# sourceMappingURL=chunk-NIWQ2HAN.js.map