@northlight/ui 2.24.0 → 2.24.2
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 +3 -4
- package/dist/es/northlight.js +5 -3
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +5 -3
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +2 -2
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +3 -3
package/dist/umd/northlight.cjs
CHANGED
|
@@ -12199,6 +12199,7 @@
|
|
|
12199
12199
|
"data-testid": testId,
|
|
12200
12200
|
customOption = null,
|
|
12201
12201
|
customTag = null,
|
|
12202
|
+
isClearable = false,
|
|
12202
12203
|
value,
|
|
12203
12204
|
icon
|
|
12204
12205
|
} = _b, rest = __objRest$l(_b, [
|
|
@@ -12212,6 +12213,7 @@
|
|
|
12212
12213
|
"data-testid",
|
|
12213
12214
|
"customOption",
|
|
12214
12215
|
"customTag",
|
|
12216
|
+
"isClearable",
|
|
12215
12217
|
"value",
|
|
12216
12218
|
"icon"
|
|
12217
12219
|
]);
|
|
@@ -12243,7 +12245,7 @@
|
|
|
12243
12245
|
useBasicStyles: true,
|
|
12244
12246
|
closeMenuOnSelect: !isMulti,
|
|
12245
12247
|
hideSelectedOptions: false,
|
|
12246
|
-
isClearable
|
|
12248
|
+
isClearable,
|
|
12247
12249
|
onChange: handleChange,
|
|
12248
12250
|
selectedOptionStyle: "check",
|
|
12249
12251
|
chakraStyles: customSelectStyles,
|
|
@@ -13774,7 +13776,7 @@
|
|
|
13774
13776
|
const customComponents = {
|
|
13775
13777
|
Option: (_a) => {
|
|
13776
13778
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
13777
|
-
return /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Option, __spreadValues$1({}, props), /* @__PURE__ */ React.createElement(React.Fragment, null, props.data.isCreation ? /* @__PURE__ */ React.createElement(react.Flex, { mr: 3, width: 1.5, mb: 0.5, justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React.createElement(
|
|
13779
|
+
return /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Option, __spreadValues$1({}, props), /* @__PURE__ */ React.createElement(React.Fragment, null, props.data.isCreation ? /* @__PURE__ */ React.createElement(react.Flex, { mr: 3, width: 1.5, mb: 0.5, justifyContent: "center", alignItems: "center" }, /* @__PURE__ */ React.createElement(Icon$1, { mb: "4px", as: icons.PlusSolid, color: "brand" })) : /* @__PURE__ */ React.createElement(react.Box, { mr: 3, width: 1.5 }), children));
|
|
13778
13780
|
}
|
|
13779
13781
|
};
|
|
13780
13782
|
|
|
@@ -13862,7 +13864,7 @@
|
|
|
13862
13864
|
const combinedOptions = [...standardOptions, ...createdOptions];
|
|
13863
13865
|
const customOptions = [
|
|
13864
13866
|
__spreadProps(__spreadValues({}, creationOption), {
|
|
13865
|
-
icon: /* @__PURE__ */ React.createElement(
|
|
13867
|
+
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.PlusSolid, color: "brand" })
|
|
13866
13868
|
}),
|
|
13867
13869
|
...combinedOptions
|
|
13868
13870
|
];
|