allaw-ui 0.0.1 → 0.0.3
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.
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.button-primary {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
width: auto;
|
|
7
|
+
height: 42px;
|
|
8
|
+
padding: 1rem 1.3rem;
|
|
9
|
+
border-radius: 24px;
|
|
10
|
+
transition:
|
|
11
|
+
background-color 0.2s,
|
|
12
|
+
opacity 0.2s;
|
|
13
|
+
border: 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.button-primary-enabled {
|
|
17
|
+
background-color: #171e25;
|
|
18
|
+
color: white;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.button-primary-enabled:hover {
|
|
22
|
+
background-color: #1985e8;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.button-primary-enabled:active {
|
|
26
|
+
background-color: #1985e8;
|
|
27
|
+
opacity: 0.7;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button-primary-disabled {
|
|
31
|
+
background-color: #b9b9b9;
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
color: #9b9b9b;
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.button-primary-icon {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: 20px;
|
|
42
|
+
height: 20px;
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.button-primary-label {
|
|
47
|
+
font-family: "Open Sans", sans-serif;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
letter-spacing: 0em;
|
|
52
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.appointement-status-tag {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
text-align: center;
|
|
5
|
+
font-family: "Open Sans", sans-serif;
|
|
6
|
+
padding: 4px 8px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.variant-big {
|
|
10
|
+
font-weight: 700;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
letter-spacing: normal;
|
|
13
|
+
padding: 4px 8px;
|
|
14
|
+
line-height: 19.07px;
|
|
15
|
+
letter-spacing: -0.02em;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.variant-default {
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 16.34px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.status-confirmed {
|
|
25
|
+
background-color: #daf6e9;
|
|
26
|
+
color: #29a36a;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.status-pending {
|
|
30
|
+
background-color: #fdf2f2;
|
|
31
|
+
color: #e15151;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.status-available {
|
|
35
|
+
background-color: #daebfb;
|
|
36
|
+
color: #1985e8;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.status-unavailable,
|
|
40
|
+
.status-cancelled {
|
|
41
|
+
background-color: #f4f7fb;
|
|
42
|
+
color: #728ea7;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.status-passed {
|
|
46
|
+
background-color: #dee8f2;
|
|
47
|
+
color: #728ea7;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.status-refused {
|
|
51
|
+
background-color: #646464;
|
|
52
|
+
color: white;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.status-cancelled-big {
|
|
56
|
+
background-color: #fdf2f2;
|
|
57
|
+
color: #e15151;
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allaw-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Composants UI pour l'application Allaw",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
|
-
"README.md"
|
|
10
|
+
"README.md",
|
|
11
|
+
"src/components/buttons/ButtonPrimary.css"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
+
"build": "tsc && node copy-css.js",
|
|
14
15
|
"test": "jest",
|
|
15
16
|
"storybook": "storybook dev -p 6006",
|
|
16
17
|
"build-storybook": "storybook build",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.button-primary {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
width: auto;
|
|
7
|
+
height: 42px;
|
|
8
|
+
padding: 1rem 1.3rem;
|
|
9
|
+
border-radius: 24px;
|
|
10
|
+
transition:
|
|
11
|
+
background-color 0.2s,
|
|
12
|
+
opacity 0.2s;
|
|
13
|
+
border: 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.button-primary-enabled {
|
|
17
|
+
background-color: #171e25;
|
|
18
|
+
color: white;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.button-primary-enabled:hover {
|
|
22
|
+
background-color: #1985e8;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.button-primary-enabled:active {
|
|
26
|
+
background-color: #1985e8;
|
|
27
|
+
opacity: 0.7;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button-primary-disabled {
|
|
31
|
+
background-color: #b9b9b9;
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
color: #9b9b9b;
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.button-primary-icon {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: 20px;
|
|
42
|
+
height: 20px;
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.button-primary-label {
|
|
47
|
+
font-family: "Open Sans", sans-serif;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
letter-spacing: 0em;
|
|
52
|
+
}
|