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.
- package/dist/components/atoms/buttons/ActionButton.d.ts +1 -1
- package/dist/components/atoms/buttons/ActionButton.js +2 -2
- package/dist/components/molecules/proSwitch/ProSwitchModal.js +0 -2
- package/package.json +12 -19
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -110
- package/dist/components/atoms/buttons/ActionButton.stories.js +0 -171
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
- package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
- package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -51
- package/dist/components/atoms/buttons/IconButton.stories.js +0 -100
- package/dist/components/atoms/buttons/InboxButton.stories.d.ts +0 -68
- package/dist/components/atoms/buttons/InboxButton.stories.js +0 -143
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -67
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -168
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -121
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -187
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
- package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -167
- package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -113
- package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
- package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
- package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
- package/dist/components/atoms/filter/Filter.stories.js +0 -77
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -10
- package/dist/components/atoms/filters/SingleFilter.stories.js +0 -84
- package/dist/components/atoms/inputs/Input.stories.d.ts +0 -85
- package/dist/components/atoms/inputs/Input.stories.js +0 -169
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -142
- package/dist/components/atoms/inputs/SearchBar.stories.js +0 -197
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
- package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -38
- package/dist/components/atoms/radios/RadioButton.stories.js +0 -87
- package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
- package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
- package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
- package/dist/components/atoms/selects/Select.stories.d.ts +0 -133
- package/dist/components/atoms/selects/Select.stories.js +0 -299
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
- package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
- package/dist/components/atoms/tags/InlineTag.stories.d.ts +0 -109
- package/dist/components/atoms/tags/InlineTag.stories.js +0 -159
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -99
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -160
- package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
- package/dist/components/atoms/typography/CardDate.stories.js +0 -103
- package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
- package/dist/components/atoms/typography/Heading.stories.js +0 -150
- package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
- package/dist/components/atoms/typography/Link.stories.js +0 -164
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
- package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
- package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
- package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
- package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
- package/dist/components/molecules/AiText/aiText.stories.d.ts +0 -43
- package/dist/components/molecules/AiText/aiText.stories.js +0 -216
- package/dist/components/molecules/DataStepper/Stepper.stories.d.ts +0 -8
- package/dist/components/molecules/DataStepper/Stepper.stories.js +0 -248
- package/dist/components/molecules/appointmentCard/AppointmentCard.stories.d.ts +0 -37
- package/dist/components/molecules/appointmentCard/AppointmentCard.stories.js +0 -106
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -95
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -204
- package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
- package/dist/components/molecules/banner/Banner.stories.js +0 -123
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
- package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
- package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
- package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
- package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
- package/dist/components/molecules/brands/Brands.stories.js +0 -66
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
- package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -69
- package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -84
- package/dist/components/molecules/contactCard/ContactCardEdit.stories.d.ts +0 -88
- package/dist/components/molecules/contactCard/ContactCardEdit.stories.js +0 -106
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -291
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -185
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -72
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -108
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
- package/dist/components/molecules/emptyMessage/EmptyMessage.stories.d.ts +0 -75
- package/dist/components/molecules/emptyMessage/EmptyMessage.stories.js +0 -115
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -10
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -50
- package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -22
- package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -63
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
- package/dist/components/molecules/fileCard/FileCard.stories.d.ts +0 -42
- package/dist/components/molecules/fileCard/FileCard.stories.js +0 -185
- package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -120
- package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -269
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
- package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
- package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
- package/dist/components/molecules/modal/Modal.stories.d.ts +0 -128
- package/dist/components/molecules/modal/Modal.stories.js +0 -373
- package/dist/components/molecules/notification/Notification.stories.d.ts +0 -377
- package/dist/components/molecules/notification/Notification.stories.js +0 -205
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
- package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
- package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
- package/dist/components/molecules/proSwitch/AvatarBubble.stories.d.ts +0 -112
- package/dist/components/molecules/proSwitch/AvatarBubble.stories.js +0 -255
- package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.d.ts +0 -88
- package/dist/components/molecules/proSwitch/AvatarToggleGroup.stories.js +0 -328
- package/dist/components/molecules/proSwitch/ProSwitch.stories.d.ts +0 -9
- package/dist/components/molecules/proSwitch/ProSwitch.stories.js +0 -152
- package/dist/components/molecules/proSwitch/ProSwitchModal.stories.d.ts +0 -62
- package/dist/components/molecules/proSwitch/ProSwitchModal.stories.js +0 -269
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -37
- package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -75
- package/dist/components/molecules/rangeSlider/RangeSlider.stories.d.ts +0 -96
- package/dist/components/molecules/rangeSlider/RangeSlider.stories.js +0 -162
- package/dist/components/molecules/section/Section.stories.d.ts +0 -42
- package/dist/components/molecules/section/Section.stories.js +0 -162
- package/dist/components/molecules/segmentedControl/segmentedControl.stories.d.ts +0 -70
- package/dist/components/molecules/segmentedControl/segmentedControl.stories.js +0 -185
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -79
- package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -113
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -62
- package/dist/components/molecules/stepper/Stepper.stories.js +0 -215
- package/dist/stories/Header.d.ts +0 -13
- package/dist/stories/Header.js +0 -20
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Header.stories.js +0 -26
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.js +0 -37
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Page.stories.js +0 -76
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
import React, { useState } from "react";
|
|
49
|
-
import FileUploader from "./FileUploader";
|
|
50
|
-
import "../../../styles/global.css";
|
|
51
|
-
import pdfIcon from "../../../assets/allaw-icon-pdf.svg";
|
|
52
|
-
export default {
|
|
53
|
-
title: "Components/Molecules/FileUploader/FileUploader",
|
|
54
|
-
component: FileUploader,
|
|
55
|
-
tags: ["autodocs"],
|
|
56
|
-
parameters: {
|
|
57
|
-
backgrounds: {
|
|
58
|
-
default: "light",
|
|
59
|
-
values: [
|
|
60
|
-
{ name: "light", value: "#ffffff" },
|
|
61
|
-
{ name: "grey", value: "#728ea7" },
|
|
62
|
-
{ name: "figma", value: "#404040" },
|
|
63
|
-
{ name: "dark", value: "#171e25" },
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
argTypes: {
|
|
68
|
-
acceptedExtensions: {
|
|
69
|
-
control: "array",
|
|
70
|
-
description: "Liste des extensions de fichiers acceptées",
|
|
71
|
-
},
|
|
72
|
-
maxFileSizeMB: {
|
|
73
|
-
control: "number",
|
|
74
|
-
description: "Taille maximale du fichier en MB",
|
|
75
|
-
},
|
|
76
|
-
enableDragAndDrop: {
|
|
77
|
-
control: "boolean",
|
|
78
|
-
description: "Active/désactive la zone de drag & drop",
|
|
79
|
-
},
|
|
80
|
-
enableCropping: {
|
|
81
|
-
control: "boolean",
|
|
82
|
-
description: "Active/désactive le cadrage pour les images",
|
|
83
|
-
},
|
|
84
|
-
cropShape: {
|
|
85
|
-
control: { type: "select", options: ["circle", "square", "banner"] },
|
|
86
|
-
description: "Forme du masque de cadrage (cercle, carré ou bannière)",
|
|
87
|
-
},
|
|
88
|
-
clientSideCrop: {
|
|
89
|
-
control: "boolean",
|
|
90
|
-
description: "Active le crop côté client (l'image est croppée avant d'être envoyée)",
|
|
91
|
-
},
|
|
92
|
-
cropOutputDimensions: {
|
|
93
|
-
control: "object",
|
|
94
|
-
description: "Dimensions de sortie pour chaque forme (ex: { banner: { width: 1200, height: 400 } })",
|
|
95
|
-
},
|
|
96
|
-
iconUrl: {
|
|
97
|
-
control: "text",
|
|
98
|
-
description: "URL de l'icône du type de fichier",
|
|
99
|
-
},
|
|
100
|
-
buttonLabel: {
|
|
101
|
-
control: "text",
|
|
102
|
-
description: "Texte du bouton de sélection manuelle",
|
|
103
|
-
},
|
|
104
|
-
acceptedLabel: {
|
|
105
|
-
control: "text",
|
|
106
|
-
description: "Texte sur le format accepté",
|
|
107
|
-
},
|
|
108
|
-
maxSizeLabel: {
|
|
109
|
-
control: "text",
|
|
110
|
-
description: "Texte sur la taille maximale",
|
|
111
|
-
},
|
|
112
|
-
uploadProgress: {
|
|
113
|
-
control: { type: "range", min: 0, max: 10, step: 1 },
|
|
114
|
-
description: "Progression de l'upload (0-10)",
|
|
115
|
-
},
|
|
116
|
-
isLoading: {
|
|
117
|
-
control: "boolean",
|
|
118
|
-
description: "Affiche un loader pendant lecture ou traitement",
|
|
119
|
-
},
|
|
120
|
-
errorMessage: {
|
|
121
|
-
control: "text",
|
|
122
|
-
description: "Message d'erreur à afficher",
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
// Template de base avec gestion d'état intégré pour la démo
|
|
127
|
-
var Template = function (args) {
|
|
128
|
-
var _a = useState(null), file = _a[0], setFile = _a[1];
|
|
129
|
-
var _b = useState(null), fileContent = _b[0], setFileContent = _b[1];
|
|
130
|
-
var _c = useState(null), cropMetadata = _c[0], setCropMetadata = _c[1];
|
|
131
|
-
var _d = useState(0), progress = _d[0], setProgress = _d[1];
|
|
132
|
-
var _e = useState(false), loading = _e[0], setLoading = _e[1];
|
|
133
|
-
var _f = useState(null), error = _f[0], setError = _f[1];
|
|
134
|
-
var handleFileRead = function (file, content, cropMeta) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
return __generator(this, function (_a) {
|
|
136
|
-
switch (_a.label) {
|
|
137
|
-
case 0:
|
|
138
|
-
setLoading(true);
|
|
139
|
-
setFile(file);
|
|
140
|
-
setFileContent(content);
|
|
141
|
-
if (cropMeta) {
|
|
142
|
-
setCropMetadata(cropMeta);
|
|
143
|
-
console.log("Métadonnées de cadrage:", cropMeta);
|
|
144
|
-
}
|
|
145
|
-
// Simuler une progression
|
|
146
|
-
setProgress(2);
|
|
147
|
-
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 300); })];
|
|
148
|
-
case 1:
|
|
149
|
-
_a.sent();
|
|
150
|
-
setProgress(5);
|
|
151
|
-
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 300); })];
|
|
152
|
-
case 2:
|
|
153
|
-
_a.sent();
|
|
154
|
-
setProgress(8);
|
|
155
|
-
return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 300); })];
|
|
156
|
-
case 3:
|
|
157
|
-
_a.sent();
|
|
158
|
-
setProgress(10);
|
|
159
|
-
setLoading(false);
|
|
160
|
-
console.log("Fichier lu:", file.name, "Taille:", file.size);
|
|
161
|
-
return [2 /*return*/];
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}); };
|
|
165
|
-
var handleFileRemove = function () {
|
|
166
|
-
setFile(null);
|
|
167
|
-
setFileContent(null);
|
|
168
|
-
setCropMetadata(null);
|
|
169
|
-
setProgress(0);
|
|
170
|
-
setError(null);
|
|
171
|
-
console.log("Fichier supprimé");
|
|
172
|
-
};
|
|
173
|
-
return (React.createElement("div", null,
|
|
174
|
-
React.createElement(FileUploader, __assign({}, args, { onFileRead: handleFileRead, onFileRemove: handleFileRemove, uploadProgress: progress, isLoading: loading, errorMessage: error })),
|
|
175
|
-
cropMetadata && (React.createElement("div", { style: {
|
|
176
|
-
marginTop: "20px",
|
|
177
|
-
padding: "10px",
|
|
178
|
-
backgroundColor: "#f5f5f5",
|
|
179
|
-
borderRadius: "8px",
|
|
180
|
-
} },
|
|
181
|
-
React.createElement("h4", { style: { margin: "0 0 10px 0", fontSize: "14px", color: "#456073" } }, "M\u00E9tadonn\u00E9es de cadrage:"),
|
|
182
|
-
React.createElement("code", { style: { display: "block", fontSize: "12px", color: "#333" } }, JSON.stringify(cropMetadata, null, 2))))));
|
|
183
|
-
};
|
|
184
|
-
export var Default = Template.bind({});
|
|
185
|
-
Default.args = {
|
|
186
|
-
acceptedExtensions: [".jpg", ".jpeg", ".png", ".webp"],
|
|
187
|
-
maxFileSizeMB: 5,
|
|
188
|
-
enableDragAndDrop: true,
|
|
189
|
-
enableCropping: true,
|
|
190
|
-
cropShape: "circle",
|
|
191
|
-
buttonLabel: "Choisir une image",
|
|
192
|
-
acceptedLabel: "Formats acceptés :",
|
|
193
|
-
maxSizeLabel: "Taille maximale :",
|
|
194
|
-
filePresentationLabel: "Voici votre logo.",
|
|
195
|
-
};
|
|
196
|
-
export var WithDescription = Template.bind({});
|
|
197
|
-
WithDescription.args = __assign(__assign({}, Default.args), { descriptionParts: {
|
|
198
|
-
beforeLink: "Une",
|
|
199
|
-
linkLabel: "page sera ajoutée",
|
|
200
|
-
linkUrl: "https://example.com",
|
|
201
|
-
afterLink: "à la fin de votre convention d'honoraire précisant les détails du rendez-vous.",
|
|
202
|
-
} });
|
|
203
|
-
export var WithoutDragAndDrop = Template.bind({});
|
|
204
|
-
WithoutDragAndDrop.args = __assign(__assign({}, Default.args), { enableDragAndDrop: false });
|
|
205
|
-
export var WithError = Template.bind({});
|
|
206
|
-
WithError.args = __assign(__assign({}, Default.args), { errorMessage: "Le format du fichier choisi n'est pas supporté ou sa taille dépasse 5 Mo." });
|
|
207
|
-
export var WithProgress = Template.bind({});
|
|
208
|
-
WithProgress.args = __assign(__assign({}, Default.args), { uploadProgress: 6, isLoading: true, fileName: "document.pdf", fileSize: 2 * 1024 * 1024 });
|
|
209
|
-
// Exemple avec des extensions multiples
|
|
210
|
-
export var MultipleExtensions = Template.bind({});
|
|
211
|
-
MultipleExtensions.args = __assign(__assign({}, Default.args), { acceptedExtensions: [".pdf", ".doc", ".docx"] });
|
|
212
|
-
// Exemple avec le cadrage d'image en carré
|
|
213
|
-
export var WithSquareCropping = Template.bind({});
|
|
214
|
-
WithSquareCropping.args = {
|
|
215
|
-
acceptedExtensions: [".jpg", ".jpeg", ".png", ".webp"],
|
|
216
|
-
maxFileSizeMB: 5,
|
|
217
|
-
enableDragAndDrop: true,
|
|
218
|
-
enableCropping: true,
|
|
219
|
-
cropShape: "square",
|
|
220
|
-
buttonLabel: "Choisir une image",
|
|
221
|
-
acceptedLabel: "Formats acceptés :",
|
|
222
|
-
maxSizeLabel: "Taille maximale :",
|
|
223
|
-
};
|
|
224
|
-
// Exemple avec le cadrage d'image en cercle
|
|
225
|
-
export var WithCircleCropping = Template.bind({});
|
|
226
|
-
WithCircleCropping.args = {
|
|
227
|
-
acceptedExtensions: [".jpg", ".jpeg", ".png", ".webp"],
|
|
228
|
-
maxFileSizeMB: 5,
|
|
229
|
-
enableDragAndDrop: true,
|
|
230
|
-
enableCropping: true,
|
|
231
|
-
cropShape: "circle",
|
|
232
|
-
buttonLabel: "Choisir une image",
|
|
233
|
-
acceptedLabel: "Formats acceptés :",
|
|
234
|
-
maxSizeLabel: "Taille maximale :",
|
|
235
|
-
};
|
|
236
|
-
// Exemple avec l'affichage d'une image préuploadée
|
|
237
|
-
export var WithPreloadedImage = Template.bind({});
|
|
238
|
-
WithPreloadedImage.args = __assign(__assign({}, Default.args), {
|
|
239
|
-
// On simule un fichier déjà chargé pour la story
|
|
240
|
-
fileName: "logo-entreprise.png", fileSize: 1.2 * 1024 * 1024, filePresentationLabel: "Voici votre logo." });
|
|
241
|
-
// Exemple avec le cadrage d'image en bannière (format 3:1)
|
|
242
|
-
export var WithBannerCropping = Template.bind({});
|
|
243
|
-
WithBannerCropping.args = {
|
|
244
|
-
acceptedExtensions: [
|
|
245
|
-
".jpg",
|
|
246
|
-
".jpeg",
|
|
247
|
-
".png",
|
|
248
|
-
".webp",
|
|
249
|
-
".gif",
|
|
250
|
-
".ico",
|
|
251
|
-
".bmp",
|
|
252
|
-
".tiff",
|
|
253
|
-
".heic",
|
|
254
|
-
".heif",
|
|
255
|
-
".hevc",
|
|
256
|
-
],
|
|
257
|
-
maxFileSizeMB: 3,
|
|
258
|
-
enableDragAndDrop: true,
|
|
259
|
-
enableCropping: true,
|
|
260
|
-
cropShape: "banner",
|
|
261
|
-
clientSideCrop: true,
|
|
262
|
-
cropOutputDimensions: {
|
|
263
|
-
banner: { width: 1200, height: 400 },
|
|
264
|
-
},
|
|
265
|
-
buttonLabel: "Choisir une image",
|
|
266
|
-
acceptedLabel: "Formats acceptés :",
|
|
267
|
-
maxSizeLabel: "Taille maximale :",
|
|
268
|
-
filePresentationLabel: "Voici votre bannière.",
|
|
269
|
-
};
|
|
@@ -1,47 +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 FlexContent, { FlexContentProps } from "./FlexContent";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/FlexContent",
|
|
17
|
-
component: FlexContent,
|
|
18
|
-
};
|
|
19
|
-
var Template = function (args) { return React.createElement(FlexContent, __assign({}, args)); };
|
|
20
|
-
export var Default = Template.bind({});
|
|
21
|
-
Default.args = {
|
|
22
|
-
reverse: false,
|
|
23
|
-
title: "Découvrez notre solution",
|
|
24
|
-
sectionTitle: "Une solution adaptée à vos besoins",
|
|
25
|
-
content: "Notre solution est conçue pour vous offrir des résultats concrets et durables. Avec des fonctionnalités adaptées à vos besoins, elle vous permet de gérer vos projets plus efficacement et d'atteindre vos objectifs. Découvrez comment nos outils innovants, combinés à une approche personnalisée, peuvent transformer votre vision en réalité et vous aider à vous démarquer dans votre domaine. Nous vous accompagnons pas à pas pour garantir des résultats à la hauteur de vos attentes.",
|
|
26
|
-
action: {
|
|
27
|
-
href: "/learn-more",
|
|
28
|
-
label: "En savoir plus",
|
|
29
|
-
},
|
|
30
|
-
imageContent: {
|
|
31
|
-
src: "https://images.unsplash.com/photo-1737405555489-78b3755eaa81?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
32
|
-
alt: "Image illustrant la solution",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
export var Reverse = Template.bind({});
|
|
36
|
-
Reverse.args = __assign(__assign({}, Default.args), { reverse: true, sectionTitle: "Une nouvelle perspective", content: "Avec notre approche innovante, nous renversons les codes pour vous offrir des opportunités uniques et avant-gardistes." });
|
|
37
|
-
export var NoImage = Template.bind({});
|
|
38
|
-
NoImage.args = {
|
|
39
|
-
reverse: false,
|
|
40
|
-
title: "Découvrez notre solution sans image",
|
|
41
|
-
sectionTitle: "Pas d'image, juste du contenu",
|
|
42
|
-
content: "Parfois, une image n'est pas nécessaire. Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action. Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action Ce mode vous permet de mettre l'accent uniquement sur le texte et l'action ",
|
|
43
|
-
action: {
|
|
44
|
-
href: "/no-image",
|
|
45
|
-
label: "En savoir plus",
|
|
46
|
-
},
|
|
47
|
-
};
|
|
@@ -1,58 +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 FrameCTA, { FrameCTAProps } from "./FrameCTA";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/FrameCTA",
|
|
17
|
-
component: FrameCTA,
|
|
18
|
-
};
|
|
19
|
-
var Template = function (args) { return React.createElement(FrameCTA, __assign({}, args)); };
|
|
20
|
-
export var Default = Template.bind({});
|
|
21
|
-
Default.args = {
|
|
22
|
-
textColor: {
|
|
23
|
-
control: "select",
|
|
24
|
-
options: ["black", "white", "gray"],
|
|
25
|
-
description: "Couleur du texte pour le titre et le contenu",
|
|
26
|
-
defaultValue: "",
|
|
27
|
-
},
|
|
28
|
-
title: "Poppins - SemiBold - 46px souvent sur 2 lignes",
|
|
29
|
-
primaryButton: {
|
|
30
|
-
label: "Bouton",
|
|
31
|
-
href: "/primary",
|
|
32
|
-
},
|
|
33
|
-
secondaryButton: {
|
|
34
|
-
label: "Bouton",
|
|
35
|
-
href: "/secondary",
|
|
36
|
-
},
|
|
37
|
-
backgroundImage: {
|
|
38
|
-
src: "https://images.unsplash.com/photo-1731862872903-1d39fe0c10f8?q=80&w=2108&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
39
|
-
alt: "Image de fond arrière plan",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
export var WhiteText = Template.bind({});
|
|
43
|
-
WhiteText.args = {
|
|
44
|
-
title: "Texte en blanc sur la même image",
|
|
45
|
-
primaryButton: {
|
|
46
|
-
label: "Bouton principal",
|
|
47
|
-
href: "/primary",
|
|
48
|
-
},
|
|
49
|
-
secondaryButton: {
|
|
50
|
-
label: "Bouton secondaire",
|
|
51
|
-
href: "/secondary",
|
|
52
|
-
},
|
|
53
|
-
backgroundImage: {
|
|
54
|
-
src: "https://images.unsplash.com/photo-1731862872903-1d39fe0c10f8?q=80&w=2108&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", // Même image que dans l'exemple par défaut
|
|
55
|
-
alt: "Image de fond arrière plan",
|
|
56
|
-
},
|
|
57
|
-
textColor: "white",
|
|
58
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { HeroSection as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export namespace reverse {
|
|
6
|
-
let control: string;
|
|
7
|
-
let description: string;
|
|
8
|
-
}
|
|
9
|
-
export namespace title_1 {
|
|
10
|
-
let control_1: string;
|
|
11
|
-
export { control_1 as control };
|
|
12
|
-
let description_1: string;
|
|
13
|
-
export { description_1 as description };
|
|
14
|
-
}
|
|
15
|
-
export { title_1 as title };
|
|
16
|
-
export namespace content {
|
|
17
|
-
let control_2: string;
|
|
18
|
-
export { control_2 as control };
|
|
19
|
-
let description_2: string;
|
|
20
|
-
export { description_2 as description };
|
|
21
|
-
}
|
|
22
|
-
export namespace imageBackground {
|
|
23
|
-
let control_3: string;
|
|
24
|
-
export { control_3 as control };
|
|
25
|
-
let description_3: string;
|
|
26
|
-
export { description_3 as description };
|
|
27
|
-
}
|
|
28
|
-
export namespace imageTop {
|
|
29
|
-
let control_4: string;
|
|
30
|
-
export { control_4 as control };
|
|
31
|
-
let description_4: string;
|
|
32
|
-
export { description_4 as description };
|
|
33
|
-
}
|
|
34
|
-
export namespace action {
|
|
35
|
-
let control_5: string;
|
|
36
|
-
export { control_5 as control };
|
|
37
|
-
let description_5: string;
|
|
38
|
-
export { description_5 as description };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export default _default;
|
|
43
|
-
export const Default: any;
|
|
44
|
-
export const WithLongDescription: any;
|
|
45
|
-
export const WhiteTextColor: any;
|
|
46
|
-
import HeroSection from "./HeroSection";
|
|
@@ -1,100 +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 HeroSection, { HeroSectionProps } from "./HeroSection";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/HeroSection",
|
|
17
|
-
component: HeroSection,
|
|
18
|
-
argTypes: {
|
|
19
|
-
reverse: {
|
|
20
|
-
control: "boolean",
|
|
21
|
-
description: "Inverse l'ordre des sections (blanche et image)",
|
|
22
|
-
},
|
|
23
|
-
title: {
|
|
24
|
-
control: "text",
|
|
25
|
-
description: "Titre principal de la section",
|
|
26
|
-
},
|
|
27
|
-
content: {
|
|
28
|
-
control: "text",
|
|
29
|
-
description: "Contenu descriptif de la section",
|
|
30
|
-
},
|
|
31
|
-
imageBackground: {
|
|
32
|
-
control: "object",
|
|
33
|
-
description: "Image de fond pour la section droite",
|
|
34
|
-
},
|
|
35
|
-
imageTop: {
|
|
36
|
-
control: "object",
|
|
37
|
-
description: "Image affichée au-dessus du contenu",
|
|
38
|
-
},
|
|
39
|
-
action: {
|
|
40
|
-
control: "object",
|
|
41
|
-
description: "Lien d'action avec texte et URL",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
var Template = function (args) { return React.createElement(HeroSection, __assign({}, args)); };
|
|
46
|
-
export var Default = Template.bind({});
|
|
47
|
-
Default.args = {
|
|
48
|
-
reverse: false,
|
|
49
|
-
title: "Transformez votre carrière en un clic",
|
|
50
|
-
content: "Accédez à des opportunités adaptées à vos aspirations, connectez-vous avec des clients du monde entier et simplifiez vos projets grâce à nos outils performants.",
|
|
51
|
-
imageBackground: {
|
|
52
|
-
src: "https://plus.unsplash.com/premium_photo-1672940671025-113a634f83d1?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
53
|
-
alt: "Personne travaillant sur un ordinateur portable",
|
|
54
|
-
},
|
|
55
|
-
imageTop: {
|
|
56
|
-
src: "https://images.unsplash.com/photo-1737334969823-8d6a43b4cba1?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
57
|
-
alt: "Graphiques montrant une croissance",
|
|
58
|
-
},
|
|
59
|
-
action: {
|
|
60
|
-
href: "/join-now",
|
|
61
|
-
label: "Rejoignez-nous",
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
export var WithLongDescription = Template.bind({});
|
|
65
|
-
WithLongDescription.args = {
|
|
66
|
-
reverse: true,
|
|
67
|
-
title: "Un avenir meilleur vous attend",
|
|
68
|
-
content: "Découvrez une plateforme révolutionnaire qui connecte des talents avec des opportunités uniques. Nous croyons en la puissance de la collaboration et en la capacité des individus à atteindre leurs objectifs, quels qu'ils soient. Grâce à notre réseau mondial, vous pouvez collaborer avec des experts de diverses industries, apprendre de nouvelles compétences et faire partie d'une communauté qui valorise l'innovation. Que vous soyez à la recherche d'un emploi, d'un client, ou d'une nouvelle aventure, nous avons les outils pour vous aider à réussir. Inscrivez-vous aujourd'hui pour découvrir un monde de possibilités sans fin.",
|
|
69
|
-
imageBackground: {
|
|
70
|
-
src: "https://images.unsplash.com/photo-1737381439846-b927265e7dfc?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
71
|
-
alt: "Personne au sommet d'une montagne au coucher du soleil",
|
|
72
|
-
},
|
|
73
|
-
imageTop: {
|
|
74
|
-
src: "https://images.unsplash.com/photo-1737498352618-4fac98caa557?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
75
|
-
alt: "Personne analysant des graphiques financiers sur un écran",
|
|
76
|
-
},
|
|
77
|
-
action: {
|
|
78
|
-
href: "/explore",
|
|
79
|
-
label: "Découvrez maintenant",
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
export var WhiteTextColor = Template.bind({});
|
|
83
|
-
WhiteTextColor.args = {
|
|
84
|
-
reverse: false,
|
|
85
|
-
title: "Avec un texte blanc en format mobile",
|
|
86
|
-
content: "Ce texte utilise la couleur blanche pour être lisible sur des fonds sombres ou colorés.",
|
|
87
|
-
imageBackground: {
|
|
88
|
-
src: "https://images.unsplash.com/photo-1737381439846-b927265e7dfc?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
89
|
-
alt: "Personne créative travaillant dans un espace sombre",
|
|
90
|
-
},
|
|
91
|
-
imageTop: {
|
|
92
|
-
src: "https://images.unsplash.com/photo-1737498352618-4fac98caa557?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
93
|
-
alt: "Éléments graphiques et lumineux",
|
|
94
|
-
},
|
|
95
|
-
action: {
|
|
96
|
-
href: "/white-text",
|
|
97
|
-
label: "En savoir plus",
|
|
98
|
-
},
|
|
99
|
-
textColor: "white",
|
|
100
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { LoadingBox as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace boxHeight {
|
|
7
|
-
namespace control {
|
|
8
|
-
let type: string;
|
|
9
|
-
}
|
|
10
|
-
let description: string;
|
|
11
|
-
}
|
|
12
|
-
namespace boxWidth {
|
|
13
|
-
export namespace control_1 {
|
|
14
|
-
let type_1: string;
|
|
15
|
-
export { type_1 as type };
|
|
16
|
-
}
|
|
17
|
-
export { control_1 as control };
|
|
18
|
-
let description_1: string;
|
|
19
|
-
export { description_1 as description };
|
|
20
|
-
}
|
|
21
|
-
namespace boxRadius {
|
|
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 description_2: string;
|
|
28
|
-
export { description_2 as description };
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export namespace parameters {
|
|
32
|
-
namespace backgrounds {
|
|
33
|
-
let _default: string;
|
|
34
|
-
export { _default as default };
|
|
35
|
-
export let values: {
|
|
36
|
-
name: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}[];
|
|
39
|
-
}
|
|
40
|
-
namespace docs {
|
|
41
|
-
export namespace description_3 {
|
|
42
|
-
let component: string;
|
|
43
|
-
}
|
|
44
|
-
export { description_3 as description };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export default _default;
|
|
49
|
-
export const Default: any;
|
|
50
|
-
export const Large: any;
|
|
51
|
-
export const Small: any;
|
|
52
|
-
export const MultipleBoxes: any;
|
|
53
|
-
export const CardSkeleton: any;
|
|
54
|
-
import LoadingBox from "./LoadingBox";
|