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,88 @@
|
|
|
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 IconButton from "./IconButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {
|
|
16
|
+
onClick: { action: "clicked" },
|
|
17
|
+
};
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Atoms/Buttons/IconButton",
|
|
20
|
+
component: IconButton,
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
excludeStories: /.*Data$/,
|
|
23
|
+
args: __assign({}, ActionsData),
|
|
24
|
+
argTypes: {
|
|
25
|
+
style: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select",
|
|
28
|
+
options: [
|
|
29
|
+
"smallFilled",
|
|
30
|
+
"largeFilled",
|
|
31
|
+
"mediumOutline",
|
|
32
|
+
"iconOnly",
|
|
33
|
+
"iconCircle",
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
iconName: {
|
|
38
|
+
control: {
|
|
39
|
+
type: "text",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
onClick: {
|
|
43
|
+
action: "clicked",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
parameters: {
|
|
47
|
+
backgrounds: {
|
|
48
|
+
default: "light",
|
|
49
|
+
values: [
|
|
50
|
+
{ name: "light", value: "#ffffff" },
|
|
51
|
+
{ name: "grey", value: "#728ea7" },
|
|
52
|
+
{ name: "figma", value: "#404040" },
|
|
53
|
+
{ name: "dark", value: "#171e25" },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
var Template = function (args) { return React.createElement(IconButton, __assign({}, args)); };
|
|
59
|
+
export var SmallFilled = Template.bind({});
|
|
60
|
+
SmallFilled.args = {
|
|
61
|
+
style: "smallFilled",
|
|
62
|
+
iconName: "allaw-icon-document",
|
|
63
|
+
onClick: function () { return console.log("SmallFilled button clicked"); },
|
|
64
|
+
};
|
|
65
|
+
export var LargeFilled = Template.bind({});
|
|
66
|
+
LargeFilled.args = {
|
|
67
|
+
style: "largeFilled",
|
|
68
|
+
iconName: "allaw-icon-document",
|
|
69
|
+
onClick: function () { return console.log("LargeFilled button clicked"); },
|
|
70
|
+
};
|
|
71
|
+
export var MediumOutline = Template.bind({});
|
|
72
|
+
MediumOutline.args = {
|
|
73
|
+
style: "mediumOutline",
|
|
74
|
+
iconName: "allaw-icon-calendar",
|
|
75
|
+
onClick: function () { return console.log("MediumOutline button clicked"); },
|
|
76
|
+
};
|
|
77
|
+
export var IconOnly = Template.bind({});
|
|
78
|
+
IconOnly.args = {
|
|
79
|
+
style: "iconOnly",
|
|
80
|
+
iconName: "allaw-icon-user",
|
|
81
|
+
onClick: function () { return console.log("IconOnly button clicked"); },
|
|
82
|
+
};
|
|
83
|
+
export var IconCircle = Template.bind({});
|
|
84
|
+
IconCircle.args = {
|
|
85
|
+
style: "iconCircle",
|
|
86
|
+
iconName: "allaw-icon-arrow-left",
|
|
87
|
+
onClick: function () { return console.log("IconCircle button clicked"); },
|
|
88
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./OAuthProviderButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface OAuthProviderButtonProps {
|
|
5
|
+
provider: "google" | "apple" | "linkedin" | "microsoft";
|
|
6
|
+
type: "login" | "signup" | "calendar";
|
|
7
|
+
url: string;
|
|
8
|
+
size: 14 | 16 | 18 | 20 | 22 | 24;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const OAuthProviderButton: React.FC<OAuthProviderButtonProps>;
|
|
12
|
+
export default OAuthProviderButton;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React, { useState, useEffect, useRef } from "react";
|
|
2
|
+
import "./OAuthProviderButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var OAuthProviderButton = function (_a) {
|
|
5
|
+
var provider = _a.provider, type = _a.type, url = _a.url, size = _a.size, onClick = _a.onClick;
|
|
6
|
+
var _b = useState(""), label = _b[0], setLabel = _b[1];
|
|
7
|
+
var buttonRef = useRef(null);
|
|
8
|
+
var getLabels = function () {
|
|
9
|
+
var labels = {
|
|
10
|
+
login: {
|
|
11
|
+
google: "Se connecter avec Google",
|
|
12
|
+
apple: "Se connecter avec Apple",
|
|
13
|
+
linkedin: "Se connecter avec LinkedIn",
|
|
14
|
+
microsoft: "Se connecter avec Microsoft",
|
|
15
|
+
},
|
|
16
|
+
signup: {
|
|
17
|
+
google: "S'inscrire avec Google",
|
|
18
|
+
apple: "S'inscrire avec Apple",
|
|
19
|
+
linkedin: "S'inscrire avec LinkedIn",
|
|
20
|
+
microsoft: "S'inscrire avec Microsoft",
|
|
21
|
+
},
|
|
22
|
+
calendar: {
|
|
23
|
+
google: "Connecter Google Calendar",
|
|
24
|
+
apple: "Connecter Apple Calendar",
|
|
25
|
+
linkedin: "Connecter LinkedIn",
|
|
26
|
+
microsoft: "Connecter Microsoft Calendar",
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
var shortLabels = {
|
|
30
|
+
google: "Google",
|
|
31
|
+
apple: "Apple",
|
|
32
|
+
linkedin: "LinkedIn",
|
|
33
|
+
microsoft: "Microsoft",
|
|
34
|
+
};
|
|
35
|
+
return { labels: labels, shortLabels: shortLabels };
|
|
36
|
+
};
|
|
37
|
+
var getThresholdWidth = function (size) {
|
|
38
|
+
switch (size) {
|
|
39
|
+
case 14:
|
|
40
|
+
return 210;
|
|
41
|
+
case 16:
|
|
42
|
+
return 220;
|
|
43
|
+
case 18:
|
|
44
|
+
return 230;
|
|
45
|
+
case 20:
|
|
46
|
+
return 240;
|
|
47
|
+
case 22:
|
|
48
|
+
return 260;
|
|
49
|
+
case 24:
|
|
50
|
+
return 290;
|
|
51
|
+
default:
|
|
52
|
+
return 250;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
useEffect(function () {
|
|
56
|
+
updateLabel();
|
|
57
|
+
var timer = setTimeout(function () {
|
|
58
|
+
updateLabel();
|
|
59
|
+
}, 50);
|
|
60
|
+
return function () { return clearTimeout(timer); };
|
|
61
|
+
}, []);
|
|
62
|
+
var updateLabel = function () {
|
|
63
|
+
var _a = getLabels(), labels = _a.labels, shortLabels = _a.shortLabels;
|
|
64
|
+
var thresholdWidth = getThresholdWidth(size);
|
|
65
|
+
if (buttonRef.current) {
|
|
66
|
+
var buttonWidth = buttonRef.current.offsetWidth;
|
|
67
|
+
if (!label) {
|
|
68
|
+
setLabel(labels[type][provider]);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (buttonWidth < thresholdWidth) {
|
|
72
|
+
setLabel(shortLabels[provider]);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
setLabel(labels[type][provider]);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var renderIcon = function () {
|
|
80
|
+
var iconSizes = {
|
|
81
|
+
google: type === "calendar" ? size * 1.1 : size * 0.8,
|
|
82
|
+
apple: size * 1.2,
|
|
83
|
+
linkedin: size * 0.8,
|
|
84
|
+
microsoft: size * 1,
|
|
85
|
+
};
|
|
86
|
+
var baseIconClass = {
|
|
87
|
+
google: "allaw-icon-google",
|
|
88
|
+
apple: "allaw-icon-apple",
|
|
89
|
+
linkedin: "allaw-icon-linkedin",
|
|
90
|
+
microsoft: "allaw-icon-microsoft",
|
|
91
|
+
};
|
|
92
|
+
var calendarIconClass = {
|
|
93
|
+
google: "allaw-icon-google-calendar",
|
|
94
|
+
microsoft: "allaw-icon-microsoft-outlook",
|
|
95
|
+
};
|
|
96
|
+
var iconClass = type === "calendar" && (provider === "google" || provider === "microsoft")
|
|
97
|
+
? calendarIconClass[provider]
|
|
98
|
+
: baseIconClass[provider];
|
|
99
|
+
if (provider === "google") {
|
|
100
|
+
var isCalendar = type === "calendar";
|
|
101
|
+
return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
|
|
102
|
+
React.createElement("span", { className: "path1" }),
|
|
103
|
+
React.createElement("span", { className: "path2" }),
|
|
104
|
+
React.createElement("span", { className: "path3" }),
|
|
105
|
+
React.createElement("span", { className: "path4" }),
|
|
106
|
+
isCalendar && (React.createElement(React.Fragment, null,
|
|
107
|
+
React.createElement("span", { className: "path5" }),
|
|
108
|
+
React.createElement("span", { className: "path6" }),
|
|
109
|
+
React.createElement("span", { className: "path7" }),
|
|
110
|
+
React.createElement("span", { className: "path8" })))));
|
|
111
|
+
}
|
|
112
|
+
else if (provider === "linkedin") {
|
|
113
|
+
var containerSize = size * 1.4;
|
|
114
|
+
return (React.createElement("div", { className: "linkedin-icon-container", style: {
|
|
115
|
+
fontSize: "".concat(iconSizes[provider], "px"),
|
|
116
|
+
width: "".concat(containerSize, "px"),
|
|
117
|
+
height: "".concat(containerSize, "px"),
|
|
118
|
+
minWidth: "".concat(containerSize, "px"),
|
|
119
|
+
minHeight: "".concat(containerSize, "px"),
|
|
120
|
+
} },
|
|
121
|
+
React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } })));
|
|
122
|
+
}
|
|
123
|
+
else if (provider === "microsoft") {
|
|
124
|
+
return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
|
|
125
|
+
React.createElement("span", { className: "path1" }),
|
|
126
|
+
React.createElement("span", { className: "path2" }),
|
|
127
|
+
React.createElement("span", { className: "path3" }),
|
|
128
|
+
React.createElement("span", { className: "path4" })));
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return (React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } }));
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
var handleClick = function () {
|
|
135
|
+
if (onClick) {
|
|
136
|
+
onClick();
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
window.open(url, "_blank");
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var getMaxWidth = function () {
|
|
143
|
+
switch (size) {
|
|
144
|
+
case 14:
|
|
145
|
+
return "200px";
|
|
146
|
+
case 16:
|
|
147
|
+
return "300px";
|
|
148
|
+
case 18:
|
|
149
|
+
return "320px";
|
|
150
|
+
case 20:
|
|
151
|
+
return "370px";
|
|
152
|
+
case 22:
|
|
153
|
+
return "380px";
|
|
154
|
+
case 24:
|
|
155
|
+
return "400px";
|
|
156
|
+
default:
|
|
157
|
+
return "400px";
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
var maxWidth = getMaxWidth();
|
|
161
|
+
return (React.createElement("button", { ref: buttonRef, className: "oauth-provider-button ".concat(provider), onClick: handleClick, style: { height: "".concat(size * 2.55, "px"), maxWidth: maxWidth } },
|
|
162
|
+
renderIcon(),
|
|
163
|
+
React.createElement("span", { className: "label", style: { fontSize: "".concat(size, "px") } }, label)));
|
|
164
|
+
};
|
|
165
|
+
export default OAuthProviderButton;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { OAuthProviderButton as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace argTypes {
|
|
6
|
+
export namespace provider {
|
|
7
|
+
namespace control {
|
|
8
|
+
let type: string;
|
|
9
|
+
let options: string[];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export namespace type_1 {
|
|
13
|
+
export namespace control_1 {
|
|
14
|
+
let type_2: string;
|
|
15
|
+
export { type_2 as type };
|
|
16
|
+
let options_1: string[];
|
|
17
|
+
export { options_1 as options };
|
|
18
|
+
}
|
|
19
|
+
export { control_1 as control };
|
|
20
|
+
}
|
|
21
|
+
export { type_1 as type };
|
|
22
|
+
export namespace url {
|
|
23
|
+
export namespace control_2 {
|
|
24
|
+
let type_3: string;
|
|
25
|
+
export { type_3 as type };
|
|
26
|
+
}
|
|
27
|
+
export { control_2 as control };
|
|
28
|
+
}
|
|
29
|
+
export namespace size {
|
|
30
|
+
export namespace control_3 {
|
|
31
|
+
let type_4: string;
|
|
32
|
+
export { type_4 as type };
|
|
33
|
+
let options_2: number[];
|
|
34
|
+
export { options_2 as options };
|
|
35
|
+
}
|
|
36
|
+
export { control_3 as control };
|
|
37
|
+
}
|
|
38
|
+
export namespace onClick {
|
|
39
|
+
let action: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export default _default;
|
|
44
|
+
export const GoogleLogin: any;
|
|
45
|
+
export const GoogleSignup: any;
|
|
46
|
+
export const AppleLogin: any;
|
|
47
|
+
export const AppleSignup: any;
|
|
48
|
+
export const LinkedinLogin: any;
|
|
49
|
+
export const LinkedinSignup: any;
|
|
50
|
+
export const MicrosoftLogin: any;
|
|
51
|
+
export const MicrosoftSignup: any;
|
|
52
|
+
export const GoogleCalendar: any;
|
|
53
|
+
export const AppleCalendar: any;
|
|
54
|
+
export const LinkedinCalendar: any;
|
|
55
|
+
export const MicrosoftCalendar: any;
|
|
56
|
+
import OAuthProviderButton from "./OAuthProviderButton";
|
|
@@ -0,0 +1,130 @@
|
|
|
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 OAuthProviderButton from "./OAuthProviderButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Buttons/OAuthProviderButton",
|
|
17
|
+
component: OAuthProviderButton,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
provider: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
options: ["google", "apple", "linkedin", "microsoft"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
type: {
|
|
27
|
+
control: {
|
|
28
|
+
type: "select",
|
|
29
|
+
options: ["login", "signup"],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
url: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "text",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
size: {
|
|
38
|
+
control: {
|
|
39
|
+
type: "select",
|
|
40
|
+
options: [14, 16, 18, 20, 22, 24],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
onClick: { action: "clicked" },
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
var Template = function (args) { return React.createElement(OAuthProviderButton, __assign({}, args)); };
|
|
47
|
+
export var GoogleLogin = Template.bind({});
|
|
48
|
+
GoogleLogin.args = {
|
|
49
|
+
provider: "google",
|
|
50
|
+
type: "login",
|
|
51
|
+
url: "https://google.com",
|
|
52
|
+
size: 20,
|
|
53
|
+
};
|
|
54
|
+
export var GoogleSignup = Template.bind({});
|
|
55
|
+
GoogleSignup.args = {
|
|
56
|
+
provider: "google",
|
|
57
|
+
type: "signup",
|
|
58
|
+
url: "https://google.com/signup",
|
|
59
|
+
size: 20,
|
|
60
|
+
};
|
|
61
|
+
export var AppleLogin = Template.bind({});
|
|
62
|
+
AppleLogin.args = {
|
|
63
|
+
provider: "apple",
|
|
64
|
+
type: "login",
|
|
65
|
+
url: "https://apple.com",
|
|
66
|
+
size: 20,
|
|
67
|
+
};
|
|
68
|
+
export var AppleSignup = Template.bind({});
|
|
69
|
+
AppleSignup.args = {
|
|
70
|
+
provider: "apple",
|
|
71
|
+
type: "signup",
|
|
72
|
+
url: "https://apple.com/signup",
|
|
73
|
+
size: 20,
|
|
74
|
+
};
|
|
75
|
+
export var LinkedinLogin = Template.bind({});
|
|
76
|
+
LinkedinLogin.args = {
|
|
77
|
+
provider: "linkedin",
|
|
78
|
+
type: "login",
|
|
79
|
+
url: "https://linkedin.com",
|
|
80
|
+
size: 20,
|
|
81
|
+
};
|
|
82
|
+
export var LinkedinSignup = Template.bind({});
|
|
83
|
+
LinkedinSignup.args = {
|
|
84
|
+
provider: "linkedin",
|
|
85
|
+
type: "signup",
|
|
86
|
+
url: "https://linkedin.com/signup",
|
|
87
|
+
size: 20,
|
|
88
|
+
};
|
|
89
|
+
export var MicrosoftLogin = Template.bind({});
|
|
90
|
+
MicrosoftLogin.args = {
|
|
91
|
+
provider: "microsoft",
|
|
92
|
+
type: "login",
|
|
93
|
+
url: "https://microsoft.com",
|
|
94
|
+
size: 20,
|
|
95
|
+
};
|
|
96
|
+
export var MicrosoftSignup = Template.bind({});
|
|
97
|
+
MicrosoftSignup.args = {
|
|
98
|
+
provider: "microsoft",
|
|
99
|
+
type: "signup",
|
|
100
|
+
url: "https://microsoft.com/signup",
|
|
101
|
+
size: 20,
|
|
102
|
+
};
|
|
103
|
+
export var GoogleCalendar = Template.bind({});
|
|
104
|
+
GoogleCalendar.args = {
|
|
105
|
+
provider: "google",
|
|
106
|
+
type: "calendar",
|
|
107
|
+
url: "https://calendar.google.com/calendar/u/0/r/eventedit",
|
|
108
|
+
size: 20,
|
|
109
|
+
};
|
|
110
|
+
export var AppleCalendar = Template.bind({});
|
|
111
|
+
AppleCalendar.args = {
|
|
112
|
+
provider: "apple",
|
|
113
|
+
type: "calendar",
|
|
114
|
+
url: "https://www.icloud.com/calendar",
|
|
115
|
+
size: 20,
|
|
116
|
+
};
|
|
117
|
+
export var LinkedinCalendar = Template.bind({});
|
|
118
|
+
LinkedinCalendar.args = {
|
|
119
|
+
provider: "linkedin",
|
|
120
|
+
type: "calendar",
|
|
121
|
+
url: "#",
|
|
122
|
+
size: 20,
|
|
123
|
+
};
|
|
124
|
+
export var MicrosoftCalendar = Template.bind({});
|
|
125
|
+
MicrosoftCalendar.args = {
|
|
126
|
+
provider: "microsoft",
|
|
127
|
+
type: "calendar",
|
|
128
|
+
url: "https://outlook.office.com/calendar",
|
|
129
|
+
size: 20,
|
|
130
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "../../../styles/global.css";
|
|
3
|
+
export interface PendingDocumentsProps {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
pendingCount: number;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const PendingDocuments: React.FC<PendingDocumentsProps>;
|
|
9
|
+
export default PendingDocuments;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styles from "./pendingDocuments.module.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var PendingDocuments = function (_a) {
|
|
5
|
+
var icon = _a.icon, pendingCount = _a.pendingCount, onClick = _a.onClick;
|
|
6
|
+
var isPending = pendingCount > 0;
|
|
7
|
+
return (React.createElement("div", { className: "".concat(styles.pending_documents, " ").concat(isPending
|
|
8
|
+
? styles.pending_documents_pending
|
|
9
|
+
: styles.pending_documents_none), onClick: isPending ? onClick : undefined },
|
|
10
|
+
icon && React.createElement("span", { className: styles.pending_documents_icon }, icon),
|
|
11
|
+
React.createElement("span", { className: styles.pending_documents_label }, isPending
|
|
12
|
+
? "".concat(pendingCount, " demandes en attente")
|
|
13
|
+
: "Aucune demande en attente")));
|
|
14
|
+
};
|
|
15
|
+
export default PendingDocuments;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export namespace ActionsData {
|
|
2
|
+
namespace onClick {
|
|
3
|
+
let action: string;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
declare namespace _default {
|
|
7
|
+
export let title: string;
|
|
8
|
+
export { PendingDocuments as component };
|
|
9
|
+
export let tags: string[];
|
|
10
|
+
export let excludeStories: RegExp;
|
|
11
|
+
export namespace args { }
|
|
12
|
+
export namespace argTypes {
|
|
13
|
+
export namespace icon {
|
|
14
|
+
namespace control {
|
|
15
|
+
let type: string;
|
|
16
|
+
}
|
|
17
|
+
namespace mapping {
|
|
18
|
+
let _true: React.JSX.Element;
|
|
19
|
+
export { _true as true };
|
|
20
|
+
let _false: null;
|
|
21
|
+
export { _false as false };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export namespace pendingCount {
|
|
25
|
+
export namespace control_1 {
|
|
26
|
+
let type_1: string;
|
|
27
|
+
export { type_1 as type };
|
|
28
|
+
}
|
|
29
|
+
export { control_1 as control };
|
|
30
|
+
}
|
|
31
|
+
export namespace onClick_1 {
|
|
32
|
+
let action_1: string;
|
|
33
|
+
export { action_1 as action };
|
|
34
|
+
}
|
|
35
|
+
export { onClick_1 as onClick };
|
|
36
|
+
}
|
|
37
|
+
export namespace parameters {
|
|
38
|
+
namespace backgrounds {
|
|
39
|
+
let _default: string;
|
|
40
|
+
export { _default as default };
|
|
41
|
+
export let values: {
|
|
42
|
+
name: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export default _default;
|
|
49
|
+
export const Default: any;
|
|
50
|
+
export const NoPending: any;
|
|
51
|
+
import PendingDocuments from "./PendingDocuments";
|
|
52
|
+
import React from "react";
|
|
@@ -0,0 +1,67 @@
|
|
|
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 PendingDocuments from "./PendingDocuments";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {
|
|
16
|
+
onClick: { action: "clicked" },
|
|
17
|
+
};
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Atoms/Buttons/PendingDocuments",
|
|
20
|
+
component: PendingDocuments,
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
excludeStories: /.*Data$/,
|
|
23
|
+
args: __assign({}, ActionsData),
|
|
24
|
+
argTypes: {
|
|
25
|
+
icon: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "boolean",
|
|
28
|
+
},
|
|
29
|
+
mapping: {
|
|
30
|
+
true: React.createElement("span", { className: "allaw-icon-inbox" }),
|
|
31
|
+
false: null,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
pendingCount: {
|
|
35
|
+
control: {
|
|
36
|
+
type: "number",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
onClick: {
|
|
40
|
+
action: "clicked",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
parameters: {
|
|
44
|
+
backgrounds: {
|
|
45
|
+
default: "light",
|
|
46
|
+
values: [
|
|
47
|
+
{ name: "light", value: "#ffffff" },
|
|
48
|
+
{ name: "grey", value: "#728ea7" },
|
|
49
|
+
{ name: "figma", value: "#404040" },
|
|
50
|
+
{ name: "dark", value: "#171e25" },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
var Template = function (args) { return React.createElement(PendingDocuments, __assign({}, args)); };
|
|
56
|
+
export var Default = Template.bind({});
|
|
57
|
+
Default.args = {
|
|
58
|
+
icon: React.createElement("span", { className: "allaw-icon-inbox" }),
|
|
59
|
+
pendingCount: 5,
|
|
60
|
+
onClick: function () { return console.log("Button clicked!"); },
|
|
61
|
+
};
|
|
62
|
+
export var NoPending = Template.bind({});
|
|
63
|
+
NoPending.args = {
|
|
64
|
+
icon: React.createElement("span", { className: "allaw-icon-inbox" }),
|
|
65
|
+
pendingCount: 0,
|
|
66
|
+
onClick: function () { return console.log("Button clicked!"); },
|
|
67
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes } from "react";
|
|
2
|
+
import "./PrimaryButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface PrimaryButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
startIcon?: React.ReactNode;
|
|
6
|
+
endIcon?: React.ReactNode;
|
|
7
|
+
startIconName?: string;
|
|
8
|
+
endIconName?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onClick?: () => Promise<void> | void;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
type?: "button" | "submit" | "reset";
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
variant?: "default" | "warning";
|
|
16
|
+
size?: "medium" | "large";
|
|
17
|
+
}
|
|
18
|
+
declare const PrimaryButton: React.ForwardRefExoticComponent<PrimaryButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default PrimaryButton;
|