allaw-ui 1.1.1 → 2.0.0
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/assets/allaw-font.eot +0 -0
- package/dist/assets/allaw-font.svg +15 -0
- package/dist/assets/allaw-font.ttf +0 -0
- package/dist/assets/allaw-font.woff +0 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
- package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
- package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
- package/dist/components/atoms/buttons/IconButton.js +2 -2
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +2 -2
- package/dist/components/atoms/buttons/OAuthProviderButton.js +43 -10
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
- package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -1
- package/dist/components/atoms/buttons/PendingDocuments.js +6 -4
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
- package/dist/components/atoms/buttons/PrimaryButton.css +1 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
- package/dist/components/atoms/buttons/TabNavigation.css +2 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
- package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
- package/dist/components/atoms/datepickers/Datepicker.js +1 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
- package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
- package/dist/components/atoms/filter/Filter.stories.js +77 -0
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
- package/dist/components/atoms/filters/SingleFilter.stories.js +34 -0
- package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
- package/dist/components/atoms/inputs/Input.stories.js +101 -0
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
- package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
- package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
- package/dist/components/atoms/progressBars/ProgressBar.css +2 -3
- package/dist/components/atoms/progressBars/ProgressBar.js +2 -3
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
- package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
- package/dist/components/atoms/selects/ComboBox.css +1 -1
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
- package/dist/components/atoms/selects/Select.d.ts +0 -1
- package/dist/components/atoms/selects/Select.js +47 -20
- package/dist/components/atoms/selects/{Select.css → Select.module.css} +12 -13
- package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
- package/dist/components/atoms/selects/Select.stories.js +154 -0
- package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
- package/dist/components/atoms/selects/SelectableListItem.js +18 -0
- package/dist/components/atoms/selects/SelectableListItem.module.css +157 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
- package/dist/components/atoms/selects/index.d.ts +2 -0
- package/dist/components/atoms/selects/index.js +1 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
- package/dist/components/atoms/tags/FolderStatusTag.css +4 -4
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
- package/dist/components/atoms/tags/OtherStatusTag.css +20 -1
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +1 -0
- package/dist/components/atoms/tags/OtherStatusTag.js +2 -2
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
- package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
- package/dist/components/atoms/typography/CardDate.stories.js +103 -0
- package/dist/components/atoms/typography/Heading.js +1 -1
- package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
- package/dist/components/atoms/typography/Heading.stories.js +90 -0
- package/dist/components/atoms/typography/Link.d.ts +13 -0
- package/dist/components/atoms/typography/Link.js +35 -0
- package/dist/components/atoms/typography/Link.module.css +60 -0
- package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
- package/dist/components/atoms/typography/Link.stories.js +105 -0
- package/dist/components/atoms/typography/Paragraph.d.ts +2 -0
- package/dist/components/atoms/typography/Paragraph.js +3 -3
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
- package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
- package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
- package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
- package/dist/components/atoms/typography/TinyInfo.d.ts +1 -0
- package/dist/components/atoms/typography/TinyInfo.js +2 -2
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
- package/dist/components/atoms/typography/index.d.ts +2 -0
- package/dist/components/atoms/typography/index.js +1 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.css +55 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -0
- package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
- package/dist/components/molecules/blogCard/BlogCard.js +33 -0
- package/dist/components/molecules/blogCard/BlogCard.module.css +148 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
- package/dist/components/molecules/blogCard/index.d.ts +2 -0
- package/dist/components/molecules/blogCard/index.js +1 -0
- package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
- package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
- package/dist/components/molecules/blogFooter/BlogFooter.module.css +48 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
- package/dist/components/molecules/blogFooter/index.d.ts +2 -0
- package/dist/components/molecules/blogFooter/index.js +1 -0
- package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
- package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
- package/dist/components/molecules/blogHeader/BlogHeader.module.css +150 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
- package/dist/components/molecules/blogHeader/index.d.ts +2 -0
- package/dist/components/molecules/blogHeader/index.js +1 -0
- package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
- package/dist/components/molecules/blogText/BlogText.js +11 -0
- package/dist/components/molecules/blogText/BlogText.module.css +59 -0
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
- package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
- package/dist/components/molecules/blogText/index.d.ts +2 -0
- package/dist/components/molecules/blogText/index.js +1 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.module.css +108 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
- package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
- package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +2 -1
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
- package/dist/components/molecules/caseCardCompact/caseCardCompact.css +5 -2
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +2 -4
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +2 -2
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
- package/dist/components/molecules/contactCard/ContactCard.d.ts +3 -2
- package/dist/components/molecules/contactCard/ContactCard.js +25 -23
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +83 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +86 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
- package/dist/components/molecules/contactCard/{ContactCard.css → contactCard.module.css} +34 -28
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
- package/dist/components/molecules/documentCard/DocumentCard.css +4 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +3 -2
- package/dist/components/molecules/documentCard/DocumentCard.js +45 -7
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
- package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
- package/dist/components/molecules/proCard/ProCard.js +0 -4
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
- package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -0
- package/dist/components/molecules/stepper/Stepper.css +17 -4
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.js +8 -1
- package/dist/stories/Header.d.ts +13 -0
- package/dist/stories/Header.js +20 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Header.stories.js +26 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.js +37 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/stories/Page.stories.js +76 -0
- package/dist/stories/header.css +32 -0
- package/dist/stories/page.css +69 -0
- package/dist/styles/colors.css +2 -0
- package/dist/styles/colors.module.css +107 -0
- package/dist/styles/icons.css +76 -107
- package/package.json +16 -14
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { RadioForm as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace label {
|
|
7
|
+
let control: string;
|
|
8
|
+
}
|
|
9
|
+
namespace isRequired {
|
|
10
|
+
let control_1: string;
|
|
11
|
+
export { control_1 as control };
|
|
12
|
+
}
|
|
13
|
+
namespace options {
|
|
14
|
+
let control_2: string;
|
|
15
|
+
export { control_2 as control };
|
|
16
|
+
}
|
|
17
|
+
namespace defaultSelected {
|
|
18
|
+
let control_3: string;
|
|
19
|
+
export { control_3 as control };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export default _default;
|
|
24
|
+
export const Default: any;
|
|
25
|
+
export const WithDefaultSelection: any;
|
|
26
|
+
export const MultipleOptions: any;
|
|
27
|
+
import RadioForm from "./RadioForm";
|
|
@@ -0,0 +1,52 @@
|
|
|
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 RadioForm from "./RadioForm";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Molecules/RadioForm",
|
|
17
|
+
component: RadioForm,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
label: { control: "text" },
|
|
21
|
+
isRequired: { control: "boolean" },
|
|
22
|
+
options: { control: "array" },
|
|
23
|
+
defaultSelected: { control: "text" },
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
var Template = function (args) {
|
|
27
|
+
var _a = useState(args.defaultSelected || null), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
28
|
+
var handleChange = function (newOption) {
|
|
29
|
+
setSelectedOption(newOption);
|
|
30
|
+
console.log("Selected option:", newOption);
|
|
31
|
+
};
|
|
32
|
+
return React.createElement(RadioForm, __assign({}, args, { onChange: handleChange }));
|
|
33
|
+
};
|
|
34
|
+
export var Default = Template.bind({});
|
|
35
|
+
Default.args = {
|
|
36
|
+
label: "Référencer ma fiche pro dans les recherches sur allaw.fr",
|
|
37
|
+
isRequired: true,
|
|
38
|
+
options: ["Oui", "Non"],
|
|
39
|
+
};
|
|
40
|
+
export var WithDefaultSelection = Template.bind({});
|
|
41
|
+
WithDefaultSelection.args = {
|
|
42
|
+
label: "Référencer ma fiche pro dans les recherches sur allaw.fr",
|
|
43
|
+
isRequired: true,
|
|
44
|
+
options: ["Oui", "Non"],
|
|
45
|
+
defaultSelected: "Oui",
|
|
46
|
+
};
|
|
47
|
+
export var MultipleOptions = Template.bind({});
|
|
48
|
+
MultipleOptions.args = {
|
|
49
|
+
label: "Choisissez votre option préférée",
|
|
50
|
+
isRequired: false,
|
|
51
|
+
options: ["Option 1", "Option 2", "Option 3"],
|
|
52
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { SelectForm as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace label {
|
|
7
|
+
let control: string;
|
|
8
|
+
}
|
|
9
|
+
namespace isRequired {
|
|
10
|
+
let control_1: string;
|
|
11
|
+
export { control_1 as control };
|
|
12
|
+
}
|
|
13
|
+
namespace options {
|
|
14
|
+
let control_2: string;
|
|
15
|
+
export { control_2 as control };
|
|
16
|
+
}
|
|
17
|
+
namespace isMultiple {
|
|
18
|
+
let control_3: string;
|
|
19
|
+
export { control_3 as control };
|
|
20
|
+
}
|
|
21
|
+
namespace width {
|
|
22
|
+
export namespace control_4 {
|
|
23
|
+
let type: string;
|
|
24
|
+
let min: number;
|
|
25
|
+
let max: number;
|
|
26
|
+
}
|
|
27
|
+
export { control_4 as control };
|
|
28
|
+
}
|
|
29
|
+
namespace selectedItem {
|
|
30
|
+
let control_5: string;
|
|
31
|
+
export { control_5 as control };
|
|
32
|
+
}
|
|
33
|
+
namespace variant {
|
|
34
|
+
export namespace control_6 {
|
|
35
|
+
let type_1: string;
|
|
36
|
+
export { type_1 as type };
|
|
37
|
+
let options_1: string[];
|
|
38
|
+
export { options_1 as options };
|
|
39
|
+
}
|
|
40
|
+
export { control_6 as control };
|
|
41
|
+
}
|
|
42
|
+
namespace color {
|
|
43
|
+
export namespace control_7 {
|
|
44
|
+
let type_2: string;
|
|
45
|
+
export { type_2 as type };
|
|
46
|
+
let options_2: string[];
|
|
47
|
+
export { options_2 as options };
|
|
48
|
+
}
|
|
49
|
+
export { control_7 as control };
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export default _default;
|
|
54
|
+
export const Default: any;
|
|
55
|
+
export const Multiple: any;
|
|
56
|
+
export const CustomWidth: any;
|
|
57
|
+
export const WithSelectedItem: any;
|
|
58
|
+
import SelectForm from "./SelectForm";
|
|
@@ -0,0 +1,96 @@
|
|
|
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 SelectForm from "./SelectForm";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Molecules/SelectForm",
|
|
17
|
+
component: SelectForm,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
label: { control: "text" },
|
|
21
|
+
isRequired: { control: "boolean" },
|
|
22
|
+
options: { control: "object" },
|
|
23
|
+
isMultiple: { control: "boolean" },
|
|
24
|
+
width: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number",
|
|
27
|
+
min: 1,
|
|
28
|
+
max: 100,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
selectedItem: { control: "text" },
|
|
32
|
+
variant: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "select",
|
|
35
|
+
options: ["bold", "semiBold", "medium"],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
color: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "select",
|
|
41
|
+
options: [
|
|
42
|
+
"bleu-allaw",
|
|
43
|
+
"mid-grey",
|
|
44
|
+
"dark-grey",
|
|
45
|
+
"noir",
|
|
46
|
+
"pure-white",
|
|
47
|
+
"grey-venom",
|
|
48
|
+
"venom-grey-dark",
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
var Template = function (args) {
|
|
55
|
+
var _a = useState(args.selectedItem), selectedOption = _a[0], setSelectedOption = _a[1];
|
|
56
|
+
var handleChange = function (newOption) {
|
|
57
|
+
setSelectedOption(newOption);
|
|
58
|
+
console.log("Selected option:", newOption);
|
|
59
|
+
};
|
|
60
|
+
return (React.createElement(SelectForm, __assign({}, args, { selectedItem: selectedOption, onChange: handleChange })));
|
|
61
|
+
};
|
|
62
|
+
export var Default = Template.bind({});
|
|
63
|
+
Default.args = {
|
|
64
|
+
label: "Délais de préavis (en jours ouvrés) avant la date de rendez-vous",
|
|
65
|
+
isRequired: true,
|
|
66
|
+
options: [
|
|
67
|
+
{ label: "24h", value: "24h" },
|
|
68
|
+
{ label: "48h", value: "48h" },
|
|
69
|
+
{ label: "72h", value: "72h" },
|
|
70
|
+
{ label: "1 semaine", value: "1week" },
|
|
71
|
+
{ label: "2 semaines", value: "2weeks" },
|
|
72
|
+
],
|
|
73
|
+
isMultiple: false,
|
|
74
|
+
width: 100,
|
|
75
|
+
selectedItem: "",
|
|
76
|
+
variant: "medium",
|
|
77
|
+
color: "noir",
|
|
78
|
+
};
|
|
79
|
+
export var Multiple = Template.bind({});
|
|
80
|
+
Multiple.args = {
|
|
81
|
+
label: "Sélectionnez vos domaines d'expertise",
|
|
82
|
+
isRequired: false,
|
|
83
|
+
options: [
|
|
84
|
+
{ label: "Droit des affaires", value: "business" },
|
|
85
|
+
{ label: "Droit immobilier", value: "real_estate" },
|
|
86
|
+
{ label: "Droit du travail", value: "labor" },
|
|
87
|
+
{ label: "Droit de la famille", value: "family" },
|
|
88
|
+
],
|
|
89
|
+
isMultiple: true,
|
|
90
|
+
width: 100,
|
|
91
|
+
selectedItem: [],
|
|
92
|
+
};
|
|
93
|
+
export var CustomWidth = Template.bind({});
|
|
94
|
+
CustomWidth.args = __assign(__assign({}, Default.args), { width: 50 });
|
|
95
|
+
export var WithSelectedItem = Template.bind({});
|
|
96
|
+
WithSelectedItem.args = __assign(__assign({}, Default.args), { selectedItem: "48h" });
|
|
@@ -69,9 +69,7 @@
|
|
|
69
69
|
align-items: center;
|
|
70
70
|
opacity: 0;
|
|
71
71
|
visibility: hidden;
|
|
72
|
-
transition:
|
|
73
|
-
opacity 0.3s ease,
|
|
74
|
-
visibility 0.3s ease;
|
|
72
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
.stepper-overlay.visible {
|
|
@@ -81,12 +79,27 @@
|
|
|
81
79
|
|
|
82
80
|
.stepper-content {
|
|
83
81
|
width: 100%;
|
|
82
|
+
max-height: 100%;
|
|
83
|
+
height: 90%;
|
|
84
|
+
overflow-y: auto;
|
|
84
85
|
display: flex;
|
|
85
86
|
justify-content: center;
|
|
86
|
-
align-items:
|
|
87
|
+
align-items: flex-start;
|
|
87
88
|
font-family: "Open Sans", sans-serif;
|
|
88
89
|
font-size: 16px;
|
|
89
90
|
font-weight: 400;
|
|
90
91
|
line-height: 24px;
|
|
91
92
|
letter-spacing: 0em;
|
|
92
93
|
}
|
|
94
|
+
|
|
95
|
+
@media (max-width: 800px) {
|
|
96
|
+
.stepper-container {
|
|
97
|
+
height: 99dvh;
|
|
98
|
+
position: fixed;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
justify-content: start;
|
|
101
|
+
padding: 2rem;
|
|
102
|
+
border-bottom-left-radius: 0;
|
|
103
|
+
border-bottom-right-radius: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { Stepper as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace startIcon {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
}
|
|
10
|
+
let description: string;
|
|
11
|
+
}
|
|
12
|
+
namespace endIcon {
|
|
13
|
+
export namespace control_1 {
|
|
14
|
+
let type_1: string;
|
|
15
|
+
export { type_1 as type };
|
|
16
|
+
}
|
|
17
|
+
export { control_1 as control };
|
|
18
|
+
}
|
|
19
|
+
namespace showProgressBar {
|
|
20
|
+
export namespace control_2 {
|
|
21
|
+
let type_2: string;
|
|
22
|
+
export { type_2 as type };
|
|
23
|
+
}
|
|
24
|
+
export { control_2 as control };
|
|
25
|
+
let description_1: string;
|
|
26
|
+
export { description_1 as description };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export namespace parameters {
|
|
30
|
+
namespace backgrounds {
|
|
31
|
+
let _default: string;
|
|
32
|
+
export { _default as default };
|
|
33
|
+
export let values: {
|
|
34
|
+
name: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export default _default;
|
|
41
|
+
export const Default: any;
|
|
42
|
+
import Stepper from "./Stepper";
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { action } from "@storybook/addon-actions";
|
|
14
|
+
import Stepper from "./Stepper";
|
|
15
|
+
import "../../../styles/global.css";
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Molecules/Stepper",
|
|
18
|
+
component: Stepper,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
argTypes: {
|
|
21
|
+
startIcon: {
|
|
22
|
+
control: {
|
|
23
|
+
type: "object",
|
|
24
|
+
},
|
|
25
|
+
description: "Contrôle l'affichage de l'icône de début pour chaque étape",
|
|
26
|
+
},
|
|
27
|
+
endIcon: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "boolean",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
showProgressBar: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "object",
|
|
35
|
+
},
|
|
36
|
+
description: "Contrôle l'affichage de la barre de progression pour chaque étape",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
parameters: {
|
|
40
|
+
backgrounds: {
|
|
41
|
+
default: "light",
|
|
42
|
+
values: [
|
|
43
|
+
{ name: "light", value: "#ffffff" },
|
|
44
|
+
{ name: "grey", value: "#728ea7" },
|
|
45
|
+
{ name: "figma", value: "#404040" },
|
|
46
|
+
{ name: "dark", value: "#171e25" },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
var Template = function (args) { return React.createElement(Stepper, __assign({}, args)); };
|
|
52
|
+
export var Default = Template.bind({});
|
|
53
|
+
Default.args = {
|
|
54
|
+
steps: 5,
|
|
55
|
+
currentStep: 1,
|
|
56
|
+
startIcon: [true, true, true, true, true],
|
|
57
|
+
endIcon: true,
|
|
58
|
+
onClose: function () {
|
|
59
|
+
action("Stepper closed")();
|
|
60
|
+
},
|
|
61
|
+
secondaryButton: [
|
|
62
|
+
{ show: false },
|
|
63
|
+
{
|
|
64
|
+
show: true,
|
|
65
|
+
label: "Autre",
|
|
66
|
+
startIconName: "allaw-icon-add",
|
|
67
|
+
onSecondaryButtonClick: function (step) {
|
|
68
|
+
return action("Secondary button clicked on step ".concat(step))();
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{ show: false },
|
|
72
|
+
{
|
|
73
|
+
show: true,
|
|
74
|
+
label: "Option",
|
|
75
|
+
startIconName: "allaw-icon-settings",
|
|
76
|
+
onSecondaryButtonClick: function (step) {
|
|
77
|
+
return action("Secondary button clicked on step ".concat(step))();
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{ show: false },
|
|
81
|
+
],
|
|
82
|
+
primaryButton: [
|
|
83
|
+
{
|
|
84
|
+
show: true,
|
|
85
|
+
label: "Commencer",
|
|
86
|
+
startIconName: "allaw-icon-arrow-right",
|
|
87
|
+
onPrimaryButtonClick: function (step) {
|
|
88
|
+
return action("Primary button clicked on step ".concat(step))();
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
show: true,
|
|
93
|
+
label: "Continuer",
|
|
94
|
+
endIconName: "allaw-icon-arrow-right",
|
|
95
|
+
onPrimaryButtonClick: function (step) {
|
|
96
|
+
return action("Primary button clicked on step ".concat(step))();
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
show: true,
|
|
101
|
+
label: "Suivant",
|
|
102
|
+
endIconName: "allaw-icon-arrow-right",
|
|
103
|
+
onPrimaryButtonClick: function (step) {
|
|
104
|
+
return action("Primary button clicked on step ".concat(step))();
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
show: true,
|
|
109
|
+
label: "Presque fini",
|
|
110
|
+
endIconName: "allaw-icon-arrow-right",
|
|
111
|
+
onPrimaryButtonClick: function (step) {
|
|
112
|
+
return action("Primary button clicked on step ".concat(step))();
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
show: true,
|
|
117
|
+
label: "Terminer",
|
|
118
|
+
endIconName: "allaw-icon-check",
|
|
119
|
+
onPrimaryButtonClick: function (step) {
|
|
120
|
+
return action("Stepper completed on step ".concat(step))();
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
showProgressBar: [true, true, true, true, true],
|
|
125
|
+
children: [
|
|
126
|
+
React.createElement("div", { className: "stepper-content", key: "step1" }, "Contenu de l'\u00E9tape 1"),
|
|
127
|
+
React.createElement("div", { className: "stepper-content", key: "step2" }, "Contenu de l'\u00E9tape 2"),
|
|
128
|
+
React.createElement("div", { className: "stepper-content", key: "step3" }, "Contenu de l'\u00E9tape 3"),
|
|
129
|
+
React.createElement("div", { className: "stepper-content", key: "step4" }, "Contenu de l'\u00E9tape 4"),
|
|
130
|
+
React.createElement("div", { className: "stepper-content", key: "step5" }, "Contenu de l'\u00E9tape 5"),
|
|
131
|
+
],
|
|
132
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as Select } from "./components/atoms/selects/Select";
|
|
|
23
23
|
export type { SelectItem, SelectProps, SelectRef, } from "./components/atoms/selects/Select";
|
|
24
24
|
export { default as ComboBox } from "./components/atoms/selects/ComboBox";
|
|
25
25
|
export type { ComboBoxProps, ComboBoxRef, } from "./components/atoms/selects/ComboBox";
|
|
26
|
+
export { default as SelectableListItem } from "./components/atoms/selects/SelectableListItem";
|
|
26
27
|
export { default as Datepicker } from "./components/atoms/datepickers/Datepicker";
|
|
27
28
|
export type { DatepickerProps } from "./components/atoms/datepickers/Datepicker";
|
|
28
29
|
export { default as DatepickerForm } from "./components/molecules/datepickerForm/DatepickerForm";
|
|
@@ -32,6 +33,7 @@ export { default as FolderStatusTag } from "./components/atoms/tags/FolderStatus
|
|
|
32
33
|
export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTag";
|
|
33
34
|
export { default as Heading } from "./components/atoms/typography/Heading";
|
|
34
35
|
export { default as Paragraph } from "./components/atoms/typography/Paragraph";
|
|
36
|
+
export { default as Link } from "./components/atoms/typography/Link";
|
|
35
37
|
export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
|
|
36
38
|
export { default as Subtitle } from "./components/atoms/typography/Subtitle";
|
|
37
39
|
export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
|
|
@@ -41,8 +43,8 @@ export { default as Strokes } from "./components/atoms/uiVariables/Strokes";
|
|
|
41
43
|
export { default as AppointmentSlot } from "./components/molecules/appointmentSlot/AppointmentSlot";
|
|
42
44
|
export { default as BillingCount } from "./components/molecules/billingCount/BillingCount";
|
|
43
45
|
export { default as CaseCard } from "./components/molecules/caseCard/CaseCard";
|
|
44
|
-
export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
|
|
45
46
|
export type { ContactCardProps } from "./components/molecules/contactCard/ContactCard";
|
|
47
|
+
export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
|
|
46
48
|
export { default as DetailedContactCard } from "./components/molecules/contactCard/DetailedContactCard";
|
|
47
49
|
export type { DetailedContactCardProps } from "./components/molecules/contactCard/DetailedContactCard";
|
|
48
50
|
export { default as CaseCardLink } from "./components/molecules/caseLinkCard/CaseLinkCard";
|
|
@@ -51,6 +53,7 @@ export { default as CaseCardCompact } from "./components/molecules/caseCardCompa
|
|
|
51
53
|
export type { CaseCardCompactProps } from "./components/molecules/caseCardCompact/CaseCardCompact";
|
|
52
54
|
export { default as LoadingBox } from "./components/molecules/loadingBox/LoadingBox";
|
|
53
55
|
export { default as DocumentCard } from "./components/molecules/documentCard/DocumentCard";
|
|
56
|
+
export type { DocumentCardProps } from "./components/molecules/documentCard/DocumentCard";
|
|
54
57
|
export { default as EmployeeCard } from "./components/molecules/employeeCard/EmployeeCard";
|
|
55
58
|
export { default as Stepper } from "./components/molecules/stepper/Stepper";
|
|
56
59
|
export type { StepperProps } from "./components/molecules/stepper/Stepper";
|
|
@@ -61,3 +64,13 @@ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcr
|
|
|
61
64
|
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
|
62
65
|
export { default as Pagination } from "./components/molecules/pagination/Pagination";
|
|
63
66
|
export type { PaginationProps } from "./components/molecules/pagination/Pagination";
|
|
67
|
+
export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
|
|
68
|
+
export type { BlogHeaderProps } from "./components/molecules/blogHeader/BlogHeader";
|
|
69
|
+
export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
|
|
70
|
+
export type { BlogCardProps } from "./components/molecules/blogCard/BlogCard";
|
|
71
|
+
export { default as BlogText } from "./components/molecules/blogText/BlogText";
|
|
72
|
+
export type { BlogTextProps } from "./components/molecules/blogText/BlogText";
|
|
73
|
+
export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
74
|
+
export type { BlogTextImageBlockProps } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
75
|
+
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
76
|
+
export type { BlogFooterProps } from "./components/molecules/blogFooter/BlogFooter";
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export { default as SingleFilter } from "./components/atoms/filters/SingleFilter
|
|
|
27
27
|
// Selects
|
|
28
28
|
export { default as Select } from "./components/atoms/selects/Select";
|
|
29
29
|
export { default as ComboBox } from "./components/atoms/selects/ComboBox";
|
|
30
|
+
export { default as SelectableListItem } from "./components/atoms/selects/SelectableListItem";
|
|
30
31
|
// Datepickers
|
|
31
32
|
export { default as Datepicker } from "./components/atoms/datepickers/Datepicker";
|
|
32
33
|
// DatepickerForm
|
|
@@ -38,6 +39,7 @@ export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTa
|
|
|
38
39
|
// Typography
|
|
39
40
|
export { default as Heading } from "./components/atoms/typography/Heading";
|
|
40
41
|
export { default as Paragraph } from "./components/atoms/typography/Paragraph";
|
|
42
|
+
export { default as Link } from "./components/atoms/typography/Link";
|
|
41
43
|
export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
|
|
42
44
|
export { default as Subtitle } from "./components/atoms/typography/Subtitle";
|
|
43
45
|
export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
|
|
@@ -51,7 +53,6 @@ export { default as AppointmentSlot } from "./components/molecules/appointmentSl
|
|
|
51
53
|
export { default as BillingCount } from "./components/molecules/billingCount/BillingCount";
|
|
52
54
|
// Case Card
|
|
53
55
|
export { default as CaseCard } from "./components/molecules/caseCard/CaseCard";
|
|
54
|
-
// Contact Cards
|
|
55
56
|
export { default as ContactCard } from "./components/molecules/contactCard/ContactCard";
|
|
56
57
|
export { default as DetailedContactCard } from "./components/molecules/contactCard/DetailedContactCard";
|
|
57
58
|
// Case Link Card
|
|
@@ -79,3 +80,9 @@ export { default as Breadcrumb } from "./components/molecules/breadcrumb/Breadcr
|
|
|
79
80
|
export { default as ProCard } from "./components/molecules/proCard/ProCard";
|
|
80
81
|
// Pagination
|
|
81
82
|
export { default as Pagination } from "./components/molecules/pagination/Pagination";
|
|
83
|
+
// Blog
|
|
84
|
+
export { default as BlogHeader } from "./components/molecules/blogHeader/BlogHeader";
|
|
85
|
+
export { default as BlogCard } from "./components/molecules/blogCard/BlogCard";
|
|
86
|
+
export { default as BlogText } from "./components/molecules/blogText/BlogText";
|
|
87
|
+
export { default as blogTextImageBlock } from "./components/molecules/blogTextImageBlock/BlogTextImageBlock";
|
|
88
|
+
export { default as blogFooter } from "./components/molecules/blogFooter/BlogFooter";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./header.css";
|
|
3
|
+
type User = {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export interface HeaderProps {
|
|
7
|
+
user?: User;
|
|
8
|
+
onLogin?: () => void;
|
|
9
|
+
onLogout?: () => void;
|
|
10
|
+
onCreateAccount?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Header: ({ user }: HeaderProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
// import { Button } from './Button';
|
|
3
|
+
import "./header.css";
|
|
4
|
+
export var Header = function (_a) {
|
|
5
|
+
var user = _a.user;
|
|
6
|
+
return (React.createElement("header", null,
|
|
7
|
+
React.createElement("div", { className: "storybook-header" },
|
|
8
|
+
React.createElement("div", null,
|
|
9
|
+
React.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg" },
|
|
10
|
+
React.createElement("g", { fill: "none", fillRule: "evenodd" },
|
|
11
|
+
React.createElement("path", { d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z", fill: "#FFF" }),
|
|
12
|
+
React.createElement("path", { d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z", fill: "#555AB9" }),
|
|
13
|
+
React.createElement("path", { d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z", fill: "#91BAF8" }))),
|
|
14
|
+
React.createElement("h1", null, "Acme")),
|
|
15
|
+
React.createElement("div", null, user ? (React.createElement(React.Fragment, null,
|
|
16
|
+
React.createElement("span", { className: "welcome" },
|
|
17
|
+
"Welcome, ",
|
|
18
|
+
React.createElement("b", null, user.name),
|
|
19
|
+
"!"))) : (React.createElement(React.Fragment, null))))));
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ user }: import("./Header").HeaderProps) => import("react").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
onLogin: import("@vitest/spy").Mock<[], void>;
|
|
11
|
+
onLogout: import("@vitest/spy").Mock<[], void>;
|
|
12
|
+
onCreateAccount: import("@vitest/spy").Mock<[], void>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const LoggedIn: Story;
|
|
18
|
+
export declare const LoggedOut: Story;
|