@fluentui-react-native/text 0.25.0 → 0.25.3
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 +41 -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 +29 -28
- package/src/Text.tsx +6 -6
- package/eslint.config.js +0 -3
|
@@ -1,65 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
exports.Display =
|
|
4
|
-
|
|
5
|
-
exports.Title3 =
|
|
6
|
-
exports.Title2 =
|
|
7
|
-
exports.Title1Strong =
|
|
8
|
-
exports.Title1 =
|
|
9
|
-
exports.Subtitle2Strong =
|
|
10
|
-
exports.Subtitle2 =
|
|
11
|
-
exports.Subtitle1Strong =
|
|
12
|
-
exports.Subtitle1 =
|
|
13
|
-
exports.Body2Strong =
|
|
14
|
-
exports.Body2 =
|
|
15
|
-
exports.Body1Strong =
|
|
16
|
-
exports.Body1 =
|
|
17
|
-
exports.Caption2 =
|
|
18
|
-
exports.Caption1Strong =
|
|
19
|
-
exports.Caption1 =
|
|
20
|
-
void 0;
|
|
21
|
-
const Text_1 = require('./Text');
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Display = exports.LargeTitle = exports.Title3 = exports.Title2 = exports.Title1Strong = exports.Title1 = exports.Subtitle2Strong = exports.Subtitle2 = exports.Subtitle1Strong = exports.Subtitle1 = exports.Body2Strong = exports.Body2 = exports.Body1Strong = exports.Body1 = exports.Caption2 = exports.Caption1Strong = exports.Caption1 = void 0;
|
|
4
|
+
const Text_1 = require("./Text");
|
|
22
5
|
exports.Caption1 = Text_1.Text.customize({
|
|
23
|
-
|
|
6
|
+
variant: 'caption1',
|
|
24
7
|
});
|
|
25
8
|
exports.Caption1Strong = null; // Not supported on windows
|
|
26
9
|
exports.Caption2 = null; // Not supported on windows
|
|
27
10
|
exports.Body1 = Text_1.Text.customize({
|
|
28
|
-
|
|
11
|
+
variant: 'body1',
|
|
29
12
|
});
|
|
30
13
|
exports.Body1Strong = Text_1.Text.customize({
|
|
31
|
-
|
|
14
|
+
variant: 'body1Strong',
|
|
32
15
|
});
|
|
33
16
|
exports.Body2 = Text_1.Text.customize({
|
|
34
|
-
|
|
17
|
+
variant: 'body2',
|
|
35
18
|
});
|
|
36
19
|
exports.Body2Strong = Text_1.Text.customize({
|
|
37
|
-
|
|
20
|
+
variant: 'body2Strong',
|
|
38
21
|
});
|
|
39
22
|
exports.Subtitle1 = Text_1.Text.customize({
|
|
40
|
-
|
|
23
|
+
variant: 'subtitle1',
|
|
41
24
|
});
|
|
42
25
|
exports.Subtitle1Strong = Text_1.Text.customize({
|
|
43
|
-
|
|
26
|
+
variant: 'subtitle1Strong',
|
|
44
27
|
});
|
|
45
28
|
exports.Subtitle2 = Text_1.Text.customize({
|
|
46
|
-
|
|
29
|
+
variant: 'subtitle2',
|
|
47
30
|
});
|
|
48
31
|
exports.Subtitle2Strong = Text_1.Text.customize({
|
|
49
|
-
|
|
32
|
+
variant: 'subtitle2Strong',
|
|
50
33
|
});
|
|
51
34
|
exports.Title1 = Text_1.Text.customize({
|
|
52
|
-
|
|
35
|
+
variant: 'title1',
|
|
53
36
|
});
|
|
54
37
|
exports.Title1Strong = Text_1.Text.customize({
|
|
55
|
-
|
|
38
|
+
variant: 'title1Strong',
|
|
56
39
|
});
|
|
57
40
|
exports.Title2 = null; // Not supported on windows
|
|
58
41
|
exports.Title3 = null; // Not supported on windows
|
|
59
42
|
exports.LargeTitle = Text_1.Text.customize({
|
|
60
|
-
|
|
43
|
+
variant: 'largeTitle',
|
|
61
44
|
});
|
|
62
45
|
exports.Display = Text_1.Text.customize({
|
|
63
|
-
|
|
46
|
+
variant: 'display',
|
|
64
47
|
});
|
|
65
|
-
//# sourceMappingURL=Variants.windows.js.map
|
|
48
|
+
//# sourceMappingURL=Variants.windows.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=Text.test.d.ts.map
|
|
2
|
+
//# sourceMappingURL=Text.test.d.ts.map
|
|
@@ -1,98 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
(Object.create
|
|
25
|
-
? function (o, v) {
|
|
26
|
-
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
27
|
-
}
|
|
28
|
-
: function (o, v) {
|
|
29
|
-
o['default'] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar =
|
|
32
|
-
(this && this.__importStar) ||
|
|
33
|
-
(function () {
|
|
34
|
-
var ownKeys = function (o) {
|
|
35
|
-
ownKeys =
|
|
36
|
-
Object.getOwnPropertyNames ||
|
|
37
|
-
function (o) {
|
|
38
|
-
var ar = [];
|
|
39
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
40
|
-
return ar;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
41
24
|
};
|
|
42
|
-
|
|
25
|
+
return ownKeys(o);
|
|
43
26
|
};
|
|
44
27
|
return function (mod) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
50
33
|
};
|
|
51
|
-
|
|
52
|
-
Object.defineProperty(exports,
|
|
53
|
-
const jsx_runtime_1 = require(
|
|
54
|
-
const react_1 = require(
|
|
55
|
-
const renderer = __importStar(require(
|
|
56
|
-
const Text_1 = require(
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
37
|
+
const react_1 = require("react");
|
|
38
|
+
const renderer = __importStar(require("react-test-renderer"));
|
|
39
|
+
const Text_1 = require("../Text");
|
|
57
40
|
describe('Text component tests', () => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
it('Text all props', () => {
|
|
66
|
-
let component;
|
|
67
|
-
(0, react_1.act)(() => {
|
|
68
|
-
component = renderer.create(jsx_runtime_1.jsx(Text_1.Text, { variant: 'bodyStandard', children: 'All props' }));
|
|
41
|
+
it('Text default', () => {
|
|
42
|
+
let component;
|
|
43
|
+
(0, react_1.act)(() => {
|
|
44
|
+
component = renderer.create(jsx_runtime_1.jsx(Text_1.Text, { children: "Text default" }));
|
|
45
|
+
});
|
|
46
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
69
47
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
fontSize: 20,
|
|
48
|
+
it('Text all props', () => {
|
|
49
|
+
let component;
|
|
50
|
+
(0, react_1.act)(() => {
|
|
51
|
+
component = renderer.create(jsx_runtime_1.jsx(Text_1.Text, { variant: "bodyStandard", children: "All props" }));
|
|
52
|
+
});
|
|
53
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
77
54
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
it('Text all tokens', () => {
|
|
56
|
+
const BoldText = Text_1.Text.customize({
|
|
57
|
+
fontFamily: 'Wingdings',
|
|
58
|
+
fontWeight: '900',
|
|
59
|
+
fontSize: 20,
|
|
60
|
+
});
|
|
61
|
+
let component;
|
|
62
|
+
(0, react_1.act)(() => {
|
|
63
|
+
component = renderer.create(jsx_runtime_1.jsx(BoldText, { children: "All tokens" }));
|
|
64
|
+
});
|
|
65
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
81
66
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
jsx_runtime_1.jsx(Text_1.Text, { variant: 'heroLargeSemibold', color: 'blue', style: style, children: 'Header Text' }),
|
|
93
|
-
);
|
|
67
|
+
it('Text variants render correctly with style', () => {
|
|
68
|
+
const style = {
|
|
69
|
+
marginBottom: 8,
|
|
70
|
+
marginTop: 4,
|
|
71
|
+
};
|
|
72
|
+
let component;
|
|
73
|
+
(0, react_1.act)(() => {
|
|
74
|
+
component = renderer.create(jsx_runtime_1.jsx(Text_1.Text, { variant: "heroLargeSemibold", color: "blue", style: style, children: "Header Text" }));
|
|
75
|
+
});
|
|
76
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
94
77
|
});
|
|
95
|
-
expect(component.toJSON()).toMatchSnapshot();
|
|
96
|
-
});
|
|
97
78
|
});
|
|
98
|
-
//# sourceMappingURL=Text.test.js.map
|
|
79
|
+
//# sourceMappingURL=Text.test.js.map
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
export declare const Text: import(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
root: import('@fluentui-react-native/adapters').ITextProps;
|
|
5
|
-
},
|
|
6
|
-
import('@fluentui-react-native/tokens').FontStyleTokens &
|
|
7
|
-
import('@fluentui-react-native/tokens').FontVariantTokens &
|
|
8
|
-
import('@fluentui-react-native/tokens').FontDecorationTokens &
|
|
9
|
-
import('@fluentui-react-native/tokens').IForegroundColorTokens &
|
|
10
|
-
import('@fluentui-react-native/tokens').IBackgroundColorTokens,
|
|
11
|
-
object,
|
|
12
|
-
object
|
|
13
|
-
>;
|
|
1
|
+
export declare const Text: import("@uifabricshared/foundation-compose").IComposeReturnType<import("./Text.types").ITextProps<import("@fluentui-react-native/adapters").ITextProps>, {
|
|
2
|
+
root: import("@fluentui-react-native/adapters").ITextProps;
|
|
3
|
+
}, import("@fluentui-react-native/tokens").FontStyleTokens & import("@fluentui-react-native/tokens").FontVariantTokens & import("@fluentui-react-native/tokens").FontDecorationTokens & import("@fluentui-react-native/tokens").IForegroundColorTokens & import("@fluentui-react-native/tokens").IBackgroundColorTokens, object, object>;
|
|
14
4
|
export default Text;
|
|
15
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
5
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Text = void 0;
|
|
4
|
-
const react_native_1 = require(
|
|
5
|
-
const adapters_1 = require(
|
|
6
|
-
const tokens_1 = require(
|
|
7
|
-
const foundation_compose_1 = require(
|
|
8
|
-
const Text_settings_1 = require(
|
|
9
|
-
const Text_types_1 = require(
|
|
4
|
+
const react_native_1 = require("react-native");
|
|
5
|
+
const adapters_1 = require("@fluentui-react-native/adapters");
|
|
6
|
+
const tokens_1 = require("@fluentui-react-native/tokens");
|
|
7
|
+
const foundation_compose_1 = require("@uifabricshared/foundation-compose");
|
|
8
|
+
const Text_settings_1 = require("./Text.settings");
|
|
9
|
+
const Text_types_1 = require("./Text.types");
|
|
10
10
|
exports.Text = (0, foundation_compose_1.compose)({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
displayName: Text_types_1.textName,
|
|
12
|
+
settings: Text_settings_1.settings,
|
|
13
|
+
slots: {
|
|
14
|
+
root: { slotType: react_native_1.Text, filter: adapters_1.filterTextProps },
|
|
15
|
+
},
|
|
16
|
+
styles: {
|
|
17
|
+
root: [tokens_1.textTokens, tokens_1.foregroundColorTokens],
|
|
18
|
+
},
|
|
19
19
|
});
|
|
20
20
|
exports.default = exports.Text;
|
|
21
|
-
//# sourceMappingURL=Text.js.map
|
|
21
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { IComposeSettings } from '@uifabricshared/foundation-compose';
|
|
2
2
|
import type { ITextType } from './Text.types';
|
|
3
3
|
export declare const settings: IComposeSettings<ITextType>;
|
|
4
|
-
//# sourceMappingURL=Text.settings.d.ts.map
|
|
4
|
+
//# sourceMappingURL=Text.settings.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.settings = void 0;
|
|
4
|
-
const Text_types_1 = require(
|
|
4
|
+
const Text_types_1 = require("./Text.types");
|
|
5
5
|
exports.settings = [
|
|
6
|
-
|
|
7
|
-
tokens: {
|
|
8
|
-
variant: 'secondaryStandard',
|
|
9
|
-
color: 'bodyText',
|
|
10
|
-
},
|
|
11
|
-
root: {
|
|
12
|
-
style: {
|
|
13
|
-
margin: 0,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
_overrides: {
|
|
17
|
-
disabled: {
|
|
6
|
+
{
|
|
18
7
|
tokens: {
|
|
19
|
-
|
|
8
|
+
variant: 'secondaryStandard',
|
|
9
|
+
color: 'bodyText',
|
|
10
|
+
},
|
|
11
|
+
root: {
|
|
12
|
+
style: {
|
|
13
|
+
margin: 0,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
_overrides: {
|
|
17
|
+
disabled: {
|
|
18
|
+
tokens: {
|
|
19
|
+
color: 'disabledText',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
20
22
|
},
|
|
21
|
-
|
|
23
|
+
_precedence: ['disabled'],
|
|
22
24
|
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
Text_types_1.textName,
|
|
25
|
+
Text_types_1.textName,
|
|
26
26
|
];
|
|
27
|
-
//# sourceMappingURL=Text.settings.js.map
|
|
27
|
+
//# sourceMappingURL=Text.settings.js.map
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import type { ITextProps as INativeTextProps } from '@fluentui-react-native/adapters';
|
|
2
2
|
import type { FontTokens, FontVariantTokens, IForegroundColorTokens, IColorTokens } from '@fluentui-react-native/tokens';
|
|
3
|
-
export declare const textName =
|
|
3
|
+
export declare const textName = "RNFText";
|
|
4
4
|
/**
|
|
5
5
|
* Properties for fabric native text field, these extend the default props for text
|
|
6
6
|
*/
|
|
7
|
-
export type ITextProps<TBase = INativeTextProps> = TBase &
|
|
8
|
-
FontVariantTokens &
|
|
9
|
-
IForegroundColorTokens & {
|
|
7
|
+
export type ITextProps<TBase = INativeTextProps> = TBase & FontVariantTokens & IForegroundColorTokens & {
|
|
10
8
|
disabled?: boolean;
|
|
11
|
-
|
|
9
|
+
};
|
|
12
10
|
export type ITextType<TBase = INativeTextProps> = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
props: ITextProps<TBase>;
|
|
12
|
+
tokens: FontTokens & IColorTokens;
|
|
13
|
+
slotProps: {
|
|
14
|
+
root: TBase;
|
|
15
|
+
};
|
|
18
16
|
};
|
|
19
|
-
//# sourceMappingURL=Text.types.d.ts.map
|
|
17
|
+
//# sourceMappingURL=Text.types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.textName = void 0;
|
|
4
4
|
exports.textName = 'RNFText';
|
|
5
|
-
//# sourceMappingURL=Text.types.js.map
|
|
5
|
+
//# sourceMappingURL=Text.types.js.map
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
export { Text as TextV1 } from './Text';
|
|
2
2
|
export type { TextProps, TextTokens } from './Text.types';
|
|
3
3
|
export { textName as textNameV1 } from './Text.types';
|
|
4
|
-
export {
|
|
5
|
-
Caption1,
|
|
6
|
-
Caption1Strong,
|
|
7
|
-
Caption2,
|
|
8
|
-
Body1,
|
|
9
|
-
Body1Strong,
|
|
10
|
-
Body2,
|
|
11
|
-
Body2Strong,
|
|
12
|
-
Subtitle1,
|
|
13
|
-
Subtitle1Strong,
|
|
14
|
-
Subtitle2,
|
|
15
|
-
Subtitle2Strong,
|
|
16
|
-
Title1,
|
|
17
|
-
Title1Strong,
|
|
18
|
-
Title2,
|
|
19
|
-
Title3,
|
|
20
|
-
LargeTitle,
|
|
21
|
-
Display,
|
|
22
|
-
} from './Variants';
|
|
4
|
+
export { Caption1, Caption1Strong, Caption2, Body1, Body1Strong, Body2, Body2Strong, Subtitle1, Subtitle1Strong, Subtitle2, Subtitle2Strong, Title1, Title1Strong, Title2, Title3, LargeTitle, Display, } from './Variants';
|
|
23
5
|
export { textName } from './deprecated/Text.types';
|
|
24
6
|
export type { ITextProps, ITextType } from './deprecated/Text.types';
|
|
25
7
|
export { Text } from './deprecated/Text';
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,157 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
exports.Text =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(exports, 'TextV1', {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () {
|
|
29
|
-
return Text_1.Text;
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
const Text_types_1 = require('./Text.types');
|
|
33
|
-
Object.defineProperty(exports, 'textNameV1', {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () {
|
|
36
|
-
return Text_types_1.textName;
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
const Variants_1 = require('./Variants');
|
|
40
|
-
Object.defineProperty(exports, 'Caption1', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return Variants_1.Caption1;
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, 'Caption1Strong', {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () {
|
|
49
|
-
return Variants_1.Caption1Strong;
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, 'Caption2', {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () {
|
|
55
|
-
return Variants_1.Caption2;
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, 'Body1', {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () {
|
|
61
|
-
return Variants_1.Body1;
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, 'Body1Strong', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return Variants_1.Body1Strong;
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, 'Body2', {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () {
|
|
73
|
-
return Variants_1.Body2;
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, 'Body2Strong', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return Variants_1.Body2Strong;
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, 'Subtitle1', {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () {
|
|
85
|
-
return Variants_1.Subtitle1;
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, 'Subtitle1Strong', {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () {
|
|
91
|
-
return Variants_1.Subtitle1Strong;
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, 'Subtitle2', {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () {
|
|
97
|
-
return Variants_1.Subtitle2;
|
|
98
|
-
},
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, 'Subtitle2Strong', {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return Variants_1.Subtitle2Strong;
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, 'Title1', {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function () {
|
|
109
|
-
return Variants_1.Title1;
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, 'Title1Strong', {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () {
|
|
115
|
-
return Variants_1.Title1Strong;
|
|
116
|
-
},
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, 'Title2', {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function () {
|
|
121
|
-
return Variants_1.Title2;
|
|
122
|
-
},
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, 'Title3', {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function () {
|
|
127
|
-
return Variants_1.Title3;
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(exports, 'LargeTitle', {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
get: function () {
|
|
133
|
-
return Variants_1.LargeTitle;
|
|
134
|
-
},
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, 'Display', {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () {
|
|
139
|
-
return Variants_1.Display;
|
|
140
|
-
},
|
|
141
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Text = exports.textName = exports.Display = exports.LargeTitle = exports.Title3 = exports.Title2 = exports.Title1Strong = exports.Title1 = exports.Subtitle2Strong = exports.Subtitle2 = exports.Subtitle1Strong = exports.Subtitle1 = exports.Body2Strong = exports.Body2 = exports.Body1Strong = exports.Body1 = exports.Caption2 = exports.Caption1Strong = exports.Caption1 = exports.textNameV1 = exports.TextV1 = void 0;
|
|
4
|
+
const Text_1 = require("./Text");
|
|
5
|
+
Object.defineProperty(exports, "TextV1", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
6
|
+
const Text_types_1 = require("./Text.types");
|
|
7
|
+
Object.defineProperty(exports, "textNameV1", { enumerable: true, get: function () { return Text_types_1.textName; } });
|
|
8
|
+
const Variants_1 = require("./Variants");
|
|
9
|
+
Object.defineProperty(exports, "Caption1", { enumerable: true, get: function () { return Variants_1.Caption1; } });
|
|
10
|
+
Object.defineProperty(exports, "Caption1Strong", { enumerable: true, get: function () { return Variants_1.Caption1Strong; } });
|
|
11
|
+
Object.defineProperty(exports, "Caption2", { enumerable: true, get: function () { return Variants_1.Caption2; } });
|
|
12
|
+
Object.defineProperty(exports, "Body1", { enumerable: true, get: function () { return Variants_1.Body1; } });
|
|
13
|
+
Object.defineProperty(exports, "Body1Strong", { enumerable: true, get: function () { return Variants_1.Body1Strong; } });
|
|
14
|
+
Object.defineProperty(exports, "Body2", { enumerable: true, get: function () { return Variants_1.Body2; } });
|
|
15
|
+
Object.defineProperty(exports, "Body2Strong", { enumerable: true, get: function () { return Variants_1.Body2Strong; } });
|
|
16
|
+
Object.defineProperty(exports, "Subtitle1", { enumerable: true, get: function () { return Variants_1.Subtitle1; } });
|
|
17
|
+
Object.defineProperty(exports, "Subtitle1Strong", { enumerable: true, get: function () { return Variants_1.Subtitle1Strong; } });
|
|
18
|
+
Object.defineProperty(exports, "Subtitle2", { enumerable: true, get: function () { return Variants_1.Subtitle2; } });
|
|
19
|
+
Object.defineProperty(exports, "Subtitle2Strong", { enumerable: true, get: function () { return Variants_1.Subtitle2Strong; } });
|
|
20
|
+
Object.defineProperty(exports, "Title1", { enumerable: true, get: function () { return Variants_1.Title1; } });
|
|
21
|
+
Object.defineProperty(exports, "Title1Strong", { enumerable: true, get: function () { return Variants_1.Title1Strong; } });
|
|
22
|
+
Object.defineProperty(exports, "Title2", { enumerable: true, get: function () { return Variants_1.Title2; } });
|
|
23
|
+
Object.defineProperty(exports, "Title3", { enumerable: true, get: function () { return Variants_1.Title3; } });
|
|
24
|
+
Object.defineProperty(exports, "LargeTitle", { enumerable: true, get: function () { return Variants_1.LargeTitle; } });
|
|
25
|
+
Object.defineProperty(exports, "Display", { enumerable: true, get: function () { return Variants_1.Display; } });
|
|
142
26
|
/* deprecated */
|
|
143
|
-
const Text_types_2 = require(
|
|
144
|
-
Object.defineProperty(exports,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
});
|
|
150
|
-
const Text_2 = require('./deprecated/Text');
|
|
151
|
-
Object.defineProperty(exports, 'Text', {
|
|
152
|
-
enumerable: true,
|
|
153
|
-
get: function () {
|
|
154
|
-
return Text_2.Text;
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
//# sourceMappingURL=index.js.map
|
|
27
|
+
const Text_types_2 = require("./deprecated/Text.types");
|
|
28
|
+
Object.defineProperty(exports, "textName", { enumerable: true, get: function () { return Text_types_2.textName; } });
|
|
29
|
+
const Text_2 = require("./deprecated/Text");
|
|
30
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_2.Text; } });
|
|
31
|
+
//# sourceMappingURL=index.js.map
|