@sunboard/react 0.4.0 → 0.6.0

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/styles.css CHANGED
@@ -443,6 +443,91 @@ button.sunboard-step-row:focus-visible {
443
443
  color: var(--sunboard-tour-secondary-foreground);
444
444
  }
445
445
 
446
+ /* Tooltip: the tour popover minus the ceremony — no scrim, no step counter.
447
+ Shares the tour palette so themed hosts restyle both at once. Sits below
448
+ the tour z-index; an active tour hides tooltips at the provider level. */
449
+ .sunboard-tooltip {
450
+ position: relative;
451
+ z-index: 2147483001;
452
+ width: min(300px, calc(100vw - 32px));
453
+ box-sizing: border-box;
454
+ border: 1px solid var(--sunboard-tour-border);
455
+ border-radius: var(--sunboard-radius);
456
+ background: var(--sunboard-tour-background);
457
+ box-shadow: var(--sunboard-tour-shadow);
458
+ color: var(--sunboard-tour-foreground);
459
+ font-family: var(--sunboard-font);
460
+ padding: 14px;
461
+ }
462
+
463
+ .sunboard-tooltip-arrow {
464
+ color: var(--sunboard-tour-background);
465
+ }
466
+
467
+ .sunboard-tooltip-close {
468
+ position: absolute;
469
+ top: 6px;
470
+ right: 6px;
471
+ display: inline-flex;
472
+ align-items: center;
473
+ justify-content: center;
474
+ width: 22px;
475
+ height: 22px;
476
+ border: 0;
477
+ border-radius: 6px;
478
+ background: transparent;
479
+ color: var(--sunboard-tour-muted-foreground);
480
+ cursor: pointer;
481
+ font: inherit;
482
+ font-size: 12px;
483
+ font-weight: 700;
484
+ line-height: 1;
485
+ padding: 0;
486
+ }
487
+
488
+ .sunboard-tooltip-close:focus-visible {
489
+ outline: 2px solid var(--sunboard-tour-primary);
490
+ outline-offset: 1px;
491
+ }
492
+
493
+ .sunboard-tooltip-title {
494
+ margin: 0;
495
+ font-size: 15px;
496
+ font-weight: 750;
497
+ line-height: 1.35;
498
+ padding-right: 20px;
499
+ }
500
+
501
+ .sunboard-tooltip-body {
502
+ color: var(--sunboard-tour-muted-foreground);
503
+ font-size: 13px;
504
+ line-height: 1.45;
505
+ margin: 6px 0 0;
506
+ }
507
+
508
+ .sunboard-tooltip-actions {
509
+ display: flex;
510
+ justify-content: flex-end;
511
+ margin-top: 13px;
512
+ }
513
+
514
+ .sunboard-tooltip-action {
515
+ display: inline-flex;
516
+ align-items: center;
517
+ justify-content: center;
518
+ min-height: 30px;
519
+ border: 0;
520
+ border-radius: 8px;
521
+ background: var(--sunboard-tour-primary);
522
+ color: var(--sunboard-tour-primary-foreground);
523
+ cursor: pointer;
524
+ font: inherit;
525
+ font-size: 12px;
526
+ font-weight: 700;
527
+ line-height: 1;
528
+ padding: 8px 11px;
529
+ }
530
+
446
531
  .sunboard-debug {
447
532
  position: fixed;
448
533
  right: max(16px, env(safe-area-inset-right));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunboard/react",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "React SDK for the Sunboard onboarding runtime.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@floating-ui/react": "^0.27.19",
29
- "@sunboard/core": "0.6.0"
29
+ "@sunboard/core": "0.8.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=18.3.0 || >=19.0.0",
@@ -46,8 +46,8 @@
46
46
  "tsdown": "^0.16.7",
47
47
  "typescript": "5.9.2",
48
48
  "vitest": "^4.0.15",
49
- "@repo/typescript-config": "0.0.0",
50
- "@repo/eslint-config": "0.0.0"
49
+ "@repo/eslint-config": "0.0.0",
50
+ "@repo/typescript-config": "0.0.0"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsdown && pnpm run copy-styles",