@factorialco/f0-react-native 0.28.1 → 0.30.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/Avatars/IconAvatar/index.js +1 -1
- package/lib/module/components/Avatars/IconAvatar/index.js.map +1 -1
- package/lib/module/components/Avatars/ModuleAvatar/index.js +1 -1
- package/lib/module/components/Avatars/ModuleAvatar/index.js.map +1 -1
- package/lib/module/components/Badge/index.js +1 -1
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Button/index.js +1 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/index.spec.js +1 -1
- package/lib/module/components/Button/index.spec.js.map +1 -1
- package/lib/module/components/Icon/index.js +1 -1
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/OneChip/index.js +1 -1
- package/lib/module/components/OneChip/index.js.map +1 -1
- package/lib/module/components/Tags/AlertTab/index.js +1 -1
- package/lib/module/components/Tags/AlertTab/index.js.map +1 -1
- package/lib/module/components/Tags/RawTag/index.js +1 -1
- package/lib/module/components/Tags/RawTag/index.js.map +1 -1
- package/lib/module/components/experimental/Lists/DataList/ItemContainer.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/ItemContainer.js.map +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/CopyAction.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/CopyAction.js.map +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/GenericAction.js +1 -1
- package/lib/module/components/experimental/Lists/DataList/actions/GenericAction.js.map +1 -1
- package/lib/module/components/exports.js +1 -1
- package/lib/module/components/exports.js.map +1 -1
- package/lib/module/components/primitives/F0Icon/F0Icon.js +2 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.js.map +1 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.md +187 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.styles.js +2 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.styles.js.map +1 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.types.js +2 -0
- package/lib/module/components/primitives/F0Icon/F0Icon.types.js.map +1 -0
- package/lib/module/components/primitives/F0Icon/index.js +2 -0
- package/lib/module/components/primitives/F0Icon/index.js.map +1 -0
- package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.js +1 -1
- package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.js.map +1 -1
- package/lib/module/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.md +45 -8
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.js +1 -1
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.js.map +1 -1
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.md +42 -31
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.styles.js +1 -1
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.styles.js.map +1 -1
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.types.js +1 -1
- package/lib/module/components/primitives/F0Text/F0Text/F0Text.types.js.map +1 -1
- package/lib/module/icons/index.js +1 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/lib/utils.js.map +1 -1
- package/lib/typescript/components/Activity/ActivityItem/index.d.ts +1 -1
- package/lib/typescript/components/Activity/ActivityItem/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatars/IconAvatar/index.d.ts +1 -1
- package/lib/typescript/components/Avatars/IconAvatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatars/ModuleAvatar/index.d.ts +1 -1
- package/lib/typescript/components/Avatars/ModuleAvatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +1 -1
- package/lib/typescript/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +1 -1
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Icon/index.d.ts +7 -14
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/OneChip/index.d.ts +1 -1
- package/lib/typescript/components/OneChip/index.d.ts.map +1 -1
- package/lib/typescript/components/Tags/RawTag/index.d.ts +1 -1
- package/lib/typescript/components/Tags/RawTag/index.d.ts.map +1 -1
- package/lib/typescript/components/experimental/Lists/DataList/ItemContainer.d.ts +1 -1
- package/lib/typescript/components/experimental/Lists/DataList/ItemContainer.d.ts.map +1 -1
- package/lib/typescript/components/experimental/Lists/DataList/actions/CopyAction.d.ts.map +1 -1
- package/lib/typescript/components/experimental/Lists/DataList/index.d.ts +1 -1
- package/lib/typescript/components/experimental/Lists/DataList/index.d.ts.map +1 -1
- package/lib/typescript/components/exports.d.ts +2 -1
- package/lib/typescript/components/exports.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Icon/F0Icon.d.ts +25 -0
- package/lib/typescript/components/primitives/F0Icon/F0Icon.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Icon/F0Icon.styles.d.ts +90 -0
- package/lib/typescript/components/primitives/F0Icon/F0Icon.styles.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Icon/F0Icon.types.d.ts +47 -0
- package/lib/typescript/components/primitives/F0Icon/F0Icon.types.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Icon/index.d.ts +10 -0
- package/lib/typescript/components/primitives/F0Icon/index.d.ts.map +1 -0
- package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.d.ts +14 -0
- package/lib/typescript/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.styles.d.ts +2 -2
- package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.styles.d.ts.map +1 -1
- package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.types.d.ts +22 -18
- package/lib/typescript/components/primitives/F0Text/F0Text/F0Text.types.d.ts.map +1 -1
- package/lib/typescript/icons/index.d.ts +0 -1
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/lib/utils.d.ts +1 -2
- package/lib/typescript/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Activity/ActivityItem/index.spec.tsx +1 -1
- package/src/components/Activity/ActivityItem/index.tsx +1 -1
- package/src/components/Avatars/IconAvatar/index.tsx +6 -2
- package/src/components/Avatars/ModuleAvatar/index.tsx +1 -1
- package/src/components/Badge/index.tsx +2 -2
- package/src/components/Button/index.spec.tsx +3 -4
- package/src/components/Button/index.tsx +19 -13
- package/src/components/Icon/__tests__/Icon.spec.tsx +0 -4
- package/src/components/Icon/index.tsx +7 -26
- package/src/components/OneChip/index.tsx +3 -3
- package/src/components/Tags/AlertTab/index.tsx +2 -2
- package/src/components/Tags/RawTag/index.tsx +2 -2
- package/src/components/experimental/Lists/DataList/ItemContainer.tsx +2 -2
- package/src/components/experimental/Lists/DataList/actions/CopyAction.tsx +7 -10
- package/src/components/experimental/Lists/DataList/actions/GenericAction.tsx +2 -2
- package/src/components/experimental/Lists/DataList/index.tsx +1 -1
- package/src/components/experimental/Lists/DetailsItem/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/experimental/Lists/DetailsItemsList/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/exports.ts +2 -1
- package/src/components/primitives/F0Icon/F0Icon.md +187 -0
- package/src/components/primitives/F0Icon/F0Icon.styles.ts +43 -0
- package/src/components/primitives/F0Icon/F0Icon.tsx +73 -0
- package/src/components/primitives/F0Icon/F0Icon.types.ts +77 -0
- package/src/components/primitives/F0Icon/__tests__/F0Icon.spec.tsx +131 -0
- package/src/components/primitives/F0Icon/__tests__/F0Icon.tokens.spec.ts +39 -0
- package/src/components/primitives/F0Icon/index.ts +10 -0
- package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.md +45 -8
- package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.tsx +20 -8
- package/src/components/primitives/F0Text/AnimatedF0Text/AnimatedF0Text.types.ts +15 -0
- package/src/components/primitives/F0Text/AnimatedF0Text/__tests__/AnimatedF0Text.spec.tsx +220 -0
- package/src/components/primitives/F0Text/AnimatedF0Text/__tests__/__snapshots__/AnimatedF0Text.spec.tsx.snap +16 -16
- package/src/components/primitives/F0Text/F0Text/F0Text.md +42 -31
- package/src/components/primitives/F0Text/F0Text/F0Text.styles.ts +1 -1
- package/src/components/primitives/F0Text/F0Text/F0Text.tsx +17 -10
- package/src/components/primitives/F0Text/F0Text/F0Text.types.ts +22 -18
- package/src/components/primitives/F0Text/F0Text/__tests__/F0Text.spec.tsx +340 -16
- package/src/components/primitives/F0Text/F0Text/__tests__/__snapshots__/F0Text.spec.tsx.snap +36 -36
- package/src/icons/index.ts +0 -1
- package/src/lib/utils.ts +1 -2
- package/lib/module/components/Icon/README.md +0 -63
- package/src/components/Icon/README.md +0 -63
package/src/components/primitives/F0Text/F0Text/__tests__/__snapshots__/F0Text.spec.tsx.snap
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`F0Text Snapshots renders all color variants: color-accent 1`] = `
|
|
4
4
|
<Text
|
|
5
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-accent text-left"
|
|
5
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-accent text-left"
|
|
6
6
|
>
|
|
7
7
|
accent
|
|
8
8
|
text
|
|
@@ -11,7 +11,7 @@ exports[`F0Text Snapshots renders all color variants: color-accent 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`F0Text Snapshots renders all color variants: color-critical 1`] = `
|
|
13
13
|
<Text
|
|
14
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-critical text-left"
|
|
14
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-critical text-left"
|
|
15
15
|
>
|
|
16
16
|
critical
|
|
17
17
|
text
|
|
@@ -20,7 +20,7 @@ exports[`F0Text Snapshots renders all color variants: color-critical 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`F0Text Snapshots renders all color variants: color-default 1`] = `
|
|
22
22
|
<Text
|
|
23
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
23
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
24
24
|
>
|
|
25
25
|
default
|
|
26
26
|
text
|
|
@@ -29,7 +29,7 @@ exports[`F0Text Snapshots renders all color variants: color-default 1`] = `
|
|
|
29
29
|
|
|
30
30
|
exports[`F0Text Snapshots renders all color variants: color-disabled 1`] = `
|
|
31
31
|
<Text
|
|
32
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-disabled text-left"
|
|
32
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-disabled text-left"
|
|
33
33
|
>
|
|
34
34
|
disabled
|
|
35
35
|
text
|
|
@@ -38,7 +38,7 @@ exports[`F0Text Snapshots renders all color variants: color-disabled 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`F0Text Snapshots renders all color variants: color-info 1`] = `
|
|
40
40
|
<Text
|
|
41
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-info text-left"
|
|
41
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-info text-left"
|
|
42
42
|
>
|
|
43
43
|
info
|
|
44
44
|
text
|
|
@@ -47,7 +47,7 @@ exports[`F0Text Snapshots renders all color variants: color-info 1`] = `
|
|
|
47
47
|
|
|
48
48
|
exports[`F0Text Snapshots renders all color variants: color-inverse 1`] = `
|
|
49
49
|
<Text
|
|
50
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-inverse text-left"
|
|
50
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-inverse text-left"
|
|
51
51
|
>
|
|
52
52
|
inverse
|
|
53
53
|
text
|
|
@@ -56,7 +56,7 @@ exports[`F0Text Snapshots renders all color variants: color-inverse 1`] = `
|
|
|
56
56
|
|
|
57
57
|
exports[`F0Text Snapshots renders all color variants: color-inverse-secondary 1`] = `
|
|
58
58
|
<Text
|
|
59
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-inverse-secondary text-left"
|
|
59
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-inverse-secondary text-left"
|
|
60
60
|
>
|
|
61
61
|
inverse-secondary
|
|
62
62
|
text
|
|
@@ -65,7 +65,7 @@ exports[`F0Text Snapshots renders all color variants: color-inverse-secondary 1`
|
|
|
65
65
|
|
|
66
66
|
exports[`F0Text Snapshots renders all color variants: color-positive 1`] = `
|
|
67
67
|
<Text
|
|
68
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-positive text-left"
|
|
68
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-positive text-left"
|
|
69
69
|
>
|
|
70
70
|
positive
|
|
71
71
|
text
|
|
@@ -74,7 +74,7 @@ exports[`F0Text Snapshots renders all color variants: color-positive 1`] = `
|
|
|
74
74
|
|
|
75
75
|
exports[`F0Text Snapshots renders all color variants: color-secondary 1`] = `
|
|
76
76
|
<Text
|
|
77
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-secondary text-left"
|
|
77
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-secondary text-left"
|
|
78
78
|
>
|
|
79
79
|
secondary
|
|
80
80
|
text
|
|
@@ -83,7 +83,7 @@ exports[`F0Text Snapshots renders all color variants: color-secondary 1`] = `
|
|
|
83
83
|
|
|
84
84
|
exports[`F0Text Snapshots renders all color variants: color-selected 1`] = `
|
|
85
85
|
<Text
|
|
86
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-selected text-left"
|
|
86
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-selected text-left"
|
|
87
87
|
>
|
|
88
88
|
selected
|
|
89
89
|
text
|
|
@@ -92,7 +92,7 @@ exports[`F0Text Snapshots renders all color variants: color-selected 1`] = `
|
|
|
92
92
|
|
|
93
93
|
exports[`F0Text Snapshots renders all color variants: color-tertiary 1`] = `
|
|
94
94
|
<Text
|
|
95
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-tertiary text-left"
|
|
95
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-tertiary text-left"
|
|
96
96
|
>
|
|
97
97
|
tertiary
|
|
98
98
|
text
|
|
@@ -101,7 +101,7 @@ exports[`F0Text Snapshots renders all color variants: color-tertiary 1`] = `
|
|
|
101
101
|
|
|
102
102
|
exports[`F0Text Snapshots renders all color variants: color-warning 1`] = `
|
|
103
103
|
<Text
|
|
104
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground-warning text-left"
|
|
104
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground-warning text-left"
|
|
105
105
|
>
|
|
106
106
|
warning
|
|
107
107
|
text
|
|
@@ -110,7 +110,7 @@ exports[`F0Text Snapshots renders all color variants: color-warning 1`] = `
|
|
|
110
110
|
|
|
111
111
|
exports[`F0Text Snapshots renders all typography variants: variant-body-md-default 1`] = `
|
|
112
112
|
<Text
|
|
113
|
-
className="text-[16px] leading-[24px] font-normal text-f0-foreground text-left"
|
|
113
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-normal text-f0-foreground text-left"
|
|
114
114
|
>
|
|
115
115
|
body-md-default
|
|
116
116
|
text
|
|
@@ -119,7 +119,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-md-defau
|
|
|
119
119
|
|
|
120
120
|
exports[`F0Text Snapshots renders all typography variants: variant-body-md-medium 1`] = `
|
|
121
121
|
<Text
|
|
122
|
-
className="text-[16px] leading-[24px] font-medium text-f0-foreground text-left"
|
|
122
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground text-left"
|
|
123
123
|
>
|
|
124
124
|
body-md-medium
|
|
125
125
|
text
|
|
@@ -128,7 +128,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-md-mediu
|
|
|
128
128
|
|
|
129
129
|
exports[`F0Text Snapshots renders all typography variants: variant-body-md-semibold 1`] = `
|
|
130
130
|
<Text
|
|
131
|
-
className="text-[16px] leading-[24px] font-semibold text-f0-foreground text-left"
|
|
131
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-semibold text-f0-foreground text-left"
|
|
132
132
|
>
|
|
133
133
|
body-md-semibold
|
|
134
134
|
text
|
|
@@ -137,7 +137,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-md-semib
|
|
|
137
137
|
|
|
138
138
|
exports[`F0Text Snapshots renders all typography variants: variant-body-sm-default 1`] = `
|
|
139
139
|
<Text
|
|
140
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
140
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
141
141
|
>
|
|
142
142
|
body-sm-default
|
|
143
143
|
text
|
|
@@ -146,7 +146,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-sm-defau
|
|
|
146
146
|
|
|
147
147
|
exports[`F0Text Snapshots renders all typography variants: variant-body-sm-medium 1`] = `
|
|
148
148
|
<Text
|
|
149
|
-
className="text-[14px] leading-[20px] font-medium text-f0-foreground text-left"
|
|
149
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-medium text-f0-foreground text-left"
|
|
150
150
|
>
|
|
151
151
|
body-sm-medium
|
|
152
152
|
text
|
|
@@ -155,7 +155,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-sm-mediu
|
|
|
155
155
|
|
|
156
156
|
exports[`F0Text Snapshots renders all typography variants: variant-body-sm-semibold 1`] = `
|
|
157
157
|
<Text
|
|
158
|
-
className="text-[14px] leading-[20px] font-semibold text-f0-foreground text-left"
|
|
158
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-semibold text-f0-foreground text-left"
|
|
159
159
|
>
|
|
160
160
|
body-sm-semibold
|
|
161
161
|
text
|
|
@@ -164,7 +164,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-sm-semib
|
|
|
164
164
|
|
|
165
165
|
exports[`F0Text Snapshots renders all typography variants: variant-body-xs-medium 1`] = `
|
|
166
166
|
<Text
|
|
167
|
-
className="text-[12px] leading-[16px] font-medium text-f0-foreground text-left"
|
|
167
|
+
className="no-underline normal-case tracking-normal text-[12px] leading-[16px] font-medium text-f0-foreground text-left"
|
|
168
168
|
>
|
|
169
169
|
body-xs-medium
|
|
170
170
|
text
|
|
@@ -173,7 +173,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-body-xs-mediu
|
|
|
173
173
|
|
|
174
174
|
exports[`F0Text Snapshots renders all typography variants: variant-heading-lg 1`] = `
|
|
175
175
|
<Text
|
|
176
|
-
className="text-[24px] leading-[32px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
176
|
+
className="no-underline normal-case text-[24px] leading-[32px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
177
177
|
>
|
|
178
178
|
heading-lg
|
|
179
179
|
text
|
|
@@ -182,7 +182,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-heading-lg 1`
|
|
|
182
182
|
|
|
183
183
|
exports[`F0Text Snapshots renders all typography variants: variant-heading-md 1`] = `
|
|
184
184
|
<Text
|
|
185
|
-
className="text-[20px] leading-[28px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
185
|
+
className="no-underline normal-case text-[20px] leading-[28px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
186
186
|
>
|
|
187
187
|
heading-md
|
|
188
188
|
text
|
|
@@ -191,7 +191,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-heading-md 1`
|
|
|
191
191
|
|
|
192
192
|
exports[`F0Text Snapshots renders all typography variants: variant-heading-sm 1`] = `
|
|
193
193
|
<Text
|
|
194
|
-
className="text-[16px] leading-[24px] font-semibold text-f0-foreground text-left"
|
|
194
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-semibold text-f0-foreground text-left"
|
|
195
195
|
>
|
|
196
196
|
heading-sm
|
|
197
197
|
text
|
|
@@ -200,7 +200,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-heading-sm 1`
|
|
|
200
200
|
|
|
201
201
|
exports[`F0Text Snapshots renders all typography variants: variant-heading-xl 1`] = `
|
|
202
202
|
<Text
|
|
203
|
-
className="text-[36px] leading-[40px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
203
|
+
className="no-underline normal-case text-[36px] leading-[40px] tracking-[-0.2px] font-semibold text-f0-foreground text-left"
|
|
204
204
|
>
|
|
205
205
|
heading-xl
|
|
206
206
|
text
|
|
@@ -209,7 +209,7 @@ exports[`F0Text Snapshots renders all typography variants: variant-heading-xl 1`
|
|
|
209
209
|
|
|
210
210
|
exports[`F0Text Snapshots renders with alignment options: align-center 1`] = `
|
|
211
211
|
<Text
|
|
212
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-center"
|
|
212
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-center"
|
|
213
213
|
>
|
|
214
214
|
center
|
|
215
215
|
text
|
|
@@ -218,7 +218,7 @@ exports[`F0Text Snapshots renders with alignment options: align-center 1`] = `
|
|
|
218
218
|
|
|
219
219
|
exports[`F0Text Snapshots renders with alignment options: align-justify 1`] = `
|
|
220
220
|
<Text
|
|
221
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-justify"
|
|
221
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-justify"
|
|
222
222
|
>
|
|
223
223
|
justify
|
|
224
224
|
text
|
|
@@ -227,7 +227,7 @@ exports[`F0Text Snapshots renders with alignment options: align-justify 1`] = `
|
|
|
227
227
|
|
|
228
228
|
exports[`F0Text Snapshots renders with alignment options: align-left 1`] = `
|
|
229
229
|
<Text
|
|
230
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
230
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
231
231
|
>
|
|
232
232
|
left
|
|
233
233
|
text
|
|
@@ -236,7 +236,7 @@ exports[`F0Text Snapshots renders with alignment options: align-left 1`] = `
|
|
|
236
236
|
|
|
237
237
|
exports[`F0Text Snapshots renders with alignment options: align-right 1`] = `
|
|
238
238
|
<Text
|
|
239
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-right"
|
|
239
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-right"
|
|
240
240
|
>
|
|
241
241
|
right
|
|
242
242
|
text
|
|
@@ -245,7 +245,7 @@ exports[`F0Text Snapshots renders with alignment options: align-right 1`] = `
|
|
|
245
245
|
|
|
246
246
|
exports[`F0Text Snapshots renders with default variant (body-sm-default) 1`] = `
|
|
247
247
|
<Text
|
|
248
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
248
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
249
249
|
>
|
|
250
250
|
Default text
|
|
251
251
|
</Text>
|
|
@@ -253,7 +253,7 @@ exports[`F0Text Snapshots renders with default variant (body-sm-default) 1`] = `
|
|
|
253
253
|
|
|
254
254
|
exports[`F0Text Snapshots renders with numberOfLines truncation 1`] = `
|
|
255
255
|
<Text
|
|
256
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
256
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
257
257
|
ellipsizeMode="tail"
|
|
258
258
|
numberOfLines={2}
|
|
259
259
|
>
|
|
@@ -263,7 +263,7 @@ exports[`F0Text Snapshots renders with numberOfLines truncation 1`] = `
|
|
|
263
263
|
|
|
264
264
|
exports[`F0Text Snapshots renders with text decorations: decoration-line-through 1`] = `
|
|
265
265
|
<Text
|
|
266
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left line-through"
|
|
266
|
+
className="normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left line-through"
|
|
267
267
|
>
|
|
268
268
|
line-through
|
|
269
269
|
text
|
|
@@ -272,7 +272,7 @@ exports[`F0Text Snapshots renders with text decorations: decoration-line-through
|
|
|
272
272
|
|
|
273
273
|
exports[`F0Text Snapshots renders with text decorations: decoration-none 1`] = `
|
|
274
274
|
<Text
|
|
275
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
275
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
276
276
|
>
|
|
277
277
|
none
|
|
278
278
|
text
|
|
@@ -281,7 +281,7 @@ exports[`F0Text Snapshots renders with text decorations: decoration-none 1`] = `
|
|
|
281
281
|
|
|
282
282
|
exports[`F0Text Snapshots renders with text decorations: decoration-underline 1`] = `
|
|
283
283
|
<Text
|
|
284
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left underline"
|
|
284
|
+
className="normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left underline"
|
|
285
285
|
>
|
|
286
286
|
underline
|
|
287
287
|
text
|
|
@@ -290,7 +290,7 @@ exports[`F0Text Snapshots renders with text decorations: decoration-underline 1`
|
|
|
290
290
|
|
|
291
291
|
exports[`F0Text Snapshots renders with text transforms: transform-capitalize 1`] = `
|
|
292
292
|
<Text
|
|
293
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left capitalize"
|
|
293
|
+
className="no-underline tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left capitalize"
|
|
294
294
|
>
|
|
295
295
|
capitalize
|
|
296
296
|
text
|
|
@@ -299,7 +299,7 @@ exports[`F0Text Snapshots renders with text transforms: transform-capitalize 1`]
|
|
|
299
299
|
|
|
300
300
|
exports[`F0Text Snapshots renders with text transforms: transform-lowercase 1`] = `
|
|
301
301
|
<Text
|
|
302
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left lowercase"
|
|
302
|
+
className="no-underline tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left lowercase"
|
|
303
303
|
>
|
|
304
304
|
lowercase
|
|
305
305
|
text
|
|
@@ -308,7 +308,7 @@ exports[`F0Text Snapshots renders with text transforms: transform-lowercase 1`]
|
|
|
308
308
|
|
|
309
309
|
exports[`F0Text Snapshots renders with text transforms: transform-none 1`] = `
|
|
310
310
|
<Text
|
|
311
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
311
|
+
className="no-underline normal-case tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left"
|
|
312
312
|
>
|
|
313
313
|
none
|
|
314
314
|
text
|
|
@@ -317,7 +317,7 @@ exports[`F0Text Snapshots renders with text transforms: transform-none 1`] = `
|
|
|
317
317
|
|
|
318
318
|
exports[`F0Text Snapshots renders with text transforms: transform-uppercase 1`] = `
|
|
319
319
|
<Text
|
|
320
|
-
className="text-[14px] leading-[20px] font-normal text-f0-foreground text-left uppercase"
|
|
320
|
+
className="no-underline tracking-normal text-[14px] leading-[20px] font-normal text-f0-foreground text-left uppercase"
|
|
321
321
|
>
|
|
322
322
|
uppercase
|
|
323
323
|
text
|
package/src/icons/index.ts
CHANGED
package/src/lib/utils.ts
CHANGED
|
@@ -10,11 +10,10 @@ export function cn(...args: CnOptions): string {
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Omits specified keys from an object at runtime.
|
|
13
|
-
* Used to filter blocked props (e.g. style
|
|
13
|
+
* Used to filter blocked props (e.g. style) before spreading to primitives.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* omitProps(rest, ["style"])
|
|
17
|
-
* omitProps(rest, ["style", "className"])
|
|
18
17
|
*/
|
|
19
18
|
export function omitProps<T extends Record<string, unknown>, K extends string>(
|
|
20
19
|
obj: T,
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Icon Component
|
|
2
|
-
|
|
3
|
-
The Icon component is used to render SVG icons from the F0 Design System in React Native applications.
|
|
4
|
-
|
|
5
|
-
## Import Pattern
|
|
6
|
-
|
|
7
|
-
```tsx
|
|
8
|
-
// Import the Icon component
|
|
9
|
-
import { Icon } from "@factorialco/f0-react-native";
|
|
10
|
-
|
|
11
|
-
// Import specific icons from app or modules directories
|
|
12
|
-
import { AppIcons, ModuleIcons } from "@factorialco/f0-react-native";
|
|
13
|
-
|
|
14
|
-
// Use the Icon component with the icon as a prop
|
|
15
|
-
<Icon icon={AppIcons.Archive} size="md" />
|
|
16
|
-
<Icon icon={ModuleIcons.Home} size="lg" />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Props
|
|
20
|
-
|
|
21
|
-
| Prop | Type | Default | Description |
|
|
22
|
-
| --------- | ---------------------------- | ------- | --------------------------------------- |
|
|
23
|
-
| icon | IconType | | The icon component to render |
|
|
24
|
-
| size | "xs" \| "sm" \| "md" \| "lg" | "md" | The size of the icon |
|
|
25
|
-
| className | string | | Additional classes for styling the icon |
|
|
26
|
-
| testID | string | | Test ID for testing |
|
|
27
|
-
| ...props | SvgProps | | Additional props for the SVG component |
|
|
28
|
-
|
|
29
|
-
## Styling with UniWind
|
|
30
|
-
|
|
31
|
-
The Icon component is designed to work with UniWind, allowing you to style icons using Tailwind CSS classes:
|
|
32
|
-
|
|
33
|
-
```tsx
|
|
34
|
-
// Style using Tailwind CSS classes
|
|
35
|
-
<Icon icon={AppIcons.Archive} className="text-f0-icon-secondary" />
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Available Icons
|
|
39
|
-
|
|
40
|
-
The library includes two sets of icons:
|
|
41
|
-
|
|
42
|
-
1. **App Icons** - General purpose icons used throughout the application
|
|
43
|
-
2. **Module Icons** - Icons representing specific modules in the Factorial application
|
|
44
|
-
|
|
45
|
-
## Examples
|
|
46
|
-
|
|
47
|
-
```tsx
|
|
48
|
-
import { Icon } from "@factorialco/f0-react-native";
|
|
49
|
-
import { AppIcons, ModuleIcons } from "@factorialco/f0-react-native";
|
|
50
|
-
|
|
51
|
-
// Basic usage
|
|
52
|
-
<Icon icon={AppIcons.Calendar} />
|
|
53
|
-
|
|
54
|
-
// With size variant
|
|
55
|
-
<Icon icon={AppIcons.ChevronDown} size="xs" />
|
|
56
|
-
<Icon icon={AppIcons.Check} size="sm" />
|
|
57
|
-
<Icon icon={ModuleIcons.Home} size="md" />
|
|
58
|
-
<Icon icon={ModuleIcons.Settings} size="lg" />
|
|
59
|
-
|
|
60
|
-
// With color styling
|
|
61
|
-
<Icon icon={AppIcons.Heart} className="text-red-500" />
|
|
62
|
-
<Icon icon={AppIcons.InfoCircle} className="text-blue-500" />
|
|
63
|
-
```
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Icon Component
|
|
2
|
-
|
|
3
|
-
The Icon component is used to render SVG icons from the F0 Design System in React Native applications.
|
|
4
|
-
|
|
5
|
-
## Import Pattern
|
|
6
|
-
|
|
7
|
-
```tsx
|
|
8
|
-
// Import the Icon component
|
|
9
|
-
import { Icon } from "@factorialco/f0-react-native";
|
|
10
|
-
|
|
11
|
-
// Import specific icons from app or modules directories
|
|
12
|
-
import { AppIcons, ModuleIcons } from "@factorialco/f0-react-native";
|
|
13
|
-
|
|
14
|
-
// Use the Icon component with the icon as a prop
|
|
15
|
-
<Icon icon={AppIcons.Archive} size="md" />
|
|
16
|
-
<Icon icon={ModuleIcons.Home} size="lg" />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Props
|
|
20
|
-
|
|
21
|
-
| Prop | Type | Default | Description |
|
|
22
|
-
| --------- | ---------------------------- | ------- | --------------------------------------- |
|
|
23
|
-
| icon | IconType | | The icon component to render |
|
|
24
|
-
| size | "xs" \| "sm" \| "md" \| "lg" | "md" | The size of the icon |
|
|
25
|
-
| className | string | | Additional classes for styling the icon |
|
|
26
|
-
| testID | string | | Test ID for testing |
|
|
27
|
-
| ...props | SvgProps | | Additional props for the SVG component |
|
|
28
|
-
|
|
29
|
-
## Styling with UniWind
|
|
30
|
-
|
|
31
|
-
The Icon component is designed to work with UniWind, allowing you to style icons using Tailwind CSS classes:
|
|
32
|
-
|
|
33
|
-
```tsx
|
|
34
|
-
// Style using Tailwind CSS classes
|
|
35
|
-
<Icon icon={AppIcons.Archive} className="text-f0-icon-secondary" />
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Available Icons
|
|
39
|
-
|
|
40
|
-
The library includes two sets of icons:
|
|
41
|
-
|
|
42
|
-
1. **App Icons** - General purpose icons used throughout the application
|
|
43
|
-
2. **Module Icons** - Icons representing specific modules in the Factorial application
|
|
44
|
-
|
|
45
|
-
## Examples
|
|
46
|
-
|
|
47
|
-
```tsx
|
|
48
|
-
import { Icon } from "@factorialco/f0-react-native";
|
|
49
|
-
import { AppIcons, ModuleIcons } from "@factorialco/f0-react-native";
|
|
50
|
-
|
|
51
|
-
// Basic usage
|
|
52
|
-
<Icon icon={AppIcons.Calendar} />
|
|
53
|
-
|
|
54
|
-
// With size variant
|
|
55
|
-
<Icon icon={AppIcons.ChevronDown} size="xs" />
|
|
56
|
-
<Icon icon={AppIcons.Check} size="sm" />
|
|
57
|
-
<Icon icon={ModuleIcons.Home} size="md" />
|
|
58
|
-
<Icon icon={ModuleIcons.Settings} size="lg" />
|
|
59
|
-
|
|
60
|
-
// With color styling
|
|
61
|
-
<Icon icon={AppIcons.Heart} className="text-red-500" />
|
|
62
|
-
<Icon icon={AppIcons.InfoCircle} className="text-blue-500" />
|
|
63
|
-
```
|