@lssm/lib.ui-kit 1.7.3 → 1.9.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/README.md +82 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +27 -16
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -1
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -2
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/accordion.js +4 -4
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +11 -11
- package/dist/ui/alert-dialog.js +9 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -3
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts +5 -5
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +3 -3
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +6 -6
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.d.ts +4 -4
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/collapsible.d.ts +8 -8
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts +10 -10
- package/dist/ui/dialog.js +7 -7
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +9 -9
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +6 -6
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/fab.d.ts +3 -3
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +10 -11
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +5 -6
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/link.d.ts +2 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +1 -1
- package/dist/ui/loading-button.js.map +1 -1
- package/dist/ui/loading-overlay.d.ts +2 -2
- package/dist/ui/loading-overlay.d.ts.map +1 -1
- package/dist/ui/loading-screen.d.ts +2 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +11 -11
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts +10 -10
- package/dist/ui/navigation-menu.js +6 -6
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/page-header.d.ts +4 -4
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/password-strength.d.ts +2 -2
- package/dist/ui/password-strength.d.ts.map +1 -1
- package/dist/ui/popover.d.ts +8 -8
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +1 -1
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +2 -2
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/select.d.ts +13 -13
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +7 -7
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/stack.d.ts +17 -17
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +3 -3
- package/dist/ui/stack.js.map +1 -1
- package/dist/ui/stepper.d.ts +4 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +8 -8
- package/dist/ui/table.js +7 -7
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +11 -11
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +1 -1
- package/dist/ui/text.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +3 -3
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +6 -6
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts +6 -6
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +11 -11
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/useColorScheme.d.ts +2 -2
- package/dist/ui/useColorScheme.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/ui/dialog.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native46 from "react-native";
|
|
3
3
|
import { View, ViewProps } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
5
5
|
import * as DialogPrimitive from "@rn-primitives/dialog";
|
|
6
6
|
|
|
7
7
|
//#region ui/dialog.d.ts
|
|
@@ -12,14 +12,14 @@ declare const Dialog: React$1.ForwardRefExoticComponent<ViewProps & {
|
|
|
12
12
|
defaultOpen?: boolean;
|
|
13
13
|
onOpenChange?: (value: boolean) => void;
|
|
14
14
|
} & React$1.RefAttributes<View>>;
|
|
15
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
15
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<react_native46.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & {
|
|
18
18
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
19
19
|
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
20
20
|
} & React$1.RefAttributes<View>>;
|
|
21
21
|
declare const DialogPortal: typeof DialogPrimitive.Portal;
|
|
22
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<
|
|
22
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<react_native46.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
23
23
|
asChild?: boolean;
|
|
24
24
|
} & {
|
|
25
25
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -32,7 +32,7 @@ declare function DialogOverlayNative({
|
|
|
32
32
|
}: DialogPrimitive.OverlayProps & {
|
|
33
33
|
ref?: React$1.RefObject<DialogPrimitive.OverlayRef>;
|
|
34
34
|
children?: React$1.ReactNode;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
36
36
|
declare const DialogOverlay: typeof DialogOverlayNative;
|
|
37
37
|
declare function DialogContent({
|
|
38
38
|
className,
|
|
@@ -43,27 +43,27 @@ declare function DialogContent({
|
|
|
43
43
|
ref?: React$1.RefObject<DialogPrimitive.ContentRef>;
|
|
44
44
|
className?: string;
|
|
45
45
|
portalHost?: string;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
47
47
|
declare function DialogHeader({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: ViewProps):
|
|
50
|
+
}: ViewProps): react_jsx_runtime91.JSX.Element;
|
|
51
51
|
declare function DialogFooter({
|
|
52
52
|
className,
|
|
53
53
|
...props
|
|
54
|
-
}: ViewProps):
|
|
54
|
+
}: ViewProps): react_jsx_runtime91.JSX.Element;
|
|
55
55
|
declare function DialogTitle({
|
|
56
56
|
className,
|
|
57
57
|
...props
|
|
58
58
|
}: DialogPrimitive.TitleProps & {
|
|
59
59
|
ref?: React$1.RefObject<DialogPrimitive.TitleRef>;
|
|
60
|
-
}):
|
|
60
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
61
61
|
declare function DialogDescription({
|
|
62
62
|
className,
|
|
63
63
|
...props
|
|
64
64
|
}: DialogPrimitive.DescriptionProps & {
|
|
65
65
|
ref?: React$1.RefObject<DialogPrimitive.DescriptionRef>;
|
|
66
|
-
}):
|
|
66
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
69
69
|
//# sourceMappingURL=dialog.d.ts.map
|
package/dist/ui/dialog.js
CHANGED
|
@@ -11,14 +11,14 @@ const Dialog = DialogPrimitive.Root;
|
|
|
11
11
|
const DialogTrigger = DialogPrimitive.Trigger;
|
|
12
12
|
const DialogPortal = DialogPrimitive.Portal;
|
|
13
13
|
const DialogClose = DialogPrimitive.Close;
|
|
14
|
-
function DialogOverlayWeb({ className
|
|
14
|
+
function DialogOverlayWeb({ className, ...props }) {
|
|
15
15
|
const { open } = DialogPrimitive.useRootContext();
|
|
16
16
|
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
17
17
|
className: cn("absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black/80 p-2", open ? "web:animate-in web:fade-in-0" : "web:animate-out web:fade-out-0", className),
|
|
18
18
|
...props
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function DialogOverlayNative({ className, children
|
|
21
|
+
function DialogOverlayNative({ className, children, ...props }) {
|
|
22
22
|
return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
23
23
|
style: StyleSheet.absoluteFill,
|
|
24
24
|
className: cn("flex items-center justify-center bg-black/80 p-2", className),
|
|
@@ -34,7 +34,7 @@ const DialogOverlay = Platform.select({
|
|
|
34
34
|
web: DialogOverlayWeb,
|
|
35
35
|
default: DialogOverlayNative
|
|
36
36
|
});
|
|
37
|
-
function DialogContent({ className, children, portalHost
|
|
37
|
+
function DialogContent({ className, children, portalHost, ...props }) {
|
|
38
38
|
const { open } = DialogPrimitive.useRootContext();
|
|
39
39
|
return /* @__PURE__ */ jsx(DialogPortal, {
|
|
40
40
|
hostName: portalHost,
|
|
@@ -51,25 +51,25 @@ function DialogContent({ className, children, portalHost,...props }) {
|
|
|
51
51
|
}) })
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function DialogHeader({ className
|
|
54
|
+
function DialogHeader({ className, ...props }) {
|
|
55
55
|
return /* @__PURE__ */ jsx(View, {
|
|
56
56
|
className: cn("flex flex-col gap-1.5 text-center sm:text-left", className),
|
|
57
57
|
...props
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function DialogFooter({ className
|
|
60
|
+
function DialogFooter({ className, ...props }) {
|
|
61
61
|
return /* @__PURE__ */ jsx(View, {
|
|
62
62
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
63
63
|
...props
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function DialogTitle({ className
|
|
66
|
+
function DialogTitle({ className, ...props }) {
|
|
67
67
|
return /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
68
68
|
className: cn("native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight", className),
|
|
69
69
|
...props
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function DialogDescription({ className
|
|
72
|
+
function DialogDescription({ className, ...props }) {
|
|
73
73
|
return /* @__PURE__ */ jsx(DialogPrimitive.Description, {
|
|
74
74
|
className: cn("native:text-base text-muted-foreground text-sm", className),
|
|
75
75
|
...props
|
package/dist/ui/dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","names":[],"sources":["../../ui/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from '@rn-primitives/dialog';\nimport * as React from 'react';\nimport { Platform, StyleSheet, View, type ViewProps } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { X } from './icons/X';\nimport { cn } from './utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nfunction DialogOverlayWeb({\n className,\n ...props\n}: DialogPrimitive.OverlayProps & {\n ref?: React.RefObject<DialogPrimitive.OverlayRef>;\n}) {\n const { open } = DialogPrimitive.useRootContext();\n return (\n <DialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black/80 p-2',\n open\n ? 'web:animate-in web:fade-in-0'\n : 'web:animate-out web:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogOverlayNative({\n className,\n children,\n ...props\n}: DialogPrimitive.OverlayProps & {\n ref?: React.RefObject<DialogPrimitive.OverlayRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DialogPrimitive.Overlay\n style={StyleSheet.absoluteFill}\n className={cn(\n 'flex items-center justify-center bg-black/80 p-2',\n className\n )}\n {...props}\n >\n <Animated.View\n entering={FadeIn.duration(150)}\n exiting={FadeOut.duration(150)}\n >\n {children}\n </Animated.View>\n </DialogPrimitive.Overlay>\n );\n}\n\nconst DialogOverlay = Platform.select({\n web: DialogOverlayWeb,\n default: DialogOverlayNative,\n});\n\nfunction DialogContent({\n className,\n children,\n portalHost,\n ...props\n}: DialogPrimitive.ContentProps & {\n ref?: React.RefObject<DialogPrimitive.ContentRef>;\n className?: string;\n portalHost?: string;\n}) {\n const { open } = DialogPrimitive.useRootContext();\n return (\n <DialogPortal hostName={portalHost}>\n <DialogOverlay>\n <DialogPrimitive.Content\n className={cn(\n 'border-border bg-background web:cursor-default web:duration-200 max-w-lg gap-4 rounded-lg border p-6 shadow-lg',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close\n className={\n 'web:group web:ring-offset-background web:transition-opacity web:hover:opacity-100 web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 web:disabled:pointer-events-none absolute top-4 right-4 rounded-xs p-0.5 opacity-70'\n }\n >\n <X\n size={Platform.OS === 'web' ? 16 : 18}\n className={cn(\n 'text-muted-foreground',\n open && 'text-accent-foreground'\n )}\n />\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col gap-1.5 text-center sm:text-left',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: DialogPrimitive.TitleProps & {\n ref?: React.RefObject<DialogPrimitive.TitleRef>;\n}) {\n return (\n <DialogPrimitive.Title\n className={cn(\n 'native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.DescriptionProps & {\n ref?: React.RefObject<DialogPrimitive.DescriptionRef>;\n}) {\n return (\n <DialogPrimitive.Description\n className={cn(\n 'native:text-base text-muted-foreground text-sm',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":";;;;;;;;;AAOA,MAAM,SAAS,gBAAgB;AAE/B,MAAM,gBAAgB,gBAAgB;AAEtC,MAAM,eAAe,gBAAgB;AAErC,MAAM,cAAc,gBAAgB;AAEpC,SAAS,iBAAiB,EACxB,
|
|
1
|
+
{"version":3,"file":"dialog.js","names":[],"sources":["../../ui/dialog.tsx"],"sourcesContent":["import * as DialogPrimitive from '@rn-primitives/dialog';\nimport * as React from 'react';\nimport { Platform, StyleSheet, View, type ViewProps } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { X } from './icons/X';\nimport { cn } from './utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nfunction DialogOverlayWeb({\n className,\n ...props\n}: DialogPrimitive.OverlayProps & {\n ref?: React.RefObject<DialogPrimitive.OverlayRef>;\n}) {\n const { open } = DialogPrimitive.useRootContext();\n return (\n <DialogPrimitive.Overlay\n className={cn(\n 'absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black/80 p-2',\n open\n ? 'web:animate-in web:fade-in-0'\n : 'web:animate-out web:fade-out-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogOverlayNative({\n className,\n children,\n ...props\n}: DialogPrimitive.OverlayProps & {\n ref?: React.RefObject<DialogPrimitive.OverlayRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DialogPrimitive.Overlay\n style={StyleSheet.absoluteFill}\n className={cn(\n 'flex items-center justify-center bg-black/80 p-2',\n className\n )}\n {...props}\n >\n <Animated.View\n entering={FadeIn.duration(150)}\n exiting={FadeOut.duration(150)}\n >\n {children}\n </Animated.View>\n </DialogPrimitive.Overlay>\n );\n}\n\nconst DialogOverlay = Platform.select({\n web: DialogOverlayWeb,\n default: DialogOverlayNative,\n});\n\nfunction DialogContent({\n className,\n children,\n portalHost,\n ...props\n}: DialogPrimitive.ContentProps & {\n ref?: React.RefObject<DialogPrimitive.ContentRef>;\n className?: string;\n portalHost?: string;\n}) {\n const { open } = DialogPrimitive.useRootContext();\n return (\n <DialogPortal hostName={portalHost}>\n <DialogOverlay>\n <DialogPrimitive.Content\n className={cn(\n 'border-border bg-background web:cursor-default web:duration-200 max-w-lg gap-4 rounded-lg border p-6 shadow-lg',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close\n className={\n 'web:group web:ring-offset-background web:transition-opacity web:hover:opacity-100 web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 web:disabled:pointer-events-none absolute top-4 right-4 rounded-xs p-0.5 opacity-70'\n }\n >\n <X\n size={Platform.OS === 'web' ? 16 : 18}\n className={cn(\n 'text-muted-foreground',\n open && 'text-accent-foreground'\n )}\n />\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col gap-1.5 text-center sm:text-left',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: ViewProps) {\n return (\n <View\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: DialogPrimitive.TitleProps & {\n ref?: React.RefObject<DialogPrimitive.TitleRef>;\n}) {\n return (\n <DialogPrimitive.Title\n className={cn(\n 'native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.DescriptionProps & {\n ref?: React.RefObject<DialogPrimitive.DescriptionRef>;\n}) {\n return (\n <DialogPrimitive.Description\n className={cn(\n 'native:text-base text-muted-foreground text-sm',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":";;;;;;;;;AAOA,MAAM,SAAS,gBAAgB;AAE/B,MAAM,gBAAgB,gBAAgB;AAEtC,MAAM,eAAe,gBAAgB;AAErC,MAAM,cAAc,gBAAgB;AAEpC,SAAS,iBAAiB,EACxB,WACA,GAAG,SAGF;CACD,MAAM,EAAE,SA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
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_native25 from "react-native";
|
|
3
3
|
import { StyleProp, TextProps, View, ViewStyle } from "react-native";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime70 from "react/jsx-runtime";
|
|
5
5
|
import * as _rn_primitives_dropdown_menu0 from "@rn-primitives/dropdown-menu";
|
|
6
6
|
|
|
7
7
|
//#region ui/dropdown-menu.d.ts
|
|
8
|
-
declare const DropdownMenu: React$1.ForwardRefExoticComponent<
|
|
8
|
+
declare const DropdownMenu: React$1.ForwardRefExoticComponent<react_native25.ViewProps & {
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
} & {
|
|
11
11
|
onOpenChange?: (open: boolean) => void;
|
|
12
12
|
} & React$1.RefAttributes<View>>;
|
|
13
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
13
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<react_native25.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
14
14
|
asChild?: boolean;
|
|
15
15
|
} & {
|
|
16
16
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
17
17
|
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
18
18
|
} & React$1.RefAttributes<_rn_primitives_dropdown_menu0.TriggerRef>>;
|
|
19
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<
|
|
19
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<react_native25.ViewProps & {
|
|
20
20
|
asChild?: boolean;
|
|
21
21
|
} & React$1.RefAttributes<View>>;
|
|
22
22
|
declare const DropdownMenuPortal: typeof _rn_primitives_dropdown_menu0.Portal;
|
|
23
|
-
declare const DropdownMenuSub: React$1.ForwardRefExoticComponent<
|
|
23
|
+
declare const DropdownMenuSub: React$1.ForwardRefExoticComponent<react_native25.ViewProps & {
|
|
24
24
|
asChild?: boolean;
|
|
25
25
|
} & {
|
|
26
26
|
defaultOpen?: boolean;
|
|
27
27
|
open?: boolean;
|
|
28
28
|
onOpenChange?: (value: boolean) => void;
|
|
29
29
|
} & React$1.RefAttributes<View>>;
|
|
30
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<
|
|
30
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<react_native25.ViewProps & {
|
|
31
31
|
asChild?: boolean;
|
|
32
32
|
} & {
|
|
33
33
|
value: string | undefined;
|
|
@@ -43,13 +43,13 @@ declare function DropdownMenuSubTrigger({
|
|
|
43
43
|
className?: string;
|
|
44
44
|
inset?: boolean;
|
|
45
45
|
children?: React$1.ReactNode;
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
47
47
|
declare function DropdownMenuSubContent({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
50
|
}: _rn_primitives_dropdown_menu0.SubContentProps & {
|
|
51
51
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.SubContentRef>;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
53
53
|
declare function DropdownMenuContent({
|
|
54
54
|
className,
|
|
55
55
|
overlayClassName,
|
|
@@ -61,7 +61,7 @@ declare function DropdownMenuContent({
|
|
|
61
61
|
overlayStyle?: StyleProp<ViewStyle>;
|
|
62
62
|
overlayClassName?: string;
|
|
63
63
|
portalHost?: string;
|
|
64
|
-
}):
|
|
64
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
65
65
|
declare function DropdownMenuItem({
|
|
66
66
|
className,
|
|
67
67
|
inset,
|
|
@@ -70,7 +70,7 @@ declare function DropdownMenuItem({
|
|
|
70
70
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.ItemRef>;
|
|
71
71
|
className?: string;
|
|
72
72
|
inset?: boolean;
|
|
73
|
-
}):
|
|
73
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
74
74
|
declare function DropdownMenuCheckboxItem({
|
|
75
75
|
className,
|
|
76
76
|
children,
|
|
@@ -79,7 +79,7 @@ declare function DropdownMenuCheckboxItem({
|
|
|
79
79
|
}: _rn_primitives_dropdown_menu0.CheckboxItemProps & {
|
|
80
80
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.CheckboxItemRef>;
|
|
81
81
|
children?: React$1.ReactNode;
|
|
82
|
-
}):
|
|
82
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
83
83
|
declare function DropdownMenuRadioItem({
|
|
84
84
|
className,
|
|
85
85
|
children,
|
|
@@ -87,7 +87,7 @@ declare function DropdownMenuRadioItem({
|
|
|
87
87
|
}: _rn_primitives_dropdown_menu0.RadioItemProps & {
|
|
88
88
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.RadioItemRef>;
|
|
89
89
|
children?: React$1.ReactNode;
|
|
90
|
-
}):
|
|
90
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
91
91
|
declare function DropdownMenuLabel({
|
|
92
92
|
className,
|
|
93
93
|
inset,
|
|
@@ -96,17 +96,17 @@ declare function DropdownMenuLabel({
|
|
|
96
96
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.LabelRef>;
|
|
97
97
|
className?: string;
|
|
98
98
|
inset?: boolean;
|
|
99
|
-
}):
|
|
99
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
100
100
|
declare function DropdownMenuSeparator({
|
|
101
101
|
className,
|
|
102
102
|
...props
|
|
103
103
|
}: _rn_primitives_dropdown_menu0.SeparatorProps & {
|
|
104
104
|
ref?: React$1.RefObject<_rn_primitives_dropdown_menu0.SeparatorRef>;
|
|
105
|
-
}):
|
|
105
|
+
}): react_jsx_runtime70.JSX.Element;
|
|
106
106
|
declare function DropdownMenuShortcut({
|
|
107
107
|
className,
|
|
108
108
|
...props
|
|
109
|
-
}: TextProps):
|
|
109
|
+
}: TextProps): react_jsx_runtime70.JSX.Element;
|
|
110
110
|
//#endregion
|
|
111
111
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
112
112
|
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.d.ts","names":[],"sources":["../../ui/dropdown-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAkBM,cAAY,OAAA,CAAA,0BAA6B,
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","names":[],"sources":["../../ui/dropdown-menu.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAkBM,cAAY,OAAA,CAAA,0BAA6B,cAAA,CAA7B,SAAA;;;;AARI,CAAA,wBAQyB,KAAA,CAAA,CAAA;cAEzC,mBAFY,EAEO,OAAA,CAAA,yBAFP,CAEO,IAFP,CAEuC,cAAA,CAAhC,cAAA,GAAA,OAAA,CAAA,aAFP,CAEO,IAFP,CAAA,EAAA,KAAA,CAAA,GAAA;;;EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;AAAA,CAAA,wBAEZ,0CAAmD,CAAA;cAEnD,iBAFmB,EAEF,OAAA,CAAA,yBAFE,CAE4B,cAAA,CAA9B,SAAA,GAFE;EAAA,OAAA,CAAA,EAAA,OAAA;CAAA,wBAAA,KAAA,CAAA,CAAA;cAInB,kBAJmB,EAAA,OAID,6BAAA,CAAA,MAJC;cAMnB,iBAAe,OAAA,CAAA,0BAA4B,cAAA,CAA5B,SAAA;;;;EANI,IAAA,CAAA,EAAA,OAAA;EAAA,YAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,I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SAAA;EAAA,GAAA;AAAA,CAAA,EAuJyC,SAvJzC,CAAA,EAuJkD,mBAAA,CAAA,GAAA,CAAA,OAvJlD"}
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -16,7 +16,7 @@ const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
16
16
|
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
17
17
|
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
18
18
|
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
19
|
-
function DropdownMenuSubTrigger({ className, inset, children
|
|
19
|
+
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
20
20
|
const { open } = DropdownMenuPrimitive.useSubContext();
|
|
21
21
|
const Icon = Platform.OS === "web" ? ChevronRight : open ? ChevronUp : ChevronDown;
|
|
22
22
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
@@ -31,14 +31,14 @@ function DropdownMenuSubTrigger({ className, inset, children,...props }) {
|
|
|
31
31
|
})
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function DropdownMenuSubContent({ className
|
|
34
|
+
function DropdownMenuSubContent({ className, ...props }) {
|
|
35
35
|
const { open } = DropdownMenuPrimitive.useSubContext();
|
|
36
36
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
|
|
37
37
|
className: cn("border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md", open ? "web:animate-in web:fade-in-0 web:zoom-in-95" : "web:animate-out web:fade-out-0 web:zoom-out", className),
|
|
38
38
|
...props
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function DropdownMenuContent({ className, overlayClassName, overlayStyle, portalHost
|
|
41
|
+
function DropdownMenuContent({ className, overlayClassName, overlayStyle, portalHost, ...props }) {
|
|
42
42
|
const { open } = DropdownMenuPrimitive.useRootContext();
|
|
43
43
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, {
|
|
44
44
|
hostName: portalHost,
|
|
@@ -52,7 +52,7 @@ function DropdownMenuContent({ className, overlayClassName, overlayStyle, portal
|
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function DropdownMenuItem({ className, inset
|
|
55
|
+
function DropdownMenuItem({ className, inset, ...props }) {
|
|
56
56
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
57
57
|
value: "select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground",
|
|
58
58
|
children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, {
|
|
@@ -61,7 +61,7 @@ function DropdownMenuItem({ className, inset,...props }) {
|
|
|
61
61
|
})
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
function DropdownMenuCheckboxItem({ className, children, checked
|
|
64
|
+
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
65
65
|
return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
66
66
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
67
67
|
checked,
|
|
@@ -76,7 +76,7 @@ function DropdownMenuCheckboxItem({ className, children, checked,...props }) {
|
|
|
76
76
|
}), children]
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function DropdownMenuRadioItem({ className, children
|
|
79
|
+
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
80
80
|
return /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
81
81
|
className: cn("web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
82
82
|
...props,
|
|
@@ -86,19 +86,19 @@ function DropdownMenuRadioItem({ className, children,...props }) {
|
|
|
86
86
|
}), children]
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function DropdownMenuLabel({ className, inset
|
|
89
|
+
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
90
90
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, {
|
|
91
91
|
className: cn("native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className),
|
|
92
92
|
...props
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
function DropdownMenuSeparator({ className
|
|
95
|
+
function DropdownMenuSeparator({ className, ...props }) {
|
|
96
96
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, {
|
|
97
97
|
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
98
98
|
...props
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function DropdownMenuShortcut({ className
|
|
101
|
+
function DropdownMenuShortcut({ className, ...props }) {
|
|
102
102
|
return /* @__PURE__ */ jsx(Text, {
|
|
103
103
|
className: cn("native:text-sm text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
104
104
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.js","names":[],"sources":["../../ui/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from '@rn-primitives/dropdown-menu';\nimport * as React from 'react';\nimport {\n Platform,\n type StyleProp,\n StyleSheet,\n Text,\n type TextProps,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: DropdownMenuPrimitive.SubTriggerProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SubTriggerRef>;\n className?: string;\n inset?: boolean;\n children?: React.ReactNode;\n}) {\n const { open } = DropdownMenuPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <DropdownMenuPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: DropdownMenuPrimitive.SubContentProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SubContentRef>;\n}) {\n const { open } = DropdownMenuPrimitive.useSubContext();\n return (\n <DropdownMenuPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuContent({\n className,\n overlayClassName,\n overlayStyle,\n portalHost,\n ...props\n}: DropdownMenuPrimitive.ContentProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.ContentRef>;\n overlayStyle?: StyleProp<ViewStyle>;\n overlayClassName?: string;\n portalHost?: string;\n}) {\n const { open } = DropdownMenuPrimitive.useRootContext();\n return (\n <DropdownMenuPrimitive.Portal hostName={portalHost}>\n <DropdownMenuPrimitive.Overlay\n style={\n overlayStyle\n ? StyleSheet.flatten([\n Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,\n overlayStyle as typeof StyleSheet.absoluteFill,\n ])\n : Platform.OS !== 'web'\n ? StyleSheet.absoluteFill\n : undefined\n }\n className={overlayClassName}\n >\n <DropdownMenuPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Overlay>\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n ...props\n}: DropdownMenuPrimitive.ItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <DropdownMenuPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: DropdownMenuPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: DropdownMenuPrimitive.RadioItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DropdownMenuPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: DropdownMenuPrimitive.LabelProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: DropdownMenuPrimitive.SeparatorProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SeparatorRef>;\n}) {\n return (\n <DropdownMenuPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,eAAe,sBAAsB;AAE3C,MAAM,sBAAsB,sBAAsB;AAElD,MAAM,oBAAoB,sBAAsB;AAEhD,MAAM,qBAAqB,sBAAsB;AAEjD,MAAM,kBAAkB,sBAAsB;AAE9C,MAAM,yBAAyB,sBAAsB;AAErD,SAAS,uBAAuB,EAC9B,WACA,OACA,SACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,sBAAsB,eAAe;CACtD,MAAM,OACJ,SAAS,OAAO,QAAQ,eAAe,OAAO,YAAY;AAC5D,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mDACA,QAAQ,gCACT;YAED,qBAAC,sBAAsB;GACrB,WAAW,GACT,sLACA,QAAQ,aACR,SAAS,QACT,UACD;GACD,GAAI;cAEH,UACD,oBAAC;IAAK,MAAM;IAAI,WAAU;KAA4B;IACrB;GACT;;AAIh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ACnB;IACjC,EACN;GAC+B;;AAItC,SAAS,kBAAkB,EACzB,WACA,MACA,GAAG,SAKF;AACD,QACE,oBAAC,sBAAsB;EACrB,WAAW,GACT,yFACA,SAAS,QACT,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,sBAAsB,EAC7B,UACA,GAAG,SAGF;AACD,QACE,oBAAC,sBAAsB;EACrB,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAAE,UAAW,GAAG,SAAoB;AAChE,QACE,oBAAC;EACC,WAAW,GACT,wEACA,UACD;EACD,GAAI;GACJ"}
|
|
1
|
+
{"version":3,"file":"dropdown-menu.js","names":[],"sources":["../../ui/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from '@rn-primitives/dropdown-menu';\nimport * as React from 'react';\nimport {\n Platform,\n type StyleProp,\n StyleSheet,\n Text,\n type TextProps,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronRight } from './icons/ChevronRight';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nfunction DropdownMenuSubTrigger({\n className,\n inset,\n children,\n ...props\n}: DropdownMenuPrimitive.SubTriggerProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SubTriggerRef>;\n className?: string;\n inset?: boolean;\n children?: React.ReactNode;\n}) {\n const { open } = DropdownMenuPrimitive.useSubContext();\n const Icon =\n Platform.OS === 'web' ? ChevronRight : open ? ChevronUp : ChevronDown;\n return (\n <TextClassContext.Provider\n value={cn(\n 'native:text-lg text-primary text-sm select-none',\n open && 'native:text-accent-foreground'\n )}\n >\n <DropdownMenuPrimitive.SubTrigger\n className={cn(\n 'native:py-2 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent web:focus:bg-accent flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n open && 'bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <Icon size={18} className=\"text-foreground ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n </TextClassContext.Provider>\n );\n}\n\nfunction DropdownMenuSubContent({\n className,\n ...props\n}: DropdownMenuPrimitive.SubContentProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SubContentRef>;\n}) {\n const { open } = DropdownMenuPrimitive.useSubContext();\n return (\n <DropdownMenuPrimitive.SubContent\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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 z-50 mt-1 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuContent({\n className,\n overlayClassName,\n overlayStyle,\n portalHost,\n ...props\n}: DropdownMenuPrimitive.ContentProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.ContentRef>;\n overlayStyle?: StyleProp<ViewStyle>;\n overlayClassName?: string;\n portalHost?: string;\n}) {\n const { open } = DropdownMenuPrimitive.useRootContext();\n return (\n <DropdownMenuPrimitive.Portal hostName={portalHost}>\n <DropdownMenuPrimitive.Overlay\n style={\n overlayStyle\n ? StyleSheet.flatten([\n Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined,\n overlayStyle as typeof StyleSheet.absoluteFill,\n ])\n : Platform.OS !== 'web'\n ? StyleSheet.absoluteFill\n : undefined\n }\n className={overlayClassName}\n >\n <DropdownMenuPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/5 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Overlay>\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nfunction DropdownMenuItem({\n className,\n inset,\n ...props\n}: DropdownMenuPrimitive.ItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.ItemRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <TextClassContext.Provider value=\"select-none text-sm native:text-lg text-popover-foreground web:group-focus:text-accent-foreground\">\n <DropdownMenuPrimitive.Item\n className={cn(\n 'native:py-2 group active:bg-accent web:cursor-default web:outline-hidden web:hover:bg-accent web:focus:bg-accent relative flex flex-row items-center gap-2 rounded-xs px-2 py-1.5',\n inset && 'pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction DropdownMenuCheckboxItem({\n className,\n children,\n checked,\n ...props\n}: DropdownMenuPrimitive.CheckboxItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.CheckboxItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check size={14} strokeWidth={3} className=\"text-foreground\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\nfunction DropdownMenuRadioItem({\n className,\n children,\n ...props\n}: DropdownMenuPrimitive.RadioItemProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.RadioItemRef>;\n children?: React.ReactNode;\n}) {\n return (\n <DropdownMenuPrimitive.RadioItem\n className={cn(\n 'web:group native:py-2 active:bg-accent web:cursor-default web:outline-hidden web:focus:bg-accent relative flex flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <View className=\"bg-foreground h-2 w-2 rounded-full\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </View>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nfunction DropdownMenuLabel({\n className,\n inset,\n ...props\n}: DropdownMenuPrimitive.LabelProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.LabelRef>;\n className?: string;\n inset?: boolean;\n}) {\n return (\n <DropdownMenuPrimitive.Label\n className={cn(\n 'native:text-base text-foreground web:cursor-default px-2 py-1.5 text-sm font-semibold',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuSeparator({\n className,\n ...props\n}: DropdownMenuPrimitive.SeparatorProps & {\n ref?: React.RefObject<DropdownMenuPrimitive.SeparatorRef>;\n}) {\n return (\n <DropdownMenuPrimitive.Separator\n className={cn('bg-border -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction DropdownMenuShortcut({ className, ...props }: TextProps) {\n return (\n <Text\n className={cn(\n 'native:text-sm text-muted-foreground ml-auto text-xs tracking-widest',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,eAAe,sBAAsB;AAE3C,MAAM,sBAAsB,sBAAsB;AAElD,MAAM,oBAAoB,sBAAsB;AAEhD,MAAM,qBAAqB,sBAAsB;AAEjD,MAAM,kBAAkB,sBAAsB;AAE9C,MAAM,yBAAyB,sBAAsB;AAErD,SAAS,uBAAuB,EAC9B,WACA,OACA,UACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,sBAAsB,eAAe;CACtD,MAAM,OACJ,SAAS,OAAO,QAAQ,eAAe,OAAO,YAAY;AAC5D,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mDACA,QAAQ,gCACT;YAED,qBAAC,sBAAsB;GACrB,WAAW,GACT,sLACA,QAAQ,aACR,SAAS,QACT,UACD;GACD,GAAI;cAEH,UACD,oBAAC;IAAK,MAAM;IAAI,WAAU;KAA4B;IACrB;GACT;;AAIhC,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAGF;CACD,MAAM,EAAE,SAAS,sBAAsB,eAAe;AACtD,QACE,oBAAC,sBAAsB;EACrB,WAAW,GACT,+QACA,OACI,gDACA,+CACJ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,oBAAoB,EAC3B,WACA,kBACA,cACA,YACA,GAAG,SAMF;CACD,MAAM,EAAE,SAAS,sBAAsB,gBAAgB;AACvD,QACE,oBAAC,sBAAsB;EAAO,UAAU;YACtC,oBAAC,sBAAsB;GACrB,OACE,eACI,WAAW,QAAQ,CACjB,SAAS,OAAO,QAAQ,WAAW,eAAe,QAClD,aACD,CAAC,GACF,SAAS,OAAO,QACd,WAAW,eACX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|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime116 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region ui/empty-state.d.ts
|
|
7
7
|
declare const containerVariants: (props?: ({
|
|
8
8
|
density?: "default" | "compact" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
10
10
|
interface EmptyStateProps extends VariantProps<typeof containerVariants> {
|
|
11
11
|
icon?: React$1.ReactNode;
|
|
12
12
|
title: React$1.ReactNode;
|
|
@@ -23,7 +23,7 @@ declare function EmptyState({
|
|
|
23
23
|
secondaryAction,
|
|
24
24
|
className,
|
|
25
25
|
density
|
|
26
|
-
}: EmptyStateProps):
|
|
26
|
+
}: EmptyStateProps): react_jsx_runtime116.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { EmptyState, EmptyStateProps };
|
|
29
29
|
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.d.ts","names":[],"sources":["../../ui/empty-state.tsx"],"sourcesContent":[],"mappings":";;;;;;cAQM;;IAUJ,+BAAA,CAAA;UAEe,eAAA,SACP,oBAAoB;EAbxB,IAAA,CAAA,EAcG,OAAA,CAAM,SAJb;EAEe,KAAA,EAGR,OAAA,CAAM,SAFb;EAA4B,WAAA,CAAA,EAGd,OAAA,CAAM,SAHQ;EACrB,aAAM,CAAA,EAGG,OAAA,CAAM,SAHT;EACN,eAAM,CAAA,EAGK,OAAA,CAAM,SAHX;EACC,SAAM,CAAA,EAAA,MAAA;;AAEF,iBAIJ,UAAA,CAJU;EAAA,IAAA;EAAA,KAAA;EAAA,WAAA;EAAA,aAAA;EAAA,eAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAYvB,eAZuB,CAAA,EAYR,
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","names":[],"sources":["../../ui/empty-state.tsx"],"sourcesContent":[],"mappings":";;;;;;cAQM;;IAUJ,+BAAA,CAAA;UAEe,eAAA,SACP,oBAAoB;EAbxB,IAAA,CAAA,EAcG,OAAA,CAAM,SAJb;EAEe,KAAA,EAGR,OAAA,CAAM,SAFb;EAA4B,WAAA,CAAA,EAGd,OAAA,CAAM,SAHQ;EACrB,aAAM,CAAA,EAGG,OAAA,CAAM,SAHT;EACN,eAAM,CAAA,EAGK,OAAA,CAAM,SAHX;EACC,SAAM,CAAA,EAAA,MAAA;;AAEF,iBAIJ,UAAA,CAJU;EAAA,IAAA;EAAA,KAAA;EAAA,WAAA;EAAA,aAAA;EAAA,eAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAYvB,eAZuB,CAAA,EAYR,oBAAA,CAAA,GAAA,CAAA,OAZQ"}
|
package/dist/ui/empty.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { ViewProps } from "react-native";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime117 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region ui/empty.d.ts
|
|
7
7
|
declare function Empty({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: ViewProps):
|
|
10
|
+
}: ViewProps): react_jsx_runtime117.JSX.Element;
|
|
11
11
|
declare function EmptyHeader({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: ViewProps):
|
|
14
|
+
}: ViewProps): react_jsx_runtime117.JSX.Element;
|
|
15
15
|
declare const emptyMediaVariants: (props?: ({
|
|
16
16
|
variant?: "default" | "icon" | null | undefined;
|
|
17
|
-
} &
|
|
17
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
18
18
|
declare function EmptyMedia({
|
|
19
19
|
className,
|
|
20
20
|
variant,
|
|
21
21
|
...props
|
|
22
|
-
}: ViewProps & VariantProps<typeof emptyMediaVariants>):
|
|
22
|
+
}: ViewProps & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime117.JSX.Element;
|
|
23
23
|
declare function EmptyTitle({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: ViewProps):
|
|
26
|
+
}: ViewProps): react_jsx_runtime117.JSX.Element;
|
|
27
27
|
declare function EmptyDescription({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: ViewProps):
|
|
30
|
+
}: ViewProps): react_jsx_runtime117.JSX.Element;
|
|
31
31
|
declare function EmptyContent({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: ViewProps):
|
|
34
|
+
}: ViewProps): react_jsx_runtime117.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
37
37
|
//# sourceMappingURL=empty.d.ts.map
|
package/dist/ui/empty.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","names":[],"sources":["../../ui/empty.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAKS,KAAA;;;GAA+B,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAaxC,WAAA;;;GAAqC,YAAS,oBAAA,CAAA,GAAA,CAAA;cAajD,0BA1BQ;;AAFsC,CAAA,GAyCnD,
|
|
1
|
+
{"version":3,"file":"empty.d.ts","names":[],"sources":["../../ui/empty.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAKS,KAAA;;;GAA+B,YAAS,oBAAA,CAAA,GAAA,CAAA;iBAaxC,WAAA;;;GAAqC,YAAS,oBAAA,CAAA,GAAA,CAAA;cAajD,0BA1BQ;;AAFsC,CAAA,GAyCnD,+BAAA,CAAA,SAvCa,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAyCL,UAAA,CAzCQ;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA6Cd,SA7Cc,GA6CF,YA7CE,CAAA,OA6CkB,kBA7ClB,CAAA,CAAA,EA6CqC,oBAAA,CAAA,GAAA,CAAA,OA7CrC;iBAwDR,UAAA,CAxD+B;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwDK,SAxDL,CAAA,EAwDc,oBAAA,CAAA,GAAA,CAAA,OAxDd;iBAkE/B,gBAAA,CAlEwC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkEE,SAlEF,CAAA,EAkEW,oBAAA,CAAA,GAAA,CAAA,OAlEX;iBA+ExC,YAAA,CA/EwC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+EF,SA/EE,CAAA,EA+EO,oBAAA,CAAA,GAAA,CAAA,OA/EP"}
|
package/dist/ui/empty.js
CHANGED
|
@@ -4,14 +4,14 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region ui/empty.tsx
|
|
7
|
-
function Empty({ className
|
|
7
|
+
function Empty({ className, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(View, {
|
|
9
9
|
"data-slot": "empty",
|
|
10
10
|
className: cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", className),
|
|
11
11
|
...props
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function EmptyHeader({ className
|
|
14
|
+
function EmptyHeader({ className, ...props }) {
|
|
15
15
|
return /* @__PURE__ */ jsx(View, {
|
|
16
16
|
"data-slot": "empty-header",
|
|
17
17
|
className: cn("flex max-w-sm flex-col items-center gap-2 text-center", className),
|
|
@@ -25,7 +25,7 @@ const emptyMediaVariants = cva("flex shrink-0 items-center justify-center mb-2 [
|
|
|
25
25
|
} },
|
|
26
26
|
defaultVariants: { variant: "default" }
|
|
27
27
|
});
|
|
28
|
-
function EmptyMedia({ className, variant = "default"
|
|
28
|
+
function EmptyMedia({ className, variant = "default", ...props }) {
|
|
29
29
|
return /* @__PURE__ */ jsx(View, {
|
|
30
30
|
"data-slot": "empty-icon",
|
|
31
31
|
"data-variant": variant,
|
|
@@ -36,21 +36,21 @@ function EmptyMedia({ className, variant = "default",...props }) {
|
|
|
36
36
|
...props
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function EmptyTitle({ className
|
|
39
|
+
function EmptyTitle({ className, ...props }) {
|
|
40
40
|
return /* @__PURE__ */ jsx(View, {
|
|
41
41
|
"data-slot": "empty-title",
|
|
42
42
|
className: cn("text-lg font-medium tracking-tight", className),
|
|
43
43
|
...props
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function EmptyDescription({ className
|
|
46
|
+
function EmptyDescription({ className, ...props }) {
|
|
47
47
|
return /* @__PURE__ */ jsx(View, {
|
|
48
48
|
"data-slot": "empty-description",
|
|
49
49
|
className: cn("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", className),
|
|
50
50
|
...props
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function EmptyContent({ className
|
|
53
|
+
function EmptyContent({ className, ...props }) {
|
|
54
54
|
return /* @__PURE__ */ jsx(View, {
|
|
55
55
|
"data-slot": "empty-content",
|
|
56
56
|
className: cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", className),
|
package/dist/ui/empty.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.js","names":[],"sources":["../../ui/empty.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from './utils';\nimport { View, type ViewProps } from 'react-native';\n\nfunction Empty({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty\"\n className={cn(\n 'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction EmptyHeader({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-header\"\n className={cn(\n 'flex max-w-sm flex-col items-center gap-2 text-center',\n className\n )}\n {...props}\n />\n );\n}\n\nconst emptyMediaVariants = cva(\n 'flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nfunction EmptyMedia({\n className,\n variant = 'default',\n ...props\n}: ViewProps & VariantProps<typeof emptyMediaVariants>) {\n return (\n <View\n data-slot=\"empty-icon\"\n data-variant={variant}\n className={cn(emptyMediaVariants({ variant, className }))}\n {...props}\n />\n );\n}\n\nfunction EmptyTitle({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-title\"\n className={cn('text-lg font-medium tracking-tight', className)}\n {...props}\n />\n );\n}\n\nfunction EmptyDescription({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-description\"\n className={cn(\n 'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction EmptyContent({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-content\"\n className={cn(\n 'flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Empty,\n EmptyHeader,\n EmptyTitle,\n EmptyDescription,\n EmptyContent,\n EmptyMedia,\n};\n"],"mappings":";;;;;;AAKA,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"empty.js","names":[],"sources":["../../ui/empty.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from './utils';\nimport { View, type ViewProps } from 'react-native';\n\nfunction Empty({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty\"\n className={cn(\n 'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction EmptyHeader({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-header\"\n className={cn(\n 'flex max-w-sm flex-col items-center gap-2 text-center',\n className\n )}\n {...props}\n />\n );\n}\n\nconst emptyMediaVariants = cva(\n 'flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n icon: \"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6\",\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nfunction EmptyMedia({\n className,\n variant = 'default',\n ...props\n}: ViewProps & VariantProps<typeof emptyMediaVariants>) {\n return (\n <View\n data-slot=\"empty-icon\"\n data-variant={variant}\n className={cn(emptyMediaVariants({ variant, className }))}\n {...props}\n />\n );\n}\n\nfunction EmptyTitle({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-title\"\n className={cn('text-lg font-medium tracking-tight', className)}\n {...props}\n />\n );\n}\n\nfunction EmptyDescription({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-description\"\n className={cn(\n 'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction EmptyContent({ className, ...props }: ViewProps) {\n return (\n <View\n data-slot=\"empty-content\"\n className={cn(\n 'flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Empty,\n EmptyHeader,\n EmptyTitle,\n EmptyDescription,\n EmptyContent,\n EmptyMedia,\n};\n"],"mappings":";;;;;;AAKA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAoB;AACjD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,gIACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,WAAW,GAAG,SAAoB;AACvD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,yDACA,UACD;EACD,GAAI;GACJ;;AAIN,MAAM,qBAAqB,IACzB,+FACA;CACE,UAAU,EACR,SAAS;EACP,SAAS;EACT,MAAM;EACP,EACF;CACD,iBAAiB,EACf,SAAS,WACV;CACF,CACF;AAED,SAAS,WAAW,EAClB,WACA,UAAU,WACV,GAAG,SACmD;AACtD,QACE,oBAAC;EACC,aAAU;EACV,gBAAc;EACd,WAAW,GAAG,mBAAmB;GAAE;GAAS;GAAW,CAAC,CAAC;EACzD,GAAI;GACJ;;AAIN,SAAS,WAAW,EAAE,WAAW,GAAG,SAAoB;AACtD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,sCAAsC,UAAU;EAC9D,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EAAE,WAAW,GAAG,SAAoB;AAC5D,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,2GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,aAAa,EAAE,WAAW,GAAG,SAAoB;AACxD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,iFACA,UACD;EACD,GAAI;GACJ"}
|
package/dist/ui/fab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/fab.d.ts
|
|
5
5
|
interface FABAction {
|
|
@@ -19,7 +19,7 @@ declare function FAB({
|
|
|
19
19
|
className,
|
|
20
20
|
mainIcon,
|
|
21
21
|
mainColor
|
|
22
|
-
}: FABProps):
|
|
22
|
+
}: FABProps): react_jsx_runtime107.JSX.Element;
|
|
23
23
|
declare function MiniFAB({
|
|
24
24
|
icon,
|
|
25
25
|
onPress,
|
|
@@ -30,7 +30,7 @@ declare function MiniFAB({
|
|
|
30
30
|
onPress: () => void;
|
|
31
31
|
className?: string;
|
|
32
32
|
color?: string;
|
|
33
|
-
}):
|
|
33
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { FAB, MiniFAB };
|
|
36
36
|
//# sourceMappingURL=fab.d.ts.map
|