@atelic-action/ui 8.2.0 → 8.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.
@@ -125,9 +125,12 @@
125
125
  --proof-star-fill (--primary); --footer-link (--neutral-200),
126
126
  --footer-link-hover (--on-dark), --closing-link (--neutral-300),
127
127
  and --closing-link-hover (--surface mixed with --on-dark);
128
- --menu-rule (--hairline), on the light sheet. --hero-stack-gap has
129
- no default of its own: unset, each gap in the hero keeps the value
130
- it always had, in place. */
128
+ --menu-rule (--hairline), on the light sheet; --hero-split-pad-block
129
+ (--section-space). --hero-stack-gap and the three gaps under it
130
+ (--hero-gap-kicker, --hero-gap-lead, --hero-gap-actions) have no
131
+ default of their own: unset, each gap in the hero keeps the value
132
+ it always had, in place; so has --footer-brand-width, the brand
133
+ column's share of the footer's row (1.4, or 2 beside the hours). */
131
134
  /* The open group's pill's words on the bar. */
132
135
  --nav-open-ink: currentColor;
133
136
  /* The header phone pill's padding and its number's size. */
@@ -142,6 +145,7 @@
142
145
  /* The hero's lead paragraph: its size and its measure. */
143
146
  --hero-lead-size: clamp(1.05rem, 2.2vw, 1.35rem);
144
147
  --hero-lead-measure: 52ch;
148
+ --hero-lead-leading: 1.55;
145
149
  /* A FeatureGrid card's title. */
146
150
  --card-title-color: currentColor;
147
151
  /* A CalloutPanel title's case, and its subtitle's case and tracking. */
@@ -153,6 +157,14 @@
153
157
  /* The footer lockup's mark, and the line its links take on hover. */
154
158
  --footer-mark-height: 38px;
155
159
  --footer-link-hover-decoration: none;
160
+ /* The footer's column links' size: 1em is the footer's own, as they
161
+ always inherited it. */
162
+ --footer-link-size: 1em;
163
+ /* How far in from each side the rule above the closing bar starts:
164
+ 0px runs it the bar's full width, as always. */
165
+ --closing-rule-inset: 0px;
166
+ /* The gap between the hero's actions, side by side or stacked. */
167
+ --hero-actions-gap: 14px;
156
168
  }
157
169
 
158
170
  /* ---- Long words ----
@@ -186,6 +198,25 @@
186
198
  white-space: nowrap;
187
199
  }
188
200
 
201
+ /* Words a screen reader hears and the eye does not: the one visually
202
+ hidden rule every component uses (a new tab's note, a control's own
203
+ label, a grade's spoken words), here because every sheet needs it as
204
+ it needs the defaults. It carries no token. The elements that had a
205
+ copy of their own keep its name beside this one (.rc-sr,
206
+ .data-table-empty-label, .rw-select-label), so a site rule written
207
+ against one still reaches it; the old names go in the next major. */
208
+ .atelic-ui .visually-hidden {
209
+ position: absolute;
210
+ width: 1px;
211
+ height: 1px;
212
+ margin: -1px;
213
+ padding: 0;
214
+ overflow: hidden;
215
+ clip-path: inset(50%);
216
+ white-space: nowrap;
217
+ border: 0;
218
+ }
219
+
189
220
  /* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
190
221
  122, so a backdrop that reads --shade finds nothing there. The shade is
191
222
  given to the backdrop itself under its own name, which a backdrop reads
@@ -1074,12 +1074,14 @@
1074
1074
  padding-top: calc(var(--nav-height) + 30px);
1075
1075
  }
1076
1076
  /* The room between the hero's kicker, headline, lead, and actions: each
1077
- its own as it always was (18, 22, and 32px; 12, 22, and 26px on the
1078
- split hero), or one --hero-stack-gap for all three when a theme sets
1079
- it, so each read keeps its own default in place. */
1077
+ gap its own token (--hero-gap-kicker, --hero-gap-lead,
1078
+ --hero-gap-actions), then the one --hero-stack-gap when a theme sets
1079
+ it, then the value it always had (18, 22, and 32px; 12, 22, and 26px
1080
+ on the split hero). The defaults differ by layout and name another
1081
+ token, so each stays at its read. */
1080
1082
  .atelic-ui .hero h1 {
1081
1083
  color: var(--on-dark);
1082
- margin: var(--hero-stack-gap, 18px) 0 0;
1084
+ margin: var(--hero-gap-kicker, var(--hero-stack-gap, 18px)) 0 0;
1083
1085
  text-shadow: 0 2px 30px color-mix(in srgb, var(--shade) 25%, transparent);
1084
1086
  }
1085
1087
  .atelic-ui .hero h1 .serif {
@@ -1088,7 +1090,13 @@
1088
1090
  /* The hero's eyebrow line, at the eyebrow primitive's own look (its
1089
1091
  private properties, primitives.css) unless a theme sets the hero's
1090
1092
  kicker tokens. */
1093
+ /* --hero-kicker-display: block and --hero-kicker-leading lay the kicker
1094
+ out as a block whose height is its own line height. Unset it stays the
1095
+ inline block it was, in the copy's line box, which stands it taller
1096
+ than its own type (both read in place, inherited by default). */
1091
1097
  .atelic-ui .hero .eyebrow {
1098
+ display: var(--hero-kicker-display, inline-block);
1099
+ line-height: var(--hero-kicker-leading, inherit);
1092
1100
  font-size: var(--hero-kicker-size, var(--_eyebrow-size));
1093
1101
  font-weight: var(--hero-kicker-weight, var(--_eyebrow-weight));
1094
1102
  letter-spacing: var(--hero-kicker-tracking, var(--_eyebrow-tracking));
@@ -1103,9 +1111,9 @@
1103
1111
  .atelic-ui .hero-sub {
1104
1112
  font-size: var(--hero-lead-size);
1105
1113
  max-width: var(--hero-lead-measure);
1106
- margin-top: var(--hero-stack-gap, 22px);
1114
+ margin-top: var(--hero-gap-lead, var(--hero-stack-gap, 22px));
1107
1115
  color: color-mix(in srgb, var(--on-dark) 92%, transparent);
1108
- line-height: 1.55;
1116
+ line-height: var(--hero-lead-leading);
1109
1117
  }
1110
1118
  .atelic-ui .hero-trust {
1111
1119
  display: flex;
@@ -1196,30 +1204,35 @@
1196
1204
  /* --hero-split-pad sets the copy's sides outright, for a design that
1197
1205
  wants them tighter than the wrap's edge. Its default is the edge
1198
1206
  computed on this element, so it stays at the read. */
1199
- padding: var(--section-space) var(--hero-split-pad, var(--hero-split-edge));
1207
+ padding: var(--hero-split-pad-block, var(--section-space))
1208
+ var(--hero-split-pad, var(--hero-split-edge));
1200
1209
  }
1201
1210
  /* From 900px the copy sits beside the photo under the transparent header;
1202
1211
  below it the photo stacks first and takes the header, so the copy needs
1203
1212
  no clearance. */
1204
1213
  @media (min-width: 900px) {
1205
1214
  .atelic-ui main:not(.clears-nav) .hero.is-split .hero-split-inner {
1206
- padding-top: calc(var(--nav-height, 72px) + var(--section-space));
1215
+ padding-top: calc(
1216
+ var(--nav-height, 72px) +
1217
+ var(--hero-split-pad-block, var(--section-space))
1218
+ );
1207
1219
  }
1208
1220
  }
1209
1221
  .atelic-ui .hero.is-split h1 {
1210
1222
  font-size: clamp(2.1rem, 4vw, 3.3rem);
1211
1223
  line-height: 1.05;
1212
- margin-top: var(--hero-stack-gap, 12px);
1224
+ margin-top: var(--hero-gap-kicker, var(--hero-stack-gap, 12px));
1213
1225
  text-shadow: none;
1214
1226
  }
1215
1227
  .atelic-ui .hero.is-split .hero-sub {
1216
1228
  color: var(--on-primary);
1217
1229
  }
1218
1230
  .atelic-ui .hero .cta-row {
1219
- margin-top: var(--hero-stack-gap, 32px);
1231
+ gap: var(--hero-actions-gap);
1232
+ margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 32px));
1220
1233
  }
1221
1234
  .atelic-ui .hero.is-split .cta-row {
1222
- margin-top: var(--hero-stack-gap, 26px);
1235
+ margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 26px));
1223
1236
  }
1224
1237
  .atelic-ui .hero-split-media {
1225
1238
  position: relative;
@@ -2269,19 +2282,6 @@
2269
2282
  .atelic-ui .rw-select-end {
2270
2283
  margin-left: auto;
2271
2284
  }
2272
- /* The control's own label is visually hidden — the selected option
2273
- already reads as the label ("All services", "Newest") — but screen
2274
- readers still get a name for each dropdown. */
2275
- .atelic-ui .rw-select-label {
2276
- position: absolute;
2277
- width: 1px;
2278
- height: 1px;
2279
- padding: 0;
2280
- margin: -1px;
2281
- overflow: hidden;
2282
- clip-path: inset(50%);
2283
- white-space: nowrap;
2284
- }
2285
2285
  .atelic-ui .rw-select select {
2286
2286
  appearance: none;
2287
2287
  font: inherit;
package/src/types.ts CHANGED
@@ -303,6 +303,12 @@ export interface PostalAddress {
303
303
  }
304
304
 
305
305
  /** One row of opening hours, already formatted by the site. */
306
+ /**
307
+ * Where the footer sets the hours: `column`, a column of their own beside
308
+ * the link columns, or `brand`, a compact list inside the brand column.
309
+ */
310
+ export type FooterHoursPlacement = "column" | "brand";
311
+
306
312
  export interface HoursRow {
307
313
  /** The day label as printed, e.g. "Mon" or "Fri to Sun". */
308
314
  label: string;