@fluentui/react-button 9.0.0-rc.5 → 9.0.0-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +108 -1
- package/CHANGELOG.md +23 -2
- package/dist/react-button.d.ts +19 -2
- package/lib/components/Button/Button.types.d.ts +3 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/index.js +3 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/useButton.js +1 -0
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +3 -0
- package/lib/components/Button/useButtonStyles.js +5 -1
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/index.js +3 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +7 -2
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +4 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/index.d.ts +1 -1
- package/lib/components/MenuButton/index.js +3 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
- package/lib/components/MenuButton/useMenuButtonStyles.js +5 -2
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.d.ts +1 -1
- package/lib/components/SplitButton/index.js +3 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +1 -0
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js +5 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/index.d.ts +1 -1
- package/lib/components/ToggleButton/index.js +3 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +3 -0
- package/lib/components/ToggleButton/useToggleButtonStyles.js +4 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/index.d.ts +10 -5
- package/lib/index.js +10 -5
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +3 -1
- package/lib-commonjs/components/Button/index.d.ts +1 -1
- package/lib-commonjs/components/Button/index.js +2 -0
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +1 -0
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/Button/useButtonStyles.js +5 -1
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +2 -0
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +7 -2
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +4 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/index.js +2 -0
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +5 -2
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.js +2 -0
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +1 -0
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +5 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +2 -0
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +4 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.d.ts +10 -5
- package/lib-commonjs/index.js +195 -6
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -19
- package/dist/demo/index.html +0 -71
- package/dist/demo/react-dom.development.js +0 -21413
- package/dist/demo/react.development.js +0 -3155
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-button",
|
3
|
-
"version": "9.0.0-rc.
|
3
|
+
"version": "9.0.0-rc.6",
|
4
4
|
"description": "Fluent UI React Button component.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -29,27 +29,17 @@
|
|
29
29
|
"@fluentui/a11y-testing": "^0.1.0",
|
30
30
|
"@fluentui/eslint-plugin": "*",
|
31
31
|
"@fluentui/react-conformance": "*",
|
32
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
33
|
-
"@fluentui/scripts": "^1.0.0"
|
34
|
-
"@types/enzyme": "3.10.3",
|
35
|
-
"@types/enzyme-adapter-react-16": "1.0.3",
|
36
|
-
"@types/react": "16.9.42",
|
37
|
-
"@types/react-dom": "16.9.10",
|
38
|
-
"@types/react-test-renderer": "^16.0.0",
|
39
|
-
"enzyme": "~3.10.0",
|
40
|
-
"enzyme-adapter-react-16": "^1.15.0",
|
41
|
-
"react": "16.8.6",
|
42
|
-
"react-dom": "16.8.6",
|
43
|
-
"react-test-renderer": "^16.3.0"
|
32
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.4",
|
33
|
+
"@fluentui/scripts": "^1.0.0"
|
44
34
|
},
|
45
35
|
"dependencies": {
|
46
36
|
"@fluentui/keyboard-keys": "9.0.0-rc.4",
|
47
|
-
"@fluentui/react-aria": "9.0.0-rc.
|
48
|
-
"@fluentui/react-icons": "^2.0.
|
49
|
-
"@fluentui/react-tabster": "9.0.0-rc.
|
50
|
-
"@fluentui/react-theme": "9.0.0-rc.
|
51
|
-
"@fluentui/react-utilities": "9.0.0-rc.
|
52
|
-
"@griffel/react": "1.0.
|
37
|
+
"@fluentui/react-aria": "9.0.0-rc.6",
|
38
|
+
"@fluentui/react-icons": "^2.0.166-rc.3",
|
39
|
+
"@fluentui/react-tabster": "9.0.0-rc.6",
|
40
|
+
"@fluentui/react-theme": "9.0.0-rc.5",
|
41
|
+
"@fluentui/react-utilities": "9.0.0-rc.6",
|
42
|
+
"@griffel/react": "1.0.3",
|
53
43
|
"tslib": "^2.1.0"
|
54
44
|
},
|
55
45
|
"peerDependencies": {
|
package/dist/demo/index.html
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html dir="ltr" lang="en-us">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" user-scalable="no" />
|
7
|
-
<title>Fluent UI React Examples</title>
|
8
|
-
</head>
|
9
|
-
|
10
|
-
<body>
|
11
|
-
<div id="content"></div>
|
12
|
-
<script type="text/javascript">
|
13
|
-
// @ts-check
|
14
|
-
window.FabricConfig = {
|
15
|
-
// Uncommenting this prevents the fontfaces from being registered.
|
16
|
-
// Alternatively you can specify a base url which contains the font/icon assets.
|
17
|
-
// fontBaseUrl: '',
|
18
|
-
// mergeStyles: {
|
19
|
-
// injectionMode: 2
|
20
|
-
// }
|
21
|
-
};
|
22
|
-
|
23
|
-
var isLocal = ['localhost', '[::]', '127.0.0.1'].indexOf(location.hostname) !== -1;
|
24
|
-
|
25
|
-
var isDev = getParameterByName('dev') === '1' || !!getParameterByName('strict');
|
26
|
-
var minParam = getParameterByName('min');
|
27
|
-
var useMinified =
|
28
|
-
!isDev && minParam !== '0' && (minParam === '1' || location.pathname === '/fabric-react/master/');
|
29
|
-
|
30
|
-
function loadScript(n) {
|
31
|
-
for (var i = 0; i < n.length; i++) {
|
32
|
-
var s = document.createElement('script');
|
33
|
-
s.src = n[i];
|
34
|
-
s.async = false;
|
35
|
-
document.body.appendChild(s);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
const scripts = [];
|
40
|
-
|
41
|
-
if (isLocal) {
|
42
|
-
scripts.push('./react.development.js');
|
43
|
-
scripts.push('./react-dom.development.js');
|
44
|
-
} else {
|
45
|
-
const reactVersion = isDev ? 'development.js' : 'production.min.js';
|
46
|
-
scripts.push('//cdnjs.cloudflare.com/ajax/libs/react/16.8.6/umd/react.' + reactVersion);
|
47
|
-
scripts.push('//cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.6/umd/react-dom.' + reactVersion);
|
48
|
-
}
|
49
|
-
|
50
|
-
if (useMinified) {
|
51
|
-
scripts.push('demo-app.min.js');
|
52
|
-
} else {
|
53
|
-
scripts.push('demo-app.js');
|
54
|
-
}
|
55
|
-
|
56
|
-
loadScript(scripts);
|
57
|
-
|
58
|
-
function getParameterByName(name, url) {
|
59
|
-
if (!url) {
|
60
|
-
url = location.href;
|
61
|
-
}
|
62
|
-
name = name.replace(/[\[\]]/g, '\\$&');
|
63
|
-
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
|
64
|
-
results = regex.exec(url);
|
65
|
-
if (!results) return null;
|
66
|
-
if (!results[2]) return '';
|
67
|
-
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
68
|
-
}
|
69
|
-
</script>
|
70
|
-
</body>
|
71
|
-
</html>
|