jamespot-react-components 1.3.40 → 1.3.41
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 +612 -602
- package/dist/jamespot-react-components.js +26192 -26176
- package/dist/src/components/Common/Article/ArticleCard.d.ts +2 -3
- package/dist/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +1 -1
- package/dist/src/components/JRCAudience/JRCAudience.d.ts +2 -1
- package/dist/src/components/JRCAvatar/JRCAvatar.d.ts +1 -1
- package/dist/src/components/JRCCalendar/JRCCalendarModal.d.ts +1 -1
- package/dist/src/components/{JRCHref/JRCHref.d.ts → JRCStyledHref/JRCStyledHref.d.ts} +3 -1
- package/dist/src/components/{JRCHref/JRCHref.stories.d.ts → JRCStyledHref/JRCStyledHref.stories.d.ts} +1 -1
- package/dist/src/components/api/jamespot/mock_jamespot.d.ts +2 -2
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/utils/utils.files.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ArticlesList } from 'jamespot-user-api';
|
|
2
|
-
|
|
3
|
-
export declare const ArticleCard: ({ article, icon, color, audience, }: {
|
|
2
|
+
export declare const ArticleCard: ({ article, icon, color, audienceFilter, }: {
|
|
4
3
|
article: ArticlesList;
|
|
5
4
|
icon: string;
|
|
6
5
|
color: string;
|
|
7
|
-
|
|
6
|
+
audienceFilter?: string[];
|
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,7 @@ export type NativeInputFileProps = DataCy & Omit<ComponentPropsWithoutRef<'input
|
|
|
12
12
|
showLoading?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export type JRCInputFileProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & Omit<NativeInputFileProps, 'value' | 'onChange'>;
|
|
15
|
-
export declare const InputFile: import('react').ForwardRefExoticComponent<DataCy & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
15
|
+
export declare const InputFile: import('react').ForwardRefExoticComponent<DataCy & Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value"> & {
|
|
16
16
|
token?: string | undefined;
|
|
17
17
|
attrName?: string;
|
|
18
18
|
onLoading?: (state: boolean) => void;
|
|
@@ -42,7 +42,7 @@ export declare const FlexBoxTreeDescription: import('styled-components/dist/type
|
|
|
42
42
|
export declare const NoResult: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
43
43
|
export declare const WrapperList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
44
44
|
export declare const ModalContentList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
45
|
-
export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
45
|
+
export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "inline" | "flex" | "position" | "x" | "y" | "padding" | "margin" | "textAlign" | "data-testid" | "direction" | "gap" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
|
|
46
46
|
direction?: import('../../../JRCFlex/JRCFlexBox').FlexDirection;
|
|
47
47
|
inline?: boolean;
|
|
48
48
|
flex?: boolean | string;
|
|
@@ -6,6 +6,7 @@ type JRCAudienceProps = {
|
|
|
6
6
|
filter?: string[];
|
|
7
7
|
hideDescription?: boolean;
|
|
8
8
|
hideTooltip?: boolean;
|
|
9
|
+
withoutLink?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const JRCAudience: ({ list, limit, size, filter, hideDescription, hideTooltip, }: JRCAudienceProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const JRCAudience: ({ list, limit, size, filter, hideDescription, hideTooltip, withoutLink, }: JRCAudienceProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -30,4 +30,4 @@ export type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'height' | 'al
|
|
|
30
30
|
testId?: string;
|
|
31
31
|
onLoad?: () => void;
|
|
32
32
|
};
|
|
33
|
-
export declare const JRCAvatar: ({ subAvatar, className, size, from, format, alt, iconWhite, testId, withBorder, onError, onLoad, ...otherProps }: JRCAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const JRCAvatar: ({ subAvatar, className, size, from, format, alt, iconWhite, testId, withBorder, onError, onLoad, cssColor, focusable, variant, ...otherProps }: JRCAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { CalendarEventView, CalendarEventWithExtensions, JArticleApi, JCalendarApi, JGlobalApi, Rights, UserResponseStatus } from 'jamespot-user-api';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
type JRCCalendarModalProps = {
|
|
4
4
|
event?: CalendarEventWithExtensions<CalendarEventView, ['socialEventRecord' | 'recurringEventRecord']>;
|
|
5
5
|
closeHandler: () => void;
|
|
@@ -14,6 +14,8 @@ type NativeProps = ComponentPropsWithoutRef<'a'> & {
|
|
|
14
14
|
};
|
|
15
15
|
type AnchorProps = {
|
|
16
16
|
as?: 'a';
|
|
17
|
+
asBlock?: boolean;
|
|
18
|
+
focusOffset?: string;
|
|
17
19
|
};
|
|
18
20
|
type ButtonProps = {
|
|
19
21
|
variant?: 'contained' | 'outlined';
|
|
@@ -32,6 +34,6 @@ type ButtonProps = {
|
|
|
32
34
|
* Props type for JRCStyledHref
|
|
33
35
|
* @member as render the link styled as a button
|
|
34
36
|
*/
|
|
35
|
-
export type JRCStyledHrefProps = DataCy & (AnchorProps | ButtonProps)
|
|
37
|
+
export type JRCStyledHrefProps = DataCy & NativeProps & (AnchorProps | ButtonProps);
|
|
36
38
|
export declare const JRCStyledHref: ({ dataCy, hasLicense, href, useLink, ...props }: JRCStyledHrefProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
39
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const mock_api_network_default: Pick<import('jamespot-user-api').Network, "token" | "postFile" | "getUrl">;
|
|
2
2
|
export declare const mock_api_network_excel: Pick<import('jamespot-user-api').Network, "token" | "postFile" | "getUrl">;
|
|
3
|
-
export declare const mock_api_datasource_excel: Omit<import('jamespot-user-api').JDatasourceApi, "
|
|
4
|
-
export declare const mock_api_datasource_studio: Omit<import('jamespot-user-api').JDatasourceApi, "
|
|
3
|
+
export declare const mock_api_datasource_excel: Omit<import('jamespot-user-api').JDatasourceApi, "network" | "jApi">;
|
|
4
|
+
export declare const mock_api_datasource_studio: Omit<import('jamespot-user-api').JDatasourceApi, "network" | "jApi">;
|
|
5
5
|
export declare const mock_api_application: Pick<import('jamespot-user-api').JApplicationApi, "studioGet" | "studioList">;
|
|
@@ -82,7 +82,6 @@ export { JRCFlexBox } from './JRCFlex/JRCFlexBox';
|
|
|
82
82
|
export { JRCFolders } from './JRCFolders/JRCFolders';
|
|
83
83
|
export { JRCGifSelector } from './JRCGifSelector/JRCGifSelector';
|
|
84
84
|
export { JRCGrid } from './JRCGrid/JRCGrid';
|
|
85
|
-
export { JRCStyledHref } from './JRCHref/JRCHref';
|
|
86
85
|
export { JRCHtml } from './JRCHtml/JRCHtml';
|
|
87
86
|
export { JRCIcon } from './JRCIcon/JRCIcon';
|
|
88
87
|
export { JRCIconButton } from './JRCIconButton/JRCIconButton';
|
|
@@ -108,6 +107,7 @@ export { JRCSidePanelModalForm } from './JRCSidePanelModal/JRCSidePanelModalForm
|
|
|
108
107
|
export { JRCSkeletonLine } from './JRCSkeleton/JRCSkeletonLine';
|
|
109
108
|
export { JRCSkeletonList } from './JRCSkeleton/JRCSkeletonList';
|
|
110
109
|
export { JRCSkeletonSquare } from './JRCSkeleton/JRCSkeletonSquare';
|
|
110
|
+
export { JRCStyledHref } from './JRCStyledHref/JRCStyledHref';
|
|
111
111
|
export { JRCTabPanel, JRCTabs } from './JRCTabs/JRCTabs';
|
|
112
112
|
export { JRCTag } from './JRCTag/JRCTag';
|
|
113
113
|
export { JRCBaseTooltip } from './JRCTooltip/JRCBaseTooltip';
|
package/dist/src/types.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export type { JRCFileOpenProps } from './components/JRCFileOpen/JRCFileOpen';
|
|
|
50
50
|
export type { JRCFileViewerOpenWithOptionsType } from './components/JRCFileViewer/types';
|
|
51
51
|
export type { JRCFlexBoxProps } from './components/JRCFlex/JRCFlexBox';
|
|
52
52
|
export type { JRCGridProps } from './components/JRCGrid/JRCGrid';
|
|
53
|
-
export type { JRCLinkToProps, JRCStyledHrefProps } from './components/
|
|
53
|
+
export type { JRCLinkToProps, JRCStyledHrefProps } from './components/JRCStyledHref/JRCStyledHref';
|
|
54
54
|
export type { JRCHtmlProps } from './components/JRCHtml/JRCHtml';
|
|
55
55
|
export type { JRCIconProps } from './components/JRCIcon/JRCIcon';
|
|
56
56
|
export type { JRCIconButtonProps } from './components/JRCIconButton/JRCIconButton';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.js",
|
|
6
6
|
"module": "dist/jamespot-react-components.mjs",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"globals": "^16.5.0",
|
|
79
79
|
"html2canvas": "^1.4.1",
|
|
80
80
|
"husky": "^9.1.7",
|
|
81
|
-
"jamespot-user-api": "^1.3.
|
|
81
|
+
"jamespot-user-api": "^1.3.41",
|
|
82
82
|
"jest": "^30.2.0",
|
|
83
83
|
"jest-environment-jsdom": "^30.2.0",
|
|
84
84
|
"knip": "^5.70.0",
|