@fluentui-react-native/text 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/lib/Text.d.ts +2 -6
- package/lib/Text.js +89 -122
- package/lib/Text.js.map +1 -1
- package/lib/Text.types.d.ts +6 -9
- package/lib/Text.types.js +1 -1
- package/lib/TextTokens.d.ts +2 -2
- package/lib/TextTokens.js +3 -6
- package/lib/Variants.android.d.ts +13 -61
- package/lib/Variants.android.js +13 -13
- package/lib/Variants.d.ts +18 -86
- package/lib/Variants.ios.d.ts +13 -61
- package/lib/Variants.ios.js +13 -13
- package/lib/Variants.js +1 -1
- package/lib/Variants.win32.d.ts +14 -66
- package/lib/Variants.win32.js +14 -14
- package/lib/Variants.windows.d.ts +14 -66
- package/lib/Variants.windows.js +14 -14
- package/lib/__tests__/Text.test.d.ts +1 -1
- package/lib/__tests__/Text.test.js +35 -35
- package/lib/deprecated/Text.d.ts +4 -14
- package/lib/deprecated/Text.js +9 -9
- package/lib/deprecated/Text.settings.d.ts +1 -1
- package/lib/deprecated/Text.settings.js +18 -18
- package/lib/deprecated/Text.types.d.ts +9 -11
- package/lib/deprecated/Text.types.js +1 -1
- package/lib/index.d.ts +2 -20
- package/lib/index.js +2 -20
- package/lib-commonjs/Text.d.ts +2 -6
- package/lib-commonjs/Text.js +101 -141
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Text.types.d.ts +6 -9
- package/lib-commonjs/Text.types.js +3 -3
- package/lib-commonjs/TextTokens.d.ts +2 -2
- package/lib-commonjs/TextTokens.js +7 -10
- package/lib-commonjs/Variants.android.d.ts +13 -61
- package/lib-commonjs/Variants.android.js +17 -34
- package/lib-commonjs/Variants.d.ts +18 -86
- package/lib-commonjs/Variants.ios.d.ts +13 -61
- package/lib-commonjs/Variants.ios.js +17 -34
- package/lib-commonjs/Variants.js +5 -22
- package/lib-commonjs/Variants.win32.d.ts +14 -66
- package/lib-commonjs/Variants.win32.js +18 -35
- package/lib-commonjs/Variants.windows.d.ts +14 -66
- package/lib-commonjs/Variants.windows.js +18 -35
- package/lib-commonjs/__tests__/Text.test.d.ts +1 -1
- package/lib-commonjs/__tests__/Text.test.js +69 -88
- package/lib-commonjs/deprecated/Text.d.ts +4 -14
- package/lib-commonjs/deprecated/Text.js +17 -17
- package/lib-commonjs/deprecated/Text.settings.d.ts +1 -1
- package/lib-commonjs/deprecated/Text.settings.js +21 -21
- package/lib-commonjs/deprecated/Text.types.d.ts +9 -11
- package/lib-commonjs/deprecated/Text.types.js +3 -3
- package/lib-commonjs/index.d.ts +2 -20
- package/lib-commonjs/index.js +30 -156
- package/package.json +21 -20
- package/src/Text.tsx +6 -6
package/package.json
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/text",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "A cross-platform Text component using the Fluent Design System",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "",
|
|
5
7
|
"repository": {
|
|
6
8
|
"type": "git",
|
|
7
9
|
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
8
10
|
"directory": "packages/components/text"
|
|
9
11
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
+
"main": "lib-commonjs/index.js",
|
|
13
|
+
"module": "lib/index.js",
|
|
14
|
+
"types": "lib/index.d.ts",
|
|
12
15
|
"exports": {
|
|
13
16
|
".": {
|
|
14
17
|
"types": "./lib/index.d.ts",
|
|
15
18
|
"import": "./lib/index.js",
|
|
16
|
-
"require": "./lib-commonjs/index.js"
|
|
19
|
+
"require": "./lib-commonjs/index.js",
|
|
20
|
+
"default": "./src/index.ts"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
|
-
"main": "lib-commonjs/index.js",
|
|
20
|
-
"module": "lib/index.js",
|
|
21
|
-
"types": "lib/index.d.ts",
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "fluentui-scripts build",
|
|
24
25
|
"build-cjs": "tsgo --outDir lib-commonjs",
|
|
25
|
-
"build-
|
|
26
|
+
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
|
|
26
27
|
"clean": "fluentui-scripts clean",
|
|
27
28
|
"depcheck": "fluentui-scripts depcheck",
|
|
28
29
|
"lint": "fluentui-scripts eslint",
|
|
29
30
|
"lint-package": "fluentui-scripts lint-package",
|
|
30
|
-
"
|
|
31
|
+
"format": "fluentui-scripts format",
|
|
31
32
|
"test": "fluentui-scripts jest",
|
|
32
33
|
"update-snapshots": "fluentui-scripts jest -u"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@fluentui-react-native/adapters": "0.14.
|
|
36
|
-
"@fluentui-react-native/framework": "0.15.
|
|
37
|
-
"@fluentui-react-native/interactive-hooks": "0.28.
|
|
38
|
-
"@fluentui-react-native/theme-tokens": "0.28.
|
|
39
|
-
"@fluentui-react-native/tokens": "0.24.
|
|
40
|
-
"@uifabricshared/foundation-compose": "1.16.
|
|
36
|
+
"@fluentui-react-native/adapters": "0.14.1",
|
|
37
|
+
"@fluentui-react-native/framework": "0.15.1",
|
|
38
|
+
"@fluentui-react-native/interactive-hooks": "0.28.1",
|
|
39
|
+
"@fluentui-react-native/theme-tokens": "0.28.1",
|
|
40
|
+
"@fluentui-react-native/tokens": "0.24.1",
|
|
41
|
+
"@uifabricshared/foundation-compose": "1.16.1"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@babel/core": "^7.20.0",
|
|
44
45
|
"@fluentui-react-native/babel-config": "0.1.1",
|
|
45
|
-
"@fluentui-react-native/eslint-config-rules": "0.1.
|
|
46
|
-
"@fluentui-react-native/framework-base": "0.3.
|
|
47
|
-
"@fluentui-react-native/jest-config": "0.1.
|
|
46
|
+
"@fluentui-react-native/eslint-config-rules": "0.1.2",
|
|
47
|
+
"@fluentui-react-native/framework-base": "0.3.1",
|
|
48
|
+
"@fluentui-react-native/jest-config": "0.1.0",
|
|
48
49
|
"@fluentui-react-native/kit-config": "0.1.2",
|
|
49
|
-
"@fluentui-react-native/scripts": "0.1.
|
|
50
|
-
"@fluentui-react-native/test-tools": "0.1.
|
|
50
|
+
"@fluentui-react-native/scripts": "0.1.0",
|
|
51
|
+
"@fluentui-react-native/test-tools": "0.1.0",
|
|
51
52
|
"@react-native-community/cli": "^20.0.0",
|
|
52
53
|
"@react-native-community/cli-platform-android": "^20.0.0",
|
|
53
54
|
"@react-native-community/cli-platform-ios": "^20.0.0",
|
package/src/Text.tsx
CHANGED
|
@@ -50,13 +50,13 @@ export const Text = compressible<TextProps, TextTokens>((props: TextProps, useTo
|
|
|
50
50
|
? align === 'start'
|
|
51
51
|
? 'right'
|
|
52
52
|
: align === 'end'
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
? 'left'
|
|
54
|
+
: align
|
|
55
55
|
: align === 'start'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
? 'left'
|
|
57
|
+
: align === 'end'
|
|
58
|
+
? 'right'
|
|
59
|
+
: align;
|
|
60
60
|
|
|
61
61
|
const textOnPress = React.useCallback(
|
|
62
62
|
(e) => {
|