baseui 0.0.0-next-ed8d41d → 0.0.0-next-8a2a1dc
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/user-menu.js +1 -0
- package/app-nav-bar/user-menu.js.flow +1 -0
- package/data-table/column-datetime.js +2 -0
- package/data-table/column-datetime.js.flow +2 -0
- package/datepicker/datepicker.js +1 -0
- package/datepicker/datepicker.js.flow +1 -0
- package/es/app-nav-bar/user-menu.js +1 -0
- package/es/data-table/column-datetime.js +2 -0
- package/es/datepicker/datepicker.js +1 -0
- package/es/helper/helper.js +1 -0
- package/es/menu/maybe-child-menu.js +1 -0
- package/es/popover/popover.js +3 -3
- package/es/select/select-component.js +1 -0
- package/es/themes/shared/lighting.js +5 -1
- package/es/tooltip/tooltip.js +1 -0
- package/esm/app-nav-bar/user-menu.js +1 -0
- package/esm/data-table/column-datetime.js +2 -0
- package/esm/datepicker/datepicker.js +1 -0
- package/esm/helper/helper.js +1 -0
- package/esm/menu/maybe-child-menu.js +1 -0
- package/esm/popover/popover.js +3 -3
- package/esm/select/select-component.js +1 -0
- package/esm/themes/shared/lighting.js +5 -1
- package/esm/tooltip/tooltip.js +1 -0
- package/helper/helper.js +1 -0
- package/helper/helper.js.flow +1 -0
- package/menu/maybe-child-menu.js +1 -0
- package/menu/maybe-child-menu.js.flow +1 -0
- package/package.json +2 -1
- package/popover/popover.js +3 -3
- package/popover/popover.js.flow +9 -3
- package/select/select-component.js +1 -0
- package/select/select-component.js.flow +1 -0
- package/themes/shared/lighting.js +5 -1
- package/themes/shared/lighting.js.flow +4 -0
- package/themes/types.js.flow +4 -0
- package/tooltip/tooltip.js +1 -0
- package/tooltip/tooltip.js.flow +6 -1
package/app-nav-bar/user-menu.js
CHANGED
|
@@ -86,6 +86,7 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
86
86
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
87
87
|
|
|
88
88
|
var DATE_FORMAT = 'MM-dd-yyyy';
|
|
89
|
+
var MASK = '99-99-9999 - 99-99-9999';
|
|
89
90
|
var TIME_FORMAT = 'HH:mm ss:SS';
|
|
90
91
|
var FORMAT_STRING = "".concat(DATE_FORMAT, " ").concat(TIME_FORMAT);
|
|
91
92
|
|
|
@@ -461,6 +462,7 @@ function DatetimeFilter(props) {
|
|
|
461
462
|
}
|
|
462
463
|
},
|
|
463
464
|
formatString: DATE_FORMAT,
|
|
465
|
+
mask: MASK,
|
|
464
466
|
placeholder: "MM-DD-YYYY - MM-DD-YYYY",
|
|
465
467
|
minDate: datesSorted[0],
|
|
466
468
|
maxDate: datesSorted[datesSorted.length - 1],
|
|
@@ -68,6 +68,7 @@ type FilterParametersT = {|
|
|
|
68
68
|
type DatetimeColumnT = ColumnT<Date, FilterParametersT>;
|
|
69
69
|
|
|
70
70
|
const DATE_FORMAT = 'MM-dd-yyyy';
|
|
71
|
+
const MASK = '99-99-9999 - 99-99-9999';
|
|
71
72
|
const TIME_FORMAT = 'HH:mm ss:SS';
|
|
72
73
|
const FORMAT_STRING = `${DATE_FORMAT} ${TIME_FORMAT}`;
|
|
73
74
|
|
|
@@ -415,6 +416,7 @@ function DatetimeFilter(props) {
|
|
|
415
416
|
}
|
|
416
417
|
}}
|
|
417
418
|
formatString={DATE_FORMAT}
|
|
419
|
+
mask={MASK}
|
|
418
420
|
placeholder="MM-DD-YYYY - MM-DD-YYYY"
|
|
419
421
|
minDate={datesSorted[0]}
|
|
420
422
|
maxDate={datesSorted[datesSorted.length - 1]}
|
package/datepicker/datepicker.js
CHANGED
|
@@ -592,6 +592,7 @@ var Datepicker = /*#__PURE__*/function (_React$Component) {
|
|
|
592
592
|
return /*#__PURE__*/React.createElement(_index3.LocaleContext.Consumer, null, function (locale) {
|
|
593
593
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PopoverComponent, _extends({
|
|
594
594
|
focusLock: false,
|
|
595
|
+
autoFocus: false,
|
|
595
596
|
mountNode: _this4.props.mountNode,
|
|
596
597
|
placement: _index2.PLACEMENT.bottom,
|
|
597
598
|
isOpen: _this4.state.isOpen,
|
|
@@ -519,6 +519,7 @@ export default class Datepicker<T = Date> extends React.Component<
|
|
|
519
519
|
<React.Fragment>
|
|
520
520
|
<PopoverComponent
|
|
521
521
|
focusLock={false}
|
|
522
|
+
autoFocus={false}
|
|
522
523
|
mountNode={this.props.mountNode}
|
|
523
524
|
placement={PLACEMENT.bottom}
|
|
524
525
|
isOpen={this.state.isOpen}
|
|
@@ -29,6 +29,7 @@ import { COLUMNS, DATETIME_OPERATIONS } from './constants.js';
|
|
|
29
29
|
import FilterShell from './filter-shell.js';
|
|
30
30
|
import { LocaleContext } from '../locale/index.js';
|
|
31
31
|
const DATE_FORMAT = 'MM-dd-yyyy';
|
|
32
|
+
const MASK = '99-99-9999 - 99-99-9999';
|
|
32
33
|
const TIME_FORMAT = 'HH:mm ss:SS';
|
|
33
34
|
const FORMAT_STRING = `${DATE_FORMAT} ${TIME_FORMAT}`;
|
|
34
35
|
|
|
@@ -326,6 +327,7 @@ function DatetimeFilter(props) {
|
|
|
326
327
|
}
|
|
327
328
|
},
|
|
328
329
|
formatString: DATE_FORMAT,
|
|
330
|
+
mask: MASK,
|
|
329
331
|
placeholder: "MM-DD-YYYY - MM-DD-YYYY",
|
|
330
332
|
minDate: datesSorted[0],
|
|
331
333
|
maxDate: datesSorted[datesSorted.length - 1],
|
|
@@ -440,6 +440,7 @@ export default class Datepicker extends React.Component {
|
|
|
440
440
|
const [InputLabel, inputLabelProps] = getOverrides(overrides.InputLabel, StyledInputLabel);
|
|
441
441
|
return /*#__PURE__*/React.createElement(LocaleContext.Consumer, null, locale => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PopoverComponent, _extends({
|
|
442
442
|
focusLock: false,
|
|
443
|
+
autoFocus: false,
|
|
443
444
|
mountNode: this.props.mountNode,
|
|
444
445
|
placement: PLACEMENT.bottom,
|
|
445
446
|
isOpen: this.state.isOpen,
|
package/es/helper/helper.js
CHANGED
|
@@ -28,6 +28,7 @@ export default function MaybeChildMenu(props) {
|
|
|
28
28
|
return /*#__PURE__*/React.createElement(NestedMenuContext.Consumer, null, ctx => {
|
|
29
29
|
return /*#__PURE__*/React.createElement(PopoverOverride, _extends({
|
|
30
30
|
focusLock: false,
|
|
31
|
+
autoFocus: false,
|
|
31
32
|
isOpen: props.isOpen,
|
|
32
33
|
renderAll: props.renderAll,
|
|
33
34
|
content: ChildMenu,
|
package/es/popover/popover.js
CHANGED
|
@@ -13,7 +13,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
13
13
|
|
|
14
14
|
/* eslint-disable cup/no-undef */
|
|
15
15
|
import * as React from 'react';
|
|
16
|
-
import FocusLock from 'react-focus-lock';
|
|
16
|
+
import FocusLock, { MoveFocusInside } from 'react-focus-lock';
|
|
17
17
|
import { getOverride, getOverrideProps } from '../helpers/overrides.js';
|
|
18
18
|
import { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE, ANIMATE_OUT_TIME, ANIMATE_IN_TIME, POPOVER_MARGIN } from './constants.js';
|
|
19
19
|
import { Layer, TetherBehavior } from '../layer/index.js';
|
|
@@ -156,7 +156,7 @@ class PopoverInner extends React.Component {
|
|
|
156
156
|
componentDidUpdate(prevProps, prevState) {
|
|
157
157
|
this.init(prevProps, prevState);
|
|
158
158
|
|
|
159
|
-
if (this.props.autoFocus &&
|
|
159
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
160
160
|
this.setState({
|
|
161
161
|
autoFocusAfterPositioning: true
|
|
162
162
|
});
|
|
@@ -453,7 +453,7 @@ class PopoverInner extends React.Component {
|
|
|
453
453
|
,
|
|
454
454
|
returnFocus: this.props.returnFocus && !this.isHoverTrigger(),
|
|
455
455
|
autoFocus: this.state.autoFocusAfterPositioning
|
|
456
|
-
}, this.renderPopover(renderedContent)))));
|
|
456
|
+
}, !this.props.focusLock && this.state.autoFocusAfterPositioning ? /*#__PURE__*/React.createElement(MoveFocusInside, null, this.renderPopover(renderedContent)) : this.renderPopover(renderedContent)))));
|
|
457
457
|
} else {
|
|
458
458
|
rendered.push( /*#__PURE__*/React.createElement(Hidden, {
|
|
459
459
|
key: "hidden-layer"
|
|
@@ -15,6 +15,10 @@ const lighting = {
|
|
|
15
15
|
overlay300: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)',
|
|
16
16
|
overlay400: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)',
|
|
17
17
|
overlay500: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)',
|
|
18
|
-
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)'
|
|
18
|
+
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)',
|
|
19
|
+
shallowAbove: '0px -4px 16px rgba(0, 0, 0, 0.12)',
|
|
20
|
+
shallowBelow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
|
|
21
|
+
deepAbove: '0px -16px 48px rgba(0, 0, 0, 0.22)',
|
|
22
|
+
deepBelow: '0px 16px 48px rgba(0, 0, 0, 0.22)'
|
|
19
23
|
};
|
|
20
24
|
export default lighting;
|
package/es/tooltip/tooltip.js
CHANGED
|
@@ -55,6 +55,7 @@ import { COLUMNS, DATETIME_OPERATIONS } from './constants.js';
|
|
|
55
55
|
import FilterShell from './filter-shell.js';
|
|
56
56
|
import { LocaleContext } from '../locale/index.js';
|
|
57
57
|
var DATE_FORMAT = 'MM-dd-yyyy';
|
|
58
|
+
var MASK = '99-99-9999 - 99-99-9999';
|
|
58
59
|
var TIME_FORMAT = 'HH:mm ss:SS';
|
|
59
60
|
var FORMAT_STRING = "".concat(DATE_FORMAT, " ").concat(TIME_FORMAT);
|
|
60
61
|
|
|
@@ -430,6 +431,7 @@ function DatetimeFilter(props) {
|
|
|
430
431
|
}
|
|
431
432
|
},
|
|
432
433
|
formatString: DATE_FORMAT,
|
|
434
|
+
mask: MASK,
|
|
433
435
|
placeholder: "MM-DD-YYYY - MM-DD-YYYY",
|
|
434
436
|
minDate: datesSorted[0],
|
|
435
437
|
maxDate: datesSorted[datesSorted.length - 1],
|
|
@@ -574,6 +574,7 @@ var Datepicker = /*#__PURE__*/function (_React$Component) {
|
|
|
574
574
|
return /*#__PURE__*/React.createElement(LocaleContext.Consumer, null, function (locale) {
|
|
575
575
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PopoverComponent, _extends({
|
|
576
576
|
focusLock: false,
|
|
577
|
+
autoFocus: false,
|
|
577
578
|
mountNode: _this4.props.mountNode,
|
|
578
579
|
placement: PLACEMENT.bottom,
|
|
579
580
|
isOpen: _this4.state.isOpen,
|
package/esm/helper/helper.js
CHANGED
|
@@ -44,6 +44,7 @@ export default function MaybeChildMenu(props) {
|
|
|
44
44
|
return /*#__PURE__*/React.createElement(NestedMenuContext.Consumer, null, function (ctx) {
|
|
45
45
|
return /*#__PURE__*/React.createElement(PopoverOverride, _extends({
|
|
46
46
|
focusLock: false,
|
|
47
|
+
autoFocus: false,
|
|
47
48
|
isOpen: props.isOpen,
|
|
48
49
|
renderAll: props.renderAll,
|
|
49
50
|
content: ChildMenu,
|
package/esm/popover/popover.js
CHANGED
|
@@ -39,7 +39,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
39
39
|
|
|
40
40
|
/* eslint-disable cup/no-undef */
|
|
41
41
|
import * as React from 'react';
|
|
42
|
-
import FocusLock from 'react-focus-lock';
|
|
42
|
+
import FocusLock, { MoveFocusInside } from 'react-focus-lock';
|
|
43
43
|
import { getOverride, getOverrideProps } from '../helpers/overrides.js';
|
|
44
44
|
import { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE, ANIMATE_OUT_TIME, ANIMATE_IN_TIME, POPOVER_MARGIN } from './constants.js';
|
|
45
45
|
import { Layer, TetherBehavior } from '../layer/index.js';
|
|
@@ -202,7 +202,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
202
202
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
203
203
|
this.init(prevProps, prevState);
|
|
204
204
|
|
|
205
|
-
if (this.props.autoFocus &&
|
|
205
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
206
206
|
this.setState({
|
|
207
207
|
autoFocusAfterPositioning: true
|
|
208
208
|
});
|
|
@@ -516,7 +516,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
516
516
|
,
|
|
517
517
|
returnFocus: this.props.returnFocus && !this.isHoverTrigger(),
|
|
518
518
|
autoFocus: this.state.autoFocusAfterPositioning
|
|
519
|
-
}, this.renderPopover(renderedContent)))));
|
|
519
|
+
}, !this.props.focusLock && this.state.autoFocusAfterPositioning ? /*#__PURE__*/React.createElement(MoveFocusInside, null, this.renderPopover(renderedContent)) : this.renderPopover(renderedContent)))));
|
|
520
520
|
} else {
|
|
521
521
|
rendered.push( /*#__PURE__*/React.createElement(Hidden, {
|
|
522
522
|
key: "hidden-layer"
|
|
@@ -15,6 +15,10 @@ var lighting = {
|
|
|
15
15
|
overlay300: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)',
|
|
16
16
|
overlay400: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)',
|
|
17
17
|
overlay500: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)',
|
|
18
|
-
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)'
|
|
18
|
+
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)',
|
|
19
|
+
shallowAbove: '0px -4px 16px rgba(0, 0, 0, 0.12)',
|
|
20
|
+
shallowBelow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
|
|
21
|
+
deepAbove: '0px -16px 48px rgba(0, 0, 0, 0.22)',
|
|
22
|
+
deepBelow: '0px 16px 48px rgba(0, 0, 0, 0.22)'
|
|
19
23
|
};
|
|
20
24
|
export default lighting;
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -62,6 +62,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
62
62
|
Inner: StyledInner
|
|
63
63
|
}, this.props.overrides);
|
|
64
64
|
return /*#__PURE__*/React.createElement(Popover, _extends({
|
|
65
|
+
autoFocus: false,
|
|
65
66
|
"data-baseweb": "tooltip"
|
|
66
67
|
}, this.props, {
|
|
67
68
|
overrides: overrides
|
package/helper/helper.js
CHANGED
package/helper/helper.js.flow
CHANGED
package/menu/maybe-child-menu.js
CHANGED
|
@@ -55,6 +55,7 @@ function MaybeChildMenu(props) {
|
|
|
55
55
|
return /*#__PURE__*/React.createElement(_nestedMenus.NestedMenuContext.Consumer, null, function (ctx) {
|
|
56
56
|
return /*#__PURE__*/React.createElement(PopoverOverride, _extends({
|
|
57
57
|
focusLock: false,
|
|
58
|
+
autoFocus: false,
|
|
58
59
|
isOpen: props.isOpen,
|
|
59
60
|
renderAll: props.renderAll,
|
|
60
61
|
content: ChildMenu,
|
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-8a2a1dc",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
"glob": "^7.1.6",
|
|
198
198
|
"just-extend": "^4.0.2",
|
|
199
199
|
"memoize-one": "^5.1.1",
|
|
200
|
+
"mockdate": "^3.0.5",
|
|
200
201
|
"polished": "^3.2.0",
|
|
201
202
|
"popper.js": "^1.16.0",
|
|
202
203
|
"react-dropzone": "^9.0.0",
|
package/popover/popover.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
|
-
var _reactFocusLock =
|
|
10
|
+
var _reactFocusLock = _interopRequireWildcard(require("react-focus-lock"));
|
|
11
11
|
|
|
12
12
|
var _overrides = require("../helpers/overrides.js");
|
|
13
13
|
|
|
@@ -213,7 +213,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
213
213
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
214
214
|
this.init(prevProps, prevState);
|
|
215
215
|
|
|
216
|
-
if (this.props.autoFocus &&
|
|
216
|
+
if (this.props.autoFocus && !this.state.autoFocusAfterPositioning && this.popperRef.current !== null && this.popperRef.current.getBoundingClientRect().top > 0) {
|
|
217
217
|
this.setState({
|
|
218
218
|
autoFocusAfterPositioning: true
|
|
219
219
|
});
|
|
@@ -531,7 +531,7 @@ var PopoverInner = /*#__PURE__*/function (_React$Component) {
|
|
|
531
531
|
,
|
|
532
532
|
returnFocus: this.props.returnFocus && !this.isHoverTrigger(),
|
|
533
533
|
autoFocus: this.state.autoFocusAfterPositioning
|
|
534
|
-
}, this.renderPopover(renderedContent)))));
|
|
534
|
+
}, !this.props.focusLock && this.state.autoFocusAfterPositioning ? /*#__PURE__*/React.createElement(_reactFocusLock.MoveFocusInside, null, this.renderPopover(renderedContent)) : this.renderPopover(renderedContent)))));
|
|
535
535
|
} else {
|
|
536
536
|
rendered.push( /*#__PURE__*/React.createElement(_styledComponents.Hidden, {
|
|
537
537
|
key: "hidden-layer"
|
package/popover/popover.js.flow
CHANGED
|
@@ -8,7 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
/* eslint-disable react/no-find-dom-node */
|
|
9
9
|
/* eslint-disable cup/no-undef */
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import FocusLock from 'react-focus-lock';
|
|
11
|
+
import FocusLock, {MoveFocusInside} from 'react-focus-lock';
|
|
12
12
|
|
|
13
13
|
import {getOverride, getOverrideProps} from '../helpers/overrides.js';
|
|
14
14
|
import {
|
|
@@ -73,7 +73,6 @@ class PopoverInner extends React.Component<
|
|
|
73
73
|
this.init(prevProps, prevState);
|
|
74
74
|
if (
|
|
75
75
|
this.props.autoFocus &&
|
|
76
|
-
this.props.focusLock &&
|
|
77
76
|
!this.state.autoFocusAfterPositioning &&
|
|
78
77
|
this.popperRef.current !== null &&
|
|
79
78
|
this.popperRef.current.getBoundingClientRect().top > 0
|
|
@@ -478,7 +477,14 @@ class PopoverInner extends React.Component<
|
|
|
478
477
|
returnFocus={this.props.returnFocus && !this.isHoverTrigger()}
|
|
479
478
|
autoFocus={this.state.autoFocusAfterPositioning}
|
|
480
479
|
>
|
|
481
|
-
{this.
|
|
480
|
+
{!this.props.focusLock &&
|
|
481
|
+
this.state.autoFocusAfterPositioning ? (
|
|
482
|
+
<MoveFocusInside>
|
|
483
|
+
{this.renderPopover(renderedContent)}
|
|
484
|
+
</MoveFocusInside>
|
|
485
|
+
) : (
|
|
486
|
+
this.renderPopover(renderedContent)
|
|
487
|
+
)}
|
|
482
488
|
</FocusLock>
|
|
483
489
|
</TetherBehavior>
|
|
484
490
|
</Layer>,
|
|
@@ -22,7 +22,11 @@ var lighting = {
|
|
|
22
22
|
overlay300: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)',
|
|
23
23
|
overlay400: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)',
|
|
24
24
|
overlay500: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)',
|
|
25
|
-
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)'
|
|
25
|
+
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)',
|
|
26
|
+
shallowAbove: '0px -4px 16px rgba(0, 0, 0, 0.12)',
|
|
27
|
+
shallowBelow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
|
|
28
|
+
deepAbove: '0px -16px 48px rgba(0, 0, 0, 0.22)',
|
|
29
|
+
deepBelow: '0px 16px 48px rgba(0, 0, 0, 0.22)'
|
|
26
30
|
};
|
|
27
31
|
var _default = lighting;
|
|
28
32
|
exports.default = _default;
|
|
@@ -19,6 +19,10 @@ const lighting: LightingT = {
|
|
|
19
19
|
overlay400: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)',
|
|
20
20
|
overlay500: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)',
|
|
21
21
|
overlay600: 'inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)',
|
|
22
|
+
shallowAbove: '0px -4px 16px rgba(0, 0, 0, 0.12)',
|
|
23
|
+
shallowBelow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
|
|
24
|
+
deepAbove: '0px -16px 48px rgba(0, 0, 0, 0.22)',
|
|
25
|
+
deepBelow: '0px 16px 48px rgba(0, 0, 0, 0.22)',
|
|
22
26
|
};
|
|
23
27
|
|
|
24
28
|
export default lighting;
|
package/themes/types.js.flow
CHANGED
package/tooltip/tooltip.js
CHANGED
|
@@ -71,6 +71,7 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
71
71
|
Inner: _styledComponents.Inner
|
|
72
72
|
}, this.props.overrides);
|
|
73
73
|
return /*#__PURE__*/React.createElement(_index.Popover, _extends({
|
|
74
|
+
autoFocus: false,
|
|
74
75
|
"data-baseweb": "tooltip"
|
|
75
76
|
}, this.props, {
|
|
76
77
|
overrides: overrides
|
package/tooltip/tooltip.js.flow
CHANGED
|
@@ -32,7 +32,12 @@ class Tooltip extends React.Component<TooltipPropsT> {
|
|
|
32
32
|
this.props.overrides,
|
|
33
33
|
);
|
|
34
34
|
return (
|
|
35
|
-
<Popover
|
|
35
|
+
<Popover
|
|
36
|
+
autoFocus={false}
|
|
37
|
+
data-baseweb="tooltip"
|
|
38
|
+
{...this.props}
|
|
39
|
+
overrides={overrides}
|
|
40
|
+
/>
|
|
36
41
|
);
|
|
37
42
|
}
|
|
38
43
|
}
|