mozrest-sdk-react-dev 0.2.86 → 0.2.87

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/mozrest-sdk.es.js CHANGED
@@ -6493,6 +6493,7 @@ const REVIEWS_DESC = "Get an instant email when you receive a negative review so
6493
6493
  const REVIEWSREPORT_DESC = "Get a daily report by email to help you keep track of all your activity.";
6494
6494
  const StartDate = "Start date";
6495
6495
  const EndDate = "End date";
6496
+ const REFERENCE = "Reference";
6496
6497
  var en = {
6497
6498
  errors,
6498
6499
  SPECIALCLOSINGDATES,
@@ -6873,7 +6874,8 @@ var en = {
6873
6874
  REVIEWS_DESC,
6874
6875
  REVIEWSREPORT_DESC,
6875
6876
  StartDate,
6876
- EndDate
6877
+ EndDate,
6878
+ REFERENCE
6877
6879
  };
6878
6880
  instance.use(initReactI18next).init({
6879
6881
  resources: {
@@ -103100,50 +103102,52 @@ const ReservationsAnalytics = ({ userEmail, userFullName }) => {
103100
103102
  totalDays
103101
103103
  }));
103102
103104
  };
103103
- const mainConatiner$2 = "_mainConatiner_8120h_48";
103104
- const mainTableContainer = "_mainTableContainer_8120h_58";
103105
- const mainSidebarContainer = "_mainSidebarContainer_8120h_66";
103106
- const sidebarCloseIcon = "_sidebarCloseIcon_8120h_87";
103107
- const headerContainer = "_headerContainer_8120h_95";
103108
- const searchContainer = "_searchContainer_8120h_101";
103109
- const buttonList = "_buttonList_8120h_109";
103110
- const buttonItem = "_buttonItem_8120h_114";
103111
- const addReservationButton = "_addReservationButton_8120h_123";
103112
- const tableTopHeader = "_tableTopHeader_8120h_132";
103113
- const tableTopHeaderContent = "_tableTopHeaderContent_8120h_146";
103114
- const tableTopHeaderContentText = "_tableTopHeaderContentText_8120h_153";
103115
- const tableRowContainer = "_tableRowContainer_8120h_162";
103116
- const tableRowCard = "_tableRowCard_8120h_168";
103117
- const fadeInX = "_fadeInX_8120h_1";
103118
- const noData = "_noData_8120h_176";
103119
- const tableRowHour = "_tableRowHour_8120h_183";
103120
- const tableRowHourText = "_tableRowHourText_8120h_199";
103121
- const hours = "_hours_8120h_207";
103122
- const tableRowContent = "_tableRowContent_8120h_213";
103123
- const rowImage = "_rowImage_8120h_228";
103124
- const rowContactContainer = "_rowContactContainer_8120h_242";
103125
- const rowContactText = "_rowContactText_8120h_254";
103126
- const rowContactPhone = "_rowContactPhone_8120h_260";
103127
- const rowSectionContainer = "_rowSectionContainer_8120h_267";
103128
- const rowSection = "_rowSection_8120h_267";
103129
- const rowSectionText = "_rowSectionText_8120h_280";
103130
- const rowSectionSecText = "_rowSectionSecText_8120h_286";
103131
- const rowActionButton = "_rowActionButton_8120h_293";
103132
- const bookingInfoContainer = "_bookingInfoContainer_8120h_305";
103133
- const bookingInfoCardRow = "_bookingInfoCardRow_8120h_309";
103134
- const bookingInfoCardContainer = "_bookingInfoCardContainer_8120h_317";
103135
- const bookingInfoCard = "_bookingInfoCard_8120h_309";
103136
- const bookingInfoCardContent = "_bookingInfoCardContent_8120h_329";
103137
- const bookingInfoCardTitle = "_bookingInfoCardTitle_8120h_335";
103138
- const bookingInfoCardText = "_bookingInfoCardText_8120h_338";
103105
+ const mainConatiner$2 = "_mainConatiner_19oqa_48";
103106
+ const mainTableContainer = "_mainTableContainer_19oqa_58";
103107
+ const mainSidebarContainer = "_mainSidebarContainer_19oqa_66";
103108
+ const headerReferece = "_headerReferece_19oqa_76";
103109
+ const sidebarCloseIcon = "_sidebarCloseIcon_19oqa_79";
103110
+ const headerContainer = "_headerContainer_19oqa_131";
103111
+ const searchContainer = "_searchContainer_19oqa_137";
103112
+ const buttonList = "_buttonList_19oqa_145";
103113
+ const buttonItem = "_buttonItem_19oqa_150";
103114
+ const addReservationButton = "_addReservationButton_19oqa_159";
103115
+ const tableTopHeader = "_tableTopHeader_19oqa_168";
103116
+ const tableTopHeaderContent = "_tableTopHeaderContent_19oqa_182";
103117
+ const tableTopHeaderContentText = "_tableTopHeaderContentText_19oqa_189";
103118
+ const tableRowContainer = "_tableRowContainer_19oqa_198";
103119
+ const tableRowCard = "_tableRowCard_19oqa_204";
103120
+ const fadeInX = "_fadeInX_19oqa_1";
103121
+ const noData = "_noData_19oqa_212";
103122
+ const tableRowHour = "_tableRowHour_19oqa_219";
103123
+ const tableRowHourText = "_tableRowHourText_19oqa_235";
103124
+ const hours = "_hours_19oqa_243";
103125
+ const tableRowContent = "_tableRowContent_19oqa_249";
103126
+ const rowImage = "_rowImage_19oqa_264";
103127
+ const rowContactContainer = "_rowContactContainer_19oqa_278";
103128
+ const rowContactText = "_rowContactText_19oqa_290";
103129
+ const rowContactPhone = "_rowContactPhone_19oqa_296";
103130
+ const rowSectionContainer = "_rowSectionContainer_19oqa_303";
103131
+ const rowSection = "_rowSection_19oqa_303";
103132
+ const rowSectionText = "_rowSectionText_19oqa_316";
103133
+ const rowSectionSecText = "_rowSectionSecText_19oqa_322";
103134
+ const rowActionButton = "_rowActionButton_19oqa_329";
103135
+ const bookingInfoContainer = "_bookingInfoContainer_19oqa_341";
103136
+ const bookingInfoCardRow = "_bookingInfoCardRow_19oqa_345";
103137
+ const bookingInfoCardContainer = "_bookingInfoCardContainer_19oqa_353";
103138
+ const bookingInfoCard = "_bookingInfoCard_19oqa_345";
103139
+ const bookingInfoCardContent = "_bookingInfoCardContent_19oqa_365";
103140
+ const bookingInfoCardTitle = "_bookingInfoCardTitle_19oqa_371";
103141
+ const bookingInfoCardText = "_bookingInfoCardText_19oqa_374";
103139
103142
  var styles$l = {
103140
103143
  mainConatiner: mainConatiner$2,
103141
103144
  mainTableContainer,
103142
103145
  mainSidebarContainer,
103143
- "mainSidebarContainer--open": "_mainSidebarContainer--open_8120h_76",
103144
- "mainSidebarContainer--close": "_mainSidebarContainer--close_8120h_82",
103146
+ headerReferece,
103145
103147
  sidebarCloseIcon,
103146
- "sidebarCloseIcon--show": "_sidebarCloseIcon--show_8120h_90",
103148
+ "mainSidebarContainer--open": "_mainSidebarContainer--open_19oqa_87",
103149
+ "mainSidebarContainer--close": "_mainSidebarContainer--close_19oqa_93",
103150
+ "sidebarCloseIcon--show": "_sidebarCloseIcon--show_19oqa_101",
103147
103151
  headerContainer,
103148
103152
  searchContainer,
103149
103153
  buttonList,
@@ -106703,22 +106707,22 @@ const Label = ({
106703
106707
  }, tooltip2));
106704
106708
  return isHidden2 ? /* @__PURE__ */ React__default.createElement(SrOnly, null, label2) : label2;
106705
106709
  };
106706
- const inputWrapper = "_inputWrapper_1v87g_1";
106707
- const input$2 = "_input_1v87g_1";
106708
- const inputIcon = "_inputIcon_1v87g_73";
106710
+ const inputWrapper = "_inputWrapper_13nfd_1";
106711
+ const input$2 = "_input_13nfd_1";
106712
+ const inputIcon = "_inputIcon_13nfd_74";
106709
106713
  var styles$e = {
106710
106714
  inputWrapper,
106711
106715
  input: input$2,
106712
- "input--r-md": "_input--r-md_1v87g_35",
106713
- "input--r-sm": "_input--r-sm_1v87g_40",
106714
- "input--with-icon-left": "_input--with-icon-left_1v87g_45",
106715
- "input--with-icon-right": "_input--with-icon-right_1v87g_48",
106716
- "input--filled": "_input--filled_1v87g_51",
106717
- "input--borderless": "_input--borderless_1v87g_54",
106718
- "input--rounded": "_input--rounded_1v87g_58",
106716
+ "input--r-md": "_input--r-md_13nfd_36",
106717
+ "input--r-sm": "_input--r-sm_13nfd_41",
106718
+ "input--with-icon-left": "_input--with-icon-left_13nfd_46",
106719
+ "input--with-icon-right": "_input--with-icon-right_13nfd_49",
106720
+ "input--filled": "_input--filled_13nfd_52",
106721
+ "input--borderless": "_input--borderless_13nfd_55",
106722
+ "input--rounded": "_input--rounded_13nfd_59",
106719
106723
  inputIcon,
106720
- "inputIcon--p-left": "_inputIcon--p-left_1v87g_82",
106721
- "inputIcon--p-right": "_inputIcon--p-right_1v87g_85"
106724
+ "inputIcon--p-left": "_inputIcon--p-left_13nfd_83",
106725
+ "inputIcon--p-right": "_inputIcon--p-right_13nfd_86"
106722
106726
  };
106723
106727
  const Input2 = ({
106724
106728
  id: id2,
@@ -107733,7 +107737,7 @@ const ActionButtons = ({ onSubmit, venueId }) => {
107733
107737
  setAction("no-show");
107734
107738
  setShowConfrimationModal(true);
107735
107739
  }
107736
- }, t2("no-show"))), (selectedBooking == null ? void 0 : selectedBooking.status) != "canceled" && /* @__PURE__ */ React__default.createElement(Button, {
107740
+ }, t2("NOSHOW"))), (selectedBooking == null ? void 0 : selectedBooking.status) != "canceled" && /* @__PURE__ */ React__default.createElement(Button, {
107737
107741
  mode: "success",
107738
107742
  type: "submit",
107739
107743
  icon: "check",
@@ -107827,7 +107831,9 @@ const Header = () => {
107827
107831
  }
107828
107832
  })), /* @__PURE__ */ React__default.createElement("hr", {
107829
107833
  style: { width: "100%", marginTop: 15 }
107830
- }));
107834
+ }), selectedBooking && (selectedBooking == null ? void 0 : selectedBooking.id) && /* @__PURE__ */ React__default.createElement("p", {
107835
+ className: styles$l.headerReferece
107836
+ }, t2("REFERENCE"), ": ", (selectedBooking == null ? void 0 : selectedBooking.id) ? selectedBooking.id.slice(-8) : ""));
107831
107837
  };
107832
107838
  const index$a = ({ filtersData, venueId }) => {
107833
107839
  const { t: t2 } = useTranslation();
@@ -107880,7 +107886,7 @@ const index$a = ({ filtersData, venueId }) => {
107880
107886
  phone: create$2().nullable().notRequired().test(
107881
107887
  "is-valid-phone",
107882
107888
  t2("errors.phone"),
107883
- (value2) => !value2 || new RegExp(/^\+?[1-9]\d{8,14}$/).test(value2)
107889
+ (value2) => !value2 || new RegExp(/^\+34[67]\d{8}$/).test(value2)
107884
107890
  ),
107885
107891
  notes: create$2()
107886
107892
  });
@@ -108002,7 +108008,7 @@ const index$a = ({ filtersData, venueId }) => {
108002
108008
  }
108003
108009
  }, [filtersData]);
108004
108010
  useEffect(() => {
108005
- var _a2, _b;
108011
+ var _a2, _b, _c;
108006
108012
  if (selectedBooking) {
108007
108013
  const formattedTime = new Date(selectedBooking.date).toLocaleTimeString([], {
108008
108014
  ...(filtersData == null ? void 0 : filtersData.timeZone) ? {
@@ -108022,7 +108028,7 @@ const index$a = ({ filtersData, venueId }) => {
108022
108028
  lastName: selectedBooking.contact.lastname,
108023
108029
  email: selectedBooking.contact.email,
108024
108030
  phone: selectedBooking.contact.telephone,
108025
- notes: selectedBooking == null ? void 0 : selectedBooking.notes
108031
+ notes: (_c = selectedBooking == null ? void 0 : selectedBooking.notes) != null ? _c : ""
108026
108032
  });
108027
108033
  } else {
108028
108034
  reset(defaultValue2);
@@ -108156,7 +108162,7 @@ const index$a = ({ filtersData, venueId }) => {
108156
108162
  id: "phone",
108157
108163
  name: "phone",
108158
108164
  label: "Phone",
108159
- placeholder: "Phone ...",
108165
+ placeholder: "+12345678999",
108160
108166
  radius: "md",
108161
108167
  filled: true
108162
108168
  })), /* @__PURE__ */ React__default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {