@atelier-ui/react 0.3.5 → 0.3.7

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 (147) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/package.json +4 -1
  3. package/src/lib/accordion/atl-accordion.d.ts +1 -1
  4. package/src/lib/accordion/atl-accordion.d.ts.map +1 -1
  5. package/src/lib/accordion/atl-accordion.js +1 -1
  6. package/src/lib/accordion/atl-accordion.js.map +1 -1
  7. package/src/lib/alert/atl-alert.d.ts +1 -1
  8. package/src/lib/alert/atl-alert.d.ts.map +1 -1
  9. package/src/lib/alert/atl-alert.js +1 -1
  10. package/src/lib/alert/atl-alert.js.map +1 -1
  11. package/src/lib/avatar/atl-avatar.d.ts +1 -1
  12. package/src/lib/avatar/atl-avatar.d.ts.map +1 -1
  13. package/src/lib/avatar/atl-avatar.js +1 -1
  14. package/src/lib/avatar/atl-avatar.js.map +1 -1
  15. package/src/lib/badge/atl-badge.d.ts +1 -1
  16. package/src/lib/badge/atl-badge.d.ts.map +1 -1
  17. package/src/lib/badge/atl-badge.js +1 -1
  18. package/src/lib/badge/atl-badge.js.map +1 -1
  19. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts +1 -1
  20. package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts.map +1 -1
  21. package/src/lib/breadcrumbs/atl-breadcrumbs.js +2 -2
  22. package/src/lib/breadcrumbs/atl-breadcrumbs.js.map +1 -1
  23. package/src/lib/button/atl-button.d.ts +1 -1
  24. package/src/lib/button/atl-button.d.ts.map +1 -1
  25. package/src/lib/button/atl-button.js +1 -1
  26. package/src/lib/button/atl-button.js.map +1 -1
  27. package/src/lib/card/atl-card.d.ts +1 -1
  28. package/src/lib/card/atl-card.d.ts.map +1 -1
  29. package/src/lib/card/atl-card.js +1 -1
  30. package/src/lib/card/atl-card.js.map +1 -1
  31. package/src/lib/chat/atl-chat.d.ts +1 -1
  32. package/src/lib/chat/atl-chat.d.ts.map +1 -1
  33. package/src/lib/chat/atl-chat.js +1 -1
  34. package/src/lib/chat/atl-chat.js.map +1 -1
  35. package/src/lib/checkbox/atl-checkbox.d.ts +1 -1
  36. package/src/lib/checkbox/atl-checkbox.d.ts.map +1 -1
  37. package/src/lib/checkbox/atl-checkbox.js +1 -1
  38. package/src/lib/checkbox/atl-checkbox.js.map +1 -1
  39. package/src/lib/code-block/atl-code-block.d.ts +1 -1
  40. package/src/lib/code-block/atl-code-block.d.ts.map +1 -1
  41. package/src/lib/code-block/atl-code-block.js +1 -1
  42. package/src/lib/code-block/atl-code-block.js.map +1 -1
  43. package/src/lib/combobox/atl-combobox.d.ts +1 -1
  44. package/src/lib/combobox/atl-combobox.d.ts.map +1 -1
  45. package/src/lib/combobox/atl-combobox.js +1 -1
  46. package/src/lib/combobox/atl-combobox.js.map +1 -1
  47. package/src/lib/dialog/atl-dialog.d.ts +1 -1
  48. package/src/lib/dialog/atl-dialog.d.ts.map +1 -1
  49. package/src/lib/dialog/atl-dialog.js +1 -1
  50. package/src/lib/dialog/atl-dialog.js.map +1 -1
  51. package/src/lib/drawer/atl-drawer.d.ts +1 -1
  52. package/src/lib/drawer/atl-drawer.d.ts.map +1 -1
  53. package/src/lib/drawer/atl-drawer.js +2 -2
  54. package/src/lib/drawer/atl-drawer.js.map +1 -1
  55. package/src/lib/icon/atl-icon.d.ts +1 -1
  56. package/src/lib/icon/atl-icon.d.ts.map +1 -1
  57. package/src/lib/icon/atl-icon.js +1 -1
  58. package/src/lib/icon/atl-icon.js.map +1 -1
  59. package/src/lib/input/atl-input.d.ts +1 -1
  60. package/src/lib/input/atl-input.d.ts.map +1 -1
  61. package/src/lib/input/atl-input.js +1 -1
  62. package/src/lib/input/atl-input.js.map +1 -1
  63. package/src/lib/menu/atl-menu.d.ts +2 -1
  64. package/src/lib/menu/atl-menu.d.ts.map +1 -1
  65. package/src/lib/menu/atl-menu.js +2 -1
  66. package/src/lib/menu/atl-menu.js.map +1 -1
  67. package/src/lib/pagination/atl-pagination.d.ts +1 -1
  68. package/src/lib/pagination/atl-pagination.d.ts.map +1 -1
  69. package/src/lib/pagination/atl-pagination.js +1 -1
  70. package/src/lib/pagination/atl-pagination.js.map +1 -1
  71. package/src/lib/progress/atl-progress.d.ts +1 -1
  72. package/src/lib/progress/atl-progress.d.ts.map +1 -1
  73. package/src/lib/progress/atl-progress.js +1 -1
  74. package/src/lib/progress/atl-progress.js.map +1 -1
  75. package/src/lib/radio/atl-radio.d.ts +1 -1
  76. package/src/lib/radio/atl-radio.d.ts.map +1 -1
  77. package/src/lib/radio/atl-radio.js +1 -1
  78. package/src/lib/radio/atl-radio.js.map +1 -1
  79. package/src/lib/radio-group/atl-radio-group.d.ts +1 -1
  80. package/src/lib/radio-group/atl-radio-group.d.ts.map +1 -1
  81. package/src/lib/radio-group/atl-radio-group.js +1 -1
  82. package/src/lib/radio-group/atl-radio-group.js.map +1 -1
  83. package/src/lib/select/atl-select.d.ts +2 -1
  84. package/src/lib/select/atl-select.d.ts.map +1 -1
  85. package/src/lib/select/atl-select.js +2 -1
  86. package/src/lib/select/atl-select.js.map +1 -1
  87. package/src/lib/skeleton/atl-skeleton.d.ts +1 -1
  88. package/src/lib/skeleton/atl-skeleton.d.ts.map +1 -1
  89. package/src/lib/skeleton/atl-skeleton.js +1 -1
  90. package/src/lib/skeleton/atl-skeleton.js.map +1 -1
  91. package/src/lib/stepper/atl-stepper.d.ts +1 -1
  92. package/src/lib/stepper/atl-stepper.d.ts.map +1 -1
  93. package/src/lib/stepper/atl-stepper.js +1 -1
  94. package/src/lib/stepper/atl-stepper.js.map +1 -1
  95. package/src/lib/table/atl-table.d.ts +1 -1
  96. package/src/lib/table/atl-table.d.ts.map +1 -1
  97. package/src/lib/table/atl-table.js +1 -1
  98. package/src/lib/table/atl-table.js.map +1 -1
  99. package/src/lib/tabs/atl-tabs.d.ts +1 -1
  100. package/src/lib/tabs/atl-tabs.d.ts.map +1 -1
  101. package/src/lib/tabs/atl-tabs.js +1 -1
  102. package/src/lib/tabs/atl-tabs.js.map +1 -1
  103. package/src/lib/textarea/atl-textarea.d.ts +1 -1
  104. package/src/lib/textarea/atl-textarea.d.ts.map +1 -1
  105. package/src/lib/textarea/atl-textarea.js +1 -1
  106. package/src/lib/textarea/atl-textarea.js.map +1 -1
  107. package/src/lib/toast/atl-toast.d.ts +1 -1
  108. package/src/lib/toast/atl-toast.d.ts.map +1 -1
  109. package/src/lib/toast/atl-toast.js +1 -1
  110. package/src/lib/toast/atl-toast.js.map +1 -1
  111. package/src/lib/toggle/atl-toggle.d.ts +1 -1
  112. package/src/lib/toggle/atl-toggle.d.ts.map +1 -1
  113. package/src/lib/toggle/atl-toggle.js +1 -1
  114. package/src/lib/toggle/atl-toggle.js.map +1 -1
  115. package/src/lib/tooltip/atl-tooltip.d.ts +2 -1
  116. package/src/lib/tooltip/atl-tooltip.d.ts.map +1 -1
  117. package/src/lib/tooltip/atl-tooltip.js +2 -1
  118. package/src/lib/tooltip/atl-tooltip.js.map +1 -1
  119. package/src/lib/accordion/atl-accordion.css +0 -145
  120. package/src/lib/alert/atl-alert.css +0 -102
  121. package/src/lib/avatar/atl-avatar.css +0 -181
  122. package/src/lib/badge/atl-badge.css +0 -74
  123. package/src/lib/breadcrumbs/atl-breadcrumbs.css +0 -99
  124. package/src/lib/button/atl-button.css +0 -173
  125. package/src/lib/card/atl-card.css +0 -91
  126. package/src/lib/chat/atl-chat.css +0 -506
  127. package/src/lib/checkbox/atl-checkbox.css +0 -151
  128. package/src/lib/code-block/atl-code-block.css +0 -136
  129. package/src/lib/combobox/atl-combobox.css +0 -256
  130. package/src/lib/dialog/atl-dialog.css +0 -198
  131. package/src/lib/drawer/atl-drawer.css +0 -265
  132. package/src/lib/icon/atl-icon.css +0 -47
  133. package/src/lib/input/atl-input.css +0 -121
  134. package/src/lib/menu/atl-menu.css +0 -122
  135. package/src/lib/pagination/atl-pagination.css +0 -101
  136. package/src/lib/progress/atl-progress.css +0 -84
  137. package/src/lib/radio/atl-radio.css +0 -92
  138. package/src/lib/radio-group/atl-radio-group.css +0 -46
  139. package/src/lib/select/atl-select.css +0 -124
  140. package/src/lib/skeleton/atl-skeleton.css +0 -71
  141. package/src/lib/stepper/atl-stepper.css +0 -199
  142. package/src/lib/table/atl-table.css +0 -257
  143. package/src/lib/tabs/atl-tabs.css +0 -161
  144. package/src/lib/textarea/atl-textarea.css +0 -119
  145. package/src/lib/toast/atl-toast.css +0 -168
  146. package/src/lib/toggle/atl-toggle.css +0 -138
  147. package/src/lib/tooltip/atl-tooltip.css +0 -97
@@ -1,181 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- :is(.atl-avatar, .atl-avatar-group),
7
- :is(.atl-avatar, .atl-avatar-group) * {
8
- box-sizing: border-box;
9
- }
10
-
11
- /* === AtlAvatar === */
12
-
13
- .atl-avatar {
14
- display: inline-flex;
15
- align-items: center;
16
- justify-content: center;
17
- position: relative;
18
- overflow: hidden;
19
- flex-shrink: 0;
20
- font-family: var(--ui-font-family);
21
- /* The leading every descendant inherits. Stated here so the component keeps
22
- its own vertical rhythm instead of adopting the consuming app's prose
23
- leading — the defect that made the row boxes measure differently in a
24
- Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
25
- line-height: var(--ui-line-height-tight);
26
- font-weight: var(--ui-font-weight-semibold);
27
- background-color: color-mix(
28
- in srgb,
29
- var(--ui-color-primary) 12%,
30
- var(--ui-color-surface-sunken)
31
- );
32
- color: var(--ui-color-primary);
33
- user-select: none;
34
- }
35
-
36
- /* Sizes */
37
- .atl-avatar.size-xs {
38
- width: 24px;
39
- height: 24px;
40
- font-size: var(--ui-font-size-2xs);
41
- }
42
- .atl-avatar.size-sm {
43
- width: 32px;
44
- height: 32px;
45
- font-size: var(--ui-font-size-xs);
46
- }
47
- .atl-avatar.size-md {
48
- width: 40px;
49
- height: 40px;
50
- font-size: var(--ui-font-size-sm);
51
- }
52
- .atl-avatar.size-lg {
53
- width: 48px;
54
- height: 48px;
55
- font-size: var(--ui-font-size-md);
56
- }
57
- .atl-avatar.size-xl {
58
- width: 64px;
59
- height: 64px;
60
- font-size: var(--ui-font-size-lg);
61
- }
62
-
63
- /* Shapes */
64
- .atl-avatar.shape-circle {
65
- border-radius: var(--ui-radius-full);
66
- }
67
- .atl-avatar.shape-square {
68
- border-radius: var(--ui-radius-md);
69
- }
70
-
71
- /* Image */
72
- .atl-avatar img {
73
- width: 100%;
74
- height: 100%;
75
- object-fit: cover;
76
- display: block;
77
- }
78
-
79
- /* Initials */
80
- .atl-avatar .initials {
81
- line-height: 1;
82
- letter-spacing: 0.02em;
83
- }
84
-
85
- /* Fallback icon */
86
- .atl-avatar .atl-icon.icon {
87
- width: 55%;
88
- height: 55%;
89
- opacity: 0.6;
90
- }
91
-
92
- /* Status dot */
93
- .atl-avatar .status-dot {
94
- position: absolute;
95
- bottom: 0;
96
- right: 0;
97
- width: 25%;
98
- height: 25%;
99
- min-width: 6px;
100
- min-height: 6px;
101
- max-width: 14px;
102
- max-height: 14px;
103
- border-radius: var(--ui-radius-full);
104
- border: var(--ui-border-width-thick) solid var(--ui-color-surface);
105
- box-sizing: content-box;
106
- }
107
-
108
- .atl-avatar .status-dot.status-online {
109
- background-color: var(--ui-color-success);
110
- }
111
- .atl-avatar .status-dot.status-offline {
112
- background-color: var(--ui-color-text-muted);
113
- }
114
- .atl-avatar .status-dot.status-away {
115
- background-color: var(--ui-color-warning);
116
- }
117
- .atl-avatar .status-dot.status-busy {
118
- background-color: var(--ui-color-danger);
119
- }
120
-
121
- /* === AtlAvatarGroup === */
122
-
123
- .atl-avatar-group {
124
- /* The library states its own typeface (ADR-0035). Without this the component
125
- * renders in the consuming app's font while its neighbours render Instrument
126
- * Sans — measured: a card next to a button showed two typefaces. Declared once
127
- * per component root, never on a descendant (ADR-0049). */
128
- font-family: var(--ui-font-family);
129
- display: inline-flex;
130
- align-items: center;
131
- background: none;
132
- overflow: visible;
133
- padding-inline-start: 4px;
134
- }
135
-
136
- /* Overlap ring applied to avatars inside a group */
137
- .atl-avatar-group > .atl-avatar {
138
- box-shadow: 0 0 0 2px var(--ui-color-surface);
139
- margin-inline-start: -8px;
140
- }
141
-
142
- /* Overflow count badge */
143
- .overflow-badge {
144
- display: inline-flex;
145
- align-items: center;
146
- justify-content: center;
147
- flex-shrink: 0;
148
- background-color: var(--ui-color-surface-sunken);
149
- color: var(--ui-color-text-muted);
150
- border: var(--ui-border-width) solid var(--ui-color-border);
151
- border-radius: var(--ui-radius-full);
152
- font-weight: var(--ui-font-weight-semibold);
153
- box-shadow: 0 0 0 2px var(--ui-color-surface);
154
- margin-inline-start: -8px;
155
- }
156
-
157
- .overflow-badge.size-xs {
158
- width: 24px;
159
- height: 24px;
160
- font-size: var(--ui-font-size-2xs);
161
- }
162
- .overflow-badge.size-sm {
163
- width: 32px;
164
- height: 32px;
165
- font-size: var(--ui-font-size-xs);
166
- }
167
- .overflow-badge.size-md {
168
- width: 40px;
169
- height: 40px;
170
- font-size: var(--ui-font-size-sm);
171
- }
172
- .overflow-badge.size-lg {
173
- width: 48px;
174
- height: 48px;
175
- font-size: var(--ui-font-size-sm);
176
- }
177
- .overflow-badge.size-xl {
178
- width: 64px;
179
- height: 64px;
180
- font-size: var(--ui-font-size-md);
181
- }
@@ -1,74 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- .atl-badge,
7
- .atl-badge * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-badge {
12
- display: inline-flex;
13
- align-items: center;
14
- justify-content: center;
15
- border-radius: var(--ui-radius-full);
16
- font-family: var(--ui-font-family);
17
- font-weight: var(--ui-font-weight-semibold);
18
- line-height: var(--ui-line-height-tight);
19
- white-space: nowrap;
20
- letter-spacing: var(--ui-letter-spacing-wide);
21
- }
22
-
23
- /* Sizes */
24
- .atl-badge.size-sm {
25
- padding: 0.1875rem var(--ui-spacing-2);
26
- font-size: var(--ui-font-size-xs);
27
- }
28
-
29
- .atl-badge.size-md {
30
- padding: 0.3125rem var(--ui-spacing-3);
31
- font-size: var(--ui-font-size-sm);
32
- }
33
-
34
- /* Variants */
35
- .atl-badge.variant-default {
36
- background-color: var(--ui-color-surface-sunken);
37
- color: var(--ui-color-text-muted);
38
- border: var(--ui-border-width) solid var(--ui-color-border);
39
- }
40
-
41
- .atl-badge.variant-success {
42
- background-color: var(--ui-color-success-bg);
43
- color: var(--ui-color-success-text);
44
- border: var(--ui-border-width) solid
45
- color-mix(in srgb, var(--ui-color-success-text) 25%, transparent);
46
- }
47
-
48
- .atl-badge.variant-warning {
49
- background-color: var(--ui-color-warning-bg);
50
- color: var(--ui-color-warning-text);
51
- border: var(--ui-border-width) solid
52
- color-mix(in srgb, var(--ui-color-warning-text) 25%, transparent);
53
- }
54
-
55
- .atl-badge.variant-danger {
56
- background-color: var(--ui-color-danger-bg);
57
- color: var(--ui-color-danger-text);
58
- border: var(--ui-border-width) solid
59
- color-mix(in srgb, var(--ui-color-danger-text) 25%, transparent);
60
- }
61
-
62
- .atl-badge.variant-info {
63
- background-color: var(--ui-color-info-bg);
64
- color: var(--ui-color-info-text);
65
- border: var(--ui-border-width) solid
66
- color-mix(in srgb, var(--ui-color-info-text) 25%, transparent);
67
- }
68
-
69
- /* Semantic indicator glyph — non-color differentiation (WCAG 1.4.1). */
70
- .atl-badge .variant-icon {
71
- font-weight: var(--ui-font-weight-bold);
72
- margin-right: 0.3em;
73
- line-height: 1;
74
- }
@@ -1,99 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- :is(.atl-breadcrumb-item, .atl-breadcrumbs),
7
- :is(.atl-breadcrumb-item, .atl-breadcrumbs) * {
8
- box-sizing: border-box;
9
- }
10
-
11
- /* AtlBreadcrumbs */
12
- .atl-breadcrumbs {
13
- display: block;
14
- font-family: var(--ui-font-family);
15
- /* The leading every descendant inherits. Stated here so the component keeps
16
- its own vertical rhythm instead of adopting the consuming app's prose
17
- leading — the defect that made the row boxes measure differently in a
18
- Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
19
- line-height: var(--ui-line-height-tight);
20
- }
21
-
22
- .breadcrumbs-list {
23
- display: flex;
24
- flex-wrap: wrap;
25
- align-items: center;
26
- gap: 0;
27
- list-style: none;
28
- margin: 0;
29
- padding: 0;
30
- font-size: var(--ui-font-size-sm);
31
- color: var(--ui-color-text-muted);
32
- }
33
-
34
- /* AtlBreadcrumbItem */
35
- .atl-breadcrumb-item {
36
- display: flex;
37
- align-items: center;
38
- }
39
-
40
- /* Separator — chevron, CSS-generated and decorative. The trailing `/ ''` is
41
- the CSS Generated Content alt-text pair: an explicit empty alternative
42
- text, which keeps the glyph out of the accessibility tree in Chromium,
43
- Firefox and WebKit alike (verified; a bare `content: '…'` is NOT excluded
44
- by default — it renders as its own accessible text node). See ADR-0100.
45
- The fallback matches the component's own default ('/', not '›'): all
46
- three adapters always set --atl-separator inline before first paint (in
47
- SSR-rendered markup, not just post-hydration), so this value is unreached
48
- in every documented usage — it exists only so a stray '.atl-breadcrumb-
49
- item::after' rendered without the component (hand-authored markup that
50
- imports the CSS but skips AtlBreadcrumbs/atl-breadcrumbs/AtlBreadcrumbs.vue)
51
- degrades to the shipped default rather than to a glyph the spec's
52
- `separator` option list ('/', '>') never offers. */
53
- .atl-breadcrumb-item::after {
54
- content: var(--atl-separator, '/') / '';
55
- margin: 0 var(--ui-spacing-2);
56
- color: var(--ui-color-border-hover);
57
- font-size: var(--ui-font-size-md);
58
- line-height: 1;
59
- }
60
-
61
- .atl-breadcrumb-item.is-current::after {
62
- display: none;
63
- }
64
-
65
- /* Links (navigable breadcrumbs) */
66
- .atl-breadcrumb-item .breadcrumb-link {
67
- color: var(--ui-color-text-muted);
68
- text-decoration: none;
69
- border-radius: var(--ui-radius-sm);
70
- padding: var(--ui-spacing-1) var(--ui-spacing-2);
71
- margin: calc(var(--ui-spacing-1) * -1) calc(var(--ui-spacing-2) * -1);
72
- transition:
73
- color var(--ui-transition-fast),
74
- background-color var(--ui-transition-fast);
75
- }
76
-
77
- .atl-breadcrumb-item .breadcrumb-link:hover {
78
- color: var(--ui-color-text);
79
- background-color: var(--ui-color-surface-sunken);
80
- }
81
-
82
- .atl-breadcrumb-item .breadcrumb-link:focus-visible {
83
- outline: none;
84
- box-shadow: var(--ui-focus-ring);
85
- }
86
-
87
- /* Current item (plain text). Deliberately no padding: `.breadcrumb-link`'s
88
- padding is exactly cancelled by its own negative margin (a hit/hover-area
89
- enlargement, invisible in the flow), so its text occupies exactly the same
90
- box a padding-less element would — measured in a real browser, both items'
91
- rows come out the same height and the link's text starts at the same
92
- offset within its row as this span's. Adding matching padding here would
93
- not reproduce that; without a compensating negative margin it would make
94
- this row taller than a link row, which is the regression this note exists
95
- to head off. */
96
- .atl-breadcrumb-item .breadcrumb-current {
97
- color: var(--ui-color-text);
98
- font-weight: var(--ui-font-weight-semibold);
99
- }
@@ -1,173 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- .atl-button,
7
- .atl-button * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-button {
12
- display: inline-flex;
13
- align-items: center;
14
- justify-content: center;
15
- gap: var(--ui-spacing-2);
16
- border: var(--ui-border-width) solid transparent;
17
- border-radius: var(--ui-radius-md);
18
- font-family: var(--ui-font-family);
19
- font-size: var(--ui-font-size-md);
20
- font-weight: var(--ui-font-weight-semibold);
21
- line-height: var(--ui-line-height-tight);
22
- letter-spacing: var(--ui-letter-spacing-tight);
23
- cursor: pointer;
24
- transition:
25
- background-color var(--ui-transition-fast),
26
- border-color var(--ui-transition-fast),
27
- color var(--ui-transition-fast),
28
- box-shadow var(--ui-transition-fast);
29
- white-space: nowrap;
30
- text-decoration: none;
31
- user-select: none;
32
- }
33
-
34
- .atl-button:focus-visible {
35
- outline: none;
36
- box-shadow: var(--ui-focus-ring);
37
- }
38
-
39
- /* Variants — flat by default; subtle state shifts only */
40
- .atl-button.variant-primary {
41
- background-color: var(--ui-color-primary);
42
- color: var(--ui-color-text-on-primary);
43
- border-color: var(--ui-color-primary);
44
- }
45
-
46
- .atl-button.variant-primary:hover:not(.is-disabled) {
47
- background-color: var(--ui-color-primary-hover);
48
- border-color: var(--ui-color-primary-hover);
49
- }
50
-
51
- .atl-button.variant-primary:active:not(.is-disabled) {
52
- background-color: var(--ui-color-primary-active);
53
- border-color: var(--ui-color-primary-active);
54
- }
55
-
56
- .atl-button.variant-secondary {
57
- background-color: var(--ui-color-secondary);
58
- color: var(--ui-color-text-on-secondary);
59
- border-color: var(--ui-color-secondary);
60
- }
61
-
62
- .atl-button.variant-secondary:hover:not(.is-disabled) {
63
- background-color: var(--ui-color-secondary-hover);
64
- border-color: var(--ui-color-secondary-hover);
65
- }
66
-
67
- .atl-button.variant-secondary:active:not(.is-disabled) {
68
- background-color: var(--ui-color-secondary-active);
69
- border-color: var(--ui-color-secondary-active);
70
- }
71
-
72
- .atl-button.variant-outline {
73
- background-color: var(--ui-color-surface-raised);
74
- color: var(--ui-color-primary);
75
- border-color: var(--ui-color-border-strong);
76
- }
77
-
78
- .atl-button.variant-outline:hover:not(.is-disabled) {
79
- background-color: var(--ui-color-surface-sunken);
80
- border-color: var(--ui-color-primary);
81
- }
82
-
83
- .atl-button.variant-outline:active:not(.is-disabled) {
84
- background-color: var(--ui-color-surface-sunken);
85
- border-color: var(--ui-color-primary-active);
86
- }
87
-
88
- /* Non-color differentiation (WCAG 1.4.1): danger variant carries
89
- * a darker inset border so its silhouette is recognizable in greyscale
90
- * and color-blind simulations, not only by red fill. */
91
- .atl-button.variant-danger {
92
- background-color: var(--ui-color-danger);
93
- color: var(--ui-color-text-on-danger);
94
- border-color: var(--ui-color-danger);
95
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
96
- }
97
-
98
- .atl-button.variant-danger:hover:not(.is-disabled) {
99
- background-color: var(--ui-color-danger-hover);
100
- border-color: var(--ui-color-danger-hover);
101
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
102
- }
103
-
104
- .atl-button.variant-danger:active:not(.is-disabled) {
105
- background-color: var(--ui-color-danger-active);
106
- border-color: var(--ui-color-danger-active);
107
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
108
- }
109
-
110
- /* Sizes — modern target heights (sm 32px / md 40px / lg 48px) */
111
- .atl-button.size-sm {
112
- padding: calc(
113
- (
114
- var(--ui-control-height-sm) - var(--ui-line-height-tight) *
115
- var(--ui-font-size-sm)
116
- ) /
117
- 2 - 1px
118
- )
119
- 0.875rem;
120
- font-size: var(--ui-font-size-sm);
121
- min-height: var(--ui-control-height-sm);
122
- }
123
-
124
- .atl-button.size-md {
125
- padding: calc(
126
- (
127
- var(--ui-control-height-md) - var(--ui-line-height-tight) *
128
- var(--ui-font-size-md)
129
- ) /
130
- 2 - 1px
131
- )
132
- 1.125rem;
133
- font-size: var(--ui-font-size-md);
134
- min-height: var(--ui-control-height-md);
135
- }
136
-
137
- .atl-button.size-lg {
138
- padding: calc(
139
- (
140
- var(--ui-control-height-lg) - var(--ui-line-height-tight) *
141
- var(--ui-font-size-lg)
142
- ) /
143
- 2 - 1px
144
- )
145
- 1.5rem;
146
- font-size: var(--ui-font-size-lg);
147
- min-height: var(--ui-control-height-lg);
148
- }
149
-
150
- /* Disabled */
151
- .atl-button.is-disabled {
152
- opacity: var(--ui-opacity-disabled);
153
- cursor: not-allowed;
154
- pointer-events: none;
155
- }
156
-
157
- /* Loading spinner */
158
- .spinner {
159
- display: inline-block;
160
- width: 1em;
161
- height: 1em;
162
- border: var(--ui-border-width-thick) solid currentColor;
163
- border-top-color: transparent;
164
- border-radius: var(--ui-radius-full);
165
- animation: atl-spin 0.7s linear infinite;
166
- flex-shrink: 0;
167
- }
168
-
169
- @keyframes atl-spin {
170
- to {
171
- transform: rotate(360deg);
172
- }
173
- }
@@ -1,91 +0,0 @@
1
- /* Geometry contract: every size this component states is a border-box size.
2
- * Declared with the component rather than as a global reset, so it ships in the
3
- * same file as the sizes it governs and no consuming app has to supply one.
4
- * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
- * See ADR-0043. */
6
- :is(.atl-card, .atl-card-content, .atl-card-footer, .atl-card-header),
7
- :is(.atl-card, .atl-card-content, .atl-card-footer, .atl-card-header) * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-card {
12
- /* The library states its own typeface (ADR-0035). Without this the component
13
- * renders in the consuming app's font while its neighbours render Instrument
14
- * Sans — measured: a card next to a button showed two typefaces. Declared once
15
- * per component root, never on a descendant (ADR-0049). */
16
- font-family: var(--ui-font-family);
17
- /* The leading every descendant inherits. Stated here so the component keeps
18
- its own vertical rhythm instead of adopting the consuming app's prose
19
- leading — the defect that made the row boxes measure differently in a
20
- Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
21
- line-height: var(--ui-line-height-normal);
22
- display: block;
23
- border-radius: var(--ui-radius-xl);
24
- background-color: var(--ui-color-surface-raised);
25
- overflow: hidden;
26
- }
27
-
28
- /* Modernised variants — single soft shadow on elevated, no shadow on
29
- * outlined or flat. Cards rest on the page; they don't float off it. */
30
- .atl-card.variant-elevated {
31
- box-shadow: var(--ui-shadow-sm);
32
- border: var(--ui-border-width) solid var(--ui-color-border);
33
- }
34
-
35
- .atl-card.variant-outlined {
36
- border: var(--ui-border-width) solid var(--ui-color-border);
37
- background-color: var(--ui-color-surface-raised);
38
- }
39
-
40
- .atl-card.variant-flat {
41
- background-color: var(--ui-color-surface-sunken);
42
- }
43
-
44
- /* Padding on .atl-card directly affects all slots */
45
- .atl-card.padding-none .atl-card-header,
46
- .atl-card.padding-none .atl-card-content,
47
- .atl-card.padding-none .atl-card-footer {
48
- padding: 0;
49
- }
50
-
51
- .atl-card.padding-sm .atl-card-header,
52
- .atl-card.padding-sm .atl-card-content,
53
- .atl-card.padding-sm .atl-card-footer {
54
- padding: var(--ui-spacing-4);
55
- }
56
-
57
- .atl-card.padding-md .atl-card-header,
58
- .atl-card.padding-md .atl-card-content,
59
- .atl-card.padding-md .atl-card-footer {
60
- padding: var(--ui-spacing-6);
61
- }
62
-
63
- .atl-card.padding-lg .atl-card-header,
64
- .atl-card.padding-lg .atl-card-content,
65
- .atl-card.padding-lg .atl-card-footer {
66
- padding: var(--ui-spacing-8);
67
- }
68
-
69
- /* Sub-component layouts */
70
- .atl-card-header {
71
- display: block;
72
- font-size: var(--ui-font-size-lg);
73
- font-weight: var(--ui-font-weight-semibold);
74
- line-height: var(--ui-line-height-tight);
75
- color: var(--ui-color-text);
76
- border-bottom: var(--ui-border-width) solid var(--ui-color-border);
77
- letter-spacing: var(--ui-letter-spacing-tight);
78
- }
79
-
80
- .atl-card-content {
81
- display: block;
82
- color: var(--ui-color-text);
83
- line-height: var(--ui-line-height-normal);
84
- }
85
-
86
- .atl-card-footer {
87
- display: flex;
88
- align-items: center;
89
- gap: var(--ui-spacing-3);
90
- border-top: var(--ui-border-width) solid var(--ui-color-border);
91
- }