@emuanalytics/flow-rdf-ui 4.4.0 → 5.0.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.
@@ -3,15 +3,15 @@ export { addIcons } from './library.default.mjs';
3
3
  import systemLibrary from './library.system.mjs';
4
4
 
5
5
  let registry;
6
- let watchedIcons = [];
6
+ const watchedIcons = /* @__PURE__ */ new Set();
7
7
  function getRegistry() {
8
8
  return registry ?? (registry = [library, systemLibrary]);
9
9
  }
10
10
  function watchIcon(icon) {
11
- watchedIcons.push(icon);
11
+ watchedIcons.add(icon);
12
12
  }
13
13
  function unwatchIcon(icon) {
14
- watchedIcons = watchedIcons.filter((el) => el !== icon);
14
+ watchedIcons.delete(icon);
15
15
  }
16
16
  function getIconLibrary(name) {
17
17
  return getRegistry().find((lib) => lib.name === name);
@@ -37,8 +37,10 @@ const styles = css`
37
37
  min-width: var(--min-size);
38
38
  }
39
39
 
40
+ /* Fill the vertical tab bar's width, which the tab group stretches to the widest tab */
40
41
  :host([placement='start']) .tab,
41
42
  :host([placement='end']) .tab {
43
+ flex: 1;
42
44
  min-height: var(--min-size);
43
45
  }
44
46
 
@@ -299,10 +299,11 @@ const styles = css`
299
299
  overflow-y: auto;
300
300
  }
301
301
 
302
+ /* Vertical tabs stretch to the widest tab, so they are all the same width */
302
303
  .tab-group--start .tab-group__tabs {
303
304
  flex: 0 0 auto;
304
305
  flex-direction: column;
305
- align-items: center;
306
+ align-items: stretch;
306
307
  }
307
308
 
308
309
  .tab-group--start .tab-group__indicator {
@@ -380,7 +381,7 @@ const styles = css`
380
381
  .tab-group--end .tab-group__tabs {
381
382
  flex: 0 0 auto;
382
383
  flex-direction: column;
383
- align-items: center;
384
+ align-items: stretch;
384
385
  }
385
386
 
386
387
  .tab-group--end .tab-group__indicator {