@proprioo/salatim 29.10.0 → 29.11.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 (73) hide show
  1. package/CHANGELOG.md +4 -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.map +1 -1
  12. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +2 -2
  13. package/lib/ui/src/accordion/Accordion.interfaces.d.ts +6 -6
  14. package/lib/ui/src/accordion/Accordion.styles.d.ts +4 -4
  15. package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +2 -2
  16. package/lib/ui/src/accordion/AccordionContextProvider.d.ts +4 -4
  17. package/lib/ui/src/accordion/AccordionStore.d.ts +2 -2
  18. package/lib/ui/src/accordion/ItemContextConsumer.d.ts +2 -2
  19. package/lib/ui/src/accordion/ItemContextProvider.d.ts +4 -4
  20. package/lib/ui/src/agentBanner/AgentBanner.d.ts +2 -2
  21. package/lib/ui/src/agentCard/AgentCard.d.ts +2 -2
  22. package/lib/ui/src/autocomplete/Autocomplete.d.ts +2 -2
  23. package/lib/ui/src/block/Block.d.ts +2 -2
  24. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +2 -2
  25. package/lib/ui/src/blockIcon/BlockIcon.d.ts +2 -2
  26. package/lib/ui/src/burger/Burger.d.ts +2 -2
  27. package/lib/ui/src/burger/Burger.stories.js.map +1 -1
  28. package/lib/ui/src/button/Button.d.ts +2 -2
  29. package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +2 -2
  30. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +2 -2
  31. package/lib/ui/src/checkbox/Checkbox.d.ts +2 -2
  32. package/lib/ui/src/dateInput/DateInput.d.ts +2 -2
  33. package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +4 -4
  34. package/lib/ui/src/fieldset/Fieldset.d.ts +2 -2
  35. package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +2 -2
  36. package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +2 -2
  37. package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +4 -4
  38. package/lib/ui/src/icons/Certificate.d.ts +1 -1
  39. package/lib/ui/src/icons/ChevronRight.d.ts +1 -1
  40. package/lib/ui/src/icons/Close.d.ts +1 -1
  41. package/lib/ui/src/icons/EmoticonCool.d.ts +1 -1
  42. package/lib/ui/src/icons/Help.d.ts +1 -1
  43. package/lib/ui/src/icons/Icon.props.d.ts +2 -2
  44. package/lib/ui/src/icons/Less.d.ts +1 -1
  45. package/lib/ui/src/icons/Plus.d.ts +1 -1
  46. package/lib/ui/src/icons/index.d.ts +6 -6
  47. package/lib/ui/src/input/Input.d.ts +4 -4
  48. package/lib/ui/src/inputBase/InputBase.d.ts +4 -4
  49. package/lib/ui/src/inputBase/InputBase.styles.d.ts +2 -2
  50. package/lib/ui/src/loader/Loader.d.ts +2 -2
  51. package/lib/ui/src/mockForm/MockForm.d.ts +2 -2
  52. package/lib/ui/src/modal/Modal.d.ts +8 -8
  53. package/lib/ui/src/modal/Modal.reducer.d.ts +2 -2
  54. package/lib/ui/src/nativeSelect/NativeSelect.d.ts +2 -2
  55. package/lib/ui/src/numberInput/NumberInput.d.ts +2 -2
  56. package/lib/ui/src/option/Option.d.ts +4 -4
  57. package/lib/ui/src/option/Option.styles.d.ts +2 -2
  58. package/lib/ui/src/radio/Radio.d.ts +2 -2
  59. package/lib/ui/src/select/Select.d.ts +2 -2
  60. package/lib/ui/src/select/Select.styles.d.ts +2 -2
  61. package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +2 -2
  62. package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +4 -4
  63. package/lib/ui/src/subtitle/Subtitle.d.ts +2 -2
  64. package/lib/ui/src/tag/Tag.styles.d.ts +2 -2
  65. package/lib/ui/src/tag/interfaces.d.ts +2 -2
  66. package/lib/ui/src/textToggle/TextToggle.d.ts +2 -2
  67. package/lib/ui/src/textarea/Textarea.d.ts +4 -4
  68. package/lib/ui/src/title/Title.d.ts +2 -2
  69. package/lib/ui/src/toggle/Toggle.d.ts +2 -2
  70. package/lib/ui/src/tooltip/Tooltip.d.ts +2 -2
  71. package/lib/utils/src/actions.d.ts +6 -6
  72. package/lib/utils/src/props.d.ts +2 -2
  73. package/package.json +1 -1
@@ -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.11.0",
4
4
  "description": "Proprioo component library",
5
5
  "keywords": [
6
6
  "components",