@faststore/ui 2.0.79-alpha.0 → 2.0.85-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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.85-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": "24590eae428eae6be0b7c43cbec9fe236270794e"
|
|
62
62
|
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
[data-fs-toast] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Toast
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-toast-width : calc(100% - (2 * var(--fs-spacing-3)));
|
|
8
|
+
--fs-toast-min-height : var(--fs-spacing-9);
|
|
9
|
+
--fs-toast-padding : var(--fs-spacing-1) var(--fs-spacing-3) var(--fs-spacing-1) var(--fs-spacing-1);
|
|
10
|
+
--fs-toast-margin : var(--fs-spacing-3) var(--fs-spacing-3) 0 var(--fs-spacing-3);
|
|
11
|
+
|
|
12
|
+
--fs-toast-top-mobile : 3.125rem;
|
|
13
|
+
--fs-toast-top-tablet : 6.25rem;
|
|
14
|
+
|
|
15
|
+
--fs-toast-border-radius : var(--fs-border-radius-medium);
|
|
16
|
+
--fs-toast-border-width : var(--fs-border-width);
|
|
17
|
+
--fs-toast-border-color : transparent;
|
|
18
|
+
|
|
19
|
+
--fs-toast-shadow : 0 1px 3px rgba(0,0,0,.1);
|
|
20
|
+
--fs-toast-bkg-color : var(--fs-color-neutral-0);
|
|
21
|
+
|
|
22
|
+
--fs-toast-transition-property : var(--fs-transition-property);
|
|
23
|
+
--fs-toast-transition-timing : var(--fs-transition-timing);
|
|
24
|
+
--fs-toast-transition-function : var(--fs-transition-function);
|
|
25
|
+
|
|
26
|
+
// Icon
|
|
27
|
+
--fs-toast-icon-container-min-width : var(--fs-spacing-7);
|
|
28
|
+
--fs-toast-icon-container-height : var(--fs-toast-icon-container-min-width);
|
|
29
|
+
--fs-toast-icon-container-bkg-color : var(--fs-color-primary-bkg-light);
|
|
30
|
+
--fs-toast-icon-container-border-radius : var(--fs-border-radius);
|
|
31
|
+
|
|
32
|
+
// Title
|
|
33
|
+
--fs-toast-title-size : var(--fs-text-size-body);
|
|
34
|
+
--fs-toast-title-weight : var(--fs-text-weight-bold);
|
|
35
|
+
--fs-toast-title-line-height : var(--fs-scale);
|
|
36
|
+
--fs-toast-title-margin-left : var(--fs-spacing-3);
|
|
37
|
+
|
|
38
|
+
// Message
|
|
39
|
+
--fs-toast-message-size : var(--fs-toast-title-size);
|
|
40
|
+
--fs-toast-message-line-height : var(--fs-toast-title-line-height);
|
|
41
|
+
--fs-toast-message-margin-left : var(--fs-spacing-3);
|
|
42
|
+
|
|
43
|
+
// --------------------------------------------------------
|
|
44
|
+
// Structural Styles
|
|
45
|
+
// --------------------------------------------------------
|
|
46
|
+
|
|
47
|
+
position: fixed;
|
|
48
|
+
top: var(--fs-toast-top-mobile);
|
|
49
|
+
right: 0;
|
|
50
|
+
z-index: 10;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: left;
|
|
55
|
+
width: var(--fs-toast-width);
|
|
56
|
+
min-height: var(--fs-toast-min-height);
|
|
57
|
+
padding: var(--fs-toast-padding);
|
|
58
|
+
margin: var(--fs-toast-margin);
|
|
59
|
+
background-color: var(--fs-toast-bkg-color);
|
|
60
|
+
border-radius: var(--fs-toast-border-radius);
|
|
61
|
+
box-shadow: var(--fs-toast-shadow);
|
|
62
|
+
opacity: 0;
|
|
63
|
+
transition: var(--fs-toast-transition-property) var(--fs-toast-transition-timing) var(--fs-toast-transition-function);
|
|
64
|
+
transform: translate3d(0, 0, 0);
|
|
65
|
+
|
|
66
|
+
@include media(">=tablet") {
|
|
67
|
+
top: var(--fs-toast-top-tablet);
|
|
68
|
+
right: var(--fs-spacing-4);
|
|
69
|
+
max-width: rem(398px);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&[data-fs-toast-visible="true"] {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
transform: translate3d(0, 50%, 0);
|
|
75
|
+
|
|
76
|
+
@include media(">=tablet") {
|
|
77
|
+
transform: translate3d(0, 10%, 0);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-fs-toast-icon-container] {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
align-self: flex-start;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
min-width: var(--fs-toast-icon-container-min-width);
|
|
87
|
+
height: var(--fs-toast-icon-container-height);
|
|
88
|
+
background-color: var(--fs-toast-icon-container-bkg-color);
|
|
89
|
+
border-radius: var(--fs-toast-icon-container-border-radius);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-fs-toast-content] {
|
|
93
|
+
display: block;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-fs-toast-title] {
|
|
98
|
+
margin-left: var(--fs-toast-title-margin-left);
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
font-size: var(--fs-toast-title-size);
|
|
101
|
+
font-weight: var(--fs-toast-title-weight);
|
|
102
|
+
line-height: var(--fs-toast-title-line-height);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-fs-toast-message] {
|
|
106
|
+
margin-left: var(--fs-toast-message-margin-left);
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
font-size: var(--fs-toast-message-size);
|
|
109
|
+
line-height: var(--fs-toast-message-line-height);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
@import "../components/molecules/SelectField/styles";
|
|
41
41
|
@import "../components/molecules/Table/styles";
|
|
42
42
|
@import "../components/molecules/Tag/styles";
|
|
43
|
+
@import "../components/molecules/Toast/styles";
|
|
43
44
|
@import "../components/molecules/Toggle/styles";
|
|
44
45
|
@import "../components/molecules/ToggleField/styles";
|
|
45
46
|
|