jamespot-react-components 1.3.69 → 1.3.71
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/dist/jamespot-react-components.cjs +888 -847
- package/dist/jamespot-react-components.js +8392 -8265
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColorRaw.d.ts +1 -5
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColorRawProps.d.ts +1 -0
- package/dist/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +2 -1
- package/dist/src/components/JRCAppAvatar/JRCAppAvatar.d.ts +10 -0
- package/dist/src/components/JRCDragNDrop/DraggableRow.d.ts +9 -0
- package/dist/src/components/JRCDragNDrop/OneLevelMainDropzone.d.ts +3 -1
- package/dist/src/components/JRCDragNDrop/index.d.ts +2 -0
- package/dist/src/components/JRCIcon/JRCIcon.d.ts +1 -1
- package/dist/src/components/JRCList/JRCList.d.ts +1 -0
- package/dist/src/components/JRCList/JRCList.stories.d.ts +1 -0
- package/dist/src/components/JRCList/JRCList.styles.d.ts +1 -17
- package/dist/src/components/Templates/template.type.d.ts +2 -2
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/translation/lang.json.d.ts +2 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { JRCInputColorRawProps } from './JRCInputColorRawProps';
|
|
2
|
-
|
|
3
|
-
autoScaleWidth?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const JRCInputColorRaw: (props: JRCInputColorRawPropsExtended) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
2
|
+
export declare const JRCInputColorRaw: (props: JRCInputColorRawProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,9 +39,10 @@ export declare const RenderNumberInput: import('react').ForwardRefExoticComponen
|
|
|
39
39
|
* validation props: required
|
|
40
40
|
* @returns JSX.Element
|
|
41
41
|
*/
|
|
42
|
-
export declare function JRCInputNumber<T extends FieldValues = FieldValues>({ htmlFor, ...props }: JRCInputFieldProps<T> & {
|
|
42
|
+
export declare function JRCInputNumber<T extends FieldValues = FieldValues>({ htmlFor, allowEmptyValue, ...props }: JRCInputFieldProps<T> & {
|
|
43
43
|
width?: string;
|
|
44
44
|
disabled?: boolean;
|
|
45
45
|
min?: number;
|
|
46
46
|
max?: number;
|
|
47
|
+
allowEmptyValue?: boolean;
|
|
47
48
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconVariant } from '../JRCIcon/JRCIcon';
|
|
2
|
+
export type JRCAppAvatarProps = {
|
|
3
|
+
icon?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
customImageUri?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
previewSrc?: string | null;
|
|
8
|
+
variant?: IconVariant;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCAppAvatar: ({ icon, color, customImageUri, previewSrc, size, variant, }: JRCAppAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface DraggableRowProps {
|
|
3
|
+
index: number;
|
|
4
|
+
onMove: (dragIndex: number, hoverIndex: number, position: 'before' | 'after') => void;
|
|
5
|
+
showDragHandle?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const DraggableRow: ({ index, onMove, showDragHandle, disabled, children, }: DraggableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseDndItem } from './types';
|
|
2
2
|
type OneLevelMainDropzoneProps = {
|
|
3
3
|
onDropFromStack: (item: BaseDndItem, targetIndex: number, sourceIndex: number) => void;
|
|
4
|
+
onAddStackItem?: (stackItem: BaseDndItem, sourceIndex: number) => void;
|
|
5
|
+
onMoveMainItem?: (dragIndex: number) => void;
|
|
4
6
|
onHoverEmpty?: () => void;
|
|
5
7
|
onHoverEnd?: () => void;
|
|
6
8
|
children: React.ReactNode;
|
|
@@ -9,5 +11,5 @@ type OneLevelMainDropzoneProps = {
|
|
|
9
11
|
* Drop zone component for main area in JRCDndOneLevelWithStack
|
|
10
12
|
* Accepts stack items being dropped into the main zone
|
|
11
13
|
*/
|
|
12
|
-
export declare const OneLevelMainDropzone: ({ onDropFromStack, onHoverEmpty, onHoverEnd, children, }: OneLevelMainDropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const OneLevelMainDropzone: ({ onDropFromStack, onAddStackItem, onMoveMainItem, onHoverEmpty, onHoverEnd, children, }: OneLevelMainDropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { DndProvider } from './DndProvider';
|
|
2
2
|
export { Draggable } from './Draggable';
|
|
3
|
+
export { DraggableRow } from './DraggableRow';
|
|
4
|
+
export type { DraggableRowProps } from './DraggableRow';
|
|
3
5
|
export { Droppable } from './Droppable';
|
|
4
6
|
export { JRCDndOneLevel } from './JRCDndOneLevel';
|
|
5
7
|
export { JRCDndOneLevelWithStack } from './JRCDndOneLevelWithStack';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type FontAwesomeOptions = {
|
|
2
2
|
style?: 'solid' | 'regular' | 'brands';
|
|
3
3
|
};
|
|
4
|
-
type IconVariant = 'default' | 'circle' | 'square';
|
|
4
|
+
export type IconVariant = 'default' | 'circle' | 'square';
|
|
5
5
|
/**
|
|
6
6
|
* Props type for JRCIcon
|
|
7
7
|
* @property name string: Name of the icon (required)
|
|
@@ -10,3 +10,4 @@ type MyData = {
|
|
|
10
10
|
col4: number;
|
|
11
11
|
};
|
|
12
12
|
export declare const Primary: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-webpack5').ReactRenderer, Pick<JRCListProps<MyData>, "config">>;
|
|
13
|
+
export declare const Draggable: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-webpack5').ReactRenderer, Pick<JRCListProps<MyData>, "config">>;
|
|
@@ -1,32 +1,16 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
1
|
export declare const Table: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
|
3
2
|
loading?: boolean;
|
|
4
3
|
}>> & string;
|
|
5
4
|
export declare const Thead: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
6
5
|
export declare const TBody: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
7
6
|
export declare const Th: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
8
|
-
width?: number | string;
|
|
7
|
+
$width?: number | string;
|
|
9
8
|
sortable?: boolean;
|
|
10
9
|
}>> & string;
|
|
11
10
|
export declare const Tr: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
|
|
12
|
-
dragging?: boolean;
|
|
13
11
|
$isHead?: boolean;
|
|
14
12
|
}>> & string;
|
|
15
13
|
export declare const Td: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
16
14
|
width?: number | string;
|
|
17
15
|
}>> & string;
|
|
18
16
|
export declare const LoadMore: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
-
type DraggableTBodyProps = {
|
|
20
|
-
draggable: boolean;
|
|
21
|
-
children: Array<ReactElement>;
|
|
22
|
-
};
|
|
23
|
-
type DraggableTrProps = {
|
|
24
|
-
index: number;
|
|
25
|
-
onDrag: (dragIndex: number, dropIndex: number) => void;
|
|
26
|
-
onDrop: () => void;
|
|
27
|
-
draggable: boolean;
|
|
28
|
-
children: Array<ReactElement>;
|
|
29
|
-
};
|
|
30
|
-
export declare const DraggableTBody: ({ draggable, children }: DraggableTBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export declare const DraggableTr: ({ draggable, ...props }: DraggableTrProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -52,8 +52,8 @@ export type JRCAppColumnProps = Partial<JRCAppTabsProps> & {
|
|
|
52
52
|
className?: string;
|
|
53
53
|
mode?: LayoutMode;
|
|
54
54
|
description: {
|
|
55
|
-
icon: string;
|
|
56
|
-
color?: string;
|
|
55
|
+
icon: string | null;
|
|
56
|
+
color?: string | null;
|
|
57
57
|
label: string;
|
|
58
58
|
description: string;
|
|
59
59
|
};
|
|
@@ -56,6 +56,7 @@ export { JRCAlert } from './JRCAlert/JRCAlert';
|
|
|
56
56
|
export { JRCAppContainer } from './JRCAppContainer/JRCAppContainer';
|
|
57
57
|
export { JRCAppHeader } from './JRCAppHeader/JRCAppHeader';
|
|
58
58
|
export { JRCAppLeftColumn } from './JRCAppLeftColumn/JRCAppLeftColumn';
|
|
59
|
+
export { JRCAppAvatar } from './JRCAppAvatar/JRCAppAvatar';
|
|
59
60
|
export { JRCAttachments } from './JRCAttachments/JRCAttachments';
|
|
60
61
|
export { JRCAudience } from './JRCAudience/JRCAudience';
|
|
61
62
|
export { JRCAvatar } from './JRCAvatar/JRCAvatar';
|
|
@@ -79,7 +80,7 @@ export { JRCDate } from './JRCDate/JRCDate';
|
|
|
79
80
|
export { JRCDateObject } from './JRCDate/JRCDateObject';
|
|
80
81
|
export { JRCDisplayCard } from './JRCDisplayCard/JRCDisplayCard';
|
|
81
82
|
export { JRCDot } from './JRCDot/JRCDot';
|
|
82
|
-
export { DndProvider, Draggable, Droppable, JRCDndOneLevel, JRCDndOneLevelWithStack, JRCDndTwoLevelWithStack, } from './JRCDragNDrop';
|
|
83
|
+
export { DndProvider, Draggable, DraggableRow, Droppable, JRCDndOneLevel, JRCDndOneLevelWithStack, JRCDndTwoLevelWithStack, } from './JRCDragNDrop';
|
|
83
84
|
export { JRCDropDown } from './JRCDropDown/JRCDropDown';
|
|
84
85
|
export { JRCEditor } from './JRCEditor/JRCEditor';
|
|
85
86
|
export { JRCModalSchedule } from './JRCEditor/JRCModalSchedule';
|
|
@@ -440,6 +440,8 @@ declare const _default: {
|
|
|
440
440
|
"WIDGET_Welcome": "Message d'accueil",
|
|
441
441
|
"WIDGET_Welcome_Text": "Rendez vos pages plus personnelles en accueillant chaleureusement vos utilisateurs.",
|
|
442
442
|
"WIDGET_Welcome_Default_Message": "Bienvenue",
|
|
443
|
+
"WIDGET_elcome_Linebreak_Label": "Saut de ligne (après le message)",
|
|
444
|
+
"GLOBAL_Reorder": "Reorder",
|
|
443
445
|
"WIDGET_Welcome_Linebreak_Label": "Saut de ligne (après le message)"
|
|
444
446
|
}
|
|
445
447
|
}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type { JRCColumnRightProps } from './components/JRCColumnRight/JRCColumnR
|
|
|
44
44
|
export type { Area } from './components/JRCCropImage/JRCCropImage';
|
|
45
45
|
export type { JRCDateProps } from './components/JRCDate/JRCDate';
|
|
46
46
|
export type { JRCDisplayCardProps } from './components/JRCDisplayCard/JRCDisplayCard';
|
|
47
|
-
export type { BaseDndItem, DndData, DndDragItem, DndEmptyStateComponentProps, DndItemComponentProps, DndSection, DndSectionComponentProps, ItemTypes, JRCDndOneLevelProps, JRCDndTwoLevelWithStackProps, } from './components/JRCDragNDrop/types';
|
|
47
|
+
export type { BaseDndItem, DndData, DndDragItem, DndEmptyStateComponentProps, DndItemComponentProps, DndOneLevelItemComponentProps, DndSection, DndSectionComponentProps, ItemTypes, JRCDndOneLevelProps, JRCDndTwoLevelWithStackProps, } from './components/JRCDragNDrop/types';
|
|
48
48
|
export type { JRCDropDownProps } from './components/JRCDropDown/JRCDropDown';
|
|
49
49
|
export type { JRCFileOpenProps } from './components/JRCFileOpen/JRCFileOpen';
|
|
50
50
|
export type { JRCFileViewerOpenWithOptionsType } from './components/JRCFileViewer/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.71",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
79
79
|
"globals": "^16.5.0",
|
|
80
80
|
"html2canvas": "^1.4.1",
|
|
81
|
-
"jamespot-front-business": "^1.3.
|
|
82
|
-
"jamespot-user-api": "^1.3.
|
|
81
|
+
"jamespot-front-business": "^1.3.71",
|
|
82
|
+
"jamespot-user-api": "^1.3.71",
|
|
83
83
|
"jest": "^30.2.0",
|
|
84
84
|
"jest-environment-jsdom": "^30.2.0",
|
|
85
85
|
"knip": "^5.82.1",
|