@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,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { Avatar as Avatar$1 } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/avatar/avatar.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2026 ResQ
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
function Avatar({ className, size = "default", ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
23
|
+
className: cn("size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten", className),
|
|
24
|
+
"data-size": size,
|
|
25
|
+
"data-slot": "avatar",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function AvatarBadge({ className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: cn("bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", className),
|
|
32
|
+
"data-slot": "avatar-badge",
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function AvatarFallback({ className, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Avatar$1.Fallback, {
|
|
38
|
+
className: cn("bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs", className),
|
|
39
|
+
"data-slot": "avatar-fallback",
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function AvatarGroup({ className, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ jsx("div", {
|
|
45
|
+
className: cn("*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2", className),
|
|
46
|
+
"data-slot": "avatar-group",
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function AvatarGroupCount({ className, ...props }) {
|
|
51
|
+
return /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: cn("bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", className),
|
|
53
|
+
"data-slot": "avatar-group-count",
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function AvatarImage({ className, ...props }) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Avatar$1.Image, {
|
|
59
|
+
className: cn("rounded-full aspect-square size-full object-cover", className),
|
|
60
|
+
"data-slot": "avatar-image",
|
|
61
|
+
...props
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","names":["AvatarPrimitive"],"sources":["../../../src/components/avatar/avatar.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 { Avatar as AvatarPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Avatar({\n\tclassName,\n\tsize = \"default\",\n\t...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root> & {\n\tsize?: \"default\" | \"lg\" | \"sm\";\n}) {\n\treturn (\n\t\t<AvatarPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t\"size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"avatar\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none\",\n\t\t\t\t\"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden\",\n\t\t\t\t\"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n\t\t\t\t\"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"avatar-badge\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarFallback({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n\treturn (\n\t\t<AvatarPrimitive.Fallback\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"avatar-fallback\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"avatar-group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarGroupCount({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"avatar-group-count\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n\treturn (\n\t\t<AvatarPrimitive.Image\n\t\t\tclassName={cn(\"rounded-full aspect-square size-full object-cover\", className)}\n\t\t\tdata-slot=\"avatar-image\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,OAAO,EACf,WACA,OAAO,WACP,GAAG,SAGD;AACF,QACC,oBAACA,SAAgB,MAAjB;EACC,WAAW,GACV,yPACA,UACA;EACD,aAAW;EACX,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,YAAY,EAAE,WAAW,GAAG,SAAuC;AAC3E,QACC,oBAAC,QAAD;EACC,WAAW,GACV,4KACA,iFACA,6FACA,iFACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EACvB,WACA,GAAG,SACsD;AACzD,QACC,oBAACA,SAAgB,UAAjB;EACC,WAAW,GACV,sIACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;AAC1E,QACC,oBAAC,OAAD;EACC,WAAW,GACV,uGACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,iBAAiB,EAAE,WAAW,GAAG,SAAsC;AAC/E,QACC,oBAAC,OAAD;EACC,WAAW,GACV,4VACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;AACjG,QACC,oBAACA,SAAgB,OAAjB;EACC,WAAW,GAAG,qDAAqD,UAAU;EAC7E,aAAU;EACV,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/badge/badge.d.ts
|
|
7
|
+
|
|
8
|
+
declare const badgeVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
|
+
declare function Badge({
|
|
12
|
+
asChild,
|
|
13
|
+
className,
|
|
14
|
+
variant,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
}): react_jsx_runtime27.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Badge, badgeVariants };
|
|
21
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","names":[],"sources":["../../../src/components/badge/badge.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAsBM;;IAkBL,+BAAA,CAAA;iBAEQ,KAAA;;;;;GAKN,KAAA,CAAM,yBAAyB,oBAAoB;;IAAsC,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Slot } from "radix-ui";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
//#region src/components/badge/badge.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2026 ResQ
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
const badgeVariants = cva("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge", {
|
|
22
|
+
defaultVariants: { variant: "default" },
|
|
23
|
+
variants: { variant: {
|
|
24
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
25
|
+
destructive: "bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",
|
|
26
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
27
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
28
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
29
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80"
|
|
30
|
+
} }
|
|
31
|
+
});
|
|
32
|
+
function Badge({ asChild = false, className, variant = "default", ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "span", {
|
|
34
|
+
className: cn(badgeVariants({ variant }), className),
|
|
35
|
+
"data-slot": "badge",
|
|
36
|
+
"data-variant": variant,
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Badge, badgeVariants };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.js","names":[],"sources":["../../../src/components/badge/badge.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, type VariantProps } from \"class-variance-authority\";\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nconst badgeVariants = cva(\n\t\"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20\",\n\t\t\t\tghost: \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t\t\toutline: \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n\t\t\t\tsecondary: \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n\t\t\t},\n\t\t},\n\t},\n);\n\nfunction Badge({\n\tasChild = false,\n\tclassName,\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n\tconst Comp = asChild ? Slot.Root : \"span\";\n\n\treturn (\n\t\t<Comp\n\t\t\tclassName={cn(badgeVariants({ variant }), className)}\n\t\t\tdata-slot=\"badge\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Badge, badgeVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,gBAAgB,IACrB,8eACA;CACC,iBAAiB,EAChB,SAAS,WACT;CACD,UAAU,EACT,SAAS;EACR,SAAS;EACT,aACC;EACD,OAAO;EACP,MAAM;EACN,SAAS;EACT,WAAW;EACX,EACD;CACD,CACD;AAED,SAAS,MAAM,EACd,UAAU,OACV,WACA,UAAU,WACV,GAAG,SAC0F;AAG7F,QACC,oBAHY,UAAU,KAAK,OAAO,QAGlC;EACC,WAAW,GAAG,cAAc,EAAE,SAAS,CAAC,EAAE,UAAU;EACpD,aAAU;EACV,gBAAc;EACd,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/breadcrumb/breadcrumb.d.ts
|
|
5
|
+
|
|
6
|
+
declare function Breadcrumb({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<"nav">): react_jsx_runtime28.JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<"span">): react_jsx_runtime28.JSX.Element;
|
|
14
|
+
declare function BreadcrumbItem({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<"li">): react_jsx_runtime28.JSX.Element;
|
|
18
|
+
declare function BreadcrumbLink({
|
|
19
|
+
asChild,
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<"a"> & {
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
}): react_jsx_runtime28.JSX.Element;
|
|
25
|
+
declare function BreadcrumbList({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<"ol">): react_jsx_runtime28.JSX.Element;
|
|
29
|
+
declare function BreadcrumbPage({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<"span">): react_jsx_runtime28.JSX.Element;
|
|
33
|
+
declare function BreadcrumbSeparator({
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: React.ComponentProps<"li">): react_jsx_runtime28.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
40
|
+
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","names":[],"sources":["../../../src/components/breadcrumb/breadcrumb.tsx"],"sourcesContent":[],"mappings":";;;;;iBAsBS,UAAA,CAqB8C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EArBV,KAAA,CAAM,cAqBI,CAAA,KAAA,CAAA,CAAA,EArBiB,mBAAA,CAAA,GAAA,CAAA,OAqBjB;iBAf9C,kBAAA,CAekE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAftB,KAAA,CAAM,cAegB,CAAA,MAAA,CAAA,CAAA,EAfM,mBAAA,CAAA,GAAA,CAAA,OAeN;iBAAlE,cAAA,CAAkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA1B,KAAA,CAAM,cAAoB,CAAA,IAAA,CAAA,CAAA,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAUlE,cAAA,CAAc;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAIpB,KAAA,CAAM,cAJc,CAAA,GAAA,CAAA,GAAA;EACtB,OAAA,CAAA,EAAA,OAAA;CACA,CAAA,EAIA,mBAAA,CAAA,GAAA,CAAA,OAJA;iBAgBQ,cAAA,CAdA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAcwC,KAAA,CAAM,cAd9C,CAAA,IAAA,CAAA,CAAA,EAckE,mBAAA,CAAA,GAAA,CAAA,OAdlE;iBA2BA,cAAA,CAzBR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyBgD,KAAA,CAAM,cAzBtD,CAAA,MAAA,CAAA,CAAA,EAyB4E,mBAAA,CAAA,GAAA,CAAA,OAzB5E;iBAsCQ,mBAAA,CAtCR;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsC+D,KAAA,CAAM,cAtCrE,CAAA,IAAA,CAAA,CAAA,EAsCyF,mBAAA,CAAA,GAAA,CAAA,OAtCzF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/breadcrumb/breadcrumb.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2026 ResQ
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
function Breadcrumb({ className, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
23
|
+
"aria-label": "breadcrumb",
|
|
24
|
+
className: cn(className),
|
|
25
|
+
"data-slot": "breadcrumb",
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function BreadcrumbEllipsis({ className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
className: cn("size-5 [&>svg]:size-4 flex items-center justify-center", className),
|
|
33
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
34
|
+
role: "presentation",
|
|
35
|
+
...props,
|
|
36
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: "sr-only",
|
|
38
|
+
children: "More"
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function BreadcrumbItem({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsx("li", {
|
|
44
|
+
className: cn("gap-1 inline-flex items-center", className),
|
|
45
|
+
"data-slot": "breadcrumb-item",
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function BreadcrumbLink({ asChild, className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "a", {
|
|
51
|
+
className: cn("hover:text-foreground transition-colors", className),
|
|
52
|
+
"data-slot": "breadcrumb-link",
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function BreadcrumbList({ className, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
58
|
+
className: cn("text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word", className),
|
|
59
|
+
"data-slot": "breadcrumb-list",
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function BreadcrumbPage({ className, ...props }) {
|
|
64
|
+
return /* @__PURE__ */ jsx("span", {
|
|
65
|
+
"aria-current": "page",
|
|
66
|
+
"aria-disabled": "true",
|
|
67
|
+
className: cn("text-foreground font-normal", className),
|
|
68
|
+
"data-slot": "breadcrumb-page",
|
|
69
|
+
role: "link",
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function BreadcrumbSeparator({ children, className, ...props }) {
|
|
74
|
+
return /* @__PURE__ */ jsx("li", {
|
|
75
|
+
"aria-hidden": "true",
|
|
76
|
+
className: cn("[&>svg]:size-3.5", className),
|
|
77
|
+
"data-slot": "breadcrumb-separator",
|
|
78
|
+
role: "presentation",
|
|
79
|
+
...props,
|
|
80
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.js","names":[],"sources":["../../../src/components/breadcrumb/breadcrumb.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 { ChevronRightIcon, MoreHorizontalIcon } from \"lucide-react\";\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Breadcrumb({ className, ...props }: React.ComponentProps<\"nav\">) {\n\treturn (\n\t\t<nav aria-label=\"breadcrumb\" className={cn(className)} data-slot=\"breadcrumb\" {...props} />\n\t);\n}\n\nfunction BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName={cn(\"size-5 [&>svg]:size-4 flex items-center justify-center\", className)}\n\t\t\tdata-slot=\"breadcrumb-ellipsis\"\n\t\t\trole=\"presentation\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<MoreHorizontalIcon />\n\t\t\t<span className=\"sr-only\">More</span>\n\t\t</span>\n\t);\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n\treturn (\n\t\t<li\n\t\t\tclassName={cn(\"gap-1 inline-flex items-center\", className)}\n\t\t\tdata-slot=\"breadcrumb-item\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction BreadcrumbLink({\n\tasChild,\n\tclassName,\n\t...props\n}: React.ComponentProps<\"a\"> & {\n\tasChild?: boolean;\n}) {\n\tconst Comp = asChild ? Slot.Root : \"a\";\n\n\treturn (\n\t\t<Comp\n\t\t\tclassName={cn(\"hover:text-foreground transition-colors\", className)}\n\t\t\tdata-slot=\"breadcrumb-link\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n\treturn (\n\t\t<ol\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground gap-1.5 text-sm flex flex-wrap items-center wrap-break-word\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"breadcrumb-list\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\taria-current=\"page\"\n\t\t\taria-disabled=\"true\"\n\t\t\tclassName={cn(\"text-foreground font-normal\", className)}\n\t\t\tdata-slot=\"breadcrumb-page\"\n\t\t\trole=\"link\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<\"li\">) {\n\treturn (\n\t\t<li\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName={cn(\"[&>svg]:size-3.5\", className)}\n\t\t\tdata-slot=\"breadcrumb-separator\"\n\t\t\trole=\"presentation\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{children ?? <ChevronRightIcon />}\n\t\t</li>\n\t);\n}\n\nexport {\n\tBreadcrumb,\n\tBreadcrumbEllipsis,\n\tBreadcrumbItem,\n\tBreadcrumbLink,\n\tBreadcrumbList,\n\tBreadcrumbPage,\n\tBreadcrumbSeparator,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACzE,QACC,oBAAC,OAAD;EAAK,cAAW;EAAa,WAAW,GAAG,UAAU;EAAE,aAAU;EAAa,GAAI;EAAS,CAAA;;AAI7F,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAuC;AAClF,QACC,qBAAC,QAAD;EACC,eAAY;EACZ,WAAW,GAAG,0DAA0D,UAAU;EAClF,aAAU;EACV,MAAK;EACL,GAAI;YALL,CAOC,oBAAC,oBAAD,EAAsB,CAAA,EACtB,oBAAC,QAAD;GAAM,WAAU;aAAU;GAAW,CAAA,CAC/B;;;AAIT,SAAS,eAAe,EAAE,WAAW,GAAG,SAAqC;AAC5E,QACC,oBAAC,MAAD;EACC,WAAW,GAAG,kCAAkC,UAAU;EAC1D,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EACvB,SACA,WACA,GAAG,SAGD;AAGF,QACC,oBAHY,UAAU,KAAK,OAAO,KAGlC;EACC,WAAW,GAAG,2CAA2C,UAAU;EACnE,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EAAE,WAAW,GAAG,SAAqC;AAC5E,QACC,oBAAC,MAAD;EACC,WAAW,GACV,qFACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EAAE,WAAW,GAAG,SAAuC;AAC9E,QACC,oBAAC,QAAD;EACC,gBAAa;EACb,iBAAc;EACd,WAAW,GAAG,+BAA+B,UAAU;EACvD,aAAU;EACV,MAAK;EACL,GAAI;EACH,CAAA;;AAIJ,SAAS,oBAAoB,EAAE,UAAU,WAAW,GAAG,SAAqC;AAC3F,QACC,oBAAC,MAAD;EACC,eAAY;EACZ,WAAW,GAAG,oBAAoB,UAAU;EAC5C,aAAU;EACV,MAAK;EACL,GAAI;YAEH,YAAY,oBAAC,kBAAD,EAAoB,CAAA;EAC7B,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./breadcrumb.js";
|
|
2
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./breadcrumb.js";
|
|
2
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/button/button.d.ts
|
|
7
|
+
|
|
8
|
+
declare const buttonVariants: (props?: ({
|
|
9
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | null | undefined;
|
|
10
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
12
|
+
declare function Button({
|
|
13
|
+
asChild,
|
|
14
|
+
className,
|
|
15
|
+
size,
|
|
16
|
+
variant,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
}): react_jsx_runtime35.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Button, buttonVariants };
|
|
23
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","names":[],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAsBM;;;IAmCL,+BAAA,CAAA;iBAEQ,MAAA;;;;;;GAMN,KAAA,CAAM,2BACR,oBAAoB;;IAEnB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Slot } from "radix-ui";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
//#region src/components/button/button.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Copyright 2026 ResQ
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
const buttonVariants = cva("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 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none", {
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
size: "default",
|
|
24
|
+
variant: "default"
|
|
25
|
+
},
|
|
26
|
+
variants: {
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
29
|
+
icon: "size-8",
|
|
30
|
+
"icon-lg": "size-9",
|
|
31
|
+
"icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
|
|
32
|
+
"icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
33
|
+
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
|
|
34
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
35
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3"
|
|
36
|
+
},
|
|
37
|
+
variant: {
|
|
38
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
39
|
+
destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
|
|
40
|
+
ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
41
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
42
|
+
outline: "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
43
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function Button({ asChild = false, className, size = "default", variant = "default", ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "button", {
|
|
49
|
+
className: cn(buttonVariants({
|
|
50
|
+
className,
|
|
51
|
+
size,
|
|
52
|
+
variant
|
|
53
|
+
})),
|
|
54
|
+
"data-size": size,
|
|
55
|
+
"data-slot": "button",
|
|
56
|
+
"data-variant": variant,
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { Button, buttonVariants };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/button/button.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, type VariantProps } from \"class-variance-authority\";\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nconst buttonVariants = cva(\n\t\"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 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: \"default\",\n\t\t\tvariant: \"default\",\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n\t\t\t\ticon: \"size-8\",\n\t\t\t\t\"icon-lg\": \"size-9\",\n\t\t\t\t\"icon-sm\":\n\t\t\t\t\t\"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg\",\n\t\t\t\t\"icon-xs\":\n\t\t\t\t\t\"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3\",\n\t\t\t\tlg: \"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3\",\n\t\t\t\tsm: \"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n\t\t\t\txs: \"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30\",\n\t\t\t\tghost:\n\t\t\t\t\t\"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground\",\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t\t\toutline:\n\t\t\t\t\t\"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n\t\t\t},\n\t\t},\n\t},\n);\n\nfunction Button({\n\tasChild = false,\n\tclassName,\n\tsize = \"default\",\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<\"button\"> &\n\tVariantProps<typeof buttonVariants> & {\n\t\tasChild?: boolean;\n\t}) {\n\tconst Comp = asChild ? Slot.Root : \"button\";\n\n\treturn (\n\t\t<Comp\n\t\t\tclassName={cn(buttonVariants({ className, size, variant }))}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"button\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,iBAAiB,IACtB,4jBACA;CACC,iBAAiB;EAChB,MAAM;EACN,SAAS;EACT;CACD,UAAU;EACT,MAAM;GACL,SACC;GACD,MAAM;GACN,WAAW;GACX,WACC;GACD,WACC;GACD,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ;EACD,SAAS;GACR,SAAS;GACT,aACC;GACD,OACC;GACD,MAAM;GACN,SACC;GACD,WACC;GACD;EACD;CACD,CACD;AAED,SAAS,OAAO,EACf,UAAU,OACV,WACA,OAAO,WACP,UAAU,WACV,GAAG,SAIA;AAGH,QACC,oBAHY,UAAU,KAAK,OAAO,UAGlC;EACC,WAAW,GAAG,eAAe;GAAE;GAAW;GAAM;GAAS,CAAC,CAAC;EAC3D,aAAW;EACX,aAAU;EACV,gBAAc;EACd,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Separator } from "../separator/separator.js";
|
|
2
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/button-group/button-group.d.ts
|
|
7
|
+
|
|
8
|
+
declare const buttonGroupVariants: (props?: ({
|
|
9
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types2.ClassProp) | undefined) => string;
|
|
11
|
+
declare function ButtonGroup({
|
|
12
|
+
className,
|
|
13
|
+
orientation,
|
|
14
|
+
...props
|
|
15
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime36.JSX.Element;
|
|
16
|
+
declare function ButtonGroupSeparator({
|
|
17
|
+
className,
|
|
18
|
+
orientation,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<typeof Separator>): react_jsx_runtime36.JSX.Element;
|
|
21
|
+
declare function ButtonGroupText({
|
|
22
|
+
asChild,
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<"div"> & {
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
}): react_jsx_runtime36.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
30
|
+
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","names":[],"sources":["../../../src/components/button-group/button-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAsBM,mBAmCL,EAAA,CAAA,KAEQ,CAFR,EAAA,CAAA;EAE8B,WAAA,CAAA,EAAA,YAAA,GAAA,UAAA,GAAA,IAAA,GAAA,SAAA;CAA5B,GAtBF,+BAAA,CAAA,SAsBQ,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBApBA,WAAA,CAoBgC;EAAA,SAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EAhBtC,KAAA,CAAM,cAgBgC,CAAA,KAAA,CAAA,GAhBR,YAgBQ,CAAA,OAhBY,mBAgBZ,CAAA,CAAA,EAhBgC,mBAAA,CAAA,GAAA,CAAA,OAgBhC;iBAJhC,oBAAA,CAIgC;EAAA,SAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EAAtC,KAAA,CAAM,cAAgC,CAAA,OAAV,SAAU,CAAA,CAAA,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAchC,eAAA,CAAe;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAIrB,KAAA,CAAM,cAJe,CAAA,KAAA,CAAA,GAAA;EACvB,OAAA,CAAA,EAAA,OAAA;CACA,CAAA,EAIA,mBAAA,CAAA,GAAA,CAAA,OAJA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Separator as Separator$1 } from "../separator/separator.js";
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
//#region src/components/button-group/button-group.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
|
+
const buttonGroupVariants = cva("has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
23
|
+
defaultVariants: { orientation: "horizontal" },
|
|
24
|
+
variants: { orientation: {
|
|
25
|
+
horizontal: "[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
26
|
+
vertical: "[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
27
|
+
} }
|
|
28
|
+
});
|
|
29
|
+
function ButtonGroup({ className, orientation, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: cn(buttonGroupVariants({ orientation }), className),
|
|
32
|
+
"data-orientation": orientation,
|
|
33
|
+
"data-slot": "button-group",
|
|
34
|
+
role: "group",
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx(Separator$1, {
|
|
40
|
+
className: cn("bg-input relative self-stretch data-[orientation=horizontal]:mx-px data-[orientation=horizontal]:w-auto data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto", className),
|
|
41
|
+
"data-slot": "button-group-separator",
|
|
42
|
+
orientation,
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function ButtonGroupText({ asChild = false, className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx(asChild ? Slot.Root : "div", {
|
|
48
|
+
className: cn("bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", className),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=button-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.js","names":["Separator"],"sources":["../../../src/components/button-group/button-group.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, type VariantProps } from \"class-variance-authority\";\nimport { Slot } from \"radix-ui\";\n\nimport { cn } from \"../../lib/utils.js\";\nimport { Separator } from \"../separator/separator.js\";\n\nconst buttonGroupVariants = cva(\n\t\"has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n\t{\n\t\tdefaultVariants: {\n\t\t\torientation: \"horizontal\",\n\t\t},\n\t\tvariants: {\n\t\t\torientation: {\n\t\t\t\thorizontal:\n\t\t\t\t\t\"[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n\t\t\t\tvertical:\n\t\t\t\t\t\"[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n\t\t\t},\n\t\t},\n\t},\n);\n\nfunction ButtonGroup({\n\tclassName,\n\torientation,\n\t...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(buttonGroupVariants({ orientation }), className)}\n\t\t\tdata-orientation={orientation}\n\t\t\tdata-slot=\"button-group\"\n\t\t\trole=\"group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ButtonGroupSeparator({\n\tclassName,\n\torientation = \"vertical\",\n\t...props\n}: React.ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-input relative self-stretch data-[orientation=horizontal]:mx-px data-[orientation=horizontal]:w-auto data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"button-group-separator\"\n\t\t\torientation={orientation}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ButtonGroupText({\n\tasChild = false,\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\"> & {\n\tasChild?: boolean;\n}) {\n\tconst Comp = asChild ? Slot.Root : \"div\";\n\n\treturn (\n\t\t<Comp\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,sBAAsB,IAC3B,oSACA;CACC,iBAAiB,EAChB,aAAa,cACb;CACD,UAAU,EACT,aAAa;EACZ,YACC;EACD,UACC;EACD,EACD;CACD,CACD;AAED,SAAS,YAAY,EACpB,WACA,aACA,GAAG,SACuE;AAC1E,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,oBAAoB,EAAE,aAAa,CAAC,EAAE,UAAU;EAC9D,oBAAkB;EAClB,aAAU;EACV,MAAK;EACL,GAAI;EACH,CAAA;;AAIJ,SAAS,qBAAqB,EAC7B,WACA,cAAc,YACd,GAAG,SACuC;AAC1C,QACC,oBAACA,aAAD;EACC,WAAW,GACV,gLACA,UACA;EACD,aAAU;EACG;EACb,GAAI;EACH,CAAA;;AAIJ,SAAS,gBAAgB,EACxB,UAAU,OACV,WACA,GAAG,SAGD;AAGF,QACC,oBAHY,UAAU,KAAK,OAAO,OAGlC;EACC,WAAW,GACV,kJACA,UACA;EACD,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Button } from "../button/button.js";
|
|
2
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { DayButton, DayPicker, Locale } from "react-day-picker";
|
|
5
|
+
|
|
6
|
+
//#region src/components/calendar/calendar.d.ts
|
|
7
|
+
|
|
8
|
+
declare function Calendar({
|
|
9
|
+
buttonVariant,
|
|
10
|
+
captionLayout,
|
|
11
|
+
className,
|
|
12
|
+
classNames,
|
|
13
|
+
components,
|
|
14
|
+
formatters,
|
|
15
|
+
locale,
|
|
16
|
+
showOutsideDays,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
19
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
20
|
+
}): react_jsx_runtime39.JSX.Element;
|
|
21
|
+
declare function CalendarDayButton({
|
|
22
|
+
className,
|
|
23
|
+
day,
|
|
24
|
+
locale,
|
|
25
|
+
modifiers,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<typeof DayButton> & {
|
|
28
|
+
locale?: Partial<Locale>;
|
|
29
|
+
}): react_jsx_runtime39.JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Calendar, CalendarDayButton };
|
|
32
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","names":[],"sources":["../../../src/components/calendar/calendar.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAyBS,QAAA,CAWc;EAAA,aAAA;EAAA,aAAA;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,UAAA;EAAA,MAAA;EAAA,eAAA;EAAA,GAAA;CAAA,EADpB,KAAA,CAAM,cACc,CAAA,OADQ,SACR,CAAA,GAAA;EACtB,aAAA,CAAA,EADgB,KAAA,CAAM,cACtB,CAAA,OAD4C,MAC5C,CAAA,CAAA,SAAA,CAAA;CAAA,CAAA,EAAA,mBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBA6HQ,iBAAA,CAAiB;EAAA,SAAA;EAAA,GAAA;EAAA,MAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAMvB,KAAA,CAAM,cANiB,CAAA,OAMK,SANL,CAAA,GAAA;EACzB,MAAA,CAAA,EAKsD,OALtD,CAK8D,MAL9D,CAAA;CACA,CAAA,EAIuE,mBAAA,CAAA,GAAA,CAAA,OAJvE"}
|