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
|
@@ -6,4 +6,4 @@ import * as React from 'react';
|
|
|
6
6
|
export interface JRCColumnLeftProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const JRCColumnLeft: (props: JRCColumnLeftProps) => JSX.Element;
|
|
9
|
+
export declare const JRCColumnLeft: (props: JRCColumnLeftProps) => React.JSX.Element;
|
|
@@ -6,4 +6,4 @@ import * as React from 'react';
|
|
|
6
6
|
export interface JRCColumnRightProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const JRCColumnRight: (props: JRCColumnRightProps) => JSX.Element;
|
|
9
|
+
export declare const JRCColumnRight: (props: JRCColumnRightProps) => React.JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Area as _Area, Point as _Point, Size as _Size } from 'react-easy-crop/types';
|
|
3
3
|
import { JRCModalProps } from '../JRCModal/JRCModal';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export type Size = _Size;
|
|
5
|
+
export type Point = _Point;
|
|
6
|
+
export type Area = _Area;
|
|
7
|
+
export type JRCCropImageProps = Pick<JRCModalProps, 'open' | 'closeHandler'> & {
|
|
8
8
|
aspectRatio?: number | undefined;
|
|
9
9
|
src?: string | undefined;
|
|
10
10
|
save: (cropConfig: Area & {
|
|
11
11
|
rotation: number;
|
|
12
12
|
}) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare function JRCCropImage(props: JRCCropImageProps): JSX.Element;
|
|
14
|
+
export declare function JRCCropImage(props: JRCCropImageProps): React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { DateFormat } from 'utils/utils.date';
|
|
2
3
|
export interface JRCDateProps {
|
|
3
4
|
date?: string;
|
|
4
5
|
format?: DateFormat;
|
|
5
6
|
}
|
|
6
|
-
export declare const JRCDate: (props: JRCDateProps) => JSX.Element | null;
|
|
7
|
+
export declare const JRCDate: (props: JRCDateProps) => React.JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCDateProps } from './JRCDate';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (props: JRCDateProps) => JSX.Element | null;
|
|
5
|
+
component: (props: JRCDateProps) => React.JSX.Element | null;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
import { Story } from '@storybook/react';
|
|
@@ -4,4 +4,4 @@ export interface JRCDropDownProps {
|
|
|
4
4
|
dropdown: React.ReactNode;
|
|
5
5
|
align?: 'left' | 'right';
|
|
6
6
|
}
|
|
7
|
-
export declare const JRCDropDown: ({ trigger, dropdown, align }: JRCDropDownProps) => JSX.Element;
|
|
7
|
+
export declare const JRCDropDown: ({ trigger, dropdown, align }: JRCDropDownProps) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCTooltipProps } from '../JRCTooltip/JRCTooltip';
|
|
2
|
-
export
|
|
3
|
+
export type JRCEllipsisProps = {
|
|
3
4
|
label?: string;
|
|
4
5
|
length: number;
|
|
5
6
|
position?: JRCTooltipProps['position'];
|
|
6
7
|
};
|
|
7
|
-
export declare const JRCEllipsis: ({ label, length, position }: JRCEllipsisProps) => JSX.Element;
|
|
8
|
+
export declare const JRCEllipsis: ({ label, length, position }: JRCEllipsisProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type EmptySpaceBgColor = 'sandLight' | 'sky15';
|
|
3
|
+
export type JRCEmptySpaceProps = {
|
|
4
|
+
img: string;
|
|
5
|
+
imgAlt?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
actions?: React.ReactChild;
|
|
9
|
+
bgColor?: EmptySpaceBgColor;
|
|
10
|
+
};
|
|
11
|
+
export declare const JRCEmptySpace: React.FC<JRCEmptySpaceProps>;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFileProps } from './types';
|
|
2
3
|
export declare const CSSFile: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
4
|
size: number;
|
|
4
5
|
backgroundColor: string;
|
|
5
6
|
}, never>;
|
|
6
|
-
export declare const JRCFileAvatar: ({ uri, size, mimetype }: JRCFileProps) => JSX.Element;
|
|
7
|
+
export declare const JRCFileAvatar: ({ uri, size, mimetype }: JRCFileProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFileProps } from './types';
|
|
2
3
|
export declare const BackgroundImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
4
|
uri: string;
|
|
@@ -6,8 +7,11 @@ export declare const Image: import("styled-components").StyledComponent<"img", i
|
|
|
6
7
|
maxWidth: number;
|
|
7
8
|
maxHeight: number;
|
|
8
9
|
}, never>;
|
|
9
|
-
export declare const JRCFileImage: ({ uri, size, mimetype, display }: JRCFileProps) => JSX.Element;
|
|
10
|
+
export declare const JRCFileImage: ({ uri, size, mimetype, display }: JRCFileProps) => React.JSX.Element;
|
|
11
|
+
export declare const BackgroundImageLoader: ({ uri }: {
|
|
12
|
+
uri: string;
|
|
13
|
+
}) => React.JSX.Element;
|
|
10
14
|
export declare const Img: ({ uri, size }: {
|
|
11
15
|
uri: string;
|
|
12
16
|
size: number | undefined;
|
|
13
|
-
}) => JSX.Element;
|
|
17
|
+
}) => React.JSX.Element;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JRCFileViewerProps } from './types';
|
|
3
|
+
export declare const JRCFileViewer: <T extends {
|
|
4
|
+
title: string;
|
|
5
|
+
id: number;
|
|
6
|
+
type: string;
|
|
7
|
+
uri: string;
|
|
8
|
+
mainType: string;
|
|
9
|
+
dateCreation: string;
|
|
10
|
+
_url: string;
|
|
11
|
+
dateModified: string | null;
|
|
12
|
+
mimetype: string;
|
|
13
|
+
path?: string | undefined;
|
|
14
|
+
}>({ files, size, children, openWithOptions, }: JRCFileViewerProps<T>) => React.JSX.Element;
|
|
@@ -13,4 +13,5 @@ export declare const CSSFileViewerImageBackground: import("styled-components").S
|
|
|
13
13
|
uri: string;
|
|
14
14
|
}, never>;
|
|
15
15
|
export declare const CSSFileViewerArrowsButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
export declare const CSSFileViewerStep: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
16
17
|
export declare const CSSFileViewerArrows: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type JRCFileViewerArrowsProps = {
|
|
3
|
+
index: number;
|
|
4
|
+
total: number;
|
|
2
5
|
onRelease: (direction: string) => void;
|
|
3
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCFileViewerArrows: ({ index, total, onRelease }: JRCFileViewerArrowsProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JRCFileViewerOpenWithOptionsType } from './types';
|
|
3
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
4
|
+
type JRCFileViewerContentProps = {
|
|
5
|
+
file: jFileLittle;
|
|
6
|
+
size?: string;
|
|
4
7
|
openWithOptions: JRCFileViewerOpenWithOptionsType;
|
|
5
|
-
_DEBUG: boolean;
|
|
6
8
|
};
|
|
7
|
-
export declare const JRCFileViewerContent: ({ file, openWithOptions }: JRCFileViewerContentProps) => JSX.Element;
|
|
9
|
+
export declare const JRCFileViewerContent: ({ file, size, openWithOptions }: JRCFileViewerContentProps) => React.JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { JRCFileViewerOpenWithOptionType } from './types';
|
|
3
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
4
|
+
type JRCFileViewerContentApplicationProps = {
|
|
5
|
+
file?: jFileLittle;
|
|
5
6
|
options?: JRCFileViewerOpenWithOptionType[];
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
};
|
|
8
|
-
export declare const JRCFileViewerContentApplication: ({ file, options, children }: JRCFileViewerContentApplicationProps) => JSX.Element;
|
|
9
|
+
export declare const JRCFileViewerContentApplication: ({ file, options, children }: JRCFileViewerContentApplicationProps) => React.JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { JRCFileViewerOpenWithOptionType } from './types';
|
|
3
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
4
|
+
type JRCFileViewerOpenWithOptionsProps = {
|
|
5
|
+
file: jFileLittle;
|
|
4
6
|
options: JRCFileViewerOpenWithOptionType[];
|
|
5
7
|
};
|
|
6
|
-
export declare const JRCFileViewerOpenWithOptions: ({ file, options }: JRCFileViewerOpenWithOptionsProps) => JSX.Element;
|
|
8
|
+
export declare const JRCFileViewerOpenWithOptions: ({ file, options }: JRCFileViewerOpenWithOptionsProps) => React.JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
3
|
+
export type JRCFileViewerProps<T> = {
|
|
3
4
|
files: T[];
|
|
5
|
+
size?: string;
|
|
4
6
|
openWithOptions: JRCFileViewerOpenWithOptionsType;
|
|
5
7
|
children(setIndex: (idFile: number) => void): React.ReactElement<HTMLElement>;
|
|
6
|
-
_DEBUG: boolean;
|
|
7
8
|
};
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
type: string;
|
|
11
|
-
mimetype: string;
|
|
12
|
-
title: string;
|
|
13
|
-
uri?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type JRCFileViewerOpenWithOptionsType = Record<string, JRCFileViewerOpenWithOptionType[]>;
|
|
16
|
-
export declare type JRCFileViewerOpenWithOptionType = {
|
|
9
|
+
export type JRCFileViewerOpenWithOptionsType = Record<string, JRCFileViewerOpenWithOptionType[]>;
|
|
10
|
+
export type JRCFileViewerOpenWithOptionType = {
|
|
17
11
|
label: string;
|
|
18
|
-
onClick: (item:
|
|
12
|
+
onClick: (item: jFileLittle | undefined) => void;
|
|
19
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function videoUrl(file:
|
|
3
|
-
export declare function audioUrl(file:
|
|
4
|
-
export declare function imageUrl(file:
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
+
export declare function videoUrl(file: jFileLittle): string;
|
|
3
|
+
export declare function audioUrl(file: jFileLittle): string;
|
|
4
|
+
export declare function imageUrl(file: jFileLittle, size?: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FastCssProps } from '../Common/FastCss';
|
|
2
|
-
|
|
2
|
+
type FlexBoxProps = Omit<FastCssProps, 'display'> & {
|
|
3
3
|
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
4
4
|
inline?: boolean;
|
|
5
5
|
flex?: boolean | string;
|
|
@@ -9,15 +9,15 @@ declare type FlexBoxProps = Omit<FastCssProps, 'display'> & {
|
|
|
9
9
|
childFull?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const JRCFlexBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Omit<FastCssProps, "display"> & {
|
|
12
|
-
direction?: "row" | "column" | "
|
|
12
|
+
direction?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
|
13
13
|
inline?: boolean | undefined;
|
|
14
14
|
flex?: string | boolean | undefined;
|
|
15
15
|
gap?: number | undefined;
|
|
16
|
-
x?: "
|
|
17
|
-
y?: "
|
|
16
|
+
x?: "center" | "flex-start" | "flex-end" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
17
|
+
y?: "center" | "flex-start" | "flex-end" | "space-around" | "space-between" | "space-evenly" | undefined;
|
|
18
18
|
childFull?: boolean | undefined;
|
|
19
19
|
}, never>;
|
|
20
|
-
export
|
|
20
|
+
export type JRCFlexBoxProps = FlexBoxProps & {
|
|
21
21
|
as?: string;
|
|
22
22
|
};
|
|
23
23
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { FolderType } from 'jamespot-user-api';
|
|
2
3
|
declare const JRCFolderBreadcrumb: ({ entries, onPress, }: {
|
|
3
4
|
entries: Array<FolderType>;
|
|
4
5
|
onPress: (entry: FolderType) => void;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
6
7
|
export { JRCFolderBreadcrumb };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFoldersProps } from './types';
|
|
2
3
|
export declare const inUriArray: (arr: Array<string>, uriValue: string) => boolean;
|
|
3
4
|
export declare const updateUriArray: (arr: string[], uriValue: string) => Array<string>;
|
|
4
|
-
export declare const JRCFolders: ({ loadDocuments, allowMultiSelection, asyncBanksPromise, asyncFoldersPromise, asyncDocumentsPromise, initialFolders, initialDocuments, onSelectFolder, onSelectDocument, }: JRCFoldersProps) => JSX.Element;
|
|
5
|
+
export declare const JRCFolders: ({ loadDocuments, allowMultiSelection, asyncBanksPromise, asyncFoldersPromise, asyncDocumentsPromise, initialFolders, initialDocuments, onSelectFolder, onSelectDocument, }: JRCFoldersProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Story } from '@storybook/react';
|
|
3
3
|
import { JRCFoldersProps } from './types';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ loadDocuments, allowMultiSelection, asyncBanksPromise, asyncFoldersPromise, asyncDocumentsPromise, initialFolders, initialDocuments, onSelectFolder, onSelectDocument, }: JRCFoldersProps) => JSX.Element;
|
|
6
|
+
component: ({ loadDocuments, allowMultiSelection, asyncBanksPromise, asyncFoldersPromise, asyncDocumentsPromise, initialFolders, initialDocuments, onSelectFolder, onSelectDocument, }: JRCFoldersProps) => React.JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const Folders: Story<JRCFoldersProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiPagingResults, ApiWrapper, FileBankDocument, FileBankProps, FolderType } from 'jamespot-user-api';
|
|
2
|
-
export
|
|
2
|
+
export type JRCFoldersProps = {
|
|
3
3
|
loadDocuments?: boolean;
|
|
4
4
|
initialFolders?: string[];
|
|
5
5
|
initialDocuments?: string[];
|
|
@@ -18,7 +18,7 @@ export interface JRCFolderProps {
|
|
|
18
18
|
color: string;
|
|
19
19
|
size: 'sm' | 'md' | 'lg';
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type FolderProps = {
|
|
22
22
|
id: number | string;
|
|
23
23
|
type: 'folder' | 'rootFolder';
|
|
24
24
|
uri: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (props: import("./JRCGrid").JRCGridProps) => JSX.Element;
|
|
4
|
+
component: (props: import("./JRCGrid").JRCGridProps) => React.JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const Grid_1_col: () => JSX.Element;
|
|
8
|
-
export declare const Grid_2_col_Left_Center: () => JSX.Element;
|
|
9
|
-
export declare const Grid_3_col_Left_Center_Right: () => JSX.Element;
|
|
7
|
+
export declare const Grid_1_col: () => React.JSX.Element;
|
|
8
|
+
export declare const Grid_2_col_Left_Center: () => React.JSX.Element;
|
|
9
|
+
export declare const Grid_3_col_Left_Center_Right: () => React.JSX.Element;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataCy } from '../../types/dataAttributes';
|
|
3
|
+
import { ButtonColors } from '../JRCButton/JRCButton';
|
|
3
4
|
/**
|
|
4
5
|
* Props type for JRCLinkToArticle and JRCLinkToUser
|
|
5
6
|
* @member idObject number : id of the record
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type JRCLinkToProps = DataCy & React.ComponentPropsWithoutRef<'a'> & {
|
|
8
9
|
idObject?: number;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
type NativeProps = React.ComponentPropsWithoutRef<'a'> & {
|
|
11
12
|
useLink?: boolean;
|
|
12
13
|
hasLicense?: boolean;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
type AnchorProps = {
|
|
15
16
|
as?: 'a';
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
type ButtonProps = {
|
|
18
19
|
variant?: 'contained' | 'outlined';
|
|
19
|
-
color?:
|
|
20
|
+
color?: ButtonColors;
|
|
20
21
|
float?: 'left' | 'right';
|
|
21
22
|
disabled?: boolean;
|
|
22
23
|
children?: React.ReactNode;
|
|
@@ -26,6 +27,6 @@ declare type ButtonProps = {
|
|
|
26
27
|
* Props type for JRCStyledHref
|
|
27
28
|
* @member as render the link styled as a button
|
|
28
29
|
*/
|
|
29
|
-
export
|
|
30
|
-
export declare const JRCStyledHref: ({ dataCy, hasLicense, href, useLink, ...props }: JRCStyledHrefProps) => JSX.Element;
|
|
30
|
+
export type JRCStyledHrefProps = DataCy & (AnchorProps | ButtonProps) & NativeProps;
|
|
31
|
+
export declare const JRCStyledHref: ({ dataCy, hasLicense, href, useLink, ...props }: JRCStyledHrefProps) => React.JSX.Element;
|
|
31
32
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { LimitLinesProps } from '../Common/LimitLines';
|
|
3
|
-
export
|
|
3
|
+
export type JRCHtmlProps = LimitLinesProps & {
|
|
4
4
|
className?: string;
|
|
5
5
|
as?: React.ElementType | keyof JSX.IntrinsicElements;
|
|
6
6
|
__html: string | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare const JRCHtml: React.ForwardRefExoticComponent<LimitLinesProps & {
|
|
9
9
|
className?: string | undefined;
|
|
10
|
-
as?: "symbol" | "object" | "g" | "b" | "div" | "
|
|
10
|
+
as?: "symbol" | "object" | "g" | "b" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
|
|
11
11
|
__html: string | undefined;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Props type for JRCIcon
|
|
3
4
|
* @property name string: Name of the icon (required)
|
|
@@ -20,4 +21,4 @@ export interface JRCIconProps {
|
|
|
20
21
|
isMargin?: boolean;
|
|
21
22
|
className?: string;
|
|
22
23
|
}
|
|
23
|
-
export declare const JRCIcon: ({ color, variant, name, size, isMargin, className, }: JRCIconProps) => JSX.Element;
|
|
24
|
+
export declare const JRCIcon: ({ color, variant, name, size, isMargin, className, }: JRCIconProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCIconProps } from './JRCIcon';
|
|
3
3
|
import { Meta, Story } from '@storybook/react';
|
|
4
4
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Primary: Story<JRCIconProps>;
|
|
7
|
-
export declare const AllIcons: () => JSX.Element;
|
|
7
|
+
export declare const AllIcons: () => React.JSX.Element;
|
|
@@ -16,7 +16,7 @@ import { DataCy } from '../../types/dataAttributes';
|
|
|
16
16
|
* @member variant can be 'circle' | 'square';
|
|
17
17
|
* @member hasLicense If false, the button will be disabled with a license tooltip. Default to true
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type JRCIconButtonProps = Omit<React.ComponentPropsWithoutRef<'button'>, 'onClick'> & DataCy & {
|
|
20
20
|
icon: string;
|
|
21
21
|
size?: 'small' | 'medium';
|
|
22
22
|
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -36,7 +36,7 @@ declare const defaultProps: {
|
|
|
36
36
|
size: string;
|
|
37
37
|
};
|
|
38
38
|
declare const JRCIconButton: {
|
|
39
|
-
({ hasLicense, ...props }: JRCIconButtonProps & typeof defaultProps): JSX.Element;
|
|
39
|
+
({ hasLicense, ...props }: JRCIconButtonProps & typeof defaultProps): React.JSX.Element;
|
|
40
40
|
defaultProps: {
|
|
41
41
|
type: string;
|
|
42
42
|
variant: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ImgUrlProps } from 'jamespot-user-api';
|
|
2
3
|
/**
|
|
3
4
|
* @see ImgUrlProps
|
|
@@ -27,11 +28,11 @@ import { ImgUrlProps } from 'jamespot-user-api';
|
|
|
27
28
|
*
|
|
28
29
|
* @property className - className of the <img /> tag
|
|
29
30
|
*/
|
|
30
|
-
export
|
|
31
|
+
export type JRCImgProps = ImgUrlProps & {
|
|
31
32
|
loading?: 'eager' | 'lazy';
|
|
32
33
|
alt: string;
|
|
33
34
|
className?: string;
|
|
34
35
|
onError?: () => void;
|
|
35
36
|
onLoad?: () => void;
|
|
36
37
|
};
|
|
37
|
-
export declare const JRCImg: (props: JRCImgProps) => JSX.Element;
|
|
38
|
+
export declare const JRCImg: (props: JRCImgProps) => React.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Column } from 'react-table';
|
|
2
3
|
import type { Orders } from 'jamespot-user-api';
|
|
3
|
-
export
|
|
4
|
+
export type LoadMorePagination = {
|
|
4
5
|
type: 'loadMore';
|
|
5
6
|
end: boolean;
|
|
6
7
|
};
|
|
7
|
-
export
|
|
8
|
+
export type PaginationPagination = {
|
|
8
9
|
type?: 'pagination';
|
|
9
10
|
page: number;
|
|
10
11
|
perPage: number;
|
|
@@ -18,7 +19,7 @@ export declare type PaginationPagination = {
|
|
|
18
19
|
* @member config config object. See the Type for use
|
|
19
20
|
* @member className className
|
|
20
21
|
*/
|
|
21
|
-
export
|
|
22
|
+
export type JRCListProps<T extends Record<string, unknown>> = {
|
|
22
23
|
columns: Array<Column<T>>;
|
|
23
24
|
data: Array<T>;
|
|
24
25
|
eventHandlers?: {
|
|
@@ -34,4 +35,4 @@ export declare type JRCListProps<T extends Record<string, unknown>> = {
|
|
|
34
35
|
};
|
|
35
36
|
className?: string;
|
|
36
37
|
};
|
|
37
|
-
export declare const JRCList: <T extends Record<string, unknown>>(props: JRCListProps<T>) => JSX.Element;
|
|
38
|
+
export declare const JRCList: <T extends Record<string, unknown>>(props: JRCListProps<T>) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { JRCListProps } from './JRCList';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
|
|
5
|
+
type MyData = {
|
|
6
6
|
uri: string;
|
|
7
7
|
col1: number;
|
|
8
8
|
col2: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const Table: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const Thead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const TBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -10,16 +10,16 @@ export declare const Tr: import("styled-components").StyledComponent<"tr", impor
|
|
|
10
10
|
}, never>;
|
|
11
11
|
export declare const Td: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, never>;
|
|
12
12
|
export declare const LoadMore: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
-
export
|
|
13
|
+
export type DraggableTBodyProps = {
|
|
14
14
|
draggable: boolean;
|
|
15
15
|
children: Array<JSX.Element>;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type DraggableTrProps = {
|
|
18
18
|
index: number;
|
|
19
19
|
onDrag: (dragIndex: number, dropIndex: number) => void;
|
|
20
20
|
onDrop: () => void;
|
|
21
21
|
draggable: boolean;
|
|
22
22
|
children: Array<JSX.Element>;
|
|
23
23
|
};
|
|
24
|
-
export declare const DraggableTBody: ({ draggable, children }: DraggableTBodyProps) => JSX.Element;
|
|
25
|
-
export declare const DraggableTr: ({ index, onDrag, onDrop, draggable, children }: DraggableTrProps) => JSX.Element;
|
|
24
|
+
export declare const DraggableTBody: ({ draggable, children }: DraggableTBodyProps) => React.JSX.Element;
|
|
25
|
+
export declare const DraggableTr: ({ index, onDrag, onDrop, draggable, children }: DraggableTrProps) => React.JSX.Element;
|