@laerdal/life-react-components 6.0.0-dev.26.full → 6.0.0-dev.27

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 (119) hide show
  1. package/README.md +1 -1
  2. package/dist/Button/DualFunctionButton.cjs +4 -4
  3. package/dist/Button/DualFunctionButton.cjs.map +1 -1
  4. package/dist/Button/DualFunctionButton.d.ts +2 -2
  5. package/dist/Button/DualFunctionButton.js +4 -4
  6. package/dist/Button/DualFunctionButton.js.map +1 -1
  7. package/dist/Button/{Button.cjs → TextButton.cjs} +179 -92
  8. package/dist/Button/TextButton.cjs.map +1 -0
  9. package/dist/Button/TextButton.d.ts +70 -0
  10. package/dist/Button/{Button.js → TextButton.js} +178 -91
  11. package/dist/Button/TextButton.js.map +1 -0
  12. package/dist/Button/__tests__/Button.test.tsx +8 -8
  13. package/dist/Button/__tests__/TextButton.test.tsx +45 -0
  14. package/dist/Button/index.cjs +11 -11
  15. package/dist/Button/index.cjs.map +1 -1
  16. package/dist/Button/index.d.ts +2 -2
  17. package/dist/Button/index.js +2 -2
  18. package/dist/Button/index.js.map +1 -1
  19. package/dist/Card/VerticalCard/{Card.cjs → VerticalCard.cjs} +20 -20
  20. package/dist/Card/VerticalCard/VerticalCard.cjs.map +1 -0
  21. package/dist/Card/VerticalCard/VerticalCard.d.ts +25 -0
  22. package/dist/Card/VerticalCard/{Card.js → VerticalCard.js} +19 -19
  23. package/dist/Card/VerticalCard/VerticalCard.js.map +1 -0
  24. package/dist/Card/VerticalCard/{CardBottomSection.cjs → VerticalCardBottomSection.cjs} +21 -21
  25. package/dist/Card/VerticalCard/VerticalCardBottomSection.cjs.map +1 -0
  26. package/dist/Card/VerticalCard/VerticalCardBottomSection.d.ts +53 -0
  27. package/dist/Card/VerticalCard/{CardBottomSection.js → VerticalCardBottomSection.js} +21 -21
  28. package/dist/Card/VerticalCard/VerticalCardBottomSection.js.map +1 -0
  29. package/dist/Card/VerticalCard/{CardMiddleSection.cjs → VerticalCardMiddleSection.cjs} +16 -16
  30. package/dist/Card/VerticalCard/VerticalCardMiddleSection.cjs.map +1 -0
  31. package/dist/Card/VerticalCard/VerticalCardMiddleSection.d.ts +42 -0
  32. package/dist/Card/VerticalCard/{CardMiddleSection.js → VerticalCardMiddleSection.js} +15 -15
  33. package/dist/Card/VerticalCard/VerticalCardMiddleSection.js.map +1 -0
  34. package/dist/Card/VerticalCard/{CardTopSection.cjs → VerticalCardTopSection.cjs} +15 -15
  35. package/dist/Card/VerticalCard/VerticalCardTopSection.cjs.map +1 -0
  36. package/dist/Card/VerticalCard/{CardTopSection.d.ts → VerticalCardTopSection.d.ts} +8 -8
  37. package/dist/Card/VerticalCard/{CardTopSection.js → VerticalCardTopSection.js} +14 -14
  38. package/dist/Card/VerticalCard/VerticalCardTopSection.js.map +1 -0
  39. package/dist/Card/{HorizontalCard → VerticalCard}/__tests__/VerticalCard.test.tsx +15 -15
  40. package/dist/Card/VerticalCard/index.cjs +25 -25
  41. package/dist/Card/VerticalCard/index.cjs.map +1 -1
  42. package/dist/Card/VerticalCard/index.d.ts +7 -7
  43. package/dist/Card/VerticalCard/index.js +7 -7
  44. package/dist/Card/VerticalCard/index.js.map +1 -1
  45. package/dist/Dropdown/DropdownContent.cjs +2 -2
  46. package/dist/Dropdown/DropdownContent.cjs.map +1 -1
  47. package/dist/Dropdown/DropdownContent.js +2 -2
  48. package/dist/Dropdown/DropdownContent.js.map +1 -1
  49. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +2 -2
  50. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
  51. package/dist/GlobalNavigationBar/desktop/RightSideNav.js +3 -3
  52. package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
  53. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +1 -1
  54. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
  55. package/dist/GlobalNavigationBar/desktop/UserMenu.js +2 -2
  56. package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
  57. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.cjs +1 -1
  58. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.cjs.map +1 -1
  59. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js +2 -2
  60. package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js.map +1 -1
  61. package/dist/GlobalNavigationBar/types.cjs.map +1 -1
  62. package/dist/GlobalNavigationBar/types.d.ts +2 -2
  63. package/dist/GlobalNavigationBar/types.js.map +1 -1
  64. package/dist/Modals/ModalContent.cjs +2 -2
  65. package/dist/Modals/ModalContent.cjs.map +1 -1
  66. package/dist/Modals/ModalContent.js +3 -3
  67. package/dist/Modals/ModalContent.js.map +1 -1
  68. package/dist/Modals/ModalDialog.cjs +2 -2
  69. package/dist/Modals/ModalDialog.cjs.map +1 -1
  70. package/dist/Modals/ModalDialog.js +3 -3
  71. package/dist/Modals/ModalDialog.js.map +1 -1
  72. package/dist/Modals/ModalTypes.cjs.map +1 -1
  73. package/dist/Modals/ModalTypes.d.ts +3 -3
  74. package/dist/Modals/ModalTypes.js.map +1 -1
  75. package/dist/Popover/Popover.cjs +1 -1
  76. package/dist/Popover/Popover.cjs.map +1 -1
  77. package/dist/Popover/Popover.js +2 -2
  78. package/dist/Popover/Popover.js.map +1 -1
  79. package/dist/SideMenu/SideMenuFooter.cjs +1 -1
  80. package/dist/SideMenu/SideMenuFooter.cjs.map +1 -1
  81. package/dist/SideMenu/SideMenuFooter.js +2 -2
  82. package/dist/SideMenu/SideMenuFooter.js.map +1 -1
  83. package/dist/SideMenu/types.cjs.map +1 -1
  84. package/dist/SideMenu/types.d.ts +2 -2
  85. package/dist/SideMenu/types.js.map +1 -1
  86. package/dist/Table/TableBody.cjs +1 -1
  87. package/dist/Table/TableBody.cjs.map +1 -1
  88. package/dist/Table/TableBody.js +2 -2
  89. package/dist/Table/TableBody.js.map +1 -1
  90. package/dist/Table/TableTypes.cjs.map +1 -1
  91. package/dist/Table/TableTypes.d.ts +2 -2
  92. package/dist/Table/TableTypes.js.map +1 -1
  93. package/dist/Tile/TileCommonItems.cjs +1 -1
  94. package/dist/Tile/TileCommonItems.cjs.map +1 -1
  95. package/dist/Tile/TileCommonItems.js +2 -2
  96. package/dist/Tile/TileCommonItems.js.map +1 -1
  97. package/dist/Tile/TileTypes.cjs.map +1 -1
  98. package/dist/Tile/TileTypes.d.ts +2 -2
  99. package/dist/Tile/TileTypes.js.map +1 -1
  100. package/dist/Toasters/Toast.cjs +1 -2
  101. package/dist/Toasters/Toast.cjs.map +1 -1
  102. package/dist/Toasters/Toast.js +2 -3
  103. package/dist/Toasters/Toast.js.map +1 -1
  104. package/package.json +148 -152
  105. package/dist/Button/Button.cjs.map +0 -1
  106. package/dist/Button/Button.d.ts +0 -70
  107. package/dist/Button/Button.js.map +0 -1
  108. package/dist/Card/VerticalCard/Card.cjs.map +0 -1
  109. package/dist/Card/VerticalCard/Card.d.ts +0 -25
  110. package/dist/Card/VerticalCard/Card.js.map +0 -1
  111. package/dist/Card/VerticalCard/CardBottomSection.cjs.map +0 -1
  112. package/dist/Card/VerticalCard/CardBottomSection.d.ts +0 -53
  113. package/dist/Card/VerticalCard/CardBottomSection.js.map +0 -1
  114. package/dist/Card/VerticalCard/CardMiddleSection.cjs.map +0 -1
  115. package/dist/Card/VerticalCard/CardMiddleSection.d.ts +0 -42
  116. package/dist/Card/VerticalCard/CardMiddleSection.js.map +0 -1
  117. package/dist/Card/VerticalCard/CardTopSection.cjs.map +0 -1
  118. package/dist/Card/VerticalCard/CardTopSection.js.map +0 -1
  119. package/dist/Card/__tests__/Card.test.tsx +0 -146
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardMiddleSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_index","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerticalCardMiddleSectionContainer","exports","styled","div","VerticalCardMiddleSectionColorBandStyles","props","$color","VerticalCardMiddleSectionTagsStyles","VerticalCardMiddleSectionCategoryStyles","COLORS","generateToken","componentType","defaultVariant","theme","VerticalCardMiddleSectionTitle","h3","ComponentXLStyling","ComponentTextStyle","Bold","$disabled","VerticalCardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","componentId","useTheme","jsxs","children","jsx","$extraTopMargin","Boolean","$bottomMargin","ComponentS","textStyle","color","id","className","map","x","index","Tag","label","variant","icon","propTypes","_propTypes","string","node","isRequired","arrayOf","shape","bool","_default"],"sources":["../../../src/Card/VerticalCard/VerticalCardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXLStyling, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface VerticalCardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: VerticalCardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: VerticalCardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n /** Top level Id of Card component */\r\n componentId?: string;\r\n}\r\n\r\nexport interface VerticalCardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const VerticalCardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTitle = styled.h3<{ $disabled?: boolean }>`\r\n ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled \r\n ? COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)\r\n : COLORS.generateToken({componentType:'text',defaultVariant:'default'}, props.theme)\r\n )}\r\n`;\r\n\r\nconst VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n componentId\r\n}: VerticalCardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n \r\n return (\r\n <VerticalCardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <VerticalCardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <VerticalCardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </VerticalCardMiddleSectionCategoryStyles>\r\n }\r\n <VerticalCardMiddleSectionTitle \r\n id={`${componentId}-title`} \r\n className=\"titleBlock\"\r\n $disabled={disabled}>\r\n {title}\r\n </VerticalCardMiddleSectionTitle>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n </VerticalCardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default VerticalCardMiddleSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAwH,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAA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CAAAE,UAAA;IAELL,IAAI,EAAAE,UAAA,CAAAjE,OAAA,CAAAmE;EAAA;EARJxB,QAAQ,EAAAsB,UAAA,CAAAjE,OAAA,CAAAuE,IAAA;EAER3B,WAAW,EAAAqB,UAAA,CAAAjE,OAAA,CAAAkE;AAAA;AAAA,IAAAM,QAAA,GAAAzD,OAAA,CAAAf,OAAA,GAuHEkC,yBAAyB","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { TagVariants } from '../../index';
3
+ import { ReactNode } from 'react';
4
+ export interface VerticalCardMiddleSectionProps {
5
+ /** Color of the band to be shown on the top of middle section. */
6
+ colorBandColor?: string;
7
+ /** Icon to be shown on the left side of the categoryLabel. */
8
+ categoryIcon?: React.ReactNode;
9
+ /** Label to be shown at the top part of the middle section. */
10
+ categoryLabel?: string;
11
+ /** Main title of the Card component. */
12
+ title: string;
13
+ /** Description of the Card. */
14
+ description?: string;
15
+ /** Tags to be shown under the description. */
16
+ tags?: VerticalCardTag[];
17
+ /** Second row of tags if needed. */
18
+ row2Tags?: VerticalCardTag[];
19
+ /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */
20
+ disabled?: boolean;
21
+ /** Top level Id of Card component */
22
+ componentId?: string;
23
+ }
24
+ export interface VerticalCardTag {
25
+ label: string;
26
+ variant?: TagVariants;
27
+ icon?: ReactNode;
28
+ }
29
+ export declare const VerticalCardMiddleSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
+ export declare const VerticalCardMiddleSectionColorBandStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
31
+ $color: string;
32
+ }>> & string;
33
+ export declare const VerticalCardMiddleSectionTagsStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
+ export declare const VerticalCardMiddleSectionCategoryStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ $extraTopMargin: boolean;
36
+ $bottomMargin: boolean;
37
+ }>> & string;
38
+ export declare const VerticalCardMiddleSectionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
39
+ $disabled?: boolean;
40
+ }>> & string;
41
+ declare const VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps>;
42
+ export default VerticalCardMiddleSection;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import styled, { useTheme } from 'styled-components';
4
4
  import { COLORS, ComponentS, ComponentTextStyle, ComponentXLStyling, Tag } from '../../index';
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const CardMiddleSectionContainer = styled.div`
6
+ export const VerticalCardMiddleSectionContainer = styled.div`
7
7
  display: flex;
8
8
  flex-grow: 1;
9
9
  width: calc(100% - 32px);
@@ -20,7 +20,7 @@ export const CardMiddleSectionContainer = styled.div`
20
20
  padding: 2px 0;
21
21
  }
22
22
  `;
23
- export const CardMiddleSectionColorBandStyles = styled.div`
23
+ export const VerticalCardMiddleSectionColorBandStyles = styled.div`
24
24
  position: absolute;
25
25
  width: 100%;
26
26
  top: 0px;
@@ -28,14 +28,14 @@ export const CardMiddleSectionColorBandStyles = styled.div`
28
28
  height: 8px;
29
29
  background-color: ${props => props.$color};
30
30
  `;
31
- export const CardMiddleSectionTagsStyles = styled.div`
31
+ export const VerticalCardMiddleSectionTagsStyles = styled.div`
32
32
  display: flex;
33
33
  flex-direction: row;
34
34
  padding: 4px 0;
35
35
  gap: 4px;
36
36
  flex-wrap: wrap;
37
37
  `;
38
- export const CardMiddleSectionCategoryStyles = styled.div`
38
+ export const VerticalCardMiddleSectionCategoryStyles = styled.div`
39
39
  display: flex;
40
40
  flex-direction: row;
41
41
  align-items: center;
@@ -51,7 +51,7 @@ export const CardMiddleSectionCategoryStyles = styled.div`
51
51
  flex-shrink: 0;
52
52
  }
53
53
  `;
54
- export const CardMiddleSectionTitle = styled.h3`
54
+ export const VerticalCardMiddleSectionTitle = styled.h3`
55
55
  ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled ? COLORS.generateToken({
56
56
  componentType: 'text',
57
57
  defaultVariant: 'subtle'
@@ -60,7 +60,7 @@ export const CardMiddleSectionTitle = styled.h3`
60
60
  defaultVariant: 'default'
61
61
  }, props.theme))}
62
62
  `;
63
- const CardMiddleSection = _ref => {
63
+ const VerticalCardMiddleSection = _ref => {
64
64
  let {
65
65
  colorBandColor,
66
66
  categoryIcon,
@@ -73,11 +73,11 @@ const CardMiddleSection = _ref => {
73
73
  componentId
74
74
  } = _ref;
75
75
  const theme = useTheme();
76
- return /*#__PURE__*/_jsxs(CardMiddleSectionContainer, {
76
+ return /*#__PURE__*/_jsxs(VerticalCardMiddleSectionContainer, {
77
77
  "data-testid": 'card-middleSection',
78
- children: [colorBandColor && /*#__PURE__*/_jsx(CardMiddleSectionColorBandStyles, {
78
+ children: [colorBandColor && /*#__PURE__*/_jsx(VerticalCardMiddleSectionColorBandStyles, {
79
79
  $color: colorBandColor
80
- }), (categoryIcon || categoryLabel) && /*#__PURE__*/_jsxs(CardMiddleSectionCategoryStyles, {
80
+ }), (categoryIcon || categoryLabel) && /*#__PURE__*/_jsxs(VerticalCardMiddleSectionCategoryStyles, {
81
81
  $extraTopMargin: Boolean(colorBandColor),
82
82
  $bottomMargin: Boolean(categoryIcon || categoryLabel),
83
83
  children: [categoryIcon, /*#__PURE__*/_jsx(ComponentS, {
@@ -88,7 +88,7 @@ const CardMiddleSection = _ref => {
88
88
  }, theme),
89
89
  children: categoryLabel
90
90
  })]
91
- }), /*#__PURE__*/_jsx(CardMiddleSectionTitle, {
91
+ }), /*#__PURE__*/_jsx(VerticalCardMiddleSectionTitle, {
92
92
  id: `${componentId}-title`,
93
93
  className: "titleBlock",
94
94
  $disabled: disabled,
@@ -100,13 +100,13 @@ const CardMiddleSection = _ref => {
100
100
  defaultVariant: 'subtle'
101
101
  }, theme),
102
102
  children: description
103
- }), tags && /*#__PURE__*/_jsx(CardMiddleSectionTagsStyles, {
103
+ }), tags && /*#__PURE__*/_jsx(VerticalCardMiddleSectionTagsStyles, {
104
104
  children: tags.map((x, index) => /*#__PURE__*/_jsx(Tag, {
105
105
  label: x.label,
106
106
  variant: x.variant ?? 'neutral',
107
107
  icon: x.icon
108
108
  }, `${x.label}_${index}`))
109
- }), row2Tags && /*#__PURE__*/_jsx(CardMiddleSectionTagsStyles, {
109
+ }), row2Tags && /*#__PURE__*/_jsx(VerticalCardMiddleSectionTagsStyles, {
110
110
  children: row2Tags.map((x, index) => /*#__PURE__*/_jsx(Tag, {
111
111
  label: x.label,
112
112
  variant: x.variant ?? 'neutral',
@@ -115,7 +115,7 @@ const CardMiddleSection = _ref => {
115
115
  })]
116
116
  });
117
117
  };
118
- CardMiddleSection.propTypes = {
118
+ VerticalCardMiddleSection.propTypes = {
119
119
  colorBandColor: _pt.string,
120
120
  categoryIcon: _pt.node,
121
121
  categoryLabel: _pt.string,
@@ -132,5 +132,5 @@ CardMiddleSection.propTypes = {
132
132
  disabled: _pt.bool,
133
133
  componentId: _pt.string
134
134
  };
135
- export default CardMiddleSection;
136
- //# sourceMappingURL=CardMiddleSection.js.map
135
+ export default VerticalCardMiddleSection;
136
+ //# sourceMappingURL=VerticalCardMiddleSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardMiddleSection.js","names":["React","styled","useTheme","COLORS","ComponentS","ComponentTextStyle","ComponentXLStyling","Tag","jsx","_jsx","jsxs","_jsxs","VerticalCardMiddleSectionContainer","div","VerticalCardMiddleSectionColorBandStyles","props","$color","VerticalCardMiddleSectionTagsStyles","VerticalCardMiddleSectionCategoryStyles","generateToken","componentType","defaultVariant","theme","VerticalCardMiddleSectionTitle","h3","Bold","$disabled","VerticalCardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","componentId","children","$extraTopMargin","Boolean","$bottomMargin","textStyle","color","id","className","map","x","index","label","variant","icon","propTypes","_pt","string","node","isRequired","arrayOf","shape","bool"],"sources":["../../../src/Card/VerticalCard/VerticalCardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXLStyling, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface VerticalCardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: VerticalCardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: VerticalCardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n /** Top level Id of Card component */\r\n componentId?: string;\r\n}\r\n\r\nexport interface VerticalCardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const VerticalCardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardMiddleSectionTitle = styled.h3<{ $disabled?: boolean }>`\r\n ${props => ComponentXLStyling(ComponentTextStyle.Bold, props.$disabled \r\n ? COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)\r\n : COLORS.generateToken({componentType:'text',defaultVariant:'default'}, props.theme)\r\n )}\r\n`;\r\n\r\nconst VerticalCardMiddleSection: React.FunctionComponent<VerticalCardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n componentId\r\n}: VerticalCardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n \r\n return (\r\n <VerticalCardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <VerticalCardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <VerticalCardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </VerticalCardMiddleSectionCategoryStyles>\r\n }\r\n <VerticalCardMiddleSectionTitle \r\n id={`${componentId}-title`} \r\n className=\"titleBlock\"\r\n $disabled={disabled}>\r\n {title}\r\n </VerticalCardMiddleSectionTitle>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <VerticalCardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </VerticalCardMiddleSectionTagsStyles>\r\n )}\r\n </VerticalCardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default VerticalCardMiddleSection;\r\n"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAASC,MAAM,EAAEC,UAAU,EAAEC,kBAAkB,EAAeC,kBAAkB,EAAEC,GAAG,QAAqB,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8BxH,OAAO,MAAMC,kCAAkC,GAAGX,MAAM,CAACY,GAAG;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,wCAAwC,GAAGb,MAAM,CAACY,GAAuB;AACtF;AACA;AACA;AACA;AACA;AACA,sBAAuBE,KAAK,IAAKA,KAAK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AAG;QAA6B0C,KAAK,EAAEF,CAAC,CAACE,KAAM;QAACC,OAAO,EAAEH,CAAC,CAACG,OAAO,IAAI,SAAU;QAACC,IAAI,EAAEJ,CAAC,CAACI;MAAK,GAArF,GAAGJ,CAAC,CAACE,KAAK,IAAID,KAAK,EAAoE,CAClG;IAAC,CACiC,CACtC;EAAA,CACiC,CAAC;AAEzC,CAAC;AAACrB,yBAAA,CAAAyB,SAAA;EArIAvB,cAAc,EAAAwB,GAAA,CAAAC,MAAA;EAEdxB,YAAY,EAAAuB,GAAA,CAAAE,IAAA;EAEZxB,aAAa,EAAAsB,GAAA,CAAAC,MAAA;EAEbtB,KAAK,EAAAqB,GAAA,CAAAC,MAAA,CAAAE,UAAA;EAELvB,WAAW,EAAAoB,GAAA,CAAAC,MAAA;EAEXpB,IAAI,EAAAmB,GAAA,CAAAI,OAAA,CAAAJ,GAAA,CAAAK,KAAA;IAUJT,KAAK,EAAAI,GAAA,CAAAC,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,GAAA,CAAAE;EAAA;EAVJpB,QAAQ,EAAAkB,GAAA,CAAAI,OAAA,CAAAJ,GAAA,CAAAK,KAAA;IAQRT,KAAK,EAAAI,GAAA,CAAAC,MAAA,CAAAE,UAAA;IAELL,IAAI,EAAAE,GAAA,CAAAE;EAAA;EARJnB,QAAQ,EAAAiB,GAAA,CAAAM,IAAA;EAERtB,WAAW,EAAAgB,GAAA,CAAAC;AAAA;AAuHb,eAAe3B,yBAAyB","ignoreList":[]}
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.CardTopSectionTagContainer = exports.CardTopSectionRibbonContainer = exports.CardTopSectionImageContainer = exports.CardTopSectionContainer = exports.CardTopSectionCheckboxContainer = void 0;
7
+ exports.default = exports.VerticalCardTopSectionTagContainer = exports.VerticalCardTopSectionRibbonContainer = exports.VerticalCardTopSectionImageContainer = exports.VerticalCardTopSectionContainer = exports.VerticalCardTopSectionCheckboxContainer = void 0;
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
@@ -16,7 +16,7 @@ var _Image = require("../../Image");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- const CardTopSectionImageContainer = exports.CardTopSectionImageContainer = _styledComponents.default.div`
19
+ const VerticalCardTopSectionImageContainer = exports.VerticalCardTopSectionImageContainer = _styledComponents.default.div`
20
20
  border-top-right-radius: 8px;
21
21
  border-top-left-radius: 8px;
22
22
  height: 100%;
@@ -29,14 +29,14 @@ const CardTopSectionImageContainer = exports.CardTopSectionImageContainer = _sty
29
29
  border-top-left-radius: 8px;
30
30
  }
31
31
  `;
32
- const CardTopSectionTagContainer = exports.CardTopSectionTagContainer = _styledComponents.default.div`
32
+ const VerticalCardTopSectionTagContainer = exports.VerticalCardTopSectionTagContainer = _styledComponents.default.div`
33
33
  position: absolute;
34
34
 
35
35
  top: 16px;
36
36
  left: 16px;
37
37
  width: calc(100% - 32px);
38
38
  `;
39
- const CardTopSectionContainer = exports.CardTopSectionContainer = _styledComponents.default.div`
39
+ const VerticalCardTopSectionContainer = exports.VerticalCardTopSectionContainer = _styledComponents.default.div`
40
40
  position: relative;
41
41
  width: 100%;
42
42
  overflow: visible;
@@ -46,7 +46,7 @@ const CardTopSectionContainer = exports.CardTopSectionContainer = _styledCompone
46
46
  filter: grayscale(100%);
47
47
  }` : ''}
48
48
  `;
49
- const CardTopSectionRibbonContainer = exports.CardTopSectionRibbonContainer = _styledComponents.default.div`
49
+ const VerticalCardTopSectionRibbonContainer = exports.VerticalCardTopSectionRibbonContainer = _styledComponents.default.div`
50
50
  min-height: calc(40px - 16px);
51
51
  background-color: ${props => props.$backgroundColor};
52
52
  width: calc(100% - 32px);
@@ -67,7 +67,7 @@ const CardTopSectionRibbonContainer = exports.CardTopSectionRibbonContainer = _s
67
67
  flex-shrink: 0;
68
68
  }
69
69
  `;
70
- const CardTopSectionCheckboxContainer = exports.CardTopSectionCheckboxContainer = _styledComponents.default.div`
70
+ const VerticalCardTopSectionCheckboxContainer = exports.VerticalCardTopSectionCheckboxContainer = _styledComponents.default.div`
71
71
  position: absolute;
72
72
  top: 0;
73
73
  right: 0;
@@ -77,7 +77,7 @@ const CardTopSectionCheckboxContainer = exports.CardTopSectionCheckboxContainer
77
77
  background-color: ${props => _index.COLORS.getColor('white', props.theme)};
78
78
  }
79
79
  `;
80
- const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
80
+ const VerticalCardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
81
81
  let {
82
82
  selected,
83
83
  setSelected,
@@ -92,13 +92,13 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
92
92
  disabled
93
93
  } = _ref;
94
94
  const theme = (0, _styledComponents.useTheme)();
95
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardTopSectionContainer, {
95
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardTopSectionContainer, {
96
96
  disabled: disabled,
97
97
  "data-testid": 'card-topSection',
98
98
  style: {
99
99
  height: image?.height ?? 200
100
100
  },
101
- children: [image && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionImageContainer, {
101
+ children: [image && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionImageContainer, {
102
102
  role: "none",
103
103
  "aria-hidden": "true",
104
104
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.ImageWithFallbacks, {
@@ -109,7 +109,7 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
109
109
  width: image.width,
110
110
  height: image.height
111
111
  })
112
- }), (!!selected || !!setSelected) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionCheckboxContainer, {
112
+ }), (!!selected || !!setSelected) && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionCheckboxContainer, {
113
113
  "data-testid": 'card-topSection-checkbox',
114
114
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
115
115
  ref: ref,
@@ -117,13 +117,13 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
117
117
  select: selected => setSelected && setSelected(selected),
118
118
  selected: selected || false
119
119
  })
120
- }), (tagLabel || tagIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CardTopSectionTagContainer, {
120
+ }), (tagLabel || tagIcon) && /*#__PURE__*/(0, _jsxRuntime.jsx)(VerticalCardTopSectionTagContainer, {
121
121
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tag.Tag, {
122
122
  label: tagLabel,
123
123
  variant: tagVariant,
124
124
  icon: tagIcon
125
125
  })
126
- }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardTopSectionRibbonContainer, {
126
+ }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(VerticalCardTopSectionRibbonContainer, {
127
127
  "data-testid": 'card-topSection-ribbon',
128
128
  $color: highlightRibbonContentColor ?? '',
129
129
  $backgroundColor: disabled ? _index.COLORS.generateToken({
@@ -142,7 +142,7 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
142
142
  })]
143
143
  });
144
144
  });
145
- CardTopSection.propTypes = {
145
+ VerticalCardTopSection.propTypes = {
146
146
  selected: _propTypes.default.bool,
147
147
  setSelected: _propTypes.default.func,
148
148
  tagLabel: _propTypes.default.string,
@@ -161,5 +161,5 @@ CardTopSection.propTypes = {
161
161
  }),
162
162
  disabled: _propTypes.default.bool
163
163
  };
164
- var _default = exports.default = CardTopSection;
165
- //# sourceMappingURL=CardTopSection.cjs.map
164
+ var _default = exports.default = VerticalCardTopSection;
165
+ //# sourceMappingURL=VerticalCardTopSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardTopSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_typography","_Checkbox","_interopRequireDefault","_Tag","_index","_Image","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerticalCardTopSectionImageContainer","exports","styled","div","VerticalCardTopSectionTagContainer","VerticalCardTopSectionContainer","props","disabled","VerticalCardTopSectionRibbonContainer","$backgroundColor","$color","VerticalCardTopSectionCheckboxContainer","COLORS","getColor","theme","VerticalCardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","useTheme","jsxs","style","height","children","jsx","role","ImageWithFallbacks","fallbacks","fallbackSrc","src","alt","loader","width","select","Tag","label","variant","icon","generateToken","componentType","state","ComponentS","color","isOnFill","textStyle","ComponentTextStyle","Regular","propTypes","_propTypes","bool","func","string","node","shape","isRequired","_default"],"sources":["../../../src/Card/VerticalCard/VerticalCardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface VerticalCardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const VerticalCardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const VerticalCardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const VerticalCardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst VerticalCardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: VerticalCardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <VerticalCardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <VerticalCardTopSectionImageContainer role=\"none\" aria-hidden=\"true\">\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt=\"\" loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </VerticalCardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <VerticalCardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </VerticalCardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <VerticalCardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </VerticalCardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <VerticalCardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.generateToken({componentType:'bg-fill', state:'disabled'}, theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={disabled ? COLORS.generateToken({componentType:'text', isOnFill: true, state:'disabled'}, theme) : highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </VerticalCardTopSectionRibbonContainer>\r\n )}\r\n </VerticalCardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default VerticalCardTopSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CA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AxE,OAAA,CAAA2E,MAAA;IAAWnB,KAAK,EAAAgB,UAAA,CAAAxE,OAAA,CAAA2E,MAAA;IAAWpB,MAAM,EAAAiB,UAAA,CAAAxE,OAAA,CAAAyE;EAAA;EAEjGpD,QAAQ,EAAAmD,UAAA,CAAAxE,OAAA,CAAAyE;AAAA;AAAA,IAAAM,QAAA,GAAAhE,OAAA,CAAAf,OAAA,GAwHK6B,sBAAsB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { TagVariants } from '../../Tag';
3
- export interface CardTopSectionProps {
3
+ export interface VerticalCardTopSectionProps {
4
4
  /** Sets initial state of select Checkbox. */
5
5
  selected?: boolean;
6
6
  /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */
@@ -31,15 +31,15 @@ export interface CardTopSectionProps {
31
31
  /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */
32
32
  disabled?: boolean;
33
33
  }
34
- export declare const CardTopSectionImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
- export declare const CardTopSectionTagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
36
- export declare const CardTopSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
34
+ export declare const VerticalCardTopSectionImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
+ export declare const VerticalCardTopSectionTagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
36
+ export declare const VerticalCardTopSectionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
37
37
  disabled?: boolean;
38
38
  }>> & string;
39
- export declare const CardTopSectionRibbonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
39
+ export declare const VerticalCardTopSectionRibbonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
40
40
  $color: string;
41
41
  $backgroundColor: string;
42
42
  }>> & string;
43
- export declare const CardTopSectionCheckboxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
- declare const CardTopSection: React.ForwardRefExoticComponent<CardTopSectionProps & React.RefAttributes<HTMLDivElement>>;
45
- export default CardTopSection;
43
+ export declare const VerticalCardTopSectionCheckboxContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
+ declare const VerticalCardTopSection: React.ForwardRefExoticComponent<VerticalCardTopSectionProps & React.RefAttributes<HTMLDivElement>>;
45
+ export default VerticalCardTopSection;
@@ -7,7 +7,7 @@ import { Tag } from '../../Tag';
7
7
  import { COLORS } from '../../index';
8
8
  import { ImageWithFallbacks } from "../../Image";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- export const CardTopSectionImageContainer = styled.div`
10
+ export const VerticalCardTopSectionImageContainer = styled.div`
11
11
  border-top-right-radius: 8px;
12
12
  border-top-left-radius: 8px;
13
13
  height: 100%;
@@ -20,14 +20,14 @@ export const CardTopSectionImageContainer = styled.div`
20
20
  border-top-left-radius: 8px;
21
21
  }
22
22
  `;
23
- export const CardTopSectionTagContainer = styled.div`
23
+ export const VerticalCardTopSectionTagContainer = styled.div`
24
24
  position: absolute;
25
25
 
26
26
  top: 16px;
27
27
  left: 16px;
28
28
  width: calc(100% - 32px);
29
29
  `;
30
- export const CardTopSectionContainer = styled.div`
30
+ export const VerticalCardTopSectionContainer = styled.div`
31
31
  position: relative;
32
32
  width: 100%;
33
33
  overflow: visible;
@@ -37,7 +37,7 @@ export const CardTopSectionContainer = styled.div`
37
37
  filter: grayscale(100%);
38
38
  }` : ''}
39
39
  `;
40
- export const CardTopSectionRibbonContainer = styled.div`
40
+ export const VerticalCardTopSectionRibbonContainer = styled.div`
41
41
  min-height: calc(40px - 16px);
42
42
  background-color: ${props => props.$backgroundColor};
43
43
  width: calc(100% - 32px);
@@ -58,7 +58,7 @@ export const CardTopSectionRibbonContainer = styled.div`
58
58
  flex-shrink: 0;
59
59
  }
60
60
  `;
61
- export const CardTopSectionCheckboxContainer = styled.div`
61
+ export const VerticalCardTopSectionCheckboxContainer = styled.div`
62
62
  position: absolute;
63
63
  top: 0;
64
64
  right: 0;
@@ -68,7 +68,7 @@ export const CardTopSectionCheckboxContainer = styled.div`
68
68
  background-color: ${props => COLORS.getColor('white', props.theme)};
69
69
  }
70
70
  `;
71
- const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
71
+ const VerticalCardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
72
72
  let {
73
73
  selected,
74
74
  setSelected,
@@ -83,13 +83,13 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
83
83
  disabled
84
84
  } = _ref;
85
85
  const theme = useTheme();
86
- return /*#__PURE__*/_jsxs(CardTopSectionContainer, {
86
+ return /*#__PURE__*/_jsxs(VerticalCardTopSectionContainer, {
87
87
  disabled: disabled,
88
88
  "data-testid": 'card-topSection',
89
89
  style: {
90
90
  height: image?.height ?? 200
91
91
  },
92
- children: [image && /*#__PURE__*/_jsx(CardTopSectionImageContainer, {
92
+ children: [image && /*#__PURE__*/_jsx(VerticalCardTopSectionImageContainer, {
93
93
  role: "none",
94
94
  "aria-hidden": "true",
95
95
  children: /*#__PURE__*/_jsx(ImageWithFallbacks, {
@@ -100,7 +100,7 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
100
100
  width: image.width,
101
101
  height: image.height
102
102
  })
103
- }), (!!selected || !!setSelected) && /*#__PURE__*/_jsx(CardTopSectionCheckboxContainer, {
103
+ }), (!!selected || !!setSelected) && /*#__PURE__*/_jsx(VerticalCardTopSectionCheckboxContainer, {
104
104
  "data-testid": 'card-topSection-checkbox',
105
105
  children: /*#__PURE__*/_jsx(Checkbox, {
106
106
  ref: ref,
@@ -108,13 +108,13 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
108
108
  select: selected => setSelected && setSelected(selected),
109
109
  selected: selected || false
110
110
  })
111
- }), (tagLabel || tagIcon) && /*#__PURE__*/_jsx(CardTopSectionTagContainer, {
111
+ }), (tagLabel || tagIcon) && /*#__PURE__*/_jsx(VerticalCardTopSectionTagContainer, {
112
112
  children: /*#__PURE__*/_jsx(Tag, {
113
113
  label: tagLabel,
114
114
  variant: tagVariant,
115
115
  icon: tagIcon
116
116
  })
117
- }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/_jsxs(CardTopSectionRibbonContainer, {
117
+ }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/_jsxs(VerticalCardTopSectionRibbonContainer, {
118
118
  "data-testid": 'card-topSection-ribbon',
119
119
  $color: highlightRibbonContentColor ?? '',
120
120
  $backgroundColor: disabled ? COLORS.generateToken({
@@ -133,7 +133,7 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
133
133
  })]
134
134
  });
135
135
  });
136
- CardTopSection.propTypes = {
136
+ VerticalCardTopSection.propTypes = {
137
137
  selected: _pt.bool,
138
138
  setSelected: _pt.func,
139
139
  tagLabel: _pt.string,
@@ -152,5 +152,5 @@ CardTopSection.propTypes = {
152
152
  }),
153
153
  disabled: _pt.bool
154
154
  };
155
- export default CardTopSection;
156
- //# sourceMappingURL=CardTopSection.js.map
155
+ export default VerticalCardTopSection;
156
+ //# sourceMappingURL=VerticalCardTopSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalCardTopSection.js","names":["React","styled","useTheme","ComponentS","ComponentTextStyle","Checkbox","Tag","COLORS","ImageWithFallbacks","jsx","_jsx","jsxs","_jsxs","VerticalCardTopSectionImageContainer","div","VerticalCardTopSectionTagContainer","VerticalCardTopSectionContainer","props","disabled","VerticalCardTopSectionRibbonContainer","$backgroundColor","$color","VerticalCardTopSectionCheckboxContainer","getColor","theme","VerticalCardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","style","height","children","role","fallbacks","fallbackSrc","src","alt","loader","width","select","label","variant","icon","generateToken","componentType","state","color","isOnFill","textStyle","Regular","propTypes","_pt","bool","func","string","node","shape","isRequired"],"sources":["../../../src/Card/VerticalCard/VerticalCardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface VerticalCardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const VerticalCardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const VerticalCardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const VerticalCardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const VerticalCardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst VerticalCardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: VerticalCardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <VerticalCardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <VerticalCardTopSectionImageContainer role=\"none\" aria-hidden=\"true\">\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt=\"\" loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </VerticalCardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <VerticalCardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </VerticalCardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <VerticalCardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </VerticalCardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <VerticalCardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.generateToken({componentType:'bg-fill', state:'disabled'}, theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={disabled ? COLORS.generateToken({componentType:'text', isOnFill: true, state:'disabled'}, theme) : highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </VerticalCardTopSectionRibbonContainer>\r\n )}\r\n </VerticalCardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default VerticalCardTopSection;\r\n"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAAQC,UAAU,EAAEC,kBAAkB,QAAO,yBAAyB;AACtE,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,SAAQC,GAAG,QAAoB,WAAW;AAE1C,SAAQC,MAAM,QAAO,aAAa;AAClC,SAAQC,kBAAkB,QAAO,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA2B/C,OAAO,MAAMC,oCAAoC,GAAGZ,MAAM,CAACa,GAAG;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,kCAAkC,GAAGd,MAAM,CAACa,GAAG;AAC5D;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAME,+BAA+B,GAAGf,MAAM,CAACa,GAA2B;AACjF;AACA;AACA;AACA;AACA,IAAIG,KAAK,IAAIA,KAAK,CAACC,QAAQ,GAAG;AAC9B;AACA;AACA,IAAI,GAAG,EAAE;AACT,CAAC;AAED,OAAO,MAAMC,qCAAqC,GAAGlB,MAAM,CAACa,GAAiD;AAC7G;AACA,sBAAsBG,KAAK,IAAIA,KAAK,CAACG,gBAAgB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAaH,KAAK,IAAIA,KAAK,CAACI,MAAM;AAClC;AACA;AACA;AACA;AACA;AACA,CAA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