@learncard/react 2.3.46 → 2.3.48
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.
- package/dist/cjs/{SchoolIDCard-32a47ae5.js → SchoolIDCard-1baf77e8.js} +18 -6
- package/dist/cjs/{SchoolIDCard-32a47ae5.js.map → SchoolIDCard-1baf77e8.js.map} +1 -1
- package/dist/cjs/constants-678d0aa9.js +106 -0
- package/dist/cjs/constants-678d0aa9.js.map +1 -0
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index10.js +7 -3
- package/dist/cjs/index10.js.map +1 -1
- package/dist/cjs/index21.js +6 -2
- package/dist/cjs/index21.js.map +1 -1
- package/dist/cjs/index22.js +1 -1
- package/dist/esm/{SchoolIDCard-4f56262c.js → SchoolIDCard-3b746226.js} +18 -6
- package/dist/esm/{SchoolIDCard-4f56262c.js.map → SchoolIDCard-3b746226.js.map} +1 -1
- package/dist/esm/constants-e0d87a29.js +87 -0
- package/dist/esm/constants-e0d87a29.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index10.js +2 -2
- package/dist/esm/index21.js +1 -1
- package/dist/esm/index22.js +1 -1
- package/dist/index.d.ts +22 -3
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/RoundedSquare-9208c484.js +0 -54
- package/dist/cjs/RoundedSquare-9208c484.js.map +0 -1
- package/dist/esm/RoundedSquare-c013d78d.js +0 -48
- package/dist/esm/RoundedSquare-c013d78d.js.map +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index$1 = require('./index-63ee021e.js');
|
|
5
|
+
var icons = require('./icons-cf98ef88.js');
|
|
6
|
+
var CircleIcon = require('./CircleIcon-41b3fa88.js');
|
|
7
|
+
var index = require('./index-6cab6d37.js');
|
|
8
|
+
var coinsGraphic = require('./walletcurrency.webp');
|
|
9
|
+
var idsGraphic = require('./walletids.webp');
|
|
10
|
+
var jobhistoryGraphic = require('./walletjobhistory.webp');
|
|
11
|
+
var learningHistoryGraphic = require('./walletlearninghistory.webp');
|
|
12
|
+
var skillsGraphic = require('./walletskills.webp');
|
|
13
|
+
var achievementsGraphic = require('./walletTrophy.webp');
|
|
14
|
+
var MiniTrophyIcon = require('./minitrophycolored.svg');
|
|
15
|
+
var MiniGradIcon = require('./minigradcapcolored.svg');
|
|
16
|
+
var MiniPuzzleIcon = require('./minipuzzlecolored.svg');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
|
+
var coinsGraphic__default = /*#__PURE__*/_interopDefaultLegacy(coinsGraphic);
|
|
22
|
+
var idsGraphic__default = /*#__PURE__*/_interopDefaultLegacy(idsGraphic);
|
|
23
|
+
var jobhistoryGraphic__default = /*#__PURE__*/_interopDefaultLegacy(jobhistoryGraphic);
|
|
24
|
+
var learningHistoryGraphic__default = /*#__PURE__*/_interopDefaultLegacy(learningHistoryGraphic);
|
|
25
|
+
var skillsGraphic__default = /*#__PURE__*/_interopDefaultLegacy(skillsGraphic);
|
|
26
|
+
var achievementsGraphic__default = /*#__PURE__*/_interopDefaultLegacy(achievementsGraphic);
|
|
27
|
+
var MiniTrophyIcon__default = /*#__PURE__*/_interopDefaultLegacy(MiniTrophyIcon);
|
|
28
|
+
var MiniGradIcon__default = /*#__PURE__*/_interopDefaultLegacy(MiniGradIcon);
|
|
29
|
+
var MiniPuzzleIcon__default = /*#__PURE__*/_interopDefaultLegacy(MiniPuzzleIcon);
|
|
30
|
+
|
|
31
|
+
const RoundedSquare = ({
|
|
32
|
+
title = "Currencies",
|
|
33
|
+
description = "Lorem ipsum sit dalor amet",
|
|
34
|
+
iconSrc = icons.ICONS_TO_SOURCE[index$1.Icons.trophyIcon],
|
|
35
|
+
imgSrc,
|
|
36
|
+
type = index$1.WalletCategoryTypes.achievements,
|
|
37
|
+
count = "28",
|
|
38
|
+
onClick = () => {
|
|
39
|
+
},
|
|
40
|
+
bgColor
|
|
41
|
+
}) => {
|
|
42
|
+
const imgSource = imgSrc || index.TYPE_TO_IMG_SRC[type];
|
|
43
|
+
const backgroundColor = bgColor != null ? bgColor : `bg-${index.TYPE_TO_WALLET_COLOR[type]}`;
|
|
44
|
+
const circleClass = `flex w-full justify-end icon-display absolute right-[15px] bottom-[10px] max-h-[40px] max-w-[40px]`;
|
|
45
|
+
return /* @__PURE__ */ React__default["default"].createElement("button", {
|
|
46
|
+
onClick,
|
|
47
|
+
className: `flex relative ${backgroundColor} py-[15px] px-[15px] w-[170px] h-[170px] rounded-[40px] rounded-square-card-container`
|
|
48
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
49
|
+
className: "w-full relative"
|
|
50
|
+
}, /* @__PURE__ */ React__default["default"].createElement("section", {
|
|
51
|
+
className: "title-headline-container flex items-center"
|
|
52
|
+
}, /* @__PURE__ */ React__default["default"].createElement(CircleIcon.CountCircle, {
|
|
53
|
+
count,
|
|
54
|
+
className: "solo-counter-circle right-[0px] top-[0px] relative"
|
|
55
|
+
}), /* @__PURE__ */ React__default["default"].createElement("h3", {
|
|
56
|
+
className: "line-clamp-2 font-bold text-[13px] text-grayscale-900 ml-[5px]"
|
|
57
|
+
}, title)), /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
58
|
+
className: "graphic-background relative flex justify-center"
|
|
59
|
+
}, /* @__PURE__ */ React__default["default"].createElement("img", {
|
|
60
|
+
className: "max-w-[130px]",
|
|
61
|
+
src: imgSource
|
|
62
|
+
}))), /* @__PURE__ */ React__default["default"].createElement("div", {
|
|
63
|
+
className: circleClass
|
|
64
|
+
}, /* @__PURE__ */ React__default["default"].createElement(CircleIcon.CircleIcon, {
|
|
65
|
+
iconSrc,
|
|
66
|
+
count,
|
|
67
|
+
size: "40"
|
|
68
|
+
})));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const TYPE_TO_MINI_ICON = {
|
|
72
|
+
[index$1.LCSubtypes.course]: MiniGradIcon__default["default"],
|
|
73
|
+
[index$1.LCSubtypes.achievement]: MiniTrophyIcon__default["default"],
|
|
74
|
+
[index$1.LCSubtypes.skill]: MiniPuzzleIcon__default["default"]
|
|
75
|
+
};
|
|
76
|
+
const WALLET_SUBTYPES = {
|
|
77
|
+
ACHIEVEMENTS: "achievements",
|
|
78
|
+
IDS: "ids",
|
|
79
|
+
JOB_HISTORY: "jobHistory",
|
|
80
|
+
CURRENCIES: "currency",
|
|
81
|
+
LEARNING_HISTORY: "learningHistory",
|
|
82
|
+
SKILLS: "skills"
|
|
83
|
+
};
|
|
84
|
+
const TYPE_TO_IMG_SRC = {
|
|
85
|
+
[WALLET_SUBTYPES.ACHIEVEMENTS]: achievementsGraphic__default["default"],
|
|
86
|
+
[WALLET_SUBTYPES.IDS]: idsGraphic__default["default"],
|
|
87
|
+
[WALLET_SUBTYPES.JOB_HISTORY]: jobhistoryGraphic__default["default"],
|
|
88
|
+
[WALLET_SUBTYPES.LEARNING_HISTORY]: learningHistoryGraphic__default["default"],
|
|
89
|
+
[WALLET_SUBTYPES.CURRENCIES]: coinsGraphic__default["default"],
|
|
90
|
+
[WALLET_SUBTYPES.SKILLS]: skillsGraphic__default["default"]
|
|
91
|
+
};
|
|
92
|
+
const TYPE_TO_WALLET_COLOR = {
|
|
93
|
+
[WALLET_SUBTYPES.ACHIEVEMENTS]: "spice-300",
|
|
94
|
+
[WALLET_SUBTYPES.IDS]: "yellow-300",
|
|
95
|
+
[WALLET_SUBTYPES.JOB_HISTORY]: "rose-300",
|
|
96
|
+
[WALLET_SUBTYPES.LEARNING_HISTORY]: "emerald-300",
|
|
97
|
+
[WALLET_SUBTYPES.CURRENCIES]: "cyan-200",
|
|
98
|
+
[WALLET_SUBTYPES.SKILLS]: "indigo-300"
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.RoundedSquare = RoundedSquare;
|
|
102
|
+
exports.TYPE_TO_IMG_SRC = TYPE_TO_IMG_SRC;
|
|
103
|
+
exports.TYPE_TO_MINI_ICON = TYPE_TO_MINI_ICON;
|
|
104
|
+
exports.TYPE_TO_WALLET_COLOR = TYPE_TO_WALLET_COLOR;
|
|
105
|
+
exports.WALLET_SUBTYPES = WALLET_SUBTYPES;
|
|
106
|
+
//# sourceMappingURL=constants-678d0aa9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-678d0aa9.js","sources":["../../src/components/RoundedSquare/RoundedSquare.tsx","../../src/components/RoundedSquare/constants.ts"],"sourcesContent":["import React from 'react';\nimport { Icons, WalletCategoryTypes } from '../../types';\nimport { ICONS_TO_SOURCE } from '../../constants/icons';\nimport CircleIcon from '../CircleIcon/CircleIcon';\nimport { CountCircle } from '../CircleIcon';\nimport { TYPE_TO_IMG_SRC, TYPE_TO_WALLET_COLOR } from '../../constants';\n\nexport type RoundedSquareProps = {\n title?: string;\n description?: string;\n type?: WalletCategoryTypes;\n iconSrc?: string;\n imgSrc?: string;\n count?: string | number;\n onClick?: () => void;\n bgColor?: string;\n};\n\nexport const RoundedSquare: React.FC<RoundedSquareProps> = ({\n title = 'Currencies',\n description = 'Lorem ipsum sit dalor amet',\n iconSrc = ICONS_TO_SOURCE[Icons.trophyIcon],\n imgSrc,\n type = WalletCategoryTypes.achievements,\n count = '28',\n onClick = () => {},\n bgColor,\n}) => {\n const imgSource = imgSrc || TYPE_TO_IMG_SRC[type];\n const backgroundColor = bgColor ?? `bg-${TYPE_TO_WALLET_COLOR[type]}`;\n const circleClass = `flex w-full justify-end icon-display absolute right-[15px] bottom-[10px] max-h-[40px] max-w-[40px]`;\n\n return (\n <button\n onClick={onClick}\n className={`flex relative ${backgroundColor} py-[15px] px-[15px] w-[170px] h-[170px] rounded-[40px] rounded-square-card-container`}\n >\n <div className=\"w-full relative\">\n <section className=\"title-headline-container flex items-center\">\n <CountCircle\n count={count}\n className=\"solo-counter-circle right-[0px] top-[0px] relative\"\n />\n <h3 className=\"line-clamp-2 font-bold text-[13px] text-grayscale-900 ml-[5px]\">\n {title}\n </h3>\n </section>\n\n <div className=\"graphic-background relative flex justify-center\">\n <img className=\"max-w-[130px]\" src={imgSource} />\n </div>\n </div>\n\n <div className={circleClass}>\n <CircleIcon iconSrc={iconSrc} count={count} size=\"40\" />\n </div>\n </button>\n );\n};\n\nexport default RoundedSquare;\n","import coinsGraphic from '../../assets/images/walletcurrency.webp';\nimport idsGraphic from '../../assets/images/walletids.webp';\nimport jobhistoryGraphic from '../../assets/images/walletjobhistory.webp';\nimport learningHistoryGraphic from '../../assets/images/walletlearninghistory.webp';\nimport skillsGraphic from '../../assets/images/walletskills.webp';\nimport achievementsGraphic from '../../assets/images/walletTrophy.webp';\n\nimport MiniTrophyIcon from '../../assets/images/minitrophycolored.svg';\nimport MiniGradIcon from '../../assets/images/minigradcapcolored.svg';\nimport MiniPuzzleIcon from '../../assets/images/minipuzzlecolored.svg';\nimport { LCSubtypes } from '../../types';\n\nexport const TYPE_TO_MINI_ICON: any = {\n [LCSubtypes.course]: MiniGradIcon,\n [LCSubtypes.achievement]: MiniTrophyIcon,\n [LCSubtypes.skill]: MiniPuzzleIcon,\n};\n\nexport const WALLET_SUBTYPES = {\n ACHIEVEMENTS: 'achievements',\n IDS: 'ids',\n JOB_HISTORY: 'jobHistory',\n CURRENCIES: 'currency',\n LEARNING_HISTORY: 'learningHistory',\n SKILLS: 'skills',\n};\n\nexport const TYPE_TO_IMG_SRC = {\n [WALLET_SUBTYPES.ACHIEVEMENTS]: achievementsGraphic,\n [WALLET_SUBTYPES.IDS]: idsGraphic,\n [WALLET_SUBTYPES.JOB_HISTORY]: jobhistoryGraphic,\n [WALLET_SUBTYPES.LEARNING_HISTORY]: learningHistoryGraphic,\n [WALLET_SUBTYPES.CURRENCIES]: coinsGraphic,\n [WALLET_SUBTYPES.SKILLS]: skillsGraphic,\n};\n\nexport const TYPE_TO_WALLET_COLOR = {\n [WALLET_SUBTYPES.ACHIEVEMENTS]: 'spice-300',\n [WALLET_SUBTYPES.IDS]: 'yellow-300',\n [WALLET_SUBTYPES.JOB_HISTORY]: 'rose-300',\n [WALLET_SUBTYPES.LEARNING_HISTORY]: 'emerald-300',\n [WALLET_SUBTYPES.CURRENCIES]: 'cyan-200',\n [WALLET_SUBTYPES.SKILLS]: 'indigo-300',\n};"],"names":["ICONS_TO_SOURCE","Icons","WalletCategoryTypes","TYPE_TO_IMG_SRC","TYPE_TO_WALLET_COLOR","React","CountCircle","CircleIcon","LCSubtypes","MiniGradIcon","MiniTrophyIcon","MiniPuzzleIcon","achievementsGraphic","idsGraphic","jobhistoryGraphic","learningHistoryGraphic","coinsGraphic","skillsGraphic"],"mappings":"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"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -20,8 +20,8 @@ var MiniVCThumbnail = require('./MiniVCThumbnail-a78e44f2.js');
|
|
|
20
20
|
var Notification = require('./Notification-10b40c07.js');
|
|
21
21
|
var QRCodeCard = require('./QRCodeCard-efaa58e1.js');
|
|
22
22
|
var RoundedPill = require('./RoundedPill-15c0aca9.js');
|
|
23
|
-
var
|
|
24
|
-
var SchoolIDCard = require('./SchoolIDCard-
|
|
23
|
+
var constants = require('./constants-678d0aa9.js');
|
|
24
|
+
var SchoolIDCard = require('./SchoolIDCard-1baf77e8.js');
|
|
25
25
|
var SkillTabCard = require('./SkillTabCard-82f2fae0.js');
|
|
26
26
|
var SkillVerticalCard = require('./SkillVerticalCard-3eb3a8e9.js');
|
|
27
27
|
var SkillsCard = require('./SkillsCard-4b6dbb4f.js');
|
|
@@ -100,7 +100,11 @@ exports.NotificationTypeStyles = Notification.NotificationTypeStyles;
|
|
|
100
100
|
exports.QRCodeCard = QRCodeCard.QRCodeCard;
|
|
101
101
|
exports.CheckmarkSvg = RoundedPill.CheckmarkSvg;
|
|
102
102
|
exports.RoundedPill = RoundedPill.RoundedPill;
|
|
103
|
-
exports.RoundedSquare =
|
|
103
|
+
exports.RoundedSquare = constants.RoundedSquare;
|
|
104
|
+
exports.TYPE_TO_IMG_SRC = constants.TYPE_TO_IMG_SRC;
|
|
105
|
+
exports.TYPE_TO_MINI_ICON = constants.TYPE_TO_MINI_ICON;
|
|
106
|
+
exports.TYPE_TO_WALLET_COLOR = constants.TYPE_TO_WALLET_COLOR;
|
|
107
|
+
exports.WALLET_SUBTYPES = constants.WALLET_SUBTYPES;
|
|
104
108
|
exports.SchoolIDCard = SchoolIDCard.SchoolIDCard;
|
|
105
109
|
exports.SkillTabCard = SkillTabCard.SkillTabCard;
|
|
106
110
|
exports.SkillVerticalCard = SkillVerticalCard.SkillVerticalCard;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index10.js
CHANGED
|
@@ -20,8 +20,8 @@ var MiniVCThumbnail = require('./MiniVCThumbnail-a78e44f2.js');
|
|
|
20
20
|
var Notification = require('./Notification-10b40c07.js');
|
|
21
21
|
var QRCodeCard = require('./QRCodeCard-efaa58e1.js');
|
|
22
22
|
var RoundedPill = require('./RoundedPill-15c0aca9.js');
|
|
23
|
-
var
|
|
24
|
-
var SchoolIDCard = require('./SchoolIDCard-
|
|
23
|
+
var constants = require('./constants-678d0aa9.js');
|
|
24
|
+
var SchoolIDCard = require('./SchoolIDCard-1baf77e8.js');
|
|
25
25
|
var SkillTabCard = require('./SkillTabCard-82f2fae0.js');
|
|
26
26
|
var SkillVerticalCard = require('./SkillVerticalCard-3eb3a8e9.js');
|
|
27
27
|
var SkillsCard = require('./SkillsCard-4b6dbb4f.js');
|
|
@@ -100,7 +100,11 @@ exports.NotificationTypeStyles = Notification.NotificationTypeStyles;
|
|
|
100
100
|
exports.QRCodeCard = QRCodeCard.QRCodeCard;
|
|
101
101
|
exports.CheckmarkSvg = RoundedPill.CheckmarkSvg;
|
|
102
102
|
exports.RoundedPill = RoundedPill.RoundedPill;
|
|
103
|
-
exports.RoundedSquare =
|
|
103
|
+
exports.RoundedSquare = constants.RoundedSquare;
|
|
104
|
+
exports.TYPE_TO_IMG_SRC = constants.TYPE_TO_IMG_SRC;
|
|
105
|
+
exports.TYPE_TO_MINI_ICON = constants.TYPE_TO_MINI_ICON;
|
|
106
|
+
exports.TYPE_TO_WALLET_COLOR = constants.TYPE_TO_WALLET_COLOR;
|
|
107
|
+
exports.WALLET_SUBTYPES = constants.WALLET_SUBTYPES;
|
|
104
108
|
exports.SchoolIDCard = SchoolIDCard.SchoolIDCard;
|
|
105
109
|
exports.SkillTabCard = SkillTabCard.SkillTabCard;
|
|
106
110
|
exports.SkillVerticalCard = SkillVerticalCard.SkillVerticalCard;
|
package/dist/cjs/index10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index21.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var constants = require('./constants-678d0aa9.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('./index-63ee021e.js');
|
|
8
8
|
require('./icons-cf98ef88.js');
|
|
@@ -29,5 +29,9 @@ require('./minipuzzlecolored.svg');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
exports.RoundedSquare =
|
|
32
|
+
exports.RoundedSquare = constants.RoundedSquare;
|
|
33
|
+
exports.TYPE_TO_IMG_SRC = constants.TYPE_TO_IMG_SRC;
|
|
34
|
+
exports.TYPE_TO_MINI_ICON = constants.TYPE_TO_MINI_ICON;
|
|
35
|
+
exports.TYPE_TO_WALLET_COLOR = constants.TYPE_TO_WALLET_COLOR;
|
|
36
|
+
exports.WALLET_SUBTYPES = constants.WALLET_SUBTYPES;
|
|
33
37
|
//# sourceMappingURL=index21.js.map
|
package/dist/cjs/index21.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index21.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index22.js
CHANGED
|
@@ -4666,6 +4666,9 @@ const SchoolIDCard = ({
|
|
|
4666
4666
|
userName,
|
|
4667
4667
|
text = null,
|
|
4668
4668
|
extraText,
|
|
4669
|
+
subjectInitials,
|
|
4670
|
+
subjectInitialsClass,
|
|
4671
|
+
showBarcode = true,
|
|
4669
4672
|
backgroundImage,
|
|
4670
4673
|
className,
|
|
4671
4674
|
containerClassName
|
|
@@ -4678,6 +4681,18 @@ const SchoolIDCard = ({
|
|
|
4678
4681
|
} else {
|
|
4679
4682
|
textEl = text;
|
|
4680
4683
|
}
|
|
4684
|
+
let issueeImageEl = null;
|
|
4685
|
+
const initialsClass = `subject-initials h-[70px] w-[70px] rounded-full mr-[10px] flex flex-row items-center justify-center h-full w-full overflow-hidden bg-emerald-700 text-white font-medium text-3xl ${subjectInitialsClass}`;
|
|
4686
|
+
if (userImage && (userImage == null ? void 0 : userImage.trim()) !== "") {
|
|
4687
|
+
issueeImageEl = /* @__PURE__ */ React.createElement("div", {
|
|
4688
|
+
className: "h-[80px] w-[80px] rounded-full overflow-hidden bg-no-repeat bg-cover bg-center border-solid border-[2px] border-white mr-2",
|
|
4689
|
+
style: { backgroundImage: `url(${userImage})` }
|
|
4690
|
+
});
|
|
4691
|
+
} else if (subjectInitials && (!userImage || (userImage == null ? void 0 : userImage.trim()) === "")) {
|
|
4692
|
+
issueeImageEl = /* @__PURE__ */ React.createElement("div", {
|
|
4693
|
+
className: initialsClass
|
|
4694
|
+
}, subjectInitials);
|
|
4695
|
+
}
|
|
4681
4696
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4682
4697
|
style: { backgroundImage: `url(${backgroundImage})` },
|
|
4683
4698
|
className: `h-[200px] w-[320px] rounded-[20px] overflow-hidden ${className}`
|
|
@@ -4685,14 +4700,11 @@ const SchoolIDCard = ({
|
|
|
4685
4700
|
className: `h-full w-full flex items-center justify-start relative ${containerClassName}`
|
|
4686
4701
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4687
4702
|
className: "w-full flex justify-start items-center pl-3 mt-10"
|
|
4688
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
4689
|
-
className: "h-[100px] w-[80px] rounded-full overflow-hidden bg-no-repeat bg-cover bg-center border-solid border-[2px] border-white mr-2",
|
|
4690
|
-
style: { backgroundImage: `url(${userImage})` }
|
|
4691
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
4703
|
+
}, issueeImageEl, /* @__PURE__ */ React.createElement("div", {
|
|
4692
4704
|
className: "h-full flex items-start justify-center flex-col mt-7"
|
|
4693
4705
|
}, userName && /* @__PURE__ */ React.createElement("p", {
|
|
4694
4706
|
className: "text-sm text-black font-light"
|
|
4695
|
-
}, userName), textEl && textEl)), /* @__PURE__ */ React.createElement("div", {
|
|
4707
|
+
}, userName), textEl && textEl)), showBarcode && /* @__PURE__ */ React.createElement("div", {
|
|
4696
4708
|
className: "barcode-container"
|
|
4697
4709
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
4698
4710
|
className: "barcode-wrap"
|
|
@@ -4707,4 +4719,4 @@ const SchoolIDCard = ({
|
|
|
4707
4719
|
};
|
|
4708
4720
|
|
|
4709
4721
|
export { SchoolIDCard as S };
|
|
4710
|
-
//# sourceMappingURL=SchoolIDCard-
|
|
4722
|
+
//# sourceMappingURL=SchoolIDCard-3b746226.js.map
|