@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.
- package/dist/components/ActionBar/styles.css.cjs +1 -0
- package/dist/components/ActionBar/styles.css.js +1 -0
- package/dist/components/Avatar/styles.css.cjs +0 -1
- package/dist/components/Avatar/styles.css.js +0 -1
- package/dist/components/Popup/index.cjs +8 -0
- package/dist/components/Popup/index.js +8 -0
- package/dist/components/Popup/styles.css.cjs +0 -1
- package/dist/components/Popup/styles.css.js +0 -1
- package/dist/components/Popup/variables.css.cjs +1 -0
- package/dist/components/Popup/variables.css.js +1 -0
- package/package.json +2 -1
|
@@ -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: [] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
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
|
}
|