@bpmn-io/properties-panel 1.8.2 → 2.1.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.
@@ -99,8 +99,11 @@
99
99
  --dropdown-item-hover-background-color: var(--color-grey-225-10-95);
100
100
  --dropdown-separator-background-color: var(--color-grey-225-10-75);
101
101
 
102
- --feel-active-color: var(--color-blue-205-100-35);
102
+ --feel-background-color: var(--color-grey-225-10-95);
103
+ --feel-active-color: var(--color-blue-205-100-45);
103
104
  --feel-inactive-color: var(--color-grey-225-10-35);
105
+ --feel-hover-background-color: var(--color-grey-225-10-90);
106
+ --feel-active-background-color: var(--color-grey-225-10-95);
104
107
 
105
108
  --feel-indicator-background-color: var(--color-grey-225-10-90);
106
109
 
@@ -113,7 +116,9 @@
113
116
  --font-family: sans-serif;
114
117
  --font-family-monospace: monospace;
115
118
 
116
- display: none;
119
+ display: flex;
120
+ flex-direction: column;
121
+ flex: 1;
117
122
  position: relative;
118
123
  height: 100%;
119
124
  width: 100%;
@@ -135,12 +140,6 @@
135
140
  font-family: var(--font-family);
136
141
  }
137
142
 
138
- .bio-properties-panel.open {
139
- display: flex;
140
- flex-direction: column;
141
- flex: 1;
142
- }
143
-
144
143
  /**
145
144
  * Placeholder (empty, multi select, ...)
146
145
  */
@@ -516,7 +515,7 @@ select.bio-properties-panel-input {
516
515
  }
517
516
 
518
517
  .bio-properties-panel-input[type="checkbox"]:focus {
519
- outline: 1px solid var(--input-focus-border-color);
518
+ outline: 2px solid var(--input-focus-border-color);
520
519
  outline-offset: 0;
521
520
  }
522
521
 
@@ -586,10 +585,23 @@ textarea.bio-properties-panel-input {
586
585
  align-items: center;
587
586
  }
588
587
 
588
+ .bio-properties-panel-toggle-switch.inline {
589
+ display: flex;
590
+ flex-direction: row;
591
+ }
592
+
593
+ .bio-properties-panel-toggle-switch.inline .bio-properties-panel-field-wrapper {
594
+ margin-left: auto;
595
+ }
596
+
589
597
  .bio-properties-panel-toggle-switch > .bio-properties-panel-label {
590
598
  font-size: var(--text-size-base);
591
599
  }
592
600
 
601
+ .bio-properties-panel-toggle-switch.inline > .bio-properties-panel-label {
602
+ font-size: var(--text-size-small);
603
+ }
604
+
593
605
  .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__label {
594
606
  margin: 0;
595
607
  margin-left: 6px;
@@ -602,6 +614,11 @@ textarea.bio-properties-panel-input {
602
614
  height: 16px;
603
615
  }
604
616
 
617
+ .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher:focus-within {
618
+ outline: 2px solid var(--input-focus-border-color);
619
+ outline-offset: 1px;
620
+ }
621
+
605
622
  .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher input[type='checkbox'] {
606
623
  opacity: 0;
607
624
  width: 0;
@@ -610,6 +627,7 @@ textarea.bio-properties-panel-input {
610
627
 
611
628
  .bio-properties-panel-toggle-switch .bio-properties-panel-toggle-switch__switcher .bio-properties-panel-toggle-switch__slider {
612
629
  position: absolute;
630
+ cursor: pointer;
613
631
  top: 0;
614
632
  left: 0;
615
633
  right: 0;
@@ -966,34 +984,57 @@ textarea.bio-properties-panel-input {
966
984
  padding-right: 2em
967
985
  }
968
986
 
987
+ .bio-properties-panel-feel-entry .bio-properties-panel-label {
988
+ display: flex;
989
+ }
990
+
969
991
  .bio-properties-panel-feel-icon {
970
- display: inline-block;
971
- height: 16px;
972
- border-radius: 8px;
992
+ display: inline-flex;
993
+ height: 22px;
994
+ width: 22px;
973
995
  vertical-align: text-bottom;
974
996
  padding: 0;
975
997
  margin: 0 3px;
976
998
  align-items: center;
977
999
  align-self: center;
1000
+ justify-content: center;
978
1001
  border: none;
979
1002
  background: none;
1003
+ border-radius: 3px;
980
1004
  }
981
1005
 
982
1006
  .bio-properties-panel-feel-icon.optional {
983
1007
  cursor: pointer;
1008
+
1009
+ background: var(--feel-background-color);
984
1010
  }
985
1011
 
986
1012
  .bio-properties-panel-feel-icon svg * {
987
- color: var(--feel-inactive-color);
1013
+ fill: var(--feel-inactive-color);
1014
+ }
1015
+
1016
+ .bio-properties-panel-feel-icon:hover {
1017
+ background: var(--feel-hover-background-color);
1018
+ }
1019
+
1020
+ .bio-properties-panel-feel-icon.active {
1021
+ background: var(--feel-active-background-color);
1022
+ }
1023
+
1024
+ .bio-properties-panel-feel-icon.active:hover {
1025
+ background: var(--feel-hover-background-color);
1026
+ }
1027
+
1028
+ .bio-properties-panel-feel-icon.required.active {
1029
+ background: none;
988
1030
  }
989
1031
 
990
1032
  .bio-properties-panel-feel-icon.active svg * {
991
- color: var(--feel-active-color);
1033
+ fill: var(--feel-active-color);
992
1034
  }
993
1035
 
994
- .bio-properties-panel-feel-icon svg {
995
- width: 16px;
996
- height: 16px;
1036
+ .bio-properties-panel-feel-icon.required.active svg * {
1037
+ fill: var(--feel-inactive-color);
997
1038
  }
998
1039
 
999
1040
  .bio-properties-panel-feel-editor-container {
@@ -1050,3 +1091,20 @@ textarea.bio-properties-panel-input {
1050
1091
  .bio-properties-panel-feel-container .cm-editor {
1051
1092
  min-height: 100%;
1052
1093
  }
1094
+
1095
+ .bio-properties-panel-feel-checkbox,
1096
+ .bio-properties-panel-feel-toggle-switch {
1097
+ padding-top: 1px;
1098
+ }
1099
+
1100
+ .bio-properties-panel-feel-checkbox .bio-properties-panel-feel-entry:not(.feel-active),
1101
+ .bio-properties-panel-feel-toggle-switch .bio-properties-panel-feel-entry:not(.feel-active) {
1102
+ display: flex;
1103
+ flex-direction: row;
1104
+ align-items: center;
1105
+ }
1106
+
1107
+ .bio-properties-panel-feel-checkbox .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container,
1108
+ .bio-properties-panel-feel-toggle-switch .bio-properties-panel-feel-entry:not(.feel-active) .bio-properties-panel-feel-container {
1109
+ margin-left: auto;
1110
+ }