UNPKG

@snowball-tech/fractal

Version:

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

3 lines 1.24 kB
'use client'; import{a as $}from"./chunk-4T67RILQ.js";import{a as o,c as i,d as T}from"./chunk-FJXP7YHG.js";import{c as d}from"./chunk-YHZZRBQ2.js";import{b as r}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 E from"lodash/fp/omit";import{jsx as p}from"react/jsx-runtime";var b=c(({children:u,disabled:a=!1,elevation:e=T,fullWidth:m=!1,orientation:l=i,...f},x)=>p(d,{className:t(`${r}-${o}__wrapper`,`${r}-${o}__wrapper--${l}`,"h-5 max-h-5 min-h-5 px-half py-0",m?`${r}-${o}__wrapper--full-width w-full`:"w-fit",a?`${r}-${o}__wrapper--disabled`:""),elevation:e,children:p(w.Root,{ref:x,className:s(`${r}-${o}`,`${r}-${o}--${l}`,"flex items-center gap-1 p-1",e==="3"||e==="higher"||e===3?"rounded-full":"rounded-sm",l==="horizontal"?"flex-row":"flex-col",m?`${r}-${o}--full-width w-full`:"w-fit",a?`${r}-${o}--disabled cursor-not-allowed bg-disabled-light text-disabled`:"cursor-default",f.className),...l===void 0?{}:{orientation:l},...E(["className"],f),children:p($.Provider,{value:{disabled:a,orientation:l},children:u})})}));b.displayName="Toolbar";var y=b;export{b as a,y as b}; //# sourceMappingURL=chunk-FTOHDJUZ.js.map