@navegarti/rn-design-system 0.7.8 → 0.7.10

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.
@@ -14,9 +14,10 @@ export const InputErrorText = styled(Text)({
14
14
  export const StyledMaskInput = styled(RNMaskInput)({
15
15
  flex: 1
16
16
  });
17
- export const ErrorExclamation = styled(InputErrorText)({
17
+ export const ErrorExclamation = styled(Text)({
18
18
  fontWeight: 'bold',
19
- fontSize: 16
19
+ fontSize: 16,
20
+ color: '#d13033'
20
21
  });
21
22
  export const InputControlContainer = styled.Pressable(({
22
23
  isFocused,
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Components module entry point.
5
- * Exports all UI components from the design system.
5
+ * Exports all UI components and their prop types from the design system.
6
6
  */
7
7
 
8
8
  export { Button } from "./components/Button/index.js";
@@ -3,13 +3,59 @@
3
3
  /**
4
4
  * Main entry point for @navegarti/rn-design-system
5
5
  *
6
- * Import from subpaths:
7
- * - '@navegarti/rn-design-system/components'
8
- * - '@navegarti/rn-design-system/hooks'
9
- * - '@navegarti/rn-design-system/utils'
10
- * - '@navegarti/rn-design-system/api'
11
- * - '@navegarti/rn-design-system/form'
6
+ * Re-exports everything from each sub-path module so consumers can use either:
7
+ * import { Button } from '@navegarti/rn-design-system'
8
+ * import { Button } from '@navegarti/rn-design-system/components'
9
+ *
10
+ * Tree shaking is enabled via "sideEffects": false in package.json,
11
+ * so unused exports are eliminated at build time.
12
12
  */
13
13
 
14
- export {};
14
+ // API
15
+ export { ApiError, AuthError, NetworkError, NotFoundError, RateLimitError, ServerError, TimeoutError, ValidationError } from "./api/errors.js";
16
+ export { AxiosAdapter, apiRequest, useAuthStore } from "./api/index.js";
17
+ // Components
18
+ export { Button } from "./components/Button/index.js";
19
+ export { Carousel } from "./components/Carousel/index.js";
20
+ export { Checkbox } from "./components/Checkbox/index.js";
21
+ export { FAB } from "./components/FAB/index.js";
22
+ export { Flex } from "./components/Flex/index.js";
23
+ export { FormLabel } from "./components/FormLabel/index.js";
24
+ export { Input } from "./components/Input/index.js";
25
+ export { Margin } from "./components/Margin/index.js";
26
+ export { OTPInput } from "./components/OTPInput/index.js";
27
+ export { Padding } from "./components/Padding/index.js";
28
+ export { Radio } from "./components/Radio/index.js";
29
+ export { Select } from "./components/Select/index.js";
30
+ export { Skeleton } from "./components/Skeleton/index.js";
31
+ export { Switch } from "./components/Switch/index.js";
32
+ export { Text } from "./components/Text/index.js";
33
+ // Form & Validators
34
+ export { formValidators } from "./formValidators/index.js";
35
+ // Hooks
36
+ export { useAppIsActive } from "./hooks/useAppIsActive.js";
37
+ export { useAppSecurity } from "./hooks/useAppSecurity.js";
38
+ export { useNetworkMonitor, useNetworkStatus } from "./hooks/useNetworkStatus.js";
39
+ export { useStatusBar } from "./hooks/useStatusBar.js";
40
+ export { tanstackForm } from "./libs/tanstack-form.js";
41
+
42
+ // Utils
43
+ export { camelCase } from "./utils/camelCase.js";
44
+ export { camelCaseJSONKeys } from "./utils/camelCaseJSONKeys.js";
45
+ export { capitalizeWord } from "./utils/capitalizeWord.js";
46
+ export { createLinkingPhoneNumberString } from "./utils/createLinkingPhoneNumberString.js";
47
+ export * from "./utils/dateFormatters.js";
48
+ export { debounce } from "./utils/debounce.js";
49
+ export { deepLinkParser } from "./utils/deepLinkParser.js";
50
+ export { getAge } from "./utils/getAge.js";
51
+ export { getOnlyNumbers } from "./utils/getOnlyNumbers.js";
52
+ export { isArray } from "./utils/isArray.js";
53
+ export { isObject } from "./utils/isObject.js";
54
+ export { Masks } from "./utils/masks.js";
55
+ export { priceFormatter } from "./utils/priceFormatter.js";
56
+ export { removeTextAccents } from "./utils/removeTextAccents.js";
57
+ export { shadowStyledIos } from "./utils/shadowStyledIos.js";
58
+ export { sortBy } from "./utils/sortBy.js";
59
+ export { uniqBy } from "./utils/uniqBy.js";
60
+ export { userFullnameInitialsExtractor } from "./utils/userFullnameInitialsExtractor.js";
15
61
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,5 @@
1
1
  import { type ButtonProps } from './styles';
2
+ export type { ButtonProps } from './styles';
2
3
  declare const Button: ((props: ButtonProps) => import("react/jsx-runtime").JSX.Element) & {
3
4
  Square: import("@emotion/native").StyledComponent<{
4
5
  color?: string;
@@ -1,4 +1,5 @@
1
1
  import type { CarouselRootProps } from './types';
2
+ export type { CarouselRootProps } from './types';
2
3
  export declare const Carousel: (<T>({ children, data, itemWidth, gapBetweenItems, renderItem, onSnapToItem, defaultIndex, autoPlay, autoPlaySeconds, centerItems, }: CarouselRootProps<T>) => import("react/jsx-runtime").JSX.Element) & {
3
4
  List: <T>({ contentContainerStyle, snapEnabled, ...props }: {
4
5
  contentContainerStyle?: import("react-native").StyleProp<Readonly<Omit<Readonly<Omit<Readonly<{
@@ -1,4 +1,5 @@
1
1
  import { type FABProps } from './styles';
2
+ export type { ExtendedFABProps, FABProps } from './styles';
2
3
  declare const FAB: ((props: FABProps) => import("react/jsx-runtime").JSX.Element) & {
3
4
  Small: (props: FABProps) => import("react/jsx-runtime").JSX.Element;
4
5
  Large: (props: FABProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * Components module entry point.
3
- * Exports all UI components from the design system.
3
+ * Exports all UI components and their prop types from the design system.
4
4
  */
5
+ export type { ButtonProps } from './components/Button';
5
6
  export { Button } from './components/Button';
7
+ export type { CarouselRootProps } from './components/Carousel';
6
8
  export { Carousel } from './components/Carousel';
7
9
  export { Checkbox } from './components/Checkbox';
10
+ export type { ExtendedFABProps, FABProps } from './components/FAB';
8
11
  export { FAB } from './components/FAB';
9
12
  export { Flex } from './components/Flex';
10
13
  export { FormLabel } from './components/FormLabel';
@@ -16,5 +19,6 @@ export { Radio } from './components/Radio';
16
19
  export { Select } from './components/Select';
17
20
  export { Skeleton } from './components/Skeleton';
18
21
  export { Switch } from './components/Switch';
22
+ export type { TextComponentProps, TextStyleProps } from './components/Text';
19
23
  export { Text } from './components/Text';
20
24
  //# sourceMappingURL=components.d.ts.map
@@ -1,12 +1,57 @@
1
1
  /**
2
2
  * Main entry point for @navegarti/rn-design-system
3
3
  *
4
- * Import from subpaths:
5
- * - '@navegarti/rn-design-system/components'
6
- * - '@navegarti/rn-design-system/hooks'
7
- * - '@navegarti/rn-design-system/utils'
8
- * - '@navegarti/rn-design-system/api'
9
- * - '@navegarti/rn-design-system/form'
4
+ * Re-exports everything from each sub-path module so consumers can use either:
5
+ * import { Button } from '@navegarti/rn-design-system'
6
+ * import { Button } from '@navegarti/rn-design-system/components'
7
+ *
8
+ * Tree shaking is enabled via "sideEffects": false in package.json,
9
+ * so unused exports are eliminated at build time.
10
10
  */
11
- export {};
11
+ export { ApiError, AuthError, NetworkError, NotFoundError, RateLimitError, ServerError, TimeoutError, ValidationError, } from './api/errors';
12
+ export { AxiosAdapter, apiRequest, useAuthStore } from './api/index';
13
+ export type { ApiConfig, ApiResponse, IHttpAdapter } from './api/types';
14
+ export type { ButtonProps } from './components/Button';
15
+ export { Button } from './components/Button';
16
+ export type { CarouselRootProps } from './components/Carousel';
17
+ export { Carousel } from './components/Carousel';
18
+ export { Checkbox } from './components/Checkbox';
19
+ export type { ExtendedFABProps, FABProps } from './components/FAB';
20
+ export { FAB } from './components/FAB';
21
+ export { Flex } from './components/Flex';
22
+ export { FormLabel } from './components/FormLabel';
23
+ export { Input } from './components/Input';
24
+ export { Margin } from './components/Margin';
25
+ export { OTPInput } from './components/OTPInput';
26
+ export { Padding } from './components/Padding';
27
+ export { Radio } from './components/Radio';
28
+ export { Select } from './components/Select';
29
+ export { Skeleton } from './components/Skeleton';
30
+ export { Switch } from './components/Switch';
31
+ export type { TextComponentProps, TextStyleProps } from './components/Text';
32
+ export { Text } from './components/Text';
33
+ export { formValidators } from './formValidators';
34
+ export { useAppIsActive } from './hooks/useAppIsActive';
35
+ export { useAppSecurity } from './hooks/useAppSecurity';
36
+ export { useNetworkMonitor, useNetworkStatus } from './hooks/useNetworkStatus';
37
+ export { useStatusBar } from './hooks/useStatusBar';
38
+ export { tanstackForm } from './libs/tanstack-form';
39
+ export { camelCase } from './utils/camelCase';
40
+ export { camelCaseJSONKeys } from './utils/camelCaseJSONKeys';
41
+ export { capitalizeWord } from './utils/capitalizeWord';
42
+ export { createLinkingPhoneNumberString } from './utils/createLinkingPhoneNumberString';
43
+ export * from './utils/dateFormatters';
44
+ export { debounce } from './utils/debounce';
45
+ export { deepLinkParser } from './utils/deepLinkParser';
46
+ export { getAge } from './utils/getAge';
47
+ export { getOnlyNumbers } from './utils/getOnlyNumbers';
48
+ export { isArray } from './utils/isArray';
49
+ export { isObject } from './utils/isObject';
50
+ export { Masks } from './utils/masks';
51
+ export { priceFormatter } from './utils/priceFormatter';
52
+ export { removeTextAccents } from './utils/removeTextAccents';
53
+ export { shadowStyledIos } from './utils/shadowStyledIos';
54
+ export { sortBy } from './utils/sortBy';
55
+ export { uniqBy } from './utils/uniqBy';
56
+ export { userFullnameInitialsExtractor } from './utils/userFullnameInitialsExtractor';
12
57
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,38 +1,52 @@
1
1
  {
2
2
  "name": "@navegarti/rn-design-system",
3
- "version": "0.7.8",
3
+ "version": "0.7.10",
4
4
  "description": "Components and functions to help navegar projects",
5
+ "source": "./src/index.tsx",
5
6
  "main": "./lib/module/index.js",
6
7
  "types": "./lib/typescript/src/index.d.ts",
8
+ "sideEffects": false,
7
9
  "exports": {
8
10
  ".": {
9
11
  "source": "./src/index.tsx",
12
+ "react-native": "./src/index.tsx",
10
13
  "types": "./lib/typescript/src/index.d.ts",
14
+ "import": "./lib/module/index.js",
11
15
  "default": "./lib/module/index.js"
12
16
  },
13
17
  "./components": {
14
18
  "source": "./src/components.tsx",
19
+ "react-native": "./src/components.tsx",
15
20
  "types": "./lib/typescript/src/components.d.ts",
21
+ "import": "./lib/module/components.js",
16
22
  "default": "./lib/module/components.js"
17
23
  },
18
24
  "./utils": {
19
25
  "source": "./src/utils.tsx",
26
+ "react-native": "./src/utils.tsx",
20
27
  "types": "./lib/typescript/src/utils.d.ts",
28
+ "import": "./lib/module/utils.js",
21
29
  "default": "./lib/module/utils.js"
22
30
  },
23
31
  "./hooks": {
24
32
  "source": "./src/hooks.tsx",
33
+ "react-native": "./src/hooks.tsx",
25
34
  "types": "./lib/typescript/src/hooks.d.ts",
35
+ "import": "./lib/module/hooks.js",
26
36
  "default": "./lib/module/hooks.js"
27
37
  },
28
38
  "./api": {
29
39
  "source": "./src/api.tsx",
40
+ "react-native": "./src/api.tsx",
30
41
  "types": "./lib/typescript/src/api.d.ts",
42
+ "import": "./lib/module/api.js",
31
43
  "default": "./lib/module/api.js"
32
44
  },
33
45
  "./form": {
34
46
  "source": "./src/form.tsx",
47
+ "react-native": "./src/form.tsx",
35
48
  "types": "./lib/typescript/src/form.d.ts",
49
+ "import": "./lib/module/form.js",
36
50
  "default": "./lib/module/form.js"
37
51
  },
38
52
  "./package.json": "./package.json"
@@ -111,7 +125,7 @@
111
125
  "jail-monkey": "^2.8.4",
112
126
  "libphonenumber-js": "^1.12.36",
113
127
  "react-native-mask-input": "^1.2.3",
114
- "react-native-nitro-modules": "^0.33.7",
128
+ "react-native-nitro-modules": "^0.33.8",
115
129
  "react-native-permissions": "^5.4.4",
116
130
  "react-native-picker-select": "^9.3.1",
117
131
  "react-native-svg": "^15.15.3",
@@ -134,9 +148,9 @@
134
148
  "lefthook": "^2.1.0",
135
149
  "prettier": "^3.8.1",
136
150
  "prop-types": "^15.8.1",
137
- "react": "19.2.4",
151
+ "react": "19.1.0",
138
152
  "react-native": "0.83.1",
139
- "react-native-builder-bob": "^0.40.17",
153
+ "react-native-builder-bob": "^0.40.18",
140
154
  "release-it": "^19.2.4",
141
155
  "typescript": "^5.9.3"
142
156
  },
@@ -2,6 +2,8 @@ import styled from '@emotion/native';
2
2
 
3
3
  import { type ButtonProps, ButtonText, DefaultButtonStyle } from './styles';
4
4
 
5
+ export type { ButtonProps } from './styles';
6
+
5
7
  const DefaultButton = (props: ButtonProps) => (
6
8
  <DefaultButtonStyle activeOpacity={0.5} {...props} />
7
9
  );
@@ -13,6 +13,8 @@ import { CarouselSeeAllButton } from './components/see-all-button';
13
13
  import { CarouselContext } from './context';
14
14
  import type { CarouselRootProps } from './types';
15
15
 
16
+ export type { CarouselRootProps } from './types';
17
+
16
18
  const CarouselRoot = <T,>({
17
19
  children,
18
20
  data,
@@ -1,6 +1,8 @@
1
1
  import { ExtendedFAB } from './components/extended-fab';
2
2
  import { DefaultFABStyle, type FABProps, LargeFAB, SmallFAB } from './styles';
3
3
 
4
+ export type { ExtendedFABProps, FABProps } from './styles';
5
+
4
6
  const DefaultFAB = (props: FABProps) => (
5
7
  <DefaultFABStyle activeOpacity={0.9} {...props} />
6
8
  );
@@ -17,9 +17,10 @@ export const StyledMaskInput = styled(RNMaskInput)({
17
17
  flex: 1,
18
18
  });
19
19
 
20
- export const ErrorExclamation = styled(InputErrorText)({
20
+ export const ErrorExclamation = styled(Text)({
21
21
  fontWeight: 'bold',
22
22
  fontSize: 16,
23
+ color: '#d13033',
23
24
  });
24
25
 
25
26
  export const InputControlContainer = styled.Pressable<{
@@ -1,12 +1,17 @@
1
1
  /**
2
2
  * Components module entry point.
3
- * Exports all UI components from the design system.
3
+ * Exports all UI components and their prop types from the design system.
4
4
  */
5
5
 
6
+ export type { ButtonProps } from './components/Button';
6
7
  export { Button } from './components/Button';
8
+ export type { CarouselRootProps } from './components/Carousel';
7
9
  export { Carousel } from './components/Carousel';
10
+
8
11
  export { Checkbox } from './components/Checkbox';
12
+ export type { ExtendedFABProps, FABProps } from './components/FAB';
9
13
  export { FAB } from './components/FAB';
14
+
10
15
  export { Flex } from './components/Flex';
11
16
  export { FormLabel } from './components/FormLabel';
12
17
  export { Input } from './components/Input';
@@ -17,4 +22,5 @@ export { Radio } from './components/Radio';
17
22
  export { Select } from './components/Select';
18
23
  export { Skeleton } from './components/Skeleton';
19
24
  export { Switch } from './components/Switch';
25
+ export type { TextComponentProps, TextStyleProps } from './components/Text';
20
26
  export { Text } from './components/Text';
package/src/index.tsx CHANGED
@@ -1,12 +1,76 @@
1
1
  /**
2
2
  * Main entry point for @navegarti/rn-design-system
3
3
  *
4
- * Import from subpaths:
5
- * - '@navegarti/rn-design-system/components'
6
- * - '@navegarti/rn-design-system/hooks'
7
- * - '@navegarti/rn-design-system/utils'
8
- * - '@navegarti/rn-design-system/api'
9
- * - '@navegarti/rn-design-system/form'
4
+ * Re-exports everything from each sub-path module so consumers can use either:
5
+ * import { Button } from '@navegarti/rn-design-system'
6
+ * import { Button } from '@navegarti/rn-design-system/components'
7
+ *
8
+ * Tree shaking is enabled via "sideEffects": false in package.json,
9
+ * so unused exports are eliminated at build time.
10
10
  */
11
11
 
12
- export {};
12
+ // API
13
+ export {
14
+ ApiError,
15
+ AuthError,
16
+ NetworkError,
17
+ NotFoundError,
18
+ RateLimitError,
19
+ ServerError,
20
+ TimeoutError,
21
+ ValidationError,
22
+ } from './api/errors';
23
+
24
+ export { AxiosAdapter, apiRequest, useAuthStore } from './api/index';
25
+
26
+ export type { ApiConfig, ApiResponse, IHttpAdapter } from './api/types';
27
+ export type { ButtonProps } from './components/Button';
28
+ // Components
29
+ export { Button } from './components/Button';
30
+ export type { CarouselRootProps } from './components/Carousel';
31
+ export { Carousel } from './components/Carousel';
32
+
33
+ export { Checkbox } from './components/Checkbox';
34
+ export type { ExtendedFABProps, FABProps } from './components/FAB';
35
+ export { FAB } from './components/FAB';
36
+
37
+ export { Flex } from './components/Flex';
38
+ export { FormLabel } from './components/FormLabel';
39
+ export { Input } from './components/Input';
40
+ export { Margin } from './components/Margin';
41
+ export { OTPInput } from './components/OTPInput';
42
+ export { Padding } from './components/Padding';
43
+ export { Radio } from './components/Radio';
44
+ export { Select } from './components/Select';
45
+ export { Skeleton } from './components/Skeleton';
46
+ export { Switch } from './components/Switch';
47
+ export type { TextComponentProps, TextStyleProps } from './components/Text';
48
+ export { Text } from './components/Text';
49
+ // Form & Validators
50
+ export { formValidators } from './formValidators';
51
+ // Hooks
52
+ export { useAppIsActive } from './hooks/useAppIsActive';
53
+ export { useAppSecurity } from './hooks/useAppSecurity';
54
+ export { useNetworkMonitor, useNetworkStatus } from './hooks/useNetworkStatus';
55
+ export { useStatusBar } from './hooks/useStatusBar';
56
+ export { tanstackForm } from './libs/tanstack-form';
57
+
58
+ // Utils
59
+ export { camelCase } from './utils/camelCase';
60
+ export { camelCaseJSONKeys } from './utils/camelCaseJSONKeys';
61
+ export { capitalizeWord } from './utils/capitalizeWord';
62
+ export { createLinkingPhoneNumberString } from './utils/createLinkingPhoneNumberString';
63
+ export * from './utils/dateFormatters';
64
+ export { debounce } from './utils/debounce';
65
+ export { deepLinkParser } from './utils/deepLinkParser';
66
+ export { getAge } from './utils/getAge';
67
+ export { getOnlyNumbers } from './utils/getOnlyNumbers';
68
+ export { isArray } from './utils/isArray';
69
+ export { isObject } from './utils/isObject';
70
+ export { Masks } from './utils/masks';
71
+ export { priceFormatter } from './utils/priceFormatter';
72
+ export { removeTextAccents } from './utils/removeTextAccents';
73
+ export { shadowStyledIos } from './utils/shadowStyledIos';
74
+ export { sortBy } from './utils/sortBy';
75
+ export { uniqBy } from './utils/uniqBy';
76
+ export { userFullnameInitialsExtractor } from './utils/userFullnameInitialsExtractor';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=lucide-icons.d.js.map
@@ -1,5 +0,0 @@
1
- declare module 'lucide-react-native/dist/esm/icons/*' {
2
- import type { LucideIcon } from 'lucide-react-native';
3
- const icon: LucideIcon;
4
- export default icon;
5
- }