@dreamcommerce/aurora 2.4.7-2 → 2.4.8
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/build/cjs/_virtual/index.js_commonjs-proxy +1 -1
- package/build/cjs/_virtual/index.js_commonjs-proxy.map +1 -1
- package/build/cjs/_virtual/index2.js_commonjs-proxy +1 -1
- package/build/cjs/_virtual/index2.js_commonjs-proxy.map +1 -1
- package/build/cjs/_virtual/index3.js_commonjs-proxy +1 -1
- package/build/cjs/_virtual/index3.js_commonjs-proxy.map +1 -1
- package/build/cjs/_virtual/index4.js_commonjs-proxy +1 -1
- package/build/cjs/_virtual/index4.js_commonjs-proxy.map +1 -1
- package/build/cjs/packages/aurora/src/components/hint/index.js +1 -4
- package/build/cjs/packages/aurora/src/components/hint/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/tooltip/index.js +2 -2
- package/build/cjs/packages/aurora/src/css/tooltip/main.module.less.js +1 -1
- package/build/esm/_virtual/index.js_commonjs-proxy +2 -2
- package/build/esm/_virtual/index.js_commonjs-proxy.map +1 -1
- package/build/esm/_virtual/index2.js_commonjs-proxy +2 -2
- package/build/esm/_virtual/index2.js_commonjs-proxy.map +1 -1
- package/build/esm/_virtual/index3.js_commonjs-proxy +2 -2
- package/build/esm/_virtual/index3.js_commonjs-proxy.map +1 -1
- package/build/esm/_virtual/index4.js_commonjs-proxy +2 -2
- package/build/esm/_virtual/index4.js_commonjs-proxy.map +1 -1
- package/build/esm/packages/aurora/src/components/hint/index.js +1 -4
- package/build/esm/packages/aurora/src/components/hint/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/tooltip/index.js +2 -2
- package/build/esm/packages/aurora/src/css/tooltip/main.module.less.js +1 -1
- package/package.json +1 -1
- package/build/cjs/_virtual/react-dom-server.node.development.js_commonjs-proxy +0 -10
- package/build/cjs/_virtual/react-dom-server.node.development.js_commonjs-proxy.map +0 -1
- package/build/cjs/_virtual/react-dom-server.node.production.min.js_commonjs-proxy +0 -10
- package/build/cjs/_virtual/react-dom-server.node.production.min.js_commonjs-proxy.map +0 -1
- package/build/cjs/_virtual/server.node.js_commonjs-proxy +0 -10
- package/build/cjs/_virtual/server.node.js_commonjs-proxy.map +0 -1
- package/build/cjs/external/react-dom/cjs/react-dom-server.node.development.js +0 -4382
- package/build/cjs/external/react-dom/cjs/react-dom-server.node.development.js.map +0 -1
- package/build/cjs/external/react-dom/cjs/react-dom-server.node.production.min.js +0 -81
- package/build/cjs/external/react-dom/cjs/react-dom-server.node.production.min.js.map +0 -1
- package/build/cjs/external/react-dom/server.js +0 -10
- package/build/cjs/external/react-dom/server.js.map +0 -1
- package/build/cjs/external/react-dom/server.node.js +0 -19
- package/build/cjs/external/react-dom/server.node.js.map +0 -1
- package/build/esm/_virtual/react-dom-server.node.development.js_commonjs-proxy +0 -3
- package/build/esm/_virtual/react-dom-server.node.development.js_commonjs-proxy.map +0 -1
- package/build/esm/_virtual/react-dom-server.node.production.min.js_commonjs-proxy +0 -3
- package/build/esm/_virtual/react-dom-server.node.production.min.js_commonjs-proxy.map +0 -1
- package/build/esm/_virtual/server.node.js_commonjs-proxy +0 -3
- package/build/esm/_virtual/server.node.js_commonjs-proxy.map +0 -1
- package/build/esm/external/react-dom/cjs/react-dom-server.node.development.js +0 -4373
- package/build/esm/external/react-dom/cjs/react-dom-server.node.development.js.map +0 -1
- package/build/esm/external/react-dom/cjs/react-dom-server.node.production.min.js +0 -68
- package/build/esm/external/react-dom/cjs/react-dom-server.node.production.min.js.map +0 -1
- package/build/esm/external/react-dom/server.js +0 -6
- package/build/esm/external/react-dom/server.js.map +0 -1
- package/build/esm/external/react-dom/server.node.js +0 -15
- package/build/esm/external/react-dom/server.node.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,mDAA2D;AAC/E;AACA;AACA;AACA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,gEAAwE;AAC5F;AACA;AACA;AACA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,iCAAqC;AACzD;AACA;AACA;AACA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,oBAAoB,oCAAwC;AAC5D;AACA;AACA;AACA;"}
|
|
@@ -9,7 +9,6 @@ var main_module = require('../../css/hint/main.module.less.js');
|
|
|
9
9
|
var use_toggle = require('../dropdown/hooks/use_toggle.js');
|
|
10
10
|
var index$1 = require('../dropdown/index.js');
|
|
11
11
|
var icon_hint = require('../../assets/icon_hint.js');
|
|
12
|
-
var server = require('../../../../../external/react-dom/server.js');
|
|
13
12
|
|
|
14
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
14
|
|
|
@@ -32,9 +31,7 @@ const Hint = ({ hint, vPosition = 'top', yellow, hPosition = 'right', spacingLef
|
|
|
32
31
|
React__default['default'].createElement("span", { className: containerClassName, ref: wrapperRef, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave },
|
|
33
32
|
React__default['default'].createElement(IconComponent, { className: iconClass }),
|
|
34
33
|
React__default['default'].createElement(index$1['default'].Content, { cssClass: contentClassName, headerComponent: "", arrowSide: hPosition === 'left' ? 'right' : 'left', horizontalPosition: hPosition === 'right' ? 'left' : 'right', verticalPosition: vPosition === 'top' ? 'top' : 'bottom' },
|
|
35
|
-
React__default['default'].createElement("span",
|
|
36
|
-
__html: server['default'].renderToStaticMarkup(hint)
|
|
37
|
-
} })))));
|
|
34
|
+
React__default['default'].createElement("span", null, hint)))));
|
|
38
35
|
};
|
|
39
36
|
|
|
40
37
|
exports.default = Hint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -18,10 +18,10 @@ const Tooltip = ({ left, top, disabled, onToggle, children, content }) => {
|
|
|
18
18
|
const [isOpen, toggleDropdown] = use_toggle.useToggle(false, onToggle);
|
|
19
19
|
const value = React__default['default'].useMemo(() => ({ wrapperRef, isOpen, toggleDropdown }), [isOpen, toggleDropdown]);
|
|
20
20
|
const handleOnMouseEnter = () => {
|
|
21
|
-
toggleDropdown();
|
|
21
|
+
!isOpen && toggleDropdown();
|
|
22
22
|
};
|
|
23
23
|
const handleOnMouseLeave = () => {
|
|
24
|
-
toggleDropdown();
|
|
24
|
+
isOpen && toggleDropdown();
|
|
25
25
|
};
|
|
26
26
|
return (React__default['default'].createElement(index.DropdownContext.Provider, { value: value },
|
|
27
27
|
React__default['default'].createElement("span", { className: main_module['default'][css_classes.cssTooltip], ref: wrapperRef, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave },
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var styleInject_es = require('../../../../../external/style-inject/dist/style-inject.es.js');
|
|
6
6
|
|
|
7
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_tooltip__container__1T35Q {\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n white-space: nowrap;\n color: #ffffff;\n font-size: 12px;\n text-align: center;\n background-color: #2d3748;\n box-shadow: none;\n}\n.main-module_tooltip__container__1T35Q::before {\n display: none;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_top__2_OzW::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n bottom: -14px;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_bottom__1PzPE::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n top: -14px;\n}\n";
|
|
7
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_tooltip__container__1T35Q {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n white-space: nowrap;\n color: #ffffff;\n font-size: 12px;\n text-align: center;\n background-color: #2d3748 !important;\n box-shadow: none !important;\n}\n.main-module_tooltip__container__1T35Q::before {\n display: none !important;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_top__2_OzW::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n bottom: -14px;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_bottom__1PzPE::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n top: -14px;\n}\n";
|
|
8
8
|
var cssClasses = {"tooltip__container":"main-module_tooltip__container__1T35Q","dropdown__content_top":"main-module_dropdown__content_top__2_OzW","dropdown__content_bottom":"main-module_dropdown__content_bottom__1PzPE"};
|
|
9
9
|
styleInject_es['default'](css_248z);
|
|
10
10
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from '../external/
|
|
1
|
+
import reactIs from '../external/prop-types/external/react-is/index.js';
|
|
2
|
+
export { default } from '../external/prop-types/external/react-is/index.js';
|
|
3
3
|
//# sourceMappingURL=index.js_commonjs-proxy.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,mDAA2D;AAC/E,wBAAwB,mDAA2D;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import reactIs from '../external/
|
|
2
|
-
export { default } from '../external/
|
|
1
|
+
import reactIs from '../external/hoist-non-react-statics/external/react-is/index.js';
|
|
2
|
+
export { default } from '../external/hoist-non-react-statics/external/react-is/index.js';
|
|
3
3
|
//# sourceMappingURL=index2.js_commonjs-proxy.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,gEAAwE;AAC5F,wBAAwB,gEAAwE;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from '../external/
|
|
1
|
+
import colorName from '../external/color-name/index.js';
|
|
2
|
+
export { default } from '../external/color-name/index.js';
|
|
3
3
|
//# sourceMappingURL=index3.js_commonjs-proxy.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,sBAAsB,iCAAqC;AAC3D,wBAAwB,iCAAqC;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from '../external/
|
|
1
|
+
import objectAssign from '../external/object-assign/index.js';
|
|
2
|
+
export { default } from '../external/object-assign/index.js';
|
|
3
3
|
//# sourceMappingURL=index4.js_commonjs-proxy.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,yBAAyB,oCAAwC;AACjE,wBAAwB,oCAAwC;"}
|
|
@@ -5,7 +5,6 @@ import cssClasses from '../../css/hint/main.module.less.js';
|
|
|
5
5
|
import { useToggle } from '../dropdown/hooks/use_toggle.js';
|
|
6
6
|
import Dropdown from '../dropdown/index.js';
|
|
7
7
|
import IconHint from '../../assets/icon_hint.js';
|
|
8
|
-
import server from '../../../../../external/react-dom/server.js';
|
|
9
8
|
|
|
10
9
|
const Hint = ({ hint, vPosition = 'top', yellow, hPosition = 'right', spacingLeft, spacingRight, iconClass, Icon, onToggle }) => {
|
|
11
10
|
const wrapperRef = useRef(null);
|
|
@@ -24,9 +23,7 @@ const Hint = ({ hint, vPosition = 'top', yellow, hPosition = 'right', spacingLef
|
|
|
24
23
|
React.createElement("span", { className: containerClassName, ref: wrapperRef, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave },
|
|
25
24
|
React.createElement(IconComponent, { className: iconClass }),
|
|
26
25
|
React.createElement(Dropdown.Content, { cssClass: contentClassName, headerComponent: "", arrowSide: hPosition === 'left' ? 'right' : 'left', horizontalPosition: hPosition === 'right' ? 'left' : 'right', verticalPosition: vPosition === 'top' ? 'top' : 'bottom' },
|
|
27
|
-
React.createElement("span",
|
|
28
|
-
__html: server.renderToStaticMarkup(hint)
|
|
29
|
-
} })))));
|
|
26
|
+
React.createElement("span", null, hint)))));
|
|
30
27
|
};
|
|
31
28
|
|
|
32
29
|
export default Hint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -10,10 +10,10 @@ const Tooltip = ({ left, top, disabled, onToggle, children, content }) => {
|
|
|
10
10
|
const [isOpen, toggleDropdown] = useToggle(false, onToggle);
|
|
11
11
|
const value = React.useMemo(() => ({ wrapperRef, isOpen, toggleDropdown }), [isOpen, toggleDropdown]);
|
|
12
12
|
const handleOnMouseEnter = () => {
|
|
13
|
-
toggleDropdown();
|
|
13
|
+
!isOpen && toggleDropdown();
|
|
14
14
|
};
|
|
15
15
|
const handleOnMouseLeave = () => {
|
|
16
|
-
toggleDropdown();
|
|
16
|
+
isOpen && toggleDropdown();
|
|
17
17
|
};
|
|
18
18
|
return (React.createElement(DropdownContext.Provider, { value: value },
|
|
19
19
|
React.createElement("span", { className: cssClasses[cssTooltip], ref: wrapperRef, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_tooltip__container__1T35Q {\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n white-space: nowrap;\n color: #ffffff;\n font-size: 12px;\n text-align: center;\n background-color: #2d3748;\n box-shadow: none;\n}\n.main-module_tooltip__container__1T35Q::before {\n display: none;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_top__2_OzW::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n bottom: -14px;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_bottom__1PzPE::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n top: -14px;\n}\n";
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_tooltip__container__1T35Q {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n white-space: nowrap;\n color: #ffffff;\n font-size: 12px;\n text-align: center;\n background-color: #2d3748 !important;\n box-shadow: none !important;\n}\n.main-module_tooltip__container__1T35Q::before {\n display: none !important;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_top__2_OzW::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n bottom: -14px;\n}\n.main-module_tooltip__container__1T35Q.main-module_dropdown__content_bottom__1PzPE::after {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 14px;\n left: 0;\n top: -14px;\n}\n";
|
|
4
4
|
var cssClasses = {"tooltip__container":"main-module_tooltip__container__1T35Q","dropdown__content_top":"main-module_dropdown__content_top__2_OzW","dropdown__content_bottom":"main-module_dropdown__content_bottom__1PzPE"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactDomServer_node_development = require('../external/react-dom/cjs/react-dom-server.node.development.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.default = reactDomServer_node_development['default'];
|
|
10
|
-
//# sourceMappingURL=react-dom-server.node.development.js_commonjs-proxy.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,8CAA8C,gEAAoE;AAClH;AACA;AACA;AACA;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactDomServer_node_production_min = require('../external/react-dom/cjs/react-dom-server.node.production.min.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.default = reactDomServer_node_production_min['default'];
|
|
10
|
-
//# sourceMappingURL=react-dom-server.node.production.min.js_commonjs-proxy.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,iDAAiD,mEAAuE;AACxH;AACA;AACA;AACA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,0BAA0B,sCAA0C;AACpE;AACA;AACA;AACA;"}
|