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 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const JRC404: () => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { JRCColorPickerTypes } from './JRCColorPicker.types';
|
|
2
3
|
export declare const CSSColorPickerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
4
|
expandPositionAbsolute?: boolean | undefined;
|
|
4
5
|
}, never>;
|
|
5
|
-
export declare const BETA_JRCColorPicker: (props: JRCColorPickerTypes) => JSX.Element;
|
|
6
|
+
export declare const BETA_JRCColorPicker: (props: JRCColorPickerTypes) => React.JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ColorPaletteType } from './JRCColorPicker.types';
|
|
2
3
|
export declare const CSSColorBorder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export declare const LockIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
5
|
export declare const CSSColor: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5
6
|
color: string;
|
|
6
7
|
}, never>;
|
|
7
|
-
|
|
8
|
+
type ColorPaletteProps = {
|
|
8
9
|
palette: ColorPaletteType;
|
|
9
10
|
isLocked: boolean;
|
|
10
11
|
onClick: (color: string) => void;
|
|
11
12
|
onChange?: (locked: boolean) => void;
|
|
12
13
|
};
|
|
13
|
-
export declare const ColorPalette: ({ palette, isLocked, onClick, onChange }: ColorPaletteProps) => JSX.Element;
|
|
14
|
+
export declare const ColorPalette: ({ palette, isLocked, onClick, onChange }: ColorPaletteProps) => React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const CSSColorPickerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
3
|
width: number;
|
|
3
4
|
height: number;
|
|
@@ -14,16 +15,16 @@ export declare const CSSColorPickerPicker: import("styled-components").StyledCom
|
|
|
14
15
|
top: number;
|
|
15
16
|
left: number;
|
|
16
17
|
}, never>;
|
|
17
|
-
|
|
18
|
+
type ColorPickerPaletteType = {
|
|
18
19
|
name?: string;
|
|
19
20
|
colors: string[];
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
type ColorPickerType = {
|
|
22
23
|
initialColor: string;
|
|
23
24
|
width: number;
|
|
24
25
|
height: number;
|
|
25
26
|
palettes: ColorPickerPaletteType[];
|
|
26
27
|
onChange: (color: string, trigger: boolean) => void;
|
|
27
28
|
};
|
|
28
|
-
export declare const ColorPicker: ({ initialColor, width, height, palettes, onChange }: ColorPickerType) => JSX.Element;
|
|
29
|
+
export declare const ColorPicker: ({ initialColor, width, height, palettes, onChange }: ColorPickerType) => React.JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const CSSColorRangeWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const CSSColorRangeBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
4
|
width: number;
|
|
@@ -13,4 +14,4 @@ export declare const ColorRange: ({ width, hue, onChange, }: {
|
|
|
13
14
|
width: number;
|
|
14
15
|
hue: number;
|
|
15
16
|
onChange: (color: string, hue: number, mouseIsDown: boolean) => void;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
+
}) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Vector = {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
};
|
|
@@ -9,5 +9,5 @@ export declare const DragArea: ({ children, initialPosition, width, height, onCh
|
|
|
9
9
|
width?: number | undefined;
|
|
10
10
|
height?: number | undefined;
|
|
11
11
|
onChange: (vec: Vector, mouseIsDown: boolean) => void;
|
|
12
|
-
}) => JSX.Element;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type ColorPaletteType = {
|
|
3
3
|
name?: string;
|
|
4
4
|
colors: string[];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type JRCColorPickerPaletteType = {
|
|
7
7
|
name?: string;
|
|
8
8
|
colors: string[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type JRCColorPickerTypes = {
|
|
11
11
|
label?: string | JSX.Element;
|
|
12
12
|
description?: string;
|
|
13
13
|
initialValue?: string;
|
|
@@ -16,7 +16,7 @@ export declare type JRCColorPickerTypes = {
|
|
|
16
16
|
onChange: (color: string) => void;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type Vector = {
|
|
20
20
|
x: number;
|
|
21
21
|
y: number;
|
|
22
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type BETA_JRCDoubleClickProps = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
onDoubleTap: () => void;
|
|
5
5
|
onDoubleTapMsDelay?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const BETA_JRCDoubleClick: ({ children, onDoubleTap, onDoubleTapMsDelay }: BETA_JRCDoubleClickProps) => JSX.Element;
|
|
7
|
+
export declare const BETA_JRCDoubleClick: ({ children, onDoubleTap, onDoubleTapMsDelay }: BETA_JRCDoubleClickProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JRCDragAndDropProps<T> = {
|
|
3
3
|
elms: T[];
|
|
4
4
|
renderEl: (el: T, index: number) => React.ReactNode;
|
|
5
5
|
onDrag: (dragIndex: number, hoverIndex: number) => void;
|
|
6
6
|
onDop?: (dragIndex: number, hoverIndex: number) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const BETA_JRCDragAndDrop: <T>({ elms, renderEl, onDrag }: JRCDragAndDropProps<T>) => JSX.Element;
|
|
8
|
+
export declare const BETA_JRCDragAndDrop: <T>({ elms, renderEl, onDrag }: JRCDragAndDropProps<T>) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FastCssProps = {
|
|
2
2
|
position?: 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
3
3
|
display?: 'inline' | 'block' | 'flex' | 'grid' | 'inline-block' | 'inline-flex' | 'inline-grid';
|
|
4
4
|
margin?: string;
|
|
5
5
|
padding?: string;
|
|
6
|
+
textAlign?: 'center' | 'left' | 'right';
|
|
6
7
|
};
|
|
7
8
|
export declare const FastCss: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<FastCssProps, import("styled-components").DefaultTheme>>;
|
|
@@ -6,7 +6,7 @@ export interface JRCConditionalWrapperProps {
|
|
|
6
6
|
wrapperFalse?: (children: React.ReactNode) => React.ReactNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const JRCConditionalWrapper: ({ condition, wrapper, wrapperFalse, children }: JRCConditionalWrapperProps) => JSX.Element;
|
|
9
|
+
export declare const JRCConditionalWrapper: ({ condition, wrapper, wrapperFalse, children }: JRCConditionalWrapperProps) => React.JSX.Element;
|
|
10
10
|
export interface JRCConditionalTooltipProps {
|
|
11
11
|
condition?: boolean;
|
|
12
12
|
hasLicense?: boolean;
|
|
@@ -14,4 +14,4 @@ export interface JRCConditionalTooltipProps {
|
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
className?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare const JRCConditionalTooltip: ({ condition, hasLicense, tooltip, children, className, }: JRCConditionalTooltipProps) => JSX.Element;
|
|
17
|
+
export declare const JRCConditionalTooltip: ({ condition, hasLicense, tooltip, children, className, }: JRCConditionalTooltipProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type LimitLinesProps = {
|
|
2
2
|
lines?: number | undefined;
|
|
3
3
|
};
|
|
4
4
|
export declare const LimitLines: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<LimitLinesProps, import("styled-components").DefaultTheme>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MessageType = 'success' | 'error' | 'warning';
|
|
2
2
|
export declare const getColor: (type: MessageType) => "orange" | "yellow" | "green";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const CSSCheckboxWrapper: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const EditorCheckbox: ({ initialValue, onChange, }: {
|
|
3
4
|
initialValue: boolean | undefined;
|
|
4
5
|
onChange: (status: boolean) => void;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const CSSJRCColorPicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const EditorColorPicker: ({ initialValue, onChange, }: {
|
|
3
4
|
colors?: string[] | undefined;
|
|
4
5
|
initialValue?: string | undefined;
|
|
5
6
|
onChange: (color: string) => void;
|
|
6
|
-
}) => JSX.Element;
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const CSSInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const EditorInput: ({ placeholder, initialValue, onChange, }: {
|
|
3
|
+
export declare const EditorInput: ({ label, placeholder, initialValue, onChange, }: {
|
|
4
|
+
label: string;
|
|
3
5
|
placeholder?: string | undefined;
|
|
4
6
|
initialValue: string | undefined;
|
|
5
7
|
autoFocus?: boolean | undefined;
|
|
6
8
|
onChange: (text: string) => void;
|
|
7
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type EditorSelectOption = {
|
|
2
3
|
label: string;
|
|
3
4
|
value: string;
|
|
4
5
|
};
|
|
5
|
-
export
|
|
6
|
-
export declare const EditorSelect: <T extends string>({ options, initialValue, onChange, }: {
|
|
6
|
+
export type EditorSelectOptions = EditorSelectOption[];
|
|
7
|
+
export declare const EditorSelect: <T extends string>({ label, options, initialValue, onChange, }: {
|
|
8
|
+
label: string;
|
|
7
9
|
options: EditorSelectOptions;
|
|
8
10
|
initialValue: string | undefined;
|
|
9
11
|
onChange: (value: T) => void;
|
|
10
|
-
}) => JSX.Element;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare const EditorUploader: ({ token, uniqid, label, accept, multiple, onUploadStart, onUploadSuccess, onUploadSucessEnd, }: {
|
|
3
4
|
token: string;
|
|
4
5
|
uniqid: string;
|
|
5
6
|
label: string;
|
|
6
7
|
accept: string;
|
|
7
8
|
multiple: boolean;
|
|
8
|
-
onUploadStart: (count?: number
|
|
9
|
-
onUploadSuccess: (response:
|
|
9
|
+
onUploadStart: (count?: number) => void;
|
|
10
|
+
onUploadSuccess: (response: jFileLittle) => void;
|
|
10
11
|
onUploadSucessEnd?: (() => void) | undefined;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FastCssProps } from '../../Common/FastCss';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type MouseEvents = 'click' | 'mousedown' | 'mouseup';
|
|
4
|
+
export type TouchEvents = 'touchstart' | 'touchend';
|
|
5
|
+
export type ClickAwayListenerProps = React.HTMLAttributes<HTMLElement> & FastCssProps & {
|
|
6
6
|
onClickAway: (event: MouseEvent | TouchEvent) => void;
|
|
7
7
|
mouseEvent?: MouseEvents;
|
|
8
8
|
touchEvent?: TouchEvents;
|
|
@@ -13,4 +13,4 @@ export declare type ClickAwayListenerProps = React.HTMLAttributes<HTMLElement> &
|
|
|
13
13
|
* Wrap a component with a <div/> (or another component provided as the 'as' props).
|
|
14
14
|
* Listen to outer mouse & touch events and call the onClickAway callback
|
|
15
15
|
*/
|
|
16
|
-
export declare const ClickAwayListener: ({ as, onClickAway, mouseEvent, touchEvent, ...props }: ClickAwayListenerProps) => JSX.Element;
|
|
16
|
+
export declare const ClickAwayListener: ({ as, onClickAway, mouseEvent, touchEvent, ...props }: ClickAwayListenerProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface FormDescriptionProps {
|
|
3
3
|
description: string;
|
|
4
4
|
}
|
|
5
|
-
declare const FormDescription: (props: FormDescriptionProps) => JSX.Element;
|
|
5
|
+
declare const FormDescription: (props: FormDescriptionProps) => React.JSX.Element;
|
|
6
6
|
export default FormDescription;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCTooltipProps } from '../../JRCTooltip/JRCTooltip';
|
|
2
3
|
import { Colors } from 'styles/theme';
|
|
3
4
|
/**
|
|
@@ -5,10 +6,10 @@ import { Colors } from 'styles/theme';
|
|
|
5
6
|
* @member tooltip, content of the tooltip (required)
|
|
6
7
|
* @member color, icon helper color (should be grey3 when unfocused, yellow when focused)
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export type HelperProps = {
|
|
9
10
|
tooltip: Omit<JRCTooltipProps, 'children'>;
|
|
10
11
|
color: Colors;
|
|
11
12
|
size?: number;
|
|
12
13
|
};
|
|
13
|
-
declare const FormHelper: (props: HelperProps) => JSX.Element;
|
|
14
|
+
declare const FormHelper: (props: HelperProps) => React.JSX.Element;
|
|
14
15
|
export default FormHelper;
|
|
@@ -12,5 +12,5 @@ export interface JRCFormLabelProps extends React.ComponentPropsWithoutRef<'label
|
|
|
12
12
|
htmlFor?: string;
|
|
13
13
|
labelIsLegend?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const FormLabel: (props: JRCFormLabelProps) => JSX.Element;
|
|
15
|
+
declare const FormLabel: (props: JRCFormLabelProps) => React.JSX.Element;
|
|
16
16
|
export default FormLabel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Props for an input error message
|
|
3
4
|
*
|
|
@@ -13,5 +14,5 @@ export interface FormMessageFeedbackProps {
|
|
|
13
14
|
export declare const StyledError: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
15
|
export declare const StyledWarning: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
16
|
export declare const StyledValid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
-
declare const FormMessageFeedback: (props: FormMessageFeedbackProps) => JSX.Element;
|
|
17
|
+
declare const FormMessageFeedback: (props: FormMessageFeedbackProps) => React.JSX.Element;
|
|
17
18
|
export default FormMessageFeedback;
|
|
@@ -10,7 +10,7 @@ export interface JRCValueLabelProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Type with one of (tuple type - id) and (uri) required. If both are passed, only the uri will be used
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type UriOrTypeId = Partial<TypeId> & Partial<Uri>;
|
|
14
14
|
/**
|
|
15
15
|
* Interface representing the parameters used to make a content/record uri
|
|
16
16
|
* @member type - type of the image (ex: user, fileArticle, spot, diffgroup, etc.)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { FieldError } from 'react-hook-form/dist/types/errors';
|
|
2
3
|
/**
|
|
3
4
|
* Component that displays a list of input error if any.
|
|
@@ -6,4 +7,4 @@ import { FieldError } from 'react-hook-form/dist/types/errors';
|
|
|
6
7
|
*/
|
|
7
8
|
export declare const JRCFormErrors: ({ error }: {
|
|
8
9
|
error?: FieldError | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCFormFieldRendererProps } from './JRCFormFieldRenderer.types';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
|
-
export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): JSX.Element;
|
|
4
|
+
export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): React.JSX.Element;
|
|
@@ -26,7 +26,7 @@ export interface FieldRenderProps extends DataCy {
|
|
|
26
26
|
/**
|
|
27
27
|
* react-hook-form prop alias for the required *name* and *control* props
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type NameControl<T extends FieldValues = FieldValues> = Required<Pick<UseControllerProps<T>, 'name' | 'control'>>;
|
|
30
30
|
/**
|
|
31
31
|
* Renderer Props
|
|
32
32
|
*/
|
|
@@ -36,7 +36,7 @@ export interface RendererProps<T extends FieldValues = FieldValues> {
|
|
|
36
36
|
/**
|
|
37
37
|
* Prop types of any input wrapper with react-hook-form
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & RendererProps<T> & {
|
|
40
40
|
rules?: FormControls & JRCFormControls;
|
|
41
41
|
rulesValidate?: RegisterOptions<T>['validate'];
|
|
42
42
|
margin?: string | undefined;
|
|
@@ -46,7 +46,7 @@ export declare type JRCFormFieldRendererProps<T extends FieldValues = FieldValue
|
|
|
46
46
|
/**
|
|
47
47
|
* Prop types for an input rendered by react-hook-form
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & {
|
|
50
50
|
rules?: FormControls;
|
|
51
51
|
rulesValidate?: RegisterOptions<T>['validate'];
|
|
52
52
|
margin?: string | undefined;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RegisterOptions, ValidationRule, ValidationValue } from 'react-hook-form/dist/types/validator';
|
|
3
3
|
import { IntlShape } from 'react-intl/src/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type AllowedDefaultTypes = 'required' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern';
|
|
5
|
+
export type FormControls = Pick<RegisterOptions, AllowedDefaultTypes>;
|
|
6
|
+
export type JRCFormControls = {
|
|
7
7
|
email?: ValidationRule<boolean>;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AllowedTypes = AllowedDefaultTypes | keyof JRCFormControls;
|
|
10
10
|
/**
|
|
11
11
|
* Produces a react-hook-form compatible validation object with default messages for each error type
|
|
12
12
|
* @param rules rules applied to the field
|
|
13
13
|
* @param intl translation object
|
|
14
14
|
*/
|
|
15
15
|
export declare const useFormControls: (rules: (FormControls & JRCFormControls) | undefined, intl: IntlShape) => FormControls | undefined;
|
|
16
|
-
|
|
16
|
+
type getJRCErrorsReturnType = [
|
|
17
17
|
AllowedTypes,
|
|
18
18
|
{
|
|
19
19
|
value: ValidationValue;
|
package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFormSelectProps } from '../JRCFormSelect/JRCFormSelect';
|
|
2
3
|
export interface JRCAutocompleteAudienceProps extends JRCFormSelectProps<any> {
|
|
3
4
|
onlyUser: boolean;
|
|
@@ -9,5 +10,5 @@ export interface JRCAutocompleteAudienceProps extends JRCFormSelectProps<any> {
|
|
|
9
10
|
* validation props: required
|
|
10
11
|
* @returns JSX.Element
|
|
11
12
|
*/
|
|
12
|
-
declare const JRCAutocompleteAudienceField: (props: JRCAutocompleteAudienceProps) => JSX.Element;
|
|
13
|
+
declare const JRCAutocompleteAudienceField: (props: JRCAutocompleteAudienceProps) => React.JSX.Element;
|
|
13
14
|
export { JRCAutocompleteAudienceField };
|
package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFormSelectProps } from '../JRCFormSelect/JRCFormSelect';
|
|
2
3
|
/**
|
|
3
4
|
* Component audience that returns community input according to the user input
|
|
@@ -6,5 +7,5 @@ import { JRCFormSelectProps } from '../JRCFormSelect/JRCFormSelect';
|
|
|
6
7
|
* @returns JSX.Element
|
|
7
8
|
* @deprecated use JRCInputAutocomplete and its variants instead
|
|
8
9
|
*/
|
|
9
|
-
declare const JRCAutocompleteCommunityField: (props: JRCFormSelectProps<any>) => JSX.Element;
|
|
10
|
+
declare const JRCAutocompleteCommunityField: (props: JRCFormSelectProps<any>) => React.JSX.Element;
|
|
10
11
|
export { JRCAutocompleteCommunityField };
|
package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFormSelectProps } from '../JRCFormSelect/JRCFormSelect';
|
|
2
3
|
export interface JRCAutocompleteTaxonomyProps extends JRCFormSelectProps<any> {
|
|
3
4
|
idTaxonomy: string;
|
|
@@ -9,5 +10,5 @@ export interface JRCAutocompleteTaxonomyProps extends JRCFormSelectProps<any> {
|
|
|
9
10
|
* @returns JSX.Element
|
|
10
11
|
* @deprecated use JRCInputAutocomplete and its variants instead
|
|
11
12
|
*/
|
|
12
|
-
declare const JRCAutocompleteTaxonomyField: (props: JRCAutocompleteTaxonomyProps) => JSX.Element;
|
|
13
|
+
declare const JRCAutocompleteTaxonomyField: (props: JRCAutocompleteTaxonomyProps) => React.JSX.Element;
|
|
13
14
|
export { JRCAutocompleteTaxonomyField };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFormCheckboxProps } from './JRCFormCheckbox.types';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated use JRCInputCheckbox instead
|
|
4
5
|
*/
|
|
5
6
|
export declare const JRCFormCheckbox: {
|
|
6
|
-
(props: JRCFormCheckboxProps): JSX.Element;
|
|
7
|
+
(props: JRCFormCheckboxProps): React.JSX.Element;
|
|
7
8
|
defaultProps: {
|
|
8
9
|
name: string;
|
|
9
10
|
options: never[];
|
|
@@ -8,9 +8,9 @@ export declare const FocusBackground: import("styled-components").StyledComponen
|
|
|
8
8
|
variant?: "default" | "outlined" | undefined;
|
|
9
9
|
}, never>;
|
|
10
10
|
export declare const CheckboxLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, CheckboxLabelProps, never>;
|
|
11
|
-
export
|
|
11
|
+
export type CheckboxOrToggleProps = Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> & {
|
|
12
12
|
checkboxMode?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const CheckboxOrToggle: React.ForwardRefExoticComponent<Omit<
|
|
14
|
+
export declare const CheckboxOrToggle: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
|
|
15
15
|
checkboxMode?: string | undefined;
|
|
16
16
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -6,7 +6,7 @@ import { JRCTooltipProps } from '../../../JRCTooltip/JRCTooltip';
|
|
|
6
6
|
* @member value value set in the redux form
|
|
7
7
|
* @member disabled whether the option is disabled
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type CheckboxOption = {
|
|
10
10
|
label: string | JSX.Element;
|
|
11
11
|
value: string | number;
|
|
12
12
|
disabled?: boolean;
|
|
@@ -44,7 +44,7 @@ export interface JRCFormCheckboxProps extends React.ComponentPropsWithoutRef<'in
|
|
|
44
44
|
backgroundOnSelect?: boolean;
|
|
45
45
|
reduxFormValueType?: 'array' | 'boolean';
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type CheckboxLabelProps = {
|
|
48
48
|
direction?: string;
|
|
49
49
|
variant?: string;
|
|
50
50
|
checked: boolean;
|
|
@@ -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 JRCInputColor instead
|
|
8
9
|
*/
|
|
9
|
-
export declare const JRCFormColorField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFormColorField: (props: JRCWritableFormInputProps) => React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
3
3
|
import { ControlsProps } from '../ReduxFormControls';
|
|
4
|
-
export
|
|
4
|
+
export type JRCFormDateTimeInputCustomProps = React.ComponentPropsWithoutRef<'input'>;
|
|
5
5
|
export interface JRCFormDateTimeCustomMulti {
|
|
6
6
|
isMulti?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type JRCFormDateTimeCustomFieldProps = JRCFormDateTimeInputCustomProps & ControlsProps & JRCFormDateTimeCustomMulti;
|
|
9
9
|
export interface JRCFormDateTimeCustomProps {
|
|
10
10
|
input?: any;
|
|
11
11
|
label?: string | JSX.Element;
|
|
@@ -22,11 +22,11 @@ export interface JRCFormDateTimeCustomProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated Use JRCInputDate instead
|
|
24
24
|
*/
|
|
25
|
-
export declare const JRCFormDateTimeCustomMulti: (props: any) => JSX.Element;
|
|
25
|
+
export declare const JRCFormDateTimeCustomMulti: (props: any) => React.JSX.Element;
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated Use JRCInputDate instead
|
|
28
28
|
*/
|
|
29
|
-
export declare const JRCFormDateTimeCustom: (props: JRCFormDateTimeCustomProps) => JSX.Element;
|
|
29
|
+
export declare const JRCFormDateTimeCustom: (props: JRCFormDateTimeCustomProps) => React.JSX.Element;
|
|
30
30
|
export interface JRCFormDateProps extends JRCWritableFormInputProps {
|
|
31
31
|
range?: boolean;
|
|
32
32
|
isMulti?: boolean;
|
|
@@ -41,4 +41,4 @@ export interface JRCFormDateProps extends JRCWritableFormInputProps {
|
|
|
41
41
|
* @returns JSX.Element
|
|
42
42
|
* @deprecated Use JRCInputDate instead
|
|
43
43
|
*/
|
|
44
|
-
export declare const JRCFormDatetimeField: (props: JRCFormDateProps) => JSX.Element;
|
|
44
|
+
export declare const JRCFormDatetimeField: (props: JRCFormDateProps) => 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="number"/>
|
|
@@ -6,4 +7,4 @@ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
|
|
|
6
7
|
* @returns JSX.Element
|
|
7
8
|
* @deprecated use JRCInputEmail instead
|
|
8
9
|
*/
|
|
9
|
-
export declare const JRCFormEmailField: (props: JRCWritableFormInputProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFormEmailField: (props: JRCWritableFormInputProps) => 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
|
/**
|
|
@@ -8,4 +8,4 @@ import { FieldValues } from 'react-hook-form/dist/types';
|
|
|
8
8
|
* validation props: required
|
|
9
9
|
* @returns JSX.Element
|
|
10
10
|
*/
|
|
11
|
-
export declare function JRCInputEmail<TFieldValues extends FieldValues = FieldValues>({ rules, ...props }: JRCInputFieldProps<TFieldValues>): JSX.Element;
|
|
11
|
+
export declare function JRCInputEmail<TFieldValues extends FieldValues = FieldValues>({ rules, ...props }: JRCInputFieldProps<TFieldValues>): React.JSX.Element;
|
|
@@ -53,7 +53,7 @@ export interface ExternalFormFieldRenderProps {
|
|
|
53
53
|
* @member error, the input is error regarding the validate hook
|
|
54
54
|
* @member valid, the input is valid regarding the validate hook
|
|
55
55
|
*/
|
|
56
|
-
export
|
|
56
|
+
export type InputState = DataCy & {
|
|
57
57
|
error?: boolean;
|
|
58
58
|
valid?: boolean;
|
|
59
59
|
readOnly?: boolean;
|
|
@@ -68,5 +68,5 @@ export declare const StyledDescription: import("styled-components").StyledCompon
|
|
|
68
68
|
* @returns JSX.Element
|
|
69
69
|
* @deprecated Build component compatible with react-hook-form and using the field renderer from Input/Common instead
|
|
70
70
|
*/
|
|
71
|
-
declare const JRCFormFieldRender: (props: FormFieldRenderProps) => JSX.Element;
|
|
71
|
+
declare const JRCFormFieldRender: (props: FormFieldRenderProps) => React.JSX.Element;
|
|
72
72
|
export default JRCFormFieldRender;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
3
|
export declare const File: ({ file, index, token, step, attrName, onUploadSuccess, onDeleteSuccess, }: {
|
|
3
4
|
file: File;
|
|
4
5
|
index: number;
|
|
5
6
|
step: number;
|
|
6
7
|
token: string | undefined;
|
|
7
8
|
attrName: string;
|
|
8
|
-
onUploadSuccess?: ((response:
|
|
9
|
+
onUploadSuccess?: ((response: jFileLittle, token: string) => void) | undefined;
|
|
9
10
|
onDeleteSuccess?: (() => void) | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|