@bundle-stats/ui 4.5.3-alpha.2 → 4.5.3-alpha.4
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/.babelrc.js +2 -0
- package/README.md +10 -10
- package/lib/app/app.js +8 -14
- package/lib/app/app.js.map +1 -1
- package/lib/components/metric-run-info/metric-run-info.js +1 -1
- package/lib/components/metric-run-info/metric-run-info.js.map +1 -1
- package/lib/components/metrics-table/metrics-table.js +1 -1
- package/lib/components/metrics-table/metrics-table.js.map +1 -1
- package/lib/components/metrics-table/metrics-table.module.css +8 -3
- package/lib/components/run-info/run-info.js +2 -2
- package/lib/components/run-info/run-info.js.map +1 -1
- package/lib/components/run-info/run-info.module.css +8 -9
- package/lib/components/summary/summary.js +10 -2
- package/lib/components/summary/summary.js.map +1 -1
- package/lib/components/summary/summary.module.css +13 -1
- package/lib/css/variables.css +25 -25
- package/lib/ui/dropdown/dropdown.module.css +4 -0
- package/lib/ui/filters/filters.module.css +28 -5
- package/lib-esm/app/app.js +9 -18
- package/lib-esm/app/app.js.map +1 -1
- package/lib-esm/components/metric-run-info/metric-run-info.js +1 -1
- package/lib-esm/components/metric-run-info/metric-run-info.js.map +1 -1
- package/lib-esm/components/metrics-table/metrics-table.js +1 -1
- package/lib-esm/components/metrics-table/metrics-table.js.map +1 -1
- package/lib-esm/components/metrics-table/metrics-table.module.css +8 -3
- package/lib-esm/components/run-info/run-info.js +2 -2
- package/lib-esm/components/run-info/run-info.js.map +1 -1
- package/lib-esm/components/run-info/run-info.module.css +8 -9
- package/lib-esm/components/summary/summary.js +11 -3
- package/lib-esm/components/summary/summary.js.map +1 -1
- package/lib-esm/components/summary/summary.module.css +13 -1
- package/lib-esm/css/variables.css +25 -25
- package/lib-esm/ui/dropdown/dropdown.module.css +4 -0
- package/lib-esm/ui/filters/filters.module.css +28 -5
- package/package.json +16 -20
- package/src/app/app.jsx +2 -34
- package/src/components/metric-run-info/metric-run-info.tsx +1 -1
- package/src/components/metrics-table/metrics-table.jsx +1 -1
- package/src/components/metrics-table/metrics-table.module.css +8 -3
- package/src/components/run-info/run-info.module.css +8 -9
- package/src/components/run-info/run-info.tsx +15 -4
- package/src/components/summary/summary.module.css +13 -1
- package/src/components/summary/summary.tsx +34 -9
- package/src/css/variables.css +25 -25
- package/src/ui/dropdown/dropdown.module.css +4 -0
- package/src/ui/filters/filters.module.css +28 -5
- package/types/app/app.d.ts +2 -1
- package/types/app/header/header.d.ts +1 -1
- package/types/assets/icons.svg.d.ts +2 -1
- package/types/components/asset-info/asset-info.d.ts +1 -1
- package/types/components/asset-not-predictive/asset-not-predictive.d.ts +1 -1
- package/types/components/browsertime-table/browsertime-table.d.ts +2 -1
- package/types/components/bundle-assets/bundle-assets.d.ts +2 -1
- package/types/components/bundle-assets/index.d.ts +2 -1
- package/types/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.d.ts +2 -1
- package/types/components/bundle-assets-totals-table/bundle-assets-totals-table.d.ts +2 -1
- package/types/components/bundle-modules/bundle-modules.d.ts +2 -1
- package/types/components/bundle-modules/index.d.ts +2 -1
- package/types/components/bundle-packages/bundle-packages.d.ts +2 -1
- package/types/components/bundle-packages/index.d.ts +2 -1
- package/types/components/component-link.d.ts +2 -1
- package/types/components/delta/delta.d.ts +2 -1
- package/types/components/entry-info/entry-info.d.ts +2 -2
- package/types/components/insight-icon/insight-icon.d.ts +1 -1
- package/types/components/insights/insights.d.ts +1 -1
- package/types/components/job-name/job-name.d.ts +2 -1
- package/types/components/jobs-header/jobs-header.d.ts +2 -2
- package/types/components/lighthouse-table/lighthouse-table.d.ts +2 -1
- package/types/components/metric/metric.d.ts +1 -1
- package/types/components/metric-run-info/metric-run-info.d.ts +1 -1
- package/types/components/metrics-table/index.d.ts +2 -1
- package/types/components/metrics-table/metrics-table.d.ts +2 -1
- package/types/components/metrics-table-options/metrics-table-options.d.ts +2 -1
- package/types/components/metrics-table-search/metrics-table-search.d.ts +2 -1
- package/types/components/metrics-table-title/metrics-table-title.d.ts +2 -1
- package/types/components/module-info/module-info.d.ts +1 -1
- package/types/components/package-info/package-info.d.ts +1 -1
- package/types/components/run-info/run-info.d.ts +1 -1
- package/types/components/sort-button/sort-button.d.ts +1 -1
- package/types/components/summary/summary.d.ts +1 -3
- package/types/components/total-size-type-title/total-size-type-title.d.ts +2 -1
- package/types/layout/box/box.d.ts +1 -1
- package/types/layout/flex-stack/flex-stack.d.ts +1 -1
- package/types/layout/footer/footer.d.ts +2 -1
- package/types/layout/stack/stack.d.ts +1 -1
- package/types/query-state.d.ts +2 -1
- package/types/stories/wrapper.d.ts +2 -1
- package/types/ui/alert/alert.d.ts +1 -1
- package/types/ui/container/container.d.ts +1 -1
- package/types/ui/dropdown/dropdown.d.ts +3 -2
- package/types/ui/empty-set/empty-set.d.ts +2 -1
- package/types/ui/file-name/file-name.d.ts +2 -1
- package/types/ui/filters/filters.d.ts +2 -1
- package/types/ui/filters/index.d.ts +2 -1
- package/types/ui/horizontal-bar-chart/horizontal-bar-chart.d.ts +2 -1
- package/types/ui/hover-card/hover-card.d.ts +1 -1
- package/types/ui/icon/icon.d.ts +1 -1
- package/types/ui/input/input.d.ts +2 -1
- package/types/ui/loader/loader.d.ts +2 -1
- package/types/ui/skeleton/skeleton.d.ts +2 -1
- package/types/ui/table/table.d.ts +1 -1
- package/types/ui/tabs/tabs.d.ts +3 -2
- package/types/ui/tag/tag.d.ts +1 -1
- package/types/ui/toolbar/toolbar.d.ts +2 -1
- package/types/ui/tooltip/tooltip.d.ts +1 -1
- package/types/utils.d.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function MetricsTableOptions(props: any): JSX.Element;
|
|
1
|
+
export function MetricsTableOptions(props: any): React.JSX.Element;
|
|
2
2
|
export namespace MetricsTableOptions {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let className: PropTypes.Requireable<string>;
|
|
@@ -14,4 +14,5 @@ export namespace MetricsTableOptions {
|
|
|
14
14
|
export { handleResetFilters_1 as handleResetFilters };
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
import React from 'react';
|
|
17
18
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function MetricsTableSearch(props: any): JSX.Element;
|
|
1
|
+
export function MetricsTableSearch(props: any): React.JSX.Element;
|
|
2
2
|
export namespace MetricsTableSearch {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let className: PropTypes.Requireable<string>;
|
|
@@ -13,4 +13,5 @@ export namespace MetricsTableSearch {
|
|
|
13
13
|
export { placeholder_1 as placeholder };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function MetricsTableTitle(props: any): JSX.Element;
|
|
1
|
+
export function MetricsTableTitle(props: any): React.JSX.Element;
|
|
2
2
|
export namespace MetricsTableTitle {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let className: PropTypes.Requireable<string>;
|
|
@@ -18,4 +18,5 @@ export namespace MetricsTableTitle {
|
|
|
18
18
|
export { popoverInfo_1 as popoverInfo };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
import React from 'react';
|
|
21
22
|
import PropTypes from 'prop-types';
|
|
@@ -16,5 +16,5 @@ interface ModuleInfoProps {
|
|
|
16
16
|
customComponentLink?: React.ElementType;
|
|
17
17
|
onClose: () => void;
|
|
18
18
|
}
|
|
19
|
-
export declare const ModuleInfo: (props: ModuleInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
19
|
+
export declare const ModuleInfo: (props: ModuleInfoProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -11,5 +11,5 @@ interface PackageInfoProps {
|
|
|
11
11
|
customComponentLink?: React.ElementType;
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare const PackageInfo: (props: PackageInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
14
|
+
export declare const PackageInfo: (props: PackageInfoProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -14,4 +14,4 @@ export interface RunInfoProps {
|
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
enhance?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const RunInfo: ({ className, title, titleHoverCard, titleTooltip, current, baseline, delta, deltaPercentage, deltaType, as: Component, size, showBaseline, loading, enhance, ...restProps }: RunInfoProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
17
|
+
export declare const RunInfo: ({ className, title, titleHoverCard, titleTooltip, current, baseline, delta, deltaPercentage, deltaType, as: Component, size, showBaseline, loading, enhance, ...restProps }: RunInfoProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ interface SortButtonProps {
|
|
|
7
7
|
sort: SortAction;
|
|
8
8
|
updateSort: (params: SortAction) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const SortButton: (props: SortButtonProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
10
|
+
export declare const SortButton: (props: SortButtonProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -14,13 +14,11 @@ interface SummaryItemData {
|
|
|
14
14
|
baseline: number;
|
|
15
15
|
}
|
|
16
16
|
interface SummaryProps {
|
|
17
|
-
size?: MetricRunInfoProps['size'];
|
|
18
|
-
keys?: Array<string>;
|
|
19
17
|
data?: SummaryItemProps['data'];
|
|
20
18
|
loading?: boolean;
|
|
21
19
|
showSummaryItemDelta?: SummaryItemProps['showDelta'];
|
|
22
20
|
showSummaryItemBaseline?: SummaryItemProps['showBaseline'];
|
|
23
21
|
summaryItemLink?: SummaryItemProps['customLink'];
|
|
24
22
|
}
|
|
25
|
-
export declare const Summary: ({ className,
|
|
23
|
+
export declare const Summary: ({ className, data, loading, showSummaryItemDelta, showSummaryItemBaseline, summaryItemLink, }: SummaryProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
|
26
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function TotalSizeTypeTitle({ className }: {
|
|
2
2
|
className: any;
|
|
3
|
-
}): JSX.Element;
|
|
3
|
+
}): React.JSX.Element;
|
|
4
4
|
export namespace TotalSizeTypeTitle {
|
|
5
5
|
namespace propTypes {
|
|
6
6
|
let className: PropTypes.Requireable<string>;
|
|
@@ -10,4 +10,5 @@ export namespace TotalSizeTypeTitle {
|
|
|
10
10
|
export { className_1 as className };
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
+
import React from 'react';
|
|
13
14
|
import PropTypes from 'prop-types';
|
|
@@ -9,5 +9,5 @@ interface BoxProps<T extends React.ElementType> {
|
|
|
9
9
|
outline?: boolean;
|
|
10
10
|
outlineHover?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const Box: <T extends React.ElementType<any> = "div">(props: BoxProps<T> & Omit<React.ComponentProps<T>, keyof BoxProps<T>>) => JSX.Element;
|
|
12
|
+
export declare const Box: <T extends React.ElementType<any> = "div">(props: BoxProps<T> & Omit<React.ComponentProps<T>, keyof BoxProps<T>>) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -7,5 +7,5 @@ interface FlexStackProps<T extends React.ElementType> {
|
|
|
7
7
|
inline?: boolean;
|
|
8
8
|
alignItems?: 'top' | 'center' | 'bottom';
|
|
9
9
|
}
|
|
10
|
-
export declare const FlexStack: <T extends React.ElementType<any> = "div">(props: FlexStackProps<T> & Omit<React.ComponentProps<T>, keyof FlexStackProps<T>>) => JSX.Element;
|
|
10
|
+
export declare const FlexStack: <T extends React.ElementType<any> = "div">(props: FlexStackProps<T> & Omit<React.ComponentProps<T>, keyof FlexStackProps<T>>) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function Footer({ className, version }: {
|
|
2
2
|
className: any;
|
|
3
3
|
version: any;
|
|
4
|
-
}): JSX.Element;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
5
|
export namespace Footer {
|
|
6
6
|
namespace defaultProps {
|
|
7
7
|
let className: string;
|
|
@@ -14,4 +14,5 @@ export namespace Footer {
|
|
|
14
14
|
export { version_1 as version };
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
import React from 'react';
|
|
17
18
|
import PropTypes from 'prop-types';
|
|
@@ -4,4 +4,4 @@ export type StackProps = {
|
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
space?: (typeof SPACES)[number];
|
|
6
6
|
};
|
|
7
|
-
export declare const Stack: (props: StackProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
7
|
+
export declare const Stack: (props: StackProps & React.ComponentProps<'div'>) => React.JSX.Element;
|
package/types/query-state.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export function getWrapperDecorator(customWrapperStyles?: {}): (storyFn: any) => JSX.Element;
|
|
1
|
+
export function getWrapperDecorator(customWrapperStyles?: {}): (storyFn: any) => React.JSX.Element;
|
|
2
|
+
import React from 'react';
|
|
@@ -4,5 +4,5 @@ import { Box } from '../../layout/box';
|
|
|
4
4
|
interface AlertProps {
|
|
5
5
|
kind?: (typeof KIND)[keyof typeof KIND];
|
|
6
6
|
}
|
|
7
|
-
export declare const Alert: (props: AlertProps & React.ComponentProps<typeof Box>) => JSX.Element;
|
|
7
|
+
export declare const Alert: (props: AlertProps & React.ComponentProps<typeof Box>) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
}
|
|
5
|
-
export declare const Container: ({ as: Component, className, ...restProps }: ContainerProps) => JSX.Element;
|
|
5
|
+
export declare const Container: ({ as: Component, className, ...restProps }: ContainerProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Dropdown(props: any): JSX.Element;
|
|
1
|
+
export function Dropdown(props: any): React.JSX.Element;
|
|
2
2
|
export namespace Dropdown {
|
|
3
3
|
export namespace defaultProps {
|
|
4
4
|
let className: string;
|
|
@@ -22,12 +22,13 @@ export namespace Dropdown {
|
|
|
22
22
|
}
|
|
23
23
|
export { Item };
|
|
24
24
|
}
|
|
25
|
+
import React from 'react';
|
|
25
26
|
import PropTypes from 'prop-types';
|
|
26
27
|
declare function Item({ className, isActive, ...restProps }: {
|
|
27
28
|
[x: string]: any;
|
|
28
29
|
className?: string | undefined;
|
|
29
30
|
isActive?: boolean | undefined;
|
|
30
|
-
}): JSX.Element;
|
|
31
|
+
}): React.JSX.Element;
|
|
31
32
|
declare namespace Item {
|
|
32
33
|
export namespace propTypes_1 {
|
|
33
34
|
let className_2: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function EmptySet(props: any): JSX.Element;
|
|
1
|
+
export function EmptySet(props: any): React.JSX.Element;
|
|
2
2
|
export namespace EmptySet {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let resources: PropTypes.Validator<string>;
|
|
@@ -13,4 +13,5 @@ export namespace EmptySet {
|
|
|
13
13
|
export { handleViewAll_1 as handleViewAll };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import PropTypes from 'prop-types';
|
|
@@ -2,7 +2,7 @@ export function FileName({ className, as: Component, name }: {
|
|
|
2
2
|
className: any;
|
|
3
3
|
as: any;
|
|
4
4
|
name: any;
|
|
5
|
-
}): JSX.Element;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
export namespace FileName {
|
|
7
7
|
namespace defaultProps {
|
|
8
8
|
let className: string;
|
|
@@ -18,4 +18,5 @@ export namespace FileName {
|
|
|
18
18
|
export { name_1 as name };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
import React from 'react';
|
|
21
22
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Filters(props: any): JSX.Element;
|
|
1
|
+
export function Filters(props: any): React.JSX.Element;
|
|
2
2
|
export namespace Filters {
|
|
3
3
|
namespace defaultProps {
|
|
4
4
|
let className: string;
|
|
@@ -11,4 +11,5 @@ export namespace Filters {
|
|
|
11
11
|
export let toggleFilter: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
import React from 'react';
|
|
14
15
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Filters(props: any): JSX.Element;
|
|
1
|
+
export function Filters(props: any): React.JSX.Element;
|
|
2
2
|
export namespace Filters {
|
|
3
3
|
namespace defaultProps {
|
|
4
4
|
let onChange: null;
|
|
@@ -9,4 +9,5 @@ export namespace Filters {
|
|
|
9
9
|
export { onChange_1 as onChange };
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
import React from 'react';
|
|
12
13
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function HorizontalBarChart(props: any): JSX.Element;
|
|
1
|
+
export function HorizontalBarChart(props: any): React.JSX.Element;
|
|
2
2
|
export namespace HorizontalBarChart {
|
|
3
3
|
namespace defaultProps {
|
|
4
4
|
let className: string;
|
|
@@ -19,4 +19,5 @@ export namespace HorizontalBarChart {
|
|
|
19
19
|
export { maxValue_1 as maxValue };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
import React from 'react';
|
|
22
23
|
import PropTypes from 'prop-types';
|
package/types/ui/icon/icon.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface IconProps {
|
|
|
31
31
|
as?: React.ElementType;
|
|
32
32
|
}
|
|
33
33
|
export declare const Icon: {
|
|
34
|
-
(props: IconProps & React.ComponentProps<'span'>): JSX.Element;
|
|
34
|
+
(props: IconProps & React.ComponentProps<'span'>): React.JSX.Element;
|
|
35
35
|
ICONS: {
|
|
36
36
|
readonly ARROW: "arrow";
|
|
37
37
|
readonly ARROW_RIGHT_CIRLCE: "arrow-right-circle";
|
|
@@ -2,7 +2,7 @@ export function Input({ className, size, ...restProps }: {
|
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
className: any;
|
|
4
4
|
size: any;
|
|
5
|
-
}): JSX.Element;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
export namespace Input {
|
|
7
7
|
namespace propTypes {
|
|
8
8
|
let className: PropTypes.Requireable<string>;
|
|
@@ -15,4 +15,5 @@ export namespace Input {
|
|
|
15
15
|
export { size_1 as size };
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
import React from 'react';
|
|
18
19
|
import PropTypes from 'prop-types';
|
|
@@ -2,7 +2,7 @@ export function Loader({ className, size, ...restProps }: {
|
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
className: any;
|
|
4
4
|
size: any;
|
|
5
|
-
}): JSX.Element;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
export namespace Loader {
|
|
7
7
|
let SIZE_SMALL: string;
|
|
8
8
|
let SIZE_MEDIUM: string;
|
|
@@ -20,4 +20,5 @@ export namespace Loader {
|
|
|
20
20
|
export { size_1 as size };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
import React from 'react';
|
|
23
24
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Skeleton(props: any): JSX.Element;
|
|
1
|
+
export function Skeleton(props: any): React.JSX.Element;
|
|
2
2
|
export namespace Skeleton {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let className: PropTypes.Requireable<string>;
|
|
@@ -14,4 +14,5 @@ export namespace Skeleton {
|
|
|
14
14
|
export { block_1 as block };
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
import React from 'react';
|
|
17
18
|
import PropTypes from 'prop-types';
|
|
@@ -5,7 +5,7 @@ interface TableProps {
|
|
|
5
5
|
outline?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const Table: {
|
|
8
|
-
(props: TableProps & React.ComponentProps<'table'>): JSX.Element;
|
|
8
|
+
(props: TableProps & React.ComponentProps<'table'>): React.JSX.Element;
|
|
9
9
|
THead: React.ElementType<any>;
|
|
10
10
|
TBody: React.ElementType<any>;
|
|
11
11
|
Tr: React.ElementType<any>;
|
package/types/ui/tabs/tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function Tabs({ className, ...restProps }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
className: any;
|
|
4
|
-
}): JSX.Element;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
5
|
export namespace Tabs {
|
|
6
6
|
export namespace defaultProps {
|
|
7
7
|
let className: string;
|
|
@@ -13,13 +13,14 @@ export namespace Tabs {
|
|
|
13
13
|
}
|
|
14
14
|
export { Item };
|
|
15
15
|
}
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import PropTypes from 'prop-types';
|
|
17
18
|
declare function Item({ isTabActive, as: Component, className, ...restProps }: {
|
|
18
19
|
[x: string]: any;
|
|
19
20
|
isTabActive: any;
|
|
20
21
|
as: any;
|
|
21
22
|
className: any;
|
|
22
|
-
}): JSX.Element;
|
|
23
|
+
}): React.JSX.Element;
|
|
23
24
|
declare namespace Item {
|
|
24
25
|
export namespace defaultProps_1 {
|
|
25
26
|
export let isTabActive: boolean;
|
package/types/ui/tag/tag.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface TagProps {
|
|
|
6
6
|
size?: (typeof SIZE)[keyof typeof SIZE];
|
|
7
7
|
}
|
|
8
8
|
export declare const Tag: {
|
|
9
|
-
(props: TagProps & React.ComponentProps<'span'>): JSX.Element;
|
|
9
|
+
(props: TagProps & React.ComponentProps<'span'>): React.JSX.Element;
|
|
10
10
|
KINDS: {
|
|
11
11
|
readonly DEFAULT: "default";
|
|
12
12
|
readonly SUCCESS: "success";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Toolbar(props: any): JSX.Element;
|
|
1
|
+
export function Toolbar(props: any): React.JSX.Element;
|
|
2
2
|
export namespace Toolbar {
|
|
3
3
|
namespace propTypes {
|
|
4
4
|
let className: PropTypes.Requireable<string>;
|
|
@@ -12,4 +12,5 @@ export namespace Toolbar {
|
|
|
12
12
|
export { renderActions_1 as renderActions };
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
import React from 'react';
|
|
15
16
|
import PropTypes from 'prop-types';
|
|
@@ -7,5 +7,5 @@ interface TooltipProps<T extends React.ElementType> {
|
|
|
7
7
|
containerRef?: React.RefObject<HTMLElement>;
|
|
8
8
|
darkMode?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const Tooltip: <T extends React.ElementType<any> = "span">(props: TooltipProps<T> & Omit<React.ComponentProps<T>, keyof TooltipProps<T>>) => JSX.Element;
|
|
10
|
+
export declare const Tooltip: <T extends React.ElementType<any> = "span">(props: TooltipProps<T> & Omit<React.ComponentProps<T>, keyof TooltipProps<T>>) => React.JSX.Element;
|
|
11
11
|
export {};
|
package/types/utils.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export function getColors(count?: number): string[];
|
|
2
|
-
export function getRenderChildWithClassName(className: any): (child: any) => JSX.Element | null;
|
|
2
|
+
export function getRenderChildWithClassName(className: any): (child: any) => React.JSX.Element | null;
|
|
3
|
+
import React from 'react';
|