@atom63/widgets 0.1.0-beta.4 → 0.1.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom63/widgets",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "description": "The Atom63 widget foundation: widget units and scale, the widget card and surface, loading, empty and error states, and the hosted shell",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "lucide-react": "^1.70.0",
61
61
  "motion": "^14.14.0",
62
- "@atom63/ui-react": "0.2.0-beta.13"
62
+ "@atom63/ui-react": "0.2.0-beta.15"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "react": "^19.1.0",
@@ -84,6 +84,7 @@
84
84
  "typescript": "~6.0.3",
85
85
  "vitest": "5.1.1",
86
86
  "vitest-axe": "^0.1.0",
87
+ "playwright": "1.65.0",
87
88
  "@atom63/eslint-config": "0.1.0",
88
89
  "@atom63/tsconfig": "0.1.0"
89
90
  },
@@ -92,7 +93,7 @@
92
93
  "dev": "tsup --watch",
93
94
  "typecheck": "tsc --noEmit",
94
95
  "lint": "eslint . --cache --max-warnings 0",
95
- "test": "vitest run",
96
+ "test": "vitest run && vitest run --config vitest.cascade.config.ts",
96
97
  "test:watch": "vitest"
97
98
  }
98
99
  }
@@ -8,11 +8,16 @@
8
8
  --widget-avatar-dot: var(--a63-space-3_5);
9
9
  --widget-avatar-dot-inset: 6%;
10
10
  --widget-avatar-icon: calc(var(--a63-space-1) * 4.5);
11
+ --widget-avatar-ring: 2px;
12
+ /* Busy ring and outline (2px stroke + 2px offset) paint 4px outside the box. */
13
+ --widget-avatar-ring-outer: 4px;
11
14
 
12
15
  position: relative;
13
16
  flex-shrink: 0;
14
17
  inline-size: var(--widget-avatar-size);
15
18
  block-size: var(--widget-avatar-size);
19
+ /* Keep the rings inside overflow:hidden widget hosts (profile md/lg sits flush). */
20
+ margin: var(--widget-avatar-ring-outer);
16
21
  }
17
22
 
18
23
  .a63-WidgetAvatar[data-widget-avatar-size='sm'] {
@@ -36,20 +41,25 @@
36
41
  --widget-avatar-icon: var(--a63-space-6);
37
42
  }
38
43
 
39
- /* The avatar fills the root and rings itself against the page. */
40
- .a63-WidgetAvatar-avatar {
44
+ /* The face fills the token box and rings itself against the page. The
45
+ * selector is more specific than the ui-react `.a63-Avatar` default so a
46
+ * later same-layer recipes injection cannot shrink the face to 32px. */
47
+ .a63-WidgetAvatar .a63-WidgetAvatar-avatar {
41
48
  --avatar-size: 100%;
49
+ inline-size: 100%;
50
+ block-size: 100%;
42
51
 
43
52
  background-color: var(--a63-surface-muted);
44
53
  box-shadow:
45
- 0 0 0 2px var(--a63-surface-page),
54
+ 0 0 0 var(--widget-avatar-ring) var(--a63-surface-page),
46
55
  var(--shadow-sm);
47
56
  transition: outline-color var(--duration-normal) var(--ease-standard);
48
57
  }
49
58
 
50
- .a63-WidgetAvatar-avatar[data-outline] {
51
- outline: 2px solid color-mix(in oklab, var(--a63-action-primary) 70%, transparent);
52
- outline-offset: 2px;
59
+ .a63-WidgetAvatar .a63-WidgetAvatar-avatar[data-outline] {
60
+ outline: var(--widget-avatar-ring) solid
61
+ color-mix(in oklab, var(--a63-action-primary) 70%, transparent);
62
+ outline-offset: var(--widget-avatar-ring);
53
63
  }
54
64
 
55
65
  .a63-WidgetAvatar-busyRing {
@@ -57,8 +67,9 @@
57
67
  inset: 0;
58
68
  border-radius: var(--a63-avatar-radius, var(--radius-pill));
59
69
  box-shadow:
60
- 0 0 0 2px var(--a63-surface-page),
61
- 0 0 0 4px color-mix(in oklab, var(--a63-action-primary) 60%, transparent);
70
+ 0 0 0 var(--widget-avatar-ring) var(--a63-surface-page),
71
+ 0 0 0 var(--widget-avatar-ring-outer)
72
+ color-mix(in oklab, var(--a63-action-primary) 60%, transparent);
62
73
  animation: a63-widget-pulse calc(var(--duration-slower) * 2) var(--ease-inout) infinite;
63
74
  pointer-events: none;
64
75
  }