allaw-ui 3.4.3 → 3.4.4
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/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
- package/dist/app/[job]/[profile]/page.d.ts +0 -0
- package/dist/app/[job]/[profile]/page.js +0 -0
- package/dist/components/atoms/buttons/ActionButton.d.ts +18 -0
- package/dist/components/atoms/buttons/ActionButton.js +116 -0
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +108 -0
- package/dist/components/atoms/buttons/ActionButton.stories.js +167 -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.d.ts +11 -0
- package/dist/components/atoms/buttons/IconButton.js +14 -0
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +49 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +88 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.js +165 -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.d.ts +19 -0
- package/dist/components/atoms/buttons/PrimaryButton.js +117 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +108 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +168 -0
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +22 -0
- package/dist/components/atoms/buttons/SecondaryButton.js +151 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +97 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +177 -0
- package/dist/components/atoms/buttons/TabNavigation.d.ts +17 -0
- package/dist/components/atoms/buttons/TabNavigation.js +68 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +81 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.js +178 -0
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +15 -0
- package/dist/components/atoms/buttons/TertiaryButton.js +23 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +70 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +128 -0
- package/dist/components/atoms/buttons/index.d.ts +24 -0
- package/dist/components/atoms/buttons/index.js +12 -0
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +15 -0
- package/dist/components/atoms/checkboxes/Checkbox.js +20 -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 +15 -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/index.d.ts +2 -0
- package/dist/components/atoms/datepickers/index.js +1 -0
- package/dist/components/atoms/featureCard/featureCard.d.ts +15 -0
- package/dist/components/atoms/featureCard/featureCard.js +16 -0
- package/dist/components/atoms/featureCard/featureCard.stories.d.ts +21 -0
- package/dist/components/atoms/featureCard/featureCard.stories.js +101 -0
- package/dist/components/atoms/featureCard/index.d.ts +2 -0
- package/dist/components/atoms/featureCard/index.js +1 -0
- 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 +16 -0
- package/dist/components/atoms/filters/SingleFilter.js +99 -0
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
- package/dist/components/atoms/filters/SingleFilter.stories.js +33 -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 +29 -0
- package/dist/components/atoms/inputs/Input.js +94 -0
- package/dist/components/atoms/inputs/Input.stories.d.ts +63 -0
- package/dist/components/atoms/inputs/Input.stories.js +110 -0
- 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.d.ts +25 -0
- package/dist/components/atoms/inputs/TextArea.js +77 -0
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +95 -0
- package/dist/components/atoms/inputs/TextArea.stories.js +141 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.d.ts +14 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.js +155 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +81 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +89 -0
- package/dist/components/atoms/inputs/index.d.ts +8 -0
- package/dist/components/atoms/inputs/index.js +4 -0
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
- package/dist/components/atoms/progressBars/ProgressBar.js +26 -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 +12 -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/SelectCard.d.ts +24 -0
- package/dist/components/atoms/radios/SelectCard.js +100 -0
- package/dist/components/atoms/radios/SelectCard.stories.d.ts +92 -0
- package/dist/components/atoms/radios/SelectCard.stories.js +192 -0
- package/dist/components/atoms/radios/index.d.ts +4 -0
- package/dist/components/atoms/radios/index.js +2 -0
- package/dist/components/atoms/selects/ComboBox.d.ts +28 -0
- package/dist/components/atoms/selects/ComboBox.js +172 -0
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +116 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +136 -0
- package/dist/components/atoms/selects/Select.d.ts +25 -0
- package/dist/components/atoms/selects/Select.js +240 -0
- package/dist/components/atoms/selects/Select.stories.d.ts +95 -0
- package/dist/components/atoms/selects/Select.stories.js +161 -0
- package/dist/components/atoms/selects/SelectableListItem.d.ts +14 -0
- package/dist/components/atoms/selects/SelectableListItem.js +19 -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.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.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 +16 -0
- package/dist/components/atoms/typography/Heading.js +39 -0
- package/dist/components/atoms/typography/Heading.stories.d.ts +79 -0
- package/dist/components/atoms/typography/Heading.stories.js +150 -0
- package/dist/components/atoms/typography/Link.d.ts +15 -0
- package/dist/components/atoms/typography/Link.js +35 -0
- package/dist/components/atoms/typography/Link.stories.d.ts +72 -0
- package/dist/components/atoms/typography/Link.stories.js +164 -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 +14 -0
- package/dist/components/atoms/typography/TinyInfo.js +18 -0
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +58 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +117 -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.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.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/banner/Banner.d.ts +20 -0
- package/dist/components/molecules/banner/Banner.js +28 -0
- package/dist/components/molecules/banner/Banner.stories.d.ts +31 -0
- package/dist/components/molecules/banner/Banner.stories.js +123 -0
- package/dist/components/molecules/banner/index.d.ts +2 -0
- package/dist/components/molecules/banner/index.js +1 -0
- package/dist/components/molecules/billingCount/BillingCount.d.ts +11 -0
- package/dist/components/molecules/billingCount/BillingCount.js +169 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +22 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.js +49 -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 +32 -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.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.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.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.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/brands/Brands.d.ts +9 -0
- package/dist/components/molecules/brands/Brands.js +13 -0
- package/dist/components/molecules/brands/Brands.stories.d.ts +8 -0
- package/dist/components/molecules/brands/Brands.stories.js +66 -0
- package/dist/components/molecules/brands/index.d.ts +2 -0
- package/dist/components/molecules/brands/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.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/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.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 +20 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +30 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +94 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +157 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.d.ts +20 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.js +81 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +108 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +141 -0
- package/dist/components/molecules/checkboxForm/index.d.ts +4 -0
- package/dist/components/molecules/checkboxForm/index.js +2 -0
- 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 +31 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +68 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +80 -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/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/index.d.ts +2 -0
- package/dist/components/molecules/datepickerForm/index.js +1 -0
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +16 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +124 -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/entityAdminCard/EntityAdminCard.d.ts +13 -0
- package/dist/components/molecules/entityAdminCard/EntityAdminCard.js +34 -0
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +8 -0
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +34 -0
- package/dist/components/molecules/entityCard/EntityCard.d.ts +12 -0
- package/dist/components/molecules/entityCard/EntityCard.js +53 -0
- package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +7 -0
- package/dist/components/molecules/entityCard/EntityCard.stories.js +30 -0
- package/dist/components/molecules/entityCard/index.d.ts +2 -0
- package/dist/components/molecules/entityCard/index.js +1 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.d.ts +8 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.js +27 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +7 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +97 -0
- package/dist/components/molecules/featureGrid/index.d.ts +2 -0
- package/dist/components/molecules/featureGrid/index.js +1 -0
- package/dist/components/molecules/fileUploader/FileUploader.d.ts +41 -0
- package/dist/components/molecules/fileUploader/FileUploader.js +346 -0
- package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +107 -0
- package/dist/components/molecules/fileUploader/FileUploader.stories.js +232 -0
- package/dist/components/molecules/fileUploader/ImageCropperModal.d.ts +15 -0
- package/dist/components/molecules/fileUploader/ImageCropperModal.js +212 -0
- package/dist/components/molecules/fileUploader/index.d.ts +2 -0
- package/dist/components/molecules/fileUploader/index.js +1 -0
- package/dist/components/molecules/flexContent/FlexContent.d.ts +18 -0
- package/dist/components/molecules/flexContent/FlexContent.js +21 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +9 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.js +47 -0
- package/dist/components/molecules/flexContent/index.d.ts +2 -0
- package/dist/components/molecules/flexContent/index.js +1 -0
- package/dist/components/molecules/frameCTA/FrameCTA.d.ts +19 -0
- package/dist/components/molecules/frameCTA/FrameCTA.js +18 -0
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +8 -0
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +58 -0
- package/dist/components/molecules/frameCTA/index.d.ts +2 -0
- package/dist/components/molecules/frameCTA/index.js +1 -0
- package/dist/components/molecules/heroSection/HeroSection.d.ts +21 -0
- package/dist/components/molecules/heroSection/HeroSection.js +20 -0
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +46 -0
- package/dist/components/molecules/heroSection/HeroSection.stories.js +100 -0
- package/dist/components/molecules/heroSection/index.d.ts +2 -0
- package/dist/components/molecules/heroSection/index.js +1 -0
- 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/modal/Modal.d.ts +32 -0
- package/dist/components/molecules/modal/Modal.js +97 -0
- package/dist/components/molecules/modal/Modal.stories.d.ts +87 -0
- package/dist/components/molecules/modal/Modal.stories.js +126 -0
- package/dist/components/molecules/modal/index.d.ts +2 -0
- package/dist/components/molecules/modal/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/proCard/ProCard.d.ts +14 -0
- package/dist/components/molecules/proCard/ProCard.js +30 -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/questionAnswer/QuestionAnswer.d.ts +10 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.js +33 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +17 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +48 -0
- package/dist/components/molecules/questionAnswer/index.d.ts +2 -0
- package/dist/components/molecules/questionAnswer/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.d.ts +19 -0
- package/dist/components/molecules/selectForm/SelectForm.js +15 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +72 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.js +104 -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/ConfirmationModal.d.ts +14 -0
- package/dist/components/molecules/stepper/ConfirmationModal.js +26 -0
- package/dist/components/molecules/stepper/Stepper.d.ts +51 -0
- package/dist/components/molecules/stepper/Stepper.js +156 -0
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +52 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +206 -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 +108 -0
- package/dist/index.js +108 -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/utils/regex.d.ts +5 -0
- package/dist/utils/regex.js +7 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +58 -0
- package/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./contactCard.module.css";
|
|
3
|
+
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
4
|
+
import Link from "next/link";
|
|
5
|
+
var ContactCard = function (_a) {
|
|
6
|
+
var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, onClick = _a.onClick, actionsButton = _a.actionsButton, clientLabel = _a.clientLabel;
|
|
7
|
+
var isPhoneEmpty = !phone || phone.trim() === "";
|
|
8
|
+
var isEmailEmpty = !email || email.trim() === "";
|
|
9
|
+
var displayClientLabel = clientLabel || "Client de l'\u00E9tude";
|
|
10
|
+
return (React.createElement("div", { className: styles.contactCard, onClick: function () { return onClick && onClick(); }, style: { cursor: onClick ? "pointer" : "default" } },
|
|
11
|
+
React.createElement("div", { className: styles.contentContainer },
|
|
12
|
+
React.createElement("div", { className: styles.nameTagContainer },
|
|
13
|
+
React.createElement("h3", { className: styles.contactName }, name),
|
|
14
|
+
React.createElement(OtherStatusTag, { label: status, type: "readonly" })),
|
|
15
|
+
React.createElement("div", { className: styles.infoContainer },
|
|
16
|
+
React.createElement("div", { className: styles.infoItem },
|
|
17
|
+
React.createElement("i", { className: "allaw-icon-user ".concat(styles.infoIcon) }),
|
|
18
|
+
React.createElement("span", { className: styles.infoText }, displayClientLabel)),
|
|
19
|
+
React.createElement("div", { className: styles.telephoneEmailItems },
|
|
20
|
+
React.createElement("div", { className: styles.infoItem },
|
|
21
|
+
React.createElement("i", { className: "allaw-icon-phone ".concat(styles.infoIcon, " ").concat(isPhoneEmpty ? styles.infoIconDisabled : "") }),
|
|
22
|
+
React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isPhoneEmpty ? styles.emptyField : "") }, isPhoneEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "tel:".concat(phone) }, phone)))),
|
|
23
|
+
React.createElement("div", { className: styles.infoItem },
|
|
24
|
+
React.createElement("i", { className: "allaw-icon-mail ".concat(styles.infoIcon, " ").concat(isEmailEmpty ? styles.infoIconDisabled : "") }),
|
|
25
|
+
React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isEmailEmpty ? styles.emptyField : "") }, isEmailEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "mailTo:".concat(email) }, email))))))),
|
|
26
|
+
React.createElement("div", { className: styles.actionsContainer },
|
|
27
|
+
actionsButton ? actionsButton : null,
|
|
28
|
+
onClick && (React.createElement("div", { className: styles.actionButtonContainer },
|
|
29
|
+
React.createElement("i", { className: "allaw-icon-arrow-right" }))))));
|
|
30
|
+
};
|
|
31
|
+
export default ContactCard;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { ContactCard as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace name {
|
|
7
|
+
let control: string;
|
|
8
|
+
}
|
|
9
|
+
namespace status {
|
|
10
|
+
let control_1: string;
|
|
11
|
+
export { control_1 as control };
|
|
12
|
+
}
|
|
13
|
+
namespace phone {
|
|
14
|
+
let control_2: string;
|
|
15
|
+
export { control_2 as control };
|
|
16
|
+
}
|
|
17
|
+
namespace email {
|
|
18
|
+
let control_3: string;
|
|
19
|
+
export { control_3 as control };
|
|
20
|
+
}
|
|
21
|
+
namespace gender {
|
|
22
|
+
export namespace control_4 {
|
|
23
|
+
let type: string;
|
|
24
|
+
let options: string[];
|
|
25
|
+
}
|
|
26
|
+
export { control_4 as control };
|
|
27
|
+
}
|
|
28
|
+
namespace clientLabel {
|
|
29
|
+
let control_5: string;
|
|
30
|
+
export { control_5 as control };
|
|
31
|
+
export let description: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export namespace args {
|
|
35
|
+
let name_1: string;
|
|
36
|
+
export { name_1 as name };
|
|
37
|
+
let status_1: string;
|
|
38
|
+
export { status_1 as status };
|
|
39
|
+
let phone_1: string;
|
|
40
|
+
export { phone_1 as phone };
|
|
41
|
+
let email_1: string;
|
|
42
|
+
export { email_1 as email };
|
|
43
|
+
export let isEditable: boolean;
|
|
44
|
+
let gender_1: string;
|
|
45
|
+
export { gender_1 as gender };
|
|
46
|
+
export let actionIconName: string;
|
|
47
|
+
let clientLabel_1: string;
|
|
48
|
+
export { clientLabel_1 as clientLabel };
|
|
49
|
+
}
|
|
50
|
+
export namespace parameters {
|
|
51
|
+
namespace backgrounds {
|
|
52
|
+
let _default: string;
|
|
53
|
+
export { _default as default };
|
|
54
|
+
export let values: {
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export default _default;
|
|
62
|
+
export const Default: any;
|
|
63
|
+
export const Editable: any;
|
|
64
|
+
export const WithCustomIcon: any;
|
|
65
|
+
export const EmptyFields: any;
|
|
66
|
+
export const PartiallyEmpty: any;
|
|
67
|
+
export const CustomClientLabel: any;
|
|
68
|
+
import ContactCard from "./ContactCard";
|
|
@@ -0,0 +1,80 @@
|
|
|
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 ContactCard from "./ContactCard";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Molecules/ContactCard",
|
|
17
|
+
component: ContactCard,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
name: { control: "text" },
|
|
21
|
+
status: { control: "text" },
|
|
22
|
+
phone: { control: "text" },
|
|
23
|
+
email: { control: "text" },
|
|
24
|
+
gender: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "select",
|
|
27
|
+
options: ["male", "female"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
clientLabel: {
|
|
31
|
+
control: "text",
|
|
32
|
+
description: "Texte personnalisé pour 'Client/Cliente de l'étude'",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
name: "Jane DOE",
|
|
37
|
+
status: "Client actif",
|
|
38
|
+
phone: "06 63 90 59 25",
|
|
39
|
+
email: "enzo@quarantesoixante.com",
|
|
40
|
+
isEditable: false,
|
|
41
|
+
gender: "female",
|
|
42
|
+
actionIconName: "allaw-icon-edit-2",
|
|
43
|
+
clientLabel: "",
|
|
44
|
+
},
|
|
45
|
+
parameters: {
|
|
46
|
+
backgrounds: {
|
|
47
|
+
default: "light",
|
|
48
|
+
values: [
|
|
49
|
+
{ name: "light", value: "#ffffff" },
|
|
50
|
+
{ name: "grey", value: "#728ea7" },
|
|
51
|
+
{ name: "figma", value: "#404040" },
|
|
52
|
+
{ name: "dark", value: "#171e25" },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
var Template = function (args) { return React.createElement(ContactCard, __assign({}, args)); };
|
|
58
|
+
export var Default = Template.bind({});
|
|
59
|
+
export var Editable = Template.bind({});
|
|
60
|
+
Editable.args = {
|
|
61
|
+
isEditable: true,
|
|
62
|
+
};
|
|
63
|
+
export var WithCustomIcon = Template.bind({});
|
|
64
|
+
WithCustomIcon.args = {
|
|
65
|
+
actionIconName: "allaw-icon-plus",
|
|
66
|
+
};
|
|
67
|
+
export var EmptyFields = Template.bind({});
|
|
68
|
+
EmptyFields.args = {
|
|
69
|
+
phone: "",
|
|
70
|
+
email: null,
|
|
71
|
+
};
|
|
72
|
+
export var PartiallyEmpty = Template.bind({});
|
|
73
|
+
PartiallyEmpty.args = {
|
|
74
|
+
phone: "06 12 34 56 78",
|
|
75
|
+
email: "",
|
|
76
|
+
};
|
|
77
|
+
export var CustomClientLabel = Template.bind({});
|
|
78
|
+
CustomClientLabel.args = {
|
|
79
|
+
clientLabel: "Utilisateur professionnel",
|
|
80
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./detailedContactCard.css";
|
|
3
|
+
export interface DetailedContactCardProps {
|
|
4
|
+
size: "small" | "medium" | "large";
|
|
5
|
+
name: string;
|
|
6
|
+
birthDate: string;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
status: string;
|
|
9
|
+
address: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
email: string;
|
|
12
|
+
isEditable: boolean;
|
|
13
|
+
onEdit: () => void;
|
|
14
|
+
gender: "male" | "female";
|
|
15
|
+
actionIconName?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const DetailedContactCard: React.FC<DetailedContactCardProps>;
|
|
18
|
+
export default DetailedContactCard;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./detailedContactCard.css";
|
|
3
|
+
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
4
|
+
import Image from "next/image";
|
|
5
|
+
var NoPhoto = "/assets/NoPhoto.png";
|
|
6
|
+
var DetailedContactCard = function (_a) {
|
|
7
|
+
var size = _a.size, name = _a.name, birthDate = _a.birthDate, avatarUrl = _a.avatarUrl, status = _a.status, address = _a.address, phone = _a.phone, email = _a.email, gender = _a.gender;
|
|
8
|
+
var isPhoneEmpty = !phone || phone.trim() === "";
|
|
9
|
+
var isEmailEmpty = !email || email.trim() === "";
|
|
10
|
+
var renderContent = function () {
|
|
11
|
+
switch (size) {
|
|
12
|
+
case "small":
|
|
13
|
+
return (React.createElement("div", { className: "detailed-contact-card-content" },
|
|
14
|
+
React.createElement("div", { className: "profile-picture-container" },
|
|
15
|
+
React.createElement(Image, { src: avatarUrl || NoPhoto, alt: name, width: 64, height: 64, className: "avatar" })),
|
|
16
|
+
React.createElement("div", { className: "contact-info" },
|
|
17
|
+
React.createElement("h3", { className: "contact-name" }, name),
|
|
18
|
+
React.createElement("p", { className: "contact-details" },
|
|
19
|
+
React.createElement("span", null, gender === "male" ? "M" : "F"),
|
|
20
|
+
React.createElement("span", { className: "gender-separator" }),
|
|
21
|
+
React.createElement("span", null, birthDate)))));
|
|
22
|
+
case "medium":
|
|
23
|
+
return (React.createElement("div", { className: "detailed-contact-card-content" },
|
|
24
|
+
React.createElement("div", { className: "profile-picture-container" },
|
|
25
|
+
React.createElement(Image, { src: avatarUrl || NoPhoto, alt: name, width: 72, height: 72, className: "avatar" })),
|
|
26
|
+
React.createElement("div", { className: "contact-info" },
|
|
27
|
+
React.createElement("h3", { className: "contact-name" }, name),
|
|
28
|
+
React.createElement("p", { className: "contact-details" },
|
|
29
|
+
React.createElement("span", null, gender === "male" ? "M" : "F"),
|
|
30
|
+
React.createElement("span", { className: "gender-separator" }),
|
|
31
|
+
React.createElement("span", null, birthDate))),
|
|
32
|
+
React.createElement("div", { className: "status-container" },
|
|
33
|
+
React.createElement(OtherStatusTag, { label: status, type: "readonly" }))));
|
|
34
|
+
case "large":
|
|
35
|
+
return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement("div", { className: "profile-picture-container" },
|
|
37
|
+
React.createElement(Image, { src: avatarUrl || NoPhoto, alt: name, width: 94, height: 94, className: "avatar" })),
|
|
38
|
+
React.createElement("div", { className: "content-container" },
|
|
39
|
+
React.createElement("div", null,
|
|
40
|
+
React.createElement("h3", { className: "contact-name" }, name),
|
|
41
|
+
React.createElement("p", { className: "contact-details" },
|
|
42
|
+
React.createElement("span", null, gender === "male" ? "M" : "F"),
|
|
43
|
+
React.createElement("span", { className: "gender-separator" }),
|
|
44
|
+
React.createElement("span", null, birthDate))),
|
|
45
|
+
React.createElement("div", { className: "contact-additional-info" },
|
|
46
|
+
React.createElement("div", { className: "contact-address-container" },
|
|
47
|
+
React.createElement("p", { className: "info-label" }, "ADRESSE"),
|
|
48
|
+
React.createElement("p", { className: "info-value" }, address)),
|
|
49
|
+
React.createElement("div", { className: "contact-telephone-email-container" },
|
|
50
|
+
React.createElement("p", { className: "info-label" }, "CONTACT"),
|
|
51
|
+
React.createElement("p", { className: "info-value" },
|
|
52
|
+
React.createElement("span", { className: "contact-phone ".concat(isPhoneEmpty ? "empty-field" : "") }, isPhoneEmpty ? "Non renseigné" : phone)),
|
|
53
|
+
React.createElement("p", { className: "info-value" },
|
|
54
|
+
React.createElement("span", { className: "contact-phone ".concat(isEmailEmpty ? "empty-field" : "") }, isEmailEmpty ? "Non renseigné" : email))))),
|
|
55
|
+
React.createElement("div", { className: "status-container" },
|
|
56
|
+
React.createElement(OtherStatusTag, { label: status, type: "readonly" }))));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return (React.createElement("div", { className: "detailed-contact-card ".concat(size) }, renderContent()));
|
|
60
|
+
};
|
|
61
|
+
export default DetailedContactCard;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { DetailedContactCard as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace size {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
namespace name {
|
|
13
|
+
let control_1: string;
|
|
14
|
+
export { control_1 as control };
|
|
15
|
+
}
|
|
16
|
+
namespace birthDate {
|
|
17
|
+
let control_2: string;
|
|
18
|
+
export { control_2 as control };
|
|
19
|
+
}
|
|
20
|
+
namespace avatarUrl {
|
|
21
|
+
let control_3: string;
|
|
22
|
+
export { control_3 as control };
|
|
23
|
+
}
|
|
24
|
+
namespace status {
|
|
25
|
+
let control_4: string;
|
|
26
|
+
export { control_4 as control };
|
|
27
|
+
}
|
|
28
|
+
namespace address {
|
|
29
|
+
let control_5: string;
|
|
30
|
+
export { control_5 as control };
|
|
31
|
+
}
|
|
32
|
+
namespace phone {
|
|
33
|
+
let control_6: string;
|
|
34
|
+
export { control_6 as control };
|
|
35
|
+
}
|
|
36
|
+
namespace email {
|
|
37
|
+
let control_7: string;
|
|
38
|
+
export { control_7 as control };
|
|
39
|
+
}
|
|
40
|
+
namespace onEdit {
|
|
41
|
+
let action: string;
|
|
42
|
+
}
|
|
43
|
+
namespace gender {
|
|
44
|
+
export namespace control_8 {
|
|
45
|
+
let type_1: string;
|
|
46
|
+
export { type_1 as type };
|
|
47
|
+
let options_1: string[];
|
|
48
|
+
export { options_1 as options };
|
|
49
|
+
}
|
|
50
|
+
export { control_8 as control };
|
|
51
|
+
}
|
|
52
|
+
namespace actionIconName {
|
|
53
|
+
let control_9: string;
|
|
54
|
+
export { control_9 as control };
|
|
55
|
+
export let description: string;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export namespace args {
|
|
59
|
+
let name_1: string;
|
|
60
|
+
export { name_1 as name };
|
|
61
|
+
let birthDate_1: string;
|
|
62
|
+
export { birthDate_1 as birthDate };
|
|
63
|
+
export { NoPhotoImage as avatarUrl };
|
|
64
|
+
let status_1: string;
|
|
65
|
+
export { status_1 as status };
|
|
66
|
+
let address_1: string;
|
|
67
|
+
export { address_1 as address };
|
|
68
|
+
let phone_1: string;
|
|
69
|
+
export { phone_1 as phone };
|
|
70
|
+
let email_1: string;
|
|
71
|
+
export { email_1 as email };
|
|
72
|
+
let gender_1: string;
|
|
73
|
+
export { gender_1 as gender };
|
|
74
|
+
let actionIconName_1: string;
|
|
75
|
+
export { actionIconName_1 as actionIconName };
|
|
76
|
+
}
|
|
77
|
+
export namespace parameters {
|
|
78
|
+
namespace backgrounds {
|
|
79
|
+
let _default: string;
|
|
80
|
+
export { _default as default };
|
|
81
|
+
export let values: {
|
|
82
|
+
name: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}[];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export default _default;
|
|
89
|
+
export const Small: any;
|
|
90
|
+
export const Medium: any;
|
|
91
|
+
export const Large: any;
|
|
92
|
+
export const LargeEmptyFields: any;
|
|
93
|
+
import DetailedContactCard from "./DetailedContactCard";
|
|
94
|
+
declare const NoPhotoImage: "/assets/NoPhoto.png";
|
|
@@ -0,0 +1,83 @@
|
|
|
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 DetailedContactCard from "./DetailedContactCard";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
var NoPhotoImage = "/assets/NoPhoto.png";
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Molecules/DetailedContactCard",
|
|
18
|
+
component: DetailedContactCard,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
argTypes: {
|
|
21
|
+
size: {
|
|
22
|
+
control: {
|
|
23
|
+
type: "select",
|
|
24
|
+
options: ["small", "medium", "large"],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
name: { control: "text" },
|
|
28
|
+
birthDate: { control: "text" },
|
|
29
|
+
avatarUrl: { control: "text" },
|
|
30
|
+
status: { control: "text" },
|
|
31
|
+
address: { control: "text" },
|
|
32
|
+
phone: { control: "text" },
|
|
33
|
+
email: { control: "text" },
|
|
34
|
+
onEdit: { action: "edited" },
|
|
35
|
+
gender: {
|
|
36
|
+
control: {
|
|
37
|
+
type: "select",
|
|
38
|
+
options: ["male", "female"],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
actionIconName: {
|
|
42
|
+
control: "text",
|
|
43
|
+
description: "Nom de l'icône pour le bouton d'action",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
args: {
|
|
47
|
+
name: "Jane DOE",
|
|
48
|
+
birthDate: "31/12/1985",
|
|
49
|
+
avatarUrl: NoPhotoImage,
|
|
50
|
+
status: "Client actif",
|
|
51
|
+
address: "142 avenue Turbigo, 75016 Paris",
|
|
52
|
+
phone: "06 63 90 59 25",
|
|
53
|
+
email: "enzo@quarantesoixante.com",
|
|
54
|
+
gender: "female",
|
|
55
|
+
actionIconName: "allaw-icon-edit-2",
|
|
56
|
+
},
|
|
57
|
+
parameters: {
|
|
58
|
+
backgrounds: {
|
|
59
|
+
default: "light",
|
|
60
|
+
values: [
|
|
61
|
+
{ name: "light", value: "#ffffff" },
|
|
62
|
+
{ name: "grey", value: "#728ea7" },
|
|
63
|
+
{ name: "figma", value: "#404040" },
|
|
64
|
+
{ name: "dark", value: "#171e25" },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
var Template = function (args) { return React.createElement(DetailedContactCard, __assign({}, args)); };
|
|
70
|
+
export var Small = Template.bind({});
|
|
71
|
+
Small.args = {
|
|
72
|
+
size: "small",
|
|
73
|
+
};
|
|
74
|
+
export var Medium = Template.bind({});
|
|
75
|
+
Medium.args = {
|
|
76
|
+
size: "medium",
|
|
77
|
+
};
|
|
78
|
+
export var Large = Template.bind({});
|
|
79
|
+
Large.args = {
|
|
80
|
+
size: "large",
|
|
81
|
+
};
|
|
82
|
+
export var LargeEmptyFields = Template.bind({});
|
|
83
|
+
LargeEmptyFields.args = __assign(__assign({}, Large.args), { phone: "", email: undefined });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./datepickerForm.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface DatepickerFormProps {
|
|
5
|
+
value?: Date;
|
|
6
|
+
onChange?: (date: Date) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
variant?: "bold" | "semiBold" | "medium";
|
|
10
|
+
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
|
|
11
|
+
yearDropdownItemNumber?: number;
|
|
12
|
+
maxDaysInPast?: number;
|
|
13
|
+
minDate?: Date;
|
|
14
|
+
}
|
|
15
|
+
declare const DatepickerForm: React.FC<DatepickerFormProps>;
|
|
16
|
+
export default DatepickerForm;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./datepickerForm.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import Paragraph from "../../atoms/typography/Paragraph";
|
|
5
|
+
import Datepicker from "../../atoms/datepickers/Datepicker";
|
|
6
|
+
var DatepickerForm = function (_a) {
|
|
7
|
+
// console.log("Valeur reçue dans DatepickerForm :", value);
|
|
8
|
+
var value = _a.value, onChange = _a.onChange, _b = _a.placeholder, placeholder = _b === void 0 ? "Sélectionner une date" : _b, text = _a.text, _c = _a.variant, variant = _c === void 0 ? "medium" : _c, _d = _a.color, color = _d === void 0 ? "noir" : _d, _e = _a.yearDropdownItemNumber, yearDropdownItemNumber = _e === void 0 ? 10 : _e, maxDaysInPast = _a.maxDaysInPast, minDate = _a.minDate;
|
|
9
|
+
return (React.createElement("div", { className: "datepicker-form-wrapper" },
|
|
10
|
+
text && React.createElement(Paragraph, { text: text, variant: variant, color: color }),
|
|
11
|
+
React.createElement(Datepicker, { value: value || undefined, onChange: onChange, placeholder: placeholder, yearDropdownItemNumber: yearDropdownItemNumber, maxDaysInPast: maxDaysInPast, minDate: minDate })));
|
|
12
|
+
};
|
|
13
|
+
export default DatepickerForm;
|
|
@@ -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";
|