@elliemae/ds-card-navigation 3.55.0-next.9 → 3.55.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/DSCardNavigation.js +40 -41
  2. package/dist/cjs/DSCardNavigation.js.map +2 -2
  3. package/dist/cjs/DescriptionComponent.js +79 -0
  4. package/dist/cjs/DescriptionComponent.js.map +7 -0
  5. package/dist/cjs/TitleComponent.js +51 -0
  6. package/dist/cjs/TitleComponent.js.map +7 -0
  7. package/dist/cjs/config/useCardNavigation.js +4 -19
  8. package/dist/cjs/config/useCardNavigation.js.map +2 -2
  9. package/dist/cjs/react-desc-prop-types.js +3 -3
  10. package/dist/cjs/react-desc-prop-types.js.map +2 -2
  11. package/dist/cjs/{parts/style.js → style.js} +34 -51
  12. package/dist/cjs/style.js.map +7 -0
  13. package/dist/esm/DSCardNavigation.js +49 -42
  14. package/dist/esm/DSCardNavigation.js.map +2 -2
  15. package/dist/esm/DescriptionComponent.js +49 -0
  16. package/dist/esm/DescriptionComponent.js.map +7 -0
  17. package/dist/esm/TitleComponent.js +21 -0
  18. package/dist/esm/TitleComponent.js.map +7 -0
  19. package/dist/esm/config/useCardNavigation.js +5 -20
  20. package/dist/esm/config/useCardNavigation.js.map +2 -2
  21. package/dist/esm/react-desc-prop-types.js +3 -3
  22. package/dist/esm/react-desc-prop-types.js.map +2 -2
  23. package/dist/esm/{parts/style.js → style.js} +34 -51
  24. package/dist/esm/style.js.map +7 -0
  25. package/dist/types/DSCardNavigation.d.ts +1 -1
  26. package/dist/types/DescriptionComponent.d.ts +4 -0
  27. package/dist/types/TitleComponent.d.ts +4 -0
  28. package/dist/types/config/useCardNavigation.d.ts +6 -7
  29. package/dist/types/{parts/style.d.ts → style.d.ts} +4 -9
  30. package/dist/types/tests/overflow/DSCardNavigationOverflowTestRenderer.d.ts +2 -0
  31. package/dist/types/tests/wraptext/DSCardNavigationWrapTextTestRenderer.d.ts +2 -0
  32. package/package.json +11 -11
  33. package/dist/cjs/parts/ActionsRegion.js +0 -63
  34. package/dist/cjs/parts/ActionsRegion.js.map +0 -7
  35. package/dist/cjs/parts/style.js.map +0 -7
  36. package/dist/cjs/parts/text-region/IconAndTextsRegion.js +0 -101
  37. package/dist/cjs/parts/text-region/IconAndTextsRegion.js.map +0 -7
  38. package/dist/cjs/parts/text-region/IconAndTextsRegionContent.js +0 -88
  39. package/dist/cjs/parts/text-region/IconAndTextsRegionContent.js.map +0 -7
  40. package/dist/esm/parts/ActionsRegion.js +0 -33
  41. package/dist/esm/parts/ActionsRegion.js.map +0 -7
  42. package/dist/esm/parts/style.js.map +0 -7
  43. package/dist/esm/parts/text-region/IconAndTextsRegion.js +0 -71
  44. package/dist/esm/parts/text-region/IconAndTextsRegion.js.map +0 -7
  45. package/dist/esm/parts/text-region/IconAndTextsRegionContent.js +0 -67
  46. package/dist/esm/parts/text-region/IconAndTextsRegionContent.js.map +0 -7
  47. package/dist/types/parts/ActionsRegion.d.ts +0 -8
  48. package/dist/types/parts/text-region/IconAndTextsRegion.d.ts +0 -13
  49. package/dist/types/parts/text-region/IconAndTextsRegionContent.d.ts +0 -15
  50. package/dist/types/tests/tooltip-tests/DSCardNavigation.tooltip.wrapText.interdependecy.test.playwright.d.ts +0 -1
  51. package/dist/types/tests/tooltip-tests/DSCardNavigationTooltipTestRenderer.d.ts +0 -1
  52. /package/dist/types/tests/{tooltip-tests/DSCardNavigation.tooltip.hover.test.playwright.d.ts → overflow/DSCardNavigation.overflow.test.playwright.d.ts} +0 -0
  53. /package/dist/types/tests/{tooltip-tests/DSCardNavigation.tooltip.keyboard.test.playwright.d.ts → wraptext/DSCardNavigation.wrapText.test.playwright.d.ts} +0 -0
@@ -1,51 +1,58 @@
1
1
  import * as React from "react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { describe, useOwnerProps } from "@elliemae/ds-props-helpers";
3
+ import { BUTTON_SIZES, BUTTON_TYPES, DSButtonV2 } from "@elliemae/ds-button-v2";
4
+ import { MoreOptionsVert } from "@elliemae/ds-icons";
5
+ import { describe } from "@elliemae/ds-props-helpers";
6
+ import { useMemo } from "react";
4
7
  import { useCardNavigation } from "./config/useCardNavigation.js";
5
8
  import { DSCardNavigationName } from "./constants/index.js";
6
9
  import { DSCardNavigationPropTypesSchema } from "./react-desc-prop-types.js";
7
- import { StyledCardNavigationBoxWrapper } from "./parts/style.js";
8
- import { IconAndTextsRegion } from "./parts/text-region/IconAndTextsRegion.js";
9
- import { ActionsRegion } from "./parts/ActionsRegion.js";
10
+ import {
11
+ StyledCardNavigationAction,
12
+ StyledCardNavigationActions,
13
+ StyledCardNavigationBoxWrapper,
14
+ StyledCardNavigationCentralContent,
15
+ StyledCardNavigationContent,
16
+ StyledCardNavigationContentTitleWrapper,
17
+ StyledCardNavigationIcon
18
+ } from "./style.js";
19
+ import { TitleComponent } from "./TitleComponent.js";
20
+ import { DescriptionComponent } from "./DescriptionComponent.js";
21
+ const mainIconColor = ["neutral", "0"];
10
22
  const DSCardNavigation = (props) => {
11
- const cardNavigationConfig = useCardNavigation(props);
12
- const {
13
- propsWithDefault,
14
- xstyledProps,
15
- globalProps,
16
- iconAndTextsRegionIsFocused,
17
- showFocusRingAroundAll,
18
- hideFocusRingAroundAll,
19
- instanceUid
20
- } = cardNavigationConfig;
21
- const { containerProps, title, description, type, Icon, actions, wrapText } = propsWithDefault;
22
- const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps(propsWithDefault);
23
- return /* @__PURE__ */ jsxs(
24
- StyledCardNavigationBoxWrapper,
25
- {
26
- ...globalProps,
27
- ...xstyledProps,
28
- ...containerProps,
29
- getOwnerProps,
30
- getOwnerPropsArguments,
31
- $isIconAndTextsRegionFocused: iconAndTextsRegionIsFocused,
32
- children: [
33
- /* @__PURE__ */ jsx(
34
- IconAndTextsRegion,
35
- {
36
- title,
37
- description,
38
- wrapText,
39
- type,
40
- Icon,
41
- showFocusRingAroundAll,
42
- hideFocusRingAroundAll
43
- }
44
- ),
45
- /* @__PURE__ */ jsx(ActionsRegion, { actions, instanceUid })
46
- ]
47
- }
48
- );
23
+ const { propsWithDefault, xstyledProps, instanceUid } = useCardNavigation(props);
24
+ const { containerProps, title, description, type, Icon, actions, wrapText, ...rest } = propsWithDefault;
25
+ const cols = useMemo(() => actions.length > 0 ? ["1fr", "min-content"] : ["1fr"], [actions.length]);
26
+ return /* @__PURE__ */ jsxs(StyledCardNavigationBoxWrapper, { tabIndex: 0, ...rest, ...xstyledProps, ...containerProps, children: [
27
+ /* @__PURE__ */ jsx(StyledCardNavigationIcon, { role: "button", "aria-label": title, $type: type, "data-type": type, children: /* @__PURE__ */ jsx(Icon, { size: "l", color: [...mainIconColor] }) }),
28
+ /* @__PURE__ */ jsxs(StyledCardNavigationCentralContent, { cols, children: [
29
+ /* @__PURE__ */ jsx(StyledCardNavigationContent, { children: /* @__PURE__ */ jsxs(StyledCardNavigationContentTitleWrapper, { children: [
30
+ /* @__PURE__ */ jsx(TitleComponent, { title, wrapText }),
31
+ /* @__PURE__ */ jsx(DescriptionComponent, { description, wrapText })
32
+ ] }) }),
33
+ actions.length > 0 && /* @__PURE__ */ jsx(StyledCardNavigationActions, { children: actions.map(
34
+ ({
35
+ icon = /* @__PURE__ */ jsx(MoreOptionsVert, { "aria-label": "More options" }),
36
+ Icon: ActionIcon,
37
+ onClick,
38
+ ...unexpectedButPreviouslySupportedOtherProps
39
+ }, index) => (
40
+ // eslint-disable-next-line react/no-array-index-key
41
+ /* @__PURE__ */ jsx(StyledCardNavigationAction, { children: /* @__PURE__ */ jsx(
42
+ DSButtonV2,
43
+ {
44
+ onClick,
45
+ "aria-label": "More options",
46
+ ...unexpectedButPreviouslySupportedOtherProps,
47
+ buttonType: BUTTON_TYPES.ICON,
48
+ size: BUTTON_SIZES.L,
49
+ children: ActionIcon ? /* @__PURE__ */ jsx(ActionIcon, {}) : icon
50
+ }
51
+ ) }, `${instanceUid}-${index}`)
52
+ )
53
+ ) })
54
+ ] })
55
+ ] });
49
56
  };
50
57
  DSCardNavigation.displayName = DSCardNavigationName;
51
58
  const DSCardNavigationWithSchema = describe(DSCardNavigation);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardNavigation.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe, useOwnerProps } from '@elliemae/ds-props-helpers';\nimport React from 'react';\nimport { useCardNavigation } from './config/useCardNavigation.js';\nimport { DSCardNavigationName } from './constants/index.js';\nimport { type DSCardNavigationT, DSCardNavigationPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledCardNavigationBoxWrapper } from './parts/style.js';\nimport { IconAndTextsRegion } from './parts/text-region/IconAndTextsRegion.js';\nimport { ActionsRegion } from './parts/ActionsRegion.js';\n\nconst DSCardNavigation: React.ComponentType<DSCardNavigationT.Props> = (props) => {\n const cardNavigationConfig = useCardNavigation(props);\n const {\n propsWithDefault,\n xstyledProps,\n globalProps,\n iconAndTextsRegionIsFocused,\n showFocusRingAroundAll,\n hideFocusRingAroundAll,\n instanceUid,\n } = cardNavigationConfig;\n const { containerProps, title, description, type, Icon, actions, wrapText } = propsWithDefault;\n\n const { getOwnerProps, getOwnerPropsArguments } = useOwnerProps<DSCardNavigationT.Props>(propsWithDefault);\n\n return (\n <StyledCardNavigationBoxWrapper\n {...globalProps}\n {...xstyledProps}\n {...containerProps}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n $isIconAndTextsRegionFocused={iconAndTextsRegionIsFocused}\n >\n <IconAndTextsRegion\n title={title}\n description={description}\n wrapText={wrapText}\n type={type}\n Icon={Icon}\n showFocusRingAroundAll={showFocusRingAroundAll}\n hideFocusRingAroundAll={hideFocusRingAroundAll}\n />\n <ActionsRegion actions={actions} instanceUid={instanceUid} />\n </StyledCardNavigationBoxWrapper>\n );\n};\n\nDSCardNavigation.displayName = DSCardNavigationName;\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = DSCardNavigationPropTypesSchema;\n\nexport { DSCardNavigation, DSCardNavigationWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACyBnB,SAQE,KARF;AAzBJ,SAAS,UAAU,qBAAqB;AAExC,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAiC,uCAAuC;AACxE,SAAS,sCAAsC;AAC/C,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAE9B,MAAM,mBAAiE,CAAC,UAAU;AAChF,QAAM,uBAAuB,kBAAkB,KAAK;AACpD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,EAAE,gBAAgB,OAAO,aAAa,MAAM,MAAM,SAAS,SAAS,IAAI;AAE9E,QAAM,EAAE,eAAe,uBAAuB,IAAI,cAAuC,gBAAgB;AAEzG,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,8BAA8B;AAAA,MAE9B;AAAA;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF;AAAA,QACA,oBAAC,iBAAc,SAAkB,aAA0B;AAAA;AAAA;AAAA,EAC7D;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { BUTTON_SIZES, BUTTON_TYPES, DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport React, { useMemo } from 'react';\nimport { useCardNavigation } from './config/useCardNavigation.js';\nimport { DSCardNavigationName } from './constants/index.js';\nimport { type DSCardNavigationT, DSCardNavigationPropTypesSchema } from './react-desc-prop-types.js';\nimport {\n StyledCardNavigationAction,\n StyledCardNavigationActions,\n StyledCardNavigationBoxWrapper,\n StyledCardNavigationCentralContent,\n StyledCardNavigationContent,\n StyledCardNavigationContentTitleWrapper,\n StyledCardNavigationIcon,\n} from './style.js';\nimport { TitleComponent } from './TitleComponent.js';\nimport { DescriptionComponent } from './DescriptionComponent.js';\n\nconst mainIconColor = ['neutral', '0'] as const;\n\nconst DSCardNavigation: React.FC<DSCardNavigationT.Props> = (props) => {\n const { propsWithDefault, xstyledProps, instanceUid } = useCardNavigation(props);\n const { containerProps, title, description, type, Icon, actions, wrapText, ...rest } = propsWithDefault;\n\n const cols = useMemo(() => (actions.length > 0 ? ['1fr', 'min-content'] : ['1fr']), [actions.length]);\n\n return (\n <StyledCardNavigationBoxWrapper tabIndex={0} {...rest} {...xstyledProps} {...containerProps}>\n <StyledCardNavigationIcon role=\"button\" aria-label={title} $type={type} data-type={type}>\n <Icon size=\"l\" color={[...mainIconColor]} />\n </StyledCardNavigationIcon>\n\n <StyledCardNavigationCentralContent cols={cols}>\n <StyledCardNavigationContent>\n <StyledCardNavigationContentTitleWrapper>\n <TitleComponent title={title} wrapText={wrapText} />\n <DescriptionComponent description={description} wrapText={wrapText} />\n </StyledCardNavigationContentTitleWrapper>\n </StyledCardNavigationContent>\n\n {actions.length > 0 && (\n <StyledCardNavigationActions>\n {actions.map(\n (\n {\n icon = <MoreOptionsVert aria-label=\"More options\" />,\n Icon: ActionIcon,\n onClick,\n ...unexpectedButPreviouslySupportedOtherProps\n },\n index,\n ) => (\n // eslint-disable-next-line react/no-array-index-key\n <StyledCardNavigationAction key={`${instanceUid}-${index}`}>\n <DSButtonV2\n onClick={onClick}\n aria-label=\"More options\"\n {...unexpectedButPreviouslySupportedOtherProps}\n buttonType={BUTTON_TYPES.ICON}\n size={BUTTON_SIZES.L}\n >\n {ActionIcon ? <ActionIcon /> : icon}\n </DSButtonV2>\n </StyledCardNavigationAction>\n ),\n )}\n </StyledCardNavigationActions>\n )}\n </StyledCardNavigationCentralContent>\n </StyledCardNavigationBoxWrapper>\n );\n};\n\nDSCardNavigation.displayName = DSCardNavigationName;\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = DSCardNavigationPropTypesSchema;\n\nexport { DSCardNavigation, DSCardNavigationWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;AC8Bf,cAKE,YALF;AA9BR,SAAS,cAAc,cAAc,kBAAkB;AACvD,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAgB,eAAe;AAC/B,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAiC,uCAAuC;AACxE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AAErC,MAAM,gBAAgB,CAAC,WAAW,GAAG;AAErC,MAAM,mBAAsD,CAAC,UAAU;AACrE,QAAM,EAAE,kBAAkB,cAAc,YAAY,IAAI,kBAAkB,KAAK;AAC/E,QAAM,EAAE,gBAAgB,OAAO,aAAa,MAAM,MAAM,SAAS,UAAU,GAAG,KAAK,IAAI;AAEvF,QAAM,OAAO,QAAQ,MAAO,QAAQ,SAAS,IAAI,CAAC,OAAO,aAAa,IAAI,CAAC,KAAK,GAAI,CAAC,QAAQ,MAAM,CAAC;AAEpG,SACE,qBAAC,kCAA+B,UAAU,GAAI,GAAG,MAAO,GAAG,cAAe,GAAG,gBAC3E;AAAA,wBAAC,4BAAyB,MAAK,UAAS,cAAY,OAAO,OAAO,MAAM,aAAW,MACjF,8BAAC,QAAK,MAAK,KAAI,OAAO,CAAC,GAAG,aAAa,GAAG,GAC5C;AAAA,IAEA,qBAAC,sCAAmC,MAClC;AAAA,0BAAC,+BACC,+BAAC,2CACC;AAAA,4BAAC,kBAAe,OAAc,UAAoB;AAAA,QAClD,oBAAC,wBAAqB,aAA0B,UAAoB;AAAA,SACtE,GACF;AAAA,MAEC,QAAQ,SAAS,KAChB,oBAAC,+BACE,kBAAQ;AAAA,QACP,CACE;AAAA,UACE,OAAO,oBAAC,mBAAgB,cAAW,gBAAe;AAAA,UAClD,MAAM;AAAA,UACN;AAAA,UACA,GAAG;AAAA,QACL,GACA;AAAA;AAAA,UAGA,oBAAC,8BACC;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,cAAW;AAAA,cACV,GAAG;AAAA,cACJ,YAAY,aAAa;AAAA,cACzB,MAAM,aAAa;AAAA,cAElB,uBAAa,oBAAC,cAAW,IAAK;AAAA;AAAA,UACjC,KAT+B,GAAG,WAAW,IAAI,KAAK,EAUxD;AAAA;AAAA,MAEJ,GACF;AAAA,OAEJ;AAAA,KACF;AAEJ;AAEA,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,49 @@
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useOnOverflowChange } from "@elliemae/ds-hooks-on-overflow-change";
4
+ import { DSTooltipV3 } from "@elliemae/ds-tooltip-v3";
5
+ import { TYPOGRAPHY_VARIANTS } from "@elliemae/ds-typography";
6
+ import { useState } from "react";
7
+ import { CARD_NAVIGATION_DATA_TESTID } from "./constants/index.js";
8
+ import { StyledCardNavigationContentDescription, StyledDescriptionTypography } from "./style.js";
9
+ const DescriptionComponent = (props) => {
10
+ const { description, wrapText } = props;
11
+ const [isDescriptionTruncating, setIsDescriptionTruncating] = useState(false);
12
+ const { handleRef: descriptionHandleRef } = useOnOverflowChange({
13
+ onOverflowStateChange: setIsDescriptionTruncating
14
+ });
15
+ if (wrapText)
16
+ return /* @__PURE__ */ jsx(StyledCardNavigationContentDescription, { children: /* @__PURE__ */ jsx(
17
+ StyledDescriptionTypography,
18
+ {
19
+ innerRef: descriptionHandleRef,
20
+ truncateWithEllipsis: true,
21
+ variant: TYPOGRAPHY_VARIANTS.B1,
22
+ "data-testid": CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT,
23
+ children: description
24
+ }
25
+ ) });
26
+ return /* @__PURE__ */ jsx(StyledCardNavigationContentDescription, { children: isDescriptionTruncating ? /* @__PURE__ */ jsx(DSTooltipV3, { text: description, children: /* @__PURE__ */ jsx(
27
+ StyledDescriptionTypography,
28
+ {
29
+ innerRef: descriptionHandleRef,
30
+ truncateWithEllipsis: true,
31
+ variant: TYPOGRAPHY_VARIANTS.B1,
32
+ "data-testid": CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT,
33
+ children: description
34
+ }
35
+ ) }) : /* @__PURE__ */ jsx(
36
+ StyledDescriptionTypography,
37
+ {
38
+ innerRef: descriptionHandleRef,
39
+ truncateWithEllipsis: true,
40
+ variant: TYPOGRAPHY_VARIANTS.B1,
41
+ "data-testid": CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT,
42
+ children: description
43
+ }
44
+ ) });
45
+ };
46
+ export {
47
+ DescriptionComponent
48
+ };
49
+ //# sourceMappingURL=DescriptionComponent.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DescriptionComponent.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useOnOverflowChange } from '@elliemae/ds-hooks-on-overflow-change';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip-v3';\nimport { TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useState } from 'react';\nimport { CARD_NAVIGATION_DATA_TESTID } from './constants/index.js';\nimport { StyledCardNavigationContentDescription, StyledDescriptionTypography } from './style.js';\n\nexport const DescriptionComponent = (props: { description: string; wrapText?: boolean }) => {\n const { description, wrapText } = props;\n\n const [isDescriptionTruncating, setIsDescriptionTruncating] = useState(false);\n\n const { handleRef: descriptionHandleRef } = useOnOverflowChange({\n onOverflowStateChange: setIsDescriptionTruncating,\n });\n\n if (wrapText)\n return (\n <StyledCardNavigationContentDescription>\n <StyledDescriptionTypography\n innerRef={descriptionHandleRef}\n truncateWithEllipsis\n variant={TYPOGRAPHY_VARIANTS.B1}\n data-testid={CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT}\n >\n {description}\n </StyledDescriptionTypography>\n </StyledCardNavigationContentDescription>\n );\n\n return (\n <StyledCardNavigationContentDescription>\n {isDescriptionTruncating ? (\n <DSTooltipV3 text={description}>\n <StyledDescriptionTypography\n innerRef={descriptionHandleRef}\n truncateWithEllipsis\n variant={TYPOGRAPHY_VARIANTS.B1}\n data-testid={CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT}\n >\n {description}\n </StyledDescriptionTypography>\n </DSTooltipV3>\n ) : (\n <StyledDescriptionTypography\n innerRef={descriptionHandleRef}\n truncateWithEllipsis\n variant={TYPOGRAPHY_VARIANTS.B1}\n data-testid={CARD_NAVIGATION_DATA_TESTID.DESCRIPTION_TEXT}\n >\n {description}\n </StyledDescriptionTypography>\n )}\n </StyledCardNavigationContentDescription>\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACmBf;AAnBR,SAAS,2BAA2B;AACpC,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AACpC,SAAS,gBAAgB;AACzB,SAAS,mCAAmC;AAC5C,SAAS,wCAAwC,mCAAmC;AAE7E,MAAM,uBAAuB,CAAC,UAAuD;AAC1F,QAAM,EAAE,aAAa,SAAS,IAAI;AAElC,QAAM,CAAC,yBAAyB,0BAA0B,IAAI,SAAS,KAAK;AAE5E,QAAM,EAAE,WAAW,qBAAqB,IAAI,oBAAoB;AAAA,IAC9D,uBAAuB;AAAA,EACzB,CAAC;AAED,MAAI;AACF,WACE,oBAAC,0CACC;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,sBAAoB;AAAA,QACpB,SAAS,oBAAoB;AAAA,QAC7B,eAAa,4BAA4B;AAAA,QAExC;AAAA;AAAA,IACH,GACF;AAGJ,SACE,oBAAC,0CACE,oCACC,oBAAC,eAAY,MAAM,aACjB;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,sBAAoB;AAAA,MACpB,SAAS,oBAAoB;AAAA,MAC7B,eAAa,4BAA4B;AAAA,MAExC;AAAA;AAAA,EACH,GACF,IAEA;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,sBAAoB;AAAA,MACpB,SAAS,oBAAoB;AAAA,MAC7B,eAAa,4BAA4B;AAAA,MAExC;AAAA;AAAA,EACH,GAEJ;AAEJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useOnOverflowChange } from "@elliemae/ds-hooks-on-overflow-change";
4
+ import { DSTooltipV3 } from "@elliemae/ds-tooltip-v3";
5
+ import { TYPOGRAPHY_VARIANTS } from "@elliemae/ds-typography";
6
+ import { useState } from "react";
7
+ import { StyledCardNavigationContentTitle, StyledTitleTypography } from "./style.js";
8
+ const TitleComponent = (props) => {
9
+ const { title, wrapText } = props;
10
+ const [isTitleTruncating, setIsTitleTruncating] = useState(false);
11
+ const { handleRef: titleHandleRef } = useOnOverflowChange({
12
+ onOverflowStateChange: setIsTitleTruncating
13
+ });
14
+ if (wrapText)
15
+ return /* @__PURE__ */ jsx(StyledCardNavigationContentTitle, { children: /* @__PURE__ */ jsx(StyledTitleTypography, { innerRef: titleHandleRef, truncateWithEllipsis: true, variant: TYPOGRAPHY_VARIANTS.B1, children: title }) });
16
+ return /* @__PURE__ */ jsx(StyledCardNavigationContentTitle, { children: isTitleTruncating ? /* @__PURE__ */ jsx(DSTooltipV3, { text: title, children: /* @__PURE__ */ jsx(StyledTitleTypography, { innerRef: titleHandleRef, truncateWithEllipsis: true, variant: TYPOGRAPHY_VARIANTS.B1, children: title }) }) : /* @__PURE__ */ jsx(StyledTitleTypography, { innerRef: titleHandleRef, truncateWithEllipsis: true, variant: TYPOGRAPHY_VARIANTS.B1, children: title }) });
17
+ };
18
+ export {
19
+ TitleComponent
20
+ };
21
+ //# sourceMappingURL=TitleComponent.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/TitleComponent.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useOnOverflowChange } from '@elliemae/ds-hooks-on-overflow-change';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip-v3';\nimport { TYPOGRAPHY_VARIANTS } from '@elliemae/ds-typography';\nimport { useState } from 'react';\nimport { StyledCardNavigationContentTitle, StyledTitleTypography } from './style.js';\n\nexport const TitleComponent = (props: { title: string; wrapText?: boolean }) => {\n const { title, wrapText } = props;\n\n const [isTitleTruncating, setIsTitleTruncating] = useState(false);\n\n const { handleRef: titleHandleRef } = useOnOverflowChange({\n onOverflowStateChange: setIsTitleTruncating,\n });\n\n if (wrapText)\n return (\n <StyledCardNavigationContentTitle>\n <StyledTitleTypography innerRef={titleHandleRef} truncateWithEllipsis variant={TYPOGRAPHY_VARIANTS.B1}>\n {title}\n </StyledTitleTypography>\n </StyledCardNavigationContentTitle>\n );\n\n return (\n <StyledCardNavigationContentTitle>\n {isTitleTruncating ? (\n <DSTooltipV3 text={title}>\n <StyledTitleTypography innerRef={titleHandleRef} truncateWithEllipsis variant={TYPOGRAPHY_VARIANTS.B1}>\n {title}\n </StyledTitleTypography>\n </DSTooltipV3>\n ) : (\n <StyledTitleTypography innerRef={titleHandleRef} truncateWithEllipsis variant={TYPOGRAPHY_VARIANTS.B1}>\n {title}\n </StyledTitleTypography>\n )}\n </StyledCardNavigationContentTitle>\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkBf;AAlBR,SAAS,2BAA2B;AACpC,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AACpC,SAAS,gBAAgB;AACzB,SAAS,kCAAkC,6BAA6B;AAEjE,MAAM,iBAAiB,CAAC,UAAiD;AAC9E,QAAM,EAAE,OAAO,SAAS,IAAI;AAE5B,QAAM,CAAC,mBAAmB,oBAAoB,IAAI,SAAS,KAAK;AAEhE,QAAM,EAAE,WAAW,eAAe,IAAI,oBAAoB;AAAA,IACxD,uBAAuB;AAAA,EACzB,CAAC;AAED,MAAI;AACF,WACE,oBAAC,oCACC,8BAAC,yBAAsB,UAAU,gBAAgB,sBAAoB,MAAC,SAAS,oBAAoB,IAChG,iBACH,GACF;AAGJ,SACE,oBAAC,oCACE,8BACC,oBAAC,eAAY,MAAM,OACjB,8BAAC,yBAAsB,UAAU,gBAAgB,sBAAoB,MAAC,SAAS,oBAAoB,IAChG,iBACH,GACF,IAEA,oBAAC,yBAAsB,UAAU,gBAAgB,sBAAoB,MAAC,SAAS,oBAAoB,IAChG,iBACH,GAEJ;AAEJ;",
6
+ "names": []
7
+ }
@@ -1,41 +1,26 @@
1
1
  import * as React from "react";
2
2
  import React2 from "react";
3
- import { useGetXstyledProps, useMemoMergePropsWithDefault, useGetGlobalAttributes } from "@elliemae/ds-props-helpers";
3
+ import { useGetXstyledProps, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
4
4
  import { uid } from "uid";
5
5
  import { DSCardNavigationPropTypes, defaultProps } from "../react-desc-prop-types.js";
6
6
  import { useValidateProps } from "./useValidateProps.js";
7
7
  const useCardNavigation = (propsFromUser) => {
8
8
  const propsWithDefault = useMemoMergePropsWithDefault(propsFromUser, defaultProps);
9
9
  useValidateProps(propsWithDefault, DSCardNavigationPropTypes);
10
- const { title, ...globalPropsWithoutReusedReservedKeywords } = propsWithDefault;
11
- const globalProps = useGetGlobalAttributes(globalPropsWithoutReusedReservedKeywords);
12
10
  const xstyledProps = useGetXstyledProps(propsWithDefault);
13
11
  const instanceUid = React2.useMemo(() => `ds-card-navigation-${uid(5)}`, []);
14
- const [iconAndTextsRegionIsFocused, setIconAndTextsRegionIsFocused] = React2.useState(false);
15
- const showFocusRingAroundAll = React2.useCallback(() => {
16
- setIconAndTextsRegionIsFocused(true);
17
- }, []);
18
- const hideFocusRingAroundAll = React2.useCallback(() => {
19
- setIconAndTextsRegionIsFocused(false);
20
- }, []);
21
12
  return React2.useMemo(
22
13
  () => ({
23
14
  propsWithDefault,
24
15
  xstyledProps,
25
- globalProps,
26
- instanceUid,
27
- iconAndTextsRegionIsFocused,
28
- showFocusRingAroundAll,
29
- hideFocusRingAroundAll
16
+ instanceUid
17
+ // ...eventHandlers,
30
18
  }),
31
19
  [
32
20
  propsWithDefault,
33
21
  xstyledProps,
34
- globalProps,
35
- instanceUid,
36
- iconAndTextsRegionIsFocused,
37
- showFocusRingAroundAll,
38
- hideFocusRingAroundAll
22
+ instanceUid
23
+ // eventHandlers,
39
24
  ]
40
25
  );
41
26
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useCardNavigation.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault, useGetGlobalAttributes } from '@elliemae/ds-props-helpers';\nimport { uid } from 'uid';\nimport { type DSCardNavigationT, DSCardNavigationPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface CardNavigationCTX {\n propsWithDefault: DSCardNavigationT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n globalProps: ReturnType<typeof useGetGlobalAttributes>;\n instanceUid: string;\n iconAndTextsRegionIsFocused: boolean;\n showFocusRingAroundAll: React.FocusEventHandler<HTMLDivElement>;\n hideFocusRingAroundAll: React.FocusEventHandler<HTMLDivElement>;\n}\n\nexport const useCardNavigation = (propsFromUser: DSCardNavigationT.Props): CardNavigationCTX => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardNavigationT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardNavigationPropTypes);\n // =============================================================================\n // GLOBAL ATTRIBUTES & XSTYLED PROPS\n // =============================================================================\n // exclude `title` as it is a reused reserved keyword from global props,\n // we intend to \"consume\" the title props, not \"spread\" in the html\n const { title, ...globalPropsWithoutReusedReservedKeywords } = propsWithDefault;\n const globalProps = useGetGlobalAttributes(globalPropsWithoutReusedReservedKeywords);\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n const instanceUid = React.useMemo(() => `ds-card-navigation-${uid(5)}`, []);\n const [iconAndTextsRegionIsFocused, setIconAndTextsRegionIsFocused] = React.useState(false);\n const showFocusRingAroundAll = React.useCallback<React.FocusEventHandler<HTMLDivElement>>(() => {\n setIconAndTextsRegionIsFocused(true);\n }, []);\n const hideFocusRingAroundAll = React.useCallback<React.FocusEventHandler<HTMLDivElement>>(() => {\n setIconAndTextsRegionIsFocused(false);\n }, []);\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n globalProps,\n instanceUid,\n iconAndTextsRegionIsFocused,\n showFocusRingAroundAll,\n hideFocusRingAroundAll,\n }),\n [\n propsWithDefault,\n xstyledProps,\n globalProps,\n instanceUid,\n iconAndTextsRegionIsFocused,\n showFocusRingAroundAll,\n hideFocusRingAroundAll,\n ],\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,oBAAoB,8BAA8B,8BAA8B;AACzF,SAAS,WAAW;AACpB,SAAiC,2BAA2B,oBAAoB;AAChF,SAAS,wBAAwB;AAY1B,MAAM,oBAAoB,CAAC,kBAA8D;AAI9F,QAAM,mBAAmB,6BAA8D,eAAe,YAAY;AAClH,mBAAiB,kBAAkB,yBAAyB;AAM5D,QAAM,EAAE,OAAO,GAAG,yCAAyC,IAAI;AAC/D,QAAM,cAAc,uBAAuB,wCAAwC;AACnF,QAAM,eAAe,mBAAmB,gBAAgB;AAIxD,QAAM,cAAcA,OAAM,QAAQ,MAAM,sBAAsB,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAC1E,QAAM,CAAC,6BAA6B,8BAA8B,IAAIA,OAAM,SAAS,KAAK;AAC1F,QAAM,yBAAyBA,OAAM,YAAqD,MAAM;AAC9F,mCAA+B,IAAI;AAAA,EACrC,GAAG,CAAC,CAAC;AACL,QAAM,yBAAyBA,OAAM,YAAqD,MAAM;AAC9F,mCAA+B,KAAK;AAAA,EACtC,GAAG,CAAC,CAAC;AAEL,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetXstyledProps, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { uid } from 'uid';\nimport { type DSCardNavigationT, DSCardNavigationPropTypes, defaultProps } from '../react-desc-prop-types.js';\nimport { useValidateProps } from './useValidateProps.js';\n\nexport interface CardNavigationCTX {\n propsWithDefault: DSCardNavigationT.InternalProps;\n xstyledProps: ReturnType<typeof useGetXstyledProps>;\n instanceUid: string;\n}\n\nexport const useCardNavigation = (propsFromUser: DSCardNavigationT.Props) => {\n // =============================================================================\n // MERGE WITH DEFAULT AND VALIDATE PROPS\n // =============================================================================\n const propsWithDefault = useMemoMergePropsWithDefault<DSCardNavigationT.InternalProps>(propsFromUser, defaultProps);\n useValidateProps(propsWithDefault, DSCardNavigationPropTypes);\n // =============================================================================\n // XSTYLED PROPS\n // =============================================================================\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n // =============================================================================\n // AD HOC PER COMPONENT LOGIC\n // =============================================================================\n // custom code goes here, this is an example\n const instanceUid = React.useMemo(() => `ds-card-navigation-${uid(5)}`, []);\n // =============================================================================\n // HELPERS HOOKS CONFIGS\n // =============================================================================\n // const eventHandlers = useEventHandlers({ propsWithDefault, instanceUid }); // <-- complex logic should be made atomics this way\n\n return React.useMemo(\n () => ({\n propsWithDefault,\n xstyledProps,\n instanceUid,\n // ...eventHandlers,\n }),\n [\n propsWithDefault,\n xstyledProps,\n instanceUid,\n // eventHandlers,\n ],\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,oBAAoB,oCAAoC;AACjE,SAAS,WAAW;AACpB,SAAiC,2BAA2B,oBAAoB;AAChF,SAAS,wBAAwB;AAQ1B,MAAM,oBAAoB,CAAC,kBAA2C;AAI3E,QAAM,mBAAmB,6BAA8D,eAAe,YAAY;AAClH,mBAAiB,kBAAkB,yBAAyB;AAI5D,QAAM,eAAe,mBAAmB,gBAAgB;AAKxD,QAAM,cAAcA,OAAM,QAAQ,MAAM,sBAAsB,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAM1E,SAAOA,OAAM;AAAA,IACX,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEF;AAAA,EACF;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -27,9 +27,9 @@ const DSCardNavigationPropTypes = {
27
27
  Icon: PropTypes.func.description("component that will be used to render the icon").defaultValue('()=><LoanProducts size="l" color={["neutral", 0]} />'),
28
28
  actions: PropTypes.arrayOf(
29
29
  PropTypes.shape({
30
- onClick: PropTypes.func.isRequired,
31
- icon: PropTypes.element,
32
- Icon: PropTypes.func
30
+ icon: PropTypes.element.deprecated({ version: "3.x" }),
31
+ Icon: PropTypes.func.description(""),
32
+ onClick: PropTypes.func
33
33
  })
34
34
  ).description("card navigation actions array").defaultValue("[]"),
35
35
  wrapText: PropTypes.bool.description("wrap text in the card navigation").defaultValue(false)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type React from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { LoanProducts } from '@elliemae/ds-icons';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { type SvgIconT } from '@elliemae/ds-icons';\nimport { DSCardNavigationName, CARD_NAVIGATION_SLOTS, CardNavigationTypesValues } from './constants/index.js';\n\nexport declare namespace DSCardNavigationT {\n export interface Action {\n icon?: React.ReactNode;\n Icon?: React.ComponentType<Record<string, never>>;\n onClick?: (e: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n }\n\n export type TypeValues = (typeof CardNavigationTypesValues)[number];\n\n export interface RequiredProps {}\n\n export interface DefaultProps {\n containerProps: object;\n title: string;\n description: string;\n type: TypeValues;\n Icon: React.ComponentType<SvgIconT.Props>;\n actions: Array<Action> | ReadonlyArray<Action>;\n wrapText: boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardNavigationName, typeof CARD_NAVIGATION_SLOTS> {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardNavigationT.DefaultProps = {\n containerProps: {},\n title: '',\n description: '',\n type: CardNavigationTypesValues[0],\n Icon: LoanProducts,\n actions: [],\n wrapText: false,\n};\n\nexport const DSCardNavigationPropTypes: DSPropTypesSchema<DSCardNavigationT.Props> = {\n ...getPropsPerSlotPropTypes(DSCardNavigationName, CARD_NAVIGATION_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n containerProps: PropTypes.object.description('props to inject to card navigation wrapper').defaultValue('{}'),\n title: PropTypes.string.description('card navigation title').defaultValue(''),\n description: PropTypes.string.description('card navigation description').defaultValue(''),\n type: PropTypes.oneOf(CardNavigationTypesValues).description('card navigation type').defaultValue(''),\n\n Icon: PropTypes.func\n .description('component that will be used to render the icon')\n .defaultValue('()=><LoanProducts size=\"l\" color={[\"neutral\", 0]} />'),\n\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n onClick: PropTypes.func.isRequired,\n icon: PropTypes.element,\n Icon: PropTypes.func,\n }),\n )\n .description('card navigation actions array')\n .defaultValue('[]'),\n\n wrapText: PropTypes.bool.description('wrap text in the card navigation').defaultValue(false),\n};\n\nexport const DSCardNavigationPropTypesSchema =\n DSCardNavigationPropTypes as unknown as ValidationMap<DSCardNavigationT.Props>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAG7B,SAAS,sBAAsB,uBAAuB,iCAAiC;AAyChF,MAAM,eAA+C;AAAA,EAC1D,gBAAgB,CAAC;AAAA,EACjB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM,0BAA0B,CAAC;AAAA,EACjC,MAAM;AAAA,EACN,SAAS,CAAC;AAAA,EACV,UAAU;AACZ;AAEO,MAAM,4BAAwE;AAAA,EACnF,GAAG,yBAAyB,sBAAsB,qBAAqB;AAAA,EACvE,GAAG;AAAA,EACH,GAAG;AAAA,EAEH,gBAAgB,UAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EAC5G,OAAO,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC5E,aAAa,UAAU,OAAO,YAAY,6BAA6B,EAAE,aAAa,EAAE;AAAA,EACxF,MAAM,UAAU,MAAM,yBAAyB,EAAE,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EAEpG,MAAM,UAAU,KACb,YAAY,gDAAgD,EAC5D,aAAa,sDAAsD;AAAA,EAEtE,SAAS,UAAU;AAAA,IACjB,UAAU,MAAM;AAAA,MACd,SAAS,UAAU,KAAK;AAAA,MACxB,MAAM,UAAU;AAAA,MAChB,MAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH,EACG,YAAY,+BAA+B,EAC3C,aAAa,IAAI;AAAA,EAEpB,UAAU,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAC7F;AAEO,MAAM,kCACX;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type React from 'react';\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { LoanProducts } from '@elliemae/ds-icons';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { type SvgIconT } from '@elliemae/ds-icons';\nimport { DSCardNavigationName, CARD_NAVIGATION_SLOTS, CardNavigationTypesValues } from './constants/index.js';\n\nexport declare namespace DSCardNavigationT {\n export interface Action {\n icon?: React.ReactNode;\n Icon?: React.ComponentType<Record<string, never>>;\n onClick?: (e: React.KeyboardEvent<HTMLButtonElement> | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n }\n\n export type TypeValues = (typeof CardNavigationTypesValues)[number];\n\n export interface RequiredProps {}\n\n export interface DefaultProps {\n containerProps: object;\n title: string;\n description: string;\n type: TypeValues;\n Icon: React.ComponentType<SvgIconT.Props>;\n actions: Array<Action> | ReadonlyArray<Action>;\n wrapText: boolean;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSCardNavigationName, typeof CARD_NAVIGATION_SLOTS> {}\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSCardNavigationT.DefaultProps = {\n containerProps: {},\n title: '',\n description: '',\n type: CardNavigationTypesValues[0],\n Icon: LoanProducts,\n actions: [],\n wrapText: false,\n};\n\nexport const DSCardNavigationPropTypes: DSPropTypesSchema<DSCardNavigationT.Props> = {\n ...getPropsPerSlotPropTypes(DSCardNavigationName, CARD_NAVIGATION_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n\n containerProps: PropTypes.object.description('props to inject to card navigation wrapper').defaultValue('{}'),\n title: PropTypes.string.description('card navigation title').defaultValue(''),\n description: PropTypes.string.description('card navigation description').defaultValue(''),\n type: PropTypes.oneOf(CardNavigationTypesValues).description('card navigation type').defaultValue(''),\n\n Icon: PropTypes.func\n .description('component that will be used to render the icon')\n .defaultValue('()=><LoanProducts size=\"l\" color={[\"neutral\", 0]} />'),\n\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element.deprecated({ version: '3.x' }),\n Icon: PropTypes.func.description(''),\n onClick: PropTypes.func,\n }),\n )\n .description('card navigation actions array')\n .defaultValue('[]'),\n\n wrapText: PropTypes.bool.description('wrap text in the card navigation').defaultValue(false),\n};\n\nexport const DSCardNavigationPropTypesSchema =\n DSCardNavigationPropTypes as unknown as ValidationMap<DSCardNavigationT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAG7B,SAAS,sBAAsB,uBAAuB,iCAAiC;AAyChF,MAAM,eAA+C;AAAA,EAC1D,gBAAgB,CAAC;AAAA,EACjB,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM,0BAA0B,CAAC;AAAA,EACjC,MAAM;AAAA,EACN,SAAS,CAAC;AAAA,EACV,UAAU;AACZ;AAEO,MAAM,4BAAwE;AAAA,EACnF,GAAG,yBAAyB,sBAAsB,qBAAqB;AAAA,EACvE,GAAG;AAAA,EACH,GAAG;AAAA,EAEH,gBAAgB,UAAU,OAAO,YAAY,4CAA4C,EAAE,aAAa,IAAI;AAAA,EAC5G,OAAO,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,EAAE;AAAA,EAC5E,aAAa,UAAU,OAAO,YAAY,6BAA6B,EAAE,aAAa,EAAE;AAAA,EACxF,MAAM,UAAU,MAAM,yBAAyB,EAAE,YAAY,sBAAsB,EAAE,aAAa,EAAE;AAAA,EAEpG,MAAM,UAAU,KACb,YAAY,gDAAgD,EAC5D,aAAa,sDAAsD;AAAA,EAEtE,SAAS,UAAU;AAAA,IACjB,UAAU,MAAM;AAAA,MACd,MAAM,UAAU,QAAQ,WAAW,EAAE,SAAS,MAAM,CAAC;AAAA,MACrD,MAAM,UAAU,KAAK,YAAY,EAAE;AAAA,MACnC,SAAS,UAAU;AAAA,IACrB,CAAC;AAAA,EACH,EACG,YAAY,+BAA+B,EAC3C,aAAa,IAAI;AAAA,EAEpB,UAAU,UAAU,KAAK,YAAY,kCAAkC,EAAE,aAAa,KAAK;AAC7F;AAEO,MAAM,kCACX;",
6
6
  "names": []
7
7
  }
@@ -1,33 +1,30 @@
1
1
  import * as React from "react";
2
- import { Grid } from "@elliemae/ds-grid";
3
- import { css, styled } from "@elliemae/ds-system";
4
2
  import { DSTypography } from "@elliemae/ds-typography";
5
- import { CARD_NAVIGATION_SLOTS, CardNavigationTypes, DSCardNavigationName } from "../constants/index.js";
3
+ import { styled } from "@elliemae/ds-system";
4
+ import { Grid } from "@elliemae/ds-grid";
5
+ import { DSCardNavigationName, CARD_NAVIGATION_SLOTS, CardNavigationTypes } from "./constants/index.js";
6
6
  const StyledCardNavigationContentTitle = styled("div", {
7
7
  name: DSCardNavigationName,
8
8
  slot: CARD_NAVIGATION_SLOTS.TITLE
9
- })``;
9
+ })`
10
+ padding-top: ${(props) => props.theme.space.xxs};
11
+ `;
10
12
  const StyledTitleTypography = styled(DSTypography)`
11
13
  color: ${(props) => props.theme.colors.neutral["700"]};
12
14
  font-weight: ${(props) => props.theme.fontWeights.semibold};
13
- font-size: 1.3846rem; // 18px -> 18/13 = 1.3846rem
14
-
15
- @media (max-width: ${({ theme }) => theme.breakpoints.small}) {
16
- font-size: 1.125rem; // 18px -> 18/16 = 1.125rem
17
- }
15
+ font-size: 18px;
18
16
  `;
17
+ const StyledCardNavigationContentDescription = styled.div``;
19
18
  const StyledDescriptionTypography = styled(DSTypography)`
20
19
  color: ${(props) => props.theme.colors.neutral["500"]};
21
- font-size: 0.923rem; // 12px -> 12/13 = 0.923rem
22
-
23
- @media (max-width: ${({ theme }) => theme.breakpoints.small}) {
24
- font-size: 0.8775rem; // 12px -> 10.5/12 = 0.8775rem
25
- }
20
+ font-size: 12px;
26
21
  `;
27
22
  const StyledCardNavigationContentTitleWrapper = styled.div`
28
23
  width: 100%;
29
24
  `;
30
25
  const StyledCardNavigationContent = styled.div`
26
+ padding-right: ${(props) => props.theme.space.xs};
27
+ padding-left: ${(props) => props.theme.space.xs};
31
28
  display: flex;
32
29
  align-items: center;
33
30
  flex: 1;
@@ -37,14 +34,15 @@ const StyledCardNavigationCentralContent = styled(Grid, {
37
34
  slot: CARD_NAVIGATION_SLOTS.CENTRAL_CONTENT,
38
35
  name: DSCardNavigationName
39
36
  })`
40
- padding: ${(props) => props.theme.space.xs};
37
+ min-width: 273px;
38
+ @media (max-width: ${(props) => props.theme.breakpoints.small}) {
39
+ min-width: 336px;
40
+ }
41
41
  `;
42
42
  const StyledCardNavigationBoxWrapper = styled("div", {
43
43
  name: DSCardNavigationName,
44
44
  slot: CARD_NAVIGATION_SLOTS.ROOT
45
45
  })`
46
- min-width: 240px;
47
- min-height: 64px;
48
46
  width: 337px;
49
47
  display: flex;
50
48
  flex-direction: row;
@@ -53,12 +51,10 @@ const StyledCardNavigationBoxWrapper = styled("div", {
53
51
  border-radius: 2px;
54
52
  position: relative;
55
53
  outline: none;
56
-
57
54
  ${(props) => props.fluid ? "width: 100%" : ""};
58
55
  @media (max-width: ${(props) => props.theme.breakpoints.small}) {
59
56
  width: ${(props) => props.fluid ? "width: 100%" : "414px"};
60
57
  }
61
-
62
58
  :after {
63
59
  display: block;
64
60
  content: '';
@@ -71,59 +67,46 @@ const StyledCardNavigationBoxWrapper = styled("div", {
71
67
  border-radius: 2px;
72
68
  pointer-events: none;
73
69
  }
74
- &:hover {
70
+ &:hover,
71
+ &:focus {
75
72
  box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);
76
- outline-offset: 2px;
77
73
  }
78
-
79
- ${(props) => props.$isIconAndTextsRegionFocused ? css`
80
- outline: 2px solid ${props.theme.colors.brand["700"]};
81
- outline-offset: 2px;
82
- ` : css``}
83
74
  `;
84
75
  const StyledCardNavigationIcon = styled("div", {
85
76
  name: DSCardNavigationName,
86
77
  slot: CARD_NAVIGATION_SLOTS.TYPE
87
78
  })`
88
- min-width: 64px;
89
- min-height: 64px;
90
- height: 100%;
79
+ width: 64px;
80
+ height: 64px;
81
+ background-color: #32aad1;
91
82
  border-top-left-radius: 2px;
92
83
  border-bottom-left-radius: 2px;
93
- padding: ${(props) => props.theme.space.xs};
84
+ padding: ${(props) => props.theme.space.xxs};
94
85
  display: flex;
95
86
  align-items: center;
96
87
  justify-content: center;
97
88
  fill: #ffffff;
98
- background-color: ${({ $type }) => $type === CardNavigationTypes.BORROWER && "#32aad1" || $type === CardNavigationTypes.FINANCIAL && "#1ba88d" || $type === CardNavigationTypes.LOAN && "#8e49b2" || $type === CardNavigationTypes.REGULATORY && "#db5575" || "#32aad1"};
89
+ background-color: ${({ $type }) => $type === CardNavigationTypes.BORROWER && "#32aad1" || $type === CardNavigationTypes.FINANCIAL && "#1ba88d" || $type === CardNavigationTypes.LOAN && "#8e49b2" || $type === CardNavigationTypes.REGULATORY && "#db5575" || "#32aad1"}; // Default color
99
90
  `;
100
91
  const StyledCardNavigationActions = styled("div", {
101
92
  name: DSCardNavigationName,
102
93
  slot: CARD_NAVIGATION_SLOTS.ACTIONS
103
94
  })`
104
- padding: 0 ${(props) => props.theme.space.xs};
105
95
  display: flex;
106
96
  flex-direction: row;
107
97
  align-items: center;
108
- gap: ${(props) => props.theme.space.xs};
109
- `;
110
- const StyledCardNavigationAction = styled("div")`
111
- span,
112
- svg {
113
- height: ${({ theme }) => theme.space.s};
114
- width: ${({ theme }) => theme.space.s};
115
- fill: ${({ theme }) => theme.colors.neutral[500]};
116
- }
98
+ padding-right: ${(props) => props.theme.space.xxs};
117
99
  `;
118
- const StyledGridTextContainer = styled("div")`
119
- display: grid;
120
- grid-template-columns: max-content auto;
121
- align-items: center;
122
- min-width: 0;
123
- max-width: 100%;
124
- overflow: hidden;
125
- &:focus {
126
- outline: none;
100
+ const StyledCardNavigationAction = styled.div`
101
+ margin-left: ${(props) => props.theme.space.xxs};
102
+ span {
103
+ height: ${(props) => props.theme.space.s};
104
+ width: ${(props) => props.theme.space.s};
105
+ svg {
106
+ fill: ${(props) => props.theme.colors.neutral[500]};
107
+ height: ${(props) => props.theme.space.s};
108
+ width: ${(props) => props.theme.space.s};
109
+ }
127
110
  }
128
111
  `;
129
112
  export {
@@ -132,11 +115,11 @@ export {
132
115
  StyledCardNavigationBoxWrapper,
133
116
  StyledCardNavigationCentralContent,
134
117
  StyledCardNavigationContent,
118
+ StyledCardNavigationContentDescription,
135
119
  StyledCardNavigationContentTitle,
136
120
  StyledCardNavigationContentTitleWrapper,
137
121
  StyledCardNavigationIcon,
138
122
  StyledDescriptionTypography,
139
- StyledGridTextContainer,
140
123
  StyledTitleTypography
141
124
  };
142
125
  //# sourceMappingURL=style.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/style.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DSTypography } from '@elliemae/ds-typography';\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSCardNavigationName, CARD_NAVIGATION_SLOTS, CardNavigationTypes } from './constants/index.js';\n\nexport const StyledCardNavigationContentTitle = styled('div', {\n name: DSCardNavigationName,\n slot: CARD_NAVIGATION_SLOTS.TITLE,\n})`\n padding-top: ${(props) => props.theme.space.xxs};\n`;\n\nexport const StyledTitleTypography = styled(DSTypography)`\n color: ${(props) => props.theme.colors.neutral['700']};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n font-size: 18px;\n`;\n\nexport const StyledCardNavigationContentDescription = styled.div``;\n\nexport const StyledDescriptionTypography = styled(DSTypography)`\n color: ${(props) => props.theme.colors.neutral['500']};\n font-size: 12px;\n`;\n\nexport const StyledCardNavigationContentTitleWrapper = styled.div`\n width: 100%;\n`;\n\nexport const StyledCardNavigationContent = styled.div<{ wrapText?: boolean }>`\n padding-right: ${(props) => props.theme.space.xs};\n padding-left: ${(props) => props.theme.space.xs};\n display: flex;\n align-items: center;\n flex: 1;\n width: 100%;\n`;\n\nexport const StyledCardNavigationCentralContent = styled(Grid, {\n slot: CARD_NAVIGATION_SLOTS.CENTRAL_CONTENT,\n name: DSCardNavigationName,\n})`\n min-width: 273px;\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n min-width: 336px;\n }\n`;\ninterface StyledCardNavigationBoxWrapperProps {\n fluid?: boolean;\n}\n\nexport const StyledCardNavigationBoxWrapper = styled('div', {\n name: DSCardNavigationName,\n slot: CARD_NAVIGATION_SLOTS.ROOT,\n})<StyledCardNavigationBoxWrapperProps>`\n width: 337px;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);\n border-radius: 2px;\n position: relative;\n outline: none;\n ${(props) => (props.fluid ? 'width: 100%' : '')};\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n width: ${(props) => (props.fluid ? 'width: 100%' : '414px')};\n }\n :after {\n display: block;\n content: '';\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n border: solid ${(props) => props.theme.space.xxs} transparent;\n border-radius: 2px;\n pointer-events: none;\n }\n &:hover,\n &:focus {\n box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);\n }\n`;\ninterface StyledCardNavigationIconProps {\n $type: (typeof CardNavigationTypes)[keyof typeof CardNavigationTypes];\n}\n\nexport const StyledCardNavigationIcon = styled('div', {\n name: DSCardNavigationName,\n slot: CARD_NAVIGATION_SLOTS.TYPE,\n})<StyledCardNavigationIconProps>`\n width: 64px;\n height: 64px;\n background-color: #32aad1;\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n padding: ${(props) => props.theme.space.xxs};\n display: flex;\n align-items: center;\n justify-content: center;\n fill: #ffffff;\n background-color: ${({ $type }) =>\n ($type === CardNavigationTypes.BORROWER && '#32aad1') ||\n ($type === CardNavigationTypes.FINANCIAL && '#1ba88d') ||\n ($type === CardNavigationTypes.LOAN && '#8e49b2') ||\n ($type === CardNavigationTypes.REGULATORY && '#db5575') ||\n '#32aad1'}; // Default color\n`;\n\nexport const StyledCardNavigationActions = styled('div', {\n name: DSCardNavigationName,\n slot: CARD_NAVIGATION_SLOTS.ACTIONS,\n})`\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-right: ${(props) => props.theme.space.xxs};\n`;\n\nexport const StyledCardNavigationAction = styled.div`\n margin-left: ${(props) => props.theme.space.xxs};\n span {\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n svg {\n fill: ${(props) => props.theme.colors.neutral[500]};\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n }\n }\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,oBAAoB;AAC7B,SAAS,cAAc;AACvB,SAAS,YAAY;AACrB,SAAS,sBAAsB,uBAAuB,2BAA2B;AAE1E,MAAM,mCAAmC,OAAO,OAAO;AAAA,EAC5D,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA,iBACgB,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG;AAAA;AAG1C,MAAM,wBAAwB,OAAO,YAAY;AAAA,WAC7C,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,iBACtC,CAAC,UAAU,MAAM,MAAM,YAAY,QAAQ;AAAA;AAAA;AAIrD,MAAM,yCAAyC,OAAO;AAEtD,MAAM,8BAA8B,OAAO,YAAY;AAAA,WACnD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAAA;AAIhD,MAAM,0CAA0C,OAAO;AAAA;AAAA;AAIvD,MAAM,8BAA8B,OAAO;AAAA,mBAC/B,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA,kBAChC,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAO1C,MAAM,qCAAqC,OAAO,MAAM;AAAA,EAC7D,MAAM,sBAAsB;AAAA,EAC5B,MAAM;AACR,CAAC;AAAA;AAAA,uBAEsB,CAAC,UAAU,MAAM,MAAM,YAAY,KAAK;AAAA;AAAA;AAAA;AAQxD,MAAM,iCAAiC,OAAO,OAAO;AAAA,EAC1D,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASG,CAAC,UAAW,MAAM,QAAQ,gBAAgB,EAAG;AAAA,uBAC1B,CAAC,UAAU,MAAM,MAAM,YAAY,KAAK;AAAA,aAClD,CAAC,UAAW,MAAM,QAAQ,gBAAgB,OAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAU3C,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAa7C,MAAM,2BAA2B,OAAO,OAAO;AAAA,EACpD,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMY,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKvB,CAAC,EAAE,MAAM,MAC1B,UAAU,oBAAoB,YAAY,aAC1C,UAAU,oBAAoB,aAAa,aAC3C,UAAU,oBAAoB,QAAQ,aACtC,UAAU,oBAAoB,cAAc,aAC7C,SAAS;AAAA;AAGN,MAAM,8BAA8B,OAAO,OAAO;AAAA,EACvD,MAAM;AAAA,EACN,MAAM,sBAAsB;AAC9B,CAAC;AAAA;AAAA;AAAA;AAAA,mBAIkB,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG;AAAA;AAG5C,MAAM,6BAA6B,OAAO;AAAA,iBAChC,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA,cAEnC,CAAC,UAAU,MAAM,MAAM,MAAM,CAAC;AAAA,aAC/B,CAAC,UAAU,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA,cAE7B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,gBACxC,CAAC,UAAU,MAAM,MAAM,MAAM,CAAC;AAAA,eAC/B,CAAC,UAAU,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type DSCardNavigationT } from './react-desc-prop-types.js';
3
- declare const DSCardNavigation: React.ComponentType<DSCardNavigationT.Props>;
3
+ declare const DSCardNavigation: React.FC<DSCardNavigationT.Props>;
4
4
  declare const DSCardNavigationWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSCardNavigationT.Props>;
5
5
  export { DSCardNavigation, DSCardNavigationWithSchema };
@@ -0,0 +1,4 @@
1
+ export declare const DescriptionComponent: (props: {
2
+ description: string;
3
+ wrapText?: boolean;
4
+ }) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const TitleComponent: (props: {
2
+ title: string;
3
+ wrapText?: boolean;
4
+ }) => import("react/jsx-runtime.js").JSX.Element;
@@ -1,13 +1,12 @@
1
- import React from 'react';
2
- import { useGetXstyledProps, useGetGlobalAttributes } from '@elliemae/ds-props-helpers';
1
+ import { useGetXstyledProps } from '@elliemae/ds-props-helpers';
3
2
  import { type DSCardNavigationT } from '../react-desc-prop-types.js';
4
3
  export interface CardNavigationCTX {
5
4
  propsWithDefault: DSCardNavigationT.InternalProps;
6
5
  xstyledProps: ReturnType<typeof useGetXstyledProps>;
7
- globalProps: ReturnType<typeof useGetGlobalAttributes>;
8
6
  instanceUid: string;
9
- iconAndTextsRegionIsFocused: boolean;
10
- showFocusRingAroundAll: React.FocusEventHandler<HTMLDivElement>;
11
- hideFocusRingAroundAll: React.FocusEventHandler<HTMLDivElement>;
12
7
  }
13
- export declare const useCardNavigation: (propsFromUser: DSCardNavigationT.Props) => CardNavigationCTX;
8
+ export declare const useCardNavigation: (propsFromUser: DSCardNavigationT.Props) => {
9
+ propsWithDefault: DSCardNavigationT.InternalProps;
10
+ xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
11
+ instanceUid: string;
12
+ };
@@ -1,26 +1,21 @@
1
- import { CardNavigationTypes } from '../constants/index.js';
1
+ import { CardNavigationTypes } from './constants/index.js';
2
2
  export declare const StyledCardNavigationContentTitle: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
3
3
  export declare const StyledTitleTypography: import("styled-components").StyledComponent<import("react").FC<import("@elliemae/ds-typography").DSTypographyT.Props>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").FC<import("@elliemae/ds-typography").DSTypographyT.Props>>, never>;
4
+ export declare const StyledCardNavigationContentDescription: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
4
5
  export declare const StyledDescriptionTypography: import("styled-components").StyledComponent<import("react").FC<import("@elliemae/ds-typography").DSTypographyT.Props>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").FC<import("@elliemae/ds-typography").DSTypographyT.Props>>, never>;
5
6
  export declare const StyledCardNavigationContentTitleWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
6
7
  export declare const StyledCardNavigationContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
7
8
  wrapText?: boolean;
8
9
  } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
9
- export declare const StyledCardNavigationCentralContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, {
10
- wrapText?: boolean;
11
- AnyOverFlow?: boolean;
12
- } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
10
+ export declare const StyledCardNavigationCentralContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
13
11
  interface StyledCardNavigationBoxWrapperProps {
14
12
  fluid?: boolean;
15
13
  }
16
- export declare const StyledCardNavigationBoxWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledCardNavigationBoxWrapperProps & {
17
- $isIconAndTextsRegionFocused?: boolean;
18
- } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
14
+ export declare const StyledCardNavigationBoxWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledCardNavigationBoxWrapperProps & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
19
15
  interface StyledCardNavigationIconProps {
20
16
  $type: (typeof CardNavigationTypes)[keyof typeof CardNavigationTypes];
21
17
  }
22
18
  export declare const StyledCardNavigationIcon: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledCardNavigationIconProps & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
23
19
  export declare const StyledCardNavigationActions: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
24
20
  export declare const StyledCardNavigationAction: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
25
- export declare const StyledGridTextContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
26
21
  export {};