@logora/debate 0.1.0 → 0.1.1
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/_virtual/_rolldown/runtime.js +23 -0
- package/dist/assets/debate-Bv79XlHp.css +2 -0
- package/dist/components/action/back_link/BackLink.js +24 -0
- package/dist/components/action/back_link/BackLink.module.js +6 -0
- package/dist/components/action/button/Button.js +34 -0
- package/dist/components/action/button/Button.module.js +10 -0
- package/dist/components/action/icon_text_link/IconTextLink.js +37 -0
- package/dist/components/action/icon_text_link/IconTextLink.module.js +11 -0
- package/dist/components/action/link/Link.js +23 -0
- package/dist/components/ad/ad_unit/AdUnit.js +42 -0
- package/dist/components/ad/ad_unit/AdUnit.module.js +3 -0
- package/dist/components/ad/use_google_ad_manager/useGoogleAdManager.js +22 -0
- package/dist/components/ad/with_ad/WithAd.js +13 -0
- package/dist/components/argument/argument/Argument.js +266 -0
- package/dist/components/argument/argument/Argument.module.js +34 -0
- package/dist/components/argument/argument/ReplyFooter.js +39 -0
- package/dist/components/argument/argument/ReplyFooter.module.js +10 -0
- package/dist/components/argument/argument/useRichContent.js +14 -0
- package/dist/components/argument/top_arguments/TopArguments.js +63 -0
- package/dist/components/argument/top_arguments/TopArguments.module.js +9 -0
- package/dist/components/auth/auth_initializer/AuthInitializer.js +35 -0
- package/dist/components/auth/auth_modal/AuthModal.js +68 -0
- package/dist/components/auth/auth_modal/AuthModal.module.js +3 -0
- package/dist/components/auth/auth_modal/index.js +2 -0
- package/dist/components/auth/facebook_login_button/FacebookIcon.js +14 -0
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +29 -0
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.module.js +6 -0
- package/dist/components/auth/google_login_button/GoogleIcon.js +29 -0
- package/dist/components/auth/google_login_button/GoogleLoginButton.js +31 -0
- package/dist/components/auth/google_login_button/GoogleLoginButton.module.js +6 -0
- package/dist/components/auth/login_form/LoginForm.js +83 -0
- package/dist/components/auth/login_form/LoginForm.module.js +9 -0
- package/dist/components/auth/oauth2_button/OAuth2Button.js +37 -0
- package/dist/components/auth/oauth2_button/OAuth2Button.module.js +6 -0
- package/dist/components/auth/providers/AuthProvider.js +20 -0
- package/dist/components/auth/providers/AuthProviderFactory.js +10 -0
- package/dist/components/auth/providers/FormAuth.js +29 -0
- package/dist/components/auth/providers/JWTAuth.js +27 -0
- package/dist/components/auth/providers/OAuth2ServerAuth.js +35 -0
- package/dist/components/auth/providers/PasswordAuth.js +25 -0
- package/dist/components/auth/signup_form/SignupForm.js +155 -0
- package/dist/components/auth/signup_form/SignupForm.module.js +7 -0
- package/dist/components/auth/social_auth_form/SocialAuthForm.js +199 -0
- package/dist/components/auth/social_auth_form/SocialAuthForm.module.js +21 -0
- package/dist/components/auth/sso_form/SSOForm.js +147 -0
- package/dist/components/auth/sso_form/SSOForm.module.js +17 -0
- package/dist/components/auth/use_auth/AuthContext.js +5 -0
- package/dist/components/auth/use_auth/AuthProvider.js +25 -0
- package/dist/components/auth/use_auth/AuthStorage.js +29 -0
- package/dist/components/auth/use_auth/authTokenHandler.js +45 -0
- package/dist/components/auth/use_auth/useAuth.js +6 -0
- package/dist/components/auth/use_auth/useAuthActions.js +35 -0
- package/dist/components/auth/use_auth/useAuthInterceptor.js +27 -0
- package/dist/components/chart/line_chart/LineChart.js +101 -0
- package/dist/components/chart/line_chart/LineChart.module.js +9 -0
- package/dist/components/chart/pie_chart/PieChart.js +73 -0
- package/dist/components/chart/pie_chart/PieChart.module.js +3 -0
- package/dist/components/consultation/consultation_box/ConsultationBox.js +118 -0
- package/dist/components/consultation/consultation_box/ConsultationBox.module.js +21 -0
- package/dist/components/data/axios_client/httpClient.js +8 -0
- package/dist/components/data/config_provider/ConfigProvider.js +12 -0
- package/dist/components/data/config_provider/useConfig.js +9 -0
- package/dist/components/data/config_provider/useRoutes.js +9 -0
- package/dist/components/data/config_provider/withConfig.js +10 -0
- package/dist/components/data/data_provider/DataProvider.js +101 -0
- package/dist/components/data/data_provider/DataProviderContext.js +5 -0
- package/dist/components/data/data_provider/useData.js +9 -0
- package/dist/components/data/data_provider/useDataProvider.js +9 -0
- package/dist/components/debate/debate_box/DebateBox.js +156 -0
- package/dist/components/debate/debate_box/DebateBox.module.js +26 -0
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +30 -0
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.module.js +8 -0
- package/dist/components/dialog/confirm_modal/ConfirmModal.js +38 -0
- package/dist/components/dialog/confirm_modal/ConfirmModal.module.js +8 -0
- package/dist/components/dialog/countdown/Countdown.js +23 -0
- package/dist/components/dialog/dialog_box/DialogBox.js +51 -0
- package/dist/components/dialog/dialog_box/DialogBox.module.js +16 -0
- package/dist/components/dialog/drawer/Drawer.js +127 -0
- package/dist/components/dialog/drawer/Drawer.module.js +17 -0
- package/dist/components/dialog/dropdown/Dropdown.js +29 -0
- package/dist/components/dialog/dropdown/Dropdown.module.js +10 -0
- package/dist/components/dialog/modal/Modal.js +65 -0
- package/dist/components/dialog/modal/Modal.module.js +12 -0
- package/dist/components/dialog/modal/ModalProvider.js +20 -0
- package/dist/components/dialog/modal/useModal.js +6 -0
- package/dist/components/dialog/toast/Toast.js +41 -0
- package/dist/components/dialog/toast/Toast.module.js +14 -0
- package/dist/components/dialog/toast_provider/ToastContext.js +5 -0
- package/dist/components/dialog/toast_provider/ToastProvider.js +29 -0
- package/dist/components/dialog/toast_provider/ToastProvider.module.js +3 -0
- package/dist/components/dialog/toast_provider/useToast.js +12 -0
- package/dist/components/dialog/tooltip/Tooltip.js +32 -0
- package/dist/components/dialog/tooltip/Tooltip.module.js +12 -0
- package/dist/components/embed/embed_header/EmbedHeader.js +72 -0
- package/dist/components/embed/embed_header/EmbedHeader.module.js +18 -0
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +18 -0
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.module.js +3 -0
- package/dist/components/follow/follow_button/FollowButton.js +49 -0
- package/dist/components/follow/follow_button/FollowButton.module.js +6 -0
- package/dist/components/follow/use_follow/useFollow.js +36 -0
- package/dist/components/forms/form/extract-form-data.js +12 -0
- package/dist/components/forms/form/form-context.js +5 -0
- package/dist/components/forms/form/form.js +28 -0
- package/dist/components/forms/form/use-form-context.js +32 -0
- package/dist/components/forms/form/use-form.js +6 -0
- package/dist/components/forms/use_form_validation/useFormValidation.js +45 -0
- package/dist/components/gamification/badge_box/BadgeBox.js +94 -0
- package/dist/components/gamification/badge_box/BadgeBox.module.js +19 -0
- package/dist/components/gamification/point_box/PointBox.js +19 -0
- package/dist/components/gamification/point_box/PointBox.module.js +7 -0
- package/dist/components/hooks/use_auth_required/useAuthRequired.js +16 -0
- package/dist/components/hooks/use_css_theme/useCssTheme.js +16 -0
- package/dist/components/hooks/use_font_loader/useFontLoader.js +8 -0
- package/dist/components/hooks/use_matomo/useMatomo.js +10 -0
- package/dist/components/hooks/use_relative_time/useRelativeTime.js +53 -0
- package/dist/components/hooks/use_responsive/ResponsiveContext.js +5 -0
- package/dist/components/hooks/use_responsive/ResponsiveProvider.js +33 -0
- package/dist/components/hooks/use_responsive/useResponsive.js +14 -0
- package/dist/components/icons/icon/Icon.js +20 -0
- package/dist/components/icons/icon_provider/IconProvider.js +9 -0
- package/dist/components/icons/krone_icons/CheckBox.js +17 -0
- package/dist/components/input/argument_input/ArgumentInput.js +285 -0
- package/dist/components/input/argument_input/ArgumentInput.module.js +23 -0
- package/dist/components/input/argument_input/index.js +2 -0
- package/dist/components/input/checkbox/hidden/hidden-checkbox.js +16 -0
- package/dist/components/input/checkbox/hidden/hidden-checkbox.module.js +3 -0
- package/dist/components/input/checkbox/indicator/checkbox-indicator.js +19 -0
- package/dist/components/input/checkbox/indicator/checkbox-indicator.module.js +6 -0
- package/dist/components/input/checkbox/label/checkbox-label.js +27 -0
- package/dist/components/input/input_provider/InputProvider.js +21 -0
- package/dist/components/input/input_provider/useInput.js +6 -0
- package/dist/components/input/search_input/SearchInput.js +74 -0
- package/dist/components/input/search_input/SearchInput.module.js +8 -0
- package/dist/components/input/select/Select.js +76 -0
- package/dist/components/input/select/Select.module.js +12 -0
- package/dist/components/input/text_editor/EditorTheme.js +69 -0
- package/dist/components/input/text_editor/TextEditor.js +147 -0
- package/dist/components/input/text_editor/TextEditor.module.js +24 -0
- package/dist/components/input/text_editor/lexicalToHtml.js +22 -0
- package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +25 -0
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +14 -0
- package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +23 -0
- package/dist/components/input/text_editor/plugins/ResetPlugin.js +18 -0
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +18 -0
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +15 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +170 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.js +17 -0
- package/dist/components/input/text_input/TextInput.js +36 -0
- package/dist/components/input/text_input/TextInput.module.js +12 -0
- package/dist/components/input/text_input/color-accent.js +12 -0
- package/dist/components/input/text_input/message.js +16 -0
- package/dist/components/input/toggle/Toggle.js +28 -0
- package/dist/components/input/toggle/Toggle.module.js +9 -0
- package/dist/components/input/toggle_position/TogglePosition.js +48 -0
- package/dist/components/input/toggle_position/TogglePosition.module.js +10 -0
- package/dist/components/intl/intl_provider/IntlContext.js +5 -0
- package/dist/components/intl/intl_provider/IntlProvider.js +38 -0
- package/dist/components/intl/intl_provider/useLocale.js +12 -0
- package/dist/components/list/list_provider/ListProvider.js +45 -0
- package/dist/components/list/list_provider/useList.js +22 -0
- package/dist/components/list/paginated_list/PaginatedList.js +178 -0
- package/dist/components/list/paginated_list/PaginatedList.module.js +18 -0
- package/dist/components/list/paginated_list/VotePaginatedList.js +20 -0
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +75 -0
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.js +13 -0
- package/dist/components/list/pagination/Pagination.js +27 -0
- package/dist/components/list/pagination/Pagination.module.js +3 -0
- package/dist/components/modal/side_modal/SideModal.js +60 -0
- package/dist/components/modal/side_modal/SideModal.module.js +11 -0
- package/dist/components/modal/side_modal/index.js +2 -0
- package/dist/components/navbar/navbar_button/NavbarButton.js +29 -0
- package/dist/components/navbar/navbar_button/NavbarButton.module.js +6 -0
- package/dist/components/navbar/navbar_modal/NavbarModal.js +157 -0
- package/dist/components/navbar/navbar_modal/NavbarModal.module.js +16 -0
- package/dist/components/notification/notification_item/NotificationItem.js +50 -0
- package/dist/components/notification/notification_item/NotificationItem.module.js +10 -0
- package/dist/components/notification/notification_menu/NotificationMenu.js +53 -0
- package/dist/components/notification/notification_menu/NotificationMenu.module.js +8 -0
- package/dist/components/progress/loader/Loader.js +13 -0
- package/dist/components/progress/loader/Loader.module.js +7 -0
- package/dist/components/progress/progress_bar/ProgressBar.js +59 -0
- package/dist/components/progress/progress_bar/ProgressBar.module.js +14 -0
- package/dist/components/proposal/proposal_box/ProposalBox.js +108 -0
- package/dist/components/proposal/proposal_box/ProposalBox.module.js +11 -0
- package/dist/components/report/report_box/ReportBox.js +102 -0
- package/dist/components/report/report_box/ReportBox.module.js +11 -0
- package/dist/components/section/section_box/SectionBox.js +40 -0
- package/dist/components/section/section_box/SectionBox.module.js +14 -0
- package/dist/components/share/share_box/ShareBox.js +132 -0
- package/dist/components/share/share_box/ShareBox.module.js +10 -0
- package/dist/components/share/share_button/ShareButton.js +73 -0
- package/dist/components/share/share_button/ShareButton.module.js +9 -0
- package/dist/components/share/share_modal/ShareModal.js +28 -0
- package/dist/components/share/share_modal/ShareModal.module.js +3 -0
- package/dist/components/share/share_modal/index.js +2 -0
- package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +63 -0
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +57 -0
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.js +13 -0
- package/dist/components/source/context_source_box/ContextSourceBox.js +45 -0
- package/dist/components/source/context_source_box/ContextSourceBox.module.js +10 -0
- package/dist/components/source/context_source_list/ContextSourceList.js +43 -0
- package/dist/components/source/context_source_list/ContextSourceList.module.js +10 -0
- package/dist/components/source/source_box/SourceBox.js +39 -0
- package/dist/components/source/source_box/SourceBox.module.js +11 -0
- package/dist/components/source/source_list_item/SourceListItem.js +32 -0
- package/dist/components/source/source_list_item/SourceListItem.module.js +6 -0
- package/dist/components/source/source_modal/SourceModal.js +110 -0
- package/dist/components/source/source_modal/SourceModal.module.js +11 -0
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +99 -0
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.js +13 -0
- package/dist/components/suggestion/suggestion_box/SuggestionBox.js +97 -0
- package/dist/components/suggestion/suggestion_box/SuggestionBox.module.js +13 -0
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +156 -0
- package/dist/components/suggestion/suggestion_input/SuggestionInput.module.js +11 -0
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +62 -0
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.js +13 -0
- package/dist/components/summary/keyword_box/KeywordBox.js +38 -0
- package/dist/components/summary/keyword_box/KeywordBox.module.js +11 -0
- package/dist/components/summary/summary/Summary.js +73 -0
- package/dist/components/summary/summary/Summary.module.js +6 -0
- package/dist/components/summary/summary_box/SummaryBox.js +22 -0
- package/dist/components/summary/summary_box/SummaryBox.module.js +10 -0
- package/dist/components/tag/tag/Tag.js +19 -0
- package/dist/components/tag/tag/Tag.module.js +6 -0
- package/dist/components/text/expandable_text/ArrowIcon.js +11 -0
- package/dist/components/text/expandable_text/ExpandableText.js +53 -0
- package/dist/components/text/expandable_text/ExpandableText.module.js +10 -0
- package/dist/components/text/read_more/ReadMore.js +63 -0
- package/dist/components/text/read_more/ReadMore.module.js +11 -0
- package/dist/components/tools/hash_scroll/HashScroll.js +18 -0
- package/dist/components/tools/scroll_to_top/ScrollToTop.js +15 -0
- package/dist/components/translation/translated_content/TranslatedContent.js +7 -0
- package/dist/components/translation/translated_content/useTranslatedContent.js +26 -0
- package/dist/components/translation/translation_button/TranslationButton.js +35 -0
- package/dist/components/translation/translation_button/TranslationButton.module.js +3 -0
- package/dist/components/user/author_box/AuthorBox.js +114 -0
- package/dist/components/user/author_box/AuthorBox.module.js +18 -0
- package/dist/components/user/avatar/Avatar.js +54 -0
- package/dist/components/user/avatar/Avatar.module.js +8 -0
- package/dist/components/user/avatar/DefaultAvatar.js +17 -0
- package/dist/components/user/avatar_selector/AvatarSelector.js +108 -0
- package/dist/components/user/avatar_selector/AvatarSelector.module.js +18 -0
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +249 -0
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.js +23 -0
- package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +26 -0
- package/dist/components/user/user_box/UserBox.js +82 -0
- package/dist/components/user/user_box/UserBox.module.js +13 -0
- package/dist/components/user/user_box_small/UserBoxSmall.js +44 -0
- package/dist/components/user/user_box_small/UserBoxSmall.module.js +6 -0
- package/dist/components/user_content/content_footer/ContentFooter.js +172 -0
- package/dist/components/user_content/content_footer/ContentFooter.module.js +11 -0
- package/dist/components/user_content/content_header/ContentHeader.js +121 -0
- package/dist/components/user_content/content_header/ContentHeader.module.js +16 -0
- package/dist/components/user_content/summary_content_box/SummaryContentBox.js +72 -0
- package/dist/components/user_content/summary_content_box/SummaryContentBox.module.js +10 -0
- package/dist/components/user_content/use_delete_content/useDeleteContent.js +46 -0
- package/dist/components/user_content/use_report_content/ReportModal.js +266 -0
- package/dist/components/user_content/use_report_content/ReportModal.module.js +15 -0
- package/dist/components/user_content/use_report_content/useReportContent.js +24 -0
- package/dist/components/util/lang_emojis/langEmojis.js +57 -0
- package/dist/components/util/location/Location.js +41 -0
- package/dist/components/util/unique_by/uniqueBy.js +7 -0
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +81 -0
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.js +6 -0
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +56 -0
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.module.js +10 -0
- package/dist/components/vote/use_vote/useVote.js +62 -0
- package/dist/components/vote/vote_box/VoteBox.js +297 -0
- package/dist/components/vote/vote_box/VoteBox.module.js +31 -0
- package/dist/components/vote/vote_button/VoteButton.js +40 -0
- package/dist/components/vote/vote_button/VoteButton.module.js +7 -0
- package/dist/components/vote/vote_provider/VoteProvider.js +40 -0
- package/dist/index.js +146 -0
- package/dist/node_modules/.pnpm/@formatjs_fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/lib/index.js +51 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +28 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +7 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +26 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js +1 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +499 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +4 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +1159 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +44 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +101 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +182 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +4 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/create-intl.js +39 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/dateTime.js +80 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/displayName.js +22 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/error.js +66 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/list.js +39 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/message.js +59 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/number.js +53 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/plural.js +18 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/relativeTime.js +22 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/utils.js +115 -0
- package/dist/node_modules/.pnpm/@kurkle_color@0.3.4/node_modules/@kurkle/color/dist/color.esm.js +470 -0
- package/dist/node_modules/.pnpm/@lexical_clipboard@0.38.2/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +163 -0
- package/dist/node_modules/.pnpm/@lexical_dragon@0.38.2/node_modules/@lexical/dragon/LexicalDragon.prod.js +51 -0
- package/dist/node_modules/.pnpm/@lexical_extension@0.38.2/node_modules/@lexical/extension/LexicalExtension.prod.js +796 -0
- package/dist/node_modules/.pnpm/@lexical_headless@0.38.2/node_modules/@lexical/headless/LexicalHeadless.prod.js +21 -0
- package/dist/node_modules/.pnpm/@lexical_history@0.38.2/node_modules/@lexical/history/LexicalHistory.prod.js +132 -0
- package/dist/node_modules/.pnpm/@lexical_html@0.38.2/node_modules/@lexical/html/LexicalHtml.prod.js +88 -0
- package/dist/node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js +737 -0
- package/dist/node_modules/.pnpm/@lexical_overflow@0.38.2/node_modules/@lexical/overflow/LexicalOverflow.prod.js +37 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalCharacterLimitPlugin.prod.js +136 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposer.prod.js +53 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js +20 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalContentEditable.prod.js +85 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalEditorRefPlugin.prod.js +11 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +20 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +17 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalListPlugin.prod.js +16 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +20 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalReactProviderExtension.prod.js +5 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +96 -0
- package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/useLexicalEditable.prod.js +23 -0
- package/dist/node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js +418 -0
- package/dist/node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js +170 -0
- package/dist/node_modules/.pnpm/@lexical_text@0.38.2/node_modules/@lexical/text/LexicalText.prod.js +33 -0
- package/dist/node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js +112 -0
- package/dist/node_modules/.pnpm/@rooks_use-localstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-localstorage-state/lib/index.esm.js +50 -0
- package/dist/node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js +10 -0
- package/dist/node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js +50 -0
- package/dist/node_modules/.pnpm/are-passive-events-supported@1.1.1/node_modules/are-passive-events-supported/dist/are-passive-events-supported.esm.browser.js +11 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js +41 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js +128 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js +59 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js +30 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js +59 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/Axios.js +131 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js +34 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js +171 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js +23 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js +67 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js +12 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js +81 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +32 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js +17 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js +27 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js +26 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js +27 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +5 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js +30 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js +16 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js +14 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js +67 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +14 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js +51 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/validator.js +47 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/index.js +22 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js +235 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/auto/auto.js +5 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js +6301 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chunks/helpers.dataset.js +1381 -0
- package/dist/node_modules/.pnpm/chartjs-plugin-datalabels@2.2.0_chart.js@4.5.1/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +354 -0
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +32 -0
- package/dist/node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js +43 -0
- package/dist/node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.js +549 -0
- package/dist/node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js +59 -0
- package/dist/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +75 -0
- package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +68 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/core.js +154 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/error.js +36 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/formatters.js +107 -0
- package/dist/node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js +5093 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +198 -0
- package/dist/node_modules/.pnpm/react-chartjs-2@5.3.1_chart.js@4.5.1_react@18.3.1/node_modules/react-chartjs-2/dist/index.js +76 -0
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/Component.js +160 -0
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/index.js +10 -0
- package/dist/node_modules/.pnpm/react-error-boundary@6.1.1_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js +58 -0
- package/dist/node_modules/.pnpm/react-hot-toast@2.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-hot-toast/dist/index.js +494 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/index.js +13 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createFormattedComponent.js +35 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createIntl.js +39 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/injectIntl.js +9 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js +22 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/provider.js +45 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js +10 -0
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/utils.js +33 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +82 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +62 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/.pnpm/react-loading-skeleton@3.5.0_react@18.3.1/node_modules/react-loading-skeleton/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/react-modern-drawer@1.4.0_react@18.3.1/node_modules/react-modern-drawer/dist/index.modern.js +84 -0
- package/dist/node_modules/.pnpm/react-oauth-popup@1.0.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-oauth-popup/dist/index.js +106 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +453 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +27 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +10 -0
- package/dist/node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js +26 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/node_modules/.pnpm/use-debounce@10.1.1_react@18.3.1/node_modules/use-debounce/dist/index.module.js +70 -0
- package/dist/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@19.2.14_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
- package/dist/node_modules/.pnpm/use-latest@1.3.0_@types_react@19.2.14_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js +11 -0
- package/dist/node_modules/.pnpm/use-onclickoutside@0.4.1_@types_react@19.2.14_react@18.3.1/node_modules/use-onclickoutside/dist/use-onclickoutside.browser.esm.js +26 -0
- package/dist/node_modules/.pnpm/webfontloader@1.6.28/node_modules/webfontloader/webfontloader.js +482 -0
- package/package.json +8 -7
- package/.changeset/config.json +0 -11
- package/.eslintrc.js +0 -12
- package/.github/dependabot.yml +0 -7
- package/.github/workflows/master.yml +0 -121
- package/.storybook/main.mjs +0 -47
- package/.storybook/preview.js +0 -11
- package/src/components/action/back_link/BackLink.docs.mdx +0 -25
- package/src/components/action/back_link/BackLink.jsx +0 -30
- package/src/components/action/back_link/BackLink.module.scss +0 -34
- package/src/components/action/back_link/BackLink.stories.jsx +0 -28
- package/src/components/action/back_link/BackLink.test.jsx +0 -105
- package/src/components/action/back_link/index.js +0 -1
- package/src/components/action/button/Button.docs.mdx +0 -43
- package/src/components/action/button/Button.examples.jsx +0 -60
- package/src/components/action/button/Button.jsx +0 -88
- package/src/components/action/button/Button.module.scss +0 -133
- package/src/components/action/button/Button.stories.jsx +0 -54
- package/src/components/action/button/Button.test.jsx +0 -54
- package/src/components/action/button/index.js +0 -1
- package/src/components/action/icon_text_link/HomeIcon.dev.jsx +0 -9
- package/src/components/action/icon_text_link/IconTextLink.docs.mdx +0 -37
- package/src/components/action/icon_text_link/IconTextLink.jsx +0 -57
- package/src/components/action/icon_text_link/IconTextLink.module.scss +0 -67
- package/src/components/action/icon_text_link/IconTextLink.stories.jsx +0 -44
- package/src/components/action/icon_text_link/IconTextLink.test.jsx +0 -134
- package/src/components/action/icon_text_link/index.js +0 -1
- package/src/components/action/link/Link.docs.mdx +0 -23
- package/src/components/action/link/Link.jsx +0 -50
- package/src/components/action/link/Link.stories.jsx +0 -43
- package/src/components/action/link/Link.test.jsx +0 -91
- package/src/components/action/link/index.js +0 -1
- package/src/components/ad/ad_unit/AdUnit.docs.mdx +0 -23
- package/src/components/ad/ad_unit/AdUnit.jsx +0 -75
- package/src/components/ad/ad_unit/AdUnit.module.scss +0 -9
- package/src/components/ad/ad_unit/AdUnit.stories.jsx +0 -30
- package/src/components/ad/ad_unit/AdUnit.test.jsx +0 -63
- package/src/components/ad/ad_unit/index.js +0 -1
- package/src/components/ad/use_google_ad_manager/index.js +0 -1
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.docs.mdx +0 -27
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.jsx +0 -37
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.test.jsx +0 -47
- package/src/components/ad/with_ad/WithAd.docs.mdx +0 -30
- package/src/components/ad/with_ad/WithAd.jsx +0 -51
- package/src/components/ad/with_ad/WithAd.test.jsx +0 -104
- package/src/components/ad/with_ad/index.js +0 -1
- package/src/components/argument/argument/Argument.docs.mdx +0 -60
- package/src/components/argument/argument/Argument.jsx +0 -358
- package/src/components/argument/argument/Argument.module.scss +0 -233
- package/src/components/argument/argument/Argument.stories.jsx +0 -232
- package/src/components/argument/argument/Argument.test.jsx +0 -303
- package/src/components/argument/argument/ReplyFooter.jsx +0 -47
- package/src/components/argument/argument/ReplyFooter.module.scss +0 -77
- package/src/components/argument/argument/index.js +0 -2
- package/src/components/argument/argument/useRichContent.jsx +0 -18
- package/src/components/argument/top_arguments/TopArguments.docs.mdx +0 -22
- package/src/components/argument/top_arguments/TopArguments.jsx +0 -90
- package/src/components/argument/top_arguments/TopArguments.module.scss +0 -37
- package/src/components/argument/top_arguments/TopArguments.stories.jsx +0 -156
- package/src/components/argument/top_arguments/TopArguments.test.jsx +0 -67
- package/src/components/argument/top_arguments/index.js +0 -1
- package/src/components/auth/auth_initializer/AuthInitializer.alltest.js +0 -21
- package/src/components/auth/auth_initializer/AuthInitializer.docs.mdx +0 -34
- package/src/components/auth/auth_initializer/AuthInitializer.jsx +0 -61
- package/src/components/auth/auth_initializer/index.js +0 -1
- package/src/components/auth/auth_modal/AuthModal.alltest.js +0 -30
- package/src/components/auth/auth_modal/AuthModal.docs.mdx +0 -26
- package/src/components/auth/auth_modal/AuthModal.jsx +0 -99
- package/src/components/auth/auth_modal/AuthModal.module.scss +0 -9
- package/src/components/auth/auth_modal/AuthModal.stories.jsx +0 -90
- package/src/components/auth/auth_modal/index.js +0 -1
- package/src/components/auth/facebook_login_button/FacebookIcon.jsx +0 -7
- package/src/components/auth/facebook_login_button/FacebookLoginButton.docs.mdx +0 -34
- package/src/components/auth/facebook_login_button/FacebookLoginButton.jsx +0 -25
- package/src/components/auth/facebook_login_button/FacebookLoginButton.module.scss +0 -32
- package/src/components/auth/facebook_login_button/FacebookLoginButton.stories.jsx +0 -35
- package/src/components/auth/facebook_login_button/FacebookLoginButton.test.jsx +0 -68
- package/src/components/auth/facebook_login_button/index.js +0 -1
- package/src/components/auth/google_login_button/GoogleIcon.jsx +0 -10
- package/src/components/auth/google_login_button/GoogleLoginButton.docs.mdx +0 -43
- package/src/components/auth/google_login_button/GoogleLoginButton.jsx +0 -27
- package/src/components/auth/google_login_button/GoogleLoginButton.module.scss +0 -28
- package/src/components/auth/google_login_button/GoogleLoginButton.stories.jsx +0 -35
- package/src/components/auth/google_login_button/GoogleLoginButton.test.jsx +0 -69
- package/src/components/auth/google_login_button/index.js +0 -1
- package/src/components/auth/login_form/LoginForm.docs.mdx +0 -24
- package/src/components/auth/login_form/LoginForm.jsx +0 -65
- package/src/components/auth/login_form/LoginForm.module.scss +0 -36
- package/src/components/auth/login_form/LoginForm.stories.jsx +0 -42
- package/src/components/auth/login_form/LoginForm.test.jsx +0 -94
- package/src/components/auth/login_form/index.js +0 -1
- package/src/components/auth/oauth2_button/OAuth2Button.docs.mdx +0 -32
- package/src/components/auth/oauth2_button/OAuth2Button.jsx +0 -79
- package/src/components/auth/oauth2_button/OAuth2Button.module.scss +0 -10
- package/src/components/auth/oauth2_button/OAuth2Button.stories.jsx +0 -48
- package/src/components/auth/oauth2_button/OAuth2Button.test.jsx +0 -306
- package/src/components/auth/oauth2_button/index.js +0 -1
- package/src/components/auth/providers/AuthProvider.docs.mdx +0 -35
- package/src/components/auth/providers/AuthProvider.js +0 -23
- package/src/components/auth/providers/AuthProviderFactory.js +0 -20
- package/src/components/auth/providers/FormAuth.js +0 -36
- package/src/components/auth/providers/JWTAuth.js +0 -35
- package/src/components/auth/providers/OAuth2ServerAuth.js +0 -47
- package/src/components/auth/providers/PasswordAuth.js +0 -31
- package/src/components/auth/providers/index.js +0 -1
- package/src/components/auth/providers/tests/AuthProviderFactory.test.jsx +0 -53
- package/src/components/auth/providers/tests/FormAuth.test.jsx +0 -45
- package/src/components/auth/providers/tests/JWTAuth.test.jsx +0 -57
- package/src/components/auth/providers/tests/OAuth2ServerAuth.test.jsx +0 -78
- package/src/components/auth/providers/tests/PasswordAuth.test.jsx +0 -43
- package/src/components/auth/signup_form/SignupForm.docs.mdx +0 -29
- package/src/components/auth/signup_form/SignupForm.jsx +0 -125
- package/src/components/auth/signup_form/SignupForm.module.scss +0 -21
- package/src/components/auth/signup_form/SignupForm.stories.jsx +0 -40
- package/src/components/auth/signup_form/SignupForm.test.jsx +0 -144
- package/src/components/auth/signup_form/index.js +0 -1
- package/src/components/auth/social_auth_form/SocialAuthForm.docs.mdx +0 -33
- package/src/components/auth/social_auth_form/SocialAuthForm.jsx +0 -170
- package/src/components/auth/social_auth_form/SocialAuthForm.module.scss +0 -141
- package/src/components/auth/social_auth_form/SocialAuthForm.stories.jsx +0 -82
- package/src/components/auth/social_auth_form/SocialAuthForm.test.jsx +0 -201
- package/src/components/auth/social_auth_form/index.js +0 -1
- package/src/components/auth/sso_form/SSOForm.docs.mdx +0 -39
- package/src/components/auth/sso_form/SSOForm.jsx +0 -243
- package/src/components/auth/sso_form/SSOForm.module.scss +0 -99
- package/src/components/auth/sso_form/SSOForm.stories.jsx +0 -117
- package/src/components/auth/sso_form/SSOForm.test.jsx +0 -83
- package/src/components/auth/sso_form/index.js +0 -1
- package/src/components/auth/use_auth/AuthContext.js +0 -3
- package/src/components/auth/use_auth/AuthProvider.jsx +0 -21
- package/src/components/auth/use_auth/AuthProvider.test.jsx +0 -26
- package/src/components/auth/use_auth/AuthStorage.js +0 -33
- package/src/components/auth/use_auth/AuthStorage.test.jsx +0 -165
- package/src/components/auth/use_auth/authTokenHandler.js +0 -67
- package/src/components/auth/use_auth/authTokenHandler.test.jsx +0 -117
- package/src/components/auth/use_auth/index.js +0 -7
- package/src/components/auth/use_auth/useAuth.docs.mdx +0 -34
- package/src/components/auth/use_auth/useAuth.js +0 -8
- package/src/components/auth/use_auth/useAuthActions.js +0 -77
- package/src/components/auth/use_auth/useAuthInterceptor.jsx +0 -42
- package/src/components/chart/line_chart/LineChart.docs.mdx +0 -34
- package/src/components/chart/line_chart/LineChart.jsx +0 -107
- package/src/components/chart/line_chart/LineChart.module.scss +0 -54
- package/src/components/chart/line_chart/LineChart.stories.jsx +0 -49
- package/src/components/chart/line_chart/LineChart.test.jsx +0 -12
- package/src/components/chart/line_chart/index.js +0 -1
- package/src/components/chart/pie_chart/PieChart.docs.mdx +0 -26
- package/src/components/chart/pie_chart/PieChart.jsx +0 -102
- package/src/components/chart/pie_chart/PieChart.module.scss +0 -17
- package/src/components/chart/pie_chart/PieChart.stories.jsx +0 -36
- package/src/components/chart/pie_chart/PieChart.test.jsx +0 -12
- package/src/components/chart/pie_chart/index.js +0 -1
- package/src/components/consultation/consultation_box/ConsultationBox.docs.mdx +0 -21
- package/src/components/consultation/consultation_box/ConsultationBox.jsx +0 -101
- package/src/components/consultation/consultation_box/ConsultationBox.module.scss +0 -105
- package/src/components/consultation/consultation_box/ConsultationBox.stories.jsx +0 -96
- package/src/components/consultation/consultation_box/ConsultationBox.test.jsx +0 -58
- package/src/components/consultation/consultation_box/index.js +0 -1
- package/src/components/data/axios_client/httpClient.docs.mdx +0 -4
- package/src/components/data/axios_client/httpClient.js +0 -11
- package/src/components/data/axios_client/index.js +0 -1
- package/src/components/data/config_provider/ConfigProvider.docs.mdx +0 -26
- package/src/components/data/config_provider/ConfigProvider.jsx +0 -21
- package/src/components/data/config_provider/ConfigProvider.test.jsx +0 -39
- package/src/components/data/config_provider/index.js +0 -4
- package/src/components/data/config_provider/useConfig.jsx +0 -8
- package/src/components/data/config_provider/useRoutes.jsx +0 -8
- package/src/components/data/config_provider/withConfig.jsx +0 -8
- package/src/components/data/data_provider/DataProvider.docs.mdx +0 -52
- package/src/components/data/data_provider/DataProvider.jsx +0 -165
- package/src/components/data/data_provider/DataProvider.test.jsx +0 -419
- package/src/components/data/data_provider/DataProviderContext.jsx +0 -3
- package/src/components/data/data_provider/index.js +0 -4
- package/src/components/data/data_provider/useData.jsx +0 -9
- package/src/components/data/data_provider/useDataProvider.jsx +0 -8
- package/src/components/data/data_provider/useDataProvider.test.jsx +0 -38
- package/src/components/debate/debate_box/DebateBox.docs.mdx +0 -23
- package/src/components/debate/debate_box/DebateBox.jsx +0 -136
- package/src/components/debate/debate_box/DebateBox.module.scss +0 -209
- package/src/components/debate/debate_box/DebateBox.stories.jsx +0 -157
- package/src/components/debate/debate_box/DebateBox.test.jsx +0 -117
- package/src/components/debate/debate_box/index.js +0 -1
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.docs.mdx +0 -24
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.jsx +0 -37
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.module.scss +0 -35
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.stories.jsx +0 -44
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.test.jsx +0 -35
- package/src/components/dialog/announcement_dialog/HomeIcon.dev.jsx +0 -9
- package/src/components/dialog/announcement_dialog/index.js +0 -1
- package/src/components/dialog/confirm_modal/ConfirmModal.docs.mdx +0 -25
- package/src/components/dialog/confirm_modal/ConfirmModal.jsx +0 -53
- package/src/components/dialog/confirm_modal/ConfirmModal.module.scss +0 -30
- package/src/components/dialog/confirm_modal/ConfirmModal.stories.jsx +0 -36
- package/src/components/dialog/confirm_modal/ConfirmModal.test.jsx +0 -176
- package/src/components/dialog/confirm_modal/index.js +0 -1
- package/src/components/dialog/countdown/Countdown.docs.mdx +0 -23
- package/src/components/dialog/countdown/Countdown.jsx +0 -36
- package/src/components/dialog/countdown/Countdown.stories.jsx +0 -33
- package/src/components/dialog/countdown/Countdown.test.jsx +0 -51
- package/src/components/dialog/countdown/index.js +0 -1
- package/src/components/dialog/dialog_box/DialogBox.docs.mdx +0 -25
- package/src/components/dialog/dialog_box/DialogBox.jsx +0 -53
- package/src/components/dialog/dialog_box/DialogBox.module.scss +0 -145
- package/src/components/dialog/dialog_box/DialogBox.stories.jsx +0 -45
- package/src/components/dialog/dialog_box/DialogBox.test.jsx +0 -40
- package/src/components/dialog/dialog_box/index.js +0 -1
- package/src/components/dialog/drawer/Drawer.docs.mdx +0 -31
- package/src/components/dialog/drawer/Drawer.jsx +0 -159
- package/src/components/dialog/drawer/Drawer.module.scss +0 -136
- package/src/components/dialog/drawer/Drawer.stories.jsx +0 -194
- package/src/components/dialog/drawer/Drawer.test.jsx +0 -15
- package/src/components/dialog/drawer/index.js +0 -1
- package/src/components/dialog/dropdown/Dropdown.docs.mdx +0 -28
- package/src/components/dialog/dropdown/Dropdown.jsx +0 -59
- package/src/components/dialog/dropdown/Dropdown.module.scss +0 -41
- package/src/components/dialog/dropdown/Dropdown.stories.jsx +0 -42
- package/src/components/dialog/dropdown/Dropdown.test.jsx +0 -126
- package/src/components/dialog/dropdown/index.js +0 -1
- package/src/components/dialog/modal/Modal.docs.mdx +0 -39
- package/src/components/dialog/modal/Modal.jsx +0 -101
- package/src/components/dialog/modal/Modal.module.scss +0 -99
- package/src/components/dialog/modal/Modal.stories.jsx +0 -53
- package/src/components/dialog/modal/Modal.test.jsx +0 -115
- package/src/components/dialog/modal/ModalProvider.jsx +0 -26
- package/src/components/dialog/modal/ModalProvider.test.jsx +0 -39
- package/src/components/dialog/modal/index.js +0 -3
- package/src/components/dialog/modal/useModal.jsx +0 -6
- package/src/components/dialog/toast/Toast.docs.mdx +0 -21
- package/src/components/dialog/toast/Toast.jsx +0 -44
- package/src/components/dialog/toast/Toast.module.scss +0 -66
- package/src/components/dialog/toast/Toast.stories.jsx +0 -42
- package/src/components/dialog/toast/Toast.test.jsx +0 -21
- package/src/components/dialog/toast/index.js +0 -1
- package/src/components/dialog/toast_provider/ToastContext.js +0 -3
- package/src/components/dialog/toast_provider/ToastProvider.docs.mdx +0 -36
- package/src/components/dialog/toast_provider/ToastProvider.jsx +0 -35
- package/src/components/dialog/toast_provider/ToastProvider.module.scss +0 -14
- package/src/components/dialog/toast_provider/ToastProvider.test.jsx +0 -64
- package/src/components/dialog/toast_provider/index.js +0 -2
- package/src/components/dialog/toast_provider/useToast.jsx +0 -8
- package/src/components/dialog/tooltip/Tooltip.docs.mdx +0 -20
- package/src/components/dialog/tooltip/Tooltip.jsx +0 -53
- package/src/components/dialog/tooltip/Tooltip.module.scss +0 -92
- package/src/components/dialog/tooltip/Tooltip.stories.jsx +0 -76
- package/src/components/dialog/tooltip/Tooltip.test.jsx +0 -67
- package/src/components/dialog/tooltip/index.js +0 -3
- package/src/components/embed/embed_header/EmbedHeader.docs.mdx +0 -25
- package/src/components/embed/embed_header/EmbedHeader.jsx +0 -61
- package/src/components/embed/embed_header/EmbedHeader.module.scss +0 -148
- package/src/components/embed/embed_header/EmbedHeader.stories.jsx +0 -54
- package/src/components/embed/embed_header/EmbedHeader.test.jsx +0 -70
- package/src/components/embed/embed_header/index.js +0 -1
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.docs.mdx +0 -26
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.jsx +0 -27
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.module.scss +0 -8
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.test.jsx +0 -56
- package/src/components/error/standard_error_boundary/index.js +0 -1
- package/src/components/follow/follow_button/FollowButton.docs.mdx +0 -41
- package/src/components/follow/follow_button/FollowButton.jsx +0 -40
- package/src/components/follow/follow_button/FollowButton.module.scss +0 -17
- package/src/components/follow/follow_button/FollowButton.stories.jsx +0 -58
- package/src/components/follow/follow_button/FollowButton.test.jsx +0 -45
- package/src/components/follow/follow_button/index.js +0 -1
- package/src/components/follow/use_follow/index.js +0 -1
- package/src/components/follow/use_follow/useFollow.docs.mdx +0 -24
- package/src/components/follow/use_follow/useFollow.jsx +0 -60
- package/src/components/follow/use_follow/useFollow.test.jsx +0 -94
- package/src/components/forms/form/extract-form-data.js +0 -14
- package/src/components/forms/form/form-context.js +0 -3
- package/src/components/forms/form/form.docs.mdx +0 -232
- package/src/components/forms/form/form.jsx +0 -26
- package/src/components/forms/form/form.stories.jsx +0 -119
- package/src/components/forms/form/form.test.jsx +0 -3
- package/src/components/forms/form/index.js +0 -6
- package/src/components/forms/form/use-form-context.js +0 -43
- package/src/components/forms/form/use-form.js +0 -4
- package/src/components/forms/use_form_validation/index.js +0 -1
- package/src/components/forms/use_form_validation/useFormValidation.docs.mdx +0 -40
- package/src/components/forms/use_form_validation/useFormValidation.jsx +0 -114
- package/src/components/forms/use_form_validation/useFormValidation.test.jsx +0 -91
- package/src/components/gamification/badge_box/BadgeBox.docs.mdx +0 -25
- package/src/components/gamification/badge_box/BadgeBox.jsx +0 -74
- package/src/components/gamification/badge_box/BadgeBox.module.scss +0 -103
- package/src/components/gamification/badge_box/BadgeBox.stories.jsx +0 -64
- package/src/components/gamification/badge_box/BadgeBox.test.jsx +0 -113
- package/src/components/gamification/badge_box/index.js +0 -1
- package/src/components/gamification/point_box/PointBox.docs.mdx +0 -19
- package/src/components/gamification/point_box/PointBox.jsx +0 -28
- package/src/components/gamification/point_box/PointBox.module.scss +0 -38
- package/src/components/gamification/point_box/PointBox.stories.jsx +0 -32
- package/src/components/gamification/point_box/PointBox.test.jsx +0 -21
- package/src/components/gamification/point_box/index.js +0 -1
- package/src/components/hooks/use_auth_required/index.js +0 -1
- package/src/components/hooks/use_auth_required/useAuthRequired.docs.mdx +0 -22
- package/src/components/hooks/use_auth_required/useAuthRequired.jsx +0 -28
- package/src/components/hooks/use_auth_required/useAuthRequired.test.jsx +0 -85
- package/src/components/hooks/use_css_theme/index.js +0 -1
- package/src/components/hooks/use_css_theme/useCssTheme.docs.mdx +0 -34
- package/src/components/hooks/use_css_theme/useCssTheme.js +0 -27
- package/src/components/hooks/use_css_theme/useCssTheme.stories.jsx +0 -41
- package/src/components/hooks/use_css_theme/useCssTheme.test.jsx +0 -31
- package/src/components/hooks/use_font_loader/index.js +0 -1
- package/src/components/hooks/use_font_loader/useFontLoader.docs.mdx +0 -24
- package/src/components/hooks/use_font_loader/useFontLoader.js +0 -16
- package/src/components/hooks/use_font_loader/useFontLoader.test.jsx +0 -64
- package/src/components/hooks/use_matomo/index.js +0 -1
- package/src/components/hooks/use_matomo/useMatomo.docs.mdx +0 -28
- package/src/components/hooks/use_matomo/useMatomo.js +0 -17
- package/src/components/hooks/use_matomo/useMatomo.test.jsx +0 -24
- package/src/components/hooks/use_relative_time/index.js +0 -1
- package/src/components/hooks/use_relative_time/useRelativeTime.docs.mdx +0 -35
- package/src/components/hooks/use_relative_time/useRelativeTime.jsx +0 -40
- package/src/components/hooks/use_relative_time/useRelativeTime.test.jsx +0 -82
- package/src/components/hooks/use_responsive/ResponsiveContext.jsx +0 -3
- package/src/components/hooks/use_responsive/ResponsiveProvider.jsx +0 -52
- package/src/components/hooks/use_responsive/index.js +0 -2
- package/src/components/hooks/use_responsive/useResponsive.docs.mdx +0 -46
- package/src/components/hooks/use_responsive/useResponsive.jsx +0 -8
- package/src/components/hooks/use_responsive/useResponsive.stories.jsx +0 -49
- package/src/components/hooks/use_responsive/useResponsive.test.jsx +0 -54
- package/src/components/icons/bild_icons/Alarm.jsx +0 -7
- package/src/components/icons/bild_icons/Announcement.jsx +0 -16
- package/src/components/icons/bild_icons/Arrow.jsx +0 -7
- package/src/components/icons/bild_icons/BildIcons.docs.mdx +0 -21
- package/src/components/icons/bild_icons/BildIcons.stories.jsx +0 -123
- package/src/components/icons/bild_icons/BildIcons.test.jsx +0 -15
- package/src/components/icons/bild_icons/Blockquote.jsx +0 -7
- package/src/components/icons/bild_icons/Bold.jsx +0 -7
- package/src/components/icons/bild_icons/Camera.jsx +0 -8
- package/src/components/icons/bild_icons/Chat.jsx +0 -16
- package/src/components/icons/bild_icons/Check.jsx +0 -7
- package/src/components/icons/bild_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/bild_icons/Checkbox.jsx +0 -8
- package/src/components/icons/bild_icons/Clap.jsx +0 -9
- package/src/components/icons/bild_icons/Clock.jsx +0 -7
- package/src/components/icons/bild_icons/Close.jsx +0 -7
- package/src/components/icons/bild_icons/Code.jsx +0 -18
- package/src/components/icons/bild_icons/Community.jsx +0 -7
- package/src/components/icons/bild_icons/Crown.jsx +0 -7
- package/src/components/icons/bild_icons/Document.jsx +0 -7
- package/src/components/icons/bild_icons/Downvote.jsx +0 -7
- package/src/components/icons/bild_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/bild_icons/ExpertBadge.jsx +0 -11
- package/src/components/icons/bild_icons/Facebook.jsx +0 -7
- package/src/components/icons/bild_icons/Flag.jsx +0 -7
- package/src/components/icons/bild_icons/Home.jsx +0 -7
- package/src/components/icons/bild_icons/Italic.jsx +0 -7
- package/src/components/icons/bild_icons/LightArrow.jsx +0 -7
- package/src/components/icons/bild_icons/Link.jsx +0 -8
- package/src/components/icons/bild_icons/Login.jsx +0 -11
- package/src/components/icons/bild_icons/Logora.jsx +0 -24
- package/src/components/icons/bild_icons/Mail.jsx +0 -7
- package/src/components/icons/bild_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/bild_icons/MobileClose.jsx +0 -8
- package/src/components/icons/bild_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/bild_icons/Next.jsx +0 -10
- package/src/components/icons/bild_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/bild_icons/OrderedList.jsx +0 -7
- package/src/components/icons/bild_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/bild_icons/Point.jsx +0 -8
- package/src/components/icons/bild_icons/Question.jsx +0 -8
- package/src/components/icons/bild_icons/Refresh.jsx +0 -7
- package/src/components/icons/bild_icons/Reply.jsx +0 -7
- package/src/components/icons/bild_icons/Search.jsx +0 -7
- package/src/components/icons/bild_icons/Send.jsx +0 -7
- package/src/components/icons/bild_icons/Share.jsx +0 -14
- package/src/components/icons/bild_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/bild_icons/Source.jsx +0 -7
- package/src/components/icons/bild_icons/Suggestion.jsx +0 -7
- package/src/components/icons/bild_icons/Twitter.jsx +0 -10
- package/src/components/icons/bild_icons/Underline.jsx +0 -7
- package/src/components/icons/bild_icons/Upvote.jsx +0 -7
- package/src/components/icons/bild_icons/User.jsx +0 -7
- package/src/components/icons/bild_icons/Versus.jsx +0 -11
- package/src/components/icons/bild_icons/Votebox.jsx +0 -7
- package/src/components/icons/bild_icons/index.js +0 -52
- package/src/components/icons/hero_icons/Alarm.jsx +0 -7
- package/src/components/icons/hero_icons/Announcement.jsx +0 -7
- package/src/components/icons/hero_icons/Arrow.jsx +0 -7
- package/src/components/icons/hero_icons/Blockquote.jsx +0 -14
- package/src/components/icons/hero_icons/Bold.jsx +0 -7
- package/src/components/icons/hero_icons/Camera.jsx +0 -8
- package/src/components/icons/hero_icons/Chat.jsx +0 -7
- package/src/components/icons/hero_icons/Check.jsx +0 -8
- package/src/components/icons/hero_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/hero_icons/Checkbox.jsx +0 -7
- package/src/components/icons/hero_icons/Clap.jsx +0 -7
- package/src/components/icons/hero_icons/Clock.jsx +0 -7
- package/src/components/icons/hero_icons/Close.jsx +0 -8
- package/src/components/icons/hero_icons/Code.jsx +0 -7
- package/src/components/icons/hero_icons/Community.jsx +0 -7
- package/src/components/icons/hero_icons/Crown.jsx +0 -7
- package/src/components/icons/hero_icons/Downvote.jsx +0 -8
- package/src/components/icons/hero_icons/Ellipsis.jsx +0 -7
- package/src/components/icons/hero_icons/ExpertBadge.jsx +0 -7
- package/src/components/icons/hero_icons/Facebook.jsx +0 -7
- package/src/components/icons/hero_icons/Flag.jsx +0 -7
- package/src/components/icons/hero_icons/HeroIcons.docs.mdx +0 -19
- package/src/components/icons/hero_icons/HeroIcons.stories.jsx +0 -121
- package/src/components/icons/hero_icons/HeroIcons.test.jsx +0 -15
- package/src/components/icons/hero_icons/Home.jsx +0 -7
- package/src/components/icons/hero_icons/Italic.jsx +0 -7
- package/src/components/icons/hero_icons/LightArrow.jsx +0 -7
- package/src/components/icons/hero_icons/Link.jsx +0 -7
- package/src/components/icons/hero_icons/Login.jsx +0 -7
- package/src/components/icons/hero_icons/Logora.jsx +0 -24
- package/src/components/icons/hero_icons/Mail.jsx +0 -7
- package/src/components/icons/hero_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/hero_icons/MobileClose.jsx +0 -7
- package/src/components/icons/hero_icons/MobileMenu.jsx +0 -7
- package/src/components/icons/hero_icons/Next.jsx +0 -8
- package/src/components/icons/hero_icons/OpenBlank.jsx +0 -7
- package/src/components/icons/hero_icons/OrderedList.jsx +0 -19
- package/src/components/icons/hero_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/hero_icons/Point.jsx +0 -8
- package/src/components/icons/hero_icons/Question.jsx +0 -7
- package/src/components/icons/hero_icons/Refresh.jsx +0 -7
- package/src/components/icons/hero_icons/Reply.jsx +0 -7
- package/src/components/icons/hero_icons/Search.jsx +0 -7
- package/src/components/icons/hero_icons/Send.jsx +0 -7
- package/src/components/icons/hero_icons/Share.jsx +0 -8
- package/src/components/icons/hero_icons/SmallArrow.jsx +0 -7
- package/src/components/icons/hero_icons/Source.jsx +0 -8
- package/src/components/icons/hero_icons/Suggestion.jsx +0 -9
- package/src/components/icons/hero_icons/Twitter.jsx +0 -10
- package/src/components/icons/hero_icons/Underline.jsx +0 -14
- package/src/components/icons/hero_icons/Upvote.jsx +0 -7
- package/src/components/icons/hero_icons/User.jsx +0 -7
- package/src/components/icons/hero_icons/Versus.jsx +0 -7
- package/src/components/icons/hero_icons/Votebox.jsx +0 -7
- package/src/components/icons/hero_icons/index.js +0 -51
- package/src/components/icons/icon/Icon.docs.mdx +0 -20
- package/src/components/icons/icon/Icon.jsx +0 -32
- package/src/components/icons/icon/Icon.test.jsx +0 -33
- package/src/components/icons/icon/index.js +0 -1
- package/src/components/icons/icon_provider/IconProvider.docs.mdx +0 -28
- package/src/components/icons/icon_provider/IconProvider.jsx +0 -19
- package/src/components/icons/icon_provider/IconProvider.test.jsx +0 -24
- package/src/components/icons/icon_provider/index.js +0 -1
- package/src/components/icons/krone_icons/Alarm.jsx +0 -27
- package/src/components/icons/krone_icons/Announcement.jsx +0 -16
- package/src/components/icons/krone_icons/Arrow.jsx +0 -7
- package/src/components/icons/krone_icons/Blockquote.jsx +0 -7
- package/src/components/icons/krone_icons/Bold.jsx +0 -7
- package/src/components/icons/krone_icons/Camera.jsx +0 -8
- package/src/components/icons/krone_icons/Chat.jsx +0 -29
- package/src/components/icons/krone_icons/Check.jsx +0 -7
- package/src/components/icons/krone_icons/CheckBox.jsx +0 -7
- package/src/components/icons/krone_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/krone_icons/Clap.jsx +0 -29
- package/src/components/icons/krone_icons/Clock.jsx +0 -7
- package/src/components/icons/krone_icons/Close.jsx +0 -7
- package/src/components/icons/krone_icons/Code.jsx +0 -18
- package/src/components/icons/krone_icons/Community.jsx +0 -7
- package/src/components/icons/krone_icons/Crown.jsx +0 -7
- package/src/components/icons/krone_icons/Document.jsx +0 -7
- package/src/components/icons/krone_icons/Downvote.jsx +0 -7
- package/src/components/icons/krone_icons/Ellipsis.jsx +0 -18
- package/src/components/icons/krone_icons/ExpertBadge.jsx +0 -29
- package/src/components/icons/krone_icons/Facebook.jsx +0 -7
- package/src/components/icons/krone_icons/Flag.jsx +0 -7
- package/src/components/icons/krone_icons/Home.jsx +0 -29
- package/src/components/icons/krone_icons/Italic.jsx +0 -7
- package/src/components/icons/krone_icons/KroneIcons.docs.mdx +0 -21
- package/src/components/icons/krone_icons/KroneIcons.stories.jsx +0 -124
- package/src/components/icons/krone_icons/KroneIcons.test.jsx +0 -15
- package/src/components/icons/krone_icons/LightArrow.jsx +0 -7
- package/src/components/icons/krone_icons/Link.jsx +0 -8
- package/src/components/icons/krone_icons/Login.jsx +0 -11
- package/src/components/icons/krone_icons/Logora.jsx +0 -24
- package/src/components/icons/krone_icons/Mail.jsx +0 -7
- package/src/components/icons/krone_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/krone_icons/MobileClose.jsx +0 -8
- package/src/components/icons/krone_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/krone_icons/Next.jsx +0 -10
- package/src/components/icons/krone_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/krone_icons/OrderedList.jsx +0 -7
- package/src/components/icons/krone_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/krone_icons/Point.jsx +0 -8
- package/src/components/icons/krone_icons/Question.jsx +0 -29
- package/src/components/icons/krone_icons/Refresh.jsx +0 -7
- package/src/components/icons/krone_icons/Reply.jsx +0 -18
- package/src/components/icons/krone_icons/Search.jsx +0 -7
- package/src/components/icons/krone_icons/Send.jsx +0 -19
- package/src/components/icons/krone_icons/Share.jsx +0 -16
- package/src/components/icons/krone_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/krone_icons/Source.jsx +0 -7
- package/src/components/icons/krone_icons/Suggestion.jsx +0 -29
- package/src/components/icons/krone_icons/Twitter.jsx +0 -10
- package/src/components/icons/krone_icons/Underline.jsx +0 -7
- package/src/components/icons/krone_icons/Upvote.jsx +0 -29
- package/src/components/icons/krone_icons/User.jsx +0 -30
- package/src/components/icons/krone_icons/Versus.jsx +0 -9
- package/src/components/icons/krone_icons/Votebox.jsx +0 -29
- package/src/components/icons/krone_icons/index.js +0 -52
- package/src/components/icons/regular_icons/Alarm.jsx +0 -7
- package/src/components/icons/regular_icons/Announcement.jsx +0 -16
- package/src/components/icons/regular_icons/Arrow.jsx +0 -7
- package/src/components/icons/regular_icons/Blockquote.jsx +0 -7
- package/src/components/icons/regular_icons/Bold.jsx +0 -7
- package/src/components/icons/regular_icons/Camera.jsx +0 -8
- package/src/components/icons/regular_icons/Chat.jsx +0 -10
- package/src/components/icons/regular_icons/Check.jsx +0 -7
- package/src/components/icons/regular_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/regular_icons/Checkbox.jsx +0 -8
- package/src/components/icons/regular_icons/Clap.jsx +0 -7
- package/src/components/icons/regular_icons/Clock.jsx +0 -7
- package/src/components/icons/regular_icons/Close.jsx +0 -7
- package/src/components/icons/regular_icons/Code.jsx +0 -18
- package/src/components/icons/regular_icons/Community.jsx +0 -7
- package/src/components/icons/regular_icons/Crown.jsx +0 -7
- package/src/components/icons/regular_icons/Document.jsx +0 -7
- package/src/components/icons/regular_icons/Downvote.jsx +0 -7
- package/src/components/icons/regular_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/regular_icons/ExpertBadge.jsx +0 -11
- package/src/components/icons/regular_icons/Facebook.jsx +0 -7
- package/src/components/icons/regular_icons/Flag.jsx +0 -7
- package/src/components/icons/regular_icons/Home.jsx +0 -7
- package/src/components/icons/regular_icons/Italic.jsx +0 -7
- package/src/components/icons/regular_icons/LightArrow.jsx +0 -7
- package/src/components/icons/regular_icons/Link.jsx +0 -8
- package/src/components/icons/regular_icons/Login.jsx +0 -11
- package/src/components/icons/regular_icons/Logora.jsx +0 -24
- package/src/components/icons/regular_icons/Mail.jsx +0 -7
- package/src/components/icons/regular_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/regular_icons/MobileClose.jsx +0 -8
- package/src/components/icons/regular_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/regular_icons/Next.jsx +0 -10
- package/src/components/icons/regular_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/regular_icons/OrderedList.jsx +0 -7
- package/src/components/icons/regular_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/regular_icons/Point.jsx +0 -8
- package/src/components/icons/regular_icons/Question.jsx +0 -8
- package/src/components/icons/regular_icons/Refresh.jsx +0 -7
- package/src/components/icons/regular_icons/RegularIcons.docs.mdx +0 -21
- package/src/components/icons/regular_icons/RegularIcons.stories.jsx +0 -123
- package/src/components/icons/regular_icons/RegularIcons.test.jsx +0 -15
- package/src/components/icons/regular_icons/Reply.jsx +0 -7
- package/src/components/icons/regular_icons/Search.jsx +0 -7
- package/src/components/icons/regular_icons/Send.jsx +0 -7
- package/src/components/icons/regular_icons/Share.jsx +0 -14
- package/src/components/icons/regular_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/regular_icons/Source.jsx +0 -7
- package/src/components/icons/regular_icons/Suggestion.jsx +0 -7
- package/src/components/icons/regular_icons/Twitter.jsx +0 -10
- package/src/components/icons/regular_icons/Underline.jsx +0 -7
- package/src/components/icons/regular_icons/Upvote.jsx +0 -7
- package/src/components/icons/regular_icons/User.jsx +0 -7
- package/src/components/icons/regular_icons/Versus.jsx +0 -9
- package/src/components/icons/regular_icons/Votebox.jsx +0 -7
- package/src/components/icons/regular_icons/index.js +0 -52
- package/src/components/icons/spiegel_icons/Alarm.jsx +0 -7
- package/src/components/icons/spiegel_icons/Announcement.jsx +0 -16
- package/src/components/icons/spiegel_icons/Arrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Blockquote.jsx +0 -14
- package/src/components/icons/spiegel_icons/Bold.jsx +0 -7
- package/src/components/icons/spiegel_icons/Camera.jsx +0 -8
- package/src/components/icons/spiegel_icons/Chat.jsx +0 -7
- package/src/components/icons/spiegel_icons/Check.jsx +0 -11
- package/src/components/icons/spiegel_icons/CheckCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/Checkbox.jsx +0 -14
- package/src/components/icons/spiegel_icons/Clap.jsx +0 -15
- package/src/components/icons/spiegel_icons/Clock.jsx +0 -15
- package/src/components/icons/spiegel_icons/Close.jsx +0 -7
- package/src/components/icons/spiegel_icons/Code.jsx +0 -18
- package/src/components/icons/spiegel_icons/Community.jsx +0 -7
- package/src/components/icons/spiegel_icons/Crown.jsx +0 -7
- package/src/components/icons/spiegel_icons/Downvote.jsx +0 -7
- package/src/components/icons/spiegel_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/spiegel_icons/ExpertBadge.jsx +0 -16
- package/src/components/icons/spiegel_icons/Facebook.jsx +0 -7
- package/src/components/icons/spiegel_icons/Flag.jsx +0 -8
- package/src/components/icons/spiegel_icons/Home.jsx +0 -7
- package/src/components/icons/spiegel_icons/Italic.jsx +0 -7
- package/src/components/icons/spiegel_icons/LightArrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Link.jsx +0 -17
- package/src/components/icons/spiegel_icons/Login.jsx +0 -7
- package/src/components/icons/spiegel_icons/Logora.jsx +0 -24
- package/src/components/icons/spiegel_icons/Mail.jsx +0 -7
- package/src/components/icons/spiegel_icons/MinusCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/MobileClose.jsx +0 -8
- package/src/components/icons/spiegel_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/spiegel_icons/Next.jsx +0 -10
- package/src/components/icons/spiegel_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/spiegel_icons/OrderedList.jsx +0 -20
- package/src/components/icons/spiegel_icons/PauseCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/Point.jsx +0 -8
- package/src/components/icons/spiegel_icons/Question.jsx +0 -17
- package/src/components/icons/spiegel_icons/Refresh.jsx +0 -7
- package/src/components/icons/spiegel_icons/Reply.jsx +0 -7
- package/src/components/icons/spiegel_icons/Search.jsx +0 -7
- package/src/components/icons/spiegel_icons/Send.jsx +0 -7
- package/src/components/icons/spiegel_icons/Share.jsx +0 -14
- package/src/components/icons/spiegel_icons/SmallArrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Source.jsx +0 -7
- package/src/components/icons/spiegel_icons/SpiegelIcons.docs.mdx +0 -21
- package/src/components/icons/spiegel_icons/SpiegelIcons.stories.jsx +0 -121
- package/src/components/icons/spiegel_icons/SpiegelIcons.test.jsx +0 -15
- package/src/components/icons/spiegel_icons/Suggestion.jsx +0 -7
- package/src/components/icons/spiegel_icons/Twitter.jsx +0 -10
- package/src/components/icons/spiegel_icons/Underline.jsx +0 -14
- package/src/components/icons/spiegel_icons/Upvote.jsx +0 -7
- package/src/components/icons/spiegel_icons/User.jsx +0 -7
- package/src/components/icons/spiegel_icons/Versus.jsx +0 -11
- package/src/components/icons/spiegel_icons/Votebox.jsx +0 -14
- package/src/components/icons/spiegel_icons/index.js +0 -51
- package/src/components/information/information_box/InformationBox.docs.mdx +0 -28
- package/src/components/information/information_box/InformationBox.jsx +0 -54
- package/src/components/information/information_box/InformationBox.module.scss +0 -92
- package/src/components/information/information_box/InformationBox.stories.jsx +0 -50
- package/src/components/information/information_box/InformationBox.test.jsx +0 -94
- package/src/components/information/information_box/index.js +0 -1
- package/src/components/input/argument_input/ArgumentInput.docs.mdx +0 -29
- package/src/components/input/argument_input/ArgumentInput.jsx +0 -420
- package/src/components/input/argument_input/ArgumentInput.module.scss +0 -166
- package/src/components/input/argument_input/ArgumentInput.stories.jsx +0 -181
- package/src/components/input/argument_input/ArgumentInput.test.jsx +0 -482
- package/src/components/input/argument_input/index.js +0 -1
- package/src/components/input/checkbox/hidden/hidden-checkbox.docs.mdx +0 -4
- package/src/components/input/checkbox/hidden/hidden-checkbox.jsx +0 -8
- package/src/components/input/checkbox/hidden/hidden-checkbox.module.scss +0 -28
- package/src/components/input/checkbox/hidden/hidden-checkbox.stories.jsx +0 -73
- package/src/components/input/checkbox/hidden/index.js +0 -1
- package/src/components/input/checkbox/indicator/checkbox-indicator.docs.mdx +0 -9
- package/src/components/input/checkbox/indicator/checkbox-indicator.jsx +0 -17
- package/src/components/input/checkbox/indicator/checkbox-indicator.module.scss +0 -26
- package/src/components/input/checkbox/indicator/checkbox-indicator.stories.jsx +0 -51
- package/src/components/input/checkbox/indicator/index.js +0 -1
- package/src/components/input/checkbox/label/checkbox-label.docs.mdx +0 -39
- package/src/components/input/checkbox/label/checkbox-label.jsx +0 -40
- package/src/components/input/checkbox/label/checkbox.stories.jsx +0 -57
- package/src/components/input/checkbox/label/index.js +0 -1
- package/src/components/input/input_provider/InputProvider.docs.mdx +0 -38
- package/src/components/input/input_provider/InputProvider.jsx +0 -16
- package/src/components/input/input_provider/InputProvider.test.jsx +0 -102
- package/src/components/input/input_provider/index.js +0 -2
- package/src/components/input/input_provider/useInput.jsx +0 -8
- package/src/components/input/search_input/SearchInput.docs.mdx +0 -25
- package/src/components/input/search_input/SearchInput.jsx +0 -71
- package/src/components/input/search_input/SearchInput.module.scss +0 -18
- package/src/components/input/search_input/SearchInput.stories.jsx +0 -45
- package/src/components/input/search_input/SearchInput.test.jsx +0 -95
- package/src/components/input/search_input/index.js +0 -1
- package/src/components/input/select/Select.docs.mdx +0 -37
- package/src/components/input/select/Select.jsx +0 -102
- package/src/components/input/select/Select.module.scss +0 -72
- package/src/components/input/select/Select.stories.jsx +0 -75
- package/src/components/input/select/Select.test.jsx +0 -136
- package/src/components/input/select/index.js +0 -1
- package/src/components/input/text_editor/EditorTheme.js +0 -71
- package/src/components/input/text_editor/TextEditor.docs.mdx +0 -31
- package/src/components/input/text_editor/TextEditor.jsx +0 -205
- package/src/components/input/text_editor/TextEditor.module.scss +0 -140
- package/src/components/input/text_editor/TextEditor.stories.jsx +0 -227
- package/src/components/input/text_editor/TextEditor.test.jsx +0 -654
- package/src/components/input/text_editor/index.js +0 -2
- package/src/components/input/text_editor/lexicalToHtml.js +0 -23
- package/src/components/input/text_editor/plugins/AutoSavePlugin.jsx +0 -37
- package/src/components/input/text_editor/plugins/FocusPlugin.jsx +0 -19
- package/src/components/input/text_editor/plugins/MaxLengthPlugin.jsx +0 -44
- package/src/components/input/text_editor/plugins/ResetPlugin.jsx +0 -35
- package/src/components/input/text_editor/plugins/SetContentPlugin.jsx +0 -24
- package/src/components/input/text_editor/plugins/SetRichContentPlugin.jsx +0 -20
- package/src/components/input/text_editor/plugins/ToolbarPlugin.jsx +0 -233
- package/src/components/input/text_editor/plugins/ToolbarPlugin.module.scss +0 -77
- package/src/components/input/text_input/TextInput.docs.mdx +0 -73
- package/src/components/input/text_input/TextInput.jsx +0 -46
- package/src/components/input/text_input/TextInput.module.scss +0 -146
- package/src/components/input/text_input/TextInput.stories.jsx +0 -101
- package/src/components/input/text_input/TextInput.test.jsx +0 -64
- package/src/components/input/text_input/color-accent.js +0 -16
- package/src/components/input/text_input/index.js +0 -3
- package/src/components/input/text_input/message.jsx +0 -12
- package/src/components/input/toggle/Toggle.docs.mdx +0 -23
- package/src/components/input/toggle/Toggle.jsx +0 -25
- package/src/components/input/toggle/Toggle.module.scss +0 -73
- package/src/components/input/toggle/Toggle.stories.jsx +0 -42
- package/src/components/input/toggle/Toggle.test.jsx +0 -39
- package/src/components/input/toggle/index.js +0 -1
- package/src/components/input/toggle_position/TogglePosition.docs.mdx +0 -20
- package/src/components/input/toggle_position/TogglePosition.jsx +0 -55
- package/src/components/input/toggle_position/TogglePosition.module.scss +0 -46
- package/src/components/input/toggle_position/TogglePosition.stories.jsx +0 -96
- package/src/components/input/toggle_position/TogglePosition.test.jsx +0 -66
- package/src/components/input/toggle_position/index.js +0 -1
- package/src/components/intl/intl_provider/IntlContext.jsx +0 -3
- package/src/components/intl/intl_provider/IntlProvider.docs.mdx +0 -37
- package/src/components/intl/intl_provider/IntlProvider.jsx +0 -92
- package/src/components/intl/intl_provider/IntlProvider.test.jsx +0 -153
- package/src/components/intl/intl_provider/index.js +0 -3
- package/src/components/intl/intl_provider/locales/en.json +0 -4
- package/src/components/intl/intl_provider/locales/es.json +0 -4
- package/src/components/intl/intl_provider/locales/fr.json +0 -6
- package/src/components/intl/intl_provider/locales/index.js +0 -11
- package/src/components/intl/intl_provider/useLocale.jsx +0 -8
- package/src/components/list/list_provider/ListProvider.docs.mdx +0 -51
- package/src/components/list/list_provider/ListProvider.jsx +0 -32
- package/src/components/list/list_provider/ListProvider.stories.jsx +0 -92
- package/src/components/list/list_provider/ListProvider.test.jsx +0 -137
- package/src/components/list/list_provider/index.js +0 -2
- package/src/components/list/list_provider/useList.jsx +0 -8
- package/src/components/list/paginated_list/PaginatedList.docs.mdx +0 -68
- package/src/components/list/paginated_list/PaginatedList.jsx +0 -397
- package/src/components/list/paginated_list/PaginatedList.module.scss +0 -88
- package/src/components/list/paginated_list/PaginatedList.stories.jsx +0 -301
- package/src/components/list/paginated_list/PaginatedList.test.jsx +0 -1335
- package/src/components/list/paginated_list/VotePaginatedList.jsx +0 -26
- package/src/components/list/paginated_list/VotePaginatedList.test.jsx +0 -1518
- package/src/components/list/paginated_list/action_bar/ActionBar.jsx +0 -132
- package/src/components/list/paginated_list/action_bar/ActionBar.module.scss +0 -81
- package/src/components/list/paginated_list/index.js +0 -3
- package/src/components/list/pagination/Pagination.docs.mdx +0 -32
- package/src/components/list/pagination/Pagination.jsx +0 -58
- package/src/components/list/pagination/Pagination.module.scss +0 -10
- package/src/components/list/pagination/Pagination.stories.jsx +0 -44
- package/src/components/list/pagination/Pagination.test.jsx +0 -80
- package/src/components/list/pagination/index.js +0 -1
- package/src/components/modal/side_modal/SideModal.docs.mdx +0 -31
- package/src/components/modal/side_modal/SideModal.jsx +0 -85
- package/src/components/modal/side_modal/SideModal.module.scss +0 -83
- package/src/components/modal/side_modal/SideModal.stories.jsx +0 -112
- package/src/components/modal/side_modal/SideModal.test.jsx +0 -36
- package/src/components/modal/side_modal/index.js +0 -1
- package/src/components/navbar/navbar_button/NavbarButton.docs.mdx +0 -37
- package/src/components/navbar/navbar_button/NavbarButton.jsx +0 -43
- package/src/components/navbar/navbar_button/NavbarButton.module.scss +0 -45
- package/src/components/navbar/navbar_button/NavbarButton.stories.jsx +0 -93
- package/src/components/navbar/navbar_button/NavbarButton.test.jsx +0 -67
- package/src/components/navbar/navbar_button/index.js +0 -1
- package/src/components/navbar/navbar_modal/NavbarModal.docs.mdx +0 -24
- package/src/components/navbar/navbar_modal/NavbarModal.jsx +0 -175
- package/src/components/navbar/navbar_modal/NavbarModal.module.scss +0 -132
- package/src/components/navbar/navbar_modal/NavbarModal.stories.jsx +0 -96
- package/src/components/navbar/navbar_modal/NavbarModal.test.jsx +0 -155
- package/src/components/navbar/navbar_modal/index.js +0 -1
- package/src/components/notification/notification_item/NotificationItem.docs.mdx +0 -35
- package/src/components/notification/notification_item/NotificationItem.jsx +0 -71
- package/src/components/notification/notification_item/NotificationItem.module.scss +0 -56
- package/src/components/notification/notification_item/NotificationItem.stories.jsx +0 -121
- package/src/components/notification/notification_item/NotificationItem.test.jsx +0 -97
- package/src/components/notification/notification_item/index.js +0 -1
- package/src/components/notification/notification_menu/NotificationMenu.docs.mdx +0 -25
- package/src/components/notification/notification_menu/NotificationMenu.jsx +0 -61
- package/src/components/notification/notification_menu/NotificationMenu.module.scss +0 -49
- package/src/components/notification/notification_menu/NotificationMenu.stories.jsx +0 -94
- package/src/components/notification/notification_menu/NotificationMenu.test.jsx +0 -131
- package/src/components/notification/notification_menu/index.js +0 -1
- package/src/components/progress/loader/Loader.docs.mdx +0 -13
- package/src/components/progress/loader/Loader.jsx +0 -9
- package/src/components/progress/loader/Loader.module.scss +0 -26
- package/src/components/progress/loader/Loader.stories.jsx +0 -11
- package/src/components/progress/loader/Loader.test.jsx +0 -11
- package/src/components/progress/loader/index.js +0 -3
- package/src/components/progress/progress_bar/ProgressBar.docs.mdx +0 -29
- package/src/components/progress/progress_bar/ProgressBar.jsx +0 -75
- package/src/components/progress/progress_bar/ProgressBar.module.scss +0 -87
- package/src/components/progress/progress_bar/ProgressBar.stories.jsx +0 -43
- package/src/components/progress/progress_bar/ProgressBar.test.jsx +0 -126
- package/src/components/progress/progress_bar/index.js +0 -1
- package/src/components/proposal/proposal_box/ProposalBox.docs.mdx +0 -39
- package/src/components/proposal/proposal_box/ProposalBox.jsx +0 -108
- package/src/components/proposal/proposal_box/ProposalBox.module.scss +0 -80
- package/src/components/proposal/proposal_box/ProposalBox.stories.jsx +0 -161
- package/src/components/proposal/proposal_box/ProposalBox.test.jsx +0 -137
- package/src/components/proposal/proposal_box/index.js +0 -1
- package/src/components/report/report_box/ReportBox.docs.mdx +0 -35
- package/src/components/report/report_box/ReportBox.jsx +0 -120
- package/src/components/report/report_box/ReportBox.module.scss +0 -54
- package/src/components/report/report_box/ReportBox.stories.jsx +0 -247
- package/src/components/report/report_box/ReportBox.test.jsx +0 -232
- package/src/components/report/report_box/index.js +0 -1
- package/src/components/section/section_box/SectionBox.docs.mdx +0 -19
- package/src/components/section/section_box/SectionBox.jsx +0 -32
- package/src/components/section/section_box/SectionBox.module.scss +0 -57
- package/src/components/section/section_box/SectionBox.stories.jsx +0 -39
- package/src/components/section/section_box/SectionBox.test.jsx +0 -44
- package/src/components/section/section_box/index.js +0 -1
- package/src/components/share/share_box/ShareBox.docs.mdx +0 -27
- package/src/components/share/share_box/ShareBox.jsx +0 -71
- package/src/components/share/share_box/ShareBox.module.scss +0 -38
- package/src/components/share/share_box/ShareBox.stories.jsx +0 -42
- package/src/components/share/share_box/ShareBox.test.jsx +0 -142
- package/src/components/share/share_box/index.js +0 -1
- package/src/components/share/share_button/ShareButton.docs.mdx +0 -26
- package/src/components/share/share_button/ShareButton.jsx +0 -102
- package/src/components/share/share_button/ShareButton.module.scss +0 -68
- package/src/components/share/share_button/ShareButton.stories.jsx +0 -51
- package/src/components/share/share_button/ShareButton.test.jsx +0 -117
- package/src/components/share/share_button/index.js +0 -1
- package/src/components/share/share_modal/ShareModal.docs.mdx +0 -29
- package/src/components/share/share_modal/ShareModal.jsx +0 -49
- package/src/components/share/share_modal/ShareModal.module.scss +0 -21
- package/src/components/share/share_modal/ShareModal.stories.jsx +0 -48
- package/src/components/share/share_modal/ShareModal.test.jsx +0 -70
- package/src/components/share/share_modal/index.js +0 -1
- package/src/components/skeleton/box_skeleton/BoxSkeleton.docs.mdx +0 -14
- package/src/components/skeleton/box_skeleton/BoxSkeleton.jsx +0 -38
- package/src/components/skeleton/box_skeleton/BoxSkeleton.stories.jsx +0 -46
- package/src/components/skeleton/box_skeleton/BoxSkeleton.test.jsx +0 -39
- package/src/components/skeleton/box_skeleton/index.js +0 -1
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.docs.mdx +0 -15
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.jsx +0 -56
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss +0 -78
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.stories.jsx +0 -44
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.test.jsx +0 -55
- package/src/components/skeleton/user_content_skeleton/index.js +0 -1
- package/src/components/source/context_source_box/ContextSourceBox.docs.mdx +0 -27
- package/src/components/source/context_source_box/ContextSourceBox.jsx +0 -38
- package/src/components/source/context_source_box/ContextSourceBox.module.scss +0 -50
- package/src/components/source/context_source_box/ContextSourceBox.stories.jsx +0 -36
- package/src/components/source/context_source_box/ContextSourceBox.test.jsx +0 -46
- package/src/components/source/context_source_box/index.js +0 -1
- package/src/components/source/context_source_list/ContextSourceList.docs.mdx +0 -37
- package/src/components/source/context_source_list/ContextSourceList.jsx +0 -42
- package/src/components/source/context_source_list/ContextSourceList.module.scss +0 -38
- package/src/components/source/context_source_list/ContextSourceList.stories.jsx +0 -39
- package/src/components/source/context_source_list/ContextSourceList.test.jsx +0 -47
- package/src/components/source/context_source_list/index.js +0 -1
- package/src/components/source/source_box/SourceBox.docs.mdx +0 -23
- package/src/components/source/source_box/SourceBox.jsx +0 -43
- package/src/components/source/source_box/SourceBox.module.scss +0 -43
- package/src/components/source/source_box/SourceBox.stories.jsx +0 -26
- package/src/components/source/source_box/SourceBox.test.jsx +0 -30
- package/src/components/source/source_box/index.js +0 -1
- package/src/components/source/source_list_item/SourceListItem.docs.mdx +0 -23
- package/src/components/source/source_list_item/SourceListItem.jsx +0 -28
- package/src/components/source/source_list_item/SourceListItem.module.scss +0 -33
- package/src/components/source/source_list_item/SourceListItem.stories.jsx +0 -40
- package/src/components/source/source_list_item/SourceListItem.test.jsx +0 -41
- package/src/components/source/source_list_item/index.js +0 -1
- package/src/components/source/source_modal/SourceModal.docs.mdx +0 -29
- package/src/components/source/source_modal/SourceModal.jsx +0 -157
- package/src/components/source/source_modal/SourceModal.module.scss +0 -45
- package/src/components/source/source_modal/SourceModal.stories.jsx +0 -82
- package/src/components/source/source_modal/SourceModal.test.jsx +0 -180
- package/src/components/source/source_modal/index.js +0 -1
- package/src/components/styles/display/_display.scss +0 -127
- package/src/components/styles/display/display.docs.mdx +0 -8
- package/src/components/styles/display/index.scss +0 -1
- package/src/components/styles/flex/_flex.scss +0 -55
- package/src/components/styles/flex/flex.docs.mdx +0 -8
- package/src/components/styles/flex/index.scss +0 -1
- package/src/components/styles/spacing/_spacing.scss +0 -107
- package/src/components/styles/spacing/index.scss +0 -1
- package/src/components/styles/spacing/spacing.docs.mdx +0 -8
- package/src/components/styles/tabs/_tabs.scss +0 -159
- package/src/components/styles/tabs/index.scss +0 -1
- package/src/components/styles/tabs/tabs.docs.mdx +0 -8
- package/src/components/styles/theme/_theme.scss +0 -51
- package/src/components/styles/theme/index.scss +0 -1
- package/src/components/styles/theme/theme.docs.mdx +0 -89
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.docs.mdx +0 -35
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.jsx +0 -86
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.module.scss +0 -93
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.stories.jsx +0 -128
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.test.jsx +0 -237
- package/src/components/suggestion/suggestion_banner/index.js +0 -1
- package/src/components/suggestion/suggestion_box/SuggestionBox.docs.mdx +0 -39
- package/src/components/suggestion/suggestion_box/SuggestionBox.jsx +0 -112
- package/src/components/suggestion/suggestion_box/SuggestionBox.module.scss +0 -55
- package/src/components/suggestion/suggestion_box/SuggestionBox.stories.jsx +0 -147
- package/src/components/suggestion/suggestion_box/SuggestionBox.test.jsx +0 -184
- package/src/components/suggestion/suggestion_box/index.js +0 -1
- package/src/components/suggestion/suggestion_input/SuggestionInput.docs.mdx +0 -19
- package/src/components/suggestion/suggestion_input/SuggestionInput.jsx +0 -212
- package/src/components/suggestion/suggestion_input/SuggestionInput.module.scss +0 -50
- package/src/components/suggestion/suggestion_input/SuggestionInput.stories.jsx +0 -87
- package/src/components/suggestion/suggestion_input/SuggestionInput.test.jsx +0 -77
- package/src/components/suggestion/suggestion_input/index.js +0 -1
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.docs.mdx +0 -19
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.jsx +0 -40
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss +0 -67
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.stories.jsx +0 -57
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.test.jsx +0 -18
- package/src/components/summary/argument_summary_box/index.js +0 -1
- package/src/components/summary/keyword_box/KeywordBox.docs.mdx +0 -21
- package/src/components/summary/keyword_box/KeywordBox.jsx +0 -43
- package/src/components/summary/keyword_box/KeywordBox.module.scss +0 -54
- package/src/components/summary/keyword_box/KeywordBox.stories.jsx +0 -49
- package/src/components/summary/keyword_box/KeywordBox.test.jsx +0 -47
- package/src/components/summary/keyword_box/index.js +0 -1
- package/src/components/summary/summary/Summary.docs.mdx +0 -23
- package/src/components/summary/summary/Summary.jsx +0 -93
- package/src/components/summary/summary/Summary.module.scss +0 -26
- package/src/components/summary/summary/Summary.stories.jsx +0 -95
- package/src/components/summary/summary/Summary.test.jsx +0 -116
- package/src/components/summary/summary/index.js +0 -1
- package/src/components/summary/summary_box/SummaryBox.docs.mdx +0 -19
- package/src/components/summary/summary_box/SummaryBox.jsx +0 -39
- package/src/components/summary/summary_box/SummaryBox.module.scss +0 -56
- package/src/components/summary/summary_box/SummaryBox.stories.jsx +0 -83
- package/src/components/summary/summary_box/SummaryBox.test.jsx +0 -47
- package/src/components/summary/summary_box/SummaryBoxComposition.module.scss +0 -3
- package/src/components/summary/summary_box/index.js +0 -1
- package/src/components/tag/tag/Tag.docs.mdx +0 -19
- package/src/components/tag/tag/Tag.jsx +0 -35
- package/src/components/tag/tag/Tag.module.scss +0 -34
- package/src/components/tag/tag/Tag.stories.jsx +0 -70
- package/src/components/tag/tag/Tag.test.jsx +0 -29
- package/src/components/tag/tag/index.js +0 -1
- package/src/components/text/expandable_text/ArrowIcon.jsx +0 -7
- package/src/components/text/expandable_text/ExpandableText.docs.mdx +0 -42
- package/src/components/text/expandable_text/ExpandableText.jsx +0 -81
- package/src/components/text/expandable_text/ExpandableText.module.scss +0 -76
- package/src/components/text/expandable_text/ExpandableText.stories.jsx +0 -63
- package/src/components/text/expandable_text/ExpandableText.test.jsx +0 -23
- package/src/components/text/expandable_text/index.js +0 -1
- package/src/components/text/read_more/ReadMore.docs.mdx +0 -23
- package/src/components/text/read_more/ReadMore.jsx +0 -104
- package/src/components/text/read_more/ReadMore.module.scss +0 -51
- package/src/components/text/read_more/ReadMore.stories.jsx +0 -141
- package/src/components/text/read_more/ReadMore.test.jsx +0 -87
- package/src/components/text/read_more/index.js +0 -1
- package/src/components/tools/hash_scroll/HashScroll.docs.mdx +0 -27
- package/src/components/tools/hash_scroll/HashScroll.jsx +0 -36
- package/src/components/tools/hash_scroll/HashScroll.test.jsx +0 -66
- package/src/components/tools/hash_scroll/index.js +0 -1
- package/src/components/tools/scroll_to_top/ScrollToTop.docs.mdx +0 -28
- package/src/components/tools/scroll_to_top/ScrollToTop.jsx +0 -22
- package/src/components/tools/scroll_to_top/ScrollToTop.stories.jsx +0 -40
- package/src/components/tools/scroll_to_top/ScrollToTop.test.jsx +0 -36
- package/src/components/tools/scroll_to_top/index.js +0 -1
- package/src/components/translation/translated_content/TranslatedContent.jsx +0 -24
- package/src/components/translation/translated_content/TranslatedContent.test.jsx +0 -30
- package/src/components/translation/translated_content/index.js +0 -3
- package/src/components/translation/translated_content/useTranslatedContent.docs.mdx +0 -80
- package/src/components/translation/translated_content/useTranslatedContent.jsx +0 -57
- package/src/components/translation/translated_content/useTranslatedContent.test.jsx +0 -118
- package/src/components/translation/translation_button/TranslationButton.docs.mdx +0 -18
- package/src/components/translation/translation_button/TranslationButton.jsx +0 -46
- package/src/components/translation/translation_button/TranslationButton.module.scss +0 -10
- package/src/components/translation/translation_button/TranslationButton.stories.jsx +0 -30
- package/src/components/translation/translation_button/TranslationButton.test.jsx +0 -35
- package/src/components/translation/translation_button/index.js +0 -1
- package/src/components/user/author_box/AuthorBox.docs.mdx +0 -35
- package/src/components/user/author_box/AuthorBox.jsx +0 -128
- package/src/components/user/author_box/AuthorBox.module.scss +0 -110
- package/src/components/user/author_box/AuthorBox.stories.jsx +0 -193
- package/src/components/user/author_box/AuthorBox.test.jsx +0 -171
- package/src/components/user/author_box/index.js +0 -1
- package/src/components/user/avatar/Avatar.docs.mdx +0 -31
- package/src/components/user/avatar/Avatar.jsx +0 -63
- package/src/components/user/avatar/Avatar.module.scss +0 -30
- package/src/components/user/avatar/Avatar.stories.jsx +0 -79
- package/src/components/user/avatar/Avatar.test.jsx +0 -114
- package/src/components/user/avatar/DefaultAvatar.jsx +0 -13
- package/src/components/user/avatar/index.js +0 -1
- package/src/components/user/avatar_selector/AvatarSelector.docs.mdx +0 -25
- package/src/components/user/avatar_selector/AvatarSelector.jsx +0 -65
- package/src/components/user/avatar_selector/AvatarSelector.module.scss +0 -105
- package/src/components/user/avatar_selector/AvatarSelector.stories.jsx +0 -46
- package/src/components/user/avatar_selector/AvatarSelector.test.jsx +0 -98
- package/src/components/user/avatar_selector/index.js +0 -1
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.docs.mdx +0 -22
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.jsx +0 -254
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss +0 -176
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.stories.jsx +0 -113
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.test.jsx +0 -213
- package/src/components/user/update_user_info_modal/index.js +0 -2
- package/src/components/user/update_user_info_modal/useUpdateUserInfo.jsx +0 -40
- package/src/components/user/user_box/UserBox.docs.mdx +0 -21
- package/src/components/user/user_box/UserBox.jsx +0 -59
- package/src/components/user/user_box/UserBox.module.scss +0 -86
- package/src/components/user/user_box/UserBox.stories.jsx +0 -82
- package/src/components/user/user_box/UserBox.test.jsx +0 -95
- package/src/components/user/user_box/index.js +0 -1
- package/src/components/user/user_box_small/UserBoxSmall.docs.mdx +0 -20
- package/src/components/user/user_box_small/UserBoxSmall.jsx +0 -36
- package/src/components/user/user_box_small/UserBoxSmall.module.scss +0 -21
- package/src/components/user/user_box_small/UserBoxSmall.stories.jsx +0 -38
- package/src/components/user/user_box_small/UserBoxSmall.test.jsx +0 -49
- package/src/components/user/user_box_small/index.js +0 -1
- package/src/components/user_content/content_footer/ContentFooter.docs.mdx +0 -36
- package/src/components/user_content/content_footer/ContentFooter.jsx +0 -234
- package/src/components/user_content/content_footer/ContentFooter.module.scss +0 -79
- package/src/components/user_content/content_footer/ContentFooter.stories.jsx +0 -438
- package/src/components/user_content/content_footer/ContentFooter.test.jsx +0 -246
- package/src/components/user_content/content_footer/index.js +0 -1
- package/src/components/user_content/content_header/ContentHeader.docs.mdx +0 -27
- package/src/components/user_content/content_header/ContentHeader.jsx +0 -131
- package/src/components/user_content/content_header/ContentHeader.module.scss +0 -111
- package/src/components/user_content/content_header/ContentHeader.stories.jsx +0 -221
- package/src/components/user_content/content_header/ContentHeader.test.jsx +0 -98
- package/src/components/user_content/content_header/index.js +0 -1
- package/src/components/user_content/summary_content_box/SummaryContentBox.docs.mdx +0 -25
- package/src/components/user_content/summary_content_box/SummaryContentBox.jsx +0 -89
- package/src/components/user_content/summary_content_box/SummaryContentBox.module.scss +0 -65
- package/src/components/user_content/summary_content_box/SummaryContentBox.stories.jsx +0 -130
- package/src/components/user_content/summary_content_box/SummaryContentBox.test.jsx +0 -169
- package/src/components/user_content/summary_content_box/index.js +0 -1
- package/src/components/user_content/use_delete_content/index.js +0 -1
- package/src/components/user_content/use_delete_content/useDeleteContent.docs.mdx +0 -34
- package/src/components/user_content/use_delete_content/useDeleteContent.jsx +0 -55
- package/src/components/user_content/use_delete_content/useDeleteContent.test.jsx +0 -78
- package/src/components/user_content/use_report_content/ReportModal.docs.mdx +0 -54
- package/src/components/user_content/use_report_content/ReportModal.jsx +0 -187
- package/src/components/user_content/use_report_content/ReportModal.module.scss +0 -121
- package/src/components/user_content/use_report_content/ReportModal.stories.jsx +0 -61
- package/src/components/user_content/use_report_content/ReportModal.test.jsx +0 -51
- package/src/components/user_content/use_report_content/index.js +0 -2
- package/src/components/user_content/use_report_content/useReportContent.docs.mdx +0 -24
- package/src/components/user_content/use_report_content/useReportContent.jsx +0 -32
- package/src/components/user_content/use_report_content/useReportContent.test.jsx +0 -138
- package/src/components/util/lang_emojis/index.js +0 -1
- package/src/components/util/lang_emojis/langEmojis.docs.mdx +0 -10
- package/src/components/util/lang_emojis/langEmojis.js +0 -72
- package/src/components/util/lang_emojis/langEmojis.test.jsx +0 -63
- package/src/components/util/location/Location.docs.mdx +0 -18
- package/src/components/util/location/Location.js +0 -84
- package/src/components/util/location/Location.test.jsx +0 -24
- package/src/components/util/location/index.js +0 -1
- package/src/components/util/unique_by/index.js +0 -1
- package/src/components/util/unique_by/uniqueBy.docs.mdx +0 -24
- package/src/components/util/unique_by/uniqueBy.js +0 -9
- package/src/components/util/unique_by/uniqueBy.test.jsx +0 -29
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.docs.mdx +0 -24
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx +0 -87
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss +0 -17
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.stories.jsx +0 -97
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.test.jsx +0 -182
- package/src/components/vote/suggestion_vote_box/index.js +0 -1
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.docs.mdx +0 -24
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.jsx +0 -64
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.module.scss +0 -35
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.stories.jsx +0 -97
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.test.jsx +0 -173
- package/src/components/vote/up_down_vote_box/index.js +0 -1
- package/src/components/vote/use_vote/index.js +0 -1
- package/src/components/vote/use_vote/useVote.docs.mdx +0 -42
- package/src/components/vote/use_vote/useVote.jsx +0 -165
- package/src/components/vote/use_vote/useVote.test.jsx +0 -294
- package/src/components/vote/vote_box/VoteBox.docs.mdx +0 -45
- package/src/components/vote/vote_box/VoteBox.jsx +0 -420
- package/src/components/vote/vote_box/VoteBox.module.scss +0 -254
- package/src/components/vote/vote_box/VoteBox.stories.jsx +0 -319
- package/src/components/vote/vote_box/VoteBox.test.jsx +0 -256
- package/src/components/vote/vote_box/index.js +0 -1
- package/src/components/vote/vote_button/VoteButton.docs.mdx +0 -24
- package/src/components/vote/vote_button/VoteButton.jsx +0 -59
- package/src/components/vote/vote_button/VoteButton.module.scss +0 -35
- package/src/components/vote/vote_button/VoteButton.stories.jsx +0 -97
- package/src/components/vote/vote_button/VoteButton.test.jsx +0 -167
- package/src/components/vote/vote_button/index.js +0 -1
- package/src/components/vote/vote_provider/VoteProvider.docs.mdx +0 -68
- package/src/components/vote/vote_provider/VoteProvider.jsx +0 -63
- package/src/components/vote/vote_provider/VoteProvider.stories.jsx +0 -99
- package/src/components/vote/vote_provider/VoteProvider.test.jsx +0 -137
- package/src/components/vote/vote_provider/index.js +0 -2
- package/src/index.js +0 -127
- package/vitest.config.mjs +0 -52
- package/vitest.setup.js +0 -4
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import { useLocation } from 'react-router';
|
|
4
|
-
import { useConfig } from '@logora/debate/data/config_provider';
|
|
5
|
-
import { useDataProvider } from '@logora/debate/data/data_provider';
|
|
6
|
-
import { useAuth } from "@logora/debate/auth/use_auth";
|
|
7
|
-
import { useIntl, FormattedMessage } from 'react-intl';
|
|
8
|
-
import { useAuthRequired } from '@logora/debate/hooks/use_auth_required';
|
|
9
|
-
import { useToast } from '@logora/debate/dialog/toast_provider';
|
|
10
|
-
import useSessionStorageState from '@rooks/use-sessionstorage-state';
|
|
11
|
-
import { useTranslatedContent } from '@logora/debate/translation/translated_content';
|
|
12
|
-
import { Link } from '@logora/debate/action/link';
|
|
13
|
-
import { ProgressBar } from "@logora/debate/progress/progress_bar";
|
|
14
|
-
import { Icon } from "@logora/debate/icons/icon";
|
|
15
|
-
import { Button } from '@logora/debate/action/button';
|
|
16
|
-
import { Tooltip } from '@logora/debate/dialog/tooltip';
|
|
17
|
-
import { useResponsive } from '@logora/debate/hooks/use_responsive';
|
|
18
|
-
import cx from 'classnames';
|
|
19
|
-
import styles from './VoteBox.module.scss';
|
|
20
|
-
|
|
21
|
-
export const VoteBox = ({ numberVotes, votePositions, voteableType, voteableId, redirectUrl, displayColumn, textAlignLeft, showTotal = true, voteBoxClassName, buttonContainerClassName, buttonClassName, showResultClassName, onVote, disabled = false, showVotesCommentsNumber = false, commentsCount }) => {
|
|
22
|
-
const [isLoadingVote, setIsLoadingVote] = useState(true);
|
|
23
|
-
const [currentVote, setCurrentVote] = useState(undefined);
|
|
24
|
-
const [showResults, setShowResults] = useState(false);
|
|
25
|
-
const [totalVotes, setTotalVotes] = useState(parseFloat(numberVotes.total) || Object.values(numberVotes).reduce((sum, value) => sum + parseFloat(value), 0) || 0);
|
|
26
|
-
const firstPosition = useTranslatedContent(votePositions[0]?.name, votePositions[0]?.language, "name", votePositions[0]?.translation_entries);
|
|
27
|
-
const secondPosition = useTranslatedContent(votePositions[1]?.name, votePositions[1]?.language, "name", votePositions[1]?.translation_entries);
|
|
28
|
-
const neutralPosition = useTranslatedContent(votePositions[2]?.name, votePositions[2]?.language, "name", votePositions[2]?.translation_entries);
|
|
29
|
-
const [savedVote, setSavedVote, removeSavedVote] = useSessionStorageState("storedUserVote", {});
|
|
30
|
-
const [savedUserSide, setSavedUserSide, removeSavedUserSide] = useSessionStorageState("userSide", {});
|
|
31
|
-
const { toast } = useToast() || {};
|
|
32
|
-
const { isMobile } = useResponsive();
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const initVotesCount = () => {
|
|
36
|
-
const votesCountObj = {};
|
|
37
|
-
votePositions?.forEach(position =>
|
|
38
|
-
votesCountObj[position.id] = {
|
|
39
|
-
count: parseFloat(numberVotes[position.id]) || 0,
|
|
40
|
-
percentage: totalVotes === 0 ? 0 : Math.round(100 * ((numberVotes[position.id] || 0) / (totalVotes)))
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
return votesCountObj;
|
|
45
|
-
}
|
|
46
|
-
const [votesCount, setVotesCount] = useState(initVotesCount());
|
|
47
|
-
|
|
48
|
-
const requireAuthentication = useAuthRequired();
|
|
49
|
-
const location = useLocation();
|
|
50
|
-
const api = useDataProvider();
|
|
51
|
-
const config = useConfig();
|
|
52
|
-
const intl = useIntl();
|
|
53
|
-
const { isLoggedIn, isLoggingIn } = useAuth();
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (isLoggingIn === false) {
|
|
58
|
-
if (isLoggedIn) {
|
|
59
|
-
getVote(voteableId);
|
|
60
|
-
} else {
|
|
61
|
-
setIsLoadingVote(false);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}, [isLoggingIn, isLoggedIn])
|
|
65
|
-
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
if (isLoadingVote === false && !redirectUrl) {
|
|
68
|
-
const [initVote, positionId] = getStoredVote();
|
|
69
|
-
if (initVote) {
|
|
70
|
-
if (!positionId) {
|
|
71
|
-
setShowResults(true);
|
|
72
|
-
} else {
|
|
73
|
-
handleVote(positionId);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}, [isLoadingVote])
|
|
78
|
-
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
if (onVote) {
|
|
81
|
-
onVote(currentVote);
|
|
82
|
-
}
|
|
83
|
-
}, [currentVote])
|
|
84
|
-
|
|
85
|
-
const getStoredVote = () => {
|
|
86
|
-
if (savedVote && Object.keys(savedVote).length !== 0) {
|
|
87
|
-
const isSameTarget =
|
|
88
|
-
savedVote.groupId === voteableId &&
|
|
89
|
-
savedVote.voteableType === voteableType;
|
|
90
|
-
|
|
91
|
-
if (!isSameTarget) {
|
|
92
|
-
removeSavedVote();
|
|
93
|
-
return [false, false];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return [true, savedVote.positionId];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const urlParams = new URLSearchParams(
|
|
100
|
-
typeof window !== "undefined" ? window.location.search : location.search
|
|
101
|
-
);
|
|
102
|
-
const initVote = Boolean(urlParams.get("initVote"));
|
|
103
|
-
const positionId = parseInt(urlParams.get('positionId')) || false;
|
|
104
|
-
|
|
105
|
-
return [initVote, positionId];
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const getVote = (debateId) => {
|
|
109
|
-
setIsLoadingVote(true);
|
|
110
|
-
if (onVote) {
|
|
111
|
-
onVote(currentVote);
|
|
112
|
-
}
|
|
113
|
-
api.getOneWithToken("votes", `${voteableType.toLowerCase()}/${debateId}`, {}).then(response => {
|
|
114
|
-
if (response.data.data.resource) {
|
|
115
|
-
setCurrentVote(response.data.data.resource);
|
|
116
|
-
setShowResults(true);
|
|
117
|
-
setIsLoadingVote(false);
|
|
118
|
-
} else {
|
|
119
|
-
setIsLoadingVote(false);
|
|
120
|
-
setShowResults(false);
|
|
121
|
-
}
|
|
122
|
-
}).catch(error => {
|
|
123
|
-
setIsLoadingVote(false);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const getPercentageValue = (voteCount, totalVotes) => {
|
|
128
|
-
return totalVotes === 0 ? 0 : Math.round(100 * (voteCount / (totalVotes)));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const voteAction = (positionId) => {
|
|
132
|
-
const data = {
|
|
133
|
-
voteable_id: voteableId,
|
|
134
|
-
voteable_type: voteableType || 'Group',
|
|
135
|
-
position_id: positionId
|
|
136
|
-
}
|
|
137
|
-
const userSideToSave = {
|
|
138
|
-
groupId: voteableId,
|
|
139
|
-
voteableType: voteableType,
|
|
140
|
-
positionId: positionId
|
|
141
|
-
}
|
|
142
|
-
setSavedUserSide(userSideToSave);
|
|
143
|
-
if (currentVote) {
|
|
144
|
-
updateVote(positionId, currentVote.position_id);
|
|
145
|
-
showResults === false && toggleResults();
|
|
146
|
-
if (positionId !== currentVote.position_id) {
|
|
147
|
-
api.update("votes", currentVote.id, data).then(response => {
|
|
148
|
-
if (response.data.success) {
|
|
149
|
-
setCurrentVote(response.data.data.resource);
|
|
150
|
-
toast(intl.formatMessage({ id: "header.vote_confirm_modal", defaultMessage: "Your vote has been saved !" }), { type: "success" });
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
} else {
|
|
155
|
-
addVote(positionId);
|
|
156
|
-
toggleResults();
|
|
157
|
-
api.create("votes", data).then(response => {
|
|
158
|
-
if (response.data.success) {
|
|
159
|
-
setCurrentVote(response.data.data.resource);
|
|
160
|
-
toast(intl.formatMessage({ id: "header.vote_confirm_modal", defaultMessage: "Your vote has been saved !" }), { type: "success" });
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const addVote = (positionId) => {
|
|
167
|
-
const newCount = votesCount[positionId].count + 1;
|
|
168
|
-
const newTotal = totalVotes + 1;
|
|
169
|
-
const newVotesCount = {};
|
|
170
|
-
votePositions.forEach((element) => {
|
|
171
|
-
if (positionId === element.id) {
|
|
172
|
-
newVotesCount[element.id] = { count: newCount, percentage: getPercentageValue(newCount, newTotal) };
|
|
173
|
-
} else {
|
|
174
|
-
const newElementCount = votesCount[element.id].count;
|
|
175
|
-
newVotesCount[element.id] = { count: newElementCount, percentage: getPercentageValue(newElementCount, newTotal) };
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
setVotesCount(newVotesCount);
|
|
179
|
-
setTotalVotes(newTotal);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const updateVote = (newPosition, previousPosition) => {
|
|
183
|
-
if (previousPosition !== newPosition) {
|
|
184
|
-
const newVotesCount = {
|
|
185
|
-
...votesCount,
|
|
186
|
-
[previousPosition]: {
|
|
187
|
-
count: votesCount[previousPosition].count - 1,
|
|
188
|
-
percentage: getPercentageValue(votesCount[previousPosition].count - 1, totalVotes)
|
|
189
|
-
},
|
|
190
|
-
[newPosition]: {
|
|
191
|
-
count: votesCount[newPosition].count + 1,
|
|
192
|
-
percentage: getPercentageValue(votesCount[newPosition].count + 1, totalVotes)
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
setVotesCount(newVotesCount);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
const getRedirectUrl = (positionId) => {
|
|
200
|
-
let searchParams = new URLSearchParams({
|
|
201
|
-
initVote: "true",
|
|
202
|
-
...(positionId && { positionId: positionId })
|
|
203
|
-
});
|
|
204
|
-
return redirectUrl + `?${searchParams.toString()}`;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const handleVote = (positionId) => {
|
|
208
|
-
if (isLoggedIn) {
|
|
209
|
-
if (Object.keys(votesCount).includes(positionId.toString())) {
|
|
210
|
-
voteAction(positionId);
|
|
211
|
-
removeSavedVote();
|
|
212
|
-
}
|
|
213
|
-
} else {
|
|
214
|
-
if (Object.keys(votesCount).includes(positionId.toString())) {
|
|
215
|
-
const voteToSave = {
|
|
216
|
-
groupId: voteableId,
|
|
217
|
-
voteableType: voteableType,
|
|
218
|
-
positionId: positionId
|
|
219
|
-
}
|
|
220
|
-
setSavedVote(voteToSave);
|
|
221
|
-
}
|
|
222
|
-
requireAuthentication({ loginAction: "vote" });
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
const toggleResults = () => {
|
|
227
|
-
if (showResults) { removeSavedUserSide(); }
|
|
228
|
-
setShowResults(!showResults);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const displayVotePosition = (position, index) => {
|
|
232
|
-
let currentPositionName;
|
|
233
|
-
if (index === 0) { currentPositionName = firstPosition.translatedContent }
|
|
234
|
-
else if (index === 1) { currentPositionName = secondPosition.translatedContent }
|
|
235
|
-
else if (index === 2) { currentPositionName = neutralPosition.translatedContent }
|
|
236
|
-
|
|
237
|
-
const isButton = (typeof window !== "undefined" && !redirectUrl);
|
|
238
|
-
|
|
239
|
-
return (
|
|
240
|
-
<div key={index} className={cx(styles.voteAction, { [styles.buttonAlignLeft]: styles.buttonAlignLeft })}>
|
|
241
|
-
<Button
|
|
242
|
-
data-tid={"action_vote"}
|
|
243
|
-
type="button"
|
|
244
|
-
title={currentPositionName}
|
|
245
|
-
className={cx(styles.voteButton, { [styles.textAlignLeft]: textAlignLeft, [buttonClassName]: buttonClassName })}
|
|
246
|
-
onClick={isButton ? (() => handleVote(position.id)) : null}
|
|
247
|
-
disabled={disabled}
|
|
248
|
-
data-testid={"voteButton"}
|
|
249
|
-
to={isButton ? null : getRedirectUrl(position.id)}
|
|
250
|
-
target={isButton ? null : "_top"}
|
|
251
|
-
rel={isButton ? null : "nofollow"}
|
|
252
|
-
external={isButton ? null : true}
|
|
253
|
-
>
|
|
254
|
-
<div data-tid={"action_vote"} className={cx(styles.voteButtonThesis, { [styles.voteButtonThesisSynthesisMobile]: !displayColumn })}>{currentPositionName}</div>
|
|
255
|
-
</Button>
|
|
256
|
-
</div>
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
const handleShowResults = () => {
|
|
261
|
-
if (isLoggedIn || config.actions?.unloggedVoteResults === true) {
|
|
262
|
-
setShowResults(true);
|
|
263
|
-
} else {
|
|
264
|
-
requireAuthentication({ loginAction: "vote" });
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
return (
|
|
269
|
-
<div className={cx(styles.voteBox, { [voteBoxClassName]: voteBoxClassName })} >
|
|
270
|
-
<>
|
|
271
|
-
{showResults || disabled ? (
|
|
272
|
-
<div className={styles.voteResultsBox} data-testid={"voteResultsBox"}>
|
|
273
|
-
<div className={styles.voteResults}>
|
|
274
|
-
{
|
|
275
|
-
votePositions.map((value, index) => {
|
|
276
|
-
let currentPositionName;
|
|
277
|
-
if (index === 0) { currentPositionName = firstPosition.translatedContent }
|
|
278
|
-
else if (index === 1) { currentPositionName = secondPosition.translatedContent }
|
|
279
|
-
else if (index === 2) { currentPositionName = neutralPosition.translatedContent }
|
|
280
|
-
return (
|
|
281
|
-
<div key={index}>
|
|
282
|
-
<div className={index > 0 ? cx(styles.voteProgressHeader, styles.voteProgressHeaderAgainst) : styles.voteProgressHeader}>
|
|
283
|
-
{currentPositionName} {(currentVote && currentVote.position_id === value.id) ? <span title={intl.formatMessage({ id: "vote.vote_box.vote_side" }) + currentPositionName} className={styles.sideIcon} aria-hidden="true"><Icon name="checkbox" width={16} height={16} /></span> : null}
|
|
284
|
-
</div>
|
|
285
|
-
<ProgressBar
|
|
286
|
-
progress={votesCount[value.id].percentage / 100}
|
|
287
|
-
goal={1}
|
|
288
|
-
className={styles.progress}
|
|
289
|
-
innerClassName={styles.progressBar}
|
|
290
|
-
>
|
|
291
|
-
{votesCount[value.id].percentage}%
|
|
292
|
-
</ProgressBar>
|
|
293
|
-
</div>
|
|
294
|
-
);
|
|
295
|
-
})
|
|
296
|
-
}
|
|
297
|
-
</div>
|
|
298
|
-
<div className={styles.voteBoxFooter}>
|
|
299
|
-
{showTotal && (
|
|
300
|
-
<div className={styles.voteResultsNumberVoters}>
|
|
301
|
-
<FormattedMessage id="vote.vote_box.votes" values={{ votesCount: totalVotes }} defaultMessage="{votesCount} votes" />
|
|
302
|
-
</div>
|
|
303
|
-
)}
|
|
304
|
-
{!disabled &&
|
|
305
|
-
<div>
|
|
306
|
-
{currentVote ? (
|
|
307
|
-
<button data-tid={"action_edit_vote"} className={styles.voteActionButton} type="button" onClick={toggleResults}>
|
|
308
|
-
<FormattedMessage id="vote.vote_box.update" defaultMessage="Modify" />
|
|
309
|
-
</button>
|
|
310
|
-
) : (
|
|
311
|
-
!config?.actions?.hideSHowResultButton && (
|
|
312
|
-
<button
|
|
313
|
-
type="button"
|
|
314
|
-
className={styles.voteActionButton}
|
|
315
|
-
onClick={() => setShowResults(false)}
|
|
316
|
-
>
|
|
317
|
-
<FormattedMessage id="vote.vote_box.back" defaultMessage="Back to vote" />
|
|
318
|
-
</button>
|
|
319
|
-
)
|
|
320
|
-
)}
|
|
321
|
-
</div>
|
|
322
|
-
}
|
|
323
|
-
</div>
|
|
324
|
-
</div>
|
|
325
|
-
) : (
|
|
326
|
-
<div className={styles.voteBoxActions}>
|
|
327
|
-
<div className={cx(styles.voteBoxActionsBody, { [styles.voteBoxActionsBodyColumn]: displayColumn, [buttonContainerClassName]: buttonContainerClassName })}>
|
|
328
|
-
{votePositions.map((value, index) => displayVotePosition(value, index))}
|
|
329
|
-
</div>
|
|
330
|
-
{showVotesCommentsNumber && (
|
|
331
|
-
<div className={styles.voteCommentCounts}>
|
|
332
|
-
<Tooltip
|
|
333
|
-
position={isMobile ? "right" : "bottom"}
|
|
334
|
-
text={intl.formatMessage({ id: "info.votes_count", defaultMessage: "Votes" })}
|
|
335
|
-
>
|
|
336
|
-
<div className={styles.debateNumberItem}>
|
|
337
|
-
<Icon name="votebox" width={20} height={20} />
|
|
338
|
-
<div className={styles.debateNumberLabel}>
|
|
339
|
-
<FormattedMessage id="vote.vote_box.votes" values={{ votesCount: totalVotes }} defaultMessage="{votesCount} votes" />
|
|
340
|
-
</div>
|
|
341
|
-
</div>
|
|
342
|
-
</Tooltip>
|
|
343
|
-
<Tooltip
|
|
344
|
-
position={isMobile ? "right" : "bottom"}
|
|
345
|
-
text={intl.formatMessage({ id: "info.arguments_count", defaultMessage: "Comments" })}
|
|
346
|
-
>
|
|
347
|
-
<div className={styles.debateNumberItem}>
|
|
348
|
-
<Icon name="chat" width={20} height={20} />
|
|
349
|
-
<div className={styles.debateNumberLabel}>
|
|
350
|
-
<FormattedMessage id="vote.vote_box.comments" values={{ count: commentsCount ?? 0 }} defaultMessage="{count} comments" />
|
|
351
|
-
</div>
|
|
352
|
-
</div>
|
|
353
|
-
</Tooltip>
|
|
354
|
-
</div>
|
|
355
|
-
)}
|
|
356
|
-
|
|
357
|
-
<div className={cx(styles.voteBoxActions, styles.voteBoxShowResultContainer, { [showResultClassName]: showResultClassName })}>
|
|
358
|
-
<div className={styles.voteBoxShowResult}>
|
|
359
|
-
{typeof window !== "undefined" && !redirectUrl ? (
|
|
360
|
-
!config?.actions?.hideSHowResultButton && (
|
|
361
|
-
<button
|
|
362
|
-
type="button"
|
|
363
|
-
onClick={handleShowResults}
|
|
364
|
-
data-tid="show_vote_result"
|
|
365
|
-
data-testid="show-result"
|
|
366
|
-
className={styles.showResultButton}
|
|
367
|
-
>
|
|
368
|
-
<span className={cx(styles.boldShowResult, styles.outlined)}>
|
|
369
|
-
<FormattedMessage id="vote.vote_box.show_result" defaultMessage="Show result" />
|
|
370
|
-
</span>
|
|
371
|
-
</button>
|
|
372
|
-
)
|
|
373
|
-
) :
|
|
374
|
-
<Link to={getRedirectUrl(null)} rel="nofollow" data-tid="show_vote_result" target="_top" external data-testid={"show-result"}>
|
|
375
|
-
<span className={cx(styles.boldShowResult, styles.outlined)}><FormattedMessage id="vote.vote_box.show_result" defaultMessage="Show result" /></span>
|
|
376
|
-
</Link>
|
|
377
|
-
}
|
|
378
|
-
</div>
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
)}
|
|
382
|
-
</>
|
|
383
|
-
</div>
|
|
384
|
-
)
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
VoteBox.propTypes = {
|
|
388
|
-
/** Array containing the debate positions */
|
|
389
|
-
votePositions: PropTypes.array.isRequired,
|
|
390
|
-
/** Type of vote */
|
|
391
|
-
voteableType: PropTypes.string,
|
|
392
|
-
/** The id of the element */
|
|
393
|
-
voteableId: PropTypes.number.isRequired,
|
|
394
|
-
/** Object containing all the votes and the total */
|
|
395
|
-
numberVotes: PropTypes.object.isRequired,
|
|
396
|
-
/** The redirect url after voting */
|
|
397
|
-
redirectUrl: PropTypes.string,
|
|
398
|
-
/** Show total number of votes below positions */
|
|
399
|
-
showTotal: PropTypes.bool,
|
|
400
|
-
/** If true, activate the column layout */
|
|
401
|
-
displayColumn: PropTypes.bool,
|
|
402
|
-
/** If true, display buttons in full width*/
|
|
403
|
-
textAlignLeft: PropTypes.bool,
|
|
404
|
-
/** CSS class name of the vote box */
|
|
405
|
-
voteBoxClassName: PropTypes.string,
|
|
406
|
-
/** CSS class name of the button container */
|
|
407
|
-
buttonContainerClassName: PropTypes.string,
|
|
408
|
-
/** CSS class name of the button */
|
|
409
|
-
buttonClassName: PropTypes.string,
|
|
410
|
-
/** CSS class name of the show result text */
|
|
411
|
-
showResultClassName: PropTypes.string,
|
|
412
|
-
/** Callback function */
|
|
413
|
-
onVote: PropTypes.func,
|
|
414
|
-
/** Disabled vote buttons and show result */
|
|
415
|
-
disabled: PropTypes.bool,
|
|
416
|
-
/** Show the votes and comments counters */
|
|
417
|
-
showVotesCommentsNumber: PropTypes.bool,
|
|
418
|
-
/** Number of comments to display in the counters */
|
|
419
|
-
commentsCount: PropTypes.number,
|
|
420
|
-
};
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
@use 'styles/theme' as theme;
|
|
2
|
-
@use 'styles/spacing' as spacing;
|
|
3
|
-
@use 'styles/flex' as flex;
|
|
4
|
-
@use 'styles/display' as display;
|
|
5
|
-
|
|
6
|
-
.voteBox {
|
|
7
|
-
display: flex !important;
|
|
8
|
-
flex-direction: row !important;
|
|
9
|
-
align-items: center !important;
|
|
10
|
-
justify-content: center !important;
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.voteResultsBox {
|
|
15
|
-
display: flex !important;
|
|
16
|
-
flex-direction: column !important;
|
|
17
|
-
@include spacing.p(0, xs);
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.voteResults {
|
|
22
|
-
@include spacing.p(0, xs);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.voteProgressHeader {
|
|
26
|
-
@include spacing.mb(1, xs);
|
|
27
|
-
display: flex !important;
|
|
28
|
-
align-items: center !important;
|
|
29
|
-
font-size: theme.$font-size-normal;
|
|
30
|
-
@include display.line-clamp(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.voteProgressHeaderAgainst {
|
|
34
|
-
@include spacing.mt(2.5, xs);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.voteResultsNumberVoters {
|
|
38
|
-
display: flex !important;
|
|
39
|
-
align-items: center !important;
|
|
40
|
-
@include spacing.p(0, xs);
|
|
41
|
-
font-size: theme.$font-size-normal;
|
|
42
|
-
color: theme.$text-secondary;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.voteBoxFooter {
|
|
46
|
-
display: flex !important;
|
|
47
|
-
flex-direction: row !important;
|
|
48
|
-
align-items: center !important;
|
|
49
|
-
justify-content: space-between !important;
|
|
50
|
-
@include spacing.mt(3, xs);
|
|
51
|
-
@include spacing.p(0, xs);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.voteBoxActions {
|
|
55
|
-
display: flex !important;
|
|
56
|
-
flex-direction: column !important;
|
|
57
|
-
align-items: center !important;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
gap: spacing.$spacer;
|
|
60
|
-
color: theme.$text-secondary;
|
|
61
|
-
width: 100%;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.voteBoxActionsBody {
|
|
65
|
-
display: grid !important;
|
|
66
|
-
grid-template-columns: repeat(2, 1fr);
|
|
67
|
-
gap: spacing.$spacer-md;
|
|
68
|
-
@include spacing.p(0, xs);
|
|
69
|
-
width: 100%;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.voteBoxActionsBodyColumn {
|
|
73
|
-
grid-template-columns: 1fr;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.voteAction {
|
|
77
|
-
display: flex !important;
|
|
78
|
-
flex-direction: row !important;
|
|
79
|
-
align-items: center !important;
|
|
80
|
-
justify-content: center !important;
|
|
81
|
-
@include spacing.p(0, xs);
|
|
82
|
-
max-width: 100% !important;
|
|
83
|
-
width: 100% !important;
|
|
84
|
-
text-align: center;
|
|
85
|
-
|
|
86
|
-
&.buttonAlignLeft {
|
|
87
|
-
justify-content: flex-start !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
button.voteButton,
|
|
92
|
-
a.voteButton {
|
|
93
|
-
-webkit-appearance: initial !important;
|
|
94
|
-
width: 100%;
|
|
95
|
-
@include display.hyphens(auto);
|
|
96
|
-
@include spacing.p(2, xs);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.textAlignLeft {
|
|
100
|
-
justify-content: flex-start !important;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.voteBoxShowResultContainer {
|
|
104
|
-
display: flex !important;
|
|
105
|
-
flex-direction: row !important;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
flex-wrap: wrap !important;
|
|
108
|
-
margin-top: .5em;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.voteBoxShowResult {
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
|
|
114
|
-
a {
|
|
115
|
-
color: inherit;
|
|
116
|
-
text-decoration: none;
|
|
117
|
-
background: none !important;
|
|
118
|
-
|
|
119
|
-
&:hover {
|
|
120
|
-
text-decoration: none;
|
|
121
|
-
background: none !important;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.boldShowResult {
|
|
126
|
-
font-weight: theme.$font-weight-bold;
|
|
127
|
-
color: theme.$text-primary;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.outlined {
|
|
132
|
-
padding: 7px 15px;
|
|
133
|
-
border-radius: theme.$box-border-radius;
|
|
134
|
-
border: 1px solid theme.$text-primary !important;
|
|
135
|
-
white-space: nowrap;
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.voteButtonThesis {
|
|
140
|
-
display: block;
|
|
141
|
-
text-align: left;
|
|
142
|
-
@include display.line-clamp(2);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@include display.media-breakpoint-down(sm) {
|
|
146
|
-
.voteButtonThesisSynthesisMobile {
|
|
147
|
-
text-align: center !important;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.voteBoxActionsBody .voteAction:first-child .voteButton {
|
|
152
|
-
background-color: theme.$for-primary !important;
|
|
153
|
-
border-color: theme.$for-primary !important;
|
|
154
|
-
border: 1px solid theme.$for-primary !important;
|
|
155
|
-
|
|
156
|
-
&:hover {
|
|
157
|
-
background-color: theme.$for-primary !important;
|
|
158
|
-
border-color: theme.$for-primary !important;
|
|
159
|
-
border: 1px solid theme.$for-primary !important;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.voteBoxActionsBody .voteAction:nth-child(2) .voteButton {
|
|
164
|
-
background-color: theme.$against-primary !important;
|
|
165
|
-
border-color: theme.$against-primary !important;
|
|
166
|
-
border: 1px theme.$against-primary !important;
|
|
167
|
-
|
|
168
|
-
&:hover {
|
|
169
|
-
background-color: theme.$against-primary !important;
|
|
170
|
-
border-color: theme.$against-primary !important;
|
|
171
|
-
border: 1px theme.$against-primary !important;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.voteBoxActionsBody .voteAction:nth-child(3) .voteButton {
|
|
176
|
-
background-color: theme.$text-light !important;
|
|
177
|
-
color: theme.$third-position-color-primary !important;
|
|
178
|
-
border-color: theme.$third-position-color-primary !important;
|
|
179
|
-
border: 1px solid theme.$third-position-color-primary !important;
|
|
180
|
-
|
|
181
|
-
&:hover {
|
|
182
|
-
background-color: theme.$text-light !important;
|
|
183
|
-
color: theme.$third-position-color-primary !important;
|
|
184
|
-
border-color: theme.$third-position-color-primary !important;
|
|
185
|
-
border: 1px solid theme.$third-position-color-primary !important;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.voteActionButton {
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
-webkit-appearance: initial !important;
|
|
192
|
-
background: none;
|
|
193
|
-
border: none;
|
|
194
|
-
color: theme.$text-secondary !important;
|
|
195
|
-
font-size: inherit;
|
|
196
|
-
padding: 0;
|
|
197
|
-
font-weight: theme.$font-weight-bold;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.sideIcon {
|
|
201
|
-
svg {
|
|
202
|
-
margin-left: 5px;
|
|
203
|
-
fill: theme.$text-primary;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.progress {
|
|
208
|
-
border-radius: 10px;
|
|
209
|
-
height: 25px;
|
|
210
|
-
color: theme.$text-secondary;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.progressBar {
|
|
214
|
-
border-radius: 10px;
|
|
215
|
-
height: 25px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.voteResults>div:first-child .progress .progressBar {
|
|
219
|
-
background-color: theme.$for-primary !important;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.voteResults>div:nth-child(2) .progress .progressBar {
|
|
223
|
-
background-color: theme.$against-primary !important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.voteResults div:nth-child(3) .progress .progressBar {
|
|
227
|
-
background-color: theme.$third-position-color-primary !important;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.voteCommentCounts {
|
|
231
|
-
display: flex;
|
|
232
|
-
align-items: center;
|
|
233
|
-
gap: spacing.$spacer-xl;
|
|
234
|
-
width: 100%;
|
|
235
|
-
@include spacing.mt(1, xs);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.debateNumberItem {
|
|
239
|
-
display: flex;
|
|
240
|
-
align-items: center;
|
|
241
|
-
gap: spacing.$spacer-sm;
|
|
242
|
-
font-size: theme.$font-size-normal;
|
|
243
|
-
color: theme.$text-primary;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.showResultButton {
|
|
247
|
-
background: none;
|
|
248
|
-
border: 0;
|
|
249
|
-
padding: 0;
|
|
250
|
-
font: inherit;
|
|
251
|
-
color: inherit;
|
|
252
|
-
cursor: pointer;
|
|
253
|
-
}
|
|
254
|
-
|