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,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Colors } from '../../styles/theme';
|
|
2
3
|
/**
|
|
3
4
|
* Props type for JRCLoader
|
|
@@ -12,6 +13,6 @@ interface JRCSpinnerProps {
|
|
|
12
13
|
interface JRCLoaderVariantProps {
|
|
13
14
|
variant?: 'spinner' | 'skeleton';
|
|
14
15
|
}
|
|
15
|
-
export
|
|
16
|
-
export declare const JRCLoader: ({ color, size, variant, className }: JRCLoaderProps) => JSX.Element;
|
|
16
|
+
export type JRCLoaderProps = JRCLoaderVariantProps & JRCSpinnerProps;
|
|
17
|
+
export declare const JRCLoader: ({ color, size, variant, className }: JRCLoaderProps) => React.JSX.Element;
|
|
17
18
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Skeleton: () => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: ({ items, defaultActiveItem }: import("./JRCMenu").JRCMenuProps) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const jrcmenu: () => JSX.Element;
|
|
7
|
+
export declare const jrcmenu: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const VerticalItemFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export interface ItemProps {
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ModalBorderRadius = 'medium' | 'small';
|
|
2
2
|
export declare const JRCModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
isFullHeight?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
@@ -8,7 +8,7 @@ import { DataCy } from '../../types/dataAttributes';
|
|
|
8
8
|
* @member children default ReactNode children in the Modal content
|
|
9
9
|
* @member variant optional style button "contained" | "outlined"
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type JRCModalImgButtonType = ComponentPropsWithoutRef<'button'> & DataCy & {
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
color?: 'primary' | 'valid' | 'danger';
|
|
14
14
|
variant?: 'contained' | 'outlined';
|
|
@@ -40,4 +40,4 @@ export interface JRCModalImgProps {
|
|
|
40
40
|
};
|
|
41
41
|
className?: string;
|
|
42
42
|
}
|
|
43
|
-
export declare const JRCModalImg: ({ open, closeHandler, buttons, children, title, showIconClose, img, className, }: JRCModalImgProps) => JSX.Element | null;
|
|
43
|
+
export declare const JRCModalImg: ({ open, closeHandler, buttons, children, title, showIconClose, img, className, }: JRCModalImgProps) => React.JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { JRCModalImgProps } from './JRCModalImg';
|
|
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 SkeletonModal: Story<JRCModalImgProps>;
|
|
7
|
-
export declare const ShowAndHideModal: () => JSX.Element;
|
|
7
|
+
export declare const ShowAndHideModal: () => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { DataCy } from '../../types/dataAttributes';
|
|
2
|
-
export
|
|
3
|
+
export type PaginationBulletProps = DataCy & {
|
|
3
4
|
number: number;
|
|
4
5
|
isActive: boolean;
|
|
5
6
|
clickHandler: (page: number) => void;
|
|
@@ -10,10 +11,10 @@ export declare type PaginationBulletProps = DataCy & {
|
|
|
10
11
|
* @member nbrOfPage number : total nb of pages
|
|
11
12
|
* @member clickHandler (page: number) => void; callback when click on a page number
|
|
12
13
|
*/
|
|
13
|
-
export
|
|
14
|
+
export type JRCPaginationProps = DataCy & {
|
|
14
15
|
activePage: number;
|
|
15
16
|
nbrOfPage: number;
|
|
16
17
|
clickHandler: (page: number) => void;
|
|
17
18
|
};
|
|
18
|
-
export declare const PaginationBullet: ({ number, isActive, dataCy, clickHandler }: PaginationBulletProps) => JSX.Element;
|
|
19
|
-
export declare const JRCPagination: ({ activePage, nbrOfPage, clickHandler, dataCy }: JRCPaginationProps) => JSX.Element;
|
|
19
|
+
export declare const PaginationBullet: ({ number, isActive, dataCy, clickHandler }: PaginationBulletProps) => React.JSX.Element;
|
|
20
|
+
export declare const JRCPagination: ({ activePage, nbrOfPage, clickHandler, dataCy }: JRCPaginationProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ModalBorderRadius = 'medium' | 'small';
|
|
2
2
|
export declare const JRCModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
position?: "left" | "right" | undefined;
|
|
4
4
|
open?: boolean | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { TSizes } from '../JRCTypography/JRCTypography.d';
|
|
2
|
-
export
|
|
3
|
+
export type JRCSkeletonLineProps = {
|
|
3
4
|
width?: string;
|
|
4
5
|
size?: TSizes;
|
|
5
6
|
lineHeight?: number;
|
|
@@ -7,4 +8,4 @@ export declare type JRCSkeletonLineProps = {
|
|
|
7
8
|
borderRadius?: string;
|
|
8
9
|
margin?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const JRCSkeletonLine: ({ width, size, lineHeight, height, borderRadius, margin, }: JRCSkeletonLineProps) => JSX.Element;
|
|
11
|
+
export declare const JRCSkeletonLine: ({ width, size, lineHeight, height, borderRadius, margin, }: JRCSkeletonLineProps) => React.JSX.Element;
|
|
@@ -7,7 +7,7 @@ export declare const VerticalWrapper: import("styled-components").StyledComponen
|
|
|
7
7
|
export declare const VerticalItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const ItemButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ItemProps, never>;
|
|
9
9
|
export declare const VerticalItemFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const JRCDefaultIconVerticalItem: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
11
11
|
/**
|
|
12
12
|
* Interface of a single Menu Item props
|
|
13
13
|
* @member label label of the tag
|
|
@@ -23,7 +23,7 @@ export interface ItemEntriesProps {
|
|
|
23
23
|
* @member direction direction of tab to horizontal or vertical
|
|
24
24
|
* @member callback tab selection handler
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type JRCTabsProps = DataCy & {
|
|
27
27
|
entries?: ItemEntriesProps[];
|
|
28
28
|
activeItem?: string;
|
|
29
29
|
direction: 'horizontal' | 'vertical';
|
|
@@ -44,4 +44,4 @@ export interface JRCTabPanelProps {
|
|
|
44
44
|
active: boolean;
|
|
45
45
|
children: React.ReactNode;
|
|
46
46
|
}
|
|
47
|
-
export declare const JRCTabPanel: ({ children, active }: JRCTabPanelProps) => JSX.Element;
|
|
47
|
+
export declare const JRCTabPanel: ({ children, active }: JRCTabPanelProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCTabsProps } from './JRCTabs';
|
|
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<JRCTabsProps>;
|
|
7
|
-
export declare const EmbeddedTab: () => JSX.Element;
|
|
7
|
+
export declare const EmbeddedTab: () => React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ import { UriOrTypeId } from 'components/Form/Common/types';
|
|
|
17
17
|
* @member fallbackUrl - url loaded if the uri leads to an undefined image
|
|
18
18
|
* @member clickVariant - whether the hover/focus style is a selectable item or a deletable item
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type JRCTagProps<T> = UriOrTypeId & {
|
|
21
21
|
collapsed?: boolean;
|
|
22
22
|
label?: string;
|
|
23
23
|
value?: T;
|
|
@@ -37,4 +37,4 @@ export declare type JRCTagProps<T> = UriOrTypeId & {
|
|
|
37
37
|
};
|
|
38
38
|
onLoad?: () => void;
|
|
39
39
|
};
|
|
40
|
-
export declare function JRCTag<T>(props: JRCTagProps<T>): JSX.Element;
|
|
40
|
+
export declare function JRCTag<T>(props: JRCTagProps<T>): React.JSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface JRCThemeProviderProps {
|
|
|
14
14
|
layout?: boolean;
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare const JRCThemeProvider: ({ layout, children }: JRCThemeProviderProps) => JSX.Element;
|
|
17
|
+
export declare const JRCThemeProvider: ({ layout, children }: JRCThemeProviderProps) => React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
export declare const tooltipSizes: {
|
|
2
3
|
padding: Record<string, string>;
|
|
3
4
|
};
|
|
4
|
-
export
|
|
5
|
-
export
|
|
5
|
+
export type TooltipSizes = keyof typeof tooltipSizes.padding;
|
|
6
|
+
export type JRCBaseTooltipProps = {
|
|
6
7
|
tooltip: any;
|
|
7
8
|
children: any;
|
|
8
9
|
dataEventOff: 'click' | 'mouseleave';
|
|
@@ -18,4 +19,4 @@ export declare type JRCBaseTooltipProps = {
|
|
|
18
19
|
delayShow?: number;
|
|
19
20
|
events?: any;
|
|
20
21
|
};
|
|
21
|
-
export declare const JRCBaseTooltip: (props: JRCBaseTooltipProps) => JSX.Element;
|
|
22
|
+
export declare const JRCBaseTooltip: (props: JRCBaseTooltipProps) => React.JSX.Element;
|
|
@@ -4,36 +4,36 @@ import * as React from 'react';
|
|
|
4
4
|
* Props Type for JRCH1
|
|
5
5
|
* @see HTML.H1 props
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
declare const JRCH1: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme,
|
|
7
|
+
export type JRCH1Props = React.ComponentPropsWithoutRef<'h1'>;
|
|
8
|
+
declare const JRCH1: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated use JRCTypography instead
|
|
11
11
|
* Props Type for JRCH2
|
|
12
12
|
* @see HTML.H2 props
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
15
|
-
declare const JRCH2: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme,
|
|
14
|
+
export type JRCH2Props = React.ComponentPropsWithoutRef<'h2'>;
|
|
15
|
+
declare const JRCH2: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated use JRCTypography instead
|
|
18
18
|
* Props Type for JRCH3
|
|
19
19
|
* @see HTML.H3 props
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
22
|
-
declare const JRCH3: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme,
|
|
21
|
+
export type JRCH3Props = React.ComponentPropsWithoutRef<'h3'>;
|
|
22
|
+
declare const JRCH3: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
|
|
23
23
|
/**
|
|
24
24
|
* @deprecated use JRCTypography instead
|
|
25
25
|
* Props Type for JRCH4
|
|
26
26
|
* @see HTML.H4 props
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
29
|
-
declare const JRCH4: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme,
|
|
28
|
+
export type JRCH4Props = React.ComponentPropsWithoutRef<'h3'>;
|
|
29
|
+
declare const JRCH4: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
|
|
30
30
|
/**
|
|
31
31
|
* @deprecated use JRCTypography instead
|
|
32
32
|
* Props Type for JRCH5
|
|
33
33
|
* @see HTML.H5 props
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
36
|
-
declare const JRCH5: import("styled-components").StyledComponent<"h5", import("styled-components").DefaultTheme,
|
|
35
|
+
export type JRCH5Props = React.ComponentPropsWithoutRef<'h5'>;
|
|
36
|
+
declare const JRCH5: import("styled-components").StyledComponent<"h5", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated use JRCTypography instead
|
|
39
39
|
* Props Type for JRCText
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { JRCH1Props, JRCH2Props, JRCH3Props, JRCH4Props, JRCH5Props, JRCTextProps } from './JRCTypo';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const H1: (args: JRCH1Props) => JSX.Element;
|
|
8
|
-
export declare const H2: (args: JRCH2Props) => JSX.Element;
|
|
9
|
-
export declare const H3: (args: JRCH3Props) => JSX.Element;
|
|
10
|
-
export declare const H4: (args: JRCH4Props) => JSX.Element;
|
|
11
|
-
export declare const H5: (args: JRCH5Props) => JSX.Element;
|
|
12
|
-
export declare const P: (args: JRCTextProps) => JSX.Element;
|
|
7
|
+
export declare const H1: (args: JRCH1Props) => React.JSX.Element;
|
|
8
|
+
export declare const H2: (args: JRCH2Props) => React.JSX.Element;
|
|
9
|
+
export declare const H3: (args: JRCH3Props) => React.JSX.Element;
|
|
10
|
+
export declare const H4: (args: JRCH4Props) => React.JSX.Element;
|
|
11
|
+
export declare const H5: (args: JRCH5Props) => React.JSX.Element;
|
|
12
|
+
export declare const P: (args: JRCTextProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FastCssProps } from 'components/Common/FastCss';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Colors, FontWeight } from '../../styles/theme';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type TSizes = 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
5
|
+
export type TVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
6
|
+
export type TWeight = keyof FontWeight;
|
|
7
7
|
/**
|
|
8
8
|
* Props type for JRCTypography
|
|
9
9
|
* @member children ReactNode content of the button
|
|
@@ -12,7 +12,7 @@ export declare type TWeight = keyof FontWeight;
|
|
|
12
12
|
* @member size You can change the font-size with the size property
|
|
13
13
|
* @member variant You can change the semantic element with the variant property
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type JRCTypographyProps = FastCssProps & {
|
|
16
16
|
/** Additional className for override the component: */
|
|
17
17
|
className?: string;
|
|
18
18
|
/** You can custom the font-weight with the weight property */
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCTypographyProps } from './JRCTypography.d';
|
|
2
|
-
export declare const JRCTypography: ({ variant, ...props }: JRCTypographyProps) => JSX.Element;
|
|
3
|
+
export declare const JRCTypography: ({ variant, ...props }: JRCTypographyProps) => React.JSX.Element;
|
|
@@ -2,11 +2,11 @@ import { FastCssProps } from 'components/Common/FastCss';
|
|
|
2
2
|
import { JRCTypographyProps } from './JRCTypography.d';
|
|
3
3
|
export declare const lineHeightRatio = 1.5;
|
|
4
4
|
export declare const SIZES: Readonly<{
|
|
5
|
-
s:
|
|
6
|
-
m:
|
|
7
|
-
l:
|
|
8
|
-
xl:
|
|
9
|
-
xxl:
|
|
10
|
-
xxxl:
|
|
5
|
+
s: 12;
|
|
6
|
+
m: 14;
|
|
7
|
+
l: 16;
|
|
8
|
+
xl: 18;
|
|
9
|
+
xxl: 24;
|
|
10
|
+
xxxl: 32;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const Typography: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, Pick<JRCTypographyProps, "color" | "size" | "weight"> & FastCssProps, never>;
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
* @member activeStep active step of the stepper. Starts at 0.
|
|
4
4
|
* @member children iterable of the steps (!!)
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type JRCFadeStepperProps = {
|
|
7
7
|
activeStep: number;
|
|
8
8
|
children: React.ReactNode | Iterable<React.ReactNode>;
|
|
9
9
|
};
|
|
10
|
-
export declare function JRCFadeStepper(props: JRCFadeStepperProps): JSX.Element | null;
|
|
10
|
+
export declare function JRCFadeStepper(props: JRCFadeStepperProps): React.JSX.Element | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* @member stepNumber step number. Like an array, if there are two items, the stepNumber should be initialized to 2
|
|
4
4
|
* @member activeStep active step of the stepper. Starts at 0.
|
|
5
5
|
* @member src image source
|
|
6
6
|
* @member alt image alternative text
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type JRCImageStepperProps = {
|
|
9
9
|
stepNumber: number;
|
|
10
10
|
activeStep: number;
|
|
11
11
|
src: string;
|
|
12
12
|
alt: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function JRCImageStepper(props: JRCImageStepperProps): JSX.Element;
|
|
14
|
+
export declare function JRCImageStepper(props: JRCImageStepperProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Step = {
|
|
3
3
|
label: string | React.ReactNode;
|
|
4
4
|
onClick?: (step: number) => void;
|
|
5
5
|
};
|
|
@@ -7,8 +7,8 @@ export declare type Step = {
|
|
|
7
7
|
* @member steps array of steps
|
|
8
8
|
* @member activeStep active step of the stepper. Starts at 0.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type JRCStepperProps = {
|
|
11
11
|
steps?: Array<Step>;
|
|
12
12
|
activeStep: number;
|
|
13
13
|
};
|
|
14
|
-
export declare function JRCStepper(props: JRCStepperProps): JSX.Element;
|
|
14
|
+
export declare function JRCStepper(props: JRCStepperProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Meta } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const FadeStepper: () => JSX.Element;
|
|
5
|
+
export declare const FadeStepper: () => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { JRCAppColumnProps } from './template.type';
|
|
3
|
-
export declare function JRCAppColumn({ description, activeTab, tabs, mode, ...props }: JRCAppColumnProps): JSX.Element;
|
|
3
|
+
export declare function JRCAppColumn({ description, activeTab, tabs, mode, ...props }: JRCAppColumnProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { Closing, JRCAppTabProps, JRCAppTabsProps, Open } from './template.type';
|
|
3
|
-
export declare function JRCAppTab({ label, active, icon, onClick, href, target, open, closing, count }: JRCAppTabProps): JSX.Element;
|
|
4
|
-
export declare function JRCAppTabs({ tabs, activeTab, ...props }: JRCAppTabsProps & Open & Closing): JSX.Element;
|
|
3
|
+
export declare function JRCAppTab({ label, active, icon, onClick, href, target, open, closing, count }: JRCAppTabProps): React.JSX.Element;
|
|
4
|
+
export declare function JRCAppTabs({ tabs, activeTab, ...props }: JRCAppTabsProps & Open & Closing): React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type JRCTemplateBaseProps = {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
title?: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const ChildrenContainerStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const ChildrenContainer: (props: JRCTemplateBaseProps) => JSX.Element;
|
|
8
|
+
export declare const ChildrenContainer: (props: JRCTemplateBaseProps) => React.JSX.Element;
|
|
9
9
|
export declare const JRCTemplateBase: React.FC<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { JRCColumnProps } from './template.type';
|
|
3
|
-
export declare function JRCColumn({ children, mode, position, ...props }: JRCColumnProps): JSX.Element;
|
|
3
|
+
export declare function JRCColumn({ children, mode, position, ...props }: JRCColumnProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { JRCMainColumnProps } from './template.type';
|
|
3
|
-
export declare function JRCMainColumn({ children, ...props }: JRCMainColumnProps): JSX.Element;
|
|
3
|
+
export declare function JRCMainColumn({ children, ...props }: JRCMainColumnProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { JRCPanelProps } from './template.type';
|
|
3
|
-
export declare function JRCPanel({ children, width, open }: JRCPanelProps): JSX.Element;
|
|
3
|
+
export declare function JRCPanel({ children, width, open }: JRCPanelProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Step } from 'components/Stepper/JRCStepper';
|
|
3
|
-
export
|
|
3
|
+
export type JRCStepperPageProps = {
|
|
4
4
|
children: React.ReactNode | Iterable<React.ReactNode>;
|
|
5
5
|
activeStep: number;
|
|
6
6
|
imgSrc: string;
|
|
@@ -9,4 +9,4 @@ export declare type JRCStepperPageProps = {
|
|
|
9
9
|
loadingContent?: React.ReactNode | string;
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const JRCStepperPage: (props: JRCStepperPageProps) => JSX.Element;
|
|
12
|
+
export declare const JRCStepperPage: (props: JRCStepperPageProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCAppLeftColumnProps, SectionEntry } from 'types';
|
|
3
3
|
import { JRCTemplateBaseProps } from './JRCBase.template';
|
|
4
|
-
export
|
|
4
|
+
export type JRCTemplateTwoColumnsProps<T extends SectionEntry> = {
|
|
5
5
|
leftColumn: JRCAppLeftColumnProps<T>;
|
|
6
6
|
} & JRCTemplateBaseProps;
|
|
7
7
|
export declare const JRCTemplateTwoColumns: React.FC<any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type LayoutMode = 'fluid' | 'center';
|
|
3
|
+
export type ColumnPosition = 'left' | 'right';
|
|
4
|
+
export type JRCContainerProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
mode?: LayoutMode;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type JRCColumnProps = {
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
width?: number;
|
|
@@ -14,29 +14,29 @@ export declare type JRCColumnProps = {
|
|
|
14
14
|
mode?: LayoutMode;
|
|
15
15
|
position?: ColumnPosition;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type JRCMainColumnProps = {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
className?: string;
|
|
20
20
|
mode?: LayoutMode;
|
|
21
21
|
padding?: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type JRCTabEntry = {
|
|
24
24
|
key: string;
|
|
25
25
|
label: string;
|
|
26
26
|
icon: string;
|
|
27
27
|
group?: string | undefined;
|
|
28
28
|
count?: number;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type TabEventProps = {
|
|
31
31
|
onClick?: (key: string) => void;
|
|
32
32
|
href?: string;
|
|
33
33
|
target?: '_blank';
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type JRCAppTabsProps = {
|
|
36
36
|
tabs: Array<JRCTabEntry & TabEventProps>;
|
|
37
37
|
activeTab?: string;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type JRCAppColumnProps = Partial<JRCAppTabsProps> & {
|
|
40
40
|
className?: string;
|
|
41
41
|
mode?: LayoutMode;
|
|
42
42
|
description: {
|
|
@@ -46,18 +46,18 @@ export declare type JRCAppColumnProps = Partial<JRCAppTabsProps> & {
|
|
|
46
46
|
description: string;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type JRCPanelProps = {
|
|
50
50
|
children: React.ReactNode;
|
|
51
51
|
width: number;
|
|
52
52
|
open: boolean;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type Open = {
|
|
55
55
|
open: boolean;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type Closing = {
|
|
58
58
|
closing: boolean;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type JRCAppTabProps = Open & Closing & {
|
|
61
61
|
label: string;
|
|
62
62
|
icon: string;
|
|
63
63
|
onClick?: () => void;
|
package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetArticleAttachmentContent } from 'jamespot-user-api';
|
|
3
|
+
export declare const CSSWidgetAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const JRCWidgetArticleAttachment: ({ files, onClick, }: WidgetArticleAttachmentContent & {
|
|
5
|
+
onClick: (idFile: number) => void;
|
|
6
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { WidgetArticleAttachmentContent } from 'jamespot-user-api';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: Story<WidgetArticleAttachmentContent & {
|
|
6
|
+
onClick: (idFile: number) => void;
|
|
7
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CombinedWidgetContent, WidgetArticleAttachmentContent, WidgetStateProps } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
type JRCWidgetArticleAttachmentEditorProps = {
|
|
4
4
|
token: string | undefined;
|
|
5
5
|
content: WidgetArticleAttachmentContent;
|
|
6
6
|
onChange: (content: CombinedWidgetContent, override?: boolean) => void;
|
|
@@ -8,5 +8,5 @@ declare type JRCWidgetArticleAttachmentEditorProps = {
|
|
|
8
8
|
onStateChange?: (state: WidgetStateProps) => void;
|
|
9
9
|
onOpen?: (view: React.ReactElement) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const JRCWidgetArticleAttachmentEditor: ({ token, content, onChange, onSave, }: JRCWidgetArticleAttachmentEditorProps) => JSX.Element;
|
|
11
|
+
export declare const JRCWidgetArticleAttachmentEditor: ({ token, content, onChange, onSave, }: JRCWidgetArticleAttachmentEditorProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WidgetArticleButtonContent, WidgetDefaultProps } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare const JRCWidgetArticleButton: ({ content, onClick, onStateChange, }: WidgetDefaultProps & {
|
|
3
4
|
content: WidgetArticleButtonContent;
|
|
4
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|