cynx-lib 1.3.71 → 1.3.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-lib",
3
- "version": "1.3.71",
3
+ "version": "1.3.73",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -0,0 +1,602 @@
1
+ import React, { useState, useEffect, useRef } from 'react';
2
+ import { Eye, EyeOff } from 'lucide-react';
3
+
4
+ function useIsDarkMode() {
5
+ const [isDark, setIsDark] = useState(false);
6
+
7
+ useEffect(() => {
8
+ const checkDark = () => {
9
+ if (typeof document === 'undefined') return false;
10
+ const root = document.documentElement;
11
+ const theme = root.getAttribute('data-theme') || document.body.getAttribute('data-theme');
12
+ if (theme === 'dark') return true;
13
+ if (theme === 'light' || theme === 'amber') return false;
14
+ const textColor = window.getComputedStyle(document.body).color;
15
+ const m = textColor.match(/\d+/g);
16
+ if (m && m.length >= 3) {
17
+ const b = (Number(m[0]) * 299 + Number(m[1]) * 587 + Number(m[2]) * 114) / 1000;
18
+ return b > 128;
19
+ }
20
+ return false;
21
+ };
22
+
23
+ setIsDark(checkDark());
24
+
25
+ const observer = new MutationObserver(() => {
26
+ setIsDark(checkDark());
27
+ });
28
+
29
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme', 'class'] });
30
+ return () => observer.disconnect();
31
+ }, []);
32
+
33
+ return isDark;
34
+ }
35
+
36
+ // Telegram-style Shared Singleton Tiling Engine
37
+ class SpoilerEngine {
38
+ constructor() {
39
+ this.subscribers = new Map();
40
+ this.tileCanvas = null;
41
+ this.tileCtx = null;
42
+ this.tileSize = 200;
43
+ this.particles = [];
44
+ this.animId = null;
45
+ this.speedMultiplier = 1.8;
46
+ }
47
+
48
+ initTile() {
49
+ if (this.tileCanvas) return;
50
+ if (typeof document === 'undefined') return;
51
+
52
+ this.tileCanvas = document.createElement('canvas');
53
+ this.tileCanvas.width = this.tileSize;
54
+ this.tileCanvas.height = this.tileSize;
55
+ this.tileCtx = this.tileCanvas.getContext('2d');
56
+
57
+ // 220 dense sparkling micro-particles inside a 200x200 seamless tile
58
+ const count = 220;
59
+ this.particles = [];
60
+ for (let i = 0; i < count; i++) {
61
+ const isMicro = Math.random() < 0.7;
62
+ this.particles.push({
63
+ x: Math.random() * this.tileSize,
64
+ y: Math.random() * this.tileSize,
65
+ size: isMicro ? (Math.random() * 0.4 + 0.6) : (Math.random() * 0.5 + 1.0),
66
+ phase: Math.random() * Math.PI * 2,
67
+ speed: Math.random() * 0.05 + 0.02,
68
+ baseAlpha: Math.random() * 0.55 + 0.35,
69
+ });
70
+ }
71
+ }
72
+
73
+ updateSpeed() {
74
+ if (this.subscribers.size === 0) return;
75
+ let maxSpeed = 1.8;
76
+ for (const s of this.subscribers.values()) {
77
+ if (typeof s === 'number' && s > 0) {
78
+ maxSpeed = Math.max(maxSpeed, s);
79
+ }
80
+ }
81
+ this.speedMultiplier = maxSpeed;
82
+ }
83
+
84
+ subscribe(callback, speed = 1.8) {
85
+ this.subscribers.set(callback, speed);
86
+ this.updateSpeed();
87
+ if (this.subscribers.size === 1) {
88
+ this.start();
89
+ }
90
+ }
91
+
92
+ unsubscribe(callback) {
93
+ this.subscribers.delete(callback);
94
+ this.updateSpeed();
95
+ if (this.subscribers.size === 0) {
96
+ this.stop();
97
+ }
98
+ }
99
+
100
+ start() {
101
+ this.initTile();
102
+ if (this.animId) return;
103
+
104
+ const loop = () => {
105
+ this.renderTile();
106
+ for (const cb of this.subscribers.keys()) {
107
+ cb(this.tileCanvas);
108
+ }
109
+ this.animId = requestAnimationFrame(loop);
110
+ };
111
+ this.animId = requestAnimationFrame(loop);
112
+ }
113
+
114
+ stop() {
115
+ if (this.animId) {
116
+ cancelAnimationFrame(this.animId);
117
+ this.animId = null;
118
+ }
119
+ }
120
+
121
+ renderTile() {
122
+ const ctx = this.tileCtx;
123
+ if (!ctx) return;
124
+ ctx.clearRect(0, 0, this.tileSize, this.tileSize);
125
+
126
+ const mult = this.speedMultiplier;
127
+ // Fast batch drawing of sparkling white particles with speed multiplier
128
+ for (let i = 0; i < this.particles.length; i++) {
129
+ const p = this.particles[i];
130
+ p.phase += p.speed * mult;
131
+
132
+ p.x += Math.sin(p.phase) * (0.05 * mult);
133
+ p.y += Math.cos(p.phase) * (0.05 * mult);
134
+ if (p.x < 0) p.x = this.tileSize;
135
+ if (p.x > this.tileSize) p.x = 0;
136
+ if (p.y < 0) p.y = this.tileSize;
137
+ if (p.y > this.tileSize) p.y = 0;
138
+
139
+ const shimmer = Math.sin(p.phase) * 0.35;
140
+ const alpha = Math.max(0.12, Math.min(1, p.baseAlpha + shimmer));
141
+
142
+ ctx.beginPath();
143
+ ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);
144
+ ctx.fillStyle = `rgba(255, 255, 255, ${alpha})`;
145
+ ctx.fill();
146
+ }
147
+ }
148
+ }
149
+
150
+ const spoilerEngine = new SpoilerEngine();
151
+
152
+ function SpoilerCanvas({
153
+ active,
154
+ isBursting,
155
+ burstOrigin,
156
+ onBurstComplete,
157
+ isDark,
158
+ shimmerSpeed,
159
+ }) {
160
+ const canvasRef = useRef(null);
161
+ const sizeRef = useRef({ width: 0, height: 0, dpr: 1 });
162
+ const animBurstRef = useRef(null);
163
+
164
+ // Resize handling with devicePixelRatio for crisp Retina rendering
165
+ useEffect(() => {
166
+ const canvas = canvasRef.current;
167
+ if (!canvas) return;
168
+ const parent = canvas.parentElement;
169
+ if (!parent) return;
170
+
171
+ const ro = new ResizeObserver((entries) => {
172
+ for (const entry of entries) {
173
+ const rect = entry.contentRect;
174
+ if (rect.width > 0 && rect.height > 0) {
175
+ const dpr = window.devicePixelRatio || 1;
176
+ canvas.width = Math.floor(rect.width * dpr);
177
+ canvas.height = Math.floor(rect.height * dpr);
178
+ canvas.style.width = `${rect.width}px`;
179
+ canvas.style.height = `${rect.height}px`;
180
+ sizeRef.current = { width: rect.width, height: rect.height, dpr };
181
+ }
182
+ }
183
+ });
184
+
185
+ ro.observe(parent);
186
+ return () => ro.disconnect();
187
+ }, []);
188
+
189
+ // Shared Tiling Loop (Hardware accelerated repeat - 0.01ms draw call)
190
+ useEffect(() => {
191
+ if (!active || isBursting) return;
192
+
193
+ const draw = (tileCanvas) => {
194
+ const canvas = canvasRef.current;
195
+ if (!canvas) return;
196
+ const ctx = canvas.getContext('2d');
197
+ if (!ctx) return;
198
+ const { width, height, dpr } = sizeRef.current;
199
+ if (!width || !height) return;
200
+
201
+ ctx.save();
202
+ ctx.scale(dpr, dpr);
203
+ ctx.clearRect(0, 0, width, height);
204
+
205
+ // Frosted veil: slate-silver in light mode, obsidian in dark mode
206
+ ctx.fillStyle = isDark
207
+ ? 'rgba(12, 16, 22, 0.78)'
208
+ : 'rgba(92, 100, 114, 0.46)';
209
+ ctx.fillRect(0, 0, width, height);
210
+
211
+ // Instant hardware texture fill from single shared tile
212
+ const pattern = ctx.createPattern(tileCanvas, 'repeat');
213
+ if (pattern) {
214
+ ctx.fillStyle = pattern;
215
+ ctx.fillRect(0, 0, width, height);
216
+ }
217
+ ctx.restore();
218
+ };
219
+
220
+ spoilerEngine.subscribe(draw, shimmerSpeed);
221
+ return () => spoilerEngine.unsubscribe(draw);
222
+ }, [active, isBursting, isDark, shimmerSpeed]);
223
+
224
+ // Burst Dispersal on Click (lasts only ~300ms, then shuts down)
225
+ useEffect(() => {
226
+ if (!isBursting) return;
227
+ const canvas = canvasRef.current;
228
+ if (!canvas) return;
229
+ const ctx = canvas.getContext('2d');
230
+ if (!ctx) return;
231
+ const { width, height, dpr } = sizeRef.current;
232
+
233
+ const startTime = performance.now();
234
+ const duration = 280;
235
+ const originX = burstOrigin?.x ?? (width / 2);
236
+ const originY = burstOrigin?.y ?? (height / 2);
237
+
238
+ const burstParticles = [];
239
+ for (let i = 0; i < 70; i++) {
240
+ const angle = Math.random() * Math.PI * 2;
241
+ const speed = Math.random() * 8 + 3;
242
+ burstParticles.push({
243
+ x: originX + (Math.random() - 0.5) * 30,
244
+ y: originY + (Math.random() - 0.5) * 30,
245
+ vx: Math.cos(angle) * speed,
246
+ vy: Math.sin(angle) * speed,
247
+ size: Math.random() * 1.2 + 0.8,
248
+ alpha: 1,
249
+ });
250
+ }
251
+
252
+ const animateBurst = (now) => {
253
+ const progress = Math.min(1, (now - startTime) / duration);
254
+ const fade = 1 - progress;
255
+
256
+ ctx.save();
257
+ ctx.scale(dpr, dpr);
258
+ ctx.clearRect(0, 0, width, height);
259
+
260
+ // Fading veil
261
+ ctx.fillStyle = isDark
262
+ ? `rgba(12, 16, 22, ${0.78 * fade})`
263
+ : `rgba(92, 100, 114, ${0.46 * fade})`;
264
+ ctx.fillRect(0, 0, width, height);
265
+
266
+ // Outward radiating sparkles
267
+ for (const p of burstParticles) {
268
+ p.x += p.vx;
269
+ p.y += p.vy;
270
+ p.vx *= 0.94;
271
+ p.vy *= 0.94;
272
+ p.alpha = Math.max(0, p.alpha * 0.93);
273
+
274
+ ctx.beginPath();
275
+ ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);
276
+ ctx.fillStyle = `rgba(255, 255, 255, ${p.alpha * fade})`;
277
+ ctx.fill();
278
+ }
279
+ ctx.restore();
280
+
281
+ if (progress < 1) {
282
+ animBurstRef.current = requestAnimationFrame(animateBurst);
283
+ } else {
284
+ if (onBurstComplete) onBurstComplete();
285
+ }
286
+ };
287
+
288
+ animBurstRef.current = requestAnimationFrame(animateBurst);
289
+ return () => {
290
+ if (animBurstRef.current) cancelAnimationFrame(animBurstRef.current);
291
+ };
292
+ }, [isBursting, burstOrigin, isDark]);
293
+
294
+ return (
295
+ <canvas
296
+ ref={canvasRef}
297
+ style={{
298
+ position: 'absolute',
299
+ inset: 0,
300
+ width: '100%',
301
+ height: '100%',
302
+ pointerEvents: 'none',
303
+ borderRadius: 'inherit',
304
+ zIndex: 2,
305
+ transition: 'opacity 0.25s ease',
306
+ }}
307
+ />
308
+ );
309
+ }
310
+
311
+ function getPlacementStyles(position) {
312
+ switch (position) {
313
+ case 'top':
314
+ return { alignItems: 'center', justifyContent: 'flex-start', paddingTop: 24 };
315
+ case 'top-left':
316
+ return { alignItems: 'flex-start', justifyContent: 'flex-start', padding: 20 };
317
+ case 'top-right':
318
+ return { alignItems: 'flex-end', justifyContent: 'flex-start', padding: 20 };
319
+ case 'bottom':
320
+ return { alignItems: 'center', justifyContent: 'flex-end', paddingBottom: 24 };
321
+ case 'bottom-left':
322
+ return { alignItems: 'flex-start', justifyContent: 'flex-end', padding: 20 };
323
+ case 'bottom-right':
324
+ return { alignItems: 'flex-end', justifyContent: 'flex-end', padding: 20 };
325
+ case 'center':
326
+ default:
327
+ return { alignItems: 'center', justifyContent: 'center' };
328
+ }
329
+ }
330
+
331
+ export default function PrivacyBlur({
332
+ active = false,
333
+ blur = 6,
334
+ spoiler = false,
335
+ shimmerSpeed,
336
+ showBadge = true,
337
+ showCountdown = false,
338
+ position = 'center',
339
+ icon,
340
+ badgeIcon,
341
+ countdownIcon,
342
+ text,
343
+ subtext,
344
+ revealable = false,
345
+ interactive,
346
+ revealDuration,
347
+ revealText = 'Показать',
348
+ hideText = 'Скрыть',
349
+ onReveal,
350
+ onHide,
351
+ style,
352
+ contentStyle,
353
+ className,
354
+ children,
355
+ }) {
356
+ const isDark = useIsDarkMode();
357
+ const isRevealable = Boolean(revealable || interactive);
358
+ const [tempRevealed, setTempRevealed] = useState(false);
359
+ const [timeLeft, setTimeLeft] = useState(0);
360
+ const [isBursting, setIsBursting] = useState(false);
361
+ const [burstOrigin, setBurstOrigin] = useState(null);
362
+
363
+ const containerRef = useRef(null);
364
+ const timerRef = useRef(null);
365
+
366
+ const clearTimer = () => {
367
+ if (timerRef.current) {
368
+ clearInterval(timerRef.current);
369
+ timerRef.current = null;
370
+ }
371
+ };
372
+
373
+ useEffect(() => {
374
+ if (!active) {
375
+ clearTimer();
376
+ setTempRevealed(false);
377
+ setIsBursting(false);
378
+ setTimeLeft(0);
379
+ }
380
+ }, [active]);
381
+
382
+ useEffect(() => {
383
+ return () => clearTimer();
384
+ }, []);
385
+
386
+ const finishReveal = () => {
387
+ const hasDuration = revealDuration !== undefined && revealDuration !== null && revealDuration !== false;
388
+ if (hasDuration) {
389
+ const duration = typeof revealDuration === 'number' && revealDuration > 0 ? revealDuration : 5;
390
+ clearTimer();
391
+ setTempRevealed(true);
392
+ setTimeLeft(duration);
393
+
394
+ timerRef.current = setInterval(() => {
395
+ setTimeLeft((prev) => {
396
+ if (prev <= 1) {
397
+ clearTimer();
398
+ setTempRevealed(false);
399
+ if (onHide) onHide();
400
+ return 0;
401
+ }
402
+ return prev - 1;
403
+ });
404
+ }, 1000);
405
+ } else {
406
+ if (onReveal) onReveal();
407
+ }
408
+ };
409
+
410
+ const handleReveal = (e) => {
411
+ if (e) e.stopPropagation();
412
+ if (!isRevealable || isBursting) return;
413
+
414
+ if (spoiler) {
415
+ let origin = null;
416
+ if (e && typeof e.clientX === 'number' && typeof e.clientY === 'number' && containerRef.current) {
417
+ const rect = containerRef.current.getBoundingClientRect();
418
+ origin = {
419
+ x: Math.max(0, Math.min(rect.width, e.clientX - rect.left)),
420
+ y: Math.max(0, Math.min(rect.height, e.clientY - rect.top)),
421
+ };
422
+ }
423
+ setBurstOrigin(origin);
424
+ setIsBursting(true);
425
+ } else {
426
+ finishReveal();
427
+ }
428
+ };
429
+
430
+ const handleBurstComplete = () => {
431
+ setIsBursting(false);
432
+ finishReveal();
433
+ };
434
+
435
+ const handleHideNow = (e) => {
436
+ if (e) e.stopPropagation();
437
+ clearTimer();
438
+ setTempRevealed(false);
439
+ setIsBursting(false);
440
+ setTimeLeft(0);
441
+ if (onHide) onHide();
442
+ };
443
+
444
+ const effectiveBadgeIcon = badgeIcon || icon;
445
+ const blurValue = typeof blur === 'number' ? `${blur}px` : blur;
446
+ const isBlurred = active && !tempRevealed;
447
+ const hasOverlay = showBadge && Boolean(text || effectiveBadgeIcon || isRevealable);
448
+ const placementStyles = getPlacementStyles(position);
449
+
450
+ return (
451
+ <div
452
+ ref={containerRef}
453
+ className={className}
454
+ onClick={isBlurred && isRevealable ? handleReveal : undefined}
455
+ style={{
456
+ position: 'relative',
457
+ width: '100%',
458
+ height: '100%',
459
+ minHeight: '100%',
460
+ display: 'flex',
461
+ flexDirection: 'column',
462
+ flex: 1,
463
+ overflow: 'hidden',
464
+ cursor: isBlurred && isRevealable ? 'pointer' : 'default',
465
+ ...style,
466
+ }}
467
+ >
468
+ <div
469
+ style={{
470
+ width: '100%',
471
+ height: '100%',
472
+ display: 'flex',
473
+ flexDirection: 'column',
474
+ flex: 1,
475
+ filter: isBlurred && !isBursting ? `blur(${blurValue})` : 'none',
476
+ userSelect: isBlurred ? 'none' : 'auto',
477
+ pointerEvents: isBlurred ? 'none' : 'auto',
478
+ transition: 'filter 0.3s ease, opacity 0.25s ease',
479
+ opacity: isBlurred ? (isBursting ? 0.9 : 0.6) : 1,
480
+ ...contentStyle,
481
+ }}
482
+ >
483
+ {children}
484
+ </div>
485
+
486
+ {spoiler && isBlurred && (
487
+ <SpoilerCanvas
488
+ active={isBlurred}
489
+ isBursting={isBursting}
490
+ burstOrigin={burstOrigin}
491
+ onBurstComplete={handleBurstComplete}
492
+ isDark={isDark}
493
+ shimmerSpeed={shimmerSpeed}
494
+ />
495
+ )}
496
+
497
+ {isBlurred && hasOverlay && (
498
+ <div
499
+ style={{
500
+ position: 'absolute',
501
+ inset: 0,
502
+ width: '100%',
503
+ height: '100%',
504
+ display: 'flex',
505
+ flexDirection: 'column',
506
+ gap: 6,
507
+ padding: 12,
508
+ boxSizing: 'border-box',
509
+ zIndex: 3,
510
+ pointerEvents: isRevealable ? 'auto' : 'none',
511
+ opacity: isBursting ? 0 : 1,
512
+ transition: 'opacity 0.2s ease',
513
+ ...placementStyles,
514
+ }}
515
+ >
516
+ <div
517
+ onClick={isRevealable ? handleReveal : undefined}
518
+ style={{
519
+ display: 'inline-flex',
520
+ alignItems: 'center',
521
+ gap: 8,
522
+ padding: '6px 14px',
523
+ borderRadius: 'var(--rads)',
524
+ background: 'var(--surface)',
525
+ border: '1px solid var(--border-light)',
526
+ boxShadow: 'var(--shadow)',
527
+ color: 'var(--primary-text)',
528
+ fontSize: '.76rem',
529
+ fontWeight: 600,
530
+ cursor: isRevealable ? 'pointer' : 'default',
531
+ backdropFilter: 'blur(8px)',
532
+ WebkitBackdropFilter: 'blur(8px)',
533
+ transition: 'all 0.2s ease',
534
+ maxWidth: '90%',
535
+ userSelect: 'none',
536
+ }}
537
+ >
538
+ <span style={{ display: 'inline-flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0, alignSelf: 'center' }}>
539
+ {effectiveBadgeIcon || <EyeOff size={14} style={{ color: 'var(--muted)' }} />}
540
+ </span>
541
+ {text && <span style={{ whiteSpace: 'normal', wordBreak: 'break-word', lineHeight: 1.35 }}>{text}</span>}
542
+ {isRevealable && (
543
+ <span style={{ fontSize: '.7rem', color: 'var(--accent)', textDecoration: 'underline', marginLeft: 4, flexShrink: 0, whiteSpace: 'nowrap', alignSelf: 'center' }}>
544
+ {revealText}
545
+ </span>
546
+ )}
547
+ </div>
548
+ {subtext && (
549
+ <span style={{ fontSize: '.68rem', color: 'var(--muted)', textAlign: 'center' }}>
550
+ {subtext}
551
+ </span>
552
+ )}
553
+ </div>
554
+ )}
555
+
556
+ {active && tempRevealed && showCountdown && (
557
+ <div
558
+ style={{
559
+ position: 'absolute',
560
+ top: 8,
561
+ right: 8,
562
+ display: 'inline-flex',
563
+ alignItems: 'center',
564
+ gap: 6,
565
+ padding: '3px 8px',
566
+ borderRadius: 'var(--rads)',
567
+ background: 'var(--surface)',
568
+ border: '1px solid var(--border-light)',
569
+ boxShadow: 'var(--shadow)',
570
+ fontSize: '.7rem',
571
+ fontWeight: 600,
572
+ color: 'var(--muted)',
573
+ zIndex: 4,
574
+ userSelect: 'none',
575
+ backdropFilter: 'blur(8px)',
576
+ WebkitBackdropFilter: 'blur(8px)',
577
+ }}
578
+ >
579
+ <span style={{ display: 'inline-flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
580
+ {countdownIcon || <Eye size={12} style={{ color: 'var(--accent)' }} />}
581
+ </span>
582
+ <span style={{ whiteSpace: 'nowrap' }}>Скроется через {timeLeft}с</span>
583
+ <span
584
+ onClick={handleHideNow}
585
+ style={{
586
+ color: 'var(--accent)',
587
+ textDecoration: 'underline',
588
+ marginLeft: 4,
589
+ cursor: 'pointer',
590
+ flexShrink: 0,
591
+ whiteSpace: 'nowrap',
592
+ }}
593
+ >
594
+ {hideText}
595
+ </span>
596
+ </div>
597
+ )}
598
+ </div>
599
+ );
600
+ }
601
+
602
+ export { PrivacyBlur };
package/ui/index.cjs CHANGED
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  Modal: () => Modal,
55
55
  PageShell: () => PageShell,
56
56
  Pagination: () => Pagination,
57
+ PrivacyBlur: () => PrivacyBlur,
57
58
  PulseDot: () => PulseDot,
58
59
  Select: () => Select,
59
60
  Sidebar: () => Sidebar,
@@ -131,6 +132,7 @@ var import_InfoBadge = __toESM(require("./components/InfoBadge.jsx"), 1);
131
132
  var import_Layout = __toESM(require("./components/Layout.jsx"), 1);
132
133
  var import_Sidebar = __toESM(require("./components/Sidebar.jsx"), 1);
133
134
  var import_LoginPage = __toESM(require("./components/LoginPage.jsx"), 1);
135
+ var import_PrivacyBlur = __toESM(require("./components/PrivacyBlur.jsx"), 1);
134
136
  const Layout = import_Layout.default;
135
137
  const Sidebar = import_Sidebar.default;
136
138
  const LoginPage = import_LoginPage.default;
@@ -192,3 +194,4 @@ const TableCardFooter = import_Card.TableCardFooter;
192
194
  const CardHdr = import_Card.CardHdr;
193
195
  const StatCard = import_Card.StatCard;
194
196
  const StatCardSkeleton = import_Card.StatCardSkeleton;
197
+ const PrivacyBlur = import_PrivacyBlur.default;
package/ui/index.js CHANGED
@@ -41,6 +41,7 @@ import { default as _InfoBadge } from './components/InfoBadge.jsx';
41
41
  import { default as _Layout } from './components/Layout.jsx';
42
42
  import { default as _Sidebar } from './components/Sidebar.jsx';
43
43
  import { default as _LoginPage } from './components/LoginPage.jsx';
44
+ import { default as _PrivacyBlur } from './components/PrivacyBlur.jsx';
44
45
 
45
46
  export const Layout = _Layout;
46
47
  export const Sidebar = _Sidebar;
@@ -103,3 +104,4 @@ export const TableCardFooter = _TableCardFooter;
103
104
  export const CardHdr = _CardHdr;
104
105
  export const StatCard = _StatCard;
105
106
  export const StatCardSkeleton = _StatCardSkeleton;
107
+ export const PrivacyBlur = _PrivacyBlur;
@@ -44,14 +44,18 @@ const toggle = () => {
44
44
  :style="{
45
45
  opacity: disabled ? 0.45 : 1,
46
46
  cursor: disabled ? 'not-allowed' : 'pointer',
47
+ verticalAlign: 'middle',
48
+ boxSizing: 'border-box',
47
49
  }"
48
50
  @click.prevent="toggle"
49
51
  >
50
52
  <span
51
- class="relative flex-shrink-0 transition-all duration-150 flex items-center justify-center"
53
+ class="relative flex-shrink-0 transition-all duration-150 flex items-center justify-center overflow-hidden"
52
54
  :style="{
53
55
  width: `${dims.w}px`,
54
56
  height: `${dims.h}px`,
57
+ boxSizing: 'border-box',
58
+ verticalAlign: 'middle',
55
59
  border: `1.5px solid ${isChecked || indeterminate ? 'var(--accent, #12675D)' : 'var(--border, #e2e8f0)'}`,
56
60
  borderRadius: size === 'sm' ? '3px' : '4px',
57
61
  background: isChecked || indeterminate ? 'var(--accent, #12675D)' : 'var(--input-bg, #ffffff)',
@@ -64,6 +68,7 @@ const toggle = () => {
64
68
  :height="dims.icon"
65
69
  viewBox="0 0 10 10"
66
70
  fill="none"
71
+ style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; pointer-events: none;"
67
72
  >
68
73
  <line x1="2" y1="5" x2="8" y2="5" stroke="white" stroke-width="1.6" stroke-linecap="round" />
69
74
  </svg>
@@ -75,6 +80,7 @@ const toggle = () => {
75
80
  :height="dims.icon"
76
81
  viewBox="0 0 10 10"
77
82
  fill="none"
83
+ style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; pointer-events: none;"
78
84
  >
79
85
  <polyline
80
86
  points="1.5,5 4,7.5 8.5,2.5"
@@ -88,8 +94,8 @@ const toggle = () => {
88
94
 
89
95
  <span
90
96
  v-if="label || $slots.default"
91
- :style="{ fontSize: size === 'sm' ? '.72rem' : '.78rem' }"
92
- class="text-slate-800 font-semibold"
97
+ :style="{ fontSize: size === 'sm' ? '.72rem' : '.78rem', lineHeight: '1.2' }"
98
+ class="text-[var(--primary-text,#0f172a)] font-semibold select-none"
93
99
  >
94
100
  <slot>{{ label }}</slot>
95
101
  </span>
@@ -9,6 +9,7 @@ import {
9
9
  useSlots,
10
10
  } from "vue";
11
11
  import { ChevronLeft, ChevronRight, Calendar, Clock } from "lucide-vue-next";
12
+ import TimePicker from "./TimePicker.vue";
12
13
 
13
14
  export interface DatePickerBadge {
14
15
  dot?: boolean;
@@ -277,9 +278,11 @@ const calcPos = () => {
277
278
 
278
279
  const handleWindowClick = (e: MouseEvent) => {
279
280
  if (!open.value) return;
280
- const target = e.target as Node;
281
+ const target = e.target as HTMLElement | null;
282
+ if (!target) return;
281
283
  if (wrapRef.value?.contains(target)) return;
282
284
  if (dropRef.value?.contains(target)) return;
285
+ if (target.closest?.(".cynx-timepicker-drop")) return;
283
286
  open.value = false;
284
287
  view.value = "day";
285
288
  };
@@ -1107,28 +1110,37 @@ const posMode = computed(() => {
1107
1110
  gap: 5px;
1108
1111
  font-size: .76rem;
1109
1112
  color: var(--muted, #797b8d);
1110
- fontWeight: 600;
1113
+ font-weight: 600;
1111
1114
  "
1112
1115
  >
1113
1116
  <Clock :size="13" style="opacity: 0.85;" />
1114
1117
  <span>{{ loc.time || 'Time:' }}</span>
1115
1118
  </div>
1116
- <button
1117
- type="button"
1118
- style="
1119
- padding: 4px 10px;
1120
- border-radius: var(--radxs, 6px);
1121
- background: var(--accent, #12675D);
1122
- color: var(--def-btn-text, #ffffff);
1123
- border: none;
1124
- font-size: 11.5px;
1125
- font-weight: 600;
1126
- cursor: pointer;
1127
- "
1128
- @click="open = false; view = 'day';"
1129
- >
1130
- {{ loc.ok || 'OK' }}
1131
- </button>
1119
+ <div style="display: flex; align-items: center; gap: 6px;">
1120
+ <TimePicker
1121
+ :model-value="timeValue || ''"
1122
+ :show-seconds="showSeconds"
1123
+ :placeholder="timePlaceholder || '00:00:00'"
1124
+ size="sm"
1125
+ @update:model-value="(t) => { emit('update:timeValue', t); emit('time-change', t); }"
1126
+ />
1127
+ <button
1128
+ type="button"
1129
+ style="
1130
+ padding: 4px 10px;
1131
+ border-radius: var(--radxs, 6px);
1132
+ background: var(--accent, #12675D);
1133
+ color: var(--def-btn-text, #ffffff);
1134
+ border: none;
1135
+ font-size: 11.5px;
1136
+ font-weight: 600;
1137
+ cursor: pointer;
1138
+ "
1139
+ @click="open = false; view = 'day';"
1140
+ >
1141
+ {{ loc.ok || 'OK' }}
1142
+ </button>
1143
+ </div>
1132
1144
  </div>
1133
1145
  </div>
1134
1146
  </Teleport>
@@ -5,8 +5,8 @@ const STATUS_COLORS: Record<string, string> = {
5
5
  DR: "var(--drive, #28C76F)",
6
6
  SB: "var(--break, #FFB200)",
7
7
  ON: "var(--shift, #0F60FF)",
8
- OFF: "#8B909A",
9
- PC: "#8B909A",
8
+ OFF: "var(--muted, #8B909A)",
9
+ PC: "var(--muted, #8B909A)",
10
10
  YM: "var(--shift, #0F60FF)",
11
11
  };
12
12
 
@@ -17,27 +17,33 @@ const props = withDefaults(
17
17
  width?: number | string;
18
18
  height?: number | string;
19
19
  radius?: number | string;
20
+ plain?: boolean;
20
21
  }>(),
21
22
  {
22
23
  status: "",
23
24
  width: 36,
24
25
  height: 20,
25
26
  radius: 6,
27
+ plain: false,
26
28
  }
27
29
  );
28
30
 
31
+ const normalizedKey = computed(() =>
32
+ (props.status || "").replace(/\s+/g, "_").toUpperCase().trim()
33
+ );
34
+
29
35
  const isPrimaryStatus = computed(() => {
30
36
  if (props.color) return true;
31
- const key = (props.status || "").toUpperCase().trim();
32
- return Boolean(STATUS_COLORS[key]);
37
+ return Boolean(STATUS_COLORS[normalizedKey.value]);
33
38
  });
34
39
 
35
- const bg = computed(() => {
40
+ const statusColor = computed(() => {
36
41
  if (props.color) return props.color;
37
- const key = (props.status || "").toUpperCase().trim();
38
- return STATUS_COLORS[key] || "transparent";
42
+ return STATUS_COLORS[normalizedKey.value] || "var(--muted, #8B909A)";
39
43
  });
40
44
 
45
+ const isShortStatus = computed(() => (props.status || "").trim().length <= 3);
46
+
41
47
  const boxWidth = computed(() =>
42
48
  typeof props.width === "number" ? `${props.width}px` : props.width
43
49
  );
@@ -51,20 +57,31 @@ const borderRadius = computed(() =>
51
57
 
52
58
  <template>
53
59
  <span
54
- v-if="status && isPrimaryStatus"
60
+ v-if="status && plain"
61
+ class="inline-flex items-center text-[11.5px] font-bold select-none whitespace-nowrap tracking-wide"
62
+ :style="{
63
+ color: statusColor,
64
+ }"
65
+ >
66
+ {{ status }}
67
+ </span>
68
+ <span
69
+ v-else-if="status && isPrimaryStatus"
55
70
  class="inline-flex items-center justify-center text-[11px] font-bold text-white tracking-wide select-none shadow-sm flex-shrink-0"
56
71
  :style="{
57
- width: boxWidth,
72
+ width: isShortStatus ? boxWidth : 'auto',
73
+ minWidth: boxWidth,
74
+ padding: isShortStatus ? '0' : '0 6px',
58
75
  height: boxHeight,
59
76
  borderRadius: borderRadius,
60
- backgroundColor: bg,
77
+ backgroundColor: statusColor,
61
78
  }"
62
79
  >
63
80
  {{ status }}
64
81
  </span>
65
82
  <span
66
83
  v-else-if="status"
67
- class="text-[12px] font-semibold text-[var(--primary-text,inherit)] select-none truncate"
84
+ class="text-[12px] font-semibold text-[var(--muted,#8B909A)] select-none truncate"
68
85
  >
69
86
  {{ status }}
70
87
  </span>
@@ -0,0 +1,399 @@
1
+ <script setup lang="ts">
2
+ import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from "vue";
3
+ import { ChevronDown, Check, X, Clock } from "lucide-vue-next";
4
+
5
+ function pad(n: number | string): string {
6
+ return String(n).padStart(2, "0");
7
+ }
8
+
9
+ function parseTime(val?: string, showSeconds = false) {
10
+ if (!val || typeof val !== "string") {
11
+ return { h: "00", m: "00", s: "00" };
12
+ }
13
+ const clean = val.trim();
14
+ const parts = clean.split(":").map((p) => p.trim());
15
+ const hNum = Math.min(23, Math.max(0, parseInt(parts[0], 10) || 0));
16
+ const mNum = Math.min(59, Math.max(0, parseInt(parts[1], 10) || 0));
17
+ const sNum = Math.min(59, Math.max(0, parseInt(parts[2], 10) || 0));
18
+ return {
19
+ h: pad(hNum),
20
+ m: pad(mNum),
21
+ s: pad(sNum),
22
+ };
23
+ }
24
+
25
+ const props = withDefaults(
26
+ defineProps<{
27
+ modelValue?: string;
28
+ value?: string;
29
+ showSeconds?: boolean;
30
+ disabled?: boolean;
31
+ size?: "xs" | "sm" | "md" | "lg";
32
+ placeholder?: string;
33
+ }>(),
34
+ {
35
+ modelValue: "",
36
+ value: "",
37
+ showSeconds: false,
38
+ disabled: false,
39
+ size: "md",
40
+ placeholder: "",
41
+ }
42
+ );
43
+
44
+ const emit = defineEmits<{
45
+ (e: "update:modelValue", val: string): void;
46
+ (e: "update:value", val: string): void;
47
+ (e: "change", val: string): void;
48
+ }>();
49
+
50
+ const currentVal = computed(() => {
51
+ return props.modelValue !== undefined && props.modelValue !== ""
52
+ ? props.modelValue
53
+ : props.value;
54
+ });
55
+
56
+ const open = ref(false);
57
+ const btnRef = ref<HTMLElement | null>(null);
58
+ const dropRef = ref<HTMLElement | null>(null);
59
+ const pos = ref({ top: 0, left: 0 });
60
+
61
+ const hours = Array.from({ length: 24 }, (_, i) => pad(i));
62
+ const minutes = Array.from({ length: 60 }, (_, i) => pad(i));
63
+ const seconds = Array.from({ length: 60 }, (_, i) => pad(i));
64
+
65
+ const activeTime = ref(parseTime(currentVal.value, props.showSeconds));
66
+
67
+ watch(
68
+ currentVal,
69
+ (newVal) => {
70
+ activeTime.value = parseTime(newVal, props.showSeconds);
71
+ },
72
+ { immediate: true }
73
+ );
74
+
75
+ const displayLabel = computed(() => {
76
+ if (!currentVal.value && props.placeholder) return props.placeholder;
77
+ const t = activeTime.value;
78
+ return props.showSeconds ? `${t.h}:${t.m}:${t.s}` : `${t.h}:${t.m}`;
79
+ });
80
+
81
+ function emitTime() {
82
+ const t = activeTime.value;
83
+ const result = props.showSeconds ? `${t.h}:${t.m}:${t.s}` : `${t.h}:${t.m}`;
84
+ emit("update:modelValue", result);
85
+ emit("update:value", result);
86
+ emit("change", result);
87
+ }
88
+
89
+ function selectHour(h: string) {
90
+ activeTime.value.h = h;
91
+ emitTime();
92
+ }
93
+
94
+ function selectMinute(m: string) {
95
+ activeTime.value.m = m;
96
+ emitTime();
97
+ }
98
+
99
+ function selectSecond(s: string) {
100
+ activeTime.value.s = s;
101
+ emitTime();
102
+ }
103
+
104
+ function resetTime() {
105
+ activeTime.value = { h: "00", m: "00", s: "00" };
106
+ emitTime();
107
+ }
108
+
109
+ function done() {
110
+ open.value = false;
111
+ }
112
+
113
+ const calcPos = () => {
114
+ if (!btnRef.value) return;
115
+ const r = btnRef.value.getBoundingClientRect();
116
+ const dropW = props.showSeconds ? 220 : 160;
117
+ const dropH = 220;
118
+
119
+ let left = r.left;
120
+ if (left + dropW > window.innerWidth - 12) {
121
+ left = Math.max(12, window.innerWidth - dropW - 12);
122
+ }
123
+ if (left < 12) left = 12;
124
+
125
+ let top = r.bottom + 4;
126
+ if (top + dropH > window.innerHeight - 12 && r.top - dropH - 4 > 12) {
127
+ top = r.top - dropH - 4;
128
+ } else if (top + dropH > window.innerHeight - 12) {
129
+ top = Math.max(12, window.innerHeight - dropH - 12);
130
+ }
131
+ if (top < 12) top = 12;
132
+
133
+ pos.value = { top, left };
134
+ };
135
+
136
+ const togglePicker = () => {
137
+ if (props.disabled) return;
138
+ if (!open.value) calcPos();
139
+ open.value = !open.value;
140
+ };
141
+
142
+ const handleWindowClick = (e: MouseEvent) => {
143
+ if (!open.value) return;
144
+ const target = e.target as Node;
145
+ if (btnRef.value?.contains(target)) return;
146
+ if (dropRef.value?.contains(target)) return;
147
+ open.value = false;
148
+ };
149
+
150
+ const handleKeyDown = (e: KeyboardEvent) => {
151
+ if (e.key === "Escape" && open.value) {
152
+ open.value = false;
153
+ }
154
+ };
155
+
156
+ watch(open, (isOpen) => {
157
+ if (isOpen) {
158
+ calcPos();
159
+ window.addEventListener("scroll", calcPos, true);
160
+ window.addEventListener("resize", calcPos);
161
+ document.addEventListener("mousedown", handleWindowClick, true);
162
+ document.addEventListener("keydown", handleKeyDown);
163
+ nextTick(calcPos);
164
+ } else {
165
+ window.removeEventListener("scroll", calcPos, true);
166
+ window.removeEventListener("resize", calcPos);
167
+ document.removeEventListener("mousedown", handleWindowClick, true);
168
+ document.removeEventListener("keydown", handleKeyDown);
169
+ }
170
+ });
171
+
172
+ onBeforeUnmount(() => {
173
+ window.removeEventListener("scroll", calcPos, true);
174
+ window.removeEventListener("resize", calcPos);
175
+ document.removeEventListener("mousedown", handleWindowClick, true);
176
+ document.removeEventListener("keydown", handleKeyDown);
177
+ });
178
+ </script>
179
+
180
+ <template>
181
+ <div style="position: relative; display: inline-flex;">
182
+ <!-- Trigger Button -->
183
+ <button
184
+ ref="btnRef"
185
+ type="button"
186
+ :disabled="disabled"
187
+ style="
188
+ display: inline-flex;
189
+ align-items: center;
190
+ gap: 6px;
191
+ padding: 0 8px;
192
+ height: 28px;
193
+ font-size: 12px;
194
+ font-weight: 600;
195
+ border-radius: var(--radxs, 6px);
196
+ border: 1px solid var(--border, #e2e8f0);
197
+ background: var(--surface, #ffffff);
198
+ color: var(--primary-text, #0f172a);
199
+ cursor: pointer;
200
+ user-select: none;
201
+ transition: border-color .14s;
202
+ "
203
+ :style="{
204
+ borderColor: open ? 'var(--accent, #12675D)' : 'var(--border, #e2e8f0)',
205
+ opacity: disabled ? 0.45 : 1,
206
+ cursor: disabled ? 'not-allowed' : 'pointer',
207
+ }"
208
+ @click="togglePicker"
209
+ >
210
+ <span style="font-variant-numeric: tabular-nums;">
211
+ {{ displayLabel }}
212
+ </span>
213
+ <ChevronDown
214
+ :size="12"
215
+ style="
216
+ color: var(--muted, #797b8d);
217
+ transition: transform .18s;
218
+ "
219
+ :style="{
220
+ transform: open ? 'rotate(180deg)' : 'none',
221
+ }"
222
+ />
223
+ </button>
224
+
225
+ <!-- Dropdown Popup via Teleport -->
226
+ <Teleport to="body">
227
+ <div
228
+ v-if="open"
229
+ ref="dropRef"
230
+ class="cynx-timepicker-drop"
231
+ style="
232
+ position: fixed;
233
+ z-index: 999999;
234
+ background: var(--surface, #ffffff);
235
+ border: 1px solid var(--border, #e2e8f0);
236
+ border-radius: 10px;
237
+ box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.15));
238
+ padding: 8px;
239
+ box-sizing: border-box;
240
+ user-select: none;
241
+ font-family: var(--sans, inherit);
242
+ "
243
+ :style="{
244
+ top: `${pos.top}px`,
245
+ left: `${pos.left}px`,
246
+ width: showSeconds ? '220px' : '155px',
247
+ }"
248
+ >
249
+ <!-- Columns Header & Lists -->
250
+ <div
251
+ style="display: grid; gap: 4px;"
252
+ :style="{
253
+ gridTemplateColumns: showSeconds ? '1fr 1fr 1fr' : '1fr 1fr',
254
+ }"
255
+ >
256
+ <!-- Hours Column -->
257
+ <div>
258
+ <div style="font-size: 10.5px; font-weight: 600; color: var(--muted, #797b8d); text-align: center; margin-bottom: 3px;">
259
+ Час
260
+ </div>
261
+ <div class="custom-scrollbar" style="max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px;">
262
+ <button
263
+ v-for="h in hours"
264
+ :key="h"
265
+ type="button"
266
+ style="
267
+ padding: 3px 0;
268
+ border-radius: var(--radxs, 4px);
269
+ border: none;
270
+ font-size: 11.5px;
271
+ cursor: pointer;
272
+ text-align: center;
273
+ transition: background .12s, color .12s;
274
+ "
275
+ :style="{
276
+ fontWeight: activeTime.h === h ? 700 : 400,
277
+ background: activeTime.h === h ? 'var(--accent, #12675D)' : 'transparent',
278
+ color: activeTime.h === h ? '#ffffff' : 'var(--primary-text, #0f172a)',
279
+ }"
280
+ @click="selectHour(h)"
281
+ >
282
+ {{ h }}
283
+ </button>
284
+ </div>
285
+ </div>
286
+
287
+ <!-- Minutes Column -->
288
+ <div>
289
+ <div style="font-size: 10.5px; font-weight: 600; color: var(--muted, #797b8d); text-align: center; margin-bottom: 3px;">
290
+ Мин
291
+ </div>
292
+ <div class="custom-scrollbar" style="max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px;">
293
+ <button
294
+ v-for="m in minutes"
295
+ :key="m"
296
+ type="button"
297
+ style="
298
+ padding: 3px 0;
299
+ border-radius: var(--radxs, 4px);
300
+ border: none;
301
+ font-size: 11.5px;
302
+ cursor: pointer;
303
+ text-align: center;
304
+ transition: background .12s, color .12s;
305
+ "
306
+ :style="{
307
+ fontWeight: activeTime.m === m ? 700 : 400,
308
+ background: activeTime.m === m ? 'var(--accent, #12675D)' : 'transparent',
309
+ color: activeTime.m === m ? '#ffffff' : 'var(--primary-text, #0f172a)',
310
+ }"
311
+ @click="selectMinute(m)"
312
+ >
313
+ {{ m }}
314
+ </button>
315
+ </div>
316
+ </div>
317
+
318
+ <!-- Seconds Column -->
319
+ <div v-if="showSeconds">
320
+ <div style="font-size: 10.5px; font-weight: 600; color: var(--muted, #797b8d); text-align: center; margin-bottom: 3px;">
321
+ Сек
322
+ </div>
323
+ <div class="custom-scrollbar" style="max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px;">
324
+ <button
325
+ v-for="s in seconds"
326
+ :key="s"
327
+ type="button"
328
+ style="
329
+ padding: 3px 0;
330
+ border-radius: var(--radxs, 4px);
331
+ border: none;
332
+ font-size: 11.5px;
333
+ cursor: pointer;
334
+ text-align: center;
335
+ transition: background .12s, color .12s;
336
+ "
337
+ :style="{
338
+ fontWeight: activeTime.s === s ? 700 : 400,
339
+ background: activeTime.s === s ? 'var(--accent, #12675D)' : 'transparent',
340
+ color: activeTime.s === s ? '#ffffff' : 'var(--primary-text, #0f172a)',
341
+ }"
342
+ @click="selectSecond(s)"
343
+ >
344
+ {{ s }}
345
+ </button>
346
+ </div>
347
+ </div>
348
+ </div>
349
+
350
+ <!-- Footer Actions -->
351
+ <div
352
+ style="
353
+ margin-top: 6px;
354
+ padding-top: 5px;
355
+ border-top: 1px solid var(--border-light, #ebebf0);
356
+ display: flex;
357
+ justify-content: space-between;
358
+ align-items: center;
359
+ "
360
+ >
361
+ <button
362
+ type="button"
363
+ style="
364
+ background: none;
365
+ border: none;
366
+ cursor: pointer;
367
+ color: var(--danger, #f64747);
368
+ font-size: 11px;
369
+ font-weight: 500;
370
+ padding: 2px 4px;
371
+ "
372
+ @click="resetTime"
373
+ >
374
+ Сбросить
375
+ </button>
376
+ <button
377
+ type="button"
378
+ style="
379
+ background: var(--accent, #12675D);
380
+ color: #ffffff;
381
+ border: none;
382
+ border-radius: var(--radxs, 4px);
383
+ padding: 3px 8px;
384
+ font-size: 11px;
385
+ font-weight: 600;
386
+ cursor: pointer;
387
+ display: inline-flex;
388
+ align-items: center;
389
+ gap: 3px;
390
+ "
391
+ @click="done"
392
+ >
393
+ <Check :size="12" /> Готово
394
+ </button>
395
+ </div>
396
+ </div>
397
+ </Teleport>
398
+ </div>
399
+ </template>
package/vue/index.js CHANGED
@@ -14,6 +14,7 @@ import Modal from "./components/Modal.vue";
14
14
  import Drawer from "./components/Drawer.vue";
15
15
  import Toggle from "./components/Toggle.vue";
16
16
  import DatePicker from "./components/DatePicker.vue";
17
+ import TimePicker from "./components/TimePicker.vue";
17
18
  import LinearProgress from "./components/LinearProgress.vue";
18
19
  import CircularProgress from "./components/CircularProgress.vue";
19
20
  import StatusTag from "./components/StatusTag.vue";
@@ -37,6 +38,7 @@ export {
37
38
  Drawer,
38
39
  Toggle,
39
40
  DatePicker,
41
+ TimePicker,
40
42
  LinearProgress,
41
43
  CircularProgress,
42
44
  StatusTag,
@@ -66,6 +68,7 @@ export default {
66
68
  Drawer,
67
69
  Toggle,
68
70
  DatePicker,
71
+ TimePicker,
69
72
  LinearProgress,
70
73
  CircularProgress,
71
74
  StatusTag,