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,162 +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 { action } from "@storybook/addon-actions";
14
- import RangeSlider from "./RangeSlider";
15
- import "../../../styles/global.css";
16
- export default {
17
- title: "Components/Molecules/RangeSlider",
18
- component: RangeSlider,
19
- tags: ["autodocs"],
20
- argTypes: {
21
- minValue: {
22
- control: { type: "number" },
23
- description: "Valeur minimale du slider",
24
- },
25
- maxValue: {
26
- control: { type: "number" },
27
- description: "Valeur maximale du slider",
28
- },
29
- step: {
30
- control: { type: "number" },
31
- description: "Pas d'incrémentation",
32
- },
33
- unit: {
34
- control: "text",
35
- description: "Unité à afficher après les valeurs",
36
- },
37
- title: {
38
- control: "text",
39
- description: "Titre du slider",
40
- },
41
- description: {
42
- control: "text",
43
- description: "Description du slider",
44
- },
45
- showRange: {
46
- control: "boolean",
47
- description: "Affiche les valeurs min et max sous le slider",
48
- },
49
- defaultValue: {
50
- control: { type: "object" },
51
- description: "Valeur par défaut [min, max]",
52
- },
53
- isDisabled: {
54
- control: "boolean",
55
- description: "Désactive le slider",
56
- },
57
- onChange: {
58
- action: "changed",
59
- description: "Callback appelé quand la valeur change",
60
- },
61
- },
62
- parameters: {
63
- backgrounds: {
64
- default: "light",
65
- values: [
66
- { name: "light", value: "#ffffff" },
67
- { name: "grey", value: "#728ea7" },
68
- { name: "figma", value: "#404040" },
69
- { name: "dark", value: "#171e25" },
70
- ],
71
- },
72
- },
73
- };
74
- var Template = function (args) { return React.createElement(RangeSlider, __assign({}, args)); };
75
- export var Default = Template.bind({});
76
- Default.args = {
77
- title: "Age de vos contacts",
78
- description: "Sélectionnez l'âge minimum et maximum des contacts à afficher",
79
- minValue: 0,
80
- maxValue: 120,
81
- step: 1,
82
- unit: "",
83
- defaultValue: [0, 120],
84
- showRange: true,
85
- isDisabled: false,
86
- onChange: action("Range changed"),
87
- };
88
- export var WithUnit = Template.bind({});
89
- WithUnit.args = {
90
- title: "Budget mensuel",
91
- description: "Définissez votre budget minimum et maximum",
92
- minValue: 0,
93
- maxValue: 5000,
94
- step: 50,
95
- unit: "€",
96
- defaultValue: [500, 3000],
97
- showRange: true,
98
- isDisabled: false,
99
- onChange: action("Range changed"),
100
- };
101
- export var SimpleRange = Template.bind({});
102
- SimpleRange.args = {
103
- minValue: 0,
104
- maxValue: 100,
105
- step: 5,
106
- unit: "%",
107
- defaultValue: [20, 80],
108
- showRange: true,
109
- isDisabled: false,
110
- onChange: action("Range changed"),
111
- };
112
- export var WithoutRange = Template.bind({});
113
- WithoutRange.args = {
114
- title: "Sélection de plage",
115
- description: "Choisissez vos valeurs préférées",
116
- minValue: 1,
117
- maxValue: 10,
118
- step: 1,
119
- defaultValue: [3, 7],
120
- showRange: false,
121
- isDisabled: false,
122
- onChange: action("Range changed"),
123
- };
124
- export var Disabled = Template.bind({});
125
- Disabled.args = {
126
- title: "Slider désactivé",
127
- description: "Ce slider est en lecture seule",
128
- minValue: 0,
129
- maxValue: 100,
130
- step: 1,
131
- unit: "%",
132
- defaultValue: [25, 75],
133
- showRange: true,
134
- isDisabled: true,
135
- onChange: action("Range changed"),
136
- };
137
- export var LargeRange = Template.bind({});
138
- LargeRange.args = {
139
- title: "Années d'expérience",
140
- description: "Indiquez la plage d'expérience souhaitée",
141
- minValue: 0,
142
- maxValue: 50,
143
- step: 1,
144
- unit: " ans",
145
- defaultValue: [2, 15],
146
- showRange: true,
147
- isDisabled: false,
148
- onChange: action("Range changed"),
149
- };
150
- export var DecimalStep = Template.bind({});
151
- DecimalStep.args = {
152
- title: "Note moyenne",
153
- description: "Sélectionnez la plage de notes",
154
- minValue: 0,
155
- maxValue: 5,
156
- step: 0.5,
157
- unit: "/5",
158
- defaultValue: [2.5, 4.5],
159
- showRange: true,
160
- isDisabled: false,
161
- onChange: action("Range changed"),
162
- };
@@ -1,42 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { Section as component };
4
- export namespace parameters {
5
- let layout: string;
6
- }
7
- export namespace argTypes {
8
- export namespace title_1 {
9
- let control: string;
10
- let description: string;
11
- }
12
- export { title_1 as title };
13
- export namespace number {
14
- let control_1: string;
15
- export { control_1 as control };
16
- let description_1: string;
17
- export { description_1 as description };
18
- }
19
- export namespace actions {
20
- let control_2: boolean;
21
- export { control_2 as control };
22
- let description_2: string;
23
- export { description_2 as description };
24
- }
25
- export namespace children {
26
- let control_3: boolean;
27
- export { control_3 as control };
28
- let description_3: string;
29
- export { description_3 as description };
30
- }
31
- }
32
- }
33
- export default _default;
34
- export const Default: any;
35
- export const WithoutIcon: any;
36
- export const WithoutNumber: any;
37
- export const WithoutActions: any;
38
- export const Minimal: any;
39
- export const LongTitle: any;
40
- export const MultipleActions: any;
41
- export const DisabledActions: any;
42
- import Section from "./Section";
@@ -1,162 +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 Section from "./Section";
14
- var PlusIcon = function () { return (React.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
15
- React.createElement("path", { d: "M8 3.33333V12.6667M3.33333 8H12.6667", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }))); };
16
- export default {
17
- title: "Molecules/Section",
18
- component: Section,
19
- parameters: {
20
- layout: "padded",
21
- },
22
- argTypes: {
23
- title: {
24
- control: "text",
25
- description: "The title of the section",
26
- },
27
- number: {
28
- control: "number",
29
- description: "The number to display in the badge",
30
- },
31
- actions: {
32
- control: false,
33
- description: "Array of action buttons",
34
- },
35
- children: {
36
- control: false,
37
- description: "Content to display in the section",
38
- },
39
- },
40
- };
41
- var Template = function (args) { return React.createElement(Section, __assign({}, args)); };
42
- export var Default = Template.bind({});
43
- Default.args = {
44
- icon: "allaw-icon-document",
45
- title: "Documents partagés",
46
- number: 5,
47
- actions: [
48
- {
49
- label: "Transférer",
50
- onClick: function () { return console.log("Transfer clicked"); },
51
- variant: "secondary",
52
- },
53
- {
54
- label: "Demander",
55
- onClick: function () { return console.log("Request clicked"); },
56
- variant: "primary",
57
- icon: React.createElement(PlusIcon, null),
58
- },
59
- ],
60
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "Content area - Add your content here")),
61
- };
62
- export var WithoutIcon = Template.bind({});
63
- WithoutIcon.args = {
64
- title: "Section without icon",
65
- number: 3,
66
- actions: [
67
- {
68
- label: "Action",
69
- onClick: function () { return console.log("Action clicked"); },
70
- variant: "primary",
71
- },
72
- ],
73
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "This section has no icon")),
74
- };
75
- export var WithoutNumber = Template.bind({});
76
- WithoutNumber.args = {
77
- icon: "allaw-icon-document",
78
- title: "Section without number",
79
- actions: [
80
- {
81
- label: "Primary Action",
82
- onClick: function () { return console.log("Primary clicked"); },
83
- variant: "primary",
84
- },
85
- {
86
- label: "Secondary Action",
87
- onClick: function () { return console.log("Secondary clicked"); },
88
- variant: "secondary",
89
- },
90
- ],
91
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "This section has no number badge")),
92
- };
93
- export var WithoutActions = Template.bind({});
94
- WithoutActions.args = {
95
- icon: "allaw-icon-document",
96
- title: "Section without actions",
97
- number: 10,
98
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "This section has no action buttons")),
99
- };
100
- export var Minimal = Template.bind({});
101
- Minimal.args = {
102
- title: "Minimal section",
103
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "Just title and content")),
104
- };
105
- export var LongTitle = Template.bind({});
106
- LongTitle.args = {
107
- icon: "allaw-icon-document",
108
- title: "This is a very long title that should be truncated properly",
109
- number: 99,
110
- actions: [
111
- {
112
- label: "Action",
113
- onClick: function () { return console.log("Action clicked"); },
114
- variant: "primary",
115
- },
116
- ],
117
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "Long title example")),
118
- };
119
- export var MultipleActions = Template.bind({});
120
- MultipleActions.args = {
121
- icon: "allaw-icon-document",
122
- title: "Multiple Actions",
123
- number: 7,
124
- actions: [
125
- {
126
- label: "Edit",
127
- onClick: function () { return console.log("Edit clicked"); },
128
- variant: "secondary",
129
- },
130
- {
131
- label: "Delete",
132
- onClick: function () { return console.log("Delete clicked"); },
133
- variant: "secondary",
134
- },
135
- {
136
- label: "Save",
137
- onClick: function () { return console.log("Save clicked"); },
138
- variant: "primary",
139
- },
140
- ],
141
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "Section with multiple action buttons")),
142
- };
143
- export var DisabledActions = Template.bind({});
144
- DisabledActions.args = {
145
- icon: "allaw-icon-document",
146
- title: "Disabled Actions",
147
- number: 2,
148
- actions: [
149
- {
150
- label: "Disabled Action",
151
- onClick: function () { return console.log("This won't be called"); },
152
- variant: "secondary",
153
- disabled: true,
154
- },
155
- {
156
- label: "Enabled Action",
157
- onClick: function () { return console.log("This will work"); },
158
- variant: "primary",
159
- },
160
- ],
161
- children: (React.createElement("div", { style: { padding: "20px", textAlign: "center", color: "#728ea7" } }, "One action is disabled")),
162
- };
@@ -1,70 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { SegmentedControl as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace size {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- namespace fullWidth {
13
- let control_1: string;
14
- export { control_1 as control };
15
- }
16
- namespace disabled {
17
- let control_2: string;
18
- export { control_2 as control };
19
- }
20
- }
21
- }
22
- export default _default;
23
- export const Small: any;
24
- export const Medium: any;
25
- export const Large: any;
26
- export const FullWidth: any;
27
- export const Disabled: any;
28
- export function Responsive(args: any): React.JSX.Element;
29
- export namespace Responsive {
30
- namespace args {
31
- export { baseOptions as options };
32
- export let value: string;
33
- let size_1: string;
34
- export { size_1 as size };
35
- let fullWidth_1: boolean;
36
- export { fullWidth_1 as fullWidth };
37
- }
38
- }
39
- export const CalendarIcons: any;
40
- export const ContentWidth: any;
41
- export const Default: any;
42
- export function ResponsiveColumn(args: any): React.JSX.Element;
43
- export namespace ResponsiveColumn {
44
- export namespace args_1 {
45
- let options_1: {
46
- id: string;
47
- label: string;
48
- icon: string;
49
- iconSize: number;
50
- shortLabel: string;
51
- }[];
52
- export { options_1 as options };
53
- let value_1: string;
54
- export { value_1 as value };
55
- let size_2: string;
56
- export { size_2 as size };
57
- let fullWidth_2: boolean;
58
- export { fullWidth_2 as fullWidth };
59
- }
60
- export { args_1 as args };
61
- }
62
- import SegmentedControl from "./SegmentedControl";
63
- import React from "react";
64
- declare const baseOptions: {
65
- id: string;
66
- label: string;
67
- icon: string;
68
- iconSize: number;
69
- shortLabel: string;
70
- }[];
@@ -1,185 +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 SegmentedControl from "./SegmentedControl";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Molecules/SegmentedControl",
17
- component: SegmentedControl,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- size: { control: { type: "select", options: ["sm", "md", "lg"] } },
21
- fullWidth: { control: "boolean" },
22
- disabled: { control: "boolean" },
23
- },
24
- };
25
- var baseOptions = [
26
- {
27
- id: "google",
28
- label: "Google",
29
- icon: "allaw-icon-google",
30
- iconSize: 24,
31
- shortLabel: "G",
32
- },
33
- {
34
- id: "linkedin",
35
- label: "LinkedIn",
36
- icon: "allaw-icon-linkedin",
37
- iconSize: 24,
38
- shortLabel: "In",
39
- },
40
- {
41
- id: "user",
42
- label: "Utilisateur",
43
- icon: "allaw-icon-user",
44
- iconSize: 24,
45
- shortLabel: "U",
46
- },
47
- ];
48
- var calendarOptions = [
49
- {
50
- id: "googlecal",
51
- label: "Google Calendar",
52
- icon: "allaw-icon-google-calendar",
53
- iconSize: 24,
54
- shortLabel: "GCal",
55
- },
56
- {
57
- id: "microsoft",
58
- label: "Microsoft",
59
- icon: "allaw-icon-microsoft",
60
- iconSize: 24,
61
- shortLabel: "MS",
62
- },
63
- {
64
- id: "user",
65
- label: "Utilisateur",
66
- icon: "allaw-icon-user",
67
- iconSize: 24,
68
- shortLabel: "U",
69
- },
70
- ];
71
- var Template = function (args) {
72
- var _a = useState(args.value || args.options[0].id), value = _a[0], setValue = _a[1];
73
- return React.createElement(SegmentedControl, __assign({}, args, { value: value, onChange: setValue }));
74
- };
75
- export var Small = Template.bind({});
76
- Small.args = {
77
- options: baseOptions,
78
- value: "google",
79
- size: "sm",
80
- };
81
- export var Medium = Template.bind({});
82
- Medium.args = {
83
- options: baseOptions,
84
- value: "linkedin",
85
- size: "md",
86
- };
87
- export var Large = Template.bind({});
88
- Large.args = {
89
- options: baseOptions,
90
- value: "user",
91
- size: "lg",
92
- };
93
- export var FullWidth = Template.bind({});
94
- FullWidth.args = {
95
- options: baseOptions,
96
- value: "google",
97
- size: "md",
98
- fullWidth: true,
99
- };
100
- export var Disabled = Template.bind({});
101
- Disabled.args = {
102
- options: baseOptions,
103
- value: "google",
104
- size: "md",
105
- disabled: true,
106
- };
107
- export var Responsive = function (args) {
108
- var _a = useState(args.value || args.options[0].id), value = _a[0], setValue = _a[1];
109
- return (React.createElement("div", { style: { maxWidth: 280, border: "1px dashed #ccc", padding: 8 } },
110
- React.createElement(SegmentedControl, __assign({}, args, { value: value, onChange: setValue }))));
111
- };
112
- Responsive.args = {
113
- options: baseOptions,
114
- value: "google",
115
- size: "md",
116
- fullWidth: false,
117
- };
118
- export var CalendarIcons = Template.bind({});
119
- CalendarIcons.args = {
120
- options: calendarOptions,
121
- value: "googlecal",
122
- size: "md",
123
- };
124
- export var ContentWidth = Template.bind({});
125
- ContentWidth.args = {
126
- options: baseOptions,
127
- value: "google",
128
- size: "md",
129
- fullWidth: false,
130
- };
131
- export var Default = Template.bind({});
132
- Default.args = {
133
- options: [
134
- {
135
- id: "googlecal",
136
- label: "Google Calendar",
137
- icon: "allaw-icon-google-calendar",
138
- iconSize: 24,
139
- shortLabel: "GCal",
140
- },
141
- {
142
- id: "microsoft",
143
- label: "Microsoft Outlook",
144
- icon: "allaw-icon-microsoft-outlook",
145
- iconSize: 24,
146
- shortLabel: "Outlook",
147
- },
148
- ],
149
- value: "googlecal",
150
- size: "md",
151
- fullWidth: false,
152
- };
153
- export var ResponsiveColumn = function (args) {
154
- var _a = React.useState(args.value || args.options[0].id), value = _a[0], setValue = _a[1];
155
- return (React.createElement("div", { style: { maxWidth: 350, border: "1px dashed #ccc", padding: 8 } },
156
- React.createElement(SegmentedControl, __assign({}, args, { value: value, onChange: setValue }))));
157
- };
158
- ResponsiveColumn.args = {
159
- options: [
160
- {
161
- id: "googlecal",
162
- label: "Google Calendar",
163
- icon: "allaw-icon-google-calendar",
164
- iconSize: 24,
165
- shortLabel: "GCal",
166
- },
167
- {
168
- id: "microsoft",
169
- label: "Microsoft Outlook",
170
- icon: "allaw-icon-microsoft-outlook",
171
- iconSize: 24,
172
- shortLabel: "Outlook",
173
- },
174
- {
175
- id: "user",
176
- label: "Utilisateur",
177
- icon: "allaw-icon-user",
178
- iconSize: 24,
179
- shortLabel: "U",
180
- },
181
- ],
182
- value: "googlecal",
183
- size: "md",
184
- fullWidth: false,
185
- };
@@ -1,79 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { SelectForm as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace label {
7
- let control: string;
8
- }
9
- namespace isRequired {
10
- let control_1: string;
11
- export { control_1 as control };
12
- }
13
- namespace options {
14
- let control_2: string;
15
- export { control_2 as control };
16
- }
17
- namespace isMultiple {
18
- let control_3: string;
19
- export { control_3 as control };
20
- }
21
- namespace maxItems {
22
- export namespace control_4 {
23
- let type: string;
24
- let min: number;
25
- }
26
- export { control_4 as control };
27
- export namespace _if {
28
- let arg: string;
29
- let truthy: boolean;
30
- }
31
- export { _if as if };
32
- }
33
- namespace width {
34
- export namespace control_5 {
35
- let type_1: string;
36
- export { type_1 as type };
37
- let min_1: number;
38
- export { min_1 as min };
39
- export let max: number;
40
- }
41
- export { control_5 as control };
42
- }
43
- namespace selectedItem {
44
- let control_6: string;
45
- export { control_6 as control };
46
- }
47
- namespace variant {
48
- export namespace control_7 {
49
- let type_2: string;
50
- export { type_2 as type };
51
- let options_1: string[];
52
- export { options_1 as options };
53
- }
54
- export { control_7 as control };
55
- }
56
- namespace color {
57
- export namespace control_8 {
58
- let type_3: string;
59
- export { type_3 as type };
60
- let options_2: string[];
61
- export { options_2 as options };
62
- }
63
- export { control_8 as control };
64
- }
65
- namespace isPrefilled {
66
- let control_9: string;
67
- export { control_9 as control };
68
- export let description: string;
69
- }
70
- }
71
- }
72
- export default _default;
73
- export const Default: any;
74
- export const Multiple: any;
75
- export const CustomWidth: any;
76
- export const WithSelectedItem: any;
77
- export const Prefilled: any;
78
- export const PrefilledEmpty: any;
79
- import SelectForm from "./SelectForm";