@algorithm-shift/design-system 1.3.101 → 1.3.103
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.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -524,14 +524,16 @@ var Typography = ({
|
|
|
524
524
|
className,
|
|
525
525
|
style,
|
|
526
526
|
tagName,
|
|
527
|
-
textContent
|
|
527
|
+
textContent,
|
|
528
|
+
onClick
|
|
528
529
|
}) => {
|
|
529
530
|
const Tag = tagName || "h1";
|
|
530
531
|
return React4.createElement(
|
|
531
532
|
Tag,
|
|
532
533
|
{
|
|
533
534
|
style,
|
|
534
|
-
className: cn(className, "pointer-events-auto")
|
|
535
|
+
className: cn(className, "pointer-events-auto"),
|
|
536
|
+
onClick
|
|
535
537
|
},
|
|
536
538
|
[
|
|
537
539
|
React4.createElement("span", {
|
|
@@ -1776,6 +1778,11 @@ function useLazyDropdown(config) {
|
|
|
1776
1778
|
const allDataRef = useRef4([]);
|
|
1777
1779
|
const configRef = useRef4(config);
|
|
1778
1780
|
const PAGE_SIZE = config.pageSize || 10;
|
|
1781
|
+
useEffect14(() => {
|
|
1782
|
+
setOptions([]);
|
|
1783
|
+
setPage(1);
|
|
1784
|
+
setHasMore(true);
|
|
1785
|
+
}, [config.apiUrl]);
|
|
1779
1786
|
const uniqueOptions = (items) => {
|
|
1780
1787
|
const seen = /* @__PURE__ */ new Set();
|
|
1781
1788
|
return items.filter((item) => {
|