wjec-one 4.0.3-alpha.1 → 4.0.4
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/config/webpack.config.js +3 -1
- package/index.d.ts +1 -36
- package/index.js +1 -1
- package/package.json +2 -2
- package/portal/index.js +1 -1
- package/umd/index.js +1 -1
- package/umd/portal/index.js +1 -1
package/config/webpack.config.js
CHANGED
|
@@ -5,6 +5,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const webpack = require('webpack');
|
|
7
7
|
|
|
8
|
+
const { generateFilename } = require('./utils');
|
|
9
|
+
|
|
8
10
|
const appPath = fs.realpathSync(process.cwd());
|
|
9
11
|
const scriptsPath = path.resolve(__dirname, '..');
|
|
10
12
|
|
|
@@ -17,7 +19,7 @@ module.exports = () => ({
|
|
|
17
19
|
extends: path.resolve(__dirname, './webpack.common.config.js'),
|
|
18
20
|
|
|
19
21
|
// Overrides
|
|
20
|
-
context:
|
|
22
|
+
context: appPath,
|
|
21
23
|
devServer: {
|
|
22
24
|
host: devServerHost === 'localIp' ? '0.0.0.0' : devServerHost,
|
|
23
25
|
port: devServerPort,
|
package/index.d.ts
CHANGED
|
@@ -155,11 +155,6 @@ type ButtonAccessibilityProps = {
|
|
|
155
155
|
hasPopup?: AriaButtonProps['aria-haspopup'];
|
|
156
156
|
};
|
|
157
157
|
type ButtonBehaviorProps = {
|
|
158
|
-
/**
|
|
159
|
-
* Determines whether the browser's onClick event is propagated beyond the component
|
|
160
|
-
* @default false
|
|
161
|
-
*/
|
|
162
|
-
allowEventPropagation?: boolean;
|
|
163
158
|
/**
|
|
164
159
|
* Determines the behavior of the Button when used in an HTML form
|
|
165
160
|
* @default "button"
|
|
@@ -241,39 +236,9 @@ type ButtonStyleProps = {
|
|
|
241
236
|
*/
|
|
242
237
|
size?: 'small' | 'normal' | 'large';
|
|
243
238
|
};
|
|
244
|
-
type DeprecatedButtonProps = {
|
|
245
|
-
/**
|
|
246
|
-
* Determines whether the Button is rendered in a "filled" style (solid background color) or a "transparent" style (colored border)
|
|
247
|
-
* @default "filled"
|
|
248
|
-
* @deprecated buttonStyle has been deprecated for design reasons; Button components will now always behave as though `buttonStyle='filled'`
|
|
249
|
-
* */
|
|
250
|
-
buttonStyle?: 'filled' | 'transparent';
|
|
251
|
-
/**
|
|
252
|
-
* Determines the rendered size of the provided SVG icon component
|
|
253
|
-
* @default "normal"
|
|
254
|
-
* @deprecated iconSize has been deprecated for design reasons. Button components will now always behave as though `iconSize='normal'`
|
|
255
|
-
*/
|
|
256
|
-
iconSize?: 'small' | 'normal' | 'large';
|
|
257
|
-
/**
|
|
258
|
-
* Determines the color of the loading indicator when displayed
|
|
259
|
-
* @deprecated loadingColor has been deprecated for design reasons. The labelColor will now be used for the loading animation
|
|
260
|
-
*/
|
|
261
|
-
loadingColor?: CSSProperties['color'];
|
|
262
|
-
/**
|
|
263
|
-
* A handler that is called when the underlying HTML element's onClick event is triggered
|
|
264
|
-
* @deprecated onClick has been deprecated in favor of the new onPress prop, which behaves similarly but with better accessibility support
|
|
265
|
-
*/
|
|
266
|
-
onClick?: () => void;
|
|
267
|
-
/**
|
|
268
|
-
* Determines whether to show an outline around the Button when it receives focus
|
|
269
|
-
* @default true
|
|
270
|
-
* @deprecated This prop is no longer supported for accessibility reasons. The Button component will now behave as though showOutline={true} in all cases
|
|
271
|
-
*/
|
|
272
|
-
showOutline?: boolean;
|
|
273
|
-
};
|
|
274
239
|
type ButtonProps$6 = {
|
|
275
240
|
accessibility?: ButtonAccessibilityProps;
|
|
276
|
-
} & ButtonBehaviorProps & ButtonElementProps & ButtonStyleProps & Pick<AriaProperties, 'ariaLabel'
|
|
241
|
+
} & ButtonBehaviorProps & ButtonElementProps & ButtonStyleProps & Pick<AriaProperties, 'ariaLabel'>;
|
|
277
242
|
|
|
278
243
|
declare const Button: WjecOneComponent<ButtonProps$6>;
|
|
279
244
|
|