allaw-ui 3.4.3 → 3.4.5
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,200 @@
|
|
|
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 CaseCard from "./CaseCard";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Molecules/CaseCard",
|
|
17
|
+
component: CaseCard,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
variant: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
options: ["desktop", "mobile", "archived"],
|
|
24
|
+
},
|
|
25
|
+
description: "Variante d'affichage de la carte",
|
|
26
|
+
},
|
|
27
|
+
categoryLabelLimit: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "number",
|
|
30
|
+
},
|
|
31
|
+
description: "Nombre maximum de caractères pour les catégories",
|
|
32
|
+
},
|
|
33
|
+
isDisabled: {
|
|
34
|
+
control: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
},
|
|
37
|
+
description: "Indique si le composant est désactivé ou clôturé",
|
|
38
|
+
},
|
|
39
|
+
dateStyle: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "select",
|
|
42
|
+
options: ["horizontal", "hybride", "vertical"],
|
|
43
|
+
},
|
|
44
|
+
description: "Style de date à utiliser pour le composant CardDate",
|
|
45
|
+
},
|
|
46
|
+
dateLabel: {
|
|
47
|
+
control: {
|
|
48
|
+
type: "text",
|
|
49
|
+
},
|
|
50
|
+
description: "Label à afficher avant la date",
|
|
51
|
+
},
|
|
52
|
+
barColor: {
|
|
53
|
+
control: {
|
|
54
|
+
type: "select",
|
|
55
|
+
options: ["blue", "red", "green", "grey"],
|
|
56
|
+
},
|
|
57
|
+
description: "Couleur de la barre de progression",
|
|
58
|
+
},
|
|
59
|
+
showYear: {
|
|
60
|
+
control: {
|
|
61
|
+
type: "boolean",
|
|
62
|
+
},
|
|
63
|
+
description: "Afficher ou masquer l'année dans la date",
|
|
64
|
+
},
|
|
65
|
+
steps: {
|
|
66
|
+
control: {
|
|
67
|
+
type: "number",
|
|
68
|
+
},
|
|
69
|
+
description: "Nombre total d'étapes de la barre de progression",
|
|
70
|
+
},
|
|
71
|
+
currentStep: {
|
|
72
|
+
control: {
|
|
73
|
+
type: "number",
|
|
74
|
+
},
|
|
75
|
+
description: "Étape actuelle de la barre de progression",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
parameters: {
|
|
79
|
+
backgrounds: {
|
|
80
|
+
default: "light",
|
|
81
|
+
values: [
|
|
82
|
+
{ name: "light", value: "#ffffff" },
|
|
83
|
+
{ name: "grey", value: "#728ea7" },
|
|
84
|
+
{ name: "figma", value: "#404040" },
|
|
85
|
+
{ name: "dark", value: "#171e25" },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
var Template = function (args) { return React.createElement(CaseCard, __assign({}, args)); };
|
|
91
|
+
export var Desktop = Template.bind({});
|
|
92
|
+
Desktop.args = {
|
|
93
|
+
clientName: "MME. JANE DOE",
|
|
94
|
+
title: "Divorce à l'amiable",
|
|
95
|
+
nextAppointment: {
|
|
96
|
+
date: "2024-10-31",
|
|
97
|
+
time: "14:15",
|
|
98
|
+
},
|
|
99
|
+
categories: ["Droit de la famille", "Divorce"],
|
|
100
|
+
variant: "desktop",
|
|
101
|
+
categoryLabelLimit: 20,
|
|
102
|
+
isDisabled: false,
|
|
103
|
+
dateStyle: "hybride",
|
|
104
|
+
dateLabel: "Proch. rdv",
|
|
105
|
+
barColor: "blue",
|
|
106
|
+
showYear: true,
|
|
107
|
+
steps: 100,
|
|
108
|
+
currentStep: 50,
|
|
109
|
+
};
|
|
110
|
+
export var Mobile = Template.bind({});
|
|
111
|
+
Mobile.args = {
|
|
112
|
+
clientName: "MME. JANE DOE",
|
|
113
|
+
title: "Divorce à l'amiable avec une procédure très longue et complexe",
|
|
114
|
+
nextAppointment: {
|
|
115
|
+
date: "2024-10-31",
|
|
116
|
+
},
|
|
117
|
+
categories: ["Droit de la famille", "Divorce"],
|
|
118
|
+
variant: "mobile",
|
|
119
|
+
categoryLabelLimit: 15,
|
|
120
|
+
isDisabled: true,
|
|
121
|
+
dateStyle: "horizontal",
|
|
122
|
+
dateLabel: "Clôturé le :",
|
|
123
|
+
barColor: "grey",
|
|
124
|
+
showYear: false,
|
|
125
|
+
steps: 100,
|
|
126
|
+
currentStep: 100,
|
|
127
|
+
};
|
|
128
|
+
export var LongCategories = Template.bind({});
|
|
129
|
+
LongCategories.args = {
|
|
130
|
+
clientName: "MME. JANE DOE",
|
|
131
|
+
title: "Divorce à l'amiable",
|
|
132
|
+
nextAppointment: {
|
|
133
|
+
date: "2024-10-31",
|
|
134
|
+
},
|
|
135
|
+
categories: [
|
|
136
|
+
"Droit de la famille très long",
|
|
137
|
+
"Divorce avec procédure complexe",
|
|
138
|
+
],
|
|
139
|
+
variant: "desktop",
|
|
140
|
+
categoryLabelLimit: 10,
|
|
141
|
+
isDisabled: false,
|
|
142
|
+
dateStyle: "vertical",
|
|
143
|
+
dateLabel: "Proch rdv",
|
|
144
|
+
barColor: "green",
|
|
145
|
+
showYear: true,
|
|
146
|
+
steps: 100,
|
|
147
|
+
currentStep: 75,
|
|
148
|
+
};
|
|
149
|
+
export var LongTitle = Template.bind({});
|
|
150
|
+
LongTitle.args = {
|
|
151
|
+
clientName: "MME. JANE DOE",
|
|
152
|
+
title: "Ceci est un très long titre qui devrait être tronqué après exactement deux lignes avec des points de suspension à la fin du texte",
|
|
153
|
+
nextAppointment: {
|
|
154
|
+
date: "2024-10-31",
|
|
155
|
+
},
|
|
156
|
+
categories: ["Droit de la famille", "Divorce"],
|
|
157
|
+
variant: "desktop",
|
|
158
|
+
isDisabled: true,
|
|
159
|
+
dateStyle: "hybride",
|
|
160
|
+
dateLabel: "Clôturé le :",
|
|
161
|
+
barColor: "red",
|
|
162
|
+
showYear: false,
|
|
163
|
+
steps: 100,
|
|
164
|
+
currentStep: 100,
|
|
165
|
+
};
|
|
166
|
+
export var Archived = Template.bind({});
|
|
167
|
+
Archived.args = {
|
|
168
|
+
clientName: "MME. JANE DOE",
|
|
169
|
+
title: "Divorce à l'amiable depuis longtemps",
|
|
170
|
+
categories: ["Droit de la famille", "Divorce"],
|
|
171
|
+
variant: "archived",
|
|
172
|
+
isDisabled: false,
|
|
173
|
+
dateStyle: "horizontal",
|
|
174
|
+
dateLabel: "Proch. rdv",
|
|
175
|
+
barColor: "grey",
|
|
176
|
+
showYear: true,
|
|
177
|
+
steps: 100,
|
|
178
|
+
currentStep: 90,
|
|
179
|
+
};
|
|
180
|
+
LongCategories.parameters = {
|
|
181
|
+
docs: {
|
|
182
|
+
description: {
|
|
183
|
+
story: "Exemple avec des catégories longues et une limite de caractères courte",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
export var RedProgressBar = Template.bind({});
|
|
188
|
+
RedProgressBar.args = __assign(__assign({}, Desktop.args), { barColor: "red" });
|
|
189
|
+
export var GreenProgressBar = Template.bind({});
|
|
190
|
+
GreenProgressBar.args = __assign(__assign({}, Desktop.args), { barColor: "green" });
|
|
191
|
+
export var GreyProgressBar = Template.bind({});
|
|
192
|
+
GreyProgressBar.args = __assign(__assign({}, Desktop.args), { barColor: "grey" });
|
|
193
|
+
export var WithYear = Template.bind({});
|
|
194
|
+
WithYear.args = __assign(__assign({}, Desktop.args), { showYear: true });
|
|
195
|
+
export var WithoutYear = Template.bind({});
|
|
196
|
+
WithoutYear.args = __assign(__assign({}, Desktop.args), { showYear: false });
|
|
197
|
+
export var ProgressExample = Template.bind({});
|
|
198
|
+
ProgressExample.args = __assign(__assign({}, Desktop.args), { steps: 100, currentStep: 75, barColor: "blue" });
|
|
199
|
+
export var CompletedProgress = Template.bind({});
|
|
200
|
+
CompletedProgress.args = __assign(__assign({}, Desktop.args), { steps: 100, currentStep: 100, barColor: "green" });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CaseCard } from "./CaseCard";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FolderStatus } from "../../atoms/tags/FolderStatusTag";
|
|
3
|
+
import "./caseCardCompact.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
export type CaseCardCompactProps = {
|
|
6
|
+
folderTitle: string;
|
|
7
|
+
folderStatus: FolderStatus;
|
|
8
|
+
clientName: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
category?: string;
|
|
11
|
+
showArrowOnHover?: boolean;
|
|
12
|
+
onClientCardClick?: () => any;
|
|
13
|
+
isSelected?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare function CaseCardCompact({ folderTitle, folderStatus, isLoading, clientName, category, showArrowOnHover, onClientCardClick, isSelected, }: CaseCardCompactProps): React.JSX.Element;
|
|
16
|
+
export default CaseCardCompact;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Paragraph from "../../atoms/typography/Paragraph";
|
|
3
|
+
import SmallTitle from "../../atoms/typography/SmallTitle";
|
|
4
|
+
import FolderStatusTag from "../../atoms/tags/FolderStatusTag";
|
|
5
|
+
import "./caseCardCompact.css";
|
|
6
|
+
import "../../../styles/icons.css";
|
|
7
|
+
import LoadingBox from "../loadingBox/LoadingBox";
|
|
8
|
+
function CaseCardCompact(_a) {
|
|
9
|
+
var folderTitle = _a.folderTitle, folderStatus = _a.folderStatus, isLoading = _a.isLoading, clientName = _a.clientName, category = _a.category, _b = _a.showArrowOnHover, showArrowOnHover = _b === void 0 ? false : _b, onClientCardClick = _a.onClientCardClick, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c;
|
|
10
|
+
return !isLoading ? (React.createElement("div", { className: "case-card-compact ".concat(showArrowOnHover ? "case-card-compact--arrow-on-hover" : "", " ").concat(isSelected ? "case-card-compact--selected" : ""), style: {
|
|
11
|
+
cursor: onClientCardClick || isSelected ? "pointer" : "default",
|
|
12
|
+
}, onClick: onClientCardClick || (isSelected ? function () { } : undefined) },
|
|
13
|
+
React.createElement("div", { className: "case-card-compact-left" },
|
|
14
|
+
React.createElement("span", { className: "title-tag" },
|
|
15
|
+
React.createElement(Paragraph, { variant: "semiBold", text: folderTitle, size: "default", maxLines: 1, color: "noir" }),
|
|
16
|
+
React.createElement(FolderStatusTag, { status: folderStatus })),
|
|
17
|
+
React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: clientName || "" })),
|
|
18
|
+
React.createElement("div", { className: "case-card-compact-right ".concat(!category ? "case-card-compact-right--centered" : "") }, category && (React.createElement("span", { className: "case-card-compact-office-tag" }, category))))) : (React.createElement(LoadingBox, { boxHeight: "91px", boxRadius: "16px", boxWidth: "100%" }));
|
|
19
|
+
}
|
|
20
|
+
export default CaseCardCompact;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { CaseCardCompact as component };
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export const Default: any;
|
|
7
|
+
export const WithoutCategory: any;
|
|
8
|
+
export const WithArrowOnHover: any;
|
|
9
|
+
export const WithoutCategoryAndArrowOnHover: any;
|
|
10
|
+
export const Selected: any;
|
|
11
|
+
import CaseCardCompact from "../caseCardCompact/CaseCardCompact";
|
|
@@ -0,0 +1,59 @@
|
|
|
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 CaseCardCompact from "../caseCardCompact/CaseCardCompact";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Molecules/CaseCardCompact",
|
|
16
|
+
component: CaseCardCompact,
|
|
17
|
+
};
|
|
18
|
+
var Template = function (args) { return React.createElement(CaseCardCompact, __assign({}, args)); };
|
|
19
|
+
export var Default = Template.bind({});
|
|
20
|
+
Default.args = {
|
|
21
|
+
folderTitle: "Dossier John Doe",
|
|
22
|
+
folderStatus: "OPEN",
|
|
23
|
+
clientName: "John DOE",
|
|
24
|
+
category: "Droit des personnes",
|
|
25
|
+
showArrowOnHover: false,
|
|
26
|
+
onClientCardClick: function () { return alert("Client card clicked!"); },
|
|
27
|
+
};
|
|
28
|
+
export var WithoutCategory = Template.bind({});
|
|
29
|
+
WithoutCategory.args = {
|
|
30
|
+
folderTitle: "Dossier Jane Smith",
|
|
31
|
+
folderStatus: "CLOSED",
|
|
32
|
+
clientName: "John DOE",
|
|
33
|
+
showArrowOnHover: false,
|
|
34
|
+
onClientCardClick: function () { return alert("Client card clicked!"); },
|
|
35
|
+
};
|
|
36
|
+
export var WithArrowOnHover = Template.bind({});
|
|
37
|
+
WithArrowOnHover.args = {
|
|
38
|
+
folderTitle: "Dossier Alice Johnson",
|
|
39
|
+
folderStatus: "OPEN",
|
|
40
|
+
clientName: "John DOE",
|
|
41
|
+
category: "Droit des personnes",
|
|
42
|
+
showArrowOnHover: true,
|
|
43
|
+
onClientCardClick: function () { return alert("Client card clicked!"); },
|
|
44
|
+
};
|
|
45
|
+
export var WithoutCategoryAndArrowOnHover = Template.bind({});
|
|
46
|
+
WithoutCategoryAndArrowOnHover.args = {
|
|
47
|
+
folderTitle: "Dossier Bob Wilson",
|
|
48
|
+
folderStatus: "BLOCKED",
|
|
49
|
+
clientName: "John DOE",
|
|
50
|
+
showArrowOnHover: true,
|
|
51
|
+
onClientCardClick: function () { return alert("Client card clicked!"); },
|
|
52
|
+
};
|
|
53
|
+
export var Selected = Template.bind({});
|
|
54
|
+
Selected.args = {
|
|
55
|
+
folderTitle: "Dossier Michael Brown",
|
|
56
|
+
folderStatus: "OPEN",
|
|
57
|
+
clientName: "John DOE",
|
|
58
|
+
isSelected: true,
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CaseCardCompact } from "./CaseCardCompact";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { CaseLinkCard as component };
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export const Default: any;
|
|
7
|
+
export const AddLink: any;
|
|
8
|
+
export const AnotherExample: any;
|
|
9
|
+
import CaseLinkCard from "./CaseLinkCard";
|
|
@@ -0,0 +1,37 @@
|
|
|
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 CaseLinkCard from "./CaseLinkCard";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Molecules/CaseLinkCard",
|
|
16
|
+
component: CaseLinkCard,
|
|
17
|
+
};
|
|
18
|
+
var Template = function (args) { return React.createElement(CaseLinkCard, __assign({}, args)); };
|
|
19
|
+
export var Default = Template.bind({});
|
|
20
|
+
Default.args = {
|
|
21
|
+
proName: "John Doe",
|
|
22
|
+
caseName: "Case #12345",
|
|
23
|
+
createdDate: new Date(2024, 9, 21), // Example date: 21st October 2024
|
|
24
|
+
};
|
|
25
|
+
export var AddLink = Template.bind({});
|
|
26
|
+
AddLink.args = {
|
|
27
|
+
proName: "John Doe",
|
|
28
|
+
canLinkCase: true,
|
|
29
|
+
onCaseCardClick: function () { },
|
|
30
|
+
createdDate: new Date(2024, 9, 21), // Example date: 21st October 2024
|
|
31
|
+
};
|
|
32
|
+
export var AnotherExample = Template.bind({});
|
|
33
|
+
AnotherExample.args = {
|
|
34
|
+
proName: "Jane Smith",
|
|
35
|
+
caseName: "Case #98765",
|
|
36
|
+
createdDate: new Date(2023, 5, 10), // Example date: 10th June 2023
|
|
37
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./CaseLinkCard.css";
|
|
3
|
+
export type CaseLinkCardProps = {
|
|
4
|
+
proName?: string;
|
|
5
|
+
caseName?: string;
|
|
6
|
+
createdDate?: Date;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
canLinkCase?: boolean;
|
|
9
|
+
onCaseCardClick?: () => any;
|
|
10
|
+
onCaseLinkRequest?: () => any;
|
|
11
|
+
};
|
|
12
|
+
declare function CaseLinkCard({ proName, caseName, createdDate, onCaseCardClick, isLoading, canLinkCase, onCaseLinkRequest, }: CaseLinkCardProps): React.JSX.Element;
|
|
13
|
+
export default CaseLinkCard;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./CaseLinkCard.css";
|
|
3
|
+
import { Paragraph, SmallTitle } from "../../atoms/typography";
|
|
4
|
+
import LoadingBox from "../loadingBox/LoadingBox";
|
|
5
|
+
function CaseLinkCard(_a) {
|
|
6
|
+
var proName = _a.proName, caseName = _a.caseName, createdDate = _a.createdDate, onCaseCardClick = _a.onCaseCardClick, _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, _c = _a.canLinkCase, canLinkCase = _c === void 0 ? false : _c, onCaseLinkRequest = _a.onCaseLinkRequest;
|
|
7
|
+
var formatDate = function (date) {
|
|
8
|
+
return date.toLocaleDateString("fr-FR", {
|
|
9
|
+
day: "2-digit",
|
|
10
|
+
month: "2-digit",
|
|
11
|
+
year: "2-digit",
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var formatProName = function (name) {
|
|
15
|
+
return "Ma\u00EEtre ".concat(name).toUpperCase();
|
|
16
|
+
};
|
|
17
|
+
return !isLoading ? (React.createElement(React.Fragment, null, caseName || (!onCaseLinkRequest && !canLinkCase) ? (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement("div", { className: "case-card-link", onClick: function () { return onCaseCardClick && onCaseCardClick(); }, style: { cursor: onCaseCardClick ? "pointer" : "default" } },
|
|
19
|
+
React.createElement("div", { className: "case-card-link-folder-icon" },
|
|
20
|
+
React.createElement("i", { className: "allaw-icon-folder", style: { fontSize: "20px" } })),
|
|
21
|
+
React.createElement("div", { className: "case-card-link-right" },
|
|
22
|
+
React.createElement("div", { className: "case-card-link-right" },
|
|
23
|
+
React.createElement("div", { className: "case-card-link-info-row" },
|
|
24
|
+
React.createElement(SmallTitle, { text: "DOSSIER", variant: "semiBold12", color: "dark-grey" }),
|
|
25
|
+
createdDate && (React.createElement(SmallTitle, { text: "Cr\u00E9\u00E9 le ".concat(formatDate(createdDate)), variant: "semiBold12", color: "dark-grey" }))),
|
|
26
|
+
React.createElement("div", { className: "case-card-link-info-row-bottom" },
|
|
27
|
+
React.createElement("div", { className: "case-card-link-info-col" },
|
|
28
|
+
React.createElement(Paragraph, { variant: "bold", size: "default", text: caseName, maxLines: 1 }),
|
|
29
|
+
proName && (React.createElement(SmallTitle, { variant: "medium12", color: "mid-grey", text: formatProName(proName) }))),
|
|
30
|
+
React.createElement("i", { className: "allaw-icon-arrow-right" }))))))) : (React.createElement("div", { className: "case-card-no-folder-wrapper", onClick: function () { return onCaseLinkRequest && onCaseLinkRequest(); } },
|
|
31
|
+
React.createElement("div", { className: "case-card-no-folder-right" },
|
|
32
|
+
React.createElement(SmallTitle, { text: "AUNCUN DOSSIER LI\u00C9", variant: "semiBold12", color: "dark-grey" }),
|
|
33
|
+
React.createElement(Paragraph, { variant: "bold", size: "default", text: "Ajouter à un dossier", maxLines: 1 })),
|
|
34
|
+
React.createElement("div", { className: "case-card-link-no-folder-icon" },
|
|
35
|
+
React.createElement("i", { className: "allaw-icon-add", style: { fontSize: "18px" } })))))) : (React.createElement(LoadingBox, { boxHeight: "100px", boxRadius: "8px", boxWidth: "100%" }));
|
|
36
|
+
}
|
|
37
|
+
export default CaseLinkCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CaseCardLink } from "./CaseLinkCard";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ParagraphProps } from "../../atoms/typography/Paragraph";
|
|
3
|
+
import "./CheckboxForm.css";
|
|
4
|
+
export interface CheckboxFormProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
onChange?: (checked: boolean) => void;
|
|
8
|
+
color?: ParagraphProps["color"];
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
isRequired?: boolean;
|
|
11
|
+
linkText?: string;
|
|
12
|
+
linkUrl?: string;
|
|
13
|
+
onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
14
|
+
size?: "default" | "small";
|
|
15
|
+
style?: "default" | "light" | "form";
|
|
16
|
+
markType?: "cross" | "check";
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const CheckboxForm: React.FC<CheckboxFormProps>;
|
|
20
|
+
export default CheckboxForm;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Checkbox from "../../atoms/checkboxes/Checkbox";
|
|
3
|
+
import Paragraph from "../../atoms/typography/Paragraph";
|
|
4
|
+
import "./CheckboxForm.css";
|
|
5
|
+
var CheckboxForm = function (_a) {
|
|
6
|
+
var id = _a.id, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, color = _a.color, label = _a.label, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, linkText = _a.linkText, linkUrl = _a.linkUrl, dataTestId = _a.dataTestId, onLinkClick = _a.onLinkClick, _d = _a.size, size = _d === void 0 ? "default" : _d, _e = _a.style, style = _e === void 0 ? "default" : _e, _f = _a.markType, markType = _f === void 0 ? "cross" : _f;
|
|
7
|
+
var checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
|
|
8
|
+
var handleCheckboxChange = function (checked) {
|
|
9
|
+
if (onChange) {
|
|
10
|
+
onChange(checked);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
// Déterminer la couleur à utiliser
|
|
14
|
+
var checkboxColor = style === "light"
|
|
15
|
+
? "light"
|
|
16
|
+
: style === "form"
|
|
17
|
+
? undefined
|
|
18
|
+
: color || "noir";
|
|
19
|
+
var colorClass = checkboxColor ? "checkbox-form-".concat(checkboxColor) : "";
|
|
20
|
+
return (React.createElement("div", { className: "checkbox-form ".concat(colorClass, " ").concat(size === "small" ? "checkbox-form-small" : "") },
|
|
21
|
+
React.createElement(Checkbox, { id: checkboxId, checked: checked, onChange: handleCheckboxChange, color: checkboxColor, size: size, style: style, markType: markType, dataTestId: dataTestId }),
|
|
22
|
+
label && (React.createElement("label", { htmlFor: checkboxId, className: "checkbox-form-label-container" },
|
|
23
|
+
React.createElement(Paragraph, { variant: style === "form" ? "medium" : "semiBold", color: color || (style === "form" ? undefined : "noir"), text: React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement("span", null, label),
|
|
25
|
+
linkText && linkUrl && (React.createElement("a", { href: linkUrl, target: "_blank", rel: "noopener noreferrer", className: "checkbox-form-link", onClick: onLinkClick }, linkText))), size: size }),
|
|
26
|
+
isRequired && (React.createElement("span", { className: "checkbox-form-required" },
|
|
27
|
+
"\u00A0",
|
|
28
|
+
"*"))))));
|
|
29
|
+
};
|
|
30
|
+
export default CheckboxForm;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { CheckboxForm as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace args {
|
|
6
|
+
let label: string;
|
|
7
|
+
}
|
|
8
|
+
export namespace argTypes {
|
|
9
|
+
export namespace checked {
|
|
10
|
+
namespace control {
|
|
11
|
+
let type: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export namespace isRequired {
|
|
15
|
+
export namespace control_1 {
|
|
16
|
+
let type_1: string;
|
|
17
|
+
export { type_1 as type };
|
|
18
|
+
}
|
|
19
|
+
export { control_1 as control };
|
|
20
|
+
}
|
|
21
|
+
export namespace onChange {
|
|
22
|
+
let action: string;
|
|
23
|
+
}
|
|
24
|
+
export namespace label_1 {
|
|
25
|
+
let control_2: string;
|
|
26
|
+
export { control_2 as control };
|
|
27
|
+
}
|
|
28
|
+
export { label_1 as label };
|
|
29
|
+
export namespace color {
|
|
30
|
+
export namespace control_3 {
|
|
31
|
+
let type_2: string;
|
|
32
|
+
export { type_2 as type };
|
|
33
|
+
export let options: string[];
|
|
34
|
+
}
|
|
35
|
+
export { control_3 as control };
|
|
36
|
+
}
|
|
37
|
+
export namespace size {
|
|
38
|
+
export namespace control_4 {
|
|
39
|
+
let type_3: string;
|
|
40
|
+
export { type_3 as type };
|
|
41
|
+
let options_1: string[];
|
|
42
|
+
export { options_1 as options };
|
|
43
|
+
}
|
|
44
|
+
export { control_4 as control };
|
|
45
|
+
}
|
|
46
|
+
export namespace style {
|
|
47
|
+
export namespace control_5 {
|
|
48
|
+
let type_4: string;
|
|
49
|
+
export { type_4 as type };
|
|
50
|
+
let options_2: string[];
|
|
51
|
+
export { options_2 as options };
|
|
52
|
+
}
|
|
53
|
+
export { control_5 as control };
|
|
54
|
+
}
|
|
55
|
+
export namespace markType {
|
|
56
|
+
export namespace control_6 {
|
|
57
|
+
let type_5: string;
|
|
58
|
+
export { type_5 as type };
|
|
59
|
+
let options_3: string[];
|
|
60
|
+
export { options_3 as options };
|
|
61
|
+
}
|
|
62
|
+
export { control_6 as control };
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export namespace parameters {
|
|
66
|
+
namespace backgrounds {
|
|
67
|
+
let _default: string;
|
|
68
|
+
export { _default as default };
|
|
69
|
+
export let values: {
|
|
70
|
+
name: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export default _default;
|
|
77
|
+
export const Default: any;
|
|
78
|
+
export const Checked: any;
|
|
79
|
+
export const CheckMark: any;
|
|
80
|
+
export const CheckedCheckMark: any;
|
|
81
|
+
export const White: any;
|
|
82
|
+
export const WhiteChecked: any;
|
|
83
|
+
export const Required: any;
|
|
84
|
+
export const WithoutLabel: any;
|
|
85
|
+
export const WithLink: any;
|
|
86
|
+
export const Light: any;
|
|
87
|
+
export const LightChecked: any;
|
|
88
|
+
export const LightCheckMark: any;
|
|
89
|
+
export const LightCheckedCheckMark: any;
|
|
90
|
+
export const Form: any;
|
|
91
|
+
export const FormChecked: any;
|
|
92
|
+
export const FormCheckMark: any;
|
|
93
|
+
export const FormCheckedCheckMark: any;
|
|
94
|
+
import CheckboxForm from "./CheckboxForm";
|