@atelier-ui/react 0.3.4 → 0.3.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 (147) hide show
  1. package/CHANGELOG.md +27 -0
  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,84 +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-progress,
7
- .atl-progress * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-progress {
12
- display: block;
13
- width: 100%;
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
- .track {
23
- position: relative;
24
- width: 100%;
25
- border-radius: var(--ui-radius-full);
26
- background-color: var(--ui-color-surface-sunken);
27
- overflow: hidden;
28
- }
29
-
30
- /* Size variants — modernised for visibility (sm was 4px → 6px) */
31
- .atl-progress.size-sm .track {
32
- height: 6px;
33
- }
34
-
35
- .atl-progress.size-md .track {
36
- height: 10px;
37
- }
38
-
39
- .atl-progress.size-lg .track {
40
- height: 14px;
41
- }
42
-
43
- /* Fill */
44
- .fill {
45
- height: 100%;
46
- border-radius: var(--ui-radius-full);
47
- background-color: var(--ui-color-primary);
48
- transition: width var(--ui-transition-normal);
49
- }
50
-
51
- /* Color variants */
52
- .atl-progress.variant-success .fill {
53
- background-color: var(--ui-color-success);
54
- }
55
-
56
- .atl-progress.variant-warning .fill {
57
- background-color: var(--ui-color-warning);
58
- }
59
-
60
- .atl-progress.variant-danger .fill {
61
- background-color: var(--ui-color-danger);
62
- }
63
-
64
- /* Indeterminate animation */
65
- @keyframes progress-indeterminate {
66
- 0% {
67
- transform: translateX(-150%);
68
- }
69
- 100% {
70
- transform: translateX(350%);
71
- }
72
- }
73
-
74
- .atl-progress.is-indeterminate .fill {
75
- width: 40% !important;
76
- animation: progress-indeterminate 1.4s var(--ui-ease-in-out) infinite;
77
- }
78
-
79
- @media (prefers-reduced-motion: reduce) {
80
- .atl-progress.is-indeterminate .fill {
81
- animation: none;
82
- opacity: 0.5;
83
- }
84
- }
@@ -1,92 +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-radio,
7
- .atl-radio * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-radio {
12
- display: inline-flex;
13
- align-items: center;
14
- gap: var(--ui-spacing-3);
15
- cursor: pointer;
16
- user-select: none;
17
- color: var(--ui-color-text);
18
- line-height: var(--ui-line-height-tight);
19
- font-family: var(--ui-font-family);
20
- font-size: var(--ui-font-size-md);
21
- /* Row recipe (ADR-0052): the clickable line is a row — it states its height
22
- and centres the control + text, rather than being sized by whichever of
23
- the two happens to be taller. */
24
- padding-block: 0;
25
- min-height: var(--ui-row-height-sm);
26
- transition: color var(--ui-transition-fast);
27
- }
28
-
29
- .atl-radio:hover:not(.is-disabled) {
30
- color: var(--ui-color-primary);
31
- }
32
-
33
- .atl-radio input[type='radio'] {
34
- appearance: none;
35
- -webkit-appearance: none;
36
- flex-shrink: 0;
37
- width: 1.25rem;
38
- height: 1.25rem;
39
- border: var(--ui-border-width-thick) solid var(--ui-color-border-strong);
40
- border-radius: 50%;
41
- background-color: var(--ui-color-input-bg);
42
- cursor: pointer;
43
- position: relative;
44
- transition:
45
- border-color var(--ui-transition-fast),
46
- border-width var(--ui-transition-fast) var(--ui-ease-out),
47
- background-color var(--ui-transition-fast),
48
- box-shadow var(--ui-transition-fast);
49
- outline: none;
50
- margin: 0;
51
- }
52
-
53
- .atl-radio:hover input[type='radio']:not(:disabled) {
54
- border-color: var(--ui-color-primary);
55
- }
56
-
57
- .atl-radio input[type='radio']:focus-visible {
58
- box-shadow: var(--ui-focus-ring);
59
- border-color: var(--ui-color-primary);
60
- }
61
-
62
- /* Checked state — thick inner ring */
63
- .atl-radio input[type='radio']:checked {
64
- border-color: var(--ui-color-primary);
65
- border-width: 6px;
66
- }
67
-
68
- /* Invalid state */
69
- .atl-radio.is-invalid input[type='radio'] {
70
- border-color: var(--ui-color-input-border-invalid);
71
- }
72
-
73
- .atl-radio.is-invalid:hover input[type='radio'] {
74
- border-color: var(--ui-color-danger-hover);
75
- }
76
-
77
- .atl-radio.is-invalid input[type='radio']:focus-visible {
78
- border-color: var(--ui-color-input-border-invalid);
79
- box-shadow: var(--ui-focus-ring-danger);
80
- }
81
-
82
- /* Disabled state */
83
- .atl-radio.is-disabled {
84
- opacity: var(--ui-opacity-disabled);
85
- cursor: not-allowed;
86
- color: var(--ui-color-text-muted);
87
- }
88
-
89
- .atl-radio.is-disabled input[type='radio'] {
90
- cursor: not-allowed;
91
- border-color: var(--ui-color-border);
92
- }
@@ -1,46 +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-radio-group,
7
- .atl-radio-group * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-radio-group {
12
- display: flex;
13
- font-family: var(--ui-font-family);
14
- /* The leading every descendant inherits. Stated here so the component keeps
15
- its own vertical rhythm instead of adopting the consuming app's prose
16
- leading — the defect that made the row boxes measure differently in a
17
- Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
18
- line-height: var(--ui-line-height-tight);
19
- gap: var(--ui-spacing-3);
20
- }
21
-
22
- .atl-radio-group.orientation-vertical {
23
- flex-direction: column;
24
- }
25
-
26
- .atl-radio-group.orientation-horizontal {
27
- flex-direction: row;
28
- flex-wrap: wrap;
29
- }
30
-
31
- .atl-radio-group.is-disabled {
32
- opacity: var(--ui-opacity-disabled);
33
- cursor: not-allowed;
34
- }
35
-
36
- /* Error messages */
37
- .atl-radio-group .errors {
38
- margin-top: var(--ui-spacing-2);
39
- }
40
-
41
- .atl-radio-group .error-message {
42
- margin: 0;
43
- font-size: var(--ui-font-size-sm);
44
- color: var(--ui-color-error-text);
45
- line-height: var(--ui-line-height-normal);
46
- }
@@ -1,124 +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-select,
7
- .atl-select * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-select {
12
- display: inline-block;
13
- position: relative;
14
- font-family: var(--ui-font-family);
15
- /* The leading every descendant inherits, stated so the component keeps its
16
- own rhythm rather than the consuming app's prose leading (ADR-0052).
17
- A single-line field, so tight. */
18
- line-height: var(--ui-line-height-tight);
19
- font-size: var(--ui-font-size-md);
20
- }
21
-
22
- .atl-select label {
23
- display: block;
24
- margin-bottom: var(--ui-spacing-2);
25
- font-size: var(--ui-font-size-sm);
26
- color: var(--ui-color-text);
27
- font-weight: var(--ui-font-weight-medium);
28
- }
29
-
30
- /* Select wrapper — holds native select + arrow icon */
31
- .atl-select .select-wrapper {
32
- position: relative;
33
- display: flex;
34
- align-items: center;
35
- }
36
-
37
- .atl-select select {
38
- display: flex;
39
- align-items: center;
40
- justify-content: space-between;
41
- width: 100%;
42
- min-height: var(--ui-control-height-md);
43
- /* Control line-height plus padding derived from the height, so the box does not
44
- * depend on which font is installed. Authored 0.625rem padding with an inherited
45
- * line-height rendered 40px with Instrument Sans and 41px with the fallback — the
46
- * defect only appeared in CI. See ADR-0048. */
47
- line-height: var(--ui-line-height-tight);
48
- padding: calc(
49
- (
50
- var(--ui-control-height-md) - var(--ui-line-height-tight) *
51
- var(--ui-font-size-md)
52
- ) /
53
- 2 - var(--ui-border-width)
54
- )
55
- var(--ui-spacing-4);
56
- padding-inline-end: calc(var(--ui-spacing-4) + 1.25rem + var(--ui-spacing-5));
57
- background: var(--ui-color-input-bg);
58
- border: var(--ui-border-width) solid var(--ui-color-input-border);
59
- border-radius: var(--ui-radius-md);
60
- color: var(--ui-color-text);
61
- font-family: inherit;
62
- font-size: inherit;
63
- cursor: pointer;
64
- appearance: none;
65
- -webkit-appearance: none;
66
- transition:
67
- border-color var(--ui-transition-fast),
68
- box-shadow var(--ui-transition-fast),
69
- background-color var(--ui-transition-fast);
70
- }
71
-
72
- .atl-select select:hover:not(:disabled) {
73
- border-color: var(--ui-color-input-border-hover);
74
- }
75
-
76
- .atl-select select:focus-visible {
77
- outline: none;
78
- box-shadow: var(--ui-focus-ring);
79
- border-color: var(--ui-color-input-border-focus);
80
- }
81
-
82
- .atl-select select:disabled {
83
- opacity: var(--ui-opacity-disabled);
84
- cursor: not-allowed;
85
- }
86
-
87
- .atl-select.is-invalid select {
88
- border-color: var(--ui-color-input-border-invalid);
89
- }
90
-
91
- /* Arrow icon */
92
- .atl-select .select-arrow {
93
- position: absolute;
94
- inset-inline-end: var(--ui-spacing-4);
95
- pointer-events: none;
96
- font-size: var(--ui-font-size-xs);
97
- color: var(--ui-color-text-muted);
98
- }
99
-
100
- /* Error display */
101
- .atl-select .errors {
102
- margin-top: var(--ui-spacing-2);
103
- }
104
-
105
- .atl-select .error-message {
106
- margin: 0;
107
- font-size: var(--ui-font-size-sm);
108
- color: var(--ui-color-error-text);
109
- }
110
-
111
- /* The invalid indicator sits inline-end, left of the chevron, and the field reserves
112
- * the space for it unconditionally so nothing shifts when the state flips. Slot:
113
- * 16px inset + 16px chevron + 4px gap + 16px indicator + 4px = 56px.
114
- * AtlInput and AtlTextarea already showed this indicator; carrying invalid on border
115
- * colour alone left AtlSelect and AtlCombobox failing WCAG 1.4.1 whenever a consumer
116
- * set invalid without passing errors (ADR-0055). */
117
- .atl-select.is-invalid .invalid-icon {
118
- position: absolute;
119
- top: 50%;
120
- transform: translateY(-50%);
121
- inset-inline-end: calc(var(--ui-spacing-4) + var(--ui-spacing-5));
122
- color: var(--ui-color-danger);
123
- pointer-events: none;
124
- }
@@ -1,71 +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-skeleton,
7
- .atl-skeleton * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-skeleton {
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). Single-line chrome, so tight. */
21
- line-height: var(--ui-line-height-tight);
22
- display: block;
23
- background: var(--ui-color-border);
24
- overflow: hidden;
25
- position: relative;
26
- }
27
-
28
- /* Variant shapes */
29
- .atl-skeleton.variant-text {
30
- border-radius: var(--ui-radius-sm);
31
- }
32
-
33
- .atl-skeleton.variant-circular {
34
- border-radius: var(--ui-radius-full, 9999px);
35
- }
36
-
37
- .atl-skeleton.variant-rectangular {
38
- border-radius: var(--ui-radius-md);
39
- }
40
-
41
- /* Shimmer animation — uses currentColor-aware overlay so it reads on
42
- * both light and dark surfaces (was hardcoded white at 0.3 alpha,
43
- * which only showed on dark backgrounds). */
44
- .atl-skeleton.is-animated::after {
45
- content: '';
46
- position: absolute;
47
- inset: 0;
48
- background: linear-gradient(
49
- 90deg,
50
- transparent 0%,
51
- color-mix(in srgb, var(--ui-color-surface-raised) 80%, transparent) 50%,
52
- transparent 100%
53
- );
54
- animation: shimmer 1.5s infinite;
55
- }
56
-
57
- @keyframes shimmer {
58
- 0% {
59
- transform: translateX(-100%);
60
- }
61
- 100% {
62
- transform: translateX(100%);
63
- }
64
- }
65
-
66
- /* Respect reduced motion */
67
- @media (prefers-reduced-motion: reduce) {
68
- .atl-skeleton.is-animated::after {
69
- animation: none;
70
- }
71
- }
@@ -1,199 +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-stepper,
7
- .atl-stepper * {
8
- box-sizing: border-box;
9
- }
10
-
11
- .atl-stepper {
12
- /* Local, not tokens: one component, two uses each, and the connector offset is
13
- DERIVED from them (ADR-0071). A single-use dimension is not a token, but a
14
- relationship between two of them should be visible. */
15
- --step-circle: 36px;
16
- --step-connector-width: 2px;
17
- display: block;
18
- font-family: var(--ui-font-family);
19
- /* The leading every descendant inherits. Stated here so the component keeps
20
- its own vertical rhythm instead of adopting the consuming app's prose
21
- leading — the defect that made the row boxes measure differently in a
22
- Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
23
- line-height: var(--ui-line-height-tight);
24
- }
25
-
26
- /* ─── Header ─── */
27
- .stepper-header {
28
- display: flex;
29
- align-items: center;
30
- list-style: none;
31
- margin: 0;
32
- padding: 0;
33
- }
34
-
35
- /* ─── Step item ─── */
36
- .step-item {
37
- display: flex;
38
- flex-direction: column;
39
- align-items: center;
40
- min-width: 0;
41
- }
42
-
43
- /* ─── Connector ─── */
44
- .step-connector {
45
- flex: 1;
46
- height: var(--step-connector-width);
47
- background: var(--ui-color-border);
48
- border-radius: var(--ui-radius-full);
49
- transition: background var(--ui-transition-normal) var(--ui-ease-out);
50
- min-width: var(--ui-spacing-4);
51
- }
52
-
53
- .step-connector.is-active {
54
- background: var(--ui-color-primary);
55
- }
56
-
57
- /* ─── Step circle button ─── */
58
- .step-circle {
59
- all: unset;
60
- box-sizing: border-box;
61
- display: inline-flex;
62
- align-items: center;
63
- justify-content: center;
64
- width: var(--step-circle);
65
- height: var(--step-circle);
66
- border-radius: 50%;
67
- border: var(--ui-border-width-thick) solid var(--ui-color-border);
68
- background: var(--ui-color-surface);
69
- color: var(--ui-color-text-muted);
70
- font-size: var(--ui-font-size-sm);
71
- font-weight: var(--ui-font-weight-semibold);
72
- cursor: pointer;
73
- transition: var(--ui-transition-normal) var(--ui-ease-out);
74
- transition-property: border-color, background-color, color, box-shadow;
75
- user-select: none;
76
- flex-shrink: 0;
77
- }
78
-
79
- .step-circle:focus-visible {
80
- outline: none;
81
- box-shadow: var(--ui-focus-ring);
82
- }
83
-
84
- .step-circle:disabled {
85
- cursor: not-allowed;
86
- }
87
-
88
- /* ─── Step text ─── */
89
- .step-text {
90
- display: flex;
91
- flex-direction: column;
92
- align-items: center;
93
- margin-top: var(--ui-spacing-2);
94
- text-align: center;
95
- }
96
-
97
- .step-label {
98
- font-size: var(--ui-font-size-sm);
99
- font-weight: var(--ui-font-weight-medium);
100
- color: var(--ui-color-text-muted);
101
- white-space: nowrap;
102
- }
103
-
104
- .step-description {
105
- font-size: var(--ui-font-size-xs);
106
- color: var(--ui-color-text-muted);
107
- margin-top: var(--ui-spacing-1);
108
- }
109
-
110
- .step-optional {
111
- font-size: var(--ui-font-size-xs);
112
- color: var(--ui-color-text-muted);
113
- font-style: italic;
114
- margin-top: var(--ui-spacing-1);
115
- }
116
-
117
- /* ─── Content ─── */
118
- .stepper-content {
119
- margin-top: var(--ui-spacing-6);
120
- }
121
-
122
- .stepper-content .step-panel[hidden] {
123
- display: none;
124
- }
125
-
126
- /* ─── Active state ─── */
127
- .step-item.is-active .step-circle {
128
- border-color: var(--ui-color-primary);
129
- color: var(--ui-color-primary);
130
- }
131
-
132
- .step-item.is-active .step-label {
133
- /* Weight stays the resting --ui-type-control medium (ADR-0074): the Figma master
134
- * renders this label Medium in every state, and .atl-tab-group's own .is-active —
135
- * the other stateful member of the same six-rule consumer list — changes only
136
- * colour, never weight, on its current item. */
137
- color: var(--ui-color-text);
138
- }
139
-
140
- /* ─── Completed state ─── */
141
- .step-item.is-completed .step-circle {
142
- border-color: var(--ui-color-primary);
143
- background: var(--ui-color-primary);
144
- color: var(--ui-color-text-on-primary);
145
- }
146
-
147
- .step-item.is-completed .step-label {
148
- color: var(--ui-color-text);
149
- }
150
-
151
- /* ─── Error state ─── */
152
- .step-item.is-error .step-circle {
153
- border-color: var(--ui-color-danger);
154
- background: var(--ui-color-danger);
155
- color: var(--ui-color-text-on-danger, #ffffff);
156
- }
157
-
158
- .step-item.is-error .step-label {
159
- color: var(--ui-color-danger);
160
- }
161
-
162
- /* ─── Disabled state ─── */
163
- .step-item.is-disabled .step-circle {
164
- opacity: var(--ui-opacity-disabled);
165
- cursor: not-allowed;
166
- }
167
-
168
- .step-item.is-disabled .step-label {
169
- opacity: var(--ui-opacity-disabled);
170
- }
171
-
172
- /* ─── Vertical orientation ─── */
173
- .atl-stepper.orientation-vertical .stepper-header {
174
- flex-direction: column;
175
- align-items: stretch;
176
- }
177
-
178
- .atl-stepper.orientation-vertical .step-item {
179
- flex-direction: row;
180
- align-items: flex-start;
181
- gap: var(--ui-spacing-3);
182
- }
183
-
184
- .atl-stepper.orientation-vertical .step-text {
185
- align-items: flex-start;
186
- text-align: left;
187
- margin-top: 0;
188
- padding-top: var(--ui-spacing-1);
189
- }
190
-
191
- .atl-stepper.orientation-vertical .step-connector {
192
- flex: none;
193
- width: var(--step-connector-width);
194
- height: var(--ui-spacing-6);
195
- /* Centres the connector under the circle: half the circle minus half the
196
- connector. Was a literal 17px, which hid the relationship. */
197
- margin-left: calc((var(--step-circle) - var(--step-connector-width)) / 2);
198
- min-width: 0;
199
- }