funda-ui 4.7.103 → 4.7.107

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.
Files changed (55) hide show
  1. package/Chatbox/index.js +8 -3
  2. package/Checkbox/index.js +10 -1
  3. package/Date/index.js +12 -2
  4. package/Input/index.js +6 -1
  5. package/LiveSearch/index.js +5 -0
  6. package/MultipleCheckboxes/index.js +27 -1
  7. package/NumberInput/index.js +6 -1
  8. package/Radio/index.js +22 -1
  9. package/RangeSlider/index.js +6 -1
  10. package/Stepper/index.css +7 -8
  11. package/Stepper/index.d.ts +1 -1
  12. package/Stepper/index.js +7 -1
  13. package/TagInput/index.js +10 -1
  14. package/Textarea/index.js +6 -1
  15. package/Toast/index.css +23 -75
  16. package/Toast/index.d.ts +3 -34
  17. package/Toast/index.js +652 -175
  18. package/lib/cjs/Chatbox/index.js +8 -3
  19. package/lib/cjs/Checkbox/index.js +10 -1
  20. package/lib/cjs/Date/index.js +12 -2
  21. package/lib/cjs/Input/index.js +6 -1
  22. package/lib/cjs/LiveSearch/index.js +5 -0
  23. package/lib/cjs/MultipleCheckboxes/index.js +27 -1
  24. package/lib/cjs/NumberInput/index.js +6 -1
  25. package/lib/cjs/Radio/index.js +22 -1
  26. package/lib/cjs/RangeSlider/index.js +6 -1
  27. package/lib/cjs/Stepper/index.d.ts +1 -1
  28. package/lib/cjs/Stepper/index.js +7 -1
  29. package/lib/cjs/TagInput/index.js +10 -1
  30. package/lib/cjs/Textarea/index.js +6 -1
  31. package/lib/cjs/Toast/index.d.ts +3 -34
  32. package/lib/cjs/Toast/index.js +652 -175
  33. package/lib/css/Stepper/index.css +7 -8
  34. package/lib/css/Toast/index.css +23 -75
  35. package/lib/esm/Chatbox/index.tsx +2 -2
  36. package/lib/esm/Checkbox/index.tsx +12 -1
  37. package/lib/esm/Date/index.tsx +8 -1
  38. package/lib/esm/Input/index.tsx +8 -1
  39. package/lib/esm/LiveSearch/index.tsx +7 -0
  40. package/lib/esm/MultipleCheckboxes/index.tsx +19 -1
  41. package/lib/esm/NumberInput/index.tsx +8 -1
  42. package/lib/esm/Radio/index.tsx +17 -1
  43. package/lib/esm/Stepper/index.scss +7 -8
  44. package/lib/esm/Stepper/index.tsx +2 -2
  45. package/lib/esm/TagInput/index.tsx +8 -1
  46. package/lib/esm/Textarea/index.tsx +8 -1
  47. package/lib/esm/Toast/Item.tsx +52 -11
  48. package/lib/esm/Toast/Toast.tsx +391 -0
  49. package/lib/esm/Toast/ToastContext.tsx +104 -0
  50. package/lib/esm/Toast/__toast.vanilla.js +422 -0
  51. package/lib/esm/Toast/index.scss +24 -96
  52. package/lib/esm/Toast/index.tsx +3 -374
  53. package/lib/esm/Toast/types.ts +60 -0
  54. package/lib/esm/Toast/useToast.tsx +72 -0
  55. package/package.json +1 -1
@@ -2252,13 +2252,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2252
2252
  control: function control() {
2253
2253
  return valRef.current;
2254
2254
  },
2255
+ getLatestVal: function getLatestVal() {
2256
+ return changedVal || '';
2257
+ },
2255
2258
  clear: function clear(cb) {
2256
2259
  setChangedVal('');
2257
2260
  cb === null || cb === void 0 ? void 0 : cb();
2261
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, '');
2258
2262
  },
2259
2263
  set: function set(value, cb) {
2260
2264
  setChangedVal("".concat(value));
2261
2265
  cb === null || cb === void 0 ? void 0 : cb();
2266
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, "".concat(value));
2262
2267
  },
2263
2268
  resetHeight: function resetHeight() {
2264
2269
  reset();
@@ -2270,7 +2275,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2270
2275
  }, 0);
2271
2276
  }
2272
2277
  };
2273
- }, [contentRef, reset]);
2278
+ }, [contentRef, reset, changedVal]);
2274
2279
  var propExist = function propExist(p) {
2275
2280
  return typeof p !== 'undefined' && p !== null && p !== '';
2276
2281
  };
@@ -5687,9 +5692,9 @@ var Chatbox = function Chatbox(props) {
5687
5692
  handleClickSafe();
5688
5693
  }
5689
5694
  },
5690
- onChange: function onChange(e) {
5695
+ onChange: function onChange(e, el, value) {
5691
5696
  var _args$onInputChange, _args16;
5692
- (_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, e.target.value);
5697
+ (_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, value);
5693
5698
  },
5694
5699
  onFocus: function onFocus() {
5695
5700
  setFocused(true);
@@ -548,16 +548,25 @@ var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
548
548
  control: function control() {
549
549
  return valRef.current;
550
550
  },
551
+ getLatestVal: function getLatestVal() {
552
+ return val;
553
+ },
551
554
  clear: function clear(cb) {
552
555
  setVal(false);
553
556
  cb === null || cb === void 0 ? void 0 : cb();
557
+ if (typeof onChange === 'function') {
558
+ onChange(null, false);
559
+ }
554
560
  },
555
561
  set: function set(value, cb) {
556
562
  setVal(value);
557
563
  cb === null || cb === void 0 ? void 0 : cb();
564
+ if (typeof onChange === 'function') {
565
+ onChange(null, value);
566
+ }
558
567
  }
559
568
  };
560
- }, [contentRef]);
569
+ }, [contentRef, val]);
561
570
  function handleFocus(event) {
562
571
  var _rootRef$current;
563
572
  (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
@@ -1755,13 +1755,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1755
1755
  control: function control() {
1756
1756
  return valRef.current;
1757
1757
  },
1758
+ getLatestVal: function getLatestVal() {
1759
+ return changedVal || '';
1760
+ },
1758
1761
  clear: function clear(cb) {
1759
1762
  setChangedVal('');
1760
1763
  cb === null || cb === void 0 ? void 0 : cb();
1764
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, '');
1761
1765
  },
1762
1766
  set: function set(value, cb) {
1763
1767
  setChangedVal("".concat(value));
1764
1768
  cb === null || cb === void 0 ? void 0 : cb();
1769
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, "".concat(value));
1765
1770
  },
1766
1771
  aiPredictReset: function aiPredictReset() {
1767
1772
  setTimeout(function () {
@@ -1770,7 +1775,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1770
1775
  }, 0);
1771
1776
  }
1772
1777
  };
1773
- }, [contentRef]);
1778
+ }, [contentRef, onComposition, changedVal]);
1774
1779
  var propExist = function propExist(p) {
1775
1780
  return typeof p !== 'undefined' && p !== null && p !== '';
1776
1781
  };
@@ -5141,9 +5146,13 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5141
5146
  control: function control() {
5142
5147
  return getAllSplittingInputs();
5143
5148
  },
5149
+ getLatestVal: function getLatestVal() {
5150
+ return !dateDefaultValueExist ? "" : valueResConverter(changedVal);
5151
+ },
5144
5152
  clear: function clear(cb) {
5145
5153
  clearAll();
5146
5154
  cb === null || cb === void 0 ? void 0 : cb();
5155
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(inputRef.current, '', false, getAllSplittingInputs());
5147
5156
  },
5148
5157
  blur: function blur(cb) {
5149
5158
  getAllSplittingInputs().forEach(function (el) {
@@ -5164,9 +5173,10 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
5164
5173
  setDateDefaultValueExist(defaultValueIsEmpty(value) ? false : true);
5165
5174
  initValue(curTargetVal);
5166
5175
  cb === null || cb === void 0 ? void 0 : cb();
5176
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(inputRef.current, value, (0,cjs_date.isValidDate)(value), getAllSplittingInputs());
5167
5177
  }
5168
5178
  };
5169
- }, [contentRef]);
5179
+ }, [contentRef, dateDefaultValueExist, changedVal]);
5170
5180
 
5171
5181
  // click outside
5172
5182
  useClickOutside_default()({
@@ -1201,13 +1201,18 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
1201
1201
  control: function control() {
1202
1202
  return valRef.current;
1203
1203
  },
1204
+ getLatestVal: function getLatestVal() {
1205
+ return changedVal || '';
1206
+ },
1204
1207
  clear: function clear(cb) {
1205
1208
  setChangedVal('');
1206
1209
  cb === null || cb === void 0 ? void 0 : cb();
1210
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, '');
1207
1211
  },
1208
1212
  set: function set(value, cb) {
1209
1213
  setChangedVal("".concat(value));
1210
1214
  cb === null || cb === void 0 ? void 0 : cb();
1215
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, "".concat(value));
1211
1216
  },
1212
1217
  aiPredictReset: function aiPredictReset() {
1213
1218
  setTimeout(function () {
@@ -1216,7 +1221,7 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
1216
1221
  }, 0);
1217
1222
  }
1218
1223
  };
1219
- }, [contentRef]);
1224
+ }, [contentRef, onComposition, changedVal]);
1220
1225
  var propExist = function propExist(p) {
1221
1226
  return typeof p !== 'undefined' && p !== null && p !== '';
1222
1227
  };
@@ -2895,13 +2895,18 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
2895
2895
  control: function control() {
2896
2896
  return inputRef.current;
2897
2897
  },
2898
+ getLatestVal: function getLatestVal() {
2899
+ return changedVal || '';
2900
+ },
2898
2901
  clear: function clear(cb) {
2899
2902
  setChangedVal('');
2900
2903
  cb === null || cb === void 0 ? void 0 : cb();
2904
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, [], '', listRef.current);
2901
2905
  },
2902
2906
  set: function set(value, cb) {
2903
2907
  setChangedVal("".concat(value));
2904
2908
  cb === null || cb === void 0 ? void 0 : cb();
2909
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, [], '', listRef.current);
2905
2910
  }
2906
2911
  };
2907
2912
  }, [contentRef]);
@@ -1298,16 +1298,42 @@ var MultipleCheckboxes = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forw
1298
1298
  control: function control() {
1299
1299
  return getAllControls();
1300
1300
  },
1301
+ getLatestVal: function getLatestVal() {
1302
+ return VALUE_BY_BRACKETS ? (0,funda_utils_dist_cjs_convert__WEBPACK_IMPORTED_MODULE_4__.convertArrToValByBrackets)(valRes(selectedItems)) : valRes(selectedItems).join(',');
1303
+ },
1301
1304
  clear: function clear(cb) {
1302
1305
  initDefaultValue('', dataInit);
1303
1306
  cb === null || cb === void 0 ? void 0 : cb();
1307
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(null, null, '', null, null, null, null);
1304
1308
  },
1305
1309
  set: function set(value, cb) {
1306
1310
  initDefaultValue(value, dataInit);
1307
1311
  cb === null || cb === void 0 ? void 0 : cb();
1312
+ if (Array.isArray(value)) {
1313
+ var _resDataCollection = value;
1314
+ var _value = value.map(function (k) {
1315
+ return k.value;
1316
+ });
1317
+ var _valueStr = VALUE_BY_BRACKETS ? value.map(function (k) {
1318
+ return "[".concat(k.value, "]");
1319
+ }).join('') : value.map(function (k) {
1320
+ return k.value;
1321
+ }).join(',');
1322
+ var _label = value.map(function (k) {
1323
+ return k.label;
1324
+ });
1325
+ var _labelStr = VALUE_BY_BRACKETS ? value.map(function (k) {
1326
+ return "[".concat(k.label, "]");
1327
+ }).join('') : value.map(function (k) {
1328
+ return k.label;
1329
+ }).join(',');
1330
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(null, _value, _valueStr, _label, _labelStr, null, _resDataCollection);
1331
+ } else {
1332
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(null, null, value, null, null, null, null);
1333
+ }
1308
1334
  }
1309
1335
  };
1310
- }, [dataInit, contentRef]);
1336
+ }, [dataInit, contentRef, selectedItems]);
1311
1337
  function handleCheckboxChange(itemKey) {
1312
1338
  // first, make a copy of the original set rather than mutating the original
1313
1339
  var newSelectedItems = new Set(selectedItems);
@@ -937,13 +937,18 @@ var NumberInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
937
937
  control: function control() {
938
938
  return valRef.current;
939
939
  },
940
+ getLatestVal: function getLatestVal() {
941
+ return changedVal || '';
942
+ },
940
943
  clear: function clear(cb) {
941
944
  setChangedVal('');
942
945
  cb === null || cb === void 0 ? void 0 : cb();
946
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, Number(''));
943
947
  },
944
948
  set: function set(value, cb) {
945
949
  setChangedVal("".concat(value));
946
950
  cb === null || cb === void 0 ? void 0 : cb();
951
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, Number(formatValue("".concat(value))));
947
952
  },
948
953
  increment: function increment(cb) {
949
954
  handleIncrement(null);
@@ -954,7 +959,7 @@ var NumberInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
954
959
  cb === null || cb === void 0 ? void 0 : cb();
955
960
  }
956
961
  };
957
- }, [contentRef]);
962
+ }, [contentRef, changedVal]);
958
963
  var propExist = function propExist(p) {
959
964
  return typeof p !== 'undefined' && p !== null && p !== '';
960
965
  };
@@ -977,16 +977,37 @@ var Radio = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
977
977
  control: function control() {
978
978
  return getAllControls();
979
979
  },
980
+ getLatestVal: function getLatestVal() {
981
+ return controlValue || '';
982
+ },
980
983
  clear: function clear(cb) {
981
984
  setControlValue('');
982
985
  cb === null || cb === void 0 ? void 0 : cb();
986
+ if (typeof onChange === 'function') {
987
+ var curData = optionsFlat(dataInit).find(function (v) {
988
+ return v.value == value;
989
+ });
990
+ var currentIndex = optionsFlat(dataInit).findIndex(function (v) {
991
+ return v.value == value;
992
+ });
993
+ onChange(null, '', null, null);
994
+ }
983
995
  },
984
996
  set: function set(value, cb) {
985
997
  setControlValue("".concat(value));
986
998
  cb === null || cb === void 0 ? void 0 : cb();
999
+ if (typeof onChange === 'function') {
1000
+ var curData = optionsFlat(dataInit).find(function (v) {
1001
+ return v.value == value;
1002
+ });
1003
+ var currentIndex = optionsFlat(dataInit).findIndex(function (v) {
1004
+ return v.value == value;
1005
+ });
1006
+ onChange(null, "".concat(value), curData, currentIndex);
1007
+ }
987
1008
  }
988
1009
  };
989
- }, [dataInit, contentRef]);
1010
+ }, [dataInit, contentRef, controlValue]);
990
1011
  function stringlineToHump(str) {
991
1012
  if (typeof str === 'string' && str.length > 0) {
992
1013
  var re = /-(\w)/g;
@@ -1721,13 +1721,18 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1721
1721
  control: function control() {
1722
1722
  return valRef.current;
1723
1723
  },
1724
+ getLatestVal: function getLatestVal() {
1725
+ return changedVal || '';
1726
+ },
1724
1727
  clear: function clear(cb) {
1725
1728
  setChangedVal('');
1726
1729
  cb === null || cb === void 0 ? void 0 : cb();
1730
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, '');
1727
1731
  },
1728
1732
  set: function set(value, cb) {
1729
1733
  setChangedVal("".concat(value));
1730
1734
  cb === null || cb === void 0 ? void 0 : cb();
1735
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, onComposition, valRef.current, "".concat(value));
1731
1736
  },
1732
1737
  aiPredictReset: function aiPredictReset() {
1733
1738
  setTimeout(function () {
@@ -1736,7 +1741,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1736
1741
  }, 0);
1737
1742
  }
1738
1743
  };
1739
- }, [contentRef]);
1744
+ }, [contentRef, onComposition, changedVal]);
1740
1745
  var propExist = function propExist(p) {
1741
1746
  return typeof p !== 'undefined' && p !== null && p !== '';
1742
1747
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  interface StepperPanelProps {
3
- header: React.ReactNode;
3
+ header?: React.ReactNode;
4
4
  children?: React.ReactNode;
5
5
  style?: React.CSSProperties;
6
6
  }
@@ -341,7 +341,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
341
341
 
342
342
 
343
343
  var StepperPanel = function StepperPanel(props) {
344
- var header = props.header,
344
+ var _props$header = props.header,
345
+ header = _props$header === void 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
346
+ width: "1rem",
347
+ height: "1rem"
348
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", {
349
+ fill: "none"
350
+ }))) : _props$header,
345
351
  children = props.children,
346
352
  style = props.style;
347
353
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
@@ -903,16 +903,25 @@ var TagInput = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
903
903
  control: function control() {
904
904
  return valRef.current;
905
905
  },
906
+ getLatestVal: function getLatestVal() {
907
+ return VALUE_BY_BRACKETS ? (0,funda_utils_dist_cjs_convert__WEBPACK_IMPORTED_MODULE_3__.convertArrToValByBrackets)(items.map(function (item) {
908
+ return item.content;
909
+ })) : items.map(function (item) {
910
+ return item.content;
911
+ }).join(',');
912
+ },
906
913
  clear: function clear(cb) {
907
914
  initDefaultValue('');
908
915
  cb === null || cb === void 0 ? void 0 : cb();
916
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, items, '');
909
917
  },
910
918
  set: function set(value, cb) {
911
919
  initDefaultValue("".concat(value));
912
920
  cb === null || cb === void 0 ? void 0 : cb();
921
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, items, "".concat(value));
913
922
  }
914
923
  };
915
- }, [contentRef]);
924
+ }, [contentRef, items]);
916
925
  function initDefaultValue(defaultValue) {
917
926
  // change the value to trigger component rendering
918
927
  if (typeof defaultValue === 'undefined' || defaultValue === '') {
@@ -1531,13 +1531,18 @@ var Textarea = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
1531
1531
  control: function control() {
1532
1532
  return valRef.current;
1533
1533
  },
1534
+ getLatestVal: function getLatestVal() {
1535
+ return changedVal || '';
1536
+ },
1534
1537
  clear: function clear(cb) {
1535
1538
  setChangedVal('');
1536
1539
  cb === null || cb === void 0 ? void 0 : cb();
1540
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, '');
1537
1541
  },
1538
1542
  set: function set(value, cb) {
1539
1543
  setChangedVal("".concat(value));
1540
1544
  cb === null || cb === void 0 ? void 0 : cb();
1545
+ onChange === null || onChange === void 0 ? void 0 : onChange(null, valRef.current, "".concat(value));
1541
1546
  },
1542
1547
  resetHeight: function resetHeight() {
1543
1548
  reset();
@@ -1549,7 +1554,7 @@ var Textarea = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
1549
1554
  }, 0);
1550
1555
  }
1551
1556
  };
1552
- }, [contentRef, reset]);
1557
+ }, [contentRef, reset, changedVal]);
1553
1558
  var propExist = function propExist(p) {
1554
1559
  return typeof p !== 'undefined' && p !== null && p !== '';
1555
1560
  };
@@ -1,34 +1,3 @@
1
- /// <reference types="react" />
2
- export declare type ToastProps = {
3
- /** The class name of the toast wrapper. */
4
- wrapperClassName?: string;
5
- /** Specify data of toasts as a JSON string format. */
6
- data: any[any];
7
- /** Automatically hide multiple items */
8
- autoHideMultiple?: boolean;
9
- /** The direction of the toast. */
10
- direction?: string;
11
- /** Set an automatic closing time, multiple items will be accumulated in order.
12
- * Amount of time measured in milliseconds. If false or without this attribute, Auto-Close will be disabled.
13
- */
14
- autoCloseTime?: boolean | number;
15
- /** You can not close pop-win when it is enabled */
16
- lock?: boolean;
17
- /** Whether to use cascading styles */
18
- cascading?: boolean;
19
- /** Self-defined class name for body*/
20
- schemeBody?: string;
21
- /** Self-defined class name for header */
22
- schemeHeader?: string;
23
- /** Set the color of the close button */
24
- closeBtnColor?: string;
25
- /** Disable the close button. */
26
- closeDisabled?: boolean;
27
- /** */
28
- async?: boolean;
29
- /** -- */
30
- id?: string;
31
- onClose?: (e: HTMLDivElement, currentIndex: number, data: HTMLDivElement[]) => void;
32
- };
33
- declare const Toast: (props: ToastProps) => JSX.Element;
34
- export default Toast;
1
+ export { useToast } from './useToast';
2
+ export { ToastProvider } from './ToastContext';
3
+ export type { ToastOptions } from './types';