@exponential_app/eui-react 0.6.0 → 0.7.0
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/index.js +7 -3
- package/dist/index.js.map +3 -3
- package/dist/primitives/index.js +4 -2
- package/dist/primitives/index.js.map +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2741,6 +2741,7 @@ function VoiceWaveBarsNative({ node, props, rootProps, children }) {
|
|
|
2741
2741
|
latest.current = input;
|
|
2742
2742
|
const elapsed = useRef13(0);
|
|
2743
2743
|
const rects = useRef13([]);
|
|
2744
|
+
const svg = useRef13(null);
|
|
2744
2745
|
const animates = voiceWaveAnimates(activity) && !ctx.reducedMotion;
|
|
2745
2746
|
useEffect9(() => {
|
|
2746
2747
|
if (!animates) {
|
|
@@ -2756,7 +2757,7 @@ function VoiceWaveBarsNative({ node, props, rootProps, children }) {
|
|
|
2756
2757
|
el.setAttribute(`y`, String(bar.y));
|
|
2757
2758
|
el.setAttribute(`height`, String(bar.height));
|
|
2758
2759
|
});
|
|
2759
|
-
});
|
|
2760
|
+
}, svg.current);
|
|
2760
2761
|
}, [animates]);
|
|
2761
2762
|
const meter = voiceWaveBars({ ...input, elapsed: elapsed.current });
|
|
2762
2763
|
const colour = String(resolveRecipe(ctx.theme, { component: `VoiceWave`, part: `bar`, props: nativeRecipeProps2(`VoiceWave`, props) }, ctx.mode).color ?? `currentColor`);
|
|
@@ -2770,6 +2771,7 @@ function VoiceWaveBarsNative({ node, props, rootProps, children }) {
|
|
|
2770
2771
|
style: mergeStyle(rootProps, { width: meter.width, height: meter.height }),
|
|
2771
2772
|
children: [
|
|
2772
2773
|
/* @__PURE__ */ jsx12("svg", {
|
|
2774
|
+
ref: svg,
|
|
2773
2775
|
viewBox: `0 0 ${meter.width} ${meter.height}`,
|
|
2774
2776
|
width: meter.width,
|
|
2775
2777
|
height: meter.height,
|
|
@@ -2807,6 +2809,7 @@ function VoiceWaveRingNative({ node, props, rootProps, children }) {
|
|
|
2807
2809
|
latest.current = input;
|
|
2808
2810
|
const elapsed = useRef13(0);
|
|
2809
2811
|
const paths = useRef13([]);
|
|
2812
|
+
const svg = useRef13(null);
|
|
2810
2813
|
const animates = voiceWaveAnimates(activity) && !ctx.reducedMotion;
|
|
2811
2814
|
useEffect9(() => {
|
|
2812
2815
|
if (!animates) {
|
|
@@ -2816,7 +2819,7 @@ function VoiceWaveRingNative({ node, props, rootProps, children }) {
|
|
|
2816
2819
|
return voiceWaveClock((t) => {
|
|
2817
2820
|
elapsed.current = t;
|
|
2818
2821
|
voiceWave({ ...latest.current, elapsed: t }).rings.forEach((ring, k) => paths.current[k]?.setAttribute(`d`, voiceWavePath(ring)));
|
|
2819
|
-
});
|
|
2822
|
+
}, svg.current);
|
|
2820
2823
|
}, [animates]);
|
|
2821
2824
|
const childEl = useRef13(null);
|
|
2822
2825
|
const hasChild = node.children.length > 0;
|
|
@@ -2833,6 +2836,7 @@ function VoiceWaveRingNative({ node, props, rootProps, children }) {
|
|
|
2833
2836
|
style: mergeStyle(rootProps, { width: size, height: size }),
|
|
2834
2837
|
children: [
|
|
2835
2838
|
/* @__PURE__ */ jsx12("svg", {
|
|
2839
|
+
ref: svg,
|
|
2836
2840
|
viewBox: `0 0 ${size} ${size}`,
|
|
2837
2841
|
width: size,
|
|
2838
2842
|
height: size,
|
|
@@ -8076,5 +8080,5 @@ export {
|
|
|
8076
8080
|
walkNodes
|
|
8077
8081
|
};
|
|
8078
8082
|
|
|
8079
|
-
//# debugId=
|
|
8083
|
+
//# debugId=BC5D9945895E03F164756E2164756E21
|
|
8080
8084
|
//# sourceMappingURL=index.js.map
|