@proprioo/salatim 29.9.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 +8 -0
- package/lib/date/index.d.ts +2 -2
- package/lib/date/src/DayPicker.d.ts +4 -4
- package/lib/date/src/datePicker/DatePicker.d.ts +13 -13
- package/lib/date/src/datePicker/DatePicker.styles.d.ts +1 -1
- package/lib/date/src/datePickerWrapper/DatePickerWrapper.d.ts +11 -11
- package/lib/date/src/datePickerWrapper/DatepickerWrapper.styles.d.ts +3 -3
- package/lib/date/src/singleMonth/SingleMonth.d.ts +9 -9
- package/lib/date/src/singleMonth/SingleMonth.styles.d.ts +1 -1
- package/lib/date/src/typings.d.ts +3 -3
- package/lib/energy/index.d.ts +3 -3
- package/lib/energy/src/Energy.d.ts +8 -8
- package/lib/energy/src/Energy.styles.d.ts +14 -14
- package/lib/energy/src/Energy.utils.d.ts +10 -10
- package/lib/energy/src/interfaces.d.ts +39 -39
- package/lib/forms/index.d.ts +5 -5
- package/lib/forms/src/errorForm/ErrorForm.styles.d.ts +1 -1
- package/lib/forms/src/errorForm/ErrorFormLayout.d.ts +6 -6
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.d.ts +15 -15
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +1 -1
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.schema.d.ts +18 -18
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.utils.d.ts +14 -14
- package/lib/forms/src/userForm/UserForm.d.ts +23 -23
- package/lib/forms/src/userForm/UserForm.schema.d.ts +13 -13
- package/lib/hooks/index.d.ts +3 -3
- package/lib/hooks/useDebounce/useDebounce.d.ts +2 -2
- package/lib/hooks/useEmailSuggestion/useEmailSuggestion.d.ts +6 -6
- package/lib/hooks/useFirstRender/useFirstRender.d.ts +1 -1
- package/lib/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -2
- package/lib/index.d.ts +7 -7
- package/lib/index.js +250 -250
- package/lib/index.js.map +1 -1
- package/lib/phone/index.d.ts +4 -4
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +9 -9
- package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.d.ts +5 -5
- package/lib/phone/src/phoneInput/Phone.d.ts +5 -5
- package/lib/phone/src/phoneInput/Phone.styles.d.ts +3 -3
- package/lib/phone/src/phoneInput/PhoneInput.d.ts +4 -4
- package/lib/phone/src/phoneInput/constants.d.ts +5 -5
- package/lib/phone/src/utils.d.ts +5 -5
- package/lib/ui/index.d.ts +55 -55
- package/lib/ui/src/accordion/Accordion.d.ts +5 -5
- package/lib/ui/src/accordion/Accordion.interfaces.d.ts +17 -17
- package/lib/ui/src/accordion/Accordion.styles.d.ts +15 -15
- package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +7 -7
- package/lib/ui/src/accordion/AccordionContextProvider.d.ts +24 -24
- package/lib/ui/src/accordion/AccordionHeader.d.ts +4 -4
- package/lib/ui/src/accordion/AccordionItem.d.ts +4 -4
- package/lib/ui/src/accordion/AccordionPanel.d.ts +4 -4
- package/lib/ui/src/accordion/AccordionStore.d.ts +15 -15
- package/lib/ui/src/accordion/ItemContextConsumer.d.ts +7 -7
- package/lib/ui/src/accordion/ItemContextProvider.d.ts +17 -17
- package/lib/ui/src/agentBanner/AgentBanner.d.ts +8 -8
- package/lib/ui/src/agentBanner/AgentBanner.styles.d.ts +10 -10
- package/lib/ui/src/agentCard/AgentCard.d.ts +8 -8
- package/lib/ui/src/agentCard/AgentCard.styles.d.ts +9 -9
- package/lib/ui/src/agentCard/AgentMock.d.ts +3 -3
- package/lib/ui/src/autocomplete/Autocomplete.d.ts +11 -11
- package/lib/ui/src/block/Block.d.ts +8 -8
- package/lib/ui/src/block/Block.styles.d.ts +4 -4
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +11 -11
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.styles.d.ts +4 -4
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js +2 -26
- package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js.map +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.d.ts +13 -13
- package/lib/ui/src/blockIcon/BlockIcon.styles.d.ts +5 -5
- package/lib/ui/src/burger/Burger.d.ts +9 -9
- package/lib/ui/src/burger/Burger.stories.js.map +1 -1
- package/lib/ui/src/burger/Burger.styles.d.ts +3 -3
- package/lib/ui/src/button/Button.d.ts +17 -17
- package/lib/ui/src/button/Button.interfaces.d.ts +25 -25
- package/lib/ui/src/button/Button.styles.d.ts +7 -7
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +10 -10
- package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.d.ts +4 -4
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +11 -11
- package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.d.ts +1 -1
- package/lib/ui/src/card/Card.d.ts +24 -24
- package/lib/ui/src/card/Card.styles.d.ts +21 -21
- package/lib/ui/src/checkbox/Checkbox.d.ts +15 -15
- package/lib/ui/src/checkbox/Checkbox.styles.d.ts +13 -13
- package/lib/ui/src/checkbox/interfaces.d.ts +4 -4
- package/lib/ui/src/dateInput/DateInput.d.ts +14 -14
- package/lib/ui/src/emailInput/EmailInput.d.ts +2 -2
- package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +12 -12
- package/lib/ui/src/emailInput/EmailInput.styles.d.ts +2 -2
- package/lib/ui/src/fieldset/Fieldset.d.ts +8 -8
- package/lib/ui/src/fieldset/Fieldset.styles.d.ts +6 -6
- package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +14 -14
- package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +16 -16
- package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +20 -20
- package/lib/ui/src/icons/Alert.d.ts +2 -2
- package/lib/ui/src/icons/Arrow.d.ts +2 -2
- package/lib/ui/src/icons/Certificate.d.ts +4 -4
- package/lib/ui/src/icons/CheckGreen.d.ts +2 -2
- package/lib/ui/src/icons/ChevronRight.d.ts +4 -4
- package/lib/ui/src/icons/Close.d.ts +4 -4
- package/lib/ui/src/icons/CloseBox.d.ts +2 -2
- package/lib/ui/src/icons/DropDown.d.ts +2 -2
- package/lib/ui/src/icons/EmoticonCool.d.ts +4 -4
- package/lib/ui/src/icons/Help.d.ts +4 -4
- package/lib/ui/src/icons/Icon.props.d.ts +3 -3
- package/lib/ui/src/icons/Less.d.ts +4 -4
- package/lib/ui/src/icons/Plus.d.ts +4 -4
- package/lib/ui/src/icons/Tick.d.ts +2 -2
- package/lib/ui/src/icons/TrustPilot.d.ts +2 -2
- package/lib/ui/src/icons/index.d.ts +14 -14
- package/lib/ui/src/input/Input.d.ts +40 -40
- package/lib/ui/src/input/Input.styles.d.ts +2 -2
- package/lib/ui/src/inputBase/InputBase.d.ts +47 -47
- package/lib/ui/src/inputBase/InputBase.styles.d.ts +21 -21
- package/lib/ui/src/inputBase/InputBaseEnum.d.ts +6 -6
- package/lib/ui/src/inputLoader/InputLoader.d.ts +2 -2
- package/lib/ui/src/inputLoader/InputLoader.styles.d.ts +2 -2
- package/lib/ui/src/inputLoading/InputLoading.d.ts +3 -3
- package/lib/ui/src/inputLoading/InputLoading.styles.d.ts +1 -1
- package/lib/ui/src/loader/Loader.d.ts +9 -9
- package/lib/ui/src/loader/Loader.styles.d.ts +10 -10
- package/lib/ui/src/logo/Logo.d.ts +2 -2
- package/lib/ui/src/mockForm/MockForm.d.ts +7 -7
- package/lib/ui/src/modal/Modal.d.ts +32 -32
- package/lib/ui/src/modal/Modal.reducer.d.ts +35 -35
- package/lib/ui/src/modal/Modal.styles.d.ts +18 -18
- package/lib/ui/src/nativeSelect/NativeSelect.d.ts +11 -11
- package/lib/ui/src/nativeSelect/NativeSelect.styles.d.ts +1 -1
- package/lib/ui/src/numberInput/NumberInput.d.ts +11 -11
- package/lib/ui/src/numberInput/NumberInput.utils.d.ts +3 -3
- package/lib/ui/src/option/Option.d.ts +13 -13
- package/lib/ui/src/option/Option.styles.d.ts +7 -7
- package/lib/ui/src/radio/Radio.d.ts +12 -12
- package/lib/ui/src/radio/Radio.styles.d.ts +3 -3
- package/lib/ui/src/select/Select.d.ts +22 -22
- package/lib/ui/src/select/Select.styles.d.ts +12 -12
- package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +23 -23
- package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +13 -13
- package/lib/ui/src/subtitle/Subtitle.d.ts +8 -8
- package/lib/ui/src/subtitle/Subtitle.styles.d.ts +5 -5
- package/lib/ui/src/tag/Tag.d.ts +4 -4
- package/lib/ui/src/tag/Tag.styles.d.ts +14 -14
- package/lib/ui/src/tag/TagColors.d.ts +74 -74
- package/lib/ui/src/tag/interfaces.d.ts +29 -29
- package/lib/ui/src/textToggle/TextToggle.d.ts +12 -12
- package/lib/ui/src/textToggle/TextToggle.mocks.d.ts +2 -2
- package/lib/ui/src/textToggle/TextToggle.styles.d.ts +9 -9
- package/lib/ui/src/textToggle/TextToggle.utils.d.ts +2 -2
- package/lib/ui/src/textarea/Textarea.d.ts +41 -41
- package/lib/ui/src/textarea/Textarea.styles.d.ts +4 -4
- package/lib/ui/src/title/H1.d.ts +4 -4
- package/lib/ui/src/title/H1.styles.d.ts +2 -2
- package/lib/ui/src/title/H2.d.ts +4 -4
- package/lib/ui/src/title/H2.styles.d.ts +2 -2
- package/lib/ui/src/title/H3.d.ts +4 -4
- package/lib/ui/src/title/H3.styles.d.ts +2 -2
- package/lib/ui/src/title/H4.d.ts +4 -4
- package/lib/ui/src/title/H4.styles.d.ts +2 -2
- package/lib/ui/src/title/H5.d.ts +4 -4
- package/lib/ui/src/title/H5.styles.d.ts +2 -2
- package/lib/ui/src/title/H6.d.ts +4 -4
- package/lib/ui/src/title/H6.styles.d.ts +2 -2
- package/lib/ui/src/title/Title.d.ts +18 -18
- package/lib/ui/src/title/Title.styles.d.ts +8 -8
- package/lib/ui/src/toggle/Toggle.d.ts +13 -13
- package/lib/ui/src/toggle/Toggle.styles.d.ts +4 -4
- package/lib/ui/src/tooltip/Tooltip.d.ts +19 -19
- package/lib/ui/src/tooltip/Tooltip.styles.d.ts +2 -2
- package/lib/utils/index.d.ts +16 -16
- package/lib/utils/src/actions.d.ts +30 -30
- package/lib/utils/src/breakpoints.d.ts +11 -11
- package/lib/utils/src/colors.d.ts +113 -113
- package/lib/utils/src/container.d.ts +2 -2
- package/lib/utils/src/fonts.d.ts +15 -15
- package/lib/utils/src/gmaps.d.ts +10 -10
- package/lib/utils/src/line.d.ts +2 -2
- package/lib/utils/src/paragraphs.d.ts +16 -16
- package/lib/utils/src/props.d.ts +9 -9
- package/lib/utils/src/radius.d.ts +10 -10
- package/lib/utils/src/reset.d.ts +1 -1
- package/lib/utils/src/responsive.d.ts +5 -5
- package/lib/utils/src/row.d.ts +2 -2
- package/lib/utils/src/scrollbars.d.ts +2 -2
- package/lib/utils/src/shadows.d.ts +8 -8
- package/lib/utils/src/spacing.d.ts +2 -2
- package/lib/utils/src/test-utils.d.ts +23 -24
- package/lib/utils/src/test-utils.js +1 -3
- package/lib/utils/src/test-utils.js.map +1 -1
- package/lib/utils/src/utils.styles.d.ts +36 -36
- package/package.json +13 -13
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ActionsUnion } from '../../../utils';
|
|
2
|
-
export declare enum FadeEnum {
|
|
3
|
-
IN = "in",
|
|
4
|
-
OUT = "out"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
fade: FadeEnum;
|
|
8
|
-
isAborting: boolean;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare enum ModalActionsEnum {
|
|
13
|
-
ABORT = "abort",
|
|
14
|
-
ANIMATION_END = "animationEnd",
|
|
15
|
-
CLOSE = "close",
|
|
16
|
-
FADE_OUT = "fadeOut",
|
|
17
|
-
OPEN = "open",
|
|
18
|
-
RESET = "reset",
|
|
19
|
-
TOGGLE_LOAD = "toggleLoad"
|
|
20
|
-
}
|
|
21
|
-
export declare const ModalActions: {
|
|
22
|
-
abort: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.ABORT>;
|
|
23
|
-
animationEnd: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.ANIMATION_END>;
|
|
24
|
-
close: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.CLOSE>;
|
|
25
|
-
open: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.OPEN>;
|
|
26
|
-
reset: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.RESET>;
|
|
27
|
-
toggleLoad: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.TOGGLE_LOAD>;
|
|
28
|
-
};
|
|
29
|
-
export declare const reducerModal: (state: ReducerModal, { type }: ActionsUnion<typeof ModalActions>) => {
|
|
30
|
-
isAborting: boolean;
|
|
31
|
-
fade: FadeEnum;
|
|
32
|
-
isLoading: boolean;
|
|
33
|
-
isOpen: boolean;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
1
|
+
import { ActionsUnion } from '../../../utils';
|
|
2
|
+
export declare enum FadeEnum {
|
|
3
|
+
IN = "in",
|
|
4
|
+
OUT = "out"
|
|
5
|
+
}
|
|
6
|
+
type ReducerModal = {
|
|
7
|
+
fade: FadeEnum;
|
|
8
|
+
isAborting: boolean;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare enum ModalActionsEnum {
|
|
13
|
+
ABORT = "abort",
|
|
14
|
+
ANIMATION_END = "animationEnd",
|
|
15
|
+
CLOSE = "close",
|
|
16
|
+
FADE_OUT = "fadeOut",
|
|
17
|
+
OPEN = "open",
|
|
18
|
+
RESET = "reset",
|
|
19
|
+
TOGGLE_LOAD = "toggleLoad"
|
|
20
|
+
}
|
|
21
|
+
export declare const ModalActions: {
|
|
22
|
+
abort: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.ABORT>;
|
|
23
|
+
animationEnd: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.ANIMATION_END>;
|
|
24
|
+
close: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.CLOSE>;
|
|
25
|
+
open: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.OPEN>;
|
|
26
|
+
reset: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.RESET>;
|
|
27
|
+
toggleLoad: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.TOGGLE_LOAD>;
|
|
28
|
+
};
|
|
29
|
+
export declare const reducerModal: (state: ReducerModal, { type }: ActionsUnion<typeof ModalActions>) => {
|
|
30
|
+
isAborting: boolean;
|
|
31
|
+
fade: FadeEnum;
|
|
32
|
+
isLoading: boolean;
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ModalProps } from './Modal';
|
|
2
|
-
import { FadeEnum } from './Modal.reducer';
|
|
3
|
-
type LayoutProps = Pick<ModalProps, 'isFullScreen' | 'noPadding'>;
|
|
4
|
-
export declare const CloseLayout: import("styled-components").StyledComponent<"button", any, {
|
|
5
|
-
hasTitle: boolean;
|
|
6
|
-
}, never>;
|
|
7
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
|
|
8
|
-
export declare const MobileTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const Title: import("styled-components").StyledComponent<"p", any, {
|
|
12
|
-
isAlternative: boolean;
|
|
13
|
-
}, never>;
|
|
14
|
-
export declare const Text: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
15
|
-
export declare const BackgroundLayout: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
-
fade: FadeEnum;
|
|
17
|
-
}, never>;
|
|
18
|
-
export {};
|
|
1
|
+
import { ModalProps } from './Modal';
|
|
2
|
+
import { FadeEnum } from './Modal.reducer';
|
|
3
|
+
type LayoutProps = Pick<ModalProps, 'isFullScreen' | 'noPadding'>;
|
|
4
|
+
export declare const CloseLayout: import("styled-components").StyledComponent<"button", any, {
|
|
5
|
+
hasTitle: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
|
|
8
|
+
export declare const MobileTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const Title: import("styled-components").StyledComponent<"p", any, {
|
|
12
|
+
isAlternative: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const Text: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
15
|
+
export declare const BackgroundLayout: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
+
fade: FadeEnum;
|
|
17
|
+
}, never>;
|
|
18
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ChangeEvent, FC } from 'react';
|
|
2
|
-
import { OptionProps } from '@proprioo/hokkaido';
|
|
3
|
-
export
|
|
4
|
-
displayOption: OptionProps;
|
|
5
|
-
options: OptionProps[];
|
|
6
|
-
label: string;
|
|
7
|
-
onChange(event: ChangeEvent<HTMLSelectElement>): void;
|
|
8
|
-
onClickOutside(): void;
|
|
9
|
-
}
|
|
10
|
-
declare const NativeSelect: FC<NativeSelectProps>;
|
|
11
|
-
export default NativeSelect;
|
|
1
|
+
import { ChangeEvent, FC } from 'react';
|
|
2
|
+
import { OptionProps } from '@proprioo/hokkaido';
|
|
3
|
+
export type NativeSelectProps = {
|
|
4
|
+
displayOption: OptionProps;
|
|
5
|
+
options: OptionProps[];
|
|
6
|
+
label: string;
|
|
7
|
+
onChange(event: ChangeEvent<HTMLSelectElement>): void;
|
|
8
|
+
onClickOutside(): void;
|
|
9
|
+
};
|
|
10
|
+
declare const NativeSelect: FC<NativeSelectProps>;
|
|
11
|
+
export default NativeSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SelectLayout: import("styled-components").StyledComponent<"select", any, {}, never>;
|
|
1
|
+
export declare const SelectLayout: import("styled-components").StyledComponent<"select", any, {}, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { nullOrNumber } from '@proprioo/hokkaido';
|
|
3
|
-
import { InputProps } from '../..';
|
|
4
|
-
type BaseInputProps = Omit<InputProps, 'gmap' | 'onChange' | 'type' | 'value'>;
|
|
5
|
-
export
|
|
6
|
-
onChange(value: nullOrNumber): void;
|
|
7
|
-
value?: nullOrNumber;
|
|
8
|
-
isFloat?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const NumberInput: FC<NumberInputProps>;
|
|
11
|
-
export default NumberInput;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { nullOrNumber } from '@proprioo/hokkaido';
|
|
3
|
+
import { InputProps } from '../..';
|
|
4
|
+
type BaseInputProps = Omit<InputProps, 'gmap' | 'onChange' | 'type' | 'value'>;
|
|
5
|
+
export type NumberInputProps = BaseInputProps & {
|
|
6
|
+
onChange(value: nullOrNumber): void;
|
|
7
|
+
value?: nullOrNumber;
|
|
8
|
+
isFloat?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const NumberInput: FC<NumberInputProps>;
|
|
11
|
+
export default NumberInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const cleanNumericValue: (value: string, keepTrailingComma?: boolean) => string;
|
|
2
|
-
export declare const formatDisplayValue: (value: string, asFloat: boolean) => string;
|
|
3
|
-
export declare const formatInternalValue: (value: string, isFloat: boolean) => string;
|
|
1
|
+
export declare const cleanNumericValue: (value: string, keepTrailingComma?: boolean) => string;
|
|
2
|
+
export declare const formatDisplayValue: (value: string, asFloat: boolean) => string;
|
|
3
|
+
export declare const formatInternalValue: (value: string, isFloat: boolean) => string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
export
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
option: OptionProps;
|
|
8
|
-
value: string;
|
|
9
|
-
onSelect?(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
10
|
-
}
|
|
11
|
-
export declare const isOptionSelected: (optionValue: string, value: string) => boolean;
|
|
12
|
-
declare const Option: FC<OptionFCProps>;
|
|
13
|
-
export default Option;
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
export type OptionProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type OptionFCProps = {
|
|
7
|
+
option: OptionProps;
|
|
8
|
+
value: string;
|
|
9
|
+
onSelect?(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
10
|
+
};
|
|
11
|
+
export declare const isOptionSelected: (optionValue: string, value: string) => boolean;
|
|
12
|
+
declare const Option: FC<OptionFCProps>;
|
|
13
|
+
export default Option;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
isSelected: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare const Label: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
|
|
5
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
|
|
6
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export {};
|
|
1
|
+
type SelectionOptionProps = {
|
|
2
|
+
isSelected: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const Label: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
|
|
5
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, SelectionOptionProps, never>;
|
|
6
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ChangeEvent, FC } from 'react';
|
|
2
|
-
export
|
|
3
|
-
label: string;
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
isChecked: boolean;
|
|
7
|
-
value: string;
|
|
8
|
-
dataTest?: string;
|
|
9
|
-
onChange(value: ChangeEvent<HTMLInputElement>): void;
|
|
10
|
-
}
|
|
11
|
-
declare const Radio: FC<RadioProps>;
|
|
12
|
-
export default Radio;
|
|
1
|
+
import { ChangeEvent, FC } from 'react';
|
|
2
|
+
export type RadioProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
value: string;
|
|
8
|
+
dataTest?: string;
|
|
9
|
+
onChange(value: ChangeEvent<HTMLInputElement>): void;
|
|
10
|
+
};
|
|
11
|
+
declare const Radio: FC<RadioProps>;
|
|
12
|
+
export default Radio;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const RadioLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
3
|
-
export declare const RadioButton: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
1
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const RadioLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
3
|
+
export declare const RadioButton: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React, { PureComponent, RefObject } from 'react';
|
|
2
|
-
import { OptionProps } from '../option/Option';
|
|
3
|
-
import { OptionsAlignement } from './Select.styles';
|
|
4
|
-
export
|
|
5
|
-
selectRef: RefObject<HTMLDivElement>;
|
|
6
|
-
selectedOptionRef: RefObject<HTMLDivElement>;
|
|
7
|
-
options: OptionProps[];
|
|
8
|
-
value: string;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
onClose(): void;
|
|
11
|
-
onSelect(value: OptionProps): void;
|
|
12
|
-
optionsMinWidth?: number;
|
|
13
|
-
optionsAlign?: OptionsAlignement;
|
|
14
|
-
}
|
|
15
|
-
export declare class Select extends PureComponent<SelectProps> {
|
|
16
|
-
constructor(props: SelectProps);
|
|
17
|
-
selectItem(value: OptionProps): void;
|
|
18
|
-
componentDidUpdate(): void;
|
|
19
|
-
render(): JSX.Element | null;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<Select>>;
|
|
22
|
-
export default _default;
|
|
1
|
+
import React, { PureComponent, RefObject } from 'react';
|
|
2
|
+
import { OptionProps } from '../option/Option';
|
|
3
|
+
import { OptionsAlignement } from './Select.styles';
|
|
4
|
+
export type SelectProps = {
|
|
5
|
+
selectRef: RefObject<HTMLDivElement>;
|
|
6
|
+
selectedOptionRef: RefObject<HTMLDivElement>;
|
|
7
|
+
options: OptionProps[];
|
|
8
|
+
value: string;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose(): void;
|
|
11
|
+
onSelect(value: OptionProps): void;
|
|
12
|
+
optionsMinWidth?: number;
|
|
13
|
+
optionsAlign?: OptionsAlignement;
|
|
14
|
+
};
|
|
15
|
+
export declare class Select extends PureComponent<SelectProps> {
|
|
16
|
+
constructor(props: SelectProps);
|
|
17
|
+
selectItem(value: OptionProps): void;
|
|
18
|
+
componentDidUpdate(): void;
|
|
19
|
+
render(): JSX.Element | null;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<Select>>;
|
|
22
|
+
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare enum OptionsAlignement {
|
|
2
|
-
LEFT = "left",
|
|
3
|
-
RIGHT = "right"
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
optionsMinWidth?: number;
|
|
7
|
-
optionsAlign?: OptionsAlignement;
|
|
8
|
-
}
|
|
9
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
|
|
10
|
-
export declare const ItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const ItemLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export {};
|
|
1
|
+
export declare enum OptionsAlignement {
|
|
2
|
+
LEFT = "left",
|
|
3
|
+
RIGHT = "right"
|
|
4
|
+
}
|
|
5
|
+
type LayoutProps = {
|
|
6
|
+
optionsMinWidth?: number;
|
|
7
|
+
optionsAlign?: OptionsAlignement;
|
|
8
|
+
};
|
|
9
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, LayoutProps, never>;
|
|
10
|
+
export declare const ItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const ItemLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { GenericInputProps } from '../../../utils';
|
|
3
|
-
import { InputColors } from '../inputBase/InputBaseEnum';
|
|
4
|
-
import { OptionProps } from '../option/Option';
|
|
5
|
-
import { OptionsAlignement } from '../select/Select.styles';
|
|
6
|
-
export
|
|
7
|
-
option: OptionProps | null;
|
|
8
|
-
options: OptionProps[];
|
|
9
|
-
isAutocomplete?: boolean;
|
|
10
|
-
value?: string;
|
|
11
|
-
native?: boolean;
|
|
12
|
-
outline?: InputColors;
|
|
13
|
-
optionsMinWidth?: number;
|
|
14
|
-
optionsAlign?: OptionsAlignement;
|
|
15
|
-
onSelect(option: OptionProps): void;
|
|
16
|
-
onBlur?(): void;
|
|
17
|
-
onFocus?(): void;
|
|
18
|
-
onChange?(value: string): void;
|
|
19
|
-
}
|
|
20
|
-
export declare const setIconColor: (isOpen: boolean, label: string) => string;
|
|
21
|
-
export declare const getOptionLabel: (options: OptionProps[], selectedValue: string) => string;
|
|
22
|
-
export declare const SelectWrapper: FC<SelectWrapperProps>;
|
|
23
|
-
export default SelectWrapper;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GenericInputProps } from '../../../utils';
|
|
3
|
+
import { InputColors } from '../inputBase/InputBaseEnum';
|
|
4
|
+
import { OptionProps } from '../option/Option';
|
|
5
|
+
import { OptionsAlignement } from '../select/Select.styles';
|
|
6
|
+
export type SelectWrapperProps = GenericInputProps & {
|
|
7
|
+
option: OptionProps | null;
|
|
8
|
+
options: OptionProps[];
|
|
9
|
+
isAutocomplete?: boolean;
|
|
10
|
+
value?: string;
|
|
11
|
+
native?: boolean;
|
|
12
|
+
outline?: InputColors;
|
|
13
|
+
optionsMinWidth?: number;
|
|
14
|
+
optionsAlign?: OptionsAlignement;
|
|
15
|
+
onSelect(option: OptionProps): void;
|
|
16
|
+
onBlur?(): void;
|
|
17
|
+
onFocus?(): void;
|
|
18
|
+
onChange?(value: string): void;
|
|
19
|
+
};
|
|
20
|
+
export declare const setIconColor: (isOpen: boolean, label: string) => string;
|
|
21
|
+
export declare const getOptionLabel: (options: OptionProps[], selectedValue: string) => string;
|
|
22
|
+
export declare const SelectWrapper: FC<SelectWrapperProps>;
|
|
23
|
+
export default SelectWrapper;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
disabled: boolean;
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
focused?: boolean;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, IconProps, never>;
|
|
11
|
-
export declare const SelectWrapperLayout: import("styled-components").StyledComponent<"div", any, Pick<SelectInputProps, "isOpen" | "error">, never>;
|
|
12
|
-
export declare const SelectInputLayout: import("styled-components").StyledComponent<"input", any, SelectInputProps, never>;
|
|
13
|
-
export {};
|
|
1
|
+
type SelectInputProps = {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
focused?: boolean;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type IconProps = {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, IconProps, never>;
|
|
11
|
+
export declare const SelectWrapperLayout: import("styled-components").StyledComponent<"div", any, Pick<SelectInputProps, "isOpen" | "error">, never>;
|
|
12
|
+
export declare const SelectInputLayout: import("styled-components").StyledComponent<"input", any, SelectInputProps, never>;
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export
|
|
3
|
-
text: string;
|
|
4
|
-
color?: string;
|
|
5
|
-
isAlternative?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const Subtitle: FC<SubtitleProps>;
|
|
8
|
-
export default Subtitle;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export type SubtitleProps = {
|
|
3
|
+
text: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
isAlternative?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const Subtitle: FC<SubtitleProps>;
|
|
8
|
+
export default Subtitle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const Label: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
color: string;
|
|
4
|
-
isAlternative: boolean;
|
|
5
|
-
}, never>;
|
|
1
|
+
export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Label: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
color: string;
|
|
4
|
+
isAlternative: boolean;
|
|
5
|
+
}, never>;
|
package/lib/ui/src/tag/Tag.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TagProps } from './interfaces';
|
|
3
|
-
declare const Tag: FC<TagProps>;
|
|
4
|
-
export default Tag;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TagProps } from './interfaces';
|
|
3
|
+
declare const Tag: FC<TagProps>;
|
|
4
|
+
export default Tag;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TagProps } from './interfaces';
|
|
2
|
-
|
|
3
|
-
close?: boolean;
|
|
4
|
-
icon?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const TagBase: import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
-
export declare const TAG_BUSINESS_BASE: import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
-
export declare const BasicTag: import("styled-components").StyledComponent<"span", any, Pick<TagProps, "appearance" | "color" | "isOutlined"> & TagBaseProps, never>;
|
|
9
|
-
export declare const TagCloser: import("styled-components").StyledComponent<"button", any, Pick<TagProps, "appearance">, never>;
|
|
10
|
-
export declare const TagElement: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
11
|
-
export declare const List: import("styled-components").StyledComponent<"ul", any, Pick<TagProps, "appearance" | "color" | "isOutlined">, never>;
|
|
12
|
-
export declare const TagList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
14
|
-
export {};
|
|
1
|
+
import { TagProps } from './interfaces';
|
|
2
|
+
type TagBaseProps = {
|
|
3
|
+
close?: boolean;
|
|
4
|
+
icon?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const TagBase: import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
+
export declare const TAG_BUSINESS_BASE: import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
+
export declare const BasicTag: import("styled-components").StyledComponent<"span", any, Pick<TagProps, "appearance" | "color" | "isOutlined"> & TagBaseProps, never>;
|
|
9
|
+
export declare const TagCloser: import("styled-components").StyledComponent<"button", any, Pick<TagProps, "appearance">, never>;
|
|
10
|
+
export declare const TagElement: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
11
|
+
export declare const List: import("styled-components").StyledComponent<"ul", any, Pick<TagProps, "appearance" | "color" | "isOutlined">, never>;
|
|
12
|
+
export declare const TagList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
14
|
+
export {};
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
export declare const TagColors: {
|
|
2
|
-
BLUE: {
|
|
3
|
-
color: string;
|
|
4
|
-
background: string;
|
|
5
|
-
colorOutlined: string;
|
|
6
|
-
backgroundOutlined: string;
|
|
7
|
-
};
|
|
8
|
-
BLUE_LIGHT: {
|
|
9
|
-
color: string;
|
|
10
|
-
background: string;
|
|
11
|
-
colorOutlined: string;
|
|
12
|
-
backgroundOutlined: string;
|
|
13
|
-
};
|
|
14
|
-
GREY: {
|
|
15
|
-
color: string;
|
|
16
|
-
background: string;
|
|
17
|
-
colorOutlined: string;
|
|
18
|
-
backgroundOutlined: string;
|
|
19
|
-
};
|
|
20
|
-
GREY_LIGHT: {
|
|
21
|
-
color: string;
|
|
22
|
-
background: string;
|
|
23
|
-
colorOutlined: string;
|
|
24
|
-
backgroundOutlined: string;
|
|
25
|
-
};
|
|
26
|
-
GREEN: {
|
|
27
|
-
color: string;
|
|
28
|
-
background: string;
|
|
29
|
-
colorOutlined: string;
|
|
30
|
-
backgroundOutlined: string;
|
|
31
|
-
};
|
|
32
|
-
GREEN_LIGHT: {
|
|
33
|
-
color: string;
|
|
34
|
-
background: string;
|
|
35
|
-
colorOutlined: string;
|
|
36
|
-
backgroundOutlined: string;
|
|
37
|
-
};
|
|
38
|
-
ORANGE: {
|
|
39
|
-
color: string;
|
|
40
|
-
background: string;
|
|
41
|
-
colorOutlined: string;
|
|
42
|
-
backgroundOutlined: string;
|
|
43
|
-
};
|
|
44
|
-
ORANGE_LIGHT: {
|
|
45
|
-
color: string;
|
|
46
|
-
background: string;
|
|
47
|
-
colorOutlined: string;
|
|
48
|
-
backgroundOutlined: string;
|
|
49
|
-
};
|
|
50
|
-
ORANGE_LIGHTER: {
|
|
51
|
-
color: string;
|
|
52
|
-
background: string;
|
|
53
|
-
colorOutlined: string;
|
|
54
|
-
backgroundOutlined: string;
|
|
55
|
-
};
|
|
56
|
-
RED: {
|
|
57
|
-
color: string;
|
|
58
|
-
background: string;
|
|
59
|
-
colorOutlined: string;
|
|
60
|
-
backgroundOutlined: string;
|
|
61
|
-
};
|
|
62
|
-
RED_LIGHT: {
|
|
63
|
-
color: string;
|
|
64
|
-
background: string;
|
|
65
|
-
colorOutlined: string;
|
|
66
|
-
backgroundOutlined: string;
|
|
67
|
-
};
|
|
68
|
-
TERRACOTA: {
|
|
69
|
-
color: string;
|
|
70
|
-
background: string;
|
|
71
|
-
colorOutlined: string;
|
|
72
|
-
backgroundOutlined: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
1
|
+
export declare const TagColors: {
|
|
2
|
+
BLUE: {
|
|
3
|
+
color: string;
|
|
4
|
+
background: string;
|
|
5
|
+
colorOutlined: string;
|
|
6
|
+
backgroundOutlined: string;
|
|
7
|
+
};
|
|
8
|
+
BLUE_LIGHT: {
|
|
9
|
+
color: string;
|
|
10
|
+
background: string;
|
|
11
|
+
colorOutlined: string;
|
|
12
|
+
backgroundOutlined: string;
|
|
13
|
+
};
|
|
14
|
+
GREY: {
|
|
15
|
+
color: string;
|
|
16
|
+
background: string;
|
|
17
|
+
colorOutlined: string;
|
|
18
|
+
backgroundOutlined: string;
|
|
19
|
+
};
|
|
20
|
+
GREY_LIGHT: {
|
|
21
|
+
color: string;
|
|
22
|
+
background: string;
|
|
23
|
+
colorOutlined: string;
|
|
24
|
+
backgroundOutlined: string;
|
|
25
|
+
};
|
|
26
|
+
GREEN: {
|
|
27
|
+
color: string;
|
|
28
|
+
background: string;
|
|
29
|
+
colorOutlined: string;
|
|
30
|
+
backgroundOutlined: string;
|
|
31
|
+
};
|
|
32
|
+
GREEN_LIGHT: {
|
|
33
|
+
color: string;
|
|
34
|
+
background: string;
|
|
35
|
+
colorOutlined: string;
|
|
36
|
+
backgroundOutlined: string;
|
|
37
|
+
};
|
|
38
|
+
ORANGE: {
|
|
39
|
+
color: string;
|
|
40
|
+
background: string;
|
|
41
|
+
colorOutlined: string;
|
|
42
|
+
backgroundOutlined: string;
|
|
43
|
+
};
|
|
44
|
+
ORANGE_LIGHT: {
|
|
45
|
+
color: string;
|
|
46
|
+
background: string;
|
|
47
|
+
colorOutlined: string;
|
|
48
|
+
backgroundOutlined: string;
|
|
49
|
+
};
|
|
50
|
+
ORANGE_LIGHTER: {
|
|
51
|
+
color: string;
|
|
52
|
+
background: string;
|
|
53
|
+
colorOutlined: string;
|
|
54
|
+
backgroundOutlined: string;
|
|
55
|
+
};
|
|
56
|
+
RED: {
|
|
57
|
+
color: string;
|
|
58
|
+
background: string;
|
|
59
|
+
colorOutlined: string;
|
|
60
|
+
backgroundOutlined: string;
|
|
61
|
+
};
|
|
62
|
+
RED_LIGHT: {
|
|
63
|
+
color: string;
|
|
64
|
+
background: string;
|
|
65
|
+
colorOutlined: string;
|
|
66
|
+
backgroundOutlined: string;
|
|
67
|
+
};
|
|
68
|
+
TERRACOTA: {
|
|
69
|
+
color: string;
|
|
70
|
+
background: string;
|
|
71
|
+
colorOutlined: string;
|
|
72
|
+
backgroundOutlined: string;
|
|
73
|
+
};
|
|
74
|
+
};
|