@emuanalytics/flow-rdf-ui 4.1.2 → 4.1.3

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.
@@ -177,7 +177,8 @@ class FlowUiListItem extends FlowRdfElement {
177
177
  "list-item--has-menu": this.hasSlotController.test("menu"),
178
178
  "list-item--editable": this.editable,
179
179
  "list-item--selectable": this.selectable,
180
- "list-item--focused": this.hasFocus
180
+ "list-item--focused": this.hasFocus,
181
+ "list-item--disabled": this.disabled
181
182
  })}
182
183
  >
183
184
  ${this.reorder ? html`
@@ -13,9 +13,11 @@ const styles = css`
13
13
  --background-color: var(--flow-ui-list-item-background-color);
14
14
 
15
15
  --selection-width: 6px;
16
- --selection-color: var(--flow-ui-list-item-selected-color, var(--flow-ui-color-primary-500));
17
-
16
+ --selection-color: var(--flow-ui-list-item-selection-color, var(--flow-ui-color-primary-500));
18
17
  --background-color-selected: var(--flow-ui-list-item-background-color-selected, var(--flow-ui-color-neutral-500));
18
+
19
+ --disabled-color: var(--flow-ui-list-item-color-disabled, var(--flow-ui-color-neutral-600));
20
+ --background-color-disabled: var(--flow-ui-list-item-background-color-disabled, var(--flow-ui-color-neutral-300));
19
21
  }
20
22
 
21
23
  :host(:focus-visible) {
@@ -41,12 +43,22 @@ const styles = css`
41
43
  user-select: none;
42
44
  }
43
45
 
46
+ .list-item--disabled {
47
+ color: var(--disabled-color);
48
+ background-color: var(--background-color-disabled);
49
+ cursor: not-allowed;
50
+ }
51
+
52
+ .list-item--disabled flow-ui-input::part(input) {
53
+ color: var(--disabled-color);
54
+ }
55
+
44
56
  .list-item--checked {
45
57
  border-right-color: var(--selection-color);
46
58
  background-color: var(--background-color-selected);
47
59
  }
48
60
 
49
- .list-item--selectable {
61
+ .list-item--selectable:not(.list-item--disabled) {
50
62
  cursor: pointer;
51
63
  }
52
64