@admin-layout/tailwind-ui 12.0.16-alpha.91 → 12.2.1-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 +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +6 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +139 -157
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +2 -1
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +18 -26
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +2 -1
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +18 -26
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +2 -1
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +18 -26
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +2 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +19 -24
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
- package/lib/components/OTP/OTPInput.js +30 -32
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +55 -75
- package/lib/components/OTP/OTPVerification.js.map +1 -1
- package/lib/components/OTP/SingleInput.js +2 -2
- package/lib/components/OTP/SingleInput.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +22 -29
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +7 -8
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +2 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.d.ts +2 -1
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +71 -92
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +3 -2
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +34 -40
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +2 -1
- package/lib/components/Search/SearchInput.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.js +13 -14
- package/lib/components/Search/SearchInput.js.map +1 -1
- package/lib/components/Select/Select.d.ts +6 -6
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +45 -60
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Spin/index.js +11 -14
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +4 -5
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +24 -27
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +37 -46
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/shardui/accordion.js +16 -20
- package/lib/shardui/accordion.js.map +1 -1
- package/lib/shardui/alert-dialog.d.ts +2 -2
- package/lib/shardui/alert-dialog.js +13 -15
- package/lib/shardui/alert-dialog.js.map +1 -1
- package/lib/shardui/alert.d.ts +1 -1
- package/lib/shardui/alert.d.ts.map +1 -1
- package/lib/shardui/alert.js +4 -4
- package/lib/shardui/alert.js.map +1 -1
- package/lib/shardui/avatar.js +4 -4
- package/lib/shardui/avatar.js.map +1 -1
- package/lib/shardui/badge.d.ts +2 -2
- package/lib/shardui/badge.d.ts.map +1 -1
- package/lib/shardui/badge.js +2 -2
- package/lib/shardui/badge.js.map +1 -1
- package/lib/shardui/breadcrumb.d.ts +2 -2
- package/lib/shardui/breadcrumb.js +16 -19
- package/lib/shardui/breadcrumb.js.map +1 -1
- package/lib/shardui/button.d.ts +1 -1
- package/lib/shardui/button.d.ts.map +1 -1
- package/lib/shardui/button.js +2 -2
- package/lib/shardui/button.js.map +1 -1
- package/lib/shardui/calendar.d.ts +1 -1
- package/lib/shardui/calendar.d.ts.map +1 -1
- package/lib/shardui/calendar.js +4 -4
- package/lib/shardui/card.js +7 -7
- package/lib/shardui/card.js.map +1 -1
- package/lib/shardui/carousel.js +33 -40
- package/lib/shardui/carousel.js.map +1 -1
- package/lib/shardui/chart.d.ts +1 -1
- package/lib/shardui/chart.d.ts.map +1 -1
- package/lib/shardui/chart.js +66 -81
- package/lib/shardui/chart.js.map +1 -1
- package/lib/shardui/checkbox.js +8 -10
- package/lib/shardui/checkbox.js.map +1 -1
- package/lib/shardui/command.d.ts +2 -2
- package/lib/shardui/command.d.ts.map +1 -1
- package/lib/shardui/command.js +24 -28
- package/lib/shardui/command.js.map +1 -1
- package/lib/shardui/context-menu.d.ts +1 -1
- package/lib/shardui/context-menu.js +30 -41
- package/lib/shardui/context-menu.js.map +1 -1
- package/lib/shardui/dialog.d.ts +2 -2
- package/lib/shardui/dialog.js +17 -22
- package/lib/shardui/dialog.js.map +1 -1
- package/lib/shardui/drawer.d.ts +3 -3
- package/lib/shardui/drawer.js +14 -17
- package/lib/shardui/drawer.js.map +1 -1
- package/lib/shardui/dropdown-menu.d.ts +1 -1
- package/lib/shardui/dropdown-menu.js +31 -42
- package/lib/shardui/dropdown-menu.js.map +1 -1
- package/lib/shardui/form.d.ts +1 -1
- package/lib/shardui/form.d.ts.map +1 -1
- package/lib/shardui/form.js +19 -22
- package/lib/shardui/form.js.map +1 -1
- package/lib/shardui/hover-card.js +2 -2
- package/lib/shardui/hover-card.js.map +1 -1
- package/lib/shardui/input-otp.js +13 -16
- package/lib/shardui/input-otp.js.map +1 -1
- package/lib/shardui/input.js +2 -2
- package/lib/shardui/input.js.map +1 -1
- package/lib/shardui/label.d.ts +1 -1
- package/lib/shardui/label.d.ts.map +1 -1
- package/lib/shardui/label.js +2 -2
- package/lib/shardui/label.js.map +1 -1
- package/lib/shardui/menubar.d.ts +1 -1
- package/lib/shardui/menubar.js +35 -46
- package/lib/shardui/menubar.js.map +1 -1
- package/lib/shardui/navigation-menu.d.ts +1 -1
- package/lib/shardui/navigation-menu.d.ts.map +1 -1
- package/lib/shardui/navigation-menu.js +24 -28
- package/lib/shardui/navigation-menu.js.map +1 -1
- package/lib/shardui/pagination.d.ts +5 -5
- package/lib/shardui/pagination.js +22 -30
- package/lib/shardui/pagination.js.map +1 -1
- package/lib/shardui/popover.js +8 -10
- package/lib/shardui/popover.js.map +1 -1
- package/lib/shardui/progress.js +9 -10
- package/lib/shardui/progress.js.map +1 -1
- package/lib/shardui/radio-group.js +9 -11
- package/lib/shardui/radio-group.js.map +1 -1
- package/lib/shardui/resizable.d.ts +5 -4
- package/lib/shardui/resizable.d.ts.map +1 -1
- package/lib/shardui/resizable.js +9 -11
- package/lib/shardui/resizable.js.map +1 -1
- package/lib/shardui/scroll-area.js +11 -14
- package/lib/shardui/scroll-area.js.map +1 -1
- package/lib/shardui/select.js +35 -49
- package/lib/shardui/select.js.map +1 -1
- package/lib/shardui/separator.js +2 -2
- package/lib/shardui/separator.js.map +1 -1
- package/lib/shardui/sheet.d.ts +3 -3
- package/lib/shardui/sheet.d.ts.map +1 -1
- package/lib/shardui/sheet.js +19 -24
- package/lib/shardui/sheet.js.map +1 -1
- package/lib/shardui/sidebar.d.ts +1 -1
- package/lib/shardui/sidebar.d.ts.map +1 -1
- package/lib/shardui/sidebar.js +88 -104
- package/lib/shardui/sidebar.js.map +1 -1
- package/lib/shardui/skeleton.d.ts +2 -1
- package/lib/shardui/skeleton.d.ts.map +1 -1
- package/lib/shardui/skeleton.js +2 -2
- package/lib/shardui/skeleton.js.map +1 -1
- package/lib/shardui/slider.js +10 -12
- package/lib/shardui/slider.js.map +1 -1
- package/lib/shardui/sonner.d.ts +2 -1
- package/lib/shardui/sonner.d.ts.map +1 -1
- package/lib/shardui/sonner.js +2 -2
- package/lib/shardui/sonner.js.map +1 -1
- package/lib/shardui/switch.js +6 -7
- package/lib/shardui/switch.js.map +1 -1
- package/lib/shardui/table.js +15 -16
- package/lib/shardui/table.js.map +1 -1
- package/lib/shardui/tabs.js +4 -4
- package/lib/shardui/tabs.js.map +1 -1
- package/lib/shardui/textarea.js +2 -2
- package/lib/shardui/textarea.js.map +1 -1
- package/lib/shardui/toast.d.ts +1 -1
- package/lib/shardui/toast.d.ts.map +1 -1
- package/lib/shardui/toast.js +11 -12
- package/lib/shardui/toast.js.map +1 -1
- package/lib/shardui/toaster.d.ts +2 -1
- package/lib/shardui/toaster.d.ts.map +1 -1
- package/lib/shardui/toaster.js +14 -21
- package/lib/shardui/toaster.js.map +1 -1
- package/lib/shardui/toggle-group.d.ts +2 -2
- package/lib/shardui/toggle-group.d.ts.map +1 -1
- package/lib/shardui/toggle-group.js +12 -15
- package/lib/shardui/toggle-group.js.map +1 -1
- package/lib/shardui/toggle.d.ts +2 -2
- package/lib/shardui/toggle.d.ts.map +1 -1
- package/lib/shardui/toggle.js +2 -2
- package/lib/shardui/toggle.js.map +1 -1
- package/lib/shardui/tooltip.js +2 -2
- package/lib/shardui/tooltip.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
children,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
-
}));
|
|
8
|
+
...props
|
|
9
|
+
}, children, React.createElement(NavigationMenuViewport, null)));
|
|
11
10
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
12
11
|
const NavigationMenuList = React.forwardRef(({
|
|
13
12
|
className,
|
|
14
13
|
...props
|
|
15
|
-
}, ref) =>
|
|
14
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.List, {
|
|
16
15
|
ref: ref,
|
|
17
16
|
className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
|
|
18
17
|
...props
|
|
@@ -24,20 +23,19 @@ const NavigationMenuTrigger = React.forwardRef(({
|
|
|
24
23
|
className,
|
|
25
24
|
children,
|
|
26
25
|
...props
|
|
27
|
-
}, ref) =>
|
|
26
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Trigger, {
|
|
28
27
|
ref: ref,
|
|
29
28
|
className: cn(navigationMenuTriggerStyle(), 'group', className),
|
|
30
|
-
...props
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}));
|
|
29
|
+
...props
|
|
30
|
+
}, children, ' ', React.createElement(ChevronDown, {
|
|
31
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
32
|
+
"aria-hidden": "true"
|
|
33
|
+
})));
|
|
36
34
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
37
35
|
const NavigationMenuContent = React.forwardRef(({
|
|
38
36
|
className,
|
|
39
37
|
...props
|
|
40
|
-
}, ref) =>
|
|
38
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Content, {
|
|
41
39
|
ref: ref,
|
|
42
40
|
className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
|
|
43
41
|
...props
|
|
@@ -47,24 +45,22 @@ const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
|
47
45
|
const NavigationMenuViewport = React.forwardRef(({
|
|
48
46
|
className,
|
|
49
47
|
...props
|
|
50
|
-
}, ref) =>
|
|
51
|
-
className: cn('absolute left-0 top-full flex justify-center')
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}));
|
|
48
|
+
}, ref) => React.createElement("div", {
|
|
49
|
+
className: cn('absolute left-0 top-full flex justify-center')
|
|
50
|
+
}, React.createElement(NavigationMenuPrimitive.Viewport, {
|
|
51
|
+
className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
|
|
52
|
+
ref: ref,
|
|
53
|
+
...props
|
|
54
|
+
})));
|
|
58
55
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
59
56
|
const NavigationMenuIndicator = React.forwardRef(({
|
|
60
57
|
className,
|
|
61
58
|
...props
|
|
62
|
-
}, ref) =>
|
|
59
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Indicator, {
|
|
63
60
|
ref: ref,
|
|
64
61
|
className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
|
|
65
|
-
...props
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}));
|
|
62
|
+
...props
|
|
63
|
+
}, React.createElement("div", {
|
|
64
|
+
className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
|
|
65
|
+
})));
|
|
70
66
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"6RAoCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAA,CAA0B,CAAA;AAIhC,EAAA,SAAA;AAkBA,EAAA,QAAA;AAeA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAA,CAAA,uBAAsB,CAAA,IAAA,EAAA;AAiB5B,EAAA,GAAA,EAAA,GAAA;AAiBA,EAAA,SACI,EAAA,EAAA,CAAA,iEAGA,EAAA,SAAkB,CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps } from './button';
|
|
3
3
|
declare const Pagination: {
|
|
4
|
-
({ className, ...props }: React.ComponentProps<"nav">):
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -10,19 +10,19 @@ type PaginationLinkProps = {
|
|
|
10
10
|
isActive?: boolean;
|
|
11
11
|
} & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
|
|
12
12
|
declare const PaginationLink: {
|
|
13
|
-
({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
13
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare const PaginationPrevious: {
|
|
17
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
17
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
declare const PaginationNext: {
|
|
21
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
21
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
declare const PaginationEllipsis: {
|
|
25
|
-
({ className, ...props }: React.ComponentProps<"span">):
|
|
25
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}) =>
|
|
4
|
+
}) => React.createElement("nav", {
|
|
5
5
|
role: "navigation",
|
|
6
6
|
"aria-label": "pagination",
|
|
7
7
|
className: cn('mx-auto flex w-full justify-center', className),
|
|
@@ -11,7 +11,7 @@ Pagination.displayName = 'Pagination';
|
|
|
11
11
|
const PaginationContent = React.forwardRef(({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}, ref) =>
|
|
14
|
+
}, ref) => React.createElement("ul", {
|
|
15
15
|
ref: ref,
|
|
16
16
|
className: cn('flex flex-row items-center gap-1', className),
|
|
17
17
|
...props
|
|
@@ -20,7 +20,7 @@ PaginationContent.displayName = 'PaginationContent';
|
|
|
20
20
|
const PaginationItem = React.forwardRef(({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}, ref) =>
|
|
23
|
+
}, ref) => React.createElement("li", {
|
|
24
24
|
ref: ref,
|
|
25
25
|
className: cn('', className),
|
|
26
26
|
...props
|
|
@@ -31,7 +31,7 @@ const PaginationLink = ({
|
|
|
31
31
|
isActive,
|
|
32
32
|
size = 'icon',
|
|
33
33
|
...props
|
|
34
|
-
}) =>
|
|
34
|
+
}) => React.createElement("a", {
|
|
35
35
|
"aria-current": isActive ? 'page' : undefined,
|
|
36
36
|
className: cn(buttonVariants({
|
|
37
37
|
variant: isActive ? 'outline' : 'ghost',
|
|
@@ -43,45 +43,37 @@ PaginationLink.displayName = 'PaginationLink';
|
|
|
43
43
|
const PaginationPrevious = ({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}) =>
|
|
46
|
+
}) => React.createElement(PaginationLink, {
|
|
47
47
|
"aria-label": "Go to previous page",
|
|
48
48
|
size: "default",
|
|
49
49
|
className: cn('gap-1 pl-2.5', className),
|
|
50
|
-
...props
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children: "Previous"
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
50
|
+
...props
|
|
51
|
+
}, React.createElement(ChevronLeft, {
|
|
52
|
+
className: "h-4 w-4"
|
|
53
|
+
}), React.createElement("span", null, "Previous"));
|
|
57
54
|
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
58
55
|
const PaginationNext = ({
|
|
59
56
|
className,
|
|
60
57
|
...props
|
|
61
|
-
}) =>
|
|
58
|
+
}) => React.createElement(PaginationLink, {
|
|
62
59
|
"aria-label": "Go to next page",
|
|
63
60
|
size: "default",
|
|
64
61
|
className: cn('gap-1 pr-2.5', className),
|
|
65
|
-
...props
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className: "h-4 w-4"
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
62
|
+
...props
|
|
63
|
+
}, React.createElement("span", null, "Next"), React.createElement(ChevronRight, {
|
|
64
|
+
className: "h-4 w-4"
|
|
65
|
+
}));
|
|
72
66
|
PaginationNext.displayName = 'PaginationNext';
|
|
73
67
|
const PaginationEllipsis = ({
|
|
74
68
|
className,
|
|
75
69
|
...props
|
|
76
|
-
}) =>
|
|
70
|
+
}) => React.createElement("span", {
|
|
77
71
|
"aria-hidden": true,
|
|
78
72
|
className: cn('flex h-9 w-9 items-center justify-center', className),
|
|
79
|
-
...props
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
})]
|
|
86
|
-
});
|
|
73
|
+
...props
|
|
74
|
+
}, React.createElement(MoreHorizontal, {
|
|
75
|
+
className: "h-4 w-4"
|
|
76
|
+
}), React.createElement("span", {
|
|
77
|
+
className: "sr-only"
|
|
78
|
+
}, "More pages"));
|
|
87
79
|
PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[],"mappings":";EAaE,SAAA;AAGF,EAAA,GAAA;AAOA,CAAA,KAAA,KAAA,CAAA,aAAM,CAAA,KAAc,EAAA;AAKpB,EAAA;cACa,EAAE,YAAQ;AACtB,EAAA,SAAQ,EAAA,EAAA,CAAA,oCACe,EAAC,SAAK,CAAA;AAE9B,EAAA,GAAA;;;AAYE,MAAA,iBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAAqD,EAAA,GAAA;;EAUnD,GAAA,EAAA,GAAA;AAGF,EAAA,aAAM,CAAA,kCAAc,EAAA,SAAA,CAAA;AAA6B,EAAA,GAAA;;iBAK/C,CAAA,WAAA,GAAA,mBAAA;AAGF,MAAA,cAAM,GAAA,KAAA,CAAA,UAAkB,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAKpD,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/popover.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
|
|
2
2
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3
3
|
const PopoverContent = React.forwardRef(({
|
|
4
4
|
className,
|
|
5
5
|
align = 'center',
|
|
6
6
|
sideOffset = 4,
|
|
7
7
|
...props
|
|
8
|
-
}, ref) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})
|
|
16
|
-
}));
|
|
8
|
+
}, ref) => React.createElement(PopoverPrimitive.Portal, null, React.createElement(PopoverPrimitive.Content, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
align: align,
|
|
11
|
+
sideOffset: sideOffset,
|
|
12
|
+
className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
13
|
+
...props
|
|
14
|
+
})));
|
|
17
15
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"4LAOA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAEpB,MAAA,cAAM,GAAA,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA,CAAA;;;;;;;;;;;;"}
|
package/lib/shardui/progress.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
value,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(ProgressPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}));
|
|
8
|
+
...props
|
|
9
|
+
}, React.createElement(ProgressPrimitive.Indicator, {
|
|
10
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
11
|
+
style: {
|
|
12
|
+
transform: `translateX(-${100 - (value || 0)}%)`
|
|
13
|
+
}
|
|
14
|
+
})));
|
|
16
15
|
Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../../src/shardui/progress.tsx"],"sourcesContent":[null],"names":[],"mappings":"8LAsBA,MAAA,QAAS,GAAQ,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
4
|
}, ref) => {
|
|
5
|
-
return
|
|
5
|
+
return React.createElement(RadioGroupPrimitive.Root, {
|
|
6
6
|
className: cn('grid gap-2', className),
|
|
7
7
|
...props,
|
|
8
8
|
ref: ref
|
|
@@ -13,16 +13,14 @@ const RadioGroupItem = React.forwardRef(({
|
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
15
|
}, ref) => {
|
|
16
|
-
return
|
|
16
|
+
return React.createElement(RadioGroupPrimitive.Item, {
|
|
17
17
|
ref: ref,
|
|
18
18
|
className: cn('aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
19
|
-
...props
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
});
|
|
19
|
+
...props
|
|
20
|
+
}, React.createElement(RadioGroupPrimitive.Indicator, {
|
|
21
|
+
className: "flex items-center justify-center"
|
|
22
|
+
}, React.createElement(Circle, {
|
|
23
|
+
className: "h-2.5 w-2.5 fill-current text-current"
|
|
24
|
+
})));
|
|
27
25
|
});
|
|
28
26
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../src/shardui/radio-group.tsx"],"sourcesContent":[null],"names":[],"mappings":"qOAmCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
|
-
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) =>
|
|
3
|
-
declare const ResizablePanel:
|
|
3
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
5
|
className?: string | undefined;
|
|
5
6
|
collapsedSize?: number | undefined;
|
|
6
7
|
collapsible?: boolean | undefined;
|
|
@@ -16,9 +17,9 @@ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
16
17
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
17
18
|
} & {
|
|
18
19
|
children?: import("react").ReactNode;
|
|
19
|
-
} &
|
|
20
|
+
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
20
21
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
21
22
|
withHandle?: boolean;
|
|
22
|
-
}) =>
|
|
23
|
+
}) => React.JSX.Element;
|
|
23
24
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
24
25
|
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,sBAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;kEAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,sBAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/shardui/resizable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {GripVertical}from'lucide-react';import React__default from'react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}) =>
|
|
4
|
+
}) => React__default.createElement(ResizablePrimitive.PanelGroup, {
|
|
5
5
|
className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
|
|
6
6
|
...props
|
|
7
7
|
});
|
|
@@ -10,13 +10,11 @@ const ResizableHandle = ({
|
|
|
10
10
|
withHandle,
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}) =>
|
|
13
|
+
}) => React__default.createElement(ResizablePrimitive.PanelResizeHandle, {
|
|
14
14
|
className: cn('relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
|
|
15
|
-
...props
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
});export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
|
|
15
|
+
...props
|
|
16
|
+
}, withHandle && React__default.createElement("div", {
|
|
17
|
+
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"
|
|
18
|
+
}, React__default.createElement(GripVertical, {
|
|
19
|
+
className: "h-2.5 w-2.5"
|
|
20
|
+
})));export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,EAAA,SAAA,EAAA;iBAKI,CAAA,aAAa,CAAA,YAAQ,EAAA;AACxB,EAAA,SAAA,EAAA;AAgBD,CAAA,CAAA,CAAA"}
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
children,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(ScrollAreaPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative overflow-hidden', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}), jsx(ScrollBar, {}), jsx(ScrollAreaPrimitive.Corner, {})]
|
|
13
|
-
}));
|
|
8
|
+
...props
|
|
9
|
+
}, React.createElement(ScrollAreaPrimitive.Viewport, {
|
|
10
|
+
className: "h-full w-full rounded-[inherit]"
|
|
11
|
+
}, children), React.createElement(ScrollBar, null), React.createElement(ScrollAreaPrimitive.Corner, null)));
|
|
14
12
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
15
13
|
const ScrollBar = React.forwardRef(({
|
|
16
14
|
className,
|
|
17
15
|
orientation = 'vertical',
|
|
18
16
|
...props
|
|
19
|
-
}, ref) =>
|
|
17
|
+
}, ref) => React.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
20
18
|
ref: ref,
|
|
21
19
|
orientation: orientation,
|
|
22
20
|
className: cn('flex touch-none select-none transition-colors', orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]', orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]', className),
|
|
23
|
-
...props
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}));
|
|
21
|
+
...props
|
|
22
|
+
}, React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
23
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
24
|
+
})));
|
|
28
25
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;export{ScrollArea,ScrollBar};//# sourceMappingURL=scroll-area.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"mMAmBA,MAAA,UAAM,GAAA,KAAS,CAAA,UAAA,CAAA,CAAA;AAoBf,EAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/select.js
CHANGED
|
@@ -1,68 +1,60 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
|
|
2
2
|
const SelectGroup = SelectPrimitive.Group;
|
|
3
3
|
const SelectValue = SelectPrimitive.Value;
|
|
4
4
|
const SelectTrigger = React.forwardRef(({
|
|
5
5
|
className,
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
8
|
-
}, ref) =>
|
|
8
|
+
}, ref) => React.createElement(SelectPrimitive.Trigger, {
|
|
9
9
|
ref: ref,
|
|
10
10
|
className: cn('flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className),
|
|
11
|
-
...props
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})]
|
|
18
|
-
}));
|
|
11
|
+
...props
|
|
12
|
+
}, children, React.createElement(SelectPrimitive.Icon, {
|
|
13
|
+
asChild: true
|
|
14
|
+
}, React.createElement(ChevronDown, {
|
|
15
|
+
className: "h-4 w-4 opacity-50"
|
|
16
|
+
}))));
|
|
19
17
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
20
18
|
const SelectScrollUpButton = React.forwardRef(({
|
|
21
19
|
className,
|
|
22
20
|
...props
|
|
23
|
-
}, ref) =>
|
|
21
|
+
}, ref) => React.createElement(SelectPrimitive.ScrollUpButton, {
|
|
24
22
|
ref: ref,
|
|
25
23
|
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
26
|
-
...props
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}));
|
|
24
|
+
...props
|
|
25
|
+
}, React.createElement(ChevronUp, {
|
|
26
|
+
className: "h-4 w-4"
|
|
27
|
+
})));
|
|
31
28
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
32
29
|
const SelectScrollDownButton = React.forwardRef(({
|
|
33
30
|
className,
|
|
34
31
|
...props
|
|
35
|
-
}, ref) =>
|
|
32
|
+
}, ref) => React.createElement(SelectPrimitive.ScrollDownButton, {
|
|
36
33
|
ref: ref,
|
|
37
34
|
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
38
|
-
...props
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}));
|
|
35
|
+
...props
|
|
36
|
+
}, React.createElement(ChevronDown, {
|
|
37
|
+
className: "h-4 w-4"
|
|
38
|
+
})));
|
|
43
39
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
44
40
|
const SelectContent = React.forwardRef(({
|
|
45
41
|
className,
|
|
46
42
|
children,
|
|
47
43
|
position = 'popper',
|
|
48
44
|
...props
|
|
49
|
-
}, ref) =>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
children: children
|
|
58
|
-
}), jsx(SelectScrollDownButton, {})]
|
|
59
|
-
})
|
|
60
|
-
}));
|
|
45
|
+
}, ref) => React.createElement(SelectPrimitive.Portal, null, React.createElement(SelectPrimitive.Content, {
|
|
46
|
+
ref: ref,
|
|
47
|
+
className: cn('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
|
|
48
|
+
position: position,
|
|
49
|
+
...props
|
|
50
|
+
}, React.createElement(SelectScrollUpButton, null), React.createElement(SelectPrimitive.Viewport, {
|
|
51
|
+
className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]')
|
|
52
|
+
}, children), React.createElement(SelectScrollDownButton, null))));
|
|
61
53
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
62
54
|
const SelectLabel = React.forwardRef(({
|
|
63
55
|
className,
|
|
64
56
|
...props
|
|
65
|
-
}, ref) =>
|
|
57
|
+
}, ref) => React.createElement(SelectPrimitive.Label, {
|
|
66
58
|
ref: ref,
|
|
67
59
|
className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
|
|
68
60
|
...props
|
|
@@ -72,26 +64,20 @@ const SelectItem = React.forwardRef(({
|
|
|
72
64
|
className,
|
|
73
65
|
children,
|
|
74
66
|
...props
|
|
75
|
-
}, ref) =>
|
|
67
|
+
}, ref) => React.createElement(SelectPrimitive.Item, {
|
|
76
68
|
ref: ref,
|
|
77
69
|
className: cn('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
78
|
-
...props
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
}), jsx(SelectPrimitive.ItemText, {
|
|
87
|
-
children: children
|
|
88
|
-
})]
|
|
89
|
-
}));
|
|
70
|
+
...props
|
|
71
|
+
}, React.createElement("span", {
|
|
72
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
73
|
+
}, React.createElement(SelectPrimitive.ItemIndicator, null, React.createElement(Check, {
|
|
74
|
+
className: "h-4 w-4"
|
|
75
|
+
}))), React.createElement(SelectPrimitive.ItemText, null, children)));
|
|
90
76
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
91
77
|
const SelectSeparator = React.forwardRef(({
|
|
92
78
|
className,
|
|
93
79
|
...props
|
|
94
|
-
}, ref) =>
|
|
80
|
+
}, ref) => React.createElement(SelectPrimitive.Separator, {
|
|
95
81
|
ref: ref,
|
|
96
82
|
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
97
83
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"iPAUA,MAAA,MAAA,GAAM,eAAW,CAAA;AAEjB,MAAA,WAAM,GAAA,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,aAAM,GAAA,KAAA,CAAA,UAAsB,CAAA,CAAA;AAc5B,EAAA,SAAA;AAgCA,EAAA,QAAA;AAQA,EAAA,GAAA;AAuBA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAe,CAAA,eAAA,CAAA,OAAA,EAAA;AAQrB,EAAA,GAAA,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/separator.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
orientation = 'horizontal',
|
|
4
4
|
decorative = true,
|
|
5
5
|
...props
|
|
6
|
-
}, ref) =>
|
|
6
|
+
}, ref) => React.createElement(SeparatorPrimitive.Root, {
|
|
7
7
|
ref: ref,
|
|
8
8
|
decorative: decorative,
|
|
9
9
|
orientation: orientation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"separator.js","sources":["../../src/shardui/separator.tsx"],"sourcesContent":[null],"names":[],"mappings":"gMAuBA,MAAA,SAAS,GAAS,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}
|