allaw-ui 0.1.71 → 1.0.0
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/assets/allaw-font.eot +0 -0
- package/dist/assets/allaw-font.svg +15 -0
- package/dist/assets/allaw-font.ttf +0 -0
- package/dist/assets/allaw-font.woff +0 -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.css +17 -0
- package/dist/components/atoms/buttons/IconButton.d.ts +11 -0
- package/dist/components/atoms/buttons/IconButton.js +19 -0
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
- package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
- package/dist/components/atoms/buttons/OAuthProviderButton.js +176 -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.css +1 -0
- package/dist/components/atoms/buttons/PrimaryButton.d.ts +17 -0
- package/dist/components/atoms/buttons/PrimaryButton.js +117 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
- package/dist/components/atoms/buttons/SecondaryButton.css +66 -0
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +19 -0
- package/dist/components/atoms/buttons/SecondaryButton.js +117 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
- package/dist/components/atoms/buttons/TabNavigation.css +78 -9
- package/dist/components/atoms/buttons/TabNavigation.d.ts +15 -0
- package/dist/components/atoms/buttons/TabNavigation.js +10 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
- package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
- package/dist/components/atoms/buttons/TertiaryButton.css +15 -6
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +11 -0
- package/dist/components/atoms/buttons/TertiaryButton.js +10 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
- package/dist/components/atoms/buttons/index.d.ts +22 -0
- package/dist/components/atoms/buttons/index.js +11 -0
- package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +14 -0
- package/dist/components/atoms/checkboxes/Checkbox.js +19 -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 +14 -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/datepicker.css +241 -0
- package/dist/components/atoms/datepickers/index.d.ts +2 -0
- package/dist/components/atoms/datepickers/index.js +1 -0
- package/dist/components/atoms/filter/Basefiler.css +1 -1
- 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 +17 -0
- package/dist/components/atoms/filters/SingleFilter.js +81 -0
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
- package/dist/components/atoms/filters/SingleFilter.stories.js +34 -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 +26 -0
- package/dist/components/atoms/inputs/Input.js +86 -0
- package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
- package/dist/components/atoms/inputs/Input.stories.js +101 -0
- package/dist/components/atoms/inputs/SearchBar.css +1 -1
- 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.css +1 -1
- package/dist/components/atoms/inputs/TextArea.d.ts +23 -0
- package/dist/components/atoms/inputs/TextArea.js +66 -0
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
- package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
- package/dist/components/atoms/inputs/index.d.ts +6 -0
- package/dist/components/atoms/inputs/index.js +3 -0
- package/dist/components/atoms/progressBars/ProgressBar.css +20 -15
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
- package/dist/components/atoms/progressBars/ProgressBar.js +25 -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 +11 -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/index.d.ts +2 -0
- package/dist/components/atoms/radios/index.js +1 -0
- package/dist/components/atoms/selects/ComboBox.css +5 -3
- package/dist/components/atoms/selects/ComboBox.d.ts +27 -0
- package/dist/components/atoms/selects/ComboBox.js +172 -0
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
- package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
- package/dist/components/atoms/selects/Select.d.ts +24 -0
- package/dist/components/atoms/selects/Select.js +154 -0
- package/dist/components/atoms/selects/{Select.css → Select.module.css} +16 -15
- package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
- package/dist/components/atoms/selects/Select.stories.js +154 -0
- package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
- package/dist/components/atoms/selects/SelectableListItem.js +18 -0
- package/dist/components/atoms/selects/SelectableListItem.module.css +157 -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.css +10 -8
- 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.css +54 -1
- 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 +10 -0
- package/dist/components/atoms/typography/Heading.js +7 -0
- package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
- package/dist/components/atoms/typography/Heading.stories.js +90 -0
- package/dist/components/atoms/typography/Link.d.ts +13 -0
- package/dist/components/atoms/typography/Link.js +35 -0
- package/dist/components/atoms/typography/Link.module.css +60 -0
- package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
- package/dist/components/atoms/typography/Link.stories.js +105 -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 +13 -0
- package/dist/components/atoms/typography/TinyInfo.js +15 -0
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
- package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
- package/dist/components/atoms/typography/cardDate.css +135 -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.css +55 -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.css +46 -3
- 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/billingCount/BillingCount.css +28 -0
- package/dist/components/molecules/billingCount/BillingCount.d.ts +8 -0
- package/dist/components/molecules/billingCount/BillingCount.js +75 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
- package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -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 +33 -0
- package/dist/components/molecules/blogCard/BlogCard.module.css +148 -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.module.css +48 -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.module.css +150 -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.module.css +59 -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.module.css +108 -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/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.css +54 -48
- 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/caseCardCompact.css +80 -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.css +79 -35
- 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 +18 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +24 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
- package/dist/components/molecules/checkboxForm/index.d.ts +2 -0
- package/dist/components/molecules/checkboxForm/index.js +1 -0
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.css +59 -28
- 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 +34 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +83 -0
- package/dist/components/molecules/contactCard/ContactCard.stories.js +86 -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/contactCard.module.css +140 -0
- package/dist/components/molecules/contactCard/{ContactCard.css → detailedContactCard.css} +43 -105
- 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/datepickerForm.css +6 -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.css +8 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +16 -0
- package/dist/components/molecules/documentCard/DocumentCard.js +119 -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/loadingBox/LoadingBox.css +7 -8
- 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/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/pagination/pagination.css +120 -0
- package/dist/components/molecules/proCard/ProCard.d.ts +13 -0
- package/dist/components/molecules/proCard/ProCard.js +25 -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/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.css +1 -1
- package/dist/components/molecules/selectForm/SelectForm.d.ts +18 -0
- package/dist/components/molecules/selectForm/SelectForm.js +15 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
- package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -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/Stepper.css +17 -4
- package/dist/components/molecules/stepper/Stepper.d.ts +35 -0
- package/dist/components/molecules/stepper/Stepper.js +113 -0
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
- package/dist/components/molecules/stepper/Stepper.stories.js +132 -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 +76 -0
- package/dist/index.js +88 -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/stories/header.css +32 -0
- package/dist/stories/page.css +69 -0
- package/dist/styles/colors.css +3 -0
- package/dist/styles/colors.module.css +107 -0
- package/dist/styles/global.css +1 -0
- package/dist/styles/icons.css +76 -107
- package/dist/utils/regex.d.ts +5 -0
- package/dist/utils/regex.js +7 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.js +48 -0
- package/package.json +18 -14
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
// BaseFilter.stories.js
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
import BaseFilter from './Filter';
|
|
16
|
+
export default {
|
|
17
|
+
title: 'Components/Atoms/Filters/Filter',
|
|
18
|
+
component: BaseFilter,
|
|
19
|
+
};
|
|
20
|
+
var Template = function (args) { return React.createElement(BaseFilter, __assign({}, args)); };
|
|
21
|
+
export var Default = Template.bind({});
|
|
22
|
+
Default.args = {
|
|
23
|
+
tooltipContent: 'This is a tooltip',
|
|
24
|
+
tooltipId: 'tooltip-1',
|
|
25
|
+
showIcon: true,
|
|
26
|
+
defaultSelectedValues: ['confirmed'],
|
|
27
|
+
filterData: [
|
|
28
|
+
{ value: 'confirmed', name: 'Confirmed' },
|
|
29
|
+
{ value: 'pending', name: 'Pending' },
|
|
30
|
+
{ value: 'available', name: 'Available' },
|
|
31
|
+
{ value: 'unavailable', name: 'Unavailable' },
|
|
32
|
+
{ value: 'cancelled', name: 'Cancelled' },
|
|
33
|
+
{ value: 'passed', name: 'Passed' },
|
|
34
|
+
{ value: 'refused', name: 'Refused' },
|
|
35
|
+
],
|
|
36
|
+
setFilters: function (values) { return console.log('Selected values:', values); },
|
|
37
|
+
multiselect: true,
|
|
38
|
+
iconName: 'fa fa-filter', // Replace with your actual icon class
|
|
39
|
+
children: 'Filter Button',
|
|
40
|
+
showNumIndic: true,
|
|
41
|
+
isStatusTag: true,
|
|
42
|
+
};
|
|
43
|
+
export var SingleSelect = Template.bind({});
|
|
44
|
+
SingleSelect.args = {
|
|
45
|
+
tooltipContent: 'This is a tooltip',
|
|
46
|
+
tooltipId: 'tooltip-2',
|
|
47
|
+
showIcon: true,
|
|
48
|
+
defaultSelectedValues: ['confirmed'],
|
|
49
|
+
filterData: [
|
|
50
|
+
{ value: 'confirmed', name: 'Confirmed' },
|
|
51
|
+
{ value: 'pending', name: 'Pending' },
|
|
52
|
+
{ value: 'available', name: 'Available' },
|
|
53
|
+
],
|
|
54
|
+
setFilters: function (values) { return console.log('Selected values:', values); },
|
|
55
|
+
multiselect: false,
|
|
56
|
+
iconName: 'fa fa-filter', // Replace with your actual icon class
|
|
57
|
+
children: 'Single Select Filter Button',
|
|
58
|
+
showNumIndic: true,
|
|
59
|
+
isStatusTag: false,
|
|
60
|
+
};
|
|
61
|
+
export var WithoutIcon = Template.bind({});
|
|
62
|
+
WithoutIcon.args = {
|
|
63
|
+
tooltipContent: 'This is a tooltip',
|
|
64
|
+
tooltipId: 'tooltip-3',
|
|
65
|
+
showIcon: false,
|
|
66
|
+
defaultSelectedValues: ['confirmed'],
|
|
67
|
+
filterData: [
|
|
68
|
+
{ value: 'confirmed', name: 'Confirmed' },
|
|
69
|
+
{ value: 'pending', name: 'Pending' },
|
|
70
|
+
{ value: 'available', name: 'Available' },
|
|
71
|
+
],
|
|
72
|
+
setFilters: function (values) { return console.log('Selected values:', values); },
|
|
73
|
+
multiselect: true,
|
|
74
|
+
children: 'Filter Button Without Icon',
|
|
75
|
+
showNumIndic: true,
|
|
76
|
+
isStatusTag: true,
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Filter } from "./Filter";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./SingleFilter.css";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type SingleFilterProps = {
|
|
4
|
+
defaultSelectedValue?: string;
|
|
5
|
+
filterData: {
|
|
6
|
+
value: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[];
|
|
9
|
+
setFilter: (selectedValue: string) => void;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
showNumIndic?: boolean;
|
|
13
|
+
showBackdrop?: boolean;
|
|
14
|
+
isStatusTag?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const SingleFilter: ({ showNumIndic, required, defaultSelectedValue, filterData, setFilter, showBackdrop, children, ...props }: SingleFilterProps) => React.JSX.Element;
|
|
17
|
+
export default SingleFilter;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import "./SingleFilter.css";
|
|
24
|
+
import { FilterButtonPrimary, PrimaryButton } from "../buttons";
|
|
25
|
+
import { TinyInfo } from "../typography";
|
|
26
|
+
import React, { useState, useEffect } from "react";
|
|
27
|
+
var SingleFilter = function (_a) {
|
|
28
|
+
var _b = _a.showNumIndic, showNumIndic = _b === void 0 ? false : _b, _c = _a.required, required = _c === void 0 ? true : _c, defaultSelectedValue = _a.defaultSelectedValue, filterData = _a.filterData, setFilter = _a.setFilter, _d = _a.showBackdrop, showBackdrop = _d === void 0 ? false : _d, children = _a.children, props = __rest(_a, ["showNumIndic", "required", "defaultSelectedValue", "filterData", "setFilter", "showBackdrop", "children"]);
|
|
29
|
+
var _e = useState(false), isOpen = _e[0], setIsOpen = _e[1];
|
|
30
|
+
var _f = useState(defaultSelectedValue || ""), selectedValue = _f[0], setSelectedValue = _f[1];
|
|
31
|
+
useEffect(function () {
|
|
32
|
+
if (selectedValue) {
|
|
33
|
+
setFilter(selectedValue);
|
|
34
|
+
}
|
|
35
|
+
}, [selectedValue, setFilter]);
|
|
36
|
+
var handleClose = function () {
|
|
37
|
+
setIsOpen(false);
|
|
38
|
+
};
|
|
39
|
+
var handleButtonTap = function () {
|
|
40
|
+
setIsOpen(!isOpen);
|
|
41
|
+
};
|
|
42
|
+
var Item = function (_a) {
|
|
43
|
+
var name = _a.name, value = _a.value;
|
|
44
|
+
return (React.createElement("button", { className: "item", onClick: function () {
|
|
45
|
+
setSelectedValue(value);
|
|
46
|
+
handleClose();
|
|
47
|
+
} },
|
|
48
|
+
React.createElement("div", { className: "round" },
|
|
49
|
+
React.createElement("div", { className: selectedValue === value ? "selected" : "notSelected" })),
|
|
50
|
+
React.createElement("span", null, name)));
|
|
51
|
+
};
|
|
52
|
+
var SmallItem = function (_a) {
|
|
53
|
+
var name = _a.name, value = _a.value;
|
|
54
|
+
return (React.createElement("button", { className: "smallItem", onClick: function () {
|
|
55
|
+
setSelectedValue(value);
|
|
56
|
+
} },
|
|
57
|
+
React.createElement("div", { className: "round" },
|
|
58
|
+
React.createElement("div", { className: selectedValue === value ? "selected" : "notSelected" })),
|
|
59
|
+
React.createElement("span", null, name)));
|
|
60
|
+
};
|
|
61
|
+
return (React.createElement(React.Fragment, null,
|
|
62
|
+
React.createElement("div", __assign({ className: "baseFilter" }, props),
|
|
63
|
+
React.createElement(FilterButtonPrimary, { onClick: handleButtonTap },
|
|
64
|
+
children,
|
|
65
|
+
React.createElement("p", { style: { color: "#25BEEB", fontWeight: "600" } }, showNumIndic && "(".concat(selectedValue.length, ")"))),
|
|
66
|
+
isOpen && (React.createElement("div", { className: "options" }, filterData &&
|
|
67
|
+
filterData.length > 0 &&
|
|
68
|
+
filterData.map(function (item, idx) { return (React.createElement(Item, { name: item.name, value: item.value, key: idx })); }))),
|
|
69
|
+
React.createElement("div", { className: "optionsSmall", style: { bottom: isOpen ? "0" : "-100%" } },
|
|
70
|
+
React.createElement("div", { className: "row" },
|
|
71
|
+
React.createElement("div", { style: { minWidth: "20px" } }),
|
|
72
|
+
React.createElement(TinyInfo, { text: children, variant: "bold14", color: "noir" }),
|
|
73
|
+
React.createElement("button", { className: "closeButton", onClick: handleClose },
|
|
74
|
+
React.createElement("i", { className: "allaw-icon-close" }))),
|
|
75
|
+
React.createElement("div", { className: "choices" }, filterData &&
|
|
76
|
+
filterData.length > 0 &&
|
|
77
|
+
filterData.map(function (item, idx) { return (React.createElement(SmallItem, { name: item.name, value: item.value, key: idx })); })),
|
|
78
|
+
React.createElement(PrimaryButton, { label: "Voir les r\u00E9sultats", onClick: handleClose }))),
|
|
79
|
+
isOpen && React.createElement("div", { className: "backdrop", onClick: handleClose })));
|
|
80
|
+
};
|
|
81
|
+
export default SingleFilter;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 SingleFilter from './SingleFilter'; // Ajustez le chemin selon votre structure de projet
|
|
14
|
+
import './SingleFilter'; // Assurez-vous que le chemin est correct
|
|
15
|
+
export default {
|
|
16
|
+
title: 'Components/Atoms/Filters/SingleFilter',
|
|
17
|
+
component: SingleFilter,
|
|
18
|
+
};
|
|
19
|
+
var Template = function (args) { return React.createElement(SingleFilter, __assign({}, args)); };
|
|
20
|
+
export var Default = Template.bind({});
|
|
21
|
+
Default.args = {
|
|
22
|
+
defaultSelectedValue: 'Option 1',
|
|
23
|
+
filterData: [
|
|
24
|
+
{ value: 'option1', name: 'Option 1' },
|
|
25
|
+
{ value: 'option2', name: 'Option 2' },
|
|
26
|
+
{ value: 'option3', name: 'Option 3' },
|
|
27
|
+
],
|
|
28
|
+
setFilter: function (selectedValue) { return console.log('Selected value:', selectedValue); },
|
|
29
|
+
children: 'Filter',
|
|
30
|
+
required: true,
|
|
31
|
+
showNumIndic: true,
|
|
32
|
+
showBackdrop: true,
|
|
33
|
+
isStatusTag: false,
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SingleFilter } from "./SingleFilter";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Input.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
import { commonRegex } from "../../../utils/regex";
|
|
6
|
+
export interface InputProps {
|
|
7
|
+
title: string;
|
|
8
|
+
style?: "default" | "variation" | "password";
|
|
9
|
+
placeholder: string;
|
|
10
|
+
endIcon?: string;
|
|
11
|
+
rowChange?: (e: any) => void;
|
|
12
|
+
isRequired?: boolean;
|
|
13
|
+
validate?: RegExp | keyof typeof commonRegex;
|
|
14
|
+
onError?: (error: string) => void;
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
value?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
|
|
20
|
+
variant?: "bold" | "semiBold" | "medium";
|
|
21
|
+
}
|
|
22
|
+
export interface InputRef {
|
|
23
|
+
validate: () => boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
26
|
+
export default Input;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React, { useState, useEffect, useCallback, forwardRef, useImperativeHandle, useRef, } from "react";
|
|
2
|
+
import "./Input.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
import { commonRegex } from "../../../utils/regex";
|
|
6
|
+
import TinyInfo from "../typography/TinyInfo";
|
|
7
|
+
import Paragraph from "../typography/Paragraph";
|
|
8
|
+
var Input = forwardRef(function (_a, ref) {
|
|
9
|
+
var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, rowChange = _a.rowChange, placeholder = _a.placeholder, endIcon = _a.endIcon, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, _d = _a.type, type = _d === void 0 ? "text" : _d, propError = _a.error, _e = _a.color, color = _e === void 0 ? "noir" : _e, _f = _a.variant, variant = _f === void 0 ? "medium" : _f;
|
|
10
|
+
var _g = useState(false), isPasswordVisible = _g[0], setIsPasswordVisible = _g[1];
|
|
11
|
+
var _h = useState(propValue || ""), value = _h[0], setValue = _h[1];
|
|
12
|
+
var _j = useState(propError || ""), error = _j[0], setError = _j[1];
|
|
13
|
+
var _k = useState(false), isTouched = _k[0], setIsTouched = _k[1];
|
|
14
|
+
var inputRef = useRef(null);
|
|
15
|
+
useEffect(function () {
|
|
16
|
+
setValue(propValue || "");
|
|
17
|
+
}, [propValue]);
|
|
18
|
+
useEffect(function () {
|
|
19
|
+
setError(propError || "");
|
|
20
|
+
}, [propError]);
|
|
21
|
+
var validateInput = useCallback(function () {
|
|
22
|
+
var _a;
|
|
23
|
+
// console.log(`Input ${title}: Validating input`);
|
|
24
|
+
var currentValue = ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) || value;
|
|
25
|
+
// console.log(`Input ${title}: Current value: "${currentValue}"`);
|
|
26
|
+
var errorMessage = "";
|
|
27
|
+
if (isRequired && currentValue.trim() === "") {
|
|
28
|
+
errorMessage = "Ce champ est requis";
|
|
29
|
+
}
|
|
30
|
+
else if (validate && currentValue) {
|
|
31
|
+
var regex = typeof validate === "string" ? commonRegex[validate] : validate;
|
|
32
|
+
// console.log(`Input ${title}: Regex used: ${regex}`);
|
|
33
|
+
if (!regex.test(currentValue)) {
|
|
34
|
+
errorMessage = "Veuillez vérifier votre saisie";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
setError(errorMessage);
|
|
38
|
+
setIsTouched(true);
|
|
39
|
+
// console.log(
|
|
40
|
+
// `Input ${title}: Validation result - ${errorMessage ? "invalid" : "valid"}`
|
|
41
|
+
// );
|
|
42
|
+
onError === null || onError === void 0 ? void 0 : onError(errorMessage);
|
|
43
|
+
return !errorMessage;
|
|
44
|
+
}, [isRequired, value, validate, onError, title]);
|
|
45
|
+
useImperativeHandle(ref, function () { return ({
|
|
46
|
+
validate: validateInput,
|
|
47
|
+
}); });
|
|
48
|
+
var handleChange = function (e) {
|
|
49
|
+
var newValue = e.target.value;
|
|
50
|
+
// console.log(`Input ${title}: Value changed to "${newValue}"`);
|
|
51
|
+
setValue(newValue);
|
|
52
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
53
|
+
if (isTouched) {
|
|
54
|
+
validateInput();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var handleBlur = function () {
|
|
58
|
+
// console.log(`Input ${title}: Blur event triggered`);
|
|
59
|
+
setIsTouched(true);
|
|
60
|
+
validateInput();
|
|
61
|
+
};
|
|
62
|
+
var renderEndIcon = function () {
|
|
63
|
+
if (style === "variation" && endIcon) {
|
|
64
|
+
return (React.createElement("button", { className: "Input-icon-button" },
|
|
65
|
+
React.createElement("i", { className: endIcon })));
|
|
66
|
+
}
|
|
67
|
+
if (style === "password") {
|
|
68
|
+
return (React.createElement("button", { className: "Input-button", onClick: function () { return setIsPasswordVisible(!isPasswordVisible); } }, isPasswordVisible ? "CACHER" : "AFFICHER"));
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
};
|
|
72
|
+
return (React.createElement("div", { className: "Input Input-".concat(style) },
|
|
73
|
+
React.createElement("div", { className: "Input-title-container" },
|
|
74
|
+
React.createElement(Paragraph, { variant: variant, color: color, text: title }),
|
|
75
|
+
isRequired && title && (React.createElement("span", { className: "Input-required" },
|
|
76
|
+
"\u00A0",
|
|
77
|
+
"*"))),
|
|
78
|
+
React.createElement("div", { className: "Input-container" },
|
|
79
|
+
React.createElement("div", { className: "Input-input ".concat(style === "password" ? "Input-password-input" : "") },
|
|
80
|
+
React.createElement("input", { ref: inputRef, type: style === "password" && !isPasswordVisible ? "password" : type, placeholder: placeholder, className: "Input-placeholder", value: value, onChange: function (e) { handleChange(e); rowChange && rowChange(e); }, onBlur: handleBlur })),
|
|
81
|
+
renderEndIcon(),
|
|
82
|
+
error && isTouched && (React.createElement("div", { className: "error-message" },
|
|
83
|
+
React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))))));
|
|
84
|
+
});
|
|
85
|
+
Input.displayName = "Input";
|
|
86
|
+
export default Input;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const ActionsData: {};
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { Input as component };
|
|
5
|
+
export let tags: string[];
|
|
6
|
+
export let excludeStories: RegExp;
|
|
7
|
+
export namespace args {
|
|
8
|
+
let endIcon: string;
|
|
9
|
+
}
|
|
10
|
+
export namespace argTypes {
|
|
11
|
+
export namespace style {
|
|
12
|
+
namespace control {
|
|
13
|
+
let type: string;
|
|
14
|
+
let options: string[];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export namespace endIcon_1 {
|
|
18
|
+
export namespace control_1 {
|
|
19
|
+
let type_1: string;
|
|
20
|
+
export { type_1 as type };
|
|
21
|
+
}
|
|
22
|
+
export { control_1 as control };
|
|
23
|
+
}
|
|
24
|
+
export { endIcon_1 as endIcon };
|
|
25
|
+
export namespace isRequired {
|
|
26
|
+
let control_2: string;
|
|
27
|
+
export { control_2 as control };
|
|
28
|
+
}
|
|
29
|
+
export namespace validate {
|
|
30
|
+
export namespace control_3 {
|
|
31
|
+
let type_2: string;
|
|
32
|
+
export { type_2 as type };
|
|
33
|
+
}
|
|
34
|
+
export { control_3 as control };
|
|
35
|
+
}
|
|
36
|
+
export namespace variant {
|
|
37
|
+
export namespace control_4 {
|
|
38
|
+
let type_3: string;
|
|
39
|
+
export { type_3 as type };
|
|
40
|
+
let options_1: string[];
|
|
41
|
+
export { options_1 as options };
|
|
42
|
+
}
|
|
43
|
+
export { control_4 as control };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export namespace parameters {
|
|
47
|
+
namespace backgrounds {
|
|
48
|
+
let _default: string;
|
|
49
|
+
export { _default as default };
|
|
50
|
+
export let values: {
|
|
51
|
+
name: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}[];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export default _default;
|
|
58
|
+
export const Default: any;
|
|
59
|
+
export const Variation: any;
|
|
60
|
+
export const Password: any;
|
|
61
|
+
export const WithValidation: any;
|
|
62
|
+
import Input from "./Input";
|
|
@@ -0,0 +1,101 @@
|
|
|
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 Input from "./Input";
|
|
15
|
+
import "../../../styles/global.css";
|
|
16
|
+
import "../../../styles/icons.css";
|
|
17
|
+
export var ActionsData = {};
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Atoms/Inputs/Input",
|
|
20
|
+
component: Input,
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
excludeStories: /.*Data$/,
|
|
23
|
+
args: __assign(__assign({}, ActionsData), { endIcon: "allaw-icon-edit-2" }),
|
|
24
|
+
argTypes: {
|
|
25
|
+
style: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "radio",
|
|
28
|
+
options: ["default", "variation", "password"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
endIcon: {
|
|
32
|
+
control: {
|
|
33
|
+
type: "text",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
isRequired: {
|
|
37
|
+
control: "boolean",
|
|
38
|
+
},
|
|
39
|
+
validate: {
|
|
40
|
+
control: {
|
|
41
|
+
type: "text",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
variant: {
|
|
45
|
+
control: {
|
|
46
|
+
type: "select",
|
|
47
|
+
options: ["bold", "semiBold", "medium"],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
parameters: {
|
|
52
|
+
backgrounds: {
|
|
53
|
+
default: "light",
|
|
54
|
+
values: [
|
|
55
|
+
{ name: "light", value: "#ffffff" },
|
|
56
|
+
{ name: "grey", value: "#728ea7" },
|
|
57
|
+
{ name: "figma", value: "#404040" },
|
|
58
|
+
{ name: "dark", value: "#171e25" },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
var Template = function (args) {
|
|
64
|
+
var methods = useForm();
|
|
65
|
+
return (React.createElement(FormProvider, __assign({}, methods),
|
|
66
|
+
React.createElement(Input, __assign({}, args))));
|
|
67
|
+
};
|
|
68
|
+
export var Default = Template.bind({});
|
|
69
|
+
Default.args = {
|
|
70
|
+
name: "defaultInput",
|
|
71
|
+
title: "Nommer le rendez-vous",
|
|
72
|
+
placeholder: "Entrez le motif du rendez-vous",
|
|
73
|
+
style: "default",
|
|
74
|
+
isRequired: false,
|
|
75
|
+
variant: "medium",
|
|
76
|
+
};
|
|
77
|
+
export var Variation = Template.bind({});
|
|
78
|
+
Variation.args = {
|
|
79
|
+
name: "variationInput",
|
|
80
|
+
title: "Adresse e-mail",
|
|
81
|
+
placeholder: "Entrez le motif du rendez-vous",
|
|
82
|
+
style: "variation",
|
|
83
|
+
isRequired: true,
|
|
84
|
+
};
|
|
85
|
+
export var Password = Template.bind({});
|
|
86
|
+
Password.args = {
|
|
87
|
+
name: "passwordInput",
|
|
88
|
+
title: "Mot de passe",
|
|
89
|
+
placeholder: "Entrez le nouveau mot de passe",
|
|
90
|
+
style: "password",
|
|
91
|
+
isRequired: false,
|
|
92
|
+
};
|
|
93
|
+
export var WithValidation = Template.bind({});
|
|
94
|
+
WithValidation.args = {
|
|
95
|
+
name: "validationInput",
|
|
96
|
+
title: "Email",
|
|
97
|
+
placeholder: "Entrez votre email",
|
|
98
|
+
style: "default",
|
|
99
|
+
isRequired: true,
|
|
100
|
+
validate: "email",
|
|
101
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./SearchBar.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
export interface SearchBarProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
endIcon?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const SearchBar: React.FC<SearchBarProps>;
|
|
12
|
+
export default SearchBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import "./SearchBar.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
import "../../../styles/icons.css";
|
|
5
|
+
var SearchBar = function (_a) {
|
|
6
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? "Faites une recherche" : _b, _c = _a.endIcon, endIcon = _c === void 0 ? "allaw-icon-search" : _c, _d = _a.value, controlledValue = _d === void 0 ? "" : _d, onChange = _a.onChange;
|
|
7
|
+
var _e = useState(controlledValue), value = _e[0], setValue = _e[1];
|
|
8
|
+
var handleChange = function (event) {
|
|
9
|
+
var newValue = event.target.value;
|
|
10
|
+
setValue(newValue);
|
|
11
|
+
if (onChange) {
|
|
12
|
+
onChange(newValue);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return (React.createElement("div", { className: "SearchBar" },
|
|
16
|
+
React.createElement("input", { type: "text", placeholder: placeholder, className: "SearchBar-placeholder", value: controlledValue || value, onChange: handleChange }),
|
|
17
|
+
React.createElement("button", { className: "SearchBar-icon-button" },
|
|
18
|
+
React.createElement("i", { className: endIcon }))));
|
|
19
|
+
};
|
|
20
|
+
export default SearchBar;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export namespace ActionsData {
|
|
2
|
+
namespace onChange {
|
|
3
|
+
let action: string;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
declare namespace _default {
|
|
7
|
+
export let title: string;
|
|
8
|
+
export { SearchBar as component };
|
|
9
|
+
export let tags: string[];
|
|
10
|
+
export let excludeStories: RegExp;
|
|
11
|
+
export namespace args {
|
|
12
|
+
let endIcon: string;
|
|
13
|
+
}
|
|
14
|
+
export namespace argTypes {
|
|
15
|
+
export namespace placeholder {
|
|
16
|
+
namespace control {
|
|
17
|
+
let type: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export namespace endIcon_1 {
|
|
21
|
+
export namespace control_1 {
|
|
22
|
+
let type_1: string;
|
|
23
|
+
export { type_1 as type };
|
|
24
|
+
}
|
|
25
|
+
export { control_1 as control };
|
|
26
|
+
}
|
|
27
|
+
export { endIcon_1 as endIcon };
|
|
28
|
+
export namespace value {
|
|
29
|
+
export namespace control_2 {
|
|
30
|
+
let type_2: string;
|
|
31
|
+
export { type_2 as type };
|
|
32
|
+
}
|
|
33
|
+
export { control_2 as control };
|
|
34
|
+
}
|
|
35
|
+
export namespace onChange_1 {
|
|
36
|
+
let action_1: string;
|
|
37
|
+
export { action_1 as action };
|
|
38
|
+
}
|
|
39
|
+
export { onChange_1 as onChange };
|
|
40
|
+
}
|
|
41
|
+
export namespace parameters {
|
|
42
|
+
namespace backgrounds {
|
|
43
|
+
let _default: string;
|
|
44
|
+
export { _default as default };
|
|
45
|
+
export let values: {
|
|
46
|
+
name: string;
|
|
47
|
+
value: string;
|
|
48
|
+
}[];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export default _default;
|
|
53
|
+
export const Default: any;
|
|
54
|
+
import SearchBar from "./SearchBar";
|