jamespot-react-components 1.0.96 → 1.0.99
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 +287 -287
- package/build/jamespot-react-components.js.map +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/JRCList/JRCList.d.ts +1 -0
- package/build/src/index.d.ts +1 -1
- package/package.json +1 -1
- 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.796ce979.iframe.bundle.js +1 -0
- package/storybook-static/main.b14e8790.iframe.bundle.js +0 -1
|
@@ -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>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -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';
|