elements-kit 0.27.4 → 0.27.6

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 (103) hide show
  1. package/README.md +1 -0
  2. package/dist/attributes.d.mts +1 -1
  3. package/dist/await.d.mts +1 -1
  4. package/dist/await.mjs +1 -1
  5. package/dist/{children-_cMdyX7Q.d.mts → children-CjlmAzxx.d.mts} +3 -3
  6. package/dist/chunk-CfYAbeIz.mjs +13 -0
  7. package/dist/{custom-elements-C7oiqw-y.d.mts → custom-elements-CTqSkWI7.d.mts} +1 -1
  8. package/dist/custom-elements.d.mts +1 -1
  9. package/dist/direction-EwIAAn1f.d.mts +29 -0
  10. package/dist/{element-DgQvp-49.mjs → element-bMvwF1ue.mjs} +2 -2
  11. package/dist/for.d.mts +1 -1
  12. package/dist/for.mjs +2 -2
  13. package/dist/{fragment-BJfcQdsL.mjs → fragment-DV0hrE_A.mjs} +2 -2
  14. package/dist/{hot-Zl0s17uq.mjs → hot-kRKLQS6B.mjs} +2 -2
  15. package/dist/hydrate/index.mjs +1 -1
  16. package/dist/{hydrate-ICXw1FIY.mjs → hydrate-Vx_iBMqJ.mjs} +3 -3
  17. package/dist/integrations/astro-client.mjs +2 -2
  18. package/dist/integrations/astro-server.mjs +3 -3
  19. package/dist/integrations/astro-slots.mjs +2 -2
  20. package/dist/integrations/hmr-runtime.mjs +2 -2
  21. package/dist/integrations/react.d.mts +1 -1
  22. package/dist/integrations/react.mjs +2 -2
  23. package/dist/jsx-runtime/dev.d.mts +2 -2
  24. package/dist/jsx-runtime/dev.mjs +2 -2
  25. package/dist/jsx-runtime/index.d.mts +2 -2
  26. package/dist/jsx-runtime/index.mjs +2 -2
  27. package/dist/render.mjs +1 -1
  28. package/dist/{scope-C1vELXqP.mjs → scope-B1kDu4YX.mjs} +1 -1
  29. package/dist/server/index.mjs +1 -1
  30. package/dist/{server-Qm9JTZ-J.mjs → server-DxiXDjQU.mjs} +3 -3
  31. package/dist/signals/index.d.mts +1 -1
  32. package/dist/signals/index.mjs +2 -2
  33. package/dist/slot.mjs +1 -1
  34. package/dist/ui/otp-input/index.d.mts +2 -2
  35. package/dist/ui/otp-input/index.mjs +1 -1
  36. package/dist/ui/overlay/handle.css +134 -0
  37. package/dist/ui/overlay/index.css +13 -88
  38. package/dist/ui/overlay/index.d.mts +232 -347
  39. package/dist/ui/overlay/index.mjs +676 -1550
  40. package/dist/ui/overlay/overlay.css +74 -135
  41. package/dist/utilities/_observe.mjs +1 -1
  42. package/dist/utilities/active-element.d.mts +1 -1
  43. package/dist/utilities/active-element.mjs +1 -1
  44. package/dist/utilities/async.d.mts +7 -1
  45. package/dist/utilities/async.mjs +13 -1
  46. package/dist/utilities/context.mjs +1 -1
  47. package/dist/utilities/debounced.d.mts +1 -1
  48. package/dist/utilities/debounced.mjs +1 -1
  49. package/dist/utilities/direction.d.mts +2 -0
  50. package/dist/utilities/direction.mjs +42 -0
  51. package/dist/utilities/dom-lifecycle.bench.mjs +2 -2
  52. package/dist/utilities/dom-lifecycle.d.mts +1 -1
  53. package/dist/utilities/dom-lifecycle.mjs +1 -1
  54. package/dist/utilities/element-rect.d.mts +1 -1
  55. package/dist/utilities/element-rect.mjs +1 -1
  56. package/dist/utilities/element-scroll.d.mts +1 -1
  57. package/dist/utilities/environment.d.mts +1 -1
  58. package/dist/utilities/event-driven.d.mts +1 -1
  59. package/dist/utilities/event-driven.mjs +1 -1
  60. package/dist/utilities/event-listener.d.mts +1 -1
  61. package/dist/utilities/event-listener.mjs +1 -1
  62. package/dist/utilities/focus-within.d.mts +1 -1
  63. package/dist/utilities/focus-within.mjs +1 -1
  64. package/dist/utilities/hover.d.mts +1 -1
  65. package/dist/utilities/hover.mjs +1 -1
  66. package/dist/utilities/interval.d.mts +1 -1
  67. package/dist/utilities/interval.mjs +1 -1
  68. package/dist/utilities/location.d.mts +1 -1
  69. package/dist/utilities/location.mjs +1 -1
  70. package/dist/utilities/media-devices.d.mts +1 -1
  71. package/dist/utilities/media-devices.mjs +1 -1
  72. package/dist/utilities/media-player.d.mts +1 -1
  73. package/dist/utilities/media-query.d.mts +1 -1
  74. package/dist/utilities/media-query.mjs +1 -1
  75. package/dist/utilities/network.d.mts +1 -1
  76. package/dist/utilities/network.mjs +1 -1
  77. package/dist/utilities/orientation.d.mts +1 -1
  78. package/dist/utilities/orientation.mjs +1 -1
  79. package/dist/utilities/previous.d.mts +1 -1
  80. package/dist/utilities/previous.mjs +1 -1
  81. package/dist/utilities/promise.d.mts +1 -1
  82. package/dist/utilities/promise.mjs +1 -1
  83. package/dist/utilities/retry.mjs +1 -1
  84. package/dist/utilities/routing.d.mts +1 -1
  85. package/dist/utilities/routing.mjs +1 -1
  86. package/dist/utilities/search-params.d.mts +1 -1
  87. package/dist/utilities/storage.d.mts +1 -1
  88. package/dist/utilities/storage.mjs +1 -1
  89. package/dist/utilities/throttled.d.mts +1 -1
  90. package/dist/utilities/throttled.mjs +1 -1
  91. package/dist/utilities/timeout.d.mts +1 -1
  92. package/dist/utilities/timeout.mjs +1 -1
  93. package/dist/utilities/window-focus.d.mts +1 -1
  94. package/dist/utilities/window-focus.mjs +1 -1
  95. package/dist/utilities/window-size.d.mts +1 -1
  96. package/dist/utilities/window-size.mjs +1 -1
  97. package/package.json +9 -6
  98. /package/dist/{attributes-3r7Diua4.d.mts → attributes-YQZNO15D.d.mts} +0 -0
  99. /package/dist/{environment-c2ftMYT0.d.mts → environment-EQugnOcg.d.mts} +0 -0
  100. /package/dist/{index-BrVMftR8.d.mts → index-BSAqa0-0.d.mts} +0 -0
  101. /package/dist/{lib-DYypKhxk.mjs → lib-Dw0g-vex.mjs} +0 -0
  102. /package/dist/{polyfill-CdZVCxdo.mjs → polyfill-B1lNNcum.mjs} +0 -0
  103. /package/dist/{polyfill-BVNd6ogU.d.mts → polyfill-_7qvybvt.d.mts} +0 -0
package/README.md CHANGED
@@ -339,6 +339,7 @@ const op = async(() => fetch("/api/items").then((r) => r.json()));
339
339
  op.start(); // run with reactive tracking — reruns when tracked signals change
340
340
  await op; // awaitable (delegates to .then/.catch/.finally via .raw)
341
341
  op.stop(); // halt reruns + fire registered cleanup
342
+ op.reset(); // stop + clear state back to `idle`
342
343
  ```
343
344
 
344
345
  Reactive state getters: `.state` (`"idle" | "pending" | "fulfilled" | "rejected"` — `idle` before the first run, so `.pending` is `false` until you trigger one), `.value`, `.reason`, `.result`, `.pending`, `.raw` (the underlying `ComputedPromise`).
@@ -1,2 +1,2 @@
1
- import { a as Attributes, c as observedAttributes, i as AttributeTarget, n as AttrChangeHandler, o as attributes, r as AttributeDecorated, s as dispatchAttrChange, t as ATTRIBUTES } from "./attributes-3r7Diua4.mjs";
1
+ import { a as Attributes, c as observedAttributes, i as AttributeTarget, n as AttrChangeHandler, o as attributes, r as AttributeDecorated, s as dispatchAttrChange, t as ATTRIBUTES } from "./attributes-YQZNO15D.mjs";
2
2
  export { ATTRIBUTES, AttrChangeHandler, AttributeDecorated, AttributeTarget, Attributes, attributes, dispatchAttrChange, observedAttributes };
package/dist/await.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Props, t as Children } from "./children-_cMdyX7Q.mjs";
1
+ import { s as Props, t as Children } from "./children-CjlmAzxx.mjs";
2
2
 
3
3
  //#region src/await.d.ts
4
4
  /** @internal Metadata stamped on an Await region getter (see claim walk). */
package/dist/await.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { f as effectsInert, t as ASYNC_REGION } from "./lib-DYypKhxk.mjs";
1
+ import { f as effectsInert, t as ASYNC_REGION } from "./lib-Dw0g-vex.mjs";
2
2
  import { isReactivePromiseLike, promise } from "./utilities/promise.mjs";
3
3
  import { isAsyncLike } from "./utilities/async.mjs";
4
4
  //#region src/await.ts
@@ -1,6 +1,6 @@
1
- import { n as AttrChangeHandler, t as ATTRIBUTES } from "./attributes-3r7Diua4.mjs";
2
- import { i as PropertiesOf, n as CustomElementRegistry, r as EventsOf } from "./custom-elements-C7oiqw-y.mjs";
3
- import { r as MaybeReactive } from "./index-BrVMftR8.mjs";
1
+ import { n as AttrChangeHandler, t as ATTRIBUTES } from "./attributes-YQZNO15D.mjs";
2
+ import { i as PropertiesOf, n as CustomElementRegistry, r as EventsOf } from "./custom-elements-CTqSkWI7.mjs";
3
+ import { r as MaybeReactive } from "./index-BSAqa0-0.mjs";
4
4
  import * as CSS from "csstype";
5
5
  import { JSX } from "dom-expressions/src/jsx";
6
6
 
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll as t };
@@ -1,4 +1,4 @@
1
- import { t as ATTRIBUTES } from "./attributes-3r7Diua4.mjs";
1
+ import { t as ATTRIBUTES } from "./attributes-YQZNO15D.mjs";
2
2
 
3
3
  //#region src/custom-elements.d.ts
4
4
  type RegisteredElementInstances = { [K in keyof ElementsKit.CustomElementRegistry]: ElementsKit.CustomElementRegistry[K] extends (abstract new (...args: any[]) => infer I) ? I : never };
@@ -1,2 +1,2 @@
1
- import { a as PublicPropKeys, i as PropertiesOf, n as CustomElementRegistry, o as defineElement, r as EventsOf, t as AttributesOf } from "./custom-elements-C7oiqw-y.mjs";
1
+ import { a as PublicPropKeys, i as PropertiesOf, n as CustomElementRegistry, o as defineElement, r as EventsOf, t as AttributesOf } from "./custom-elements-CTqSkWI7.mjs";
2
2
  export { AttributesOf, CustomElementRegistry, EventsOf, PropertiesOf, PublicPropKeys, defineElement };
@@ -0,0 +1,29 @@
1
+ import { t as Computed } from "./index-BSAqa0-0.mjs";
2
+
3
+ //#region src/utilities/direction.d.ts
4
+ type Direction = "ltr" | "rtl";
5
+ /**
6
+ * The page's direction — the document root's resolved `direction`
7
+ * (`"ltr"` / `"rtl"`), reactive. `direction` below is the
8
+ * pre-instantiated page singleton, like `windowSize` / `online`.
9
+ *
10
+ * Resyncs on `dir` attribute changes anywhere in the document (the
11
+ * mechanism locale switches use; `direction` inherits, so ancestor
12
+ * flips count). A stylesheet-driven `direction` change has no
13
+ * observable primitive — it's picked up on the next `dir` mutation.
14
+ * Outside a browser: a constant `"ltr"`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { direction } from "elements-kit/utilities/direction";
19
+ *
20
+ * effect(() => {
21
+ * panel.dataset.dir = direction(); // re-runs on <html dir> changes
22
+ * });
23
+ * ```
24
+ */
25
+ declare function createDirection(element?: Element): Computed<Direction> & Disposable;
26
+ /** The page's direction — the document root's, reactive. */
27
+ declare const direction: Computed<Direction> & Disposable;
28
+ //#endregion
29
+ export { createDirection as n, direction as r, Direction as t };
@@ -1,5 +1,5 @@
1
- import { C as untracked, _ as onCleanup, d as effectScope, u as effect } from "./lib-DYypKhxk.mjs";
2
- import "./polyfill-CdZVCxdo.mjs";
1
+ import { C as untracked, _ as onCleanup, d as effectScope, u as effect } from "./lib-Dw0g-vex.mjs";
2
+ import "./polyfill-B1lNNcum.mjs";
3
3
  import { isReactive } from "./signals/index.mjs";
4
4
  import { on } from "./utilities/event-listener.mjs";
5
5
  import { Slot } from "./slot.mjs";
package/dist/for.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as MaybeReactiveProps } from "./children-_cMdyX7Q.mjs";
1
+ import { o as MaybeReactiveProps } from "./children-CjlmAzxx.mjs";
2
2
 
3
3
  //#region src/for.d.ts
4
4
  type KeyFn<T> = (item: T, index: number) => string | number;
package/dist/for.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { C as untracked, S as trigger, _ as onCleanup, d as effectScope, u as effect, x as signal } from "./lib-DYypKhxk.mjs";
1
+ import { C as untracked, S as trigger, _ as onCleanup, d as effectScope, u as effect, x as signal } from "./lib-Dw0g-vex.mjs";
2
2
  import "./signals/index.mjs";
3
- import { n as disposeElement } from "./element-DgQvp-49.mjs";
3
+ import { n as disposeElement } from "./element-bMvwF1ue.mjs";
4
4
  //#region src/for.ts
5
5
  /**
6
6
  * Keyed list renderer. See {@link ForProps} for prop details.
@@ -1,6 +1,6 @@
1
- import { _ as onCleanup, u as effect } from "./lib-DYypKhxk.mjs";
1
+ import { _ as onCleanup, u as effect } from "./lib-Dw0g-vex.mjs";
2
2
  import "./signals/index.mjs";
3
- import { d as MATHML_NAMESPACE, o as mountChild, p as SVG_NAMESPACE } from "./element-DgQvp-49.mjs";
3
+ import { d as MATHML_NAMESPACE, o as mountChild, p as SVG_NAMESPACE } from "./element-bMvwF1ue.mjs";
4
4
  import { Slot } from "./slot.mjs";
5
5
  //#region src/jsx-runtime/fragment.ts
6
6
  const ForeignRoots = {
@@ -1,6 +1,6 @@
1
- import { _ as onCleanup, u as effect, x as signal } from "./lib-DYypKhxk.mjs";
1
+ import { _ as onCleanup, u as effect, x as signal } from "./lib-Dw0g-vex.mjs";
2
2
  import "./signals/index.mjs";
3
- import { r as getRenderer, t as createElement } from "./element-DgQvp-49.mjs";
3
+ import { r as getRenderer, t as createElement } from "./element-bMvwF1ue.mjs";
4
4
  import { Slot } from "./slot.mjs";
5
5
  import { HMR_CELLS_SLOT, HMR_SLOT } from "./integrations/hmr-slot.mjs";
6
6
  //#region src/jsx-runtime/hot.ts
@@ -1,2 +1,2 @@
1
- import { t as hydrate } from "../hydrate-ICXw1FIY.mjs";
1
+ import { t as hydrate } from "../hydrate-Vx_iBMqJ.mjs";
2
2
  export { hydrate };
@@ -1,11 +1,11 @@
1
- import { C as untracked, _ as onCleanup, d as effectScope, n as CLAIM, t as ASYNC_REGION, u as effect, v as setDeferAsyncRuns } from "./lib-DYypKhxk.mjs";
1
+ import { C as untracked, _ as onCleanup, d as effectScope, n as CLAIM, t as ASYNC_REGION, u as effect, v as setDeferAsyncRuns } from "./lib-Dw0g-vex.mjs";
2
2
  import { isReactive } from "./signals/index.mjs";
3
3
  import { isReactivePromiseLike } from "./utilities/promise.mjs";
4
4
  import { flushDeferredAsyncRuns, isAsyncLike } from "./utilities/async.mjs";
5
- import { a as applyProps, i as setRenderer, s as resolveChild, t as createElement } from "./element-DgQvp-49.mjs";
5
+ import { a as applyProps, i as setRenderer, s as resolveChild, t as createElement } from "./element-bMvwF1ue.mjs";
6
6
  import { Slot } from "./slot.mjs";
7
7
  import { For, isForComponent } from "./for.mjs";
8
- import { n as isFragmentComponent, r as parseHtml, t as Fragment } from "./fragment-BJfcQdsL.mjs";
8
+ import { n as isFragmentComponent, r as parseHtml, t as Fragment } from "./fragment-DV0hrE_A.mjs";
9
9
  //#region src/hydrate/claim.ts
10
10
  let hydrationContext = null;
11
11
  function setHydrationContext(ctx) {
@@ -1,6 +1,6 @@
1
- import { t as createElement } from "../element-DgQvp-49.mjs";
1
+ import { t as createElement } from "../element-bMvwF1ue.mjs";
2
2
  import { render } from "../render.mjs";
3
- import { t as hydrate } from "../hydrate-ICXw1FIY.mjs";
3
+ import { t as hydrate } from "../hydrate-Vx_iBMqJ.mjs";
4
4
  import { withSlotProps } from "./astro-slots.mjs";
5
5
  import { HMR_SLOT } from "./hmr-slot.mjs";
6
6
  //#region src/integrations/astro-client.ts
@@ -1,7 +1,7 @@
1
- import { y as setInertEffects } from "../lib-DYypKhxk.mjs";
2
- import { i as setRenderer, t as createElement } from "../element-DgQvp-49.mjs";
1
+ import { y as setInertEffects } from "../lib-Dw0g-vex.mjs";
2
+ import { i as setRenderer, t as createElement } from "../element-bMvwF1ue.mjs";
3
3
  import { withSlotProps } from "./astro-slots.mjs";
4
- import { i as serverJsx, n as renderToString, r as SNode } from "../server-Qm9JTZ-J.mjs";
4
+ import { i as serverJsx, n as renderToString, r as SNode } from "../server-DxiXDjQU.mjs";
5
5
  //#region src/integrations/astro-server.ts
6
6
  /**
7
7
  * Decide whether `Component` is an elements-kit component. Invoked by Astro
@@ -1,5 +1,5 @@
1
- import { t as createElement } from "../element-DgQvp-49.mjs";
2
- import { t as Fragment } from "../fragment-BJfcQdsL.mjs";
1
+ import { t as createElement } from "../element-bMvwF1ue.mjs";
2
+ import { t as Fragment } from "../fragment-DV0hrE_A.mjs";
3
3
  //#region src/integrations/astro-slots.ts
4
4
  /**
5
5
  * @internal Map Astro's pre-rendered slot HTML (`Record<name, html>`) into
@@ -1,7 +1,7 @@
1
- import { t as createElement } from "../element-DgQvp-49.mjs";
1
+ import { t as createElement } from "../element-bMvwF1ue.mjs";
2
2
  import { render } from "../render.mjs";
3
3
  import { HMR_SLOT } from "./hmr-slot.mjs";
4
- import { n as updateCells } from "../hot-Zl0s17uq.mjs";
4
+ import { n as updateCells } from "../hot-kRKLQS6B.mjs";
5
5
  //#region src/integrations/hmr-runtime.ts
6
6
  const slot = globalThis;
7
7
  const records = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BrVMftR8.mjs";
1
+ import { t as Computed } from "../index-BSAqa0-0.mjs";
2
2
 
3
3
  //#region src/integrations/react.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { u as effect, x as signal } from "../lib-DYypKhxk.mjs";
1
+ import { u as effect, x as signal } from "../lib-Dw0g-vex.mjs";
2
2
  import "../signals/index.mjs";
3
- import { t as scope } from "../scope-C1vELXqP.mjs";
3
+ import { t as scope } from "../scope-B1kDu4YX.mjs";
4
4
  import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
5
5
  //#region src/integrations/react.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children } from "../children-_cMdyX7Q.mjs";
2
- import { n as ComputedProps, r as MaybeReactive } from "../index-BrVMftR8.mjs";
1
+ import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children } from "../children-CjlmAzxx.mjs";
2
+ import { n as ComputedProps, r as MaybeReactive } from "../index-BSAqa0-0.mjs";
3
3
 
4
4
  //#region src/jsx-runtime/hot.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { t as Fragment } from "../fragment-BJfcQdsL.mjs";
2
- import { t as createHotElement } from "../hot-Zl0s17uq.mjs";
1
+ import { t as Fragment } from "../fragment-DV0hrE_A.mjs";
2
+ import { t as createHotElement } from "../hot-kRKLQS6B.mjs";
3
3
  import "./index.mjs";
4
4
  export { Fragment, createHotElement as h, createHotElement as jsx, createHotElement as jsxDEV, createHotElement as jsxs };
@@ -1,3 +1,3 @@
1
- import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children, u as createElement } from "../children-_cMdyX7Q.mjs";
2
- import { n as ComputedProps, r as MaybeReactive } from "../index-BrVMftR8.mjs";
1
+ import { a as Fragment, c as PropsOf, i as JSX, l as Require, n as ComponentClass, o as MaybeReactiveProps, r as ComponentFn, s as Props, t as Children, u as createElement } from "../children-CjlmAzxx.mjs";
2
+ import { n as ComputedProps, r as MaybeReactive } from "../index-BSAqa0-0.mjs";
3
3
  export { type Children, ComponentClass, ComponentFn, type ComputedProps, Fragment, JSX, type MaybeReactive, type MaybeReactiveProps, type Props, type PropsOf, type Require, createElement as h, createElement as jsx, createElement as jsxDEV, createElement as jsxs };
@@ -1,3 +1,3 @@
1
- import { t as createElement } from "../element-DgQvp-49.mjs";
2
- import { t as Fragment } from "../fragment-BJfcQdsL.mjs";
1
+ import { t as createElement } from "../element-bMvwF1ue.mjs";
2
+ import { t as Fragment } from "../fragment-DV0hrE_A.mjs";
3
3
  export { Fragment, createElement as h, createElement as jsx, createElement as jsxDEV, createElement as jsxs };
package/dist/render.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as scope } from "./scope-C1vELXqP.mjs";
1
+ import { t as scope } from "./scope-B1kDu4YX.mjs";
2
2
  //#region src/render.ts
3
3
  /**
4
4
  * Mount a node into `target` with a scoped lifetime.
@@ -1,4 +1,4 @@
1
- import { C as untracked, d as effectScope } from "./lib-DYypKhxk.mjs";
1
+ import { C as untracked, d as effectScope } from "./lib-Dw0g-vex.mjs";
2
2
  //#region src/signals/scope.ts
3
3
  /**
4
4
  * Run `setup` inside a fresh `effectScope`. Returns `[result, stop]`.
@@ -1,2 +1,2 @@
1
- import { n as renderToString, t as renderToStream } from "../server-Qm9JTZ-J.mjs";
1
+ import { n as renderToString, t as renderToStream } from "../server-DxiXDjQU.mjs";
2
2
  export { renderToStream, renderToString };
@@ -1,10 +1,10 @@
1
- import { C as untracked, y as setInertEffects } from "./lib-DYypKhxk.mjs";
1
+ import { C as untracked, y as setInertEffects } from "./lib-Dw0g-vex.mjs";
2
2
  import { isReactive } from "./signals/index.mjs";
3
3
  import { isReactivePromiseLike } from "./utilities/promise.mjs";
4
4
  import { isAsyncLike } from "./utilities/async.mjs";
5
- import { c as AttrAliases, f as Properties, i as setRenderer, l as BooleanAttributes, u as ChildProperties } from "./element-DgQvp-49.mjs";
5
+ import { c as AttrAliases, f as Properties, i as setRenderer, l as BooleanAttributes, u as ChildProperties } from "./element-bMvwF1ue.mjs";
6
6
  import { isForComponent } from "./for.mjs";
7
- import { n as isFragmentComponent } from "./fragment-BJfcQdsL.mjs";
7
+ import { n as isFragmentComponent } from "./fragment-DV0hrE_A.mjs";
8
8
  //#region src/server/escape.ts
9
9
  function escapeDelim(s, delim, escDelim) {
10
10
  let iDelim = s.indexOf(delim);
@@ -1,2 +1,2 @@
1
- import { C as isSignal, D as untracked, E as trigger, S as isEffectScope, T as signal, _ as computed, a as Updater, b as isComputed, c as reactive, d as COMPUTED, f as EFFECT, g as batch, h as SIGNAL, i as Signal, l as resolve, m as SEED, n as ComputedProps, o as computedProps, p as EFFECT_SCOPE, r as MaybeReactive, s as isReactive, t as Computed, u as CLAIM, v as effect, w as onCleanup, x as isEffect, y as effectScope } from "../index-BrVMftR8.mjs";
1
+ import { C as isSignal, D as untracked, E as trigger, S as isEffectScope, T as signal, _ as computed, a as Updater, b as isComputed, c as reactive, d as COMPUTED, f as EFFECT, g as batch, h as SIGNAL, i as Signal, l as resolve, m as SEED, n as ComputedProps, o as computedProps, p as EFFECT_SCOPE, r as MaybeReactive, s as isReactive, t as Computed, u as CLAIM, v as effect, w as onCleanup, x as isEffect, y as effectScope } from "../index-BSAqa0-0.mjs";
2
2
  export { CLAIM, COMPUTED, Computed, ComputedProps, EFFECT, EFFECT_SCOPE, MaybeReactive, SEED, SIGNAL, Signal, Updater, batch, computed, computedProps, effect, effectScope, isComputed, isEffect, isEffectScope, isReactive, isSignal, onCleanup, reactive, resolve, signal, trigger, untracked };
@@ -1,5 +1,5 @@
1
- import { C as untracked, S as trigger, _ as onCleanup, a as EFFECT_SCOPE, c as batch, d as effectScope, g as isSignal, h as isEffectScope, i as EFFECT, l as computed, m as isEffect, n as CLAIM, o as SEED, p as isComputed, r as COMPUTED, s as SIGNAL, u as effect, x as signal } from "../lib-DYypKhxk.mjs";
2
- import "../polyfill-CdZVCxdo.mjs";
1
+ import { C as untracked, S as trigger, _ as onCleanup, a as EFFECT_SCOPE, c as batch, d as effectScope, g as isSignal, h as isEffectScope, i as EFFECT, l as computed, m as isEffect, n as CLAIM, o as SEED, p as isComputed, r as COMPUTED, s as SIGNAL, u as effect, x as signal } from "../lib-Dw0g-vex.mjs";
2
+ import "../polyfill-B1lNNcum.mjs";
3
3
  //#region src/signals/index.ts
4
4
  /**
5
5
  * Type-guard: `true` when `value` is a reactive source (`signal` or `computed`),
package/dist/slot.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./polyfill-CdZVCxdo.mjs";
1
+ import "./polyfill-B1lNNcum.mjs";
2
2
  //#region src/slot.ts
3
3
  /**
4
4
  * A lightweight slot that reserves a region in the DOM using comment markers.
@@ -1,5 +1,5 @@
1
- import { n as AttrChangeHandler, t as ATTRIBUTES } from "../../attributes-3r7Diua4.mjs";
2
- import { t as HTMLElementBase } from "../../environment-c2ftMYT0.mjs";
1
+ import { n as AttrChangeHandler, t as ATTRIBUTES } from "../../attributes-YQZNO15D.mjs";
2
+ import { t as HTMLElementBase } from "../../environment-EQugnOcg.mjs";
3
3
 
4
4
  //#region src/ui/otp-input/otp-input.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ATTRIBUTES, observedAttributes } from "../../attributes.mjs";
2
- import { l as computed, u as effect, x as signal } from "../../lib-DYypKhxk.mjs";
2
+ import { l as computed, u as effect, x as signal } from "../../lib-Dw0g-vex.mjs";
3
3
  import "../../signals/index.mjs";
4
4
  import { on } from "../../utilities/event-listener.mjs";
5
5
  import { render } from "../../render.mjs";
@@ -0,0 +1,134 @@
1
+ .x-handle {
2
+ box-sizing: border-box;
3
+ z-index: 1;
4
+ pointer-events: auto;
5
+ touch-action: none;
6
+ position: absolute;
7
+ }
8
+
9
+ .x-handle:before {
10
+ content: "";
11
+ width: max(100%, var(--space-6));
12
+ height: max(100%, var(--space-6));
13
+ position: absolute;
14
+ top: 50%;
15
+ left: 50%;
16
+ translate: -50% -50%;
17
+ }
18
+
19
+ .x-handle:where([data-placement="move"]) {
20
+ top: var(--space-2);
21
+ width: var(--space-8);
22
+ height: var(--space-1);
23
+ border-radius: max(var(--radius-1), var(--radius-pill));
24
+ background-color: var(--neutral-a8);
25
+ margin-inline: auto;
26
+ inset-inline: 0;
27
+ }
28
+
29
+ .x-handle:where([data-placement^="block-"]) {
30
+ width: var(--space-8);
31
+ height: var(--space-1);
32
+ border-radius: max(var(--radius-1), var(--radius-pill));
33
+ background-color: var(--neutral-a8);
34
+ margin-inline: auto;
35
+ inset-inline: 0;
36
+ }
37
+
38
+ .x-handle:where([data-placement="block-start"]) {
39
+ top: var(--space-2);
40
+ }
41
+
42
+ .x-handle:where([data-placement="block-end"]) {
43
+ bottom: var(--space-2);
44
+ }
45
+
46
+ .x-handle:where([data-placement^="inline-"]) {
47
+ width: var(--space-1);
48
+ height: var(--space-8);
49
+ border-radius: max(var(--radius-1), var(--radius-pill));
50
+ background-color: var(--neutral-a8);
51
+ margin-block: auto;
52
+ inset-block: 0;
53
+ }
54
+
55
+ .x-handle:where([data-placement="inline-start"]) {
56
+ inset-inline-start: var(--space-2);
57
+ }
58
+
59
+ .x-handle:where([data-placement="inline-end"]) {
60
+ inset-inline-end: var(--space-2);
61
+ }
62
+
63
+ .x-handle:where([data-placement^="start-"], [data-placement^="end-"]) {
64
+ --_grip-r: max(calc(var(--overlay-grip-radius, var(--radius-5)) - var(--space-1)),
65
+ 0px);
66
+ --_cap: min(var(--space-1), calc(var(--_grip-r) * 9999));
67
+ --_gx: 1;
68
+ --_gy: 1;
69
+ width: max(calc(var(--_grip-r) + var(--space-1)), calc(var(--space-1) * 3));
70
+ height: max(calc(var(--_grip-r) + var(--space-1)), calc(var(--space-1) * 3));
71
+ border: var(--space-1) solid var(--neutral-a8);
72
+ border-bottom-right-radius: var(--_grip-r);
73
+ transform: scale(var(--_gx), var(--_gy));
74
+ -webkit-mask: /* tails, cut flat at the cap centers (full length when capless) */
75
+ linear-gradient(#000, #000) right 0 top calc(var(--_cap) / 2) /
76
+ var(--space-1) calc(100% - var(--_cap) / 2) no-repeat,
77
+ linear-gradient(#000, #000) left calc(var(--_cap) / 2) bottom 0 /
78
+ calc(100% - var(--_cap) / 2) var(--space-1) no-repeat,
79
+ /* arc quadrant — the border's own curve shows through */
80
+ linear-gradient(#000, #000) 100% 100% / var(--_grip-r) var(--_grip-r)
81
+ no-repeat,
82
+ /* round caps, centered on the flat cuts over solid border ink */
83
+ radial-gradient(circle closest-side, #000 calc(100% - .5px), transparent)
84
+ right 0 top 0 / var(--_cap) var(--_cap) no-repeat,
85
+ radial-gradient(circle closest-side, #000 calc(100% - .5px), transparent)
86
+ left 0 bottom 0 / var(--_cap) var(--_cap) no-repeat;
87
+ mask: /* tails, cut flat at the cap centers (full length when capless) */
88
+ linear-gradient(#000, #000) right 0 top calc(var(--_cap) / 2) /
89
+ var(--space-1) calc(100% - var(--_cap) / 2) no-repeat,
90
+ linear-gradient(#000, #000) left calc(var(--_cap) / 2) bottom 0 /
91
+ calc(100% - var(--_cap) / 2) var(--space-1) no-repeat,
92
+ /* arc quadrant — the border's own curve shows through */
93
+ linear-gradient(#000, #000) 100% 100% / var(--_grip-r) var(--_grip-r)
94
+ no-repeat,
95
+ /* round caps, centered on the flat cuts over solid border ink */
96
+ radial-gradient(circle closest-side, #000 calc(100% - .5px), transparent)
97
+ right 0 top 0 / var(--_cap) var(--_cap) no-repeat,
98
+ radial-gradient(circle closest-side, #000 calc(100% - .5px), transparent)
99
+ left 0 bottom 0 / var(--_cap) var(--_cap) no-repeat;
100
+ background: none;
101
+ }
102
+
103
+ .x-handle:where([data-placement="start-end"], [data-placement="end-end"]) {
104
+ inset-inline-end: var(--space-1);
105
+ }
106
+
107
+ .x-handle:where([data-placement="start-start"], [data-placement="end-start"]) {
108
+ --_gx: -1;
109
+ inset-inline-start: var(--space-1);
110
+ }
111
+
112
+ .x-handle:where([data-placement^="end-"]) {
113
+ bottom: var(--space-1);
114
+ }
115
+
116
+ .x-handle:where([data-placement^="start-"]) {
117
+ top: var(--space-1);
118
+ --_gy: -1;
119
+ }
120
+
121
+ .x-handle:where([data-placement="start-end"], [data-placement="end-end"]):where(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
122
+ --_gx: -1;
123
+ }
124
+
125
+ .x-handle:where([data-placement="start-start"], [data-placement="end-start"]):where(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
126
+ --_gx: 1;
127
+ }
128
+
129
+ @media (forced-colors: active) {
130
+ .x-handle:where([data-placement]) {
131
+ background-color: buttontext;
132
+ border-color: buttontext;
133
+ }
134
+ }
@@ -1,88 +1,22 @@
1
1
  .x-overlay {
2
- --overlay-constraint-top: 0px;
3
- --overlay-constraint-left: 0px;
4
- --overlay-constraint-width: 100vw;
5
- --overlay-constraint-height: 100vh;
6
- --_ct: var(--overlay-constraint-top, 0px);
7
- --_cl: var(--overlay-constraint-left, 0px);
8
- --_cw: var(--overlay-constraint-width, 100vw);
9
- --_ch: var(--overlay-constraint-height, 100vh);
10
- }
11
-
12
- @supports (height: 1svh) {
13
- .x-overlay {
14
- --overlay-constraint-width: 100svw;
15
- --overlay-constraint-height: 100svh;
16
- }
17
- }
18
-
19
- .x-overlay {
20
- top: var(--_ct);
21
- left: var(--_cl);
22
- translate: calc(-50% + var(--overlay-dx, 0px) +
23
- clamp(50%,
24
- var(--overlay-x, calc(var(--_cw) / 2)),
25
- calc(-50% + var(--_cw))))
26
- calc(-50% + var(--overlay-dy, 0px) +
27
- clamp(50%,
28
- var(--overlay-y, calc(var(--_ch) / 2)),
29
- calc(-50% + var(--_ch))));
30
- transform: translate(var(--_ex, 0px), var(--_ey, 0px));
31
- bottom: auto;
32
- right: auto;
33
- }
34
-
35
- @supports (anchor-name: --x) and (position-area: block-end) {
36
- .x-overlay[data-anchor="element"] {
37
- translate: var(--overlay-dx, 0px) var(--overlay-dy, 0px);
38
- position-area: var(--overlay-area, block-end);
39
- position-try-fallbacks: flip-block, flip-inline;
40
- position-visibility: anchors-visible;
41
- margin: var(--overlay-gap, var(--space-2));
42
- top: auto;
43
- left: auto;
44
- }
45
- }
46
-
47
- .x-overlay-anchor {
48
- pointer-events: none;
49
- width: 0;
50
- height: 0;
51
- transition: top var(--overlay-duration, .3s)
52
- var(--overlay-easing, cubic-bezier(.32, .72, 0, 1)),
53
- left var(--overlay-duration, .3s)
54
- var(--overlay-easing, cubic-bezier(.32, .72, 0, 1)),
55
- width var(--overlay-duration, .3s)
56
- var(--overlay-easing, cubic-bezier(.32, .72, 0, 1)),
57
- height var(--overlay-duration, .3s)
58
- var(--overlay-easing, cubic-bezier(.32, .72, 0, 1));
59
- position: fixed;
60
- }
61
-
62
- @supports (anchor-name: --x) and (position-area: block-end) {
63
- .x-overlay-anchor[data-follow] {
64
- top: anchor(top);
65
- left: anchor(left);
66
- width: anchor-size(width);
67
- height: anchor-size(height);
68
- }
69
- }
70
-
71
- .x-overlay {
72
- --overlay-width: 480px;
73
- width: var(--overlay-w, var(--overlay-width));
74
- max-width: var(--_cw);
75
- height: var(--overlay-h, fit-content);
76
- max-height: var(--_ch);
77
2
  --overlay-duration: .3s;
78
3
  --overlay-easing: cubic-bezier(.32, .72, 0, 1);
79
- transition: top var(--overlay-duration) var(--overlay-easing),
80
- left var(--overlay-duration) var(--overlay-easing),
81
- translate var(--overlay-duration) var(--overlay-easing),
82
- transform var(--overlay-duration) var(--overlay-easing),
4
+ box-sizing: border-box;
5
+ width: var(--w, var(--overlay-w, auto));
6
+ height: var(--h, var(--overlay-h, auto));
7
+ transition: translate var(--overlay-duration) var(--overlay-easing),
83
8
  width var(--overlay-duration) var(--overlay-easing),
84
9
  height var(--overlay-duration) var(--overlay-easing);
10
+ border: 0;
85
11
  flex-direction: column;
12
+ margin: 0;
13
+ padding: 0;
14
+ bottom: auto;
15
+ right: auto;
16
+ }
17
+
18
+ .x-overlay[data-no-transition] {
19
+ transition: none;
86
20
  }
87
21
 
88
22
  .x-overlay:not([open], :popover-open) {
@@ -102,15 +36,6 @@
102
36
  min-height: 0;
103
37
  }
104
38
 
105
- @supports not (translate: 0px) {
106
- .x-overlay {
107
- top: auto;
108
- left: auto;
109
- margin: auto;
110
- inset: 0;
111
- }
112
- }
113
-
114
39
  @supports (interpolate-size: allow-keywords) {
115
40
  .x-overlay {
116
41
  interpolate-size: allow-keywords;