@ssaprt/tooltip 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -168,20 +168,19 @@ var presets = {
168
168
  animation: animations.bounce
169
169
  }),
170
170
  manga: createTheme({
171
- background: "radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.2) 1px, transparent 1.5px) 0 0 / 6px 6px, #ffffff",
171
+ background: "linear-gradient(145deg, #ffffff, #f4f4f5)",
172
172
  color: "#000000",
173
173
  fontFamily: "Impact, Haettenschweiler, Arial Narrow Bold, sans-serif",
174
174
  fontSize: "13px",
175
175
  fontWeight: 900,
176
176
  border: "3px solid #000000",
177
- borderRadius: "18px 5px 18px 5px",
178
- filter: "drop-shadow(4px 4px 0 #000000)",
177
+ borderRadius: "10px 3px 10px 3px",
179
178
  padding: "9px 15px",
180
179
  letterSpacing: "0.04em",
181
180
  textTransform: "uppercase",
182
- arrowSize: "11px",
181
+ arrowSize: "10px",
183
182
  arrowWidth: "17px",
184
- animation: animations.snap
183
+ animation: animations.pop
185
184
  }),
186
185
  newspaper: createTheme({
187
186
  background: "repeating-linear-gradient(0deg, rgba(68, 64, 60, 0.035) 0, rgba(68, 64, 60, 0.035) 1px, transparent 1px, transparent 4px), #f5f0e6",
@@ -237,54 +236,48 @@ var presets = {
237
236
  }
238
237
  }),
239
238
  terminal: createTheme({
240
- background: "linear-gradient(180deg, #020617, #000000)",
241
- color: "#22c55e",
239
+ background: "#020a04",
240
+ color: "#4ade80",
242
241
  fontFamily: "Consolas, Monaco, Courier New, monospace",
243
242
  fontSize: "12px",
244
243
  fontWeight: 600,
245
244
  border: "1px solid #22c55e",
246
245
  borderRadius: "3px",
247
- filter: "drop-shadow(0 0 5px rgba(34, 197, 94, 0.65))",
248
246
  padding: "8px 12px",
249
247
  letterSpacing: "0.035em",
250
- textShadow: "0 0 5px rgba(34, 197, 94, 0.9)",
251
248
  textAlign: "left",
252
249
  arrowSize: "7px",
253
250
  arrowWidth: "13px",
254
- animation: animations.instant
251
+ animation: animations.soft
255
252
  }),
256
253
  crt: createTheme({
257
- background: "repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.08) 0, rgba(34, 197, 94, 0.08) 1px, transparent 1px, transparent 3px), radial-gradient(circle at center, #07150b, #000000)",
254
+ background: "linear-gradient(180deg, #07150b, #020804)",
258
255
  color: "#86efac",
259
256
  fontFamily: "Lucida Console, Monaco, monospace",
260
257
  fontSize: "12px",
261
258
  fontWeight: 600,
262
259
  border: "2px solid #166534",
263
- borderRadius: "18px",
264
- filter: "drop-shadow(0 0 8px rgba(34, 197, 94, 0.5)) drop-shadow(0 0 18px rgba(34, 197, 94, 0.18))",
260
+ borderRadius: "12px",
265
261
  padding: "10px 15px",
266
- textShadow: "0 0 6px rgba(134, 239, 172, 0.85)",
267
262
  arrowSize: "8px",
268
263
  arrowWidth: "18px",
269
- animation: animations.blur
264
+ animation: animations.soft
270
265
  }),
271
266
  pixel: createTheme({
272
- background: "linear-gradient(135deg, #4c1d95 25%, #581c87 25%, #581c87 50%, #4c1d95 50%, #4c1d95 75%, #581c87 75%) 0 0 / 8px 8px",
267
+ background: "linear-gradient(135deg, #4c1d95, #581c87)",
273
268
  color: "#fef08a",
274
- fontFamily: "Press Start 2P, Courier New, monospace",
269
+ fontFamily: "Courier New, monospace",
275
270
  fontSize: "10px",
276
271
  fontWeight: 700,
277
272
  lineHeight: 1.7,
278
273
  border: "4px solid #fef08a",
279
274
  borderRadius: "0px",
280
- filter: "drop-shadow(6px 6px 0 #18181b)",
281
275
  padding: "10px 14px",
282
276
  letterSpacing: "0.03em",
283
- textShadow: "2px 2px 0 #18181b",
284
277
  textTransform: "uppercase",
285
278
  arrowSize: "10px",
286
279
  arrowWidth: "18px",
287
- animation: animations.snap
280
+ animation: animations.pop
288
281
  }),
289
282
  arcade: createTheme({
290
283
  background: "radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.45), transparent 38%), radial-gradient(circle at 90% 100%, rgba(236, 72, 153, 0.55), transparent 45%), #150629",
@@ -498,20 +491,19 @@ var presets = {
498
491
  animation: animations.blur
499
492
  }),
500
493
  toxic: createTheme({
501
- background: "repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.17) 0, rgba(0, 0, 0, 0.17) 5px, transparent 5px, transparent 10px), #a3e635",
494
+ background: "linear-gradient(135deg, #bef264, #84cc16)",
502
495
  color: "#1a2e05",
503
496
  fontFamily: "Arial Black, Impact, sans-serif",
504
497
  fontSize: "12px",
505
498
  fontWeight: 900,
506
499
  border: "3px solid #1a2e05",
507
- borderRadius: "2px 12px 2px 12px",
508
- filter: "drop-shadow(4px 5px 0 #365314)",
500
+ borderRadius: "3px 10px 3px 10px",
509
501
  padding: "9px 14px",
510
502
  letterSpacing: "0.08em",
511
503
  textTransform: "uppercase",
512
504
  arrowSize: "10px",
513
505
  arrowWidth: "20px",
514
- animation: animations.snap
506
+ animation: animations.pop
515
507
  }),
516
508
  radioactive: createTheme({
517
509
  background: "conic-gradient(from 45deg at 50% 50%, #facc15 0 12.5%, #18181b 12.5% 25%, #facc15 25% 37.5%, #18181b 37.5% 50%, #facc15 50% 62.5%, #18181b 62.5% 75%, #facc15 75% 87.5%, #18181b 87.5%)",
@@ -531,20 +523,18 @@ var presets = {
531
523
  animation: animations.zoom
532
524
  }),
533
525
  hazard: createTheme({
534
- background: "repeating-linear-gradient(135deg, #f97316 0, #f97316 10px, #18181b 10px, #18181b 20px)",
526
+ background: "linear-gradient(135deg, #fb923c, #ea580c)",
535
527
  color: "#ffffff",
536
528
  fontFamily: "Arial Black, Impact, sans-serif",
537
529
  fontSize: "12px",
538
530
  fontWeight: 900,
539
531
  border: "3px solid #18181b",
540
532
  borderRadius: "4px",
541
- filter: "drop-shadow(5px 5px 0 rgba(24, 24, 27, 0.6))",
542
533
  padding: "9px 15px",
543
- textShadow: "2px 2px 0 #18181b, -1px -1px 0 #18181b",
544
534
  textTransform: "uppercase",
545
535
  arrowSize: "10px",
546
536
  arrowWidth: "20px",
547
- animation: animations.snap
537
+ animation: animations.pop
548
538
  }),
549
539
  policeTape: createTheme({
550
540
  background: "repeating-linear-gradient(135deg, #f8fafc 0, #f8fafc 11px, #2563eb 11px, #2563eb 22px)",
@@ -662,21 +652,20 @@ var presets = {
662
652
  animation: animations.slide
663
653
  }),
664
654
  dossier: createTheme({
665
- background: "linear-gradient(90deg, rgba(127, 29, 29, 0.15) 0 4px, transparent 4px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(120, 83, 36, 0.13) 14px 15px), #e7d7b5",
655
+ background: "linear-gradient(180deg, #f2e5c8, #dfc99f)",
666
656
  color: "#3f2d1d",
667
657
  fontFamily: "Courier New, monospace",
668
658
  fontSize: "11px",
669
659
  fontWeight: 800,
670
660
  border: "2px solid #92400e",
671
- borderRadius: "1px 8px 1px 8px",
672
- filter: "drop-shadow(5px 7px 0 rgba(120, 53, 15, 0.35))",
661
+ borderRadius: "2px 7px 2px 7px",
673
662
  padding: "11px 16px",
674
663
  letterSpacing: "0.08em",
675
664
  textTransform: "uppercase",
676
665
  textAlign: "left",
677
666
  arrowSize: "8px",
678
667
  arrowWidth: "17px",
679
- animation: animations.snap
668
+ animation: animations.soft
680
669
  }),
681
670
  medical: createTheme({
682
671
  background: "linear-gradient(90deg, transparent 44%, rgba(14, 165, 233, 0.08) 44% 56%, transparent 56%), linear-gradient(0deg, transparent 44%, rgba(14, 165, 233, 0.08) 44% 56%, transparent 56%), #f8fafc",
@@ -712,20 +701,18 @@ var presets = {
712
701
  }
713
702
  }),
714
703
  circuit: createTheme({
715
- background: "linear-gradient(90deg, transparent 48%, rgba(34, 197, 94, 0.2) 48% 52%, transparent 52%) 0 0 / 18px 18px, linear-gradient(0deg, transparent 48%, rgba(34, 197, 94, 0.2) 48% 52%, transparent 52%) 0 0 / 18px 18px, radial-gradient(circle at 9px 9px, #22c55e 0 1.5px, transparent 2px) 0 0 / 18px 18px, #052e16",
704
+ background: "linear-gradient(135deg, #052e16, #022c22)",
716
705
  color: "#bbf7d0",
717
706
  fontFamily: "Consolas, monospace",
718
707
  fontSize: "11px",
719
708
  fontWeight: 700,
720
709
  border: "2px solid #22c55e",
721
710
  borderRadius: "5px",
722
- filter: "drop-shadow(0 0 7px rgba(34, 197, 94, 0.55))",
723
711
  padding: "9px 14px",
724
712
  letterSpacing: "0.05em",
725
- textShadow: "0 0 4px rgba(34, 197, 94, 0.75)",
726
713
  arrowSize: "8px",
727
714
  arrowWidth: "16px",
728
- animation: animations.snap
715
+ animation: animations.soft
729
716
  }),
730
717
  galaxy: createTheme({
731
718
  background: "radial-gradient(circle at 12% 25%, #ffffff 0 1px, transparent 1.5px), radial-gradient(circle at 76% 18%, #c4b5fd 0 1px, transparent 1.5px), radial-gradient(circle at 63% 78%, #ffffff 0 1.2px, transparent 1.8px), radial-gradient(circle at 28% 72%, rgba(236, 72, 153, 0.55), transparent 22%), radial-gradient(circle at 70% 20%, rgba(99, 102, 241, 0.55), transparent 32%), #09051f",
@@ -901,27 +888,24 @@ var presets = {
901
888
  fontWeight: 900,
902
889
  border: "4px solid #000000",
903
890
  borderRadius: "0px",
904
- filter: "drop-shadow(7px 7px 0 #ef4444)",
905
891
  padding: "10px 16px",
906
892
  letterSpacing: "-0.03em",
907
893
  textTransform: "uppercase",
908
894
  textAlign: "left",
909
895
  arrowSize: "11px",
910
896
  arrowWidth: "19px",
911
- animation: animations.snap
897
+ animation: animations.pop
912
898
  }),
913
899
  chalkboard: createTheme({
914
- background: "repeating-linear-gradient(175deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 2px, transparent 2px, transparent 7px), #163a2c",
900
+ background: "linear-gradient(145deg, #183f30, #102a21)",
915
901
  color: "#f5f5dc",
916
902
  fontFamily: "Comic Sans MS, Chalkboard, cursive",
917
903
  fontSize: "13px",
918
904
  fontWeight: 600,
919
905
  border: "3px solid #8b5e3c",
920
906
  borderRadius: "2px",
921
- filter: "drop-shadow(4px 6px 0 rgba(66, 32, 6, 0.45))",
922
907
  padding: "10px 16px",
923
908
  letterSpacing: "0.025em",
924
- textShadow: "0 0 2px rgba(255, 255, 255, 0.55)",
925
909
  textAlign: "left",
926
910
  arrowSize: "9px",
927
911
  arrowWidth: "18px",
@@ -1346,7 +1330,6 @@ var useTooltip = ({
1346
1330
  pendingHideRef.current = false;
1347
1331
  interactiveBridgeDeadlineRef.current = 0;
1348
1332
  clearTooltipActivation(ownerRef.current);
1349
- setMounted(false);
1350
1333
  updatePhase("hidden");
1351
1334
  }, [clearEnterFrames, clearHideTimer, clearInteractiveFrame, updatePhase]);
1352
1335
  const runHide = useCallback(() => {