@faststore/components 2.0.175-alpha.0 → 2.0.176-alpha.0
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/atoms/Link/Link.d.ts +3 -3
- package/dist/atoms/Link/Link.js.map +1 -1
- package/dist/organisms/OutOfStock/OutOfStock.js +2 -2
- package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -1
- package/package.json +2 -2
- package/src/atoms/Link/Link.tsx +2 -8
- package/src/organisms/OutOfStock/OutOfStock.tsx +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ElementType } from 'react';
|
|
2
3
|
import { PolymorphicComponentPropsWithRef } from '../../typings';
|
|
3
4
|
type LinkBaseProps = {
|
|
4
5
|
/**
|
|
@@ -20,6 +21,5 @@ type LinkBaseProps = {
|
|
|
20
21
|
};
|
|
21
22
|
export type LinkElementType = ElementType;
|
|
22
23
|
export type LinkProps<C extends LinkElementType = 'a'> = PolymorphicComponentPropsWithRef<C, LinkBaseProps>;
|
|
23
|
-
|
|
24
|
-
declare const Link: LinkComponent;
|
|
24
|
+
declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps<LinkElementType>, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
25
25
|
export default Link;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/atoms/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/atoms/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AA4BzC,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,IAAI,CACnC,EACE,EAAE,EACF,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,OAAO,EACP,MAAM,GAAG,SAAS,EAClB,GAAG,UAAU,EACA,EACf,GAAuB;IAEvB,MAAM,SAAS,GAAG,EAAE,IAAI,GAAG,CAAA;IAE3B,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,GAAG,gDAEc,OAAO,0BACP,OAAO,uBACV,IAAI,iBACV,MAAM,KACf,UAAU,IAEb,QAAQ,CACC,CACb,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Button, Icon, InputField } from '../..';
|
|
3
|
-
const OutOfStock = forwardRef(function OutOfStock({ testId = 'fs-out-of-stock', title, buttonLabel = 'Notify Me', loadingLabel = 'Loading', inputLabel, subtitle, disabled, errorMessage, onSubmit,
|
|
4
|
-
return (React.createElement("form", { "data-fs-out-of-stock": true, ref: ref, "data-testid": testId, onSubmit: onSubmit
|
|
3
|
+
const OutOfStock = forwardRef(function OutOfStock({ testId = 'fs-out-of-stock', title, buttonLabel = 'Notify Me', loadingLabel = 'Loading', inputLabel, subtitle, disabled, errorMessage, onSubmit, }, ref) {
|
|
4
|
+
return (React.createElement("form", { "data-fs-out-of-stock": true, ref: ref, "data-testid": testId, onSubmit: onSubmit },
|
|
5
5
|
React.createElement("h2", { "data-fs-out-of-stock-title": true }, title),
|
|
6
6
|
subtitle && (React.createElement("p", { "data-fs-out-of-stock-message": true },
|
|
7
7
|
React.createElement(Icon, { name: "BellRinging", width: 16, height: 16 }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStock.js","sourceRoot":"","sources":["../../../src/organisms/OutOfStock/OutOfStock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,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EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,EACjC,YAAY,EAAC,MAAM,IAElB,WAAW,CACL,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.176-alpha.0",
|
|
4
4
|
"module": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"node": "16.18.0",
|
|
31
31
|
"yarn": "1.19.1"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "96bf7d15bd55d97d56ccdf281ede9acb0618e3cd"
|
|
34
34
|
}
|
package/src/atoms/Link/Link.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react'
|
|
2
|
-
import type { ElementType
|
|
2
|
+
import type { ElementType } from 'react'
|
|
3
3
|
import { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../../typings'
|
|
4
4
|
|
|
5
5
|
type LinkBaseProps = {
|
|
@@ -26,13 +26,7 @@ export type LinkElementType = ElementType
|
|
|
26
26
|
export type LinkProps<C extends LinkElementType = 'a'> =
|
|
27
27
|
PolymorphicComponentPropsWithRef<C, LinkBaseProps>
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
props: LinkProps<C>
|
|
31
|
-
) => ReactElement | null
|
|
32
|
-
|
|
33
|
-
const Link: LinkComponent = forwardRef(function Link<
|
|
34
|
-
C extends LinkElementType = 'a'
|
|
35
|
-
>(
|
|
29
|
+
const Link = forwardRef(function Link<C extends LinkElementType = 'a'>(
|
|
36
30
|
{
|
|
37
31
|
as,
|
|
38
32
|
children,
|
|
@@ -54,7 +54,6 @@ const OutOfStock = forwardRef<HTMLFormElement, OutOfStockProps>(
|
|
|
54
54
|
disabled,
|
|
55
55
|
errorMessage,
|
|
56
56
|
onSubmit,
|
|
57
|
-
...otherProps
|
|
58
57
|
},
|
|
59
58
|
ref
|
|
60
59
|
) {
|
|
@@ -64,7 +63,6 @@ const OutOfStock = forwardRef<HTMLFormElement, OutOfStockProps>(
|
|
|
64
63
|
ref={ref}
|
|
65
64
|
data-testid={testId}
|
|
66
65
|
onSubmit={onSubmit}
|
|
67
|
-
{...otherProps}
|
|
68
66
|
>
|
|
69
67
|
<h2 data-fs-out-of-stock-title>{title}</h2>
|
|
70
68
|
{subtitle && (
|