@factorialco/f0-react-native 0.24.1 → 0.26.0
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/lib/module/components/Activity/ActivityItem/index.js +1 -1
- package/lib/module/components/Avatars/BaseAvatar/index.js +1 -1
- package/lib/module/components/Avatars/DateAvatar/index.js +1 -1
- package/lib/module/components/Avatars/EmojiAvatar/index.js +1 -1
- package/lib/module/components/Avatars/FileAvatar/index.js +1 -1
- package/lib/module/components/Avatars/FileAvatar/utils.js +1 -1
- package/lib/module/components/Avatars/IconAvatar/index.js +1 -1
- package/lib/module/components/Avatars/ModuleAvatar/index.js +1 -1
- package/lib/module/components/Badge/index.js +1 -1
- package/lib/module/components/Button/index.js +1 -1
- package/lib/module/components/Counter/index.js +1 -1
- package/lib/module/components/ExampleComponent.js +1 -1
- package/lib/module/components/Icon/README.md +1 -1
- package/lib/module/components/Navigation/PageHeader/index.js +1 -1
- package/lib/module/components/OneChip/index.js +1 -1
- package/lib/module/components/OnePreset/index.js +1 -1
- package/lib/module/components/Tags/AlertTab/index.js +1 -1
- package/lib/module/components/Tags/BaseTag/index.js +1 -1
- package/lib/module/components/Tags/DotTag/index.js +1 -1
- package/lib/module/components/Tags/RawTag/index.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/ItemContainer.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/CopyAction.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/GenericAction.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/index.js +1 -1
- package/lib/module/components/experimental/Lists/DetailsItemsList/index.js +1 -1
- package/lib/module/icons/app/New.js +2 -0
- package/lib/module/icons/app/New.js.map +1 -0
- package/lib/module/icons/app/QuestionCircle.js +2 -0
- package/lib/module/icons/app/QuestionCircle.js.map +1 -0
- package/lib/module/icons/app/index.js +1 -1
- package/lib/module/icons/app/index.js.map +1 -1
- package/lib/module/icons/modules/Hub.js +1 -1
- package/lib/module/icons/modules/Hub.js.map +1 -1
- package/lib/module/styles/theme.css +308 -237
- package/lib/module/styles/tokens/colors.js +1 -1
- package/lib/module/styles/tokens/colors.js.map +1 -1
- package/lib/module/ui/avatar.js +1 -1
- package/lib/typescript/components/OneChip/index.d.ts +2 -2
- package/lib/typescript/icons/app/New.d.ts +5 -0
- package/lib/typescript/icons/app/New.d.ts.map +1 -0
- package/lib/typescript/icons/app/QuestionCircle.d.ts +5 -0
- package/lib/typescript/icons/app/QuestionCircle.d.ts.map +1 -0
- package/lib/typescript/icons/app/index.d.ts +2 -0
- package/lib/typescript/icons/app/index.d.ts.map +1 -1
- package/lib/typescript/icons/modules/Hub.d.ts.map +1 -1
- package/lib/typescript/styles/tokens/colors.d.ts +2 -2
- package/package.json +2 -2
- package/src/components/Activity/ActivityItem/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Activity/ActivityItem/index.tsx +10 -10
- package/src/components/Avatars/BaseAvatar/index.tsx +1 -1
- package/src/components/Avatars/CompanyAvatar/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Avatars/DateAvatar/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Avatars/DateAvatar/index.tsx +3 -3
- package/src/components/Avatars/EmojiAvatar/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Avatars/EmojiAvatar/index.tsx +1 -1
- package/src/components/Avatars/FileAvatar/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/Avatars/FileAvatar/index.tsx +2 -2
- package/src/components/Avatars/FileAvatar/utils.ts +13 -13
- package/src/components/Avatars/IconAvatar/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Avatars/IconAvatar/index.tsx +2 -2
- package/src/components/Avatars/ModuleAvatar/index.tsx +1 -1
- package/src/components/Avatars/PersonAvatar/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Avatars/TeamAvatar/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Badge/index.tsx +5 -5
- package/src/components/Button/__snapshots__/index.spec.tsx.snap +22 -22
- package/src/components/Button/index.tsx +22 -22
- package/src/components/Counter/__snapshots__/index.spec.tsx.snap +14 -14
- package/src/components/Counter/index.tsx +6 -6
- package/src/components/ExampleComponent.tsx +2 -2
- package/src/components/Icon/README.md +1 -1
- package/src/components/Navigation/PageHeader/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Navigation/PageHeader/index.tsx +1 -1
- package/src/components/OneChip/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/OneChip/index.tsx +5 -5
- package/src/components/OnePreset/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/OnePreset/index.tsx +3 -3
- package/src/components/Tags/AlertTab/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Tags/AlertTab/index.tsx +9 -9
- package/src/components/Tags/BaseTag/index.tsx +2 -2
- package/src/components/Tags/DotTag/__snapshots__/index.spec.tsx.snap +38 -38
- package/src/components/Tags/DotTag/index.tsx +1 -1
- package/src/components/Tags/RawTag/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Tags/RawTag/index.tsx +3 -3
- package/src/components/experimental/Lists/DataList/ItemContainer.tsx +2 -2
- package/src/components/experimental/Lists/DataList/actions/CopyAction.tsx +4 -4
- package/src/components/experimental/Lists/DataList/actions/GenericAction.tsx +3 -3
- package/src/components/experimental/Lists/DataList/index.tsx +1 -1
- package/src/components/experimental/Lists/DetailsItem/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/experimental/Lists/DetailsItemsList/__snapshots__/index.spec.tsx.snap +26 -26
- package/src/components/experimental/Lists/DetailsItemsList/index.tsx +3 -3
- package/src/icons/app/New.tsx +19 -0
- package/src/icons/app/QuestionCircle.tsx +21 -0
- package/src/icons/app/index.ts +2 -0
- package/src/icons/modules/Hub.tsx +2 -1
- package/src/styles/theme.css +308 -237
- package/src/styles/tokens/colors.ts +2 -2
- package/src/ui/avatar.tsx +1 -1
- package/lib/module/components/Activity/ActivityItem/__snapshots__/index.spec.tsx.snap +0 -62
- package/lib/module/components/Avatars/CompanyAvatar/__snapshots__/index.spec.tsx.snap +0 -25
- package/lib/module/components/Avatars/DateAvatar/__snapshots__/index.spec.tsx.snap +0 -18
- package/lib/module/components/Avatars/EmojiAvatar/__snapshots__/index.spec.tsx.snap +0 -37
- package/lib/module/components/Avatars/FileAvatar/__snapshots__/index.spec.tsx.snap +0 -261
- package/lib/module/components/Avatars/IconAvatar/__snapshots__/index.spec.tsx.snap +0 -265
- package/lib/module/components/Avatars/PersonAvatar/__snapshots__/index.spec.tsx.snap +0 -25
- package/lib/module/components/Avatars/TeamAvatar/__snapshots__/index.spec.tsx.snap +0 -25
- package/lib/module/components/Button/__snapshots__/index.spec.tsx.snap +0 -517
- package/lib/module/components/Counter/__snapshots__/index.spec.tsx.snap +0 -113
- package/lib/module/components/Navigation/PageHeader/__snapshots__/index.spec.tsx.snap +0 -242
- package/lib/module/components/OneChip/__snapshots__/index.spec.tsx.snap +0 -480
- package/lib/module/components/OnePreset/__snapshots__/index.spec.tsx.snap +0 -227
- package/lib/module/components/PressableFeedback/__snapshots__/index.spec.tsx.snap +0 -597
- package/lib/module/components/Tags/AlertTab/__snapshots__/index.spec.tsx.snap +0 -337
- package/lib/module/components/Tags/DotTag/__snapshots__/index.spec.tsx.snap +0 -1255
- package/lib/module/components/Tags/RawTag/__snapshots__/index.spec.tsx.snap +0 -252
- package/lib/module/components/experimental/Lists/DetailsItem/__snapshots__/index.spec.tsx.snap +0 -783
- package/lib/module/components/experimental/Lists/DetailsItemsList/__snapshots__/index.spec.tsx.snap +0 -695
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`IconAvatar Snapshot - different sizes 1`] = `
|
|
4
4
|
<View
|
|
5
|
-
className="flex aspect-square items-center justify-center border border-solid border-
|
|
5
|
+
className="flex aspect-square items-center justify-center border border-solid border-f0-border-secondary h-6 w-6 rounded-sm"
|
|
6
6
|
>
|
|
7
7
|
<RNSVGSvgView
|
|
8
8
|
align="xMidYMid"
|
|
9
9
|
bbHeight="100%"
|
|
10
10
|
bbWidth="100%"
|
|
11
|
-
className="shrink-0 w-4 h-4 stroke-sm text-
|
|
11
|
+
className="shrink-0 w-4 h-4 stroke-sm text-f0-foreground-secondary"
|
|
12
12
|
fill="none"
|
|
13
13
|
focusable={false}
|
|
14
14
|
meetOrSlice={0}
|
|
@@ -90,13 +90,13 @@ exports[`IconAvatar Snapshot - different sizes 1`] = `
|
|
|
90
90
|
|
|
91
91
|
exports[`IconAvatar Snapshot - different sizes 2`] = `
|
|
92
92
|
<View
|
|
93
|
-
className="flex aspect-square items-center justify-center border border-solid border-
|
|
93
|
+
className="flex aspect-square items-center justify-center border border-solid border-f0-border-secondary h-9 w-9 rounded-md"
|
|
94
94
|
>
|
|
95
95
|
<RNSVGSvgView
|
|
96
96
|
align="xMidYMid"
|
|
97
97
|
bbHeight="100%"
|
|
98
98
|
bbWidth="100%"
|
|
99
|
-
className="shrink-0 w-5 h-5 stroke-md text-
|
|
99
|
+
className="shrink-0 w-5 h-5 stroke-md text-f0-foreground-secondary"
|
|
100
100
|
fill="none"
|
|
101
101
|
focusable={false}
|
|
102
102
|
meetOrSlice={0}
|
|
@@ -178,13 +178,13 @@ exports[`IconAvatar Snapshot - different sizes 2`] = `
|
|
|
178
178
|
|
|
179
179
|
exports[`IconAvatar Snapshot - different sizes 3`] = `
|
|
180
180
|
<View
|
|
181
|
-
className="flex aspect-square items-center justify-center border border-solid border-
|
|
181
|
+
className="flex aspect-square items-center justify-center border border-solid border-f0-border-secondary h-10 w-10 rounded-lg"
|
|
182
182
|
>
|
|
183
183
|
<RNSVGSvgView
|
|
184
184
|
align="xMidYMid"
|
|
185
185
|
bbHeight="100%"
|
|
186
186
|
bbWidth="100%"
|
|
187
|
-
className="shrink-0 w-6 h-6 stroke-lg text-
|
|
187
|
+
className="shrink-0 w-6 h-6 stroke-lg text-f0-foreground-secondary"
|
|
188
188
|
fill="none"
|
|
189
189
|
focusable={false}
|
|
190
190
|
meetOrSlice={0}
|
|
@@ -19,12 +19,12 @@ export const IconAvatar = ({ icon, size = "md", className }: Props) => {
|
|
|
19
19
|
return (
|
|
20
20
|
<View
|
|
21
21
|
className={cn(
|
|
22
|
-
"flex aspect-square items-center justify-center border border-solid border-
|
|
22
|
+
"flex aspect-square items-center justify-center border border-solid border-f0-border-secondary",
|
|
23
23
|
sizes[size],
|
|
24
24
|
className
|
|
25
25
|
)}
|
|
26
26
|
>
|
|
27
|
-
<Icon icon={icon} size={size} className="text-
|
|
27
|
+
<Icon icon={icon} size={size} className="text-f0-foreground-secondary" />
|
|
28
28
|
</View>
|
|
29
29
|
)
|
|
30
30
|
}
|
|
@@ -6,11 +6,11 @@ const badgeVariants = tv({
|
|
|
6
6
|
base: "flex shrink-0 items-center justify-center rounded-full",
|
|
7
7
|
variants: {
|
|
8
8
|
type: {
|
|
9
|
-
neutral: "bg-transparent text-
|
|
10
|
-
highlight: "text-
|
|
11
|
-
positive: "bg-
|
|
12
|
-
critical: "bg-
|
|
13
|
-
warning: "bg-
|
|
9
|
+
neutral: "bg-transparent text-f0-icon",
|
|
10
|
+
highlight: "text-f0-special-highlight",
|
|
11
|
+
positive: "bg-f0-background-positive-bold text-f0-foreground-inverse",
|
|
12
|
+
critical: "bg-f0-icon-critical text-f0-foreground-inverse",
|
|
13
|
+
warning: "bg-f0-background-warning-bold text-f0-foreground-inverse",
|
|
14
14
|
},
|
|
15
15
|
size: {
|
|
16
16
|
xs: "h-2.5 w-2.5",
|
|
@@ -25,7 +25,7 @@ exports[`Button Snapshot - critical variant 1`] = `
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
accessible={true}
|
|
28
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
28
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-secondary border border-f0-border h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
29
29
|
collapsable={false}
|
|
30
30
|
focusable={true}
|
|
31
31
|
onBlur={[Function]}
|
|
@@ -39,7 +39,7 @@ exports[`Button Snapshot - critical variant 1`] = `
|
|
|
39
39
|
onStartShouldSetResponder={[Function]}
|
|
40
40
|
>
|
|
41
41
|
<Text
|
|
42
|
-
className="text-base font-medium text-
|
|
42
|
+
className="text-base font-medium text-f0-foreground-critical"
|
|
43
43
|
>
|
|
44
44
|
Test Button
|
|
45
45
|
</Text>
|
|
@@ -72,7 +72,7 @@ exports[`Button Snapshot - default button 1`] = `
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
accessible={true}
|
|
75
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
75
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
76
76
|
collapsable={false}
|
|
77
77
|
focusable={true}
|
|
78
78
|
onBlur={[Function]}
|
|
@@ -86,7 +86,7 @@ exports[`Button Snapshot - default button 1`] = `
|
|
|
86
86
|
onStartShouldSetResponder={[Function]}
|
|
87
87
|
>
|
|
88
88
|
<Text
|
|
89
|
-
className="text-base font-medium text-
|
|
89
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
90
90
|
>
|
|
91
91
|
Test Button
|
|
92
92
|
</Text>
|
|
@@ -119,7 +119,7 @@ exports[`Button Snapshot - different sizes 1`] = `
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
accessible={true}
|
|
122
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
122
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-6 rounded-sm gap-1 px-2 sm:px-3 lg:px-4"
|
|
123
123
|
collapsable={false}
|
|
124
124
|
focusable={true}
|
|
125
125
|
onBlur={[Function]}
|
|
@@ -133,7 +133,7 @@ exports[`Button Snapshot - different sizes 1`] = `
|
|
|
133
133
|
onStartShouldSetResponder={[Function]}
|
|
134
134
|
>
|
|
135
135
|
<Text
|
|
136
|
-
className="text-base font-medium text-
|
|
136
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
137
137
|
>
|
|
138
138
|
Test Button
|
|
139
139
|
</Text>
|
|
@@ -166,7 +166,7 @@ exports[`Button Snapshot - different sizes 2`] = `
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
accessible={true}
|
|
169
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
169
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
170
170
|
collapsable={false}
|
|
171
171
|
focusable={true}
|
|
172
172
|
onBlur={[Function]}
|
|
@@ -180,7 +180,7 @@ exports[`Button Snapshot - different sizes 2`] = `
|
|
|
180
180
|
onStartShouldSetResponder={[Function]}
|
|
181
181
|
>
|
|
182
182
|
<Text
|
|
183
|
-
className="text-base font-medium text-
|
|
183
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
184
184
|
>
|
|
185
185
|
Test Button
|
|
186
186
|
</Text>
|
|
@@ -213,7 +213,7 @@ exports[`Button Snapshot - different sizes 3`] = `
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
accessible={true}
|
|
216
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
216
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-10 rounded-md gap-1 px-2 sm:px-3 lg:px-4"
|
|
217
217
|
collapsable={false}
|
|
218
218
|
focusable={true}
|
|
219
219
|
onBlur={[Function]}
|
|
@@ -227,7 +227,7 @@ exports[`Button Snapshot - different sizes 3`] = `
|
|
|
227
227
|
onStartShouldSetResponder={[Function]}
|
|
228
228
|
>
|
|
229
229
|
<Text
|
|
230
|
-
className="text-base font-medium text-
|
|
230
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
231
231
|
>
|
|
232
232
|
Test Button
|
|
233
233
|
</Text>
|
|
@@ -260,7 +260,7 @@ exports[`Button Snapshot - disabled state 1`] = `
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
accessible={true}
|
|
263
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
263
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded opacity-50 gap-1 px-2 sm:px-3 lg:px-4"
|
|
264
264
|
collapsable={false}
|
|
265
265
|
focusable={true}
|
|
266
266
|
onBlur={[Function]}
|
|
@@ -274,7 +274,7 @@ exports[`Button Snapshot - disabled state 1`] = `
|
|
|
274
274
|
onStartShouldSetResponder={[Function]}
|
|
275
275
|
>
|
|
276
276
|
<Text
|
|
277
|
-
className="text-base font-medium text-
|
|
277
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
278
278
|
>
|
|
279
279
|
Test Button
|
|
280
280
|
</Text>
|
|
@@ -307,7 +307,7 @@ exports[`Button Snapshot - loading state 1`] = `
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
accessible={true}
|
|
310
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
310
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded opacity-50 gap-1 px-2 sm:px-3 lg:px-4"
|
|
311
311
|
collapsable={false}
|
|
312
312
|
focusable={true}
|
|
313
313
|
onBlur={[Function]}
|
|
@@ -321,7 +321,7 @@ exports[`Button Snapshot - loading state 1`] = `
|
|
|
321
321
|
onStartShouldSetResponder={[Function]}
|
|
322
322
|
>
|
|
323
323
|
<Text
|
|
324
|
-
className="text-base font-medium text-
|
|
324
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
325
325
|
>
|
|
326
326
|
Test Button
|
|
327
327
|
</Text>
|
|
@@ -354,7 +354,7 @@ exports[`Button Snapshot - outline variant 1`] = `
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
accessible={true}
|
|
357
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
357
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-inverse-secondary border border-f0-border h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
358
358
|
collapsable={false}
|
|
359
359
|
focusable={true}
|
|
360
360
|
onBlur={[Function]}
|
|
@@ -368,7 +368,7 @@ exports[`Button Snapshot - outline variant 1`] = `
|
|
|
368
368
|
onStartShouldSetResponder={[Function]}
|
|
369
369
|
>
|
|
370
370
|
<Text
|
|
371
|
-
className="text-base font-medium text-
|
|
371
|
+
className="text-base font-medium text-f0-foreground"
|
|
372
372
|
>
|
|
373
373
|
Test Button
|
|
374
374
|
</Text>
|
|
@@ -401,7 +401,7 @@ exports[`Button Snapshot - round button with hidden label 1`] = `
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
accessible={true}
|
|
404
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
404
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded aspect-square p-0"
|
|
405
405
|
collapsable={false}
|
|
406
406
|
focusable={true}
|
|
407
407
|
onBlur={[Function]}
|
|
@@ -442,7 +442,7 @@ exports[`Button Snapshot - with emoji 1`] = `
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
accessible={true}
|
|
445
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
445
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
446
446
|
collapsable={false}
|
|
447
447
|
focusable={true}
|
|
448
448
|
onBlur={[Function]}
|
|
@@ -456,12 +456,12 @@ exports[`Button Snapshot - with emoji 1`] = `
|
|
|
456
456
|
onStartShouldSetResponder={[Function]}
|
|
457
457
|
>
|
|
458
458
|
<Text
|
|
459
|
-
className="text-base font-medium text-
|
|
459
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
460
460
|
>
|
|
461
461
|
👋
|
|
462
462
|
</Text>
|
|
463
463
|
<Text
|
|
464
|
-
className="text-base font-medium text-
|
|
464
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
465
465
|
>
|
|
466
466
|
Test Button
|
|
467
467
|
</Text>
|
|
@@ -494,7 +494,7 @@ exports[`Button Snapshot - with icon 1`] = `
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
accessible={true}
|
|
497
|
-
className="flex-row items-center justify-center border-none grow-0 bg-
|
|
497
|
+
className="flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
498
498
|
collapsable={false}
|
|
499
499
|
focusable={true}
|
|
500
500
|
onBlur={[Function]}
|
|
@@ -508,7 +508,7 @@ exports[`Button Snapshot - with icon 1`] = `
|
|
|
508
508
|
onStartShouldSetResponder={[Function]}
|
|
509
509
|
>
|
|
510
510
|
<Text
|
|
511
|
-
className="text-base font-medium text-
|
|
511
|
+
className="text-base font-medium text-f0-foreground-inverse"
|
|
512
512
|
>
|
|
513
513
|
Test Button
|
|
514
514
|
</Text>
|
|
@@ -22,12 +22,12 @@ const buttonVariants = tv({
|
|
|
22
22
|
base: "flex-row items-center justify-center rounded border-none grow-0",
|
|
23
23
|
variants: {
|
|
24
24
|
variant: {
|
|
25
|
-
default: "bg-
|
|
26
|
-
outline: "bg-
|
|
27
|
-
neutral: "bg-
|
|
28
|
-
critical: "bg-
|
|
25
|
+
default: "bg-f0-background-accent-bold",
|
|
26
|
+
outline: "bg-f0-background-inverse-secondary border border-f0-border",
|
|
27
|
+
neutral: "bg-f0-background-secondary",
|
|
28
|
+
critical: "bg-f0-background-secondary border border-f0-border",
|
|
29
29
|
ghost: "bg-transparent",
|
|
30
|
-
promote: "bg-
|
|
30
|
+
promote: "bg-f0-background-promote border border-f0-border-promote",
|
|
31
31
|
},
|
|
32
32
|
size: {
|
|
33
33
|
sm: "h-6 rounded-sm",
|
|
@@ -55,12 +55,12 @@ const pressedVariants = tv({
|
|
|
55
55
|
base: "",
|
|
56
56
|
variants: {
|
|
57
57
|
variant: {
|
|
58
|
-
default: "bg-
|
|
59
|
-
outline: "bg-
|
|
60
|
-
neutral: "bg-
|
|
61
|
-
critical: "bg-
|
|
62
|
-
ghost: "bg-
|
|
63
|
-
promote: "bg-
|
|
58
|
+
default: "bg-f0-background-accent-bold-hover",
|
|
59
|
+
outline: "bg-f0-background-tertiary border-opacity-70",
|
|
60
|
+
neutral: "bg-f0-background-secondary-hover",
|
|
61
|
+
critical: "bg-f0-background-critical-bold border-transparent",
|
|
62
|
+
ghost: "bg-f0-background-secondary-hover",
|
|
63
|
+
promote: "bg-f0-background-promote-hover",
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
defaultVariants: {
|
|
@@ -71,41 +71,41 @@ const pressedVariants = tv({
|
|
|
71
71
|
const getIconColor = (variant: ButtonVariant, isPressed: boolean) => {
|
|
72
72
|
switch (variant) {
|
|
73
73
|
case "default":
|
|
74
|
-
return "text-
|
|
74
|
+
return "text-f0-icon-inverse"
|
|
75
75
|
case "critical":
|
|
76
|
-
return isPressed ? "text-
|
|
76
|
+
return isPressed ? "text-f0-icon-inverse" : "text-f0-icon-critical-bold"
|
|
77
77
|
default:
|
|
78
|
-
return "text-
|
|
78
|
+
return "text-f0-icon"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
const getIconOnlyColor = (variant: ButtonVariant, isPressed: boolean) => {
|
|
83
83
|
switch (variant) {
|
|
84
84
|
case "critical":
|
|
85
|
-
return isPressed ? "text-
|
|
85
|
+
return isPressed ? "text-f0-icon-inverse" : "text-f0-icon-critical-bold"
|
|
86
86
|
case "default":
|
|
87
|
-
return "text-
|
|
87
|
+
return "text-f0-icon-inverse"
|
|
88
88
|
case "outline":
|
|
89
89
|
case "neutral":
|
|
90
90
|
case "ghost":
|
|
91
91
|
case "promote":
|
|
92
92
|
default:
|
|
93
|
-
return "text-
|
|
93
|
+
return "text-f0-icon-bold"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
const getTextColorClass = (variant: ButtonVariant, isPressed: boolean) => {
|
|
98
98
|
if (isPressed && variant === "critical") {
|
|
99
|
-
return "text-
|
|
99
|
+
return "text-f0-foreground-inverse"
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
switch (variant) {
|
|
103
103
|
case "default":
|
|
104
|
-
return "text-
|
|
104
|
+
return "text-f0-foreground-inverse"
|
|
105
105
|
case "critical":
|
|
106
|
-
return "text-
|
|
106
|
+
return "text-f0-foreground-critical"
|
|
107
107
|
default:
|
|
108
|
-
return "text-
|
|
108
|
+
return "text-f0-foreground"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -226,7 +226,7 @@ export const Button = forwardRef<View, ButtonProps>(function Button(
|
|
|
226
226
|
{showBadge && variant === "outline" && (
|
|
227
227
|
<View
|
|
228
228
|
accessibilityLabel="Notification Badge"
|
|
229
|
-
className="absolute top-1.5 right-1.5 h-1.5 w-1.5 rounded-full bg-
|
|
229
|
+
className="absolute top-1.5 right-1.5 h-1.5 w-1.5 rounded-full bg-f0-icon-accent"
|
|
230
230
|
/>
|
|
231
231
|
)}
|
|
232
232
|
</View>
|
|
@@ -5,10 +5,10 @@ exports[`Counter Snapshot 1`] = `
|
|
|
5
5
|
className="flex items-start"
|
|
6
6
|
>
|
|
7
7
|
<View
|
|
8
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
8
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-secondary border border-f0-border"
|
|
9
9
|
>
|
|
10
10
|
<Text
|
|
11
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
11
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground"
|
|
12
12
|
>
|
|
13
13
|
42
|
|
14
14
|
</Text>
|
|
@@ -21,10 +21,10 @@ exports[`Counter Snapshot vairan bold types 1`] = `
|
|
|
21
21
|
className="flex items-start"
|
|
22
22
|
>
|
|
23
23
|
<View
|
|
24
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
24
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-accent-bold"
|
|
25
25
|
>
|
|
26
26
|
<Text
|
|
27
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
27
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground-inverse"
|
|
28
28
|
>
|
|
29
29
|
42
|
|
30
30
|
</Text>
|
|
@@ -37,10 +37,10 @@ exports[`Counter Snapshot vairan defauly types 1`] = `
|
|
|
37
37
|
className="flex items-start"
|
|
38
38
|
>
|
|
39
39
|
<View
|
|
40
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
40
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-secondary border border-f0-border"
|
|
41
41
|
>
|
|
42
42
|
<Text
|
|
43
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
43
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground"
|
|
44
44
|
>
|
|
45
45
|
42
|
|
46
46
|
</Text>
|
|
@@ -53,10 +53,10 @@ exports[`Counter Snapshot vairan defauly types 2`] = `
|
|
|
53
53
|
className="flex items-start"
|
|
54
54
|
>
|
|
55
55
|
<View
|
|
56
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
56
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-secondary border border-f0-border"
|
|
57
57
|
>
|
|
58
58
|
<Text
|
|
59
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
59
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground"
|
|
60
60
|
>
|
|
61
61
|
42
|
|
62
62
|
</Text>
|
|
@@ -69,10 +69,10 @@ exports[`Counter Snapshot vairan md size 1`] = `
|
|
|
69
69
|
className="flex items-start"
|
|
70
70
|
>
|
|
71
71
|
<View
|
|
72
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
72
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-secondary border border-f0-border"
|
|
73
73
|
>
|
|
74
74
|
<Text
|
|
75
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
75
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground"
|
|
76
76
|
>
|
|
77
77
|
42
|
|
78
78
|
</Text>
|
|
@@ -85,10 +85,10 @@ exports[`Counter Snapshot vairan selected types 1`] = `
|
|
|
85
85
|
className="flex items-start"
|
|
86
86
|
>
|
|
87
87
|
<View
|
|
88
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
88
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-f0-background-selected-bold outline-f0-border-selected"
|
|
89
89
|
>
|
|
90
90
|
<Text
|
|
91
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
91
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground-inverse"
|
|
92
92
|
>
|
|
93
93
|
42
|
|
94
94
|
</Text>
|
|
@@ -101,10 +101,10 @@ exports[`Counter Snapshot vairan sm size 1`] = `
|
|
|
101
101
|
className="flex items-start"
|
|
102
102
|
>
|
|
103
103
|
<View
|
|
104
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-4 h-4 bg-
|
|
104
|
+
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-4 h-4 bg-f0-background-secondary border border-f0-border"
|
|
105
105
|
>
|
|
106
106
|
<Text
|
|
107
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap leading-none py-0.5 text-
|
|
107
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap leading-none py-0.5 text-f0-foreground"
|
|
108
108
|
>
|
|
109
109
|
42
|
|
110
110
|
</Text>
|
|
@@ -11,9 +11,9 @@ const counterContainerVariants = tv({
|
|
|
11
11
|
sm: "min-w-4 h-4",
|
|
12
12
|
},
|
|
13
13
|
type: {
|
|
14
|
-
default: "bg-
|
|
15
|
-
selected: "bg-
|
|
16
|
-
bold: "bg-
|
|
14
|
+
default: "bg-f0-background-secondary border border-f0-border",
|
|
15
|
+
selected: "bg-f0-background-selected-bold outline-f0-border-selected",
|
|
16
|
+
bold: "bg-f0-background-accent-bold",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
defaultVariants: {
|
|
@@ -30,9 +30,9 @@ const counterTextVariants = tv({
|
|
|
30
30
|
sm: "leading-none py-0.5",
|
|
31
31
|
},
|
|
32
32
|
type: {
|
|
33
|
-
default: "text-
|
|
34
|
-
selected: "text-
|
|
35
|
-
bold: "text-
|
|
33
|
+
default: "text-f0-foreground",
|
|
34
|
+
selected: "text-f0-foreground-inverse",
|
|
35
|
+
bold: "text-f0-foreground-inverse",
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
defaultVariants: {
|
|
@@ -15,8 +15,8 @@ export const ExampleComponent: React.FC<ExampleComponentProps> = ({
|
|
|
15
15
|
text = "Hello World",
|
|
16
16
|
}) => {
|
|
17
17
|
return (
|
|
18
|
-
<View className="rounded-lg bg-
|
|
19
|
-
<Text className="text-base font-medium text-
|
|
18
|
+
<View className="rounded-lg bg-f0-background p-4">
|
|
19
|
+
<Text className="text-base font-medium text-f0-foreground">{text}</Text>
|
|
20
20
|
</View>
|
|
21
21
|
)
|
|
22
22
|
}
|
|
@@ -32,7 +32,7 @@ The Icon component is designed to work with UniWind, allowing you to style icons
|
|
|
32
32
|
|
|
33
33
|
```tsx
|
|
34
34
|
// Style using Tailwind CSS classes
|
|
35
|
-
<Icon icon={AppIcons.Archive} className="text-
|
|
35
|
+
<Icon icon={AppIcons.Archive} className="text-f0-icon-secondary" />
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Available Icons
|
|
@@ -5,7 +5,7 @@ exports[`PageHeader Snapshot - renders correctly with multiple actions 1`] = `
|
|
|
5
5
|
className="flex-row items-center justify-between px-5 py-3"
|
|
6
6
|
>
|
|
7
7
|
<Text
|
|
8
|
-
className="text-3xl font-semibold text-
|
|
8
|
+
className="text-3xl font-semibold text-f0-foreground"
|
|
9
9
|
>
|
|
10
10
|
Test Page Title
|
|
11
11
|
</Text>
|
|
@@ -110,7 +110,7 @@ exports[`PageHeader Snapshot - renders correctly with one action 1`] = `
|
|
|
110
110
|
className="flex-row items-center justify-between px-5 py-3"
|
|
111
111
|
>
|
|
112
112
|
<Text
|
|
113
|
-
className="text-3xl font-semibold text-
|
|
113
|
+
className="text-3xl font-semibold text-f0-foreground"
|
|
114
114
|
>
|
|
115
115
|
Test Page Title
|
|
116
116
|
</Text>
|
|
@@ -169,7 +169,7 @@ exports[`PageHeader Snapshot - renders correctly with one action with a badge 1`
|
|
|
169
169
|
className="flex-row items-center justify-between px-5 py-3"
|
|
170
170
|
>
|
|
171
171
|
<Text
|
|
172
|
-
className="text-3xl font-semibold text-
|
|
172
|
+
className="text-3xl font-semibold text-f0-foreground"
|
|
173
173
|
>
|
|
174
174
|
Test Page Title
|
|
175
175
|
</Text>
|
|
@@ -231,7 +231,7 @@ exports[`PageHeader Snapshot - renders correctly with only a title 1`] = `
|
|
|
231
231
|
className="flex-row items-center justify-between px-5 py-3"
|
|
232
232
|
>
|
|
233
233
|
<Text
|
|
234
|
-
className="text-3xl font-semibold text-
|
|
234
|
+
className="text-3xl font-semibold text-f0-foreground"
|
|
235
235
|
>
|
|
236
236
|
Test Page Title
|
|
237
237
|
</Text>
|
|
@@ -36,7 +36,7 @@ const NotificationsAction = ({ label, onPress, showBadge }: ActionT) => {
|
|
|
36
36
|
export const PageHeader = memo(({ title, actions }: Props) => {
|
|
37
37
|
return (
|
|
38
38
|
<View className="flex-row items-center justify-between px-5 py-3">
|
|
39
|
-
<Text className="text-3xl font-semibold text-
|
|
39
|
+
<Text className="text-3xl font-semibold text-f0-foreground">{title}</Text>
|
|
40
40
|
<View className="flex-row gap-2">
|
|
41
41
|
{actions?.map((action) => {
|
|
42
42
|
switch (action.type) {
|