@ariakit/solid-core 0.1.1 → 0.1.3

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 (37) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/cjs/focus-trap/focus-trap-region.d.cts +1 -1
  3. package/cjs/focus-trap/focus-trap-region.d.ts +1 -1
  4. package/cjs/group/group-label-context.d.cts +1 -1
  5. package/cjs/group/group-label-context.d.ts +1 -1
  6. package/cjs/group/group-label.d.cts +1 -1
  7. package/cjs/group/group-label.d.ts +1 -1
  8. package/cjs/group/group.d.cts +1 -1
  9. package/cjs/group/group.d.ts +1 -1
  10. package/cjs/heading/heading-context.d.cts +1 -1
  11. package/cjs/heading/heading-context.d.ts +1 -1
  12. package/cjs/heading/heading-level.d.cts +1 -1
  13. package/cjs/heading/heading-level.d.ts +1 -1
  14. package/cjs/heading/heading.d.cts +1 -1
  15. package/cjs/heading/heading.d.ts +1 -1
  16. package/cjs/utils/misc.d.cts +2 -2
  17. package/cjs/utils/misc.d.ts +2 -2
  18. package/cjs/utils/reactivity.d.cts +1 -1
  19. package/cjs/utils/reactivity.d.ts +1 -1
  20. package/cjs/utils/system.d.cts +3 -3
  21. package/cjs/utils/system.d.ts +3 -3
  22. package/esm/focus-trap/focus-trap-region.d.ts +1 -1
  23. package/esm/group/group-label-context.d.ts +1 -1
  24. package/esm/group/group-label.d.ts +1 -1
  25. package/esm/group/group.d.ts +1 -1
  26. package/esm/heading/heading-context.d.ts +1 -1
  27. package/esm/heading/heading-level.d.ts +1 -1
  28. package/esm/heading/heading.d.ts +1 -1
  29. package/esm/utils/misc.d.ts +2 -2
  30. package/esm/utils/reactivity.d.ts +1 -1
  31. package/esm/utils/system.d.ts +3 -3
  32. package/license +1 -1
  33. package/package.json +4 -4
  34. package/solid/__chunks/{HUX7TBVM.jsx → Q6BUFAC7.jsx} +4 -4
  35. package/solid/as/as.jsx +1 -1
  36. package/solid/group/group-label.jsx +1 -5
  37. package/solid/group/group.jsx +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @ariakit/solid-core
2
2
 
3
+ ## 0.1.3
4
+
5
+ - Updated packages to target ES2018 (previously ES2017).
6
+ - Updated dependencies: `@ariakit/core@0.4.17`
7
+
8
+ ## 0.1.2
9
+
10
+ - Updated dependencies: `@ariakit/core@0.4.16`
11
+
3
12
  ## 0.1.1
4
13
 
5
14
  - Updated dependencies: `@ariakit/core@0.4.15`
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,2 +1,2 @@
1
- import { type Setter } from "solid-js";
1
+ import type { Setter } from "solid-js";
2
2
  export declare const GroupLabelContext: import("solid-js").Context<Setter<string | undefined> | undefined>;
@@ -1,2 +1,2 @@
1
- import { type Setter } from "solid-js";
1
+ import type { Setter } from "solid-js";
2
2
  export declare const GroupLabelContext: import("solid-js").Context<Setter<string | undefined> | undefined>;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,3 +1,3 @@
1
- import { type Accessor } from "solid-js";
1
+ import type { Accessor } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  export declare const HeadingContext: import("solid-js").Context<Accessor<HeadingLevels> | undefined>;
@@ -1,3 +1,3 @@
1
- import { type Accessor } from "solid-js";
1
+ import type { Accessor } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  export declare const HeadingContext: import("solid-js").Context<Accessor<HeadingLevels> | undefined>;
@@ -1,4 +1,4 @@
1
- import { type JSX } from "solid-js";
1
+ import type { JSX } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  /**
4
4
  * A component that sets the heading level for its children. It doesn't render
@@ -1,4 +1,4 @@
1
- import { type JSX } from "solid-js";
1
+ import type { JSX } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  /**
4
4
  * A component that sets the heading level for its children. It doesn't render
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  import type { HeadingLevels } from "./utils.ts";
4
4
  type HeadingElements = `h${HeadingLevels}`;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  import type { HeadingLevels } from "./utils.ts";
4
4
  type HeadingElements = `h${HeadingLevels}`;
@@ -1,5 +1,5 @@
1
- import { type MaybeAccessor } from "@solid-primitives/utils";
2
- import { type Accessor, type ValidComponent } from "solid-js";
1
+ import type { MaybeAccessor } from "@solid-primitives/utils";
2
+ import type { Accessor, ValidComponent } from "solid-js";
3
3
  /**
4
4
  * Generates a unique ID.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { type MaybeAccessor } from "@solid-primitives/utils";
2
- import { type Accessor, type ValidComponent } from "solid-js";
1
+ import type { MaybeAccessor } from "@solid-primitives/utils";
2
+ import type { Accessor, ValidComponent } from "solid-js";
3
3
  /**
4
4
  * Generates a unique ID.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { AnyObject } from "@ariakit/core/utils/types";
2
- import { type Accessor, type JSX, type Setter } from "solid-js";
2
+ import type { Accessor, JSX, Setter } from "solid-js";
3
3
  /**
4
4
  * Creates a stable accessor. Useful when creating derived accessors that
5
5
  * depend on a mutable variable that may change later.
@@ -1,5 +1,5 @@
1
1
  import type { AnyObject } from "@ariakit/core/utils/types";
2
- import { type Accessor, type JSX, type Setter } from "solid-js";
2
+ import type { Accessor, JSX, Setter } from "solid-js";
3
3
  /**
4
4
  * Creates a stable accessor. Useful when creating derived accessors that
5
5
  * depend on a mutable variable that may change later.
@@ -1,7 +1,7 @@
1
1
  import type { AnyObject, EmptyObject } from "@ariakit/core/utils/types";
2
- import { type ValidComponent } from "solid-js";
3
- import { type ExtractPropsWithDefaultsExtractedProps, type ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
- import type { HTMLProps, Hook, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
2
+ import type { ValidComponent } from "solid-js";
3
+ import type { ExtractPropsWithDefaultsExtractedProps, ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
+ import type { Hook, HTMLProps, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
5
5
  /**
6
6
  * Creates a Solid component instance that supports the `render` and
7
7
  * `wrapInstance` props.
@@ -1,7 +1,7 @@
1
1
  import type { AnyObject, EmptyObject } from "@ariakit/core/utils/types";
2
- import { type ValidComponent } from "solid-js";
3
- import { type ExtractPropsWithDefaultsExtractedProps, type ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
- import type { HTMLProps, Hook, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
2
+ import type { ValidComponent } from "solid-js";
3
+ import type { ExtractPropsWithDefaultsExtractedProps, ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
+ import type { Hook, HTMLProps, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
5
5
  /**
6
6
  * Creates a Solid component instance that supports the `render` and
7
7
  * `wrapInstance` props.
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,2 +1,2 @@
1
- import { type Setter } from "solid-js";
1
+ import type { Setter } from "solid-js";
2
2
  export declare const GroupLabelContext: import("solid-js").Context<Setter<string | undefined> | undefined>;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  declare const TagName = "div";
4
4
  type TagName = typeof TagName;
@@ -1,3 +1,3 @@
1
- import { type Accessor } from "solid-js";
1
+ import type { Accessor } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  export declare const HeadingContext: import("solid-js").Context<Accessor<HeadingLevels> | undefined>;
@@ -1,4 +1,4 @@
1
- import { type JSX } from "solid-js";
1
+ import type { JSX } from "solid-js";
2
2
  import type { HeadingLevels } from "./utils.ts";
3
3
  /**
4
4
  * A component that sets the heading level for its children. It doesn't render
@@ -1,4 +1,4 @@
1
- import { type ValidComponent } from "solid-js";
1
+ import type { ValidComponent } from "solid-js";
2
2
  import type { Options, Props } from "../utils/types.ts";
3
3
  import type { HeadingLevels } from "./utils.ts";
4
4
  type HeadingElements = `h${HeadingLevels}`;
@@ -1,5 +1,5 @@
1
- import { type MaybeAccessor } from "@solid-primitives/utils";
2
- import { type Accessor, type ValidComponent } from "solid-js";
1
+ import type { MaybeAccessor } from "@solid-primitives/utils";
2
+ import type { Accessor, ValidComponent } from "solid-js";
3
3
  /**
4
4
  * Generates a unique ID.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { AnyObject } from "@ariakit/core/utils/types";
2
- import { type Accessor, type JSX, type Setter } from "solid-js";
2
+ import type { Accessor, JSX, Setter } from "solid-js";
3
3
  /**
4
4
  * Creates a stable accessor. Useful when creating derived accessors that
5
5
  * depend on a mutable variable that may change later.
@@ -1,7 +1,7 @@
1
1
  import type { AnyObject, EmptyObject } from "@ariakit/core/utils/types";
2
- import { type ValidComponent } from "solid-js";
3
- import { type ExtractPropsWithDefaultsExtractedProps, type ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
- import type { HTMLProps, Hook, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
2
+ import type { ValidComponent } from "solid-js";
3
+ import type { ExtractPropsWithDefaultsExtractedProps, ExtractPropsWithDefaultsRestProps } from "./reactivity.ts";
4
+ import type { Hook, HTMLProps, Options, Props, WrapInstance, WrapInstanceValue } from "./types.ts";
5
5
  /**
6
6
  * Creates a Solid component instance that supports the `render` and
7
7
  * `wrapInstance` props.
package/license CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Diego Haz, Dani Guardiola
3
+ Copyright (c) 2025-present Ariakit FZ-LLC, Dani Guardiola
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariakit/solid-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Ariakit Solid core",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -37,9 +37,9 @@
37
37
  "core"
38
38
  ],
39
39
  "dependencies": {
40
- "@ariakit/core": "0.4.15",
41
- "@solid-primitives/props": "3.2.0",
42
- "@solid-primitives/utils": "6.3.0"
40
+ "@ariakit/core": "0.4.17",
41
+ "@solid-primitives/props": "3.2.2",
42
+ "@solid-primitives/utils": "6.3.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "solid-js": "^1.8"
@@ -7,23 +7,23 @@ import { Dynamic } from "solid-js/web";
7
7
  var cache = /* @__PURE__ */ new Map();
8
8
  var As = new Proxy(
9
9
  function As2(props) {
10
- return (parentProps) => (
10
+ return ((parentProps) => (
11
11
  // TODO: replace with LazyDynamic
12
12
  <Dynamic
13
13
  {...mergeProps(parentProps, props)}
14
14
  component={props.component}
15
15
  />
16
- );
16
+ ));
17
17
  },
18
18
  {
19
19
  get: (_, key) => {
20
20
  let component = cache.get(key);
21
21
  if (!component) {
22
22
  component = function AsElement(props) {
23
- return (parentProps) => (
23
+ return ((parentProps) => (
24
24
  // TODO: replace with LazyDynamic
25
25
  <Dynamic {...mergeProps(parentProps, props)} component={key} />
26
- );
26
+ ));
27
27
  };
28
28
  cache.set(key, component);
29
29
  }
package/solid/as/as.jsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  As
3
- } from "../__chunks/HUX7TBVM.jsx";
3
+ } from "../__chunks/Q6BUFAC7.jsx";
4
4
  import "../__chunks/ALJQAVR2.jsx";
5
5
  export {
6
6
  As
@@ -14,11 +14,7 @@ import {
14
14
  } from "../__chunks/TCHPU5P4.jsx";
15
15
 
16
16
  // src/group/group-label.tsx
17
- import {
18
- createEffect,
19
- onCleanup,
20
- useContext
21
- } from "solid-js";
17
+ import { createEffect, onCleanup, useContext } from "solid-js";
22
18
  var TagName = "div";
23
19
  var useGroupLabel = createHook(
24
20
  function useGroupLabel2(props) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  As
3
- } from "../__chunks/HUX7TBVM.jsx";
3
+ } from "../__chunks/Q6BUFAC7.jsx";
4
4
  import {
5
5
  createHook,
6
6
  createInstance,