@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 +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2650,7 +2650,8 @@ var SelectMenuForm = function (props) {
|
|
|
2650
2650
|
if (state === null) {
|
|
2651
2651
|
onClear && onClear(name);
|
|
2652
2652
|
}
|
|
2653
|
-
|
|
2653
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2654
|
+
}, [state]);
|
|
2654
2655
|
return (jsxRuntime.jsxs("div", __assign({ className: styles$1.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: styles$1.head }, { children: [label && (jsxRuntime.jsx("label", __assign({ htmlFor: name, className: styles$1.label }, { children: label }))), !required && !isRequired && typeof label === 'string' && (jsxRuntime.jsx("span", __assign({ className: styles$1.hint }, { children: "Optional" }))), required && required({ isRequired: isRequired })] })), jsxRuntime.jsxs("div", __assign({ className: styles$1.container }, { children: [jsxRuntime.jsx(Select, { primaryColor: "primary",
|
|
2655
2656
|
//
|
|
2656
2657
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.select, noOptionsMessage: (jsxRuntime.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,
|
|
@@ -2685,7 +2686,7 @@ var base = {
|
|
|
2685
2686
|
menu: '!px-0 !py-0 !w-full rounded-md overflow-hidden border !mt-1 absolute bg-white',
|
|
2686
2687
|
list: '!px-0 !w-full [&>*]:px-0 max-h-56 overflow-scroll !py-1',
|
|
2687
2688
|
listItem: '!w-full !list-none hover:bg-primary-500 hover:text-white !py-2 !px-2',
|
|
2688
|
-
searchContainer: '!
|
|
2689
|
+
searchContainer: '!w-full !px-2 !py-2 border-b',
|
|
2689
2690
|
emptyState: 'w-full inline-flex items-start justify-start px-4',
|
|
2690
2691
|
trailing: 'pointer-events-none absolute inset-y-0 right-0 flex items-center',
|
|
2691
2692
|
description: 'text-gray-400 text-xs mt-1',
|