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,164 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { DatepickerForm as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace parameters {
|
|
6
|
+
namespace backgrounds {
|
|
7
|
+
let _default: string;
|
|
8
|
+
export { _default as default };
|
|
9
|
+
export let values: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export namespace argTypes {
|
|
16
|
+
namespace text {
|
|
17
|
+
let control: string;
|
|
18
|
+
let description: string;
|
|
19
|
+
let defaultValue: string;
|
|
20
|
+
}
|
|
21
|
+
namespace variant {
|
|
22
|
+
export let options: string[];
|
|
23
|
+
export namespace control_1 {
|
|
24
|
+
let type: string;
|
|
25
|
+
}
|
|
26
|
+
export { control_1 as control };
|
|
27
|
+
let defaultValue_1: string;
|
|
28
|
+
export { defaultValue_1 as defaultValue };
|
|
29
|
+
}
|
|
30
|
+
namespace color {
|
|
31
|
+
let options_1: string[];
|
|
32
|
+
export { options_1 as options };
|
|
33
|
+
export namespace control_2 {
|
|
34
|
+
let type_1: string;
|
|
35
|
+
export { type_1 as type };
|
|
36
|
+
}
|
|
37
|
+
export { control_2 as control };
|
|
38
|
+
let defaultValue_2: string;
|
|
39
|
+
export { defaultValue_2 as defaultValue };
|
|
40
|
+
}
|
|
41
|
+
namespace yearDropdownItemNumber {
|
|
42
|
+
export namespace control_3 {
|
|
43
|
+
let type_2: string;
|
|
44
|
+
export { type_2 as type };
|
|
45
|
+
}
|
|
46
|
+
export { control_3 as control };
|
|
47
|
+
let description_1: string;
|
|
48
|
+
export { description_1 as description };
|
|
49
|
+
let defaultValue_3: number;
|
|
50
|
+
export { defaultValue_3 as defaultValue };
|
|
51
|
+
}
|
|
52
|
+
namespace maxDaysInPast {
|
|
53
|
+
export namespace control_4 {
|
|
54
|
+
let type_3: string;
|
|
55
|
+
export { type_3 as type };
|
|
56
|
+
}
|
|
57
|
+
export { control_4 as control };
|
|
58
|
+
let description_2: string;
|
|
59
|
+
export { description_2 as description };
|
|
60
|
+
}
|
|
61
|
+
namespace minDate {
|
|
62
|
+
export namespace control_5 {
|
|
63
|
+
let type_4: string;
|
|
64
|
+
export { type_4 as type };
|
|
65
|
+
}
|
|
66
|
+
export { control_5 as control };
|
|
67
|
+
let description_3: string;
|
|
68
|
+
export { description_3 as description };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export default _default;
|
|
73
|
+
export namespace Default {
|
|
74
|
+
namespace args {
|
|
75
|
+
let text_1: string;
|
|
76
|
+
export { text_1 as text };
|
|
77
|
+
export let placeholder: string;
|
|
78
|
+
let variant_1: string;
|
|
79
|
+
export { variant_1 as variant };
|
|
80
|
+
let color_1: string;
|
|
81
|
+
export { color_1 as color };
|
|
82
|
+
let yearDropdownItemNumber_1: number;
|
|
83
|
+
export { yearDropdownItemNumber_1 as yearDropdownItemNumber };
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export namespace WithLabel {
|
|
87
|
+
export namespace args_1 {
|
|
88
|
+
let text_2: string;
|
|
89
|
+
export { text_2 as text };
|
|
90
|
+
let placeholder_1: string;
|
|
91
|
+
export { placeholder_1 as placeholder };
|
|
92
|
+
let variant_2: string;
|
|
93
|
+
export { variant_2 as variant };
|
|
94
|
+
let color_2: string;
|
|
95
|
+
export { color_2 as color };
|
|
96
|
+
let yearDropdownItemNumber_2: number;
|
|
97
|
+
export { yearDropdownItemNumber_2 as yearDropdownItemNumber };
|
|
98
|
+
}
|
|
99
|
+
export { args_1 as args };
|
|
100
|
+
}
|
|
101
|
+
export namespace WithValue {
|
|
102
|
+
export namespace args_2 {
|
|
103
|
+
export let value: Date;
|
|
104
|
+
let text_3: string;
|
|
105
|
+
export { text_3 as text };
|
|
106
|
+
let placeholder_2: string;
|
|
107
|
+
export { placeholder_2 as placeholder };
|
|
108
|
+
let variant_3: string;
|
|
109
|
+
export { variant_3 as variant };
|
|
110
|
+
let color_3: string;
|
|
111
|
+
export { color_3 as color };
|
|
112
|
+
let yearDropdownItemNumber_3: number;
|
|
113
|
+
export { yearDropdownItemNumber_3 as yearDropdownItemNumber };
|
|
114
|
+
}
|
|
115
|
+
export { args_2 as args };
|
|
116
|
+
}
|
|
117
|
+
export namespace WithMaxDaysInPast {
|
|
118
|
+
export namespace args_3 {
|
|
119
|
+
let text_4: string;
|
|
120
|
+
export { text_4 as text };
|
|
121
|
+
let placeholder_3: string;
|
|
122
|
+
export { placeholder_3 as placeholder };
|
|
123
|
+
let variant_4: string;
|
|
124
|
+
export { variant_4 as variant };
|
|
125
|
+
let color_4: string;
|
|
126
|
+
export { color_4 as color };
|
|
127
|
+
let maxDaysInPast_1: number;
|
|
128
|
+
export { maxDaysInPast_1 as maxDaysInPast };
|
|
129
|
+
}
|
|
130
|
+
export { args_3 as args };
|
|
131
|
+
}
|
|
132
|
+
export namespace WithMinDate {
|
|
133
|
+
export namespace args_4 {
|
|
134
|
+
let text_5: string;
|
|
135
|
+
export { text_5 as text };
|
|
136
|
+
let placeholder_4: string;
|
|
137
|
+
export { placeholder_4 as placeholder };
|
|
138
|
+
let variant_5: string;
|
|
139
|
+
export { variant_5 as variant };
|
|
140
|
+
let color_5: string;
|
|
141
|
+
export { color_5 as color };
|
|
142
|
+
let minDate_1: Date;
|
|
143
|
+
export { minDate_1 as minDate };
|
|
144
|
+
}
|
|
145
|
+
export { args_4 as args };
|
|
146
|
+
}
|
|
147
|
+
export namespace WithBothConstraints {
|
|
148
|
+
export namespace args_5 {
|
|
149
|
+
let text_6: string;
|
|
150
|
+
export { text_6 as text };
|
|
151
|
+
let placeholder_5: string;
|
|
152
|
+
export { placeholder_5 as placeholder };
|
|
153
|
+
let variant_6: string;
|
|
154
|
+
export { variant_6 as variant };
|
|
155
|
+
let color_6: string;
|
|
156
|
+
export { color_6 as color };
|
|
157
|
+
let maxDaysInPast_2: number;
|
|
158
|
+
export { maxDaysInPast_2 as maxDaysInPast };
|
|
159
|
+
let minDate_2: Date;
|
|
160
|
+
export { minDate_2 as minDate };
|
|
161
|
+
}
|
|
162
|
+
export { args_5 as args };
|
|
163
|
+
}
|
|
164
|
+
import DatepickerForm from "./DatepickerForm";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DatepickerForm from "./DatepickerForm";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "react-datepicker/dist/react-datepicker.css";
|
|
5
|
+
export default {
|
|
6
|
+
title: "Components/Molecules/DatepickerForm",
|
|
7
|
+
component: DatepickerForm,
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
parameters: {
|
|
10
|
+
backgrounds: {
|
|
11
|
+
default: "light",
|
|
12
|
+
values: [
|
|
13
|
+
{ name: "light", value: "#ffffff" },
|
|
14
|
+
{ name: "grey", value: "#728ea7" },
|
|
15
|
+
{ name: "dark", value: "#171e25" },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
argTypes: {
|
|
20
|
+
text: {
|
|
21
|
+
control: "text",
|
|
22
|
+
description: "Label text above the datepicker",
|
|
23
|
+
defaultValue: "DATE D'OUVERTURE",
|
|
24
|
+
},
|
|
25
|
+
variant: {
|
|
26
|
+
options: ["bold", "semiBold", "medium"],
|
|
27
|
+
control: { type: "select" },
|
|
28
|
+
defaultValue: "medium",
|
|
29
|
+
},
|
|
30
|
+
color: {
|
|
31
|
+
options: [
|
|
32
|
+
"bleu-allaw",
|
|
33
|
+
"mid-grey",
|
|
34
|
+
"dark-grey",
|
|
35
|
+
"noir",
|
|
36
|
+
"pure-white",
|
|
37
|
+
"grey-venom",
|
|
38
|
+
"venom-grey-dark",
|
|
39
|
+
],
|
|
40
|
+
control: { type: "select" },
|
|
41
|
+
defaultValue: "noir",
|
|
42
|
+
},
|
|
43
|
+
yearDropdownItemNumber: {
|
|
44
|
+
control: { type: "number" },
|
|
45
|
+
description: "Nombre d'années à afficher dans la liste déroulante",
|
|
46
|
+
defaultValue: 10,
|
|
47
|
+
},
|
|
48
|
+
maxDaysInPast: {
|
|
49
|
+
control: { type: "number" },
|
|
50
|
+
description: "Nombre maximum de jours dans le passé sélectionnables",
|
|
51
|
+
},
|
|
52
|
+
minDate: {
|
|
53
|
+
control: { type: "date" },
|
|
54
|
+
description: "Date minimale sélectionnable",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
export var Default = {
|
|
59
|
+
args: {
|
|
60
|
+
text: "DATE D'OUVERTURE",
|
|
61
|
+
placeholder: "Sélectionner une date",
|
|
62
|
+
variant: "medium",
|
|
63
|
+
color: "noir",
|
|
64
|
+
yearDropdownItemNumber: 10,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
export var WithLabel = {
|
|
68
|
+
args: {
|
|
69
|
+
text: "DATE D'OUVERTURE",
|
|
70
|
+
placeholder: "Sélectionner une date",
|
|
71
|
+
variant: "medium",
|
|
72
|
+
color: "noir",
|
|
73
|
+
yearDropdownItemNumber: 10,
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
export var WithValue = {
|
|
77
|
+
args: {
|
|
78
|
+
value: new Date("2022-11-10"),
|
|
79
|
+
text: "DATE D'OUVERTURE",
|
|
80
|
+
placeholder: "Sélectionner une date",
|
|
81
|
+
variant: "medium",
|
|
82
|
+
color: "noir",
|
|
83
|
+
yearDropdownItemNumber: 10,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
export var WithMaxDaysInPast = {
|
|
87
|
+
args: {
|
|
88
|
+
text: "DATE D'OUVERTURE (max 10 jours dans le passé)",
|
|
89
|
+
placeholder: "Sélectionner une date",
|
|
90
|
+
variant: "medium",
|
|
91
|
+
color: "noir",
|
|
92
|
+
maxDaysInPast: 10,
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
export var WithMinDate = {
|
|
96
|
+
args: {
|
|
97
|
+
text: "DATE D'OUVERTURE (à partir du 1er janvier 2024)",
|
|
98
|
+
placeholder: "Sélectionner une date",
|
|
99
|
+
variant: "medium",
|
|
100
|
+
color: "noir",
|
|
101
|
+
minDate: new Date("2024-01-01"),
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
export var WithBothConstraints = {
|
|
105
|
+
args: {
|
|
106
|
+
text: "DATE D'OUVERTURE (avec les deux contraintes)",
|
|
107
|
+
placeholder: "Sélectionner une date",
|
|
108
|
+
variant: "medium",
|
|
109
|
+
color: "noir",
|
|
110
|
+
maxDaysInPast: 30,
|
|
111
|
+
minDate: new Date("2024-01-01"),
|
|
112
|
+
},
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DatepickerForm } from "./DatepickerForm";
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
border-radius: 8px;
|
|
10
10
|
border: 1px solid var(--venom-grey, #e6edf5);
|
|
11
11
|
background: var(--Primary-Blanc, #fff);
|
|
12
|
-
box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.document-card-left {
|
|
@@ -63,6 +62,10 @@
|
|
|
63
62
|
align-items: flex-end;
|
|
64
63
|
}
|
|
65
64
|
|
|
65
|
+
.document-card-icon-eye {
|
|
66
|
+
color: var(--Primary-Mid-black, var(--mid-grey, #728ea7));
|
|
67
|
+
}
|
|
68
|
+
|
|
66
69
|
/* Styles spécifiques pour le type "waiting" */
|
|
67
70
|
.document-card.waiting {
|
|
68
71
|
width: 425px;
|
|
@@ -128,3 +131,7 @@
|
|
|
128
131
|
font-weight: 600;
|
|
129
132
|
line-height: normal;
|
|
130
133
|
}
|
|
134
|
+
|
|
135
|
+
.document-card.with-shadow {
|
|
136
|
+
box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
|
|
137
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./DocumentCard.css";
|
|
3
|
+
export interface DocumentCardProps {
|
|
4
|
+
type: "document" | "note" | "invoice" | "waiting" | "payment" | undefined;
|
|
5
|
+
title: string;
|
|
6
|
+
date: Date | undefined;
|
|
7
|
+
status: "sent" | "received" | "internal" | "notRequired" | "waiting" | "expired" | "canceled" | "failed" | "processing" | "maxAttemptsReached";
|
|
8
|
+
documents?: {
|
|
9
|
+
[key: string]: boolean;
|
|
10
|
+
};
|
|
11
|
+
onCardClick?: () => any;
|
|
12
|
+
documentCount?: string;
|
|
13
|
+
shadow?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const DocumentCard: React.FC<DocumentCardProps>;
|
|
16
|
+
export default DocumentCard;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./DocumentCard.css";
|
|
3
|
+
import IconButton from "../../atoms/buttons/IconButton";
|
|
4
|
+
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
5
|
+
import { Paragraph } from "../../atoms/typography";
|
|
6
|
+
var DocumentCard = function (_a) {
|
|
7
|
+
var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e, _f = _a.shadow, shadow = _f === void 0 ? true : _f;
|
|
8
|
+
var getIconName = function () {
|
|
9
|
+
switch (type) {
|
|
10
|
+
case "document":
|
|
11
|
+
return "allaw-icon-edit-2";
|
|
12
|
+
case "note":
|
|
13
|
+
return "allaw-icon-document";
|
|
14
|
+
case "invoice":
|
|
15
|
+
return "allaw-icon-file";
|
|
16
|
+
case "waiting":
|
|
17
|
+
return "allaw-icon-clock";
|
|
18
|
+
case "payment":
|
|
19
|
+
return "allaw-icon-prestation";
|
|
20
|
+
default:
|
|
21
|
+
return "allaw-icon-document";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var getStatusName = function () {
|
|
25
|
+
switch (status) {
|
|
26
|
+
case "internal":
|
|
27
|
+
return "INTERNE";
|
|
28
|
+
case "received":
|
|
29
|
+
return "REÇU";
|
|
30
|
+
case "sent":
|
|
31
|
+
return "ENVOYÉ";
|
|
32
|
+
case "notRequired":
|
|
33
|
+
return "NON REQUIS";
|
|
34
|
+
case "waiting":
|
|
35
|
+
return "EN ATTENTE";
|
|
36
|
+
case "expired":
|
|
37
|
+
return "EXPIRÉ";
|
|
38
|
+
case "canceled":
|
|
39
|
+
return "ANNULÉ";
|
|
40
|
+
case "failed":
|
|
41
|
+
return "ÉCHOUÉ";
|
|
42
|
+
case "processing":
|
|
43
|
+
return "EN COURS";
|
|
44
|
+
case "maxAttemptsReached":
|
|
45
|
+
return "ÉCHOUÉ";
|
|
46
|
+
default:
|
|
47
|
+
return "INTERNE";
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var getDisplayType = function (type) {
|
|
51
|
+
if (!type) {
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
if (type === "invoice") {
|
|
55
|
+
return "FACTURE";
|
|
56
|
+
}
|
|
57
|
+
if (type === "payment") {
|
|
58
|
+
return "PAIEMENT";
|
|
59
|
+
}
|
|
60
|
+
return type.toUpperCase();
|
|
61
|
+
};
|
|
62
|
+
var formatDate = function (date) {
|
|
63
|
+
if (!date) {
|
|
64
|
+
return "";
|
|
65
|
+
}
|
|
66
|
+
return date.toLocaleDateString("fr-FR", {
|
|
67
|
+
day: "2-digit",
|
|
68
|
+
month: "2-digit",
|
|
69
|
+
year: "2-digit",
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
var getInformationColor = function (status) {
|
|
73
|
+
switch (status) {
|
|
74
|
+
case "internal":
|
|
75
|
+
case "received":
|
|
76
|
+
case "sent":
|
|
77
|
+
case "notRequired":
|
|
78
|
+
case "waiting":
|
|
79
|
+
return "blue";
|
|
80
|
+
case "processing":
|
|
81
|
+
return "orange";
|
|
82
|
+
case "expired":
|
|
83
|
+
case "canceled":
|
|
84
|
+
case "failed":
|
|
85
|
+
case "maxAttemptsReached":
|
|
86
|
+
return "red";
|
|
87
|
+
default:
|
|
88
|
+
return "blue";
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
if (type === "waiting") {
|
|
92
|
+
var documentList = Object.keys(documents);
|
|
93
|
+
return (React.createElement("div", { className: "document-card waiting", style: { cursor: onCardClick ? "pointer" : "default" }, onClick: function () { return onCardClick && onCardClick(); } },
|
|
94
|
+
React.createElement("div", { className: "document-card-left" },
|
|
95
|
+
React.createElement(OtherStatusTag, { type: "information", label: "Documents demand\u00E9s pour ce rendez-vous" }),
|
|
96
|
+
React.createElement("h3", { className: "document-card-title" }, title),
|
|
97
|
+
React.createElement("div", { className: "document-list" },
|
|
98
|
+
React.createElement("ul", null, documentList.map(function (doc, index) { return (React.createElement("li", { key: index, className: "document-label" },
|
|
99
|
+
React.createElement("span", { className: "document-bullet" }),
|
|
100
|
+
" ",
|
|
101
|
+
doc)); })))),
|
|
102
|
+
React.createElement("div", { className: "document-card-right" },
|
|
103
|
+
React.createElement(IconButton, { style: "smallFilled", iconName: "allaw-icon-document" }),
|
|
104
|
+
React.createElement("span", { className: "document-count" }, documentCount))));
|
|
105
|
+
}
|
|
106
|
+
return (React.createElement("div", { className: "document-card".concat(shadow ? " with-shadow" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
|
|
107
|
+
React.createElement("div", { className: "document-card-left" },
|
|
108
|
+
React.createElement(IconButton, { style: "largeFilled", iconName: getIconName(), color: type == "payment" ? "#25BEEB" : "inherit" }),
|
|
109
|
+
React.createElement("div", { className: "document-card-info" },
|
|
110
|
+
React.createElement("span", { className: "document-card-type" }, getDisplayType(type)),
|
|
111
|
+
React.createElement(Paragraph, { text: title, variant: "semiBold", size: "default", maxLines: 2, color: "noir" }),
|
|
112
|
+
React.createElement("span", { className: "document-card-date" }, formatDate(date)))),
|
|
113
|
+
React.createElement("div", { className: "document-card-right" },
|
|
114
|
+
React.createElement("div", { className: "document-card-status" },
|
|
115
|
+
React.createElement(OtherStatusTag, { type: "information", label: getStatusName(), informationColor: getInformationColor(status) })),
|
|
116
|
+
type != "payment" && (React.createElement("div", { className: "document-card-icon-eye" },
|
|
117
|
+
React.createElement("i", { className: "allaw-icon-eye" }))))));
|
|
118
|
+
};
|
|
119
|
+
export default DocumentCard;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { DocumentCard as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
export namespace type {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type_1: string;
|
|
9
|
+
export { type_1 as type };
|
|
10
|
+
export let options: string[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export namespace title_1 {
|
|
14
|
+
let control_1: string;
|
|
15
|
+
export { control_1 as control };
|
|
16
|
+
}
|
|
17
|
+
export { title_1 as title };
|
|
18
|
+
export namespace date {
|
|
19
|
+
let control_2: string;
|
|
20
|
+
export { control_2 as control };
|
|
21
|
+
}
|
|
22
|
+
export namespace status {
|
|
23
|
+
export namespace control_3 {
|
|
24
|
+
let type_2: string;
|
|
25
|
+
export { type_2 as type };
|
|
26
|
+
let options_1: string[];
|
|
27
|
+
export { options_1 as options };
|
|
28
|
+
}
|
|
29
|
+
export { control_3 as control };
|
|
30
|
+
}
|
|
31
|
+
export namespace documents {
|
|
32
|
+
let control_4: string;
|
|
33
|
+
export { control_4 as control };
|
|
34
|
+
}
|
|
35
|
+
export namespace documentCount {
|
|
36
|
+
let control_5: string;
|
|
37
|
+
export { control_5 as control };
|
|
38
|
+
}
|
|
39
|
+
export namespace shadow {
|
|
40
|
+
let control_6: string;
|
|
41
|
+
export { control_6 as control };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export namespace args {
|
|
45
|
+
export { defaultDocuments as documents };
|
|
46
|
+
let documentCount_1: string;
|
|
47
|
+
export { documentCount_1 as documentCount };
|
|
48
|
+
let shadow_1: boolean;
|
|
49
|
+
export { shadow_1 as shadow };
|
|
50
|
+
}
|
|
51
|
+
export namespace parameters {
|
|
52
|
+
namespace backgrounds {
|
|
53
|
+
let _default: string;
|
|
54
|
+
export { _default as default };
|
|
55
|
+
export let values: {
|
|
56
|
+
name: string;
|
|
57
|
+
value: string;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export default _default;
|
|
63
|
+
export const Default: any;
|
|
64
|
+
export const Note: any;
|
|
65
|
+
export const Invoice: any;
|
|
66
|
+
export const Waiting: any;
|
|
67
|
+
import DocumentCard from "./DocumentCard";
|
|
68
|
+
declare const defaultDocuments: {
|
|
69
|
+
"Carte d'identit\u00E9 des \u00E9poux": boolean;
|
|
70
|
+
"Acte de naissance des \u00E9poux": boolean;
|
|
71
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
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 DocumentCard from "./DocumentCard";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
var defaultDocuments = {
|
|
16
|
+
"Carte d'identité des époux": true,
|
|
17
|
+
"Acte de naissance des époux": true,
|
|
18
|
+
};
|
|
19
|
+
export default {
|
|
20
|
+
title: "Components/Molecules/DocumentCard",
|
|
21
|
+
component: DocumentCard,
|
|
22
|
+
tags: ["autodocs"],
|
|
23
|
+
argTypes: {
|
|
24
|
+
type: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "select",
|
|
27
|
+
options: ["document", "note", "invoice", "waiting"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
title: { control: "text" },
|
|
31
|
+
date: { control: "date" },
|
|
32
|
+
status: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "select",
|
|
35
|
+
options: [
|
|
36
|
+
"sent",
|
|
37
|
+
"received",
|
|
38
|
+
"internal",
|
|
39
|
+
"notRequired",
|
|
40
|
+
"waiting",
|
|
41
|
+
"expired",
|
|
42
|
+
"canceled",
|
|
43
|
+
"failed",
|
|
44
|
+
"processing",
|
|
45
|
+
"maxAttemptsReached",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
documents: {
|
|
50
|
+
control: "object",
|
|
51
|
+
},
|
|
52
|
+
documentCount: { control: "text" },
|
|
53
|
+
shadow: { control: "boolean" },
|
|
54
|
+
},
|
|
55
|
+
args: {
|
|
56
|
+
documents: defaultDocuments,
|
|
57
|
+
documentCount: "1/3",
|
|
58
|
+
shadow: true,
|
|
59
|
+
},
|
|
60
|
+
parameters: {
|
|
61
|
+
backgrounds: {
|
|
62
|
+
default: "light",
|
|
63
|
+
values: [
|
|
64
|
+
{ name: "light", value: "#ffffff" },
|
|
65
|
+
{ name: "grey", value: "#728ea7" },
|
|
66
|
+
{ name: "figma", value: "#404040" },
|
|
67
|
+
{ name: "dark", value: "#171e25" },
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
var Template = function (args) { return React.createElement(DocumentCard, __assign({}, args)); };
|
|
73
|
+
export var Default = Template.bind({});
|
|
74
|
+
Default.args = {
|
|
75
|
+
type: "document",
|
|
76
|
+
title: "RDV Signature des docs",
|
|
77
|
+
date: new Date("2023-05-14"),
|
|
78
|
+
status: "sent",
|
|
79
|
+
};
|
|
80
|
+
export var Note = Template.bind({});
|
|
81
|
+
Note.args = {
|
|
82
|
+
type: "note",
|
|
83
|
+
title: "Note de frais",
|
|
84
|
+
date: new Date("2023-06-01"),
|
|
85
|
+
status: "received",
|
|
86
|
+
};
|
|
87
|
+
export var Invoice = Template.bind({});
|
|
88
|
+
Invoice.args = {
|
|
89
|
+
type: "invoice",
|
|
90
|
+
title: "Facture #2023-001",
|
|
91
|
+
date: new Date("2023-07-15"),
|
|
92
|
+
status: "sent",
|
|
93
|
+
};
|
|
94
|
+
export var Waiting = Template.bind({});
|
|
95
|
+
Waiting.args = {
|
|
96
|
+
type: "waiting",
|
|
97
|
+
title: "Motif du rendez-vous : Signature des docs",
|
|
98
|
+
date: new Date("2023-08-30"),
|
|
99
|
+
status: "received",
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DocumentCard } from "./DocumentCard";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./EmployeeCard.css";
|
|
3
|
+
export interface EmployeeCardProps {
|
|
4
|
+
name: string;
|
|
5
|
+
role: string;
|
|
6
|
+
contactNumber: string;
|
|
7
|
+
email1: string;
|
|
8
|
+
email2: string;
|
|
9
|
+
profileImage: string;
|
|
10
|
+
isVerified: boolean;
|
|
11
|
+
size: "small" | "large";
|
|
12
|
+
onEdit: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const EmployeeCard: React.FC<EmployeeCardProps>;
|
|
15
|
+
export default EmployeeCard;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./EmployeeCard.css";
|
|
3
|
+
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
4
|
+
import IconButton from "../../atoms/buttons/IconButton";
|
|
5
|
+
import Image from "next/image";
|
|
6
|
+
var NoPhoto = "/assets/NoPhoto.png";
|
|
7
|
+
var EmployeeCard = function (_a) {
|
|
8
|
+
var name = _a.name, role = _a.role, contactNumber = _a.contactNumber, email1 = _a.email1, email2 = _a.email2, profileImage = _a.profileImage, isVerified = _a.isVerified, size = _a.size, onEdit = _a.onEdit;
|
|
9
|
+
var renderProfileImage = function () { return (React.createElement("div", { className: "profile-image-container" },
|
|
10
|
+
React.createElement(Image, { src: profileImage || NoPhoto, alt: name, width: size === "small" ? 64 : 94, height: size === "small" ? 64 : 94, className: "profile-image" }),
|
|
11
|
+
isVerified && (React.createElement("span", { className: "verified-icon allaw-icon-verified" })))); };
|
|
12
|
+
var renderNameAndRole = function () { return (React.createElement("div", { className: "name-tag-container" },
|
|
13
|
+
React.createElement("h3", { className: "name" }, name),
|
|
14
|
+
React.createElement("div", { className: "role-container" },
|
|
15
|
+
React.createElement(OtherStatusTag, { label: role, type: "information" })))); };
|
|
16
|
+
var renderContactInfo = function () { return (React.createElement("div", { className: "contact-container" },
|
|
17
|
+
React.createElement("span", { className: "contact-label" }, "CONTACT"),
|
|
18
|
+
React.createElement("div", { className: "phone-email-container" },
|
|
19
|
+
React.createElement("span", { className: "phone-number" }, contactNumber),
|
|
20
|
+
React.createElement("span", { className: "email" }, email1),
|
|
21
|
+
React.createElement("span", { className: "email" }, email2)))); };
|
|
22
|
+
var renderSmallCard = function () { return (React.createElement("div", { className: "content" },
|
|
23
|
+
renderProfileImage(),
|
|
24
|
+
renderNameAndRole())); };
|
|
25
|
+
var renderLargeCard = function () { return (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement("div", { className: "content" },
|
|
27
|
+
renderProfileImage(),
|
|
28
|
+
React.createElement("div", { className: "content-main-container" },
|
|
29
|
+
renderNameAndRole(),
|
|
30
|
+
React.createElement("div", { className: "content-container" }, renderContactInfo()))),
|
|
31
|
+
React.createElement(IconButton, { style: "largeFilled", iconName: "allaw-icon-edit-2", onClick: onEdit }))); };
|
|
32
|
+
return (React.createElement("div", { className: "employee-card ".concat(size) }, size === "small" ? renderSmallCard() : renderLargeCard()));
|
|
33
|
+
};
|
|
34
|
+
export default EmployeeCard;
|