@admin-layout/tailwind-ui 10.1.1-alpha.8 → 12.0.16-alpha.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/lib/components/Button/Button.d.ts +13 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +50 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +5 -0
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/components/DatePicker/DatePicker.js +218 -0
- package/lib/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/DatePicker/index.d.ts +3 -0
- package/lib/components/DatePicker/index.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.d.ts +3 -0
- package/lib/components/DatePicker/machine.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.js +95 -0
- package/lib/components/DatePicker/machine.js.map +1 -0
- package/lib/components/DatePicker/types.d.ts +34 -0
- package/lib/components/DatePicker/types.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.d.ts +25 -0
- package/lib/components/DatePicker/utils.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.js +28 -0
- package/lib/components/DatePicker/utils.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +14 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.js +96 -0
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +4 -0
- package/lib/components/ThemeProvider/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +25 -0
- package/lib/components/ThemeProvider/types.d.ts.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/hooks/useTheme.d.ts +2 -0
- package/lib/hooks/useTheme.d.ts.map +1 -0
- package/lib/hooks/useTheme.js +7 -0
- package/lib/hooks/useTheme.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/shardui/accordion.d.ts +8 -0
- package/lib/shardui/accordion.d.ts.map +1 -0
- package/lib/shardui/accordion.js +40 -0
- package/lib/shardui/accordion.js.map +1 -0
- package/lib/shardui/alert-dialog.d.ts +21 -0
- package/lib/shardui/alert-dialog.d.ts.map +1 -0
- package/lib/shardui/alert-dialog.js +77 -0
- package/lib/shardui/alert-dialog.js.map +1 -0
- package/lib/shardui/alert.d.ts +9 -0
- package/lib/shardui/alert.d.ts.map +1 -0
- package/lib/shardui/alert.js +42 -0
- package/lib/shardui/alert.js.map +1 -0
- package/lib/shardui/aspect-ratio.d.ts +4 -0
- package/lib/shardui/aspect-ratio.d.ts.map +1 -0
- package/lib/shardui/aspect-ratio.js +1 -0
- package/lib/shardui/aspect-ratio.js.map +1 -0
- package/lib/shardui/avatar.d.ts +7 -0
- package/lib/shardui/avatar.d.ts.map +1 -0
- package/lib/shardui/avatar.js +27 -0
- package/lib/shardui/avatar.js.map +1 -0
- package/lib/shardui/badge.d.ts +10 -0
- package/lib/shardui/badge.d.ts.map +1 -0
- package/lib/shardui/badge.js +25 -0
- package/lib/shardui/badge.js.map +1 -0
- package/lib/shardui/breadcrumb.d.ts +20 -0
- package/lib/shardui/breadcrumb.d.ts.map +1 -0
- package/lib/shardui/breadcrumb.js +79 -0
- package/lib/shardui/breadcrumb.js.map +1 -0
- package/lib/shardui/button.d.ts +12 -0
- package/lib/shardui/button.d.ts.map +1 -0
- package/lib/shardui/button.js +41 -0
- package/lib/shardui/button.js.map +1 -0
- package/lib/shardui/calendar.d.ts +9 -0
- package/lib/shardui/calendar.d.ts.map +1 -0
- package/lib/shardui/calendar.js +53 -0
- package/lib/shardui/calendar.js.map +1 -0
- package/lib/shardui/card.d.ts +9 -0
- package/lib/shardui/card.d.ts.map +1 -0
- package/lib/shardui/card.js +54 -0
- package/lib/shardui/card.js.map +1 -0
- package/lib/shardui/carousel.d.ts +19 -0
- package/lib/shardui/carousel.d.ts.map +1 -0
- package/lib/shardui/carousel.js +176 -0
- package/lib/shardui/carousel.js.map +1 -0
- package/lib/shardui/chart.d.ts +63 -0
- package/lib/shardui/chart.d.ts.map +1 -0
- package/lib/shardui/chart.js +197 -0
- package/lib/shardui/chart.js.map +1 -0
- package/lib/shardui/checkbox.d.ts +5 -0
- package/lib/shardui/checkbox.d.ts.map +1 -0
- package/lib/shardui/checkbox.js +15 -0
- package/lib/shardui/checkbox.js.map +1 -0
- package/lib/shardui/collapsible.d.ts +6 -0
- package/lib/shardui/collapsible.d.ts.map +1 -0
- package/lib/shardui/collapsible.js +3 -0
- package/lib/shardui/collapsible.js.map +1 -0
- package/lib/shardui/command.d.ts +83 -0
- package/lib/shardui/command.d.ts.map +1 -0
- package/lib/shardui/command.js +91 -0
- package/lib/shardui/command.js.map +1 -0
- package/lib/shardui/context-menu.d.ts +28 -0
- package/lib/shardui/context-menu.d.ts.map +1 -0
- package/lib/shardui/context-menu.js +117 -0
- package/lib/shardui/context-menu.js.map +1 -0
- package/lib/shardui/dialog.d.ts +20 -0
- package/lib/shardui/dialog.d.ts.map +1 -0
- package/lib/shardui/dialog.js +67 -0
- package/lib/shardui/dialog.js.map +1 -0
- package/lib/shardui/drawer.d.ts +23 -0
- package/lib/shardui/drawer.d.ts.map +1 -0
- package/lib/shardui/drawer.js +69 -0
- package/lib/shardui/drawer.js.map +1 -0
- package/lib/shardui/dropdown-menu.d.ts +28 -0
- package/lib/shardui/dropdown-menu.d.ts.map +1 -0
- package/lib/shardui/dropdown-menu.js +119 -0
- package/lib/shardui/dropdown-menu.js.map +1 -0
- package/lib/shardui/form.d.ts +24 -0
- package/lib/shardui/form.d.ts.map +1 -0
- package/lib/shardui/form.js +126 -0
- package/lib/shardui/form.js.map +1 -0
- package/lib/shardui/hover-card.d.ts +7 -0
- package/lib/shardui/hover-card.d.ts.map +1 -0
- package/lib/shardui/hover-card.js +15 -0
- package/lib/shardui/hover-card.js.map +1 -0
- package/lib/shardui/index.d.ts +50 -0
- package/lib/shardui/index.d.ts.map +1 -0
- package/lib/shardui/input-otp.d.ts +35 -0
- package/lib/shardui/input-otp.d.ts.map +1 -0
- package/lib/shardui/input-otp.js +53 -0
- package/lib/shardui/input-otp.js.map +1 -0
- package/lib/shardui/input.d.ts +4 -0
- package/lib/shardui/input.d.ts.map +1 -0
- package/lib/shardui/input.js +13 -0
- package/lib/shardui/input.js.map +1 -0
- package/lib/shardui/label.d.ts +6 -0
- package/lib/shardui/label.d.ts.map +1 -0
- package/lib/shardui/label.js +10 -0
- package/lib/shardui/label.js.map +1 -0
- package/lib/shardui/menubar.d.ts +34 -0
- package/lib/shardui/menubar.d.ts.map +1 -0
- package/lib/shardui/menubar.js +140 -0
- package/lib/shardui/menubar.js.map +1 -0
- package/lib/shardui/navigation-menu.d.ts +13 -0
- package/lib/shardui/navigation-menu.d.ts.map +1 -0
- package/lib/shardui/navigation-menu.js +70 -0
- package/lib/shardui/navigation-menu.js.map +1 -0
- package/lib/shardui/pagination.d.ts +29 -0
- package/lib/shardui/pagination.d.ts.map +1 -0
- package/lib/shardui/pagination.js +87 -0
- package/lib/shardui/pagination.js.map +1 -0
- package/lib/shardui/popover.d.ts +7 -0
- package/lib/shardui/popover.d.ts.map +1 -0
- package/lib/shardui/popover.js +17 -0
- package/lib/shardui/popover.js.map +1 -0
- package/lib/shardui/progress.d.ts +5 -0
- package/lib/shardui/progress.d.ts.map +1 -0
- package/lib/shardui/progress.js +16 -0
- package/lib/shardui/progress.js.map +1 -0
- package/lib/shardui/radio-group.d.ts +6 -0
- package/lib/shardui/radio-group.d.ts.map +1 -0
- package/lib/shardui/radio-group.js +28 -0
- package/lib/shardui/radio-group.js.map +1 -0
- package/lib/shardui/resizable.d.ts +24 -0
- package/lib/shardui/resizable.d.ts.map +1 -0
- package/lib/shardui/resizable.js +22 -0
- package/lib/shardui/resizable.js.map +1 -0
- package/lib/shardui/scroll-area.d.ts +6 -0
- package/lib/shardui/scroll-area.d.ts.map +1 -0
- package/lib/shardui/scroll-area.js +28 -0
- package/lib/shardui/scroll-area.js.map +1 -0
- package/lib/shardui/select.d.ts +14 -0
- package/lib/shardui/select.d.ts.map +1 -0
- package/lib/shardui/select.js +99 -0
- package/lib/shardui/select.js.map +1 -0
- package/lib/shardui/separator.d.ts +5 -0
- package/lib/shardui/separator.d.ts.map +1 -0
- package/lib/shardui/separator.js +13 -0
- package/lib/shardui/separator.js.map +1 -0
- package/lib/shardui/sheet.d.ts +26 -0
- package/lib/shardui/sheet.d.ts.map +1 -0
- package/lib/shardui/sheet.js +84 -0
- package/lib/shardui/sheet.js.map +1 -0
- package/lib/shardui/sidebar.d.ts +67 -0
- package/lib/shardui/sidebar.d.ts.map +1 -0
- package/lib/shardui/sidebar.js +490 -0
- package/lib/shardui/sidebar.js.map +1 -0
- package/lib/shardui/skeleton.d.ts +3 -0
- package/lib/shardui/skeleton.d.ts.map +1 -0
- package/lib/shardui/skeleton.js +9 -0
- package/lib/shardui/skeleton.js.map +1 -0
- package/lib/shardui/slider.d.ts +5 -0
- package/lib/shardui/slider.d.ts.map +1 -0
- package/lib/shardui/slider.js +17 -0
- package/lib/shardui/slider.js.map +1 -0
- package/lib/shardui/sonner.d.ts +5 -0
- package/lib/shardui/sonner.d.ts.map +1 -0
- package/lib/shardui/sonner.js +20 -0
- package/lib/shardui/sonner.js.map +1 -0
- package/lib/shardui/switch.d.ts +5 -0
- package/lib/shardui/switch.d.ts.map +1 -0
- package/lib/shardui/switch.js +12 -0
- package/lib/shardui/switch.js.map +1 -0
- package/lib/shardui/table.d.ts +11 -0
- package/lib/shardui/table.d.ts.map +1 -0
- package/lib/shardui/table.js +75 -0
- package/lib/shardui/table.js.map +1 -0
- package/lib/shardui/tabs.d.ts +8 -0
- package/lib/shardui/tabs.d.ts.map +1 -0
- package/lib/shardui/tabs.js +28 -0
- package/lib/shardui/tabs.js.map +1 -0
- package/lib/shardui/textarea.d.ts +6 -0
- package/lib/shardui/textarea.d.ts.map +1 -0
- package/lib/shardui/textarea.js +11 -0
- package/lib/shardui/textarea.js.map +1 -0
- package/lib/shardui/toast.d.ts +16 -0
- package/lib/shardui/toast.d.ts.map +1 -0
- package/lib/shardui/toast.js +75 -0
- package/lib/shardui/toast.js.map +1 -0
- package/lib/shardui/toaster.d.ts +2 -0
- package/lib/shardui/toaster.d.ts.map +1 -0
- package/lib/shardui/toaster.js +26 -0
- package/lib/shardui/toaster.js.map +1 -0
- package/lib/shardui/toggle-group.d.ts +13 -0
- package/lib/shardui/toggle-group.d.ts.map +1 -0
- package/lib/shardui/toggle-group.js +42 -0
- package/lib/shardui/toggle-group.js.map +1 -0
- package/lib/shardui/toggle.d.ts +13 -0
- package/lib/shardui/toggle.d.ts.map +1 -0
- package/lib/shardui/toggle.js +32 -0
- package/lib/shardui/toggle.js.map +1 -0
- package/lib/shardui/tooltip.d.ts +8 -0
- package/lib/shardui/tooltip.d.ts.map +1 -0
- package/lib/shardui/tooltip.js +14 -0
- package/lib/shardui/tooltip.js.map +1 -0
- package/lib/shardui/use-toast.d.ts +3 -0
- package/lib/shardui/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.d.ts +2 -0
- package/lib/utils/hooks/use-mobile.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.js +14 -0
- package/lib/utils/hooks/use-mobile.js.map +1 -0
- package/lib/utils/hooks/use-toast.d.ts +45 -0
- package/lib/utils/hooks/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-toast.js +133 -0
- package/lib/utils/hooks/use-toast.js.map +1 -0
- package/lib/utils/index.d.ts +7 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/isBrowser/index.js +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -0
- package/lib/utils/util.d.ts +3 -0
- package/lib/utils/util.d.ts.map +1 -0
- package/lib/utils/util.js +3 -0
- package/lib/utils/util.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const Table = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
...props
|
|
4
|
+
}, ref) => jsx("div", {
|
|
5
|
+
className: "relative w-full overflow-auto",
|
|
6
|
+
children: jsx("table", {
|
|
7
|
+
ref: ref,
|
|
8
|
+
className: cn('w-full caption-bottom text-sm', className),
|
|
9
|
+
...props
|
|
10
|
+
})
|
|
11
|
+
}));
|
|
12
|
+
Table.displayName = 'Table';
|
|
13
|
+
const TableHeader = React.forwardRef(({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => jsx("thead", {
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: cn('[&_tr]:border-b', className),
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
TableHeader.displayName = 'TableHeader';
|
|
22
|
+
const TableBody = React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) => jsx("tbody", {
|
|
26
|
+
ref: ref,
|
|
27
|
+
className: cn('[&_tr:last-child]:border-0', className),
|
|
28
|
+
...props
|
|
29
|
+
}));
|
|
30
|
+
TableBody.displayName = 'TableBody';
|
|
31
|
+
const TableFooter = React.forwardRef(({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => jsx("tfoot", {
|
|
35
|
+
ref: ref,
|
|
36
|
+
className: cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
TableFooter.displayName = 'TableFooter';
|
|
40
|
+
const TableRow = React.forwardRef(({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}, ref) => jsx("tr", {
|
|
44
|
+
ref: ref,
|
|
45
|
+
className: cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
48
|
+
TableRow.displayName = 'TableRow';
|
|
49
|
+
const TableHead = React.forwardRef(({
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}, ref) => jsx("th", {
|
|
53
|
+
ref: ref,
|
|
54
|
+
className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
|
|
55
|
+
...props
|
|
56
|
+
}));
|
|
57
|
+
TableHead.displayName = 'TableHead';
|
|
58
|
+
const TableCell = React.forwardRef(({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}, ref) => jsx("td", {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
|
|
64
|
+
...props
|
|
65
|
+
}));
|
|
66
|
+
TableCell.displayName = 'TableCell';
|
|
67
|
+
const TableCaption = React.forwardRef(({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => jsx("caption", {
|
|
71
|
+
ref: ref,
|
|
72
|
+
className: cn('mt-4 text-sm text-muted-foreground', className),
|
|
73
|
+
...props
|
|
74
|
+
}));
|
|
75
|
+
TableCaption.displayName = 'TableCaption';export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow};//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../src/shardui/table.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oKAkBA,MAAA,KAAA,GAAM,KAAS,CAAA,UAAA,CAAA,CAAA;AAOf,EAAA,SAAA;AAWA,EAAA,GAAA;AAWA,CAAA,EAAA,GAAA,KAAAA,GAAe,CAAA,KAAA,EAAA;AAcf,EAAA,SAAA,EAAA,+BAAe;AAOf,EAAA,QAAA,EAAAA,GAAkB,CAAA,OAAA,EAAA;AAOlB,IAAA,GAAO,EAAE,GAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
8
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/shardui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,QAAQ,uJAYZ,CAAC;AAGH,QAAA,MAAM,WAAW,gKAYf,CAAC;AAGH,QAAA,MAAM,WAAW,0JAYf,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import*as TabsPrimitive from'@radix-ui/react-tabs';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const Tabs = TabsPrimitive.Root;
|
|
2
|
+
const TabsList = React.forwardRef(({
|
|
3
|
+
className,
|
|
4
|
+
...props
|
|
5
|
+
}, ref) => jsx(TabsPrimitive.List, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
|
|
8
|
+
...props
|
|
9
|
+
}));
|
|
10
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
11
|
+
const TabsTrigger = React.forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => jsx(TabsPrimitive.Trigger, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium 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-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
20
|
+
const TabsContent = React.forwardRef(({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => jsx(TabsPrimitive.Content, {
|
|
24
|
+
ref: ref,
|
|
25
|
+
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),
|
|
26
|
+
...props
|
|
27
|
+
}));
|
|
28
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;export{Tabs,TabsContent,TabsList,TabsTrigger};//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sources":["../../src/shardui/tabs.tsx"],"sourcesContent":[null],"names":[],"mappings":"uNAsBA,MAAA,IAAA,GAAA,aAAiB,CAAA;AAejB,MAAA,QAAM,GAAW,KAAA,CAAA,UAAA,CAAA,CAAA;AAejB,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
export { Textarea };
|
|
6
|
+
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/shardui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE3F,QAAA,MAAM,QAAQ,2FAWZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const Textarea = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
...props
|
|
4
|
+
}, ref) => {
|
|
5
|
+
return jsx("textarea", {
|
|
6
|
+
className: cn('flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm 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', className),
|
|
7
|
+
ref: ref,
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
Textarea.displayName = 'Textarea';export{Textarea};//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","sources":["../../src/shardui/textarea.tsx"],"sourcesContent":[null],"names":[],"mappings":"oKAMA,MAAA,QAAM,GAAQ,KAAA,CAAA,UAAA,CAAA,CAAA;AAcd,EAAO,SAAU;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
+
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: {
|
|
7
|
+
variant?: "default" | "destructive";
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
14
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
15
|
+
export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
|
|
16
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/shardui/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;AAKlE,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAkBH,QAAA,MAAM,KAAK;;wGAKT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAYf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAed,CAAC;AAGH,QAAA,MAAM,UAAU,2JAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKAKpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACH,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACd,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import*as ToastPrimitives from'@radix-ui/react-toast';import {cva}from'class-variance-authority';import {X}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const ToastProvider = ToastPrimitives.Provider;
|
|
2
|
+
const ToastViewport = React.forwardRef(({
|
|
3
|
+
className,
|
|
4
|
+
...props
|
|
5
|
+
}, ref) => jsx(ToastPrimitives.Viewport, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', className),
|
|
8
|
+
...props
|
|
9
|
+
}));
|
|
10
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
11
|
+
const toastVariants = cva('group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full', {
|
|
12
|
+
variants: {
|
|
13
|
+
variant: {
|
|
14
|
+
default: 'border bg-background text-foreground',
|
|
15
|
+
destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
variant: 'default'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const Toast = React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
variant,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => {
|
|
27
|
+
return jsx(ToastPrimitives.Root, {
|
|
28
|
+
ref: ref,
|
|
29
|
+
className: cn(toastVariants({
|
|
30
|
+
variant
|
|
31
|
+
}), className),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
36
|
+
const ToastAction = React.forwardRef(({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}, ref) => jsx(ToastPrimitives.Action, {
|
|
40
|
+
ref: ref,
|
|
41
|
+
className: cn('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive', className),
|
|
42
|
+
...props
|
|
43
|
+
}));
|
|
44
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
45
|
+
const ToastClose = React.forwardRef(({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => jsx(ToastPrimitives.Close, {
|
|
49
|
+
ref: ref,
|
|
50
|
+
className: cn('absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600', className),
|
|
51
|
+
"toast-close": "",
|
|
52
|
+
...props,
|
|
53
|
+
children: jsx(X, {
|
|
54
|
+
className: "h-4 w-4"
|
|
55
|
+
})
|
|
56
|
+
}));
|
|
57
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
58
|
+
const ToastTitle = React.forwardRef(({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}, ref) => jsx(ToastPrimitives.Title, {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: cn('text-sm font-semibold', className),
|
|
64
|
+
...props
|
|
65
|
+
}));
|
|
66
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
67
|
+
const ToastDescription = React.forwardRef(({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => jsx(ToastPrimitives.Description, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
className: cn('text-sm opacity-90', className),
|
|
73
|
+
...props
|
|
74
|
+
}));
|
|
75
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;export{Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport};//# sourceMappingURL=toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.js","sources":["../../src/shardui/toast.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AA+CA,EAAA,SAAA;AAeA,EAAA,GAAA;AAkBA,CAAA,EAAA,GAAA,KAAAA,GAAgB,CAAA,eAAA,CAAA,QAAA,EAAA;AAQhB,EAAA,GAAA,EAAA,GAAA;AAQA,EAAK,SAAA,EAAA,EAAU,oIAAgD,EAAA,SAAA,CAAA;AAE/D,EAAK,GAAA;AAEL,CAAO,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/shardui/toaster.tsx"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,4CAoBtB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import'../utils/isBrowser/index.js';import'clsx';import'tailwind-merge';import'react';import'fast-deep-equal/react';import {useToast}from'../utils/hooks/use-toast.js';import {ToastProvider,Toast,ToastTitle,ToastDescription,ToastClose,ToastViewport}from'./toast.js';function Toaster() {
|
|
2
|
+
const {
|
|
3
|
+
toasts
|
|
4
|
+
} = useToast();
|
|
5
|
+
return jsxs(ToastProvider, {
|
|
6
|
+
children: [toasts.map(function ({
|
|
7
|
+
id,
|
|
8
|
+
title,
|
|
9
|
+
description,
|
|
10
|
+
action,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
return jsxs(Toast, {
|
|
14
|
+
...props,
|
|
15
|
+
children: [jsxs("div", {
|
|
16
|
+
className: "grid gap-1",
|
|
17
|
+
children: [title && jsx(ToastTitle, {
|
|
18
|
+
children: title
|
|
19
|
+
}), description && jsx(ToastDescription, {
|
|
20
|
+
children: description
|
|
21
|
+
})]
|
|
22
|
+
}), action, jsx(ToastClose, {})]
|
|
23
|
+
}, id);
|
|
24
|
+
}), jsx(ToastViewport, {})]
|
|
25
|
+
});
|
|
26
|
+
}export{Toaster};//# sourceMappingURL=toaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: {
|
|
5
|
+
variant?: "default" | "outline";
|
|
6
|
+
size?: "default" | "sm" | "lg";
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
|
+
variant?: "default" | "outline";
|
|
10
|
+
size?: "default" | "sm" | "lg";
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
13
|
+
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAU7D,QAAA,MAAM,WAAW;;;0GAOf,CAAC;AAIH,QAAA,MAAM,eAAe;;;4GAqBnB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import*as ToggleGroupPrimitive from'@radix-ui/react-toggle-group';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';import {toggleVariants}from'./toggle.js';const ToggleGroupContext = React.createContext({
|
|
2
|
+
size: 'default',
|
|
3
|
+
variant: 'default'
|
|
4
|
+
});
|
|
5
|
+
const ToggleGroup = React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
variant,
|
|
8
|
+
size,
|
|
9
|
+
children,
|
|
10
|
+
...props
|
|
11
|
+
}, ref) => jsx(ToggleGroupPrimitive.Root, {
|
|
12
|
+
ref: ref,
|
|
13
|
+
className: cn('flex items-center justify-center gap-1', className),
|
|
14
|
+
...props,
|
|
15
|
+
children: jsx(ToggleGroupContext.Provider, {
|
|
16
|
+
value: {
|
|
17
|
+
variant,
|
|
18
|
+
size
|
|
19
|
+
},
|
|
20
|
+
children: children
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
24
|
+
const ToggleGroupItem = React.forwardRef(({
|
|
25
|
+
className,
|
|
26
|
+
children,
|
|
27
|
+
variant,
|
|
28
|
+
size,
|
|
29
|
+
...props
|
|
30
|
+
}, ref) => {
|
|
31
|
+
const context = React.useContext(ToggleGroupContext);
|
|
32
|
+
return jsx(ToggleGroupPrimitive.Item, {
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: cn(toggleVariants({
|
|
35
|
+
variant: context.variant || variant,
|
|
36
|
+
size: context.size || size
|
|
37
|
+
}), className),
|
|
38
|
+
...props,
|
|
39
|
+
children: children
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;export{ToggleGroup,ToggleGroupItem};//# sourceMappingURL=toggle-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.js","sources":["../../src/shardui/toggle-group.tsx"],"sourcesContent":[null],"names":[],"mappings":";;AAuBA,EAAA;;;;AAyBA,EAAA,OAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const toggleVariants: (props?: {
|
|
5
|
+
variant?: "default" | "outline";
|
|
6
|
+
size?: "default" | "sm" | "lg";
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
8
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
|
+
variant?: "default" | "outline";
|
|
10
|
+
size?: "default" | "sm" | "lg";
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export { Toggle, toggleVariants };
|
|
13
|
+
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;iEAmBnB,CAAC;AAEF,QAAA,MAAM,MAAM;;;4GAKV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import*as TogglePrimitive from'@radix-ui/react-toggle';import {cva}from'class-variance-authority';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const toggleVariants = cva('inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground 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=on]:bg-accent data-[state=on]:text-accent-foreground', {
|
|
2
|
+
variants: {
|
|
3
|
+
variant: {
|
|
4
|
+
default: 'bg-transparent',
|
|
5
|
+
outline: 'border border-input bg-transparent hover:bg-accent hover:text-accent-foreground'
|
|
6
|
+
},
|
|
7
|
+
size: {
|
|
8
|
+
default: 'h-10 px-3',
|
|
9
|
+
sm: 'h-9 px-2.5',
|
|
10
|
+
lg: 'h-11 px-5'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: 'default',
|
|
15
|
+
size: 'default'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const Toggle = React.forwardRef(({
|
|
19
|
+
className,
|
|
20
|
+
variant,
|
|
21
|
+
size,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => jsx(TogglePrimitive.Root, {
|
|
24
|
+
ref: ref,
|
|
25
|
+
className: cn(toggleVariants({
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
className
|
|
29
|
+
})),
|
|
30
|
+
...props
|
|
31
|
+
}));
|
|
32
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;export{Toggle,toggleVariants};//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","sources":["../../src/shardui/toggle.tsx"],"sourcesContent":[null],"names":[],"mappings":";;AA2BA,IAAA;;;;AASA,IAAA,IAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
8
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/shardui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAElD,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAalB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import*as React from'react';import*as TooltipPrimitive from'@radix-ui/react-tooltip';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react';const TooltipProvider = TooltipPrimitive.Provider;
|
|
2
|
+
const Tooltip = TooltipPrimitive.Root;
|
|
3
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4
|
+
const TooltipContent = React.forwardRef(({
|
|
5
|
+
className,
|
|
6
|
+
sideOffset = 4,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => jsx(TooltipPrimitive.Content, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
sideOffset: sideOffset,
|
|
11
|
+
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),
|
|
12
|
+
...props
|
|
13
|
+
}));
|
|
14
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger};//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../src/shardui/tooltip.tsx"],"sourcesContent":[null],"names":[],"mappings":"6NASA,MAAA,eAAoB,GAAA,gBAAA,CAAA;AAEpB,MAAA,OAAA,GAAoB,gBAAA,CAAA;AAgBb,MAAA,cAAW,GAAA,gBAA8B,CAAA;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../src/shardui/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-mobile.tsx"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAc1B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import*as React from'react';const MOBILE_BREAKPOINT = 768;
|
|
2
|
+
function useIsMobile() {
|
|
3
|
+
const [isMobile, setIsMobile] = React.useState(undefined);
|
|
4
|
+
React.useEffect(() => {
|
|
5
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
6
|
+
const onChange = () => {
|
|
7
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
8
|
+
};
|
|
9
|
+
mql.addEventListener('change', onChange);
|
|
10
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
11
|
+
return () => mql.removeEventListener('change', onChange);
|
|
12
|
+
}, []);
|
|
13
|
+
return !!isMobile;
|
|
14
|
+
}export{useIsMobile};//# sourceMappingURL=use-mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ToastActionElement, ToastProps } from '../../shardui/toast';
|
|
3
|
+
type ToasterToast = ToastProps & {
|
|
4
|
+
id: string;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
action?: ToastActionElement;
|
|
8
|
+
};
|
|
9
|
+
declare const actionTypes: {
|
|
10
|
+
readonly ADD_TOAST: "ADD_TOAST";
|
|
11
|
+
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
12
|
+
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
13
|
+
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
14
|
+
};
|
|
15
|
+
type ActionType = typeof actionTypes;
|
|
16
|
+
type Action = {
|
|
17
|
+
type: ActionType['ADD_TOAST'];
|
|
18
|
+
toast: ToasterToast;
|
|
19
|
+
} | {
|
|
20
|
+
type: ActionType['UPDATE_TOAST'];
|
|
21
|
+
toast: Partial<ToasterToast>;
|
|
22
|
+
} | {
|
|
23
|
+
type: ActionType['DISMISS_TOAST'];
|
|
24
|
+
toastId?: ToasterToast['id'];
|
|
25
|
+
} | {
|
|
26
|
+
type: ActionType['REMOVE_TOAST'];
|
|
27
|
+
toastId?: ToasterToast['id'];
|
|
28
|
+
};
|
|
29
|
+
interface State {
|
|
30
|
+
toasts: ToasterToast[];
|
|
31
|
+
}
|
|
32
|
+
export declare const reducer: (state: State, action: Action) => State;
|
|
33
|
+
type Toast = Omit<ToasterToast, 'id'>;
|
|
34
|
+
declare function toast({ ...props }: Toast): {
|
|
35
|
+
id: string;
|
|
36
|
+
dismiss: () => void;
|
|
37
|
+
update: (props: ToasterToast) => void;
|
|
38
|
+
};
|
|
39
|
+
declare function useToast(): {
|
|
40
|
+
toast: typeof toast;
|
|
41
|
+
dismiss: (toastId?: string) => void;
|
|
42
|
+
toasts: ToasterToast[];
|
|
43
|
+
};
|
|
44
|
+
export { useToast, toast };
|
|
45
|
+
//# sourceMappingURL=use-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAK1E,KAAK,YAAY,GAAG,UAAU,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;CAKP,CAAC;AASX,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAErC,KAAK,MAAM,GACL;IACI,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;CACvB,GACD;IACI,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC,GACD;IACI,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAChC,GACD;IACI,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAChC,CAAC;AAER,UAAU,KAAK;IACX,MAAM,EAAE,YAAY,EAAE,CAAC;CAC1B;AAoBD,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,EAAE,QAAQ,MAAM,KAAG,KAmDtD,CAAC;AAaF,KAAK,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAEtC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK;;;oBAGP,YAAY;EAwBtC;AAED,iBAAS,QAAQ;;wBAgBW,MAAM;YApItB,YAAY,EAAE;EAsIzB;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC"}
|