@lssm/lib.ui-kit 1.11.1 → 1.41.1

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.
Files changed (157) hide show
  1. package/README.md +5 -0
  2. package/dist/-core/src/utils.js +10 -0
  3. package/dist/_virtual/rolldown_runtime.js +33 -0
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/ui/accordion.js +1 -1
  6. package/dist/ui/alert-dialog.js +1 -1
  7. package/dist/ui/alert.js +1 -1
  8. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +3 -3
  9. package/dist/ui/atoms/Pagination/Pagination.js +4 -1
  10. package/dist/ui/atoms/SearchInput/SearchInput.js +2 -1
  11. package/dist/ui/avatar.js +1 -1
  12. package/dist/ui/badge.js +1 -1
  13. package/dist/ui/breadcrumb.js +4 -3
  14. package/dist/ui/button.js +1 -1
  15. package/dist/ui/card.js +1 -1
  16. package/dist/ui/checkbox.js +1 -1
  17. package/dist/ui/context-menu.js +1 -1
  18. package/dist/ui/date-picker.js +1 -1
  19. package/dist/ui/date-range-picker.js +1 -1
  20. package/dist/ui/dialog.js +1 -1
  21. package/dist/ui/dropdown-menu.js +1 -1
  22. package/dist/ui/empty-state.js +1 -1
  23. package/dist/ui/empty.js +1 -1
  24. package/dist/ui/fab.js +1 -1
  25. package/dist/ui/field.js +1 -1
  26. package/dist/ui/form.js +1 -1
  27. package/dist/ui/hover-card.js +1 -1
  28. package/dist/ui/input.js +1 -1
  29. package/dist/ui/label.js +1 -1
  30. package/dist/ui/link.js +1 -1
  31. package/dist/ui/marketing/Hero.js +1 -1
  32. package/dist/ui/marketing/PricingTable.js +1 -1
  33. package/dist/ui/menubar.js +1 -1
  34. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +4 -2
  35. package/dist/ui/nativewind-env.d.js +0 -0
  36. package/dist/ui/navigation-menu.js +1 -1
  37. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +5 -3
  38. package/dist/ui/organisms/ListPage/ListPage.js +12 -7
  39. package/dist/ui/page-header.js +1 -1
  40. package/dist/ui/popover.js +1 -1
  41. package/dist/ui/progress.js +1 -1
  42. package/dist/ui/radio-group.js +1 -1
  43. package/dist/ui/select.js +1 -1
  44. package/dist/ui/separator.js +1 -1
  45. package/dist/ui/skeleton.js +1 -1
  46. package/dist/ui/stack.js +1 -1
  47. package/dist/ui/stepper.js +1 -1
  48. package/dist/ui/switch.js +1 -1
  49. package/dist/ui/table.js +1 -1
  50. package/dist/ui/tabs.js +1 -1
  51. package/dist/ui/text.js +1 -1
  52. package/dist/ui/textarea.js +1 -1
  53. package/dist/ui/time-picker.js +1 -1
  54. package/dist/ui/toggle-group.js +1 -1
  55. package/dist/ui/toggle.js +1 -1
  56. package/dist/ui/tooltip.js +1 -1
  57. package/dist/ui/typography.js +1 -1
  58. package/package.json +205 -114
  59. package/dist/index.d.ts +0 -4
  60. package/dist/ui/accordion.d.ts +0 -35
  61. package/dist/ui/alert-dialog.d.ts +0 -71
  62. package/dist/ui/alert.d.ts +0 -36
  63. package/dist/ui/aspect-ratio.d.ts +0 -11
  64. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -7
  65. package/dist/ui/atoms/FilterSelect/index.d.ts +0 -3
  66. package/dist/ui/atoms/FilterSelect/types.d.ts +0 -18
  67. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -22
  68. package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -2
  69. package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -7
  70. package/dist/ui/atoms/Pagination/index.d.ts +0 -3
  71. package/dist/ui/atoms/Pagination/types.d.ts +0 -15
  72. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -7
  73. package/dist/ui/atoms/SearchInput/index.d.ts +0 -3
  74. package/dist/ui/atoms/SearchInput/types.d.ts +0 -12
  75. package/dist/ui/avatar.d.ts +0 -27
  76. package/dist/ui/badge.d.ts +0 -21
  77. package/dist/ui/breadcrumb.d.ts +0 -38
  78. package/dist/ui/button.d.ts +0 -25
  79. package/dist/ui/card.d.ts +0 -43
  80. package/dist/ui/carousel.d.ts +0 -4
  81. package/dist/ui/checkbox.d.ts +0 -16
  82. package/dist/ui/collapsible.d.ts +0 -24
  83. package/dist/ui/command.d.ts +0 -4
  84. package/dist/ui/context-menu.d.ts +0 -109
  85. package/dist/ui/date-picker.d.ts +0 -23
  86. package/dist/ui/date-range-picker.d.ts +0 -30
  87. package/dist/ui/datetime-picker.d.ts +0 -27
  88. package/dist/ui/dialog.d.ts +0 -68
  89. package/dist/ui/dropdown-menu.d.ts +0 -111
  90. package/dist/ui/empty-state.d.ts +0 -28
  91. package/dist/ui/empty.d.ts +0 -36
  92. package/dist/ui/fab.d.ts +0 -35
  93. package/dist/ui/field.d.ts +0 -66
  94. package/dist/ui/form.d.ts +0 -49
  95. package/dist/ui/hover-card.d.ts +0 -29
  96. package/dist/ui/icons/Check.d.ts +0 -2
  97. package/dist/ui/icons/ChevronDown.d.ts +0 -2
  98. package/dist/ui/icons/ChevronRight.d.ts +0 -2
  99. package/dist/ui/icons/ChevronUp.d.ts +0 -2
  100. package/dist/ui/icons/CircleUser.d.ts +0 -2
  101. package/dist/ui/icons/Info.d.ts +0 -2
  102. package/dist/ui/icons/Key.d.ts +0 -2
  103. package/dist/ui/icons/MoonStar.d.ts +0 -2
  104. package/dist/ui/icons/Sun.d.ts +0 -2
  105. package/dist/ui/icons/X.d.ts +0 -2
  106. package/dist/ui/icons/iconWithClassName.d.ts +0 -6
  107. package/dist/ui/input.d.ts +0 -14
  108. package/dist/ui/label.d.ts +0 -15
  109. package/dist/ui/link.d.ts +0 -13
  110. package/dist/ui/loading-button.d.ts +0 -19
  111. package/dist/ui/loading-overlay.d.ts +0 -15
  112. package/dist/ui/loading-screen.d.ts +0 -13
  113. package/dist/ui/marketing/FeatureGrid.d.ts +0 -20
  114. package/dist/ui/marketing/Hero.d.ts +0 -27
  115. package/dist/ui/marketing/PricingTable.d.ts +0 -24
  116. package/dist/ui/marketing/index.d.ts +0 -4
  117. package/dist/ui/menubar.d.ts +0 -114
  118. package/dist/ui/molecules/Autocomplete/index.d.ts +0 -4
  119. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -7
  120. package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -3
  121. package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -24
  122. package/dist/ui/molecules/SkeletonList.d.ts +0 -15
  123. package/dist/ui/nativewind-env.d.ts +0 -1
  124. package/dist/ui/navigation-menu.d.ts +0 -67
  125. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -29
  126. package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
  127. package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -28
  128. package/dist/ui/organisms/ListPage/index.d.ts +0 -3
  129. package/dist/ui/organisms/ListPage/types.d.ts +0 -41
  130. package/dist/ui/page-header.d.ts +0 -26
  131. package/dist/ui/password-strength.d.ts +0 -20
  132. package/dist/ui/popover.d.ts +0 -29
  133. package/dist/ui/progress.d.ts +0 -16
  134. package/dist/ui/radio-group.d.ts +0 -14
  135. package/dist/ui/select.d.ts +0 -83
  136. package/dist/ui/separator.d.ts +0 -15
  137. package/dist/ui/sheet.d.ts +0 -4
  138. package/dist/ui/sidebar.d.ts +0 -4
  139. package/dist/ui/skeleton.d.ts +0 -11
  140. package/dist/ui/stack.d.ts +0 -76
  141. package/dist/ui/stepper.d.ts +0 -22
  142. package/dist/ui/switch.d.ts +0 -14
  143. package/dist/ui/table.d.ts +0 -50
  144. package/dist/ui/tabs.d.ts +0 -32
  145. package/dist/ui/text.d.ts +0 -20
  146. package/dist/ui/textarea.d.ts +0 -9
  147. package/dist/ui/time-picker.d.ts +0 -21
  148. package/dist/ui/toggle-group.d.ts +0 -35
  149. package/dist/ui/toggle.d.ts +0 -33
  150. package/dist/ui/tooltip.d.ts +0 -31
  151. package/dist/ui/typography.d.ts +0 -64
  152. package/dist/ui/useColorScheme.d.ts +0 -11
  153. package/dist/ui/useListState.d.ts +0 -33
  154. package/dist/ui/usecases/UseCaseCard.d.ts +0 -18
  155. package/dist/ui/usecases/UserStoryCard.d.ts +0 -14
  156. package/dist/ui/usecases/index.d.ts +0 -3
  157. package/dist/ui/utils.d.ts +0 -6
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import * as react_jsx_runtime110 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_runtime110.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 };
@@ -1,2 +0,0 @@
1
- import { ErrorBoundary, ErrorBoundaryProps, ErrorFallbackProps, useErrorHandler } from "./ErrorBoundary.js";
2
- export { ErrorBoundary, type ErrorBoundaryProps, type ErrorFallbackProps, useErrorHandler };
@@ -1,28 +0,0 @@
1
- import { ListPageProps } from "./types.js";
2
- import * as react_jsx_runtime113 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_runtime113.JSX.Element;
27
- //#endregion
28
- export { ListPage };
@@ -1,3 +0,0 @@
1
- import { ListPageFilter, ListPageProps } from "./types.js";
2
- import { ListPage } from "./ListPage.js";
3
- export { ListPage, type ListPageFilter, type ListPageProps };
@@ -1,41 +0,0 @@
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 };
@@ -1,26 +0,0 @@
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" | "lg" | "md" | 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 };
@@ -1,20 +0,0 @@
1
- import * as react_jsx_runtime137 from "react/jsx-runtime";
2
- import { 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_runtime137.JSX.Element | null;
19
- //#endregion
20
- export { PasswordStrength, getPasswordStrength, passwordSchema };
@@ -1,29 +0,0 @@
1
- import * as react8 from "react";
2
- import * as react_native56 from "react-native";
3
- import * as react_jsx_runtime158 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_runtime158.JSX.Element;
28
- //#endregion
29
- export { Popover, PopoverContent, PopoverTrigger };
@@ -1,16 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime157 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_runtime157.JSX.Element;
15
- //#endregion
16
- export { Progress };
@@ -1,14 +0,0 @@
1
- import * as react_jsx_runtime159 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_runtime159.JSX.Element;
9
- declare function RadioGroupItem({
10
- className,
11
- ...props
12
- }: RadioGroupPrimitive.ItemProps & React.RefAttributes<RadioGroupPrimitive.ItemRef>): react_jsx_runtime159.JSX.Element;
13
- //#endregion
14
- export { RadioGroup, RadioGroupItem };
@@ -1,83 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_native1 from "react-native";
3
- import { View } from "react-native";
4
- import * as react_jsx_runtime10 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_native1.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_native1.ViewProps & {
22
- asChild?: boolean;
23
- } & React$1.RefAttributes<View>>;
24
- declare const SelectValue: React$1.ForwardRefExoticComponent<react_native1.TextProps & {
25
- asChild?: boolean;
26
- } & {
27
- placeholder: string;
28
- } & React$1.RefAttributes<react_native1.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_runtime10.JSX.Element;
38
- /**
39
- * Platform: WEB ONLY
40
- */
41
- declare function SelectScrollUpButton({
42
- className,
43
- ...props
44
- }: _rn_primitives_select0.ScrollUpButtonProps): react_jsx_runtime10.JSX.Element | null;
45
- /**
46
- * Platform: WEB ONLY
47
- */
48
- declare function SelectScrollDownButton({
49
- className,
50
- ...props
51
- }: _rn_primitives_select0.ScrollDownButtonProps): react_jsx_runtime10.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_runtime10.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_runtime10.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_runtime10.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_runtime10.JSX.Element;
82
- //#endregion
83
- export { type Option, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -1,15 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime161 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_runtime161.JSX.Element;
14
- //#endregion
15
- export { Separator };
@@ -1,4 +0,0 @@
1
- //#region ui/sheet.d.ts
2
- declare const sheet = "null";
3
- //#endregion
4
- export { sheet };
@@ -1,4 +0,0 @@
1
- //#region ui/sidebar.d.ts
2
- declare const sidebar = "null";
3
- //#endregion
4
- export { sidebar };
@@ -1,11 +0,0 @@
1
- import * as React$1 from "react";
2
- import { View } from "react-native";
3
- import * as react_jsx_runtime98 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_runtime98.JSX.Element;
10
- //#endregion
11
- export { Skeleton };
@@ -1,76 +0,0 @@
1
- import * as React$1 from "react";
2
- import { View, ViewProps } from "react-native";
3
- import * as react_jsx_runtime34 from "react/jsx-runtime";
4
- import { VariantProps } from "class-variance-authority";
5
- import * as class_variance_authority_types4 from "class-variance-authority/types";
6
-
7
- //#region ui/stack.d.ts
8
- declare const vStackVariants: (props?: ({
9
- spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
10
- align?: "stretch" | "start" | "center" | "end" | null | undefined;
11
- justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
12
- width?: "auto" | "full" | "screen" | "fit" | null | undefined;
13
- padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
14
- gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
15
- } & class_variance_authority_types4.ClassProp) | undefined) => string;
16
- declare const hStackVariants: (props?: ({
17
- spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
18
- align?: "stretch" | "start" | "center" | "end" | "baseline" | null | undefined;
19
- justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
20
- width?: "auto" | "full" | "screen" | "fit" | null | undefined;
21
- padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
22
- gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
23
- wrap?: "wrap" | "nowrap" | "reverse" | null | undefined;
24
- } & class_variance_authority_types4.ClassProp) | undefined) => string;
25
- declare const boxVariants: (props?: ({
26
- spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
27
- align?: "stretch" | "start" | "center" | "end" | "baseline" | null | undefined;
28
- justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
29
- width?: "auto" | "full" | "screen" | "fit" | null | undefined;
30
- padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
31
- gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
32
- wrap?: "wrap" | "nowrap" | "reverse" | null | undefined;
33
- } & class_variance_authority_types4.ClassProp) | undefined) => string;
34
- type BoxProps = ViewProps & VariantProps<typeof boxVariants> & {
35
- ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
36
- };
37
- type VStackProps = ViewProps & VariantProps<typeof vStackVariants> & {
38
- ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
39
- };
40
- type HStackProps = ViewProps & VariantProps<typeof hStackVariants> & {
41
- ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
42
- };
43
- declare function Box({
44
- className,
45
- spacing,
46
- align,
47
- justify,
48
- width,
49
- padding,
50
- gap,
51
- wrap,
52
- ...props
53
- }: BoxProps): react_jsx_runtime34.JSX.Element;
54
- declare function HStack({
55
- className,
56
- spacing,
57
- align,
58
- justify,
59
- width,
60
- padding,
61
- gap,
62
- wrap,
63
- ...props
64
- }: HStackProps): react_jsx_runtime34.JSX.Element;
65
- declare function VStack({
66
- className,
67
- spacing,
68
- align,
69
- justify,
70
- width,
71
- padding,
72
- gap,
73
- ...props
74
- }: VStackProps): react_jsx_runtime34.JSX.Element;
75
- //#endregion
76
- export { Box, type BoxProps, HStack, type HStackProps, VStack, type VStackProps };
@@ -1,22 +0,0 @@
1
- import * as react_jsx_runtime33 from "react/jsx-runtime";
2
- import { VariantProps } from "class-variance-authority";
3
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
-
5
- //#region ui/stepper.d.ts
6
- declare const dotVariants: (props?: ({
7
- state?: "active" | "inactive" | null | undefined;
8
- size?: "sm" | "md" | null | undefined;
9
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
10
- interface StepperProps extends VariantProps<typeof dotVariants> {
11
- current: number;
12
- total: number;
13
- className?: string;
14
- }
15
- declare function Stepper({
16
- current,
17
- total,
18
- size,
19
- className
20
- }: StepperProps): react_jsx_runtime33.JSX.Element;
21
- //#endregion
22
- export { Stepper, StepperProps };
@@ -1,14 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime37 from "react/jsx-runtime";
3
- import * as SwitchPrimitives from "@rn-primitives/switch";
4
-
5
- //#region ui/switch.d.ts
6
- declare function SwitchNative({
7
- className,
8
- ...props
9
- }: SwitchPrimitives.RootProps & {
10
- ref?: React$1.RefObject<SwitchPrimitives.RootRef>;
11
- }): react_jsx_runtime37.JSX.Element;
12
- declare const Switch: typeof SwitchNative;
13
- //#endregion
14
- export { Switch };
@@ -1,50 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime38 from "react/jsx-runtime";
3
- import * as TablePrimitive from "@rn-primitives/table";
4
-
5
- //#region ui/table.d.ts
6
- declare function Table({
7
- className,
8
- ...props
9
- }: TablePrimitive.RootProps & {
10
- ref?: React$1.RefObject<TablePrimitive.RootRef>;
11
- }): react_jsx_runtime38.JSX.Element;
12
- declare function TableHeader({
13
- className,
14
- ...props
15
- }: TablePrimitive.HeaderProps & {
16
- ref?: React$1.RefObject<TablePrimitive.HeaderRef>;
17
- }): react_jsx_runtime38.JSX.Element;
18
- declare function TableBody({
19
- className,
20
- style,
21
- ...props
22
- }: TablePrimitive.BodyProps & {
23
- ref?: React$1.RefObject<TablePrimitive.BodyRef>;
24
- }): react_jsx_runtime38.JSX.Element;
25
- declare function TableFooter({
26
- className,
27
- ...props
28
- }: TablePrimitive.FooterProps & {
29
- ref?: React$1.RefObject<TablePrimitive.FooterRef>;
30
- }): react_jsx_runtime38.JSX.Element;
31
- declare function TableRow({
32
- className,
33
- ...props
34
- }: TablePrimitive.RowProps & {
35
- ref?: React$1.RefObject<TablePrimitive.RowRef>;
36
- }): react_jsx_runtime38.JSX.Element;
37
- declare function TableHead({
38
- className,
39
- ...props
40
- }: TablePrimitive.HeadProps & {
41
- ref?: React$1.RefObject<TablePrimitive.HeadRef>;
42
- }): react_jsx_runtime38.JSX.Element;
43
- declare function TableCell({
44
- className,
45
- ...props
46
- }: TablePrimitive.CellProps & {
47
- ref?: React$1.RefObject<TablePrimitive.CellRef>;
48
- }): react_jsx_runtime38.JSX.Element;
49
- //#endregion
50
- export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
package/dist/ui/tabs.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_native16 from "react-native";
3
- import * as _rn_primitives_types1 from "@rn-primitives/types";
4
-
5
- //#region ui/tabs.d.ts
6
- declare const Tabs: React$1.ForwardRefExoticComponent<react_native16.ViewProps & {
7
- asChild?: boolean;
8
- } & {
9
- value: string;
10
- onValueChange: (value: string) => void;
11
- orientation?: "horizontal" | "vertical";
12
- dir?: "ltr" | "rtl";
13
- activationMode?: "automatic" | "manual";
14
- } & React$1.RefAttributes<react_native16.View>>;
15
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<react_native16.ViewProps & {
16
- asChild?: boolean;
17
- } & React$1.RefAttributes<react_native16.View>, "ref"> & React$1.RefAttributes<react_native16.View>>;
18
- declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<react_native16.PressableProps & React$1.RefAttributes<react_native16.View>, "ref"> & {
19
- asChild?: boolean;
20
- } & {
21
- onKeyDown?: (ev: React$1.KeyboardEvent) => void;
22
- onKeyUp?: (ev: React$1.KeyboardEvent) => void;
23
- } & {
24
- value: string;
25
- } & React$1.RefAttributes<react_native16.View>, "ref"> & React$1.RefAttributes<react_native16.View>>;
26
- declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<react_native16.ViewProps & {
27
- asChild?: boolean;
28
- } & _rn_primitives_types1.ForceMountable & {
29
- value: string;
30
- } & React$1.RefAttributes<react_native16.View>, "ref"> & React$1.RefAttributes<react_native16.View>>;
31
- //#endregion
32
- export { Tabs, TabsContent, TabsList, TabsTrigger };
package/dist/ui/text.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import * as React$1 from "react";
2
- import { Text as Text$1 } from "react-native";
3
- import * as react_jsx_runtime45 from "react/jsx-runtime";
4
-
5
- //#region ui/text.d.ts
6
- declare const TextClassContext: React$1.Context<string | undefined>;
7
- type TextProps = React$1.ComponentProps<typeof Text$1> & {
8
- ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
9
- asChild?: boolean;
10
- };
11
- declare function Text({
12
- className,
13
- asChild,
14
- ...props
15
- }: React$1.ComponentProps<typeof Text$1> & {
16
- ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
17
- asChild?: boolean;
18
- }): react_jsx_runtime45.JSX.Element;
19
- //#endregion
20
- export { Text, TextClassContext, TextProps };
@@ -1,9 +0,0 @@
1
- import * as React$1 from "react";
2
- import { TextInput, TextInputProps } from "react-native";
3
-
4
- //#region ui/textarea.d.ts
5
- declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextInputProps & {
6
- ref?: React$1.RefObject<TextInput>;
7
- }, "ref"> & React$1.RefAttributes<TextInput>>;
8
- //#endregion
9
- export { Textarea };
@@ -1,21 +0,0 @@
1
- import * as react_jsx_runtime56 from "react/jsx-runtime";
2
-
3
- //#region ui/time-picker.d.ts
4
- interface TimePickerProps {
5
- value: Date | null;
6
- onChange: (date: Date | null) => void;
7
- disabled?: boolean;
8
- placeholder?: string;
9
- is24Hour?: boolean;
10
- className?: string;
11
- }
12
- declare function TimePicker({
13
- value,
14
- onChange,
15
- disabled,
16
- placeholder,
17
- is24Hour,
18
- className
19
- }: TimePickerProps): react_jsx_runtime56.JSX.Element;
20
- //#endregion
21
- export { TimePicker, TimePickerProps };
@@ -1,35 +0,0 @@
1
- import { toggleVariants } from "./toggle.js";
2
- import * as React$1 from "react";
3
- import { LucideIcon } from "lucide-react-native";
4
- import * as react_jsx_runtime59 from "react/jsx-runtime";
5
- import { VariantProps } from "class-variance-authority";
6
- import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
7
-
8
- //#region ui/toggle-group.d.ts
9
- declare function ToggleGroup({
10
- className,
11
- variant,
12
- size,
13
- children,
14
- ...props
15
- }: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & {
16
- ref?: React$1.RefObject<ToggleGroupPrimitive.RootRef>;
17
- }): react_jsx_runtime59.JSX.Element;
18
- declare function ToggleGroupItem({
19
- className,
20
- children,
21
- variant,
22
- size,
23
- ...props
24
- }: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & {
25
- ref?: React$1.RefObject<ToggleGroupPrimitive.ItemRef>;
26
- }): react_jsx_runtime59.JSX.Element;
27
- declare function ToggleGroupIcon({
28
- className,
29
- icon: Icon,
30
- ...props
31
- }: React$1.ComponentPropsWithoutRef<LucideIcon> & {
32
- icon: LucideIcon;
33
- }): react_jsx_runtime59.JSX.Element;
34
- //#endregion
35
- export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
@@ -1,33 +0,0 @@
1
- import * as React$1 from "react";
2
- import { LucideIcon } from "lucide-react-native";
3
- import * as react_jsx_runtime68 from "react/jsx-runtime";
4
- import { VariantProps } from "class-variance-authority";
5
- import * as TogglePrimitive from "@rn-primitives/toggle";
6
- import * as class_variance_authority_types7 from "class-variance-authority/types";
7
-
8
- //#region ui/toggle.d.ts
9
- declare const toggleVariants: (props?: ({
10
- variant?: "default" | "outline" | null | undefined;
11
- size?: "default" | "sm" | "lg" | null | undefined;
12
- } & class_variance_authority_types7.ClassProp) | undefined) => string;
13
- declare const toggleTextVariants: (props?: ({
14
- variant?: "default" | "outline" | null | undefined;
15
- size?: "default" | "sm" | "lg" | null | undefined;
16
- } & class_variance_authority_types7.ClassProp) | undefined) => string;
17
- declare function Toggle({
18
- className,
19
- variant,
20
- size,
21
- ...props
22
- }: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & VariantProps<typeof toggleVariants> & {
23
- ref?: React$1.RefObject<TogglePrimitive.RootRef>;
24
- }): react_jsx_runtime68.JSX.Element;
25
- declare function ToggleIcon({
26
- className,
27
- icon: Icon,
28
- ...props
29
- }: React$1.ComponentPropsWithoutRef<LucideIcon> & {
30
- icon: LucideIcon;
31
- }): react_jsx_runtime68.JSX.Element;
32
- //#endregion
33
- export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };