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,97 +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 FeatureGrid, { FeatureGridProps } from "./FeatureGrid";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/FeatureGrid",
|
|
17
|
-
component: FeatureGrid,
|
|
18
|
-
};
|
|
19
|
-
var Template = function (args) { return React.createElement(FeatureGrid, __assign({}, args)); };
|
|
20
|
-
export var Default = Template.bind({});
|
|
21
|
-
Default.args = {
|
|
22
|
-
title: "Explore Our Features",
|
|
23
|
-
features: [
|
|
24
|
-
{
|
|
25
|
-
title: "FeatureGrid stories",
|
|
26
|
-
image: {
|
|
27
|
-
src: "https://images.unsplash.com/reserve/LJIZlzHgQ7WPSh5KVTCB_Typewriter.jpg?q=80&w=1896&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
28
|
-
alt: "Placeholder image",
|
|
29
|
-
},
|
|
30
|
-
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet tristique augue, a venenatis lorem. Quisque nec consequat quam.",
|
|
31
|
-
action: {
|
|
32
|
-
href: "/learn-more",
|
|
33
|
-
label: "En savoir plus",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: "Comprehensive Solutions",
|
|
38
|
-
image: {
|
|
39
|
-
src: "https://images.unsplash.com/photo-1491895200222-0fc4a4c35e18?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
40
|
-
alt: "Placeholder image",
|
|
41
|
-
},
|
|
42
|
-
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet tristique augue, a venenatis lorem. Quisque nec consequat quam.",
|
|
43
|
-
action: {
|
|
44
|
-
href: "/details",
|
|
45
|
-
label: "En savoir plus",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: "Custom Feature",
|
|
50
|
-
image: {
|
|
51
|
-
src: "https://images.unsplash.com/photo-1737157998574-2a75f0c52a09?q=80&w=1924&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
52
|
-
alt: "Custom placeholder image",
|
|
53
|
-
},
|
|
54
|
-
content: "This feature showcases custom images with a unique size and layout.",
|
|
55
|
-
action: {
|
|
56
|
-
href: "/custom",
|
|
57
|
-
label: "En savoir plus",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
title: "Explore our services",
|
|
62
|
-
image: {
|
|
63
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
64
|
-
alt: "Placeholder image",
|
|
65
|
-
},
|
|
66
|
-
content: "Discover our tailored services designed to meet your needs. Our platform ensures you get the best solutions effortlessly.",
|
|
67
|
-
action: {
|
|
68
|
-
href: "/learn-more",
|
|
69
|
-
label: "Learn More",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
title: "Explore our services",
|
|
74
|
-
image: {
|
|
75
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
76
|
-
alt: "Placeholder image",
|
|
77
|
-
},
|
|
78
|
-
content: "Discover our tailored services designed to meet your needs. Our platform ensures you get the best solutions effortlessly.",
|
|
79
|
-
action: {
|
|
80
|
-
href: "/learn-more",
|
|
81
|
-
label: "Learn More",
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: "Explore our services",
|
|
86
|
-
image: {
|
|
87
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
88
|
-
alt: "Placeholder image",
|
|
89
|
-
},
|
|
90
|
-
content: "Discover our tailored services designed to meet your needs. Our platform ensures you get the best solutions effortlessly.",
|
|
91
|
-
action: {
|
|
92
|
-
href: "/learn-more",
|
|
93
|
-
label: "Learn More",
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { FileCard as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace argTypes {
|
|
6
|
-
namespace type {
|
|
7
|
-
namespace control {
|
|
8
|
-
let type_1: string;
|
|
9
|
-
export { type_1 as type };
|
|
10
|
-
export let options: string[];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
namespace shadow {
|
|
14
|
-
let control_1: string;
|
|
15
|
-
export { control_1 as control };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export namespace args {
|
|
19
|
-
let shadow_1: boolean;
|
|
20
|
-
export { shadow_1 as shadow };
|
|
21
|
-
let type_2: string;
|
|
22
|
-
export { type_2 as type };
|
|
23
|
-
}
|
|
24
|
-
export namespace parameters {
|
|
25
|
-
namespace backgrounds {
|
|
26
|
-
let _default: string;
|
|
27
|
-
export { _default as default };
|
|
28
|
-
export let values: {
|
|
29
|
-
name: string;
|
|
30
|
-
value: string;
|
|
31
|
-
}[];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export default _default;
|
|
36
|
-
export const Shared: any;
|
|
37
|
-
export const SharedSmall: any;
|
|
38
|
-
export const Received: any;
|
|
39
|
-
export const ReceivedManyFiles: any;
|
|
40
|
-
export const Asked: any;
|
|
41
|
-
export const AskedLongDetails: any;
|
|
42
|
-
import FileCard from "./FileCard";
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React from "react";
|
|
24
|
-
import FileCard from "./FileCard";
|
|
25
|
-
import "../../../styles/global.css";
|
|
26
|
-
export default {
|
|
27
|
-
title: "Components/Molecules/FileCard",
|
|
28
|
-
component: FileCard,
|
|
29
|
-
tags: ["autodocs"],
|
|
30
|
-
argTypes: {
|
|
31
|
-
type: {
|
|
32
|
-
control: {
|
|
33
|
-
type: "select",
|
|
34
|
-
options: ["Shared", "Received", "Asked"],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
shadow: { control: "boolean" },
|
|
38
|
-
},
|
|
39
|
-
args: {
|
|
40
|
-
shadow: true,
|
|
41
|
-
type: "Shared",
|
|
42
|
-
},
|
|
43
|
-
parameters: {
|
|
44
|
-
backgrounds: {
|
|
45
|
-
default: "light",
|
|
46
|
-
values: [
|
|
47
|
-
{ name: "light", value: "#ffffff" },
|
|
48
|
-
{ name: "grey", value: "#728ea7" },
|
|
49
|
-
{ name: "figma", value: "#404040" },
|
|
50
|
-
{ name: "dark", value: "#171e25" },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
var Template = function (args) {
|
|
56
|
-
// Filter args based on type to avoid passing invalid props
|
|
57
|
-
var type = args.type, restArgs = __rest(args, ["type"]);
|
|
58
|
-
if (type === "Shared") {
|
|
59
|
-
var id = restArgs.id, name_1 = restArgs.name, size = restArgs.size, creationDate = restArgs.creationDate, shareWithPart = restArgs.shareWithPart, docType = restArgs.docType, onCardClick = restArgs.onCardClick, shadow = restArgs.shadow;
|
|
60
|
-
return (React.createElement(FileCard, { type: "Shared", id: id || "file-1", name: name_1, size: size, creationDate: creationDate, shareWithPart: shareWithPart, docType: docType, onCardClick: onCardClick, shadow: shadow }));
|
|
61
|
-
}
|
|
62
|
-
if (type === "Received") {
|
|
63
|
-
var id = restArgs.id, demandeName = restArgs.demandeName, files = restArgs.files, onCardClick = restArgs.onCardClick, shadow = restArgs.shadow;
|
|
64
|
-
return (React.createElement(FileCard, { type: "Received", id: id || "received-1", demandeName: demandeName, files: files || [], onCardClick: onCardClick, shadow: shadow }));
|
|
65
|
-
}
|
|
66
|
-
if (type === "Asked") {
|
|
67
|
-
var id = restArgs.id, name_2 = restArgs.name, details = restArgs.details, onCardClick = restArgs.onCardClick, shadow = restArgs.shadow;
|
|
68
|
-
return (React.createElement(FileCard, { type: "Asked", id: id || "asked-1", name: name_2, details: details, onCardClick: onCardClick, shadow: shadow }));
|
|
69
|
-
}
|
|
70
|
-
return React.createElement(FileCard, __assign({}, args));
|
|
71
|
-
};
|
|
72
|
-
export var Shared = Template.bind({});
|
|
73
|
-
Shared.args = {
|
|
74
|
-
type: "Shared",
|
|
75
|
-
id: "file-1",
|
|
76
|
-
name: "Contrat_de_travail.pdf",
|
|
77
|
-
size: 2048576, // 2 MB
|
|
78
|
-
creationDate: new Date("2024-01-15"),
|
|
79
|
-
shareWithPart: true,
|
|
80
|
-
docType: "PDF",
|
|
81
|
-
};
|
|
82
|
-
export var SharedSmall = Template.bind({});
|
|
83
|
-
SharedSmall.args = {
|
|
84
|
-
type: "Shared",
|
|
85
|
-
id: "file-2",
|
|
86
|
-
name: "document.txt",
|
|
87
|
-
size: 512, // 512 bytes
|
|
88
|
-
creationDate: new Date("2024-02-20"),
|
|
89
|
-
shareWithPart: false,
|
|
90
|
-
docType: "TXT",
|
|
91
|
-
};
|
|
92
|
-
export var Received = Template.bind({});
|
|
93
|
-
Received.args = {
|
|
94
|
-
type: "Received",
|
|
95
|
-
id: "received-1",
|
|
96
|
-
demandeName: "Documents demandés pour le rendez-vous",
|
|
97
|
-
files: [
|
|
98
|
-
{
|
|
99
|
-
id: "file-1",
|
|
100
|
-
name: "Carte_identite.pdf",
|
|
101
|
-
size: 1024000,
|
|
102
|
-
creationDate: new Date("2024-01-10"),
|
|
103
|
-
shareWithPart: "Client",
|
|
104
|
-
docType: "PDF",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: "file-2",
|
|
108
|
-
name: "Justificatif_domicile.pdf",
|
|
109
|
-
size: 512000,
|
|
110
|
-
creationDate: new Date("2024-01-11"),
|
|
111
|
-
shareWithPart: "Client",
|
|
112
|
-
docType: "PDF",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: "file-3",
|
|
116
|
-
name: "Avis_imposition.pdf",
|
|
117
|
-
size: 1536000,
|
|
118
|
-
creationDate: new Date("2024-01-12"),
|
|
119
|
-
shareWithPart: "Client",
|
|
120
|
-
docType: "PDF",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
};
|
|
124
|
-
export var ReceivedManyFiles = Template.bind({});
|
|
125
|
-
ReceivedManyFiles.args = {
|
|
126
|
-
type: "Received",
|
|
127
|
-
id: "received-2",
|
|
128
|
-
demandeName: "Documents administratifs",
|
|
129
|
-
files: [
|
|
130
|
-
{
|
|
131
|
-
id: "file-1",
|
|
132
|
-
name: "Document1.pdf",
|
|
133
|
-
size: 1024000,
|
|
134
|
-
creationDate: new Date("2024-01-10"),
|
|
135
|
-
shareWithPart: "Client",
|
|
136
|
-
docType: "PDF",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: "file-2",
|
|
140
|
-
name: "Document2.pdf",
|
|
141
|
-
size: 512000,
|
|
142
|
-
creationDate: new Date("2024-01-11"),
|
|
143
|
-
shareWithPart: "Client",
|
|
144
|
-
docType: "PDF",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
id: "file-3",
|
|
148
|
-
name: "Document3.pdf",
|
|
149
|
-
size: 1536000,
|
|
150
|
-
creationDate: new Date("2024-01-12"),
|
|
151
|
-
shareWithPart: "Client",
|
|
152
|
-
docType: "PDF",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
id: "file-4",
|
|
156
|
-
name: "Document4.pdf",
|
|
157
|
-
size: 2048000,
|
|
158
|
-
creationDate: new Date("2024-01-13"),
|
|
159
|
-
shareWithPart: "Client",
|
|
160
|
-
docType: "PDF",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
id: "file-5",
|
|
164
|
-
name: "Document5.pdf",
|
|
165
|
-
size: 768000,
|
|
166
|
-
creationDate: new Date("2024-01-14"),
|
|
167
|
-
shareWithPart: "Client",
|
|
168
|
-
docType: "PDF",
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
};
|
|
172
|
-
export var Asked = Template.bind({});
|
|
173
|
-
Asked.args = {
|
|
174
|
-
type: "Asked",
|
|
175
|
-
id: "asked-1",
|
|
176
|
-
name: "Carte d'identité",
|
|
177
|
-
details: "Veuillez fournir une copie recto-verso de votre carte d'identité en cours de validité",
|
|
178
|
-
};
|
|
179
|
-
export var AskedLongDetails = Template.bind({});
|
|
180
|
-
AskedLongDetails.args = {
|
|
181
|
-
type: "Asked",
|
|
182
|
-
id: "asked-2",
|
|
183
|
-
name: "Justificatif de domicile",
|
|
184
|
-
details: "Merci de fournir un justificatif de domicile datant de moins de 3 mois. Les documents acceptés sont : facture d'électricité, facture de gaz, facture d'eau, quittance de loyer, ou attestation d'hébergement.",
|
|
185
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { FileUploader as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace parameters {
|
|
6
|
-
namespace backgrounds {
|
|
7
|
-
let _default: string;
|
|
8
|
-
export { _default as default };
|
|
9
|
-
export let values: {
|
|
10
|
-
name: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export namespace argTypes {
|
|
16
|
-
namespace acceptedExtensions {
|
|
17
|
-
let control: string;
|
|
18
|
-
let description: string;
|
|
19
|
-
}
|
|
20
|
-
namespace maxFileSizeMB {
|
|
21
|
-
let control_1: string;
|
|
22
|
-
export { control_1 as control };
|
|
23
|
-
let description_1: string;
|
|
24
|
-
export { description_1 as description };
|
|
25
|
-
}
|
|
26
|
-
namespace enableDragAndDrop {
|
|
27
|
-
let control_2: string;
|
|
28
|
-
export { control_2 as control };
|
|
29
|
-
let description_2: string;
|
|
30
|
-
export { description_2 as description };
|
|
31
|
-
}
|
|
32
|
-
namespace enableCropping {
|
|
33
|
-
let control_3: string;
|
|
34
|
-
export { control_3 as control };
|
|
35
|
-
let description_3: string;
|
|
36
|
-
export { description_3 as description };
|
|
37
|
-
}
|
|
38
|
-
namespace cropShape {
|
|
39
|
-
export namespace control_4 {
|
|
40
|
-
let type: string;
|
|
41
|
-
let options: string[];
|
|
42
|
-
}
|
|
43
|
-
export { control_4 as control };
|
|
44
|
-
let description_4: string;
|
|
45
|
-
export { description_4 as description };
|
|
46
|
-
}
|
|
47
|
-
namespace clientSideCrop {
|
|
48
|
-
let control_5: string;
|
|
49
|
-
export { control_5 as control };
|
|
50
|
-
let description_5: string;
|
|
51
|
-
export { description_5 as description };
|
|
52
|
-
}
|
|
53
|
-
namespace cropOutputDimensions {
|
|
54
|
-
let control_6: string;
|
|
55
|
-
export { control_6 as control };
|
|
56
|
-
let description_6: string;
|
|
57
|
-
export { description_6 as description };
|
|
58
|
-
}
|
|
59
|
-
namespace iconUrl {
|
|
60
|
-
let control_7: string;
|
|
61
|
-
export { control_7 as control };
|
|
62
|
-
let description_7: string;
|
|
63
|
-
export { description_7 as description };
|
|
64
|
-
}
|
|
65
|
-
namespace buttonLabel {
|
|
66
|
-
let control_8: string;
|
|
67
|
-
export { control_8 as control };
|
|
68
|
-
let description_8: string;
|
|
69
|
-
export { description_8 as description };
|
|
70
|
-
}
|
|
71
|
-
namespace acceptedLabel {
|
|
72
|
-
let control_9: string;
|
|
73
|
-
export { control_9 as control };
|
|
74
|
-
let description_9: string;
|
|
75
|
-
export { description_9 as description };
|
|
76
|
-
}
|
|
77
|
-
namespace maxSizeLabel {
|
|
78
|
-
let control_10: string;
|
|
79
|
-
export { control_10 as control };
|
|
80
|
-
let description_10: string;
|
|
81
|
-
export { description_10 as description };
|
|
82
|
-
}
|
|
83
|
-
namespace uploadProgress {
|
|
84
|
-
export namespace control_11 {
|
|
85
|
-
let type_1: string;
|
|
86
|
-
export { type_1 as type };
|
|
87
|
-
export let min: number;
|
|
88
|
-
export let max: number;
|
|
89
|
-
export let step: number;
|
|
90
|
-
}
|
|
91
|
-
export { control_11 as control };
|
|
92
|
-
let description_11: string;
|
|
93
|
-
export { description_11 as description };
|
|
94
|
-
}
|
|
95
|
-
namespace isLoading {
|
|
96
|
-
let control_12: string;
|
|
97
|
-
export { control_12 as control };
|
|
98
|
-
let description_12: string;
|
|
99
|
-
export { description_12 as description };
|
|
100
|
-
}
|
|
101
|
-
namespace errorMessage {
|
|
102
|
-
let control_13: string;
|
|
103
|
-
export { control_13 as control };
|
|
104
|
-
let description_13: string;
|
|
105
|
-
export { description_13 as description };
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
export default _default;
|
|
110
|
-
export const Default: any;
|
|
111
|
-
export const WithDescription: any;
|
|
112
|
-
export const WithoutDragAndDrop: any;
|
|
113
|
-
export const WithError: any;
|
|
114
|
-
export const WithProgress: any;
|
|
115
|
-
export const MultipleExtensions: any;
|
|
116
|
-
export const WithSquareCropping: any;
|
|
117
|
-
export const WithCircleCropping: any;
|
|
118
|
-
export const WithPreloadedImage: any;
|
|
119
|
-
export const WithBannerCropping: any;
|
|
120
|
-
import FileUploader from "./FileUploader";
|