@taikai/rocket-kit 3.0.0-beta.1 → 3.0.0-beta.3
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/dist/atoms/checkbox/index.d.ts +1 -1
- package/dist/atoms/progress-bar/index.d.ts +0 -1
- package/dist/atoms/select-interactive/components/index.d.ts +6 -3
- package/dist/atoms/select-interactive/index.d.ts +0 -1
- package/dist/atoms/select-interactive/types.d.ts +2 -2
- package/dist/atoms/slideshow/index.d.ts +0 -1
- package/dist/atoms/toggle/index.d.ts +0 -1
- package/dist/atoms/video-player/index.d.ts +0 -1
- package/dist/ions/icon-empty-data.d.ts +0 -1
- package/dist/ions/icon-login-only.d.ts +0 -1
- package/dist/molecules/actions-menu/index.d.ts +0 -1
- package/dist/molecules/empty-table/index.d.ts +0 -1
- package/dist/molecules/error/index.d.ts +0 -1
- package/dist/molecules/number-input-spinner/index.d.ts +0 -1
- package/dist/molecules/table/index.d.ts +3 -0
- package/dist/molecules/table/stories/table.stories.d.ts +18 -0
- package/dist/molecules/table/styles.d.ts +4 -2
- package/dist/organisms/grid-container/grid-row.d.ts +0 -1
- package/dist/organisms/horizontal-nav/index.d.ts +0 -1
- package/dist/organisms/loading-state/index.d.ts +1 -5
- package/dist/organisms/loading-state/stories/loading-state.stories.d.ts +0 -3
- package/dist/organisms/loading-state/styles.d.ts +0 -1
- package/dist/rocket-kit.cjs.development.js +132 -106
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +92 -87
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +133 -107
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +5 -6
|
@@ -11,5 +11,5 @@ interface Props {
|
|
|
11
11
|
dataTestId?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Checkbox: (
|
|
14
|
+
declare const Checkbox: ({ label, value, checked, onChange, error, disabled, className, style, dataTestId, required, }: Props) => JSX.Element;
|
|
15
15
|
export default Checkbox;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TCustomOptions,
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { TCustomOptions, TSelectInteractiveOption } from '../types';
|
|
3
|
+
export interface GroupBase {
|
|
4
|
+
options: readonly TSelectInteractiveOption[];
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormatGroupLabel: (props: GroupBase) => JSX.Element;
|
|
5
8
|
export declare const CustomSelectOption: (props: TCustomOptions, commonProps: any) => JSX.Element;
|
|
6
9
|
export declare const CustomSelectValue: (props: TCustomOptions) => JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
|
|
3
2
|
declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => JSX.Element;
|
|
4
3
|
export default SelectInteractive;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MapHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import NamedProps from 'react-select/dist/declarations/src/Select';
|
|
3
3
|
export interface TSelectInteractiveOption {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -7,7 +7,7 @@ export interface TSelectInteractiveOption {
|
|
|
7
7
|
}
|
|
8
8
|
export interface TOptions extends TSelectInteractiveOption {
|
|
9
9
|
icon?: string;
|
|
10
|
-
customImage?:
|
|
10
|
+
customImage?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface TCustomOptions {
|
|
13
13
|
data: TOptions;
|
|
@@ -19,6 +19,9 @@ export interface TableProps<CellDataType> {
|
|
|
19
19
|
dataTestId?: string;
|
|
20
20
|
menuDataTestId?: string;
|
|
21
21
|
actionMenuTestId?: string;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
loadingColumns?: number;
|
|
24
|
+
loadingRows?: number;
|
|
22
25
|
showEmpty?: boolean;
|
|
23
26
|
emptyValue?: string;
|
|
24
27
|
className?: string;
|
|
@@ -11,6 +11,21 @@ declare const _default: {
|
|
|
11
11
|
type: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
loading: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
loadingColumns: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
loadingRows: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
14
29
|
};
|
|
15
30
|
};
|
|
16
31
|
export default _default;
|
|
@@ -19,6 +34,9 @@ export declare const TableComponent: {
|
|
|
19
34
|
storyName: string;
|
|
20
35
|
args: {
|
|
21
36
|
border: boolean;
|
|
37
|
+
loading: boolean;
|
|
38
|
+
loadingColumns: number;
|
|
39
|
+
loadingRows: number;
|
|
22
40
|
};
|
|
23
41
|
};
|
|
24
42
|
export declare const TableEmptyComponent: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface TableProps {
|
|
2
2
|
border?: boolean;
|
|
3
|
+
loadingState?: boolean;
|
|
3
4
|
}
|
|
4
5
|
export declare const TableWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const OverflowWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const Table: import("styled-components").StyledComponent<"table", any,
|
|
7
|
+
export declare const Table: import("styled-components").StyledComponent<"table", any, TableProps, never>;
|
|
8
|
+
export declare const SkeletonCell: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
9
|
export {};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface LoadingStateProps {
|
|
3
|
-
type: 'text' | 'card' | '
|
|
2
|
+
type: 'text' | 'card' | 'value';
|
|
4
3
|
lines?: number;
|
|
5
4
|
cardsNumber?: number;
|
|
6
|
-
header?: boolean;
|
|
7
|
-
columnsNumber?: number;
|
|
8
|
-
rowsNumber?: number;
|
|
9
5
|
center?: boolean;
|
|
10
6
|
}
|
|
11
7
|
declare const LoadingState: (props: LoadingStateProps) => JSX.Element;
|
|
@@ -4,6 +4,5 @@ interface LoadingStateProps {
|
|
|
4
4
|
center?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, LoadingStateProps, never>;
|
|
7
|
-
export declare const Table: import("styled-components").StyledComponent<"div", any, LoadingStateProps, never>;
|
|
8
7
|
export declare const Grid: import("styled-components").StyledComponent<"div", any, LoadingStateProps, never>;
|
|
9
8
|
export {};
|