@trii/components 2.0.3 → 2.0.5

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 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
  });
@@ -14240,8 +14243,9 @@ const Properties = ({ properties, title }) => {
14240
14243
  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
14244
  };
14242
14245
 
14243
- const PopupContainer = material.styled(material.Box)({
14244
- backgroundColor: 'white',
14246
+ const PopupContainer = material.styled(material.Box)(({ theme }) => ({
14247
+ //@ts-ignore
14248
+ backgroundColor: theme.palette.background.panel,
14245
14249
  boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.1)',
14246
14250
  borderRadius: '8px',
14247
14251
  width: 300,
@@ -14251,7 +14255,7 @@ const PopupContainer = material.styled(material.Box)({
14251
14255
  padding: '8px',
14252
14256
  zIndex: 1300,
14253
14257
  '&::-webkit-scrollbar': {
14254
- width: 8,
14258
+ width: 5,
14255
14259
  },
14256
14260
  '&::-webkit-scrollbar-track': {
14257
14261
  background: '#E0E0E0',
@@ -14265,7 +14269,7 @@ const PopupContainer = material.styled(material.Box)({
14265
14269
  '&::-webkit-scrollbar-thumb:hover': {
14266
14270
  background: '#616161',
14267
14271
  },
14268
- });
14272
+ }));
14269
14273
  const SectionTitle = material.styled(material.Typography)({
14270
14274
  fontWeight: 'bold',
14271
14275
  marginBottom: '8px',
@@ -14275,10 +14279,11 @@ const SectionTitle = material.styled(material.Typography)({
14275
14279
  const TagContainer = material.styled(material.Box)({
14276
14280
  marginBottom: 16,
14277
14281
  });
14278
- const StyledChip = material.styled(material.Chip)({
14282
+ const StyledChip = material.styled(material.Chip)(({ theme }) => ({
14279
14283
  marginRight: 8,
14280
14284
  marginBottom: 8,
14281
- });
14285
+ backgroundColor: `${theme.palette.primary.main}b3`
14286
+ }));
14282
14287
  const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts = () => { }, t = (key) => ({
14283
14288
  labels: 'Etiquetas',
14284
14289
  phone: 'Teléfono',