@mmb-digital/ds-lilly 1.0.73 → 1.0.75

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 (99) hide show
  1. package/cjs/components/Components/Button/ButtonsGroup.d.ts +1 -3
  2. package/cjs/components/Components/Button/ButtonsGroup.d.ts.map +1 -1
  3. package/cjs/components/Components/Button/ButtonsGroup.js +1 -1
  4. package/cjs/components/Components/Button/ButtonsGroup.js.map +1 -1
  5. package/cjs/components/Components/CompactButtons/CompactButtons.d.ts +1 -1
  6. package/cjs/components/Components/CompactButtons/CompactButtons.d.ts.map +1 -1
  7. package/cjs/components/Components/DataTable/DataTable.d.ts +13 -1
  8. package/cjs/components/Components/DataTable/DataTable.d.ts.map +1 -1
  9. package/cjs/components/Components/DataTable/DataTable.js +1 -1
  10. package/cjs/components/Components/DataTable/DataTable.js.map +1 -1
  11. package/cjs/components/Components/DataTable/DataTableItem.d.ts +6 -2
  12. package/cjs/components/Components/DataTable/DataTableItem.d.ts.map +1 -1
  13. package/cjs/components/Components/DataTable/DataTableItem.js +1 -1
  14. package/cjs/components/Components/DataTable/DataTableItem.js.map +1 -1
  15. package/cjs/components/Components/ProductCard/ProductCard.d.ts +48 -40
  16. package/cjs/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
  17. package/cjs/components/Components/ProductCard/ProductCard.js +1 -1
  18. package/cjs/components/Components/ProductCard/ProductCard.js.map +1 -1
  19. package/cjs/components/Components/ProductCard/index.d.ts +0 -1
  20. package/cjs/components/Components/ProductCard/index.d.ts.map +1 -1
  21. package/cjs/components/Components/ProductCard/index.js +1 -1
  22. package/cjs/components/Components/ProductHeader/ProductHeader.d.ts +117 -0
  23. package/cjs/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -0
  24. package/cjs/components/Components/ProductHeader/ProductHeader.js +2 -0
  25. package/cjs/components/Components/ProductHeader/ProductHeader.js.map +1 -0
  26. package/cjs/components/Components/ProductHeader/index.d.ts +2 -0
  27. package/cjs/components/Components/ProductHeader/index.d.ts.map +1 -0
  28. package/cjs/components/Components/ProductHeader/index.js +2 -0
  29. package/cjs/components/Components/ProductHeader/index.js.map +1 -0
  30. package/cjs/components/Components/index.d.ts +1 -0
  31. package/cjs/components/Components/index.d.ts.map +1 -1
  32. package/cjs/components/Components/index.js +1 -1
  33. package/cjs/components/Typography/Amount/Amount.d.ts +3 -2
  34. package/cjs/components/Typography/Amount/Amount.d.ts.map +1 -1
  35. package/cjs/components/Typography/Amount/Amount.js +1 -1
  36. package/cjs/components/Typography/Amount/Amount.js.map +1 -1
  37. package/cjs/ds-lilly.css +252 -49
  38. package/cjs/index.js +1 -1
  39. package/cjs/index.js.map +1 -1
  40. package/components/Components/Button/ButtonsGroup.d.ts +1 -3
  41. package/components/Components/Button/ButtonsGroup.d.ts.map +1 -1
  42. package/components/Components/Button/ButtonsGroup.js +1 -1
  43. package/components/Components/Button/ButtonsGroup.js.map +1 -1
  44. package/components/Components/CompactButtons/CompactButtons.d.ts +1 -1
  45. package/components/Components/CompactButtons/CompactButtons.d.ts.map +1 -1
  46. package/components/Components/DataTable/DataTable.d.ts +13 -1
  47. package/components/Components/DataTable/DataTable.d.ts.map +1 -1
  48. package/components/Components/DataTable/DataTable.js +1 -1
  49. package/components/Components/DataTable/DataTable.js.map +1 -1
  50. package/components/Components/DataTable/DataTableItem.d.ts +6 -2
  51. package/components/Components/DataTable/DataTableItem.d.ts.map +1 -1
  52. package/components/Components/DataTable/DataTableItem.js +1 -1
  53. package/components/Components/DataTable/DataTableItem.js.map +1 -1
  54. package/components/Components/ProductCard/ProductCard.d.ts +48 -40
  55. package/components/Components/ProductCard/ProductCard.d.ts.map +1 -1
  56. package/components/Components/ProductCard/ProductCard.js +1 -1
  57. package/components/Components/ProductCard/ProductCard.js.map +1 -1
  58. package/components/Components/ProductCard/index.d.ts +0 -1
  59. package/components/Components/ProductCard/index.d.ts.map +1 -1
  60. package/components/Components/ProductCard/index.js +1 -1
  61. package/components/Components/ProductHeader/ProductHeader.d.ts +117 -0
  62. package/components/Components/ProductHeader/ProductHeader.d.ts.map +1 -0
  63. package/components/Components/ProductHeader/ProductHeader.js +2 -0
  64. package/components/Components/ProductHeader/ProductHeader.js.map +1 -0
  65. package/components/Components/ProductHeader/index.d.ts +2 -0
  66. package/components/Components/ProductHeader/index.d.ts.map +1 -0
  67. package/components/Components/ProductHeader/index.js +2 -0
  68. package/components/Components/ProductHeader/index.js.map +1 -0
  69. package/components/Components/index.d.ts +1 -0
  70. package/components/Components/index.d.ts.map +1 -1
  71. package/components/Components/index.js +1 -1
  72. package/components/Typography/Amount/Amount.d.ts +3 -2
  73. package/components/Typography/Amount/Amount.d.ts.map +1 -1
  74. package/components/Typography/Amount/Amount.js +1 -1
  75. package/components/Typography/Amount/Amount.js.map +1 -1
  76. package/ds-lilly.css +252 -49
  77. package/index.js +1 -1
  78. package/index.js.map +1 -1
  79. package/package.json +2 -2
  80. package/cjs/components/Components/ProductCard/ProductCardHeader.d.ts +0 -43
  81. package/cjs/components/Components/ProductCard/ProductCardHeader.d.ts.map +0 -1
  82. package/cjs/components/Components/ProductCard/ProductCardHeader.js +0 -2
  83. package/cjs/components/Components/ProductCard/ProductCardHeader.js.map +0 -1
  84. package/components/Components/ProductCard/ProductCardHeader.d.ts +0 -43
  85. package/components/Components/ProductCard/ProductCardHeader.d.ts.map +0 -1
  86. package/components/Components/ProductCard/ProductCardHeader.js +0 -2
  87. package/components/Components/ProductCard/ProductCardHeader.js.map +0 -1
  88. /package/assets/{81fff596d524fae20426.gif → 09a02843ab4f9f9b28e0.gif} +0 -0
  89. /package/assets/{0de4213539571ef06b3f.woff → 1df6dc7330e89d753820.woff} +0 -0
  90. /package/assets/{aad1abbb6cdd95c4b164.ttf → 3be64d3c77500bf7221b.ttf} +0 -0
  91. /package/assets/{99def322ad6adba2d23d.svg → 5c496037f936f878c5fd.svg} +0 -0
  92. /package/assets/{2bb50f940f4a16e301e8.eot → 6c2b251edf16f89db4f1.eot} +0 -0
  93. /package/assets/{4c7a851824c3e8298a46.eot → 7a3b37e2901b8198248d.eot} +0 -0
  94. /package/assets/{cca333ff243bc6f1a1cd.eot → 7dfc59f960303468f509.eot} +0 -0
  95. /package/assets/{9e88819de1bbde79329b.svg → 9bf302ca4ea90b2d2a09.svg} +0 -0
  96. /package/assets/{e70ba74ee54081797b95.ttf → ac6d9880d7e88a85aa37.ttf} +0 -0
  97. /package/assets/{cd5beb3c14ead7f1fe1e.eot → c42dc9f63c2a5fd1bf96.eot} +0 -0
  98. /package/assets/{d15252c30e1fadae2e5c.woff → cb6375b81186c458b5ed.woff} +0 -0
  99. /package/assets/{e391da62850352de1641.gif → ec78258a07cf55d4c229.gif} +0 -0
@@ -6,8 +6,6 @@ export interface ButtonsGroupPropsType extends ComponentPropsType, FlexPropsType
6
6
  children: ReactNode | ReactNode[];
7
7
  /** Flag to convert container element to Flex. */
8
8
  isFlex?: boolean;
9
- /** Flag to use small Buttons. */
10
- isSmall?: boolean;
11
9
  }
12
- export declare const ButtonsGroup: ({ children, isFlex, isSmall, testId, theme, ...otherProps }: ButtonsGroupPropsType) => JSX.Element;
10
+ export declare const ButtonsGroup: ({ children, isFlex, testId, theme, ...otherProps }: ButtonsGroupPropsType) => JSX.Element;
13
11
  //# sourceMappingURL=ButtonsGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonsGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Button/ButtonsGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,EAAE,aAAa;IAC9E,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,YAAY,gEAOtB,qBAAqB,KAAG,WAgB1B,CAAA"}
1
+ {"version":3,"file":"ButtonsGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/Button/ButtonsGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,EAAE,aAAa;IAC9E,qDAAqD;IACrD,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACjC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,YAAY,uDAMtB,qBAAqB,KAAG,WAgB1B,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),s=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var i=require("../../Layout/Flex/Flex.js");exports.ButtonsGroup=function(r){var l,u=r.children,a=r.isFlex,d=r.isSmall,n=r.testId,o=r.theme,c=e.__rest(r,["children","isFlex","isSmall","testId","theme"]),m=t.cx("c-btnsGroup",((l={})["c-btnsGroup--small"]=d,l),o);return a?s.createElement(i.Flex,e.__assign({testId:n,theme:m},c),u):s.createElement("div",e.__assign({className:m,"data-testid":n},c),u)};
1
+ "use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),s=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var i=require("../../Layout/Flex/Flex.js");exports.ButtonsGroup=function(r){var l=r.children,u=r.isFlex,d=r.testId,a=r.theme,n=e.__rest(r,["children","isFlex","testId","theme"]),o=t.cx("c-btnsGroup",a);return u?s.createElement(i.Flex,e.__assign({testId:d,theme:o},n),l):s.createElement("div",e.__assign({className:o,"data-testid":d},n),l)};
2
2
  //# sourceMappingURL=ButtonsGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonsGroup.js","sources":["../../../../../../src/components/Components/Button/ButtonsGroup.tsx"],"sourcesContent":[null],"names":["_a","children","isFlex","isSmall","testId","theme","otherProps","__rest","className","cx","_b","React","createElement","Flex","__assign"],"mappings":"giBAe4B,SAACA,SAC3BC,EAAQD,EAAAC,SACRC,EAAMF,EAAAE,OACNC,EAAOH,EAAAG,QACPC,EAAMJ,EAAAI,OACNC,EAAKL,EAAAK,MACFC,EAAUC,EAAAA,OAAAP,EANc,kDAQrBQ,EAAYC,EAAAA,GAAG,gBAAaC,EAAA,CAAA,GAAK,sBAAuBP,EAAWO,GAAAL,GAEzE,OAAIH,EAEAS,EAACC,cAAAC,OAAKC,EAAAA,SAAA,CAAAV,OAAQA,EAAQC,MAAOG,GAAeF,GACzCL,GAMLU,EAAAC,cAAA,MAAAE,EAAAA,SAAA,CAAKN,UAAWA,EAAS,cAAeJ,GAAYE,GACjDL,EAGP"}
1
+ {"version":3,"file":"ButtonsGroup.js","sources":["../../../../../../src/components/Components/Button/ButtonsGroup.tsx"],"sourcesContent":[null],"names":["_a","children","isFlex","testId","theme","otherProps","__rest","className","cx","React","createElement","Flex","__assign"],"mappings":"giBAa4B,SAACA,GAC3B,IAAAC,EAAQD,EAAAC,SACRC,WACAC,EAAMH,EAAAG,OACNC,EAAKJ,EAAAI,MACFC,EAAUC,EAAAA,OAAAN,EALc,wCAOrBO,EAAYC,EAAAA,GAAG,cAAeJ,GAEpC,OAAIF,EAEAO,EAACC,cAAAC,OAAKC,EAAAA,SAAA,CAAAT,OAAQA,EAAQC,MAAOG,GAAeF,GACzCJ,GAMLQ,EAAAC,cAAA,MAAAE,EAAAA,SAAA,CAAKL,UAAWA,EAAS,cAAeJ,GAAYE,GACjDJ,EAGP"}
@@ -2,7 +2,7 @@ import React, { ReactElement, ReactNode, SyntheticEvent } from 'react';
2
2
  import { IconNameType, TargetType } from '../../../types';
3
3
  import { ComponentPropsType, DisabledTooltipPropsType } from '../../../utils';
4
4
  import { ButtonColorType, ButtonSize, ButtonType } from '../Button';
5
- interface CompactButtonsButtonType extends ComponentPropsType, DisabledTooltipPropsType {
5
+ export interface CompactButtonsButtonType extends ComponentPropsType, DisabledTooltipPropsType {
6
6
  /** Allow click event propagation */
7
7
  allowEventPropagation?: boolean;
8
8
  /** React collection key */
@@ -1 +1 @@
1
- {"version":3,"file":"CompactButtons.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/CompactButtons/CompactButtons.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EACT,cAAc,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAM,wBAAwB,EAAgC,MAAM,gBAAgB,CAAA;AAE/G,OAAO,EAAU,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAG3E,UAAU,wBAAyB,SAAQ,kBAAkB,EAAE,wBAAwB;IACrF,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,uBAAuB;IACvB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,mBA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OAAO,CAAA;CACzB;AAMD,eAAO,MAAM,cAAc,mFAQxB,uBAAuB,KAAG,WAmP5B,CAAA"}
1
+ {"version":3,"file":"CompactButtons.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/CompactButtons/CompactButtons.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,YAAY,EACZ,SAAS,EACT,cAAc,EAMf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAM,wBAAwB,EAAgC,MAAM,gBAAgB,CAAA;AAE/G,OAAO,EAAU,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAG3E,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB,EAAE,wBAAwB;IAC5F,oCAAoC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,uBAAuB;IACvB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACjC,uDAAuD;IACvD,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,gHAAgH;IAChH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;SAGK;IACL,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mCAAmC;IACnC,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC3E,0DAA0D;IAC1D,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,2BAA4B,SAAQ,kBAAkB;IAC9D,SAAS,EAAE,MAAM,GAAG,YAAY,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,wBAAwB;IACxB,OAAO,EAAE,wBAAwB,EAAE,CAAA;IACnC,mBAAmB;IACnB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gHAAgH;IAChH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,2BAA2B,CAAA;IACzC,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAMD,eAAO,MAAM,cAAc,mFAQxB,uBAAuB,KAAG,WAmP5B,CAAA"}
@@ -3,10 +3,16 @@ import { ComponentPropsType } from '../../../utils';
3
3
  export declare const DataTableContext: React.Context<{
4
4
  widerContent: boolean;
5
5
  disableStackingOnMobile: boolean;
6
+ contentAlignment: 'left' | 'center' | 'right';
7
+ firstColumnSecondary: boolean;
8
+ isBold: boolean;
6
9
  }>;
7
10
  export declare const useDataTableContext: () => {
8
11
  widerContent: boolean;
9
12
  disableStackingOnMobile: boolean;
13
+ contentAlignment: 'left' | 'center' | 'right';
14
+ firstColumnSecondary: boolean;
15
+ isBold: boolean;
10
16
  };
11
17
  export interface DataTableProps extends ComponentPropsType {
12
18
  /** dataTableItem component */
@@ -17,6 +23,12 @@ export interface DataTableProps extends ComponentPropsType {
17
23
  disableStackingOnMobile?: boolean;
18
24
  /** Alignment of the content cells */
19
25
  contentAlignment?: 'left' | 'center' | 'right';
26
+ /** Vertical gaps between DataTableItems */
27
+ gaps?: 'small' | 'medium' | 'large' | 'xLarge';
28
+ /** If true, label (first column) is rendered in secondary color by default for all rows */
29
+ firstColumnSecondary?: boolean;
30
+ /** If true, content (second column) is rendered in bold by default for all rows */
31
+ isBold?: boolean;
20
32
  }
21
- export declare const DataTable: ({ children, contentAlignment, disableStackingOnMobile, testId, theme, widerContent }: DataTableProps) => JSX.Element;
33
+ export declare const DataTable: ({ children, contentAlignment, disableStackingOnMobile, firstColumnSecondary, gaps, isBold, testId, theme, widerContent }: DataTableProps) => JSX.Element;
22
34
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAA;AAE5E,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,eAAO,MAAM,gBAAgB;kBACb,OAAO;6BACI,OAAO;EAIhC,CAAA;AAEF,eAAO,MAAM,mBAAmB;kBAPhB,OAAO;6BACI,OAAO;CAMmC,CAAA;AAErE,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sEAAsE;IACtE,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;CAC/C;AAED,eAAO,MAAM,SAAS,yFAOnB,cAAc,KAAG,WAoBnB,CAAA"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAA;AAE5E,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAEvD,eAAO,MAAM,gBAAgB;kBACb,OAAO;6BACI,OAAO;sBACd,MAAM,GAAG,QAAQ,GAAG,OAAO;0BACvB,OAAO;YACrB,OAAO;EAOf,CAAA;AAEF,eAAO,MAAM,mBAAmB;kBAbhB,OAAO;6BACI,OAAO;sBACd,MAAM,GAAG,QAAQ,GAAG,OAAO;0BACvB,OAAO;YACrB,OAAO;CASoD,CAAA;AAErE,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,uDAAuD;IACvD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sEAAsE;IACtE,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC9C,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC9C,2FAA2F;IAC3F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,SAAS,6HAUnB,cAAc,KAAG,WA8BnB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var i=e.createContext({widerContent:!1,disableStackingOnMobile:!1});exports.DataTable=function(r){var n=r.children,a=r.contentAlignment,s=void 0===a?"left":a,l=r.disableStackingOnMobile,o=void 0!==l&&l,d=r.testId,u=r.theme,c=r.widerContent,b=void 0!==c&&c,m=e.useMemo((function(){return{widerContent:b,disableStackingOnMobile:o,contentAlignment:s}}),[b,o,s]);return e.createElement(i.Provider,{value:m},e.createElement("table",{className:t.cx("c-dataTable",{"c-dataTable--contentRightAligned":"right"===s},u),"data-testid":d},e.createElement("tbody",null,n)))},exports.DataTableContext=i,exports.useDataTableContext=function(){return e.useContext(i)};
1
+ "use strict";var e=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=e.createContext({widerContent:!1,disableStackingOnMobile:!1,contentAlignment:"left",firstColumnSecondary:!1,isBold:!0});exports.DataTable=function(i){var r=i.children,n=i.contentAlignment,l=void 0===n?"left":n,s=i.disableStackingOnMobile,d=void 0!==s&&s,o=i.firstColumnSecondary,u=void 0!==o&&o,c=i.gaps,m=void 0===c?"medium":c,g=i.isBold,b=void 0===g||g,v=i.testId,x=i.theme,p=i.widerContent,C=void 0!==p&&p,q=e.useMemo((function(){return{widerContent:C,disableStackingOnMobile:d,contentAlignment:l,firstColumnSecondary:u,isBold:b}}),[C,d,l,u,b]);return e.createElement(a.Provider,{value:q},e.createElement("table",{className:t.cx("c-dataTable",{"c-dataTable--contentRightAligned":"right"===l},{"c-dataTable--gapSmall":"small"===m},{"c-dataTable--gapMedium":"medium"===m},{"c-dataTable--gapLarge":"large"===m},{"c-dataTable--gapXLarge":"xLarge"===m},x),"data-testid":v},e.createElement("tbody",null,r)))},exports.DataTableContext=a,exports.useDataTableContext=function(){return e.useContext(a)};
2
2
  //# sourceMappingURL=DataTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.js","sources":["../../../../../../src/components/Components/DataTable/DataTable.tsx"],"sourcesContent":[null],"names":["DataTableContext","createContext","widerContent","disableStackingOnMobile","_a","children","_b","contentAlignment","_c","testId","theme","_d","contextValue","useMemo","React","Provider","value","createElement","className","cx","useContext"],"mappings":"0aAIO,IAAMA,EAAmBC,EAAAA,cAG7B,CACDC,cAAc,EACdC,yBAAyB,sBAgBF,SAACC,OACxBC,EAAQD,EAAAC,SACRC,EAAAF,EAAAG,iBAAAA,OAAmB,IAAAD,EAAA,OAAMA,EACzBE,EAA+BJ,EAAAD,wBAA/BA,OAAuB,IAAAK,GAAQA,EAC/BC,EAAML,EAAAK,OACNC,EAAKN,EAAAM,MACLC,EAAAP,EAAAF,aAAAA,OAAe,IAAAS,GAAKA,EAEdC,EAAeC,WACnB,WAAM,MAAC,CACLX,aAAYA,EACZC,wBAAuBA,EACvBI,iBAAgBA,EAChB,GACF,CAACL,EAAcC,EAAyBI,IAG1C,OACEO,gBAACd,EAAiBe,SAAS,CAAAC,MAAOJ,GAChCE,EAAAG,cAAA,QAAA,CACEC,UAAWC,EAAEA,GAAC,cAAe,CAAE,mCAAyD,UAArBZ,GAAgCG,iBACtFD,GAEbK,EAAAG,cAAA,QAAA,KAAQZ,IAIhB,yDAxCmC,WAAM,OAAAe,aAAWpB,EAAiB"}
1
+ {"version":3,"file":"DataTable.js","sources":["../../../../../../src/components/Components/DataTable/DataTable.tsx"],"sourcesContent":[null],"names":["DataTableContext","createContext","widerContent","disableStackingOnMobile","contentAlignment","firstColumnSecondary","isBold","_a","children","_b","_c","_d","_e","gaps","_f","testId","theme","_g","contextValue","useMemo","React","Provider","value","createElement","className","cx","useContext"],"mappings":"0aAIO,IAAMA,EAAmBC,EAAAA,cAM7B,CACDC,cAAc,EACdC,yBAAyB,EACzBC,iBAAkB,OAClBC,sBAAsB,EACtBC,QAAQ,sBAsBe,SAACC,OACxBC,EAAQD,EAAAC,SACRC,EAAyBF,EAAAH,iBAAzBA,OAAmB,IAAAK,EAAA,OAAMA,EACzBC,EAA+BH,EAAAJ,wBAA/BA,OAA0B,IAAAO,KAC1BC,EAAAJ,EAAAF,qBAAAA,OAAoB,IAAAM,GAAQA,EAC5BC,EAAAL,EAAAM,KAAAA,OAAI,IAAAD,EAAG,SAAQA,EACfE,WAAAR,OAAS,IAAAQ,GAAIA,EACbC,EAAMR,EAAAQ,OACNC,EAAKT,EAAAS,MACLC,iBAAAf,OAAe,IAAAe,GAAKA,EAEdC,EAAeC,WACnB,WAAM,MAAC,CACLjB,aAAYA,EACZC,wBAAuBA,EACvBC,iBAAgBA,EAChBC,qBAAoBA,EACpBC,OAAMA,EALF,GAON,CAACJ,EAAcC,EAAyBC,EAAkBC,EAAsBC,IAGlF,OACEc,gBAACpB,EAAiBqB,SAAS,CAAAC,MAAOJ,GAChCE,EACEG,cAAA,QAAA,CAAAC,UAAWC,EAAEA,GACX,cACA,CAAE,mCAAyD,UAArBrB,GACtC,CAAE,wBAAkC,UAATS,GAC3B,CAAE,yBAAmC,WAATA,GAC5B,CAAE,wBAAkC,UAATA,GAC3B,CAAE,yBAAmC,WAATA,GAC5BG,GACD,cACYD,GAEbK,EAAAG,cAAA,QAAA,KAAQf,IAIhB,yDA3DmC,WAAM,OAAAkB,aAAW1B,EAAiB"}
@@ -1,12 +1,16 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ComponentPropsType } from '../../../utils';
3
3
  export interface DataTableItemProps extends ComponentPropsType {
4
- /** Label displayed in the left column of the row. */
4
+ /** Label displayed in the left column of the row. */
5
5
  label: ReactNode;
6
6
  /** Content displayed in the right column of the row. */
7
7
  children: ReactNode;
8
8
  /** Optional perex displayed below the label. */
9
9
  perex?: string;
10
+ /** Optional override for first column secondary styling. If undefined, inherits from DataTable. */
11
+ firstColumnSecondary?: boolean;
12
+ /** Optional override for content bold styling. If undefined, inherits from DataTable. */
13
+ isBold?: boolean;
10
14
  }
11
- export declare const DataTableItem: ({ children, label, perex, testId, theme }: DataTableItemProps) => JSX.Element;
15
+ export declare const DataTableItem: ({ children, firstColumnSecondary: firstColumnSecondaryProp, isBold: isBoldProp, label, perex, testId, theme }: DataTableItemProps) => JSX.Element;
12
16
  //# sourceMappingURL=DataTableItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/DataTable/DataTableItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAGvD,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,sDAAsD;IACtD,KAAK,EAAE,SAAS,CAAA;IAChB,wDAAwD;IACxD,QAAQ,EAAE,SAAS,CAAA;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,aAAa,8CAA+C,kBAAkB,KAAG,WAwB7F,CAAA"}
1
+ {"version":3,"file":"DataTableItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/DataTable/DataTableItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAE,kBAAkB,EAAM,MAAM,gBAAgB,CAAA;AAGvD,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,qDAAqD;IACrD,KAAK,EAAE,SAAS,CAAA;IAChB,wDAAwD;IACxD,QAAQ,EAAE,SAAS,CAAA;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mGAAmG;IACnG,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,yFAAyF;IACzF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,kHAQvB,kBAAkB,KAAG,WAkCvB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("./DataTable.js");exports.DataTableItem=function(r){var s=r.children,l=r.label,i=r.perex,c=r.testId,d=r.theme,n=a.useDataTableContext(),m=n.disableStackingOnMobile,u=n.widerContent;return e.createElement("tr",{className:t.cx(d),"data-testid":c},e.createElement("th",{className:t.cx("c-dataTableItem__label",{"c-dataTableItem__label--tighter":u,"c-dataTableItem__label--noStack":m})},l),e.createElement("td",{className:t.cx("c-dataTableItem__content",{"c-dataTableItem__content--wider":u,"c-dataTableItem__content--noStack":m})},s,i&&e.createElement("div",{className:"c-dataTableItem__perex"},i)))};
1
+ "use strict";var e=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var t=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("./DataTable.js");exports.DataTableItem=function(l){var r=l.children,s=l.firstColumnSecondary,i=l.isBold,c=l.label,d=l.perex,n=l.testId,o=l.theme,m=a.useDataTableContext(),u=m.disableStackingOnMobile,_=m.firstColumnSecondary,b=m.isBold,I=m.widerContent,T=null!=s?s:_,q=null!=i?i:b;return e.createElement("tr",{className:t.cx(o),"data-testid":n},e.createElement("th",{className:t.cx("c-dataTableItem__label",{"c-dataTableItem__label--tighter":I,"c-dataTableItem__label--noStack":u,"c-dataTableItem__label--secondary":T})},c),e.createElement("td",{className:t.cx("c-dataTableItem__content",{"c-dataTableItem__content--wider":I,"c-dataTableItem__content--noStack":u,"c-dataTableItem__content--notBold":!q})},r,d&&e.createElement("div",{className:"c-dataTableItem__perex"},d)))};
2
2
  //# sourceMappingURL=DataTableItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableItem.js","sources":["../../../../../../src/components/Components/DataTable/DataTableItem.tsx"],"sourcesContent":[null],"names":["_a","children","label","perex","testId","theme","_b","useDataTableContext","disableStackingOnMobile","widerContent","React","className","cx","createElement"],"mappings":"geAc6B,SAACA,GAAE,IAAAC,EAAQD,EAAAC,SAAEC,EAAKF,EAAAE,MAAEC,EAAKH,EAAAG,MAAEC,EAAMJ,EAAAI,OAAEC,EAAKL,EAAAK,MAC7DC,EAA4CC,EAAmBA,sBAA7DC,EAAuBF,EAAAE,wBAAEC,EAAYH,EAAAG,aAE7C,OACEC,sBAAIC,UAAWC,EAAAA,GAAGP,GAAM,cAAeD,GACrCM,EAAAG,cAAA,KAAA,CACEF,UAAWC,EAAAA,GAAG,yBAA0B,CACtC,kCAAmCH,EACnC,kCAAmCD,KAGpCN,GAEHQ,EAAAG,cAAA,KAAA,CACEF,UAAWC,EAAAA,GAAG,2BAA4B,CACxC,kCAAmCH,EACnC,oCAAqCD,KAGtCP,EACAE,GAASO,EAAKG,cAAA,MAAA,CAAAF,UAAU,0BAA0BR,IAI3D"}
1
+ {"version":3,"file":"DataTableItem.js","sources":["../../../../../../src/components/Components/DataTable/DataTableItem.tsx"],"sourcesContent":[null],"names":["_a","children","firstColumnSecondaryProp","isBoldProp","label","perex","testId","theme","_b","useDataTableContext","disableStackingOnMobile","firstColumnSecondaryFromContext","firstColumnSecondary","isBoldFromContext","isBold","widerContent","resolvedFirstColumnSecondary","resolvedIsBold","React","className","cx","createElement"],"mappings":"geAkB6B,SAACA,GAC5B,IAAAC,aACsBC,yBACdC,WACRC,EAAKJ,EAAAI,MACLC,EAAKL,EAAAK,MACLC,EAAMN,EAAAM,OACNC,EAAKP,EAAAO,MAECC,EAKFC,EAAAA,sBAJFC,EAAuBF,EAAAE,wBACDC,EAA+BH,EAAAI,qBAC7CC,EAAiBL,EAAAM,OACzBC,iBAGIC,EAA+Bd,QAAAA,EAA4BS,EAC3DM,EAAiBd,QAAAA,EAAcU,EAErC,OACEK,sBAAIC,UAAWC,EAAAA,GAAGb,GAAM,cAAeD,GACrCY,EAAAG,cAAA,KAAA,CACEF,UAAWC,EAAAA,GAAG,yBAA0B,CACtC,kCAAmCL,EACnC,kCAAmCL,EACnC,oCAAqCM,KAGtCZ,GAEHc,EAAAG,cAAA,KAAA,CACEF,UAAWC,EAAAA,GAAG,2BAA4B,CACxC,kCAAmCL,EACnC,oCAAqCL,EACrC,qCAAsCO,KAGvChB,EACAI,GAASa,EAAKG,cAAA,MAAA,CAAAF,UAAU,0BAA0Bd,IAI3D"}
@@ -1,44 +1,52 @@
1
- import React, { ReactElement, ReactNode } from 'react';
2
- export interface ProductCardPropTypes {
3
- /** Children to be rendered in the ProductCard (list of buttons). */
4
- buttons?: ReactElement;
5
- /** Children to be rendered in the ProductCard (content rendered under buttons). */
6
- children?: ReactElement | false;
7
- /** Available balance to be displayed */
8
- availableBalance: number;
9
- /** hidden string before availableBalance */
10
- availableBalanceHiddenPrefix?: ReactElement;
11
- /** Currency code of both available ballance and ledger ballance (if applicable) */
12
- currencyCode: string;
1
+ import React, { ReactNode } from 'react';
2
+ import { CardSize } from '../Card';
3
+ import { ProductHeaderPropTypes, ProductHeaderSizeProps } from '../ProductHeader';
4
+ type ProductCardTableRow = {
5
+ label: ReactNode;
6
+ perex?: string;
7
+ content: ReactNode;
8
+ testId?: string;
9
+ theme?: string;
10
+ firstColumnSecondary?: boolean;
11
+ isBold?: boolean;
12
+ };
13
+ export type ProductCardPropTypes = ProductHeaderPropTypes & {
14
+ /** Children rendered inside the collapsible content area. */
15
+ children?: ReactNode | false;
13
16
  /** Defines if card is open or closed on first render. */
14
17
  initialState?: boolean;
15
- /** Ledger ballance to be displayed above available ballance */
16
- ledgerBalance?: number;
17
- /** Ledger ballance label (prefix) */
18
- ledgerBalanceLabel?: ReactElement;
19
- /** Link for redirect on click */
20
- linkTo?: string;
21
- /** Click event handler. */
22
- onClick?: () => void;
23
- /** Product (account) ID */
24
- productId?: string;
25
- /** Product (account) name */
26
- productName: string;
27
- /** hidden string before productName */
28
- productNameHiddenPrefix?: ReactElement;
29
- /** Product (account) number */
30
- productNumber: string;
31
- /** hidden string before productNumber */
32
- productNumberHiddenPrefix?: ReactElement;
33
- /** Subheader content to be rendered under productNumber. */
34
- subheader?: ReactNode;
35
- /** interest rates configuration for displaying */
36
- afterButtonsComponent?: ReactNode;
37
- /** Determines if the card is collapsible. If false, renders only the header */
18
+ /** Determines if the card is collapsible. */
38
19
  isCollapsible?: boolean;
39
- /** Locale for number formatting (e.g. 'cs-CZ', 'en-US') */
40
- locale?: string;
41
- testId?: string;
42
- }
43
- export declare const ProductCard: ({ afterButtonsComponent, availableBalance, availableBalanceHiddenPrefix, buttons, children, currencyCode, initialState, isCollapsible, ledgerBalance, ledgerBalanceLabel, linkTo, onClick, productId, productName, productNameHiddenPrefix, productNumber, productNumberHiddenPrefix, subheader, locale, testId }: ProductCardPropTypes) => React.JSX.Element;
20
+ /** Determines if the card is clickable. */
21
+ isInteractive?: boolean;
22
+ /** Click event handler for the card wrapper / header (depending on config). */
23
+ onClick?: () => void;
24
+ /** Optional custom theme for the Card wrapper. */
25
+ theme?: string;
26
+ /** Optional testId for Card wrapper. */
27
+ cardTestId?: string;
28
+ size?: CardSize;
29
+ headerSize?: ProductHeaderSizeProps;
30
+ /** Extra content rendered under ProductHeader (still in Card header). */
31
+ customContent?: ReactNode;
32
+ /** Renders divider between ProductHeader and extra header content. */
33
+ withDivider?: boolean;
34
+ /** Rows rendered in DataTable under ProductHeader. */
35
+ tableRows?: ProductCardTableRow[];
36
+ /** If true, all rows will use 30%/70% column layout */
37
+ tableWiderContent?: boolean;
38
+ /** If true, removes top and bottom padding from all DataTableItems */
39
+ tableDisableStackingOnMobile?: boolean;
40
+ /** Alignment of the content cells */
41
+ tableContentAlignment?: 'left' | 'center' | 'right';
42
+ /** Vertical gaps between DataTableItems */
43
+ tableGaps?: 'small' | 'medium' | 'large' | 'xLarge';
44
+ /** Default for all rows: label (first column) is rendered in secondary color */
45
+ tableFirstColumnSecondary?: boolean;
46
+ /** Default for all rows: content (second column) is rendered in bold */
47
+ tableIsBold?: boolean;
48
+ dividerTheme?: string;
49
+ };
50
+ export declare const ProductCard: ({ cardTestId, children, customContent, dividerTheme, headerSize, initialState, isCollapsible, isInteractive, onClick, size, tableContentAlignment, tableDisableStackingOnMobile, tableFirstColumnSecondary, tableGaps, tableIsBold, tableRows, tableWiderContent, theme, withDivider, ...productHeaderProps }: ProductCardPropTypes) => React.JSX.Element;
51
+ export {};
44
52
  //# sourceMappingURL=ProductCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAO1E,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,YAAY,GAAG,KAAK,CAAA;IAC/B,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,CAAA;IACxB,4CAA4C;IAC5C,4BAA4B,CAAC,EAAE,YAAY,CAAA;IAC3C,mFAAmF;IACnF,YAAY,EAAE,MAAM,CAAA;IACpB,yDAAyD;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qCAAqC;IACrC,kBAAkB,CAAC,EAAE,YAAY,CAAA;IACjC,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,uBAAuB,CAAC,EAAE,YAAY,CAAA;IACtC,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,yBAAyB,CAAC,EAAE,YAAY,CAAA;IACxC,4DAA4D;IAC5D,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,kDAAkD;IAClD,qBAAqB,CAAC,EAAE,SAAS,CAAA;IACjC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,WAAW,sTAqBrB,oBAAoB,sBA0FtB,CAAA"}
1
+ {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAqB,MAAM,OAAO,CAAA;AAIrE,OAAO,EAA2B,QAAQ,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,EAAiB,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEhG,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG;IAC1D,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IAC5B,yDAAyD;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,UAAU,CAAC,EAAE,sBAAsB,CAAA;IACnC,yEAAyE;IACzE,aAAa,CAAC,EAAE,SAAS,CAAA;IAEzB,sEAAsE;IACtE,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,sDAAsD;IACtD,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAEjC,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,sEAAsE;IACtE,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,qCAAqC;IACrC,qBAAqB,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnD,gFAAgF;IAChF,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,kTAqBrB,oBAAoB,sBAoJtB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("../Avatar/Avatar.js"),t=require("../Card/Card.js"),d=require("../Card/_elements_/CardCustomTrigger.js"),l=require("./ProductCardHeader.js");exports.ProductCard=function(i){var c=i.afterButtonsComponent,o=i.availableBalance,n=i.availableBalanceHiddenPrefix,u=i.buttons,s=i.children,m=i.currencyCode,p=i.initialState,C=void 0!==p&&p,b=i.isCollapsible,g=void 0===b||b,N=i.ledgerBalance,v=i.ledgerBalanceLabel,B=i.linkTo,f=i.onClick,q=i.productId,x=i.productName,P=i.productNameHiddenPrefix,_=i.productNumber,j=i.productNumberHiddenPrefix,E=i.subheader,H=i.locale,k=i.testId,h=e.useState(C),I=h[0],T=h[1],w=function(){T(!I),f&&f()};return g?e.createElement(t.Card,{hasCustomTrigger:!0,isCollapsible:!0,isInteractive:!0,withoutRole:!0,borderColor:"transparent",header:e.createElement(e.Fragment,null,e.createElement(l.ProductCardHeader,{afterButtonsComponent:c,availableBalance:o,availableBalanceHiddenPrefix:n,buttons:u,currencyCode:m,ledgerBalance:N,ledgerBalanceLabel:v,linkTo:B,productId:q,productName:x,productNameHiddenPrefix:P,productNumber:_,productNumberHiddenPrefix:j,subheader:E,locale:H,onClick:w}),!I&&e.createElement(d.CardCustomTrigger,null,e.createElement("div",{className:"productCard__collapsible_trigger",id:"productCard-".concat(_,"-collapsible-closed")},e.createElement(a.Avatar,{iconName:"arrowDown"})))),isOpen:I,testId:"productCard-".concat(_),theme:r.cx("u-mb--large",{"c-card--interactive--open":I},"productCard"),onClick:w},e.createElement("div",{className:"productCard__transactions_wrapper"},s,I&&e.createElement(d.CardCustomTrigger,null,e.createElement("div",{className:"productCard__collapsible_trigger",id:"productCard-".concat(_,"-collapsible-opened")},e.createElement(a.Avatar,{iconName:"arrowUp"}))))):e.createElement(l.ProductCardHeader,{afterButtonsComponent:c,availableBalance:o,availableBalanceHiddenPrefix:n,buttons:u,currencyCode:m,ledgerBalance:N,ledgerBalanceLabel:v,linkTo:B,productId:q,productName:x,productNameHiddenPrefix:P,productNumber:_,productNumberHiddenPrefix:j,subheader:E,locale:H,testId:k,onClick:f})};
1
+ "use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require("react");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var a=require("../Avatar/Avatar.js"),i=require("../Card/Card.js"),l=require("../Card/_elements_/CardCustomTrigger.js"),n=require("../DataTable/DataTable.js"),d=require("../DataTable/DataTableItem.js"),s=require("../Divider/Divider.js"),o=require("../ProductHeader/ProductHeader.js");exports.ProductCard=function(c){var u=c.cardTestId,m=c.children,C=c.customContent,b=c.dividerTheme,v=c.headerSize,p=void 0===v?"medium":v,g=c.initialState,I=void 0!==g&&g,_=c.isCollapsible,E=void 0!==_&&_,h=c.isInteractive,q=void 0!==h&&h,j=c.onClick,D=c.size,k=void 0===D?"large":D,T=c.tableContentAlignment,f=void 0===T?"left":T,S=c.tableDisableStackingOnMobile,N=void 0!==S&&S,y=c.tableFirstColumnSecondary,A=void 0===y||y,w=c.tableGaps,x=void 0===w?"small":w,z=c.tableIsBold,B=void 0!==z&&z,M=c.tableRows,P=c.tableWiderContent,F=void 0!==P&&P,H=c.theme,O=c.withDivider,R=void 0!==O&&O,G=e.__rest(c,["cardTestId","children","customContent","dividerTheme","headerSize","initialState","isCollapsible","isInteractive","onClick","size","tableContentAlignment","tableDisableStackingOnMobile","tableFirstColumnSecondary","tableGaps","tableIsBold","tableRows","tableWiderContent","theme","withDivider"]),W=t.useState(I),U=W[0],J=W[1],K=Array.isArray(M)&&M.length>0,L=t.Children.count(C)>0,Q=K||L,V=Boolean(E&&q&&j),X=t.useMemo((function(){return null!=u?u:G.testId?"productCard-".concat(G.testId):"productCard"}),[u,G.testId]),Y=function(){return J((function(e){return!e}))},Z=function(){E&&Y(),j&&j()},$=function(e){e.stopPropagation(),Y()},ee=function(){return Q?t.createElement("div",{className:"c-productCard__headerExtra"},R&&t.createElement(s.Divider,{theme:r.cx("c-productCard__divider",b)}),K?t.createElement("div",{className:"c-productCard__table"},t.createElement(n.DataTable,{contentAlignment:f,disableStackingOnMobile:N,firstColumnSecondary:A,gaps:x,isBold:B,widerContent:F},M.map((function(e,r){return t.createElement(d.DataTableItem,{key:"productCard-tableRow-".concat(r),firstColumnSecondary:e.firstColumnSecondary,isBold:e.isBold,label:e.label,perex:e.perex,testId:e.testId,theme:e.theme},e.content)})))):null,L&&t.createElement("div",{className:"c-productCard__customContent"},C)):null};return E?t.createElement(i.Card,{hasCustomTrigger:!0,isCollapsible:!0,header:t.createElement(t.Fragment,null,t.createElement("div",{onClick:function(){V?null==j||j():Z()}},t.createElement(o.ProductHeader,e.__assign({},G,{size:p})),ee()),!U&&t.createElement(l.CardCustomTrigger,null,t.createElement("div",{className:"c-productCard__collapsible--trigger",id:G.testId?"productCard-".concat(G.testId,"-collapsible-closed"):"productCard-collapsible-closed",onClick:$},t.createElement(a.Avatar,{iconName:"arrowDown"})))),isInteractive:q,isOpen:U,size:"large",testId:X,theme:r.cx({"c-card--interactive--open":U},H),onClick:V?void 0:Z},t.createElement("div",null,m,U&&t.createElement(l.CardCustomTrigger,null,t.createElement("div",{className:"c-productCard__collapsible--trigger",id:G.testId?"productCard-".concat(G.testId,"-collapsible-opened"):"productCard-collapsible-opened",onClick:$},t.createElement(a.Avatar,{iconName:"arrowUp"}))))):t.createElement(i.Card,{isInteractive:q,size:k,testId:null!=u?u:G.testId,theme:H,onClick:Z},t.createElement(o.ProductHeader,e.__assign({},G,{size:p})),ee())};
2
2
  //# sourceMappingURL=ProductCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.js","sources":["../../../../../../src/components/Components/ProductCard/ProductCard.tsx"],"sourcesContent":[null],"names":["_a","afterButtonsComponent","availableBalance","availableBalanceHiddenPrefix","buttons","children","currencyCode","_b","initialState","_c","isCollapsible","ledgerBalance","ledgerBalanceLabel","linkTo","onClick","productId","productName","productNameHiddenPrefix","productNumber","productNumberHiddenPrefix","subheader","locale","testId","_d","useState","isOpen","setIsOpen","handleOnClick","React","createElement","Card","hasCustomTrigger","isInteractive","withoutRole","borderColor","header","Fragment","ProductCardHeader","CardCustomTrigger","className","id","concat","Avatar","iconName","theme","cx"],"mappings":"ylBAiD2B,SAACA,GAC1B,IAAAC,EAAqBD,EAAAC,sBACrBC,EAAgBF,EAAAE,iBAChBC,EAA4BH,EAAAG,6BAC5BC,EAAOJ,EAAAI,QACPC,aACAC,EAAYN,EAAAM,aACZC,EAAoBP,EAAAQ,aAApBA,OAAY,IAAAD,GAAQA,EACpBE,EAAAT,EAAAU,cAAAA,OAAgB,IAAAD,KAChBE,EAAaX,EAAAW,cACbC,EAAkBZ,EAAAY,mBAClBC,EAAMb,EAAAa,OACNC,EAAOd,EAAAc,QACPC,EAASf,EAAAe,UACTC,EAAWhB,EAAAgB,YACXC,EAAuBjB,EAAAiB,wBACvBC,EAAalB,EAAAkB,cACbC,EAAyBnB,EAAAmB,0BACzBC,EAASpB,EAAAoB,UACTC,EAAMrB,EAAAqB,OACNC,EAAMtB,EAAAsB,OAEAC,EAAsBC,EAAAA,SAAShB,GAA9BiB,EAAMF,EAAA,GAAEG,EAASH,EAAA,GAElBI,EAAgB,WACpBD,GAAWD,GAEPX,GACFA,GAEJ,EAGA,OAAKJ,EAyBHkB,EAACC,cAAAC,QACCC,kBAAgB,EAChBrB,eACA,EAAAsB,iBACAC,aAAW,EACXC,YAAY,cACZC,OACEP,gBAACQ,EAAAA,SAAQ,KACPR,EAAAC,cAACQ,oBAAiB,CAChBpC,sBAAuBA,EACvBC,iBAAkBA,EAClBC,6BAA8BA,EAC9BC,QAASA,EACTE,aAAcA,EACdK,cAAeA,EACfC,mBAAoBA,EACpBC,OAAQA,EACRE,UAAWA,EACXC,YAAaA,EACbC,wBAAyBA,EACzBC,cAAeA,EACfC,0BAA2BA,EAC3BC,UAAWA,EACXC,OAAQA,EACRP,QAASa,KAGTF,GACAG,EAAAC,cAACS,EAAiBA,kBAAA,KAChBV,EAAKC,cAAA,MAAA,CAAAU,UAAU,mCAAmCC,GAAI,eAAAC,OAAevB,EAAkC,wBACrGU,EAAAC,cAACa,SAAO,CAAAC,SAAS,iBAM3BlB,OAAQA,EACRH,OAAQ,eAAemB,OAAAvB,GACvB0B,MAAOC,EAAAA,GAAG,cAAe,CAAE,4BAA6BpB,GAAU,eAClEX,QAASa,GAETC,EAAKC,cAAA,MAAA,CAAAU,UAAU,qCACZlC,EACAoB,GACCG,EAAAC,cAACS,EAAAA,kBAAiB,KAChBV,EAAKC,cAAA,MAAA,CAAAU,UAAU,mCAAmCC,GAAI,eAAAC,OAAevB,EAAkC,wBACrGU,EAAAC,cAACa,EAAAA,OAAM,CAACC,SAAS,gBArEzBf,EAAAC,cAACQ,oBAAiB,CAChBpC,sBAAuBA,EACvBC,iBAAkBA,EAClBC,6BAA8BA,EAC9BC,QAASA,EACTE,aAAcA,EACdK,cAAeA,EACfC,mBAAoBA,EACpBC,OAAQA,EACRE,UAAWA,EACXC,YAAaA,EACbC,wBAAyBA,EACzBC,cAAeA,EACfC,0BAA2BA,EAC3BC,UAAWA,EACXC,OAAQA,EACRC,OAAQA,EACRR,QAASA,GA2DjB"}
1
+ {"version":3,"file":"ProductCard.js","sources":["../../../../../../src/components/Components/ProductCard/ProductCard.tsx"],"sourcesContent":[null],"names":["_a","cardTestId","children","customContent","dividerTheme","_b","headerSize","_c","initialState","_d","isCollapsible","_e","isInteractive","onClick","_f","size","_g","tableContentAlignment","_h","tableDisableStackingOnMobile","_j","tableFirstColumnSecondary","_k","tableGaps","_l","tableIsBold","tableRows","_m","tableWiderContent","theme","_o","withDivider","productHeaderProps","__rest","_p","useState","isOpen","setIsOpen","hasTable","Array","isArray","length","hasCustomContent","React","Children","count","hasExtraHeaderContent","separateHeaderAndCollapseClick","Boolean","resolvedCardTestId","useMemo","testId","concat","toggleOpen","prev","handleDefaultClick","handleArrowToggleClick","e","stopPropagation","renderExtraHeaderContent","createElement","className","Divider","cx","DataTable","contentAlignment","disableStackingOnMobile","firstColumnSecondary","gaps","isBold","widerContent","map","row","idx","DataTableItem","key","label","perex","content","Card","hasCustomTrigger","header","Fragment","ProductHeader","__assign","CardCustomTrigger","id","Avatar","iconName","undefined"],"mappings":"+wBA6D2B,SAACA,GAC1B,IAAAC,EAAUD,EAAAC,WACVC,EAAQF,EAAAE,SACRC,EAAaH,EAAAG,cACbC,EAAYJ,EAAAI,aACZC,eAAAC,OAAa,IAAAD,EAAA,SAAQA,EACrBE,iBAAAC,OAAe,IAAAD,GAAKA,EACpBE,kBAAAC,OAAgB,IAAAD,GAAKA,EACrBE,kBAAAC,OAAgB,IAAAD,GAAKA,EACrBE,EAAOb,EAAAa,QACPC,EAAcd,EAAAe,KAAdA,OAAI,IAAAD,EAAG,QAAOA,EACdE,EAA8BhB,EAAAiB,sBAA9BA,OAAqB,IAAAD,EAAG,OAAMA,EAC9BE,EAAoClB,EAAAmB,6BAApCA,OAA4B,IAAAD,GAAQA,EACpCE,EAAgCpB,EAAAqB,0BAAhCA,OAAyB,IAAAD,GAAOA,EAChCE,EAAmBtB,EAAAuB,UAAnBA,OAAS,IAAAD,EAAG,QAAOA,EACnBE,EAAmBxB,EAAAyB,YAAnBA,OAAW,IAAAD,GAAQA,EACnBE,EAAS1B,EAAA0B,UACTC,EAAA3B,EAAA4B,kBAAAA,OAAiB,IAAAD,GAAQA,EACzBE,UACAC,EAAA9B,EAAA+B,YAAAA,OAAc,IAAAD,KACXE,EApBuBC,SAAAjC,EAAA,CAAA,aAAA,WAAA,gBAAA,eAAA,aAAA,eAAA,gBAAA,gBAAA,UAAA,OAAA,wBAAA,+BAAA,4BAAA,YAAA,cAAA,YAAA,oBAAA,QAAA,gBAsBpBkC,EAAsBC,EAAAA,SAAS3B,GAA9B4B,EAAMF,EAAA,GAAEG,EAASH,EAAA,GAElBI,EAAWC,MAAMC,QAAQd,IAAcA,EAAUe,OAAS,EAC1DC,EAAmBC,EAAMC,SAASC,MAAM1C,GAAiB,EACzD2C,EAAwBR,GAAYI,EAE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AKC,WAAA,CAAA,EAAApD,GAAoBjB,KAAMT,KAC5CqD,OAGDvB,GACAO,EAAAiB,cAACyB,EAAiBA,kBAAA,KAChB1C,EACEiB,cAAA,MAAA,CAAAC,UAAU,sCACVyB,GACEtD,EAAmBmB,OACf,eAAAC,OAAepB,EAAmBmB,OAA2B,uBAC7D,iCAENtC,QAAS2C,GAETb,EAACiB,cAAA2B,EAAAA,QAAOC,SAAS,iBAM3B5E,cAAeA,EACfwB,OAAQA,EACRrB,KAAK,QACLoC,OAAQF,EACRpB,MAAOkC,EAAAA,GAAG,CAAE,4BAA6B3B,GAAUP,GACnDhB,QAASkC,OAAiC0C,EAAYlC,GAEtDZ,EAAAiB,cAAA,MAAA,KACG1D,EAEAkC,GACCO,EAAAiB,cAACyB,EAAAA,kBAAiB,KAChB1C,EACEiB,cAAA,MAAA,CAAAC,UAAU,sCACVyB,GACEtD,EAAmBmB,OACf,eAAAC,OAAepB,EAAmBmB,OAA2B,uBAC7D,iCAENtC,QAAS2C,GAETb,EAAAiB,cAAC2B,EAAAA,OAAM,CAACC,SAAS,gBA9DzB7C,EAAAiB,cAACmB,EAAAA,KAAI,CACHnE,cAAeA,EACfG,KAAMA,EACNoC,OAAQlD,QAAAA,EAAc+B,EAAmBmB,OACzCtB,MAAOA,EACPhB,QAAS0C,GAETZ,EAAAiB,cAACuB,EAAaA,cAAKC,WAAA,CAAA,EAAApD,GAAoBjB,KAAMT,KAC5CqD,KA6DT"}
@@ -1,3 +1,2 @@
1
- export * from './ProductCardHeader';
2
1
  export * from './ProductCard';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var r=require("./ProductCardHeader.js"),d=require("./ProductCard.js");exports.ProductCardHeader=r.ProductCardHeader,exports.ProductCard=d.ProductCard;
1
+ "use strict";var r=require("./ProductCard.js");exports.ProductCard=r.ProductCard;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,117 @@
1
+ import React, { ReactElement, ReactNode } from 'react';
2
+ import { ColorType, IconNameType, Theme } from '../../../types';
3
+ import { AmountSizeType, AmountType, TextSizeType, TitleSize } from '../../Typography';
4
+ import { AvatarSizeType } from '../Avatar';
5
+ import { ButtonSize } from '../Button';
6
+ import { CompactButtonsButtonType } from '../CompactButtons';
7
+ export type ProductHeaderSizeProps = 'small' | 'medium' | 'large' | 'xLarge';
8
+ export interface ProductHeaderPropTypes {
9
+ /**
10
+ * ProductHeader size variant that sets default sizing for the whole header (title, subtitle, amounts, icon and actions).
11
+ * You can still override any individual size via `titleSize`, `subtitleSize`, `amountSize`, `secondaryAmountSize`,
12
+ * `titleIconSize` or `actionsSize`.
13
+ */
14
+ size?: ProductHeaderSizeProps;
15
+ /** Main title text shown in the top-left area. */
16
+ title: string;
17
+ /** Custom title content rendered in the top-left area instead of default `title`. */
18
+ customTitle?: ReactNode;
19
+ /** Title size. */
20
+ titleSize?: TitleSize;
21
+ /** Title visual size. Use this for matching title visual with desired design. */
22
+ titleVisual?: TitleSize;
23
+ /** Title without margin. For this component default value is true. */
24
+ titleWithoutMargin?: boolean;
25
+ /** Optional icon rendered to the left of the title. */
26
+ titleIconName?: IconNameType;
27
+ /** Text rendered inside of icon instead of iconName. */
28
+ titleIconText?: ReactNode;
29
+ /** Color of icon rendered to the left of the title. */
30
+ titleIconColor?: ColorType;
31
+ /** Background color of icon rendered to the left of the title. */
32
+ titleIconBackgroundColor?: ColorType;
33
+ /** Custom background color of icon rendered to the left of the title. */
34
+ titleIconBackgroundCustom?: string;
35
+ /** Size of icon rendered to the left of the title. */
36
+ titleIconSize?: AvatarSizeType;
37
+ /** Visually hidden prefix rendered before the title (for screen readers). */
38
+ titleHiddenPrefix?: ReactElement;
39
+ /** Link that can be used for title (internal navigation). */
40
+ linkTo?: string;
41
+ /** External link to open in a new tab on click (title area). */
42
+ externalLink?: string;
43
+ /** Secondary text shown under the title in the left column. */
44
+ subtitle?: string;
45
+ /** Custom subtitle content (any ReactNode component) rendered under the title instead of default subtitle. */
46
+ customSubtitle?: ReactNode;
47
+ /** Subtitle text size. */
48
+ subtitleSize?: TextSizeType;
49
+ /** Visually hidden prefix rendered before the subtitle (for screen readers). */
50
+ subtitleHiddenPrefix?: ReactElement;
51
+ /** Main amount value shown in the top-right cell. If amountis not defined,topRightButtons can be rendered instead. */
52
+ amount?: number;
53
+ /** Visually hidden prefix rendered before value shown in the top-right cell - usually the main amount (for screen readers). */
54
+ amountHiddenPrefix?: ReactElement;
55
+ /** Main amount size. */
56
+ amountSize?: AmountSizeType;
57
+ /** Main amount type. */
58
+ amountType?: AmountType;
59
+ /** Define if main amount is bold or not, default value is true. */
60
+ amountIsBold?: boolean;
61
+ /** Render main amount inline. */
62
+ amountIsInline?: boolean;
63
+ /** Hide icon for positive/negative or other main amount types. */
64
+ amountHideIcon?: boolean;
65
+ /** Unit before main amount value. */
66
+ amountUnitBefore?: string;
67
+ /** Unit after main amount value. */
68
+ amountUnitAfter?: string;
69
+ /** Unit theme for main amount. */
70
+ amountUnitTheme?: Theme;
71
+ /** Maximum fraction digits for main amount. */
72
+ amountMaximumFractionDigits?: number;
73
+ /** Minimum fraction digits for main amount. */
74
+ amountMinimumFractionDigits?: number;
75
+ /** Buttons rendered in the top-right cell (alternative to `amount`). This cell renders either `amount` OR `topRightButtons`, never both. */
76
+ topRightButtons?: ReactNode | ReactNode[];
77
+ /** Content rendered in the top-right cell (alternative to `amount` or `topRightButtons`). This cell renders either `amount` OR `topRightButtons` OR `topRightCustomContent`. */
78
+ topRightCustomContent?: ReactNode;
79
+ /** Label rendered in the bottom-right cell. Can be rendered alone or before secondary amount. */
80
+ secondaryLabel?: ReactNode;
81
+ /** Size of label rendered in the bottom-right cell. Can be rendered alone or before secondary amount. */
82
+ secondaryLabelSize?: TextSizeType;
83
+ /** Secondary amount value rendered next to `secondaryLabel`. */
84
+ secondaryAmount?: number;
85
+ /** Secondary amount size. */
86
+ secondaryAmountSize?: AmountSizeType;
87
+ /** Secondary amount type. */
88
+ secondaryAmountType?: AmountType;
89
+ /** Define if secondary amount is bold or not, default value is true. */
90
+ secondaryAmountIsBold?: boolean;
91
+ /** Render secondary amount inline. */
92
+ secondaryAmountIsInline?: boolean;
93
+ /** Hide icon for types for secondary amount. */
94
+ secondaryAmountHideIcon?: boolean;
95
+ /** Unit before secondary amount value. */
96
+ secondaryAmountUnitBefore?: string;
97
+ /** Unit after secondary amount value. */
98
+ secondaryAmountUnitAfter?: string;
99
+ /** Unit theme for secondary amount. */
100
+ secondaryAmountUnitTheme?: Theme;
101
+ /** Maximum fraction digits for secondary amount. */
102
+ secondaryAmountMaximumFractionDigits?: number;
103
+ /** Minimum fraction digits for secondary amount. */
104
+ secondaryAmountMinimumFractionDigits?: number;
105
+ /** Buttons rendered below the header grid (full width). */
106
+ actions?: CompactButtonsButtonType[];
107
+ /** Size of buttons rendered below the header grid (full width). */
108
+ actionsSize?: ButtonSize;
109
+ /** Content rendered below the header grid (full width). Can contain any ReactNode, e.g. buttons, additional information, or custom components. */
110
+ belowHeaderContent?: ReactNode;
111
+ /** Locale for number formatting (e.g. 'cs-CZ', 'en-US'). Affects both main and secondary amounts. */
112
+ locale?: string;
113
+ /** Test ID for testing purposes. */
114
+ testId?: string;
115
+ }
116
+ export declare const ProductHeader: ({ actions, actionsSize, amount, amountHiddenPrefix, amountHideIcon, amountIsBold, amountIsInline, amountMaximumFractionDigits, amountMinimumFractionDigits, amountSize, amountType, amountUnitAfter, amountUnitBefore, amountUnitTheme, belowHeaderContent, customSubtitle, customTitle, externalLink, linkTo, locale, secondaryAmount, secondaryAmountHideIcon, secondaryAmountIsBold, secondaryAmountIsInline, secondaryAmountMaximumFractionDigits, secondaryAmountMinimumFractionDigits, secondaryAmountSize, secondaryAmountType, secondaryAmountUnitAfter, secondaryAmountUnitBefore, secondaryAmountUnitTheme, secondaryLabel, secondaryLabelSize, size, subtitle, subtitleHiddenPrefix, subtitleSize, testId, title, titleHiddenPrefix, titleIconBackgroundColor, titleIconBackgroundCustom, titleIconColor, titleIconName, titleIconSize, titleIconText, titleSize, titleVisual, titleWithoutMargin, topRightButtons, topRightCustomContent }: ProductHeaderPropTypes) => React.JSX.Element;
117
+ //# sourceMappingURL=ProductHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAA;AAGnF,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,EAAU,cAAc,EAAE,UAAU,EAAQ,YAAY,EAAS,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC3G,OAAO,EAAU,cAAc,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAgB,UAAU,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAkB,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAG5E,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAqD5E,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,sBAAsB,CAAA;IAI7B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,qFAAqF;IACrF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,kBAAkB;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,iFAAiF;IACjF,WAAW,CAAC,EAA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AAO,MAAM,aAAa,25BAqDvB,sBAAsB,sBA+NxB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("react"),t=require("react-router-dom");require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var r=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js'),require('./../../../ext/tslib/tslib.es6.js');var i=require("../../Layout/Flex/Flex.js");require("../Button/Button.js");var o=require("../Button/ButtonsGroup.js");require("../../../contexts/MobilePanelContext.js"),require('./../../../ext/cuid/index.js');var n=require("../../Typography/Amount/Amount.js"),a=require("../../Typography/Text/Text.js"),l=require("../../Typography/Title/Title.js"),s=require("../Avatar/Avatar.js");require("../ButtonTooltip/ButtonTooltip.js"),require("../../../contexts/CardContext.js"),require("../../../contexts/FormGroupContext.js"),require("../../../contexts/ModalContext.js"),require("../../../contexts/Select2Context.js"),require("../../../contexts/TabsContext.js"),require("react-slick"),require("../Collapse/Collapse.js");var u=require("../CompactButtons/CompactButtons.js");require("../../../contexts/ContentTableContext.js"),require("../ContentTable/ContentTableRow.js"),require("../DataTable/DataTable.js"),require('./../../../ext/lodash/_baseToString.js'),require('./../../../ext/react-text-mask/dist/reactTextMask.js'),require("../Dropdown/_elements_/DropdownDivider.js"),require("../Dropdown/_elements_/DropdownItem.js"),require("../Dropdown/_elements_/DropdownMenu.js"),require("../Dropdown/_elements_/DropdownInfoText.js"),require("../Dropdown/_elements_/DropdownLoading.js");var c=require("../Link/Link.js");require("react-dom"),require("../SuperModal/SuperModal.context.js"),require("../../Form/Autocomplete/Autocomplete.js"),require('./../../../ext/react-device-detect/dist/lib.js'),require("../../Form/FileUpload/_parts_/MergeImageCards.js"),require("../../Form/Select/_elements_/Select2CategorisedOptions.js"),require("../../Form/Select/_elements_/Select2Options.js"),require("../../Form/Slider/Slider.js");exports.ProductHeader=function(d){var m=d.actions,p=d.actionsSize,_=d.amount,x=d.amountHiddenPrefix,g=d.amountHideIcon,q=void 0!==g&&g,y=d.amountIsBold,v=void 0===y||y,S=d.amountIsInline,j=d.amountMaximumFractionDigits,H=void 0===j?2:j,b=d.amountMinimumFractionDigits,z=void 0===b?2:b,h=d.amountSize,T=d.amountType,A=d.amountUnitAfter,C=d.amountUnitBefore,I=d.amountUnitTheme,E=d.belowHeaderContent,f=d.customSubtitle,D=d.customTitle,L=d.externalLink,B=d.linkTo,F=d.locale,N=d.secondaryAmount,k=d.secondaryAmountHideIcon,w=void 0!==k&&k,M=d.secondaryAmountIsBold,U=d.secondaryAmountIsInline,V=d.secondaryAmountMaximumFractionDigits,P=void 0===V?2:V,G=d.secondaryAmountMinimumFractionDigits,O=void 0===G?2:G,R=d.secondaryAmountSize,W=d.secondaryAmountType,J=d.secondaryAmountUnitAfter,K=d.secondaryAmountUnitBefore,Q=d.secondaryAmountUnitTheme,X=d.secondaryLabel,Y=d.secondaryLabelSize,Z=d.size,$=void 0===Z?"medium":Z,ee=d.subtitle,te=d.subtitleHiddenPrefix,re=d.subtitleSize,ie=d.testId,oe=d.title,ne=d.titleHiddenPrefix,ae=d.titleIconBackgroundColor,le=void 0===ae?"bgBrandDefault":ae,se=d.titleIconBackgroundCustom,ue=d.titleIconColor,ce=d.titleIconName,de=d.titleIconSize,me=d.titleIconText,pe=d.titleSize,_e=void 0===pe?"h2":pe,xe=d.titleVisual,ge=d.titleWithoutMargin,qe=void 0===ge||ge,ye=d.topRightButtons,ve=d.topRightCustomContent,Se=t.useHistory(),je=e.useCallback((function(e){"preventDefault"in e&&e.preventDefault(),B&&Se.push(B)}),[Se,B]),He=function(e){switch(e){case"small":return{amountSize:"small",secondaryAmountSize:"xSmall",titleIconSize:"medium",actionsSize:"small"};case"medium":default:return{titleVisual:"h5",subtitleSize:"small",amountSize:"large",secondaryAmountSize:"small",titleIconSize:"medium",actionsSize:"small",secondaryLabelSize:"small"};case"large":return{titleVisual:"h4",subtitleSize:"small",amountSize:"xLarge",secondaryAmountSize:"small",titleIconSize:"large",secondaryLabelSize:"small"};case"xLarge":return{titleVisual:"h3",amountSize:"xLarge",titleIconSize:"xLarge"}}}($),be=null!=xe?xe:He.titleVisual,ze=null!=re?re:He.subtitleSize,he=null!=Y?Y:He.secondaryLabelSize,Te=null!=h?h:He.amountSize,Ae=null!=R?R:He.secondaryAmountSize,Ce=null!=de?de:He.titleIconSize,Ie=null!=p?p:He.actionsSize,Ee="small"===$&&!h,fe="small"===$&&!R,De="xLarge"===$&&!R,Le=D||oe,Be=!!f||"string"==typeof ee,Fe=!!ce||!!me,Ne=e.Children.count(ve)>0,ke=e.Children.count(ye)>0,we=Ne,Me=!we&&ke,Ue=!we&&!Me&&"number"==typeof _,Ve=we||Me||Ue,Pe=!!X||"number"==typeof N,Ge=!!(null==m?void 0:m.length),Oe=e.Children.count(E)>0,Re=function(){return B||L?e.createElement(c.Link,{ariaLabel:oe,"data-testid":ie?"productHeader-link-".concat(ie):void 0,linkUrl:L||B,target:L?"_blank":void 0,theme:"c-productHeader__titleLink",onClick:L?void 0:je},e.createElement(l.Title,{isWithoutMargin:qe,size:_e,theme:r.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!xe}),visual:be},ne&&e.createElement("span",{className:"u-vHide"},ne),Le)):e.createElement(l.Title,{isWithoutMargin:qe,size:_e,theme:r.cx("c-productHeader__title",{"c-productHeader__title--customVisual":!!xe}),visual:be},ne&&e.createElement("span",{className:"u-vHide"},ne),Le)};return!(Fe||Be||Ve||Pe||Ge||Oe)?e.createElement("div",{className:"c-productHeader c-productHeader--titleOnly","data-testid":ie},Re()):e.createElement("div",{className:r.cx("c-productHeader",{"c-productHeader--withTitleIcon":Fe,"c-productHeader--small":"small"===$,"c-productHeader--xLarge":"xLarge"===$}),"data-testid":ie},e.createElement("div",{className:"c-productHeader__grid"},Fe?e.createElement("div",{className:"c-productHeader__gridIcon"},e.createElement(s.Avatar,{backgroundColor:le,backgroundCustom:se,color:ue,iconName:ce,size:Ce,text:me})):null,e.createElement("div",{className:"c-productHeader__gridTitle"},Re()),e.createElement("div",{className:"c-productHeader__gridSubtitle"},Be?f?e.createElement(e.Fragment,null,te&&e.createElement("span",{className:"u-vHide"},te),f):e.createElement(a.Text,{size:ze,theme:r.cx("c-productHeader__subtitle",{"c-productHeader__subtitle--customSize":!!re}),type:"secondary"},te&&e.createElement("span",{className:"u-vHide"},te),ee):null),Ve?e.createElement("div",{className:"c-productHeader__gridAmount"},we?ve:null,Me?e.createElement(o.ButtonsGroup,null,ye):null,Ue?e.createElement(e.Fragment,null,x&&e.createElement("span",{className:"u-vHide"},x),e.createElement(n.Amount,{amount:_,hideIcon:q,isBold:v,isInline:S,locale:F,maximumFractionDigits:H,minimumFractionDigits:z,size:Te,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":Ee}),type:T,unitAfter:A,unitBefore:C,unitTheme:I})):null):null,Pe?e.createElement("div",{className:"c-productHeader__gridSecondary"},X?e.createElement(i.Flex,{alignItems:"baseline",direction:"row",justifyContent:"end",theme:"c-productHeader__secondary"},e.createElement(a.Text,{component:"span",size:he,theme:r.cx("c-productHeader__secondaryLabel",{"c-productHeader__secondaryLabel--customSize":!!Y})},X),"number"==typeof N?e.createElement(n.Amount,{amount:N,hideIcon:w,isBold:M,isInline:U,locale:F,maximumFractionDigits:P,minimumFractionDigits:O,size:Ae,theme:r.cx("c-productHeader__amount",{"c-productHeader__amount--small":fe,"c-productHeader__secondaryAmount--xLarge":De}),type:W,unitAfter:J,unitBefore:K,unitTheme:r.cx(Q,{"c-productHeader__secondaryAmount--xLarge":De})}):null):null):null),Ge?e.createElement("div",{className:"c-productHeader__actions"},e.createElement(u.CompactButtons,{buttons:m,size:Ie})):null,Oe?e.createElement("div",{className:"c-productHeader__below"},E):null)};
2
+ //# sourceMappingURL=ProductHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductHeader.js","sources":["../../../../../../src/components/Components/ProductHeader/ProductHeader.tsx"],"sourcesContent":[null],"names":["_a","actions","actionsSize","amount","amountHiddenPrefix","_b","amountHideIcon","_c","amountIsBold","amountIsInline","_d","amountMaximumFractionDigits","_e","amountMinimumFractionDigits","amountSize","amountType","amountUnitAfter","amountUnitBefore","amountUnitTheme","belowHeaderContent","customSubtitle","customTitle","externalLink","linkTo","locale","secondaryAmount","_f","secondaryAmountHideIcon","secondaryAmountIsBold","secondaryAmountIsInline","_g","secondaryAmountMaximumFractionDigits","_h","secondaryAmountMinimumFractionDigits","secondaryAmountSize","secondaryAmountType","secondaryAmountUnitAfter","secondaryAmountUnitBefore","secondaryAmountUnitTheme","secondaryLabel","secondaryLabelSize","_j","size","subtitle","subtitleHiddenPrefix","subtitleSize","testId","title","titleHiddenPrefix","_k","titleIconBackgroundColor","titleIconBackgroundCustom","titleIconColor","titleIconName","titleIconSize","titleIconText","_l","titleSize","titleVisual","_m","titleWithoutMargin","topRightButtons","topRightCustomContent","history","useHistory","onInternalTitleClick","useCallback","e","preventDefault","push","defaultSizes","getDefaultSizesByHeaderSize","resolvedTitleVisual","resolvedSubtitleSize","resolvedSecondaryLabelSize","resolvedAmountSize","resolvedSecondaryAmountSize","resolvedTitleIconSize","resolvedActionsSize","shouldUseSmallAmountTheme","shouldUseSmallSecondaryAmountTheme","shouldUseXLargeSecondaryAmountTheme","titleContent","hasSubtitle","hasIcon","hasTopRightCustomContent","React","Children","count","hasTopRightButtons","showTopRightCustomContent","showTopRightButtons","showAmount","hasTopRight","hasBottomRight","hasActions","length","hasBelowHeaderContent","renderTitle","createElement","Link","ariaLabel","concat","undefined","linkUrl","target","theme","onClick","Title","isWithoutMargin","cx","visual","className","Avatar","backgroundColor","backgroundCustom","color","iconName","text","Fragment","Text","type","ButtonsGroup","Amount","hideIcon","isBold","isInline","maximumFractionDigits","minimumFractionDigits","unitAfter","unitBefore","unitTheme","Flex","alignItems","direction","justifyContent","component","CompactButtons","buttons"],"mappings":"4tEAmM6B,SA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,GACNgC,MAAOI,EAAEA,GAAC,kCAAmC,CAC3C,gDAAiDtE,KAGlDD,GAGyB,iBAApBd,EACN6D,gBAACqC,EAAMA,OAAA,CACLxH,OAAQsB,EACRmG,SAAUjG,EACVkG,OAAQjG,EACRkG,SAAUjG,EACVL,OAAQA,EACRuG,sBAAuBhG,EACvBiG,sBAAuB/F,EACvBS,KAAMkC,GACN8B,MAAOI,EAAAA,GAAG,0BAA2B,CACnC,iCAAkC9B,GAClC,2CAA4CC,KAE9CwC,KAAMtF,EACN8F,UAAW7F,EACX8F,WAAY7F,EACZ8F,UAAWrB,EAAEA,GAACxE,EAA0B,CACtC,2CAA4C2C,OAG9C,MAEJ,MAEJ,MAGLc,GACCT,EAAKa,cAAA,MAAA,CAAAa,UAAU,4BACb1B,EAAAa,cAACsC,EAAcA,eAAA,CAACC,QAASzI,EAASyC,KAAMoC,MAExC,KAEHmB,GAAwBX,EAAKa,cAAA,MAAA,CAAAa,UAAU,0BAA0B7F,GAA4B,KAGpG"}
@@ -0,0 +1,2 @@
1
+ export * from './ProductHeader';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Components/ProductHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";var r=require("./ProductHeader.js");exports.ProductHeader=r.ProductHeader;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -22,6 +22,7 @@ export * from './MonetaBankLogo';
22
22
  export * from './NotificationCard';
23
23
  export * from './Pills';
24
24
  export * from './ProductCard';
25
+ export * from './ProductHeader';
25
26
  export * from './SuperModal';
26
27
  export * from './Tag';
27
28
  export * from './Tile';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,S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