jamespot-react-components 1.3.11 → 1.3.13
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 +6845 -0
- package/dist/jamespot-react-components.js +43674 -2188
- package/dist/src/components/Common/BorderRadius.d.ts +2 -2
- package/dist/src/components/Common/DashedFocusBorder.d.ts +2 -2
- package/dist/src/components/Common/FastCss.d.ts +1 -1
- package/dist/src/components/Common/JRCDraggingPlaceholder.d.ts +1 -1
- package/dist/src/components/Common/LimitLines.d.ts +1 -1
- package/dist/src/components/Common/SROnly.d.ts +1 -1
- package/dist/src/components/Common/SkipToContent.d.ts +1 -1
- package/dist/src/components/Drives/MicrosoftGraph/MSGraphGroups.d.ts +1 -1
- package/dist/src/components/Drives/components/EntityItem.d.ts +2 -2
- package/dist/src/components/Drives/drive.style.d.ts +3 -3
- package/dist/src/components/Editors/components/Editor.style.d.ts +7 -6
- package/dist/src/components/Editors/components/EditorInput.d.ts +2 -1
- package/dist/src/components/Editors/components/EditorInputNumber.d.ts +5 -0
- package/dist/src/components/Editors/components/EditorPositionToggle.d.ts +2 -2
- package/dist/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +3 -4
- package/dist/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputCSSPosition/JRCInputCSSPosition.d.ts +13 -0
- package/dist/src/components/Form/Input/JRCInputCSSPosition/JRCInputCSSPositionRaw.d.ts +10 -0
- package/dist/src/components/Form/Input/JRCInputCSSPosition/const.d.ts +17 -0
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +5 -5
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +3 -2
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputToggle.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCInputCheckbox/components/CheckboxOrToggle.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColor.styles.d.ts +5 -5
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColorRawProps.d.ts +2 -1
- package/dist/src/components/Form/Input/JRCInputDateTime/DayPickerStyle.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCInputFileAdvanced/File.styles.d.ts +5 -5
- package/dist/src/components/Form/Input/JRCInputImage/JRCInputImage.styles.d.ts +12 -12
- package/dist/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +2 -1
- package/dist/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +31 -9
- package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +27 -9
- package/dist/src/components/Form/Input/JRCInputTextarea/JRCInputTextareaRaw.d.ts +4 -6
- package/dist/src/components/Form/Input/JRCInputTinyMCERaw/editorSetup.d.ts +1 -0
- package/dist/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +2 -3
- package/dist/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +38 -305
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.d.ts +2 -1
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelectRaw.d.ts +2 -1
- package/dist/src/components/Form/Input/JRCStyledInput.d.ts +6 -13
- package/dist/src/components/JRCAlbum/styles.d.ts +17 -17
- package/dist/src/components/JRCAlert/JRCAlert.d.ts +1 -1
- package/dist/src/components/JRCAppHeader/JRCAppHeader.styles.d.ts +2 -2
- package/dist/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +44 -24
- package/dist/src/components/JRCButton/Button.d.ts +1 -1
- package/dist/src/components/JRCButton/types.d.ts +5 -2
- package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +26 -6
- package/dist/src/components/JRCCalendar/CalendarStyle.d.ts +2 -2
- package/dist/src/components/JRCCalendar/JRCCalendarModal.d.ts +8 -8
- package/dist/src/components/JRCCalendar/types.d.ts +7 -3
- package/dist/src/components/JRCCalendar/useCalendarDate.d.ts +10 -0
- package/dist/src/components/JRCCard/JRCCardImg.d.ts +2 -2
- package/dist/src/components/JRCCommentsBloc/AvatarWrapper.d.ts +1 -1
- package/dist/src/components/JRCDragNDrop/DndProvider.d.ts +2 -1
- package/dist/src/components/JRCDragNDrop/Draggable.d.ts +2 -1
- package/dist/src/components/JRCDragNDrop/Droppable.d.ts +3 -2
- package/dist/src/components/JRCDragNDrop/styles.d.ts +59 -23
- package/dist/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +2 -2
- package/dist/src/components/JRCFileViewer/JRCFileViewer.styles.d.ts +15 -15
- package/dist/src/components/JRCFlex/JRCFlexBox.d.ts +1 -1
- package/dist/src/components/JRCFolders/styles.d.ts +15 -15
- package/dist/src/components/JRCGifSelector/JRCGifSelector.d.ts +2 -2
- package/dist/src/components/JRCHtml/JRCHtml.d.ts +1 -1
- package/dist/src/components/JRCList/JRCList.d.ts +2 -2
- package/dist/src/components/JRCList/JRCList.styles.d.ts +15 -14
- package/dist/src/components/JRCMenu/JRCMenu.d.ts +3 -2
- package/dist/src/components/JRCMenu/JRCMenu.stories.d.ts +1 -1
- package/dist/src/components/JRCMenuItem/JRCMenuItem.d.ts +1 -1
- package/dist/src/components/JRCModal/JRCModal.styles.d.ts +16 -16
- package/dist/src/components/JRCModalImg/JRCModalImg.styles.d.ts +7 -7
- package/dist/src/components/JRCModalUserList/CSSAvatarWrapper.d.ts +2 -2
- package/dist/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +9 -9
- package/dist/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +1 -1
- package/dist/src/components/JRCSkeleton/common.d.ts +1 -1
- package/dist/src/components/JRCTabs/JRCTabs.d.ts +2 -2
- package/dist/src/components/JRCTypo/JRCTypo.d.ts +7 -7
- package/dist/src/components/JRCTypography/JRCTypography.styles.d.ts +1 -1
- package/dist/src/components/Stepper/JRCStepper.style.d.ts +3 -3
- package/dist/src/components/Templates/AppColumn.d.ts +1 -1
- package/dist/src/components/Templates/MainColumn.d.ts +1 -1
- package/dist/src/components/Templates/template.styles.d.ts +29 -313
- package/dist/src/components/Templates/template.type.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetCalendarCalDav/styles.d.ts +8 -8
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListItem.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetContactCardDav/styles.d.ts +5 -5
- package/dist/src/components/Widgets/JRCWidgetEmailsImap/styles.d.ts +8 -8
- package/dist/src/components/Widgets/JRCWidgetImage/styles.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetPresence/JRCWidgetPresence.styles.d.ts +7 -7
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor.styles.d.ts +6 -6
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyItemWrapper.d.ts +1 -1
- package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +4 -2
- package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.styles.d.ts +11 -11
- package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts +4 -2
- package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.styles.d.ts +18 -18
- package/dist/src/components/Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile.d.ts +1 -1
- package/dist/src/components/Widgets/WidgetPanelTplWarning.d.ts +2 -0
- package/dist/src/components/Widgets/styles.d.ts +11 -11
- package/dist/src/hooks/UseDidMountEffect.d.ts +1 -1
- package/dist/src/hooks/index.d.ts +11 -0
- package/dist/src/hooks/useModalAccessibility.d.ts +2 -2
- package/dist/src/hooks/useThemeContext.d.ts +1 -0
- package/dist/src/index.d.ts +1 -9
- package/dist/src/styles/utils.d.ts +1 -0
- package/dist/src/translation/lang.json.d.ts +4 -0
- package/eslint.config.js +92 -0
- package/package.json +32 -32
- package/dist/jamespot-react-components.mjs +0 -51136
- package/dist/src/components/Widgets/JRCWidgetTable/pagination.test.d.ts +0 -1
- package/dist/src/components/Widgets/JRCWidgetTable/utils.test.d.ts +0 -1
- package/dist/src/components/Widgets/const.test.d.ts +0 -1
- package/dist/src/components/Widgets/utils.test.d.ts +0 -1
- package/dist/src/utils/utils.array.test.d.ts +0 -1
- package/dist/src/utils/utils.color.test.d.ts +0 -1
- package/dist/src/utils/utils.date.test.d.ts +0 -1
- package/dist/src/utils/utils.html.test.d.ts +0 -1
- package/dist/src/utils/utils.object.test.d.ts +0 -1
- package/dist/src/utils/utils.regexp.test.d.ts +0 -1
- package/dist/src/utils/utils.string.test.d.ts +0 -1
- package/dist/src/utils/utils.time.test.d.ts +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
|
|
1
|
+
import { WidgetDisplayMode, WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
|
|
2
2
|
import { HookIsActive } from '../context/provider';
|
|
3
3
|
import { WidgetExcelDatasourceHandlers } from './types';
|
|
4
|
-
export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, tableBorderRadius, hook, handlers, onChange, onSave, onStateChange, onError, }: WidgetExcelDatasourceTableContent & {
|
|
4
|
+
export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, tableBorderRadius, hook, handlers, mode, onChange, onSave, onStateChange, onError, }: WidgetExcelDatasourceTableContent & {
|
|
5
|
+
mode: WidgetDisplayMode;
|
|
6
|
+
} & {
|
|
5
7
|
handlers: WidgetExcelDatasourceHandlers;
|
|
6
8
|
} & {
|
|
7
9
|
hook: {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare const CSSTable: import('styled-components').
|
|
2
|
-
export declare const CSSTableHead: import('styled-components').
|
|
3
|
-
export declare const CSSTableBody: import('styled-components').
|
|
4
|
-
export declare const CSSTableTd: import('styled-components').
|
|
1
|
+
export declare const CSSTable: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
|
2
|
+
export declare const CSSTableHead: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
3
|
+
export declare const CSSTableBody: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
4
|
+
export declare const CSSTableTd: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
5
5
|
width?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const CSSTableTh: import('styled-components').
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const CSSTableTh: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
8
8
|
width?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CSSTableHeadTdContent: import('styled-components').
|
|
11
|
-
export declare const CSSTableTdContent: import('styled-components').
|
|
12
|
-
export declare const CSSTableTr: import('styled-components').
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const CSSTableHeadTdContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const CSSTableTdContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const CSSTableTr: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
|
|
13
13
|
background: string;
|
|
14
14
|
color: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const CSSTableOverlay: import('styled-components').
|
|
17
|
-
export declare const CSSTableRadius: import('styled-components').
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const CSSTableOverlay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const CSSTableRadius: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
18
|
borderRadius: number;
|
|
19
|
-
}
|
|
20
|
-
export declare const CSSTableWrapper: import('styled-components').
|
|
21
|
-
export declare const CSSReadMoreWrapper: import('styled-components').
|
|
22
|
-
export declare const CSSReadMoreGradient: import('styled-components').
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const CSSTableWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
|
+
export declare const CSSReadMoreWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
22
|
+
export declare const CSSReadMoreGradient: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
23
23
|
backgroundColor: string;
|
|
24
|
-
}
|
|
24
|
+
}>> & string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const CSSWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const WidgetPanelTplWarning: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const CSSPlaceholder: import('styled-components').
|
|
2
|
-
export declare const CSSEmptyWrapper: import('styled-components').
|
|
3
|
-
export declare const CSSWrapperText: import('styled-components').
|
|
1
|
+
export declare const CSSPlaceholder: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const CSSEmptyWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const CSSWrapperText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
4
|
color?: string;
|
|
5
5
|
heading?: string;
|
|
6
6
|
fontSize?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const CSSText: import('styled-components').
|
|
9
|
-
export declare const CSSTextareaWrapper: import('styled-components').
|
|
10
|
-
export declare const StyledTextarea: import('styled-components').
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const CSSText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const CSSTextareaWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
|
|
10
|
+
export declare const StyledTextarea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
11
|
heading?: string;
|
|
12
12
|
color?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const CSSWidgetEditorListItem: import('styled-components').
|
|
15
|
-
export declare const CSSWidgetEditorListItemLabel: import('styled-components').
|
|
16
|
-
export declare const CSSWidgetEditorListOption: import('styled-components').
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const CSSWidgetEditorListItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const CSSWidgetEditorListItemLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const CSSWidgetEditorListOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -4,4 +4,4 @@ import { DependencyList } from 'react';
|
|
|
4
4
|
* @param func
|
|
5
5
|
* @param deps be sure to pass ALL the deps used in your effect
|
|
6
6
|
*/
|
|
7
|
-
export declare const useDidMountEffect: (func:
|
|
7
|
+
export declare const useDidMountEffect: (func: () => void, deps: DependencyList) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { useAbortController } from './useAbortController';
|
|
2
|
+
export { useCancelOnUnmount } from './useCancelOnUnmount';
|
|
3
|
+
export { useDebounce } from './UseDebounce';
|
|
4
|
+
export { useDidMountEffect } from './UseDidMountEffect';
|
|
5
|
+
export { useImageLoader } from './UseImageLoader';
|
|
6
|
+
export { useKeyPress } from './UseKeyPress';
|
|
7
|
+
export { useRefSize } from './useRefSize';
|
|
8
|
+
export { useThemeContext } from './useThemeContext';
|
|
9
|
+
export { useTimeout } from './UseTimeout';
|
|
10
|
+
export { useWindowSize } from './useWindowSize';
|
|
11
|
+
export { useCalendarDate } from '../components/JRCCalendar/useCalendarDate';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
type Params = {
|
|
3
|
-
modalRef: RefObject<HTMLElement>;
|
|
4
|
-
focusOnCloseRef?: RefObject<HTMLElement>;
|
|
3
|
+
modalRef: RefObject<HTMLElement | null>;
|
|
4
|
+
focusOnCloseRef?: RefObject<HTMLElement | null>;
|
|
5
5
|
open: boolean;
|
|
6
6
|
closeHandler: () => void;
|
|
7
7
|
scrollFirstElement?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useThemeContext(): import('styled-components').DefaultTheme;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -10,15 +10,7 @@ export { SkipToContent } from './components/Common/SkipToContent';
|
|
|
10
10
|
export { SROnly } from './components/Common/SROnly';
|
|
11
11
|
export { JTinyMCEExtensionsBuilders } from './components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions';
|
|
12
12
|
export { JRCThemeProvider } from './components/JRCThemeProvider/JRCThemeProvider';
|
|
13
|
-
export
|
|
14
|
-
export { useCancelOnUnmount } from './hooks/useCancelOnUnmount';
|
|
15
|
-
export { useDebounce } from './hooks/UseDebounce';
|
|
16
|
-
export { useDidMountEffect } from './hooks/UseDidMountEffect';
|
|
17
|
-
export { useImageLoader } from './hooks/UseImageLoader';
|
|
18
|
-
export { useKeyPress } from './hooks/UseKeyPress';
|
|
19
|
-
export { useRefSize } from './hooks/useRefSize';
|
|
20
|
-
export { useTimeout } from './hooks/UseTimeout';
|
|
21
|
-
export { useWindowSize } from './hooks/useWindowSize';
|
|
13
|
+
export * from './hooks';
|
|
22
14
|
export * from './types';
|
|
23
15
|
export { getColor } from './styles/theme';
|
|
24
16
|
export { modifyColorBrightness } from './styles/utils';
|
|
@@ -29,3 +29,4 @@ export declare const hexToHSL: (H: any) => number[];
|
|
|
29
29
|
export declare function hlsToHex(h: number, s: number, l: number): string[];
|
|
30
30
|
export declare const colorContrast: (color: string) => string;
|
|
31
31
|
export declare const brightness: (color: string) => number;
|
|
32
|
+
export declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
@@ -229,6 +229,7 @@ declare const _default: {
|
|
|
229
229
|
"GLOBAL_Select_Time": "Select time",
|
|
230
230
|
"GLOBAL_Send_Alert": "Envoyer le mail de notification à ceux qui l’ont demandé",
|
|
231
231
|
"GLOBAL_Sent": "Envoyé",
|
|
232
|
+
"GLOBAL_Settings": "Paramétrer",
|
|
232
233
|
"GLOBAL_Start_typing": "Start typing to search",
|
|
233
234
|
"GLOBAL_Successffully_Deleted": "Successfully deleted",
|
|
234
235
|
"GLOBAL_Today": "Today",
|
|
@@ -345,6 +346,7 @@ declare const _default: {
|
|
|
345
346
|
"WIDGET_Datasource_Select_Document": "Sélectionner depuis la banque documentaire",
|
|
346
347
|
"WIDGET_Datasource_Select_Wedoc_File": "Sélectionner depuis wedoc",
|
|
347
348
|
"WIDGET_Datasource_Spreadsheet_Header_Error": "Cette feuille contient au moins une colonne sans titre",
|
|
349
|
+
"WIDGET_Panel_Tpl_Warning_Message": "Il n'est pas possible de configurer ce widget en mode template",
|
|
348
350
|
"WIDGET_Display_Level_1": "Icône",
|
|
349
351
|
"WIDGET_Display_Level_2": "Icône + Pastille",
|
|
350
352
|
"WIDGET_Display_Level_3": "Contenus",
|
|
@@ -387,6 +389,8 @@ declare const _default: {
|
|
|
387
389
|
"WIDGET_User_Profil_Picture_Alt_Label": "Image de l'utilisateur",
|
|
388
390
|
"WIDGET_User_Profil_Picture_FirstName": "Avec prénom",
|
|
389
391
|
"WIDGET_User_Profil_Picture_FirstName_LastName": "Avec prénom + nom",
|
|
392
|
+
"WIDGET_User_Profil_Text_Max_Length_Description": "Maximum 30 caractères",
|
|
393
|
+
"WIDGET_User_Profil_Tooltip_Link_Text": "Accéder à votre profil",
|
|
390
394
|
"WIDGET_Welcome": "Message d'accueil",
|
|
391
395
|
"WIDGET_Welcome_Text": "Rendez vos pages plus personnelles en accueillant chaleureusement vos utilisateurs.",
|
|
392
396
|
"WIDGET_Welcome_Default_Message": "Bienvenue",
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import prettierConfig from 'eslint-config-prettier';
|
|
3
|
+
import importPlugin from 'eslint-plugin-import';
|
|
4
|
+
import reactPlugin from 'eslint-plugin-react';
|
|
5
|
+
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
6
|
+
import storybookPlugin from 'eslint-plugin-storybook';
|
|
7
|
+
import globals from 'globals';
|
|
8
|
+
import ts from 'typescript-eslint';
|
|
9
|
+
import * as customPlugin from './eslint-plugin-custom/index.js';
|
|
10
|
+
|
|
11
|
+
export default [
|
|
12
|
+
{
|
|
13
|
+
ignores: ['coverage/**', 'dist/**', 'eslint-plugin-custom/**', 'eslint.config.js', 'node_modules/**'],
|
|
14
|
+
},
|
|
15
|
+
js.configs.recommended,
|
|
16
|
+
...ts.configs.recommended,
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.{ts,tsx}'],
|
|
19
|
+
languageOptions: {
|
|
20
|
+
parser: ts.parser,
|
|
21
|
+
globals: {
|
|
22
|
+
...globals.browser,
|
|
23
|
+
...globals.node,
|
|
24
|
+
...globals.jest,
|
|
25
|
+
},
|
|
26
|
+
parserOptions: {
|
|
27
|
+
project: ['./tsconfig.json', './.storybook/tsconfig.json'],
|
|
28
|
+
ecmaVersion: 2024,
|
|
29
|
+
sourceType: 'module',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
plugins: {
|
|
33
|
+
'@typescript-eslint': ts.plugin,
|
|
34
|
+
react: reactPlugin,
|
|
35
|
+
'react-hooks': reactHooksPlugin,
|
|
36
|
+
storybook: storybookPlugin,
|
|
37
|
+
import: importPlugin,
|
|
38
|
+
custom: customPlugin,
|
|
39
|
+
},
|
|
40
|
+
rules: {
|
|
41
|
+
...ts.configs.recommended.rules,
|
|
42
|
+
...reactPlugin.configs.recommended.rules,
|
|
43
|
+
...reactHooksPlugin.configs.recommended.rules,
|
|
44
|
+
...storybookPlugin.configs.recommended.rules,
|
|
45
|
+
'custom/no-barrel-imports': 'error',
|
|
46
|
+
'import/no-duplicates': 'error',
|
|
47
|
+
'import/no-cycle': 'error',
|
|
48
|
+
'import/no-unresolved': 'error',
|
|
49
|
+
'no-case-declarations': 'off',
|
|
50
|
+
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
51
|
+
'react/react-in-jsx-scope': 'off',
|
|
52
|
+
'react-hooks/refs': 'warn',
|
|
53
|
+
'react-hooks/set-state-in-effect': 'warn',
|
|
54
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
55
|
+
'error',
|
|
56
|
+
{
|
|
57
|
+
'ts-ignore': 'allow-with-description',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
'@typescript-eslint/ban-types': 'off',
|
|
61
|
+
'@typescript-eslint/no-empty-interface': 'off',
|
|
62
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
63
|
+
'@typescript-eslint/no-empty-object-type': 'warn',
|
|
64
|
+
'@typescript-eslint/no-namespace': 'off',
|
|
65
|
+
'@typescript-eslint/no-unused-expressions': 'error',
|
|
66
|
+
'@typescript-eslint/no-unused-vars': [
|
|
67
|
+
'error',
|
|
68
|
+
{
|
|
69
|
+
argsIgnorePattern: '^_',
|
|
70
|
+
varsIgnorePattern: '^_',
|
|
71
|
+
caughtErrorsIgnorePattern: '^_',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
75
|
+
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
76
|
+
'@typescript-eslint/prefer-as-const': 'error',
|
|
77
|
+
},
|
|
78
|
+
settings: {
|
|
79
|
+
react: {
|
|
80
|
+
version: 'detect',
|
|
81
|
+
jsxRuntime: 'automatic',
|
|
82
|
+
},
|
|
83
|
+
'import/resolver': {
|
|
84
|
+
typescript: {
|
|
85
|
+
alwaysTryTypes: true,
|
|
86
|
+
project: './tsconfig.json',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
prettierConfig,
|
|
92
|
+
];
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.js",
|
|
6
6
|
"module": "dist/jamespot-react-components.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
8
9
|
"nyc": {
|
|
9
10
|
"sourceMap": false,
|
|
10
11
|
"instrument": false
|
|
@@ -12,19 +13,22 @@
|
|
|
12
13
|
"keywords": [],
|
|
13
14
|
"author": "",
|
|
14
15
|
"peerDependencies": {
|
|
16
|
+
"@types/react": "^19.2.6",
|
|
17
|
+
"@types/react-dom": "^19.2.3",
|
|
15
18
|
"jamespot-user-api": "*",
|
|
16
|
-
"react": "^
|
|
19
|
+
"react": "^19.2.0",
|
|
17
20
|
"react-dnd": "^14.0.5",
|
|
18
21
|
"react-dnd-html5-backend": "^14.1.0",
|
|
19
|
-
"react-dom": "^
|
|
22
|
+
"react-dom": "^19.2.0",
|
|
20
23
|
"react-hook-form": "^7.66.1",
|
|
21
24
|
"react-intl": "^7.1.14",
|
|
22
25
|
"react-router-dom": "^6.30.2",
|
|
23
|
-
"styled-components": "^
|
|
26
|
+
"styled-components": "^6.1.19",
|
|
24
27
|
"tinymce": "7.5.1"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@chromatic-com/storybook": "^4.1.3",
|
|
31
|
+
"@eslint/js": "^9.39.1",
|
|
28
32
|
"@fullcalendar/core": "^6.1.19",
|
|
29
33
|
"@fullcalendar/daygrid": "^6.1.19",
|
|
30
34
|
"@fullcalendar/interaction": "^6.1.19",
|
|
@@ -41,80 +45,75 @@
|
|
|
41
45
|
"@storybook/react-webpack5": "9.1.16",
|
|
42
46
|
"@storybook/test-runner": "^0.23.0",
|
|
43
47
|
"@storybook/testing-library": "^0.2.2",
|
|
48
|
+
"@tanstack/react-table": "^8.21.3",
|
|
44
49
|
"@testing-library/dom": "^8.20.1",
|
|
45
50
|
"@testing-library/jest-dom": "^6.9.1",
|
|
46
51
|
"@testing-library/react": "^14.3.1",
|
|
47
52
|
"@testing-library/react-hooks": "^5.1.3",
|
|
48
53
|
"@testing-library/user-event": "^13.5.0",
|
|
49
|
-
"@tinymce/tinymce-react": "^
|
|
54
|
+
"@tinymce/tinymce-react": "^6.3.0",
|
|
50
55
|
"@types/chroma-js": "^2.4.5",
|
|
51
56
|
"@types/jest": "^30.0.0",
|
|
52
57
|
"@types/node": "^24.10.1",
|
|
53
|
-
"@types/react": "^
|
|
54
|
-
"@types/react-dom": "^
|
|
55
|
-
"@types/react-router-dom": "^5.3.3",
|
|
56
|
-
"@types/react-table": "^7.7.20",
|
|
57
|
-
"@types/styled-components": "^5.1.36",
|
|
58
|
+
"@types/react": "^19.2.6",
|
|
59
|
+
"@types/react-dom": "^19.2.3",
|
|
58
60
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
59
61
|
"@types/uuid": "^10.0.0",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
61
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
62
62
|
"@vitejs/plugin-react": "^5.1.1",
|
|
63
|
-
"chroma-js": "^
|
|
63
|
+
"chroma-js": "^3.1.2",
|
|
64
64
|
"classnames": "^2.5.1",
|
|
65
65
|
"concurrently": "^9.2.1",
|
|
66
66
|
"cross-env": "^10.1.0",
|
|
67
67
|
"date-fns": "^4.1.0",
|
|
68
68
|
"dompurify": "^3.3.0",
|
|
69
|
-
"eslint": "^
|
|
70
|
-
"eslint-config-prettier": "^
|
|
69
|
+
"eslint": "^9.39.1",
|
|
70
|
+
"eslint-config-prettier": "^10.1.8",
|
|
71
71
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
72
72
|
"eslint-plugin-import": "^2.32.0",
|
|
73
|
-
"eslint-plugin-jsx-expressions": "^1.3.2",
|
|
74
73
|
"eslint-plugin-react": "^7.37.5",
|
|
75
|
-
"eslint-plugin-react-hooks": "^
|
|
74
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
76
75
|
"eslint-plugin-storybook": "9.1.16",
|
|
77
76
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
77
|
+
"globals": "^16.5.0",
|
|
78
78
|
"html2canvas": "^1.4.1",
|
|
79
79
|
"husky": "^9.1.7",
|
|
80
|
-
"jamespot-user-api": "^1.3.
|
|
80
|
+
"jamespot-user-api": "^1.3.13",
|
|
81
81
|
"jest": "^30.2.0",
|
|
82
82
|
"jest-environment-jsdom": "^30.2.0",
|
|
83
|
-
"
|
|
84
|
-
"knip": "^5.69.1",
|
|
83
|
+
"knip": "^5.70.0",
|
|
85
84
|
"lint-staged": "^16.2.6",
|
|
86
85
|
"nyc": "^17.1.0",
|
|
87
86
|
"playwright": "^1.56.1",
|
|
88
87
|
"prettier": "^3.6.2",
|
|
89
|
-
"react": "^
|
|
88
|
+
"react": "^19.2.0",
|
|
90
89
|
"react-day-picker": "^9.11.1",
|
|
91
90
|
"react-dnd": "^14.0.5",
|
|
92
91
|
"react-dnd-html5-backend": "^14.1.0",
|
|
93
92
|
"react-dnd-test-backend": "^16.0.1",
|
|
94
|
-
"react-dom": "^
|
|
93
|
+
"react-dom": "^19.2.0",
|
|
95
94
|
"react-hook-form": "^7.66.1",
|
|
96
95
|
"react-image-crop": "^11.0.10",
|
|
97
96
|
"react-intl": "^7.1.14",
|
|
98
97
|
"react-qr-code": "^2.0.18",
|
|
99
98
|
"react-router-dom": "^6.30.2",
|
|
100
|
-
"react-table": "^7.8.0",
|
|
101
99
|
"react-tooltip": "^4.5.1",
|
|
102
100
|
"react-transition-state": "^2.3.1",
|
|
103
101
|
"storybook": "9.1.16",
|
|
104
|
-
"styled-components": "^
|
|
102
|
+
"styled-components": "^6.1.19",
|
|
105
103
|
"tinymce": "7.5.1",
|
|
106
104
|
"ts-jest": "^29.4.5",
|
|
107
105
|
"ts-node": "^10.9.2",
|
|
108
106
|
"typescript": "^5.9.3",
|
|
107
|
+
"typescript-eslint": "^8.47.0",
|
|
109
108
|
"uuid": "^10.0.0",
|
|
110
109
|
"vite": "^7.2.2",
|
|
111
110
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
112
111
|
"vite-plugin-dts": "^4.5.4",
|
|
113
|
-
"wait-on": "^
|
|
112
|
+
"wait-on": "^9.0.3"
|
|
114
113
|
},
|
|
115
114
|
"lint-staged": {
|
|
116
115
|
"*.{js,jsx,ts,tsx}": [
|
|
117
|
-
"eslint --
|
|
116
|
+
"eslint --fix",
|
|
118
117
|
"prettier --write"
|
|
119
118
|
],
|
|
120
119
|
"*.{json,md}": [
|
|
@@ -129,15 +128,16 @@
|
|
|
129
128
|
"build": "vite build",
|
|
130
129
|
"build:storybook": "storybook build",
|
|
131
130
|
"prettier": "prettier --write ./",
|
|
132
|
-
"lint": "eslint
|
|
133
|
-
"lint:fix": "eslint
|
|
134
|
-
"lint:ci": "eslint --output-file eslint_report.json --format json . --ext .ts,.tsx,.js",
|
|
131
|
+
"lint": "eslint",
|
|
132
|
+
"lint:fix": "eslint --fix",
|
|
135
133
|
"storybook": "storybook dev -p 6006",
|
|
134
|
+
"storybook:serve": "pnpm storybook --quiet --ci",
|
|
135
|
+
"storybook:test": "wait-on tcp:6006 && pnpm test:storybook:standalone",
|
|
136
136
|
"storybook-no-cache": "cross-env NODE_ENV=development STORYBOOK_MODE=true PUBLIC_PATH='' storybook dev -s ./.storybook/assets/ -c .storybook -p 3022 --no-manager-cache",
|
|
137
|
-
"test": "
|
|
138
|
-
"test:all": "pnpm test:jest && pnpm test:storybook",
|
|
137
|
+
"test": "pnpm test:jest && pnpm test:storybook",
|
|
139
138
|
"test:clearJest": "jest --clearCache",
|
|
140
139
|
"test:jest": "cross-env NODE_ENV=test jest --runInBand --detectOpenHandles --logHeapUsage",
|
|
141
|
-
"test:storybook": "
|
|
140
|
+
"test:storybook": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm storybook:serve\" \"pnpm storybook:test\"",
|
|
141
|
+
"test:storybook:standalone": "test-storybook --maxWorkers=1 --coverage"
|
|
142
142
|
}
|
|
143
143
|
}
|