iop-bpmn-react 0.1.3 → 0.1.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.css CHANGED
@@ -603,6 +603,172 @@
603
603
  }
604
604
 
605
605
  /* ===== Flowable 监听器样式(由 ListGroup 组件渲染,仅保留基础样式) ===== */
606
+ /* ===== BPMN 工具栏 ===== */
607
+ .bpmn-toolbar {
608
+ display: flex;
609
+ align-items: center;
610
+ height: 40px;
611
+ padding: 0 10px;
612
+ background: #fafafa;
613
+ border-bottom: 1px solid #e8e8e8;
614
+ gap: 2px;
615
+ flex-shrink: 0;
616
+ user-select: none;
617
+ }
618
+
619
+ /* ===== 按钮组 ===== */
620
+ .bpmn-toolbar-group {
621
+ display: flex;
622
+ align-items: center;
623
+ gap: 1px;
624
+ }
625
+
626
+ /* ===== 分隔线 ===== */
627
+ .bpmn-toolbar-sep {
628
+ width: 1px;
629
+ height: 22px;
630
+ background: #ddd;
631
+ margin: 0 6px;
632
+ }
633
+
634
+ /* ===== 工具栏按钮 ===== */
635
+ .bpmn-toolbar-action {
636
+ display: inline-flex;
637
+ align-items: center;
638
+ justify-content: center;
639
+ width: 32px;
640
+ height: 32px;
641
+ border: none;
642
+ background: transparent;
643
+ border-radius: 4px;
644
+ cursor: pointer;
645
+ color: #555;
646
+ font-size: 16px;
647
+ transition: all 0.12s ease;
648
+ position: relative;
649
+ }
650
+
651
+ .bpmn-toolbar-action:hover {
652
+ background: #e8e8e8;
653
+ color: #333;
654
+ }
655
+
656
+ .bpmn-toolbar-action:active {
657
+ background: #d9d9d9;
658
+ }
659
+
660
+ .bpmn-toolbar-action:disabled {
661
+ color: #ccc;
662
+ cursor: not-allowed;
663
+ background: transparent;
664
+ }
665
+
666
+ .bpmn-toolbar-action:disabled:hover {
667
+ background: transparent;
668
+ }
669
+
670
+ /* ===== 激活态按钮(切换类) ===== */
671
+ .bpmn-toolbar-action--active {
672
+ color: #1677ff;
673
+ background: #e6f4ff;
674
+ }
675
+
676
+ .bpmn-toolbar-action--active:hover {
677
+ background: #bae0ff;
678
+ color: #0958d9;
679
+ }
680
+
681
+ /* ===== 文字按钮(如导出) ===== */
682
+ .bpmn-toolbar-action--text {
683
+ width: auto;
684
+ padding: 0 10px;
685
+ font-size: 12px;
686
+ gap: 4px;
687
+ }
688
+
689
+ /* ===== tooltip ===== */
690
+ .bpmn-toolbar-action[title]::after {
691
+ content: attr(title);
692
+ display: none;
693
+ }
694
+
695
+ /* ===== 右侧区域 ===== */
696
+ .bpmn-toolbar-right {
697
+ margin-left: auto;
698
+ display: flex;
699
+ align-items: center;
700
+ gap: 1px;
701
+ }
702
+
703
+ /* ===== 缩放显示 ===== */
704
+ .bpmn-toolbar-zoom-label {
705
+ font-size: 11px;
706
+ color: #999;
707
+ min-width: 40px;
708
+ text-align: center;
709
+ margin: 0 2px;
710
+ }
711
+
712
+ /* ===== 语言选择器 ===== */
713
+ .bpmn-lang-selector {
714
+ position: relative;
715
+ }
716
+
717
+ .bpmn-lang-trigger {
718
+ gap: 4px;
719
+ }
720
+
721
+ .bpmn-lang-menu {
722
+ position: absolute;
723
+ top: 100%;
724
+ right: 0;
725
+ margin-top: 4px;
726
+ background: #fff;
727
+ border: 1px solid #e8e8e8;
728
+ border-radius: 6px;
729
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
730
+ padding: 4px;
731
+ min-width: 140px;
732
+ z-index: 1000;
733
+ }
734
+
735
+ .bpmn-lang-item {
736
+ display: flex;
737
+ align-items: center;
738
+ width: 100%;
739
+ padding: 8px 12px;
740
+ border: none;
741
+ background: transparent;
742
+ border-radius: 4px;
743
+ cursor: pointer;
744
+ font-size: 13px;
745
+ color: #333;
746
+ transition: background 0.12s ease;
747
+ gap: 8px;
748
+ }
749
+
750
+ .bpmn-lang-item:hover {
751
+ background: #f5f5f5;
752
+ }
753
+
754
+ .bpmn-lang-item--active {
755
+ background: #e6f4ff;
756
+ color: #1677ff;
757
+ }
758
+
759
+ .bpmn-lang-item--active:hover {
760
+ background: #bae0ff;
761
+ }
762
+
763
+ .bpmn-lang-flag {
764
+ font-size: 16px;
765
+ line-height: 1;
766
+ }
767
+
768
+ .bpmn-lang-label {
769
+ flex: 1;
770
+ text-align: left;
771
+ }
606
772
  /**
607
773
  * color definitions
608
774
  */