@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.
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IContact } from '@trii/types/dist/Contacts';
3
+ import { SxProps, Theme } from '@mui/material';
3
4
  export interface ContactInfoPopupProps {
4
5
  open: boolean;
5
6
  anchorEl: HTMLElement | null;
@@ -8,6 +9,7 @@ export interface ContactInfoPopupProps {
8
9
  contactData?: IContact;
9
10
  avatarImgUrl?: string;
10
11
  handleNavigateToContacts?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12
+ sx?: SxProps<Theme>;
11
13
  }
12
14
  declare const ContactInfoPopup: ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts, t, }: ContactInfoPopupProps) => import("react/jsx-runtime").JSX.Element;
13
15
  export default ContactInfoPopup;
package/dist/esm/index.js CHANGED
@@ -8276,13 +8276,16 @@ var WhatsApp = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
8276
8276
  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"
8277
8277
  }), 'WhatsApp');
8278
8278
 
8279
- const ButtonsContainer = styled$3(Box)({
8279
+ const ButtonsContainer = styled$3(Box)(({ theme }) => ({
8280
8280
  position: 'absolute',
8281
8281
  top: 8,
8282
8282
  right: 8,
8283
8283
  display: 'flex',
8284
8284
  gap: 4,
8285
- });
8285
+ zIndex: 1,
8286
+ //@ts-ignore
8287
+ backgroundColor: theme.palette.background.panel,
8288
+ }));
8286
8289
  const SmallIconButton = styled$3(IconButton)({
8287
8290
  padding: 4,
8288
8291
  });
@@ -14220,8 +14223,9 @@ const Properties = ({ properties, title }) => {
14220
14223
  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)))] }));
14221
14224
  };
14222
14225
 
14223
- const PopupContainer = styled$3(Box)({
14224
- backgroundColor: 'white',
14226
+ const PopupContainer = styled$3(Box)(({ theme }) => ({
14227
+ //@ts-ignore
14228
+ backgroundColor: theme.palette.background.panel,
14225
14229
  boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.1)',
14226
14230
  borderRadius: '8px',
14227
14231
  width: 300,
@@ -14231,7 +14235,7 @@ const PopupContainer = styled$3(Box)({
14231
14235
  padding: '8px',
14232
14236
  zIndex: 1300,
14233
14237
  '&::-webkit-scrollbar': {
14234
- width: 8,
14238
+ width: 5,
14235
14239
  },
14236
14240
  '&::-webkit-scrollbar-track': {
14237
14241
  background: '#E0E0E0',
@@ -14245,7 +14249,7 @@ const PopupContainer = styled$3(Box)({
14245
14249
  '&::-webkit-scrollbar-thumb:hover': {
14246
14250
  background: '#616161',
14247
14251
  },
14248
- });
14252
+ }));
14249
14253
  const SectionTitle = styled$3(Typography)({
14250
14254
  fontWeight: 'bold',
14251
14255
  marginBottom: '8px',
@@ -14255,10 +14259,11 @@ const SectionTitle = styled$3(Typography)({
14255
14259
  const TagContainer = styled$3(Box)({
14256
14260
  marginBottom: 16,
14257
14261
  });
14258
- const StyledChip = styled$3(Chip)({
14262
+ const StyledChip = styled$3(Chip)(({ theme }) => ({
14259
14263
  marginRight: 8,
14260
14264
  marginBottom: 8,
14261
- });
14265
+ backgroundColor: `${theme.palette.primary.main}b3`
14266
+ }));
14262
14267
  const ContactInfoPopup = ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts = () => { }, t = (key) => ({
14263
14268
  labels: 'Etiquetas',
14264
14269
  phone: 'Teléfono',