jamespot-react-components 1.0.145 → 1.0.146
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/jamespot-react-components.js +499 -496
- 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 +1 -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 +2 -1
- package/build/src/components/Editors/components/EditorSelect.d.ts +4 -3
- package/build/src/components/Editors/components/EditorUploader.d.ts +3 -2
- 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 +2 -1
- package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +2 -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 +4 -4
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +3 -3
- 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 +7 -7
- 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 +3 -3
- 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/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 +3 -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 +2 -1
- package/build/src/components/JRCFileViewer/JRCFileViewerArrows.d.ts +2 -1
- package/build/src/components/JRCFileViewer/JRCFileViewerContent.d.ts +3 -2
- package/build/src/components/JRCFileViewer/JRCFileViewerContentApplication.d.ts +2 -2
- 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 +3 -2
- package/build/src/components/JRCFileViewer/types.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 +6 -6
- 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 +2 -2
- 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 +2 -1
- 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 +2 -2
- package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGalleryEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +2 -1
- 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/JRCWidgetArticleTextEditor.d.ts +3 -2
- package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +2 -1
- 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/Attachment.d.ts +5 -4
- package/build/src/components/Widgets/components/Image.d.ts +3 -2
- package/build/src/components/Widgets/components/WidgetMissingToken.d.ts +2 -1
- package/build/src/hooks/UseImageLoader.d.ts +1 -1
- 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/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 +1 -1
- package/build/src/utils/utils.date.d.ts +1 -1
- 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/pnpm-lock.yaml +0 -20909
|
@@ -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;
|
|
@@ -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,8 @@ 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;
|
|
10
11
|
export declare const Img: ({ uri, size }: {
|
|
11
12
|
uri: string;
|
|
12
13
|
size: number | undefined;
|
|
13
|
-
}) => JSX.Element;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFileViewerProps, JRCFileViewerFileProps } from './types';
|
|
2
|
-
export declare const JRCFileViewer: <T extends JRCFileViewerFileProps>({ files, children, openWithOptions, _DEBUG, }: JRCFileViewerProps<T>) => JSX.Element;
|
|
3
|
+
export declare const JRCFileViewer: <T extends JRCFileViewerFileProps>({ files, children, openWithOptions, _DEBUG, }: JRCFileViewerProps<T>) => React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFileViewerFileProps, JRCFileViewerOpenWithOptionsType } from './types';
|
|
2
|
-
|
|
3
|
+
type JRCFileViewerContentProps = {
|
|
3
4
|
file: JRCFileViewerFileProps;
|
|
4
5
|
openWithOptions: JRCFileViewerOpenWithOptionsType;
|
|
5
6
|
_DEBUG: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare const JRCFileViewerContent: ({ file, openWithOptions }: JRCFileViewerContentProps) => JSX.Element;
|
|
8
|
+
export declare const JRCFileViewerContent: ({ file, openWithOptions }: JRCFileViewerContentProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCFileViewerFileProps, JRCFileViewerOpenWithOptionType } from './types';
|
|
3
|
-
|
|
3
|
+
type JRCFileViewerContentApplicationProps = {
|
|
4
4
|
file?: JRCFileViewerFileProps;
|
|
5
5
|
options?: JRCFileViewerOpenWithOptionType[];
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare const JRCFileViewerContentApplication: ({ file, options, children }: JRCFileViewerContentApplicationProps) => JSX.Element;
|
|
8
|
+
export declare const JRCFileViewerContentApplication: ({ file, options, children }: JRCFileViewerContentApplicationProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { JRCFileViewerFileProps, JRCFileViewerOpenWithOptionType } from './types';
|
|
2
|
-
|
|
3
|
+
type JRCFileViewerOpenWithOptionsProps = {
|
|
3
4
|
file: JRCFileViewerFileProps;
|
|
4
5
|
options: JRCFileViewerOpenWithOptionType[];
|
|
5
6
|
};
|
|
6
|
-
export declare const JRCFileViewerOpenWithOptions: ({ file, options }: JRCFileViewerOpenWithOptionsProps) => JSX.Element;
|
|
7
|
+
export declare const JRCFileViewerOpenWithOptions: ({ file, options }: JRCFileViewerOpenWithOptionsProps) => React.JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type JRCFileViewerProps<T> = {
|
|
3
3
|
files: T[];
|
|
4
4
|
openWithOptions: JRCFileViewerOpenWithOptionsType;
|
|
5
5
|
children(setIndex: (idFile: number) => void): React.ReactElement<HTMLElement>;
|
|
6
6
|
_DEBUG: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type JRCFileViewerFileProps = {
|
|
9
9
|
id: number;
|
|
10
10
|
type: string;
|
|
11
11
|
mimetype: string;
|
|
12
12
|
title: string;
|
|
13
13
|
uri?: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type JRCFileViewerOpenWithOptionsType = Record<string, JRCFileViewerOpenWithOptionType[]>;
|
|
16
|
+
export type JRCFileViewerOpenWithOptionType = {
|
|
17
17
|
label: string;
|
|
18
18
|
onClick: (item: JRCFileViewerFileProps | undefined) => void;
|
|
19
19
|
};
|
|
@@ -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;
|
|
@@ -4,17 +4,17 @@ import { DataCy } from '../../types/dataAttributes';
|
|
|
4
4
|
* Props type for JRCLinkToArticle and JRCLinkToUser
|
|
5
5
|
* @member idObject number : id of the record
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type JRCLinkToProps = DataCy & React.ComponentPropsWithoutRef<'a'> & {
|
|
8
8
|
idObject?: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type NativeProps = React.ComponentPropsWithoutRef<'a'> & {
|
|
11
11
|
useLink?: boolean;
|
|
12
12
|
hasLicense?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type AnchorProps = {
|
|
15
15
|
as?: 'a';
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type ButtonProps = {
|
|
18
18
|
variant?: 'contained' | 'outlined';
|
|
19
19
|
color?: 'primary' | 'valid' | 'danger' | 'secondary';
|
|
20
20
|
float?: 'left' | 'right';
|
|
@@ -26,6 +26,6 @@ declare type ButtonProps = {
|
|
|
26
26
|
* Props type for JRCStyledHref
|
|
27
27
|
* @member as render the link styled as a button
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
30
|
-
export declare const JRCStyledHref: ({ dataCy, hasLicense, href, useLink, ...props }: JRCStyledHrefProps) => JSX.Element;
|
|
29
|
+
export type JRCStyledHrefProps = DataCy & (AnchorProps | ButtonProps) & NativeProps;
|
|
30
|
+
export declare const JRCStyledHref: ({ dataCy, hasLicense, href, useLink, ...props }: JRCStyledHrefProps) => React.JSX.Element;
|
|
31
31
|
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;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ModalBorderRadius = 'medium' | 'small';
|
|
2
2
|
export declare const JRCModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
-
position?: "
|
|
3
|
+
position?: "right" | "left" | undefined;
|
|
4
4
|
open?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -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;
|