@oardi/css-utils 0.90.0 → 0.92.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 +1 -1
- package/scss/components/empty-state.scss +72 -0
- package/scss/index.scss +1 -0
- package/scss/text.scss +12 -0
package/package.json
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.empty-state {
|
|
3
|
+
--empty-state-max-width: 36rem;
|
|
4
|
+
--empty-state-min-height: 0;
|
|
5
|
+
--empty-state-padding-y: var(--spacer-5);
|
|
6
|
+
--empty-state-padding-x: var(--spacer-3);
|
|
7
|
+
--empty-state-gap: var(--spacer-3);
|
|
8
|
+
--empty-state-icon-size: 3rem;
|
|
9
|
+
--empty-state-icon-color: var(--text-muted);
|
|
10
|
+
--empty-state-title-color: var(--text-color);
|
|
11
|
+
--empty-state-description-color: var(--text-muted);
|
|
12
|
+
--empty-state-actions-gap: var(--spacer-2);
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--empty-state-gap);
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: var(--empty-state-max-width);
|
|
21
|
+
min-height: var(--empty-state-min-height);
|
|
22
|
+
margin-inline: auto;
|
|
23
|
+
padding: var(--empty-state-padding-y) var(--empty-state-padding-x);
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.empty-state-icon {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
width: var(--empty-state-icon-size);
|
|
33
|
+
height: var(--empty-state-icon-size);
|
|
34
|
+
color: var(--empty-state-icon-color);
|
|
35
|
+
fill: currentColor;
|
|
36
|
+
line-height: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.empty-state .empty-state-icon > svg {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.empty-state-title {
|
|
45
|
+
margin: 0;
|
|
46
|
+
color: var(--empty-state-title-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.empty-state-description {
|
|
50
|
+
margin: 0;
|
|
51
|
+
color: var(--empty-state-description-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.empty-state-actions {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-wrap: wrap;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
gap: var(--empty-state-actions-gap);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.empty-state-compact {
|
|
63
|
+
--empty-state-padding-y: var(--spacer-3);
|
|
64
|
+
--empty-state-padding-x: var(--spacer-2);
|
|
65
|
+
--empty-state-gap: var(--spacer-2);
|
|
66
|
+
--empty-state-icon-size: 2.5rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.empty-state-page {
|
|
70
|
+
--empty-state-min-height: 50vh;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/scss/index.scss
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
@forward './components/card.scss';
|
|
33
33
|
@forward './components/chip.scss';
|
|
34
34
|
@forward './components/drawer.scss';
|
|
35
|
+
@forward './components/empty-state.scss';
|
|
35
36
|
@forward './components/expansion-panel.scss';
|
|
36
37
|
@forward './components/form.scss';
|
|
37
38
|
@forward './components/icon-button.scss';
|
package/scss/text.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use './theme.scss' as theme;
|
|
3
3
|
|
|
4
|
+
$letterSpacings: 0, 1, 2, 3, 4, 5;
|
|
5
|
+
|
|
4
6
|
@layer utilities {
|
|
5
7
|
.text-center {
|
|
6
8
|
text-align: center;
|
|
@@ -14,6 +16,10 @@
|
|
|
14
16
|
text-align: end;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
.text-uppercase {
|
|
20
|
+
text-transform: uppercase;
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
.text-body {
|
|
18
24
|
color: var(--text-color);
|
|
19
25
|
fill: var(--text-color);
|
|
@@ -74,4 +80,10 @@
|
|
|
74
80
|
line-height: var(--line-height-#{$name});
|
|
75
81
|
}
|
|
76
82
|
}
|
|
83
|
+
|
|
84
|
+
@each $letterSpacing in $letterSpacings {
|
|
85
|
+
.letter-space-#{$letterSpacing} {
|
|
86
|
+
letter-spacing: #{$letterSpacing}px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
77
89
|
}
|