allaw-ui 5.4.1 → 5.4.3

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 (202) hide show
  1. package/dist/components/atoms/buttons/ActionButton.d.ts +1 -1
  2. package/dist/components/atoms/buttons/ActionButton.js +2 -2
  3. package/dist/components/molecules/proSwitch/ProSwitchModal.js +0 -2
  4. package/package.json +12 -19
  5. package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -110
  6. package/dist/components/atoms/buttons/ActionButton.stories.js +0 -171
  7. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
  8. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
  9. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
  10. package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
  11. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
  12. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
  13. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
  14. package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
  15. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
  16. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
  17. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
  18. package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
  19. package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -51
  20. package/dist/components/atoms/buttons/IconButton.stories.js +0 -100
  21. package/dist/components/atoms/buttons/InboxButton.stories.d.ts +0 -68
  22. package/dist/components/atoms/buttons/InboxButton.stories.js +0 -143
  23. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -67
  24. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -168
  25. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
  26. package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
  27. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -121
  28. package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -187
  29. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
  30. package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
  31. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
  32. package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
  33. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
  34. package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
  35. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
  36. package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
  37. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -167
  38. package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -113
  39. package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
  40. package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
  41. package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
  42. package/dist/components/atoms/filter/Filter.stories.js +0 -77
  43. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -10
  44. package/dist/components/atoms/filters/SingleFilter.stories.js +0 -84
  45. package/dist/components/atoms/inputs/Input.stories.d.ts +0 -85
  46. package/dist/components/atoms/inputs/Input.stories.js +0 -169
  47. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -142
  48. package/dist/components/atoms/inputs/SearchBar.stories.js +0 -197
  49. package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
  50. package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
  51. package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
  52. package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
  53. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
  54. package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
  55. package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -38
  56. package/dist/components/atoms/radios/RadioButton.stories.js +0 -87
  57. package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
  58. package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
  59. package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
  60. package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
  61. package/dist/components/atoms/selects/Select.stories.d.ts +0 -133
  62. package/dist/components/atoms/selects/Select.stories.js +0 -299
  63. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
  64. package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
  65. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
  66. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
  67. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
  68. package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
  69. package/dist/components/atoms/tags/InlineTag.stories.d.ts +0 -109
  70. package/dist/components/atoms/tags/InlineTag.stories.js +0 -159
  71. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -99
  72. package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -160
  73. package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
  74. package/dist/components/atoms/typography/CardDate.stories.js +0 -103
  75. package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
  76. package/dist/components/atoms/typography/Heading.stories.js +0 -150
  77. package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
  78. package/dist/components/atoms/typography/Link.stories.js +0 -164
  79. package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
  80. package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
  81. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
  82. package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
  83. package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
  84. package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
  85. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
  86. package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
  87. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
  88. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
  89. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
  90. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
  91. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
  92. package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
  93. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
  94. package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
  95. package/dist/components/molecules/AiText/aiText.stories.d.ts +0 -43
  96. package/dist/components/molecules/AiText/aiText.stories.js +0 -216
  97. package/dist/components/molecules/DataStepper/Stepper.stories.d.ts +0 -8
  98. package/dist/components/molecules/DataStepper/Stepper.stories.js +0 -248
  99. package/dist/components/molecules/appointmentCard/AppointmentCard.stories.d.ts +0 -37
  100. package/dist/components/molecules/appointmentCard/AppointmentCard.stories.js +0 -106
  101. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -95
  102. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -204
  103. package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
  104. package/dist/components/molecules/banner/Banner.stories.js +0 -123
  105. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
  106. package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
  107. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
  108. package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
  109. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
  110. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
  111. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
  112. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
  113. package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
  114. package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
  115. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
  116. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
  117. package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
  118. package/dist/components/molecules/brands/Brands.stories.js +0 -66
  119. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
  120. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
  121. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
  122. package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
  123. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
  124. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
  125. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
  126. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
  127. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
  128. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
  129. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
  130. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
  131. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
  132. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
  133. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -69
  134. package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -84
  135. package/dist/components/molecules/contactCard/ContactCardEdit.stories.d.ts +0 -88
  136. package/dist/components/molecules/contactCard/ContactCardEdit.stories.js +0 -106
  137. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
  138. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
  139. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -291
  140. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -185
  141. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -72
  142. package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -108
  143. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
  144. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
  145. package/dist/components/molecules/emptyMessage/EmptyMessage.stories.d.ts +0 -75
  146. package/dist/components/molecules/emptyMessage/EmptyMessage.stories.js +0 -115
  147. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -10
  148. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -50
  149. package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -22
  150. package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -63
  151. package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
  152. package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
  153. package/dist/components/molecules/fileCard/FileCard.stories.d.ts +0 -42
  154. package/dist/components/molecules/fileCard/FileCard.stories.js +0 -185
  155. package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -120
  156. package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -269
  157. package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
  158. package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
  159. package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
  160. package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
  161. package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
  162. package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
  163. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
  164. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
  165. package/dist/components/molecules/modal/Modal.stories.d.ts +0 -128
  166. package/dist/components/molecules/modal/Modal.stories.js +0 -373
  167. package/dist/components/molecules/notification/Notification.stories.d.ts +0 -377
  168. package/dist/components/molecules/notification/Notification.stories.js +0 -205
  169. package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
  170. package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
  171. package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
  172. package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
  173. package/dist/components/molecules/proSwitch/AvatarBubble.stories.d.ts +0 -112
  174. package/dist/components/molecules/proSwitch/AvatarBubble.stories.js +0 -255
  175. package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.d.ts +0 -88
  176. package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.js +0 -328
  177. package/dist/components/molecules/proSwitch/ProSwitch.stories.d.ts +0 -9
  178. package/dist/components/molecules/proSwitch/ProSwitch.stories.js +0 -152
  179. package/dist/components/molecules/proSwitch/ProSwitchModal.stories.d.ts +0 -62
  180. package/dist/components/molecules/proSwitch/ProSwitchModal.stories.js +0 -269
  181. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
  182. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
  183. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -37
  184. package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -75
  185. package/dist/components/molecules/rangeSlider/RangeSlider.stories.d.ts +0 -96
  186. package/dist/components/molecules/rangeSlider/RangeSlider.stories.js +0 -162
  187. package/dist/components/molecules/section/Section.stories.d.ts +0 -42
  188. package/dist/components/molecules/section/Section.stories.js +0 -162
  189. package/dist/components/molecules/segmentedControl/segmentedControl.stories.d.ts +0 -70
  190. package/dist/components/molecules/segmentedControl/segmentedControl.stories.js +0 -185
  191. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -79
  192. package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -113
  193. package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -62
  194. package/dist/components/molecules/stepper/Stepper.stories.js +0 -215
  195. package/dist/stories/Header.d.ts +0 -13
  196. package/dist/stories/Header.js +0 -20
  197. package/dist/stories/Header.stories.d.ts +0 -18
  198. package/dist/stories/Header.stories.js +0 -26
  199. package/dist/stories/Page.d.ts +0 -3
  200. package/dist/stories/Page.js +0 -37
  201. package/dist/stories/Page.stories.d.ts +0 -12
  202. package/dist/stories/Page.stories.js +0 -76
@@ -1,108 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { ColoredCheckbox as component };
4
- export let tags: string[];
5
- export namespace args {
6
- let label: string;
7
- let checked: boolean;
8
- let boxColor: string;
9
- let markType: string;
10
- }
11
- export namespace argTypes {
12
- export namespace checked_1 {
13
- namespace control {
14
- let type: string;
15
- }
16
- }
17
- export { checked_1 as checked };
18
- export namespace onChange {
19
- let action: string;
20
- }
21
- export namespace label_1 {
22
- let control_1: string;
23
- export { control_1 as control };
24
- }
25
- export { label_1 as label };
26
- export namespace boxColor_1 {
27
- let control_2: string;
28
- export { control_2 as control };
29
- export let defaultValue: string;
30
- }
31
- export { boxColor_1 as boxColor };
32
- export namespace markColor {
33
- let control_3: string;
34
- export { control_3 as control };
35
- let defaultValue_1: string;
36
- export { defaultValue_1 as defaultValue };
37
- }
38
- export namespace textColor {
39
- let control_4: string;
40
- export { control_4 as control };
41
- let defaultValue_2: string;
42
- export { defaultValue_2 as defaultValue };
43
- }
44
- export namespace size {
45
- export namespace control_5 {
46
- let type_1: string;
47
- export { type_1 as type };
48
- export let options: string[];
49
- }
50
- export { control_5 as control };
51
- }
52
- export namespace markType_1 {
53
- export namespace control_6 {
54
- let type_2: string;
55
- export { type_2 as type };
56
- let options_1: string[];
57
- export { options_1 as options };
58
- }
59
- export { control_6 as control };
60
- }
61
- export { markType_1 as markType };
62
- export namespace isSignedIn {
63
- export namespace control_7 {
64
- let type_3: string;
65
- export { type_3 as type };
66
- }
67
- export { control_7 as control };
68
- let defaultValue_3: boolean;
69
- export { defaultValue_3 as defaultValue };
70
- }
71
- export namespace unlinkIconPath {
72
- let control_8: string;
73
- export { control_8 as control };
74
- export let description: string;
75
- }
76
- }
77
- export namespace parameters {
78
- namespace backgrounds {
79
- let _default: string;
80
- export { _default as default };
81
- export let values: {
82
- name: string;
83
- value: string;
84
- }[];
85
- }
86
- }
87
- }
88
- export default _default;
89
- export const Default: any;
90
- export const Checked: any;
91
- export const CheckMark: any;
92
- export const CheckedCheckMark: any;
93
- export const Small: any;
94
- export const SmallChecked: any;
95
- export const CustomColors: any;
96
- export const NoLabel: any;
97
- export const DarkBackground: any;
98
- export const EmailLabel: any;
99
- export const EmailLabelSmallContainer: any;
100
- export const EmailLabelVerySmallContainer: any;
101
- export const LongEmailLabel: any;
102
- export const LongEmailLabelSmallContainer: any;
103
- export const LongEmailLabelVerySmallContainer: any;
104
- export const NotSignedIn: any;
105
- export const NotSignedInEmail: any;
106
- export const NotSignedInChecked: any;
107
- export const CustomIconPath: any;
108
- import ColoredCheckbox from "./ColoredCheckbox";
@@ -1,141 +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, { useState } from "react";
13
- import ColoredCheckbox from "./ColoredCheckbox";
14
- export default {
15
- title: "Components/Molecules/ColoredCheckbox",
16
- component: ColoredCheckbox,
17
- tags: ["autodocs"],
18
- args: {
19
- label: "my-email-address@provider.com",
20
- checked: true,
21
- boxColor: "#25beeb",
22
- markType: "check",
23
- },
24
- argTypes: {
25
- checked: {
26
- control: {
27
- type: "boolean",
28
- },
29
- },
30
- onChange: { action: "changed" },
31
- label: {
32
- control: "text",
33
- },
34
- boxColor: {
35
- control: "color",
36
- defaultValue: "#25beeb",
37
- },
38
- markColor: {
39
- control: "color",
40
- defaultValue: "#FFFFFF",
41
- },
42
- textColor: {
43
- control: "color",
44
- defaultValue: "#000000",
45
- },
46
- size: {
47
- control: {
48
- type: "select",
49
- options: ["default", "small"],
50
- },
51
- },
52
- markType: {
53
- control: {
54
- type: "select",
55
- options: ["cross", "check"],
56
- },
57
- },
58
- isSignedIn: {
59
- control: {
60
- type: "boolean",
61
- },
62
- defaultValue: true,
63
- },
64
- unlinkIconPath: {
65
- control: "text",
66
- description: "Chemin vers l'icône de déconnexion",
67
- },
68
- },
69
- parameters: {
70
- backgrounds: {
71
- default: "light",
72
- values: [
73
- { name: "light", value: "#ffffff" },
74
- { name: "grey", value: "#728ea7" },
75
- { name: "figma", value: "#404040" },
76
- { name: "dark", value: "#171e25" },
77
- ],
78
- },
79
- },
80
- };
81
- var Template = function (args) {
82
- var _a = useState(args.checked), checked = _a[0], setChecked = _a[1];
83
- var handleChange = function (newChecked) {
84
- setChecked(newChecked);
85
- };
86
- return (React.createElement("div", { style: { width: args.containerWidth || "100%" } },
87
- React.createElement(ColoredCheckbox, __assign({}, args, { checked: checked, onChange: handleChange }))));
88
- };
89
- export var Default = Template.bind({});
90
- Default.args = {
91
- checked: true,
92
- label: "my-email-address@provider.com",
93
- boxColor: "#25beeb",
94
- markColor: "#FFFFFF",
95
- textColor: "#000000",
96
- size: "default",
97
- markType: "check",
98
- isSignedIn: true,
99
- };
100
- export var Checked = Template.bind({});
101
- Checked.args = __assign(__assign({}, Default.args), { checked: true, label: "Checked Checkbox" });
102
- export var CheckMark = Template.bind({});
103
- CheckMark.args = __assign(__assign({}, Default.args), { label: "Checkbox with check mark", markType: "check" });
104
- export var CheckedCheckMark = Template.bind({});
105
- CheckedCheckMark.args = __assign(__assign({}, CheckMark.args), { checked: true, label: "Checked Checkbox with check mark" });
106
- export var Small = Template.bind({});
107
- Small.args = __assign(__assign({}, Default.args), { label: "Small Checkbox", size: "small" });
108
- export var SmallChecked = Template.bind({});
109
- SmallChecked.args = __assign(__assign({}, Small.args), { checked: true, label: "Small Checked Checkbox" });
110
- export var CustomColors = Template.bind({});
111
- CustomColors.args = __assign(__assign({}, Default.args), { checked: true, label: "Custom Colors Checkbox", boxColor: "#25beeb", markColor: "#FFFFFF", textColor: "#456073" });
112
- export var NoLabel = Template.bind({});
113
- NoLabel.args = __assign(__assign({}, Default.args), { label: undefined });
114
- export var DarkBackground = Template.bind({});
115
- DarkBackground.args = __assign(__assign({}, Default.args), { checked: true, boxColor: "#FFFFFF", markColor: "#000000", textColor: "#FFFFFF" });
116
- DarkBackground.parameters = {
117
- backgrounds: { default: "dark" },
118
- };
119
- // Exemples avec des adresses email
120
- export var EmailLabel = Template.bind({});
121
- EmailLabel.args = __assign(__assign({}, Default.args), { checked: true, label: "vincent.desbrosses@hotmail.com", boxColor: "#25beeb" });
122
- export var EmailLabelSmallContainer = Template.bind({});
123
- EmailLabelSmallContainer.args = __assign(__assign({}, EmailLabel.args), { containerWidth: "300px" });
124
- export var EmailLabelVerySmallContainer = Template.bind({});
125
- EmailLabelVerySmallContainer.args = __assign(__assign({}, EmailLabel.args), { containerWidth: "200px" });
126
- export var LongEmailLabel = Template.bind({});
127
- LongEmailLabel.args = __assign(__assign({}, Default.args), { checked: true, label: "very.long.email.address.with.many.parts@some-company-with-long-domain-name.com", boxColor: "#25beeb" });
128
- export var LongEmailLabelSmallContainer = Template.bind({});
129
- LongEmailLabelSmallContainer.args = __assign(__assign({}, LongEmailLabel.args), { containerWidth: "300px" });
130
- export var LongEmailLabelVerySmallContainer = Template.bind({});
131
- LongEmailLabelVerySmallContainer.args = __assign(__assign({}, LongEmailLabel.args), { containerWidth: "200px" });
132
- // Exemples avec isSignedIn
133
- export var NotSignedIn = Template.bind({});
134
- NotSignedIn.args = __assign(__assign({}, Default.args), { label: "User not signed in", isSignedIn: false });
135
- export var NotSignedInEmail = Template.bind({});
136
- NotSignedInEmail.args = __assign(__assign({}, EmailLabel.args), { label: "vincent.desbrosses@hotmail.com", isSignedIn: false });
137
- export var NotSignedInChecked = Template.bind({});
138
- NotSignedInChecked.args = __assign(__assign({}, NotSignedIn.args), { checked: true });
139
- // Exemple avec un chemin d'icône personnalisé
140
- export var CustomIconPath = Template.bind({});
141
- CustomIconPath.args = __assign({}, NotSignedIn.args);
@@ -1,11 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { ClientLinkCard as component };
4
- }
5
- export default _default;
6
- export const Default: any;
7
- export const WithoutCompany: any;
8
- export const WithArrowOnHover: any;
9
- export const WithoutCompanyAndArrowOnHover: any;
10
- export const Selected: any;
11
- import ClientLinkCard from "./ClientLinkCard";
@@ -1,59 +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 ClientLinkCard from "./ClientLinkCard";
14
- export default {
15
- title: "Components/Molecules/ClientLinkCard",
16
- component: ClientLinkCard,
17
- };
18
- var Template = function (args) { return React.createElement(ClientLinkCard, __assign({}, args)); };
19
- export var Default = Template.bind({});
20
- Default.args = {
21
- clientFirstName: "John",
22
- clientName: "Doe",
23
- clientMail: "john.doe@example.com",
24
- company: "ACME Corp",
25
- showArrowOnHover: false,
26
- onClientCardClick: function () { return alert("Client card clicked!"); },
27
- };
28
- export var WithoutCompany = Template.bind({});
29
- WithoutCompany.args = {
30
- clientFirstName: "Jane",
31
- clientName: "Smith",
32
- clientMail: "jane.smith@example.com",
33
- showArrowOnHover: false,
34
- onClientCardClick: function () { return alert("Client card clicked!"); },
35
- };
36
- export var WithArrowOnHover = Template.bind({});
37
- WithArrowOnHover.args = {
38
- clientFirstName: "Alice",
39
- clientName: "Johnson",
40
- clientMail: "alice.johnson@example.com",
41
- company: "Tech Corp",
42
- showArrowOnHover: true,
43
- onClientCardClick: function () { return alert("Client card clicked!"); },
44
- };
45
- export var WithoutCompanyAndArrowOnHover = Template.bind({});
46
- WithoutCompanyAndArrowOnHover.args = {
47
- clientFirstName: "Bob",
48
- clientName: "Wilson",
49
- clientMail: "bob.wilson@example.com",
50
- showArrowOnHover: true,
51
- onClientCardClick: function () { return alert("Client card clicked!"); },
52
- };
53
- export var Selected = Template.bind({});
54
- Selected.args = {
55
- clientFirstName: "Michael",
56
- clientName: "Brown",
57
- clientMail: "michael.brown@example.com",
58
- isSelected: true,
59
- };
@@ -1,69 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { ContactCard as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace name {
7
- let control: string;
8
- }
9
- namespace status {
10
- let control_1: string;
11
- export { control_1 as control };
12
- }
13
- namespace phone {
14
- let control_2: string;
15
- export { control_2 as control };
16
- }
17
- namespace email {
18
- let control_3: string;
19
- export { control_3 as control };
20
- }
21
- namespace gender {
22
- export namespace control_4 {
23
- let type: string;
24
- let options: string[];
25
- }
26
- export { control_4 as control };
27
- }
28
- namespace clientLabel {
29
- let control_5: string;
30
- export { control_5 as control };
31
- export let description: string;
32
- }
33
- }
34
- export namespace args {
35
- let name_1: string;
36
- export { name_1 as name };
37
- let status_1: string;
38
- export { status_1 as status };
39
- let phone_1: string;
40
- export { phone_1 as phone };
41
- let email_1: string;
42
- export { email_1 as email };
43
- export let isEditable: boolean;
44
- let gender_1: string;
45
- export { gender_1 as gender };
46
- export let actionIconName: string;
47
- let clientLabel_1: string;
48
- export { clientLabel_1 as clientLabel };
49
- }
50
- export namespace parameters {
51
- namespace backgrounds {
52
- let _default: string;
53
- export { _default as default };
54
- export let values: {
55
- name: string;
56
- value: string;
57
- }[];
58
- }
59
- }
60
- }
61
- export default _default;
62
- export const Default: any;
63
- export const Editable: any;
64
- export const WithCustomIcon: any;
65
- export const EmptyFields: any;
66
- export const PartiallyEmpty: any;
67
- export const CustomClientLabel: any;
68
- export const WithBirthDate: any;
69
- import ContactCard from "./ContactCard";
@@ -1,84 +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 ContactCard from "./ContactCard";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Molecules/ContactCard",
17
- component: ContactCard,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- name: { control: "text" },
21
- status: { control: "text" },
22
- phone: { control: "text" },
23
- email: { control: "text" },
24
- gender: {
25
- control: {
26
- type: "select",
27
- options: ["male", "female"],
28
- },
29
- },
30
- clientLabel: {
31
- control: "text",
32
- description: "Texte personnalisé pour 'Client/Cliente de l'étude'",
33
- },
34
- },
35
- args: {
36
- name: "Jane DOE",
37
- status: "Client actif",
38
- phone: "06 63 90 59 25",
39
- email: "enzo@quarantesoixante.com",
40
- isEditable: false,
41
- gender: "female",
42
- actionIconName: "allaw-icon-edit-2",
43
- clientLabel: "",
44
- },
45
- parameters: {
46
- backgrounds: {
47
- default: "light",
48
- values: [
49
- { name: "light", value: "#ffffff" },
50
- { name: "grey", value: "#728ea7" },
51
- { name: "figma", value: "#404040" },
52
- { name: "dark", value: "#171e25" },
53
- ],
54
- },
55
- },
56
- };
57
- var Template = function (args) { return React.createElement(ContactCard, __assign({}, args)); };
58
- export var Default = Template.bind({});
59
- export var Editable = Template.bind({});
60
- Editable.args = {
61
- isEditable: true,
62
- };
63
- export var WithCustomIcon = Template.bind({});
64
- WithCustomIcon.args = {
65
- actionIconName: "allaw-icon-plus",
66
- };
67
- export var EmptyFields = Template.bind({});
68
- EmptyFields.args = {
69
- phone: "",
70
- email: null,
71
- };
72
- export var PartiallyEmpty = Template.bind({});
73
- PartiallyEmpty.args = {
74
- phone: "06 12 34 56 78",
75
- email: "",
76
- };
77
- export var CustomClientLabel = Template.bind({});
78
- CustomClientLabel.args = {
79
- clientLabel: "Utilisateur professionnel",
80
- };
81
- export var WithBirthDate = Template.bind({});
82
- WithBirthDate.args = {
83
- birthDate: new Date("1990-05-15"),
84
- };
@@ -1,88 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { ContactCardEdit as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace name {
7
- let control: string;
8
- }
9
- namespace status {
10
- let control_1: string;
11
- export { control_1 as control };
12
- }
13
- namespace phone {
14
- let control_2: string;
15
- export { control_2 as control };
16
- }
17
- namespace email {
18
- let control_3: string;
19
- export { control_3 as control };
20
- }
21
- namespace clientOfStudy {
22
- let control_4: string;
23
- export { control_4 as control };
24
- }
25
- namespace officeName {
26
- export namespace control_5 {
27
- let type: string;
28
- let options: string[];
29
- }
30
- export { control_5 as control };
31
- }
32
- namespace birthDate {
33
- let control_6: string;
34
- export { control_6 as control };
35
- }
36
- namespace datepickerYearDropdownItemNumber {
37
- let control_7: string;
38
- export { control_7 as control };
39
- }
40
- namespace datepickerMinDate {
41
- let control_8: string;
42
- export { control_8 as control };
43
- }
44
- namespace datepickerMaxDate {
45
- let control_9: string;
46
- export { control_9 as control };
47
- }
48
- namespace datepickerDisableFutur {
49
- let control_10: string;
50
- export { control_10 as control };
51
- }
52
- }
53
- export namespace args {
54
- let name_1: string;
55
- export { name_1 as name };
56
- let status_1: string;
57
- export { status_1 as status };
58
- let phone_1: string;
59
- export { phone_1 as phone };
60
- let email_1: string;
61
- export { email_1 as email };
62
- let clientOfStudy_1: boolean;
63
- export { clientOfStudy_1 as clientOfStudy };
64
- let officeName_1: string;
65
- export { officeName_1 as officeName };
66
- export function onSave(data: any): void;
67
- export function onCancel(): void;
68
- }
69
- export namespace parameters {
70
- namespace backgrounds {
71
- let _default: string;
72
- export { _default as default };
73
- export let values: {
74
- name: string;
75
- value: string;
76
- }[];
77
- }
78
- }
79
- }
80
- export default _default;
81
- export const Default: any;
82
- export const WithBirthDate: any;
83
- export const WithoutBirthDate: any;
84
- export const NonClient: any;
85
- export const ClientEtude: any;
86
- export const ClientCabinet: any;
87
- export const EmptyFields: any;
88
- import ContactCardEdit from "./ContactCardEdit";
@@ -1,106 +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 ContactCardEdit from "./ContactCardEdit";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Molecules/ContactCardEdit",
17
- component: ContactCardEdit,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- name: { control: "text" },
21
- status: { control: "text" },
22
- phone: { control: "text" },
23
- email: { control: "text" },
24
- clientOfStudy: { control: "boolean" },
25
- officeName: {
26
- control: {
27
- type: "select",
28
- options: ["du cabinet", "de l'étude"],
29
- },
30
- },
31
- birthDate: { control: "date" },
32
- datepickerYearDropdownItemNumber: { control: "number" },
33
- datepickerMinDate: { control: "date" },
34
- datepickerMaxDate: { control: "date" },
35
- datepickerDisableFutur: { control: "boolean" },
36
- },
37
- args: {
38
- name: "Jane DOE",
39
- status: "Client actif",
40
- phone: "06 63 90 59 25",
41
- email: "enzo@quarantesoixante.com",
42
- clientOfStudy: false,
43
- officeName: "du cabinet",
44
- onSave: function (data) {
45
- console.log("Données sauvegardées:", data);
46
- alert("Sauvegarde: ".concat(data.firstName, " ").concat(data.lastName));
47
- },
48
- onCancel: function () {
49
- console.log("Édition annulée");
50
- alert("Édition annulée");
51
- },
52
- },
53
- parameters: {
54
- backgrounds: {
55
- default: "light",
56
- values: [
57
- { name: "light", value: "#ffffff" },
58
- { name: "grey", value: "#728ea7" },
59
- { name: "figma", value: "#404040" },
60
- { name: "dark", value: "#171e25" },
61
- ],
62
- },
63
- },
64
- };
65
- var Template = function (args) { return React.createElement(ContactCardEdit, __assign({}, args)); };
66
- export var Default = Template.bind({});
67
- export var WithBirthDate = Template.bind({});
68
- WithBirthDate.args = {
69
- birthDate: new Date("1990-05-15"),
70
- datepickerYearDropdownItemNumber: 120,
71
- datepickerMinDate: (function () {
72
- var date = new Date();
73
- date.setFullYear(date.getFullYear() - 120);
74
- return date;
75
- })(),
76
- datepickerMaxDate: (function () {
77
- var date = new Date();
78
- date.setFullYear(date.getFullYear() - 10);
79
- return date;
80
- })(),
81
- datepickerDisableFutur: false,
82
- };
83
- export var WithoutBirthDate = Template.bind({});
84
- WithoutBirthDate.args = {
85
- birthDate: undefined,
86
- };
87
- export var NonClient = Template.bind({});
88
- NonClient.args = {
89
- clientOfStudy: false,
90
- status: "Prospect",
91
- };
92
- export var ClientEtude = Template.bind({});
93
- ClientEtude.args = {
94
- clientOfStudy: true,
95
- officeName: "de l'étude",
96
- };
97
- export var ClientCabinet = Template.bind({});
98
- ClientCabinet.args = {
99
- clientOfStudy: true,
100
- officeName: "du cabinet",
101
- };
102
- export var EmptyFields = Template.bind({});
103
- EmptyFields.args = {
104
- phone: "",
105
- email: "",
106
- };