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,197 +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 SearchBar from "./SearchBar";
|
|
14
|
-
import "../../../styles/global.css";
|
|
15
|
-
import "../../../styles/icons.css";
|
|
16
|
-
export var ActionsData = {
|
|
17
|
-
onChange: { action: "changed" },
|
|
18
|
-
};
|
|
19
|
-
export default {
|
|
20
|
-
title: "Components/Atoms/Inputs/SearchBar",
|
|
21
|
-
component: SearchBar,
|
|
22
|
-
tags: ["autodocs"],
|
|
23
|
-
excludeStories: /.*Data$/,
|
|
24
|
-
args: __assign(__assign({}, ActionsData), { endIcon: "allaw-icon-search", showClear: false, size: "normal", style: "classic", startIcon: undefined, showLocate: false, locateIcon: "allaw-icon-map-pin", minChar: undefined, loading: false }),
|
|
25
|
-
argTypes: {
|
|
26
|
-
placeholder: {
|
|
27
|
-
control: {
|
|
28
|
-
type: "text",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
endIcon: {
|
|
32
|
-
control: {
|
|
33
|
-
type: "text",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
startIcon: {
|
|
37
|
-
control: {
|
|
38
|
-
type: "text",
|
|
39
|
-
},
|
|
40
|
-
description: "Icône au début du champ (ex: allaw-icon-map-pin)",
|
|
41
|
-
},
|
|
42
|
-
showLocate: {
|
|
43
|
-
control: "boolean",
|
|
44
|
-
description: "Affiche un bouton 'Me localiser' en bout de champ",
|
|
45
|
-
},
|
|
46
|
-
locateIcon: {
|
|
47
|
-
control: { type: "text" },
|
|
48
|
-
description: "Classe d'icône pour le bouton de localisation",
|
|
49
|
-
},
|
|
50
|
-
size: {
|
|
51
|
-
control: {
|
|
52
|
-
type: "radio",
|
|
53
|
-
},
|
|
54
|
-
options: ["normal", "big"],
|
|
55
|
-
},
|
|
56
|
-
style: {
|
|
57
|
-
control: {
|
|
58
|
-
type: "radio",
|
|
59
|
-
},
|
|
60
|
-
options: ["classic", "form"],
|
|
61
|
-
},
|
|
62
|
-
value: {
|
|
63
|
-
control: {
|
|
64
|
-
type: "text",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
showClear: {
|
|
68
|
-
control: "boolean",
|
|
69
|
-
description: "Affiche une croix pour effacer le champ si true.",
|
|
70
|
-
},
|
|
71
|
-
minChar: {
|
|
72
|
-
control: { type: "number", min: 0, max: 20 },
|
|
73
|
-
description: "Nombre minimum de caractères pour changer la couleur de bordure en vert (#29a36a).",
|
|
74
|
-
},
|
|
75
|
-
loading: {
|
|
76
|
-
control: "boolean",
|
|
77
|
-
description: "Affiche un loader à la fin du champ.",
|
|
78
|
-
},
|
|
79
|
-
onChange: { action: "changed" },
|
|
80
|
-
},
|
|
81
|
-
parameters: {
|
|
82
|
-
backgrounds: {
|
|
83
|
-
default: "light",
|
|
84
|
-
values: [
|
|
85
|
-
{ name: "light", value: "#ffffff" },
|
|
86
|
-
{ name: "grey", value: "#728ea7" },
|
|
87
|
-
{ name: "figma", value: "#404040" },
|
|
88
|
-
{ name: "dark", value: "#171e25" },
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
var Template = function (args) {
|
|
94
|
-
var _a = useState(""), value = _a[0], setValue = _a[1];
|
|
95
|
-
return (React.createElement(SearchBar, __assign({}, args, { value: value, onChange: function (newValue) {
|
|
96
|
-
setValue(newValue);
|
|
97
|
-
args.onChange(newValue);
|
|
98
|
-
} })));
|
|
99
|
-
};
|
|
100
|
-
export var Default = Template.bind({});
|
|
101
|
-
Default.args = {
|
|
102
|
-
placeholder: "Faites une recherche",
|
|
103
|
-
endIcon: "allaw-icon-search",
|
|
104
|
-
showClear: false,
|
|
105
|
-
size: "normal",
|
|
106
|
-
style: "classic",
|
|
107
|
-
onChange: function (value) { return console.log("Search value:", value); },
|
|
108
|
-
};
|
|
109
|
-
export var WithClear = Template.bind({});
|
|
110
|
-
WithClear.args = {
|
|
111
|
-
placeholder: "Faites une recherche",
|
|
112
|
-
endIcon: "allaw-icon-search",
|
|
113
|
-
showClear: true,
|
|
114
|
-
value: "test",
|
|
115
|
-
size: "normal",
|
|
116
|
-
style: "classic",
|
|
117
|
-
onChange: function (value) { return console.log("Search value:", value); },
|
|
118
|
-
};
|
|
119
|
-
export var Big = Template.bind({});
|
|
120
|
-
Big.args = {
|
|
121
|
-
placeholder: "Faites une recherche",
|
|
122
|
-
endIcon: "allaw-icon-search",
|
|
123
|
-
showClear: false,
|
|
124
|
-
size: "big",
|
|
125
|
-
style: "classic",
|
|
126
|
-
};
|
|
127
|
-
export var FormStyle = Template.bind({});
|
|
128
|
-
FormStyle.args = {
|
|
129
|
-
placeholder: "Faites une recherche",
|
|
130
|
-
endIcon: "allaw-icon-search",
|
|
131
|
-
showClear: false,
|
|
132
|
-
size: "normal",
|
|
133
|
-
style: "form",
|
|
134
|
-
};
|
|
135
|
-
export var WithStartIcon = Template.bind({});
|
|
136
|
-
WithStartIcon.args = {
|
|
137
|
-
placeholder: "Recherchez une adresse",
|
|
138
|
-
startIcon: "allaw-icon-map-pin",
|
|
139
|
-
endIcon: "allaw-icon-search",
|
|
140
|
-
showClear: false,
|
|
141
|
-
size: "normal",
|
|
142
|
-
style: "classic",
|
|
143
|
-
};
|
|
144
|
-
export var BigFormStartIconNoEnd = Template.bind({});
|
|
145
|
-
BigFormStartIconNoEnd.args = {
|
|
146
|
-
placeholder: "Décrivez votre besoin, ex. : Je veux vendre un appartement",
|
|
147
|
-
startIcon: "allaw-icon-search",
|
|
148
|
-
endIcon: undefined,
|
|
149
|
-
showClear: false,
|
|
150
|
-
size: "big",
|
|
151
|
-
style: "form",
|
|
152
|
-
};
|
|
153
|
-
export var WithLocate = Template.bind({});
|
|
154
|
-
WithLocate.args = {
|
|
155
|
-
placeholder: "Ville",
|
|
156
|
-
startIcon: "allaw-icon-map-pin",
|
|
157
|
-
endIcon: undefined,
|
|
158
|
-
showClear: false,
|
|
159
|
-
size: "normal",
|
|
160
|
-
style: "form",
|
|
161
|
-
showLocate: true,
|
|
162
|
-
locateIcon: "allaw-icon-map-pin",
|
|
163
|
-
};
|
|
164
|
-
export var WithMinChar = Template.bind({});
|
|
165
|
-
WithMinChar.args = {
|
|
166
|
-
placeholder: "Saisissez au moins 6 caractères",
|
|
167
|
-
endIcon: "allaw-icon-search",
|
|
168
|
-
showClear: true,
|
|
169
|
-
size: "normal",
|
|
170
|
-
style: "form",
|
|
171
|
-
minChar: 6,
|
|
172
|
-
};
|
|
173
|
-
export var ResponsiveLocate = Template.bind({});
|
|
174
|
-
ResponsiveLocate.args = {
|
|
175
|
-
placeholder: "Ville (redimensionnez la fenêtre)",
|
|
176
|
-
startIcon: "allaw-icon-map-pin",
|
|
177
|
-
showClear: true,
|
|
178
|
-
size: "normal",
|
|
179
|
-
style: "form",
|
|
180
|
-
showLocate: true,
|
|
181
|
-
};
|
|
182
|
-
export var WithLoading = Template.bind({});
|
|
183
|
-
WithLoading.args = {
|
|
184
|
-
placeholder: "Recherche en cours...",
|
|
185
|
-
endIcon: "allaw-icon-search",
|
|
186
|
-
showClear: false,
|
|
187
|
-
size: "normal",
|
|
188
|
-
style: "classic",
|
|
189
|
-
loading: true,
|
|
190
|
-
};
|
|
191
|
-
ResponsiveLocate.parameters = {
|
|
192
|
-
docs: {
|
|
193
|
-
description: {
|
|
194
|
-
story: "Le bouton 'Me localiser' devient une icône en dessous de 480px de largeur. Redimensionnez votre navigateur pour voir l'effet.",
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
export const ActionsData: {};
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { TextArea as component };
|
|
5
|
-
export let tags: string[];
|
|
6
|
-
export let excludeStories: RegExp;
|
|
7
|
-
export let args: {};
|
|
8
|
-
export namespace argTypes {
|
|
9
|
-
namespace style {
|
|
10
|
-
namespace control {
|
|
11
|
-
let type: string;
|
|
12
|
-
let options: string[];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
namespace isRequired {
|
|
16
|
-
let control_1: string;
|
|
17
|
-
export { control_1 as control };
|
|
18
|
-
}
|
|
19
|
-
namespace validate {
|
|
20
|
-
export namespace control_2 {
|
|
21
|
-
let type_1: string;
|
|
22
|
-
export { type_1 as type };
|
|
23
|
-
}
|
|
24
|
-
export { control_2 as control };
|
|
25
|
-
}
|
|
26
|
-
namespace maxHeight {
|
|
27
|
-
export namespace control_3 {
|
|
28
|
-
let type_2: string;
|
|
29
|
-
export { type_2 as type };
|
|
30
|
-
export let min: number;
|
|
31
|
-
export let max: number;
|
|
32
|
-
export let step: number;
|
|
33
|
-
}
|
|
34
|
-
export { control_3 as control };
|
|
35
|
-
}
|
|
36
|
-
namespace minHeight {
|
|
37
|
-
export namespace control_4 {
|
|
38
|
-
let type_3: string;
|
|
39
|
-
export { type_3 as type };
|
|
40
|
-
let min_1: number;
|
|
41
|
-
export { min_1 as min };
|
|
42
|
-
let max_1: number;
|
|
43
|
-
export { max_1 as max };
|
|
44
|
-
let step_1: number;
|
|
45
|
-
export { step_1 as step };
|
|
46
|
-
}
|
|
47
|
-
export { control_4 as control };
|
|
48
|
-
export let description: string;
|
|
49
|
-
export namespace table {
|
|
50
|
-
export namespace type_4 {
|
|
51
|
-
let summary: string;
|
|
52
|
-
}
|
|
53
|
-
export { type_4 as type };
|
|
54
|
-
export namespace defaultValue {
|
|
55
|
-
let summary_1: number;
|
|
56
|
-
export { summary_1 as summary };
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
namespace variant {
|
|
61
|
-
export namespace control_5 {
|
|
62
|
-
let type_5: string;
|
|
63
|
-
export { type_5 as type };
|
|
64
|
-
let options_1: string[];
|
|
65
|
-
export { options_1 as options };
|
|
66
|
-
}
|
|
67
|
-
export { control_5 as control };
|
|
68
|
-
}
|
|
69
|
-
namespace color {
|
|
70
|
-
export namespace control_6 {
|
|
71
|
-
let type_6: string;
|
|
72
|
-
export { type_6 as type };
|
|
73
|
-
let options_2: string[];
|
|
74
|
-
export { options_2 as options };
|
|
75
|
-
}
|
|
76
|
-
export { control_6 as control };
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export namespace parameters {
|
|
80
|
-
namespace backgrounds {
|
|
81
|
-
let _default: string;
|
|
82
|
-
export { _default as default };
|
|
83
|
-
export let values: {
|
|
84
|
-
name: string;
|
|
85
|
-
value: string;
|
|
86
|
-
}[];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export default _default;
|
|
91
|
-
export const Default: any;
|
|
92
|
-
export const Variation: any;
|
|
93
|
-
export const WithValidation: any;
|
|
94
|
-
export const LargeMinHeight: any;
|
|
95
|
-
import TextArea from "./TextArea";
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import React from "react";
|
|
13
|
-
import { useForm, FormProvider } from "react-hook-form";
|
|
14
|
-
import TextArea from "./TextArea";
|
|
15
|
-
import "../../../styles/global.css";
|
|
16
|
-
export var ActionsData = {};
|
|
17
|
-
export default {
|
|
18
|
-
title: "Components/Atoms/Inputs/TextArea",
|
|
19
|
-
component: TextArea,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
excludeStories: /.*Data$/,
|
|
22
|
-
args: __assign({}, ActionsData),
|
|
23
|
-
argTypes: {
|
|
24
|
-
style: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "radio",
|
|
27
|
-
options: ["default", "variation"],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
isRequired: {
|
|
31
|
-
control: "boolean",
|
|
32
|
-
},
|
|
33
|
-
validate: {
|
|
34
|
-
control: {
|
|
35
|
-
type: "text",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
maxHeight: {
|
|
39
|
-
control: {
|
|
40
|
-
type: "number",
|
|
41
|
-
min: 100,
|
|
42
|
-
max: 1000,
|
|
43
|
-
step: 50,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
minHeight: {
|
|
47
|
-
control: {
|
|
48
|
-
type: "number",
|
|
49
|
-
min: 50,
|
|
50
|
-
max: 500,
|
|
51
|
-
step: 10,
|
|
52
|
-
},
|
|
53
|
-
description: "Hauteur minimale du TextArea en pixels",
|
|
54
|
-
table: {
|
|
55
|
-
type: { summary: "number" },
|
|
56
|
-
defaultValue: { summary: 100 },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
variant: {
|
|
60
|
-
control: {
|
|
61
|
-
type: "select",
|
|
62
|
-
options: ["bold", "semiBold", "medium"],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
color: {
|
|
66
|
-
control: {
|
|
67
|
-
type: "select",
|
|
68
|
-
options: [
|
|
69
|
-
"bleu-allaw",
|
|
70
|
-
"mid-grey",
|
|
71
|
-
"dark-grey",
|
|
72
|
-
"noir",
|
|
73
|
-
"pure-white",
|
|
74
|
-
"grey-venom",
|
|
75
|
-
"venom-grey-dark",
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
parameters: {
|
|
81
|
-
backgrounds: {
|
|
82
|
-
default: "light",
|
|
83
|
-
values: [
|
|
84
|
-
{ name: "light", value: "#ffffff" },
|
|
85
|
-
{ name: "grey", value: "#728ea7" },
|
|
86
|
-
{ name: "figma", value: "#404040" },
|
|
87
|
-
{ name: "dark", value: "#171e25" },
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
var Template = function (args) {
|
|
93
|
-
var methods = useForm();
|
|
94
|
-
return (React.createElement(FormProvider, __assign({}, methods),
|
|
95
|
-
React.createElement(TextArea, __assign({}, args))));
|
|
96
|
-
};
|
|
97
|
-
export var Default = Template.bind({});
|
|
98
|
-
Default.args = {
|
|
99
|
-
name: "defaultTextArea",
|
|
100
|
-
title: "Nommer le rendez-vous",
|
|
101
|
-
placeholder: "Entrez le motif du rendez-vous",
|
|
102
|
-
style: "default",
|
|
103
|
-
isRequired: false,
|
|
104
|
-
maxHeight: 400,
|
|
105
|
-
minHeight: 100,
|
|
106
|
-
variant: "medium",
|
|
107
|
-
color: "noir",
|
|
108
|
-
};
|
|
109
|
-
export var Variation = Template.bind({});
|
|
110
|
-
Variation.args = {
|
|
111
|
-
name: "variationTextArea",
|
|
112
|
-
title: "Adresse e-mail",
|
|
113
|
-
placeholder: "Entrez le motif du rendez-vous",
|
|
114
|
-
style: "variation",
|
|
115
|
-
isRequired: true,
|
|
116
|
-
maxHeight: 400,
|
|
117
|
-
minHeight: 100,
|
|
118
|
-
};
|
|
119
|
-
export var WithValidation = Template.bind({});
|
|
120
|
-
WithValidation.args = {
|
|
121
|
-
name: "validationTextArea",
|
|
122
|
-
title: "Email",
|
|
123
|
-
placeholder: "Entrez votre email",
|
|
124
|
-
style: "default",
|
|
125
|
-
isRequired: true,
|
|
126
|
-
validate: "email",
|
|
127
|
-
maxHeight: 400,
|
|
128
|
-
minHeight: 100,
|
|
129
|
-
};
|
|
130
|
-
export var LargeMinHeight = Template.bind({});
|
|
131
|
-
LargeMinHeight.args = {
|
|
132
|
-
name: "largeTextArea",
|
|
133
|
-
title: "Description détaillée",
|
|
134
|
-
placeholder: "Entrez une description détaillée",
|
|
135
|
-
style: "default",
|
|
136
|
-
isRequired: false,
|
|
137
|
-
maxHeight: 400,
|
|
138
|
-
minHeight: 200,
|
|
139
|
-
variant: "medium",
|
|
140
|
-
color: "noir",
|
|
141
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { VerificationCodeInput as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace parameters {
|
|
6
|
-
namespace controls {
|
|
7
|
-
let expanded: boolean;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export namespace argTypes {
|
|
11
|
-
namespace size {
|
|
12
|
-
let control: string;
|
|
13
|
-
let options: string[];
|
|
14
|
-
let description: string;
|
|
15
|
-
let defaultValue: string;
|
|
16
|
-
}
|
|
17
|
-
namespace allowedChars {
|
|
18
|
-
let control_1: string;
|
|
19
|
-
export { control_1 as control };
|
|
20
|
-
let options_1: string[];
|
|
21
|
-
export { options_1 as options };
|
|
22
|
-
let description_1: string;
|
|
23
|
-
export { description_1 as description };
|
|
24
|
-
let defaultValue_1: string;
|
|
25
|
-
export { defaultValue_1 as defaultValue };
|
|
26
|
-
export namespace table {
|
|
27
|
-
export namespace defaultValue_2 {
|
|
28
|
-
let summary: string;
|
|
29
|
-
}
|
|
30
|
-
export { defaultValue_2 as defaultValue };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
namespace numInputs {
|
|
34
|
-
export namespace control_2 {
|
|
35
|
-
let type: string;
|
|
36
|
-
let min: number;
|
|
37
|
-
let max: number;
|
|
38
|
-
let step: number;
|
|
39
|
-
}
|
|
40
|
-
export { control_2 as control };
|
|
41
|
-
let description_2: string;
|
|
42
|
-
export { description_2 as description };
|
|
43
|
-
let defaultValue_3: number;
|
|
44
|
-
export { defaultValue_3 as defaultValue };
|
|
45
|
-
}
|
|
46
|
-
namespace testError {
|
|
47
|
-
let control_3: string;
|
|
48
|
-
export { control_3 as control };
|
|
49
|
-
let description_3: string;
|
|
50
|
-
export { description_3 as description };
|
|
51
|
-
let defaultValue_4: boolean;
|
|
52
|
-
export { defaultValue_4 as defaultValue };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export default _default;
|
|
57
|
-
export const Default: any;
|
|
58
|
-
export const WithError: any;
|
|
59
|
-
export function Responsive(args: any): React.JSX.Element;
|
|
60
|
-
export namespace Responsive {
|
|
61
|
-
export namespace args {
|
|
62
|
-
let numInputs_1: number;
|
|
63
|
-
export { numInputs_1 as numInputs };
|
|
64
|
-
let size_1: string;
|
|
65
|
-
export { size_1 as size };
|
|
66
|
-
}
|
|
67
|
-
export namespace parameters_1 {
|
|
68
|
-
namespace docs {
|
|
69
|
-
export namespace description_4 {
|
|
70
|
-
let story: string;
|
|
71
|
-
}
|
|
72
|
-
export { description_4 as description };
|
|
73
|
-
}
|
|
74
|
-
namespace viewport {
|
|
75
|
-
let defaultViewport: string;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export { parameters_1 as parameters };
|
|
79
|
-
}
|
|
80
|
-
import VerificationCodeInput from "./VerificationCodeInput";
|
|
81
|
-
import React from "react";
|
|
@@ -1,89 +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 VerificationCodeInput from "./VerificationCodeInput";
|
|
14
|
-
export default {
|
|
15
|
-
title: "Components/Atoms/Inputs/VerificationCodeInput",
|
|
16
|
-
component: VerificationCodeInput,
|
|
17
|
-
tags: ["autodocs"],
|
|
18
|
-
parameters: {
|
|
19
|
-
controls: {
|
|
20
|
-
expanded: true,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
size: {
|
|
25
|
-
control: "select",
|
|
26
|
-
options: ["small", "medium", "large"],
|
|
27
|
-
description: "Taille des inputs",
|
|
28
|
-
defaultValue: "large",
|
|
29
|
-
},
|
|
30
|
-
allowedChars: {
|
|
31
|
-
control: "select",
|
|
32
|
-
options: ["numeric", "alphabetic", "alphanumeric"],
|
|
33
|
-
description: "Type de caractères autorisés",
|
|
34
|
-
defaultValue: "numeric",
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: "numeric" },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
numInputs: {
|
|
40
|
-
control: {
|
|
41
|
-
type: "number",
|
|
42
|
-
min: 1,
|
|
43
|
-
max: 20,
|
|
44
|
-
step: 1,
|
|
45
|
-
},
|
|
46
|
-
description: "Nombre d'inputs",
|
|
47
|
-
defaultValue: 5,
|
|
48
|
-
},
|
|
49
|
-
testError: {
|
|
50
|
-
control: "boolean",
|
|
51
|
-
description: "Simuler une erreur de validation",
|
|
52
|
-
defaultValue: false,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
var Template = function (args) { return React.createElement(VerificationCodeInput, __assign({}, args)); };
|
|
57
|
-
export var Default = Template.bind({});
|
|
58
|
-
Default.args = {
|
|
59
|
-
numInputs: 5,
|
|
60
|
-
};
|
|
61
|
-
export var WithError = Template.bind({});
|
|
62
|
-
WithError.args = {
|
|
63
|
-
numInputs: 5,
|
|
64
|
-
testError: true,
|
|
65
|
-
};
|
|
66
|
-
WithError.parameters = {
|
|
67
|
-
docs: {
|
|
68
|
-
description: {
|
|
69
|
-
story: "Simule un état d'erreur lors de la validation du code",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
export var Responsive = function (args) { return (React.createElement("div", null,
|
|
74
|
-
React.createElement("p", { style: { marginBottom: "10px" } }, "Redimensionnez la fen\u00EAtre \u00E0 moins de 400px pour voir le design responsive"),
|
|
75
|
-
React.createElement(VerificationCodeInput, __assign({}, args)))); };
|
|
76
|
-
Responsive.args = {
|
|
77
|
-
numInputs: 6,
|
|
78
|
-
size: "large",
|
|
79
|
-
};
|
|
80
|
-
Responsive.parameters = {
|
|
81
|
-
docs: {
|
|
82
|
-
description: {
|
|
83
|
-
story: "Montre le comportement responsive du composant lorsque la largeur de l'écran est inférieure à 400px",
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
viewport: {
|
|
87
|
-
defaultViewport: "mobile1",
|
|
88
|
-
},
|
|
89
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export const ActionsData: {};
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { ProgressBar as component };
|
|
5
|
-
export let tags: string[];
|
|
6
|
-
export let excludeStories: RegExp;
|
|
7
|
-
export namespace args {
|
|
8
|
-
let steps: number;
|
|
9
|
-
let currentStep: number;
|
|
10
|
-
let startIcon: boolean;
|
|
11
|
-
let endIcon: boolean;
|
|
12
|
-
let showProgressBar: boolean;
|
|
13
|
-
let barColor: string;
|
|
14
|
-
}
|
|
15
|
-
export namespace argTypes {
|
|
16
|
-
export namespace steps_1 {
|
|
17
|
-
namespace control {
|
|
18
|
-
let type: string;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export { steps_1 as steps };
|
|
22
|
-
export namespace currentStep_1 {
|
|
23
|
-
export namespace control_1 {
|
|
24
|
-
let type_1: string;
|
|
25
|
-
export { type_1 as type };
|
|
26
|
-
}
|
|
27
|
-
export { control_1 as control };
|
|
28
|
-
}
|
|
29
|
-
export { currentStep_1 as currentStep };
|
|
30
|
-
export namespace startIcon_1 {
|
|
31
|
-
export namespace control_2 {
|
|
32
|
-
let type_2: string;
|
|
33
|
-
export { type_2 as type };
|
|
34
|
-
}
|
|
35
|
-
export { control_2 as control };
|
|
36
|
-
}
|
|
37
|
-
export { startIcon_1 as startIcon };
|
|
38
|
-
export namespace endIcon_1 {
|
|
39
|
-
export namespace control_3 {
|
|
40
|
-
let type_3: string;
|
|
41
|
-
export { type_3 as type };
|
|
42
|
-
}
|
|
43
|
-
export { control_3 as control };
|
|
44
|
-
}
|
|
45
|
-
export { endIcon_1 as endIcon };
|
|
46
|
-
export namespace showProgressBar_1 {
|
|
47
|
-
export namespace control_4 {
|
|
48
|
-
let type_4: string;
|
|
49
|
-
export { type_4 as type };
|
|
50
|
-
}
|
|
51
|
-
export { control_4 as control };
|
|
52
|
-
}
|
|
53
|
-
export { showProgressBar_1 as showProgressBar };
|
|
54
|
-
export namespace barColor_1 {
|
|
55
|
-
export namespace control_5 {
|
|
56
|
-
let type_5: string;
|
|
57
|
-
export { type_5 as type };
|
|
58
|
-
export let options: string[];
|
|
59
|
-
}
|
|
60
|
-
export { control_5 as control };
|
|
61
|
-
export let description: string;
|
|
62
|
-
}
|
|
63
|
-
export { barColor_1 as barColor };
|
|
64
|
-
}
|
|
65
|
-
export namespace parameters {
|
|
66
|
-
namespace backgrounds {
|
|
67
|
-
let _default: string;
|
|
68
|
-
export { _default as default };
|
|
69
|
-
export let values: {
|
|
70
|
-
name: string;
|
|
71
|
-
value: string;
|
|
72
|
-
}[];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export default _default;
|
|
77
|
-
export const Default: any;
|
|
78
|
-
export const FirstStep: any;
|
|
79
|
-
export const Hidden: any;
|
|
80
|
-
export const RedProgress: any;
|
|
81
|
-
export const GreenProgress: any;
|
|
82
|
-
export const GreyProgress: any;
|
|
83
|
-
import ProgressBar from "./ProgressBar";
|