@faststore/ui 2.0.47-alpha.0 → 2.0.49-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 -4
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/components/molecules/Alert/styles.scss +108 -0
- package/src/components/molecules/Rating/styles.scss +69 -0
- package/src/index.ts +0 -6
- package/src/styles/components.scss +2 -0
- package/CHANGELOG.md +0 -2284
- package/dist/components/molecules/AggregateRating/AggregateRating.d.ts +0 -18
- package/dist/components/molecules/AggregateRating/AggregateRating.js +0 -26
- package/dist/components/molecules/AggregateRating/AggregateRating.js.map +0 -1
- package/dist/components/molecules/AggregateRating/index.d.ts +0 -2
- package/dist/components/molecules/AggregateRating/index.js +0 -2
- package/dist/components/molecules/AggregateRating/index.js.map +0 -1
- package/dist/components/molecules/Alert/Alert.d.ts +0 -11
- package/dist/components/molecules/Alert/Alert.js +0 -6
- package/dist/components/molecules/Alert/Alert.js.map +0 -1
- package/dist/components/molecules/Alert/index.d.ts +0 -2
- package/dist/components/molecules/Alert/index.js +0 -2
- package/dist/components/molecules/Alert/index.js.map +0 -1
- package/src/components/molecules/AggregateRating/AggregateRating.tsx +0 -76
- package/src/components/molecules/AggregateRating/index.ts +0 -2
- package/src/components/molecules/Alert/Alert.tsx +0 -30
- package/src/components/molecules/Alert/index.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -19,8 +19,6 @@ export { default as ProductTitle } from './components/molecules/ProductTitle';
|
|
|
19
19
|
export type { ProductTitleProps } from './components/molecules/ProductTitle';
|
|
20
20
|
export { default as OrderSummary } from './components/molecules/OrderSummary';
|
|
21
21
|
export type { OrderSummaryProps } from './components/molecules/OrderSummary';
|
|
22
|
-
export { default as AggregateRating } from './components/molecules/AggregateRating';
|
|
23
|
-
export type { AggregateRatingProps } from './components/molecules/AggregateRating';
|
|
24
22
|
export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './components/molecules/ProductCard';
|
|
25
23
|
export type { ProductCardProps, ProductCardImageProps, ProductCardContentProps, ProductCardActionsProps, } from './components/molecules/ProductCard';
|
|
26
24
|
export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
|
|
@@ -49,8 +47,6 @@ export { default as RadioGroup, RadioOption, } from './components/molecules/Radi
|
|
|
49
47
|
export type { RadioGroupProps, RadioOptionProps, } from './components/molecules/RadioGroup';
|
|
50
48
|
export { default as Form } from './components/molecules/Form';
|
|
51
49
|
export type { FormProps } from './components/molecules/Form';
|
|
52
|
-
export { default as Alert } from './components/molecules/Alert';
|
|
53
|
-
export type { AlertProps } from './components/molecules/Alert';
|
|
54
50
|
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './components/organisms/OutOfStock';
|
|
55
51
|
export type { OutOfStockProps, OutOfStockMessageProps, OutOfStockTitleProps, } from './components/organisms/OutOfStock';
|
|
56
52
|
export { Tiles, Tile } from './components/organisms/Tiles';
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,6 @@ export { default as SkuSelector } from './components/molecules/SkuSelector';
|
|
|
11
11
|
export { default as Gift, GiftContent, GiftImage, } from './components/molecules/Gift';
|
|
12
12
|
export { default as ProductTitle } from './components/molecules/ProductTitle';
|
|
13
13
|
export { default as OrderSummary } from './components/molecules/OrderSummary';
|
|
14
|
-
export { default as AggregateRating } from './components/molecules/AggregateRating';
|
|
15
14
|
export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './components/molecules/ProductCard';
|
|
16
15
|
export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
|
|
17
16
|
export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './components/molecules/CartItem';
|
|
@@ -26,7 +25,6 @@ export { default as LoadingButton } from './components/molecules/LoadingButton';
|
|
|
26
25
|
export { default as PriceRange } from './components/molecules/PriceRange';
|
|
27
26
|
export { default as RadioGroup, RadioOption, } from './components/molecules/RadioGroup';
|
|
28
27
|
export { default as Form } from './components/molecules/Form';
|
|
29
|
-
export { default as Alert } from './components/molecules/Alert';
|
|
30
28
|
// Organisms
|
|
31
29
|
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './components/organisms/OutOfStock';
|
|
32
30
|
export { Tiles, Tile } from './components/organisms/Tiles';
|
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,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAG7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAA;AAG3E,OAAO,EACL,OAAO,IAAI,IAAI,EACf,WAAW,EACX,SAAS,GACV,MAAM,6BAA6B,CAAA;AAOpC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAG7E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAG7E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4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IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAA;AAGjF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAA;AAG/E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGzE,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,WAAW,GACZ,MAAM,mCAAmC,CAAA;AAM1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAG7D,YAAY;AACZ,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,mCAAmC,CAAA;AAO1C,OAAO,EAAE,KAAK,EAAE,IAAI,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.49-alpha.0",
|
|
4
4
|
"description": "A lightweight, framework agnostic component library for React",
|
|
5
5
|
"author": "emersonlaurentino",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"size-limit": [
|
|
31
31
|
{
|
|
32
32
|
"path": "dist/index.js",
|
|
33
|
-
"limit": "
|
|
33
|
+
"limit": "30 KB"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"react-dom": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@faststore/eslint-config": "^2.0.
|
|
50
|
-
"@faststore/shared": "^2.0.
|
|
49
|
+
"@faststore/eslint-config": "^2.0.49-alpha.0",
|
|
50
|
+
"@faststore/shared": "^2.0.49-alpha.0",
|
|
51
51
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
52
52
|
"@types/tabbable": "^3.1.1",
|
|
53
53
|
"babel-loader": "^8.2.5",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"node": "16.18.0",
|
|
60
60
|
"yarn": "1.19.1"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "7046452f096b9b7e33b10db94e0213c3f10f91b5"
|
|
63
63
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[data-fs-alert] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Alert
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-alert-height : var(--fs-spacing-7);
|
|
8
|
+
--fs-alert-padding-left : var(--fs-spacing-3);
|
|
9
|
+
--fs-alert-padding-right : var(--fs-alert-padding-left);
|
|
10
|
+
|
|
11
|
+
--fs-alert-bkg-color : var(--fs-color-highlighted-bkg);
|
|
12
|
+
|
|
13
|
+
--fs-alert-text-color : var(--fs-color-highlighted-text);
|
|
14
|
+
--fs-alert-text-size : var(--fs-text-size-1);
|
|
15
|
+
|
|
16
|
+
// Icon
|
|
17
|
+
--fs-alert-icon-width : var(--fs-spacing-4);
|
|
18
|
+
--fs-alert-icon-height : var(--fs-alert-icon-width);
|
|
19
|
+
--fs-alert-icon-margin-right : var(--fs-spacing-1);
|
|
20
|
+
--fs-alert-icon-color : var(--fs-alert-text-color);
|
|
21
|
+
|
|
22
|
+
// Link
|
|
23
|
+
--fs-alert-link-color : var(--fs-alert-text-color);
|
|
24
|
+
--fs-alert-link-color-visited : var(--fs-alert-text-color);
|
|
25
|
+
|
|
26
|
+
// Dismissible Button
|
|
27
|
+
--fs-alert-button-text-color : var(--fs-alert-text-color);
|
|
28
|
+
--fs-alert-button-bkg-color : var(--fs-alert-bkg-color);
|
|
29
|
+
--fs-alert-button-border-radius : var(--fs-border-radius);
|
|
30
|
+
|
|
31
|
+
// --------------------------------------------------------
|
|
32
|
+
// Structural Styles
|
|
33
|
+
// --------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: var(--fs-alert-height);
|
|
39
|
+
padding-right: var(--fs-alert-padding-right);
|
|
40
|
+
padding-left: var(--fs-alert-padding-left);
|
|
41
|
+
font-size: var(--fs-alert-text-size);
|
|
42
|
+
color: var(--fs-alert-text-color);
|
|
43
|
+
background-color: var(--fs-alert-bkg-color);
|
|
44
|
+
|
|
45
|
+
> [data-fs-icon] {
|
|
46
|
+
width: var(--fs-alert-icon-width);
|
|
47
|
+
height: var(--fs-alert-icon-height);
|
|
48
|
+
margin-right: var(--fs-alert-icon-margin-right);
|
|
49
|
+
color: var(--fs-alert-icon-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-fs-alert-content] {
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
span {
|
|
59
|
+
font-weight: var(--fs-text-weight-bold);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-fs-alert-link] {
|
|
63
|
+
min-width: 0;
|
|
64
|
+
height: var(--fs-alert-height);
|
|
65
|
+
padding: 0 var(--fs-spacing-1);
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
font-weight: var(--fs-text-weight-bold);
|
|
68
|
+
line-height: var(--fs-alert-height);
|
|
69
|
+
color: var(--fs-alert-link-color);
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
|
|
73
|
+
&:visited {
|
|
74
|
+
color: var(--fs-alert-link-color-visited);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-fs-alert-button] {
|
|
79
|
+
min-width: var(--fs-control-tap-size);
|
|
80
|
+
height: 100%;
|
|
81
|
+
padding: var(--fs-spacing-0);
|
|
82
|
+
margin-left: auto;
|
|
83
|
+
color: var(--fs-alert-button-text-color);
|
|
84
|
+
background-color: var(--fs-alert-button-bkg-color);
|
|
85
|
+
|
|
86
|
+
> span {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
background-color: var(--fs-alert-button-bkg-color);
|
|
93
|
+
border-radius: var(--fs-alert-button-border-radius);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:hover span {
|
|
97
|
+
filter: brightness(0.95);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// --------------------------------------------------------
|
|
102
|
+
// Variants Styles
|
|
103
|
+
// --------------------------------------------------------
|
|
104
|
+
|
|
105
|
+
&[data-fs-alert-dismissible="true"] {
|
|
106
|
+
padding-right: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[data-fs-rating] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Rating
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-rating-gap : var(--fs-spacing-3);
|
|
8
|
+
--fs-rating-color : var(--fs-color-text);
|
|
9
|
+
|
|
10
|
+
// Icon
|
|
11
|
+
--fs-rating-icon-width : var(--fs-spacing-3);
|
|
12
|
+
--fs-rating-icon-height : var(--fs-rating-icon-width);
|
|
13
|
+
|
|
14
|
+
// Actionable
|
|
15
|
+
--fs-rating-actionable-gap : 0;
|
|
16
|
+
|
|
17
|
+
// --------------------------------------------------------
|
|
18
|
+
// Structural Styles
|
|
19
|
+
// --------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
[data-fs-icon] {
|
|
24
|
+
color: var(--fs-rating-color);
|
|
25
|
+
width: var(--fs-rating-icon-width);
|
|
26
|
+
height: var(--fs-rating-icon-height);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-fs-rating-button] {
|
|
30
|
+
color: unset;
|
|
31
|
+
&[data-fs-button-variant=tertiary]:hover,
|
|
32
|
+
&[data-fs-button-variant=tertiary]:focus,
|
|
33
|
+
&[data-fs-button-variant=tertiary]:active { color: unset; }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-fs-rating-icon-wrapper] {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-fs-rating-icon-outline] {
|
|
44
|
+
svg { fill: none; }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-fs-rating-item] { position: relative; }
|
|
48
|
+
|
|
49
|
+
// --------------------------------------------------------
|
|
50
|
+
// Variants Styles
|
|
51
|
+
// --------------------------------------------------------
|
|
52
|
+
|
|
53
|
+
[data-fs-rating-item="empty"] [data-fs-icon] svg {
|
|
54
|
+
fill: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-fs-rating-item="partial"] [data-fs-rating-icon-wrapper] {
|
|
58
|
+
width: calc(var(--fs-rating-icon-width) / 2);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not([data-fs-rating-actionable="true"]) {
|
|
62
|
+
column-gap: var(--fs-rating-gap);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-fs-rating-actionable="true"] {
|
|
66
|
+
column-gap: var(--fs-rating-actionable-gap);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -40,9 +40,6 @@ export type { ProductTitleProps } from './components/molecules/ProductTitle'
|
|
|
40
40
|
export { default as OrderSummary } from './components/molecules/OrderSummary'
|
|
41
41
|
export type { OrderSummaryProps } from './components/molecules/OrderSummary'
|
|
42
42
|
|
|
43
|
-
export { default as AggregateRating } from './components/molecules/AggregateRating'
|
|
44
|
-
export type { AggregateRatingProps } from './components/molecules/AggregateRating'
|
|
45
|
-
|
|
46
43
|
export {
|
|
47
44
|
default as ProductCard,
|
|
48
45
|
ProductCardImage,
|
|
@@ -140,9 +137,6 @@ export type {
|
|
|
140
137
|
export { default as Form } from './components/molecules/Form'
|
|
141
138
|
export type { FormProps } from './components/molecules/Form'
|
|
142
139
|
|
|
143
|
-
export { default as Alert } from './components/molecules/Alert'
|
|
144
|
-
export type { AlertProps } from './components/molecules/Alert'
|
|
145
|
-
|
|
146
140
|
// Organisms
|
|
147
141
|
export {
|
|
148
142
|
default as OutOfStock,
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
// Molecules
|
|
16
16
|
@import "../components/molecules/Accordion/styles";
|
|
17
|
+
@import "../components/molecules/Alert/styles";
|
|
17
18
|
@import "../components/molecules/BuyButton/styles";
|
|
18
19
|
@import "../components/molecules/CheckboxField/styles";
|
|
19
20
|
@import "../components/molecules/DiscountBadge/styles";
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@import "../components/molecules/LinkButton/styles";
|
|
23
24
|
@import "../components/molecules/QuantitySelector/styles";
|
|
24
25
|
@import "../components/molecules/RadioField/styles";
|
|
26
|
+
@import "../components/molecules/Rating/styles";
|
|
25
27
|
@import "../components/molecules/SelectField/styles";
|
|
26
28
|
@import "../components/molecules/Table/styles";
|
|
27
29
|
@import "../components/molecules/Tag/styles";
|