@elliemae/ds-tooltip 2.2.0-next.3 → 2.3.0-alpha.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.
- package/cjs/index.js +41 -23
- package/cjs/index.js.map +7 -0
- package/cjs/v1/DSTooltip.js +108 -105
- package/cjs/v1/DSTooltip.js.map +7 -0
- package/cjs/v1/TooltipType.js +36 -8
- package/cjs/v1/TooltipType.js.map +7 -0
- package/cjs/v2/DSTooltip.js +117 -121
- package/cjs/v2/DSTooltip.js.map +7 -0
- package/cjs/v2/DSTooltipArrow.js +50 -38
- package/cjs/v2/DSTooltipArrow.js.map +7 -0
- package/cjs/v2/TooltipType.js +36 -8
- package/cjs/v2/TooltipType.js.map +7 -0
- package/cjs/v2/index.d.js +27 -2
- package/cjs/v2/index.d.js.map +7 -0
- package/cjs/v2/propTypes.js +54 -25
- package/cjs/v2/propTypes.js.map +7 -0
- package/cjs/v2/styles.js +128 -59
- package/cjs/v2/styles.js.map +7 -0
- package/cjs/v2/utils/setMultipleRefs.js +41 -21
- package/cjs/v2/utils/setMultipleRefs.js.map +7 -0
- package/cjs/v2/utils/tooltipPositions.js +46 -18
- package/cjs/v2/utils/tooltipPositions.js.map +7 -0
- package/cjs/v3/TooltipV3DatatestId.js +36 -8
- package/cjs/v3/TooltipV3DatatestId.js.map +7 -0
- package/cjs/v3/config/useWithDefaultProps.js +40 -14
- package/cjs/v3/config/useWithDefaultProps.js.map +7 -0
- package/cjs/v3/index.d.js +27 -2
- package/cjs/v3/index.d.js.map +7 -0
- package/cjs/v3/index.js +90 -103
- package/cjs/v3/index.js.map +7 -0
- package/cjs/v3/propsTypes.js +78 -94
- package/cjs/v3/propsTypes.js.map +7 -0
- package/cjs/v3/styleds.js +69 -46
- package/cjs/v3/styleds.js.map +7 -0
- package/esm/index.js +12 -5
- package/esm/index.js.map +7 -0
- package/esm/v1/DSTooltip.js +88 -87
- package/esm/v1/DSTooltip.js.map +7 -0
- package/esm/v1/TooltipType.js +7 -4
- package/esm/v1/TooltipType.js.map +7 -0
- package/esm/v2/DSTooltip.js +80 -97
- package/esm/v2/DSTooltip.js.map +7 -0
- package/esm/v2/DSTooltipArrow.js +21 -30
- package/esm/v2/DSTooltipArrow.js.map +7 -0
- package/esm/v2/TooltipType.js +7 -4
- package/esm/v2/TooltipType.js.map +7 -0
- package/esm/v2/index.d.js +2 -1
- package/esm/v2/index.d.js.map +7 -0
- package/esm/v2/propTypes.js +25 -21
- package/esm/v2/propTypes.js.map +7 -0
- package/esm/v2/styles.js +100 -47
- package/esm/v2/styles.js.map +7 -0
- package/esm/v2/utils/setMultipleRefs.js +13 -18
- package/esm/v2/utils/setMultipleRefs.js.map +7 -0
- package/esm/v2/utils/tooltipPositions.js +17 -14
- package/esm/v2/utils/tooltipPositions.js.map +7 -0
- package/esm/v3/TooltipV3DatatestId.js +7 -4
- package/esm/v3/TooltipV3DatatestId.js.map +7 -0
- package/esm/v3/config/useWithDefaultProps.js +11 -10
- package/esm/v3/config/useWithDefaultProps.js.map +7 -0
- package/esm/v3/index.d.js +2 -1
- package/esm/v3/index.d.js.map +7 -0
- package/esm/v3/index.js +54 -79
- package/esm/v3/index.js.map +7 -0
- package/esm/v3/propsTypes.js +49 -90
- package/esm/v3/propsTypes.js.map +7 -0
- package/esm/v3/styleds.js +41 -36
- package/esm/v3/styleds.js.map +7 -0
- package/package.json +10 -10
- package/types/index.d.ts +1 -1
- package/types/v1/DSTooltip.d.ts +1 -18
- package/types/v2/DSTooltip.d.ts +1 -1
package/cjs/v2/styles.js
CHANGED
|
@@ -1,62 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var styles_exports = {};
|
|
29
|
+
__export(styles_exports, {
|
|
30
|
+
StyledAnimatedTooltip: () => StyledAnimatedTooltip,
|
|
31
|
+
StyledTooltipArrow: () => StyledTooltipArrow,
|
|
32
|
+
StyledTooltipContainer: () => StyledTooltipContainer,
|
|
33
|
+
StyledTooltipText: () => StyledTooltipText,
|
|
34
|
+
StyledTriggerComponentContainer: () => StyledTriggerComponentContainer
|
|
35
|
+
});
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
38
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
39
|
+
const showAnimation = import_ds_system.kfrm`
|
|
40
|
+
from {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: scale(0.8);
|
|
43
|
+
}
|
|
10
44
|
|
|
11
|
-
|
|
12
|
-
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: scale(1);
|
|
48
|
+
visibility: visible;
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
const hideAnimation = import_ds_system.kfrm`
|
|
52
|
+
0% {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
transform: scale(1);
|
|
55
|
+
}
|
|
13
56
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: scale(0.8);
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const StyledTooltipContainer = import_styled_components.default.div`
|
|
63
|
+
&[data-popper-reference-hidden='true'] {
|
|
64
|
+
display: none;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
const StyledAnimatedTooltip = import_styled_components.default.div`
|
|
69
|
+
text-align: center;
|
|
70
|
+
min-width: ${({ theme }) => theme.space.l};
|
|
71
|
+
max-width: 250px;
|
|
72
|
+
min-height: 24px;
|
|
73
|
+
padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xs}`};
|
|
74
|
+
position: relative;
|
|
75
|
+
background-color: white;
|
|
76
|
+
border-radius: 2px;
|
|
77
|
+
font-size: 13px;
|
|
78
|
+
color: ${({ theme }) => theme.colors.neutral[600]};
|
|
79
|
+
box-shadow: 0 1px 5px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 20%);
|
|
80
|
+
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
|
|
81
|
+
visibility: ${({ showTooltip }) => showTooltip ? "visible" : "hidden"};
|
|
82
|
+
${({ showTooltip }) => import_ds_system.css`
|
|
83
|
+
animation: ${showTooltip ? showAnimation : hideAnimation} 0.1s ease-in;
|
|
84
|
+
`}
|
|
85
|
+
transition: visibility 0.1s ease-in;
|
|
86
|
+
`;
|
|
87
|
+
const StyledTriggerComponentContainer = import_styled_components.default.div`
|
|
88
|
+
display: inline-block;
|
|
89
|
+
`;
|
|
90
|
+
const StyledTooltipText = import_styled_components.default.div`
|
|
91
|
+
white-space: normal;
|
|
92
|
+
word-wrap: break-word;
|
|
93
|
+
display: inline-block;
|
|
94
|
+
`;
|
|
95
|
+
const StyledTooltipArrow = import_styled_components.default.div`
|
|
96
|
+
position: absolute;
|
|
97
|
+
width: 18px;
|
|
98
|
+
height: 18px;
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
& .stroke {
|
|
102
|
+
fill: white;
|
|
103
|
+
}
|
|
104
|
+
& .fill {
|
|
105
|
+
fill: white;
|
|
106
|
+
}
|
|
57
107
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
108
|
+
&[data-placement^='top'] {
|
|
109
|
+
svg {
|
|
110
|
+
transform: rotateZ(180deg);
|
|
111
|
+
}
|
|
112
|
+
top: 98%;
|
|
113
|
+
}
|
|
114
|
+
&[data-placement^='right'] {
|
|
115
|
+
svg {
|
|
116
|
+
transform: rotateZ(-90deg);
|
|
117
|
+
}
|
|
118
|
+
right: 99.5%;
|
|
119
|
+
}
|
|
120
|
+
&[data-placement^='bottom'] {
|
|
121
|
+
bottom: 97%;
|
|
122
|
+
}
|
|
123
|
+
&[data-placement^='left'] {
|
|
124
|
+
svg {
|
|
125
|
+
transform: rotateZ(90deg);
|
|
126
|
+
}
|
|
127
|
+
left: 99.5%;
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
module.exports = __toCommonJS(styles_exports);
|
|
131
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v2/styles.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import styled from 'styled-components';\nimport { kfrm, css } from '@elliemae/ds-system';\nimport { TooltipAnimationT, TooltipContainerT } from './index.d';\n\nconst showAnimation = kfrm`\n from {\n opacity: 0;\n transform: scale(0.8);\n }\n\n to {\n opacity: 1;\n transform: scale(1);\n visibility: visible;\n }\n`;\n\nconst hideAnimation = kfrm`\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n\n 100% {\n opacity: 0;\n transform: scale(0.8);\n }\n`;\n\nconst StyledTooltipContainer = styled.div<TooltipContainerT>`\n &[data-popper-reference-hidden='true'] {\n display: none;\n pointer-events: none;\n }\n`;\n\nconst StyledAnimatedTooltip = styled.div<TooltipAnimationT>`\n text-align: center;\n min-width: ${({ theme }) => theme.space.l};\n max-width: 250px;\n min-height: 24px;\n padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xs}`};\n position: relative;\n background-color: white;\n border-radius: 2px;\n font-size: 13px;\n color: ${({ theme }) => theme.colors.neutral[600]};\n box-shadow: 0 1px 5px 0 rgb(0 0 0 / 13%), 0 2px 4px 0 rgb(0 0 0 / 20%);\n filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));\n visibility: ${({ showTooltip }) => (showTooltip ? 'visible' : 'hidden')};\n ${({ showTooltip }) =>\n css`\n animation: ${showTooltip ? showAnimation : hideAnimation} 0.1s ease-in;\n `}\n transition: visibility 0.1s ease-in;\n`;\n\nconst StyledTriggerComponentContainer = styled.div`\n display: inline-block;\n`;\n\nconst StyledTooltipText = styled.div`\n white-space: normal;\n word-wrap: break-word;\n display: inline-block;\n`;\n\nconst StyledTooltipArrow = styled.div`\n position: absolute;\n width: 18px;\n height: 18px;\n pointer-events: none;\n background-color: transparent;\n & .stroke {\n fill: white;\n }\n & .fill {\n fill: white;\n }\n\n &[data-placement^='top'] {\n svg {\n transform: rotateZ(180deg);\n }\n top: 98%;\n }\n &[data-placement^='right'] {\n svg {\n transform: rotateZ(-90deg);\n }\n right: 99.5%;\n }\n &[data-placement^='bottom'] {\n bottom: 97%;\n }\n &[data-placement^='left'] {\n svg {\n transform: rotateZ(90deg);\n }\n left: 99.5%;\n }\n`;\n\nexport {\n StyledTooltipContainer,\n StyledTriggerComponentContainer,\n StyledTooltipText,\n StyledTooltipArrow,\n StyledAnimatedTooltip,\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAmB;AACnB,uBAA0B;AAG1B,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAatB,MAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYtB,MAAM,yBAAyB,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOtC,MAAM,wBAAwB,iCAAO;AAAA;AAAA,eAEtB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA;AAAA,aAG7B,CAAC,EAAE,YAAY,GAAG,MAAM,MAAM,QAAQ,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,WAKpD,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA,gBAG/B,CAAC,EAAE,kBAAmB,cAAc,YAAY;AAAA,IAC5D,CAAC,EAAE,kBACH;AAAA,mBACe,cAAc,gBAAgB;AAAA;AAAA;AAAA;AAKjD,MAAM,kCAAkC,iCAAO;AAAA;AAAA;AAI/C,MAAM,oBAAoB,iCAAO;AAAA;AAAA;AAAA;AAAA;AAMjC,MAAM,qBAAqB,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
14
17
|
}
|
|
15
|
-
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var setMultipleRefs_exports = {};
|
|
29
|
+
__export(setMultipleRefs_exports, {
|
|
30
|
+
setMultipleRefs: () => setMultipleRefs
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
const setMultipleRefs = (...refs) => {
|
|
16
34
|
const filteredRefs = refs.filter(Boolean);
|
|
17
|
-
if (!filteredRefs.length)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
filteredRefs
|
|
21
|
-
|
|
35
|
+
if (!filteredRefs.length)
|
|
36
|
+
return null;
|
|
37
|
+
if (filteredRefs.length === 0)
|
|
38
|
+
return filteredRefs[0];
|
|
39
|
+
return (newRef) => {
|
|
40
|
+
filteredRefs.forEach((refToBeUpdated) => {
|
|
41
|
+
if (typeof refToBeUpdated === "function") {
|
|
22
42
|
refToBeUpdated(newRef);
|
|
23
43
|
} else if (refToBeUpdated) {
|
|
24
44
|
refToBeUpdated.current = newRef;
|
|
@@ -26,5 +46,5 @@ const setMultipleRefs = function () {
|
|
|
26
46
|
});
|
|
27
47
|
};
|
|
28
48
|
};
|
|
29
|
-
|
|
30
|
-
|
|
49
|
+
module.exports = __toCommonJS(setMultipleRefs_exports);
|
|
50
|
+
//# sourceMappingURL=setMultipleRefs.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/v2/utils/setMultipleRefs.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const setMultipleRefs = (...refs) => {\n const filteredRefs = refs.filter(Boolean);\n if (!filteredRefs.length) return null;\n if (filteredRefs.length === 0) return filteredRefs[0];\n return (newRef) => {\n filteredRefs.forEach((refToBeUpdated) => {\n if (typeof refToBeUpdated === 'function') {\n refToBeUpdated(newRef);\n } else if (refToBeUpdated) {\n refToBeUpdated.current = newRef;\n }\n });\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,kBAAkB,IAAI,SAAS;AAC1C,QAAM,eAAe,KAAK,OAAO;AACjC,MAAI,CAAC,aAAa;AAAQ,WAAO;AACjC,MAAI,aAAa,WAAW;AAAG,WAAO,aAAa;AACnD,SAAO,CAAC,WAAW;AACjB,iBAAa,QAAQ,CAAC,mBAAmB;AACvC,UAAI,OAAO,mBAAmB,YAAY;AACxC,uBAAe;AAAA,iBACN,gBAAgB;AACzB,uBAAe,UAAU;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,20 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var tooltipPositions_exports = {};
|
|
29
|
+
__export(tooltipPositions_exports, {
|
|
30
|
+
tooltipPositions: () => tooltipPositions
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
5
33
|
const tooltipPositions = {
|
|
6
|
-
TOP:
|
|
7
|
-
BOTTOM:
|
|
8
|
-
RIGHT:
|
|
9
|
-
LEFT:
|
|
10
|
-
TOP_START:
|
|
11
|
-
TOP_END:
|
|
12
|
-
BOTTOM_START:
|
|
13
|
-
BOTTOM_END:
|
|
14
|
-
RIGHT_START:
|
|
15
|
-
RIGHT_END:
|
|
16
|
-
LEFT_START:
|
|
17
|
-
LEFT_END:
|
|
34
|
+
TOP: "top",
|
|
35
|
+
BOTTOM: "bottom",
|
|
36
|
+
RIGHT: "right",
|
|
37
|
+
LEFT: "left",
|
|
38
|
+
TOP_START: "top-start",
|
|
39
|
+
TOP_END: "top-end",
|
|
40
|
+
BOTTOM_START: "bottom-start",
|
|
41
|
+
BOTTOM_END: "bottom-end",
|
|
42
|
+
RIGHT_START: "right-start",
|
|
43
|
+
RIGHT_END: "right-end",
|
|
44
|
+
LEFT_START: "left-start",
|
|
45
|
+
LEFT_END: "left-end"
|
|
18
46
|
};
|
|
19
|
-
|
|
20
|
-
|
|
47
|
+
module.exports = __toCommonJS(tooltipPositions_exports);
|
|
48
|
+
//# sourceMappingURL=tooltipPositions.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/v2/utils/tooltipPositions.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["const tooltipPositions = {\n TOP: 'top' as const,\n BOTTOM: 'bottom' as const,\n RIGHT: 'right' as const,\n LEFT: 'left' as const,\n TOP_START: 'top-start' as const,\n TOP_END: 'top-end' as const,\n BOTTOM_START: 'bottom-start' as const,\n BOTTOM_END: 'bottom-end' as const,\n RIGHT_START: 'right-start' as const,\n RIGHT_END: 'right-end' as const,\n LEFT_START: 'left-start' as const,\n LEFT_END: 'left-end' as const,\n};\n\nexport { tooltipPositions };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,mBAAmB;AAAA,EACvB,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var TooltipV3DatatestId_exports = {};
|
|
29
|
+
__export(TooltipV3DatatestId_exports, {
|
|
30
|
+
TooltipV3DatatestId: () => TooltipV3DatatestId
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
5
33
|
const TooltipV3DatatestId = {
|
|
6
|
-
TRIGGER_WRAPPER:
|
|
7
|
-
TOOLTIP_TEXT_WRAPPER:
|
|
34
|
+
TRIGGER_WRAPPER: "ds-tooltip-v3-trigger-wrapper",
|
|
35
|
+
TOOLTIP_TEXT_WRAPPER: "ds-tooltip-v3-tooltip-text-wrapper"
|
|
8
36
|
};
|
|
9
|
-
|
|
10
|
-
|
|
37
|
+
module.exports = __toCommonJS(TooltipV3DatatestId_exports);
|
|
38
|
+
//# sourceMappingURL=TooltipV3DatatestId.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/TooltipV3DatatestId.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const TooltipV3DatatestId = {\n TRIGGER_WRAPPER: 'ds-tooltip-v3-trigger-wrapper',\n TOOLTIP_TEXT_WRAPPER: 'ds-tooltip-v3-tooltip-text-wrapper',\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,sBAAsB;AAAA,EACjC,iBAAiB;AAAA,EACjB,sBAAsB;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,18 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var useWithDefaultProps_exports = {};
|
|
29
|
+
__export(useWithDefaultProps_exports, {
|
|
30
|
+
useWithDefaultProps: () => useWithDefaultProps
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
34
|
+
const noop = () => {
|
|
35
|
+
};
|
|
10
36
|
const defaultProps = {
|
|
11
37
|
onOpen: noop,
|
|
12
38
|
onClose: noop,
|
|
13
|
-
id:
|
|
14
|
-
textAlign:
|
|
39
|
+
id: "",
|
|
40
|
+
textAlign: "left"
|
|
15
41
|
};
|
|
16
|
-
const useWithDefaultProps = props =>
|
|
17
|
-
|
|
18
|
-
|
|
42
|
+
const useWithDefaultProps = (props) => (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, defaultProps);
|
|
43
|
+
module.exports = __toCommonJS(useWithDefaultProps_exports);
|
|
44
|
+
//# sourceMappingURL=useWithDefaultProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/v3/config/useWithDefaultProps.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport type { TooltipV3PropsT } from '../index.d';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {};\n\nconst defaultProps = {\n onOpen: noop,\n onClose: noop,\n id: '',\n textAlign: 'left',\n};\n\nexport const useWithDefaultProps = (props: Partial<TooltipV3PropsT>): Partial<TooltipV3PropsT> =>\n useMemoMergePropsWithDefault(props, defaultProps);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6C;AAI7C,MAAM,OAAO,MAAM;AAAA;AAEnB,MAAM,eAAe;AAAA,EACnB,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,WAAW;AAAA;AAGN,MAAM,sBAAsB,CAAC,UAClC,0DAA6B,OAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/cjs/v3/index.d.js
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
9
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(module2))
|
|
11
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
12
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (module2, isNodeMode) => {
|
|
17
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
20
|
+
return (module2, temp) => {
|
|
21
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
22
|
+
};
|
|
23
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
24
|
+
var index_d_exports = {};
|
|
25
|
+
var React = __toESM(require("react"));
|
|
26
|
+
module.exports = __toCommonJS(index_d_exports);
|
|
27
|
+
//# sourceMappingURL=index.d.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/index.d.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export type PopperPlacementsT =\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-end'\n | 'bottom'\n | 'bottom-start'\n | 'left-end'\n | 'left'\n | 'left-start';\n\nexport interface TooltipV3PropsT {\n text: string;\n textAlign: 'left' | 'right' | 'center' | 'justify' | 'initial' | 'inherit';\n children: React.ReactElement;\n withoutPortal?: boolean;\n withoutArrow?: boolean;\n withoutAnimation?: boolean;\n boundaryElement?: HTMLElement;\n portalDOMContainer?: HTMLElement;\n placementOrderPreference?: PopperPlacementsT[];\n startPlacementPreference?: PopperPlacementsT;\n modifiers?: Record<string, unknown>[];\n customOffset?: [number, number];\n zIndex?: number;\n onOpen?: () => void;\n onClose?: () => void;\n id?: string;\n}\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA,YAAuB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|