@doist/reactist 26.2.0 → 26.2.1

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.
@@ -575,11 +575,27 @@ function Spinner({
575
575
 
576
576
  var modules_95f1407a = {"tooltip":"_487c82cd"};
577
577
 
578
+ const defaultShowTimeout = 500;
579
+ const defaultHideTimeout = 100;
578
580
  const TooltipContext = /*#__PURE__*/React__namespace.createContext({
579
- showTimeout: 500,
580
- hideTimeout: 100
581
+ showTimeout: defaultShowTimeout,
582
+ hideTimeout: defaultHideTimeout
581
583
  });
582
584
 
585
+ function TooltipProvider({
586
+ showTimeout = defaultShowTimeout,
587
+ hideTimeout = defaultHideTimeout,
588
+ children
589
+ }) {
590
+ const value = React__namespace.useMemo(() => ({
591
+ showTimeout,
592
+ hideTimeout
593
+ }), [showTimeout, hideTimeout]);
594
+ return /*#__PURE__*/React__namespace.createElement(TooltipContext.Provider, {
595
+ value: value
596
+ }, children);
597
+ }
598
+
583
599
  function Tooltip({
584
600
  children,
585
601
  content,
@@ -3937,6 +3953,7 @@ exports.Time = Time;
3937
3953
  exports.Toast = Toast;
3938
3954
  exports.ToastsProvider = ToastsProvider;
3939
3955
  exports.Tooltip = Tooltip;
3956
+ exports.TooltipProvider = TooltipProvider;
3940
3957
  exports.getBoxClassNames = getBoxClassNames;
3941
3958
  exports.useToasts = useToasts;
3942
3959
  //# sourceMappingURL=reactist.cjs.development.js.map