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,119 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { CardDate as component };
4
- export let tags: string[];
5
- export namespace parameters {
6
- let componentSubtitle: string;
7
- namespace docs {
8
- namespace description {
9
- let component: string;
10
- }
11
- }
12
- namespace backgrounds {
13
- let _default: string;
14
- export { _default as default };
15
- export let values: {
16
- name: string;
17
- value: string;
18
- }[];
19
- }
20
- }
21
- export namespace argTypes {
22
- namespace date {
23
- export let control: string;
24
- let description_1: string;
25
- export { description_1 as description };
26
- export namespace table {
27
- namespace type {
28
- let summary: string;
29
- }
30
- namespace defaultValue {
31
- let summary_1: string;
32
- export { summary_1 as summary };
33
- }
34
- }
35
- }
36
- namespace showYear {
37
- let control_1: string;
38
- export { control_1 as control };
39
- let description_2: string;
40
- export { description_2 as description };
41
- export namespace table_1 {
42
- export namespace type_1 {
43
- let summary_2: string;
44
- export { summary_2 as summary };
45
- }
46
- export { type_1 as type };
47
- export namespace defaultValue_1 {
48
- let summary_3: boolean;
49
- export { summary_3 as summary };
50
- }
51
- export { defaultValue_1 as defaultValue };
52
- }
53
- export { table_1 as table };
54
- }
55
- namespace variant {
56
- let control_2: string;
57
- export { control_2 as control };
58
- export let options: string[];
59
- let description_3: string;
60
- export { description_3 as description };
61
- export namespace table_2 {
62
- export namespace type_2 {
63
- let summary_4: string;
64
- export { summary_4 as summary };
65
- }
66
- export { type_2 as type };
67
- export namespace defaultValue_2 {
68
- let summary_5: string;
69
- export { summary_5 as summary };
70
- }
71
- export { defaultValue_2 as defaultValue };
72
- }
73
- export { table_2 as table };
74
- }
75
- namespace label {
76
- let control_3: string;
77
- export { control_3 as control };
78
- let description_4: string;
79
- export { description_4 as description };
80
- export namespace table_3 {
81
- export namespace type_3 {
82
- let summary_6: string;
83
- export { summary_6 as summary };
84
- }
85
- export { type_3 as type };
86
- export namespace defaultValue_3 {
87
- let summary_7: string;
88
- export { summary_7 as summary };
89
- }
90
- export { defaultValue_3 as defaultValue };
91
- }
92
- export { table_3 as table };
93
- }
94
- namespace isDisabled {
95
- let control_4: string;
96
- export { control_4 as control };
97
- let description_5: string;
98
- export { description_5 as description };
99
- export namespace table_4 {
100
- export namespace type_4 {
101
- let summary_8: string;
102
- export { summary_8 as summary };
103
- }
104
- export { type_4 as type };
105
- export namespace defaultValue_4 {
106
- let summary_9: boolean;
107
- export { summary_9 as summary };
108
- }
109
- export { defaultValue_4 as defaultValue };
110
- }
111
- export { table_4 as table };
112
- }
113
- }
114
- }
115
- export default _default;
116
- export const Default: any;
117
- export const DisabledHorizontal: any;
118
- export const DisabledVertical: any;
119
- import CardDate from "./CardDate";
@@ -1,103 +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 CardDate from "./CardDate";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/typography/CardDate",
17
- component: CardDate,
18
- tags: ["autodocs"],
19
- parameters: {
20
- componentSubtitle: "Composant d'affichage de date pour les cards",
21
- docs: {
22
- description: {
23
- component: "Un composant qui affiche une date formatée avec le jour de la semaine, le jour du mois, le mois et optionnellement l'année.",
24
- },
25
- },
26
- backgrounds: {
27
- default: "light",
28
- values: [
29
- { name: "light", value: "#ffffff" },
30
- { name: "grey", value: "#728ea7" },
31
- { name: "figma", value: "#404040" },
32
- { name: "dark", value: "#171e25" },
33
- ],
34
- },
35
- },
36
- argTypes: {
37
- date: {
38
- control: "text",
39
- description: "Date au format ISO (ex: 2024-10-31)",
40
- table: {
41
- type: { summary: "string" },
42
- defaultValue: { summary: "undefined" },
43
- },
44
- },
45
- showYear: {
46
- control: "boolean",
47
- description: "Afficher ou masquer l'année",
48
- table: {
49
- type: { summary: "boolean" },
50
- defaultValue: { summary: true },
51
- },
52
- },
53
- variant: {
54
- control: "select",
55
- options: ["horizontal", "hybride", "vertical"], // Mise à jour des options
56
- description: "Variante de style de la date",
57
- table: {
58
- type: { summary: "string" },
59
- defaultValue: { summary: "hybride" },
60
- },
61
- },
62
- label: {
63
- control: "text",
64
- description: "Label à afficher avant la date",
65
- table: {
66
- type: { summary: "string" },
67
- defaultValue: { summary: "undefined" },
68
- },
69
- },
70
- isDisabled: {
71
- control: "boolean",
72
- description: "Indique si le composant est désactivé",
73
- table: {
74
- type: { summary: "boolean" },
75
- defaultValue: { summary: false },
76
- },
77
- },
78
- },
79
- };
80
- var Template = function (args) { return React.createElement(CardDate, __assign({}, args)); };
81
- export var Default = Template.bind({});
82
- Default.args = {
83
- date: "2024-10-31",
84
- showYear: true,
85
- variant: "hybride",
86
- };
87
- export var DisabledHorizontal = Template.bind({});
88
- DisabledHorizontal.args = {
89
- date: "2024-10-31",
90
- showYear: true,
91
- variant: "horizontal",
92
- label: "Clôturé le",
93
- isDisabled: true, // Exemple avec isDisabled
94
- };
95
- export var DisabledVertical = Template.bind({});
96
- DisabledVertical.args = {
97
- date: "2024-10-31",
98
- showYear: true,
99
- variant: "vertical",
100
- label: "Clôturé le",
101
- isDisabled: true, // Exemple avec isDisabled
102
- };
103
- // Ajoutez d'autres histoires si nécessaire
@@ -1,79 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { Heading as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace variant {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- namespace color {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- let options_1: string[];
17
- export { options_1 as options };
18
- }
19
- export { control_1 as control };
20
- }
21
- namespace text {
22
- let control_2: string;
23
- export { control_2 as control };
24
- }
25
- namespace align {
26
- export namespace control_3 {
27
- let type_2: string;
28
- export { type_2 as type };
29
- let options_2: string[];
30
- export { options_2 as options };
31
- }
32
- export { control_3 as control };
33
- }
34
- namespace responsiveSize {
35
- let control_4: string;
36
- export { control_4 as control };
37
- }
38
- namespace as {
39
- export namespace control_5 {
40
- let type_3: string;
41
- export { type_3 as type };
42
- let options_3: string[];
43
- export { options_3 as options };
44
- }
45
- export { control_5 as control };
46
- }
47
- }
48
- export namespace args {
49
- let responsiveSize_1: {
50
- 480: string;
51
- 768: string;
52
- 1024: string;
53
- 1440: string;
54
- };
55
- export { responsiveSize_1 as responsiveSize };
56
- }
57
- export namespace parameters {
58
- namespace backgrounds {
59
- let _default: string;
60
- export { _default as default };
61
- export let values: {
62
- name: string;
63
- value: string;
64
- }[];
65
- }
66
- }
67
- }
68
- export default _default;
69
- export const H1: any;
70
- export const H2: any;
71
- export const H3: any;
72
- export const H4: any;
73
- export const H5: any;
74
- export const H6: any;
75
- export const H7: any;
76
- export const ResponsiveHeading: any;
77
- export const CustomElement: any;
78
- export const CenteredHeading: any;
79
- import Heading from "./Heading";
@@ -1,150 +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 "../../../styles/global.css";
14
- import Heading from "./Heading";
15
- export default {
16
- title: "Components/UI-Variables/Typography/Heading",
17
- component: Heading,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- variant: {
21
- control: {
22
- type: "select",
23
- options: ["h1", "h2", "h3", "h4", "h5", "h6", "h7"],
24
- },
25
- },
26
- color: {
27
- control: {
28
- type: "select",
29
- options: ["bleu-allaw", "mid-grey", "dark-grey", "noir", "pure-white"],
30
- },
31
- },
32
- text: {
33
- control: "text",
34
- },
35
- align: {
36
- control: {
37
- type: "select",
38
- options: ["left", "justify", "center"],
39
- },
40
- },
41
- responsiveSize: {
42
- control: "object",
43
- },
44
- as: {
45
- control: {
46
- type: "select",
47
- options: ["span", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div"],
48
- },
49
- },
50
- },
51
- args: {
52
- // Valeurs par défaut pour tous les stories
53
- responsiveSize: {
54
- 480: "h5",
55
- 768: "h4",
56
- 1024: "h3",
57
- 1440: "h2",
58
- },
59
- },
60
- parameters: {
61
- backgrounds: {
62
- default: "light",
63
- values: [
64
- { name: "grey", value: "#728ea7" },
65
- { name: "light", value: "#ffffff" },
66
- { name: "figma", value: "#404040" },
67
- { name: "dark", value: "#171e25" },
68
- ],
69
- },
70
- },
71
- };
72
- var Template = function (args) { return React.createElement(Heading, __assign({}, args)); };
73
- export var H1 = Template.bind({});
74
- H1.args = {
75
- variant: "h1",
76
- color: "noir",
77
- text: "Poppins – SemiBold – 60px",
78
- as: "h1",
79
- };
80
- export var H2 = Template.bind({});
81
- H2.args = {
82
- variant: "h2",
83
- color: "noir",
84
- text: "Poppins – SemiBold – 36px",
85
- as: "h2",
86
- };
87
- export var H3 = Template.bind({});
88
- H3.args = {
89
- variant: "h3",
90
- color: "noir",
91
- text: "Poppins – SemiBold – 28px",
92
- as: "h3",
93
- };
94
- export var H4 = Template.bind({});
95
- H4.args = {
96
- variant: "h4",
97
- color: "noir",
98
- text: "Poppins – SemiBold – 24px",
99
- as: "h4",
100
- };
101
- export var H5 = Template.bind({});
102
- H5.args = {
103
- variant: "h5",
104
- color: "noir",
105
- text: "Poppins – Medium – 24px",
106
- as: "h5",
107
- };
108
- export var H6 = Template.bind({});
109
- H6.args = {
110
- variant: "h6",
111
- color: "noir",
112
- text: "Poppins – SemiBold – 18px",
113
- as: "h6",
114
- };
115
- export var H7 = Template.bind({});
116
- H7.args = {
117
- variant: "h7",
118
- color: "noir",
119
- text: "Poppins – SemiBold – 14px",
120
- as: "span",
121
- };
122
- export var ResponsiveHeading = Template.bind({});
123
- ResponsiveHeading.args = {
124
- variant: "h6", // Default variant
125
- color: "noir",
126
- text: "This heading changes size based on viewport width",
127
- align: "left",
128
- responsiveSize: {
129
- 480: "h5",
130
- 768: "h4",
131
- 1024: "h3",
132
- 1440: "h2",
133
- },
134
- as: "h2",
135
- };
136
- export var CustomElement = Template.bind({});
137
- CustomElement.args = {
138
- variant: "h3",
139
- color: "bleu-allaw",
140
- text: "This heading uses a paragraph tag",
141
- as: "p",
142
- };
143
- export var CenteredHeading = Template.bind({});
144
- CenteredHeading.args = {
145
- variant: "h3",
146
- color: "bleu-allaw",
147
- text: "This heading is centered",
148
- align: "center",
149
- as: "h3",
150
- };
@@ -1,72 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { Link as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace variant {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- namespace color {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- let options_1: string[];
17
- export { options_1 as options };
18
- }
19
- export { control_1 as control };
20
- }
21
- namespace text {
22
- let control_2: string;
23
- export { control_2 as control };
24
- }
25
- namespace size {
26
- export namespace control_3 {
27
- let type_2: string;
28
- export { type_2 as type };
29
- let options_2: string[];
30
- export { options_2 as options };
31
- }
32
- export { control_3 as control };
33
- }
34
- namespace isUnderline {
35
- let control_4: string;
36
- export { control_4 as control };
37
- export let description: string;
38
- }
39
- namespace hasHoverColor {
40
- let control_5: string;
41
- export { control_5 as control };
42
- let description_1: string;
43
- export { description_1 as description };
44
- }
45
- namespace onClick {
46
- let action: string;
47
- }
48
- }
49
- export namespace parameters {
50
- namespace backgrounds {
51
- let _default: string;
52
- export { _default as default };
53
- export let values: {
54
- name: string;
55
- value: string;
56
- }[];
57
- }
58
- }
59
- }
60
- export default _default;
61
- export const Bold: any;
62
- export const SemiBold: any;
63
- export const Medium: any;
64
- export const BoldSmall: any;
65
- export const SemiBoldSmall: any;
66
- export const MediumSmall: any;
67
- export const ClickableLink: any;
68
- export const UnderlinedLink: any;
69
- export const ClickableUnderlinedLink: any;
70
- export const HoverColorLink: any;
71
- export const HoverColorUnderlinedLink: any;
72
- import Link from "./Link";
@@ -1,164 +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 Link from "./Link";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/UI-Variables/Typography/Link",
17
- component: Link,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- variant: {
21
- control: {
22
- type: "select",
23
- options: ["bold", "semiBold", "medium"],
24
- },
25
- },
26
- color: {
27
- control: {
28
- type: "select",
29
- options: ["bleu-allaw", "mid-grey", "dark-grey", "noir", "pure-white"],
30
- },
31
- },
32
- text: {
33
- control: "text",
34
- },
35
- size: {
36
- control: {
37
- type: "select",
38
- options: ["default", "small"],
39
- },
40
- },
41
- isUnderline: {
42
- control: "boolean",
43
- description: "Ajoute un soulignement au survol",
44
- },
45
- hasHoverColor: {
46
- control: "boolean",
47
- description: "Change la couleur du texte en bleu au survol",
48
- },
49
- onClick: { action: "clicked" },
50
- },
51
- parameters: {
52
- backgrounds: {
53
- default: "light",
54
- values: [
55
- { name: "light", value: "#ffffff" },
56
- { name: "grey", value: "#728ea7" },
57
- { name: "figma", value: "#404040" },
58
- { name: "dark", value: "#171e25" },
59
- ],
60
- },
61
- },
62
- };
63
- var Template = function (args) { return React.createElement(Link, __assign({}, args)); };
64
- export var Bold = Template.bind({});
65
- Bold.args = {
66
- variant: "bold",
67
- color: "noir",
68
- text: "Open Sans - Bold - 16px",
69
- size: "default",
70
- isUnderline: false,
71
- hasHoverColor: false,
72
- };
73
- export var SemiBold = Template.bind({});
74
- SemiBold.args = {
75
- variant: "semiBold",
76
- color: "noir",
77
- text: "Open Sans - SemiBold - 16px",
78
- size: "default",
79
- isUnderline: false,
80
- hasHoverColor: false,
81
- };
82
- export var Medium = Template.bind({});
83
- Medium.args = {
84
- variant: "medium",
85
- color: "noir",
86
- text: "Open Sans - Medium - 16px",
87
- size: "default",
88
- isUnderline: false,
89
- hasHoverColor: false,
90
- };
91
- export var BoldSmall = Template.bind({});
92
- BoldSmall.args = {
93
- variant: "bold",
94
- color: "noir",
95
- text: "Open Sans - Bold - 12px",
96
- size: "small",
97
- isUnderline: false,
98
- hasHoverColor: false,
99
- };
100
- export var SemiBoldSmall = Template.bind({});
101
- SemiBoldSmall.args = {
102
- variant: "semiBold",
103
- color: "noir",
104
- text: "Open Sans - SemiBold - 12px",
105
- size: "small",
106
- isUnderline: false,
107
- hasHoverColor: false,
108
- };
109
- export var MediumSmall = Template.bind({});
110
- MediumSmall.args = {
111
- variant: "medium",
112
- color: "noir",
113
- text: "Open Sans - Medium - 12px",
114
- size: "small",
115
- isUnderline: false,
116
- hasHoverColor: false,
117
- };
118
- export var ClickableLink = Template.bind({});
119
- ClickableLink.args = {
120
- variant: "semiBold",
121
- color: "bleu-allaw",
122
- text: "Cliquez sur moi",
123
- size: "small",
124
- onClick: function () { return console.log("Linke cliqué"); },
125
- isUnderline: false,
126
- hasHoverColor: false,
127
- };
128
- export var UnderlinedLink = Template.bind({});
129
- UnderlinedLink.args = {
130
- variant: "semiBold",
131
- color: "bleu-allaw",
132
- text: "Survolez-moi pour voir le soulignement",
133
- size: "default",
134
- isUnderline: true,
135
- hasHoverColor: false,
136
- };
137
- export var ClickableUnderlinedLink = Template.bind({});
138
- ClickableUnderlinedLink.args = {
139
- variant: "semiBold",
140
- color: "bleu-allaw",
141
- text: "Cliquez et survolez-moi",
142
- size: "small",
143
- onClick: function () { return console.log("Lien cliqué"); },
144
- isUnderline: true,
145
- hasHoverColor: false,
146
- };
147
- export var HoverColorLink = Template.bind({});
148
- HoverColorLink.args = {
149
- variant: "semiBold",
150
- color: "mid-grey",
151
- text: "Survolez-moi pour changer la couleur",
152
- size: "default",
153
- isUnderline: false,
154
- hasHoverColor: true,
155
- };
156
- export var HoverColorUnderlinedLink = Template.bind({});
157
- HoverColorUnderlinedLink.args = {
158
- variant: "semiBold",
159
- color: "dark-grey",
160
- text: "Survolez-moi pour changer la couleur et voir le soulignement",
161
- size: "default",
162
- isUnderline: true,
163
- hasHoverColor: true,
164
- };