@fluentui/react-button 9.0.0-rc.3 → 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 +192 -1
- package/CHANGELOG.md +50 -2
- package/dist/react-button.d.ts +35 -7
- 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 +7 -2
- package/lib/components/Button/useButtonStyles.js +12 -3
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/index.d.ts +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 +7 -2
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +32 -26
- 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 +7 -2
- package/lib/components/MenuButton/useMenuButtonStyles.js +16 -3
- 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 +7 -2
- package/lib/components/SplitButton/useSplitButtonStyles.js +33 -27
- 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 +7 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +15 -2
- 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 +9 -1
- 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 +7 -2
- package/lib-commonjs/components/Button/useButtonStyles.js +13 -4
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +9 -1
- 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 +7 -2
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +33 -27
- 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 +9 -1
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +7 -2
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +17 -4
- 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 +9 -1
- 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 +7 -2
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +34 -28
- 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 +9 -1
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +7 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +16 -3
- 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 +17 -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/lib-commonjs/index.js
CHANGED
@@ -3,16 +3,205 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.useToggleButton_unstable = exports.useToggleButtonStyles_unstable = exports.toggleButtonClassNames = exports.toggleButtonClassName = exports.renderToggleButton_unstable = exports.ToggleButton = exports.useSplitButton_unstable = exports.useSplitButtonStyles_unstable = exports.splitButtonClassNames = exports.splitButtonClassName = exports.renderSplitButton_unstable = exports.SplitButton = exports.useMenuButton_unstable = exports.useMenuButtonStyles_unstable = exports.renderMenuButton_unstable = exports.menuButtonClassNames = exports.menuButtonClassName = exports.MenuButton = exports.useCompoundButton_unstable = exports.useCompoundButtonStyles_unstable = exports.renderCompoundButton_unstable = exports.compoundButtonClassNames = exports.compoundButtonClassName = exports.CompoundButton = exports.useButton_unstable = exports.useButtonStyles_unstable = exports.renderButton_unstable = exports.buttonClassNames = exports.buttonClassName = exports.Button = void 0;
|
6
7
|
|
7
|
-
|
8
|
+
var Button_1 = /*#__PURE__*/require("./Button");
|
8
9
|
|
9
|
-
|
10
|
+
Object.defineProperty(exports, "Button", {
|
11
|
+
enumerable: true,
|
12
|
+
get: function () {
|
13
|
+
return Button_1.Button;
|
14
|
+
}
|
15
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
10
16
|
|
11
|
-
|
17
|
+
Object.defineProperty(exports, "buttonClassName", {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () {
|
20
|
+
return Button_1.buttonClassName;
|
21
|
+
}
|
22
|
+
});
|
23
|
+
Object.defineProperty(exports, "buttonClassNames", {
|
24
|
+
enumerable: true,
|
25
|
+
get: function () {
|
26
|
+
return Button_1.buttonClassNames;
|
27
|
+
}
|
28
|
+
});
|
29
|
+
Object.defineProperty(exports, "renderButton_unstable", {
|
30
|
+
enumerable: true,
|
31
|
+
get: function () {
|
32
|
+
return Button_1.renderButton_unstable;
|
33
|
+
}
|
34
|
+
});
|
35
|
+
Object.defineProperty(exports, "useButtonStyles_unstable", {
|
36
|
+
enumerable: true,
|
37
|
+
get: function () {
|
38
|
+
return Button_1.useButtonStyles_unstable;
|
39
|
+
}
|
40
|
+
});
|
41
|
+
Object.defineProperty(exports, "useButton_unstable", {
|
42
|
+
enumerable: true,
|
43
|
+
get: function () {
|
44
|
+
return Button_1.useButton_unstable;
|
45
|
+
}
|
46
|
+
});
|
47
|
+
|
48
|
+
var CompoundButton_1 = /*#__PURE__*/require("./CompoundButton");
|
49
|
+
|
50
|
+
Object.defineProperty(exports, "CompoundButton", {
|
51
|
+
enumerable: true,
|
52
|
+
get: function () {
|
53
|
+
return CompoundButton_1.CompoundButton;
|
54
|
+
}
|
55
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
56
|
+
|
57
|
+
Object.defineProperty(exports, "compoundButtonClassName", {
|
58
|
+
enumerable: true,
|
59
|
+
get: function () {
|
60
|
+
return CompoundButton_1.compoundButtonClassName;
|
61
|
+
}
|
62
|
+
});
|
63
|
+
Object.defineProperty(exports, "compoundButtonClassNames", {
|
64
|
+
enumerable: true,
|
65
|
+
get: function () {
|
66
|
+
return CompoundButton_1.compoundButtonClassNames;
|
67
|
+
}
|
68
|
+
});
|
69
|
+
Object.defineProperty(exports, "renderCompoundButton_unstable", {
|
70
|
+
enumerable: true,
|
71
|
+
get: function () {
|
72
|
+
return CompoundButton_1.renderCompoundButton_unstable;
|
73
|
+
}
|
74
|
+
});
|
75
|
+
Object.defineProperty(exports, "useCompoundButtonStyles_unstable", {
|
76
|
+
enumerable: true,
|
77
|
+
get: function () {
|
78
|
+
return CompoundButton_1.useCompoundButtonStyles_unstable;
|
79
|
+
}
|
80
|
+
});
|
81
|
+
Object.defineProperty(exports, "useCompoundButton_unstable", {
|
82
|
+
enumerable: true,
|
83
|
+
get: function () {
|
84
|
+
return CompoundButton_1.useCompoundButton_unstable;
|
85
|
+
}
|
86
|
+
});
|
87
|
+
|
88
|
+
var MenuButton_1 = /*#__PURE__*/require("./MenuButton");
|
89
|
+
|
90
|
+
Object.defineProperty(exports, "MenuButton", {
|
91
|
+
enumerable: true,
|
92
|
+
get: function () {
|
93
|
+
return MenuButton_1.MenuButton;
|
94
|
+
}
|
95
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
96
|
+
|
97
|
+
Object.defineProperty(exports, "menuButtonClassName", {
|
98
|
+
enumerable: true,
|
99
|
+
get: function () {
|
100
|
+
return MenuButton_1.menuButtonClassName;
|
101
|
+
}
|
102
|
+
});
|
103
|
+
Object.defineProperty(exports, "menuButtonClassNames", {
|
104
|
+
enumerable: true,
|
105
|
+
get: function () {
|
106
|
+
return MenuButton_1.menuButtonClassNames;
|
107
|
+
}
|
108
|
+
});
|
109
|
+
Object.defineProperty(exports, "renderMenuButton_unstable", {
|
110
|
+
enumerable: true,
|
111
|
+
get: function () {
|
112
|
+
return MenuButton_1.renderMenuButton_unstable;
|
113
|
+
}
|
114
|
+
});
|
115
|
+
Object.defineProperty(exports, "useMenuButtonStyles_unstable", {
|
116
|
+
enumerable: true,
|
117
|
+
get: function () {
|
118
|
+
return MenuButton_1.useMenuButtonStyles_unstable;
|
119
|
+
}
|
120
|
+
});
|
121
|
+
Object.defineProperty(exports, "useMenuButton_unstable", {
|
122
|
+
enumerable: true,
|
123
|
+
get: function () {
|
124
|
+
return MenuButton_1.useMenuButton_unstable;
|
125
|
+
}
|
126
|
+
});
|
12
127
|
|
13
|
-
|
128
|
+
var SplitButton_1 = /*#__PURE__*/require("./SplitButton");
|
14
129
|
|
15
|
-
|
130
|
+
Object.defineProperty(exports, "SplitButton", {
|
131
|
+
enumerable: true,
|
132
|
+
get: function () {
|
133
|
+
return SplitButton_1.SplitButton;
|
134
|
+
}
|
135
|
+
});
|
136
|
+
Object.defineProperty(exports, "renderSplitButton_unstable", {
|
137
|
+
enumerable: true,
|
138
|
+
get: function () {
|
139
|
+
return SplitButton_1.renderSplitButton_unstable;
|
140
|
+
}
|
141
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
16
142
|
|
17
|
-
|
143
|
+
Object.defineProperty(exports, "splitButtonClassName", {
|
144
|
+
enumerable: true,
|
145
|
+
get: function () {
|
146
|
+
return SplitButton_1.splitButtonClassName;
|
147
|
+
}
|
148
|
+
});
|
149
|
+
Object.defineProperty(exports, "splitButtonClassNames", {
|
150
|
+
enumerable: true,
|
151
|
+
get: function () {
|
152
|
+
return SplitButton_1.splitButtonClassNames;
|
153
|
+
}
|
154
|
+
});
|
155
|
+
Object.defineProperty(exports, "useSplitButtonStyles_unstable", {
|
156
|
+
enumerable: true,
|
157
|
+
get: function () {
|
158
|
+
return SplitButton_1.useSplitButtonStyles_unstable;
|
159
|
+
}
|
160
|
+
});
|
161
|
+
Object.defineProperty(exports, "useSplitButton_unstable", {
|
162
|
+
enumerable: true,
|
163
|
+
get: function () {
|
164
|
+
return SplitButton_1.useSplitButton_unstable;
|
165
|
+
}
|
166
|
+
});
|
167
|
+
|
168
|
+
var ToggleButton_1 = /*#__PURE__*/require("./ToggleButton");
|
169
|
+
|
170
|
+
Object.defineProperty(exports, "ToggleButton", {
|
171
|
+
enumerable: true,
|
172
|
+
get: function () {
|
173
|
+
return ToggleButton_1.ToggleButton;
|
174
|
+
}
|
175
|
+
});
|
176
|
+
Object.defineProperty(exports, "renderToggleButton_unstable", {
|
177
|
+
enumerable: true,
|
178
|
+
get: function () {
|
179
|
+
return ToggleButton_1.renderToggleButton_unstable;
|
180
|
+
}
|
181
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
182
|
+
|
183
|
+
Object.defineProperty(exports, "toggleButtonClassName", {
|
184
|
+
enumerable: true,
|
185
|
+
get: function () {
|
186
|
+
return ToggleButton_1.toggleButtonClassName;
|
187
|
+
}
|
188
|
+
});
|
189
|
+
Object.defineProperty(exports, "toggleButtonClassNames", {
|
190
|
+
enumerable: true,
|
191
|
+
get: function () {
|
192
|
+
return ToggleButton_1.toggleButtonClassNames;
|
193
|
+
}
|
194
|
+
});
|
195
|
+
Object.defineProperty(exports, "useToggleButtonStyles_unstable", {
|
196
|
+
enumerable: true,
|
197
|
+
get: function () {
|
198
|
+
return ToggleButton_1.useToggleButtonStyles_unstable;
|
199
|
+
}
|
200
|
+
});
|
201
|
+
Object.defineProperty(exports, "useToggleButton_unstable", {
|
202
|
+
enumerable: true,
|
203
|
+
get: function () {
|
204
|
+
return ToggleButton_1.useToggleButton_unstable;
|
205
|
+
}
|
206
|
+
});
|
18
207
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,QAAA,gBAAA,OAAA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AAA,EAAA,gCAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,8BAAA;AAA8B;AAA9B,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,0BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,wBAAA;AAAwB;AAAxB,CAAA","sourcesContent":["export {\n Button,\n // eslint-disable-next-line deprecation/deprecation\n buttonClassName,\n buttonClassNames,\n renderButton_unstable,\n useButtonStyles_unstable,\n useButton_unstable,\n} from './Button';\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button';\nexport {\n CompoundButton,\n // eslint-disable-next-line deprecation/deprecation\n compoundButtonClassName,\n compoundButtonClassNames,\n renderCompoundButton_unstable,\n useCompoundButtonStyles_unstable,\n useCompoundButton_unstable,\n} from './CompoundButton';\nexport type { CompoundButtonProps, CompoundButtonSlots, CompoundButtonState } from './CompoundButton';\nexport {\n MenuButton,\n // eslint-disable-next-line deprecation/deprecation\n menuButtonClassName,\n menuButtonClassNames,\n renderMenuButton_unstable,\n useMenuButtonStyles_unstable,\n useMenuButton_unstable,\n} from './MenuButton';\nexport type { MenuButtonProps, MenuButtonSlots, MenuButtonState } from './MenuButton';\nexport {\n SplitButton,\n renderSplitButton_unstable,\n // eslint-disable-next-line deprecation/deprecation\n splitButtonClassName,\n splitButtonClassNames,\n useSplitButtonStyles_unstable,\n useSplitButton_unstable,\n} from './SplitButton';\nexport type { SplitButtonProps, SplitButtonSlots, SplitButtonState } from './SplitButton';\nexport {\n ToggleButton,\n renderToggleButton_unstable,\n // eslint-disable-next-line deprecation/deprecation\n toggleButtonClassName,\n toggleButtonClassNames,\n useToggleButtonStyles_unstable,\n useToggleButton_unstable,\n} from './ToggleButton';\nexport type { ToggleButtonProps, ToggleButtonState } from './ToggleButton';\n"],"sourceRoot":"../src/"}
|
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,26 +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
|
-
"@fluentui/keyboard-keys": "9.0.0-rc.
|
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-
|
51
|
-
"@
|
36
|
+
"@fluentui/keyboard-keys": "9.0.0-rc.4",
|
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",
|
52
43
|
"tslib": "^2.1.0"
|
53
44
|
},
|
54
45
|
"peerDependencies": {
|
@@ -63,5 +54,12 @@
|
|
63
54
|
"minor",
|
64
55
|
"patch"
|
65
56
|
]
|
57
|
+
},
|
58
|
+
"exports": {
|
59
|
+
".": {
|
60
|
+
"types": "./lib/index.d.ts",
|
61
|
+
"import": "./lib/index.js",
|
62
|
+
"require": "./lib-commonjs/index.js"
|
63
|
+
}
|
66
64
|
}
|
67
65
|
}
|
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>
|