allaw-ui 3.4.3 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
- package/dist/app/[job]/[profile]/page.d.ts +0 -0
- package/dist/app/[job]/[profile]/page.js +0 -0
- package/dist/components/atoms/buttons/ActionButton.d.ts +18 -0
- package/dist/components/atoms/buttons/ActionButton.js +116 -0
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +108 -0
- package/dist/components/atoms/buttons/ActionButton.stories.js +167 -0
- package/dist/components/atoms/buttons/ActionCircleButton.d.ts +9 -0
- package/dist/components/atoms/buttons/ActionCircleButton.js +23 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
- package/dist/components/atoms/buttons/AgendaSlot.d.ts +10 -0
- package/dist/components/atoms/buttons/AgendaSlot.js +7 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
- package/dist/components/atoms/buttons/FavoriteToggle.d.ts +8 -0
- package/dist/components/atoms/buttons/FavoriteToggle.js +11 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
- package/dist/components/atoms/buttons/FilterButton.d.ts +9 -0
- package/dist/components/atoms/buttons/FilterButton.js +9 -0
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
- package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +9 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.js +46 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
- package/dist/components/atoms/buttons/GhostButton.d.ts +14 -0
- package/dist/components/atoms/buttons/GhostButton.js +11 -0
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
- package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
- package/dist/components/atoms/buttons/IconButton.d.ts +11 -0
- package/dist/components/atoms/buttons/IconButton.js +14 -0
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +49 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +88 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.js +165 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
- package/dist/components/atoms/buttons/PendingDocuments.d.ts +9 -0
- package/dist/components/atoms/buttons/PendingDocuments.js +15 -0
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
- package/dist/components/atoms/buttons/PrimaryButton.d.ts +19 -0
- package/dist/components/atoms/buttons/PrimaryButton.js +117 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +108 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +168 -0
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +22 -0
- package/dist/components/atoms/buttons/SecondaryButton.js +151 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +97 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +177 -0
- package/dist/components/atoms/buttons/TabNavigation.d.ts +17 -0
- package/dist/components/atoms/buttons/TabNavigation.js +68 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +81 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.js +178 -0
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +15 -0
- package/dist/components/atoms/buttons/TertiaryButton.js +23 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +70 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +128 -0
- package/dist/components/atoms/buttons/index.d.ts +24 -0
- package/dist/components/atoms/buttons/index.js +12 -0
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +15 -0
- package/dist/components/atoms/checkboxes/Checkbox.js +20 -0
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
- package/dist/components/atoms/checkboxes/index.d.ts +2 -0
- package/dist/components/atoms/checkboxes/index.js +1 -0
- package/dist/components/atoms/datepickers/Datepicker.d.ts +15 -0
- package/dist/components/atoms/datepickers/Datepicker.js +151 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
- package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
- package/dist/components/atoms/datepickers/index.d.ts +2 -0
- package/dist/components/atoms/datepickers/index.js +1 -0
- package/dist/components/atoms/featureCard/featureCard.d.ts +15 -0
- package/dist/components/atoms/featureCard/featureCard.js +16 -0
- package/dist/components/atoms/featureCard/featureCard.stories.d.ts +21 -0
- package/dist/components/atoms/featureCard/featureCard.stories.js +101 -0
- package/dist/components/atoms/featureCard/index.d.ts +2 -0
- package/dist/components/atoms/featureCard/index.js +1 -0
- package/dist/components/atoms/filter/Filter.d.ts +17 -0
- package/dist/components/atoms/filter/Filter.js +70 -0
- package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
- package/dist/components/atoms/filter/Filter.stories.js +77 -0
- package/dist/components/atoms/filter/index.d.ts +2 -0
- package/dist/components/atoms/filter/index.js +1 -0
- package/dist/components/atoms/filters/SingleFilter.d.ts +16 -0
- package/dist/components/atoms/filters/SingleFilter.js +99 -0
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
- package/dist/components/atoms/filters/SingleFilter.stories.js +33 -0
- package/dist/components/atoms/filters/index.d.ts +2 -0
- package/dist/components/atoms/filters/index.js +1 -0
- package/dist/components/atoms/inputs/Input.d.ts +29 -0
- package/dist/components/atoms/inputs/Input.js +94 -0
- package/dist/components/atoms/inputs/Input.stories.d.ts +63 -0
- package/dist/components/atoms/inputs/Input.stories.js +110 -0
- package/dist/components/atoms/inputs/SearchBar.d.ts +12 -0
- package/dist/components/atoms/inputs/SearchBar.js +20 -0
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
- package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
- package/dist/components/atoms/inputs/TextArea.d.ts +25 -0
- package/dist/components/atoms/inputs/TextArea.js +77 -0
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +95 -0
- package/dist/components/atoms/inputs/TextArea.stories.js +141 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.d.ts +14 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.js +155 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +81 -0
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +89 -0
- package/dist/components/atoms/inputs/index.d.ts +8 -0
- package/dist/components/atoms/inputs/index.js +4 -0
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
- package/dist/components/atoms/progressBars/ProgressBar.js +26 -0
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
- package/dist/components/atoms/progressBars/index.d.ts +2 -0
- package/dist/components/atoms/progressBars/index.js +1 -0
- package/dist/components/atoms/radios/RadioButton.d.ts +12 -0
- package/dist/components/atoms/radios/RadioButton.js +10 -0
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
- package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
- package/dist/components/atoms/radios/SelectCard.d.ts +24 -0
- package/dist/components/atoms/radios/SelectCard.js +100 -0
- package/dist/components/atoms/radios/SelectCard.stories.d.ts +92 -0
- package/dist/components/atoms/radios/SelectCard.stories.js +192 -0
- package/dist/components/atoms/radios/index.d.ts +4 -0
- package/dist/components/atoms/radios/index.js +2 -0
- package/dist/components/atoms/selects/ComboBox.d.ts +28 -0
- package/dist/components/atoms/selects/ComboBox.js +172 -0
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +116 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +136 -0
- package/dist/components/atoms/selects/Select.d.ts +25 -0
- package/dist/components/atoms/selects/Select.js +240 -0
- package/dist/components/atoms/selects/Select.stories.d.ts +95 -0
- package/dist/components/atoms/selects/Select.stories.js +161 -0
- package/dist/components/atoms/selects/SelectableListItem.d.ts +14 -0
- package/dist/components/atoms/selects/SelectableListItem.js +19 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
- package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
- package/dist/components/atoms/selects/index.d.ts +6 -0
- package/dist/components/atoms/selects/index.js +3 -0
- package/dist/components/atoms/tags/AppointementStatusTag.d.ts +8 -0
- package/dist/components/atoms/tags/AppointementStatusTag.js +42 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
- package/dist/components/atoms/tags/FolderStatusTag.d.ts +8 -0
- package/dist/components/atoms/tags/FolderStatusTag.js +25 -0
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +13 -0
- package/dist/components/atoms/tags/OtherStatusTag.js +15 -0
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
- package/dist/components/atoms/tags/index.d.ts +6 -0
- package/dist/components/atoms/tags/index.js +3 -0
- package/dist/components/atoms/typography/CardDate.d.ts +11 -0
- package/dist/components/atoms/typography/CardDate.js +52 -0
- package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
- package/dist/components/atoms/typography/CardDate.stories.js +103 -0
- package/dist/components/atoms/typography/Heading.d.ts +16 -0
- package/dist/components/atoms/typography/Heading.js +39 -0
- package/dist/components/atoms/typography/Heading.stories.d.ts +79 -0
- package/dist/components/atoms/typography/Heading.stories.js +150 -0
- package/dist/components/atoms/typography/Link.d.ts +15 -0
- package/dist/components/atoms/typography/Link.js +35 -0
- package/dist/components/atoms/typography/Link.stories.d.ts +72 -0
- package/dist/components/atoms/typography/Link.stories.js +164 -0
- package/dist/components/atoms/typography/Paragraph.d.ts +14 -0
- package/dist/components/atoms/typography/Paragraph.js +33 -0
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
- package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
- package/dist/components/atoms/typography/SmallTitle.d.ts +9 -0
- package/dist/components/atoms/typography/SmallTitle.js +7 -0
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
- package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
- package/dist/components/atoms/typography/Subtitle.d.ts +9 -0
- package/dist/components/atoms/typography/Subtitle.js +7 -0
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
- package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
- package/dist/components/atoms/typography/TinyInfo.d.ts +14 -0
- package/dist/components/atoms/typography/TinyInfo.js +18 -0
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +58 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +117 -0
- package/dist/components/atoms/typography/index.d.ts +12 -0
- package/dist/components/atoms/typography/index.js +6 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
- package/dist/components/atoms/uiVariables/BorderRadius.d.ts +6 -0
- package/dist/components/atoms/uiVariables/BorderRadius.js +12 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Shadows.d.ts +6 -0
- package/dist/components/atoms/uiVariables/Shadows.js +11 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
- package/dist/components/atoms/uiVariables/Strokes.d.ts +6 -0
- package/dist/components/atoms/uiVariables/Strokes.js +10 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
- package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
- package/dist/components/atoms/uiVariables/index.d.ts +3 -0
- package/dist/components/atoms/uiVariables/index.js +3 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +26 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
- package/dist/components/molecules/appointmentSlot/index.d.ts +2 -0
- package/dist/components/molecules/appointmentSlot/index.js +1 -0
- package/dist/components/molecules/banner/Banner.d.ts +20 -0
- package/dist/components/molecules/banner/Banner.js +28 -0
- package/dist/components/molecules/banner/Banner.stories.d.ts +31 -0
- package/dist/components/molecules/banner/Banner.stories.js +123 -0
- package/dist/components/molecules/banner/index.d.ts +2 -0
- package/dist/components/molecules/banner/index.js +1 -0
- package/dist/components/molecules/billingCount/BillingCount.d.ts +11 -0
- package/dist/components/molecules/billingCount/BillingCount.js +169 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +22 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.js +49 -0
- package/dist/components/molecules/billingCount/index.d.ts +2 -0
- package/dist/components/molecules/billingCount/index.js +1 -0
- package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
- package/dist/components/molecules/blogCard/BlogCard.js +32 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
- package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
- package/dist/components/molecules/blogCard/index.d.ts +2 -0
- package/dist/components/molecules/blogCard/index.js +1 -0
- package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
- package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
- package/dist/components/molecules/blogFooter/index.d.ts +2 -0
- package/dist/components/molecules/blogFooter/index.js +1 -0
- package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
- package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
- package/dist/components/molecules/blogHeader/index.d.ts +2 -0
- package/dist/components/molecules/blogHeader/index.js +1 -0
- package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
- package/dist/components/molecules/blogText/BlogText.js +11 -0
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
- package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
- package/dist/components/molecules/blogText/index.d.ts +2 -0
- package/dist/components/molecules/blogText/index.js +1 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
- package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
- package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
- package/dist/components/molecules/brands/Brands.d.ts +9 -0
- package/dist/components/molecules/brands/Brands.js +13 -0
- package/dist/components/molecules/brands/Brands.stories.d.ts +8 -0
- package/dist/components/molecules/brands/Brands.stories.js +66 -0
- package/dist/components/molecules/brands/index.d.ts +2 -0
- package/dist/components/molecules/brands/index.js +1 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.js +12 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
- package/dist/components/molecules/breadcrumb/index.d.ts +2 -0
- package/dist/components/molecules/breadcrumb/index.js +1 -0
- package/dist/components/molecules/caseCard/CaseCard.d.ts +23 -0
- package/dist/components/molecules/caseCard/CaseCard.js +19 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
- package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
- package/dist/components/molecules/caseCard/index.d.ts +2 -0
- package/dist/components/molecules/caseCard/index.js +1 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +16 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +20 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
- package/dist/components/molecules/caseCardCompact/index.d.ts +2 -0
- package/dist/components/molecules/caseCardCompact/index.js +1 -0
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +13 -0
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +37 -0
- package/dist/components/molecules/caseLinkCard/index.d.ts +2 -0
- package/dist/components/molecules/caseLinkCard/index.js +1 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +20 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +30 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +94 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +157 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.d.ts +20 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.js +81 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +108 -0
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +141 -0
- package/dist/components/molecules/checkboxForm/index.d.ts +4 -0
- package/dist/components/molecules/checkboxForm/index.js +2 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +15 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +18 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
- package/dist/components/molecules/clientLinkCard/index.d.ts +2 -0
- package/dist/components/molecules/clientLinkCard/index.js +1 -0
- package/dist/components/molecules/contactCard/ContactCard.d.ts +16 -0
- package/dist/components/molecules/contactCard/ContactCard.js +31 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +68 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +80 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.d.ts +18 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.js +61 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
- package/dist/components/molecules/contactCard/index.d.ts +4 -0
- package/dist/components/molecules/contactCard/index.js +2 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +16 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.js +13 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
- package/dist/components/molecules/datepickerForm/index.d.ts +2 -0
- package/dist/components/molecules/datepickerForm/index.js +1 -0
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +16 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +124 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
- package/dist/components/molecules/documentCard/index.d.ts +2 -0
- package/dist/components/molecules/documentCard/index.js +1 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
- package/dist/components/molecules/employeeCard/index.d.ts +2 -0
- package/dist/components/molecules/employeeCard/index.js +1 -0
- package/dist/components/molecules/entityAdminCard/EntityAdminCard.d.ts +13 -0
- package/dist/components/molecules/entityAdminCard/EntityAdminCard.js +34 -0
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +8 -0
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +34 -0
- package/dist/components/molecules/entityCard/EntityCard.d.ts +12 -0
- package/dist/components/molecules/entityCard/EntityCard.js +53 -0
- package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +7 -0
- package/dist/components/molecules/entityCard/EntityCard.stories.js +30 -0
- package/dist/components/molecules/entityCard/index.d.ts +2 -0
- package/dist/components/molecules/entityCard/index.js +1 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.d.ts +8 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.js +27 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +7 -0
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +97 -0
- package/dist/components/molecules/featureGrid/index.d.ts +2 -0
- package/dist/components/molecules/featureGrid/index.js +1 -0
- package/dist/components/molecules/fileUploader/FileUploader.d.ts +41 -0
- package/dist/components/molecules/fileUploader/FileUploader.js +346 -0
- package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +107 -0
- package/dist/components/molecules/fileUploader/FileUploader.stories.js +232 -0
- package/dist/components/molecules/fileUploader/ImageCropperModal.d.ts +15 -0
- package/dist/components/molecules/fileUploader/ImageCropperModal.js +212 -0
- package/dist/components/molecules/fileUploader/index.d.ts +2 -0
- package/dist/components/molecules/fileUploader/index.js +1 -0
- package/dist/components/molecules/flexContent/FlexContent.d.ts +18 -0
- package/dist/components/molecules/flexContent/FlexContent.js +21 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +9 -0
- package/dist/components/molecules/flexContent/FlexContent.stories.js +47 -0
- package/dist/components/molecules/flexContent/index.d.ts +2 -0
- package/dist/components/molecules/flexContent/index.js +1 -0
- package/dist/components/molecules/frameCTA/FrameCTA.d.ts +19 -0
- package/dist/components/molecules/frameCTA/FrameCTA.js +18 -0
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +8 -0
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +58 -0
- package/dist/components/molecules/frameCTA/index.d.ts +2 -0
- package/dist/components/molecules/frameCTA/index.js +1 -0
- package/dist/components/molecules/heroSection/HeroSection.d.ts +21 -0
- package/dist/components/molecules/heroSection/HeroSection.js +20 -0
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +46 -0
- package/dist/components/molecules/heroSection/HeroSection.stories.js +100 -0
- package/dist/components/molecules/heroSection/index.d.ts +2 -0
- package/dist/components/molecules/heroSection/index.js +1 -0
- package/dist/components/molecules/loadingBox/LoadingBox.d.ts +12 -0
- package/dist/components/molecules/loadingBox/LoadingBox.js +11 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
- package/dist/components/molecules/loadingBox/index.d.ts +2 -0
- package/dist/components/molecules/loadingBox/index.js +1 -0
- package/dist/components/molecules/modal/Modal.d.ts +32 -0
- package/dist/components/molecules/modal/Modal.js +97 -0
- package/dist/components/molecules/modal/Modal.stories.d.ts +87 -0
- package/dist/components/molecules/modal/Modal.stories.js +126 -0
- package/dist/components/molecules/modal/index.d.ts +2 -0
- package/dist/components/molecules/modal/index.js +1 -0
- package/dist/components/molecules/pagination/Pagination.d.ts +10 -0
- package/dist/components/molecules/pagination/Pagination.js +64 -0
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
- package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
- package/dist/components/molecules/pagination/index.d.ts +2 -0
- package/dist/components/molecules/pagination/index.js +1 -0
- package/dist/components/molecules/proCard/ProCard.d.ts +14 -0
- package/dist/components/molecules/proCard/ProCard.js +30 -0
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
- package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
- package/dist/components/molecules/proCard/index.d.ts +2 -0
- package/dist/components/molecules/proCard/index.js +1 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.d.ts +10 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.js +33 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +17 -0
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +48 -0
- package/dist/components/molecules/questionAnswer/index.d.ts +2 -0
- package/dist/components/molecules/questionAnswer/index.js +1 -0
- package/dist/components/molecules/radioForm/RadioForm.d.ts +12 -0
- package/dist/components/molecules/radioForm/RadioForm.js +27 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
- package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
- package/dist/components/molecules/radioForm/index.d.ts +2 -0
- package/dist/components/molecules/radioForm/index.js +1 -0
- package/dist/components/molecules/selectForm/SelectForm.d.ts +19 -0
- package/dist/components/molecules/selectForm/SelectForm.js +15 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +72 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.js +104 -0
- package/dist/components/molecules/selectForm/index.d.ts +2 -0
- package/dist/components/molecules/selectForm/index.js +1 -0
- package/dist/components/molecules/stepper/ConfirmationModal.d.ts +14 -0
- package/dist/components/molecules/stepper/ConfirmationModal.js +26 -0
- package/dist/components/molecules/stepper/Stepper.d.ts +51 -0
- package/dist/components/molecules/stepper/Stepper.js +156 -0
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +52 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +206 -0
- package/dist/components/molecules/stepper/index.d.ts +2 -0
- package/dist/components/molecules/stepper/index.js +1 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +108 -0
- package/dist/stories/Header.d.ts +13 -0
- package/dist/stories/Header.js +20 -0
- package/dist/stories/Header.stories.d.ts +18 -0
- package/dist/stories/Header.stories.js +26 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.js +37 -0
- package/dist/stories/Page.stories.d.ts +12 -0
- package/dist/stories/Page.stories.js +76 -0
- package/dist/utils/regex.d.ts +5 -0
- package/dist/utils/regex.js +7 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +58 -0
- package/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,141 @@
|
|
|
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 { useForm, FormProvider } from "react-hook-form";
|
|
14
|
+
import TextArea from "./TextArea";
|
|
15
|
+
import "../../../styles/global.css";
|
|
16
|
+
export var ActionsData = {};
|
|
17
|
+
export default {
|
|
18
|
+
title: "Components/Atoms/Inputs/TextArea",
|
|
19
|
+
component: TextArea,
|
|
20
|
+
tags: ["autodocs"],
|
|
21
|
+
excludeStories: /.*Data$/,
|
|
22
|
+
args: __assign({}, ActionsData),
|
|
23
|
+
argTypes: {
|
|
24
|
+
style: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "radio",
|
|
27
|
+
options: ["default", "variation"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
isRequired: {
|
|
31
|
+
control: "boolean",
|
|
32
|
+
},
|
|
33
|
+
validate: {
|
|
34
|
+
control: {
|
|
35
|
+
type: "text",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
maxHeight: {
|
|
39
|
+
control: {
|
|
40
|
+
type: "number",
|
|
41
|
+
min: 100,
|
|
42
|
+
max: 1000,
|
|
43
|
+
step: 50,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
minHeight: {
|
|
47
|
+
control: {
|
|
48
|
+
type: "number",
|
|
49
|
+
min: 50,
|
|
50
|
+
max: 500,
|
|
51
|
+
step: 10,
|
|
52
|
+
},
|
|
53
|
+
description: "Hauteur minimale du TextArea en pixels",
|
|
54
|
+
table: {
|
|
55
|
+
type: { summary: "number" },
|
|
56
|
+
defaultValue: { summary: 100 },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
variant: {
|
|
60
|
+
control: {
|
|
61
|
+
type: "select",
|
|
62
|
+
options: ["bold", "semiBold", "medium"],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
color: {
|
|
66
|
+
control: {
|
|
67
|
+
type: "select",
|
|
68
|
+
options: [
|
|
69
|
+
"bleu-allaw",
|
|
70
|
+
"mid-grey",
|
|
71
|
+
"dark-grey",
|
|
72
|
+
"noir",
|
|
73
|
+
"pure-white",
|
|
74
|
+
"grey-venom",
|
|
75
|
+
"venom-grey-dark",
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
parameters: {
|
|
81
|
+
backgrounds: {
|
|
82
|
+
default: "light",
|
|
83
|
+
values: [
|
|
84
|
+
{ name: "light", value: "#ffffff" },
|
|
85
|
+
{ name: "grey", value: "#728ea7" },
|
|
86
|
+
{ name: "figma", value: "#404040" },
|
|
87
|
+
{ name: "dark", value: "#171e25" },
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
var Template = function (args) {
|
|
93
|
+
var methods = useForm();
|
|
94
|
+
return (React.createElement(FormProvider, __assign({}, methods),
|
|
95
|
+
React.createElement(TextArea, __assign({}, args))));
|
|
96
|
+
};
|
|
97
|
+
export var Default = Template.bind({});
|
|
98
|
+
Default.args = {
|
|
99
|
+
name: "defaultTextArea",
|
|
100
|
+
title: "Nommer le rendez-vous",
|
|
101
|
+
placeholder: "Entrez le motif du rendez-vous",
|
|
102
|
+
style: "default",
|
|
103
|
+
isRequired: false,
|
|
104
|
+
maxHeight: 400,
|
|
105
|
+
minHeight: 100,
|
|
106
|
+
variant: "medium",
|
|
107
|
+
color: "noir",
|
|
108
|
+
};
|
|
109
|
+
export var Variation = Template.bind({});
|
|
110
|
+
Variation.args = {
|
|
111
|
+
name: "variationTextArea",
|
|
112
|
+
title: "Adresse e-mail",
|
|
113
|
+
placeholder: "Entrez le motif du rendez-vous",
|
|
114
|
+
style: "variation",
|
|
115
|
+
isRequired: true,
|
|
116
|
+
maxHeight: 400,
|
|
117
|
+
minHeight: 100,
|
|
118
|
+
};
|
|
119
|
+
export var WithValidation = Template.bind({});
|
|
120
|
+
WithValidation.args = {
|
|
121
|
+
name: "validationTextArea",
|
|
122
|
+
title: "Email",
|
|
123
|
+
placeholder: "Entrez votre email",
|
|
124
|
+
style: "default",
|
|
125
|
+
isRequired: true,
|
|
126
|
+
validate: "email",
|
|
127
|
+
maxHeight: 400,
|
|
128
|
+
minHeight: 100,
|
|
129
|
+
};
|
|
130
|
+
export var LargeMinHeight = Template.bind({});
|
|
131
|
+
LargeMinHeight.args = {
|
|
132
|
+
name: "largeTextArea",
|
|
133
|
+
title: "Description détaillée",
|
|
134
|
+
placeholder: "Entrez une description détaillée",
|
|
135
|
+
style: "default",
|
|
136
|
+
isRequired: false,
|
|
137
|
+
maxHeight: 400,
|
|
138
|
+
minHeight: 200,
|
|
139
|
+
variant: "medium",
|
|
140
|
+
color: "noir",
|
|
141
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface VerificationCodeInputProps {
|
|
3
|
+
numInputs: number;
|
|
4
|
+
allowedChars?: "numeric" | "alphabetic" | "alphanumeric";
|
|
5
|
+
size?: "small" | "medium" | "large";
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
onError?: (error: string | null) => void;
|
|
8
|
+
onComplete?: (value: string) => void;
|
|
9
|
+
testError?: boolean;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const VerificationCodeInput: React.FC<VerificationCodeInputProps>;
|
|
14
|
+
export default VerificationCodeInput;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import React, { useState, useEffect, useRef } from "react";
|
|
11
|
+
import styles from "./VerificationCodeInput.module.css";
|
|
12
|
+
import TinyInfo from "../typography/TinyInfo";
|
|
13
|
+
var VerificationCodeInput = function (_a) {
|
|
14
|
+
var numInputs = _a.numInputs, _b = _a.allowedChars, allowedChars = _b === void 0 ? "numeric" : _b, _c = _a.size, size = _c === void 0 ? "large" : _c, onChange = _a.onChange, onError = _a.onError, onComplete = _a.onComplete, _d = _a.testError, testError = _d === void 0 ? false : _d, _e = _a.autoFocus, autoFocus = _e === void 0 ? false : _e, _f = _a.isDisabled, isDisabled = _f === void 0 ? false : _f;
|
|
15
|
+
var _g = useState(Array(numInputs).fill("")), values = _g[0], setValues = _g[1];
|
|
16
|
+
var _h = useState(""), error = _h[0], setError = _h[1];
|
|
17
|
+
var _j = useState(false), isSmallScreen = _j[0], setIsSmallScreen = _j[1];
|
|
18
|
+
var inputRefs = useRef(Array(numInputs).fill(null));
|
|
19
|
+
useEffect(function () {
|
|
20
|
+
setValues(Array(numInputs).fill(""));
|
|
21
|
+
inputRefs.current = Array(numInputs).fill(null);
|
|
22
|
+
}, [numInputs]);
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
if (testError) {
|
|
25
|
+
setError("Code de vérification invalide");
|
|
26
|
+
onError === null || onError === void 0 ? void 0 : onError("Code de vérification invalide");
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
setError("");
|
|
30
|
+
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
31
|
+
}
|
|
32
|
+
}, [testError, onError]);
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
var checkScreenSize = function () {
|
|
35
|
+
setIsSmallScreen(window.innerWidth < 400);
|
|
36
|
+
};
|
|
37
|
+
// Vérifier la taille initiale
|
|
38
|
+
checkScreenSize();
|
|
39
|
+
// Ajouter un écouteur d'événement pour les changements de taille
|
|
40
|
+
window.addEventListener("resize", checkScreenSize);
|
|
41
|
+
// Nettoyer l'écouteur d'événement
|
|
42
|
+
return function () { return window.removeEventListener("resize", checkScreenSize); };
|
|
43
|
+
}, []);
|
|
44
|
+
var handleInputChange = function (index, value) {
|
|
45
|
+
// console.log(`[VerificationCodeInput] Input ${index} changed to:`, value);
|
|
46
|
+
var _a;
|
|
47
|
+
if (!validateInput(value, allowedChars)) {
|
|
48
|
+
// console.log("[VerificationCodeInput] Invalid input value");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
var newValues = __spreadArray([], values, true);
|
|
52
|
+
newValues[index] = value;
|
|
53
|
+
setValues(newValues);
|
|
54
|
+
var fullValue = newValues.join("");
|
|
55
|
+
// console.log("[VerificationCodeInput] New values:", fullValue);
|
|
56
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(fullValue);
|
|
57
|
+
if (index === numInputs - 1 && value !== "") {
|
|
58
|
+
// console.log(
|
|
59
|
+
// "[VerificationCodeInput] Last input filled, validating with:",
|
|
60
|
+
// fullValue
|
|
61
|
+
// );
|
|
62
|
+
if (fullValue.length === numInputs) {
|
|
63
|
+
setError("");
|
|
64
|
+
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
65
|
+
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else if (index < numInputs - 1) {
|
|
69
|
+
(_a = inputRefs.current[index + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var handleKeyDown = function (index, e) {
|
|
73
|
+
var _a;
|
|
74
|
+
if (e.key === "Backspace" && values[index] === "" && index > 0) {
|
|
75
|
+
(_a = inputRefs.current[index - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
76
|
+
var newValues = __spreadArray([], values, true);
|
|
77
|
+
newValues[index - 1] = "";
|
|
78
|
+
setValues(newValues);
|
|
79
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValues.join(""));
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var handleBlur = function () {
|
|
83
|
+
setTimeout(function () {
|
|
84
|
+
var isStillFocused = inputRefs.current.some(function (ref) { return ref === document.activeElement; });
|
|
85
|
+
if (!isStillFocused) {
|
|
86
|
+
if (values.every(function (value) { return value !== ""; })) {
|
|
87
|
+
var fullValue = values.join("");
|
|
88
|
+
// console.log(
|
|
89
|
+
// "[VerificationCodeInput] All inputs filled, length:",
|
|
90
|
+
// fullValue.length
|
|
91
|
+
// );
|
|
92
|
+
setError("");
|
|
93
|
+
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
94
|
+
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, 0);
|
|
98
|
+
};
|
|
99
|
+
var handlePaste = function (e) {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
var pastedText = e.clipboardData.getData("text");
|
|
103
|
+
var validChars = pastedText
|
|
104
|
+
.split("")
|
|
105
|
+
.filter(function (char) { return validateInput(char, allowedChars); })
|
|
106
|
+
.slice(0, numInputs);
|
|
107
|
+
if (validChars.length > 0) {
|
|
108
|
+
var newValues_1 = Array(numInputs).fill("");
|
|
109
|
+
validChars.forEach(function (char, i) {
|
|
110
|
+
if (i < numInputs) {
|
|
111
|
+
newValues_1[i] = char;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
setValues(newValues_1);
|
|
115
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValues_1.join(""));
|
|
116
|
+
if (validChars.length >= numInputs) {
|
|
117
|
+
var fullValue = newValues_1.join("");
|
|
118
|
+
// console.log(
|
|
119
|
+
// "[VerificationCodeInput] All inputs filled, length:",
|
|
120
|
+
// fullValue.length
|
|
121
|
+
// );
|
|
122
|
+
setError("");
|
|
123
|
+
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
124
|
+
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
125
|
+
inputRefs.current.forEach(function (input) { return input === null || input === void 0 ? void 0 : input.blur(); });
|
|
126
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
var nextIndex = validChars.length;
|
|
130
|
+
(_b = inputRefs.current[nextIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
var validateInput = function (value, allowedChars) {
|
|
135
|
+
var regex = allowedChars === "numeric"
|
|
136
|
+
? /^[0-9]*$/
|
|
137
|
+
: allowedChars === "alphabetic"
|
|
138
|
+
? /^[a-zA-Z]*$/
|
|
139
|
+
: /^[a-zA-Z0-9]*$/;
|
|
140
|
+
return regex.test(value);
|
|
141
|
+
};
|
|
142
|
+
var renderInputs = function () {
|
|
143
|
+
return values.map(function (value, index) { return (React.createElement("input", { key: index, className: "".concat(styles.input, " ").concat(styles[size], " ").concat(value ? styles.filledInput : "", " ").concat(isSmallScreen ? styles.responsive : ""), value: value, onChange: function (e) { return handleInputChange(index, e.target.value); }, onKeyDown: function (e) { return handleKeyDown(index, e); }, onPaste: index === 0 ? handlePaste : undefined, onBlur: handleBlur, maxLength: 1, inputMode: allowedChars === "numeric" ? "numeric" : "text", pattern: allowedChars === "numeric"
|
|
144
|
+
? "[0-9]*"
|
|
145
|
+
: allowedChars === "alphabetic"
|
|
146
|
+
? "[a-zA-Z]*"
|
|
147
|
+
: "[a-zA-Z0-9]*", ref: function (input) { return (inputRefs.current[index] = input); }, autoFocus: index === 0 && autoFocus, tabIndex: index === 0 ? 0 : undefined, "data-lpignore": "true" // Empêche Dashlane d'intervenir
|
|
148
|
+
, "data-form-type": "other" // Indique que ce n'est pas un champ de mot de passe
|
|
149
|
+
, disabled: isDisabled })); });
|
|
150
|
+
};
|
|
151
|
+
return (React.createElement("div", { className: "".concat(styles.container, " ").concat(isSmallScreen ? styles.responsiveContainer : "") },
|
|
152
|
+
React.createElement("div", { className: "".concat(styles.inputsContainer, " ").concat(isSmallScreen ? styles.responsiveInputsContainer : "") }, renderInputs()),
|
|
153
|
+
error && (React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))));
|
|
154
|
+
};
|
|
155
|
+
export default VerificationCodeInput;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export let title: string;
|
|
3
|
+
export { VerificationCodeInput as component };
|
|
4
|
+
export let tags: string[];
|
|
5
|
+
export namespace parameters {
|
|
6
|
+
namespace controls {
|
|
7
|
+
let expanded: boolean;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export namespace argTypes {
|
|
11
|
+
namespace size {
|
|
12
|
+
let control: string;
|
|
13
|
+
let options: string[];
|
|
14
|
+
let description: string;
|
|
15
|
+
let defaultValue: string;
|
|
16
|
+
}
|
|
17
|
+
namespace allowedChars {
|
|
18
|
+
let control_1: string;
|
|
19
|
+
export { control_1 as control };
|
|
20
|
+
let options_1: string[];
|
|
21
|
+
export { options_1 as options };
|
|
22
|
+
let description_1: string;
|
|
23
|
+
export { description_1 as description };
|
|
24
|
+
let defaultValue_1: string;
|
|
25
|
+
export { defaultValue_1 as defaultValue };
|
|
26
|
+
export namespace table {
|
|
27
|
+
export namespace defaultValue_2 {
|
|
28
|
+
let summary: string;
|
|
29
|
+
}
|
|
30
|
+
export { defaultValue_2 as defaultValue };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
namespace numInputs {
|
|
34
|
+
export namespace control_2 {
|
|
35
|
+
let type: string;
|
|
36
|
+
let min: number;
|
|
37
|
+
let max: number;
|
|
38
|
+
let step: number;
|
|
39
|
+
}
|
|
40
|
+
export { control_2 as control };
|
|
41
|
+
let description_2: string;
|
|
42
|
+
export { description_2 as description };
|
|
43
|
+
let defaultValue_3: number;
|
|
44
|
+
export { defaultValue_3 as defaultValue };
|
|
45
|
+
}
|
|
46
|
+
namespace testError {
|
|
47
|
+
let control_3: string;
|
|
48
|
+
export { control_3 as control };
|
|
49
|
+
let description_3: string;
|
|
50
|
+
export { description_3 as description };
|
|
51
|
+
let defaultValue_4: boolean;
|
|
52
|
+
export { defaultValue_4 as defaultValue };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export default _default;
|
|
57
|
+
export const Default: any;
|
|
58
|
+
export const WithError: any;
|
|
59
|
+
export function Responsive(args: any): React.JSX.Element;
|
|
60
|
+
export namespace Responsive {
|
|
61
|
+
export namespace args {
|
|
62
|
+
let numInputs_1: number;
|
|
63
|
+
export { numInputs_1 as numInputs };
|
|
64
|
+
let size_1: string;
|
|
65
|
+
export { size_1 as size };
|
|
66
|
+
}
|
|
67
|
+
export namespace parameters_1 {
|
|
68
|
+
namespace docs {
|
|
69
|
+
export namespace description_4 {
|
|
70
|
+
let story: string;
|
|
71
|
+
}
|
|
72
|
+
export { description_4 as description };
|
|
73
|
+
}
|
|
74
|
+
namespace viewport {
|
|
75
|
+
let defaultViewport: string;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export { parameters_1 as parameters };
|
|
79
|
+
}
|
|
80
|
+
import VerificationCodeInput from "./VerificationCodeInput";
|
|
81
|
+
import React from "react";
|
|
@@ -0,0 +1,89 @@
|
|
|
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 VerificationCodeInput from "./VerificationCodeInput";
|
|
14
|
+
export default {
|
|
15
|
+
title: "Components/Atoms/Inputs/VerificationCodeInput",
|
|
16
|
+
component: VerificationCodeInput,
|
|
17
|
+
tags: ["autodocs"],
|
|
18
|
+
parameters: {
|
|
19
|
+
controls: {
|
|
20
|
+
expanded: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
size: {
|
|
25
|
+
control: "select",
|
|
26
|
+
options: ["small", "medium", "large"],
|
|
27
|
+
description: "Taille des inputs",
|
|
28
|
+
defaultValue: "large",
|
|
29
|
+
},
|
|
30
|
+
allowedChars: {
|
|
31
|
+
control: "select",
|
|
32
|
+
options: ["numeric", "alphabetic", "alphanumeric"],
|
|
33
|
+
description: "Type de caractères autorisés",
|
|
34
|
+
defaultValue: "numeric",
|
|
35
|
+
table: {
|
|
36
|
+
defaultValue: { summary: "numeric" },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
numInputs: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "number",
|
|
42
|
+
min: 1,
|
|
43
|
+
max: 20,
|
|
44
|
+
step: 1,
|
|
45
|
+
},
|
|
46
|
+
description: "Nombre d'inputs",
|
|
47
|
+
defaultValue: 5,
|
|
48
|
+
},
|
|
49
|
+
testError: {
|
|
50
|
+
control: "boolean",
|
|
51
|
+
description: "Simuler une erreur de validation",
|
|
52
|
+
defaultValue: false,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
var Template = function (args) { return React.createElement(VerificationCodeInput, __assign({}, args)); };
|
|
57
|
+
export var Default = Template.bind({});
|
|
58
|
+
Default.args = {
|
|
59
|
+
numInputs: 5,
|
|
60
|
+
};
|
|
61
|
+
export var WithError = Template.bind({});
|
|
62
|
+
WithError.args = {
|
|
63
|
+
numInputs: 5,
|
|
64
|
+
testError: true,
|
|
65
|
+
};
|
|
66
|
+
WithError.parameters = {
|
|
67
|
+
docs: {
|
|
68
|
+
description: {
|
|
69
|
+
story: "Simule un état d'erreur lors de la validation du code",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
export var Responsive = function (args) { return (React.createElement("div", null,
|
|
74
|
+
React.createElement("p", { style: { marginBottom: "10px" } }, "Redimensionnez la fen\u00EAtre \u00E0 moins de 400px pour voir le design responsive"),
|
|
75
|
+
React.createElement(VerificationCodeInput, __assign({}, args)))); };
|
|
76
|
+
Responsive.args = {
|
|
77
|
+
numInputs: 6,
|
|
78
|
+
size: "large",
|
|
79
|
+
};
|
|
80
|
+
Responsive.parameters = {
|
|
81
|
+
docs: {
|
|
82
|
+
description: {
|
|
83
|
+
story: "Montre le comportement responsive du composant lorsque la largeur de l'écran est inférieure à 400px",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
viewport: {
|
|
87
|
+
defaultViewport: "mobile1",
|
|
88
|
+
},
|
|
89
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Input } from "./Input";
|
|
2
|
+
export { default as TextArea } from "./TextArea";
|
|
3
|
+
export { default as SearchBar } from "./SearchBar";
|
|
4
|
+
export { default as VerificationCodeInput } from "./VerificationCodeInput";
|
|
5
|
+
export type { InputProps, InputRef } from "./Input";
|
|
6
|
+
export type { SearchBarProps } from "./SearchBar";
|
|
7
|
+
export type { TextAreaProps, TextAreaRef } from "./TextArea";
|
|
8
|
+
export type { VerificationCodeInputProps } from "./VerificationCodeInput";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./ProgressBar.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
export type BarColor = "blue" | "red" | "green" | "grey";
|
|
6
|
+
export interface ProgressBarProps {
|
|
7
|
+
steps: number;
|
|
8
|
+
currentStep: number;
|
|
9
|
+
startIcon?: boolean;
|
|
10
|
+
endIcon?: boolean;
|
|
11
|
+
onStartIconClick?: () => void;
|
|
12
|
+
onEndIconClick?: () => void;
|
|
13
|
+
showProgressBar?: boolean;
|
|
14
|
+
barColor?: BarColor;
|
|
15
|
+
isWrapperProgressBar?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
18
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./ProgressBar.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
var ProgressBar = function (_a) {
|
|
6
|
+
var steps = _a.steps, currentStep = _a.currentStep, _b = _a.startIcon, startIcon = _b === void 0 ? true : _b, _c = _a.endIcon, endIcon = _c === void 0 ? true : _c, onStartIconClick = _a.onStartIconClick, onEndIconClick = _a.onEndIconClick, _d = _a.showProgressBar, showProgressBar = _d === void 0 ? true : _d, _e = _a.barColor, barColor = _e === void 0 ? "blue" : _e, _f = _a.isWrapperProgressBar, isWrapperProgressBar = _f === void 0 ? true : _f;
|
|
7
|
+
var constrainedCurrentStep = Math.max(0, Math.min(currentStep, steps));
|
|
8
|
+
var progressWidth = constrainedCurrentStep === 0 ? 0 : (constrainedCurrentStep / steps) * 100;
|
|
9
|
+
var noIconsMargin = !startIcon && !endIcon ? "0px" : "0 10px";
|
|
10
|
+
return (React.createElement("div", { className: "progress-bar-container" },
|
|
11
|
+
isWrapperProgressBar && startIcon && (React.createElement("div", { className: "progress-bar-icon-container" },
|
|
12
|
+
React.createElement("button", { className: "progress-bar-chevron", onClick: onStartIconClick },
|
|
13
|
+
React.createElement("i", { className: "allaw-icon-chevron-left" })))),
|
|
14
|
+
React.createElement("div", { className: "progress-bar-background ".concat(showProgressBar ? "" : "hidden-content"), style: {
|
|
15
|
+
height: isWrapperProgressBar ? "6px" : "8px",
|
|
16
|
+
width: startIcon ? "calc(100% - 32px)" : "100%",
|
|
17
|
+
margin: noIconsMargin,
|
|
18
|
+
} },
|
|
19
|
+
React.createElement("div", { className: "progress-bar-fill progress-bar-fill-".concat(barColor), style: {
|
|
20
|
+
width: "".concat(progressWidth, "%"),
|
|
21
|
+
height: isWrapperProgressBar ? "6px" : "8px",
|
|
22
|
+
} })),
|
|
23
|
+
endIcon && (React.createElement("button", { className: "progress-bar-close", onClick: onEndIconClick, "data-cy": "close-stepper" },
|
|
24
|
+
React.createElement("i", { className: "allaw-icon-close" })))));
|
|
25
|
+
};
|
|
26
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export const ActionsData: {};
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { ProgressBar as component };
|
|
5
|
+
export let tags: string[];
|
|
6
|
+
export let excludeStories: RegExp;
|
|
7
|
+
export namespace args {
|
|
8
|
+
let steps: number;
|
|
9
|
+
let currentStep: number;
|
|
10
|
+
let startIcon: boolean;
|
|
11
|
+
let endIcon: boolean;
|
|
12
|
+
let showProgressBar: boolean;
|
|
13
|
+
let barColor: string;
|
|
14
|
+
}
|
|
15
|
+
export namespace argTypes {
|
|
16
|
+
export namespace steps_1 {
|
|
17
|
+
namespace control {
|
|
18
|
+
let type: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export { steps_1 as steps };
|
|
22
|
+
export namespace currentStep_1 {
|
|
23
|
+
export namespace control_1 {
|
|
24
|
+
let type_1: string;
|
|
25
|
+
export { type_1 as type };
|
|
26
|
+
}
|
|
27
|
+
export { control_1 as control };
|
|
28
|
+
}
|
|
29
|
+
export { currentStep_1 as currentStep };
|
|
30
|
+
export namespace startIcon_1 {
|
|
31
|
+
export namespace control_2 {
|
|
32
|
+
let type_2: string;
|
|
33
|
+
export { type_2 as type };
|
|
34
|
+
}
|
|
35
|
+
export { control_2 as control };
|
|
36
|
+
}
|
|
37
|
+
export { startIcon_1 as startIcon };
|
|
38
|
+
export namespace endIcon_1 {
|
|
39
|
+
export namespace control_3 {
|
|
40
|
+
let type_3: string;
|
|
41
|
+
export { type_3 as type };
|
|
42
|
+
}
|
|
43
|
+
export { control_3 as control };
|
|
44
|
+
}
|
|
45
|
+
export { endIcon_1 as endIcon };
|
|
46
|
+
export namespace showProgressBar_1 {
|
|
47
|
+
export namespace control_4 {
|
|
48
|
+
let type_4: string;
|
|
49
|
+
export { type_4 as type };
|
|
50
|
+
}
|
|
51
|
+
export { control_4 as control };
|
|
52
|
+
}
|
|
53
|
+
export { showProgressBar_1 as showProgressBar };
|
|
54
|
+
export namespace barColor_1 {
|
|
55
|
+
export namespace control_5 {
|
|
56
|
+
let type_5: string;
|
|
57
|
+
export { type_5 as type };
|
|
58
|
+
export let options: string[];
|
|
59
|
+
}
|
|
60
|
+
export { control_5 as control };
|
|
61
|
+
export let description: string;
|
|
62
|
+
}
|
|
63
|
+
export { barColor_1 as barColor };
|
|
64
|
+
}
|
|
65
|
+
export namespace parameters {
|
|
66
|
+
namespace backgrounds {
|
|
67
|
+
let _default: string;
|
|
68
|
+
export { _default as default };
|
|
69
|
+
export let values: {
|
|
70
|
+
name: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export default _default;
|
|
77
|
+
export const Default: any;
|
|
78
|
+
export const FirstStep: any;
|
|
79
|
+
export const Hidden: any;
|
|
80
|
+
export const RedProgress: any;
|
|
81
|
+
export const GreenProgress: any;
|
|
82
|
+
export const GreyProgress: any;
|
|
83
|
+
import ProgressBar from "./ProgressBar";
|