@zerohive/hive-viewer 0.2.5 → 0.2.7

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
@@ -1,6 +1,6 @@
1
1
  /* Focus ring for accessibility */
2
2
  .hv-btn:focus, .hv-thumb:focus, .hv-modal-close:focus {
3
- outline: 2px solid #6366f1;
3
+ outline: 1px solid #6366f1;
4
4
  outline-offset: 2px;
5
5
  z-index: 2;
6
6
  }
@@ -134,7 +134,7 @@
134
134
 
135
135
  /* Thumbnails Sidebar Modern Redesign */
136
136
  .hv-thumbs {
137
- width: 240px;
137
+ width: 200px;
138
138
  flex: 0 0 auto;
139
139
  background: var(--hv-panel);
140
140
  border-right: 1px solid var(--hv-border);
@@ -477,3 +477,201 @@
477
477
  .hv-grid td,.hv-grid th{border:1px solid rgba(0,0,0,.12);padding:6px 8px;min-width:90px}
478
478
  .hv-grid th{background:#f1f5f9;font-weight:600;text-align:left}
479
479
  .hv-slide{background:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:18px;max-width:480px;min-height:270px}
480
+
481
+
482
+ .hv-root {
483
+ height: 100%;
484
+ display: flex;
485
+ flex-direction: column;
486
+ }
487
+
488
+ .hv-toolbar {
489
+ position: sticky;
490
+ top: 0;
491
+ z-index: 20;
492
+ display: flex;
493
+ gap: 8px;
494
+ padding: 8px 12px;
495
+ justify-content: space-around;
496
+ align-items: start;
497
+ border-bottom: 1px solid #e5e7eb;
498
+ }
499
+
500
+ .hv-toolbar button {
501
+ padding: 6px 10px;
502
+ border-radius: 6px;
503
+ border: 1px solid #d1d5db;
504
+ background: #fff;
505
+ cursor: pointer;
506
+ }
507
+
508
+ .hv-toolbar button:disabled {
509
+ opacity: 0.5;
510
+ cursor: not-allowed;
511
+ }
512
+
513
+ .hv-hint {
514
+ margin-left: auto;
515
+ font-size: 13px;
516
+ color: #2563eb;
517
+ }
518
+
519
+ .hv-scroll {
520
+ flex: 1;
521
+ overflow: auto;
522
+ padding: 32px 0;
523
+ }
524
+
525
+ .hv-pageStage {
526
+ width: 794px;
527
+ margin: 0 auto;
528
+ background: white;
529
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
530
+ padding: 72px;
531
+ min-height: 1122px;
532
+ }
533
+
534
+ .hv-editor {
535
+ outline: none;
536
+ min-height: 900px;
537
+ font-family: 'Inter', system-ui, sans-serif;
538
+ font-size: 15px;
539
+ line-height: 1.7;
540
+ }
541
+
542
+ .hv-editor.ro {
543
+ cursor: default;
544
+ }
545
+
546
+ /* === Toolbar container === */
547
+ .hv-toolbar {
548
+ position: sticky;
549
+ top: 0;
550
+ z-index: 40;
551
+
552
+ display: flex;
553
+ align-items: center;
554
+ justify-content: space-between;
555
+ gap: 12px;
556
+
557
+ padding: 10px 14px;
558
+ background: #ffffff;
559
+ border-bottom: 1px solid #e5e7eb;
560
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
561
+ }
562
+
563
+ /* === Groups === */
564
+ .hv-toolbar__group {
565
+ display: flex;
566
+ align-items: center;
567
+ gap: 6px;
568
+ }
569
+
570
+ .hv-toolbar__actions {
571
+ gap: 8px;
572
+ }
573
+
574
+ /* === Buttons === */
575
+ .hv-btn {
576
+ appearance: none;
577
+ border: 1px solid #d1d5db;
578
+ background: #fff;
579
+ color: #111827;
580
+
581
+ font-size: 13px;
582
+ font-weight: 500;
583
+ padding: 6px 12px;
584
+ border-radius: 8px;
585
+
586
+ cursor: pointer;
587
+ transition: all 0.15s ease;
588
+ }
589
+
590
+ .hv-btn:hover {
591
+ background: #f9fafb;
592
+ }
593
+
594
+ .hv-btn:disabled {
595
+ opacity: 0.5;
596
+ cursor: not-allowed;
597
+ }
598
+
599
+ .hv-btn--active {
600
+ background: #eef2ff;
601
+ border-color: #6366f1;
602
+ color: #4338ca;
603
+ }
604
+
605
+ .hv-btn--primary {
606
+ background: #4f46e5;
607
+ border-color: #4f46e5;
608
+ color: white;
609
+ }
610
+
611
+ .hv-btn--primary:hover {
612
+ background: #4338ca;
613
+ }
614
+
615
+ /* === Segmented layout control === */
616
+ .hv-segment {
617
+ background: #f3f4f6;
618
+ padding: 4px;
619
+ border-radius: 10px;
620
+ }
621
+
622
+ .hv-segment .hv-btn {
623
+ border: none;
624
+ background: transparent;
625
+ }
626
+
627
+ .hv-segment .hv-btn--active {
628
+ background: white;
629
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
630
+ }
631
+
632
+ /* === Switch === */
633
+ .hv-switch {
634
+ display: inline-flex;
635
+ align-items: center;
636
+ gap: 8px;
637
+ cursor: pointer;
638
+ user-select: none;
639
+ font-size: 13px;
640
+ }
641
+
642
+ .hv-switch input {
643
+ display: none;
644
+ }
645
+
646
+ .hv-switch__slider {
647
+ width: 34px;
648
+ height: 18px;
649
+ background: #d1d5db;
650
+ border-radius: 999px;
651
+ position: relative;
652
+ transition: background 0.2s ease;
653
+ }
654
+
655
+ .hv-switch__slider::after {
656
+ content: "";
657
+ position: absolute;
658
+ top: 2px;
659
+ left: 2px;
660
+ width: 14px;
661
+ height: 14px;
662
+ background: white;
663
+ border-radius: 50%;
664
+ transition: transform 0.2s ease;
665
+ }
666
+
667
+ .hv-switch input:checked+.hv-switch__slider {
668
+ background: #4f46e5;
669
+ }
670
+
671
+ .hv-switch input:checked+.hv-switch__slider::after {
672
+ transform: translateX(16px);
673
+ }
674
+
675
+ .hv-switch__label {
676
+ color: #374151;
677
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohive/hive-viewer",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",