baseui 0.0.0-next-a15b9e5 → 0.0.0-next-71e5a1a
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/app-nav-bar/types.js.flow +2 -2
- package/avatar/types.js.flow +2 -2
- package/es/list/menu-adapter.js +1 -2
- package/es/timezonepicker/update-tzdata.js +9 -4
- package/esm/list/menu-adapter.js +1 -2
- package/esm/timezonepicker/update-tzdata.js +11 -13
- package/file-uploader/types.js.flow +2 -2
- package/list/menu-adapter.js +1 -2
- package/list/menu-adapter.js.flow +13 -16
- package/list/types.js.flow +4 -4
- package/package.json +4 -2
- package/snackbar/types.js.flow +4 -4
- package/tabs-motion/types.js.flow +4 -4
- package/timezonepicker/update-tzdata.js +11 -13
- package/timezonepicker/update-tzdata.js.flow +9 -4
|
@@ -11,7 +11,7 @@ import { POSITION } from './constants.js';
|
|
|
11
11
|
|
|
12
12
|
import type { OverrideT } from '../helpers/overrides.js';
|
|
13
13
|
|
|
14
|
-
export type OverridesT = {
|
|
14
|
+
export type OverridesT = {
|
|
15
15
|
Root?: OverrideT,
|
|
16
16
|
AppName?: OverrideT,
|
|
17
17
|
MainMenuItem?: OverrideT,
|
|
@@ -31,7 +31,7 @@ export type OverridesT = {|
|
|
|
31
31
|
SideMenuButton?: OverrideT,
|
|
32
32
|
UserMenuButton?: OverrideT,
|
|
33
33
|
UserMenu?: OverrideT,
|
|
34
|
-
|
|
34
|
+
};
|
|
35
35
|
|
|
36
36
|
export type NavItemT = {|
|
|
37
37
|
active?: boolean,
|
package/avatar/types.js.flow
CHANGED
|
@@ -20,11 +20,11 @@ export type RootStylePropsT = {
|
|
|
20
20
|
};
|
|
21
21
|
export type StylePropsT = RootStylePropsT;
|
|
22
22
|
|
|
23
|
-
export type OverridesT = {
|
|
23
|
+
export type OverridesT = {
|
|
24
24
|
Avatar?: OverrideT,
|
|
25
25
|
Initials?: OverrideT,
|
|
26
26
|
Root?: OverrideT,
|
|
27
|
-
|
|
27
|
+
};
|
|
28
28
|
|
|
29
29
|
export type PropsT = {|
|
|
30
30
|
/** Bypasses initial generation from provided name with this value. */
|
package/es/list/menu-adapter.js
CHANGED
|
@@ -14,8 +14,7 @@ const MenuAdapter = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
14
14
|
artwork: props.artwork,
|
|
15
15
|
artworkSize: props.artworkSize,
|
|
16
16
|
endEnhancer: props.endEnhancer,
|
|
17
|
-
overrides:
|
|
18
|
-
mergeOverrides({
|
|
17
|
+
overrides: mergeOverrides({
|
|
19
18
|
Root: {
|
|
20
19
|
props: {
|
|
21
20
|
onMouseEnter: props.onMouseEnter,
|
|
@@ -45,16 +45,21 @@ async function main() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const file = [];
|
|
48
|
-
file.push(
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
file.push(`/*
|
|
49
|
+
Copyright (c) Uber Technologies, Inc.
|
|
50
|
+
|
|
51
|
+
This source code is licensed under the MIT license found in the
|
|
52
|
+
LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/
|
|
54
|
+
// @flow
|
|
55
|
+
`);
|
|
51
56
|
file.push('export const zones = [');
|
|
52
57
|
|
|
53
58
|
for (const zone of zones) {
|
|
54
59
|
file.push(` '${zone}',`);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
file.push(']
|
|
62
|
+
file.push('];\n');
|
|
58
63
|
const tzdataPath = path.join(__dirname, 'tzdata.js');
|
|
59
64
|
await fs.promises.writeFile(tzdataPath, file.join('\n')); // $FlowFixMe - flow is not aware of recursive option
|
|
60
65
|
|
package/esm/list/menu-adapter.js
CHANGED
|
@@ -14,8 +14,7 @@ var MenuAdapter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
14
14
|
artwork: props.artwork,
|
|
15
15
|
artworkSize: props.artworkSize,
|
|
16
16
|
endEnhancer: props.endEnhancer,
|
|
17
|
-
overrides:
|
|
18
|
-
mergeOverrides({
|
|
17
|
+
overrides: mergeOverrides({
|
|
19
18
|
Root: {
|
|
20
19
|
props: {
|
|
21
20
|
onMouseEnter: props.onMouseEnter,
|
|
@@ -117,9 +117,7 @@ function _main() {
|
|
|
117
117
|
|
|
118
118
|
case 34:
|
|
119
119
|
file = [];
|
|
120
|
-
file.push(
|
|
121
|
-
file.push('// @flow');
|
|
122
|
-
file.push('');
|
|
120
|
+
file.push("/*\nCopyright (c) Uber Technologies, Inc.\n\nThis source code is licensed under the MIT license found in the\nLICENSE file in the root directory of this source tree.\n*/\n// @flow\n");
|
|
123
121
|
file.push('export const zones = [');
|
|
124
122
|
|
|
125
123
|
for (_i = 0, _zones = zones; _i < _zones.length; _i++) {
|
|
@@ -127,32 +125,32 @@ function _main() {
|
|
|
127
125
|
file.push(" '".concat(zone, "',"));
|
|
128
126
|
}
|
|
129
127
|
|
|
130
|
-
file.push(']
|
|
128
|
+
file.push('];\n');
|
|
131
129
|
tzdataPath = path.join(__dirname, 'tzdata.js');
|
|
132
|
-
_context.next =
|
|
130
|
+
_context.next = 42;
|
|
133
131
|
return fs.promises.writeFile(tzdataPath, file.join('\n'));
|
|
134
132
|
|
|
135
|
-
case
|
|
136
|
-
_context.next =
|
|
133
|
+
case 42:
|
|
134
|
+
_context.next = 44;
|
|
137
135
|
return fs.promises.rmdir(tmpDir, {
|
|
138
136
|
recursive: true
|
|
139
137
|
});
|
|
140
138
|
|
|
141
|
-
case
|
|
142
|
-
_context.next =
|
|
139
|
+
case 44:
|
|
140
|
+
_context.next = 49;
|
|
143
141
|
break;
|
|
144
142
|
|
|
145
|
-
case
|
|
146
|
-
_context.prev =
|
|
143
|
+
case 46:
|
|
144
|
+
_context.prev = 46;
|
|
147
145
|
_context.t1 = _context["catch"](0);
|
|
148
146
|
console.error(_context.t1);
|
|
149
147
|
|
|
150
|
-
case
|
|
148
|
+
case 49:
|
|
151
149
|
case "end":
|
|
152
150
|
return _context.stop();
|
|
153
151
|
}
|
|
154
152
|
}
|
|
155
|
-
}, _callee, null, [[0,
|
|
153
|
+
}, _callee, null, [[0, 46], [16, 28, 31, 34]]);
|
|
156
154
|
}));
|
|
157
155
|
return _main.apply(this, arguments);
|
|
158
156
|
}
|
|
@@ -17,7 +17,7 @@ export type StylePropsT = {|
|
|
|
17
17
|
$isFocused: boolean,
|
|
18
18
|
|};
|
|
19
19
|
|
|
20
|
-
export type OverridesT = {
|
|
20
|
+
export type OverridesT = {
|
|
21
21
|
Root?: OverrideT,
|
|
22
22
|
FileDragAndDrop?: OverrideT,
|
|
23
23
|
ContentMessage?: OverrideT,
|
|
@@ -27,7 +27,7 @@ export type OverridesT = {|
|
|
|
27
27
|
ErrorMessage?: OverrideT,
|
|
28
28
|
ButtonComponent?: OverrideT,
|
|
29
29
|
Spinner?: OverrideT,
|
|
30
|
-
|
|
30
|
+
};
|
|
31
31
|
|
|
32
32
|
export type PropsT = {|
|
|
33
33
|
// react-dropzone: https://github.com/react-dropzone/react-dropzone/blob/master/typings/react-dropzone.d.ts
|
package/list/menu-adapter.js
CHANGED
|
@@ -32,8 +32,7 @@ var MenuAdapter = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
32
32
|
artwork: props.artwork,
|
|
33
33
|
artworkSize: props.artworkSize,
|
|
34
34
|
endEnhancer: props.endEnhancer,
|
|
35
|
-
overrides:
|
|
36
|
-
(0, _overrides.mergeOverrides)({
|
|
35
|
+
overrides: (0, _overrides.mergeOverrides)({
|
|
37
36
|
Root: {
|
|
38
37
|
props: {
|
|
39
38
|
onMouseEnter: props.onMouseEnter,
|
|
@@ -20,24 +20,21 @@ const MenuAdapter = React.forwardRef<MenuAdapterPropsT, HTMLLIElement>((props, r
|
|
|
20
20
|
artwork={props.artwork}
|
|
21
21
|
artworkSize={props.artworkSize}
|
|
22
22
|
endEnhancer={props.endEnhancer}
|
|
23
|
-
overrides={
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
onMouseEnter: props.onMouseEnter,
|
|
30
|
-
onClick: props.onClick,
|
|
31
|
-
},
|
|
32
|
-
style: ({ $theme }) => ({
|
|
33
|
-
backgroundColor: props.$isHighlighted ? $theme.colors.menuFillHover : null,
|
|
34
|
-
cursor: props.$disabled ? 'not-allowed' : 'pointer',
|
|
35
|
-
}),
|
|
23
|
+
overrides={mergeOverrides(
|
|
24
|
+
{
|
|
25
|
+
Root: {
|
|
26
|
+
props: {
|
|
27
|
+
onMouseEnter: props.onMouseEnter,
|
|
28
|
+
onClick: props.onClick,
|
|
36
29
|
},
|
|
30
|
+
style: ({ $theme }) => ({
|
|
31
|
+
backgroundColor: props.$isHighlighted ? $theme.colors.menuFillHover : null,
|
|
32
|
+
cursor: props.$disabled ? 'not-allowed' : 'pointer',
|
|
33
|
+
}),
|
|
37
34
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
35
|
+
},
|
|
36
|
+
props.overrides
|
|
37
|
+
)}
|
|
41
38
|
>
|
|
42
39
|
{props.children}
|
|
43
40
|
</ListItem>
|
package/list/types.js.flow
CHANGED
|
@@ -28,12 +28,12 @@ export type StyledArtworkContainerPropsT = {
|
|
|
28
28
|
};
|
|
29
29
|
export type StyledContentPropsT = { $mLeft: boolean, $sublist: boolean };
|
|
30
30
|
|
|
31
|
-
export type OverridesT = {
|
|
31
|
+
export type OverridesT = {
|
|
32
32
|
Root?: OverrideT,
|
|
33
33
|
ArtworkContainer?: OverrideT,
|
|
34
34
|
Content?: OverrideT,
|
|
35
35
|
EndEnhancerContainer?: OverrideT,
|
|
36
|
-
|
|
36
|
+
};
|
|
37
37
|
|
|
38
38
|
export type PropsT = {|
|
|
39
39
|
artwork?: React.AbstractComponent<{
|
|
@@ -59,14 +59,14 @@ export type LabelPropsT = {|
|
|
|
59
59
|
|},
|
|
60
60
|
|};
|
|
61
61
|
|
|
62
|
-
export type HeadingOverridesT = {
|
|
62
|
+
export type HeadingOverridesT = {
|
|
63
63
|
Root?: OverrideT,
|
|
64
64
|
Content?: OverrideT,
|
|
65
65
|
HeadingContainer?: OverrideT,
|
|
66
66
|
SubHeadingContainer?: OverrideT,
|
|
67
67
|
EndEnhancerContainer?: OverrideT,
|
|
68
68
|
EndEnhancerDescriptionContainer?: OverrideT,
|
|
69
|
-
|
|
69
|
+
};
|
|
70
70
|
|
|
71
71
|
export type HeadingPropsT = {|
|
|
72
72
|
heading: React.Node | React.AbstractComponent<{}>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseui",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-71e5a1a",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -141,8 +141,10 @@
|
|
|
141
141
|
"globby": "^10.0.1",
|
|
142
142
|
"husky": "^3.0.0",
|
|
143
143
|
"isomorphic-fetch": "^2.2.1",
|
|
144
|
-
"jest": "
|
|
144
|
+
"jest": "25.5.3",
|
|
145
145
|
"jest-circus": "^26.6.1",
|
|
146
|
+
"jest-environment-jsdom": "26.6.0",
|
|
147
|
+
"jest-environment-jsdom-global": "1.2.1",
|
|
146
148
|
"jest-image-snapshot": "^2.11.0",
|
|
147
149
|
"jest-matcher-utils": "^26.6.1",
|
|
148
150
|
"jest-puppeteer": "^5.0.4",
|
package/snackbar/types.js.flow
CHANGED
|
@@ -27,7 +27,7 @@ export type PlacementT =
|
|
|
27
27
|
| typeof PLACEMENT.bottom
|
|
28
28
|
| typeof PLACEMENT.bottomRight;
|
|
29
29
|
|
|
30
|
-
export type SnackbarElementOverridesT = {
|
|
30
|
+
export type SnackbarElementOverridesT = {
|
|
31
31
|
Root?: OverrideT,
|
|
32
32
|
Content?: OverrideT,
|
|
33
33
|
StartEnhancerContainer?: OverrideT,
|
|
@@ -35,7 +35,7 @@ export type SnackbarElementOverridesT = {|
|
|
|
35
35
|
Message?: OverrideT,
|
|
36
36
|
WrapActionButtonContainer?: OverrideT,
|
|
37
37
|
ActionButtonContainer?: OverrideT,
|
|
38
|
-
|
|
38
|
+
};
|
|
39
39
|
|
|
40
40
|
export type SnackbarElementPropsT = {|
|
|
41
41
|
// message displayed in button
|
|
@@ -57,10 +57,10 @@ export type SnackbarElementPropsT = {|
|
|
|
57
57
|
|
|
58
58
|
export type SnackbarProviderPropsT = {|
|
|
59
59
|
children?: React.Node,
|
|
60
|
-
overrides?: {
|
|
60
|
+
overrides?: {
|
|
61
61
|
...SnackbarElementOverridesT,
|
|
62
62
|
PlacementContainer?: OverrideT,
|
|
63
|
-
|
|
63
|
+
},
|
|
64
64
|
// location on page where snackbar will render
|
|
65
65
|
placement?: PlacementT,
|
|
66
66
|
// default display duration
|
|
@@ -17,18 +17,18 @@ export type OrientationT = $Values<typeof ORIENTATION>;
|
|
|
17
17
|
export type FillT = $Values<typeof FILL>;
|
|
18
18
|
export type StateChangeT = $Values<typeof STATE_CHANGE_TYPE>;
|
|
19
19
|
|
|
20
|
-
export type TabsOverridesT = {
|
|
20
|
+
export type TabsOverridesT = {
|
|
21
21
|
Root?: OverrideT,
|
|
22
22
|
TabList?: OverrideT,
|
|
23
23
|
TabHighlight?: OverrideT,
|
|
24
24
|
TabBorder?: OverrideT,
|
|
25
|
-
|
|
25
|
+
};
|
|
26
26
|
|
|
27
|
-
export type TabOverridesT = {
|
|
27
|
+
export type TabOverridesT = {
|
|
28
28
|
Tab?: OverrideT,
|
|
29
29
|
ArtworkContainer?: OverrideT,
|
|
30
30
|
TabPanel?: OverrideT,
|
|
31
|
-
|
|
31
|
+
};
|
|
32
32
|
|
|
33
33
|
export type StatefulTabsStateT = {|
|
|
34
34
|
activeKey: React.Key,
|
|
@@ -121,9 +121,7 @@ function _main() {
|
|
|
121
121
|
|
|
122
122
|
case 34:
|
|
123
123
|
file = [];
|
|
124
|
-
file.push(
|
|
125
|
-
file.push('// @flow');
|
|
126
|
-
file.push('');
|
|
124
|
+
file.push("/*\nCopyright (c) Uber Technologies, Inc.\n\nThis source code is licensed under the MIT license found in the\nLICENSE file in the root directory of this source tree.\n*/\n// @flow\n");
|
|
127
125
|
file.push('export const zones = [');
|
|
128
126
|
|
|
129
127
|
for (_i = 0, _zones = zones; _i < _zones.length; _i++) {
|
|
@@ -131,32 +129,32 @@ function _main() {
|
|
|
131
129
|
file.push(" '".concat(zone, "',"));
|
|
132
130
|
}
|
|
133
131
|
|
|
134
|
-
file.push(']
|
|
132
|
+
file.push('];\n');
|
|
135
133
|
tzdataPath = path.join(__dirname, 'tzdata.js');
|
|
136
|
-
_context.next =
|
|
134
|
+
_context.next = 42;
|
|
137
135
|
return fs.promises.writeFile(tzdataPath, file.join('\n'));
|
|
138
136
|
|
|
139
|
-
case
|
|
140
|
-
_context.next =
|
|
137
|
+
case 42:
|
|
138
|
+
_context.next = 44;
|
|
141
139
|
return fs.promises.rmdir(tmpDir, {
|
|
142
140
|
recursive: true
|
|
143
141
|
});
|
|
144
142
|
|
|
145
|
-
case
|
|
146
|
-
_context.next =
|
|
143
|
+
case 44:
|
|
144
|
+
_context.next = 49;
|
|
147
145
|
break;
|
|
148
146
|
|
|
149
|
-
case
|
|
150
|
-
_context.prev =
|
|
147
|
+
case 46:
|
|
148
|
+
_context.prev = 46;
|
|
151
149
|
_context.t1 = _context["catch"](0);
|
|
152
150
|
console.error(_context.t1);
|
|
153
151
|
|
|
154
|
-
case
|
|
152
|
+
case 49:
|
|
155
153
|
case "end":
|
|
156
154
|
return _context.stop();
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
|
-
}, _callee, null, [[0,
|
|
157
|
+
}, _callee, null, [[0, 46], [16, 28, 31, 34]]);
|
|
160
158
|
}));
|
|
161
159
|
return _main.apply(this, arguments);
|
|
162
160
|
}
|
|
@@ -44,14 +44,19 @@ async function main() {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
const file = [];
|
|
47
|
-
file.push(
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
file.push(`/*
|
|
48
|
+
Copyright (c) Uber Technologies, Inc.
|
|
49
|
+
|
|
50
|
+
This source code is licensed under the MIT license found in the
|
|
51
|
+
LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
// @flow
|
|
54
|
+
`);
|
|
50
55
|
file.push('export const zones = [');
|
|
51
56
|
for (const zone of zones) {
|
|
52
57
|
file.push(` '${zone}',`);
|
|
53
58
|
}
|
|
54
|
-
file.push(']
|
|
59
|
+
file.push('];\n');
|
|
55
60
|
|
|
56
61
|
const tzdataPath = path.join(__dirname, 'tzdata.js');
|
|
57
62
|
await fs.promises.writeFile(tzdataPath, file.join('\n'));
|