@arclux/arc-ui 1.0.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.
Files changed (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -0
  3. package/package.json +186 -0
  4. package/src/content/accordion-item.js +27 -0
  5. package/src/content/accordion.js +151 -0
  6. package/src/content/animated-number.js +160 -0
  7. package/src/content/aspect-ratio.js +78 -0
  8. package/src/content/avatar-group.js +101 -0
  9. package/src/content/avatar.js +92 -0
  10. package/src/content/badge.js +98 -0
  11. package/src/content/callout.js +141 -0
  12. package/src/content/card.js +75 -0
  13. package/src/content/carousel.js +300 -0
  14. package/src/content/code-block.js +152 -0
  15. package/src/content/collapsible.js +142 -0
  16. package/src/content/color-swatch.js +86 -0
  17. package/src/content/column.js +28 -0
  18. package/src/content/data-table.js +332 -0
  19. package/src/content/divider.js +153 -0
  20. package/src/content/empty-state.js +78 -0
  21. package/src/content/feature-card.js +142 -0
  22. package/src/content/highlight.js +63 -0
  23. package/src/content/icon-library.js +30 -0
  24. package/src/content/icon-registry.js +39 -0
  25. package/src/content/icon.js +95 -0
  26. package/src/content/index.js +44 -0
  27. package/src/content/infinite-scroll.js +144 -0
  28. package/src/content/kbd.js +40 -0
  29. package/src/content/markdown.js +294 -0
  30. package/src/content/marquee.js +166 -0
  31. package/src/content/meter.js +167 -0
  32. package/src/content/scroll-area.js +107 -0
  33. package/src/content/skeleton.js +85 -0
  34. package/src/content/spinner.js +77 -0
  35. package/src/content/stack.js +68 -0
  36. package/src/content/stat.js +72 -0
  37. package/src/content/step.js +22 -0
  38. package/src/content/stepper.js +202 -0
  39. package/src/content/table.js +134 -0
  40. package/src/content/tag.js +156 -0
  41. package/src/content/text.js +111 -0
  42. package/src/content/timeline-item.js +29 -0
  43. package/src/content/timeline.js +170 -0
  44. package/src/content/truncate.js +161 -0
  45. package/src/content/value-card.js +94 -0
  46. package/src/feedback/alert.js +187 -0
  47. package/src/feedback/command-item.js +28 -0
  48. package/src/feedback/command-palette.js +346 -0
  49. package/src/feedback/context-menu.js +299 -0
  50. package/src/feedback/dialog.js +298 -0
  51. package/src/feedback/dropdown-menu.js +259 -0
  52. package/src/feedback/hover-card.js +186 -0
  53. package/src/feedback/index.js +17 -0
  54. package/src/feedback/modal.js +226 -0
  55. package/src/feedback/notification-panel.js +196 -0
  56. package/src/feedback/popover.js +184 -0
  57. package/src/feedback/progress.js +169 -0
  58. package/src/feedback/sheet.js +249 -0
  59. package/src/feedback/toast.js +207 -0
  60. package/src/feedback/tooltip.js +189 -0
  61. package/src/icons/lucide.d.ts +1915 -0
  62. package/src/icons/lucide.js +1915 -0
  63. package/src/icons/phosphor.d.ts +1517 -0
  64. package/src/icons/phosphor.js +1517 -0
  65. package/src/icons/types.d.ts +8 -0
  66. package/src/index.js +9 -0
  67. package/src/input/button.js +127 -0
  68. package/src/input/calendar.js +340 -0
  69. package/src/input/checkbox.js +159 -0
  70. package/src/input/chip.js +120 -0
  71. package/src/input/color-picker.js +461 -0
  72. package/src/input/combobox.js +295 -0
  73. package/src/input/copy-button.js +144 -0
  74. package/src/input/date-picker.js +534 -0
  75. package/src/input/file-upload.js +333 -0
  76. package/src/input/form.js +179 -0
  77. package/src/input/icon-button.js +179 -0
  78. package/src/input/index.js +31 -0
  79. package/src/input/input.js +158 -0
  80. package/src/input/multi-select.js +392 -0
  81. package/src/input/number-input.js +239 -0
  82. package/src/input/otp-input.js +221 -0
  83. package/src/input/pin-input.js +294 -0
  84. package/src/input/radio-group.js +177 -0
  85. package/src/input/radio.js +28 -0
  86. package/src/input/rating.js +195 -0
  87. package/src/input/search.js +371 -0
  88. package/src/input/segmented-control.js +174 -0
  89. package/src/input/select.js +267 -0
  90. package/src/input/slider.js +217 -0
  91. package/src/input/sortable-list.js +345 -0
  92. package/src/input/suggestion.js +26 -0
  93. package/src/input/textarea.js +203 -0
  94. package/src/input/theme-toggle.js +196 -0
  95. package/src/input/toggle.js +166 -0
  96. package/src/layout/app-shell.js +266 -0
  97. package/src/layout/auth-shell.js +153 -0
  98. package/src/layout/container.js +37 -0
  99. package/src/layout/dashboard-grid.js +62 -0
  100. package/src/layout/index.js +15 -0
  101. package/src/layout/page-header.js +100 -0
  102. package/src/layout/page-layout.js +112 -0
  103. package/src/layout/resizable.js +221 -0
  104. package/src/layout/section.js +54 -0
  105. package/src/layout/settings-layout.js +91 -0
  106. package/src/layout/split-pane.js +172 -0
  107. package/src/layout/status-bar.js +84 -0
  108. package/src/layout/toolbar.js +92 -0
  109. package/src/navigation/breadcrumb-item.js +26 -0
  110. package/src/navigation/breadcrumb.js +129 -0
  111. package/src/navigation/drawer.js +183 -0
  112. package/src/navigation/footer.js +99 -0
  113. package/src/navigation/index.js +22 -0
  114. package/src/navigation/link.js +120 -0
  115. package/src/navigation/nav-item.js +46 -0
  116. package/src/navigation/navigation-menu.js +687 -0
  117. package/src/navigation/pagination.js +186 -0
  118. package/src/navigation/scroll-spy.js +198 -0
  119. package/src/navigation/scroll-to-top.js +163 -0
  120. package/src/navigation/sidebar-link.js +28 -0
  121. package/src/navigation/sidebar-section.js +45 -0
  122. package/src/navigation/sidebar.js +336 -0
  123. package/src/navigation/spy-link.js +26 -0
  124. package/src/navigation/tab.js +26 -0
  125. package/src/navigation/tabs.js +202 -0
  126. package/src/navigation/top-bar.js +263 -0
  127. package/src/navigation/tree-item.js +38 -0
  128. package/src/navigation/tree-view.js +255 -0
  129. package/src/shared/index.js +6 -0
  130. package/src/shared/menu-divider.js +9 -0
  131. package/src/shared/menu-item.js +30 -0
  132. package/src/shared/option.js +31 -0
  133. package/src/shared-styles.js +81 -0
  134. package/src/tokens.js +445 -0
  135. package/types/index.d.ts +973 -0
@@ -0,0 +1,134 @@
1
+ import { LitElement, html, css } from 'lit';
2
+ import { tokenStyles } from '../shared-styles.js';
3
+
4
+ export class ArcTable extends LitElement {
5
+ static properties = {
6
+ columns: { type: Array },
7
+ rows: { type: Array },
8
+ striped: { type: Boolean, reflect: true },
9
+ compact: { type: Boolean, reflect: true },
10
+ };
11
+
12
+ static styles = [
13
+ tokenStyles,
14
+ css`
15
+ :host {
16
+ display: block;
17
+ font-family: var(--font-body);
18
+ font-size: var(--body-size);
19
+ }
20
+
21
+ .table-wrap {
22
+ overflow-x: auto;
23
+ border: 1px solid var(--border-subtle);
24
+ border-radius: var(--radius-md);
25
+ }
26
+
27
+ table {
28
+ width: 100%;
29
+ border-collapse: collapse;
30
+ font-size: var(--text-sm);
31
+ color: var(--text-primary);
32
+ }
33
+
34
+ thead {
35
+ background: var(--bg-elevated);
36
+ }
37
+
38
+ th {
39
+ text-align: left;
40
+ padding: var(--space-sm) var(--space-md);
41
+ font-family: var(--font-accent);
42
+ font-weight: 600;
43
+ font-size: var(--text-xs);
44
+ letter-spacing: 2px;
45
+ text-transform: uppercase;
46
+ color: var(--text-ghost);
47
+ border-bottom: 1px solid var(--border-default);
48
+ white-space: nowrap;
49
+ }
50
+
51
+ :host([compact]) th {
52
+ padding: var(--space-xs) var(--space-sm);
53
+ }
54
+
55
+ td {
56
+ padding: var(--space-sm) var(--space-md);
57
+ border-bottom: 1px solid var(--border-subtle);
58
+ color: var(--text-secondary);
59
+ line-height: 1.5;
60
+ font-size: var(--text-sm);
61
+ }
62
+
63
+ :host([compact]) td {
64
+ padding: var(--space-xs) var(--space-sm);
65
+ font-size: var(--text-sm);
66
+ }
67
+
68
+ tr:last-child td {
69
+ border-bottom: none;
70
+ }
71
+
72
+ :host([striped]) tbody tr:nth-child(odd) {
73
+ background: var(--bg-surface);
74
+ }
75
+
76
+ :host([striped]) tbody tr:nth-child(even) {
77
+ background: var(--bg-card);
78
+ }
79
+
80
+ tbody tr {
81
+ transition: background var(--transition-fast);
82
+ }
83
+
84
+ tbody tr:hover {
85
+ background: var(--bg-hover);
86
+ }
87
+
88
+ @media (prefers-reduced-motion: reduce) {
89
+ :host *,
90
+ :host *::before,
91
+ :host *::after {
92
+ animation-duration: 0.01ms !important;
93
+ animation-iteration-count: 1 !important;
94
+ transition-duration: 0.01ms !important;
95
+ }
96
+ }
97
+ `,
98
+ ];
99
+
100
+ constructor() {
101
+ super();
102
+ this.columns = [];
103
+ this.rows = [];
104
+ this.striped = false;
105
+ this.compact = false;
106
+ }
107
+
108
+ render() {
109
+ if (!this.columns.length) return '';
110
+
111
+ return html`
112
+ <div class="table-wrap" part="table-wrap">
113
+ <table part="table">
114
+ <thead part="head">
115
+ <tr>
116
+ ${this.columns.map(col => html`<th>${col}</th>`)}
117
+ </tr>
118
+ </thead>
119
+ <tbody part="body">
120
+ ${this.rows.map(row => html`
121
+ <tr part="row">
122
+ ${(Array.isArray(row) ? row : this.columns.map((_, i) => row[i])).map(
123
+ cell => html`<td part="cell">${cell ?? ''}</td>`
124
+ )}
125
+ </tr>
126
+ `)}
127
+ </tbody>
128
+ </table>
129
+ </div>
130
+ `;
131
+ }
132
+ }
133
+
134
+ customElements.define('arc-table', ArcTable);
@@ -0,0 +1,156 @@
1
+ import { LitElement, html, css } from 'lit';
2
+ import { tokenStyles } from '../shared-styles.js';
3
+
4
+ export class ArcTag extends LitElement {
5
+ static properties = {
6
+ variant: { type: String, reflect: true },
7
+ removable: { type: Boolean, reflect: true },
8
+ disabled: { type: Boolean, reflect: true },
9
+ };
10
+
11
+ static styles = [
12
+ tokenStyles,
13
+ css`
14
+ :host { display: inline-flex; }
15
+ :host([disabled]) { pointer-events: none; opacity: 0.4; }
16
+
17
+ .tag {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ gap: var(--space-xs);
21
+ font-family: var(--font-accent);
22
+ font-weight: 600;
23
+ font-size: var(--text-xs);
24
+ letter-spacing: 2px;
25
+ text-transform: uppercase;
26
+ color: var(--text-muted);
27
+ padding: var(--space-xs) calc(var(--space-sm) + var(--space-xs));
28
+ border: 1px solid var(--border-default);
29
+ border-radius: var(--radius-full);
30
+ background: var(--bg-hover);
31
+ transition: box-shadow var(--transition-base), border-color var(--transition-base);
32
+ line-height: 1.4;
33
+ min-height: var(--touch-min);
34
+ }
35
+
36
+ :host([variant="primary"]) .tag {
37
+ border-color: var(--accent-primary-border);
38
+ color: var(--accent-primary);
39
+ background: var(--accent-primary-subtle);
40
+ }
41
+
42
+ :host([variant="secondary"]) .tag {
43
+ border-color: var(--accent-secondary-border);
44
+ color: var(--accent-secondary);
45
+ background: var(--accent-secondary-subtle);
46
+ }
47
+
48
+ :host([variant="success"]) .tag {
49
+ border-color: rgba(var(--color-success-rgb), 0.2);
50
+ color: var(--color-success);
51
+ background: rgba(var(--color-success-rgb), 0.06);
52
+ }
53
+
54
+ :host([variant="warning"]) .tag {
55
+ border-color: rgba(var(--color-warning-rgb), 0.2);
56
+ color: var(--color-warning);
57
+ background: rgba(var(--color-warning-rgb), 0.06);
58
+ }
59
+
60
+ :host([variant="danger"]) .tag {
61
+ border-color: rgba(var(--color-error-rgb), 0.2);
62
+ color: var(--color-error);
63
+ background: rgba(var(--color-error-rgb), 0.06);
64
+ }
65
+
66
+ .tag:hover { border-color: var(--border-bright); }
67
+ :host([variant="primary"]) .tag:hover { box-shadow: 0 0 12px rgba(var(--accent-primary-rgb), 0.15); }
68
+ :host([variant="secondary"]) .tag:hover { box-shadow: 0 0 12px rgba(var(--accent-secondary-rgb), 0.15); }
69
+ :host([variant="success"]) .tag:hover { box-shadow: 0 0 12px rgba(var(--color-success-rgb), 0.15); }
70
+ :host([variant="warning"]) .tag:hover { box-shadow: 0 0 12px rgba(var(--color-warning-rgb), 0.15); }
71
+ :host([variant="danger"]) .tag:hover { box-shadow: 0 0 12px rgba(var(--color-error-rgb), 0.15); }
72
+
73
+ .tag__label {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ }
77
+
78
+ .tag__remove {
79
+ display: inline-flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ background: none;
83
+ border: none;
84
+ color: inherit;
85
+ cursor: pointer;
86
+ padding: var(--space-xs);
87
+ margin-left: var(--space-xs);
88
+ width: 24px;
89
+ height: 24px;
90
+ min-width: 24px;
91
+ border-radius: var(--radius-full);
92
+ opacity: 0.6;
93
+ transition: opacity var(--transition-fast), background var(--transition-fast);
94
+ }
95
+
96
+ .tag__remove:hover {
97
+ opacity: 1;
98
+ background: var(--bg-elevated);
99
+ }
100
+
101
+ .tag__remove:focus-visible {
102
+ outline: none;
103
+ box-shadow: var(--focus-glow);
104
+ }
105
+
106
+ @media (prefers-reduced-motion: reduce) {
107
+ :host *,
108
+ :host *::before,
109
+ :host *::after {
110
+ animation-duration: 0.01ms !important;
111
+ animation-iteration-count: 1 !important;
112
+ transition-duration: 0.01ms !important;
113
+ }
114
+ }
115
+ `,
116
+ ];
117
+
118
+ constructor() {
119
+ super();
120
+ this.variant = 'default';
121
+ this.removable = false;
122
+ this.disabled = false;
123
+ }
124
+
125
+ _remove(e) {
126
+ e.stopPropagation();
127
+ if (this.disabled) return;
128
+ this.dispatchEvent(new CustomEvent('arc-remove', {
129
+ bubbles: true,
130
+ composed: true,
131
+ }));
132
+ }
133
+
134
+ render() {
135
+ return html`
136
+ <span class="tag" part="tag">
137
+ <span class="tag__label" part="label"><slot></slot></span>
138
+ ${this.removable ? html`
139
+ <button
140
+ class="tag__remove"
141
+ @click=${this._remove}
142
+ aria-label="Remove tag"
143
+ tabindex=${this.disabled ? '-1' : '0'}
144
+ part="remove"
145
+ >
146
+ <svg width="10" height="10" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
147
+ <path d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"/>
148
+ </svg>
149
+ </button>
150
+ ` : ''}
151
+ </span>
152
+ `;
153
+ }
154
+ }
155
+
156
+ customElements.define('arc-tag', ArcTag);
@@ -0,0 +1,111 @@
1
+ import { LitElement, html, css } from 'lit';
2
+ import { tokenStyles } from '../shared-styles.js';
3
+
4
+ export class ArcText extends LitElement {
5
+ static properties = {
6
+ variant: { type: String, reflect: true },
7
+ as: { type: String },
8
+ };
9
+
10
+ static styles = [
11
+ tokenStyles,
12
+ css`
13
+ :host { display: block; }
14
+ :host([variant="accent"]),
15
+ :host([variant="code"]) { display: inline; }
16
+
17
+ .text--display {
18
+ font-size: var(--display-xl-size);
19
+ font-weight: var(--display-xl-weight);
20
+ letter-spacing: var(--display-xl-spacing);
21
+ line-height: 1.2;
22
+ padding-bottom: 0.1em;
23
+ background: var(--gradient-display-text);
24
+ -webkit-background-clip: text;
25
+ -webkit-text-fill-color: transparent;
26
+ background-clip: text;
27
+ }
28
+
29
+ .text--heading {
30
+ font-size: var(--heading-size);
31
+ font-weight: var(--heading-weight);
32
+ color: var(--text-primary);
33
+ line-height: 1.4;
34
+ text-wrap: balance;
35
+ margin-bottom: var(--space-md);
36
+ }
37
+
38
+ .text--body {
39
+ color: var(--text-secondary);
40
+ font-family: var(--font-body);
41
+ font-size: var(--body-size);
42
+ font-weight: var(--body-weight);
43
+ line-height: var(--body-lh);
44
+ text-wrap: balance;
45
+ }
46
+
47
+ .text--muted { color: var(--text-muted); }
48
+ .text--ghost { color: var(--text-ghost); }
49
+
50
+ .text--accent {
51
+ font-family: var(--font-accent);
52
+ font-weight: var(--ui-accent-weight);
53
+ font-size: var(--ui-accent-size);
54
+ letter-spacing: var(--ui-accent-spacing);
55
+ background: var(--gradient-accent-text);
56
+ -webkit-background-clip: text;
57
+ -webkit-text-fill-color: transparent;
58
+ background-clip: text;
59
+ filter: drop-shadow(0 0 12px var(--accent-primary-glow));
60
+ }
61
+
62
+ .text--label {
63
+ font-family: var(--font-accent);
64
+ font-weight: var(--section-title-weight);
65
+ font-size: var(--section-title-size);
66
+ letter-spacing: var(--section-title-spacing);
67
+ text-transform: uppercase;
68
+ color: var(--text-muted);
69
+ }
70
+
71
+ .text--wordmark {
72
+ font-weight: var(--wordmark-weight);
73
+ font-size: var(--wordmark-size);
74
+ letter-spacing: var(--wordmark-spacing);
75
+ text-transform: uppercase;
76
+ color: var(--text-primary);
77
+ text-shadow: 0 0 30px var(--accent-primary-glow);
78
+ }
79
+
80
+ .text--code {
81
+ font-family: var(--font-mono);
82
+ font-size: var(--code-size);
83
+ line-height: var(--code-lh);
84
+ color: var(--accent-secondary);
85
+ text-shadow: 0 0 14px rgba(var(--accent-secondary-rgb),0.3);
86
+ }
87
+ `,
88
+ ];
89
+
90
+ constructor() {
91
+ super();
92
+ this.variant = 'body';
93
+ this.as = 'p';
94
+ }
95
+
96
+ render() {
97
+ const tag = this.as;
98
+ switch (tag) {
99
+ case 'h1': return html`<h1 class="text--${this.variant}" part="text"><slot></slot></h1>`;
100
+ case 'h2': return html`<h2 class="text--${this.variant}" part="text"><slot></slot></h2>`;
101
+ case 'h3': return html`<h3 class="text--${this.variant}" part="text"><slot></slot></h3>`;
102
+ case 'h4': return html`<h4 class="text--${this.variant}" part="text"><slot></slot></h4>`;
103
+ case 'h5': return html`<h5 class="text--${this.variant}" part="text"><slot></slot></h5>`;
104
+ case 'h6': return html`<h6 class="text--${this.variant}" part="text"><slot></slot></h6>`;
105
+ case 'span': return html`<span class="text--${this.variant}" part="text"><slot></slot></span>`;
106
+ default: return html`<p class="text--${this.variant}" part="text"><slot></slot></p>`;
107
+ }
108
+ }
109
+ }
110
+
111
+ customElements.define('arc-text', ArcText);
@@ -0,0 +1,29 @@
1
+ import { LitElement, html, css } from 'lit';
2
+
3
+ export class ArcTimelineItem extends LitElement {
4
+ static properties = {
5
+ heading: { type: String, reflect: true },
6
+ date: { type: String, reflect: true },
7
+ };
8
+
9
+ static styles = css`
10
+ :host { display: none; }
11
+ `;
12
+
13
+ constructor() {
14
+ super();
15
+ this.heading = '';
16
+ this.date = '';
17
+ }
18
+
19
+ /** Description from slotted text content */
20
+ get description() {
21
+ return this.textContent.trim();
22
+ }
23
+
24
+ render() {
25
+ return html`<slot></slot>`;
26
+ }
27
+ }
28
+
29
+ customElements.define('arc-timeline-item', ArcTimelineItem);
@@ -0,0 +1,170 @@
1
+ import { LitElement, html, css } from 'lit';
2
+ import { tokenStyles } from '../shared-styles.js';
3
+ import './timeline-item.js';
4
+
5
+ export class ArcTimeline extends LitElement {
6
+ static properties = {
7
+ _items: { state: true },
8
+ };
9
+
10
+ static styles = [
11
+ tokenStyles,
12
+ css`
13
+ :host { display: block; }
14
+
15
+ .timeline {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 0;
19
+ padding: 0;
20
+ margin: 0;
21
+ list-style: none;
22
+ }
23
+
24
+ .timeline__item {
25
+ display: flex;
26
+ gap: var(--space-lg);
27
+ position: relative;
28
+ padding-bottom: var(--space-xl);
29
+ }
30
+
31
+ .timeline__item:last-child { padding-bottom: 0; }
32
+
33
+ .timeline__marker {
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ flex-shrink: 0;
38
+ width: 24px;
39
+ position: relative;
40
+ }
41
+
42
+ .timeline__dot {
43
+ width: 12px;
44
+ height: 12px;
45
+ border-radius: var(--radius-full);
46
+ background: var(--accent-primary);
47
+ border: 2px solid var(--bg-deep);
48
+ box-shadow:
49
+ 0 0 0 1px rgba(var(--accent-primary-rgb), 0.3),
50
+ 0 0 8px rgba(var(--accent-primary-rgb), 0.25);
51
+ flex-shrink: 0;
52
+ z-index: 1;
53
+ position: relative;
54
+ transition: box-shadow var(--transition-fast), transform var(--transition-fast);
55
+ }
56
+
57
+ .timeline__item:hover .timeline__dot {
58
+ box-shadow:
59
+ 0 0 0 2px rgba(var(--accent-primary-rgb), 0.4),
60
+ 0 0 14px rgba(var(--accent-primary-rgb), 0.4);
61
+ transform: scale(1.2);
62
+ }
63
+
64
+ .timeline__line {
65
+ position: absolute;
66
+ top: 16px;
67
+ bottom: calc(-1 * var(--space-xl));
68
+ left: 50%;
69
+ width: 1px;
70
+ transform: translateX(-50%);
71
+ background: linear-gradient(180deg, rgba(var(--accent-primary-rgb), 0.4), var(--border-default) 40%);
72
+ }
73
+
74
+ .timeline__item:last-child .timeline__line { display: none; }
75
+
76
+ .timeline__content {
77
+ flex: 1;
78
+ min-width: 0;
79
+ padding-top: 0;
80
+ }
81
+
82
+ .timeline__title {
83
+ margin: 0;
84
+ font-family: var(--font-accent);
85
+ font-size: var(--text-xs);
86
+ font-weight: 600;
87
+ letter-spacing: 1.5px;
88
+ text-transform: uppercase;
89
+ color: var(--text-primary);
90
+ line-height: 1.4;
91
+ transition: color var(--transition-fast);
92
+ }
93
+
94
+ .timeline__item:hover .timeline__title {
95
+ color: var(--accent-primary);
96
+ }
97
+
98
+ .timeline__desc {
99
+ margin: var(--space-sm) 0 0;
100
+ font-family: var(--font-body);
101
+ font-size: var(--text-sm);
102
+ line-height: 1.6;
103
+ color: var(--text-muted);
104
+ }
105
+
106
+ .timeline__date {
107
+ margin: var(--space-sm) 0 0;
108
+ font-family: var(--font-accent);
109
+ font-size: var(--text-xs);
110
+ font-weight: 600;
111
+ letter-spacing: 2px;
112
+ text-transform: uppercase;
113
+ color: var(--text-ghost);
114
+ }
115
+
116
+ .timeline__slot-host { display: none; }
117
+
118
+ @media (prefers-reduced-motion: reduce) {
119
+ :host *,
120
+ :host *::before,
121
+ :host *::after {
122
+ animation-duration: 0.01ms !important;
123
+ animation-iteration-count: 1 !important;
124
+ transition-duration: 0.01ms !important;
125
+ }
126
+ }
127
+ `,
128
+ ];
129
+
130
+ constructor() {
131
+ super();
132
+ this._items = [];
133
+ }
134
+
135
+ _onSlotChange(e) {
136
+ this._items = e.target.assignedElements({ flatten: true })
137
+ .filter(el => el.tagName === 'ARC-TIMELINE-ITEM');
138
+ }
139
+
140
+ render() {
141
+ return html`
142
+ <div class="timeline__slot-host">
143
+ <slot @slotchange=${this._onSlotChange}></slot>
144
+ </div>
145
+ <ol class="timeline" part="timeline" role="list">
146
+ ${this._items.map(
147
+ (item) => html`
148
+ <li class="timeline__item" part="item">
149
+ <div class="timeline__marker" part="marker">
150
+ <span class="timeline__dot" part="dot"></span>
151
+ <span class="timeline__line" part="line"></span>
152
+ </div>
153
+ <div class="timeline__content" part="content">
154
+ <h4 class="timeline__title" part="title">${item.heading || ''}</h4>
155
+ ${item.description
156
+ ? html`<p class="timeline__desc" part="description">${item.description}</p>`
157
+ : ''}
158
+ ${item.date
159
+ ? html`<time class="timeline__date" part="date">${item.date}</time>`
160
+ : ''}
161
+ </div>
162
+ </li>
163
+ `
164
+ )}
165
+ </ol>
166
+ `;
167
+ }
168
+ }
169
+
170
+ customElements.define('arc-timeline', ArcTimeline);