@datarobot/design-system 28.11.0 → 29.0.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/cjs/alert/alert.js +1 -1
- package/cjs/closable-tabs/closable-tabs.js +1 -1
- package/cjs/datetime-range-picker/datetime-range-picker-button.js +1 -1
- package/cjs/datetime-range-picker/datetime-range-picker-input.js +1 -1
- package/cjs/export-button/export-button.d.ts +3 -1
- package/cjs/export-button/export-button.js +4 -3
- package/cjs/floating-panel/floating-panel-dock-button.js +1 -1
- package/cjs/floating-panel/floating-panel-drag-handle.d.ts +3 -3
- package/cjs/floating-panel/floating-panel-drag-handle.js +3 -4
- package/cjs/floating-panel/floating-panel-header.d.ts +2 -0
- package/cjs/floating-panel/floating-panel-header.js +5 -2
- package/cjs/floating-panel/floating-panel.d.ts +6 -1
- package/cjs/floating-panel/floating-panel.js +4 -1
- package/cjs/inline-edit/inline-edit.js +2 -2
- package/cjs/message/index.d.ts +2 -2
- package/cjs/message/index.js +6 -0
- package/cjs/message/message.d.ts +17 -1
- package/cjs/message/message.js +27 -16
- package/cjs/notification-popup/notification-popup.js +1 -1
- package/cjs/pagination-new/pagination-new.js +2 -2
- package/cjs/scheduler/button-switcher.d.ts +3 -1
- package/cjs/scheduler/button-switcher.js +4 -5
- package/cjs/scheduler/scheduler.d.ts +4 -1
- package/cjs/scheduler/scheduler.js +8 -2
- package/cjs/scheduler/with-button-switcher-scheduler-container.d.ts +4 -1
- package/cjs/scheduler/with-button-switcher-scheduler-container.js +6 -2
- package/cjs/sidebar-menu/sidebar-menu-item-edit-form.js +2 -2
- package/cjs/sidebar-menu/sidebar-menu-link.js +2 -2
- package/cjs/table-react/components/custom-cells/row-expand-cell.js +1 -1
- package/cjs/tour/advanced-tour/components/advanced-tour-footer.js +2 -2
- package/cjs/tour/components/tour-footer.js +3 -3
- package/cjs/zoom-controls/zoom-controls.d.ts +5 -1
- package/cjs/zoom-controls/zoom-controls.js +8 -5
- package/esm/alert/alert.js +1 -1
- package/esm/closable-tabs/closable-tabs.js +1 -1
- package/esm/datetime-range-picker/datetime-range-picker-button.js +1 -1
- package/esm/datetime-range-picker/datetime-range-picker-input.js +1 -1
- package/esm/export-button/export-button.d.ts +3 -1
- package/esm/export-button/export-button.js +4 -3
- package/esm/floating-panel/floating-panel-dock-button.js +1 -1
- package/esm/floating-panel/floating-panel-drag-handle.d.ts +3 -3
- package/esm/floating-panel/floating-panel-drag-handle.js +3 -4
- package/esm/floating-panel/floating-panel-header.d.ts +2 -0
- package/esm/floating-panel/floating-panel-header.js +5 -2
- package/esm/floating-panel/floating-panel.d.ts +6 -1
- package/esm/floating-panel/floating-panel.js +4 -1
- package/esm/inline-edit/inline-edit.js +2 -2
- package/esm/message/index.d.ts +2 -2
- package/esm/message/index.js +2 -2
- package/esm/message/message.d.ts +17 -1
- package/esm/message/message.js +26 -15
- package/esm/notification-popup/notification-popup.js +1 -1
- package/esm/pagination-new/pagination-new.js +2 -2
- package/esm/scheduler/button-switcher.d.ts +3 -1
- package/esm/scheduler/button-switcher.js +4 -5
- package/esm/scheduler/scheduler.d.ts +4 -1
- package/esm/scheduler/scheduler.js +8 -2
- package/esm/scheduler/with-button-switcher-scheduler-container.d.ts +4 -1
- package/esm/scheduler/with-button-switcher-scheduler-container.js +6 -2
- package/esm/sidebar-menu/sidebar-menu-item-edit-form.js +2 -2
- package/esm/sidebar-menu/sidebar-menu-link.js +2 -2
- package/esm/table-react/components/custom-cells/row-expand-cell.js +1 -1
- package/esm/tour/advanced-tour/components/advanced-tour-footer.js +2 -2
- package/esm/tour/components/tour-footer.js +3 -3
- package/esm/zoom-controls/zoom-controls.d.ts +5 -1
- package/esm/zoom-controls/zoom-controls.js +8 -5
- package/js/bundle/bundle.js +251 -338
- package/js/bundle/bundle.min.js +1 -1
- package/js/bundle/index.d.ts +31 -6
- package/js/midnight-gray/midnight-gray.min.js +1 -1
- package/package.json +1 -3
- package/styles/index.css +2 -2
- package/styles/index.min.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { faCircleXmark } from '@fortawesome/free-solid-svg-icons/faCircleXmark';
|
|
4
4
|
import { FontAwesomeIcon } from '../font-awesome-icon';
|
|
5
5
|
import { getTabIndex } from '../hooks/use-non-native-button-attrs';
|
|
6
6
|
import { useTranslation } from '../hooks/use-translation';
|
|
@@ -31,7 +31,7 @@ export function SidebarMenuLink({
|
|
|
31
31
|
"test-id": testId,
|
|
32
32
|
tabIndex: getTabIndex(isDisabled),
|
|
33
33
|
children: [children, hasErrors() ? /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
34
|
-
icon:
|
|
34
|
+
icon: faCircleXmark,
|
|
35
35
|
className: "sidebar-menu-link-error-icon",
|
|
36
36
|
"aria-label": sectionErrorAriaLabel ?? t('Section has errors'),
|
|
37
37
|
"aria-hidden": "false"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { faChevronRight } from '@fortawesome/
|
|
2
|
+
import { faChevronRight } from '@fortawesome/free-solid-svg-icons/faChevronRight';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { ACCENT_TYPES, Button } from '../../../button';
|
|
5
5
|
import { FontAwesomeIcon } from '../../../font-awesome-icon';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { faChevronRight } from '@fortawesome/
|
|
4
|
-
import { faChevronLeft } from '@fortawesome/
|
|
3
|
+
import { faChevronRight } from '@fortawesome/free-solid-svg-icons/faChevronRight';
|
|
4
|
+
import { faChevronLeft } from '@fortawesome/free-solid-svg-icons/faChevronLeft';
|
|
5
5
|
import { Button, ACCENT_TYPES } from '../../../button';
|
|
6
6
|
import { useTranslation } from '../../../hooks/use-translation';
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { faChevronRight } from '@fortawesome/
|
|
3
|
-
import { faChevronLeft } from '@fortawesome/
|
|
4
|
-
import { faCheck } from '@fortawesome/
|
|
2
|
+
import { faChevronRight } from '@fortawesome/free-solid-svg-icons/faChevronRight';
|
|
3
|
+
import { faChevronLeft } from '@fortawesome/free-solid-svg-icons/faChevronLeft';
|
|
4
|
+
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
|
5
5
|
import { Button, ACCENT_TYPES } from '../../button';
|
|
6
6
|
import { useTranslation } from '../../hooks/use-translation';
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
+
import { IconLookup } from '@fortawesome/fontawesome-svg-core';
|
|
2
3
|
import './zoom-controls.less';
|
|
3
4
|
export type ZoomControlsProps = {
|
|
4
5
|
currentZoom: number;
|
|
@@ -13,9 +14,12 @@ export type ZoomControlsProps = {
|
|
|
13
14
|
zoomInText?: string;
|
|
14
15
|
zoomOutText?: string;
|
|
15
16
|
resetText?: string;
|
|
17
|
+
zoomInIcon?: IconLookup;
|
|
18
|
+
zoomOutIcon?: IconLookup;
|
|
19
|
+
resetIcon?: IconLookup;
|
|
16
20
|
};
|
|
17
21
|
/** Zoom is used on graphs if you need to increase or decrease data visualization
|
|
18
22
|
* @midnight-gray-supported
|
|
19
23
|
* @alpine-light-supported
|
|
20
24
|
* */
|
|
21
|
-
export default function ZoomControls({ currentZoom, onZoomIn, onZoomOut, onZoomReset, className, minZoomFactor, maxZoomFactor, testId, hidden, zoomInText, zoomOutText, resetText, }: ZoomControlsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export default function ZoomControls({ currentZoom, onZoomIn, onZoomOut, onZoomReset, className, minZoomFactor, maxZoomFactor, testId, hidden, zoomInText, zoomOutText, resetText, zoomInIcon, zoomOutIcon, resetIcon, }: ZoomControlsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { faMagnifyingGlassPlus } from '@fortawesome/free-solid-svg-icons/faMagnifyingGlassPlus';
|
|
3
3
|
import { faMagnifyingGlassMinus } from '@fortawesome/free-solid-svg-icons/faMagnifyingGlassMinus';
|
|
4
|
-
import {
|
|
4
|
+
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons/faArrowsRotate';
|
|
5
5
|
import { FontAwesomeIcon } from '../font-awesome-icon';
|
|
6
6
|
import { Button, BUTTON_TYPES, ACCENT_TYPES } from '../button';
|
|
7
7
|
import { useTranslation } from '../hooks/use-translation';
|
|
@@ -24,7 +24,10 @@ export default function ZoomControls({
|
|
|
24
24
|
hidden = false,
|
|
25
25
|
zoomInText,
|
|
26
26
|
zoomOutText,
|
|
27
|
-
resetText
|
|
27
|
+
resetText,
|
|
28
|
+
zoomInIcon = faMagnifyingGlassPlus,
|
|
29
|
+
zoomOutIcon = faMagnifyingGlassMinus,
|
|
30
|
+
resetIcon = faArrowsRotate
|
|
28
31
|
}) {
|
|
29
32
|
const {
|
|
30
33
|
t
|
|
@@ -49,7 +52,7 @@ export default function ZoomControls({
|
|
|
49
52
|
"aria-label": zoomInTextWithDefault,
|
|
50
53
|
tooltipPlacement: TOOLTIP_PLACEMENT_TYPES.TOP,
|
|
51
54
|
children: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
52
|
-
icon:
|
|
55
|
+
icon: zoomInIcon
|
|
53
56
|
})
|
|
54
57
|
}), /*#__PURE__*/_jsx(Button, {
|
|
55
58
|
className: "button command zoom-item",
|
|
@@ -62,7 +65,7 @@ export default function ZoomControls({
|
|
|
62
65
|
"aria-label": zoomOutTextWithDefault,
|
|
63
66
|
tooltipPlacement: TOOLTIP_PLACEMENT_TYPES.TOP,
|
|
64
67
|
children: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
65
|
-
icon:
|
|
68
|
+
icon: zoomOutIcon
|
|
66
69
|
})
|
|
67
70
|
}), /*#__PURE__*/_jsx(Button, {
|
|
68
71
|
className: "button command zoom-item",
|
|
@@ -75,7 +78,7 @@ export default function ZoomControls({
|
|
|
75
78
|
"aria-label": resetTextWithDefault,
|
|
76
79
|
tooltipPlacement: TOOLTIP_PLACEMENT_TYPES.TOP,
|
|
77
80
|
children: /*#__PURE__*/_jsx(FontAwesomeIcon, {
|
|
78
|
-
icon:
|
|
81
|
+
icon: resetIcon
|
|
79
82
|
})
|
|
80
83
|
})]
|
|
81
84
|
});
|