ngx-strata 0.4.2 → 0.4.3-beta.2

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.
Files changed (34) hide show
  1. package/assets/styles/base.scss +24 -4
  2. package/assets/styles/components/accordion.scss +76 -17
  3. package/assets/styles/components/action-menu.scss +12 -7
  4. package/assets/styles/components/alert.scss +8 -7
  5. package/assets/styles/components/button.scss +14 -2
  6. package/assets/styles/components/card.scss +32 -37
  7. package/assets/styles/components/checkbox.scss +5 -6
  8. package/assets/styles/components/file-upload.scss +5 -2
  9. package/assets/styles/components/input-field.scss +7 -1
  10. package/assets/styles/components/item.scss +3 -1
  11. package/assets/styles/components/modal.scss +7 -4
  12. package/assets/styles/components/notification.scss +8 -14
  13. package/assets/styles/components/otp.scss +1 -1
  14. package/assets/styles/components/pagination.scss +1 -1
  15. package/assets/styles/components/progress.scss +4 -2
  16. package/assets/styles/components/radio.scss +4 -4
  17. package/assets/styles/components/segmented-control.scss +8 -4
  18. package/assets/styles/components/select.scss +31 -11
  19. package/assets/styles/components/sidemenu.scss +4 -6
  20. package/assets/styles/components/slider.scss +3 -3
  21. package/assets/styles/components/table.scss +5 -0
  22. package/assets/styles/components/tabs.scss +7 -4
  23. package/assets/styles/components/tag.scss +8 -6
  24. package/assets/styles/components/toggle.scss +5 -6
  25. package/assets/styles/components/tooltip.scss +3 -7
  26. package/assets/styles/focus-outline.scss +1 -1
  27. package/assets/styles/scrollbar.scss +3 -3
  28. package/assets/styles/shadows.scss +11 -3
  29. package/assets/styles/typography.scss +4 -0
  30. package/dist/strata/strata.css +1 -1
  31. package/fesm2022/ngx-strata.mjs +36 -8
  32. package/fesm2022/ngx-strata.mjs.map +1 -1
  33. package/package.json +1 -1
  34. package/types/ngx-strata.d.ts +11 -3
@@ -17,14 +17,23 @@ html {
17
17
  }
18
18
 
19
19
  :root {
20
- --st-border-radius-sm: 4px;
20
+ --st-border-radius-xs: 4px;
21
+ --st-border-radius-sm: 6px;
21
22
  --st-border-radius-md: 8px;
23
+ --st-border-radius-lg: 12px;
24
+ --st-border-radius-xl: 16px;
25
+ --st-border-radius-2xl: 24px;
26
+ --st-border-radius-full: 9999px;
27
+
28
+ --st-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
29
+ --st-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
30
+ --st-transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
22
31
 
23
32
  --st-border-width: 1px;
24
33
 
25
- --st-interactive-element-height-sm: 26px;
26
- --st-interactive-element-height-md: 34px;
27
- --st-interactive-element-height-lg: 40px;
34
+ --st-interactive-element-height-sm: 28px;
35
+ --st-interactive-element-height-md: 36px;
36
+ --st-interactive-element-height-lg: 44px;
28
37
 
29
38
  --st-selection-control-size: 20px;
30
39
  }
@@ -32,3 +41,14 @@ html {
32
41
  body.st-scroll-lock {
33
42
  overflow: hidden !important;
34
43
  }
44
+
45
+ @keyframes st-popover-in {
46
+ from {
47
+ opacity: 0;
48
+ transform: translateY(-4px);
49
+ }
50
+ to {
51
+ opacity: 1;
52
+ transform: translateY(0);
53
+ }
54
+ }
@@ -1,30 +1,44 @@
1
1
  st-accordion-item {
2
+ --st-accordion-border-radius: var(--st-border-radius-lg);
3
+ --st-accordion-header-height: 48px;
4
+ --st-accordion-border-color: var(--st-color-border-subtle);
5
+ --st-accordion-bg: var(--st-color-bg-raised);
6
+
2
7
  display: block;
3
8
  box-sizing: border-box;
4
9
  width: 100%;
5
- border: 1px solid var(--st-border);
6
- border-radius: var(--st-border-radius-sm);
7
- background-color: var(--st-color-bg-raised);
10
+ border: 1px solid var(--st-accordion-border-color);
11
+ border-radius: var(--st-accordion-border-radius);
12
+ background-color: var(--st-accordion-bg);
13
+ overflow: hidden;
14
+ transition:
15
+ border-color var(--st-transition-fast),
16
+ background-color var(--st-transition-fast);
8
17
 
9
- transition: 0.1s ease-in height;
10
18
  &[open='true'] {
11
- background-color: var(--st-color-bg-default);
12
-
13
19
  height: auto;
20
+
14
21
  svg {
15
- transform: rotateZ(180deg);
22
+ transform: rotate(180deg);
23
+ }
24
+
25
+ .accordion-header {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
16
28
  }
17
29
 
18
30
  .accordion-content {
19
31
  height: fit-content;
20
32
  }
33
+
21
34
  .accordion-content *:first-child {
22
35
  margin-block-start: 0rem;
23
36
  }
24
37
  }
25
38
 
26
39
  &[open='false'] {
27
- height: 54px;
40
+ height: var(--st-accordion-header-height);
41
+
28
42
  .accordion-content {
29
43
  overflow: hidden;
30
44
  visibility: hidden;
@@ -36,23 +50,24 @@ st-accordion-item {
36
50
  .accordion-header {
37
51
  box-sizing: border-box;
38
52
  display: flex;
39
- height: 54px;
53
+ min-height: var(--st-accordion-header-height);
40
54
  width: 100%;
41
55
  margin-right: auto;
42
56
  border: none;
43
57
  background: transparent;
44
58
  color: var(--st-color-text-primary);
45
59
  font-family: inherit;
46
- border-radius: var(--st-border-radius-sm);
47
- padding-left: 16px;
48
- padding-right: 16px;
60
+ border-radius: var(--st-accordion-border-radius);
61
+ padding-left: var(--st-space-4);
62
+ padding-right: var(--st-space-4);
49
63
  justify-content: space-between;
50
64
  align-items: center;
51
65
  user-select: none;
52
- font-size: 16px;
66
+ font-size: var(--st-font-md);
53
67
  font-weight: 600;
54
68
  text-align: left;
55
69
  outline: none;
70
+ transition: background-color var(--st-transition-fast);
56
71
 
57
72
  &:focus-visible {
58
73
  outline: 2px solid var(--st-color-accent-default);
@@ -60,7 +75,7 @@ st-accordion-item {
60
75
  }
61
76
 
62
77
  &:hover {
63
- background-color: var(--st-color-bg-default);
78
+ background-color: var(--st-color-control-bg-hover);
64
79
  cursor: pointer;
65
80
  }
66
81
 
@@ -69,14 +84,16 @@ st-accordion-item {
69
84
  max-width: 20px;
70
85
  height: 20px;
71
86
  max-height: 20px;
72
- transition: 0.1s ease transform;
87
+ transition: transform var(--st-transition-fast);
73
88
  }
74
89
  }
75
90
 
76
91
  .accordion-content {
77
- padding: 0px 16px 4px 16px;
92
+ padding: 0px var(--st-space-4) var(--st-space-3) var(--st-space-4);
78
93
  height: auto;
79
94
  margin-block-start: 0rem;
95
+ color: var(--st-color-text-secondary);
96
+ font-size: var(--st-font-md);
80
97
  }
81
98
  }
82
99
 
@@ -84,5 +101,47 @@ st-accordion-group {
84
101
  display: flex;
85
102
  width: 100%;
86
103
  flex-direction: column;
87
- gap: var(--st-size-xxs);
104
+ gap: var(--st-space-2);
105
+
106
+ &.flush {
107
+ gap: 0;
108
+
109
+ st-accordion-item {
110
+ border: none;
111
+ border-radius: 0;
112
+ background-color: transparent;
113
+ border-bottom: 1px solid var(--st-color-border-subtle);
114
+
115
+ &:last-child {
116
+ border-bottom: none;
117
+ }
118
+
119
+ .accordion-header {
120
+ border-radius: 0;
121
+ padding-left: var(--st-space-4);
122
+ padding-right: var(--st-space-4);
123
+ }
124
+
125
+ .accordion-content {
126
+ padding: 0px var(--st-space-4) var(--st-space-4) var(--st-space-4);
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ st-accordion-item.flush {
133
+ border: none;
134
+ border-radius: 0;
135
+ background-color: transparent;
136
+ border-bottom: 1px solid var(--st-color-border-subtle);
137
+
138
+ .accordion-header {
139
+ border-radius: 0;
140
+ padding-left: var(--st-space-4);
141
+ padding-right: var(--st-space-4);
142
+ }
143
+
144
+ .accordion-content {
145
+ padding: 0px var(--st-space-4) var(--st-space-4) var(--st-space-4);
146
+ }
88
147
  }
@@ -3,13 +3,13 @@ st-action-menu-item {
3
3
  --st-item-gap: var(--st-size-xs);
4
4
  width: 100%;
5
5
  display: flex;
6
- padding-bottom: var(--st-size-xxs);
7
- padding-top: var(--st-size-xxs);
8
- min-height: 32px;
6
+ align-items: center;
7
+ padding: 6px 10px;
8
+ min-height: var(--st-interactive-element-height-md);
9
9
  height: fit-content;
10
- padding-left: var(--st-size-xxs);
11
- padding-right: var(--st-size-xxs);
10
+ border-radius: var(--st-border-radius-sm);
12
11
  user-select: none;
12
+ transition: background-color var(--st-transition-fast), color var(--st-transition-fast);
13
13
 
14
14
  &:hover {
15
15
  background-color: var(--st-color-control-bg-hover);
@@ -65,14 +65,19 @@ st-item .item-default {
65
65
 
66
66
  st-card.action-menu-card {
67
67
  --st-card-shadow: var(--st-shadow-3);
68
+ --st-card-border-radius: var(--st-border-radius-lg);
68
69
 
69
70
  min-width: 200px;
70
71
  z-index: 10000;
71
72
  background-color: var(--st-color-bg-overlay) !important;
72
73
  display: block;
73
74
  pointer-events: auto;
75
+ animation: st-popover-in var(--st-transition-fast) ease-out;
74
76
 
75
- st-action-menu-item:not(:last-child) {
76
- border-bottom: 1px solid var(--st-border-faded);
77
+ .card-content {
78
+ padding: 4px;
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: 2px;
77
82
  }
78
83
  }
@@ -1,7 +1,8 @@
1
1
  st-alert {
2
- --st-alert-bg: var(--st-color-neutral-200);
3
- --st-alert-text: var(--st-color-neutral-900);
4
- --st-alert-icon-color: var(--st-color-neutral-500);
2
+ --st-alert-bg: var(--st-color-control-bg);
3
+ --st-alert-text: var(--st-color-text-primary);
4
+ --st-alert-icon-color: var(--st-color-text-tertiary);
5
+ --st-alert-border-radius: var(--st-border-radius-lg);
5
6
 
6
7
  display: block;
7
8
  width: 100%;
@@ -13,7 +14,7 @@ st-alert {
13
14
  align-items: flex-start;
14
15
  padding: var(--st-size-sm) var(--st-size-md);
15
16
  background-color: var(--st-alert-bg);
16
- border-radius: var(--st-border-radius-md, 8px);
17
+ border-radius: var(--st-alert-border-radius);
17
18
  gap: var(--st-size-sm);
18
19
  position: relative;
19
20
  }
@@ -63,14 +64,14 @@ st-alert {
63
64
  padding: 0;
64
65
  background: transparent;
65
66
  border: none;
66
- border-radius: 4px;
67
+ border-radius: var(--st-border-radius-sm);
67
68
  color: var(--st-alert-icon-color);
68
69
  cursor: pointer;
69
- transition: background-color 0.15s ease;
70
+ transition: background-color var(--st-transition-fast);
70
71
  align-self: flex-start;
71
72
 
72
73
  &:hover {
73
- background-color: rgba(0, 0, 0, 0.08);
74
+ background-color: var(--st-color-control-bg-hover);
74
75
  }
75
76
 
76
77
  st-icon {
@@ -31,6 +31,7 @@ button[stButton] {
31
31
  --st-button-text-color: var(--st-color-control-text);
32
32
 
33
33
  --st-button-hover-color: var(--st-color-control-bg-hover);
34
+ --st-button-border-radius: var(--st-border-radius-md);
34
35
 
35
36
  color: var(--st-button-text-color);
36
37
  background: none;
@@ -40,14 +41,20 @@ button[stButton] {
40
41
  justify-content: center;
41
42
  flex-direction: row;
42
43
  align-items: center;
43
- transition: linear 0.1s background-color;
44
+ font-family: inherit;
45
+ font-weight: 500;
46
+ transition:
47
+ background-color var(--st-transition-fast),
48
+ border-color var(--st-transition-fast),
49
+ box-shadow var(--st-transition-fast),
50
+ transform 0.1s ease;
44
51
  padding-left: var(--st-size-xs);
45
52
  padding-right: var(--st-size-xs);
46
53
  padding-top: var(--st-size-xxs);
47
54
  padding-bottom: var(--st-size-xxs);
48
55
  justify-content: center;
49
56
  box-sizing: border-box;
50
- border-radius: var(--st-border-radius-sm);
57
+ border-radius: var(--st-button-border-radius);
51
58
  background-color: var(--st-button-background-color);
52
59
 
53
60
  &:has(> st-badge:not(.st-badge-placement-inline)) {
@@ -96,6 +103,7 @@ button[stButton] {
96
103
  }
97
104
 
98
105
  &.st-size-sm {
106
+ --st-button-border-radius: var(--st-border-radius-sm);
99
107
  height: var(--st-interactive-element-height-sm);
100
108
  font-size: 12px;
101
109
  &.st-button-has-starting-icon {
@@ -176,6 +184,10 @@ button[stButton] {
176
184
  background-color: var(--st-button-hover-color);
177
185
  }
178
186
 
187
+ &:not(:disabled):active {
188
+ transform: scale(0.985);
189
+ }
190
+
179
191
  &:disabled {
180
192
  opacity: 0.5;
181
193
  }
@@ -1,45 +1,39 @@
1
1
  st-card {
2
- --st-card-padding: var(--st-size-xs);
2
+ --st-card-padding: var(--st-size-sm);
3
3
  --st-card-background-color: var(--st-color-bg-subtle);
4
4
  --st-card-shadow: var(--st-shadow-1);
5
+ --st-card-border-radius: var(--st-border-radius-xl);
6
+ --st-card-border-color: transparent;
5
7
 
6
8
  width: 100%;
7
9
  display: inline-block;
8
- border-radius: var(--st-border-radius-sm);
9
- border: 1px solid transparent;
10
+ border-radius: var(--st-card-border-radius);
11
+ border: 1px solid var(--st-card-border-color);
10
12
  overflow: hidden;
11
13
  background-color: var(--st-card-background-color);
14
+ transition:
15
+ box-shadow var(--st-transition-normal),
16
+ border-color var(--st-transition-normal),
17
+ background-color var(--st-transition-normal);
12
18
 
13
19
  &.elevated {
20
+ --st-card-background-color: var(--st-color-bg-subtle);
14
21
  --st-current-bg-color: var(--st-color-bg-default);
15
22
  --st-avatar-bg-color: var(--st-color-bg-default);
16
23
  box-shadow: var(--st-card-shadow);
17
24
  }
18
25
 
26
+ &.flat {
27
+ --st-card-background-color: var(--st-color-bg-subtle);
28
+ --st-current-bg-color: var(--st-color-bg-default);
29
+ --st-avatar-bg-color: var(--st-color-bg-default);
30
+ box-shadow: none;
31
+ }
19
32
 
20
33
  &.outline {
21
- border: 1px solid var(--st-border-muted);
34
+ --st-card-border-color: var(--st-border-muted);
22
35
  --st-card-background-color: transparent;
23
- }
24
-
25
- &.st-theme-brand {
26
- --st-card-background-color: var(--st-color-accent-subtle);
27
- }
28
-
29
- &.st-theme-info {
30
- --st-card-background-color: var(--st-color-feedback-info-subtle);
31
- }
32
-
33
- &.st-theme-danger {
34
- --st-card-background-color: var(--st-color-feedback-error-subtle);
35
- }
36
-
37
- &.st-theme-warning {
38
- --st-card-background-color: var(--st-color-feedback-warning-subtle);
39
- }
40
-
41
- &.st-theme-success {
42
- --st-card-background-color: var(--st-color-feedback-success-subtle);
36
+ box-shadow: none;
43
37
  }
44
38
  }
45
39
 
@@ -52,28 +46,29 @@ st-card.with-padding .card-content {
52
46
  padding: var(--st-card-padding);
53
47
  }
54
48
 
55
- st-card.flat {
56
- background-color: var(--st-color-bg-raised);
57
-
58
- --st-current-bg-color: var(--st-color-bg-default);
59
- --st-avatar-bg-color: var(--st-color-bg-default);
60
- }
49
+ st-card.selectable {
50
+ cursor: pointer;
61
51
 
52
+ &.elevated:hover {
53
+ --st-card-border-color: var(--st-border-muted);
54
+ box-shadow: var(--st-shadow-3);
55
+ }
62
56
 
63
- st-card.outline {
64
- border: 1px solid var(--st-border);
65
- }
57
+ &.flat:hover {
58
+ --st-card-border-color: var(--st-border-faded);
59
+ --st-card-background-color: var(--st-color-bg-raised);
60
+ }
66
61
 
67
- st-card.selectable:hover {
68
- filter: brightness(90%);
69
- cursor: pointer;
62
+ &.outline:hover {
63
+ --st-card-border-color: var(--st-color-border-strong);
64
+ }
70
65
  }
71
66
 
72
67
  st-card .cover-area:not(:empty) {
73
68
  width: 100%;
74
69
  position: relative;
75
70
  overflow: hidden;
76
- border-radius: 4px 4px 0 0;
71
+ border-radius: calc(var(--st-card-border-radius) - 1px) calc(var(--st-card-border-radius) - 1px) 0 0;
77
72
  }
78
73
 
79
74
  st-card .cover-area:not(:empty) img {
@@ -2,7 +2,7 @@ st-checkbox {
2
2
  --st-checkbox-checked-bg-color: var(--st-color-accent-default);
3
3
  --st-checkbox-checked-bg-hover-color: var(--st-color-accent-hover);
4
4
  --st-checkbox-checked-icon-color: var(--st-color-text-on-accent);
5
-
5
+ --st-checkbox-border-radius: var(--st-border-radius-sm);
6
6
 
7
7
  user-select: none;
8
8
  display: inline-flex;
@@ -44,20 +44,19 @@ st-checkbox {
44
44
  width: var(--st-selection-control-size);
45
45
  max-width: var(--st-selection-control-size);
46
46
  max-height: var(--st-selection-control-size);
47
- background-color: var(--st-color-bg-default);
47
+ background-color: var(--st-color-bg-raised);
48
48
  border: 1px solid var(--st-border);
49
- border-radius: var(--st-border-radius-sm);
49
+ border-radius: var(--st-checkbox-border-radius);
50
50
  color: var(--st-checkbox-checked-icon-color);
51
51
  padding: 2px;
52
- transition: background-color 0.1s linear;
52
+ transition: background-color var(--st-transition-fast), border-color var(--st-transition-fast);
53
53
  display: grid;
54
54
  justify-items: center;
55
55
  svg {
56
56
  justify-self: center;
57
57
  width: 0%;
58
58
  height: 0%;
59
- transition: width 0.1s ease-in;
60
- transition: height 0.1s ease-in;
59
+ transition: width var(--st-transition-fast), height var(--st-transition-fast);
61
60
  visibility: hidden;
62
61
  }
63
62
  }
@@ -8,7 +8,7 @@ st-file-upload {
8
8
  --st-file-upload-active-border: var(--st-color-accent-default);
9
9
  --st-file-upload-active-bg: var(--st-color-accent-subtle, var(--st-color-bg-raised));
10
10
  --st-file-upload-icon-color: var(--st-color-text-secondary);
11
- --st-file-upload-radius: 8px;
11
+ --st-file-upload-radius: var(--st-border-radius-xl);
12
12
 
13
13
  display: block;
14
14
  position: relative;
@@ -19,7 +19,10 @@ st-file-upload {
19
19
  padding: var(--st-space-6) var(--st-space-4);
20
20
  text-align: center;
21
21
  cursor: pointer;
22
- transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
22
+ transition:
23
+ border-color var(--st-transition-fast),
24
+ background-color var(--st-transition-fast),
25
+ transform var(--st-transition-fast);
23
26
  user-select: none;
24
27
  outline: none;
25
28
 
@@ -5,6 +5,7 @@ st-input-field {
5
5
  --st-input-field-height: var(--st-interactive-element-height-md);
6
6
  --st-input-field-font-size: 14px;
7
7
  --st-input-field-padding-x: var(--st-size-xs);
8
+ --st-input-field-border-radius: var(--st-border-radius-md);
8
9
 
9
10
  display: flex;
10
11
  flex-direction: column;
@@ -14,6 +15,7 @@ st-input-field {
14
15
  --st-input-field-height: var(--st-interactive-element-height-sm);
15
16
  --st-input-field-font-size: 12px;
16
17
  --st-input-field-padding-x: var(--st-size-xxs);
18
+ --st-input-field-border-radius: var(--st-border-radius-sm);
17
19
  }
18
20
 
19
21
  &.st-size-md {
@@ -38,8 +40,12 @@ st-input-field {
38
40
  min-height: var(--st-input-field-height);
39
41
  background-color: var(--st-input-field-bg-color);
40
42
  border: 1px solid var(--st-border-muted);
41
- border-radius: var(--st-border-radius-sm);
43
+ border-radius: var(--st-input-field-border-radius);
42
44
  overflow: hidden;
45
+ transition:
46
+ border-color var(--st-transition-fast),
47
+ background-color var(--st-transition-fast),
48
+ box-shadow var(--st-transition-fast);
43
49
  &:focus-within {
44
50
  outline: var(--st-focus-ring-width) var(--st-focus-ring-style) var(--st-focus-ring-color);
45
51
  outline-offset: var(--st-focus-ring-offset);
@@ -1,4 +1,5 @@
1
1
  st-item {
2
+ --st-item-border-radius: var(--st-border-radius-md);
2
3
  box-sizing: border-box;
3
4
  --st-item-gap: var(--st-size-xs);
4
5
  width: 100%;
@@ -9,7 +10,8 @@ st-item {
9
10
  height: fit-content;
10
11
  padding-left: var(--st-size-xxs);
11
12
  padding-right: var(--st-size-xxs);
12
- border-radius: var(--st-border-radius-sm);
13
+ border-radius: var(--st-item-border-radius);
14
+ transition: background-color var(--st-transition-fast);
13
15
 
14
16
  &.interactable {
15
17
  &:hover,
@@ -38,6 +38,8 @@ st-modal-header {
38
38
  align-items: center;
39
39
  border-bottom: 1px solid var(--st-border);
40
40
  padding: var(--st-size-xs);
41
+ border-top-left-radius: var(--st-modal-border-radius);
42
+ border-top-right-radius: var(--st-modal-border-radius);
41
43
 
42
44
  st-button {
43
45
  margin-left: auto;
@@ -98,7 +100,7 @@ st-modal-footer {
98
100
  st-modal {
99
101
  --st-modal-bg-color: var(--st-color-bg-default);
100
102
 
101
- --st-modal-border-radius: var(--st-border-radius-sm);
103
+ --st-modal-border-radius: var(--st-border-radius-xl);
102
104
  --st-modal-padding: var(--st-size-md);
103
105
  --st-modal-covered-modal-filter: brightness(70%);
104
106
  --st-modal-viewport-margin: var(--st-size-md);
@@ -107,7 +109,7 @@ st-modal {
107
109
 
108
110
  z-index: 100;
109
111
  background-color: var(--st-modal-bg-color);
110
- box-shadow: var(--st-shadow-2);
112
+ box-shadow: var(--st-shadow-3);
111
113
  border: 1px solid var(--st-border-faded);
112
114
  border-radius: var(--st-modal-border-radius);
113
115
  pointer-events: auto;
@@ -235,7 +237,7 @@ st-modal-container {
235
237
  .st-internal-backdrop {
236
238
  width: 100%;
237
239
  height: 100%;
238
- background-color: rgba(0, 0, 0, 0.5);
240
+ background-color: rgba(0, 0, 0, 0.45);
239
241
  position: absolute;
240
242
  top: 0;
241
243
  left: 0;
@@ -244,8 +246,9 @@ st-modal-container {
244
246
  align-items: center;
245
247
  justify-items: center;
246
248
  z-index: 80;
247
- backdrop-filter: blur(2px);
249
+ backdrop-filter: blur(8px);
248
250
  pointer-events: auto;
251
+ transition: opacity var(--st-transition-smooth);
249
252
  }
250
253
 
251
254
  .modal-wrapper {
@@ -1,6 +1,7 @@
1
1
  st-notification {
2
- --st-notification-background-color: var(--st-color-neutral-200);
3
- --st-notification-text-color: var(--st-color-neutral-900);
2
+ --st-notification-background-color: var(--st-color-bg-raised);
3
+ --st-notification-text-color: var(--st-color-text-primary);
4
+ --st-notification-border-radius: var(--st-border-radius-lg);
4
5
  display: flex;
5
6
  flex-direction: row;
6
7
  padding: var(--st-size-sm);
@@ -12,7 +13,7 @@ st-notification {
12
13
  align-content: center;
13
14
  align-items: center;
14
15
  justify-content: flex-start;
15
- border-radius: 4px;
16
+ border-radius: var(--st-notification-border-radius);
16
17
  gap: 8px;
17
18
  font-size: 16px;
18
19
  pointer-events: auto;
@@ -32,8 +33,8 @@ st-notification {
32
33
  color: inherit;
33
34
  opacity: 0.7;
34
35
  cursor: pointer;
35
- border-radius: var(--st-border-radius-xs, 2px);
36
- transition: opacity 0.15s ease;
36
+ border-radius: var(--st-border-radius-sm);
37
+ transition: opacity var(--st-transition-fast), background-color var(--st-transition-fast);
37
38
 
38
39
  &:hover {
39
40
  opacity: 1;
@@ -46,8 +47,8 @@ st-notification {
46
47
  }
47
48
 
48
49
  &.st-theme-brand {
49
- --st-notification-background-color: var(--st-color-blue-50);
50
- --st-notification-text-color: var(--st-color-blue-900);
50
+ --st-notification-background-color: var(--st-color-accent-subtle);
51
+ --st-notification-text-color: var(--st-color-accent-text);
51
52
  }
52
53
 
53
54
  &.st-theme-info {
@@ -69,13 +70,6 @@ st-notification {
69
70
  --st-notification-background-color: var(--st-color-feedback-warning-subtle);
70
71
  --st-notification-text-color: var(--st-color-feedback-warning-text);
71
72
  }
72
-
73
- [data-theme='dark'] & {
74
- &.st-theme-brand {
75
- --st-notification-background-color: rgba(37, 99, 235, 0.1);
76
- --st-notification-text-color: var(--st-color-blue-100);
77
- }
78
- }
79
73
  }
80
74
 
81
75
 
@@ -31,7 +31,7 @@ st-otp {
31
31
  --st-otp-slot-size: 54px;
32
32
  --st-otp-slot-font-size: 24px;
33
33
  --st-otp-slot-gap: var(--st-size-xs);
34
- --st-otp-slot-border-radius: var(--st-border-radius-md);
34
+ --st-otp-slot-border-radius: var(--st-border-radius-lg);
35
35
  }
36
36
 
37
37
  &.st-state-error {
@@ -11,7 +11,7 @@ st-pagination {
11
11
  border-radius: var(--st-border-radius-sm);
12
12
  color: var(--st-color-text-primary);
13
13
 
14
- transition: linear 0.1s background-color;
14
+ transition: background-color var(--st-transition-fast);
15
15
  font-size: var(--st-font-sm);
16
16
 
17
17
  &.clickable:not(.selected):not(:disabled):hover {
@@ -12,6 +12,8 @@ st-progress-linear, st-progress-radial {
12
12
  }
13
13
 
14
14
  st-progress-linear {
15
+ --st-progress-border-radius: var(--st-border-radius-xs);
16
+
15
17
  display: flex;
16
18
  flex-direction: row;
17
19
  justify-content: center;
@@ -64,14 +66,14 @@ st-progress-linear, st-progress-radial {
64
66
  width: 100%;
65
67
  height: var(--st-size-xxs);
66
68
  background: var(--st-color-bg-default);
67
- border-radius: var(--st-border-radius-sm);
69
+ border-radius: var(--st-progress-border-radius);
68
70
  overflow: hidden;
69
71
  }
70
72
 
71
73
  .linear-bar {
72
74
  height: 100%;
73
75
  background: var(--st-progress-fill-color);
74
- border-radius: var(--st-border-radius-sm);
76
+ border-radius: var(--st-progress-border-radius);
75
77
 
76
78
  transition: width 0.2s ease;
77
79
  }