@arclux/arc-ui 1.2.0 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "ARC UI — Lit Web Components implementing the Arclight design system.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -4,6 +4,7 @@ import { tokenStyles } from '../shared-styles.js';
4
4
  export class ArcBadge extends LitElement {
5
5
  static properties = {
6
6
  variant: { type: String, reflect: true },
7
+ color: { type: String },
7
8
  };
8
9
 
9
10
  static styles = [
@@ -15,11 +16,11 @@ export class ArcBadge extends LitElement {
15
16
  display: inline-flex;
16
17
  align-items: center;
17
18
  gap: var(--space-xs);
18
- font-family: var(--font-accent);
19
- font-weight: 600;
19
+ font-family: var(--font-mono);
20
+ font-weight: 500;
20
21
  font-size: var(--text-xs);
21
- letter-spacing: 2px;
22
- text-transform: uppercase;
22
+ letter-spacing: normal;
23
+ text-transform: none;
23
24
  color: var(--text-muted);
24
25
  padding: var(--space-xs) var(--space-sm);
25
26
  border: 1px solid var(--border-default);
@@ -88,10 +89,18 @@ export class ArcBadge extends LitElement {
88
89
  constructor() {
89
90
  super();
90
91
  this.variant = 'default';
92
+ this.color = '';
91
93
  }
92
94
 
93
95
  render() {
94
- return html`<span class="badge" part="badge"><slot></slot></span>`;
96
+ const colorStyle = this.color
97
+ ? `border-color: rgba(${this.color}, 0.2); color: rgb(${this.color}); background: rgba(${this.color}, 0.06);`
98
+ : '';
99
+
100
+ return html`<span class="badge" part="badge" style=${colorStyle}
101
+ @mouseenter=${this.color ? (e) => { e.currentTarget.style.boxShadow = `0 0 12px rgba(${this.color}, 0.15)`; } : null}
102
+ @mouseleave=${this.color ? (e) => { e.currentTarget.style.boxShadow = ''; } : null}
103
+ ><slot></slot></span>`;
95
104
  }
96
105
  }
97
106
 
@@ -25,13 +25,12 @@ export class ArcTag extends LitElement {
25
25
  letter-spacing: 2px;
26
26
  text-transform: uppercase;
27
27
  color: var(--text-muted);
28
- padding: var(--space-xs) calc(var(--space-sm) + var(--space-xs));
28
+ padding: var(--space-sm) calc(var(--space-sm) + var(--space-xs));
29
29
  border: 1px solid var(--border-default);
30
30
  border-radius: var(--radius-full);
31
31
  background: var(--bg-hover);
32
32
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
33
33
  line-height: 1.4;
34
- min-height: var(--touch-min);
35
34
  }
36
35
 
37
36
  :host([variant="primary"]) .tag {
@@ -81,11 +81,11 @@ export class ArcToggle extends LitElement {
81
81
  }
82
82
 
83
83
  .toggle__label {
84
- font-family: var(--font-accent);
85
- font-size: var(--text-xs);
86
- font-weight: 600;
87
- letter-spacing: 1px;
88
- text-transform: uppercase;
84
+ font-family: var(--font-body);
85
+ font-size: var(--body-size);
86
+ font-weight: 400;
87
+ letter-spacing: normal;
88
+ text-transform: none;
89
89
  color: var(--text-muted);
90
90
  user-select: none;
91
91
  }