@esportsplus/ui 0.66.0 → 0.67.1

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 (35) hide show
  1. package/README.md +2 -2
  2. package/build/components/button/scss/index.scss +1 -1
  3. package/build/components/card/scss/index.scss +1 -1
  4. package/build/components/checkbox/scss/index.scss +1 -1
  5. package/build/components/color-picker/scss/index.scss +1 -1
  6. package/build/components/command/scss/index.scss +1 -1
  7. package/build/components/group/scss/index.scss +1 -1
  8. package/build/components/highlight/scss/index.scss +1 -1
  9. package/build/components/image/scss/index.scss +1 -1
  10. package/build/components/inline-edit/scss/index.scss +1 -1
  11. package/build/components/overlay/scss/index.scss +1 -1
  12. package/build/components/pagination/scss/index.scss +1 -1
  13. package/build/components/range/scss/index.scss +1 -1
  14. package/build/components/search/scss/index.scss +1 -1
  15. package/build/components/select/scss/index.scss +1 -1
  16. package/build/components/shell/group.js +2 -2
  17. package/build/components/shell/index.d.ts +2 -2
  18. package/build/components/shell/index.js +109 -74
  19. package/build/components/shell/model.d.ts +11 -4
  20. package/build/components/shell/model.js +39 -10
  21. package/build/components/shell/scss/index.scss +1 -1
  22. package/build/components/sortable/index.d.ts +2 -1
  23. package/build/components/sortable/index.js +3 -2
  24. package/build/components/sortable/scss/index.scss +1 -1
  25. package/build/components/theme/scss/index.scss +1 -1
  26. package/build/components/toast/scss/index.scss +1 -1
  27. package/build/components/toolbar/scss/index.scss +1 -1
  28. package/build/components/tooltip/scss/index.scss +1 -1
  29. package/build/components/uptime/scss/index.scss +1 -1
  30. package/package.json +1 -1
  31. package/src/components/shell/group.ts +2 -2
  32. package/src/components/shell/index.ts +34 -12
  33. package/src/components/shell/model.ts +76 -14
  34. package/src/components/sortable/index.ts +7 -2
  35. package/src/tokens/scss/color.scss +2 -2
@@ -1,2 +1,2 @@
1
- @layer components{.uptime-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:where([data-theme=dark]) .uptime-service-percentage,:where([data-theme=light]) .uptime-service-percentage{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .036) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .036) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .036) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .036) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}.uptime{--color:var(--color-text-400);--color-degraded:var(--color-yellow-400);--color-muted:var(--color-text-300);--color-ok:var(--color-green-400);--color-outage:var(--color-red-400);--day-gap:round(down, (100cqw - var(--days) * var(--day-width)) / (var(--days) - 1), 1px);--day-gap-min:calc(var(--size-300) / 4);--day-width:round(down, (100cqw - (var(--days) - 1) * var(--day-gap-min)) / var(--days), 1px);--font-size:var(--font-size-300);--gap-horizontal:var(--size-600);--gap-vertical:var(--size-600);--width:min(440px, 100%)}.uptime-bar{--background:var(--color-ok);--border-radius:0px;--opacity:1;--scale:1;--scale-far:1;--scale-near:1.1;--scale-peak:1.2;--transition-duration:.2s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}@media (prefers-reduced-motion:reduce){.uptime-bar{--transition-duration:0s}}@media (prefers-reduced-motion:no-preference){.uptime-bar:has(+.uptime-bar+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar+.uptime-bar{--scale:var(--scale-far)}.uptime-bar:has(+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar{--scale:var(--scale-near)}.uptime-bar.--active{--scale:var(--scale-peak)}}.uptime-bar--degraded{--background:var(--color-degraded)}.uptime-bar--outage{--background:var(--color-outage)}.uptime-bars{--border-radius:0px;--height:var(--size-600)}.uptime-bars.--active>.uptime-bar:not(.--active){--opacity:.35}.uptime-service{--gap-horizontal:0px;--gap-vertical:var(--size-100);--width:calc(var(--days) * var(--day-width) + (var(--days) - 1) * var(--day-gap))}.uptime-service-axis{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300)}.uptime-service-caption{--gap-horizontal:var(--size-200);--gap-vertical:0px}.uptime-service-header{--gap-horizontal:var(--size-400);--gap-vertical:0px;--height:var(--size-400)}.uptime-service-message{--blur:var(--blur-400);--dot-size:6px;--enter-duration:.2s;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--offset:calc(var(--size-100) / 2)}@media (prefers-reduced-motion:reduce){.uptime-service-message{--enter-duration:0s}}.uptime-service-message--degraded{--dot:var(--color-degraded)}.uptime-service-message--ok{--dot:var(--color-ok)}.uptime-service-message--outage{--dot:var(--color-outage)}.uptime-service-percentage{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300);--line-color:var(--surface-border-default);--line-width:var(--border-width-400)}@container style(--surface-level:-3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:6){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.uptime{color:var(--color);font-size:var(--font-size);gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex;position:relative;container-type:inline-size}.uptime-bar{background:var(--background);border-radius:var(--border-radius);opacity:var(--opacity);scale:1 var(--scale);transform-origin:bottom;transition-duration:var(--transition-duration);transition-property:opacity,scale;transition-timing-function:var(--transition-timing-function);width:calc((100% - (var(--days) - 1) * var(--day-gap)) / var(--days));flex-shrink:0}.uptime-bars{border-radius:var(--border-radius);cursor:default;gap:var(--day-gap);height:var(--height);outline:none;display:flex}.uptime-bars:focus-visible{outline:var(--border-width-500) solid var(--color);outline-offset:calc(var(--size-100) / 2)}.uptime-service{gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex}.uptime-service-axis{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);white-space:nowrap;display:flex}.uptime-service-caption{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:flex-end;min-width:0;display:flex}.uptime-service-day,.uptime-service-percentage{font-variant-numeric:tabular-nums}.uptime-service-day{color:var(--color-muted);flex-shrink:0}.uptime-service-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);justify-content:space-between;display:flex}.uptime-service-message{animation:uptime-service-message var(--enter-duration) var(--enter-timing-function);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.uptime-service-message--active{color:var(--color)}.uptime-service-message--degraded:before,.uptime-service-message--ok:before,.uptime-service-message--outage:before{background:var(--dot);content:"";height:var(--dot-size);vertical-align:middle;width:var(--dot-size);border-radius:50%;margin-inline-end:var(--size-100);display:inline-block}.uptime-service-name{font-weight:var(--font-weight-500);flex-shrink:0}.uptime-service-percentage{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;display:flex}.uptime-service-percentage:after,.uptime-service-percentage:before{border-top:var(--line-width) solid var(--line-color);content:"";flex:1}@keyframes uptime-service-message{0%{filter:blur(var(--blur));opacity:0;translate:0 var(--offset)}}}
1
+ @layer components{.uptime-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:where([data-theme=dark]) .uptime-service-percentage,:where([data-theme=light]) .uptime-service-percentage{--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .048) c h),oklch(from var(--surface-background-active) min(1, l + .048) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .048) c h),oklch(from var(--surface-background-default) min(1, l + .048) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .048) c h),oklch(from var(--surface-background-hover) min(1, l + .048) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .048) c h),oklch(from var(--surface-background-pressed) min(1, l + .048) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1) calc(c * (1 - clamp(0, clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) + (max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016) - (max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016), 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) calc(c * clamp(0, clamp(0, l + var(--surface-level) * .016, l + .096) + (calc(var(--surface-level) + 1.6) * .016) - (var(--surface-level) * .016), 1) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h))}.uptime{--color:var(--color-text-400);--color-degraded:var(--color-yellow-400);--color-muted:var(--color-text-300);--color-ok:var(--color-green-400);--color-outage:var(--color-red-400);--day-gap:round(down, (100cqw - var(--days) * var(--day-width)) / (var(--days) - 1), 1px);--day-gap-min:calc(var(--size-300) / 4);--day-width:round(down, (100cqw - (var(--days) - 1) * var(--day-gap-min)) / var(--days), 1px);--font-size:var(--font-size-300);--gap-horizontal:var(--size-600);--gap-vertical:var(--size-600);--width:min(440px, 100%)}.uptime-bar{--background:var(--color-ok);--border-radius:0px;--opacity:1;--scale:1;--scale-far:1;--scale-near:1.1;--scale-peak:1.2;--transition-duration:.2s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}@media (prefers-reduced-motion:reduce){.uptime-bar{--transition-duration:0s}}@media (prefers-reduced-motion:no-preference){.uptime-bar:has(+.uptime-bar+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar+.uptime-bar{--scale:var(--scale-far)}.uptime-bar:has(+.uptime-bar.--active),.uptime-bar.--active+.uptime-bar{--scale:var(--scale-near)}.uptime-bar.--active{--scale:var(--scale-peak)}}.uptime-bar--degraded{--background:var(--color-degraded)}.uptime-bar--outage{--background:var(--color-outage)}.uptime-bars{--border-radius:0px;--height:var(--size-600)}.uptime-bars.--active>.uptime-bar:not(.--active){--opacity:.35}.uptime-service{--gap-horizontal:0px;--gap-vertical:var(--size-100);--width:calc(var(--days) * var(--day-width) + (var(--days) - 1) * var(--day-gap))}.uptime-service-axis{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300)}.uptime-service-caption{--gap-horizontal:var(--size-200);--gap-vertical:0px}.uptime-service-header{--gap-horizontal:var(--size-400);--gap-vertical:0px;--height:var(--size-400)}.uptime-service-message{--blur:var(--blur-400);--dot-size:6px;--enter-duration:.2s;--enter-timing-function:cubic-bezier(.23, 1, .32, 1);--offset:calc(var(--size-100) / 2)}@media (prefers-reduced-motion:reduce){.uptime-service-message{--enter-duration:0s}}.uptime-service-message--degraded{--dot:var(--color-degraded)}.uptime-service-message--ok{--dot:var(--color-ok)}.uptime-service-message--outage{--dot:var(--color-outage)}.uptime-service-percentage{--gap-horizontal:var(--size-300);--gap-vertical:var(--size-300);--line-color:var(--surface-border-default);--line-width:var(--border-width-400)}@container style(--surface-level:-3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-2;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:-1;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:-1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:0;--surface-shadow-active:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 1.75px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .5px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:0){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:1;--surface-shadow-active:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2.875px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .075)), 0 .875px 1.75px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .07));--surface-shadow-default:0 1px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px 2.25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05)), 0 .25px .5px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02));--surface-shadow-pressed:0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:1){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:2;--surface-shadow-active:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.625px 5.625px -.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.875px 3.75px -1.875px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 2px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-hover:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.75px -.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.25px 2.5px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 .75px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0075),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 .125px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .005)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:2){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:3;--surface-shadow-active:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 9.25px 13.875px -2.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 3.75px 5.75px -3.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 1px 3px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1px 2px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 5.5px 8.25px -1.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.5px 4.5px -2.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 1.5px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 1px .25px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .04)), 0 0px 0px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0))}}@container style(--surface-level:3){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:4;--surface-shadow-active:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 18.75px 23.75px -4.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 7.5px 9.5px -5.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-default:0 4px 6px -1px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2px 4px -2px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 12.5px 17.5px -3.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 5px 7px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-pressed:0 1px 2.75px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .0175),transparent), 0 .75px 1.5px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .015),transparent), 0 1px 2.125px 0px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .045)), 0 .125px .25px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01))}}@container style(--surface-level:4){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:5;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),transparent), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),transparent), 0 24.375px 46.875px -11.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .185)), 0 1px 1.25px -.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .01));--surface-shadow-default:0 10px 15px -3px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 4px 6px -4px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 21.25px 31.25px -6.75px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .11)), 0 6px 7.5px -4.5px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .06));--surface-shadow-pressed:0 3.25px 5.25px -.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.75px 3.5px -1.75px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 1.375px 3.375px -.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 1.125px 2.25px -1.125px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:5){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}@container style(--surface-level:6){:where([data-theme=dark]) .uptime-service-percentage{--surface-level:6;--surface-shadow-active:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-default:0 20px 25px -5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 8px 10px -6px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08));--surface-shadow-hover:0 25px 50px -12px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .05),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .2)), 0 0px 0px 0px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / 0));--surface-shadow-pressed:0 8.5px 12.75px -2.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 3.5px 5.5px -3.5px light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .02),transparent), 0 4.75px 7.125px -1.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08)), 0 2.25px 4.25px -2.25px light-dark(transparent,oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08))}}.uptime{color:var(--color);font-size:var(--font-size);gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex;position:relative;container-type:inline-size}.uptime-bar{background:var(--background);border-radius:var(--border-radius);opacity:var(--opacity);scale:1 var(--scale);transform-origin:bottom;transition-duration:var(--transition-duration);transition-property:opacity,scale;transition-timing-function:var(--transition-timing-function);width:calc((100% - (var(--days) - 1) * var(--day-gap)) / var(--days));flex-shrink:0}.uptime-bars{border-radius:var(--border-radius);cursor:default;gap:var(--day-gap);height:var(--height);outline:none;display:flex}.uptime-bars:focus-visible{outline:var(--border-width-500) solid var(--color);outline-offset:calc(var(--size-100) / 2)}.uptime-service{gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex}.uptime-service-axis{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);white-space:nowrap;display:flex}.uptime-service-caption{color:var(--color-muted);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:flex-end;min-width:0;display:flex}.uptime-service-day,.uptime-service-percentage{font-variant-numeric:tabular-nums}.uptime-service-day{color:var(--color-muted);flex-shrink:0}.uptime-service-header{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);height:var(--height);justify-content:space-between;display:flex}.uptime-service-message{animation:uptime-service-message var(--enter-duration) var(--enter-timing-function);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.uptime-service-message--active{color:var(--color)}.uptime-service-message--degraded:before,.uptime-service-message--ok:before,.uptime-service-message--outage:before{background:var(--dot);content:"";height:var(--dot-size);vertical-align:middle;width:var(--dot-size);border-radius:50%;margin-inline-end:var(--size-100);display:inline-block}.uptime-service-name{font-weight:var(--font-weight-500);flex-shrink:0}.uptime-service-percentage{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);flex:1;display:flex}.uptime-service-percentage:after,.uptime-service-percentage:before{border-top:var(--line-width) solid var(--line-color);content:"";flex:1}@keyframes uptime-service-message{0%{filter:blur(var(--blur));opacity:0;translate:0 var(--offset)}}}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "**/*.scss"
55
55
  ],
56
56
  "type": "module",
57
- "version": "0.66.0",
57
+ "version": "0.67.1",
58
58
  "scripts": {
59
59
  "build": "run-s build:vite build:ts",
60
60
  "build:ts": "tsc",
@@ -137,7 +137,7 @@ function tab(context: Context, live: Live, surface: Surface, attributes: Attribu
137
137
  void context.state.close(surface.id);
138
138
  }
139
139
  },
140
- onclick: () => context.state.activate(surface.id),
140
+ onclick: () => context.state.activate(surface.id, false),
141
141
  oncontextmenu: (e: MouseEvent) => context.menu(e, group.id, surface.id),
142
142
  onkeydown: (e: KeyboardEvent) => {
143
143
  if (e.key === 'Delete') {
@@ -146,7 +146,7 @@ function tab(context: Context, live: Live, surface: Surface, attributes: Attribu
146
146
  }
147
147
  else if (e.key === 'Enter' || e.key === ' ') {
148
148
  e.preventDefault();
149
- context.state.activate(surface.id);
149
+ context.state.activate(surface.id, false);
150
150
  }
151
151
  },
152
152
  // A middle press would start autoscroll before the auxclick closes the tab.
@@ -7,7 +7,7 @@ import type { Options as Scrollbar } from '~/modifiers/scrollbar';
7
7
  import { mac } from '~/shared/platform';
8
8
  import { observe } from '~/shared/resize';
9
9
  import { group, launcher, title, type Catalog, type Context, type Kind } from './group';
10
- import state, { allGroups, bounded, contains, docked, findGroup, findSplit, findSurfaceGroup, MIN_FRACTION, stationary, type Group, type Layout, type Node, type Placement, type Saved, type Split, type Store, type Surface } from './model';
10
+ import state, { allGroups, bounded, contains, docked, findGroup, findSplit, findSurfaceGroup, MIN_FRACTION, stationary, type Group, type Layout, type Node, type Placement, type Saved, type Sharing, type Split, type Store, type Surface } from './model';
11
11
  import { resized, separator } from './resize';
12
12
  import { frame, grip, resizer, sidebar, toggle, type Edge, type Options, type Sidebars } from './sidebar';
13
13
  import subtree from './subtree';
@@ -149,8 +149,9 @@ function structure(node: Node | null): unknown {
149
149
  }
150
150
 
151
151
  // Outside every tab strip, what a dragged tab drops onto: a dock's strip along the layout's edge, or the half of a
152
- // group toward its nearest edge, which splits the group there. A group's header outside its strip takes nothing.
153
- function target(workspace: HTMLElement, x: number, y: number) {
152
+ // group toward its nearest edge, which splits the group there. A group's header outside its strip takes nothing, nor
153
+ // does a group 'allowed' turns down.
154
+ function target(workspace: HTMLElement, x: number, y: number, allowed: (group: string) => boolean) {
154
155
  let elements = document.elementsFromPoint(x, y).filter((element) => element.closest('.shell') === workspace),
155
156
  dock = elements.find((element) => element.matches('.shell-dock-target')) as HTMLElement | undefined,
156
157
  section = elements.find((element) => element.matches('.shell-group')) as HTMLElement | undefined;
@@ -159,7 +160,11 @@ function target(workspace: HTMLElement, x: number, y: number) {
159
160
  return dock;
160
161
  }
161
162
 
162
- if (!section || y <= (section.querySelector(':scope > .shell-header')?.getBoundingClientRect().bottom ?? -Infinity)) {
163
+ if (
164
+ !section ||
165
+ !allowed(section.dataset.group ?? '') ||
166
+ y <= (section.querySelector(':scope > .shell-header')?.getBoundingClientRect().bottom ?? -Infinity)
167
+ ) {
163
168
  return null;
164
169
  }
165
170
 
@@ -199,7 +204,7 @@ const shell = component(
199
204
  added = reactive({ active: false }),
200
205
  apple = mac(),
201
206
  // A tab is being dragged, which lights the docks and group halves it can drop onto.
202
- carrying = signal(false),
207
+ carrying = signal<Surface | null>(null),
203
208
  controller: Controller | undefined,
204
209
  frames = { left: frame(), right: frame() },
205
210
  hosts = new Map<string, Host>(),
@@ -247,6 +252,13 @@ const shell = component(
247
252
  }
248
253
  }
249
254
 
255
+ // Whether the surface may move into the group, as the state's sharing allows.
256
+ function shares(surface: Surface, group: string) {
257
+ let found = findGroup(state.layout.root, group);
258
+
259
+ return found !== null && state.shares(surface.id, found.placement);
260
+ }
261
+
250
262
  // Whether the group already holds the kind, where adding it would only reselect its tab. A kind that opens a new
251
263
  // surface on every add never is.
252
264
  function holds(group: string, kind: string) {
@@ -272,7 +284,8 @@ const shell = component(
272
284
  }
273
285
  }
274
286
 
275
- state.open({ id, kind }, group);
287
+ // Added from a group's own strip or launcher, the group is already on screen.
288
+ state.open({ id, kind }, group, group === undefined);
276
289
  },
277
290
  addable: Object.entries(catalog).filter(([, entry]) => entry.addable !== false),
278
291
  adding: (group: string) => added.active && subject.group === group,
@@ -338,16 +351,17 @@ const shell = component(
338
351
  strips.set(strip, group);
339
352
 
340
353
  return {
354
+ accepts: (surface) => shares(surface, strips.get(strip) ?? ''),
341
355
  disabled: (surface) => surface.sortable === false,
342
356
  group: edges.id,
343
357
  onland: () => {
344
358
  let land = landing;
345
359
 
346
360
  landing = null;
347
- write(carrying, false);
361
+ write(carrying, null);
348
362
  land?.();
349
363
  },
350
- onlift: () => write(carrying, true),
364
+ onlift: (surface) => write(carrying, surface),
351
365
  onsort: (surface, _, to, __, target) => {
352
366
  let group = strips.get(target);
353
367
 
@@ -366,7 +380,7 @@ const shell = component(
366
380
  }
367
381
  };
368
382
  },
369
- over: (_, x, y) => workspace ? target(workspace, x, y) : null
383
+ over: (surface, x, y) => workspace ? target(workspace, x, y, (group) => shares(surface, group)) : null
370
384
  }
371
385
  };
372
386
  },
@@ -673,7 +687,8 @@ const shell = component(
673
687
  }
674
688
  }
675
689
 
676
- // Strips along the layout's edges a dragged tab docks onto; a static sidebar has none.
690
+ // Strips along the layout's edges a dragged tab docks onto; a static sidebar has none, and a dock the tab's area
691
+ // doesn't share with stays hidden while it is carried.
677
692
  function targets() {
678
693
  return (['bottom', 'left', 'right'] as const)
679
694
  .filter((placement) => placement === 'bottom' || !stationary(state.layout.root, placement))
@@ -682,6 +697,13 @@ const shell = component(
682
697
  aria-hidden='true'
683
698
  class='shell-dock-target shell-dock-target--${placement}'
684
699
  data-placement='${placement}'
700
+ ${{
701
+ hidden: () => {
702
+ let surface = read(carrying);
703
+
704
+ return surface !== null && !state.shares(surface.id, placement);
705
+ }
706
+ }}
685
707
  ></div>
686
708
  `);
687
709
  }
@@ -779,7 +801,7 @@ const shell = component(
779
801
  ${attributes}
780
802
  ${{
781
803
  class: [
782
- () => read(carrying) && 'shell--dragging',
804
+ () => read(carrying) !== null && 'shell--dragging',
783
805
  () => narrow() && 'shell--narrow',
784
806
  () => (frames.left.dragging || frames.right.dragging) && 'shell--sliding',
785
807
  () => open('left') && 'shell--left-open',
@@ -887,4 +909,4 @@ const layout: typeof shell & { state: typeof state } = Object.assign(shell, { st
887
909
 
888
910
 
889
911
  export default layout;
890
- export type { Catalog, Kind, Layout, Node, Placement, Saved, Store, Surface };
912
+ export type { Catalog, Kind, Layout, Node, Placement, Saved, Sharing, Store, Surface };
@@ -1,6 +1,9 @@
1
1
  import { read, signal, write } from '@esportsplus/reactivity';
2
2
 
3
3
 
4
+ // Where a group sits for sharing: either sidebar, or the main area with the bottom dock under it.
5
+ type Area = 'left' | 'main' | 'right';
6
+
4
7
  type Direction = 'column' | 'row';
5
8
 
6
9
  // Whether a dock shows, and its size: a fraction of the main area for the bottom, pixels for a sidebar, which holds
@@ -38,6 +41,8 @@ type Options = {
38
41
  // Which docks start open; each does unless set false.
39
42
  open?: Partial<Record<Placement, boolean>>;
40
43
  root?: Node | null;
44
+ // Which areas trade surfaces with which; moves within an area are always allowed.
45
+ sharing?: Sharing;
41
46
  // Restores the layout's tree once it reads back, unless the tree changed first, and saves it after each change.
42
47
  store?: Store;
43
48
  };
@@ -47,6 +52,14 @@ type Placement = 'bottom' | 'left' | 'right';
47
52
  // What the store keeps: the tree of groups, splits and surfaces.
48
53
  type Saved = { root: Node | null };
49
54
 
55
+ // The areas each area trades surfaces with, 'all' by default: the main area (bottom dock included) with every other
56
+ // area or none; each sidebar with every other area, only the other sidebar, or none. A move between two areas needs
57
+ // both to allow it.
58
+ type Sharing = {
59
+ main?: 'all' | 'none';
60
+ sidebar?: 'all' | 'none' | 'sidebars';
61
+ };
62
+
50
63
  type Side = 'after' | 'before';
51
64
 
52
65
  type Split = {
@@ -92,6 +105,10 @@ function allGroups(node: Node | null): Group[] {
92
105
  return node.children.flatMap(allGroups);
93
106
  }
94
107
 
108
+ function area(placement: Placement | undefined): Area {
109
+ return placement === 'left' || placement === 'right' ? placement : 'main';
110
+ }
111
+
95
112
  function bounded(size: number) {
96
113
  return Math.min(1 - MIN_FRACTION, Math.max(MIN_FRACTION, size));
97
114
  }
@@ -380,7 +397,7 @@ function zoomed(previous: Layout, next: Layout) {
380
397
 
381
398
  // The layout's one source of truth: an immutable tree in a signal, replaced whole by each operation. Structural
382
399
  // operations restore a maximized group first, as moving panes around under it would leave it covering the wrong one.
383
- const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
400
+ const state = ({ closing, open = {}, root = null, sharing = {}, store }: Options = {}) => {
384
401
  let counter = 1,
385
402
  touched = false,
386
403
  layout = signal<Layout>(normalizeLayout({
@@ -417,6 +434,17 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
417
434
  }
418
435
  }
419
436
 
437
+ // Whether 'from' lets its surfaces go to, and take them from, 'to'.
438
+ function allows(from: Area, to: Area) {
439
+ if (from === 'main') {
440
+ return (sharing.main ?? 'all') === 'all';
441
+ }
442
+
443
+ let policy = sharing.sidebar ?? 'all';
444
+
445
+ return policy === 'all' || (policy === 'sidebars' && to !== 'main');
446
+ }
447
+
420
448
  // A close applies once 'closing' allows it, against the layout as it stands then.
421
449
  function guarded(change: (current: Layout) => Layout) {
422
450
  let surfaces = removed(read(layout).root, change(read(layout)).root),
@@ -446,6 +474,13 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
446
474
  return `${prefix}-${counter++}`;
447
475
  }
448
476
 
477
+ function shared(from: Group, to: Placement | undefined) {
478
+ let a = area(from.placement),
479
+ b = area(to);
480
+
481
+ return a === b || (allows(a, b) && allows(b, a));
482
+ }
483
+
449
484
  // A tree changed before the store reads back keeps its change rather than the saved one.
450
485
  function structural(change: (current: Layout) => Layout) {
451
486
  touched = true;
@@ -487,7 +522,9 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
487
522
  }
488
523
 
489
524
  return {
490
- activate(surface: string) {
525
+ // Opens the surface's sidebar too, unless 'reveal' is false: a tab pressed in a sidebar is already on screen,
526
+ // peeking or not, so it leaves the sidebar's open setting as the user set it.
527
+ activate(surface: string, reveal = true) {
491
528
  update((current) => {
492
529
  let group = findSurfaceGroup(current.root, surface);
493
530
 
@@ -496,7 +533,7 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
496
533
  }
497
534
 
498
535
  return {
499
- ...visible(group, current),
536
+ ...(reveal ? visible(group, current) : current),
500
537
  active: group.id,
501
538
  root: updateGroup(current.root, group.id, (entry) => ({ ...entry, active: surface }))
502
539
  };
@@ -576,6 +613,10 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
576
613
  let source = findSurfaceGroup(current.root, surface),
577
614
  item = source?.surfaces.find((entry) => entry.id === surface);
578
615
 
616
+ if (source && !shared(source, placement)) {
617
+ return current;
618
+ }
619
+
579
620
  if (source && fixed(source)) {
580
621
  return source.placement === placement || allGroups(current.root).some((entry) => docked(entry, placement))
581
622
  ? current
@@ -667,21 +708,27 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
667
708
  });
668
709
  },
669
710
 
670
- // Into the group at 'index' among its tabs, or at the end; within its own group it reorders.
711
+ // Into the group at 'index' among its tabs, or at the end; within its own group it reorders. Only a move into
712
+ // another dock opens it: one within a dock happens where it already shows, peeking or not.
671
713
  move(surface: string, group: string, index?: number) {
672
714
  structural((current) => {
673
715
  let source = findSurfaceGroup(current.root, surface),
674
716
  target = findGroup(current.root, group),
675
717
  item = source?.surfaces.find((entry) => entry.id === surface);
676
718
 
677
- if (!source || !target || !item || (source.id !== target.id && (item.sortable === false || fixed(target)))) {
719
+ if (
720
+ !source ||
721
+ !target ||
722
+ !item ||
723
+ (source.id !== target.id && (item.sortable === false || fixed(target) || !shared(source, target.placement)))
724
+ ) {
678
725
  return current;
679
726
  }
680
727
 
681
728
  let root = source.id === target.id ? current.root : take(current.root, source, surface);
682
729
 
683
730
  return {
684
- ...visible(target, current),
731
+ ...(source.placement === target.placement ? current : visible(target, current)),
685
732
  active: target.id,
686
733
  root: updateGroup(root, target.id, (entry) => {
687
734
  let surfaces = entry.surfaces.filter((other) => other.id !== surface);
@@ -695,15 +742,16 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
695
742
  },
696
743
 
697
744
  // Shows the surface, wherever it already is, or adds it to 'group', the focused group or a new one. A surface
698
- // open elsewhere moves into the given group.
699
- open(surface: Surface, group?: string) {
745
+ // open elsewhere moves into the given group, if its area shares with the group's; otherwise it shows where it is.
746
+ // Opens the sidebar it lands in, unless 'reveal' is false, as for an add made from a group already on screen.
747
+ open(surface: Surface, group?: string, reveal = true) {
700
748
  structural((current) => {
701
749
  let existing = findSurfaceGroup(current.root, surface.id),
702
750
  target = group ? findGroup(current.root, group) : null;
703
751
 
704
- if (existing && (!target || existing.id === target.id)) {
752
+ if (existing && (!target || existing.id === target.id || !shared(existing, target.placement))) {
705
753
  return {
706
- ...visible(existing, current),
754
+ ...(reveal ? visible(existing, current) : current),
707
755
  active: existing.id,
708
756
  root: updateGroup(current.root, existing.id, (entry) => ({ ...entry, active: surface.id }))
709
757
  };
@@ -728,7 +776,7 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
728
776
  let root = existing ? take(current.root, existing, surface.id) : current.root;
729
777
 
730
778
  return {
731
- ...visible(target, current),
779
+ ...(reveal ? visible(target, current) : current),
732
780
  active: target.id,
733
781
  root: updateGroup(root, target.id, (entry) => ({ ...entry, active: surface.id, surfaces: [...entry.surfaces, surface] }))
734
782
  };
@@ -745,8 +793,13 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
745
793
  return current;
746
794
  }
747
795
 
748
- let existing = findSurfaceGroup(current.root, surface.id),
749
- root = existing ? take(current.root, existing, surface.id) : current.root;
796
+ let existing = findSurfaceGroup(current.root, surface.id);
797
+
798
+ if (existing && existing.id !== target.id && !shared(existing, target.placement)) {
799
+ return current;
800
+ }
801
+
802
+ let root = existing ? take(current.root, existing, surface.id) : current.root;
750
803
 
751
804
  return {
752
805
  ...current,
@@ -801,6 +854,14 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
801
854
  update((current) => ({ ...current, [placement]: { ...current[placement], size } }));
802
855
  },
803
856
 
857
+ // Whether the surface may move into a group placed at 'placement', the main area when undefined: always within
858
+ // its own area, otherwise as 'sharing' allows.
859
+ shares(surface: string, placement?: Placement) {
860
+ let source = findSurfaceGroup(read(layout).root, surface);
861
+
862
+ return source !== null && shared(source, placement);
863
+ },
864
+
804
865
  // Moves the surface into a new group beside 'group', splitting along 'direction' in the group's own dock.
805
866
  split(surface: string, group: string, direction: Direction, side: Side) {
806
867
  structural((current) => {
@@ -813,6 +874,7 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
813
874
  !item ||
814
875
  !target ||
815
876
  item.sortable === false ||
877
+ !shared(source, target.placement) ||
816
878
  (source.id === group && source.surfaces.length === 1) ||
817
879
  (target.placement !== undefined && stationary(current.root, target.placement))
818
880
  ) {
@@ -899,4 +961,4 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
899
961
 
900
962
  export default state;
901
963
  export { allGroups, bounded, contains, docked, findGroup, findSplit, findSurfaceGroup, fixed, MIN_FRACTION, stationary };
902
- export type { Direction, Dock, Group, Layout, Node, Placement, Saved, Side, Split, Store, Surface, Zoom };
964
+ export type { Area, Direction, Dock, Group, Layout, Node, Placement, Saved, Sharing, Side, Split, Store, Surface, Zoom };
@@ -18,6 +18,7 @@ type Combine<T> = {
18
18
  // One container's list. A dragged item moves through the lists live, standing in its own place; the copy that
19
19
  // follows the pointer belongs to the list it was picked up from.
20
20
  type List<T> = {
21
+ accepts?: (item: T) => boolean;
21
22
  combine?: Combine<T>;
22
23
  container?: HTMLElement;
23
24
  // The item dragged out of this list, shown by its copy until it has landed.
@@ -52,6 +53,9 @@ type Motion = {
52
53
  };
53
54
 
54
55
  type Options<T> = {
56
+ // Whether an item dragged in from another list of the group may enter this one; every item when omitted. A list
57
+ // that turns the item down is passed over as though it weren't there.
58
+ accepts?: (item: T) => boolean;
55
59
  combine?: Combine<T>;
56
60
  // Items that stay where they are: a press on one starts no drag, though others still sort past it.
57
61
  disabled?: (item: T) => boolean;
@@ -137,7 +141,7 @@ function drag(source: List<unknown>, item: HTMLElement, value: unknown, e: Point
137
141
  lastLeft = NaN,
138
142
  lastTop = NaN,
139
143
  layout: Rect[] = [],
140
- lists = group ? [...(groups.get(group) ?? [source])] : [source],
144
+ lists = group ? [...(groups.get(group) ?? [source])].filter((list) => list === source || (list.accepts?.(value) ?? true)) : [source],
141
145
  // The target outside every list the pointer is over.
142
146
  marked: HTMLElement | null = null,
143
147
  // Combined with another item, or delivered to a target, so the press no longer ends the drag.
@@ -764,9 +768,10 @@ function page() {
764
768
  export default <T>(
765
769
  items: ReactiveArray<T>,
766
770
  template: (item: T, attributes: Attributes) => Renderable<unknown>,
767
- { combine, disabled, drag: copy, group, handle, onland, onlift, onsort, onthrow, outside }: Options<T> = {}
771
+ { accepts, combine, disabled, drag: copy, group, handle, onland, onlift, onsort, onthrow, outside }: Options<T> = {}
768
772
  ) => {
769
773
  let list: List<T> = {
774
+ accepts,
770
775
  combine,
771
776
  dragging: signal<T | null>(null),
772
777
  held: signal<T | null>(null),
@@ -51,7 +51,7 @@ $themes: (
51
51
  ),
52
52
  surface: (
53
53
  active: 3,
54
- border: 3.6,
54
+ border: 4.8,
55
55
  hover: 2,
56
56
  lowered: 1.6,
57
57
  pressed: 3,
@@ -75,7 +75,7 @@ $themes: (
75
75
  ),
76
76
  surface: (
77
77
  active: 2,
78
- border: 4.6,
78
+ border: 4.8,
79
79
  hover: 1,
80
80
  lowered: 1.6,
81
81
  pressed: 2,