@taikai/rocket-kit 3.0.1 → 3.0.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.
Files changed (57) hide show
  1. package/dist/atoms/avatar-image/index.d.ts +2 -2
  2. package/dist/atoms/button/index.d.ts +1 -1
  3. package/dist/atoms/button-dropdown/index.d.ts +2 -2
  4. package/dist/atoms/button-link/index.d.ts +1 -1
  5. package/dist/atoms/checkbox/index.d.ts +1 -1
  6. package/dist/atoms/checkbox-button/index.d.ts +1 -1
  7. package/dist/atoms/error-field/index.d.ts +2 -2
  8. package/dist/atoms/file-picker/index.d.ts +1 -1
  9. package/dist/atoms/icon/index.d.ts +2 -2
  10. package/dist/atoms/label/index.d.ts +1 -1
  11. package/dist/atoms/progress-bar/index.d.ts +1 -2
  12. package/dist/atoms/select/index.d.ts +1 -1
  13. package/dist/atoms/select-interactive/components/index.d.ts +3 -4
  14. package/dist/atoms/select-interactive/index.d.ts +1 -2
  15. package/dist/atoms/slideshow/index.d.ts +1 -2
  16. package/dist/atoms/spinner/index.d.ts +2 -2
  17. package/dist/atoms/tag/index.d.ts +2 -2
  18. package/dist/atoms/tag-number/index.d.ts +2 -2
  19. package/dist/atoms/text-area/index.d.ts +1 -1
  20. package/dist/atoms/text-field/index.d.ts +1 -1
  21. package/dist/atoms/text-field-appendix/index.d.ts +1 -1
  22. package/dist/atoms/toggle/index.d.ts +1 -2
  23. package/dist/atoms/truncate-line/index.d.ts +2 -2
  24. package/dist/atoms/video-player/index.d.ts +3 -2
  25. package/dist/ions/icon-empty-data.d.ts +1 -2
  26. package/dist/ions/icon-login-only.d.ts +1 -2
  27. package/dist/molecules/actions-menu/index.d.ts +2 -3
  28. package/dist/molecules/card-value/index.d.ts +1 -1
  29. package/dist/molecules/checkbox-group/index.d.ts +1 -1
  30. package/dist/molecules/data-warning/index.d.ts +1 -1
  31. package/dist/molecules/empty-table/index.d.ts +1 -2
  32. package/dist/molecules/error/index.d.ts +1 -2
  33. package/dist/molecules/field-with-button/index.d.ts +4 -3
  34. package/dist/molecules/form-group/index.d.ts +1 -1
  35. package/dist/molecules/modal-footer/index.d.ts +1 -1
  36. package/dist/molecules/note-card/index.d.ts +1 -1
  37. package/dist/molecules/number-input-spinner/index.d.ts +1 -2
  38. package/dist/molecules/pagination-control/index.d.ts +1 -1
  39. package/dist/molecules/radio-group/index.d.ts +1 -1
  40. package/dist/molecules/table/index.d.ts +1 -1
  41. package/dist/molecules/table-dnd/index.d.ts +1 -1
  42. package/dist/molecules/wizard-steps/index.d.ts +2 -2
  43. package/dist/organisms/grid-container/grid-col.d.ts +1 -1
  44. package/dist/organisms/grid-container/grid-row.d.ts +1 -2
  45. package/dist/organisms/grid-container/index.d.ts +1 -1
  46. package/dist/organisms/horizontal-nav/index.d.ts +1 -2
  47. package/dist/organisms/loading-state/index.d.ts +1 -2
  48. package/dist/organisms/modal/index.d.ts +1 -1
  49. package/dist/organisms/modal-drawer/index.d.ts +1 -1
  50. package/dist/organisms/tabs-panel/index.d.ts +1 -1
  51. package/dist/rocket-kit.cjs.development.js +40 -9
  52. package/dist/rocket-kit.cjs.development.js.map +1 -1
  53. package/dist/rocket-kit.cjs.production.min.js +8 -8
  54. package/dist/rocket-kit.cjs.production.min.js.map +1 -1
  55. package/dist/rocket-kit.esm.js +40 -9
  56. package/dist/rocket-kit.esm.js.map +1 -1
  57. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  export interface AvatarProps {
3
3
  style?: CSSProperties;
4
4
  className?: string;
@@ -9,5 +9,5 @@ export interface AvatarProps {
9
9
  boringType?: 'marble' | 'beam' | 'pixel' | 'sunset' | 'ring' | 'bauhaus';
10
10
  square?: boolean;
11
11
  }
12
- declare const AvatarImage: (props: AvatarProps) => React.JSX.Element;
12
+ declare const AvatarImage: (props: AvatarProps) => JSX.Element;
13
13
  export default AvatarImage;
@@ -19,5 +19,5 @@ export interface ButtonProps {
19
19
  eventId?: string;
20
20
  disabled?: boolean;
21
21
  }
22
- declare const Button: (props: ButtonProps) => React.JSX.Element;
22
+ declare const Button: (props: ButtonProps) => JSX.Element;
23
23
  export default Button;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  import { ButtonColor, ButtonVariant } from '../button/types';
3
3
  import { ActionMenu } from './types';
4
4
  export interface ActionsMenuInterface<T> {
@@ -19,5 +19,5 @@ export interface ActionsMenuInterface<T> {
19
19
  startsOpen?: boolean;
20
20
  disabled?: boolean;
21
21
  }
22
- declare const ButtonDropdown: <T>(props: ActionsMenuInterface<T>) => React.JSX.Element;
22
+ declare const ButtonDropdown: <T>(props: ActionsMenuInterface<T>) => JSX.Element;
23
23
  export default ButtonDropdown;
@@ -19,5 +19,5 @@ export interface ButtonLinkProps {
19
19
  ariaLabel?: string;
20
20
  ariaHidden?: boolean;
21
21
  }
22
- declare const ButtonLink: (props: ButtonLinkProps) => React.JSX.Element;
22
+ declare const ButtonLink: (props: ButtonLinkProps) => JSX.Element;
23
23
  export default ButtonLink;
@@ -11,5 +11,5 @@ interface Props {
11
11
  dataTestId?: string;
12
12
  required?: boolean;
13
13
  }
14
- declare const Checkbox: ({ label, value, checked, onChange, error, disabled, className, style, dataTestId, required, }: Props) => React.JSX.Element;
14
+ declare const Checkbox: ({ label, value, checked, onChange, error, disabled, className, style, dataTestId, required, }: Props) => JSX.Element;
15
15
  export default Checkbox;
@@ -10,5 +10,5 @@ export interface CheckboxButtonProps {
10
10
  dataTestId?: string;
11
11
  required?: boolean;
12
12
  }
13
- declare const CheckboxButton: (props: CheckboxButtonProps) => React.JSX.Element;
13
+ declare const CheckboxButton: (props: CheckboxButtonProps) => JSX.Element;
14
14
  export default CheckboxButton;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  import { ErrorFieldColor } from './types';
3
3
  interface ErrorFieldProps {
4
4
  color?: ErrorFieldColor;
@@ -6,5 +6,5 @@ interface ErrorFieldProps {
6
6
  className?: string;
7
7
  style?: CSSProperties;
8
8
  }
9
- declare const ErrorField: (props: ErrorFieldProps) => React.JSX.Element;
9
+ declare const ErrorField: (props: ErrorFieldProps) => JSX.Element;
10
10
  export default ErrorField;
@@ -12,5 +12,5 @@ export interface FilePickerProps {
12
12
  buttonText?: string;
13
13
  disabled?: boolean;
14
14
  }
15
- declare const FilePicker: (props: FilePickerProps) => React.JSX.Element;
15
+ declare const FilePicker: (props: FilePickerProps) => JSX.Element;
16
16
  export default FilePicker;
@@ -1,9 +1,9 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  export interface IconProps {
3
3
  fill?: string;
4
4
  icon: string;
5
5
  className?: string;
6
6
  style?: CSSProperties;
7
7
  }
8
- declare const Icon: (props: IconProps) => React.JSX.Element;
8
+ declare const Icon: (props: IconProps) => JSX.Element;
9
9
  export default Icon;
@@ -5,5 +5,5 @@ export interface LabelProps {
5
5
  className?: string;
6
6
  style?: React.CSSProperties;
7
7
  }
8
- declare const Label: (props: LabelProps) => React.JSX.Element;
8
+ declare const Label: (props: LabelProps) => JSX.Element;
9
9
  export default Label;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  export interface ProgressBarProps {
3
2
  progress: number;
4
3
  value?: string;
5
4
  }
6
- declare const ProgressBar: (props: ProgressBarProps) => React.JSX.Element;
5
+ declare const ProgressBar: (props: ProgressBarProps) => JSX.Element;
7
6
  export default ProgressBar;
@@ -12,5 +12,5 @@ export interface SelectProps {
12
12
  className?: string;
13
13
  style?: CSSProperties;
14
14
  }
15
- declare const Select: (props: SelectProps) => React.JSX.Element;
15
+ declare const Select: (props: SelectProps) => JSX.Element;
16
16
  export default Select;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import { TCustomOptions, TSelectInteractiveOption } from '../types';
3
2
  export interface GroupBase {
4
3
  options: readonly TSelectInteractiveOption[];
5
4
  label?: string;
6
5
  }
7
- export declare const FormatGroupLabel: (props: GroupBase) => React.JSX.Element;
8
- export declare const CustomSelectOption: (props: TCustomOptions, commonProps: any) => React.JSX.Element;
9
- export declare const CustomSelectValue: (props: TCustomOptions) => React.JSX.Element;
6
+ export declare const FormatGroupLabel: (props: GroupBase) => JSX.Element;
7
+ export declare const CustomSelectOption: (props: TCustomOptions, commonProps: any) => JSX.Element;
8
+ export declare const CustomSelectValue: (props: TCustomOptions) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
3
- declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => React.JSX.Element;
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,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface SlideshowProps {
3
2
  showArrows?: boolean;
4
3
  slidesNumber: number;
@@ -9,5 +8,5 @@ export interface SlideshowProps {
9
8
  slideSelected?: number;
10
9
  children: any;
11
10
  }
12
- declare const Slideshow: (props: SlideshowProps) => React.JSX.Element;
11
+ declare const Slideshow: (props: SlideshowProps) => JSX.Element;
13
12
  export default Slideshow;
@@ -1,9 +1,9 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  interface SpinnerProps {
3
3
  fill?: string;
4
4
  size?: string;
5
5
  className?: string;
6
6
  style?: CSSProperties;
7
7
  }
8
- declare const Spinner: (props: SpinnerProps) => React.JSX.Element;
8
+ declare const Spinner: (props: SpinnerProps) => JSX.Element;
9
9
  export default Spinner;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  import { TagVariant, TagColor } from './types';
3
3
  export interface TagProps {
4
4
  variant?: TagVariant;
@@ -8,5 +8,5 @@ export interface TagProps {
8
8
  className?: string;
9
9
  style?: CSSProperties;
10
10
  }
11
- declare const Tag: (props: TagProps) => React.JSX.Element;
11
+ declare const Tag: (props: TagProps) => JSX.Element;
12
12
  export default Tag;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  import { TagColor } from '../tag/types';
3
3
  export interface TagNumberProps {
4
4
  className?: string;
@@ -8,5 +8,5 @@ export interface TagNumberProps {
8
8
  label: string;
9
9
  value: number | string;
10
10
  }
11
- declare const TagNumber: (props: TagNumberProps) => React.JSX.Element;
11
+ declare const TagNumber: (props: TagNumberProps) => JSX.Element;
12
12
  export default TagNumber;
@@ -16,5 +16,5 @@ export interface TextAreaProps {
16
16
  required?: boolean;
17
17
  dataTestId?: string;
18
18
  }
19
- declare const TextArea: (props: TextAreaProps) => React.JSX.Element;
19
+ declare const TextArea: (props: TextAreaProps) => JSX.Element;
20
20
  export default TextArea;
@@ -18,5 +18,5 @@ interface TextFieldProps {
18
18
  pattern?: string;
19
19
  required?: boolean;
20
20
  }
21
- declare const TextField: (props: TextFieldProps) => React.JSX.Element;
21
+ declare const TextField: (props: TextFieldProps) => JSX.Element;
22
22
  export default TextField;
@@ -18,5 +18,5 @@ export interface TextFieldAppendixProps {
18
18
  pattern?: string;
19
19
  required?: boolean;
20
20
  }
21
- declare const TextFieldAppendix: (props: TextFieldAppendixProps) => React.JSX.Element;
21
+ declare const TextFieldAppendix: (props: TextFieldAppendixProps) => JSX.Element;
22
22
  export default TextFieldAppendix;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ToggleProps } from './types';
3
- declare const Toggle: ({ ariaLabelOn, ariaLabelOff, labelLeft, labelRight, checked, disabled, isLabelVisible, onClick, ...rest }: ToggleProps) => React.JSX.Element;
2
+ declare const Toggle: ({ ariaLabelOn, ariaLabelOff, labelLeft, labelRight, checked, disabled, isLabelVisible, onClick, ...rest }: ToggleProps) => JSX.Element;
4
3
  export default Toggle;
@@ -1,9 +1,9 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  export interface TruncateLineProps {
3
3
  value: string;
4
4
  className?: string;
5
5
  style?: CSSProperties;
6
6
  dataTestId?: string;
7
7
  }
8
- declare const TruncateLine: (props: TruncateLineProps) => React.JSX.Element;
8
+ declare const TruncateLine: (props: TruncateLineProps) => JSX.Element;
9
9
  export default TruncateLine;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface VideoPlayerProps {
3
2
  video: any;
4
3
  playing?: boolean;
@@ -7,6 +6,8 @@ export interface VideoPlayerProps {
7
6
  width?: string;
8
7
  height?: string;
9
8
  onEnded?: any;
9
+ onReady?: any;
10
+ onError?: any;
10
11
  }
11
- declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
12
+ declare const VideoPlayer: (props: VideoPlayerProps) => JSX.Element;
12
13
  export default VideoPlayer;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const IconEmptyData: () => React.JSX.Element;
1
+ declare const IconEmptyData: () => JSX.Element;
3
2
  export default IconEmptyData;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const IconLoginOnly: () => React.JSX.Element;
1
+ declare const IconLoginOnly: () => JSX.Element;
3
2
  export default IconLoginOnly;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ActionMenu } from './types';
3
2
  interface ActionsMenuListInterface<T> {
4
3
  actions: ActionMenu<T>[];
@@ -14,6 +13,6 @@ interface ActionsMenuInterface<T> {
14
13
  dataTestId?: string;
15
14
  startsOpen?: boolean;
16
15
  }
17
- export declare const ActionMenuList: <T>(props: ActionsMenuListInterface<T>) => React.JSX.Element;
18
- declare const ActionsMenu: <T>(props: ActionsMenuInterface<T>) => React.JSX.Element;
16
+ export declare const ActionMenuList: <T>(props: ActionsMenuListInterface<T>) => JSX.Element;
17
+ declare const ActionsMenu: <T>(props: ActionsMenuInterface<T>) => JSX.Element;
19
18
  export default ActionsMenu;
@@ -9,5 +9,5 @@ export interface CardValueProps {
9
9
  className?: string;
10
10
  style?: React.CSSProperties;
11
11
  }
12
- declare const CardValue: (props: CardValueProps) => React.JSX.Element;
12
+ declare const CardValue: (props: CardValueProps) => JSX.Element;
13
13
  export default CardValue;
@@ -19,5 +19,5 @@ export interface CheckboxGroupProps {
19
19
  onChange?: () => {};
20
20
  disabled?: boolean;
21
21
  }
22
- declare const CheckboxGroup: (props: CheckboxGroupProps) => React.JSX.Element;
22
+ declare const CheckboxGroup: (props: CheckboxGroupProps) => JSX.Element;
23
23
  export default CheckboxGroup;
@@ -3,5 +3,5 @@ export interface DataWarningProps {
3
3
  type?: 'login' | 'data';
4
4
  children: React.ReactNode;
5
5
  }
6
- declare const DataWarning: (props: DataWarningProps) => React.JSX.Element;
6
+ declare const DataWarning: (props: DataWarningProps) => JSX.Element;
7
7
  export default DataWarning;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  export interface EmptyTableProps {
3
2
  border?: boolean;
4
3
  value: string;
5
4
  tableHead: string[];
6
5
  }
7
- declare const EmptyTable: (props: EmptyTableProps) => React.JSX.Element;
6
+ declare const EmptyTable: (props: EmptyTableProps) => JSX.Element;
8
7
  export default EmptyTable;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  export interface ErrorProps {
3
2
  variant?: 'default' | 'minimal';
4
3
  value: string;
5
4
  }
6
- declare const Error: (props: ErrorProps) => React.JSX.Element;
5
+ declare const Error: (props: ErrorProps) => JSX.Element;
7
6
  export default Error;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { TextFieldType } from '../../atoms/text-field/types';
3
2
  export interface FieldWidthButtonProps {
4
3
  label?: string;
@@ -6,11 +5,13 @@ export interface FieldWidthButtonProps {
6
5
  name?: string;
7
6
  placeholder?: string;
8
7
  value?: string | number;
8
+ disabled?: boolean;
9
9
  dataTestId?: string;
10
10
  buttonIcon: string;
11
11
  buttonValue?: string;
12
- buttonAction?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12
+ onChange?: (value: string | number | null) => void;
13
+ buttonAction?: (value: string | number | null) => void | Promise<void>;
13
14
  buttonDisabled?: boolean;
14
15
  }
15
- declare const FieldWidthButton: (props: FieldWidthButtonProps) => React.JSX.Element;
16
+ declare const FieldWidthButton: (props: FieldWidthButtonProps) => JSX.Element;
16
17
  export default FieldWidthButton;
@@ -5,5 +5,5 @@ export interface FormGroupProps {
5
5
  error?: boolean;
6
6
  children: React.ReactNode;
7
7
  }
8
- declare const FormGroup: (props: FormGroupProps) => React.JSX.Element;
8
+ declare const FormGroup: (props: FormGroupProps) => JSX.Element;
9
9
  export default FormGroup;
@@ -7,5 +7,5 @@ export interface ModalFooterProps {
7
7
  className?: string;
8
8
  style?: React.CSSProperties;
9
9
  }
10
- declare const ModalFooter: (props: ModalFooterProps) => React.JSX.Element;
10
+ declare const ModalFooter: (props: ModalFooterProps) => JSX.Element;
11
11
  export default ModalFooter;
@@ -8,5 +8,5 @@ interface NoteCardProps {
8
8
  className?: string;
9
9
  style?: CSSProperties;
10
10
  }
11
- declare const NoteCard: (props: NoteCardProps) => React.JSX.Element;
11
+ declare const NoteCard: (props: NoteCardProps) => JSX.Element;
12
12
  export default NoteCard;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  export interface NumberInputSpinnerProps {
3
2
  decreaseAriaLabel?: string;
4
3
  increaseAriaLabel?: string;
@@ -9,5 +8,5 @@ export interface NumberInputSpinnerProps {
9
8
  onChange?: (value: number) => void;
10
9
  disabled?: boolean;
11
10
  }
12
- declare const NumberInputSpinner: (props: NumberInputSpinnerProps) => React.JSX.Element;
11
+ declare const NumberInputSpinner: (props: NumberInputSpinnerProps) => JSX.Element;
13
12
  export default NumberInputSpinner;
@@ -7,5 +7,5 @@ export interface PageControlProps {
7
7
  onPageChange?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
8
8
  ariaLabelBuilder?: any;
9
9
  }
10
- declare const PaginationControl: (props: PageControlProps) => React.JSX.Element;
10
+ declare const PaginationControl: (props: PageControlProps) => JSX.Element;
11
11
  export default PaginationControl;
@@ -16,5 +16,5 @@ export interface RadioGroupProps {
16
16
  disabled?: boolean;
17
17
  dataTestId?: string;
18
18
  }
19
- declare const RadioGroup: (props: RadioGroupProps) => React.JSX.Element;
19
+ declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
20
20
  export default RadioGroup;
@@ -31,5 +31,5 @@ export interface TableProps<CellDataType> {
31
31
  export interface CellBaseType {
32
32
  id: string;
33
33
  }
34
- declare const Table: <CellData extends CellBaseType>(props: TableProps<CellData>) => React.JSX.Element;
34
+ declare const Table: <CellData extends CellBaseType>(props: TableProps<CellData>) => JSX.Element;
35
35
  export default Table;
@@ -29,5 +29,5 @@ export interface TableProps<CellDataType> {
29
29
  export interface CellBaseType {
30
30
  id: string;
31
31
  }
32
- declare const TableDnD: <CellData extends CellBaseType>(props: TableProps<CellData>) => React.JSX.Element;
32
+ declare const TableDnD: <CellData extends CellBaseType>(props: TableProps<CellData>) => JSX.Element;
33
33
  export default TableDnD;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import { CSSProperties } from 'react';
2
2
  export declare type Step = {
3
3
  active: boolean;
4
4
  value: string;
@@ -10,5 +10,5 @@ export interface WizardStepsProps {
10
10
  steps: Step[];
11
11
  dataTestId?: string;
12
12
  }
13
- declare const WizardSteps: (props: WizardStepsProps) => React.JSX.Element;
13
+ declare const WizardSteps: (props: WizardStepsProps) => JSX.Element;
14
14
  export default WizardSteps;
@@ -4,5 +4,5 @@ export interface GridColProps {
4
4
  size?: number;
5
5
  children?: React.ReactNode;
6
6
  }
7
- declare const GridCol: (props: GridColProps) => React.JSX.Element;
7
+ declare const GridCol: (props: GridColProps) => JSX.Element;
8
8
  export default GridCol;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { GridContainerProps } from '.';
3
- declare const GridRow: (props: GridContainerProps) => React.JSX.Element;
2
+ declare const GridRow: (props: GridContainerProps) => JSX.Element;
4
3
  export default GridRow;
@@ -3,5 +3,5 @@ export interface GridContainerProps {
3
3
  className?: string;
4
4
  children?: React.ReactNode;
5
5
  }
6
- declare const TabsPanel: (props: GridContainerProps) => React.JSX.Element;
6
+ declare const TabsPanel: (props: GridContainerProps) => JSX.Element;
7
7
  export default TabsPanel;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  export interface HorizontalNavInterface {
3
2
  className?: string;
4
3
  customColor?: string;
5
4
  items: any;
6
5
  startsOpen?: boolean;
7
6
  }
8
- declare const HorizontalNav: (props: HorizontalNavInterface) => React.JSX.Element;
7
+ declare const HorizontalNav: (props: HorizontalNavInterface) => JSX.Element;
9
8
  export default HorizontalNav;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  export interface LoadingStateProps {
3
2
  type: 'text' | 'card' | 'value';
4
3
  lines?: number;
5
4
  cardsNumber?: number;
6
5
  center?: boolean;
7
6
  }
8
- declare const LoadingState: (props: LoadingStateProps) => React.JSX.Element;
7
+ declare const LoadingState: (props: LoadingStateProps) => JSX.Element;
9
8
  export default LoadingState;
@@ -8,5 +8,5 @@ export interface ModalProps {
8
8
  footer: boolean;
9
9
  zIndex?: number;
10
10
  }
11
- declare const Modal: (props: ModalProps) => React.JSX.Element;
11
+ declare const Modal: (props: ModalProps) => JSX.Element;
12
12
  export default Modal;
@@ -9,5 +9,5 @@ export interface ModalDrawerProps {
9
9
  footerHidden?: boolean;
10
10
  zIndex?: number;
11
11
  }
12
- declare const ModalDrawer: (props: ModalDrawerProps) => React.JSX.Element;
12
+ declare const ModalDrawer: (props: ModalDrawerProps) => JSX.Element;
13
13
  export default ModalDrawer;
@@ -10,5 +10,5 @@ export interface TabsPanelProps {
10
10
  onChange?: () => {};
11
11
  tabs: Tab[];
12
12
  }
13
- declare const TabsPanel: (props: TabsPanelProps) => React.JSX.Element;
13
+ declare const TabsPanel: (props: TabsPanelProps) => JSX.Element;
14
14
  export default TabsPanel;
@@ -927,7 +927,7 @@ const Icon = props => {
927
927
  const LabelStyle = /*#__PURE__*/_styled__default.label.withConfig({
928
928
  displayName: "styles__LabelStyle",
929
929
  componentId: "sc-pbv9we-0"
930
- })(["display:flex;align-items:center;font-size:", ";font-weight:", ";color:", ";svg{margin-left:", ";width:auto;height:", ";}"], typography.fontSizeXs, typography.semiBold, colors.grey200, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('16px'));
930
+ })(["display:flex;align-items:center;font-size:", ";font-weight:", ";color:", ";svg{margin-left:", ";width:auto;height:", ";}"], typography.fontSizeXs, typography.semiBold, colors.grey500, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('16px'));
931
931
 
932
932
  const Label = props => {
933
933
  const {
@@ -1912,7 +1912,9 @@ const VideoPlayer = props => {
1912
1912
  controls = false,
1913
1913
  width = '100%',
1914
1914
  height = '100%',
1915
- onEnded
1915
+ onEnded,
1916
+ onReady,
1917
+ onError
1916
1918
  } = props;
1917
1919
  return /*#__PURE__*/React__default.createElement(Wrapper$4, null, /*#__PURE__*/React__default.createElement(ReactPlayer, {
1918
1920
  style: {
@@ -1926,7 +1928,9 @@ const VideoPlayer = props => {
1926
1928
  controls: controls,
1927
1929
  width: width,
1928
1930
  height: height,
1929
- onEnded: onEnded
1931
+ onEnded: onEnded,
1932
+ onReady: onReady,
1933
+ onError: onError
1930
1934
  }));
1931
1935
  };
1932
1936
 
@@ -2832,7 +2836,7 @@ const TableDnD = props => {
2832
2836
  const Wrapper$8 = /*#__PURE__*/_styled__default.div.withConfig({
2833
2837
  displayName: "styles__Wrapper",
2834
2838
  componentId: "sc-mbja2a-0"
2835
- })(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? field.errorBorderColor : colors.grey200, props => props.error ? field.errorBorderColor : field.color, /*#__PURE__*/polished.rem('15px'));
2839
+ })(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? field.errorBorderColor : colors.grey500, props => props.error ? field.errorBorderColor : field.color, /*#__PURE__*/polished.rem('15px'));
2836
2840
 
2837
2841
  const FormGroup = props => {
2838
2842
  const {
@@ -5353,27 +5357,54 @@ const FieldWidthButton = props => {
5353
5357
  name,
5354
5358
  placeholder,
5355
5359
  value,
5360
+ onChange,
5356
5361
  dataTestId,
5357
5362
  buttonIcon,
5358
5363
  buttonValue,
5359
5364
  buttonAction,
5360
- buttonDisabled
5365
+ buttonDisabled,
5366
+ disabled = true
5361
5367
  } = props;
5368
+ const [loading, setLoading] = React.useState(false);
5369
+ const [fieldValue, setFieldValue] = React.useState(value != null ? value : null);
5370
+ const handleOnClickAction = async () => {
5371
+ if ((buttonAction == null ? void 0 : buttonAction.constructor.name) !== 'AsyncFunction') {
5372
+ buttonAction == null ? void 0 : buttonAction(fieldValue);
5373
+ return;
5374
+ }
5375
+ setLoading(true);
5376
+ await (buttonAction == null ? void 0 : buttonAction(fieldValue));
5377
+ setLoading(false);
5378
+ };
5362
5379
  return /*#__PURE__*/React__default.createElement(Wrapper$e, null, label && /*#__PURE__*/React__default.createElement(Label, {
5363
5380
  value: label
5364
5381
  }), /*#__PURE__*/React__default.createElement(Field, null, /*#__PURE__*/React__default.createElement(TextField, {
5365
5382
  type: type,
5366
5383
  name: name,
5367
- value: value,
5384
+ disabled: disabled,
5368
5385
  placeholder: placeholder,
5369
5386
  dataTestId: dataTestId,
5370
- disabled: true
5387
+ value: fieldValue != null ? fieldValue : undefined,
5388
+ onChange: e => {
5389
+ e.preventDefault();
5390
+ if (e.target.value === '' || e.target.value === ' ') {
5391
+ setFieldValue(null);
5392
+ onChange == null ? void 0 : onChange(e.target.value);
5393
+ } else {
5394
+ setFieldValue(e.target.value);
5395
+ onChange == null ? void 0 : onChange(e.target.value);
5396
+ }
5397
+ }
5371
5398
  }), /*#__PURE__*/React__default.createElement(Button, {
5372
5399
  color: "purple100",
5400
+ loading: loading,
5373
5401
  icon: buttonIcon,
5374
5402
  value: buttonValue,
5375
- action: buttonAction,
5376
- disabled: buttonDisabled
5403
+ disabled: buttonDisabled,
5404
+ action: e => {
5405
+ e.preventDefault();
5406
+ handleOnClickAction();
5407
+ }
5377
5408
  })));
5378
5409
  };
5379
5410