elements-kit 0.23.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/await.d.mts +1 -1
  2. package/dist/{children-BbHF-Dew.d.mts → children-CYLVeDZc.d.mts} +1 -1
  3. package/dist/for.d.mts +1 -1
  4. package/dist/{index-BR8XVkck.d.mts → index-CzKKJCCK.d.mts} +2 -2
  5. package/dist/integrations/react.d.mts +1 -1
  6. package/dist/jsx-runtime/index.d.mts +2 -2
  7. package/dist/signals/index.d.mts +1 -1
  8. package/dist/signals/index.mjs +3 -3
  9. package/dist/utilities/active-element.d.mts +1 -1
  10. package/dist/utilities/async.d.mts +1 -1
  11. package/dist/utilities/debounced.d.mts +1 -1
  12. package/dist/utilities/element-rect.d.mts +1 -1
  13. package/dist/utilities/element-scroll.d.mts +1 -1
  14. package/dist/utilities/event-driven.d.mts +1 -1
  15. package/dist/utilities/event-listener.d.mts +1 -1
  16. package/dist/utilities/focus-within.d.mts +1 -1
  17. package/dist/utilities/hover.d.mts +1 -1
  18. package/dist/utilities/interval.d.mts +1 -1
  19. package/dist/utilities/location.d.mts +1 -1
  20. package/dist/utilities/media-devices.d.mts +1 -1
  21. package/dist/utilities/media-player.d.mts +1 -1
  22. package/dist/utilities/media-query.d.mts +1 -1
  23. package/dist/utilities/network.d.mts +1 -1
  24. package/dist/utilities/orientation.d.mts +1 -1
  25. package/dist/utilities/previous.d.mts +1 -1
  26. package/dist/utilities/promise.d.mts +1 -1
  27. package/dist/utilities/routing.d.mts +1 -1
  28. package/dist/utilities/search-params.d.mts +1 -1
  29. package/dist/utilities/storage.d.mts +1 -1
  30. package/dist/utilities/throttled.d.mts +1 -1
  31. package/dist/utilities/timeout.d.mts +1 -1
  32. package/dist/utilities/window-focus.d.mts +1 -1
  33. package/dist/utilities/window-size.d.mts +1 -1
  34. package/package.json +1 -1
package/dist/await.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as Props, t as Children } from "./children-BbHF-Dew.mjs";
1
+ import { s as Props, t as Children } from "./children-CYLVeDZc.mjs";
2
2
 
3
3
  //#region src/await.d.ts
4
4
  /** @internal Metadata stamped on an Await region getter (see claim walk). */
@@ -1,6 +1,6 @@
1
1
  import { n as AttrChangeHandler, t as ATTRIBUTES } from "./attributes-DILeh3-s.mjs";
2
2
  import { i as PropertiesOf, n as CustomElementRegistry, r as EventsOf } from "./custom-elements-CdpilMDu.mjs";
3
- import { r as MaybeReactive } from "./index-BR8XVkck.mjs";
3
+ import { r as MaybeReactive } from "./index-CzKKJCCK.mjs";
4
4
  import * as CSS from "csstype";
5
5
  import { JSX } from "dom-expressions/src/jsx";
6
6
 
package/dist/for.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as MaybeReactiveProps } from "./children-BbHF-Dew.mjs";
1
+ import { o as MaybeReactiveProps } from "./children-CYLVeDZc.mjs";
2
2
 
3
3
  //#region src/for.d.ts
4
4
  type KeyFn<T> = (item: T, index: number) => string | number;
@@ -373,8 +373,8 @@ type NoArgFnProps<P> = { [K in keyof P]: ArgCount<P[K]> extends 0 ? P[K] : ArgFn
373
373
  * components their props untouched.
374
374
  *
375
375
  * Every key is callable, including one the caller omitted. A getter is always
376
- * truthy, so defaults go on the call: `props.excited() ?? "…"`. Read a bag by
377
- * calling the key {@link resolve} is for raw props.
376
+ * truthy, so defaults go on the call: `props.excited() ?? "…"`. Keys are
377
+ * branded sources, so they keep working when forwarded to a child component.
378
378
  *
379
379
  * Function props are the limit: a prop taking arguments is rejected, and a
380
380
  * zero-arg one types as its return value. Read those off the raw props.
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/integrations/react.d.ts
4
4
  /**
@@ -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-BbHF-Dew.mjs";
2
- import { n as ComputedProps, r as MaybeReactive } from "../index-BR8XVkck.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-CYLVeDZc.mjs";
2
+ import { n as ComputedProps, r as MaybeReactive } from "../index-CzKKJCCK.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,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-BR8XVkck.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-CzKKJCCK.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 };
@@ -101,8 +101,8 @@ const COMPUTED_PROPS = Symbol.for("elements-kit.computed-props");
101
101
  * components their props untouched.
102
102
  *
103
103
  * Every key is callable, including one the caller omitted. A getter is always
104
- * truthy, so defaults go on the call: `props.excited() ?? "…"`. Read a bag by
105
- * calling the key {@link resolve} is for raw props.
104
+ * truthy, so defaults go on the call: `props.excited() ?? "…"`. Keys are
105
+ * branded sources, so they keep working when forwarded to a child component.
106
106
  *
107
107
  * Function props are the limit: a prop taking arguments is rejected, and a
108
108
  * zero-arg one types as its return value. Read those off the raw props.
@@ -124,7 +124,7 @@ function computedProps(raw) {
124
124
  let getter = cache.get(key);
125
125
  if (!getter) {
126
126
  const v = raw[key];
127
- getter = isReactive(v) ? v : () => v;
127
+ getter = isReactive(v) ? v : computed(() => v);
128
128
  cache.set(key, getter);
129
129
  }
130
130
  return getter;
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/active-element.d.ts
4
4
  declare const activeElement: Computed<Element | null>;
@@ -1,4 +1,4 @@
1
- import { m as SEED, r as MaybeReactive, u as CLAIM } from "../index-BR8XVkck.mjs";
1
+ import { m as SEED, r as MaybeReactive, u as CLAIM } from "../index-CzKKJCCK.mjs";
2
2
  import { ComputedPromise } from "./promise.mjs";
3
3
 
4
4
  //#region src/utilities/async.d.ts
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/debounced.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/element-rect.d.ts
4
4
  type RectResult = {
@@ -1,4 +1,4 @@
1
- import { i as Signal } from "../index-BR8XVkck.mjs";
1
+ import { i as Signal } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/element-scroll.d.ts
4
4
  type ElementScrollResult = {
@@ -1,4 +1,4 @@
1
- import { i as Signal, t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { i as Signal, t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/event-driven.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/event-listener.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/focus-within.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/hover.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/interval.d.ts
4
4
  type IntervalResult = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/location.d.ts
4
4
  type LocationResult = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/media-devices.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { i as Signal, t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { i as Signal, t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/media-player.d.ts
4
4
  type MediaPlayerResult<T extends HTMLMediaElement> = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/media-query.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/network.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/orientation.d.ts
4
4
  type OrientationResult = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/previous.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { m as SEED, t as Computed, u as CLAIM } from "../index-BR8XVkck.mjs";
1
+ import { m as SEED, t as Computed, u as CLAIM } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/promise.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/routing.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/search-params.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { i as Signal } from "../index-BR8XVkck.mjs";
1
+ import { i as Signal } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/storage.d.ts
4
4
  type StorageOptions<T> = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/throttled.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/timeout.d.ts
4
4
  type TimeoutResult = {
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/window-focus.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as Computed } from "../index-BR8XVkck.mjs";
1
+ import { t as Computed } from "../index-CzKKJCCK.mjs";
2
2
 
3
3
  //#region src/utilities/window-size.d.ts
4
4
  type WindowSizeResult = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elements-kit",
3
3
  "type": "module",
4
- "version": "0.23.0",
4
+ "version": "0.23.1",
5
5
  "description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
6
6
  "keywords": [
7
7
  "webcomponents",