@turquoisehealth/pit-viper 2.211.2 → 2.211.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.
@@ -25,6 +25,12 @@ export interface PvSelectButtonProps<T = unknown> {
25
25
  prefixLabel?: string;
26
26
  /** Text label on the trigger button; updates to the selected option's text when an item is chosen */
27
27
  label?: string;
28
+ /**
29
+ * Keep the trigger showing `label` even after an option is selected, instead of
30
+ * swapping to the selected option's text. Use when the label is a fixed title
31
+ * (e.g. a column name) and the current selection is surfaced only inside the dropdown.
32
+ */
33
+ staticLabel?: boolean;
28
34
  /** Hide the search input inside the dropdown */
29
35
  disableSearchInput?: boolean;
30
36
  /** Placeholder text for the search input */
@@ -4121,6 +4121,7 @@ var Li = {
4121
4121
  popoverCssProperties: {},
4122
4122
  prefixLabel: {},
4123
4123
  label: { default: "Select an option" },
4124
+ staticLabel: { type: Boolean },
4124
4125
  disableSearchInput: {
4125
4126
  type: Boolean,
4126
4127
  default: !1
@@ -4169,7 +4170,7 @@ var Li = {
4169
4170
  W(f, (e) => {
4170
4171
  d(e ? "dropdown-open" : "dropdown-closed");
4171
4172
  });
4172
- let g = r(() => p.value && p.value.text ? p.value.text : n.label), v = r(() => {
4173
+ let g = r(() => !n.staticLabel && p.value && p.value.text ? p.value.text : n.label), v = r(() => {
4173
4174
  if (p.value && p.value.icon) return p.value.icon;
4174
4175
  }), y = r(() => {
4175
4176
  if (p.value && p.value.companyName) return p.value.companyName;