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,70 +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 AppointementStatusTag from "./AppointementStatusTag";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Tags/AppointementStatusTag",
17
- component: AppointementStatusTag,
18
- tags: ["autodocs"],
19
- };
20
- var Template = function (args) { return React.createElement(AppointementStatusTag, __assign({}, args)); };
21
- export var Confirmed = Template.bind({});
22
- Confirmed.args = {
23
- status: "confirmed",
24
- variant: "default",
25
- };
26
- export var Pending = Template.bind({});
27
- Pending.args = {
28
- status: "pending",
29
- variant: "default",
30
- };
31
- export var Available = Template.bind({});
32
- Available.args = {
33
- status: "available",
34
- variant: "default",
35
- };
36
- export var Unavailable = Template.bind({});
37
- Unavailable.args = {
38
- status: "unavailable",
39
- variant: "default",
40
- };
41
- export var Cancelled = Template.bind({});
42
- Cancelled.args = {
43
- status: "cancelled",
44
- variant: "default",
45
- };
46
- export var Passed = Template.bind({});
47
- Passed.args = {
48
- status: "passed",
49
- variant: "default",
50
- };
51
- export var RefusedStatus = Template.bind({});
52
- RefusedStatus.args = {
53
- status: "refused",
54
- variant: "default",
55
- };
56
- export var ConfirmedBig = Template.bind({});
57
- ConfirmedBig.args = {
58
- status: "confirmed",
59
- variant: "big",
60
- };
61
- export var PassedBig = Template.bind({});
62
- PassedBig.args = {
63
- status: "passed",
64
- variant: "big",
65
- };
66
- export var CancelledBigVariant = Template.bind({});
67
- CancelledBigVariant.args = {
68
- status: "cancelled",
69
- variant: "big",
70
- };
@@ -1,28 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { FolderStatusTag as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- namespace status {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- }
13
- export namespace parameters {
14
- namespace backgrounds {
15
- let _default: string;
16
- export { _default as default };
17
- export let values: {
18
- name: string;
19
- value: string;
20
- }[];
21
- }
22
- }
23
- }
24
- export default _default;
25
- export const Open: any;
26
- export const Closed: any;
27
- export const Bloqued: any;
28
- import FolderStatusTag from "./FolderStatusTag";
@@ -1,51 +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 FolderStatusTag from "./FolderStatusTag";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Tags/FolderStatusTag",
17
- component: FolderStatusTag,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- status: {
21
- control: {
22
- type: "select",
23
- options: ["OPEN", "CLOSED", "BLOCKED"],
24
- },
25
- },
26
- },
27
- parameters: {
28
- backgrounds: {
29
- default: "light",
30
- values: [
31
- { name: "light", value: "#ffffff" },
32
- { name: "grey", value: "#728ea7" },
33
- { name: "figma", value: "#404040" },
34
- { name: "dark", value: "#171e25" },
35
- ],
36
- },
37
- },
38
- };
39
- var Template = function (args) { return React.createElement(FolderStatusTag, __assign({}, args)); };
40
- export var Open = Template.bind({});
41
- Open.args = {
42
- status: "OPEN",
43
- };
44
- export var Closed = Template.bind({});
45
- Closed.args = {
46
- status: "CLOSED",
47
- };
48
- export var Bloqued = Template.bind({});
49
- Bloqued.args = {
50
- status: "BLOCKED",
51
- };
@@ -1,109 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { InlineTag as component };
4
- export namespace argTypes {
5
- namespace text {
6
- namespace control {
7
- let type: string;
8
- }
9
- let description: string;
10
- }
11
- namespace size {
12
- export namespace control_1 {
13
- let type_1: string;
14
- export { type_1 as type };
15
- }
16
- export { control_1 as control };
17
- export let options: string[];
18
- let description_1: string;
19
- export { description_1 as description };
20
- }
21
- namespace weight {
22
- export namespace control_2 {
23
- let type_2: string;
24
- export { type_2 as type };
25
- }
26
- export { control_2 as control };
27
- let options_1: string[];
28
- export { options_1 as options };
29
- let description_2: string;
30
- export { description_2 as description };
31
- }
32
- namespace backgroundColor {
33
- export namespace control_3 {
34
- let type_3: string;
35
- export { type_3 as type };
36
- }
37
- export { control_3 as control };
38
- let options_2: string[];
39
- export { options_2 as options };
40
- let description_3: string;
41
- export { description_3 as description };
42
- }
43
- namespace startIcon {
44
- export namespace control_4 {
45
- let type_4: string;
46
- export { type_4 as type };
47
- }
48
- export { control_4 as control };
49
- let description_4: string;
50
- export { description_4 as description };
51
- }
52
- namespace style {
53
- export namespace control_5 {
54
- let type_5: string;
55
- export { type_5 as type };
56
- }
57
- export { control_5 as control };
58
- let options_3: string[];
59
- export { options_3 as options };
60
- let description_5: string;
61
- export { description_5 as description };
62
- }
63
- }
64
- export namespace parameters {
65
- namespace docs {
66
- export namespace description_6 {
67
- let component: string;
68
- }
69
- export { description_6 as description };
70
- }
71
- }
72
- }
73
- export default _default;
74
- export const Default: any;
75
- export const WithIcon: any;
76
- export const Error: any;
77
- export const Warning: any;
78
- export const Small: any;
79
- export const BorderStyle: any;
80
- export const BorderWithIcon: any;
81
- export function AllVariants(): React.JSX.Element;
82
- export namespace AllVariants {
83
- export namespace parameters_1 {
84
- export namespace docs_1 {
85
- export namespace description_7 {
86
- let story: string;
87
- }
88
- export { description_7 as description };
89
- }
90
- export { docs_1 as docs };
91
- }
92
- export { parameters_1 as parameters };
93
- }
94
- export function AllBorderVariants(): React.JSX.Element;
95
- export namespace AllBorderVariants {
96
- export namespace parameters_2 {
97
- export namespace docs_2 {
98
- export namespace description_8 {
99
- let story_1: string;
100
- export { story_1 as story };
101
- }
102
- export { description_8 as description };
103
- }
104
- export { docs_2 as docs };
105
- }
106
- export { parameters_2 as parameters };
107
- }
108
- import InlineTag from "./InlineTag";
109
- import React from "react";
@@ -1,159 +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 { Meta, StoryFn } from "@storybook/react";
14
- import InlineTag, { InlineTagProps } from "./InlineTag";
15
- export default {
16
- title: "Components/Atoms/Tags/InlineTag",
17
- component: InlineTag,
18
- argTypes: {
19
- text: {
20
- control: { type: "text" },
21
- description: "Texte à afficher dans le tag",
22
- },
23
- size: {
24
- control: { type: "select" },
25
- options: ["14", "12"],
26
- description: "Taille du texte",
27
- },
28
- weight: {
29
- control: { type: "select" },
30
- options: ["medium", "semiBold", "bold"],
31
- description: "Graisse du texte",
32
- },
33
- backgroundColor: {
34
- control: { type: "select" },
35
- options: [
36
- "bleu-allaw",
37
- "actions-error",
38
- "actions-valid",
39
- "actions-warning",
40
- "mid-grey",
41
- ],
42
- description: "Couleur de fond du tag",
43
- },
44
- startIcon: {
45
- control: { type: "text" },
46
- description: "Icône à afficher au début (classe CSS)",
47
- },
48
- style: {
49
- control: { type: "select" },
50
- options: ["default", "border"],
51
- description: "Style du tag (default: fond coloré, border: bordure colorée)",
52
- },
53
- },
54
- parameters: {
55
- docs: {
56
- description: {
57
- component: "Composant InlineTag - Tag personnalisable avec TinyInfo, couleurs et icônes.",
58
- },
59
- },
60
- },
61
- };
62
- var Template = function (args) { return React.createElement(InlineTag, __assign({}, args)); };
63
- export var Default = Template.bind({});
64
- Default.args = {
65
- text: "Tag par défaut",
66
- size: "14",
67
- weight: "medium",
68
- backgroundColor: "bleu-allaw",
69
- };
70
- export var WithIcon = Template.bind({});
71
- WithIcon.args = {
72
- text: "Certifié",
73
- size: "14",
74
- weight: "semiBold",
75
- backgroundColor: "actions-valid",
76
- startIcon: "allaw-icon-check",
77
- };
78
- export var Error = Template.bind({});
79
- Error.args = {
80
- text: "Erreur",
81
- size: "12",
82
- weight: "medium",
83
- backgroundColor: "actions-error",
84
- startIcon: "allaw-icon-alert",
85
- };
86
- export var Warning = Template.bind({});
87
- Warning.args = {
88
- text: "Attention",
89
- size: "14",
90
- weight: "bold",
91
- backgroundColor: "actions-warning",
92
- startIcon: "allaw-icon-warning",
93
- };
94
- export var Small = Template.bind({});
95
- Small.args = {
96
- text: "Petit",
97
- size: "12",
98
- weight: "medium",
99
- backgroundColor: "mid-grey",
100
- };
101
- export var BorderStyle = Template.bind({});
102
- BorderStyle.args = {
103
- text: "Style Border",
104
- size: "14",
105
- weight: "medium",
106
- backgroundColor: "bleu-allaw",
107
- style: "border",
108
- };
109
- export var BorderWithIcon = Template.bind({});
110
- BorderWithIcon.args = {
111
- text: "Certifié",
112
- size: "14",
113
- weight: "semiBold",
114
- backgroundColor: "actions-valid",
115
- startIcon: "allaw-icon-check",
116
- style: "border",
117
- };
118
- export var AllVariants = function () { return (React.createElement("div", { style: {
119
- display: "flex",
120
- flexWrap: "wrap",
121
- gap: "12px",
122
- alignItems: "center",
123
- } },
124
- React.createElement(InlineTag, { text: "Bleu Allaw", backgroundColor: "bleu-allaw" }),
125
- React.createElement(InlineTag, { text: "Succ\u00E8s", backgroundColor: "actions-valid", startIcon: "allaw-icon-check" }),
126
- React.createElement(InlineTag, { text: "Erreur", backgroundColor: "actions-error", startIcon: "allaw-icon-alert" }),
127
- React.createElement(InlineTag, { text: "Attention", backgroundColor: "actions-warning", startIcon: "allaw-icon-warning" }),
128
- React.createElement(InlineTag, { text: "Neutre", backgroundColor: "mid-grey" }),
129
- React.createElement(InlineTag, { text: "Petit 12px", size: "12", backgroundColor: "bleu-allaw" }),
130
- React.createElement(InlineTag, { text: "Gras", weight: "bold", backgroundColor: "actions-valid" }),
131
- React.createElement(InlineTag, { text: "Semi-Bold", weight: "semiBold", backgroundColor: "bleu-allaw" }))); };
132
- AllVariants.parameters = {
133
- docs: {
134
- description: {
135
- story: "Toutes les variantes du composant InlineTag avec différentes couleurs, tailles et styles.",
136
- },
137
- },
138
- };
139
- export var AllBorderVariants = function () { return (React.createElement("div", { style: {
140
- display: "flex",
141
- flexWrap: "wrap",
142
- gap: "12px",
143
- alignItems: "center",
144
- } },
145
- React.createElement(InlineTag, { text: "Bleu Allaw", backgroundColor: "bleu-allaw", style: "border" }),
146
- React.createElement(InlineTag, { text: "Succ\u00E8s", backgroundColor: "actions-valid", startIcon: "allaw-icon-check", style: "border" }),
147
- React.createElement(InlineTag, { text: "Erreur", backgroundColor: "actions-error", startIcon: "allaw-icon-alert", style: "border" }),
148
- React.createElement(InlineTag, { text: "Attention", backgroundColor: "actions-warning", startIcon: "allaw-icon-warning", style: "border" }),
149
- React.createElement(InlineTag, { text: "Neutre", backgroundColor: "mid-grey", style: "border" }),
150
- React.createElement(InlineTag, { text: "Petit 12px", size: "12", backgroundColor: "bleu-allaw", style: "border" }),
151
- React.createElement(InlineTag, { text: "Gras", weight: "bold", backgroundColor: "actions-valid", style: "border" }),
152
- React.createElement(InlineTag, { text: "Semi-Bold", weight: "semiBold", backgroundColor: "bleu-allaw", style: "border" }))); };
153
- AllBorderVariants.parameters = {
154
- docs: {
155
- description: {
156
- story: "Toutes les variantes du composant InlineTag avec le style border.",
157
- },
158
- },
159
- };
@@ -1,99 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { OtherStatusTag as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- export namespace label {
7
- namespace control {
8
- let type: string;
9
- }
10
- let description: string;
11
- }
12
- export namespace type_1 {
13
- export namespace control_1 {
14
- let type_2: string;
15
- export { type_2 as type };
16
- export let options: string[];
17
- }
18
- export { control_1 as control };
19
- let description_1: string;
20
- export { description_1 as description };
21
- }
22
- export { type_1 as type };
23
- export namespace startIcon {
24
- export namespace control_2 {
25
- let type_3: string;
26
- export { type_3 as type };
27
- }
28
- export { control_2 as control };
29
- let description_2: string;
30
- export { description_2 as description };
31
- }
32
- export namespace startIconName {
33
- export namespace control_3 {
34
- let type_4: string;
35
- export { type_4 as type };
36
- }
37
- export { control_3 as control };
38
- let description_3: string;
39
- export { description_3 as description };
40
- }
41
- export namespace labelLimit {
42
- export namespace control_4 {
43
- let type_5: string;
44
- export { type_5 as type };
45
- }
46
- export { control_4 as control };
47
- let description_4: string;
48
- export { description_4 as description };
49
- }
50
- export namespace style {
51
- export namespace control_5 {
52
- let type_6: string;
53
- export { type_6 as type };
54
- let options_1: string[];
55
- export { options_1 as options };
56
- }
57
- export { control_5 as control };
58
- let description_5: string;
59
- export { description_5 as description };
60
- export let defaultValue: string;
61
- }
62
- export namespace informationColor {
63
- export namespace control_6 {
64
- let type_7: string;
65
- export { type_7 as type };
66
- let options_2: string[];
67
- export { options_2 as options };
68
- }
69
- export { control_6 as control };
70
- let description_6: string;
71
- export { description_6 as description };
72
- let defaultValue_1: string;
73
- export { defaultValue_1 as defaultValue };
74
- }
75
- }
76
- export namespace parameters {
77
- namespace backgrounds {
78
- let _default: string;
79
- export { _default as default };
80
- export let values: {
81
- name: string;
82
- value: string;
83
- }[];
84
- }
85
- }
86
- }
87
- export default _default;
88
- export const ReadOnly: any;
89
- export const ReadOnlyWithIcon: any;
90
- export const Editable: any;
91
- export const Information: any;
92
- export const LongLabel: any;
93
- export const LongLabelWithoutLimit: any;
94
- export const ReadOnlyCompact: any;
95
- export const ReadOnlyWithIconCompact: any;
96
- export const EditableCompact: any;
97
- export const InformationCompact: any;
98
- export const LongLabelCompact: any;
99
- import OtherStatusTag from "./OtherStatusTag";
@@ -1,160 +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 OtherStatusTag from "./OtherStatusTag";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Tags/OtherStatusTag",
17
- component: OtherStatusTag,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- label: {
21
- control: {
22
- type: "text",
23
- },
24
- description: "Texte à afficher dans le tag",
25
- },
26
- type: {
27
- control: {
28
- type: "select",
29
- options: ["readonly", "editable", "information"],
30
- },
31
- description: "Type de tag à afficher",
32
- },
33
- startIcon: {
34
- control: {
35
- type: "boolean",
36
- },
37
- description: "Afficher une icône au début",
38
- },
39
- startIconName: {
40
- control: {
41
- type: "text",
42
- },
43
- description: "Nom de l'icône à afficher",
44
- },
45
- labelLimit: {
46
- control: {
47
- type: "number",
48
- },
49
- description: "Nombre maximum de caractères avant troncature",
50
- },
51
- style: {
52
- control: {
53
- type: "select",
54
- options: ["normal", "compact"],
55
- },
56
- description: "Style du tag (normal ou compact)",
57
- defaultValue: "normal",
58
- },
59
- informationColor: {
60
- control: {
61
- type: "select",
62
- options: ["blue", "green", "red", "orange"],
63
- },
64
- description: "Couleur du tag d'information",
65
- defaultValue: "blue",
66
- },
67
- },
68
- parameters: {
69
- backgrounds: {
70
- default: "light",
71
- values: [
72
- { name: "light", value: "#ffffff" },
73
- { name: "grey", value: "#728ea7" },
74
- { name: "figma", value: "#404040" },
75
- { name: "dark", value: "#171e25" },
76
- ],
77
- },
78
- },
79
- };
80
- var Template = function (args) { return React.createElement(OtherStatusTag, __assign({}, args)); };
81
- export var ReadOnly = Template.bind({});
82
- ReadOnly.args = {
83
- label: "Tags",
84
- type: "readonly",
85
- startIcon: false,
86
- startIconName: "allaw-icon-pmr",
87
- };
88
- export var ReadOnlyWithIcon = Template.bind({});
89
- ReadOnlyWithIcon.args = {
90
- label: "Rue des Ormes",
91
- type: "readonly",
92
- startIcon: true,
93
- startIconName: "allaw-icon-map-pin",
94
- };
95
- export var Editable = Template.bind({});
96
- Editable.args = {
97
- label: "Tags",
98
- type: "editable",
99
- startIcon: false,
100
- startIconName: "allaw-icon-pmr",
101
- };
102
- export var Information = Template.bind({});
103
- Information.args = {
104
- label: "Informations",
105
- type: "information",
106
- startIcon: true,
107
- startIconName: "allaw-icon-pmr",
108
- informationColor: "blue",
109
- };
110
- export var LongLabel = Template.bind({});
111
- LongLabel.args = {
112
- label: "Un très long label qui sera tronqué automatiquement",
113
- type: "readonly",
114
- labelLimit: 20,
115
- };
116
- export var LongLabelWithoutLimit = Template.bind({});
117
- LongLabelWithoutLimit.args = {
118
- label: "Un très long label qui ne sera pas tronqué",
119
- type: "readonly",
120
- };
121
- // Documentation supplémentaire
122
- LongLabel.parameters = {
123
- docs: {
124
- description: {
125
- story: "Exemple avec un label long et une limite de caractères",
126
- },
127
- },
128
- };
129
- LongLabelWithoutLimit.parameters = {
130
- docs: {
131
- description: {
132
- story: "Exemple avec un label long sans limite de caractères",
133
- },
134
- },
135
- };
136
- export var ReadOnlyCompact = Template.bind({});
137
- ReadOnlyCompact.args = __assign(__assign({}, ReadOnly.args), { style: "compact" });
138
- export var ReadOnlyWithIconCompact = Template.bind({});
139
- ReadOnlyWithIconCompact.args = __assign(__assign({}, ReadOnlyWithIcon.args), { style: "compact" });
140
- export var EditableCompact = Template.bind({});
141
- EditableCompact.args = __assign(__assign({}, Editable.args), { style: "compact" });
142
- export var InformationCompact = Template.bind({});
143
- InformationCompact.args = __assign(__assign({}, Information.args), { style: "compact" });
144
- export var LongLabelCompact = Template.bind({});
145
- LongLabelCompact.args = __assign(__assign({}, LongLabel.args), { style: "compact" });
146
- // Documentation pour les variantes compactes
147
- ReadOnlyCompact.parameters = {
148
- docs: {
149
- description: {
150
- story: "Version compacte du tag en lecture seule",
151
- },
152
- },
153
- };
154
- EditableCompact.parameters = {
155
- docs: {
156
- description: {
157
- story: "Version compacte du tag éditable",
158
- },
159
- },
160
- };