@ttt-productions/ui-core 0.2.26 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -40
- package/dist/index.js.map +1 -1
- package/dist/react/components/accordion.d.ts.map +1 -0
- package/dist/react/components/accordion.js +15 -0
- package/dist/react/components/accordion.js.map +1 -0
- package/dist/{components → react/components}/alert-dialog.d.ts +2 -2
- package/dist/react/components/alert-dialog.d.ts.map +1 -0
- package/dist/react/components/alert-dialog.js +27 -0
- package/dist/react/components/alert-dialog.js.map +1 -0
- package/dist/react/components/alert.d.ts.map +1 -0
- package/dist/{components/alert.jsx → react/components/alert.js} +6 -5
- package/dist/react/components/alert.js.map +1 -0
- package/dist/react/components/avatar.d.ts.map +1 -0
- package/dist/react/components/avatar.js +17 -0
- package/dist/react/components/avatar.js.map +1 -0
- package/dist/{components → react/components}/badge.d.ts +1 -1
- package/dist/react/components/badge.d.ts.map +1 -0
- package/dist/{components/badge.jsx → react/components/badge.js} +4 -4
- package/dist/react/components/badge.js.map +1 -0
- package/dist/react/components/button.d.ts.map +1 -0
- package/dist/{components/button.jsx → react/components/button.js} +4 -5
- package/dist/react/components/button.js.map +1 -0
- package/dist/react/components/card.d.ts.map +1 -0
- package/dist/react/components/card.js +18 -0
- package/dist/react/components/card.js.map +1 -0
- package/dist/react/components/checkbox.d.ts.map +1 -0
- package/dist/react/components/checkbox.js +10 -0
- package/dist/react/components/checkbox.js.map +1 -0
- package/dist/react/components/collapsible.d.ts.map +1 -0
- package/dist/{components/collapsible.jsx → react/components/collapsible.js} +1 -1
- package/dist/react/components/collapsible.js.map +1 -0
- package/dist/{components → react/components}/date-picker.d.ts +1 -2
- package/dist/react/components/date-picker.d.ts.map +1 -0
- package/dist/react/components/date-picker.js +85 -0
- package/dist/react/components/date-picker.js.map +1 -0
- package/dist/{components → react/components}/dialog.d.ts +2 -2
- package/dist/react/components/dialog.d.ts.map +1 -0
- package/dist/react/components/dialog.js +24 -0
- package/dist/react/components/dialog.js.map +1 -0
- package/dist/{components → react/components}/dropdown-menu.d.ts +1 -1
- package/dist/react/components/dropdown-menu.d.ts.map +1 -0
- package/dist/react/components/dropdown-menu.js +32 -0
- package/dist/react/components/dropdown-menu.js.map +1 -0
- package/dist/{components → react/components}/form.d.ts +1 -1
- package/dist/react/components/form.d.ts.map +1 -0
- package/dist/{components/form.jsx → react/components/form.js} +9 -14
- package/dist/react/components/form.js.map +1 -0
- package/dist/react/components/input.d.ts.map +1 -0
- package/dist/react/components/input.js +10 -0
- package/dist/react/components/input.js.map +1 -0
- package/dist/react/components/label.d.ts.map +1 -0
- package/dist/{components/label.jsx → react/components/label.js} +4 -3
- package/dist/react/components/label.js.map +1 -0
- package/dist/{components → react/components}/layout/screen-adaptive-view.d.ts +1 -1
- package/dist/react/components/layout/screen-adaptive-view.d.ts.map +1 -0
- package/dist/{components/layout/screen-adaptive-view.jsx → react/components/layout/screen-adaptive-view.js} +4 -8
- package/dist/react/components/layout/screen-adaptive-view.js.map +1 -0
- package/dist/{components → react/components}/menubar.d.ts +6 -6
- package/dist/react/components/menubar.d.ts.map +1 -0
- package/dist/react/components/menubar.js +45 -0
- package/dist/react/components/menubar.js.map +1 -0
- package/dist/react/components/popover.d.ts.map +1 -0
- package/dist/react/components/popover.js +12 -0
- package/dist/react/components/popover.js.map +1 -0
- package/dist/react/components/progress.d.ts.map +1 -0
- package/dist/react/components/progress.js +9 -0
- package/dist/react/components/progress.js.map +1 -0
- package/dist/react/components/radio-group.d.ts.map +1 -0
- package/dist/react/components/radio-group.js +12 -0
- package/dist/react/components/radio-group.js.map +1 -0
- package/dist/react/components/scroll-area.d.ts.map +1 -0
- package/dist/react/components/scroll-area.js +13 -0
- package/dist/react/components/scroll-area.js.map +1 -0
- package/dist/{components → react/components}/search-dropdown.d.ts +1 -1
- package/dist/react/components/search-dropdown.d.ts.map +1 -0
- package/dist/{components/search-dropdown.jsx → react/components/search-dropdown.js} +5 -39
- package/dist/react/components/search-dropdown.js.map +1 -0
- package/dist/react/components/select.d.ts.map +1 -0
- package/dist/react/components/select.js +27 -0
- package/dist/react/components/select.js.map +1 -0
- package/dist/react/components/separator.d.ts.map +1 -0
- package/dist/react/components/separator.js +9 -0
- package/dist/react/components/separator.js.map +1 -0
- package/dist/{components → react/components}/sheet.d.ts +2 -2
- package/dist/react/components/sheet.d.ts.map +1 -0
- package/dist/{components/sheet.jsx → react/components/sheet.js} +9 -17
- package/dist/react/components/sheet.js.map +1 -0
- package/dist/{components → react/components}/skeleton.d.ts +1 -1
- package/dist/react/components/skeleton.d.ts.map +1 -0
- package/dist/react/components/skeleton.js +8 -0
- package/dist/react/components/skeleton.js.map +1 -0
- package/dist/react/components/slider.d.ts.map +1 -0
- package/dist/react/components/slider.js +9 -0
- package/dist/react/components/slider.js.map +1 -0
- package/dist/react/components/switch.d.ts.map +1 -0
- package/dist/react/components/switch.js +9 -0
- package/dist/react/components/switch.js.map +1 -0
- package/dist/react/components/table.d.ts.map +1 -0
- package/dist/react/components/table.js +22 -0
- package/dist/react/components/table.js.map +1 -0
- package/dist/react/components/tabs.d.ts.map +1 -0
- package/dist/react/components/tabs.js +14 -0
- package/dist/react/components/tabs.js.map +1 -0
- package/dist/react/components/textarea.d.ts.map +1 -0
- package/dist/react/components/textarea.js +10 -0
- package/dist/react/components/textarea.js.map +1 -0
- package/dist/react/components/toast.d.ts.map +1 -0
- package/dist/{components/toast.jsx → react/components/toast.js} +18 -28
- package/dist/react/components/toast.js.map +1 -0
- package/dist/react/components/toaster.d.ts +2 -0
- package/dist/react/components/toaster.d.ts.map +1 -0
- package/dist/react/components/toaster.js +13 -0
- package/dist/react/components/toaster.js.map +1 -0
- package/dist/react/components/tooltip.d.ts.map +1 -0
- package/dist/react/components/tooltip.js +12 -0
- package/dist/react/components/tooltip.js.map +1 -0
- package/dist/react/hooks/use-media-query.d.ts.map +1 -0
- package/dist/{hooks/use-media-query.jsx → react/hooks/use-media-query.js} +1 -1
- package/dist/react/hooks/use-media-query.js.map +1 -0
- package/dist/react/hooks/use-toast.d.ts.map +1 -0
- package/dist/{hooks/use-toast.jsx → react/hooks/use-toast.js} +1 -1
- package/dist/react/hooks/use-toast.js.map +1 -0
- package/dist/react/index.d.ts +37 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +40 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +7 -2
- package/src/index.ts +1 -43
- package/src/{components → react/components}/accordion.tsx +1 -1
- package/src/{components → react/components}/alert-dialog.tsx +1 -1
- package/src/{components → react/components}/alert.tsx +1 -1
- package/src/{components → react/components}/avatar.tsx +1 -1
- package/src/{components → react/components}/badge.tsx +1 -1
- package/src/{components → react/components}/button.tsx +1 -1
- package/src/{components → react/components}/card.tsx +1 -1
- package/src/{components → react/components}/checkbox.tsx +1 -1
- package/src/{components → react/components}/date-picker.tsx +1 -1
- package/src/{components → react/components}/dialog.tsx +1 -1
- package/src/{components → react/components}/dropdown-menu.tsx +1 -1
- package/src/{components → react/components}/form.tsx +1 -1
- package/src/{components → react/components}/input.tsx +1 -1
- package/src/{components → react/components}/label.tsx +1 -1
- package/src/{components → react/components}/layout/screen-adaptive-view.tsx +1 -1
- package/src/{components → react/components}/menubar.tsx +1 -1
- package/src/{components → react/components}/popover.tsx +1 -1
- package/src/{components → react/components}/progress.tsx +1 -1
- package/src/{components → react/components}/radio-group.tsx +1 -1
- package/src/{components → react/components}/scroll-area.tsx +1 -1
- package/src/{components → react/components}/search-dropdown.tsx +1 -1
- package/src/{components → react/components}/select.tsx +1 -1
- package/src/{components → react/components}/separator.tsx +1 -1
- package/src/{components → react/components}/sheet.tsx +1 -1
- package/src/{components → react/components}/skeleton.tsx +1 -1
- package/src/{components → react/components}/slider.tsx +1 -1
- package/src/{components → react/components}/switch.tsx +1 -1
- package/src/{components → react/components}/table.tsx +1 -1
- package/src/{components → react/components}/tabs.tsx +1 -1
- package/src/{components → react/components}/textarea.tsx +1 -1
- package/src/{components → react/components}/toast.tsx +1 -1
- package/src/{components → react/components}/tooltip.tsx +1 -1
- package/src/react/index.ts +41 -0
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.jsx +0 -21
- package/dist/components/accordion.jsx.map +0 -1
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.jsx +0 -29
- package/dist/components/alert-dialog.jsx.map +0 -1
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/alert.jsx.map +0 -1
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.jsx +0 -16
- package/dist/components/avatar.jsx.map +0 -1
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.jsx.map +0 -1
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.jsx.map +0 -1
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.jsx +0 -17
- package/dist/components/card.jsx.map +0 -1
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.jsx +0 -13
- package/dist/components/checkbox.jsx.map +0 -1
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.jsx.map +0 -1
- package/dist/components/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker.jsx +0 -143
- package/dist/components/date-picker.jsx.map +0 -1
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.jsx +0 -32
- package/dist/components/dialog.jsx.map +0 -1
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.jsx +0 -50
- package/dist/components/dropdown-menu.jsx.map +0 -1
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.jsx.map +0 -1
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.jsx +0 -9
- package/dist/components/input.jsx.map +0 -1
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.jsx.map +0 -1
- package/dist/components/layout/screen-adaptive-view.d.ts.map +0 -1
- package/dist/components/layout/screen-adaptive-view.jsx.map +0 -1
- package/dist/components/menubar.d.ts.map +0 -1
- package/dist/components/menubar.jsx +0 -63
- package/dist/components/menubar.jsx.map +0 -1
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.jsx +0 -13
- package/dist/components/popover.jsx.map +0 -1
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.jsx +0 -10
- package/dist/components/progress.jsx.map +0 -1
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.jsx +0 -15
- package/dist/components/radio-group.jsx.map +0 -1
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.jsx +0 -20
- package/dist/components/scroll-area.jsx.map +0 -1
- package/dist/components/search-dropdown.d.ts.map +0 -1
- package/dist/components/search-dropdown.jsx.map +0 -1
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.jsx +0 -51
- package/dist/components/select.jsx.map +0 -1
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.jsx +0 -8
- package/dist/components/separator.jsx.map +0 -1
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.jsx.map +0 -1
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.jsx +0 -8
- package/dist/components/skeleton.jsx.map +0 -1
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.jsx +0 -13
- package/dist/components/slider.jsx.map +0 -1
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.jsx +0 -10
- package/dist/components/switch.jsx.map +0 -1
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/table.jsx +0 -23
- package/dist/components/table.jsx.map +0 -1
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.jsx +0 -15
- package/dist/components/tabs.jsx.map +0 -1
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.jsx +0 -9
- package/dist/components/textarea.jsx.map +0 -1
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toast.jsx.map +0 -1
- package/dist/components/toaster.d.ts +0 -2
- package/dist/components/toaster.d.ts.map +0 -1
- package/dist/components/toaster.jsx +0 -24
- package/dist/components/toaster.jsx.map +0 -1
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.jsx +0 -11
- package/dist/components/tooltip.jsx.map +0 -1
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-media-query.jsx.map +0 -1
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/use-toast.jsx.map +0 -1
- /package/dist/{components → react/components}/accordion.d.ts +0 -0
- /package/dist/{components → react/components}/alert.d.ts +0 -0
- /package/dist/{components → react/components}/avatar.d.ts +0 -0
- /package/dist/{components → react/components}/button.d.ts +0 -0
- /package/dist/{components → react/components}/card.d.ts +0 -0
- /package/dist/{components → react/components}/checkbox.d.ts +0 -0
- /package/dist/{components → react/components}/collapsible.d.ts +0 -0
- /package/dist/{components → react/components}/input.d.ts +0 -0
- /package/dist/{components → react/components}/label.d.ts +0 -0
- /package/dist/{components → react/components}/popover.d.ts +0 -0
- /package/dist/{components → react/components}/progress.d.ts +0 -0
- /package/dist/{components → react/components}/radio-group.d.ts +0 -0
- /package/dist/{components → react/components}/scroll-area.d.ts +0 -0
- /package/dist/{components → react/components}/select.d.ts +0 -0
- /package/dist/{components → react/components}/separator.d.ts +0 -0
- /package/dist/{components → react/components}/slider.d.ts +0 -0
- /package/dist/{components → react/components}/switch.d.ts +0 -0
- /package/dist/{components → react/components}/table.d.ts +0 -0
- /package/dist/{components → react/components}/tabs.d.ts +0 -0
- /package/dist/{components → react/components}/textarea.d.ts +0 -0
- /package/dist/{components → react/components}/toast.d.ts +0 -0
- /package/dist/{components → react/components}/tooltip.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/use-media-query.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/use-toast.d.ts +0 -0
- /package/src/{components → react/components}/collapsible.tsx +0 -0
- /package/src/{components → react/components}/toaster.tsx +0 -0
- /package/src/{hooks → react/hooks}/use-media-query.tsx +0 -0
- /package/src/{hooks → react/hooks}/use-toast.tsx +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.js","sourceRoot":"","sources":["../../../src/react/components/separator.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAGhC,CAAC,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACjF,KAAC,kBAAkB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CACX,oBAAoB,EACpB,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,EAClE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAA;AACF,SAAS,CAAC,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -13,11 +13,11 @@ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetP
|
|
|
13
13
|
}
|
|
14
14
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const SheetHeader: {
|
|
16
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
declare const SheetFooter: {
|
|
20
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
23
23
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/react/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKjE,QAAA,MAAM,KAAK,sCAAsB,CAAA;AAEjC,QAAA,MAAM,YAAY,6GAAyB,CAAA;AAE3C,QAAA,MAAM,UAAU,2GAAuB,CAAA;AAEvC,QAAA,MAAM,WAAW,4CAAwB,CAAA;AAEzC,QAAA,MAAM,YAAY,6JAYhB,CAAA;AAGF,QAAA,MAAM,aAAa;;8EAiBlB,CAAA;AAED,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAkBhB,CAAA;AAGF,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,UAAU,mKASd,CAAA;AAGF,QAAA,MAAM,gBAAgB,6KASpB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4
5
|
import { cva } from "class-variance-authority";
|
|
5
6
|
import { X } from "lucide-react";
|
|
6
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
7
8
|
const Sheet = SheetPrimitive.Root;
|
|
8
9
|
const SheetTrigger = SheetPrimitive.Trigger;
|
|
9
10
|
const SheetClose = SheetPrimitive.Close;
|
|
10
11
|
const SheetPortal = SheetPrimitive.Portal;
|
|
11
|
-
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (
|
|
12
|
+
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
|
|
12
13
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
13
14
|
const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
14
15
|
variants: {
|
|
@@ -23,24 +24,15 @@ const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transiti
|
|
|
23
24
|
side: "right",
|
|
24
25
|
},
|
|
25
26
|
});
|
|
26
|
-
const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => (
|
|
27
|
-
<SheetOverlay />
|
|
28
|
-
<SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>
|
|
29
|
-
{children}
|
|
30
|
-
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
|
|
31
|
-
<X className="h-4 w-4"/>
|
|
32
|
-
<span className="sr-only">Close</span>
|
|
33
|
-
</SheetPrimitive.Close>
|
|
34
|
-
</SheetPrimitive.Content>
|
|
35
|
-
</SheetPortal>));
|
|
27
|
+
const SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => (_jsxs(SheetPortal, { children: [_jsx(SheetOverlay, {}), _jsxs(SheetPrimitive.Content, { ref: ref, className: cn(sheetVariants({ side }), className), ...props, children: [children, _jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [_jsx(X, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] })));
|
|
36
28
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
37
|
-
const SheetHeader = ({ className, ...props }) => (
|
|
29
|
+
const SheetHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
|
|
38
30
|
SheetHeader.displayName = "SheetHeader";
|
|
39
|
-
const SheetFooter = ({ className, ...props }) => (
|
|
31
|
+
const SheetFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
|
|
40
32
|
SheetFooter.displayName = "SheetFooter";
|
|
41
|
-
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
33
|
+
const SheetTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold text-foreground", className), ...props })));
|
|
42
34
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
43
|
-
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
35
|
+
const SheetDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(SheetPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
44
36
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
45
37
|
export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
46
|
-
//# sourceMappingURL=sheet.
|
|
38
|
+
//# sourceMappingURL=sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../src/react/components/sheet.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAA;AAEjC,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAA;AAE3C,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAA;AAEvC,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAA;AAEzC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,cAAc,CAAC,OAAO,IACrB,SAAS,EAAE,EAAE,CACX,yJAAyJ,EACzJ,SAAS,CACV,KACG,KAAK,EACT,GAA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G,KAAK,EAC6B,EAAE,EAAE,CAAC,CAC1C,cACE,SAAS,EAAE,EAAE,CACX,+DAA+D,EAC/D,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAGjC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,cAAc,CAAC,KAAK,IACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,KAC7D,KAAK,GACT,CACH,CAAC,CAAA;AACF,UAAU,CAAC,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,WAAW,CAAA;AAEzD,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAGvC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,cAAc,CAAC,WAAW,IACzB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,CACH,CAAC,CAAA;AACF,gBAAgB,CAAC,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,WAAW,CAAA;AAErE,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
2
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { Skeleton };
|
|
4
4
|
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/react/components/skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAQ9E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
|
+
function Skeleton({ className, ...props }) {
|
|
5
|
+
return (_jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), "data-ai-hint": "loading placeholder", ...props }));
|
|
6
|
+
}
|
|
7
|
+
export { Skeleton };
|
|
8
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../../src/react/components/skeleton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,SAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwC;IAC7E,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,kBAChD,qBAAqB,KAC9B,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/react/components/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,QAAA,MAAM,MAAM,yJAcV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const Slider = React.forwardRef(({ className, ...props }, ref) => (_jsxs(SliderPrimitive.Root, { ref: ref, className: cn("relative flex w-full touch-none select-none items-center", className), ...props, children: [_jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: _jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }), _jsx(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })] })));
|
|
7
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
8
|
+
export { Slider };
|
|
9
|
+
//# sourceMappingURL=slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.js","sourceRoot":"","sources":["../../../src/react/components/slider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAG7B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,MAAC,eAAe,CAAC,IAAI,IACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,0DAA0D,EAAE,SAAS,CAAC,KAChF,KAAK,aAET,KAAC,eAAe,CAAC,KAAK,IAAC,SAAS,EAAC,oEAAoE,YACnG,KAAC,eAAe,CAAC,KAAK,IAAC,SAAS,EAAC,4BAA4B,GAAG,GAC1C,EACxB,KAAC,eAAe,CAAC,KAAK,IAAC,SAAS,EAAC,gQAAgQ,GAAG,IAC/Q,CACxB,CAAC,CAAA;AACF,MAAM,CAAC,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/react/components/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAI1D,QAAA,MAAM,MAAM,8JAkBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) })));
|
|
7
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
8
|
+
export { Switch };
|
|
9
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/react/components/switch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAE1D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAG7B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,gBAAgB,CAAC,IAAI,IACpB,SAAS,EAAE,EAAE,CACX,oXAAoX,EACpX,SAAS,CACV,KACG,KAAK,EACT,GAAG,EAAE,GAAG,YAER,KAAC,gBAAgB,CAAC,KAAK,IACrB,SAAS,EAAE,EAAE,CACX,4KAA4K,CAC7K,GACD,GACoB,CACzB,CAAC,CAAA;AACF,MAAM,CAAC,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAA;AAEtD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/react/components/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,KAAK,iHAWT,CAAA;AAGF,QAAA,MAAM,WAAW,+HAKf,CAAA;AAGF,QAAA,MAAM,SAAS,+HASb,CAAA;AAGF,QAAA,MAAM,WAAW,+HAYf,CAAA;AAGF,QAAA,MAAM,QAAQ,uHAYZ,CAAA;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAA;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAA;AAGF,QAAA,MAAM,YAAY,+HAShB,CAAA;AAGF,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const Table = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", { ref: ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })));
|
|
6
|
+
Table.displayName = "Table";
|
|
7
|
+
const TableHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("thead", { ref: ref, className: cn("[&_tr]:border-b", className), ...props })));
|
|
8
|
+
TableHeader.displayName = "TableHeader";
|
|
9
|
+
const TableBody = React.forwardRef(({ className, ...props }, ref) => (_jsx("tbody", { ref: ref, className: cn("[&_tr:last-child]:border-0", className), ...props })));
|
|
10
|
+
TableBody.displayName = "TableBody";
|
|
11
|
+
const TableFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("tfoot", { ref: ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })));
|
|
12
|
+
TableFooter.displayName = "TableFooter";
|
|
13
|
+
const TableRow = React.forwardRef(({ className, ...props }, ref) => (_jsx("tr", { ref: ref, className: cn("border-b transition-colors hover:bg-muted/50 dark:hover:bg-white/10 data-[state=selected]:bg-muted", className), ...props })));
|
|
14
|
+
TableRow.displayName = "TableRow";
|
|
15
|
+
const TableHead = React.forwardRef(({ className, ...props }, ref) => (_jsx("th", { ref: ref, className: cn("h-12 px-4 text-left align-middle font-bold text-label [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
16
|
+
TableHead.displayName = "TableHead";
|
|
17
|
+
const TableCell = React.forwardRef(({ className, ...props }, ref) => (_jsx("td", { ref: ref, className: cn("p-4 align-middle text-label font-bold [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
18
|
+
TableCell.displayName = "TableCell";
|
|
19
|
+
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (_jsx("caption", { ref: ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })));
|
|
20
|
+
TableCaption.displayName = "TableCaption";
|
|
21
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
22
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/react/components/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAG5B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,cAAK,SAAS,EAAC,+BAA+B,YAC5C,gBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,GACE,CACP,CAAC,CAAA;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,gBAAO,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAC5E,CAAC,CAAA;AACF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAGhC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAA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CACH,CAAC,CAAA;AACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;AAEnC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,kBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,KAC1D,KAAK,GACT,CACH,CAAC,CAAA;AACF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA;AAEzC,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/react/components/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAIrD,QAAA,MAAM,IAAI,gGAAqB,CAAA;AAE/B,QAAA,MAAM,QAAQ,uJAYZ,CAAA;AAGF,QAAA,MAAM,WAAW,gKAgBf,CAAA;AAGF,QAAA,MAAM,WAAW,0JAYf,CAAA;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const Tabs = TabsPrimitive.Root;
|
|
7
|
+
const TabsList = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn("inline-flex h-10 items-center justify-center rounded-md p-1 text-muted-foreground", className), ...props })));
|
|
8
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
9
|
+
const TabsTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm !font-bold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm data-[state=active]:border-2 data-[state=active]:border-[hsl(var(--brand-primary-deep))]", "data-[state=inactive]:border data-[state=inactive]:border-border data-[state=inactive]:bg-background data-[state=inactive]:hover:bg-accent data-[state=inactive]:hover:text-accent-foreground", className), ...props, children: children })));
|
|
10
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
11
|
+
const TabsContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className), ...props })));
|
|
12
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
13
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
14
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/react/components/tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAA;AAE/B,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK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,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
const Textarea = React.forwardRef(({ className, ...props }, ref) => {
|
|
6
|
+
return (_jsx("textarea", { className: cn("flex min-h-[80px] w-full rounded-md border-2 border-border bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ref: ref, ...props }));
|
|
7
|
+
});
|
|
8
|
+
Textarea.displayName = "Textarea";
|
|
9
|
+
export { Textarea };
|
|
10
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/react/components/textarea.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/B,OAAO,CACL,mBACE,SAAS,EAAE,EAAE,CACX,sTAAsT,EACtT,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAA;AACH,CAAC,CACF,CAAA;AACD,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/react/components/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAoDlE,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAcjB,CAAC;AAWH,QAAA,MAAM,KAAK;;;IANP,SAAS;eACE,MAAM;IACjB,oBAAoB;kBACN,OAAO;uCAkDxB,CAAC;AAGF,QAAA,MAAM,WAAW,kKAKf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAcd,CAAC;AAGH,QAAA,MAAM,UAAU,2JAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKAKpB,CAAC;AAGH,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
5
|
import { X } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
6
7
|
/**
|
|
7
8
|
* ui-core Toasts are consumed by multiple apps.
|
|
8
9
|
*
|
|
@@ -11,11 +12,11 @@ import { cn } from "../lib/utils.js";
|
|
|
11
12
|
*/
|
|
12
13
|
function ToastKeyframes() {
|
|
13
14
|
// Inject a tiny global keyframe used by the optional countdown bar.
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
return (_jsx("style", {
|
|
16
|
+
// eslint-disable-next-line react/no-danger
|
|
17
|
+
dangerouslySetInnerHTML: {
|
|
17
18
|
__html: `@keyframes toast-progress{from{transform:scaleX(1)}to{transform:scaleX(0)}}`,
|
|
18
|
-
}}
|
|
19
|
+
} }));
|
|
19
20
|
}
|
|
20
21
|
const toastVariants = cva(cn(
|
|
21
22
|
// base
|
|
@@ -36,7 +37,7 @@ const toastVariants = cva(cn(
|
|
|
36
37
|
},
|
|
37
38
|
});
|
|
38
39
|
const ToastProvider = ToastPrimitives.Provider;
|
|
39
|
-
const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (
|
|
40
|
+
const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Viewport, { ref: ref, className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse gap-2 p-4", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col", "md:max-w-[420px]", className), ...props })));
|
|
40
41
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
41
42
|
const Toast = React.forwardRef(({ className, variant, duration = 5000, dismissible = true, style, children, ...props }, ref) => {
|
|
42
43
|
// pass duration to Radix AND to CSS countdown bar
|
|
@@ -44,32 +45,21 @@ const Toast = React.forwardRef(({ className, variant, duration = 5000, dismissib
|
|
|
44
45
|
...style,
|
|
45
46
|
["--toast-duration"]: `${duration}ms`,
|
|
46
47
|
};
|
|
47
|
-
return (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
animationName: "toast-progress",
|
|
54
|
-
animationDuration: `${duration}ms`,
|
|
55
|
-
animationTimingFunction: "linear",
|
|
56
|
-
animationFillMode: "forwards",
|
|
57
|
-
}}/>
|
|
58
|
-
|
|
59
|
-
{/* dismiss button */}
|
|
60
|
-
{dismissible ? (<ToastPrimitives.Close className={cn("absolute right-2 top-2 inline-flex h-7 w-7 items-center justify-center rounded-md", "text-foreground/60 hover:text-foreground", "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background")} aria-label="Dismiss toast">
|
|
61
|
-
<X className="h-4 w-4"/>
|
|
62
|
-
</ToastPrimitives.Close>) : null}
|
|
63
|
-
</ToastPrimitives.Root>);
|
|
48
|
+
return (_jsxs(ToastPrimitives.Root, { ref: ref, duration: duration, "data-variant": variant, className: cn(toastVariants({ variant }), className), style: mergedStyle, ...props, children: [_jsx(ToastKeyframes, {}), children, _jsx("div", { className: cn("absolute bottom-0 left-0 h-1 w-full bg-foreground/10", "origin-left"), style: {
|
|
49
|
+
animationName: "toast-progress",
|
|
50
|
+
animationDuration: `${duration}ms`,
|
|
51
|
+
animationTimingFunction: "linear",
|
|
52
|
+
animationFillMode: "forwards",
|
|
53
|
+
} }), dismissible ? (_jsx(ToastPrimitives.Close, { className: cn("absolute right-2 top-2 inline-flex h-7 w-7 items-center justify-center rounded-md", "text-foreground/60 hover:text-foreground", "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"), "aria-label": "Dismiss toast", children: _jsx(X, { className: "h-4 w-4" }) })) : null] }));
|
|
64
54
|
});
|
|
65
55
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
66
|
-
const ToastAction = React.forwardRef(({ className, ...props }, ref) => (
|
|
56
|
+
const ToastAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Action, { ref: ref, className: cn(className), ...props })));
|
|
67
57
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
68
|
-
const ToastClose = React.forwardRef(({ className, ...props }, ref) => (
|
|
58
|
+
const ToastClose = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Close, { ref: ref, className: cn("absolute right-2 top-2 inline-flex h-7 w-7 items-center justify-center rounded-md", "text-foreground/60 hover:text-foreground", "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background", className), ...props })));
|
|
69
59
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
70
|
-
const ToastTitle = React.forwardRef(({ className, ...props }, ref) => (
|
|
60
|
+
const ToastTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Title, { ref: ref, className: cn(className), ...props })));
|
|
71
61
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
72
|
-
const ToastDescription = React.forwardRef(({ className, ...props }, ref) => (
|
|
62
|
+
const ToastDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Description, { ref: ref, className: cn(className), ...props })));
|
|
73
63
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
74
64
|
export { ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction };
|
|
75
|
-
//# sourceMappingURL=toast.
|
|
65
|
+
//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/react/components/toast.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;GAKG;AACH,SAAS,cAAc;IACrB,oEAAoE;IACpE,OAAO,CACL;QACE,2CAA2C;QAC3C,uBAAuB,EAAE;YACvB,MAAM,EAAE,6EAA6E;SACtF,GACD,CACH,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,GAAG,CACvB,EAAE;AACA,OAAO;AACP,yKAAyK;AACzK,wBAAwB;AACxB,8DAA8D,EAC9D,8DAA8D,EAC9D,sFAAsF,EACtF,gDAAgD,EAChD,iEAAiE,EACjE,6FAA6F,EAC7F,uEAAuE,CACxE,EACD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3D,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAGjC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,KAAK,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAM,KAAK,GAAI,CACzE,CAAC,CAAC;AACH,UAAU,CAAC,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC;AAE3D,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAGvC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,WAAW,IAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAM,KAAK,GAAI,CAC/E,CAAC,CAAC;AACH,gBAAgB,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC;AAMvE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/react/components/toaster.tsx"],"names":[],"mappings":"AAMA,wBAAgB,OAAO,4CAmCtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "./toast.js";
|
|
4
|
+
import { useToast } from "../hooks/use-toast.js";
|
|
5
|
+
export function Toaster() {
|
|
6
|
+
const { toasts } = useToast();
|
|
7
|
+
return (_jsxs(ToastProvider, { swipeDirection: "right", swipeThreshold: 32, children: [toasts.map((t) => {
|
|
8
|
+
const { id, title, description, action, variant, duration, dismissible, open, onOpenChange, ...props } = t;
|
|
9
|
+
const v = variant === "error" ? "destructive" : (variant ?? "default");
|
|
10
|
+
return (_jsxs(Toast, { open: open, onOpenChange: onOpenChange, variant: v, duration: duration ?? 5000, dismissible: dismissible ?? true, ...props, children: [_jsxs("div", { className: "grid gap-1 pr-10", children: [title ? _jsx(ToastTitle, { className: "font-bold", children: title }) : null, description ? _jsx(ToastDescription, { className: "font-bold", children: description }) : null] }), action, _jsx(ToastClose, {})] }, id));
|
|
11
|
+
}), _jsx(ToastViewport, {})] }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=toaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.js","sourceRoot":"","sources":["../../../src/react/components/toaster.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3G,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,MAAM,UAAU,OAAO;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAgC,CAAC;IAE5D,OAAO,CACL,MAAC,aAAa,IAAC,cAAc,EAAC,OAAO,EAAC,cAAc,EAAE,EAAE,aACrD,MAAM,CAAC,GAAG,CAAC,CAAC,CAAe,EAAE,EAAE;gBAC9B,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC;gBAE3G,MAAM,CAAC,GACL,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;gBAE/D,OAAO,CACL,MAAC,KAAK,IAEJ,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,CAAQ,EACjB,QAAQ,EAAE,QAAQ,IAAI,IAAI,EAC1B,WAAW,EAAE,WAAW,IAAI,IAAI,KAC3B,KAAa,aAElB,eAAK,SAAS,EAAC,kBAAkB,aAC9B,KAAK,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,SAAS,EAAC,WAAW,YAAE,KAAK,GAAc,CAAC,CAAC,CAAC,IAAI,EACrE,WAAW,CAAC,CAAC,CAAC,KAAC,gBAAgB,IAAC,SAAS,EAAC,WAAW,YAAE,WAAW,GAAoB,CAAC,CAAC,CAAC,IAAI,IAC1F,EACL,MAAM,EACP,KAAC,UAAU,KAAG,KAbT,EAAE,CAcD,CACT,CAAC;YACJ,CAAC,CAAC,EAGF,KAAC,aAAa,KAAG,IACH,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/react/components/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,QAAA,MAAM,eAAe,iDAA4B,CAAA;AACjD,QAAA,MAAM,OAAO,yCAAwB,CAAA;AACrC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,cAAc,gKAalB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
7
|
+
const Tooltip = TooltipPrimitive.Root;
|
|
8
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
9
|
+
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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", className), ...props })));
|
|
10
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
11
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
12
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/react/components/tooltip.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC,MAAM,eAAe,GAAG,gBAAgB,CAAC,QAAQ,CAAA;AACjD,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAA;AACrC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAA;AAE/C,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClD,KAAC,gBAAgB,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CACX,oYAAoY,EACpY,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAA;AACF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAA;AAEjE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-media-query.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-media-query.tsx"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,WAuB1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-media-query.js","sourceRoot":"","sources":["../../../src/react/hooks/use-media-query.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,CAAC,UAAU;YAAE,OAAO;QAEhE,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,CAAC,CAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAEnE,cAAc;QACd,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAExB,YAAY;QACZ,IAAI,GAAG,CAAC,gBAAgB;YAAE,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;;YAC9D,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAE/B,OAAO,GAAG,EAAE;YACV,IAAI,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EAAE;YACV,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAC1C,IAAI,KAAK,GAAG,CAAC,CAAC;gBAAE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC7C,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,GAAG,KAAK;QACR,KAAK;QACL,OAAO,EAAE,CAAC,OAAgB,EAAE,EAAE;YAC5B,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,CAAC;YAC7C,IAAI,OAAO;gBAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from "./components/button.js";
|
|
2
|
+
export * from "./components/card.js";
|
|
3
|
+
export * from "./components/label.js";
|
|
4
|
+
export * from "./components/textarea.js";
|
|
5
|
+
export * from "./components/skeleton.js";
|
|
6
|
+
export * from "./components/dialog.js";
|
|
7
|
+
export * from "./components/popover.js";
|
|
8
|
+
export * from "./components/dropdown-menu.js";
|
|
9
|
+
export * from "./components/menubar.js";
|
|
10
|
+
export * from "./components/alert-dialog.js";
|
|
11
|
+
export * from "./components/alert.js";
|
|
12
|
+
export * from "./components/toast.js";
|
|
13
|
+
export * from "./components/toaster.js";
|
|
14
|
+
export * from "./hooks/use-toast.js";
|
|
15
|
+
export * from "./components/input.js";
|
|
16
|
+
export * from "./components/select.js";
|
|
17
|
+
export * from "./components/tabs.js";
|
|
18
|
+
export * from "./components/tooltip.js";
|
|
19
|
+
export * from "./components/form.js";
|
|
20
|
+
export * from "./components/checkbox.js";
|
|
21
|
+
export * from "./components/switch.js";
|
|
22
|
+
export * from "./components/badge.js";
|
|
23
|
+
export * from "./components/avatar.js";
|
|
24
|
+
export * from "./components/separator.js";
|
|
25
|
+
export * from "./components/accordion.js";
|
|
26
|
+
export * from "./components/radio-group.js";
|
|
27
|
+
export * from "./components/progress.js";
|
|
28
|
+
export * from "./components/slider.js";
|
|
29
|
+
export * from "./components/date-picker.js";
|
|
30
|
+
export * from "./components/scroll-area.js";
|
|
31
|
+
export * from "./components/table.js";
|
|
32
|
+
export * from "./components/sheet.js";
|
|
33
|
+
export * from "./components/collapsible.js";
|
|
34
|
+
export * from "./components/search-dropdown.js";
|
|
35
|
+
export * from "./components/layout/screen-adaptive-view.js";
|
|
36
|
+
export * from "./hooks/use-media-query.js";
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,6CAA6C,CAAC;AAG5D,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Export all components
|
|
2
|
+
export * from "./components/button.js";
|
|
3
|
+
export * from "./components/card.js";
|
|
4
|
+
export * from "./components/label.js";
|
|
5
|
+
export * from "./components/textarea.js";
|
|
6
|
+
export * from "./components/skeleton.js";
|
|
7
|
+
export * from "./components/dialog.js";
|
|
8
|
+
export * from "./components/popover.js";
|
|
9
|
+
export * from "./components/dropdown-menu.js";
|
|
10
|
+
export * from "./components/menubar.js";
|
|
11
|
+
export * from "./components/alert-dialog.js";
|
|
12
|
+
export * from "./components/alert.js";
|
|
13
|
+
export * from "./components/toast.js";
|
|
14
|
+
export * from "./components/toaster.js";
|
|
15
|
+
export * from "./hooks/use-toast.js";
|
|
16
|
+
export * from "./components/input.js";
|
|
17
|
+
export * from "./components/select.js";
|
|
18
|
+
export * from "./components/tabs.js";
|
|
19
|
+
export * from "./components/tooltip.js";
|
|
20
|
+
export * from "./components/form.js";
|
|
21
|
+
export * from "./components/checkbox.js";
|
|
22
|
+
export * from "./components/switch.js";
|
|
23
|
+
export * from "./components/badge.js";
|
|
24
|
+
export * from "./components/avatar.js";
|
|
25
|
+
export * from "./components/separator.js";
|
|
26
|
+
export * from "./components/accordion.js";
|
|
27
|
+
export * from "./components/radio-group.js";
|
|
28
|
+
export * from "./components/progress.js";
|
|
29
|
+
export * from "./components/slider.js";
|
|
30
|
+
export * from "./components/date-picker.js";
|
|
31
|
+
export * from "./components/scroll-area.js";
|
|
32
|
+
export * from "./components/table.js";
|
|
33
|
+
export * from "./components/sheet.js";
|
|
34
|
+
export * from "./components/collapsible.js";
|
|
35
|
+
export * from "./components/search-dropdown.js";
|
|
36
|
+
// Layout
|
|
37
|
+
export * from "./components/layout/screen-adaptive-view.js";
|
|
38
|
+
// Hooks
|
|
39
|
+
export * from "./hooks/use-media-query.js";
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAEhD,SAAS;AACT,cAAc,6CAA6C,CAAC;AAE5D,QAAQ;AACR,cAAc,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttt-productions/ui-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
4
4
|
"description": "Shared UI components for TTT Productions projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,10 +25,15 @@
|
|
|
25
25
|
"import": "./dist/index.js",
|
|
26
26
|
"default": "./dist/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./react": {
|
|
29
|
+
"types": "./dist/react/index.d.ts",
|
|
30
|
+
"import": "./dist/react/index.js",
|
|
31
|
+
"default": "./dist/react/index.js"
|
|
32
|
+
},
|
|
28
33
|
"./src/*": "./src/*"
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
|
-
"build": "tsc
|
|
36
|
+
"build": "tsc",
|
|
32
37
|
"clean": "rm -rf dist *.tsbuildinfo",
|
|
33
38
|
"typecheck": "tsc --noEmit",
|
|
34
39
|
"prepublishOnly": "npm run clean && npm run build"
|
package/src/index.ts
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from "./components/button.js";
|
|
3
|
-
export * from "./components/card.js";
|
|
4
|
-
export * from "./components/label.js";
|
|
5
|
-
export * from "./components/textarea.js";
|
|
6
|
-
export * from "./components/skeleton.js";
|
|
7
|
-
export * from "./components/dialog.js";
|
|
8
|
-
export * from "./components/popover.js";
|
|
9
|
-
export * from "./components/dropdown-menu.js";
|
|
10
|
-
export * from "./components/menubar.js";
|
|
11
|
-
export * from "./components/alert-dialog.js";
|
|
12
|
-
export * from "./components/alert.js";
|
|
13
|
-
export * from "./components/toast.js";
|
|
14
|
-
export * from "./components/toaster.js";
|
|
15
|
-
export * from "./hooks/use-toast.js";
|
|
16
|
-
export * from "./components/input.js";
|
|
17
|
-
export * from "./components/select.js";
|
|
18
|
-
export * from "./components/tabs.js";
|
|
19
|
-
export * from "./components/tooltip.js";
|
|
20
|
-
export * from "./components/form.js";
|
|
21
|
-
export * from "./components/checkbox.js";
|
|
22
|
-
export * from "./components/switch.js";
|
|
23
|
-
export * from "./components/badge.js";
|
|
24
|
-
export * from "./components/avatar.js";
|
|
25
|
-
export * from "./components/separator.js";
|
|
26
|
-
export * from "./components/accordion.js";
|
|
27
|
-
export * from "./components/radio-group.js";
|
|
28
|
-
export * from "./components/progress.js";
|
|
29
|
-
export * from "./components/slider.js";
|
|
30
|
-
export * from "./components/date-picker.js";
|
|
31
|
-
export * from "./components/scroll-area.js";
|
|
32
|
-
export * from "./components/table.js";
|
|
33
|
-
export * from "./components/sheet.js";
|
|
34
|
-
export * from "./components/collapsible.js";
|
|
35
|
-
export * from "./components/search-dropdown.js";
|
|
36
|
-
|
|
37
|
-
// Layout
|
|
38
|
-
export * from "./components/layout/screen-adaptive-view.js";
|
|
39
|
-
|
|
40
|
-
// Hooks
|
|
41
|
-
export * from "./hooks/use-media-query.js";
|
|
42
|
-
|
|
43
|
-
// Export utilities
|
|
1
|
+
// Server-safe utilities only. React components and hooks live behind ./react.
|
|
44
2
|
export * from "./lib/utils.js";
|