@elliemae/ds-card-v2 3.70.0-next.3 → 3.70.0-next.4

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.
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(DSCardV2_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
37
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
38
- var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
38
+ var import_TruncatedTooltipText = require("./TruncatedTooltipText.js");
39
39
  var import_ds_typography = require("@elliemae/ds-typography");
40
40
  var import_ds_system = require("@elliemae/ds-system");
41
41
  var import_react_desc_prop_types = require("./react-desc-prop-types.js");
@@ -57,7 +57,7 @@ const DSCardV2 = (props) => {
57
57
  const { getOwnerProps, getOwnerPropsArguments } = (0, import_ds_props_helpers.useOwnerProps)(propsWithDefault);
58
58
  const layoutMode = (0, import_ds_system.useGetLayoutMode)();
59
59
  const isSmall = layoutMode === "s" || layoutMode === "xs";
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
61
61
  import_styles.CardContainer,
62
62
  {
63
63
  "data-component-selector": "ds-card-v2",
@@ -100,10 +100,10 @@ const DSCardV2 = (props) => {
100
100
  "data-testid": import_constants.CARD_V2_DATA_TESTID.CARD_HEADER,
101
101
  getOwnerProps,
102
102
  getOwnerPropsArguments,
103
- children: wrapText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: import_ds_typography.TYPOGRAPHY_VARIANTS.B1, as: "span", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, { value: title })
103
+ children: wrapText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: import_ds_typography.TYPOGRAPHY_VARIANTS.B1, as: "span", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TruncatedTooltipText.TruncatedTooltipText, { value: title })
104
104
  }
105
105
  ),
106
- description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Description, { getOwnerProps, getOwnerPropsArguments, children: wrapText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: import_ds_typography.TYPOGRAPHY_VARIANTS.B1, as: "span", children: description }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, { value: description }) })
106
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Description, { getOwnerProps, getOwnerPropsArguments, children: wrapText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_typography.DSTypography, { variant: import_ds_typography.TYPOGRAPHY_VARIANTS.B1, as: "span", children: description }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TruncatedTooltipText.TruncatedTooltipText, { value: description }) })
107
107
  ]
108
108
  }
109
109
  ),
@@ -128,7 +128,7 @@ const DSCardV2 = (props) => {
128
128
  )
129
129
  ]
130
130
  }
131
- ) });
131
+ );
132
132
  };
133
133
  DSCardV2.displayName = import_constants.DSCardV2Name;
134
134
  const DSCardV2WithSchema = (0, import_ds_props_helpers.describe)(DSCardV2);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSCardV2.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DSTypography, TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useGetLayoutMode } from '@elliemae/ds-system';\nimport { type DSCardV2T, DSCardV2PropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2 } from './config/useCardV2.js';\nimport { DSCardV2Name, CARD_V2_DATA_TESTID } from './constants/index.js';\nimport {\n CardContainer,\n LeftAddon,\n MainSection,\n Description,\n RightAddonSection,\n RightAddon,\n Separator,\n Title,\n} from './styles.js';\n\nconst getCols = (rightAddon: DSCardV2T.OptionalProps['rightAddon'], isSmall: boolean) => {\n if (isSmall) return ['1fr'];\n if (!rightAddon) return ['1fr'];\n return ['auto', 'minmax(0, 1fr)', 'auto'];\n};\n\nconst getRows = (isSmall: boolean) => {\n if (isSmall) return ['auto', 'auto', 'auto'];\n return ['auto'];\n};\n// eslint-disable-next-line complexity\nconst DSCardV2: React.ComponentType<DSCardV2T.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2(props);\n const { hasBorder, title, leftAddon, rightAddon, description, wrapText } = propsWithDefault;\n const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);\n const layoutMode = useGetLayoutMode();\n const isSmall = layoutMode === 's' || layoutMode === 'xs';\n\n return (\n <TooltipTextProvider>\n <CardContainer\n data-component-selector=\"ds-card-v2\"\n data-testid={CARD_V2_DATA_TESTID.CARD_CONTAINER} // we must keep this explicit to avoid the breaking changes\n {...globalProps}\n {...xstyledProps}\n hasBorder={hasBorder}\n cols={getCols(rightAddon, isSmall)}\n rows={getRows(isSmall)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon && (\n <LeftAddon\n style={{\n gridColumn: isSmall ? '1' : '1',\n gridRow: isSmall ? '1' : '1',\n justifySelf: isSmall ? 'center' : 'start',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon}\n </LeftAddon>\n )}\n <MainSection\n style={{\n gridColumn: isSmall ? '1' : '2',\n gridRow: isSmall ? '2' : '1',\n textAlign: isSmall ? 'center' : 'left',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Title\n data-testid={CARD_V2_DATA_TESTID.CARD_HEADER}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {title}\n </DSTypography>\n ) : (\n <DSTruncatedTooltipText value={title} />\n )}\n </Title>\n {description && (\n <Description getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {description}\n </DSTypography>\n ) : (\n <DSTruncatedTooltipText value={description} />\n )}\n </Description>\n )}\n </MainSection>\n\n {Array.isArray(rightAddon) && (\n <RightAddonSection\n style={{\n gridColumn: isSmall ? '1' : '3',\n gridRow: isSmall ? '3' : '1',\n justifySelf: isSmall ? 'center' : 'end',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rightAddon[0] ? (\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[0]}\n </RightAddon>\n ) : null}\n {rightAddon[1] ? (\n <>\n {rightAddon.length > 1 && (\n <Separator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n )}\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[1]}\n </RightAddon>\n </>\n ) : null}\n </RightAddonSection>\n )}\n </CardContainer>\n </TooltipTextProvider>\n );\n};\n\nDSCardV2.displayName = DSCardV2Name;\nconst DSCardV2WithSchema = describe(DSCardV2);\nDSCardV2WithSchema.propTypes = DSCardV2PropTypesSchema;\n\nexport { DSCardV2, DSCardV2WithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA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5B,SAAS,UAAU,MAAM;AAAA,cACzB,WAAW,UAAU,WAAW;AAAA,YAClC;AAAA,YACA;AAAA,YACA;AAAA,YAEA;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,eAAa,qCAAoB;AAAA,kBACjC;AAAA,kBACA;AAAA,kBAEC,qBACC,4CAAC,qCAAa,SAAS,yCAAoB,IAAI,IAAG,QAC/C,iBACH,IAEA,4CAAC,2DAAuB,OAAO,OAAO;AAAA;AAAA,cAE1C;AAAA,cACC,eACC,4CAAC,6BAAY,eAA8B,wBACxC,qBACC,4CAAC,qCAAa,SAAS,yCAAoB,IAAI,IAAG,QAC/C,uBACH,IAEA,4CAAC,2DAAuB,OAAO,aAAa,GAEhD;AAAA;AAAA;AAAA,QAEJ;AAAA,QAEC,MAAM,QAAQ,UAAU,KACvB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,YAAY,UAAU,MAAM;AAAA,cAC5B,SAAS,UAAU,MAAM;AAAA,cACzB,aAAa,UAAU,WAAW;AAAA,YACpC;AAAA,YACA;AAAA,YACA;AAAA,YAEC;AAAA,yBAAW,CAAC,IACX,4CAAC,4BAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf,IACE;AAAA,cACH,WAAW,CAAC,IACX,4EACG;AAAA,2BAAW,SAAS,KACnB,4CAAC,2BAAU,eAA8B,wBAAgD;AAAA,gBAE3F,4CAAC,4BAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf;AAAA,iBACF,IACE;AAAA;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;AAEA,SAAS,cAAc;AACvB,MAAM,yBAAqB,kCAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
4
+ "sourcesContent": ["import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { TruncatedTooltipText } from './TruncatedTooltipText.js';\nimport { DSTypography, TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useGetLayoutMode } from '@elliemae/ds-system';\nimport { type DSCardV2T, DSCardV2PropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2 } from './config/useCardV2.js';\nimport { DSCardV2Name, CARD_V2_DATA_TESTID } from './constants/index.js';\nimport {\n CardContainer,\n LeftAddon,\n MainSection,\n Description,\n RightAddonSection,\n RightAddon,\n Separator,\n Title,\n} from './styles.js';\n\nconst getCols = (rightAddon: DSCardV2T.OptionalProps['rightAddon'], isSmall: boolean) => {\n if (isSmall) return ['1fr'];\n if (!rightAddon) return ['1fr'];\n return ['auto', 'minmax(0, 1fr)', 'auto'];\n};\n\nconst getRows = (isSmall: boolean) => {\n if (isSmall) return ['auto', 'auto', 'auto'];\n return ['auto'];\n};\n// eslint-disable-next-line complexity\nconst DSCardV2: React.ComponentType<DSCardV2T.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2(props);\n const { hasBorder, title, leftAddon, rightAddon, description, wrapText } = propsWithDefault;\n const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);\n const layoutMode = useGetLayoutMode();\n const isSmall = layoutMode === 's' || layoutMode === 'xs';\n\n return (\n <CardContainer\n data-component-selector=\"ds-card-v2\"\n data-testid={CARD_V2_DATA_TESTID.CARD_CONTAINER} // we must keep this explicit to avoid the breaking changes\n {...globalProps}\n {...xstyledProps}\n hasBorder={hasBorder}\n cols={getCols(rightAddon, isSmall)}\n rows={getRows(isSmall)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon && (\n <LeftAddon\n style={{\n gridColumn: isSmall ? '1' : '1',\n gridRow: isSmall ? '1' : '1',\n justifySelf: isSmall ? 'center' : 'start',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon}\n </LeftAddon>\n )}\n <MainSection\n style={{\n gridColumn: isSmall ? '1' : '2',\n gridRow: isSmall ? '2' : '1',\n textAlign: isSmall ? 'center' : 'left',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Title\n data-testid={CARD_V2_DATA_TESTID.CARD_HEADER}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {title}\n </DSTypography>\n ) : (\n <TruncatedTooltipText value={title} />\n )}\n </Title>\n {description && (\n <Description getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {description}\n </DSTypography>\n ) : (\n <TruncatedTooltipText value={description} />\n )}\n </Description>\n )}\n </MainSection>\n\n {Array.isArray(rightAddon) && (\n <RightAddonSection\n style={{\n gridColumn: isSmall ? '1' : '3',\n gridRow: isSmall ? '3' : '1',\n justifySelf: isSmall ? 'center' : 'end',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rightAddon[0] ? (\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[0]}\n </RightAddon>\n ) : null}\n {rightAddon[1] ? (\n <>\n {rightAddon.length > 1 && (\n <Separator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n )}\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[1]}\n </RightAddon>\n </>\n ) : null}\n </RightAddonSection>\n )}\n </CardContainer>\n );\n};\n\nDSCardV2.displayName = DSCardV2Name;\nconst DSCardV2WithSchema = describe(DSCardV2);\nDSCardV2WithSchema.propTypes = DSCardV2PropTypesSchema;\n\nexport { DSCardV2, DSCardV2WithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;A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ACzB,WAAW,UAAU,WAAW;AAAA,YAClC;AAAA,YACA;AAAA,YACA;AAAA,YAEA;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,eAAa,qCAAoB;AAAA,kBACjC;AAAA,kBACA;AAAA,kBAEC,qBACC,4CAAC,qCAAa,SAAS,yCAAoB,IAAI,IAAG,QAC/C,iBACH,IAEA,4CAAC,oDAAqB,OAAO,OAAO;AAAA;AAAA,cAExC;AAAA,cACC,eACC,4CAAC,6BAAY,eAA8B,wBACxC,qBACC,4CAAC,qCAAa,SAAS,yCAAoB,IAAI,IAAG,QAC/C,uBACH,IAEA,4CAAC,oDAAqB,OAAO,aAAa,GAE9C;AAAA;AAAA;AAAA,QAEJ;AAAA,QAEC,MAAM,QAAQ,UAAU,KACvB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,YAAY,UAAU,MAAM;AAAA,cAC5B,SAAS,UAAU,MAAM;AAAA,cACzB,aAAa,UAAU,WAAW;AAAA,YACpC;AAAA,YACA;AAAA,YACA;AAAA,YAEC;AAAA,yBAAW,CAAC,IACX,4CAAC,4BAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf,IACE;AAAA,cACH,WAAW,CAAC,IACX,4EACG;AAAA,2BAAW,SAAS,KACnB,4CAAC,2BAAU,eAA8B,wBAAgD;AAAA,gBAE3F,4CAAC,4BAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf;AAAA,iBACF,IACE;AAAA;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EAEN;AAEJ;AAEA,SAAS,cAAc;AACvB,MAAM,yBAAqB,kCAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var TruncatedTooltipText_exports = {};
30
+ __export(TruncatedTooltipText_exports, {
31
+ TruncatedTooltipText: () => TruncatedTooltipText,
32
+ default: () => TruncatedTooltipText_default
33
+ });
34
+ module.exports = __toCommonJS(TruncatedTooltipText_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_react = require("react");
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_ds_floating_context = require("@elliemae/ds-floating-context");
40
+ const TruncatedSpan = import_ds_system.styled.span`
41
+ text-overflow: ellipsis;
42
+ white-space: nowrap;
43
+ overflow: hidden;
44
+ display: inline-block;
45
+ max-width: 100%;
46
+ `;
47
+ const TooltipContainer = import_ds_system.styled.div`
48
+ text-align: left;
49
+ min-width: ${({ theme }) => theme.space.l};
50
+ max-width: 250px;
51
+ min-height: 30px;
52
+ display: grid;
53
+ align-items: center;
54
+ padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xs}`};
55
+ position: relative;
56
+ background-color: white;
57
+ border-radius: 2px;
58
+ font-size: 13px;
59
+ color: ${({ theme }) => theme.colors.neutral[600]};
60
+ pointer-events: none;
61
+ `;
62
+ const TruncatedTooltipText = ({ value = "", placement = "top" }) => {
63
+ const [showTooltip, setShowTooltip] = (0, import_react.useState)(false);
64
+ const { refs, floatingStyles, arrowStyles, context } = (0, import_ds_floating_context.useFloatingContext)({
65
+ placement,
66
+ externallyControlledIsOpen: showTooltip,
67
+ withoutAnimation: true
68
+ });
69
+ const handleMouseEnter = (0, import_react.useCallback)((e) => {
70
+ const el = e.currentTarget;
71
+ setShowTooltip(el.offsetWidth < el.scrollWidth);
72
+ }, []);
73
+ const handleMouseLeave = (0, import_react.useCallback)(() => {
74
+ setShowTooltip(false);
75
+ }, []);
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
77
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TruncatedSpan, { innerRef: refs.setReference, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: value }),
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
+ import_ds_floating_context.FloatingWrapper,
80
+ {
81
+ innerRef: refs.setFloating,
82
+ isOpen: showTooltip,
83
+ floatingStyles,
84
+ context,
85
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipContainer, { children: [
86
+ value,
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_floating_context.PopoverArrow, { ...arrowStyles })
88
+ ] })
89
+ }
90
+ )
91
+ ] });
92
+ };
93
+ var TruncatedTooltipText_default = TruncatedTooltipText;
94
+ //# sourceMappingURL=TruncatedTooltipText.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/TruncatedTooltipText.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useCallback, useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport {\n useFloatingContext,\n FloatingWrapper,\n PopoverArrow,\n type DSHookFloatingContextT,\n} from '@elliemae/ds-floating-context';\n\nconst TruncatedSpan = styled.span`\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: inline-block;\n max-width: 100%;\n`;\n\n// Matches DSTooltipV3's StyledTooltipContainer styles for visual consistency\nconst TooltipContainer = styled.div`\n text-align: left;\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 pointer-events: none;\n`;\n\ninterface TruncatedTooltipTextProps {\n value?: string;\n placement?: DSHookFloatingContextT.PopperPlacementsT;\n}\n\nconst TruncatedTooltipText = ({ value = '', placement = 'top' }: TruncatedTooltipTextProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n\n const { refs, floatingStyles, arrowStyles, context } = useFloatingContext({\n placement,\n externallyControlledIsOpen: showTooltip,\n withoutAnimation: true,\n });\n\n const handleMouseEnter = useCallback((e: React.MouseEvent<HTMLSpanElement>) => {\n const el = e.currentTarget;\n setShowTooltip(el.offsetWidth < el.scrollWidth);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setShowTooltip(false);\n }, []);\n\n return (\n <>\n <TruncatedSpan innerRef={refs.setReference} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n {value}\n </TruncatedSpan>\n <FloatingWrapper\n innerRef={refs.setFloating}\n isOpen={showTooltip}\n floatingStyles={floatingStyles}\n context={context}\n >\n <TooltipContainer>\n {value}\n <PopoverArrow {...arrowStyles} />\n </TooltipContainer>\n </FloatingWrapper>\n </>\n );\n};\n\nexport { TruncatedTooltipText };\nexport default TruncatedTooltipText;\n", "import * as React from 'react';\nexport { React };\n"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AAa;AAAA,WACjC;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAGA,IAAO,+BAAQ;",
6
+ "names": []
7
+ }
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { describe, useOwnerProps } from "@elliemae/ds-props-helpers";
4
- import { DSTruncatedTooltipText, TooltipTextProvider } from "@elliemae/ds-truncated-tooltip-text";
4
+ import { TruncatedTooltipText } from "./TruncatedTooltipText.js";
5
5
  import { DSTypography, TYPOGRAPHY_VARIANTS } from "@elliemae/ds-typography";
6
6
  import { useGetLayoutMode } from "@elliemae/ds-system";
7
7
  import { DSCardV2PropTypesSchema } from "./react-desc-prop-types.js";
@@ -32,7 +32,7 @@ const DSCardV2 = (props) => {
32
32
  const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);
33
33
  const layoutMode = useGetLayoutMode();
34
34
  const isSmall = layoutMode === "s" || layoutMode === "xs";
35
- return /* @__PURE__ */ jsx(TooltipTextProvider, { children: /* @__PURE__ */ jsxs(
35
+ return /* @__PURE__ */ jsxs(
36
36
  CardContainer,
37
37
  {
38
38
  "data-component-selector": "ds-card-v2",
@@ -75,10 +75,10 @@ const DSCardV2 = (props) => {
75
75
  "data-testid": CARD_V2_DATA_TESTID.CARD_HEADER,
76
76
  getOwnerProps,
77
77
  getOwnerPropsArguments,
78
- children: wrapText ? /* @__PURE__ */ jsx(DSTypography, { variant: TYPOGRAPHY_VARIANTS.B1, as: "span", children: title }) : /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: title })
78
+ children: wrapText ? /* @__PURE__ */ jsx(DSTypography, { variant: TYPOGRAPHY_VARIANTS.B1, as: "span", children: title }) : /* @__PURE__ */ jsx(TruncatedTooltipText, { value: title })
79
79
  }
80
80
  ),
81
- description && /* @__PURE__ */ jsx(Description, { getOwnerProps, getOwnerPropsArguments, children: wrapText ? /* @__PURE__ */ jsx(DSTypography, { variant: TYPOGRAPHY_VARIANTS.B1, as: "span", children: description }) : /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: description }) })
81
+ description && /* @__PURE__ */ jsx(Description, { getOwnerProps, getOwnerPropsArguments, children: wrapText ? /* @__PURE__ */ jsx(DSTypography, { variant: TYPOGRAPHY_VARIANTS.B1, as: "span", children: description }) : /* @__PURE__ */ jsx(TruncatedTooltipText, { value: description }) })
82
82
  ]
83
83
  }
84
84
  ),
@@ -103,7 +103,7 @@ const DSCardV2 = (props) => {
103
103
  )
104
104
  ]
105
105
  }
106
- ) });
106
+ );
107
107
  };
108
108
  DSCardV2.displayName = DSCardV2Name;
109
109
  const DSCardV2WithSchema = describe(DSCardV2);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardV2.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { DSTypography, TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useGetLayoutMode } from '@elliemae/ds-system';\nimport { type DSCardV2T, DSCardV2PropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2 } from './config/useCardV2.js';\nimport { DSCardV2Name, CARD_V2_DATA_TESTID } from './constants/index.js';\nimport {\n CardContainer,\n LeftAddon,\n MainSection,\n Description,\n RightAddonSection,\n RightAddon,\n Separator,\n Title,\n} from './styles.js';\n\nconst getCols = (rightAddon: DSCardV2T.OptionalProps['rightAddon'], isSmall: boolean) => {\n if (isSmall) return ['1fr'];\n if (!rightAddon) return ['1fr'];\n return ['auto', 'minmax(0, 1fr)', 'auto'];\n};\n\nconst getRows = (isSmall: boolean) => {\n if (isSmall) return ['auto', 'auto', 'auto'];\n return ['auto'];\n};\n// eslint-disable-next-line complexity\nconst DSCardV2: React.ComponentType<DSCardV2T.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2(props);\n const { hasBorder, title, leftAddon, rightAddon, description, wrapText } = propsWithDefault;\n const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);\n const layoutMode = useGetLayoutMode();\n const isSmall = layoutMode === 's' || layoutMode === 'xs';\n\n return (\n <TooltipTextProvider>\n <CardContainer\n data-component-selector=\"ds-card-v2\"\n data-testid={CARD_V2_DATA_TESTID.CARD_CONTAINER} // we must keep this explicit to avoid the breaking changes\n {...globalProps}\n {...xstyledProps}\n hasBorder={hasBorder}\n cols={getCols(rightAddon, isSmall)}\n rows={getRows(isSmall)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon && (\n <LeftAddon\n style={{\n gridColumn: isSmall ? '1' : '1',\n gridRow: isSmall ? '1' : '1',\n justifySelf: isSmall ? 'center' : 'start',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon}\n </LeftAddon>\n )}\n <MainSection\n style={{\n gridColumn: isSmall ? '1' : '2',\n gridRow: isSmall ? '2' : '1',\n textAlign: isSmall ? 'center' : 'left',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Title\n data-testid={CARD_V2_DATA_TESTID.CARD_HEADER}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {title}\n </DSTypography>\n ) : (\n <DSTruncatedTooltipText value={title} />\n )}\n </Title>\n {description && (\n <Description getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {description}\n </DSTypography>\n ) : (\n <DSTruncatedTooltipText value={description} />\n )}\n </Description>\n )}\n </MainSection>\n\n {Array.isArray(rightAddon) && (\n <RightAddonSection\n style={{\n gridColumn: isSmall ? '1' : '3',\n gridRow: isSmall ? '3' : '1',\n justifySelf: isSmall ? 'center' : 'end',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rightAddon[0] ? (\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[0]}\n </RightAddon>\n ) : null}\n {rightAddon[1] ? (\n <>\n {rightAddon.length > 1 && (\n <Separator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n )}\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[1]}\n </RightAddon>\n </>\n ) : null}\n </RightAddonSection>\n )}\n </CardContainer>\n </TooltipTextProvider>\n );\n};\n\nDSCardV2.displayName = DSCardV2Name;\nconst DSCardV2WithSchema = describe(DSCardV2);\nDSCardV2WithSchema.propTypes = DSCardV2PropTypesSchema;\n\nexport { DSCardV2, DSCardV2WithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACmDb,SA+DI,UA/DJ,KAYF,YAZE;AAlDV,SAAS,UAAU,qBAAqB;AACxC,SAAS,wBAAwB,2BAA2B;AAC5D,SAAS,cAAc,2BAA2B;AAClD,SAAS,wBAAwB;AACjC,SAAyB,+BAA+B;AACxD,SAAS,iBAAiB;AAC1B,SAAS,cAAc,2BAA2B;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,UAAU,CAAC,YAAmD,YAAqB;AACvF,MAAI,QAAS,QAAO,CAAC,KAAK;AAC1B,MAAI,CAAC,WAAY,QAAO,CAAC,KAAK;AAC9B,SAAO,CAAC,QAAQ,kBAAkB,MAAM;AAC1C;AAEA,MAAM,UAAU,CAAC,YAAqB;AACp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AS,oBAAoB,IAAI,IAAG,QAC/C,uBACH,IAEA,oBAAC,0BAAuB,OAAO,aAAa,GAEhD;AAAA;AAAA;AAAA,QAEJ;AAAA,QAEC,MAAM,QAAQ,UAAU,KACvB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,YAAY,UAAU,MAAM;AAAA,cAC5B,SAAS,UAAU,MAAM;AAAA,cACzB,aAAa,UAAU,WAAW;AAAA,YACpC;AAAA,YACA;AAAA,YACA;AAAA,YAEC;AAAA,yBAAW,CAAC,IACX,oBAAC,cAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf,IACE;AAAA,cACH,WAAW,CAAC,IACX,iCACG;AAAA,2BAAW,SAAS,KACnB,oBAAC,aAAU,eAA8B,wBAAgD;AAAA,gBAE3F,oBAAC,cAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf;AAAA,iBACF,IACE;AAAA;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EAEJ,GACF;AAEJ;AAEA,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport { TruncatedTooltipText } from './TruncatedTooltipText.js';\nimport { DSTypography, TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useGetLayoutMode } from '@elliemae/ds-system';\nimport { type DSCardV2T, DSCardV2PropTypesSchema } from './react-desc-prop-types.js';\nimport { useCardV2 } from './config/useCardV2.js';\nimport { DSCardV2Name, CARD_V2_DATA_TESTID } from './constants/index.js';\nimport {\n CardContainer,\n LeftAddon,\n MainSection,\n Description,\n RightAddonSection,\n RightAddon,\n Separator,\n Title,\n} from './styles.js';\n\nconst getCols = (rightAddon: DSCardV2T.OptionalProps['rightAddon'], isSmall: boolean) => {\n if (isSmall) return ['1fr'];\n if (!rightAddon) return ['1fr'];\n return ['auto', 'minmax(0, 1fr)', 'auto'];\n};\n\nconst getRows = (isSmall: boolean) => {\n if (isSmall) return ['auto', 'auto', 'auto'];\n return ['auto'];\n};\n// eslint-disable-next-line complexity\nconst DSCardV2: React.ComponentType<DSCardV2T.Props> = (props) => {\n const { propsWithDefault, globalProps, xstyledProps } = useCardV2(props);\n const { hasBorder, title, leftAddon, rightAddon, description, wrapText } = propsWithDefault;\n const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);\n const layoutMode = useGetLayoutMode();\n const isSmall = layoutMode === 's' || layoutMode === 'xs';\n\n return (\n <CardContainer\n data-component-selector=\"ds-card-v2\"\n data-testid={CARD_V2_DATA_TESTID.CARD_CONTAINER} // we must keep this explicit to avoid the breaking changes\n {...globalProps}\n {...xstyledProps}\n hasBorder={hasBorder}\n cols={getCols(rightAddon, isSmall)}\n rows={getRows(isSmall)}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon && (\n <LeftAddon\n style={{\n gridColumn: isSmall ? '1' : '1',\n gridRow: isSmall ? '1' : '1',\n justifySelf: isSmall ? 'center' : 'start',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {leftAddon}\n </LeftAddon>\n )}\n <MainSection\n style={{\n gridColumn: isSmall ? '1' : '2',\n gridRow: isSmall ? '2' : '1',\n textAlign: isSmall ? 'center' : 'left',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Title\n data-testid={CARD_V2_DATA_TESTID.CARD_HEADER}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {title}\n </DSTypography>\n ) : (\n <TruncatedTooltipText value={title} />\n )}\n </Title>\n {description && (\n <Description getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {wrapText ? (\n <DSTypography variant={TYPOGRAPHY_VARIANTS.B1} as=\"span\">\n {description}\n </DSTypography>\n ) : (\n <TruncatedTooltipText value={description} />\n )}\n </Description>\n )}\n </MainSection>\n\n {Array.isArray(rightAddon) && (\n <RightAddonSection\n style={{\n gridColumn: isSmall ? '1' : '3',\n gridRow: isSmall ? '3' : '1',\n justifySelf: isSmall ? 'center' : 'end',\n }}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rightAddon[0] ? (\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[0]}\n </RightAddon>\n ) : null}\n {rightAddon[1] ? (\n <>\n {rightAddon.length > 1 && (\n <Separator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n )}\n <RightAddon getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n {rightAddon[1]}\n </RightAddon>\n </>\n ) : null}\n </RightAddonSection>\n )}\n </CardContainer>\n );\n};\n\nDSCardV2.displayName = DSCardV2Name;\nconst DSCardV2WithSchema = describe(DSCardV2);\nDSCardV2WithSchema.propTypes = DSCardV2PropTypesSchema;\n\nexport { DSCardV2, DSCardV2WithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkDb,SA+DI,UA/DJ,KAYF,YAZE;AAjDV,SAAS,UAAU,qBAAqB;AACxC,SAAS,4BAA4B;AACrC,SAAS,cAAc,2BAA2B;AAClD,SAAS,wBAAwB;AACjC,SAAyB,+BAA+B;AACxD,SAAS,iBAAiB;AAC1B,SAAS,cAAc,2BAA2B;AAClD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,UAAU,CAAC,YAAmD,YAAqB;AACvF,MAAI,QAAS,QAAO,CAAC,KAAK;AAC1B,MAAI,CAAC,WAAY,QAAO,CAAC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AA,cAExC;AAAA,cACC,eACC,oBAAC,eAAY,eAA8B,wBACxC,qBACC,oBAAC,gBAAa,SAAS,oBAAoB,IAAI,IAAG,QAC/C,uBACH,IAEA,oBAAC,wBAAqB,OAAO,aAAa,GAE9C;AAAA;AAAA;AAAA,QAEJ;AAAA,QAEC,MAAM,QAAQ,UAAU,KACvB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,cACL,YAAY,UAAU,MAAM;AAAA,cAC5B,SAAS,UAAU,MAAM;AAAA,cACzB,aAAa,UAAU,WAAW;AAAA,YACpC;AAAA,YACA;AAAA,YACA;AAAA,YAEC;AAAA,yBAAW,CAAC,IACX,oBAAC,cAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf,IACE;AAAA,cACH,WAAW,CAAC,IACX,iCACG;AAAA,2BAAW,SAAS,KACnB,oBAAC,aAAU,eAA8B,wBAAgD;AAAA,gBAE3F,oBAAC,cAAW,eAA8B,wBACvC,qBAAW,CAAC,GACf;AAAA,iBACF,IACE;AAAA;AAAA;AAAA,QACN;AAAA;AAAA;AAAA,EAEN;AAEJ;AAEA,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,68 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useCallback, useState } from "react";
4
+ import { styled } from "@elliemae/ds-system";
5
+ import {
6
+ useFloatingContext,
7
+ FloatingWrapper,
8
+ PopoverArrow
9
+ } from "@elliemae/ds-floating-context";
10
+ const TruncatedSpan = styled.span`
11
+ text-overflow: ellipsis;
12
+ white-space: nowrap;
13
+ overflow: hidden;
14
+ display: inline-block;
15
+ max-width: 100%;
16
+ `;
17
+ const TooltipContainer = styled.div`
18
+ text-align: left;
19
+ min-width: ${({ theme }) => theme.space.l};
20
+ max-width: 250px;
21
+ min-height: 30px;
22
+ display: grid;
23
+ align-items: center;
24
+ padding: ${({ theme }) => `${theme.space.xxxs} ${theme.space.xs}`};
25
+ position: relative;
26
+ background-color: white;
27
+ border-radius: 2px;
28
+ font-size: 13px;
29
+ color: ${({ theme }) => theme.colors.neutral[600]};
30
+ pointer-events: none;
31
+ `;
32
+ const TruncatedTooltipText = ({ value = "", placement = "top" }) => {
33
+ const [showTooltip, setShowTooltip] = useState(false);
34
+ const { refs, floatingStyles, arrowStyles, context } = useFloatingContext({
35
+ placement,
36
+ externallyControlledIsOpen: showTooltip,
37
+ withoutAnimation: true
38
+ });
39
+ const handleMouseEnter = useCallback((e) => {
40
+ const el = e.currentTarget;
41
+ setShowTooltip(el.offsetWidth < el.scrollWidth);
42
+ }, []);
43
+ const handleMouseLeave = useCallback(() => {
44
+ setShowTooltip(false);
45
+ }, []);
46
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx(TruncatedSpan, { innerRef: refs.setReference, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: value }),
48
+ /* @__PURE__ */ jsx(
49
+ FloatingWrapper,
50
+ {
51
+ innerRef: refs.setFloating,
52
+ isOpen: showTooltip,
53
+ floatingStyles,
54
+ context,
55
+ children: /* @__PURE__ */ jsxs(TooltipContainer, { children: [
56
+ value,
57
+ /* @__PURE__ */ jsx(PopoverArrow, { ...arrowStyles })
58
+ ] })
59
+ }
60
+ )
61
+ ] });
62
+ };
63
+ var TruncatedTooltipText_default = TruncatedTooltipText;
64
+ export {
65
+ TruncatedTooltipText,
66
+ TruncatedTooltipText_default as default
67
+ };
68
+ //# sourceMappingURL=TruncatedTooltipText.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/TruncatedTooltipText.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useState } from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport {\n useFloatingContext,\n FloatingWrapper,\n PopoverArrow,\n type DSHookFloatingContextT,\n} from '@elliemae/ds-floating-context';\n\nconst TruncatedSpan = styled.span`\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n display: inline-block;\n max-width: 100%;\n`;\n\n// Matches DSTooltipV3's StyledTooltipContainer styles for visual consistency\nconst TooltipContainer = styled.div`\n text-align: left;\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 pointer-events: none;\n`;\n\ninterface TruncatedTooltipTextProps {\n value?: string;\n placement?: DSHookFloatingContextT.PopperPlacementsT;\n}\n\nconst TruncatedTooltipText = ({ value = '', placement = 'top' }: TruncatedTooltipTextProps) => {\n const [showTooltip, setShowTooltip] = useState(false);\n\n const { refs, floatingStyles, arrowStyles, context } = useFloatingContext({\n placement,\n externallyControlledIsOpen: showTooltip,\n withoutAnimation: true,\n });\n\n const handleMouseEnter = useCallback((e: React.MouseEvent<HTMLSpanElement>) => {\n const el = e.currentTarget;\n setShowTooltip(el.offsetWidth < el.scrollWidth);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setShowTooltip(false);\n }, []);\n\n return (\n <>\n <TruncatedSpan innerRef={refs.setReference} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>\n {value}\n </TruncatedSpan>\n <FloatingWrapper\n innerRef={refs.setFloating}\n isOpen={showTooltip}\n floatingStyles={floatingStyles}\n context={context}\n >\n <TooltipContainer>\n {value}\n <PopoverArrow {...arrowStyles} />\n </TooltipContainer>\n </FloatingWrapper>\n </>\n );\n};\n\nexport { TruncatedTooltipText };\nexport default TruncatedTooltipText;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;AC0DnB,mBACE,KASE,YAVJ;AA1DJ,SAAgB,aAAa,gBAAgB;AAC7C,SAAS,cAA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,8 @@
1
+ import { type DSHookFloatingContextT } from '@elliemae/ds-floating-context';
2
+ interface TruncatedTooltipTextProps {
3
+ value?: string;
4
+ placement?: DSHookFloatingContextT.PopperPlacementsT;
5
+ }
6
+ declare const TruncatedTooltipText: ({ value, placement }: TruncatedTooltipTextProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { TruncatedTooltipText };
8
+ export default TruncatedTooltipText;
@@ -10,9 +10,35 @@ export interface CardV2CTX {
10
10
  }
11
11
  export declare const useCardV2: (propsFromUser: DSCardV2T.Props) => {
12
12
  propsWithDefault: DSCardV2T.InternalProps;
13
- globalProps: Partial<Pick<DSGridT.Props, "form" | "list" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap"> & Omit<{
13
+ globalProps: Partial<Pick<DSGridT.Props, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "type" | "name" | "suppressHydrationWarning" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "target" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "download" | "hrefLang" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "async" | "defer" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "poster"> & Omit<{
14
+ cite?: string | undefined | undefined;
15
+ data?: string | undefined | undefined;
14
16
  form?: string | undefined | undefined;
15
- list?: string | undefined | undefined;
17
+ label?: string | undefined | undefined;
18
+ slot?: string | undefined | undefined;
19
+ span?: number | undefined | undefined;
20
+ style?: React.CSSProperties | undefined;
21
+ summary?: string | undefined | undefined;
22
+ title?: string | undefined | undefined;
23
+ pattern?: string | undefined | undefined;
24
+ type?: string | undefined | undefined;
25
+ name?: string | undefined | undefined;
26
+ suppressHydrationWarning?: boolean | undefined | undefined;
27
+ className?: string | undefined | undefined;
28
+ color?: string | undefined | undefined;
29
+ height?: number | string | undefined | undefined;
30
+ id?: string | undefined | undefined;
31
+ lang?: string | undefined | undefined;
32
+ max?: number | string | undefined | undefined;
33
+ media?: string | undefined | undefined;
34
+ method?: string | undefined | undefined;
35
+ min?: number | string | undefined | undefined;
36
+ target?: string | undefined | undefined;
37
+ width?: number | string | undefined | undefined;
38
+ role?: React.AriaRole | undefined;
39
+ tabIndex?: 0 | -1 | undefined;
40
+ crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
41
+ href?: string | undefined | undefined;
16
42
  "aria-activedescendant"?: string | undefined | undefined;
17
43
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
18
44
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
@@ -225,31 +251,25 @@ export declare const useCardV2: (propsFromUser: DSCardV2T.Props) => {
225
251
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
226
252
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
227
253
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
254
+ classID?: string | undefined | undefined;
255
+ useMap?: string | undefined | undefined;
256
+ wmode?: string | undefined | undefined;
228
257
  defaultChecked?: boolean | undefined | undefined;
229
258
  defaultValue?: string | number | readonly string[] | undefined;
230
259
  suppressContentEditableWarning?: boolean | undefined | undefined;
231
- suppressHydrationWarning?: boolean | undefined | undefined;
232
260
  accessKey?: string | undefined | undefined;
233
261
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
234
262
  autoFocus?: boolean | undefined | undefined;
235
- className?: string | undefined | undefined;
236
263
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
237
264
  contextMenu?: string | undefined | undefined;
238
265
  dir?: string | undefined | undefined;
239
266
  draggable?: (boolean | "true" | "false") | undefined;
240
267
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
241
268
  hidden?: boolean | undefined | undefined;
242
- id?: string | undefined | undefined;
243
- lang?: string | undefined | undefined;
244
269
  nonce?: string | undefined | undefined;
245
- slot?: string | undefined | undefined;
246
270
  spellCheck?: (boolean | "true" | "false") | undefined;
247
- style?: React.CSSProperties | undefined;
248
- tabIndex?: 0 | -1 | undefined;
249
- title?: string | undefined | undefined;
250
271
  translate?: "yes" | "no" | undefined | undefined;
251
272
  radioGroup?: string | undefined | undefined;
252
- role?: React.AriaRole | undefined;
253
273
  about?: string | undefined | undefined;
254
274
  content?: string | undefined | undefined;
255
275
  datatype?: string | undefined | undefined;
@@ -263,7 +283,6 @@ export declare const useCardV2: (propsFromUser: DSCardV2T.Props) => {
263
283
  vocab?: string | undefined | undefined;
264
284
  autoCorrect?: string | undefined | undefined;
265
285
  autoSave?: string | undefined | undefined;
266
- color?: string | undefined | undefined;
267
286
  itemProp?: string | undefined | undefined;
268
287
  itemScope?: boolean | undefined | undefined;
269
288
  itemType?: string | undefined | undefined;
@@ -276,105 +295,86 @@ export declare const useCardV2: (propsFromUser: DSCardV2T.Props) => {
276
295
  is?: string | undefined | undefined;
277
296
  exportparts?: string | undefined | undefined;
278
297
  part?: string | undefined | undefined;
279
- accept?: string | undefined | undefined;
280
- acceptCharset?: string | undefined | undefined;
281
- action?: string | undefined;
282
- allowFullScreen?: boolean | undefined | undefined;
283
- allowTransparency?: boolean | undefined | undefined;
298
+ download?: any;
299
+ hrefLang?: string | undefined | undefined;
284
300
  alt?: string | undefined | undefined;
285
- async?: boolean | undefined | undefined;
286
- autoComplete?: string | undefined | undefined;
301
+ coords?: string | undefined | undefined;
302
+ shape?: string | undefined | undefined;
287
303
  autoPlay?: boolean | undefined | undefined;
288
- capture?: boolean | "user" | "environment" | undefined | undefined;
289
- cellPadding?: number | string | undefined | undefined;
290
- cellSpacing?: number | string | undefined | undefined;
291
- charSet?: string | undefined | undefined;
292
- challenge?: string | undefined | undefined;
293
- checked?: boolean | undefined | undefined;
294
- cite?: string | undefined | undefined;
295
- classID?: string | undefined | undefined;
296
- cols?: number | undefined | undefined;
297
- colSpan?: number | undefined | undefined;
298
304
  controls?: boolean | undefined | undefined;
299
- coords?: string | undefined | undefined;
300
- crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
301
- data?: string | undefined | undefined;
302
- dateTime?: string | undefined | undefined;
303
- default?: boolean | undefined | undefined;
304
- defer?: boolean | undefined | undefined;
305
+ loop?: boolean | undefined | undefined;
306
+ mediaGroup?: string | undefined | undefined;
307
+ muted?: boolean | undefined | undefined;
308
+ playsInline?: boolean | undefined | undefined;
309
+ preload?: string | undefined | undefined;
310
+ src?: string | undefined | undefined;
305
311
  disabled?: boolean | undefined | undefined;
306
- download?: any;
307
- encType?: string | undefined | undefined;
308
312
  formAction?: string | undefined;
309
313
  formEncType?: string | undefined | undefined;
310
314
  formMethod?: string | undefined | undefined;
311
315
  formNoValidate?: boolean | undefined | undefined;
312
316
  formTarget?: string | undefined | undefined;
313
- frameBorder?: number | string | undefined | undefined;
314
- headers?: string | undefined | undefined;
315
- height?: number | string | undefined | undefined;
316
- high?: number | undefined | undefined;
317
- href?: string | undefined | undefined;
318
- hrefLang?: string | undefined | undefined;
319
- htmlFor?: string | undefined | undefined;
320
- httpEquiv?: string | undefined | undefined;
321
- integrity?: string | undefined | undefined;
322
- keyParams?: string | undefined | undefined;
323
- keyType?: string | undefined | undefined;
324
- kind?: string | undefined | undefined;
325
- label?: string | undefined | undefined;
326
- loop?: boolean | undefined | undefined;
327
- low?: number | undefined | undefined;
317
+ value?: string | number | readonly string[] | undefined;
318
+ dateTime?: string | undefined | undefined;
319
+ open?: boolean | undefined | undefined;
320
+ acceptCharset?: string | undefined | undefined;
321
+ action?: string | undefined;
322
+ autoComplete?: string | undefined | undefined;
323
+ encType?: string | undefined | undefined;
324
+ noValidate?: boolean | undefined | undefined;
328
325
  manifest?: string | undefined | undefined;
326
+ allowFullScreen?: boolean | undefined | undefined;
327
+ allowTransparency?: boolean | undefined | undefined;
328
+ frameBorder?: number | string | undefined | undefined;
329
329
  marginHeight?: number | undefined | undefined;
330
330
  marginWidth?: number | undefined | undefined;
331
- max?: number | string | undefined | undefined;
331
+ sandbox?: string | undefined | undefined;
332
+ scrolling?: string | undefined | undefined;
333
+ seamless?: boolean | undefined | undefined;
334
+ srcDoc?: string | undefined | undefined;
335
+ sizes?: string | undefined | undefined;
336
+ srcSet?: string | undefined | undefined;
337
+ accept?: string | undefined | undefined;
338
+ capture?: boolean | "user" | "environment" | undefined | undefined;
339
+ checked?: boolean | undefined | undefined;
340
+ list?: string | undefined | undefined;
332
341
  maxLength?: number | undefined | undefined;
333
- media?: string | undefined | undefined;
334
- mediaGroup?: string | undefined | undefined;
335
- method?: string | undefined | undefined;
336
- min?: number | string | undefined | undefined;
337
342
  minLength?: number | undefined | undefined;
338
343
  multiple?: boolean | undefined | undefined;
339
- muted?: boolean | undefined | undefined;
340
- name?: string | undefined | undefined;
341
- noValidate?: boolean | undefined | undefined;
342
- open?: boolean | undefined | undefined;
343
- optimum?: number | undefined | undefined;
344
- pattern?: string | undefined | undefined;
345
344
  placeholder?: string | undefined | undefined;
346
- playsInline?: boolean | undefined | undefined;
347
- poster?: string | undefined | undefined;
348
- preload?: string | undefined | undefined;
349
345
  readOnly?: boolean | undefined | undefined;
350
346
  required?: boolean | undefined | undefined;
347
+ size?: number | undefined | undefined;
348
+ step?: number | string | undefined | undefined;
349
+ challenge?: string | undefined | undefined;
350
+ keyType?: string | undefined | undefined;
351
+ keyParams?: string | undefined | undefined;
352
+ htmlFor?: string | undefined | undefined;
353
+ integrity?: string | undefined | undefined;
354
+ charSet?: string | undefined | undefined;
355
+ httpEquiv?: string | undefined | undefined;
356
+ high?: number | undefined | undefined;
357
+ low?: number | undefined | undefined;
358
+ optimum?: number | undefined | undefined;
351
359
  reversed?: boolean | undefined | undefined;
352
- rows?: number | undefined | undefined;
360
+ start?: number | undefined | undefined;
361
+ selected?: boolean | undefined | undefined;
362
+ async?: boolean | undefined | undefined;
363
+ defer?: boolean | undefined | undefined;
364
+ scoped?: boolean | undefined | undefined;
365
+ cellPadding?: number | string | undefined | undefined;
366
+ cellSpacing?: number | string | undefined | undefined;
367
+ colSpan?: number | undefined | undefined;
368
+ headers?: string | undefined | undefined;
353
369
  rowSpan?: number | undefined | undefined;
354
- sandbox?: string | undefined | undefined;
355
370
  scope?: string | undefined | undefined;
356
- scoped?: boolean | undefined | undefined;
357
- scrolling?: string | undefined | undefined;
358
- seamless?: boolean | undefined | undefined;
359
- selected?: boolean | undefined | undefined;
360
- shape?: string | undefined | undefined;
361
- size?: number | undefined | undefined;
362
- sizes?: string | undefined | undefined;
363
- span?: number | undefined | undefined;
364
- src?: string | undefined | undefined;
365
- srcDoc?: string | undefined | undefined;
366
- srcLang?: string | undefined | undefined;
367
- srcSet?: string | undefined | undefined;
368
- start?: number | undefined | undefined;
369
- step?: number | string | undefined | undefined;
370
- summary?: string | undefined | undefined;
371
- target?: string | undefined | undefined;
372
- type?: string | undefined | undefined;
373
- useMap?: string | undefined | undefined;
374
- value?: string | number | readonly string[] | undefined;
375
- width?: number | string | undefined | undefined;
376
- wmode?: string | undefined | undefined;
371
+ cols?: number | undefined | undefined;
372
+ rows?: number | undefined | undefined;
377
373
  wrap?: string | undefined | undefined;
374
+ default?: boolean | undefined | undefined;
375
+ kind?: string | undefined | undefined;
376
+ srcLang?: string | undefined | undefined;
377
+ poster?: string | undefined | undefined;
378
378
  }, keyof DSGridT.Props>>;
379
379
  xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
380
380
  instanceUid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card-v2",
3
- "version": "3.70.0-next.3",
3
+ "version": "3.70.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card V2",
6
6
  "files": [
@@ -38,17 +38,17 @@
38
38
  "dependencies": {
39
39
  "@elliemae/ds-legacy-header": "1.0.16",
40
40
  "uid": "^2.0.2",
41
- "@elliemae/ds-grid": "3.70.0-next.3",
42
- "@elliemae/ds-truncated-tooltip-text": "3.70.0-next.3",
43
- "@elliemae/ds-props-helpers": "3.70.0-next.3",
44
- "@elliemae/ds-system": "3.70.0-next.3"
41
+ "@elliemae/ds-floating-context": "3.70.0-next.4",
42
+ "@elliemae/ds-grid": "3.70.0-next.4",
43
+ "@elliemae/ds-props-helpers": "3.70.0-next.4",
44
+ "@elliemae/ds-system": "3.70.0-next.4"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@xstyled/system": "~3.8.1",
48
48
  "jest": "^30.0.0",
49
49
  "styled-components": "~5.3.9",
50
- "@elliemae/ds-monorepo-devops": "3.70.0-next.3",
51
- "@elliemae/ds-icons": "3.70.0-next.3"
50
+ "@elliemae/ds-icons": "3.70.0-next.4",
51
+ "@elliemae/ds-monorepo-devops": "3.70.0-next.4"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^18.3.1",