@customafk/lunas-ui 0.0.81 → 0.0.83
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/dist/{button-D6hzitQh.d.cts → button-BRh46Vhx.d.cts} +4 -4
- package/dist/{button-DKcU4dim.d.ts → button-DIPXcr_W.d.ts} +6 -6
- package/dist/{command-KnD1dAzj.d.ts → command-D3-KujCH.d.cts} +12 -12
- package/dist/{command-BCHEIInv.d.cts → command-D3q0OaKb.d.ts} +12 -12
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-MCM90IpD.d.cts → dialog-BWtARDnm.d.ts} +12 -12
- package/dist/{dialog-lKVaxcfs.d.ts → dialog-D5Oj_FUV.d.cts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +28 -28
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/drawer-BT0osH1O.js +2 -0
- package/dist/{drawer-DRC3X2-U.js.map → drawer-BT0osH1O.js.map} +1 -1
- package/dist/drawer-C3vvvU_D.cjs +2 -0
- package/dist/{drawer-70cz3SPB.cjs.map → drawer-C3vvvU_D.cjs.map} +1 -1
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-EieQSty7.d.cts → input-B_LC16rD.d.cts} +3 -3
- package/dist/{input-BbxBfHG5.d.ts → input-D0_NPJao.d.ts} +3 -3
- package/dist/{label-Bfd7VFEe.d.cts → label-BxG8BdVi.d.cts} +3 -3
- package/dist/label-CGASn94e.d.ts +11 -0
- package/dist/layouts/app-layout/index.d.cts +28 -28
- package/dist/layouts/app-layout/index.d.ts +28 -28
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/service-layout/index.cjs +1 -1
- package/dist/layouts/service-layout/index.d.cts +15 -15
- package/dist/layouts/service-layout/index.d.ts +15 -15
- package/dist/layouts/service-layout/index.js +1 -1
- package/dist/{separator-LYCmJYd5.d.ts → separator-3Tqllk9s.d.ts} +3 -3
- package/dist/{separator-BBWO-2XW.d.cts → separator-Dxf2wDl5.d.cts} +3 -3
- package/dist/table/index.d.cts +2 -2
- package/dist/{toggle-DaTd0CKm.d.ts → toggle-BNUNuWcd.d.ts} +3 -3
- package/dist/{toggle-Bhwgx-y_.d.cts → toggle-C7HTp7p1.d.cts} +3 -3
- package/dist/{tooltip-B3mrjes6.d.cts → tooltip-BNynBa87.d.cts} +6 -6
- package/dist/{tooltip-IMUjBDRr.d.ts → tooltip-Clkt7Knc.d.ts} +6 -6
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +5 -5
- package/dist/ui/alert.d.ts +7 -7
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button-group.d.cts +7 -7
- package/dist/ui/button-group.d.ts +7 -7
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/drawer.cjs +1 -0
- package/dist/ui/drawer.d.cts +44 -0
- package/dist/ui/drawer.d.ts +44 -0
- package/dist/ui/drawer.js +1 -0
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/field.d.cts +14 -14
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.ts +15 -15
- package/dist/ui/label.d.cts +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +28 -28
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +9 -1
- package/dist/drawer-70cz3SPB.cjs +0 -2
- package/dist/drawer-DRC3X2-U.js +0 -2
- package/dist/label-DlBHUp00.d.ts +0 -11
package/dist/ui/sidebar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import"../dist-BgkALM7U.js";import"../button-variants-Y1GTBayz.js";import{Button as e}from"../button-CYsnwc1-.js";import{Skeleton as t}from"../skeleton-ByN-MrQO.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-BTrjCwd8.js";import{Separator as o}from"../separator-D17HxS2f.js";import{Drawer as s,DrawerContent as c,DrawerDescription as l,DrawerHeader as u}from"../drawer-DRC3X2-U.js";import{Input as d}from"../input-BStypTnq.js";import{MenuIcon as f}from"lucide-react";import{cn as p}from"@customafk/react-toolkit/utils";import{createContext as m,useCallback as h,useContext as g,useEffect as _,useMemo as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{cva as S}from"class-variance-authority";import{Slot as C}from"radix-ui";import{useIsMobile as w}from"@customafk/react-toolkit/hooks/useMobile";const T=m(null);function E(){let e=g(T);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function D({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=w(),[l,u]=y(!1),[d,f]=y(e),m=t??d,g=h(e=>{let t=typeof e==`function`?e(m):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,m]),x=h(()=>c?u(e=>!e):g(e=>!e),[c,g,u]);_(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),x())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]);let S=m?`expanded`:`collapsed`,C=v(()=>({state:S,isMobile:c,toggleSidebar:x,open:m,setOpen:g,openMobile:l,setOpenMobile:u}),[S,m,g,c,l,u,x]);return b(T.Provider,{value:C,children:b(i,{delayDuration:0,children:b(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:p(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function O({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:d,openMobile:f,setOpenMobile:m}=E();return n===`none`?b(`aside`,{"data-slot":`sidebar`,className:p(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?b(s,{open:f,onOpenChange:m,direction:`left`,children:x(c,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[x(u,{className:`sr-only`,children:[b(c,{children:`Sidebar`}),b(l,{children:`Displays the mobile sidebar.`})]}),b(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):x(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[b(`div`,{"data-slot":`sidebar-gap`,className:p(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),b(`div`,{"data-slot":`sidebar-container`,className:p(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`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`,r),...a,children:b(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:p(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function k({className:t,onClick:n,...r}){let{toggleSidebar:i}=E();return x(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:p(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[b(f,{className:`!size-6`}),b(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function A({className:e,...t}){let{toggleSidebar:n}=E();return b(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:p(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`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`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]: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`,e),...t})}function j({className:e,children:t,...n}){return x(`main`,{"data-slot":`sidebar-inset`,className:p(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[b(`div`,{className:`h-14 w-full`}),b(`div`,{className:p(`flex-1 inset-shadow-sm`),children:t})]})}function M({className:e,...t}){return b(d,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:p(`bg-background h-8 w-full shadow-none`,e),...t})}function N({className:e,...t}){return b(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:p(`flex flex-col gap-2 p-2`,e),...t})}function P({className:e,...t}){return b(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:p(`flex flex-col gap-2 p-2`,e),...t})}function F({className:e,...t}){return b(o,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:p(`bg-sidebar-border mx-2 w-auto`,e),...t})}function I({className:e,...t}){return b(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:p(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function L({className:e,...t}){return b(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:p(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function R({className:e,asChild:t=!1,...n}){let r=t?C.Slot:`div`;return b(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:p(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function z({className:e,asChild:t=!1,...n}){let r=t?C.Slot:`button`;return b(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:p(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function B({className:e,...t}){return b(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:p(`w-full text-sm`,e),...t})}function V({className:e,...t}){return b(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:p(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function H({className:e,...t}){return b(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:p(`group/menu-item relative`,e),...t})}const U=S([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden 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-sidebar-accent`,`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:`hover:bg-sidebar-accent 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`}});function W({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?C.Slot:`button`,{isMobile:d,state:f}=E(),m=b(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:p(U({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),x(n,{children:[b(a,{asChild:!0,children:m}),b(r,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):m}function G({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?C.Slot:`button`;return b(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:p(`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 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after: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`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function K({className:e,...t}){return b(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:p(`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`,e),...t})}function q({className:e,showIcon:n=!1,...r}){let i=v(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return x(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:p(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&b(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),b(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function J({className:e,...t}){return b(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:p(`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`,e),...t})}function Y({className:e,...t}){return b(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:p(`group/menu-sub-item relative`,e),...t})}function X({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?C.Slot:`a`;return b(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:p(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`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`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{O as Sidebar,I as SidebarContent,P as SidebarFooter,L as SidebarGroup,z as SidebarGroupAction,B as SidebarGroupContent,R as SidebarGroupLabel,N as SidebarHeader,M as SidebarInput,j as SidebarInset,V as SidebarMenu,G as SidebarMenuAction,K as SidebarMenuBadge,W as SidebarMenuButton,H as SidebarMenuItem,q as SidebarMenuSkeleton,J as SidebarMenuSub,X as SidebarMenuSubButton,Y as SidebarMenuSubItem,D as SidebarProvider,A as SidebarRail,F as SidebarSeparator,k as SidebarTrigger,E as useSidebar};
|
|
1
|
+
"use client";import"../dist-BgkALM7U.js";import"../button-variants-Y1GTBayz.js";import{Button as e}from"../button-CYsnwc1-.js";import{Skeleton as t}from"../skeleton-ByN-MrQO.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-BTrjCwd8.js";import{Separator as o}from"../separator-D17HxS2f.js";import{Drawer as s,DrawerContent as c,DrawerDescription as l,DrawerHeader as u}from"../drawer-BT0osH1O.js";import{Input as d}from"../input-BStypTnq.js";import{MenuIcon as f}from"lucide-react";import{cn as p}from"@customafk/react-toolkit/utils";import{createContext as m,useCallback as h,useContext as g,useEffect as _,useMemo as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{cva as S}from"class-variance-authority";import{Slot as C}from"radix-ui";import{useIsMobile as w}from"@customafk/react-toolkit/hooks/useMobile";const T=m(null);function E(){let e=g(T);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function D({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...s}){let c=w(),[l,u]=y(!1),[d,f]=y(e),m=t??d,g=h(e=>{let t=typeof e==`function`?e(m):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,m]),x=h(()=>c?u(e=>!e):g(e=>!e),[c,g,u]);_(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),x())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]);let S=m?`expanded`:`collapsed`,C=v(()=>({state:S,isMobile:c,toggleSidebar:x,open:m,setOpen:g,openMobile:l,setOpenMobile:u}),[S,m,g,c,l,u,x]);return b(T.Provider,{value:C,children:b(i,{delayDuration:0,children:b(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:p(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:o})})})}function O({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:d,openMobile:f,setOpenMobile:m}=E();return n===`none`?b(`aside`,{"data-slot":`sidebar`,className:p(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):o?b(s,{open:f,onOpenChange:m,direction:`left`,children:x(c,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[x(u,{className:`sr-only`,children:[b(c,{children:`Sidebar`}),b(l,{children:`Displays the mobile sidebar.`})]}),b(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):x(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[b(`div`,{"data-slot":`sidebar-gap`,className:p(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),b(`div`,{"data-slot":`sidebar-container`,className:p(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`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`,r),...a,children:b(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:p(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function k({className:t,onClick:n,...r}){let{toggleSidebar:i}=E();return x(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:p(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[b(f,{className:`!size-6`}),b(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function A({className:e,...t}){let{toggleSidebar:n}=E();return b(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:p(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`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`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]: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`,e),...t})}function j({className:e,children:t,...n}){return x(`main`,{"data-slot":`sidebar-inset`,className:p(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[b(`div`,{className:`h-14 w-full`}),b(`div`,{className:p(`flex-1 inset-shadow-sm`),children:t})]})}function M({className:e,...t}){return b(d,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:p(`bg-background h-8 w-full shadow-none`,e),...t})}function N({className:e,...t}){return b(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:p(`flex flex-col gap-2 p-2`,e),...t})}function P({className:e,...t}){return b(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:p(`flex flex-col gap-2 p-2`,e),...t})}function F({className:e,...t}){return b(o,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:p(`bg-sidebar-border mx-2 w-auto`,e),...t})}function I({className:e,...t}){return b(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:p(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function L({className:e,...t}){return b(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:p(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function R({className:e,asChild:t=!1,...n}){let r=t?C.Slot:`div`;return b(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:p(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function z({className:e,asChild:t=!1,...n}){let r=t?C.Slot:`button`;return b(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:p(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function B({className:e,...t}){return b(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:p(`w-full text-sm`,e),...t})}function V({className:e,...t}){return b(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:p(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function H({className:e,...t}){return b(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:p(`group/menu-item relative`,e),...t})}const U=S([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden 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-sidebar-accent`,`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:`hover:bg-sidebar-accent 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`}});function W({asChild:e=!1,isActive:t=!1,variant:i=`default`,size:o=`default`,tooltip:s,className:c,...l}){let u=e?C.Slot:`button`,{isMobile:d,state:f}=E(),m=b(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":o,"data-active":t,className:p(U({variant:i,size:o}),c),...l});return s?(typeof s==`string`&&(s={children:s}),x(n,{children:[b(a,{asChild:!0,children:m}),b(r,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...s})]})):m}function G({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?C.Slot:`button`;return b(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:p(`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 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after: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`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function K({className:e,...t}){return b(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:p(`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`,e),...t})}function q({className:e,showIcon:n=!1,...r}){let i=v(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return x(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:p(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&b(t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),b(t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function J({className:e,...t}){return b(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:p(`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`,e),...t})}function Y({className:e,...t}){return b(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:p(`group/menu-sub-item relative`,e),...t})}function X({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?C.Slot:`a`;return b(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:p(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`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`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}export{O as Sidebar,I as SidebarContent,P as SidebarFooter,L as SidebarGroup,z as SidebarGroupAction,B as SidebarGroupContent,R as SidebarGroupLabel,N as SidebarHeader,M as SidebarInput,j as SidebarInset,V as SidebarMenu,G as SidebarMenuAction,K as SidebarMenuBadge,W as SidebarMenuButton,H as SidebarMenuItem,q as SidebarMenuSkeleton,J as SidebarMenuSub,X as SidebarMenuSubButton,Y as SidebarMenuSubItem,D as SidebarProvider,A as SidebarRail,F as SidebarSeparator,k as SidebarTrigger,E as useSidebar};
|
|
2
2
|
//# sourceMappingURL=sidebar.js.map
|
package/dist/ui/skeleton.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime228 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime228.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
10
10
|
//# sourceMappingURL=skeleton.d.cts.map
|
package/dist/ui/skeleton.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime189 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime189.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
10
10
|
//# sourceMappingURL=skeleton.d.ts.map
|
package/dist/ui/slider.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime227 from "react/jsx-runtime";
|
|
2
2
|
import { Slider as Slider$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/slider.d.ts
|
|
@@ -9,7 +9,7 @@ declare function Slider({
|
|
|
9
9
|
min,
|
|
10
10
|
max,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Slider$1.Root>):
|
|
12
|
+
}: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime227.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Slider };
|
|
15
15
|
//# sourceMappingURL=slider.d.cts.map
|
package/dist/ui/slider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime178 from "react/jsx-runtime";
|
|
2
2
|
import { Slider as Slider$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/slider.d.ts
|
|
@@ -9,7 +9,7 @@ declare function Slider({
|
|
|
9
9
|
min,
|
|
10
10
|
max,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Slider$1.Root>):
|
|
12
|
+
}: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime178.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Slider };
|
|
15
15
|
//# sourceMappingURL=slider.d.ts.map
|
package/dist/ui/sonner.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime229 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/sonner.d.ts
|
|
4
|
-
declare const Toaster: () =>
|
|
4
|
+
declare const Toaster: () => react_jsx_runtime229.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Toaster, Toaster as default };
|
|
7
7
|
//# sourceMappingURL=sonner.d.cts.map
|
package/dist/ui/sonner.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime170 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/sonner.d.ts
|
|
4
|
-
declare const Toaster: () =>
|
|
4
|
+
declare const Toaster: () => react_jsx_runtime170.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Toaster, Toaster as default };
|
|
7
7
|
//# sourceMappingURL=sonner.d.ts.map
|
package/dist/ui/spinner.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime254 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/spinner.d.ts
|
|
4
4
|
declare function Spinner({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'svg'>):
|
|
7
|
+
}: React.ComponentProps<'svg'>): react_jsx_runtime254.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Spinner };
|
|
10
10
|
//# sourceMappingURL=spinner.d.cts.map
|
package/dist/ui/spinner.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime156 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/spinner.d.ts
|
|
4
4
|
declare function Spinner({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'svg'>):
|
|
7
|
+
}: React.ComponentProps<'svg'>): react_jsx_runtime156.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Spinner };
|
|
10
10
|
//# sourceMappingURL=spinner.d.ts.map
|
package/dist/ui/switch.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime230 from "react/jsx-runtime";
|
|
2
2
|
import { Switch as Switch$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/switch.d.ts
|
|
5
5
|
declare function Switch({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime230.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch };
|
|
11
11
|
//# sourceMappingURL=switch.d.cts.map
|
package/dist/ui/switch.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime123 from "react/jsx-runtime";
|
|
2
2
|
import { Switch as Switch$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/switch.d.ts
|
|
5
5
|
declare function Switch({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Switch$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime123.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Switch };
|
|
11
11
|
//# sourceMappingURL=switch.d.ts.map
|
package/dist/ui/table.d.cts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime259 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
declare function Table({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'table'>):
|
|
7
|
+
}: React.ComponentProps<'table'>): react_jsx_runtime259.JSX.Element;
|
|
8
8
|
declare function TableHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'thead'>):
|
|
11
|
+
}: React.ComponentProps<'thead'>): react_jsx_runtime259.JSX.Element;
|
|
12
12
|
declare function TableBody({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'tbody'>):
|
|
15
|
+
}: React.ComponentProps<'tbody'>): react_jsx_runtime259.JSX.Element;
|
|
16
16
|
declare function TableFooter({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'tfoot'>):
|
|
19
|
+
}: React.ComponentProps<'tfoot'>): react_jsx_runtime259.JSX.Element;
|
|
20
20
|
declare function TableRow({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'tr'>):
|
|
23
|
+
}: React.ComponentProps<'tr'>): react_jsx_runtime259.JSX.Element;
|
|
24
24
|
declare function TableHead({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'th'>):
|
|
27
|
+
}: React.ComponentProps<'th'>): react_jsx_runtime259.JSX.Element;
|
|
28
28
|
declare function TableCell({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'td'>):
|
|
31
|
+
}: React.ComponentProps<'td'>): react_jsx_runtime259.JSX.Element;
|
|
32
32
|
declare function TableCaption({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<'caption'>):
|
|
35
|
+
}: React.ComponentProps<'caption'>): react_jsx_runtime259.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
38
38
|
//# sourceMappingURL=table.d.cts.map
|
package/dist/ui/table.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime162 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/table.d.ts
|
|
4
4
|
declare function Table({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'table'>):
|
|
7
|
+
}: React.ComponentProps<'table'>): react_jsx_runtime162.JSX.Element;
|
|
8
8
|
declare function TableHeader({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<'thead'>):
|
|
11
|
+
}: React.ComponentProps<'thead'>): react_jsx_runtime162.JSX.Element;
|
|
12
12
|
declare function TableBody({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<'tbody'>):
|
|
15
|
+
}: React.ComponentProps<'tbody'>): react_jsx_runtime162.JSX.Element;
|
|
16
16
|
declare function TableFooter({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<'tfoot'>):
|
|
19
|
+
}: React.ComponentProps<'tfoot'>): react_jsx_runtime162.JSX.Element;
|
|
20
20
|
declare function TableRow({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}: React.ComponentProps<'tr'>):
|
|
23
|
+
}: React.ComponentProps<'tr'>): react_jsx_runtime162.JSX.Element;
|
|
24
24
|
declare function TableHead({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<'th'>):
|
|
27
|
+
}: React.ComponentProps<'th'>): react_jsx_runtime162.JSX.Element;
|
|
28
28
|
declare function TableCell({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<'td'>):
|
|
31
|
+
}: React.ComponentProps<'td'>): react_jsx_runtime162.JSX.Element;
|
|
32
32
|
declare function TableCaption({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<'caption'>):
|
|
35
|
+
}: React.ComponentProps<'caption'>): react_jsx_runtime162.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
38
38
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/ui/tabs.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime255 from "react/jsx-runtime";
|
|
2
2
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
5
5
|
declare function Tabs({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime255.JSX.Element;
|
|
9
9
|
declare function TabsList({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
12
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime255.JSX.Element;
|
|
13
13
|
declare function TabsTrigger({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
16
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime255.JSX.Element;
|
|
17
17
|
declare function TabsContent({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime255.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
23
23
|
//# sourceMappingURL=tabs.d.cts.map
|
package/dist/ui/tabs.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime174 from "react/jsx-runtime";
|
|
2
2
|
import { Tabs as Tabs$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tabs.d.ts
|
|
5
5
|
declare function Tabs({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tabs$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime174.JSX.Element;
|
|
9
9
|
declare function TabsList({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof Tabs$1.List>):
|
|
12
|
+
}: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime174.JSX.Element;
|
|
13
13
|
declare function TabsTrigger({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Tabs$1.Trigger>):
|
|
16
|
+
}: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime174.JSX.Element;
|
|
17
17
|
declare function TabsContent({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tabs$1.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime174.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
23
23
|
//# sourceMappingURL=tabs.d.ts.map
|
package/dist/ui/textarea.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime267 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/textarea.d.ts
|
|
4
4
|
declare function Textarea({
|
|
@@ -8,7 +8,7 @@ declare function Textarea({
|
|
|
8
8
|
...props
|
|
9
9
|
}: React.ComponentProps<'textarea'> & {
|
|
10
10
|
onValueChange?: (value: string) => void;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime267.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Textarea };
|
|
14
14
|
//# sourceMappingURL=textarea.d.cts.map
|
package/dist/ui/textarea.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime188 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/ui/textarea.d.ts
|
|
4
4
|
declare function Textarea({
|
|
@@ -8,7 +8,7 @@ declare function Textarea({
|
|
|
8
8
|
...props
|
|
9
9
|
}: React.ComponentProps<'textarea'> & {
|
|
10
10
|
onValueChange?: (value: string) => void;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime188.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Textarea };
|
|
14
14
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toggleVariants } from "../toggle-
|
|
2
|
-
import * as
|
|
1
|
+
import { toggleVariants } from "../toggle-C7HTp7p1.cjs";
|
|
2
|
+
import * as react_jsx_runtime268 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
5
5
|
|
|
@@ -10,14 +10,14 @@ declare function ToggleGroup({
|
|
|
10
10
|
size,
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
13
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime268.JSX.Element;
|
|
14
14
|
declare function ToggleGroupItem({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
variant,
|
|
18
18
|
size,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
20
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime268.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ToggleGroup, ToggleGroupItem };
|
|
23
23
|
//# sourceMappingURL=toggle-group.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toggleVariants } from "../toggle-
|
|
2
|
-
import * as
|
|
1
|
+
import { toggleVariants } from "../toggle-BNUNuWcd.js";
|
|
2
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
5
5
|
|
|
@@ -10,14 +10,14 @@ declare function ToggleGroup({
|
|
|
10
10
|
size,
|
|
11
11
|
children,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
13
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime104.JSX.Element;
|
|
14
14
|
declare function ToggleGroupItem({
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
variant,
|
|
18
18
|
size,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
20
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime104.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ToggleGroup, ToggleGroupItem };
|
|
23
23
|
//# sourceMappingURL=toggle-group.d.ts.map
|
package/dist/ui/toggle.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Toggle, toggleVariants } from "../toggle-
|
|
1
|
+
import { Toggle, toggleVariants } from "../toggle-C7HTp7p1.cjs";
|
|
2
2
|
export { Toggle, toggleVariants };
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Toggle, toggleVariants } from "../toggle-
|
|
1
|
+
import { Toggle, toggleVariants } from "../toggle-BNUNuWcd.js";
|
|
2
2
|
export { Toggle, toggleVariants };
|
package/dist/ui/tooltip.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-
|
|
1
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-BNynBa87.cjs";
|
|
2
2
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-
|
|
1
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-Clkt7Knc.js";
|
|
2
2
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customafk/lunas-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.83",
|
|
4
4
|
"description": "UI library for Lunas Enterprise",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"node": ">= 22.0.0"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
|
+
"./styles/base": "./styles/base.css",
|
|
29
|
+
"./styles/loader": "./styles/loader.css",
|
|
30
|
+
"./styles/theme": "./styles/theme.css",
|
|
31
|
+
"./styles/typography": "./styles/typography.css",
|
|
28
32
|
"./cards/grid-product-card": {
|
|
29
33
|
"import": "./dist/cards/grid-product-card.js",
|
|
30
34
|
"require": "./dist/cards/grid-product-card.cjs"
|
|
@@ -253,6 +257,10 @@
|
|
|
253
257
|
"import": "./dist/ui/dialog.js",
|
|
254
258
|
"require": "./dist/ui/dialog.cjs"
|
|
255
259
|
},
|
|
260
|
+
"./ui/drawer": {
|
|
261
|
+
"import": "./dist/ui/drawer.js",
|
|
262
|
+
"require": "./dist/ui/drawer.cjs"
|
|
263
|
+
},
|
|
256
264
|
"./ui/dropdown-menu": {
|
|
257
265
|
"import": "./dist/ui/dropdown-menu.js",
|
|
258
266
|
"require": "./dist/ui/dropdown-menu.cjs"
|
package/dist/drawer-70cz3SPB.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-CUT6urMc.cjs`);let t=require(`@customafk/react-toolkit/utils`);t=e.__toESM(t);let n=require(`react/jsx-runtime`);n=e.__toESM(n);let r=require(`vaul`);r=e.__toESM(r);function i({...e}){return(0,n.jsx)(r.Drawer.Root,{"data-slot":`drawer`,...e})}function a({...e}){return(0,n.jsx)(r.Drawer.Portal,{"data-slot":`drawer-portal`,...e})}function o({className:e,...i}){return(0,n.jsx)(r.Drawer.Overlay,{"data-slot":`drawer-overlay`,className:(0,t.cn)(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,e),...i})}function s({className:e,children:i,...s}){return(0,n.jsxs)(a,{"data-slot":`drawer-portal`,children:[(0,n.jsx)(o,{}),(0,n.jsxs)(r.Drawer.Content,{"data-slot":`drawer-content`,className:(0,t.cn)(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...s,children:[(0,n.jsx)(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),i]})]})}function c({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`drawer-header`,className:(0,t.cn)(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,e),...r})}function l({className:e,...r}){return(0,n.jsx)(`div`,{"data-slot":`drawer-footer`,className:(0,t.cn)(`mt-auto flex flex-col gap-2 p-4`,e),...r})}function u({className:e,...i}){return(0,n.jsx)(r.Drawer.Title,{"data-slot":`drawer-title`,className:(0,t.cn)(`text-text-positive font-semibold`,e),...i})}function d({className:e,...i}){return(0,n.jsx)(r.Drawer.Description,{"data-slot":`drawer-description`,className:(0,t.cn)(`text-text-positive-weak text-sm`,e),...i})}Object.defineProperty(exports,`Drawer`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`DrawerContent`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`DrawerDescription`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`DrawerFooter`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`DrawerHeader`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`DrawerTitle`,{enumerable:!0,get:function(){return u}});
|
|
2
|
-
//# sourceMappingURL=drawer-70cz3SPB.cjs.map
|
package/dist/drawer-DRC3X2-U.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{Drawer as r}from"vaul";function i({...e}){return t(r.Root,{"data-slot":`drawer`,...e})}function a({...e}){return t(r.Portal,{"data-slot":`drawer-portal`,...e})}function o({className:n,...i}){return t(r.Overlay,{"data-slot":`drawer-overlay`,className:e(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=closed]:animate-out`,`data-[state=open]:fade-in-0`,`data-[state=closed]:fade-out-0`,n),...i})}function s({className:i,children:s,...c}){return n(a,{"data-slot":`drawer-portal`,children:[t(o,{}),n(r.Content,{"data-slot":`drawer-content`,className:e(`group/drawer-content bg-background shadow-card fixed z-50 flex h-auto flex-col`,`data-[vaul-drawer-direction=top]:inset-x-0`,`data-[vaul-drawer-direction=top]:top-0`,`data-[vaul-drawer-direction=top]:mb-24`,`data-[vaul-drawer-direction=top]:max-h-[80vh]`,`data-[vaul-drawer-direction=top]:rounded-b-lg`,`data-[vaul-drawer-direction=bottom]:inset-x-0`,`data-[vaul-drawer-direction=bottom]:bottom-0`,`data-[vaul-drawer-direction=bottom]:mt-24`,`data-[vaul-drawer-direction=bottom]:max-h-[80vh]`,`data-[vaul-drawer-direction=bottom]:rounded-t-lg`,`data-[vaul-drawer-direction=right]:inset-y-0`,`data-[vaul-drawer-direction=right]:right-0`,`data-[vaul-drawer-direction=right]:w-3/4`,`data-[vaul-drawer-direction=right]:sm:max-w-sm`,`data-[vaul-drawer-direction=left]:inset-y-0`,`data-[vaul-drawer-direction=left]:left-0`,`data-[vaul-drawer-direction=left]:w-3/4`,`data-[vaul-drawer-direction=left]:sm:max-w-sm`,i),...c,children:[t(`div`,{className:`bg-border-weak mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),s]})]})}function c({className:n,...r}){return t(`div`,{"data-slot":`drawer-header`,className:e(`flex flex-col gap-0.5 p-4`,`md:gap-1.5 md:text-left`,`group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center`,`group-data-[vaul-drawer-direction=top]/drawer-content:text-center`,n),...r})}function l({className:n,...r}){return t(`div`,{"data-slot":`drawer-footer`,className:e(`mt-auto flex flex-col gap-2 p-4`,n),...r})}function u({className:n,...i}){return t(r.Title,{"data-slot":`drawer-title`,className:e(`text-text-positive font-semibold`,n),...i})}function d({className:n,...i}){return t(r.Description,{"data-slot":`drawer-description`,className:e(`text-text-positive-weak text-sm`,n),...i})}export{i as Drawer,s as DrawerContent,d as DrawerDescription,l as DrawerFooter,c as DrawerHeader,u as DrawerTitle};
|
|
2
|
-
//# sourceMappingURL=drawer-DRC3X2-U.js.map
|
package/dist/label-DlBHUp00.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime143 from "react/jsx-runtime";
|
|
2
|
-
import { Label } from "radix-ui";
|
|
3
|
-
|
|
4
|
-
//#region packages/components/ui/label.d.ts
|
|
5
|
-
declare function Label$1({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof Label.Root>): react_jsx_runtime143.JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Label$1 as Label };
|
|
11
|
-
//# sourceMappingURL=label-DlBHUp00.d.ts.map
|