ml-uikit 1.1.2 → 1.1.4
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/components/ui/phone-countries.d.ts +9 -0
- package/dist/components/ui/phone-countries.d.ts.map +1 -0
- package/dist/components/ui/phone-input.d.ts +18 -0
- package/dist/components/ui/phone-input.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +6 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +2 -0
- package/dist/index.cjs58.js.map +1 -0
- package/dist/index.cjs59.js +2 -0
- package/dist/index.cjs59.js.map +1 -0
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +243 -239
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +2 -2
- package/dist/index.es13.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +2 -2
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +2 -2
- package/dist/index.es3.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +149 -182
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +253 -29
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +183 -14
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +29 -93
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +10 -185
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +92 -96
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +171 -76
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +92 -16
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +92 -19
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +19 -28
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +16 -26
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +21 -109
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +33 -21
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +163 -80
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +17 -552
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +98 -14
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +543 -34
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +12 -19
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +45 -13
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +20 -25
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +14 -205
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +24 -46
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +202 -14
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +44 -29
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +15 -35
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +32 -18
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +38 -6
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +23 -0
- package/dist/index.es58.js.map +1 -0
- package/dist/index.es59.js +9 -0
- package/dist/index.es59.js.map +1 -0
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/style.css +127 -11
- package/package.json +1 -1
package/dist/index.es47.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es47.js","sources":["../src/components/ui/slider.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, disabled, value, defaultValue, ...props }, ref) => {\n const thumbValues = Array.isArray(value)\n ? value\n : Array.isArray(defaultValue)\n ? defaultValue\n : [0]\n const isRange = thumbValues.length > 1\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n data-disabled={disabled ? \"true\" : undefined}\n disabled={disabled}\n className={cn(\n \"group/slider relative flex w-full touch-none select-none items-center\",\n className\n )}\n value={value}\n defaultValue={defaultValue}\n {...props}\n >\n <SliderPrimitive.Track\n className={cn(\n \"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]\"\n )}\n >\n <SliderPrimitive.Range\n className={cn(\n \"absolute z-0 h-full bg-[#26453f]\",\n isRange ? \"rounded-full\" : \"rounded-l-full\"\n )}\n />\n </SliderPrimitive.Track>\n {thumbValues.map((_, index) => (\n <SliderPrimitive.Thumb\n key={`thumb-${index}`}\n className=\"block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n />\n ))}\n </SliderPrimitive.Root>\n )\n})\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"],"names":["Slider","React","className","disabled","value","defaultValue","props","ref","thumbValues","isRange","SliderPrimitive","cn","_","index"],"mappings":";;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,OAAAC,GAAO,cAAAC,GAAc,GAAGC,EAAA,GAASC,MAAQ;AACjE,QAAMC,IAAc,MAAM,QAAQJ,CAAK,IACnCA,IACA,MAAM,QAAQC,CAAY,IAC1BA,IACA,CAAC,CAAC,GACAI,IAAUD,EAAY,SAAS;AAErC,SACE,gBAAAP,EAAA;AAAA,IAACS,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAH;AAAA,MACA,iBAAeJ,IAAW,SAAS;AAAA,MACnC,UAAAA;AAAA,MACA,WAAWQ;AAAA,QACT;AAAA,QACAT;AAAA,MAAA;AAAA,MAEF,OAAAE;AAAA,MACA,cAAAC;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,QAAA;AAAA,MACF;AAAA,MAEA,gBAAAV,EAAA;AAAA,QAACS,EAAgB;AAAA,QAAhB;AAAA,UACC,WAAWC;AAAA,YACT;AAAA,YACAF,IAAU,iBAAiB;AAAA,UAAA;AAAA,QAC7B;AAAA,MAAA;AAAA,IACF;AAAA,IAEDD,EAAY,IAAI,CAACI,GAAGC,MACnB,gBAAAZ,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,KAAK,SAASG,CAAK;AAAA,QACnB,WAAU;AAAA,MAAA;AAAA,IAAA,CAEb;AAAA,EAAA;AAGP,CAAC;AACDb,EAAO,cAAcU,EAAgB,KAAK;"}
|
|
1
|
+
{"version":3,"file":"index.es47.js","sources":["../src/components/ui/sidebar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { PanelLeft } from \"lucide-react\"\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Separator } from \"@/components/ui/separator\"\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from \"@/components/ui/sheet\"\nimport { Skeleton } from \"@/components/ui/skeleton\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n\nconst SIDEBAR_COOKIE_NAME = \"sidebar_state\"\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = \"15rem\"\nconst SIDEBAR_WIDTH_MOBILE = \"15rem\"\nconst SIDEBAR_WIDTH_ICON = \"4.5rem\"\nconst SIDEBAR_BREAKPOINT = 1024\nconst SIDEBAR_KEYBOARD_SHORTCUT = \"b\"\n\nfunction useIsTabletOrMobile() {\n const [isTabletOrMobile, setIsTabletOrMobile] = React.useState<\n boolean | undefined\n >(undefined)\n\n React.useEffect(() => {\n const media = window.matchMedia(`(max-width: ${SIDEBAR_BREAKPOINT - 1}px)`)\n const onChange = () => {\n setIsTabletOrMobile(media.matches)\n }\n\n onChange()\n\n if (typeof media.addEventListener === \"function\") {\n media.addEventListener(\"change\", onChange)\n return () => media.removeEventListener(\"change\", onChange)\n }\n\n media.addListener(onChange)\n return () => media.removeListener(onChange)\n }, [])\n\n return !!isTabletOrMobile\n}\n\ntype SidebarContextProps = {\n state: \"expanded\" | \"collapsed\"\n open: boolean\n setOpen: (open: boolean) => void\n openMobile: boolean\n setOpenMobile: (open: boolean) => void\n isMobile: boolean\n toggleSidebar: () => void\n}\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null)\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext)\n if (!context) {\n throw new Error(\"useSidebar must be used within a SidebarProvider.\")\n }\n\n return context\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n defaultOpen?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n ...props\n },\n ref\n ) => {\n const isMobile = useIsTabletOrMobile()\n const [openMobile, setOpenMobile] = React.useState(false)\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen)\n const open = openProp ?? _open\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === \"function\" ? value(open) : value\n if (setOpenProp) {\n setOpenProp(openState)\n } else {\n _setOpen(openState)\n }\n\n // This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n },\n [setOpenProp, open]\n )\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return isMobile\n ? setOpenMobile((open) => !open)\n : setOpen((open) => !open)\n }, [isMobile, setOpen, setOpenMobile])\n\n // Adds a keyboard shortcut to toggle the sidebar.\n React.useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (\n event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n (event.metaKey || event.ctrlKey)\n ) {\n event.preventDefault()\n toggleSidebar()\n }\n }\n\n window.addEventListener(\"keydown\", handleKeyDown)\n return () => window.removeEventListener(\"keydown\", handleKeyDown)\n }, [toggleSidebar])\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? \"expanded\" : \"collapsed\"\n\n const contextValue = React.useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]\n )\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH,\n \"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n ...style,\n } as React.CSSProperties\n }\n className={cn(\n \"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar\",\n className\n )}\n ref={ref}\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n )\n }\n)\nSidebarProvider.displayName = \"SidebarProvider\"\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n side?: \"left\" | \"right\"\n variant?: \"sidebar\" | \"floating\" | \"inset\"\n collapsible?: \"offcanvas\" | \"icon\" | \"none\"\n }\n>(\n (\n {\n side = \"left\",\n variant = \"sidebar\",\n collapsible = \"offcanvas\",\n className,\n children,\n ...props\n },\n ref\n ) => {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar()\n const desktopCollapsible = collapsible === \"offcanvas\" ? \"icon\" : collapsible\n\n if (collapsible === \"none\") {\n return (\n <div\n className={cn(\n \"flex h-full w-[--sidebar-width] flex-col border-r border-[#e6e6e6] bg-white text-black\",\n className\n )}\n ref={ref}\n {...props}\n >\n {children}\n </div>\n )\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n data-sidebar=\"sidebar\"\n data-mobile=\"true\"\n className={cn(\n \"w-[--sidebar-width] border-r border-[#e6e6e6] bg-white p-0 text-black shadow-none [&>button]:hidden\",\n className\n )}\n style={\n {\n \"--sidebar-width\": SIDEBAR_WIDTH_MOBILE,\n } as React.CSSProperties\n }\n side={side}\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n )\n }\n\n return (\n <div\n ref={ref}\n className=\"group peer hidden text-black lg:block\"\n data-state={state}\n data-collapsible={state === \"collapsed\" ? desktopCollapsible : \"\"}\n data-variant={variant}\n data-side={side}\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n className={cn(\n \"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear\",\n \"group-data-[collapsible=offcanvas]:w-0\",\n \"group-data-[side=right]:rotate-180\",\n variant === \"floating\"\n ? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]\"\n : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon]\"\n )}\n />\n <div\n className={cn(\n \"fixed inset-y-0 z-20 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear lg:flex\",\n side === \"left\"\n ? \"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\"\n : \"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\",\n // Adjust the padding for floating and inset variants.\n variant === \"floating\"\n ? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]\"\n : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=left]:border-[#e6e6e6] group-data-[side=right]:border-l group-data-[side=right]:border-[#e6e6e6]\",\n className\n )}\n {...props}\n >\n <div\n data-sidebar=\"sidebar\"\n className=\"flex h-full w-full flex-col bg-white text-black group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-[#e6e6e6] group-data-[variant=floating]:shadow\"\n >\n {children}\n </div>\n </div>\n </div>\n )\n }\n)\nSidebar.displayName = \"Sidebar\"\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef<typeof Button>,\n React.ComponentProps<typeof Button>\n>(({ className, onClick, ...props }, ref) => {\n const { isMobile, open, openMobile, toggleSidebar } = useSidebar()\n const isOpen = isMobile ? openMobile : open\n\n return (\n <Button\n ref={ref}\n data-sidebar=\"trigger\"\n variant=\"ghost\"\n size=\"icon\"\n data-state={isOpen ? \"open\" : \"closed\"}\n className={cn(\n \"h-9 w-9 rounded-lg border border-[#dcdcde] bg-white text-black hover:bg-[#fafafa] hover:text-black\",\n className\n )}\n onClick={(event) => {\n onClick?.(event)\n toggleSidebar()\n }}\n {...props}\n >\n <PanelLeft className=\"size-4\" />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n )\n})\nSidebarTrigger.displayName = \"SidebarTrigger\"\n\nconst SidebarRail = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\">\n>(({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar()\n\n return (\n <button\n ref={ref}\n data-sidebar=\"rail\"\n aria-label=\"Toggle Sidebar\"\n tabIndex={-1}\n onClick={toggleSidebar}\n title=\"Toggle Sidebar\"\n className={cn(\n \"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex\",\n \"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize\",\n \"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n \"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar\",\n \"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2\",\n \"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarRail.displayName = \"SidebarRail\"\n\nconst SidebarInset = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"main\">\n>(({ className, ...props }, ref) => {\n return (\n <main\n ref={ref}\n className={cn(\n \"relative flex w-full flex-1 flex-col bg-background\",\n \"lg:peer-data-[variant=inset]:m-2 lg:peer-data-[variant=inset]:ml-0 lg:peer-data-[variant=inset]:rounded-xl lg:peer-data-[variant=inset]:shadow\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarInset.displayName = \"SidebarInset\"\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef<typeof Input>,\n React.ComponentProps<typeof Input>\n>(({ className, ...props }, ref) => {\n return (\n <Input\n ref={ref}\n data-sidebar=\"input\"\n className={cn(\n \"h-10 w-full rounded-lg border-[#e6e6e6] bg-white text-black placeholder:text-[#adacb0] shadow-none focus-visible:ring-2 focus-visible:ring-[#26453f]\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarInput.displayName = \"SidebarInput\"\n\nconst SidebarHeader = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"header\"\n className={cn(\n \"flex flex-col gap-4 px-5 py-5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:px-4 group-data-[collapsible=icon]:py-4\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarHeader.displayName = \"SidebarHeader\"\n\nconst SidebarFooter = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"footer\"\n className={cn(\n \"flex flex-col gap-3 px-5 py-5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:px-4 group-data-[collapsible=icon]:py-4\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarFooter.displayName = \"SidebarFooter\"\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef<typeof Separator>,\n React.ComponentProps<typeof Separator>\n>(({ className, ...props }, ref) => {\n return (\n <Separator\n ref={ref}\n data-sidebar=\"separator\"\n className={cn(\"mx-0 w-full bg-[#e6e6e6]\", className)}\n {...props}\n />\n )\n})\nSidebarSeparator.displayName = \"SidebarSeparator\"\n\nconst SidebarContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"content\"\n className={cn(\n \"flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarContent.displayName = \"SidebarContent\"\n\nconst SidebarGroup = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-sidebar=\"group\"\n className={cn(\n \"relative flex w-full min-w-0 flex-col gap-2 px-5 py-5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:px-4\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarGroup.displayName = \"SidebarGroup\"\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\"\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"group-label\"\n className={cn(\n \"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium uppercase tracking-wide text-[#adacb0] outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n \"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarGroupLabel.displayName = \"SidebarGroupLabel\"\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"group-action\"\n className={cn(\n \"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 after:lg:hidden\",\n \"group-data-[collapsible=icon]:hidden\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarGroupAction.displayName = \"SidebarGroupAction\"\n\nconst SidebarGroupContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-sidebar=\"group-content\"\n className={cn(\"w-full text-sm\", className)}\n {...props}\n />\n))\nSidebarGroupContent.displayName = \"SidebarGroupContent\"\n\nconst SidebarMenu = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n data-sidebar=\"menu\"\n className={cn(\"flex w-full min-w-0 flex-col gap-2\", className)}\n {...props}\n />\n))\nSidebarMenu.displayName = \"SidebarMenu\"\n\nconst SidebarMenuItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li\n ref={ref}\n data-sidebar=\"menu-item\"\n className={cn(\"group/menu-item relative\", className)}\n {...props}\n />\n))\nSidebarMenuItem.displayName = \"SidebarMenuItem\"\n\nconst sidebarMenuButtonVariants = cva(\n \"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[4px] border border-transparent bg-white p-2 text-left text-sm font-normal text-[#7f7d83] outline-none ring-sidebar-ring transition-[background-color,border-color,color,width,height,padding] hover:border-[#f1f1f1] hover:bg-[#fafafa] hover:text-black focus-visible:ring-2 focus-visible:ring-[#26453f] active:border-[#f1f1f1] active:bg-[#fafafa] active:text-black 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]:border-[#f1f1f1] data-[active=true]:bg-[#fafafa] data-[active=true]:font-medium data-[active=true]:text-black data-[state=open]:border-[#f1f1f1] data-[state=open]:bg-[#fafafa] data-[state=open]:text-black group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!p-0 group-data-[collapsible=icon]:[&>span:last-child]:hidden [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"\",\n outline:\n \"border-[#e6e6e6] text-black hover:border-[#dcdcde] hover:bg-[#fafafa]\",\n },\n size: {\n default: \"h-10 text-sm\",\n sm: \"h-9 text-xs\",\n lg: \"h-11 text-sm\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & {\n asChild?: boolean\n isActive?: boolean\n tooltip?: string | React.ComponentProps<typeof TooltipContent>\n } & VariantProps<typeof sidebarMenuButtonVariants>\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = \"default\",\n size = \"default\",\n tooltip,\n className,\n ...props\n },\n ref\n ) => {\n const Comp = asChild ? Slot : \"button\"\n const { isMobile, state } = useSidebar()\n\n const button = (\n <Comp\n ref={ref}\n data-sidebar=\"menu-button\"\n data-size={size}\n data-active={isActive}\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n {...props}\n />\n )\n\n if (!tooltip) {\n return button\n }\n\n if (typeof tooltip === \"string\") {\n tooltip = {\n children: tooltip,\n }\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent\n side=\"right\"\n align=\"center\"\n hidden={state !== \"collapsed\" || isMobile}\n {...tooltip}\n />\n </Tooltip>\n )\n }\n)\nSidebarMenuButton.displayName = \"SidebarMenuButton\"\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<\"button\"> & {\n asChild?: boolean\n showOnHover?: boolean\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"menu-action\"\n className={cn(\n \"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0\",\n // Increases the hit area of the button on mobile.\n \"after:absolute after:-inset-2 after:lg:hidden\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n showOnHover &&\n \"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lg:opacity-0\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarMenuAction.displayName = \"SidebarMenuAction\"\n\nconst SidebarMenuBadge = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-sidebar=\"menu-badge\"\n className={cn(\n \"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground\",\n \"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground\",\n \"peer-data-[size=sm]/menu-button:top-1\",\n \"peer-data-[size=default]/menu-button:top-1.5\",\n \"peer-data-[size=lg]/menu-button:top-2.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className\n )}\n {...props}\n />\n))\nSidebarMenuBadge.displayName = \"SidebarMenuBadge\"\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<\"div\"> & {\n showIcon?: boolean\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`\n }, [])\n\n return (\n <div\n ref={ref}\n data-sidebar=\"menu-skeleton\"\n className={cn(\"flex h-8 items-center gap-2 rounded-md px-2\", className)}\n {...props}\n >\n {showIcon && (\n <Skeleton\n className=\"size-4 rounded-md\"\n data-sidebar=\"menu-skeleton-icon\"\n />\n )}\n <Skeleton\n className=\"h-4 max-w-[--skeleton-width] flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n \"--skeleton-width\": width,\n } as React.CSSProperties\n }\n />\n </div>\n )\n})\nSidebarMenuSkeleton.displayName = \"SidebarMenuSkeleton\"\n\nconst SidebarMenuSub = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n data-sidebar=\"menu-sub\"\n className={cn(\n \"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\",\n \"group-data-[collapsible=icon]:hidden\",\n className\n )}\n {...props}\n />\n))\nSidebarMenuSub.displayName = \"SidebarMenuSub\"\n\nconst SidebarMenuSubItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ ...props }, ref) => <li ref={ref} {...props} />)\nSidebarMenuSubItem.displayName = \"SidebarMenuSubItem\"\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<\"a\"> & {\n asChild?: boolean\n size?: \"sm\" | \"md\"\n isActive?: boolean\n }\n>(({ asChild = false, size = \"md\", isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : \"a\"\n\n return (\n <Comp\n ref={ref}\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n data-active={isActive}\n className={cn(\n \"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring 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 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground\",\n \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\n size === \"sm\" && \"text-xs\",\n size === \"md\" && \"text-sm\",\n \"group-data-[collapsible=icon]:hidden\",\n className\n )}\n {...props}\n />\n )\n})\nSidebarMenuSubButton.displayName = \"SidebarMenuSubButton\"\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n}\n"],"names":["SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_BREAKPOINT","SIDEBAR_KEYBOARD_SHORTCUT","useIsTabletOrMobile","isTabletOrMobile","setIsTabletOrMobile","React","media","onChange","SidebarContext","useSidebar","context","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","children","props","ref","isMobile","openMobile","setOpenMobile","_open","_setOpen","open","setOpen","value","openState","toggleSidebar","handleKeyDown","event","state","contextValue","TooltipProvider","cn","Sidebar","side","variant","collapsible","desktopCollapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","isOpen","Button","PanelLeft","SidebarRail","SidebarInset","SidebarInput","Input","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","Comp","Slot","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","cva","SidebarMenuButton","isActive","size","tooltip","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","Skeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton"],"mappings":";;;;;;;;;;;AAuBA,MAAMA,IAAsB,iBACtBC,IAAyB,OAAU,KAAK,GACxCC,IAAgB,SAChBC,IAAuB,SACvBC,IAAqB,UACrBC,IAAqB,MACrBC,IAA4B;AAElC,SAASC,IAAsB;AAC7B,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAM,SAEpD,MAAS;AAEX,SAAAA,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAQ,OAAO,WAAW,eAAeN,IAAqB,CAAC,KAAK,GACpEO,IAAW,MAAM;AACrB,MAAAH,EAAoBE,EAAM,OAAO;AAAA,IACnC;AAIA,WAFAC,EAAA,GAEI,OAAOD,EAAM,oBAAqB,cACpCA,EAAM,iBAAi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;AAAA,EAAA;AAGV,CAAC;AACDsE,GAAqB,cAAc;"}
|
package/dist/index.es48.js
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { cn as m } from "./index.es59.js";
|
|
3
|
+
function n({
|
|
4
|
+
className: e,
|
|
5
|
+
...r
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ t.createElement(
|
|
8
|
+
"div",
|
|
7
9
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
toastOptions: {
|
|
11
|
-
classNames: {
|
|
12
|
-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
13
|
-
description: "group-[.toast]:text-muted-foreground",
|
|
14
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
15
|
-
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
...t
|
|
10
|
+
className: m("animate-pulse rounded-md bg-primary/10", e),
|
|
11
|
+
...r
|
|
19
12
|
}
|
|
20
13
|
);
|
|
21
|
-
}
|
|
14
|
+
}
|
|
22
15
|
export {
|
|
23
|
-
|
|
16
|
+
n as Skeleton
|
|
24
17
|
};
|
|
25
18
|
//# sourceMappingURL=index.es48.js.map
|
package/dist/index.es48.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es48.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es48.js","sources":["../src/components/ui/skeleton.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction Skeleton({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\"animate-pulse rounded-md bg-primary/10\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n"],"names":["Skeleton","className","props","React","cn"],"mappings":";;AAGA,SAASA,EAAS;AAAA,EAChB,WAAAC;AAAA,EACA,GAAGC;AACL,GAAyC;AACvC,SACE,gBAAAC,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,0CAA0CH,CAAS;AAAA,MAChE,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es49.js
CHANGED
|
@@ -1,18 +1,50 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as r from "@radix-ui/react-slider";
|
|
3
|
+
import { cn as s } from "./index.es59.js";
|
|
4
|
+
const m = e.forwardRef(({ className: a, disabled: i, value: o, defaultValue: l, ...n }, d) => {
|
|
5
|
+
const t = Array.isArray(o) ? o : Array.isArray(l) ? l : [0], c = t.length > 1;
|
|
6
|
+
return /* @__PURE__ */ e.createElement(
|
|
7
|
+
r.Root,
|
|
7
8
|
{
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
ref: d,
|
|
10
|
+
"data-disabled": i ? "true" : void 0,
|
|
11
|
+
disabled: i,
|
|
12
|
+
className: s(
|
|
13
|
+
"group/slider relative flex w-full touch-none select-none items-center",
|
|
14
|
+
a
|
|
15
|
+
),
|
|
16
|
+
value: o,
|
|
17
|
+
defaultValue: l,
|
|
18
|
+
...n
|
|
19
|
+
},
|
|
20
|
+
/* @__PURE__ */ e.createElement(
|
|
21
|
+
r.Track,
|
|
22
|
+
{
|
|
23
|
+
className: s(
|
|
24
|
+
"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]"
|
|
25
|
+
)
|
|
26
|
+
},
|
|
27
|
+
/* @__PURE__ */ e.createElement(
|
|
28
|
+
r.Range,
|
|
29
|
+
{
|
|
30
|
+
className: s(
|
|
31
|
+
"absolute z-0 h-full bg-[#26453f]",
|
|
32
|
+
c ? "rounded-full" : "rounded-l-full"
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
),
|
|
37
|
+
t.map((u, f) => /* @__PURE__ */ e.createElement(
|
|
38
|
+
r.Thumb,
|
|
39
|
+
{
|
|
40
|
+
key: `thumb-${f}`,
|
|
41
|
+
className: "block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
42
|
+
}
|
|
43
|
+
))
|
|
13
44
|
);
|
|
14
|
-
}
|
|
45
|
+
});
|
|
46
|
+
m.displayName = r.Root.displayName;
|
|
15
47
|
export {
|
|
16
|
-
m as
|
|
48
|
+
m as Slider
|
|
17
49
|
};
|
|
18
50
|
//# sourceMappingURL=index.es49.js.map
|
package/dist/index.es49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es49.js","sources":["../src/components/ui/slider.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, disabled, value, defaultValue, ...props }, ref) => {\n const thumbValues = Array.isArray(value)\n ? value\n : Array.isArray(defaultValue)\n ? defaultValue\n : [0]\n const isRange = thumbValues.length > 1\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n data-disabled={disabled ? \"true\" : undefined}\n disabled={disabled}\n className={cn(\n \"group/slider relative flex w-full touch-none select-none items-center\",\n className\n )}\n value={value}\n defaultValue={defaultValue}\n {...props}\n >\n <SliderPrimitive.Track\n className={cn(\n \"relative h-2 w-full grow overflow-hidden rounded-full bg-[#e6e6e6] group-data-[disabled=true]/slider:bg-[#f2f2f2]\"\n )}\n >\n <SliderPrimitive.Range\n className={cn(\n \"absolute z-0 h-full bg-[#26453f]\",\n isRange ? \"rounded-full\" : \"rounded-l-full\"\n )}\n />\n </SliderPrimitive.Track>\n {thumbValues.map((_, index) => (\n <SliderPrimitive.Thumb\n key={`thumb-${index}`}\n className=\"block h-4 w-4 rounded-full border border-[#26453f] bg-white shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n />\n ))}\n </SliderPrimitive.Root>\n )\n})\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"],"names":["Slider","React","className","disabled","value","defaultValue","props","ref","thumbValues","isRange","SliderPrimitive","cn","_","index"],"mappings":";;;AAKA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,OAAAC,GAAO,cAAAC,GAAc,GAAGC,EAAA,GAASC,MAAQ;AACjE,QAAMC,IAAc,MAAM,QAAQJ,CAAK,IACnCA,IACA,MAAM,QAAQC,CAAY,IAC1BA,IACA,CAAC,CAAC,GACAI,IAAUD,EAAY,SAAS;AAErC,SACE,gBAAAP,EAAA;AAAA,IAACS,EAAgB;AAAA,IAAhB;AAAA,MACC,KAAAH;AAAA,MACA,iBAAeJ,IAAW,SAAS;AAAA,MACnC,UAAAA;AAAA,MACA,WAAWQ;AAAA,QACT;AAAA,QACAT;AAAA,MAAA;AAAA,MAEF,OAAAE;AAAA,MACA,cAAAC;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,IAEJ,gBAAAL,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,QAAA;AAAA,MACF;AAAA,MAEA,gBAAAV,EAAA;AAAA,QAACS,EAAgB;AAAA,QAAhB;AAAA,UACC,WAAWC;AAAA,YACT;AAAA,YACAF,IAAU,iBAAiB;AAAA,UAAA;AAAA,QAC7B;AAAA,MAAA;AAAA,IACF;AAAA,IAEDD,EAAY,IAAI,CAACI,GAAGC,MACnB,gBAAAZ,EAAA;AAAA,MAACS,EAAgB;AAAA,MAAhB;AAAA,QACC,KAAK,SAASG,CAAK;AAAA,QACnB,WAAU;AAAA,MAAA;AAAA,IAAA,CAEb;AAAA,EAAA;AAGP,CAAC;AACDb,EAAO,cAAcU,EAAgB,KAAK;"}
|
package/dist/index.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import * as l from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { cn as s } from "./index.
|
|
3
|
+
import { cn as s } from "./index.es59.js";
|
|
4
4
|
import { buttonVariants as r } from "./index.es10.js";
|
|
5
5
|
const A = l.Root, D = l.Trigger, n = l.Portal, i = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
6
6
|
l.Overlay,
|
package/dist/index.es50.js
CHANGED
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: s(
|
|
8
|
-
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[#e6e6e6] transition-colors",
|
|
9
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white",
|
|
10
|
-
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:opacity-100",
|
|
11
|
-
"data-[state=checked]:bg-[#26453f] data-[state=unchecked]:bg-[#e6e6e6]",
|
|
12
|
-
i
|
|
13
|
-
),
|
|
14
|
-
...a,
|
|
15
|
-
ref: o
|
|
16
|
-
},
|
|
17
|
-
/* @__PURE__ */ e.createElement(
|
|
18
|
-
t.Thumb,
|
|
1
|
+
import { useTheme as r } from "next-themes";
|
|
2
|
+
import { Toaster as e } from "sonner";
|
|
3
|
+
const u = ({ ...t }) => {
|
|
4
|
+
const { theme: o = "system" } = r();
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
e,
|
|
19
7
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
theme: o,
|
|
9
|
+
className: "toaster group",
|
|
10
|
+
toastOptions: {
|
|
11
|
+
classNames: {
|
|
12
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
13
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
14
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
15
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
...t
|
|
23
19
|
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
r.displayName = t.Root.displayName;
|
|
20
|
+
);
|
|
21
|
+
};
|
|
27
22
|
export {
|
|
28
|
-
|
|
23
|
+
u as Toaster
|
|
29
24
|
};
|
|
30
25
|
//# sourceMappingURL=index.es50.js.map
|
package/dist/index.es50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es50.js","sources":["../src/components/ui/sonner.tsx"],"sourcesContent":["\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n const { theme = \"system\" } = useTheme()\n\n return (\n <Sonner\n theme={theme as ToasterProps[\"theme\"]}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n description: \"group-[.toast]:text-muted-foreground\",\n actionButton:\n \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n },\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","props","theme","useTheme","Sonner"],"mappings":";;AAOA,MAAMA,IAAU,CAAC,EAAE,GAAGC,QAA0B;AAC9C,QAAM,EAAE,OAAAC,IAAQ,SAAA,IAAaC,EAAA;AAE7B,SACE,sBAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAAF;AAAA,MACA,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,QAAA;AAAA,MACJ;AAAA,MAED,GAAGD;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es51.js
CHANGED
|
@@ -1,209 +1,18 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { Loader2Icon as o } from "lucide-react";
|
|
3
|
+
import { cn as t } from "./index.es59.js";
|
|
4
|
+
function m({ className: e, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ a.createElement(
|
|
6
|
+
o,
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className: r(
|
|
16
|
-
"w-full caption-bottom text-[14px] leading-[20px]",
|
|
17
|
-
n ? "[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]" : void 0,
|
|
18
|
-
o
|
|
19
|
-
),
|
|
20
|
-
...d
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
), t ? /* @__PURE__ */ e.createElement("div", { className: "w-full" }, t) : null)
|
|
24
|
-
);
|
|
25
|
-
c.displayName = "Table";
|
|
26
|
-
const b = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
27
|
-
"thead",
|
|
28
|
-
{
|
|
29
|
-
ref: a,
|
|
30
|
-
className: r("bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]", o),
|
|
31
|
-
...t
|
|
32
|
-
}
|
|
33
|
-
));
|
|
34
|
-
b.displayName = "TableHeader";
|
|
35
|
-
const p = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
36
|
-
"tbody",
|
|
37
|
-
{
|
|
38
|
-
ref: a,
|
|
39
|
-
className: r("[&_tr:last-child]:border-0", o),
|
|
40
|
-
...t
|
|
41
|
-
}
|
|
42
|
-
));
|
|
43
|
-
p.displayName = "TableBody";
|
|
44
|
-
const x = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
45
|
-
"tfoot",
|
|
46
|
-
{
|
|
47
|
-
ref: a,
|
|
48
|
-
className: r(
|
|
49
|
-
"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0",
|
|
50
|
-
o
|
|
51
|
-
),
|
|
52
|
-
...t
|
|
53
|
-
}
|
|
54
|
-
));
|
|
55
|
-
x.displayName = "TableFooter";
|
|
56
|
-
const g = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
57
|
-
"tr",
|
|
58
|
-
{
|
|
59
|
-
ref: a,
|
|
60
|
-
className: r(
|
|
61
|
-
"border-b border-[#e6e6e6]",
|
|
62
|
-
o
|
|
63
|
-
),
|
|
64
|
-
...t
|
|
65
|
-
}
|
|
66
|
-
));
|
|
67
|
-
g.displayName = "TableRow";
|
|
68
|
-
const w = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
69
|
-
"th",
|
|
70
|
-
{
|
|
71
|
-
ref: a,
|
|
72
|
-
className: r(
|
|
73
|
-
"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground",
|
|
74
|
-
o
|
|
75
|
-
),
|
|
76
|
-
...t
|
|
77
|
-
}
|
|
78
|
-
));
|
|
79
|
-
w.displayName = "TableHead";
|
|
80
|
-
const u = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
81
|
-
"td",
|
|
82
|
-
{
|
|
83
|
-
ref: a,
|
|
84
|
-
className: r(
|
|
85
|
-
"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground",
|
|
86
|
-
o
|
|
87
|
-
),
|
|
88
|
-
...t
|
|
89
|
-
}
|
|
90
|
-
));
|
|
91
|
-
u.displayName = "TableCell";
|
|
92
|
-
const N = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
93
|
-
"caption",
|
|
94
|
-
{
|
|
95
|
-
ref: a,
|
|
96
|
-
className: r("mt-4 text-sm text-muted-foreground", o),
|
|
97
|
-
...t
|
|
98
|
-
}
|
|
99
|
-
));
|
|
100
|
-
N.displayName = "TableCaption";
|
|
101
|
-
const T = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
102
|
-
"div",
|
|
103
|
-
{
|
|
104
|
-
ref: a,
|
|
105
|
-
className: r(
|
|
106
|
-
"flex w-full items-center justify-between border-t border-[#e6e6e6] bg-white p-4",
|
|
107
|
-
o
|
|
108
|
-
),
|
|
109
|
-
...t
|
|
110
|
-
}
|
|
111
|
-
));
|
|
112
|
-
T.displayName = "TablePagination";
|
|
113
|
-
const y = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
ref: a,
|
|
117
|
-
className: r("flex items-center gap-3", o),
|
|
118
|
-
...t
|
|
119
|
-
}
|
|
120
|
-
));
|
|
121
|
-
y.displayName = "TablePaginationContent";
|
|
122
|
-
const h = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
ref: a,
|
|
126
|
-
className: r("flex items-center gap-2", o),
|
|
127
|
-
...t
|
|
128
|
-
}
|
|
129
|
-
));
|
|
130
|
-
h.displayName = "TablePaginationPages";
|
|
131
|
-
const E = e.forwardRef(({ className: o, ...t }, a) => /* @__PURE__ */ e.createElement(
|
|
132
|
-
"button",
|
|
133
|
-
{
|
|
134
|
-
ref: a,
|
|
135
|
-
type: "button",
|
|
136
|
-
className: r(
|
|
137
|
-
"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground",
|
|
138
|
-
o
|
|
139
|
-
),
|
|
140
|
-
...t
|
|
141
|
-
}
|
|
142
|
-
));
|
|
143
|
-
E.displayName = "TablePaginationButton";
|
|
144
|
-
const R = e.forwardRef(({ className: o, isActive: t, ...a }, l) => /* @__PURE__ */ e.createElement(
|
|
145
|
-
"button",
|
|
146
|
-
{
|
|
147
|
-
ref: l,
|
|
148
|
-
type: "button",
|
|
149
|
-
"aria-current": t ? "page" : void 0,
|
|
150
|
-
className: r(
|
|
151
|
-
"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]",
|
|
152
|
-
t ? "border border-[#e6e6e6] bg-white text-foreground" : "text-[#7f7d83]",
|
|
153
|
-
o
|
|
154
|
-
),
|
|
155
|
-
...a
|
|
156
|
-
}
|
|
157
|
-
));
|
|
158
|
-
R.displayName = "TablePaginationPage";
|
|
159
|
-
const v = e.forwardRef(
|
|
160
|
-
({
|
|
161
|
-
className: o,
|
|
162
|
-
label: t = "Go to page:",
|
|
163
|
-
pageLabel: a = "-",
|
|
164
|
-
placeholder: l = "-",
|
|
165
|
-
icon: n,
|
|
166
|
-
...d
|
|
167
|
-
}, s) => /* @__PURE__ */ e.createElement(
|
|
168
|
-
"div",
|
|
169
|
-
{
|
|
170
|
-
ref: s,
|
|
171
|
-
className: r("flex items-center gap-[13px]", o),
|
|
172
|
-
...d
|
|
173
|
-
},
|
|
174
|
-
/* @__PURE__ */ e.createElement("span", { className: "text-[14px] font-normal leading-[20px] text-foreground" }, t),
|
|
175
|
-
/* @__PURE__ */ e.createElement(
|
|
176
|
-
"button",
|
|
177
|
-
{
|
|
178
|
-
type: "button",
|
|
179
|
-
"aria-haspopup": "listbox",
|
|
180
|
-
className: "flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm"
|
|
181
|
-
},
|
|
182
|
-
/* @__PURE__ */ e.createElement("span", { className: a === l ? "text-[#7f7d83]" : void 0 }, a === l ? l : a),
|
|
183
|
-
n || /* @__PURE__ */ e.createElement(i, { className: "h-4 w-4 text-[#7f7d83]" })
|
|
184
|
-
)
|
|
185
|
-
)
|
|
186
|
-
);
|
|
187
|
-
v.displayName = "TablePaginationGoTo";
|
|
188
|
-
const _ = ({
|
|
189
|
-
className: o,
|
|
190
|
-
direction: t
|
|
191
|
-
}) => t === "left" ? /* @__PURE__ */ e.createElement(m, { className: r("h-4 w-4", o) }) : /* @__PURE__ */ e.createElement(f, { className: r("h-4 w-4", o) });
|
|
8
|
+
role: "status",
|
|
9
|
+
"aria-label": "Loading",
|
|
10
|
+
className: t("size-4 animate-spin", e),
|
|
11
|
+
...r
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
192
15
|
export {
|
|
193
|
-
|
|
194
|
-
p as TableBody,
|
|
195
|
-
N as TableCaption,
|
|
196
|
-
u as TableCell,
|
|
197
|
-
x as TableFooter,
|
|
198
|
-
w as TableHead,
|
|
199
|
-
b as TableHeader,
|
|
200
|
-
T as TablePagination,
|
|
201
|
-
E as TablePaginationButton,
|
|
202
|
-
y as TablePaginationContent,
|
|
203
|
-
v as TablePaginationGoTo,
|
|
204
|
-
_ as TablePaginationIcon,
|
|
205
|
-
R as TablePaginationPage,
|
|
206
|
-
h as TablePaginationPages,
|
|
207
|
-
g as TableRow
|
|
16
|
+
m as Spinner
|
|
208
17
|
};
|
|
209
18
|
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../src/components/ui/table.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype TableProps = React.HTMLAttributes<HTMLTableElement> & {\n pagination?: React.ReactNode\n maxHeight?: number | string\n scrollContainerClassName?: string\n stickyHeader?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n (\n { className, pagination, maxHeight, scrollContainerClassName, stickyHeader, ...props },\n ref\n ) => (\n <div className=\"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white\">\n <div\n className={cn(\"ml-table-scroll w-full overflow-auto\", scrollContainerClassName)}\n style={\n maxHeight\n ? { maxHeight: typeof maxHeight === \"number\" ? `${maxHeight}px` : maxHeight }\n : undefined\n }\n >\n <table\n ref={ref}\n className={cn(\n \"w-full caption-bottom text-[14px] leading-[20px]\",\n stickyHeader\n ? \"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]\"\n : undefined,\n className\n )}\n {...props}\n />\n </div>\n {pagination ? <div className=\"w-full\">{pagination}</div> : null}\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\"bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]\", className)}\n {...props}\n />\n))\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n))\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b border-[#e6e6e6]\",\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nTableCaption.displayName = \"TableCaption\"\n\nconst TablePagination = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"flex w-full items-center justify-between border-t border-[#e6e6e6] bg-white p-4\",\n className\n )}\n {...props}\n />\n))\nTablePagination.displayName = \"TablePagination\"\n\nconst TablePaginationContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-3\", className)}\n {...props}\n />\n))\nTablePaginationContent.displayName = \"TablePaginationContent\"\n\nconst TablePaginationPages = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-2\", className)}\n {...props}\n />\n))\nTablePaginationPages.displayName = \"TablePaginationPages\"\n\nconst TablePaginationButton = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n \"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground\",\n className\n )}\n {...props}\n />\n))\nTablePaginationButton.displayName = \"TablePaginationButton\"\n\ntype TablePaginationPageProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n isActive?: boolean\n}\n\nconst TablePaginationPage = React.forwardRef<\n HTMLButtonElement,\n TablePaginationPageProps\n>(({ className, isActive, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n \"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]\",\n isActive\n ? \"border border-[#e6e6e6] bg-white text-foreground\"\n : \"text-[#7f7d83]\",\n className\n )}\n {...props}\n />\n))\nTablePaginationPage.displayName = \"TablePaginationPage\"\n\ntype TablePaginationGoToProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n pageLabel?: string\n placeholder?: string\n icon?: React.ReactNode\n}\n\nconst TablePaginationGoTo = React.forwardRef<\n HTMLDivElement,\n TablePaginationGoToProps\n>(\n (\n {\n className,\n label = \"Go to page:\",\n pageLabel = \"-\",\n placeholder = \"-\",\n icon,\n ...props\n },\n ref\n ) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-[13px]\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-foreground\">\n {label}\n </span>\n <button\n type=\"button\"\n aria-haspopup=\"listbox\"\n className=\"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm\"\n >\n <span className={pageLabel === placeholder ? \"text-[#7f7d83]\" : undefined}>\n {pageLabel === placeholder ? placeholder : pageLabel}\n </span>\n {icon || <ChevronDown className=\"h-4 w-4 text-[#7f7d83]\" />}\n </button>\n </div>\n )\n)\nTablePaginationGoTo.displayName = \"TablePaginationGoTo\"\n\nconst TablePaginationIcon = ({\n className,\n direction,\n}: {\n className?: string\n direction: \"left\" | \"right\"\n}) =>\n direction === \"left\" ? (\n <ChevronLeft className={cn(\"h-4 w-4\", className)} />\n ) : (\n <ChevronRight className={cn(\"h-4 w-4\", className)} />\n )\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n TablePagination,\n TablePaginationContent,\n TablePaginationPages,\n TablePaginationButton,\n TablePaginationPage,\n TablePaginationGoTo,\n TablePaginationIcon,\n}\n"],"names":["Table","React","className","pagination","maxHeight","scrollContainerClassName","stickyHeader","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","TablePagination","TablePaginationContent","TablePaginationPages","TablePaginationButton","TablePaginationPage","isActive","TablePaginationGoTo","label","pageLabel","placeholder","icon","ChevronDown","TablePaginationIcon","direction","ChevronLeft","ChevronRight"],"mappings":";;;AAYA,MAAMA,IAAQC,EAAM;AAAA,E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AA;AAAA,IAED,GAAGK;AAAA,EAAA;AACN,CACD;AACDc,EAAoB,cAAc;AASlC,MAAME,IAAsBtB,EAAM;AAAA,EAIhC,CACE;AAAA,IACE,WAAAC;AAAA,IACA,OAAAsB,IAAQ;AAAA,IACR,WAAAC,IAAY;AAAA,IACZ,aAAAC,IAAc;AAAA,IACd,MAAAC;AAAA,IACA,GAAGpB;AAAA,EAAA,GAELC,MAEF,gBAAAP,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAO;AAAA,MACA,WAAWC,EAAG,gCAAgCP,CAAS;AAAA,MACtD,GAAGK;AAAA,IAAA;AAAA,IAEJ,gBAAAN,EAAA,cAAC,QAAA,EAAK,WAAU,yDAAA,GACbuB,CACH;AAAA,IACA,gBAAAvB,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,iBAAc;AAAA,QACd,WAAU;AAAA,MAAA;AAAA,MAEV,gBAAAA,EAAA,cAAC,QAAA,EAAK,WAAWwB,MAAcC,IAAc,mBAAmB,OAAA,GAC7DD,MAAcC,IAAcA,IAAcD,CAC7C;AAAA,MACCE,KAAQ,gBAAA1B,EAAA,cAAC2B,GAAA,EAAY,WAAU,yBAAA,CAAyB;AAAA,IAAA;AAAA,EAC3D;AAGJ;AACAL,EAAoB,cAAc;AAElC,MAAMM,IAAsB,CAAC;AAAA,EAC3B,WAAA3B;AAAA,EACA,WAAA4B;AACF,MAIEA,MAAc,SACZ,gBAAA7B,EAAA,cAAC8B,GAAA,EAAY,WAAWtB,EAAG,WAAWP,CAAS,EAAA,CAAG,oCAEjD8B,GAAA,EAAa,WAAWvB,EAAG,WAAWP,CAAS,EAAA,CAAG;"}
|
|
1
|
+
{"version":3,"file":"index.es51.js","sources":["../src/components/ui/spinner.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Loader2Icon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Spinner({ className, ...props }: React.ComponentProps<\"svg\">) {\n return (\n <Loader2Icon\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\"size-4 animate-spin\", className)}\n {...props}\n />\n );\n}\n\nexport { Spinner };\n"],"names":["Spinner","className","props","React","Loader2Icon","cn"],"mappings":";;;AAMA,SAASA,EAAQ,EAAE,WAAAC,GAAW,GAAGC,KAAsC;AACrE,SACE,gBAAAC,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAW;AAAA,MACX,WAAWC,EAAG,uBAAuBJ,CAAS;AAAA,MAC7C,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|