aeico-components 0.1.2 → 0.1.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.
- package/dist/index.cjs +1182 -1182
- package/dist/index.js +1182 -1182
- package/package.json +63 -63
- package/src/styles/color.css +117 -117
- package/src/styles/components/alert.css +104 -104
- package/src/styles/components/badge.css +67 -67
- package/src/styles/components/breadcrumb-item.css +59 -59
- package/src/styles/components/breadcrumb.css +19 -19
- package/src/styles/components/button-group.css +25 -25
- package/src/styles/components/button.css +213 -213
- package/src/styles/components/card.css +64 -64
- package/src/styles/components/checkbox.css +78 -78
- package/src/styles/components/detail.css +127 -127
- package/src/styles/components/dialog.css +103 -103
- package/src/styles/components/divider.css +18 -18
- package/src/styles/components/dropdown-item.css +91 -91
- package/src/styles/components/dropdown.css +179 -179
- package/src/styles/components/icon-button.css +116 -116
- package/src/styles/components/icon.css +29 -29
- package/src/styles/components/navbar.css +250 -250
- package/src/styles/components/radio-group.css +360 -360
- package/src/styles/components/select-option.css +43 -43
- package/src/styles/components/select.css +222 -222
- package/src/styles/components/slider.css +326 -326
- package/src/styles/components/switch.css +117 -117
- package/src/styles/components/tab-panel.css +8 -8
- package/src/styles/components/tab.css +44 -44
- package/src/styles/components/tabs.css +16 -16
- package/src/styles/components/tag.css +107 -107
- package/src/styles/components/text-input.css +110 -110
- package/src/styles/layout.css +43 -43
- package/src/styles/size.css +7 -7
- package/src/styles/variables.css +368 -368
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
--badge-solid-bg: var(--color-solid);
|
|
5
|
-
--badge-solid-color: var(--color-on-solid);
|
|
6
|
-
--badge-border: var(--color-border);
|
|
7
|
-
--badge-accent: var(--color-accent);
|
|
8
|
-
--badge-subtle-bg: var(--color-bg-subtle);
|
|
9
|
-
--badge-subtle-color: var(--color-text-subtle);
|
|
10
|
-
--badge-subtle-border: var(--color-border-subtle);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.badge {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: 4px;
|
|
17
|
-
font-family: inherit;
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
white-space: nowrap;
|
|
20
|
-
vertical-align: middle;
|
|
21
|
-
line-height: 1.2;
|
|
22
|
-
font-size: 1em;
|
|
23
|
-
padding: 0.15em 0.6em;
|
|
24
|
-
border-radius: 4px;
|
|
25
|
-
border: 1px solid var(--badge-solid-bg);
|
|
26
|
-
background: var(--badge-solid-bg);
|
|
27
|
-
color: var(--badge-solid-color);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Default (no [variant]) = filled */
|
|
31
|
-
|
|
32
|
-
/* --- Variants --- */
|
|
33
|
-
|
|
34
|
-
:host([variant="outlined"]) .badge {
|
|
35
|
-
background: transparent;
|
|
36
|
-
border-color: var(--badge-border);
|
|
37
|
-
color: var(--badge-accent);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([variant="faint"]) .badge {
|
|
41
|
-
background: var(--badge-subtle-bg);
|
|
42
|
-
border-color: var(--badge-subtle-border);
|
|
43
|
-
color: var(--badge-subtle-color);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([variant="subtle"]) .badge {
|
|
47
|
-
background: var(--badge-subtle-bg);
|
|
48
|
-
border-color: transparent;
|
|
49
|
-
color: var(--badge-subtle-color);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([variant="text"]) .badge {
|
|
53
|
-
background: transparent;
|
|
54
|
-
border-color: transparent;
|
|
55
|
-
color: var(--badge-accent);
|
|
56
|
-
padding-left: 0;
|
|
57
|
-
padding-right: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([pill]) .badge {
|
|
61
|
-
border-radius: 999px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Icon slots */
|
|
65
|
-
::slotted(ae-icon) {
|
|
66
|
-
font-size: 1.1em;
|
|
67
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
--badge-solid-bg: var(--color-solid);
|
|
5
|
+
--badge-solid-color: var(--color-on-solid);
|
|
6
|
+
--badge-border: var(--color-border);
|
|
7
|
+
--badge-accent: var(--color-accent);
|
|
8
|
+
--badge-subtle-bg: var(--color-bg-subtle);
|
|
9
|
+
--badge-subtle-color: var(--color-text-subtle);
|
|
10
|
+
--badge-subtle-border: var(--color-border-subtle);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.badge {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 4px;
|
|
17
|
+
font-family: inherit;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
line-height: 1.2;
|
|
22
|
+
font-size: 1em;
|
|
23
|
+
padding: 0.15em 0.6em;
|
|
24
|
+
border-radius: 4px;
|
|
25
|
+
border: 1px solid var(--badge-solid-bg);
|
|
26
|
+
background: var(--badge-solid-bg);
|
|
27
|
+
color: var(--badge-solid-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Default (no [variant]) = filled */
|
|
31
|
+
|
|
32
|
+
/* --- Variants --- */
|
|
33
|
+
|
|
34
|
+
:host([variant="outlined"]) .badge {
|
|
35
|
+
background: transparent;
|
|
36
|
+
border-color: var(--badge-border);
|
|
37
|
+
color: var(--badge-accent);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([variant="faint"]) .badge {
|
|
41
|
+
background: var(--badge-subtle-bg);
|
|
42
|
+
border-color: var(--badge-subtle-border);
|
|
43
|
+
color: var(--badge-subtle-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([variant="subtle"]) .badge {
|
|
47
|
+
background: var(--badge-subtle-bg);
|
|
48
|
+
border-color: transparent;
|
|
49
|
+
color: var(--badge-subtle-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([variant="text"]) .badge {
|
|
53
|
+
background: transparent;
|
|
54
|
+
border-color: transparent;
|
|
55
|
+
color: var(--badge-accent);
|
|
56
|
+
padding-left: 0;
|
|
57
|
+
padding-right: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([pill]) .badge {
|
|
61
|
+
border-radius: 999px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Icon slots */
|
|
65
|
+
::slotted(ae-icon) {
|
|
66
|
+
font-size: 1.1em;
|
|
67
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.item {
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
list-style: none;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Separator — uses a fixed muted color that does NOT follow the breadcrumb's color prop */
|
|
13
|
-
.sep {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
color: var(--color-text-muted);
|
|
17
|
-
padding: 0 0.35em;
|
|
18
|
-
user-select: none;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
font-size: 0.85em;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* Hide separator on the first item */
|
|
25
|
-
:host(:first-child) .sep,
|
|
26
|
-
:host(:first-of-type) .sep {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.label {
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
color: var(--color-text-muted);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Current page — last item */
|
|
37
|
-
:host([aria-current="page"]) .label {
|
|
38
|
-
color: var(--color-text-main);
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
cursor: default;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Link items */
|
|
44
|
-
.label a {
|
|
45
|
-
color: var(--color-accent, var(--color-text-link));
|
|
46
|
-
text-decoration: none;
|
|
47
|
-
outline: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.label a:hover {
|
|
51
|
-
color: var(--color-accent-hover, var(--color-text-link-hover));
|
|
52
|
-
text-decoration: underline;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.label a:focus-visible {
|
|
56
|
-
outline: 2px solid var(--color-accent, var(--focus-ring-color));
|
|
57
|
-
outline-offset: 2px;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.item {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
list-style: none;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Separator — uses a fixed muted color that does NOT follow the breadcrumb's color prop */
|
|
13
|
+
.sep {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
color: var(--color-text-muted);
|
|
17
|
+
padding: 0 0.35em;
|
|
18
|
+
user-select: none;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
font-size: 0.85em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Hide separator on the first item */
|
|
25
|
+
:host(:first-child) .sep,
|
|
26
|
+
:host(:first-of-type) .sep {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.label {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
color: var(--color-text-muted);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Current page — last item */
|
|
37
|
+
:host([aria-current="page"]) .label {
|
|
38
|
+
color: var(--color-text-main);
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Link items */
|
|
44
|
+
.label a {
|
|
45
|
+
color: var(--color-accent, var(--color-text-link));
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.label a:hover {
|
|
51
|
+
color: var(--color-accent-hover, var(--color-text-link-hover));
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.label a:focus-visible {
|
|
56
|
+
outline: 2px solid var(--color-accent, var(--focus-ring-color));
|
|
57
|
+
outline-offset: 2px;
|
|
58
|
+
border-radius: 2px;
|
|
59
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/* Hide the separator template slot visually */
|
|
6
|
-
.sep-template {
|
|
7
|
-
display: none !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.list {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
align-items: center;
|
|
14
|
-
list-style: none;
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
font-size: inherit;
|
|
18
|
-
line-height: 1.5;
|
|
19
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* Hide the separator template slot visually */
|
|
6
|
+
.sep-template {
|
|
7
|
+
display: none !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.list {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
align-items: center;
|
|
14
|
+
list-style: none;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
font-size: inherit;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: stretch;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host([block]) {
|
|
8
|
-
display: flex;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host([block]) ::slotted(ae-button) {
|
|
13
|
-
flex: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:host([compact]) {
|
|
17
|
-
gap: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Raise hovered/focused button so its border shows above neighbours */
|
|
21
|
-
:host([compact]) ::slotted(ae-button:hover),
|
|
22
|
-
:host([compact]) ::slotted(ae-button:focus-within) {
|
|
23
|
-
position: relative;
|
|
24
|
-
z-index: 1;
|
|
25
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: stretch;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host([block]) {
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([block]) ::slotted(ae-button) {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([compact]) {
|
|
17
|
+
gap: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Raise hovered/focused button so its border shows above neighbours */
|
|
21
|
+
:host([compact]) ::slotted(ae-button:hover),
|
|
22
|
+
:host([compact]) ::slotted(ae-button:focus-within) {
|
|
23
|
+
position: relative;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
}
|