@elliemae/ds-tooltip 2.3.1 → 3.0.0-alpha.3
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/cjs/index.js +41 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/v1/DSTooltip.js +161 -0
- package/dist/cjs/v1/DSTooltip.js.map +7 -0
- package/dist/cjs/v1/TooltipType.js +38 -0
- package/dist/cjs/v1/TooltipType.js.map +7 -0
- package/dist/cjs/v2/DSTooltip.js +158 -0
- package/dist/cjs/v2/DSTooltip.js.map +7 -0
- package/dist/cjs/v2/DSTooltipArrow.js +51 -0
- package/dist/cjs/v2/DSTooltipArrow.js.map +7 -0
- package/dist/cjs/v2/TooltipType.js +38 -0
- package/dist/cjs/v2/TooltipType.js.map +7 -0
- package/dist/cjs/v2/index.d.js +27 -0
- package/dist/cjs/v2/index.d.js.map +7 -0
- package/dist/cjs/v2/propTypes.js +56 -0
- package/dist/cjs/v2/propTypes.js.map +7 -0
- package/dist/cjs/v2/styles.js +131 -0
- package/dist/cjs/v2/styles.js.map +7 -0
- package/dist/cjs/v2/utils/setMultipleRefs.js +50 -0
- package/dist/cjs/v2/utils/setMultipleRefs.js.map +7 -0
- package/dist/cjs/v2/utils/tooltipPositions.js +48 -0
- package/dist/cjs/v2/utils/tooltipPositions.js.map +7 -0
- package/dist/cjs/v3/DSTooltipV3.js +138 -0
- package/dist/cjs/v3/DSTooltipV3.js.map +7 -0
- package/dist/cjs/v3/TooltipV3DatatestId.js +38 -0
- package/dist/cjs/v3/TooltipV3DatatestId.js.map +7 -0
- package/dist/cjs/v3/constants.js +50 -0
- package/dist/cjs/v3/constants.js.map +7 -0
- package/dist/cjs/v3/defaultProps.js +43 -0
- package/dist/cjs/v3/defaultProps.js.map +7 -0
- package/dist/cjs/v3/index.js +29 -0
- package/dist/cjs/v3/index.js.map +7 -0
- package/dist/cjs/v3/propTypes.js +56 -0
- package/dist/cjs/v3/propTypes.js.map +7 -0
- package/dist/cjs/v3/styles.js +70 -0
- package/dist/cjs/v3/styles.js.map +7 -0
- package/dist/cjs/v3/utils.js +41 -0
- package/dist/cjs/v3/utils.js.map +7 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/v1/DSTooltip.js +146 -0
- package/dist/esm/v1/DSTooltip.js.map +7 -0
- package/dist/esm/v1/TooltipType.js +9 -0
- package/dist/esm/v1/TooltipType.js.map +7 -0
- package/dist/esm/v2/DSTooltip.js +136 -0
- package/dist/esm/v2/DSTooltip.js.map +7 -0
- package/dist/esm/v2/DSTooltipArrow.js +22 -0
- package/dist/esm/v2/DSTooltipArrow.js.map +7 -0
- package/dist/esm/v2/TooltipType.js +9 -0
- package/dist/esm/v2/TooltipType.js.map +7 -0
- package/dist/esm/v2/index.d.js +2 -0
- package/dist/esm/v2/index.d.js.map +7 -0
- package/dist/esm/v2/propTypes.js +27 -0
- package/dist/esm/v2/propTypes.js.map +7 -0
- package/dist/esm/v2/styles.js +102 -0
- package/dist/esm/v2/styles.js.map +7 -0
- package/dist/esm/v2/utils/setMultipleRefs.js +21 -0
- package/dist/esm/v2/utils/setMultipleRefs.js.map +7 -0
- package/dist/esm/v2/utils/tooltipPositions.js +19 -0
- package/dist/esm/v2/utils/tooltipPositions.js.map +7 -0
- package/dist/esm/v3/DSTooltipV3.js +111 -0
- package/dist/esm/v3/DSTooltipV3.js.map +7 -0
- package/dist/esm/v3/TooltipV3DatatestId.js +9 -0
- package/dist/esm/v3/TooltipV3DatatestId.js.map +7 -0
- package/dist/esm/v3/constants.js +21 -0
- package/dist/esm/v3/constants.js.map +7 -0
- package/dist/esm/v3/defaultProps.js +14 -0
- package/dist/esm/v3/defaultProps.js.map +7 -0
- package/dist/esm/v3/index.js +4 -0
- package/dist/esm/v3/index.js.map +7 -0
- package/dist/esm/v3/propTypes.js +27 -0
- package/dist/esm/v3/propTypes.js.map +7 -0
- package/dist/esm/v3/styles.js +41 -0
- package/dist/esm/v3/styles.js.map +7 -0
- package/dist/esm/v3/utils.js +12 -0
- package/dist/esm/v3/utils.js.map +7 -0
- package/package.json +68 -71
- package/cjs/index.js +0 -25
- package/cjs/v1/DSTooltip.js +0 -115
- package/cjs/v1/TooltipType.js +0 -10
- package/cjs/v2/DSTooltip.js +0 -147
- package/cjs/v2/DSTooltipArrow.js +0 -39
- package/cjs/v2/TooltipType.js +0 -10
- package/cjs/v2/index.d.js +0 -2
- package/cjs/v2/propTypes.js +0 -27
- package/cjs/v2/styles.js +0 -62
- package/cjs/v2/utils/setMultipleRefs.js +0 -30
- package/cjs/v2/utils/tooltipPositions.js +0 -20
- package/cjs/v3/DSTooltipV3.js +0 -124
- package/cjs/v3/TooltipV3DatatestId.js +0 -10
- package/cjs/v3/constants.js +0 -9
- package/cjs/v3/defaultProps.js +0 -15
- package/cjs/v3/index.js +0 -12
- package/cjs/v3/propTypes.js +0 -29
- package/cjs/v3/styles.js +0 -52
- package/cjs/v3/utils.js +0 -14
- package/esm/index.js +0 -6
- package/esm/v1/DSTooltip.js +0 -100
- package/esm/v1/TooltipType.js +0 -6
- package/esm/v2/DSTooltip.js +0 -136
- package/esm/v2/DSTooltipArrow.js +0 -31
- package/esm/v2/TooltipType.js +0 -6
- package/esm/v2/index.d.js +0 -1
- package/esm/v2/propTypes.js +0 -23
- package/esm/v2/styles.js +0 -49
- package/esm/v2/utils/setMultipleRefs.js +0 -26
- package/esm/v2/utils/tooltipPositions.js +0 -16
- package/esm/v3/DSTooltipV3.js +0 -112
- package/esm/v3/TooltipV3DatatestId.js +0 -6
- package/esm/v3/constants.js +0 -4
- package/esm/v3/defaultProps.js +0 -11
- package/esm/v3/index.js +0 -2
- package/esm/v3/propTypes.js +0 -25
- package/esm/v3/styles.js +0 -41
- package/esm/v3/utils.js +0 -10
- package/types/index.d.ts +0 -6
- package/types/v1/DSTooltip.d.ts +0 -89
- package/types/v1/TooltipType.d.ts +0 -4
- package/types/v2/DSTooltip.d.ts +0 -70
- package/types/v2/DSTooltipArrow.d.ts +0 -4
- package/types/v2/TooltipType.d.ts +0 -5
- package/types/v2/propTypes.d.ts +0 -60
- package/types/v2/styles.d.ts +0 -7
- package/types/v2/tests/DSTooltipV2.test.d.ts +0 -1
- package/types/v2/utils/setMultipleRefs.d.ts +0 -1
- package/types/v2/utils/tooltipPositions.d.ts +0 -15
- package/types/v3/DSTooltipV3.d.ts +0 -61
- package/types/v3/TooltipV3DatatestId.d.ts +0 -4
- package/types/v3/constants.d.ts +0 -2
- package/types/v3/defaultProps.d.ts +0 -2
- package/types/v3/index.d.ts +0 -2
- package/types/v3/propTypes.d.ts +0 -87
- package/types/v3/styles.d.ts +0 -10
- package/types/v3/utils.d.ts +0 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/defaultProps.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import type { DSTooltipV3T } from './propTypes';\n\nconst noop = () => {};\n\nexport const defaultProps: DSTooltipV3T.DefaultProps = {\n onOpen: noop,\n onClose: noop,\n id: '',\n textAlign: 'left',\n wrapWords: false,\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,MAAM,OAAO,MAAM;AAAA;AAEZ,MAAM,eAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,WAAW;AAAA,EACX,WAAW;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 v3_exports = {};
|
|
25
|
+
var React = __toESM(require("react"));
|
|
26
|
+
__reExport(v3_exports, require("./DSTooltipV3"));
|
|
27
|
+
__reExport(v3_exports, require("./TooltipV3DatatestId"));
|
|
28
|
+
module.exports = __toCommonJS(v3_exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export * from './DSTooltipV3';\nexport * from './TooltipV3DatatestId';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA,YAAuB;ADAvB,uBAAc;AACd,uBAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 propTypes_exports = {};
|
|
29
|
+
__export(propTypes_exports, {
|
|
30
|
+
propTypes: () => propTypes
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react_desc = require("react-desc");
|
|
34
|
+
var import_constants = require("./constants");
|
|
35
|
+
const propTypes = {
|
|
36
|
+
text: import_react_desc.PropTypes.string.description("Tooltip text to be displayed on hover/focus").isRequired,
|
|
37
|
+
textAlign: import_react_desc.PropTypes.oneOf(import_constants.TEXT_ALIGNMENT).description("Tooltip text alignment").defaultValue("left"),
|
|
38
|
+
wrapWords: import_react_desc.PropTypes.bool.description("Break words into a new line. Useful when words exceed tooltip max-lenght.").defaultValue(false),
|
|
39
|
+
children: import_react_desc.PropTypes.node.description("Element to tie the tooltip to, must be a single node").isRequired,
|
|
40
|
+
withoutPortal: import_react_desc.PropTypes.bool.description("Whether or not the tooltip content should appear in a DOM portal or not").defaultValue(true),
|
|
41
|
+
withoutArrow: import_react_desc.PropTypes.bool.description("Whether or not the tooltip should use the arrow").defaultValue(false),
|
|
42
|
+
boundaryElement: import_react_desc.PropTypes.element.description('Bounding element to calculate upon, defaults to "clippingParents",which are the scrolling containers that may cause element to be partially or fully cut off').defaultValue(void 0),
|
|
43
|
+
withoutAnimation: import_react_desc.PropTypes.bool.description("Whether or not the popper context menu should be animated").defaultValue(false),
|
|
44
|
+
animationDuration: import_react_desc.PropTypes.number.description("Popper context menus Animation duration in ms").defaultValue(100),
|
|
45
|
+
portalDOMContainer: import_react_desc.PropTypes.element.description("When using portal, the container in which to append the DOM content, defaults to document body").defaultValue(void 0),
|
|
46
|
+
startPlacementPreference: import_react_desc.PropTypes.oneOf(import_constants.PLACEMENT).description("start placement preferences, as per popperjs placement option").defaultValue("'top'"),
|
|
47
|
+
placementOrderPreference: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.oneOf(import_constants.PLACEMENT)).description('Array of placement preferences, as per popperjs "flip" placement option').defaultValue("['top', 'bottom', 'left', 'right']"),
|
|
48
|
+
zIndex: import_react_desc.PropTypes.number.description("popperjs content z-index").defaultValue(1),
|
|
49
|
+
customOffset: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.number).description("placement offset array").defaultValue([0, 14]),
|
|
50
|
+
modifiers: import_react_desc.PropTypes.array.description("modifiers array for full-custom tooltip-js override, https://tooltip.js.org/docs/v2/modifiers/").defaultValue(1),
|
|
51
|
+
id: import_react_desc.PropTypes.string.description("Optional id appended to data-testid").defaultValue(""),
|
|
52
|
+
onOpen: import_react_desc.PropTypes.func.description("Optional callback to be invoked when the tooltip opens").defaultValue("() => {}"),
|
|
53
|
+
onClose: import_react_desc.PropTypes.func.description("Optional callback to be invoked when the tooltip closes").defaultValue("() => {}")
|
|
54
|
+
};
|
|
55
|
+
module.exports = __toCommonJS(propTypes_exports);
|
|
56
|
+
//# sourceMappingURL=propTypes.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/propTypes.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from 'react-desc';\nimport { PLACEMENT, TEXT_ALIGNMENT } from './constants';\n\nexport declare namespace DSTooltipV3T {\n export type Placement = typeof PLACEMENT[number];\n export type TextAlignment = typeof TEXT_ALIGNMENT[number];\n\n export interface DefaultProps {\n onOpen: () => void;\n onClose: () => void;\n id: string;\n textAlign: TextAlignment;\n wrapWords: boolean;\n }\n\n export interface PropsOptional {\n zIndex?: number;\n withoutPortal?: boolean;\n withoutArrow?: boolean;\n withoutAnimation?: boolean;\n boundaryElement?: React.ReactNode;\n animationDuraction?: number;\n portalDOMContainer?: React.ReactNode;\n startPlacementPreference?: Placement;\n placementOrderPreference?: Placement;\n customOffset?: [number, number];\n modifiers?: Record<string, unknown>[];\n }\n\n export interface PropsRequired {\n children: React.ReactNode;\n text: string;\n }\n\n export interface Props extends Partial<DefaultProps>, PropsRequired, PropsOptional {}\n\n export interface InternalProps extends DefaultProps, PropsRequired, PropsOptional {}\n}\n\nexport const propTypes = {\n text: PropTypes.string.description('Tooltip text to be displayed on hover/focus').isRequired,\n textAlign: PropTypes.oneOf(TEXT_ALIGNMENT as unknown as unknown[])\n .description('Tooltip text alignment')\n .defaultValue('left'),\n wrapWords: PropTypes.bool\n .description('Break words into a new line. Useful when words exceed tooltip max-lenght.')\n .defaultValue(false),\n children: PropTypes.node.description('Element to tie the tooltip to, must be a single node').isRequired,\n withoutPortal: PropTypes.bool\n .description('Whether or not the tooltip content should appear in a DOM portal or not')\n .defaultValue(true),\n withoutArrow: PropTypes.bool.description('Whether or not the tooltip should use the arrow').defaultValue(false),\n boundaryElement: PropTypes.element\n .description(\n 'Bounding element to calculate upon, defaults to \"clippingParents\",' +\n 'which are the scrolling containers that may cause element to be partially or fully cut off',\n )\n .defaultValue(undefined),\n withoutAnimation: PropTypes.bool\n .description('Whether or not the popper context menu should be animated')\n .defaultValue(false),\n animationDuration: PropTypes.number.description('Popper context menus Animation duration in ms').defaultValue(100),\n portalDOMContainer: PropTypes.element\n .description('When using portal, the container in which to append the DOM content, defaults to document body')\n .defaultValue(undefined),\n startPlacementPreference: PropTypes.oneOf(PLACEMENT as unknown as unknown[])\n .description('start placement preferences, as per popperjs placement option')\n .defaultValue(\"'top'\"),\n placementOrderPreference: PropTypes.arrayOf(PropTypes.oneOf(PLACEMENT as unknown as unknown[]))\n .description('Array of placement preferences, as per popperjs \"flip\" placement option')\n .defaultValue(\"['top', 'bottom', 'left', 'right']\"),\n zIndex: PropTypes.number.description('popperjs content z-index').defaultValue(1),\n customOffset: PropTypes.arrayOf(PropTypes.number).description('placement offset array').defaultValue([0, 14]),\n modifiers: PropTypes.array\n .description('modifiers array for full-custom tooltip-js override, https://tooltip.js.org/docs/v2/modifiers/')\n .defaultValue(1),\n id: PropTypes.string.description('Optional id appended to data-testid').defaultValue(''),\n onOpen: PropTypes.func.description('Optional callback to be invoked when the tooltip opens').defaultValue('() => {}'),\n onClose: PropTypes.func\n .description('Optional callback to be invoked when the tooltip closes')\n .defaultValue('() => {}'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,uBAA0C;AAsCnC,MAAM,YAAY;AAAA,EACvB,MAAM,4BAAU,OAAO,YAAY,+CAA+C;AAAA,EAClF,WAAW,4BAAU,MAAM,iCACxB,YAAY,0BACZ,aAAa;AAAA,EAChB,WAAW,4BAAU,KAClB,YAAY,6EACZ,aAAa;AAAA,EAChB,UAAU,4BAAU,KAAK,YAAY,wDAAwD;AAAA,EAC7F,eAAe,4BAAU,KACtB,YAAY,2EACZ,aAAa;AAAA,EAChB,cAAc,4BAAU,KAAK,YAAY,mDAAmD,aAAa;AAAA,EACzG,iBAAiB,4BAAU,QACxB,YACC,gKAGD,aAAa;AAAA,EAChB,kBAAkB,4BAAU,KACzB,YAAY,6DACZ,aAAa;AAAA,EAChB,mBAAmB,4BAAU,OAAO,YAAY,iDAAiD,aAAa;AAAA,EAC9G,oBAAoB,4BAAU,QAC3B,YAAY,kGACZ,aAAa;AAAA,EAChB,0BAA0B,4BAAU,MAAM,4BACvC,YAAY,iEACZ,aAAa;AAAA,EAChB,0BAA0B,4BAAU,QAAQ,4BAAU,MAAM,6BACzD,YAAY,2EACZ,aAAa;AAAA,EAChB,QAAQ,4BAAU,OAAO,YAAY,4BAA4B,aAAa;AAAA,EAC9E,cAAc,4BAAU,QAAQ,4BAAU,QAAQ,YAAY,0BAA0B,aAAa,CAAC,GAAG;AAAA,EACzG,WAAW,4BAAU,MAClB,YAAY,kGACZ,aAAa;AAAA,EAChB,IAAI,4BAAU,OAAO,YAAY,uCAAuC,aAAa;AAAA,EACrF,QAAQ,4BAAU,KAAK,YAAY,0DAA0D,aAAa;AAAA,EAC1G,SAAS,4BAAU,KAChB,YAAY,2DACZ,aAAa;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
StyledMouseOverDetectionBox: () => StyledMouseOverDetectionBox,
|
|
31
|
+
StyledTooltipContainer: () => StyledTooltipContainer,
|
|
32
|
+
StyledTooltipText: () => StyledTooltipText,
|
|
33
|
+
StyledTriggerWrapper: () => StyledTriggerWrapper
|
|
34
|
+
});
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
37
|
+
const StyledTooltipContainer = import_styled_components.default.div`
|
|
38
|
+
text-align: center;
|
|
39
|
+
min-width: ${({ theme }) => theme.space.l};
|
|
40
|
+
max-width: 250px;
|
|
41
|
+
min-height: 30px;
|
|
42
|
+
display: grid;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xs}`};
|
|
45
|
+
position: relative;
|
|
46
|
+
background-color: white;
|
|
47
|
+
border-radius: 2px;
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
color: ${({ theme }) => theme.colors.neutral[600]};
|
|
50
|
+
`;
|
|
51
|
+
const StyledTooltipText = import_styled_components.default.div`
|
|
52
|
+
display: inline-block;
|
|
53
|
+
text-align: ${({ textAlign }) => textAlign};
|
|
54
|
+
word-wrap: break-word;
|
|
55
|
+
${({ wrapWords }) => wrapWords ? `word-break: break-all;` : `white-space: normal;`}
|
|
56
|
+
`;
|
|
57
|
+
const StyledMouseOverDetectionBox = import_styled_components.default.div`
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: -15px;
|
|
60
|
+
right: -15px;
|
|
61
|
+
width: calc(100% + 30px);
|
|
62
|
+
height: calc(100% + 30px);
|
|
63
|
+
z-index: -1;
|
|
64
|
+
`;
|
|
65
|
+
const StyledTriggerWrapper = import_styled_components.default.div`
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
width: 100%;
|
|
68
|
+
`;
|
|
69
|
+
module.exports = __toCommonJS(styles_exports);
|
|
70
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/styles.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import styled from 'styled-components';\nimport type { DSTooltipV3T } from './propTypes';\n\ninterface StyledTooltipTextT {\n wrapWords: boolean;\n textAlign: DSTooltipV3T.TextAlignment;\n}\n\nexport const StyledTooltipContainer = styled.div`\n text-align: center;\n min-width: ${({ theme }) => theme.space.l};\n max-width: 250px;\n min-height: 30px;\n display: grid;\n align-items: center;\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`;\n\nexport const StyledTooltipText = styled.div<StyledTooltipTextT>`\n display: inline-block;\n text-align: ${({ textAlign }) => textAlign};\n word-wrap: break-word;\n ${({ wrapWords }) => (wrapWords ? `word-break: break-all;` : `white-space: normal;`)}\n`;\n\nexport const StyledMouseOverDetectionBox = styled.div`\n position: absolute;\n top: -15px;\n right: -15px;\n width: calc(100% + 30px);\n height: calc(100% + 30px);\n z-index: -1;\n`;\n\nexport const StyledTriggerWrapper = styled.div`\n display: inline-flex;\n width: 100%;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAmB;AAQZ,MAAM,yBAAyB,iCAAO;AAAA;AAAA,eAE9B,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,aAK7B,CAAC,EAAE,YAAY,GAAG,MAAM,MAAM,QAAQ,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,WAKpD,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAGxC,MAAM,oBAAoB,iCAAO;AAAA;AAAA,gBAExB,CAAC,EAAE,gBAAgB;AAAA;AAAA,IAE/B,CAAC,EAAE,gBAAiB,YAAY,2BAA2B;AAAA;AAGxD,MAAM,8BAA8B,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS3C,MAAM,uBAAuB,iCAAO;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 utils_exports = {};
|
|
29
|
+
__export(utils_exports, {
|
|
30
|
+
useGlobalKeyboardListener: () => useGlobalKeyboardListener
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = require("react");
|
|
34
|
+
const useGlobalKeyboardListener = (func) => {
|
|
35
|
+
(0, import_react.useEffect)(() => {
|
|
36
|
+
document.addEventListener("keydown", func);
|
|
37
|
+
return () => document.removeEventListener("keydown", func);
|
|
38
|
+
}, [func]);
|
|
39
|
+
};
|
|
40
|
+
module.exports = __toCommonJS(utils_exports);
|
|
41
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/v3/utils.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { useEffect } from 'react';\n\nexport const useGlobalKeyboardListener = (func: ({ key }: { key: string }) => void) => {\n useEffect(() => {\n document.addEventListener('keydown', func);\n return () => document.removeEventListener('keydown', func);\n }, [func]);\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAA0B;AAEnB,MAAM,4BAA4B,CAAC,SAA6C;AACrF,8BAAU,MAAM;AACd,aAAS,iBAAiB,WAAW;AACrC,WAAO,MAAM,SAAS,oBAAoB,WAAW;AAAA,KACpD,CAAC;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export * from "./v1/DSTooltip";
|
|
3
|
+
export * from "./v2/DSTooltip";
|
|
4
|
+
import { tooltipPositions } from "./v2/utils/tooltipPositions";
|
|
5
|
+
export * from "./v2/TooltipType";
|
|
6
|
+
export * from "./v3";
|
|
7
|
+
import { default as default2 } from "./v1/DSTooltip";
|
|
8
|
+
export {
|
|
9
|
+
default2 as default,
|
|
10
|
+
tooltipPositions
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './v1/DSTooltip';\nexport * from './v2/DSTooltip';\nexport { tooltipPositions } from './v2/utils/tooltipPositions';\nexport * from './v2/TooltipType';\nexport * from './v3';\nexport { default } from './v1/DSTooltip';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import * as React from "react";
|
|
33
|
+
import React2 from "react";
|
|
34
|
+
import { describe, PropTypes } from "react-desc";
|
|
35
|
+
import {
|
|
36
|
+
aggregatedClasses,
|
|
37
|
+
convertPropToCssClassName
|
|
38
|
+
} from "@elliemae/ds-classnames";
|
|
39
|
+
import { getComponentFromProps } from "@elliemae/ds-utilities";
|
|
40
|
+
import {
|
|
41
|
+
DEFAULT_DELAY_OPEN,
|
|
42
|
+
DEFAULT_DELAY_CLOSE
|
|
43
|
+
} from "@elliemae/ds-shared/constants";
|
|
44
|
+
import {
|
|
45
|
+
DSPopper,
|
|
46
|
+
PopperPositions,
|
|
47
|
+
PopperInteractions,
|
|
48
|
+
interactions,
|
|
49
|
+
positions
|
|
50
|
+
} from "@elliemae/ds-popper";
|
|
51
|
+
import { TooltipType } from "./TooltipType";
|
|
52
|
+
const blockName = "tooltip";
|
|
53
|
+
const TooltipContainer = aggregatedClasses("div")(blockName, false, false, {
|
|
54
|
+
propsToRemoveFromFinalElement: ["isHovered", "isDragged"]
|
|
55
|
+
});
|
|
56
|
+
const TooltipText = aggregatedClasses("span")(blockName, "text", false, {
|
|
57
|
+
propsToRemoveFromFinalElement: ["isHovered", "isDragged"]
|
|
58
|
+
});
|
|
59
|
+
const DSTooltip = (_a) => {
|
|
60
|
+
var _b = _a, {
|
|
61
|
+
containerProps = {},
|
|
62
|
+
innerRef,
|
|
63
|
+
placement = PopperPositions.TOP,
|
|
64
|
+
title = "",
|
|
65
|
+
delayClose = DEFAULT_DELAY_CLOSE,
|
|
66
|
+
delayOpen = DEFAULT_DELAY_OPEN,
|
|
67
|
+
interactionType = PopperInteractions.HOVER,
|
|
68
|
+
triggerComponent = null,
|
|
69
|
+
className = "",
|
|
70
|
+
isOpen = void 0,
|
|
71
|
+
onOpen = () => null,
|
|
72
|
+
springAnimationComponent = void 0,
|
|
73
|
+
tooltipType = TooltipType.TOOLTIP,
|
|
74
|
+
showArrow = true,
|
|
75
|
+
zIndex
|
|
76
|
+
} = _b, otherTooltipProps = __objRest(_b, [
|
|
77
|
+
"containerProps",
|
|
78
|
+
"innerRef",
|
|
79
|
+
"placement",
|
|
80
|
+
"title",
|
|
81
|
+
"delayClose",
|
|
82
|
+
"delayOpen",
|
|
83
|
+
"interactionType",
|
|
84
|
+
"triggerComponent",
|
|
85
|
+
"className",
|
|
86
|
+
"isOpen",
|
|
87
|
+
"onOpen",
|
|
88
|
+
"springAnimationComponent",
|
|
89
|
+
"tooltipType",
|
|
90
|
+
"showArrow",
|
|
91
|
+
"zIndex"
|
|
92
|
+
]);
|
|
93
|
+
const { cssClassName: tooltipBlockName } = convertPropToCssClassName(blockName);
|
|
94
|
+
let Content = title;
|
|
95
|
+
if (typeof title === "string") {
|
|
96
|
+
Content = /* @__PURE__ */ React2.createElement(TooltipText, null, title);
|
|
97
|
+
}
|
|
98
|
+
return /* @__PURE__ */ React2.createElement(DSPopper, {
|
|
99
|
+
blockName: tooltipBlockName,
|
|
100
|
+
contentComponent: /* @__PURE__ */ React2.createElement(TooltipContainer, __spreadProps(__spreadValues(__spreadValues({}, containerProps), otherTooltipProps), {
|
|
101
|
+
className: `tooltip-container--${tooltipType} ${className}`,
|
|
102
|
+
innerRef
|
|
103
|
+
}), Content),
|
|
104
|
+
delayClose,
|
|
105
|
+
delayOpen,
|
|
106
|
+
interactionType,
|
|
107
|
+
isOpen,
|
|
108
|
+
onOpen,
|
|
109
|
+
placement,
|
|
110
|
+
showArrow: tooltipType === TooltipType.TOOLTIP ? showArrow : false,
|
|
111
|
+
springAnimationComponent,
|
|
112
|
+
triggerComponent: getComponentFromProps(triggerComponent),
|
|
113
|
+
zIndex
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const tooltipProps = {
|
|
117
|
+
containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
|
|
118
|
+
placement: PropTypes.oneOf(positions).description("Tooltip position").defaultValue(PopperPositions.TOP),
|
|
119
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Tooltip content").isRequired,
|
|
120
|
+
delayClose: PropTypes.string.description("Delay to close the tooltip").defaultValue(DEFAULT_DELAY_CLOSE),
|
|
121
|
+
delayOpen: PropTypes.string.description("Delay to open the tooltip ").defaultValue(DEFAULT_DELAY_OPEN),
|
|
122
|
+
interactionType: PropTypes.oneOf(interactions).description("A type indicating how to open/close the tooltip").defaultValue(PopperInteractions.HOVER),
|
|
123
|
+
triggerComponent: PropTypes.element.description(`The component that will open/close the tooltip.
|
|
124
|
+
Cannot be used with disabled elements.
|
|
125
|
+
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled`).isRequired,
|
|
126
|
+
isOpen: PropTypes.bool.description("Whether the tooltip is visible or not").defaultValue(void 0),
|
|
127
|
+
onOpen: PropTypes.func.description("Handler when the tooltip opens"),
|
|
128
|
+
springAnimationComponent: PropTypes.element.description("Spring animation component"),
|
|
129
|
+
showArrow: PropTypes.bool.description("Whether to show an arrow or not").defaultValue(true),
|
|
130
|
+
className: PropTypes.string.description("css class"),
|
|
131
|
+
tooltipType: PropTypes.oneOf(["tooltip", "toolbar"]).description("Type of tooltip").defaultValue(TooltipType.TOOLTIP),
|
|
132
|
+
zIndex: PropTypes.number.description("z-index value assigned to the tooltip").defaultValue(void 0),
|
|
133
|
+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description("Ref to the tooltip container element")
|
|
134
|
+
};
|
|
135
|
+
DSTooltip.propTypes = tooltipProps;
|
|
136
|
+
const TooltipWithSchema = describe(DSTooltip);
|
|
137
|
+
TooltipWithSchema.propTypes = tooltipProps;
|
|
138
|
+
var DSTooltip_default = DSTooltip;
|
|
139
|
+
export {
|
|
140
|
+
DSTooltip,
|
|
141
|
+
TooltipContainer,
|
|
142
|
+
TooltipText,
|
|
143
|
+
TooltipWithSchema,
|
|
144
|
+
DSTooltip_default as default
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=DSTooltip.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v1/DSTooltip.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport {\n aggregatedClasses,\n convertPropToCssClassName,\n} from '@elliemae/ds-classnames';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\nimport {\n DEFAULT_DELAY_OPEN,\n DEFAULT_DELAY_CLOSE,\n} from '@elliemae/ds-shared/constants';\nimport { DSPopper,\n PopperPositions,\n PopperInteractions,\n interactions,\n positions\n} from '@elliemae/ds-popper';\nimport { TooltipType } from './TooltipType';\n\nconst blockName = 'tooltip';\n\nconst TooltipContainer = aggregatedClasses('div')(blockName, false, false, {\n propsToRemoveFromFinalElement: ['isHovered', 'isDragged'],\n});\nconst TooltipText = aggregatedClasses('span')(blockName, 'text', false, {\n propsToRemoveFromFinalElement: ['isHovered', 'isDragged'],\n});\n\nconst DSTooltip = ({\n containerProps = {},\n innerRef,\n placement = PopperPositions.TOP,\n title = '',\n delayClose = DEFAULT_DELAY_CLOSE,\n delayOpen = DEFAULT_DELAY_OPEN,\n interactionType = PopperInteractions.HOVER,\n triggerComponent = null,\n className = '',\n isOpen = undefined,\n onOpen = () => null,\n springAnimationComponent = undefined,\n tooltipType = TooltipType.TOOLTIP,\n showArrow = true,\n zIndex,\n ...otherTooltipProps\n}) => {\n const { cssClassName: tooltipBlockName } = convertPropToCssClassName(\n blockName,\n );\n\n let Content = title;\n if (typeof title === 'string') {\n Content = <TooltipText>{title}</TooltipText>;\n }\n return (\n <DSPopper\n blockName={tooltipBlockName}\n contentComponent={\n <TooltipContainer\n {...containerProps}\n {...otherTooltipProps}\n className={`tooltip-container--${tooltipType} ${className}`}\n innerRef={innerRef}\n >\n {Content}\n </TooltipContainer>\n }\n delayClose={delayClose}\n delayOpen={delayOpen}\n interactionType={interactionType}\n isOpen={isOpen}\n onOpen={onOpen}\n placement={placement}\n showArrow={tooltipType === TooltipType.TOOLTIP ? showArrow : false}\n springAnimationComponent={springAnimationComponent}\n triggerComponent={getComponentFromProps(triggerComponent)}\n zIndex={zIndex}\n />\n );\n};\n\nconst tooltipProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n placement: PropTypes.oneOf(positions)\n .description('Tooltip position')\n .defaultValue(PopperPositions.TOP),\n title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Tooltip content',\n ).isRequired,\n delayClose: PropTypes.string\n .description('Delay to close the tooltip')\n .defaultValue(DEFAULT_DELAY_CLOSE),\n delayOpen: PropTypes.string\n .description('Delay to open the tooltip ')\n .defaultValue(DEFAULT_DELAY_OPEN),\n interactionType: PropTypes.oneOf(interactions)\n .description('A type indicating how to open/close the tooltip')\n .defaultValue(PopperInteractions.HOVER),\n triggerComponent: PropTypes.element.description(\n `The component that will open/close the tooltip. \n Cannot be used with disabled elements. \n https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled`,\n ).isRequired,\n isOpen: PropTypes.bool\n .description('Whether the tooltip is visible or not')\n .defaultValue(undefined),\n onOpen: PropTypes.func.description('Handler when the tooltip opens'),\n springAnimationComponent: PropTypes.element.description(\n 'Spring animation component',\n ),\n showArrow: PropTypes.bool\n .description('Whether to show an arrow or not')\n .defaultValue(true),\n className: PropTypes.string.description('css class'),\n tooltipType: PropTypes.oneOf(['tooltip', 'toolbar'])\n .description('Type of tooltip')\n .defaultValue(TooltipType.TOOLTIP),\n zIndex: PropTypes.number\n .description('z-index value assigned to the tooltip')\n .defaultValue(undefined),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description(\n 'Ref to the tooltip container element',\n ),\n};\n\nDSTooltip.propTypes = tooltipProps;\n\nconst TooltipWithSchema = describe(DSTooltip);\nTooltipWithSchema.propTypes = tooltipProps;\n\nexport { DSTooltip, TooltipContainer, TooltipText, TooltipWithSchema };\nexport default DSTooltip;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACCA;AACA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AAAA;AAAA;AAAA;AAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;AAEA,MAAM,YAAY;AAElB,MAAM,mBAAmB,kBAAkB,OAAO,WAAW,OAAO,OAAO;AAAA,EACzE,+BAA+B,CAAC,aAAa;AAAA;AAE/C,MAAM,cAAc,kBAAkB,QAAQ,WAAW,QAAQ,OAAO;AAAA,EACtE,+BAA+B,CAAC,aAAa;AAAA;AAG/C,MAAM,YAAY,CAAC,OAiBb;AAjBa,eACjB;AAAA,qBAAiB;AAAA,IACjB;AAAA,IACA,YAAY,gBAAgB;AAAA,IAC5B,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,kBAAkB,mBAAmB;AAAA,IACrC,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,SAAS,MAAM;AAAA,IACf,2BAA2B;AAAA,IAC3B,cAAc,YAAY;AAAA,IAC1B,YAAY;AAAA,IACZ;AAAA,MAfiB,IAgBd,8BAhBc,IAgBd;AAAA,IAfH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,EAAE,cAAc,qBAAqB,0BACzC;AAGF,MAAI,UAAU;AACd,MAAI,OAAO,UAAU,UAAU;AAC7B,cAAU,qCAAC,aAAD,MAAc;AAAA;AAE1B,SACE,qCAAC,UAAD;AAAA,IACE,WAAW;AAAA,IACX,kBACE,qCAAC,kBAAD,gDACM,iBACA,oBAFN;AAAA,MAGE,WAAW,sBAAsB,eAAe;AAAA,MAChD;AAAA,QAEC;AAAA,IAGL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,gBAAgB,YAAY,UAAU,YAAY;AAAA,IAC7D;AAAA,IACA,kBAAkB,sBAAsB;AAAA,IACxC;AAAA;AAAA;AAKN,MAAM,eAAe;AAAA,EACnB,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAEF,WAAW,UAAU,MAAM,WACxB,YAAY,oBACZ,aAAa,gBAAgB;AAAA,EAChC,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAAU,YAChE,mBACA;AAAA,EACF,YAAY,UAAU,OACnB,YAAY,8BACZ,aAAa;AAAA,EAChB,WAAW,UAAU,OAClB,YAAY,8BACZ,aAAa;AAAA,EAChB,iBAAiB,UAAU,MAAM,cAC9B,YAAY,mDACZ,aAAa,mBAAmB;AAAA,EACnC,kBAAkB,UAAU,QAAQ,YAClC;AAAA;AAAA,4EAGA;AAAA,EACF,QAAQ,UAAU,KACf,YAAY,yCACZ,aAAa;AAAA,EAChB,QAAQ,UAAU,KAAK,YAAY;AAAA,EACnC,0BAA0B,UAAU,QAAQ,YAC1C;AAAA,EAEF,WAAW,UAAU,KAClB,YAAY,mCACZ,aAAa;AAAA,EAChB,WAAW,UAAU,OAAO,YAAY;AAAA,EACxC,aAAa,UAAU,MAAM,CAAC,WAAW,YACtC,YAAY,mBACZ,aAAa,YAAY;AAAA,EAC5B,QAAQ,UAAU,OACf,YAAY,yCACZ,aAAa;AAAA,EAChB,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,SAAS,YAChE;AAAA;AAIJ,UAAU,YAAY;AAEtB,MAAM,oBAAoB,SAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,oBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v1/TooltipType.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const TooltipType = {\n TOOLTIP: 'tooltip',\n TOOLBAR: 'toolbar',\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,SAAS;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import React2, { useState, useCallback, useEffect, useRef } from "react";
|
|
22
|
+
import { describe } from "react-desc";
|
|
23
|
+
import { DSPortal } from "@elliemae/ds-portal";
|
|
24
|
+
import { DEFAULT_DELAY_OPEN, DEFAULT_DELAY_CLOSE } from "@elliemae/ds-shared/constants";
|
|
25
|
+
import { usePopper } from "react-popper";
|
|
26
|
+
import { tooltipPositions } from "./utils/tooltipPositions";
|
|
27
|
+
import { TooltipType } from "./TooltipType";
|
|
28
|
+
import {
|
|
29
|
+
StyledTooltipContainer,
|
|
30
|
+
StyledTriggerComponentContainer,
|
|
31
|
+
StyledTooltipText,
|
|
32
|
+
StyledAnimatedTooltip
|
|
33
|
+
} from "./styles";
|
|
34
|
+
import { DSTooltipArrow } from "./DSTooltipArrow";
|
|
35
|
+
import { tooltipV2Props } from "./propTypes";
|
|
36
|
+
import { setMultipleRefs } from "./utils/setMultipleRefs";
|
|
37
|
+
const DSTooltipV2 = ({
|
|
38
|
+
containerProps = {},
|
|
39
|
+
innerRef,
|
|
40
|
+
placement = tooltipPositions.BOTTOM,
|
|
41
|
+
title = "",
|
|
42
|
+
delayClose = DEFAULT_DELAY_CLOSE,
|
|
43
|
+
delayOpen = DEFAULT_DELAY_OPEN,
|
|
44
|
+
triggerComponent = null,
|
|
45
|
+
className = "",
|
|
46
|
+
getIsOpen = () => null,
|
|
47
|
+
onOpen = () => null,
|
|
48
|
+
tooltipType = TooltipType.TOOLTIP,
|
|
49
|
+
showArrow = true,
|
|
50
|
+
offset = [0, 14],
|
|
51
|
+
zIndex = 10,
|
|
52
|
+
extraModifiers = {}
|
|
53
|
+
}) => {
|
|
54
|
+
const [showTooltip, setShowTooltip] = useState(false);
|
|
55
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
56
|
+
const [referenceElement, setReferenceElement] = useState(triggerComponent);
|
|
57
|
+
const [popperElement, setPopperElement] = useState(null);
|
|
58
|
+
const [arrowElement, setArrowElement] = useState(null);
|
|
59
|
+
const timerOpen = useRef(null);
|
|
60
|
+
const timerClosed = useRef(null);
|
|
61
|
+
const { styles, attributes } = usePopper(referenceElement, popperElement, {
|
|
62
|
+
placement,
|
|
63
|
+
modifiers: [
|
|
64
|
+
{ name: "hide", enabled: true },
|
|
65
|
+
{
|
|
66
|
+
name: "offset",
|
|
67
|
+
enabled: true,
|
|
68
|
+
options: {
|
|
69
|
+
offset: tooltipType === TooltipType.TOOLBAR ? [0, 0] : offset
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{ name: "arrow", options: { element: arrowElement } },
|
|
73
|
+
__spreadValues({}, extraModifiers)
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
const handleShowTooltipOn = useCallback(() => {
|
|
77
|
+
timerOpen.current = setTimeout(() => {
|
|
78
|
+
setShowTooltip(true);
|
|
79
|
+
setIsAnimating(true);
|
|
80
|
+
getIsOpen(true);
|
|
81
|
+
onOpen();
|
|
82
|
+
}, delayOpen);
|
|
83
|
+
}, [delayOpen, getIsOpen, onOpen]);
|
|
84
|
+
const handleShowTooltipOff = useCallback(() => {
|
|
85
|
+
timerClosed.current = setTimeout(() => {
|
|
86
|
+
setShowTooltip(false);
|
|
87
|
+
setIsAnimating(true);
|
|
88
|
+
getIsOpen(false);
|
|
89
|
+
}, delayClose);
|
|
90
|
+
}, [delayClose, getIsOpen]);
|
|
91
|
+
const handleKeyDown = useCallback((e) => {
|
|
92
|
+
if (e.key === "Escape") {
|
|
93
|
+
e.target.blur();
|
|
94
|
+
}
|
|
95
|
+
}, []);
|
|
96
|
+
const checkAnimationStatus = useCallback(() => {
|
|
97
|
+
if (!showTooltip) {
|
|
98
|
+
setIsAnimating(false);
|
|
99
|
+
}
|
|
100
|
+
}, [showTooltip]);
|
|
101
|
+
useEffect(() => () => {
|
|
102
|
+
clearTimeout(timerClosed.current);
|
|
103
|
+
clearTimeout(timerOpen.current);
|
|
104
|
+
}, []);
|
|
105
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledTriggerComponentContainer, {
|
|
106
|
+
ref: setReferenceElement,
|
|
107
|
+
onMouseEnter: handleShowTooltipOn,
|
|
108
|
+
onMouseLeave: handleShowTooltipOff,
|
|
109
|
+
onFocus: handleShowTooltipOn,
|
|
110
|
+
onBlur: handleShowTooltipOff,
|
|
111
|
+
onKeyDown: handleKeyDown
|
|
112
|
+
}, triggerComponent), isAnimating || showTooltip ? /* @__PURE__ */ React2.createElement(DSPortal, null, /* @__PURE__ */ React2.createElement(StyledTooltipContainer, __spreadValues(__spreadValues({
|
|
113
|
+
className,
|
|
114
|
+
showTooltip,
|
|
115
|
+
tooltipType,
|
|
116
|
+
"data-testid": "ds-tooltip-container",
|
|
117
|
+
ref: (ref) => setMultipleRefs(setPopperElement, innerRef)(ref),
|
|
118
|
+
style: __spreadProps(__spreadValues({}, styles.popper), { zIndex })
|
|
119
|
+
}, containerProps), attributes.popper), /* @__PURE__ */ React2.createElement(StyledAnimatedTooltip, {
|
|
120
|
+
showTooltip,
|
|
121
|
+
"data-testid": "ds-tooltip",
|
|
122
|
+
onAnimationEnd: checkAnimationStatus
|
|
123
|
+
}, /* @__PURE__ */ React2.createElement(StyledTooltipText, null, title), tooltipType === TooltipType.TOOLTIP && showArrow ? /* @__PURE__ */ React2.createElement(DSTooltipArrow, {
|
|
124
|
+
arrowElementRef: setArrowElement,
|
|
125
|
+
style: styles.arrow,
|
|
126
|
+
placement: attributes.popper ? attributes.popper["data-popper-placement"] : "bottom"
|
|
127
|
+
}) : null))) : null);
|
|
128
|
+
};
|
|
129
|
+
DSTooltipV2.propTypes = tooltipV2Props;
|
|
130
|
+
const TooltipV2WithSchema = describe(DSTooltipV2);
|
|
131
|
+
TooltipV2WithSchema.propTypes = tooltipV2Props;
|
|
132
|
+
export {
|
|
133
|
+
DSTooltipV2,
|
|
134
|
+
TooltipV2WithSchema
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=DSTooltip.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/DSTooltip.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useState, useCallback, useEffect, useRef } from 'react';\nimport { describe } from 'react-desc';\nimport { DSPortal } from '@elliemae/ds-portal';\nimport { DEFAULT_DELAY_OPEN, DEFAULT_DELAY_CLOSE } from '@elliemae/ds-shared/constants';\nimport { usePopper } from 'react-popper';\nimport { tooltipPositions } from './utils/tooltipPositions';\nimport { TooltipType } from './TooltipType';\nimport {\n StyledTooltipContainer,\n StyledTriggerComponentContainer,\n StyledTooltipText,\n StyledAnimatedTooltip,\n} from './styles';\nimport { DSTooltipArrow } from './DSTooltipArrow';\nimport { DSTooltipT } from '.';\nimport { tooltipV2Props } from './propTypes';\nimport { setMultipleRefs } from './utils/setMultipleRefs';\n\nconst DSTooltipV2 = ({\n containerProps = {},\n innerRef,\n placement = tooltipPositions.BOTTOM,\n title = '',\n delayClose = DEFAULT_DELAY_CLOSE,\n delayOpen = DEFAULT_DELAY_OPEN,\n triggerComponent = null,\n className = '',\n getIsOpen = () => null,\n onOpen = () => null,\n tooltipType = TooltipType.TOOLTIP,\n showArrow = true,\n offset = [0, 14],\n zIndex = 10,\n extraModifiers = {},\n}: DSTooltipT): React.ReactElement => {\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\n const [isAnimating, setIsAnimating] = useState<boolean>(false);\n const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(triggerComponent);\n const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);\n const [arrowElement, setArrowElement] = useState<HTMLDivElement | null>(null);\n const timerOpen = useRef(null);\n const timerClosed = useRef(null);\n\n const { styles, attributes } = usePopper(referenceElement, popperElement, {\n placement,\n modifiers: [\n { name: 'hide', enabled: true },\n {\n name: 'offset',\n enabled: true,\n options: {\n offset: tooltipType === TooltipType.TOOLBAR ? [0, 0] : offset,\n },\n },\n { name: 'arrow', options: { element: arrowElement } },\n { ...extraModifiers },\n ],\n });\n\n const handleShowTooltipOn = useCallback(() => {\n timerOpen.current = setTimeout(() => {\n setShowTooltip(true);\n setIsAnimating(true);\n getIsOpen(true);\n onOpen();\n }, delayOpen);\n }, [delayOpen, getIsOpen, onOpen]);\n\n const handleShowTooltipOff = useCallback(() => {\n timerClosed.current = setTimeout(() => {\n setShowTooltip(false);\n setIsAnimating(true);\n getIsOpen(false);\n }, delayClose);\n }, [delayClose, getIsOpen]);\n\n const handleKeyDown = useCallback((e) => {\n if (e.key === 'Escape') {\n e.target.blur();\n }\n }, []);\n\n const checkAnimationStatus = useCallback(() => {\n if (!showTooltip) {\n setIsAnimating(false);\n }\n }, [showTooltip]);\n\n useEffect(\n () => () => {\n clearTimeout(timerClosed.current);\n clearTimeout(timerOpen.current);\n },\n [],\n );\n\n return (\n <>\n <StyledTriggerComponentContainer\n ref={setReferenceElement}\n onMouseEnter={handleShowTooltipOn}\n onMouseLeave={handleShowTooltipOff}\n onFocus={handleShowTooltipOn}\n onBlur={handleShowTooltipOff}\n onKeyDown={handleKeyDown}\n >\n {triggerComponent}\n </StyledTriggerComponentContainer>\n {isAnimating || showTooltip ? (\n <DSPortal>\n <StyledTooltipContainer\n className={className}\n showTooltip={showTooltip}\n tooltipType={tooltipType}\n data-testid=\"ds-tooltip-container\"\n ref={(ref) => setMultipleRefs(setPopperElement, innerRef)(ref)}\n style={{ ...styles.popper, zIndex }}\n {...containerProps}\n {...attributes.popper}\n >\n <StyledAnimatedTooltip\n showTooltip={showTooltip}\n data-testid=\"ds-tooltip\"\n onAnimationEnd={checkAnimationStatus}\n >\n <StyledTooltipText>{title}</StyledTooltipText>\n {tooltipType === TooltipType.TOOLTIP && showArrow ? (\n <DSTooltipArrow\n arrowElementRef={setArrowElement}\n style={styles.arrow}\n placement={attributes.popper ? attributes.popper['data-popper-placement'] : 'bottom'}\n />\n ) : null}\n </StyledAnimatedTooltip>\n </StyledTooltipContainer>\n </DSPortal>\n ) : null}\n </>\n );\n};\n\nDSTooltipV2.propTypes = tooltipV2Props;\n\nconst TooltipV2WithSchema = describe(DSTooltipV2);\nTooltipV2WithSchema.propTypes = tooltipV2Props;\n\nexport { DSTooltipV2, TooltipV2WithSchema };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;AAEA;AACA;AAEA,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB;AAAA,EACjB;AAAA,EACA,YAAY,iBAAiB;AAAA,EAC7B,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,YAAY,MAAM;AAAA,EAClB,SAAS,MAAM;AAAA,EACf,cAAc,YAAY;AAAA,EAC1B,YAAY;AAAA,EACZ,SAAS,CAAC,GAAG;AAAA,EACb,SAAS;AAAA,EACT,iBAAiB;AAAA,MACmB;AACpC,QAAM,CAAC,aAAa,kBAAkB,SAAkB;AACxD,QAAM,CAAC,aAAa,kBAAkB,SAAkB;AACxD,QAAM,CAAC,kBAAkB,uBAAuB,SAA6B;AAC7E,QAAM,CAAC,eAAe,oBAAoB,SAAgC;AAC1E,QAAM,CAAC,cAAc,mBAAmB,SAAgC;AACxE,QAAM,YAAY,OAAO;AACzB,QAAM,cAAc,OAAO;AAE3B,QAAM,EAAE,QAAQ,eAAe,UAAU,kBAAkB,eAAe;AAAA,IACxE;AAAA,IACA,WAAW;AAAA,MACT,EAAE,MAAM,QAAQ,SAAS;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,SAAS;AAAA,QACT,SAAS;AAAA,UACP,QAAQ,gBAAgB,YAAY,UAAU,CAAC,GAAG,KAAK;AAAA;AAAA;AAAA,MAG3D,EAAE,MAAM,SAAS,SAAS,EAAE,SAAS;AAAA,MACrC,mBAAK;AAAA;AAAA;AAIT,QAAM,sBAAsB,YAAY,MAAM;AAC5C,cAAU,UAAU,WAAW,MAAM;AACnC,qBAAe;AACf,qBAAe;AACf,gBAAU;AACV;AAAA,OACC;AAAA,KACF,CAAC,WAAW,WAAW;AAE1B,QAAM,uBAAuB,YAAY,MAAM;AAC7C,gBAAY,UAAU,WAAW,MAAM;AACrC,qBAAe;AACf,qBAAe;AACf,gBAAU;AAAA,OACT;AAAA,KACF,CAAC,YAAY;AAEhB,QAAM,gBAAgB,YAAY,CAAC,MAAM;AACvC,QAAI,EAAE,QAAQ,UAAU;AACtB,QAAE,OAAO;AAAA;AAAA,KAEV;AAEH,QAAM,uBAAuB,YAAY,MAAM;AAC7C,QAAI,CAAC,aAAa;AAChB,qBAAe;AAAA;AAAA,KAEhB,CAAC;AAEJ,YACE,MAAM,MAAM;AACV,iBAAa,YAAY;AACzB,iBAAa,UAAU;AAAA,KAEzB;AAGF,SACE,4DACE,qCAAC,iCAAD;AAAA,IACE,KAAK;AAAA,IACL,cAAc;AAAA,IACd,cAAc;AAAA,IACd,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,WAAW;AAAA,KAEV,mBAEF,eAAe,cACd,qCAAC,UAAD,MACE,qCAAC,wBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAY;AAAA,IACZ,KAAK,CAAC,QAAQ,gBAAgB,kBAAkB,UAAU;AAAA,IAC1D,OAAO,iCAAK,OAAO,SAAZ,EAAoB;AAAA,KACvB,iBACA,WAAW,SAEf,qCAAC,uBAAD;AAAA,IACE;AAAA,IACA,eAAY;AAAA,IACZ,gBAAgB;AAAA,KAEhB,qCAAC,mBAAD,MAAoB,QACnB,gBAAgB,YAAY,WAAW,YACtC,qCAAC,gBAAD;AAAA,IACE,iBAAiB;AAAA,IACjB,OAAO,OAAO;AAAA,IACd,WAAW,WAAW,SAAS,WAAW,OAAO,2BAA2B;AAAA,OAE5E,UAIR;AAAA;AAKV,YAAY,YAAY;AAExB,MAAM,sBAAsB,SAAS;AACrC,oBAAoB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|