@doist/reactist 26.2.0 → 26.2.2

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,
@@ -969,7 +985,7 @@ function Loading(_ref) {
969
985
  }));
970
986
  }
971
987
 
972
- var modules_1b547e7e = {"container":"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"};
988
+ var modules_1b547e7e = {"container":"_2e62197a","content":"b7e8d846","icon":"_1c02ef4a","tone-info":"_940b3b19","tone-positive":"_6261fc66","tone-caution":"_255e20fe","tone-critical":"e225437d"};
973
989
 
974
990
  function Notice({
975
991
  id,
@@ -987,9 +1003,10 @@ function Notice({
987
1003
  }, /*#__PURE__*/React__namespace.createElement(Column, {
988
1004
  width: "content"
989
1005
  }, /*#__PURE__*/React__namespace.createElement(AlertIcon, {
990
- tone: tone
1006
+ tone: tone,
1007
+ className: modules_1b547e7e.icon
991
1008
  })), /*#__PURE__*/React__namespace.createElement(Column, null, /*#__PURE__*/React__namespace.createElement(Box$1, {
992
- paddingY: "xsmall"
1009
+ className: modules_1b547e7e.content
993
1010
  }, children))));
994
1011
  }
995
1012
 
@@ -3937,6 +3954,7 @@ exports.Time = Time;
3937
3954
  exports.Toast = Toast;
3938
3955
  exports.ToastsProvider = ToastsProvider;
3939
3956
  exports.Tooltip = Tooltip;
3957
+ exports.TooltipProvider = TooltipProvider;
3940
3958
  exports.getBoxClassNames = getBoxClassNames;
3941
3959
  exports.useToasts = useToasts;
3942
3960
  //# sourceMappingURL=reactist.cjs.development.js.map