@datarobot/design-system 30.4.0 → 30.5.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/expandable-content/expandable-content.d.ts +16 -0
- package/cjs/expandable-content/expandable-content.js +61 -0
- package/cjs/expandable-content/index.d.ts +3 -0
- package/cjs/expandable-content/index.js +12 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +11 -0
- package/cjs/markdown/markdown.d.ts +6 -0
- package/cjs/markdown/markdown.js +15 -2
- package/esm/expandable-content/expandable-content.d.ts +16 -0
- package/esm/expandable-content/expandable-content.js +53 -0
- package/esm/expandable-content/index.d.ts +3 -0
- package/esm/expandable-content/index.js +2 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/markdown/markdown.d.ts +6 -0
- package/esm/markdown/markdown.js +15 -2
- package/expandable-content/package.json +7 -0
- package/js/bundle/bundle.js +497 -366
- package/js/bundle/bundle.min.js +1 -1
- package/js/bundle/index.d.ts +27 -2
- package/package.json +1 -1
- package/styles/index.css +7 -0
- package/styles/index.min.css +1 -1
package/js/bundle/index.d.ts
CHANGED
|
@@ -174,6 +174,9 @@ export { DropdownMenu, DropdownMenuContent, DropdownItem, DropdownTrigger, Dropd
|
|
|
174
174
|
export type { EditableTextProps, EditableTextControlledProps, EditModeProps, TextModeProps, };
|
|
175
175
|
export { EditableText, EditableTextControlled };
|
|
176
176
|
|
|
177
|
+
export type { ExpandableContentProps };
|
|
178
|
+
export { ExpandableContent };
|
|
179
|
+
|
|
177
180
|
export { FileTreeFileComponent, FileTreeFolderComponent, FileTree, FileTreeItem, FileTreeItemContent, FileTreeItemActions, FILE_TYPE, fileTreeAdapter, cleanUpPath, compareUtils, FileTreeLoading, };
|
|
178
181
|
export type { FileTreeItemContentComponent, FileTreeFileComponentProps, FileTreeFolderComponentProps, FileTreeItemProps, FileTreeProps, FileTreeItemActionsActions, FileTreeItemActionsProps, FileTreeItemContentType, FileTreeItemContentProps, FileNodeType, FileTreeType, };
|
|
179
182
|
|
|
@@ -2595,6 +2598,22 @@ export default class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
2595
2598
|
}
|
|
2596
2599
|
export {};
|
|
2597
2600
|
|
|
2601
|
+
import './expandable-content.less';
|
|
2602
|
+
export type ExpandableContentProps = {
|
|
2603
|
+
/** Content to render */
|
|
2604
|
+
children: React.ReactNode;
|
|
2605
|
+
/** Maximum height in pixels. When content exceeds this height it is clipped and a Show more/Show less button appears */
|
|
2606
|
+
maxHeight: number;
|
|
2607
|
+
/** Additional CSS class applied to the wrapper */
|
|
2608
|
+
className?: string;
|
|
2609
|
+
};
|
|
2610
|
+
/** Clips content to a maximum height and shows a Show more/Show less ghost button when the content overflows.
|
|
2611
|
+
* @midnight-gray-supported
|
|
2612
|
+
* @alpine-light-supported
|
|
2613
|
+
*/
|
|
2614
|
+
const ExpandableContent: React.FC<ExpandableContentProps>;
|
|
2615
|
+
export { ExpandableContent };
|
|
2616
|
+
|
|
2598
2617
|
type ExportButtonProps = ButtonProps & {
|
|
2599
2618
|
onExport: () => void;
|
|
2600
2619
|
exportText?: string;
|
|
@@ -3898,9 +3917,15 @@ export const LoadingIcon: ({ message, id, testId, className, }: LoadingIconProps
|
|
|
3898
3917
|
|
|
3899
3918
|
import './markdown.less';
|
|
3900
3919
|
type Props = {
|
|
3901
|
-
|
|
3902
|
-
|
|
3920
|
+
className?: string;
|
|
3921
|
+
children?: React.ReactNode;
|
|
3922
|
+
/** If set, content will be clipped to this height and a Show more/Show less button will appear */
|
|
3923
|
+
maxHeight?: number;
|
|
3903
3924
|
};
|
|
3925
|
+
/** Renders markdown content as HTML with support for GFM, math, and syntax highlighting.
|
|
3926
|
+
* @midnight-gray-supported
|
|
3927
|
+
* @alpine-light-supported
|
|
3928
|
+
*/
|
|
3904
3929
|
const Markdown: React.FC<Props>;
|
|
3905
3930
|
export { Markdown };
|
|
3906
3931
|
|
package/package.json
CHANGED
package/styles/index.css
CHANGED
|
@@ -8440,6 +8440,13 @@ td.rdtYear {
|
|
|
8440
8440
|
max-width: 40rem;
|
|
8441
8441
|
}
|
|
8442
8442
|
|
|
8443
|
+
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
|
|
8444
|
+
!*** 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/expandable-content/expandable-content.less ***!
|
|
8445
|
+
\******************************************************************************************************************************************************************************************************************************************************************/
|
|
8446
|
+
.expandable-content .expandable-content-toggle {
|
|
8447
|
+
margin-top: 0.5rem;
|
|
8448
|
+
}
|
|
8449
|
+
|
|
8443
8450
|
/*!************************************************************************************************************************************************************************************************************************************************!*\
|
|
8444
8451
|
!*** 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/file-tree/file-tree.less ***!
|
|
8445
8452
|
\************************************************************************************************************************************************************************************************************************************************/
|