@faststore/ui 2.0.106-alpha.0 → 2.0.108-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/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/organisms/EmptyState/styles.scss +71 -0
- package/src/index.ts +0 -3
- package/src/styles/components.scss +1 -0
- package/dist/components/molecules/Form/Form.d.ts +0 -11
- package/dist/components/molecules/Form/Form.js +0 -6
- package/dist/components/molecules/Form/Form.js.map +0 -1
- package/dist/components/molecules/Form/index.d.ts +0 -2
- package/dist/components/molecules/Form/index.js +0 -2
- package/dist/components/molecules/Form/index.js.map +0 -1
- package/src/components/molecules/Form/Form.tsx +0 -23
- package/src/components/molecules/Form/index.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export { default as Carousel } from './components/molecules/Carousel';
|
|
|
9
9
|
export type { CarouselProps } from './components/molecules/Carousel';
|
|
10
10
|
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
|
|
11
11
|
export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './components/molecules/Banner';
|
|
12
|
-
export { default as Form } from './components/molecules/Form';
|
|
13
|
-
export type { FormProps } from './components/molecules/Form';
|
|
14
12
|
export { Tile, Tiles } from './components/organisms/Tiles';
|
|
15
13
|
export type { TilesProps, TileProps } from './components/organisms/Tiles';
|
|
16
14
|
export { default as useSlider } from './hooks/useSlider';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export { default as Incentive } from './components/atoms/Incentive';
|
|
|
6
6
|
export { default as Bullets } from './components/molecules/Bullets';
|
|
7
7
|
export { default as Carousel } from './components/molecules/Carousel';
|
|
8
8
|
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
|
|
9
|
-
export { default as Form } from './components/molecules/Form';
|
|
10
9
|
// Organisms
|
|
11
10
|
export { Tile, Tiles } from './components/organisms/Tiles';
|
|
12
11
|
// Hooks
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AAEZ,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAGnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AAEZ,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAGnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,YAAY;AACZ,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAG1D,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.108-alpha.0",
|
|
4
4
|
"description": "A lightweight, framework agnostic component library for React",
|
|
5
5
|
"author": "emersonlaurentino",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"node": "16.18.0",
|
|
59
59
|
"yarn": "1.19.1"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "89d5c048f1ebe684c74a748b799a5fc0a3954819"
|
|
62
62
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[data-fs-empty-state] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for EmptyState
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
--fs-empty-state-height : 100%;
|
|
6
|
+
--fs-empty-state-min-height : 50vh;
|
|
7
|
+
--fs-empty-state-padding : 0 var(--fs-spacing-8);
|
|
8
|
+
--fs-empty-state-bkg-color-default : var(--fs-color-neutral-bkg);
|
|
9
|
+
--fs-empty-state-bkg-color-light : var(--fs-color-body-bkg);
|
|
10
|
+
|
|
11
|
+
// Title
|
|
12
|
+
--fs-empty-state-title-margin-bottom : var(--fs-spacing-2);
|
|
13
|
+
--fs-empty-state-title-color : var(--fs-color-disabled-text);
|
|
14
|
+
--fs-empty-state-title-size : var(--fs-text-size-lead);
|
|
15
|
+
|
|
16
|
+
// Link
|
|
17
|
+
--fs-empty-state-link-min-width : 11.875rem;
|
|
18
|
+
|
|
19
|
+
// Rounded
|
|
20
|
+
--fs-empty-state-border-radius : var(--fs-border-radius);
|
|
21
|
+
|
|
22
|
+
// Default properties
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
row-gap: var(--fs-spacing-3);
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
height: var(--fs-empty-state-height);
|
|
29
|
+
min-height: var(--fs-empty-state-min-height);
|
|
30
|
+
padding: var(--fs-empty-state-padding);
|
|
31
|
+
background-color: var(--fs-empty-state-bkg-color);
|
|
32
|
+
|
|
33
|
+
@include media(">=notebook") {
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> [data-fs-empty-state-title] {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
row-gap: var(--fs-spacing-1);
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
margin-bottom: var(--fs-empty-state-title-margin-bottom);
|
|
44
|
+
color: var(--fs-empty-state-title-color);
|
|
45
|
+
|
|
46
|
+
p {
|
|
47
|
+
font-size: var(--fs-empty-state-title-size);
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-fs-link-button] {
|
|
53
|
+
min-width: var(--fs-empty-state-link-min-width);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// --------------------------------------------------------
|
|
57
|
+
// Variants Styles
|
|
58
|
+
// --------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
&[data-fs-empty-state-variant="rounded"] {
|
|
61
|
+
border-radius: var(--fs-empty-state-border-radius);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-fs-empty-state-bkg-color="default"] {
|
|
65
|
+
background-color: var(--fs-empty-state-bkg-color-default);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&[data-fs-empty-state-bkg-color="light"] {
|
|
69
|
+
background-color: var(--fs-empty-state-bkg-color-light);
|
|
70
|
+
}
|
|
71
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -28,9 +28,6 @@ export type {
|
|
|
28
28
|
BannerLinkProps,
|
|
29
29
|
} from './components/molecules/Banner'
|
|
30
30
|
|
|
31
|
-
export { default as Form } from './components/molecules/Form'
|
|
32
|
-
export type { FormProps } from './components/molecules/Form'
|
|
33
|
-
|
|
34
31
|
// Organisms
|
|
35
32
|
export { Tile, Tiles } from './components/organisms/Tiles'
|
|
36
33
|
export type { TilesProps, TileProps } from './components/organisms/Tiles'
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
// Organisms
|
|
53
53
|
@import "../components/organisms/CartSidebar/styles";
|
|
54
|
+
@import "../components/organisms/EmptyState/styles";
|
|
54
55
|
@import "../components/organisms/Filter/styles";
|
|
55
56
|
@import "../components/organisms/FilterSlider/styles";
|
|
56
57
|
@import "../components/organisms/Hero/styles";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FormHTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
-
* testing-library, and jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
|
|
11
|
-
export default Form;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
const Form = forwardRef(function Form({ testId = 'store-form', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("form", { ref: ref, "data-fs-form": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
-
});
|
|
5
|
-
export default Form;
|
|
6
|
-
//# sourceMappingURL=Form.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../../src/components/molecules/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,IAAI,GAAG,UAAU,CAA6B,SAAS,IAAI,CAC/D,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClD,GAAG;IAEH,OAAO,CACL,8BAAM,GAAG,EAAE,GAAG,uCAA4B,MAAM,KAAM,UAAU,IAC7D,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FormHTMLAttributes } from 'react'
|
|
2
|
-
import React, { forwardRef } from 'react'
|
|
3
|
-
|
|
4
|
-
export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
5
|
-
/**
|
|
6
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
7
|
-
* testing-library, and jest).
|
|
8
|
-
*/
|
|
9
|
-
testId?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const Form = forwardRef<HTMLFormElement, FormProps>(function Form(
|
|
13
|
-
{ testId = 'store-form', children, ...otherProps },
|
|
14
|
-
ref
|
|
15
|
-
) {
|
|
16
|
-
return (
|
|
17
|
-
<form ref={ref} data-fs-form data-testid={testId} {...otherProps}>
|
|
18
|
-
{children}
|
|
19
|
-
</form>
|
|
20
|
-
)
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export default Form
|