@northlight/ui 2.24.6 → 2.25.1

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.
@@ -4182,6 +4182,12 @@ interface CreatableSelectDropdownProps<T extends string = string> {
4182
4182
  * Value of the initially selected option.
4183
4183
  */
4184
4184
  initialValue?: T;
4185
+ /**
4186
+ *
4187
+ Default placement of the menu in relation to the control. 'auto'
4188
+ will flip when there isn't enough space below the control. Defaults to "bottom".
4189
+ */
4190
+ menuPlacement?: 'top' | 'bottom' | 'auto';
4185
4191
  }
4186
4192
 
4187
4193
  /**
@@ -4252,7 +4258,7 @@ interface CreatableSelectDropdownProps<T extends string = string> {
4252
4258
  * }
4253
4259
  * ?)
4254
4260
  */
4255
- declare const CreatableSelectDropdown: <T extends string = string>({ standardOptions, initialPlaceholder, addOptionPlaceholder, creationOption, onOptionChange, width, variant, initialValue, }: CreatableSelectDropdownProps<T>) => JSX.Element;
4261
+ declare const CreatableSelectDropdown: <T extends string = string>({ standardOptions, initialPlaceholder, addOptionPlaceholder, creationOption, onOptionChange, width, variant, initialValue, menuPlacement, }: CreatableSelectDropdownProps<T>) => JSX.Element;
4256
4262
 
4257
4263
  declare const useDebounce: <T>(value: T, delay: number) => T;
4258
4264
 
@@ -12434,7 +12434,11 @@ const BaseSelectField = (_a, ref) => {
12434
12434
  );
12435
12435
  onChangeCallback(values, event);
12436
12436
  },
12437
- value: value ? options == null ? void 0 : options.flatMap((inner) => inner.options ? inner.options : inner).filter((option) => value.includes(option.value)) : null
12437
+ value: value ? options == null ? void 0 : options.flatMap(
12438
+ (inner) => inner.options ? inner.options : inner
12439
+ ).filter(
12440
+ (option) => isMulti ? value.includes(option.value) : equals(value, option.value)
12441
+ ) : null
12438
12442
  }, rest)
12439
12443
  )
12440
12444
  ), /* @__PURE__ */ React.createElement(
@@ -13899,7 +13903,8 @@ const CreatableSelectDropdown = ({
13899
13903
  onOptionChange,
13900
13904
  width = "100%",
13901
13905
  variant = "outline",
13902
- initialValue
13906
+ initialValue,
13907
+ menuPlacement = "bottom"
13903
13908
  }) => {
13904
13909
  const initialSelectedOption = useMemo(
13905
13910
  () => {
@@ -13972,6 +13977,7 @@ const CreatableSelectDropdown = ({
13972
13977
  return /* @__PURE__ */ React.createElement(Box, { ref }, /* @__PURE__ */ React.createElement(
13973
13978
  CreatableSelect,
13974
13979
  {
13980
+ menuPlacement,
13975
13981
  chakraStyles: __spreadProps(__spreadValues({}, customSelectStyles), {
13976
13982
  container: (provided) => __spreadProps(__spreadValues({}, provided), {
13977
13983
  width