allaw-ui 0.1.71 → 1.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.d.ts +9 -0
- package/dist/components/atoms/buttons/ActionCircleButton.js +23 -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.d.ts +10 -0
- package/dist/components/atoms/buttons/AgendaSlot.js +7 -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.d.ts +8 -0
- package/dist/components/atoms/buttons/FavoriteToggle.js +11 -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.d.ts +9 -0
- package/dist/components/atoms/buttons/FilterButton.js +9 -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.d.ts +9 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.js +46 -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.d.ts +14 -0
- package/dist/components/atoms/buttons/GhostButton.js +11 -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.css +17 -0
- package/dist/components/atoms/buttons/IconButton.d.ts +11 -0
- package/dist/components/atoms/buttons/IconButton.js +19 -0
- 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 +12 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.js +176 -0
- 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 +9 -0
- package/dist/components/atoms/buttons/PendingDocuments.js +15 -0
- 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.d.ts +17 -0
- package/dist/components/atoms/buttons/PrimaryButton.js +117 -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.css +66 -0
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +19 -0
- package/dist/components/atoms/buttons/SecondaryButton.js +117 -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 +78 -9
- package/dist/components/atoms/buttons/TabNavigation.d.ts +15 -0
- package/dist/components/atoms/buttons/TabNavigation.js +10 -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.css +15 -6
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +11 -0
- package/dist/components/atoms/buttons/TertiaryButton.js +10 -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/index.d.ts +22 -0
- package/dist/components/atoms/buttons/index.js +11 -0
- package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +14 -0
- package/dist/components/atoms/checkboxes/Checkbox.js +19 -0
- 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/checkboxes/index.d.ts +2 -0
- package/dist/components/atoms/checkboxes/index.js +1 -0
- package/dist/components/atoms/datepickers/Datepicker.d.ts +14 -0
- package/dist/components/atoms/datepickers/Datepicker.js +151 -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/datepickers/datepicker.css +241 -0
- package/dist/components/atoms/datepickers/index.d.ts +2 -0
- package/dist/components/atoms/datepickers/index.js +1 -0
- package/dist/components/atoms/filter/Basefiler.css +1 -1
- package/dist/components/atoms/filter/Filter.d.ts +17 -0
- package/dist/components/atoms/filter/Filter.js +70 -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/filter/index.d.ts +2 -0
- package/dist/components/atoms/filter/index.js +1 -0
- package/dist/components/atoms/filters/SingleFilter.d.ts +17 -0
- package/dist/components/atoms/filters/SingleFilter.js +81 -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/filters/index.d.ts +2 -0
- package/dist/components/atoms/filters/index.js +1 -0
- package/dist/components/atoms/inputs/Input.d.ts +26 -0
- package/dist/components/atoms/inputs/Input.js +86 -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.css +1 -1
- package/dist/components/atoms/inputs/SearchBar.d.ts +12 -0
- package/dist/components/atoms/inputs/SearchBar.js +20 -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.css +1 -1
- package/dist/components/atoms/inputs/TextArea.d.ts +23 -0
- package/dist/components/atoms/inputs/TextArea.js +66 -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/inputs/index.d.ts +6 -0
- package/dist/components/atoms/inputs/index.js +3 -0
- package/dist/components/atoms/progressBars/ProgressBar.css +20 -15
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
- package/dist/components/atoms/progressBars/ProgressBar.js +25 -0
- 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/progressBars/index.d.ts +2 -0
- package/dist/components/atoms/progressBars/index.js +1 -0
- package/dist/components/atoms/radios/RadioButton.d.ts +11 -0
- package/dist/components/atoms/radios/RadioButton.js +10 -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/radios/index.d.ts +2 -0
- package/dist/components/atoms/radios/index.js +1 -0
- package/dist/components/atoms/selects/ComboBox.css +5 -3
- package/dist/components/atoms/selects/ComboBox.d.ts +27 -0
- package/dist/components/atoms/selects/ComboBox.js +172 -0
- 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 +24 -0
- package/dist/components/atoms/selects/Select.js +154 -0
- package/dist/components/atoms/selects/{Select.css → Select.module.css} +16 -15
- 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 +6 -0
- package/dist/components/atoms/selects/index.js +3 -0
- package/dist/components/atoms/tags/AppointementStatusTag.d.ts +8 -0
- package/dist/components/atoms/tags/AppointementStatusTag.js +42 -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 +10 -8
- package/dist/components/atoms/tags/FolderStatusTag.d.ts +8 -0
- package/dist/components/atoms/tags/FolderStatusTag.js +25 -0
- 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 +54 -1
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +13 -0
- package/dist/components/atoms/tags/OtherStatusTag.js +15 -0
- 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/tags/index.d.ts +6 -0
- package/dist/components/atoms/tags/index.js +3 -0
- package/dist/components/atoms/typography/CardDate.d.ts +11 -0
- package/dist/components/atoms/typography/CardDate.js +52 -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.d.ts +10 -0
- package/dist/components/atoms/typography/Heading.js +7 -0
- 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 +14 -0
- package/dist/components/atoms/typography/Paragraph.js +33 -0
- 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.d.ts +9 -0
- package/dist/components/atoms/typography/SmallTitle.js +7 -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.d.ts +9 -0
- package/dist/components/atoms/typography/Subtitle.js +7 -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 +13 -0
- package/dist/components/atoms/typography/TinyInfo.js +15 -0
- 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/cardDate.css +135 -0
- package/dist/components/atoms/typography/index.d.ts +12 -0
- package/dist/components/atoms/typography/index.js +6 -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.d.ts +6 -0
- package/dist/components/atoms/uiVariables/BorderRadius.js +12 -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.d.ts +6 -0
- package/dist/components/atoms/uiVariables/Shadows.js +11 -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.d.ts +6 -0
- package/dist/components/atoms/uiVariables/Strokes.js +10 -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/atoms/uiVariables/index.d.ts +3 -0
- package/dist/components/atoms/uiVariables/index.js +3 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.css +46 -3
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +26 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -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/appointmentSlot/index.d.ts +2 -0
- package/dist/components/molecules/appointmentSlot/index.js +1 -0
- package/dist/components/molecules/billingCount/BillingCount.css +28 -0
- package/dist/components/molecules/billingCount/BillingCount.d.ts +8 -0
- package/dist/components/molecules/billingCount/BillingCount.js +75 -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/billingCount/index.d.ts +2 -0
- package/dist/components/molecules/billingCount/index.js +1 -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.d.ts +12 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.js +12 -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/breadcrumb/index.d.ts +2 -0
- package/dist/components/molecules/breadcrumb/index.js +1 -0
- package/dist/components/molecules/caseCard/CaseCard.css +54 -48
- package/dist/components/molecules/caseCard/CaseCard.d.ts +23 -0
- package/dist/components/molecules/caseCard/CaseCard.js +19 -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/caseCard/index.d.ts +2 -0
- package/dist/components/molecules/caseCard/index.js +1 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +16 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +20 -0
- 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 +80 -0
- package/dist/components/molecules/caseCardCompact/index.d.ts +2 -0
- package/dist/components/molecules/caseCardCompact/index.js +1 -0
- 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 +79 -35
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +13 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +37 -0
- package/dist/components/molecules/caseLinkCard/index.d.ts +2 -0
- package/dist/components/molecules/caseLinkCard/index.js +1 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +18 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +24 -0
- 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/checkboxForm/index.d.ts +2 -0
- package/dist/components/molecules/checkboxForm/index.js +1 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.css +59 -28
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +15 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +18 -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/clientLinkCard/index.d.ts +2 -0
- package/dist/components/molecules/clientLinkCard/index.js +1 -0
- package/dist/components/molecules/contactCard/ContactCard.d.ts +16 -0
- package/dist/components/molecules/contactCard/ContactCard.js +34 -0
- 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.d.ts +18 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.js +61 -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.module.css +140 -0
- package/dist/components/molecules/contactCard/{ContactCard.css → detailedContactCard.css} +43 -105
- package/dist/components/molecules/contactCard/index.d.ts +4 -0
- package/dist/components/molecules/contactCard/index.js +2 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +16 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.js +13 -0
- 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/datepickerForm/datepickerForm.css +6 -0
- package/dist/components/molecules/datepickerForm/index.d.ts +2 -0
- package/dist/components/molecules/datepickerForm/index.js +1 -0
- package/dist/components/molecules/documentCard/DocumentCard.css +8 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +16 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +119 -0
- 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/documentCard/index.d.ts +2 -0
- package/dist/components/molecules/documentCard/index.js +1 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -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/employeeCard/index.d.ts +2 -0
- package/dist/components/molecules/employeeCard/index.js +1 -0
- package/dist/components/molecules/loadingBox/LoadingBox.css +7 -8
- package/dist/components/molecules/loadingBox/LoadingBox.d.ts +12 -0
- package/dist/components/molecules/loadingBox/LoadingBox.js +11 -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/loadingBox/index.d.ts +2 -0
- package/dist/components/molecules/loadingBox/index.js +1 -0
- package/dist/components/molecules/pagination/Pagination.d.ts +10 -0
- package/dist/components/molecules/pagination/Pagination.js +64 -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/pagination/index.d.ts +2 -0
- package/dist/components/molecules/pagination/index.js +1 -0
- package/dist/components/molecules/pagination/pagination.css +120 -0
- package/dist/components/molecules/proCard/ProCard.d.ts +13 -0
- package/dist/components/molecules/proCard/ProCard.js +25 -0
- 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/proCard/index.d.ts +2 -0
- package/dist/components/molecules/proCard/index.js +1 -0
- package/dist/components/molecules/radioForm/RadioForm.d.ts +12 -0
- package/dist/components/molecules/radioForm/RadioForm.js +27 -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/radioForm/index.d.ts +2 -0
- package/dist/components/molecules/radioForm/index.js +1 -0
- package/dist/components/molecules/selectForm/SelectForm.css +1 -1
- package/dist/components/molecules/selectForm/SelectForm.d.ts +18 -0
- package/dist/components/molecules/selectForm/SelectForm.js +15 -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/selectForm/index.d.ts +2 -0
- package/dist/components/molecules/selectForm/index.js +1 -0
- package/dist/components/molecules/stepper/Stepper.css +17 -4
- package/dist/components/molecules/stepper/Stepper.d.ts +35 -0
- package/dist/components/molecules/stepper/Stepper.js +113 -0
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
- package/dist/components/molecules/stepper/index.d.ts +2 -0
- package/dist/components/molecules/stepper/index.js +1 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.js +88 -0
- 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 +3 -0
- package/dist/styles/colors.module.css +107 -0
- package/dist/styles/global.css +1 -0
- package/dist/styles/icons.css +76 -107
- package/dist/utils/regex.d.ts +5 -0
- package/dist/utils/regex.js +7 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.js +48 -0
- package/package.json +18 -14
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type BlogCardProps = {
|
|
3
|
+
articleUrl: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
tags: string[];
|
|
6
|
+
date: Date;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
preview?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const BlogCard: React.FC<BlogCardProps>;
|
|
13
|
+
export default BlogCard;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./BlogCard.module.css";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import TinyInfo from "../../atoms/typography/TinyInfo";
|
|
5
|
+
import Image from "next/image";
|
|
6
|
+
var BlogTopSection = function (_a) {
|
|
7
|
+
var imageUrl = _a.imageUrl, title = _a.title;
|
|
8
|
+
return (React.createElement("div", { className: "".concat(styles.blogTopSection, " ").concat(!imageUrl ? styles.placeholder : "") }, imageUrl ? (React.createElement(Image, { className: styles.blogImage, src: imageUrl, alt: title || "Image de l’article de blog", width: 361, height: 230, objectFit: "cover" })) : (React.createElement("span", { className: styles.placeholderText }))));
|
|
9
|
+
};
|
|
10
|
+
var BlogBottomSection = function (_a) {
|
|
11
|
+
var tags = _a.tags, date = _a.date, title = _a.title, description = _a.description;
|
|
12
|
+
return (React.createElement("div", { className: styles.blogBottomSection },
|
|
13
|
+
React.createElement("div", { className: styles.blogBottomSectionUp },
|
|
14
|
+
React.createElement("div", { className: styles.tagsContainer }, tags.slice(0, 2).map(function (tag, index) {
|
|
15
|
+
var validatedTag = tag.trim().length > 12 ? "".concat(tag.slice(0, 12), "...") : tag;
|
|
16
|
+
return (React.createElement("span", { key: index, className: styles.blogTypeTag }, validatedTag));
|
|
17
|
+
})),
|
|
18
|
+
React.createElement(TinyInfo, { text: date.toLocaleDateString(), variant: "medium14", color: "mid-grey" })),
|
|
19
|
+
React.createElement("div", { className: styles.blogSplitSection }),
|
|
20
|
+
React.createElement("div", { className: styles.blogBottomSectionDown },
|
|
21
|
+
React.createElement("div", { className: styles.blogTitle }, title),
|
|
22
|
+
React.createElement("div", { className: styles.blogDescription },
|
|
23
|
+
React.createElement(TinyInfo, { variant: "medium14", text: description, color: "noir", align: "left" })))));
|
|
24
|
+
};
|
|
25
|
+
var BlogCard = function (_a) {
|
|
26
|
+
var articleUrl = _a.articleUrl, imageUrl = _a.imageUrl, tags = _a.tags, date = _a.date, title = _a.title, description = _a.description, _b = _a.preview, preview = _b === void 0 ? false : _b, onClick = _a.onClick;
|
|
27
|
+
return (React.createElement(React.Fragment, null, onClick ? (React.createElement("button", { className: styles.blogContainer, onClick: function () { return onClick && onClick(); } },
|
|
28
|
+
!preview && React.createElement(BlogTopSection, { imageUrl: imageUrl, title: title }),
|
|
29
|
+
React.createElement(BlogBottomSection, { tags: tags, date: date, title: title, description: description }))) : (React.createElement(Link, { href: articleUrl, className: styles.blogContainer },
|
|
30
|
+
!preview && React.createElement(BlogTopSection, { imageUrl: imageUrl, title: title }),
|
|
31
|
+
React.createElement(BlogBottomSection, { tags: tags, date: date, title: title, description: description })))));
|
|
32
|
+
};
|
|
33
|
+
export default BlogCard;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.blogContainer {
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 260px;
|
|
8
|
+
min-width: 260px;
|
|
9
|
+
box-shadow: 0px 1px 20px 0px rgba(213, 233, 246, 0.8);
|
|
10
|
+
border-radius: 16px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
transition: transform 0.2s ease;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
border: none;
|
|
15
|
+
height: 100%;
|
|
16
|
+
max-height: 380px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.blogContainer:hover {
|
|
20
|
+
transform: scale(1.015);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.blogTopSection {
|
|
24
|
+
height: 150px;
|
|
25
|
+
object-fit: contain;
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.blogSplitSection {
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 1px;
|
|
32
|
+
background: #f1f4f8;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.blogBottomSection {
|
|
36
|
+
flex: 1;
|
|
37
|
+
display: flex;
|
|
38
|
+
padding: 23px 16px 24px 16px;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
gap: 12px;
|
|
42
|
+
background: #fff;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.blogImage {
|
|
47
|
+
background: var(--Primary-Light-grey, #f4f7fb);
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
object-fit: cover;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.blogTitle {
|
|
54
|
+
display: -webkit-box;
|
|
55
|
+
line-clamp: 1;
|
|
56
|
+
-webkit-line-clamp: 1;
|
|
57
|
+
-webkit-box-orient: vertical;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
text-align: left;
|
|
60
|
+
color: var(--Primary-Mid-black, #171e25);
|
|
61
|
+
font-family: Poppins;
|
|
62
|
+
font-size: 18px;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
line-height: 22px;
|
|
66
|
+
max-width: 100%;
|
|
67
|
+
overflow-wrap: break-word;
|
|
68
|
+
word-break: break-word;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.blogDescription {
|
|
72
|
+
display: -webkit-box;
|
|
73
|
+
line-clamp: 3;
|
|
74
|
+
-webkit-line-clamp: 3;
|
|
75
|
+
-webkit-box-orient: vertical;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-align: left;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
white-space: normal;
|
|
80
|
+
word-wrap: break-word;
|
|
81
|
+
overflow-wrap: break-word;
|
|
82
|
+
word-break: break-word;
|
|
83
|
+
hyphens: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.blogTopSectionPlaceholder {
|
|
87
|
+
background: var(--Primary-Light-grey, #f4f7fb);
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
color: #ccc;
|
|
92
|
+
font-family: Arial, sans-serif;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tagsContainer {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
gap: 8px;
|
|
101
|
+
max-width: 100%;
|
|
102
|
+
scroll-behavior: smooth;
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.blogTypeTag {
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
padding: 4px 6px;
|
|
110
|
+
border-radius: 0.3rem;
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
font-family: "Open Sans";
|
|
114
|
+
text-align: center;
|
|
115
|
+
height: fit-content;
|
|
116
|
+
width: fit-content;
|
|
117
|
+
color: var(--Primary-Dark-grey, var(--dark-grey, #456073));
|
|
118
|
+
background-color: var(--primary-light-grey, #f4f7fb);
|
|
119
|
+
border: none;
|
|
120
|
+
display: inline-block;
|
|
121
|
+
line-height: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.blogBottomSectionUp {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: space-between;
|
|
127
|
+
align-items: center;
|
|
128
|
+
align-self: stretch;
|
|
129
|
+
width: 100%;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.blogBottomSectionDown {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
gap: 16px;
|
|
138
|
+
align-self: stretch;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.blogDate {
|
|
142
|
+
color: #728ea7;
|
|
143
|
+
font-family: Inter;
|
|
144
|
+
font-size: 14px;
|
|
145
|
+
font-style: normal;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
line-height: normal;
|
|
148
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { BlogCard as component };
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export const Default: any;
|
|
7
|
+
export const NoImage: any;
|
|
8
|
+
export const LongDescriptionTitle: any;
|
|
9
|
+
export const MultipleTags: any;
|
|
10
|
+
import BlogCard from "./BlogCard";
|
|
@@ -0,0 +1,33 @@
|
|
|
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 BlogCard from "./BlogCard";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Molecules/Blog/BlogCard",
|
|
16
|
+
component: BlogCard,
|
|
17
|
+
};
|
|
18
|
+
var Template = function (args) { return React.createElement(BlogCard, __assign({}, args)); };
|
|
19
|
+
export var Default = Template.bind({});
|
|
20
|
+
Default.args = {
|
|
21
|
+
articleUrl: "https://example.com/card",
|
|
22
|
+
imageUrl: "https://plus.unsplash.com/premium_photo-1661329930662-19a43503782f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8YXZvY2F0fGVufDB8fDB8fHww",
|
|
23
|
+
tags: ["Conseil", "Droit", "Donation"],
|
|
24
|
+
date: new Date("2023-04-23"),
|
|
25
|
+
title: "Le Droit en France",
|
|
26
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas aliquam...",
|
|
27
|
+
};
|
|
28
|
+
export var NoImage = Template.bind({});
|
|
29
|
+
NoImage.args = __assign(__assign({}, Default.args), { imageUrl: "" });
|
|
30
|
+
export var LongDescriptionTitle = Template.bind({});
|
|
31
|
+
LongDescriptionTitle.args = __assign(__assign({}, Default.args), { description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce interdum lacus vitae turpis malesuada, id varius magna faucibus. Nulla facilisi. Suspendisse potenti. Vivamus in purus sit amet sapien sodales convallis. Integer venenatis velit id lorem aliquam, sit amet pulvinar neque volutpat. dgfdfdfgdfgdfgdfgfdgdfgdfgfgfdgd dfgffsd", title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce interdum lacus vitae turpis malesuada, id varius magna faucibus. Nulla facilisi. Suspendisse potenti. Vivamus in purus sit amet sapien sodales convallis. Integer venenatis velit id lorem aliquam, sit amet pulvinar neque volutpat." });
|
|
32
|
+
export var MultipleTags = Template.bind({});
|
|
33
|
+
MultipleTags.args = __assign(__assign({}, Default.args), { tags: ["Conseil", "Droit", "Avocat", "Justice", "Légal", "Justice", "Légal"] });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BlogCard } from "./BlogCard";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type BlogFooterProps = {
|
|
3
|
+
job: "Avocat" | "Notaire" | "Commissaire de justice";
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
address: string;
|
|
7
|
+
profileUrl: string;
|
|
8
|
+
description: string;
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
};
|
|
11
|
+
declare function BlogFooter({ job, firstName, lastName, address, profileUrl, description, imageUrl, }: BlogFooterProps): React.JSX.Element;
|
|
12
|
+
export default BlogFooter;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import styles from "./BlogFooter.module.css";
|
|
4
|
+
import ProCard from "../../molecules/proCard/ProCard";
|
|
5
|
+
function BlogFooter(_a) {
|
|
6
|
+
var job = _a.job, firstName = _a.firstName, lastName = _a.lastName, address = _a.address, profileUrl = _a.profileUrl, description = _a.description, imageUrl = _a.imageUrl;
|
|
7
|
+
return (React.createElement("footer", { className: styles.BlogFooterContainer },
|
|
8
|
+
React.createElement("div", { className: styles.BlogFooterCard },
|
|
9
|
+
React.createElement("p", { className: styles.BlogFooterTitle }, description),
|
|
10
|
+
React.createElement(Link, { href: profileUrl, passHref: true, legacyBehavior: true },
|
|
11
|
+
React.createElement("a", { className: styles.LinkWrapper, "aria-label": "Profil de ".concat(firstName, " ").concat(lastName) },
|
|
12
|
+
React.createElement(ProCard, { job: job, firstName: firstName, lastName: lastName, address: address, profileUrl: profileUrl, imageUrl: imageUrl }))))));
|
|
13
|
+
}
|
|
14
|
+
export default BlogFooter;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.BlogFooterContainer {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: flex-end;
|
|
4
|
+
background-color: white;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 1000px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.BlogFooterCard {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
max-width: 370px;
|
|
14
|
+
width: 100%;
|
|
15
|
+
gap: 20px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.BlogFooterTitle {
|
|
19
|
+
width: 100%;
|
|
20
|
+
color: var(--Primary-Mid-black, #171e25);
|
|
21
|
+
text-align: left;
|
|
22
|
+
font-family: Poppins;
|
|
23
|
+
font-size: 18px;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
line-height: normal;
|
|
27
|
+
margin: 0;
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
display: -webkit-box;
|
|
32
|
+
line-clamp: 3;
|
|
33
|
+
-webkit-line-clamp: 3;
|
|
34
|
+
-webkit-box-orient: vertical;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.LinkWrapper {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
display: block;
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (max-width: 720px) {
|
|
44
|
+
.BlogFooterContainer {
|
|
45
|
+
justify-content: center;
|
|
46
|
+
padding: 12px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { BlogFooter as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
export namespace job {
|
|
7
|
+
let control: string;
|
|
8
|
+
let description: string;
|
|
9
|
+
}
|
|
10
|
+
export namespace firstName {
|
|
11
|
+
let control_1: string;
|
|
12
|
+
export { control_1 as control };
|
|
13
|
+
let description_1: string;
|
|
14
|
+
export { description_1 as description };
|
|
15
|
+
}
|
|
16
|
+
export namespace lastName {
|
|
17
|
+
let control_2: string;
|
|
18
|
+
export { control_2 as control };
|
|
19
|
+
let description_2: string;
|
|
20
|
+
export { description_2 as description };
|
|
21
|
+
}
|
|
22
|
+
export namespace address {
|
|
23
|
+
let control_3: string;
|
|
24
|
+
export { control_3 as control };
|
|
25
|
+
let description_3: string;
|
|
26
|
+
export { description_3 as description };
|
|
27
|
+
}
|
|
28
|
+
export namespace profileUrl {
|
|
29
|
+
let control_4: string;
|
|
30
|
+
export { control_4 as control };
|
|
31
|
+
let description_4: string;
|
|
32
|
+
export { description_4 as description };
|
|
33
|
+
}
|
|
34
|
+
export namespace imageUrl {
|
|
35
|
+
let control_5: string;
|
|
36
|
+
export { control_5 as control };
|
|
37
|
+
let description_5: string;
|
|
38
|
+
export { description_5 as description };
|
|
39
|
+
}
|
|
40
|
+
export namespace description_6 {
|
|
41
|
+
let control_6: string;
|
|
42
|
+
export { control_6 as control };
|
|
43
|
+
let description_7: string;
|
|
44
|
+
export { description_7 as description };
|
|
45
|
+
}
|
|
46
|
+
export { description_6 as description };
|
|
47
|
+
}
|
|
48
|
+
export namespace parameters {
|
|
49
|
+
namespace docs {
|
|
50
|
+
export namespace description_8 {
|
|
51
|
+
let component: string;
|
|
52
|
+
}
|
|
53
|
+
export { description_8 as description };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export default _default;
|
|
58
|
+
export const Default: any;
|
|
59
|
+
export const WithLongDescription: any;
|
|
60
|
+
import BlogFooter from "./BlogFooter";
|
|
@@ -0,0 +1,67 @@
|
|
|
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 BlogFooter, { BlogFooterProps } from "./BlogFooter";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/molecules/Blog/BlogFooter",
|
|
16
|
+
component: BlogFooter,
|
|
17
|
+
tags: ["autodocs"],
|
|
18
|
+
argTypes: {
|
|
19
|
+
job: { control: "text", description: "Le métier de la personne." },
|
|
20
|
+
firstName: { control: "text", description: "Le prénom de la personne." },
|
|
21
|
+
lastName: {
|
|
22
|
+
control: "text",
|
|
23
|
+
description: "Le nom de famille de la personne.",
|
|
24
|
+
},
|
|
25
|
+
address: { control: "text", description: "L'adresse de la personne." },
|
|
26
|
+
profileUrl: {
|
|
27
|
+
control: "text",
|
|
28
|
+
description: "L'URL du profil ou de l'image de la personne.",
|
|
29
|
+
},
|
|
30
|
+
imageUrl: {
|
|
31
|
+
control: "text",
|
|
32
|
+
description: "L'URL de l'image de la carte ou de la personne.",
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
control: "text",
|
|
36
|
+
description: "Une description ou un titre lié au blog.",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
component: "Le composant `BlogFooter` affiche une section de pied de page avec des informations sur une personne, incluant un métier, un nom, une adresse, une description et une image.",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
var Template = function (args) { return React.createElement(BlogFooter, __assign({}, args)); };
|
|
48
|
+
export var Default = Template.bind({});
|
|
49
|
+
Default.args = {
|
|
50
|
+
job: "Avocat",
|
|
51
|
+
firstName: "Jean",
|
|
52
|
+
lastName: "Dupont",
|
|
53
|
+
address: "123 Rue de la Loi, Paris",
|
|
54
|
+
profileUrl: "https://via.placeholder.com/150",
|
|
55
|
+
description: "À propos de l'auteur",
|
|
56
|
+
imageUrl: "https://plus.unsplash.com/premium_photo-1698084059560-9a53de7b816b?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8YXZvY2F0fGVufDB8fDB8fHww",
|
|
57
|
+
};
|
|
58
|
+
export var WithLongDescription = Template.bind({});
|
|
59
|
+
WithLongDescription.args = {
|
|
60
|
+
job: "Notaire",
|
|
61
|
+
firstName: "Marie",
|
|
62
|
+
lastName: "Durand",
|
|
63
|
+
address: "45 Boulevard Haussmann, Paris",
|
|
64
|
+
profileUrl: "https://via.placeholder.com/150",
|
|
65
|
+
description: "Marie Durand est une notaire expérimentée avec plus de 15 ans d'expérience dans le domaine juridique. Elle est spécialisée dans les contrats immobiliers et la gestion des patrimoines complexes.",
|
|
66
|
+
imageUrl: "https://images.unsplash.com/photo-1587986077033-5fccb5819f5b?w=400&q=80",
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BlogFooter } from "./BlogFooter";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type BlogHeaderProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
author: string;
|
|
5
|
+
date: Date;
|
|
6
|
+
timeToRead: number;
|
|
7
|
+
profession: "Avocat" | "Notaire" | "Commissaire de justice";
|
|
8
|
+
imageBlog: string;
|
|
9
|
+
};
|
|
10
|
+
declare function BlogHeader({ title, author, date, timeToRead, profession, imageBlog, }: BlogHeaderProps): React.JSX.Element;
|
|
11
|
+
export default BlogHeader;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import TinyInfo from "../../atoms/typography/TinyInfo";
|
|
3
|
+
import Image from "next/image";
|
|
4
|
+
import styles from "./BlogHeader.module.css";
|
|
5
|
+
function BlogHeader(_a) {
|
|
6
|
+
var title = _a.title, author = _a.author, date = _a.date, timeToRead = _a.timeToRead, profession = _a.profession, imageBlog = _a.imageBlog;
|
|
7
|
+
return (React.createElement("article", { className: styles.blogContainerWrapper },
|
|
8
|
+
React.createElement("header", { className: styles.blogContainer },
|
|
9
|
+
React.createElement("h1", { className: styles.title }, title),
|
|
10
|
+
React.createElement("div", { className: styles.blogInfoContainer },
|
|
11
|
+
React.createElement("time", { className: styles.blogDate, dateTime: date.toISOString(), "aria-label": "Date de publication" },
|
|
12
|
+
React.createElement(TinyInfo, { variant: "semiBold12", text: date.toLocaleDateString(), color: "dark-grey" })),
|
|
13
|
+
React.createElement("div", { className: styles.timeToReadContainer },
|
|
14
|
+
React.createElement("i", { className: "allaw-icon-clock", "aria-hidden": "true" }),
|
|
15
|
+
React.createElement(TinyInfo, { variant: "semiBold12", text: "".concat(timeToRead, " min"), color: "dark-grey" })),
|
|
16
|
+
React.createElement(TinyInfo, { variant: "semiBold12", text: profession, color: "dark-grey", "aria-label": "Profession de l'auteur" }),
|
|
17
|
+
React.createElement(TinyInfo, { variant: "semiBold12", text: author, color: "dark-grey", "aria-label": "Auteur de l'article" })),
|
|
18
|
+
React.createElement("figure", { className: styles.blogImageContainer },
|
|
19
|
+
React.createElement(Image, { src: imageBlog, alt: "Illustration pour l'article intitul\u00E9 \"".concat(title, "\""), width: 1000, height: 449, className: styles.blogImage })))));
|
|
20
|
+
}
|
|
21
|
+
export default BlogHeader;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.blogContainerWrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
background-color: white;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
gap: 20px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: 1000px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.blogContainer {
|
|
12
|
+
display: flex;
|
|
13
|
+
width: 100%;
|
|
14
|
+
max-width: 1000px;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
background-color: white;
|
|
18
|
+
padding: 16px;
|
|
19
|
+
gap: 16px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.blogInfoContainer {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: flex-end;
|
|
25
|
+
gap: 14px;
|
|
26
|
+
width: auto;
|
|
27
|
+
height: auto;
|
|
28
|
+
flex-wrap: wrap;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.title {
|
|
32
|
+
width: 100%;
|
|
33
|
+
color: var(--Primary-Mid-black, #171e25);
|
|
34
|
+
font-family: Poppins;
|
|
35
|
+
font-size: 40px;
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
line-height: normal;
|
|
39
|
+
letter-spacing: 0.4px;
|
|
40
|
+
display: -webkit-box;
|
|
41
|
+
-webkit-line-clamp: 2;
|
|
42
|
+
line-clamp: 2;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
-webkit-box-orient: vertical;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
word-wrap: break-word;
|
|
47
|
+
white-space: normal;
|
|
48
|
+
word-wrap: break-word;
|
|
49
|
+
overflow-wrap: break-word;
|
|
50
|
+
word-break: break-word;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.blogImage {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 450px;
|
|
56
|
+
object-fit: cover;
|
|
57
|
+
object-position: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.blogImageContainer {
|
|
61
|
+
width: 100%;
|
|
62
|
+
max-width: 1000px;
|
|
63
|
+
max-height: 449px;
|
|
64
|
+
height: auto;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.timeToReadContainer {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.timeToReadContainer > i {
|
|
79
|
+
color: #25beeb;
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (max-width: 700px) and (min-width: 400px) {
|
|
84
|
+
.blogInfoContainer {
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-template-columns: 1fr 1fr;
|
|
87
|
+
grid-template-rows: 1fr 1fr;
|
|
88
|
+
gap: 6px;
|
|
89
|
+
width: 100%;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
align-items: stretch;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.blogInfoContainer > *:nth-child(1) {
|
|
95
|
+
grid-column: 1;
|
|
96
|
+
grid-row: 1;
|
|
97
|
+
justify-self: start;
|
|
98
|
+
align-self: start;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.blogInfoContainer > *:nth-child(2) {
|
|
102
|
+
grid-column: 2;
|
|
103
|
+
grid-row: 1;
|
|
104
|
+
justify-self: end;
|
|
105
|
+
align-self: start;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.blogInfoContainer > *:nth-child(3) {
|
|
109
|
+
grid-column: 1;
|
|
110
|
+
grid-row: 2;
|
|
111
|
+
justify-self: start;
|
|
112
|
+
align-self: end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.blogInfoContainer > *:nth-child(4) {
|
|
116
|
+
grid-column: 2;
|
|
117
|
+
grid-row: 2;
|
|
118
|
+
justify-self: end;
|
|
119
|
+
align-self: end;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (max-width: 825px) {
|
|
124
|
+
.blogImage {
|
|
125
|
+
height: 200px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.title {
|
|
129
|
+
font-size: 25px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@media (max-width: 400px) {
|
|
134
|
+
.blogContainerWrapper {
|
|
135
|
+
padding: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.title {
|
|
139
|
+
-webkit-line-clamp: 3;
|
|
140
|
+
line-clamp: 3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.blogContainer {
|
|
144
|
+
gap: 12px;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
padding: 0 8px;
|
|
148
|
+
margin-top: 4px;
|
|
149
|
+
}
|
|
150
|
+
}
|