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,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./AppointementStatusTag.css";
|
|
3
|
+
var statusStyles = {
|
|
4
|
+
confirmed: "status-confirmed",
|
|
5
|
+
pending: "status-pending",
|
|
6
|
+
available: "status-available",
|
|
7
|
+
unavailable: "status-unavailable",
|
|
8
|
+
cancelled: "status-cancelled",
|
|
9
|
+
passed: "status-passed",
|
|
10
|
+
refused: "status-refused",
|
|
11
|
+
};
|
|
12
|
+
var statusLabels = {
|
|
13
|
+
confirmed: "CONFIRMÉ",
|
|
14
|
+
pending: "EN ATTENTE",
|
|
15
|
+
available: "DISPONIBLE",
|
|
16
|
+
unavailable: "INDISPONIBLE",
|
|
17
|
+
cancelled: "ANNULÉ",
|
|
18
|
+
passed: "PASSÉ",
|
|
19
|
+
refused: "REFUSÉ",
|
|
20
|
+
};
|
|
21
|
+
var variantLabels = {
|
|
22
|
+
confirmed: "RDV CONFIRMÉ",
|
|
23
|
+
passed: "RDV PASSÉ",
|
|
24
|
+
cancelled: "RDV ANNULÉ",
|
|
25
|
+
};
|
|
26
|
+
var variantStyles = {
|
|
27
|
+
small: "variant-small",
|
|
28
|
+
big: "variant-big",
|
|
29
|
+
default: "variant-default",
|
|
30
|
+
};
|
|
31
|
+
var AppointementStatusTag = function (_a) {
|
|
32
|
+
var status = _a.status, _b = _a.variant, variant = _b === void 0 ? "default" : _b;
|
|
33
|
+
var label = variant === "big" && variantLabels[status]
|
|
34
|
+
? variantLabels[status]
|
|
35
|
+
: statusLabels[status];
|
|
36
|
+
var variantClass = variantStyles[variant];
|
|
37
|
+
var specificStyles = status === "cancelled" && variant === "big"
|
|
38
|
+
? "status-cancelled-big"
|
|
39
|
+
: statusStyles[status];
|
|
40
|
+
return (React.createElement("span", { className: "appointement-status-tag ".concat(variantClass, " ").concat(specificStyles) }, label));
|
|
41
|
+
};
|
|
42
|
+
export default AppointementStatusTag;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { AppointementStatusTag as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
export const Confirmed: any;
|
|
8
|
+
export const Pending: any;
|
|
9
|
+
export const Available: any;
|
|
10
|
+
export const Unavailable: any;
|
|
11
|
+
export const Cancelled: any;
|
|
12
|
+
export const Passed: any;
|
|
13
|
+
export const RefusedStatus: any;
|
|
14
|
+
export const ConfirmedBig: any;
|
|
15
|
+
export const PassedBig: any;
|
|
16
|
+
export const CancelledBigVariant: any;
|
|
17
|
+
import AppointementStatusTag from "./AppointementStatusTag";
|
|
@@ -0,0 +1,70 @@
|
|
|
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 AppointementStatusTag from "./AppointementStatusTag";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Tags/AppointementStatusTag",
|
|
17
|
+
component: AppointementStatusTag,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
};
|
|
20
|
+
var Template = function (args) { return React.createElement(AppointementStatusTag, __assign({}, args)); };
|
|
21
|
+
export var Confirmed = Template.bind({});
|
|
22
|
+
Confirmed.args = {
|
|
23
|
+
status: "confirmed",
|
|
24
|
+
variant: "default",
|
|
25
|
+
};
|
|
26
|
+
export var Pending = Template.bind({});
|
|
27
|
+
Pending.args = {
|
|
28
|
+
status: "pending",
|
|
29
|
+
variant: "default",
|
|
30
|
+
};
|
|
31
|
+
export var Available = Template.bind({});
|
|
32
|
+
Available.args = {
|
|
33
|
+
status: "available",
|
|
34
|
+
variant: "default",
|
|
35
|
+
};
|
|
36
|
+
export var Unavailable = Template.bind({});
|
|
37
|
+
Unavailable.args = {
|
|
38
|
+
status: "unavailable",
|
|
39
|
+
variant: "default",
|
|
40
|
+
};
|
|
41
|
+
export var Cancelled = Template.bind({});
|
|
42
|
+
Cancelled.args = {
|
|
43
|
+
status: "cancelled",
|
|
44
|
+
variant: "default",
|
|
45
|
+
};
|
|
46
|
+
export var Passed = Template.bind({});
|
|
47
|
+
Passed.args = {
|
|
48
|
+
status: "passed",
|
|
49
|
+
variant: "default",
|
|
50
|
+
};
|
|
51
|
+
export var RefusedStatus = Template.bind({});
|
|
52
|
+
RefusedStatus.args = {
|
|
53
|
+
status: "refused",
|
|
54
|
+
variant: "default",
|
|
55
|
+
};
|
|
56
|
+
export var ConfirmedBig = Template.bind({});
|
|
57
|
+
ConfirmedBig.args = {
|
|
58
|
+
status: "confirmed",
|
|
59
|
+
variant: "big",
|
|
60
|
+
};
|
|
61
|
+
export var PassedBig = Template.bind({});
|
|
62
|
+
PassedBig.args = {
|
|
63
|
+
status: "passed",
|
|
64
|
+
variant: "big",
|
|
65
|
+
};
|
|
66
|
+
export var CancelledBigVariant = Template.bind({});
|
|
67
|
+
CancelledBigVariant.args = {
|
|
68
|
+
status: "cancelled",
|
|
69
|
+
variant: "big",
|
|
70
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./FolderStatusTag.css";
|
|
3
|
+
export type FolderStatus = "OPEN" | "CLOSED" | "BLOCKED";
|
|
4
|
+
export interface FolderStatusTagProps {
|
|
5
|
+
status: FolderStatus;
|
|
6
|
+
}
|
|
7
|
+
declare const FolderStatusTag: React.FC<FolderStatusTagProps>;
|
|
8
|
+
export default FolderStatusTag;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./FolderStatusTag.css";
|
|
3
|
+
var FolderStatusTag = function (_a) {
|
|
4
|
+
var status = _a.status;
|
|
5
|
+
var label, color;
|
|
6
|
+
switch (status) {
|
|
7
|
+
case "OPEN":
|
|
8
|
+
label = "DOSSIER OUVERT";
|
|
9
|
+
color = "--Tags-Vert, #29a36a";
|
|
10
|
+
break;
|
|
11
|
+
case "CLOSED":
|
|
12
|
+
label = "DOSSIER CLÔS";
|
|
13
|
+
color = "--dark-grey, #456073";
|
|
14
|
+
break;
|
|
15
|
+
case "BLOCKED":
|
|
16
|
+
label = "DOSSIER BLOQUÉ";
|
|
17
|
+
color = "--actions-error, #e15151";
|
|
18
|
+
break;
|
|
19
|
+
default:
|
|
20
|
+
label = "";
|
|
21
|
+
color = "";
|
|
22
|
+
}
|
|
23
|
+
return (React.createElement("div", { className: "folder-status-tag ".concat(status), style: { color: "var(".concat(color, ")") } }, label));
|
|
24
|
+
};
|
|
25
|
+
export default FolderStatusTag;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { FolderStatusTag as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace status {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export namespace parameters {
|
|
14
|
+
namespace backgrounds {
|
|
15
|
+
let _default: string;
|
|
16
|
+
export { _default as default };
|
|
17
|
+
export let values: {
|
|
18
|
+
name: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export default _default;
|
|
25
|
+
export const Open: any;
|
|
26
|
+
export const Closed: any;
|
|
27
|
+
export const Bloqued: any;
|
|
28
|
+
import FolderStatusTag from "./FolderStatusTag";
|
|
@@ -0,0 +1,51 @@
|
|
|
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 FolderStatusTag from "./FolderStatusTag";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Tags/FolderStatusTag",
|
|
17
|
+
component: FolderStatusTag,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
status: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
options: ["OPEN", "CLOSED", "BLOCKED"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
parameters: {
|
|
28
|
+
backgrounds: {
|
|
29
|
+
default: "light",
|
|
30
|
+
values: [
|
|
31
|
+
{ name: "light", value: "#ffffff" },
|
|
32
|
+
{ name: "grey", value: "#728ea7" },
|
|
33
|
+
{ name: "figma", value: "#404040" },
|
|
34
|
+
{ name: "dark", value: "#171e25" },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
var Template = function (args) { return React.createElement(FolderStatusTag, __assign({}, args)); };
|
|
40
|
+
export var Open = Template.bind({});
|
|
41
|
+
Open.args = {
|
|
42
|
+
status: "OPEN",
|
|
43
|
+
};
|
|
44
|
+
export var Closed = Template.bind({});
|
|
45
|
+
Closed.args = {
|
|
46
|
+
status: "CLOSED",
|
|
47
|
+
};
|
|
48
|
+
export var Bloqued = Template.bind({});
|
|
49
|
+
Bloqued.args = {
|
|
50
|
+
status: "BLOCKED",
|
|
51
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./OtherStatusTag.css";
|
|
3
|
+
export interface OtherStatusTagProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
type?: "readonly" | "editable" | "information";
|
|
6
|
+
startIcon?: boolean;
|
|
7
|
+
startIconName?: string;
|
|
8
|
+
labelLimit?: number;
|
|
9
|
+
style?: "normal" | "compact";
|
|
10
|
+
informationColor?: "blue" | "green" | "red" | "orange";
|
|
11
|
+
}
|
|
12
|
+
declare const OtherStatusTag: React.FC<OtherStatusTagProps>;
|
|
13
|
+
export default OtherStatusTag;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./OtherStatusTag.css";
|
|
3
|
+
var OtherStatusTag = function (_a) {
|
|
4
|
+
var _b = _a.label, label = _b === void 0 ? "Tags" : _b, _c = _a.type, type = _c === void 0 ? "readonly" : _c, _d = _a.startIcon, startIcon = _d === void 0 ? false : _d, _e = _a.startIconName, startIconName = _e === void 0 ? "allaw-icon-pmr" : _e, labelLimit = _a.labelLimit, _f = _a.style, style = _f === void 0 ? "normal" : _f, _g = _a.informationColor, informationColor = _g === void 0 ? "blue" : _g;
|
|
5
|
+
var truncateText = function (text, limit) {
|
|
6
|
+
if (!limit || text.length <= limit)
|
|
7
|
+
return text;
|
|
8
|
+
return "".concat(text.slice(0, limit), "...");
|
|
9
|
+
};
|
|
10
|
+
return (React.createElement("div", { className: "other-status-tag ".concat(type, " ").concat(style, " ").concat(type === "information" ? "information-color-".concat(informationColor) : "") },
|
|
11
|
+
type === "information" && startIcon && (React.createElement("span", { className: "icon ".concat(startIconName) })),
|
|
12
|
+
React.createElement("span", { className: "other-status-tag-label", title: label }, truncateText(label, labelLimit)),
|
|
13
|
+
type === "editable" && React.createElement("span", { className: "icon allaw-icon-close" })));
|
|
14
|
+
};
|
|
15
|
+
export default OtherStatusTag;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { OtherStatusTag as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
export namespace label {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
}
|
|
10
|
+
let description: string;
|
|
11
|
+
}
|
|
12
|
+
export namespace type_1 {
|
|
13
|
+
export namespace control_1 {
|
|
14
|
+
let type_2: string;
|
|
15
|
+
export { type_2 as type };
|
|
16
|
+
export let options: string[];
|
|
17
|
+
}
|
|
18
|
+
export { control_1 as control };
|
|
19
|
+
let description_1: string;
|
|
20
|
+
export { description_1 as description };
|
|
21
|
+
}
|
|
22
|
+
export { type_1 as type };
|
|
23
|
+
export namespace startIcon {
|
|
24
|
+
export namespace control_2 {
|
|
25
|
+
let type_3: string;
|
|
26
|
+
export { type_3 as type };
|
|
27
|
+
}
|
|
28
|
+
export { control_2 as control };
|
|
29
|
+
let description_2: string;
|
|
30
|
+
export { description_2 as description };
|
|
31
|
+
}
|
|
32
|
+
export namespace startIconName {
|
|
33
|
+
export namespace control_3 {
|
|
34
|
+
let type_4: string;
|
|
35
|
+
export { type_4 as type };
|
|
36
|
+
}
|
|
37
|
+
export { control_3 as control };
|
|
38
|
+
let description_3: string;
|
|
39
|
+
export { description_3 as description };
|
|
40
|
+
}
|
|
41
|
+
export namespace labelLimit {
|
|
42
|
+
export namespace control_4 {
|
|
43
|
+
let type_5: string;
|
|
44
|
+
export { type_5 as type };
|
|
45
|
+
}
|
|
46
|
+
export { control_4 as control };
|
|
47
|
+
let description_4: string;
|
|
48
|
+
export { description_4 as description };
|
|
49
|
+
}
|
|
50
|
+
export namespace style {
|
|
51
|
+
export namespace control_5 {
|
|
52
|
+
let type_6: string;
|
|
53
|
+
export { type_6 as type };
|
|
54
|
+
let options_1: string[];
|
|
55
|
+
export { options_1 as options };
|
|
56
|
+
}
|
|
57
|
+
export { control_5 as control };
|
|
58
|
+
let description_5: string;
|
|
59
|
+
export { description_5 as description };
|
|
60
|
+
export let defaultValue: string;
|
|
61
|
+
}
|
|
62
|
+
export namespace informationColor {
|
|
63
|
+
export namespace control_6 {
|
|
64
|
+
let type_7: string;
|
|
65
|
+
export { type_7 as type };
|
|
66
|
+
let options_2: string[];
|
|
67
|
+
export { options_2 as options };
|
|
68
|
+
}
|
|
69
|
+
export { control_6 as control };
|
|
70
|
+
let description_6: string;
|
|
71
|
+
export { description_6 as description };
|
|
72
|
+
let defaultValue_1: string;
|
|
73
|
+
export { defaultValue_1 as defaultValue };
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export namespace parameters {
|
|
77
|
+
namespace backgrounds {
|
|
78
|
+
let _default: string;
|
|
79
|
+
export { _default as default };
|
|
80
|
+
export let values: {
|
|
81
|
+
name: string;
|
|
82
|
+
value: string;
|
|
83
|
+
}[];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export default _default;
|
|
88
|
+
export const ReadOnly: any;
|
|
89
|
+
export const Editable: any;
|
|
90
|
+
export const Information: any;
|
|
91
|
+
export const LongLabel: any;
|
|
92
|
+
export const LongLabelWithoutLimit: any;
|
|
93
|
+
export const ReadOnlyCompact: any;
|
|
94
|
+
export const EditableCompact: any;
|
|
95
|
+
export const InformationCompact: any;
|
|
96
|
+
export const LongLabelCompact: any;
|
|
97
|
+
import OtherStatusTag from "./OtherStatusTag";
|
|
@@ -0,0 +1,151 @@
|
|
|
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 OtherStatusTag from "./OtherStatusTag";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Tags/OtherStatusTag",
|
|
17
|
+
component: OtherStatusTag,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
label: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "text",
|
|
23
|
+
},
|
|
24
|
+
description: "Texte à afficher dans le tag",
|
|
25
|
+
},
|
|
26
|
+
type: {
|
|
27
|
+
control: {
|
|
28
|
+
type: "select",
|
|
29
|
+
options: ["readonly", "editable", "information"],
|
|
30
|
+
},
|
|
31
|
+
description: "Type de tag à afficher",
|
|
32
|
+
},
|
|
33
|
+
startIcon: {
|
|
34
|
+
control: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
},
|
|
37
|
+
description: "Afficher une icône au début",
|
|
38
|
+
},
|
|
39
|
+
startIconName: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "text",
|
|
42
|
+
},
|
|
43
|
+
description: "Nom de l'icône à afficher",
|
|
44
|
+
},
|
|
45
|
+
labelLimit: {
|
|
46
|
+
control: {
|
|
47
|
+
type: "number",
|
|
48
|
+
},
|
|
49
|
+
description: "Nombre maximum de caractères avant troncature",
|
|
50
|
+
},
|
|
51
|
+
style: {
|
|
52
|
+
control: {
|
|
53
|
+
type: "select",
|
|
54
|
+
options: ["normal", "compact"],
|
|
55
|
+
},
|
|
56
|
+
description: "Style du tag (normal ou compact)",
|
|
57
|
+
defaultValue: "normal",
|
|
58
|
+
},
|
|
59
|
+
informationColor: {
|
|
60
|
+
control: {
|
|
61
|
+
type: "select",
|
|
62
|
+
options: ["blue", "green", "red", "orange"],
|
|
63
|
+
},
|
|
64
|
+
description: "Couleur du tag d'information",
|
|
65
|
+
defaultValue: "blue",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
parameters: {
|
|
69
|
+
backgrounds: {
|
|
70
|
+
default: "light",
|
|
71
|
+
values: [
|
|
72
|
+
{ name: "light", value: "#ffffff" },
|
|
73
|
+
{ name: "grey", value: "#728ea7" },
|
|
74
|
+
{ name: "figma", value: "#404040" },
|
|
75
|
+
{ name: "dark", value: "#171e25" },
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
var Template = function (args) { return React.createElement(OtherStatusTag, __assign({}, args)); };
|
|
81
|
+
export var ReadOnly = Template.bind({});
|
|
82
|
+
ReadOnly.args = {
|
|
83
|
+
label: "Tags",
|
|
84
|
+
type: "readonly",
|
|
85
|
+
startIcon: false,
|
|
86
|
+
startIconName: "allaw-icon-pmr",
|
|
87
|
+
};
|
|
88
|
+
export var Editable = Template.bind({});
|
|
89
|
+
Editable.args = {
|
|
90
|
+
label: "Tags",
|
|
91
|
+
type: "editable",
|
|
92
|
+
startIcon: false,
|
|
93
|
+
startIconName: "allaw-icon-pmr",
|
|
94
|
+
};
|
|
95
|
+
export var Information = Template.bind({});
|
|
96
|
+
Information.args = {
|
|
97
|
+
label: "Informations",
|
|
98
|
+
type: "information",
|
|
99
|
+
startIcon: true,
|
|
100
|
+
startIconName: "allaw-icon-pmr",
|
|
101
|
+
informationColor: "blue",
|
|
102
|
+
};
|
|
103
|
+
export var LongLabel = Template.bind({});
|
|
104
|
+
LongLabel.args = {
|
|
105
|
+
label: "Un très long label qui sera tronqué automatiquement",
|
|
106
|
+
type: "readonly",
|
|
107
|
+
labelLimit: 20,
|
|
108
|
+
};
|
|
109
|
+
export var LongLabelWithoutLimit = Template.bind({});
|
|
110
|
+
LongLabelWithoutLimit.args = {
|
|
111
|
+
label: "Un très long label qui ne sera pas tronqué",
|
|
112
|
+
type: "readonly",
|
|
113
|
+
};
|
|
114
|
+
// Documentation supplémentaire
|
|
115
|
+
LongLabel.parameters = {
|
|
116
|
+
docs: {
|
|
117
|
+
description: {
|
|
118
|
+
story: "Exemple avec un label long et une limite de caractères",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
LongLabelWithoutLimit.parameters = {
|
|
123
|
+
docs: {
|
|
124
|
+
description: {
|
|
125
|
+
story: "Exemple avec un label long sans limite de caractères",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
export var ReadOnlyCompact = Template.bind({});
|
|
130
|
+
ReadOnlyCompact.args = __assign(__assign({}, ReadOnly.args), { style: "compact" });
|
|
131
|
+
export var EditableCompact = Template.bind({});
|
|
132
|
+
EditableCompact.args = __assign(__assign({}, Editable.args), { style: "compact" });
|
|
133
|
+
export var InformationCompact = Template.bind({});
|
|
134
|
+
InformationCompact.args = __assign(__assign({}, Information.args), { style: "compact" });
|
|
135
|
+
export var LongLabelCompact = Template.bind({});
|
|
136
|
+
LongLabelCompact.args = __assign(__assign({}, LongLabel.args), { style: "compact" });
|
|
137
|
+
// Documentation pour les variantes compactes
|
|
138
|
+
ReadOnlyCompact.parameters = {
|
|
139
|
+
docs: {
|
|
140
|
+
description: {
|
|
141
|
+
story: "Version compacte du tag en lecture seule",
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
EditableCompact.parameters = {
|
|
146
|
+
docs: {
|
|
147
|
+
description: {
|
|
148
|
+
story: "Version compacte du tag éditable",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as AppointementStatusTag } from "./AppointementStatusTag";
|
|
2
|
+
export { default as FolderStatusTag } from "./FolderStatusTag";
|
|
3
|
+
export { default as OtherStatusTag } from "./OtherStatusTag";
|
|
4
|
+
export type { AppointementStatusTagProps } from "./AppointementStatusTag";
|
|
5
|
+
export type { FolderStatusTagProps } from "./FolderStatusTag";
|
|
6
|
+
export type { OtherStatusTagProps } from "./OtherStatusTag";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./cardDate.css";
|
|
3
|
+
interface CardDateProps {
|
|
4
|
+
date: string;
|
|
5
|
+
showYear?: boolean;
|
|
6
|
+
variant?: "horizontal" | "hybride" | "vertical";
|
|
7
|
+
label?: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const CardDate: React.FC<CardDateProps>;
|
|
11
|
+
export default CardDate;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./cardDate.css";
|
|
3
|
+
var DAYS_FR = ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."];
|
|
4
|
+
var MONTHS_FR = [
|
|
5
|
+
"jan.",
|
|
6
|
+
"fév.",
|
|
7
|
+
"mar",
|
|
8
|
+
"avr.",
|
|
9
|
+
"mai",
|
|
10
|
+
"juin",
|
|
11
|
+
"juil.",
|
|
12
|
+
"aoû",
|
|
13
|
+
"sep.",
|
|
14
|
+
"oct.",
|
|
15
|
+
"nov.",
|
|
16
|
+
"déc.",
|
|
17
|
+
];
|
|
18
|
+
var CardDate = function (_a) {
|
|
19
|
+
var date = _a.date, _b = _a.showYear, showYear = _b === void 0 ? true : _b, _c = _a.variant, variant = _c === void 0 ? "hybride" : _c, label = _a.label, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d;
|
|
20
|
+
var parseDate = function (dateString) {
|
|
21
|
+
var d = new Date(dateString);
|
|
22
|
+
return {
|
|
23
|
+
weekDay: DAYS_FR[d.getDay()],
|
|
24
|
+
day: d.getDate(),
|
|
25
|
+
month: MONTHS_FR[d.getMonth()],
|
|
26
|
+
yearFull: d.getFullYear(),
|
|
27
|
+
yearShort: d.getFullYear().toString().slice(-2),
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
var _e = parseDate(date), weekDay = _e.weekDay, day = _e.day, month = _e.month, yearFull = _e.yearFull, yearShort = _e.yearShort;
|
|
31
|
+
return (React.createElement(React.Fragment, null, variant === "horizontal" ? (React.createElement("div", { className: "card-date" },
|
|
32
|
+
label && React.createElement("span", { className: "card-date-horizontal-label" }, label),
|
|
33
|
+
React.createElement("span", { className: "card-date-horizontal ".concat(isDisabled ? "disabled" : "", " ") },
|
|
34
|
+
day,
|
|
35
|
+
" ",
|
|
36
|
+
month,
|
|
37
|
+
" ",
|
|
38
|
+
showYear ? yearShort : ""))) : variant === "vertical" ? (React.createElement("div", { className: "card-date" },
|
|
39
|
+
label && React.createElement("span", { className: "card-date-vertical-label" }, label),
|
|
40
|
+
React.createElement("span", { className: "card-date-vertical-weekday ".concat(isDisabled ? "disabled" : "") }, weekDay),
|
|
41
|
+
React.createElement("span", { className: "card-date-vertical-day ".concat(isDisabled ? "disabled" : "") }, day),
|
|
42
|
+
React.createElement("span", { className: "card-date-vertical-month ".concat(isDisabled ? "disabled" : "") }, month),
|
|
43
|
+
showYear && (React.createElement("span", { className: "card-date-vertical-year" }, yearFull)))) : (React.createElement("div", { className: "card-date" },
|
|
44
|
+
label && React.createElement("span", { className: "card-date-hybride-label" }, label),
|
|
45
|
+
React.createElement("span", { className: "card-date-vertical-day-line" },
|
|
46
|
+
React.createElement("span", { className: "card-date-hybride-day ".concat(isDisabled ? "disabled" : "") },
|
|
47
|
+
day,
|
|
48
|
+
" "),
|
|
49
|
+
React.createElement("span", { className: "card-date-hybride-month ".concat(isDisabled ? "disabled" : "") }, month)),
|
|
50
|
+
showYear && (React.createElement("span", { className: "card-date-hybride-year" }, yearFull))))));
|
|
51
|
+
};
|
|
52
|
+
export default CardDate;
|