@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.
- package/CHANGELOG.md +4 -0
- package/lib/date/src/datePicker/DatePicker.d.ts +2 -2
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.d.ts +2 -2
- package/lib/date/src/singleMonth/SingleMonth.d.ts +2 -2
- package/lib/energy/src/Energy.d.ts +2 -2
- package/lib/energy/src/interfaces.d.ts +4 -4
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.d.ts +4 -4
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +1 -1
- package/lib/forms/src/userForm/UserForm.d.ts +4 -4
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.d.ts +2 -2
- package/lib/index.js.map +1 -1
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +2 -2
- package/lib/ui/src/accordion/Accordion.interfaces.d.ts +6 -6
- package/lib/ui/src/accordion/Accordion.styles.d.ts +4 -4
- package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +2 -2
- package/lib/ui/src/accordion/AccordionContextProvider.d.ts +4 -4
- package/lib/ui/src/accordion/AccordionStore.d.ts +2 -2
- package/lib/ui/src/accordion/ItemContextConsumer.d.ts +2 -2
- package/lib/ui/src/accordion/ItemContextProvider.d.ts +4 -4
- package/lib/ui/src/agentBanner/AgentBanner.d.ts +2 -2
- package/lib/ui/src/agentCard/AgentCard.d.ts +2 -2
- package/lib/ui/src/autocomplete/Autocomplete.d.ts +2 -2
- package/lib/ui/src/block/Block.d.ts +2 -2
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +2 -2
- package/lib/ui/src/blockIcon/BlockIcon.d.ts +2 -2
- package/lib/ui/src/burger/Burger.d.ts +2 -2
- package/lib/ui/src/burger/Burger.stories.js.map +1 -1
- package/lib/ui/src/button/Button.d.ts +2 -2
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +2 -2
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +2 -2
- package/lib/ui/src/checkbox/Checkbox.d.ts +2 -2
- package/lib/ui/src/dateInput/DateInput.d.ts +2 -2
- package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +4 -4
- package/lib/ui/src/fieldset/Fieldset.d.ts +2 -2
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +2 -2
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +2 -2
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +4 -4
- package/lib/ui/src/icons/Certificate.d.ts +1 -1
- package/lib/ui/src/icons/ChevronRight.d.ts +1 -1
- package/lib/ui/src/icons/Close.d.ts +1 -1
- package/lib/ui/src/icons/EmoticonCool.d.ts +1 -1
- package/lib/ui/src/icons/Help.d.ts +1 -1
- package/lib/ui/src/icons/Icon.props.d.ts +2 -2
- package/lib/ui/src/icons/Less.d.ts +1 -1
- package/lib/ui/src/icons/Plus.d.ts +1 -1
- package/lib/ui/src/icons/index.d.ts +6 -6
- package/lib/ui/src/input/Input.d.ts +4 -4
- package/lib/ui/src/inputBase/InputBase.d.ts +4 -4
- package/lib/ui/src/inputBase/InputBase.styles.d.ts +2 -2
- package/lib/ui/src/loader/Loader.d.ts +2 -2
- package/lib/ui/src/mockForm/MockForm.d.ts +2 -2
- package/lib/ui/src/modal/Modal.d.ts +8 -8
- package/lib/ui/src/modal/Modal.reducer.d.ts +2 -2
- package/lib/ui/src/nativeSelect/NativeSelect.d.ts +2 -2
- package/lib/ui/src/numberInput/NumberInput.d.ts +2 -2
- package/lib/ui/src/option/Option.d.ts +4 -4
- package/lib/ui/src/option/Option.styles.d.ts +2 -2
- package/lib/ui/src/radio/Radio.d.ts +2 -2
- package/lib/ui/src/select/Select.d.ts +2 -2
- package/lib/ui/src/select/Select.styles.d.ts +2 -2
- package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +2 -2
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +4 -4
- package/lib/ui/src/subtitle/Subtitle.d.ts +2 -2
- package/lib/ui/src/tag/Tag.styles.d.ts +2 -2
- package/lib/ui/src/tag/interfaces.d.ts +2 -2
- package/lib/ui/src/textToggle/TextToggle.d.ts +2 -2
- package/lib/ui/src/textarea/Textarea.d.ts +4 -4
- package/lib/ui/src/title/Title.d.ts +2 -2
- package/lib/ui/src/toggle/Toggle.d.ts +2 -2
- package/lib/ui/src/tooltip/Tooltip.d.ts +2 -2
- package/lib/utils/src/actions.d.ts +6 -6
- package/lib/utils/src/props.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { nullOrString } from '@proprioo/hokkaido';
|
|
3
|
-
|
|
3
|
+
type PhoneAndFlagProps = {
|
|
4
4
|
errorMessage: string;
|
|
5
5
|
phone: nullOrString;
|
|
6
6
|
color?: string;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
declare const PhoneAndFlag: FC<PhoneAndFlagProps>;
|
|
9
9
|
export default PhoneAndFlag;
|
|
@@ -4,14 +4,14 @@ export declare enum AccordionItemColors {
|
|
|
4
4
|
GREEN = "green",
|
|
5
5
|
DARK = "dark"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type AccordionProps = {
|
|
8
8
|
preExpanded?: UUID[];
|
|
9
9
|
allowMultipleExpanded?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
};
|
|
11
|
+
export type AccordionItemProps = {
|
|
12
12
|
uuid: UUID;
|
|
13
13
|
color?: AccordionItemColors;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
14
|
+
};
|
|
15
|
+
export type AccordionPanelProps = {
|
|
16
16
|
unmountOnCollapse?: boolean;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccordionItemColors } from './Accordion.interfaces';
|
|
2
|
-
|
|
2
|
+
type ItemProps = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
color?: AccordionItemColors;
|
|
5
|
-
}
|
|
6
|
-
export
|
|
5
|
+
};
|
|
6
|
+
export type HeaderProps = {
|
|
7
7
|
isAlternative?: boolean;
|
|
8
8
|
basic?: boolean;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
11
|
export declare const HeaderLabel: import("styled-components").StyledComponent<"p", any, HeaderProps, never>;
|
|
12
12
|
export declare const HeaderIcon: import("styled-components").StyledComponent<"div", any, ItemProps, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AccordionContext } from './AccordionContextProvider';
|
|
3
|
-
|
|
3
|
+
type ConsumerProps = {
|
|
4
4
|
children(container: AccordionContext): ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const Consumer: FC<ConsumerProps>;
|
|
7
7
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import { UUID } from './Accordion';
|
|
3
3
|
import AccordionStore from './AccordionStore';
|
|
4
|
-
export
|
|
4
|
+
export type ProviderProps = {
|
|
5
5
|
preExpanded?: UUID[];
|
|
6
6
|
allowMultipleExpanded?: boolean;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
type ProviderState = AccordionStore;
|
|
10
|
-
export
|
|
10
|
+
export type AccordionContext = {
|
|
11
11
|
allowMultipleExpanded: boolean;
|
|
12
12
|
isItemExpanded(uuid: UUID): boolean;
|
|
13
13
|
toggleExpanded(uuid: UUID): void;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export declare const Context: React.Context<AccordionContext | null>;
|
|
16
16
|
export declare class Provider extends PureComponent<ProviderProps, ProviderState> {
|
|
17
17
|
state: ProviderState;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UUID } from './Accordion';
|
|
2
|
-
|
|
2
|
+
type AccordionStoreProps = {
|
|
3
3
|
expanded?: UUID[];
|
|
4
4
|
allowMultipleExpanded?: boolean;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const filterExpanded: (expanded: UUID[], uuid: UUID) => string[];
|
|
7
7
|
export default class AccordionStore {
|
|
8
8
|
expanded: UUID[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { ItemContext } from './ItemContextProvider';
|
|
3
|
-
|
|
3
|
+
type ConsumerProps = {
|
|
4
4
|
children(container: ItemContext): ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const ItemConsumer: FC<ConsumerProps>;
|
|
7
7
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { UUID } from './Accordion';
|
|
3
3
|
import { AccordionContext } from './AccordionContextProvider';
|
|
4
|
-
|
|
4
|
+
type ProviderProps = {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
uuid: UUID;
|
|
7
7
|
accordionContext: AccordionContext;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export type ProviderWrapperProps = Pick<ProviderProps, Exclude<keyof ProviderProps, 'accordionContext'>>;
|
|
10
|
-
export
|
|
10
|
+
export type ItemContext = {
|
|
11
11
|
uuid: UUID;
|
|
12
12
|
expanded: boolean;
|
|
13
13
|
toggleExpanded(): void;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export declare const Context: React.Context<ItemContext | null>;
|
|
16
16
|
declare const ProviderWrapper: FC<ProviderWrapperProps>;
|
|
17
17
|
export { ProviderWrapper as ItemProvider };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { PrismicAgentResult } from '@proprioo/hokkaido';
|
|
3
|
-
export
|
|
3
|
+
export type AgentBannerProps = {
|
|
4
4
|
agent: PrismicAgentResult;
|
|
5
5
|
rounded?: boolean;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
declare const AgentBanner: FC<PropsWithChildren<AgentBannerProps>>;
|
|
8
8
|
export default AgentBanner;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { PrismicAgentResult } from '@proprioo/hokkaido';
|
|
3
|
-
export
|
|
3
|
+
export type AgentCardProps = {
|
|
4
4
|
agent: PrismicAgentResult;
|
|
5
5
|
showComment?: boolean;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
declare const AgentCard: FC<AgentCardProps>;
|
|
8
8
|
export default AgentCard;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { OptionProps } from '@proprioo/hokkaido';
|
|
3
3
|
import { GenericInputProps } from '../../../utils';
|
|
4
|
-
export
|
|
4
|
+
export type AutocompleteProps = GenericInputProps & {
|
|
5
5
|
list: OptionProps[];
|
|
6
6
|
option: OptionProps | null;
|
|
7
7
|
native?: boolean;
|
|
8
8
|
onSelect(option: OptionProps | null): void;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare const Autocomplete: FC<AutocompleteProps>;
|
|
11
11
|
export default Autocomplete;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type BlockProps = {
|
|
3
3
|
picture?: string;
|
|
4
4
|
isCompact?: boolean;
|
|
5
5
|
isRounded?: boolean;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
declare const Block: FC<PropsWithChildren<BlockProps>>;
|
|
8
8
|
export default Block;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type BlockCheckIconProps = {
|
|
3
3
|
checked: boolean;
|
|
4
4
|
text: string;
|
|
5
5
|
name: string;
|
|
6
6
|
onClick(value: boolean): void;
|
|
7
7
|
dataTest?: string;
|
|
8
8
|
image?: ReactElement;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare const BlockCheckIcon: FC<BlockCheckIconProps>;
|
|
11
11
|
export default BlockCheckIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type BlockIconProps<T> = {
|
|
3
3
|
text: string;
|
|
4
4
|
name: string;
|
|
5
5
|
value: T;
|
|
@@ -8,6 +8,6 @@ export interface BlockIconProps<T> {
|
|
|
8
8
|
dataTest?: string;
|
|
9
9
|
image?: ReactElement;
|
|
10
10
|
isContentCentered?: boolean;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
declare function BlockIcon<T>({ onClick, image, text, name, selectedValue, dataTest, value, isContentCentered }: BlockIconProps<T>): JSX.Element;
|
|
13
13
|
export default BlockIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Burger.stories.js","sourceRoot":"","sources":["../../../../packages/ui/src/burger/Burger.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,8DAAwD;AACxD,wDAAiD;AACjD,4CAA4D;AAE5D,0CAAwC;AACxC,sDAA8B;AAM9B,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC;IACnB,OAAO,EAAE,IAAA,qBAAO,EAAC,SAAS,EAAE,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAI,uBAAK,
|
|
1
|
+
{"version":3,"file":"Burger.stories.js","sourceRoot":"","sources":["../../../../packages/ui/src/burger/Burger.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,8DAAwD;AACxD,wDAAiD;AACjD,4CAA4D;AAE5D,0CAAwC;AACxC,sDAA8B;AAM9B,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC;IACnB,OAAO,EAAE,IAAA,qBAAO,EAAC,SAAS,EAAE,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,IAAI,uBAAK,CAAc;IACzC,MAAM,EAAE,KAAK;CACd,CAAC,CAAC;AAEH,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE;IACzB,IAAA,qBAAa,GAAE,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,IAAA,iBAAS,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE;IAC7C,OAAO,CACL,8BAAC,gBAAQ;QACP,8BAAC,uBAAK,IAAC,KAAK,EAAE,WAAW;YACvB,8BAAC,gBAAM,kBACL,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,EACjC,OAAO,EAAE,GAAG,EAAE,CACZ,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,EAEzD,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,IACnB,KAAK,EAAE,EACX,CACI,CACC,CACZ,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, MouseEvent, ReactElement } from 'react';
|
|
2
2
|
import { ButtonAppearance, ButtonSizes, ButtonTheme, IconPosition } from './Button.interfaces';
|
|
3
|
-
export
|
|
3
|
+
export type ButtonProps = {
|
|
4
4
|
label: string;
|
|
5
5
|
appearance?: ButtonAppearance;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -12,6 +12,6 @@ export interface ButtonProps {
|
|
|
12
12
|
theme?: ButtonTheme;
|
|
13
13
|
type?: 'submit' | 'reset' | 'button';
|
|
14
14
|
onClick?(event: MouseEvent<HTMLElement>): void;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
declare const Button: FC<ButtonProps>;
|
|
17
17
|
export default Button;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { OptionProps } from '../option/Option';
|
|
3
|
-
|
|
3
|
+
type ButtonRadioProps = {
|
|
4
4
|
isChecked: boolean;
|
|
5
5
|
name: string;
|
|
6
6
|
option: OptionProps;
|
|
7
7
|
onClick(): void;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
declare const ButtonRadio: FC<ButtonRadioProps>;
|
|
10
10
|
export default ButtonRadio;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { OptionProps } from '../option/Option';
|
|
3
|
-
export
|
|
3
|
+
export type ButtonRadioGroupProps = {
|
|
4
4
|
label: string;
|
|
5
5
|
name: string;
|
|
6
6
|
onChange(option: OptionProps): void;
|
|
7
7
|
options: OptionProps[];
|
|
8
8
|
value: string;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare const ButtonRadioGroup: FC<ButtonRadioGroupProps>;
|
|
11
11
|
export default ButtonRadioGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CheckboxSize } from './interfaces';
|
|
3
|
-
export
|
|
3
|
+
export type CheckboxProps = {
|
|
4
4
|
checked: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
id: string;
|
|
@@ -10,6 +10,6 @@ export interface CheckboxProps {
|
|
|
10
10
|
indeterminate?: boolean;
|
|
11
11
|
checkboxSize?: CheckboxSize;
|
|
12
12
|
onChange(checked: boolean): void;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare const Checkbox: FC<PropsWithChildren<CheckboxProps>>;
|
|
15
15
|
export default Checkbox;
|
|
@@ -6,9 +6,9 @@ export declare const formatDate: (date: Date) => string;
|
|
|
6
6
|
export declare const formatISODate: (date: Date) => string;
|
|
7
7
|
export declare const formatValue: (value: string) => string;
|
|
8
8
|
export declare const isValidDate: (date: Date) => boolean;
|
|
9
|
-
export
|
|
9
|
+
export type DateInputProps = BaseInputProps & {
|
|
10
10
|
value?: nullOrString;
|
|
11
11
|
onChange(value: nullOrString): void;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
declare const DateInput: FC<DateInputProps>;
|
|
14
14
|
export default DateInput;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { InputBaseProps } from '../inputBase/InputBase';
|
|
2
|
-
export
|
|
2
|
+
export type EmailInputI18nLabelProps = {
|
|
3
3
|
yes: string;
|
|
4
4
|
no: string;
|
|
5
5
|
suggestion(email: string): string;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
6
|
+
};
|
|
7
|
+
export type EmailInputProps = InputBaseProps & {
|
|
8
8
|
/** Whether to enabled/disable email suggestions. */
|
|
9
9
|
isSuggestionEnabled?: boolean;
|
|
10
10
|
/** i18n translation keys */
|
|
11
11
|
i18nLabels?: EmailInputI18nLabelProps;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type FieldsetProps = {
|
|
3
3
|
label: string;
|
|
4
4
|
active?: boolean;
|
|
5
5
|
error?: boolean;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
declare const Fieldset: FC<PropsWithChildren<FieldsetProps>>;
|
|
8
8
|
export default Fieldset;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { GenericInputProps } from '../../../utils';
|
|
3
|
-
export
|
|
3
|
+
export type GmapsAutocompleteProps = GenericInputProps & {
|
|
4
4
|
value: string;
|
|
5
5
|
country?: string | string[];
|
|
6
6
|
id?: string;
|
|
@@ -9,6 +9,6 @@ export interface GmapsAutocompleteProps extends GenericInputProps {
|
|
|
9
9
|
onChange(value: string): void;
|
|
10
10
|
onSelect(value: string): void;
|
|
11
11
|
onError?(error: string): void;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
declare const GmapsAutocomplete: FC<GmapsAutocompleteProps>;
|
|
14
14
|
export default GmapsAutocomplete;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="google.maps" />
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import { GenericInputProps } from '../../../utils';
|
|
5
|
-
export
|
|
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
|
|
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
|
|
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,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type IconProps = {
|
|
2
2
|
fill?: string;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
@@ -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").
|
|
4
|
+
ChevronRight: import("react").FC<import("./Icon.props").IconProps>;
|
|
5
5
|
DropDown: () => JSX.Element;
|
|
6
|
-
EmoticonCool: import("react").FC<import("./Icon.props").
|
|
7
|
-
Certificate: import("react").FC<import("./Icon.props").
|
|
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").
|
|
11
|
-
Less: import("react").FC<import("./Icon.props").
|
|
12
|
-
Close: import("react").FC<import("./Icon.props").
|
|
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
|
|
12
|
+
export type CustomInputEvent = {
|
|
13
13
|
target: {
|
|
14
14
|
value: string;
|
|
15
15
|
selectionStart: nullOrNumber;
|
|
16
16
|
};
|
|
17
|
-
}
|
|
18
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { FC, FormEvent, ReactNode } from 'react';
|
|
2
2
|
export declare const mockSubmit: (event: FormEvent<HTMLFormElement>) => void;
|
|
3
|
-
export
|
|
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
|
-
|
|
3
|
+
type ActionsProps = {
|
|
4
4
|
onAbort?(): void;
|
|
5
5
|
onClose?(): void;
|
|
6
6
|
onOpen?(): void;
|
|
7
|
-
}
|
|
8
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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;
|