baseui 10.3.0 → 10.7.0
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/button/styled-components.js +1 -1
- package/button/styled-components.js.flow +4 -1
- package/card/styled-components.js +0 -1
- package/card/styled-components.js.flow +0 -1
- package/combobox/combobox.js +5 -1
- package/combobox/combobox.js.flow +4 -0
- package/combobox/index.d.ts +6 -3
- package/data-table/column-datetime.js +2 -0
- package/data-table/column-datetime.js.flow +2 -0
- package/data-table/data-table.js +13 -3
- package/data-table/data-table.js.flow +20 -4
- package/data-table/types.js.flow +2 -1
- package/datepicker/calendar-header.js +255 -109
- package/datepicker/calendar-header.js.flow +282 -145
- package/datepicker/calendar.js +6 -1
- package/datepicker/calendar.js.flow +5 -1
- package/datepicker/constants.js +9 -2
- package/datepicker/constants.js.flow +7 -0
- package/datepicker/datepicker.js +135 -73
- package/datepicker/datepicker.js.flow +161 -62
- package/datepicker/day.js +2 -0
- package/datepicker/day.js.flow +2 -0
- package/datepicker/index.d.ts +8 -0
- package/datepicker/month.js +4 -0
- package/datepicker/month.js.flow +3 -0
- package/datepicker/styled-components.js +116 -56
- package/datepicker/styled-components.js.flow +101 -36
- package/datepicker/types.js.flow +18 -1
- package/datepicker/utils/calendar-header-helpers.js +51 -0
- package/datepicker/utils/calendar-header-helpers.js.flow +53 -0
- package/datepicker/utils/date-helpers.js +1 -1
- package/datepicker/utils/date-helpers.js.flow +1 -1
- package/datepicker/week.js +1 -0
- package/datepicker/week.js.flow +1 -0
- package/dnd-list/index.js.flow +2 -1
- package/dnd-list/list.js +1 -2
- package/dnd-list/list.js.flow +1 -1
- package/dnd-list/styled-components.js +1 -1
- package/dnd-list/styled-components.js.flow +1 -0
- package/drawer/close-icon.js +3 -2
- package/drawer/close-icon.js.flow +2 -2
- package/drawer/drawer.js +5 -2
- package/drawer/drawer.js.flow +2 -2
- package/es/app-nav-bar/user-menu.js +1 -0
- package/es/button/styled-components.js +1 -1
- package/es/card/styled-components.js +0 -1
- package/es/combobox/combobox.js +5 -1
- package/es/data-table/column-datetime.js +2 -0
- package/es/data-table/data-table.js +13 -3
- package/es/datepicker/calendar-header.js +204 -93
- package/es/datepicker/calendar.js +7 -2
- package/es/datepicker/constants.js +6 -1
- package/es/datepicker/datepicker.js +70 -42
- package/es/datepicker/day.js +2 -0
- package/es/datepicker/month.js +3 -0
- package/es/datepicker/styled-components.js +98 -37
- package/es/datepicker/types.js +1 -1
- package/es/datepicker/utils/calendar-header-helpers.js +34 -0
- package/es/datepicker/utils/date-helpers.js +1 -1
- package/es/datepicker/week.js +1 -0
- package/es/dnd-list/index.js +2 -1
- package/es/dnd-list/list.js +1 -2
- package/es/dnd-list/styled-components.js +1 -0
- package/es/drawer/close-icon.js +3 -2
- package/es/drawer/drawer.js +5 -2
- package/es/helper/helper.js +1 -0
- package/es/layer/layer.js +8 -0
- package/es/list/list-heading.js +17 -6
- package/es/map-marker/constants.js +69 -0
- package/es/map-marker/fixed-marker.js +98 -0
- package/es/map-marker/floating-marker.js +65 -0
- package/es/map-marker/index.js +9 -0
- package/es/map-marker/pin-head.js +108 -0
- package/es/map-marker/styled-components.js +156 -0
- package/es/map-marker/types.js +8 -0
- package/es/menu/maybe-child-menu.js +1 -0
- package/es/popover/popover.js +6 -5
- package/es/popover/stateful-container.js +8 -2
- package/es/rating/emoticon-rating.js +3 -1
- package/es/rating/star-rating.js +3 -1
- package/es/select/select-component.js +20 -5
- package/es/select/styled-components.js +34 -4
- package/es/snackbar/snackbar-context.js +16 -4
- package/es/spinner/styled-components.js +1 -1
- package/es/table-semantic/styled-components.js +6 -4
- package/es/table-semantic/table-builder.js +3 -0
- package/es/themes/dark-theme/color-component-tokens.js +1 -1
- package/es/themes/light-theme/color-component-tokens.js +9 -9
- package/es/themes/shared/lighting.js +5 -1
- package/es/timepicker/timepicker.js +16 -11
- package/es/tooltip/styled-components.js +8 -0
- package/es/tooltip/tooltip.js +1 -0
- package/esm/app-nav-bar/user-menu.js +1 -0
- package/esm/button/styled-components.js +1 -1
- package/esm/card/styled-components.js +0 -1
- package/esm/combobox/combobox.js +5 -1
- package/esm/data-table/column-datetime.js +2 -0
- package/esm/data-table/data-table.js +13 -3
- package/esm/datepicker/calendar-header.js +255 -110
- package/esm/datepicker/calendar.js +7 -2
- package/esm/datepicker/constants.js +6 -1
- package/esm/datepicker/datepicker.js +136 -74
- package/esm/datepicker/day.js +2 -0
- package/esm/datepicker/month.js +3 -0
- package/esm/datepicker/styled-components.js +112 -55
- package/esm/datepicker/types.js +1 -1
- package/esm/datepicker/utils/calendar-header-helpers.js +45 -0
- package/esm/datepicker/utils/date-helpers.js +1 -1
- package/esm/datepicker/week.js +1 -0
- package/esm/dnd-list/index.js +2 -1
- package/esm/dnd-list/list.js +1 -2
- package/esm/dnd-list/styled-components.js +1 -1
- package/esm/drawer/close-icon.js +3 -2
- package/esm/drawer/drawer.js +5 -2
- package/esm/helper/helper.js +1 -0
- package/esm/layer/layer.js +8 -0
- package/esm/list/list-heading.js +17 -6
- package/esm/map-marker/constants.js +62 -0
- package/esm/map-marker/fixed-marker.js +137 -0
- package/esm/map-marker/floating-marker.js +94 -0
- package/esm/map-marker/index.js +9 -0
- package/esm/map-marker/pin-head.js +144 -0
- package/esm/map-marker/styled-components.js +168 -0
- package/esm/map-marker/types.js +8 -0
- package/esm/menu/maybe-child-menu.js +1 -0
- package/esm/popover/popover.js +6 -5
- package/esm/popover/stateful-container.js +8 -2
- package/esm/rating/emoticon-rating.js +2 -2
- package/esm/rating/star-rating.js +2 -2
- package/esm/select/select-component.js +19 -5
- package/esm/select/styled-components.js +28 -4
- package/esm/snackbar/snackbar-context.js +16 -4
- package/esm/spinner/styled-components.js +1 -1
- package/esm/table-semantic/styled-components.js +6 -4
- package/esm/table-semantic/table-builder.js +3 -0
- package/esm/themes/dark-theme/color-component-tokens.js +1 -1
- package/esm/themes/light-theme/color-component-tokens.js +9 -9
- package/esm/themes/shared/lighting.js +5 -1
- package/esm/timepicker/timepicker.js +17 -11
- package/esm/tooltip/styled-components.js +8 -0
- package/esm/tooltip/tooltip.js +1 -0
- package/helper/helper.js +1 -0
- package/helper/helper.js.flow +1 -0
- package/layer/layer.js +8 -0
- package/layer/layer.js.flow +9 -0
- package/link/index.d.ts +1 -0
- package/list/index.d.ts +36 -0
- package/list/list-heading.js +24 -7
- package/list/list-heading.js.flow +17 -8
- package/map-marker/constants.js +82 -0
- package/map-marker/constants.js.flow +74 -0
- package/map-marker/fixed-marker.js +152 -0
- package/map-marker/fixed-marker.js.flow +137 -0
- package/map-marker/floating-marker.js +109 -0
- package/map-marker/floating-marker.js.flow +102 -0
- package/map-marker/index.d.ts +105 -0
- package/map-marker/index.js +55 -0
- package/map-marker/index.js.flow +23 -0
- package/map-marker/package.json +4 -0
- package/map-marker/pin-head.js +159 -0
- package/map-marker/pin-head.js.flow +155 -0
- package/map-marker/styled-components.js +184 -0
- package/map-marker/styled-components.js.flow +177 -0
- package/map-marker/types.js +11 -0
- package/map-marker/types.js.flow +114 -0
- package/menu/index.d.ts +7 -0
- package/menu/maybe-child-menu.js +1 -0
- package/menu/maybe-child-menu.js.flow +1 -0
- package/menu/types.js.flow +12 -0
- package/modal/index.d.ts +1 -1
- package/modal/types.js.flow +4 -1
- package/package.json +5 -3
- package/popover/index.d.ts +2 -1
- package/popover/popover.js +6 -5
- package/popover/popover.js.flow +11 -4
- package/popover/stateful-container.js +8 -2
- package/popover/stateful-container.js.flow +5 -0
- package/popover/types.js.flow +6 -1
- package/rating/emoticon-rating.js +2 -2
- package/rating/emoticon-rating.js.flow +4 -1
- package/rating/star-rating.js +2 -2
- package/rating/star-rating.js.flow +4 -1
- package/select/select-component.js +19 -5
- package/select/select-component.js.flow +19 -5
- package/select/styled-components.js +28 -4
- package/select/styled-components.js.flow +30 -2
- package/select/types.js.flow +9 -0
- package/snackbar/index.d.ts +21 -16
- package/snackbar/snackbar-context.js +15 -4
- package/snackbar/snackbar-context.js.flow +15 -3
- package/spinner/styled-components.js +1 -1
- package/spinner/styled-components.js.flow +1 -1
- package/table-semantic/styled-components.js +6 -4
- package/table-semantic/styled-components.js.flow +6 -4
- package/table-semantic/table-builder.js +3 -0
- package/table-semantic/table-builder.js.flow +3 -0
- package/themes/dark-theme/color-component-tokens.js +1 -1
- package/themes/dark-theme/color-component-tokens.js.flow +1 -1
- package/themes/light-theme/color-component-tokens.js +9 -9
- package/themes/light-theme/color-component-tokens.js.flow +9 -9
- package/themes/shared/lighting.js +5 -1
- package/themes/shared/lighting.js.flow +4 -0
- package/themes/types.js.flow +4 -0
- package/timepicker/index.d.ts +1 -0
- package/timepicker/timepicker.js +17 -11
- package/timepicker/timepicker.js.flow +31 -12
- package/timepicker/types.js.flow +10 -0
- package/tooltip/styled-components.js +8 -0
- package/tooltip/styled-components.js.flow +8 -0
- package/tooltip/tooltip.js +1 -0
- package/tooltip/tooltip.js.flow +6 -1
|
@@ -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/timepicker/index.d.ts
CHANGED
package/timepicker/timepicker.js
CHANGED
|
@@ -219,26 +219,31 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
219
219
|
_defineProperty(_assertThisInitialized(_this), "getTimeWindowInSeconds", function (step) {
|
|
220
220
|
var _this$props = _this.props,
|
|
221
221
|
min = _this$props.minTime,
|
|
222
|
-
max = _this$props.maxTime
|
|
222
|
+
max = _this$props.maxTime,
|
|
223
|
+
ignoreMinMaxDateComponent = _this$props.ignoreMinMaxDateComponent;
|
|
223
224
|
|
|
224
|
-
var
|
|
225
|
+
var dayStart = _this.setTime(_this.props.value, 0, 0, 0);
|
|
225
226
|
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
var dayEnd = _this.setTime(_this.props.value, 24, 0, 0);
|
|
228
|
+
|
|
229
|
+
if (!min || _this.props.adapter.isBefore(min, dayStart) && !ignoreMinMaxDateComponent) {
|
|
230
|
+
min = dayStart;
|
|
231
|
+
} else {
|
|
232
|
+
min = _this.setTime(_this.props.value, _this.props.adapter.getHours(min), _this.props.adapter.getMinutes(min), _this.props.adapter.getSeconds(min));
|
|
228
233
|
}
|
|
229
234
|
|
|
230
|
-
if (!max) {
|
|
231
|
-
max =
|
|
235
|
+
if (!max || _this.props.adapter.isAfter(max, dayEnd) && !ignoreMinMaxDateComponent) {
|
|
236
|
+
max = dayEnd;
|
|
232
237
|
} else {
|
|
233
|
-
// maxTime (if provided) should be inclusive, so add an extra
|
|
234
|
-
|
|
238
|
+
max = _this.setTime(_this.props.value, _this.props.adapter.getHours(max), _this.props.adapter.getMinutes(max), // maxTime (if provided) should be inclusive, so add an extra second here
|
|
239
|
+
_this.props.adapter.getSeconds(max) + 1);
|
|
235
240
|
}
|
|
236
241
|
|
|
237
242
|
var minDate = _this.props.adapter.toJsDate(min);
|
|
238
243
|
|
|
239
244
|
var maxDate = _this.props.adapter.toJsDate(max);
|
|
240
245
|
|
|
241
|
-
var midnightDate = _this.props.adapter.toJsDate(
|
|
246
|
+
var midnightDate = _this.props.adapter.toJsDate(dayStart);
|
|
242
247
|
|
|
243
248
|
return {
|
|
244
249
|
start: (minDate - midnightDate) / 1000,
|
|
@@ -325,7 +330,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
325
330
|
steps: steps,
|
|
326
331
|
value: this.props.nullable ? undefined : {
|
|
327
332
|
id: closestStep,
|
|
328
|
-
label: this.secondsToLabel(closestStep,
|
|
333
|
+
label: this.secondsToLabel(closestStep, this.props.format)
|
|
329
334
|
}
|
|
330
335
|
});
|
|
331
336
|
|
|
@@ -427,7 +432,8 @@ _defineProperty(TimePicker, "defaultProps", {
|
|
|
427
432
|
format: '12',
|
|
428
433
|
step: 900,
|
|
429
434
|
creatable: false,
|
|
430
|
-
adapter: _dateFnsAdapter.default
|
|
435
|
+
adapter: _dateFnsAdapter.default,
|
|
436
|
+
ignoreMinMaxDateComponent: false
|
|
431
437
|
});
|
|
432
438
|
|
|
433
439
|
var _default = TimePicker;
|
|
@@ -34,6 +34,7 @@ class TimePicker<T = Date> extends React.Component<
|
|
|
34
34
|
step: 900,
|
|
35
35
|
creatable: false,
|
|
36
36
|
adapter: dateFnsAdapter,
|
|
37
|
+
ignoreMinMaxDateComponent: false,
|
|
37
38
|
};
|
|
38
39
|
dateHelpers: DateHelpers<T>;
|
|
39
40
|
|
|
@@ -66,7 +67,7 @@ class TimePicker<T = Date> extends React.Component<
|
|
|
66
67
|
? undefined
|
|
67
68
|
: {
|
|
68
69
|
id: closestStep,
|
|
69
|
-
label: this.secondsToLabel(closestStep,
|
|
70
|
+
label: this.secondsToLabel(closestStep, this.props.format),
|
|
70
71
|
},
|
|
71
72
|
});
|
|
72
73
|
if (this.props.value || (!this.props.nullable && !this.props.value)) {
|
|
@@ -200,24 +201,42 @@ class TimePicker<T = Date> extends React.Component<
|
|
|
200
201
|
};
|
|
201
202
|
|
|
202
203
|
getTimeWindowInSeconds = (step: number): {start: number, end: number} => {
|
|
203
|
-
let {minTime: min, maxTime: max} = this.props;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
let {minTime: min, maxTime: max, ignoreMinMaxDateComponent} = this.props;
|
|
205
|
+
const dayStart = this.setTime(this.props.value, 0, 0, 0);
|
|
206
|
+
const dayEnd = this.setTime(this.props.value, 24, 0, 0);
|
|
207
|
+
|
|
208
|
+
if (
|
|
209
|
+
!min ||
|
|
210
|
+
(this.props.adapter.isBefore(min, dayStart) && !ignoreMinMaxDateComponent)
|
|
211
|
+
) {
|
|
212
|
+
min = dayStart;
|
|
213
|
+
} else {
|
|
214
|
+
min = this.setTime(
|
|
215
|
+
this.props.value,
|
|
216
|
+
this.props.adapter.getHours(min),
|
|
217
|
+
this.props.adapter.getMinutes(min),
|
|
218
|
+
this.props.adapter.getSeconds(min),
|
|
219
|
+
);
|
|
207
220
|
}
|
|
208
|
-
|
|
209
|
-
|
|
221
|
+
|
|
222
|
+
if (
|
|
223
|
+
!max ||
|
|
224
|
+
(this.props.adapter.isAfter(max, dayEnd) && !ignoreMinMaxDateComponent)
|
|
225
|
+
) {
|
|
226
|
+
max = dayEnd;
|
|
210
227
|
} else {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
this.props.adapter.
|
|
214
|
-
this.props.adapter.
|
|
228
|
+
max = this.setTime(
|
|
229
|
+
this.props.value,
|
|
230
|
+
this.props.adapter.getHours(max),
|
|
231
|
+
this.props.adapter.getMinutes(max),
|
|
232
|
+
// maxTime (if provided) should be inclusive, so add an extra second here
|
|
233
|
+
this.props.adapter.getSeconds(max) + 1,
|
|
215
234
|
);
|
|
216
235
|
}
|
|
217
236
|
|
|
218
237
|
const minDate = this.props.adapter.toJsDate(min);
|
|
219
238
|
const maxDate = this.props.adapter.toJsDate(max);
|
|
220
|
-
const midnightDate = this.props.adapter.toJsDate(
|
|
239
|
+
const midnightDate = this.props.adapter.toJsDate(dayStart);
|
|
221
240
|
return {
|
|
222
241
|
start: (minDate - midnightDate) / 1000,
|
|
223
242
|
end: (maxDate - midnightDate) / 1000,
|
package/timepicker/types.js.flow
CHANGED
|
@@ -37,6 +37,15 @@ export type TimePickerPropsT<T = Date> = {
|
|
|
37
37
|
size?: SizeT,
|
|
38
38
|
minTime?: T,
|
|
39
39
|
maxTime?: T,
|
|
40
|
+
/**
|
|
41
|
+
* There are two strategies available for setting min/max times. If the min/max datetimes are
|
|
42
|
+
* beyond the start/end times of the current value's date, Timepicker could either clamp the
|
|
43
|
+
* min/max time of the start/end of the day or it can ignore the min/max date components and
|
|
44
|
+
* only apply the time components. Each strategy has the potential to save developer time in
|
|
45
|
+
* avoiding the need to perform conversion before providing min/max datetimes to the component.
|
|
46
|
+
* By default the component will clamp the time window and setting this flag will ignore dates.
|
|
47
|
+
*/
|
|
48
|
+
ignoreMinMaxDateComponent?: boolean,
|
|
40
49
|
};
|
|
41
50
|
export type TimePickerStateT = {
|
|
42
51
|
/** List of times (in seconds) displayed in the dropdown menu. */
|
|
@@ -50,6 +59,7 @@ export type TimePickerDefaultPropsT = {
|
|
|
50
59
|
step: 900,
|
|
51
60
|
creatable: false,
|
|
52
61
|
adapter: DateIOAdapter<Date>,
|
|
62
|
+
ignoreMinMaxDateComponent: false,
|
|
53
63
|
};
|
|
54
64
|
|
|
55
65
|
declare var __DEV__: boolean;
|
|
@@ -31,6 +31,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
31
31
|
var Body = (0, _index.styled)('div', function (props) {
|
|
32
32
|
return _objectSpread(_objectSpread({}, (0, _styledComponents.getBodyStyles)(props)), {}, {
|
|
33
33
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
34
|
+
borderTopLeftRadius: props.$theme.borders.radius300,
|
|
35
|
+
borderTopRightRadius: props.$theme.borders.radius300,
|
|
36
|
+
borderBottomRightRadius: props.$theme.borders.radius300,
|
|
37
|
+
borderBottomLeftRadius: props.$theme.borders.radius300,
|
|
34
38
|
boxShadow: props.$theme.lighting.shadow400,
|
|
35
39
|
color: props.$theme.colors.tooltipText,
|
|
36
40
|
// Reset transition property to opacity only, and static transform
|
|
@@ -43,6 +47,10 @@ Body.displayName = "Body";
|
|
|
43
47
|
var Inner = (0, _index.styled)('div', function (props) {
|
|
44
48
|
return _objectSpread(_objectSpread(_objectSpread({}, (0, _styledComponents.getInnerStyles)(props)), {}, {
|
|
45
49
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
50
|
+
borderTopLeftRadius: props.$theme.borders.radius300,
|
|
51
|
+
borderTopRightRadius: props.$theme.borders.radius300,
|
|
52
|
+
borderBottomRightRadius: props.$theme.borders.radius300,
|
|
53
|
+
borderBottomLeftRadius: props.$theme.borders.radius300,
|
|
46
54
|
paddingTop: props.$theme.sizing.scale300,
|
|
47
55
|
paddingBottom: props.$theme.sizing.scale300,
|
|
48
56
|
paddingLeft: props.$theme.sizing.scale600,
|
|
@@ -28,6 +28,10 @@ import type {SharedStylePropsArgT} from '../popover/types.js';
|
|
|
28
28
|
export const Body = styled<SharedStylePropsArgT>('div', props => ({
|
|
29
29
|
...getBodyStyles(props),
|
|
30
30
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
31
|
+
borderTopLeftRadius: props.$theme.borders.radius300,
|
|
32
|
+
borderTopRightRadius: props.$theme.borders.radius300,
|
|
33
|
+
borderBottomRightRadius: props.$theme.borders.radius300,
|
|
34
|
+
borderBottomLeftRadius: props.$theme.borders.radius300,
|
|
31
35
|
boxShadow: props.$theme.lighting.shadow400,
|
|
32
36
|
color: props.$theme.colors.tooltipText,
|
|
33
37
|
// Reset transition property to opacity only, and static transform
|
|
@@ -38,6 +42,10 @@ export const Body = styled<SharedStylePropsArgT>('div', props => ({
|
|
|
38
42
|
export const Inner = styled<SharedStylePropsArgT>('div', props => ({
|
|
39
43
|
...getInnerStyles(props),
|
|
40
44
|
backgroundColor: props.$theme.colors.tooltipBackground,
|
|
45
|
+
borderTopLeftRadius: props.$theme.borders.radius300,
|
|
46
|
+
borderTopRightRadius: props.$theme.borders.radius300,
|
|
47
|
+
borderBottomRightRadius: props.$theme.borders.radius300,
|
|
48
|
+
borderBottomLeftRadius: props.$theme.borders.radius300,
|
|
41
49
|
paddingTop: props.$theme.sizing.scale300,
|
|
42
50
|
paddingBottom: props.$theme.sizing.scale300,
|
|
43
51
|
paddingLeft: props.$theme.sizing.scale600,
|
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
|
}
|