@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: SelectProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
minimal: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
onChange: {
|
|
13
|
+
action: string;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
23
|
+
export declare const SelectComponent: {
|
|
24
|
+
(args: SelectProps): JSX.Element;
|
|
25
|
+
storyName: string;
|
|
26
|
+
args: {
|
|
27
|
+
minimal: boolean;
|
|
28
|
+
name: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
options: {
|
|
31
|
+
value: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
error: string;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TCustomOptions, TOptions } from '../types';
|
|
3
|
+
import { formatGroupLabel } from 'react-select/src/builtins';
|
|
4
|
+
export declare const FormatGroupLabel: formatGroupLabel<TOptions>;
|
|
5
|
+
export declare const CustomSelectOption: (props: TCustomOptions, commonProps: any) => JSX.Element;
|
|
6
|
+
export declare const CustomSelectValue: (props: TCustomOptions) => JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
|
|
3
|
+
declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => JSX.Element;
|
|
4
|
+
export default SelectInteractive;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectInteractiveProps, TSelectInteractiveOption } from '../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
multi: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
search: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const SelectInteractiveSimpleComponent: {
|
|
21
|
+
(args: SelectInteractiveProps<TSelectInteractiveOption>): JSX.Element;
|
|
22
|
+
storyName: string;
|
|
23
|
+
args: {
|
|
24
|
+
multi: boolean;
|
|
25
|
+
search: boolean;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const SelectInteractiveGroupedOptionsNotFormattedComponent: {
|
|
30
|
+
(args: SelectInteractiveProps<TSelectInteractiveOption>): JSX.Element;
|
|
31
|
+
storyName: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const SelectInteractiveFormatedGroupedOptionsComponent: {
|
|
34
|
+
(args: SelectInteractiveProps<TSelectInteractiveOption>): JSX.Element;
|
|
35
|
+
storyName: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const SelectInteractiveIconsComponent: {
|
|
38
|
+
(args: SelectInteractiveProps<TSelectInteractiveOption>): JSX.Element;
|
|
39
|
+
storyName: string;
|
|
40
|
+
args: {
|
|
41
|
+
multi: boolean;
|
|
42
|
+
search: boolean;
|
|
43
|
+
placeholder: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const SelectInteractiveCustomComponent: {
|
|
47
|
+
(args: SelectInteractiveProps<TSelectInteractiveOption>): JSX.Element;
|
|
48
|
+
storyName: string;
|
|
49
|
+
args: {
|
|
50
|
+
multi: boolean;
|
|
51
|
+
search: boolean;
|
|
52
|
+
placeholder: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SelectGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SelectGroupLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
|
+
export declare const SelectGroupTotal: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MapHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { NamedProps } from 'react-select/src/Select';
|
|
3
|
+
export interface TSelectInteractiveOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
[k: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface TOptions extends TSelectInteractiveOption {
|
|
9
|
+
icon?: string;
|
|
10
|
+
customImage?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface TCustomOptions {
|
|
13
|
+
data: TOptions;
|
|
14
|
+
}
|
|
15
|
+
export interface OptionsGroup<T extends TSelectInteractiveOption> {
|
|
16
|
+
label: string;
|
|
17
|
+
options: ReadonlyArray<T>;
|
|
18
|
+
}
|
|
19
|
+
declare type TDivElement = Omit<MapHTMLAttributes<HTMLDivElement>, 'onChange' | 'placeholder'>;
|
|
20
|
+
declare type Options = TSelectInteractiveOption | ReadonlyArray<TSelectInteractiveOption>;
|
|
21
|
+
export interface SelectInteractiveProps<T extends Options> extends TDivElement, Pick<NamedProps<T>, 'onInputChange'> {
|
|
22
|
+
name?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
clear?: boolean;
|
|
25
|
+
multi?: boolean;
|
|
26
|
+
search?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
placeholder?: ReactNode;
|
|
29
|
+
formatGroupLabel?: boolean;
|
|
30
|
+
value?: ReadonlyArray<TOptions> | TOptions | null | undefined;
|
|
31
|
+
onChange: (values: Array<TOptions> | TOptions) => void;
|
|
32
|
+
options: ReadonlyArray<TOptions | OptionsGroup<TOptions>>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SlideshowProps {
|
|
3
|
+
showArrows?: boolean;
|
|
4
|
+
slidesNumber: number;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
stopOnHover?: boolean;
|
|
7
|
+
interval?: number;
|
|
8
|
+
dynamicHeight?: boolean;
|
|
9
|
+
slideSelected?: number;
|
|
10
|
+
children: any;
|
|
11
|
+
}
|
|
12
|
+
declare const Slideshow: (props: SlideshowProps) => JSX.Element;
|
|
13
|
+
export default Slideshow;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SlideshowProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: SlideshowProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const SlideshowComponent: {
|
|
9
|
+
(args: SlideshowProps): JSX.Element;
|
|
10
|
+
story: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
showArrows: boolean;
|
|
15
|
+
slidesNumber: number;
|
|
16
|
+
autoPlay: boolean;
|
|
17
|
+
stopOnHover: boolean;
|
|
18
|
+
interval: number;
|
|
19
|
+
dynamicHeight: boolean;
|
|
20
|
+
slideSelected: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { TagVariant, TagColor } from './types';
|
|
3
|
+
interface TagProps {
|
|
4
|
+
variant?: TagVariant;
|
|
5
|
+
color?: TagColor;
|
|
6
|
+
value: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
declare const Tag: (props: TagProps) => JSX.Element;
|
|
11
|
+
export default Tag;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagNumberProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: TagNumberProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const TagNumberComponent: {
|
|
9
|
+
(args: TagNumberProps): JSX.Element;
|
|
10
|
+
storyName: string;
|
|
11
|
+
args: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TagWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
export interface TextAreaProps {
|
|
3
|
+
minimal?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
height?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
12
|
+
minlength?: number;
|
|
13
|
+
maxlength?: number;
|
|
14
|
+
charactersCount?: number;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const TextArea: (props: TextAreaProps) => JSX.Element;
|
|
21
|
+
export default TextArea;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextAreaProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: TextAreaProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
minimal: {
|
|
8
|
+
control: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const TextAreaComponent: {
|
|
16
|
+
(args: TextAreaProps): JSX.Element;
|
|
17
|
+
storyName: string;
|
|
18
|
+
args: {
|
|
19
|
+
minimal: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
height: string;
|
|
23
|
+
onChange: () => void;
|
|
24
|
+
error: string;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const TextAreaCharactersCountComponent: {
|
|
30
|
+
(args: TextAreaProps): JSX.Element;
|
|
31
|
+
storyName: string;
|
|
32
|
+
args: {
|
|
33
|
+
minimal: boolean;
|
|
34
|
+
name: string;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
height: string;
|
|
37
|
+
error: string;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
required: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const TextAreaDefaultComponent: {
|
|
43
|
+
(args: TextAreaProps): JSX.Element;
|
|
44
|
+
storyName: string;
|
|
45
|
+
args: {
|
|
46
|
+
minimal: boolean;
|
|
47
|
+
height: string;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
value: null;
|
|
51
|
+
onChange: () => void;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const TextAreaDisabledComponent: {
|
|
56
|
+
(args: TextAreaProps): JSX.Element;
|
|
57
|
+
storyName: string;
|
|
58
|
+
args: {
|
|
59
|
+
minimal: boolean;
|
|
60
|
+
name: string;
|
|
61
|
+
height: string;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
value: string;
|
|
64
|
+
onChange: () => void;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const TextAreaFullBorderComponent: {
|
|
69
|
+
(args: TextAreaProps): JSX.Element;
|
|
70
|
+
storyName: string;
|
|
71
|
+
args: {
|
|
72
|
+
minimal: boolean;
|
|
73
|
+
name: string;
|
|
74
|
+
height: string;
|
|
75
|
+
placeholder: string;
|
|
76
|
+
onChange: () => void;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const TextAreaErrorComponent: {
|
|
81
|
+
(args: TextAreaProps): JSX.Element;
|
|
82
|
+
storyName: string;
|
|
83
|
+
args: {
|
|
84
|
+
minimal: boolean;
|
|
85
|
+
name: string;
|
|
86
|
+
height: string;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
value: string;
|
|
89
|
+
onChange: () => void;
|
|
90
|
+
error: string;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface TextAreaProps {
|
|
2
|
+
minimal?: boolean;
|
|
3
|
+
height?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
minlength?: number;
|
|
6
|
+
maxlength?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const TextAreaStyle: import("styled-components").StyledComponent<"textarea", any, TextAreaProps, never>;
|
|
10
|
+
export declare const Count: import("styled-components").StyledComponent<"div", any, TextAreaProps, never>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { TextFieldType } from './types';
|
|
3
|
+
interface TextFieldProps {
|
|
4
|
+
type?: TextFieldType;
|
|
5
|
+
minimal?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
defaultValue?: string | number;
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
pattern?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const TextField: (props: TextFieldProps) => JSX.Element;
|
|
23
|
+
export default TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TextFieldType = 'text' | 'url' | 'password' | 'date' | 'time' | 'number' | 'email';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldType } from '../text-field/types';
|
|
3
|
+
export interface TextFieldAppendixProps {
|
|
4
|
+
append?: string;
|
|
5
|
+
prepend?: string;
|
|
6
|
+
type?: TextFieldType;
|
|
7
|
+
error?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
defaultValue?: string | number;
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
pattern?: string;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const TextFieldAppendix: (props: TextFieldAppendixProps) => JSX.Element;
|
|
22
|
+
export default TextFieldAppendix;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextFieldAppendixProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: TextFieldAppendixProps) => 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 TextFieldPrependComponent: {
|
|
17
|
+
(args: TextFieldAppendixProps): JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
args: {
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
prepend: string;
|
|
23
|
+
append: string;
|
|
24
|
+
placeholder: string;
|
|
25
|
+
onChange: () => void;
|
|
26
|
+
error: string;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const TextFieldAppendComponent: {
|
|
31
|
+
(args: TextFieldAppendixProps): JSX.Element;
|
|
32
|
+
storyName: string;
|
|
33
|
+
args: {
|
|
34
|
+
type: string;
|
|
35
|
+
name: string;
|
|
36
|
+
prepend: string;
|
|
37
|
+
append: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
onChange: () => void;
|
|
40
|
+
error: string;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface TextFieldAppendixProps {
|
|
2
|
+
error?: string;
|
|
3
|
+
}
|
|
4
|
+
interface AppendixProps {
|
|
5
|
+
position: 'left' | 'right';
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, TextFieldAppendixProps, never>;
|
|
9
|
+
export declare const Appendix: import("styled-components").StyledComponent<"div", any, AppendixProps, never>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToggleProps } from '../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ ariaLabelOn, ariaLabelOff, labelLeft, labelRight, checked, disabled, isLabelVisible, onClick, ...rest }: ToggleProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const ToggleComponent: {
|
|
9
|
+
(args: ToggleProps): JSX.Element;
|
|
10
|
+
storyName: string;
|
|
11
|
+
args: {
|
|
12
|
+
checked: boolean;
|
|
13
|
+
isLabelVisible: boolean;
|
|
14
|
+
labelLeft: string;
|
|
15
|
+
labelRight: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Switcher: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ToggleProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'onClick'> {
|
|
3
|
+
/** The value that is called
|
|
4
|
+
* when one of the fields is clicked
|
|
5
|
+
*/
|
|
6
|
+
onClick?: (value: boolean) => void;
|
|
7
|
+
labelLeft?: string;
|
|
8
|
+
labelRight?: string;
|
|
9
|
+
/** The default checked input */
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Activates or disactivates the labels */
|
|
13
|
+
isLabelVisible: boolean;
|
|
14
|
+
ariaLabelOn?: string;
|
|
15
|
+
ariaLabelOff?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface TruncateLineProps {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const TruncateLine: (props: TruncateLineProps) => JSX.Element;
|
|
9
|
+
export default TruncateLine;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TruncateLineProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: TruncateLineProps) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const TruncateLineComponent: {
|
|
9
|
+
(args: TruncateLineProps): JSX.Element;
|
|
10
|
+
storyName: string;
|
|
11
|
+
args: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TruncateWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface VideoPlayerProps {
|
|
3
|
+
video: any;
|
|
4
|
+
playing?: boolean;
|
|
5
|
+
loop?: boolean;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
onEnded?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const VideoPlayer: (props: VideoPlayerProps) => JSX.Element;
|
|
12
|
+
export default VideoPlayer;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { VideoPlayerProps } from '..';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: VideoPlayerProps) => JSX.Element;
|
|
6
|
+
argTypes: {
|
|
7
|
+
onEnded: {
|
|
8
|
+
action: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const VideoPlayerComponent: {
|
|
14
|
+
(args: VideoPlayerProps): JSX.Element;
|
|
15
|
+
storyName: string;
|
|
16
|
+
args: {
|
|
17
|
+
video: string;
|
|
18
|
+
playing: boolean;
|
|
19
|
+
loop: boolean;
|
|
20
|
+
controls: boolean;
|
|
21
|
+
width: string;
|
|
22
|
+
height: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|