@faststore/ui 2.0.91-alpha.0 → 2.0.95-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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/molecules/RegionBar/styles.scss +60 -0
- package/src/components/organisms/ShippingSimulation/styles.scss +67 -0
- package/src/index.ts +1 -1
- package/src/styles/components.scss +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { default as Banner, BannerContent, BannerImage, BannerLink, } from './co
|
|
|
13
13
|
export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './components/molecules/Banner';
|
|
14
14
|
export { default as Form } from './components/molecules/Form';
|
|
15
15
|
export type { FormProps } from './components/molecules/Form';
|
|
16
|
-
export {
|
|
16
|
+
export { Tile, Tiles } from './components/organisms/Tiles';
|
|
17
17
|
export type { TilesProps, TileProps } from './components/organisms/Tiles';
|
|
18
18
|
export { default as useSlider } from './hooks/useSlider';
|
|
19
19
|
export type { UseSliderArgs, SliderState, SliderDispatch, SlideDirection, } from './hooks/useSlider';
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { default as Carousel } from './components/molecules/Carousel';
|
|
|
9
9
|
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
|
|
10
10
|
export { default as Form } from './components/molecules/Form';
|
|
11
11
|
// Organisms
|
|
12
|
-
export {
|
|
12
|
+
export { Tile, Tiles } from './components/organisms/Tiles';
|
|
13
13
|
// Hooks
|
|
14
14
|
export { default as useSlider } from './hooks/useSlider';
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
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,OAA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,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.95-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": "3e2c8ab5300ce51834636f545d386fa5c506a97c"
|
|
62
62
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[data-fs-region-bar] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Region Bar
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-region-bar-width : 100%;
|
|
8
|
+
--fs-region-bar-padding : var(--fs-spacing-0) var(--fs-spacing-2) var(--fs-spacing-0) var(--fs-spacing-3);
|
|
9
|
+
|
|
10
|
+
--fs-region-bar-text-color : var(--fs-color-text-display);
|
|
11
|
+
|
|
12
|
+
--fs-region-bar-bkg-color : var(--fs-color-body-bkg);
|
|
13
|
+
|
|
14
|
+
--fs-region-bar-border-bottom-width : var(--fs-border-width);
|
|
15
|
+
--fs-region-bar-border-bottom-color : var(--fs-border-color-light);
|
|
16
|
+
|
|
17
|
+
// CTA
|
|
18
|
+
--fs-region-bar-cta-margin-left : auto;
|
|
19
|
+
--fs-region-bar-cta-text-decoration : underline;
|
|
20
|
+
|
|
21
|
+
// Message
|
|
22
|
+
--fs-region-bar-message-margin-right : auto;
|
|
23
|
+
|
|
24
|
+
// Postal Code
|
|
25
|
+
--fs-region-bar-postal-code-margin-right : auto;
|
|
26
|
+
|
|
27
|
+
// --------------------------------------------------------
|
|
28
|
+
// Structural Styles
|
|
29
|
+
// --------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
width: var(--fs-region-bar-width);
|
|
32
|
+
|
|
33
|
+
[data-fs-button] {
|
|
34
|
+
width: var(--fs-region-bar-width);
|
|
35
|
+
padding: var(--fs-region-bar-padding);
|
|
36
|
+
color: var(--fs-region-bar-text-color);
|
|
37
|
+
background-color: var(--fs-region-bar-bkg-color);
|
|
38
|
+
border-bottom: var(--fs-region-bar-border-bottom-width) solid var(--fs-region-bar-border-bottom-color);
|
|
39
|
+
border-radius: 0;
|
|
40
|
+
|
|
41
|
+
> span {
|
|
42
|
+
display: contents;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-fs-region-bar-cta] {
|
|
47
|
+
margin-left: var(--fs-region-bar-cta-margin-left);
|
|
48
|
+
text-decoration: var(--fs-region-bar-cta-text-decoration);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-fs-region-bar-postal-code] {
|
|
52
|
+
margin-right: var(--fs-region-bar-postal-code-margin-right);
|
|
53
|
+
font-weight: var(--fs-text-weight-regular);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-fs-region-bar-message] {
|
|
57
|
+
margin-right: var(--fs-region-bar-message-margin-right);
|
|
58
|
+
font-weight: var(--fs-text-weight-regular);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[data-fs-shipping-simulation] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Shipping Simulation
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-shipping-simulation-text-size : var(--fs-text-size-legend);
|
|
8
|
+
|
|
9
|
+
// Title
|
|
10
|
+
--fs-shipping-simulation-title-padding-bottom : var(--fs-spacing-2);
|
|
11
|
+
--fs-shipping-simulation-title-font-size : var(--fs-text-size-3);
|
|
12
|
+
--fs-shipping-simulation-title-font-weight : var(--fs-text-weight-bold);
|
|
13
|
+
--fs-shipping-simulation-title-line-height : 1.2;
|
|
14
|
+
|
|
15
|
+
// Link
|
|
16
|
+
--fs-shipping-simulation-link-padding-top : var(--fs-spacing-1);
|
|
17
|
+
|
|
18
|
+
// Header
|
|
19
|
+
--fs-shipping-simulation-header-padding-top : var(--fs-spacing-3);
|
|
20
|
+
|
|
21
|
+
// Subtitle
|
|
22
|
+
--fs-shipping-simulation-subtitle-size : var(--fs-text-size-2);
|
|
23
|
+
--fs-shipping-simulation-subtitle-weight : var(--fs-text-weight-bold);
|
|
24
|
+
--fs-shipping-simulation-subtitle-line-height : 1.5;
|
|
25
|
+
|
|
26
|
+
// Location
|
|
27
|
+
--fs-shipping-simulation-location-padding-bottom : var(--fs-spacing-2);
|
|
28
|
+
--fs-shipping-simulation-location-font-size : var(--fs-text-size-2);
|
|
29
|
+
--fs-shipping-simulation-location-line-height : 1.5;
|
|
30
|
+
|
|
31
|
+
// --------------------------------------------------------
|
|
32
|
+
// Structural Styles
|
|
33
|
+
// --------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
[data-fs-shipping-simulation-title] {
|
|
36
|
+
padding-bottom: var(--fs-shipping-simulation-title-padding-bottom);
|
|
37
|
+
font-size: var(--fs-shipping-simulation-title-font-size);
|
|
38
|
+
font-weight: var(--fs-shipping-simulation-title-font-weight);
|
|
39
|
+
line-height: var(--fs-shipping-simulation-title-line-height);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-fs-shipping-simulation-link] {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
padding-top: var(--fs-shipping-simulation-link-padding-top);
|
|
46
|
+
|
|
47
|
+
svg {
|
|
48
|
+
margin-left: var(--fs-spacing-0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-fs-shipping-simulation-header] {
|
|
53
|
+
padding-top: var(--fs-shipping-simulation-header-padding-top);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-fs-shipping-simulation-subtitle] {
|
|
57
|
+
font-size: var(--fs-shipping-simulation-subtitle-size);
|
|
58
|
+
font-weight: var(--fs-shipping-simulation-subtitle-weight);
|
|
59
|
+
line-height: var(--fs-shipping-simulation-subtitle-line-height);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-fs-shipping-simulation-location] {
|
|
63
|
+
padding-bottom: var(--fs-shipping-simulation-location-padding-bottom);
|
|
64
|
+
font-size: var(--fs-shipping-simulation-location-font-size);
|
|
65
|
+
line-height: var(--fs-shipping-simulation-location-line-height);
|
|
66
|
+
}
|
|
67
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,7 @@ export { default as Form } from './components/molecules/Form'
|
|
|
35
35
|
export type { FormProps } from './components/molecules/Form'
|
|
36
36
|
|
|
37
37
|
// Organisms
|
|
38
|
-
export {
|
|
38
|
+
export { Tile, Tiles } from './components/organisms/Tiles'
|
|
39
39
|
export type { TilesProps, TileProps } from './components/organisms/Tiles'
|
|
40
40
|
|
|
41
41
|
// Hooks
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
@import "../components/molecules/QuantitySelector/styles";
|
|
34
34
|
@import "../components/molecules/RadioField/styles";
|
|
35
35
|
@import "../components/molecules/Rating/styles";
|
|
36
|
+
@import "../components/molecules/RegionBar/styles";
|
|
36
37
|
@import "../components/molecules/SearchAutoComplete/styles";
|
|
37
38
|
@import "../components/molecules/SearchDropdown/styles";
|
|
38
39
|
@import "../components/molecules/SearchHistory/styles";
|
|
@@ -55,4 +56,5 @@
|
|
|
55
56
|
@import "../components/organisms/PaymentMethods/styles";
|
|
56
57
|
@import "../components/organisms/PriceRange/styles";
|
|
57
58
|
@import "../components/organisms/SearchInput/styles";
|
|
59
|
+
@import "../components/organisms/ShippingSimulation/styles";
|
|
58
60
|
@import "../components/organisms/SlideOver/styles";
|