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,66 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from "react";
|
|
13
|
+
import TabNavigation from "./TabNavigation";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Atoms/Buttons/TabNavigation",
|
|
17
|
+
component: TabNavigation,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
argTypes: {
|
|
20
|
+
tabs: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "object",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select",
|
|
28
|
+
options: ["small", "normal"],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
control: {
|
|
33
|
+
type: "select",
|
|
34
|
+
options: ["normal", "round"],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
parameters: {
|
|
39
|
+
backgrounds: {
|
|
40
|
+
default: "light",
|
|
41
|
+
values: [
|
|
42
|
+
{ name: "light", value: "#ffffff" },
|
|
43
|
+
{ name: "grey", value: "#728ea7" },
|
|
44
|
+
{ name: "figma", value: "#404040" },
|
|
45
|
+
{ name: "dark", value: "#171e25" },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
var Template = function (args) { return React.createElement(TabNavigation, __assign({}, args)); };
|
|
51
|
+
export var Default = Template.bind({});
|
|
52
|
+
Default.args = {
|
|
53
|
+
tabs: [
|
|
54
|
+
{ label: "Tous", isActive: true, hasNotification: false },
|
|
55
|
+
{ label: "Notes", isActive: false, hasNotification: false },
|
|
56
|
+
{ label: "Documents", isActive: false, hasNotification: true },
|
|
57
|
+
{ label: "Factures", isActive: false, hasNotification: false },
|
|
58
|
+
],
|
|
59
|
+
onTabClick: function (index) { return console.log("Tab ".concat(index, " cliqu\u00E9")); },
|
|
60
|
+
size: "normal",
|
|
61
|
+
variant: "normal",
|
|
62
|
+
};
|
|
63
|
+
export var Round = Template.bind({});
|
|
64
|
+
Round.args = __assign(__assign({}, Default.args), { variant: "round" });
|
|
65
|
+
export var SmallRound = Template.bind({});
|
|
66
|
+
SmallRound.args = __assign(__assign({}, Default.args), { size: "small", variant: "round" });
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
border: none;
|
|
9
9
|
background: none;
|
|
10
10
|
cursor: pointer;
|
|
11
|
-
transition:
|
|
11
|
+
/* transition:
|
|
12
12
|
color 0.15s,
|
|
13
|
-
border-bottom 0.15s;
|
|
13
|
+
border-bottom 0.15s; */
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.tertiary-button-default {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.tertiary-button-default:hover {
|
|
22
22
|
color: var(--primary-black, #171e25);
|
|
23
|
-
border-bottom: none;
|
|
23
|
+
border-bottom: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.tertiary-button-variant {
|
|
@@ -30,7 +30,12 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.tertiary-button-variant:hover {
|
|
33
|
-
color: var(--Primary-Dark-grey, var(--
|
|
33
|
+
color: var(--Primary-Dark-grey, var(--noir, #171e25));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tertiary-button-variant:hover .tertiary-button-icon,
|
|
37
|
+
.tertiary-button-variant:hover .tertiary-button-label {
|
|
38
|
+
color: var(--Primary-Dark-grey, var(--noir, #171e25));
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
.tertiary-button-icon {
|
|
@@ -40,6 +45,8 @@
|
|
|
40
45
|
width: 16px;
|
|
41
46
|
height: 16px;
|
|
42
47
|
padding: 3.333px;
|
|
48
|
+
color: inherit;
|
|
49
|
+
/* transition: color 0.15s; */
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
.tertiary-button-label {
|
|
@@ -48,16 +55,18 @@
|
|
|
48
55
|
font-style: normal;
|
|
49
56
|
line-height: normal;
|
|
50
57
|
letter-spacing: 0em;
|
|
58
|
+
color: inherit;
|
|
59
|
+
/* transition: color 0.15s; */
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
/* Styles spécifiques pour variant=false */
|
|
54
63
|
.tertiary-button-default .tertiary-button-label {
|
|
55
|
-
font-weight: 700;
|
|
64
|
+
font-weight: 700;
|
|
56
65
|
color: var(--Primary-Mid-black, var(--primary-black, #171e25));
|
|
57
66
|
}
|
|
58
67
|
|
|
59
68
|
/* Styles spécifiques pour variant=true */
|
|
60
69
|
.tertiary-button-variant .tertiary-button-label {
|
|
61
|
-
font-weight: 400;
|
|
70
|
+
font-weight: 400;
|
|
62
71
|
color: var(--Primary-Dark-grey, var(--dark-grey, #456073));
|
|
63
72
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TertiaryButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface TertiaryButtonProps {
|
|
5
|
+
startIcon?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
variant?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const TertiaryButton: React.FC<TertiaryButtonProps>;
|
|
11
|
+
export default TertiaryButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./TertiaryButton.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var TertiaryButton = function (_a) {
|
|
5
|
+
var startIcon = _a.startIcon, label = _a.label, _b = _a.variant, variant = _b === void 0 ? false : _b, onClick = _a.onClick;
|
|
6
|
+
return (React.createElement("button", { type: "button", className: "tertiary-button ".concat(variant ? "tertiary-button-variant" : "tertiary-button-default"), onClick: onClick },
|
|
7
|
+
startIcon && React.createElement("span", { className: "tertiary-button-icon ".concat(startIcon) }),
|
|
8
|
+
React.createElement("span", { className: "tertiary-button-label" }, label)));
|
|
9
|
+
};
|
|
10
|
+
export default TertiaryButton;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export namespace ActionsData {
|
|
2
|
+
function onClick(): void;
|
|
3
|
+
}
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export let title: string;
|
|
6
|
+
export { TertiaryButton as component };
|
|
7
|
+
export let tags: string[];
|
|
8
|
+
export let excludeStories: RegExp;
|
|
9
|
+
export namespace args { }
|
|
10
|
+
export namespace argTypes {
|
|
11
|
+
export namespace startIcon {
|
|
12
|
+
namespace control {
|
|
13
|
+
let type: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export namespace variant {
|
|
17
|
+
export namespace control_1 {
|
|
18
|
+
let type_1: string;
|
|
19
|
+
export { type_1 as type };
|
|
20
|
+
}
|
|
21
|
+
export { control_1 as control };
|
|
22
|
+
}
|
|
23
|
+
export namespace onClick_1 {
|
|
24
|
+
let action: string;
|
|
25
|
+
}
|
|
26
|
+
export { onClick_1 as onClick };
|
|
27
|
+
}
|
|
28
|
+
export namespace parameters {
|
|
29
|
+
namespace backgrounds {
|
|
30
|
+
let _default: string;
|
|
31
|
+
export { _default as default };
|
|
32
|
+
export let values: {
|
|
33
|
+
name: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default _default;
|
|
40
|
+
export const Default: any;
|
|
41
|
+
export const Variant: any;
|
|
42
|
+
import TertiaryButton from "./TertiaryButton";
|
|
@@ -0,0 +1,60 @@
|
|
|
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 TertiaryButton from "./TertiaryButton";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {
|
|
16
|
+
onClick: function () { return console.log("Button clicked"); },
|
|
17
|
+
};
|
|
18
|
+
export default {
|
|
19
|
+
title: "Components/Atoms/Buttons/TertiaryButton",
|
|
20
|
+
component: TertiaryButton,
|
|
21
|
+
tags: ["autodocs"],
|
|
22
|
+
excludeStories: /.*Data$/,
|
|
23
|
+
args: __assign({}, ActionsData),
|
|
24
|
+
argTypes: {
|
|
25
|
+
startIcon: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "text",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
variant: {
|
|
31
|
+
control: {
|
|
32
|
+
type: "boolean",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
onClick: { action: "clicked" },
|
|
36
|
+
},
|
|
37
|
+
parameters: {
|
|
38
|
+
backgrounds: {
|
|
39
|
+
default: "light",
|
|
40
|
+
values: [
|
|
41
|
+
{ name: "light", value: "#ffffff" },
|
|
42
|
+
{ name: "grey", value: "#728ea7" },
|
|
43
|
+
{ name: "dark", value: "#171e25" },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
var Template = function (args) { return React.createElement(TertiaryButton, __assign({}, args)); };
|
|
49
|
+
export var Default = Template.bind({});
|
|
50
|
+
Default.args = {
|
|
51
|
+
label: "Annuler le RDV",
|
|
52
|
+
startIcon: "allaw-icon-close",
|
|
53
|
+
variant: false,
|
|
54
|
+
};
|
|
55
|
+
export var Variant = Template.bind({});
|
|
56
|
+
Variant.args = {
|
|
57
|
+
label: "Voir plus d'horaire",
|
|
58
|
+
startIcon: "allaw-icon-chevron-down",
|
|
59
|
+
variant: true,
|
|
60
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { default as FavoriteToggle } from "./FavoriteToggle";
|
|
2
|
+
export { default as FilterButtonPrimary } from "./FilterButtonPrimary";
|
|
3
|
+
export { default as FilterButton } from "./FilterButton";
|
|
4
|
+
export { default as GhostButton } from "./GhostButton";
|
|
5
|
+
export { default as IconButton } from "./IconButton";
|
|
6
|
+
export { default as PendingDocuments } from "./PendingDocuments";
|
|
7
|
+
export { default as PrimaryButton } from "./PrimaryButton";
|
|
8
|
+
export { default as SecondaryButton } from "./SecondaryButton";
|
|
9
|
+
export { default as TabNavigation } from "./TabNavigation";
|
|
10
|
+
export { default as TertiaryButton } from "./TertiaryButton";
|
|
11
|
+
export { default as OAuthProviderButton } from "./OAuthProviderButton";
|
|
12
|
+
export type { FavoriteToggleProps } from "./FavoriteToggle";
|
|
13
|
+
export type { FilterButtonProps } from "./FilterButton";
|
|
14
|
+
export type { GhostButtonProps } from "./GhostButton";
|
|
15
|
+
export type { IconButtonProps } from "./IconButton";
|
|
16
|
+
export type { PendingDocumentsProps } from "./PendingDocuments";
|
|
17
|
+
export type { PrimaryButtonProps } from "./PrimaryButton";
|
|
18
|
+
export type { SecondaryButtonProps } from "./SecondaryButton";
|
|
19
|
+
export type { TabNavigationProps } from "./TabNavigation";
|
|
20
|
+
export type { TertiaryButtonProps } from "./TertiaryButton";
|
|
21
|
+
export type { OAuthProviderButtonProps } from "./OAuthProviderButton";
|
|
22
|
+
export type { FilterButtonPrimaryProps } from "./FilterButtonPrimary";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as FavoriteToggle } from "./FavoriteToggle";
|
|
2
|
+
export { default as FilterButtonPrimary } from "./FilterButtonPrimary";
|
|
3
|
+
export { default as FilterButton } from "./FilterButton";
|
|
4
|
+
export { default as GhostButton } from "./GhostButton";
|
|
5
|
+
export { default as IconButton } from "./IconButton";
|
|
6
|
+
export { default as PendingDocuments } from "./PendingDocuments";
|
|
7
|
+
export { default as PrimaryButton } from "./PrimaryButton";
|
|
8
|
+
export { default as SecondaryButton } from "./SecondaryButton";
|
|
9
|
+
export { default as TabNavigation } from "./TabNavigation";
|
|
10
|
+
export { default as TertiaryButton } from "./TertiaryButton";
|
|
11
|
+
export { default as OAuthProviderButton } from "./OAuthProviderButton";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.pending_documents {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 8px;
|
|
@@ -9,22 +9,23 @@
|
|
|
9
9
|
transition: transform 0.03s;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
12
|
+
.pending_documents_pending {
|
|
13
13
|
background: var(--tag-red-light, #fdf2f2);
|
|
14
|
+
/* background: red; */
|
|
14
15
|
color: var(--Tags-Rouge, #e15151);
|
|
15
16
|
cursor: pointer;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
.
|
|
19
|
+
.pending_documents_pending:active {
|
|
19
20
|
transform: scale(0.98);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
.
|
|
23
|
+
.pending_documents_none {
|
|
23
24
|
background: var(--tag-blue-light, #daebfb);
|
|
24
25
|
color: var(--Tags-Bleu-fonc, var(--tag-blue, #1985e8));
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
.
|
|
28
|
+
.pending_documents_icon {
|
|
28
29
|
display: flex;
|
|
29
30
|
align-items: center;
|
|
30
31
|
justify-content: center;
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
font-size: 24px;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
.
|
|
38
|
+
.pending_documents_label {
|
|
38
39
|
font-family: "Open Sans", sans-serif;
|
|
39
40
|
font-size: 16px;
|
|
40
41
|
font-style: normal;
|
|
@@ -44,10 +45,10 @@
|
|
|
44
45
|
color: inherit;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
.
|
|
48
|
+
.pending_documents_pending .pending_documents_label {
|
|
48
49
|
color: var(--Tags-Rouge, #e15151);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
.
|
|
52
|
+
.pending_documents_none .pending_documents_label {
|
|
52
53
|
color: var(--Tags-Bleu-fonc, var(--tag-blue, #1985e8));
|
|
53
54
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Checkbox.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
export interface CheckboxProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
onChange?: (checked: boolean) => void;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: "default" | "small";
|
|
10
|
+
style?: "default" | "light";
|
|
11
|
+
markType?: "cross" | "check";
|
|
12
|
+
}
|
|
13
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
14
|
+
export default Checkbox;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import "./Checkbox.css";
|
|
3
|
+
import "../../../styles/global.css";
|
|
4
|
+
var Checkbox = function (_a) {
|
|
5
|
+
var id = _a.id, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.color, color = _c === void 0 ? "noir" : _c, _d = _a.size, size = _d === void 0 ? "default" : _d, _e = _a.style, style = _e === void 0 ? "default" : _e, _f = _a.markType, markType = _f === void 0 ? "cross" : _f;
|
|
6
|
+
var _g = useState(checked), isChecked = _g[0], setIsChecked = _g[1];
|
|
7
|
+
var handleClick = function (e) {
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
e.stopPropagation();
|
|
10
|
+
var newChecked = !isChecked;
|
|
11
|
+
setIsChecked(newChecked);
|
|
12
|
+
if (onChange) {
|
|
13
|
+
onChange(newChecked);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var checkboxColor = style === "light" ? "light" : color;
|
|
17
|
+
return (React.createElement("button", { id: id, className: "checkbox ".concat(isChecked ? "checkbox-pressed" : "checkbox-default", " ").concat("checkbox-".concat(checkboxColor), " ").concat(size === "small" ? "checkbox-small" : "", " ").concat(style === "light" ? "checkbox-light" : ""), onClick: handleClick }, isChecked && (React.createElement("span", { className: "checkbox-icon ".concat(markType === "cross" ? "allaw-icon-close" : "allaw-icon-check", " ").concat("checkbox-icon-".concat(checkboxColor), " ").concat(style === "light" ? "checkbox-icon-light" : "") }))));
|
|
18
|
+
};
|
|
19
|
+
export default Checkbox;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export const ActionsData: {};
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { Checkbox as component };
|
|
5
|
+
export let tags: string[];
|
|
6
|
+
export let excludeStories: RegExp;
|
|
7
|
+
export namespace args {
|
|
8
|
+
let color: string;
|
|
9
|
+
}
|
|
10
|
+
export namespace argTypes {
|
|
11
|
+
export namespace checked {
|
|
12
|
+
namespace control {
|
|
13
|
+
let type: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export namespace color_1 {
|
|
17
|
+
export namespace control_1 {
|
|
18
|
+
let type_1: string;
|
|
19
|
+
export { type_1 as type };
|
|
20
|
+
export let options: string[];
|
|
21
|
+
}
|
|
22
|
+
export { control_1 as control };
|
|
23
|
+
}
|
|
24
|
+
export { color_1 as color };
|
|
25
|
+
export namespace size {
|
|
26
|
+
export namespace control_2 {
|
|
27
|
+
let type_2: string;
|
|
28
|
+
export { type_2 as type };
|
|
29
|
+
let options_1: string[];
|
|
30
|
+
export { options_1 as options };
|
|
31
|
+
}
|
|
32
|
+
export { control_2 as control };
|
|
33
|
+
}
|
|
34
|
+
export namespace style {
|
|
35
|
+
export namespace control_3 {
|
|
36
|
+
let type_3: string;
|
|
37
|
+
export { type_3 as type };
|
|
38
|
+
let options_2: string[];
|
|
39
|
+
export { options_2 as options };
|
|
40
|
+
}
|
|
41
|
+
export { control_3 as control };
|
|
42
|
+
}
|
|
43
|
+
export namespace markType {
|
|
44
|
+
export namespace control_4 {
|
|
45
|
+
let type_4: string;
|
|
46
|
+
export { type_4 as type };
|
|
47
|
+
let options_3: string[];
|
|
48
|
+
export { options_3 as options };
|
|
49
|
+
}
|
|
50
|
+
export { control_4 as control };
|
|
51
|
+
}
|
|
52
|
+
export namespace onChange {
|
|
53
|
+
namespace table {
|
|
54
|
+
let disable: boolean;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export namespace parameters {
|
|
59
|
+
namespace backgrounds {
|
|
60
|
+
let _default: string;
|
|
61
|
+
export { _default as default };
|
|
62
|
+
export let values: {
|
|
63
|
+
name: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}[];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export default _default;
|
|
70
|
+
export const Default: any;
|
|
71
|
+
export const Pressed: any;
|
|
72
|
+
export const Small: any;
|
|
73
|
+
export const SmallPressed: any;
|
|
74
|
+
export const White: any;
|
|
75
|
+
export const Light: any;
|
|
76
|
+
export const LightPressed: any;
|
|
77
|
+
import Checkbox from "./Checkbox";
|
|
@@ -0,0 +1,123 @@
|
|
|
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 Checkbox from "./Checkbox";
|
|
14
|
+
import "../../../styles/global.css";
|
|
15
|
+
export var ActionsData = {};
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Atoms/Checkboxes/Checkbox",
|
|
18
|
+
component: Checkbox,
|
|
19
|
+
tags: ["autodocs"],
|
|
20
|
+
excludeStories: /.*Data$/,
|
|
21
|
+
args: __assign(__assign({}, ActionsData), { color: "noir" }),
|
|
22
|
+
argTypes: {
|
|
23
|
+
checked: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "boolean",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
color: {
|
|
29
|
+
control: {
|
|
30
|
+
type: "select",
|
|
31
|
+
options: [
|
|
32
|
+
"bleu-allaw",
|
|
33
|
+
"mid-grey",
|
|
34
|
+
"dark-grey",
|
|
35
|
+
"noir",
|
|
36
|
+
"pure-white",
|
|
37
|
+
"grey-venom",
|
|
38
|
+
"venom-grey-dark",
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
size: {
|
|
43
|
+
control: {
|
|
44
|
+
type: "select",
|
|
45
|
+
options: ["default", "small"],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
style: {
|
|
49
|
+
control: {
|
|
50
|
+
type: "select",
|
|
51
|
+
options: ["default", "light"],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
markType: {
|
|
55
|
+
control: {
|
|
56
|
+
type: "select",
|
|
57
|
+
options: ["cross", "check"],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
onChange: {
|
|
61
|
+
table: {
|
|
62
|
+
disable: true,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
parameters: {
|
|
67
|
+
backgrounds: {
|
|
68
|
+
default: "light",
|
|
69
|
+
values: [
|
|
70
|
+
{ name: "light", value: "#ffffff" },
|
|
71
|
+
{ name: "grey", value: "#728ea7" },
|
|
72
|
+
{ name: "figma", value: "#404040" },
|
|
73
|
+
{ name: "dark", value: "#171e25" },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
var Template = function (args) {
|
|
79
|
+
return React.createElement(Checkbox, __assign({}, args));
|
|
80
|
+
};
|
|
81
|
+
export var Default = Template.bind({});
|
|
82
|
+
Default.args = {
|
|
83
|
+
checked: false,
|
|
84
|
+
size: "default",
|
|
85
|
+
style: "default",
|
|
86
|
+
};
|
|
87
|
+
export var Pressed = Template.bind({});
|
|
88
|
+
Pressed.args = {
|
|
89
|
+
checked: true,
|
|
90
|
+
size: "default",
|
|
91
|
+
style: "default",
|
|
92
|
+
};
|
|
93
|
+
export var Small = Template.bind({});
|
|
94
|
+
Small.args = {
|
|
95
|
+
checked: false,
|
|
96
|
+
size: "small",
|
|
97
|
+
style: "default",
|
|
98
|
+
};
|
|
99
|
+
export var SmallPressed = Template.bind({});
|
|
100
|
+
SmallPressed.args = {
|
|
101
|
+
checked: true,
|
|
102
|
+
size: "small",
|
|
103
|
+
style: "default",
|
|
104
|
+
};
|
|
105
|
+
export var White = Template.bind({});
|
|
106
|
+
White.args = {
|
|
107
|
+
checked: false,
|
|
108
|
+
color: "pure-white",
|
|
109
|
+
size: "default",
|
|
110
|
+
style: "default",
|
|
111
|
+
};
|
|
112
|
+
export var Light = Template.bind({});
|
|
113
|
+
Light.args = {
|
|
114
|
+
checked: false,
|
|
115
|
+
size: "default",
|
|
116
|
+
style: "light",
|
|
117
|
+
};
|
|
118
|
+
export var LightPressed = Template.bind({});
|
|
119
|
+
LightPressed.args = {
|
|
120
|
+
checked: true,
|
|
121
|
+
size: "default",
|
|
122
|
+
style: "light",
|
|
123
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from "./Checkbox";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-datepicker/dist/react-datepicker.css";
|
|
3
|
+
import "./datepicker.css";
|
|
4
|
+
import "../../../styles/global.css";
|
|
5
|
+
export interface DatepickerProps {
|
|
6
|
+
value?: Date;
|
|
7
|
+
onChange?: (date: Date | undefined) => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
yearDropdownItemNumber?: number;
|
|
10
|
+
maxDaysInPast?: number;
|
|
11
|
+
minDate?: Date;
|
|
12
|
+
}
|
|
13
|
+
declare const Datepicker: React.FC<DatepickerProps>;
|
|
14
|
+
export default Datepicker;
|