react-native-shared-components 0.3.2 → 0.3.4

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 (37) hide show
  1. package/README.md +0 -5
  2. package/lib/module/assets/theme.js +227 -0
  3. package/lib/module/assets/theme.js.map +1 -0
  4. package/lib/module/components/BaseButton/index.js +7 -31
  5. package/lib/module/components/BaseButton/index.js.map +1 -1
  6. package/lib/module/components/BaseContainer/index.js +3 -6
  7. package/lib/module/components/BaseContainer/index.js.map +1 -1
  8. package/lib/module/components/BaseText/index.js +54 -25
  9. package/lib/module/components/BaseText/index.js.map +1 -1
  10. package/lib/module/core/KadoProvider/index.js +27 -0
  11. package/lib/module/core/KadoProvider/index.js.map +1 -0
  12. package/lib/module/core/index.js +4 -0
  13. package/lib/module/core/index.js.map +1 -0
  14. package/lib/module/index.js +1 -0
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/typescript/src/assets/theme.d.ts +225 -0
  17. package/lib/typescript/src/assets/theme.d.ts.map +1 -0
  18. package/lib/typescript/src/components/BaseButton/index.d.ts +2 -3
  19. package/lib/typescript/src/components/BaseButton/index.d.ts.map +1 -1
  20. package/lib/typescript/src/components/BaseContainer/index.d.ts +2 -5
  21. package/lib/typescript/src/components/BaseContainer/index.d.ts.map +1 -1
  22. package/lib/typescript/src/components/BaseText/index.d.ts +43 -9
  23. package/lib/typescript/src/components/BaseText/index.d.ts.map +1 -1
  24. package/lib/typescript/src/core/KadoProvider/index.d.ts +19 -0
  25. package/lib/typescript/src/core/KadoProvider/index.d.ts.map +1 -0
  26. package/lib/typescript/src/core/index.d.ts +2 -0
  27. package/lib/typescript/src/core/index.d.ts.map +1 -0
  28. package/lib/typescript/src/index.d.ts +1 -0
  29. package/lib/typescript/src/index.d.ts.map +1 -1
  30. package/package.json +7 -9
  31. package/src/assets/theme.ts +285 -0
  32. package/src/components/BaseButton/index.tsx +9 -35
  33. package/src/components/BaseContainer/index.tsx +3 -7
  34. package/src/components/BaseText/index.tsx +56 -36
  35. package/src/core/KadoProvider/index.tsx +41 -0
  36. package/src/core/index.tsx +1 -0
  37. package/src/index.tsx +1 -0
@@ -0,0 +1,225 @@
1
+ export declare const typographyDefault: {
2
+ 'fontFamilies/productFont': string;
3
+ 'fontSizes/fs11': number;
4
+ 'fontSizes/fs12': number;
5
+ 'fontSizes/fs13': number;
6
+ 'fontSizes/fs14': number;
7
+ 'fontSizes/fs16': number;
8
+ 'fontSizes/fs18': number;
9
+ 'fontSizes/fs20': number;
10
+ 'fontSizes/fs24': number;
11
+ 'fontSizes/fs28': number;
12
+ 'fontSizes/fs30': number;
13
+ 'fontSizes/fs36': number;
14
+ 'fontSizes/fs38': number;
15
+ 'fontWeights/regular': string;
16
+ 'fontWeights/medium': string;
17
+ 'fontWeights/semiBold': string;
18
+ 'fontWeights/bold': string;
19
+ 'lineHeights/lh16': number;
20
+ 'lineHeights/lh18': number;
21
+ 'lineHeights/lh20': number;
22
+ 'lineHeights/lh24': number;
23
+ 'lineHeights/lh26': number;
24
+ 'lineHeights/lh28': number;
25
+ 'lineHeights/lh30': number;
26
+ 'lineHeights/lh32': number;
27
+ 'lineHeights/lh38': number;
28
+ 'lineHeights/lh44': number;
29
+ 'lineHeights/lh60': number;
30
+ 'lineHeights/lh90': number;
31
+ 'lineHeights/lh72': number;
32
+ 'text12/normal': {
33
+ fontFamily: string;
34
+ fontWeight: string;
35
+ lineHeight: string;
36
+ fontSize: string;
37
+ };
38
+ 'text12/medium': {
39
+ fontFamily: string;
40
+ fontWeight: string;
41
+ lineHeight: string;
42
+ fontSize: string;
43
+ };
44
+ 'text12/semiBold': {
45
+ fontFamily: string;
46
+ fontWeight: string;
47
+ lineHeight: string;
48
+ fontSize: string;
49
+ };
50
+ 'text12/bold': {
51
+ fontFamily: string;
52
+ fontWeight: string;
53
+ lineHeight: string;
54
+ fontSize: string;
55
+ };
56
+ 'tex14/normal': {
57
+ fontFamily: string;
58
+ fontWeight: string;
59
+ lineHeight: string;
60
+ fontSize: string;
61
+ };
62
+ 'tex14/medium': {
63
+ fontFamily: string;
64
+ fontWeight: string;
65
+ lineHeight: string;
66
+ fontSize: string;
67
+ };
68
+ 'tex14/semiBold': {
69
+ fontFamily: string;
70
+ fontWeight: string;
71
+ lineHeight: string;
72
+ fontSize: string;
73
+ };
74
+ 'tex14/bold': {
75
+ fontFamily: string;
76
+ fontWeight: string;
77
+ lineHeight: string;
78
+ fontSize: string;
79
+ };
80
+ 'text16/normal': {
81
+ fontFamily: string;
82
+ fontWeight: string;
83
+ lineHeight: string;
84
+ fontSize: string;
85
+ };
86
+ 'text16/medium': {
87
+ fontFamily: string;
88
+ fontWeight: string;
89
+ lineHeight: string;
90
+ fontSize: string;
91
+ };
92
+ 'text16/semiBold': {
93
+ fontFamily: string;
94
+ fontWeight: string;
95
+ lineHeight: string;
96
+ fontSize: string;
97
+ };
98
+ 'text16/bold': {
99
+ fontFamily: string;
100
+ fontWeight: string;
101
+ lineHeight: string;
102
+ fontSize: string;
103
+ };
104
+ 'text18/normal': {
105
+ fontFamily: string;
106
+ fontWeight: string;
107
+ lineHeight: string;
108
+ fontSize: string;
109
+ };
110
+ 'text18/medium': {
111
+ fontFamily: string;
112
+ fontWeight: string;
113
+ lineHeight: string;
114
+ fontSize: string;
115
+ };
116
+ 'text18/semiBold': {
117
+ fontFamily: string;
118
+ fontWeight: string;
119
+ lineHeight: string;
120
+ fontSize: string;
121
+ };
122
+ 'text18/bold': {
123
+ fontFamily: string;
124
+ fontWeight: string;
125
+ lineHeight: string;
126
+ fontSize: string;
127
+ };
128
+ 'text20/normal': {
129
+ fontFamily: string;
130
+ fontWeight: string;
131
+ lineHeight: string;
132
+ fontSize: string;
133
+ };
134
+ 'text20/medium': {
135
+ fontFamily: string;
136
+ fontWeight: string;
137
+ lineHeight: string;
138
+ fontSize: string;
139
+ };
140
+ 'text20/semiBold': {
141
+ fontFamily: string;
142
+ fontWeight: string;
143
+ lineHeight: string;
144
+ fontSize: string;
145
+ };
146
+ 'text20/bold': {
147
+ fontFamily: string;
148
+ fontWeight: string;
149
+ lineHeight: string;
150
+ fontSize: string;
151
+ };
152
+ 'text24/normal': {
153
+ fontFamily: string;
154
+ fontWeight: string;
155
+ lineHeight: string;
156
+ fontSize: string;
157
+ };
158
+ 'text24/medium': {
159
+ fontFamily: string;
160
+ fontWeight: string;
161
+ lineHeight: string;
162
+ fontSize: string;
163
+ };
164
+ 'text24/semiBold': {
165
+ fontFamily: string;
166
+ fontWeight: string;
167
+ lineHeight: string;
168
+ fontSize: string;
169
+ };
170
+ 'text24/bold': {
171
+ fontFamily: string;
172
+ fontWeight: string;
173
+ lineHeight: string;
174
+ fontSize: string;
175
+ };
176
+ 'text30/normal': {
177
+ fontFamily: string;
178
+ fontWeight: string;
179
+ fontSize: string;
180
+ lineHeight: string;
181
+ };
182
+ 'text30/medium': {
183
+ fontFamily: string;
184
+ fontWeight: string;
185
+ lineHeight: string;
186
+ fontSize: string;
187
+ };
188
+ 'text30/semiBold': {
189
+ fontFamily: string;
190
+ fontWeight: string;
191
+ lineHeight: string;
192
+ fontSize: string;
193
+ };
194
+ 'text30/bold': {
195
+ fontFamily: string;
196
+ fontWeight: string;
197
+ lineHeight: string;
198
+ fontSize: string;
199
+ };
200
+ 'tex36/normal': {
201
+ fontFamily: string;
202
+ fontWeight: string;
203
+ lineHeight: string;
204
+ fontSize: string;
205
+ };
206
+ 'tex36/medium': {
207
+ fontFamily: string;
208
+ fontWeight: string;
209
+ lineHeight: string;
210
+ fontSize: string;
211
+ };
212
+ 'tex36/semiBold': {
213
+ fontFamily: string;
214
+ fontWeight: string;
215
+ lineHeight: string;
216
+ fontSize: string;
217
+ };
218
+ 'tex36/bold': {
219
+ fontFamily: string;
220
+ fontWeight: string;
221
+ lineHeight: string;
222
+ fontSize: string;
223
+ };
224
+ };
225
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/assets/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4R7B,CAAC"}
@@ -3,7 +3,7 @@ import { type ViewStyle, type TextStyle, type TouchableOpacityProps } from 'reac
3
3
  export type ButtonVariant = 'primary' | 'link-subtle' | 'red' | 'brand-subtle';
4
4
  export type ButtonSize = 'small' | 'regular' | 'large';
5
5
  export type ButtonType = 'common' | 'icon';
6
- interface BaseButtonProps extends Omit<TouchableOpacityProps, 'style'> {
6
+ export interface BaseButtonProps extends Omit<TouchableOpacityProps, 'style'> {
7
7
  type?: ButtonType;
8
8
  variant?: ButtonVariant;
9
9
  size?: ButtonSize;
@@ -14,6 +14,5 @@ interface BaseButtonProps extends Omit<TouchableOpacityProps, 'style'> {
14
14
  style?: ViewStyle;
15
15
  textStyle?: TextStyle;
16
16
  }
17
- declare const BaseButton: React.FC<BaseButtonProps>;
18
- export default BaseButton;
17
+ export declare const BaseButton: React.FC<BaseButtonProps>;
19
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,cAAc,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,S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IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqGhD,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { type ColorValue, type TextStyle, type ViewStyle, type KeyboardAvoidingViewProps } from 'react-native';
2
2
  import { type ReactNode } from 'react';
3
- import { type BaseTextType } from '../BaseText';
4
- interface IBaseContainer {
3
+ export interface IBaseContainer {
5
4
  title?: string;
6
5
  center?: ReactNode;
7
6
  right?: ReactNode;
@@ -18,8 +17,6 @@ interface IBaseContainer {
18
17
  backgroundColorStatusBar?: ColorValue | undefined;
19
18
  edges?: Array<'top' | 'bottom' | 'left' | 'right'>;
20
19
  keyboardAvoidingViewProps?: Omit<KeyboardAvoidingViewProps, 'children'>;
21
- type?: BaseTextType;
22
20
  }
23
- export declare const BaseContainer: ({ style, title, left, right, center, onPressLeft, onPressRight, onPressCenter, styleTitle, isHeader, children, backgroundColorStatusBar, barStyle, styleHeader, edges, keyboardAvoidingViewProps, type, }: IBaseContainer) => import("react/jsx-runtime").JSX.Element;
24
- export {};
21
+ export declare const BaseContainer: ({ style, title, left, right, center, onPressLeft, onPressRight, onPressCenter, styleTitle, isHeader, children, backgroundColorStatusBar, barStyle, styleHeader, edges, keyboardAvoidingViewProps, }: IBaseContainer) => import("react/jsx-runtime").JSX.Element;
25
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC/B,M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AAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,cAAc,CAAC;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wBAAwB,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,yBAAyB,CAAC,EAAE,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;CACzE;AAED,eAAO,MAAM,aAAa,GAAI,qMAiB3B,cAAc,4CAmDhB,CAAC"}
@@ -1,11 +1,45 @@
1
- import React from 'react';
2
- import { type TextProps } from 'react-native';
3
- export type BaseTextType = 'ExtraBold' | 'Bold' | 'SemiBold' | 'Medium';
4
- interface BaseTextProps extends TextProps {
5
- type?: BaseTextType;
6
- size?: number;
7
- children: React.ReactNode;
1
+ import { type TextProps, type TextStyle } from 'react-native';
2
+ import { type ReactNode } from 'react';
3
+ export declare const BaseTextTypes: {
4
+ 'text12/normal': string;
5
+ 'text12/medium': string;
6
+ 'text12/semiBold': string;
7
+ 'text12/bold': string;
8
+ 'tex14/normal': string;
9
+ 'tex14/medium': string;
10
+ 'tex14/semiBold': string;
11
+ 'tex14/bold': string;
12
+ 'text16/normal': string;
13
+ 'text16/medium': string;
14
+ 'text16/semiBold': string;
15
+ 'text16/bold': string;
16
+ 'text18/normal': string;
17
+ 'text18/medium': string;
18
+ 'text18/semiBold': string;
19
+ 'text18/bold': string;
20
+ 'text20/normal': string;
21
+ 'text20/medium': string;
22
+ 'text20/semiBold': string;
23
+ 'text20/bold': string;
24
+ 'text24/normal': string;
25
+ 'text24/medium': string;
26
+ 'text24/semiBold': string;
27
+ 'text24/bold': string;
28
+ 'text30/normal': string;
29
+ 'text30/medium': string;
30
+ 'text30/semiBold': string;
31
+ 'text30/bold': string;
32
+ 'tex36/normal': string;
33
+ 'tex36/medium': string;
34
+ 'tex36/semiBold': string;
35
+ 'tex36/bold': string;
36
+ };
37
+ export type EBaseTextType = keyof typeof BaseTextTypes;
38
+ interface IBaseText extends TextProps {
39
+ type: string | EBaseTextType;
40
+ children?: ReactNode;
41
+ styleText?: TextStyle;
8
42
  }
9
- declare const BaseText: React.FC<BaseTextProps>;
10
- export default BaseText;
43
+ export declare const BaseText: ({ children, type, styleText, ...props }: IBaseText) => import("react/jsx-runtime").JSX.Element;
44
+ export {};
11
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseText/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAExE,UAAU,aAAc,SAAQ,SAAS;IACvC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgBrC,CAAC;AAiBF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseText/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AACvD,UAAU,SAAU,SAAQ,SAAS;IACnC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AACD,eAAO,MAAM,QAAQ,GAAI,yCAKtB,SAAS,4CAeX,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ type dynamicType = {
3
+ [key: string]: any;
4
+ };
5
+ interface ThemeDynamicPart {
6
+ [key: string]: dynamicType;
7
+ }
8
+ export interface ThemeContextType extends ThemeDynamicPart {
9
+ typography: dynamicType;
10
+ }
11
+ export interface IThemeProvider {
12
+ children: React.ReactNode;
13
+ value: ThemeContextType;
14
+ }
15
+ export declare const ThemeContext: React.Context<ThemeContextType | undefined>;
16
+ export declare const ThemeProvider: ({ children, value }: IThemeProvider) => import("react/jsx-runtime").JSX.Element | null;
17
+ export declare const useTheme: () => ThemeContextType;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/KadoProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AACF,UAAU,gBAAgB;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,UAAU,EAAE,WAAW,CAAC;CACzB;AACD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAMD,eAAO,MAAM,YAAY,6CAExB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,qBAAqB,cAAc,mDAMhE,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,gBAM3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './KadoProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
2
  export * from './constants';
3
3
  export * from './utils';
4
+ export * from './core';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "react-native-shared-components",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "shared-components",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./src/index.tsx",
7
7
  "module": "./src/index.tsx",
8
+ "types": "./lib/typescript/src/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
- "import": {
11
- "default": "./lib/module/index.js"
12
- },
13
- "require": {
14
- "default": "./lib/commonjs/index.js"
15
- }
11
+ "types": "./lib/typescript/src/index.d.ts",
12
+ "default": "./lib/module/index.js"
16
13
  },
17
14
  "./package.json": "./package.json"
18
15
  },
@@ -83,7 +80,7 @@
83
80
  "react-native": "0.76.9",
84
81
  "react-native-builder-bob": "^0.40.6",
85
82
  "release-it": "^17.10.0",
86
- "typescript": "^5.2.2"
83
+ "typescript": "^5.9.3"
87
84
  },
88
85
  "peerDependencies": {
89
86
  "react": "*",
@@ -157,6 +154,7 @@
157
154
  "dependencies": {
158
155
  "react-native-iphone-screen-helper": "^2.1.2",
159
156
  "react-native-paper": "^5.13.3",
160
- "react-native-safe-area-context": "^5.4.0"
157
+ "react-native-safe-area-context": "^5.4.0",
158
+ "react-native-shared-components": "^0.3.3"
161
159
  }
162
160
  }