@taikai/rocket-kit 2.0.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/LICENSE +21 -0
- package/README.md +164 -0
- package/dist/atoms/avatar-image/index.d.ts +13 -0
- package/dist/atoms/avatar-image/stories/avatar-image.stories.d.ts +48 -0
- package/dist/atoms/avatar-image/styles.d.ts +6 -0
- package/dist/atoms/button/index.d.ts +22 -0
- package/dist/atoms/button/styles.d.ts +11 -0
- package/dist/atoms/button/types.d.ts +2 -0
- package/dist/atoms/button-dropdown/index.d.ts +19 -0
- package/dist/atoms/button-dropdown/styles.d.ts +5 -0
- package/dist/atoms/button-dropdown/types.d.ts +8 -0
- package/dist/atoms/button-link/index.d.ts +22 -0
- package/dist/atoms/button-link/styles.d.ts +10 -0
- package/dist/atoms/checkbox/index.d.ts +15 -0
- package/dist/atoms/checkbox/styles.d.ts +11 -0
- package/dist/atoms/checkbox-button/index.d.ts +14 -0
- package/dist/atoms/checkbox-button/stories/checkbox-button.stories.d.ts +24 -0
- package/dist/atoms/checkbox-button/styles.d.ts +9 -0
- package/dist/atoms/error-field/index.d.ts +10 -0
- package/dist/atoms/error-field/styles.d.ts +6 -0
- package/dist/atoms/error-field/types.d.ts +1 -0
- package/dist/atoms/file-picker/index.d.ts +17 -0
- package/dist/atoms/file-picker/stories/file-picker.stories.d.ts +23 -0
- package/dist/atoms/file-picker/styles.d.ts +7 -0
- package/dist/atoms/icon/index.d.ts +9 -0
- package/dist/atoms/icon/stories/icon.stories.d.ts +40 -0
- package/dist/atoms/icon/stories/styles.d.ts +1 -0
- package/dist/atoms/label/index.d.ts +9 -0
- package/dist/atoms/label/styles.d.ts +1 -0
- package/dist/atoms/progress-bar/index.d.ts +7 -0
- package/dist/atoms/progress-bar/stories/progress-bar.stories.d.ts +15 -0
- package/dist/atoms/progress-bar/styles.d.ts +9 -0
- package/dist/atoms/select/index.d.ts +17 -0
- package/dist/atoms/select/stories/select.stories.d.ts +37 -0
- package/dist/atoms/select/styles.d.ts +6 -0
- package/dist/atoms/select-interactive/components/index.d.ts +6 -0
- package/dist/atoms/select-interactive/index.d.ts +4 -0
- package/dist/atoms/select-interactive/stories/select-interactive.stories.d.ts +54 -0
- package/dist/atoms/select-interactive/styles.d.ts +4 -0
- package/dist/atoms/select-interactive/types.d.ts +34 -0
- package/dist/atoms/slideshow/index.d.ts +13 -0
- package/dist/atoms/slideshow/stories/slideshow.stories.d.ts +22 -0
- package/dist/atoms/slideshow/styles.d.ts +5 -0
- package/dist/atoms/spinner/index.d.ts +9 -0
- package/dist/atoms/spinner/styles.d.ts +6 -0
- package/dist/atoms/tag/index.d.ts +11 -0
- package/dist/atoms/tag/styles.d.ts +7 -0
- package/dist/atoms/tag/types.d.ts +2 -0
- package/dist/atoms/tag-number/index.d.ts +9 -0
- package/dist/atoms/tag-number/stories/tag-number.stories.d.ts +15 -0
- package/dist/atoms/tag-number/styles.d.ts +1 -0
- package/dist/atoms/text-area/index.d.ts +21 -0
- package/dist/atoms/text-area/stories/text-area.stories.d.ts +93 -0
- package/dist/atoms/text-area/styles.d.ts +11 -0
- package/dist/atoms/text-field/index.d.ts +23 -0
- package/dist/atoms/text-field/styles.d.ts +7 -0
- package/dist/atoms/text-field/types.d.ts +1 -0
- package/dist/atoms/text-field-appendix/index.d.ts +22 -0
- package/dist/atoms/text-field-appendix/stories/text-field-appendix.stories.d.ts +43 -0
- package/dist/atoms/text-field-appendix/styles.d.ts +10 -0
- package/dist/atoms/toggle/index.d.ts +4 -0
- package/dist/atoms/toggle/stories/toogle.stories.d.ts +18 -0
- package/dist/atoms/toggle/styles.d.ts +1 -0
- package/dist/atoms/toggle/types.d.ts +16 -0
- package/dist/atoms/truncate-line/index.d.ts +9 -0
- package/dist/atoms/truncate-line/stories/truncate-line.stories.d.ts +14 -0
- package/dist/atoms/truncate-line/styles.d.ts +1 -0
- package/dist/atoms/video-player/index.d.ts +12 -0
- package/dist/atoms/video-player/stories/video-player.stories.d.ts +24 -0
- package/dist/atoms/video-player/styles.d.ts +1 -0
- package/dist/globalStyles.d.ts +2 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +8 -0
- package/dist/ions/breakpoints.d.ts +9 -0
- package/dist/ions/icon-empty-data.d.ts +3 -0
- package/dist/ions/icon-login-only.d.ts +3 -0
- package/dist/ions/icons.d.ts +5 -0
- package/dist/ions/variables.d.ts +25 -0
- package/dist/molecules/actions-menu/index.d.ts +19 -0
- package/dist/molecules/actions-menu/styles.d.ts +6 -0
- package/dist/molecules/actions-menu/types.d.ts +10 -0
- package/dist/molecules/alert-notification/index.d.ts +11 -0
- package/dist/molecules/alert-notification/stories/alert-notification.stories.d.ts +25 -0
- package/dist/molecules/alert-notification/styles.d.ts +5 -0
- package/dist/molecules/card-value/index.d.ts +13 -0
- package/dist/molecules/card-value/styles.d.ts +2 -0
- package/dist/molecules/checkbox-group/index.d.ts +23 -0
- package/dist/molecules/checkbox-group/stories/checkbox-group.stories.d.ts +33 -0
- package/dist/molecules/checkbox-group/styles.d.ts +6 -0
- package/dist/molecules/data-warning/index.d.ts +7 -0
- package/dist/molecules/data-warning/stories/data-warning.stories.d.ts +22 -0
- package/dist/molecules/data-warning/styles.d.ts +5 -0
- package/dist/molecules/empty-table/index.d.ts +8 -0
- package/dist/molecules/empty-table/stories/empty-table.stories.d.ts +17 -0
- package/dist/molecules/empty-table/styles.d.ts +10 -0
- package/dist/molecules/error/index.d.ts +7 -0
- package/dist/molecules/error/stories/error.stories.d.ts +22 -0
- package/dist/molecules/error/styles.d.ts +5 -0
- package/dist/molecules/field-with-button/index.d.ts +20 -0
- package/dist/molecules/field-with-button/stories/field-with-button.stories.d.ts +26 -0
- package/dist/molecules/field-with-button/styles.d.ts +2 -0
- package/dist/molecules/form-group/index.d.ts +9 -0
- package/dist/molecules/form-group/stories/form-group.stories.d.ts +28 -0
- package/dist/molecules/form-group/styles.d.ts +5 -0
- package/dist/molecules/modal-footer/index.d.ts +11 -0
- package/dist/molecules/modal-footer/stories/modal-footer.stories.d.ts +22 -0
- package/dist/molecules/modal-footer/styles.d.ts +1 -0
- package/dist/molecules/note-card/index.d.ts +12 -0
- package/dist/molecules/note-card/styles.d.ts +7 -0
- package/dist/molecules/note-card/types.d.ts +1 -0
- package/dist/molecules/number-input-spinner/index.d.ts +13 -0
- package/dist/molecules/number-input-spinner/stories/number-input-spinner.stories.d.ts +39 -0
- package/dist/molecules/number-input-spinner/styles.d.ts +7 -0
- package/dist/molecules/pagination-control/index.d.ts +11 -0
- package/dist/molecules/pagination-control/stories/pagination-control.stories.d.ts +42 -0
- package/dist/molecules/pagination-control/styles.d.ts +5 -0
- package/dist/molecules/radio-group/index.d.ts +20 -0
- package/dist/molecules/radio-group/stories/radio-group.stories.d.ts +34 -0
- package/dist/molecules/radio-group/styles.d.ts +13 -0
- package/dist/molecules/table/index.d.ts +32 -0
- package/dist/molecules/table/stories/table.stories.d.ts +28 -0
- package/dist/molecules/table/styles.d.ts +7 -0
- package/dist/molecules/table-dnd/index.d.ts +33 -0
- package/dist/molecules/table-dnd/stories/table-dnd.stories.d.ts +23 -0
- package/dist/molecules/table-dnd/styles.d.ts +8 -0
- package/dist/molecules/wizard-steps/index.d.ts +14 -0
- package/dist/molecules/wizard-steps/stories/wizard-steps.stories.d.ts +14 -0
- package/dist/molecules/wizard-steps/styles.d.ts +6 -0
- package/dist/organisms/grid-container/grid-col.d.ts +8 -0
- package/dist/organisms/grid-container/grid-row.d.ts +4 -0
- package/dist/organisms/grid-container/index.d.ts +7 -0
- package/dist/organisms/grid-container/stories/grid-container.stories.d.ts +10 -0
- package/dist/organisms/grid-container/styles.d.ts +6 -0
- package/dist/organisms/horizontal-nav/index.d.ts +9 -0
- package/dist/organisms/horizontal-nav/stories/horizontal-nav.stories.d.ts +20 -0
- package/dist/organisms/horizontal-nav/styles.d.ts +6 -0
- package/dist/organisms/loading-state/index.d.ts +12 -0
- package/dist/organisms/loading-state/stories/loading-state.stories.d.ts +28 -0
- package/dist/organisms/loading-state/styles.d.ts +9 -0
- package/dist/organisms/modal/index.d.ts +12 -0
- package/dist/organisms/modal/stories/modal.stories.d.ts +25 -0
- package/dist/organisms/modal/styles.d.ts +9 -0
- package/dist/organisms/modal-drawer/index.d.ts +13 -0
- package/dist/organisms/modal-drawer/stories/modal-drawer.stories.d.ts +26 -0
- package/dist/organisms/modal-drawer/styles.d.ts +9 -0
- package/dist/organisms/tabs-panel/index.d.ts +14 -0
- package/dist/organisms/tabs-panel/stories/tabs-panel.stories.d.ts +20 -0
- package/dist/organisms/tabs-panel/styles.d.ts +1 -0
- package/dist/rocket-kit.cjs.development.js +6429 -0
- package/dist/rocket-kit.cjs.development.js.map +1 -0
- package/dist/rocket-kit.cjs.production.min.js +1694 -0
- package/dist/rocket-kit.cjs.production.min.js.map +1 -0
- package/dist/rocket-kit.esm.js +6373 -0
- package/dist/rocket-kit.esm.js.map +1 -0
- package/dist/utils/filters/has-value.d.ts +1 -0
- package/dist/utils/hooks/use-mouse-move-effect.d.ts +5 -0
- package/dist/utils/hooks/use-visible.d.ts +6 -0
- package/package.json +122 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { default as AvatarImage } from './atoms/avatar-image';
|
|
2
|
+
export { default as Button } from './atoms/button';
|
|
3
|
+
export { default as ButtonDropdown } from './atoms/button-dropdown';
|
|
4
|
+
export { default as ButtonLink } from './atoms/button-link';
|
|
5
|
+
export { default as Checkbox } from './atoms/checkbox';
|
|
6
|
+
export { default as CheckboxButton } from './atoms/checkbox-button';
|
|
7
|
+
export { default as ErrorField } from './atoms/error-field';
|
|
8
|
+
export { default as Icon } from './atoms/icon';
|
|
9
|
+
export { default as Label } from './atoms/label';
|
|
10
|
+
export { default as Spinner } from './atoms/spinner';
|
|
11
|
+
export { default as Tag } from './atoms/tag';
|
|
12
|
+
export { default as TagNumber } from './atoms/tag-number';
|
|
13
|
+
export { default as TextField } from './atoms/text-field';
|
|
14
|
+
export { default as TextArea } from './atoms/text-area';
|
|
15
|
+
export { default as Select } from './atoms/select';
|
|
16
|
+
export { default as SelectInteractive } from './atoms/select-interactive';
|
|
17
|
+
export { default as TextFieldAppendix } from './atoms/text-field-appendix';
|
|
18
|
+
export { default as TruncateLine } from './atoms/truncate-line';
|
|
19
|
+
export { default as Slideshow } from './atoms/slideshow';
|
|
20
|
+
export { default as VideoPlayer } from './atoms/video-player';
|
|
21
|
+
export { default as ProgressBar } from './atoms/progress-bar';
|
|
22
|
+
export { default as Toggle } from './atoms/toggle';
|
|
23
|
+
export { default as FilePicker } from './atoms/file-picker';
|
|
24
|
+
export { default as ActionsMenu } from './molecules/actions-menu';
|
|
25
|
+
export { default as CardValue } from './molecules/card-value';
|
|
26
|
+
export { default as EmptyTable } from './molecules/empty-table';
|
|
27
|
+
export { default as ModalFooter } from './molecules/modal-footer';
|
|
28
|
+
export { default as NoteCard } from './molecules/note-card';
|
|
29
|
+
export { default as Table } from './molecules/table';
|
|
30
|
+
export { default as TableDnD } from './molecules/table-dnd';
|
|
31
|
+
export { default as FormGroup } from './molecules/form-group';
|
|
32
|
+
export { default as NumberInputSpinner } from './molecules/number-input-spinner';
|
|
33
|
+
export { default as WizardSteps } from './molecules/wizard-steps';
|
|
34
|
+
export { default as AlertNotification } from './molecules/alert-notification';
|
|
35
|
+
export { default as PaginationControl } from './molecules/pagination-control';
|
|
36
|
+
export { default as Error } from './molecules/error';
|
|
37
|
+
export { default as DataWarning } from './molecules/data-warning';
|
|
38
|
+
export { default as RadioGroup } from './molecules/radio-group';
|
|
39
|
+
export { default as CheckboxGroup } from './molecules/checkbox-group';
|
|
40
|
+
export { default as FieldWidthButton } from './molecules/field-with-button';
|
|
41
|
+
export { default as HorizontalNav } from './organisms/horizontal-nav';
|
|
42
|
+
export { default as Modal } from './organisms/modal';
|
|
43
|
+
export { default as ModalDrawer } from './organisms/modal-drawer';
|
|
44
|
+
export { default as LoadingState } from './organisms/loading-state';
|
|
45
|
+
export { default as TabsPanel } from './organisms/tabs-panel';
|
|
46
|
+
export { default as GridContainer } from './organisms/grid-container';
|
|
47
|
+
export { default as GridRow } from './organisms/grid-container/grid-row';
|
|
48
|
+
export { default as GridCol } from './organisms/grid-container/grid-col';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
normal: string;
|
|
3
|
+
light: string;
|
|
4
|
+
blue: string;
|
|
5
|
+
darkBlue: string;
|
|
6
|
+
orange: string;
|
|
7
|
+
darkOrange: string;
|
|
8
|
+
red: string;
|
|
9
|
+
lightRed: string;
|
|
10
|
+
darkRed: string;
|
|
11
|
+
purple: string;
|
|
12
|
+
lightPurple: string;
|
|
13
|
+
darkPurple: string;
|
|
14
|
+
green: string;
|
|
15
|
+
lightGreen: string;
|
|
16
|
+
darkGreen: string;
|
|
17
|
+
grey: string;
|
|
18
|
+
lightGrey: string;
|
|
19
|
+
darkGrey: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const fontWeight: {
|
|
22
|
+
regular: number;
|
|
23
|
+
medium: number;
|
|
24
|
+
bold: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionMenu } from './types';
|
|
3
|
+
interface ActionsMenuListInterface<T> {
|
|
4
|
+
actions: ActionMenu<T>[];
|
|
5
|
+
data?: any;
|
|
6
|
+
rowIndex?: number;
|
|
7
|
+
handleOptionClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface ActionsMenuInterface<T> {
|
|
10
|
+
className?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
actions: ActionMenu<T>[];
|
|
13
|
+
data?: T;
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
startsOpen?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const ActionMenuList: <T>(props: ActionsMenuListInterface<T>) => JSX.Element;
|
|
18
|
+
declare const ActionsMenu: <T>(props: ActionsMenuInterface<T>) => JSX.Element;
|
|
19
|
+
export default ActionsMenu;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface ListInterface {
|
|
2
|
+
rowIndex?: number;
|
|
3
|
+
}
|
|
4
|
+
export declare const ActionsMenuStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const List: import("styled-components").StyledComponent<"ul", any, ListInterface, never>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ActionMenuType = 'default' | 'danger' | 'disabled';
|
|
3
|
+
export interface ActionMenu<T> {
|
|
4
|
+
id: string;
|
|
5
|
+
type: ActionMenuType;
|
|
6
|
+
value: string;
|
|
7
|
+
visibilityFunc?: (data: T) => boolean;
|
|
8
|
+
url?: string;
|
|
9
|
+
action?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>, data: T | null) => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export interface AlertNotificationProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
variant?: 'success' | 'orange' | 'red';
|
|
6
|
+
value: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
closeAction?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const AlertNotification: (props: AlertNotificationProps) => JSX.Element;
|
|
11
|
+
export default AlertNotification;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlertNotificationProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: AlertNotificationProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
variant: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const AlertNotificationComponent: {
|
|
17
|
+
(args: AlertNotificationProps): JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
args: {
|
|
20
|
+
className: string;
|
|
21
|
+
variant: string;
|
|
22
|
+
value: string;
|
|
23
|
+
closeAction: () => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CardValueProps {
|
|
3
|
+
label: string;
|
|
4
|
+
kai?: boolean;
|
|
5
|
+
value: string | number;
|
|
6
|
+
description?: string;
|
|
7
|
+
buttonValue?: string;
|
|
8
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const CardValue: (props: CardValueProps) => JSX.Element;
|
|
13
|
+
export default CardValue;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export declare type CheckboxItem = {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string | React.ReactNode;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
error?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export interface CheckboxGroupProps {
|
|
15
|
+
type?: 'row' | 'column';
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
options?: CheckboxItem[];
|
|
18
|
+
error?: string;
|
|
19
|
+
onChange?: () => {};
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element;
|
|
23
|
+
export default CheckboxGroup;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxGroupProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: CheckboxGroupProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
onChange: {
|
|
14
|
+
action: () => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
export declare const CheckboxGroupComponent: {
|
|
20
|
+
(args: CheckboxGroupProps): JSX.Element;
|
|
21
|
+
storyName: string;
|
|
22
|
+
args: {
|
|
23
|
+
type: string;
|
|
24
|
+
options: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
checked: null;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
error: string;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataWarningProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: DataWarningProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const DataWarningComponent: {
|
|
17
|
+
(args: DataWarningProps): JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
args: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EmptyTableProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: EmptyTableProps) => JSX.Element;
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const EmptyTableComponent: {
|
|
10
|
+
(args: EmptyTableProps): JSX.Element;
|
|
11
|
+
storyName: string;
|
|
12
|
+
args: {
|
|
13
|
+
border: boolean;
|
|
14
|
+
tableHead: string[];
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface BorderProps {
|
|
2
|
+
border: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const EmptyTableWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const EmptyTableHead: import("styled-components").StyledComponent<"div", any, BorderProps, never>;
|
|
6
|
+
export declare const EmptyTableBody: import("styled-components").StyledComponent<"div", any, BorderProps, never>;
|
|
7
|
+
export declare const EmptyTableRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const EmptyTableCellText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const EmptyTableOverlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ErrorProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: ErrorProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
variant: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const ErrorComponent: {
|
|
17
|
+
(args: ErrorProps): JSX.Element;
|
|
18
|
+
args: {
|
|
19
|
+
variant: string;
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldType } from '../../atoms/text-field/types';
|
|
3
|
+
export interface FieldWidthButtonProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
type?: TextFieldType;
|
|
6
|
+
name?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
error?: string;
|
|
12
|
+
dataTestId?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
buttonIcon: string;
|
|
15
|
+
buttonValue?: string;
|
|
16
|
+
buttonAction?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
17
|
+
buttonDisabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const FieldWidthButton: (props: FieldWidthButtonProps) => JSX.Element;
|
|
20
|
+
export default FieldWidthButton;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldWidthButtonProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: FieldWidthButtonProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
onChange: {
|
|
8
|
+
action: () => void;
|
|
9
|
+
};
|
|
10
|
+
buttonAction: {
|
|
11
|
+
action: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
export declare const FieldWidthButtonComponent: {
|
|
17
|
+
(args: FieldWidthButtonProps): JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
args: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
buttonIcon: string;
|
|
24
|
+
buttonValue: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormGroupProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: FormGroupProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
error: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
kai: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const FormGroupComponent: {
|
|
21
|
+
(args: FormGroupProps): JSX.Element;
|
|
22
|
+
storyName: string;
|
|
23
|
+
args: {
|
|
24
|
+
label: string;
|
|
25
|
+
kai: boolean;
|
|
26
|
+
error: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalFooterProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
closeAction?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
+
closeValue?: string;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
declare const ModalFooter: (props: ModalFooterProps) => JSX.Element;
|
|
11
|
+
export default ModalFooter;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalFooterProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: ModalFooterProps) => JSX.Element;
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const ModalFooterComponentNoChildren: {
|
|
10
|
+
(args: ModalFooterProps): JSX.Element;
|
|
11
|
+
storyName: string;
|
|
12
|
+
args: {
|
|
13
|
+
closeValue: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const ModalFooterComponentChildren: {
|
|
17
|
+
(args: ModalFooterProps): JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
args: {
|
|
20
|
+
closeValue: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FooterStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { NoteColor } from './types';
|
|
3
|
+
interface NoteCardProps {
|
|
4
|
+
color?: NoteColor;
|
|
5
|
+
value: any;
|
|
6
|
+
buttonValue?: string;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const NoteCard: (props: NoteCardProps) => JSX.Element;
|
|
12
|
+
export default NoteCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type NoteColor = 'grey' | 'green' | 'red';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface NumberInputSpinnerProps {
|
|
3
|
+
decreaseAriaLabel?: string;
|
|
4
|
+
increaseAriaLabel?: string;
|
|
5
|
+
increment?: number;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
value?: number;
|
|
9
|
+
onChange?: (value: number) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const NumberInputSpinner: (props: NumberInputSpinnerProps) => JSX.Element;
|
|
13
|
+
export default NumberInputSpinner;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NumberInputSpinnerProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: NumberInputSpinnerProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
onChange: {
|
|
8
|
+
action: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const NumberInputSpinnerSimpleComponent: {
|
|
14
|
+
(args: NumberInputSpinnerProps): JSX.Element;
|
|
15
|
+
storyName: string;
|
|
16
|
+
args: {
|
|
17
|
+
increment: number;
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
value: number;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const NumberInputSpinnerLongComponent: {
|
|
25
|
+
(args: NumberInputSpinnerProps): JSX.Element;
|
|
26
|
+
storyName: string;
|
|
27
|
+
args: {
|
|
28
|
+
max: number;
|
|
29
|
+
value: number;
|
|
30
|
+
storyName: string;
|
|
31
|
+
args: {
|
|
32
|
+
increment: number;
|
|
33
|
+
min: number;
|
|
34
|
+
max: number;
|
|
35
|
+
value: number;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface NumberInputSpinnerProps {
|
|
2
|
+
max?: number;
|
|
3
|
+
}
|
|
4
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, NumberInputSpinnerProps, never>;
|
|
6
|
+
export declare const Button: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PageControlProps {
|
|
3
|
+
dark?: boolean;
|
|
4
|
+
page: number;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
hrefBuilder?: any;
|
|
7
|
+
onPageChange?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
8
|
+
ariaLabelBuilder?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const PaginationControl: (props: PageControlProps) => JSX.Element;
|
|
11
|
+
export default PaginationControl;
|