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,141 +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 { useForm, FormProvider } from "react-hook-form";
|
|
14
|
-
import TextArea from "./TextArea";
|
|
15
|
-
import "../../../styles/global.css";
|
|
16
|
-
export var ActionsData = {};
|
|
17
|
-
export default {
|
|
18
|
-
title: "Components/Atoms/Inputs/TextArea",
|
|
19
|
-
component: TextArea,
|
|
20
|
-
tags: ["autodocs"],
|
|
21
|
-
excludeStories: /.*Data$/,
|
|
22
|
-
args: __assign({}, ActionsData),
|
|
23
|
-
argTypes: {
|
|
24
|
-
style: {
|
|
25
|
-
control: {
|
|
26
|
-
type: "radio",
|
|
27
|
-
options: ["default", "variation"],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
isRequired: {
|
|
31
|
-
control: "boolean",
|
|
32
|
-
},
|
|
33
|
-
validate: {
|
|
34
|
-
control: {
|
|
35
|
-
type: "text",
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
maxHeight: {
|
|
39
|
-
control: {
|
|
40
|
-
type: "number",
|
|
41
|
-
min: 100,
|
|
42
|
-
max: 1000,
|
|
43
|
-
step: 50,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
minHeight: {
|
|
47
|
-
control: {
|
|
48
|
-
type: "number",
|
|
49
|
-
min: 50,
|
|
50
|
-
max: 500,
|
|
51
|
-
step: 10,
|
|
52
|
-
},
|
|
53
|
-
description: "Hauteur minimale du TextArea en pixels",
|
|
54
|
-
table: {
|
|
55
|
-
type: { summary: "number" },
|
|
56
|
-
defaultValue: { summary: 100 },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
variant: {
|
|
60
|
-
control: {
|
|
61
|
-
type: "select",
|
|
62
|
-
options: ["bold", "semiBold", "medium"],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
color: {
|
|
66
|
-
control: {
|
|
67
|
-
type: "select",
|
|
68
|
-
options: [
|
|
69
|
-
"bleu-allaw",
|
|
70
|
-
"mid-grey",
|
|
71
|
-
"dark-grey",
|
|
72
|
-
"noir",
|
|
73
|
-
"pure-white",
|
|
74
|
-
"grey-venom",
|
|
75
|
-
"venom-grey-dark",
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
parameters: {
|
|
81
|
-
backgrounds: {
|
|
82
|
-
default: "light",
|
|
83
|
-
values: [
|
|
84
|
-
{ name: "light", value: "#ffffff" },
|
|
85
|
-
{ name: "grey", value: "#728ea7" },
|
|
86
|
-
{ name: "figma", value: "#404040" },
|
|
87
|
-
{ name: "dark", value: "#171e25" },
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
var Template = function (args) {
|
|
93
|
-
var methods = useForm();
|
|
94
|
-
return (React.createElement(FormProvider, __assign({}, methods),
|
|
95
|
-
React.createElement(TextArea, __assign({}, args))));
|
|
96
|
-
};
|
|
97
|
-
export var Default = Template.bind({});
|
|
98
|
-
Default.args = {
|
|
99
|
-
name: "defaultTextArea",
|
|
100
|
-
title: "Nommer le rendez-vous",
|
|
101
|
-
placeholder: "Entrez le motif du rendez-vous",
|
|
102
|
-
style: "default",
|
|
103
|
-
isRequired: false,
|
|
104
|
-
maxHeight: 400,
|
|
105
|
-
minHeight: 100,
|
|
106
|
-
variant: "medium",
|
|
107
|
-
color: "noir",
|
|
108
|
-
};
|
|
109
|
-
export var Variation = Template.bind({});
|
|
110
|
-
Variation.args = {
|
|
111
|
-
name: "variationTextArea",
|
|
112
|
-
title: "Adresse e-mail",
|
|
113
|
-
placeholder: "Entrez le motif du rendez-vous",
|
|
114
|
-
style: "variation",
|
|
115
|
-
isRequired: true,
|
|
116
|
-
maxHeight: 400,
|
|
117
|
-
minHeight: 100,
|
|
118
|
-
};
|
|
119
|
-
export var WithValidation = Template.bind({});
|
|
120
|
-
WithValidation.args = {
|
|
121
|
-
name: "validationTextArea",
|
|
122
|
-
title: "Email",
|
|
123
|
-
placeholder: "Entrez votre email",
|
|
124
|
-
style: "default",
|
|
125
|
-
isRequired: true,
|
|
126
|
-
validate: "email",
|
|
127
|
-
maxHeight: 400,
|
|
128
|
-
minHeight: 100,
|
|
129
|
-
};
|
|
130
|
-
export var LargeMinHeight = Template.bind({});
|
|
131
|
-
LargeMinHeight.args = {
|
|
132
|
-
name: "largeTextArea",
|
|
133
|
-
title: "Description détaillée",
|
|
134
|
-
placeholder: "Entrez une description détaillée",
|
|
135
|
-
style: "default",
|
|
136
|
-
isRequired: false,
|
|
137
|
-
maxHeight: 400,
|
|
138
|
-
minHeight: 200,
|
|
139
|
-
variant: "medium",
|
|
140
|
-
color: "noir",
|
|
141
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface VerificationCodeInputProps {
|
|
3
|
-
numInputs: number;
|
|
4
|
-
allowedChars?: "numeric" | "alphabetic" | "alphanumeric";
|
|
5
|
-
size?: "small" | "medium" | "large";
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
onError?: (error: string | null) => void;
|
|
8
|
-
onComplete?: (value: string) => void;
|
|
9
|
-
testError?: boolean;
|
|
10
|
-
autoFocus?: boolean;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const VerificationCodeInput: React.FC<VerificationCodeInputProps>;
|
|
14
|
-
export default VerificationCodeInput;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import React, { useState, useEffect, useRef } from "react";
|
|
11
|
-
import styles from "./VerificationCodeInput.module.css";
|
|
12
|
-
import TinyInfo from "../typography/TinyInfo";
|
|
13
|
-
var VerificationCodeInput = function (_a) {
|
|
14
|
-
var numInputs = _a.numInputs, _b = _a.allowedChars, allowedChars = _b === void 0 ? "numeric" : _b, _c = _a.size, size = _c === void 0 ? "large" : _c, onChange = _a.onChange, onError = _a.onError, onComplete = _a.onComplete, _d = _a.testError, testError = _d === void 0 ? false : _d, _e = _a.autoFocus, autoFocus = _e === void 0 ? false : _e, _f = _a.isDisabled, isDisabled = _f === void 0 ? false : _f;
|
|
15
|
-
var _g = useState(Array(numInputs).fill("")), values = _g[0], setValues = _g[1];
|
|
16
|
-
var _h = useState(""), error = _h[0], setError = _h[1];
|
|
17
|
-
var _j = useState(false), isSmallScreen = _j[0], setIsSmallScreen = _j[1];
|
|
18
|
-
var inputRefs = useRef(Array(numInputs).fill(null));
|
|
19
|
-
useEffect(function () {
|
|
20
|
-
setValues(Array(numInputs).fill(""));
|
|
21
|
-
inputRefs.current = Array(numInputs).fill(null);
|
|
22
|
-
}, [numInputs]);
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
if (testError) {
|
|
25
|
-
setError("Code de vérification invalide");
|
|
26
|
-
onError === null || onError === void 0 ? void 0 : onError("Code de vérification invalide");
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
setError("");
|
|
30
|
-
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
31
|
-
}
|
|
32
|
-
}, [testError, onError]);
|
|
33
|
-
useEffect(function () {
|
|
34
|
-
var checkScreenSize = function () {
|
|
35
|
-
setIsSmallScreen(window.innerWidth < 400);
|
|
36
|
-
};
|
|
37
|
-
// Vérifier la taille initiale
|
|
38
|
-
checkScreenSize();
|
|
39
|
-
// Ajouter un écouteur d'événement pour les changements de taille
|
|
40
|
-
window.addEventListener("resize", checkScreenSize);
|
|
41
|
-
// Nettoyer l'écouteur d'événement
|
|
42
|
-
return function () { return window.removeEventListener("resize", checkScreenSize); };
|
|
43
|
-
}, []);
|
|
44
|
-
var handleInputChange = function (index, value) {
|
|
45
|
-
// console.log(`[VerificationCodeInput] Input ${index} changed to:`, value);
|
|
46
|
-
var _a;
|
|
47
|
-
if (!validateInput(value, allowedChars)) {
|
|
48
|
-
// console.log("[VerificationCodeInput] Invalid input value");
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
var newValues = __spreadArray([], values, true);
|
|
52
|
-
newValues[index] = value;
|
|
53
|
-
setValues(newValues);
|
|
54
|
-
var fullValue = newValues.join("");
|
|
55
|
-
// console.log("[VerificationCodeInput] New values:", fullValue);
|
|
56
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(fullValue);
|
|
57
|
-
if (index === numInputs - 1 && value !== "") {
|
|
58
|
-
// console.log(
|
|
59
|
-
// "[VerificationCodeInput] Last input filled, validating with:",
|
|
60
|
-
// fullValue
|
|
61
|
-
// );
|
|
62
|
-
if (fullValue.length === numInputs) {
|
|
63
|
-
setError("");
|
|
64
|
-
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
65
|
-
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else if (index < numInputs - 1) {
|
|
69
|
-
(_a = inputRefs.current[index + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var handleKeyDown = function (index, e) {
|
|
73
|
-
var _a;
|
|
74
|
-
if (e.key === "Backspace" && values[index] === "" && index > 0) {
|
|
75
|
-
(_a = inputRefs.current[index - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
76
|
-
var newValues = __spreadArray([], values, true);
|
|
77
|
-
newValues[index - 1] = "";
|
|
78
|
-
setValues(newValues);
|
|
79
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValues.join(""));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var handleBlur = function () {
|
|
83
|
-
setTimeout(function () {
|
|
84
|
-
var isStillFocused = inputRefs.current.some(function (ref) { return ref === document.activeElement; });
|
|
85
|
-
if (!isStillFocused) {
|
|
86
|
-
if (values.every(function (value) { return value !== ""; })) {
|
|
87
|
-
var fullValue = values.join("");
|
|
88
|
-
// console.log(
|
|
89
|
-
// "[VerificationCodeInput] All inputs filled, length:",
|
|
90
|
-
// fullValue.length
|
|
91
|
-
// );
|
|
92
|
-
setError("");
|
|
93
|
-
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
94
|
-
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}, 0);
|
|
98
|
-
};
|
|
99
|
-
var handlePaste = function (e) {
|
|
100
|
-
var _a, _b;
|
|
101
|
-
e.preventDefault();
|
|
102
|
-
var pastedText = e.clipboardData.getData("text");
|
|
103
|
-
var validChars = pastedText
|
|
104
|
-
.split("")
|
|
105
|
-
.filter(function (char) { return validateInput(char, allowedChars); })
|
|
106
|
-
.slice(0, numInputs);
|
|
107
|
-
if (validChars.length > 0) {
|
|
108
|
-
var newValues_1 = Array(numInputs).fill("");
|
|
109
|
-
validChars.forEach(function (char, i) {
|
|
110
|
-
if (i < numInputs) {
|
|
111
|
-
newValues_1[i] = char;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
setValues(newValues_1);
|
|
115
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValues_1.join(""));
|
|
116
|
-
if (validChars.length >= numInputs) {
|
|
117
|
-
var fullValue = newValues_1.join("");
|
|
118
|
-
// console.log(
|
|
119
|
-
// "[VerificationCodeInput] All inputs filled, length:",
|
|
120
|
-
// fullValue.length
|
|
121
|
-
// );
|
|
122
|
-
setError("");
|
|
123
|
-
onError === null || onError === void 0 ? void 0 : onError(null);
|
|
124
|
-
onComplete === null || onComplete === void 0 ? void 0 : onComplete(fullValue);
|
|
125
|
-
inputRefs.current.forEach(function (input) { return input === null || input === void 0 ? void 0 : input.blur(); });
|
|
126
|
-
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
var nextIndex = validChars.length;
|
|
130
|
-
(_b = inputRefs.current[nextIndex]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
var validateInput = function (value, allowedChars) {
|
|
135
|
-
var regex = allowedChars === "numeric"
|
|
136
|
-
? /^[0-9]*$/
|
|
137
|
-
: allowedChars === "alphabetic"
|
|
138
|
-
? /^[a-zA-Z]*$/
|
|
139
|
-
: /^[a-zA-Z0-9]*$/;
|
|
140
|
-
return regex.test(value);
|
|
141
|
-
};
|
|
142
|
-
var renderInputs = function () {
|
|
143
|
-
return values.map(function (value, index) { return (React.createElement("input", { key: index, className: "".concat(styles.input, " ").concat(styles[size], " ").concat(value ? styles.filledInput : "", " ").concat(isSmallScreen ? styles.responsive : ""), value: value, onChange: function (e) { return handleInputChange(index, e.target.value); }, onKeyDown: function (e) { return handleKeyDown(index, e); }, onPaste: index === 0 ? handlePaste : undefined, onBlur: handleBlur, maxLength: 1, inputMode: allowedChars === "numeric" ? "numeric" : "text", pattern: allowedChars === "numeric"
|
|
144
|
-
? "[0-9]*"
|
|
145
|
-
: allowedChars === "alphabetic"
|
|
146
|
-
? "[a-zA-Z]*"
|
|
147
|
-
: "[a-zA-Z0-9]*", ref: function (input) { return (inputRefs.current[index] = input); }, autoFocus: index === 0 && autoFocus, tabIndex: index === 0 ? 0 : undefined, "data-lpignore": "true" // Empêche Dashlane d'intervenir
|
|
148
|
-
, "data-form-type": "other" // Indique que ce n'est pas un champ de mot de passe
|
|
149
|
-
, disabled: isDisabled })); });
|
|
150
|
-
};
|
|
151
|
-
return (React.createElement("div", { className: "".concat(styles.container, " ").concat(isSmallScreen ? styles.responsiveContainer : "") },
|
|
152
|
-
React.createElement("div", { className: "".concat(styles.inputsContainer, " ").concat(isSmallScreen ? styles.responsiveInputsContainer : "") }, renderInputs()),
|
|
153
|
-
error && (React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))));
|
|
154
|
-
};
|
|
155
|
-
export default VerificationCodeInput;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { VerificationCodeInput as component };
|
|
4
|
-
export let tags: string[];
|
|
5
|
-
export namespace parameters {
|
|
6
|
-
namespace controls {
|
|
7
|
-
let expanded: boolean;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export namespace argTypes {
|
|
11
|
-
namespace size {
|
|
12
|
-
let control: string;
|
|
13
|
-
let options: string[];
|
|
14
|
-
let description: string;
|
|
15
|
-
let defaultValue: string;
|
|
16
|
-
}
|
|
17
|
-
namespace allowedChars {
|
|
18
|
-
let control_1: string;
|
|
19
|
-
export { control_1 as control };
|
|
20
|
-
let options_1: string[];
|
|
21
|
-
export { options_1 as options };
|
|
22
|
-
let description_1: string;
|
|
23
|
-
export { description_1 as description };
|
|
24
|
-
let defaultValue_1: string;
|
|
25
|
-
export { defaultValue_1 as defaultValue };
|
|
26
|
-
export namespace table {
|
|
27
|
-
export namespace defaultValue_2 {
|
|
28
|
-
let summary: string;
|
|
29
|
-
}
|
|
30
|
-
export { defaultValue_2 as defaultValue };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
namespace numInputs {
|
|
34
|
-
export namespace control_2 {
|
|
35
|
-
let type: string;
|
|
36
|
-
let min: number;
|
|
37
|
-
let max: number;
|
|
38
|
-
let step: number;
|
|
39
|
-
}
|
|
40
|
-
export { control_2 as control };
|
|
41
|
-
let description_2: string;
|
|
42
|
-
export { description_2 as description };
|
|
43
|
-
let defaultValue_3: number;
|
|
44
|
-
export { defaultValue_3 as defaultValue };
|
|
45
|
-
}
|
|
46
|
-
namespace testError {
|
|
47
|
-
let control_3: string;
|
|
48
|
-
export { control_3 as control };
|
|
49
|
-
let description_3: string;
|
|
50
|
-
export { description_3 as description };
|
|
51
|
-
let defaultValue_4: boolean;
|
|
52
|
-
export { defaultValue_4 as defaultValue };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export default _default;
|
|
57
|
-
export const Default: any;
|
|
58
|
-
export const WithError: any;
|
|
59
|
-
export function Responsive(args: any): React.JSX.Element;
|
|
60
|
-
export namespace Responsive {
|
|
61
|
-
export namespace args {
|
|
62
|
-
let numInputs_1: number;
|
|
63
|
-
export { numInputs_1 as numInputs };
|
|
64
|
-
let size_1: string;
|
|
65
|
-
export { size_1 as size };
|
|
66
|
-
}
|
|
67
|
-
export namespace parameters_1 {
|
|
68
|
-
namespace docs {
|
|
69
|
-
export namespace description_4 {
|
|
70
|
-
let story: string;
|
|
71
|
-
}
|
|
72
|
-
export { description_4 as description };
|
|
73
|
-
}
|
|
74
|
-
namespace viewport {
|
|
75
|
-
let defaultViewport: string;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export { parameters_1 as parameters };
|
|
79
|
-
}
|
|
80
|
-
import VerificationCodeInput from "./VerificationCodeInput";
|
|
81
|
-
import React from "react";
|
|
@@ -1,89 +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 VerificationCodeInput from "./VerificationCodeInput";
|
|
14
|
-
export default {
|
|
15
|
-
title: "Components/Atoms/Inputs/VerificationCodeInput",
|
|
16
|
-
component: VerificationCodeInput,
|
|
17
|
-
tags: ["autodocs"],
|
|
18
|
-
parameters: {
|
|
19
|
-
controls: {
|
|
20
|
-
expanded: true,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
size: {
|
|
25
|
-
control: "select",
|
|
26
|
-
options: ["small", "medium", "large"],
|
|
27
|
-
description: "Taille des inputs",
|
|
28
|
-
defaultValue: "large",
|
|
29
|
-
},
|
|
30
|
-
allowedChars: {
|
|
31
|
-
control: "select",
|
|
32
|
-
options: ["numeric", "alphabetic", "alphanumeric"],
|
|
33
|
-
description: "Type de caractères autorisés",
|
|
34
|
-
defaultValue: "numeric",
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: "numeric" },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
numInputs: {
|
|
40
|
-
control: {
|
|
41
|
-
type: "number",
|
|
42
|
-
min: 1,
|
|
43
|
-
max: 20,
|
|
44
|
-
step: 1,
|
|
45
|
-
},
|
|
46
|
-
description: "Nombre d'inputs",
|
|
47
|
-
defaultValue: 5,
|
|
48
|
-
},
|
|
49
|
-
testError: {
|
|
50
|
-
control: "boolean",
|
|
51
|
-
description: "Simuler une erreur de validation",
|
|
52
|
-
defaultValue: false,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
var Template = function (args) { return React.createElement(VerificationCodeInput, __assign({}, args)); };
|
|
57
|
-
export var Default = Template.bind({});
|
|
58
|
-
Default.args = {
|
|
59
|
-
numInputs: 5,
|
|
60
|
-
};
|
|
61
|
-
export var WithError = Template.bind({});
|
|
62
|
-
WithError.args = {
|
|
63
|
-
numInputs: 5,
|
|
64
|
-
testError: true,
|
|
65
|
-
};
|
|
66
|
-
WithError.parameters = {
|
|
67
|
-
docs: {
|
|
68
|
-
description: {
|
|
69
|
-
story: "Simule un état d'erreur lors de la validation du code",
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
export var Responsive = function (args) { return (React.createElement("div", null,
|
|
74
|
-
React.createElement("p", { style: { marginBottom: "10px" } }, "Redimensionnez la fen\u00EAtre \u00E0 moins de 400px pour voir le design responsive"),
|
|
75
|
-
React.createElement(VerificationCodeInput, __assign({}, args)))); };
|
|
76
|
-
Responsive.args = {
|
|
77
|
-
numInputs: 6,
|
|
78
|
-
size: "large",
|
|
79
|
-
};
|
|
80
|
-
Responsive.parameters = {
|
|
81
|
-
docs: {
|
|
82
|
-
description: {
|
|
83
|
-
story: "Montre le comportement responsive du composant lorsque la largeur de l'écran est inférieure à 400px",
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
viewport: {
|
|
87
|
-
defaultViewport: "mobile1",
|
|
88
|
-
},
|
|
89
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as Input } from "./Input";
|
|
2
|
-
export { default as TextArea } from "./TextArea";
|
|
3
|
-
export { default as SearchBar } from "./SearchBar";
|
|
4
|
-
export { default as VerificationCodeInput } from "./VerificationCodeInput";
|
|
5
|
-
export type { InputProps, InputRef } from "./Input";
|
|
6
|
-
export type { SearchBarProps } from "./SearchBar";
|
|
7
|
-
export type { TextAreaProps, TextAreaRef } from "./TextArea";
|
|
8
|
-
export type { VerificationCodeInputProps } from "./VerificationCodeInput";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./ProgressBar.css";
|
|
3
|
-
import "../../../styles/global.css";
|
|
4
|
-
import "../../../styles/icons.css";
|
|
5
|
-
export type BarColor = "blue" | "red" | "green" | "grey";
|
|
6
|
-
export interface ProgressBarProps {
|
|
7
|
-
steps: number;
|
|
8
|
-
currentStep: number;
|
|
9
|
-
startIcon?: boolean;
|
|
10
|
-
endIcon?: boolean;
|
|
11
|
-
onStartIconClick?: () => void;
|
|
12
|
-
onEndIconClick?: () => void;
|
|
13
|
-
showProgressBar?: boolean;
|
|
14
|
-
barColor?: BarColor;
|
|
15
|
-
isWrapperProgressBar?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
18
|
-
export default ProgressBar;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./ProgressBar.css";
|
|
3
|
-
import "../../../styles/global.css";
|
|
4
|
-
import "../../../styles/icons.css";
|
|
5
|
-
var ProgressBar = function (_a) {
|
|
6
|
-
var steps = _a.steps, currentStep = _a.currentStep, _b = _a.startIcon, startIcon = _b === void 0 ? true : _b, _c = _a.endIcon, endIcon = _c === void 0 ? true : _c, onStartIconClick = _a.onStartIconClick, onEndIconClick = _a.onEndIconClick, _d = _a.showProgressBar, showProgressBar = _d === void 0 ? true : _d, _e = _a.barColor, barColor = _e === void 0 ? "blue" : _e, _f = _a.isWrapperProgressBar, isWrapperProgressBar = _f === void 0 ? true : _f;
|
|
7
|
-
var constrainedCurrentStep = Math.max(0, Math.min(currentStep, steps));
|
|
8
|
-
var progressWidth = constrainedCurrentStep === 0 ? 0 : (constrainedCurrentStep / steps) * 100;
|
|
9
|
-
var noIconsMargin = !startIcon && !endIcon ? "0px" : "0 10px";
|
|
10
|
-
return (React.createElement("div", { className: "progress-bar-container" },
|
|
11
|
-
isWrapperProgressBar && startIcon && (React.createElement("div", { className: "progress-bar-icon-container" },
|
|
12
|
-
React.createElement("button", { className: "progress-bar-chevron", onClick: onStartIconClick },
|
|
13
|
-
React.createElement("i", { className: "allaw-icon-chevron-left" })))),
|
|
14
|
-
React.createElement("div", { className: "progress-bar-background ".concat(showProgressBar ? "" : "hidden-content"), style: {
|
|
15
|
-
height: isWrapperProgressBar ? "6px" : "8px",
|
|
16
|
-
width: startIcon ? "calc(100% - 32px)" : "100%",
|
|
17
|
-
margin: noIconsMargin,
|
|
18
|
-
} },
|
|
19
|
-
React.createElement("div", { className: "progress-bar-fill progress-bar-fill-".concat(barColor), style: {
|
|
20
|
-
width: "".concat(progressWidth, "%"),
|
|
21
|
-
height: isWrapperProgressBar ? "6px" : "8px",
|
|
22
|
-
} })),
|
|
23
|
-
endIcon && (React.createElement("button", { className: "progress-bar-close", onClick: onEndIconClick, "data-cy": "close-stepper" },
|
|
24
|
-
React.createElement("i", { className: "allaw-icon-close" })))));
|
|
25
|
-
};
|
|
26
|
-
export default ProgressBar;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export const ActionsData: {};
|
|
2
|
-
declare namespace _default {
|
|
3
|
-
export let title: string;
|
|
4
|
-
export { ProgressBar as component };
|
|
5
|
-
export let tags: string[];
|
|
6
|
-
export let excludeStories: RegExp;
|
|
7
|
-
export namespace args {
|
|
8
|
-
let steps: number;
|
|
9
|
-
let currentStep: number;
|
|
10
|
-
let startIcon: boolean;
|
|
11
|
-
let endIcon: boolean;
|
|
12
|
-
let showProgressBar: boolean;
|
|
13
|
-
let barColor: string;
|
|
14
|
-
}
|
|
15
|
-
export namespace argTypes {
|
|
16
|
-
export namespace steps_1 {
|
|
17
|
-
namespace control {
|
|
18
|
-
let type: string;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export { steps_1 as steps };
|
|
22
|
-
export namespace currentStep_1 {
|
|
23
|
-
export namespace control_1 {
|
|
24
|
-
let type_1: string;
|
|
25
|
-
export { type_1 as type };
|
|
26
|
-
}
|
|
27
|
-
export { control_1 as control };
|
|
28
|
-
}
|
|
29
|
-
export { currentStep_1 as currentStep };
|
|
30
|
-
export namespace startIcon_1 {
|
|
31
|
-
export namespace control_2 {
|
|
32
|
-
let type_2: string;
|
|
33
|
-
export { type_2 as type };
|
|
34
|
-
}
|
|
35
|
-
export { control_2 as control };
|
|
36
|
-
}
|
|
37
|
-
export { startIcon_1 as startIcon };
|
|
38
|
-
export namespace endIcon_1 {
|
|
39
|
-
export namespace control_3 {
|
|
40
|
-
let type_3: string;
|
|
41
|
-
export { type_3 as type };
|
|
42
|
-
}
|
|
43
|
-
export { control_3 as control };
|
|
44
|
-
}
|
|
45
|
-
export { endIcon_1 as endIcon };
|
|
46
|
-
export namespace showProgressBar_1 {
|
|
47
|
-
export namespace control_4 {
|
|
48
|
-
let type_4: string;
|
|
49
|
-
export { type_4 as type };
|
|
50
|
-
}
|
|
51
|
-
export { control_4 as control };
|
|
52
|
-
}
|
|
53
|
-
export { showProgressBar_1 as showProgressBar };
|
|
54
|
-
export namespace barColor_1 {
|
|
55
|
-
export namespace control_5 {
|
|
56
|
-
let type_5: string;
|
|
57
|
-
export { type_5 as type };
|
|
58
|
-
export let options: string[];
|
|
59
|
-
}
|
|
60
|
-
export { control_5 as control };
|
|
61
|
-
export let description: string;
|
|
62
|
-
}
|
|
63
|
-
export { barColor_1 as barColor };
|
|
64
|
-
}
|
|
65
|
-
export namespace parameters {
|
|
66
|
-
namespace backgrounds {
|
|
67
|
-
let _default: string;
|
|
68
|
-
export { _default as default };
|
|
69
|
-
export let values: {
|
|
70
|
-
name: string;
|
|
71
|
-
value: string;
|
|
72
|
-
}[];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export default _default;
|
|
77
|
-
export const Default: any;
|
|
78
|
-
export const FirstStep: any;
|
|
79
|
-
export const Hidden: any;
|
|
80
|
-
export const RedProgress: any;
|
|
81
|
-
export const GreenProgress: any;
|
|
82
|
-
export const GreyProgress: any;
|
|
83
|
-
import ProgressBar from "./ProgressBar";
|