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,49 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { ProCard as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace imageUrl {
|
|
7
|
-
let control: string;
|
|
8
|
-
}
|
|
9
|
-
namespace job {
|
|
10
|
-
let control_1: string;
|
|
11
|
-
export { control_1 as control };
|
|
12
|
-
}
|
|
13
|
-
namespace firstName {
|
|
14
|
-
let control_2: string;
|
|
15
|
-
export { control_2 as control };
|
|
16
|
-
}
|
|
17
|
-
namespace lastName {
|
|
18
|
-
let control_3: string;
|
|
19
|
-
export { control_3 as control };
|
|
20
|
-
}
|
|
21
|
-
namespace address {
|
|
22
|
-
let control_4: string;
|
|
23
|
-
export { control_4 as control };
|
|
24
|
-
}
|
|
25
|
-
namespace profileUrl {
|
|
26
|
-
let control_5: string;
|
|
27
|
-
export { control_5 as control };
|
|
28
|
-
}
|
|
29
|
-
namespace isPro {
|
|
30
|
-
let control_6: string;
|
|
31
|
-
export { control_6 as control };
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export namespace parameters {
|
|
35
|
-
namespace backgrounds {
|
|
36
|
-
let _default: string;
|
|
37
|
-
export { _default as default };
|
|
38
|
-
export let values: {
|
|
39
|
-
name: string;
|
|
40
|
-
value: string;
|
|
41
|
-
}[];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export default _default;
|
|
46
|
-
export const Default: any;
|
|
47
|
-
export const NoImage: any;
|
|
48
|
-
export const ProUser: any;
|
|
49
|
-
import ProCard from "./ProCard";
|
|
@@ -1,69 +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 ProCard from "./ProCard";
|
|
14
|
-
import "../../../styles/global.css";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/ProCard",
|
|
17
|
-
component: ProCard,
|
|
18
|
-
tags: ["autodocs"],
|
|
19
|
-
argTypes: {
|
|
20
|
-
imageUrl: { control: "text" },
|
|
21
|
-
job: { control: "text" },
|
|
22
|
-
firstName: { control: "text" },
|
|
23
|
-
lastName: { control: "text" },
|
|
24
|
-
address: { control: "text" },
|
|
25
|
-
profileUrl: { control: "text" },
|
|
26
|
-
isPro: { control: "boolean" },
|
|
27
|
-
},
|
|
28
|
-
parameters: {
|
|
29
|
-
backgrounds: {
|
|
30
|
-
default: "light",
|
|
31
|
-
values: [
|
|
32
|
-
{ name: "light", value: "#ffffff" },
|
|
33
|
-
{ name: "grey", value: "#728ea7" },
|
|
34
|
-
{ name: "figma", value: "#404040" },
|
|
35
|
-
{ name: "dark", value: "#171e25" },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
var Template = function (args) { return React.createElement(ProCard, __assign({}, args)); };
|
|
41
|
-
export var Default = Template.bind({});
|
|
42
|
-
Default.args = {
|
|
43
|
-
imageUrl: "https://example.com/avatar.jpg",
|
|
44
|
-
job: "AVOCAT",
|
|
45
|
-
firstName: "Camelia",
|
|
46
|
-
lastName: "Jordanna",
|
|
47
|
-
address: "132 Av. Resistance 75012 Paris",
|
|
48
|
-
profileUrl: "/profile/camelia-jordanna",
|
|
49
|
-
isPro: false,
|
|
50
|
-
};
|
|
51
|
-
export var NoImage = Template.bind({});
|
|
52
|
-
NoImage.args = {
|
|
53
|
-
job: "NOTAIRE",
|
|
54
|
-
firstName: "John",
|
|
55
|
-
lastName: "Doe",
|
|
56
|
-
address: "1 Rue de la Paix, 75001 Paris",
|
|
57
|
-
profileUrl: "/profile/john-doe",
|
|
58
|
-
isPro: false,
|
|
59
|
-
};
|
|
60
|
-
export var ProUser = Template.bind({});
|
|
61
|
-
ProUser.args = {
|
|
62
|
-
imageUrl: "https://example.com/avatar.jpg",
|
|
63
|
-
job: "AVOCAT",
|
|
64
|
-
firstName: "Emma",
|
|
65
|
-
lastName: "Smith",
|
|
66
|
-
address: "15 Rue du Faubourg Saint-Honoré, 75008 Paris",
|
|
67
|
-
profileUrl: "/profile/emma-smith",
|
|
68
|
-
isPro: true,
|
|
69
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { AvatarBubble as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace firstName {
|
|
7
|
-
let control: string;
|
|
8
|
-
let description: string;
|
|
9
|
-
}
|
|
10
|
-
namespace name {
|
|
11
|
-
let control_1: string;
|
|
12
|
-
export { control_1 as control };
|
|
13
|
-
let description_1: string;
|
|
14
|
-
export { description_1 as description };
|
|
15
|
-
}
|
|
16
|
-
namespace src {
|
|
17
|
-
let control_2: string;
|
|
18
|
-
export { control_2 as control };
|
|
19
|
-
let description_2: string;
|
|
20
|
-
export { description_2 as description };
|
|
21
|
-
}
|
|
22
|
-
namespace size {
|
|
23
|
-
export namespace control_3 {
|
|
24
|
-
let type: string;
|
|
25
|
-
let min: number;
|
|
26
|
-
let max: number;
|
|
27
|
-
let step: number;
|
|
28
|
-
}
|
|
29
|
-
export { control_3 as control };
|
|
30
|
-
let description_3: string;
|
|
31
|
-
export { description_3 as description };
|
|
32
|
-
}
|
|
33
|
-
namespace isSelected {
|
|
34
|
-
let control_4: string;
|
|
35
|
-
export { control_4 as control };
|
|
36
|
-
let description_4: string;
|
|
37
|
-
export { description_4 as description };
|
|
38
|
-
}
|
|
39
|
-
namespace disabled {
|
|
40
|
-
let control_5: string;
|
|
41
|
-
export { control_5 as control };
|
|
42
|
-
let description_5: string;
|
|
43
|
-
export { description_5 as description };
|
|
44
|
-
}
|
|
45
|
-
namespace disableHoverAnimation {
|
|
46
|
-
let control_6: string;
|
|
47
|
-
export { control_6 as control };
|
|
48
|
-
let description_6: string;
|
|
49
|
-
export { description_6 as description };
|
|
50
|
-
}
|
|
51
|
-
namespace borderThick {
|
|
52
|
-
let control_7: string;
|
|
53
|
-
export { control_7 as control };
|
|
54
|
-
let description_7: string;
|
|
55
|
-
export { description_7 as description };
|
|
56
|
-
}
|
|
57
|
-
namespace showTooltip {
|
|
58
|
-
let control_8: string;
|
|
59
|
-
export { control_8 as control };
|
|
60
|
-
let description_8: string;
|
|
61
|
-
export { description_8 as description };
|
|
62
|
-
}
|
|
63
|
-
namespace tooltipId {
|
|
64
|
-
let control_9: string;
|
|
65
|
-
export { control_9 as control };
|
|
66
|
-
let description_9: string;
|
|
67
|
-
export { description_9 as description };
|
|
68
|
-
}
|
|
69
|
-
namespace onClick {
|
|
70
|
-
export let action: string;
|
|
71
|
-
let description_10: string;
|
|
72
|
-
export { description_10 as description };
|
|
73
|
-
}
|
|
74
|
-
namespace alt {
|
|
75
|
-
let control_10: string;
|
|
76
|
-
export { control_10 as control };
|
|
77
|
-
let description_11: string;
|
|
78
|
-
export { description_11 as description };
|
|
79
|
-
}
|
|
80
|
-
namespace clickable {
|
|
81
|
-
let control_11: string;
|
|
82
|
-
export { control_11 as control };
|
|
83
|
-
let description_12: string;
|
|
84
|
-
export { description_12 as description };
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export namespace parameters {
|
|
88
|
-
namespace backgrounds {
|
|
89
|
-
let _default: string;
|
|
90
|
-
export { _default as default };
|
|
91
|
-
export let values: {
|
|
92
|
-
name: string;
|
|
93
|
-
value: string;
|
|
94
|
-
}[];
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export default _default;
|
|
99
|
-
export const Default: any;
|
|
100
|
-
export const WithInitials: any;
|
|
101
|
-
export const Selected: any;
|
|
102
|
-
export const Disabled: any;
|
|
103
|
-
export const Small: any;
|
|
104
|
-
export const Large: any;
|
|
105
|
-
export const WithoutHoverAnimation: any;
|
|
106
|
-
export const SelectedWithoutHoverAnimation: any;
|
|
107
|
-
export function MultipleSizes(): React.JSX.Element;
|
|
108
|
-
export function ColorVariations(): React.JSX.Element;
|
|
109
|
-
export function HoverAnimationComparison(): React.JSX.Element;
|
|
110
|
-
export const NotClickable: any;
|
|
111
|
-
import AvatarBubble from "./AvatarBubble";
|
|
112
|
-
import React from "react";
|
|
@@ -1,255 +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 { action } from "@storybook/addon-actions";
|
|
14
|
-
import AvatarBubble from "./AvatarBubble";
|
|
15
|
-
import "../../../styles/global.css";
|
|
16
|
-
export default {
|
|
17
|
-
title: "Components/Molecules/ProSwitch/AvatarBubble",
|
|
18
|
-
component: AvatarBubble,
|
|
19
|
-
tags: ["autodocs"],
|
|
20
|
-
argTypes: {
|
|
21
|
-
firstName: {
|
|
22
|
-
control: "text",
|
|
23
|
-
description: "Prénom de la personne",
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
control: "text",
|
|
27
|
-
description: "Nom de famille de la personne",
|
|
28
|
-
},
|
|
29
|
-
src: {
|
|
30
|
-
control: "text",
|
|
31
|
-
description: "URL de l'image de profil (optionnel)",
|
|
32
|
-
},
|
|
33
|
-
size: {
|
|
34
|
-
control: { type: "number", min: 20, max: 100, step: 0.5 },
|
|
35
|
-
description: "Taille de l'avatar en pixels (défaut: 42.5)",
|
|
36
|
-
},
|
|
37
|
-
isSelected: {
|
|
38
|
-
control: "boolean",
|
|
39
|
-
description: "État sélectionné avec anneau bleu",
|
|
40
|
-
},
|
|
41
|
-
disabled: {
|
|
42
|
-
control: "boolean",
|
|
43
|
-
description: "État désactivé (grisé)",
|
|
44
|
-
},
|
|
45
|
-
disableHoverAnimation: {
|
|
46
|
-
control: "boolean",
|
|
47
|
-
description: "Désactive l'animation au hover (translateY)",
|
|
48
|
-
},
|
|
49
|
-
borderThick: {
|
|
50
|
-
control: "boolean",
|
|
51
|
-
description: "Bordure épaisse (4px) autour de l'avatar si true, 2px sinon (défaut)",
|
|
52
|
-
},
|
|
53
|
-
showTooltip: {
|
|
54
|
-
control: "boolean",
|
|
55
|
-
description: "Afficher le tooltip avec le nom complet au hover",
|
|
56
|
-
},
|
|
57
|
-
tooltipId: {
|
|
58
|
-
control: "text",
|
|
59
|
-
description: "ID personnalisé pour le tooltip",
|
|
60
|
-
},
|
|
61
|
-
onClick: {
|
|
62
|
-
action: "clicked",
|
|
63
|
-
description: "Callback appelé au clic",
|
|
64
|
-
},
|
|
65
|
-
alt: {
|
|
66
|
-
control: "text",
|
|
67
|
-
description: "Texte alternatif pour l'accessibilité",
|
|
68
|
-
},
|
|
69
|
-
clickable: {
|
|
70
|
-
control: "boolean",
|
|
71
|
-
description: "État cliquable de l'avatar",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
parameters: {
|
|
75
|
-
backgrounds: {
|
|
76
|
-
default: "light",
|
|
77
|
-
values: [
|
|
78
|
-
{ name: "light", value: "#ffffff" },
|
|
79
|
-
{ name: "grey", value: "#728ea7" },
|
|
80
|
-
{ name: "figma", value: "#404040" },
|
|
81
|
-
{ name: "dark", value: "#171e25" },
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
var Template = function (args) {
|
|
87
|
-
var _a = useState(args.isSelected || false), selected = _a[0], setSelected = _a[1];
|
|
88
|
-
var handleClick = function () {
|
|
89
|
-
setSelected(!selected);
|
|
90
|
-
action("Avatar clicked")(args);
|
|
91
|
-
};
|
|
92
|
-
return (React.createElement("div", { style: { padding: "20px" } },
|
|
93
|
-
React.createElement(AvatarBubble, __assign({}, args, { isSelected: selected, onClick: handleClick }))));
|
|
94
|
-
};
|
|
95
|
-
export var Default = Template.bind({});
|
|
96
|
-
Default.args = {
|
|
97
|
-
firstName: "Jean",
|
|
98
|
-
name: "Dupont",
|
|
99
|
-
src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face",
|
|
100
|
-
size: 42.5,
|
|
101
|
-
isSelected: false,
|
|
102
|
-
disabled: false,
|
|
103
|
-
disableHoverAnimation: false,
|
|
104
|
-
borderThick: false,
|
|
105
|
-
showTooltip: true,
|
|
106
|
-
tooltipId: "avatar-tooltip",
|
|
107
|
-
};
|
|
108
|
-
export var WithInitials = Template.bind({});
|
|
109
|
-
WithInitials.args = {
|
|
110
|
-
firstName: "Marie",
|
|
111
|
-
name: "Martin",
|
|
112
|
-
src: "", // Pas d'image pour forcer l'affichage des initiales
|
|
113
|
-
size: 42.5,
|
|
114
|
-
isSelected: false,
|
|
115
|
-
disabled: false,
|
|
116
|
-
disableHoverAnimation: false,
|
|
117
|
-
borderThick: false,
|
|
118
|
-
showTooltip: true,
|
|
119
|
-
tooltipId: "avatar-tooltip",
|
|
120
|
-
};
|
|
121
|
-
export var Selected = Template.bind({});
|
|
122
|
-
Selected.args = {
|
|
123
|
-
firstName: "Pierre",
|
|
124
|
-
name: "Durand",
|
|
125
|
-
src: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop&crop=face",
|
|
126
|
-
size: 42.5,
|
|
127
|
-
isSelected: true,
|
|
128
|
-
disabled: false,
|
|
129
|
-
disableHoverAnimation: false,
|
|
130
|
-
borderThick: false,
|
|
131
|
-
showTooltip: true,
|
|
132
|
-
tooltipId: "avatar-tooltip",
|
|
133
|
-
};
|
|
134
|
-
export var Disabled = Template.bind({});
|
|
135
|
-
Disabled.args = {
|
|
136
|
-
firstName: "Sophie",
|
|
137
|
-
name: "Bernard",
|
|
138
|
-
src: "https://images.unsplash.com/photo-1494790108755-2616b612b786?w=150&h=150&fit=crop&crop=face",
|
|
139
|
-
size: 42.5,
|
|
140
|
-
isSelected: false,
|
|
141
|
-
disabled: true,
|
|
142
|
-
disableHoverAnimation: false,
|
|
143
|
-
borderThick: false,
|
|
144
|
-
showTooltip: true,
|
|
145
|
-
tooltipId: "avatar-tooltip",
|
|
146
|
-
};
|
|
147
|
-
export var Small = Template.bind({});
|
|
148
|
-
Small.args = {
|
|
149
|
-
firstName: "Lucas",
|
|
150
|
-
name: "Petit",
|
|
151
|
-
src: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=150&h=150&fit=crop&crop=face",
|
|
152
|
-
size: 32,
|
|
153
|
-
isSelected: false,
|
|
154
|
-
disabled: false,
|
|
155
|
-
disableHoverAnimation: false,
|
|
156
|
-
borderThick: false,
|
|
157
|
-
showTooltip: true,
|
|
158
|
-
tooltipId: "avatar-tooltip",
|
|
159
|
-
};
|
|
160
|
-
export var Large = Template.bind({});
|
|
161
|
-
Large.args = {
|
|
162
|
-
firstName: "Emma",
|
|
163
|
-
name: "Rousseau",
|
|
164
|
-
src: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=150&h=150&fit=crop&crop=face",
|
|
165
|
-
size: 56,
|
|
166
|
-
isSelected: false,
|
|
167
|
-
disabled: false,
|
|
168
|
-
disableHoverAnimation: false,
|
|
169
|
-
borderThick: false,
|
|
170
|
-
showTooltip: true,
|
|
171
|
-
tooltipId: "avatar-tooltip",
|
|
172
|
-
};
|
|
173
|
-
export var WithoutHoverAnimation = Template.bind({});
|
|
174
|
-
WithoutHoverAnimation.args = {
|
|
175
|
-
firstName: "Thomas",
|
|
176
|
-
name: "Leroy",
|
|
177
|
-
src: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop&crop=face",
|
|
178
|
-
size: 42.5,
|
|
179
|
-
isSelected: false,
|
|
180
|
-
disabled: false,
|
|
181
|
-
disableHoverAnimation: true,
|
|
182
|
-
borderThick: false,
|
|
183
|
-
showTooltip: true,
|
|
184
|
-
tooltipId: "avatar-tooltip",
|
|
185
|
-
};
|
|
186
|
-
export var SelectedWithoutHoverAnimation = Template.bind({});
|
|
187
|
-
SelectedWithoutHoverAnimation.args = {
|
|
188
|
-
firstName: "Julie",
|
|
189
|
-
name: "Moreau",
|
|
190
|
-
src: "https://images.unsplash.com/photo-1494790108755-2616b612b786?w=150&h=150&fit=crop&crop=face",
|
|
191
|
-
size: 42.5,
|
|
192
|
-
isSelected: true,
|
|
193
|
-
disabled: false,
|
|
194
|
-
disableHoverAnimation: true,
|
|
195
|
-
borderThick: false,
|
|
196
|
-
showTooltip: true,
|
|
197
|
-
tooltipId: "avatar-tooltip",
|
|
198
|
-
};
|
|
199
|
-
export var MultipleSizes = function () {
|
|
200
|
-
var _a = useState(0), selectedIndex = _a[0], setSelectedIndex = _a[1];
|
|
201
|
-
var avatars = [
|
|
202
|
-
{ firstName: "Alice", name: "Dubois", size: 32 },
|
|
203
|
-
{ firstName: "Bob", name: "Moreau", size: 42.5 },
|
|
204
|
-
{ firstName: "Claire", name: "Simon", size: 56 },
|
|
205
|
-
];
|
|
206
|
-
return (React.createElement("div", { style: {
|
|
207
|
-
padding: "20px",
|
|
208
|
-
display: "flex",
|
|
209
|
-
gap: "20px",
|
|
210
|
-
alignItems: "center",
|
|
211
|
-
} }, avatars.map(function (avatar, index) { return (React.createElement(AvatarBubble, { key: index, firstName: avatar.firstName, name: avatar.name, size: avatar.size, isSelected: selectedIndex === index, onClick: function () { return setSelectedIndex(index); }, showTooltip: true, tooltipId: "multiple-sizes-tooltip" })); })));
|
|
212
|
-
};
|
|
213
|
-
export var ColorVariations = function () {
|
|
214
|
-
var names = [
|
|
215
|
-
{ firstName: "Alice", name: "Dubois" },
|
|
216
|
-
{ firstName: "Bob", name: "Moreau" },
|
|
217
|
-
{ firstName: "Claire", name: "Simon" },
|
|
218
|
-
{ firstName: "David", name: "Michel" },
|
|
219
|
-
{ firstName: "Emma", name: "Rousseau" },
|
|
220
|
-
{ firstName: "François", name: "Leroy" },
|
|
221
|
-
];
|
|
222
|
-
return (React.createElement("div", { style: {
|
|
223
|
-
padding: "20px",
|
|
224
|
-
display: "flex",
|
|
225
|
-
gap: "10px",
|
|
226
|
-
flexWrap: "wrap",
|
|
227
|
-
} }, names.map(function (name, index) { return (React.createElement(AvatarBubble, { key: index, firstName: name.firstName, name: name.name, size: 42.5, onClick: function () { return action("Clicked ".concat(name.firstName, " ").concat(name.name))(); }, showTooltip: true, tooltipId: "color-variations-tooltip" })); })));
|
|
228
|
-
};
|
|
229
|
-
export var HoverAnimationComparison = function () {
|
|
230
|
-
var _a = useState(0), selectedIndex = _a[0], setSelectedIndex = _a[1];
|
|
231
|
-
return (React.createElement("div", { style: {
|
|
232
|
-
padding: "20px",
|
|
233
|
-
display: "flex",
|
|
234
|
-
gap: "20px",
|
|
235
|
-
alignItems: "center",
|
|
236
|
-
} },
|
|
237
|
-
React.createElement("div", { style: { textAlign: "center" } },
|
|
238
|
-
React.createElement("h4", { style: { marginBottom: "10px" } }, "Avec animation"),
|
|
239
|
-
React.createElement(AvatarBubble, { firstName: "Jean", name: "Dupont", src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face", size: 42.5, isSelected: selectedIndex === 0, onClick: function () { return setSelectedIndex(0); }, showTooltip: true, tooltipId: "hover-comparison-tooltip" })),
|
|
240
|
-
React.createElement("div", { style: { textAlign: "center" } },
|
|
241
|
-
React.createElement("h4", { style: { marginBottom: "10px" } }, "Sans animation"),
|
|
242
|
-
React.createElement(AvatarBubble, { firstName: "Marie", name: "Martin", src: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop&crop=face", size: 42.5, isSelected: selectedIndex === 1, onClick: function () { return setSelectedIndex(1); }, disableHoverAnimation: true, showTooltip: true, tooltipId: "hover-comparison-tooltip" }))));
|
|
243
|
-
};
|
|
244
|
-
export var NotClickable = Template.bind({});
|
|
245
|
-
NotClickable.args = {
|
|
246
|
-
firstName: "Non",
|
|
247
|
-
name: "Cliquable",
|
|
248
|
-
src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face",
|
|
249
|
-
size: 42.5,
|
|
250
|
-
isSelected: false,
|
|
251
|
-
disabled: false,
|
|
252
|
-
clickable: false,
|
|
253
|
-
showTooltip: true,
|
|
254
|
-
tooltipId: "avatar-not-clickable",
|
|
255
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { AvatarToggleGroup as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace pros {
|
|
7
|
-
let control: string;
|
|
8
|
-
let description: string;
|
|
9
|
-
}
|
|
10
|
-
namespace mode {
|
|
11
|
-
export namespace control_1 {
|
|
12
|
-
let type: string;
|
|
13
|
-
let options: string[];
|
|
14
|
-
}
|
|
15
|
-
export { control_1 as control };
|
|
16
|
-
let description_1: string;
|
|
17
|
-
export { description_1 as description };
|
|
18
|
-
}
|
|
19
|
-
namespace selected {
|
|
20
|
-
let control_2: string;
|
|
21
|
-
export { control_2 as control };
|
|
22
|
-
let description_2: string;
|
|
23
|
-
export { description_2 as description };
|
|
24
|
-
}
|
|
25
|
-
namespace maxVisible {
|
|
26
|
-
export namespace control_3 {
|
|
27
|
-
let type_1: string;
|
|
28
|
-
export { type_1 as type };
|
|
29
|
-
export let min: number;
|
|
30
|
-
export let max: number;
|
|
31
|
-
}
|
|
32
|
-
export { control_3 as control };
|
|
33
|
-
let description_3: string;
|
|
34
|
-
export { description_3 as description };
|
|
35
|
-
}
|
|
36
|
-
namespace disabled {
|
|
37
|
-
let control_4: string;
|
|
38
|
-
export { control_4 as control };
|
|
39
|
-
let description_4: string;
|
|
40
|
-
export { description_4 as description };
|
|
41
|
-
}
|
|
42
|
-
namespace onSelect {
|
|
43
|
-
export let action: string;
|
|
44
|
-
let description_5: string;
|
|
45
|
-
export { description_5 as description };
|
|
46
|
-
}
|
|
47
|
-
namespace onOpenPortal {
|
|
48
|
-
let action_1: string;
|
|
49
|
-
export { action_1 as action };
|
|
50
|
-
let description_6: string;
|
|
51
|
-
export { description_6 as description };
|
|
52
|
-
}
|
|
53
|
-
namespace showTooltips {
|
|
54
|
-
let control_5: string;
|
|
55
|
-
export { control_5 as control };
|
|
56
|
-
let description_7: string;
|
|
57
|
-
export { description_7 as description };
|
|
58
|
-
}
|
|
59
|
-
namespace tooltipId {
|
|
60
|
-
let control_6: string;
|
|
61
|
-
export { control_6 as control };
|
|
62
|
-
let description_8: string;
|
|
63
|
-
export { description_8 as description };
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export namespace parameters {
|
|
67
|
-
namespace backgrounds {
|
|
68
|
-
let _default: string;
|
|
69
|
-
export { _default as default };
|
|
70
|
-
export let values: {
|
|
71
|
-
name: string;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export default _default;
|
|
78
|
-
export const Default: any;
|
|
79
|
-
export const Multiple: any;
|
|
80
|
-
export const WithManyPros: any;
|
|
81
|
-
export const Disabled: any;
|
|
82
|
-
export const WithMaxVisible: any;
|
|
83
|
-
export const SingleWithInitials: any;
|
|
84
|
-
export function ResponsiveTest(): React.JSX.Element;
|
|
85
|
-
export function InteractiveDemo(): React.JSX.Element;
|
|
86
|
-
export function TooltipTest(): React.JSX.Element;
|
|
87
|
-
import AvatarToggleGroup from "./AvatarToggleGroup";
|
|
88
|
-
import React from "react";
|