@laerdal/life-react-components 1.5.1-dev.12 → 1.5.1-dev.15

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 (51) hide show
  1. package/dist/Card/Card.cjs +101 -0
  2. package/dist/Card/Card.cjs.map +1 -0
  3. package/dist/Card/Card.d.ts +23 -0
  4. package/dist/Card/Card.js +74 -0
  5. package/dist/Card/Card.js.map +1 -0
  6. package/dist/Card/CardBottomSection.cjs +135 -0
  7. package/dist/Card/CardBottomSection.cjs.map +1 -0
  8. package/dist/Card/CardBottomSection.d.ts +22 -0
  9. package/dist/Card/CardBottomSection.js +105 -0
  10. package/dist/Card/CardBottomSection.js.map +1 -0
  11. package/dist/Card/CardMiddleSection.cjs +104 -0
  12. package/dist/Card/CardMiddleSection.cjs.map +1 -0
  13. package/dist/Card/CardMiddleSection.d.ts +14 -0
  14. package/dist/Card/CardMiddleSection.js +80 -0
  15. package/dist/Card/CardMiddleSection.js.map +1 -0
  16. package/dist/Card/CardTopSection.cjs +108 -0
  17. package/dist/Card/CardTopSection.cjs.map +1 -0
  18. package/dist/Card/CardTopSection.d.ts +17 -0
  19. package/dist/Card/CardTopSection.js +81 -0
  20. package/dist/Card/CardTopSection.js.map +1 -0
  21. package/dist/Card/index.cjs +52 -0
  22. package/dist/Card/index.cjs.map +1 -0
  23. package/dist/Card/index.d.ts +5 -0
  24. package/dist/Card/index.js +6 -0
  25. package/dist/Card/index.js.map +1 -0
  26. package/dist/LinearProgression/LinearProgression.cjs +132 -0
  27. package/dist/LinearProgression/LinearProgression.cjs.map +1 -0
  28. package/dist/LinearProgression/LinearProgression.d.ts +24 -0
  29. package/dist/LinearProgression/LinearProgression.js +102 -0
  30. package/dist/LinearProgression/LinearProgression.js.map +1 -0
  31. package/dist/LinearProgression/index.cjs +32 -0
  32. package/dist/LinearProgression/index.cjs.map +1 -0
  33. package/dist/LinearProgression/index.d.ts +3 -0
  34. package/dist/LinearProgression/index.js +4 -0
  35. package/dist/LinearProgression/index.js.map +1 -0
  36. package/dist/SegmentControl/SegmentControl.cjs +99 -0
  37. package/dist/SegmentControl/SegmentControl.cjs.map +1 -0
  38. package/dist/SegmentControl/SegmentControl.d.ts +19 -0
  39. package/dist/SegmentControl/SegmentControl.js +71 -0
  40. package/dist/SegmentControl/SegmentControl.js.map +1 -0
  41. package/dist/SegmentControl/index.cjs +16 -0
  42. package/dist/SegmentControl/index.cjs.map +1 -0
  43. package/dist/SegmentControl/index.d.ts +3 -0
  44. package/dist/SegmentControl/index.js +3 -0
  45. package/dist/SegmentControl/index.js.map +1 -0
  46. package/dist/index.cjs +39 -0
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.ts +3 -0
  49. package/dist/index.js +3 -0
  50. package/dist/index.js.map +1 -1
  51. package/package.json +1 -1
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
16
+ var React = _interopRequireWildcard(require("react"));
17
+
18
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
19
+
20
+ var _ = require("..");
21
+
22
+ var _jsxRuntime = require("react/jsx-runtime");
23
+
24
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-grow: 1;\n width: calc(100% - 16px);\n position: relative;\n flex-direction: column;\n padding-left: 16px;\n padding-bottom: 20px;\n\n .descriptionBlock {\n margin-bottom: 14px;\n }\n\n .titleBlock {\n margin-bottom: 12px;\n }\n\n ", "\n"])), function (props) {
31
+ return props.interactionType == _.InteractionType.Clickable ? "\n cursor: ".concat(props.disabled ? 'not-allowed' : 'pointer', ";\n ") : '';
32
+ });
33
+
34
+ var ColorBand = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: calc(100% + 2px);\n top: 0px;\n left: -1px;\n height: 8px;\n background-color: ", ";\n"])), function (props) {
35
+ return props.$color;
36
+ });
37
+
38
+ var TagsContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n"])));
39
+
40
+ var Tag = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 4px 8px 4px 8px;\n background-color: ", ";\n margin-right: 4px;\n border-radius: 2px;\n"])), _.COLORS.neutral_100);
41
+
42
+ var CategoryContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-top: ", ";\n margin-bottom: ", ";\n\n svg {\n margin-right: 6px;\n color: ", ";\n }\n"])), function (props) {
43
+ return props.extraTopMargin ? '30px' : '22px';
44
+ }, function (props) {
45
+ return props.bottomMargin ? '10px' : '0px';
46
+ }, _.COLORS.neutral_500);
47
+
48
+ var CardMiddleSection = function CardMiddleSection(_ref) {
49
+ var interactionType = _ref.interactionType,
50
+ colorBandColor = _ref.colorBandColor,
51
+ categoryIcon = _ref.categoryIcon,
52
+ categoryLabel = _ref.categoryLabel,
53
+ title = _ref.title,
54
+ description = _ref.description,
55
+ tags = _ref.tags,
56
+ disabled = _ref.disabled;
57
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
58
+ disabled: disabled,
59
+ interactionType: interactionType,
60
+ children: [colorBandColor && /*#__PURE__*/(0, _jsxRuntime.jsx)(ColorBand, {
61
+ $color: colorBandColor
62
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(CategoryContainer, {
63
+ extraTopMargin: Boolean(colorBandColor),
64
+ bottomMargin: Boolean(categoryIcon || categoryLabel),
65
+ children: [categoryIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ComponentS, {
66
+ textStyle: _.ComponentTextStyle.Bold,
67
+ color: _.COLORS.neutral_500,
68
+ children: categoryLabel
69
+ })]
70
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ComponentXL, {
71
+ className: "titleBlock",
72
+ textStyle: _.ComponentTextStyle.Bold,
73
+ color: disabled ? _.COLORS.neutral_500 : _.COLORS.black,
74
+ children: title
75
+ }), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ComponentS, {
76
+ className: "descriptionBlock",
77
+ color: _.COLORS.neutral_600,
78
+ children: description
79
+ }), tags && /*#__PURE__*/(0, _jsxRuntime.jsx)(TagsContainer, {
80
+ children: tags.map(function (x) {
81
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
82
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ComponentXS, {
83
+ textStyle: _.ComponentTextStyle.Bold,
84
+ color: _.COLORS.neutral_600,
85
+ children: x
86
+ })
87
+ });
88
+ })
89
+ })]
90
+ });
91
+ };
92
+
93
+ CardMiddleSection.propTypes = {
94
+ colorBandColor: _propTypes.default.string,
95
+ categoryIcon: _propTypes.default.node,
96
+ categoryLabel: _propTypes.default.string,
97
+ title: _propTypes.default.string.isRequired,
98
+ description: _propTypes.default.string,
99
+ tags: _propTypes.default.arrayOf(_propTypes.default.string),
100
+ disabled: _propTypes.default.bool.isRequired
101
+ };
102
+ var _default = CardMiddleSection;
103
+ exports.default = _default;
104
+ //# sourceMappingURL=CardMiddleSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/CardMiddleSection.tsx"],"names":["Container","styled","div","props","interactionType","InteractionType","Clickable","disabled","ColorBand","$color","TagsContainer","Tag","COLORS","neutral_100","CategoryContainer","extraTopMargin","bottomMargin","neutral_500","CardMiddleSection","colorBandColor","categoryIcon","categoryLabel","title","description","tags","Boolean","ComponentTextStyle","Bold","black","neutral_600","map","x"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;AAaA,IAAMA,SAAS,GAAGC,0BAAOC,GAAV,4WAiBX,UAAAC,KAAK;AAAA,SACLA,KAAK,CAACC,eAAN,IAAyBC,kBAAgBC,SAAzC,2BAEUH,KAAK,CAACI,QAAN,GAAiB,aAAjB,GAAiC,SAF3C,aAII,EALC;AAAA,CAjBM,CAAf;;AAyBA,IAAMC,SAAS,GAAGP,0BAAOC,GAAV,kNAMO,UAAAC,KAAK;AAAA,SAAIA,KAAK,CAACM,MAAV;AAAA,CANZ,CAAf;;AASA,IAAMC,aAAa,GAAGT,0BAAOC,GAAV,iIAAnB;;AAKA,IAAMS,GAAG,GAAGV,0BAAOC,GAAV,6LAEaU,SAAOC,WAFpB,CAA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BL,SAAOgB,KAAtH;AAAA,gBACGN;AADH,MARF,EAWGC,WAAW,iBACV,qBAAC,YAAD;AAAY,MAAA,SAAS,EAAC,kBAAtB;AAAyC,MAAA,KAAK,EAAEX,SAAOiB,WAAvD;AAAA,gBACGN;AADH,MAZJ,EAgBGC,IAAI,iBACH,qBAAC,aAAD;AAAA,gBACGA,IAAI,CAACM,GAAL,CAAS,UAAAC,CAAC;AAAA,4BACT,qBAAC,GAAD;AAAA,iCACE,qBAAC,aAAD;AAAa,YAAA,SAAS,EAAEL,qBAAmBC,IAA3C;AAAiD,YAAA,KAAK,EAAEf,SAAOiB,WAA/D;AAAA,sBACGE;AADH;AADF,UADS;AAAA,OAAV;AADH,MAjBJ;AAAA,IADF;AA8BD,CAxCD;;;AArEEZ,EAAAA,c;AAEAC,EAAAA,Y;AACAC,EAAAA,a;AACAC,EAAAA,K;AACAC,EAAAA,W;AACAC,EAAAA,I;AACAjB,EAAAA,Q;;eAwGaW,iB","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXS, InteractionType } from '..';\n\nexport interface CardMiddleSectionProps {\n colorBandColor?: string;\n interactionType: InteractionType;\n categoryIcon?: React.ReactNode;\n categoryLabel?: string;\n title: string;\n description?: string;\n tags?: string[];\n disabled: boolean;\n}\n\nconst Container = styled.div<{ interactionType: InteractionType; disabled: boolean }>`\n display: flex;\n flex-grow: 1;\n width: calc(100% - 16px);\n position: relative;\n flex-direction: column;\n padding-left: 16px;\n padding-bottom: 20px;\n\n .descriptionBlock {\n margin-bottom: 14px;\n }\n\n .titleBlock {\n margin-bottom: 12px;\n }\n\n ${props =>\n props.interactionType == InteractionType.Clickable\n ? `\n cursor: ${props.disabled ? 'not-allowed' : 'pointer'};\n `\n : ''}\n`;\n\nconst ColorBand = styled.div<{ $color: string }>`\n position: absolute;\n width: calc(100% + 2px);\n top: 0px;\n left: -1px;\n height: 8px;\n background-color: ${props => props.$color};\n`;\n\nconst TagsContainer = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst Tag = styled.div`\n padding: 4px 8px 4px 8px;\n background-color: ${COLORS.neutral_100};\n margin-right: 4px;\n border-radius: 2px;\n`;\n\nconst CategoryContainer = styled.div<{ extraTopMargin: boolean; bottomMargin: boolean }>`\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-top: ${props => (props.extraTopMargin ? '30px' : '22px')};\n margin-bottom: ${props => (props.bottomMargin ? '10px' : '0px')};\n\n svg {\n margin-right: 6px;\n color: ${COLORS.neutral_500};\n }\n`;\n\nconst CardMiddleSection: React.FunctionComponent<CardMiddleSectionProps> = ({\n interactionType,\n colorBandColor,\n categoryIcon,\n categoryLabel,\n title,\n description,\n tags,\n disabled\n}: CardMiddleSectionProps) => {\n return (\n <Container disabled={disabled} interactionType={interactionType}>\n {colorBandColor && <ColorBand $color={colorBandColor} />}\n <CategoryContainer extraTopMargin={Boolean(colorBandColor)} bottomMargin={Boolean(categoryIcon || categoryLabel)}>\n {categoryIcon}\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.neutral_500}>\n {categoryLabel}\n </ComponentS>\n </CategoryContainer>\n <ComponentXL className=\"titleBlock\" textStyle={ComponentTextStyle.Bold} color={disabled ? COLORS.neutral_500 : COLORS.black}>\n {title}\n </ComponentXL>\n {description && (\n <ComponentS className=\"descriptionBlock\" color={COLORS.neutral_600}>\n {description}\n </ComponentS>\n )}\n {tags && (\n <TagsContainer>\n {tags.map(x => (\n <Tag>\n <ComponentXS textStyle={ComponentTextStyle.Bold} color={COLORS.neutral_600}>\n {x}\n </ComponentXS>\n </Tag>\n ))}\n </TagsContainer>\n )}\n </Container>\n );\n};\n\nexport default CardMiddleSection;\n"],"file":"CardMiddleSection.cjs"}
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { InteractionType } from '..';
3
+ export interface CardMiddleSectionProps {
4
+ colorBandColor?: string;
5
+ interactionType: InteractionType;
6
+ categoryIcon?: React.ReactNode;
7
+ categoryLabel?: string;
8
+ title: string;
9
+ description?: string;
10
+ tags?: string[];
11
+ disabled: boolean;
12
+ }
13
+ declare const CardMiddleSection: React.FunctionComponent<CardMiddleSectionProps>;
14
+ export default CardMiddleSection;
@@ -0,0 +1,80 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ import _pt from "prop-types";
3
+
4
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
5
+
6
+ import * as React from 'react';
7
+ import styled from 'styled-components';
8
+ import { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXS, InteractionType } from '..';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-grow: 1;\n width: calc(100% - 16px);\n position: relative;\n flex-direction: column;\n padding-left: 16px;\n padding-bottom: 20px;\n\n .descriptionBlock {\n margin-bottom: 14px;\n }\n\n .titleBlock {\n margin-bottom: 12px;\n }\n\n ", "\n"])), function (props) {
12
+ return props.interactionType == InteractionType.Clickable ? "\n cursor: ".concat(props.disabled ? 'not-allowed' : 'pointer', ";\n ") : '';
13
+ });
14
+ var ColorBand = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n width: calc(100% + 2px);\n top: 0px;\n left: -1px;\n height: 8px;\n background-color: ", ";\n"])), function (props) {
15
+ return props.$color;
16
+ });
17
+ var TagsContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n"])));
18
+ var Tag = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 4px 8px 4px 8px;\n background-color: ", ";\n margin-right: 4px;\n border-radius: 2px;\n"])), COLORS.neutral_100);
19
+ var CategoryContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-top: ", ";\n margin-bottom: ", ";\n\n svg {\n margin-right: 6px;\n color: ", ";\n }\n"])), function (props) {
20
+ return props.extraTopMargin ? '30px' : '22px';
21
+ }, function (props) {
22
+ return props.bottomMargin ? '10px' : '0px';
23
+ }, COLORS.neutral_500);
24
+
25
+ var CardMiddleSection = function CardMiddleSection(_ref) {
26
+ var interactionType = _ref.interactionType,
27
+ colorBandColor = _ref.colorBandColor,
28
+ categoryIcon = _ref.categoryIcon,
29
+ categoryLabel = _ref.categoryLabel,
30
+ title = _ref.title,
31
+ description = _ref.description,
32
+ tags = _ref.tags,
33
+ disabled = _ref.disabled;
34
+ return /*#__PURE__*/_jsxs(Container, {
35
+ disabled: disabled,
36
+ interactionType: interactionType,
37
+ children: [colorBandColor && /*#__PURE__*/_jsx(ColorBand, {
38
+ $color: colorBandColor
39
+ }), /*#__PURE__*/_jsxs(CategoryContainer, {
40
+ extraTopMargin: Boolean(colorBandColor),
41
+ bottomMargin: Boolean(categoryIcon || categoryLabel),
42
+ children: [categoryIcon, /*#__PURE__*/_jsx(ComponentS, {
43
+ textStyle: ComponentTextStyle.Bold,
44
+ color: COLORS.neutral_500,
45
+ children: categoryLabel
46
+ })]
47
+ }), /*#__PURE__*/_jsx(ComponentXL, {
48
+ className: "titleBlock",
49
+ textStyle: ComponentTextStyle.Bold,
50
+ color: disabled ? COLORS.neutral_500 : COLORS.black,
51
+ children: title
52
+ }), description && /*#__PURE__*/_jsx(ComponentS, {
53
+ className: "descriptionBlock",
54
+ color: COLORS.neutral_600,
55
+ children: description
56
+ }), tags && /*#__PURE__*/_jsx(TagsContainer, {
57
+ children: tags.map(function (x) {
58
+ return /*#__PURE__*/_jsx(Tag, {
59
+ children: /*#__PURE__*/_jsx(ComponentXS, {
60
+ textStyle: ComponentTextStyle.Bold,
61
+ color: COLORS.neutral_600,
62
+ children: x
63
+ })
64
+ });
65
+ })
66
+ })]
67
+ });
68
+ };
69
+
70
+ CardMiddleSection.propTypes = {
71
+ colorBandColor: _pt.string,
72
+ categoryIcon: _pt.node,
73
+ categoryLabel: _pt.string,
74
+ title: _pt.string.isRequired,
75
+ description: _pt.string,
76
+ tags: _pt.arrayOf(_pt.string),
77
+ disabled: _pt.bool.isRequired
78
+ };
79
+ export default CardMiddleSection;
80
+ //# sourceMappingURL=CardMiddleSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/CardMiddleSection.tsx"],"names":["React","styled","COLORS","ComponentS","ComponentTextStyle","ComponentXL","ComponentXS","InteractionType","Container","div","props","interactionType","Clickable","disabled","ColorBand","$color","TagsContainer","Tag","neutral_100","CategoryContainer","extraTopMargin","bottomMargin","neutral_500","CardMiddleSection","colorBandColor","categoryIcon","categoryLabel","title","description","tags","Boolean","Bold","black","neutral_600","map","x"],"mappings":";;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,MAAT,EAAiBC,UAAjB,EAA6BC,kBAA7B,EAAiDC,WAAjD,EAA8DC,WAA9D,EAA2EC,eAA3E,QAAkG,IAAlG;;;AAaA,IAAMC,SAAS,GAAGP,MAAM,CAACQ,GAAV,8VAiBX,UAAAC,KAAK;AAAA,SACLA,KAAK,CAACC,eAAN,IAAyBJ,eAAe,CAACK,SAAzC,2BAEUF,KAAK,CAACG,QAAN,GAAiB,aAAjB,GAAiC,SAF3C,aAII,EALC;AAAA,CAjBM,CAAf;AAyBA,IAAMC,SAAS,GAAGb,MAAM,CAACQ,GAAV,oMAMO,UAAAC,KAAK;AAAA,SAAIA,KAAK,CAACK,MAAV;AAAA,CANZ,CAAf;AASA,IAAMC,aAAa,GAAGf,MAAM,CAACQ,GAAV,mHAAnB;AAKA,IAAMQ,GAAG,GAAGhB,MAAM,CAACQ,GAAV,+KAEaP,MAAM,CAACgB,WAFpB,CAAT;AAOA,IAAMC,iBAAiB,GAAGlB,MAAM,CAACQ,GAAV,mPAI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H;AAAA,gBACGL;AADH,MARF,EAWGC,WAAW,iBACV,KAAC,UAAD;AAAY,MAAA,SAAS,EAAC,kBAAtB;AAAyC,MAAA,KAAK,EAAE1B,MAAM,CAAC+B,WAAvD;AAAA,gBACGL;AADH,MAZJ,EAgBGC,IAAI,iBACH,KAAC,aAAD;AAAA,gBACGA,IAAI,CAACK,GAAL,CAAS,UAAAC,CAAC;AAAA,4BACT,KAAC,GAAD;AAAA,iCACE,KAAC,WAAD;AAAa,YAAA,SAAS,EAAE/B,kBAAkB,CAAC2B,IAA3C;AAAiD,YAAA,KAAK,EAAE7B,MAAM,CAAC+B,WAA/D;AAAA,sBACGE;AADH;AADF,UADS;AAAA,OAAV;AADH,MAjBJ;AAAA,IADF;AA8BD,CAxCD;;;AArEEX,EAAAA,c;AAEAC,EAAAA,Y;AACAC,EAAAA,a;AACAC,EAAAA,K;AACAC,EAAAA,W;AACAC,EAAAA,I;AACAhB,EAAAA,Q;;AAwGF,eAAeU,iBAAf","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, ComponentXS, InteractionType } from '..';\n\nexport interface CardMiddleSectionProps {\n colorBandColor?: string;\n interactionType: InteractionType;\n categoryIcon?: React.ReactNode;\n categoryLabel?: string;\n title: string;\n description?: string;\n tags?: string[];\n disabled: boolean;\n}\n\nconst Container = styled.div<{ interactionType: InteractionType; disabled: boolean }>`\n display: flex;\n flex-grow: 1;\n width: calc(100% - 16px);\n position: relative;\n flex-direction: column;\n padding-left: 16px;\n padding-bottom: 20px;\n\n .descriptionBlock {\n margin-bottom: 14px;\n }\n\n .titleBlock {\n margin-bottom: 12px;\n }\n\n ${props =>\n props.interactionType == InteractionType.Clickable\n ? `\n cursor: ${props.disabled ? 'not-allowed' : 'pointer'};\n `\n : ''}\n`;\n\nconst ColorBand = styled.div<{ $color: string }>`\n position: absolute;\n width: calc(100% + 2px);\n top: 0px;\n left: -1px;\n height: 8px;\n background-color: ${props => props.$color};\n`;\n\nconst TagsContainer = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst Tag = styled.div`\n padding: 4px 8px 4px 8px;\n background-color: ${COLORS.neutral_100};\n margin-right: 4px;\n border-radius: 2px;\n`;\n\nconst CategoryContainer = styled.div<{ extraTopMargin: boolean; bottomMargin: boolean }>`\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-top: ${props => (props.extraTopMargin ? '30px' : '22px')};\n margin-bottom: ${props => (props.bottomMargin ? '10px' : '0px')};\n\n svg {\n margin-right: 6px;\n color: ${COLORS.neutral_500};\n }\n`;\n\nconst CardMiddleSection: React.FunctionComponent<CardMiddleSectionProps> = ({\n interactionType,\n colorBandColor,\n categoryIcon,\n categoryLabel,\n title,\n description,\n tags,\n disabled\n}: CardMiddleSectionProps) => {\n return (\n <Container disabled={disabled} interactionType={interactionType}>\n {colorBandColor && <ColorBand $color={colorBandColor} />}\n <CategoryContainer extraTopMargin={Boolean(colorBandColor)} bottomMargin={Boolean(categoryIcon || categoryLabel)}>\n {categoryIcon}\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.neutral_500}>\n {categoryLabel}\n </ComponentS>\n </CategoryContainer>\n <ComponentXL className=\"titleBlock\" textStyle={ComponentTextStyle.Bold} color={disabled ? COLORS.neutral_500 : COLORS.black}>\n {title}\n </ComponentXL>\n {description && (\n <ComponentS className=\"descriptionBlock\" color={COLORS.neutral_600}>\n {description}\n </ComponentS>\n )}\n {tags && (\n <TagsContainer>\n {tags.map(x => (\n <Tag>\n <ComponentXS textStyle={ComponentTextStyle.Bold} color={COLORS.neutral_600}>\n {x}\n </ComponentXS>\n </Tag>\n ))}\n </TagsContainer>\n )}\n </Container>\n );\n};\n\nexport default CardMiddleSection;\n"],"file":"CardMiddleSection.js"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
16
+ var React = _interopRequireWildcard(require("react"));
17
+
18
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
19
+
20
+ var _typography = require("../styles/typography");
21
+
22
+ var _Checkbox = _interopRequireDefault(require("../InputFields/Checkbox"));
23
+
24
+ var _ = require("..");
25
+
26
+ var _jsxRuntime = require("react/jsx-runtime");
27
+
28
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
29
+
30
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
+
32
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
+
34
+ var Img = _styledComponents.default.img(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n object-fit: cover;\n width: 100%;\n height: 100%;\n"])));
35
+
36
+ var TagContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n color: white;\n border-radius: 2px;\n padding: 4px;\n display: flex;\n position: absolute;\n flex-direction: row;\n align-items: center;\n top: 16px;\n left: 16px;\n\n svg {\n color: white;\n margin-right: 4px;\n }\n"])), _.COLORS.correct_500);
37
+
38
+ var Container = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n width: calc(100% + 2px);\n margin-left: -1px;\n margin-top: -1px;\n height: 200px;\n overflow: hidden;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n\n ", "\n\n ", "\n"])), function (props) {
39
+ return props.disabled ? "\n img, svg {\n filter: grayscale(100%);\n }" : '';
40
+ }, function (props) {
41
+ return props.interactionType == _.InteractionType.Clickable ? "\n cursor: ".concat(props.disabled ? 'not-allowed' : 'pointer', ";\n ") : '';
42
+ });
43
+
44
+ var RibbonContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n height: calc(40px - 16px);\n background-color: ", ";\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n color: ", ";\n margin-right: 9px;\n }\n"])), function (props) {
45
+ return props.$backgroundColor;
46
+ }, function (props) {
47
+ return props.$color;
48
+ });
49
+
50
+ var CheckboxContainer = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 14px;\n right: 14px;\n"])));
51
+
52
+ var WhiteOverlay = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n background-color: rgba(256, 256, 256, 0.5);\n position: absolute;\n top: 0px;\n left: 0px;\n"])));
53
+
54
+ var CardTopSection = function CardTopSection(_ref) {
55
+ var interactionType = _ref.interactionType,
56
+ selected = _ref.selected,
57
+ setSelected = _ref.setSelected,
58
+ image = _ref.image,
59
+ tagLabel = _ref.tagLabel,
60
+ tagIcon = _ref.tagIcon,
61
+ highlightRibbonIcon = _ref.highlightRibbonIcon,
62
+ highlightRibbonText = _ref.highlightRibbonText,
63
+ highlightRibbonContentColor = _ref.highlightRibbonContentColor,
64
+ highlightRibbonBgColor = _ref.highlightRibbonBgColor,
65
+ disabled = _ref.disabled;
66
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
67
+ disabled: disabled,
68
+ interactionType: interactionType,
69
+ children: [disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(WhiteOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Img, {
70
+ src: image
71
+ }), (selected !== undefined || setSelected !== undefined) && interactionType == _.InteractionType.Selectable && /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxContainer, {
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Checkbox.default, {
73
+ select: function select(selected) {
74
+ return setSelected(selected);
75
+ },
76
+ selected: selected
77
+ })
78
+ }), (tagLabel || tagIcon) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(TagContainer, {
79
+ children: [tagIcon, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
80
+ children: tagLabel
81
+ })]
82
+ }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(RibbonContainer, {
83
+ $color: highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '',
84
+ $backgroundColor: disabled ? _.COLORS.neutral_300 : highlightRibbonBgColor !== null && highlightRibbonBgColor !== void 0 ? highlightRibbonBgColor : '',
85
+ children: [highlightRibbonIcon, highlightRibbonText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.ComponentS, {
86
+ color: highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '',
87
+ textStyle: _typography.ComponentTextStyle.Regular,
88
+ children: highlightRibbonText
89
+ })]
90
+ })]
91
+ });
92
+ };
93
+
94
+ CardTopSection.propTypes = {
95
+ selected: _propTypes.default.bool.isRequired,
96
+ setSelected: _propTypes.default.func.isRequired,
97
+ tagLabel: _propTypes.default.string,
98
+ tagIcon: _propTypes.default.node,
99
+ highlightRibbonText: _propTypes.default.string,
100
+ highlightRibbonIcon: _propTypes.default.string,
101
+ highlightRibbonContentColor: _propTypes.default.string,
102
+ highlightRibbonBgColor: _propTypes.default.string,
103
+ image: _propTypes.default.string,
104
+ disabled: _propTypes.default.bool.isRequired
105
+ };
106
+ var _default = CardTopSection;
107
+ exports.default = _default;
108
+ //# sourceMappingURL=CardTopSection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/CardTopSection.tsx"],"names":["Img","styled","img","TagContainer","div","COLORS","correct_500","Container","props","disabled","interactionType","InteractionType","Clickable","RibbonContainer","$backgroundColor","$color","CheckboxContainer","WhiteOverlay","CardTopSection","selected","setSelected","image","tagLabel","tagIcon","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","undefined","Selectable","neutral_300","ComponentTextStyle","Regular"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;AAgBA,IAAMA,GAAG,GAAGC,0BAAOC,GAAV,4IAAT;;AAMA,IAAMC,YAAY,GAAGF,0BAAOG,GAAV,6VACIC,SAAOC,WADX,CAAlB;;AAkBA,IAAMC,SAAS,GAAGN,0BAAOG,GAAV,kTAUX,UAAAI,KAAK;AAAA,SAAIA,KAAK,CAACC,QAAN,yDAGN,EAHE;AAAA,CAVM,EAeX,UAAAD,KAAK;AAAA,SACLA,KAAK,CAACE,eAAN,IAAyBC,kBAAgBC,SAAzC,2BAEUJ,KAAK,CAACC,QAAN,GAAiB,aAAjB,GAAiC,SAF3C,aAII,EALC;AAAA,CAfM,CAAf;;AAuBA,IAAMI,eAAe,GAAGZ,0BAAOG,GAAV,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iBACGA,OADH,eAEE;AAAA,kBAAMD;AAAN,QAFF;AAAA,MATJ,EAcG,CAACE,mBAAmB,IAAIC,mBAAxB,kBACC,sBAAC,eAAD;AAAiB,MAAA,MAAM,EAAEC,2BAAF,aAAEA,2BAAF,cAAEA,2BAAF,GAAiC,EAAxD;AAA4D,MAAA,gBAAgB,EAAEjB,QAAQ,GAAGJ,SAAOyB,WAAV,GAAwBH,sBAAxB,aAAwBA,sBAAxB,cAAwBA,sBAAxB,GAAkD,EAAxI;AAAA,iBACGH,mBADH,EAEGC,mBAAmB,iBAClB,qBAAC,sBAAD;AAAY,QAAA,KAAK,EAAEC,2BAAF,aAAEA,2BAAF,cAAEA,2BAAF,GAAiC,EAAlD;AAAsD,QAAA,SAAS,EAAEK,+BAAmBC,OAApF;AAAA,kBACGP;AADH,QAHJ;AAAA,MAfJ;AAAA,IADF;AA2BD,CAxCD;;;AA5FEN,EAAAA,Q;AACAC,EAAAA,W;AACAE,EAAAA,Q;AACAC,EAAAA,O;AACAE,EAAAA,mB;AACAD,EAAAA,mB;AACAE,EAAAA,2B;AACAC,EAAAA,sB;AACAN,EAAAA,K;AACAZ,EAAAA,Q;;eA6HaS,c","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { ComponentS, ComponentTextStyle } from '../styles/typography';\nimport Checkbox from '../InputFields/Checkbox';\n\nimport { COLORS, InteractionType } from '..';\n\nexport interface CardTopSectionProps {\n interactionType: InteractionType;\n selected: boolean;\n setSelected: (arg0: boolean) => void;\n tagLabel?: string;\n tagIcon?: React.ReactNode;\n highlightRibbonText?: string;\n highlightRibbonIcon?: string;\n highlightRibbonContentColor?: string;\n highlightRibbonBgColor?: string;\n image?: string;\n disabled: boolean;\n}\n\nconst Img = styled.img`\n object-fit: cover;\n width: 100%;\n height: 100%;\n`;\n\nconst TagContainer = styled.div`\n background-color: ${COLORS.correct_500};\n color: white;\n border-radius: 2px;\n padding: 4px;\n display: flex;\n position: absolute;\n flex-direction: row;\n align-items: center;\n top: 16px;\n left: 16px;\n\n svg {\n color: white;\n margin-right: 4px;\n }\n`;\n\nconst Container = styled.div<{ interactionType: InteractionType; disabled: boolean }>`\n position: relative;\n width: calc(100% + 2px);\n margin-left: -1px;\n margin-top: -1px;\n height: 200px;\n overflow: hidden;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n\n ${props => props.disabled ? `\n img, svg {\n filter: grayscale(100%);\n }` : ''}\n\n ${props =>\n props.interactionType == InteractionType.Clickable\n ? `\n cursor: ${props.disabled ? 'not-allowed' : 'pointer'};\n `\n : ''}\n`;\n\nconst RibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\n height: calc(40px - 16px);\n background-color: ${props => props.$backgroundColor};\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n color: ${props => props.$color};\n margin-right: 9px;\n }\n`;\n\nconst CheckboxContainer = styled.div`\n position: absolute;\n top: 14px;\n right: 14px;\n`;\n\nconst WhiteOverlay = styled.div`\n width: 100%;\n height: 100%;\n background-color: rgba(256, 256, 256, 0.5);\n position: absolute;\n top: 0px;\n left: 0px;\n`;\n\nconst CardTopSection: React.FunctionComponent<CardTopSectionProps> = ({\n interactionType,\n selected,\n setSelected,\n image,\n tagLabel,\n tagIcon,\n highlightRibbonIcon,\n highlightRibbonText,\n highlightRibbonContentColor,\n highlightRibbonBgColor,\n disabled\n}: CardTopSectionProps) => {\n return (\n <Container disabled={disabled} interactionType={interactionType}>\n {disabled && <WhiteOverlay />}\n <Img src={image} />\n {(selected !== undefined || setSelected !== undefined) && interactionType == InteractionType.Selectable && (\n <CheckboxContainer>\n <Checkbox select={(selected: boolean) => setSelected(selected)} selected={selected} />\n </CheckboxContainer>\n )}\n {(tagLabel || tagIcon) && (\n <TagContainer>\n {tagIcon}\n <div>{tagLabel}</div>\n </TagContainer>\n )}\n {(highlightRibbonIcon || highlightRibbonText) && (\n <RibbonContainer $color={highlightRibbonContentColor ?? ''} $backgroundColor={disabled ? COLORS.neutral_300 : highlightRibbonBgColor ?? ''}>\n {highlightRibbonIcon}\n {highlightRibbonText && (\n <ComponentS color={highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\n {highlightRibbonText}\n </ComponentS>\n )}\n </RibbonContainer>\n )}\n </Container>\n );\n};\n\nexport default CardTopSection;\n"],"file":"CardTopSection.cjs"}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { InteractionType } from '..';
3
+ export interface CardTopSectionProps {
4
+ interactionType: InteractionType;
5
+ selected: boolean;
6
+ setSelected: (arg0: boolean) => void;
7
+ tagLabel?: string;
8
+ tagIcon?: React.ReactNode;
9
+ highlightRibbonText?: string;
10
+ highlightRibbonIcon?: string;
11
+ highlightRibbonContentColor?: string;
12
+ highlightRibbonBgColor?: string;
13
+ image?: string;
14
+ disabled: boolean;
15
+ }
16
+ declare const CardTopSection: React.FunctionComponent<CardTopSectionProps>;
17
+ export default CardTopSection;
@@ -0,0 +1,81 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ import _pt from "prop-types";
3
+
4
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
5
+
6
+ import * as React from 'react';
7
+ import styled from 'styled-components';
8
+ import { ComponentS, ComponentTextStyle } from '../styles/typography';
9
+ import Checkbox from '../InputFields/Checkbox';
10
+ import { COLORS, InteractionType } from '..';
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ var Img = styled.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n object-fit: cover;\n width: 100%;\n height: 100%;\n"])));
14
+ var TagContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: white;\n border-radius: 2px;\n padding: 4px;\n display: flex;\n position: absolute;\n flex-direction: row;\n align-items: center;\n top: 16px;\n left: 16px;\n\n svg {\n color: white;\n margin-right: 4px;\n }\n"])), COLORS.correct_500);
15
+ var Container = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n width: calc(100% + 2px);\n margin-left: -1px;\n margin-top: -1px;\n height: 200px;\n overflow: hidden;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n\n ", "\n\n ", "\n"])), function (props) {
16
+ return props.disabled ? "\n img, svg {\n filter: grayscale(100%);\n }" : '';
17
+ }, function (props) {
18
+ return props.interactionType == InteractionType.Clickable ? "\n cursor: ".concat(props.disabled ? 'not-allowed' : 'pointer', ";\n ") : '';
19
+ });
20
+ var RibbonContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: calc(40px - 16px);\n background-color: ", ";\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n color: ", ";\n margin-right: 9px;\n }\n"])), function (props) {
21
+ return props.$backgroundColor;
22
+ }, function (props) {
23
+ return props.$color;
24
+ });
25
+ var CheckboxContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n top: 14px;\n right: 14px;\n"])));
26
+ var WhiteOverlay = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n background-color: rgba(256, 256, 256, 0.5);\n position: absolute;\n top: 0px;\n left: 0px;\n"])));
27
+
28
+ var CardTopSection = function CardTopSection(_ref) {
29
+ var interactionType = _ref.interactionType,
30
+ selected = _ref.selected,
31
+ setSelected = _ref.setSelected,
32
+ image = _ref.image,
33
+ tagLabel = _ref.tagLabel,
34
+ tagIcon = _ref.tagIcon,
35
+ highlightRibbonIcon = _ref.highlightRibbonIcon,
36
+ highlightRibbonText = _ref.highlightRibbonText,
37
+ highlightRibbonContentColor = _ref.highlightRibbonContentColor,
38
+ highlightRibbonBgColor = _ref.highlightRibbonBgColor,
39
+ disabled = _ref.disabled;
40
+ return /*#__PURE__*/_jsxs(Container, {
41
+ disabled: disabled,
42
+ interactionType: interactionType,
43
+ children: [disabled && /*#__PURE__*/_jsx(WhiteOverlay, {}), /*#__PURE__*/_jsx(Img, {
44
+ src: image
45
+ }), (selected !== undefined || setSelected !== undefined) && interactionType == InteractionType.Selectable && /*#__PURE__*/_jsx(CheckboxContainer, {
46
+ children: /*#__PURE__*/_jsx(Checkbox, {
47
+ select: function select(selected) {
48
+ return setSelected(selected);
49
+ },
50
+ selected: selected
51
+ })
52
+ }), (tagLabel || tagIcon) && /*#__PURE__*/_jsxs(TagContainer, {
53
+ children: [tagIcon, /*#__PURE__*/_jsx("div", {
54
+ children: tagLabel
55
+ })]
56
+ }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/_jsxs(RibbonContainer, {
57
+ $color: highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '',
58
+ $backgroundColor: disabled ? COLORS.neutral_300 : highlightRibbonBgColor !== null && highlightRibbonBgColor !== void 0 ? highlightRibbonBgColor : '',
59
+ children: [highlightRibbonIcon, highlightRibbonText && /*#__PURE__*/_jsx(ComponentS, {
60
+ color: highlightRibbonContentColor !== null && highlightRibbonContentColor !== void 0 ? highlightRibbonContentColor : '',
61
+ textStyle: ComponentTextStyle.Regular,
62
+ children: highlightRibbonText
63
+ })]
64
+ })]
65
+ });
66
+ };
67
+
68
+ CardTopSection.propTypes = {
69
+ selected: _pt.bool.isRequired,
70
+ setSelected: _pt.func.isRequired,
71
+ tagLabel: _pt.string,
72
+ tagIcon: _pt.node,
73
+ highlightRibbonText: _pt.string,
74
+ highlightRibbonIcon: _pt.string,
75
+ highlightRibbonContentColor: _pt.string,
76
+ highlightRibbonBgColor: _pt.string,
77
+ image: _pt.string,
78
+ disabled: _pt.bool.isRequired
79
+ };
80
+ export default CardTopSection;
81
+ //# sourceMappingURL=CardTopSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/CardTopSection.tsx"],"names":["React","styled","ComponentS","ComponentTextStyle","Checkbox","COLORS","InteractionType","Img","img","TagContainer","div","correct_500","Container","props","disabled","interactionType","Clickable","RibbonContainer","$backgroundColor","$color","CheckboxContainer","WhiteOverlay","CardTopSection","selected","setSelected","image","tagLabel","tagIcon","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","undefined","Selectable","neutral_300","Regular"],"mappings":";;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,UAAT,EAAqBC,kBAArB,QAA+C,sBAA/C;AACA,OAAOC,QAAP,MAAqB,yBAArB;AAEA,SAASC,MAAT,EAAiBC,eAAjB,QAAwC,IAAxC;;;AAgBA,IAAMC,GAAG,GAAGN,MAAM,CAACO,GAAV,8HAAT;AAMA,IAAMC,YAAY,GAAGR,MAAM,CAACS,GAAV,+UACIL,MAAM,CAACM,WADX,CAAlB;AAkBA,IAAMC,SAAS,GAAGX,MAAM,CAACS,GAAV,oSAUX,UAAAG,KAAK;AAAA,SAAIA,KAAK,CAACC,QAAN,yDAGN,EAHE;AAAA,CAVM,EAeX,UAAAD,KAAK;AAAA,SACLA,KAAK,CAACE,eAAN,IAAyBT,eAAe,CAACU,SAAzC,2BAEUH,KAAK,CAACC,QAAN,GAAiB,aAAjB,GAAiC,SAF3C,aAII,EALC;AAAA,CAfM,CAAf;AAuBA,IAAMG,eAAe,GAAGhB,MAAM,CAACS,GAAV,gXAEC,UAAAG,KAAK;AAAA,SAAIA,KAAK,CAACK,gBAAV;AAAA,CAFN,EAaR,UAAAL,KAAK;AAAA,SAAIA,KAAK,CAACM,MAAV;AAAA,CAbG,CAArB;AAkBA,IAAMC,iBAAiB,GAAGnB,MAAM,CAACS,GAAV,8HAAvB;AAMA,IAAMW,YAAY,GAAGpB,MAAM,CAACS,GAAV,2MAA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AAC6B,WAAV,GAAwBH,sBAAxB,aAAwBA,sBAAxB,cAAwBA,sBAAxB,GAAkD,EAAxI;AAAA,iBACGH,mBADH,EAEGC,mBAAmB,iBAClB,KAAC,UAAD;AAAY,QAAA,KAAK,EAAEC,2BAAF,aAAEA,2BAAF,cAAEA,2BAAF,GAAiC,EAAlD;AAAsD,QAAA,SAAS,EAAE3B,kBAAkB,CAACgC,OAApF;AAAA,kBACGN;AADH,QAHJ;AAAA,MAfJ;AAAA,IADF;AA2BD,CAxCD;;;AA5FEN,EAAAA,Q;AACAC,EAAAA,W;AACAE,EAAAA,Q;AACAC,EAAAA,O;AACAE,EAAAA,mB;AACAD,EAAAA,mB;AACAE,EAAAA,2B;AACAC,EAAAA,sB;AACAN,EAAAA,K;AACAX,EAAAA,Q;;AA6HF,eAAeQ,cAAf","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { ComponentS, ComponentTextStyle } from '../styles/typography';\nimport Checkbox from '../InputFields/Checkbox';\n\nimport { COLORS, InteractionType } from '..';\n\nexport interface CardTopSectionProps {\n interactionType: InteractionType;\n selected: boolean;\n setSelected: (arg0: boolean) => void;\n tagLabel?: string;\n tagIcon?: React.ReactNode;\n highlightRibbonText?: string;\n highlightRibbonIcon?: string;\n highlightRibbonContentColor?: string;\n highlightRibbonBgColor?: string;\n image?: string;\n disabled: boolean;\n}\n\nconst Img = styled.img`\n object-fit: cover;\n width: 100%;\n height: 100%;\n`;\n\nconst TagContainer = styled.div`\n background-color: ${COLORS.correct_500};\n color: white;\n border-radius: 2px;\n padding: 4px;\n display: flex;\n position: absolute;\n flex-direction: row;\n align-items: center;\n top: 16px;\n left: 16px;\n\n svg {\n color: white;\n margin-right: 4px;\n }\n`;\n\nconst Container = styled.div<{ interactionType: InteractionType; disabled: boolean }>`\n position: relative;\n width: calc(100% + 2px);\n margin-left: -1px;\n margin-top: -1px;\n height: 200px;\n overflow: hidden;\n border-top-right-radius: 8px;\n border-top-left-radius: 8px;\n\n ${props => props.disabled ? `\n img, svg {\n filter: grayscale(100%);\n }` : ''}\n\n ${props =>\n props.interactionType == InteractionType.Clickable\n ? `\n cursor: ${props.disabled ? 'not-allowed' : 'pointer'};\n `\n : ''}\n`;\n\nconst RibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\n height: calc(40px - 16px);\n background-color: ${props => props.$backgroundColor};\n width: calc(100% - 32px);\n position: absolute;\n bottom: 0px;\n left: 0px;\n padding: 8px 16px 8px 16px;\n display: flex;\n flex-direction: row;\n align-items: center;\n\n svg {\n color: ${props => props.$color};\n margin-right: 9px;\n }\n`;\n\nconst CheckboxContainer = styled.div`\n position: absolute;\n top: 14px;\n right: 14px;\n`;\n\nconst WhiteOverlay = styled.div`\n width: 100%;\n height: 100%;\n background-color: rgba(256, 256, 256, 0.5);\n position: absolute;\n top: 0px;\n left: 0px;\n`;\n\nconst CardTopSection: React.FunctionComponent<CardTopSectionProps> = ({\n interactionType,\n selected,\n setSelected,\n image,\n tagLabel,\n tagIcon,\n highlightRibbonIcon,\n highlightRibbonText,\n highlightRibbonContentColor,\n highlightRibbonBgColor,\n disabled\n}: CardTopSectionProps) => {\n return (\n <Container disabled={disabled} interactionType={interactionType}>\n {disabled && <WhiteOverlay />}\n <Img src={image} />\n {(selected !== undefined || setSelected !== undefined) && interactionType == InteractionType.Selectable && (\n <CheckboxContainer>\n <Checkbox select={(selected: boolean) => setSelected(selected)} selected={selected} />\n </CheckboxContainer>\n )}\n {(tagLabel || tagIcon) && (\n <TagContainer>\n {tagIcon}\n <div>{tagLabel}</div>\n </TagContainer>\n )}\n {(highlightRibbonIcon || highlightRibbonText) && (\n <RibbonContainer $color={highlightRibbonContentColor ?? ''} $backgroundColor={disabled ? COLORS.neutral_300 : highlightRibbonBgColor ?? ''}>\n {highlightRibbonIcon}\n {highlightRibbonText && (\n <ComponentS color={highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\n {highlightRibbonText}\n </ComponentS>\n )}\n </RibbonContainer>\n )}\n </Container>\n );\n};\n\nexport default CardTopSection;\n"],"file":"CardTopSection.js"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ Object.defineProperty(exports, "Card", {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _Card.default;
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "CardBottomSection", {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _CardBottomSection.default;
20
+ }
21
+ });
22
+ Object.defineProperty(exports, "CardMiddleSection", {
23
+ enumerable: true,
24
+ get: function get() {
25
+ return _CardMiddleSection.default;
26
+ }
27
+ });
28
+ Object.defineProperty(exports, "CardTopSection", {
29
+ enumerable: true,
30
+ get: function get() {
31
+ return _CardTopSection.default;
32
+ }
33
+ });
34
+ Object.defineProperty(exports, "InteractionType", {
35
+ enumerable: true,
36
+ get: function get() {
37
+ return _Card.InteractionType;
38
+ }
39
+ });
40
+
41
+ var _Card = _interopRequireWildcard(require("./Card"));
42
+
43
+ var _CardBottomSection = _interopRequireDefault(require("./CardBottomSection"));
44
+
45
+ var _CardMiddleSection = _interopRequireDefault(require("./CardMiddleSection"));
46
+
47
+ var _CardTopSection = _interopRequireDefault(require("./CardTopSection"));
48
+
49
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
50
+
51
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
52
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA","sourcesContent":["export {default as Card} from './Card';\nexport {default as CardBottomSection} from './CardBottomSection';\nexport {default as CardMiddleSection} from './CardMiddleSection';\nexport {default as CardTopSection} from './CardTopSection';\nexport {InteractionType} from './Card';"],"file":"index.cjs"}
@@ -0,0 +1,5 @@
1
+ export { default as Card } from './Card';
2
+ export { default as CardBottomSection } from './CardBottomSection';
3
+ export { default as CardMiddleSection } from './CardMiddleSection';
4
+ export { default as CardTopSection } from './CardTopSection';
5
+ export { InteractionType } from './Card';
@@ -0,0 +1,6 @@
1
+ export { default as Card } from './Card';
2
+ export { default as CardBottomSection } from './CardBottomSection';
3
+ export { default as CardMiddleSection } from './CardMiddleSection';
4
+ export { default as CardTopSection } from './CardTopSection';
5
+ export { InteractionType } from './Card';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Card/index.tsx"],"names":["default","Card","CardBottomSection","CardMiddleSection","CardTopSection","InteractionType"],"mappings":"AAAA,SAAQA,OAAO,IAAIC,IAAnB,QAA8B,QAA9B;AACA,SAAQD,OAAO,IAAIE,iBAAnB,QAA2C,qBAA3C;AACA,SAAQF,OAAO,IAAIG,iBAAnB,QAA2C,qBAA3C;AACA,SAAQH,OAAO,IAAII,cAAnB,QAAwC,kBAAxC;AACA,SAAQC,eAAR,QAA8B,QAA9B","sourcesContent":["export {default as Card} from './Card';\nexport {default as CardBottomSection} from './CardBottomSection';\nexport {default as CardMiddleSection} from './CardMiddleSection';\nexport {default as CardTopSection} from './CardTopSection';\nexport {InteractionType} from './Card';"],"file":"index.js"}