@factorialco/f0-react-native 0.20.0 → 0.20.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Factorial One React Native
1
+ # F0 React Native
2
2
 
3
- React Native implementation of the Factorial One Design System.
3
+ React Native implementation of the F0 Design System.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,7 @@ pnpm add @factorialco/f0-react-native
18
18
  import { ExampleComponent } from "@factorialco/f0-react-native";
19
19
 
20
20
  export default function App() {
21
- return <ExampleComponent text="Hello from Factorial One!" />;
21
+ return <ExampleComponent text="Hello from F0!" />;
22
22
  }
23
23
  ```
24
24
 
package/package.json CHANGED
@@ -1,22 +1,34 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react-native",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "type": "module",
5
- "description": "React Native components for Factorial One Design System",
5
+ "description": "React Native components for F0 Design System",
6
6
  "main": "src/index.ts",
7
7
  "module": "src/index.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./src/index.ts"
10
+ "import": "./src/index.ts",
11
+ "require": "./src/index.ts",
12
+ "react-native": "./src/index.ts",
13
+ "default": "./src/index.ts"
11
14
  },
12
15
  "./icons": {
13
- "import": "./src/icons/index.ts"
16
+ "import": "./src/icons/index.ts",
17
+ "require": "./src/icons/index.ts",
18
+ "react-native": "./src/icons/index.ts",
19
+ "default": "./src/icons/index.ts"
14
20
  },
15
21
  "./icons/app": {
16
- "import": "./src/icons/app/index.ts"
22
+ "import": "./src/icons/app/index.ts",
23
+ "require": "./src/icons/app/index.ts",
24
+ "react-native": "./src/icons/app/index.ts",
25
+ "default": "./src/icons/app/index.ts"
17
26
  },
18
27
  "./icons/modules": {
19
- "import": "./src/icons/modules/index.ts"
28
+ "import": "./src/icons/modules/index.ts",
29
+ "require": "./src/icons/modules/index.ts",
30
+ "react-native": "./src/icons/modules/index.ts",
31
+ "default": "./src/icons/modules/index.ts"
20
32
  },
21
33
  "./tailwind.config": "./tailwind.config.ts"
22
34
  },
@@ -49,7 +61,7 @@
49
61
  "lodash": "^4.17.21",
50
62
  "react-native-safe-area-context": "4.12.0",
51
63
  "tailwind-merge": "^2.6.0",
52
- "@factorialco/f0-core": "1.26.0"
64
+ "@factorialco/f0-core": "1.29.0"
53
65
  },
54
66
  "devDependencies": {
55
67
  "@svgr/cli": "^8.1.0",
@@ -70,7 +82,8 @@
70
82
  "react-native-svg": "^15.8.0",
71
83
  "tailwindcss": "^3.4.3",
72
84
  "tailwindcss-animate": "^1.0.7",
73
- "typescript": "^5.7.2"
85
+ "typescript": "^5.7.2",
86
+ "babel-jest": "^29.7.0"
74
87
  },
75
88
  "scripts": {
76
89
  "build": "echo 'we ship source code as is'; exit 0",
@@ -9,7 +9,7 @@ exports[`TeamAvatar Snapshot 1`] = `
9
9
  >
10
10
  <View
11
11
  aria-hidden={true}
12
- className="flex shrink-0 items-center justify-center overflow-hidden text-center font-semibold w-8 h-8 rounded bg-[hsl(theme(colors.smoke.50))]"
12
+ className="flex shrink-0 items-center justify-center overflow-hidden text-center font-semibold w-8 h-8 rounded bg-[hsl(theme(colors.army.50))]"
13
13
  data-a11y-color-contrast-ignore={true}
14
14
  role="img"
15
15
  >
@@ -17,7 +17,7 @@ exports[`TeamAvatar Snapshot 1`] = `
17
17
  className="text-f1-foreground-inverse/90 text-md"
18
18
  data-a11y-color-contrast-ignore={true}
19
19
  >
20
- FA
20
+ F0
21
21
  </Text>
22
22
  </View>
23
23
  </View>
@@ -4,7 +4,7 @@ import { TeamAvatar } from "./";
4
4
 
5
5
  describe("TeamAvatar", () => {
6
6
  it("Snapshot", () => {
7
- const { toJSON } = render(<TeamAvatar name="Factorial One" />);
7
+ const { toJSON } = render(<TeamAvatar name="F0" />);
8
8
 
9
9
  expect(toJSON()).toMatchSnapshot();
10
10
  });
@@ -1,6 +1,6 @@
1
1
  # Icon Component
2
2
 
3
- The Icon component is used to render SVG icons from the Factorial One Design System in React Native applications.
3
+ The Icon component is used to render SVG icons from the F0 Design System in React Native applications.
4
4
 
5
5
  ## Import Pattern
6
6
 
@@ -1025,57 +1025,3 @@ exports[`RawTag Snapshot 19`] = `
1025
1025
  </View>
1026
1026
  </View>
1027
1027
  `;
1028
-
1029
- exports[`RawTag Snapshot 20`] = `
1030
- <View
1031
- className="flex items-start"
1032
- >
1033
- <View
1034
- accessibilityState={
1035
- {
1036
- "busy": undefined,
1037
- "checked": undefined,
1038
- "disabled": undefined,
1039
- "expanded": undefined,
1040
- "selected": undefined,
1041
- }
1042
- }
1043
- accessibilityValue={
1044
- {
1045
- "max": undefined,
1046
- "min": undefined,
1047
- "now": undefined,
1048
- "text": undefined,
1049
- }
1050
- }
1051
- accessible={true}
1052
- className="flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-1 border border-solid border-f1-border-secondary"
1053
- collapsable={false}
1054
- focusable={true}
1055
- onBlur={[Function]}
1056
- onClick={[Function]}
1057
- onFocus={[Function]}
1058
- onResponderGrant={[Function]}
1059
- onResponderMove={[Function]}
1060
- onResponderRelease={[Function]}
1061
- onResponderTerminate={[Function]}
1062
- onResponderTerminationRequest={[Function]}
1063
- onStartShouldSetResponder={[Function]}
1064
- >
1065
- <View
1066
- aria-hidden={true}
1067
- className="m-1 aspect-square w-2 rounded-full"
1068
- style={
1069
- {
1070
- "backgroundColor": "hsl(undefined)",
1071
- }
1072
- }
1073
- />
1074
- <Text
1075
- className="line-clamp-1 text-base font-medium text-f1-foreground"
1076
- >
1077
- Label
1078
- </Text>
1079
- </View>
1080
- </View>
1081
- `;
package/src/index.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  // Export components
2
2
  export * from "./components/Activity/ActivityItem";
3
+ export * from "./components/Avatars/exports";
4
+ export * from "./components/Badge";
3
5
  export * from "./components/Button";
6
+ export * from "./components/Counter";
4
7
  export * from "./components/ExampleComponent";
5
8
  export * from "./components/Icon";
6
- export * from "./components/Avatars/exports";
7
- export * from "./components/Counter";
8
- export * from "./components/OnePreset";
9
- export * from "./components/Tags/exports";
10
- export * from "./components/OneChip";
11
9
  export * from "./components/Navigation/PageHeader";
10
+ export * from "./components/OneChip";
11
+ export * from "./components/OnePreset";
12
12
  export * from "./components/Tags/exports";
13
13
  export * from "./components/experimental/Lists/DataList";
14
14
  export * from "./components/experimental/Lists/DetailsItem";