@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
package/js/bundle/index.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export const inputSanitizers: {
|
|
|
202
202
|
|
|
203
203
|
export { KeyValuePairs };
|
|
204
204
|
|
|
205
|
-
export { Message, MESSAGE_TYPES, MESSAGE_SIZES, MESSAGE_ICON_PLACEMENT };
|
|
205
|
+
export { Message, MESSAGE_TYPES, MESSAGE_SIZES, MESSAGE_ICON_PLACEMENT, MESSAGE_ICONS, };
|
|
206
206
|
|
|
207
207
|
export { MultiselectSearchableList, ToggleSelectButton, SearchableListLayout, SelectedItemsBoard, };
|
|
208
208
|
export type { MultiselectSearchableListProps, ToggleSelectButtonProps, SearchableListLayoutProps, SelectedItemsBoardProps, };
|
|
@@ -2573,9 +2573,10 @@ export {};
|
|
|
2573
2573
|
type ExportButtonProps = ButtonProps & {
|
|
2574
2574
|
onExport: () => void;
|
|
2575
2575
|
exportText?: string;
|
|
2576
|
+
icon?: IconLookup;
|
|
2576
2577
|
};
|
|
2577
2578
|
/** An export action indicator. */
|
|
2578
|
-
export const ExportButton: ({ onExport, isDisabled, testId, tooltipText, exportText, tooltipDocsLink, tooltipPlacement, }: ExportButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2579
|
+
export const ExportButton: ({ onExport, isDisabled, testId, tooltipText, exportText, tooltipDocsLink, tooltipPlacement, icon, }: ExportButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2579
2580
|
export {};
|
|
2580
2581
|
|
|
2581
2582
|
import './file-tree.less';
|
|
@@ -3087,6 +3088,10 @@ export type FloatingPanelProps = {
|
|
|
3087
3088
|
* Aria label for the floating panel
|
|
3088
3089
|
*/
|
|
3089
3090
|
ariaLabel?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* Font awesome component for the drag handle
|
|
3093
|
+
*/
|
|
3094
|
+
dragIcon?: IconLookup;
|
|
3090
3095
|
};
|
|
3091
3096
|
/**
|
|
3092
3097
|
* Floating panel
|
|
@@ -3094,7 +3099,7 @@ export type FloatingPanelProps = {
|
|
|
3094
3099
|
* @uxr-only-supported
|
|
3095
3100
|
* @alpine-light-supported
|
|
3096
3101
|
*/
|
|
3097
|
-
export function FloatingPanel({ children, minHeight, minWidth, maxWidth, maxHeight, anchorEl, dockEl, pageContentEl, initialState, testId, placement, popperModifiers, onClose, actions, ...props }: FloatingPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
3102
|
+
export function FloatingPanel({ children, minHeight, minWidth, maxWidth, maxHeight, anchorEl, dockEl, pageContentEl, initialState, testId, placement, popperModifiers, onClose, actions, dragIcon, ...props }: FloatingPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
3098
3103
|
|
|
3099
3104
|
export type PanelState = {
|
|
3100
3105
|
top: number;
|
|
@@ -3878,6 +3883,19 @@ export const MESSAGE_SIZES: {
|
|
|
3878
3883
|
export type MessageTypes = ValueOf<typeof MESSAGE_TYPES>;
|
|
3879
3884
|
export type MessageSize = ValueOf<typeof MESSAGE_SIZES>;
|
|
3880
3885
|
export type MessageIconPlacementTypes = ValueOf<typeof MESSAGE_ICON_PLACEMENT>;
|
|
3886
|
+
export const MESSAGE_ICONS: {
|
|
3887
|
+
disabled: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3888
|
+
info: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3889
|
+
"success-info": import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3890
|
+
warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3891
|
+
error: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3892
|
+
success: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3893
|
+
"in-progress": import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3894
|
+
expired: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3895
|
+
};
|
|
3896
|
+
type Icons = {
|
|
3897
|
+
[key: string]: IconLookup;
|
|
3898
|
+
};
|
|
3881
3899
|
export type MessageProps = {
|
|
3882
3900
|
children: ReactNode;
|
|
3883
3901
|
className?: string;
|
|
@@ -3889,13 +3907,15 @@ export type MessageProps = {
|
|
|
3889
3907
|
size?: MessageSize;
|
|
3890
3908
|
id?: string;
|
|
3891
3909
|
iconPlacement?: string;
|
|
3910
|
+
icons?: Icons;
|
|
3892
3911
|
};
|
|
3893
3912
|
/** Simple component to show a message with an appropriate icon
|
|
3894
3913
|
* [CAPITALIZATION] Sentence case, full sentence, end in period
|
|
3895
3914
|
* @midnight-gray-supported
|
|
3896
3915
|
* @alpine-light-supported
|
|
3897
3916
|
*/
|
|
3898
|
-
export function Message({ children, className, testId, type, isCentered, isStatus, size, id, iconPlacement, }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
3917
|
+
export function Message({ children, className, testId, type, isCentered, isStatus, size, id, iconPlacement, icons, }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
3918
|
+
export {};
|
|
3899
3919
|
|
|
3900
3920
|
import './modal.less';
|
|
3901
3921
|
export type AriaProps = {
|
|
@@ -4588,13 +4608,15 @@ export type SchedulerProps = {
|
|
|
4588
4608
|
switcherType?: ValueOf<typeof SWITCHER_TYPES>;
|
|
4589
4609
|
selectedTabKey?: string;
|
|
4590
4610
|
tabTexts?: TabTexts;
|
|
4611
|
+
advancedSchedulerSwitcherIcon?: IconLookup;
|
|
4612
|
+
simpleSchedulerSwitcherIcon?: IconLookup;
|
|
4591
4613
|
};
|
|
4592
4614
|
/**
|
|
4593
4615
|
* Scheduler is form for cron jobs configuration
|
|
4594
4616
|
* @midnight-gray-supported
|
|
4595
4617
|
* @alpine-light-supported
|
|
4596
4618
|
*/
|
|
4597
|
-
export function Scheduler({ onUpdateSchedule, initialSchedule, testId, isDisabled, frequencyOptions: frequencyOptionsParams, daysOfWeek: daysOfWeekParams, months: monthsParams, validateArrayOfRangedNumbersOrAll: validateArrayOfRangedNumbersOrAllParams, simpleSchedulerToggleButtonText: simpleSchedulerToggleButtonTextParams, advancedSchedulerToggleButtonText: advancedSchedulerToggleButtonTextParams, simpleSchedulerModalTexts: simpleSchedulerModalTextsParams, labelTexts: labelTextsParams, advancedSchedulerInfoTexts: advancedSchedulerInfoTextsParams, validationTexts: validationTextsParams, switcherType, selectedTabKey, tabTexts: tabTextsParams, }: SchedulerProps): import("react/jsx-runtime").JSX.Element;
|
|
4619
|
+
export function Scheduler({ onUpdateSchedule, initialSchedule, testId, isDisabled, frequencyOptions: frequencyOptionsParams, daysOfWeek: daysOfWeekParams, months: monthsParams, validateArrayOfRangedNumbersOrAll: validateArrayOfRangedNumbersOrAllParams, simpleSchedulerToggleButtonText: simpleSchedulerToggleButtonTextParams, advancedSchedulerToggleButtonText: advancedSchedulerToggleButtonTextParams, simpleSchedulerModalTexts: simpleSchedulerModalTextsParams, labelTexts: labelTextsParams, advancedSchedulerInfoTexts: advancedSchedulerInfoTextsParams, validationTexts: validationTextsParams, switcherType, selectedTabKey, tabTexts: tabTextsParams, advancedSchedulerSwitcherIcon, simpleSchedulerSwitcherIcon, }: SchedulerProps): import("react/jsx-runtime").JSX.Element;
|
|
4598
4620
|
|
|
4599
4621
|
export type NumbersOrWildcard = '*' | string | number;
|
|
4600
4622
|
export type ArrayOfNumbersOrWildcard = Array<NumbersOrWildcard>;
|
|
@@ -7091,12 +7113,15 @@ export type ZoomControlsProps = {
|
|
|
7091
7113
|
zoomInText?: string;
|
|
7092
7114
|
zoomOutText?: string;
|
|
7093
7115
|
resetText?: string;
|
|
7116
|
+
zoomInIcon?: IconLookup;
|
|
7117
|
+
zoomOutIcon?: IconLookup;
|
|
7118
|
+
resetIcon?: IconLookup;
|
|
7094
7119
|
};
|
|
7095
7120
|
/** Zoom is used on graphs if you need to increase or decrease data visualization
|
|
7096
7121
|
* @midnight-gray-supported
|
|
7097
7122
|
* @alpine-light-supported
|
|
7098
7123
|
* */
|
|
7099
|
-
export default function ZoomControls({ currentZoom, onZoomIn, onZoomOut, onZoomReset, className, minZoomFactor, maxZoomFactor, testId, hidden, zoomInText, zoomOutText, resetText, }: ZoomControlsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7124
|
+
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;
|
|
7100
7125
|
|
|
7101
7126
|
export const MAX_ZOOM_FACTOR = 2;
|
|
7102
7127
|
export const MIN_ZOOM_FACTOR = 0.5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DataRobot=t():(o.DataRobot=o.DataRobot||{},o.DataRobot["midnight-gray"]=t())}(this,(()=>(()=>{var o,t={
|
|
1
|
+
!function(o,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DataRobot=t():(o.DataRobot=o.DataRobot||{},o.DataRobot["midnight-gray"]=t())}(this,(()=>(()=>{var o,t={7608:()=>{}},e={};function r(o){var a=e[o];if(void 0!==a)return a.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,r),n.exports}r.m=t,o=[],r.O=(t,e,a,n)=>{if(!e){var i=1/0;for(b=0;b<o.length;b++){for(var[e,a,n]=o[b],f=!0,p=0;p<e.length;p++)(!1&n||i>=n)&&Object.keys(r.O).every((o=>r.O[o](e[p])))?e.splice(p--,1):(f=!1,n<i&&(i=n));if(f){o.splice(b--,1);var s=a();void 0!==s&&(t=s)}}return t}n=n||0;for(var b=o.length;b>0&&o[b-1][2]>n;b--)o[b]=o[b-1];o[b]=[e,a,n]},r.o=(o,t)=>Object.prototype.hasOwnProperty.call(o,t),(()=>{var o={745:0,988:0};r.O.j=t=>0===o[t];var t=(t,e)=>{var a,n,[i,f,p]=e,s=0;if(i.some((t=>0!==o[t]))){for(a in f)r.o(f,a)&&(r.m[a]=f[a]);if(p)var b=p(r)}for(t&&t(e);s<i.length;s++)n=i[s],r.o(o,n)&&o[n]&&o[n][0](),o[n]=0;return r.O(b)},e=this.webpackChunkDataRobot=this.webpackChunkDataRobot||[];e.forEach(t.bind(null,0)),e.push=t.bind(null,e.push.bind(e))})();var a=r.O(void 0,[988],(()=>r(7608)));return r.O(a)})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datarobot/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"description": "DataRobot react components library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node ../../tools/build-lib.js",
|
|
@@ -55,8 +55,6 @@
|
|
|
55
55
|
"@fortawesome/free-brands-svg-icons": "6.7.1",
|
|
56
56
|
"@fortawesome/free-regular-svg-icons": "6.7.1",
|
|
57
57
|
"@fortawesome/free-solid-svg-icons": "6.7.1",
|
|
58
|
-
"@fortawesome/pro-regular-svg-icons": "6.7.1",
|
|
59
|
-
"@fortawesome/pro-solid-svg-icons": "6.7.1",
|
|
60
58
|
"@fortawesome/react-fontawesome": "0.2.2",
|
|
61
59
|
"@tanstack/react-virtual": "3.13.6",
|
|
62
60
|
"codemirror": "5.65.19",
|
package/styles/index.css
CHANGED
|
@@ -10198,7 +10198,7 @@ td.rdtYear {
|
|
|
10198
10198
|
.inline-edit-container .dr-validity-messages {
|
|
10199
10199
|
max-width: calc(100% - 5.625rem);
|
|
10200
10200
|
}
|
|
10201
|
-
.inline-edit-container .dr-form-field .dr-form-field-wrapper .dr-form-field-icon.fa-
|
|
10201
|
+
.inline-edit-container .dr-form-field .dr-form-field-wrapper .dr-form-field-icon.fa-circle-xmark {
|
|
10202
10202
|
color: var(--input-failure-color);
|
|
10203
10203
|
}
|
|
10204
10204
|
.inline-edit-container textarea {
|
|
@@ -11502,7 +11502,7 @@ button:hover.active.pill {
|
|
|
11502
11502
|
align-items: center;
|
|
11503
11503
|
width: 100%;
|
|
11504
11504
|
}
|
|
11505
|
-
.sidebar-menu .dr-form-field .dr-form-field-icon.fa-
|
|
11505
|
+
.sidebar-menu .dr-form-field .dr-form-field-icon.fa-circle-xmark {
|
|
11506
11506
|
color: var(--input-failure-color);
|
|
11507
11507
|
}
|
|
11508
11508
|
.sidebar-menu .dr-form-field .sidebar-menu-item-input {
|