@algorithm-shift/design-system 1.3.102 → 1.3.104

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.mjs CHANGED
@@ -885,7 +885,7 @@ var TextInput = ({ className, style, ...props }) => {
885
885
  const isAutocomplete = props.isAutocomplete ?? false;
886
886
  useEffect4(() => {
887
887
  if (props.value !== void 0) {
888
- const e = { target: { value: props.value } };
888
+ const e = { target: { value: props.value }, type: "change" };
889
889
  handleChange?.(e);
890
890
  }
891
891
  }, []);
@@ -935,7 +935,7 @@ var NumberInput = ({ className, style, ...props }) => {
935
935
  const isAutocomplete = props.isAutocomplete ?? false;
936
936
  useEffect5(() => {
937
937
  if (props.value !== void 0) {
938
- const e = { target: { value: props.value } };
938
+ const e = { target: { value: props.value }, type: "change" };
939
939
  handleChange?.(e);
940
940
  }
941
941
  }, []);
@@ -985,7 +985,7 @@ var EmailInput = ({ className, style, ...props }) => {
985
985
  const isAutocomplete = props.isAutocomplete ?? false;
986
986
  useEffect6(() => {
987
987
  if (props.value !== void 0) {
988
- const e = { target: { value: props.value } };
988
+ const e = { target: { value: props.value }, type: "change" };
989
989
  handleChange?.(e);
990
990
  }
991
991
  }, []);
@@ -1035,7 +1035,7 @@ var PasswordInput = ({ className, style, ...props }) => {
1035
1035
  const isAutocomplete = props.isAutocomplete ?? false;
1036
1036
  useEffect7(() => {
1037
1037
  if (props.value !== void 0) {
1038
- const e = { target: { value: props.value } };
1038
+ const e = { target: { value: props.value }, type: "change" };
1039
1039
  handleChange?.(e);
1040
1040
  }
1041
1041
  }, []);
@@ -1103,7 +1103,7 @@ var Textarea2 = ({ className, style, ...props }) => {
1103
1103
  const isAutocomplete = props.isAutocomplete ?? false;
1104
1104
  useEffect8(() => {
1105
1105
  if (props.value !== void 0) {
1106
- const e = { target: { value: props.value } };
1106
+ const e = { target: { value: props.value }, type: "change" };
1107
1107
  handleChange?.(e);
1108
1108
  }
1109
1109
  }, []);
@@ -1145,7 +1145,7 @@ var UrlInput = ({ className, style, ...props }) => {
1145
1145
  const isAutocomplete = props.isAutocomplete ?? false;
1146
1146
  useEffect9(() => {
1147
1147
  if (props.value !== void 0) {
1148
- const e = { target: { value: props.value } };
1148
+ const e = { target: { value: props.value }, type: "change" };
1149
1149
  handleChange?.(e);
1150
1150
  }
1151
1151
  }, []);
@@ -1778,6 +1778,11 @@ function useLazyDropdown(config) {
1778
1778
  const allDataRef = useRef4([]);
1779
1779
  const configRef = useRef4(config);
1780
1780
  const PAGE_SIZE = config.pageSize || 10;
1781
+ useEffect14(() => {
1782
+ setOptions([]);
1783
+ setPage(1);
1784
+ setHasMore(true);
1785
+ }, [config.apiUrl]);
1781
1786
  const uniqueOptions = (items) => {
1782
1787
  const seen = /* @__PURE__ */ new Set();
1783
1788
  return items.filter((item) => {
@@ -2408,7 +2413,7 @@ var SearchInput = ({ className, style, ...props }) => {
2408
2413
  const isAutocomplete = props.isAutocomplete ?? false;
2409
2414
  useEffect19(() => {
2410
2415
  if (props.value !== void 0) {
2411
- const e = { target: { value: props.value } };
2416
+ const e = { target: { value: props.value }, type: "change" };
2412
2417
  handleChange?.(e);
2413
2418
  }
2414
2419
  }, []);
@@ -2454,7 +2459,7 @@ var FileInput = ({ className, style, ...props }) => {
2454
2459
  const placeholder = props.placeholder ?? "Placeholder text";
2455
2460
  useEffect20(() => {
2456
2461
  if (props.value !== void 0) {
2457
- const e = { target: { value: props.value } };
2462
+ const e = { target: { value: props.value }, type: "change" };
2458
2463
  handleChange?.(e);
2459
2464
  }
2460
2465
  }, []);
@@ -3115,7 +3120,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
3115
3120
  const isAutocomplete = props.isAutocomplete ?? false;
3116
3121
  useEffect24(() => {
3117
3122
  if (props.value !== void 0) {
3118
- const e = { target: { value: props.value } };
3123
+ const e = { target: { value: props.value }, type: "change" };
3119
3124
  handleChange?.(e);
3120
3125
  }
3121
3126
  }, []);