@helpdice/ui 2.0.9 → 2.1.3

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 (64) hide show
  1. package/dist/AutoComplete/auto-complete.d.ts +1 -1
  2. package/dist/AutoComplete/index.js +1 -1
  3. package/dist/ButtonDropdown/index.js +2 -1
  4. package/dist/Carousal/component/Indicator.d.ts +1 -0
  5. package/dist/Carousal/component/Thumbs.d.ts +1 -1
  6. package/dist/Carousal/component/index.d.ts +1 -1
  7. package/dist/Carousal/component/types.d.ts +4 -3
  8. package/dist/Carousal/index.js +88 -38
  9. package/dist/Form/types.d.ts +2 -2
  10. package/dist/Grid/grid-container.d.ts +14 -0
  11. package/dist/Grid/grid.d.ts +14 -0
  12. package/dist/Input/index.js +1 -1
  13. package/dist/Popover/index.js +1 -1
  14. package/dist/Rating/rating.d.ts +1 -1
  15. package/dist/Select/index.js +6 -4
  16. package/dist/Table/index.js +8 -6
  17. package/dist/Table/table-types.d.ts +1 -1
  18. package/dist/Text/child.d.ts +1 -1
  19. package/dist/Textarea/index.js +1 -1
  20. package/dist/Tooltip/index.js +1 -1
  21. package/dist/Tree/index.js +3 -1
  22. package/dist/Tree/tree-help.d.ts +1 -1
  23. package/dist/index.d.ts +2 -0
  24. package/dist/index.js +250 -61
  25. package/dist/use-toasts/helpers.d.ts +17 -0
  26. package/dist/use-toasts/index.d.ts +3 -0
  27. package/dist/use-toasts/index.js +204 -0
  28. package/dist/use-toasts/use-toast.d.ts +40 -0
  29. package/dist/utils/use-drag.d.ts +1 -1
  30. package/dist/utils/use-hd-ui-context.d.ts +16 -0
  31. package/esm/AutoComplete/auto-complete.d.ts +1 -1
  32. package/esm/Carousal/component/Indicator.d.ts +1 -0
  33. package/esm/Carousal/component/Indicator.js +56 -13
  34. package/esm/Carousal/component/Thumbs.d.ts +1 -1
  35. package/esm/Carousal/component/Thumbs.js +3 -3
  36. package/esm/Carousal/component/index.d.ts +1 -1
  37. package/esm/Carousal/component/index.js +29 -22
  38. package/esm/Carousal/component/types.d.ts +4 -3
  39. package/esm/Carousal/main.js +42 -59
  40. package/esm/Form/types.d.ts +2 -2
  41. package/esm/Grid/grid-container.d.ts +14 -0
  42. package/esm/Grid/grid.d.ts +14 -0
  43. package/esm/Rating/rating.d.ts +1 -1
  44. package/esm/Select/select.js +4 -3
  45. package/esm/Table/table-types.d.ts +1 -1
  46. package/esm/Text/child.d.ts +1 -1
  47. package/esm/Textarea/textarea.js +1 -1
  48. package/esm/Tooltip/tooltip.js +1 -1
  49. package/esm/Tree/tree-help.d.ts +1 -1
  50. package/esm/Tree/tree-help.js +3 -1
  51. package/esm/index.d.ts +2 -0
  52. package/esm/index.js +2 -1
  53. package/esm/use-toasts/helpers.d.ts +17 -0
  54. package/esm/use-toasts/helpers.js +69 -0
  55. package/esm/use-toasts/index.d.ts +3 -0
  56. package/esm/use-toasts/index.js +2 -0
  57. package/esm/use-toasts/toast-container.js +118 -0
  58. package/esm/use-toasts/toast-item.js +42 -0
  59. package/esm/use-toasts/use-toast.d.ts +40 -0
  60. package/esm/use-toasts/use-toast.js +103 -0
  61. package/esm/utils/collections.js +2 -1
  62. package/esm/utils/use-drag.d.ts +1 -1
  63. package/esm/utils/use-hd-ui-context.d.ts +16 -0
  64. package/package.json +17 -15
package/dist/index.js CHANGED
@@ -1132,7 +1132,8 @@ var pickChild = function pickChild(children, targetChild) {
1132
1132
  var pickChildByProps = function pickChildByProps(children, key, value) {
1133
1133
  var target = [];
1134
1134
  var isArray = Array.isArray(value);
1135
- var withoutPropChildren = React.Children.map(children, function (item) {
1135
+ var withoutPropChildren = React.Children.map(children, function (_item) {
1136
+ var item = _item;
1136
1137
  if (! /*#__PURE__*/React.isValidElement(item)) return null;
1137
1138
  if (!item.props) return item;
1138
1139
  if (isArray) {
@@ -1583,7 +1584,7 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1583
1584
  var textareaRef = React.useRef(null);
1584
1585
  React.useImperativeHandle(ref, function () {
1585
1586
  return textareaRef.current;
1586
- });
1587
+ }); // added not null
1587
1588
  var isControlledComponent = React.useMemo(function () {
1588
1589
  return value !== undefined;
1589
1590
  }, [value]);
@@ -11079,7 +11080,7 @@ var GridContainer = withScale(GridContainerComponent);
11079
11080
 
11080
11081
  Grid.Container = GridContainer;
11081
11082
 
11082
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
11083
+ /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
11083
11084
 
11084
11085
  const {
11085
11086
  entries,
@@ -11108,12 +11109,18 @@ if (!seal) {
11108
11109
  };
11109
11110
  }
11110
11111
  if (!apply) {
11111
- apply = function apply(fun, thisValue, args) {
11112
- return fun.apply(thisValue, args);
11112
+ apply = function apply(func, thisArg) {
11113
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
11114
+ args[_key - 2] = arguments[_key];
11115
+ }
11116
+ return func.apply(thisArg, args);
11113
11117
  };
11114
11118
  }
11115
11119
  if (!construct) {
11116
- construct = function construct(Func, args) {
11120
+ construct = function construct(Func) {
11121
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
11122
+ args[_key2 - 1] = arguments[_key2];
11123
+ }
11117
11124
  return new Func(...args);
11118
11125
  };
11119
11126
  }
@@ -11142,8 +11149,8 @@ function unapply(func) {
11142
11149
  if (thisArg instanceof RegExp) {
11143
11150
  thisArg.lastIndex = 0;
11144
11151
  }
11145
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11146
- args[_key - 1] = arguments[_key];
11152
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
11153
+ args[_key3 - 1] = arguments[_key3];
11147
11154
  }
11148
11155
  return apply(func, thisArg, args);
11149
11156
  };
@@ -11154,12 +11161,12 @@ function unapply(func) {
11154
11161
  * @param func - The constructor function to be wrapped and called.
11155
11162
  * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
11156
11163
  */
11157
- function unconstruct(func) {
11164
+ function unconstruct(Func) {
11158
11165
  return function () {
11159
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
11160
- args[_key2] = arguments[_key2];
11166
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
11167
+ args[_key4] = arguments[_key4];
11161
11168
  }
11162
- return construct(func, args);
11169
+ return construct(Func, args);
11163
11170
  };
11164
11171
  }
11165
11172
  /**
@@ -11258,8 +11265,8 @@ function lookupGetter(object, prop) {
11258
11265
  return fallbackValue;
11259
11266
  }
11260
11267
 
11261
- const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
11262
- const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
11268
+ const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
11269
+ const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'slot', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
11263
11270
  const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
11264
11271
  // List of SVG elements that are disallowed by default.
11265
11272
  // We still need to know them so that we can do namespace
@@ -11272,7 +11279,7 @@ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mgly
11272
11279
  const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
11273
11280
  const text = freeze(['#text']);
11274
11281
 
11275
- const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
11282
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
11276
11283
  const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
11277
11284
  const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
11278
11285
  const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
@@ -11371,7 +11378,7 @@ const _createHooksMap = function _createHooksMap() {
11371
11378
  function createDOMPurify() {
11372
11379
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
11373
11380
  const DOMPurify = root => createDOMPurify(root);
11374
- DOMPurify.version = '3.2.6';
11381
+ DOMPurify.version = '3.2.7';
11375
11382
  DOMPurify.removed = [];
11376
11383
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
11377
11384
  // Not running in a browser, provide a factory function
@@ -12068,7 +12075,7 @@ function createDOMPurify() {
12068
12075
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
12069
12076
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
12070
12077
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
12071
- _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||
12078
+ _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
12072
12079
  // Alternative, second condition checks if it's an `is`-attribute, AND
12073
12080
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
12074
12081
  lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
@@ -12147,7 +12154,12 @@ function createDOMPurify() {
12147
12154
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
12148
12155
  }
12149
12156
  /* Work around a security issue with comments inside attributes */
12150
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
12157
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
12158
+ _removeAttribute(name, currentNode);
12159
+ continue;
12160
+ }
12161
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
12162
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
12151
12163
  _removeAttribute(name, currentNode);
12152
12164
  continue;
12153
12165
  }
@@ -13535,7 +13547,7 @@ var TooltipComponent = function TooltipComponent(_ref) {
13535
13547
  hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
13536
13548
  customVisible = _ref.visible,
13537
13549
  props = _objectWithoutProperties(_ref, _excluded$r);
13538
- var timer = React.useRef();
13550
+ var timer = React.useRef(undefined);
13539
13551
  var ref = React.useRef(null);
13540
13552
  var _useState = React.useState(initialVisible),
13541
13553
  _useState2 = _slicedToArray(_useState, 2),
@@ -16036,13 +16048,14 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
16036
16048
  _pickChildByProps2 = _slicedToArray(_pickChildByProps, 2),
16037
16049
  optionChildren = _pickChildByProps2[1];
16038
16050
  return React.Children.map(optionChildren, function (child) {
16039
- if (! /*#__PURE__*/React.isValidElement(child)) return null;
16040
- var el = /*#__PURE__*/React.cloneElement(child); // { preventAllEvents: true }
16051
+ var _child = child;
16052
+ if (! /*#__PURE__*/React.isValidElement(_child)) return null;
16053
+ var el = /*#__PURE__*/React.cloneElement(_child); // { preventAllEvents: true }
16041
16054
  if (!multiple) return el;
16042
16055
  return /*#__PURE__*/React.createElement(SelectMultipleValue, {
16043
16056
  disabled: disabled,
16044
16057
  onClear: clearable ? function () {
16045
- return updateValue(child.props.value);
16058
+ return updateValue(_child.props.value);
16046
16059
  } : null
16047
16060
  }, el);
16048
16061
  });
@@ -35918,7 +35931,9 @@ var TreeIndents = function TreeIndents(_ref) {
35918
35931
  };
35919
35932
 
35920
35933
  var sortChildren = function sortChildren(children, folderComponentType) {
35921
- return React.Children.toArray(children).sort(function (a, b) {
35934
+ return React.Children.toArray(children).sort(function (_a, _b) {
35935
+ var a = _a;
35936
+ var b = _b;
35922
35937
  if (! /*#__PURE__*/React.isValidElement(a) || ! /*#__PURE__*/React.isValidElement(b)) return 0;
35923
35938
  if (a.type !== b.type) return a.type !== folderComponentType ? 1 : -1;
35924
35939
  return "".concat(a.props.name).charCodeAt(0) - "".concat(b.props.name).charCodeAt(0);
@@ -39687,10 +39702,10 @@ var Thumbs = /*#__PURE__*/function (_Component) {
39687
39702
  return /*#__PURE__*/React.createElement("li", _extends({}, thumbProps, {
39688
39703
  role: "button",
39689
39704
  tabIndex: 0,
39690
- className: "jsx-2129274269" + " " + (thumbProps && thumbProps.className != null && thumbProps.className || "")
39705
+ className: "jsx-2625056898" + " " + (thumbProps && thumbProps.className != null && thumbProps.className || "")
39691
39706
  }), img, /*#__PURE__*/React.createElement(_JSXStyle, {
39692
- id: "2129274269"
39693
- }, ".thumb.jsx-2129274269{-webkit-transition:border 0.15s ease-in;transition:border 0.15s ease-in;display:inline-block;margin-right:6px;margin-bottom:0 !important;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px;}.thumb.jsx-2129274269:focus{border:3px solid #ccc;outline:none;}.thumb.selected.jsx-2129274269,.thumb.jsx-2129274269:hover{border:3px solid #0099ff;}.thumb.jsx-2129274269 img.jsx-2129274269{vertical-align:top;}"));
39707
+ id: "2625056898"
39708
+ }, ".thumb.jsx-2625056898{-webkit-transition:border 0.15s ease-in;transition:border 0.15s ease-in;display:inline-block;margin-right:6px;margin-bottom:0 !important;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px;}.thumb.jsx-2625056898:focus{border:3px solid #ccc;outline:none;}.thumb.selected.jsx-2625056898,.thumb.jsx-2625056898:hover{border:3px solid #0099ff;}.thumb.jsx-2625056898 img.jsx-2625056898{vertical-align:top;}"));
39694
39709
  });
39695
39710
  }
39696
39711
  }, {
@@ -39874,19 +39889,62 @@ var Indicator = function Indicator(_ref) {
39874
39889
  var onClickHandler = _ref.onClickHandler,
39875
39890
  isSelected = _ref.isSelected,
39876
39891
  index = _ref.index,
39877
- label = _ref.label;
39878
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
39879
- onClick: onClickHandler,
39880
- onKeyDown: onClickHandler,
39881
- value: index,
39882
- key: index,
39883
- role: "button",
39884
- tabIndex: 0,
39885
- "aria-label": "".concat(label, " ").concat(index + 1),
39886
- className: "jsx-3056554148" + " " + (klass.DOT(isSelected) || "")
39887
- }), /*#__PURE__*/React.createElement(_JSXStyle, {
39888
- id: "3056554148"
39889
- }, ".dot.jsx-3056554148{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-3056554148,.dot.jsx-3056554148:hover{opacity:1;}"));
39892
+ label = _ref.label,
39893
+ type = _ref.type;
39894
+ switch (type) {
39895
+ case 'line':
39896
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
39897
+ onClick: onClickHandler,
39898
+ onKeyDown: onClickHandler,
39899
+ value: index,
39900
+ key: index,
39901
+ role: "button",
39902
+ tabIndex: 0,
39903
+ "aria-label": "".concat(label, " ").concat(index + 1),
39904
+ className: "jsx-110677664" + " " + (klass.DOT(isSelected) || "")
39905
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
39906
+ id: "110677664"
39907
+ }, ".dot.jsx-110677664{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;width:14px;height:2px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-110677664,.dot.jsx-110677664:hover{opacity:1;}"));
39908
+ case 'square':
39909
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
39910
+ onClick: onClickHandler,
39911
+ onKeyDown: onClickHandler,
39912
+ value: index,
39913
+ key: index,
39914
+ role: "button",
39915
+ tabIndex: 0,
39916
+ "aria-label": "".concat(label, " ").concat(index + 1),
39917
+ className: "jsx-157344968" + " " + (klass.DOT(isSelected) || "")
39918
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
39919
+ id: "157344968"
39920
+ }, ".dot.jsx-157344968{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-157344968,.dot.jsx-157344968:hover{opacity:1;}"));
39921
+ case 'pill':
39922
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
39923
+ onClick: onClickHandler,
39924
+ onKeyDown: onClickHandler,
39925
+ value: index,
39926
+ key: index,
39927
+ role: "button",
39928
+ tabIndex: 0,
39929
+ "aria-label": "".concat(label, " ").concat(index + 1),
39930
+ className: "jsx-2836895747" + " " + (klass.DOT(isSelected) || "")
39931
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
39932
+ id: "2836895747"
39933
+ }, ".dot.jsx-2836895747{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:25px;width:20px;height:5px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-2836895747,.dot.jsx-2836895747:hover{opacity:1;}"));
39934
+ default:
39935
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("li", {
39936
+ onClick: onClickHandler,
39937
+ onKeyDown: onClickHandler,
39938
+ value: index,
39939
+ key: index,
39940
+ role: "button",
39941
+ tabIndex: 0,
39942
+ "aria-label": "".concat(label, " ").concat(index + 1),
39943
+ className: "jsx-3056554148" + " " + (klass.DOT(isSelected) || "")
39944
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
39945
+ id: "3056554148"
39946
+ }, ".dot.jsx-3056554148{-webkit-transition:opacity 0.25s ease-in;transition:opacity 0.25s ease-in;opacity:0.3;box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px;}.dot.selected.jsx-3056554148,.dot.jsx-3056554148:hover{opacity:1;}"));
39947
+ }
39890
39948
  };
39891
39949
 
39892
39950
  /**
@@ -40340,7 +40398,8 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
40340
40398
  itemListStyle: {},
40341
40399
  slideStyle: {},
40342
40400
  selectedStyle: {},
40343
- prevStyle: {}
40401
+ prevStyle: {},
40402
+ indicator: 'dot'
40344
40403
  };
40345
40404
  _this.animationHandler = typeof props.animationHandler === 'function' && props.animationHandler || props.animationHandler === 'fade' && fadeAnimationHandler || slideAnimationHandler;
40346
40405
  _this.state = _objectSpread2(_objectSpread2({}, initState), _this.animationHandler(props, initState));
@@ -40503,13 +40562,13 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
40503
40562
  style: style
40504
40563
  };
40505
40564
  return /*#__PURE__*/React.createElement("li", _extends({}, slideProps, {
40506
- className: "jsx-2755164558" + " " + (slideProps && slideProps.className != null && slideProps.className || "")
40565
+ className: "jsx-4120978495" + " " + (slideProps && slideProps.className != null && slideProps.className || "")
40507
40566
  }), _this3.props.renderItem(item, {
40508
40567
  isSelected: index === _this3.state.selectedItem,
40509
40568
  isPrevious: index === _this3.state.previousItem
40510
40569
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
40511
- id: "2755164558"
40512
- }, ".slide.jsx-2755164558{min-width:100%;margin:0;position:relative;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}img.jsx-2755164558{width:100%;vertical-align:top;border:0;}iframe.jsx-2755164558{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0;}.legend.jsx-2755164558{-webkit-transition:opacity 0.35s ease-in-out;transition:opacity 0.35s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;}.slide.jsx-2755164558 .legend.jsx-2755164558{opacity:1;}"));
40570
+ id: "4120978495"
40571
+ }, ".slide.jsx-4120978495{min-width:100%;margin:0;position:relative;text-align:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}img.jsx-4120978495{width:100%;vertical-align:top;border:0;}iframe.jsx-4120978495{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0;}.legend.jsx-4120978495{-webkit-transition:opacity 0.35s ease-in-out;transition:opacity 0.35s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;}.slide.jsx-4120978495 .legend.jsx-4120978495{opacity:1;}"));
40513
40572
  });
40514
40573
  }
40515
40574
  }, {
@@ -40520,14 +40579,15 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
40520
40579
  showIndicators = _this$props.showIndicators,
40521
40580
  labels = _this$props.labels,
40522
40581
  renderIndicator = _this$props.renderIndicator,
40523
- children = _this$props.children;
40582
+ children = _this$props.children,
40583
+ indicator = _this$props.indicator;
40524
40584
  if (!showIndicators) {
40525
40585
  return null;
40526
40586
  }
40527
40587
  return /*#__PURE__*/React.createElement("ul", {
40528
40588
  className: "jsx-4140983776" + " " + "control-dots"
40529
40589
  }, React.Children.map(children, function (_, index) {
40530
- return renderIndicator && renderIndicator(_this4.changeItem(index), index === _this4.state.selectedItem, index, labels.item);
40590
+ return renderIndicator && renderIndicator(_this4.changeItem(index), index === _this4.state.selectedItem, index, labels.item, indicator);
40531
40591
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
40532
40592
  id: "4140983776"
40533
40593
  }, ".control-dots.jsx-4140983776{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1;}"));
@@ -40576,8 +40636,9 @@ var Carousel = /*#__PURE__*/function (_React$Component) {
40576
40636
  // show right arrow
40577
40637
  var hasNext = canShowArrows && (this.state.selectedItem < React.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || false;
40578
40638
  var itemsClone = this.renderItems(true);
40579
- var firstClone = itemsClone.shift();
40580
- var lastClone = itemsClone.pop();
40639
+ var firstClone = itemsClone.shift(); // added not null
40640
+ var lastClone = itemsClone.pop(); // added not null
40641
+
40581
40642
  var swiperProps = {
40582
40643
  className: klass.SLIDER(true, this.state.swiping),
40583
40644
  onSwipeMove: this.onSwipeMove,
@@ -40674,8 +40735,9 @@ _defineProperty$1(Carousel, "defaultProps", {
40674
40735
  label: label
40675
40736
  });
40676
40737
  },
40677
- renderIndicator: function renderIndicator(onClickHandler, isSelected, index, label) {
40738
+ renderIndicator: function renderIndicator(onClickHandler, isSelected, index, label, type) {
40678
40739
  return /*#__PURE__*/React.createElement(Indicator, {
40740
+ type: type,
40679
40741
  onClickHandler: onClickHandler,
40680
40742
  isSelected: isSelected,
40681
40743
  index: index,
@@ -40687,26 +40749,28 @@ _defineProperty$1(Carousel, "defaultProps", {
40687
40749
  },
40688
40750
  renderThumbs: function renderThumbs(children) {
40689
40751
  var images = React.Children.map(children, function (item) {
40690
- var img = item;
40752
+ var _item = item;
40753
+ if (! /*#__PURE__*/React.isValidElement(_item)) return undefined;
40691
40754
 
40692
- // if the item is not an image, try to find the first image in the item's children.
40693
- if (item.type !== 'img') {
40694
- img = React.Children.toArray(item.props.children).find(function (children) {
40695
- return children.type === 'img';
40696
- });
40755
+ // Directly an <img> element
40756
+ if (_item.type === 'img') {
40757
+ return item;
40697
40758
  }
40698
- if (!img) {
40699
- return undefined;
40700
- }
40701
- return img;
40759
+
40760
+ // If not <img>, search its children
40761
+ var childArray = React.Children.toArray(_item.props.children);
40762
+ var foundImg = childArray.find(function (child) {
40763
+ return /*#__PURE__*/React.isValidElement(child) && child.type === 'img';
40764
+ });
40765
+ return foundImg !== null && foundImg !== void 0 ? foundImg : undefined;
40702
40766
  });
40703
- if (images.filter(function (image) {
40767
+ if ((images === null || images === void 0 ? void 0 : images.filter(function (image) {
40704
40768
  return image;
40705
- }).length === 0) {
40769
+ }).length) === 0) {
40706
40770
  console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md");
40707
40771
  return [];
40708
40772
  }
40709
- return images;
40773
+ return images !== null && images !== void 0 ? images : [];
40710
40774
  },
40711
40775
  statusFormatter: defaultStatusFormatter,
40712
40776
  selectedItem: 0,
@@ -40720,6 +40784,7 @@ _defineProperty$1(Carousel, "defaultProps", {
40720
40784
  transitionTime: 350,
40721
40785
  verticalSwipe: 'standard',
40722
40786
  width: '100%',
40787
+ indicator: 'dot',
40723
40788
  animationHandler: 'slide',
40724
40789
  swipeAnimationHandler: slideSwipeAnimationHandler,
40725
40790
  stopSwipingHandler: slideStopSwipingHandler
@@ -41444,6 +41509,129 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41444
41509
  })));
41445
41510
  });
41446
41511
 
41512
+ var defaultToastLayout = {
41513
+ padding: '12px 16px',
41514
+ margin: '8px 0',
41515
+ width: '420px',
41516
+ maxWidth: '90vw',
41517
+ maxHeight: '75px',
41518
+ placement: 'bottomRight'
41519
+ };
41520
+ var defaultParams = {
41521
+ toasts: [],
41522
+ toastLayout: defaultToastLayout,
41523
+ updateToastLayout: function updateToastLayout(t) {
41524
+ return t;
41525
+ },
41526
+ updateToasts: function updateToasts(t) {
41527
+ return t;
41528
+ },
41529
+ lastUpdateToastId: null,
41530
+ updateLastToastId: function updateLastToastId() {
41531
+ return null;
41532
+ }
41533
+ };
41534
+ var HUIContent = /*#__PURE__*/React.createContext(defaultParams);
41535
+ var useHUIContext = function useHUIContext() {
41536
+ return React.useContext(HUIContent);
41537
+ };
41538
+
41539
+ var defaultToast = {
41540
+ delay: 2000,
41541
+ type: 'default'
41542
+ };
41543
+ var useToasts = function useToasts(layout) {
41544
+ var _useHUIContext = useHUIContext(),
41545
+ updateToasts = _useHUIContext.updateToasts,
41546
+ toasts = _useHUIContext.toasts,
41547
+ updateToastLayout = _useHUIContext.updateToastLayout,
41548
+ updateLastToastId = _useHUIContext.updateLastToastId;
41549
+ React.useEffect(function () {
41550
+ if (!layout) return;
41551
+ updateToastLayout(function () {
41552
+ return layout ? _objectSpread2(_objectSpread2({}, defaultToastLayout), layout) : defaultToastLayout;
41553
+ });
41554
+ }, []);
41555
+ var _cancel = function cancel(internalId) {
41556
+ updateToasts(function (currentToasts) {
41557
+ return currentToasts.map(function (item) {
41558
+ if (item._internalIdent !== internalId) return item;
41559
+ return _objectSpread2(_objectSpread2({}, item), {}, {
41560
+ visible: false
41561
+ });
41562
+ });
41563
+ });
41564
+ updateLastToastId(function () {
41565
+ return internalId;
41566
+ });
41567
+ };
41568
+ var removeAll = function removeAll() {
41569
+ updateToasts(function (last) {
41570
+ return last.map(function (toast) {
41571
+ return _objectSpread2(_objectSpread2({}, toast), {}, {
41572
+ visible: false
41573
+ });
41574
+ });
41575
+ });
41576
+ };
41577
+ var findToastOneByID = function findToastOneByID(id) {
41578
+ return toasts.find(function (t) {
41579
+ return t.id === id;
41580
+ });
41581
+ };
41582
+ var removeToastOneByID = function removeToastOneByID(id) {
41583
+ updateToasts(function (last) {
41584
+ return last.map(function (toast) {
41585
+ if (toast.id !== id) return toast;
41586
+ return _objectSpread2(_objectSpread2({}, toast), {}, {
41587
+ visible: false
41588
+ });
41589
+ });
41590
+ });
41591
+ };
41592
+ var setToast = function setToast(toast) {
41593
+ var internalIdent = "toast-".concat(getId());
41594
+ var delay = toast.delay || defaultToast.delay;
41595
+ if (toast.id) {
41596
+ var hasIdent = toasts.find(function (t) {
41597
+ return t.id === toast.id;
41598
+ });
41599
+ if (hasIdent) {
41600
+ throw new Error('Toast: Already have the same key: "ident"');
41601
+ }
41602
+ }
41603
+ updateToasts(function (last) {
41604
+ var newToast = {
41605
+ delay: delay,
41606
+ text: toast.text,
41607
+ visible: true,
41608
+ type: toast.type || defaultToast.type,
41609
+ id: toast.id || internalIdent,
41610
+ actions: toast.actions || [],
41611
+ _internalIdent: internalIdent,
41612
+ _timeout: window.setTimeout(function () {
41613
+ _cancel(internalIdent);
41614
+ if (newToast._timeout) {
41615
+ window.clearTimeout(newToast._timeout);
41616
+ newToast._timeout = null;
41617
+ }
41618
+ }, delay),
41619
+ cancel: function cancel() {
41620
+ return _cancel(internalIdent);
41621
+ }
41622
+ };
41623
+ return [].concat(_toConsumableArray(last), [newToast]);
41624
+ });
41625
+ };
41626
+ return {
41627
+ toasts: toasts,
41628
+ setToast: setToast,
41629
+ removeAll: removeAll,
41630
+ findToastOneByID: findToastOneByID,
41631
+ removeToastOneByID: removeToastOneByID
41632
+ };
41633
+ };
41634
+
41447
41635
  exports.AutoComplete = AutoComplete;
41448
41636
  exports.Avatar = Avatar;
41449
41637
  exports.Badge = Badge;
@@ -41557,6 +41745,7 @@ exports.useStopwatch = useStopwatch;
41557
41745
  exports.useTabs = useTabs;
41558
41746
  exports.useTime = useTime;
41559
41747
  exports.useTimer = useTimer;
41748
+ exports.useToasts = useToasts;
41560
41749
  exports.validateYupSchema = validateYupSchema;
41561
41750
  exports.withFormik = withFormik;
41562
41751
  exports.withScale = withScale;
@@ -0,0 +1,17 @@
1
+ import { Toast } from './use-toast';
2
+ import React from 'react';
3
+ import { NormalTypes } from '../utils/prop-types';
4
+ export declare const makeToastActions: (actions: Toast["actions"], cancelHandle: () => void) => React.JSX.Element[] | null;
5
+ export declare const getColors: (palette: any, type?: NormalTypes) => {
6
+ bgColor: string;
7
+ color: any;
8
+ };
9
+ declare const toastPlacement: ["topLeft", "topRight", "bottomLeft", "bottomRight"];
10
+ export type ToastPlacement = typeof toastPlacement[number];
11
+ export declare const isTopPlacement: (placement: ToastPlacement) => boolean;
12
+ export declare const isLeftPlacement: (placement: ToastPlacement) => boolean;
13
+ export declare const getTranslateByPlacement: (placement: ToastPlacement) => {
14
+ enter: string;
15
+ leave: string;
16
+ };
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import useToasts from './use-toast';
2
+ export type { ToastAction, Toast, ToastTypes, ToastInput, ToastLayout } from './use-toast';
3
+ export default useToasts;