@uvalib/web-components 1.7.0 → 1.8.3

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 (140) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +60 -15
  3. package/dist/base/states.d.ts +12 -0
  4. package/dist/base/states.js +33 -0
  5. package/dist/base/states.js.map +1 -0
  6. package/dist/base.css +69 -6
  7. package/dist/components/bento-box/BentoBox.js +1 -0
  8. package/dist/components/bento-box/BentoBox.js.map +1 -1
  9. package/dist/components/events-section/EventsSection.js +1 -0
  10. package/dist/components/events-section/EventsSection.js.map +1 -1
  11. package/dist/components/library-hours/hours-data.js +1 -1
  12. package/dist/components/library-hours/hours-data.js.map +1 -1
  13. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js +1 -0
  14. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js.map +1 -1
  15. package/dist/components/site-main-nav/SiteMainNav.d.ts +1 -1
  16. package/dist/components/site-main-nav/SiteMainNav.js +9 -2
  17. package/dist/components/site-main-nav/SiteMainNav.js.map +1 -1
  18. package/dist/components/site-page/SitePage.d.ts +1 -1
  19. package/dist/components/site-page/SitePage.js +3 -2
  20. package/dist/components/site-page/SitePage.js.map +1 -1
  21. package/dist/components/site-style/SiteStyle.d.ts +1 -1
  22. package/dist/components/site-style/SiteStyle.js +3 -2
  23. package/dist/components/site-style/SiteStyle.js.map +1 -1
  24. package/dist/components/uvalib-card/UvalibCard.js +6 -0
  25. package/dist/components/uvalib-card/UvalibCard.js.map +1 -1
  26. package/dist/components/uvalib-combobox/UvalibCombobox.d.ts +27 -0
  27. package/dist/components/uvalib-combobox/UvalibCombobox.js +85 -1
  28. package/dist/components/uvalib-combobox/UvalibCombobox.js.map +1 -1
  29. package/dist/components/uvalib-contents/UvalibContents.js +5 -0
  30. package/dist/components/uvalib-contents/UvalibContents.js.map +1 -1
  31. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.d.ts +6 -0
  32. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js +10 -0
  33. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js.map +1 -1
  34. package/dist/components/uvalib-image-regions/UvalibImageRegions.js +2 -0
  35. package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -1
  36. package/dist/components/uvalib-image-regions/regions.d.ts +6 -2
  37. package/dist/components/uvalib-image-regions/regions.js +6 -3
  38. package/dist/components/uvalib-image-regions/regions.js.map +1 -1
  39. package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +9 -2
  40. package/dist/components/uvalib-lightbox/UvalibLightbox.js +23 -3
  41. package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
  42. package/dist/components/uvalib-lightbox/compare.d.ts +30 -3
  43. package/dist/components/uvalib-lightbox/compare.js +98 -29
  44. package/dist/components/uvalib-lightbox/compare.js.map +1 -1
  45. package/dist/components/uvalib-map/UvalibMap.js +2 -2
  46. package/dist/components/uvalib-map/UvalibMap.js.map +1 -1
  47. package/dist/components/uvalib-metadata/UvalibMetadata.js +3 -0
  48. package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -1
  49. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +3 -1
  50. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  51. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +3 -3
  52. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +16 -8
  53. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -1
  54. package/dist/components/uvalib-tag-list/UvalibTagList.d.ts +4 -1
  55. package/dist/components/uvalib-tag-list/UvalibTagList.js +9 -2
  56. package/dist/components/uvalib-tag-list/UvalibTagList.js.map +1 -1
  57. package/dist/custom-elements.json +1992 -1681
  58. package/dist/pagefind.css +8 -1
  59. package/dist/styles/base.js +8 -1
  60. package/dist/styles/base.js.map +1 -1
  61. package/dist/styles/font-fallback.d.ts +17 -0
  62. package/dist/styles/font-fallback.js +64 -0
  63. package/dist/styles/font-fallback.js.map +1 -0
  64. package/dist/styles/message.js +4 -0
  65. package/dist/styles/message.js.map +1 -1
  66. package/dist/styles/pagefind.js +8 -1
  67. package/dist/styles/pagefind.js.map +1 -1
  68. package/dist/styles/result-list.js +25 -4
  69. package/dist/styles/result-list.js.map +1 -1
  70. package/dist/styles/results.js +17 -2
  71. package/dist/styles/results.js.map +1 -1
  72. package/dist/styles/tokens.js +1 -1
  73. package/dist/tokens.css +47 -1
  74. package/dist-cdn/base.css +69 -6
  75. package/dist-cdn/bento-box.js +1 -0
  76. package/dist-cdn/bento-box.js.map +1 -1
  77. package/dist-cdn/chunks/{base-BI8h0Gf3.js → base-CIX_-Rmo.js} +58 -6
  78. package/dist-cdn/chunks/base-CIX_-Rmo.js.map +1 -0
  79. package/dist-cdn/chunks/{compare-DV6ltvsJ.js → compare-C0nhByn7.js} +66 -29
  80. package/dist-cdn/chunks/compare-C0nhByn7.js.map +1 -0
  81. package/dist-cdn/chunks/{hours-data-Bw6vkIw7.js → hours-data-gMu5uT7H.js} +2 -2
  82. package/dist-cdn/chunks/hours-data-gMu5uT7H.js.map +1 -0
  83. package/dist-cdn/chunks/{library-weekly-hours-CrV3TlP5.js → library-weekly-hours-BJgxAyah.js} +3 -2
  84. package/dist-cdn/chunks/library-weekly-hours-BJgxAyah.js.map +1 -0
  85. package/dist-cdn/chunks/{regions-B8ExwUGP.js → regions-B-rOwa-v.js} +15 -15
  86. package/dist-cdn/chunks/regions-B-rOwa-v.js.map +1 -0
  87. package/dist-cdn/chunks/{site-header-DYRMpdBj.js → site-header-CEmNtmk5.js} +2 -2
  88. package/dist-cdn/chunks/{site-header-DYRMpdBj.js.map → site-header-CEmNtmk5.js.map} +1 -1
  89. package/dist-cdn/chunks/{site-main-nav-DURrQMal.js → site-main-nav-CAwKq_x5.js} +9 -2
  90. package/dist-cdn/chunks/site-main-nav-CAwKq_x5.js.map +1 -0
  91. package/dist-cdn/chunks/states-DGXGzcte.js +17 -0
  92. package/dist-cdn/chunks/states-DGXGzcte.js.map +1 -0
  93. package/dist-cdn/custom-elements.json +1992 -1681
  94. package/dist-cdn/events-section.js +1 -0
  95. package/dist-cdn/events-section.js.map +1 -1
  96. package/dist-cdn/library-hours-setup.js +1 -1
  97. package/dist-cdn/library-weekly-hours.js +1 -1
  98. package/dist-cdn/manifest.json +1 -1
  99. package/dist-cdn/pagefind.css +8 -1
  100. package/dist-cdn/site-header.js +1 -1
  101. package/dist-cdn/site-hours-section.js +1 -1
  102. package/dist-cdn/site-main-nav.js +1 -1
  103. package/dist-cdn/site-page.js +50 -46
  104. package/dist-cdn/site-page.js.map +1 -1
  105. package/dist-cdn/site-style.js +6 -6
  106. package/dist-cdn/site-style.js.map +1 -1
  107. package/dist-cdn/skills/uvalib-web-components/SKILL.md +6 -5
  108. package/dist-cdn/skills/uvalib-web-components/reference/components.md +36 -9
  109. package/dist-cdn/tokens.css +47 -1
  110. package/dist-cdn/uvalib-card.js +6 -0
  111. package/dist-cdn/uvalib-card.js.map +1 -1
  112. package/dist-cdn/uvalib-combobox.js +107 -68
  113. package/dist-cdn/uvalib-combobox.js.map +1 -1
  114. package/dist-cdn/uvalib-contents.js +5 -0
  115. package/dist-cdn/uvalib-contents.js.map +1 -1
  116. package/dist-cdn/uvalib-filter-drawer.js +27 -25
  117. package/dist-cdn/uvalib-filter-drawer.js.map +1 -1
  118. package/dist-cdn/uvalib-image-regions.js +3 -1
  119. package/dist-cdn/uvalib-image-regions.js.map +1 -1
  120. package/dist-cdn/uvalib-lightbox.js +80 -69
  121. package/dist-cdn/uvalib-lightbox.js.map +1 -1
  122. package/dist-cdn/uvalib-map.js +2 -2
  123. package/dist-cdn/uvalib-map.js.map +1 -1
  124. package/dist-cdn/uvalib-metadata.js +3 -0
  125. package/dist-cdn/uvalib-metadata.js.map +1 -1
  126. package/dist-cdn/uvalib-pagefind-search.js +2 -1
  127. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  128. package/dist-cdn/uvalib-photo-grid.js +4 -5
  129. package/dist-cdn/uvalib-photo-grid.js.map +1 -1
  130. package/dist-cdn/uvalib-tag-list.js +21 -16
  131. package/dist-cdn/uvalib-tag-list.js.map +1 -1
  132. package/package.json +1 -1
  133. package/skills/uvalib-web-components/SKILL.md +6 -5
  134. package/skills/uvalib-web-components/reference/components.md +36 -9
  135. package/dist-cdn/chunks/base-BI8h0Gf3.js.map +0 -1
  136. package/dist-cdn/chunks/compare-DV6ltvsJ.js.map +0 -1
  137. package/dist-cdn/chunks/hours-data-Bw6vkIw7.js.map +0 -1
  138. package/dist-cdn/chunks/library-weekly-hours-CrV3TlP5.js.map +0 -1
  139. package/dist-cdn/chunks/regions-B8ExwUGP.js.map +0 -1
  140. package/dist-cdn/chunks/site-main-nav-DURrQMal.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.8.3 — 2026-11-23
4
+
5
+ ### Other
6
+
7
+ - Merge pull request #33 from uvalib/fix/font-test-tolerance
8
+ - measure the fallback scale at 1000px within 1%
9
+
10
+ ## v1.8.2 — 2026-11-22
11
+
12
+ ### Other
13
+
14
+ - Merge branch 'fix/font-test-linux': measure the font fallback against an unscaled twin
15
+ - measure the fallback against an unscaled twin, not "Arial"
16
+
17
+ ## v1.8.1 — 2026-11-22
18
+
19
+ ### Fixes
20
+
21
+ - a metric-matched fallback for Franklin Gothic URW (issue #32)
22
+
23
+ ### Other
24
+
25
+ - Merge branch 'fix/font-fallback': a metric-matched fallback for Franklin Gothic (issue #32)
26
+ - a longer debounce for the typing-fast step
27
+
28
+ ## v1.8.0 — 2026-11-22
29
+
30
+ ### Features
31
+
32
+ - text-wrap balance on short headings, pretty on longer text
33
+ - container queries for the toolbar, result list and photo grid; text-wrap in base.css
34
+ - custom states for the filter drawer, lightbox and tag list; CSS states in the reference
35
+ - the popup in the top layer, anchored to the field, where supported
36
+ - data-version, a link's starting version, issue #31
37
+
38
+ ### Fixes
39
+
40
+ - a version's frame may start left of or above it (crops), issue #30
41
+
42
+ ### Other
43
+
44
+ - Merge branch 'integrate/modern-web': combobox top layer, custom states, container queries, text-wrap, ES2024
45
+ - ES2024 lib; toSorted and Promise.withResolvers for the copy-sorts and the ready deferred
46
+ - Merge branch 'feat/container-queries-text-wrap' into integrate/modern-web
47
+ - Merge branch 'feat/combobox-top-layer-states' into integrate/modern-web
48
+ - Merge branch 'fix/version-frame-start': crop frames (#30), a link's starting version (#31)
49
+ - uvalib-lightbox.js budget to about 12% over its measured size
50
+
3
51
  ## v1.7.0 — 2026-11-22
4
52
 
5
53
  ### Features
package/README.md CHANGED
@@ -577,7 +577,7 @@ lightbox.close({ focus: document.querySelector('h1') }); // <h1 tabindex="-1">
577
577
  lightbox.addEventListener('uvalib-lightbox-close', (e) => saveScroll(e.detail.id));
578
578
  ```
579
579
 
580
- - **Photo grid.** Each direct child that is an `<a href>` or a `<button>` is one photo. The row is about 220px tall, and 140px when the viewport is 767px or narrower, unless `row-height` is set (a bare number is pixels; `rem`, `em` and the other CSS lengths are kept). Each image keeps its shape from its `width` and `height` attributes, or from the loaded image, so the row does not jump. Every item stays a real link or button. An image with no visible text gets a visible caption from its alt, and an alt that repeats that caption is cleared so it is not announced twice. The original alt is kept for a lightbox. A different alt is kept (the accessible name still contains the visible text). An `aria-label` is left as the name. Generated "Photo N" captions renumber when the photos change order. An item with no name is captioned "Photo N" and warned about once. A child that is not a link or a button is skipped, with one warning. A badge sits on the thumbnail: `<span slot="badge">` inside the item, or `data-badge` on the item (“seq”, “3 photos”). It is part of the item’s accessible name; when the item already has an `aria-label`, the badge is appended and the author’s words stay in `data-uvalib-label`. The grid reports no analytics. Put it inside `<uvalib-lightbox>` and a plain click opens the viewer.
580
+ - **Photo grid.** Each direct child that is an `<a href>` or a `<button>` is one photo. The row is about 220px tall, and 140px when the grid itself is narrower than 48rem (767px at the usual 16px), unless `row-height` is set (a bare number is pixels; `rem`, `em` and the other CSS lengths are kept). Each image keeps its shape from its `width` and `height` attributes, or from the loaded image, so the row does not jump. Every item stays a real link or button. An image with no visible text gets a visible caption from its alt, and an alt that repeats that caption is cleared so it is not announced twice. The original alt is kept for a lightbox. A different alt is kept (the accessible name still contains the visible text). An `aria-label` is left as the name. Generated "Photo N" captions renumber when the photos change order. An item with no name is captioned "Photo N" and warned about once. A child that is not a link or a button is skipped, with one warning. A badge sits on the thumbnail: `<span slot="badge">` inside the item, or `data-badge` on the item (“seq”, “3 photos”). It is part of the item’s accessible name; when the item already has an `aria-label`, the badge is appended and the author’s words stay in `data-uvalib-label`. It follows its own width, not the viewport's: the grid is a CSS size container, so in a 250px sidebar or a drawer it takes the shorter rows too. Give it a width when it sits in a shrink-to-fit box (a flex item with no basis, an inline-block), as it no longer sizes to its photos. The grid reports no analytics. Put it inside `<uvalib-lightbox>` and a plain click opens the viewer.
581
581
  - **Motion and colour.** `prefers-reduced-motion` turns the dialog's short fade off. The backdrop, surface and focus ring use the dark-mode role tokens. Controls are at least 44px. `no-style` keeps the dialog's structure and, for the grid, the row layout: the thumbnails stay in light DOM, and those rules are what reserve each image's space.
582
582
 
583
583
  #### Versions
@@ -609,8 +609,21 @@ A photo can have more than one version of the same picture: the original scan, a
609
609
  - **Full size** offers two named links in every mode: the original and the version shown or compared ("Full size, Original" and "Full size, AI colorization"). The toolbar keeps the same height whatever the mode, and the original is always one click away.
610
610
  - **Nothing moves when the mode changes.** The controls for Switch and for Reveal and Fade share one space as tall as the taller of them (the other is hidden and inert), so the photo stays put even on a phone, where the controls wrap.
611
611
  - **In the address.** With `url-param`, `version-param="version"` keeps the comparison in sync: `?version=1` (Switch: the version shown, from 0), `?version=wipe:40` or `?version=fade:60` (the percentage of the other version shown), `?version=wipe:40:2` (compared with version 2). It is written with `replaceState` once a change settles (never one history entry per step), dropped on Previous, Next and Close, and read when the viewer opens from the address, so a link can open a photo in colour or half revealed. A click on a thumbnail starts fresh.
612
+ - **Opening on a version.** `data-version` on a link, in the `version-param` format (`1`, `wipe:50`, `fade:50`, `wipe:40:2`), opens that image on that version: a gallery of derived images (AI variants, crops, restorations) can open each on the image the visitor clicked while the original stays first, so it is still compared (and framed) as the original. It applies whenever the viewer arrives at that link: a click, `open()`, and Previous or Next (each link opens on its own start; a link without one opens on the original, in the mode the visitor chose). An address with `version-param` wins when the viewer opens from it. The image's accessible name and the version's note say the starting version at once, and the photo stays hidden until that version (and the original, which sizes a framed box) has loaded, so the original never flashes first and nothing moves. It is not the visitor's change: no `uvalib-lightbox-version` event, no analytics, nothing written to the address. A value that does not name a version of the image (`7` with two versions, `wipe:50:4`, `nope`) is ignored with one console warning, and the image opens on the original. With the `versions` callback, set `data-version` on the link too.
613
+
614
+ ```html
615
+ <a
616
+ href="/media/plate-12.jpg"
617
+ data-caption="Plate 12, expanded frame (AI)"
618
+ data-version="1"
619
+ data-versions='[{"label": "Original"}, {"label": "Expanded frame (AI)",
620
+ "href": "/media/expanded/plate-12.jpg", "frame": "percent:18,12,64,70"}]'
621
+ >…</a
622
+ >
623
+ ```
624
+
612
625
  - **Apps.** The `versions` property is a function from `{ element, id, href, index }` to the versions (or null). An entry without a label, or whose `href` is not http(s), relative or a PNG, JPEG, GIF or WebP `data:` image, is left out with one console warning; with fewer than two usable versions the image is shown as before. Previous and Next show each image's own versions (or none) in the mode the visitor chose.
613
- - **A different framing.** A version that shows more (or less) than the original, such as an AI-expanded frame, a scan of the whole plate with its border, or a crop, says where the original sits in it with `frame`: the original's box within that version, IIIF / Media Fragments style. `percent:x,y,w,h` is in percent of the version; pixels (`x,y,w,h` or `pixel:x,y,w,h`) are pixels of the version's `width` × `height`, which are then required (give the size of the version's full image, even when the viewer loads a smaller IIIF size). The first version (the original) has no frame; a frame that does not parse, or pixels without `width` and `height`, is ignored with one console warning (the version is shown with the original's framing). The viewer then draws every version at the original's scale in one box big enough for them all, with the original's pixels lined up across versions. The box is reserved from the frames as soon as the original has loaded, so a version loading, or a change of mode, never moves the page. The part of the box a version (or the original) does not cover is empty, shown with a faint hatch, never content. **Switch**: each version at its place (the original at its box, the rest empty; a crop hides the original around it). **Reveal**: the divider spans the whole box; on its start side the version, on its end side the original over its box and empty around it, so the divider shows exactly what was added. **Fade**: the version, with the original over its box fading out, so what was added around it shows from the start. Regions are defined on the original and their outlines stay on the original's box in every mode and version. Say what was added in the version's note:
626
+ - **A different framing.** A version that shows more (or less) than the original, such as an AI-expanded frame, a scan of the whole plate with its border, or a crop, says where the original sits in it with `frame`: the original's box within that version, IIIF / Media Fragments style. `percent:x,y,w,h` is in percent of the version; pixels (`x,y,w,h` or `pixel:x,y,w,h`) are pixels of the version's `width` × `height`, which are then required (give the size of the version's full image, even when the viewer loads a smaller IIIF size). The original may reach past the version: a crop's frame is larger than the crop and starts left of or above it, so `x` and `y` may be negative and `w` and `h` over 100 (or over the version's `width` and `height`); `w` and `h` must be positive. A crop that keeps the middle half each way is `percent:-50,-50,200,200`; one that keeps the right half of a 2000 × 1500 original, 1000 × 1500 itself, is `-1000,0,2000,1500` with `"width": 1000, "height": 1500`. The first version (the original) has no frame; a frame that does not parse, or pixels without `width` and `height`, is ignored with one console warning (the version is shown with the original's framing). The viewer then draws every version at the original's scale in one box big enough for them all, with the original's pixels lined up across versions. The box is reserved from the frames as soon as the original has loaded, so a version loading, or a change of mode, never moves the page. The part of the box a version (or the original) does not cover is empty, shown with a faint hatch, never content. **Switch**: each version at its place (the original at its box, the rest empty; a crop hides the original around it, so the crop shows at its place in the original's box). **Reveal**: the divider spans the whole box; on its start side the version, on its end side the original over its box and empty around it, so the divider shows exactly what was added. A crop's side shows the crop where it exists and is empty around it (the original is not drawn there), so the divider shows exactly what was cut. **Fade**: the version, with the original over its box fading out, so what was added around it shows from the start; with a crop, the original fades out to the crop where it exists and to empty around it. Regions are defined on the original and their outlines stay on the original's box in every mode and version. Say what was added in the version's note:
614
627
 
615
628
  ```html
616
629
  data-versions='[ {"label": "Original"}, {"label": "Expanded frame (AI)", "href":
@@ -618,7 +631,7 @@ A photo can have more than one version of the same picture: the original scan, a
618
631
  original edges is painted by an AI model."} ]'
619
632
  ```
620
633
 
621
- With pixels: `"frame": "430,240,1600,1400", "width": 2500, "height": 2000`.
634
+ With pixels: `"frame": "430,240,1600,1400", "width": 2500, "height": 2000`. A crop (the original reaches past it): `{"label": "Detail", "href": "/media/detail.jpg", "frame": "percent:-25,-25,150,150"}`, the middle two thirds each way.
622
635
 
623
636
  - **Event.** `uvalib-lightbox-version` when the visitor changes the comparison (once a slider settles): `detail: { id, mode, index, value }` (`mode` `switch`, `wipe` or `fade`; `index` the version shown or compared, from 0; `value` the percentage of it shown, `null` in Switch). Not fired on open or for a comparison restored from the address. Bubbles and is composed. Analytics: `['uvalib-lightbox', 'compare', '<mode>', N]` (N the version's place from 1), never a label or URL.
624
637
 
@@ -964,6 +977,10 @@ An inline message for the page's own content: a search error, a notice that resu
964
977
  - **Tokens:** inherited `--uva-*` custom properties (for example `--uva-brand-blue`, `--uva-font-family`), set on `:root` or an ancestor of the component. The full set is in `tokens.css`. Components read tokens with fallbacks and never set them.
965
978
  - **Parts (shadow mode):** on a page, `site-page::part(header)`, `site-page::part(footer)` and `site-page::part(main)`. For a standalone element, `site-header::part(header)` or `site-footer::part(footer)`.
966
979
  - **Light mode** has no shadow parts; use ordinary selectors, which win over the layered component styles.
980
+ - **Fonts and layout shift:** `<site-page>` and `<site-style>` load the Library's Adobe Fonts kit (Franklin Gothic URW). On a slow connection the page is drawn first in the next font of `--uva-font-family` and redrawn when the kit arrives. That next font is **"UVA Franklin Fallback"**: the system's Arial (Liberation Sans on Linux) scaled to Franklin Gothic's widths at each weight (400, 500, 700 and italic), with its line height, so paragraphs wrap the same before and after and the page does not move. `tokens.css`, `base.css` and the styles `<site-page>` and `<site-style>` install all define it. If you set your own `--uva-font-family`, keep `"UVA Franklin Fallback"` right after `franklin-gothic-urw`. Where neither Arial nor Liberation Sans is installed (Android), the next font in the stack is used, as before. The kit's `font-display` is set in the Adobe Fonts project (today `auto`: text can stay hidden for up to about 3 seconds before the fallback shows), not by these components. Other kit families, such as LTC Caslon Pro, have no fallback here.
981
+ - **States:** runtime state you can style without new attributes, in both modes, through custom states (`ElementInternals.states`): `uvalib-combobox:state(open)` (the popup is showing), `:state(invalid)` (shown as invalid, with `aria-invalid`) and `:state(loading)`; `uvalib-filter-drawer:state(modal)` (at or below the breakpoint) and `:state(open)`; `uvalib-lightbox:state(open)`; `uvalib-tag-list:state(expanded)` (after Show all). They are read-only from the page and never appear as attributes; in a browser without custom states they simply never match, so use them for extra styling, not for anything the page needs.
982
+ - **Own width, not the viewport's:** `<uvalib-photo-grid>`, `<uvalib-card-grid>`, `<uvalib-metadata>`, `<events-section>`, `<bento-box>` and base.css's `.uvalib-toolbar` and `.uvalib-result-list` are CSS size containers (`container-type: inline-size`) and change layout by their own width, so they adapt in a sidebar or a drawer. Container query `em`s are the container's own; inline-size containment means they fill their parent but do not size to their content, so give one a width in a shrink-to-fit box. To query them from your own CSS, name your own container rather than relying on the nearest one.
983
+ - **Line wrapping:** short headings the components render (card titles, list and section headings, the lightbox caption, the empty state's heading, a non-link result title) use `text-wrap: balance`, and longer text (card excerpts, result snippets, metadata values, messages, the empty state's sentence) `text-wrap: pretty`. Never on badges or buttons: balanced lines leave empty space in a box. It is look, so `no-style` drops it in the components (base.css keeps it); browsers without it wrap as before. Override with `text-wrap: wrap`.
967
984
  - **Highlight:** `--uva-color-highlight` and `--uva-color-on-highlight` colour highlighted search terms (`<mark>` in `.uvalib-result__snippet`): library.virginia.edu's orange-200 (`--uva-brand-orange-200`, `#ffc999`) with dark text (9.5:1) in light, `#854200` with white text (7.6:1) in dark. Read them for your own highlights, with the light values as fallbacks: `background: var(--uva-color-highlight, #ffc999); color: var(--uva-color-on-highlight, #2b2b2b)`, and keep the highlight bold (or otherwise marked) so it is not colour alone.
968
985
 
969
986
  ## Dark mode
@@ -1155,7 +1172,8 @@ The filter and the date range are controlled: set `value` (and `scopeValue`) fro
1155
1172
  - **Forms.** The element is form-associated: with `name` it submits the chosen suggestion's `value`, or else the text, in a plain `<form>`. A reset restores the `value` attribute; `required`, `disabled` and a disabled `<fieldset>` work as on an `<input>`.
1156
1173
  - **Events.** `select` (`detail: { item }`, the object you gave) when a suggestion is chosen; `change` (`detail: { value, item }`) when the value is committed: a choice, a clear, or leaving the field with changed text. Both bubble and are composed. The field's own `input` events reach the page; its native `change` and `select` do not.
1157
1174
  - **Accessibility.** A visible `label` is required (one console warning without it); `description` is a hint read with the field (`aria-describedby`). The field is a real `<input role="combobox">` with `aria-expanded`, `aria-controls` and `aria-activedescendant`; the popup is a `role="listbox"`. A polite status says “5 suggestions”, “No suggestions” or “Loading suggestions” half a second after the list settles, never on the first render. The clear button is a real button named “Clear <label>”, 44px, shown only with text, and returns focus to the field. Suggestions are at least 44px tall; the active one has a fill, a bar at its start and an outline (Highlight in forced colors), not colour alone.
1158
- - **Layout.** The popup is positioned under the field inside the element (no top layer), as wide as the field, so it never overflows a 320px screen and scrolls with the page or a scrolling container; a long list scrolls inside it with the active suggestion kept in view. An ancestor with `overflow: hidden` clips it. Dark mode follows the role tokens. `no-style` keeps the layout, the 44px targets and the hidden status.
1175
+ - **Layout.** The popup sits under the field, as wide as it, so it never overflows a 320px screen, and follows the field when the page or a scrolling container scrolls; a long list scrolls inside it with the active suggestion kept in view. Where the browser supports the Popover API and CSS anchor positioning (Chrome, Edge and Safari today), it is a manual popover in the top layer anchored to the field, so an ancestor with `overflow: hidden` or a scrolling panel (such as `<uvalib-filter-drawer>`'s) never clips it, it opens above the field when there is no room below, and inside a modal dialog it shows above the dialog. Elsewhere (Firefox today) it is positioned inside the element, and an ancestor with `overflow: hidden` clips it. Its ARIA is the same either way. Dark mode follows the role tokens. `no-style` keeps the layout, the 44px targets and the hidden status.
1176
+ - **States.** `:state(open)` while the popup shows, `:state(invalid)` while the text is shown as invalid, `:state(loading)` while `src` loads (see [Tokens and theming](#tokens-and-theming)).
1159
1177
  - **Before the script loads.** `base.css` shows the label (from the attribute) and holds the field's height, plus one line for a `description`, so nothing below moves on upgrade. A fallback `<input>` child is a working field meanwhile (with `list`, the browser's own suggestions); once upgraded it is disabled so it does not submit twice. Other children stay hidden.
1160
1178
  - **Analytics.** `select` with the label and the suggestion's position (from 1), and `clear` with the label. Never the typed text or a suggestion's text or value: they can be people's names.
1161
1179
 
@@ -1288,7 +1306,7 @@ For search pages, Virgo-like result lists and digital collections: badges and la
1288
1306
  </div>
1289
1307
  ```
1290
1308
 
1291
- - **`.uvalib-toolbar`** is a wrapping row with consistent gaps (0.75rem by 1rem), controls aligned on their bottom edge. **`__field`** stacks a label over its control (keep the visible `<label>`); **`__field--grow`** (or a `.uvalib-search-form` in the toolbar) takes the spare width. **`__group`** holds a chip group (`.uvalib-button` toggles with `aria-pressed`; give the group a name with `role="group"` and `aria-label`). **`__summary`** sits at the end in muted text (AAA). At 30em and narrower every item takes the full width, in source order.
1309
+ - **`.uvalib-toolbar`** is a wrapping row with consistent gaps (0.75rem by 1rem), controls aligned on their bottom edge. **`__field`** stacks a label over its control (keep the visible `<label>`); **`__field--grow`** (or a `.uvalib-search-form` in the toolbar) takes the spare width. **`__group`** holds a chip group (`.uvalib-button` toggles with `aria-pressed`; give the group a name with `role="group"` and `aria-label`). **`__summary`** sits at the end in muted text (AAA). When the toolbar itself is 30em wide or narrower (480px at 16px; a phone, a 250px sidebar or a drawer) every item takes the full width, in source order: it is a CSS size container (`uvalib-toolbar`), so it follows its own width, not the viewport's. In a shrink-to-fit box (a flex item with no basis), give it a width.
1292
1310
  - **`<uvalib-results-count>`** writes “Showing 48 of 3,694 shoots” (“Showing all 12 shoots”, “Showing 1 shoot”, “No shoots” for a total or a shown of 0) from `shown`, `total`, `noun` and `singular`, and keeps it in sync at once; a missing or blank `shown` / `total` is unset, not 0. A hidden polite live region announces it once the text has not changed for a second (`announce-delay`), then clears itself after five seconds. The first render is never announced, but when it had no count yet (results still loading), the first count that arrives is. A count that comes back after a different one (a new search with as many results) is announced again. Update `shown` / `total` from your script after each filter change, and leave them unset while loading rather than setting 0. `<bento-box>` and `<uvalib-pagefind-search>` announce their own counts, so do not add one beside them.
1293
1311
 
1294
1312
  ```js
@@ -1342,7 +1360,7 @@ For long result sets (hundreds or thousands of rows that re-render as the visito
1342
1360
  </ul>
1343
1361
  ```
1344
1362
 
1345
- - **`.uvalib-result-list`** is a `<ul>` without bullets; **`.uvalib-result`** a row, separated by a rule. In a row: **`__meta`** (badges, a date, a format, in small muted text), **`__title`** (the row's one link: on a heading holding the `<a>`, or on the `<a>` itself; only as wide as its text), **`__snippet`** and **`__actions`** (secondary actions, at the end of the row on wide screens and below the text, wrapping, at 40em and narrower). Put meta, title and snippet first, actions last. Keep one link per row and give each action a unique name (a visually hidden “of <title>, <date>”).
1363
+ - **`.uvalib-result-list`** is a `<ul>` without bullets; **`.uvalib-result`** a row, separated by a rule. In a row: **`__meta`** (badges, a date, a format, in small muted text), **`__title`** (the row's one link: on a heading holding the `<a>`, or on the `<a>` itself; only as wide as its text), **`__snippet`** and **`__actions`** (secondary actions, at the end of the row when the list is wide and below the text, wrapping, when the list itself is 40em wide or narrower: the list is a CSS size container, `uvalib-result-list`, so a list in a sidebar or a drawer gets the narrow layout as a phone does; in a shrink-to-fit box, give it a width). Put meta, title and snippet first, actions last. Keep one link per row and give each action a unique name (a visually hidden “of <title>, <date>”).
1346
1364
  - **Highlights:** a `<mark>` in `__snippet` is bold on `--uva-color-highlight` with `--uva-color-on-highlight` text (9.5:1 light, 7.6:1 dark), and the system Highlight colours in forced colors: never colour alone. A `<mark>` elsewhere is left to the page.
1347
1365
  - **Groups:** for date-sorted results, a heading and one list per group (by year, say); none for relevance order.
1348
1366
  - **Speed:** each row has `content-visibility: auto` with `contain-intrinsic-block-size: auto 7rem`, so rows off screen are not laid out or painted until they scroll near. They stay in the DOM and the accessibility tree; find-in-page, fragment links and focus still reach them (the browser renders a row as it is found). The rows keep 0.5rem of inline padding because that property also clips painting to the row, and the focus rings need the room. Render the rows as one HTML string or a `DocumentFragment` rather than one element at a time.
@@ -2114,7 +2132,7 @@ The UVA Library main navigation (About, Using the Library, Research & teaching s
2114
2132
  | `--uva-brand-blue` | `#232d4b` | Bar bottom border, chevrons, panel links, and the hover and expanded button text. |
2115
2133
  | `--uva-grey-100` | `#dadada` | Hover and expanded button background, and panel link hover background. |
2116
2134
  | `--uva-brand-orange` | `#e57200` | Focus ring colour, and the underline of the current page's link and group (also bold, with a 3px underline). |
2117
- | `--uva-font-family` | `franklin-gothic-urw, Arial, Helvetica, sans-serif` | Font family. |
2135
+ | `--uva-font-family` | `franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif` | Font family. |
2118
2136
  | `--uva-color-text` | | Dark-mode role token: top-level button text (else `--uva-grey-darkest`). |
2119
2137
  | `--uva-color-link` | | Dark-mode role token: chevrons, panel links, hover text and the focus ring over hover (else `--uva-brand-blue`). |
2120
2138
  | `--uva-color-surface-hover` | | Dark-mode role token: hover and open-group background (else `--uva-grey-100`). |
@@ -2178,7 +2196,7 @@ Page wrapper: skip link (inside the header landmark in shadow mode), header, a s
2178
2196
  |---|---|---|
2179
2197
  | `--uva-brand-blue` | `#232d4b` | Skip link background. |
2180
2198
  | `--uva-brand-orange` | `#e57200` | Focus ring colour (focus-visible outline). |
2181
- | `--uva-font-family` | `franklin-gothic-urw, Arial, Helvetica, sans-serif` | Page font family (global styles). |
2199
+ | `--uva-font-family` | `franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif` | Page font family (global styles). |
2182
2200
  | `--uva-font-size-base` | `17px` | Page base font size (global styles). |
2183
2201
  | `--uva-grey-darkest` | `#2b2b2b` | Page text colour (global styles). |
2184
2202
  | `--uva-color-surface` | | Dark-mode role token: page background (global styles; else none). |
@@ -2210,7 +2228,7 @@ Compatibility element. Light mode (`no-shadow-dom`) installs the tokens and base
2210
2228
 
2211
2229
  | Property | Default | Description |
2212
2230
  |---|---|---|
2213
- | `--uva-font-family` | `franklin-gothic-urw, Arial, Helvetica, sans-serif` | Font family. |
2231
+ | `--uva-font-family` | `franklin-gothic-urw, "UVA Franklin Fallback", Arial, Helvetica, sans-serif` | Font family. |
2214
2232
  | `--uva-font-size-base` | `17px` | Base font size. |
2215
2233
  | `--uva-grey-darkest` | `#2b2b2b` | Text colour. |
2216
2234
  | `--uva-color-text` | | Dark-mode role token: text colour (else `--uva-grey-darkest`). |
@@ -2436,7 +2454,7 @@ A row of chips: a segmented control or single-select filter (`mode="single"`), f
2436
2454
 
2437
2455
  ### `<uvalib-combobox>`
2438
2456
 
2439
- An editable text field that suggests values as you type, from a local list or a URL: a person, place or subject picker. It follows the WAI-ARIA APG “Editable Combobox With List Autocomplete”: a real `<input role="combobox">` and a `role="listbox"` popup under it. Suggestions come from the `items` property (`{ value, label?, description?, disabled? }` objects, or strings), from `<option>` children (directly or inside a `<datalist>`; the `label` attribute or text is the label, `data-description` the second line), or from `src`, a URL template with `{q}` (fetched 250 ms after the last keystroke once the text has `min-length` characters, default 1; a newer keystroke aborts the older request; the response is a JSON array of the same shape, or anything `transform(data, query)` turns into one). `items` wins over the children while set. Local suggestions match anywhere in the label, ignoring case and accents, those starting with the text first, then those with a word starting with it; at most `max-results` (default 50, 0 for all) are shown, which keeps a list of 16,000 people fast. The matched text is bold and underlined in a `<mark>`. Keys: Down opens the list on the first suggestion and moves (wrapping), Up opens on the last, Alt+Down opens without moving, Alt+Up closes, Enter chooses the active suggestion (and then does not submit the form; with none active, Enter submits as in any field), Escape closes the list and a second Escape clears the field, Home, End, Left and Right move the caret, and Tab leaves without choosing. A real clear button (“Clear <label>”, 44px, shown only with text) empties the field and returns focus to it. Free text is allowed: `value` is whatever is in the field, and `selected` the chosen suggestion (or null); typing after choosing clears it, and leaving the field with text that is exactly one suggestion's label chooses it. `must-choose` makes any other text invalid (“Choose one of the suggestions.”). The element is form-associated: with `name` it submits the chosen suggestion's value, or else the text, and a form reset restores the `value` attribute. `required` and `disabled` (also from a disabled fieldset) work as on an input. A polite status says “5 suggestions”, “50 of 1,234 suggestions”, “No suggestions”, “Loading suggestions” or “Couldn't load suggestions” half a second after the list settles (never on the first render); the popup shows the same notes visibly. A failed load never throws. Before it upgrades, `base.css` shows the label (from the attribute) and holds the field's height. A fallback `<input list>` child works as a plain field meanwhile; on upgrade its text, `name` and `placeholder` carry over, and it is disabled so it does not submit twice.
2457
+ An editable text field that suggests values as you type, from a local list or a URL: a person, place or subject picker. It follows the WAI-ARIA APG “Editable Combobox With List Autocomplete”: a real `<input role="combobox">` and a `role="listbox"` popup under it. Suggestions come from the `items` property (`{ value, label?, description?, disabled? }` objects, or strings), from `<option>` children (directly or inside a `<datalist>`; the `label` attribute or text is the label, `data-description` the second line), or from `src`, a URL template with `{q}` (fetched 250 ms after the last keystroke once the text has `min-length` characters, default 1; a newer keystroke aborts the older request; the response is a JSON array of the same shape, or anything `transform(data, query)` turns into one). `items` wins over the children while set. Local suggestions match anywhere in the label, ignoring case and accents, those starting with the text first, then those with a word starting with it; at most `max-results` (default 50, 0 for all) are shown, which keeps a list of 16,000 people fast. The matched text is bold and underlined in a `<mark>`. Keys: Down opens the list on the first suggestion and moves (wrapping), Up opens on the last, Alt+Down opens without moving, Alt+Up closes, Enter chooses the active suggestion (and then does not submit the form; with none active, Enter submits as in any field), Escape closes the list and a second Escape clears the field, Home, End, Left and Right move the caret, and Tab leaves without choosing. A real clear button (“Clear <label>”, 44px, shown only with text) empties the field and returns focus to it. Free text is allowed: `value` is whatever is in the field, and `selected` the chosen suggestion (or null); typing after choosing clears it, and leaving the field with text that is exactly one suggestion's label chooses it. `must-choose` makes any other text invalid (“Choose one of the suggestions.”). The element is form-associated: with `name` it submits the chosen suggestion's value, or else the text, and a form reset restores the `value` attribute. `required` and `disabled` (also from a disabled fieldset) work as on an input. A polite status says “5 suggestions”, “50 of 1,234 suggestions”, “No suggestions”, “Loading suggestions” or “Couldn't load suggestions” half a second after the list settles (never on the first render); the popup shows the same notes visibly. A failed load never throws. Where the browser supports the Popover API and CSS anchor positioning, the popup is a manual popover in the top layer, anchored under the field and as wide as it (above it when there is no room below), so an ancestor with `overflow: hidden` or a scrolling panel never clips it. Elsewhere it is positioned under the field inside the element, as before. Pages can style the runtime state with `:state(open)`, `:state(invalid)` and `:state(loading)` (no attributes are added). Before it upgrades, `base.css` shows the label (from the attribute) and holds the field's height. A fallback `<input list>` child works as a plain field meanwhile; on upgrade its text, `name` and `placeholder` carry over, and it is disabled so it does not submit twice.
2440
2458
 
2441
2459
  #### Attributes
2442
2460
 
@@ -2467,6 +2485,14 @@ An editable text field that suggests values as you type, from a local list or a
2467
2485
  | `option` | Each suggestion. |
2468
2486
  | `description` | The hint under the field. |
2469
2487
 
2488
+ #### CSS states
2489
+
2490
+ | State | Description |
2491
+ |---|---|
2492
+ | `:state(open)` | The popup is showing (suggestions or a note such as “No suggestions”). |
2493
+ | `:state(invalid)` | The text was shown as invalid (`aria-invalid="true"`: `must-choose` text that is not a suggestion, after leaving the field or pressing Enter). |
2494
+ | `:state(loading)` | Suggestions from `src` are loading. |
2495
+
2470
2496
  #### Events
2471
2497
 
2472
2498
  | Event | Description |
@@ -2683,7 +2709,7 @@ A faceted-search filter: a fieldset of checkboxes (value plus result count), opt
2683
2709
 
2684
2710
  ### `<uvalib-filter-drawer>`
2685
2711
 
2686
- A search page's form and filters: a plain sidebar on wide screens, and on narrow ones a “Search and filters” button that opens them in a modal panel from the side. Put the page's search form, `<uvalib-filter>`s and other facets inside. Above `breakpoint` (default `48rem`) they are shown as written: no button, no dialog role. At and below it only the button is shown; it opens a native `<dialog>` (`showModal()`) with a visible heading (the `label`) and a 44px Close button, which takes focus. Escape, Close and a click on the backdrop close it, and focus returns to the button; widening the window past the breakpoint closes it and keeps focus where it was. While it is open the rest of the page, including `<site-page>`'s header, skip link and alerts, is inert (the browser's modal dialog), so focus cannot leave it except to the browser itself, and nothing else is announced. The children are the same nodes in both layouts (moved, never re-created): typed text, checked boxes, listeners and each filter's state are kept. Inert content is not announced, so results counts and status notices outside the panel would go silent while the visitor filters: name them in `live` (space-separated ids) and the drawer repeats what they announce in its own polite live region while it is open. `count` (the page's number of active filters) is shown on the button when above 0. The drawer never counts by itself: only the page knows which inputs are filters.
2712
+ A search page's form and filters: a plain sidebar on wide screens, and on narrow ones a “Search and filters” button that opens them in a modal panel from the side. Put the page's search form, `<uvalib-filter>`s and other facets inside. Above `breakpoint` (default `48rem`) they are shown as written: no button, no dialog role. At and below it only the button is shown; it opens a native `<dialog>` (`showModal()`) with a visible heading (the `label`) and a 44px Close button, which takes focus. Escape, Close and a click on the backdrop close it, and focus returns to the button; widening the window past the breakpoint closes it and keeps focus where it was. While it is open the rest of the page, including `<site-page>`'s header, skip link and alerts, is inert (the browser's modal dialog), so focus cannot leave it except to the browser itself, and nothing else is announced. The children are the same nodes in both layouts (moved, never re-created): typed text, checked boxes, listeners and each filter's state are kept. Inert content is not announced, so results counts and status notices outside the panel would go silent while the visitor filters: name them in `live` (space-separated ids) and the drawer repeats what they announce in its own polite live region while it is open. `count` (the page's number of active filters) is shown on the button when above 0. The drawer never counts by itself: only the page knows which inputs are filters. Pages can style the runtime layout with `:state(modal)` (at or below the breakpoint: the button and panel) and `:state(open)` (the panel is open).
2687
2713
 
2688
2714
  #### Attributes
2689
2715
 
@@ -2715,6 +2741,13 @@ A search page's form and filters: a plain sidebar on wide screens, and on narrow
2715
2741
  | `close` | The Close button. |
2716
2742
  | `body` | The wrapper of the children, in the sidebar or the panel. |
2717
2743
 
2744
+ #### CSS states
2745
+
2746
+ | State | Description |
2747
+ |---|---|
2748
+ | `:state(modal)` | The viewport is at or below the breakpoint: the button and panel, not the sidebar. |
2749
+ | `:state(open)` | The panel is open. |
2750
+
2718
2751
  #### Events
2719
2752
 
2720
2753
  | Event | Description |
@@ -2797,7 +2830,7 @@ An image with numbered region outlines (people, objects, inscriptions) and a lis
2797
2830
 
2798
2831
  ### `<uvalib-lightbox>`
2799
2832
 
2800
- An accessible image viewer over a set of plain links. With JavaScript a primary click opens a modal dialog; without it (or with a modified click) the link opens the image as before. Wrap the links, or point at them with `selector` (for example `a.pb-image` on a reading page). There is no autoplay and no carousel. The dialog is labelled by the caption (`data-caption`, else the image alt, else the link text). Focus moves to Close on open and back to the trigger on close. Escape and a click on the backdrop close it. With more than one image, Previous and Next and the arrow keys move through the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the original image in a new tab. A IIIF Image API URL keeps its region; only the size becomes `!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for example `photo`) keeps `?photo=<id>` in sync, including on a hash route (`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and Back closes. Optional details: children with `slot="details"` (and `data-for` equal to the item's id or its position from 1; without `data-for` they show for every image), or `data-details-id` on a link pointing at an element elsewhere on the page. Either is shown inside the dialog and put back exactly (same place, `hidden` and `slot`) when the viewer moves on or closes. The `data-details-id` element stays in the page (in shadow mode it becomes a child of the lightbox slotted into the dialog), so `getElementById`, the page's CSS (except selectors through its old ancestors) and listeners keep working; nothing is cloned. Details that appear while their image is open (rendered after a fetch) are shown then. `open(idOrIndex)` and `close({ focus })` let the page open or close the viewer itself; `uvalib-lightbox-open` and `uvalib-lightbox-close` say when it did. Optional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of `{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by `;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback. The open image then shows numbered outlines (`<uvalib-image-regions>`, loaded on first use) and a list of the regions beside it, with a "Show regions" toggle (`aria-pressed`) that hides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height` when set (the viewer shows a resized IIIF image), else in the image's natural size. Or the page's own list, with its own buttons: `data-regions-list="<id>"` on a link (or the `regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page, usually `hidden`. While that image is open the list (the same nodes, so the page's listeners keep working) is the region list: in shadow mode it becomes a child of the lightbox slotted into the viewer, not moved into the shadow root, so the page's CSS still applies to it. When the image changes or the viewer closes it goes back where it was, `hidden` as before. It wins over `data-regions`. Optional versions of an image (an original scan and an AI colorization, a restoration, an infrared capture): `data-versions` on a link, a JSON array of `{ label, href?, note? }` whose first entry is the link's own image, or the `versions` callback. The viewer then compares them over the photo (loaded on first use): Switch (a segmented control), Reveal (a divider: click or tap the photo, or use the slider) or Fade (a slider), `compare` choosing the first. A version's `note` shows under the photo while it is visible, and the image's accessible name ends with the label of the version shown. `version-param` (with `url-param`) keeps the comparison in the address: `?version=2` (Switch, the version from 0), `?version=wipe:40` or `?version=fade:60` (the percentage of the other version shown; `wipe:40:2` compares the original with version 2). A version with a different framing (an AI-expanded frame, a crop, the whole plate) gives `frame`, the original's box in it (`percent:x,y,w,h`, or pixels of its `width` × `height`): the viewer draws every version at the original's scale in one box, the original lined up, and regions stay on it.
2833
+ An accessible image viewer over a set of plain links. With JavaScript a primary click opens a modal dialog; without it (or with a modified click) the link opens the image as before. Wrap the links, or point at them with `selector` (for example `a.pb-image` on a reading page). There is no autoplay and no carousel. The dialog is labelled by the caption (`data-caption`, else the image alt, else the link text). Focus moves to Close on open and back to the trigger on close. Escape and a click on the backdrop close it. With more than one image, Previous and Next and the arrow keys move through the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the original image in a new tab. A IIIF Image API URL keeps its region; only the size becomes `!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for example `photo`) keeps `?photo=<id>` in sync, including on a hash route (`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and Back closes. Optional details: children with `slot="details"` (and `data-for` equal to the item's id or its position from 1; without `data-for` they show for every image), or `data-details-id` on a link pointing at an element elsewhere on the page. Either is shown inside the dialog and put back exactly (same place, `hidden` and `slot`) when the viewer moves on or closes. The `data-details-id` element stays in the page (in shadow mode it becomes a child of the lightbox slotted into the dialog), so `getElementById`, the page's CSS (except selectors through its old ancestors) and listeners keep working; nothing is cloned. Details that appear while their image is open (rendered after a fetch) are shown then. `open(idOrIndex)` and `close({ focus })` let the page open or close the viewer itself; `uvalib-lightbox-open` and `uvalib-lightbox-close` say when it did. Optional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of `{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by `;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback. The open image then shows numbered outlines (`<uvalib-image-regions>`, loaded on first use) and a list of the regions beside it, with a "Show regions" toggle (`aria-pressed`) that hides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height` when set (the viewer shows a resized IIIF image), else in the image's natural size. Or the page's own list, with its own buttons: `data-regions-list="<id>"` on a link (or the `regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page, usually `hidden`. While that image is open the list (the same nodes, so the page's listeners keep working) is the region list: in shadow mode it becomes a child of the lightbox slotted into the viewer, not moved into the shadow root, so the page's CSS still applies to it. When the image changes or the viewer closes it goes back where it was, `hidden` as before. It wins over `data-regions`. Optional versions of an image (an original scan and an AI colorization, a restoration, an infrared capture): `data-versions` on a link, a JSON array of `{ label, href?, note? }` whose first entry is the link's own image, or the `versions` callback. The viewer then compares them over the photo (loaded on first use): Switch (a segmented control), Reveal (a divider: click or tap the photo, or use the slider) or Fade (a slider), `compare` choosing the first. A version's `note` shows under the photo while it is visible, and the image's accessible name ends with the label of the version shown. `version-param` (with `url-param`) keeps the comparison in the address: `?version=2` (Switch, the version from 0), `?version=wipe:40` or `?version=fade:60` (the percentage of the other version shown; `wipe:40:2` compares the original with version 2). `data-version` on a link (the same values) opens that image on that version, from a click, `open()` or Previous and Next; an address with `version-param` wins. A version with a different framing (an AI-expanded frame, a crop, the whole plate) gives `frame`, the original's box in it (`percent:x,y,w,h`, or pixels of its `width` × `height`): the viewer draws every version at the original's scale in one box, the original lined up, and regions stay on it. Pages can style the element while the viewer is open with `:state(open)`.
2801
2834
 
2802
2835
  #### Attributes
2803
2836
 
@@ -2831,6 +2864,12 @@ An accessible image viewer over a set of plain links. With JavaScript a primary
2831
2864
  | `regions` | The `<uvalib-image-regions>` around an image with regions. |
2832
2865
  | `compare` | The version comparison controls and notes under the photo. |
2833
2866
 
2867
+ #### CSS states
2868
+
2869
+ | State | Description |
2870
+ |---|---|
2871
+ | `:state(open)` | The viewer is open. |
2872
+
2834
2873
  #### Events
2835
2874
 
2836
2875
  | Event | Description |
@@ -3039,13 +3078,13 @@ Previous/next section links, as on a reading page, or a numbered page list. Prev
3039
3078
 
3040
3079
  ### `<uvalib-photo-grid>`
3041
3080
 
3042
- Justified rows of thumbnails. Each direct child that is a link or a button is one photo; its image keeps its shape from the `width` and `height` attributes, or from the loaded image, so the row does not jump when the picture arrives. The row is about 220px tall and shorter on a phone; `row-height` sets that height. Every item stays a real link or button. An image with no visible text gets a visible caption from its alt (the caption is then the accessible name, and a repeated alt is cleared). The original alt is kept in `data-uvalib-alt` so a lightbox still describes the picture. An item with no name at all is captioned “Photo N” and warned about once; that caption is renumbered when the photos change order. An `aria-label` is left as the name: the grid does not add a caption that would disagree with it. Put the grid inside `<uvalib-lightbox>` and a plain click opens the viewer. A badge sits on the thumbnail: `<span slot="badge">` inside the link or button, or `data-badge` on that item (for example “seq” or “3 photos”). It is read after the caption (“The Lawn, 3 photos”). When the item already has an `aria-label`, the badge is appended to that label (the author’s words stay in `data-uvalib-label`) and an alt that repeats those words is cleared. A badge does not replace the alt caption.
3081
+ Justified rows of thumbnails. Each direct child that is a link or a button is one photo; its image keeps its shape from the `width` and `height` attributes, or from the loaded image, so the row does not jump when the picture arrives. The row is about 220px tall and shorter when the grid is narrow (a phone, a sidebar); `row-height` sets that height. Every item stays a real link or button. An image with no visible text gets a visible caption from its alt (the caption is then the accessible name, and a repeated alt is cleared). The original alt is kept in `data-uvalib-alt` so a lightbox still describes the picture. An item with no name at all is captioned “Photo N” and warned about once; that caption is renumbered when the photos change order. An `aria-label` is left as the name: the grid does not add a caption that would disagree with it. Put the grid inside `<uvalib-lightbox>` and a plain click opens the viewer. A badge sits on the thumbnail: `<span slot="badge">` inside the link or button, or `data-badge` on that item (for example “seq” or “3 photos”). It is read after the caption (“The Lawn, 3 photos”). When the item already has an `aria-label`, the badge is appended to that label (the author’s words stay in `data-uvalib-label`) and an alt that repeats those words is cleared. A badge does not replace the alt caption.
3043
3082
 
3044
3083
  #### Attributes
3045
3084
 
3046
3085
  | Attribute | Type | Default | Description |
3047
3086
  |---|---|---|---|
3048
- | `row-height` | `string` | `''` | Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`, `vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the viewport is 767px or narrower. |
3087
+ | `row-height` | `string` | `''` | Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`, `vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the grid itself is narrower than 48rem (a phone, a sidebar, a drawer). |
3049
3088
  | `no-shadow-dom` | `boolean` | `false` | |
3050
3089
  | `no-style` | `boolean` | `false` | |
3051
3090
 
@@ -3139,7 +3178,7 @@ Tabs, as on library.virginia.edu: a row of buttons over one visible panel. Each
3139
3178
 
3140
3179
  ### `<uvalib-tag-list>`
3141
3180
 
3142
- A labelled list of keywords or subjects that wraps: each tag a link (for example a search for that term) or plain text. Link tags are outlined pills in the link colour; plain tags are filled chips (the card chip's colours), so a link never looks like a label. Every tag and the toggle are at least 2rem (34px) tall and wide, 0.5rem apart. Give the tags as children: `<a href>` for a link, any other element (`<span>`) for plain text. A child's `lang` and `dir` are kept, and so is inline markup inside it (`em`, `cite`, `abbr`, `bdi`, a `span lang`…), copied element by element (never parsed as HTML). Or set `href-template` (with `{tag}`, replaced by the URL-encoded text) to make every tag without its own href a link; a blank href counts as none. Apps can set the `items` property (`{ label, href?, lang?, dir? }`) instead; it wins over the children. Children with no text are skipped with one warning. `label` names the list (shown above it, or visually hidden with `hide-label`); without one a console warning is logged. `limit` shows that many tags and a “Show all N” button (`aria-expanded`, `aria-controls`), which reveals the rest in place and keeps focus. Analytics never sends a tag's text (record tags can be user-submitted or machine-made), and by default not the label either, which a template may fill from a record: the name is the list's place among the tag lists on the page, `list N`. Add `track-label` when the label is fixed text the page author wrote (“Subjects”), to send it instead.
3181
+ A labelled list of keywords or subjects that wraps: each tag a link (for example a search for that term) or plain text. Link tags are outlined pills in the link colour; plain tags are filled chips (the card chip's colours), so a link never looks like a label. Every tag and the toggle are at least 2rem (34px) tall and wide, 0.5rem apart. Give the tags as children: `<a href>` for a link, any other element (`<span>`) for plain text. A child's `lang` and `dir` are kept, and so is inline markup inside it (`em`, `cite`, `abbr`, `bdi`, a `span lang`…), copied element by element (never parsed as HTML). Or set `href-template` (with `{tag}`, replaced by the URL-encoded text) to make every tag without its own href a link; a blank href counts as none. Apps can set the `items` property (`{ label, href?, lang?, dir? }`) instead; it wins over the children. Children with no text are skipped with one warning. `label` names the list (shown above it, or visually hidden with `hide-label`); without one a console warning is logged. `limit` shows that many tags and a “Show all N” button (`aria-expanded`, `aria-controls`), which reveals the rest in place and keeps focus. Pages can style the list while every tag is shown with `:state(expanded)`. Analytics never sends a tag's text (record tags can be user-submitted or machine-made), and by default not the label either, which a template may fill from a record: the name is the list's place among the tag lists on the page, `list N`. Add `track-label` when the label is fixed text the page author wrote (“Subjects”), to send it instead.
3143
3182
 
3144
3183
  #### Attributes
3145
3184
 
@@ -3153,6 +3192,12 @@ A labelled list of keywords or subjects that wraps: each tag a link (for example
3153
3192
  | `no-shadow-dom` | `boolean` | `false` | |
3154
3193
  | `no-style` | `boolean` | `false` | |
3155
3194
 
3195
+ #### CSS states
3196
+
3197
+ | State | Description |
3198
+ |---|---|
3199
+ | `:state(expanded)` | Show all was pressed: every tag is shown (the toggle's `aria-expanded="true"`). |
3200
+
3156
3201
  #### Events
3157
3202
 
3158
3203
  | Event | Description |
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Custom states (`ElementInternals.states`, matched by `:state(name)`): runtime flags a page
3
+ * can style but not set. They reach CSS only, never assistive technologies, so each one
4
+ * mirrors state the component already exposes (aria-expanded, aria-invalid, a dialog's open).
5
+ */
6
+ /** The element's internals, or undefined where the browser has none (or they are taken). */
7
+ export declare function attachStateInternals(el: HTMLElement): ElementInternals | undefined;
8
+ /**
9
+ * Turn `name` on or off. A no-op without `states` (older engines), and where only the old
10
+ * `--name` syntax is accepted (Chromium before 125 throws on a plain name).
11
+ */
12
+ export declare function setState(internals: ElementInternals | undefined, name: string, on: boolean): void;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Custom states (`ElementInternals.states`, matched by `:state(name)`): runtime flags a page
3
+ * can style but not set. They reach CSS only, never assistive technologies, so each one
4
+ * mirrors state the component already exposes (aria-expanded, aria-invalid, a dialog's open).
5
+ */
6
+ /** The element's internals, or undefined where the browser has none (or they are taken). */
7
+ export function attachStateInternals(el) {
8
+ try {
9
+ return typeof el.attachInternals === 'function' ? el.attachInternals() : undefined;
10
+ }
11
+ catch {
12
+ return undefined;
13
+ }
14
+ }
15
+ /**
16
+ * Turn `name` on or off. A no-op without `states` (older engines), and where only the old
17
+ * `--name` syntax is accepted (Chromium before 125 throws on a plain name).
18
+ */
19
+ export function setState(internals, name, on) {
20
+ const states = internals?.states;
21
+ if (!states)
22
+ return;
23
+ try {
24
+ if (on)
25
+ states.add(name);
26
+ else
27
+ states.delete(name);
28
+ }
29
+ catch {
30
+ // Not supported in this form: the state simply never matches.
31
+ }
32
+ }
33
+ //# sourceMappingURL=states.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"states.js","sourceRoot":"","sources":["../../src/base/states.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4FAA4F;AAC5F,MAAM,UAAU,oBAAoB,CAAC,EAAe;IAClD,IAAI,CAAC;QACH,OAAO,OAAO,EAAE,CAAC,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACrF,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,SAAuC,EAAE,IAAY,EAAE,EAAW;IACzF,MAAM,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC;IACjC,IAAI,CAAC,MAAM;QAAE,OAAO;IACpB,IAAI,CAAC;QACH,IAAI,EAAE;YAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;;YACpB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,8DAA8D;IAChE,CAAC;AACH,CAAC"}
package/dist/base.css CHANGED
@@ -1,4 +1,50 @@
1
1
 
2
+ @font-face {
3
+ font-family: 'UVA Franklin Fallback';
4
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
5
+ font-weight: 100 450;
6
+ font-style: normal;
7
+ size-adjust: 94.52%;
8
+ ascent-override: 100.93%;
9
+ descent-override: 26.56%;
10
+ line-gap-override: 0%;
11
+ }
12
+ @font-face {
13
+ font-family: 'UVA Franklin Fallback';
14
+ src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
15
+ font-weight: 451 599;
16
+ font-style: normal;
17
+ size-adjust: 95.99%;
18
+ ascent-override: 99.18%;
19
+ descent-override: 26.04%;
20
+ line-gap-override: 0%;
21
+ }
22
+ @font-face {
23
+ font-family: 'UVA Franklin Fallback';
24
+ src:
25
+ local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
26
+ local('LiberationSans-Bold');
27
+ font-weight: 600 1000;
28
+ font-style: normal;
29
+ size-adjust: 91.32%;
30
+ ascent-override: 104.03%;
31
+ descent-override: 27.38%;
32
+ line-gap-override: 0%;
33
+ }
34
+ @font-face {
35
+ font-family: 'UVA Franklin Fallback';
36
+ src:
37
+ local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'),
38
+ local('LiberationSans-Italic');
39
+ font-weight: 100 599;
40
+ font-style: italic;
41
+ size-adjust: 95.06%;
42
+ ascent-override: 101.09%;
43
+ descent-override: 26.4%;
44
+ line-gap-override: 0%;
45
+ }
46
+
47
+
2
48
  *,
3
49
  *::before,
4
50
  *::after {
@@ -6,7 +52,14 @@
6
52
  }
7
53
  html,
8
54
  body {
9
- font-family: var(--uva-font-family, franklin-gothic-urw, Arial, Helvetica, sans-serif);
55
+ font-family: var(
56
+ --uva-font-family,
57
+ franklin-gothic-urw,
58
+ 'UVA Franklin Fallback',
59
+ Arial,
60
+ Helvetica,
61
+ sans-serif
62
+ );
10
63
  }
11
64
  html {
12
65
  font-size: var(--uva-font-size-base, 17px);
@@ -487,6 +540,7 @@
487
540
 
488
541
  /* A results toolbar: search, selects, chip groups and the count, wrapping on phones. */
489
542
  .uvalib-toolbar {
543
+ container: uvalib-toolbar / inline-size;
490
544
  display: flex;
491
545
  flex-wrap: wrap;
492
546
  align-items: flex-end;
@@ -506,7 +560,7 @@
506
560
  .uvalib-toolbar__field > .uvalib-input {
507
561
  inline-size: 100%;
508
562
  }
509
- /* :where keeps it as specific as the phone rule below, which then wins. */
563
+ /* :where keeps it as specific as the narrow rule below, which then wins. */
510
564
  .uvalib-toolbar > :where(.uvalib-toolbar__field--grow, .uvalib-search-form) {
511
565
  flex: 1 1 16rem;
512
566
  }
@@ -521,7 +575,8 @@
521
575
  margin-inline-start: auto;
522
576
  color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f));
523
577
  }
524
- @media (max-width: 30em) {
578
+ /* A narrow toolbar (a phone, a sidebar, a drawer): every item on its own line. */
579
+ @container uvalib-toolbar (width <= 30em) {
525
580
  .uvalib-toolbar > * {
526
581
  flex: 1 1 100%;
527
582
  }
@@ -554,9 +609,11 @@
554
609
  .uvalib-empty-state > :is(h2, h3, h4, .uvalib-empty-state__heading) {
555
610
  font-size: 1.25rem;
556
611
  line-height: 1.3;
612
+ text-wrap: balance;
557
613
  }
558
614
  .uvalib-empty-state > p {
559
615
  color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f));
616
+ text-wrap: pretty;
560
617
  }
561
618
 
562
619
  /* Loading placeholders: a box (give it a height or an aspect ratio) and a text line, which
@@ -637,6 +694,7 @@
637
694
  color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b));
638
695
  line-height: 1.5;
639
696
  overflow-wrap: anywhere;
697
+ text-wrap: pretty;
640
698
  }
641
699
  .uvalib-message > :first-child {
642
700
  margin-block-start: 0;
@@ -692,6 +750,7 @@
692
750
 
693
751
  .uvalib-result-list {
694
752
  display: block;
753
+ container: uvalib-result-list / inline-size;
695
754
  margin: 0 0 1rem;
696
755
  padding: 0;
697
756
  list-style: none;
@@ -730,6 +789,9 @@
730
789
  font-weight: 600;
731
790
  line-height: 1.4;
732
791
  }
792
+ .uvalib-result__title:not(a) {
793
+ text-wrap: balance;
794
+ }
733
795
  :is(a.uvalib-result__title, .uvalib-result__title a) {
734
796
  color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
735
797
  text-decoration: underline;
@@ -746,6 +808,7 @@
746
808
  .uvalib-result__snippet {
747
809
  display: block;
748
810
  margin-block-start: 0.25rem;
811
+ text-wrap: pretty;
749
812
  }
750
813
  .uvalib-result__snippet mark {
751
814
  padding-inline: 0.1em;
@@ -754,7 +817,7 @@
754
817
  color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b));
755
818
  font-weight: 700;
756
819
  }
757
- /* Wide: the actions at the end of the row, beside its first lines. */
820
+ /* A wide list: the actions at the end of the row, beside its first lines. */
758
821
  .uvalib-result > .uvalib-result__actions {
759
822
  display: flex;
760
823
  flex-wrap: wrap;
@@ -763,8 +826,8 @@
763
826
  grid-column: 2;
764
827
  grid-row: 1 / span 4;
765
828
  }
766
- /* Phones: the actions below the row's text, wrapping. */
767
- @media (max-width: 40em) {
829
+ /* A narrow list (a phone, a sidebar, a drawer): the actions below the row's text, wrapping. */
830
+ @container uvalib-result-list (width <= 40em) {
768
831
  .uvalib-result > .uvalib-result__actions {
769
832
  justify-content: flex-start;
770
833
  grid-column: 1;
@@ -184,6 +184,7 @@ export class BentoBox extends UvalibElement {
184
184
  font-size: 1.5rem;
185
185
  font-weight: 500;
186
186
  line-height: 1.3;
187
+ text-wrap: balance;
187
188
  }
188
189
  .bs-search-term {
189
190
  font-style: italic;
@@ -1 +1 @@
1
- {"version":3,"file":"BentoBox.js","sourceRoot":"","sources":["../../../src/components/bento-box/BentoBox.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAuB,MAAM,iBAAiB,CAAC;AAEzF,mEAAmE;AACnE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAU,CAAC;AAGpF,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,IAAI,IAAI,GAAY,KAAK,CAAC;IAC1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC;YACH,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,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M,QAAQ,CAAC;IACrE,CAAC;;AAhMD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAChB;AAIX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACjB;AAIV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;gDAE8B;AAIvF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;kDACrB;AAIvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACQ;AAOnC;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,CAAC;uCACiB;AAQxE;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;8CACjC;AAEL;IAAhB,KAAK,EAAE;+CAAuC;AAE9B;IAAhB,KAAK,EAAE;wCAAqB"}
@@ -167,6 +167,7 @@ export class EventsSection extends UvalibElement {
167
167
  font-size: 1rem;
168
168
  line-height: 1.3;
169
169
  color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
170
+ text-wrap: balance;
170
171
  }
171
172
  .event-time {
172
173
  grid-area: 2 / 2 / 3 / 3;