@factorialco/f0-react-native 0.27.0 → 0.28.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.
Files changed (61) hide show
  1. package/README.md +44 -32
  2. package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.js +2 -0
  3. package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.js.map +1 -0
  4. package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.md +159 -0
  5. package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.js +2 -0
  6. package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.js.map +1 -0
  7. package/lib/module/components/primitives/F0Text/AnimatedF0Text/index.js +2 -0
  8. package/lib/module/components/primitives/F0Text/AnimatedF0Text/index.js.map +1 -0
  9. package/lib/module/components/primitives/F0Text/F0Text/F0Text.js +2 -0
  10. package/lib/module/components/primitives/F0Text/F0Text/F0Text.js.map +1 -0
  11. package/{src/components/primitives → lib/module/components/primitives/F0Text}/F0Text/F0Text.md +86 -18
  12. package/lib/module/components/primitives/F0Text/F0Text/F0Text.styles.js +2 -0
  13. package/lib/module/components/primitives/F0Text/F0Text/F0Text.styles.js.map +1 -0
  14. package/lib/module/components/primitives/F0Text/F0Text/F0Text.types.js +2 -0
  15. package/lib/module/components/primitives/F0Text/F0Text/F0Text.types.js.map +1 -0
  16. package/lib/module/components/primitives/F0Text/F0Text/index.js +2 -0
  17. package/lib/module/components/primitives/F0Text/F0Text/index.js.map +1 -0
  18. package/lib/module/components/primitives/F0Text/index.js +1 -1
  19. package/lib/module/components/primitives/F0Text/index.js.map +1 -1
  20. package/lib/module/styles/theme.css +7 -0
  21. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.d.ts +5 -0
  22. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.d.ts.map +1 -0
  23. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.d.ts +45 -0
  24. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.d.ts.map +1 -0
  25. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/index.d.ts +8 -0
  26. package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/index.d.ts.map +1 -0
  27. package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.d.ts.map +1 -0
  28. package/lib/typescript/components/primitives/F0Text/{F0Text.styles.d.ts → F0Text/F0Text.styles.d.ts} +6 -2
  29. package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.styles.d.ts.map +1 -0
  30. package/lib/typescript/components/primitives/F0Text/{F0Text.types.d.ts → F0Text/F0Text.types.d.ts} +1 -1
  31. package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.types.d.ts.map +1 -0
  32. package/lib/typescript/components/primitives/F0Text/F0Text/index.d.ts +9 -0
  33. package/lib/typescript/components/primitives/F0Text/F0Text/index.d.ts.map +1 -0
  34. package/lib/typescript/components/primitives/F0Text/index.d.ts +5 -2
  35. package/lib/typescript/components/primitives/F0Text/index.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.md +159 -0
  38. package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.tsx +72 -0
  39. package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.ts +61 -0
  40. package/src/components/primitives/F0Text/AnimatedF0Text/__tests__/AnimatedF0Text.spec.tsx +131 -0
  41. package/src/components/primitives/F0Text/AnimatedF0Text/__tests__/__snapshots__/AnimatedF0Text.spec.tsx.snap +144 -0
  42. package/src/components/primitives/F0Text/AnimatedF0Text/index.ts +8 -0
  43. package/{lib/module/components/primitives → src/components/primitives/F0Text}/F0Text/F0Text.md +86 -18
  44. package/src/components/primitives/F0Text/{F0Text.styles.ts → F0Text/F0Text.styles.ts} +5 -2
  45. package/src/components/primitives/F0Text/{F0Text.tsx → F0Text/F0Text.tsx} +1 -1
  46. package/src/components/primitives/F0Text/{F0Text.types.ts → F0Text/F0Text.types.ts} +1 -0
  47. package/src/components/primitives/F0Text/{__tests__/index.spec.tsx → F0Text/__tests__/F0Text.spec.tsx} +1 -0
  48. package/src/components/primitives/F0Text/{__tests__/__snapshots__/index.spec.tsx.snap → F0Text/__tests__/__snapshots__/F0Text.spec.tsx.snap} +9 -0
  49. package/src/components/primitives/F0Text/F0Text/index.ts +22 -0
  50. package/src/components/primitives/F0Text/index.ts +6 -2
  51. package/src/styles/theme.css +7 -0
  52. package/lib/module/components/primitives/F0Text/F0Text.js +0 -2
  53. package/lib/module/components/primitives/F0Text/F0Text.js.map +0 -1
  54. package/lib/module/components/primitives/F0Text/F0Text.styles.js +0 -2
  55. package/lib/module/components/primitives/F0Text/F0Text.styles.js.map +0 -1
  56. package/lib/module/components/primitives/F0Text/F0Text.types.js +0 -2
  57. package/lib/module/components/primitives/F0Text/F0Text.types.js.map +0 -1
  58. package/lib/typescript/components/primitives/F0Text/F0Text.d.ts.map +0 -1
  59. package/lib/typescript/components/primitives/F0Text/F0Text.styles.d.ts.map +0 -1
  60. package/lib/typescript/components/primitives/F0Text/F0Text.types.d.ts.map +0 -1
  61. /package/lib/typescript/components/primitives/F0Text/{F0Text.d.ts → F0Text/F0Text.d.ts} +0 -0
package/README.md CHANGED
@@ -103,52 +103,64 @@ import "./global.css";
103
103
 
104
104
  > **Note:** Add `@source "./node_modules/@factorialco/f0-react-native/lib";` so Tailwind can detect all component classes.
105
105
 
106
- ### 5️⃣ Add Custom Fonts (Host App)
106
+ ### 5️⃣ Add Inter Fonts (Host App)
107
107
 
108
- To use custom fonts in your host app, load them with Expo Font and override the font CSS variables.
108
+ F0 components use the **Inter** font family. The host app must embed the font files
109
+ and register them with Uniwind so both iOS and Android resolve them correctly.
109
110
 
110
- **Install font dependencies (Expo):**
111
+ #### Step A: Add font files
111
112
 
112
- ```bash
113
- pnpm add expo-font @expo-google-fonts/your-font
114
- ```
113
+ Place the Inter `.ttf` files in your project. **File names must match the PostScript
114
+ name embedded in each font file** (you can inspect PostScript names with tools like
115
+ `fc-query` or `fontTools`):
115
116
 
116
- **Load fonts in your app (Expo):**
117
+ ```
118
+ assets/fonts/Inter/
119
+ Inter-Regular.ttf # PostScript name: Inter-Regular (weight 400)
120
+ Inter-Medium.ttf # PostScript name: Inter-Medium (weight 500)
121
+ Inter-SemiBold.ttf # PostScript name: Inter-SemiBold (weight 600)
122
+ Inter-Bold.ttf # PostScript name: Inter-Bold (weight 700)
123
+ ```
117
124
 
118
- ```tsx
119
- import { useFonts } from "expo-font";
120
- import {
121
- YourFont_400Regular,
122
- YourFont_500Medium,
123
- YourFont_600SemiBold,
124
- } from "@expo-google-fonts/your-font";
125
+ > **Why file names matter:** iOS resolves fonts by PostScript name, Android by
126
+ > asset file name (minus extension). When they match, a single CSS value works on
127
+ > both platforms without platform-specific overrides.
125
128
 
126
- export default function App() {
127
- const [fontsLoaded] = useFonts({
128
- YourFont_400Regular,
129
- YourFont_500Medium,
130
- YourFont_600SemiBold,
131
- });
129
+ #### Step B: Register with `expo-font`
132
130
 
133
- if (!fontsLoaded) {
134
- return null; // Or return a loading screen
135
- }
131
+ Add the `expo-font` config plugin to your **`app.json`**:
136
132
 
137
- return <YourApp />; // Render your app root
138
- }
133
+ ```json
134
+ ["expo-font", { "fonts": [
135
+ "./assets/fonts/Inter/Inter-Regular.ttf",
136
+ "./assets/fonts/Inter/Inter-Medium.ttf",
137
+ "./assets/fonts/Inter/Inter-SemiBold.ttf",
138
+ "./assets/fonts/Inter/Inter-Bold.ttf"
139
+ ]}]
139
140
  ```
140
141
 
141
- **Override font variables in `global.css`:**
142
+ This embeds the fonts at build time — no runtime `useFonts` call needed.
143
+
144
+ #### Step C: Define font variables in `global.css`
145
+
146
+ Add a `@theme` block **after** the F0 style imports:
142
147
 
143
148
  ```css
144
149
  @theme {
145
- --font-normal: "YourFont-Regular";
146
- --font-medium: "YourFont-Medium";
147
- --font-semibold: "YourFont-SemiBold";
150
+ --font-normal: "Inter-Regular";
151
+ --font-medium: "Inter-Medium";
152
+ --font-semibold: "Inter-SemiBold";
153
+ --font-bold: "Inter-Bold";
148
154
  }
149
155
  ```
150
156
 
151
- > **Note:** The font names must match the PostScript names of the loaded fonts. Use the exact names from your font package or assets.
157
+ The values must match the file names (without `.ttf`). Uniwind maps Tailwind
158
+ `font-normal`, `font-medium`, `font-semibold`, and `font-bold` utilities to
159
+ these variables.
160
+
161
+ > **Rebuild required:** Font changes are picked up at build time, not via
162
+ > Metro hot reload. Run `npx expo prebuild --clean && npx expo run:ios` (or
163
+ > `run:android`) after adding or renaming font files.
152
164
 
153
165
  ### 6️⃣ TypeScript Support (Optional)
154
166
 
@@ -167,8 +179,8 @@ Use this section after each manual update so people can install the latest build
167
179
  ### ✅ Latest Update
168
180
 
169
181
  - **Branch / Channel:** `production`
170
- - **Update message:** `Typography Scale`
171
- - **Published at:** `Feb 6, 2026 1:19 PM`
182
+ - **Update message:** `F0Text and AnimatedF0Text`
183
+ - **Published at:** `Mar 4, 2026`
172
184
 
173
185
  ### 🔗 Deep Link
174
186
 
@@ -0,0 +1,2 @@
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["variant","color","align","decoration","transform","children","numberOfLines","style"];import React from"react";import{Text as RNText}from"react-native";import Animated from"react-native-reanimated";import{textVariants}from"../F0Text/F0Text.styles";import{jsx as _jsx}from"react/jsx-runtime";var AnimatedText=Animated.createAnimatedComponent(RNText);var AnimatedF0TextComponent=React.forwardRef(function(_ref,ref){var _ref$variant=_ref.variant,variant=_ref$variant===void 0?"body-sm-default":_ref$variant,_ref$color=_ref.color,color=_ref$color===void 0?"default":_ref$color,_ref$align=_ref.align,align=_ref$align===void 0?"left":_ref$align,_ref$decoration=_ref.decoration,decoration=_ref$decoration===void 0?"none":_ref$decoration,_ref$transform=_ref.transform,transform=_ref$transform===void 0?"none":_ref$transform,children=_ref.children,numberOfLines=_ref.numberOfLines,style=_ref.style,rest=_objectWithoutProperties(_ref,_excluded);var textClassName=React.useMemo(function(){return textVariants({variant:variant,color:color,align:align,decoration:decoration,transform:transform});},[variant,color,align,decoration,transform]);return _jsx(AnimatedText,Object.assign({ref:ref},rest,{className:textClassName,style:style,numberOfLines:numberOfLines,ellipsizeMode:numberOfLines?"tail":undefined,children:children}));});AnimatedF0TextComponent.displayName="AnimatedF0Text";export var AnimatedF0Text=React.memo(AnimatedF0TextComponent);
2
+ //# sourceMappingURL=AnimatedF0Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Text","RNText","Animated","textVariants","jsx","_jsx","AnimatedText","createAnimatedComponent","AnimatedF0TextComponent","forwardRef","_ref","ref","_ref$variant","variant","_ref$color","color","_ref$align","align","_ref$decoration","decoration","_ref$transform","transform","children","numberOfLines","style","rest","_objectWithoutProperties","_excluded","textClassName","useMemo","Object","assign","className","ellipsizeMode","undefined","displayName","AnimatedF0Text","memo"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.tsx"],"mappings":"2LAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CACzB,OAASC,IAAI,GAAI,CAAAC,MAAM,KAAQ,cAAc,CAC7C,MAAO,CAAAC,QAAQ,KAAM,yBAAyB,CAE9C,OAASC,YAAY,KAAQ,yBAAyB,QAAAC,GAAA,IAAAC,IAAA,yBAItD,GAAM,CAAAC,YAAY,CAAGJ,QAAQ,CAACK,uBAAuB,CAACN,MAAM,CAAC,CAc7D,GAAM,CAAAO,uBAAuB,CAAGT,KAAK,CAACU,UAAU,CAI9C,SAAAC,IAAA,CAYEC,GAAG,CACA,KAAAC,YAAA,CAAAF,IAAA,CAXDG,OAAO,CAAPA,OAAO,CAAAD,YAAA,UAAG,iBAAiB,CAAAA,YAAA,CAAAE,UAAA,CAAAJ,IAAA,CAC3BK,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,SAAS,CAAAA,UAAA,CAAAE,UAAA,CAAAN,IAAA,CACjBO,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,MAAM,CAAAA,UAAA,CAAAE,eAAA,CAAAR,IAAA,CACdS,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,MAAM,CAAAA,eAAA,CAAAE,cAAA,CAAAV,IAAA,CACnBW,SAAS,CAATA,SAAS,CAAAD,cAAA,UAAG,MAAM,CAAAA,cAAA,CAClBE,QAAQ,CAAAZ,IAAA,CAARY,QAAQ,CACRC,aAAa,CAAAb,IAAA,CAAba,aAAa,CACbC,KAAK,CAAAd,IAAA,CAALc,KAAK,CACFC,IAAI,CAAAC,wBAAA,CAAAhB,IAAA,CAAAiB,SAAA,EAIT,GAAM,CAAAC,aAAa,CAAG7B,KAAK,CAAC8B,OAAO,CACjC,iBACE,CAAA1B,YAAY,CAAC,CACXU,OAAO,CAAPA,OAAO,CACPE,KAAK,CAALA,KAAK,CACLE,KAAK,CAALA,KAAK,CACLE,UAAU,CAAVA,UAAU,CACVE,SAAS,CAATA,SACF,CAAC,CAAC,GACJ,CAACR,OAAO,CAAEE,KAAK,CAAEE,KAAK,CAAEE,UAAU,CAAEE,SAAS,CAC/C,CAAC,CAED,MACE,CAAAhB,IAAA,CAACC,YAAY,CAAAwB,MAAA,CAAAC,MAAA,EACXpB,GAAG,CAAEA,GAAI,EACLc,IAAI,EACRO,SAAS,CAAEJ,aAAc,CACzBJ,KAAK,CAAEA,KAAM,CACbD,aAAa,CAAEA,aAAc,CAC7BU,aAAa,CAAEV,aAAa,CAAG,MAAM,CAAGW,SAAU,CAAAZ,QAAA,CAEjDA,QAAQ,EACG,CAAC,CAEnB,CACF,CAAC,CAEDd,uBAAuB,CAAC2B,WAAW,CAAG,gBAAgB,CAEtD,MAAO,IAAM,CAAAC,cAAc,CAAGrC,KAAK,CAACsC,IAAI,CAAC7B,uBAAuB,CAAC","ignoreList":[]}
@@ -0,0 +1,159 @@
1
+ # AnimatedF0Text
2
+
3
+ Animated text primitive for React Native with semantic typography variants and Reanimated animation support.
4
+
5
+ ## Features
6
+
7
+ - All F0Text semantic typography variants and colors
8
+ - Reanimated `entering`/`exiting` layout animations
9
+ - Animated `style` prop for custom animations via `useAnimatedStyle`
10
+ - Layout transition animations
11
+ - Shares the same typography system as F0Text
12
+ - Performance optimized with React.memo and useMemo
13
+
14
+ ## Installation
15
+
16
+ ```tsx
17
+ import { AnimatedF0Text } from "@factorialco/f0-react-native"
18
+ ```
19
+
20
+ Requires `react-native-reanimated` as a peer dependency.
21
+
22
+ ## When to use AnimatedF0Text vs F0Text
23
+
24
+ | Use case | Component |
25
+ | ------------------------------------------------- | ---------------- |
26
+ | Static text, no animation | `F0Text` |
27
+ | Text that fades in/out | `AnimatedF0Text` |
28
+ | Text with entering/exiting transitions | `AnimatedF0Text` |
29
+ | Text driven by animated values (scroll, gestures) | `AnimatedF0Text` |
30
+
31
+ ## Usage
32
+
33
+ ### Entering/Exiting Animations
34
+
35
+ <!-- prettier-ignore -->
36
+ ```tsx
37
+ import { AnimatedF0Text } from "@factorialco/f0-react-native"
38
+ import { FadeIn, FadeOut, SlideInLeft } from "react-native-reanimated"
39
+
40
+ <>
41
+ <AnimatedF0Text
42
+ variant="heading-xl"
43
+ entering={FadeIn.duration(300)}
44
+ exiting={FadeOut.duration(200)}
45
+ >
46
+ Welcome back
47
+ </AnimatedF0Text>
48
+
49
+ <AnimatedF0Text variant="heading-md" entering={SlideInLeft.springify()}>
50
+ Slide in heading
51
+ </AnimatedF0Text>
52
+ </>
53
+ ```
54
+
55
+ ### Custom Animated Styles
56
+
57
+ <!-- prettier-ignore -->
58
+ ```tsx
59
+ import { AnimatedF0Text } from "@factorialco/f0-react-native"
60
+ import { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated"
61
+
62
+ const opacity = useSharedValue(0)
63
+
64
+ const animatedStyle = useAnimatedStyle(() => ({
65
+ opacity: opacity.value,
66
+ transform: [{ translateY: withTiming(opacity.value * -10) }],
67
+ }))
68
+
69
+ <>
70
+ <AnimatedF0Text variant="body-md-default" style={animatedStyle}>
71
+ Custom animated text
72
+ </AnimatedF0Text>
73
+ </>
74
+ ```
75
+
76
+ ### Layout Transitions
77
+
78
+ <!-- prettier-ignore -->
79
+ ```tsx
80
+ import { AnimatedF0Text } from "@factorialco/f0-react-native"
81
+ import { LinearTransition } from "react-native-reanimated"
82
+
83
+ <>
84
+ <AnimatedF0Text
85
+ variant="body-sm-default"
86
+ layout={LinearTransition.springify()}
87
+ >
88
+ {dynamicContent}
89
+ </AnimatedF0Text>
90
+ </>
91
+ ```
92
+
93
+ ## API Reference
94
+
95
+ ### Props
96
+
97
+ AnimatedF0Text accepts all F0Text semantic props plus Reanimated animation props.
98
+
99
+ #### Typography Props (shared with F0Text)
100
+
101
+ | Prop | Type | Default | Description |
102
+ | --------------- | ------------------- | ------------------- | ---------------------------------------- |
103
+ | `variant` | `TypographyVariant` | `'body-sm-default'` | Typography variant |
104
+ | `color` | `TextColor` | `'default'` | Text color from F0 semantic color system |
105
+ | `align` | `TextAlign` | `'left'` | Text alignment |
106
+ | `decoration` | `TextDecoration` | `'none'` | Text decoration |
107
+ | `transform` | `TextTransform` | `'none'` | Text transform |
108
+ | `numberOfLines` | `number` | `undefined` | Max lines before truncation |
109
+
110
+ #### Animation Props
111
+
112
+ | Prop | Type | Description |
113
+ | ---------- | ------------------------------------------------- | -------------------------------------------------------------- |
114
+ | `entering` | `EntryOrExitLayoutType` | Reanimated entering animation (e.g. `FadeIn`, `SlideInLeft`) |
115
+ | `exiting` | `EntryOrExitLayoutType` | Reanimated exiting animation (e.g. `FadeOut`, `SlideOutRight`) |
116
+ | `layout` | `BaseAnimationBuilder \| LayoutAnimationFunction` | Layout transition animation |
117
+ | `style` | `AnimatedStyle` | Animated style from `useAnimatedStyle` |
118
+
119
+ All React Native `TextProps` are also supported (onPress, testID, etc.).
120
+
121
+ ### Typography Variants
122
+
123
+ See [F0Text documentation](../F0Text/F0Text.md) for the full list of typography variants and colors.
124
+
125
+ ## Architecture
126
+
127
+ ```
128
+ F0Text/ # Parent folder for text primitives
129
+ ├── F0Text/ # Static text component
130
+ │ ├── F0Text.tsx
131
+ │ ├── F0Text.types.ts # Shared types (TypographyVariant, TextColor, etc.)
132
+ │ ├── F0Text.styles.ts # Shared styles (textVariants)
133
+ │ ├── F0Text.md
134
+ │ ├── index.ts
135
+ │ └── __tests__/
136
+ ├── AnimatedF0Text/ # Animated text component
137
+ │ ├── AnimatedF0Text.tsx # Animated text (Reanimated Animated.Text)
138
+ │ ├── AnimatedF0Text.types.ts
139
+ │ ├── AnimatedF0Text.md
140
+ │ ├── index.ts
141
+ │ └── __tests__/
142
+ └── index.ts # Barrel re-exporting both
143
+ ```
144
+
145
+ - **Types** are imported from `../F0Text/F0Text.types.ts` (`TypographyVariant`, `TextColor`, etc.)
146
+ - **Styles** are imported from `../F0Text/F0Text.styles.ts` (`textVariants`)
147
+
148
+ This ensures both components always produce identical typography output.
149
+
150
+ ## Accessibility
151
+
152
+ - Fully supports React Native `Text` accessibility props
153
+ - Animations respect the device's reduced motion setting when using Reanimated's built-in animations
154
+
155
+ ## Performance
156
+
157
+ - **React.memo**: Prevents re-renders when props unchanged
158
+ - **useMemo**: Memoizes className computation
159
+ - Only imported when animation is needed (tree-shakeable)
@@ -0,0 +1,2 @@
1
+ export{};export{};
2
+ //# sourceMappingURL=AnimatedF0Text.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export{AnimatedF0Text}from"./AnimatedF0Text";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AnimatedF0Text"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/AnimatedF0Text/index.ts"],"mappings":"AAMA,OAASA,cAAc,KAAQ,kBAAkB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["variant","color","align","decoration","transform","children","numberOfLines"];import React from"react";import{Text as RNText}from"react-native";import{omitProps}from"../../../../lib/utils";import{textVariants}from"./F0Text.styles";import{F0_TEXT_BANNED_PROPS}from"./F0Text.types";import{jsx as _jsx}from"react/jsx-runtime";var F0TextComponent=React.forwardRef(function(_ref,ref){var _ref$variant=_ref.variant,variant=_ref$variant===void 0?"body-sm-default":_ref$variant,_ref$color=_ref.color,color=_ref$color===void 0?"default":_ref$color,_ref$align=_ref.align,align=_ref$align===void 0?"left":_ref$align,_ref$decoration=_ref.decoration,decoration=_ref$decoration===void 0?"none":_ref$decoration,_ref$transform=_ref.transform,transform=_ref$transform===void 0?"none":_ref$transform,children=_ref.children,numberOfLines=_ref.numberOfLines,rest=_objectWithoutProperties(_ref,_excluded);var textClassName=React.useMemo(function(){return textVariants({variant:variant,color:color,align:align,decoration:decoration,transform:transform});},[variant,color,align,decoration,transform]);return _jsx(RNText,Object.assign({ref:ref},omitProps(rest,F0_TEXT_BANNED_PROPS),{className:textClassName,numberOfLines:numberOfLines,ellipsizeMode:numberOfLines?"tail":undefined,children:children}));});F0TextComponent.displayName="F0Text";export var F0Text=React.memo(F0TextComponent);export{TYPOGRAPHY_VARIANTS,TEXT_COLORS,TEXT_ALIGN,TEXT_DECORATIONS,TEXT_TRANSFORMS}from"./F0Text.types";
2
+ //# sourceMappingURL=F0Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Text","RNText","omitProps","textVariants","F0_TEXT_BANNED_PROPS","jsx","_jsx","F0TextComponent","forwardRef","_ref","ref","_ref$variant","variant","_ref$color","color","_ref$align","align","_ref$decoration","decoration","_ref$transform","transform","children","numberOfLines","rest","_objectWithoutProperties","_excluded","textClassName","useMemo","Object","assign","className","ellipsizeMode","undefined","displayName","F0Text","memo","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/F0Text/F0Text.tsx"],"mappings":"mLAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CACzB,OAASC,IAAI,GAAI,CAAAC,MAAM,KAAQ,cAAc,CAE7C,OAASC,SAAS,KAAQ,uBAAuB,CAEjD,OAASC,YAAY,KAAQ,iBAAiB,CAC9C,OAASC,oBAAoB,KAA0B,gBAAgB,QAAAC,GAAA,IAAAC,IAAA,yBAUvE,GAAM,CAAAC,eAAe,CAAGR,KAAK,CAACS,UAAU,CACtC,SAAAC,IAAA,CAWEC,GAAG,CACA,KAAAC,YAAA,CAAAF,IAAA,CAVDG,OAAO,CAAPA,OAAO,CAAAD,YAAA,UAAG,iBAAiB,CAAAA,YAAA,CAAAE,UAAA,CAAAJ,IAAA,CAC3BK,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,SAAS,CAAAA,UAAA,CAAAE,UAAA,CAAAN,IAAA,CACjBO,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,MAAM,CAAAA,UAAA,CAAAE,eAAA,CAAAR,IAAA,CACdS,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,MAAM,CAAAA,eAAA,CAAAE,cAAA,CAAAV,IAAA,CACnBW,SAAS,CAATA,SAAS,CAAAD,cAAA,UAAG,MAAM,CAAAA,cAAA,CAClBE,QAAQ,CAAAZ,IAAA,CAARY,QAAQ,CACRC,aAAa,CAAAb,IAAA,CAAba,aAAa,CACVC,IAAI,CAAAC,wBAAA,CAAAf,IAAA,CAAAgB,SAAA,EAIT,GAAM,CAAAC,aAAa,CAAG3B,KAAK,CAAC4B,OAAO,CACjC,iBACE,CAAAxB,YAAY,CAAC,CACXS,OAAO,CAAPA,OAAO,CACPE,KAAK,CAALA,KAAK,CACLE,KAAK,CAALA,KAAK,CACLE,UAAU,CAAVA,UAAU,CACVE,SAAS,CAATA,SACF,CAAC,CAAC,GACJ,CAACR,OAAO,CAAEE,KAAK,CAAEE,KAAK,CAAEE,UAAU,CAAEE,SAAS,CAC/C,CAAC,CAED,MACE,CAAAd,IAAA,CAACL,MAAM,CAAA2B,MAAA,CAAAC,MAAA,EACLnB,GAAG,CAAEA,GAAI,EACLR,SAAS,CAACqB,IAAI,CAAEnB,oBAAoB,CAAC,EACzC0B,SAAS,CAAEJ,aAAc,CACzBJ,aAAa,CAAEA,aAAc,CAC7BS,aAAa,CAAET,aAAa,CAAG,MAAM,CAAGU,SAAU,CAAAX,QAAA,CAEjDA,QAAQ,EACH,CAAC,CAEb,CACF,CAAC,CAEDd,eAAe,CAAC0B,WAAW,CAAG,QAAQ,CAEtC,MAAO,IAAM,CAAAC,MAAM,CAAGnC,KAAK,CAACoC,IAAI,CAAC5B,eAAe,CAAC,CAIjD,OACE6B,mBAAmB,CACnBC,WAAW,CACXC,UAAU,CACVC,gBAAgB,CAChBC,eAAe,KACV,gBAAgB","ignoreList":[]}
@@ -20,6 +20,7 @@ import { F0Text } from "@factorialco/f0-react-native"
20
20
 
21
21
  ## Usage
22
22
 
23
+ <!-- prettier-ignore -->
23
24
  ```tsx
24
25
  <>
25
26
  <F0Text variant="heading-lg">Welcome</F0Text>
@@ -60,6 +61,7 @@ All variants use **Inter** font family with the weight included in the variant n
60
61
 
61
62
  | Variant | Size | Line Height | Weight | Letter Spacing |
62
63
  | ------------ | ---- | ----------- | -------------- | -------------- |
64
+ | `heading-xl` | 36px | 40px | Semibold (600) | -0.2px |
63
65
  | `heading-lg` | 24px | 32px | Semibold (600) | -0.2px |
64
66
  | `heading-md` | 20px | 28px | Semibold (600) | -0.2px |
65
67
  | `heading-sm` | 16px | 24px | Semibold (600) | - |
@@ -97,9 +99,11 @@ All variants use **Inter** font family with the weight included in the variant n
97
99
 
98
100
  ### Typography Variants
99
101
 
102
+ <!-- prettier-ignore -->
100
103
  ```tsx
101
104
  <>
102
105
  {/* Headings */}
106
+ <F0Text variant="heading-xl">Extra Large Heading</F0Text>
103
107
  <F0Text variant="heading-lg">Large Heading</F0Text>
104
108
  <F0Text variant="heading-md">Medium Heading</F0Text>
105
109
  <F0Text variant="heading-sm">Small Heading</F0Text>
@@ -117,6 +121,7 @@ All variants use **Inter** font family with the weight included in the variant n
117
121
 
118
122
  ### Colors
119
123
 
124
+ <!-- prettier-ignore -->
120
125
  ```tsx
121
126
  <>
122
127
  <F0Text variant="body-sm-default" color="default">
@@ -139,6 +144,7 @@ All variants use **Inter** font family with the weight included in the variant n
139
144
 
140
145
  ### Text Decorations & Transforms
141
146
 
147
+ <!-- prettier-ignore -->
142
148
  ```tsx
143
149
  <>
144
150
  <F0Text variant="body-sm-default" decoration="underline">
@@ -158,6 +164,7 @@ All variants use **Inter** font family with the weight included in the variant n
158
164
 
159
165
  ### Truncation
160
166
 
167
+ <!-- prettier-ignore -->
161
168
  ```tsx
162
169
  <>
163
170
  <F0Text variant="body-sm-default" numberOfLines={1}>
@@ -175,6 +182,7 @@ All variants use **Inter** font family with the weight included in the variant n
175
182
 
176
183
  F0Text doesn't accept `className` to prevent typography override. Use a View wrapper for spacing:
177
184
 
185
+ <!-- prettier-ignore -->
178
186
  ```tsx
179
187
  <>
180
188
  {/* Spacing with View wrapper */}
@@ -197,6 +205,7 @@ F0Text doesn't accept `className` to prevent typography override. Use a View wra
197
205
 
198
206
  ### Combined Props
199
207
 
208
+ <!-- prettier-ignore -->
200
209
  ```tsx
201
210
  <F0Text
202
211
  variant="heading-md"
@@ -211,6 +220,7 @@ F0Text doesn't accept `className` to prevent typography override. Use a View wra
211
220
 
212
221
  ### Nested Text
213
222
 
223
+ <!-- prettier-ignore -->
214
224
  ```tsx
215
225
  <F0Text variant="body-sm-default">
216
226
  This is regular text with{" "}
@@ -223,6 +233,7 @@ F0Text doesn't accept `className` to prevent typography override. Use a View wra
223
233
 
224
234
  ### Real-world Card Example
225
235
 
236
+ <!-- prettier-ignore -->
226
237
  ```tsx
227
238
  <View className="rounded-lg bg-f0-background-secondary p-4">
228
239
  <View className="mb-2">
@@ -243,27 +254,82 @@ F0Text doesn't accept `className` to prevent typography override. Use a View wra
243
254
  ## Architecture
244
255
 
245
256
  ```
246
- F0Text/
247
- ├── F0Text.tsx # Main component
248
- ├── F0Text.md # Documentation
249
- ├── F0Text.types.ts # TypeScript types
250
- ├── F0Text.styles.ts # Tailwind variants config
251
- ├── index.ts # Public exports
252
- └── __tests__/
253
- ├── index.spec.tsx
254
- └── __snapshots__/
257
+ F0Text/ # Parent folder for text primitives
258
+ ├── F0Text/ # Static text component
259
+ ├── F0Text.tsx # Main component
260
+ ├── F0Text.md # Documentation
261
+ ├── F0Text.types.ts # TypeScript types
262
+ ├── F0Text.styles.ts # Tailwind variants config
263
+ │ ├── index.ts # Public exports
264
+ │ └── __tests__/
265
+ │ ├── F0Text.spec.tsx
266
+ │ └── __snapshots__/
267
+ ├── AnimatedF0Text/ # Animated text component
268
+ │ ├── AnimatedF0Text.tsx
269
+ │ ├── AnimatedF0Text.md
270
+ │ ├── AnimatedF0Text.types.ts
271
+ │ ├── index.ts
272
+ │ └── __tests__/
273
+ │ ├── AnimatedF0Text.spec.tsx
274
+ │ └── __snapshots__/
275
+ └── index.ts # Barrel re-exporting both
255
276
  ```
256
277
 
257
278
  ### Font Family
258
279
 
259
- F0Text uses **Inter** font family through Tailwind/Uniwind font weight classes:
280
+ F0Text uses the **Inter** font family through Tailwind/Uniwind `font-*` utility classes,
281
+ which map to `--font-*` CSS variables defined in the app's `@theme`:
282
+
283
+ | Tailwind Class | CSS Variable | Font Name | Font Weight |
284
+ | --------------- | ----------------- | -------------- | ----------- |
285
+ | `font-normal` | `--font-normal` | Inter-Regular | 400 |
286
+ | `font-medium` | `--font-medium` | Inter-Medium | 500 |
287
+ | `font-semibold` | `--font-semibold` | Inter-SemiBold | 600 |
288
+ | `font-bold` | `--font-bold` | Inter-Bold | 700 |
289
+
290
+ #### Host App Font Setup
291
+
292
+ The consuming app must embed the Inter `.ttf` files and wire them up for both
293
+ iOS and Android. See the [README "Add Inter Fonts"](../../../../../README.md#5️⃣-add-inter-fonts-host-app) section for the full
294
+ step-by-step guide. The short version:
295
+
296
+ 1. **Name font files to match their PostScript name** (e.g. `Inter-Regular.ttf`
297
+ for PostScript name `Inter-Regular`). iOS resolves fonts by PostScript name,
298
+ Android by asset file name — matching them avoids platform-specific overrides.
299
+
300
+ 2. **Register via `expo-font`** config plugin in `app.json`:
301
+
302
+ ```json
303
+ [
304
+ "expo-font",
305
+ {
306
+ "fonts": [
307
+ "./assets/fonts/Inter/Inter-Regular.ttf",
308
+ "./assets/fonts/Inter/Inter-Medium.ttf",
309
+ "./assets/fonts/Inter/Inter-SemiBold.ttf",
310
+ "./assets/fonts/Inter/Inter-Bold.ttf"
311
+ ]
312
+ }
313
+ ]
314
+ ```
315
+
316
+ 3. **Define `@theme` variables** in `global.css`:
317
+
318
+ ```css
319
+ @theme {
320
+ --font-normal: "Inter-Regular";
321
+ --font-medium: "Inter-Medium";
322
+ --font-semibold: "Inter-SemiBold";
323
+ --font-bold: "Inter-Bold";
324
+ }
325
+ ```
326
+
327
+ The `@theme` values must match the file names (without `.ttf`). Uniwind maps
328
+ `font-normal`, `font-medium`, `font-semibold`, and `font-bold` utility classes
329
+ to these variables.
260
330
 
261
- | Tailwind Class | React Native Font Family | Font Weight |
262
- | --------------- | ------------------------ | ----------- |
263
- | `font-normal` | Inter-Regular | 400 |
264
- | `font-medium` | Inter-Medium | 500 |
265
- | `font-semibold` | Inter-SemiBold | 600 |
266
- | `font-bold` | Inter-Bold | 700 |
331
+ > **Rebuild required:** Font changes are picked up at native build time.
332
+ > Run `npx expo prebuild --clean` after adding or renaming font files.
267
333
 
268
334
  ## Accessibility
269
335
 
@@ -279,6 +345,7 @@ F0Text uses **Inter** font family through Tailwind/Uniwind font weight classes:
279
345
 
280
346
  ### Best Practices
281
347
 
348
+ <!-- prettier-ignore -->
282
349
  ```tsx
283
350
  // ✅ Good: Use appropriate variant
284
351
  <F0Text variant="body-md-semibold">Bold text</F0Text>
@@ -287,11 +354,12 @@ F0Text uses **Inter** font family through Tailwind/Uniwind font weight classes:
287
354
  // <F0Text className="font-bold">Text</F0Text>
288
355
  ```
289
356
 
357
+ <!-- prettier-ignore -->
290
358
  ```tsx
291
359
  // ✅ Good: Memoized handler
292
360
  const handlePress = useCallback(() => {}, [])
293
- ;<F0Text onPress={handlePress}>Click</F0Text>
361
+ <F0Text onPress={handlePress}>Click</F0Text>
294
362
 
295
363
  // ❌ Bad: Inline function
296
- ;<F0Text onPress={() => {}}>Click</F0Text>
364
+ <F0Text onPress={() => {}}>Click</F0Text>
297
365
  ```
@@ -0,0 +1,2 @@
1
+ import{tv}from"tailwind-variants";export var textVariants=tv({base:"",variants:{variant:{"heading-xl":"text-[36px] leading-[40px] tracking-[-0.2px] font-semibold","heading-lg":"text-[24px] leading-[32px] tracking-[-0.2px] font-semibold","heading-md":"text-[20px] leading-[28px] tracking-[-0.2px] font-semibold","heading-sm":"text-[16px] leading-[24px] font-semibold","body-md-default":"text-[16px] leading-[24px] font-normal","body-md-medium":"text-[16px] leading-[24px] font-medium","body-md-semibold":"text-[16px] leading-[24px] font-semibold","body-sm-default":"text-[14px] leading-[20px] font-normal","body-sm-medium":"text-[14px] leading-[20px] font-medium","body-sm-semibold":"text-[14px] leading-[20px] font-semibold","body-xs-medium":"text-[12px] leading-[16px] font-medium"},color:{default:"text-f0-foreground",secondary:"text-f0-foreground-secondary",tertiary:"text-f0-foreground-tertiary",inverse:"text-f0-foreground-inverse","inverse-secondary":"text-f0-foreground-inverse-secondary",disabled:"text-f0-foreground-disabled",accent:"text-f0-foreground-accent",critical:"text-f0-foreground-critical",info:"text-f0-foreground-info",warning:"text-f0-foreground-warning",positive:"text-f0-foreground-positive",selected:"text-f0-foreground-selected"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},decoration:{none:"",underline:"underline","line-through":"line-through"},transform:{none:"",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"}},defaultVariants:{variant:"body-sm-default",color:"default",align:"left",decoration:"none",transform:"none"}});
2
+ //# sourceMappingURL=F0Text.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["tv","textVariants","base","variants","variant","color","default","secondary","tertiary","inverse","disabled","accent","critical","info","warning","positive","selected","align","left","center","right","justify","decoration","none","underline","transform","uppercase","lowercase","capitalize","defaultVariants"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/F0Text/F0Text.styles.ts"],"mappings":"AAAA,OAASA,EAAE,KAA2B,mBAAmB,CAQzD,MAAO,IAAM,CAAAC,YAAY,CAAGD,EAAE,CAAC,CAC7BE,IAAI,CAAE,EAAE,CACRC,QAAQ,CAAE,CACRC,OAAO,CAAE,CAEP,YAAY,CACV,4DAA4D,CAC9D,YAAY,CACV,4DAA4D,CAC9D,YAAY,CACV,4DAA4D,CAC9D,YAAY,CAAE,0CAA0C,CAGxD,iBAAiB,CAAE,wCAAwC,CAC3D,gBAAgB,CAAE,wCAAwC,CAC1D,kBAAkB,CAAE,0CAA0C,CAC9D,iBAAiB,CAAE,wCAAwC,CAC3D,gBAAgB,CAAE,wCAAwC,CAC1D,kBAAkB,CAAE,0CAA0C,CAC9D,gBAAgB,CAAE,wCACpB,CAAC,CACDC,KAAK,CAAE,CACLC,OAAO,CAAE,oBAAoB,CAC7BC,SAAS,CAAE,8BAA8B,CACzCC,QAAQ,CAAE,6BAA6B,CACvCC,OAAO,CAAE,4BAA4B,CACrC,mBAAmB,CAAE,sCAAsC,CAC3DC,QAAQ,CAAE,6BAA6B,CACvCC,MAAM,CAAE,2BAA2B,CACnCC,QAAQ,CAAE,6BAA6B,CACvCC,IAAI,CAAE,yBAAyB,CAC/BC,OAAO,CAAE,4BAA4B,CACrCC,QAAQ,CAAE,6BAA6B,CACvCC,QAAQ,CAAE,6BACZ,CAAC,CACDC,KAAK,CAAE,CACLC,IAAI,CAAE,WAAW,CACjBC,MAAM,CAAE,aAAa,CACrBC,KAAK,CAAE,YAAY,CACnBC,OAAO,CAAE,cACX,CAAC,CACDC,UAAU,CAAE,CACVC,IAAI,CAAE,EAAE,CACRC,SAAS,CAAE,WAAW,CACtB,cAAc,CAAE,cAClB,CAAC,CACDC,SAAS,CAAE,CACTF,IAAI,CAAE,EAAE,CACRG,SAAS,CAAE,WAAW,CACtBC,SAAS,CAAE,WAAW,CACtBC,UAAU,CAAE,YACd,CACF,CAAC,CACDC,eAAe,CAAE,CACfzB,OAAO,CAAE,iBAAiB,CAC1BC,KAAK,CAAE,SAAS,CAChBY,KAAK,CAAE,MAAM,CACbK,UAAU,CAAE,MAAM,CAClBG,SAAS,CAAE,MACb,CACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export var F0_TEXT_BANNED_PROPS=["style","className"];export var TYPOGRAPHY_VARIANTS=["heading-xl","heading-lg","heading-md","heading-sm","body-md-default","body-md-medium","body-md-semibold","body-sm-default","body-sm-medium","body-sm-semibold","body-xs-medium"];export var TEXT_COLORS=["default","secondary","tertiary","inverse","inverse-secondary","disabled","accent","critical","info","warning","positive","selected"];export var TEXT_ALIGN=["left","center","right","justify"];export var TEXT_DECORATIONS=["none","underline","line-through"];export var TEXT_TRANSFORMS=["none","uppercase","lowercase","capitalize"];
2
+ //# sourceMappingURL=F0Text.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["F0_TEXT_BANNED_PROPS","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/F0Text/F0Text.types.ts"],"mappings":"AAOA,MAAO,IAAM,CAAAA,oBAAoB,CAAG,CAAC,OAAO,CAAE,WAAW,CAAU,CAKnE,MAAO,IAAM,CAAAC,mBAAmB,CAAG,CACjC,YAAY,CACZ,YAAY,CACZ,YAAY,CACZ,YAAY,CACZ,iBAAiB,CACjB,gBAAgB,CAChB,kBAAkB,CAClB,iBAAiB,CACjB,gBAAgB,CAChB,kBAAkB,CAClB,gBAAgB,CACR,CAOV,MAAO,IAAM,CAAAC,WAAW,CAAG,CACzB,SAAS,CACT,WAAW,CACX,UAAU,CACV,SAAS,CACT,mBAAmB,CACnB,UAAU,CACV,QAAQ,CACR,UAAU,CACV,MAAM,CACN,SAAS,CACT,UAAU,CACV,UAAU,CACF,CAOV,MAAO,IAAM,CAAAC,UAAU,CAAG,CAAC,MAAM,CAAE,QAAQ,CAAE,OAAO,CAAE,SAAS,CAAU,CAOzE,MAAO,IAAM,CAAAC,gBAAgB,CAAG,CAAC,MAAM,CAAE,WAAW,CAAE,cAAc,CAAU,CAO9E,MAAO,IAAM,CAAAC,eAAe,CAAG,CAC7B,MAAM,CACN,WAAW,CACX,WAAW,CACX,YAAY,CACJ","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export{F0Text}from"./F0Text";export{TYPOGRAPHY_VARIANTS,TEXT_COLORS,TEXT_ALIGN,TEXT_DECORATIONS,TEXT_TRANSFORMS}from"./F0Text";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["F0Text","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS"],"sourceRoot":"../../../../../../src","sources":["components/primitives/F0Text/F0Text/index.ts"],"mappings":"AAMA,OAASA,MAAM,KAAQ,UAAU,CASjC,OACEC,mBAAmB,CACnBC,WAAW,CACXC,UAAU,CACVC,gBAAgB,CAChBC,eAAe,KACV,UAAU","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export{F0Text}from"./F0Text";export{TYPOGRAPHY_VARIANTS,TEXT_COLORS,TEXT_ALIGN,TEXT_DECORATIONS,TEXT_TRANSFORMS}from"./F0Text";
1
+ export{F0Text}from"./F0Text";export{TYPOGRAPHY_VARIANTS,TEXT_COLORS,TEXT_ALIGN,TEXT_DECORATIONS,TEXT_TRANSFORMS}from"./F0Text";export{AnimatedF0Text}from"./AnimatedF0Text";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["F0Text","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS"],"sourceRoot":"../../../../../src","sources":["components/primitives/F0Text/index.ts"],"mappings":"AAMA,OAASA,MAAM,KAAQ,UAAU,CASjC,OACEC,mBAAmB,CACnBC,WAAW,CACXC,UAAU,CACVC,gBAAgB,CAChBC,eAAe,KACV,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["F0Text","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS","AnimatedF0Text"],"sourceRoot":"../../../../../src","sources":["components/primitives/F0Text/index.ts"],"mappings":"AAOA,OAASA,MAAM,KAAQ,UAAU,CASjC,OACEC,mBAAmB,CACnBC,WAAW,CACXC,UAAU,CACVC,gBAAgB,CAChBC,eAAe,KACV,UAAU,CAEjB,OAASC,cAAc,KAAQ,kBAAkB","ignoreList":[]}
@@ -77,6 +77,13 @@
77
77
  --tracking-4xl: -0.02em;
78
78
 
79
79
  /* Semantic Typography Tokens - F0Text Variants */
80
+ /* Heading xl */
81
+ --p-text-heading-xl-font-size: 2.25rem; /* 36px */
82
+ --p-text-heading-xl-font-line-height: 2.5rem; /* 40px */
83
+ --p-text-heading-xl-font-letter-spacing: -0.2px;
84
+ --p-text-heading-xl-font-weight: 600;
85
+ --p-text-heading-xl-font-family: Inter;
86
+
80
87
  /* Heading lg */
81
88
  --p-text-heading-lg-font-size: 1.5rem; /* 24px */
82
89
  --p-text-heading-lg-font-line-height: 2rem; /* 32px */
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { AnimatedF0TextProps } from "./AnimatedF0Text.types";
3
+ export declare const AnimatedF0Text: React.MemoExoticComponent<React.ForwardRefExoticComponent<AnimatedF0TextProps & React.RefAttributes<React.Component<import("react-native-reanimated").AnimatedProps<import("react-native").TextProps>, any, any>>>>;
4
+ export type { AnimatedF0TextProps };
5
+ //# sourceMappingURL=AnimatedF0Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedF0Text.d.ts","sourceRoot":"","sources":["../../../../../../src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AA+DjE,eAAO,MAAM,cAAc,qNAAsC,CAAA;AAEjE,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
@@ -0,0 +1,45 @@
1
+ import type { TextProps as RNTextProps } from "react-native";
2
+ import type { AnimatedProps } from "react-native-reanimated";
3
+ import type { TextAlign, TextColor, TextDecoration, TextTransform, TypographyVariant } from "../F0Text/F0Text.types";
4
+ /**
5
+ * Props for the AnimatedF0Text component.
6
+ *
7
+ * Combines F0Text semantic typography props with Reanimated animation
8
+ * capabilities (`entering`, `exiting`, `layout`, animated `style`).
9
+ */
10
+ export interface AnimatedF0TextProps extends Omit<AnimatedProps<RNTextProps>, "className"> {
11
+ /**
12
+ * Semantic typography variant
13
+ * @default "body-sm-default"
14
+ */
15
+ variant?: TypographyVariant;
16
+ /**
17
+ * Text color from F0 semantic color system
18
+ * @default "default"
19
+ */
20
+ color?: TextColor;
21
+ /**
22
+ * Text alignment
23
+ * @default "left"
24
+ */
25
+ align?: TextAlign;
26
+ /**
27
+ * Text decoration
28
+ * @default "none"
29
+ */
30
+ decoration?: TextDecoration;
31
+ /**
32
+ * Text transform
33
+ * @default "none"
34
+ */
35
+ transform?: TextTransform;
36
+ /**
37
+ * Maximum number of lines before truncating with ellipsis
38
+ */
39
+ numberOfLines?: number;
40
+ /**
41
+ * Children content
42
+ */
43
+ children?: React.ReactNode;
44
+ }
45
+ //# sourceMappingURL=AnimatedF0Text.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedF0Text.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,cAAc,EACd,aAAa,EACb,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;AAE/B;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,aAAa,CAAC,WAAW,CAAC,EAC1B,WAAW,CACZ;IACC;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAA;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAA;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * AnimatedF0Text - Animated text primitive component
3
+ *
4
+ * @see AnimatedF0Text.md for documentation
5
+ */
6
+ export { AnimatedF0Text } from "./AnimatedF0Text";
7
+ export type { AnimatedF0TextProps } from "./AnimatedF0Text";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/primitives/F0Text/AnimatedF0Text/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA"}