jamespot-react-components 1.2.38 → 1.2.40
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 +1290 -993
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Common/FormMessageFeedback.stories.d.ts +7 -0
- package/build/src/components/Form/Input/Common/JRCFormErrors.stories.d.ts +9 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +8 -7
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +10 -1
- package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +3 -7
- package/build/src/components/Form/Input/JRCInputDateTime/DayPickerStyle.d.ts +2 -0
- package/build/src/components/Form/Input/JRCInputDateTime/JRCInputDateTime.d.ts +5 -4
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.styles.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputImage/types.d.ts +2 -2
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +21 -3
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +1 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +1 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +3 -0
- package/build/src/components/JRCAlert/JRCAlert.d.ts +5 -1
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -0
- package/build/src/components/JRCCalendar/JRCCalendar.d.ts +34 -2
- package/build/src/components/JRCCalendar/JRCCalendarEvent.d.ts +33 -2
- package/build/src/components/JRCCalendar/JRCCalendarModal.d.ts +3 -1
- package/build/src/components/JRCCalendar/JRCEventStatusButton.d.ts +3 -1
- package/build/src/components/JRCDate/JRCDate.d.ts +1 -1
- package/build/src/components/JRCDragNDrop/DndProvider.d.ts +5 -0
- package/build/src/components/JRCDragNDrop/Draggable.d.ts +12 -0
- package/build/src/components/JRCDragNDrop/Droppable.d.ts +8 -0
- package/build/src/components/JRCDragNDrop/JRCDndTwoLevelWithStack.d.ts +2 -0
- package/build/src/components/JRCDragNDrop/JRCDndTwoLevelWithStack.stories.d.ts +9 -0
- package/build/src/components/JRCDragNDrop/index.d.ts +5 -0
- package/build/src/components/JRCDragNDrop/styles.d.ts +50 -0
- package/build/src/components/JRCDragNDrop/types.d.ts +65 -0
- package/build/src/components/JRCDropDown/JRCDropDown.d.ts +4 -1
- package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +1 -1
- package/build/src/components/JRCIconButton/JRCIconButton.d.ts +2 -0
- package/build/src/components/JRCIconButton/JRCIconButton.stories.d.ts +8 -2
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +8 -6
- package/build/src/components/JRCModal/JRCModalContent.d.ts +11 -4
- package/build/src/components/JRCModal/JRCModalContentForm.d.ts +3 -2
- package/build/src/components/JRCModal/JRCModalLayout.d.ts +7 -3
- package/build/src/components/JRCModal/templates/JRCModal.d.ts +1 -1
- package/build/src/components/JRCModal/templates/JRCModal.types.d.ts +8 -3
- package/build/src/components/JRCModal/templates/JRCModalForm.d.ts +1 -1
- package/build/src/components/JRCModal/types.d.ts +1 -0
- package/build/src/components/JRCQRCode/JRCQRCode.d.ts +6 -0
- package/build/src/components/JRCQRCode/JRCQRCode.stories.d.ts +6 -0
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +2 -29
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.stories.d.ts +1 -1
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +10 -8
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModalForm.d.ts +2 -0
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModalForm.stories.d.ts +5 -0
- package/build/src/components/JRCSidePanelModal/SidePanel.d.ts +2 -0
- package/build/src/components/JRCSidePanelModal/types.d.ts +18 -0
- package/build/src/components/JRCTag/JRCTag.d.ts +2 -0
- package/build/src/components/Templates/template.styles.d.ts +0 -1
- package/build/src/components/index.d.ts +2 -0
- package/build/src/index.d.ts +1 -0
- package/build/src/types.d.ts +2 -1
- package/build/src/utils/utils.date.d.ts +9 -6
- package/package.json +6 -2
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonColors } from '../JRCButton/types';
|
|
3
|
+
import { ModalOverflow } from './types';
|
|
3
4
|
export type JRCModalContentBase = {
|
|
4
5
|
title?: ReactNode;
|
|
6
|
+
subTitle?: ReactNode;
|
|
5
7
|
children?: ReactNode;
|
|
6
8
|
options?: ReactNode;
|
|
7
|
-
overflow?:
|
|
9
|
+
overflow?: ModalOverflow;
|
|
8
10
|
onClickIconClose?: () => void;
|
|
9
11
|
dataCy?: string;
|
|
10
12
|
};
|
|
11
13
|
export type JRCModalContentProps = JRCModalContentBase & {
|
|
12
14
|
isFull?: boolean;
|
|
13
15
|
buttons?: JRCModalButtonType[];
|
|
16
|
+
contentBackgroundColor?: boolean;
|
|
14
17
|
};
|
|
15
18
|
export interface JRCModalButtonType {
|
|
16
19
|
children: ReactNode;
|
|
@@ -24,7 +27,11 @@ export interface JRCModalButtonType {
|
|
|
24
27
|
export declare const ModalOptions: ({ children }: {
|
|
25
28
|
children?: ReactNode;
|
|
26
29
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare const ModalTitle: ({
|
|
28
|
-
|
|
30
|
+
export declare const ModalTitle: ({ title, subTitle }: {
|
|
31
|
+
title?: ReactNode;
|
|
32
|
+
subTitle?: ReactNode;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const ModalDescription: ({ children }: {
|
|
35
|
+
children?: React.ReactNode;
|
|
29
36
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare const JRCModalContent: ({ title, onClickIconClose, overflow, options, children, buttons, isFull, dataCy, }: JRCModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const JRCModalContent: ({ title, subTitle, onClickIconClose, overflow, options, children, buttons, isFull, dataCy, contentBackgroundColor, }: JRCModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FormEvent } from 'react';
|
|
2
2
|
import { JRCModalButtonType, JRCModalContentBase } from './JRCModalContent';
|
|
3
|
-
export type
|
|
3
|
+
export type JRCModalContentFormExtra = {
|
|
4
4
|
buttons?: JRCModalFormButtonType[];
|
|
5
5
|
onSubmit: (e: FormEvent) => Promise<void>;
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
};
|
|
8
|
+
export type JRCModalContentFormProps = JRCModalContentBase & JRCModalContentFormExtra;
|
|
8
9
|
export interface JRCModalFormButtonType extends JRCModalButtonType {
|
|
9
10
|
isSubmit?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const JRCModalContentForm: ({ onSubmit, children, loading, title, onClickIconClose, options, buttons, overflow, }: JRCModalContentFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const JRCModalContentForm: ({ onSubmit, children, loading, title, onClickIconClose, options, buttons, overflow, subTitle, }: JRCModalContentFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import { ModalBorderRadius } from './JRCModal.styles';
|
|
3
|
+
import { JRCIconButtonProps } from '../JRCIconButton/JRCIconButton';
|
|
3
4
|
import { ModalVariant } from './types';
|
|
4
5
|
export interface JRCModalLayoutProps {
|
|
5
6
|
open: boolean;
|
|
@@ -11,10 +12,13 @@ export interface JRCModalLayoutProps {
|
|
|
11
12
|
inPlace?: boolean;
|
|
12
13
|
className?: string;
|
|
13
14
|
maxHeight?: string;
|
|
14
|
-
variant?: ModalVariant;
|
|
15
|
-
overflow?: 'visible' | 'hidden';
|
|
16
|
-
zIndex?: number;
|
|
17
15
|
minHeight?: string;
|
|
18
16
|
focusOnCloseRef?: RefObject<HTMLElement>;
|
|
17
|
+
extraTopButtons?: JRCIconButtonProps[];
|
|
18
|
+
maxWidth?: string;
|
|
19
|
+
variant?: ModalVariant;
|
|
20
|
+
contentBackgroundColor?: boolean;
|
|
21
|
+
overflow?: 'hidden' | 'scroll' | 'visible' | 'auto';
|
|
22
|
+
zIndex?: number;
|
|
19
23
|
}
|
|
20
24
|
export declare const JRCModalLayout: import("react").ForwardRefExoticComponent<JRCModalLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JRCModalProps } from './JRCModal.types';
|
|
2
|
-
export declare const JRCModal: ({ children, open, closeHandler, buttons, title, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, variant, focusOnCloseRef, }: JRCModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const JRCModal: ({ children, open, closeHandler, buttons, title, subTitle, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, variant, maxWidth, focusOnCloseRef, extraTopButtons, overflow, contentBackgroundColor, }: JRCModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FormEvent, ForwardedRef, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { JRCModalButtonType } from '../JRCModalContent';
|
|
3
|
-
import {
|
|
3
|
+
import { JRCIconButtonProps } from '../../JRCIconButton/JRCIconButton';
|
|
4
4
|
import { ModalVariant } from '../types';
|
|
5
|
-
|
|
5
|
+
import { JRCModalFormButtonType } from '../JRCModalContentForm';
|
|
6
|
+
export type JRCModalBaseProps = {
|
|
6
7
|
title?: ReactNode;
|
|
8
|
+
subTitle?: ReactNode;
|
|
7
9
|
children?: ReactNode;
|
|
8
10
|
options?: ReactNode;
|
|
9
11
|
open: boolean;
|
|
@@ -11,9 +13,13 @@ type JRCModalBaseProps = {
|
|
|
11
13
|
portalId?: string;
|
|
12
14
|
inPlace?: boolean;
|
|
13
15
|
ref?: ForwardedRef<HTMLDivElement>;
|
|
16
|
+
overflow?: 'hidden' | 'scroll' | 'visible' | 'auto';
|
|
17
|
+
maxWidth?: string;
|
|
14
18
|
enableClickAwayCloseModal?: boolean;
|
|
15
19
|
zIndex?: number;
|
|
16
20
|
focusOnCloseRef?: RefObject<HTMLElement>;
|
|
21
|
+
extraTopButtons?: JRCIconButtonProps[];
|
|
22
|
+
contentBackgroundColor?: boolean;
|
|
17
23
|
};
|
|
18
24
|
export type JRCModalProps = JRCModalBaseProps & {
|
|
19
25
|
buttons?: JRCModalButtonType[];
|
|
@@ -25,4 +31,3 @@ export type JRCModalFormProps = JRCModalBaseProps & {
|
|
|
25
31
|
loading?: boolean;
|
|
26
32
|
maxHeight?: string;
|
|
27
33
|
};
|
|
28
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JRCModalFormProps } from './JRCModal.types';
|
|
2
|
-
export declare const JRCModalForm: ({ title, children, options, open, closeHandler, buttons, onSubmit, loading, portalId, inPlace, ref, enableClickAwayCloseModal, maxHeight, zIndex, }: JRCModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const JRCModalForm: ({ title, children, options, open, closeHandler, buttons, onSubmit, loading, portalId, inPlace, ref, enableClickAwayCloseModal, maxHeight, zIndex, subTitle, extraTopButtons, focusOnCloseRef, }: JRCModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Type for JRCSidePanelModal props
|
|
5
|
-
*/
|
|
6
|
-
export type JRCSidePanelModalProps = {
|
|
7
|
-
open: boolean;
|
|
8
|
-
closeHandler: () => void;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
title?: ReactNode;
|
|
11
|
-
showIconClose?: boolean;
|
|
12
|
-
enableClickAwayCloseModal?: boolean;
|
|
13
|
-
position: 'left' | 'right';
|
|
14
|
-
footer?: ReactNode;
|
|
15
|
-
removePadding?: boolean;
|
|
16
|
-
inplace?: boolean;
|
|
17
|
-
offsetTop?: number;
|
|
18
|
-
optionsButton?: JRCButtonDropdownOptionProps[];
|
|
19
|
-
zIndex?: number;
|
|
20
|
-
focusOnCloseRef?: RefObject<HTMLElement>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* ℹ️⚠️
|
|
24
|
-
* Used as a child component of {@link JRCContainer}, the modal will be mounted in a preset portal container.
|
|
25
|
-
* Otherwise :
|
|
26
|
-
* - The modal will be mounted where it is declared (no portal).
|
|
27
|
-
* - The modal can be mounted in a specific portal container provided manually with the 'jrc-container-panel' id.
|
|
28
|
-
*/
|
|
29
|
-
export declare const JRCSidePanelModal: import("react").ForwardRefExoticComponent<JRCSidePanelModalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { JRCSidePanelModalProps } from './types';
|
|
2
|
+
export declare const JRCSidePanelModal: import("react").ForwardRefExoticComponent<Omit<JRCSidePanelModalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JRCSidePanelModalProps } from './JRCSidePanelModal';
|
|
2
1
|
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
+
import { JRCSidePanelModalProps } from './types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const SidePanelModal: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-webpack5").ReactRenderer, JRCSidePanelModalProps>;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
export type ModalBorderRadius = 'medium' | 'small';
|
|
2
2
|
export declare const JRCModalBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
-
position?: "right" | "left";
|
|
4
|
-
open?: boolean;
|
|
5
|
-
|
|
6
|
-
offsetTop?: number;
|
|
7
|
-
zIndex?: number;
|
|
3
|
+
$position?: "right" | "left";
|
|
4
|
+
$open?: boolean;
|
|
5
|
+
$inPlace?: boolean;
|
|
6
|
+
$offsetTop?: number;
|
|
7
|
+
$zIndex?: number;
|
|
8
8
|
}, never>;
|
|
9
9
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
10
|
export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
11
|
export declare const JRCModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
12
|
-
removePadding?: boolean;
|
|
12
|
+
$removePadding?: boolean;
|
|
13
13
|
}, never>;
|
|
14
14
|
export declare const JRCModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
15
|
-
removePadding?: boolean;
|
|
15
|
+
$removePadding?: boolean;
|
|
16
|
+
}, never>;
|
|
17
|
+
export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
18
|
+
$sticky?: boolean;
|
|
16
19
|
}, never>;
|
|
17
|
-
export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
20
|
export declare const JRCModalClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
+
import { JRCSidePanelModalFormProps } from './types';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const SidePanelModalForm: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-webpack5").ReactRenderer, JRCSidePanelModalFormProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { JRCButtonDropdownOptionProps } from '../JRCButtonDropdown/JRCButtonDropdown.types';
|
|
3
|
+
import { JRCModalContentFormProps } from '../JRCModal/JRCModalContentForm';
|
|
4
|
+
import { JRCModalBaseProps } from '../JRCModal/templates/JRCModal.types';
|
|
5
|
+
export type SidePanelModalProps = Omit<JRCModalBaseProps, 'portalId'> & {
|
|
6
|
+
showIconClose?: boolean;
|
|
7
|
+
position: 'left' | 'right';
|
|
8
|
+
removePadding?: boolean;
|
|
9
|
+
offsetTop?: number;
|
|
10
|
+
portal?: 'global' | 'container' | string;
|
|
11
|
+
};
|
|
12
|
+
export type JRCSidePanelModalProps = SidePanelModalProps & {
|
|
13
|
+
sticky?: boolean;
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
options?: ReactNode;
|
|
16
|
+
optionsButton?: JRCButtonDropdownOptionProps[];
|
|
17
|
+
};
|
|
18
|
+
export type JRCSidePanelModalFormProps = SidePanelModalProps & Omit<JRCModalContentFormProps, 'onClickIconClose'>;
|
|
@@ -34,7 +34,9 @@ export type JRCTagProps<T> = UriOrTypeId & {
|
|
|
34
34
|
defaultIcon?: string;
|
|
35
35
|
iconOptions?: {
|
|
36
36
|
size?: number;
|
|
37
|
+
background?: 'none';
|
|
37
38
|
};
|
|
38
39
|
onLoad?: () => void;
|
|
40
|
+
href?: string;
|
|
39
41
|
};
|
|
40
42
|
export declare function JRCTag<T>(props: JRCTagProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,6 @@ export declare const MaxWidthWrapper: import("styled-components").StyledComponen
|
|
|
15
15
|
$flexDirection?: FlexDirection;
|
|
16
16
|
$hasPadding?: boolean;
|
|
17
17
|
}, never>;
|
|
18
|
-
export declare const PanelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
18
|
export declare const BaseColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
20
19
|
$width: number;
|
|
21
20
|
$position?: ColumnPosition;
|
|
@@ -83,6 +83,7 @@ export { JRCCommentsBloc } from './JRCCommentsBloc/JRCCommentsBloc';
|
|
|
83
83
|
export { JRCCropImage } from './JRCCropImage/JRCCropImage';
|
|
84
84
|
export { JRCDate } from './JRCDate/JRCDate';
|
|
85
85
|
export { JRCDisplayCard } from './JRCDisplayCard/JRCDisplayCard';
|
|
86
|
+
export { DndProvider, Draggable, Droppable, JRCDndTwoLevelWithStack } from './JRCDragNDrop';
|
|
86
87
|
export { JRCDropDown } from './JRCDropDown/JRCDropDown';
|
|
87
88
|
export { JRCEmptySpace } from './JRCEmptySpace/JRCEmptySpace';
|
|
88
89
|
export { JRCFile } from './JRCFile/JRCFile';
|
|
@@ -112,6 +113,7 @@ export { JRCPagination } from './JRCPagination/JRCPagination';
|
|
|
112
113
|
export { JRCProgressBar } from './JRCProgressBar/JRCProgressBar';
|
|
113
114
|
export { JRCPublishButton } from './JRCPublishButton/JRCPublishButton';
|
|
114
115
|
export { JRCSidePanelModal } from './JRCSidePanelModal/JRCSidePanelModal';
|
|
116
|
+
export { JRCSidePanelModalForm } from './JRCSidePanelModal/JRCSidePanelModalForm';
|
|
115
117
|
export { JRCSkeletonLine } from './JRCSkeleton/JRCSkeletonLine';
|
|
116
118
|
export { JRCSkeletonList } from './JRCSkeleton/JRCSkeletonList';
|
|
117
119
|
export { JRCSkeletonSquare } from './JRCSkeleton/JRCSkeletonSquare';
|
package/build/src/index.d.ts
CHANGED
|
@@ -37,4 +37,5 @@ export { useRefSize } from './hooks/useRefSize';
|
|
|
37
37
|
export { useTimeout } from './hooks/UseTimeout';
|
|
38
38
|
export { useWindowSize } from './hooks/useWindowSize';
|
|
39
39
|
export * from './types';
|
|
40
|
+
export { modifyColorBrightness } from './styles/utils';
|
|
40
41
|
export { Utils } from './utils';
|
package/build/src/types.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export type { JRCColumnRightProps } from './components/JRCColumnRight/JRCColumnR
|
|
|
56
56
|
export type { Area } from './components/JRCCropImage/JRCCropImage';
|
|
57
57
|
export type { JRCDateProps } from './components/JRCDate/JRCDate';
|
|
58
58
|
export type { JRCDisplayCardProps } from './components/JRCDisplayCard/JRCDisplayCard';
|
|
59
|
+
export type { BaseDndItem, DndData, DndDragItem, DndEmptyStateComponentProps, DndItemComponentProps, DndSection, DndSectionComponentProps, ItemTypes, JRCDndTwoLevelWithStackProps, } from './components/JRCDragNDrop/types';
|
|
59
60
|
export type { JRCDropDownProps } from './components/JRCDropDown/JRCDropDown';
|
|
60
61
|
export type { JRCFileOpenProps } from './components/JRCFileOpen/JRCFileOpen';
|
|
61
62
|
export type { JRCFileViewerOpenWithOptionsType } from './components/JRCFileViewer/types';
|
|
@@ -78,7 +79,7 @@ export type { JRCModalUserListProps } from './components/JRCModalUserList/JRCMod
|
|
|
78
79
|
export type { JRCPaginationProps } from './components/JRCPagination/JRCPagination';
|
|
79
80
|
export type { PublishButtonProps } from './components/JRCPublishButton/JRCPublishButton';
|
|
80
81
|
export type { PublishButtonEntryProps } from './components/JRCPublishButton/PublishButtonEntry';
|
|
81
|
-
export type { JRCSidePanelModalProps } from './components/JRCSidePanelModal/
|
|
82
|
+
export type { JRCSidePanelModalProps, JRCSidePanelModalFormProps } from './components/JRCSidePanelModal/types';
|
|
82
83
|
export type { JRCSkeletonLineProps } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
83
84
|
export type { JRCSkeletonSquareProps } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
84
85
|
export type { ItemEntriesProps, JRCTabPanelProps, JRCTabsProps } from './components/JRCTabs/JRCTabs';
|
|
@@ -7,24 +7,26 @@ export interface extractDateProps {
|
|
|
7
7
|
seconds: number;
|
|
8
8
|
}
|
|
9
9
|
export type DateFormat = 'date' | 'date-time' | 'date-time-sec' | 'time' | 'time-sec';
|
|
10
|
-
|
|
10
|
+
type DateArgs = number | string | Date;
|
|
11
|
+
export declare const extractDate: (str?: DateArgs) => extractDateProps;
|
|
11
12
|
/**
|
|
12
13
|
* Format date to YYYY-MM-DD
|
|
13
14
|
* @param {Date} date - Date to format
|
|
14
15
|
* @returns {string} Formatted date string
|
|
15
16
|
*/
|
|
16
17
|
export declare const formatDate: (date: Date) => string;
|
|
18
|
+
export declare const formatTime: (date: Date) => string;
|
|
17
19
|
/**
|
|
18
20
|
* Format date to YYYY-MM-DD hh:mm:ss format
|
|
19
21
|
* @param {Date} date - Date to format
|
|
20
22
|
* @returns {string} Formatted date string
|
|
21
23
|
*/
|
|
22
24
|
export declare const formatDateTime: (date: Date) => string;
|
|
23
|
-
export declare const isSameDay: (d1:
|
|
24
|
-
export declare const isToday: (datetime:
|
|
25
|
-
export declare const isYesterday: (datetime:
|
|
26
|
-
export declare const isTomorrow: (datetime:
|
|
27
|
-
export declare const dateLabel: (date:
|
|
25
|
+
export declare const isSameDay: (d1: DateArgs, d2: DateArgs) => boolean;
|
|
26
|
+
export declare const isToday: (datetime: DateArgs) => boolean;
|
|
27
|
+
export declare const isYesterday: (datetime: DateArgs) => boolean;
|
|
28
|
+
export declare const isTomorrow: (datetime: DateArgs) => boolean;
|
|
29
|
+
export declare const dateLabel: (date: DateArgs) => "GLOBAL_Today" | "GLOBAL_Yesterday" | "GLOBAL_Tomorrow" | null;
|
|
28
30
|
/**
|
|
29
31
|
* Convert date string to timestamp
|
|
30
32
|
* @param {string} str - Date format Y-m-d H:i:s
|
|
@@ -41,3 +43,4 @@ export declare const toHumanDate: (date: extractDateProps, format?: DateFormat)
|
|
|
41
43
|
export declare const isValidDate: (date: string) => boolean;
|
|
42
44
|
export declare const substractMonth: (date: Date) => Date;
|
|
43
45
|
export declare const addMonth: (date: Date) => Date;
|
|
46
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"html-webpack-plugin": "^5.6.4",
|
|
69
69
|
"husky": "^7.0.4",
|
|
70
70
|
"identity-obj-proxy": "^3.0.0",
|
|
71
|
-
"jamespot-user-api": "^1.2.
|
|
71
|
+
"jamespot-user-api": "^1.2.40",
|
|
72
72
|
"jest": "^30.1.2",
|
|
73
73
|
"jest-environment-jsdom": "^30.1.2",
|
|
74
74
|
"jest-styled-components": "^7.2.0",
|
|
@@ -77,17 +77,21 @@
|
|
|
77
77
|
"prettier": "^3.6.2",
|
|
78
78
|
"react": "^18.3.1",
|
|
79
79
|
"react-beautiful-dnd": "^13.1.1",
|
|
80
|
+
"react-day-picker": "^9.8.1",
|
|
80
81
|
"react-dnd": "^14.0.5",
|
|
81
82
|
"react-dnd-html5-backend": "^14.1.0",
|
|
83
|
+
"react-dnd-test-backend": "^16.0.1",
|
|
82
84
|
"react-dom": "^18.3.1",
|
|
83
85
|
"react-hook-form": "^7.62.0",
|
|
84
86
|
"react-image-crop": "^11.0.10",
|
|
85
87
|
"react-intl": "7.1.11",
|
|
88
|
+
"react-qr-code": "^2.0.18",
|
|
86
89
|
"react-redux": "^8.1.3",
|
|
87
90
|
"react-router-dom": "^6.30.1",
|
|
88
91
|
"react-select": "^5.10.2",
|
|
89
92
|
"react-slick": "^0.31.0",
|
|
90
93
|
"react-table": "^7.8.0",
|
|
94
|
+
"react-test-renderer": "^17.0.2",
|
|
91
95
|
"react-tooltip": "^4.5.1",
|
|
92
96
|
"redux": "^4.2.1",
|
|
93
97
|
"redux-form": "^8.3.10",
|