@knitui/components 0.11.0 → 0.12.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.
- package/lib/commonjs/Input/Input.js +4 -1
- package/lib/commonjs/Input/Input.js.map +1 -1
- package/lib/commonjs/Skeleton/Skeleton.js +72 -3
- package/lib/commonjs/Skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/use-reveal-pulse.js +77 -0
- package/lib/commonjs/internal/use-reveal-pulse.js.map +1 -0
- package/lib/commonjs/internal/use-reveal-pulse.native.js +69 -0
- package/lib/commonjs/internal/use-reveal-pulse.native.js.map +1 -0
- package/lib/commonjs/internal/use-reveal-pulse.shared.js +52 -0
- package/lib/commonjs/internal/use-reveal-pulse.shared.js.map +1 -0
- package/lib/module/Input/Input.js +4 -1
- package/lib/module/Input/Input.js.map +1 -1
- package/lib/module/Skeleton/Skeleton.js +71 -2
- package/lib/module/Skeleton/Skeleton.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/use-reveal-pulse.js +71 -0
- package/lib/module/internal/use-reveal-pulse.js.map +1 -0
- package/lib/module/internal/use-reveal-pulse.native.js +63 -0
- package/lib/module/internal/use-reveal-pulse.native.js.map +1 -0
- package/lib/module/internal/use-reveal-pulse.shared.js +48 -0
- package/lib/module/internal/use-reveal-pulse.shared.js.map +1 -0
- package/lib/typescript/Input/Input.d.ts.map +1 -1
- package/lib/typescript/Skeleton/Skeleton.d.ts +29 -0
- package/lib/typescript/Skeleton/Skeleton.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/internal/use-reveal-pulse.d.ts +31 -0
- package/lib/typescript/internal/use-reveal-pulse.d.ts.map +1 -0
- package/lib/typescript/internal/use-reveal-pulse.native.d.ts +22 -0
- package/lib/typescript/internal/use-reveal-pulse.native.d.ts.map +1 -0
- package/lib/typescript/internal/use-reveal-pulse.shared.d.ts +31 -0
- package/lib/typescript/internal/use-reveal-pulse.shared.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/Input/Input.tsx +8 -1
- package/src/Skeleton/Skeleton.tsx +73 -2
- package/src/index.ts +1 -1
- package/src/internal/use-reveal-pulse.native.tsx +72 -0
- package/src/internal/use-reveal-pulse.shared.ts +57 -0
- package/src/internal/use-reveal-pulse.tsx +79 -0
package/src/Input/Input.tsx
CHANGED
|
@@ -189,6 +189,10 @@ const InputComponent = StyledInput.styleable<WebInputProps>((props, _forwardedRe
|
|
|
189
189
|
// Removes the host chrome so the input renders bare (composite inputs).
|
|
190
190
|
unstyled,
|
|
191
191
|
|
|
192
|
+
// RN-style prop with no DOM equivalent: it feeds `--t_placeholderColor`
|
|
193
|
+
// below instead of leaking onto the `<input>` as an unknown attribute.
|
|
194
|
+
placeholderTextColor,
|
|
195
|
+
|
|
192
196
|
...rest
|
|
193
197
|
} = props;
|
|
194
198
|
|
|
@@ -322,7 +326,10 @@ const InputComponent = StyledInput.styleable<WebInputProps>((props, _forwardedRe
|
|
|
322
326
|
style && typeof style === "object" && !Array.isArray(style) ? style : undefined;
|
|
323
327
|
const inputStyle: InputStyle = {
|
|
324
328
|
...(incomingStyle as object),
|
|
325
|
-
"--t_placeholderColor":
|
|
329
|
+
"--t_placeholderColor":
|
|
330
|
+
typeof placeholderTextColor === "string"
|
|
331
|
+
? themeColorToCssVar(placeholderTextColor)
|
|
332
|
+
: PLACEHOLDER_COLOR_VAR,
|
|
326
333
|
"--t_selectionColor": SELECTION_COLOR_VAR,
|
|
327
334
|
};
|
|
328
335
|
|
|
@@ -6,6 +6,7 @@ import { useReducedMotion } from "@knitui/hooks";
|
|
|
6
6
|
import { Box } from "../Box";
|
|
7
7
|
import { radiusVariant } from "../internal/style-props";
|
|
8
8
|
import { asLoopHost, useLoopingAnimation } from "../internal/use-looping-animation";
|
|
9
|
+
import { asRevealHost, type RevealPulseMotion, useRevealPulse } from "../internal/use-reveal-pulse";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Placeholder block shown while content loads — mirrors Mantine's `Skeleton`.
|
|
@@ -52,6 +53,13 @@ export interface SkeletonProps extends GetProps<typeof SkeletonFrame> {
|
|
|
52
53
|
animate?: boolean;
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Set by {@link SkeletonGroup}: the group owns the animation and the busy
|
|
58
|
+
* announcement, so a `Skeleton` inside one schedules no loop of its own and
|
|
59
|
+
* hides itself from assistive tech (the group is the one busy region).
|
|
60
|
+
*/
|
|
61
|
+
const SkeletonGroupContext = React.createContext(false);
|
|
62
|
+
|
|
55
63
|
export const Skeleton = SkeletonFrame.styleable<SkeletonProps>(function Skeleton(props, ref) {
|
|
56
64
|
const {
|
|
57
65
|
visible = true,
|
|
@@ -71,7 +79,8 @@ export const Skeleton = SkeletonFrame.styleable<SkeletonProps>(function Skeleton
|
|
|
71
79
|
// Reduced motion is handled inside the hook (it returns a static, animation-
|
|
72
80
|
// free frame), so no separate `reduced` branch is needed here.
|
|
73
81
|
const reduced = useReducedMotion();
|
|
74
|
-
const
|
|
82
|
+
const grouped = React.useContext(SkeletonGroupContext);
|
|
83
|
+
const pulsing = animate && !reduced && visible && !grouped;
|
|
75
84
|
const loop = useLoopingAnimation({
|
|
76
85
|
kind: "pulse",
|
|
77
86
|
durationMs: DURATIONS.ambient,
|
|
@@ -108,7 +117,7 @@ export const Skeleton = SkeletonFrame.styleable<SkeletonProps>(function Skeleton
|
|
|
108
117
|
// style props). The frame is an `asLoopHost` reanimated view on native so
|
|
109
118
|
// that animated `style` has a valid host.
|
|
110
119
|
{...(pulsing ? loop : null)}
|
|
111
|
-
{...busyProps(true)}
|
|
120
|
+
{...(grouped ? hiddenProps() : busyProps(true))}
|
|
112
121
|
{...rest}
|
|
113
122
|
>
|
|
114
123
|
{/* Children preserve intrinsic size but stay hidden behind the placeholder. */}
|
|
@@ -118,3 +127,65 @@ export const Skeleton = SkeletonFrame.styleable<SkeletonProps>(function Skeleton
|
|
|
118
127
|
</SkeletonLoopFrame>
|
|
119
128
|
);
|
|
120
129
|
});
|
|
130
|
+
|
|
131
|
+
// ── SkeletonGroup ────────────────────────────────────────────────────────────
|
|
132
|
+
|
|
133
|
+
const SkeletonGroupFrame = asRevealHost(Box);
|
|
134
|
+
|
|
135
|
+
/** Precise web a11y props for the group's busy region; spread to dodge excess-property checks. */
|
|
136
|
+
const groupA11y = (
|
|
137
|
+
label: string,
|
|
138
|
+
): { "aria-busy"?: boolean; "aria-label"?: string; role?: "progressbar" } => ({
|
|
139
|
+
"aria-busy": true,
|
|
140
|
+
"aria-label": label,
|
|
141
|
+
role: "progressbar",
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export interface SkeletonGroupProps extends GetProps<typeof Box>, RevealPulseMotion {
|
|
145
|
+
/** Accessible name of the busy region. @default "Loading" */
|
|
146
|
+
label?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* A loading SILHOUETTE: a layout of `Skeleton` blocks animated as ONE.
|
|
151
|
+
*
|
|
152
|
+
* Every `Skeleton` inside stops scheduling its own pulse (a screen of 20 blocks
|
|
153
|
+
* was 20 compositor animations on web and 20 `withRepeat` worklets on native),
|
|
154
|
+
* and the group runs a single reveal-then-pulse on itself instead:
|
|
155
|
+
*
|
|
156
|
+
* • HOLD invisible for `delayMs` (default 150) — a load that finishes inside
|
|
157
|
+
* it swaps straight to content, so a fast response never strobes grey;
|
|
158
|
+
* • FADE in over `fadeMs`;
|
|
159
|
+
* • PULSE the whole silhouette in phase.
|
|
160
|
+
*
|
|
161
|
+
* It is a plain `Box` otherwise (layout props pass through), and it is the one
|
|
162
|
+
* `aria-busy` region — grouped blocks are hidden from assistive tech. Reduced
|
|
163
|
+
* motion keeps the hold and drops the fade and pulse.
|
|
164
|
+
*
|
|
165
|
+
* <SkeletonGroup flex={1} gap="$md">
|
|
166
|
+
* <Skeleton height={220} radius={0} />
|
|
167
|
+
* <Skeleton width="60%" height={20} />
|
|
168
|
+
* </SkeletonGroup>
|
|
169
|
+
*/
|
|
170
|
+
export const SkeletonGroup = React.forwardRef<React.ComponentRef<typeof Box>, SkeletonGroupProps>(
|
|
171
|
+
function SkeletonGroup(props, ref) {
|
|
172
|
+
const {
|
|
173
|
+
delayMs,
|
|
174
|
+
fadeMs,
|
|
175
|
+
durationMs,
|
|
176
|
+
minOpacity,
|
|
177
|
+
pulse,
|
|
178
|
+
label = "Loading",
|
|
179
|
+
children,
|
|
180
|
+
...rest
|
|
181
|
+
} = props;
|
|
182
|
+
const reveal = useRevealPulse({ delayMs, fadeMs, durationMs, minOpacity, pulse });
|
|
183
|
+
return (
|
|
184
|
+
<SkeletonGroupContext.Provider value>
|
|
185
|
+
<SkeletonGroupFrame ref={ref} {...groupA11y(label)} {...rest} {...reveal}>
|
|
186
|
+
{children}
|
|
187
|
+
</SkeletonGroupFrame>
|
|
188
|
+
</SkeletonGroupContext.Provider>
|
|
189
|
+
);
|
|
190
|
+
},
|
|
191
|
+
);
|
package/src/index.ts
CHANGED
|
@@ -469,7 +469,7 @@ export {
|
|
|
469
469
|
type SimpleGridSpacing,
|
|
470
470
|
type SimpleGridStyles,
|
|
471
471
|
} from "./SimpleGrid";
|
|
472
|
-
export { Skeleton, type SkeletonProps } from "./Skeleton";
|
|
472
|
+
export { Skeleton, SkeletonGroup, type SkeletonGroupProps, type SkeletonProps } from "./Skeleton";
|
|
473
473
|
export {
|
|
474
474
|
RangeSlider,
|
|
475
475
|
type RangeSliderProps,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Animated, {
|
|
3
|
+
Easing,
|
|
4
|
+
useAnimatedStyle,
|
|
5
|
+
useSharedValue,
|
|
6
|
+
withDelay,
|
|
7
|
+
withRepeat,
|
|
8
|
+
withSequence,
|
|
9
|
+
withTiming,
|
|
10
|
+
} from "react-native-reanimated";
|
|
11
|
+
|
|
12
|
+
import { useReducedMotion } from "@knitui/hooks";
|
|
13
|
+
|
|
14
|
+
import { resolveRevealPulse, type RevealPulseMotion } from "./use-reveal-pulse.shared";
|
|
15
|
+
|
|
16
|
+
export type { RevealPulseMotion } from "./use-reveal-pulse.shared";
|
|
17
|
+
|
|
18
|
+
/** The reanimated animated style returned by {@link useRevealPulse}. */
|
|
19
|
+
export interface RevealPulseStyle {
|
|
20
|
+
style: ReturnType<typeof useAnimatedStyle>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Promote a frame so a {@link useRevealPulse} style can ride on it (native): an
|
|
25
|
+
* animated style may only land on an `Animated.*` host — same move as
|
|
26
|
+
* `asLoopHost`. Web sibling is the identity.
|
|
27
|
+
*/
|
|
28
|
+
export const asRevealHost = <C extends React.ComponentType<any>>(Component: C): C =>
|
|
29
|
+
Animated.createAnimatedComponent(Component as React.ComponentClass<unknown>) as unknown as C;
|
|
30
|
+
|
|
31
|
+
const PULSE_EASING = Easing.bezier(0.42, 0, 0.58, 1);
|
|
32
|
+
const FADE_EASING = Easing.out(Easing.quad);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Reveal-then-pulse (native): ONE shared value on the UI thread runs the whole
|
|
36
|
+
* timeline — `withDelay(hold, withSequence(fade, withRepeat(pulse)))` — so a
|
|
37
|
+
* silhouette of any number of blocks costs one animated node and no JS frames.
|
|
38
|
+
* See `use-reveal-pulse.shared.ts` for the timeline.
|
|
39
|
+
*/
|
|
40
|
+
export function useRevealPulse(motion?: RevealPulseMotion): RevealPulseStyle {
|
|
41
|
+
const reduced = useReducedMotion();
|
|
42
|
+
const { delayMs, fadeMs, durationMs, minOpacity, pulse } = resolveRevealPulse(motion);
|
|
43
|
+
const pulsing = pulse && !reduced && durationMs > 0 && minOpacity < 1;
|
|
44
|
+
const opacity = useSharedValue(0);
|
|
45
|
+
|
|
46
|
+
React.useEffect(() => {
|
|
47
|
+
const fadeIn = withTiming(1, { duration: reduced ? 0 : fadeMs, easing: FADE_EASING });
|
|
48
|
+
const timeline = pulsing
|
|
49
|
+
? withSequence(
|
|
50
|
+
fadeIn,
|
|
51
|
+
withRepeat(
|
|
52
|
+
withTiming(minOpacity, { duration: durationMs, easing: PULSE_EASING }),
|
|
53
|
+
-1,
|
|
54
|
+
true,
|
|
55
|
+
),
|
|
56
|
+
)
|
|
57
|
+
: fadeIn;
|
|
58
|
+
opacity.value = 0;
|
|
59
|
+
opacity.value = delayMs > 0 ? withDelay(delayMs, timeline) : timeline;
|
|
60
|
+
return () => {
|
|
61
|
+
// Assigning cancels the running animation; a re-run starts clean.
|
|
62
|
+
opacity.value = 0;
|
|
63
|
+
};
|
|
64
|
+
}, [opacity, reduced, pulsing, delayMs, fadeMs, durationMs, minOpacity]);
|
|
65
|
+
|
|
66
|
+
const style = useAnimatedStyle(() => {
|
|
67
|
+
"worklet";
|
|
68
|
+
return { opacity: opacity.value };
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
return { style };
|
|
72
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DURATIONS } from "@knitui/core";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared types + defaults for the reveal-then-pulse primitive
|
|
5
|
+
* (`use-reveal-pulse` web / `.native`) behind `SkeletonGroup`. One element, one
|
|
6
|
+
* animation timeline:
|
|
7
|
+
*
|
|
8
|
+
* 1. HOLD at opacity 0 for `delayMs` — content that arrives inside it swaps in
|
|
9
|
+
* without a placeholder ever painting (no grey strobe on a fast load);
|
|
10
|
+
* 2. FADE to 1 over `fadeMs`;
|
|
11
|
+
* 3. PULSE between 1 and `minOpacity` forever, `durationMs` per half-cycle.
|
|
12
|
+
*
|
|
13
|
+
* Reduced motion keeps the hold (it is about flashing, not motion) and snaps in
|
|
14
|
+
* with no fade and no pulse. Both platform files read these defaults so the
|
|
15
|
+
* web and native silhouettes keep the same clock.
|
|
16
|
+
*/
|
|
17
|
+
export interface RevealPulseMotion {
|
|
18
|
+
/** Hold invisible before revealing, ms. @default 150 */
|
|
19
|
+
delayMs?: number;
|
|
20
|
+
/** Fade-in once the hold ends, ms. @default 200 (`DURATIONS.base`) */
|
|
21
|
+
fadeMs?: number;
|
|
22
|
+
/** One pulse half-cycle, ms. @default 1200 (2 × `DURATIONS.ambient`) */
|
|
23
|
+
durationMs?: number;
|
|
24
|
+
/** Dimmest opacity at the pulse's trough. @default 0.5 */
|
|
25
|
+
minOpacity?: number;
|
|
26
|
+
/** Pulse after revealing. `false` → hold, fade in, stay solid. @default true */
|
|
27
|
+
pulse?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ResolvedRevealPulse = Required<RevealPulseMotion>;
|
|
31
|
+
|
|
32
|
+
export const REVEAL_PULSE_DEFAULTS: ResolvedRevealPulse = {
|
|
33
|
+
delayMs: DURATIONS.fast,
|
|
34
|
+
fadeMs: DURATIONS.base,
|
|
35
|
+
durationMs: DURATIONS.ambient * 2,
|
|
36
|
+
minOpacity: 0.5,
|
|
37
|
+
pulse: true,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** Apply the documented defaults; negative times clamp to 0. */
|
|
41
|
+
export function resolveRevealPulse(motion: RevealPulseMotion = {}): ResolvedRevealPulse {
|
|
42
|
+
const m = { ...REVEAL_PULSE_DEFAULTS, ...stripUndefined(motion) };
|
|
43
|
+
return {
|
|
44
|
+
...m,
|
|
45
|
+
delayMs: Math.max(0, m.delayMs),
|
|
46
|
+
fadeMs: Math.max(0, m.fadeMs),
|
|
47
|
+
durationMs: Math.max(0, m.durationMs),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function stripUndefined<T extends object>(o: T): Partial<T> {
|
|
52
|
+
const out: Partial<T> = {};
|
|
53
|
+
for (const k of Object.keys(o) as Array<keyof T>) {
|
|
54
|
+
if (o[k] !== undefined) out[k] = o[k];
|
|
55
|
+
}
|
|
56
|
+
return out;
|
|
57
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
import { useReducedMotion } from "@knitui/hooks";
|
|
4
|
+
|
|
5
|
+
import { injectKeyframes } from "./keyframes-web";
|
|
6
|
+
import { resolveRevealPulse, type RevealPulseMotion } from "./use-reveal-pulse.shared";
|
|
7
|
+
|
|
8
|
+
export type { RevealPulseMotion } from "./use-reveal-pulse.shared";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Inline `animation*` longhands for the reveal-then-pulse timeline (web). Spread
|
|
12
|
+
* through the host `style` prop for the same reason as `useLoopingAnimation`'s:
|
|
13
|
+
* the `animation*` keys are not modeled Tamagui style props, and Tamagui forwards
|
|
14
|
+
* an inline `style` object straight to the DOM node.
|
|
15
|
+
*/
|
|
16
|
+
export interface RevealPulseStyle {
|
|
17
|
+
style: {
|
|
18
|
+
animationName: string;
|
|
19
|
+
animationDuration: string;
|
|
20
|
+
animationTimingFunction: string;
|
|
21
|
+
animationDelay: string;
|
|
22
|
+
animationIterationCount: string;
|
|
23
|
+
animationDirection: string;
|
|
24
|
+
animationFillMode: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** The element a reveal pulse mounts on — identity on web (CSS needs no host). */
|
|
29
|
+
export const asRevealHost = <C extends React.ComponentType<any>>(Component: C): C => Component;
|
|
30
|
+
|
|
31
|
+
const FADE = "knitui-reveal-in";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Reveal-then-pulse (web): ONE element runs two CSS animations — a one-shot fade
|
|
35
|
+
* (`fill-mode: both`, so it holds at 0 through its delay and at 1 after) and the
|
|
36
|
+
* infinite pulse, listed LAST so it wins the `opacity` cascade once it starts
|
|
37
|
+
* (no fill on the pulse, so it doesn't apply until its own delay elapses). All
|
|
38
|
+
* on the compositor: no timers, no re-render. See `use-reveal-pulse.shared.ts`.
|
|
39
|
+
*/
|
|
40
|
+
export function useRevealPulse(motion?: RevealPulseMotion): RevealPulseStyle {
|
|
41
|
+
const reduced = useReducedMotion();
|
|
42
|
+
const { delayMs, fadeMs, durationMs, minOpacity, pulse } = resolveRevealPulse(motion);
|
|
43
|
+
const pulsing = pulse && !reduced && durationMs > 0 && minOpacity < 1;
|
|
44
|
+
const pulseName = `knitui-reveal-pulse-${String(minOpacity).replace(".", "_")}`;
|
|
45
|
+
|
|
46
|
+
// Inject during render (idempotent) so the rules exist before first paint.
|
|
47
|
+
injectKeyframes(FADE, "from{opacity:0}to{opacity:1}");
|
|
48
|
+
if (pulsing) injectKeyframes(pulseName, `from{opacity:1}to{opacity:${minOpacity}}`);
|
|
49
|
+
|
|
50
|
+
return React.useMemo<RevealPulseStyle>(() => {
|
|
51
|
+
// Reduced motion: keep the hold, snap in (a 1ms fade, not 0 — a zero-length
|
|
52
|
+
// animation with a delay is dropped by some engines before it applies).
|
|
53
|
+
const fade = reduced ? 1 : Math.max(1, fadeMs);
|
|
54
|
+
if (!pulsing) {
|
|
55
|
+
return {
|
|
56
|
+
style: {
|
|
57
|
+
animationName: FADE,
|
|
58
|
+
animationDuration: `${fade}ms`,
|
|
59
|
+
animationTimingFunction: "ease-out",
|
|
60
|
+
animationDelay: `${delayMs}ms`,
|
|
61
|
+
animationIterationCount: "1",
|
|
62
|
+
animationDirection: "normal",
|
|
63
|
+
animationFillMode: "both",
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
style: {
|
|
69
|
+
animationName: `${FADE}, ${pulseName}`,
|
|
70
|
+
animationDuration: `${fade}ms, ${durationMs}ms`,
|
|
71
|
+
animationTimingFunction: "ease-out, ease-in-out",
|
|
72
|
+
animationDelay: `${delayMs}ms, ${delayMs + fade}ms`,
|
|
73
|
+
animationIterationCount: "1, infinite",
|
|
74
|
+
animationDirection: "normal, alternate",
|
|
75
|
+
animationFillMode: "both, none",
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}, [reduced, pulsing, pulseName, delayMs, fadeMs, durationMs]);
|
|
79
|
+
}
|