@bundle-stats/ui 4.16.0-beta.0 → 4.16.0-beta.10
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/lib/assets/icons.svg +6 -1
- package/lib/assets/icons.svg.js +3 -0
- package/lib/assets/icons.svg.js.map +1 -1
- package/lib/components/bundle-assets/bundle-assets.js +10 -3
- package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js +21 -9
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.js +9 -2
- package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib/components/bundle-packages/bundle-packages.js +9 -2
- package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib/components/entry-info/entry-info.js +2 -2
- package/lib/components/entry-info/entry-info.js.map +1 -1
- package/lib/components/insights/insights.module.css +1 -0
- package/lib/components/metrics-table-export/index.js +18 -0
- package/lib/components/metrics-table-export/index.js.map +1 -0
- package/lib/components/metrics-table-export/metrics-table-export.js +82 -0
- package/lib/components/metrics-table-export/metrics-table-export.js.map +1 -0
- package/lib/components/metrics-table-options/index.js.map +1 -1
- package/lib/components/metrics-table-options/metrics-table-options.js +7 -15
- package/lib/components/metrics-table-options/metrics-table-options.js.map +1 -1
- package/lib/components/preview-source/index.js +18 -0
- package/lib/components/preview-source/index.js.map +1 -0
- package/lib/components/preview-source/preview-source.js +28 -0
- package/lib/components/preview-source/preview-source.js.map +1 -0
- package/lib/components/preview-source/preview-source.module.css +40 -0
- package/lib/css/variables.css +5 -0
- package/lib/i18n.js +3 -0
- package/lib/i18n.js.map +1 -1
- package/lib/ui/button/button.js +2 -1
- package/lib/ui/button/button.js.map +1 -1
- package/lib/ui/copy-to-clipboard/copy-to-clipboard.js +2 -6
- package/lib/ui/copy-to-clipboard/copy-to-clipboard.js.map +1 -1
- package/lib/ui/copy-to-clipboard/copy-to-clipboard.module.css +5 -48
- package/lib/ui/dialog/dialog.js +27 -0
- package/lib/ui/dialog/dialog.js.map +1 -0
- package/lib/ui/dialog/dialog.module.css +89 -0
- package/lib/ui/dialog/index.js +18 -0
- package/lib/ui/dialog/index.js.map +1 -0
- package/lib/ui/icon/icon.js +1 -0
- package/lib/ui/icon/icon.js.map +1 -1
- package/lib/ui/index.js +7 -1
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/markdown/index.js +18 -0
- package/lib/ui/markdown/index.js.map +1 -0
- package/lib/ui/markdown/markdown.js +40 -0
- package/lib/ui/markdown/markdown.js.map +1 -0
- package/lib/ui/markdown/markdown.module.css +7 -0
- package/lib/ui/skeleton/skeleton.module.css +3 -3
- package/lib/ui/tabs/tabs.js +2 -2
- package/lib/ui/tabs/tabs.js.map +1 -1
- package/lib/ui/tabs/tabs.module.css +1 -0
- package/lib/ui/textarea/index.js +18 -0
- package/lib/ui/textarea/index.js.map +1 -0
- package/lib/ui/textarea/textarea.js +16 -0
- package/lib/ui/textarea/textarea.js.map +1 -0
- package/lib/ui/textarea/textarea.module.css +57 -0
- package/lib-esm/assets/icons.svg +6 -1
- package/lib-esm/assets/icons.svg.js +3 -0
- package/lib-esm/assets/icons.svg.js.map +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.js +10 -3
- package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js +21 -9
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +9 -2
- package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.js +9 -2
- package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib-esm/components/entry-info/entry-info.js +2 -2
- package/lib-esm/components/entry-info/entry-info.js.map +1 -1
- package/lib-esm/components/insights/insights.module.css +1 -0
- package/lib-esm/components/metrics-table-export/index.js +2 -0
- package/lib-esm/components/metrics-table-export/index.js.map +1 -0
- package/lib-esm/components/metrics-table-export/metrics-table-export.js +60 -0
- package/lib-esm/components/metrics-table-export/metrics-table-export.js.map +1 -0
- package/lib-esm/components/metrics-table-options/index.js.map +1 -1
- package/lib-esm/components/metrics-table-options/metrics-table-options.js +7 -15
- package/lib-esm/components/metrics-table-options/metrics-table-options.js.map +1 -1
- package/lib-esm/components/preview-source/index.js +2 -0
- package/lib-esm/components/preview-source/index.js.map +1 -0
- package/lib-esm/components/preview-source/preview-source.js +21 -0
- package/lib-esm/components/preview-source/preview-source.js.map +1 -0
- package/lib-esm/components/preview-source/preview-source.module.css +40 -0
- package/lib-esm/css/variables.css +5 -0
- package/lib-esm/i18n.js +3 -0
- package/lib-esm/i18n.js.map +1 -1
- package/lib-esm/ui/button/button.js +1 -0
- package/lib-esm/ui/button/button.js.map +1 -1
- package/lib-esm/ui/copy-to-clipboard/copy-to-clipboard.js +2 -6
- package/lib-esm/ui/copy-to-clipboard/copy-to-clipboard.js.map +1 -1
- package/lib-esm/ui/copy-to-clipboard/copy-to-clipboard.module.css +5 -48
- package/lib-esm/ui/dialog/dialog.js +19 -0
- package/lib-esm/ui/dialog/dialog.js.map +1 -0
- package/lib-esm/ui/dialog/dialog.module.css +89 -0
- package/lib-esm/ui/dialog/index.js +2 -0
- package/lib-esm/ui/dialog/index.js.map +1 -0
- package/lib-esm/ui/icon/icon.js +1 -0
- package/lib-esm/ui/icon/icon.js.map +1 -1
- package/lib-esm/ui/index.js +3 -0
- package/lib-esm/ui/index.js.map +1 -1
- package/lib-esm/ui/markdown/index.js +2 -0
- package/lib-esm/ui/markdown/index.js.map +1 -0
- package/lib-esm/ui/markdown/markdown.js +10 -0
- package/lib-esm/ui/markdown/markdown.js.map +1 -0
- package/lib-esm/ui/markdown/markdown.module.css +7 -0
- package/lib-esm/ui/skeleton/skeleton.module.css +3 -3
- package/lib-esm/ui/tabs/tabs.js +2 -2
- package/lib-esm/ui/tabs/tabs.js.map +1 -1
- package/lib-esm/ui/tabs/tabs.module.css +1 -0
- package/lib-esm/ui/textarea/index.js +2 -0
- package/lib-esm/ui/textarea/index.js.map +1 -0
- package/lib-esm/ui/textarea/textarea.js +9 -0
- package/lib-esm/ui/textarea/textarea.js.map +1 -0
- package/lib-esm/ui/textarea/textarea.module.css +57 -0
- package/package.json +14 -13
- package/src/assets/icons/download.svg +4 -0
- package/src/assets/icons.svg +6 -1
- package/src/assets/icons.svg.jsx +9 -0
- package/src/components/bundle-assets/bundle-assets.jsx +20 -7
- package/src/components/bundle-assets-totals/bundle-assets-totals.jsx +54 -35
- package/src/components/bundle-modules/bundle-modules.tsx +15 -2
- package/src/components/bundle-packages/bundle-packages.jsx +15 -2
- package/src/components/entry-info/entry-info.tsx +2 -2
- package/src/components/insights/insights.module.css +1 -0
- package/src/components/metrics-table-export/index.ts +1 -0
- package/src/components/metrics-table-export/metrics-table-export.stories.tsx +30 -0
- package/src/components/metrics-table-export/metrics-table-export.tsx +102 -0
- package/src/components/metrics-table-options/metrics-table-options.stories.tsx +22 -0
- package/src/components/metrics-table-options/metrics-table-options.tsx +25 -0
- package/src/components/preview-source/index.ts +1 -0
- package/src/components/preview-source/preview-source.module.css +40 -0
- package/src/components/preview-source/preview-source.stories.tsx +53 -0
- package/src/components/preview-source/preview-source.tsx +56 -0
- package/src/css/variables.css +5 -0
- package/src/i18n.js +4 -0
- package/src/ui/button/button.tsx +2 -1
- package/src/ui/copy-to-clipboard/copy-to-clipboard.module.css +5 -48
- package/src/ui/copy-to-clipboard/copy-to-clipboard.tsx +4 -8
- package/src/ui/dialog/dialog.module.css +89 -0
- package/src/ui/dialog/dialog.stories.tsx +67 -0
- package/src/ui/dialog/dialog.tsx +62 -0
- package/src/ui/dialog/index.ts +1 -0
- package/src/ui/icon/icon.tsx +1 -0
- package/src/ui/index.js +3 -0
- package/src/ui/markdown/index.ts +1 -0
- package/src/ui/markdown/markdown.module.css +7 -0
- package/src/ui/markdown/markdown.stories.tsx +29 -0
- package/src/ui/markdown/markdown.tsx +24 -0
- package/src/ui/skeleton/skeleton.module.css +3 -3
- package/src/ui/tabs/tabs.jsx +2 -2
- package/src/ui/tabs/tabs.module.css +1 -0
- package/src/ui/textarea/index.ts +1 -0
- package/src/ui/textarea/textarea.module.css +57 -0
- package/src/ui/textarea/textarea.stories.tsx +37 -0
- package/src/ui/textarea/textarea.tsx +17 -0
- package/types/components/metrics-table-export/index.d.ts +1 -0
- package/types/components/metrics-table-export/metrics-table-export.d.ts +10 -0
- package/types/components/metrics-table-options/index.d.ts +1 -1
- package/types/components/metrics-table-options/metrics-table-options.d.ts +9 -17
- package/types/components/preview-source/index.d.ts +1 -0
- package/types/components/preview-source/preview-source.d.ts +9 -0
- package/types/i18n.d.ts +3 -0
- package/types/ui/button/button.d.ts +26 -0
- package/types/ui/dialog/dialog.d.ts +13 -0
- package/types/ui/dialog/index.d.ts +1 -0
- package/types/ui/icon/icon.d.ts +2 -0
- package/types/ui/index.d.ts +3 -0
- package/types/ui/markdown/index.d.ts +1 -0
- package/types/ui/markdown/markdown.d.ts +7 -0
- package/types/ui/tabs/tabs.d.ts +3 -3
- package/types/ui/textarea/index.d.ts +1 -0
- package/types/ui/textarea/textarea.d.ts +6 -0
- package/src/components/metrics-table-options/metrics-table-options.jsx +0 -30
- /package/src/components/metrics-table-options/{index.js → index.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
border: 1px solid var(--color-outline);
|
|
3
|
+
border-radius: var(--radius-small);
|
|
4
|
+
color: var(--color-text-light);
|
|
5
|
+
width: 100%;
|
|
6
|
+
resize: vertical;
|
|
7
|
+
transition: var(--transition-in);
|
|
8
|
+
appearance: none;
|
|
9
|
+
outline: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.root::-webkit-input-placeholder {
|
|
13
|
+
color: var(--color-text-light);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root::-moz-placeholder {
|
|
17
|
+
color: var(--color-text-light);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.root:-ms-input-placeholder {
|
|
21
|
+
color: var(--color-text-light);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.root:-moz-placeholder {
|
|
25
|
+
color: var(--color-text-light);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.root:focus {
|
|
29
|
+
box-shadow: var(--outline-hover);
|
|
30
|
+
border-color: var(--color-outline-dark);
|
|
31
|
+
color: inherit;
|
|
32
|
+
transition: var(--transition-out);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.root[readonly=""] {
|
|
36
|
+
color: var(--color-text-light);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Size modifier */
|
|
40
|
+
/* default - medium */
|
|
41
|
+
.root {
|
|
42
|
+
padding: var(--space-xsmall);
|
|
43
|
+
font-size: var(--size-medium);
|
|
44
|
+
line-height: calc(var(--space-medium) - 2px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.small {
|
|
48
|
+
padding: var(--space-xxsmall);
|
|
49
|
+
font-size: var(--size-small);
|
|
50
|
+
line-height: calc(var(--space-small) - 2px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.large {
|
|
54
|
+
padding: var(--space-small);
|
|
55
|
+
font-size: var(--size-large);
|
|
56
|
+
line-height: calc(var(--space-large) - 2px);
|
|
57
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { Textarea } from '.';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Textarea> = {
|
|
6
|
+
title: 'UI/Textarea',
|
|
7
|
+
component: Textarea,
|
|
8
|
+
args: {
|
|
9
|
+
placeholder: 'Enter value',
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
|
|
17
|
+
export const Default: Story = {};
|
|
18
|
+
|
|
19
|
+
export const SizeSmall: Story = {
|
|
20
|
+
args: {
|
|
21
|
+
size: 'small',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const ReadOnly: Story = {
|
|
26
|
+
args: {
|
|
27
|
+
readOnly: true,
|
|
28
|
+
defaultValue: 'Lorem ipsum dolor sit amed',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export const PreviewSource: Story = {
|
|
32
|
+
args: {
|
|
33
|
+
previewSource: true,
|
|
34
|
+
rows: 6,
|
|
35
|
+
defaultValue: JSON.stringify(ReadOnly, null, 2),
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
|
|
5
|
+
import css from './textarea.module.css';
|
|
6
|
+
|
|
7
|
+
export type TextareaProps = {
|
|
8
|
+
size?: 'small' | 'medium' | 'large';
|
|
9
|
+
} & ComponentProps<'textarea'>;
|
|
10
|
+
|
|
11
|
+
export const Textarea = (props: TextareaProps) => {
|
|
12
|
+
const { className = '', size = '', ...restProps } = props;
|
|
13
|
+
|
|
14
|
+
const rootClassName = cx(css.root, size && css[size], className);
|
|
15
|
+
|
|
16
|
+
return <textarea className={rootClassName} {...restProps} />;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './metrics-table-export';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ReportMetricRow } from '@bundle-stats/utils';
|
|
4
|
+
import { Stack } from '../../layout/stack';
|
|
5
|
+
type MetricsTableExportProps = {
|
|
6
|
+
items: Array<ReportMetricRow>;
|
|
7
|
+
download: string;
|
|
8
|
+
} & ComponentProps<typeof Stack>;
|
|
9
|
+
export declare const MetricsTableExport: (props: MetricsTableExportProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './metrics-table-options';
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export namespace MetricsTableOptions {
|
|
3
|
-
namespace propTypes {
|
|
4
|
-
let className: PropTypes.Requireable<string>;
|
|
5
|
-
let handleViewAll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
-
let handleResetFilters: PropTypes.Requireable<(...args: any[]) => any>;
|
|
7
|
-
}
|
|
8
|
-
namespace defaultProps {
|
|
9
|
-
let className_1: string;
|
|
10
|
-
export { className_1 as className };
|
|
11
|
-
let handleViewAll_1: null;
|
|
12
|
-
export { handleViewAll_1 as handleViewAll };
|
|
13
|
-
let handleResetFilters_1: null;
|
|
14
|
-
export { handleResetFilters_1 as handleResetFilters };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
17
2
|
import React from 'react';
|
|
18
|
-
import
|
|
3
|
+
import { Dropdown } from '../../ui/dropdown';
|
|
4
|
+
type MetricsTableOptionsProps = {
|
|
5
|
+
onViewAllClick?: () => void;
|
|
6
|
+
onResetClick?: () => void;
|
|
7
|
+
onExportClick?: () => void;
|
|
8
|
+
} & ComponentProps<typeof Dropdown>;
|
|
9
|
+
export declare const MetricsTableOptions: (props: MetricsTableOptionsProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview-source';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type PreviewSourceProps = {
|
|
4
|
+
source?: string;
|
|
5
|
+
rows?: number;
|
|
6
|
+
download?: string;
|
|
7
|
+
} & ComponentProps<'div'>;
|
|
8
|
+
export declare const PreviewSource: (props: PreviewSourceProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
package/types/i18n.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ declare namespace _default {
|
|
|
14
14
|
let PACKAGES_INFO: string;
|
|
15
15
|
let RESET_FILTERS: string;
|
|
16
16
|
let VIEW_ALL: string;
|
|
17
|
+
let EXPORT: string;
|
|
18
|
+
let COPY_TO_CLIPBOARD: string;
|
|
19
|
+
let COPY_TO_CLIPBOARD_DONE: string;
|
|
17
20
|
let GITHUB_LINK_TITLE: string;
|
|
18
21
|
let REPORT_ISSUE: string;
|
|
19
22
|
let REPORT_ISSUE_LINK_TITLE: string;
|
|
@@ -13,6 +13,32 @@ export declare const BUTTON_KIND: {
|
|
|
13
13
|
readonly INFO: "info";
|
|
14
14
|
readonly SUCCES: "success";
|
|
15
15
|
};
|
|
16
|
+
export declare const BUTTON_GLYPHS: {
|
|
17
|
+
readonly ARROW: "arrow";
|
|
18
|
+
readonly ARROW_RIGHT_CIRCLE: "arrow-right-circle";
|
|
19
|
+
readonly CANCEL: "close";
|
|
20
|
+
readonly CHEVRON_DOWN: "chevron-down";
|
|
21
|
+
readonly CHEVRON_UP: "chevron-up";
|
|
22
|
+
readonly CHECK: "check";
|
|
23
|
+
readonly CLOSE: "close";
|
|
24
|
+
readonly CLOCK: "clock";
|
|
25
|
+
readonly COMMIT: "commit";
|
|
26
|
+
readonly CLIPBOARD: "clipboard";
|
|
27
|
+
readonly CLIPBOARD_CHECK: "clipboard-check";
|
|
28
|
+
readonly DOWNLOAD: "download";
|
|
29
|
+
readonly ERROR: "error";
|
|
30
|
+
readonly EXTERNAL_LINK: "external-link";
|
|
31
|
+
readonly FILTER: "filter";
|
|
32
|
+
readonly GITHUB: "github";
|
|
33
|
+
readonly INFO: "info";
|
|
34
|
+
readonly HELP: "help";
|
|
35
|
+
readonly TABLE: "table";
|
|
36
|
+
readonly TREEMAP: "treemap";
|
|
37
|
+
readonly MENU: "menu";
|
|
38
|
+
readonly MORE_VERTICAL: "more-vertical";
|
|
39
|
+
readonly SORT: "sort";
|
|
40
|
+
readonly WARNING: "warning";
|
|
41
|
+
};
|
|
16
42
|
type Size = (typeof BUTTON_SIZE)[keyof typeof BUTTON_SIZE];
|
|
17
43
|
type Kind = (typeof BUTTON_KIND)[keyof typeof BUTTON_KIND];
|
|
18
44
|
interface ButtonProps<T extends React.ElementType> {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Dialog as AriakitDialog } from 'ariakit/dialog';
|
|
4
|
+
export { useDialogState } from 'ariakit/dialog';
|
|
5
|
+
type AriakitDialogProps = ComponentProps<typeof AriakitDialog>;
|
|
6
|
+
type DialogProps = {
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
width?: 'narrow' | 'medium' | 'wide' | 'extra-wide';
|
|
9
|
+
center?: boolean;
|
|
10
|
+
modal?: AriakitDialogProps['modal'];
|
|
11
|
+
state: AriakitDialogProps['state'];
|
|
12
|
+
} & Omit<ComponentProps<'div'>, 'title'>;
|
|
13
|
+
export declare const Dialog: (props: DialogProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dialog';
|
package/types/ui/icon/icon.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const ICONS: {
|
|
|
11
11
|
readonly COMMIT: "commit";
|
|
12
12
|
readonly CLIPBOARD: "clipboard";
|
|
13
13
|
readonly CLIPBOARD_CHECK: "clipboard-check";
|
|
14
|
+
readonly DOWNLOAD: "download";
|
|
14
15
|
readonly ERROR: "error";
|
|
15
16
|
readonly EXTERNAL_LINK: "external-link";
|
|
16
17
|
readonly FILTER: "filter";
|
|
@@ -49,6 +50,7 @@ export declare const Icon: {
|
|
|
49
50
|
readonly COMMIT: "commit";
|
|
50
51
|
readonly CLIPBOARD: "clipboard";
|
|
51
52
|
readonly CLIPBOARD_CHECK: "clipboard-check";
|
|
53
|
+
readonly DOWNLOAD: "download";
|
|
52
54
|
readonly ERROR: "error";
|
|
53
55
|
readonly EXTERNAL_LINK: "external-link";
|
|
54
56
|
readonly FILTER: "filter";
|
package/types/ui/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { Button } from "./button";
|
|
|
3
3
|
export { CopyToClipboard } from "./copy-to-clipboard";
|
|
4
4
|
export { Container } from "./container";
|
|
5
5
|
export { ControlGroup } from "./control-group";
|
|
6
|
+
export { Dialog } from "./dialog";
|
|
6
7
|
export { Dropdown } from "./dropdown";
|
|
7
8
|
export { EmptySet } from "./empty-set";
|
|
8
9
|
export { FileName } from "./file-name";
|
|
@@ -12,8 +13,10 @@ export { Icon } from "./icon";
|
|
|
12
13
|
export { Input } from "./input";
|
|
13
14
|
export { InputSearch } from "./input-search";
|
|
14
15
|
export { Loader } from "./loader";
|
|
16
|
+
export { Markdown } from "./markdown";
|
|
15
17
|
export { Skeleton } from "./skeleton";
|
|
16
18
|
export { Table } from "./table";
|
|
17
19
|
export { Tabs } from "./tabs";
|
|
18
20
|
export { Tag } from "./tag";
|
|
21
|
+
export { Textarea } from "./textarea";
|
|
19
22
|
export { Tooltip } from "./tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './markdown';
|
package/types/ui/tabs/tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function Tabs({ className, ...restProps }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
-
className
|
|
3
|
+
className?: string | undefined;
|
|
4
4
|
}): React.JSX.Element;
|
|
5
5
|
export namespace Tabs {
|
|
6
6
|
export namespace defaultProps {
|
|
@@ -18,8 +18,8 @@ import PropTypes from 'prop-types';
|
|
|
18
18
|
declare function Item({ isTabActive, as: Component, className, ...restProps }: {
|
|
19
19
|
[x: string]: any;
|
|
20
20
|
isTabActive: any;
|
|
21
|
-
as
|
|
22
|
-
className
|
|
21
|
+
as?: string | undefined;
|
|
22
|
+
className?: string | undefined;
|
|
23
23
|
}): React.JSX.Element;
|
|
24
24
|
declare namespace Item {
|
|
25
25
|
export namespace defaultProps_1 {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
import I18N from '../../i18n';
|
|
5
|
-
import { Dropdown, DropdownItem } from '../../ui/dropdown';
|
|
6
|
-
|
|
7
|
-
export const MetricsTableOptions = (props) => {
|
|
8
|
-
const { className, handleViewAll, handleResetFilters, ...restProps } = props;
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<Dropdown className={className} glyph="more-vertical" {...restProps}>
|
|
12
|
-
{handleResetFilters && (
|
|
13
|
-
<DropdownItem onClick={handleResetFilters}>{I18N.RESET_FILTERS}</DropdownItem>
|
|
14
|
-
)}
|
|
15
|
-
{handleViewAll && <DropdownItem onClick={handleViewAll}>{I18N.VIEW_ALL}</DropdownItem>}
|
|
16
|
-
</Dropdown>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
MetricsTableOptions.propTypes = {
|
|
21
|
-
className: PropTypes.string,
|
|
22
|
-
handleViewAll: PropTypes.func,
|
|
23
|
-
handleResetFilters: PropTypes.func,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
MetricsTableOptions.defaultProps = {
|
|
27
|
-
className: '',
|
|
28
|
-
handleViewAll: null,
|
|
29
|
-
handleResetFilters: null,
|
|
30
|
-
};
|
|
File without changes
|