@ballistix.digital/react-components 0.4.72 → 0.4.74

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.esm.js CHANGED
@@ -2640,7 +2640,8 @@ var SelectMenuForm = function (props) {
2640
2640
  if (state === null) {
2641
2641
  onClear && onClear(name);
2642
2642
  }
2643
- }, [isTouched, name, onClear, state]);
2643
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2644
+ }, [state]);
2644
2645
  return (jsxs("div", __assign({ className: styles$1.container }, { children: [jsxs("div", __assign({ className: styles$1.head }, { children: [label && (jsx("label", __assign({ htmlFor: name, className: styles$1.label }, { children: label }))), !required && !isRequired && typeof label === 'string' && (jsx("span", __assign({ className: styles$1.hint }, { children: "Optional" }))), required && required({ isRequired: isRequired })] })), jsxs("div", __assign({ className: styles$1.container }, { children: [jsx(Select, { primaryColor: "primary",
2645
2646
  //
2646
2647
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.select, noOptionsMessage: (jsx("p", __assign({ className: styles$1.emptyState }, { children: (_a = placeholder === null || placeholder === void 0 ? void 0 : placeholder.emptyState) !== null && _a !== void 0 ? _a : 'No results found' }))), searchInputPlaceholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.searchInput,
@@ -2675,7 +2676,7 @@ var base = {
2675
2676
  menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
2676
2677
  list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
2677
2678
  listItem: '!w-full !list-none hover:bg-primary-500 hover:text-white !py-2 !px-2',
2678
- searchContainer: '!px-0 !py-0 !w-full !px-2 !py-2 border-b',
2679
+ searchContainer: '!w-full !px-2 !py-2 border-b',
2679
2680
  emptyState: 'w-full inline-flex items-start justify-start px-4',
2680
2681
  trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
2681
2682
  description: 'text-gray-400 text-xs mt-1',