@lssm/lib.ui-kit 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/ui/accordion.d.ts +35 -0
- package/dist/ui/alert-dialog.d.ts +71 -0
- package/dist/ui/alert.d.ts +36 -0
- package/dist/ui/aspect-ratio.d.ts +11 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +7 -0
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts +18 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +22 -0
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts +7 -0
- package/dist/ui/atoms/Pagination/index.d.ts +3 -0
- package/dist/ui/atoms/Pagination/types.d.ts +15 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +7 -0
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -0
- package/dist/ui/atoms/SearchInput/types.d.ts +12 -0
- package/dist/ui/avatar.d.ts +27 -0
- package/dist/ui/badge.d.ts +21 -0
- package/dist/ui/breadcrumb.d.ts +38 -0
- package/dist/ui/button.d.ts +25 -0
- package/dist/ui/card.d.ts +43 -0
- package/dist/ui/carousel.d.ts +4 -0
- package/dist/ui/checkbox.d.ts +16 -0
- package/dist/ui/collapsible.d.ts +24 -0
- package/dist/ui/command.d.ts +4 -0
- package/dist/ui/context-menu.d.ts +109 -0
- package/dist/ui/date-picker.d.ts +23 -0
- package/dist/ui/date-range-picker.d.ts +30 -0
- package/dist/ui/datetime-picker.d.ts +27 -0
- package/dist/ui/dialog.d.ts +68 -0
- package/dist/ui/dropdown-menu.d.ts +111 -0
- package/dist/ui/empty-state.d.ts +28 -0
- package/dist/ui/empty.d.ts +36 -0
- package/dist/ui/fab.d.ts +35 -0
- package/dist/ui/field.d.ts +66 -0
- package/dist/ui/form.d.ts +49 -0
- package/dist/ui/hover-card.d.ts +29 -0
- package/dist/ui/icons/Check.d.ts +2 -0
- package/dist/ui/icons/ChevronDown.d.ts +2 -0
- package/dist/ui/icons/ChevronRight.d.ts +2 -0
- package/dist/ui/icons/ChevronUp.d.ts +2 -0
- package/dist/ui/icons/CircleUser.d.ts +2 -0
- package/dist/ui/icons/Info.d.ts +2 -0
- package/dist/ui/icons/Key.d.ts +2 -0
- package/dist/ui/icons/MoonStar.d.ts +2 -0
- package/dist/ui/icons/Sun.d.ts +2 -0
- package/dist/ui/icons/X.d.ts +2 -0
- package/dist/ui/icons/iconWithClassName.d.ts +6 -0
- package/dist/ui/input.d.ts +14 -0
- package/dist/ui/label.d.ts +15 -0
- package/dist/ui/link.d.ts +13 -0
- package/dist/ui/loading-button.d.ts +19 -0
- package/dist/ui/loading-overlay.d.ts +15 -0
- package/dist/ui/loading-screen.d.ts +13 -0
- package/dist/ui/marketing/FeatureGrid.d.ts +20 -0
- package/dist/ui/marketing/Hero.d.ts +27 -0
- package/dist/ui/marketing/PricingTable.d.ts +24 -0
- package/dist/ui/marketing/index.d.ts +4 -0
- package/dist/ui/menubar.d.ts +114 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts +4 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +7 -0
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +24 -0
- package/dist/ui/molecules/SkeletonList.d.ts +15 -0
- package/dist/ui/nativewind-env.d.ts +1 -0
- package/dist/ui/navigation-menu.d.ts +67 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +29 -0
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts +28 -0
- package/dist/ui/organisms/ListPage/index.d.ts +3 -0
- package/dist/ui/organisms/ListPage/types.d.ts +41 -0
- package/dist/ui/page-header.d.ts +26 -0
- package/dist/ui/password-strength.d.ts +20 -0
- package/dist/ui/popover.d.ts +29 -0
- package/dist/ui/progress.d.ts +16 -0
- package/dist/ui/radio-group.d.ts +14 -0
- package/dist/ui/select.d.ts +83 -0
- package/dist/ui/separator.d.ts +15 -0
- package/dist/ui/sheet.d.ts +4 -0
- package/dist/ui/sidebar.d.ts +4 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/stack.d.ts +76 -0
- package/dist/ui/stepper.d.ts +22 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/table.d.ts +50 -0
- package/dist/ui/tabs.d.ts +32 -0
- package/dist/ui/text.d.ts +20 -0
- package/dist/ui/textarea.d.ts +9 -0
- package/dist/ui/time-picker.d.ts +21 -0
- package/dist/ui/toggle-group.d.ts +35 -0
- package/dist/ui/toggle.d.ts +33 -0
- package/dist/ui/tooltip.d.ts +31 -0
- package/dist/ui/typography.d.ts +64 -0
- package/dist/ui/useColorScheme.d.ts +11 -0
- package/dist/ui/useListState.d.ts +33 -0
- package/dist/ui/usecases/UseCaseCard.d.ts +18 -0
- package/dist/ui/usecases/UserStoryCard.d.ts +14 -0
- package/dist/ui/usecases/index.d.ts +3 -0
- package/dist/ui/utils.d.ts +6 -0
- package/package.json +101 -101
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/ui/nativewind-env.d.js +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime95 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region ui/marketing/PricingTable.d.ts
|
|
4
|
+
interface PricingTier {
|
|
5
|
+
name: string;
|
|
6
|
+
price: string;
|
|
7
|
+
tagline?: string;
|
|
8
|
+
features: string[];
|
|
9
|
+
cta?: {
|
|
10
|
+
label: string;
|
|
11
|
+
href?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
};
|
|
14
|
+
highlighted?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function PricingTable({
|
|
17
|
+
tiers,
|
|
18
|
+
className
|
|
19
|
+
}: {
|
|
20
|
+
tiers: PricingTier[];
|
|
21
|
+
className?: string;
|
|
22
|
+
}): react_jsx_runtime95.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PricingTable, PricingTier };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_native36 from "react-native";
|
|
3
|
+
import { TextProps, View } from "react-native";
|
|
4
|
+
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
5
|
+
import * as MenubarPrimitive from "@rn-primitives/menubar";
|
|
6
|
+
|
|
7
|
+
//#region ui/menubar.d.ts
|
|
8
|
+
declare const MenubarMenu: React$1.ForwardRefExoticComponent<react_native36.ViewProps & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
} & {
|
|
11
|
+
value: string | undefined;
|
|
12
|
+
} & React$1.RefAttributes<View>>;
|
|
13
|
+
declare const MenubarGroup: React$1.ForwardRefExoticComponent<react_native36.ViewProps & {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
} & React$1.RefAttributes<View>>;
|
|
16
|
+
declare const MenubarPortal: typeof MenubarPrimitive.Portal;
|
|
17
|
+
declare const MenubarSub: React$1.ForwardRefExoticComponent<react_native36.ViewProps & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
} & {
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
open?: boolean;
|
|
22
|
+
onOpenChange?: (value: boolean) => void;
|
|
23
|
+
} & React$1.RefAttributes<View>>;
|
|
24
|
+
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<react_native36.ViewProps & {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
value: string | undefined;
|
|
28
|
+
onValueChange: (value: string) => void;
|
|
29
|
+
} & React$1.RefAttributes<View>>;
|
|
30
|
+
declare function Menubar({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}: MenubarPrimitive.RootProps & {
|
|
34
|
+
ref?: React$1.RefObject<MenubarPrimitive.RootRef>;
|
|
35
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
36
|
+
declare function MenubarTrigger({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: MenubarPrimitive.TriggerProps & {
|
|
40
|
+
ref?: React$1.RefObject<MenubarPrimitive.TriggerRef>;
|
|
41
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
42
|
+
declare function MenubarSubTrigger({
|
|
43
|
+
className,
|
|
44
|
+
inset,
|
|
45
|
+
children,
|
|
46
|
+
...props
|
|
47
|
+
}: MenubarPrimitive.SubTriggerProps & {
|
|
48
|
+
ref?: React$1.RefObject<MenubarPrimitive.SubTriggerRef>;
|
|
49
|
+
className?: string;
|
|
50
|
+
inset?: boolean;
|
|
51
|
+
children?: React$1.ReactNode;
|
|
52
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
53
|
+
declare function MenubarSubContent({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}: MenubarPrimitive.SubContentProps & {
|
|
57
|
+
ref?: React$1.RefObject<MenubarPrimitive.SubContentRef>;
|
|
58
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
59
|
+
declare function MenubarContent({
|
|
60
|
+
className,
|
|
61
|
+
portalHost,
|
|
62
|
+
...props
|
|
63
|
+
}: MenubarPrimitive.ContentProps & {
|
|
64
|
+
ref?: React$1.RefObject<MenubarPrimitive.ContentRef>;
|
|
65
|
+
className?: string;
|
|
66
|
+
portalHost?: string;
|
|
67
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
68
|
+
declare function MenubarItem({
|
|
69
|
+
className,
|
|
70
|
+
inset,
|
|
71
|
+
...props
|
|
72
|
+
}: MenubarPrimitive.ItemProps & {
|
|
73
|
+
ref?: React$1.RefObject<MenubarPrimitive.ItemRef>;
|
|
74
|
+
className?: string;
|
|
75
|
+
inset?: boolean;
|
|
76
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
77
|
+
declare function MenubarCheckboxItem({
|
|
78
|
+
className,
|
|
79
|
+
children,
|
|
80
|
+
checked,
|
|
81
|
+
...props
|
|
82
|
+
}: MenubarPrimitive.CheckboxItemProps & {
|
|
83
|
+
ref?: React$1.RefObject<MenubarPrimitive.CheckboxItemRef>;
|
|
84
|
+
children?: React$1.ReactNode;
|
|
85
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
86
|
+
declare function MenubarRadioItem({
|
|
87
|
+
className,
|
|
88
|
+
children,
|
|
89
|
+
...props
|
|
90
|
+
}: MenubarPrimitive.RadioItemProps & {
|
|
91
|
+
ref?: React$1.RefObject<MenubarPrimitive.RadioItemRef>;
|
|
92
|
+
children?: React$1.ReactNode;
|
|
93
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
94
|
+
declare function MenubarLabel({
|
|
95
|
+
className,
|
|
96
|
+
inset,
|
|
97
|
+
...props
|
|
98
|
+
}: MenubarPrimitive.LabelProps & {
|
|
99
|
+
ref?: React$1.RefObject<MenubarPrimitive.LabelRef>;
|
|
100
|
+
className?: string;
|
|
101
|
+
inset?: boolean;
|
|
102
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
103
|
+
declare function MenubarSeparator({
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}: MenubarPrimitive.SeparatorProps & {
|
|
107
|
+
ref?: React$1.RefObject<MenubarPrimitive.SeparatorRef>;
|
|
108
|
+
}): react_jsx_runtime119.JSX.Element;
|
|
109
|
+
declare function MenubarShortcut({
|
|
110
|
+
className,
|
|
111
|
+
...props
|
|
112
|
+
}: TextProps): react_jsx_runtime119.JSX.Element;
|
|
113
|
+
//#endregion
|
|
114
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterOption } from "../../atoms/FilterSelect/types.js";
|
|
2
|
+
import "../../atoms/FilterSelect/index.js";
|
|
3
|
+
|
|
4
|
+
//#region ui/molecules/SearchAndFilter/types.d.ts
|
|
5
|
+
interface SearchAndFilterProps {
|
|
6
|
+
searchValue: string;
|
|
7
|
+
onSearchChange: (value: string) => void;
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
filters?: {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
options: FilterOption[];
|
|
14
|
+
onChange: (value: FilterOption | undefined) => void;
|
|
15
|
+
showCounts?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
collapsible?: boolean;
|
|
21
|
+
defaultCollapsed?: boolean;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { SearchAndFilterProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region ui/molecules/SkeletonList.d.ts
|
|
4
|
+
interface Props {
|
|
5
|
+
count?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
itemClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function SkeletonList({
|
|
10
|
+
count,
|
|
11
|
+
className,
|
|
12
|
+
itemClassName
|
|
13
|
+
}: Props): react_jsx_runtime72.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SkeletonList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_native10 from "react-native";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
5
|
+
import * as NavigationMenuPrimitive from "@rn-primitives/navigation-menu";
|
|
6
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
7
|
+
|
|
8
|
+
//#region ui/navigation-menu.d.ts
|
|
9
|
+
declare function NavigationMenu({
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
...props
|
|
13
|
+
}: NavigationMenuPrimitive.RootProps & {
|
|
14
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.RootRef>;
|
|
15
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
16
|
+
declare function NavigationMenuList({
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}: NavigationMenuPrimitive.ListProps & {
|
|
20
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.ListRef>;
|
|
21
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
22
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<react_native10.ViewProps & {
|
|
23
|
+
asChild?: boolean;
|
|
24
|
+
} & {
|
|
25
|
+
value: string | undefined;
|
|
26
|
+
} & React$1.RefAttributes<View>>;
|
|
27
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types2.ClassProp | undefined) => string;
|
|
28
|
+
declare function NavigationMenuTrigger({
|
|
29
|
+
className,
|
|
30
|
+
children,
|
|
31
|
+
...props
|
|
32
|
+
}: Omit<NavigationMenuPrimitive.TriggerProps, 'children'> & {
|
|
33
|
+
children?: React$1.ReactNode;
|
|
34
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.TriggerRef>;
|
|
35
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
36
|
+
declare function NavigationMenuContent({
|
|
37
|
+
className,
|
|
38
|
+
children,
|
|
39
|
+
portalHost,
|
|
40
|
+
...props
|
|
41
|
+
}: NavigationMenuPrimitive.ContentProps & {
|
|
42
|
+
portalHost?: string;
|
|
43
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.ContentRef>;
|
|
44
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
45
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<Omit<react_native10.PressableProps & React$1.RefAttributes<View>, "ref"> & {
|
|
46
|
+
asChild?: boolean;
|
|
47
|
+
} & {
|
|
48
|
+
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
49
|
+
onKeyUp?: (ev: React$1.KeyboardEvent) => void;
|
|
50
|
+
} & {
|
|
51
|
+
active?: boolean;
|
|
52
|
+
} & React$1.RefAttributes<View>>;
|
|
53
|
+
declare function NavigationMenuViewport({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}: NavigationMenuPrimitive.ViewportProps & {
|
|
57
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.ViewportRef>;
|
|
58
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
59
|
+
declare function NavigationMenuIndicator({
|
|
60
|
+
ref,
|
|
61
|
+
className,
|
|
62
|
+
...props
|
|
63
|
+
}: NavigationMenuPrimitive.IndicatorProps & {
|
|
64
|
+
ref?: React$1.RefObject<NavigationMenuPrimitive.IndicatorRef>;
|
|
65
|
+
}): react_jsx_runtime22.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region ui/organisms/ErrorBoundary/ErrorBoundary.d.ts
|
|
5
|
+
interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
errorId: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface ErrorBoundaryProps {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
fallback?: React.ComponentType<ErrorFallbackProps>;
|
|
13
|
+
onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
14
|
+
}
|
|
15
|
+
interface ErrorFallbackProps {
|
|
16
|
+
error: Error;
|
|
17
|
+
errorId: string | null;
|
|
18
|
+
resetError: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
21
|
+
constructor(props: ErrorBoundaryProps);
|
|
22
|
+
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
23
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
24
|
+
resetError: () => void;
|
|
25
|
+
render(): string | number | bigint | boolean | react_jsx_runtime56.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
26
|
+
}
|
|
27
|
+
declare const useErrorHandler: () => (error: Error) => never;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ErrorBoundary, type ErrorBoundaryProps, type ErrorFallbackProps, useErrorHandler };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ListPageProps } from "./types.js";
|
|
2
|
+
import * as react_jsx_runtime158 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region ui/organisms/ListPage/ListPage.d.ts
|
|
5
|
+
declare function ListPage<T>({
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
header,
|
|
9
|
+
items,
|
|
10
|
+
totalItems,
|
|
11
|
+
totalPages,
|
|
12
|
+
isLoading,
|
|
13
|
+
isFetching,
|
|
14
|
+
error,
|
|
15
|
+
listState,
|
|
16
|
+
searchPlaceholder,
|
|
17
|
+
filters,
|
|
18
|
+
onRefresh,
|
|
19
|
+
primaryAction,
|
|
20
|
+
toolbar,
|
|
21
|
+
renderItem,
|
|
22
|
+
renderEmpty,
|
|
23
|
+
renderStats,
|
|
24
|
+
className,
|
|
25
|
+
itemClassName
|
|
26
|
+
}: ListPageProps<T>): react_jsx_runtime158.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ListPage };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FilterOption } from "../../atoms/FilterSelect/types.js";
|
|
2
|
+
import "../../atoms/FilterSelect/index.js";
|
|
3
|
+
import { UseListStateReturn } from "../../useListState.js";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
|
|
6
|
+
//#region ui/organisms/ListPage/types.d.ts
|
|
7
|
+
interface ListPageFilter {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
options: FilterOption[];
|
|
11
|
+
showCounts?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface ListPageProps<T = unknown> {
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
header?: ReactNode;
|
|
17
|
+
items: T[];
|
|
18
|
+
totalItems: number;
|
|
19
|
+
totalPages: number;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isFetching?: boolean;
|
|
22
|
+
error?: Error | null;
|
|
23
|
+
listState: UseListStateReturn;
|
|
24
|
+
searchPlaceholder?: string;
|
|
25
|
+
filters?: ListPageFilter[];
|
|
26
|
+
onRefresh?: () => void;
|
|
27
|
+
primaryAction?: {
|
|
28
|
+
label: string;
|
|
29
|
+
href?: string;
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
icon?: ReactNode;
|
|
32
|
+
};
|
|
33
|
+
toolbar?: ReactNode;
|
|
34
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
35
|
+
renderEmpty?: () => ReactNode;
|
|
36
|
+
renderStats?: (items: T[]) => ReactNode;
|
|
37
|
+
className?: string;
|
|
38
|
+
itemClassName?: string;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ListPageFilter, ListPageProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime156 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types13 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region ui/page-header.d.ts
|
|
7
|
+
declare const headerVariants: (props?: ({
|
|
8
|
+
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types13.ClassProp) | undefined) => string;
|
|
10
|
+
interface PageHeaderProps extends VariantProps<typeof headerVariants> {
|
|
11
|
+
breadcrumb?: React$1.ReactNode;
|
|
12
|
+
title: React$1.ReactNode;
|
|
13
|
+
subtitle?: React$1.ReactNode;
|
|
14
|
+
actions?: React$1.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function PageHeader({
|
|
18
|
+
breadcrumb,
|
|
19
|
+
title,
|
|
20
|
+
subtitle,
|
|
21
|
+
actions,
|
|
22
|
+
spacing,
|
|
23
|
+
className
|
|
24
|
+
}: PageHeaderProps): react_jsx_runtime156.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { PageHeader, PageHeaderProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
|
|
4
|
+
//#region ui/password-strength.d.ts
|
|
5
|
+
declare const passwordSchema: z.ZodString;
|
|
6
|
+
declare function getPasswordStrength(password: string): {
|
|
7
|
+
score: number;
|
|
8
|
+
feedback: string[];
|
|
9
|
+
isValid: boolean;
|
|
10
|
+
};
|
|
11
|
+
interface PasswordStrengthProps {
|
|
12
|
+
password: string;
|
|
13
|
+
showFeedback?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function PasswordStrength({
|
|
16
|
+
password,
|
|
17
|
+
showFeedback
|
|
18
|
+
}: PasswordStrengthProps): react_jsx_runtime28.JSX.Element | null;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PasswordStrength, getPasswordStrength, passwordSchema };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react8 from "react";
|
|
2
|
+
import * as react_native56 from "react-native";
|
|
3
|
+
import * as react_jsx_runtime152 from "react/jsx-runtime";
|
|
4
|
+
import * as _rn_primitives_popover0 from "@rn-primitives/popover";
|
|
5
|
+
|
|
6
|
+
//#region ui/popover.d.ts
|
|
7
|
+
declare const Popover: react8.ForwardRefExoticComponent<react_native56.ViewProps & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
} & react8.RefAttributes<react_native56.View>>;
|
|
12
|
+
declare const PopoverTrigger: react8.ForwardRefExoticComponent<Omit<react_native56.PressableProps & react8.RefAttributes<react_native56.View>, "ref"> & {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
16
|
+
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
17
|
+
} & react8.RefAttributes<_rn_primitives_popover0.TriggerRef>>;
|
|
18
|
+
declare function PopoverContent({
|
|
19
|
+
className,
|
|
20
|
+
align,
|
|
21
|
+
sideOffset,
|
|
22
|
+
portalHost,
|
|
23
|
+
...props
|
|
24
|
+
}: _rn_primitives_popover0.ContentProps & {
|
|
25
|
+
ref?: React.RefObject<_rn_primitives_popover0.ContentRef>;
|
|
26
|
+
portalHost?: string;
|
|
27
|
+
}): react_jsx_runtime152.JSX.Element;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime148 from "react/jsx-runtime";
|
|
3
|
+
import * as ProgressPrimitive from "@rn-primitives/progress";
|
|
4
|
+
|
|
5
|
+
//#region ui/progress.d.ts
|
|
6
|
+
declare function Progress({
|
|
7
|
+
className,
|
|
8
|
+
value,
|
|
9
|
+
indicatorClassName,
|
|
10
|
+
...props
|
|
11
|
+
}: ProgressPrimitive.RootProps & {
|
|
12
|
+
ref?: React$1.RefObject<ProgressPrimitive.RootRef>;
|
|
13
|
+
indicatorClassName?: string;
|
|
14
|
+
}): react_jsx_runtime148.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Progress };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime111 from "react/jsx-runtime";
|
|
2
|
+
import * as RadioGroupPrimitive from "@rn-primitives/radio-group";
|
|
3
|
+
|
|
4
|
+
//#region ui/radio-group.d.ts
|
|
5
|
+
declare function RadioGroup({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: RadioGroupPrimitive.RootProps & React.RefAttributes<RadioGroupPrimitive.RootRef>): react_jsx_runtime111.JSX.Element;
|
|
9
|
+
declare function RadioGroupItem({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: RadioGroupPrimitive.ItemProps & React.RefAttributes<RadioGroupPrimitive.ItemRef>): react_jsx_runtime111.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_native40 from "react-native";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import * as react_jsx_runtime130 from "react/jsx-runtime";
|
|
5
|
+
import * as _rn_primitives_select0 from "@rn-primitives/select";
|
|
6
|
+
|
|
7
|
+
//#region ui/select.d.ts
|
|
8
|
+
type Option = _rn_primitives_select0.Option;
|
|
9
|
+
declare const Select: React$1.ForwardRefExoticComponent<react_native40.ViewProps & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
} & {
|
|
12
|
+
value?: _rn_primitives_select0.Option;
|
|
13
|
+
defaultValue?: _rn_primitives_select0.Option;
|
|
14
|
+
onValueChange?: (option: _rn_primitives_select0.Option) => void;
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
dir?: "ltr" | "rtl";
|
|
18
|
+
name?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
} & React$1.RefAttributes<View>>;
|
|
21
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<react_native40.ViewProps & {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
} & React$1.RefAttributes<View>>;
|
|
24
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<react_native40.TextProps & {
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
placeholder: string;
|
|
28
|
+
} & React$1.RefAttributes<react_native40.Text>>;
|
|
29
|
+
declare function SelectTrigger({
|
|
30
|
+
ref,
|
|
31
|
+
className,
|
|
32
|
+
children,
|
|
33
|
+
...props
|
|
34
|
+
}: _rn_primitives_select0.TriggerProps & {
|
|
35
|
+
ref?: React$1.RefObject<_rn_primitives_select0.TriggerRef>;
|
|
36
|
+
children?: React$1.ReactNode;
|
|
37
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Platform: WEB ONLY
|
|
40
|
+
*/
|
|
41
|
+
declare function SelectScrollUpButton({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}: _rn_primitives_select0.ScrollUpButtonProps): react_jsx_runtime130.JSX.Element | null;
|
|
45
|
+
/**
|
|
46
|
+
* Platform: WEB ONLY
|
|
47
|
+
*/
|
|
48
|
+
declare function SelectScrollDownButton({
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}: _rn_primitives_select0.ScrollDownButtonProps): react_jsx_runtime130.JSX.Element | null;
|
|
52
|
+
declare function SelectContent({
|
|
53
|
+
className,
|
|
54
|
+
children,
|
|
55
|
+
position,
|
|
56
|
+
portalHost,
|
|
57
|
+
...props
|
|
58
|
+
}: _rn_primitives_select0.ContentProps & {
|
|
59
|
+
ref?: React$1.RefObject<_rn_primitives_select0.ContentRef>;
|
|
60
|
+
className?: string;
|
|
61
|
+
portalHost?: string;
|
|
62
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
63
|
+
declare function SelectLabel({
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}: _rn_primitives_select0.LabelProps & {
|
|
67
|
+
ref?: React$1.RefObject<_rn_primitives_select0.LabelRef>;
|
|
68
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
69
|
+
declare function SelectItem({
|
|
70
|
+
className,
|
|
71
|
+
children,
|
|
72
|
+
...props
|
|
73
|
+
}: _rn_primitives_select0.ItemProps & {
|
|
74
|
+
ref?: React$1.RefObject<_rn_primitives_select0.ItemRef>;
|
|
75
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
76
|
+
declare function SelectSeparator({
|
|
77
|
+
className,
|
|
78
|
+
...props
|
|
79
|
+
}: _rn_primitives_select0.SeparatorProps & {
|
|
80
|
+
ref?: React$1.RefObject<_rn_primitives_select0.SeparatorRef>;
|
|
81
|
+
}): react_jsx_runtime130.JSX.Element;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { type Option, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime149 from "react/jsx-runtime";
|
|
3
|
+
import * as SeparatorPrimitive from "@rn-primitives/separator";
|
|
4
|
+
|
|
5
|
+
//#region ui/separator.d.ts
|
|
6
|
+
declare function Separator({
|
|
7
|
+
className,
|
|
8
|
+
orientation,
|
|
9
|
+
decorative,
|
|
10
|
+
...props
|
|
11
|
+
}: SeparatorPrimitive.RootProps & {
|
|
12
|
+
ref?: React$1.RefObject<SeparatorPrimitive.RootRef>;
|
|
13
|
+
}): react_jsx_runtime149.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Separator };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import * as react_jsx_runtime151 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region ui/skeleton.d.ts
|
|
6
|
+
declare function Skeleton({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: Omit<React$1.ComponentPropsWithoutRef<typeof View>, 'style'>): react_jsx_runtime151.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Skeleton };
|