@northlight/ui 2.36.4 → 2.36.6
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/es/northlight.d.ts +2 -2
- package/dist/es/northlight.js +1 -1
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +1 -1
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/es/northlight.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ interface Option<T extends string = string> {
|
|
|
129
129
|
interface SelectProps<T, K extends boolean> extends Omit<Props<T, K, GroupBase<T>>, 'onChange' | 'value' | 'isMulti'> {
|
|
130
130
|
/** Whatever is currently selected by the select will be controlled by value prop, if value is
|
|
131
131
|
* of type string then it will automatically pair it up with matching object from options list */
|
|
132
|
-
value?: K extends true ? T[] | string[] : T | string;
|
|
132
|
+
value?: K extends true ? T[] | string[] : T | string | null;
|
|
133
133
|
/** Take a look at the second argument, the event,
|
|
134
134
|
* for info as to which specific element was added */
|
|
135
135
|
onChange?: (option: K extends true ? MultiValue<T> : SingleValue<T>, event: ActionMeta<T>) => void;
|
|
@@ -295,7 +295,7 @@ declare const SelectField: <T extends Option<string>, K extends boolean = false>
|
|
|
295
295
|
onChange?: ((option: K extends true ? react_select_dist_declarations_src_types.MultiValue<T> | undefined : react_select_dist_declarations_src_types.SingleValue<T> | undefined, event: react_select.ActionMeta<T>) => void) | undefined;
|
|
296
296
|
} & React__default.RefAttributes<HTMLDivElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
297
297
|
|
|
298
|
-
declare const getMatchingValue: <T extends Option<string>, K extends boolean>(value: (K extends true ? string[] | T[] : string | T) | undefined, options: react_select.OptionsOrGroups<T, react_select.GroupBase<T>> | undefined) => T | T[] | undefined;
|
|
298
|
+
declare const getMatchingValue: <T extends Option<string>, K extends boolean>(value: (K extends true ? string[] | T[] : string | T | null) | undefined, options: react_select.OptionsOrGroups<T, react_select.GroupBase<T>> | undefined) => T | T[] | undefined;
|
|
299
299
|
|
|
300
300
|
interface TagsInputProps<T> extends Omit<SelectProps<T, true>, 'value' | 'formatCreateLabel' | 'isValidNewOption' | 'onAdd' | 'onRemove' | 'leftIcon' | 'icon' | 'customOption'> {
|
|
301
301
|
value?: MultiValue<T>;
|
package/dist/es/northlight.js
CHANGED
|
@@ -14762,7 +14762,7 @@ const ComboPicker = (_a) => {
|
|
|
14762
14762
|
)
|
|
14763
14763
|
)
|
|
14764
14764
|
})
|
|
14765
|
-
), isOpen && /* @__PURE__ */ React.createElement(Box, { position: "absolute", width: "100%" }, /* @__PURE__ */ React.createElement(
|
|
14765
|
+
), isOpen && /* @__PURE__ */ React.createElement(Box, { position: "absolute", width: "100%", top: 0 }, /* @__PURE__ */ React.createElement(
|
|
14766
14766
|
Select,
|
|
14767
14767
|
{
|
|
14768
14768
|
ref: selectRef,
|