@esportsplus/ui 0.65.0 → 0.67.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 (36) 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.d.ts +2 -0
  17. package/build/components/shell/group.js +1 -1
  18. package/build/components/shell/index.d.ts +6 -2
  19. package/build/components/shell/index.js +110 -74
  20. package/build/components/shell/model.d.ts +9 -2
  21. package/build/components/shell/model.js +33 -4
  22. package/build/components/shell/scss/index.scss +1 -1
  23. package/build/components/sortable/index.d.ts +2 -1
  24. package/build/components/sortable/index.js +3 -2
  25. package/build/components/sortable/scss/index.scss +1 -1
  26. package/build/components/theme/scss/index.scss +1 -1
  27. package/build/components/toast/scss/index.scss +1 -1
  28. package/build/components/toolbar/scss/index.scss +1 -1
  29. package/build/components/tooltip/scss/index.scss +1 -1
  30. package/build/components/uptime/scss/index.scss +1 -1
  31. package/package.json +1 -1
  32. package/src/components/shell/group.ts +4 -2
  33. package/src/components/shell/index.ts +37 -12
  34. package/src/components/shell/model.ts +65 -7
  35. package/src/components/sortable/index.ts +7 -2
  36. 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.65.0",
57
+ "version": "0.67.0",
58
58
  "scripts": {
59
59
  "build": "run-s build:vite build:ts",
60
60
  "build:ts": "tsc",
@@ -4,7 +4,7 @@ import highlight from '~/components/highlight';
4
4
  import icon from '~/components/icon';
5
5
  import sortable, { type SortableOptions } from '~/components/sortable';
6
6
  import type { Item } from '~/components/tooltip/menu';
7
- import scrollbar from '~/modifiers/scrollbar';
7
+ import scrollbar, { type Options as ScrollbarOptions } from '~/modifiers/scrollbar';
8
8
  import { fixed, type Group, type Layout, type Surface } from './model';
9
9
  import type state from './model';
10
10
  import subtree from './subtree';
@@ -42,6 +42,8 @@ type Context = {
42
42
  // Picks or unpicks the group for the zoom made when the modifier is let go.
43
43
  pick: (group: string) => void;
44
44
  picked: (group: string) => boolean;
45
+ // Each tab strip's scrollbar.
46
+ scrollbar: ScrollbarOptions;
45
47
  // The slot a surface's long-lived host moves into while it shows.
46
48
  slot: (surface: string) => Renderable<unknown>;
47
49
  // How a group's tab strip sorts, shared by every strip so tabs move between them; 'strip' is the group's tabs.
@@ -392,7 +394,7 @@ const group = (context: Context, live: Live) => {
392
394
  aria-label='Tabs'
393
395
  class='shell-tabs'
394
396
  role='tablist'
395
- ${scrollbar({ hidden: true })}
397
+ ${scrollbar(context.scrollbar)}
396
398
  ${list.attributes}
397
399
  ${{
398
400
  onconnect: (element: HTMLElement) => {
@@ -3,10 +3,11 @@ import { component, html, render, type Attributes, type Renderable } from '@espo
3
3
  import icon from '~/components/icon';
4
4
  import tooltip from '~/components/tooltip';
5
5
  import type { Controller, Item } from '~/components/tooltip/menu';
6
+ import type { Options as Scrollbar } from '~/modifiers/scrollbar';
6
7
  import { mac } from '~/shared/platform';
7
8
  import { observe } from '~/shared/resize';
8
9
  import { group, launcher, title, type Catalog, type Context, type Kind } from './group';
9
- 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';
10
11
  import { resized, separator } from './resize';
11
12
  import { frame, grip, resizer, sidebar, toggle, type Edge, type Options, type Sidebars } from './sidebar';
12
13
  import subtree from './subtree';
@@ -26,6 +27,8 @@ type A = Attributes & {
26
27
  // Each sidebar's label, whether it peeks while the pointer rests on its edge, and whether it resizes.
27
28
  sidebars?: Partial<Record<Edge, Options>>;
28
29
  state: ReturnType<typeof state>;
30
+ // Every group's tab strip: 'scrollbar' over the strip's own hidden horizontal bar, such as 'fade' for edge shadows.
31
+ tabs?: { scrollbar?: Scrollbar };
29
32
  };
30
33
 
31
34
  type Host = { dispose: VoidFunction; element: HTMLElement };
@@ -146,8 +149,9 @@ function structure(node: Node | null): unknown {
146
149
  }
147
150
 
148
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
149
- // group toward its nearest edge, which splits the group there. A group's header outside its strip takes nothing.
150
- 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) {
151
155
  let elements = document.elementsFromPoint(x, y).filter((element) => element.closest('.shell') === workspace),
152
156
  dock = elements.find((element) => element.matches('.shell-dock-target')) as HTMLElement | undefined,
153
157
  section = elements.find((element) => element.matches('.shell-group')) as HTMLElement | undefined;
@@ -156,7 +160,11 @@ function target(workspace: HTMLElement, x: number, y: number) {
156
160
  return dock;
157
161
  }
158
162
 
159
- 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
+ ) {
160
168
  return null;
161
169
  }
162
170
 
@@ -190,13 +198,13 @@ function under(workspace: HTMLElement, x: number, y: number) {
190
198
  // corner, and a closed sidebar's edge holds a handle to drag it out by. A sidebar holding a single unsortable surface
191
199
  // is static: it shows the surface without tabs, takes no drops, and swipes closed toward its edge.
192
200
  const shell = component(
193
- function({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, ...attributes }: A) {
201
+ function({ catalog, empty, icons = false, narrow: breakpoint = NARROW, sidebars: options = {}, state, tabs = {}, ...attributes }: A) {
194
202
  let adding: Controller | undefined,
195
203
  // The add menu shows, opened from 'subject.group''s add button.
196
204
  added = reactive({ active: false }),
197
205
  apple = mac(),
198
206
  // A tab is being dragged, which lights the docks and group halves it can drop onto.
199
- carrying = signal(false),
207
+ carrying = signal<Surface | null>(null),
200
208
  controller: Controller | undefined,
201
209
  frames = { left: frame(), right: frame() },
202
210
  hosts = new Map<string, Host>(),
@@ -244,6 +252,13 @@ const shell = component(
244
252
  }
245
253
  }
246
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
+
247
262
  // Whether the group already holds the kind, where adding it would only reselect its tab. A kind that opens a new
248
263
  // surface on every add never is.
249
264
  function holds(group: string, kind: string) {
@@ -314,6 +329,7 @@ const shell = component(
314
329
  write(picks, current.includes(group) ? current.filter((id) => id !== group) : [...current, group]);
315
330
  },
316
331
  picked: (group: string) => read(picks).includes(group),
332
+ scrollbar: { hidden: true, ...tabs.scrollbar, horizontal: true },
317
333
  slot: (surface: string) => html`
318
334
  <div
319
335
  class='shell-slot'
@@ -334,16 +350,17 @@ const shell = component(
334
350
  strips.set(strip, group);
335
351
 
336
352
  return {
353
+ accepts: (surface) => shares(surface, strips.get(strip) ?? ''),
337
354
  disabled: (surface) => surface.sortable === false,
338
355
  group: edges.id,
339
356
  onland: () => {
340
357
  let land = landing;
341
358
 
342
359
  landing = null;
343
- write(carrying, false);
360
+ write(carrying, null);
344
361
  land?.();
345
362
  },
346
- onlift: () => write(carrying, true),
363
+ onlift: (surface) => write(carrying, surface),
347
364
  onsort: (surface, _, to, __, target) => {
348
365
  let group = strips.get(target);
349
366
 
@@ -362,7 +379,7 @@ const shell = component(
362
379
  }
363
380
  };
364
381
  },
365
- over: (_, x, y) => workspace ? target(workspace, x, y) : null
382
+ over: (surface, x, y) => workspace ? target(workspace, x, y, (group) => shares(surface, group)) : null
366
383
  }
367
384
  };
368
385
  },
@@ -669,7 +686,8 @@ const shell = component(
669
686
  }
670
687
  }
671
688
 
672
- // Strips along the layout's edges a dragged tab docks onto; a static sidebar has none.
689
+ // Strips along the layout's edges a dragged tab docks onto; a static sidebar has none, and a dock the tab's area
690
+ // doesn't share with stays hidden while it is carried.
673
691
  function targets() {
674
692
  return (['bottom', 'left', 'right'] as const)
675
693
  .filter((placement) => placement === 'bottom' || !stationary(state.layout.root, placement))
@@ -678,6 +696,13 @@ const shell = component(
678
696
  aria-hidden='true'
679
697
  class='shell-dock-target shell-dock-target--${placement}'
680
698
  data-placement='${placement}'
699
+ ${{
700
+ hidden: () => {
701
+ let surface = read(carrying);
702
+
703
+ return surface !== null && !state.shares(surface.id, placement);
704
+ }
705
+ }}
681
706
  ></div>
682
707
  `);
683
708
  }
@@ -775,7 +800,7 @@ const shell = component(
775
800
  ${attributes}
776
801
  ${{
777
802
  class: [
778
- () => read(carrying) && 'shell--dragging',
803
+ () => read(carrying) !== null && 'shell--dragging',
779
804
  () => narrow() && 'shell--narrow',
780
805
  () => (frames.left.dragging || frames.right.dragging) && 'shell--sliding',
781
806
  () => open('left') && 'shell--left-open',
@@ -883,4 +908,4 @@ const layout: typeof shell & { state: typeof state } = Object.assign(shell, { st
883
908
 
884
909
 
885
910
  export default layout;
886
- export type { Catalog, Kind, Layout, Node, Placement, Saved, Store, Surface };
911
+ 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;
@@ -576,6 +611,10 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
576
611
  let source = findSurfaceGroup(current.root, surface),
577
612
  item = source?.surfaces.find((entry) => entry.id === surface);
578
613
 
614
+ if (source && !shared(source, placement)) {
615
+ return current;
616
+ }
617
+
579
618
  if (source && fixed(source)) {
580
619
  return source.placement === placement || allGroups(current.root).some((entry) => docked(entry, placement))
581
620
  ? current
@@ -674,7 +713,12 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
674
713
  target = findGroup(current.root, group),
675
714
  item = source?.surfaces.find((entry) => entry.id === surface);
676
715
 
677
- if (!source || !target || !item || (source.id !== target.id && (item.sortable === false || fixed(target)))) {
716
+ if (
717
+ !source ||
718
+ !target ||
719
+ !item ||
720
+ (source.id !== target.id && (item.sortable === false || fixed(target) || !shared(source, target.placement)))
721
+ ) {
678
722
  return current;
679
723
  }
680
724
 
@@ -695,13 +739,13 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
695
739
  },
696
740
 
697
741
  // 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.
742
+ // open elsewhere moves into the given group, if its area shares with the group's; otherwise it shows where it is.
699
743
  open(surface: Surface, group?: string) {
700
744
  structural((current) => {
701
745
  let existing = findSurfaceGroup(current.root, surface.id),
702
746
  target = group ? findGroup(current.root, group) : null;
703
747
 
704
- if (existing && (!target || existing.id === target.id)) {
748
+ if (existing && (!target || existing.id === target.id || !shared(existing, target.placement))) {
705
749
  return {
706
750
  ...visible(existing, current),
707
751
  active: existing.id,
@@ -745,8 +789,13 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
745
789
  return current;
746
790
  }
747
791
 
748
- let existing = findSurfaceGroup(current.root, surface.id),
749
- root = existing ? take(current.root, existing, surface.id) : current.root;
792
+ let existing = findSurfaceGroup(current.root, surface.id);
793
+
794
+ if (existing && existing.id !== target.id && !shared(existing, target.placement)) {
795
+ return current;
796
+ }
797
+
798
+ let root = existing ? take(current.root, existing, surface.id) : current.root;
750
799
 
751
800
  return {
752
801
  ...current,
@@ -801,6 +850,14 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
801
850
  update((current) => ({ ...current, [placement]: { ...current[placement], size } }));
802
851
  },
803
852
 
853
+ // Whether the surface may move into a group placed at 'placement', the main area when undefined: always within
854
+ // its own area, otherwise as 'sharing' allows.
855
+ shares(surface: string, placement?: Placement) {
856
+ let source = findSurfaceGroup(read(layout).root, surface);
857
+
858
+ return source !== null && shared(source, placement);
859
+ },
860
+
804
861
  // Moves the surface into a new group beside 'group', splitting along 'direction' in the group's own dock.
805
862
  split(surface: string, group: string, direction: Direction, side: Side) {
806
863
  structural((current) => {
@@ -813,6 +870,7 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
813
870
  !item ||
814
871
  !target ||
815
872
  item.sortable === false ||
873
+ !shared(source, target.placement) ||
816
874
  (source.id === group && source.surfaces.length === 1) ||
817
875
  (target.placement !== undefined && stationary(current.root, target.placement))
818
876
  ) {
@@ -899,4 +957,4 @@ const state = ({ closing, open = {}, root = null, store }: Options = {}) => {
899
957
 
900
958
  export default state;
901
959
  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 };
960
+ 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,