@resq-sw/ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +20 -0
- package/README.md +61 -0
- package/lib/components/accordion/accordion.d.ts +27 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -0
- package/lib/components/accordion/accordion.js +71 -0
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/accordion/index.js +2 -0
- package/lib/components/alert/alert.d.ts +30 -0
- package/lib/components/alert/alert.d.ts.map +1 -0
- package/lib/components/alert/alert.js +59 -0
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/alert/index.js +2 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts +61 -0
- package/lib/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/lib/components/alert-dialog/alert-dialog.js +102 -0
- package/lib/components/alert-dialog/alert-dialog.js.map +1 -0
- package/lib/components/alert-dialog/index.d.ts +2 -0
- package/lib/components/alert-dialog/index.js +2 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +11 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
- package/lib/components/aspect-ratio/aspect-ratio.js +29 -0
- package/lib/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/lib/components/aspect-ratio/index.d.ts +2 -0
- package/lib/components/aspect-ratio/index.js +2 -0
- package/lib/components/avatar/avatar.d.ts +36 -0
- package/lib/components/avatar/avatar.d.ts.map +1 -0
- package/lib/components/avatar/avatar.js +67 -0
- package/lib/components/avatar/avatar.js.map +1 -0
- package/lib/components/avatar/index.d.ts +2 -0
- package/lib/components/avatar/index.js +2 -0
- package/lib/components/badge/badge.d.ts +21 -0
- package/lib/components/badge/badge.d.ts.map +1 -0
- package/lib/components/badge/badge.js +43 -0
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/index.js +2 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts +40 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/lib/components/breadcrumb/breadcrumb.js +86 -0
- package/lib/components/breadcrumb/breadcrumb.js.map +1 -0
- package/lib/components/breadcrumb/index.d.ts +2 -0
- package/lib/components/breadcrumb/index.js +2 -0
- package/lib/components/button/button.d.ts +23 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +63 -0
- package/lib/components/button/button.js.map +1 -0
- package/lib/components/button/index.d.ts +2 -0
- package/lib/components/button/index.js +2 -0
- package/lib/components/button-group/button-group.d.ts +30 -0
- package/lib/components/button-group/button-group.d.ts.map +1 -0
- package/lib/components/button-group/button-group.js +55 -0
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/index.d.ts +2 -0
- package/lib/components/button-group/index.js +2 -0
- package/lib/components/calendar/calendar.d.ts +32 -0
- package/lib/components/calendar/calendar.d.ts.map +1 -0
- package/lib/components/calendar/calendar.js +126 -0
- package/lib/components/calendar/calendar.js.map +1 -0
- package/lib/components/calendar/index.d.ts +2 -0
- package/lib/components/calendar/index.js +2 -0
- package/lib/components/card/card.d.ts +39 -0
- package/lib/components/card/card.d.ts.map +1 -0
- package/lib/components/card/card.js +57 -0
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/index.d.ts +2 -0
- package/lib/components/card/index.js +2 -0
- package/lib/components/carousel/carousel.d.ts +58 -0
- package/lib/components/carousel/carousel.d.ts.map +1 -0
- package/lib/components/carousel/carousel.js +150 -0
- package/lib/components/carousel/carousel.js.map +1 -0
- package/lib/components/carousel/index.d.ts +2 -0
- package/lib/components/carousel/index.js +2 -0
- package/lib/components/chart/chart.d.ts +70 -0
- package/lib/components/chart/chart.d.ts.map +1 -0
- package/lib/components/chart/chart.js +164 -0
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/index.d.ts +2 -0
- package/lib/components/chart/index.js +2 -0
- package/lib/components/checkbox/checkbox.d.ts +13 -0
- package/lib/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox/checkbox.js +37 -0
- package/lib/components/checkbox/checkbox.js.map +1 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/checkbox/index.js +2 -0
- package/lib/components/collapsible/collapsible.d.ts +17 -0
- package/lib/components/collapsible/collapsible.d.ts.map +1 -0
- package/lib/components/collapsible/collapsible.js +41 -0
- package/lib/components/collapsible/collapsible.js.map +1 -0
- package/lib/components/collapsible/index.d.ts +2 -0
- package/lib/components/collapsible/index.js +2 -0
- package/lib/components/combobox/combobox.d.ts +83 -0
- package/lib/components/combobox/combobox.d.ts.map +1 -0
- package/lib/components/combobox/combobox.js +180 -0
- package/lib/components/combobox/combobox.js.map +1 -0
- package/lib/components/combobox/index.d.ts +2 -0
- package/lib/components/combobox/index.js +2 -0
- package/lib/components/command/command.d.ts +56 -0
- package/lib/components/command/command.d.ts.map +1 -0
- package/lib/components/command/command.js +104 -0
- package/lib/components/command/command.js.map +1 -0
- package/lib/components/command/index.d.ts +2 -0
- package/lib/components/command/index.js +2 -0
- package/lib/components/context-menu/context-menu.d.ts +81 -0
- package/lib/components/context-menu/context-menu.d.ts.map +1 -0
- package/lib/components/context-menu/context-menu.js +139 -0
- package/lib/components/context-menu/context-menu.js.map +1 -0
- package/lib/components/context-menu/index.d.ts +2 -0
- package/lib/components/context-menu/index.js +2 -0
- package/lib/components/dialog/dialog.d.ts +52 -0
- package/lib/components/dialog/dialog.d.ts.map +1 -0
- package/lib/components/dialog/dialog.js +97 -0
- package/lib/components/dialog/dialog.js.map +1 -0
- package/lib/components/dialog/index.d.ts +2 -0
- package/lib/components/dialog/index.js +2 -0
- package/lib/components/direction/direction.d.ts +17 -0
- package/lib/components/direction/direction.d.ts.map +1 -0
- package/lib/components/direction/direction.js +30 -0
- package/lib/components/direction/direction.js.map +1 -0
- package/lib/components/direction/index.d.ts +2 -0
- package/lib/components/direction/index.js +2 -0
- package/lib/components/drawer/drawer.d.ts +46 -0
- package/lib/components/drawer/drawer.d.ts.map +1 -0
- package/lib/components/drawer/drawer.js +94 -0
- package/lib/components/drawer/drawer.js.map +1 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/index.js +2 -0
- package/lib/components/dropdown-menu/dropdown-menu.d.ts +80 -0
- package/lib/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/lib/components/dropdown-menu/dropdown-menu.js +142 -0
- package/lib/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/lib/components/dropdown-menu/index.d.ts +2 -0
- package/lib/components/dropdown-menu/index.js +2 -0
- package/lib/components/empty/empty.d.ts +37 -0
- package/lib/components/empty/empty.d.ts.map +1 -0
- package/lib/components/empty/empty.js +76 -0
- package/lib/components/empty/empty.js.map +1 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/empty/index.js +2 -0
- package/lib/components/field/field.d.ts +66 -0
- package/lib/components/field/field.d.ts.map +1 -0
- package/lib/components/field/field.js +127 -0
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/index.d.ts +2 -0
- package/lib/components/field/index.js +2 -0
- package/lib/components/hover-card/hover-card.d.ts +21 -0
- package/lib/components/hover-card/hover-card.d.ts.map +1 -0
- package/lib/components/hover-card/hover-card.js +48 -0
- package/lib/components/hover-card/hover-card.js.map +1 -0
- package/lib/components/hover-card/index.d.ts +2 -0
- package/lib/components/hover-card/index.js +2 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/index.js +2 -0
- package/lib/components/input/input.d.ts +13 -0
- package/lib/components/input/input.d.ts.map +1 -0
- package/lib/components/input/input.js +15 -0
- package/lib/components/input/input.js.map +1 -0
- package/lib/components/input-group/index.d.ts +2 -0
- package/lib/components/input-group/index.js +2 -0
- package/lib/components/input-group/input-group.d.ts +45 -0
- package/lib/components/input-group/input-group.d.ts.map +1 -0
- package/lib/components/input-group/input-group.js +95 -0
- package/lib/components/input-group/input-group.js.map +1 -0
- package/lib/components/input-otp/index.d.ts +2 -0
- package/lib/components/input-otp/index.js +2 -0
- package/lib/components/input-otp/input-otp.d.ts +30 -0
- package/lib/components/input-otp/input-otp.d.ts.map +1 -0
- package/lib/components/input-otp/input-otp.js +64 -0
- package/lib/components/input-otp/input-otp.js.map +1 -0
- package/lib/components/item/index.d.ts +2 -0
- package/lib/components/item/index.js +2 -0
- package/lib/components/item/item.d.ts +64 -0
- package/lib/components/item/item.d.ts.map +1 -0
- package/lib/components/item/item.js +133 -0
- package/lib/components/item/item.js.map +1 -0
- package/lib/components/kbd/index.d.ts +2 -0
- package/lib/components/kbd/index.js +2 -0
- package/lib/components/kbd/kbd.d.ts +30 -0
- package/lib/components/kbd/kbd.d.ts.map +1 -0
- package/lib/components/kbd/kbd.js +36 -0
- package/lib/components/kbd/kbd.js.map +1 -0
- package/lib/components/label/index.d.ts +2 -0
- package/lib/components/label/index.js +2 -0
- package/lib/components/label/label.d.ts +13 -0
- package/lib/components/label/label.d.ts.map +1 -0
- package/lib/components/label/label.js +31 -0
- package/lib/components/label/label.js.map +1 -0
- package/lib/components/menubar/index.d.ts +2 -0
- package/lib/components/menubar/index.js +2 -0
- package/lib/components/menubar/menubar.d.ts +86 -0
- package/lib/components/menubar/menubar.d.ts.map +1 -0
- package/lib/components/menubar/menubar.js +149 -0
- package/lib/components/menubar/menubar.js.map +1 -0
- package/lib/components/native-select/index.d.ts +2 -0
- package/lib/components/native-select/index.js +2 -0
- package/lib/components/native-select/native-select.d.ts +23 -0
- package/lib/components/native-select/native-select.d.ts.map +1 -0
- package/lib/components/native-select/native-select.js +53 -0
- package/lib/components/native-select/native-select.js.map +1 -0
- package/lib/components/navigation-menu/index.d.ts +2 -0
- package/lib/components/navigation-menu/index.js +2 -0
- package/lib/components/navigation-menu/navigation-menu.d.ts +48 -0
- package/lib/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/lib/components/navigation-menu/navigation-menu.js +96 -0
- package/lib/components/navigation-menu/navigation-menu.js.map +1 -0
- package/lib/components/pagination/index.d.ts +2 -0
- package/lib/components/pagination/index.js +2 -0
- package/lib/components/pagination/pagination.d.ts +47 -0
- package/lib/components/pagination/pagination.d.ts.map +1 -0
- package/lib/components/pagination/pagination.js +95 -0
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/popover/index.d.ts +2 -0
- package/lib/components/popover/index.js +2 -0
- package/lib/components/popover/popover.d.ts +36 -0
- package/lib/components/popover/popover.d.ts.map +1 -0
- package/lib/components/popover/popover.js +72 -0
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/progress/index.d.ts +2 -0
- package/lib/components/progress/index.js +2 -0
- package/lib/components/progress/progress.d.ts +14 -0
- package/lib/components/progress/progress.d.ts.map +1 -0
- package/lib/components/progress/progress.js +36 -0
- package/lib/components/progress/progress.js.map +1 -0
- package/lib/components/radio-group/index.d.ts +2 -0
- package/lib/components/radio-group/index.js +2 -0
- package/lib/components/radio-group/radio-group.d.ts +17 -0
- package/lib/components/radio-group/radio-group.d.ts.map +1 -0
- package/lib/components/radio-group/radio-group.js +44 -0
- package/lib/components/radio-group/radio-group.js.map +1 -0
- package/lib/components/resizable/index.d.ts +2 -0
- package/lib/components/resizable/index.js +2 -0
- package/lib/components/resizable/resizable.d.ts +23 -0
- package/lib/components/resizable/resizable.d.ts.map +1 -0
- package/lib/components/resizable/resizable.js +45 -0
- package/lib/components/resizable/resizable.js.map +1 -0
- package/lib/components/scroll-area/index.d.ts +2 -0
- package/lib/components/scroll-area/index.js +2 -0
- package/lib/components/scroll-area/scroll-area.d.ts +19 -0
- package/lib/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/lib/components/scroll-area/scroll-area.js +53 -0
- package/lib/components/scroll-area/scroll-area.js.map +1 -0
- package/lib/components/select/index.d.ts +2 -0
- package/lib/components/select/index.js +2 -0
- package/lib/components/select/select.d.ts +55 -0
- package/lib/components/select/select.d.ts.map +1 -0
- package/lib/components/select/select.js +116 -0
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/separator/index.d.ts +2 -0
- package/lib/components/separator/index.js +2 -0
- package/lib/components/separator/separator.d.ts +15 -0
- package/lib/components/separator/separator.d.ts.map +1 -0
- package/lib/components/separator/separator.js +33 -0
- package/lib/components/separator/separator.js.map +1 -0
- package/lib/components/sheet/index.d.ts +2 -0
- package/lib/components/sheet/index.js +2 -0
- package/lib/components/sheet/sheet.d.ts +44 -0
- package/lib/components/sheet/sheet.d.ts.map +1 -0
- package/lib/components/sheet/sheet.js +106 -0
- package/lib/components/sheet/sheet.js.map +1 -0
- package/lib/components/sidebar/index.d.ts +2 -0
- package/lib/components/sidebar/index.js +2 -0
- package/lib/components/sidebar/sidebar.d.ts +169 -0
- package/lib/components/sidebar/sidebar.d.ts.map +1 -0
- package/lib/components/sidebar/sidebar.js +388 -0
- package/lib/components/sidebar/sidebar.js.map +1 -0
- package/lib/components/skeleton/index.d.ts +2 -0
- package/lib/components/skeleton/index.js +2 -0
- package/lib/components/skeleton/skeleton.d.ts +26 -0
- package/lib/components/skeleton/skeleton.d.ts.map +1 -0
- package/lib/components/skeleton/skeleton.js +29 -0
- package/lib/components/skeleton/skeleton.js.map +1 -0
- package/lib/components/slider/index.d.ts +2 -0
- package/lib/components/slider/index.js +2 -0
- package/lib/components/slider/slider.d.ts +17 -0
- package/lib/components/slider/slider.d.ts.map +1 -0
- package/lib/components/slider/slider.js +53 -0
- package/lib/components/slider/slider.js.map +1 -0
- package/lib/components/sonner/index.d.ts +2 -0
- package/lib/components/sonner/index.js +2 -0
- package/lib/components/sonner/sonner.d.ts +11 -0
- package/lib/components/sonner/sonner.d.ts.map +1 -0
- package/lib/components/sonner/sonner.js +47 -0
- package/lib/components/sonner/sonner.js.map +1 -0
- package/lib/components/spinner/index.d.ts +2 -0
- package/lib/components/spinner/index.js +2 -0
- package/lib/components/spinner/spinner.d.ts +26 -0
- package/lib/components/spinner/spinner.d.ts.map +1 -0
- package/lib/components/spinner/spinner.js +31 -0
- package/lib/components/spinner/spinner.js.map +1 -0
- package/lib/components/switch/index.d.ts +2 -0
- package/lib/components/switch/index.js +2 -0
- package/lib/components/switch/switch.d.ts +16 -0
- package/lib/components/switch/switch.d.ts.map +1 -0
- package/lib/components/switch/switch.js +36 -0
- package/lib/components/switch/switch.js.map +1 -0
- package/lib/components/table/index.d.ts +2 -0
- package/lib/components/table/index.js +2 -0
- package/lib/components/table/table.d.ts +40 -0
- package/lib/components/table/table.d.ts.map +1 -0
- package/lib/components/table/table.js +83 -0
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/tabs/index.d.ts +2 -0
- package/lib/components/tabs/index.js +2 -0
- package/lib/components/tabs/tabs.d.ts +32 -0
- package/lib/components/tabs/tabs.d.ts.map +1 -0
- package/lib/components/tabs/tabs.js +62 -0
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/textarea/index.d.ts +2 -0
- package/lib/components/textarea/index.js +2 -0
- package/lib/components/textarea/textarea.d.ts +12 -0
- package/lib/components/textarea/textarea.d.ts.map +1 -0
- package/lib/components/textarea/textarea.js +14 -0
- package/lib/components/textarea/textarea.js.map +1 -0
- package/lib/components/toggle/index.d.ts +2 -0
- package/lib/components/toggle/index.js +2 -0
- package/lib/components/toggle/toggle.d.ts +21 -0
- package/lib/components/toggle/toggle.d.ts.map +1 -0
- package/lib/components/toggle/toggle.js +53 -0
- package/lib/components/toggle/toggle.js.map +1 -0
- package/lib/components/toggle-group/index.d.ts +2 -0
- package/lib/components/toggle-group/index.js +2 -0
- package/lib/components/toggle-group/toggle-group.d.ts +30 -0
- package/lib/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/lib/components/toggle-group/toggle-group.js +68 -0
- package/lib/components/toggle-group/toggle-group.js.map +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/components/tooltip/index.js +2 -0
- package/lib/components/tooltip/tooltip.d.ts +25 -0
- package/lib/components/tooltip/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.js +52 -0
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/hooks/use-mobile.d.ts +20 -0
- package/lib/hooks/use-mobile.d.ts.map +1 -0
- package/lib/hooks/use-mobile.js +37 -0
- package/lib/hooks/use-mobile.js.map +1 -0
- package/lib/index.d.ts +58 -0
- package/lib/index.js +113 -0
- package/lib/lib/utils.d.ts +7 -0
- package/lib/lib/utils.d.ts.map +1 -0
- package/lib/lib/utils.js +10 -0
- package/lib/lib/utils.js.map +1 -0
- package/package.json +395 -0
- package/src/styles/globals.css +140 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Menubar as Menubar$1 } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime155 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/menubar/menubar.d.ts
|
|
6
|
+
|
|
7
|
+
declare function Menubar({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof Menubar$1.Root>): react_jsx_runtime155.JSX.Element;
|
|
11
|
+
declare function MenubarCheckboxItem({
|
|
12
|
+
checked,
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<typeof Menubar$1.CheckboxItem>): react_jsx_runtime155.JSX.Element;
|
|
17
|
+
declare function MenubarContent({
|
|
18
|
+
align,
|
|
19
|
+
alignOffset,
|
|
20
|
+
className,
|
|
21
|
+
sideOffset,
|
|
22
|
+
...props
|
|
23
|
+
}: React.ComponentProps<typeof Menubar$1.Content>): react_jsx_runtime155.JSX.Element;
|
|
24
|
+
declare function MenubarGroup({
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof Menubar$1.Group>): react_jsx_runtime155.JSX.Element;
|
|
27
|
+
declare function MenubarItem({
|
|
28
|
+
className,
|
|
29
|
+
inset,
|
|
30
|
+
variant,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<typeof Menubar$1.Item> & {
|
|
33
|
+
inset?: boolean;
|
|
34
|
+
variant?: "default" | "destructive";
|
|
35
|
+
}): react_jsx_runtime155.JSX.Element;
|
|
36
|
+
declare function MenubarLabel({
|
|
37
|
+
className,
|
|
38
|
+
inset,
|
|
39
|
+
...props
|
|
40
|
+
}: React.ComponentProps<typeof Menubar$1.Label> & {
|
|
41
|
+
inset?: boolean;
|
|
42
|
+
}): react_jsx_runtime155.JSX.Element;
|
|
43
|
+
declare function MenubarMenu({
|
|
44
|
+
...props
|
|
45
|
+
}: React.ComponentProps<typeof Menubar$1.Menu>): react_jsx_runtime155.JSX.Element;
|
|
46
|
+
declare function MenubarPortal({
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<typeof Menubar$1.Portal>): react_jsx_runtime155.JSX.Element;
|
|
49
|
+
declare function MenubarRadioGroup({
|
|
50
|
+
...props
|
|
51
|
+
}: React.ComponentProps<typeof Menubar$1.RadioGroup>): react_jsx_runtime155.JSX.Element;
|
|
52
|
+
declare function MenubarRadioItem({
|
|
53
|
+
children,
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}: React.ComponentProps<typeof Menubar$1.RadioItem>): react_jsx_runtime155.JSX.Element;
|
|
57
|
+
declare function MenubarSeparator({
|
|
58
|
+
className,
|
|
59
|
+
...props
|
|
60
|
+
}: React.ComponentProps<typeof Menubar$1.Separator>): react_jsx_runtime155.JSX.Element;
|
|
61
|
+
declare function MenubarShortcut({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}: React.ComponentProps<"span">): react_jsx_runtime155.JSX.Element;
|
|
65
|
+
declare function MenubarSub({
|
|
66
|
+
...props
|
|
67
|
+
}: React.ComponentProps<typeof Menubar$1.Sub>): react_jsx_runtime155.JSX.Element;
|
|
68
|
+
declare function MenubarSubContent({
|
|
69
|
+
className,
|
|
70
|
+
...props
|
|
71
|
+
}: React.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime155.JSX.Element;
|
|
72
|
+
declare function MenubarSubTrigger({
|
|
73
|
+
children,
|
|
74
|
+
className,
|
|
75
|
+
inset,
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<typeof Menubar$1.SubTrigger> & {
|
|
78
|
+
inset?: boolean;
|
|
79
|
+
}): react_jsx_runtime155.JSX.Element;
|
|
80
|
+
declare function MenubarTrigger({
|
|
81
|
+
className,
|
|
82
|
+
...props
|
|
83
|
+
}: React.ComponentProps<typeof Menubar$1.Trigger>): react_jsx_runtime155.JSX.Element;
|
|
84
|
+
//#endregion
|
|
85
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
86
|
+
//# sourceMappingURL=menubar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../../src/components/menubar/menubar.tsx"],"sourcesContent":[],"mappings":"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"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
4
|
+
import { Menubar as Menubar$1 } from "radix-ui";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/menubar/menubar.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Copyright 2026 ResQ
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
function Menubar({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(Menubar$1.Root, {
|
|
24
|
+
className: cn("bg-background h-8 gap-0.5 rounded-lg border p-[3px] flex items-center", className),
|
|
25
|
+
"data-slot": "menubar",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function MenubarCheckboxItem({ checked, children, className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs(Menubar$1.CheckboxItem, {
|
|
31
|
+
checked,
|
|
32
|
+
className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-disabled:opacity-50 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
33
|
+
"data-slot": "menubar-checkbox-item",
|
|
34
|
+
...props,
|
|
35
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: "left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4 pointer-events-none absolute flex items-center justify-center",
|
|
37
|
+
children: /* @__PURE__ */ jsx(Menubar$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
38
|
+
}), children]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function MenubarContent({ align = "start", alignOffset = -4, className, sideOffset = 8, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx(MenubarPortal, { children: /* @__PURE__ */ jsx(Menubar$1.Content, {
|
|
43
|
+
align,
|
|
44
|
+
alignOffset,
|
|
45
|
+
className: cn("bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 origin-(--radix-menubar-content-transform-origin) overflow-hidden", className),
|
|
46
|
+
"data-slot": "menubar-content",
|
|
47
|
+
sideOffset,
|
|
48
|
+
...props
|
|
49
|
+
}) });
|
|
50
|
+
}
|
|
51
|
+
function MenubarGroup({ ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx(Menubar$1.Group, {
|
|
53
|
+
"data-slot": "menubar-group",
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function MenubarItem({ className, inset, variant = "default", ...props }) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Menubar$1.Item, {
|
|
59
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 group/menubar-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
60
|
+
"data-inset": inset,
|
|
61
|
+
"data-slot": "menubar-item",
|
|
62
|
+
"data-variant": variant,
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function MenubarLabel({ className, inset, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx(Menubar$1.Label, {
|
|
68
|
+
className: cn("px-1.5 py-1 text-sm font-medium data-[inset]:pl-8", className),
|
|
69
|
+
"data-inset": inset,
|
|
70
|
+
"data-slot": "menubar-label",
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function MenubarMenu({ ...props }) {
|
|
75
|
+
return /* @__PURE__ */ jsx(Menubar$1.Menu, {
|
|
76
|
+
"data-slot": "menubar-menu",
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function MenubarPortal({ ...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx(Menubar$1.Portal, {
|
|
82
|
+
"data-slot": "menubar-portal",
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function MenubarRadioGroup({ ...props }) {
|
|
87
|
+
return /* @__PURE__ */ jsx(Menubar$1.RadioGroup, {
|
|
88
|
+
"data-slot": "menubar-radio-group",
|
|
89
|
+
...props
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function MenubarRadioItem({ children, className, ...props }) {
|
|
93
|
+
return /* @__PURE__ */ jsxs(Menubar$1.RadioItem, {
|
|
94
|
+
className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
95
|
+
"data-slot": "menubar-radio-item",
|
|
96
|
+
...props,
|
|
97
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
98
|
+
className: "left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4 pointer-events-none absolute flex items-center justify-center",
|
|
99
|
+
children: /* @__PURE__ */ jsx(Menubar$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
100
|
+
}), children]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function MenubarSeparator({ className, ...props }) {
|
|
104
|
+
return /* @__PURE__ */ jsx(Menubar$1.Separator, {
|
|
105
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
106
|
+
"data-slot": "menubar-separator",
|
|
107
|
+
...props
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function MenubarShortcut({ className, ...props }) {
|
|
111
|
+
return /* @__PURE__ */ jsx("span", {
|
|
112
|
+
className: cn("text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest ml-auto", className),
|
|
113
|
+
"data-slot": "menubar-shortcut",
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function MenubarSub({ ...props }) {
|
|
118
|
+
return /* @__PURE__ */ jsx(Menubar$1.Sub, {
|
|
119
|
+
"data-slot": "menubar-sub",
|
|
120
|
+
...props
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function MenubarSubContent({ className, ...props }) {
|
|
124
|
+
return /* @__PURE__ */ jsx(Menubar$1.SubContent, {
|
|
125
|
+
className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-menubar-content-transform-origin) overflow-hidden", className),
|
|
126
|
+
"data-slot": "menubar-sub-content",
|
|
127
|
+
...props
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function MenubarSubTrigger({ children, className, inset, ...props }) {
|
|
131
|
+
return /* @__PURE__ */ jsxs(Menubar$1.SubTrigger, {
|
|
132
|
+
className: cn("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-none select-none", className),
|
|
133
|
+
"data-inset": inset,
|
|
134
|
+
"data-slot": "menubar-sub-trigger",
|
|
135
|
+
...props,
|
|
136
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function MenubarTrigger({ className, ...props }) {
|
|
140
|
+
return /* @__PURE__ */ jsx(Menubar$1.Trigger, {
|
|
141
|
+
className: cn("hover:bg-muted aria-expanded:bg-muted rounded-sm px-1.5 py-[2px] text-sm font-medium flex items-center outline-hidden select-none", className),
|
|
142
|
+
"data-slot": "menubar-trigger",
|
|
143
|
+
...props
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=menubar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menubar.js","names":["MenubarPrimitive"],"sources":["../../../src/components/menubar/menubar.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { CheckIcon, ChevronRightIcon } from \"lucide-react\";\nimport { Menubar as MenubarPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>) {\n\treturn (\n\t\t<MenubarPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-background h-8 gap-0.5 rounded-lg border p-[3px] flex items-center\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarCheckboxItem({\n\tchecked,\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>) {\n\treturn (\n\t\t<MenubarPrimitive.CheckboxItem\n\t\t\tchecked={checked}\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-disabled:opacity-50 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar-checkbox-item\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className=\"left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4 pointer-events-none absolute flex items-center justify-center\">\n\t\t\t\t<MenubarPrimitive.ItemIndicator>\n\t\t\t\t\t<CheckIcon />\n\t\t\t\t</MenubarPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</MenubarPrimitive.CheckboxItem>\n\t);\n}\n\nfunction MenubarContent({\n\talign = \"start\",\n\talignOffset = -4,\n\tclassName,\n\tsideOffset = 8,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.Content>) {\n\treturn (\n\t\t<MenubarPortal>\n\t\t\t<MenubarPrimitive.Content\n\t\t\t\talign={align}\n\t\t\t\talignOffset={alignOffset}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 origin-(--radix-menubar-content-transform-origin) overflow-hidden\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"menubar-content\"\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</MenubarPortal>\n\t);\n}\n\nfunction MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>) {\n\treturn <MenubarPrimitive.Group data-slot=\"menubar-group\" {...props} />;\n}\n\nfunction MenubarItem({\n\tclassName,\n\tinset,\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.Item> & {\n\tinset?: boolean;\n\tvariant?: \"default\" | \"destructive\";\n}) {\n\treturn (\n\t\t<MenubarPrimitive.Item\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 group/menubar-item relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"menubar-item\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarLabel({\n\tclassName,\n\tinset,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.Label> & {\n\tinset?: boolean;\n}) {\n\treturn (\n\t\t<MenubarPrimitive.Label\n\t\t\tclassName={cn(\"px-1.5 py-1 text-sm font-medium data-[inset]:pl-8\", className)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"menubar-label\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>) {\n\treturn <MenubarPrimitive.Menu data-slot=\"menubar-menu\" {...props} />;\n}\n\nfunction MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>) {\n\treturn <MenubarPrimitive.Portal data-slot=\"menubar-portal\" {...props} />;\n}\n\nfunction MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>) {\n\treturn <MenubarPrimitive.RadioGroup data-slot=\"menubar-radio-group\" {...props} />;\n}\n\nfunction MenubarRadioItem({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.RadioItem>) {\n\treturn (\n\t\t<MenubarPrimitive.RadioItem\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-1.5 pl-7 text-sm data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar-radio-item\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className=\"left-1.5 size-4 [&_svg:not([class*='size-'])]:size-4 pointer-events-none absolute flex items-center justify-center\">\n\t\t\t\t<MenubarPrimitive.ItemIndicator>\n\t\t\t\t\t<CheckIcon />\n\t\t\t\t</MenubarPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</MenubarPrimitive.RadioItem>\n\t);\n}\n\nfunction MenubarSeparator({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.Separator>) {\n\treturn (\n\t\t<MenubarPrimitive.Separator\n\t\t\tclassName={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n\t\t\tdata-slot=\"menubar-separator\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarShortcut({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest ml-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar-shortcut\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>) {\n\treturn <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\nfunction MenubarSubContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubContent>) {\n\treturn (\n\t\t<MenubarPrimitive.SubContent\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-lg p-1 shadow-lg ring-1 duration-100 z-50 origin-(--radix-menubar-content-transform-origin) overflow-hidden\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar-sub-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction MenubarSubTrigger({\n\tchildren,\n\tclassName,\n\tinset,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {\n\tinset?: boolean;\n}) {\n\treturn (\n\t\t<MenubarPrimitive.SubTrigger\n\t\t\tclassName={cn(\n\t\t\t\t\"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-[inset]:pl-8 [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-none select-none\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-inset={inset}\n\t\t\tdata-slot=\"menubar-sub-trigger\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<ChevronRightIcon className=\"ml-auto size-4\" />\n\t\t</MenubarPrimitive.SubTrigger>\n\t);\n}\n\nfunction MenubarTrigger({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof MenubarPrimitive.Trigger>) {\n\treturn (\n\t\t<MenubarPrimitive.Trigger\n\t\t\tclassName={cn(\n\t\t\t\t\"hover:bg-muted aria-expanded:bg-muted rounded-sm px-1.5 py-[2px] text-sm font-medium flex items-center outline-hidden select-none\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"menubar-trigger\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tMenubar,\n\tMenubarCheckboxItem,\n\tMenubarContent,\n\tMenubarGroup,\n\tMenubarItem,\n\tMenubarLabel,\n\tMenubarMenu,\n\tMenubarPortal,\n\tMenubarRadioGroup,\n\tMenubarRadioItem,\n\tMenubarSeparator,\n\tMenubarShortcut,\n\tMenubarSub,\n\tMenubarSubContent,\n\tMenubarSubTrigger,\n\tMenubarTrigger,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime171 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/native-select/native-select.d.ts
|
|
5
|
+
|
|
6
|
+
type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
|
|
7
|
+
size?: "default" | "sm";
|
|
8
|
+
};
|
|
9
|
+
declare function NativeSelect({
|
|
10
|
+
className,
|
|
11
|
+
size,
|
|
12
|
+
...props
|
|
13
|
+
}: NativeSelectProps): react_jsx_runtime171.JSX.Element;
|
|
14
|
+
declare function NativeSelectOptGroup({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<"optgroup">): react_jsx_runtime171.JSX.Element;
|
|
18
|
+
declare function NativeSelectOption({
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<"option">): react_jsx_runtime171.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
23
|
+
//# sourceMappingURL=native-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-select.d.ts","names":[],"sources":["../../../src/components/native-select/native-select.tsx"],"sourcesContent":[],"mappings":";;;;;AAkDuF,KA7BlF,iBAAA,GAAoB,IAiCE,CAjCG,KAAA,CAAM,cAiCY,CAAA,QAAA,CAAwB,EAAA,MAAA,CAAA,GAAA;;;iBA7B/D,YAAA;;;;GAAwD,oBAAiB,oBAAA,CAAA,GAAA,CAAA;iBAyBzE,oBAAA;;;GAA8C,KAAA,CAAM,6BAA0B,oBAAA,CAAA,GAAA,CAAA;iBAI9E,kBAAA;;GAAiC,KAAA,CAAM,2BAAwB,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/native-select/native-select.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Copyright 2026 ResQ
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
function NativeSelect({ className, size = "default", ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className),
|
|
23
|
+
"data-size": size,
|
|
24
|
+
"data-slot": "native-select-wrapper",
|
|
25
|
+
children: [/* @__PURE__ */ jsx("select", {
|
|
26
|
+
className: "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
27
|
+
"data-size": size,
|
|
28
|
+
"data-slot": "native-select",
|
|
29
|
+
...props
|
|
30
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
className: "text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2 pointer-events-none absolute select-none",
|
|
33
|
+
"data-slot": "native-select-icon"
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function NativeSelectOptGroup({ className, ...props }) {
|
|
38
|
+
return /* @__PURE__ */ jsx("optgroup", {
|
|
39
|
+
className: cn(className),
|
|
40
|
+
"data-slot": "native-select-optgroup",
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function NativeSelectOption({ ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("option", {
|
|
46
|
+
"data-slot": "native-select-option",
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=native-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-select.js","names":[],"sources":["../../../src/components/native-select/native-select.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ChevronDownIcon } from \"lucide-react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\ntype NativeSelectProps = Omit<React.ComponentProps<\"select\">, \"size\"> & {\n\tsize?: \"default\" | \"sm\";\n};\n\nfunction NativeSelect({ className, size = \"default\", ...props }: NativeSelectProps) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"native-select-wrapper\"\n\t\t>\n\t\t\t<select\n\t\t\t\tclassName=\"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed\"\n\t\t\t\tdata-size={size}\n\t\t\t\tdata-slot=\"native-select\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t\t<ChevronDownIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2 pointer-events-none absolute select-none\"\n\t\t\t\tdata-slot=\"native-select-icon\"\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction NativeSelectOptGroup({ className, ...props }: React.ComponentProps<\"optgroup\">) {\n\treturn <optgroup className={cn(className)} data-slot=\"native-select-optgroup\" {...props} />;\n}\n\nfunction NativeSelectOption({ ...props }: React.ComponentProps<\"option\">) {\n\treturn <option data-slot=\"native-select-option\" {...props} />;\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,SAAS,aAAa,EAAE,WAAW,OAAO,WAAW,GAAG,SAA4B;AACnF,QACC,qBAAC,OAAD;EACC,WAAW,GACV,uEACA,UACA;EACD,aAAW;EACX,aAAU;YANX,CAQC,oBAAC,UAAD;GACC,WAAU;GACV,aAAW;GACX,aAAU;GACV,GAAI;GACH,CAAA,EACF,oBAAC,iBAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;GACT,CAAA,CACG;;;AAIR,SAAS,qBAAqB,EAAE,WAAW,GAAG,SAA2C;AACxF,QAAO,oBAAC,YAAD;EAAU,WAAW,GAAG,UAAU;EAAE,aAAU;EAAyB,GAAI;EAAS,CAAA;;AAG5F,SAAS,mBAAmB,EAAE,GAAG,SAAyC;AACzE,QAAO,oBAAC,UAAD;EAAQ,aAAU;EAAuB,GAAI;EAAS,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from "./navigation-menu.js";
|
|
2
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from "./navigation-menu.js";
|
|
2
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime185 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/navigation-menu/navigation-menu.d.ts
|
|
7
|
+
|
|
8
|
+
declare function NavigationMenu({
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
viewport,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Root> & {
|
|
14
|
+
viewport?: boolean;
|
|
15
|
+
}): react_jsx_runtime185.JSX.Element;
|
|
16
|
+
declare function NavigationMenuItem({
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Item>): react_jsx_runtime185.JSX.Element;
|
|
20
|
+
declare function NavigationMenuList({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}: React.ComponentProps<typeof NavigationMenu$1.List>): react_jsx_runtime185.JSX.Element;
|
|
24
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types5.ClassProp | undefined) => string;
|
|
25
|
+
declare function NavigationMenuContent({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Content>): react_jsx_runtime185.JSX.Element;
|
|
29
|
+
declare function NavigationMenuIndicator({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Indicator>): react_jsx_runtime185.JSX.Element;
|
|
33
|
+
declare function NavigationMenuLink({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Link>): react_jsx_runtime185.JSX.Element;
|
|
37
|
+
declare function NavigationMenuTrigger({
|
|
38
|
+
children,
|
|
39
|
+
className,
|
|
40
|
+
...props
|
|
41
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Trigger>): react_jsx_runtime185.JSX.Element;
|
|
42
|
+
declare function NavigationMenuViewport({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: React.ComponentProps<typeof NavigationMenu$1.Viewport>): react_jsx_runtime185.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
48
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAuBS,cAAA,CA2BA;EAAA,QAAA;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAtBN,KAAA,CAAM,cAsBA,CAAA,OAtBsB,gBAAA,CAAwB,IAsB9C,CAAA,GAAA;EAAmD,QAAA,CAAA,EAAA,OAAA;CAAA,CAAA,EApB3D,oBAAA,CAAA,GAAA,CAAA,OAoB2D;AAAA,iBAHnD,kBAAA,CAakB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAVxB,KAAA,CAAM,cAUkB,CAAA,OAVI,gBAAA,CAAwB,IAU5B,CAAA,CAAA,EAViC,oBAAA,CAAA,GAAA,CAAA,OAUjC;iBAAlB,kBAAA,CACR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAEE,KAAA,CAAM,cAFR,CAAA,OAE8B,gBAAA,CAAwB,IAFtD,CAAA,CAAA,EAE2D,oBAAA,CAAA,GAAA,CAAA,OAF3D;cAYK,0BAViD,EAAA,CAAA,KAAA,CAAA,EAYtD,+BAAA,CAF+B,SAAA,GAVuB,SAAA,EAAA,GAAA,MAAA;iBAc9C,qBAAA,CAdA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiBN,KAAA,CAAM,cAjBA,CAAA,OAiBsB,gBAAA,CAAwB,OAjB9C,CAAA,CAAA,EAiBsD,oBAAA,CAAA,GAAA,CAAA,OAjBtD;iBA8BA,uBAAA,CA9BmD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiCzD,KAAA,CAAM,cAjCmD,CAAA,OAiC7B,gBAAA,CAAwB,SAjCK,CAAA,CAAA,EAiCK,oBAAA,CAAA,GAAA,CAAA,OAjCL;iBAgDnD,kBAAA,CAhDmD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmDzD,KAAA,CAAM,cAnDmD,CAAA,OAmD7B,gBAAA,CAAwB,IAnDK,CAAA,CAAA,EAmDA,oBAAA,CAAA,GAAA,CAAA,OAnDA;AAAA,iBAgEnD,qBAAA,CApDR;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAF+B,CAE/B,EAwDE,KAAA,CAAM,cA1DuB,CAAA,OA0DD,gBAAA,CAAwB,OA1DvB,CAAA,CAAA,EA0D+B,oBAAA,CAAA,GAAA,CAAA,OA1D/B;AAAA,iBA0EvB,sBAAA,CAtEqB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyE3B,KAAA,CAAM,cAzEqB,CAAA,OAyEC,gBAAA,CAAwB,QAzEzB,CAAA,CAAA,EAyEkC,oBAAA,CAAA,GAAA,CAAA,OAzElC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
3
|
+
import { NavigationMenu as NavigationMenu$1 } from "radix-ui";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
//#region src/components/navigation-menu/navigation-menu.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Copyright 2026 ResQ
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
function NavigationMenu({ children, className, viewport = true, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsxs(NavigationMenu$1.Root, {
|
|
24
|
+
className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
|
|
25
|
+
"data-slot": "navigation-menu",
|
|
26
|
+
"data-viewport": viewport,
|
|
27
|
+
...props,
|
|
28
|
+
children: [children, viewport && /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function NavigationMenuItem({ className, ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Item, {
|
|
33
|
+
className: cn("relative", className),
|
|
34
|
+
"data-slot": "navigation-menu-item",
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function NavigationMenuList({ className, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.List, {
|
|
40
|
+
className: cn("gap-0 group flex flex-1 list-none items-center justify-center", className),
|
|
41
|
+
"data-slot": "navigation-menu-list",
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const navigationMenuTriggerStyle = cva("bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all focus-visible:ring-[3px] focus-visible:outline-1 disabled:opacity-50 group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center disabled:pointer-events-none outline-none");
|
|
46
|
+
function NavigationMenuContent({ className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Content, {
|
|
48
|
+
className: cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 top-0 left-0 w-full group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto", className),
|
|
49
|
+
"data-slot": "navigation-menu-content",
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function NavigationMenuIndicator({ className, ...props }) {
|
|
54
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Indicator, {
|
|
55
|
+
className: cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className),
|
|
56
|
+
"data-slot": "navigation-menu-indicator",
|
|
57
|
+
...props,
|
|
58
|
+
children: /* @__PURE__ */ jsx("div", { className: "bg-border rounded-tl-sm shadow-md relative top-[60%] h-2 w-2 rotate-45" })
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function NavigationMenuLink({ className, ...props }) {
|
|
62
|
+
return /* @__PURE__ */ jsx(NavigationMenu$1.Link, {
|
|
63
|
+
className: cn("data-active:focus:bg-muted data-active:hover:bg-muted data-active:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 [[data-slot=navigation-menu-content]_&]:rounded-md", className),
|
|
64
|
+
"data-slot": "navigation-menu-link",
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function NavigationMenuTrigger({ children, className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsxs(NavigationMenu$1.Trigger, {
|
|
70
|
+
className: cn(navigationMenuTriggerStyle(), "group", className),
|
|
71
|
+
"data-slot": "navigation-menu-trigger",
|
|
72
|
+
...props,
|
|
73
|
+
children: [
|
|
74
|
+
children,
|
|
75
|
+
" ",
|
|
76
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180"
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function NavigationMenuViewport({ className, ...props }) {
|
|
84
|
+
return /* @__PURE__ */ jsx("div", {
|
|
85
|
+
className: cn("absolute top-full left-0 isolate z-50 flex justify-center"),
|
|
86
|
+
children: /* @__PURE__ */ jsx(NavigationMenu$1.Viewport, {
|
|
87
|
+
className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100 origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden md:w-[var(--radix-navigation-menu-viewport-width)]", className),
|
|
88
|
+
"data-slot": "navigation-menu-viewport",
|
|
89
|
+
...props
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","names":["NavigationMenuPrimitive"],"sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cva } from \"class-variance-authority\";\nimport { ChevronDownIcon } from \"lucide-react\";\nimport { NavigationMenu as NavigationMenuPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction NavigationMenu({\n\tchildren,\n\tclassName,\n\tviewport = true,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n\tviewport?: boolean;\n}) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t\"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"navigation-menu\"\n\t\t\tdata-viewport={viewport}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t{viewport && <NavigationMenuViewport />}\n\t\t</NavigationMenuPrimitive.Root>\n\t);\n}\n\nfunction NavigationMenuItem({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Item>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Item\n\t\t\tclassName={cn(\"relative\", className)}\n\t\t\tdata-slot=\"navigation-menu-item\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction NavigationMenuList({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.List\n\t\t\tclassName={cn(\"gap-0 group flex flex-1 list-none items-center justify-center\", className)}\n\t\t\tdata-slot=\"navigation-menu-list\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst navigationMenuTriggerStyle = cva(\n\t\"bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all focus-visible:ring-[3px] focus-visible:outline-1 disabled:opacity-50 group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center disabled:pointer-events-none outline-none\",\n);\n\nfunction NavigationMenuContent({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Content>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Content\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 top-0 left-0 w-full group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"navigation-menu-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction NavigationMenuIndicator({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Indicator\n\t\t\tclassName={cn(\n\t\t\t\t\"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"navigation-menu-indicator\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<div className=\"bg-border rounded-tl-sm shadow-md relative top-[60%] h-2 w-2 rotate-45\" />\n\t\t</NavigationMenuPrimitive.Indicator>\n\t);\n}\n\nfunction NavigationMenuLink({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Link\n\t\t\tclassName={cn(\n\t\t\t\t\"data-active:focus:bg-muted data-active:hover:bg-muted data-active:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 [[data-slot=navigation-menu-content]_&]:rounded-md\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"navigation-menu-link\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction NavigationMenuTrigger({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>) {\n\treturn (\n\t\t<NavigationMenuPrimitive.Trigger\n\t\t\tclassName={cn(navigationMenuTriggerStyle(), \"group\", className)}\n\t\t\tdata-slot=\"navigation-menu-trigger\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}{\" \"}\n\t\t\t<ChevronDownIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"relative top-[1px] ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180\"\n\t\t\t/>\n\t\t</NavigationMenuPrimitive.Trigger>\n\t);\n}\n\nfunction NavigationMenuViewport({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>) {\n\treturn (\n\t\t<div className={cn(\"absolute top-full left-0 isolate z-50 flex justify-center\")}>\n\t\t\t<NavigationMenuPrimitive.Viewport\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100 origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden md:w-[var(--radix-navigation-menu-viewport-width)]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"navigation-menu-viewport\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nexport {\n\tNavigationMenu,\n\tNavigationMenuContent,\n\tNavigationMenuIndicator,\n\tNavigationMenuItem,\n\tNavigationMenuLink,\n\tNavigationMenuList,\n\tNavigationMenuTrigger,\n\tnavigationMenuTriggerStyle,\n\tNavigationMenuViewport,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,eAAe,EACvB,UACA,WACA,WAAW,MACX,GAAG,SAGD;AACF,QACC,qBAACA,iBAAwB,MAAzB;EACC,WAAW,GACV,oFACA,UACA;EACD,aAAU;EACV,iBAAe;EACf,GAAI;YAPL,CASE,UACA,YAAY,oBAAC,wBAAD,EAA0B,CAAA,CACT;;;AAIjC,SAAS,mBAAmB,EAC3B,WACA,GAAG,SAC0D;AAC7D,QACC,oBAACA,iBAAwB,MAAzB;EACC,WAAW,GAAG,YAAY,UAAU;EACpC,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,mBAAmB,EAC3B,WACA,GAAG,SAC0D;AAC7D,QACC,oBAACA,iBAAwB,MAAzB;EACC,WAAW,GAAG,iEAAiE,UAAU;EACzF,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,MAAM,6BAA6B,IAClC,ucACA;AAED,SAAS,sBAAsB,EAC9B,WACA,GAAG,SAC6D;AAChE,QACC,oBAACA,iBAAwB,SAAzB;EACC,WAAW,GACV,y6CACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,wBAAwB,EAChC,WACA,GAAG,SAC+D;AAClE,QACC,oBAACA,iBAAwB,WAAzB;EACC,WAAW,GACV,gMACA,UACA;EACD,aAAU;EACV,GAAI;YAEJ,oBAAC,OAAD,EAAK,WAAU,0EAA2E,CAAA;EACvD,CAAA;;AAItC,SAAS,mBAAmB,EAC3B,WACA,GAAG,SAC0D;AAC7D,QACC,oBAACA,iBAAwB,MAAzB;EACC,WAAW,GACV,8VACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,sBAAsB,EAC9B,UACA,WACA,GAAG,SAC6D;AAChE,QACC,qBAACA,iBAAwB,SAAzB;EACC,WAAW,GAAG,4BAA4B,EAAE,SAAS,UAAU;EAC/D,aAAU;EACV,GAAI;YAHL;GAKE;GAAU;GACX,oBAAC,iBAAD;IACC,eAAY;IACZ,WAAU;IACT,CAAA;GAC+B;;;AAIpC,SAAS,uBAAuB,EAC/B,WACA,GAAG,SAC8D;AACjE,QACC,oBAAC,OAAD;EAAK,WAAW,GAAG,4DAA4D;YAC9E,oBAACA,iBAAwB,UAAzB;GACC,WAAW,GACV,sVACA,UACA;GACD,aAAU;GACV,GAAI;GACH,CAAA;EACG,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./pagination.js";
|
|
2
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./pagination.js";
|
|
2
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Button } from "../button/button.js";
|
|
2
|
+
import * as react_jsx_runtime194 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/pagination/pagination.d.ts
|
|
6
|
+
|
|
7
|
+
type PaginationLinkProps = Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a"> & {
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function Pagination({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<"nav">): react_jsx_runtime194.JSX.Element;
|
|
14
|
+
declare function PaginationContent({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<"ul">): react_jsx_runtime194.JSX.Element;
|
|
18
|
+
declare function PaginationEllipsis({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<"span">): react_jsx_runtime194.JSX.Element;
|
|
22
|
+
declare function PaginationItem({
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<"li">): react_jsx_runtime194.JSX.Element;
|
|
25
|
+
declare function PaginationLink({
|
|
26
|
+
className,
|
|
27
|
+
isActive,
|
|
28
|
+
size,
|
|
29
|
+
...props
|
|
30
|
+
}: PaginationLinkProps): react_jsx_runtime194.JSX.Element;
|
|
31
|
+
declare function PaginationNext({
|
|
32
|
+
className,
|
|
33
|
+
text,
|
|
34
|
+
...props
|
|
35
|
+
}: React.ComponentProps<typeof PaginationLink> & {
|
|
36
|
+
text?: string;
|
|
37
|
+
}): react_jsx_runtime194.JSX.Element;
|
|
38
|
+
declare function PaginationPrevious({
|
|
39
|
+
className,
|
|
40
|
+
text,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof PaginationLink> & {
|
|
43
|
+
text?: string;
|
|
44
|
+
}): react_jsx_runtime194.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
47
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","names":[],"sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":[],"mappings":";;;;;;KAsBK,mBAAA,GAAsB,IAgBE,CAhBG,KAAA,CAAM,cAgBT,CAAA,OAhB+B,MAgB/B,CAAA,EAAA,MAAA,CAAA,GAf5B,KAAA,CAAM,cAesB,CAAA,GAAA,CAAA,GAAA;EAAuB,QAAM,CAAA,EAAA,OAAA;CAAoB;iBAXrE,UAAA,CAWqE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAXjC,KAAA,CAAM,cAW2B,CAAA,KAAA,CAAA,CAAA,EAXN,oBAAA,CAAA,GAAA,CAAA,OAWM;AAAA,iBAArE,iBAAA,CAUkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAVyB,KAAA,CAAM,cAU/B,CAAA,IAAA,CAAA,CAAA,EAVmD,oBAAA,CAAA,GAAA,CAAA,OAUnD;iBAAlB,kBAAA,CAAqB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAuB,KAAA,CAAM,cAA7B,CAAA,MAAA,CAAA,CAAA,EAAmD,oBAAA,CAAA,GAAA,CAAA,OAAnD;iBAiBrB,cAAA,CAjBkD;EAAA,GAAA;AAAA,CAAA,EAiBrB,KAAA,CAAM,cAjBe,CAAA,IAAA,CAAA,CAAA,EAiBK,oBAAA,CAAA,GAAA,CAAA,OAjBL;iBAqBlD,cAAA,CArBwE;EAAA,SAAA;EAAA,QAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAqBP,mBArBO,CAAA,EAqBY,oBAAA,CAAA,GAAA,CAAA,OArBZ;iBAkCxE,cAAA,CAlCwE;EAAA,SAAA;EAAA,IAAA;EAAA,GAAA;AAiBjB,CAjBiB,EAsC9E,KAAA,CAAM,cAtCwE,CAAA,OAsClD,cAtCkD,CAAA,GAAA;EAiBxE,IAAA,CAAA,EAAA,MAAA;AAAuD,CAAA,CAAA,EAqBE,oBAAA,CAAA,GAAA,CAAA,OAjB3C;iBA+Bd,kBAAA,CA/BiB;EAAA,SAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAmCvB,KAAA,CAAM,cAnCiB,CAAA,OAmCK,cAnCL,CAAA,GAAA;EAAW,IAAA,CAAA,EAAA,MAAA;CAAU,CAAA,EAmCmB,oBAAA,CAAA,GAAA,CAAA,OAnCnB"}
|