@proprioo/salatim 29.10.0 → 29.12.0

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 (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/date/src/datePicker/DatePicker.d.ts +2 -2
  3. package/lib/date/src/datePickerWrapper/DatePickerWrapper.d.ts +2 -2
  4. package/lib/date/src/singleMonth/SingleMonth.d.ts +2 -2
  5. package/lib/energy/src/Energy.d.ts +2 -2
  6. package/lib/energy/src/interfaces.d.ts +4 -4
  7. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.d.ts +4 -4
  8. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +1 -1
  9. package/lib/forms/src/userForm/UserForm.d.ts +4 -4
  10. package/lib/hooks/useEmailSuggestion/useEmailSuggestion.d.ts +2 -2
  11. package/lib/index.js +229 -229
  12. package/lib/index.js.map +1 -1
  13. package/lib/phone/src/metadata.custom.json +119 -18
  14. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +2 -2
  15. package/lib/phone/src/phoneInput/constants.js +4 -0
  16. package/lib/phone/src/phoneInput/constants.js.map +1 -1
  17. package/lib/ui/src/accordion/Accordion.interfaces.d.ts +6 -6
  18. package/lib/ui/src/accordion/Accordion.styles.d.ts +4 -4
  19. package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +2 -2
  20. package/lib/ui/src/accordion/AccordionContextProvider.d.ts +4 -4
  21. package/lib/ui/src/accordion/AccordionStore.d.ts +2 -2
  22. package/lib/ui/src/accordion/ItemContextConsumer.d.ts +2 -2
  23. package/lib/ui/src/accordion/ItemContextProvider.d.ts +4 -4
  24. package/lib/ui/src/agentBanner/AgentBanner.d.ts +2 -2
  25. package/lib/ui/src/agentCard/AgentCard.d.ts +2 -2
  26. package/lib/ui/src/autocomplete/Autocomplete.d.ts +2 -2
  27. package/lib/ui/src/block/Block.d.ts +2 -2
  28. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +2 -2
  29. package/lib/ui/src/blockIcon/BlockIcon.d.ts +2 -2
  30. package/lib/ui/src/burger/Burger.d.ts +2 -2
  31. package/lib/ui/src/burger/Burger.stories.js.map +1 -1
  32. package/lib/ui/src/button/Button.d.ts +2 -2
  33. package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +2 -2
  34. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +2 -2
  35. package/lib/ui/src/checkbox/Checkbox.d.ts +2 -2
  36. package/lib/ui/src/dateInput/DateInput.d.ts +2 -2
  37. package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +4 -4
  38. package/lib/ui/src/fieldset/Fieldset.d.ts +2 -2
  39. package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +2 -2
  40. package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +2 -2
  41. package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +4 -4
  42. package/lib/ui/src/icons/Certificate.d.ts +1 -1
  43. package/lib/ui/src/icons/ChevronRight.d.ts +1 -1
  44. package/lib/ui/src/icons/Close.d.ts +1 -1
  45. package/lib/ui/src/icons/EmoticonCool.d.ts +1 -1
  46. package/lib/ui/src/icons/Help.d.ts +1 -1
  47. package/lib/ui/src/icons/Icon.props.d.ts +2 -2
  48. package/lib/ui/src/icons/Less.d.ts +1 -1
  49. package/lib/ui/src/icons/Plus.d.ts +1 -1
  50. package/lib/ui/src/icons/index.d.ts +6 -6
  51. package/lib/ui/src/input/Input.d.ts +4 -4
  52. package/lib/ui/src/inputBase/InputBase.d.ts +4 -4
  53. package/lib/ui/src/inputBase/InputBase.styles.d.ts +2 -2
  54. package/lib/ui/src/loader/Loader.d.ts +2 -2
  55. package/lib/ui/src/mockForm/MockForm.d.ts +2 -2
  56. package/lib/ui/src/modal/Modal.d.ts +8 -8
  57. package/lib/ui/src/modal/Modal.reducer.d.ts +2 -2
  58. package/lib/ui/src/nativeSelect/NativeSelect.d.ts +2 -2
  59. package/lib/ui/src/numberInput/NumberInput.d.ts +2 -2
  60. package/lib/ui/src/option/Option.d.ts +4 -4
  61. package/lib/ui/src/option/Option.styles.d.ts +2 -2
  62. package/lib/ui/src/radio/Radio.d.ts +2 -2
  63. package/lib/ui/src/select/Select.d.ts +2 -2
  64. package/lib/ui/src/select/Select.styles.d.ts +2 -2
  65. package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +2 -2
  66. package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +4 -4
  67. package/lib/ui/src/subtitle/Subtitle.d.ts +2 -2
  68. package/lib/ui/src/tag/Tag.styles.d.ts +2 -2
  69. package/lib/ui/src/tag/interfaces.d.ts +2 -2
  70. package/lib/ui/src/textToggle/TextToggle.d.ts +2 -2
  71. package/lib/ui/src/textarea/Textarea.d.ts +4 -4
  72. package/lib/ui/src/title/Title.d.ts +2 -2
  73. package/lib/ui/src/toggle/Toggle.d.ts +2 -2
  74. package/lib/ui/src/tooltip/Tooltip.d.ts +2 -2
  75. package/lib/utils/src/actions.d.ts +6 -6
  76. package/lib/utils/src/props.d.ts +2 -2
  77. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
  /// <reference types="google.maps" />
3
3
  import { FC } from 'react';
4
4
  import { GenericInputProps } from '../../../utils';
5
- export interface GmapsGeocodeProps extends GenericInputProps {
5
+ export type GmapsGeocodeProps = GenericInputProps & {
6
6
  value: string;
7
7
  country?: string | string[];
8
8
  id?: string;
@@ -11,6 +11,6 @@ export interface GmapsGeocodeProps extends GenericInputProps {
11
11
  onChange(address: string): void;
12
12
  onSelect(place: google.maps.GeocoderResult): void;
13
13
  onError?(error: string): void;
14
- }
14
+ };
15
15
  declare const GmapsGeocode: FC<GmapsGeocodeProps>;
16
16
  export default GmapsGeocode;
@@ -1,6 +1,6 @@
1
1
  import { FC, MouseEventHandler, TouchEventHandler } from 'react';
2
2
  import { Suggestion } from 'react-places-autocomplete';
3
- export interface SuggestionItem {
3
+ export type SuggestionItem = {
4
4
  key: number;
5
5
  id: string | undefined;
6
6
  role: 'option';
@@ -11,10 +11,10 @@ export interface SuggestionItem {
11
11
  onTouchStart: TouchEventHandler;
12
12
  onTouchEnd: TouchEventHandler;
13
13
  onClick: MouseEventHandler;
14
- }
15
- export interface GmapsSuggestionsProps {
14
+ };
15
+ export type GmapsSuggestionsProps = {
16
16
  suggestions: Suggestion[];
17
17
  getSuggestionItemProps<SuggestionProps extends {}>(suggestion: Suggestion, options?: SuggestionProps): SuggestionItem & SuggestionProps;
18
- }
18
+ };
19
19
  declare const GmapsSuggestions: FC<GmapsSuggestionsProps>;
20
20
  export default GmapsSuggestions;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const Certificate: FC<IconProps>;
4
4
  export default Certificate;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const ChevronRight: FC<IconProps>;
4
4
  export default ChevronRight;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const Close: FC<IconProps>;
4
4
  export default Close;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const EmoticonCool: FC<IconProps>;
4
4
  export default EmoticonCool;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const Help: FC<IconProps>;
4
4
  export default Help;
@@ -1,3 +1,3 @@
1
- export default interface IconProps {
1
+ export type IconProps = {
2
2
  fill?: string;
3
- }
3
+ };
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const Less: FC<IconProps>;
4
4
  export default Less;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import IconProps from './Icon.props';
2
+ import { IconProps } from './Icon.props';
3
3
  declare const Plus: FC<IconProps>;
4
4
  export default Plus;
@@ -1,14 +1,14 @@
1
1
  declare const _default: {
2
2
  Arrow: () => JSX.Element;
3
3
  CheckGreen: () => JSX.Element;
4
- ChevronRight: import("react").FC<import("./Icon.props").default>;
4
+ ChevronRight: import("react").FC<import("./Icon.props").IconProps>;
5
5
  DropDown: () => JSX.Element;
6
- EmoticonCool: import("react").FC<import("./Icon.props").default>;
7
- Certificate: import("react").FC<import("./Icon.props").default>;
6
+ EmoticonCool: import("react").FC<import("./Icon.props").IconProps>;
7
+ Certificate: import("react").FC<import("./Icon.props").IconProps>;
8
8
  TrustPilot: () => JSX.Element;
9
9
  CloseBox: () => JSX.Element;
10
- Plus: import("react").FC<import("./Icon.props").default>;
11
- Less: import("react").FC<import("./Icon.props").default>;
12
- Close: import("react").FC<import("./Icon.props").default>;
10
+ Plus: import("react").FC<import("./Icon.props").IconProps>;
11
+ Less: import("react").FC<import("./Icon.props").IconProps>;
12
+ Close: import("react").FC<import("./Icon.props").IconProps>;
13
13
  };
14
14
  export default _default;
@@ -9,13 +9,13 @@ export declare enum InputType {
9
9
  TEL = "tel",
10
10
  TEXT = "text"
11
11
  }
12
- export interface CustomInputEvent {
12
+ export type CustomInputEvent = {
13
13
  target: {
14
14
  value: string;
15
15
  selectionStart: nullOrNumber;
16
16
  };
17
- }
18
- export interface InputProps {
17
+ };
18
+ export type InputProps = {
19
19
  disabled: boolean;
20
20
  focused: boolean;
21
21
  id: string;
@@ -35,6 +35,6 @@ export interface InputProps {
35
35
  handleBlur(): void;
36
36
  handleFocus(): void;
37
37
  handleOnChange(event: ChangeEvent<HTMLInputElement> | CustomInputEvent): void;
38
- }
38
+ };
39
39
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
40
40
  export default Input;
@@ -5,7 +5,7 @@ import { InputProps, InputType } from '../input/Input';
5
5
  import { OptionProps } from '../option/Option';
6
6
  import { InputColors } from './InputBaseEnum';
7
7
  export declare const ZINDEX_OPEN = 10;
8
- export interface GMapProps {
8
+ export type GMapProps = {
9
9
  'aria-activedescendant': string | undefined;
10
10
  'aria-autocomplete': 'list';
11
11
  'aria-expanded': boolean;
@@ -20,8 +20,8 @@ export interface GMapProps {
20
20
  };
21
21
  }): void;
22
22
  onKeyDown: KeyboardEventHandler;
23
- }
24
- export interface InputBaseProps extends GenericInputProps {
23
+ };
24
+ export type InputBaseProps = GenericInputProps & {
25
25
  displayField?: ReactElement;
26
26
  field?: ReactElement;
27
27
  gmap?: GMapProps;
@@ -42,6 +42,6 @@ export interface InputBaseProps extends GenericInputProps {
42
42
  onBlur?(): void;
43
43
  onChange?(value: string): void;
44
44
  onFocus?(): void;
45
- }
45
+ };
46
46
  declare const InputBase: FC<InputBaseProps>;
47
47
  export default InputBase;
@@ -1,5 +1,5 @@
1
1
  import { InputColors } from './InputBaseEnum';
2
- interface LayoutProps {
2
+ type LayoutProps = {
3
3
  disabled: boolean;
4
4
  error: boolean;
5
5
  focused: boolean;
@@ -7,7 +7,7 @@ interface LayoutProps {
7
7
  phoneWithFlags: boolean;
8
8
  zIndex?: number;
9
9
  outline?: InputColors;
10
- }
10
+ };
11
11
  export declare const FieldSetLayout: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
12
12
  export declare const LegendLayout: import("styled-components").StyledComponent<"legend", any, {
13
13
  isVisible: boolean;
@@ -1,9 +1,9 @@
1
1
  import { FC } from 'react';
2
- export interface LoaderProps {
2
+ export type LoaderProps = {
3
3
  isWrapped?: boolean;
4
4
  text?: string;
5
5
  backgroundColor?: string;
6
6
  loaderHeight?: string;
7
- }
7
+ };
8
8
  declare const Loader: FC<LoaderProps>;
9
9
  export default Loader;
@@ -1,7 +1,7 @@
1
1
  import { FC, FormEvent, ReactNode } from 'react';
2
2
  export declare const mockSubmit: (event: FormEvent<HTMLFormElement>) => void;
3
- export interface MockFormProps {
3
+ export type MockFormProps = {
4
4
  children: ReactNode;
5
- }
5
+ };
6
6
  declare const MockForm: FC<MockFormProps>;
7
7
  export default MockForm;
@@ -1,11 +1,11 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { FadeEnum } from './Modal.reducer';
3
- interface ActionsProps {
3
+ type ActionsProps = {
4
4
  onAbort?(): void;
5
5
  onClose?(): void;
6
6
  onOpen?(): void;
7
- }
8
- interface BaseModalProps {
7
+ };
8
+ type BaseModalProps = {
9
9
  icon?: ReactElement;
10
10
  isAlternative?: boolean;
11
11
  isClosable?: boolean;
@@ -13,16 +13,16 @@ interface BaseModalProps {
13
13
  noPadding?: boolean;
14
14
  text?: string;
15
15
  title?: string;
16
- }
17
- export interface ModalProps extends BaseModalProps {
16
+ };
17
+ export type ModalProps = BaseModalProps & {
18
18
  fade: FadeEnum;
19
19
  isLoading: boolean;
20
20
  abortModal(): void;
21
21
  onAnimationEnd(): void;
22
- }
23
- export interface RenderModalProps extends BaseModalProps {
22
+ };
23
+ export type RenderModalProps = BaseModalProps & {
24
24
  children: ReactNode;
25
- }
25
+ };
26
26
  declare const useModal: ({ onAbort, onOpen, onClose }?: ActionsProps) => {
27
27
  closeModal: () => void;
28
28
  createModal: ({ children, icon, isAlternative, isClosable, isFullScreen, noPadding, text, title }: RenderModalProps) => JSX.Element;
@@ -3,12 +3,12 @@ export declare enum FadeEnum {
3
3
  IN = "in",
4
4
  OUT = "out"
5
5
  }
6
- interface ReducerModal {
6
+ type ReducerModal = {
7
7
  fade: FadeEnum;
8
8
  isAborting: boolean;
9
9
  isLoading: boolean;
10
10
  isOpen: boolean;
11
- }
11
+ };
12
12
  declare enum ModalActionsEnum {
13
13
  ABORT = "abort",
14
14
  ANIMATION_END = "animationEnd",
@@ -1,11 +1,11 @@
1
1
  import { ChangeEvent, FC } from 'react';
2
2
  import { OptionProps } from '@proprioo/hokkaido';
3
- export interface NativeSelectProps {
3
+ export type NativeSelectProps = {
4
4
  displayOption: OptionProps;
5
5
  options: OptionProps[];
6
6
  label: string;
7
7
  onChange(event: ChangeEvent<HTMLSelectElement>): void;
8
8
  onClickOutside(): void;
9
- }
9
+ };
10
10
  declare const NativeSelect: FC<NativeSelectProps>;
11
11
  export default NativeSelect;
@@ -2,10 +2,10 @@ import { FC } from 'react';
2
2
  import { nullOrNumber } from '@proprioo/hokkaido';
3
3
  import { InputProps } from '../..';
4
4
  type BaseInputProps = Omit<InputProps, 'gmap' | 'onChange' | 'type' | 'value'>;
5
- export interface NumberInputProps extends BaseInputProps {
5
+ export type NumberInputProps = BaseInputProps & {
6
6
  onChange(value: nullOrNumber): void;
7
7
  value?: nullOrNumber;
8
8
  isFloat?: boolean;
9
- }
9
+ };
10
10
  declare const NumberInput: FC<NumberInputProps>;
11
11
  export default NumberInput;
@@ -1,13 +1,13 @@
1
1
  import React, { FC } from 'react';
2
- export interface OptionProps {
2
+ export type OptionProps = {
3
3
  value: string;
4
4
  label: string;
5
- }
6
- export interface OptionFCProps {
5
+ };
6
+ export type OptionFCProps = {
7
7
  option: OptionProps;
8
8
  value: string;
9
9
  onSelect?(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
10
- }
10
+ };
11
11
  export declare const isOptionSelected: (optionValue: string, value: string) => boolean;
12
12
  declare const Option: FC<OptionFCProps>;
13
13
  export default Option;
@@ -1,6 +1,6 @@
1
- interface SelectionOptionProps {
1
+ type SelectionOptionProps = {
2
2
  isSelected: boolean;
3
- }
3
+ };
4
4
  export declare const Label: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
5
5
  export declare const Layout: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
6
6
  export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, FC } from 'react';
2
- export interface RadioProps {
2
+ export type RadioProps = {
3
3
  label: string;
4
4
  name: string;
5
5
  id: string;
@@ -7,6 +7,6 @@ export interface RadioProps {
7
7
  value: string;
8
8
  dataTest?: string;
9
9
  onChange(value: ChangeEvent<HTMLInputElement>): void;
10
- }
10
+ };
11
11
  declare const Radio: FC<RadioProps>;
12
12
  export default Radio;
@@ -1,7 +1,7 @@
1
1
  import React, { PureComponent, RefObject } from 'react';
2
2
  import { OptionProps } from '../option/Option';
3
3
  import { OptionsAlignement } from './Select.styles';
4
- export interface SelectProps {
4
+ export type SelectProps = {
5
5
  selectRef: RefObject<HTMLDivElement>;
6
6
  selectedOptionRef: RefObject<HTMLDivElement>;
7
7
  options: OptionProps[];
@@ -11,7 +11,7 @@ export interface SelectProps {
11
11
  onSelect(value: OptionProps): void;
12
12
  optionsMinWidth?: number;
13
13
  optionsAlign?: OptionsAlignement;
14
- }
14
+ };
15
15
  export declare class Select extends PureComponent<SelectProps> {
16
16
  constructor(props: SelectProps);
17
17
  selectItem(value: OptionProps): void;
@@ -2,10 +2,10 @@ export declare enum OptionsAlignement {
2
2
  LEFT = "left",
3
3
  RIGHT = "right"
4
4
  }
5
- interface LayoutProps {
5
+ type LayoutProps = {
6
6
  optionsMinWidth?: number;
7
7
  optionsAlign?: OptionsAlignement;
8
- }
8
+ };
9
9
  export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
10
10
  export declare const ItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
11
11
  export declare const ItemLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,7 +3,7 @@ import { GenericInputProps } from '../../../utils';
3
3
  import { InputColors } from '../inputBase/InputBaseEnum';
4
4
  import { OptionProps } from '../option/Option';
5
5
  import { OptionsAlignement } from '../select/Select.styles';
6
- export interface SelectWrapperProps extends GenericInputProps {
6
+ export type SelectWrapperProps = GenericInputProps & {
7
7
  option: OptionProps | null;
8
8
  options: OptionProps[];
9
9
  isAutocomplete?: boolean;
@@ -16,7 +16,7 @@ export interface SelectWrapperProps extends GenericInputProps {
16
16
  onBlur?(): void;
17
17
  onFocus?(): void;
18
18
  onChange?(value: string): void;
19
- }
19
+ };
20
20
  export declare const setIconColor: (isOpen: boolean, label: string) => string;
21
21
  export declare const getOptionLabel: (options: OptionProps[], selectedValue: string) => string;
22
22
  export declare const SelectWrapper: FC<SelectWrapperProps>;
@@ -1,12 +1,12 @@
1
- interface SelectInputProps {
1
+ type SelectInputProps = {
2
2
  disabled: boolean;
3
3
  isOpen: boolean;
4
4
  focused?: boolean;
5
5
  error?: boolean;
6
- }
7
- interface IconProps {
6
+ };
7
+ type IconProps = {
8
8
  isOpen: boolean;
9
- }
9
+ };
10
10
  export declare const IconContainer: import("styled-components").StyledComponent<"div", any, IconProps, never>;
11
11
  export declare const SelectWrapperLayout: import("styled-components").StyledComponent<"div", any, Pick<SelectInputProps, "isOpen" | "error">, never>;
12
12
  export declare const SelectInputLayout: import("styled-components").StyledComponent<"input", any, SelectInputProps, never>;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- export interface SubtitleProps {
2
+ export type SubtitleProps = {
3
3
  text: string;
4
4
  color?: string;
5
5
  isAlternative?: boolean;
6
- }
6
+ };
7
7
  declare const Subtitle: FC<SubtitleProps>;
8
8
  export default Subtitle;
@@ -1,8 +1,8 @@
1
1
  import { TagProps } from './interfaces';
2
- interface TagBaseProps {
2
+ type TagBaseProps = {
3
3
  close?: boolean;
4
4
  icon?: boolean;
5
- }
5
+ };
6
6
  export declare const TagBase: import("styled-components").FlattenSimpleInterpolation;
7
7
  export declare const TAG_BUSINESS_BASE: import("styled-components").FlattenSimpleInterpolation;
8
8
  export declare const BasicTag: import("styled-components").StyledComponent<"span", any, Pick<TagProps, "appearance" | "color" | "isOutlined"> & TagBaseProps, never>;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- export interface TagProps {
2
+ export type TagProps = {
3
3
  labels: string[];
4
4
  appearance?: TagAppearance;
5
5
  color?: TagColorsTypes;
@@ -8,7 +8,7 @@ export interface TagProps {
8
8
  isOutlined?: boolean;
9
9
  numberOfTags?: number;
10
10
  onClose?(): void;
11
- }
11
+ };
12
12
  export declare enum TagAppearance {
13
13
  BUSINESS = "business",
14
14
  CUSTOMER = "customer"
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- export interface TextToggleProps {
2
+ export type TextToggleProps = {
3
3
  text: string;
4
4
  dataTest?: string;
5
5
  isComment?: boolean;
@@ -7,6 +7,6 @@ export interface TextToggleProps {
7
7
  showMoreLabel?: string;
8
8
  showLessLabel?: string;
9
9
  title?: string;
10
- }
10
+ };
11
11
  declare const TextToggle: FC<TextToggleProps>;
12
12
  export default TextToggle;
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, Component } from 'react';
2
2
  import { nullOrNumber } from '@proprioo/hokkaido';
3
- export interface TextareaProps {
3
+ export type TextareaProps = {
4
4
  value: string;
5
5
  /** Auto-resize the textarea while typing. */
6
6
  autoResize?: boolean;
@@ -19,11 +19,11 @@ export interface TextareaProps {
19
19
  lang?: string;
20
20
  hasCounter?: boolean;
21
21
  onChange?(value: string): void;
22
- }
23
- export interface TextareaStateProps {
22
+ };
23
+ export type TextareaStateProps = {
24
24
  value: string;
25
25
  focused: boolean;
26
- }
26
+ };
27
27
  declare class Textarea extends Component<TextareaProps, TextareaStateProps> {
28
28
  reflowRaf: nullOrNumber;
29
29
  textareaRef: HTMLTextAreaElement | null;
@@ -1,8 +1,8 @@
1
- export interface TitleProps {
1
+ export type TitleProps = {
2
2
  title: string;
3
3
  color?: string;
4
4
  isAlternative?: boolean;
5
- }
5
+ };
6
6
  export type TitleCSSProps = Pick<TitleProps, 'color' | 'isAlternative'>;
7
7
  export declare const TitleDefaultProps: {
8
8
  color: string;
@@ -1,6 +1,6 @@
1
1
  import 'react-toggle/style.css';
2
2
  import { FC } from 'react';
3
- export interface ToggleProps {
3
+ export type ToggleProps = {
4
4
  label: string;
5
5
  name: string;
6
6
  checked?: boolean;
@@ -8,6 +8,6 @@ export interface ToggleProps {
8
8
  disabled?: boolean;
9
9
  dataTest?: string;
10
10
  onChange(checked: boolean): void;
11
- }
11
+ };
12
12
  declare const Toggle: FC<ToggleProps>;
13
13
  export default Toggle;
@@ -2,7 +2,7 @@ import 'react-popper-tooltip/dist/styles.css';
2
2
  import { FC, PropsWithChildren, ReactElement } from 'react';
3
3
  import { TriggerType } from 'react-popper-tooltip';
4
4
  import { Placement } from '@popperjs/core';
5
- export interface TooltipProps {
5
+ export type TooltipProps = {
6
6
  tooltip: string | ReactElement;
7
7
  delayHide?: number;
8
8
  delayShow?: number;
@@ -14,6 +14,6 @@ export interface TooltipProps {
14
14
  placement?: Placement;
15
15
  trigger?: TriggerType;
16
16
  maxWidth?: string;
17
- }
17
+ };
18
18
  declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
19
19
  export default Tooltip;
@@ -5,23 +5,23 @@ export declare function createAction<TypeAction>(actionType: TypeAction): () =>
5
5
  /**
6
6
  * Create an action with a payload
7
7
  */
8
- export interface ActionsWithPayload<TypeAction, TypePayload> {
8
+ export type ActionsWithPayload<TypeAction, TypePayload> = {
9
9
  type: TypeAction;
10
10
  payload: TypePayload;
11
- }
11
+ };
12
12
  /**
13
13
  * Create an action that does not have a payload
14
14
  */
15
- export interface ActionsWithoutPayload<TypeAction> {
15
+ export type ActionsWithoutPayload<TypeAction> = {
16
16
  type: TypeAction;
17
- }
17
+ };
18
18
  /**
19
19
  * A very general type that means to be "an object with a many field created with createActionPayload and createAction
20
20
  */
21
- interface ActionCreatorsMapObject {
21
+ type ActionCreatorsMapObject = {
22
22
  [key: string]: (...args: any[]) => // tslint:disable-next-line: no-any
23
23
  ActionsWithPayload<any, any> | ActionsWithoutPayload<any>;
24
- }
24
+ };
25
25
  /**
26
26
  * Use this Type to merge several action object that has field created with createActionPayload or createAction
27
27
  * E.g. type ReducerWithActionFromTwoObjects = ActionsUnion<typeof ActionsObject1 & typeof ActionsObject2>;
@@ -1,4 +1,4 @@
1
- export interface GenericInputProps {
1
+ export type GenericInputProps = {
2
2
  disabled: boolean;
3
3
  error: boolean;
4
4
  label: string;
@@ -6,4 +6,4 @@ export interface GenericInputProps {
6
6
  focused?: boolean;
7
7
  required?: boolean;
8
8
  zIndex?: number;
9
- }
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proprioo/salatim",
3
- "version": "29.10.0",
3
+ "version": "29.12.0",
4
4
  "description": "Proprioo component library",
5
5
  "keywords": [
6
6
  "components",
@@ -25,7 +25,7 @@
25
25
  "coverage": "yarn test --coverage --logHeapUsage --maxWorkers=2 --verbose && jest-coverage-badges",
26
26
  "deploy": "yarn build && yarn publish --access=public --non-interactive",
27
27
  "dev": "yarn storybook",
28
- "generate-phone-metadata": "libphonenumber-metadata-generator ./packages/phone/src/metadata.custom.json --countries AD,AR,AT,AU,BE,BR,CA,CH,CZ,DE,DK,EE,DZ,ES,FI,FR,GB,GF,GG,GI,GP,GR,HR,IE,IL,IS,IT,LB,LT,LU,MA,MC,MQ,NL,NO,NZ,PF,PL,PT,RE,RS,RU,SE,SG,TN,US",
28
+ "generate-phone-metadata": "libphonenumber-metadata-generator ./packages/phone/src/metadata.custom.json --countries AD,AR,AT,AU,BE,BR,CA,CH,CZ,DE,DK,EE,DZ,ES,FI,FR,GB,GF,GG,GI,GP,GR,HR,IE,IL,IN,IS,IT,LB,LT,LU,MA,MC,MQ,NL,NO,NZ,PF,PK,PL,PT,RE,RS,RU,SE,SG,TN,US",
29
29
  "lint": "tslint -c tslint.json 'packages/**/*.{ts,tsx}'",
30
30
  "pretty-quick": "pretty-quick",
31
31
  "start": "rollup -c rollup.config.ts -w",