allaw-ui 1.0.44 → 1.0.46

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  .SearchBar {
4
4
  display: flex;
5
- width: 339px;
5
+ width: 100%;
6
6
  height: 45px;
7
7
  padding: 0px 6px 0px 14px;
8
8
  align-items: center;
@@ -9,7 +9,9 @@
9
9
  border-radius: 16px;
10
10
  border: 1px solid var(--Primary-Gris-de-fond, #e6edf5);
11
11
  background: var(--Primary-Blanc, #fff);
12
- transition: border-color 0.2s ease;
12
+ transition:
13
+ border-color 0.2s ease,
14
+ border-width 0.2s ease;
13
15
  }
14
16
 
15
17
  .client-link-card:hover {
@@ -34,7 +36,7 @@
34
36
 
35
37
  .client-link-card-right--centered .client-link-card-arrow {
36
38
  position: absolute;
37
- top: 50%;
39
+ top: 55%;
38
40
  transform: translateY(-50%);
39
41
  }
40
42
 
@@ -56,3 +58,8 @@
56
58
  .client-link-card--arrow-on-hover:hover .client-link-card-arrow {
57
59
  opacity: 1;
58
60
  }
61
+
62
+ .folderCreation-step1-client-search-result-item--active .client-link-card {
63
+ border-width: 2px;
64
+ border-color: var(--Primary-Bleu, #25beeb);
65
+ }
@@ -69,29 +69,32 @@ var Stepper = function (_a) {
69
69
  return __generator(this, function (_a) {
70
70
  switch (_a.label) {
71
71
  case 0:
72
+ console.log("[Stepper.handleNext] Starting with step:", step);
72
73
  currentPrimaryButton = primaryButton[step - 1];
73
- if (currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.onPrimaryButtonClick) {
74
- currentPrimaryButton.onPrimaryButtonClick(step);
75
- }
76
- if (!validateStep) return [3 /*break*/, 2];
77
- return [4 /*yield*/, validateStep(step)];
74
+ if (!(currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.onPrimaryButtonClick)) return [3 /*break*/, 2];
75
+ console.log("[Stepper.handleNext] Calling onPrimaryButtonClick");
76
+ return [4 /*yield*/, currentPrimaryButton.onPrimaryButtonClick(step)];
78
77
  case 1:
78
+ _a.sent();
79
+ _a.label = 2;
80
+ case 2:
81
+ if (!validateStep) return [3 /*break*/, 4];
82
+ console.log("[Stepper.handleNext] Validating step");
83
+ return [4 /*yield*/, validateStep(step)];
84
+ case 3:
79
85
  isValid = _a.sent();
86
+ console.log("[Stepper.handleNext] Validation result:", isValid);
80
87
  if (!isValid) {
88
+ console.log("[Stepper.handleNext] Validation failed, stopping");
81
89
  return [2 /*return*/];
82
90
  }
83
- _a.label = 2;
84
- case 2:
85
- if (step < steps) {
86
- setStep(step + 1);
87
- }
88
- else if (step === steps && onClose) {
89
- onClose();
90
- }
91
+ _a.label = 4;
92
+ case 4:
93
+ console.log("[Stepper.handleNext] Step validation successful");
91
94
  return [2 /*return*/];
92
95
  }
93
96
  });
94
- }); }, [step, steps, validateStep, primaryButton, onClose]);
97
+ }); }, [step, validateStep, primaryButton]);
95
98
  var handlePrevious = useCallback(function () {
96
99
  if (step > 1) {
97
100
  setStep(step - 1);
@@ -116,6 +119,13 @@ var Stepper = function (_a) {
116
119
  React.createElement(SecondaryButton, { fullWidth: true, label: currentSecondaryButton.label, startIcon: currentSecondaryButton.startIconName ? true : undefined, endIcon: currentSecondaryButton.endIconName ? true : undefined, startIconName: currentSecondaryButton.startIconName, endIconName: currentSecondaryButton.endIconName, onClick: function () { var _a; return (_a = currentSecondaryButton.onSecondaryButtonClick) === null || _a === void 0 ? void 0 : _a.call(currentSecondaryButton, step); } }))),
117
120
  (currentPrimaryButton === null || currentPrimaryButton === void 0 ? void 0 : currentPrimaryButton.show) && (React.createElement("div", { className: "stepper-button-container primary-button-container" },
118
121
  React.createElement(PrimaryButton, { fullWidth: true, label: currentPrimaryButton.label, startIcon: currentPrimaryButton.startIconName ? true : undefined, endIcon: currentPrimaryButton.endIconName ? true : undefined, startIconName: currentPrimaryButton.startIconName, endIconName: currentPrimaryButton.endIconName, disabled: currentPrimaryButton.disabled, onClick: handleNext })))))));
122
+ useEffect(function () {
123
+ console.log("[Stepper] Step changed:", {
124
+ step: step,
125
+ currentStep: currentStep,
126
+ totalSteps: steps,
127
+ });
128
+ }, [step, currentStep, steps]);
119
129
  return portalContainerRef.current && isVisible
120
130
  ? ReactDOM.createPortal(stepperContent, portalContainerRef.current)
121
131
  : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",