@fattureincloud/fic-design-system 0.7.45-tmp-react-18 → 0.7.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common/components/typography/types.d.ts +3 -3
- package/dist/common/hooks/useOutsideClick.d.ts +1 -1
- package/dist/common/hooks/useUpDownKeyNavigation.d.ts +2 -2
- package/dist/common/types/colorsPalette.d.ts +1 -1
- package/dist/common/types/dateTypes.d.ts +2 -2
- package/dist/components/accordions/types.d.ts +1 -1
- package/dist/components/avatar/types.d.ts +2 -2
- package/dist/components/badge/badge.stories.d.ts +2 -2
- package/dist/components/badge/types.d.ts +3 -3
- package/dist/components/banner/banner.stories.d.ts +2 -2
- package/dist/components/banner/types.d.ts +1 -1
- package/dist/components/buttons/button/button.stories.d.ts +2 -2
- package/dist/components/buttons/button/buttonPalette.d.ts +3 -3
- package/dist/components/buttons/button/types.d.ts +5 -5
- package/dist/components/buttons/iconButton/iconButton.stories.d.ts +0 -4
- package/dist/components/buttons/iconButton/iconButtonPalette.d.ts +3 -3
- package/dist/components/buttons/iconButton/types.d.ts +4 -4
- package/dist/components/buttons/iconButton/utils.d.ts +1 -1
- package/dist/components/card/card.stories.d.ts +2 -2
- package/dist/components/card/types.d.ts +5 -5
- package/dist/components/chip/chip.stories.d.ts +3 -3
- package/dist/components/chip/types.d.ts +1 -1
- package/dist/components/circularProgressBar/types.d.ts +1 -1
- package/dist/components/closableCard/ClosableCard.d.ts +4 -0
- package/dist/components/closableCard/closableCard.stories.d.ts +6 -0
- package/dist/components/closableCard/closableCardPalette.d.ts +3 -0
- package/dist/components/closableCard/index.d.ts +3 -0
- package/dist/components/closableCard/styled.d.ts +5 -0
- package/dist/components/closableCard/types.d.ts +13 -0
- package/dist/components/drawer/utils.d.ts +1 -1
- package/dist/components/dropdown/dropdownPalette.d.ts +1 -1
- package/dist/components/dropdown/types.d.ts +7 -6
- package/dist/components/floatingBadge/floatingBadge.stories.d.ts +2 -2
- package/dist/components/floatingBadge/types.d.ts +2 -2
- package/dist/components/form/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/form/checkbox/checkbox.stories.d.ts +3 -3
- package/dist/components/form/checkbox/types.d.ts +4 -3
- package/dist/components/form/checkbox/utils.d.ts +1 -1
- package/dist/components/form/common/types.d.ts +2 -2
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +1 -1
- package/dist/components/form/datepicker/datePickerPalette.d.ts +3 -3
- package/dist/components/form/datepicker/datepicker.stories.d.ts +3 -3
- package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +13 -0
- package/dist/components/form/datepicker/hooks/useFormattedDate.d.ts +3 -3
- package/dist/components/form/datepicker/types.d.ts +5 -5
- package/dist/components/form/fileUploader/FileUploader.d.ts +1 -1
- package/dist/components/form/fileUploader/components/FileUploaderContent.d.ts +2 -2
- package/dist/components/form/fileUploader/fileUploader.stories.d.ts +2 -2
- package/dist/components/form/fileUploader/fileUploaderPalette.d.ts +4 -4
- package/dist/components/form/fileUploader/hooks/useCustomPalette.d.ts +1 -1
- package/dist/components/form/fileUploader/types.d.ts +8 -8
- package/dist/components/form/inputHelper/InputHelper.d.ts +2 -2
- package/dist/components/form/inputHelper/hooks/useHelperIcon.d.ts +1 -1
- package/dist/components/form/inputHelper/inputHelper.stories.d.ts +2 -2
- package/dist/components/form/inputHelper/inputHelperPalette.d.ts +1 -1
- package/dist/components/form/inputHelper/types.d.ts +1 -1
- package/dist/components/form/inputText/components/InputElement.d.ts +3 -3
- package/dist/components/form/inputText/components/codeInput/CodeInput.d.ts +4 -0
- package/dist/components/form/inputText/components/codeInput/styled.d.ts +29 -0
- package/dist/components/form/inputText/components/codeInput/useCodeInputHooks.d.ts +11 -0
- package/dist/components/form/inputText/components/telephoneInput/TelephoneInput.d.ts +4 -0
- package/dist/components/form/inputText/components/telephoneInput/countriesTelephonePrefixes.d.ts +7 -0
- package/dist/components/form/inputText/components/telephoneInput/styled.d.ts +2 -0
- package/dist/components/form/inputText/countriesTelephonePrefixes.d.ts +1 -1
- package/dist/components/form/inputText/hooks/useCodeInputHooks.d.ts +1 -1
- package/dist/components/form/inputText/inputText.stories.d.ts +5 -5
- package/dist/components/form/inputText/inputTextPalette.d.ts +2 -2
- package/dist/components/form/inputText/types.d.ts +6 -6
- package/dist/components/form/label/types.d.ts +1 -1
- package/dist/components/form/radio/radio.stories.d.ts +3 -3
- package/dist/components/form/radio/types.d.ts +3 -3
- package/dist/components/form/radioGroup/radioGroup.stories.d.ts +2 -2
- package/dist/components/form/radioGroup/types.d.ts +1 -1
- package/dist/components/form/select/Select.d.ts +1 -1
- package/dist/components/form/select/SelectWrapper.d.ts +2 -2
- package/dist/components/form/select/components/ClearIndicator.d.ts +2 -2
- package/dist/components/form/select/components/Control.d.ts +1 -1
- package/dist/components/form/select/components/DropdownIndicator.d.ts +1 -1
- package/dist/components/form/select/components/MenuList.d.ts +1 -1
- package/dist/components/form/select/components/SingleValue.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectGeneric.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectSimpleValue.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectThemeStyles.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectValue.d.ts +2 -2
- package/dist/components/form/select/index.d.ts +1 -1
- package/dist/components/form/select/select.stories.d.ts +4 -4
- package/dist/components/form/select/selectPalette.d.ts +1 -1
- package/dist/components/form/select/types.d.ts +5 -5
- package/dist/components/form/textArea/TextArea.d.ts +3 -3
- package/dist/components/form/textArea/components/TextAreaElement.d.ts +2 -2
- package/dist/components/form/textArea/textArea.stories.d.ts +2 -2
- package/dist/components/form/textArea/textAreaPalette.d.ts +1 -1
- package/dist/components/form/textArea/types.d.ts +1 -1
- package/dist/components/graphic/Graphic.d.ts +4 -0
- package/dist/components/graphic/components/ChartLegend.d.ts +9 -0
- package/dist/components/graphic/components/GraphButton.d.ts +8 -0
- package/dist/components/graphic/components/GraphIndicators.d.ts +14 -0
- package/dist/components/graphic/graphic.stories.d.ts +7 -0
- package/dist/components/graphic/index.d.ts +2 -0
- package/dist/components/graphic/stories/data.d.ts +2 -0
- package/dist/components/graphic/stories/styled.d.ts +4 -0
- package/dist/components/graphic/styled.d.ts +3 -0
- package/dist/components/graphic/types.d.ts +52 -0
- package/dist/components/graphic/utils.d.ts +6 -0
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/icon/components/iconBackground/iconBackgroundPalette.d.ts +1 -1
- package/dist/components/icon/components/iconBackground/utils.d.ts +1 -1
- package/dist/components/icon/iconPalette.d.ts +4 -4
- package/dist/components/inlineMessage/inlineMessage.stories.d.ts +2 -2
- package/dist/components/inlineMessage/types.d.ts +2 -2
- package/dist/components/layout/sidebarItem/sidebarItem.stories.d.ts +3 -3
- package/dist/components/layout/sidebarItem/types.d.ts +4 -4
- package/dist/components/microTag/microTagPalette.d.ts +3 -3
- package/dist/components/microTag/types.d.ts +1 -1
- package/dist/components/modals/components/ModalSearchable.d.ts +3 -3
- package/dist/components/modals/index.d.ts +0 -2
- package/dist/components/modals/modalStyled.d.ts +1 -1
- package/dist/components/modals/stepModal/components/styled.d.ts +1 -1
- package/dist/components/modals/stepModal/components/utils.d.ts +1 -1
- package/dist/components/modals/stepModal/types.d.ts +10 -10
- package/dist/components/modals/styleCreators/styledModalBoxWidth.d.ts +1 -1
- package/dist/components/modals/types.d.ts +13 -14
- package/dist/components/monthlyTab/types.d.ts +4 -4
- package/dist/components/newTable/Table.d.ts +2 -1
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +1 -0
- package/dist/components/newTable/components/action/favorite/styled.d.ts +1 -0
- package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/ColumnItem.d.ts +1 -1
- package/dist/components/newTable/components/body/Body.d.ts +3 -1
- package/dist/components/newTable/components/cell/Cell.d.ts +2 -1
- package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +2 -1
- package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +3 -2
- package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +1 -1
- package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +1 -1
- package/dist/components/newTable/components/cell/styled.d.ts +3 -1
- package/dist/components/newTable/components/header/Header.d.ts +2 -1
- package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +4 -2
- package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +2 -1
- package/dist/components/newTable/components/header/styled.d.ts +1 -0
- package/dist/components/newTable/components/row/LoadingRow.d.ts +9 -0
- package/dist/components/newTable/components/row/Row.d.ts +2 -1
- package/dist/components/newTable/hooks/useColumnPinning.d.ts +1 -1
- package/dist/components/newTable/index.d.ts +1 -1
- package/dist/components/newTable/table.stories.d.ts +2 -2
- package/dist/components/newTable/types.d.ts +22 -20
- package/dist/components/newTable/utils.d.ts +2 -2
- package/dist/components/oldTable/components/checkboxes/Cell.d.ts +1 -1
- package/dist/components/oldTable/components/tableParts/TableTd.d.ts +1 -1
- package/dist/components/oldTable/components/tableParts/TableTh.d.ts +1 -1
- package/dist/components/oldTable/hooks/useTableHooks.d.ts +1 -1
- package/dist/components/oldTable/stories/components/Role.d.ts +1 -1
- package/dist/components/oldTable/table.stories.d.ts +2 -2
- package/dist/components/oldTable/tablePalette.d.ts +6 -6
- package/dist/components/oldTable/types.d.ts +3 -3
- package/dist/components/pagination/pagination.stories.d.ts +3 -3
- package/dist/components/pagination/types.d.ts +4 -4
- package/dist/components/progressbar/progressbar.stories.d.ts +2 -2
- package/dist/components/progressbar/types.d.ts +1 -1
- package/dist/components/segmentButton/segmentButton.stories.d.ts +2 -2
- package/dist/components/segmentButton/styled.d.ts +1 -1
- package/dist/components/segmentButton/types.d.ts +3 -3
- package/dist/components/stepper/components/StepItem.d.ts +1 -1
- package/dist/components/stepper/stepperPalette.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/table/components/ActionsCell.d.ts +10 -0
- package/dist/components/table/components/SortIndicator.d.ts +6 -0
- package/dist/components/table/components/TableBody.d.ts +14 -0
- package/dist/components/table/components/TableFoot.d.ts +2 -0
- package/dist/components/table/components/TableHeader.d.ts +7 -0
- package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +7 -0
- package/dist/components/table/components/tableBody/styled.d.ts +3 -0
- package/dist/components/tabs/common/Item.d.ts +2 -1
- package/dist/components/tabs/common/types.d.ts +2 -1
- package/dist/components/tabs/tabs.stories.d.ts +4 -3
- package/dist/components/tag/tagPalette.d.ts +5 -5
- package/dist/components/tip/tip.stories.d.ts +3 -3
- package/dist/components/tip/types.d.ts +3 -3
- package/dist/components/toast/styled.d.ts +2 -3
- package/dist/components/toast/toast.stories.d.ts +4 -4
- package/dist/components/toast/types.d.ts +3 -3
- package/dist/components/toast/typings/toast.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +4 -1
- package/dist/components/tooltip/styled.d.ts +4 -0
- package/dist/components/tooltip/tooltip.stories.d.ts +7 -5
- package/dist/components/tooltip/tooltipPalette.d.ts +2 -2
- package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +1 -1
- package/dist/components/verticalTab/index.d.ts +2 -2
- package/dist/index.css +128 -0
- package/dist/index.d.ts +45 -37
- package/dist/index.esm.css +128 -0
- package/dist/index.esm.js +14 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/styles/defaultPalette/colors/azure.d.ts +2 -0
- package/dist/styles/defaultPalette/colors/purple.d.ts +2 -0
- package/dist/styles/theme.d.ts +2 -0
- package/dist/styles/types.d.ts +11 -11
- package/package.json +61 -67
- package/dist/components/accordion-new/Accordion.d.ts +0 -12
- package/dist/components/accordion-new/accordion-new.stories.d.ts +0 -4
- package/dist/components/accordion-new/components/AccordionIcon.d.ts +0 -3
- package/dist/components/accordion-new/components/AccordionItem.d.ts +0 -3
- package/dist/components/accordion-new/components/styled.d.ts +0 -8
- package/dist/components/accordion-new/index.d.ts +0 -3
- package/dist/components/accordion-new/types.d.ts +0 -58
- package/dist/components/accordion-new/utils.d.ts +0 -10
- package/dist/components/checkbox/Checkbox.d.ts +0 -15
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
- package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
- package/dist/components/checkbox/components/Input.d.ts +0 -9
- package/dist/components/checkbox/components/Label.d.ts +0 -8
- package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
- package/dist/components/checkbox/index.d.ts +0 -4
- package/dist/components/checkbox/types.d.ts +0 -19
- package/dist/components/checkbox/utils.d.ts +0 -24
- package/dist/components/form/fileUploader/fileTypes.d.ts +0 -3
- package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
- package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
- package/dist/components/form/select/components/types.d.ts +0 -10
- package/dist/components/inputText/components/icons.d.ts +0 -8
- package/dist/components/inputText/components/inputContainer.d.ts +0 -1
- package/dist/components/inputText/components/messages.d.ts +0 -2
- package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
- package/dist/components/inputText/icons.d.ts +0 -9
- package/dist/components/inputText/index.d.ts +0 -3
- package/dist/components/inputText/inputText.stories.d.ts +0 -1
- package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
- package/dist/components/inputText/sideText.d.ts +0 -6
- package/dist/components/inputText/typings/enums.d.ts +0 -17
- package/dist/components/inputText/typings/inputText.d.ts +0 -43
- package/dist/components/inputText/utils.d.ts +0 -8
- package/dist/components/select/hooks/constants.d.ts +0 -4613
- package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
- package/dist/components/select/index.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -1
- package/dist/components/select/typings/select.d.ts +0 -22
- package/dist/components/stepBar/components/singleStep.d.ts +0 -3
- package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
- package/dist/components/stepBar/index.d.ts +0 -2
- package/dist/components/stepBar/stepBar.d.ts +0 -7
- package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
- package/dist/components/stepBar/types.d.ts +0 -15
- package/dist/components/table/components/actionLink.d.ts +0 -3
- package/dist/components/table/components/actions/actionsContainer.d.ts +0 -1
- package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
- package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
- package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
- package/dist/components/table/components/components/headDesktop.d.ts +0 -15
- package/dist/components/table/components/components/listMobile.d.ts +0 -15
- package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
- package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
- package/dist/components/table/components/customizationModal/index.d.ts +0 -2
- package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
- package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
- package/dist/components/table/components/emptySet.d.ts +0 -10
- package/dist/components/table/components/linearBackground.d.ts +0 -1
- package/dist/components/table/components/loadingContent.d.ts +0 -7
- package/dist/components/table/components/sortIcon.d.ts +0 -2
- package/dist/components/table/components/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/unstyledTable.d.ts +0 -11
- package/dist/components/table/typings/main.d.ts +0 -92
- package/dist/components/table/utils/configPersistency.d.ts +0 -14
- package/dist/components/textButton/TextButton.d.ts +0 -12
- package/dist/components/textButton/index.d.ts +0 -2
- package/dist/components/textButton/textButton.stories.d.ts +0 -1
- package/dist/components/tooltips/components/message.d.ts +0 -12
- package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
- package/dist/components/tooltips/index.d.ts +0 -2
- package/dist/components/tooltips/tooltips.d.ts +0 -15
- package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
- package/dist/components/tooltips/types.d.ts +0 -25
- package/dist/styles/elevations.d.ts +0 -7
- package/dist/utils/FICNumbers.d.ts +0 -11
- /package/dist/components/table/{table.d.ts → Table.d.ts} +0 -0
- /package/dist/components/table/components/{pagination.d.ts → Pagination.d.ts} +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
3
3
|
import { colors } from '../../../styles/types';
|
4
4
|
import { paletteColor } from '../../../styles/types';
|
5
|
-
export type TextProps = {
|
5
|
+
export declare type TextProps = {
|
6
6
|
bold?: boolean;
|
7
7
|
centered?: boolean;
|
8
8
|
children: React.ReactNode | React.ReactNode[] | undefined | null;
|
@@ -12,10 +12,10 @@ export type TextProps = {
|
|
12
12
|
type?: 'date' | 'currency';
|
13
13
|
style?: React.CSSProperties;
|
14
14
|
};
|
15
|
-
export type MapTextColorParams = {
|
15
|
+
export declare type MapTextColorParams = {
|
16
16
|
color?: TextProps['color'];
|
17
17
|
theme: DefaultTheme;
|
18
18
|
};
|
19
|
-
export type MapTextColorReturn = {
|
19
|
+
export declare type MapTextColorReturn = {
|
20
20
|
color: paletteColor | undefined;
|
21
21
|
};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
declare const useOutsideClick: (ref: React.MutableRefObject<HTMLDivElement | null>, showComponent?: boolean, closeAction?: () => void) => void;
|
2
|
+
declare const useOutsideClick: (ref: React.MutableRefObject<HTMLDivElement | null>, showComponent?: boolean | undefined, closeAction?: (() => void) | undefined) => void;
|
3
3
|
export default useOutsideClick;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
type Callback = (index: number) => void;
|
3
|
-
type ReturnType = [number, Dispatch<SetStateAction<number>>, boolean];
|
2
|
+
declare type Callback = (index: number) => void;
|
3
|
+
declare type ReturnType = [number, Dispatch<SetStateAction<number>>, boolean];
|
4
4
|
/**
|
5
5
|
* Manage the Up and Down key to scroll through lists/table rows/dropdown options
|
6
6
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const dateFormatsArray: [string, ...string[]];
|
2
2
|
export declare const timeFormat = "HH:mm:ss";
|
3
3
|
export declare const datetimeFormatsArray: [string, ...string[]];
|
4
|
-
export type DateFormat = typeof dateFormatsArray[number];
|
5
|
-
export type DateFormats = [DateFormat, ...DateFormat[]];
|
4
|
+
export declare type DateFormat = typeof dateFormatsArray[number];
|
5
|
+
export declare type DateFormats = [DateFormat, ...DateFormat[]];
|
@@ -10,7 +10,7 @@ interface Props {
|
|
10
10
|
}>;
|
11
11
|
showBodyAtFirstRender?: boolean;
|
12
12
|
}
|
13
|
-
export type TAccordion = React.FunctionComponent<Props>;
|
13
|
+
export declare type TAccordion = React.FunctionComponent<Props>;
|
14
14
|
export interface UnstyledAccordionProps extends Props {
|
15
15
|
}
|
16
16
|
export interface UnstyledAccordionState {
|
@@ -2,7 +2,7 @@ import { MouseEvent } from 'react';
|
|
2
2
|
import { CSSObject } from 'styled-components';
|
3
3
|
import { paletteColor } from '../../styles/types';
|
4
4
|
import { IconProps } from '../icon';
|
5
|
-
export type AvatarProps = {
|
5
|
+
export declare type AvatarProps = {
|
6
6
|
backgroundColor?: paletteColor;
|
7
7
|
className?: string;
|
8
8
|
icon?: IconProps;
|
@@ -15,6 +15,6 @@ export type AvatarProps = {
|
|
15
15
|
text?: string;
|
16
16
|
textColor?: paletteColor;
|
17
17
|
};
|
18
|
-
export type AvatarContainerProps = Pick<AvatarProps, 'backgroundColor' | 'image' | 'onClick' | 'placeholder' | 'size' | 'textColor'> & {
|
18
|
+
export declare type AvatarContainerProps = Pick<AvatarProps, 'backgroundColor' | 'image' | 'onClick' | 'placeholder' | 'size' | 'textColor'> & {
|
19
19
|
textLenght: number;
|
20
20
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import React from 'react';
|
3
3
|
import { BadgeProps } from './';
|
4
|
-
export declare const Template:
|
4
|
+
export declare const Template: Story<BadgeProps>;
|
5
5
|
export declare const Normal: () => React.JSX.Element;
|
6
6
|
export declare const Advanced: () => React.JSX.Element;
|
7
7
|
declare const BadgeStories: Meta<BadgeProps>;
|
@@ -17,10 +17,10 @@ export declare enum BadgeType {
|
|
17
17
|
WARNING = "warning",
|
18
18
|
SUCCESS = "success"
|
19
19
|
}
|
20
|
-
export type BadgeParams = 'color' | 'backgroundColor';
|
21
|
-
export type BadgeParts = {
|
20
|
+
export declare type BadgeParams = 'color' | 'backgroundColor';
|
21
|
+
export declare type BadgeParts = {
|
22
22
|
[key in BadgeParams]: paletteColor;
|
23
23
|
};
|
24
|
-
export type BadgePalette = {
|
24
|
+
export declare type BadgePalette = {
|
25
25
|
[key in BadgeType]: BadgeParts;
|
26
26
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { BannerProps } from './types';
|
3
|
-
export declare const Template:
|
3
|
+
export declare const Template: Story<BannerProps>;
|
4
4
|
declare const BannerStories: Meta<BannerProps>;
|
5
5
|
export default BannerStories;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { ButtonProps } from '../index';
|
3
|
-
export declare const Template:
|
3
|
+
export declare const Template: Story<ButtonProps>;
|
4
4
|
declare const ButtonStories: Meta<ButtonProps>;
|
5
5
|
export default ButtonStories;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { paletteColor } from '../../../styles/types';
|
2
2
|
import { buttonColors, buttonParts, buttonSizes, buttonTypes } from './types';
|
3
|
-
export type ButtonParts = {
|
3
|
+
export declare type ButtonParts = {
|
4
4
|
[k in buttonParts]: paletteColor;
|
5
5
|
};
|
6
|
-
type ButtonMappedNormalColors = {
|
6
|
+
declare type ButtonMappedNormalColors = {
|
7
7
|
[key in buttonColors]: ButtonParts;
|
8
8
|
};
|
9
9
|
interface ButtonMappedColors extends ButtonMappedNormalColors {
|
10
10
|
disabled: ButtonParts;
|
11
11
|
}
|
12
|
-
type ButtonMappedTypes = {
|
12
|
+
declare type ButtonMappedTypes = {
|
13
13
|
[k in buttonTypes]: ButtonMappedColors;
|
14
14
|
};
|
15
15
|
export interface ButtonPalette extends ButtonMappedTypes {
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
2
|
import { ButtonParts } from './buttonPalette';
|
3
3
|
export declare const buttonSizesArray: readonly ["large", "medium"];
|
4
|
-
export type buttonSizes = typeof buttonSizesArray[number];
|
4
|
+
export declare type buttonSizes = typeof buttonSizesArray[number];
|
5
5
|
export declare const buttonTypesArray: readonly ["primary", "secondary", "text"];
|
6
|
-
export type buttonTypes = typeof buttonTypesArray[number];
|
6
|
+
export declare type buttonTypes = typeof buttonTypesArray[number];
|
7
7
|
export declare const buttonColorsArray: readonly ["blue", "red", "green", "grey", "yellow"];
|
8
|
-
export type buttonColors = typeof buttonColorsArray[number];
|
8
|
+
export declare type buttonColors = typeof buttonColorsArray[number];
|
9
9
|
export declare const buttonDisableColorArray: readonly ["disabled"];
|
10
|
-
export type buttonDisableColor = typeof buttonDisableColorArray[number];
|
10
|
+
export declare type buttonDisableColor = typeof buttonDisableColorArray[number];
|
11
11
|
export declare const buttonPartsArray: readonly ["normal", "hover", "active", "text", "textHover"];
|
12
|
-
export type buttonParts = typeof buttonPartsArray[number];
|
12
|
+
export declare type buttonParts = typeof buttonPartsArray[number];
|
13
13
|
export interface WrapperProps {
|
14
14
|
isDisabled: boolean;
|
15
15
|
fullWidth?: boolean;
|
@@ -1,6 +1,2 @@
|
|
1
|
-
import { Meta } from '@storybook/react';
|
2
1
|
import React from 'react';
|
3
|
-
import { IconButtonProps } from './IconButton';
|
4
2
|
export declare const WithKnobs: () => React.JSX.Element;
|
5
|
-
declare const IconButtonStories: Meta<IconButtonProps>;
|
6
|
-
export default IconButtonStories;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { paletteColor } from '../../../styles/types';
|
2
2
|
import { iconButtonColors, iconButtonParts, iconButtonTypes } from './types';
|
3
|
-
export type IconButtonParts = {
|
3
|
+
export declare type IconButtonParts = {
|
4
4
|
[key in iconButtonParts]: paletteColor;
|
5
5
|
};
|
6
|
-
type IconButtonMappedNormalColors = {
|
6
|
+
declare type IconButtonMappedNormalColors = {
|
7
7
|
[key in iconButtonColors]: IconButtonParts;
|
8
8
|
};
|
9
9
|
interface IconButtonMappedColors extends IconButtonMappedNormalColors {
|
10
10
|
disabled: IconButtonParts;
|
11
11
|
}
|
12
|
-
type IconButtonMappedTypes = {
|
12
|
+
declare type IconButtonMappedTypes = {
|
13
13
|
[k in iconButtonTypes]: IconButtonMappedColors;
|
14
14
|
};
|
15
15
|
export interface IconButtonPalette extends IconButtonMappedTypes {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare const iconButtonTypesArray: readonly ["primary", "secondary"];
|
2
|
-
export type iconButtonTypes = typeof iconButtonTypesArray[number];
|
2
|
+
export declare type iconButtonTypes = typeof iconButtonTypesArray[number];
|
3
3
|
export declare const iconButtonColorsArray: readonly ["blue", "red", "green", "yellow"];
|
4
|
-
export type iconButtonColors = typeof iconButtonColorsArray[number];
|
4
|
+
export declare type iconButtonColors = typeof iconButtonColorsArray[number];
|
5
5
|
export declare const iconButtonDisableColorArray: readonly ["disabled"];
|
6
|
-
export type iconButtonDisableColor = typeof iconButtonDisableColorArray[number];
|
6
|
+
export declare type iconButtonDisableColor = typeof iconButtonDisableColorArray[number];
|
7
7
|
export declare const iconButtonPartsArray: readonly ["normal", "hover"];
|
8
|
-
export type iconButtonParts = typeof iconButtonPartsArray[number];
|
8
|
+
export declare type iconButtonParts = typeof iconButtonPartsArray[number];
|
@@ -4,6 +4,6 @@ import { IconButtonParts } from './iconButtonPalette';
|
|
4
4
|
interface GetIconButtonColorsParams extends WrapperProps {
|
5
5
|
theme: DefaultTheme;
|
6
6
|
}
|
7
|
-
type getIconButtonColorsType = (params: GetIconButtonColorsParams) => IconButtonParts;
|
7
|
+
declare type getIconButtonColorsType = (params: GetIconButtonColorsParams) => IconButtonParts;
|
8
8
|
export declare const getIconButtonColors: getIconButtonColorsType;
|
9
9
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { CardProps } from './types';
|
3
|
-
export declare const CardExample:
|
3
|
+
export declare const CardExample: Story<CardProps>;
|
4
4
|
declare const CardStories: Meta<CardProps>;
|
5
5
|
export default CardStories;
|
@@ -17,24 +17,24 @@ export declare enum CardElevation {
|
|
17
17
|
LOW = 1,
|
18
18
|
HIGH = 2
|
19
19
|
}
|
20
|
-
export type StyledCardProps = {
|
20
|
+
export declare type StyledCardProps = {
|
21
21
|
color?: CardColor;
|
22
22
|
elevation?: CardElevation;
|
23
23
|
type?: CardType;
|
24
24
|
};
|
25
|
-
export type CardProps = StyledCardProps & {
|
25
|
+
export declare type CardProps = StyledCardProps & {
|
26
26
|
children: React.ReactNode | React.ReactNode[];
|
27
27
|
className?: string;
|
28
28
|
style?: CSSProperties;
|
29
29
|
};
|
30
|
-
type CardPaletteAttributes = {
|
30
|
+
declare type CardPaletteAttributes = {
|
31
31
|
background: paletteColor;
|
32
32
|
border: paletteColor;
|
33
33
|
};
|
34
|
-
type CardPaletteTypes = {
|
34
|
+
declare type CardPaletteTypes = {
|
35
35
|
[k in CardType]: CardPaletteAttributes;
|
36
36
|
};
|
37
|
-
export type CardPalette = {
|
37
|
+
export declare type CardPalette = {
|
38
38
|
[k in CardColor]: CardPaletteTypes;
|
39
39
|
};
|
40
40
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { ChipProps } from './types';
|
3
|
-
export declare const Template:
|
4
|
-
export declare const WithIcon:
|
3
|
+
export declare const Template: Story<ChipProps>;
|
4
|
+
export declare const WithIcon: Story<ChipProps>;
|
5
5
|
declare const ChipStories: Meta<ChipProps>;
|
6
6
|
export default ChipStories;
|
@@ -10,7 +10,7 @@ export declare enum CircularProgressBarType {
|
|
10
10
|
WARNING = "warning",
|
11
11
|
ERROR = "error"
|
12
12
|
}
|
13
|
-
export type CircularProgressBarPalette = {
|
13
|
+
export declare type CircularProgressBarPalette = {
|
14
14
|
[key in CircularProgressBarType]: {
|
15
15
|
path: paletteColor;
|
16
16
|
trail: paletteColor;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
|
+
import { ComponentProps } from 'react';
|
3
|
+
import { ClosableCard, ClosableCardProps } from './index';
|
4
|
+
export declare const Template: Story<ClosableCardProps>;
|
5
|
+
declare const ClosableCardStories: Meta<ComponentProps<typeof ClosableCard>>;
|
6
|
+
export default ClosableCardStories;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const Title: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const Subtitle: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
5
|
+
export declare const CloseIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
import { paletteColor } from '../../styles/types';
|
3
|
+
export interface ClosableCardProps {
|
4
|
+
title: string;
|
5
|
+
subtitle?: string;
|
6
|
+
renderSubtitleElement?: () => ReactElement;
|
7
|
+
onClose?: () => void;
|
8
|
+
className?: string;
|
9
|
+
}
|
10
|
+
export declare type ClosableCardPalette = {
|
11
|
+
background: paletteColor;
|
12
|
+
border: paletteColor;
|
13
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare const showHandler: (show?: boolean) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
1
|
+
export declare const showHandler: (show?: boolean | undefined) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
@@ -4,7 +4,7 @@ import { DropdownItemType } from './types';
|
|
4
4
|
interface ItemColors extends colorsPalette {
|
5
5
|
hoverBackground: paletteColor;
|
6
6
|
}
|
7
|
-
type NotActiveItemPalette = {
|
7
|
+
declare type NotActiveItemPalette = {
|
8
8
|
[k in DropdownItemType]: ItemColors;
|
9
9
|
};
|
10
10
|
interface ItemPalette {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Placement } from '@popperjs/core/lib/enums';
|
2
2
|
import React, { CSSProperties, MouseEventHandler } from 'react';
|
3
3
|
import { IconProps } from '../icon';
|
4
|
-
export type TitleProps = {
|
4
|
+
export declare type TitleProps = {
|
5
5
|
text: string;
|
6
6
|
};
|
7
|
-
export type closeDropdownType = () => void;
|
8
|
-
export type renderContentType = (closeDropdown: closeDropdownType) => React.ReactNode;
|
9
|
-
export type DropdownProps = {
|
7
|
+
export declare type closeDropdownType = () => void;
|
8
|
+
export declare type renderContentType = (closeDropdown: closeDropdownType) => React.ReactNode;
|
9
|
+
export declare type DropdownProps = {
|
10
10
|
className?: string;
|
11
11
|
title?: string;
|
12
12
|
renderTrigger?: () => React.ReactNode;
|
@@ -28,7 +28,7 @@ export type DropdownProps = {
|
|
28
28
|
offsetY?: number;
|
29
29
|
forceClose?: boolean;
|
30
30
|
};
|
31
|
-
export type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
|
31
|
+
export declare type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
|
32
32
|
export interface DropdownItemProps {
|
33
33
|
text: string | JSX.Element;
|
34
34
|
className?: string;
|
@@ -38,10 +38,11 @@ export interface DropdownItemProps {
|
|
38
38
|
onClick?: MouseEventHandler;
|
39
39
|
maxWidth?: DropdownProps['maxWidth'];
|
40
40
|
fullWidth?: DropdownProps['fullWidth'];
|
41
|
-
children?: React.
|
41
|
+
children?: React.ReactChild;
|
42
42
|
isDisabled?: boolean;
|
43
43
|
type?: DropdownItemType;
|
44
44
|
onMouseEnter?: () => void;
|
45
|
+
label?: string;
|
45
46
|
}
|
46
47
|
export interface UserListItemProps {
|
47
48
|
img?: string;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import React from 'react';
|
3
3
|
import { WithBadgeProps } from './types';
|
4
|
-
export declare const Template:
|
4
|
+
export declare const Template: Story<WithBadgeProps>;
|
5
5
|
export declare const Normal: () => React.JSX.Element;
|
6
6
|
export declare const WithKnobs: () => React.JSX.Element;
|
7
7
|
declare const WithBadgeStories: Meta<WithBadgeProps>;
|
@@ -27,12 +27,12 @@ export declare enum FloatingBadgeType {
|
|
27
27
|
SUCCESS = "success",
|
28
28
|
DISABLED = "disabled"
|
29
29
|
}
|
30
|
-
export type FloatingBadgeColors = {
|
30
|
+
export declare type FloatingBadgeColors = {
|
31
31
|
[key in FloatingBadgeType]: {
|
32
32
|
color: paletteColor;
|
33
33
|
backgroundColor: paletteColor;
|
34
34
|
};
|
35
35
|
};
|
36
|
-
export type FloatingBadgePalette = FloatingBadgeColors & {
|
36
|
+
export declare type FloatingBadgePalette = FloatingBadgeColors & {
|
37
37
|
borderRadius: string | number;
|
38
38
|
};
|
@@ -9,6 +9,7 @@ import { CheckboxProps } from './types';
|
|
9
9
|
* @param {function} onClick Callback called on component click
|
10
10
|
* @param {string} text Component label text
|
11
11
|
* @param {CheckboxStatus} value Checkbox status
|
12
|
+
* @param {string} textColor To change label text color
|
12
13
|
*/
|
13
14
|
declare const Checkbox: ({ value, ...rest }: CheckboxProps) => JSX.Element;
|
14
15
|
export default Checkbox;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { CheckboxProps } from './types';
|
3
|
-
export declare const WithStatus:
|
4
|
-
export declare const WithBoolean:
|
3
|
+
export declare const WithStatus: Story<CheckboxProps>;
|
4
|
+
export declare const WithBoolean: Story<CheckboxProps>;
|
5
5
|
declare const CheckboxStories: Meta<CheckboxProps>;
|
6
6
|
export default CheckboxStories;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
2
2
|
import { paletteColor } from '../../../styles/types';
|
3
3
|
import { InputHelperProps } from '../inputHelper';
|
4
4
|
import { LabelProps } from '../label';
|
@@ -32,16 +32,17 @@ export interface CheckboxInputProps {
|
|
32
32
|
hasError: boolean;
|
33
33
|
}
|
34
34
|
export interface CheckboxImplProps extends Omit<CheckboxInputProps, 'hasError'>, Omit<LabelProps, 'hasError'> {
|
35
|
-
onClick?: (e:
|
35
|
+
onClick?: (e: ChangeEvent<HTMLInputElement>) => void;
|
36
36
|
text?: string;
|
37
37
|
helper?: InputHelperProps;
|
38
38
|
className?: string;
|
39
39
|
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
|
40
|
+
textColor?: paletteColor;
|
40
41
|
}
|
41
42
|
export interface CheckboxProps extends Omit<CheckboxImplProps, 'value'> {
|
42
43
|
value: CheckboxImplProps['value'] | boolean;
|
43
44
|
}
|
44
|
-
export type CheckboxPalette = {
|
45
|
+
export declare type CheckboxPalette = {
|
45
46
|
input: {
|
46
47
|
[k in CheckboxState]: {
|
47
48
|
[k in CheckboxStatus]: {
|
@@ -5,7 +5,7 @@ interface InputMapParams extends CheckboxInputProps {
|
|
5
5
|
theme: DefaultTheme;
|
6
6
|
}
|
7
7
|
export declare const getInputStyle: ({ theme, value, disabled, large, hasError }: InputMapParams) => CheckboxStyles;
|
8
|
-
type StatusIconType = {
|
8
|
+
declare type StatusIconType = {
|
9
9
|
[k in CheckboxStatus]: IconProps['icon'] | null;
|
10
10
|
};
|
11
11
|
export declare const statusIcon: StatusIconType;
|
@@ -2,9 +2,9 @@ import { colorsPalette } from '../../../common/types/colorsPalette';
|
|
2
2
|
import { paletteColor } from '../../../styles/types';
|
3
3
|
import { InputHelperProps } from '../inputHelper';
|
4
4
|
export declare const inputSizeArray: readonly ["large", "medium"];
|
5
|
-
export type inputSizeType = typeof inputSizeArray[number];
|
5
|
+
export declare type inputSizeType = typeof inputSizeArray[number];
|
6
6
|
export declare const statusesArray: readonly ["normal", "success", "warning", "error"];
|
7
|
-
export type statusType = typeof statusesArray[number];
|
7
|
+
export declare type statusType = typeof statusesArray[number];
|
8
8
|
export interface CommonFormTypes {
|
9
9
|
inputSize?: inputSizeType;
|
10
10
|
disabled?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
3
|
-
type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
|
3
|
+
declare type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
|
4
4
|
declare const MonthPicker: ({ changeMonth, date }: Props) => JSX.Element;
|
5
5
|
export default MonthPicker;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { colorsPalette } from '../../../common/types/colorsPalette';
|
2
2
|
import { paletteColor } from '../../../styles/types';
|
3
|
-
type ItemStatus = 'normal' | 'active' | 'normalHover' | 'activeHover' | 'disabled';
|
4
|
-
type DayPalette = {
|
3
|
+
declare type ItemStatus = 'normal' | 'active' | 'normalHover' | 'activeHover' | 'disabled';
|
4
|
+
declare type DayPalette = {
|
5
5
|
borderRadius: string;
|
6
6
|
today: {
|
7
7
|
[k in Exclude<ItemStatus, 'disabled'>]: colorsPalette;
|
@@ -13,7 +13,7 @@ type DayPalette = {
|
|
13
13
|
[k in Exclude<ItemStatus, 'active' | 'activeHover' | 'disabled'>]: colorsPalette;
|
14
14
|
};
|
15
15
|
};
|
16
|
-
type ItemStatusPalette = {
|
16
|
+
declare type ItemStatusPalette = {
|
17
17
|
[k in ItemStatus]: colorsPalette;
|
18
18
|
};
|
19
19
|
interface ItemPalette extends ItemStatusPalette {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { DatePickerProps } from './types';
|
3
|
-
export declare const Normal:
|
4
|
-
export declare const WithCustomButton:
|
3
|
+
export declare const Normal: Story<DatePickerProps>;
|
4
|
+
export declare const WithCustomButton: Story<DatePickerProps>;
|
5
5
|
declare const DatePickerStories: Meta<DatePickerProps>;
|
6
6
|
export default DatePickerStories;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
interface ReturnType {
|
3
|
+
date: Date | null;
|
4
|
+
setDate: Dispatch<SetStateAction<Date | null>>;
|
5
|
+
value: string | null;
|
6
|
+
setValue: Dispatch<SetStateAction<string | null>>;
|
7
|
+
}
|
8
|
+
interface Props {
|
9
|
+
initialDate?: Date | null;
|
10
|
+
initialValue?: string | null;
|
11
|
+
}
|
12
|
+
declare const useDatePickerValues: ({ initialDate, initialValue }?: Props) => ReturnType;
|
13
|
+
export default useDatePickerValues;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import {
|
3
|
-
type ReturnType = [Date | null, Dispatch<SetStateAction<Date | null>>, string | null, string];
|
2
|
+
import { DateFormats } from '../../../../common/types/dateTypes';
|
3
|
+
declare type ReturnType = [Date | null, Dispatch<SetStateAction<Date | null>>, string | null, string];
|
4
4
|
/**
|
5
5
|
* Hook to manage a date in string format
|
6
6
|
* @param {string|null} initialValue Initial string value representing a date
|
@@ -8,5 +8,5 @@ type ReturnType = [Date | null, Dispatch<SetStateAction<Date | null>>, string |
|
|
8
8
|
* @param {dateFormat} outputFormat The string value returned by the hook will be formatted with this format
|
9
9
|
* @returns {[Date|null, function, string|null, string]} Returns an array with a Date object, the function to update it, a string representation of the date (formatted using the third parameter of the hook) and the currently used format
|
10
10
|
*/
|
11
|
-
declare const useFormattedDate: (initialValue?: string | null, allowedFormats?: DateFormats | null, outputFormat?:
|
11
|
+
declare const useFormattedDate: (initialValue?: string | null | undefined, allowedFormats?: DateFormats | null | undefined, outputFormat?: string | undefined) => ReturnType;
|
12
12
|
export default useFormattedDate;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { Dispatch,
|
1
|
+
import { Dispatch, ReactChild, SetStateAction } from 'react';
|
2
2
|
import { ReactDatePickerProps } from 'react-datepicker';
|
3
3
|
import { CommonFormTypes } from '../common/types';
|
4
4
|
import { LabelProps } from '../label';
|
5
|
-
export type DatePickerStatus = 'dayPicker' | 'monthPicker' | 'yearPicker';
|
6
|
-
export type RenderCustomFooterType = (props: RenderCustomFooterProps) =>
|
7
|
-
export type CustomButtonProps = {
|
5
|
+
export declare type DatePickerStatus = 'dayPicker' | 'monthPicker' | 'yearPicker';
|
6
|
+
export declare type RenderCustomFooterType = (props: RenderCustomFooterProps) => ReactChild;
|
7
|
+
export declare type CustomButtonProps = {
|
8
8
|
text: string;
|
9
9
|
onClick: (props: RenderCustomFooterProps) => void;
|
10
10
|
};
|
@@ -24,4 +24,4 @@ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChang
|
|
24
24
|
isPrefilled?: boolean;
|
25
25
|
onChangeManually?: (date: Date | null) => void;
|
26
26
|
}
|
27
|
-
export type DatePickerProps = LabelProps & DatePickerImplProps;
|
27
|
+
export declare type DatePickerProps = LabelProps & DatePickerImplProps;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FileRejection } from 'react-dropzone';
|
3
3
|
import { CustomPalette, FileType, FileUploaderSize, FileUploaderStatus } from './types';
|
4
|
-
export type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => void;
|
4
|
+
export declare type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => void;
|
5
5
|
export interface FileUploaderProps {
|
6
6
|
allowedTypes: FileType[];
|
7
7
|
className?: string;
|
@@ -4,8 +4,8 @@ import { FileUploaderSize, statuses } from '../types';
|
|
4
4
|
interface Props {
|
5
5
|
icon: IconProps | null;
|
6
6
|
status: statuses;
|
7
|
-
text?: React.
|
8
|
-
caption?: React.
|
7
|
+
text?: React.ReactChild | null;
|
8
|
+
caption?: React.ReactChild | null;
|
9
9
|
size: FileUploaderSize;
|
10
10
|
}
|
11
11
|
declare const FileUploaderContent: ({ icon, status, text, caption, size }: Props) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Meta,
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
2
2
|
import { FileUploaderProps } from './FileUploader';
|
3
|
-
export declare const WithKnobs:
|
3
|
+
export declare const WithKnobs: Story<FileUploaderProps>;
|
4
4
|
declare const FileUploaderStories: Meta<FileUploaderProps>;
|
5
5
|
export default FileUploaderStories;
|