@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.
- package/dist/reactist.cjs.development.js +23 -5
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/index.js +1 -1
- package/es/notice/notice.js +3 -2
- package/es/notice/notice.js.map +1 -1
- package/es/notice/notice.module.css.js +1 -1
- package/es/tooltip/tooltip.js +19 -3
- package/es/tooltip/tooltip.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/notice/notice.js +1 -1
- package/lib/notice/notice.js.map +1 -1
- package/lib/notice/notice.module.css.js +1 -1
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +5 -6
- package/lib/tooltip/tooltip.js +1 -1
- package/lib/tooltip/tooltip.js.map +1 -1
- package/package.json +1 -1
- package/styles/notice.css +1 -1
- package/styles/notice.module.css.css +1 -1
- package/styles/reactist.css +1 -1
|
@@ -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:
|
|
580
|
-
hideTimeout:
|
|
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":"
|
|
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
|
-
|
|
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
|