@algorithm-shift/design-system 1.2.83 → 1.2.85
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/client.js +17 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +17 -3
- package/dist/client.mjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27854,11 +27854,16 @@ function LazySelectDropdown({
|
|
|
27854
27854
|
}
|
|
27855
27855
|
),
|
|
27856
27856
|
errorMessage && /* @__PURE__ */ jsx36("p", { className: "mt-1 text-xs text-red-500", children: errorMessage }),
|
|
27857
|
-
isOpen && !disabled && /* @__PURE__ */ jsx36(Portal_default, {
|
|
27857
|
+
isOpen && !disabled && /* @__PURE__ */ jsx36(Portal_default, { children: /* @__PURE__ */ jsx36(
|
|
27858
27858
|
"div",
|
|
27859
27859
|
{
|
|
27860
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
27860
27861
|
className: "fixed z-[9999] w-fit mt-1 bg-white border border-gray-300 rounded-lg shadow-lg max-h-60 overflow-y-auto",
|
|
27861
|
-
style: {
|
|
27862
|
+
style: {
|
|
27863
|
+
width: dropdownRef.current?.offsetWidth,
|
|
27864
|
+
top: dropdownRef.current ? dropdownRef.current.getBoundingClientRect().bottom + window.scrollY : 0,
|
|
27865
|
+
left: dropdownRef.current ? dropdownRef.current.getBoundingClientRect().left + window.scrollX : 0
|
|
27866
|
+
},
|
|
27862
27867
|
children: loading && lazyOptions.length === 0 ? /* @__PURE__ */ jsxs18("div", { className: "px-3 py-4 text-center text-gray-500 flex items-center justify-center gap-2 text-sm", children: [
|
|
27863
27868
|
/* @__PURE__ */ jsx36("div", { className: "animate-spin w-4 h-4 border-2 border-gray-300 border-t-blue-500 rounded-full" }),
|
|
27864
27869
|
"Loading..."
|
|
@@ -27866,7 +27871,9 @@ function LazySelectDropdown({
|
|
|
27866
27871
|
lazyOptions.map((option, index) => /* @__PURE__ */ jsx36(
|
|
27867
27872
|
"div",
|
|
27868
27873
|
{
|
|
27869
|
-
onClick: () =>
|
|
27874
|
+
onClick: () => {
|
|
27875
|
+
handleSelect(option.value);
|
|
27876
|
+
},
|
|
27870
27877
|
className: `px-3 py-2 hover:bg-blue-50 cursor-pointer text-sm ${option.value === value ? "bg-blue-100" : ""}`,
|
|
27871
27878
|
children: option.label
|
|
27872
27879
|
},
|
|
@@ -27917,6 +27924,8 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27917
27924
|
LazyDropdown_default,
|
|
27918
27925
|
{
|
|
27919
27926
|
...props,
|
|
27927
|
+
dataKey,
|
|
27928
|
+
dataLabel,
|
|
27920
27929
|
id: props.name || "lazy-select-field",
|
|
27921
27930
|
options: list,
|
|
27922
27931
|
onChange: handleChange,
|