@netlify/spark-ui 1.1.0 → 1.1.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.
@@ -1,5 +1,5 @@
1
1
  import { Component as f, options as a, createElement as d, Fragment as h, toChildArray as v } from "preact";
2
- import "./hooks.module.CNV9mxng.js";
2
+ import "./hooks.module.D9IrxdEh.js";
3
3
  function C(e, t) {
4
4
  for (var r in t) e[r] = t[r];
5
5
  return e;
@@ -110,7 +110,7 @@ var U = typeof requestAnimationFrame == "function";
110
110
  function D(_) {
111
111
  var t, r = function() {
112
112
  clearTimeout(o), U && cancelAnimationFrame(t), setTimeout(_);
113
- }, o = setTimeout(r, 100);
113
+ }, o = setTimeout(r, 35);
114
114
  U && (t = requestAnimationFrame(r));
115
115
  }
116
116
  function s(_) {
@@ -1,4 +1,4 @@
1
- import { A as t, y as o } from "./hooks.module.CNV9mxng.js";
1
+ import { A as t, y as o } from "./hooks.module.D9IrxdEh.js";
2
2
  function f(u, n) {
3
3
  const e = t(null), r = t("");
4
4
  return o(() => () => {
@@ -1,5 +1,5 @@
1
1
  import { u as l } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { D as d } from "../../../chunks/compat.module.DT16W4Wr.js";
2
+ import { D as d } from "../../../chunks/compat.module.DJD78v1z.js";
3
3
  const u = d(function({ children: o, className: r, ...a }, t) {
4
4
  return /* @__PURE__ */ l("dialog", { ref: t, className: r, role: "dialog", "aria-modal": "true", ...a, children: o });
5
5
  });
@@ -1,6 +1,6 @@
1
1
  import { u as e } from "../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { d as u, y as h } from "../../../../chunks/hooks.module.CNV9mxng.js";
3
- import { u as o } from "../../../../chunks/useTimeout.DOkYFG64.js";
2
+ import { d as u, y as h } from "../../../../chunks/hooks.module.D9IrxdEh.js";
3
+ import { u as o } from "../../../../chunks/useTimeout.YR4eKwj7.js";
4
4
  import d from "../../Icon/index.js";
5
5
  const I = (a) => {
6
6
  const [r, t] = u(""), { reset: c, run: i } = o((l) => {
@@ -1,5 +1,5 @@
1
1
  import { u as a } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import "../../../../../chunks/hooks.module.CNV9mxng.js";
2
+ import "../../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import { useSearchLogger as h } from "../../hooks/useSearchLogger.js";
4
4
  import c from "../../../Icon/index.js";
5
5
  import '../../../../../assets/SearchLink.css';const k = ({ icon: n, label: s, url: r, excerpt: l, resource: e }) => {
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { A as v, y as u, d as S } from "../../../../../chunks/hooks.module.CNV9mxng.js";
2
+ import { A as v, y as u, d as S } from "../../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import L from "../../../Modal/Modal.js";
4
4
  import d from "../../../KeyboardKey/KeyboardKey.js";
5
5
  import k from "../SearchWindow.js";
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { D as a } from "../../../../../chunks/compat.module.DT16W4Wr.js";
2
+ import { D as a } from "../../../../../chunks/compat.module.DJD78v1z.js";
3
3
  import o from "../../../Icon/index.js";
4
4
  import '../../../../../assets/SearchToggle.css';const s = a(function(r, t) {
5
5
  return /* @__PURE__ */ e("button", { id: r.id, ref: t, class: "n-search-toggle button", disabled: !0, "data-ntl-search-toggle": !0, children: [
@@ -1,5 +1,5 @@
1
1
  import { u as e } from "../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
- import { T as o } from "../../../../chunks/hooks.module.CNV9mxng.js";
2
+ import { T as o } from "../../../../chunks/hooks.module.D9IrxdEh.js";
3
3
  import t from "./SearchHeading/SearchHeading.js";
4
4
  import a from "./SearchLink/SearchLink.js";
5
5
  const h = ({
@@ -1,4 +1,4 @@
1
- import { y as l } from "../../../../chunks/hooks.module.CNV9mxng.js";
1
+ import { y as l } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function s(r, t, o, c) {
3
3
  l(() => {
4
4
  if (!r) return;
@@ -1,5 +1,5 @@
1
- import { d as g, A as w } from "../../../../chunks/hooks.module.CNV9mxng.js";
2
- import { u as S } from "../../../../chunks/useTimeout.DOkYFG64.js";
1
+ import { d as g, A as w } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
+ import { u as S } from "../../../../chunks/useTimeout.YR4eKwj7.js";
3
3
  function x() {
4
4
  const [l, r] = g({
5
5
  searchTerm: "",
@@ -1,4 +1,4 @@
1
- import { y as u } from "../../../../chunks/hooks.module.CNV9mxng.js";
1
+ import { y as u } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function a(t, r, n, o) {
3
3
  u(() => {
4
4
  if (!t) return;
@@ -1,4 +1,4 @@
1
- import { A as y, y as h, q as k } from "../../../../chunks/hooks.module.CNV9mxng.js";
1
+ import { A as y, y as h, q as k } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  class s {
3
3
  /**
4
4
  * Pushes an event payload into the dataLayer.
@@ -1,4 +1,4 @@
1
- import { y as c } from "../../../../chunks/hooks.module.CNV9mxng.js";
1
+ import { y as c } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function n(r, o, a) {
3
3
  c(() => {
4
4
  if (typeof location > "u" || r) return;
@@ -1,4 +1,4 @@
1
- import { y as l } from "../../../../chunks/hooks.module.CNV9mxng.js";
1
+ import { y as l } from "../../../../chunks/hooks.module.D9IrxdEh.js";
2
2
  function i(c, r) {
3
3
  l(() => {
4
4
  if (!c) return;
@@ -5,7 +5,7 @@ import { default as s } from "./SearchModal/components/SearchLink/SearchLink.js"
5
5
  import { default as x } from "./SearchModal/components/SearchHeading/SearchHeading.js";
6
6
  import { default as h } from "./SearchModal/components/SearchToggle/SearchToggle.js";
7
7
  import "preact";
8
- import "../../chunks/hooks.module.CNV9mxng.js";
8
+ import "../../chunks/hooks.module.D9IrxdEh.js";
9
9
  import { default as S } from "./SearchModal/components/SearchModal/SearchModal.js";
10
10
  export {
11
11
  m as Icon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",