UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

3 lines (2 loc) 1.75 kB
"use strict";const o=require("react/jsx-runtime"),i=require("./index-CMEUY8i_.cjs.js"),u=require("./index-x_Mxo00P.cjs.js"),n=require("./utils-C4d7Ql9-.cjs.js"),l=require("./separator-CGvV-BlI.cjs.js"),a=u.cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function d({className:r,orientation:t,...e}){return o.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:n.cn(a({orientation:t}),r),...e})}function c({className:r,asChild:t=!1,...e}){const s=t?i.Slot:"div";return o.jsx(s,{className:n.cn("flex items-center gap-2 rounded-md border border-neutral-200 bg-neutral-100 px-4 text-sm font-medium shadow-xs dark:border-neutral-800 dark:bg-neutral-800 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",r),...e})}function p({className:r,orientation:t="vertical",...e}){return o.jsx(l.Separator,{"data-slot":"button-group-separator",orientation:t,className:n.cn("relative !m-0 self-stretch bg-neutral-200 data-[orientation=vertical]:h-auto dark:bg-neutral-800",r),...e})}exports.ButtonGroup=d;exports.ButtonGroupSeparator=p;exports.ButtonGroupText=c;exports.buttonGroupVariants=a; //# sourceMappingURL=button-group-CaFYso6b.cjs.js.map