ngx-strata 0.1.0 → 0.2.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/assets/styles/base.scss +7 -3
- package/assets/styles/colors.scss +3 -11
- package/assets/styles/components/accordion.scss +4 -2
- package/assets/styles/components/action-menu.scss +2 -2
- package/assets/styles/components/alert.scss +112 -0
- package/assets/styles/components/avatar.scss +40 -22
- package/assets/styles/components/button.scss +27 -20
- package/assets/styles/components/card.scss +21 -13
- package/assets/styles/components/checkbox.scss +11 -9
- package/assets/styles/components/input-field.scss +6 -3
- package/assets/styles/components/modal.scss +3 -9
- package/assets/styles/components/notification.scss +40 -20
- package/assets/styles/components/pagination.scss +16 -8
- package/assets/styles/components/progress.scss +32 -22
- package/assets/styles/components/radio.scss +101 -0
- package/assets/styles/components/segmented-control.scss +24 -7
- package/assets/styles/components/select.scss +8 -4
- package/assets/styles/components/sidemenu.scss +55 -0
- package/assets/styles/components/spinner.scss +10 -7
- package/assets/styles/components/table.scss +4 -2
- package/assets/styles/components/tabs.scss +71 -0
- package/assets/styles/components/tag.scss +17 -13
- package/assets/styles/components/toggle.scss +44 -42
- package/assets/styles/focus-outline.scss +2 -1
- package/assets/styles/primitives/color-primitives.scss +88 -0
- package/assets/styles/primitives/spacing-primitives.scss +16 -0
- package/assets/styles/public-api.scss +42 -34
- package/assets/styles/semantics/color-semantic.scss +121 -0
- package/assets/styles/typography.scss +124 -34
- package/dist/strata/strata.css +1 -1
- package/fesm2022/ngx-strata.mjs +871 -289
- package/fesm2022/ngx-strata.mjs.map +1 -1
- package/package.json +3 -3
- package/types/ngx-strata.d.ts +385 -184
- package/dist/my-lib/strata.css +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
st-notification {
|
|
2
|
-
--st-notification-background-color: var(--st-
|
|
3
|
-
--st-notification-text-color: var(--st-
|
|
2
|
+
--st-notification-background-color: var(--st-color-neutral-200);
|
|
3
|
+
--st-notification-text-color: var(--st-color-neutral-900);
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
6
6
|
padding: var(--st-size-sm);
|
|
@@ -14,45 +14,65 @@ st-notification {
|
|
|
14
14
|
justify-content: flex-start;
|
|
15
15
|
border-radius: 4px;
|
|
16
16
|
gap: 8px;
|
|
17
|
-
margin-top: 16px;
|
|
18
|
-
margin-right: 32px;
|
|
19
17
|
font-size: 16px;
|
|
20
18
|
|
|
21
19
|
&.st-theme-brand {
|
|
22
|
-
--st-notification-background-color: var(--st-
|
|
23
|
-
--st-notification-text-color: var(--st-
|
|
20
|
+
--st-notification-background-color: var(--st-color-blue-50);
|
|
21
|
+
--st-notification-text-color: var(--st-color-blue-900);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
&.st-theme-info {
|
|
27
|
-
--st-notification-background-color: var(--st-info);
|
|
28
|
-
--st-notification-text-color: var(--st-text
|
|
25
|
+
--st-notification-background-color: var(--st-color-feedback-info-subtle);
|
|
26
|
+
--st-notification-text-color: var(--st-color-feedback-info-text);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
&.st-theme-success {
|
|
32
|
-
--st-notification-background-color: var(--st-success);
|
|
33
|
-
--st-notification-text-color: var(--st-text
|
|
30
|
+
--st-notification-background-color: var(--st-color-feedback-success-subtle);
|
|
31
|
+
--st-notification-text-color: var(--st-color-feedback-success-text);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
&.st-theme-danger {
|
|
37
|
-
--st-notification-background-color: var(--st-
|
|
38
|
-
--st-notification-text-color: var(--st-text
|
|
35
|
+
--st-notification-background-color: var(--st-color-feedback-error-subtle);
|
|
36
|
+
--st-notification-text-color: var(--st-color-feedback-error-text);
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
&.st-theme-warning {
|
|
42
|
-
--st-notification-background-color: var(--st-warning);
|
|
43
|
-
--st-notification-text-color: var(--st-text
|
|
40
|
+
--st-notification-background-color: var(--st-color-feedback-warning-subtle);
|
|
41
|
+
--st-notification-text-color: var(--st-color-feedback-warning-text);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-theme='dark'] & {
|
|
45
|
+
&.st-theme-brand {
|
|
46
|
+
--st-notification-background-color: rgba(37, 99, 235, 0.1);
|
|
47
|
+
--st-notification-text-color: var(--st-color-blue-100);
|
|
48
|
+
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
52
|
+
|
|
47
53
|
st-notification-container {
|
|
48
54
|
width: 100%;
|
|
49
55
|
height: 100%;
|
|
50
|
-
position:
|
|
56
|
+
position: fixed;
|
|
57
|
+
top: 0;
|
|
58
|
+
left: 0;
|
|
51
59
|
overflow: hidden;
|
|
52
|
-
display:
|
|
53
|
-
align-items: start;
|
|
54
|
-
justify-items: end;
|
|
60
|
+
display: flex;
|
|
55
61
|
z-index: 190;
|
|
56
62
|
pointer-events: none;
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
gap: var(--st-size-xs);
|
|
64
|
+
|
|
65
|
+
// Small screen defaults: top center, full width
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: stretch;
|
|
68
|
+
justify-content: flex-start;
|
|
69
|
+
padding: var(--st-size-sm);
|
|
70
|
+
|
|
71
|
+
// Big screen overrides: bottom right, stacking upwards
|
|
72
|
+
@media (min-width: 768px) {
|
|
73
|
+
flex-direction: column-reverse;
|
|
74
|
+
align-items: flex-end;
|
|
75
|
+
justify-content: flex-start;
|
|
76
|
+
padding: var(--st-size-md);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -2,27 +2,35 @@ st-pagination {
|
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
gap:
|
|
5
|
+
gap: var(--st-size-xxs);
|
|
6
6
|
|
|
7
7
|
button {
|
|
8
|
-
padding:
|
|
8
|
+
padding: var(--st-size-xxs) var(--st-size-xs);
|
|
9
9
|
background: none;
|
|
10
10
|
border: none;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: var(--st-border-radius-sm);
|
|
12
|
+
color: var(--st-color-text-primary);
|
|
13
|
+
|
|
14
|
+
transition: linear 0.1s background-color;
|
|
15
|
+
font-size: var(--st-font-sm);
|
|
12
16
|
|
|
13
17
|
&.clickable:not(.selected):not(:disabled):hover {
|
|
14
|
-
background-color:
|
|
18
|
+
background-color: var(--st-bg-light);
|
|
15
19
|
cursor: pointer;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
&.selected {
|
|
19
|
-
background-color:
|
|
20
|
-
color:
|
|
23
|
+
background-color: var(--st-bg-contrast);
|
|
24
|
+
color: var(--st-text-contrast);
|
|
21
25
|
cursor: default;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
&:disabled
|
|
25
|
-
|
|
28
|
+
&:disabled {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
|
|
31
|
+
&.hideOnDisabled {
|
|
32
|
+
visibility: hidden;
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
st-progress {
|
|
2
|
-
--st-progress-fill-color: var(--st-text);
|
|
1
|
+
st-progress-linear, st-progress-radial {
|
|
2
|
+
--st-progress-fill-color: var(--st-color-text-primary);
|
|
3
|
+
|
|
3
4
|
--st-progress-radial-size: 120px;
|
|
4
5
|
--st-progress-radial-half-size: calc(var(--st-progress-radial-size) / 2);
|
|
5
6
|
--st-progress-radial-stroke-width: 10px;
|
|
@@ -8,47 +9,56 @@ st-progress {
|
|
|
8
9
|
--st-progress-radial-dash-offset: calc(
|
|
9
10
|
var(--st-progress-radial-circumference) * (1 - var(--st-progress-percentage) / 100)
|
|
10
11
|
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
st-progress-linear {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
11
22
|
|
|
12
|
-
|
|
23
|
+
st-progress-radial {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
text-align: center;
|
|
29
|
+
|
|
30
|
+
.label {
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: 0;
|
|
13
33
|
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
justify-content: center;
|
|
16
34
|
align-items: center;
|
|
17
|
-
|
|
18
|
-
width: 100%;
|
|
35
|
+
justify-content: center;
|
|
19
36
|
}
|
|
37
|
+
}
|
|
20
38
|
|
|
21
|
-
|
|
22
|
-
text-align: center;
|
|
23
|
-
.label {
|
|
24
|
-
position: absolute;
|
|
25
|
-
inset: 0;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
39
|
+
st-progress-linear, st-progress-radial {
|
|
31
40
|
|
|
32
41
|
&.st-theme-brand {
|
|
33
|
-
--st-progress-fill-color: var(--st-
|
|
42
|
+
--st-progress-fill-color: var(--st-color-accent-default);
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
&.st-theme-info {
|
|
37
|
-
--st-progress-fill-color: var(--st-info);
|
|
46
|
+
--st-progress-fill-color: var(--st-color-feedback-info-default);
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
&.st-theme-success {
|
|
41
|
-
--st-progress-fill-color: var(--st-success);
|
|
50
|
+
--st-progress-fill-color: var(--st-color-feedback-success-default);
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
&.st-theme-warning {
|
|
45
|
-
--st-progress-fill-color: var(--st-warning);
|
|
54
|
+
--st-progress-fill-color: var(--st-color-feedback-warning-default);
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
&.st-theme-danger {
|
|
49
|
-
--st-progress-fill-color: var(--st-
|
|
58
|
+
--st-progress-fill-color: var(--st-color-feedback-error-default);
|
|
50
59
|
}
|
|
51
60
|
|
|
61
|
+
|
|
52
62
|
.linear-container {
|
|
53
63
|
position: relative;
|
|
54
64
|
width: 100%;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
st-radio-group {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--st-size-xs);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
st-radio {
|
|
8
|
+
--st-radio-checked-bg-color: var(--st-color-accent-default);
|
|
9
|
+
--st-radio-checked-bg-hover-color: var(--st-color-accent-hover);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
user-select: none;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--st-size-xxs);
|
|
16
|
+
|
|
17
|
+
input {
|
|
18
|
+
position: absolute;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
height: 0;
|
|
22
|
+
width: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
label {
|
|
26
|
+
margin-block: 0px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.radio-visual {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
height: var(--st-selection-control-size);
|
|
32
|
+
width: var(--st-selection-control-size);
|
|
33
|
+
min-width: var(--st-selection-control-size);
|
|
34
|
+
min-height: var(--st-selection-control-size);
|
|
35
|
+
background-color: var(--st-color-bg-default);
|
|
36
|
+
|
|
37
|
+
border: 1px solid var(--st-border);
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
display: grid;
|
|
40
|
+
place-items: center;
|
|
41
|
+
transition: background-color 0.1s linear;
|
|
42
|
+
|
|
43
|
+
&::after {
|
|
44
|
+
content: "";
|
|
45
|
+
display: block;
|
|
46
|
+
width: 0;
|
|
47
|
+
height: 0;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
background-color: var(--st-radio-checked-bg-color);
|
|
50
|
+
transition: width 0.1s ease-in, height 0.1s ease-in;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
input:checked + .radio-visual {
|
|
55
|
+
border-color: var(--st-radio-checked-bg-color);
|
|
56
|
+
|
|
57
|
+
&::after {
|
|
58
|
+
width: 60%;
|
|
59
|
+
height: 60%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input:focus + .radio-visual {
|
|
64
|
+
outline: 1px solid var(--st-color-accent-default);
|
|
65
|
+
|
|
66
|
+
outline-offset: 2px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[data-disabled="true"] {
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
|
|
74
|
+
.radio-visual {
|
|
75
|
+
background-color: var(--st-color-bg-default);
|
|
76
|
+
|
|
77
|
+
border-color: var(--st-border);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
input:checked + .radio-visual::after {
|
|
81
|
+
background-color: var(--st-color-text-tertiary);
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:hover:not([data-disabled="true"]) {
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
|
|
89
|
+
.radio-visual {
|
|
90
|
+
background-color: var(--st-bg-light);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input:checked + .radio-visual {
|
|
94
|
+
border-color: var(--st-radio-checked-bg-hover-color);
|
|
95
|
+
|
|
96
|
+
&::after {
|
|
97
|
+
background-color: var(--st-radio-checked-bg-hover-color);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -5,17 +5,29 @@ st-segmented-control {
|
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
background-color: var(--st-bg-light);
|
|
7
7
|
width: fit-content;
|
|
8
|
-
height: var(--st-
|
|
8
|
+
height: var(--st-space-10);
|
|
9
|
+
padding: var(--st-space-1);
|
|
10
|
+
gap: var(--st-space-1);
|
|
11
|
+
|
|
12
|
+
&.st-segmented-control-full-width {
|
|
13
|
+
width: 100%;
|
|
14
|
+
|
|
15
|
+
st-segmented-control-item {
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
9
19
|
|
|
10
20
|
button,
|
|
11
21
|
st-segmented-control-item {
|
|
12
22
|
border: none;
|
|
13
|
-
color: var(--st-text);
|
|
23
|
+
color: var(--st-color-text-primary);
|
|
24
|
+
|
|
14
25
|
background-color: transparent;
|
|
15
26
|
|
|
16
27
|
&[disabled] {
|
|
17
28
|
pointer-events: none;
|
|
18
|
-
color: var(--st-text-
|
|
29
|
+
color: var(--st-color-text-tertiary);
|
|
30
|
+
|
|
19
31
|
cursor: unset;
|
|
20
32
|
}
|
|
21
33
|
|
|
@@ -28,8 +40,11 @@ st-segmented-control {
|
|
|
28
40
|
|
|
29
41
|
.selection-item,
|
|
30
42
|
st-segmented-control-item {
|
|
31
|
-
|
|
32
|
-
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
height: var(--st-space-8);
|
|
47
|
+
padding: 0 var(--st-space-8);
|
|
33
48
|
border-radius: var(--st-border-radius-sm);
|
|
34
49
|
font-size: 16px;
|
|
35
50
|
font-weight: 500;
|
|
@@ -39,11 +54,13 @@ st-segmented-control {
|
|
|
39
54
|
#selection-indicator {
|
|
40
55
|
cursor: default;
|
|
41
56
|
position: absolute;
|
|
57
|
+
top: 0;
|
|
58
|
+
left: 0;
|
|
42
59
|
background-color: var(--st-bg-contrast-light);
|
|
43
60
|
color: var(--st-text-contrast);
|
|
44
61
|
text-wrap: nowrap;
|
|
45
62
|
transition:
|
|
46
|
-
0.15s ease-in
|
|
63
|
+
0.15s ease-in left,
|
|
47
64
|
0.15s ease-in width;
|
|
48
65
|
}
|
|
49
|
-
}
|
|
66
|
+
}
|
|
@@ -33,12 +33,14 @@ st-dropdown {
|
|
|
33
33
|
display: inline-flex;
|
|
34
34
|
flex-direction: row;
|
|
35
35
|
gap: 4px;
|
|
36
|
-
background-color: var(--st-bg);
|
|
36
|
+
background-color: var(--st-color-bg-raised);
|
|
37
|
+
|
|
37
38
|
justify-content: space-between;
|
|
38
39
|
align-items: center;
|
|
39
40
|
|
|
40
41
|
.placeholder-text {
|
|
41
|
-
color: var(--st-text-
|
|
42
|
+
color: var(--st-color-text-tertiary);
|
|
43
|
+
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
st-icon {
|
|
@@ -69,7 +71,8 @@ st-dropdown {
|
|
|
69
71
|
left: 0;
|
|
70
72
|
box-sizing: border-box;
|
|
71
73
|
overflow: hidden;
|
|
72
|
-
background-color: var(--st-bg);
|
|
74
|
+
background-color: var(--st-color-bg-raised);
|
|
75
|
+
|
|
73
76
|
box-shadow: var(--st-shadow-1);
|
|
74
77
|
z-index: 1000;
|
|
75
78
|
|
|
@@ -96,7 +99,8 @@ st-dropdown {
|
|
|
96
99
|
left: 0;
|
|
97
100
|
box-sizing: border-box;
|
|
98
101
|
overflow: hidden;
|
|
99
|
-
background-color: var(--st-bg);
|
|
102
|
+
background-color: var(--st-color-bg-raised);
|
|
103
|
+
|
|
100
104
|
box-shadow: var(--st-shadow-1);
|
|
101
105
|
z-index: 1000;
|
|
102
106
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
st-sidemenu {
|
|
2
|
+
|
|
3
|
+
// Directive Styles (Global)
|
|
4
|
+
.st-sidemenu-item {
|
|
5
|
+
--st-sidemenu-item-bg: transparent;
|
|
6
|
+
--st-sidemenu-item-hover-bg: var(--st-color-bg-raised);
|
|
7
|
+
--st-sidemenu-item-active-bg: var(--st-color-bg-raised);
|
|
8
|
+
--st-sidemenu-item-text: var(--st-color-text-secondary);
|
|
9
|
+
--st-sidemenu-item-hover-text: var(--st-color-text-primary);
|
|
10
|
+
--st-sidemenu-item-active-text: var(--st-color-accent-active);
|
|
11
|
+
--st-sidemenu-item-radius: var(--st-radius-md, 4px);
|
|
12
|
+
--st-sidemenu-item-padding: 6px var(--st-size-xs, 12px);
|
|
13
|
+
--st-sidemenu-item-font-size: var(--st-font-sm, 14px);
|
|
14
|
+
--st-sidemenu-item-font-weight: 500;
|
|
15
|
+
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding: var(--st-sidemenu-item-padding);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
font-size: var(--st-sidemenu-item-font-size);
|
|
23
|
+
font-weight: var(--st-sidemenu-item-font-weight);
|
|
24
|
+
border-radius: var(--st-sidemenu-item-radius);
|
|
25
|
+
background-color: var(--st-sidemenu-item-bg);
|
|
26
|
+
color: var(--st-sidemenu-item-text);
|
|
27
|
+
border: none;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
text-align: left;
|
|
30
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
31
|
+
user-select: none;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
background-color: var(--st-sidemenu-item-hover-bg);
|
|
36
|
+
color: var(--st-sidemenu-item-hover-text);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.selected,
|
|
40
|
+
&.active {
|
|
41
|
+
background-color: var(--st-sidemenu-item-active-bg);
|
|
42
|
+
color: var(--st-sidemenu-item-active-text);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[disabled],
|
|
46
|
+
&.disabled {
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
st-tag {
|
|
52
|
+
margin-left: auto;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
st-spinner {
|
|
2
2
|
--st-spinner-size: var(--st-size-xl);
|
|
3
3
|
--st-spinner-stroke-width: var(--st-size-xxxxs);
|
|
4
|
-
--st-spinner-main-color: var(--st-text-
|
|
5
|
-
|
|
4
|
+
--st-spinner-main-color: var(--st-color-text-tertiary);
|
|
5
|
+
|
|
6
|
+
--st-spinner-accent-color: var(--st-color-text-primary);
|
|
7
|
+
|
|
6
8
|
--st-spinner-inner-width: calc(var(--st-spinner-size) - (var(--st-spinner-stroke-width) * 4));
|
|
7
9
|
|
|
8
10
|
display: flex;
|
|
@@ -25,24 +27,25 @@ st-spinner {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
&.st-theme-brand {
|
|
28
|
-
--st-spinner-accent-color: var(--st-
|
|
30
|
+
--st-spinner-accent-color: var(--st-color-accent-default);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
&.st-theme-info {
|
|
32
|
-
--st-spinner-accent-color: var(--st-info);
|
|
34
|
+
--st-spinner-accent-color: var(--st-color-feedback-info-default);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
&.st-theme-success {
|
|
36
|
-
--st-spinner-accent-color: var(--st-success);
|
|
38
|
+
--st-spinner-accent-color: var(--st-color-feedback-success-default);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&.st-theme-warning {
|
|
40
|
-
--st-spinner-accent-color: var(--st-warning);
|
|
42
|
+
--st-spinner-accent-color: var(--st-color-feedback-warning-default);
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
&.st-theme-danger {
|
|
44
|
-
--st-spinner-accent-color: var(--st-
|
|
46
|
+
--st-spinner-accent-color: var(--st-color-feedback-error-default);
|
|
45
47
|
}
|
|
48
|
+
|
|
46
49
|
.st-spinner {
|
|
47
50
|
width: var(--st-spinner-size);
|
|
48
51
|
height: var(--st-spinner-size);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
table.st-table {
|
|
2
2
|
--st-table-background-color: var(transparent);
|
|
3
|
-
--st-table-background-color-even-row: var(--st-bg);
|
|
3
|
+
--st-table-background-color-even-row: var(--st-color-bg-raised);
|
|
4
|
+
|
|
4
5
|
--st-table-divider-color: var(--st-border-faded);
|
|
5
6
|
|
|
6
7
|
width: 100%;
|
|
@@ -14,7 +15,8 @@ table.st-table {
|
|
|
14
15
|
|
|
15
16
|
th {
|
|
16
17
|
font-weight: var(--st-font-weight-bold);
|
|
17
|
-
color: var(--st-text-
|
|
18
|
+
color: var(--st-color-text-secondary);
|
|
19
|
+
|
|
18
20
|
font-size: var(--st-font-sm);
|
|
19
21
|
padding: var(--st-size-xxxs);
|
|
20
22
|
padding-bottom: var(--st-size-xxs);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
st-tabs {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
.tabs-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
border-bottom: 1px solid var(--st-border);
|
|
9
|
+
gap: var(--st-size-sm);
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
st-tab-item {
|
|
14
|
+
padding: 12px 16px;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: var(--st-color-text-tertiary);
|
|
18
|
+
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
user-select: none;
|
|
21
|
+
transition: color 0.15s ease-in-out;
|
|
22
|
+
border-bottom: 2px solid transparent;
|
|
23
|
+
margin-bottom: -1px; // Align with container border
|
|
24
|
+
outline: none;
|
|
25
|
+
|
|
26
|
+
&:focus,
|
|
27
|
+
&:active {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:active:not(.disabled) {
|
|
32
|
+
background-image: linear-gradient(var(--st-border-muted), var(--st-border-muted));
|
|
33
|
+
background-size: 100% calc(100% - 2px);
|
|
34
|
+
background-repeat: no-repeat;
|
|
35
|
+
border-radius: var(--st-border-radius-sm);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
outline: none;
|
|
40
|
+
background-color: var(--st-bg-light);
|
|
41
|
+
border-radius: var(--st-border-radius-sm);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:hover:not(.disabled):not(.active) {
|
|
45
|
+
color: var(--st-color-text-primary);
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.active {
|
|
50
|
+
color: var(--st-color-accent-default);
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.disabled {
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
opacity: 0.5;
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.selection-indicator {
|
|
62
|
+
position: absolute;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
height: 2px;
|
|
65
|
+
background-color: var(--st-color-accent-default);
|
|
66
|
+
|
|
67
|
+
transition:
|
|
68
|
+
left 0.25s cubic-bezier(0.4, 0, 0.2, 1),
|
|
69
|
+
width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
st-tag {
|
|
2
|
-
--st-tag-border-color: var(--st-
|
|
3
|
-
--st-tag-background-color: var(--st-
|
|
4
|
-
--st-tag-text-color: var(--st-
|
|
2
|
+
--st-tag-border-color: var(--st-color-neutral-300);
|
|
3
|
+
--st-tag-background-color: var(--st-color-neutral-200);
|
|
4
|
+
--st-tag-text-color: var(--st-color-neutral-800);
|
|
5
|
+
|
|
6
|
+
|
|
5
7
|
color: var(--st-tag-text-color);
|
|
6
8
|
border: 1px solid var(--st-tag-border-color);
|
|
7
9
|
border-radius: var(--st-border-radius-sm);
|
|
@@ -34,27 +36,29 @@ st-tag {
|
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
&.st-theme-brand {
|
|
37
|
-
--st-tag-background-color: var(--st-
|
|
38
|
-
--st-tag-text-color: var(--st-text
|
|
39
|
+
--st-tag-background-color: var(--st-color-accent-subtle);
|
|
40
|
+
--st-tag-text-color: var(--st-color-accent-text);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
&.st-theme-info {
|
|
42
|
-
--st-tag-background-color: var(--st-info);
|
|
43
|
-
--st-tag-text-color: var(--st-text
|
|
44
|
+
--st-tag-background-color: var(--st-color-feedback-info-subtle);
|
|
45
|
+
--st-tag-text-color: var(--st-color-feedback-info-text);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
&.st-theme-success {
|
|
47
|
-
--st-tag-background-color: var(--st-success);
|
|
48
|
-
--st-tag-text-color: var(--st-text
|
|
49
|
+
--st-tag-background-color: var(--st-color-feedback-success-subtle);
|
|
50
|
+
--st-tag-text-color: var(--st-color-feedback-success-text);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
&.st-theme-danger {
|
|
52
|
-
--st-tag-background-color: var(--st-
|
|
53
|
-
--st-tag-text-color: var(--st-text
|
|
54
|
+
--st-tag-background-color: var(--st-color-feedback-error-subtle);
|
|
55
|
+
--st-tag-text-color: var(--st-color-feedback-error-text);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
&.st-theme-warning {
|
|
57
|
-
--st-tag-background-color: var(--st-warning);
|
|
58
|
-
--st-tag-text-color: var(--st-text
|
|
59
|
+
--st-tag-background-color: var(--st-color-feedback-warning-subtle);
|
|
60
|
+
--st-tag-text-color: var(--st-color-feedback-warning-text);
|
|
59
61
|
}
|
|
62
|
+
|
|
63
|
+
|
|
60
64
|
}
|