@uvalib/web-components 1.6.0 → 1.8.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +133 -12
  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 +15 -5
  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/uvalib-card/UvalibCard.js +6 -0
  16. package/dist/components/uvalib-card/UvalibCard.js.map +1 -1
  17. package/dist/components/uvalib-combobox/UvalibCombobox.d.ts +27 -0
  18. package/dist/components/uvalib-combobox/UvalibCombobox.js +85 -1
  19. package/dist/components/uvalib-combobox/UvalibCombobox.js.map +1 -1
  20. package/dist/components/uvalib-contents/UvalibContents.js +5 -0
  21. package/dist/components/uvalib-contents/UvalibContents.js.map +1 -1
  22. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.d.ts +6 -0
  23. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js +10 -0
  24. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js.map +1 -1
  25. package/dist/components/uvalib-image-regions/UvalibImageRegions.d.ts +1 -0
  26. package/dist/components/uvalib-image-regions/UvalibImageRegions.js +4 -1
  27. package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -1
  28. package/dist/components/uvalib-image-regions/regions.d.ts +6 -2
  29. package/dist/components/uvalib-image-regions/regions.js +6 -3
  30. package/dist/components/uvalib-image-regions/regions.js.map +1 -1
  31. package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +100 -7
  32. package/dist/components/uvalib-lightbox/UvalibLightbox.js +310 -83
  33. package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
  34. package/dist/components/uvalib-lightbox/compare.d.ts +48 -8
  35. package/dist/components/uvalib-lightbox/compare.js +226 -22
  36. package/dist/components/uvalib-lightbox/compare.js.map +1 -1
  37. package/dist/components/uvalib-map/UvalibMap.js +2 -2
  38. package/dist/components/uvalib-map/UvalibMap.js.map +1 -1
  39. package/dist/components/uvalib-metadata/UvalibMetadata.js +3 -0
  40. package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -1
  41. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +3 -1
  42. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  43. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +3 -3
  44. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +16 -8
  45. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -1
  46. package/dist/components/uvalib-tag-list/UvalibTagList.d.ts +4 -1
  47. package/dist/components/uvalib-tag-list/UvalibTagList.js +9 -2
  48. package/dist/components/uvalib-tag-list/UvalibTagList.js.map +1 -1
  49. package/dist/custom-elements.json +596 -19
  50. package/dist/styles/message.js +4 -0
  51. package/dist/styles/message.js.map +1 -1
  52. package/dist/styles/result-list.js +25 -4
  53. package/dist/styles/result-list.js.map +1 -1
  54. package/dist/styles/results.js +17 -2
  55. package/dist/styles/results.js.map +1 -1
  56. package/dist-cdn/base.css +15 -5
  57. package/dist-cdn/bento-box.js +1 -0
  58. package/dist-cdn/bento-box.js.map +1 -1
  59. package/dist-cdn/chunks/{compare-D4VdaIJN.js → compare-C0nhByn7.js} +185 -56
  60. package/dist-cdn/chunks/compare-C0nhByn7.js.map +1 -0
  61. package/dist-cdn/chunks/{hours-data-Bw6vkIw7.js → hours-data-gMu5uT7H.js} +2 -2
  62. package/dist-cdn/chunks/hours-data-gMu5uT7H.js.map +1 -0
  63. package/dist-cdn/chunks/{library-weekly-hours-CrV3TlP5.js → library-weekly-hours-BJgxAyah.js} +3 -2
  64. package/dist-cdn/chunks/library-weekly-hours-BJgxAyah.js.map +1 -0
  65. package/dist-cdn/chunks/{regions-B8ExwUGP.js → regions-B-rOwa-v.js} +15 -15
  66. package/dist-cdn/chunks/regions-B-rOwa-v.js.map +1 -0
  67. package/dist-cdn/chunks/states-DGXGzcte.js +17 -0
  68. package/dist-cdn/chunks/states-DGXGzcte.js.map +1 -0
  69. package/dist-cdn/custom-elements.json +596 -19
  70. package/dist-cdn/events-section.js +1 -0
  71. package/dist-cdn/events-section.js.map +1 -1
  72. package/dist-cdn/library-hours-setup.js +1 -1
  73. package/dist-cdn/library-weekly-hours.js +1 -1
  74. package/dist-cdn/manifest.json +1 -1
  75. package/dist-cdn/site-hours-section.js +1 -1
  76. package/dist-cdn/skills/uvalib-web-components/SKILL.md +8 -6
  77. package/dist-cdn/skills/uvalib-web-components/reference/components.md +37 -6
  78. package/dist-cdn/uvalib-card.js +6 -0
  79. package/dist-cdn/uvalib-card.js.map +1 -1
  80. package/dist-cdn/uvalib-combobox.js +107 -68
  81. package/dist-cdn/uvalib-combobox.js.map +1 -1
  82. package/dist-cdn/uvalib-contents.js +5 -0
  83. package/dist-cdn/uvalib-contents.js.map +1 -1
  84. package/dist-cdn/uvalib-filter-drawer.js +27 -25
  85. package/dist-cdn/uvalib-filter-drawer.js.map +1 -1
  86. package/dist-cdn/uvalib-image-regions.js +4 -2
  87. package/dist-cdn/uvalib-image-regions.js.map +1 -1
  88. package/dist-cdn/uvalib-lightbox.js +230 -129
  89. package/dist-cdn/uvalib-lightbox.js.map +1 -1
  90. package/dist-cdn/uvalib-map.js +2 -2
  91. package/dist-cdn/uvalib-map.js.map +1 -1
  92. package/dist-cdn/uvalib-metadata.js +3 -0
  93. package/dist-cdn/uvalib-metadata.js.map +1 -1
  94. package/dist-cdn/uvalib-pagefind-search.js +2 -1
  95. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  96. package/dist-cdn/uvalib-photo-grid.js +4 -5
  97. package/dist-cdn/uvalib-photo-grid.js.map +1 -1
  98. package/dist-cdn/uvalib-tag-list.js +21 -16
  99. package/dist-cdn/uvalib-tag-list.js.map +1 -1
  100. package/package.json +1 -1
  101. package/skills/uvalib-web-components/SKILL.md +8 -6
  102. package/skills/uvalib-web-components/reference/components.md +37 -6
  103. package/dist-cdn/chunks/compare-D4VdaIJN.js.map +0 -1
  104. package/dist-cdn/chunks/hours-data-Bw6vkIw7.js.map +0 -1
  105. package/dist-cdn/chunks/library-weekly-hours-CrV3TlP5.js.map +0 -1
  106. package/dist-cdn/chunks/regions-B8ExwUGP.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.8.0 — 2026-11-22
4
+
5
+ ### Features
6
+
7
+ - text-wrap balance on short headings, pretty on longer text
8
+ - container queries for the toolbar, result list and photo grid; text-wrap in base.css
9
+ - custom states for the filter drawer, lightbox and tag list; CSS states in the reference
10
+ - the popup in the top layer, anchored to the field, where supported
11
+ - data-version, a link's starting version, issue #31
12
+
13
+ ### Fixes
14
+
15
+ - a version's frame may start left of or above it (crops), issue #30
16
+
17
+ ### Other
18
+
19
+ - Merge branch 'integrate/modern-web': combobox top layer, custom states, container queries, text-wrap, ES2024
20
+ - ES2024 lib; toSorted and Promise.withResolvers for the copy-sorts and the ready deferred
21
+ - Merge branch 'feat/container-queries-text-wrap' into integrate/modern-web
22
+ - Merge branch 'feat/combobox-top-layer-states' into integrate/modern-web
23
+ - Merge branch 'fix/version-frame-start': crop frames (#30), a link's starting version (#31)
24
+ - uvalib-lightbox.js budget to about 12% over its measured size
25
+
26
+ ## v1.7.0 — 2026-11-22
27
+
28
+ ### Features
29
+
30
+ - details stay in the page; open(), close() and open/close events (issues #27, #26)
31
+ - versions with a different framing: frame says where the original sits (issue #28)
32
+
33
+ ### Other
34
+
35
+ - Merge branch 'integrate/lightbox-1.7': lightbox open()/close() and events (#26), details kept in the page (#27), version framing (#28), React docs (#29)
36
+ - Merge branch 'feat/version-framing' into integrate/lightbox-1.7
37
+ - Merge branch 'feat/lightbox-api-details' into integrate/lightbox-1.7
38
+
3
39
  ## v1.6.0 — 2026-11-22
4
40
 
5
41
  ### Features
package/README.md CHANGED
@@ -566,13 +566,23 @@ Both follow dark mode through the role tokens and reflow at 320px; `no-style` ke
566
566
  - **Caption and id.** The caption is `data-caption`, else the image alt, else the link's own text, else `title`, else "Image". The deep-link id is `data-id`, else the element's `id`, else the IIIF identifier, else the position from 1.
567
567
  - **IIIF.** An Image API URL keeps its region (a crop or `square` stays). Only the size becomes `!W,H` for the viewport (CSS pixels times the screen density, at most 2, and at most 2000 pixels on a side). TIFF and JPEG2000 URLs are left as written. Full size still opens the original href, and only for an http(s) URL or a PNG, JPEG, GIF or WebP `data:` image. A resize while the viewer is open asks for the new size and is not an analytics event. Other image URLs are used as written. A `javascript:` URL, and an SVG `data:` URL, are refused.
568
568
  - **Deep link.** `url-param="photo"` keeps `?photo=<id>` in sync: opening pushes a history entry, stepping replaces it, and Back closes. On a hash route (`#/text`, or a hash that already contains `?`) the parameter is written inside the hash (`#/text?photo=<id>`). Opening from a URL that already has the parameter is not a new action, and neither is Back or Forward. With `<site-analytics spa="auto">` (or `<uvalib-analytics spa="auto">`), that opening push is a same-document route change, so Matomo may count one page view; stepping replaces the entry and does not.
569
- - **Details.** A child with `slot="details"` (optional `data-for` equal to the item's id or its position from 1; without `data-for` it shows for every image), or `data-details-id` on a link naming an element elsewhere on the page. It is shown in the dialog and put back when the viewer moves on or closes.
570
- - **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.
569
+ - **Details.** A child with `slot="details"` (optional `data-for` equal to the item's id or its position from 1; without `data-for` it shows for every image), or `data-details-id` on a link naming an element elsewhere on the page. It is shown in the dialog and put back exactly (same parent and place, same `hidden` and `slot`) when the viewer moves on or closes. The `data-details-id` element is the page's own node, never a copy, and it stays in the page: in shadow mode it becomes a child of `<uvalib-lightbox>` (with `slot="uvalib-details"`) slotted into the dialog, never moved into the shadow root; with `no-shadow-dom` it moves into the dialog, which is in the page too. So `document.getElementById`, your listeners and your CSS keep working, except selectors through its old ancestors (`.sidebar .note`): style it by its own id or class. Details that appear while their image is open are shown then: a `data-details-id` element rendered after a fetch (or given its id later), or a `slot="details"` child added or retargeted with `data-for`. An element you remove while it is shown is not put back. For React and other frameworks see [React and other frameworks](#react-and-other-frameworks).
570
+ - **Opening and closing from the page.** `open(idOrIndex)` opens an item as a click on its link would (the id `url-param` writes, or the place from 0) and returns `false` when there is no such item; with the viewer open it shows that item. `close({ focus })` closes as Close does, `url-param`/`version-param` included (Back when the viewer pushed the entry, so no extra history entries), and returns `false` when it was not open. Focus goes to `focus` when given (for example the page's `<h1 tabindex="-1">` after a delete), else to the item's link; when that link has left the page, to the first image link left, else to the lightbox itself (with `tabindex="-1"` until it loses focus). `open()` reports no analytics (it is the page's call, not a visitor's click).
571
+ - **Events.** `uvalib-lightbox-open` (`detail: { id, index, restored }`) when the viewer opens, from a click, `open()` or the address (`restored: true` for a reload with `url-param`, Back and Forward); not when it moves to another image. `uvalib-lightbox-close` (`detail: { id, index, reason }`, the image that was shown) when it closes: `reason` is `close` (Close, Escape, the backdrop), `api` (`close()`), `history` (Back or Forward) or `empty` (the last image left the page). Not fired when the element is removed. Both bubble and are composed, and follow the analytics event for the same click.
572
+ - **When the open image's link is removed** (the page deleted that item), the viewer keeps showing it, and the address still names it, until the visitor moves on (it then drops out of the set) or the page calls `close()`; it never jumps to another image on its own. Removing the last link closes the viewer (`reason: 'empty'`). After a delete, call `close({ focus })`:
573
+
574
+ ```js
575
+ await deleteVariant(id);
576
+ lightbox.close({ focus: document.querySelector('h1') }); // <h1 tabindex="-1">
577
+ lightbox.addEventListener('uvalib-lightbox-close', (e) => saveScroll(e.detail.id));
578
+ ```
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 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.
571
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.
572
582
 
573
583
  #### Versions
574
584
 
575
- A photo can have more than one version of the same picture: the original scan, an AI colorization of a black-and-white photograph, a restoration, an infrared or UV capture. Name them with `data-versions` on the link, a JSON array of `{ label, href?, note? }` whose first entry is the link's own image (its `href` may be left out), and the viewer compares them over the photo. Every version must have the same size and framing, so regions, the caption and the details stay as they are. See the [Image versions](https://uvalib.github.io/reusable-web-library/#image-versions) example.
585
+ A photo can have more than one version of the same picture: the original scan, an AI colorization of a black-and-white photograph, a restoration, an infrared or UV capture. Name them with `data-versions` on the link, a JSON array of `{ label, href?, note? }` whose first entry is the link's own image (its `href` may be left out), and the viewer compares them over the photo. Versions share the original's framing unless one says otherwise with `frame` (see **A different framing** below); regions, the caption and the details stay as they are. See the [Image versions](https://uvalib.github.io/reusable-web-library/#image-versions) example.
576
586
 
577
587
  ```html
578
588
  <uvalib-lightbox url-param="photo" version-param="version" compare="wipe">
@@ -599,7 +609,30 @@ A photo can have more than one version of the same picture: the original scan, a
599
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.
600
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.
601
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
+
602
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.
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:
627
+
628
+ ```html
629
+ data-versions='[ {"label": "Original"}, {"label": "Expanded frame (AI)", "href":
630
+ "/media/expanded/lawn-games.jpg", "frame": "percent:18,12,64,70", "note": "Everything outside the
631
+ original edges is painted by an AI model."} ]'
632
+ ```
633
+
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.
635
+
603
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.
604
637
 
605
638
  ### Image regions
@@ -714,6 +747,59 @@ document.addEventListener('uvalib-image-regions-activate', (e) => {
714
747
  - **Analytics.** `select` when an outline is clicked, with the list's `label` and the region's number. Never a region's label: it may be a person's name. Nothing on hover or focus.
715
748
  - **Motion and styles.** The dimming fades only without `prefers-reduced-motion: reduce`. Shadow and light DOM; `no-style` keeps the layout and the outlines.
716
749
 
750
+ #### React and other frameworks
751
+
752
+ The lightbox lends the page's own nodes (a `data-regions-list` list, a `data-details-id` element) to the viewer: it moves them, and puts them back on close. With a framework that delegates events, render _into_ those nodes, never the nodes themselves.
753
+
754
+ - **Why clicks stop.** React (17 and later, including 18 and 19) does not listen on each button: it listens on the root container and on each portal's container, and routes a click by the container whose listener hears it. A list rendered _inside_ a portal (`createPortal(<ol data-…>…</ol>, panel)`) belongs to that portal; when the viewer moves the `<ol>` out of the portal's container, its clicks no longer pass through that container's listener, and the root's listener leaves portal events to the portal, so `onClick` silently never runs. React may also throw when it later removes a node that is not where it left it. Vue, Svelte and others do not route events this way, but they too expect to find the nodes they rendered where they put them.
755
+ - **What works.** Create the `<ol>` (or the details element) once, outside the framework, make it the portal's target, and render only the entries into it. React then listens on the `<ol>` itself, and that listener moves with it, so clicks keep working while it is lent; the framework never moves or removes the `<ol>`. Do the same for details: the `data-details-id` element is the portal target, and its contents are the framework's. Details rendered after a fetch are picked up while their image is open.
756
+
757
+ ```jsx
758
+ // Illustrative. One list and one details element per photo, made outside React.
759
+ function useLentElement(tag, id) {
760
+ const [el] = useState(() => {
761
+ const node = document.createElement(tag);
762
+ node.id = id;
763
+ node.hidden = true; // the viewer shows it while its photo is open
764
+ document.body.append(node);
765
+ return node;
766
+ });
767
+ useEffect(() => () => el.remove(), [el]);
768
+ return el;
769
+ }
770
+
771
+ function Photo({ photo }) {
772
+ const people = useLentElement('ol', `people-${photo.id}`);
773
+ const details = useLentElement('div', `details-${photo.id}`);
774
+ return (
775
+ <>
776
+ <a
777
+ href={photo.full}
778
+ data-id={photo.id}
779
+ data-regions-list={people.id}
780
+ data-details-id={details.id}
781
+ >
782
+ <img src={photo.thumb} alt={photo.alt} width={photo.w} height={photo.h} />
783
+ </a>
784
+ {createPortal(
785
+ photo.people.map((p) => (
786
+ <li key={p.id} data-xywh={p.xywh}>
787
+ {p.name}
788
+ <button type="button" onClick={() => confirm(p)}>
789
+ Confirm {p.name}
790
+ </button>
791
+ </li>
792
+ )),
793
+ people,
794
+ )}
795
+ {createPortal(<PhotoDetails photo={photo} />, details)}
796
+ </>
797
+ );
798
+ }
799
+ ```
800
+
801
+ `no-shadow-dom` is not needed for this. A lightbox `regionsList` callback that returns such an element works the same way.
802
+
717
803
  ## Maps
718
804
 
719
805
  `<uvalib-map>` shows places (buildings, rooms, outdoor spaces) as markers sized by a count, each a link to the place's page, with a list of the same places under the map. It wraps [Leaflet](https://leafletjs.com) 1.9, which **your page provides**: the library never bundles Leaflet, and its CDN entry imports nothing from it. `leaflet` is an optional peer dependency of the npm package. Entry: `uvalib-map.js` on the CDN, `@uvalib/web-components/uvalib-map.js` on npm. See the [Map](https://uvalib.github.io/reusable-web-library/#places-map) example.
@@ -891,6 +977,9 @@ An inline message for the page's own content: a search error, a notice that resu
891
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.
892
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)`.
893
979
  - **Light mode** has no shadow parts; use ordinary selectors, which win over the layered component styles.
980
+ - **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.
981
+ - **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.
982
+ - **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`.
894
983
  - **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.
895
984
 
896
985
  ## Dark mode
@@ -1082,7 +1171,8 @@ The filter and the date range are controlled: set `value` (and `scopeValue`) fro
1082
1171
  - **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>`.
1083
1172
  - **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.
1084
1173
  - **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.
1085
- - **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.
1174
+ - **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.
1175
+ - **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)).
1086
1176
  - **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.
1087
1177
  - **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.
1088
1178
 
@@ -1215,7 +1305,7 @@ For search pages, Virgo-like result lists and digital collections: badges and la
1215
1305
  </div>
1216
1306
  ```
1217
1307
 
1218
- - **`.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.
1308
+ - **`.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.
1219
1309
  - **`<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.
1220
1310
 
1221
1311
  ```js
@@ -1269,7 +1359,7 @@ For long result sets (hundreds or thousands of rows that re-render as the visito
1269
1359
  </ul>
1270
1360
  ```
1271
1361
 
1272
- - **`.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>”).
1362
+ - **`.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>”).
1273
1363
  - **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.
1274
1364
  - **Groups:** for date-sorted results, a heading and one list per group (by year, say); none for relevance order.
1275
1365
  - **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.
@@ -2363,7 +2453,7 @@ A row of chips: a segmented control or single-select filter (`mode="single"`), f
2363
2453
 
2364
2454
  ### `<uvalib-combobox>`
2365
2455
 
2366
- 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.
2456
+ 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.
2367
2457
 
2368
2458
  #### Attributes
2369
2459
 
@@ -2394,6 +2484,14 @@ An editable text field that suggests values as you type, from a local list or a
2394
2484
  | `option` | Each suggestion. |
2395
2485
  | `description` | The hint under the field. |
2396
2486
 
2487
+ #### CSS states
2488
+
2489
+ | State | Description |
2490
+ |---|---|
2491
+ | `:state(open)` | The popup is showing (suggestions or a note such as “No suggestions”). |
2492
+ | `: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). |
2493
+ | `:state(loading)` | Suggestions from `src` are loading. |
2494
+
2397
2495
  #### Events
2398
2496
 
2399
2497
  | Event | Description |
@@ -2610,7 +2708,7 @@ A faceted-search filter: a fieldset of checkboxes (value plus result count), opt
2610
2708
 
2611
2709
  ### `<uvalib-filter-drawer>`
2612
2710
 
2613
- 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.
2711
+ 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).
2614
2712
 
2615
2713
  #### Attributes
2616
2714
 
@@ -2642,6 +2740,13 @@ A search page's form and filters: a plain sidebar on wide screens, and on narrow
2642
2740
  | `close` | The Close button. |
2643
2741
  | `body` | The wrapper of the children, in the sidebar or the panel. |
2644
2742
 
2743
+ #### CSS states
2744
+
2745
+ | State | Description |
2746
+ |---|---|
2747
+ | `:state(modal)` | The viewport is at or below the breakpoint: the button and panel, not the sidebar. |
2748
+ | `:state(open)` | The panel is open. |
2749
+
2645
2750
  #### Events
2646
2751
 
2647
2752
  | Event | Description |
@@ -2720,10 +2825,11 @@ An image with numbered region outlines (people, objects, inscriptions) and a lis
2720
2825
  | `--uva-color-link` | | Dark-mode role token: entry links (else `--uva-brand-blue`). |
2721
2826
  | `--uva-color-focus` | | Dark-mode role token: focus ring (else `--uva-brand-orange`). |
2722
2827
  | `--uva-color-text-muted` | | Dark-mode role token: descriptions (else #4b5563). |
2828
+ | `--uvalib-image-regions-inset` | | Where the outlines sit inside the image slot (an `inset` value, default 0): set by `<uvalib-lightbox>` when the slot holds versions with a wider framing, so the outlines stay on the original. |
2723
2829
 
2724
2830
  ### `<uvalib-lightbox>`
2725
2831
 
2726
- 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 when the viewer moves on or closes. 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).
2832
+ 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)`.
2727
2833
 
2728
2834
  #### Attributes
2729
2835
 
@@ -2757,10 +2863,19 @@ An accessible image viewer over a set of plain links. With JavaScript a primary
2757
2863
  | `regions` | The `<uvalib-image-regions>` around an image with regions. |
2758
2864
  | `compare` | The version comparison controls and notes under the photo. |
2759
2865
 
2866
+ #### CSS states
2867
+
2868
+ | State | Description |
2869
+ |---|---|
2870
+ | `:state(open)` | The viewer is open. |
2871
+
2760
2872
  #### Events
2761
2873
 
2762
2874
  | Event | Description |
2763
2875
  |---|---|
2876
+ | | |
2877
+ | `uvalib-lightbox-open` | The viewer opened (a click, `open()`, or restored from the address): `detail` is `{ id, index, restored }` (`index` from 0; `restored` true for the address, Back and Forward). Not fired when it moves to another image. Bubbles and is composed. |
2878
+ | `uvalib-lightbox-close` | The viewer closed: `detail` is `{ id, index, reason }`, the image shown and `reason` `close` (Close, Escape, the backdrop), `api` (`close()`), `history` (Back or Forward) or `empty` (the last image left the page). Not fired when the element is removed. Bubbles and is composed. |
2764
2879
  | `uvalib-lightbox-version` | The visitor changed the comparison (mode, version or position; once a slider settles): `detail` is `{ id, mode, index, value }` (`mode` `switch`, `wipe` or `fade`; `index` the version shown or compared, from 0; `value` the percentage of it shown, null for Switch). Not fired on open or for a comparison restored from the URL. Bubbles and is composed. |
2765
2880
  | `uvalib-analytics-event` | For `<site-analytics>`: `['uvalib-lightbox', 'open'\|'next'\|'previous'\|'full-size', 'image N', N]` (N from 1, the image's place in the set), and `['uvalib-lightbox', 'compare', 'switch'\|'wipe'\|'fade', N]` when the visitor changes a comparison (N the version's place from 1; once a slider settles). Never the URL, the caption or a version's label. Not fired for a viewer restored from the URL or from Back and Forward. Bubbles and is composed. |
2766
2881
 
@@ -2962,13 +3077,13 @@ Previous/next section links, as on a reading page, or a numbered page list. Prev
2962
3077
 
2963
3078
  ### `<uvalib-photo-grid>`
2964
3079
 
2965
- 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.
3080
+ 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.
2966
3081
 
2967
3082
  #### Attributes
2968
3083
 
2969
3084
  | Attribute | Type | Default | Description |
2970
3085
  |---|---|---|---|
2971
- | `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. |
3086
+ | `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). |
2972
3087
  | `no-shadow-dom` | `boolean` | `false` | |
2973
3088
  | `no-style` | `boolean` | `false` | |
2974
3089
 
@@ -3062,7 +3177,7 @@ Tabs, as on library.virginia.edu: a row of buttons over one visible panel. Each
3062
3177
 
3063
3178
  ### `<uvalib-tag-list>`
3064
3179
 
3065
- 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.
3180
+ 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.
3066
3181
 
3067
3182
  #### Attributes
3068
3183
 
@@ -3076,6 +3191,12 @@ A labelled list of keywords or subjects that wraps: each tag a link (for example
3076
3191
  | `no-shadow-dom` | `boolean` | `false` | |
3077
3192
  | `no-style` | `boolean` | `false` | |
3078
3193
 
3194
+ #### CSS states
3195
+
3196
+ | State | Description |
3197
+ |---|---|
3198
+ | `:state(expanded)` | Show all was pressed: every tag is shown (the toggle's `aria-expanded="true"`). |
3199
+
3079
3200
  #### Events
3080
3201
 
3081
3202
  | 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
@@ -487,6 +487,7 @@
487
487
 
488
488
  /* A results toolbar: search, selects, chip groups and the count, wrapping on phones. */
489
489
  .uvalib-toolbar {
490
+ container: uvalib-toolbar / inline-size;
490
491
  display: flex;
491
492
  flex-wrap: wrap;
492
493
  align-items: flex-end;
@@ -506,7 +507,7 @@
506
507
  .uvalib-toolbar__field > .uvalib-input {
507
508
  inline-size: 100%;
508
509
  }
509
- /* :where keeps it as specific as the phone rule below, which then wins. */
510
+ /* :where keeps it as specific as the narrow rule below, which then wins. */
510
511
  .uvalib-toolbar > :where(.uvalib-toolbar__field--grow, .uvalib-search-form) {
511
512
  flex: 1 1 16rem;
512
513
  }
@@ -521,7 +522,8 @@
521
522
  margin-inline-start: auto;
522
523
  color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f));
523
524
  }
524
- @media (max-width: 30em) {
525
+ /* A narrow toolbar (a phone, a sidebar, a drawer): every item on its own line. */
526
+ @container uvalib-toolbar (width <= 30em) {
525
527
  .uvalib-toolbar > * {
526
528
  flex: 1 1 100%;
527
529
  }
@@ -554,9 +556,11 @@
554
556
  .uvalib-empty-state > :is(h2, h3, h4, .uvalib-empty-state__heading) {
555
557
  font-size: 1.25rem;
556
558
  line-height: 1.3;
559
+ text-wrap: balance;
557
560
  }
558
561
  .uvalib-empty-state > p {
559
562
  color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f));
563
+ text-wrap: pretty;
560
564
  }
561
565
 
562
566
  /* Loading placeholders: a box (give it a height or an aspect ratio) and a text line, which
@@ -637,6 +641,7 @@
637
641
  color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b));
638
642
  line-height: 1.5;
639
643
  overflow-wrap: anywhere;
644
+ text-wrap: pretty;
640
645
  }
641
646
  .uvalib-message > :first-child {
642
647
  margin-block-start: 0;
@@ -692,6 +697,7 @@
692
697
 
693
698
  .uvalib-result-list {
694
699
  display: block;
700
+ container: uvalib-result-list / inline-size;
695
701
  margin: 0 0 1rem;
696
702
  padding: 0;
697
703
  list-style: none;
@@ -730,6 +736,9 @@
730
736
  font-weight: 600;
731
737
  line-height: 1.4;
732
738
  }
739
+ .uvalib-result__title:not(a) {
740
+ text-wrap: balance;
741
+ }
733
742
  :is(a.uvalib-result__title, .uvalib-result__title a) {
734
743
  color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
735
744
  text-decoration: underline;
@@ -746,6 +755,7 @@
746
755
  .uvalib-result__snippet {
747
756
  display: block;
748
757
  margin-block-start: 0.25rem;
758
+ text-wrap: pretty;
749
759
  }
750
760
  .uvalib-result__snippet mark {
751
761
  padding-inline: 0.1em;
@@ -754,7 +764,7 @@
754
764
  color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b));
755
765
  font-weight: 700;
756
766
  }
757
- /* Wide: the actions at the end of the row, beside its first lines. */
767
+ /* A wide list: the actions at the end of the row, beside its first lines. */
758
768
  .uvalib-result > .uvalib-result__actions {
759
769
  display: flex;
760
770
  flex-wrap: wrap;
@@ -763,8 +773,8 @@
763
773
  grid-column: 2;
764
774
  grid-row: 1 / span 4;
765
775
  }
766
- /* Phones: the actions below the row's text, wrapping. */
767
- @media (max-width: 40em) {
776
+ /* A narrow list (a phone, a sidebar, a drawer): the actions below the row's text, wrapping. */
777
+ @container uvalib-result-list (width <= 40em) {
768
778
  .uvalib-result > .uvalib-result__actions {
769
779
  justify-content: flex-start;
770
780
  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,CAAC,CAAC;QACxE,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,GAAG,EA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AAI,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;