allaw-ui 3.4.1 → 3.4.2
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/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
- package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
- package/dist/app/[job]/[profile]/page.d.ts +0 -0
- package/dist/app/[job]/[profile]/page.js +0 -0
- package/dist/components/atoms/buttons/ActionButton.d.ts +0 -18
- package/dist/components/atoms/buttons/ActionButton.js +0 -116
- package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -108
- package/dist/components/atoms/buttons/ActionButton.stories.js +0 -167
- package/dist/components/atoms/buttons/ActionCircleButton.d.ts +0 -9
- package/dist/components/atoms/buttons/ActionCircleButton.js +0 -23
- package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
- package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
- package/dist/components/atoms/buttons/AgendaSlot.d.ts +0 -10
- package/dist/components/atoms/buttons/AgendaSlot.js +0 -7
- package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
- package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
- package/dist/components/atoms/buttons/FavoriteToggle.d.ts +0 -8
- package/dist/components/atoms/buttons/FavoriteToggle.js +0 -11
- package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
- package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
- package/dist/components/atoms/buttons/FilterButton.d.ts +0 -9
- package/dist/components/atoms/buttons/FilterButton.js +0 -9
- package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
- package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
- package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +0 -9
- package/dist/components/atoms/buttons/FilterButtonPrimary.js +0 -46
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
- package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
- package/dist/components/atoms/buttons/GhostButton.d.ts +0 -14
- package/dist/components/atoms/buttons/GhostButton.js +0 -11
- package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
- package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
- package/dist/components/atoms/buttons/IconButton.d.ts +0 -11
- package/dist/components/atoms/buttons/IconButton.js +0 -14
- package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -49
- package/dist/components/atoms/buttons/IconButton.stories.js +0 -88
- package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +0 -12
- package/dist/components/atoms/buttons/OAuthProviderButton.js +0 -165
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -56
- package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -130
- package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -9
- package/dist/components/atoms/buttons/PendingDocuments.js +0 -15
- package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
- package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
- package/dist/components/atoms/buttons/PrimaryButton.d.ts +0 -19
- package/dist/components/atoms/buttons/PrimaryButton.js +0 -117
- package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -108
- package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -168
- package/dist/components/atoms/buttons/SecondaryButton.d.ts +0 -22
- package/dist/components/atoms/buttons/SecondaryButton.js +0 -151
- package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
- package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
- package/dist/components/atoms/buttons/TabNavigation.d.ts +0 -17
- package/dist/components/atoms/buttons/TabNavigation.js +0 -68
- package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
- package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
- package/dist/components/atoms/buttons/TertiaryButton.d.ts +0 -15
- package/dist/components/atoms/buttons/TertiaryButton.js +0 -23
- package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
- package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
- package/dist/components/atoms/buttons/index.d.ts +0 -24
- package/dist/components/atoms/buttons/index.js +0 -12
- package/dist/components/atoms/checkboxes/Checkbox.d.ts +0 -15
- package/dist/components/atoms/checkboxes/Checkbox.js +0 -20
- package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
- package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
- package/dist/components/atoms/checkboxes/index.d.ts +0 -2
- package/dist/components/atoms/checkboxes/index.js +0 -1
- package/dist/components/atoms/datepickers/Datepicker.d.ts +0 -15
- package/dist/components/atoms/datepickers/Datepicker.js +0 -151
- package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -90
- package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -67
- package/dist/components/atoms/datepickers/index.d.ts +0 -2
- package/dist/components/atoms/datepickers/index.js +0 -1
- package/dist/components/atoms/featureCard/featureCard.d.ts +0 -15
- package/dist/components/atoms/featureCard/featureCard.js +0 -16
- package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
- package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
- package/dist/components/atoms/featureCard/index.d.ts +0 -2
- package/dist/components/atoms/featureCard/index.js +0 -1
- package/dist/components/atoms/filter/Filter.d.ts +0 -17
- package/dist/components/atoms/filter/Filter.js +0 -70
- package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
- package/dist/components/atoms/filter/Filter.stories.js +0 -77
- package/dist/components/atoms/filter/index.d.ts +0 -2
- package/dist/components/atoms/filter/index.js +0 -1
- package/dist/components/atoms/filters/SingleFilter.d.ts +0 -16
- package/dist/components/atoms/filters/SingleFilter.js +0 -99
- package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -7
- package/dist/components/atoms/filters/SingleFilter.stories.js +0 -33
- package/dist/components/atoms/filters/index.d.ts +0 -2
- package/dist/components/atoms/filters/index.js +0 -1
- package/dist/components/atoms/inputs/Input.d.ts +0 -29
- package/dist/components/atoms/inputs/Input.js +0 -94
- package/dist/components/atoms/inputs/Input.stories.d.ts +0 -63
- package/dist/components/atoms/inputs/Input.stories.js +0 -110
- package/dist/components/atoms/inputs/SearchBar.d.ts +0 -12
- package/dist/components/atoms/inputs/SearchBar.js +0 -20
- package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -54
- package/dist/components/atoms/inputs/SearchBar.stories.js +0 -67
- package/dist/components/atoms/inputs/TextArea.d.ts +0 -25
- package/dist/components/atoms/inputs/TextArea.js +0 -77
- package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
- package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
- package/dist/components/atoms/inputs/VerificationCodeInput.d.ts +0 -14
- package/dist/components/atoms/inputs/VerificationCodeInput.js +0 -155
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
- package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
- package/dist/components/atoms/inputs/index.d.ts +0 -8
- package/dist/components/atoms/inputs/index.js +0 -4
- package/dist/components/atoms/progressBars/ProgressBar.d.ts +0 -18
- package/dist/components/atoms/progressBars/ProgressBar.js +0 -26
- package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
- package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
- package/dist/components/atoms/progressBars/index.d.ts +0 -2
- package/dist/components/atoms/progressBars/index.js +0 -1
- package/dist/components/atoms/radios/RadioButton.d.ts +0 -12
- package/dist/components/atoms/radios/RadioButton.js +0 -10
- package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -36
- package/dist/components/atoms/radios/RadioButton.stories.js +0 -75
- package/dist/components/atoms/radios/SelectCard.d.ts +0 -24
- package/dist/components/atoms/radios/SelectCard.js +0 -100
- package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
- package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
- package/dist/components/atoms/radios/index.d.ts +0 -4
- package/dist/components/atoms/radios/index.js +0 -2
- package/dist/components/atoms/selects/ComboBox.d.ts +0 -28
- package/dist/components/atoms/selects/ComboBox.js +0 -172
- package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
- package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
- package/dist/components/atoms/selects/Select.d.ts +0 -25
- package/dist/components/atoms/selects/Select.js +0 -240
- package/dist/components/atoms/selects/Select.stories.d.ts +0 -95
- package/dist/components/atoms/selects/Select.stories.js +0 -161
- package/dist/components/atoms/selects/SelectableListItem.d.ts +0 -14
- package/dist/components/atoms/selects/SelectableListItem.js +0 -19
- package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
- package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
- package/dist/components/atoms/selects/index.d.ts +0 -6
- package/dist/components/atoms/selects/index.js +0 -3
- package/dist/components/atoms/tags/AppointementStatusTag.d.ts +0 -8
- package/dist/components/atoms/tags/AppointementStatusTag.js +0 -42
- package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
- package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
- package/dist/components/atoms/tags/FolderStatusTag.d.ts +0 -8
- package/dist/components/atoms/tags/FolderStatusTag.js +0 -25
- package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
- package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
- package/dist/components/atoms/tags/OtherStatusTag.d.ts +0 -13
- package/dist/components/atoms/tags/OtherStatusTag.js +0 -15
- package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -97
- package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -151
- package/dist/components/atoms/tags/index.d.ts +0 -6
- package/dist/components/atoms/tags/index.js +0 -3
- package/dist/components/atoms/typography/CardDate.d.ts +0 -11
- package/dist/components/atoms/typography/CardDate.js +0 -52
- package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
- package/dist/components/atoms/typography/CardDate.stories.js +0 -103
- package/dist/components/atoms/typography/Heading.d.ts +0 -16
- package/dist/components/atoms/typography/Heading.js +0 -39
- package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
- package/dist/components/atoms/typography/Heading.stories.js +0 -150
- package/dist/components/atoms/typography/Link.d.ts +0 -15
- package/dist/components/atoms/typography/Link.js +0 -35
- package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
- package/dist/components/atoms/typography/Link.stories.js +0 -164
- package/dist/components/atoms/typography/Paragraph.d.ts +0 -14
- package/dist/components/atoms/typography/Paragraph.js +0 -33
- package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
- package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
- package/dist/components/atoms/typography/SmallTitle.d.ts +0 -9
- package/dist/components/atoms/typography/SmallTitle.js +0 -7
- package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
- package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
- package/dist/components/atoms/typography/Subtitle.d.ts +0 -9
- package/dist/components/atoms/typography/Subtitle.js +0 -7
- package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
- package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
- package/dist/components/atoms/typography/TinyInfo.d.ts +0 -14
- package/dist/components/atoms/typography/TinyInfo.js +0 -18
- package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
- package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
- package/dist/components/atoms/typography/index.d.ts +0 -12
- package/dist/components/atoms/typography/index.js +0 -6
- package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +0 -4
- package/dist/components/atoms/uiVariables/AnimatedBorder.js +0 -11
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
- package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
- package/dist/components/atoms/uiVariables/BorderRadius.d.ts +0 -6
- package/dist/components/atoms/uiVariables/BorderRadius.js +0 -12
- package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Shadows.d.ts +0 -6
- package/dist/components/atoms/uiVariables/Shadows.js +0 -11
- package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
- package/dist/components/atoms/uiVariables/Strokes.d.ts +0 -6
- package/dist/components/atoms/uiVariables/Strokes.js +0 -10
- package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
- package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
- package/dist/components/atoms/uiVariables/index.d.ts +0 -3
- package/dist/components/atoms/uiVariables/index.js +0 -3
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +0 -26
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +0 -109
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -70
- package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -186
- package/dist/components/molecules/appointmentSlot/index.d.ts +0 -2
- package/dist/components/molecules/appointmentSlot/index.js +0 -1
- package/dist/components/molecules/banner/Banner.d.ts +0 -20
- package/dist/components/molecules/banner/Banner.js +0 -28
- package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
- package/dist/components/molecules/banner/Banner.stories.js +0 -123
- package/dist/components/molecules/banner/index.d.ts +0 -2
- package/dist/components/molecules/banner/index.js +0 -1
- package/dist/components/molecules/billingCount/BillingCount.d.ts +0 -11
- package/dist/components/molecules/billingCount/BillingCount.js +0 -169
- package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
- package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
- package/dist/components/molecules/billingCount/index.d.ts +0 -2
- package/dist/components/molecules/billingCount/index.js +0 -1
- package/dist/components/molecules/blogCard/BlogCard.d.ts +0 -13
- package/dist/components/molecules/blogCard/BlogCard.js +0 -32
- package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
- package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
- package/dist/components/molecules/blogCard/index.d.ts +0 -2
- package/dist/components/molecules/blogCard/index.js +0 -1
- package/dist/components/molecules/blogFooter/BlogFooter.d.ts +0 -12
- package/dist/components/molecules/blogFooter/BlogFooter.js +0 -14
- package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
- package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
- package/dist/components/molecules/blogFooter/index.d.ts +0 -2
- package/dist/components/molecules/blogFooter/index.js +0 -1
- package/dist/components/molecules/blogHeader/BlogHeader.d.ts +0 -11
- package/dist/components/molecules/blogHeader/BlogHeader.js +0 -21
- package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
- package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
- package/dist/components/molecules/blogHeader/index.d.ts +0 -2
- package/dist/components/molecules/blogHeader/index.js +0 -1
- package/dist/components/molecules/blogText/BlogText.d.ts +0 -7
- package/dist/components/molecules/blogText/BlogText.js +0 -11
- package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
- package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
- package/dist/components/molecules/blogText/index.d.ts +0 -2
- package/dist/components/molecules/blogText/index.js +0 -1
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +0 -8
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +0 -15
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
- package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
- package/dist/components/molecules/blogTextImageBlock/index.d.ts +0 -2
- package/dist/components/molecules/blogTextImageBlock/index.js +0 -1
- package/dist/components/molecules/brands/Brands.d.ts +0 -9
- package/dist/components/molecules/brands/Brands.js +0 -13
- package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
- package/dist/components/molecules/brands/Brands.stories.js +0 -66
- package/dist/components/molecules/brands/index.d.ts +0 -2
- package/dist/components/molecules/brands/index.js +0 -1
- package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +0 -12
- package/dist/components/molecules/breadcrumb/Breadcrumb.js +0 -12
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
- package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
- package/dist/components/molecules/breadcrumb/index.d.ts +0 -2
- package/dist/components/molecules/breadcrumb/index.js +0 -1
- package/dist/components/molecules/caseCard/CaseCard.d.ts +0 -23
- package/dist/components/molecules/caseCard/CaseCard.js +0 -19
- package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
- package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
- package/dist/components/molecules/caseCard/index.d.ts +0 -2
- package/dist/components/molecules/caseCard/index.js +0 -1
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +0 -16
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +0 -20
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
- package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
- package/dist/components/molecules/caseCardCompact/index.d.ts +0 -2
- package/dist/components/molecules/caseCardCompact/index.js +0 -1
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
- package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +0 -13
- package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +0 -37
- package/dist/components/molecules/caseLinkCard/index.d.ts +0 -2
- package/dist/components/molecules/caseLinkCard/index.js +0 -1
- package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +0 -20
- package/dist/components/molecules/checkboxForm/CheckboxForm.js +0 -30
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
- package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.d.ts +0 -20
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.js +0 -81
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
- package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
- package/dist/components/molecules/checkboxForm/index.d.ts +0 -4
- package/dist/components/molecules/checkboxForm/index.js +0 -2
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +0 -15
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +0 -18
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
- package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
- package/dist/components/molecules/clientLinkCard/index.d.ts +0 -2
- package/dist/components/molecules/clientLinkCard/index.js +0 -1
- package/dist/components/molecules/contactCard/ContactCard.d.ts +0 -16
- package/dist/components/molecules/contactCard/ContactCard.js +0 -31
- package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -68
- package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -80
- package/dist/components/molecules/contactCard/DetailedContactCard.d.ts +0 -18
- package/dist/components/molecules/contactCard/DetailedContactCard.js +0 -61
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
- package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
- package/dist/components/molecules/contactCard/index.d.ts +0 -4
- package/dist/components/molecules/contactCard/index.js +0 -2
- package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +0 -16
- package/dist/components/molecules/datepickerForm/DatepickerForm.js +0 -13
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -164
- package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -113
- package/dist/components/molecules/datepickerForm/index.d.ts +0 -2
- package/dist/components/molecules/datepickerForm/index.js +0 -1
- package/dist/components/molecules/documentCard/DocumentCard.d.ts +0 -16
- package/dist/components/molecules/documentCard/DocumentCard.js +0 -124
- package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -71
- package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -100
- package/dist/components/molecules/documentCard/index.d.ts +0 -2
- package/dist/components/molecules/documentCard/index.js +0 -1
- package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +0 -15
- package/dist/components/molecules/employeeCard/EmployeeCard.js +0 -34
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
- package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
- package/dist/components/molecules/employeeCard/index.d.ts +0 -2
- package/dist/components/molecules/employeeCard/index.js +0 -1
- package/dist/components/molecules/entityAdminCard/EntityAdminCard.d.ts +0 -13
- package/dist/components/molecules/entityAdminCard/EntityAdminCard.js +0 -29
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -8
- package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -35
- package/dist/components/molecules/entityCard/EntityCard.d.ts +0 -12
- package/dist/components/molecules/entityCard/EntityCard.js +0 -53
- package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -7
- package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -30
- package/dist/components/molecules/entityCard/index.d.ts +0 -2
- package/dist/components/molecules/entityCard/index.js +0 -1
- package/dist/components/molecules/featureGrid/FeatureGrid.d.ts +0 -8
- package/dist/components/molecules/featureGrid/FeatureGrid.js +0 -27
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
- package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
- package/dist/components/molecules/featureGrid/index.d.ts +0 -2
- package/dist/components/molecules/featureGrid/index.js +0 -1
- package/dist/components/molecules/fileUploader/FileUploader.d.ts +0 -41
- package/dist/components/molecules/fileUploader/FileUploader.js +0 -346
- package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -107
- package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -232
- package/dist/components/molecules/fileUploader/ImageCropperModal.d.ts +0 -15
- package/dist/components/molecules/fileUploader/ImageCropperModal.js +0 -212
- package/dist/components/molecules/fileUploader/index.d.ts +0 -2
- package/dist/components/molecules/fileUploader/index.js +0 -1
- package/dist/components/molecules/flexContent/FlexContent.d.ts +0 -18
- package/dist/components/molecules/flexContent/FlexContent.js +0 -21
- package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
- package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
- package/dist/components/molecules/flexContent/index.d.ts +0 -2
- package/dist/components/molecules/flexContent/index.js +0 -1
- package/dist/components/molecules/frameCTA/FrameCTA.d.ts +0 -19
- package/dist/components/molecules/frameCTA/FrameCTA.js +0 -18
- package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
- package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
- package/dist/components/molecules/frameCTA/index.d.ts +0 -2
- package/dist/components/molecules/frameCTA/index.js +0 -1
- package/dist/components/molecules/heroSection/HeroSection.d.ts +0 -21
- package/dist/components/molecules/heroSection/HeroSection.js +0 -20
- package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
- package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
- package/dist/components/molecules/heroSection/index.d.ts +0 -2
- package/dist/components/molecules/heroSection/index.js +0 -1
- package/dist/components/molecules/loadingBox/LoadingBox.d.ts +0 -12
- package/dist/components/molecules/loadingBox/LoadingBox.js +0 -11
- package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
- package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
- package/dist/components/molecules/loadingBox/index.d.ts +0 -2
- package/dist/components/molecules/loadingBox/index.js +0 -1
- package/dist/components/molecules/modal/Modal.d.ts +0 -32
- package/dist/components/molecules/modal/Modal.js +0 -97
- package/dist/components/molecules/modal/Modal.stories.d.ts +0 -87
- package/dist/components/molecules/modal/Modal.stories.js +0 -126
- package/dist/components/molecules/modal/index.d.ts +0 -2
- package/dist/components/molecules/modal/index.js +0 -1
- package/dist/components/molecules/pagination/Pagination.d.ts +0 -10
- package/dist/components/molecules/pagination/Pagination.js +0 -64
- package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
- package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
- package/dist/components/molecules/pagination/index.d.ts +0 -2
- package/dist/components/molecules/pagination/index.js +0 -1
- package/dist/components/molecules/proCard/ProCard.d.ts +0 -14
- package/dist/components/molecules/proCard/ProCard.js +0 -30
- package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
- package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
- package/dist/components/molecules/proCard/index.d.ts +0 -2
- package/dist/components/molecules/proCard/index.js +0 -1
- package/dist/components/molecules/questionAnswer/QuestionAnswer.d.ts +0 -10
- package/dist/components/molecules/questionAnswer/QuestionAnswer.js +0 -33
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
- package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
- package/dist/components/molecules/questionAnswer/index.d.ts +0 -2
- package/dist/components/molecules/questionAnswer/index.js +0 -1
- package/dist/components/molecules/radioForm/RadioForm.d.ts +0 -12
- package/dist/components/molecules/radioForm/RadioForm.js +0 -27
- package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -27
- package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -52
- package/dist/components/molecules/radioForm/index.d.ts +0 -2
- package/dist/components/molecules/radioForm/index.js +0 -1
- package/dist/components/molecules/selectForm/SelectForm.d.ts +0 -19
- package/dist/components/molecules/selectForm/SelectForm.js +0 -15
- package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -72
- package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -104
- package/dist/components/molecules/selectForm/index.d.ts +0 -2
- package/dist/components/molecules/selectForm/index.js +0 -1
- package/dist/components/molecules/stepper/ConfirmationModal.d.ts +0 -14
- package/dist/components/molecules/stepper/ConfirmationModal.js +0 -26
- package/dist/components/molecules/stepper/Stepper.d.ts +0 -51
- package/dist/components/molecules/stepper/Stepper.js +0 -156
- package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -52
- package/dist/components/molecules/stepper/Stepper.stories.js +0 -206
- package/dist/components/molecules/stepper/index.d.ts +0 -2
- package/dist/components/molecules/stepper/index.js +0 -1
- package/dist/index.d.ts +0 -109
- package/dist/index.js +0 -108
- package/dist/stories/Header.d.ts +0 -13
- package/dist/stories/Header.js +0 -20
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Header.stories.js +0 -26
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.js +0 -37
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Page.stories.js +0 -76
- package/dist/utils/regex.d.ts +0 -5
- package/dist/utils/regex.js +0 -7
- package/dist/utils/utils.d.ts +0 -3
- package/dist/utils/utils.js +0 -58
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Datepicker from "./Datepicker";
|
|
3
|
-
import "../../../styles/global.css";
|
|
4
|
-
import "react-datepicker/dist/react-datepicker.css";
|
|
5
|
-
import { fr } from "date-fns/locale";
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/Atoms/Datepickers/Datepicker",
|
|
8
|
-
component: Datepicker,
|
|
9
|
-
tags: ["autodocs"],
|
|
10
|
-
parameters: {
|
|
11
|
-
backgrounds: {
|
|
12
|
-
default: "light",
|
|
13
|
-
values: [
|
|
14
|
-
{ name: "light", value: "#ffffff" },
|
|
15
|
-
{ name: "grey", value: "#728ea7" },
|
|
16
|
-
{ name: "dark", value: "#171e25" },
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
yearDropdownItemNumber: {
|
|
22
|
-
control: { type: "number" },
|
|
23
|
-
description: "Nombre d'années à afficher dans la liste déroulante",
|
|
24
|
-
defaultValue: 10,
|
|
25
|
-
},
|
|
26
|
-
maxDaysInPast: {
|
|
27
|
-
control: { type: "number" },
|
|
28
|
-
description: "Nombre maximum de jours dans le passé sélectionnables",
|
|
29
|
-
},
|
|
30
|
-
minDate: {
|
|
31
|
-
control: { type: "date" },
|
|
32
|
-
description: "Date minimale sélectionnable",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export var Default = {
|
|
37
|
-
args: {
|
|
38
|
-
placeholder: "Sélectionner une date",
|
|
39
|
-
yearDropdownItemNumber: 10,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
export var WithValue = {
|
|
43
|
-
args: {
|
|
44
|
-
value: new Date("2022-11-10"),
|
|
45
|
-
placeholder: "Sélectionner une date",
|
|
46
|
-
yearDropdownItemNumber: 10,
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
export var WithMaxDaysInPast = {
|
|
50
|
-
args: {
|
|
51
|
-
placeholder: "Sélectionner une date",
|
|
52
|
-
maxDaysInPast: 10,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
export var WithMinDate = {
|
|
56
|
-
args: {
|
|
57
|
-
placeholder: "Sélectionner une date",
|
|
58
|
-
minDate: new Date("2024-01-01"),
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
export var WithBothConstraints = {
|
|
62
|
-
args: {
|
|
63
|
-
placeholder: "Sélectionner une date",
|
|
64
|
-
maxDaysInPast: 30,
|
|
65
|
-
minDate: new Date("2024-01-01"),
|
|
66
|
-
},
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Datepicker } from "./Datepicker";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type FeatureType = {
|
|
3
|
-
title: string;
|
|
4
|
-
image: {
|
|
5
|
-
src: string;
|
|
6
|
-
alt: string;
|
|
7
|
-
};
|
|
8
|
-
content: string;
|
|
9
|
-
action?: {
|
|
10
|
-
href: string;
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const FeatureCard: React.FC<FeatureType>;
|
|
15
|
-
export default FeatureCard;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styles from "./featureCard.module.css";
|
|
3
|
-
import { TertiaryButton } from "../buttons";
|
|
4
|
-
import Image from "next/image";
|
|
5
|
-
var FeatureCard = function (_a) {
|
|
6
|
-
var title = _a.title, image = _a.image, content = _a.content, action = _a.action;
|
|
7
|
-
return (React.createElement("article", { className: styles.featureCardContainer },
|
|
8
|
-
React.createElement("div", { className: styles.featureCardContent },
|
|
9
|
-
React.createElement(Image, { src: image.src, alt: image.alt, className: styles.featureCardImage, width: 200, height: 200 }),
|
|
10
|
-
React.createElement("div", { className: styles.featureCardTitle },
|
|
11
|
-
React.createElement("h3", null, title)),
|
|
12
|
-
React.createElement("div", { className: styles.featureCardDescription },
|
|
13
|
-
React.createElement("p", null, content))),
|
|
14
|
-
action && React.createElement(TertiaryButton, { href: action.href, label: action.label })));
|
|
15
|
-
};
|
|
16
|
-
export default FeatureCard;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { FeatureCard as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
namespace image {
|
|
6
|
-
let control: boolean;
|
|
7
|
-
}
|
|
8
|
-
namespace action {
|
|
9
|
-
let control_1: boolean;
|
|
10
|
-
export { control_1 as control };
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default _default;
|
|
15
|
-
export const Default: any;
|
|
16
|
-
export const WithoutAction: any;
|
|
17
|
-
export const LongContent: any;
|
|
18
|
-
export const CustomImage: any;
|
|
19
|
-
export const ShortTitle: any;
|
|
20
|
-
export const LongTitle: any;
|
|
21
|
-
import FeatureCard from "./featureCard";
|
|
@@ -1,101 +0,0 @@
|
|
|
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 { Meta, StoryFn } from "@storybook/react";
|
|
14
|
-
import FeatureCard, { FeatureType } from "./featureCard";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/Molecules/FeatureCard",
|
|
17
|
-
component: FeatureCard,
|
|
18
|
-
argTypes: {
|
|
19
|
-
image: {
|
|
20
|
-
control: false,
|
|
21
|
-
},
|
|
22
|
-
action: {
|
|
23
|
-
control: false,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
var Template = function (args) { return React.createElement(FeatureCard, __assign({}, args)); };
|
|
28
|
-
export var Default = Template.bind({});
|
|
29
|
-
Default.args = {
|
|
30
|
-
title: "Explore our services",
|
|
31
|
-
image: {
|
|
32
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
33
|
-
alt: "Placeholder image",
|
|
34
|
-
},
|
|
35
|
-
content: "Discover our tailored services designed to meet your needs. Our platform ensures you get the best solutions effortlessly.",
|
|
36
|
-
action: {
|
|
37
|
-
href: "/learn-more",
|
|
38
|
-
label: "Learn More",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
export var WithoutAction = Template.bind({});
|
|
42
|
-
WithoutAction.args = {
|
|
43
|
-
title: "Explore our services",
|
|
44
|
-
image: {
|
|
45
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
46
|
-
alt: "Placeholder image",
|
|
47
|
-
},
|
|
48
|
-
content: "Discover our tailored services designed to meet your needs. Our platform ensures you get the best solutions effortlessly.",
|
|
49
|
-
};
|
|
50
|
-
export var LongContent = Template.bind({});
|
|
51
|
-
LongContent.args = {
|
|
52
|
-
title: "Comprehensive Solutions",
|
|
53
|
-
image: {
|
|
54
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
55
|
-
alt: "Placeholder image",
|
|
56
|
-
},
|
|
57
|
-
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet tristique augue, a venenatis lorem. Quisque nec consequat quam. Cras vel orci nec quam pellentesque ultricies. Integer facilisis risus id cursus placerat, lacus mi varius nunc, et facilis sem ligula quis arcu. Fusce pharetra libero vel dui pellentesque, vel tincidunt lectus tristique.",
|
|
58
|
-
action: {
|
|
59
|
-
href: "/details",
|
|
60
|
-
label: "View Details",
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
export var CustomImage = Template.bind({});
|
|
64
|
-
CustomImage.args = {
|
|
65
|
-
title: "Custom Feature",
|
|
66
|
-
image: {
|
|
67
|
-
src: "https://images.unsplash.com/photo-1737157998574-2a75f0c52a09?q=80&w=1924&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
68
|
-
alt: "Custom placeholder image",
|
|
69
|
-
},
|
|
70
|
-
content: "This feature showcases custom images with a unique size and layout.",
|
|
71
|
-
action: {
|
|
72
|
-
href: "/custom",
|
|
73
|
-
label: "Explore",
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
export var ShortTitle = Template.bind({});
|
|
77
|
-
ShortTitle.args = {
|
|
78
|
-
title: "Short",
|
|
79
|
-
image: {
|
|
80
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
81
|
-
alt: "Placeholder image",
|
|
82
|
-
},
|
|
83
|
-
content: "This is a short title example with brief content.",
|
|
84
|
-
action: {
|
|
85
|
-
href: "/short-title",
|
|
86
|
-
label: "Check Out",
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
export var LongTitle = Template.bind({});
|
|
90
|
-
LongTitle.args = {
|
|
91
|
-
title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
|
|
92
|
-
image: {
|
|
93
|
-
src: "https://images.unsplash.com/photo-1737229940875-293ed0c4e8af?q=80&w=1742&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
|
94
|
-
alt: "Placeholder image",
|
|
95
|
-
},
|
|
96
|
-
content: "This is a short title example with brief content. This is a short title example with brief content This is a short title example with brief content This is a short title example with brief content This is a short title example with brief contentThis is a short title example with brief content. This is a short title example with brief content This is a short title example with brief content This is a short title example with brief content This is a short title example with brief contentThis is a short title example with brief content. This is a short title example with brief content This is a short title example with brief content This is a short title example with brief content This is a short title example with brief contentThis is a short title example with brief content. This is a short title example with brief content This is a short title example with brief content This is a short title example with brief content This is a short title example with brief content",
|
|
97
|
-
action: {
|
|
98
|
-
href: "/short-title",
|
|
99
|
-
label: "Check Out",
|
|
100
|
-
},
|
|
101
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as featureCard } from "./featureCard";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./Basefiler.css";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export type FilterProps = {
|
|
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 BaseFilter: ({ showNumIndic, required, defaultSelectedValue, filterData, setFilter, showBackdrop, children, ...props }: FilterProps) => React.JSX.Element;
|
|
17
|
-
export default BaseFilter;
|
|
@@ -1,70 +0,0 @@
|
|
|
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 "./Basefiler.css";
|
|
24
|
-
import { FilterButtonPrimary, PrimaryButton } from "../buttons";
|
|
25
|
-
import { TinyInfo } from "../typography";
|
|
26
|
-
import React, { useState } from "react";
|
|
27
|
-
var BaseFilter = 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
|
-
var handleClose = function () {
|
|
32
|
-
setFilter(selectedValue);
|
|
33
|
-
setIsOpen(false);
|
|
34
|
-
};
|
|
35
|
-
var handleButtonTap = function () {
|
|
36
|
-
isOpen ? handleClose() : setIsOpen(true);
|
|
37
|
-
};
|
|
38
|
-
var Item = function (_a) {
|
|
39
|
-
var name = _a.name, value = _a.value;
|
|
40
|
-
return (React.createElement("button", { className: "item", onClick: function () { setSelectedValue(value); handleClose(); } },
|
|
41
|
-
React.createElement("div", { className: "round" },
|
|
42
|
-
React.createElement("div", { className: selectedValue === value ? "selected" : "notSelected" })),
|
|
43
|
-
React.createElement("span", null, name)));
|
|
44
|
-
};
|
|
45
|
-
var SmallItem = function (_a) {
|
|
46
|
-
var name = _a.name, value = _a.value;
|
|
47
|
-
return (React.createElement("button", { className: "smallItem", onClick: function () { setSelectedValue(value); } },
|
|
48
|
-
React.createElement("div", { className: "round" },
|
|
49
|
-
React.createElement("div", { className: selectedValue === value ? "selected" : "notSelected" })),
|
|
50
|
-
React.createElement("span", null, name)));
|
|
51
|
-
};
|
|
52
|
-
return (React.createElement(React.Fragment, null,
|
|
53
|
-
React.createElement("div", __assign({ className: "baseFilter" }, props),
|
|
54
|
-
React.createElement(FilterButtonPrimary, { onClick: handleButtonTap, zIndex: "100" },
|
|
55
|
-
children,
|
|
56
|
-
React.createElement("p", { style: { color: "#25BEEB", fontWeight: "600" } }, showNumIndic && "(".concat(selectedValue.length, ")"))),
|
|
57
|
-
isOpen && (React.createElement("div", { className: "options" }, filterData && filterData.length > 0 &&
|
|
58
|
-
filterData.map(function (item, idx) { return (React.createElement(Item, { name: item.name, value: item.value, key: idx })); }))),
|
|
59
|
-
React.createElement("div", { className: "optionsSmall", style: { bottom: isOpen ? "0" : "-100%" } },
|
|
60
|
-
React.createElement("div", { className: "row" },
|
|
61
|
-
React.createElement("div", { style: { minWidth: "20px" } }),
|
|
62
|
-
React.createElement(TinyInfo, { text: children, variant: "bold14", color: "noir" }),
|
|
63
|
-
React.createElement("button", { className: "closeButton", onClick: handleClose },
|
|
64
|
-
React.createElement("i", { className: "allaw-icon-close" }))),
|
|
65
|
-
React.createElement("div", { className: "choices" }, filterData && filterData.length > 0 &&
|
|
66
|
-
filterData.map(function (item, idx) { return (React.createElement(SmallItem, { name: item.name, value: item.value, key: idx })); })),
|
|
67
|
-
React.createElement(PrimaryButton, { label: "Voir les r\u00E9sultats", onClick: handleClose }))),
|
|
68
|
-
isOpen && (React.createElement("div", { className: "backdrop", onClick: handleClose }))));
|
|
69
|
-
};
|
|
70
|
-
export default BaseFilter;
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Filter } from "./Filter";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type SingleFilterProps = {
|
|
3
|
-
defaultSelectedValue?: string;
|
|
4
|
-
filterData: {
|
|
5
|
-
value: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}[];
|
|
8
|
-
setFilter: (selectedValue: string) => void;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
showNumIndic?: boolean;
|
|
12
|
-
showBackdrop?: boolean;
|
|
13
|
-
isStatusTag?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const SingleFilter: ({ showNumIndic, required, defaultSelectedValue, filterData, setFilter, showBackdrop, children, ...props }: SingleFilterProps) => React.JSX.Element;
|
|
16
|
-
export default SingleFilter;
|
|
@@ -1,99 +0,0 @@
|
|
|
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 styles from "./SingleFilter.module.css";
|
|
24
|
-
import { FilterButtonPrimary, PrimaryButton } from "../buttons";
|
|
25
|
-
import { TinyInfo } from "../typography";
|
|
26
|
-
import React, { useState, useEffect, useRef } 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
|
-
var filterRef = useRef(null);
|
|
32
|
-
useEffect(function () {
|
|
33
|
-
if (selectedValue) {
|
|
34
|
-
setFilter(selectedValue);
|
|
35
|
-
}
|
|
36
|
-
}, [selectedValue, setFilter]);
|
|
37
|
-
useEffect(function () {
|
|
38
|
-
var handleClickOutside = function (event) {
|
|
39
|
-
if (filterRef.current &&
|
|
40
|
-
event.target instanceof Node &&
|
|
41
|
-
!filterRef.current.contains(event.target)) {
|
|
42
|
-
setIsOpen(false);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
if (isOpen) {
|
|
46
|
-
var timeoutId_1 = setTimeout(function () {
|
|
47
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
48
|
-
}, 0);
|
|
49
|
-
return function () {
|
|
50
|
-
clearTimeout(timeoutId_1);
|
|
51
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
return undefined;
|
|
55
|
-
}, [isOpen]);
|
|
56
|
-
var handleClose = function () {
|
|
57
|
-
setIsOpen(false);
|
|
58
|
-
};
|
|
59
|
-
var handleButtonTap = function () {
|
|
60
|
-
setIsOpen(!isOpen);
|
|
61
|
-
};
|
|
62
|
-
var Item = function (_a) {
|
|
63
|
-
var name = _a.name, value = _a.value;
|
|
64
|
-
return (React.createElement("button", { className: styles.item, onClick: function () {
|
|
65
|
-
setSelectedValue(value);
|
|
66
|
-
handleClose();
|
|
67
|
-
} },
|
|
68
|
-
React.createElement("div", { className: styles.round },
|
|
69
|
-
React.createElement("div", { className: selectedValue === value ? styles.selected : styles.notSelected })),
|
|
70
|
-
React.createElement("span", null, name)));
|
|
71
|
-
};
|
|
72
|
-
var SmallItem = function (_a) {
|
|
73
|
-
var name = _a.name, value = _a.value;
|
|
74
|
-
return (React.createElement("button", { className: styles.smallItem, onClick: function () {
|
|
75
|
-
setSelectedValue(value);
|
|
76
|
-
} },
|
|
77
|
-
React.createElement("div", { className: styles.round },
|
|
78
|
-
React.createElement("div", { className: selectedValue === value ? styles.selected : styles.notSelected })),
|
|
79
|
-
React.createElement("span", null, name)));
|
|
80
|
-
};
|
|
81
|
-
return (React.createElement("div", __assign({ className: styles.baseFilter, ref: filterRef }, props),
|
|
82
|
-
React.createElement(FilterButtonPrimary, { onClick: handleButtonTap },
|
|
83
|
-
children,
|
|
84
|
-
React.createElement("p", { style: { color: "#25BEEB", fontWeight: "600" } }, showNumIndic && "(".concat(selectedValue.length, ")"))),
|
|
85
|
-
isOpen && (React.createElement("div", { className: styles.options }, filterData &&
|
|
86
|
-
filterData.length > 0 &&
|
|
87
|
-
filterData.map(function (item, idx) { return (React.createElement(Item, { name: item.name, value: item.value, key: idx })); }))),
|
|
88
|
-
React.createElement("div", { className: styles.optionsSmall, style: { bottom: isOpen ? "0" : "-100%" } },
|
|
89
|
-
React.createElement("div", { className: styles.row },
|
|
90
|
-
React.createElement("div", { style: { minWidth: "20px" } }),
|
|
91
|
-
React.createElement(TinyInfo, { text: children, variant: "bold14", color: "noir" }),
|
|
92
|
-
React.createElement("button", { className: styles.closeButton, onClick: handleClose },
|
|
93
|
-
React.createElement("i", { className: "allaw-icon-close" }))),
|
|
94
|
-
React.createElement("div", { className: styles.choices }, filterData &&
|
|
95
|
-
filterData.length > 0 &&
|
|
96
|
-
filterData.map(function (item, idx) { return (React.createElement(SmallItem, { name: item.name, value: item.value, key: idx })); })),
|
|
97
|
-
React.createElement(PrimaryButton, { label: "Voir les r\u00E9sultats", onClick: handleClose }))));
|
|
98
|
-
};
|
|
99
|
-
export default SingleFilter;
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
export default {
|
|
15
|
-
title: "Components/Atoms/Filters/SingleFilter",
|
|
16
|
-
component: SingleFilter,
|
|
17
|
-
};
|
|
18
|
-
var Template = function (args) { return React.createElement(SingleFilter, __assign({}, args)); };
|
|
19
|
-
export var Default = Template.bind({});
|
|
20
|
-
Default.args = {
|
|
21
|
-
defaultSelectedValue: "Option 1",
|
|
22
|
-
filterData: [
|
|
23
|
-
{ value: "option1", name: "Option 1" },
|
|
24
|
-
{ value: "option2", name: "Option 2" },
|
|
25
|
-
{ value: "option3", name: "Option 3" },
|
|
26
|
-
],
|
|
27
|
-
setFilter: function (selectedValue) { return console.log("Selected value:", selectedValue); },
|
|
28
|
-
children: "Filter",
|
|
29
|
-
required: true,
|
|
30
|
-
showNumIndic: true,
|
|
31
|
-
showBackdrop: true,
|
|
32
|
-
isStatusTag: false,
|
|
33
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SingleFilter } from "./SingleFilter";
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
name?: string;
|
|
20
|
-
onKeyDown?: any;
|
|
21
|
-
color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
|
|
22
|
-
variant?: "bold" | "semiBold" | "medium";
|
|
23
|
-
disableZoom?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface InputRef {
|
|
26
|
-
validate: () => boolean;
|
|
27
|
-
}
|
|
28
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
29
|
-
export default Input;
|