@fluentui-react-native/tester 0.66.1 → 0.67.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/CHANGELOG.json +22 -1
- package/CHANGELOG.md +11 -2
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js +6 -56
- package/lib/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.d.ts.map +1 -1
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js +6 -56
- package/lib-commonjs/FluentTester/TestComponents/Notification/NotificationTest.js.map +1 -1
- package/package.json +2 -1
- package/src/FluentTester/TestComponents/Notification/NotificationTest.tsx +21 -77
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Tue, 21 Jun 2022
|
|
5
|
+
"date": "Tue, 21 Jun 2022 23:38:47 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.67.0",
|
|
7
|
+
"version": "0.67.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "joannaquu@gmail.com",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "6426ed850d4667d8cefdd7140017959dca5642fe",
|
|
14
|
+
"comment": "added notification component"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/notification to v0.1.0",
|
|
20
|
+
"commit": "6426ed850d4667d8cefdd7140017959dca5642fe"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Tue, 21 Jun 2022 21:43:45 GMT",
|
|
6
27
|
"tag": "@fluentui-react-native/tester_v0.66.1",
|
|
7
28
|
"version": "0.66.1",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue, 21 Jun 2022
|
|
3
|
+
This log was last generated on Tue, 21 Jun 2022 23:38:47 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.67.0
|
|
8
|
+
|
|
9
|
+
Tue, 21 Jun 2022 23:38:47 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- added notification component (joannaquu@gmail.com)
|
|
14
|
+
- Bump @fluentui-react-native/notification to v0.1.0
|
|
15
|
+
|
|
7
16
|
## 0.66.1
|
|
8
17
|
|
|
9
|
-
Tue, 21 Jun 2022 21:43:
|
|
18
|
+
Tue, 21 Jun 2022 21:43:45 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuD/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAYpC,CAAC"}
|
|
@@ -1,67 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Notification } from '@fluentui-react-native/notification';
|
|
3
3
|
import { Test } from '../Test';
|
|
4
|
-
var NotificationVariants = ['primary', 'neutral', 'danger', 'warning'];
|
|
5
|
-
var Notification = function (props) {
|
|
6
|
-
var variant = props.variant;
|
|
7
|
-
var startText = props.startText;
|
|
8
|
-
var endText = props.endText;
|
|
9
|
-
var containerBackgroundColor = 'skyblue';
|
|
10
|
-
var foregroundColor = 'black';
|
|
11
|
-
switch (variant) {
|
|
12
|
-
case 'primary':
|
|
13
|
-
containerBackgroundColor = 'skyblue';
|
|
14
|
-
break;
|
|
15
|
-
case 'neutral':
|
|
16
|
-
containerBackgroundColor = 'lightgrey';
|
|
17
|
-
break;
|
|
18
|
-
case 'danger':
|
|
19
|
-
containerBackgroundColor = 'pink';
|
|
20
|
-
foregroundColor = 'maroon';
|
|
21
|
-
break;
|
|
22
|
-
case 'warning':
|
|
23
|
-
containerBackgroundColor = 'lightyellow';
|
|
24
|
-
foregroundColor = 'brown';
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
var styles = StyleSheet.create({
|
|
28
|
-
container: {
|
|
29
|
-
borderRadius: 12,
|
|
30
|
-
backgroundColor: containerBackgroundColor,
|
|
31
|
-
flex: 1,
|
|
32
|
-
flexDirection: 'row',
|
|
33
|
-
justifyContent: 'space-between',
|
|
34
|
-
alignItems: 'center',
|
|
35
|
-
padding: 16,
|
|
36
|
-
},
|
|
37
|
-
start: {
|
|
38
|
-
fontSize: 16,
|
|
39
|
-
color: foregroundColor,
|
|
40
|
-
flex: 1,
|
|
41
|
-
flexGrow: 1,
|
|
42
|
-
},
|
|
43
|
-
end: {
|
|
44
|
-
fontSize: 16,
|
|
45
|
-
fontWeight: '500',
|
|
46
|
-
color: foregroundColor,
|
|
47
|
-
marginLeft: 34,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
return (React.createElement(View, { style: styles.container },
|
|
51
|
-
React.createElement(Text, { style: styles.start }, startText),
|
|
52
|
-
React.createElement(Text, { style: styles.end }, endText)));
|
|
53
|
-
};
|
|
54
4
|
var PrimaryTest = function () {
|
|
55
|
-
return React.createElement(Notification, { variant: 'primary',
|
|
5
|
+
return (React.createElement(Notification, { variant: 'primary', endText: "Undo" }, "Mail Archived"));
|
|
56
6
|
};
|
|
57
7
|
var NeutralTest = function () {
|
|
58
|
-
return React.createElement(Notification, { variant: 'neutral',
|
|
8
|
+
return (React.createElement(Notification, { variant: 'neutral', endText: "Sign in" }, "Some items require you to sign in to view them"));
|
|
59
9
|
};
|
|
60
10
|
var DangerTest = function () {
|
|
61
|
-
return React.createElement(Notification, { variant: 'danger',
|
|
11
|
+
return (React.createElement(Notification, { variant: 'danger', endText: "Retry" }, "There was a problem, and your recent changes may not have saved"));
|
|
62
12
|
};
|
|
63
13
|
var WarningTest = function () {
|
|
64
|
-
return React.createElement(Notification, { variant: 'warning',
|
|
14
|
+
return (React.createElement(Notification, { variant: 'warning', endText: "X" }, "Read Only"));
|
|
65
15
|
};
|
|
66
16
|
var notificationSections = [
|
|
67
17
|
{
|
|
@@ -85,7 +35,7 @@ export var NotificationTest = function () {
|
|
|
85
35
|
var status = {
|
|
86
36
|
win32Status: 'Backlog',
|
|
87
37
|
uwpStatus: 'Backlog',
|
|
88
|
-
iosStatus: '
|
|
38
|
+
iosStatus: 'Experimental',
|
|
89
39
|
macosStatus: 'Backlog',
|
|
90
40
|
androidStatus: 'Backlog',
|
|
91
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,IAAI,EAA+B,MAAM,SAAS,CAAC;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,YAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,oBAEjC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,YAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,SAAS,qDAEpC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,UAAU,GAA4B;IAC1C,OAAO,CACL,oBAAC,YAAY,IAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAC,OAAO,sEAEjC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,YAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,GAAG,gBAE9B,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,oBAAoB,GAAkB;IAC1C;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;IACD;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;KACtB;IACD;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAA4B;IACvD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GAAG,gCAAgC,CAAC;IAErD,OAAO,oBAAC,IAAI,IAAC,IAAI,EAAC,mBAAmB,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAS,CAAC;AAC1H,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTest.d.ts","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuD/B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAYpC,CAAC"}
|
|
@@ -3,69 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NotificationTest = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
var
|
|
6
|
+
var notification_1 = require("@fluentui-react-native/notification");
|
|
7
7
|
var Test_1 = require("../Test");
|
|
8
|
-
var NotificationVariants = ['primary', 'neutral', 'danger', 'warning'];
|
|
9
|
-
var Notification = function (props) {
|
|
10
|
-
var variant = props.variant;
|
|
11
|
-
var startText = props.startText;
|
|
12
|
-
var endText = props.endText;
|
|
13
|
-
var containerBackgroundColor = 'skyblue';
|
|
14
|
-
var foregroundColor = 'black';
|
|
15
|
-
switch (variant) {
|
|
16
|
-
case 'primary':
|
|
17
|
-
containerBackgroundColor = 'skyblue';
|
|
18
|
-
break;
|
|
19
|
-
case 'neutral':
|
|
20
|
-
containerBackgroundColor = 'lightgrey';
|
|
21
|
-
break;
|
|
22
|
-
case 'danger':
|
|
23
|
-
containerBackgroundColor = 'pink';
|
|
24
|
-
foregroundColor = 'maroon';
|
|
25
|
-
break;
|
|
26
|
-
case 'warning':
|
|
27
|
-
containerBackgroundColor = 'lightyellow';
|
|
28
|
-
foregroundColor = 'brown';
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
var styles = react_native_1.StyleSheet.create({
|
|
32
|
-
container: {
|
|
33
|
-
borderRadius: 12,
|
|
34
|
-
backgroundColor: containerBackgroundColor,
|
|
35
|
-
flex: 1,
|
|
36
|
-
flexDirection: 'row',
|
|
37
|
-
justifyContent: 'space-between',
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
padding: 16,
|
|
40
|
-
},
|
|
41
|
-
start: {
|
|
42
|
-
fontSize: 16,
|
|
43
|
-
color: foregroundColor,
|
|
44
|
-
flex: 1,
|
|
45
|
-
flexGrow: 1,
|
|
46
|
-
},
|
|
47
|
-
end: {
|
|
48
|
-
fontSize: 16,
|
|
49
|
-
fontWeight: '500',
|
|
50
|
-
color: foregroundColor,
|
|
51
|
-
marginLeft: 34,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
return (React.createElement(react_native_1.View, { style: styles.container },
|
|
55
|
-
React.createElement(react_native_1.Text, { style: styles.start }, startText),
|
|
56
|
-
React.createElement(react_native_1.Text, { style: styles.end }, endText)));
|
|
57
|
-
};
|
|
58
8
|
var PrimaryTest = function () {
|
|
59
|
-
return React.createElement(Notification, { variant: 'primary',
|
|
9
|
+
return (React.createElement(notification_1.Notification, { variant: 'primary', endText: "Undo" }, "Mail Archived"));
|
|
60
10
|
};
|
|
61
11
|
var NeutralTest = function () {
|
|
62
|
-
return React.createElement(Notification, { variant: 'neutral',
|
|
12
|
+
return (React.createElement(notification_1.Notification, { variant: 'neutral', endText: "Sign in" }, "Some items require you to sign in to view them"));
|
|
63
13
|
};
|
|
64
14
|
var DangerTest = function () {
|
|
65
|
-
return React.createElement(Notification, { variant: 'danger',
|
|
15
|
+
return (React.createElement(notification_1.Notification, { variant: 'danger', endText: "Retry" }, "There was a problem, and your recent changes may not have saved"));
|
|
66
16
|
};
|
|
67
17
|
var WarningTest = function () {
|
|
68
|
-
return React.createElement(Notification, { variant: 'warning',
|
|
18
|
+
return (React.createElement(notification_1.Notification, { variant: 'warning', endText: "X" }, "Read Only"));
|
|
69
19
|
};
|
|
70
20
|
var notificationSections = [
|
|
71
21
|
{
|
|
@@ -89,7 +39,7 @@ var NotificationTest = function () {
|
|
|
89
39
|
var status = {
|
|
90
40
|
win32Status: 'Backlog',
|
|
91
41
|
uwpStatus: 'Backlog',
|
|
92
|
-
iosStatus: '
|
|
42
|
+
iosStatus: 'Experimental',
|
|
93
43
|
macosStatus: 'Backlog',
|
|
94
44
|
androidStatus: 'Backlog',
|
|
95
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"NotificationTest.js","sourceRoot":"","sources":["../../../../src/FluentTester/TestComponents/Notification/NotificationTest.tsx"],"names":[],"mappings":";;;;AAAA,wDAA+B;AAC/B,oEAAmE;AACnE,gCAA4D;AAE5D,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,oBAEjC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,SAAS,qDAEpC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,UAAU,GAA4B;IAC1C,OAAO,CACL,oBAAC,2BAAY,IAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAC,OAAO,sEAEjC,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,WAAW,GAA4B;IAC3C,OAAO,CACL,oBAAC,2BAAY,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAC,GAAG,gBAE9B,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,oBAAoB,GAAkB;IAC1C;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;IACD;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;KACtB;IACD;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;CACF,CAAC;AAEK,IAAM,gBAAgB,GAA4B;IACvD,IAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,SAAS;QACtB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,cAAc;QACzB,WAAW,EAAE,SAAS;QACtB,aAAa,EAAE,SAAS;KACzB,CAAC;IAEF,IAAM,WAAW,GAAG,gCAAgC,CAAC;IAErD,OAAO,oBAAC,WAAI,IAAC,IAAI,EAAC,mBAAmB,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,GAAS,CAAC;AAC1H,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.0",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@fluentui-react-native/icon": "0.12.1",
|
|
47
47
|
"@fluentui-react-native/interactive-hooks": ">=0.16.3 <1.0.0",
|
|
48
48
|
"@fluentui-react-native/menu": ">=0.15.4 <1.0.0",
|
|
49
|
+
"@fluentui-react-native/notification": "0.1.0",
|
|
49
50
|
"@fluentui-react-native/stack": ">=0.6.29 <1.0.0",
|
|
50
51
|
"@fluentui-react-native/theme": ">=0.6.11 <1.0.0",
|
|
51
52
|
"@fluentui-react-native/theme-types": ">=0.17.0 <1.0.0",
|
|
@@ -1,93 +1,37 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Notification } from '@fluentui-react-native/notification';
|
|
3
3
|
import { Test, TestSection, PlatformStatus } from '../Test';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
type NotificationVariant = typeof NotificationVariants[number];
|
|
7
|
-
|
|
8
|
-
interface NotificationProps {
|
|
9
|
-
/**
|
|
10
|
-
* Notification variants: 'primary' | 'neutral' |'danger' | 'warning'
|
|
11
|
-
*/
|
|
12
|
-
variant: NotificationVariant;
|
|
13
|
-
startText: string;
|
|
14
|
-
endText: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const Notification = (props: NotificationProps) => {
|
|
18
|
-
const variant = props.variant;
|
|
19
|
-
const startText = props.startText;
|
|
20
|
-
const endText = props.endText;
|
|
21
|
-
|
|
22
|
-
let containerBackgroundColor = 'skyblue';
|
|
23
|
-
let foregroundColor = 'black';
|
|
24
|
-
|
|
25
|
-
switch (variant) {
|
|
26
|
-
case 'primary':
|
|
27
|
-
containerBackgroundColor = 'skyblue';
|
|
28
|
-
break;
|
|
29
|
-
case 'neutral':
|
|
30
|
-
containerBackgroundColor = 'lightgrey';
|
|
31
|
-
break;
|
|
32
|
-
case 'danger':
|
|
33
|
-
containerBackgroundColor = 'pink';
|
|
34
|
-
foregroundColor = 'maroon';
|
|
35
|
-
break;
|
|
36
|
-
case 'warning':
|
|
37
|
-
containerBackgroundColor = 'lightyellow';
|
|
38
|
-
foregroundColor = 'brown';
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const styles = StyleSheet.create({
|
|
43
|
-
container: {
|
|
44
|
-
borderRadius: 12,
|
|
45
|
-
backgroundColor: containerBackgroundColor,
|
|
46
|
-
|
|
47
|
-
flex: 1,
|
|
48
|
-
flexDirection: 'row',
|
|
49
|
-
justifyContent: 'space-between',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
padding: 16,
|
|
52
|
-
},
|
|
53
|
-
start: {
|
|
54
|
-
fontSize: 16,
|
|
55
|
-
color: foregroundColor,
|
|
56
|
-
|
|
57
|
-
flex: 1,
|
|
58
|
-
flexGrow: 1,
|
|
59
|
-
},
|
|
60
|
-
end: {
|
|
61
|
-
fontSize: 16,
|
|
62
|
-
fontWeight: '500',
|
|
63
|
-
color: foregroundColor,
|
|
64
|
-
|
|
65
|
-
marginLeft: 34,
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
|
|
5
|
+
const PrimaryTest: React.FunctionComponent = () => {
|
|
69
6
|
return (
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</View>
|
|
7
|
+
<Notification variant={'primary'} endText="Undo">
|
|
8
|
+
Mail Archived
|
|
9
|
+
</Notification>
|
|
74
10
|
);
|
|
75
11
|
};
|
|
76
12
|
|
|
77
|
-
const PrimaryTest: React.FunctionComponent = () => {
|
|
78
|
-
return <Notification variant={'primary'} startText="Mail Archived" endText="Undo" />;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
13
|
const NeutralTest: React.FunctionComponent = () => {
|
|
82
|
-
return
|
|
14
|
+
return (
|
|
15
|
+
<Notification variant={'neutral'} endText="Sign in">
|
|
16
|
+
Some items require you to sign in to view them
|
|
17
|
+
</Notification>
|
|
18
|
+
);
|
|
83
19
|
};
|
|
84
20
|
|
|
85
21
|
const DangerTest: React.FunctionComponent = () => {
|
|
86
|
-
return
|
|
22
|
+
return (
|
|
23
|
+
<Notification variant={'danger'} endText="Retry">
|
|
24
|
+
There was a problem, and your recent changes may not have saved
|
|
25
|
+
</Notification>
|
|
26
|
+
);
|
|
87
27
|
};
|
|
88
28
|
|
|
89
29
|
const WarningTest: React.FunctionComponent = () => {
|
|
90
|
-
return
|
|
30
|
+
return (
|
|
31
|
+
<Notification variant={'warning'} endText="X">
|
|
32
|
+
Read Only
|
|
33
|
+
</Notification>
|
|
34
|
+
);
|
|
91
35
|
};
|
|
92
36
|
|
|
93
37
|
const notificationSections: TestSection[] = [
|
|
@@ -113,7 +57,7 @@ export const NotificationTest: React.FunctionComponent = () => {
|
|
|
113
57
|
const status: PlatformStatus = {
|
|
114
58
|
win32Status: 'Backlog',
|
|
115
59
|
uwpStatus: 'Backlog',
|
|
116
|
-
iosStatus: '
|
|
60
|
+
iosStatus: 'Experimental',
|
|
117
61
|
macosStatus: 'Backlog',
|
|
118
62
|
androidStatus: 'Backlog',
|
|
119
63
|
};
|