@factorialco/f0-react-native 0.25.0 → 0.27.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/components/exports.js +1 -1
- package/lib/module/components/exports.js.map +1 -1
- package/lib/module/components/primitives/F0Text/F0Text.js +2 -0
- package/lib/module/components/primitives/F0Text/F0Text.js.map +1 -0
- package/lib/module/components/primitives/F0Text/F0Text.md +297 -0
- package/lib/module/components/primitives/F0Text/F0Text.styles.js +2 -0
- package/lib/module/components/primitives/F0Text/F0Text.styles.js.map +1 -0
- package/lib/module/components/primitives/F0Text/F0Text.types.js +2 -0
- package/lib/module/components/primitives/F0Text/F0Text.types.js.map +1 -0
- package/lib/module/components/primitives/F0Text/index.js +2 -0
- package/lib/module/components/primitives/F0Text/index.js.map +1 -0
- package/lib/module/icons/app/QuestionCircle.js +1 -1
- package/lib/module/icons/app/QuestionCircle.js.map +1 -1
- package/lib/module/icons/app/index.js +1 -1
- package/lib/module/icons/app/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/utils.js +1 -1
- package/lib/module/lib/utils.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/components/exports.d.ts +1 -0
- package/lib/typescript/components/exports.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Text/F0Text.d.ts +8 -0
- package/lib/typescript/components/primitives/F0Text/F0Text.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Text/F0Text.styles.d.ts +141 -0
- package/lib/typescript/components/primitives/F0Text/F0Text.styles.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Text/F0Text.types.d.ts +86 -0
- package/lib/typescript/components/primitives/F0Text/F0Text.types.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Text/index.d.ts +9 -0
- package/lib/typescript/components/primitives/F0Text/index.d.ts.map +1 -0
- package/lib/typescript/icons/app/index.d.ts +1 -1
- package/lib/typescript/icons/app/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/lib/utils.d.ts +9 -0
- package/lib/typescript/lib/utils.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/components/exports.ts +3 -0
- package/src/components/primitives/F0Text/F0Text.md +297 -0
- package/src/components/primitives/F0Text/F0Text.styles.ts +69 -0
- package/src/components/primitives/F0Text/F0Text.tsx +76 -0
- package/src/components/primitives/F0Text/F0Text.types.ts +133 -0
- package/src/components/primitives/F0Text/__tests__/__snapshots__/index.spec.tsx.snap +316 -0
- package/src/components/primitives/F0Text/__tests__/index.spec.tsx +227 -0
- package/src/components/primitives/F0Text/index.ts +22 -0
- package/src/icons/app/QuestionCircle.tsx +1 -1
- package/src/icons/app/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/lib/__tests__/utils.spec.ts +48 -0
- package/src/lib/utils.ts +19 -0
- package/src/styles/theme.css +308 -237
- package/src/styles/tokens/colors.ts +2 -2
- package/src/ui/avatar.tsx +1 -1
|
@@ -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) {
|
|
@@ -25,7 +25,7 @@ exports[`OneChip Snapshot 1`] = `
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
accessible={true}
|
|
28
|
-
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-
|
|
28
|
+
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-f0-border px-2 py-0.5 grow-0"
|
|
29
29
|
collapsable={false}
|
|
30
30
|
focusable={true}
|
|
31
31
|
onBlur={[Function]}
|
|
@@ -68,7 +68,7 @@ exports[`OneChip Snapshot 1`] = `
|
|
|
68
68
|
className="flex flex-row items-center gap-0.5"
|
|
69
69
|
>
|
|
70
70
|
<Text
|
|
71
|
-
className="font-medium text-
|
|
71
|
+
className="font-medium text-f0-foreground"
|
|
72
72
|
>
|
|
73
73
|
label
|
|
74
74
|
</Text>
|
|
@@ -102,7 +102,7 @@ exports[`OneChip Snapshot variant selected 1`] = `
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
accessible={true}
|
|
105
|
-
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid px-2 py-0.5 grow-0 border-
|
|
105
|
+
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid px-2 py-0.5 grow-0 border-f0-border-selected bg-f0-background-selected-secondary"
|
|
106
106
|
collapsable={false}
|
|
107
107
|
focusable={true}
|
|
108
108
|
onBlur={[Function]}
|
|
@@ -145,7 +145,7 @@ exports[`OneChip Snapshot variant selected 1`] = `
|
|
|
145
145
|
className="flex flex-row items-center gap-0.5"
|
|
146
146
|
>
|
|
147
147
|
<Text
|
|
148
|
-
className="font-medium text-
|
|
148
|
+
className="font-medium text-f0-foreground-selected"
|
|
149
149
|
>
|
|
150
150
|
label
|
|
151
151
|
</Text>
|
|
@@ -179,7 +179,7 @@ exports[`OneChip Snapshot with Icon 1`] = `
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
accessible={true}
|
|
182
|
-
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-
|
|
182
|
+
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-f0-border px-2 py-0.5 grow-0 pl-1.5"
|
|
183
183
|
collapsable={false}
|
|
184
184
|
focusable={true}
|
|
185
185
|
onBlur={[Function]}
|
|
@@ -225,7 +225,7 @@ exports[`OneChip Snapshot with Icon 1`] = `
|
|
|
225
225
|
align="xMidYMid"
|
|
226
226
|
bbHeight="100%"
|
|
227
227
|
bbWidth="100%"
|
|
228
|
-
className="shrink-0 w-4 h-4 stroke-sm font-medium text-
|
|
228
|
+
className="shrink-0 w-4 h-4 stroke-sm font-medium text-f0-foreground"
|
|
229
229
|
fill="none"
|
|
230
230
|
focusable={false}
|
|
231
231
|
meetOrSlice={0}
|
|
@@ -303,7 +303,7 @@ exports[`OneChip Snapshot with Icon 1`] = `
|
|
|
303
303
|
</RNSVGGroup>
|
|
304
304
|
</RNSVGSvgView>
|
|
305
305
|
<Text
|
|
306
|
-
className="font-medium text-
|
|
306
|
+
className="font-medium text-f0-foreground"
|
|
307
307
|
>
|
|
308
308
|
label
|
|
309
309
|
</Text>
|
|
@@ -337,7 +337,7 @@ exports[`OneChip Snapshot with OnClose 1`] = `
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
accessible={true}
|
|
340
|
-
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-
|
|
340
|
+
className="overflow-hidden flex items-center gap-1 rounded-full border border-solid border-f0-border px-2 py-0.5 grow-0 pr-1.5"
|
|
341
341
|
collapsable={false}
|
|
342
342
|
focusable={true}
|
|
343
343
|
onBlur={[Function]}
|
|
@@ -380,7 +380,7 @@ exports[`OneChip Snapshot with OnClose 1`] = `
|
|
|
380
380
|
className="flex flex-row items-center gap-0.5"
|
|
381
381
|
>
|
|
382
382
|
<Text
|
|
383
|
-
className="font-medium text-
|
|
383
|
+
className="font-medium text-f0-foreground"
|
|
384
384
|
>
|
|
385
385
|
label
|
|
386
386
|
</Text>
|
|
@@ -405,7 +405,7 @@ exports[`OneChip Snapshot with OnClose 1`] = `
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
accessible={true}
|
|
408
|
-
className="-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-
|
|
408
|
+
className="-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-f0-icon-secondary"
|
|
409
409
|
collapsable={false}
|
|
410
410
|
focusable={true}
|
|
411
411
|
onBlur={[Function]}
|
|
@@ -422,7 +422,7 @@ exports[`OneChip Snapshot with OnClose 1`] = `
|
|
|
422
422
|
align="xMidYMid"
|
|
423
423
|
bbHeight="100%"
|
|
424
424
|
bbWidth="100%"
|
|
425
|
-
className="shrink-0 w-4 h-4 stroke-sm font-medium text-
|
|
425
|
+
className="shrink-0 w-4 h-4 stroke-sm font-medium text-f0-foreground"
|
|
426
426
|
fill="none"
|
|
427
427
|
focusable={false}
|
|
428
428
|
meetOrSlice={0}
|
|
@@ -7,11 +7,11 @@ import { Icon, type IconType } from "../Icon"
|
|
|
7
7
|
import { PressableFeedback } from "../PressableFeedback"
|
|
8
8
|
|
|
9
9
|
export const chipContainerVariants = tv({
|
|
10
|
-
base: "flex items-center gap-1 rounded-full border border-solid border-
|
|
10
|
+
base: "flex items-center gap-1 rounded-full border border-solid border-f0-border px-2 py-0.5 grow-0",
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
default: "",
|
|
14
|
-
selected: "border-
|
|
14
|
+
selected: "border-f0-border-selected bg-f0-background-selected-secondary",
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
defaultVariants: {
|
|
@@ -23,8 +23,8 @@ export const chipTextVariants = tv({
|
|
|
23
23
|
base: "font-medium",
|
|
24
24
|
variants: {
|
|
25
25
|
variant: {
|
|
26
|
-
default: "text-
|
|
27
|
-
selected: "text-
|
|
26
|
+
default: "text-f0-foreground",
|
|
27
|
+
selected: "text-f0-foreground-selected",
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
defaultVariants: {
|
|
@@ -74,7 +74,7 @@ export const OneChip = ({
|
|
|
74
74
|
e.stopPropagation()
|
|
75
75
|
onClose()
|
|
76
76
|
}}
|
|
77
|
-
className="-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-
|
|
77
|
+
className="-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-f0-icon-secondary"
|
|
78
78
|
accessibilityRole="button"
|
|
79
79
|
accessibilityLabel="Close"
|
|
80
80
|
>
|
|
@@ -23,7 +23,7 @@ exports[`OnePreset Snapshot 1`] = `
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
accessible={true}
|
|
26
|
-
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium border-
|
|
26
|
+
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium border-f0-border text-f0-foreground"
|
|
27
27
|
collapsable={false}
|
|
28
28
|
focusable={true}
|
|
29
29
|
onBlur={[Function]}
|
|
@@ -63,7 +63,7 @@ exports[`OnePreset Snapshot 1`] = `
|
|
|
63
63
|
}
|
|
64
64
|
/>
|
|
65
65
|
<Text
|
|
66
|
-
className="whitespace-nowrap text-
|
|
66
|
+
className="whitespace-nowrap text-f0-foreground"
|
|
67
67
|
>
|
|
68
68
|
label
|
|
69
69
|
</Text>
|
|
@@ -94,7 +94,7 @@ exports[`OnePreset Snapshot with number 1`] = `
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
accessible={true}
|
|
97
|
-
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium pr-1.5 border-
|
|
97
|
+
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium pr-1.5 border-f0-border text-f0-foreground"
|
|
98
98
|
collapsable={false}
|
|
99
99
|
focusable={true}
|
|
100
100
|
onBlur={[Function]}
|
|
@@ -134,7 +134,7 @@ exports[`OnePreset Snapshot with number 1`] = `
|
|
|
134
134
|
}
|
|
135
135
|
/>
|
|
136
136
|
<Text
|
|
137
|
-
className="whitespace-nowrap text-
|
|
137
|
+
className="whitespace-nowrap text-f0-foreground"
|
|
138
138
|
>
|
|
139
139
|
label
|
|
140
140
|
</Text>
|
|
@@ -142,10 +142,10 @@ exports[`OnePreset Snapshot with number 1`] = `
|
|
|
142
142
|
className="flex items-start"
|
|
143
143
|
>
|
|
144
144
|
<View
|
|
145
|
-
className="flex items-center justify-center rounded-xs grow-0 px-0.5 min-w-5 h-5 bg-
|
|
145
|
+
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"
|
|
146
146
|
>
|
|
147
147
|
<Text
|
|
148
|
-
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-
|
|
148
|
+
className="text-center text-sm font-medium tabular-nums whitespace-nowrap text-f0-foreground"
|
|
149
149
|
>
|
|
150
150
|
42
|
|
151
151
|
</Text>
|
|
@@ -178,7 +178,7 @@ exports[`OnePreset renders correctly with selected props 1`] = `
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
accessible={true}
|
|
181
|
-
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium border-
|
|
181
|
+
className="overflow-hidden flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium border-f0-border-selected bg-f0-background-selected-secondary text-f0-foreground-selected"
|
|
182
182
|
collapsable={false}
|
|
183
183
|
focusable={true}
|
|
184
184
|
onBlur={[Function]}
|
|
@@ -218,7 +218,7 @@ exports[`OnePreset renders correctly with selected props 1`] = `
|
|
|
218
218
|
}
|
|
219
219
|
/>
|
|
220
220
|
<Text
|
|
221
|
-
className="whitespace-nowrap text-
|
|
221
|
+
className="whitespace-nowrap text-f0-foreground-selected"
|
|
222
222
|
>
|
|
223
223
|
label
|
|
224
224
|
</Text>
|
|
@@ -26,14 +26,14 @@ export const OnePreset = ({
|
|
|
26
26
|
"flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium",
|
|
27
27
|
number !== undefined && number !== null && "pr-1.5",
|
|
28
28
|
selected
|
|
29
|
-
? "border-
|
|
30
|
-
: "border-
|
|
29
|
+
? "border-f0-border-selected bg-f0-background-selected-secondary text-f0-foreground-selected"
|
|
30
|
+
: "border-f0-border text-f0-foreground"
|
|
31
31
|
)}
|
|
32
32
|
>
|
|
33
33
|
<Text
|
|
34
34
|
className={cn(
|
|
35
35
|
"whitespace-nowrap",
|
|
36
|
-
selected ? "text-
|
|
36
|
+
selected ? "text-f0-foreground-selected" : "text-f0-foreground"
|
|
37
37
|
)}
|
|
38
38
|
>
|
|
39
39
|
{label}
|
|
@@ -23,7 +23,7 @@ exports[`AlertTag Snapshot Critical level 1`] = `
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
accessible={true}
|
|
26
|
-
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-
|
|
26
|
+
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-f0-background-critical text-f0-foreground-critical"
|
|
27
27
|
collapsable={false}
|
|
28
28
|
focusable={true}
|
|
29
29
|
onBlur={[Function]}
|
|
@@ -53,7 +53,7 @@ exports[`AlertTag Snapshot Critical level 1`] = `
|
|
|
53
53
|
aria-hidden={true}
|
|
54
54
|
bbHeight="100%"
|
|
55
55
|
bbWidth="100%"
|
|
56
|
-
className="shrink-0 w-5 h-5 stroke-md text-
|
|
56
|
+
className="shrink-0 w-5 h-5 stroke-md text-f0-foreground-critical"
|
|
57
57
|
fill="none"
|
|
58
58
|
focusable={false}
|
|
59
59
|
meetOrSlice={0}
|
|
@@ -102,7 +102,7 @@ exports[`AlertTag Snapshot Critical level 1`] = `
|
|
|
102
102
|
</RNSVGGroup>
|
|
103
103
|
</RNSVGSvgView>
|
|
104
104
|
<Text
|
|
105
|
-
className="line-clamp-1 text-base font-medium text-
|
|
105
|
+
className="line-clamp-1 text-base font-medium text-f0-foreground-critical"
|
|
106
106
|
>
|
|
107
107
|
critical
|
|
108
108
|
</Text>
|
|
@@ -133,7 +133,7 @@ exports[`AlertTag Snapshot Ingo level 1`] = `
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
accessible={true}
|
|
136
|
-
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-
|
|
136
|
+
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-f0-background-info text-f0-foreground-info"
|
|
137
137
|
collapsable={false}
|
|
138
138
|
focusable={true}
|
|
139
139
|
onBlur={[Function]}
|
|
@@ -163,7 +163,7 @@ exports[`AlertTag Snapshot Ingo level 1`] = `
|
|
|
163
163
|
aria-hidden={true}
|
|
164
164
|
bbHeight="100%"
|
|
165
165
|
bbWidth="100%"
|
|
166
|
-
className="shrink-0 w-5 h-5 stroke-md text-
|
|
166
|
+
className="shrink-0 w-5 h-5 stroke-md text-f0-foreground-info"
|
|
167
167
|
fill="none"
|
|
168
168
|
focusable={false}
|
|
169
169
|
meetOrSlice={0}
|
|
@@ -215,7 +215,7 @@ exports[`AlertTag Snapshot Ingo level 1`] = `
|
|
|
215
215
|
</RNSVGGroup>
|
|
216
216
|
</RNSVGSvgView>
|
|
217
217
|
<Text
|
|
218
|
-
className="line-clamp-1 text-base font-medium text-
|
|
218
|
+
className="line-clamp-1 text-base font-medium text-f0-foreground-info"
|
|
219
219
|
>
|
|
220
220
|
info
|
|
221
221
|
</Text>
|
|
@@ -246,7 +246,7 @@ exports[`AlertTag Snapshot Warning level 1`] = `
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
accessible={true}
|
|
249
|
-
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-
|
|
249
|
+
className="overflow-hidden flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2 pl-0.5 bg-f0-background-warning text-f0-foreground-warning"
|
|
250
250
|
collapsable={false}
|
|
251
251
|
focusable={true}
|
|
252
252
|
onBlur={[Function]}
|
|
@@ -276,7 +276,7 @@ exports[`AlertTag Snapshot Warning level 1`] = `
|
|
|
276
276
|
aria-hidden={true}
|
|
277
277
|
bbHeight="100%"
|
|
278
278
|
bbWidth="100%"
|
|
279
|
-
className="shrink-0 w-5 h-5 stroke-md text-
|
|
279
|
+
className="shrink-0 w-5 h-5 stroke-md text-f0-foreground-warning"
|
|
280
280
|
fill="none"
|
|
281
281
|
focusable={false}
|
|
282
282
|
meetOrSlice={0}
|
|
@@ -328,7 +328,7 @@ exports[`AlertTag Snapshot Warning level 1`] = `
|
|
|
328
328
|
</RNSVGGroup>
|
|
329
329
|
</RNSVGSvgView>
|
|
330
330
|
<Text
|
|
331
|
-
className="line-clamp-1 text-base font-medium text-
|
|
331
|
+
className="line-clamp-1 text-base font-medium text-f0-foreground-warning"
|
|
332
332
|
>
|
|
333
333
|
warning
|
|
334
334
|
</Text>
|
|
@@ -26,17 +26,17 @@ export const AlertTag = <T extends string>({ text, level }: Props<T>) => {
|
|
|
26
26
|
<BaseTag
|
|
27
27
|
classNameText={cn(
|
|
28
28
|
{
|
|
29
|
-
info: "text-
|
|
30
|
-
warning: "text-
|
|
31
|
-
critical: "text-
|
|
29
|
+
info: "text-f0-foreground-info",
|
|
30
|
+
warning: "text-f0-foreground-warning",
|
|
31
|
+
critical: "text-f0-foreground-critical",
|
|
32
32
|
}[level]
|
|
33
33
|
)}
|
|
34
34
|
classNameContainer={cn(
|
|
35
35
|
"pl-0.5",
|
|
36
36
|
{
|
|
37
|
-
info: "bg-
|
|
38
|
-
warning: "bg-
|
|
39
|
-
critical: "bg-
|
|
37
|
+
info: "bg-f0-background-info text-f0-foreground-info",
|
|
38
|
+
warning: "bg-f0-background-warning text-f0-foreground-warning",
|
|
39
|
+
critical: "bg-f0-background-critical text-f0-foreground-critical",
|
|
40
40
|
}[level]
|
|
41
41
|
)}
|
|
42
42
|
left={
|
|
@@ -44,9 +44,9 @@ export const AlertTag = <T extends string>({ text, level }: Props<T>) => {
|
|
|
44
44
|
icon={iconMap[level]}
|
|
45
45
|
className={cn(
|
|
46
46
|
{
|
|
47
|
-
info: "text-
|
|
48
|
-
warning: "text-
|
|
49
|
-
critical: "text-
|
|
47
|
+
info: "text-f0-foreground-info",
|
|
48
|
+
warning: "text-f0-foreground-warning",
|
|
49
|
+
critical: "text-f0-foreground-critical",
|
|
50
50
|
}[level]
|
|
51
51
|
)}
|
|
52
52
|
size="md"
|
|
@@ -48,7 +48,7 @@ export const BaseTag = ({
|
|
|
48
48
|
{!!text && (
|
|
49
49
|
<Text
|
|
50
50
|
className={cn(
|
|
51
|
-
"line-clamp-1 text-base font-medium text-
|
|
51
|
+
"line-clamp-1 text-base font-medium text-f0-foreground",
|
|
52
52
|
classNameText
|
|
53
53
|
)}
|
|
54
54
|
>
|
|
@@ -56,7 +56,7 @@ export const BaseTag = ({
|
|
|
56
56
|
</Text>
|
|
57
57
|
)}
|
|
58
58
|
{additionalAccesibleText && (
|
|
59
|
-
<Text className="sr-only text-base font-medium text-
|
|
59
|
+
<Text className="sr-only text-base font-medium text-f0-foreground">
|
|
60
60
|
{additionalAccesibleText}
|
|
61
61
|
</Text>
|
|
62
62
|
)}
|