@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.
- package/CHANGELOG.md +8 -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 +229 -229
- package/lib/index.js.map +1 -1
- package/lib/phone/src/metadata.custom.json +119 -18
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +2 -2
- package/lib/phone/src/phoneInput/constants.js +4 -0
- package/lib/phone/src/phoneInput/constants.js.map +1 -1
- 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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { nullOrBoolean } from '@proprioo/hokkaido';
|
|
4
|
-
export
|
|
4
|
+
export type DatePickerProps = {
|
|
5
5
|
date: Date | null;
|
|
6
6
|
hasFocus: boolean;
|
|
7
7
|
onDateChange(date: Date): void;
|
|
8
8
|
onFocusChange(focused: nullOrBoolean): void;
|
|
9
9
|
isDayBlocked?(date: Date): boolean;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
export declare const defaultBlockedDays: (day: Moment) => boolean;
|
|
12
12
|
declare const _default: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { GenericInputProps } from '../../../utils';
|
|
4
|
-
export
|
|
4
|
+
export type DatePickerWrapperProps = GenericInputProps & {
|
|
5
5
|
date: Date | null;
|
|
6
6
|
onDateChange(date: Date | null): void;
|
|
7
7
|
isDayBlocked?(date: Date): boolean;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export declare const formatDate: (date: Moment) => string;
|
|
10
10
|
declare const DatePickerWrapper: FC<DatePickerWrapperProps>;
|
|
11
11
|
export default DatePickerWrapper;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type SingleMonthProps = {
|
|
3
3
|
date: Date;
|
|
4
4
|
onDateChange(date: Date): void;
|
|
5
5
|
dayBlockedInFuture?: boolean;
|
|
6
6
|
daySize?: number;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
declare const SingleMonth: FC<SingleMonthProps>;
|
|
9
9
|
export default SingleMonth;
|
|
@@ -26,14 +26,14 @@ export declare enum CarbonFootprintLevelColor {
|
|
|
26
26
|
G = "#5f119a"
|
|
27
27
|
}
|
|
28
28
|
export declare const RULES_UPDATE_DATE: Date;
|
|
29
|
-
export
|
|
29
|
+
export type EnergyLevels = {
|
|
30
30
|
carbonFootprintLevel: EnergyLevel;
|
|
31
31
|
consumptionLevel: EnergyLevel;
|
|
32
32
|
EPCLevel: EnergyLevel;
|
|
33
|
-
}
|
|
34
|
-
export
|
|
33
|
+
};
|
|
34
|
+
export type LetterWrapperProps = {
|
|
35
35
|
background: string;
|
|
36
36
|
isMainScore?: boolean;
|
|
37
37
|
pos?: number;
|
|
38
38
|
letterSize?: number;
|
|
39
|
-
}
|
|
39
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { Dictionary, MaritalStatus, OfferSignatory } from '@proprioo/hokkaido';
|
|
3
3
|
import { nullOrDate } from '../../../date/src/typings';
|
|
4
|
-
export
|
|
4
|
+
export type OfferSignatoryInfo = Pick<OfferSignatory, 'streetNumber' | 'postCode' | 'city' | 'street' | 'placeOfBirth'> & {
|
|
5
5
|
dateOfBirth: nullOrDate;
|
|
6
6
|
maritalStatus: MaritalStatus | null;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
7
|
+
};
|
|
8
|
+
export type OfferSignatoryFormProps = {
|
|
9
9
|
errors: Dictionary;
|
|
10
10
|
offerSignatoryInfo: OfferSignatoryInfo;
|
|
11
11
|
customErrorMessages?: Dictionary;
|
|
12
12
|
updateOfferSignatory(values: OfferSignatoryInfo): void;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare const OfferSignatoryForm: FC<OfferSignatoryFormProps>;
|
|
15
15
|
export default OfferSignatoryForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferSignatoryForm.js","sourceRoot":"","sources":["../../../../packages/forms/src/offerSignatoryForm/OfferSignatoryForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA4C;AAE5C,iDAM4B;AAG5B,oCAAqE;AACrE,0CAA2C;AAC3C,kEAA+D;AAC/D,yEAIoC;
|
|
1
|
+
{"version":3,"file":"OfferSignatoryForm.js","sourceRoot":"","sources":["../../../../packages/forms/src/offerSignatoryForm/OfferSignatoryForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA4C;AAE5C,iDAM4B;AAG5B,oCAAqE;AACrE,0CAA2C;AAC3C,kEAA+D;AAC/D,yEAIoC;AAiBpC,MAAM,kBAAkB,GAAgC,CAAC,EACvD,kBAAkB,EAClB,MAAM,EACN,mBAAmB,GAAG,EAAE,EACxB,oBAAoB,EACrB,EAAE,EAAE;IACH,MAAM,EACJ,WAAW,EACX,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,aAAa,EACd,GAAG,kBAAkB,CAAC;IAEvB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EACpC,IAAA,uBAAY,EAAC,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CACrD,CAAC;I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EAAC,gCAAgC,EACzC,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,EAC7B,KAAK,EAAE,gDAAqB,CAAC,aAAa,EAC1C,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACtB,oBAAoB,iCACf,kBAAkB,KACrB,aAAa,EAAE,KAAsB,IACrC,EAEJ,MAAM,EACJ,iDAAsB,CAAC,IAAI,CACzB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CACvC,IAAI,IAAI,EAEX,OAAO,EAAE,iDAAsB,GAC/B;oBACD,MAAM,CAAC,aAAa,IAAI,CACvB,8BAAC,iCAAe,IAAC,QAAQ,EAAC,eAAe,IACtC,aAAa,CAAC,aAAa,CACZ,CACnB,CACG;gBACN,0CAAO,CACH,CACD,CACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { Dictionary, UserProps } from '@proprioo/hokkaido';
|
|
3
3
|
import { EmailInputI18nLabelProps } from '../../../ui/src/emailInput/EmailInput.interfaces';
|
|
4
|
-
export
|
|
4
|
+
export type UserFormLabelProps = {
|
|
5
5
|
firstName: string;
|
|
6
6
|
lastName: string;
|
|
7
7
|
email: string;
|
|
8
8
|
phone: string;
|
|
9
|
-
}
|
|
10
|
-
export
|
|
9
|
+
};
|
|
10
|
+
export type UserFormProps = {
|
|
11
11
|
user: UserProps;
|
|
12
12
|
errors: Dictionary;
|
|
13
13
|
disabledFields?: Record<string, boolean>;
|
|
@@ -17,7 +17,7 @@ export interface UserFormProps {
|
|
|
17
17
|
errorMessages?: Dictionary;
|
|
18
18
|
phoneWithFlags?: boolean;
|
|
19
19
|
updateUser(user: UserProps, field: string): void;
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
export declare const formatEmail: (email: string) => string;
|
|
22
22
|
declare const UserForm: FC<UserFormProps>;
|
|
23
23
|
export default UserForm;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nullOrString } from '@proprioo/hokkaido';
|
|
2
|
-
export
|
|
2
|
+
export type UseEmailSuggestionProps = {
|
|
3
3
|
debounce?: number;
|
|
4
4
|
email?: nullOrString;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export default function useEmailSuggestion({ debounce, email }: UseEmailSuggestionProps): string | undefined;
|