@layerfi/components 0.1.65 → 0.1.66
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/esm/index.js +22 -8
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +22 -8
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4987,7 +4987,8 @@ var getAssignedValue = (bankTransaction) => {
|
|
|
4987
4987
|
// src/components/BankTransactionMobileList/BusinessCategories.tsx
|
|
4988
4988
|
var BusinessCategories = ({
|
|
4989
4989
|
select,
|
|
4990
|
-
selectedId
|
|
4990
|
+
selectedId,
|
|
4991
|
+
showTooltips
|
|
4991
4992
|
}) => {
|
|
4992
4993
|
const { categories } = useLayerContext();
|
|
4993
4994
|
const categoryOptions = flattenCategories(
|
|
@@ -5015,7 +5016,8 @@ var BusinessCategories = ({
|
|
|
5015
5016
|
{
|
|
5016
5017
|
options: optionsToShow,
|
|
5017
5018
|
onClick: onCategorySelect,
|
|
5018
|
-
selectedId
|
|
5019
|
+
selectedId,
|
|
5020
|
+
showDescriptions: showTooltips
|
|
5019
5021
|
}
|
|
5020
5022
|
));
|
|
5021
5023
|
};
|
|
@@ -5024,7 +5026,8 @@ var BusinessCategories = ({
|
|
|
5024
5026
|
import classNames24 from "classnames";
|
|
5025
5027
|
var CategorySelectDrawer = ({
|
|
5026
5028
|
onSelect,
|
|
5027
|
-
selected
|
|
5029
|
+
selected,
|
|
5030
|
+
showTooltips
|
|
5028
5031
|
}) => {
|
|
5029
5032
|
const { setContent, close } = useContext9(DrawerContext);
|
|
5030
5033
|
const onDrawerCategorySelect = (value) => {
|
|
@@ -5044,7 +5047,8 @@ var CategorySelectDrawer = ({
|
|
|
5044
5047
|
CategorySelectDrawerContent,
|
|
5045
5048
|
{
|
|
5046
5049
|
selected,
|
|
5047
|
-
onSelect: onDrawerCategorySelect
|
|
5050
|
+
onSelect: onDrawerCategorySelect,
|
|
5051
|
+
showTooltips: true
|
|
5048
5052
|
}
|
|
5049
5053
|
)
|
|
5050
5054
|
)
|
|
@@ -5061,7 +5065,8 @@ var CategorySelectDrawer = ({
|
|
|
5061
5065
|
};
|
|
5062
5066
|
var CategorySelectDrawerContent = ({
|
|
5063
5067
|
onSelect,
|
|
5064
|
-
selected
|
|
5068
|
+
selected,
|
|
5069
|
+
showTooltips
|
|
5065
5070
|
}) => /* @__PURE__ */ React70.createElement(
|
|
5066
5071
|
BusinessCategories,
|
|
5067
5072
|
{
|
|
@@ -5073,7 +5078,8 @@ var CategorySelectDrawerContent = ({
|
|
|
5073
5078
|
}
|
|
5074
5079
|
});
|
|
5075
5080
|
},
|
|
5076
|
-
selectedId: selected?.payload?.id
|
|
5081
|
+
selectedId: selected?.payload?.id,
|
|
5082
|
+
showTooltips
|
|
5077
5083
|
}
|
|
5078
5084
|
);
|
|
5079
5085
|
|
|
@@ -5246,7 +5252,14 @@ var CategorySelect = ({
|
|
|
5246
5252
|
const selected = value ? value : !excludeMatches && matchOptions?.length === 1 && matchOptions[0].options.length === 1 ? matchOptions[0].options[0] : void 0;
|
|
5247
5253
|
const placeholder = matchOptions?.length === 1 && matchOptions[0].options.length > 1 ? `${matchOptions[0].options.length} possible matches...` : "Categorize or match...";
|
|
5248
5254
|
if (asDrawer) {
|
|
5249
|
-
return /* @__PURE__ */ React71.createElement(
|
|
5255
|
+
return /* @__PURE__ */ React71.createElement(
|
|
5256
|
+
CategorySelectDrawer,
|
|
5257
|
+
{
|
|
5258
|
+
onSelect: onChange,
|
|
5259
|
+
selected: value,
|
|
5260
|
+
showTooltips
|
|
5261
|
+
}
|
|
5262
|
+
);
|
|
5250
5263
|
}
|
|
5251
5264
|
return /* @__PURE__ */ React71.createElement(
|
|
5252
5265
|
Select,
|
|
@@ -7182,7 +7195,8 @@ var BusinessForm = ({
|
|
|
7182
7195
|
BusinessCategories,
|
|
7183
7196
|
{
|
|
7184
7197
|
selectedId: selectedCategory?.id,
|
|
7185
|
-
select: onDrawerCategorySelect
|
|
7198
|
+
select: onDrawerCategorySelect,
|
|
7199
|
+
showTooltips
|
|
7186
7200
|
}
|
|
7187
7201
|
)
|
|
7188
7202
|
);
|