@trii/components 2.0.3 → 2.0.6
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/index.js +21 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +2 -0
- package/dist/esm/index.js +21 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +99 -99
- package/readme +71 -71
package/dist/cjs/index.js
CHANGED
|
@@ -8296,13 +8296,16 @@ var WhatsApp = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
|
8296
8296
|
d: "M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"
|
|
8297
8297
|
}), 'WhatsApp');
|
|
8298
8298
|
|
|
8299
|
-
const ButtonsContainer = material.styled(material.Box)({
|
|
8299
|
+
const ButtonsContainer = material.styled(material.Box)(({ theme }) => ({
|
|
8300
8300
|
position: 'absolute',
|
|
8301
8301
|
top: 8,
|
|
8302
8302
|
right: 8,
|
|
8303
8303
|
display: 'flex',
|
|
8304
8304
|
gap: 4,
|
|
8305
|
-
|
|
8305
|
+
zIndex: 1,
|
|
8306
|
+
//@ts-ignore
|
|
8307
|
+
backgroundColor: theme.palette.background.panel,
|
|
8308
|
+
}));
|
|
8306
8309
|
const SmallIconButton = material.styled(material.IconButton)({
|
|
8307
8310
|
padding: 4,
|
|
8308
8311
|
});
|
|
@@ -8354,9 +8357,10 @@ const StyledBox = material.styled(material.Box)({
|
|
|
8354
8357
|
padding: 1,
|
|
8355
8358
|
minHeight: '50px',
|
|
8356
8359
|
position: 'relative',
|
|
8360
|
+
maxWidth: 'inherit'
|
|
8357
8361
|
});
|
|
8358
8362
|
const IconBox = material.styled(material.Box)(({ theme }) => ({
|
|
8359
|
-
marginTop: '-
|
|
8363
|
+
marginTop: '-20px',
|
|
8360
8364
|
padding: 0,
|
|
8361
8365
|
color: theme.palette.primary.main,
|
|
8362
8366
|
}));
|
|
@@ -8373,15 +8377,15 @@ const InfoContainer = material.styled(material.Box)({
|
|
|
8373
8377
|
const AddressContainer = material.styled(material.Box)({
|
|
8374
8378
|
display: 'flex',
|
|
8375
8379
|
flexDirection: 'column',
|
|
8376
|
-
height: '
|
|
8380
|
+
height: '50px',
|
|
8377
8381
|
});
|
|
8378
8382
|
const NoteText = material.styled(material.Typography)({
|
|
8379
8383
|
whiteSpace: 'nowrap',
|
|
8380
8384
|
textOverflow: 'ellipsis',
|
|
8381
8385
|
overflow: 'hidden',
|
|
8382
|
-
maxWidth: '
|
|
8386
|
+
maxWidth: '90%',
|
|
8383
8387
|
position: 'absolute',
|
|
8384
|
-
bottom:
|
|
8388
|
+
bottom: 16,
|
|
8385
8389
|
left: 40,
|
|
8386
8390
|
});
|
|
8387
8391
|
const ContactMethod = ({ icon, contactList, title, showTitle = true, }) => {
|
|
@@ -8390,8 +8394,8 @@ const ContactMethod = ({ icon, contactList, title, showTitle = true, }) => {
|
|
|
8390
8394
|
textOverflow: 'ellipsis',
|
|
8391
8395
|
overflow: 'hidden',
|
|
8392
8396
|
cursor: 'default',
|
|
8393
|
-
maxWidth: '
|
|
8394
|
-
}, children: contact.address }) }), contact.profileName && (jsxRuntimeExports.jsx(material.Typography, { variant: "body2", fontSize: 10, color: "text.disabled", sx: { marginLeft: '5px' }, children: contact.profileName }))] }), contact.note && (jsxRuntimeExports.jsx(NoteText, { variant: "body2", fontSize: 12, color: "text.secondary", children: contact.note }))] }) }, contact.id));
|
|
8397
|
+
maxWidth: '00%',
|
|
8398
|
+
}, children: contact.address }) }), contact.profileName && (jsxRuntimeExports.jsx(material.Typography, { variant: "body2", fontSize: 10, color: "text.disabled", sx: { marginLeft: '5px', marginTop: '10px' }, children: contact.profileName }))] }), contact.note && (jsxRuntimeExports.jsx(NoteText, { variant: "body2", fontSize: 12, color: "text.secondary", children: contact.note }))] }) }, contact.id));
|
|
8395
8399
|
return (jsxRuntimeExports.jsxs(Container$1, { children: [showTitle && (jsxRuntimeExports.jsx(TitleBox, { children: jsxRuntimeExports.jsx(material.Typography, { variant: "subtitle1", fontWeight: "bold", gutterBottom: true, mt: 2, children: title }) })), contactList?.map(renderContactInfo)] }));
|
|
8396
8400
|
};
|
|
8397
8401
|
|
|
@@ -14240,18 +14244,19 @@ const Properties = ({ properties, title }) => {
|
|
|
14240
14244
|
return (jsxRuntimeExports.jsxs(Container, { children: [jsxRuntimeExports.jsx(SectionTitle$1, { fontWeight: "bold", gutterBottom: true, mt: 2, variant: "subtitle1", children: title }), properties?.map((property, i) => property.value.length > 0 && (jsxRuntimeExports.jsxs(PropertyItem, { children: [jsxRuntimeExports.jsx(PropertyIcon, {}), jsxRuntimeExports.jsxs(PropertyText, { children: [getPropertyTitle(property.nameKey), ":", ' ', formatPropertyValue(property.value, property.type)] })] }, i)))] }));
|
|
14241
14245
|
};
|
|
14242
14246
|
|
|
14243
|
-
const PopupContainer = material.styled(material.Box)({
|
|
14244
|
-
|
|
14247
|
+
const PopupContainer = material.styled(material.Box)(({ theme }) => ({
|
|
14248
|
+
//@ts-ignore
|
|
14249
|
+
backgroundColor: theme.palette.background.panel,
|
|
14245
14250
|
boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.1)',
|
|
14246
14251
|
borderRadius: '8px',
|
|
14247
14252
|
width: 300,
|
|
14248
|
-
maxHeight: '
|
|
14253
|
+
maxHeight: 'calc(100vh - 500px)',
|
|
14249
14254
|
overflowY: 'auto',
|
|
14250
14255
|
transition: 'opacity 0.3s ease, transform 0.3s ease',
|
|
14251
14256
|
padding: '8px',
|
|
14252
14257
|
zIndex: 1300,
|
|
14253
14258
|
'&::-webkit-scrollbar': {
|
|
14254
|
-
width:
|
|
14259
|
+
width: 5,
|
|
14255
14260
|
},
|
|
14256
14261
|
'&::-webkit-scrollbar-track': {
|
|
14257
14262
|
background: '#E0E0E0',
|
|
@@ -14265,7 +14270,7 @@ const PopupContainer = material.styled(material.Box)({
|
|
|
14265
14270
|
'&::-webkit-scrollbar-thumb:hover': {
|
|
14266
14271
|
background: '#616161',
|
|
14267
14272
|
},
|
|
14268
|
-
});
|
|
14273
|
+
}));
|
|
14269
14274
|
const SectionTitle = material.styled(material.Typography)({
|
|
14270
14275
|
fontWeight: 'bold',
|
|
14271
14276
|
marginBottom: '8px',
|
|
@@ -14275,10 +14280,11 @@ const SectionTitle = material.styled(material.Typography)({
|
|
|
14275
14280
|
const TagContainer = material.styled(material.Box)({
|
|
14276
14281
|
marginBottom: 16,
|
|
14277
14282
|
});
|
|
14278
|
-
const StyledChip = material.styled(material.Chip)({
|
|
14283
|
+
const StyledChip = material.styled(material.Chip)(({ theme }) => ({
|
|
14279
14284
|
marginRight: 8,
|
|
14280
14285
|
marginBottom: 8,
|
|
14281
|
-
}
|
|
14286
|
+
backgroundColor: `${theme.palette.primary.main}b3`
|
|
14287
|
+
}));
|
|
14282
14288
|
const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts = () => { }, t = (key) => ({
|
|
14283
14289
|
labels: 'Etiquetas',
|
|
14284
14290
|
phone: 'Teléfono',
|