aeico-components 0.1.1 → 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.
Files changed (33) hide show
  1. package/dist/index.cjs +1182 -1182
  2. package/dist/index.js +1182 -1182
  3. package/package.json +63 -63
  4. package/src/styles/color.css +117 -117
  5. package/src/styles/components/alert.css +104 -104
  6. package/src/styles/components/badge.css +67 -67
  7. package/src/styles/components/breadcrumb-item.css +59 -59
  8. package/src/styles/components/breadcrumb.css +19 -19
  9. package/src/styles/components/button-group.css +25 -25
  10. package/src/styles/components/button.css +213 -213
  11. package/src/styles/components/card.css +64 -64
  12. package/src/styles/components/checkbox.css +78 -78
  13. package/src/styles/components/detail.css +127 -127
  14. package/src/styles/components/dialog.css +103 -103
  15. package/src/styles/components/divider.css +18 -18
  16. package/src/styles/components/dropdown-item.css +91 -91
  17. package/src/styles/components/dropdown.css +179 -179
  18. package/src/styles/components/icon-button.css +116 -116
  19. package/src/styles/components/icon.css +29 -29
  20. package/src/styles/components/navbar.css +250 -250
  21. package/src/styles/components/radio-group.css +360 -360
  22. package/src/styles/components/select-option.css +43 -43
  23. package/src/styles/components/select.css +222 -222
  24. package/src/styles/components/slider.css +326 -326
  25. package/src/styles/components/switch.css +117 -117
  26. package/src/styles/components/tab-panel.css +8 -8
  27. package/src/styles/components/tab.css +44 -44
  28. package/src/styles/components/tabs.css +16 -16
  29. package/src/styles/components/tag.css +107 -107
  30. package/src/styles/components/text-input.css +110 -110
  31. package/src/styles/layout.css +43 -43
  32. package/src/styles/size.css +7 -7
  33. package/src/styles/variables.css +368 -368
@@ -1,78 +1,78 @@
1
- :host {
2
- display: block;
3
- flex: 1;
4
- min-width: 0;
5
- font-size: var(--size-base);
6
-
7
- /* Layout */
8
- --checkbox-field-gap: 4px;
9
-
10
- /* Checkbox */
11
- --checkbox-size: 1.167em;
12
- --checkbox-border-width: 1px;
13
- --checkbox-border-radius: 2px;
14
- --checkbox-border-color: var(--border-subtle);
15
- --checkbox-bg: var(--surface-base);
16
- --checkbox-accent-color: var(--color-solid);
17
-
18
- /* Default color when no [color] attribute — overridden by color.css :host([color=...]) */
19
- --color-solid: var(--color-primary);
20
- }
21
-
22
- .checkbox-container {
23
- display: flex;
24
- align-items: center;
25
- gap: var(--checkbox-field-gap);
26
- width: 100%;
27
- }
28
-
29
- .checkbox-wrapper {
30
- position: relative;
31
- display: inline-flex;
32
- align-items: center;
33
- }
34
-
35
- .field-input {
36
- width: var(--checkbox-size);
37
- height: var(--checkbox-size);
38
- cursor: pointer;
39
- border: var(--checkbox-border-width) solid var(--checkbox-border-color);
40
- border-radius: var(--checkbox-border-radius);
41
- background: var(--checkbox-bg);
42
- accent-color: var(--checkbox-accent-color);
43
- margin: 0;
44
- flex-shrink: 0;
45
- }
46
-
47
- .field-input:disabled {
48
- opacity: 0.5;
49
- cursor: not-allowed;
50
- }
51
-
52
- /* action buttons */
53
- .reset-btn,
54
- .clear-btn {
55
- width: 1.333em;
56
- height: 1.333em;
57
- border: none;
58
- border-radius: var(--reset-btn-border-radius);
59
- cursor: pointer;
60
- display: flex;
61
- align-items: center;
62
- justify-content: center;
63
- background: var(--reset-btn-bg);
64
- color: var(--reset-btn-color);
65
- transition: var(--reset-btn-transition);
66
- flex-shrink: 0;
67
- line-height: 1;
68
- }
69
-
70
- .reset-btn:hover {
71
- background: var(--reset-btn-bg-hover);
72
- color: var(--reset-btn-color-hover);
73
- }
74
-
75
- .clear-btn:hover {
76
- background: var(--clear-btn-bg-hover);
77
- color: var(--clear-btn-color-hover);
78
- }
1
+ :host {
2
+ display: block;
3
+ flex: 1;
4
+ min-width: 0;
5
+ font-size: var(--size-base);
6
+
7
+ /* Layout */
8
+ --checkbox-field-gap: 4px;
9
+
10
+ /* Checkbox */
11
+ --checkbox-size: 1.167em;
12
+ --checkbox-border-width: 1px;
13
+ --checkbox-border-radius: 2px;
14
+ --checkbox-border-color: var(--border-subtle);
15
+ --checkbox-bg: var(--surface-base);
16
+ --checkbox-accent-color: var(--color-solid);
17
+
18
+ /* Default color when no [color] attribute — overridden by color.css :host([color=...]) */
19
+ --color-solid: var(--color-primary);
20
+ }
21
+
22
+ .checkbox-container {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: var(--checkbox-field-gap);
26
+ width: 100%;
27
+ }
28
+
29
+ .checkbox-wrapper {
30
+ position: relative;
31
+ display: inline-flex;
32
+ align-items: center;
33
+ }
34
+
35
+ .field-input {
36
+ width: var(--checkbox-size);
37
+ height: var(--checkbox-size);
38
+ cursor: pointer;
39
+ border: var(--checkbox-border-width) solid var(--checkbox-border-color);
40
+ border-radius: var(--checkbox-border-radius);
41
+ background: var(--checkbox-bg);
42
+ accent-color: var(--checkbox-accent-color);
43
+ margin: 0;
44
+ flex-shrink: 0;
45
+ }
46
+
47
+ .field-input:disabled {
48
+ opacity: 0.5;
49
+ cursor: not-allowed;
50
+ }
51
+
52
+ /* action buttons */
53
+ .reset-btn,
54
+ .clear-btn {
55
+ width: 1.333em;
56
+ height: 1.333em;
57
+ border: none;
58
+ border-radius: var(--reset-btn-border-radius);
59
+ cursor: pointer;
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ background: var(--reset-btn-bg);
64
+ color: var(--reset-btn-color);
65
+ transition: var(--reset-btn-transition);
66
+ flex-shrink: 0;
67
+ line-height: 1;
68
+ }
69
+
70
+ .reset-btn:hover {
71
+ background: var(--reset-btn-bg-hover);
72
+ color: var(--reset-btn-color-hover);
73
+ }
74
+
75
+ .clear-btn:hover {
76
+ background: var(--clear-btn-bg-hover);
77
+ color: var(--clear-btn-color-hover);
78
+ }
@@ -1,127 +1,127 @@
1
- :host {
2
- display: block;
3
-
4
- --detail-bg: var(--color-solid);
5
- --detail-color: var(--color-on-solid);
6
- --detail-border: var(--color-solid);
7
- --detail-header-bg: color-mix(in srgb, var(--color-solid), black 10%);
8
- --detail-radius: 6px;
9
- }
10
-
11
- :host([variant="faint"]) {
12
- --detail-bg: var(--color-bg-subtle);
13
- --detail-color: var(--color-text-subtle);
14
- --detail-border: var(--color-border-subtle);
15
- --detail-header-bg: var(--color-bg-subtle);
16
- }
17
-
18
- :host([variant="subtle"]) {
19
- --detail-bg: transparent;
20
- --detail-color: var(--color-text-main);
21
- --detail-border: transparent;
22
- --detail-header-bg: transparent;
23
- }
24
-
25
- :host([variant="filled"]) {
26
- --detail-bg: var(--color-solid);
27
- --detail-color: var(--color-on-solid);
28
- --detail-border: var(--color-solid);
29
- --detail-header-bg: color-mix(in srgb, var(--color-solid), black 10%);
30
- }
31
-
32
- :host([variant="outlined"]) {
33
- --detail-bg: transparent;
34
- --detail-color: var(--color-text-subtle);
35
- --detail-border: var(--color-border);
36
- --detail-header-bg: transparent;
37
- }
38
-
39
- :host([disabled]) {
40
- opacity: 0.5;
41
- pointer-events: none;
42
- }
43
-
44
- .detail {
45
- border: 1px solid var(--detail-border);
46
- border-radius: var(--detail-radius);
47
- color: var(--detail-color);
48
- background: var(--detail-bg);
49
- overflow: hidden;
50
- }
51
-
52
- .summary {
53
- display: flex;
54
- align-items: center;
55
- gap: 6px;
56
- width: 100%;
57
- padding: 10px 14px;
58
- background: var(--detail-header-bg);
59
- color: inherit;
60
- font-size: inherit;
61
- font-family: inherit;
62
- font-weight: 500;
63
- border: none;
64
- cursor: pointer;
65
- text-align: left;
66
- outline-offset: -2px;
67
- user-select: none;
68
- }
69
-
70
- .summary:hover {
71
- filter: brightness(0.93);
72
- }
73
-
74
- .summary:focus-visible {
75
- outline: 2px solid var(--color-border);
76
- }
77
-
78
- slot[name="summary"] {
79
- display: flex;
80
- align-items: center;
81
- flex: 1;
82
- min-width: 0;
83
- }
84
-
85
- .label {
86
- flex: 1;
87
- }
88
-
89
- slot[name="expand"],
90
- slot[name="collapse"] {
91
- display: inline-flex;
92
- align-items: center;
93
- flex-shrink: 0;
94
- }
95
-
96
- slot[name="collapse"] {
97
- display: none;
98
- }
99
-
100
- :host([open]) slot[name="expand"] {
101
- display: none;
102
- }
103
-
104
- :host([open]) slot[name="collapse"] {
105
- display: inline-flex;
106
- }
107
-
108
- .content-outer {
109
- display: grid;
110
- grid-template-rows: 0fr;
111
- transition: grid-template-rows 0.25s ease;
112
- }
113
-
114
- :host([open]) .content-outer {
115
- grid-template-rows: 1fr;
116
- }
117
-
118
- .content {
119
- overflow: hidden;
120
- padding: 0 14px;
121
- transition: padding 0.25s ease;
122
- }
123
-
124
- :host([open]) .content {
125
- padding: 12px 14px;
126
- }
127
-
1
+ :host {
2
+ display: block;
3
+
4
+ --detail-bg: var(--color-solid);
5
+ --detail-color: var(--color-on-solid);
6
+ --detail-border: var(--color-solid);
7
+ --detail-header-bg: color-mix(in srgb, var(--color-solid), black 10%);
8
+ --detail-radius: 6px;
9
+ }
10
+
11
+ :host([variant="faint"]) {
12
+ --detail-bg: var(--color-bg-subtle);
13
+ --detail-color: var(--color-text-subtle);
14
+ --detail-border: var(--color-border-subtle);
15
+ --detail-header-bg: var(--color-bg-subtle);
16
+ }
17
+
18
+ :host([variant="subtle"]) {
19
+ --detail-bg: transparent;
20
+ --detail-color: var(--color-text-main);
21
+ --detail-border: transparent;
22
+ --detail-header-bg: transparent;
23
+ }
24
+
25
+ :host([variant="filled"]) {
26
+ --detail-bg: var(--color-solid);
27
+ --detail-color: var(--color-on-solid);
28
+ --detail-border: var(--color-solid);
29
+ --detail-header-bg: color-mix(in srgb, var(--color-solid), black 10%);
30
+ }
31
+
32
+ :host([variant="outlined"]) {
33
+ --detail-bg: transparent;
34
+ --detail-color: var(--color-text-subtle);
35
+ --detail-border: var(--color-border);
36
+ --detail-header-bg: transparent;
37
+ }
38
+
39
+ :host([disabled]) {
40
+ opacity: 0.5;
41
+ pointer-events: none;
42
+ }
43
+
44
+ .detail {
45
+ border: 1px solid var(--detail-border);
46
+ border-radius: var(--detail-radius);
47
+ color: var(--detail-color);
48
+ background: var(--detail-bg);
49
+ overflow: hidden;
50
+ }
51
+
52
+ .summary {
53
+ display: flex;
54
+ align-items: center;
55
+ gap: 6px;
56
+ width: 100%;
57
+ padding: 10px 14px;
58
+ background: var(--detail-header-bg);
59
+ color: inherit;
60
+ font-size: inherit;
61
+ font-family: inherit;
62
+ font-weight: 500;
63
+ border: none;
64
+ cursor: pointer;
65
+ text-align: left;
66
+ outline-offset: -2px;
67
+ user-select: none;
68
+ }
69
+
70
+ .summary:hover {
71
+ filter: brightness(0.93);
72
+ }
73
+
74
+ .summary:focus-visible {
75
+ outline: 2px solid var(--color-border);
76
+ }
77
+
78
+ slot[name="summary"] {
79
+ display: flex;
80
+ align-items: center;
81
+ flex: 1;
82
+ min-width: 0;
83
+ }
84
+
85
+ .label {
86
+ flex: 1;
87
+ }
88
+
89
+ slot[name="expand"],
90
+ slot[name="collapse"] {
91
+ display: inline-flex;
92
+ align-items: center;
93
+ flex-shrink: 0;
94
+ }
95
+
96
+ slot[name="collapse"] {
97
+ display: none;
98
+ }
99
+
100
+ :host([open]) slot[name="expand"] {
101
+ display: none;
102
+ }
103
+
104
+ :host([open]) slot[name="collapse"] {
105
+ display: inline-flex;
106
+ }
107
+
108
+ .content-outer {
109
+ display: grid;
110
+ grid-template-rows: 0fr;
111
+ transition: grid-template-rows 0.25s ease;
112
+ }
113
+
114
+ :host([open]) .content-outer {
115
+ grid-template-rows: 1fr;
116
+ }
117
+
118
+ .content {
119
+ overflow: hidden;
120
+ padding: 0 14px;
121
+ transition: padding 0.25s ease;
122
+ }
123
+
124
+ :host([open]) .content {
125
+ padding: 12px 14px;
126
+ }
127
+
@@ -1,103 +1,103 @@
1
- :host {
2
- display: contents;
3
- }
4
-
5
- dialog {
6
- display: none;
7
- flex-direction: column;
8
- border: none;
9
- border-radius: 8px;
10
- padding: 0;
11
- max-width: min(90vw, 600px);
12
- max-height: 90vh;
13
- background: var(--surface-overlay);
14
- color: var(--color-text-main);
15
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
16
- overflow: hidden;
17
- }
18
-
19
- dialog[open] {
20
- display: flex;
21
- animation: dialog-slide-in 0.2s ease;
22
- }
23
-
24
- dialog::backdrop {
25
- background: var(--color-overlay);
26
- animation: dialog-backdrop-in 0.2s ease;
27
- }
28
-
29
- @keyframes dialog-backdrop-in {
30
- from { opacity: 0; }
31
- to { opacity: 1; }
32
- }
33
-
34
- @keyframes dialog-slide-in {
35
- from {
36
- opacity: 0;
37
- transform: scale(0.96) translateY(-8px);
38
- }
39
- to {
40
- opacity: 1;
41
- transform: scale(1) translateY(0);
42
- }
43
- }
44
-
45
- header {
46
- display: flex;
47
- align-items: center;
48
- gap: 8px;
49
- padding: 16px 20px;
50
- border-bottom: 1px solid var(--border-subtle);
51
- flex-shrink: 0;
52
- }
53
-
54
- .label {
55
- flex: 1;
56
- font-size: var(--size-m, 1rem);
57
- font-weight: 500;
58
- margin: 0;
59
- color: var(--color-text-main);
60
- }
61
-
62
- .close-btn {
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- flex-shrink: 0;
67
- width: 28px;
68
- height: 28px;
69
- padding: 0;
70
- border: none;
71
- border-radius: 4px;
72
- background: transparent;
73
- color: var(--color-text-muted);
74
- font-size: 18px;
75
- line-height: 1;
76
- cursor: pointer;
77
- transition: background 0.15s, color 0.15s;
78
- }
79
-
80
- .close-btn:hover {
81
- background: var(--border-subtle);
82
- color: var(--color-text-main);
83
- }
84
-
85
- .body {
86
- flex: 1;
87
- overflow-y: auto;
88
- padding: 20px;
89
- }
90
-
91
- footer {
92
- display: flex;
93
- align-items: center;
94
- justify-content: flex-end;
95
- gap: 8px;
96
- padding: 12px 20px;
97
- border-top: 1px solid var(--border-subtle);
98
- flex-shrink: 0;
99
- }
100
-
101
- ::slotted([data-align-left]) {
102
- margin-right: auto;
103
- }
1
+ :host {
2
+ display: contents;
3
+ }
4
+
5
+ dialog {
6
+ display: none;
7
+ flex-direction: column;
8
+ border: none;
9
+ border-radius: 8px;
10
+ padding: 0;
11
+ max-width: min(90vw, 600px);
12
+ max-height: 90vh;
13
+ background: var(--surface-overlay);
14
+ color: var(--color-text-main);
15
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
16
+ overflow: hidden;
17
+ }
18
+
19
+ dialog[open] {
20
+ display: flex;
21
+ animation: dialog-slide-in 0.2s ease;
22
+ }
23
+
24
+ dialog::backdrop {
25
+ background: var(--color-overlay);
26
+ animation: dialog-backdrop-in 0.2s ease;
27
+ }
28
+
29
+ @keyframes dialog-backdrop-in {
30
+ from { opacity: 0; }
31
+ to { opacity: 1; }
32
+ }
33
+
34
+ @keyframes dialog-slide-in {
35
+ from {
36
+ opacity: 0;
37
+ transform: scale(0.96) translateY(-8px);
38
+ }
39
+ to {
40
+ opacity: 1;
41
+ transform: scale(1) translateY(0);
42
+ }
43
+ }
44
+
45
+ header {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: 8px;
49
+ padding: 16px 20px;
50
+ border-bottom: 1px solid var(--border-subtle);
51
+ flex-shrink: 0;
52
+ }
53
+
54
+ .label {
55
+ flex: 1;
56
+ font-size: var(--size-m, 1rem);
57
+ font-weight: 500;
58
+ margin: 0;
59
+ color: var(--color-text-main);
60
+ }
61
+
62
+ .close-btn {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ flex-shrink: 0;
67
+ width: 28px;
68
+ height: 28px;
69
+ padding: 0;
70
+ border: none;
71
+ border-radius: 4px;
72
+ background: transparent;
73
+ color: var(--color-text-muted);
74
+ font-size: 18px;
75
+ line-height: 1;
76
+ cursor: pointer;
77
+ transition: background 0.15s, color 0.15s;
78
+ }
79
+
80
+ .close-btn:hover {
81
+ background: var(--border-subtle);
82
+ color: var(--color-text-main);
83
+ }
84
+
85
+ .body {
86
+ flex: 1;
87
+ overflow-y: auto;
88
+ padding: 20px;
89
+ }
90
+
91
+ footer {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: flex-end;
95
+ gap: 8px;
96
+ padding: 12px 20px;
97
+ border-top: 1px solid var(--border-subtle);
98
+ flex-shrink: 0;
99
+ }
100
+
101
+ ::slotted([data-align-left]) {
102
+ margin-right: auto;
103
+ }
@@ -1,18 +1,18 @@
1
- :host {
2
- display: block;
3
- width: 100%;
4
- height: var(--thickness, 1px);
5
- flex-shrink: 0;
6
-
7
- /* Override colorCSS default --color-border from gray to the subtle border token */
8
- --color-border: var(--border-default);
9
-
10
- background: var(--color-border);
11
- }
12
-
13
- :host([vertical]) {
14
- display: inline-block;
15
- width: var(--thickness, 1px);
16
- height: 1lh;
17
- vertical-align: middle;
18
- }
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ height: var(--thickness, 1px);
5
+ flex-shrink: 0;
6
+
7
+ /* Override colorCSS default --color-border from gray to the subtle border token */
8
+ --color-border: var(--border-default);
9
+
10
+ background: var(--color-border);
11
+ }
12
+
13
+ :host([vertical]) {
14
+ display: inline-block;
15
+ width: var(--thickness, 1px);
16
+ height: 1lh;
17
+ vertical-align: middle;
18
+ }