@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.js CHANGED
@@ -186,20 +186,19 @@ var presets = {
186
186
  animation: animations.bounce
187
187
  }),
188
188
  manga: createTheme({
189
- background: "radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.2) 1px, transparent 1.5px) 0 0 / 6px 6px, #ffffff",
189
+ background: "linear-gradient(145deg, #ffffff, #f4f4f5)",
190
190
  color: "#000000",
191
191
  fontFamily: "Impact, Haettenschweiler, Arial Narrow Bold, sans-serif",
192
192
  fontSize: "13px",
193
193
  fontWeight: 900,
194
194
  border: "3px solid #000000",
195
- borderRadius: "18px 5px 18px 5px",
196
- filter: "drop-shadow(4px 4px 0 #000000)",
195
+ borderRadius: "10px 3px 10px 3px",
197
196
  padding: "9px 15px",
198
197
  letterSpacing: "0.04em",
199
198
  textTransform: "uppercase",
200
- arrowSize: "11px",
199
+ arrowSize: "10px",
201
200
  arrowWidth: "17px",
202
- animation: animations.snap
201
+ animation: animations.pop
203
202
  }),
204
203
  newspaper: createTheme({
205
204
  background: "repeating-linear-gradient(0deg, rgba(68, 64, 60, 0.035) 0, rgba(68, 64, 60, 0.035) 1px, transparent 1px, transparent 4px), #f5f0e6",
@@ -255,54 +254,48 @@ var presets = {
255
254
  }
256
255
  }),
257
256
  terminal: createTheme({
258
- background: "linear-gradient(180deg, #020617, #000000)",
259
- color: "#22c55e",
257
+ background: "#020a04",
258
+ color: "#4ade80",
260
259
  fontFamily: "Consolas, Monaco, Courier New, monospace",
261
260
  fontSize: "12px",
262
261
  fontWeight: 600,
263
262
  border: "1px solid #22c55e",
264
263
  borderRadius: "3px",
265
- filter: "drop-shadow(0 0 5px rgba(34, 197, 94, 0.65))",
266
264
  padding: "8px 12px",
267
265
  letterSpacing: "0.035em",
268
- textShadow: "0 0 5px rgba(34, 197, 94, 0.9)",
269
266
  textAlign: "left",
270
267
  arrowSize: "7px",
271
268
  arrowWidth: "13px",
272
- animation: animations.instant
269
+ animation: animations.soft
273
270
  }),
274
271
  crt: createTheme({
275
- 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)",
272
+ background: "linear-gradient(180deg, #07150b, #020804)",
276
273
  color: "#86efac",
277
274
  fontFamily: "Lucida Console, Monaco, monospace",
278
275
  fontSize: "12px",
279
276
  fontWeight: 600,
280
277
  border: "2px solid #166534",
281
- borderRadius: "18px",
282
- filter: "drop-shadow(0 0 8px rgba(34, 197, 94, 0.5)) drop-shadow(0 0 18px rgba(34, 197, 94, 0.18))",
278
+ borderRadius: "12px",
283
279
  padding: "10px 15px",
284
- textShadow: "0 0 6px rgba(134, 239, 172, 0.85)",
285
280
  arrowSize: "8px",
286
281
  arrowWidth: "18px",
287
- animation: animations.blur
282
+ animation: animations.soft
288
283
  }),
289
284
  pixel: createTheme({
290
- background: "linear-gradient(135deg, #4c1d95 25%, #581c87 25%, #581c87 50%, #4c1d95 50%, #4c1d95 75%, #581c87 75%) 0 0 / 8px 8px",
285
+ background: "linear-gradient(135deg, #4c1d95, #581c87)",
291
286
  color: "#fef08a",
292
- fontFamily: "Press Start 2P, Courier New, monospace",
287
+ fontFamily: "Courier New, monospace",
293
288
  fontSize: "10px",
294
289
  fontWeight: 700,
295
290
  lineHeight: 1.7,
296
291
  border: "4px solid #fef08a",
297
292
  borderRadius: "0px",
298
- filter: "drop-shadow(6px 6px 0 #18181b)",
299
293
  padding: "10px 14px",
300
294
  letterSpacing: "0.03em",
301
- textShadow: "2px 2px 0 #18181b",
302
295
  textTransform: "uppercase",
303
296
  arrowSize: "10px",
304
297
  arrowWidth: "18px",
305
- animation: animations.snap
298
+ animation: animations.pop
306
299
  }),
307
300
  arcade: createTheme({
308
301
  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",
@@ -516,20 +509,19 @@ var presets = {
516
509
  animation: animations.blur
517
510
  }),
518
511
  toxic: createTheme({
519
- background: "repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.17) 0, rgba(0, 0, 0, 0.17) 5px, transparent 5px, transparent 10px), #a3e635",
512
+ background: "linear-gradient(135deg, #bef264, #84cc16)",
520
513
  color: "#1a2e05",
521
514
  fontFamily: "Arial Black, Impact, sans-serif",
522
515
  fontSize: "12px",
523
516
  fontWeight: 900,
524
517
  border: "3px solid #1a2e05",
525
- borderRadius: "2px 12px 2px 12px",
526
- filter: "drop-shadow(4px 5px 0 #365314)",
518
+ borderRadius: "3px 10px 3px 10px",
527
519
  padding: "9px 14px",
528
520
  letterSpacing: "0.08em",
529
521
  textTransform: "uppercase",
530
522
  arrowSize: "10px",
531
523
  arrowWidth: "20px",
532
- animation: animations.snap
524
+ animation: animations.pop
533
525
  }),
534
526
  radioactive: createTheme({
535
527
  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%)",
@@ -549,20 +541,18 @@ var presets = {
549
541
  animation: animations.zoom
550
542
  }),
551
543
  hazard: createTheme({
552
- background: "repeating-linear-gradient(135deg, #f97316 0, #f97316 10px, #18181b 10px, #18181b 20px)",
544
+ background: "linear-gradient(135deg, #fb923c, #ea580c)",
553
545
  color: "#ffffff",
554
546
  fontFamily: "Arial Black, Impact, sans-serif",
555
547
  fontSize: "12px",
556
548
  fontWeight: 900,
557
549
  border: "3px solid #18181b",
558
550
  borderRadius: "4px",
559
- filter: "drop-shadow(5px 5px 0 rgba(24, 24, 27, 0.6))",
560
551
  padding: "9px 15px",
561
- textShadow: "2px 2px 0 #18181b, -1px -1px 0 #18181b",
562
552
  textTransform: "uppercase",
563
553
  arrowSize: "10px",
564
554
  arrowWidth: "20px",
565
- animation: animations.snap
555
+ animation: animations.pop
566
556
  }),
567
557
  policeTape: createTheme({
568
558
  background: "repeating-linear-gradient(135deg, #f8fafc 0, #f8fafc 11px, #2563eb 11px, #2563eb 22px)",
@@ -680,21 +670,20 @@ var presets = {
680
670
  animation: animations.slide
681
671
  }),
682
672
  dossier: createTheme({
683
- 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",
673
+ background: "linear-gradient(180deg, #f2e5c8, #dfc99f)",
684
674
  color: "#3f2d1d",
685
675
  fontFamily: "Courier New, monospace",
686
676
  fontSize: "11px",
687
677
  fontWeight: 800,
688
678
  border: "2px solid #92400e",
689
- borderRadius: "1px 8px 1px 8px",
690
- filter: "drop-shadow(5px 7px 0 rgba(120, 53, 15, 0.35))",
679
+ borderRadius: "2px 7px 2px 7px",
691
680
  padding: "11px 16px",
692
681
  letterSpacing: "0.08em",
693
682
  textTransform: "uppercase",
694
683
  textAlign: "left",
695
684
  arrowSize: "8px",
696
685
  arrowWidth: "17px",
697
- animation: animations.snap
686
+ animation: animations.soft
698
687
  }),
699
688
  medical: createTheme({
700
689
  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",
@@ -730,20 +719,18 @@ var presets = {
730
719
  }
731
720
  }),
732
721
  circuit: createTheme({
733
- 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",
722
+ background: "linear-gradient(135deg, #052e16, #022c22)",
734
723
  color: "#bbf7d0",
735
724
  fontFamily: "Consolas, monospace",
736
725
  fontSize: "11px",
737
726
  fontWeight: 700,
738
727
  border: "2px solid #22c55e",
739
728
  borderRadius: "5px",
740
- filter: "drop-shadow(0 0 7px rgba(34, 197, 94, 0.55))",
741
729
  padding: "9px 14px",
742
730
  letterSpacing: "0.05em",
743
- textShadow: "0 0 4px rgba(34, 197, 94, 0.75)",
744
731
  arrowSize: "8px",
745
732
  arrowWidth: "16px",
746
- animation: animations.snap
733
+ animation: animations.soft
747
734
  }),
748
735
  galaxy: createTheme({
749
736
  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",
@@ -919,27 +906,24 @@ var presets = {
919
906
  fontWeight: 900,
920
907
  border: "4px solid #000000",
921
908
  borderRadius: "0px",
922
- filter: "drop-shadow(7px 7px 0 #ef4444)",
923
909
  padding: "10px 16px",
924
910
  letterSpacing: "-0.03em",
925
911
  textTransform: "uppercase",
926
912
  textAlign: "left",
927
913
  arrowSize: "11px",
928
914
  arrowWidth: "19px",
929
- animation: animations.snap
915
+ animation: animations.pop
930
916
  }),
931
917
  chalkboard: createTheme({
932
- background: "repeating-linear-gradient(175deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 2px, transparent 2px, transparent 7px), #163a2c",
918
+ background: "linear-gradient(145deg, #183f30, #102a21)",
933
919
  color: "#f5f5dc",
934
920
  fontFamily: "Comic Sans MS, Chalkboard, cursive",
935
921
  fontSize: "13px",
936
922
  fontWeight: 600,
937
923
  border: "3px solid #8b5e3c",
938
924
  borderRadius: "2px",
939
- filter: "drop-shadow(4px 6px 0 rgba(66, 32, 6, 0.45))",
940
925
  padding: "10px 16px",
941
926
  letterSpacing: "0.025em",
942
- textShadow: "0 0 2px rgba(255, 255, 255, 0.55)",
943
927
  textAlign: "left",
944
928
  arrowSize: "9px",
945
929
  arrowWidth: "18px",
@@ -1358,7 +1342,6 @@ var useTooltip = ({
1358
1342
  pendingHideRef.current = false;
1359
1343
  interactiveBridgeDeadlineRef.current = 0;
1360
1344
  clearTooltipActivation(ownerRef.current);
1361
- setMounted(false);
1362
1345
  updatePhase("hidden");
1363
1346
  }, [clearEnterFrames, clearHideTimer, clearInteractiveFrame, updatePhase]);
1364
1347
  const runHide = (0, import_react.useCallback)(() => {