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,177 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import React from "react";
|
|
49
|
+
import SecondaryButton from "./SecondaryButton";
|
|
50
|
+
import "../../../styles/global.css";
|
|
51
|
+
export var ActionsData = {};
|
|
52
|
+
export default {
|
|
53
|
+
title: "Components/Atoms/Buttons/SecondaryButton",
|
|
54
|
+
component: SecondaryButton,
|
|
55
|
+
tags: ["autodocs"],
|
|
56
|
+
excludeStories: /.*Data$/,
|
|
57
|
+
args: __assign(__assign({}, ActionsData), { responsiveLabels: {
|
|
58
|
+
480: "Court",
|
|
59
|
+
768: "Moyen",
|
|
60
|
+
1024: "Label complet",
|
|
61
|
+
1440: "Label complet avec détails",
|
|
62
|
+
} }),
|
|
63
|
+
argTypes: {
|
|
64
|
+
startIcon: {
|
|
65
|
+
control: {
|
|
66
|
+
type: "boolean",
|
|
67
|
+
},
|
|
68
|
+
mapping: {
|
|
69
|
+
true: "allaw-icon-arrow-right",
|
|
70
|
+
false: null,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
endIcon: {
|
|
74
|
+
control: {
|
|
75
|
+
type: "boolean",
|
|
76
|
+
},
|
|
77
|
+
mapping: {
|
|
78
|
+
true: "allaw-icon-arrow-right",
|
|
79
|
+
false: null,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
onClick: { action: "clicked" },
|
|
83
|
+
color: {
|
|
84
|
+
control: {
|
|
85
|
+
type: "select",
|
|
86
|
+
},
|
|
87
|
+
options: [
|
|
88
|
+
"bleu-allaw",
|
|
89
|
+
"mid-grey",
|
|
90
|
+
"dark-grey",
|
|
91
|
+
"noir",
|
|
92
|
+
"pure-white",
|
|
93
|
+
"actions-error",
|
|
94
|
+
"actions-valid",
|
|
95
|
+
],
|
|
96
|
+
defaultValue: "noir",
|
|
97
|
+
},
|
|
98
|
+
size: {
|
|
99
|
+
control: {
|
|
100
|
+
type: "select",
|
|
101
|
+
options: ["medium", "large"],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
responsiveLabels: {
|
|
105
|
+
control: "object",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
parameters: {
|
|
109
|
+
backgrounds: {
|
|
110
|
+
default: "light",
|
|
111
|
+
values: [
|
|
112
|
+
{ name: "light", value: "#ffffff" },
|
|
113
|
+
{ name: "grey", value: "#728ea7" },
|
|
114
|
+
{ name: "dark", value: "#171e25" },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
var Template = function (args) { return React.createElement(SecondaryButton, __assign({}, args)); };
|
|
120
|
+
export var Default = Template.bind({});
|
|
121
|
+
Default.args = {
|
|
122
|
+
label: "Bouton",
|
|
123
|
+
startIcon: true,
|
|
124
|
+
endIcon: true,
|
|
125
|
+
disabled: false,
|
|
126
|
+
mode: "dark",
|
|
127
|
+
fullWidth: false,
|
|
128
|
+
type: "button",
|
|
129
|
+
isLoading: false,
|
|
130
|
+
size: "medium",
|
|
131
|
+
};
|
|
132
|
+
export var WithStartIcon = Template.bind({});
|
|
133
|
+
WithStartIcon.args = __assign(__assign({}, Default.args), { startIcon: true, endIcon: false });
|
|
134
|
+
export var WithEndIcon = Template.bind({});
|
|
135
|
+
WithEndIcon.args = __assign(__assign({}, Default.args), { startIcon: false, endIcon: true });
|
|
136
|
+
export var WithStartAndEndIcons = Template.bind({});
|
|
137
|
+
WithStartAndEndIcons.args = __assign(__assign({}, Default.args), { startIcon: true, endIcon: true });
|
|
138
|
+
export var Disabled = Template.bind({});
|
|
139
|
+
Disabled.args = __assign(__assign({}, Default.args), { disabled: true });
|
|
140
|
+
export var DarkMode = Template.bind({});
|
|
141
|
+
DarkMode.args = __assign(__assign({}, Default.args), { mode: "dark" });
|
|
142
|
+
export var LightMode = Template.bind({});
|
|
143
|
+
LightMode.args = __assign(__assign({}, Default.args), { mode: "light" });
|
|
144
|
+
export var FullWidth = Template.bind({});
|
|
145
|
+
FullWidth.args = __assign(__assign({}, Default.args), { fullWidth: true });
|
|
146
|
+
export var Loading = Template.bind({});
|
|
147
|
+
Loading.args = __assign(__assign({}, Default.args), { isLoading: true });
|
|
148
|
+
export var AsyncClick = Template.bind({});
|
|
149
|
+
AsyncClick.args = __assign(__assign({}, Default.args), { onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
return __generator(this, function (_a) {
|
|
151
|
+
switch (_a.label) {
|
|
152
|
+
case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 2000); })];
|
|
153
|
+
case 1:
|
|
154
|
+
_a.sent();
|
|
155
|
+
return [2 /*return*/];
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}); } });
|
|
159
|
+
export var WithCustomColor = Template.bind({});
|
|
160
|
+
WithCustomColor.args = __assign(__assign({}, Default.args), { color: "bleu-allaw" });
|
|
161
|
+
export var WithErrorColor = Template.bind({});
|
|
162
|
+
WithErrorColor.args = __assign(__assign({}, Default.args), { color: "actions-error" });
|
|
163
|
+
export var WithValidColor = Template.bind({});
|
|
164
|
+
WithValidColor.args = __assign(__assign({}, Default.args), { color: "actions-valid" });
|
|
165
|
+
export var LargeButton = Template.bind({});
|
|
166
|
+
LargeButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton", size: "large" });
|
|
167
|
+
export var LargeButtonWithIcons = Template.bind({});
|
|
168
|
+
LargeButtonWithIcons.args = __assign(__assign({}, Default.args), { label: "Grand Bouton avec Icônes", startIcon: true, endIcon: true, size: "large" });
|
|
169
|
+
export var LargeColoredButton = Template.bind({});
|
|
170
|
+
LargeColoredButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton Coloré", color: "bleu-allaw", size: "large" });
|
|
171
|
+
export var ResponsiveButton = Template.bind({});
|
|
172
|
+
ResponsiveButton.args = __assign(__assign({}, Default.args), { label: "Label par défaut", responsiveLabels: {
|
|
173
|
+
480: "Partager",
|
|
174
|
+
768: "Partager sur",
|
|
175
|
+
1024: "Partager sur LinkedIn",
|
|
176
|
+
1440: "Partager votre avis sur LinkedIn",
|
|
177
|
+
}, color: "bleu-allaw" });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TabNavigation.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export type ResponsiveLabels = Record<number, string>;
|
|
5
|
+
export interface TabNavigationProps {
|
|
6
|
+
tabs: {
|
|
7
|
+
label: string;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
hasNotification: boolean;
|
|
10
|
+
responsiveLabels?: ResponsiveLabels;
|
|
11
|
+
}[];
|
|
12
|
+
onTabClick: (index: number) => void;
|
|
13
|
+
size?: "small" | "normal";
|
|
14
|
+
variant?: "normal" | "round";
|
|
15
|
+
}
|
|
16
|
+
declare const TabNavigation: React.FC<TabNavigationProps>;
|
|
17
|
+
export default TabNavigation;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React, { useRef, useEffect, useState } from "react";
|
|
2
|
+
import "./TabNavigation.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var TabNavigation = function (_a) {
|
|
5
|
+
var tabs = _a.tabs, onTabClick = _a.onTabClick, _b = _a.size, size = _b === void 0 ? "normal" : _b, _c = _a.variant, variant = _c === void 0 ? "normal" : _c;
|
|
6
|
+
var navRef = useRef(null);
|
|
7
|
+
var _d = useState(null), activeTabElement = _d[0], setActiveTabElement = _d[1];
|
|
8
|
+
var _e = useState(tabs.map(function (tab) { return tab.label; })), currentLabels = _e[0], setCurrentLabels = _e[1];
|
|
9
|
+
// Scroll to active tab when it changes
|
|
10
|
+
useEffect(function () {
|
|
11
|
+
if (size === "small" && navRef.current && activeTabElement) {
|
|
12
|
+
var navWidth = navRef.current.offsetWidth;
|
|
13
|
+
var tabOffset = activeTabElement.offsetLeft;
|
|
14
|
+
var tabWidth = activeTabElement.offsetWidth;
|
|
15
|
+
// Center the active tab in the navigation
|
|
16
|
+
navRef.current.scrollLeft = tabOffset - navWidth / 2 + tabWidth / 2;
|
|
17
|
+
}
|
|
18
|
+
}, [activeTabElement, size]);
|
|
19
|
+
// Set active tab element reference
|
|
20
|
+
var setTabRef = function (element, isActive) {
|
|
21
|
+
if (element && isActive) {
|
|
22
|
+
setActiveTabElement(element);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
// Effect for responsive labels
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
// Skip if no tabs have responsive labels
|
|
28
|
+
if (!tabs.some(function (tab) { return tab.responsiveLabels; })) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
var handleResize = function () {
|
|
32
|
+
var width = window.innerWidth;
|
|
33
|
+
var newLabels = tabs.map(function (tab) {
|
|
34
|
+
if (!tab.responsiveLabels) {
|
|
35
|
+
return tab.label;
|
|
36
|
+
}
|
|
37
|
+
var breakpoints = Object.keys(tab.responsiveLabels)
|
|
38
|
+
.map(Number)
|
|
39
|
+
.sort(function (a, b) { return a - b; });
|
|
40
|
+
// Find the appropriate label for the current width
|
|
41
|
+
var selectedLabel = tab.label; // Default to the prop label
|
|
42
|
+
for (var _i = 0, breakpoints_1 = breakpoints; _i < breakpoints_1.length; _i++) {
|
|
43
|
+
var breakpoint = breakpoints_1[_i];
|
|
44
|
+
if (width >= breakpoint) {
|
|
45
|
+
selectedLabel = tab.responsiveLabels[breakpoint];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return selectedLabel;
|
|
52
|
+
});
|
|
53
|
+
setCurrentLabels(newLabels);
|
|
54
|
+
};
|
|
55
|
+
// Initial check
|
|
56
|
+
handleResize();
|
|
57
|
+
// Add event listener
|
|
58
|
+
window.addEventListener("resize", handleResize);
|
|
59
|
+
// Cleanup
|
|
60
|
+
return function () {
|
|
61
|
+
window.removeEventListener("resize", handleResize);
|
|
62
|
+
};
|
|
63
|
+
}, [tabs]);
|
|
64
|
+
return (React.createElement("div", { ref: navRef, className: "tab-navigation ".concat(size, " ").concat(variant === "round" ? "tab-navigation--round" : "") }, tabs.map(function (tab, index) { return (React.createElement("div", { key: index, ref: function (el) { return setTabRef(el, tab.isActive); }, className: "tab-item ".concat(tab.isActive ? "active" : "inactive"), onClick: function () { return onTabClick(index); } },
|
|
65
|
+
React.createElement("span", { className: "tab-label" }, currentLabels[index]),
|
|
66
|
+
tab.hasNotification && React.createElement("span", { className: "tab-notification-dot" }))); })));
|
|
67
|
+
};
|
|
68
|
+
export default TabNavigation;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { TabNavigation as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
namespace tabs {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
namespace size {
|
|
12
|
+
export namespace control_1 {
|
|
13
|
+
let type_1: string;
|
|
14
|
+
export { type_1 as type };
|
|
15
|
+
export let options: string[];
|
|
16
|
+
}
|
|
17
|
+
export { control_1 as control };
|
|
18
|
+
}
|
|
19
|
+
namespace variant {
|
|
20
|
+
export namespace control_2 {
|
|
21
|
+
let type_2: string;
|
|
22
|
+
export { type_2 as type };
|
|
23
|
+
let options_1: string[];
|
|
24
|
+
export { options_1 as options };
|
|
25
|
+
}
|
|
26
|
+
export { control_2 as control };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export namespace parameters {
|
|
30
|
+
namespace backgrounds {
|
|
31
|
+
let _default: string;
|
|
32
|
+
export { _default as default };
|
|
33
|
+
export let values: {
|
|
34
|
+
name: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
namespace viewport {
|
|
39
|
+
namespace viewports {
|
|
40
|
+
namespace mobile {
|
|
41
|
+
let name: string;
|
|
42
|
+
namespace styles {
|
|
43
|
+
let width: string;
|
|
44
|
+
let height: string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
namespace tablet {
|
|
48
|
+
let name_1: string;
|
|
49
|
+
export { name_1 as name };
|
|
50
|
+
export namespace styles_1 {
|
|
51
|
+
let width_1: string;
|
|
52
|
+
export { width_1 as width };
|
|
53
|
+
let height_1: string;
|
|
54
|
+
export { height_1 as height };
|
|
55
|
+
}
|
|
56
|
+
export { styles_1 as styles };
|
|
57
|
+
}
|
|
58
|
+
namespace desktop {
|
|
59
|
+
let name_2: string;
|
|
60
|
+
export { name_2 as name };
|
|
61
|
+
export namespace styles_2 {
|
|
62
|
+
let width_2: string;
|
|
63
|
+
export { width_2 as width };
|
|
64
|
+
let height_2: string;
|
|
65
|
+
export { height_2 as height };
|
|
66
|
+
}
|
|
67
|
+
export { styles_2 as styles };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export default _default;
|
|
74
|
+
export const Default: any;
|
|
75
|
+
export const Small: any;
|
|
76
|
+
export const Round: any;
|
|
77
|
+
export const SmallRound: any;
|
|
78
|
+
export const ManyTabsSmall: any;
|
|
79
|
+
export const ResponsiveLabels: any;
|
|
80
|
+
export const ResponsiveLabelsRound: any;
|
|
81
|
+
import TabNavigation from "./TabNavigation";
|
|
@@ -0,0 +1,178 @@
|
|
|
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 TabNavigation from "./TabNavigation";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Buttons/TabNavigation",
|
|
17
|
+
component: TabNavigation,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
tabs: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "object",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select",
|
|
28
|
+
options: ["small", "normal"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
control: {
|
|
33
|
+
type: "select",
|
|
34
|
+
options: ["normal", "round"],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
parameters: {
|
|
39
|
+
backgrounds: {
|
|
40
|
+
default: "light",
|
|
41
|
+
values: [
|
|
42
|
+
{ name: "light", value: "#ffffff" },
|
|
43
|
+
{ name: "grey", value: "#728ea7" },
|
|
44
|
+
{ name: "figma", value: "#404040" },
|
|
45
|
+
{ name: "dark", value: "#171e25" },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
viewport: {
|
|
49
|
+
viewports: {
|
|
50
|
+
mobile: {
|
|
51
|
+
name: "Mobile",
|
|
52
|
+
styles: {
|
|
53
|
+
width: "375px",
|
|
54
|
+
height: "667px",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
tablet: {
|
|
58
|
+
name: "Tablet",
|
|
59
|
+
styles: {
|
|
60
|
+
width: "768px",
|
|
61
|
+
height: "1024px",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
desktop: {
|
|
65
|
+
name: "Desktop",
|
|
66
|
+
styles: {
|
|
67
|
+
width: "1280px",
|
|
68
|
+
height: "800px",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
var Template = function (args) { return React.createElement(TabNavigation, __assign({}, args)); };
|
|
76
|
+
export var Default = Template.bind({});
|
|
77
|
+
Default.args = {
|
|
78
|
+
tabs: [
|
|
79
|
+
{ label: "Tous", isActive: true, hasNotification: false },
|
|
80
|
+
{ label: "Notes", isActive: false, hasNotification: false },
|
|
81
|
+
{ label: "Documents", isActive: false, hasNotification: true },
|
|
82
|
+
{ label: "Factures", isActive: false, hasNotification: false },
|
|
83
|
+
],
|
|
84
|
+
onTabClick: function (index) { return console.log("Tab ".concat(index, " cliqu\u00E9")); },
|
|
85
|
+
size: "normal",
|
|
86
|
+
variant: "normal",
|
|
87
|
+
};
|
|
88
|
+
export var Small = Template.bind({});
|
|
89
|
+
Small.args = __assign(__assign({}, Default.args), { size: "small" });
|
|
90
|
+
Small.parameters = {
|
|
91
|
+
viewport: {
|
|
92
|
+
defaultViewport: "mobile",
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
export var Round = Template.bind({});
|
|
96
|
+
Round.args = __assign(__assign({}, Default.args), { variant: "round" });
|
|
97
|
+
export var SmallRound = Template.bind({});
|
|
98
|
+
SmallRound.args = __assign(__assign({}, Default.args), { size: "small", variant: "round" });
|
|
99
|
+
SmallRound.parameters = {
|
|
100
|
+
viewport: {
|
|
101
|
+
defaultViewport: "mobile",
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
// Démonstration avec beaucoup d'onglets pour montrer le défilement horizontal
|
|
105
|
+
export var ManyTabsSmall = Template.bind({});
|
|
106
|
+
ManyTabsSmall.args = {
|
|
107
|
+
tabs: [
|
|
108
|
+
{ label: "Tous", isActive: true, hasNotification: false },
|
|
109
|
+
{ label: "Notes", isActive: false, hasNotification: false },
|
|
110
|
+
{ label: "Documents", isActive: false, hasNotification: true },
|
|
111
|
+
{ label: "Factures", isActive: false, hasNotification: false },
|
|
112
|
+
{ label: "Messages", isActive: false, hasNotification: false },
|
|
113
|
+
{ label: "Contrats", isActive: false, hasNotification: false },
|
|
114
|
+
{ label: "Clients", isActive: false, hasNotification: false },
|
|
115
|
+
],
|
|
116
|
+
onTabClick: function (index) { return console.log("Tab ".concat(index, " cliqu\u00E9")); },
|
|
117
|
+
size: "small",
|
|
118
|
+
variant: "normal",
|
|
119
|
+
};
|
|
120
|
+
ManyTabsSmall.parameters = {
|
|
121
|
+
viewport: {
|
|
122
|
+
defaultViewport: "mobile",
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
// Exemple avec des labels responsifs
|
|
126
|
+
export var ResponsiveLabels = Template.bind({});
|
|
127
|
+
ResponsiveLabels.args = {
|
|
128
|
+
tabs: [
|
|
129
|
+
{
|
|
130
|
+
label: "Tous les dossiers",
|
|
131
|
+
isActive: true,
|
|
132
|
+
hasNotification: false,
|
|
133
|
+
responsiveLabels: {
|
|
134
|
+
768: "Tous",
|
|
135
|
+
375: "Ts",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: "Notes importantes",
|
|
140
|
+
isActive: false,
|
|
141
|
+
hasNotification: false,
|
|
142
|
+
responsiveLabels: {
|
|
143
|
+
768: "Notes",
|
|
144
|
+
375: "Nt",
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "Documents clients",
|
|
149
|
+
isActive: false,
|
|
150
|
+
hasNotification: true,
|
|
151
|
+
responsiveLabels: {
|
|
152
|
+
768: "Docs",
|
|
153
|
+
375: "Dc",
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
label: "Factures impayées",
|
|
158
|
+
isActive: false,
|
|
159
|
+
hasNotification: false,
|
|
160
|
+
responsiveLabels: {
|
|
161
|
+
768: "Factures",
|
|
162
|
+
375: "Fct",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
onTabClick: function (index) { return console.log("Tab ".concat(index, " cliqu\u00E9")); },
|
|
167
|
+
size: "normal",
|
|
168
|
+
variant: "normal",
|
|
169
|
+
};
|
|
170
|
+
ResponsiveLabels.parameters = {
|
|
171
|
+
docs: {
|
|
172
|
+
description: {
|
|
173
|
+
story: "Ce composant utilise des labels responsifs qui changent en fonction de la taille de l'écran. Essayez de redimensionner la fenêtre pour voir les changements.",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
export var ResponsiveLabelsRound = Template.bind({});
|
|
178
|
+
ResponsiveLabelsRound.args = __assign(__assign({}, ResponsiveLabels.args), { variant: "round" });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TertiaryButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface TertiaryButtonProps {
|
|
5
|
+
startIcon?: string;
|
|
6
|
+
endIcon?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
variant?: boolean;
|
|
9
|
+
href?: string;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "actions-error" | "actions-valid";
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const TertiaryButton: React.FC<TertiaryButtonProps>;
|
|
15
|
+
export default TertiaryButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import "./TertiaryButton.css";
|
|
4
|
+
import "../../../styles/global.css";
|
|
5
|
+
var TertiaryButton = function (_a) {
|
|
6
|
+
var startIcon = _a.startIcon, endIcon = _a.endIcon, label = _a.label, _b = _a.variant, variant = _b === void 0 ? false : _b, href = _a.href, onClick = _a.onClick, _c = _a.color, color = _c === void 0 ? "noir" : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d;
|
|
7
|
+
var buttonClass = "tertiary-button tertiary-button-".concat(color, " ").concat(variant ? "tertiary-button-variant" : "tertiary-button-default", " ").concat(isDisabled ? "tertiary-button-disabled" : "");
|
|
8
|
+
var handleClick = function (e) {
|
|
9
|
+
if (isDisabled) {
|
|
10
|
+
e.preventDefault();
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
14
|
+
};
|
|
15
|
+
return href ? (React.createElement(Link, { href: href, className: buttonClass, onClick: handleClick },
|
|
16
|
+
startIcon && React.createElement("span", { className: "tertiary-button-icon ".concat(startIcon) }),
|
|
17
|
+
React.createElement("span", { className: "tertiary-button-label" }, label),
|
|
18
|
+
endIcon && React.createElement("span", { className: "tertiary-button-icon ".concat(endIcon) }))) : (React.createElement("button", { type: "button", className: buttonClass, onClick: handleClick, disabled: isDisabled },
|
|
19
|
+
startIcon && React.createElement("span", { className: "tertiary-button-icon ".concat(startIcon) }),
|
|
20
|
+
React.createElement("span", { className: "tertiary-button-label" }, label),
|
|
21
|
+
endIcon && React.createElement("span", { className: "tertiary-button-icon ".concat(endIcon) })));
|
|
22
|
+
};
|
|
23
|
+
export default TertiaryButton;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export namespace ActionsData {
|
|
2
|
+
function onClick(): void;
|
|
3
|
+
}
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export let title: string;
|
|
6
|
+
export { TertiaryButton as component };
|
|
7
|
+
export let tags: string[];
|
|
8
|
+
export let excludeStories: RegExp;
|
|
9
|
+
export namespace args { }
|
|
10
|
+
export namespace argTypes {
|
|
11
|
+
export namespace startIcon {
|
|
12
|
+
namespace control {
|
|
13
|
+
let type: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export namespace endIcon {
|
|
17
|
+
export namespace control_1 {
|
|
18
|
+
let type_1: string;
|
|
19
|
+
export { type_1 as type };
|
|
20
|
+
}
|
|
21
|
+
export { control_1 as control };
|
|
22
|
+
}
|
|
23
|
+
export namespace variant {
|
|
24
|
+
export namespace control_2 {
|
|
25
|
+
let type_2: string;
|
|
26
|
+
export { type_2 as type };
|
|
27
|
+
}
|
|
28
|
+
export { control_2 as control };
|
|
29
|
+
}
|
|
30
|
+
export namespace color {
|
|
31
|
+
export namespace control_3 {
|
|
32
|
+
let type_3: string;
|
|
33
|
+
export { type_3 as type };
|
|
34
|
+
}
|
|
35
|
+
export { control_3 as control };
|
|
36
|
+
export let options: string[];
|
|
37
|
+
}
|
|
38
|
+
export namespace isDisabled {
|
|
39
|
+
export namespace control_4 {
|
|
40
|
+
let type_4: string;
|
|
41
|
+
export { type_4 as type };
|
|
42
|
+
}
|
|
43
|
+
export { control_4 as control };
|
|
44
|
+
}
|
|
45
|
+
export namespace onClick_1 {
|
|
46
|
+
let action: string;
|
|
47
|
+
}
|
|
48
|
+
export { onClick_1 as onClick };
|
|
49
|
+
}
|
|
50
|
+
export namespace parameters {
|
|
51
|
+
namespace backgrounds {
|
|
52
|
+
let _default: string;
|
|
53
|
+
export { _default as default };
|
|
54
|
+
export let values: {
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export default _default;
|
|
62
|
+
export const Default: any;
|
|
63
|
+
export const BlueButton: any;
|
|
64
|
+
export const ErrorButton: any;
|
|
65
|
+
export const Variant: any;
|
|
66
|
+
export const WithEndIcon: any;
|
|
67
|
+
export const WithBothIcons: any;
|
|
68
|
+
export const Disabled: any;
|
|
69
|
+
export const ColoredButton: any;
|
|
70
|
+
import TertiaryButton from "./TertiaryButton";
|