@aws-amplify/ui-react-native 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @aws-amplify/ui-react-native
2
2
 
3
+ ## 1.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3417](https://github.com/aws-amplify/amplify-ui/pull/3417) [`0c8fa2ac2`](https://github.com/aws-amplify/amplify-ui/commit/0c8fa2ac2b89e7617bbc601f29cc9cbf902d08ae) Thanks [@calebpollman](https://github.com/calebpollman)! - Migrate `capitalize` util to UI package
8
+
9
+ - Updated dependencies [[`0c8fa2ac2`](https://github.com/aws-amplify/amplify-ui/commit/0c8fa2ac2b89e7617bbc601f29cc9cbf902d08ae), [`d214551f0`](https://github.com/aws-amplify/amplify-ui/commit/d214551f0edb001878f7a04b4206c57a677ecfa8)]:
10
+ - @aws-amplify/ui@5.5.5
11
+ - @aws-amplify/ui-react-core@2.1.13
12
+
3
13
  ## 1.2.7
4
14
 
5
15
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { View } from 'react-native';
3
+ import { capitalize } from '@aws-amplify/ui';
3
4
  import { icons } from '../../../assets';
4
- import { capitalize } from '../../../utils';
5
5
  import { FederatedProviderButton } from '../FederatedProviderButton';
6
6
  import { Divider } from '../../../primitives';
7
7
  import { styles } from './styles';
@@ -1,8 +1,8 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { Pressable, Text } from 'react-native';
3
+ import { capitalize } from '@aws-amplify/ui';
3
4
  import { usePressableContainerStyles } from '../../hooks';
4
5
  import { useTheme } from '../../theme';
5
- import { capitalize } from '../../utils';
6
6
  import { getThemedStyles } from './styles';
7
7
  export default function Button({ accessibilityRole = 'button', children, disabled, style, textStyle, variant = 'default', ...rest }) {
8
8
  const theme = useTheme();
@@ -1,4 +1,4 @@
1
- import { capitalize } from '../../utils';
1
+ import { capitalize } from '@aws-amplify/ui';
2
2
  /**
3
3
  * These utility functions are used to apply styles to
4
4
  * the two nested View's comprising the Radio:
@@ -1,3 +1,2 @@
1
1
  export { getLineHeight } from './font';
2
2
  export { default as platform } from './platform';
3
- export { capitalize } from './utils';
@@ -1,3 +1,2 @@
1
1
  export { getLineHeight } from './font';
2
2
  export { default as platform } from './platform';
3
- export { capitalize } from './utils';
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.2.7";
1
+ export declare const VERSION = "1.2.8";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.7';
1
+ export const VERSION = '1.2.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-native",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,8 +43,8 @@
43
43
  "type-fest": "^2.3.4"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-amplify/ui": "5.5.4",
47
- "@aws-amplify/ui-react-core": "2.1.12"
46
+ "@aws-amplify/ui": "5.5.5",
47
+ "@aws-amplify/ui-react-core": "2.1.13"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "aws-amplify": ">= 5.0.1",
@@ -1,8 +1,8 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { View } from 'react-native';
3
+ import { capitalize } from '@aws-amplify/ui';
3
4
 
4
5
  import { icons } from '../../../assets';
5
- import { capitalize } from '../../../utils';
6
6
  import { FederatedProviderButton } from '../FederatedProviderButton';
7
7
  import { Divider } from '../../../primitives';
8
8
 
@@ -1,9 +1,9 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { Pressable, Text, TextStyle, ViewStyle } from 'react-native';
3
- import { usePressableContainerStyles } from '../../hooks';
3
+ import { capitalize } from '@aws-amplify/ui';
4
4
 
5
+ import { usePressableContainerStyles } from '../../hooks';
5
6
  import { useTheme } from '../../theme';
6
- import { capitalize } from '../../utils';
7
7
  import { getThemedStyles } from './styles';
8
8
  import { ButtonProps } from './types';
9
9
 
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { fireEvent, render, renderHook } from '@testing-library/react-native';
3
+ import { capitalize } from '@aws-amplify/ui';
4
+
3
5
  import { useTheme } from '../../../theme';
4
- import { capitalize } from '../../../utils';
5
6
  import { RADIO_DOT_PROPORTION } from '../getRadioDimensions';
6
7
  import Radio, { CONTAINER_TEST_ID, DOT_TEST_ID } from '../Radio';
7
8
  import { getThemedStyles } from '../styles';
@@ -1,4 +1,4 @@
1
- import { capitalize } from '../../utils';
1
+ import { capitalize } from '@aws-amplify/ui';
2
2
 
3
3
  import { RadioDimensions, RadioStyles, Size } from './types';
4
4
 
@@ -1,3 +1,2 @@
1
1
  export { getLineHeight } from './font';
2
2
  export { default as platform } from './platform';
3
- export { capitalize } from './utils';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.2.7';
1
+ export const VERSION = '1.2.8';
@@ -1 +0,0 @@
1
- export declare function capitalize<T extends string>(value: T): Capitalize<T>;
@@ -1,3 +0,0 @@
1
- export function capitalize(value) {
2
- return (value.charAt(0).toUpperCase() + value.slice(1));
3
- }
@@ -1,3 +0,0 @@
1
- export function capitalize<T extends string>(value: T): Capitalize<T> {
2
- return (value.charAt(0).toUpperCase() + value.slice(1)) as Capitalize<T>;
3
- }