@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,37 @@
|
|
|
1
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/empty/empty.d.ts
|
|
6
|
+
|
|
7
|
+
declare function Empty({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
11
|
+
declare function EmptyHeader({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
15
|
+
declare const emptyMediaVariants: (props?: ({
|
|
16
|
+
variant?: "default" | "icon" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
18
|
+
declare function EmptyContent({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: React.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
22
|
+
declare function EmptyDescription({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<"p">): react_jsx_runtime135.JSX.Element;
|
|
26
|
+
declare function EmptyMedia({
|
|
27
|
+
className,
|
|
28
|
+
variant,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime135.JSX.Element;
|
|
31
|
+
declare function EmptyTitle({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<"div">): react_jsx_runtime135.JSX.Element;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
37
|
+
//# sourceMappingURL=empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.d.ts","names":[],"sources":["../../../src/components/empty/empty.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAoBS,KAAA,CAsCY;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAtCmB,KAAA,CAAM,cAsCzB,CAAA,KAAA,CAAA,CAAA,EAtC8C,oBAAA,CAAA,GAAA,CAAA,OAsC9C;iBAzBZ,WAAA,CAyBe;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAzBsB,KAAA,CAAM,cAyB5B,CAAA,KAAA,CAAA,CAAA,EAzBiD,oBAAA,CAAA,GAAA,CAAA,OAyBjD;cAflB,kBAe+C,EAAA,CAAA,KAAqB,CAArB,EAAA,CAAA;EAAqB,OAAA,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;CAAA,GAFzE,+BAAA,CAAA,SAEyE,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAAA,iBAAjE,YAAA,CAagB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAbsB,KAAA,CAAM,cAa5B,CAAA,KAAA,CAAA,CAAA,EAbiD,oBAAA,CAAA,GAAA,CAAA,OAajD;iBAAhB,gBAAA,CAAmB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAuB,KAAA,CAAM,cAA7B,CAAA,GAAA,CAAA,CAAA,EAAgD,oBAAA,CAAA,GAAA,CAAA,OAAhD;iBAanB,UAAA,CAbgD;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAiBtD,KAAA,CAAM,cAjBgD,CAAA,KAAA,CAAA,GAiBxB,YAjBwB,CAAA,OAiBJ,kBAjBI,CAAA,CAAA,EAiBe,oBAAA,CAAA,GAAA,CAAA,OAjBf;iBA4BhD,UAAA,CA5BmE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4B/B,KAAA,CAAM,cA5ByB,CAAA,KAAA,CAAA,CAAA,EA4BJ,oBAAA,CAAA,GAAA,CAAA,OA5BI"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
//#region src/components/empty/empty.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 Empty({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: cn("gap-4 rounded-lg border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance", className),
|
|
23
|
+
"data-slot": "empty",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function EmptyHeader({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("div", {
|
|
29
|
+
className: cn("gap-2 flex max-w-sm flex-col items-center", className),
|
|
30
|
+
"data-slot": "empty-header",
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
35
|
+
defaultVariants: { variant: "default" },
|
|
36
|
+
variants: { variant: {
|
|
37
|
+
default: "bg-transparent",
|
|
38
|
+
icon: "bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4"
|
|
39
|
+
} }
|
|
40
|
+
});
|
|
41
|
+
function EmptyContent({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: cn("gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance", className),
|
|
44
|
+
"data-slot": "empty-content",
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function EmptyDescription({ className, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: cn("text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
|
|
51
|
+
"data-slot": "empty-description",
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function EmptyMedia({ className, variant = "default", ...props }) {
|
|
56
|
+
return /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: cn(emptyMediaVariants({
|
|
58
|
+
className,
|
|
59
|
+
variant
|
|
60
|
+
})),
|
|
61
|
+
"data-slot": "empty-icon",
|
|
62
|
+
"data-variant": variant,
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function EmptyTitle({ className, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx("div", {
|
|
68
|
+
className: cn("text-sm font-medium tracking-tight", className),
|
|
69
|
+
"data-slot": "empty-title",
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.js","names":[],"sources":["../../../src/components/empty/empty.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\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Empty({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-4 rounded-lg border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"empty\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"gap-2 flex max-w-sm flex-col items-center\", className)}\n\t\t\tdata-slot=\"empty-header\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst emptyMediaVariants = cva(\n\t\"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\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-transparent\",\n\t\t\t\ticon: \"bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-4\",\n\t\t\t},\n\t\t},\n\t},\n);\n\nfunction EmptyContent({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"empty-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"empty-description\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction EmptyMedia({\n\tclassName,\n\tvariant = \"default\",\n\t...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof emptyMediaVariants>) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(emptyMediaVariants({ className, variant }))}\n\t\t\tdata-slot=\"empty-icon\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"text-sm font-medium tracking-tight\", className)}\n\t\t\tdata-slot=\"empty-title\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAsC;AACpE,QACC,oBAAC,OAAD;EACC,WAAW,GACV,+HACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;AAC1E,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,6CAA6C,UAAU;EACrE,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,MAAM,qBAAqB,IAC1B,+FACA;CACC,iBAAiB,EAChB,SAAS,WACT;CACD,UAAU,EACT,SAAS;EACR,SAAS;EACT,MAAM;EACN,EACD;CACD,CACD;AAED,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;AAC3E,QACC,oBAAC,OAAD;EACC,WAAW,GACV,mFACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,iBAAiB,EAAE,WAAW,GAAG,SAAoC;AAC7E,QACC,oBAAC,OAAD;EACC,WAAW,GACV,2GACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,WAAW,EACnB,WACA,UAAU,WACV,GAAG,SACsE;AACzE,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,mBAAmB;GAAE;GAAW;GAAS,CAAC,CAAC;EACzD,aAAU;EACV,gBAAc;EACd,GAAI;EACH,CAAA;;AAIJ,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACzE,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,sCAAsC,UAAU;EAC9D,aAAU;EACV,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Label } from "../label/label.js";
|
|
2
|
+
import * as react_jsx_runtime141 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/field/field.d.ts
|
|
7
|
+
|
|
8
|
+
declare function FieldGroup({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<"div">): react_jsx_runtime141.JSX.Element;
|
|
12
|
+
declare function FieldLegend({
|
|
13
|
+
className,
|
|
14
|
+
variant,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<"legend"> & {
|
|
17
|
+
variant?: "label" | "legend";
|
|
18
|
+
}): react_jsx_runtime141.JSX.Element;
|
|
19
|
+
declare function FieldSet({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<"fieldset">): react_jsx_runtime141.JSX.Element;
|
|
23
|
+
declare const fieldVariants: (props?: ({
|
|
24
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
25
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
26
|
+
declare function Field({
|
|
27
|
+
className,
|
|
28
|
+
orientation,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime141.JSX.Element;
|
|
31
|
+
declare function FieldContent({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<"div">): react_jsx_runtime141.JSX.Element;
|
|
35
|
+
declare function FieldDescription({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<"p">): react_jsx_runtime141.JSX.Element;
|
|
39
|
+
declare function FieldError({
|
|
40
|
+
children,
|
|
41
|
+
className,
|
|
42
|
+
errors,
|
|
43
|
+
...props
|
|
44
|
+
}: React.ComponentProps<"div"> & {
|
|
45
|
+
errors?: (undefined | {
|
|
46
|
+
message?: string;
|
|
47
|
+
})[];
|
|
48
|
+
}): react_jsx_runtime141.JSX.Element | null;
|
|
49
|
+
declare function FieldLabel({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}: React.ComponentProps<typeof Label>): react_jsx_runtime141.JSX.Element;
|
|
53
|
+
declare function FieldSeparator({
|
|
54
|
+
children,
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: React.ComponentProps<"div"> & {
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
}): react_jsx_runtime141.JSX.Element;
|
|
60
|
+
declare function FieldTitle({
|
|
61
|
+
className,
|
|
62
|
+
...props
|
|
63
|
+
}: React.ComponentProps<"div">): react_jsx_runtime141.JSX.Element;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
66
|
+
//# sourceMappingURL=field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.d.ts","names":[],"sources":["../../../src/components/field/field.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0CoE,iBAjB3D,UAAA,CA+BQ;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA/B4B,KAAA,CAAM,cA+BlC,CAAA,KAAA,CAAA,CAAA,EA/BuD,oBAAA,CAAA,GAAA,CAAA,OA+BvD;iBAlBR,WAAA,CAkBW;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;CAAA,EAdjB,KAAA,CAAM,cAcW,CAAA,QAAA,CAAA,GAAA;EAAuB,OAAM,CAAA,EAAA,OAAA,GAAA,QAAA;CAA0B,CAAA,EAdP,oBAAA,CAAA,GAAA,CAAA,OAcO;iBAAlE,QAAA,CAAkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAhC,KAAA,CAAM,cAA0B,CAAA,UAAA,CAAA,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAarE,aAaJ,EAAA,CAAA,KAGD,CAHC,EAAA,CAAA;EAEO,WAAK,CAAA,EAAA,YAAA,GAAA,UAAA,GAAA,YAAA,GAAA,IAAA,GAAA,SAAA;CACb,GAHC,+BAAA,CAAA,SAGD,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBADQ,KAAA,CAER;EAAA,SAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EAEE,KAAA,CAAM,cAFR,CAAA,KAAA,CAAA,GAEgC,YAFhC,CAAA,OAEoD,aAFpD,CAAA,CAAA,EAEkE,oBAAA,CAAA,GAAA,CAAA,OAFlE;iBAcQ,YAAA,CAZA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAYsC,KAAA,CAAM,cAZ5C,CAAA,KAAA,CAAA,CAAA,EAYiE,oBAAA,CAAA,GAAA,CAAA,OAZjE;iBAsBA,gBAAA,CAtB4C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsBF,KAAA,CAAM,cAtBJ,CAAA,GAAA,CAAA,CAAA,EAsBuB,oBAAA,CAAA,GAAA,CAAA,OAtBvB;iBAqC5C,UAAA,CArCwB;EAAA,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,GAAA;CAAA,EA0C9B,KAAA,CAAM,cA1CwB,CAAA,KAAA,CAAA,GAAA;EAAkC,MAAA,CAAA,EAAA,CAAA,SAAA,GAAA;IAAA,OAAA,CAAA,EAAA,MAAA;EAY1D,CAAA,CAAA,EAAA;CAAe,CAAA,EAgCvB,oBAAA,CAAA,GAAA,CAAA,OAAA,GAhCuB,IAAA;iBAuEf,UAAA,CAvE4C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuER,KAAA,CAAM,cAvEE,CAAA,OAuEoB,KAvEpB,CAAA,CAAA,EAuE0B,oBAAA,CAAA,GAAA,CAAA,OAvE1B;iBAqF5C,cAAA,CArFiE;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyFvE,KAAA,CAAM,cAzFiE,CAAA,KAAA,CAAA,GAAA;EAAA,QAAA,CAAA,EA0F9D,KAAA,CAAM,SA1FwD;AAAA,CAAA,CAAA,EA2FzE,oBAAA,CAAA,GAAA,CAAA,OAjFwB;iBAyGhB,UAAA,CAzGmB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyGiB,KAAA,CAAM,cAzGvB,CAAA,KAAA,CAAA,CAAA,EAyG4C,oBAAA,CAAA,GAAA,CAAA,OAzG5C"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { Separator } from "../separator/separator.js";
|
|
4
|
+
import { Label } from "../label/label.js";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
//#region src/components/field/field.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Copyright 2026 ResQ
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
function FieldGroup({ className, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: cn("gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col", className),
|
|
27
|
+
"data-slot": "field-group",
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function FieldLegend({ className, variant = "legend", ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx("legend", {
|
|
33
|
+
className: cn("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
|
|
34
|
+
"data-slot": "field-legend",
|
|
35
|
+
"data-variant": variant,
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function FieldSet({ className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
41
|
+
className: cn("gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className),
|
|
42
|
+
"data-slot": "field-set",
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const fieldVariants = cva("data-[invalid=true]:text-destructive gap-2 group/field flex w-full", {
|
|
47
|
+
defaultVariants: { orientation: "vertical" },
|
|
48
|
+
variants: { orientation: {
|
|
49
|
+
horizontal: "flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
50
|
+
responsive: "flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
51
|
+
vertical: "flex-col [&>*]:w-full [&>.sr-only]:w-auto"
|
|
52
|
+
} }
|
|
53
|
+
});
|
|
54
|
+
function Field({ className, orientation = "vertical", ...props }) {
|
|
55
|
+
return /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: cn(fieldVariants({ orientation }), className),
|
|
57
|
+
"data-orientation": orientation,
|
|
58
|
+
"data-slot": "field",
|
|
59
|
+
role: "group",
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function FieldContent({ className, ...props }) {
|
|
64
|
+
return /* @__PURE__ */ jsx("div", {
|
|
65
|
+
className: cn("gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className),
|
|
66
|
+
"data-slot": "field-content",
|
|
67
|
+
...props
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function FieldDescription({ className, ...props }) {
|
|
71
|
+
return /* @__PURE__ */ jsx("p", {
|
|
72
|
+
className: cn("text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
|
|
73
|
+
"data-slot": "field-description",
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function FieldError({ children, className, errors, ...props }) {
|
|
78
|
+
const content = useMemo(() => {
|
|
79
|
+
if (children) return children;
|
|
80
|
+
if (!errors?.length) return null;
|
|
81
|
+
const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];
|
|
82
|
+
if (uniqueErrors.length === 1) return uniqueErrors[0]?.message;
|
|
83
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
84
|
+
className: "ml-4 flex list-disc flex-col gap-1",
|
|
85
|
+
children: uniqueErrors.map((error, index) => error?.message && /* @__PURE__ */ jsx("li", { children: error.message }, index))
|
|
86
|
+
});
|
|
87
|
+
}, [children, errors]);
|
|
88
|
+
if (!content) return null;
|
|
89
|
+
return /* @__PURE__ */ jsx("div", {
|
|
90
|
+
className: cn("text-destructive text-sm font-normal", className),
|
|
91
|
+
"data-slot": "field-error",
|
|
92
|
+
role: "alert",
|
|
93
|
+
...props,
|
|
94
|
+
children: content
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function FieldLabel({ className, ...props }) {
|
|
98
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
99
|
+
className: cn("has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit leading-snug", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
|
|
100
|
+
"data-slot": "field-label",
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function FieldSeparator({ children, className, ...props }) {
|
|
105
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
106
|
+
className: cn("-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative", className),
|
|
107
|
+
"data-content": !!children,
|
|
108
|
+
"data-slot": "field-separator",
|
|
109
|
+
...props,
|
|
110
|
+
children: [/* @__PURE__ */ jsx(Separator, { className: "absolute inset-0 top-1/2" }), children && /* @__PURE__ */ jsx("span", {
|
|
111
|
+
className: "text-muted-foreground px-2 bg-background relative mx-auto block w-fit",
|
|
112
|
+
"data-slot": "field-separator-content",
|
|
113
|
+
children
|
|
114
|
+
})]
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function FieldTitle({ className, ...props }) {
|
|
118
|
+
return /* @__PURE__ */ jsx("div", {
|
|
119
|
+
className: cn("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", className),
|
|
120
|
+
"data-slot": "field-label",
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","names":[],"sources":["../../../src/components/field/field.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 { cva, type VariantProps } from \"class-variance-authority\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\nimport { Label } from \"../label/label.js\";\nimport { Separator } from \"../separator/separator.js\";\n\nfunction FieldGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldLegend({\n\tclassName,\n\tvariant = \"legend\",\n\t...props\n}: React.ComponentProps<\"legend\"> & { variant?: \"label\" | \"legend\" }) {\n\treturn (\n\t\t<legend\n\t\t\tclassName={cn(\n\t\t\t\t\"mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-legend\"\n\t\t\tdata-variant={variant}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldSet({ className, ...props }: React.ComponentProps<\"fieldset\">) {\n\treturn (\n\t\t<fieldset\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-set\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst fieldVariants = cva(\"data-[invalid=true]:text-destructive gap-2 group/field flex w-full\", {\n\tdefaultVariants: {\n\t\torientation: \"vertical\",\n\t},\n\tvariants: {\n\t\torientation: {\n\t\t\thorizontal:\n\t\t\t\t\"flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px\",\n\t\t\tresponsive:\n\t\t\t\t\"flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px\",\n\t\t\tvertical: \"flex-col [&>*]:w-full [&>.sr-only]:w-auto\",\n\t\t},\n\t},\n});\n\nfunction Field({\n\tclassName,\n\torientation = \"vertical\",\n\t...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof fieldVariants>) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(fieldVariants({ orientation }), className)}\n\t\t\tdata-orientation={orientation}\n\t\t\tdata-slot=\"field\"\n\t\t\trole=\"group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldContent({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"gap-0.5 group/field-content flex flex-1 flex-col leading-snug\", className)}\n\t\t\tdata-slot=\"field-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n\treturn (\n\t\t<p\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance\",\n\t\t\t\t\"last:mt-0 nth-last-2:-mt-1\",\n\t\t\t\t\"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-description\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldError({\n\tchildren,\n\tclassName,\n\terrors,\n\t...props\n}: React.ComponentProps<\"div\"> & {\n\terrors?: (undefined | { message?: string })[];\n}) {\n\tconst content = useMemo(() => {\n\t\tif (children) {\n\t\t\treturn children;\n\t\t}\n\n\t\tif (!errors?.length) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];\n\n\t\tif (uniqueErrors.length === 1) {\n\t\t\treturn uniqueErrors[0]?.message;\n\t\t}\n\n\t\treturn (\n\t\t\t<ul className=\"ml-4 flex list-disc flex-col gap-1\">\n\t\t\t\t{uniqueErrors.map((error, index) => error?.message && <li key={index}>{error.message}</li>)}\n\t\t\t</ul>\n\t\t);\n\t}, [children, errors]);\n\n\tif (!content) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"text-destructive text-sm font-normal\", className)}\n\t\t\tdata-slot=\"field-error\"\n\t\t\trole=\"alert\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n}\n\nfunction FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {\n\treturn (\n\t\t<Label\n\t\t\tclassName={cn(\n\t\t\t\t\"has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit leading-snug\",\n\t\t\t\t\"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-label\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction FieldSeparator({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\"> & {\n\tchildren?: React.ReactNode;\n}) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-content={!!children}\n\t\t\tdata-slot=\"field-separator\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<Separator className=\"absolute inset-0 top-1/2\" />\n\t\t\t{children && (\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"text-muted-foreground px-2 bg-background relative mx-auto block w-fit\"\n\t\t\t\t\tdata-slot=\"field-separator-content\"\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n\nfunction FieldTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"field-label\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tField,\n\tFieldContent,\n\tFieldDescription,\n\tFieldError,\n\tFieldGroup,\n\tFieldLabel,\n\tFieldLegend,\n\tFieldSeparator,\n\tFieldSet,\n\tFieldTitle,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyBA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACzE,QACC,oBAAC,OAAD;EACC,WAAW,GACV,0IACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,YAAY,EACpB,WACA,UAAU,UACV,GAAG,SACkE;AACrE,QACC,oBAAC,UAAD;EACC,WAAW,GACV,mFACA,UACA;EACD,aAAU;EACV,gBAAc;EACd,GAAI;EACH,CAAA;;AAIJ,SAAS,SAAS,EAAE,WAAW,GAAG,SAA2C;AAC5E,QACC,oBAAC,YAAD;EACC,WAAW,GACV,oGACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,MAAM,gBAAgB,IAAI,sEAAsE;CAC/F,iBAAiB,EAChB,aAAa,YACb;CACD,UAAU,EACT,aAAa;EACZ,YACC;EACD,YACC;EACD,UAAU;EACV,EACD;CACD,CAAC;AAEF,SAAS,MAAM,EACd,WACA,cAAc,YACd,GAAG,SACiE;AACpE,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,cAAc,EAAE,aAAa,CAAC,EAAE,UAAU;EACxD,oBAAkB;EAClB,aAAU;EACV,MAAK;EACL,GAAI;EACH,CAAA;;AAIJ,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;AAC3E,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,iEAAiE,UAAU;EACzF,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,iBAAiB,EAAE,WAAW,GAAG,SAAoC;AAC7E,QACC,oBAAC,KAAD;EACC,WAAW,GACV,qKACA,8BACA,qEACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,WAAW,EACnB,UACA,WACA,QACA,GAAG,SAGD;CACF,MAAM,UAAU,cAAc;AAC7B,MAAI,SACH,QAAO;AAGR,MAAI,CAAC,QAAQ,OACZ,QAAO;EAGR,MAAM,eAAe,CAAC,GAAG,IAAI,IAAI,OAAO,KAAK,UAAU,CAAC,OAAO,SAAS,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;AAE1F,MAAI,aAAa,WAAW,EAC3B,QAAO,aAAa,IAAI;AAGzB,SACC,oBAAC,MAAD;GAAI,WAAU;aACZ,aAAa,KAAK,OAAO,UAAU,OAAO,WAAW,oBAAC,MAAD,EAAA,UAAiB,MAAM,SAAa,EAA3B,MAA2B,CAAC;GACvF,CAAA;IAEJ,CAAC,UAAU,OAAO,CAAC;AAEtB,KAAI,CAAC,QACJ,QAAO;AAGR,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,wCAAwC,UAAU;EAChE,aAAU;EACV,MAAK;EACL,GAAI;YAEH;EACI,CAAA;;AAIR,SAAS,WAAW,EAAE,WAAW,GAAG,SAA6C;AAChF,QACC,oBAAC,OAAD;EACC,WAAW,GACV,+VACA,qEACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EACvB,UACA,WACA,GAAG,SAGD;AACF,QACC,qBAAC,OAAD;EACC,WAAW,GACV,6EACA,UACA;EACD,gBAAc,CAAC,CAAC;EAChB,aAAU;EACV,GAAI;YAPL,CASC,oBAAC,WAAD,EAAW,WAAU,4BAA6B,CAAA,EACjD,YACA,oBAAC,QAAD;GACC,WAAU;GACV,aAAU;GAET;GACK,CAAA,CAEH;;;AAIR,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACzE,QACC,oBAAC,OAAD;EACC,WAAW,GACV,8GACA,UACA;EACD,aAAU;EACV,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./field.js";
|
|
2
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./field.js";
|
|
2
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
2
|
+
import * as react_jsx_runtime151 from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/hover-card/hover-card.d.ts
|
|
6
|
+
|
|
7
|
+
declare function HoverCard({
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime151.JSX.Element;
|
|
10
|
+
declare function HoverCardContent({
|
|
11
|
+
align,
|
|
12
|
+
className,
|
|
13
|
+
sideOffset,
|
|
14
|
+
...props
|
|
15
|
+
}: React.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime151.JSX.Element;
|
|
16
|
+
declare function HoverCardTrigger({
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime151.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
21
|
+
//# sourceMappingURL=hover-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover-card.d.ts","names":[],"sources":["../../../src/components/hover-card/hover-card.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAuBS,SAAA,CASiD;EAAA,GAAA;AAAA,CAAA,EATzB,KAAA,CAAM,cASmB,CAAA,OATG,WAAA,CAAmB,IAStB,CAAA,CAAA,EAT2B,oBAAA,CAAA,GAAA,CAAA,OAS3B;AAAA,iBALjD,gBAAA,CAsBgB;EAAA,KAAA;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAjBtB,KAAA,CAAM,cAiBgB,CAAA,OAjBM,WAAA,CAAmB,OAiBzB,CAAA,CAAA,EAjBiC,oBAAA,CAAA,GAAA,CAAA,OAiBjC;iBAAhB,gBAAA,CAA8E;EAAA,GAAA;AAAA,CAAA,EAA/C,KAAA,CAAM,cAAyC,CAAA,OAAnB,WAAA,CAAmB,OAAA,CAAA,CAAA,EAAQ,oBAAA,CAAA,GAAA,CAAA,OAAR"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/utils.js";
|
|
3
|
+
import { HoverCard as HoverCard$1 } from "radix-ui";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/hover-card/hover-card.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 HoverCard({ ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(HoverCard$1.Root, {
|
|
23
|
+
"data-slot": "hover-card",
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function HoverCardContent({ align = "center", className, sideOffset = 4, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx(HoverCard$1.Portal, {
|
|
29
|
+
"data-slot": "hover-card-portal",
|
|
30
|
+
children: /* @__PURE__ */ jsx(HoverCard$1.Content, {
|
|
31
|
+
align,
|
|
32
|
+
className: cn("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 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 origin-(--radix-hover-card-content-transform-origin) outline-hidden", className),
|
|
33
|
+
"data-slot": "hover-card-content",
|
|
34
|
+
sideOffset,
|
|
35
|
+
...props
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function HoverCardTrigger({ ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx(HoverCard$1.Trigger, {
|
|
41
|
+
"data-slot": "hover-card-trigger",
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=hover-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover-card.js","names":["HoverCardPrimitive"],"sources":["../../../src/components/hover-card/hover-card.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 { HoverCard as HoverCardPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>) {\n\treturn <HoverCardPrimitive.Root data-slot=\"hover-card\" {...props} />;\n}\n\nfunction HoverCardContent({\n\talign = \"center\",\n\tclassName,\n\tsideOffset = 4,\n\t...props\n}: React.ComponentProps<typeof HoverCardPrimitive.Content>) {\n\treturn (\n\t\t<HoverCardPrimitive.Portal data-slot=\"hover-card-portal\">\n\t\t\t<HoverCardPrimitive.Content\n\t\t\t\talign={align}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"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 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 origin-(--radix-hover-card-content-transform-origin) outline-hidden\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"hover-card-content\"\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</HoverCardPrimitive.Portal>\n\t);\n}\n\nfunction HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>) {\n\treturn <HoverCardPrimitive.Trigger data-slot=\"hover-card-trigger\" {...props} />;\n}\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,UAAU,EAAE,GAAG,SAA+D;AACtF,QAAO,oBAACA,YAAmB,MAApB;EAAyB,aAAU;EAAa,GAAI;EAAS,CAAA;;AAGrE,SAAS,iBAAiB,EACzB,QAAQ,UACR,WACA,aAAa,GACb,GAAG,SACwD;AAC3D,QACC,oBAACA,YAAmB,QAApB;EAA2B,aAAU;YACpC,oBAACA,YAAmB,SAApB;GACQ;GACP,WAAW,GACV,+dACA,UACA;GACD,aAAU;GACE;GACZ,GAAI;GACH,CAAA;EACyB,CAAA;;AAI9B,SAAS,iBAAiB,EAAE,GAAG,SAAkE;AAChG,QAAO,oBAACA,YAAmB,SAApB;EAA4B,aAAU;EAAqB,GAAI;EAAS,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime240 from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/input/input.d.ts
|
|
5
|
+
|
|
6
|
+
declare function Input({
|
|
7
|
+
className,
|
|
8
|
+
type,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<"input">): react_jsx_runtime240.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Input };
|
|
13
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../../src/components/input/input.tsx"],"sourcesContent":[],"mappings":";;;;;iBAoBS,KAAA;;;;GAAqC,KAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/input/input.tsx
|
|
4
|
+
function Input({ className, type, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("input", {
|
|
6
|
+
className: cn("dark:bg-input/30 border-input 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 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
7
|
+
"data-slot": "input",
|
|
8
|
+
type,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Input };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../src/components/input/input.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 type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n\treturn (\n\t\t<input\n\t\t\tclassName={cn(\n\t\t\t\t\"dark:bg-input/30 border-input 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 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"input\"\n\t\t\ttype={type}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Input };\n"],"mappings":";;;AAoBA,SAAS,MAAM,EAAE,WAAW,MAAM,GAAG,SAAwC;AAC5E,QACC,oBAAC,SAAD;EACC,WAAW,GACV,upBACA,UACA;EACD,aAAU;EACJ;EACN,GAAI;EACH,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Button } from "../button/button.js";
|
|
2
|
+
import * as react_jsx_runtime241 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region src/components/input-group/input-group.d.ts
|
|
8
|
+
|
|
9
|
+
declare function InputGroup({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: React.ComponentProps<"div">): react_jsx_runtime241.JSX.Element;
|
|
13
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
14
|
+
align?: "inline-start" | "block-end" | "block-start" | "inline-end" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
16
|
+
declare function InputGroupAddon({
|
|
17
|
+
align,
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime241.JSX.Element;
|
|
21
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
22
|
+
size?: "icon-sm" | "icon-xs" | "sm" | "xs" | null | undefined;
|
|
23
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
24
|
+
declare function InputGroupButton({
|
|
25
|
+
className,
|
|
26
|
+
size,
|
|
27
|
+
type,
|
|
28
|
+
variant,
|
|
29
|
+
...props
|
|
30
|
+
}: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime241.JSX.Element;
|
|
31
|
+
declare function InputGroupInput({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<"input">): react_jsx_runtime241.JSX.Element;
|
|
35
|
+
declare function InputGroupText({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<"span">): react_jsx_runtime241.JSX.Element;
|
|
39
|
+
declare function InputGroupTextarea({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<"textarea">): react_jsx_runtime241.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
45
|
+
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../../../src/components/input-group/input-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBA0BS,UAAA,CAqCwB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EArCY,KAAA,CAAM,cAqClB,CAAA,KAAA,CAAA,CAAA,EArCuC,oBAAA,CAAA,GAAA,CAAA,OAqCvC;cAvB3B,uBAuBuE,EAAA,CAAA,KA8B3E,CA9B2E,EAAA,CAAA;EAAA,KAAA,CAAA,EAAA,cAAA,GAAA,WAAA,GAAA,aAAA,GAAA,YAAA,GAAA,IAAA,GAAA,SAAA;AAAA,CAAA,GAN5E,+BAAA,CAAA,SAoCC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAlCO,eAAA,CAoCgB;EAAA,KAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAhCtB,KAAA,CAAM,cAgCgB,CAAA,KAAA,CAAA,GAhCQ,YAgCR,CAAA,OAhC4B,uBAgC5B,CAAA,CAAA,EAhCoD,oBAAA,CAAA,GAAA,CAAA,OAgCpD;cAdnB,wBAeL,EAAA,CAAA,KAEA,CAFA,EAAA,CAAA;EACA,IAAA,CAAA,EAAA,SAAA,GAAA,SAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CACA,GALC,+BAAA,CAAA,SAKD,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAHQ,gBAAA,CAIR;EAAA,SAAA;EAAA,IAAA;EAAA,IAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAEE,IAFF,CAEO,KAAA,CAAM,cAFb,CAAA,OAEmC,MAFnC,CAAA,EAAA,MAAA,CAAA,GAGA,YAHA,CAAA,OAGoB,wBAHpB,CAAA,CAAA,EAG6C,oBAAA,CAAA,GAAA,CAAA,OAH7C;iBAeQ,eAAA,CAb2B;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAac,KAAA,CAAM,cAbpB,CAAA,OAAA,CAAA,CAAA,EAa2C,oBAAA,CAAA,GAAA,CAAA,OAb3C;iBA0B3B,cAAA,CA1BK;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0BmC,KAAA,CAAM,cA1BzC,CAAA,MAAA,CAAA,CAAA,EA0B+D,oBAAA,CAAA,GAAA,CAAA,OA1B/D;iBAsCL,kBAAA,CAtCN;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsCkD,KAAA,CAAM,cAtCxD,CAAA,UAAA,CAAA,CAAA,EAsCkF,oBAAA,CAAA,GAAA,CAAA,OAtClF"}
|