@datarobot/design-system 28.8.4 → 28.9.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/file-tree/file-tree-loading.d.ts +8 -0
- package/cjs/file-tree/file-tree-loading.js +71 -0
- package/cjs/file-tree/file-tree.d.ts +9 -1
- package/cjs/file-tree/file-tree.js +11 -1
- package/cjs/file-tree/index.d.ts +2 -1
- package/cjs/file-tree/index.js +7 -0
- package/cjs/table-react/components/table.js +1 -1
- package/cjs/table-react/table-react.d.ts +0 -1
- package/cjs/table-react/table-react.js +0 -1
- package/esm/file-tree/file-tree-loading.d.ts +8 -0
- package/esm/file-tree/file-tree-loading.js +64 -0
- package/esm/file-tree/file-tree.d.ts +9 -1
- package/esm/file-tree/file-tree.js +12 -2
- package/esm/file-tree/index.d.ts +2 -1
- package/esm/file-tree/index.js +2 -1
- package/esm/table-react/components/table.js +1 -1
- package/esm/table-react/table-react.d.ts +0 -1
- package/esm/table-react/table-react.js +0 -1
- package/js/bundle/bundle.js +94 -5
- package/js/bundle/bundle.min.js +1 -1
- package/js/bundle/index.d.ts +19 -3
- package/package.json +1 -1
- package/styles/index.css +114 -72
- package/styles/index.min.css +1 -1
- package/styles/themes/light.css +42 -0
- package/styles/themes/light.min.css +1 -1
package/js/bundle/index.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ export { DropdownMenu, DropdownMenuContent, DropdownItem, DropdownTrigger, Dropd
|
|
|
175
175
|
export type { EditableTextProps, EditableTextControlledProps, EditModeProps, TextModeProps, };
|
|
176
176
|
export { EditableText, EditableTextControlled };
|
|
177
177
|
|
|
178
|
-
export { FileTreeFileComponent, FileTreeFolderComponent, FileTree, FileTreeItem, FileTreeItemContent, FileTreeItemActions, FILE_TYPE, fileTreeAdapter, cleanUpPath, compareUtils, };
|
|
178
|
+
export { FileTreeFileComponent, FileTreeFolderComponent, FileTree, FileTreeItem, FileTreeItemContent, FileTreeItemActions, FILE_TYPE, fileTreeAdapter, cleanUpPath, compareUtils, FileTreeLoading, };
|
|
179
179
|
export type { FileTreeItemContentComponent, FileTreeFileComponentProps, FileTreeFolderComponentProps, FileTreeItemProps, FileTreeProps, FileTreeItemActionsActions, FileTreeItemActionsProps, FileTreeItemContentType, FileTreeItemContentProps, FileNodeType, FileTreeType, };
|
|
180
180
|
|
|
181
181
|
export { UploadFileStatusMessage };
|
|
@@ -2627,12 +2627,20 @@ export type FileTreeProps = {
|
|
|
2627
2627
|
* Optional row size prop that dictates action button size.
|
|
2628
2628
|
*/
|
|
2629
2629
|
rowSize?: ButtonSizeType;
|
|
2630
|
+
/**
|
|
2631
|
+
* Shows skeleton isLoading state when true
|
|
2632
|
+
*/
|
|
2633
|
+
isLoading?: boolean;
|
|
2634
|
+
/**
|
|
2635
|
+
* Optional loading pattern to use for skeleton loading state. It's an array of levels to render. Default is [0, 1, 1, 2, 0]
|
|
2636
|
+
*/
|
|
2637
|
+
loadingPattern?: number[];
|
|
2630
2638
|
};
|
|
2631
2639
|
/** Displays a browsable file tree navigation component
|
|
2632
2640
|
@midnight-gray-supported
|
|
2633
2641
|
@alpine-light-supported
|
|
2634
2642
|
*/
|
|
2635
|
-
export const FileTree: ({ fileTree, folderComponentProps, fileComponentProps, rootClass, fileTestId, folderTestId, rowSize, FileComponent, FolderComponent, ItemContentComponent, rootTestId, branchTestId, itemTestId, disabled, sortingStrategy, }: FileTreeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2643
|
+
export const FileTree: ({ fileTree, folderComponentProps, fileComponentProps, rootClass, fileTestId, folderTestId, rowSize, FileComponent, FolderComponent, ItemContentComponent, rootTestId, branchTestId, itemTestId, disabled, sortingStrategy, isLoading, loadingPattern, }: FileTreeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2636
2644
|
|
|
2637
2645
|
type AddPathType = {
|
|
2638
2646
|
customProps: Partial<FileTreeItemContentType>;
|
|
@@ -2759,6 +2767,15 @@ export type FileTreeItemContentProps = {
|
|
|
2759
2767
|
const FileTreeItemContent: ({ defaultIcon, item, children, disabled, testId, truncateWithTooltip, }: FileTreeItemContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2760
2768
|
export default FileTreeItemContent;
|
|
2761
2769
|
|
|
2770
|
+
type FileTreeLoadingProps = {
|
|
2771
|
+
loadingPattern: number[];
|
|
2772
|
+
rootClass?: string;
|
|
2773
|
+
rootTestId?: string;
|
|
2774
|
+
branchTestId?: string;
|
|
2775
|
+
};
|
|
2776
|
+
export function FileTreeLoading({ loadingPattern, rootClass, rootTestId, branchTestId, }: FileTreeLoadingProps): import("react/jsx-runtime").JSX.Element;
|
|
2777
|
+
export {};
|
|
2778
|
+
|
|
2762
2779
|
export function compareByName(nodes: FileTreeType): FileTreeType;
|
|
2763
2780
|
export function compareByNameAndType(nodes: FileTreeType): FileTreeType;
|
|
2764
2781
|
|
|
@@ -5795,7 +5812,6 @@ export type TableReactPropsType<TData, TMeta> = {
|
|
|
5795
5812
|
* New configurable table that uses [@tanstack/react-table](https://tanstack.com/table) under the hood.
|
|
5796
5813
|
* Also check the full page table demo [Here](/Controlled Table)
|
|
5797
5814
|
* @midnight-gray-supported
|
|
5798
|
-
* @uxr-only-supported
|
|
5799
5815
|
* @alpine-light-supported
|
|
5800
5816
|
*/
|
|
5801
5817
|
export default function TableReact<IData, IMeta>({ tableContainerTestId, width: defaultWidth, state, handlers, settings, components, classes, ...props }: TableReactPropsType<IData, IMeta>): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
package/styles/index.css
CHANGED
|
@@ -775,6 +775,48 @@
|
|
|
775
775
|
--table-selected-item-bg-color: var(--accent-secondary);
|
|
776
776
|
--table-checkbox-column-flex-grow: 1;
|
|
777
777
|
/*#endregion */
|
|
778
|
+
/*#region React-Table component */
|
|
779
|
+
--react-table-s-row-height: 1.75rem;
|
|
780
|
+
--react-table-m-row-height: 3rem;
|
|
781
|
+
--react-table-l-row-height: 4.25rem;
|
|
782
|
+
--react-table-flexible-row-height: 3.75rem;
|
|
783
|
+
--react-table-nested-header-height: 2.25rem;
|
|
784
|
+
--react-table-flexible-top-bottom-padding: 0.75rem;
|
|
785
|
+
--react-table-nested-top-bottom-padding: 0.5rem;
|
|
786
|
+
--react-table-top-bottom-padding: 0.25rem;
|
|
787
|
+
--react-table-row-border: #252B2F;
|
|
788
|
+
--react-table-cell-background: #0F1315;
|
|
789
|
+
--react-table-pinned-border-color: #252B2F;
|
|
790
|
+
--react-table-pinned-border-box-shadow: 0.0625rem 0px 0px 0px rgba(17, 21, 25, 0.02), 0.1875rem 0px 0px 0px rgba(17, 21, 25, 0.04), 0.3125rem 0px 0px 0px rgba(17, 21, 25, 0.06), 0.4375rem 0px 0px 0px rgba(17, 21, 25, 0.08), 0.5625rem 0px 0px 0px rgba(17, 21, 25, 0.1), 0.6875rem 0px 0px 0px rgba(17, 21, 25, 0.12);
|
|
791
|
+
--react-table-actions-column-border: -0.0625rem 0px 0px 0px rgba(17, 21, 25, 0.02), -0.1875rem 0px 0px 0px rgba(17, 21, 25, 0.04), -0.3125rem 0px 0px 0px rgba(17, 21, 25, 0.06), -0.4375rem 0px 0px 0px rgba(17, 21, 25, 0.08), -0.5625rem 0px 0px 0px rgba(17, 21, 25, 0.1), -0.6875rem 0px 0px 0px rgba(17, 21, 25, 0.12);
|
|
792
|
+
--react-table-header-text-color: #C4C8C9;
|
|
793
|
+
--react-table-header-hover-text-color: #E2E2E3;
|
|
794
|
+
--react-table-header-border: #252B2F;
|
|
795
|
+
--react-table-header-border-color: var(--base-border-color);
|
|
796
|
+
--react-table-header-hover-border-color: #ff8326;
|
|
797
|
+
--react-table-header-cell-menu-item-padding: 0.25rem 1rem;
|
|
798
|
+
--react-table-hover-color: #252B2F;
|
|
799
|
+
--react-table-selected-color: #252B2F;
|
|
800
|
+
--react-table-selected-border: #53585B;
|
|
801
|
+
--react-table-selected-border-color: #3ca3e8;
|
|
802
|
+
--react-table-sort-icon-color: #3ca3e8;
|
|
803
|
+
--react-table-footer-background: #0F1315;
|
|
804
|
+
--react-table-footer-border: 0.0625rem solid #252B2F;
|
|
805
|
+
--react-table-footer-bottom-border: var(--react-table-footer-border);
|
|
806
|
+
--react-table-footer-side-border: unset;
|
|
807
|
+
--react-table-not-active-setting-color: #81868A;
|
|
808
|
+
--react-table-settings-group-border-color: #53585B;
|
|
809
|
+
--react-table-settings-drag-handler-color: #81868A;
|
|
810
|
+
--react-table-settings-drag-handler-hover-color: #B1B6B9;
|
|
811
|
+
--react-table-container-border: transparent;
|
|
812
|
+
--react-table-container-background: #0F1315;
|
|
813
|
+
--react-table-expanded-background: #181D20;
|
|
814
|
+
--react-table-expanded-container-shadow: 0 0.75rem 2rem -0.125rem rgba(17, 21, 25, 0.58);
|
|
815
|
+
--react-table-expanded-row-shadow: 0px -0.75rem 2rem rgba(17, 21, 25, 0.58);
|
|
816
|
+
--react-table-container-border: #252B2F;
|
|
817
|
+
--react-table-container-border-radius: 0.5rem;
|
|
818
|
+
--react-table-disabled-click-row-color: #81868A;
|
|
819
|
+
/*#endregion */
|
|
778
820
|
/*#region Tabs component */
|
|
779
821
|
--tabgroup-container-background: transparent;
|
|
780
822
|
--tabgroup-container-border: none;
|
|
@@ -8475,6 +8517,78 @@ td.rdtYear {
|
|
|
8475
8517
|
background-color: var(--file-tree-action-button-hover-color);
|
|
8476
8518
|
}
|
|
8477
8519
|
|
|
8520
|
+
/*!**********************************************************************************************************************************************************************************************************************************************!*\
|
|
8521
|
+
!*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/skeleton/skeleton.less ***!
|
|
8522
|
+
\**********************************************************************************************************************************************************************************************************************************************/
|
|
8523
|
+
.skeleton-loading {
|
|
8524
|
+
position: relative;
|
|
8525
|
+
display: block;
|
|
8526
|
+
height: 1.5rem;
|
|
8527
|
+
width: 100%;
|
|
8528
|
+
background-color: var(--skeleton-background);
|
|
8529
|
+
overflow: hidden;
|
|
8530
|
+
}
|
|
8531
|
+
.skeleton-loading:after {
|
|
8532
|
+
content: '';
|
|
8533
|
+
position: absolute;
|
|
8534
|
+
background: linear-gradient(90deg, transparent, var(--skeleton-animation-background), transparent);
|
|
8535
|
+
transform: translateX(-100%) translateZ(0);
|
|
8536
|
+
animation: 3s linear 0.5s infinite normal none running animationWave;
|
|
8537
|
+
inset: 0px;
|
|
8538
|
+
}
|
|
8539
|
+
.skeleton-loading.circular {
|
|
8540
|
+
height: 2rem;
|
|
8541
|
+
width: 2rem;
|
|
8542
|
+
margin: 0 auto;
|
|
8543
|
+
border-radius: 50%;
|
|
8544
|
+
}
|
|
8545
|
+
.skeleton-loading.rounded {
|
|
8546
|
+
border-radius: 0.25rem;
|
|
8547
|
+
}
|
|
8548
|
+
.skeleton-loading.text {
|
|
8549
|
+
border-radius: 0.5rem;
|
|
8550
|
+
}
|
|
8551
|
+
.skeleton-loading.text.heading-01 {
|
|
8552
|
+
height: 3rem;
|
|
8553
|
+
}
|
|
8554
|
+
.skeleton-loading.text.heading-02 {
|
|
8555
|
+
height: 2.25rem;
|
|
8556
|
+
}
|
|
8557
|
+
.skeleton-loading.text.heading-03 {
|
|
8558
|
+
height: 1.75rem;
|
|
8559
|
+
}
|
|
8560
|
+
.skeleton-loading.text.heading-04 {
|
|
8561
|
+
height: 1.5rem;
|
|
8562
|
+
}
|
|
8563
|
+
.skeleton-loading.text.heading-05 {
|
|
8564
|
+
height: 1.25rem;
|
|
8565
|
+
}
|
|
8566
|
+
.skeleton-loading.text.anchor,
|
|
8567
|
+
.skeleton-loading.text.mn-label,
|
|
8568
|
+
.skeleton-loading.text.code {
|
|
8569
|
+
height: 1.25rem;
|
|
8570
|
+
}
|
|
8571
|
+
.skeleton-loading.text.heading-06,
|
|
8572
|
+
.skeleton-loading.text.body-secondary,
|
|
8573
|
+
.skeleton-loading.text.body {
|
|
8574
|
+
height: 1.25rem;
|
|
8575
|
+
}
|
|
8576
|
+
.skeleton-loading.text.caption-01,
|
|
8577
|
+
.skeleton-loading.text.uppercased {
|
|
8578
|
+
height: 1rem;
|
|
8579
|
+
}
|
|
8580
|
+
@keyframes animationWave {
|
|
8581
|
+
0% {
|
|
8582
|
+
transform: translateX(-100%);
|
|
8583
|
+
}
|
|
8584
|
+
50% {
|
|
8585
|
+
transform: translateX(100%);
|
|
8586
|
+
}
|
|
8587
|
+
100% {
|
|
8588
|
+
transform: translateX(100%);
|
|
8589
|
+
}
|
|
8590
|
+
}
|
|
8591
|
+
|
|
8478
8592
|
/*!******************************************************************************************************************************************************************************************************************************************************!*\
|
|
8479
8593
|
!*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/progress-bar/progress-bar.less ***!
|
|
8480
8594
|
\******************************************************************************************************************************************************************************************************************************************************/
|
|
@@ -10588,78 +10702,6 @@ code.hljs {
|
|
|
10588
10702
|
margin-bottom: 0.5rem;
|
|
10589
10703
|
}
|
|
10590
10704
|
|
|
10591
|
-
/*!**********************************************************************************************************************************************************************************************************************************************!*\
|
|
10592
|
-
!*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/skeleton/skeleton.less ***!
|
|
10593
|
-
\**********************************************************************************************************************************************************************************************************************************************/
|
|
10594
|
-
.skeleton-loading {
|
|
10595
|
-
position: relative;
|
|
10596
|
-
display: block;
|
|
10597
|
-
height: 1.5rem;
|
|
10598
|
-
width: 100%;
|
|
10599
|
-
background-color: var(--skeleton-background);
|
|
10600
|
-
overflow: hidden;
|
|
10601
|
-
}
|
|
10602
|
-
.skeleton-loading:after {
|
|
10603
|
-
content: '';
|
|
10604
|
-
position: absolute;
|
|
10605
|
-
background: linear-gradient(90deg, transparent, var(--skeleton-animation-background), transparent);
|
|
10606
|
-
transform: translateX(-100%) translateZ(0);
|
|
10607
|
-
animation: 3s linear 0.5s infinite normal none running animationWave;
|
|
10608
|
-
inset: 0px;
|
|
10609
|
-
}
|
|
10610
|
-
.skeleton-loading.circular {
|
|
10611
|
-
height: 2rem;
|
|
10612
|
-
width: 2rem;
|
|
10613
|
-
margin: 0 auto;
|
|
10614
|
-
border-radius: 50%;
|
|
10615
|
-
}
|
|
10616
|
-
.skeleton-loading.rounded {
|
|
10617
|
-
border-radius: 0.25rem;
|
|
10618
|
-
}
|
|
10619
|
-
.skeleton-loading.text {
|
|
10620
|
-
border-radius: 0.5rem;
|
|
10621
|
-
}
|
|
10622
|
-
.skeleton-loading.text.heading-01 {
|
|
10623
|
-
height: 3rem;
|
|
10624
|
-
}
|
|
10625
|
-
.skeleton-loading.text.heading-02 {
|
|
10626
|
-
height: 2.25rem;
|
|
10627
|
-
}
|
|
10628
|
-
.skeleton-loading.text.heading-03 {
|
|
10629
|
-
height: 1.75rem;
|
|
10630
|
-
}
|
|
10631
|
-
.skeleton-loading.text.heading-04 {
|
|
10632
|
-
height: 1.5rem;
|
|
10633
|
-
}
|
|
10634
|
-
.skeleton-loading.text.heading-05 {
|
|
10635
|
-
height: 1.25rem;
|
|
10636
|
-
}
|
|
10637
|
-
.skeleton-loading.text.anchor,
|
|
10638
|
-
.skeleton-loading.text.mn-label,
|
|
10639
|
-
.skeleton-loading.text.code {
|
|
10640
|
-
height: 1.25rem;
|
|
10641
|
-
}
|
|
10642
|
-
.skeleton-loading.text.heading-06,
|
|
10643
|
-
.skeleton-loading.text.body-secondary,
|
|
10644
|
-
.skeleton-loading.text.body {
|
|
10645
|
-
height: 1.25rem;
|
|
10646
|
-
}
|
|
10647
|
-
.skeleton-loading.text.caption-01,
|
|
10648
|
-
.skeleton-loading.text.uppercased {
|
|
10649
|
-
height: 1rem;
|
|
10650
|
-
}
|
|
10651
|
-
@keyframes animationWave {
|
|
10652
|
-
0% {
|
|
10653
|
-
transform: translateX(-100%);
|
|
10654
|
-
}
|
|
10655
|
-
50% {
|
|
10656
|
-
transform: translateX(100%);
|
|
10657
|
-
}
|
|
10658
|
-
100% {
|
|
10659
|
-
transform: translateX(100%);
|
|
10660
|
-
}
|
|
10661
|
-
}
|
|
10662
|
-
|
|
10663
10705
|
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
|
|
10664
10706
|
!*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/pagination-new/pagination-new.less ***!
|
|
10665
10707
|
\**********************************************************************************************************************************************************************************************************************************************************/
|