@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/index.d.ts CHANGED
@@ -985,8 +985,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
985
985
  export interface BusinessCategoriesProps {
986
986
  select: (category: Option) => void;
987
987
  selectedId?: string;
988
+ showTooltips: boolean;
988
989
  }
989
- export const BusinessCategories: ({ select, selectedId, }: BusinessCategoriesProps) => React.JSX.Element;
990
+ export const BusinessCategories: ({ select, selectedId, showTooltips }: BusinessCategoriesProps) => React.JSX.Element;
990
991
 
991
992
  }
992
993
  declare module '@layerfi/components/components/BankTransactionMobileList/BusinessForm' {
@@ -1510,8 +1511,9 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelectDraw
1510
1511
  interface CategorySelectDrawerProps {
1511
1512
  onSelect: (value: CategoryOption) => void;
1512
1513
  selected?: CategoryOption;
1514
+ showTooltips: boolean;
1513
1515
  }
1514
- export const CategorySelectDrawer: ({ onSelect, selected, }: CategorySelectDrawerProps) => React.JSX.Element;
1516
+ export const CategorySelectDrawer: ({ onSelect, selected, showTooltips, }: CategorySelectDrawerProps) => React.JSX.Element;
1515
1517
  export {};
1516
1518
 
1517
1519
  }
package/dist/index.js CHANGED
@@ -5026,7 +5026,8 @@ var getAssignedValue = (bankTransaction) => {
5026
5026
  // src/components/BankTransactionMobileList/BusinessCategories.tsx
5027
5027
  var BusinessCategories = ({
5028
5028
  select,
5029
- selectedId
5029
+ selectedId,
5030
+ showTooltips
5030
5031
  }) => {
5031
5032
  const { categories } = useLayerContext();
5032
5033
  const categoryOptions = flattenCategories(
@@ -5054,7 +5055,8 @@ var BusinessCategories = ({
5054
5055
  {
5055
5056
  options: optionsToShow,
5056
5057
  onClick: onCategorySelect,
5057
- selectedId
5058
+ selectedId,
5059
+ showDescriptions: showTooltips
5058
5060
  }
5059
5061
  ));
5060
5062
  };
@@ -5063,7 +5065,8 @@ var BusinessCategories = ({
5063
5065
  var import_classnames24 = __toESM(require("classnames"));
5064
5066
  var CategorySelectDrawer = ({
5065
5067
  onSelect,
5066
- selected
5068
+ selected,
5069
+ showTooltips
5067
5070
  }) => {
5068
5071
  const { setContent, close } = (0, import_react57.useContext)(DrawerContext);
5069
5072
  const onDrawerCategorySelect = (value) => {
@@ -5083,7 +5086,8 @@ var CategorySelectDrawer = ({
5083
5086
  CategorySelectDrawerContent,
5084
5087
  {
5085
5088
  selected,
5086
- onSelect: onDrawerCategorySelect
5089
+ onSelect: onDrawerCategorySelect,
5090
+ showTooltips: true
5087
5091
  }
5088
5092
  )
5089
5093
  )
@@ -5100,7 +5104,8 @@ var CategorySelectDrawer = ({
5100
5104
  };
5101
5105
  var CategorySelectDrawerContent = ({
5102
5106
  onSelect,
5103
- selected
5107
+ selected,
5108
+ showTooltips
5104
5109
  }) => /* @__PURE__ */ import_react57.default.createElement(
5105
5110
  BusinessCategories,
5106
5111
  {
@@ -5112,7 +5117,8 @@ var CategorySelectDrawerContent = ({
5112
5117
  }
5113
5118
  });
5114
5119
  },
5115
- selectedId: selected?.payload?.id
5120
+ selectedId: selected?.payload?.id,
5121
+ showTooltips
5116
5122
  }
5117
5123
  );
5118
5124
 
@@ -5285,7 +5291,14 @@ var CategorySelect = ({
5285
5291
  const selected = value ? value : !excludeMatches && matchOptions?.length === 1 && matchOptions[0].options.length === 1 ? matchOptions[0].options[0] : void 0;
5286
5292
  const placeholder = matchOptions?.length === 1 && matchOptions[0].options.length > 1 ? `${matchOptions[0].options.length} possible matches...` : "Categorize or match...";
5287
5293
  if (asDrawer) {
5288
- return /* @__PURE__ */ import_react58.default.createElement(CategorySelectDrawer, { onSelect: onChange, selected: value });
5294
+ return /* @__PURE__ */ import_react58.default.createElement(
5295
+ CategorySelectDrawer,
5296
+ {
5297
+ onSelect: onChange,
5298
+ selected: value,
5299
+ showTooltips
5300
+ }
5301
+ );
5289
5302
  }
5290
5303
  return /* @__PURE__ */ import_react58.default.createElement(
5291
5304
  import_react_select.default,
@@ -7207,7 +7220,8 @@ var BusinessForm = ({
7207
7220
  BusinessCategories,
7208
7221
  {
7209
7222
  selectedId: selectedCategory?.id,
7210
- select: onDrawerCategorySelect
7223
+ select: onDrawerCategorySelect,
7224
+ showTooltips
7211
7225
  }
7212
7226
  )
7213
7227
  );