@ultraviolet/ui 3.0.0-beta.25 → 3.0.0-beta.26

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,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
3
4
  ;/* empty css */
4
5
  ;/* empty css */
5
6
  var rankActionBar = "var(--uv_1p607tg0)";
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
4
  var rankActionBar = "var(--uv_1p607tg0)";
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- ;/* empty css */
4
3
  ;/* empty css */
5
4
  ;/* empty css */
6
5
  const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
3
2
  /* empty css */
4
3
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -224,6 +224,14 @@ const Popup = react.forwardRef(({
224
224
  event.preventDefault();
225
225
  }
226
226
  }, []);
227
+ react.useEffect(() => () => {
228
+ if (timer.current) {
229
+ clearTimeout(timer.current);
230
+ }
231
+ if (debounceTimer.current) {
232
+ clearTimeout(debounceTimer.current);
233
+ }
234
+ }, []);
227
235
  const renderChildren = react.useCallback(() => {
228
236
  if (typeof children === "function") {
229
237
  return children({
@@ -222,6 +222,14 @@ const Popup = forwardRef(({
222
222
  event.preventDefault();
223
223
  }
224
224
  }, []);
225
+ useEffect(() => () => {
226
+ if (timer.current) {
227
+ clearTimeout(timer.current);
228
+ }
229
+ if (debounceTimer.current) {
230
+ clearTimeout(debounceTimer.current);
231
+ }
232
+ }, []);
225
233
  const renderChildren = useCallback(() => {
226
234
  if (typeof children === "function") {
227
235
  return children({
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- ;/* empty css */
4
3
  ;/* empty css */
5
4
  const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
6
5
  var containerPopup = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_w40vpo2", variantClassNames: { hasMaxHeight: { true: "uv_w40vpo3" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
3
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
4
3
  var containerPopup = createRuntimeFn({ defaultClassName: "uv_w40vpo2", variantClassNames: { hasMaxHeight: { true: "uv_w40vpo3" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
3
4
  var arrowTop = "var(--uv_ozfz3c0)";
4
5
  var arrowLeft = "var(--uv_ozfz3c1)";
5
6
  var arrowTransform = "var(--uv_ozfz3c2)";
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  var arrowTop = "var(--uv_ozfz3c0)";
2
3
  var arrowLeft = "var(--uv_ozfz3c1)";
3
4
  var arrowTransform = "var(--uv_ozfz3c2)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "3.0.0-beta.25",
3
+ "version": "3.0.0-beta.26",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -104,6 +104,7 @@
104
104
  "typecheck": "tsc --noEmit",
105
105
  "size": "size-limit",
106
106
  "test:unit": "LC_ALL=en_US.UTF-8 pnpm vitest --run --config vitest.config.ts",
107
+ "test:watch": "LC_ALL=en_US.UTF-8 pnpm vitest watch --config vitest.config.ts",
107
108
  "test:unit:coverage": "pnpm test:unit --coverage",
108
109
  "lintpublish": "publint"
109
110
  }