jamespot-react-components 1.0.96 → 1.0.104
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 +288 -287
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -1
- package/build/src/components/JRCDate/JRCDate.d.ts +1 -1
- package/build/src/components/JRCDate/JRCDate.stories.d.ts +1 -1
- package/build/src/components/JRCHref/JRCHref.d.ts +6 -4
- package/build/src/components/JRCHref/JRCHref.stories.d.ts +1 -3
- package/build/src/components/JRCIconButton/JRCIconButton.d.ts +1 -1
- package/build/src/components/JRCList/JRCList.d.ts +1 -0
- package/build/src/components/Templates/JRCContainer.d.ts +2 -1
- package/build/src/components/Templates/template.type.d.ts +0 -1
- package/build/src/index.d.ts +2 -2
- package/package.json +2 -2
- package/storybook-static/{587.e803fde0.iframe.bundle.js → 899.f19a54f4.iframe.bundle.js} +2 -2
- package/storybook-static/{587.e803fde0.iframe.bundle.js.LICENSE.txt → 899.f19a54f4.iframe.bundle.js.LICENSE.txt} +22 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.8996cd39.iframe.bundle.js +1 -0
- package/storybook-static/main.b14e8790.iframe.bundle.js +0 -1
|
@@ -24,7 +24,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
|
|
|
24
24
|
(props: Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & import("../../types/dataAttributes").DataCy & {
|
|
25
25
|
icon: string;
|
|
26
26
|
size?: "small" | "medium" | undefined;
|
|
27
|
-
onClick?: ((event?: import("react").MouseEvent<
|
|
27
|
+
onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
value?: string | undefined;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { JRCDateProps } from './JRCDate';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (props: JRCDateProps) => JSX.Element;
|
|
5
|
+
component: (props: JRCDateProps) => JSX.Element | null;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
import { Story } from '@storybook/react';
|
|
@@ -7,6 +7,10 @@ import { DataCy } from '../../types/dataAttributes';
|
|
|
7
7
|
export declare type JRCLinkToProps = DataCy & React.ComponentPropsWithoutRef<'a'> & {
|
|
8
8
|
idObject?: number;
|
|
9
9
|
};
|
|
10
|
+
declare type NativeProps = React.ComponentPropsWithoutRef<'a'> & {
|
|
11
|
+
href: string;
|
|
12
|
+
useLink?: boolean;
|
|
13
|
+
};
|
|
10
14
|
declare type AnchorProps = {
|
|
11
15
|
as?: 'a';
|
|
12
16
|
};
|
|
@@ -22,8 +26,6 @@ declare type ButtonProps = {
|
|
|
22
26
|
* Props type for JRCStyledHref
|
|
23
27
|
* @member as render the link styled as a button
|
|
24
28
|
*/
|
|
25
|
-
export declare type JRCStyledHrefProps = DataCy &
|
|
26
|
-
export declare const JRCStyledHref: (props: JRCStyledHrefProps) => JSX.Element;
|
|
27
|
-
export declare const JRCLinkToArticle: ({ idObject, href, children, ...props }: JRCLinkToProps) => JSX.Element;
|
|
28
|
-
export declare const JRCLinkToUser: ({ idObject, href, children, ...props }: JRCLinkToProps) => JSX.Element;
|
|
29
|
+
export declare type JRCStyledHrefProps = DataCy & (AnchorProps | ButtonProps) & NativeProps;
|
|
30
|
+
export declare const JRCStyledHref: ({ href, ...props }: JRCStyledHrefProps) => JSX.Element;
|
|
29
31
|
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { JRCStyledHrefProps
|
|
1
|
+
import { JRCStyledHrefProps } from './JRCHref';
|
|
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
|
export declare const Default: Story<JRCStyledHrefProps>;
|
|
6
|
-
export declare const User: Story<JRCLinkToProps>;
|
|
7
|
-
export declare const Article: Story<JRCLinkToProps>;
|
|
@@ -17,7 +17,7 @@ import { DataCy } from '../../types/dataAttributes';
|
|
|
17
17
|
export declare type JRCIconButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
|
|
18
18
|
icon: string;
|
|
19
19
|
size?: 'small' | 'medium';
|
|
20
|
-
onClick?: (event?: React.MouseEvent) => void;
|
|
20
|
+
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
21
21
|
name?: string;
|
|
22
22
|
value?: string;
|
|
23
23
|
disabled?: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { JRCContainerProps } from './template.type';
|
|
2
|
-
export declare const JRCContainer:
|
|
3
|
+
export declare const JRCContainer: React.ForwardRefExoticComponent<JRCContainerProps & React.RefAttributes<HTMLDivElement>>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export { JRCFormSendAlertField } from './components/Form/Input/JRCFormSendAlert/
|
|
|
69
69
|
export { JRCFormTextarea, JRCFormTextareaField } from './components/Form/Input/JRCFormTextarea/JRCFormTextarea';
|
|
70
70
|
export { JRCFormTextField } from './components/Form/Input/JRCFormText/JRCFormText';
|
|
71
71
|
export { JRCFormUrlField } from './components/Form/Input/JRCFormURL/JRCFormUrl';
|
|
72
|
-
export { JRCGrid } from 'components/JRCGrid/JRCGrid';
|
|
72
|
+
export { JRCGrid } from './components/JRCGrid/JRCGrid';
|
|
73
73
|
export { JRCH1, JRCH2, JRCH3, JRCH4, JRCH5, JRCText } from './components/JRCTypo/JRCTypo';
|
|
74
74
|
export { JRCIcon } from './components/JRCIcon/JRCIcon';
|
|
75
75
|
export { JRCIconButton } from './components/JRCIconButton/JRCIconButton';
|
|
@@ -91,7 +91,7 @@ export { JRCModalImg } from './components/JRCModalImg/JRCModalImg';
|
|
|
91
91
|
export { JRCPagination } from './components/JRCPagination/JRCPagination';
|
|
92
92
|
export { JRCSkeletonLine } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
93
93
|
export { JRCSkeletonSquare } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
94
|
-
export { JRCStyledHref
|
|
94
|
+
export { JRCStyledHref } from './components/JRCHref/JRCHref';
|
|
95
95
|
export { JRCTabs, JRCTabPanel } from './components/JRCTabs/JRCTabs';
|
|
96
96
|
export { JRCTag } from './components/JRCTag/JRCTag';
|
|
97
97
|
export { JRCTemplateBase } from './components/Templates/JRCBase.template';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@types/redux-logger": "^3.0.8",
|
|
99
99
|
"chroma-js": "^2.1.1",
|
|
100
100
|
"classnames": "^2.3.1",
|
|
101
|
-
"jamespot-user-api": "^1.0.
|
|
101
|
+
"jamespot-user-api": "^1.0.76",
|
|
102
102
|
"moment": "^2.29.1",
|
|
103
103
|
"react": "^17.x",
|
|
104
104
|
"react-dnd": "^14.0.4",
|