jamespot-react-components 1.0.145 → 1.0.147
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/build/assets/gif.605d1d151a01356b376d5c4ac2f40d19.png +0 -0
- package/build/jamespot-react-components.js +540 -570
- package/build/jamespot-react-components.js.LICENSE.txt +26 -5
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/404/index.d.ts +2 -1
- package/build/src/components/Beta/BETA_JRCColorPicker/BETA_JRCColorPicker.d.ts +2 -1
- package/build/src/components/Beta/BETA_JRCColorPicker/ColorInput.d.ts +2 -1
- package/build/src/components/Beta/BETA_JRCColorPicker/ColorPalette.d.ts +3 -2
- package/build/src/components/Beta/BETA_JRCColorPicker/ColorPicker.d.ts +4 -3
- package/build/src/components/Beta/BETA_JRCColorPicker/ColorRange.d.ts +2 -1
- package/build/src/components/Beta/BETA_JRCColorPicker/DragArea.d.ts +2 -2
- package/build/src/components/Beta/BETA_JRCColorPicker/JRCColorPicker.types.d.ts +4 -4
- package/build/src/components/Beta/BETA_JRCDoubleClick/BETA_JRCDoubleClick.d.ts +2 -2
- package/build/src/components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop.d.ts +2 -2
- package/build/src/components/Common/DashedFocusBorder.d.ts +1 -1
- package/build/src/components/Common/FastCss.d.ts +2 -1
- package/build/src/components/Common/JRCConditionalWrapper.d.ts +2 -2
- package/build/src/components/Common/LimitLines.d.ts +1 -1
- package/build/src/components/Common/util/getColor.util.d.ts +1 -1
- package/build/src/components/Editors/components/EditorCheckbox.d.ts +2 -1
- package/build/src/components/Editors/components/EditorColorPicker.d.ts +2 -1
- package/build/src/components/Editors/components/EditorInput.d.ts +4 -2
- package/build/src/components/Editors/components/EditorSelect.d.ts +6 -4
- package/build/src/components/Editors/components/EditorUploader.d.ts +5 -4
- package/build/src/components/Form/Common/ClickAwayListener.d.ts +4 -4
- package/build/src/components/Form/Common/FormDescription.d.ts +2 -2
- package/build/src/components/Form/Common/FormHelper.d.ts +3 -2
- package/build/src/components/Form/Common/FormLabel.d.ts +1 -1
- package/build/src/components/Form/Common/FormMessageFeedback.d.ts +2 -1
- package/build/src/components/Form/Common/types.d.ts +1 -1
- package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +2 -1
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +2 -2
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +3 -3
- package/build/src/components/Form/Input/Common/useFormControls.d.ts +5 -5
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.d.ts +5 -5
- package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormFieldRender.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormFile/File.d.ts +4 -3
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +5 -5
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +1 -1
- package/build/src/components/Form/Input/JRCFormFile/file.api.d.ts +15 -2
- package/build/src/components/Form/Input/JRCFormImage/JRCFormImage.d.ts +3 -3
- package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts +1 -1
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichEditorField.styles.d.ts +3 -3
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +4 -4
- package/build/src/components/Form/Input/JRCFormRichText/extensions/mentions/MentionList.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +4 -4
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.d.ts +1 -1
- package/build/src/components/Form/Input/JRCFormText/JRCFormText.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.d.ts +1 -1
- package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +5 -5
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +5 -5
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.d.ts +5 -5
- package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +9 -9
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +6 -8
- package/build/src/components/Form/Input/JRCInputRange/JRCInputRange.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputRichText/JRCInputRichText.d.ts +4 -4
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +2 -2
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +4 -4
- package/build/src/components/Form/Input/JRCInputText/JRCInputTextIconButton.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +2 -2
- package/build/src/components/Form/Input/JRCInputTime/JRCInputTime.d.ts +2 -2
- package/build/src/components/Form/Input/JRCInputUrl/JRCInputUrl.d.ts +3 -3
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputAudience.d.ts +3 -3
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +4 -4
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocompleteViews.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.defaults.d.ts +2 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +9 -9
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.d.ts +2 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputTaxonomy.d.ts +3 -3
- package/build/src/components/Form/Input/JRCSelect/SelectHierarchicalTreeModal.d.ts +2 -2
- package/build/src/components/Form/Input/JRCStyledInput.d.ts +4 -3
- package/build/src/components/Form/Input/ReduxFormControls.d.ts +1 -1
- package/build/src/components/JRCAlert/JRCAlert.d.ts +1 -1
- package/build/src/components/JRCAppContainer/JRCAppContainer.d.ts +1 -1
- package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +2 -1
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.d.ts +2 -1
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.d.ts +3 -3
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +4 -4
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.d.ts +1 -1
- package/build/src/components/JRCAppLeftColumn/JRCDefaultMenu.d.ts +2 -1
- package/build/src/components/JRCAvatar/JRCAvatar.d.ts +3 -2
- package/build/src/components/JRCButton/JRCButton.d.ts +5 -5
- package/build/src/components/JRCButton/JRCButton.stories.d.ts +2 -2
- package/build/src/components/JRCButton/JRCButtonConfig.d.ts +1 -1
- package/build/src/components/JRCButton/JRCValidationButton.d.ts +2 -2
- package/build/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +2 -1
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +2 -1
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +2 -2
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +6 -6
- package/build/src/components/JRCButtonFile/JRCButtonFile.d.ts +2 -1
- package/build/src/components/JRCCard/JRCCard.d.ts +5 -5
- package/build/src/components/JRCCard/JRCCardImg.d.ts +3 -3
- package/build/src/components/JRCColumnCenter/JRCColumnCenter.d.ts +1 -1
- package/build/src/components/JRCColumnLeft/JRCColumnLeft.d.ts +1 -1
- package/build/src/components/JRCColumnRight/JRCColumnRight.d.ts +1 -1
- package/build/src/components/JRCCropImage/JRCCropImage.d.ts +6 -6
- package/build/src/components/JRCDate/JRCDate.d.ts +2 -1
- package/build/src/components/JRCDate/JRCDate.stories.d.ts +2 -2
- package/build/src/components/JRCDropDown/JRCDropDown.d.ts +1 -1
- package/build/src/components/JRCEllipsis/JRCEllipsis.d.ts +3 -2
- package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +12 -0
- package/build/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +4 -0
- package/build/src/components/JRCFile/JRCFile.d.ts +2 -1
- package/build/src/components/JRCFile/JRCFileApplication.d.ts +2 -1
- package/build/src/components/JRCFile/JRCFileAudio.d.ts +2 -1
- package/build/src/components/JRCFile/JRCFileAvatar.d.ts +2 -1
- package/build/src/components/JRCFile/JRCFileImage.d.ts +6 -2
- package/build/src/components/JRCFile/JRCFileVideo.d.ts +2 -1
- package/build/src/components/JRCFile/types.d.ts +1 -1
- package/build/src/components/JRCFileOpen/JRCFileOpen.d.ts +1 -1
- package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +14 -2
- package/build/src/components/JRCFileViewer/JRCFileViewer.styles.d.ts +1 -0
- package/build/src/components/JRCFileViewer/JRCFileViewerArrows.d.ts +7 -2
- package/build/src/components/JRCFileViewer/JRCFileViewerContent.d.ts +7 -5
- package/build/src/components/JRCFileViewer/JRCFileViewerContentApplication.d.ts +5 -4
- package/build/src/components/JRCFileViewer/JRCFileViewerContentAudio.d.ts +1 -1
- package/build/src/components/JRCFileViewer/JRCFileViewerContentImage.d.ts +1 -1
- package/build/src/components/JRCFileViewer/JRCFileViewerContentVideo.d.ts +1 -1
- package/build/src/components/JRCFileViewer/JRCFileViewerOpenWithOptions.d.ts +6 -4
- package/build/src/components/JRCFileViewer/types.d.ts +6 -12
- package/build/src/components/JRCFileViewer/utils.d.ts +4 -4
- package/build/src/components/JRCFlex/JRCFlexBox.d.ts +5 -5
- package/build/src/components/JRCFolders/JRCFolder.d.ts +2 -1
- package/build/src/components/JRCFolders/JRCFolderBreadcrumb.d.ts +2 -1
- package/build/src/components/JRCFolders/JRCFolders.d.ts +2 -1
- package/build/src/components/JRCFolders/JRCFolders.stories.d.ts +2 -2
- package/build/src/components/JRCFolders/types.d.ts +2 -2
- package/build/src/components/JRCGrid/JRCGrid.d.ts +1 -1
- package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +5 -5
- package/build/src/components/JRCHref/JRCHref.d.ts +8 -7
- package/build/src/components/JRCHtml/JRCHtml.d.ts +2 -2
- package/build/src/components/JRCIcon/JRCIcon.d.ts +2 -1
- package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +2 -2
- package/build/src/components/JRCIconButton/JRCIconButton.d.ts +2 -2
- package/build/src/components/JRCImg/JRCImg.d.ts +3 -2
- package/build/src/components/JRCList/JRCList.d.ts +5 -4
- package/build/src/components/JRCList/JRCList.stories.d.ts +1 -1
- package/build/src/components/JRCList/JRCList.styles.d.ts +5 -5
- package/build/src/components/JRCLoader/JRCLoader.d.ts +3 -2
- package/build/src/components/JRCLoader/JRCSkeleton.d.ts +2 -1
- package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +2 -2
- package/build/src/components/JRCMenuItem/JRCMenuItem.d.ts +1 -1
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +1 -1
- package/build/src/components/JRCModalImg/JRCModalImg.d.ts +2 -2
- package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +2 -2
- package/build/src/components/JRCPagination/JRCPagination.d.ts +5 -4
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +1 -1
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +1 -1
- package/build/src/components/JRCSkeleton/JRCSkeletonLine.d.ts +3 -2
- package/build/src/components/JRCSkeleton/JRCSkeletonList.d.ts +1 -1
- package/build/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +1 -1
- package/build/src/components/JRCTabs/JRCTabs.d.ts +3 -3
- package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +2 -2
- package/build/src/components/JRCTag/JRCTag.d.ts +2 -2
- package/build/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +1 -1
- package/build/src/components/JRCTooltip/JRCBaseTooltip.d.ts +4 -3
- package/build/src/components/JRCTooltip/JRCTooltip.d.ts +1 -1
- package/build/src/components/JRCTypo/JRCTypo.d.ts +10 -10
- package/build/src/components/JRCTypo/JRCTypo.stories.d.ts +7 -7
- package/build/src/components/JRCTypography/JRCTypography.d.d.ts +4 -4
- package/build/src/components/JRCTypography/JRCTypography.d.ts +2 -1
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +6 -6
- package/build/src/components/Stepper/JRCFadeStepper.d.ts +2 -2
- package/build/src/components/Stepper/JRCImageStepper.d.ts +3 -3
- package/build/src/components/Stepper/JRCStepper.d.ts +3 -3
- package/build/src/components/Stepper/JRCStepper.stories.d.ts +2 -2
- package/build/src/components/Templates/JRCAppColumn.d.ts +2 -2
- package/build/src/components/Templates/JRCAppTab.d.ts +3 -3
- package/build/src/components/Templates/JRCBase.template.d.ts +2 -2
- package/build/src/components/Templates/JRCColumn.d.ts +2 -2
- package/build/src/components/Templates/JRCMainColumn.d.ts +2 -2
- package/build/src/components/Templates/JRCPanel.d.ts +2 -2
- package/build/src/components/Templates/JRCStepperPage.d.ts +2 -2
- package/build/src/components/Templates/JRCTwoColumns.template.d.ts +1 -1
- package/build/src/components/Templates/template.type.d.ts +13 -13
- package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts +6 -5
- package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.stories.d.ts +7 -0
- package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachmentEditor.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButton.d.ts +2 -1
- package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButtonEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.d.ts +6 -16
- package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +8 -0
- package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGalleryEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +6 -5
- package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.stories.d.ts +8 -0
- package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImageEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.d.ts +2 -1
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +7 -0
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleTextEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +8 -4
- package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitleEditor.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetEmptyInplace.d.ts +3 -2
- package/build/src/components/Widgets/components/WidgetMissingToken.d.ts +2 -1
- package/build/src/components/Widgets/const.d.ts +0 -4
- package/build/src/components/Widgets/utils.d.ts +3 -3
- package/build/src/hooks/UseImageLoader.d.ts +1 -1
- package/build/src/hooks/useRefSize.d.ts +6 -0
- package/build/src/index.d.ts +3 -0
- package/build/src/storybook/decorators.d.ts +2 -2
- package/build/src/styles/Theme.stories.d.ts +2 -2
- package/build/src/styles/theme.d.ts +9 -9
- package/build/src/types.d.ts +1 -0
- package/build/src/utils/index.d.ts +4 -2
- package/build/src/utils/test-utils.d.ts +1 -1
- package/build/src/utils/utils.array.d.ts +1 -1
- package/build/src/utils/utils.color.d.ts +3 -1
- package/build/src/utils/utils.date.d.ts +1 -1
- package/build/src/utils/utils.files.d.ts +113 -2
- package/package.json +145 -146
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +0 -320
- package/build/src/components/Templates/template.styles.d.ts +0 -323
- package/build/src/components/Widgets/components/Attachment.d.ts +0 -33
- package/build/src/components/Widgets/components/Image.d.ts +0 -9
- package/pnpm-lock.yaml +0 -20909
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { WrappedFieldInputProps } from 'redux-form';
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
3
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
4
|
+
export type JRCFormInputFileProps = JRCFormInputFileFieldProps;
|
|
5
5
|
/**
|
|
6
6
|
* Props type for JRCFormInputFileFieldProps (to fix with next version of this JRC)
|
|
7
7
|
* @member disable optional boolean
|
|
@@ -21,14 +21,14 @@ export interface JRCFormInputFileFieldProps extends React.ComponentPropsWithoutR
|
|
|
21
21
|
multiple?: boolean;
|
|
22
22
|
accept?: 'image/png' | 'image/jpg' | 'image/png, image/jpg' | 'image/png, image/jpeg, image/jpg' | 'image/pdf' | 'image/doc' | 'image/pdf, image/doc' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.oasis.opendocument.spreadsheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.oasis.opendocument.presentation';
|
|
23
23
|
input?: WrappedFieldInputProps;
|
|
24
|
-
onUploadSuccess?: (response:
|
|
24
|
+
onUploadSuccess?: (response: jFileLittle, token: string) => void;
|
|
25
25
|
onDeleteSuccess?: (index: number) => void;
|
|
26
26
|
onUploadStart?: (count?: number) => void;
|
|
27
|
-
existingFiles?: Array<
|
|
27
|
+
existingFiles?: Array<jFileLittle>;
|
|
28
28
|
deleteFile?: (id: number) => Promise<void>;
|
|
29
29
|
}
|
|
30
30
|
export declare const JRCFormInputFile: React.ForwardRefExoticComponent<JRCFormInputFileFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
31
|
/**
|
|
32
32
|
* @deprecated Build a component compatible with react-hook-form instead
|
|
33
33
|
*/
|
|
34
|
-
export declare const JRCFormInputFileField: (props: JRCFormInputFileFieldProps) => JSX.Element;
|
|
34
|
+
export declare const JRCFormInputFileField: (props: JRCFormInputFileFieldProps) => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@ export declare const FileUploadWrapper: import("styled-components").StyledCompon
|
|
|
7
7
|
export declare const LabelField: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const CloseButton: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare const FileWrapper: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
10
|
-
|
|
10
|
+
isLoading: boolean;
|
|
11
11
|
}, never>;
|
|
12
12
|
export declare const FileName: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
13
13
|
export declare const FileImage: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare function fileSend(file: File, token: string | undefined, name: string): Promise<{
|
|
2
|
+
result: {
|
|
3
|
+
uri: string;
|
|
4
|
+
id: number;
|
|
5
|
+
mainType: string;
|
|
6
|
+
type: string;
|
|
7
|
+
dateCreation: string;
|
|
8
|
+
title: string;
|
|
9
|
+
_url: string;
|
|
10
|
+
dateModified: string | null;
|
|
11
|
+
mimetype: string;
|
|
12
|
+
path?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
token: string;
|
|
15
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JRCFormInputImageProps = JRCFormInputImageFieldProps;
|
|
3
3
|
/**
|
|
4
4
|
* Props type for JRCFormInputImageFieldProps
|
|
5
5
|
* @member content text used as label
|
|
@@ -13,8 +13,8 @@ export interface JRCFormInputImageFieldProps extends React.ComponentPropsWithout
|
|
|
13
13
|
* Placeholder field used in studio to edit forms. No logic to transfer images is implemented.
|
|
14
14
|
* @deprecated Use JRCInputImage instead
|
|
15
15
|
*/
|
|
16
|
-
export declare const JRCFormInputImage: ({ id, content }: JRCFormInputImageProps) => JSX.Element;
|
|
16
|
+
export declare const JRCFormInputImage: ({ id, content }: JRCFormInputImageProps) => React.JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated Use JRCInputImage instead
|
|
19
19
|
*/
|
|
20
|
-
export declare const JRCFormInputImageField: (props: JRCFormInputImageFieldProps) => JSX.Element;
|
|
20
|
+
export declare const JRCFormInputImageField: (props: JRCFormInputImageFieldProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
2
3
|
/**
|
|
3
4
|
* Component used as a <input type="text"/>
|
|
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
|
6
7
|
* @returns JSX.Element
|
|
7
8
|
* @deprecated Create a JRCInput alternative compatible with react-hook-form
|
|
8
9
|
*/
|
|
9
|
-
export declare const JRCFormNumberField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFormNumberField: (props: JRCWritableFormInputProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
2
3
|
export interface JRCFormRangeProps extends JRCWritableFormInputProps {
|
|
3
4
|
min: number;
|
|
@@ -12,4 +13,4 @@ export interface JRCFormRangeProps extends JRCWritableFormInputProps {
|
|
|
12
13
|
* @returns JSX.Element
|
|
13
14
|
* @deprecated use JRCInputRange instead
|
|
14
15
|
*/
|
|
15
|
-
export declare const JRCFormRangeField: (props: JRCFormRangeProps) => JSX.Element;
|
|
16
|
+
export declare const JRCFormRangeField: (props: JRCFormRangeProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JRCFormReceiveACopyInputProps = React.ComponentPropsWithoutRef<'input'>;
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated Create a JRCInput alternative compatible with react-hook-form
|
|
5
5
|
*/
|
|
6
6
|
export declare const JRCFormReceiveACopyField: (props: {
|
|
7
7
|
name: string;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
decorators: ((storyFunc: any) => JSX.Element)[];
|
|
4
|
+
decorators: ((storyFunc: any) => React.JSX.Element)[];
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const FormReceiveACopy: React.VFC<{}>;
|
|
@@ -5,12 +5,12 @@ export declare const EditorInplace: import("styled-components").StyledComponent<
|
|
|
5
5
|
fontSize?: string | undefined;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const Editor: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const CharactersCount: import("styled-components").StyledComponent<({ variant, ...props }: import("../../../..").JRCTypographyProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const CharactersCount: import("styled-components").StyledComponent<({ variant, ...props }: import("../../../..").JRCTypographyProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
export declare function FontSizeSelect(props: {
|
|
10
10
|
onChange: (size: number) => void;
|
|
11
|
-
}): JSX.Element;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
12
|
export declare const FixedMenuWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
13
|
export declare const MenuWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
14
|
export declare const Spacer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
15
|
export declare const ReadOnlyBorder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
export declare function SimpleInputColor(props: React.ComponentPropsWithoutRef<'input'>): JSX.Element;
|
|
16
|
+
export declare function SimpleInputColor(props: React.ComponentPropsWithoutRef<'input'>): React.JSX.Element;
|
|
@@ -12,12 +12,12 @@ export declare const MenuBar: ({ editor, toolbarOptions, isFixed, }: {
|
|
|
12
12
|
editor: Editor | null;
|
|
13
13
|
toolbarOptions: FormRichTextFieldToolbarProps[] | '*';
|
|
14
14
|
isFixed: boolean;
|
|
15
|
-
}) => JSX.Element | null;
|
|
16
|
-
export
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
16
|
+
export type RichTextValue = {
|
|
17
17
|
html: string;
|
|
18
18
|
text: string;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type FormRichTextFieldProps = {
|
|
21
21
|
name: string;
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
value: Partial<RichTextValue> | undefined;
|
|
@@ -49,4 +49,4 @@ export declare const FormRichTextField: React.ForwardRefExoticComponent<{
|
|
|
49
49
|
* validation props: required
|
|
50
50
|
* @returns JSX.Element
|
|
51
51
|
*/
|
|
52
|
-
export declare const JRCFormRichTextField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
52
|
+
export declare const JRCFormRichTextField: (props: JRCWritableFormInputProps) => React.JSX.Element;
|
package/build/src/components/Form/Input/JRCFormRichText/extensions/mentions/MentionList.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SuggestionProps } from '@tiptap/suggestion';
|
|
3
3
|
import { AudienceAutocomplete } from 'jamespot-user-api';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type Props = Pick<SuggestionProps<AudienceAutocomplete>, 'items' | 'command'>;
|
|
5
|
+
export type MentionListRef = {
|
|
6
6
|
onKeyDown: (props: {
|
|
7
7
|
event: KeyboardEvent;
|
|
8
8
|
}) => boolean;
|
|
@@ -7,18 +7,18 @@ import { FieldValues } from 'react-hook-form/dist/types';
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use JRCInputSelect alternatives instead
|
|
9
9
|
*/
|
|
10
|
-
export declare const JRCFormSelectInput: (props: any) => JSX.Element;
|
|
10
|
+
export declare const JRCFormSelectInput: (props: any) => React.JSX.Element;
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated Use JRCInputSelect alternatives instead
|
|
13
13
|
*/
|
|
14
|
-
export declare const JRCFormSelectAsyncInput: (props: any) => JSX.Element;
|
|
14
|
+
export declare const JRCFormSelectAsyncInput: (props: any) => React.JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated Use JRCInputSelect alternatives instead
|
|
17
17
|
*/
|
|
18
18
|
export declare const JRCFormSelectFieldRender: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue> & {
|
|
19
19
|
input: WrappedFieldInputProps;
|
|
20
20
|
inputState: InputState;
|
|
21
|
-
}) => JSX.Element;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* Props of the JRCFormSelectField element
|
|
24
24
|
*
|
|
@@ -77,7 +77,7 @@ export interface JRCFormSelectProps<T extends FieldValues = FieldValues> extends
|
|
|
77
77
|
* @returns JSX.Element
|
|
78
78
|
*/
|
|
79
79
|
declare const JRCFormSelectField: {
|
|
80
|
-
<TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>): JSX.Element;
|
|
80
|
+
<TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>): React.JSX.Element;
|
|
81
81
|
defaultProps: JRCFormSelectProps<JRCValueLabelProps>;
|
|
82
82
|
};
|
|
83
83
|
export { JRCFormSelectField };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFormSelectProps } from './JRCFormSelect';
|
|
2
3
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
3
4
|
/**
|
|
@@ -8,5 +9,5 @@ import { FieldValues } from 'react-hook-form/dist/types';
|
|
|
8
9
|
* @returns JSX.Element
|
|
9
10
|
* @deprecated Use JRCInputSelect alternatives instead
|
|
10
11
|
*/
|
|
11
|
-
declare const JRCFormSelectTagField: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>) => JSX.Element;
|
|
12
|
+
declare const JRCFormSelectTagField: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>) => React.JSX.Element;
|
|
12
13
|
export { JRCFormSelectTagField };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JRCFormSendAlertInputProps = React.ComponentPropsWithoutRef<'input'>;
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated Create or use a JRCInput alternative compatible with react-hook-form instead
|
|
5
5
|
*/
|
|
6
6
|
export declare const JRCFormSendAlertField: (props: {
|
|
7
7
|
name: string;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
decorators: ((storyFunc: any) => JSX.Element)[];
|
|
4
|
+
decorators: ((storyFunc: any) => React.JSX.Element)[];
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const FormSendAlert: React.VFC<{}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
2
3
|
/**
|
|
3
4
|
* Component used as a <input type="text"/>
|
|
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
|
6
7
|
* @returns JSX.Element
|
|
7
8
|
* @deprecated Use JRCInputText or JRCInputTextArea instead
|
|
8
9
|
*/
|
|
9
|
-
export declare const JRCFormTextField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFormTextField: (props: JRCWritableFormInputProps) => React.JSX.Element;
|
|
@@ -23,4 +23,4 @@ export declare const JRCFormTextarea: import("styled-components").StyledComponen
|
|
|
23
23
|
* @returns JSX.Element
|
|
24
24
|
* @deprecated Use JRCInputText or JRCInputTextArea instead
|
|
25
25
|
*/
|
|
26
|
-
export declare const JRCFormTextareaField: (props: TextareaFormInputProps) => JSX.Element;
|
|
26
|
+
export declare const JRCFormTextareaField: (props: TextareaFormInputProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
2
3
|
/**
|
|
3
4
|
* Component used as a <input type="url"/> with a url validation
|
|
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
|
6
7
|
* @returns JSX.Element
|
|
7
8
|
* @deprecated Create / use a JRCInputAlternative compatible with react-hook-form instead
|
|
8
9
|
*/
|
|
9
|
-
export declare const JRCFormUrlField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFormUrlField: (props: JRCWritableFormInputProps) => React.JSX.Element;
|
|
@@ -3,13 +3,13 @@ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
5
5
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
6
|
-
|
|
6
|
+
type CheckboxOption<TFieldValues> = {
|
|
7
7
|
label: string | JSX.Element;
|
|
8
8
|
value: string | number | TFieldValues;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
recommended?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type CheckboxProps<TFieldValues> = DataCy & {
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
checkboxMode?: 'checkbox' | 'toggle' | 'radio';
|
|
15
15
|
options: Array<CheckboxOption<TFieldValues>>;
|
|
@@ -25,12 +25,12 @@ export declare type CheckboxProps<TFieldValues> = DataCy & {
|
|
|
25
25
|
readOnly?: boolean;
|
|
26
26
|
getReadOnlyLabel?: (value: TFieldValues) => React.ReactNode;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
28
|
+
export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
29
|
+
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
30
30
|
value: TFieldValues | TFieldValues[];
|
|
31
31
|
};
|
|
32
32
|
export declare const ReadOnlyUl: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
33
|
-
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
33
|
+
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
|
|
34
34
|
export declare namespace JRCInputCheckbox {
|
|
35
35
|
var defaultProps: {
|
|
36
36
|
direction: string;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type CheckboxValue<T extends FieldValues = FieldValues> = string | number | T;
|
|
6
|
+
export type CheckboxOption<TFieldValues extends FieldValues = FieldValues> = {
|
|
7
7
|
label: string | JSX.Element;
|
|
8
8
|
value: CheckboxValue<TFieldValues>;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type InnerProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
checkboxMode?: 'checkbox' | 'toggle' | 'radio';
|
|
14
14
|
options: CheckboxOption<TFieldValues>[];
|
|
@@ -20,7 +20,7 @@ export declare type InnerProps<TFieldValues extends FieldValues = FieldValues> =
|
|
|
20
20
|
backgroundOnSelect?: boolean;
|
|
21
21
|
valueTypeIsBoolean?: boolean;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
23
|
+
export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
24
|
+
export type InputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
25
25
|
value: TFieldValues | TFieldValues[];
|
|
26
26
|
};
|
|
@@ -3,19 +3,19 @@ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
5
5
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
6
|
-
|
|
6
|
+
type CheckboxOption<TFieldValues> = {
|
|
7
7
|
label: string | JSX.Element;
|
|
8
8
|
value: string | number | TFieldValues;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type CheckboxProps<TFieldValues> = DataCy & {
|
|
11
11
|
options: Array<CheckboxOption<TFieldValues>>;
|
|
12
12
|
readOnly?: boolean;
|
|
13
13
|
getLabel?: (option: CheckboxOption<TFieldValues>) => React.ReactNode;
|
|
14
14
|
canReorder?: boolean;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
17
|
+
export type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
18
18
|
value: TFieldValues[];
|
|
19
19
|
};
|
|
20
|
-
export declare function JRCInputReorderCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, margin, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
20
|
+
export declare function JRCInputReorderCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, margin, ...props }: JRCInputCheckboxProps<TFieldValues>): React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
5
|
+
export type NativeInputProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
6
6
|
type?: 'date' | 'time' | 'datetime-local';
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type JRCInputDateProps<TFieldValues extends FieldValues = FieldValues> = NativeInputProps & JRCInputFieldProps<TFieldValues>;
|
|
9
9
|
/**
|
|
10
10
|
* Component used as a <input type="date"/>
|
|
11
11
|
* @param props JRCInputFieldProps
|
|
12
12
|
* validation props: required
|
|
13
13
|
* @returns JSX.Element
|
|
14
14
|
*/
|
|
15
|
-
export declare function JRCInputDate<T extends FieldValues = FieldValues>(props: JRCInputDateProps<T>): JSX.Element;
|
|
15
|
+
export declare function JRCInputDate<T extends FieldValues = FieldValues>(props: JRCInputDateProps<T>): React.JSX.Element;
|
|
@@ -2,21 +2,21 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
import { ApiWrapper,
|
|
6
|
-
export
|
|
5
|
+
import { ApiWrapper, jFileLittle } from 'jamespot-user-api';
|
|
6
|
+
export type NativeInputFileProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
|
|
7
7
|
token?: string | undefined;
|
|
8
8
|
attrName?: string;
|
|
9
9
|
onLoading?: (state: boolean) => void;
|
|
10
|
-
value: ApiWrapper<
|
|
11
|
-
onChange: (files: ApiWrapper<
|
|
10
|
+
value: ApiWrapper<jFileLittle>[];
|
|
11
|
+
onChange: (files: ApiWrapper<jFileLittle>[]) => void;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<
|
|
13
|
+
export type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
|
|
14
|
+
export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value"> & {
|
|
15
15
|
token?: string | undefined;
|
|
16
16
|
attrName?: string | undefined;
|
|
17
17
|
onLoading?: ((state: boolean) => void) | undefined;
|
|
18
|
-
value: ApiWrapper<
|
|
19
|
-
onChange: (files: ApiWrapper<
|
|
18
|
+
value: ApiWrapper<jFileLittle>[];
|
|
19
|
+
onChange: (files: ApiWrapper<jFileLittle>[]) => void;
|
|
20
20
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
21
21
|
/**
|
|
22
22
|
* Component used as a <input type="file"/>
|
|
@@ -24,4 +24,4 @@ export declare const InputFile: React.ForwardRefExoticComponent<DataCy & Omit<Pi
|
|
|
24
24
|
* validation props: required
|
|
25
25
|
* @returns JSX.Element
|
|
26
26
|
*/
|
|
27
|
-
export declare function JRCInputFile<T extends FieldValues = FieldValues>(props: JRCInputFileProps<T>): JSX.Element;
|
|
27
|
+
export declare function JRCInputFile<T extends FieldValues = FieldValues>(props: JRCInputFileProps<T>): React.JSX.Element;
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
import {
|
|
6
|
-
export
|
|
5
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
6
|
+
export type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'value' | 'onChange'> & {
|
|
7
7
|
token?: string | undefined;
|
|
8
8
|
attrName?: string;
|
|
9
9
|
onLoading?: (state: boolean) => void;
|
|
@@ -18,18 +18,16 @@ export declare type NativeInputImageProps = DataCy & Omit<React.ComponentPropsWi
|
|
|
18
18
|
};
|
|
19
19
|
readOnly?: boolean;
|
|
20
20
|
readOnlyImg?: string;
|
|
21
|
-
value:
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
onChange: (files: undefined | FileResponse) => void;
|
|
21
|
+
value: jFileLittle | undefined;
|
|
22
|
+
onChange: (files: jFileLittle | undefined) => void;
|
|
25
23
|
disableCrop?: boolean;
|
|
26
24
|
buttonsPosition?: 'inside' | 'under';
|
|
27
25
|
};
|
|
28
|
-
export
|
|
26
|
+
export type JRCInputImageProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputImageProps, 'value' | 'onChange'>;
|
|
29
27
|
/**
|
|
30
28
|
* Component used as a <input type="file"/>
|
|
31
29
|
* @param props JRCInputFieldProps
|
|
32
30
|
* validation props: required
|
|
33
31
|
* @returns JSX.Element
|
|
34
32
|
*/
|
|
35
|
-
export declare function JRCInputImage<T extends FieldValues = FieldValues>(props: JRCInputImageProps<T>): JSX.Element;
|
|
33
|
+
export declare function JRCInputImage<T extends FieldValues = FieldValues>(props: JRCInputImageProps<T>): React.JSX.Element;
|
|
@@ -2,12 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
6
|
-
export declare const InputRange: React.ForwardRefExoticComponent<DataCy &
|
|
5
|
+
export type JRCInputRangeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
|
|
6
|
+
export declare const InputRange: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
7
|
/**
|
|
8
8
|
* Component used as a <input type="range"/>
|
|
9
9
|
* @param props JRCInputFieldProps
|
|
10
10
|
* validation props: required
|
|
11
11
|
* @returns JSX.Element
|
|
12
12
|
*/
|
|
13
|
-
export declare function JRCInputRange<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
13
|
+
export declare function JRCInputRange<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
4
|
/**
|
|
@@ -7,8 +7,8 @@ import { FieldValues } from 'react-hook-form/dist/types';
|
|
|
7
7
|
* validation props: required
|
|
8
8
|
* @returns JSX.Element
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type FormRichTextFieldToolbarProps = 'font-size' | 'text-color' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'list-ul' | 'list-ol' | 'align-left' | 'align-center' | 'align-right' | 'align-justify' | 'link' | 'undo' | 'redo' | 'edit-html';
|
|
11
|
+
export type FormRichTextFieldOptionsProps = {
|
|
12
12
|
richTextFixedToolbar: boolean;
|
|
13
13
|
richTextCustomToolbar: Array<FormRichTextFieldToolbarProps>;
|
|
14
14
|
richTextHideCharactersCount: boolean;
|
|
@@ -23,4 +23,4 @@ export declare function JRCInputRichText<T extends FieldValues = FieldValues>({
|
|
|
23
23
|
isComponentVisible?: boolean;
|
|
24
24
|
inplace?: boolean;
|
|
25
25
|
placeholder?: string;
|
|
26
|
-
} & JRCInputFieldProps<T>): JSX.Element;
|
|
26
|
+
} & JRCInputFieldProps<T>): React.JSX.Element;
|
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
5
|
+
export type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
6
6
|
width?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const RenderInput: React.ForwardRefExoticComponent<DataCy &
|
|
8
|
+
export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
9
9
|
width?: string | undefined;
|
|
10
10
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
11
11
|
/**
|
|
@@ -16,4 +16,4 @@ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Pick<
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
|
|
18
18
|
width?: string;
|
|
19
|
-
}): JSX.Element;
|
|
19
|
+
}): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { Meta, Story } from '@storybook/react';
|
|
4
4
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
@@ -7,4 +7,4 @@ export declare const InputText: Story<JRCInputFieldProps<{
|
|
|
7
7
|
text: string;
|
|
8
8
|
}>>;
|
|
9
9
|
export declare const InputTextIconButton: any;
|
|
10
|
-
export declare const AllInputs: () => JSX.Element;
|
|
10
|
+
export declare const AllInputs: () => React.JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
export declare const IconBefore: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("components/JRCIcon/JRCIcon").JRCIconProps) => import("react").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const IconAfter: import("styled-components").StyledComponent<{
|
|
3
|
-
({ hasLicense, ...props }: Omit<
|
|
3
|
+
({ hasLicense, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick"> & import("../../../../types/dataAttributes").DataCy & {
|
|
4
4
|
icon: string;
|
|
5
5
|
size?: "small" | "medium" | undefined;
|
|
6
6
|
onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
|
|
7
7
|
name?: string | undefined;
|
|
8
8
|
value?: string | undefined;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
|
-
type?: "button" | "
|
|
10
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
11
11
|
bgBaseGrey?: 0 | 1 | 2 | undefined;
|
|
12
12
|
color?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | "inherit" | undefined;
|
|
13
13
|
tooltip?: Omit<import("../../../..").JRCTooltipProps, "children"> | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const IconAfter: import("styled-components").StyledComponent<{
|
|
|
17
17
|
type: string;
|
|
18
18
|
variant: string;
|
|
19
19
|
size: string;
|
|
20
|
-
}): JSX.Element;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
21
|
defaultProps: {
|
|
22
22
|
type: string;
|
|
23
23
|
variant: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
3
|
-
export
|
|
3
|
+
export type JRCInputTextIconButtonProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
|
|
4
4
|
iconBefore: string;
|
|
5
5
|
iconButtonAfter?: {
|
|
6
6
|
icon: string;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
export declare const InputTextIconButton: React.ForwardRefExoticComponent<DataCy &
|
|
10
|
+
export declare const InputTextIconButton: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
11
11
|
iconBefore: string;
|
|
12
12
|
iconButtonAfter?: {
|
|
13
13
|
icon: string;
|
|
14
14
|
onClick: () => void;
|
|
15
15
|
} | undefined;
|
|
16
16
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
17
|
-
export declare function JRCInputTextIconButton(props: any): JSX.Element;
|
|
17
|
+
export declare function JRCInputTextIconButton(props: any): React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
5
|
+
export type JRCInputTextareaProps = DataCy & React.ComponentPropsWithoutRef<'textarea'>;
|
|
6
6
|
export declare const StyledTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, DataCy & {
|
|
7
7
|
error?: boolean | undefined;
|
|
8
8
|
valid?: boolean | undefined;
|
|
@@ -14,4 +14,4 @@ export declare const StyledTextArea: import("styled-components").StyledComponent
|
|
|
14
14
|
* validation props: required
|
|
15
15
|
* @returns JSX.Element
|
|
16
16
|
*/
|
|
17
|
-
export declare function JRCInputTextarea<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
17
|
+
export declare function JRCInputTextarea<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;
|
|
@@ -2,11 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
-
export
|
|
5
|
+
export type JRCInputTimeProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
|
|
6
6
|
/**
|
|
7
7
|
* Component used as a <input type="hour"/>
|
|
8
8
|
* @param props JRCInputFieldProps
|
|
9
9
|
* validation props: required
|
|
10
10
|
* @returns JSX.Element
|
|
11
11
|
*/
|
|
12
|
-
export declare function JRCInputTime<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
12
|
+
export declare function JRCInputTime<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): React.JSX.Element;
|