@fluentui/react-message-bar 9.0.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 +198 -0
- package/CHANGELOG.md +70 -0
- package/LICENSE +15 -0
- package/README.md +5 -0
- package/dist/index.d.ts +271 -0
- package/lib/MessageBar.js +1 -0
- package/lib/MessageBar.js.map +1 -0
- package/lib/MessageBarActions.js +1 -0
- package/lib/MessageBarActions.js.map +1 -0
- package/lib/MessageBarBody.js +1 -0
- package/lib/MessageBarBody.js.map +1 -0
- package/lib/MessageBarGroup.js +1 -0
- package/lib/MessageBarGroup.js.map +1 -0
- package/lib/MessageBarTitle.js +1 -0
- package/lib/MessageBarTitle.js.map +1 -0
- package/lib/components/MessageBar/MessageBar.js +15 -0
- package/lib/components/MessageBar/MessageBar.js.map +1 -0
- package/lib/components/MessageBar/MessageBar.types.js +1 -0
- package/lib/components/MessageBar/MessageBar.types.js.map +1 -0
- package/lib/components/MessageBar/getIntentIcon.js +16 -0
- package/lib/components/MessageBar/getIntentIcon.js.map +1 -0
- package/lib/components/MessageBar/index.js +5 -0
- package/lib/components/MessageBar/index.js.map +1 -0
- package/lib/components/MessageBar/renderMessageBar.js +17 -0
- package/lib/components/MessageBar/renderMessageBar.js.map +1 -0
- package/lib/components/MessageBar/useMessageBar.js +72 -0
- package/lib/components/MessageBar/useMessageBar.js.map +1 -0
- package/lib/components/MessageBar/useMessageBarContextValues.js +18 -0
- package/lib/components/MessageBar/useMessageBarContextValues.js.map +1 -0
- package/lib/components/MessageBar/useMessageBarReflow.js +80 -0
- package/lib/components/MessageBar/useMessageBarReflow.js.map +1 -0
- package/lib/components/MessageBar/useMessageBarStyles.styles.js +87 -0
- package/lib/components/MessageBar/useMessageBarStyles.styles.js.map +1 -0
- package/lib/components/MessageBarActions/MessageBarActions.js +15 -0
- package/lib/components/MessageBarActions/MessageBarActions.js.map +1 -0
- package/lib/components/MessageBarActions/MessageBarActions.types.js +1 -0
- package/lib/components/MessageBarActions/MessageBarActions.types.js.map +1 -0
- package/lib/components/MessageBarActions/index.js +5 -0
- package/lib/components/MessageBarActions/index.js.map +1 -0
- package/lib/components/MessageBarActions/renderMessageBarActions.js +24 -0
- package/lib/components/MessageBarActions/renderMessageBarActions.js.map +1 -0
- package/lib/components/MessageBarActions/useMessageBarActions.js +31 -0
- package/lib/components/MessageBarActions/useMessageBarActions.js.map +1 -0
- package/lib/components/MessageBarActions/useMessageBarActionsContextValues.js +9 -0
- package/lib/components/MessageBarActions/useMessageBarActionsContextValues.js.map +1 -0
- package/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.js +36 -0
- package/lib/components/MessageBarActions/useMessageBarActionsStyles.styles.js.map +1 -0
- package/lib/components/MessageBarBody/MessageBarBody.js +14 -0
- package/lib/components/MessageBarBody/MessageBarBody.js.map +1 -0
- package/lib/components/MessageBarBody/MessageBarBody.types.js +1 -0
- package/lib/components/MessageBarBody/MessageBarBody.types.js.map +1 -0
- package/lib/components/MessageBarBody/index.js +5 -0
- package/lib/components/MessageBarBody/index.js.map +1 -0
- package/lib/components/MessageBarBody/renderMessageBarBody.js +8 -0
- package/lib/components/MessageBarBody/renderMessageBarBody.js.map +1 -0
- package/lib/components/MessageBarBody/useMessageBarBody.js +25 -0
- package/lib/components/MessageBarBody/useMessageBarBody.js.map +1 -0
- package/lib/components/MessageBarBody/useMessageBarBodyStyles.styles.js +15 -0
- package/lib/components/MessageBarBody/useMessageBarBodyStyles.styles.js.map +1 -0
- package/lib/components/MessageBarGroup/MessageBarGroup.js +14 -0
- package/lib/components/MessageBarGroup/MessageBarGroup.js.map +1 -0
- package/lib/components/MessageBarGroup/MessageBarGroup.types.js +1 -0
- package/lib/components/MessageBarGroup/MessageBarGroup.types.js.map +1 -0
- package/lib/components/MessageBarGroup/MessageBarTransition.js +45 -0
- package/lib/components/MessageBarGroup/MessageBarTransition.js.map +1 -0
- package/lib/components/MessageBarGroup/index.js +5 -0
- package/lib/components/MessageBarGroup/index.js.map +1 -0
- package/lib/components/MessageBarGroup/renderMessageBarGroup.js +20 -0
- package/lib/components/MessageBarGroup/renderMessageBarGroup.js.map +1 -0
- package/lib/components/MessageBarGroup/useMessageBarGroup.js +37 -0
- package/lib/components/MessageBarGroup/useMessageBarGroup.js.map +1 -0
- package/lib/components/MessageBarGroup/useMessageBarGroupStyles.styles.js +34 -0
- package/lib/components/MessageBarGroup/useMessageBarGroupStyles.styles.js.map +1 -0
- package/lib/components/MessageBarTitle/MessageBarTitle.js +14 -0
- package/lib/components/MessageBarTitle/MessageBarTitle.js.map +1 -0
- package/lib/components/MessageBarTitle/MessageBarTitle.types.js +1 -0
- package/lib/components/MessageBarTitle/MessageBarTitle.types.js.map +1 -0
- package/lib/components/MessageBarTitle/index.js +5 -0
- package/lib/components/MessageBarTitle/index.js.map +1 -0
- package/lib/components/MessageBarTitle/renderMessageBarTitle.js +8 -0
- package/lib/components/MessageBarTitle/renderMessageBarTitle.js.map +1 -0
- package/lib/components/MessageBarTitle/useMessageBarTitle.js +26 -0
- package/lib/components/MessageBarTitle/useMessageBarTitle.js.map +1 -0
- package/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.js +18 -0
- package/lib/components/MessageBarTitle/useMessageBarTitleStyles.styles.js.map +1 -0
- package/lib/contexts/messageBarContext.js +13 -0
- package/lib/contexts/messageBarContext.js.map +1 -0
- package/lib/contexts/messageBarTransitionContext.js +18 -0
- package/lib/contexts/messageBarTransitionContext.js.map +1 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/MessageBar.js +6 -0
- package/lib-commonjs/MessageBar.js.map +1 -0
- package/lib-commonjs/MessageBarActions.js +6 -0
- package/lib-commonjs/MessageBarActions.js.map +1 -0
- package/lib-commonjs/MessageBarBody.js +6 -0
- package/lib-commonjs/MessageBarBody.js.map +1 -0
- package/lib-commonjs/MessageBarGroup.js +6 -0
- package/lib-commonjs/MessageBarGroup.js.map +1 -0
- package/lib-commonjs/MessageBarTitle.js +6 -0
- package/lib-commonjs/MessageBarTitle.js.map +1 -0
- package/lib-commonjs/components/MessageBar/MessageBar.js +24 -0
- package/lib-commonjs/components/MessageBar/MessageBar.js.map +1 -0
- package/lib-commonjs/components/MessageBar/MessageBar.types.js +4 -0
- package/lib-commonjs/components/MessageBar/MessageBar.types.js.map +1 -0
- package/lib-commonjs/components/MessageBar/getIntentIcon.js +27 -0
- package/lib-commonjs/components/MessageBar/getIntentIcon.js.map +1 -0
- package/lib-commonjs/components/MessageBar/index.js +10 -0
- package/lib-commonjs/components/MessageBar/index.js.map +1 -0
- package/lib-commonjs/components/MessageBar/renderMessageBar.js +25 -0
- package/lib-commonjs/components/MessageBar/renderMessageBar.js.map +1 -0
- package/lib-commonjs/components/MessageBar/useMessageBar.js +75 -0
- package/lib-commonjs/components/MessageBar/useMessageBar.js.map +1 -0
- package/lib-commonjs/components/MessageBar/useMessageBarContextValues.js +29 -0
- package/lib-commonjs/components/MessageBar/useMessageBarContextValues.js.map +1 -0
- package/lib-commonjs/components/MessageBar/useMessageBarReflow.js +91 -0
- package/lib-commonjs/components/MessageBar/useMessageBarReflow.js.map +1 -0
- package/lib-commonjs/components/MessageBar/useMessageBarStyles.styles.js +174 -0
- package/lib-commonjs/components/MessageBar/useMessageBarStyles.styles.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/MessageBarActions.js +24 -0
- package/lib-commonjs/components/MessageBarActions/MessageBarActions.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/MessageBarActions.types.js +4 -0
- package/lib-commonjs/components/MessageBarActions/MessageBarActions.types.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/index.js +10 -0
- package/lib-commonjs/components/MessageBarActions/index.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/renderMessageBarActions.js +32 -0
- package/lib-commonjs/components/MessageBarActions/renderMessageBarActions.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActions.js +34 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActions.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActionsContextValues.js +20 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActionsContextValues.js.map +1 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActionsStyles.styles.js +68 -0
- package/lib-commonjs/components/MessageBarActions/useMessageBarActionsStyles.styles.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/MessageBarBody.js +23 -0
- package/lib-commonjs/components/MessageBarBody/MessageBarBody.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/MessageBarBody.types.js +4 -0
- package/lib-commonjs/components/MessageBarBody/MessageBarBody.types.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/index.js +10 -0
- package/lib-commonjs/components/MessageBarBody/index.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/renderMessageBarBody.js +16 -0
- package/lib-commonjs/components/MessageBarBody/renderMessageBarBody.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/useMessageBarBody.js +28 -0
- package/lib-commonjs/components/MessageBarBody/useMessageBarBody.js.map +1 -0
- package/lib-commonjs/components/MessageBarBody/useMessageBarBodyStyles.styles.js +31 -0
- package/lib-commonjs/components/MessageBarBody/useMessageBarBodyStyles.styles.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarGroup.js +23 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarGroup.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarGroup.types.js +6 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarGroup.types.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarTransition.js +53 -0
- package/lib-commonjs/components/MessageBarGroup/MessageBarTransition.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/index.js +10 -0
- package/lib-commonjs/components/MessageBarGroup/index.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/renderMessageBarGroup.js +28 -0
- package/lib-commonjs/components/MessageBarGroup/renderMessageBarGroup.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/useMessageBarGroup.js +40 -0
- package/lib-commonjs/components/MessageBarGroup/useMessageBarGroup.js.map +1 -0
- package/lib-commonjs/components/MessageBarGroup/useMessageBarGroupStyles.styles.js +54 -0
- package/lib-commonjs/components/MessageBarGroup/useMessageBarGroupStyles.styles.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/MessageBarTitle.js +23 -0
- package/lib-commonjs/components/MessageBarTitle/MessageBarTitle.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/MessageBarTitle.types.js +4 -0
- package/lib-commonjs/components/MessageBarTitle/MessageBarTitle.types.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/index.js +10 -0
- package/lib-commonjs/components/MessageBarTitle/index.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/renderMessageBarTitle.js +16 -0
- package/lib-commonjs/components/MessageBarTitle/renderMessageBarTitle.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/useMessageBarTitle.js +29 -0
- package/lib-commonjs/components/MessageBarTitle/useMessageBarTitle.js.map +1 -0
- package/lib-commonjs/components/MessageBarTitle/useMessageBarTitleStyles.styles.js +33 -0
- package/lib-commonjs/components/MessageBarTitle/useMessageBarTitleStyles.styles.js.map +1 -0
- package/lib-commonjs/contexts/messageBarContext.js +35 -0
- package/lib-commonjs/contexts/messageBarContext.js.map +1 -0
- package/lib-commonjs/contexts/messageBarTransitionContext.js +33 -0
- package/lib-commonjs/contexts/messageBarTransitionContext.js.map +1 -0
- package/lib-commonjs/index.js +99 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +64 -0
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui/react-message-bar",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Thu, 12 Oct 2023 14:52:34 GMT",
|
|
6
|
+
"tag": "@fluentui/react-message-bar_v9.0.0",
|
|
7
|
+
"version": "9.0.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "lingfangao@hotmail.com",
|
|
12
|
+
"package": "@fluentui/react-message-bar",
|
|
13
|
+
"commit": "40e6a376db3c2f11ba131c046c4241bf52e6d3a3",
|
|
14
|
+
"comment": "feat: Release MessageBar as stable"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-message-bar",
|
|
19
|
+
"comment": "Bump @fluentui/react-button to v9.3.49",
|
|
20
|
+
"commit": "1a52f5b27e2f71f7257c470bc9c7552ea5e07867"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-message-bar",
|
|
25
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.17",
|
|
26
|
+
"commit": "1a52f5b27e2f71f7257c470bc9c7552ea5e07867"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Wed, 11 Oct 2023 13:54:24 GMT",
|
|
33
|
+
"tag": "@fluentui/react-message-bar-preview_v0.2.1",
|
|
34
|
+
"version": "0.2.1",
|
|
35
|
+
"comments": {
|
|
36
|
+
"patch": [
|
|
37
|
+
{
|
|
38
|
+
"author": "lingfan.gao@microsoft.com",
|
|
39
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
40
|
+
"commit": "5a1cee209858ce4e5c1c304755ff74bba0148193",
|
|
41
|
+
"comment": "fix: Align icons with text content"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "lingfangao@hotmail.com",
|
|
45
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
46
|
+
"commit": "aed130bfbf4ac88947a697b723387fd8d8382686",
|
|
47
|
+
"comment": "fix: MessageBarActions should not overflow into grid padding"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
52
|
+
"comment": "Bump @fluentui/react-button to v9.3.48",
|
|
53
|
+
"commit": "b4466a0b9d3568e8e1ee1d814db5c8449dfd65b8"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"author": "beachball",
|
|
57
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
58
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.16",
|
|
59
|
+
"commit": "b4466a0b9d3568e8e1ee1d814db5c8449dfd65b8"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
64
|
+
"comment": "Bump @fluentui/react-utilities to v9.15.0",
|
|
65
|
+
"commit": "b4466a0b9d3568e8e1ee1d814db5c8449dfd65b8"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"date": "Mon, 09 Oct 2023 20:45:42 GMT",
|
|
72
|
+
"tag": "@fluentui/react-message-bar-preview_v0.2.0",
|
|
73
|
+
"version": "0.2.0",
|
|
74
|
+
"comments": {
|
|
75
|
+
"minor": [
|
|
76
|
+
{
|
|
77
|
+
"author": "lingfangao@hotmail.com",
|
|
78
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
79
|
+
"commit": "60a911e66db784521a35c1e1ac0362a3f2d8169f",
|
|
80
|
+
"comment": "feat: Add shape prop to MessageBar"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
85
|
+
"comment": "Bump @fluentui/react-button to v9.3.47",
|
|
86
|
+
"commit": "d2196ea1ca001fbc22f38fcb258016f1df6c87e4"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
91
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.15",
|
|
92
|
+
"commit": "d2196ea1ca001fbc22f38fcb258016f1df6c87e4"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
97
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.10.0",
|
|
98
|
+
"commit": "d2196ea1ca001fbc22f38fcb258016f1df6c87e4"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
103
|
+
"comment": "Bump @fluentui/react-utilities to v9.14.2",
|
|
104
|
+
"commit": "d2196ea1ca001fbc22f38fcb258016f1df6c87e4"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"patch": [
|
|
108
|
+
{
|
|
109
|
+
"author": "lingfangao@hotmail.com",
|
|
110
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
111
|
+
"commit": "dbc18f02facdc420ec4baf7c125ddab22271facf",
|
|
112
|
+
"comment": "feat: Add custom style hook to MessageBar."
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"none": [
|
|
116
|
+
{
|
|
117
|
+
"author": "olfedias@microsoft.com",
|
|
118
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
119
|
+
"commit": "93d4ee6dd801b672ade6ce41345cfbd9010af01a",
|
|
120
|
+
"comment": "chore: fix typos"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"date": "Thu, 05 Oct 2023 15:25:31 GMT",
|
|
127
|
+
"tag": "@fluentui/react-message-bar-preview_v0.1.1",
|
|
128
|
+
"version": "0.1.1",
|
|
129
|
+
"comments": {
|
|
130
|
+
"patch": [
|
|
131
|
+
{
|
|
132
|
+
"author": "bernardo.sunderhus@gmail.com",
|
|
133
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
134
|
+
"commit": "86dd76990e3da5af1f2b6b04a3aec46141d5a653",
|
|
135
|
+
"comment": "chore: migrate from getNativeElementProps to getIntrinsicElementProps"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"author": "lingfangao@hotmail.com",
|
|
139
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
140
|
+
"commit": "f61b2b14b6daf39bb3c2da1909a4cfce94c73845",
|
|
141
|
+
"comment": "fix: screenreader narration improvements"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"author": "beachball",
|
|
145
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
146
|
+
"comment": "Bump @fluentui/react-button to v9.3.46",
|
|
147
|
+
"commit": "690590449dc3d65cd40b2b06a990fd920180919d"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"author": "beachball",
|
|
151
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
152
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.14",
|
|
153
|
+
"commit": "690590449dc3d65cd40b2b06a990fd920180919d"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"author": "beachball",
|
|
157
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
158
|
+
"comment": "Bump @fluentui/react-utilities to v9.14.1",
|
|
159
|
+
"commit": "690590449dc3d65cd40b2b06a990fd920180919d"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"date": "Wed, 04 Oct 2023 08:45:46 GMT",
|
|
166
|
+
"tag": "@fluentui/react-message-bar-preview_v0.1.0",
|
|
167
|
+
"version": "0.1.0",
|
|
168
|
+
"comments": {
|
|
169
|
+
"minor": [
|
|
170
|
+
{
|
|
171
|
+
"author": "lingfangao@hotmail.com",
|
|
172
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
173
|
+
"commit": "b93332889af6fc14d25bcfe50ed0c56d988c10f8",
|
|
174
|
+
"comment": "feat: release preview package"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"author": "beachball",
|
|
178
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
179
|
+
"comment": "Bump @fluentui/react-button to v9.3.45",
|
|
180
|
+
"commit": "67b6cc6534e684ed32704dc6c0faee632bb840dc"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"author": "beachball",
|
|
184
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
185
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.13",
|
|
186
|
+
"commit": "67b6cc6534e684ed32704dc6c0faee632bb840dc"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"author": "beachball",
|
|
190
|
+
"package": "@fluentui/react-message-bar-preview",
|
|
191
|
+
"comment": "Bump @fluentui/react-utilities to v9.14.0",
|
|
192
|
+
"commit": "67b6cc6534e684ed32704dc6c0faee632bb840dc"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Change Log - @fluentui/react-message-bar
|
|
2
|
+
|
|
3
|
+
This log was last generated on Thu, 12 Oct 2023 14:52:34 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
<!-- Start content -->
|
|
6
|
+
|
|
7
|
+
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.0)
|
|
8
|
+
|
|
9
|
+
Thu, 12 Oct 2023 14:52:34 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.2.1..@fluentui/react-message-bar_v9.0.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- feat: Release MessageBar as stable ([PR #29502](https://github.com/microsoft/fluentui/pull/29502) by lingfangao@hotmail.com)
|
|
15
|
+
- Bump @fluentui/react-button to v9.3.49 ([PR #29488](https://github.com/microsoft/fluentui/pull/29488) by beachball)
|
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.17 ([PR #29488](https://github.com/microsoft/fluentui/pull/29488) by beachball)
|
|
17
|
+
|
|
18
|
+
## [0.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.2.1)
|
|
19
|
+
|
|
20
|
+
Wed, 11 Oct 2023 13:54:24 GMT
|
|
21
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.2.0..@fluentui/react-message-bar-preview_v0.2.1)
|
|
22
|
+
|
|
23
|
+
### Patches
|
|
24
|
+
|
|
25
|
+
- fix: Align icons with text content ([PR #29482](https://github.com/microsoft/fluentui/pull/29482) by lingfan.gao@microsoft.com)
|
|
26
|
+
- fix: MessageBarActions should not overflow into grid padding ([PR #29462](https://github.com/microsoft/fluentui/pull/29462) by lingfangao@hotmail.com)
|
|
27
|
+
- Bump @fluentui/react-button to v9.3.48 ([PR #29262](https://github.com/microsoft/fluentui/pull/29262) by beachball)
|
|
28
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.16 ([PR #29262](https://github.com/microsoft/fluentui/pull/29262) by beachball)
|
|
29
|
+
- Bump @fluentui/react-utilities to v9.15.0 ([PR #29262](https://github.com/microsoft/fluentui/pull/29262) by beachball)
|
|
30
|
+
|
|
31
|
+
## [0.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.2.0)
|
|
32
|
+
|
|
33
|
+
Mon, 09 Oct 2023 20:45:42 GMT
|
|
34
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.1.1..@fluentui/react-message-bar-preview_v0.2.0)
|
|
35
|
+
|
|
36
|
+
### Minor changes
|
|
37
|
+
|
|
38
|
+
- feat: Add shape prop to MessageBar ([PR #29426](https://github.com/microsoft/fluentui/pull/29426) by lingfangao@hotmail.com)
|
|
39
|
+
- Bump @fluentui/react-button to v9.3.47 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
|
|
40
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.15 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
|
|
41
|
+
- Bump @fluentui/react-shared-contexts to v9.10.0 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
|
|
42
|
+
- Bump @fluentui/react-utilities to v9.14.2 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
|
|
43
|
+
|
|
44
|
+
### Patches
|
|
45
|
+
|
|
46
|
+
- feat: Add custom style hook to MessageBar. ([PR #29431](https://github.com/microsoft/fluentui/pull/29431) by lingfangao@hotmail.com)
|
|
47
|
+
|
|
48
|
+
## [0.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.1.1)
|
|
49
|
+
|
|
50
|
+
Thu, 05 Oct 2023 15:25:31 GMT
|
|
51
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.1.0..@fluentui/react-message-bar-preview_v0.1.1)
|
|
52
|
+
|
|
53
|
+
### Patches
|
|
54
|
+
|
|
55
|
+
- chore: migrate from getNativeElementProps to getIntrinsicElementProps ([PR #29387](https://github.com/microsoft/fluentui/pull/29387) by bernardo.sunderhus@gmail.com)
|
|
56
|
+
- fix: screenreader narration improvements ([PR #29404](https://github.com/microsoft/fluentui/pull/29404) by lingfangao@hotmail.com)
|
|
57
|
+
- Bump @fluentui/react-button to v9.3.46 ([PR #29412](https://github.com/microsoft/fluentui/pull/29412) by beachball)
|
|
58
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.14 ([PR #29412](https://github.com/microsoft/fluentui/pull/29412) by beachball)
|
|
59
|
+
- Bump @fluentui/react-utilities to v9.14.1 ([PR #29412](https://github.com/microsoft/fluentui/pull/29412) by beachball)
|
|
60
|
+
|
|
61
|
+
## [0.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.1.0)
|
|
62
|
+
|
|
63
|
+
Wed, 04 Oct 2023 08:45:46 GMT
|
|
64
|
+
|
|
65
|
+
### Minor changes
|
|
66
|
+
|
|
67
|
+
- feat: release preview package ([PR #29377](https://github.com/microsoft/fluentui/pull/29377) by lingfangao@hotmail.com)
|
|
68
|
+
- Bump @fluentui/react-button to v9.3.45 ([commit](https://github.com/microsoft/fluentui/commit/67b6cc6534e684ed32704dc6c0faee632bb840dc) by beachball)
|
|
69
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.13 ([commit](https://github.com/microsoft/fluentui/commit/67b6cc6534e684ed32704dc6c0faee632bb840dc) by beachball)
|
|
70
|
+
- Bump @fluentui/react-utilities to v9.14.0 ([commit](https://github.com/microsoft/fluentui/commit/67b6cc6534e684ed32704dc6c0faee632bb840dc) by beachball)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@fluentui/react-message-bar-preview
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
|
+
|
|
15
|
+
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# @fluentui/react-message-bar
|
|
2
|
+
|
|
3
|
+
**React Message Bar components for [Fluent UI React](https://react.fluentui.dev/)**
|
|
4
|
+
|
|
5
|
+
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import type { ButtonContextValue } from '@fluentui/react-button';
|
|
4
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
5
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
|
6
|
+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
7
|
+
import * as React_2 from 'react';
|
|
8
|
+
import type { Slot } from '@fluentui/react-utilities';
|
|
9
|
+
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* MessageBar component
|
|
13
|
+
*/
|
|
14
|
+
export declare const MessageBar: ForwardRefComponent<MessageBarProps>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* MessageBarActions component
|
|
18
|
+
*/
|
|
19
|
+
export declare const MessageBarActions: ForwardRefComponent<MessageBarActionsProps>;
|
|
20
|
+
|
|
21
|
+
export declare const messageBarActionsClassNames: SlotClassNames<MessageBarActionsSlots>;
|
|
22
|
+
|
|
23
|
+
declare type MessageBarActionsContextValues = {
|
|
24
|
+
button: ButtonContextValue;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* MessageBarActions Props
|
|
29
|
+
*/
|
|
30
|
+
export declare type MessageBarActionsProps = ComponentProps<MessageBarActionsSlots>;
|
|
31
|
+
|
|
32
|
+
export declare type MessageBarActionsSlots = {
|
|
33
|
+
root: Slot<'div'>;
|
|
34
|
+
/**
|
|
35
|
+
* Generally the 'Dismiss' button for the MessageBar
|
|
36
|
+
*/
|
|
37
|
+
containerAction?: Slot<'div'>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* State used in rendering MessageBarActions
|
|
42
|
+
*/
|
|
43
|
+
export declare type MessageBarActionsState = ComponentState<MessageBarActionsSlots> & Pick<Required<MessageBarContextValue>, 'layout'>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* MessageBarBody component
|
|
47
|
+
*/
|
|
48
|
+
export declare const MessageBarBody: ForwardRefComponent<MessageBarBodyProps>;
|
|
49
|
+
|
|
50
|
+
export declare const messageBarBodyClassNames: SlotClassNames<MessageBarBodySlots>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* MessageBarBody Props
|
|
54
|
+
*/
|
|
55
|
+
export declare type MessageBarBodyProps = ComponentProps<MessageBarBodySlots>;
|
|
56
|
+
|
|
57
|
+
export declare type MessageBarBodySlots = {
|
|
58
|
+
root: Slot<'div'>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* State used in rendering MessageBarBody
|
|
63
|
+
*/
|
|
64
|
+
export declare type MessageBarBodyState = ComponentState<MessageBarBodySlots>;
|
|
65
|
+
|
|
66
|
+
export declare const messageBarClassNames: SlotClassNames<MessageBarSlots>;
|
|
67
|
+
|
|
68
|
+
export declare const MessageBarContextProvider: React_2.Provider<MessageBarContextValue | undefined>;
|
|
69
|
+
|
|
70
|
+
export declare type MessageBarContextValue = {
|
|
71
|
+
layout: 'multiline' | 'singleline' | 'auto';
|
|
72
|
+
actionsRef: React_2.MutableRefObject<HTMLDivElement | null>;
|
|
73
|
+
bodyRef: React_2.MutableRefObject<HTMLDivElement | null>;
|
|
74
|
+
titleId: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
declare type MessageBarContextValues = {
|
|
78
|
+
messageBar: MessageBarContextValue;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* MessageBarGroup component
|
|
83
|
+
*/
|
|
84
|
+
export declare const MessageBarGroup: ForwardRefComponent<MessageBarGroupProps>;
|
|
85
|
+
|
|
86
|
+
export declare const messageBarGroupClassNames: SlotClassNames<MessageBarGroupSlots>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* MessageBarGroup Props
|
|
90
|
+
*/
|
|
91
|
+
export declare type MessageBarGroupProps = ComponentProps<MessageBarGroupSlots> & {
|
|
92
|
+
children: React_2.ReactElement[] | React_2.ReactElement;
|
|
93
|
+
animate?: 'exit-only' | 'both';
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export declare type MessageBarGroupSlots = {
|
|
97
|
+
root: Slot<'div'>;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* State used in rendering MessageBarGroup
|
|
102
|
+
*/
|
|
103
|
+
export declare type MessageBarGroupState = ComponentState<MessageBarGroupSlots> & Pick<MessageBarGroupProps, 'animate'> & {
|
|
104
|
+
enterStyles: string;
|
|
105
|
+
exitStyles: string;
|
|
106
|
+
children: React_2.ReactElement[];
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export declare type MessageBarIntent = 'info' | 'success' | 'warning' | 'error';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* MessageBar Props
|
|
113
|
+
*/
|
|
114
|
+
export declare type MessageBarProps = ComponentProps<MessageBarSlots> & Pick<Partial<MessageBarContextValue>, 'layout'> & {
|
|
115
|
+
/**
|
|
116
|
+
* Default designs announcement presets
|
|
117
|
+
* @default info
|
|
118
|
+
*/
|
|
119
|
+
intent?: MessageBarIntent;
|
|
120
|
+
/**
|
|
121
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions
|
|
122
|
+
*/
|
|
123
|
+
politeness?: 'assertive' | 'polite';
|
|
124
|
+
/**
|
|
125
|
+
* Use squal for page level messages and rounded for component level messages
|
|
126
|
+
* @default rounded
|
|
127
|
+
*/
|
|
128
|
+
shape?: 'square' | 'rounded';
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export declare type MessageBarSlots = {
|
|
132
|
+
root: Slot<'div'>;
|
|
133
|
+
icon?: Slot<'div'>;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* State used in rendering MessageBar
|
|
138
|
+
*/
|
|
139
|
+
export declare type MessageBarState = ComponentState<MessageBarSlots> & Required<Pick<MessageBarProps, 'layout' | 'intent' | 'shape'>> & Pick<MessageBarContextValue, 'actionsRef' | 'bodyRef' | 'titleId'> & {
|
|
140
|
+
transitionClassName: string;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* MessageBarTitle component
|
|
145
|
+
*/
|
|
146
|
+
export declare const MessageBarTitle: ForwardRefComponent<MessageBarTitleProps>;
|
|
147
|
+
|
|
148
|
+
export declare const messageBarTitleClassNames: SlotClassNames<MessageBarTitleSlots>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* MessageBarTitle Props
|
|
152
|
+
*/
|
|
153
|
+
export declare type MessageBarTitleProps = ComponentProps<MessageBarTitleSlots>;
|
|
154
|
+
|
|
155
|
+
export declare type MessageBarTitleSlots = {
|
|
156
|
+
root: Slot<'span'>;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* State used in rendering MessageBarTitle
|
|
161
|
+
*/
|
|
162
|
+
export declare type MessageBarTitleState = ComponentState<MessageBarTitleSlots>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Render the final JSX of MessageBar
|
|
166
|
+
*/
|
|
167
|
+
export declare const renderMessageBar_unstable: (state: MessageBarState, contexts: MessageBarContextValues) => JSX.Element;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Render the final JSX of MessageBarActions
|
|
171
|
+
*/
|
|
172
|
+
export declare const renderMessageBarActions_unstable: (state: MessageBarActionsState, contexts: MessageBarActionsContextValues) => JSX.Element;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Render the final JSX of MessageBarBody
|
|
176
|
+
*/
|
|
177
|
+
export declare const renderMessageBarBody_unstable: (state: MessageBarBodyState) => JSX.Element;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Render the final JSX of MessageBarGroup
|
|
181
|
+
*/
|
|
182
|
+
export declare const renderMessageBarGroup_unstable: (state: MessageBarGroupState) => JSX.Element;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Render the final JSX of MessageBarTitle
|
|
186
|
+
*/
|
|
187
|
+
export declare const renderMessageBarTitle_unstable: (state: MessageBarTitleState) => JSX.Element;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Create the state required to render MessageBar.
|
|
191
|
+
*
|
|
192
|
+
* The returned state can be modified with hooks such as useMessageBarStyles_unstable,
|
|
193
|
+
* before being passed to renderMessageBar_unstable.
|
|
194
|
+
*
|
|
195
|
+
* @param props - props from this instance of MessageBar
|
|
196
|
+
* @param ref - reference to root HTMLElement of MessageBar
|
|
197
|
+
*/
|
|
198
|
+
export declare const useMessageBar_unstable: (props: MessageBarProps, ref: React_2.Ref<HTMLDivElement>) => MessageBarState;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Create the state required to render MessageBarActions.
|
|
202
|
+
*
|
|
203
|
+
* The returned state can be modified with hooks such as useMessageBarActionsStyles_unstable,
|
|
204
|
+
* before being passed to renderMessageBarActions_unstable.
|
|
205
|
+
*
|
|
206
|
+
* @param props - props from this instance of MessageBarActions
|
|
207
|
+
* @param ref - reference to root HTMLElement of MessageBarActions
|
|
208
|
+
*/
|
|
209
|
+
export declare const useMessageBarActions_unstable: (props: MessageBarActionsProps, ref: React_2.Ref<HTMLDivElement>) => MessageBarActionsState;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Apply styling to the MessageBarActions slots based on the state
|
|
213
|
+
*/
|
|
214
|
+
export declare const useMessageBarActionsStyles_unstable: (state: MessageBarActionsState) => MessageBarActionsState;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Create the state required to render MessageBarBody.
|
|
218
|
+
*
|
|
219
|
+
* The returned state can be modified with hooks such as useMessageBarBodyStyles_unstable,
|
|
220
|
+
* before being passed to renderMessageBarBody_unstable.
|
|
221
|
+
*
|
|
222
|
+
* @param props - props from this instance of MessageBarBody
|
|
223
|
+
* @param ref - reference to root HTMLElement of MessageBarBody
|
|
224
|
+
*/
|
|
225
|
+
export declare const useMessageBarBody_unstable: (props: MessageBarBodyProps, ref: React_2.Ref<HTMLDivElement>) => MessageBarBodyState;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Apply styling to the MessageBarBody slots based on the state
|
|
229
|
+
*/
|
|
230
|
+
export declare const useMessageBarBodyStyles_unstable: (state: MessageBarBodyState) => MessageBarBodyState;
|
|
231
|
+
|
|
232
|
+
export declare const useMessageBarContext: () => MessageBarContextValue;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Create the state required to render MessageBarGroup.
|
|
236
|
+
*
|
|
237
|
+
* The returned state can be modified with hooks such as useMessageBarGroupStyles_unstable,
|
|
238
|
+
* before being passed to renderMessageBarGroup_unstable.
|
|
239
|
+
*
|
|
240
|
+
* @param props - props from this instance of MessageBarGroup
|
|
241
|
+
* @param ref - reference to root HTMLElement of MessageBarGroup
|
|
242
|
+
*/
|
|
243
|
+
export declare const useMessageBarGroup_unstable: (props: MessageBarGroupProps, ref: React_2.Ref<HTMLDivElement>) => MessageBarGroupState;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Apply styling to the MessageBarGroup slots based on the state
|
|
247
|
+
*/
|
|
248
|
+
export declare const useMessageBarGroupStyles_unstable: (state: MessageBarGroupState) => MessageBarGroupState;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Apply styling to the MessageBar slots based on the state
|
|
252
|
+
*/
|
|
253
|
+
export declare const useMessageBarStyles_unstable: (state: MessageBarState) => MessageBarState;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Create the state required to render MessageBarTitle.
|
|
257
|
+
*
|
|
258
|
+
* The returned state can be modified with hooks such as useMessageBarTitleStyles_unstable,
|
|
259
|
+
* before being passed to renderMessageBarTitle_unstable.
|
|
260
|
+
*
|
|
261
|
+
* @param props - props from this instance of MessageBarTitle
|
|
262
|
+
* @param ref - reference to root HTMLElement of MessageBarTitle
|
|
263
|
+
*/
|
|
264
|
+
export declare const useMessageBarTitle_unstable: (props: MessageBarTitleProps, ref: React_2.Ref<HTMLElement>) => MessageBarTitleState;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Apply styling to the MessageBarTitle slots based on the state
|
|
268
|
+
*/
|
|
269
|
+
export declare const useMessageBarTitleStyles_unstable: (state: MessageBarTitleState) => MessageBarTitleState;
|
|
270
|
+
|
|
271
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/MessageBar/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBar.ts"],"sourcesContent":["export * from './components/MessageBar/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/MessageBarActions/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBarActions.ts"],"sourcesContent":["export * from './components/MessageBarActions/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/MessageBarBody/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBarBody.ts"],"sourcesContent":["export * from './components/MessageBarBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/MessageBarGroup/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBarGroup.ts"],"sourcesContent":["export * from './components/MessageBarGroup/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/MessageBarTitle/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBarTitle.ts"],"sourcesContent":["export * from './components/MessageBarTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,qCAAqC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
3
|
+
import { useMessageBar_unstable } from './useMessageBar';
|
|
4
|
+
import { renderMessageBar_unstable } from './renderMessageBar';
|
|
5
|
+
import { useMessageBarStyles_unstable } from './useMessageBarStyles.styles';
|
|
6
|
+
import { useMessageBarContextValue_unstable } from './useMessageBarContextValues';
|
|
7
|
+
/**
|
|
8
|
+
* MessageBar component
|
|
9
|
+
*/ export const MessageBar = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
10
|
+
const state = useMessageBar_unstable(props, ref);
|
|
11
|
+
useMessageBarStyles_unstable(state);
|
|
12
|
+
useCustomStyleHook_unstable('useMessageBarStyles_unstable')(state);
|
|
13
|
+
return renderMessageBar_unstable(state, useMessageBarContextValue_unstable(state));
|
|
14
|
+
});
|
|
15
|
+
MessageBar.displayName = 'MessageBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBar.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useMessageBar_unstable } from './useMessageBar';\nimport { renderMessageBar_unstable } from './renderMessageBar';\nimport { useMessageBarStyles_unstable } from './useMessageBarStyles.styles';\nimport type { MessageBarProps } from './MessageBar.types';\nimport { useMessageBarContextValue_unstable } from './useMessageBarContextValues';\n\n/**\n * MessageBar component\n */\nexport const MessageBar: ForwardRefComponent<MessageBarProps> = React.forwardRef((props, ref) => {\n const state = useMessageBar_unstable(props, ref);\n\n useMessageBarStyles_unstable(state);\n useCustomStyleHook_unstable('useMessageBarStyles_unstable')(state);\n return renderMessageBar_unstable(state, useMessageBarContextValue_unstable(state));\n});\n\nMessageBar.displayName = 'MessageBar';\n"],"names":["React","useCustomStyleHook_unstable","useMessageBar_unstable","renderMessageBar_unstable","useMessageBarStyles_unstable","useMessageBarContextValue_unstable","MessageBar","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAC9E,SAASC,sBAAsB,QAAQ,kBAAkB;AACzD,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,4BAA4B,QAAQ,+BAA+B;AAE5E,SAASC,kCAAkC,QAAQ,+BAA+B;AAElF;;CAEC,GACD,OAAO,MAAMC,2BAAmDN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQR,uBAAuBM,OAAOC;IAE5CL,6BAA6BM;IAC7BT,4BAA4B,gCAAgCS;IAC5D,OAAOP,0BAA0BO,OAAOL,mCAAmCK;AAC7E,GAAG;AAEHJ,WAAWK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["MessageBar.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { MessageBarContextValue } from '../../contexts/messageBarContext';\n\nexport type MessageBarSlots = {\n root: Slot<'div'>;\n icon?: Slot<'div'>;\n};\n\nexport type MessageBarContextValues = {\n messageBar: MessageBarContextValue;\n};\n\nexport type MessageBarIntent = 'info' | 'success' | 'warning' | 'error';\n\n/**\n * MessageBar Props\n */\nexport type MessageBarProps = ComponentProps<MessageBarSlots> &\n Pick<Partial<MessageBarContextValue>, 'layout'> & {\n /**\n * Default designs announcement presets\n * @default info\n */\n intent?: MessageBarIntent;\n /**\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions\n */\n politeness?: 'assertive' | 'polite';\n /**\n * Use squal for page level messages and rounded for component level messages\n * @default rounded\n */\n shape?: 'square' | 'rounded';\n };\n\n/**\n * State used in rendering MessageBar\n */\nexport type MessageBarState = ComponentState<MessageBarSlots> &\n Required<Pick<MessageBarProps, 'layout' | 'intent' | 'shape'>> &\n Pick<MessageBarContextValue, 'actionsRef' | 'bodyRef' | 'titleId'> & {\n transitionClassName: string;\n };\n"],"names":[],"mappings":"AAAA,WA0CI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckmarkCircleFilled, InfoFilled, WarningFilled, ErrorCircleFilled } from '@fluentui/react-icons';
|
|
3
|
+
export function getIntentIcon(intent) {
|
|
4
|
+
switch(intent){
|
|
5
|
+
case 'info':
|
|
6
|
+
return /*#__PURE__*/ React.createElement(InfoFilled, null);
|
|
7
|
+
case 'warning':
|
|
8
|
+
return /*#__PURE__*/ React.createElement(WarningFilled, null);
|
|
9
|
+
case 'error':
|
|
10
|
+
return /*#__PURE__*/ React.createElement(ErrorCircleFilled, null);
|
|
11
|
+
case 'success':
|
|
12
|
+
return /*#__PURE__*/ React.createElement(CheckmarkCircleFilled, null);
|
|
13
|
+
default:
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["getIntentIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MessageBarProps } from './MessageBar.types';\nimport { CheckmarkCircleFilled, InfoFilled, WarningFilled, ErrorCircleFilled } from '@fluentui/react-icons';\n\nexport function getIntentIcon(intent: MessageBarProps['intent']) {\n switch (intent) {\n case 'info':\n return <InfoFilled />;\n case 'warning':\n return <WarningFilled />;\n case 'error':\n return <ErrorCircleFilled />;\n case 'success':\n return <CheckmarkCircleFilled />;\n\n default:\n return null;\n }\n}\n"],"names":["React","CheckmarkCircleFilled","InfoFilled","WarningFilled","ErrorCircleFilled","getIntentIcon","intent"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,qBAAqB,EAAEC,UAAU,EAAEC,aAAa,EAAEC,iBAAiB,QAAQ,wBAAwB;AAE5G,OAAO,SAASC,cAAcC,MAAiC;IAC7D,OAAQA;QACN,KAAK;YACH,qBAAO,oBAACJ;QACV,KAAK;YACH,qBAAO,oBAACC;QACV,KAAK;YACH,qBAAO,oBAACC;QACV,KAAK;YACH,qBAAO,oBAACH;QAEV;YACE,OAAO;IACX;AACF"}
|