@emuanalytics/flow-rdf-ui 4.0.1 → 4.0.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.
package/dist/index.mjs CHANGED
@@ -3016,6 +3016,8 @@ const styles$Y = css`
3016
3016
  display: inline-block;
3017
3017
  color: var(--flow-ui-color-neutral-600);
3018
3018
 
3019
+ --hover-color: var(--flow-ui-color-primary-500);
3020
+ --active-color: var(--flow-ui-color-primary-400);
3019
3021
  --icon-size: inherit;
3020
3022
  }
3021
3023
 
@@ -3042,11 +3044,11 @@ const styles$Y = css`
3042
3044
 
3043
3045
  .icon-button:hover:not(.icon-button--disabled),
3044
3046
  .icon-button:focus-visible:not(.icon-button--disabled) {
3045
- color: var(--flow-ui-color-primary-500);
3047
+ color: var(--hover-color);
3046
3048
  }
3047
3049
 
3048
3050
  .icon-button:active:not(.icon-button--disabled) {
3049
- color: var(--flow-ui-color-primary-600);
3051
+ color: var(--active-color);
3050
3052
  }
3051
3053
 
3052
3054
  .icon-button:focus {
@@ -3082,7 +3084,6 @@ const styles$Y = css`
3082
3084
  .icon-button__tooltip--confirm .confirm__label {
3083
3085
  margin-inline: var(--flow-ui-spacing-x-small);
3084
3086
  }
3085
-
3086
3087
  `;
3087
3088
 
3088
3089
  var __defProp$V = Object.defineProperty;
@@ -3360,6 +3361,14 @@ const styles$X = css`
3360
3361
  color: var(--flow-ui-color-primary-500);
3361
3362
  }
3362
3363
 
3364
+ .alert--secondary {
3365
+ border-top-color: var(--flow-ui-color-secondary-500);
3366
+ }
3367
+
3368
+ .alert--secondary .alert__icon {
3369
+ color: var(--flow-ui-color-secondary-500);
3370
+ }
3371
+
3363
3372
  .alert--success {
3364
3373
  border-top-color: var(--flow-ui-color-success-600);
3365
3374
  }
@@ -3530,6 +3539,7 @@ class FlowUiAlert extends FlowRdfElement {
3530
3539
  "alert--closable": this.closable,
3531
3540
  "alert--has-icon": this.hasSlotController.test("icon"),
3532
3541
  "alert--primary": this.variant === "primary",
3542
+ "alert--secondary": this.variant === "secondary",
3533
3543
  "alert--success": this.variant === "success",
3534
3544
  "alert--neutral": this.variant === "neutral",
3535
3545
  "alert--warning": this.variant === "warning",
@@ -11107,6 +11117,16 @@ const styles$E = css`
11107
11117
  color: var(--flow-ui-color-primary-500);
11108
11118
  }
11109
11119
 
11120
+ .tag--secondary {
11121
+ background-color: var(--flow-ui-color-secondary-50);
11122
+ border-color: var(--flow-ui-color-secondary-200);
11123
+ color: var(--flow-ui-color-primary-800);
11124
+ }
11125
+
11126
+ .tag--secondary:active > flow-ui-icon-button {
11127
+ color: var(--flow-ui-color-secondary-500);
11128
+ }
11129
+
11110
11130
  .tag--success {
11111
11131
  background-color: var(--flow-ui-color-success-50);
11112
11132
  border-color: var(--flow-ui-color-success-200);
@@ -11224,6 +11244,7 @@ class FlowUiTag extends FlowRdfElement {
11224
11244
  tag: true,
11225
11245
  // Types
11226
11246
  "tag--primary": this.variant === "primary",
11247
+ "tag--secondary": this.variant === "secondary",
11227
11248
  "tag--success": this.variant === "success",
11228
11249
  "tag--neutral": this.variant === "neutral",
11229
11250
  "tag--warning": this.variant === "warning",
@@ -12765,8 +12786,8 @@ const styles$A = css`
12765
12786
  ${componentStyles}
12766
12787
 
12767
12788
  :host {
12768
- --color: var(--flow-ui-panel-border-color);
12769
- --width: var(--flow-ui-panel-border-width);
12789
+ --color: var(--flow-ui-divider-color);
12790
+ --width: var(--flow-ui-divider-width);
12770
12791
  --spacing: var(--flow-ui-spacing-medium);
12771
12792
 
12772
12793
  /* Maintain divider width when used in flexbox layouts */
@@ -14658,6 +14679,7 @@ const styles$r = css`
14658
14679
  }
14659
14680
 
14660
14681
  .panel-header__title {
14682
+ font-weight: var(--flow-ui-panel-header-font-weight);
14661
14683
  text-overflow: ellipsis;
14662
14684
  overflow: hidden;
14663
14685
  white-space: nowrap;
@@ -14701,6 +14723,7 @@ class FlowUiPanelHeader extends FlowRdfElement {
14701
14723
  connectedCallback() {
14702
14724
  super.connectedCallback();
14703
14725
  this.closed = boolean(this.closed, true);
14726
+ this.fixed = boolean(this.fixed, true);
14704
14727
  }
14705
14728
  disconnectedCallback() {
14706
14729
  super.disconnectedCallback();
@@ -14809,12 +14832,16 @@ const styles$q = css`
14809
14832
  min-height: 0;
14810
14833
 
14811
14834
  --padding: var(--flow-ui-spacing-small);
14835
+ --background-color: var(--flow-ui-panel-background-color);
14836
+ --color: var(--flow-ui-panel-color);
14812
14837
  }
14813
14838
 
14814
14839
  .panel {
14815
14840
  height: 100%;
14816
14841
  display: flex;
14817
14842
  flex-direction: column;
14843
+ background-color: var(--background-color);
14844
+ color: var(--color);
14818
14845
  }
14819
14846
 
14820
14847
  /* Body */
@@ -19228,6 +19255,7 @@ const styles$g = css`
19228
19255
  :host {
19229
19256
  --divider-width: 2px;
19230
19257
  --divider-hit-area: 12px;
19258
+ --color: var(--flow-ui-divider-color);
19231
19259
 
19232
19260
  display: block;
19233
19261
  }
@@ -19236,7 +19264,7 @@ const styles$g = css`
19236
19264
  height: 100%;
19237
19265
  display: flex;
19238
19266
  position: relative;
19239
- background-color: var(--flow-ui-color-neutral-200);
19267
+ background-color: var(--color);
19240
19268
  color: var(--flow-ui-color-neutral-900);
19241
19269
  }
19242
19270
 
@@ -19257,7 +19285,8 @@ const styles$g = css`
19257
19285
  transform: scale(0);
19258
19286
  }
19259
19287
 
19260
- :host([dragging]) .divider-highlight, .divider:hover .divider-highlight {
19288
+ :host([dragging]) .divider-highlight,
19289
+ .divider:hover .divider-highlight {
19261
19290
  transform: scale(1);
19262
19291
  }
19263
19292
 
@@ -19287,7 +19316,6 @@ const styles$g = css`
19287
19316
  cursor: col-resize;
19288
19317
  }
19289
19318
 
19290
-
19291
19319
  :host(:not([vertical])) .divider::after {
19292
19320
  display: flex;
19293
19321
  content: '';
@@ -20866,9 +20894,12 @@ const styles$9 = css`
20866
20894
 
20867
20895
  :host {
20868
20896
  --indicator-color: var(--flow-ui-color-primary-500);
20869
- --track-color: var(--flow-ui-color-neutral-200);
20897
+ --track-color: var(--flow-ui-divider-color);
20870
20898
  --track-width: 2px;
20871
20899
 
20900
+ --background-color: var(--flow-ui-panel-background-color);
20901
+ --color: var(--flow-ui-panel-color);
20902
+
20872
20903
  display: block;
20873
20904
  }
20874
20905
 
@@ -20878,6 +20909,9 @@ const styles$9 = css`
20878
20909
  justify-content: start;
20879
20910
  border-radius: 0;
20880
20911
  overflow: hidden;
20912
+
20913
+ background-color: var(--background-color);
20914
+ color: var(--color);
20881
20915
  }
20882
20916
 
20883
20917
  /* Ensure nav is positioned when tab-group is placed in a split panel and the panel is closed */
@@ -20926,7 +20960,9 @@ const styles$9 = css`
20926
20960
 
20927
20961
  .tab-group__indicator {
20928
20962
  position: absolute;
20929
- transition: var(--flow-ui-transition-fast) translate ease, var(--flow-ui-transition-fast) width ease;
20963
+ transition:
20964
+ var(--flow-ui-transition-fast) translate ease,
20965
+ var(--flow-ui-transition-fast) width ease;
20930
20966
  }
20931
20967
 
20932
20968
  .tab-group__body-wrapper {
@@ -21633,6 +21669,8 @@ const styles$8 = css`
21633
21669
  min-height: 0;
21634
21670
 
21635
21671
  --padding: 0;
21672
+ --background-color: var(--flow-ui-panel-background-color);
21673
+ --color: var(--flow-ui-panel-color);
21636
21674
  }
21637
21675
 
21638
21676
  :host([active]) {
@@ -21643,6 +21681,8 @@ const styles$8 = css`
21643
21681
  height: 100%;
21644
21682
  display: flex;
21645
21683
  flex-direction: column;
21684
+ background-color: var(--background-color);
21685
+ color: var(--color);
21646
21686
  }
21647
21687
 
21648
21688
  /* Body */
@@ -21740,6 +21780,9 @@ const styles$7 = css`
21740
21780
 
21741
21781
  :host {
21742
21782
  display: inline-block;
21783
+ --color: var(--flow-ui-tab-color);
21784
+ --active-label-color: var(--flow-ui-tab-active-label-color);
21785
+ --active-icon-color: var(--flow-ui-tab-active-icon-color);
21743
21786
  }
21744
21787
 
21745
21788
  .tab {
@@ -21751,24 +21794,27 @@ const styles$7 = css`
21751
21794
  font-size: var(--flow-ui-tab-label-font-size);
21752
21795
  font-weight: var(--flow-ui-tab-label-font-weight);
21753
21796
  border-radius: var(--flow-ui-border-radius-medium);
21754
- color: var(--flow-ui-color-neutral-600);
21797
+ color: var(--flow-ui-tab-color);
21755
21798
  padding: var(--flow-ui-tab-padding);
21756
21799
  white-space: nowrap;
21757
21800
  user-select: none;
21758
21801
  cursor: pointer;
21759
- transition: var(--transition-speed) box-shadow, var(--transition-speed) color;
21802
+ transition:
21803
+ var(--transition-speed) box-shadow,
21804
+ var(--transition-speed) color;
21760
21805
  }
21761
21806
 
21762
- .tab:hover:not(.tab--disabled) {
21763
- color: var(--flow-ui-color-primary-500);
21807
+ /* Highlight icon only on hover */
21808
+ .tab:hover:not(.tab--disabled) .tab__icon {
21809
+ color: var(--flow-ui-tab-active-label-color);
21764
21810
  }
21765
21811
 
21766
21812
  .tab:focus {
21767
21813
  outline: none;
21768
21814
  }
21769
21815
 
21770
- .tab:focus-visible:not(.tab--disabled) {
21771
- color: var(--flow-ui-color-primary-500);
21816
+ .tab:focus-visible:not(.tab--disabled) .tab__icon {
21817
+ color: var(--flow-ui-tab-active-icon-color);
21772
21818
  }
21773
21819
 
21774
21820
  .tab:focus-visible {
@@ -21777,7 +21823,15 @@ const styles$7 = css`
21777
21823
  }
21778
21824
 
21779
21825
  .tab.tab--active:not(.tab--disabled) {
21780
- color: var(--flow-ui-color-primary-500);
21826
+ color: var(--flow-ui-active-label-color);
21827
+ }
21828
+
21829
+ .tab.tab--active:not(.tab--disabled) .tab__icon {
21830
+ color: var(--flow-ui-tab-active-icon-color);
21831
+ }
21832
+
21833
+ .tab.tab--active:not(.tab--disabled) .tab__label {
21834
+ color: var(--flow-ui-tab-active-label-color);
21781
21835
  }
21782
21836
 
21783
21837
  .tab.tab--closable {
@@ -22634,6 +22688,8 @@ const styles$5 = css`
22634
22688
  }
22635
22689
 
22636
22690
  .timer {
22691
+ /* Balance top spacing with VCR button spacing */
22692
+ padding-top: var(--flow-ui-spacing-x-small);
22637
22693
  min-width: fit-content;
22638
22694
  }
22639
22695
 
@@ -24710,7 +24766,7 @@ class FlowUiVisuallyHidden extends FlowRdfElement {
24710
24766
  }
24711
24767
  FlowUiVisuallyHidden.styles = styles;
24712
24768
 
24713
- function registerComponents() {
24769
+ async function registerComponents() {
24714
24770
  FlowUiAlert.define("flow-ui-alert");
24715
24771
  FlowUiAnimation.define("flow-ui-animation");
24716
24772
  FlowUiAvatar.define("flow-ui-avatar");
@@ -24776,9 +24832,77 @@ function registerComponents() {
24776
24832
  FlowUiTreeItem.define("flow-ui-tree-item");
24777
24833
  FlowUiTree.define("flow-ui-tree");
24778
24834
  FlowUiVisuallyHidden.define("flow-ui-visually-hidden");
24835
+ return Promise.all([
24836
+ window.customElements.whenDefined("flow-ui-alert"),
24837
+ window.customElements.whenDefined("flow-ui-animation"),
24838
+ window.customElements.whenDefined("flow-ui-avatar"),
24839
+ window.customElements.whenDefined("flow-ui-badge"),
24840
+ window.customElements.whenDefined("flow-ui-breadcrumb-item"),
24841
+ window.customElements.whenDefined("flow-ui-breadcrumb"),
24842
+ window.customElements.whenDefined("flow-ui-button-group"),
24843
+ window.customElements.whenDefined("flow-ui-button"),
24844
+ window.customElements.whenDefined("flow-ui-calendar"),
24845
+ window.customElements.whenDefined("flow-ui-card"),
24846
+ window.customElements.whenDefined("flow-ui-carousel-item"),
24847
+ window.customElements.whenDefined("flow-ui-carousel"),
24848
+ window.customElements.whenDefined("flow-ui-chart"),
24849
+ window.customElements.whenDefined("flow-ui-checkbox"),
24850
+ window.customElements.whenDefined("flow-ui-color-mapper"),
24851
+ window.customElements.whenDefined("flow-ui-color-picker"),
24852
+ window.customElements.whenDefined("flow-ui-color-stop"),
24853
+ window.customElements.whenDefined("flow-ui-date-time-picker"),
24854
+ window.customElements.whenDefined("flow-ui-details"),
24855
+ window.customElements.whenDefined("flow-ui-dialog"),
24856
+ window.customElements.whenDefined("flow-ui-divider"),
24857
+ window.customElements.whenDefined("flow-ui-drawer"),
24858
+ window.customElements.whenDefined("flow-ui-dropdown"),
24859
+ window.customElements.whenDefined("flow-ui-gauge"),
24860
+ window.customElements.whenDefined("flow-ui-icon-button"),
24861
+ window.customElements.whenDefined("flow-ui-icon"),
24862
+ window.customElements.whenDefined("flow-ui-input"),
24863
+ window.customElements.whenDefined("flow-ui-map"),
24864
+ window.customElements.whenDefined("flow-ui-menu-item"),
24865
+ window.customElements.whenDefined("flow-ui-menu-label"),
24866
+ window.customElements.whenDefined("flow-ui-menu"),
24867
+ window.customElements.whenDefined("flow-ui-mutation-observer"),
24868
+ window.customElements.whenDefined("flow-ui-option"),
24869
+ window.customElements.whenDefined("flow-ui-panel-header"),
24870
+ window.customElements.whenDefined("flow-ui-panel"),
24871
+ window.customElements.whenDefined("flow-ui-popup"),
24872
+ window.customElements.whenDefined("flow-ui-progress-bar"),
24873
+ window.customElements.whenDefined("flow-ui-progress-ring"),
24874
+ window.customElements.whenDefined("flow-ui-query-builder"),
24875
+ window.customElements.whenDefined("flow-ui-radio-group"),
24876
+ window.customElements.whenDefined("flow-ui-radio"),
24877
+ window.customElements.whenDefined("flow-ui-range"),
24878
+ window.customElements.whenDefined("flow-ui-resize-observer"),
24879
+ window.customElements.whenDefined("flow-ui-scroll-view"),
24880
+ window.customElements.whenDefined("flow-ui-select"),
24881
+ window.customElements.whenDefined("flow-ui-spinner"),
24882
+ window.customElements.whenDefined("flow-ui-split-view-divider"),
24883
+ window.customElements.whenDefined("flow-ui-split-view-pane"),
24884
+ window.customElements.whenDefined("flow-ui-split-view-toggle-button"),
24885
+ window.customElements.whenDefined("flow-ui-split-view"),
24886
+ window.customElements.whenDefined("flow-ui-stepper-panel"),
24887
+ window.customElements.whenDefined("flow-ui-stepper"),
24888
+ window.customElements.whenDefined("flow-ui-switch"),
24889
+ window.customElements.whenDefined("flow-ui-tab-group"),
24890
+ window.customElements.whenDefined("flow-ui-tab-panel"),
24891
+ window.customElements.whenDefined("flow-ui-tab"),
24892
+ window.customElements.whenDefined("flow-ui-tag"),
24893
+ window.customElements.whenDefined("flow-ui-textarea"),
24894
+ window.customElements.whenDefined("flow-ui-timer"),
24895
+ window.customElements.whenDefined("flow-ui-tool-button-group"),
24896
+ window.customElements.whenDefined("flow-ui-tool-button"),
24897
+ window.customElements.whenDefined("flow-ui-tooltip"),
24898
+ window.customElements.whenDefined("flow-ui-tree-item"),
24899
+ window.customElements.whenDefined("flow-ui-tree"),
24900
+ window.customElements.whenDefined("flow-ui-visually-hidden")
24901
+ ]).then(() => {
24902
+ });
24779
24903
  }
24780
24904
 
24781
- const version = "4.0.1";
24905
+ const version = "4.0.3";
24782
24906
 
24783
24907
  const CONSOLE_HIGHLIGHT_STYLE = `
24784
24908
  padding: 2px 4px;