pcm-shared-components 2.0.109 → 2.0.111

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.
@@ -17,7 +17,8 @@ const OpenEventCardDialog = props => {
17
17
  event_date,
18
18
  pictures,
19
19
  open,
20
- closeDialog
20
+ closeDialog,
21
+ view_all_images_str
21
22
  } = props;
22
23
  const [openEventViewAllImageDialog, setOpenEventViewAllImageDialog] = useState(false);
23
24
  const handleOnClose = () => {
@@ -45,7 +46,8 @@ const OpenEventCardDialog = props => {
45
46
  }, /*#__PURE__*/React.createElement(HorizontalImageTile, {
46
47
  pictures: pictures,
47
48
  event_date: event_date,
48
- onImageClick: handleOnImageClick
49
+ onImageClick: handleOnImageClick,
50
+ view_all_images_str: view_all_images_str
49
51
  }), /*#__PURE__*/React.createElement("div", {
50
52
  className: "flex flex-col m-6"
51
53
  }, /*#__PURE__*/React.createElement("div", {
@@ -75,7 +77,8 @@ OpenEventCardDialog.defaultProps = {
75
77
  event_date: moment().format('YYYY-MM-DD'),
76
78
  pictures: [],
77
79
  open: false,
78
- closeDialog: () => {}
80
+ closeDialog: () => {},
81
+ view_all_images_str: "View All Images"
79
82
  };
80
83
  OpenEventCardDialog.propTypes = {
81
84
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
@@ -88,6 +91,7 @@ OpenEventCardDialog.propTypes = {
88
91
  pictures: PropTypes.array.isRequired,
89
92
  type: PropTypes.string,
90
93
  open: PropTypes.bool,
91
- closeDialog: PropTypes.func
94
+ closeDialog: PropTypes.func,
95
+ view_all_images_str: PropTypes.string
92
96
  };
93
97
  export default OpenEventCardDialog;
@@ -6,7 +6,8 @@ import Button from '@mui/material/Button';
6
6
  import OpenEventCardDialog from './components/OpenEventCardDialog';
7
7
  import FancyDate from '../../Date/FancyDate';
8
8
  export const EventCard = ({
9
- event
9
+ event,
10
+ view_all_images_str
10
11
  }) => {
11
12
  const pictures = event.pictures || [];
12
13
  const [currentImage, setCurrentImage] = useState(0);
@@ -83,7 +84,8 @@ export const EventCard = ({
83
84
  className: "inline-block normal-case text-16 font-800 text-white overflow-ellipsis overflow-hidden whitespace-nowrap"
84
85
  }, moment(event.event_date).format('dddd MMMM Do'))))), /*#__PURE__*/React.createElement(OpenEventCardDialog, _extends({}, event, {
85
86
  open: openEventCardDialog,
86
- closeDialog: handleCloseDialog
87
+ closeDialog: handleCloseDialog,
88
+ view_all_images_str: view_all_images_str
87
89
  })));
88
90
  };
89
91
  EventCard.propTypes = {
@@ -93,6 +95,7 @@ EventCard.propTypes = {
93
95
  pictures: PropTypes.arrayOf(PropTypes.string),
94
96
  event_date: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]).isRequired,
95
97
  state_id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
96
- })
98
+ }),
99
+ view_all_images_str: PropTypes.string
97
100
  };
98
101
  export default EventCard;
@@ -10,7 +10,7 @@ export const HorizontalImageTile = ({
10
10
  pictures,
11
11
  event_date,
12
12
  onImageClick,
13
- view_all_images,
13
+ view_all_images_str,
14
14
  theme
15
15
  }) => {
16
16
  const compTheme = theme ? theme : useTheme();
@@ -86,7 +86,7 @@ export const HorizontalImageTile = ({
86
86
  variant: "outlined",
87
87
  className: 'bg-white hover:bg-grey-300',
88
88
  startIcon: /*#__PURE__*/React.createElement(AppsIcon, null)
89
- }, view_all_images)));
89
+ }, view_all_images_str)));
90
90
  };
91
91
  return /*#__PURE__*/React.createElement(ThemeProvider, {
92
92
  theme: defaultTheme
@@ -105,6 +105,6 @@ HorizontalImageTile.propTypes = {
105
105
  pictures: PropTypes.arrayOf(PropTypes.string),
106
106
  onImageClick: PropTypes.func,
107
107
  theme: PropTypes.object,
108
- view_all_images: PropTypes.string
108
+ view_all_images_str: PropTypes.string
109
109
  };
110
110
  export default HorizontalImageTile;
@@ -482,6 +482,8 @@
482
482
  "none": "None",
483
483
  "not_active": "Not Active",
484
484
  "not_connected": "Not Connected",
485
+ "not_visible_on_booking_page": "Not Visible on Booking Page",
486
+ "not_visible_on_event_page": "Not Visible on Event Page",
485
487
  "not_visible_online": "Not Visible Online",
486
488
  "notes": "Notes",
487
489
  "number_of_items": "Number of Items",
@@ -667,6 +669,7 @@
667
669
  "view_all_images": "View All Images",
668
670
  "view_all_plans": "View all plans",
669
671
  "visible_on_booking_page": "Visible on Booking Page",
672
+ "visible_on_event_page": "Visible on Event Page",
670
673
  "visible_online": "Visible Online",
671
674
  "voided_amount": "Voided Amount",
672
675
  "voided_by": "Voided By",
@@ -482,6 +482,8 @@
482
482
  "none": "Ninguna",
483
483
  "not_active": "No activo",
484
484
  "not_connected": "No conectado",
485
+ "not_visible_on_booking_page": "No visible en la página de reserva",
486
+ "not_visible_on_event_page": "No visible en la página del evento",
485
487
  "not_visible_online": "No visible en línea",
486
488
  "notes": "Notas",
487
489
  "number_of_items": "Número de items",
@@ -667,6 +669,7 @@
667
669
  "view_all_images": "Ver todas las imágenes",
668
670
  "view_all_plans": "Ver todos los planes",
669
671
  "visible_on_booking_page": "Visible en la página de reservas",
672
+ "visible_on_event_page": "Visible en la página del evento",
670
673
  "visible_online": "Visibles en línea",
671
674
  "voided_amount": "Importe anulado",
672
675
  "voided_by": "anulado por",
@@ -482,6 +482,8 @@
482
482
  "none": "Aucun",
483
483
  "not_active": "Pas actif",
484
484
  "not_connected": "Pas connecté",
485
+ "not_visible_on_booking_page": "Non visible sur la page de réservation",
486
+ "not_visible_on_event_page": "Non visible sur la page de l'événement",
485
487
  "not_visible_online": "Non visible en ligne",
486
488
  "notes": "Remarques",
487
489
  "number_of_items": "Nombre d'Articles",
@@ -667,6 +669,7 @@
667
669
  "view_all_images": "Voir toutes les images",
668
670
  "view_all_plans": "Voir tous les forfaits",
669
671
  "visible_on_booking_page": "Visible sur la page de réservation",
672
+ "visible_on_event_page": "Visible sur la page de l'événement",
670
673
  "visible_online": "Visible en ligne",
671
674
  "voided_amount": "Montant annulé",
672
675
  "voided_by": "Annulé par",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.109",
3
+ "version": "2.0.111",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {