allaw-ui 1.0.60 → 1.0.62

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.
@@ -99,12 +99,12 @@ var Datepicker = function (_a) {
99
99
  };
100
100
  }, [isOpen]);
101
101
  var handleDateChange = function (date) {
102
- console.log("Avant l'appel à onChange :", date);
102
+ // console.log("Avant l'appel à onChange :", date);
103
103
  setSelectedDate(date || undefined);
104
104
  if (date) {
105
105
  onChange === null || onChange === void 0 ? void 0 : onChange(date);
106
106
  }
107
- console.log("Après l'appel à onChange :", date);
107
+ // console.log("Après l'appel à onChange :", date);
108
108
  setIsOpen(false);
109
109
  };
110
110
  var handleClickOutside = function (event) {
@@ -366,9 +366,9 @@
366
366
  }
367
367
 
368
368
  /* Styles compacts */
369
- .appointment-slot.compact {
369
+ /* .appointment-slot.compact {
370
370
  max-width: 280px;
371
- }
371
+ } */
372
372
 
373
373
  .appointment-slot.compact .appointment-time {
374
374
  font-size: 14px;
@@ -5,8 +5,9 @@ export interface ContactCardProps {
5
5
  status: string;
6
6
  phone: string;
7
7
  email: string;
8
- isEditable: boolean;
9
- onEdit: () => void;
8
+ isEditable?: boolean;
9
+ onEdit?: () => void;
10
+ onClick?: () => void;
10
11
  gender: "male" | "female";
11
12
  actionIconName?: string;
12
13
  }
@@ -3,10 +3,10 @@ import "./ContactCard.css";
3
3
  import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
4
4
  import IconButton from "../../atoms/buttons/IconButton";
5
5
  var ContactCard = function (_a) {
6
- var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b;
6
+ var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, onClick = _a.onClick, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b;
7
7
  var isPhoneEmpty = !phone || phone.trim() === "";
8
8
  var isEmailEmpty = !email || email.trim() === "";
9
- return (React.createElement("div", { className: "contact-card" },
9
+ return (React.createElement("div", { className: "contact-card", onClick: function () { return onClick && onClick(); }, style: { cursor: "pointer" } },
10
10
  React.createElement("div", { className: "content-container" },
11
11
  React.createElement("div", { className: "name-tag-container" },
12
12
  React.createElement("h3", { className: "contact-name" }, name),
@@ -25,6 +25,8 @@ var ContactCard = function (_a) {
25
25
  React.createElement("i", { className: "allaw-icon-mail info-icon ".concat(isEmailEmpty ? "info-icon-disabled" : "") }),
26
26
  React.createElement("span", { className: "info-text contact ".concat(isEmailEmpty ? "empty-field" : "") }, isEmailEmpty ? "Non renseigné" : email))))),
27
27
  isEditable && (React.createElement("div", { className: "action-button-container" },
28
- React.createElement(IconButton, { style: "largeFilled", iconName: actionIconName, onClick: onEdit })))));
28
+ React.createElement(IconButton, { style: "largeFilled", iconName: actionIconName, onClick: onEdit }))),
29
+ onClick && (React.createElement("div", { className: "action-button-container" },
30
+ React.createElement("i", { className: "allaw-icon-arrow-right" })))));
29
31
  };
30
32
  export default ContactCard;
@@ -4,8 +4,8 @@ import "../../../styles/global.css";
4
4
  import Paragraph from "../../atoms/typography/Paragraph";
5
5
  import Datepicker from "../../atoms/datepickers/Datepicker";
6
6
  var DatepickerForm = function (_a) {
7
+ // console.log("Valeur reçue dans DatepickerForm :", value);
7
8
  var value = _a.value, onChange = _a.onChange, _b = _a.placeholder, placeholder = _b === void 0 ? "Sélectionner une date" : _b, text = _a.text, _c = _a.variant, variant = _c === void 0 ? "medium" : _c, _d = _a.color, color = _d === void 0 ? "noir" : _d, _e = _a.yearDropdownItemNumber, yearDropdownItemNumber = _e === void 0 ? 10 : _e, maxDaysInPast = _a.maxDaysInPast, minDate = _a.minDate;
8
- console.log("Valeur reçue dans DatepickerForm :", value);
9
9
  return (React.createElement("div", { className: "datepicker-form-wrapper" },
10
10
  text && React.createElement(Paragraph, { text: text, variant: variant, color: color }),
11
11
  React.createElement(Datepicker, { value: value || undefined, onChange: onChange, placeholder: placeholder, yearDropdownItemNumber: yearDropdownItemNumber, maxDaysInPast: maxDaysInPast, minDate: minDate })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",