@jsenv/navi 0.29.105 → 0.29.106

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.
@@ -65012,7 +65012,7 @@ const PickerButton = props => {
65012
65012
  });
65013
65013
  e.preventDefault();
65014
65014
  }
65015
- }), variant === "icon" || variant === "headless" || ui === "default" ? null : jsx(Text, {
65015
+ }), variant === "headless" || ui === "default" ? null : jsx(Text, {
65016
65016
  className: "navi_picker_value",
65017
65017
  "navi-placeholder": uiStateHoldsNothing(value) ? "" : undefined,
65018
65018
  maxLines: maxLines,
@@ -65025,11 +65025,20 @@ const PickerButton = props => {
65025
65025
  },
65026
65026
  children: jsx(MaxLinesContext.Provider, {
65027
65027
  value: maxLines,
65028
- children: ui === undefined ? jsx(PickerDefaultUI, {}) : ui
65028
+ children: ui === undefined ? variant === "icon" ?
65029
+ // An icon picker draws no value, so there is no slot
65030
+ // beside it either — the icon that would have sat in
65031
+ // that slot IS the trigger, and a caller's own `ui`
65032
+ // replaces it like any other.
65033
+ jsx(Icon, {
65034
+ size: rightSlotIconSize,
65035
+ lineOverflow: "allow",
65036
+ children: rightSlotIcon === undefined ? jsx(ChevronDownSvg$1, {}) : rightSlotIcon
65037
+ }) : jsx(PickerDefaultUI, {}) : ui
65029
65038
  })
65030
65039
  })
65031
65040
  })
65032
- }), variant === "headless" || ui === "default" ? null : jsx("span", {
65041
+ }), variant === "icon" || variant === "headless" || ui === "default" ? null : jsx("span", {
65033
65042
  className: "navi_picker_right_slot",
65034
65043
  children: jsx(PickerOwnContent, {
65035
65044
  children: clearable && interactive && value !== undefined && value !== "" ? jsx(Button, {