panelui-native 0.1.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.
Files changed (122) hide show
  1. package/lib/module/components/alert/index.js +122 -0
  2. package/lib/module/components/alert/index.js.map +1 -0
  3. package/lib/module/components/avatar/index.js +74 -0
  4. package/lib/module/components/avatar/index.js.map +1 -0
  5. package/lib/module/components/badge/index.js +77 -0
  6. package/lib/module/components/badge/index.js.map +1 -0
  7. package/lib/module/components/bottom-sheet/index.js +137 -0
  8. package/lib/module/components/bottom-sheet/index.js.map +1 -0
  9. package/lib/module/components/button/index.js +101 -0
  10. package/lib/module/components/button/index.js.map +1 -0
  11. package/lib/module/components/card/index.js +73 -0
  12. package/lib/module/components/card/index.js.map +1 -0
  13. package/lib/module/components/checkbox/index.js +84 -0
  14. package/lib/module/components/checkbox/index.js.map +1 -0
  15. package/lib/module/components/dialog/index.js +140 -0
  16. package/lib/module/components/dialog/index.js.map +1 -0
  17. package/lib/module/components/input/index.js +92 -0
  18. package/lib/module/components/input/index.js.map +1 -0
  19. package/lib/module/components/radio-group/index.js +92 -0
  20. package/lib/module/components/radio-group/index.js.map +1 -0
  21. package/lib/module/components/select/index.js +147 -0
  22. package/lib/module/components/select/index.js.map +1 -0
  23. package/lib/module/components/skeleton/index.js +26 -0
  24. package/lib/module/components/skeleton/index.js.map +1 -0
  25. package/lib/module/components/spinner/index.js +47 -0
  26. package/lib/module/components/spinner/index.js.map +1 -0
  27. package/lib/module/components/switch/index.js +96 -0
  28. package/lib/module/components/switch/index.js.map +1 -0
  29. package/lib/module/components/tabs/index.js +161 -0
  30. package/lib/module/components/tabs/index.js.map +1 -0
  31. package/lib/module/icons/index.js +65 -0
  32. package/lib/module/icons/index.js.map +1 -0
  33. package/lib/module/index.js +36 -0
  34. package/lib/module/index.js.map +1 -0
  35. package/lib/module/package.json +1 -0
  36. package/lib/module/primitives/animated-pressable.js +51 -0
  37. package/lib/module/primitives/animated-pressable.js.map +1 -0
  38. package/lib/module/primitives/portal.js +76 -0
  39. package/lib/module/primitives/portal.js.map +1 -0
  40. package/lib/module/primitives/text.js +51 -0
  41. package/lib/module/primitives/text.js.map +1 -0
  42. package/lib/module/providers/panel-ui-provider.js +29 -0
  43. package/lib/module/providers/panel-ui-provider.js.map +1 -0
  44. package/lib/module/theme/use-theme.js +19 -0
  45. package/lib/module/theme/use-theme.js.map +1 -0
  46. package/lib/module/uniwind-env.d.js +4 -0
  47. package/lib/module/uniwind-env.d.js.map +1 -0
  48. package/lib/module/utils/cn.js +8 -0
  49. package/lib/module/utils/cn.js.map +1 -0
  50. package/lib/typescript/package.json +1 -0
  51. package/lib/typescript/src/components/alert/index.d.ts +113 -0
  52. package/lib/typescript/src/components/alert/index.d.ts.map +1 -0
  53. package/lib/typescript/src/components/avatar/index.d.ts +83 -0
  54. package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
  55. package/lib/typescript/src/components/badge/index.d.ts +114 -0
  56. package/lib/typescript/src/components/badge/index.d.ts.map +1 -0
  57. package/lib/typescript/src/components/bottom-sheet/index.d.ts +30 -0
  58. package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -0
  59. package/lib/typescript/src/components/button/index.d.ts +159 -0
  60. package/lib/typescript/src/components/button/index.d.ts.map +1 -0
  61. package/lib/typescript/src/components/card/index.d.ts +13 -0
  62. package/lib/typescript/src/components/card/index.d.ts.map +1 -0
  63. package/lib/typescript/src/components/checkbox/index.d.ts +47 -0
  64. package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -0
  65. package/lib/typescript/src/components/dialog/index.d.ts +50 -0
  66. package/lib/typescript/src/components/dialog/index.d.ts.map +1 -0
  67. package/lib/typescript/src/components/input/index.d.ts +12 -0
  68. package/lib/typescript/src/components/input/index.d.ts.map +1 -0
  69. package/lib/typescript/src/components/radio-group/index.d.ts +20 -0
  70. package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -0
  71. package/lib/typescript/src/components/select/index.d.ts +23 -0
  72. package/lib/typescript/src/components/select/index.d.ts.map +1 -0
  73. package/lib/typescript/src/components/skeleton/index.d.ts +6 -0
  74. package/lib/typescript/src/components/skeleton/index.d.ts.map +1 -0
  75. package/lib/typescript/src/components/spinner/index.d.ts +27 -0
  76. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -0
  77. package/lib/typescript/src/components/switch/index.d.ts +76 -0
  78. package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
  79. package/lib/typescript/src/components/tabs/index.d.ts +34 -0
  80. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -0
  81. package/lib/typescript/src/icons/index.d.ts +9 -0
  82. package/lib/typescript/src/icons/index.d.ts.map +1 -0
  83. package/lib/typescript/src/index.d.ts +23 -0
  84. package/lib/typescript/src/index.d.ts.map +1 -0
  85. package/lib/typescript/src/primitives/animated-pressable.d.ts +14 -0
  86. package/lib/typescript/src/primitives/animated-pressable.d.ts.map +1 -0
  87. package/lib/typescript/src/primitives/portal.d.ts +11 -0
  88. package/lib/typescript/src/primitives/portal.d.ts.map +1 -0
  89. package/lib/typescript/src/primitives/text.d.ts +66 -0
  90. package/lib/typescript/src/primitives/text.d.ts.map +1 -0
  91. package/lib/typescript/src/providers/panel-ui-provider.d.ts +13 -0
  92. package/lib/typescript/src/providers/panel-ui-provider.d.ts.map +1 -0
  93. package/lib/typescript/src/theme/use-theme.d.ts +12 -0
  94. package/lib/typescript/src/theme/use-theme.d.ts.map +1 -0
  95. package/lib/typescript/src/utils/cn.d.ts +3 -0
  96. package/lib/typescript/src/utils/cn.d.ts.map +1 -0
  97. package/package.json +73 -0
  98. package/src/components/alert/index.tsx +106 -0
  99. package/src/components/avatar/index.tsx +68 -0
  100. package/src/components/badge/index.tsx +51 -0
  101. package/src/components/bottom-sheet/index.tsx +186 -0
  102. package/src/components/button/index.tsx +93 -0
  103. package/src/components/card/index.tsx +64 -0
  104. package/src/components/checkbox/index.tsx +79 -0
  105. package/src/components/dialog/index.tsx +180 -0
  106. package/src/components/input/index.tsx +104 -0
  107. package/src/components/radio-group/index.tsx +118 -0
  108. package/src/components/select/index.tsx +165 -0
  109. package/src/components/skeleton/index.tsx +34 -0
  110. package/src/components/spinner/index.tsx +53 -0
  111. package/src/components/switch/index.tsx +83 -0
  112. package/src/components/tabs/index.tsx +208 -0
  113. package/src/icons/index.tsx +48 -0
  114. package/src/index.ts +54 -0
  115. package/src/primitives/animated-pressable.tsx +71 -0
  116. package/src/primitives/portal.tsx +90 -0
  117. package/src/primitives/text.tsx +47 -0
  118. package/src/providers/panel-ui-provider.tsx +30 -0
  119. package/src/theme/use-theme.ts +18 -0
  120. package/src/uniwind-env.d.ts +1 -0
  121. package/src/utils/cn.ts +6 -0
  122. package/theme.css +143 -0
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { GestureHandlerRootView } from 'react-native-gesture-handler';
5
+ import { PortalHost, PortalProvider } from "../primitives/portal.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ /**
8
+ * Root provider for PanelUI. Wraps the app with the gesture handler root and
9
+ * the portal host used by overlay components (Dialog, BottomSheet, Select).
10
+ *
11
+ * Theme switching is handled natively by Uniwind — use `Uniwind.setTheme()`
12
+ * or the `useTheme()` hook exported from panelui-native.
13
+ */
14
+ export function PanelUIProvider({
15
+ children
16
+ }) {
17
+ return /*#__PURE__*/_jsx(GestureHandlerRootView, {
18
+ style: styles.root,
19
+ children: /*#__PURE__*/_jsxs(PortalProvider, {
20
+ children: [children, /*#__PURE__*/_jsx(PortalHost, {})]
21
+ })
22
+ });
23
+ }
24
+ const styles = StyleSheet.create({
25
+ root: {
26
+ flex: 1
27
+ }
28
+ });
29
+ //# sourceMappingURL=panel-ui-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","GestureHandlerRootView","PortalHost","PortalProvider","jsx","_jsx","jsxs","_jsxs","PanelUIProvider","children","style","styles","root","create","flex"],"sourceRoot":"../../../src","sources":["providers/panel-ui-provider.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,UAAU,EAAEC,cAAc,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMlE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAC;EAAEC;AAA+B,CAAC,EAAE;EAClE,oBACEJ,IAAA,CAACJ,sBAAsB;IAACS,KAAK,EAAEC,MAAM,CAACC,IAAK;IAAAH,QAAA,eACzCF,KAAA,CAACJ,cAAc;MAAAM,QAAA,GACZA,QAAQ,eACTJ,IAAA,CAACH,UAAU,IAAE,CAAC;IAAA,CACA;EAAC,CACK,CAAC;AAE7B;AAEA,MAAMS,MAAM,GAAGX,UAAU,CAACa,MAAM,CAAC;EAC/BD,IAAI,EAAE;IAAEE,IAAI,EAAE;EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import { Uniwind, useUniwind } from 'uniwind';
4
+ /**
5
+ * Reactive access to the current Uniwind theme plus a setter.
6
+ * Theme changes are applied natively by Uniwind without re-rendering the tree.
7
+ */
8
+ export function useTheme() {
9
+ const {
10
+ theme
11
+ } = useUniwind();
12
+ return {
13
+ /** Currently resolved theme ('light' or 'dark'). */
14
+ theme,
15
+ /** Switch theme: 'light', 'dark', or 'system' (follows device). */
16
+ setTheme: name => Uniwind.setTheme(name)
17
+ };
18
+ }
19
+ //# sourceMappingURL=use-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Uniwind","useUniwind","useTheme","theme","setTheme","name"],"sourceRoot":"../../../src","sources":["theme/use-theme.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,UAAU,QAAQ,SAAS;AAI7C;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,MAAM;IAAEC;EAAM,CAAC,GAAGF,UAAU,CAAC,CAAC;EAE9B,OAAO;IACL;IACAE,KAAK;IACL;IACAC,QAAQ,EAAGC,IAAe,IAAKL,OAAO,CAACI,QAAQ,CAACC,IAAI;EACtD,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ import 'uniwind/types';
4
+ //# sourceMappingURL=uniwind-env.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["uniwind-env.d.ts"],"mappings":";;AAAA,OAAO,eAAe","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+ export function cn(...inputs) {
6
+ return twMerge(clsx(inputs));
7
+ }
8
+ //# sourceMappingURL=cn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["clsx","twMerge","cn","inputs"],"sourceRoot":"../../../src","sources":["utils/cn.ts"],"mappings":";;AAAA,SAASA,IAAI,QAAyB,MAAM;AAC5C,SAASC,OAAO,QAAQ,gBAAgB;AAExC,OAAO,SAASC,EAAEA,CAAC,GAAGC,MAAoB,EAAE;EAC1C,OAAOF,OAAO,CAACD,IAAI,CAACG,MAAM,CAAC,CAAC;AAC9B","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,113 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type VariantProps } from 'tailwind-variants';
4
+ import { type TextProps } from '../../primitives/text.js';
5
+ declare const alertVariants: import("tailwind-variants").TVReturnType<{
6
+ variant: {
7
+ default: {
8
+ root: string;
9
+ title: string;
10
+ description: string;
11
+ };
12
+ info: {
13
+ root: string;
14
+ title: string;
15
+ description: string;
16
+ };
17
+ success: {
18
+ root: string;
19
+ title: string;
20
+ description: string;
21
+ };
22
+ warning: {
23
+ root: string;
24
+ title: string;
25
+ description: string;
26
+ };
27
+ destructive: {
28
+ root: string;
29
+ title: string;
30
+ description: string;
31
+ };
32
+ };
33
+ }, {
34
+ root: string;
35
+ title: string;
36
+ description: string;
37
+ }, undefined, {
38
+ variant: {
39
+ default: {
40
+ root: string;
41
+ title: string;
42
+ description: string;
43
+ };
44
+ info: {
45
+ root: string;
46
+ title: string;
47
+ description: string;
48
+ };
49
+ success: {
50
+ root: string;
51
+ title: string;
52
+ description: string;
53
+ };
54
+ warning: {
55
+ root: string;
56
+ title: string;
57
+ description: string;
58
+ };
59
+ destructive: {
60
+ root: string;
61
+ title: string;
62
+ description: string;
63
+ };
64
+ };
65
+ }, {
66
+ root: string;
67
+ title: string;
68
+ description: string;
69
+ }, import("tailwind-variants").TVReturnType<{
70
+ variant: {
71
+ default: {
72
+ root: string;
73
+ title: string;
74
+ description: string;
75
+ };
76
+ info: {
77
+ root: string;
78
+ title: string;
79
+ description: string;
80
+ };
81
+ success: {
82
+ root: string;
83
+ title: string;
84
+ description: string;
85
+ };
86
+ warning: {
87
+ root: string;
88
+ title: string;
89
+ description: string;
90
+ };
91
+ destructive: {
92
+ root: string;
93
+ title: string;
94
+ description: string;
95
+ };
96
+ };
97
+ }, {
98
+ root: string;
99
+ title: string;
100
+ description: string;
101
+ }, undefined, unknown, unknown, undefined>>;
102
+ export interface AlertProps extends ViewProps, VariantProps<typeof alertVariants> {
103
+ className?: string;
104
+ /** Optional leading icon rendered before the content. */
105
+ icon?: ReactNode;
106
+ children?: ReactNode;
107
+ }
108
+ export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<View>> & {
109
+ Title: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<import("react-native").Text>>;
110
+ Description: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<import("react-native").Text>>;
111
+ };
112
+ export {};
113
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAE7D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAsCjB,CAAC;AAMH,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA+CD,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { View, type ImageProps, type ImageSourcePropType, type ViewProps } from 'react-native';
2
+ import { type VariantProps } from 'tailwind-variants';
3
+ declare const avatarVariants: import("tailwind-variants").TVReturnType<{
4
+ size: {
5
+ sm: {
6
+ root: string;
7
+ fallback: string;
8
+ };
9
+ md: {
10
+ root: string;
11
+ fallback: string;
12
+ };
13
+ lg: {
14
+ root: string;
15
+ fallback: string;
16
+ };
17
+ xl: {
18
+ root: string;
19
+ fallback: string;
20
+ };
21
+ };
22
+ }, {
23
+ root: string;
24
+ image: string;
25
+ fallback: string;
26
+ }, undefined, {
27
+ size: {
28
+ sm: {
29
+ root: string;
30
+ fallback: string;
31
+ };
32
+ md: {
33
+ root: string;
34
+ fallback: string;
35
+ };
36
+ lg: {
37
+ root: string;
38
+ fallback: string;
39
+ };
40
+ xl: {
41
+ root: string;
42
+ fallback: string;
43
+ };
44
+ };
45
+ }, {
46
+ root: string;
47
+ image: string;
48
+ fallback: string;
49
+ }, import("tailwind-variants").TVReturnType<{
50
+ size: {
51
+ sm: {
52
+ root: string;
53
+ fallback: string;
54
+ };
55
+ md: {
56
+ root: string;
57
+ fallback: string;
58
+ };
59
+ lg: {
60
+ root: string;
61
+ fallback: string;
62
+ };
63
+ xl: {
64
+ root: string;
65
+ fallback: string;
66
+ };
67
+ };
68
+ }, {
69
+ root: string;
70
+ image: string;
71
+ fallback: string;
72
+ }, undefined, unknown, unknown, undefined>>;
73
+ export interface AvatarProps extends ViewProps, VariantProps<typeof avatarVariants> {
74
+ className?: string;
75
+ /** Image source; falls back to initials when missing or on load error. */
76
+ source?: ImageSourcePropType;
77
+ /** Fallback text, e.g. initials ("KA"). */
78
+ fallback?: string;
79
+ imageProps?: Omit<ImageProps, 'source'>;
80
+ }
81
+ export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<View>>;
82
+ export {};
83
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EACJ,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAiBlB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,MAAM,8FA0BlB,CAAC"}
@@ -0,0 +1,114 @@
1
+ import { type ReactNode } from 'react';
2
+ import { View, type ViewProps } from 'react-native';
3
+ import { type VariantProps } from 'tailwind-variants';
4
+ declare const badgeVariants: import("tailwind-variants").TVReturnType<{
5
+ variant: {
6
+ default: {
7
+ root: string;
8
+ label: string;
9
+ };
10
+ secondary: {
11
+ root: string;
12
+ label: string;
13
+ };
14
+ outline: {
15
+ root: string;
16
+ label: string;
17
+ };
18
+ destructive: {
19
+ root: string;
20
+ label: string;
21
+ };
22
+ success: {
23
+ root: string;
24
+ label: string;
25
+ };
26
+ warning: {
27
+ root: string;
28
+ label: string;
29
+ };
30
+ info: {
31
+ root: string;
32
+ label: string;
33
+ };
34
+ };
35
+ }, {
36
+ root: string;
37
+ label: string;
38
+ }, undefined, {
39
+ variant: {
40
+ default: {
41
+ root: string;
42
+ label: string;
43
+ };
44
+ secondary: {
45
+ root: string;
46
+ label: string;
47
+ };
48
+ outline: {
49
+ root: string;
50
+ label: string;
51
+ };
52
+ destructive: {
53
+ root: string;
54
+ label: string;
55
+ };
56
+ success: {
57
+ root: string;
58
+ label: string;
59
+ };
60
+ warning: {
61
+ root: string;
62
+ label: string;
63
+ };
64
+ info: {
65
+ root: string;
66
+ label: string;
67
+ };
68
+ };
69
+ }, {
70
+ root: string;
71
+ label: string;
72
+ }, import("tailwind-variants").TVReturnType<{
73
+ variant: {
74
+ default: {
75
+ root: string;
76
+ label: string;
77
+ };
78
+ secondary: {
79
+ root: string;
80
+ label: string;
81
+ };
82
+ outline: {
83
+ root: string;
84
+ label: string;
85
+ };
86
+ destructive: {
87
+ root: string;
88
+ label: string;
89
+ };
90
+ success: {
91
+ root: string;
92
+ label: string;
93
+ };
94
+ warning: {
95
+ root: string;
96
+ label: string;
97
+ };
98
+ info: {
99
+ root: string;
100
+ label: string;
101
+ };
102
+ };
103
+ }, {
104
+ root: string;
105
+ label: string;
106
+ }, undefined, unknown, unknown, undefined>>;
107
+ export interface BadgeProps extends ViewProps, VariantProps<typeof badgeVariants> {
108
+ children?: ReactNode;
109
+ className?: string;
110
+ labelClassName?: string;
111
+ }
112
+ export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<View>>;
113
+ export {};
114
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAmBjB,CAAC;AAEH,MAAM,WAAW,UACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,KAAK,6FAcjB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { type ReactElement, type ReactNode } from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ export interface BottomSheetProps {
4
+ children: ReactNode;
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ defaultOpen?: boolean;
8
+ }
9
+ declare function BottomSheetRoot({ children, open, onOpenChange, defaultOpen, }: BottomSheetProps): import("react").JSX.Element;
10
+ interface BottomSheetTriggerProps {
11
+ children: ReactElement<{
12
+ onPress?: (...args: unknown[]) => void;
13
+ }>;
14
+ }
15
+ declare function BottomSheetTrigger({ children }: BottomSheetTriggerProps): ReactElement<{
16
+ onPress?: (...args: unknown[]) => void;
17
+ }, string | import("react").JSXElementConstructor<any>>;
18
+ export interface BottomSheetContentProps extends ViewProps {
19
+ className?: string;
20
+ /** Tap on the backdrop closes the sheet. Default true. */
21
+ dismissible?: boolean;
22
+ children?: ReactNode;
23
+ }
24
+ declare function BottomSheetContent({ className, dismissible, children, ...props }: BottomSheetContentProps): import("react").JSX.Element | null;
25
+ export declare const BottomSheet: typeof BottomSheetRoot & {
26
+ Trigger: typeof BottomSheetTrigger;
27
+ Content: typeof BottomSheetContent;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/bottom-sheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAoCpF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,eAAe,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,WAAmB,GACpB,EAAE,gBAAgB,+BAuBlB;AAED,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,YAAY,CAAC;QAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC,CAAC;CACpE;AAED,iBAAS,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB;cAH5B,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI;wDAahE;AAED,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,WAAkB,EAClB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,sCAoEzB;AAED,eAAO,MAAM,WAAW;;;CAGtB,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { View } from 'react-native';
3
+ import { type VariantProps } from 'tailwind-variants';
4
+ import { type AnimatedPressableProps } from '../../primitives/animated-pressable.js';
5
+ declare const buttonVariants: import("tailwind-variants").TVReturnType<{
6
+ variant: {
7
+ primary: {
8
+ root: string;
9
+ label: string;
10
+ };
11
+ secondary: {
12
+ root: string;
13
+ label: string;
14
+ };
15
+ outline: {
16
+ root: string;
17
+ label: string;
18
+ };
19
+ ghost: {
20
+ root: string;
21
+ label: string;
22
+ };
23
+ destructive: {
24
+ root: string;
25
+ label: string;
26
+ };
27
+ };
28
+ size: {
29
+ sm: {
30
+ root: string;
31
+ label: string;
32
+ };
33
+ md: {
34
+ root: string;
35
+ label: string;
36
+ };
37
+ lg: {
38
+ root: string;
39
+ label: string;
40
+ };
41
+ icon: {
42
+ root: string;
43
+ };
44
+ };
45
+ disabled: {
46
+ true: {
47
+ root: string;
48
+ };
49
+ };
50
+ }, {
51
+ root: string;
52
+ label: string;
53
+ }, undefined, {
54
+ variant: {
55
+ primary: {
56
+ root: string;
57
+ label: string;
58
+ };
59
+ secondary: {
60
+ root: string;
61
+ label: string;
62
+ };
63
+ outline: {
64
+ root: string;
65
+ label: string;
66
+ };
67
+ ghost: {
68
+ root: string;
69
+ label: string;
70
+ };
71
+ destructive: {
72
+ root: string;
73
+ label: string;
74
+ };
75
+ };
76
+ size: {
77
+ sm: {
78
+ root: string;
79
+ label: string;
80
+ };
81
+ md: {
82
+ root: string;
83
+ label: string;
84
+ };
85
+ lg: {
86
+ root: string;
87
+ label: string;
88
+ };
89
+ icon: {
90
+ root: string;
91
+ };
92
+ };
93
+ disabled: {
94
+ true: {
95
+ root: string;
96
+ };
97
+ };
98
+ }, {
99
+ root: string;
100
+ label: string;
101
+ }, import("tailwind-variants").TVReturnType<{
102
+ variant: {
103
+ primary: {
104
+ root: string;
105
+ label: string;
106
+ };
107
+ secondary: {
108
+ root: string;
109
+ label: string;
110
+ };
111
+ outline: {
112
+ root: string;
113
+ label: string;
114
+ };
115
+ ghost: {
116
+ root: string;
117
+ label: string;
118
+ };
119
+ destructive: {
120
+ root: string;
121
+ label: string;
122
+ };
123
+ };
124
+ size: {
125
+ sm: {
126
+ root: string;
127
+ label: string;
128
+ };
129
+ md: {
130
+ root: string;
131
+ label: string;
132
+ };
133
+ lg: {
134
+ root: string;
135
+ label: string;
136
+ };
137
+ icon: {
138
+ root: string;
139
+ };
140
+ };
141
+ disabled: {
142
+ true: {
143
+ root: string;
144
+ };
145
+ };
146
+ }, {
147
+ root: string;
148
+ label: string;
149
+ }, undefined, unknown, unknown, undefined>>;
150
+ type ButtonVariantProps = VariantProps<typeof buttonVariants>;
151
+ export interface ButtonProps extends Omit<AnimatedPressableProps, 'children' | 'disabled'>, Omit<ButtonVariantProps, 'disabled'> {
152
+ children?: ReactNode;
153
+ disabled?: boolean;
154
+ /** Extra classes for the label when children is a string. */
155
+ labelClassName?: string;
156
+ }
157
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<View>>;
158
+ export {};
159
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,wCAAqC,CAAC;AAG7C,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA0ClB,CAAC;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAE9D,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,UAAU,CAAC,EAC3D,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,8FA0BlB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import { type TextProps } from '../../primitives/text.js';
3
+ export interface CardProps extends ViewProps {
4
+ className?: string;
5
+ }
6
+ export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<View>> & {
7
+ Header: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<View>>;
8
+ Title: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<import("react-native").Text>>;
9
+ Description: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<import("react-native").Text>>;
10
+ Content: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<View>>;
11
+ Footer: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<View>>;
12
+ };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAE7D,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkDD,eAAO,MAAM,IAAI;;;;;;CAMf,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { View } from 'react-native';
2
+ import { type VariantProps } from 'tailwind-variants';
3
+ declare const checkboxVariants: import("tailwind-variants").TVReturnType<{
4
+ disabled: {
5
+ true: {
6
+ row: string;
7
+ };
8
+ };
9
+ }, {
10
+ row: string;
11
+ box: string;
12
+ fill: string;
13
+ label: string;
14
+ }, undefined, {
15
+ disabled: {
16
+ true: {
17
+ row: string;
18
+ };
19
+ };
20
+ }, {
21
+ row: string;
22
+ box: string;
23
+ fill: string;
24
+ label: string;
25
+ }, import("tailwind-variants").TVReturnType<{
26
+ disabled: {
27
+ true: {
28
+ row: string;
29
+ };
30
+ };
31
+ }, {
32
+ row: string;
33
+ box: string;
34
+ fill: string;
35
+ label: string;
36
+ }, undefined, unknown, unknown, undefined>>;
37
+ export interface CheckboxProps extends VariantProps<typeof checkboxVariants> {
38
+ className?: string;
39
+ checked: boolean;
40
+ onCheckedChange?: (checked: boolean) => void;
41
+ disabled?: boolean;
42
+ /** Optional label rendered next to the box; pressing it also toggles. */
43
+ label?: string;
44
+ }
45
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<View>>;
46
+ export {};
47
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkbox/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAK1D,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAYpB,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,YAAY,CAAC,OAAO,gBAAgB,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,gGAwCpB,CAAC"}