allaw-ui 5.4.2 → 5.4.4

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.
Files changed (200) hide show
  1. package/dist/components/molecules/proSwitch/ProSwitchModal.js +0 -17
  2. package/package.json +12 -19
  3. package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -110
  4. package/dist/components/atoms/buttons/ActionButton.stories.js +0 -171
  5. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
  6. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
  7. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
  8. package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
  9. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
  10. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
  11. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
  12. package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
  13. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
  14. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
  15. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
  16. package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
  17. package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -51
  18. package/dist/components/atoms/buttons/IconButton.stories.js +0 -100
  19. package/dist/components/atoms/buttons/InboxButton.stories.d.ts +0 -68
  20. package/dist/components/atoms/buttons/InboxButton.stories.js +0 -143
  21. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -67
  22. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -168
  23. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
  24. package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
  25. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -121
  26. package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -187
  27. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
  28. package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
  29. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
  30. package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
  31. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
  32. package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
  33. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
  34. package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
  35. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -167
  36. package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -113
  37. package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
  38. package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
  39. package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
  40. package/dist/components/atoms/filter/Filter.stories.js +0 -77
  41. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -10
  42. package/dist/components/atoms/filters/SingleFilter.stories.js +0 -84
  43. package/dist/components/atoms/inputs/Input.stories.d.ts +0 -85
  44. package/dist/components/atoms/inputs/Input.stories.js +0 -169
  45. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -142
  46. package/dist/components/atoms/inputs/SearchBar.stories.js +0 -197
  47. package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
  48. package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
  49. package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
  50. package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
  51. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
  52. package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
  53. package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -38
  54. package/dist/components/atoms/radios/RadioButton.stories.js +0 -87
  55. package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
  56. package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
  57. package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
  58. package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
  59. package/dist/components/atoms/selects/Select.stories.d.ts +0 -133
  60. package/dist/components/atoms/selects/Select.stories.js +0 -299
  61. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
  62. package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
  63. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
  64. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
  65. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
  66. package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
  67. package/dist/components/atoms/tags/InlineTag.stories.d.ts +0 -109
  68. package/dist/components/atoms/tags/InlineTag.stories.js +0 -159
  69. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -99
  70. package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -160
  71. package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
  72. package/dist/components/atoms/typography/CardDate.stories.js +0 -103
  73. package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
  74. package/dist/components/atoms/typography/Heading.stories.js +0 -150
  75. package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
  76. package/dist/components/atoms/typography/Link.stories.js +0 -164
  77. package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
  78. package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
  79. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
  80. package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
  81. package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
  82. package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
  83. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
  84. package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
  85. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
  86. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
  87. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
  88. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
  89. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
  90. package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
  91. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
  92. package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
  93. package/dist/components/molecules/AiText/aiText.stories.d.ts +0 -43
  94. package/dist/components/molecules/AiText/aiText.stories.js +0 -216
  95. package/dist/components/molecules/DataStepper/Stepper.stories.d.ts +0 -8
  96. package/dist/components/molecules/DataStepper/Stepper.stories.js +0 -248
  97. package/dist/components/molecules/appointmentCard/AppointmentCard.stories.d.ts +0 -37
  98. package/dist/components/molecules/appointmentCard/AppointmentCard.stories.js +0 -106
  99. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -95
  100. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -204
  101. package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
  102. package/dist/components/molecules/banner/Banner.stories.js +0 -123
  103. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
  104. package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
  105. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
  106. package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
  107. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
  108. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
  109. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
  110. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
  111. package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
  112. package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
  113. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
  114. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
  115. package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
  116. package/dist/components/molecules/brands/Brands.stories.js +0 -66
  117. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
  118. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
  119. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
  120. package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
  121. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
  122. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
  123. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
  124. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
  125. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
  126. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
  127. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
  128. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
  129. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
  130. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
  131. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -69
  132. package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -84
  133. package/dist/components/molecules/contactCard/ContactCardEdit.stories.d.ts +0 -88
  134. package/dist/components/molecules/contactCard/ContactCardEdit.stories.js +0 -106
  135. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
  136. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
  137. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -291
  138. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -185
  139. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -72
  140. package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -108
  141. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
  142. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
  143. package/dist/components/molecules/emptyMessage/EmptyMessage.stories.d.ts +0 -75
  144. package/dist/components/molecules/emptyMessage/EmptyMessage.stories.js +0 -115
  145. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -10
  146. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -50
  147. package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -22
  148. package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -63
  149. package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
  150. package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
  151. package/dist/components/molecules/fileCard/FileCard.stories.d.ts +0 -42
  152. package/dist/components/molecules/fileCard/FileCard.stories.js +0 -185
  153. package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -120
  154. package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -269
  155. package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
  156. package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
  157. package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
  158. package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
  159. package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
  160. package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
  161. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
  162. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
  163. package/dist/components/molecules/modal/Modal.stories.d.ts +0 -128
  164. package/dist/components/molecules/modal/Modal.stories.js +0 -373
  165. package/dist/components/molecules/notification/Notification.stories.d.ts +0 -377
  166. package/dist/components/molecules/notification/Notification.stories.js +0 -205
  167. package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
  168. package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
  169. package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
  170. package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
  171. package/dist/components/molecules/proSwitch/AvatarBubble.stories.d.ts +0 -112
  172. package/dist/components/molecules/proSwitch/AvatarBubble.stories.js +0 -255
  173. package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.d.ts +0 -88
  174. package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.js +0 -328
  175. package/dist/components/molecules/proSwitch/ProSwitch.stories.d.ts +0 -9
  176. package/dist/components/molecules/proSwitch/ProSwitch.stories.js +0 -152
  177. package/dist/components/molecules/proSwitch/ProSwitchModal.stories.d.ts +0 -62
  178. package/dist/components/molecules/proSwitch/ProSwitchModal.stories.js +0 -269
  179. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
  180. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
  181. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -37
  182. package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -75
  183. package/dist/components/molecules/rangeSlider/RangeSlider.stories.d.ts +0 -96
  184. package/dist/components/molecules/rangeSlider/RangeSlider.stories.js +0 -162
  185. package/dist/components/molecules/section/Section.stories.d.ts +0 -42
  186. package/dist/components/molecules/section/Section.stories.js +0 -162
  187. package/dist/components/molecules/segmentedControl/segmentedControl.stories.d.ts +0 -70
  188. package/dist/components/molecules/segmentedControl/segmentedControl.stories.js +0 -185
  189. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -79
  190. package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -113
  191. package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -62
  192. package/dist/components/molecules/stepper/Stepper.stories.js +0 -215
  193. package/dist/stories/Header.d.ts +0 -13
  194. package/dist/stories/Header.js +0 -20
  195. package/dist/stories/Header.stories.d.ts +0 -18
  196. package/dist/stories/Header.stories.js +0 -26
  197. package/dist/stories/Page.d.ts +0 -3
  198. package/dist/stories/Page.js +0 -37
  199. package/dist/stories/Page.stories.d.ts +0 -12
  200. package/dist/stories/Page.stories.js +0 -76
@@ -41,10 +41,6 @@ var SortableItem = function (_a) {
41
41
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
42
42
  },
43
43
  }), attributes = _b.attributes, listeners = _b.listeners, setNodeRef = _b.setNodeRef, transform = _b.transform, transition = _b.transition, sortableDragging = _b.isDragging;
44
- // Console.log uniquement si transform existe et a des valeurs non-nulles
45
- if (transform && (transform.x !== 0 || transform.y !== 0)) {
46
- console.log("\uD83D\uDD04 ".concat(pro.firstName, ": transform=").concat(transform.x, ",").concat(transform.y));
47
- }
48
44
  var style = {
49
45
  transform: CSS.Transform.toString(transform),
50
46
  transition: transition,
@@ -138,15 +134,8 @@ var ProSwitchModal = function (_a) {
138
134
  var sortedPros = order
139
135
  .map(function (id) { return pros.find(function (p) { return p.proUserId === id; }); })
140
136
  .filter(Boolean);
141
- console.log("🔧 State:", {
142
- isReorder: isReorder,
143
- draggedId: draggedId,
144
- prosCount: sortedAndFilteredPros.length,
145
- orderLength: order.length,
146
- });
147
137
  // Réordonnancement handlers
148
138
  var handleDragStart = function (event) {
149
- console.log("🚀 DragStart:", event.active.id);
150
139
  setDraggedId(event.active.id);
151
140
  var pro = sortedAndFilteredPros.find(function (p) { return p.proUserId === event.active.id; });
152
141
  setActiveDragPro(pro || null);
@@ -156,8 +145,6 @@ var ProSwitchModal = function (_a) {
156
145
  setHoveredId(((_a = event.over) === null || _a === void 0 ? void 0 : _a.id) || null);
157
146
  };
158
147
  var handleDragEnd = function (event) {
159
- var _a;
160
- console.log("🏁 DragEnd:", event.active.id, "→", (_a = event.over) === null || _a === void 0 ? void 0 : _a.id);
161
148
  setDraggedId(null);
162
149
  setHoveredId(null);
163
150
  setActiveDragPro(null);
@@ -165,13 +152,11 @@ var ProSwitchModal = function (_a) {
165
152
  if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
166
153
  var oldIndex = order.indexOf(active.id);
167
154
  var newIndex = order.indexOf(over.id);
168
- console.log("📊 Reorder:", oldIndex, "→", newIndex);
169
155
  var newOrder = arrayMove(order, oldIndex, newIndex);
170
156
  setOrder(newOrder);
171
157
  }
172
158
  };
173
159
  var handleDragCancel = function () {
174
- console.log("❌ DragCancel");
175
160
  setDraggedId(null);
176
161
  setHoveredId(null);
177
162
  setActiveDragPro(null);
@@ -197,8 +182,6 @@ var ProSwitchModal = function (_a) {
197
182
  return newSelected.includes(p.proUserId);
198
183
  });
199
184
  onSelect(selectedPros_1);
200
- // Fermer la modal automatiquement en mode single
201
- onClosePortal();
202
185
  return;
203
186
  }
204
187
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "5.4.2",
3
+ "version": "5.4.4",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -52,18 +52,12 @@
52
52
  "typeface-open-sans": "^1.1.13"
53
53
  },
54
54
  "devDependencies": {
55
- "@chromatic-com/storybook": "^3.2.2",
56
- "@storybook/addon-backgrounds": "^8.4.6",
57
- "@storybook/addon-essentials": "^8.4.6",
58
- "@storybook/addon-interactions": "^8.4.6",
59
- "@storybook/addon-links": "^8.4.6",
60
- "@storybook/addon-mdx-gfm": "^8.4.6",
61
- "@storybook/addon-onboarding": "^8.4.6",
62
- "@storybook/blocks": "^8.4.6",
63
- "@storybook/client-api": "^7.6.17",
64
- "@storybook/nextjs": "^8.4.6",
65
- "@storybook/react": "^8.4.6",
66
- "@storybook/test": "^8.4.6",
55
+ "@chromatic-com/storybook": "^4.1.3",
56
+ "@storybook/addon-docs": "^10.1.11",
57
+ "@storybook/addon-links": "^10.1.11",
58
+ "@storybook/addon-onboarding": "^10.1.11",
59
+ "@storybook/nextjs-vite": "^10.1.11",
60
+ "@storybook/react": "^10.1.11",
67
61
  "@types/node": "^20",
68
62
  "@types/react": "^18",
69
63
  "@types/react-dom": "^18",
@@ -71,10 +65,9 @@
71
65
  "css-loader": "^7.1.2",
72
66
  "eslint": "^8",
73
67
  "eslint-config-next": "15.4.8",
74
- "eslint-plugin-storybook": "^0.11.1",
75
- "storybook": "^8.4.6",
76
- "storybook-css-modules": "^1.0.8",
77
- "typescript": "^5"
78
- },
79
- "peerDependencies": {}
68
+ "eslint-plugin-storybook": "^10.1.11",
69
+ "storybook": "^10.1.11",
70
+ "typescript": "^5",
71
+ "vite": "^7.0.0"
72
+ }
80
73
  }
@@ -1,110 +0,0 @@
1
- export const ActionsData: {};
2
- declare namespace _default {
3
- export let title: string;
4
- export { ActionButton as component };
5
- export let tags: string[];
6
- export let excludeStories: RegExp;
7
- export let args: {};
8
- export namespace argTypes {
9
- export namespace startIcon {
10
- namespace control {
11
- let type: string;
12
- }
13
- namespace mapping {
14
- let _true: string;
15
- export { _true as true };
16
- let _false: null;
17
- export { _false as false };
18
- }
19
- }
20
- export namespace endIcon {
21
- export namespace control_1 {
22
- let type_1: string;
23
- export { type_1 as type };
24
- }
25
- export { control_1 as control };
26
- export namespace mapping_1 {
27
- let _true_1: string;
28
- export { _true_1 as true };
29
- let _false_1: null;
30
- export { _false_1 as false };
31
- }
32
- export { mapping_1 as mapping };
33
- }
34
- export namespace startIconName {
35
- export namespace control_2 {
36
- let type_2: string;
37
- export { type_2 as type };
38
- }
39
- export { control_2 as control };
40
- }
41
- export namespace endIconName {
42
- export namespace control_3 {
43
- let type_3: string;
44
- export { type_3 as type };
45
- }
46
- export { control_3 as control };
47
- }
48
- export namespace type_4 {
49
- export namespace control_4 {
50
- let type_5: string;
51
- export { type_5 as type };
52
- export let options: string[];
53
- }
54
- export { control_4 as control };
55
- }
56
- export { type_4 as type };
57
- export namespace isLoading {
58
- export namespace control_5 {
59
- let type_6: string;
60
- export { type_6 as type };
61
- }
62
- export { control_5 as control };
63
- }
64
- export namespace variant {
65
- export namespace control_6 {
66
- let type_7: string;
67
- export { type_7 as type };
68
- let options_1: string[];
69
- export { options_1 as options };
70
- }
71
- export { control_6 as control };
72
- }
73
- export namespace size {
74
- export namespace control_7 {
75
- let type_8: string;
76
- export { type_8 as type };
77
- let options_2: string[];
78
- export { options_2 as options };
79
- }
80
- export { control_7 as control };
81
- }
82
- }
83
- export namespace parameters {
84
- namespace backgrounds {
85
- let _default: string;
86
- export { _default as default };
87
- export let values: {
88
- name: string;
89
- value: string;
90
- }[];
91
- }
92
- }
93
- }
94
- export default _default;
95
- export const Default: any;
96
- export const WithStartIcon: any;
97
- export const WithEndIcon: any;
98
- export const WithStartAndEndIcons: any;
99
- export const Disabled: any;
100
- export const Loading: any;
101
- export const SubmitButton: any;
102
- export const ResetButton: any;
103
- export const AsyncButton: any;
104
- export const WarningButton: any;
105
- export const LargeButton: any;
106
- export const LargeButtonWithIcons: any;
107
- export const LargeWarningButton: any;
108
- export const BorderButton: any;
109
- export const LargeBorderButton: any;
110
- import ActionButton from "./ActionButton";
@@ -1,171 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
- return new (P || (P = Promise))(function (resolve, reject) {
15
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
- var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
- function verb(n) { return function (v) { return step([n, v]); }; }
25
- function step(op) {
26
- if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
- if (y = 0, t) op = [op[0] & 2, t.value];
30
- switch (op[0]) {
31
- case 0: case 1: t = op; break;
32
- case 4: _.label++; return { value: op[1], done: false };
33
- case 5: _.label++; y = op[1]; op = [0]; continue;
34
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
- default:
36
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
- if (t[2]) _.ops.pop();
41
- _.trys.pop(); continue;
42
- }
43
- op = body.call(thisArg, _);
44
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
- }
47
- };
48
- import React from "react";
49
- import ActionButton from "./ActionButton";
50
- export var ActionsData = {};
51
- export default {
52
- title: "Components/Atoms/Buttons/ActionButton",
53
- component: ActionButton,
54
- tags: ["autodocs"],
55
- excludeStories: /.*Data$/,
56
- args: __assign({}, ActionsData),
57
- argTypes: {
58
- startIcon: {
59
- control: {
60
- type: "boolean",
61
- },
62
- mapping: {
63
- true: "allaw-icon-arrow-right",
64
- false: null,
65
- },
66
- },
67
- endIcon: {
68
- control: {
69
- type: "boolean",
70
- },
71
- mapping: {
72
- true: "allaw-icon-arrow-right",
73
- false: null,
74
- },
75
- },
76
- startIconName: {
77
- control: {
78
- type: "text",
79
- },
80
- },
81
- endIconName: {
82
- control: {
83
- type: "text",
84
- },
85
- },
86
- type: {
87
- control: {
88
- type: "select",
89
- options: ["button", "submit", "reset"],
90
- },
91
- },
92
- isLoading: {
93
- control: {
94
- type: "boolean",
95
- },
96
- },
97
- variant: {
98
- control: {
99
- type: "select",
100
- options: ["default", "warning", "border"],
101
- },
102
- },
103
- size: {
104
- control: {
105
- type: "select",
106
- options: ["medium", "large"],
107
- },
108
- },
109
- },
110
- parameters: {
111
- backgrounds: {
112
- default: "light",
113
- values: [
114
- { name: "light", value: "#ffffff" },
115
- { name: "grey", value: "#728ea7" },
116
- { name: "figma", value: "#404040" },
117
- { name: "dark", value: "#171e25" },
118
- ],
119
- },
120
- },
121
- };
122
- var Template = function (args) { return React.createElement(ActionButton, __assign({}, args)); };
123
- export var Default = Template.bind({});
124
- Default.args = {
125
- label: "Bouton",
126
- startIcon: false,
127
- endIcon: false,
128
- startIconName: "allaw-icon-arrow-right",
129
- endIconName: "allaw-icon-arrow-right",
130
- disabled: false,
131
- type: "button",
132
- isLoading: false,
133
- size: "medium",
134
- };
135
- export var WithStartIcon = Template.bind({});
136
- WithStartIcon.args = __assign(__assign({}, Default.args), { startIcon: true });
137
- export var WithEndIcon = Template.bind({});
138
- WithEndIcon.args = __assign(__assign({}, Default.args), { endIcon: true });
139
- export var WithStartAndEndIcons = Template.bind({});
140
- WithStartAndEndIcons.args = __assign(__assign({}, Default.args), { startIcon: true, endIcon: true });
141
- export var Disabled = Template.bind({});
142
- Disabled.args = __assign(__assign({}, Default.args), { disabled: true });
143
- export var Loading = Template.bind({});
144
- Loading.args = __assign(__assign({}, Default.args), { isLoading: true });
145
- export var SubmitButton = Template.bind({});
146
- SubmitButton.args = __assign(__assign({}, Default.args), { type: "submit", label: "Submit" });
147
- export var ResetButton = Template.bind({});
148
- ResetButton.args = __assign(__assign({}, Default.args), { type: "reset", label: "Reset" });
149
- export var AsyncButton = Template.bind({});
150
- AsyncButton.args = __assign(__assign({}, Default.args), { label: "Async Action", onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
151
- return __generator(this, function (_a) {
152
- switch (_a.label) {
153
- case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 2000); })];
154
- case 1:
155
- _a.sent();
156
- return [2 /*return*/];
157
- }
158
- });
159
- }); } });
160
- export var WarningButton = Template.bind({});
161
- WarningButton.args = __assign(__assign({}, Default.args), { label: "Warning", variant: "warning" });
162
- export var LargeButton = Template.bind({});
163
- LargeButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton", size: "large" });
164
- export var LargeButtonWithIcons = Template.bind({});
165
- LargeButtonWithIcons.args = __assign(__assign({}, Default.args), { label: "Grand Bouton avec Icônes", startIcon: true, endIcon: true, size: "large" });
166
- export var LargeWarningButton = Template.bind({});
167
- LargeWarningButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton d'Alerte", variant: "warning", size: "large" });
168
- export var BorderButton = Template.bind({});
169
- BorderButton.args = __assign(__assign({}, Default.args), { label: "Bouton Border", variant: "border" });
170
- export var LargeBorderButton = Template.bind({});
171
- LargeBorderButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton Border", variant: "border", size: "large" });
@@ -1,35 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { ActionCircleButton as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace status {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- namespace onApprove {
13
- let action: string;
14
- }
15
- namespace onReject {
16
- let action_1: string;
17
- export { action_1 as action };
18
- }
19
- }
20
- export namespace parameters {
21
- namespace backgrounds {
22
- let _default: string;
23
- export { _default as default };
24
- export let values: {
25
- name: string;
26
- value: string;
27
- }[];
28
- }
29
- }
30
- }
31
- export default _default;
32
- export const Approved: any;
33
- export const Rejected: any;
34
- export const Dual: any;
35
- import ActionCircleButton from "./ActionCircleButton";
@@ -1,54 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import ActionCircleButton from "./ActionCircleButton";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Buttons/ActionCircleButton",
17
- component: ActionCircleButton,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- status: {
21
- control: {
22
- type: "select",
23
- options: ["approved", "rejected", "dual"],
24
- },
25
- },
26
- onApprove: { action: "approved" },
27
- onReject: { action: "rejected" },
28
- },
29
- parameters: {
30
- backgrounds: {
31
- default: "light",
32
- values: [
33
- { name: "light", value: "#ffffff" },
34
- { name: "grey", value: "#728ea7" },
35
- { name: "figma", value: "#404040" },
36
- { name: "dark", value: "#171e25" },
37
- ],
38
- },
39
- },
40
- };
41
- var Template = function (args) { return React.createElement(ActionCircleButton, __assign({}, args)); };
42
- export var Approved = Template.bind({});
43
- Approved.args = {
44
- status: "approved",
45
- };
46
- export var Rejected = Template.bind({});
47
- Rejected.args = {
48
- status: "rejected",
49
- };
50
- export var Dual = Template.bind({});
51
- Dual.args = {
52
- status: "dual",
53
- };
54
- //
@@ -1,41 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { AgendaSlot as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace appearance {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- namespace isDisabled {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- }
17
- export { control_1 as control };
18
- }
19
- namespace onClick {
20
- namespace table {
21
- let disable: boolean;
22
- }
23
- }
24
- }
25
- export namespace parameters {
26
- namespace backgrounds {
27
- let _default: string;
28
- export { _default as default };
29
- export let values: {
30
- name: string;
31
- value: string;
32
- }[];
33
- }
34
- }
35
- }
36
- export default _default;
37
- export const Default: any;
38
- export const Hybride: any;
39
- export const User: any;
40
- export const Disabled: any;
41
- import AgendaSlot from "./AgendaSlot";
@@ -1,77 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import AgendaSlot from "./AgendaSlot";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Buttons/AgendaSlot",
17
- component: AgendaSlot,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- appearance: {
21
- control: {
22
- type: "select",
23
- options: ["pro", "hybride", "user"],
24
- },
25
- },
26
- isDisabled: {
27
- control: {
28
- type: "boolean",
29
- },
30
- },
31
- onClick: {
32
- table: {
33
- disable: true,
34
- },
35
- },
36
- },
37
- parameters: {
38
- backgrounds: {
39
- default: "light",
40
- values: [
41
- { name: "light", value: "#ffffff" },
42
- { name: "grey", value: "#728ea7" },
43
- { name: "figma", value: "#404040" },
44
- { name: "dark", value: "#171e25" },
45
- ],
46
- },
47
- },
48
- };
49
- var Template = function (args) { return React.createElement(AgendaSlot, __assign({}, args)); };
50
- export var Default = Template.bind({});
51
- Default.args = {
52
- time: "8:00 - 8:45",
53
- appearance: "pro",
54
- isDisabled: false,
55
- onClick: function () { return console.log("Slot clicked"); },
56
- };
57
- export var Hybride = Template.bind({});
58
- Hybride.args = {
59
- time: "8:00",
60
- appearance: "hybride",
61
- isDisabled: false,
62
- onClick: function () { return console.log("Slot clicked"); },
63
- };
64
- export var User = Template.bind({});
65
- User.args = {
66
- time: "9:00",
67
- appearance: "user",
68
- isDisabled: false,
69
- onClick: function () { return console.log("Slot clicked"); },
70
- };
71
- export var Disabled = Template.bind({});
72
- Disabled.args = {
73
- time: "8:00 - 8:45",
74
- appearance: "pro",
75
- isDisabled: true,
76
- onClick: undefined, // Disabled state
77
- };
@@ -1,23 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { FavoriteToggle as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace isFavorite {
7
- let control: string;
8
- }
9
- }
10
- export namespace parameters {
11
- namespace backgrounds {
12
- let _default: string;
13
- export { _default as default };
14
- export let values: {
15
- name: string;
16
- value: string;
17
- }[];
18
- }
19
- }
20
- }
21
- export default _default;
22
- export const Default: any;
23
- import FavoriteToggle from "./FavoriteToggle";
@@ -1,61 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React from "react";
24
- import { useArgs } from "@storybook/client-api";
25
- import FavoriteToggle from "./FavoriteToggle";
26
- import "../../../styles/global.css";
27
- export default {
28
- title: "Components/Atoms/Buttons/FavoriteToggle",
29
- component: FavoriteToggle,
30
- tags: ["autodocs"],
31
- argTypes: {
32
- isFavorite: {
33
- control: "boolean",
34
- },
35
- },
36
- parameters: {
37
- backgrounds: {
38
- default: "light",
39
- values: [
40
- { name: "light", value: "#ffffff" },
41
- { name: "grey", value: "#728ea7" },
42
- { name: "figma", value: "#404040" },
43
- { name: "dark", value: "#171e25" },
44
- ],
45
- },
46
- },
47
- };
48
- var Template = function (_a) {
49
- var args = __rest(_a, []);
50
- var _b = useArgs(), isFavorite = _b[0].isFavorite, updateArgs = _b[1];
51
- var handleToggle = function (newValue) {
52
- updateArgs({ isFavorite: newValue });
53
- args.onToggle(newValue);
54
- };
55
- return (React.createElement(FavoriteToggle, __assign({}, args, { isFavorite: isFavorite, onToggle: handleToggle })));
56
- };
57
- export var Default = Template.bind({});
58
- Default.args = {
59
- isFavorite: false,
60
- onToggle: function (isFavorite) { return console.log("Toggled to:", isFavorite); },
61
- };