aeico-components 0.1.5 → 0.1.6

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 (284) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -0
  3. package/dist/chunks/action-button.cjs +296 -0
  4. package/dist/chunks/action-button.cjs.map +1 -0
  5. package/dist/chunks/action-button.js +297 -0
  6. package/dist/chunks/action-button.js.map +1 -0
  7. package/dist/chunks/alert.cjs +4 -4
  8. package/dist/chunks/alert.cjs.map +1 -1
  9. package/dist/chunks/alert.js +5 -5
  10. package/dist/chunks/alert.js.map +1 -1
  11. package/dist/chunks/badge.cjs +1 -1
  12. package/dist/chunks/badge.cjs.map +1 -1
  13. package/dist/chunks/badge.js +2 -2
  14. package/dist/chunks/badge.js.map +1 -1
  15. package/dist/chunks/breadcrumb-item.cjs +2 -2
  16. package/dist/chunks/breadcrumb-item.cjs.map +1 -1
  17. package/dist/chunks/breadcrumb-item.js +3 -3
  18. package/dist/chunks/breadcrumb-item.js.map +1 -1
  19. package/dist/chunks/button-group.cjs +1 -1
  20. package/dist/chunks/button-group.cjs.map +1 -1
  21. package/dist/chunks/button-group.js +2 -2
  22. package/dist/chunks/button-group.js.map +1 -1
  23. package/dist/chunks/button.cjs +1 -1
  24. package/dist/chunks/button.cjs.map +1 -1
  25. package/dist/chunks/button.js +2 -2
  26. package/dist/chunks/button.js.map +1 -1
  27. package/dist/chunks/card.cjs +1 -1
  28. package/dist/chunks/card.cjs.map +1 -1
  29. package/dist/chunks/card.js +2 -2
  30. package/dist/chunks/card.js.map +1 -1
  31. package/dist/chunks/checkbox.cjs +18 -5
  32. package/dist/chunks/checkbox.cjs.map +1 -1
  33. package/dist/chunks/checkbox.js +18 -5
  34. package/dist/chunks/checkbox.js.map +1 -1
  35. package/dist/chunks/copy-button.cjs +168 -0
  36. package/dist/chunks/copy-button.cjs.map +1 -0
  37. package/dist/chunks/copy-button.js +169 -0
  38. package/dist/chunks/copy-button.js.map +1 -0
  39. package/dist/chunks/detail.cjs +7 -4
  40. package/dist/chunks/detail.cjs.map +1 -1
  41. package/dist/chunks/detail.js +8 -5
  42. package/dist/chunks/detail.js.map +1 -1
  43. package/dist/chunks/dialog.cjs +1 -1
  44. package/dist/chunks/dialog.cjs.map +1 -1
  45. package/dist/chunks/dialog.js +2 -2
  46. package/dist/chunks/dialog.js.map +1 -1
  47. package/dist/chunks/divider.cjs +1 -1
  48. package/dist/chunks/divider.cjs.map +1 -1
  49. package/dist/chunks/divider.js +2 -2
  50. package/dist/chunks/divider.js.map +1 -1
  51. package/dist/chunks/drawer.cjs +180 -0
  52. package/dist/chunks/drawer.cjs.map +1 -0
  53. package/dist/chunks/drawer.js +181 -0
  54. package/dist/chunks/drawer.js.map +1 -0
  55. package/dist/chunks/dropdown-button.cjs +2 -2
  56. package/dist/chunks/dropdown-button.cjs.map +1 -1
  57. package/dist/chunks/dropdown-button.js +3 -3
  58. package/dist/chunks/dropdown-button.js.map +1 -1
  59. package/dist/chunks/icon.cjs +31 -1
  60. package/dist/chunks/icon.cjs.map +1 -1
  61. package/dist/chunks/icon.js +32 -2
  62. package/dist/chunks/icon.js.map +1 -1
  63. package/dist/chunks/menu.cjs +396 -0
  64. package/dist/chunks/menu.cjs.map +1 -0
  65. package/dist/chunks/menu.js +397 -0
  66. package/dist/chunks/menu.js.map +1 -0
  67. package/dist/chunks/navbar.cjs +1 -1
  68. package/dist/chunks/navbar.cjs.map +1 -1
  69. package/dist/chunks/navbar.js +2 -2
  70. package/dist/chunks/navbar.js.map +1 -1
  71. package/dist/chunks/pagination.cjs +475 -0
  72. package/dist/chunks/pagination.cjs.map +1 -0
  73. package/dist/chunks/pagination.js +476 -0
  74. package/dist/chunks/pagination.js.map +1 -0
  75. package/dist/chunks/progress-bar.cjs +101 -0
  76. package/dist/chunks/progress-bar.cjs.map +1 -0
  77. package/dist/chunks/progress-bar.js +102 -0
  78. package/dist/chunks/progress-bar.js.map +1 -0
  79. package/dist/chunks/radio.cjs +11 -7
  80. package/dist/chunks/radio.cjs.map +1 -1
  81. package/dist/chunks/radio.js +11 -7
  82. package/dist/chunks/radio.js.map +1 -1
  83. package/dist/chunks/select.cjs +97 -66
  84. package/dist/chunks/select.cjs.map +1 -1
  85. package/dist/chunks/select.js +97 -66
  86. package/dist/chunks/select.js.map +1 -1
  87. package/dist/chunks/slider.cjs +9 -46
  88. package/dist/chunks/slider.cjs.map +1 -1
  89. package/dist/chunks/slider.js +9 -46
  90. package/dist/chunks/slider.js.map +1 -1
  91. package/dist/chunks/spinner.cjs +102 -0
  92. package/dist/chunks/spinner.cjs.map +1 -0
  93. package/dist/chunks/spinner.js +103 -0
  94. package/dist/chunks/spinner.js.map +1 -0
  95. package/dist/chunks/switch.cjs +110 -16
  96. package/dist/chunks/switch.cjs.map +1 -1
  97. package/dist/chunks/switch.js +111 -17
  98. package/dist/chunks/switch.js.map +1 -1
  99. package/dist/chunks/tab-panel.cjs +3 -3
  100. package/dist/chunks/tab-panel.cjs.map +1 -1
  101. package/dist/chunks/tab-panel.js +4 -4
  102. package/dist/chunks/tab-panel.js.map +1 -1
  103. package/dist/chunks/tag.cjs +1 -1
  104. package/dist/chunks/tag.cjs.map +1 -1
  105. package/dist/chunks/tag.js +2 -2
  106. package/dist/chunks/tag.js.map +1 -1
  107. package/dist/chunks/text-input.cjs +11 -16
  108. package/dist/chunks/text-input.cjs.map +1 -1
  109. package/dist/chunks/text-input.js +11 -16
  110. package/dist/chunks/text-input.js.map +1 -1
  111. package/dist/chunks/textarea.cjs +137 -0
  112. package/dist/chunks/textarea.cjs.map +1 -0
  113. package/dist/chunks/textarea.js +138 -0
  114. package/dist/chunks/textarea.js.map +1 -0
  115. package/dist/chunks/tooltip.cjs +293 -0
  116. package/dist/chunks/tooltip.cjs.map +1 -0
  117. package/dist/chunks/tooltip.js +294 -0
  118. package/dist/chunks/tooltip.js.map +1 -0
  119. package/dist/chunks/tree.cjs +468 -0
  120. package/dist/chunks/tree.cjs.map +1 -0
  121. package/dist/chunks/tree.js +469 -0
  122. package/dist/chunks/tree.js.map +1 -0
  123. package/dist/chunks/variables.cjs +2 -2
  124. package/dist/chunks/variables.js +2 -2
  125. package/dist/copy-button.cjs +6 -0
  126. package/dist/copy-button.cjs.map +1 -0
  127. package/dist/copy-button.js +6 -0
  128. package/dist/copy-button.js.map +1 -0
  129. package/dist/drawer.cjs +6 -0
  130. package/dist/drawer.cjs.map +1 -0
  131. package/dist/drawer.js +6 -0
  132. package/dist/drawer.js.map +1 -0
  133. package/dist/index.cjs +175 -88
  134. package/dist/index.cjs.map +1 -1
  135. package/dist/index.js +186 -99
  136. package/dist/index.js.map +1 -1
  137. package/dist/menu.cjs +6 -0
  138. package/dist/menu.cjs.map +1 -0
  139. package/dist/menu.js +6 -0
  140. package/dist/menu.js.map +1 -0
  141. package/dist/pagination.cjs +6 -0
  142. package/dist/pagination.cjs.map +1 -0
  143. package/dist/pagination.js +6 -0
  144. package/dist/pagination.js.map +1 -0
  145. package/dist/progress-bar.cjs +6 -0
  146. package/dist/progress-bar.cjs.map +1 -0
  147. package/dist/progress-bar.js +6 -0
  148. package/dist/progress-bar.js.map +1 -0
  149. package/dist/select.cjs +1 -1
  150. package/dist/select.cjs.map +1 -1
  151. package/dist/select.js +2 -2
  152. package/dist/select.js.map +1 -1
  153. package/dist/spinner.cjs +6 -0
  154. package/dist/spinner.cjs.map +1 -0
  155. package/dist/spinner.js +6 -0
  156. package/dist/spinner.js.map +1 -0
  157. package/dist/textarea.cjs +5 -0
  158. package/dist/textarea.cjs.map +1 -0
  159. package/dist/textarea.js +5 -0
  160. package/dist/textarea.js.map +1 -0
  161. package/dist/tooltip.cjs +6 -0
  162. package/dist/tooltip.cjs.map +1 -0
  163. package/dist/tooltip.js +6 -0
  164. package/dist/tooltip.js.map +1 -0
  165. package/dist/tree.cjs +6 -0
  166. package/dist/tree.cjs.map +1 -0
  167. package/dist/tree.js +6 -0
  168. package/dist/tree.js.map +1 -0
  169. package/dist/types/aeico-field.d.ts +52 -0
  170. package/dist/types/alert/alert.d.ts +1 -0
  171. package/dist/types/copy-button/copy-button.d.ts +32 -0
  172. package/dist/types/copy-button/defines.d.ts +1 -0
  173. package/dist/types/copy-button/index.d.ts +3 -0
  174. package/dist/types/detail/defines.d.ts +1 -0
  175. package/dist/types/detail/detail.d.ts +3 -1
  176. package/dist/types/detail/index.d.ts +1 -1
  177. package/dist/types/detail-group/detail-group.d.ts +39 -0
  178. package/dist/types/detail-group/index.d.ts +2 -0
  179. package/dist/types/drawer/defines.d.ts +1 -0
  180. package/dist/types/drawer/drawer.d.ts +31 -0
  181. package/dist/types/drawer/index.d.ts +3 -0
  182. package/dist/types/icon/built-in-icons.d.ts +1 -0
  183. package/dist/types/icon/icon.d.ts +1 -0
  184. package/dist/types/icon/registry.d.ts +8 -0
  185. package/dist/types/index.d.ts +17 -0
  186. package/dist/types/menu/defines.d.ts +15 -0
  187. package/dist/types/menu/index.d.ts +5 -0
  188. package/dist/types/menu/menu-item.d.ts +63 -0
  189. package/dist/types/menu/menu.d.ts +34 -0
  190. package/dist/types/number-input/index.d.ts +2 -0
  191. package/dist/types/number-input/number-input.d.ts +35 -0
  192. package/dist/types/pagination/defines.d.ts +2 -0
  193. package/dist/types/pagination/index.d.ts +3 -0
  194. package/dist/types/pagination/pagination.d.ts +77 -0
  195. package/dist/types/select/select.d.ts +2 -2
  196. package/dist/types/spinner/defines.d.ts +3 -0
  197. package/dist/types/spinner/index.d.ts +3 -0
  198. package/dist/types/spinner/spinner.d.ts +35 -0
  199. package/dist/types/switch/defines.d.ts +1 -0
  200. package/dist/types/switch/switch.d.ts +8 -4
  201. package/dist/types/text-input/text-input.d.ts +0 -4
  202. package/dist/types/textarea/index.d.ts +1 -0
  203. package/dist/types/textarea/textarea.d.ts +26 -0
  204. package/dist/types/tooltip/defines.d.ts +2 -0
  205. package/dist/types/tooltip/index.d.ts +4 -0
  206. package/dist/types/tooltip/tooltip.d.ts +48 -0
  207. package/dist/types/tree/defines.d.ts +23 -0
  208. package/dist/types/tree/index.d.ts +5 -0
  209. package/dist/types/tree/tree-item.d.ts +54 -0
  210. package/dist/types/tree/tree.d.ts +64 -0
  211. package/package.json +5 -5
  212. package/src/aeico-field.ts +142 -7
  213. package/src/alert/alert.ts +3 -2
  214. package/src/checkbox/checkbox.ts +17 -2
  215. package/src/copy-button/copy-button.ts +146 -0
  216. package/src/copy-button/defines.ts +5 -0
  217. package/src/copy-button/index.ts +3 -0
  218. package/src/detail/defines.ts +1 -0
  219. package/src/detail/detail.ts +5 -1
  220. package/src/detail/index.ts +1 -1
  221. package/src/detail-group/detail-group.ts +104 -0
  222. package/src/detail-group/index.ts +2 -0
  223. package/src/drawer/defines.ts +1 -0
  224. package/src/drawer/drawer.ts +157 -0
  225. package/src/drawer/index.ts +3 -0
  226. package/src/icon/built-in-icons.ts +21 -0
  227. package/src/icon/icon.ts +1 -0
  228. package/src/icon/registry.ts +22 -0
  229. package/src/index.ts +30 -0
  230. package/src/menu/defines.ts +17 -0
  231. package/src/menu/index.ts +5 -0
  232. package/src/menu/menu-item.ts +315 -0
  233. package/src/menu/menu.ts +81 -0
  234. package/src/number-input/index.ts +2 -0
  235. package/src/number-input/number-input.ts +137 -0
  236. package/src/pagination/defines.ts +2 -0
  237. package/src/pagination/index.ts +3 -0
  238. package/src/pagination/pagination.ts +310 -0
  239. package/src/radio-group/radio-group.ts +11 -4
  240. package/src/select/select.ts +111 -70
  241. package/src/slider/slider.ts +9 -2
  242. package/src/spinner/defines.ts +12 -0
  243. package/src/spinner/index.ts +3 -0
  244. package/src/spinner/spinner.ts +81 -0
  245. package/src/styles/components/action-button.css +37 -0
  246. package/src/styles/components/checkbox.css +4 -26
  247. package/src/styles/components/copy-button.css +119 -0
  248. package/src/styles/components/detail-group.css +10 -0
  249. package/src/styles/components/detail.css +10 -1
  250. package/src/styles/components/drawer.css +161 -0
  251. package/src/styles/components/field-label.css +120 -0
  252. package/src/styles/components/menu-item.css +168 -0
  253. package/src/styles/components/menu.css +17 -0
  254. package/src/styles/components/number-input.css +167 -0
  255. package/src/styles/components/pagination.css +205 -0
  256. package/src/styles/components/radio-group.css +0 -23
  257. package/src/styles/components/select.css +12 -39
  258. package/src/styles/components/slider.css +0 -42
  259. package/src/styles/components/spinner.css +80 -0
  260. package/src/styles/components/switch.css +68 -19
  261. package/src/styles/components/tab-panel.css +1 -1
  262. package/src/styles/components/tabs.css +1 -0
  263. package/src/styles/components/text-input.css +7 -45
  264. package/src/styles/components/textarea.css +75 -0
  265. package/src/styles/components/tooltip.css +103 -0
  266. package/src/styles/components/tree-item.css +152 -0
  267. package/src/styles/components/tree.css +10 -0
  268. package/src/styles/layout.css +457 -25
  269. package/src/switch/defines.ts +1 -0
  270. package/src/switch/switch.ts +61 -12
  271. package/src/text-input/text-input.ts +10 -15
  272. package/src/textarea/index.ts +1 -0
  273. package/src/textarea/textarea.ts +107 -0
  274. package/src/tooltip/defines.ts +11 -0
  275. package/src/tooltip/index.ts +4 -0
  276. package/src/tooltip/tooltip.ts +183 -0
  277. package/src/tree/defines.ts +26 -0
  278. package/src/tree/index.ts +5 -0
  279. package/src/tree/tree-item.ts +258 -0
  280. package/src/tree/tree.ts +237 -0
  281. package/dist/chunks/aeico-field.cjs +0 -179
  282. package/dist/chunks/aeico-field.cjs.map +0 -1
  283. package/dist/chunks/aeico-field.js +0 -180
  284. package/dist/chunks/aeico-field.js.map +0 -1
@@ -0,0 +1,81 @@
1
+ import AeicoComponent from '../aeico-component';
2
+ import type { InferProps } from 'aeico';
3
+ import { html, prop } from 'aeico';
4
+ import styleVariables from '../styles/variables.css?inline';
5
+ import sizeCSS from '../styles/size.css?inline';
6
+ import colorCSS from '../styles/color.css?inline';
7
+ import style from '../styles/components/spinner.css?inline';
8
+ import type { SpinnerColor, SpinnerSize, SpinnerVariant } from './defines';
9
+
10
+ /**
11
+ * Spinner — animated loading indicator.
12
+ *
13
+ * Supports two visual variants: a rotating ring (`border`, default) and
14
+ * three bouncing dots (`dots`). Size and colour are driven by the shared
15
+ * design-token system.
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <ae-spinner></ae-spinner>
20
+ * <ae-spinner variant="dots" color="primary" size="lg"></ae-spinner>
21
+ * <ae-spinner color="success" speed="0.5s" label="Saving…"></ae-spinner>
22
+ * ```
23
+ */
24
+ class Spinner extends AeicoComponent {
25
+ static tagName = 'spinner';
26
+
27
+ @prop({ type: String })
28
+ accessor variant: SpinnerVariant = 'border';
29
+
30
+ @prop({ type: String })
31
+ accessor size: SpinnerSize = 'md';
32
+
33
+ @prop({ type: String })
34
+ accessor color: SpinnerColor = 'default';
35
+
36
+ @prop({ type: String })
37
+ accessor label: string = 'Loading…';
38
+
39
+ @prop({ type: String })
40
+ accessor speed: string | undefined;
41
+
42
+ protected static styles = [styleVariables, sizeCSS, colorCSS, style];
43
+
44
+ connectedCallback() {
45
+ super.connectedCallback();
46
+ this.setAttribute('role', 'status');
47
+ }
48
+
49
+ protected render() {
50
+ this.setAttribute('aria-label', this.label);
51
+
52
+ if (this.speed) {
53
+ this.style.setProperty('--spinner-speed', this.speed);
54
+ } else {
55
+ this.style.removeProperty('--spinner-speed');
56
+ }
57
+
58
+ const isDots = this.variant === 'dots';
59
+
60
+ return html(({ span }) => {
61
+ span({ part: 'track', className: 'track', 'aria-hidden': 'true' }, () => {
62
+ if (isDots) {
63
+ span({ className: 'dot' });
64
+ span({ className: 'dot' });
65
+ span({ className: 'dot' });
66
+ }
67
+ });
68
+ });
69
+ }
70
+ }
71
+
72
+ Spinner.register();
73
+
74
+ declare global {
75
+ interface HTMLElementTagNameMap {
76
+ 'ae-spinner': Spinner;
77
+ }
78
+ }
79
+
80
+ export default Spinner;
81
+ export type SpinnerProps = InferProps<typeof Spinner>;
@@ -0,0 +1,37 @@
1
+ /* Action button base styles — shared by clear-btn and reset-btn (standalone mode) */
2
+ .clear-btn:not(.action-btn),
3
+ .reset-btn:not(.action-btn) {
4
+ width: 1.333em;
5
+ height: 1.333em;
6
+ border: none;
7
+ cursor: pointer;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ flex-shrink: 0;
12
+ line-height: 1;
13
+ }
14
+
15
+ .clear-btn:not(.action-btn) {
16
+ border-radius: var(--clear-btn-border-radius);
17
+ background: var(--clear-btn-bg);
18
+ color: var(--clear-btn-color);
19
+ transition: var(--clear-btn-transition);
20
+ }
21
+
22
+ .reset-btn:not(.action-btn) {
23
+ border-radius: var(--reset-btn-border-radius);
24
+ background: var(--reset-btn-bg);
25
+ color: var(--reset-btn-color);
26
+ transition: var(--reset-btn-transition);
27
+ }
28
+
29
+ .clear-btn:not(.action-btn):hover {
30
+ background: var(--clear-btn-bg-hover);
31
+ color: var(--clear-btn-color-hover);
32
+ }
33
+
34
+ .reset-btn:not(.action-btn):hover {
35
+ background: var(--reset-btn-bg-hover);
36
+ color: var(--reset-btn-color-hover);
37
+ }
@@ -49,30 +49,8 @@
49
49
  cursor: not-allowed;
50
50
  }
51
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);
52
+ /* Error state */
53
+ :host([error]) .field-input {
54
+ outline: 2px solid var(--field-error-color, var(--red));
55
+ outline-offset: 1px;
78
56
  }
@@ -0,0 +1,119 @@
1
+ :host {
2
+ display: inline-block;
3
+ --btn-solid-bg: var(--color-solid);
4
+ --btn-solid-bg-hover: var(--color-solid-hover);
5
+ --btn-solid-bg-active: var(--color-solid-active);
6
+ --btn-solid-color: var(--color-on-solid);
7
+ --btn-solid-color-hover: var(--color-on-solid-hover);
8
+ --btn-border: var(--color-border);
9
+ --btn-border-hover: var(--color-border-hover);
10
+ --btn-accent: var(--color-accent);
11
+ --btn-accent-hover: var(--color-accent-hover);
12
+ --btn-subtle-bg: var(--color-subtle);
13
+ --btn-subtle-bg-hover: var(--color-subtle-hover);
14
+ }
15
+
16
+ button {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ gap: 6px;
21
+ font-family: inherit;
22
+ font-weight: 400;
23
+ text-align: center;
24
+ white-space: nowrap;
25
+ vertical-align: middle;
26
+ user-select: none;
27
+ cursor: pointer;
28
+ transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
29
+ outline: none;
30
+ position: relative;
31
+ padding: 0.429em 0.571em;
32
+ font-size: 1em;
33
+ line-height: 1.5;
34
+ border-radius: 4px;
35
+ height: 2.286em;
36
+ width: 2.286em;
37
+ min-width: unset;
38
+
39
+ background: var(--btn-solid-bg);
40
+ border: 1px solid var(--btn-solid-bg);
41
+ color: var(--btn-solid-color);
42
+ }
43
+
44
+ button:focus { outline: none; }
45
+ button:active { transform: translateY(1px); }
46
+
47
+ button:hover:not(:disabled) {
48
+ background: var(--btn-solid-bg-hover);
49
+ border-color: var(--btn-border-hover);
50
+ color: var(--btn-solid-color-hover, var(--btn-solid-color));
51
+ }
52
+
53
+ button:active:not(:disabled) { background: var(--btn-solid-bg-active); }
54
+
55
+ button:disabled {
56
+ opacity: 0.5;
57
+ cursor: not-allowed;
58
+ }
59
+
60
+ /* Hide the fallback-text slot */
61
+ slot { display: none; }
62
+
63
+ /* Icon visibility */
64
+ .icon-copy,
65
+ .icon-check {
66
+ position: absolute;
67
+ inset: 0;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ transition: opacity 0.15s ease, transform 0.15s ease;
72
+ }
73
+
74
+ .icon-copy { opacity: 1; transform: scale(1); }
75
+ .icon-check { opacity: 0; transform: scale(0.6); }
76
+
77
+ :host([copied]) .icon-copy { opacity: 0; transform: scale(0.6); }
78
+ :host([copied]) .icon-check { opacity: 1; transform: scale(1); }
79
+
80
+ /* Variants */
81
+ :host([variant="outlined"]) button {
82
+ background: transparent;
83
+ border-color: var(--btn-border);
84
+ color: var(--btn-accent);
85
+ }
86
+ :host([variant="outlined"]) button:hover:not(:disabled) {
87
+ background: var(--btn-subtle-bg);
88
+ border-color: var(--btn-border-hover);
89
+ color: var(--btn-accent-hover);
90
+ }
91
+
92
+ :host([variant="faint"]) button {
93
+ background: var(--btn-subtle-bg);
94
+ border-color: transparent;
95
+ color: var(--btn-accent);
96
+ }
97
+ :host([variant="faint"]) button:hover:not(:disabled) {
98
+ background: var(--btn-subtle-bg-hover);
99
+ color: var(--btn-accent-hover);
100
+ }
101
+
102
+ :host([variant="subtle"]) button {
103
+ background: transparent;
104
+ border-color: transparent;
105
+ color: var(--btn-accent);
106
+ }
107
+ :host([variant="subtle"]) button:hover:not(:disabled) {
108
+ background: var(--btn-subtle-bg);
109
+ color: var(--btn-accent-hover);
110
+ }
111
+
112
+ :host([variant="text"]) button {
113
+ background: transparent;
114
+ border-color: transparent;
115
+ color: var(--btn-accent);
116
+ }
117
+ :host([variant="text"]) button:hover:not(:disabled) {
118
+ color: var(--btn-accent-hover);
119
+ }
@@ -0,0 +1,10 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ /* Raise hovered/focused item so its border shows above neighbours */
6
+ ::slotted(ae-detail:hover),
7
+ ::slotted(ae-detail:focus-within) {
8
+ position: relative;
9
+ z-index: 1;
10
+ }
@@ -43,7 +43,11 @@
43
43
 
44
44
  .detail {
45
45
  border: 1px solid var(--detail-border);
46
- border-radius: var(--detail-radius);
46
+ border-radius:
47
+ var(--detail-r-tl, var(--detail-radius))
48
+ var(--detail-r-tr, var(--detail-radius))
49
+ var(--detail-r-br, var(--detail-radius))
50
+ var(--detail-r-bl, var(--detail-radius));
47
51
  color: var(--detail-color);
48
52
  background: var(--detail-bg);
49
53
  overflow: hidden;
@@ -93,6 +97,11 @@ slot[name="collapse"] {
93
97
  flex-shrink: 0;
94
98
  }
95
99
 
100
+ :host([icon-placement="start"]) slot[name="expand"],
101
+ :host([icon-placement="start"]) slot[name="collapse"] {
102
+ order: -1;
103
+ }
104
+
96
105
  slot[name="collapse"] {
97
106
  display: none;
98
107
  }
@@ -0,0 +1,161 @@
1
+ /**
2
+ * :host is placed in the light DOM. Setting position:fixed on it guarantees
3
+ * viewport-level coverage regardless of any z-index stacking inside the page.
4
+ */
5
+ :host {
6
+ display: none;
7
+ }
8
+
9
+ :host([data-open]) {
10
+ display: block;
11
+ position: fixed;
12
+ inset: 0;
13
+ z-index: var(--ae-drawer-z-index, 1000);
14
+ /* Host covers the viewport but passes pointer events through by default.
15
+ Backdrop and panel re-enable them selectively. */
16
+ pointer-events: none;
17
+ }
18
+
19
+ /* ── Backdrop ────────────────────────────────────────────────────── */
20
+ .backdrop {
21
+ position: absolute;
22
+ inset: 0;
23
+ background: var(--color-overlay);
24
+ animation: drawer-backdrop-in 0.2s ease;
25
+ pointer-events: auto;
26
+ }
27
+
28
+ /* ── Panel ───────────────────────────────────────────────────────── */
29
+ .panel {
30
+ position: absolute;
31
+ display: flex;
32
+ flex-direction: column;
33
+ background: var(--surface-overlay);
34
+ color: var(--color-text-main);
35
+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
36
+ overflow: hidden;
37
+ pointer-events: auto;
38
+ outline: none;
39
+ }
40
+
41
+ /* ── Placements ──────────────────────────────────────────────────── */
42
+ .panel.placement-right {
43
+ inset: 0 0 0 auto;
44
+ width: var(--ae-drawer-size, 320px);
45
+ max-width: 100%;
46
+ border-radius: 8px 0 0 8px;
47
+ animation: drawer-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
48
+ }
49
+
50
+ .panel.placement-left {
51
+ inset: 0 auto 0 0;
52
+ width: var(--ae-drawer-size, 320px);
53
+ max-width: 100%;
54
+ border-radius: 0 8px 8px 0;
55
+ animation: drawer-slide-in-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
56
+ }
57
+
58
+ .panel.placement-top {
59
+ inset: 0 0 auto 0;
60
+ height: var(--ae-drawer-size, 320px);
61
+ max-height: 100%;
62
+ border-radius: 0 0 8px 8px;
63
+ animation: drawer-slide-in-top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
64
+ }
65
+
66
+ .panel.placement-bottom {
67
+ inset: auto 0 0 0;
68
+ height: var(--ae-drawer-size, 320px);
69
+ max-height: 100%;
70
+ border-radius: 8px 8px 0 0;
71
+ animation: drawer-slide-in-bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
72
+ }
73
+
74
+ /* ── Keyframes ───────────────────────────────────────────────────── */
75
+ @keyframes drawer-backdrop-in {
76
+ from { opacity: 0; }
77
+ to { opacity: 1; }
78
+ }
79
+
80
+ @keyframes drawer-slide-in-right {
81
+ from { transform: translateX(100%); }
82
+ to { transform: translateX(0); }
83
+ }
84
+
85
+ @keyframes drawer-slide-in-left {
86
+ from { transform: translateX(-100%); }
87
+ to { transform: translateX(0); }
88
+ }
89
+
90
+ @keyframes drawer-slide-in-top {
91
+ from { transform: translateY(-100%); }
92
+ to { transform: translateY(0); }
93
+ }
94
+
95
+ @keyframes drawer-slide-in-bottom {
96
+ from { transform: translateY(100%); }
97
+ to { transform: translateY(0); }
98
+ }
99
+
100
+ /* ── Header ──────────────────────────────────────────────────────── */
101
+ header {
102
+ display: flex;
103
+ align-items: center;
104
+ gap: 8px;
105
+ padding: 16px 20px;
106
+ border-bottom: 1px solid var(--border-subtle);
107
+ flex-shrink: 0;
108
+ }
109
+
110
+ .label {
111
+ flex: 1;
112
+ font-size: var(--size-m, 1rem);
113
+ font-weight: 500;
114
+ margin: 0;
115
+ color: var(--color-text-main);
116
+ }
117
+
118
+ .close-btn {
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ flex-shrink: 0;
123
+ width: 28px;
124
+ height: 28px;
125
+ padding: 0;
126
+ border: none;
127
+ border-radius: 4px;
128
+ background: transparent;
129
+ color: var(--color-text-muted);
130
+ font-size: 18px;
131
+ line-height: 1;
132
+ cursor: pointer;
133
+ transition: background 0.15s, color 0.15s;
134
+ }
135
+
136
+ .close-btn:hover {
137
+ background: var(--border-subtle);
138
+ color: var(--color-text-main);
139
+ }
140
+
141
+ /* ── Body ────────────────────────────────────────────────────────── */
142
+ .body {
143
+ flex: 1;
144
+ overflow-y: auto;
145
+ padding: 20px;
146
+ }
147
+
148
+ /* ── Footer ──────────────────────────────────────────────────────── */
149
+ footer {
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: flex-end;
153
+ gap: 8px;
154
+ padding: 12px 20px;
155
+ border-top: 1px solid var(--border-subtle);
156
+ flex-shrink: 0;
157
+ }
158
+
159
+ ::slotted([data-align-left]) {
160
+ margin-right: auto;
161
+ }
@@ -0,0 +1,120 @@
1
+ :host {
2
+ --field-label-gap: 4px;
3
+ --field-label-col-gap: 8px;
4
+ --field-label-width: 100px;
5
+ --field-label-font-size: 0.875em;
6
+ --field-label-color: inherit;
7
+ --field-required-color: var(--red, #dc3545);
8
+ --field-helper-color: var(--color-text-muted, #6e6e6e);
9
+ --field-error-color: var(--red, #dc3545);
10
+ }
11
+
12
+ :host([label]) {
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: stretch;
16
+ gap: var(--field-label-gap);
17
+ }
18
+
19
+ :host([label][label-placement="left"]) {
20
+ display: grid;
21
+ grid-template-columns: var(--field-label-width) 1fr;
22
+ column-gap: var(--field-label-col-gap);
23
+ row-gap: var(--field-label-gap);
24
+ align-items: start;
25
+ }
26
+
27
+ :host([label][label-placement="left"]) .field-label {
28
+ align-self: center;
29
+ }
30
+
31
+ :host([label][label-placement="left"]) .field-helper,
32
+ :host([label][label-placement="left"]) .field-error {
33
+ grid-column: 2;
34
+ }
35
+
36
+ .field-label {
37
+ font-size: var(--field-label-font-size);
38
+ color: var(--field-label-color);
39
+ user-select: none;
40
+ line-height: 1.4;
41
+ }
42
+
43
+ .field-required {
44
+ color: var(--field-required-color);
45
+ margin-left: 2px;
46
+ }
47
+
48
+ .field-helper {
49
+ font-size: 0.8em;
50
+ color: var(--field-helper-color);
51
+ line-height: 1.4;
52
+ }
53
+
54
+ .field-error {
55
+ font-size: 0.8em;
56
+ color: var(--field-error-color);
57
+ line-height: 1.4;
58
+ }
59
+
60
+ /* Action controls container (integrated style) */
61
+ .action-controls {
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: stretch;
65
+ margin-left: calc(-1 * var(--field-action-gap, 4px) - 1px);
66
+ border: var(--field-action-border-width, 1px) solid var(--field-action-border-color, var(--border-subtle));
67
+ border-radius: 0 var(--field-action-border-radius, 2px) var(--field-action-border-radius, 2px) 0;
68
+ overflow: hidden;
69
+ flex-shrink: 0;
70
+ transition: border-color 0.12s;
71
+ background: var(--field-action-bg, var(--surface-base));
72
+ position: relative;
73
+ z-index: 1;
74
+ align-self: stretch;
75
+ }
76
+
77
+ .action-controls .action-btn {
78
+ border: none;
79
+ background: transparent;
80
+ color: var(--field-action-color, var(--color-text-muted));
81
+ font-size: 0.875em;
82
+ line-height: 1;
83
+ cursor: pointer;
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: center;
87
+ padding: 0 0.5em;
88
+ transition: background 0.12s;
89
+ }
90
+
91
+ .action-controls .action-btn:hover:not(:disabled) {
92
+ background: var(--field-action-bg-hover, var(--surface-raised));
93
+ }
94
+
95
+ .action-controls .action-btn:active:not(:disabled) {
96
+ background: var(--field-action-bg-focus, var(--surface-raised));
97
+ }
98
+
99
+ .action-controls .action-btn:disabled {
100
+ opacity: 0.5;
101
+ cursor: not-allowed;
102
+ }
103
+
104
+ .action-controls .action-btn + .action-btn {
105
+ border-left: var(--field-action-border-width, 1px) solid var(--field-action-border-color, var(--border-subtle));
106
+ }
107
+
108
+ .input-container:has(input:focus) ~ .action-controls,
109
+ .input-container:has(input:focus) .action-controls,
110
+ .container:has(.trigger.open) ~ .action-controls,
111
+ .container:has(.trigger.open) .action-controls {
112
+ border-color: var(--field-action-border-color-focus, var(--border-focus));
113
+ }
114
+
115
+ .input-container:has(input:hover:not(:focus)) ~ .action-controls,
116
+ .input-container:has(input:hover:not(:focus)) .action-controls,
117
+ .container:has(.trigger:hover:not(.disabled)) ~ .action-controls,
118
+ .container:has(.trigger:hover:not(.disabled)) .action-controls {
119
+ border-color: var(--field-action-border-color-hover, var(--border-default));
120
+ }