@donotdev/components 0.0.22 → 0.0.23
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/advanced/Carousel/CarouselContent.d.ts +14 -2
- package/dist/advanced/Carousel/CarouselContent.d.ts.map +1 -1
- package/dist/advanced/Carousel/CarouselContent.js +138 -53
- package/dist/advanced/Code/CodeContent.d.ts.map +1 -1
- package/dist/advanced/Code/CodeContent.js +5 -1
- package/dist/advanced/Crawl/Crawl.d.ts.map +1 -1
- package/dist/advanced/Crawl/Crawl.js +15 -3
- package/dist/advanced/Crawl/utils/parseHtml.d.ts.map +1 -1
- package/dist/advanced/Crawl/utils/parseHtml.js +10 -9
- package/dist/advanced/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/dist/advanced/ImageGallery/ImageGallery.js +4 -0
- package/dist/advanced/JsonViewer/JsonViewer.d.ts.map +1 -1
- package/dist/advanced/JsonViewer/JsonViewer.js +9 -8
- package/dist/advanced/Reveal/Reveal.d.ts.map +1 -1
- package/dist/advanced/Reveal/Reveal.js +1 -1
- package/dist/advanced/SplitReveal/SplitReveal.d.ts.map +1 -1
- package/dist/advanced/SplitReveal/SplitReveal.js +1 -1
- package/dist/atomic/Rating/index.d.ts.map +1 -1
- package/dist/atomic/Rating/index.js +1 -1
- package/dist/atomic/VideoPlayer/index.d.ts.map +1 -1
- package/dist/atomic/VideoPlayer/index.js +9 -4
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useClickOutside.js +2 -0
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useSwipeToClose.d.ts.map +1 -1
- package/dist/hooks/useSwipeToClose.js +11 -4
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/hooks/useToast.js +25 -4
- package/dist/index.js +6 -6
- package/dist/styles/index.css +82 -38
- package/dist/utils/intersectionObserver.d.ts.map +1 -1
- package/dist/utils/intersectionObserver.js +4 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type ReactElement } from 'react';
|
|
2
|
+
import './Carousel.css';
|
|
2
3
|
/**
|
|
3
4
|
* Carousel props interface
|
|
4
5
|
*
|
|
@@ -29,8 +30,19 @@ export interface CarouselProps<T = unknown> {
|
|
|
29
30
|
transition?: 'slide' | 'fade' | 'scale' | 'parallax';
|
|
30
31
|
/** Whether to enable infinite loop */
|
|
31
32
|
infinite?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Slides visible at once — static or responsive per breakpoint:
|
|
35
|
+
* - number: fixed count at all breakpoints
|
|
36
|
+
* - [number x4]: [mobile, tablet, laptop, desktop]
|
|
37
|
+
* @default 1
|
|
38
|
+
* @example 3 - always 3 slides
|
|
39
|
+
* @example [1, 2, 3, 4] - responsive
|
|
40
|
+
*/
|
|
41
|
+
slidesToShow?: number | [number, number, number, number];
|
|
42
|
+
/** Gap between slides
|
|
43
|
+
* @default 'none'
|
|
44
|
+
*/
|
|
45
|
+
gap?: 'none' | 'tight' | 'medium' | 'large';
|
|
34
46
|
/** Whether to enable swipe gestures */
|
|
35
47
|
swipeable?: boolean;
|
|
36
48
|
/** Whether to enable momentum scrolling */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Carousel/CarouselContent.tsx"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"CarouselContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Carousel/CarouselContent.tsx"],"names":[],"mappings":"AAYA,OAAO,EAOL,KAAK,SAAS,EAGd,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAQf,OAAO,gBAAgB,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,OAAO;IACxC,oCAAoC;IACpC,KAAK,EAAE,CAAC,EAAE,CAAC;IAEX,mCAAmC;I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3D,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,yCAAyC;IACzC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,wEAAwE;IACxE,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,wCAAwC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,eAAe,EAAE,MAAM,MAAM,CAAC;CAC/B;AA02BD,QAAA,MAAM,QAAQ,EAA8B,CAAC,CAAC,GAAG,OAAO,EACtD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KACpB,YAAY,CAAC;AAGlB,eAAe,QAAQ,CAAC"}
|
|
@@ -9,13 +9,20 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import { ChevronLeft, ChevronRight, Play, Pause } from 'lucide-react';
|
|
12
|
-
import { useRef, useState, useEffect, useCallback, useMemo, memo, } from 'react';
|
|
12
|
+
import { useRef, useState, useEffect, useLayoutEffect, useCallback, useMemo, memo, } from 'react';
|
|
13
13
|
import { cn } from '../../utils/helpers';
|
|
14
14
|
import { observeElement } from '../../utils/intersectionObserver';
|
|
15
15
|
import { addEventListener } from '../../utils/eventListener';
|
|
16
16
|
import { isRTLLanguage } from '../../utils/rtl';
|
|
17
17
|
import Stack from '../../atomic/Stack';
|
|
18
|
-
|
|
18
|
+
import './Carousel.css';
|
|
19
|
+
function CarouselComponent({ items, renderItem, className, slideClassName, showArrows = true, showDots = false, showProgress = true, autoplay = true, autoplayInterval = 5000, transition = 'slide', infinite = true, slidesToShow = 1, gap = 'none', swipeable = true, momentum = true, onActiveChange, onSlideClick, keyExtractor, 'aria-label': ariaLabel = 'Premium carousel', pauseOnHover = true, pauseOnInvisible = true, showPlayPause = true, lazy = false, preloadDistance = 1, }) {
|
|
20
|
+
// Normalize responsive slides — same pattern as Grid cols
|
|
21
|
+
const slidesPerBreakpoint = Array.isArray(slidesToShow)
|
|
22
|
+
? slidesToShow
|
|
23
|
+
: [slidesToShow, slidesToShow, slidesToShow, slidesToShow];
|
|
24
|
+
const [mobileSlides, tabletSlides, laptopSlides, desktopSlides] = slidesPerBreakpoint;
|
|
25
|
+
const maxSlides = Math.max(...slidesPerBreakpoint);
|
|
19
26
|
const containerRef = useRef(null);
|
|
20
27
|
const trackRef = useRef(null);
|
|
21
28
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
@@ -46,6 +53,44 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
46
53
|
};
|
|
47
54
|
return addEventListener(mediaQuery, 'change', handleChange);
|
|
48
55
|
}, []);
|
|
56
|
+
// Track current breakpoint for JS calculations (translateX, parallax)
|
|
57
|
+
// Synchronous initial value — matchMedia is sync, avoids first-paint mismatch with CSS
|
|
58
|
+
const [currentSlides, setCurrentSlides] = useState(() => {
|
|
59
|
+
if (typeof window === 'undefined')
|
|
60
|
+
return mobileSlides;
|
|
61
|
+
if (window.matchMedia('(min-width: 1440px)').matches)
|
|
62
|
+
return desktopSlides;
|
|
63
|
+
if (window.matchMedia('(min-width: 1024px)').matches)
|
|
64
|
+
return laptopSlides;
|
|
65
|
+
if (window.matchMedia('(min-width: 768px)').matches)
|
|
66
|
+
return tabletSlides;
|
|
67
|
+
return mobileSlides;
|
|
68
|
+
});
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (typeof window === 'undefined')
|
|
71
|
+
return;
|
|
72
|
+
const queries = [
|
|
73
|
+
{ mq: window.matchMedia('(min-width: 1440px)'), value: desktopSlides },
|
|
74
|
+
{ mq: window.matchMedia('(min-width: 1024px)'), value: laptopSlides },
|
|
75
|
+
{ mq: window.matchMedia('(min-width: 768px)'), value: tabletSlides },
|
|
76
|
+
];
|
|
77
|
+
const resolve = () => {
|
|
78
|
+
for (const { mq, value } of queries) {
|
|
79
|
+
if (mq.matches) {
|
|
80
|
+
setCurrentSlides(value);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
setCurrentSlides(mobileSlides);
|
|
85
|
+
};
|
|
86
|
+
// Only listen for changes — initial value is already correct
|
|
87
|
+
const cleanups = queries.map(({ mq }) => {
|
|
88
|
+
const handler = () => resolve();
|
|
89
|
+
mq.addEventListener('change', handler);
|
|
90
|
+
return () => mq.removeEventListener('change', handler);
|
|
91
|
+
});
|
|
92
|
+
return () => cleanups.forEach((fn) => fn());
|
|
93
|
+
}, [mobileSlides, tabletSlides, laptopSlides, desktopSlides]);
|
|
49
94
|
// Spring physics for momentum scrolling
|
|
50
95
|
const springConfig = useMemo(() => ({
|
|
51
96
|
tension: 0.3,
|
|
@@ -53,35 +98,44 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
53
98
|
mass: 1.0,
|
|
54
99
|
}), []);
|
|
55
100
|
// Enhanced infinite loop with true circular DOM structure
|
|
101
|
+
// Clone count uses maxSlides to ensure enough clones at every breakpoint
|
|
56
102
|
const circularItems = useMemo(() => {
|
|
57
|
-
if (!infinite || items.length <=
|
|
103
|
+
if (!infinite || items.length <= maxSlides)
|
|
58
104
|
return items;
|
|
59
|
-
const cloneCount = Math.max(
|
|
105
|
+
const cloneCount = Math.max(maxSlides, 2);
|
|
60
106
|
const beforeClones = items.slice(-cloneCount);
|
|
61
107
|
const afterClones = items.slice(0, cloneCount);
|
|
62
108
|
return [...beforeClones, ...items, ...afterClones];
|
|
63
|
-
}, [items, infinite,
|
|
64
|
-
//
|
|
109
|
+
}, [items, infinite, maxSlides]);
|
|
110
|
+
// JS slide width for translateX calculations — synced with CSS via matchMedia
|
|
65
111
|
const slideWidth = useMemo(() => {
|
|
66
|
-
return 100 /
|
|
67
|
-
}, [
|
|
112
|
+
return 100 / currentSlides;
|
|
113
|
+
}, [currentSlides]);
|
|
114
|
+
// Active slide = center of visible slides, not leftmost
|
|
115
|
+
// ceil(N/2)-1: 1→0, 2→0, 3→1, 4→1
|
|
116
|
+
const activeOffset = Math.ceil(currentSlides / 2) - 1;
|
|
117
|
+
// Mount: position track at clone offset so first real item is visible (no flash)
|
|
118
|
+
const mountedRef = useRef(false);
|
|
119
|
+
useLayoutEffect(() => {
|
|
120
|
+
if (mountedRef.current ||
|
|
121
|
+
!infinite ||
|
|
122
|
+
!trackRef.current ||
|
|
123
|
+
items.length <= maxSlides)
|
|
124
|
+
return;
|
|
125
|
+
mountedRef.current = true;
|
|
126
|
+
const cloneCount = Math.max(maxSlides, 2);
|
|
127
|
+
trackRef.current.style.transform = `translateX(-${cloneCount * slideWidth}%)`;
|
|
128
|
+
}, [infinite, maxSlides, slideWidth, items.length]);
|
|
68
129
|
// Get the real index (accounting for clones)
|
|
69
130
|
const getRealIndex = useCallback((index) => {
|
|
70
131
|
if (!infinite)
|
|
71
132
|
return index;
|
|
72
|
-
const cloneCount = Math.max(
|
|
133
|
+
const cloneCount = Math.max(maxSlides, 2);
|
|
73
134
|
return ((((index - cloneCount) % items.length) + items.length) % items.length);
|
|
74
|
-
}, [infinite, items.length,
|
|
75
|
-
// Position Validation (SSR safe, performant)
|
|
76
|
-
const validateClonePosition = useCallback((index) => {
|
|
77
|
-
if (!infinite)
|
|
78
|
-
return true;
|
|
79
|
-
const cloneCount = Math.max(slidesToShow, 2);
|
|
80
|
-
const maxValidIndex = items.length + cloneCount - 1;
|
|
81
|
-
const minValidIndex = cloneCount;
|
|
82
|
-
return index >= minValidIndex && index <= maxValidIndex;
|
|
83
|
-
}, [infinite, items.length, slidesToShow]);
|
|
135
|
+
}, [infinite, items.length, maxSlides]);
|
|
84
136
|
// Spring-based momentum animation
|
|
137
|
+
const isVisibleRef = useRef(isVisible);
|
|
138
|
+
isVisibleRef.current = isVisible;
|
|
85
139
|
const animateWithSpring = useCallback((track, targetTranslateX, velocity = 0) => {
|
|
86
140
|
if (!momentum)
|
|
87
141
|
return;
|
|
@@ -99,7 +153,14 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
99
153
|
currentVelocity += acceleration * deltaTime;
|
|
100
154
|
currentTranslateX += currentVelocity * deltaTime;
|
|
101
155
|
track.style.transform = `translateX(${currentTranslateX}%)`;
|
|
102
|
-
if (
|
|
156
|
+
if (!isVisibleRef.current) {
|
|
157
|
+
// Off-screen: snap to target, stop loop
|
|
158
|
+
track.style.transform = `translateX(${targetTranslateX}%)`;
|
|
159
|
+
track.style.transition = 'none';
|
|
160
|
+
rafRef.current = null;
|
|
161
|
+
}
|
|
162
|
+
else if (Math.abs(displacement) > 0.1 ||
|
|
163
|
+
Math.abs(currentVelocity) > 0.1) {
|
|
103
164
|
rafRef.current = requestAnimationFrame(animate);
|
|
104
165
|
}
|
|
105
166
|
else {
|
|
@@ -157,53 +218,68 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
157
218
|
}
|
|
158
219
|
}, [transition, slideWidth]);
|
|
159
220
|
// Smooth transition to index with proper circular handling
|
|
221
|
+
// Infinite: slides to clone position, transitionEnd resets to real equivalent
|
|
160
222
|
const goToSlide = useCallback((targetIndex, immediate = false) => {
|
|
161
223
|
if (state !== 'idle' && !immediate)
|
|
162
224
|
return;
|
|
225
|
+
// Skip animation when off-screen (save GPU)
|
|
226
|
+
if (!isVisible && !immediate)
|
|
227
|
+
return;
|
|
163
228
|
const track = trackRef.current;
|
|
164
229
|
if (!track)
|
|
165
230
|
return;
|
|
166
231
|
let actualIndex = targetIndex;
|
|
167
232
|
if (infinite) {
|
|
168
|
-
const cloneCount = Math.max(
|
|
233
|
+
const cloneCount = Math.max(maxSlides, 2);
|
|
234
|
+
// Offset into the real section — don't wrap, let it slide to clones
|
|
169
235
|
actualIndex = targetIndex + cloneCount;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
actualIndex = cloneCount + items.length + targetIndex;
|
|
175
|
-
}
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
// Non-infinite: clamp to valid range
|
|
239
|
+
actualIndex = Math.max(0, Math.min(targetIndex, items.length - 1));
|
|
176
240
|
}
|
|
177
241
|
const translateX = -(actualIndex * slideWidth);
|
|
178
242
|
const duration = immediate || prefersReducedMotion ? '0ms' : '300ms';
|
|
179
243
|
if (!immediate)
|
|
180
244
|
setState('transitioning');
|
|
181
245
|
applyTransitionEffect(track, translateX, duration);
|
|
182
|
-
|
|
246
|
+
// Update logical index (wrap to valid range)
|
|
247
|
+
const newIndex = infinite
|
|
248
|
+
? ((targetIndex % items.length) + items.length) % items.length
|
|
249
|
+
: actualIndex;
|
|
183
250
|
setCurrentIndex(newIndex);
|
|
184
251
|
onActiveChange?.(newIndex);
|
|
185
|
-
if
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
252
|
+
// Schedule reset if we landed on a clone
|
|
253
|
+
if (infinite) {
|
|
254
|
+
const cloneCount = Math.max(maxSlides, 2);
|
|
255
|
+
const isOnBeforeClone = actualIndex < cloneCount;
|
|
256
|
+
const isOnAfterClone = actualIndex >= items.length + cloneCount;
|
|
257
|
+
if (isOnBeforeClone || isOnAfterClone) {
|
|
258
|
+
// Equivalent real position: shift by one full items.length
|
|
259
|
+
const resetTarget = isOnBeforeClone
|
|
260
|
+
? actualIndex + items.length
|
|
261
|
+
: actualIndex - items.length;
|
|
190
262
|
track.dataset.needsReset = 'true';
|
|
191
|
-
track.dataset.resetIndex =
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
263
|
+
track.dataset.resetIndex = resetTarget.toString();
|
|
264
|
+
}
|
|
265
|
+
// For immediate transitions (0ms), transitionEnd won't fire — reset manually
|
|
266
|
+
if (immediate && track.dataset.needsReset === 'true') {
|
|
267
|
+
const resetIndex = parseInt(track.dataset.resetIndex || '0');
|
|
268
|
+
track.style.transition = 'none';
|
|
269
|
+
track.style.transform = `translateX(-${resetIndex * slideWidth}%)`;
|
|
270
|
+
delete track.dataset.needsReset;
|
|
271
|
+
delete track.dataset.resetIndex;
|
|
195
272
|
}
|
|
196
273
|
}
|
|
197
274
|
}, [
|
|
198
275
|
infinite,
|
|
199
276
|
items.length,
|
|
200
277
|
slideWidth,
|
|
201
|
-
|
|
202
|
-
getRealIndex,
|
|
278
|
+
maxSlides,
|
|
203
279
|
onActiveChange,
|
|
204
280
|
prefersReducedMotion,
|
|
205
281
|
state,
|
|
206
|
-
|
|
282
|
+
isVisible,
|
|
207
283
|
applyTransitionEffect,
|
|
208
284
|
]);
|
|
209
285
|
const goToNext = useCallback(() => {
|
|
@@ -239,13 +315,13 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
239
315
|
autoplayInterval,
|
|
240
316
|
items.length,
|
|
241
317
|
]);
|
|
242
|
-
// Visibility observer
|
|
318
|
+
// Visibility observer — always active, freezes all activity when off-screen
|
|
243
319
|
useEffect(() => {
|
|
244
|
-
if (!
|
|
320
|
+
if (!containerRef.current)
|
|
245
321
|
return;
|
|
246
322
|
const cleanup = observeElement(containerRef.current, (entry) => setIsVisible(entry.isIntersecting), { threshold: 0.1 });
|
|
247
323
|
return cleanup;
|
|
248
|
-
}, [
|
|
324
|
+
}, []);
|
|
249
325
|
// Cleanup rAF and transition timers on unmount
|
|
250
326
|
useEffect(() => {
|
|
251
327
|
return () => {
|
|
@@ -293,7 +369,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
293
369
|
const track = trackRef.current;
|
|
294
370
|
if (track && Math.abs(deltaX) > 10) {
|
|
295
371
|
e.preventDefault();
|
|
296
|
-
const cloneOffset = infinite ? Math.max(
|
|
372
|
+
const cloneOffset = infinite ? Math.max(maxSlides, 2) : 0;
|
|
297
373
|
const currentTranslate = -((currentIndex + cloneOffset) * slideWidth);
|
|
298
374
|
const dragPercent = (deltaX / (containerRef.current?.clientWidth || 1)) * 100;
|
|
299
375
|
const resistance = Math.min(Math.abs(deltaX) / 200, 0.8);
|
|
@@ -313,7 +389,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
313
389
|
currentIndex,
|
|
314
390
|
slideWidth,
|
|
315
391
|
infinite,
|
|
316
|
-
|
|
392
|
+
maxSlides,
|
|
317
393
|
]);
|
|
318
394
|
const handleTouchEnd = useCallback(() => {
|
|
319
395
|
if (!dragState.isDragging)
|
|
@@ -407,14 +483,19 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
407
483
|
if (!items || items.length === 0) {
|
|
408
484
|
return (_jsx(Stack, { align: "center", justify: "center", className: cn('dndev-relative', className), children: _jsx("div", { style: { color: 'var(--muted-foreground)' }, children: "No items to display" }) }));
|
|
409
485
|
}
|
|
410
|
-
return (_jsxs("div", { ref: containerRef, className: cn('dndev-relative dndev-overflow-hidden', className),
|
|
486
|
+
return (_jsxs("div", { ref: containerRef, className: cn('dndev-relative dndev-overflow-hidden', className), style: {
|
|
487
|
+
outline: 'none',
|
|
488
|
+
'--carousel-slides-mobile': mobileSlides,
|
|
489
|
+
'--carousel-slides-tablet': tabletSlides,
|
|
490
|
+
'--carousel-slides-laptop': laptopSlides,
|
|
491
|
+
'--carousel-slides-desktop': desktopSlides,
|
|
492
|
+
}, onMouseEnter: () => pauseOnHover && setIsPaused(true), onMouseLeave: () => pauseOnHover && setIsPaused(false), onKeyDown: handleKeyDown, tabIndex: 0, role: "region", "aria-label": ariaLabel, "aria-live": "polite", children: [_jsx("div", { className: "dndev-overflow-hidden", children: _jsx("div", { ref: trackRef, className: cn('dndev-flex', dragState.isDragging && 'dndev-pointer-events-none', state === 'transitioning' && 'dndev-pointer-events-none'), style: {
|
|
411
493
|
cursor: dragState.isDragging ? 'grabbing' : undefined,
|
|
412
494
|
}, onTransitionEnd: handleTransitionEnd, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, children: circularItems.map((item, index) => {
|
|
413
495
|
const realIndex = getRealIndex(index);
|
|
414
|
-
const isActive = realIndex === currentIndex;
|
|
496
|
+
const isActive = realIndex === (currentIndex + activeOffset) % items.length;
|
|
415
497
|
const shouldLoad = shouldLoadSlide(realIndex);
|
|
416
|
-
return (_jsx("div", { className: cn('dndev-
|
|
417
|
-
width: `${slideWidth}%`,
|
|
498
|
+
return (_jsx("div", { className: cn('dndev-carousel-slide', slideClassName), "data-gap": gap !== 'none' ? gap : undefined, style: {
|
|
418
499
|
opacity: shouldLoad ? 1 : 0,
|
|
419
500
|
}, role: "group", "aria-roledescription": "slide", "aria-label": `Slide ${realIndex + 1} of ${items.length}`, onClick: () => onSlideClick?.(item, realIndex), children: shouldLoad && renderItem(item, realIndex, isActive) }, keyExtractor
|
|
420
501
|
? keyExtractor(item, realIndex)
|
|
@@ -430,6 +511,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
430
511
|
borderRadius: '9999px',
|
|
431
512
|
backgroundColor: 'rgb(from var(--background) r g b / 0.8)',
|
|
432
513
|
border: '1px solid var(--border)',
|
|
514
|
+
outline: 'none',
|
|
433
515
|
}, onMouseEnter: (e) => {
|
|
434
516
|
e.currentTarget.style.backgroundColor =
|
|
435
517
|
'rgb(from var(--background) r g b / 0.9)';
|
|
@@ -437,7 +519,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
437
519
|
}, onMouseLeave: (e) => {
|
|
438
520
|
e.currentTarget.style.backgroundColor =
|
|
439
521
|
'rgb(from var(--background) r g b / 0.8)';
|
|
440
|
-
}, onClick: goToPrevious, "aria-label": "Previous slide", children: _jsx(ChevronLeft, { style: {
|
|
522
|
+
}, onClick: goToPrevious, "aria-label": "Previous slide", tabIndex: -1, children: _jsx(ChevronLeft, { style: {
|
|
441
523
|
width: 'var(--icon-md)',
|
|
442
524
|
height: 'var(--icon-md)',
|
|
443
525
|
color: 'var(--foreground)',
|
|
@@ -452,6 +534,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
452
534
|
borderRadius: '9999px',
|
|
453
535
|
backgroundColor: 'rgb(from var(--background) r g b / 0.8)',
|
|
454
536
|
border: '1px solid var(--border)',
|
|
537
|
+
outline: 'none',
|
|
455
538
|
}, onMouseEnter: (e) => {
|
|
456
539
|
e.currentTarget.style.backgroundColor =
|
|
457
540
|
'rgb(from var(--background) r g b / 0.9)';
|
|
@@ -459,7 +542,7 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
459
542
|
}, onMouseLeave: (e) => {
|
|
460
543
|
e.currentTarget.style.backgroundColor =
|
|
461
544
|
'rgb(from var(--background) r g b / 0.8)';
|
|
462
|
-
}, onClick: goToNext, "aria-label": "Next slide", children: _jsx(ChevronRight, { style: {
|
|
545
|
+
}, onClick: goToNext, "aria-label": "Next slide", tabIndex: -1, children: _jsx(ChevronRight, { style: {
|
|
463
546
|
width: 'var(--icon-md)',
|
|
464
547
|
height: 'var(--icon-md)',
|
|
465
548
|
color: 'var(--foreground)',
|
|
@@ -473,7 +556,8 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
473
556
|
borderRadius: '9999px',
|
|
474
557
|
backgroundColor: 'rgb(from var(--background) r g b / 0.8)',
|
|
475
558
|
border: '1px solid var(--border)',
|
|
476
|
-
|
|
559
|
+
outline: 'none',
|
|
560
|
+
}, tabIndex: -1, onMouseEnter: (e) => {
|
|
477
561
|
e.currentTarget.style.backgroundColor =
|
|
478
562
|
'rgb(from var(--background) r g b / 0.9)';
|
|
479
563
|
e.currentTarget.style.opacity = '1';
|
|
@@ -492,11 +576,12 @@ function CarouselComponent({ items, renderItem, className, slideClassName, showA
|
|
|
492
576
|
bottom: '1rem',
|
|
493
577
|
insetInlineStart: '50%',
|
|
494
578
|
transform: 'translateX(-50%)',
|
|
495
|
-
}, children: items.map((_, index) => (_jsx("button", { style: {
|
|
579
|
+
}, children: items.map((_, index) => (_jsx("button", { tabIndex: -1, style: {
|
|
496
580
|
width: index === currentIndex ? '1.5rem' : '0.5rem',
|
|
497
581
|
height: '0.5rem',
|
|
498
582
|
borderRadius: '9999px',
|
|
499
583
|
transition: 'all 0.3s',
|
|
584
|
+
outline: 'none',
|
|
500
585
|
backgroundColor: index === currentIndex
|
|
501
586
|
? 'var(--foreground)'
|
|
502
587
|
: 'rgb(from var(--foreground) r g b / 0.3)',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Code/CodeContent.tsx"],"names":[],"mappings":"AA6BA,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,eAAsB,EACtB,SAAiB,EACjB,cAAqB,EACrB,MAAM,EACN,OAAe,GAChB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"CodeContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Code/CodeContent.tsx"],"names":[],"mappings":"AA6BA,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,eAAsB,EACtB,SAAiB,EACjB,cAAqB,EACrB,MAAM,EACN,OAAe,GAChB,EAAE,SAAS,2CA6PX;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -139,7 +139,11 @@ function Code({ children, language = 'tsx', className, showLineNumbers = true, w
|
|
|
139
139
|
.replace(/^<pre[^>]*><code[^>]*>/, '')
|
|
140
140
|
.replace(/<\/code><\/pre>$/, '')
|
|
141
141
|
.replace(/\n/g, '');
|
|
142
|
-
|
|
142
|
+
// Sanitize Shiki output: strip <script> tags and on* event handler attributes
|
|
143
|
+
const sanitized = inner
|
|
144
|
+
.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '')
|
|
145
|
+
.replace(/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, '');
|
|
146
|
+
return sanitized;
|
|
143
147
|
}
|
|
144
148
|
catch (error) {
|
|
145
149
|
if (process.env.NODE_ENV === 'development') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Crawl.d.ts","sourceRoot":"","sources":["../../../src/adv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E,MAAM,CAAC;IACvB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,GAAI,2GAUZ,UAAU,4CAgIZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -31,9 +31,21 @@ const Crawl = ({ content, intro, title, duration = 36, contentHeight = '150vh',
|
|
|
31
31
|
const resolvedIntro = useMemo(() => {
|
|
32
32
|
if (intro == null)
|
|
33
33
|
return null;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
if (typeof intro === 'string') {
|
|
35
|
+
// Guard against excessively large intro strings that cause jank during parsing
|
|
36
|
+
const MAX_INTRO_LENGTH = 50000;
|
|
37
|
+
const safeIntro = intro.length > MAX_INTRO_LENGTH
|
|
38
|
+
? intro.slice(0, MAX_INTRO_LENGTH)
|
|
39
|
+
: intro;
|
|
40
|
+
if (process.env.NODE_ENV === 'development' &&
|
|
41
|
+
intro.length > MAX_INTRO_LENGTH) {
|
|
42
|
+
console.warn(`[Crawl] Intro string truncated from ${intro.length} to ${MAX_INTRO_LENGTH} characters`);
|
|
43
|
+
}
|
|
44
|
+
return (_jsx("div", { className: "dndev-crawl-intro-text", children: parseHtml(safeIntro, {
|
|
45
|
+
allowedTags: ['u', 'br', 'i', 'em', 'strong', 'b'],
|
|
46
|
+
}) }));
|
|
47
|
+
}
|
|
48
|
+
return intro;
|
|
37
49
|
}, [intro]);
|
|
38
50
|
const handlePlayClick = () => {
|
|
39
51
|
setShowPlayOverlay(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseHtml.d.ts","sourceRoot":"","sources":["../../../../src/advanced/Crawl/utils/parseHtml.tsx"],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,OAAO,GAAE,gBAAqB,GAC7B,SAAS,EAAE,CAsFb;AAkCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,MAAM,GAAG,CAAC,iBAAyB,EAC5C,OAAO,GAAE,gBAAqB,GAC7B,YAAY,CASd"}
|
|
@@ -62,21 +62,22 @@ export function parseHtml(html, options = {}) {
|
|
|
62
62
|
if (openingTagMatch && openingTagMatch[1]) {
|
|
63
63
|
const tagName = openingTagMatch[1].toLowerCase();
|
|
64
64
|
if (allowedTags.includes(tagName)) {
|
|
65
|
-
// Find the corresponding closing tag
|
|
65
|
+
// Find the corresponding closing tag — use exact match, not includes,
|
|
66
|
+
// to handle nested cases (e.g., <b> inside <b> won't match prematurely)
|
|
66
67
|
const closingTag = `</${tagName}>`;
|
|
67
68
|
let content = '';
|
|
68
69
|
let j = i + 1;
|
|
69
|
-
// Collect content until closing tag
|
|
70
|
-
while (j < parts.length &&
|
|
71
|
-
parts
|
|
72
|
-
|
|
70
|
+
// Collect content until an exact closing tag part is found
|
|
71
|
+
while (j < parts.length && parts[j]) {
|
|
72
|
+
// parts are split by tags, so a closing tag part should match exactly
|
|
73
|
+
if (parts[j] === closingTag) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
73
76
|
content += parts[j];
|
|
74
77
|
j++;
|
|
75
78
|
}
|
|
76
|
-
//
|
|
77
|
-
if
|
|
78
|
-
content += parts[j].replace(closingTag, '');
|
|
79
|
-
}
|
|
79
|
+
// Skip past the closing tag part (don't append it to content)
|
|
80
|
+
// Fall through if j >= parts.length (unclosed tag — render content as-is)
|
|
80
81
|
// Create the React element
|
|
81
82
|
const element = createHtmlElement(tagName, content, className, key++);
|
|
82
83
|
if (element) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGallery.d.ts","sourceRoot":"","sources":["../../../src/advanced/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":"AAc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ACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,WAAoB,EACpB,SAAmB,EACnB,aAAa,GACd,EAAE,iBAAiB,GAAG,YAAY,CA4PlC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -75,6 +75,10 @@ export function ImageGallery({ images, aspectRatio = '16/9', altPrefix = 'Image'
|
|
|
75
75
|
img.onload = () => {
|
|
76
76
|
setLoadedFullUrls((prev) => new Set(prev).add(newIndex));
|
|
77
77
|
};
|
|
78
|
+
img.onerror = () => {
|
|
79
|
+
// Mark as loaded so we stop retrying — the thumbnail remains visible as fallback
|
|
80
|
+
setLoadedFullUrls((prev) => new Set(prev).add(newIndex));
|
|
81
|
+
};
|
|
78
82
|
img.src = image.full;
|
|
79
83
|
}
|
|
80
84
|
}, [normalizedImages, onImageChange, loadedFullUrls]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonViewer.d.ts","sourceRoot":"","sources":["../../../src/advanced/JsonViewer/JsonViewer.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IAEd,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwID;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,UAAU;oEAMb,eAAe;;
|
|
1
|
+
{"version":3,"file":"JsonViewer.d.ts","sourceRoot":"","sources":["../../../src/advanced/JsonViewer/JsonViewer.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IAEd,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAwID;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,UAAU;oEAMb,eAAe;;CAqFjB,CAAC;AAIF,eAAe,UAAU,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { useState, useCallback } from 'react';
|
|
|
14
14
|
import { cn } from '../../utils/helpers';
|
|
15
15
|
import Button, { BUTTON_VARIANT } from '../../atomic/Button';
|
|
16
16
|
const JsonNode = ({ data, keyName, depth, defaultDepth, path, collapsed, onToggle, expandedPaths, }) => {
|
|
17
|
-
const isExpanded = expandedPaths
|
|
17
|
+
const isExpanded = expandedPaths[path] === true || (depth < defaultDepth && !collapsed);
|
|
18
18
|
const isObject = typeof data === 'object' && data !== null && !Array.isArray(data);
|
|
19
19
|
const isArray = Array.isArray(data);
|
|
20
20
|
const isExpandable = isObject || isArray;
|
|
@@ -101,27 +101,28 @@ const JsonNode = ({ data, keyName, depth, defaultDepth, path, collapsed, onToggl
|
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
103
|
const JsonViewer = ({ data, defaultDepth = 2, showCopyButton = true, className, collapsed = false, }) => {
|
|
104
|
-
|
|
104
|
+
// Use Record<string, true> instead of Set for stable equality semantics in React state
|
|
105
|
+
const [expandedPaths, setExpandedPaths] = useState({});
|
|
105
106
|
const [allExpanded, setAllExpanded] = useState(!collapsed);
|
|
106
107
|
const handleToggle = useCallback((path) => {
|
|
107
108
|
setExpandedPaths((prev) => {
|
|
108
|
-
const next =
|
|
109
|
-
if (next
|
|
110
|
-
next
|
|
109
|
+
const next = { ...prev };
|
|
110
|
+
if (next[path]) {
|
|
111
|
+
delete next[path];
|
|
111
112
|
}
|
|
112
113
|
else {
|
|
113
|
-
next
|
|
114
|
+
next[path] = true;
|
|
114
115
|
}
|
|
115
116
|
return next;
|
|
116
117
|
});
|
|
117
118
|
}, []);
|
|
118
119
|
const handleExpandAll = useCallback(() => {
|
|
119
120
|
setAllExpanded(true);
|
|
120
|
-
setExpandedPaths(
|
|
121
|
+
setExpandedPaths({});
|
|
121
122
|
}, []);
|
|
122
123
|
const handleCollapseAll = useCallback(() => {
|
|
123
124
|
setAllExpanded(false);
|
|
124
|
-
setExpandedPaths(
|
|
125
|
+
setExpandedPaths({});
|
|
125
126
|
}, []);
|
|
126
127
|
const handleCopy = useCallback(async () => {
|
|
127
128
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reveal.d.ts","sourceRoot":"","sources":["../../../src/advanced/Reveal/Reveal.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC9B,SAAS,CAAC,EACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,SAAS,GACT,aAAa,GACb,aAAa,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;KAC5D,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,EAAE,aAAa,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Reveal.d.ts","sourceRoot":"","sources":["../../../src/advanced/Reveal/Reveal.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC9B,SAAS,CAAC,EACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,SAAS,GACT,aAAa,GACb,aAAa,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;KAC5D,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,EAAE,aAAa,CAAC,WAAW,CA8FtC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -62,7 +62,7 @@ overrides = [], className, children, }) => {
|
|
|
62
62
|
...(duration !== undefined && {
|
|
63
63
|
'--reveal-duration': `${duration}ms`,
|
|
64
64
|
}),
|
|
65
|
-
}, children: item },
|
|
65
|
+
}, children: item }, index));
|
|
66
66
|
});
|
|
67
67
|
return (_jsx("div", { ref: containerRef, className: cn('dndev-reveal-container', isVisible && 'dndev-reveal-visible', className), "data-direction": direction, "data-stagger": stagger, children: items.length > 0 ? renderItems() : children }));
|
|
68
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitReveal.d.ts","sourceRoot":"","sources":["../../../src/advanced/SplitReveal/SplitReveal.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,YAAY,EAAE,CAAC;IAClC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChE;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IACjE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EA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C"}
|
|
@@ -31,7 +31,7 @@ const SplitReveal = ({ left, right, leftDirection = 'left', rightDirection = 'ri
|
|
|
31
31
|
}
|
|
32
32
|
return right;
|
|
33
33
|
};
|
|
34
|
-
return (_jsxs(Grid, { cols: 2, gap: gap, align: align, className: className, children: [_jsx(Reveal, { direction: leftDirection, threshold: threshold, stagger: stagger, distance: distance, duration: duration, items: [left] }), _jsx(Reveal, { direction: rightDirection, threshold: threshold, stagger: stagger, distance: distance, duration: duration, items: [renderRightContent()] })] }));
|
|
34
|
+
return (_jsxs(Grid, { cols: [1, 1, 2, 2], gap: gap, align: align, className: className, children: [_jsx(Reveal, { direction: leftDirection, threshold: threshold, stagger: stagger, distance: distance, duration: duration, items: [left] }), _jsx(Reveal, { direction: rightDirection, threshold: threshold, stagger: stagger, distance: distance, duration: duration, items: [renderRightContent()] })] }));
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Split reveal component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Rating/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAE3D,QAAA,MAAM,cAAc;;8EAgBlB,CAAC;AAEH,MAAM,WAAW,WACf,SACE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAChD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,C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ACtB,OAAO,EAAE,cAAc,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC;AAC7D,YAAY,EAAE,cAAc,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -109,7 +109,7 @@ const Rating = ({ value = 0, onChange, max = 5, readonly = false, disabled = fal
|
|
|
109
109
|
const position = i + 1;
|
|
110
110
|
const state = getStarState(position, displayValue);
|
|
111
111
|
return (_jsx("button", { type: "button", className: "dndev-rating-star", "data-state": state, "data-position": position, disabled: !isInteractive, tabIndex: -1, onClick: () => handleStarClick(position), onMouseEnter: () => isInteractive && setHoverValue(position), onMouseLeave: () => setHoverValue(null), "aria-hidden": "true", children: state === 'half' ? (_jsxs("span", { className: "dndev-rating-star-half", children: [_jsx(Star, { className: "dndev-rating-star-back" }), _jsx(Star, { className: "dndev-rating-star-front" })] })) : (_jsx(Star, {})) }, position));
|
|
112
|
-
}) }), showValue && (_jsx("span", { className: "dndev-rating-value", children: value.toFixed(1) }))] }));
|
|
112
|
+
}) }), showValue && (_jsx("span", { className: "dndev-rating-value", children: Math.min(Math.max(value, 0), max).toFixed(1) }))] }));
|
|
113
113
|
};
|
|
114
114
|
export default Rating;
|
|
115
115
|
export { ratingVariants, CONTROL_VARIANT as RATING_VARIANT };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/VideoPlayer/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,eAAe;IACf,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,GAAG,CAA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