@adecore/ui 0.41.0 → 0.42.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.
package/dist/theme.css CHANGED
@@ -520,19 +520,37 @@
520
520
  steps put the dim over it; both stay under `--z-popup`, so a menu in the nested dialog wins. */
521
521
  .dialog-backdrop-nested { z-index: calc(var(--z-dialog) + 1); }
522
522
  .dialog-popup-nested { z-index: calc(var(--z-dialog) + 2); }
523
- /* A lightbox is the picture and nothing else, so the popup takes the size the picture settles at
524
- instead of filling the window. The margin keeps the window's own title bar, and the traffic
525
- lights on it, in reach above a picture that is as large as it is allowed to get. */
526
- .lightbox-frame {
523
+ /* A lightbox is the picture over the whole window, without the frame of a dialog. Its bar takes
524
+ the band of the window's title bar: it drags the window like that band does, its buttons opt
525
+ out, and on Windows and Linux it keeps the native window controls' corner free. */
526
+ .dialog-popup.lightbox {
527
+ --lightbox-bar: 48px;
527
528
  --lightbox-margin: 64px;
528
- --lightbox-header: 45px;
529
+ inset: 0;
530
+ translate: none;
531
+ display: flex;
532
+ flex-direction: column;
533
+ max-width: none;
534
+ max-height: none;
535
+ border: 0;
536
+ border-radius: 0;
537
+ background: transparent;
538
+ box-shadow: none;
539
+ -webkit-app-region: no-drag;
540
+ }
541
+ .dialog-popup.lightbox[data-starting-style], .dialog-popup.lightbox[data-ending-style] { scale: 1; }
542
+ .lightbox-bar {
543
+ -webkit-app-region: drag;
544
+ padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px);
529
545
  }
530
- .lightbox-frame img {
546
+ .lightbox-bar button { -webkit-app-region: no-drag; }
547
+ /* The margin leaves room for the arrows beside a picture that is as large as it is allowed to get. */
548
+ .lightbox-stage img {
531
549
  max-width: calc(100vw - 2 * var(--lightbox-margin));
532
- max-height: calc(100dvh - 2 * var(--lightbox-margin) - var(--lightbox-header));
550
+ max-height: calc(100dvh - 2 * var(--lightbox-bar));
533
551
  }
534
552
  /* A picture holds the eye better against a heavier dim than a dialog of controls needs. */
535
- .lightbox-backdrop { background: color-mix(in srgb, var(--bg) 80%, transparent); }
553
+ .lightbox-backdrop { background: color-mix(in srgb, var(--bg) 92%, transparent); }
536
554
  /* Tooltips. The popup fades and scales from its anchor side, and drops the motion while Base UI
537
555
  says the tooltip is instant. The positioner does not animate its place: Base UI parks it at the
538
556
  window's origin until it is measured, so it would slide in from the corner. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/ui",
3
- "version": "0.41.0",
3
+ "version": "0.42.0",
4
4
  "description": "React components, a theme, formatters and a settings dialog for desktop-grade apps on React 19, Base UI and Tailwind 4.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
package/src/theme.css CHANGED
@@ -520,19 +520,37 @@
520
520
  steps put the dim over it; both stay under `--z-popup`, so a menu in the nested dialog wins. */
521
521
  .dialog-backdrop-nested { z-index: calc(var(--z-dialog) + 1); }
522
522
  .dialog-popup-nested { z-index: calc(var(--z-dialog) + 2); }
523
- /* A lightbox is the picture and nothing else, so the popup takes the size the picture settles at
524
- instead of filling the window. The margin keeps the window's own title bar, and the traffic
525
- lights on it, in reach above a picture that is as large as it is allowed to get. */
526
- .lightbox-frame {
523
+ /* A lightbox is the picture over the whole window, without the frame of a dialog. Its bar takes
524
+ the band of the window's title bar: it drags the window like that band does, its buttons opt
525
+ out, and on Windows and Linux it keeps the native window controls' corner free. */
526
+ .dialog-popup.lightbox {
527
+ --lightbox-bar: 48px;
527
528
  --lightbox-margin: 64px;
528
- --lightbox-header: 45px;
529
+ inset: 0;
530
+ translate: none;
531
+ display: flex;
532
+ flex-direction: column;
533
+ max-width: none;
534
+ max-height: none;
535
+ border: 0;
536
+ border-radius: 0;
537
+ background: transparent;
538
+ box-shadow: none;
539
+ -webkit-app-region: no-drag;
540
+ }
541
+ .dialog-popup.lightbox[data-starting-style], .dialog-popup.lightbox[data-ending-style] { scale: 1; }
542
+ .lightbox-bar {
543
+ -webkit-app-region: drag;
544
+ padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px);
529
545
  }
530
- .lightbox-frame img {
546
+ .lightbox-bar button { -webkit-app-region: no-drag; }
547
+ /* The margin leaves room for the arrows beside a picture that is as large as it is allowed to get. */
548
+ .lightbox-stage img {
531
549
  max-width: calc(100vw - 2 * var(--lightbox-margin));
532
- max-height: calc(100dvh - 2 * var(--lightbox-margin) - var(--lightbox-header));
550
+ max-height: calc(100dvh - 2 * var(--lightbox-bar));
533
551
  }
534
552
  /* A picture holds the eye better against a heavier dim than a dialog of controls needs. */
535
- .lightbox-backdrop { background: color-mix(in srgb, var(--bg) 80%, transparent); }
553
+ .lightbox-backdrop { background: color-mix(in srgb, var(--bg) 92%, transparent); }
536
554
  /* Tooltips. The popup fades and scales from its anchor side, and drops the motion while Base UI
537
555
  says the tooltip is instant. The positioner does not animate its place: Base UI parks it at the
538
556
  window's origin until it is measured, so it would slide in from the corner. */