@pago-sh/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +195 -0
- package/CHANGELOG.md +47 -0
- package/README.md +22 -0
- package/components.json +17 -0
- package/dist/chunk-2RCGDEGJ.mjs +1 -0
- package/dist/chunk-3GDNSYGJ.mjs +1 -0
- package/dist/chunk-4TCUGB6E.mjs +1 -0
- package/dist/chunk-6XCXQA5L.mjs +1 -0
- package/dist/chunk-BBYR3CIF.mjs +1 -0
- package/dist/chunk-CFBUY7KY.mjs +1 -0
- package/dist/chunk-CHG2VB73.mjs +1 -0
- package/dist/chunk-GCVBVZU7.mjs +1 -0
- package/dist/chunk-HRGUR4R2.mjs +1 -0
- package/dist/chunk-IVU4SSCD.mjs +1 -0
- package/dist/chunk-N6WI5TGM.mjs +1 -0
- package/dist/chunk-OTKGECM3.mjs +1 -0
- package/dist/chunk-SRZFZUN4.mjs +1 -0
- package/dist/chunk-VPECET7P.mjs +1 -0
- package/dist/chunk-WQPSZXQS.mjs +1 -0
- package/dist/chunk-YXNT3UEO.mjs +1 -0
- package/dist/components/atoms/Accordion.d.mts +20 -0
- package/dist/components/atoms/Accordion.d.ts +20 -0
- package/dist/components/atoms/Accordion.js +1 -0
- package/dist/components/atoms/Accordion.mjs +1 -0
- package/dist/components/atoms/Card.d.mts +18 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Card.js +1 -0
- package/dist/components/atoms/Card.mjs +1 -0
- package/dist/components/atoms/Combobox.d.mts +24 -0
- package/dist/components/atoms/Combobox.d.ts +24 -0
- package/dist/components/atoms/Combobox.js +1 -0
- package/dist/components/atoms/Combobox.mjs +1 -0
- package/dist/components/atoms/CopyToClipboardInput.d.mts +12 -0
- package/dist/components/atoms/CopyToClipboardInput.d.ts +12 -0
- package/dist/components/atoms/CopyToClipboardInput.js +1 -0
- package/dist/components/atoms/CopyToClipboardInput.mjs +1 -0
- package/dist/components/atoms/CountryPicker.d.mts +16 -0
- package/dist/components/atoms/CountryPicker.d.ts +16 -0
- package/dist/components/atoms/CountryPicker.js +1 -0
- package/dist/components/atoms/CountryPicker.mjs +1 -0
- package/dist/components/atoms/CountryStatePicker.d.mts +18 -0
- package/dist/components/atoms/CountryStatePicker.d.ts +18 -0
- package/dist/components/atoms/CountryStatePicker.js +1 -0
- package/dist/components/atoms/CountryStatePicker.mjs +1 -0
- package/dist/components/atoms/DateTimePicker.d.mts +10 -0
- package/dist/components/atoms/DateTimePicker.d.ts +10 -0
- package/dist/components/atoms/DateTimePicker.js +1 -0
- package/dist/components/atoms/DateTimePicker.mjs +1 -0
- package/dist/components/atoms/DropdownMenu.d.mts +22 -0
- package/dist/components/atoms/DropdownMenu.d.ts +22 -0
- package/dist/components/atoms/DropdownMenu.js +1 -0
- package/dist/components/atoms/DropdownMenu.mjs +1 -0
- package/dist/components/atoms/FormattedDateTime.d.mts +10 -0
- package/dist/components/atoms/FormattedDateTime.d.ts +10 -0
- package/dist/components/atoms/FormattedDateTime.js +1 -0
- package/dist/components/atoms/FormattedDateTime.mjs +1 -0
- package/dist/components/atoms/FormattedInterval.d.mts +9 -0
- package/dist/components/atoms/FormattedInterval.d.ts +9 -0
- package/dist/components/atoms/FormattedInterval.js +1 -0
- package/dist/components/atoms/FormattedInterval.mjs +1 -0
- package/dist/components/atoms/InputOTP.d.mts +4 -0
- package/dist/components/atoms/InputOTP.d.ts +4 -0
- package/dist/components/atoms/InputOTP.js +1 -0
- package/dist/components/atoms/InputOTP.mjs +1 -0
- package/dist/components/atoms/MoneyInput.d.mts +21 -0
- package/dist/components/atoms/MoneyInput.d.ts +21 -0
- package/dist/components/atoms/MoneyInput.js +1 -0
- package/dist/components/atoms/MoneyInput.mjs +1 -0
- package/dist/components/atoms/Paginator.d.mts +21 -0
- package/dist/components/atoms/Paginator.d.ts +21 -0
- package/dist/components/atoms/Paginator.js +1 -0
- package/dist/components/atoms/Paginator.mjs +1 -0
- package/dist/components/atoms/PagoTimeAgo.d.mts +8 -0
- package/dist/components/atoms/PagoTimeAgo.d.ts +8 -0
- package/dist/components/atoms/PagoTimeAgo.js +1 -0
- package/dist/components/atoms/PagoTimeAgo.mjs +1 -0
- package/dist/components/atoms/PercentageInput.d.mts +19 -0
- package/dist/components/atoms/PercentageInput.d.ts +19 -0
- package/dist/components/atoms/PercentageInput.js +1 -0
- package/dist/components/atoms/PercentageInput.mjs +1 -0
- package/dist/components/atoms/ShadowBox.d.mts +14 -0
- package/dist/components/atoms/ShadowBox.d.ts +14 -0
- package/dist/components/atoms/ShadowBox.js +1 -0
- package/dist/components/atoms/ShadowBox.mjs +1 -0
- package/dist/components/atoms/ShadowBoxOnMd.d.mts +6 -0
- package/dist/components/atoms/ShadowBoxOnMd.d.ts +6 -0
- package/dist/components/atoms/ShadowBoxOnMd.js +1 -0
- package/dist/components/atoms/ShadowBoxOnMd.mjs +1 -0
- package/dist/components/atoms/Sidebar.d.mts +11 -0
- package/dist/components/atoms/Sidebar.d.ts +11 -0
- package/dist/components/atoms/Sidebar.js +1 -0
- package/dist/components/atoms/Sidebar.mjs +1 -0
- package/dist/components/molecules/Banner.d.mts +11 -0
- package/dist/components/molecules/Banner.d.ts +11 -0
- package/dist/components/molecules/Banner.js +1 -0
- package/dist/components/molecules/Banner.mjs +1 -0
- package/dist/components/ui/accordion.d.mts +19 -0
- package/dist/components/ui/accordion.d.ts +19 -0
- package/dist/components/ui/accordion.js +1 -0
- package/dist/components/ui/accordion.mjs +1 -0
- package/dist/components/ui/alert-dialog.d.mts +41 -0
- package/dist/components/ui/alert-dialog.d.ts +41 -0
- package/dist/components/ui/alert-dialog.js +1 -0
- package/dist/components/ui/alert-dialog.mjs +1 -0
- package/dist/components/ui/calendar.d.mts +12 -0
- package/dist/components/ui/calendar.d.ts +12 -0
- package/dist/components/ui/calendar.js +1 -0
- package/dist/components/ui/calendar.mjs +1 -0
- package/dist/components/ui/card.d.mts +23 -0
- package/dist/components/ui/card.d.ts +23 -0
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/card.mjs +1 -0
- package/dist/components/ui/chart.d.mts +55 -0
- package/dist/components/ui/chart.d.ts +55 -0
- package/dist/components/ui/chart.js +7 -0
- package/dist/components/ui/chart.mjs +7 -0
- package/dist/components/ui/checkbox.d.mts +2 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/checkbox.mjs +1 -0
- package/dist/components/ui/command.d.mts +36 -0
- package/dist/components/ui/command.d.ts +36 -0
- package/dist/components/ui/command.js +1 -0
- package/dist/components/ui/command.mjs +1 -0
- package/dist/components/ui/dialog.d.mts +34 -0
- package/dist/components/ui/dialog.d.ts +34 -0
- package/dist/components/ui/dialog.js +1 -0
- package/dist/components/ui/dialog.mjs +1 -0
- package/dist/components/ui/dropdown-menu.d.mts +23 -0
- package/dist/components/ui/dropdown-menu.d.ts +23 -0
- package/dist/components/ui/dropdown-menu.js +1 -0
- package/dist/components/ui/dropdown-menu.mjs +1 -0
- package/dist/components/ui/form.d.mts +43 -0
- package/dist/components/ui/form.d.ts +43 -0
- package/dist/components/ui/form.js +1 -0
- package/dist/components/ui/form.mjs +1 -0
- package/dist/components/ui/input-otp.d.mts +21 -0
- package/dist/components/ui/input-otp.d.ts +21 -0
- package/dist/components/ui/input-otp.js +1 -0
- package/dist/components/ui/input-otp.mjs +1 -0
- package/dist/components/ui/label.d.mts +9 -0
- package/dist/components/ui/label.d.ts +9 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/label.mjs +1 -0
- package/dist/components/ui/popover.d.mts +12 -0
- package/dist/components/ui/popover.d.ts +12 -0
- package/dist/components/ui/popover.js +1 -0
- package/dist/components/ui/popover.mjs +1 -0
- package/dist/components/ui/radio-group.d.mts +14 -0
- package/dist/components/ui/radio-group.d.ts +14 -0
- package/dist/components/ui/radio-group.js +1 -0
- package/dist/components/ui/radio-group.mjs +1 -0
- package/dist/components/ui/separator.d.mts +10 -0
- package/dist/components/ui/separator.d.ts +10 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/separator.mjs +1 -0
- package/dist/components/ui/sheet.d.mts +43 -0
- package/dist/components/ui/sheet.d.ts +43 -0
- package/dist/components/ui/sheet.js +1 -0
- package/dist/components/ui/sheet.mjs +1 -0
- package/dist/components/ui/sidebar.d.mts +149 -0
- package/dist/components/ui/sidebar.d.ts +149 -0
- package/dist/components/ui/sidebar.js +1 -0
- package/dist/components/ui/sidebar.mjs +1 -0
- package/dist/components/ui/tooltip.d.mts +1 -0
- package/dist/components/ui/tooltip.d.ts +1 -0
- package/dist/components/ui/tooltip.js +1 -0
- package/dist/components/ui/tooltip.mjs +1 -0
- package/dist/hooks/theming.d.mts +76 -0
- package/dist/hooks/theming.d.ts +76 -0
- package/dist/hooks/theming.js +1 -0
- package/dist/hooks/theming.mjs +1 -0
- package/dist/hooks/use-mobile.d.mts +3 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +1 -0
- package/dist/hooks/use-mobile.mjs +1 -0
- package/dist/lib/meterUnit.d.mts +34 -0
- package/dist/lib/meterUnit.d.ts +34 -0
- package/dist/lib/meterUnit.js +1 -0
- package/dist/lib/meterUnit.mjs +1 -0
- package/dist/lib/utils.d.mts +5 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +1 -0
- package/dist/lib/utils.mjs +1 -0
- package/eslint.config.mjs +18 -0
- package/package.json +74 -0
- package/src/components/atoms/Accordion.tsx +56 -0
- package/src/components/atoms/Card.tsx +52 -0
- package/src/components/atoms/Combobox.tsx +166 -0
- package/src/components/atoms/CopyToClipboardInput.tsx +72 -0
- package/src/components/atoms/CountryPicker.tsx +81 -0
- package/src/components/atoms/CountryStatePicker.tsx +155 -0
- package/src/components/atoms/DateTimePicker.tsx +69 -0
- package/src/components/atoms/DropdownMenu.tsx +68 -0
- package/src/components/atoms/FormattedDateTime.tsx +58 -0
- package/src/components/atoms/FormattedInterval.tsx +81 -0
- package/src/components/atoms/InputOTP.tsx +7 -0
- package/src/components/atoms/MoneyInput.tsx +297 -0
- package/src/components/atoms/Paginator.tsx +227 -0
- package/src/components/atoms/PagoTimeAgo.tsx +19 -0
- package/src/components/atoms/PercentageInput.tsx +97 -0
- package/src/components/atoms/ShadowBox.tsx +26 -0
- package/src/components/atoms/ShadowBoxOnMd.tsx +20 -0
- package/src/components/atoms/Sidebar.tsx +1 -0
- package/src/components/molecules/Banner.tsx +42 -0
- package/src/components/ui/accordion.tsx +63 -0
- package/src/components/ui/alert-dialog.tsx +147 -0
- package/src/components/ui/calendar.tsx +81 -0
- package/src/components/ui/card.tsx +47 -0
- package/src/components/ui/chart.tsx +372 -0
- package/src/components/ui/checkbox.tsx +3 -0
- package/src/components/ui/command.tsx +133 -0
- package/src/components/ui/dialog.tsx +127 -0
- package/src/components/ui/dropdown-menu.tsx +74 -0
- package/src/components/ui/form.tsx +180 -0
- package/src/components/ui/input-otp.tsx +68 -0
- package/src/components/ui/label.tsx +25 -0
- package/src/components/ui/popover.tsx +34 -0
- package/src/components/ui/radio-group.tsx +46 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.tsx +149 -0
- package/src/components/ui/sidebar.tsx +742 -0
- package/src/components/ui/tooltip.tsx +8 -0
- package/src/hooks/theming.ts +87 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/lib/meterUnit.ts +52 -0
- package/src/lib/utils.ts +6 -0
- package/tsconfig.json +15 -0
- package/tsup.config.ts +11 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../ui/sidebar.js';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@pago-sh/orbit/ui/button';
|
|
5
|
+
import '@pago-sh/orbit/ui/input';
|
|
6
|
+
import '../ui/separator.js';
|
|
7
|
+
import '@radix-ui/react-separator';
|
|
8
|
+
import '../ui/sheet.js';
|
|
9
|
+
import 'class-variance-authority/types';
|
|
10
|
+
import '@radix-ui/react-dialog';
|
|
11
|
+
import 'class-variance-authority';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var ge=Object.create;var R=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var ye=(e,t)=>{for(var a in t)R(e,a,{get:t[a],enumerable:!0})},O=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ve(t))!xe.call(e,n)&&n!==a&&R(e,n,{get:()=>t[n],enumerable:!(i=he(t,n))||i.enumerable});return e};var P=(e,t,a)=>(a=e!=null?ge(Se(e)):{},O(t||!e||!e.__esModule?R(a,"default",{value:e,enumerable:!0}):a,e)),Ce=e=>O(R({},"__esModule",{value:!0}),e);var Be={};ye(Be,{Sidebar:()=>q,SidebarContent:()=>te,SidebarFooter:()=>Z,SidebarGroup:()=>ae,SidebarGroupAction:()=>re,SidebarGroupContent:()=>ie,SidebarGroupLabel:()=>oe,SidebarHeader:()=>Q,SidebarInput:()=>J,SidebarInset:()=>Y,SidebarMenu:()=>ne,SidebarMenuAction:()=>le,SidebarMenuBadge:()=>ce,SidebarMenuButton:()=>de,SidebarMenuItem:()=>se,SidebarMenuSub:()=>pe,SidebarMenuSubButton:()=>ue,SidebarMenuSubItem:()=>be,SidebarProvider:()=>$,SidebarRail:()=>U,SidebarSeparator:()=>ee,SidebarTrigger:()=>X,useSidebar:()=>y});module.exports=Ce(Be);var v=require("@radix-ui/react-slot"),G=require("class-variance-authority"),K=require("lucide-react"),l=P(require("react")),W=require("@pago-sh/orbit/ui/button"),j=require("@pago-sh/orbit/ui/input");var T=P(require("@radix-ui/react-separator"));var k=require("tailwind-merge");function r(...e){return(0,k.twMerge)(e)}var D=require("react/jsx-runtime"),I=({ref:e,className:t,orientation:a="horizontal",decorative:i=!0,...n})=>(0,D.jsx)(T.Root,{ref:e,decorative:i,orientation:a,className:r("bg-border shrink-0",a==="horizontal"?"h-px w-full":"h-full w-px",t),...n});I.displayName=T.Root.displayName;var s=P(require("@radix-ui/react-dialog")),B=require("class-variance-authority"),A=require("lucide-react");var c=require("react/jsx-runtime"),L=s.Root;var we=s.Portal,H=({ref:e,className:t,...a})=>(0,c.jsx)(s.Overlay,{className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...a,ref:e});H.displayName=s.Overlay.displayName;var Ne=(0,B.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),_=({ref:e,side:t="right",className:a,children:i,...n})=>(0,c.jsxs)(we,{children:[(0,c.jsx)(H,{}),(0,c.jsxs)(s.Content,{ref:e,className:r(Ne({side:t}),a),...n,children:[(0,c.jsxs)(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[(0,c.jsx)(A.X,{className:"h-4 w-4"}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]}),i]})]});_.displayName=s.Content.displayName;var Re=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});Re.displayName="SheetHeader";var Pe=({className:e,...t})=>(0,c.jsx)("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pe.displayName="SheetFooter";var Me=({ref:e,className:t,...a})=>(0,c.jsx)(s.Title,{ref:e,className:r("text-foreground text-lg font-semibold",t),...a});Me.displayName=s.Title.displayName;var Te=({ref:e,className:t,...a})=>(0,c.jsx)(s.Description,{ref:e,className:r("text-muted-foreground text-sm",t),...a});Te.displayName=s.Description.displayName;var p=require("@pago-sh/orbit/Tooltip");var M=P(require("react")),E=768;function V(){let[e,t]=M.useState(void 0);return M.useEffect(()=>{let a=window.matchMedia(`(max-width: ${E-1}px)`),i=()=>{t(window.innerWidth<E)};return a.addEventListener("change",i),t(window.innerWidth<E),()=>a.removeEventListener("change",i)},[]),!!e}var o=require("react/jsx-runtime"),Ie="sidebar_state",_e=3600*24*7,Ee="14rem",ze="18rem",Oe="3rem",ke="b",F=l.createContext(null);function y(){let e=l.useContext(F);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var $=({ref:e,defaultOpen:t=!0,open:a,onOpenChange:i,className:n,style:d,children:m,...S})=>{let u=V(),[h,f]=l.useState(!1),[C,me]=l.useState(t),x=a??C,w=l.useCallback(b=>{let g=typeof b=="function"?b(x):b;i?i(g):me(g),document.cookie=`${Ie}=${g}; path=/; max-age=${_e}`},[i,x]),N=l.useCallback(()=>u?f(b=>!b):w(b=>!b),[u,w,f]);l.useEffect(()=>{let b=g=>{g.key===ke&&(g.metaKey||g.ctrlKey)&&(g.preventDefault(),N())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[N]);let z=x?"expanded":"collapsed",fe=l.useMemo(()=>({state:z,open:x,setOpen:w,isMobile:u,openMobile:h,setOpenMobile:f,toggleSidebar:N}),[z,x,w,u,h,f,N]);return(0,o.jsx)(F.Provider,{value:fe,children:(0,o.jsx)(p.TooltipProvider,{delayDuration:0,children:(0,o.jsx)("div",{style:{"--sidebar-width":Ee,"--sidebar-width-icon":Oe,...d},className:r("group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full lg:overflow-clip",n),ref:e,...S,children:m})})})};$.displayName="SidebarProvider";var q=({ref:e,side:t="left",variant:a="sidebar",collapsible:i="offcanvas",className:n,children:d,...m})=>{let{isMobile:S,state:u,openMobile:h,setOpenMobile:f}=y();return i==="none"?(0,o.jsx)("div",{className:r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),ref:e,...m,children:d}):S?(0,o.jsx)(L,{open:h,onOpenChange:f,...m,children:(0,o.jsx)(_,{"data-sidebar":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":ze},side:t,children:(0,o.jsx)("div",{className:"flex h-full w-full flex-col",children:d})})}):(0,o.jsxs)("div",{ref:e,className:"text-sidebar-foreground group peer hidden md:block","data-state":u,"data-collapsible":u==="collapsed"?i:"","data-variant":a,"data-side":t,children:[(0,o.jsx)("div",{className:r("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,o.jsx)("div",{className:r("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...m,children:(0,o.jsx)("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:d})})]})};q.displayName="Sidebar";var X=({ref:e,className:t,onClick:a,...i})=>{let{toggleSidebar:n}=y();return(0,o.jsxs)(W.Button,{ref:e,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:r("h-7 w-7",t),onClick:d=>{a?.(d),n()},...i,children:[(0,o.jsx)(K.PanelLeft,{}),(0,o.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})};X.displayName="SidebarTrigger";var U=({ref:e,className:t,...a})=>{let{toggleSidebar:i}=y();return(0,o.jsx)("button",{ref:e,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:r("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...a})};U.displayName="SidebarRail";var Y=({ref:e,className:t,...a})=>(0,o.jsx)("main",{ref:e,className:r("bg-background relative flex min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",t),...a});Y.displayName="SidebarInset";var J=({ref:e,className:t,...a})=>(0,o.jsx)(j.Input,{ref:e,"data-sidebar":"input",className:r("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",t),...a});J.displayName="SidebarInput";var Q=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"header",className:r("flex flex-col gap-2 p-2",t),...a});Q.displayName="SidebarHeader";var Z=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"footer",className:r("flex flex-col gap-2 p-2",t),...a});Z.displayName="SidebarFooter";var ee=({ref:e,className:t,...a})=>(0,o.jsx)(I,{ref:e,"data-sidebar":"separator",className:r("bg-sidebar-border mx-2 w-auto",t),...a});ee.displayName="SidebarSeparator";var te=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"content",className:r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a});te.displayName="SidebarContent";var ae=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"group",className:r("relative flex w-full min-w-0 flex-col p-2",t),...a});ae.displayName="SidebarGroup";var oe=({ref:e,className:t,asChild:a=!1,...i})=>(0,o.jsx)(a?v.Slot:"div",{ref:e,"data-sidebar":"group-label",className:r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...i});oe.displayName="SidebarGroupLabel";var re=({ref:e,className:t,asChild:a=!1,...i})=>(0,o.jsx)(a?v.Slot:"button",{ref:e,"data-sidebar":"group-action",className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...i});re.displayName="SidebarGroupAction";var ie=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"group-content",className:r("w-full text-sm",t),...a});ie.displayName="SidebarGroupContent";var ne=({ref:e,className:t,...a})=>(0,o.jsx)("ul",{ref:e,"data-sidebar":"menu",className:r("flex w-full min-w-0 flex-col gap-1",t),...a});ne.displayName="SidebarMenu";var se=({ref:e,className:t,...a})=>(0,o.jsx)("li",{ref:e,"data-sidebar":"menu-item",className:r("group/menu-item relative",t),...a});se.displayName="SidebarMenuItem";var De=(0,G.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white dark:data-[active=true]:bg-transparent dark:data-[active=true]:border-transparent dark:data-[active=true]:text-white data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"[&:not([data-active=true])]:hover:bg-sidebar-accent [&:not([data-active=true])]:hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),de=({ref:e,asChild:t=!1,isActive:a=!1,variant:i="default",size:n="default",tooltip:d,className:m,...S})=>{let u=t?v.Slot:"button",{isMobile:h,state:f}=y(),C=(0,o.jsx)(u,{ref:e,"data-sidebar":"menu-button","data-size":n,"data-active":a,className:r(De({variant:i,size:n}),m),...S});return d?(typeof d=="string"&&(d={children:d}),(0,o.jsxs)(p.Tooltip,{children:[(0,o.jsx)(p.TooltipTrigger,{asChild:!0,children:C}),(0,o.jsx)(p.TooltipContent,{side:"right",align:"center",hidden:f!=="collapsed"||h,...d})]})):C};de.displayName="SidebarMenuButton";var le=({ref:e,className:t,asChild:a=!1,showOnHover:i=!1,...n})=>(0,o.jsx)(a?v.Slot:"button",{ref:e,"data-sidebar":"menu-action",className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),...n});le.displayName="SidebarMenuAction";var ce=({ref:e,className:t,...a})=>(0,o.jsx)("div",{ref:e,"data-sidebar":"menu-badge",className:r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...a});ce.displayName="SidebarMenuBadge";var pe=({ref:e,className:t,...a})=>(0,o.jsx)("ul",{ref:e,"data-sidebar":"menu-sub",className:r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...a});pe.displayName="SidebarMenuSub";var be=({ref:e,...t})=>(0,o.jsx)("li",{ref:e,...t});be.displayName="SidebarMenuSubItem";var ue=({ref:e,asChild:t=!1,size:a="md",isActive:i,className:n,...d})=>(0,o.jsx)(t?v.Slot:"a",{ref:e,"data-sidebar":"menu-sub-button","data-size":a,"data-active":i,className:r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...d});ue.displayName="SidebarMenuSubButton";0&&(module.exports={Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarSeparator,SidebarTrigger,useSidebar});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v}from"../../chunk-VPECET7P.mjs";import"../../chunk-N6WI5TGM.mjs";import"../../chunk-OTKGECM3.mjs";import"../../chunk-HRGUR4R2.mjs";import"../../chunk-6XCXQA5L.mjs";import"../../chunk-CFBUY7KY.mjs";export{e as Sidebar,c as SidebarContent,a as SidebarFooter,d as SidebarGroup,h as SidebarGroupAction,i as SidebarGroupContent,g as SidebarGroupLabel,x as SidebarHeader,t as SidebarInput,p as SidebarInset,j as SidebarMenu,n as SidebarMenuAction,q as SidebarMenuBadge,l as SidebarMenuButton,k as SidebarMenuItem,s as SidebarMenuSub,v as SidebarMenuSubButton,u as SidebarMenuSubItem,r as SidebarProvider,m as SidebarRail,b as SidebarSeparator,f as SidebarTrigger,o as useSidebar};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type Color = 'default' | 'muted' | 'red' | 'green' | 'blue';
|
|
5
|
+
declare const Banner: ({ children, right, color, }: {
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
right?: React__default.ReactNode;
|
|
8
|
+
color: Color;
|
|
9
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Banner as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
type Color = 'default' | 'muted' | 'red' | 'green' | 'blue';
|
|
5
|
+
declare const Banner: ({ children, right, color, }: {
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
right?: React__default.ReactNode;
|
|
8
|
+
color: Color;
|
|
9
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Banner as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var g=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var u=(d,e)=>{for(var r in e)g(d,r,{get:e[r],enumerable:!0})},k=(d,e,r,b)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of l(e))!i.call(d,t)&&t!==r&&g(d,t,{get:()=>e[t],enumerable:!(b=n(e,t))||b.enumerable});return d};var p=d=>k(g({},"__esModule",{value:!0}),d);var f={};u(f,{default:()=>m});module.exports=p(f);var o=require("tailwind-merge"),a=require("react/jsx-runtime"),x=({children:d,right:e,color:r})=>(0,a.jsxs)("div",{className:(0,o.twMerge)("flex items-center justify-between gap-2 rounded-lg px-3 py-2 text-sm",r==="default"?"dark:bg-pago-800 dark:ring-pago-700 bg-white ring-1 ring-gray-100":"",r==="muted"?"dark:bg-pago-800 dark:border-pago-700 border bg-gray-100 text-gray-500":"",r==="red"?"border bg-red-100 text-red-600 dark:border-red-900 dark:bg-red-950/50 dark:text-red-600":"",r==="green"?"border bg-green-100 text-green-600 dark:border-green-800 dark:bg-green-900 dark:text-green-200":"",r==="blue"?"border border-blue-100 bg-blue-50 text-blue-500 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-300":""),children:[(0,a.jsx)("div",{className:"flex flex-1 items-center gap-2",children:d}),e&&(0,a.jsx)("div",{children:e})]}),m=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{twMerge as a}from"tailwind-merge";import{jsx as d,jsxs as b}from"react/jsx-runtime";var g=({children:t,right:r,color:e})=>b("div",{className:a("flex items-center justify-between gap-2 rounded-lg px-3 py-2 text-sm",e==="default"?"dark:bg-pago-800 dark:ring-pago-700 bg-white ring-1 ring-gray-100":"",e==="muted"?"dark:bg-pago-800 dark:border-pago-700 border bg-gray-100 text-gray-500":"",e==="red"?"border bg-red-100 text-red-600 dark:border-red-900 dark:bg-red-950/50 dark:text-red-600":"",e==="green"?"border bg-green-100 text-green-600 dark:border-green-800 dark:bg-green-900 dark:text-green-200":"",e==="blue"?"border border-blue-100 bg-blue-50 text-blue-500 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-300":""),children:[d("div",{className:"flex flex-1 items-center gap-2",children:t}),r&&d("div",{children:r})]}),n=g;export{n as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AccordionItem: {
|
|
7
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const AccordionTrigger: {
|
|
11
|
+
({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
displayName: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const AccordionContent: {
|
|
15
|
+
({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
displayName: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AccordionItem: {
|
|
7
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const AccordionTrigger: {
|
|
11
|
+
({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
displayName: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const AccordionContent: {
|
|
15
|
+
({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
displayName: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";"use client";var A=Object.create;var a=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var C=(i,o)=>{for(var e in o)a(i,e,{get:o[e],enumerable:!0})},s=(i,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of N(o))!y.call(i,c)&&c!==e&&a(i,c,{get:()=>o[c],enumerable:!(n=P(o,c))||n.enumerable});return i};var u=(i,o,e)=>(e=i!=null?A(g(i)):{},s(o||!i||!i.__esModule?a(e,"default",{value:i,enumerable:!0}):e,i)),w=i=>s(a({},"__esModule",{value:!0}),i);var x={};C(x,{Accordion:()=>h,AccordionContent:()=>f,AccordionItem:()=>l,AccordionTrigger:()=>v});module.exports=w(x);var t=u(require("@radix-ui/react-accordion")),p=require("lucide-react");var d=require("tailwind-merge");function m(...i){return(0,d.twMerge)(i)}var r=require("react/jsx-runtime"),h=t.Root,l=({ref:i,className:o,...e})=>(0,r.jsx)(t.Item,{ref:i,className:m("border-b",o),...e});l.displayName="AccordionItem";var v=({ref:i,className:o,children:e,...n})=>(0,r.jsx)(t.Header,{className:"flex",children:(0,r.jsxs)(t.Trigger,{ref:i,className:m("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",o),...n,children:[e,(0,r.jsx)(p.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})});v.displayName=t.Trigger.displayName;var f=({ref:i,className:o,children:e,...n})=>(0,r.jsx)(t.Content,{ref:i,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all",...n,children:(0,r.jsx)("div",{className:m("pt-0 pb-4",o),children:e})});f.displayName=t.Content.displayName;0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a,b,c,d}from"../../chunk-WQPSZXQS.mjs";import"../../chunk-CFBUY7KY.mjs";export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
6
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
8
|
+
declare const AlertDialogOverlay: {
|
|
9
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
displayName: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogContent: {
|
|
13
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare const AlertDialogHeader: {
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const AlertDialogFooter: {
|
|
21
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const AlertDialogTitle: {
|
|
25
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
26
|
+
displayName: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
declare const AlertDialogDescription: {
|
|
29
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
displayName: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
declare const AlertDialogAction: {
|
|
33
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
displayName: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
declare const AlertDialogCancel: {
|
|
37
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
displayName: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
6
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
8
|
+
declare const AlertDialogOverlay: {
|
|
9
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
displayName: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogContent: {
|
|
13
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare const AlertDialogHeader: {
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const AlertDialogFooter: {
|
|
21
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const AlertDialogTitle: {
|
|
25
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
26
|
+
displayName: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
declare const AlertDialogDescription: {
|
|
29
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
displayName: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
declare const AlertDialogAction: {
|
|
33
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
displayName: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
declare const AlertDialogCancel: {
|
|
37
|
+
({ ref, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
displayName: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";"use client";var u=Object.create;var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var i in t)s(e,i,{get:t[i],enumerable:!0})},p=(e,t,i,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C(t))!T.call(e,r)&&r!==i&&s(e,r,{get:()=>t[r],enumerable:!(d=x(t,r))||d.enumerable});return e};var H=(e,t,i)=>(i=e!=null?u(R(e)):{},p(t||!e||!e.__esModule?s(i,"default",{value:e,enumerable:!0}):i,e)),w=e=>p(s({},"__esModule",{value:!0}),e);var L={};b(L,{AlertDialog:()=>M,AlertDialogAction:()=>y,AlertDialogCancel:()=>N,AlertDialogContent:()=>A,AlertDialogDescription:()=>P,AlertDialogFooter:()=>f,AlertDialogHeader:()=>D,AlertDialogOverlay:()=>n,AlertDialogPortal:()=>g,AlertDialogTitle:()=>v,AlertDialogTrigger:()=>z});module.exports=w(L);var a=H(require("@radix-ui/react-alert-dialog")),m=require("@pago-sh/orbit/ui/button");var c=require("tailwind-merge");function l(...e){return(0,c.twMerge)(e)}var o=require("react/jsx-runtime"),M=a.Root,z=a.Trigger,g=a.Portal,n=({ref:e,className:t,...i})=>(0,o.jsx)(a.Overlay,{className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...i,ref:e});n.displayName=a.Overlay.displayName;var A=({ref:e,className:t,...i})=>(0,o.jsxs)(g,{children:[(0,o.jsx)(n,{}),(0,o.jsx)(a.Content,{ref:e,className:l("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t),...i})]});A.displayName=a.Content.displayName;var D=({className:e,...t})=>(0,o.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});D.displayName="AlertDialogHeader";var f=({className:e,...t})=>(0,o.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});f.displayName="AlertDialogFooter";var v=({ref:e,className:t,...i})=>(0,o.jsx)(a.Title,{ref:e,className:l("text-lg font-semibold",t),...i});v.displayName=a.Title.displayName;var P=({ref:e,className:t,...i})=>(0,o.jsx)(a.Description,{ref:e,className:l("text-muted-foreground text-sm",t),...i});P.displayName=a.Description.displayName;var y=({ref:e,className:t,...i})=>(0,o.jsx)(a.Action,{ref:e,className:l((0,m.buttonVariants)(),t),...i});y.displayName=a.Action.displayName;var N=({ref:e,className:t,...i})=>(0,o.jsx)(a.Cancel,{ref:e,className:l((0,m.buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",t),...i});N.displayName=a.Cancel.displayName;0&&(module.exports={AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as o}from"../../chunk-CFBUY7KY.mjs";import*as t from"@radix-ui/react-alert-dialog";import{buttonVariants as r}from"@pago-sh/orbit/ui/button";import{jsx as l,jsxs as f}from"react/jsx-runtime";var y=t.Root,N=t.Trigger,m=t.Portal,s=({ref:e,className:a,...i})=>l(t.Overlay,{className:o("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",a),...i,ref:e});s.displayName=t.Overlay.displayName;var n=({ref:e,className:a,...i})=>f(m,{children:[l(s,{}),l(t.Content,{ref:e,className:o("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",a),...i})]});n.displayName=t.Content.displayName;var d=({className:e,...a})=>l("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...a});d.displayName="AlertDialogHeader";var c=({className:e,...a})=>l("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});c.displayName="AlertDialogFooter";var p=({ref:e,className:a,...i})=>l(t.Title,{ref:e,className:o("text-lg font-semibold",a),...i});p.displayName=t.Title.displayName;var g=({ref:e,className:a,...i})=>l(t.Description,{ref:e,className:o("text-muted-foreground text-sm",a),...i});g.displayName=t.Description.displayName;var A=({ref:e,className:a,...i})=>l(t.Action,{ref:e,className:o(r(),a),...i});A.displayName=t.Action.displayName;var D=({ref:e,className:a,...i})=>l(t.Cancel,{ref:e,className:o(r({variant:"outline"}),"mt-2 sm:mt-0",a),...i});D.displayName=t.Cancel.displayName;export{y as AlertDialog,A as AlertDialogAction,D as AlertDialogCancel,n as AlertDialogContent,g as AlertDialogDescription,c as AlertDialogFooter,d as AlertDialogHeader,s as AlertDialogOverlay,m as AlertDialogPortal,p as AlertDialogTitle,N as AlertDialogTrigger};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { DayPicker } from 'react-day-picker';
|
|
4
|
+
export { DateRange } from 'react-day-picker';
|
|
5
|
+
|
|
6
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
7
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace Calendar {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { Calendar, type CalendarProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { DayPicker } from 'react-day-picker';
|
|
4
|
+
export { DateRange } from 'react-day-picker';
|
|
5
|
+
|
|
6
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
7
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare namespace Calendar {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { Calendar, type CalendarProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";"use client";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var y=(e,t)=>{for(var o in t)l(e,o,{get:t[o],enumerable:!0})},h=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f(t))!g.call(e,r)&&r!==o&&l(e,r,{get:()=>t[r],enumerable:!(n=p(t,r))||n.enumerable});return e};var b=e=>h(l({},"__esModule",{value:!0}),e);var x={};y(x,{Calendar:()=>m});module.exports=b(x);var s=require("lucide-react"),c=require("react-day-picker"),d=require("@pago-sh/orbit/ui/button");var u=require("tailwind-merge");function a(...e){return(0,u.twMerge)(e)}var i=require("react/jsx-runtime");function m({className:e,classNames:t,showOutsideDays:o=!0,...n}){return(0,i.jsx)(c.DayPicker,{showOutsideDays:o,className:a("p-3",e),classNames:{months:"relative",month:"space-y-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"absolute top-0 right-0 left-0 h-0 z-10",button_previous:a((0,d.buttonVariants)({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute left-1"),button_next:a((0,d.buttonVariants)({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute right-1"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&[data-selected].day-outside]:bg-accent/50 data-[selected]:bg-accent first:data-selected:rounded-l-md last:data-selected:rounded-r-md focus-within:relative focus-within:z-20",day_button:a((0,d.buttonVariants)({variant:"ghost"}),"h-9 w-9 p-0 font-normal"),range_start:"rounded-l-md!",range_end:"rounded-r-md!",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-foreground text-accent-foreground rounded-md data-selected:rounded-none",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...t},components:{Chevron:r=>r.orientation==="left"?(0,i.jsx)(s.ChevronLeft,{className:a("h-4 w-4",e),...r}):(0,i.jsx)(s.ChevronRight,{className:a("h-4 w-4",e),...r})},...n})}m.displayName="Calendar";0&&(module.exports={Calendar});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"../../chunk-4TCUGB6E.mjs";import"../../chunk-CFBUY7KY.mjs";export{a as Calendar};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Card: {
|
|
5
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
7
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const CardHeader: {
|
|
11
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const CardContent: {
|
|
17
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { Card, CardContent, CardHeader };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Card: {
|
|
5
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
7
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const CardHeader: {
|
|
11
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
13
|
+
}): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const CardContent: {
|
|
17
|
+
({ ref, className, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { Card, CardContent, CardHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var a in t)d(e,a,{get:t[a],enumerable:!0})},M=(e,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of p(t))!H.call(e,r)&&r!==a&&d(e,r,{get:()=>t[r],enumerable:!(l=f(t,r))||l.enumerable});return e};var R=e=>M(d({},"__esModule",{value:!0}),e);var v={};C(v,{Card:()=>m,CardContent:()=>i,CardHeader:()=>n});module.exports=R(v);var o=require("tailwind-merge");function c(...e){return(0,o.twMerge)(e)}var s=require("react/jsx-runtime"),m=({ref:e,className:t,...a})=>(0,s.jsx)("div",{ref:e,className:c("bg-card text-card-foreground rounded-lg border shadow-xs",t),...a});m.displayName="Card";var n=({ref:e,className:t,...a})=>(0,s.jsx)("div",{ref:e,className:c("flex flex-col space-y-1.5 p-6",t),...a});n.displayName="CardHeader";var i=({ref:e,className:t,...a})=>(0,s.jsx)("div",{ref:e,className:c("p-6 pt-0",t),...a});i.displayName="CardContent";0&&(module.exports={Card,CardContent,CardHeader});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c}from"../../chunk-GCVBVZU7.mjs";import"../../chunk-CFBUY7KY.mjs";export{a as Card,c as CardContent,b as CardHeader};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as RechartsPrimitive from 'recharts';
|
|
4
|
+
export * from 'recharts';
|
|
5
|
+
import { ValueType, NameType } from 'recharts/types/component/DefaultTooltipContent';
|
|
6
|
+
|
|
7
|
+
declare const THEMES: {
|
|
8
|
+
readonly light: "";
|
|
9
|
+
readonly dark: ".dark";
|
|
10
|
+
};
|
|
11
|
+
type ChartConfig = {
|
|
12
|
+
[k in string]: {
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
icon?: React.ComponentType;
|
|
15
|
+
} & ({
|
|
16
|
+
color?: string;
|
|
17
|
+
theme?: never;
|
|
18
|
+
} | {
|
|
19
|
+
color?: never;
|
|
20
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
declare const ChartContainer: {
|
|
24
|
+
({ ref, id, className, children, config, ...props }: {
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
27
|
+
} & Omit<React.ComponentProps<"div">, "children">): react_jsx_runtime.JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const ChartStyle: ({ id, config }: {
|
|
31
|
+
id: string;
|
|
32
|
+
config: ChartConfig;
|
|
33
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
34
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
35
|
+
declare const ChartTooltipContent: {
|
|
36
|
+
<TValue extends ValueType, TName extends NameType>({ ref, active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: RechartsPrimitive.TooltipContentProps<TValue, TName> & Pick<React.ComponentProps<"div">, "ref" | "className"> & {
|
|
37
|
+
indicator?: "line" | "dot" | "dashed";
|
|
38
|
+
hideLabel?: boolean;
|
|
39
|
+
hideIndicator?: boolean;
|
|
40
|
+
color?: string;
|
|
41
|
+
nameKey?: string;
|
|
42
|
+
labelKey?: string;
|
|
43
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
47
|
+
declare const ChartLegendContent: {
|
|
48
|
+
({ ref, className, hideIcon, payload, verticalAlign, nameKey, }: RechartsPrimitive.DefaultLegendContentProps & Pick<React.ComponentProps<"div">, "ref" | "className"> & {
|
|
49
|
+
hideIcon?: boolean;
|
|
50
|
+
nameKey?: string;
|
|
51
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as RechartsPrimitive from 'recharts';
|
|
4
|
+
export * from 'recharts';
|
|
5
|
+
import { ValueType, NameType } from 'recharts/types/component/DefaultTooltipContent';
|
|
6
|
+
|
|
7
|
+
declare const THEMES: {
|
|
8
|
+
readonly light: "";
|
|
9
|
+
readonly dark: ".dark";
|
|
10
|
+
};
|
|
11
|
+
type ChartConfig = {
|
|
12
|
+
[k in string]: {
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
icon?: React.ComponentType;
|
|
15
|
+
} & ({
|
|
16
|
+
color?: string;
|
|
17
|
+
theme?: never;
|
|
18
|
+
} | {
|
|
19
|
+
color?: never;
|
|
20
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
declare const ChartContainer: {
|
|
24
|
+
({ ref, id, className, children, config, ...props }: {
|
|
25
|
+
config: ChartConfig;
|
|
26
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
27
|
+
} & Omit<React.ComponentProps<"div">, "children">): react_jsx_runtime.JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
declare const ChartStyle: ({ id, config }: {
|
|
31
|
+
id: string;
|
|
32
|
+
config: ChartConfig;
|
|
33
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
34
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
35
|
+
declare const ChartTooltipContent: {
|
|
36
|
+
<TValue extends ValueType, TName extends NameType>({ ref, active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: RechartsPrimitive.TooltipContentProps<TValue, TName> & Pick<React.ComponentProps<"div">, "ref" | "className"> & {
|
|
37
|
+
indicator?: "line" | "dot" | "dashed";
|
|
38
|
+
hideLabel?: boolean;
|
|
39
|
+
hideIndicator?: boolean;
|
|
40
|
+
color?: string;
|
|
41
|
+
nameKey?: string;
|
|
42
|
+
labelKey?: string;
|
|
43
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
47
|
+
declare const ChartLegendContent: {
|
|
48
|
+
({ ref, className, hideIcon, payload, verticalAlign, nameKey, }: RechartsPrimitive.DefaultLegendContentProps & Pick<React.ComponentProps<"div">, "ref" | "className"> & {
|
|
49
|
+
hideIcon?: boolean;
|
|
50
|
+
nameKey?: string;
|
|
51
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";"use client";var O=Object.create;var k=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var B=(t,r)=>{for(var e in r)k(t,e,{get:r[e],enumerable:!0})},b=(t,r,e,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of q(r))!A.call(t,n)&&n!==e&&k(t,n,{get:()=>r[n],enumerable:!(c=D(r,n))||c.enumerable});return t},i=(t,r,e)=>(b(t,r,"default"),e&&b(e,r,"default")),L=(t,r,e)=>(e=t!=null?O(z(t)):{},b(r||!t||!t.__esModule?k(e,"default",{value:t,enumerable:!0}):e,t)),G=t=>b(k({},"__esModule",{value:!0}),t);var a={};B(a,{ChartContainer:()=>S,ChartLegend:()=>U,ChartLegendContent:()=>E,ChartStyle:()=>V,ChartTooltip:()=>Q,ChartTooltipContent:()=>I});module.exports=G(a);var p=L(require("react")),m=L(require("recharts"));var $=require("tailwind-merge");function d(...t){return(0,$.twMerge)(t)}i(a,require("recharts"),module.exports);var o=require("react/jsx-runtime"),J={light:"",dark:".dark"},j=p.createContext(null);function K(){let t=p.useContext(j);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}var S=({ref:t,id:r,className:e,children:c,config:n,...f})=>{let u=p.useId(),l=`chart-${r||u.replace(/:/g,"")}`;return(0,o.jsx)(j.Provider,{value:{config:n},children:(0,o.jsxs)("div",{"data-chart":l,ref:t,className:d("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-pago-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-sector]:outline-none [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-none",e),...f,children:[(0,o.jsx)(V,{id:l,config:n}),(0,o.jsx)(m.ResponsiveContainer,{children:c})]})})};S.displayName="Chart";var V=({id:t,config:r})=>{let e=Object.entries(r).filter(([,c])=>c.theme||c.color);return e.length?(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(J).map(([c,n])=>`
|
|
2
|
+
${n} [data-chart=${t}] {
|
|
3
|
+
${e.map(([f,u])=>{let l=u.theme?.[c]||u.color;return l?` --color-${f}: ${l};`:null}).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}
|
|
6
|
+
`).join(`
|
|
7
|
+
`)}}):null},Q=m.Tooltip,I=({ref:t,active:r,payload:e,className:c,indicator:n="dot",hideLabel:f=!1,hideIndicator:u=!1,label:l,labelFormatter:v,labelClassName:g,formatter:T,color:M,nameKey:H,labelKey:P})=>{let{config:C}=K(),w=p.useMemo(()=>{if(f||!e?.length)return null;let[s]=e,x=`${P||s?.dataKey||s?.name||"value"}`,N=R(C,s,x),h=!P&&typeof l=="string"?C[l]?.label||l:N?.label;return v?(0,o.jsx)("div",{className:d("font-medium",g),children:v(h,e)}):h?(0,o.jsx)("div",{className:d("font-medium",g),children:h}):null},[l,v,e,f,g,C,P]);if(!r||!e?.length)return null;let y=e.length===1&&n!=="dot";return(0,o.jsxs)("div",{ref:t,className:d("border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",c),children:[y?null:w,(0,o.jsx)("div",{className:"grid gap-1.5",children:e.map((s,x)=>{let N=`${H||s.name||s.dataKey||"value"}`,h=R(C,s,N),_=M||s.payload.fill||s.color;return(0,o.jsx)("div",{className:d("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",n==="dot"&&"items-center"),children:T&&s?.value!==void 0&&s.name?T(s.value,s.name,s,x,e):(0,o.jsxs)(o.Fragment,{children:[h?.icon?(0,o.jsx)(h.icon,{}):!u&&(0,o.jsx)("div",{className:d("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",n==="dot"&&"h-2.5 w-2.5",n==="line"&&"w-1",n==="dashed"&&"w-0 border-[1.5px] border-dashed bg-transparent",y&&n==="dashed"&&"my-0.5"),style:{"--color-bg":_,"--color-border":_}}),(0,o.jsxs)("div",{className:d("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[(0,o.jsxs)("div",{className:"grid gap-1.5",children:[y?w:null,(0,o.jsx)("span",{className:"text-muted-foreground",children:h?.label||s.name})]}),s.value!==void 0&&s.value!==null&&(0,o.jsx)("span",{className:"text-foreground font-mono font-medium tabular-nums",children:s.value.toLocaleString()})]})]})},typeof s.dataKey=="function"?x:s.dataKey)})})]})};I.displayName="ChartTooltip";var U=m.Legend,E=({ref:t,className:r,hideIcon:e=!1,payload:c,verticalAlign:n="bottom",nameKey:f})=>{let{config:u}=K();return c?.length?(0,o.jsx)("div",{ref:t,className:d("flex flex-wrap items-center justify-center gap-x-4 gap-y-2",n==="top"?"pb-3":"pt-3",r),children:c.map(l=>{let v=`${f||l.dataKey||"value"}`,g=R(u,l,v);return(0,o.jsxs)("div",{className:d("[&>svg]:text-muted-foreground flex items-center gap-1.5 whitespace-nowrap [&>svg]:h-3 [&>svg]:w-3"),children:[g?.icon&&!e?(0,o.jsx)(g.icon,{}):(0,o.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),g?.label]},l.value)})}):null};E.displayName="ChartLegend";function R(t,r,e){if(typeof r!="object"||r===null)return;let c="payload"in r&&typeof r.payload=="object"&&r.payload!==null?r.payload:void 0,n=e;return e in r&&typeof r[e]=="string"?n=r[e]:c&&e in c&&typeof c[e]=="string"&&(n=c[e]),n in t?t[n]:t[e]}0&&(module.exports={ChartContainer,ChartLegend,ChartLegendContent,ChartStyle,ChartTooltip,ChartTooltipContent,...require("recharts")});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";import{a as c}from"../../chunk-CFBUY7KY.mjs";import*as f from"react";import*as h from"recharts";export*from"recharts";import{Fragment as E,jsx as s,jsxs as g}from"react/jsx-runtime";var $={light:"",dark:".dark"},T=f.createContext(null);function w(){let i=f.useContext(T);if(!i)throw new Error("useChart must be used within a <ChartContainer />");return i}var j=({ref:i,id:o,className:e,children:n,config:r,...l})=>{let d=f.useId(),a=`chart-${o||d.replace(/:/g,"")}`;return s(T.Provider,{value:{config:r},children:g("div",{"data-chart":a,ref:i,className:c("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-pago-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-sector]:outline-none [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-none",e),...l,children:[s(K,{id:a,config:r}),s(h.ResponsiveContainer,{children:n})]})})};j.displayName="Chart";var K=({id:i,config:o})=>{let e=Object.entries(o).filter(([,n])=>n.theme||n.color);return e.length?s("style",{dangerouslySetInnerHTML:{__html:Object.entries($).map(([n,r])=>`
|
|
2
|
+
${r} [data-chart=${i}] {
|
|
3
|
+
${e.map(([l,d])=>{let a=d.theme?.[n]||d.color;return a?` --color-${l}: ${a};`:null}).join(`
|
|
4
|
+
`)}
|
|
5
|
+
}
|
|
6
|
+
`).join(`
|
|
7
|
+
`)}}):null},M=h.Tooltip,S=({ref:i,active:o,payload:e,className:n,indicator:r="dot",hideLabel:l=!1,hideIndicator:d=!1,label:a,labelFormatter:m,labelClassName:u,formatter:P,color:_,nameKey:L,labelKey:x})=>{let{config:v}=w(),R=f.useMemo(()=>{if(l||!e?.length)return null;let[t]=e,y=`${x||t?.dataKey||t?.name||"value"}`,b=k(v,t,y),p=!x&&typeof a=="string"?v[a]?.label||a:b?.label;return m?s("div",{className:c("font-medium",u),children:m(p,e)}):p?s("div",{className:c("font-medium",u),children:p}):null},[a,m,e,l,u,v,x]);if(!o||!e?.length)return null;let C=e.length===1&&r!=="dot";return g("div",{ref:i,className:c("border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[C?null:R,s("div",{className:"grid gap-1.5",children:e.map((t,y)=>{let b=`${L||t.name||t.dataKey||"value"}`,p=k(v,t,b),N=_||t.payload.fill||t.color;return s("div",{className:c("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",r==="dot"&&"items-center"),children:P&&t?.value!==void 0&&t.name?P(t.value,t.name,t,y,e):g(E,{children:[p?.icon?s(p.icon,{}):!d&&s("div",{className:c("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",r==="dot"&&"h-2.5 w-2.5",r==="line"&&"w-1",r==="dashed"&&"w-0 border-[1.5px] border-dashed bg-transparent",C&&r==="dashed"&&"my-0.5"),style:{"--color-bg":N,"--color-border":N}}),g("div",{className:c("flex flex-1 justify-between leading-none",C?"items-end":"items-center"),children:[g("div",{className:"grid gap-1.5",children:[C?R:null,s("span",{className:"text-muted-foreground",children:p?.label||t.name})]}),t.value!==void 0&&t.value!==null&&s("span",{className:"text-foreground font-mono font-medium tabular-nums",children:t.value.toLocaleString()})]})]})},typeof t.dataKey=="function"?y:t.dataKey)})})]})};S.displayName="ChartTooltip";var H=h.Legend,I=({ref:i,className:o,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:l})=>{let{config:d}=w();return n?.length?s("div",{ref:i,className:c("flex flex-wrap items-center justify-center gap-x-4 gap-y-2",r==="top"?"pb-3":"pt-3",o),children:n.map(a=>{let m=`${l||a.dataKey||"value"}`,u=k(d,a,m);return g("div",{className:c("[&>svg]:text-muted-foreground flex items-center gap-1.5 whitespace-nowrap [&>svg]:h-3 [&>svg]:w-3"),children:[u?.icon&&!e?s(u.icon,{}):s("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),u?.label]},a.value)})}):null};I.displayName="ChartLegend";function k(i,o,e){if(typeof o!="object"||o===null)return;let n="payload"in o&&typeof o.payload=="object"&&o.payload!==null?o.payload:void 0,r=e;return e in o&&typeof o[e]=="string"?r=o[e]:n&&e in n&&typeof n[e]=="string"&&(r=n[e]),r in i?i[r]:i[e]}export{j as ChartContainer,H as ChartLegend,I as ChartLegendContent,K as ChartStyle,M as ChartTooltip,S as ChartTooltipContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var b=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(e,o)=>{for(var x in o)b(e,x,{get:o[x],enumerable:!0})},t=(e,o,x,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of k(o))!m.call(e,r)&&r!==x&&b(e,r,{get:()=>o[r],enumerable:!(c=h(o,r))||c.enumerable});return e};var C=e=>t(b({},"__esModule",{value:!0}),e);var a={};p(a,{Checkbox:()=>f.Checkbox});module.exports=C(a);var f=require("@pago-sh/orbit/Checkbox");0&&(module.exports={Checkbox});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Checkbox as r}from"@pago-sh/orbit/Checkbox";export{r as Checkbox};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Command as Command$1 } from 'cmdk';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const Command: {
|
|
6
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
displayName: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const CommandInput: {
|
|
10
|
+
({ ref, className, wrapperClassName, ...props }: React.ComponentProps<typeof Command$1.Input> & {
|
|
11
|
+
wrapperClassName?: string;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
displayName: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const CommandList: {
|
|
16
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
displayName: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
declare const CommandEmpty: {
|
|
20
|
+
({ ref, ...props }: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
displayName: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
declare const CommandGroup: {
|
|
24
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
displayName: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
declare const CommandSeparator: {
|
|
28
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
displayName: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
declare const CommandItem: {
|
|
32
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
displayName: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Command as Command$1 } from 'cmdk';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
declare const Command: {
|
|
6
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
displayName: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const CommandInput: {
|
|
10
|
+
({ ref, className, wrapperClassName, ...props }: React.ComponentProps<typeof Command$1.Input> & {
|
|
11
|
+
wrapperClassName?: string;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
displayName: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const CommandList: {
|
|
16
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
displayName: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
declare const CommandEmpty: {
|
|
20
|
+
({ ref, ...props }: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
displayName: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
declare const CommandGroup: {
|
|
24
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
displayName: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
declare const CommandSeparator: {
|
|
28
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
displayName: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
declare const CommandItem: {
|
|
32
|
+
({ ref, className, ...props }: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
displayName: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";"use client";var d=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var h=(e,o)=>{for(var t in o)d(e,t,{get:o[t],enumerable:!0})},P=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of N(o))!v.call(e,p)&&p!==t&&d(e,p,{get:()=>o[p],enumerable:!(n=C(o,p))||n.enumerable});return e};var b=e=>P(d({},"__esModule",{value:!0}),e);var w={};h(w,{Command:()=>l,CommandEmpty:()=>f,CommandGroup:()=>y,CommandInput:()=>c,CommandItem:()=>x,CommandList:()=>u,CommandSeparator:()=>g});module.exports=b(w);var a=require("cmdk"),i=require("lucide-react");var s=require("tailwind-merge");function r(...e){return(0,s.twMerge)(e)}var m=require("react/jsx-runtime"),l=({ref:e,className:o,...t})=>(0,m.jsx)(a.Command,{ref:e,className:r("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t});l.displayName=a.Command.displayName;var c=({ref:e,className:o,wrapperClassName:t,...n})=>(0,m.jsxs)("div",{className:r("flex items-center border-b px-3",t),"cmdk-input-wrapper":"",children:[(0,m.jsx)(i.Search,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,m.jsx)(a.Command.Input,{ref:e,className:r("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",o),...n})]});c.displayName=a.Command.Input.displayName;var u=({ref:e,className:o,...t})=>(0,m.jsx)(a.Command.List,{ref:e,className:r("max-h-[300px] overflow-x-hidden overflow-y-auto",o),...t});u.displayName=a.Command.List.displayName;var f=({ref:e,...o})=>(0,m.jsx)(a.Command.Empty,{ref:e,className:"py-6 text-center text-sm",...o});f.displayName=a.Command.Empty.displayName;var y=({ref:e,className:o,...t})=>(0,m.jsx)(a.Command.Group,{ref:e,className:r("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t});y.displayName=a.Command.Group.displayName;var g=({ref:e,className:o,...t})=>(0,m.jsx)(a.Command.Separator,{ref:e,className:r("bg-border -mx-1 h-px",o),...t});g.displayName=a.Command.Separator.displayName;var x=({ref:e,className:o,...t})=>(0,m.jsx)(a.Command.Item,{ref:e,className:r("group data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o),...t});x.displayName=a.Command.Item.displayName;0&&(module.exports={Command,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a,b,c,d,e,f,g}from"../../chunk-SRZFZUN4.mjs";import"../../chunk-CFBUY7KY.mjs";export{a as Command,d as CommandEmpty,e as CommandGroup,b as CommandInput,g as CommandItem,c as CommandList,f as CommandSeparator};
|