@vialiq/flux-ui 0.6.2 → 0.7.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/components/_alert.scss +62 -0
- package/components/_index.scss +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alert component base styles.
|
|
3
|
+
*
|
|
4
|
+
* Shared foundation styles for the alert component.
|
|
5
|
+
* Provides flexbox layout, spacing via tokens, and interaction states.
|
|
6
|
+
* Component-specific colors and sizing defined by consuming components.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@use '../styles/variables' as tokens;
|
|
10
|
+
|
|
11
|
+
@layer components {
|
|
12
|
+
.alert-root {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
border-radius: var(--vi-alert-border-radius, 6px);
|
|
19
|
+
padding: var(--vi-alert-padding, 12px 16px);
|
|
20
|
+
gap: var(--vi-alert-gap, 12px);
|
|
21
|
+
border-width: var(--vi-alert-border-width, 1px);
|
|
22
|
+
border-style: solid;
|
|
23
|
+
|
|
24
|
+
font-family: tokens.$font-family-base;
|
|
25
|
+
font-size: tokens.$font-size-sm;
|
|
26
|
+
line-height: tokens.$line-height-normal;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.alert-icon {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
|
|
35
|
+
// Slight padding to align nicely with the title text
|
|
36
|
+
padding-top: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.alert-content {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
flex-grow: 1;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.alert-title {
|
|
47
|
+
font-weight: tokens.$font-weight-semibold;
|
|
48
|
+
margin-bottom: 4px;
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.alert-body {
|
|
53
|
+
// any general body styles
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.alert-actions {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: tokens.$spacing-xs;
|
|
60
|
+
margin-top: tokens.$spacing-sm;
|
|
61
|
+
}
|
|
62
|
+
}
|
package/components/_index.scss
CHANGED