@logora/debate 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/config.json +11 -0
- package/.eslintrc.js +12 -0
- package/.github/dependabot.yml +7 -0
- package/.github/workflows/master.yml +121 -0
- package/.storybook/main.mjs +47 -0
- package/.storybook/preview.js +11 -0
- package/LICENSE +661 -0
- package/README.md +90 -0
- package/package.json +101 -0
- package/src/components/action/back_link/BackLink.docs.mdx +25 -0
- package/src/components/action/back_link/BackLink.jsx +30 -0
- package/src/components/action/back_link/BackLink.module.scss +34 -0
- package/src/components/action/back_link/BackLink.stories.jsx +28 -0
- package/src/components/action/back_link/BackLink.test.jsx +105 -0
- package/src/components/action/back_link/index.js +1 -0
- package/src/components/action/button/Button.docs.mdx +43 -0
- package/src/components/action/button/Button.examples.jsx +60 -0
- package/src/components/action/button/Button.jsx +88 -0
- package/src/components/action/button/Button.module.scss +133 -0
- package/src/components/action/button/Button.stories.jsx +54 -0
- package/src/components/action/button/Button.test.jsx +54 -0
- package/src/components/action/button/index.js +1 -0
- package/src/components/action/icon_text_link/HomeIcon.dev.jsx +9 -0
- package/src/components/action/icon_text_link/IconTextLink.docs.mdx +37 -0
- package/src/components/action/icon_text_link/IconTextLink.jsx +57 -0
- package/src/components/action/icon_text_link/IconTextLink.module.scss +67 -0
- package/src/components/action/icon_text_link/IconTextLink.stories.jsx +44 -0
- package/src/components/action/icon_text_link/IconTextLink.test.jsx +134 -0
- package/src/components/action/icon_text_link/index.js +1 -0
- package/src/components/action/link/Link.docs.mdx +23 -0
- package/src/components/action/link/Link.jsx +50 -0
- package/src/components/action/link/Link.stories.jsx +43 -0
- package/src/components/action/link/Link.test.jsx +91 -0
- package/src/components/action/link/index.js +1 -0
- package/src/components/ad/ad_unit/AdUnit.docs.mdx +23 -0
- package/src/components/ad/ad_unit/AdUnit.jsx +75 -0
- package/src/components/ad/ad_unit/AdUnit.module.scss +9 -0
- package/src/components/ad/ad_unit/AdUnit.stories.jsx +30 -0
- package/src/components/ad/ad_unit/AdUnit.test.jsx +63 -0
- package/src/components/ad/ad_unit/index.js +1 -0
- package/src/components/ad/use_google_ad_manager/index.js +1 -0
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.docs.mdx +27 -0
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.jsx +37 -0
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.test.jsx +47 -0
- package/src/components/ad/with_ad/WithAd.docs.mdx +30 -0
- package/src/components/ad/with_ad/WithAd.jsx +51 -0
- package/src/components/ad/with_ad/WithAd.test.jsx +104 -0
- package/src/components/ad/with_ad/index.js +1 -0
- package/src/components/argument/argument/Argument.docs.mdx +60 -0
- package/src/components/argument/argument/Argument.jsx +358 -0
- package/src/components/argument/argument/Argument.module.scss +233 -0
- package/src/components/argument/argument/Argument.stories.jsx +232 -0
- package/src/components/argument/argument/Argument.test.jsx +303 -0
- package/src/components/argument/argument/ReplyFooter.jsx +47 -0
- package/src/components/argument/argument/ReplyFooter.module.scss +77 -0
- package/src/components/argument/argument/index.js +2 -0
- package/src/components/argument/argument/useRichContent.jsx +18 -0
- package/src/components/argument/top_arguments/TopArguments.docs.mdx +22 -0
- package/src/components/argument/top_arguments/TopArguments.jsx +90 -0
- package/src/components/argument/top_arguments/TopArguments.module.scss +37 -0
- package/src/components/argument/top_arguments/TopArguments.stories.jsx +156 -0
- package/src/components/argument/top_arguments/TopArguments.test.jsx +67 -0
- package/src/components/argument/top_arguments/index.js +1 -0
- package/src/components/auth/auth_initializer/AuthInitializer.alltest.js +21 -0
- package/src/components/auth/auth_initializer/AuthInitializer.docs.mdx +34 -0
- package/src/components/auth/auth_initializer/AuthInitializer.jsx +61 -0
- package/src/components/auth/auth_initializer/index.js +1 -0
- package/src/components/auth/auth_modal/AuthModal.alltest.js +30 -0
- package/src/components/auth/auth_modal/AuthModal.docs.mdx +26 -0
- package/src/components/auth/auth_modal/AuthModal.jsx +99 -0
- package/src/components/auth/auth_modal/AuthModal.module.scss +9 -0
- package/src/components/auth/auth_modal/AuthModal.stories.jsx +90 -0
- package/src/components/auth/auth_modal/index.js +1 -0
- package/src/components/auth/facebook_login_button/FacebookIcon.jsx +7 -0
- package/src/components/auth/facebook_login_button/FacebookLoginButton.docs.mdx +34 -0
- package/src/components/auth/facebook_login_button/FacebookLoginButton.jsx +25 -0
- package/src/components/auth/facebook_login_button/FacebookLoginButton.module.scss +32 -0
- package/src/components/auth/facebook_login_button/FacebookLoginButton.stories.jsx +35 -0
- package/src/components/auth/facebook_login_button/FacebookLoginButton.test.jsx +68 -0
- package/src/components/auth/facebook_login_button/index.js +1 -0
- package/src/components/auth/google_login_button/GoogleIcon.jsx +10 -0
- package/src/components/auth/google_login_button/GoogleLoginButton.docs.mdx +43 -0
- package/src/components/auth/google_login_button/GoogleLoginButton.jsx +27 -0
- package/src/components/auth/google_login_button/GoogleLoginButton.module.scss +28 -0
- package/src/components/auth/google_login_button/GoogleLoginButton.stories.jsx +35 -0
- package/src/components/auth/google_login_button/GoogleLoginButton.test.jsx +69 -0
- package/src/components/auth/google_login_button/index.js +1 -0
- package/src/components/auth/login_form/LoginForm.docs.mdx +24 -0
- package/src/components/auth/login_form/LoginForm.jsx +65 -0
- package/src/components/auth/login_form/LoginForm.module.scss +36 -0
- package/src/components/auth/login_form/LoginForm.stories.jsx +42 -0
- package/src/components/auth/login_form/LoginForm.test.jsx +94 -0
- package/src/components/auth/login_form/index.js +1 -0
- package/src/components/auth/oauth2_button/OAuth2Button.docs.mdx +32 -0
- package/src/components/auth/oauth2_button/OAuth2Button.jsx +79 -0
- package/src/components/auth/oauth2_button/OAuth2Button.module.scss +10 -0
- package/src/components/auth/oauth2_button/OAuth2Button.stories.jsx +48 -0
- package/src/components/auth/oauth2_button/OAuth2Button.test.jsx +306 -0
- package/src/components/auth/oauth2_button/index.js +1 -0
- package/src/components/auth/providers/AuthProvider.docs.mdx +35 -0
- package/src/components/auth/providers/AuthProvider.js +23 -0
- package/src/components/auth/providers/AuthProviderFactory.js +20 -0
- package/src/components/auth/providers/FormAuth.js +36 -0
- package/src/components/auth/providers/JWTAuth.js +35 -0
- package/src/components/auth/providers/OAuth2ServerAuth.js +47 -0
- package/src/components/auth/providers/PasswordAuth.js +31 -0
- package/src/components/auth/providers/index.js +1 -0
- package/src/components/auth/providers/tests/AuthProviderFactory.test.jsx +53 -0
- package/src/components/auth/providers/tests/FormAuth.test.jsx +45 -0
- package/src/components/auth/providers/tests/JWTAuth.test.jsx +57 -0
- package/src/components/auth/providers/tests/OAuth2ServerAuth.test.jsx +78 -0
- package/src/components/auth/providers/tests/PasswordAuth.test.jsx +43 -0
- package/src/components/auth/signup_form/SignupForm.docs.mdx +29 -0
- package/src/components/auth/signup_form/SignupForm.jsx +125 -0
- package/src/components/auth/signup_form/SignupForm.module.scss +21 -0
- package/src/components/auth/signup_form/SignupForm.stories.jsx +40 -0
- package/src/components/auth/signup_form/SignupForm.test.jsx +144 -0
- package/src/components/auth/signup_form/index.js +1 -0
- package/src/components/auth/social_auth_form/SocialAuthForm.docs.mdx +33 -0
- package/src/components/auth/social_auth_form/SocialAuthForm.jsx +170 -0
- package/src/components/auth/social_auth_form/SocialAuthForm.module.scss +141 -0
- package/src/components/auth/social_auth_form/SocialAuthForm.stories.jsx +82 -0
- package/src/components/auth/social_auth_form/SocialAuthForm.test.jsx +201 -0
- package/src/components/auth/social_auth_form/index.js +1 -0
- package/src/components/auth/sso_form/SSOForm.docs.mdx +39 -0
- package/src/components/auth/sso_form/SSOForm.jsx +243 -0
- package/src/components/auth/sso_form/SSOForm.module.scss +99 -0
- package/src/components/auth/sso_form/SSOForm.stories.jsx +117 -0
- package/src/components/auth/sso_form/SSOForm.test.jsx +83 -0
- package/src/components/auth/sso_form/index.js +1 -0
- package/src/components/auth/use_auth/AuthContext.js +3 -0
- package/src/components/auth/use_auth/AuthProvider.jsx +21 -0
- package/src/components/auth/use_auth/AuthProvider.test.jsx +26 -0
- package/src/components/auth/use_auth/AuthStorage.js +33 -0
- package/src/components/auth/use_auth/AuthStorage.test.jsx +165 -0
- package/src/components/auth/use_auth/authTokenHandler.js +67 -0
- package/src/components/auth/use_auth/authTokenHandler.test.jsx +117 -0
- package/src/components/auth/use_auth/index.js +7 -0
- package/src/components/auth/use_auth/useAuth.docs.mdx +34 -0
- package/src/components/auth/use_auth/useAuth.js +8 -0
- package/src/components/auth/use_auth/useAuthActions.js +77 -0
- package/src/components/auth/use_auth/useAuthInterceptor.jsx +42 -0
- package/src/components/chart/line_chart/LineChart.docs.mdx +34 -0
- package/src/components/chart/line_chart/LineChart.jsx +107 -0
- package/src/components/chart/line_chart/LineChart.module.scss +54 -0
- package/src/components/chart/line_chart/LineChart.stories.jsx +49 -0
- package/src/components/chart/line_chart/LineChart.test.jsx +12 -0
- package/src/components/chart/line_chart/index.js +1 -0
- package/src/components/chart/pie_chart/PieChart.docs.mdx +26 -0
- package/src/components/chart/pie_chart/PieChart.jsx +102 -0
- package/src/components/chart/pie_chart/PieChart.module.scss +17 -0
- package/src/components/chart/pie_chart/PieChart.stories.jsx +36 -0
- package/src/components/chart/pie_chart/PieChart.test.jsx +12 -0
- package/src/components/chart/pie_chart/index.js +1 -0
- package/src/components/consultation/consultation_box/ConsultationBox.docs.mdx +21 -0
- package/src/components/consultation/consultation_box/ConsultationBox.jsx +101 -0
- package/src/components/consultation/consultation_box/ConsultationBox.module.scss +105 -0
- package/src/components/consultation/consultation_box/ConsultationBox.stories.jsx +96 -0
- package/src/components/consultation/consultation_box/ConsultationBox.test.jsx +58 -0
- package/src/components/consultation/consultation_box/index.js +1 -0
- package/src/components/data/axios_client/httpClient.docs.mdx +4 -0
- package/src/components/data/axios_client/httpClient.js +11 -0
- package/src/components/data/axios_client/index.js +1 -0
- package/src/components/data/config_provider/ConfigProvider.docs.mdx +26 -0
- package/src/components/data/config_provider/ConfigProvider.jsx +21 -0
- package/src/components/data/config_provider/ConfigProvider.test.jsx +39 -0
- package/src/components/data/config_provider/index.js +4 -0
- package/src/components/data/config_provider/useConfig.jsx +8 -0
- package/src/components/data/config_provider/useRoutes.jsx +8 -0
- package/src/components/data/config_provider/withConfig.jsx +8 -0
- package/src/components/data/data_provider/DataProvider.docs.mdx +52 -0
- package/src/components/data/data_provider/DataProvider.jsx +165 -0
- package/src/components/data/data_provider/DataProvider.test.jsx +419 -0
- package/src/components/data/data_provider/DataProviderContext.jsx +3 -0
- package/src/components/data/data_provider/index.js +4 -0
- package/src/components/data/data_provider/useData.jsx +9 -0
- package/src/components/data/data_provider/useDataProvider.jsx +8 -0
- package/src/components/data/data_provider/useDataProvider.test.jsx +38 -0
- package/src/components/debate/debate_box/DebateBox.docs.mdx +23 -0
- package/src/components/debate/debate_box/DebateBox.jsx +136 -0
- package/src/components/debate/debate_box/DebateBox.module.scss +209 -0
- package/src/components/debate/debate_box/DebateBox.stories.jsx +157 -0
- package/src/components/debate/debate_box/DebateBox.test.jsx +117 -0
- package/src/components/debate/debate_box/index.js +1 -0
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.docs.mdx +24 -0
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.jsx +37 -0
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.module.scss +35 -0
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.stories.jsx +44 -0
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.test.jsx +35 -0
- package/src/components/dialog/announcement_dialog/HomeIcon.dev.jsx +9 -0
- package/src/components/dialog/announcement_dialog/index.js +1 -0
- package/src/components/dialog/confirm_modal/ConfirmModal.docs.mdx +25 -0
- package/src/components/dialog/confirm_modal/ConfirmModal.jsx +53 -0
- package/src/components/dialog/confirm_modal/ConfirmModal.module.scss +30 -0
- package/src/components/dialog/confirm_modal/ConfirmModal.stories.jsx +36 -0
- package/src/components/dialog/confirm_modal/ConfirmModal.test.jsx +176 -0
- package/src/components/dialog/confirm_modal/index.js +1 -0
- package/src/components/dialog/countdown/Countdown.docs.mdx +23 -0
- package/src/components/dialog/countdown/Countdown.jsx +36 -0
- package/src/components/dialog/countdown/Countdown.stories.jsx +33 -0
- package/src/components/dialog/countdown/Countdown.test.jsx +51 -0
- package/src/components/dialog/countdown/index.js +1 -0
- package/src/components/dialog/dialog_box/DialogBox.docs.mdx +25 -0
- package/src/components/dialog/dialog_box/DialogBox.jsx +53 -0
- package/src/components/dialog/dialog_box/DialogBox.module.scss +145 -0
- package/src/components/dialog/dialog_box/DialogBox.stories.jsx +45 -0
- package/src/components/dialog/dialog_box/DialogBox.test.jsx +40 -0
- package/src/components/dialog/dialog_box/index.js +1 -0
- package/src/components/dialog/drawer/Drawer.docs.mdx +31 -0
- package/src/components/dialog/drawer/Drawer.jsx +159 -0
- package/src/components/dialog/drawer/Drawer.module.scss +136 -0
- package/src/components/dialog/drawer/Drawer.stories.jsx +194 -0
- package/src/components/dialog/drawer/Drawer.test.jsx +15 -0
- package/src/components/dialog/drawer/index.js +1 -0
- package/src/components/dialog/dropdown/Dropdown.docs.mdx +28 -0
- package/src/components/dialog/dropdown/Dropdown.jsx +59 -0
- package/src/components/dialog/dropdown/Dropdown.module.scss +41 -0
- package/src/components/dialog/dropdown/Dropdown.stories.jsx +42 -0
- package/src/components/dialog/dropdown/Dropdown.test.jsx +126 -0
- package/src/components/dialog/dropdown/index.js +1 -0
- package/src/components/dialog/modal/Modal.docs.mdx +39 -0
- package/src/components/dialog/modal/Modal.jsx +101 -0
- package/src/components/dialog/modal/Modal.module.scss +99 -0
- package/src/components/dialog/modal/Modal.stories.jsx +53 -0
- package/src/components/dialog/modal/Modal.test.jsx +115 -0
- package/src/components/dialog/modal/ModalProvider.jsx +26 -0
- package/src/components/dialog/modal/ModalProvider.test.jsx +39 -0
- package/src/components/dialog/modal/index.js +3 -0
- package/src/components/dialog/modal/useModal.jsx +6 -0
- package/src/components/dialog/toast/Toast.docs.mdx +21 -0
- package/src/components/dialog/toast/Toast.jsx +44 -0
- package/src/components/dialog/toast/Toast.module.scss +66 -0
- package/src/components/dialog/toast/Toast.stories.jsx +42 -0
- package/src/components/dialog/toast/Toast.test.jsx +21 -0
- package/src/components/dialog/toast/index.js +1 -0
- package/src/components/dialog/toast_provider/ToastContext.js +3 -0
- package/src/components/dialog/toast_provider/ToastProvider.docs.mdx +36 -0
- package/src/components/dialog/toast_provider/ToastProvider.jsx +35 -0
- package/src/components/dialog/toast_provider/ToastProvider.module.scss +14 -0
- package/src/components/dialog/toast_provider/ToastProvider.test.jsx +64 -0
- package/src/components/dialog/toast_provider/index.js +2 -0
- package/src/components/dialog/toast_provider/useToast.jsx +8 -0
- package/src/components/dialog/tooltip/Tooltip.docs.mdx +20 -0
- package/src/components/dialog/tooltip/Tooltip.jsx +53 -0
- package/src/components/dialog/tooltip/Tooltip.module.scss +92 -0
- package/src/components/dialog/tooltip/Tooltip.stories.jsx +76 -0
- package/src/components/dialog/tooltip/Tooltip.test.jsx +67 -0
- package/src/components/dialog/tooltip/index.js +3 -0
- package/src/components/embed/embed_header/EmbedHeader.docs.mdx +25 -0
- package/src/components/embed/embed_header/EmbedHeader.jsx +61 -0
- package/src/components/embed/embed_header/EmbedHeader.module.scss +148 -0
- package/src/components/embed/embed_header/EmbedHeader.stories.jsx +54 -0
- package/src/components/embed/embed_header/EmbedHeader.test.jsx +70 -0
- package/src/components/embed/embed_header/index.js +1 -0
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.docs.mdx +26 -0
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.jsx +27 -0
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.module.scss +8 -0
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.test.jsx +56 -0
- package/src/components/error/standard_error_boundary/index.js +1 -0
- package/src/components/follow/follow_button/FollowButton.docs.mdx +41 -0
- package/src/components/follow/follow_button/FollowButton.jsx +40 -0
- package/src/components/follow/follow_button/FollowButton.module.scss +17 -0
- package/src/components/follow/follow_button/FollowButton.stories.jsx +58 -0
- package/src/components/follow/follow_button/FollowButton.test.jsx +45 -0
- package/src/components/follow/follow_button/index.js +1 -0
- package/src/components/follow/use_follow/index.js +1 -0
- package/src/components/follow/use_follow/useFollow.docs.mdx +24 -0
- package/src/components/follow/use_follow/useFollow.jsx +60 -0
- package/src/components/follow/use_follow/useFollow.test.jsx +94 -0
- package/src/components/forms/form/extract-form-data.js +14 -0
- package/src/components/forms/form/form-context.js +3 -0
- package/src/components/forms/form/form.docs.mdx +232 -0
- package/src/components/forms/form/form.jsx +26 -0
- package/src/components/forms/form/form.stories.jsx +119 -0
- package/src/components/forms/form/form.test.jsx +3 -0
- package/src/components/forms/form/index.js +6 -0
- package/src/components/forms/form/use-form-context.js +43 -0
- package/src/components/forms/form/use-form.js +4 -0
- package/src/components/forms/use_form_validation/index.js +1 -0
- package/src/components/forms/use_form_validation/useFormValidation.docs.mdx +40 -0
- package/src/components/forms/use_form_validation/useFormValidation.jsx +114 -0
- package/src/components/forms/use_form_validation/useFormValidation.test.jsx +91 -0
- package/src/components/gamification/badge_box/BadgeBox.docs.mdx +25 -0
- package/src/components/gamification/badge_box/BadgeBox.jsx +74 -0
- package/src/components/gamification/badge_box/BadgeBox.module.scss +103 -0
- package/src/components/gamification/badge_box/BadgeBox.stories.jsx +64 -0
- package/src/components/gamification/badge_box/BadgeBox.test.jsx +113 -0
- package/src/components/gamification/badge_box/index.js +1 -0
- package/src/components/gamification/point_box/PointBox.docs.mdx +19 -0
- package/src/components/gamification/point_box/PointBox.jsx +28 -0
- package/src/components/gamification/point_box/PointBox.module.scss +38 -0
- package/src/components/gamification/point_box/PointBox.stories.jsx +32 -0
- package/src/components/gamification/point_box/PointBox.test.jsx +21 -0
- package/src/components/gamification/point_box/index.js +1 -0
- package/src/components/hooks/use_auth_required/index.js +1 -0
- package/src/components/hooks/use_auth_required/useAuthRequired.docs.mdx +22 -0
- package/src/components/hooks/use_auth_required/useAuthRequired.jsx +28 -0
- package/src/components/hooks/use_auth_required/useAuthRequired.test.jsx +85 -0
- package/src/components/hooks/use_css_theme/index.js +1 -0
- package/src/components/hooks/use_css_theme/useCssTheme.docs.mdx +34 -0
- package/src/components/hooks/use_css_theme/useCssTheme.js +27 -0
- package/src/components/hooks/use_css_theme/useCssTheme.stories.jsx +41 -0
- package/src/components/hooks/use_css_theme/useCssTheme.test.jsx +31 -0
- package/src/components/hooks/use_font_loader/index.js +1 -0
- package/src/components/hooks/use_font_loader/useFontLoader.docs.mdx +24 -0
- package/src/components/hooks/use_font_loader/useFontLoader.js +16 -0
- package/src/components/hooks/use_font_loader/useFontLoader.test.jsx +64 -0
- package/src/components/hooks/use_matomo/index.js +1 -0
- package/src/components/hooks/use_matomo/useMatomo.docs.mdx +28 -0
- package/src/components/hooks/use_matomo/useMatomo.js +17 -0
- package/src/components/hooks/use_matomo/useMatomo.test.jsx +24 -0
- package/src/components/hooks/use_relative_time/index.js +1 -0
- package/src/components/hooks/use_relative_time/useRelativeTime.docs.mdx +35 -0
- package/src/components/hooks/use_relative_time/useRelativeTime.jsx +40 -0
- package/src/components/hooks/use_relative_time/useRelativeTime.test.jsx +82 -0
- package/src/components/hooks/use_responsive/ResponsiveContext.jsx +3 -0
- package/src/components/hooks/use_responsive/ResponsiveProvider.jsx +52 -0
- package/src/components/hooks/use_responsive/index.js +2 -0
- package/src/components/hooks/use_responsive/useResponsive.docs.mdx +46 -0
- package/src/components/hooks/use_responsive/useResponsive.jsx +8 -0
- package/src/components/hooks/use_responsive/useResponsive.stories.jsx +49 -0
- package/src/components/hooks/use_responsive/useResponsive.test.jsx +54 -0
- package/src/components/icons/bild_icons/Alarm.jsx +7 -0
- package/src/components/icons/bild_icons/Announcement.jsx +16 -0
- package/src/components/icons/bild_icons/Arrow.jsx +7 -0
- package/src/components/icons/bild_icons/BildIcons.docs.mdx +21 -0
- package/src/components/icons/bild_icons/BildIcons.stories.jsx +123 -0
- package/src/components/icons/bild_icons/BildIcons.test.jsx +15 -0
- package/src/components/icons/bild_icons/Blockquote.jsx +7 -0
- package/src/components/icons/bild_icons/Bold.jsx +7 -0
- package/src/components/icons/bild_icons/Camera.jsx +8 -0
- package/src/components/icons/bild_icons/Chat.jsx +16 -0
- package/src/components/icons/bild_icons/Check.jsx +7 -0
- package/src/components/icons/bild_icons/CheckCircle.jsx +17 -0
- package/src/components/icons/bild_icons/Checkbox.jsx +8 -0
- package/src/components/icons/bild_icons/Clap.jsx +9 -0
- package/src/components/icons/bild_icons/Clock.jsx +7 -0
- package/src/components/icons/bild_icons/Close.jsx +7 -0
- package/src/components/icons/bild_icons/Code.jsx +18 -0
- package/src/components/icons/bild_icons/Community.jsx +7 -0
- package/src/components/icons/bild_icons/Crown.jsx +7 -0
- package/src/components/icons/bild_icons/Document.jsx +7 -0
- package/src/components/icons/bild_icons/Downvote.jsx +7 -0
- package/src/components/icons/bild_icons/Ellipsis.jsx +8 -0
- package/src/components/icons/bild_icons/ExpertBadge.jsx +11 -0
- package/src/components/icons/bild_icons/Facebook.jsx +7 -0
- package/src/components/icons/bild_icons/Flag.jsx +7 -0
- package/src/components/icons/bild_icons/Home.jsx +7 -0
- package/src/components/icons/bild_icons/Italic.jsx +7 -0
- package/src/components/icons/bild_icons/LightArrow.jsx +7 -0
- package/src/components/icons/bild_icons/Link.jsx +8 -0
- package/src/components/icons/bild_icons/Login.jsx +11 -0
- package/src/components/icons/bild_icons/Logora.jsx +24 -0
- package/src/components/icons/bild_icons/Mail.jsx +7 -0
- package/src/components/icons/bild_icons/MinusCircle.jsx +16 -0
- package/src/components/icons/bild_icons/MobileClose.jsx +8 -0
- package/src/components/icons/bild_icons/MobileMenu.jsx +10 -0
- package/src/components/icons/bild_icons/Next.jsx +10 -0
- package/src/components/icons/bild_icons/OpenBlank.jsx +15 -0
- package/src/components/icons/bild_icons/OrderedList.jsx +7 -0
- package/src/components/icons/bild_icons/PauseCircle.jsx +10 -0
- package/src/components/icons/bild_icons/Point.jsx +8 -0
- package/src/components/icons/bild_icons/Question.jsx +8 -0
- package/src/components/icons/bild_icons/Refresh.jsx +7 -0
- package/src/components/icons/bild_icons/Reply.jsx +7 -0
- package/src/components/icons/bild_icons/Search.jsx +7 -0
- package/src/components/icons/bild_icons/Send.jsx +7 -0
- package/src/components/icons/bild_icons/Share.jsx +14 -0
- package/src/components/icons/bild_icons/SmallArrow.jsx +11 -0
- package/src/components/icons/bild_icons/Source.jsx +7 -0
- package/src/components/icons/bild_icons/Suggestion.jsx +7 -0
- package/src/components/icons/bild_icons/Twitter.jsx +10 -0
- package/src/components/icons/bild_icons/Underline.jsx +7 -0
- package/src/components/icons/bild_icons/Upvote.jsx +7 -0
- package/src/components/icons/bild_icons/User.jsx +7 -0
- package/src/components/icons/bild_icons/Versus.jsx +11 -0
- package/src/components/icons/bild_icons/Votebox.jsx +7 -0
- package/src/components/icons/bild_icons/index.js +52 -0
- package/src/components/icons/hero_icons/Alarm.jsx +7 -0
- package/src/components/icons/hero_icons/Announcement.jsx +7 -0
- package/src/components/icons/hero_icons/Arrow.jsx +7 -0
- package/src/components/icons/hero_icons/Blockquote.jsx +14 -0
- package/src/components/icons/hero_icons/Bold.jsx +7 -0
- package/src/components/icons/hero_icons/Camera.jsx +8 -0
- package/src/components/icons/hero_icons/Chat.jsx +7 -0
- package/src/components/icons/hero_icons/Check.jsx +8 -0
- package/src/components/icons/hero_icons/CheckCircle.jsx +17 -0
- package/src/components/icons/hero_icons/Checkbox.jsx +7 -0
- package/src/components/icons/hero_icons/Clap.jsx +7 -0
- package/src/components/icons/hero_icons/Clock.jsx +7 -0
- package/src/components/icons/hero_icons/Close.jsx +8 -0
- package/src/components/icons/hero_icons/Code.jsx +7 -0
- package/src/components/icons/hero_icons/Community.jsx +7 -0
- package/src/components/icons/hero_icons/Crown.jsx +7 -0
- package/src/components/icons/hero_icons/Downvote.jsx +8 -0
- package/src/components/icons/hero_icons/Ellipsis.jsx +7 -0
- package/src/components/icons/hero_icons/ExpertBadge.jsx +7 -0
- package/src/components/icons/hero_icons/Facebook.jsx +7 -0
- package/src/components/icons/hero_icons/Flag.jsx +7 -0
- package/src/components/icons/hero_icons/HeroIcons.docs.mdx +19 -0
- package/src/components/icons/hero_icons/HeroIcons.stories.jsx +121 -0
- package/src/components/icons/hero_icons/HeroIcons.test.jsx +15 -0
- package/src/components/icons/hero_icons/Home.jsx +7 -0
- package/src/components/icons/hero_icons/Italic.jsx +7 -0
- package/src/components/icons/hero_icons/LightArrow.jsx +7 -0
- package/src/components/icons/hero_icons/Link.jsx +7 -0
- package/src/components/icons/hero_icons/Login.jsx +7 -0
- package/src/components/icons/hero_icons/Logora.jsx +24 -0
- package/src/components/icons/hero_icons/Mail.jsx +7 -0
- package/src/components/icons/hero_icons/MinusCircle.jsx +16 -0
- package/src/components/icons/hero_icons/MobileClose.jsx +7 -0
- package/src/components/icons/hero_icons/MobileMenu.jsx +7 -0
- package/src/components/icons/hero_icons/Next.jsx +8 -0
- package/src/components/icons/hero_icons/OpenBlank.jsx +7 -0
- package/src/components/icons/hero_icons/OrderedList.jsx +19 -0
- package/src/components/icons/hero_icons/PauseCircle.jsx +10 -0
- package/src/components/icons/hero_icons/Point.jsx +8 -0
- package/src/components/icons/hero_icons/Question.jsx +7 -0
- package/src/components/icons/hero_icons/Refresh.jsx +7 -0
- package/src/components/icons/hero_icons/Reply.jsx +7 -0
- package/src/components/icons/hero_icons/Search.jsx +7 -0
- package/src/components/icons/hero_icons/Send.jsx +7 -0
- package/src/components/icons/hero_icons/Share.jsx +8 -0
- package/src/components/icons/hero_icons/SmallArrow.jsx +7 -0
- package/src/components/icons/hero_icons/Source.jsx +8 -0
- package/src/components/icons/hero_icons/Suggestion.jsx +9 -0
- package/src/components/icons/hero_icons/Twitter.jsx +10 -0
- package/src/components/icons/hero_icons/Underline.jsx +14 -0
- package/src/components/icons/hero_icons/Upvote.jsx +7 -0
- package/src/components/icons/hero_icons/User.jsx +7 -0
- package/src/components/icons/hero_icons/Versus.jsx +7 -0
- package/src/components/icons/hero_icons/Votebox.jsx +7 -0
- package/src/components/icons/hero_icons/index.js +51 -0
- package/src/components/icons/icon/Icon.docs.mdx +20 -0
- package/src/components/icons/icon/Icon.jsx +32 -0
- package/src/components/icons/icon/Icon.test.jsx +33 -0
- package/src/components/icons/icon/index.js +1 -0
- package/src/components/icons/icon_provider/IconProvider.docs.mdx +28 -0
- package/src/components/icons/icon_provider/IconProvider.jsx +19 -0
- package/src/components/icons/icon_provider/IconProvider.test.jsx +24 -0
- package/src/components/icons/icon_provider/index.js +1 -0
- package/src/components/icons/krone_icons/Alarm.jsx +27 -0
- package/src/components/icons/krone_icons/Announcement.jsx +16 -0
- package/src/components/icons/krone_icons/Arrow.jsx +7 -0
- package/src/components/icons/krone_icons/Blockquote.jsx +7 -0
- package/src/components/icons/krone_icons/Bold.jsx +7 -0
- package/src/components/icons/krone_icons/Camera.jsx +8 -0
- package/src/components/icons/krone_icons/Chat.jsx +29 -0
- package/src/components/icons/krone_icons/Check.jsx +7 -0
- package/src/components/icons/krone_icons/CheckBox.jsx +7 -0
- package/src/components/icons/krone_icons/CheckCircle.jsx +17 -0
- package/src/components/icons/krone_icons/Clap.jsx +29 -0
- package/src/components/icons/krone_icons/Clock.jsx +7 -0
- package/src/components/icons/krone_icons/Close.jsx +7 -0
- package/src/components/icons/krone_icons/Code.jsx +18 -0
- package/src/components/icons/krone_icons/Community.jsx +7 -0
- package/src/components/icons/krone_icons/Crown.jsx +7 -0
- package/src/components/icons/krone_icons/Document.jsx +7 -0
- package/src/components/icons/krone_icons/Downvote.jsx +7 -0
- package/src/components/icons/krone_icons/Ellipsis.jsx +18 -0
- package/src/components/icons/krone_icons/ExpertBadge.jsx +29 -0
- package/src/components/icons/krone_icons/Facebook.jsx +7 -0
- package/src/components/icons/krone_icons/Flag.jsx +7 -0
- package/src/components/icons/krone_icons/Home.jsx +29 -0
- package/src/components/icons/krone_icons/Italic.jsx +7 -0
- package/src/components/icons/krone_icons/KroneIcons.docs.mdx +21 -0
- package/src/components/icons/krone_icons/KroneIcons.stories.jsx +124 -0
- package/src/components/icons/krone_icons/KroneIcons.test.jsx +15 -0
- package/src/components/icons/krone_icons/LightArrow.jsx +7 -0
- package/src/components/icons/krone_icons/Link.jsx +8 -0
- package/src/components/icons/krone_icons/Login.jsx +11 -0
- package/src/components/icons/krone_icons/Logora.jsx +24 -0
- package/src/components/icons/krone_icons/Mail.jsx +7 -0
- package/src/components/icons/krone_icons/MinusCircle.jsx +16 -0
- package/src/components/icons/krone_icons/MobileClose.jsx +8 -0
- package/src/components/icons/krone_icons/MobileMenu.jsx +10 -0
- package/src/components/icons/krone_icons/Next.jsx +10 -0
- package/src/components/icons/krone_icons/OpenBlank.jsx +15 -0
- package/src/components/icons/krone_icons/OrderedList.jsx +7 -0
- package/src/components/icons/krone_icons/PauseCircle.jsx +10 -0
- package/src/components/icons/krone_icons/Point.jsx +8 -0
- package/src/components/icons/krone_icons/Question.jsx +29 -0
- package/src/components/icons/krone_icons/Refresh.jsx +7 -0
- package/src/components/icons/krone_icons/Reply.jsx +18 -0
- package/src/components/icons/krone_icons/Search.jsx +7 -0
- package/src/components/icons/krone_icons/Send.jsx +19 -0
- package/src/components/icons/krone_icons/Share.jsx +16 -0
- package/src/components/icons/krone_icons/SmallArrow.jsx +11 -0
- package/src/components/icons/krone_icons/Source.jsx +7 -0
- package/src/components/icons/krone_icons/Suggestion.jsx +29 -0
- package/src/components/icons/krone_icons/Twitter.jsx +10 -0
- package/src/components/icons/krone_icons/Underline.jsx +7 -0
- package/src/components/icons/krone_icons/Upvote.jsx +29 -0
- package/src/components/icons/krone_icons/User.jsx +30 -0
- package/src/components/icons/krone_icons/Versus.jsx +9 -0
- package/src/components/icons/krone_icons/Votebox.jsx +29 -0
- package/src/components/icons/krone_icons/index.js +52 -0
- package/src/components/icons/regular_icons/Alarm.jsx +7 -0
- package/src/components/icons/regular_icons/Announcement.jsx +16 -0
- package/src/components/icons/regular_icons/Arrow.jsx +7 -0
- package/src/components/icons/regular_icons/Blockquote.jsx +7 -0
- package/src/components/icons/regular_icons/Bold.jsx +7 -0
- package/src/components/icons/regular_icons/Camera.jsx +8 -0
- package/src/components/icons/regular_icons/Chat.jsx +10 -0
- package/src/components/icons/regular_icons/Check.jsx +7 -0
- package/src/components/icons/regular_icons/CheckCircle.jsx +17 -0
- package/src/components/icons/regular_icons/Checkbox.jsx +8 -0
- package/src/components/icons/regular_icons/Clap.jsx +7 -0
- package/src/components/icons/regular_icons/Clock.jsx +7 -0
- package/src/components/icons/regular_icons/Close.jsx +7 -0
- package/src/components/icons/regular_icons/Code.jsx +18 -0
- package/src/components/icons/regular_icons/Community.jsx +7 -0
- package/src/components/icons/regular_icons/Crown.jsx +7 -0
- package/src/components/icons/regular_icons/Document.jsx +7 -0
- package/src/components/icons/regular_icons/Downvote.jsx +7 -0
- package/src/components/icons/regular_icons/Ellipsis.jsx +8 -0
- package/src/components/icons/regular_icons/ExpertBadge.jsx +11 -0
- package/src/components/icons/regular_icons/Facebook.jsx +7 -0
- package/src/components/icons/regular_icons/Flag.jsx +7 -0
- package/src/components/icons/regular_icons/Home.jsx +7 -0
- package/src/components/icons/regular_icons/Italic.jsx +7 -0
- package/src/components/icons/regular_icons/LightArrow.jsx +7 -0
- package/src/components/icons/regular_icons/Link.jsx +8 -0
- package/src/components/icons/regular_icons/Login.jsx +11 -0
- package/src/components/icons/regular_icons/Logora.jsx +24 -0
- package/src/components/icons/regular_icons/Mail.jsx +7 -0
- package/src/components/icons/regular_icons/MinusCircle.jsx +16 -0
- package/src/components/icons/regular_icons/MobileClose.jsx +8 -0
- package/src/components/icons/regular_icons/MobileMenu.jsx +10 -0
- package/src/components/icons/regular_icons/Next.jsx +10 -0
- package/src/components/icons/regular_icons/OpenBlank.jsx +15 -0
- package/src/components/icons/regular_icons/OrderedList.jsx +7 -0
- package/src/components/icons/regular_icons/PauseCircle.jsx +10 -0
- package/src/components/icons/regular_icons/Point.jsx +8 -0
- package/src/components/icons/regular_icons/Question.jsx +8 -0
- package/src/components/icons/regular_icons/Refresh.jsx +7 -0
- package/src/components/icons/regular_icons/RegularIcons.docs.mdx +21 -0
- package/src/components/icons/regular_icons/RegularIcons.stories.jsx +123 -0
- package/src/components/icons/regular_icons/RegularIcons.test.jsx +15 -0
- package/src/components/icons/regular_icons/Reply.jsx +7 -0
- package/src/components/icons/regular_icons/Search.jsx +7 -0
- package/src/components/icons/regular_icons/Send.jsx +7 -0
- package/src/components/icons/regular_icons/Share.jsx +14 -0
- package/src/components/icons/regular_icons/SmallArrow.jsx +11 -0
- package/src/components/icons/regular_icons/Source.jsx +7 -0
- package/src/components/icons/regular_icons/Suggestion.jsx +7 -0
- package/src/components/icons/regular_icons/Twitter.jsx +10 -0
- package/src/components/icons/regular_icons/Underline.jsx +7 -0
- package/src/components/icons/regular_icons/Upvote.jsx +7 -0
- package/src/components/icons/regular_icons/User.jsx +7 -0
- package/src/components/icons/regular_icons/Versus.jsx +9 -0
- package/src/components/icons/regular_icons/Votebox.jsx +7 -0
- package/src/components/icons/regular_icons/index.js +52 -0
- package/src/components/icons/spiegel_icons/Alarm.jsx +7 -0
- package/src/components/icons/spiegel_icons/Announcement.jsx +16 -0
- package/src/components/icons/spiegel_icons/Arrow.jsx +7 -0
- package/src/components/icons/spiegel_icons/Blockquote.jsx +14 -0
- package/src/components/icons/spiegel_icons/Bold.jsx +7 -0
- package/src/components/icons/spiegel_icons/Camera.jsx +8 -0
- package/src/components/icons/spiegel_icons/Chat.jsx +7 -0
- package/src/components/icons/spiegel_icons/Check.jsx +11 -0
- package/src/components/icons/spiegel_icons/CheckCircle.jsx +8 -0
- package/src/components/icons/spiegel_icons/Checkbox.jsx +14 -0
- package/src/components/icons/spiegel_icons/Clap.jsx +15 -0
- package/src/components/icons/spiegel_icons/Clock.jsx +15 -0
- package/src/components/icons/spiegel_icons/Close.jsx +7 -0
- package/src/components/icons/spiegel_icons/Code.jsx +18 -0
- package/src/components/icons/spiegel_icons/Community.jsx +7 -0
- package/src/components/icons/spiegel_icons/Crown.jsx +7 -0
- package/src/components/icons/spiegel_icons/Downvote.jsx +7 -0
- package/src/components/icons/spiegel_icons/Ellipsis.jsx +8 -0
- package/src/components/icons/spiegel_icons/ExpertBadge.jsx +16 -0
- package/src/components/icons/spiegel_icons/Facebook.jsx +7 -0
- package/src/components/icons/spiegel_icons/Flag.jsx +8 -0
- package/src/components/icons/spiegel_icons/Home.jsx +7 -0
- package/src/components/icons/spiegel_icons/Italic.jsx +7 -0
- package/src/components/icons/spiegel_icons/LightArrow.jsx +7 -0
- package/src/components/icons/spiegel_icons/Link.jsx +17 -0
- package/src/components/icons/spiegel_icons/Login.jsx +7 -0
- package/src/components/icons/spiegel_icons/Logora.jsx +24 -0
- package/src/components/icons/spiegel_icons/Mail.jsx +7 -0
- package/src/components/icons/spiegel_icons/MinusCircle.jsx +8 -0
- package/src/components/icons/spiegel_icons/MobileClose.jsx +8 -0
- package/src/components/icons/spiegel_icons/MobileMenu.jsx +10 -0
- package/src/components/icons/spiegel_icons/Next.jsx +10 -0
- package/src/components/icons/spiegel_icons/OpenBlank.jsx +15 -0
- package/src/components/icons/spiegel_icons/OrderedList.jsx +20 -0
- package/src/components/icons/spiegel_icons/PauseCircle.jsx +8 -0
- package/src/components/icons/spiegel_icons/Point.jsx +8 -0
- package/src/components/icons/spiegel_icons/Question.jsx +17 -0
- package/src/components/icons/spiegel_icons/Refresh.jsx +7 -0
- package/src/components/icons/spiegel_icons/Reply.jsx +7 -0
- package/src/components/icons/spiegel_icons/Search.jsx +7 -0
- package/src/components/icons/spiegel_icons/Send.jsx +7 -0
- package/src/components/icons/spiegel_icons/Share.jsx +14 -0
- package/src/components/icons/spiegel_icons/SmallArrow.jsx +7 -0
- package/src/components/icons/spiegel_icons/Source.jsx +7 -0
- package/src/components/icons/spiegel_icons/SpiegelIcons.docs.mdx +21 -0
- package/src/components/icons/spiegel_icons/SpiegelIcons.stories.jsx +121 -0
- package/src/components/icons/spiegel_icons/SpiegelIcons.test.jsx +15 -0
- package/src/components/icons/spiegel_icons/Suggestion.jsx +7 -0
- package/src/components/icons/spiegel_icons/Twitter.jsx +10 -0
- package/src/components/icons/spiegel_icons/Underline.jsx +14 -0
- package/src/components/icons/spiegel_icons/Upvote.jsx +7 -0
- package/src/components/icons/spiegel_icons/User.jsx +7 -0
- package/src/components/icons/spiegel_icons/Versus.jsx +11 -0
- package/src/components/icons/spiegel_icons/Votebox.jsx +14 -0
- package/src/components/icons/spiegel_icons/index.js +51 -0
- package/src/components/information/information_box/InformationBox.docs.mdx +28 -0
- package/src/components/information/information_box/InformationBox.jsx +54 -0
- package/src/components/information/information_box/InformationBox.module.scss +92 -0
- package/src/components/information/information_box/InformationBox.stories.jsx +50 -0
- package/src/components/information/information_box/InformationBox.test.jsx +94 -0
- package/src/components/information/information_box/index.js +1 -0
- package/src/components/input/argument_input/ArgumentInput.docs.mdx +29 -0
- package/src/components/input/argument_input/ArgumentInput.jsx +420 -0
- package/src/components/input/argument_input/ArgumentInput.module.scss +166 -0
- package/src/components/input/argument_input/ArgumentInput.stories.jsx +181 -0
- package/src/components/input/argument_input/ArgumentInput.test.jsx +482 -0
- package/src/components/input/argument_input/index.js +1 -0
- package/src/components/input/checkbox/hidden/hidden-checkbox.docs.mdx +4 -0
- package/src/components/input/checkbox/hidden/hidden-checkbox.jsx +8 -0
- package/src/components/input/checkbox/hidden/hidden-checkbox.module.scss +28 -0
- package/src/components/input/checkbox/hidden/hidden-checkbox.stories.jsx +73 -0
- package/src/components/input/checkbox/hidden/index.js +1 -0
- package/src/components/input/checkbox/indicator/checkbox-indicator.docs.mdx +9 -0
- package/src/components/input/checkbox/indicator/checkbox-indicator.jsx +17 -0
- package/src/components/input/checkbox/indicator/checkbox-indicator.module.scss +26 -0
- package/src/components/input/checkbox/indicator/checkbox-indicator.stories.jsx +51 -0
- package/src/components/input/checkbox/indicator/index.js +1 -0
- package/src/components/input/checkbox/label/checkbox-label.docs.mdx +39 -0
- package/src/components/input/checkbox/label/checkbox-label.jsx +40 -0
- package/src/components/input/checkbox/label/checkbox.stories.jsx +57 -0
- package/src/components/input/checkbox/label/index.js +1 -0
- package/src/components/input/input_provider/InputProvider.docs.mdx +38 -0
- package/src/components/input/input_provider/InputProvider.jsx +16 -0
- package/src/components/input/input_provider/InputProvider.test.jsx +102 -0
- package/src/components/input/input_provider/index.js +2 -0
- package/src/components/input/input_provider/useInput.jsx +8 -0
- package/src/components/input/search_input/SearchInput.docs.mdx +25 -0
- package/src/components/input/search_input/SearchInput.jsx +71 -0
- package/src/components/input/search_input/SearchInput.module.scss +18 -0
- package/src/components/input/search_input/SearchInput.stories.jsx +45 -0
- package/src/components/input/search_input/SearchInput.test.jsx +95 -0
- package/src/components/input/search_input/index.js +1 -0
- package/src/components/input/select/Select.docs.mdx +37 -0
- package/src/components/input/select/Select.jsx +102 -0
- package/src/components/input/select/Select.module.scss +72 -0
- package/src/components/input/select/Select.stories.jsx +75 -0
- package/src/components/input/select/Select.test.jsx +136 -0
- package/src/components/input/select/index.js +1 -0
- package/src/components/input/text_editor/EditorTheme.js +71 -0
- package/src/components/input/text_editor/TextEditor.docs.mdx +31 -0
- package/src/components/input/text_editor/TextEditor.jsx +205 -0
- package/src/components/input/text_editor/TextEditor.module.scss +140 -0
- package/src/components/input/text_editor/TextEditor.stories.jsx +227 -0
- package/src/components/input/text_editor/TextEditor.test.jsx +654 -0
- package/src/components/input/text_editor/index.js +2 -0
- package/src/components/input/text_editor/lexicalToHtml.js +23 -0
- package/src/components/input/text_editor/plugins/AutoSavePlugin.jsx +37 -0
- package/src/components/input/text_editor/plugins/FocusPlugin.jsx +19 -0
- package/src/components/input/text_editor/plugins/MaxLengthPlugin.jsx +44 -0
- package/src/components/input/text_editor/plugins/ResetPlugin.jsx +35 -0
- package/src/components/input/text_editor/plugins/SetContentPlugin.jsx +24 -0
- package/src/components/input/text_editor/plugins/SetRichContentPlugin.jsx +20 -0
- package/src/components/input/text_editor/plugins/ToolbarPlugin.jsx +233 -0
- package/src/components/input/text_editor/plugins/ToolbarPlugin.module.scss +77 -0
- package/src/components/input/text_input/TextInput.docs.mdx +73 -0
- package/src/components/input/text_input/TextInput.jsx +46 -0
- package/src/components/input/text_input/TextInput.module.scss +146 -0
- package/src/components/input/text_input/TextInput.stories.jsx +101 -0
- package/src/components/input/text_input/TextInput.test.jsx +64 -0
- package/src/components/input/text_input/color-accent.js +16 -0
- package/src/components/input/text_input/index.js +3 -0
- package/src/components/input/text_input/message.jsx +12 -0
- package/src/components/input/toggle/Toggle.docs.mdx +23 -0
- package/src/components/input/toggle/Toggle.jsx +25 -0
- package/src/components/input/toggle/Toggle.module.scss +73 -0
- package/src/components/input/toggle/Toggle.stories.jsx +42 -0
- package/src/components/input/toggle/Toggle.test.jsx +39 -0
- package/src/components/input/toggle/index.js +1 -0
- package/src/components/input/toggle_position/TogglePosition.docs.mdx +20 -0
- package/src/components/input/toggle_position/TogglePosition.jsx +55 -0
- package/src/components/input/toggle_position/TogglePosition.module.scss +46 -0
- package/src/components/input/toggle_position/TogglePosition.stories.jsx +96 -0
- package/src/components/input/toggle_position/TogglePosition.test.jsx +66 -0
- package/src/components/input/toggle_position/index.js +1 -0
- package/src/components/intl/intl_provider/IntlContext.jsx +3 -0
- package/src/components/intl/intl_provider/IntlProvider.docs.mdx +37 -0
- package/src/components/intl/intl_provider/IntlProvider.jsx +92 -0
- package/src/components/intl/intl_provider/IntlProvider.test.jsx +153 -0
- package/src/components/intl/intl_provider/index.js +3 -0
- package/src/components/intl/intl_provider/locales/en.json +4 -0
- package/src/components/intl/intl_provider/locales/es.json +4 -0
- package/src/components/intl/intl_provider/locales/fr.json +6 -0
- package/src/components/intl/intl_provider/locales/index.js +11 -0
- package/src/components/intl/intl_provider/useLocale.jsx +8 -0
- package/src/components/list/list_provider/ListProvider.docs.mdx +51 -0
- package/src/components/list/list_provider/ListProvider.jsx +32 -0
- package/src/components/list/list_provider/ListProvider.stories.jsx +92 -0
- package/src/components/list/list_provider/ListProvider.test.jsx +137 -0
- package/src/components/list/list_provider/index.js +2 -0
- package/src/components/list/list_provider/useList.jsx +8 -0
- package/src/components/list/paginated_list/PaginatedList.docs.mdx +68 -0
- package/src/components/list/paginated_list/PaginatedList.jsx +397 -0
- package/src/components/list/paginated_list/PaginatedList.module.scss +88 -0
- package/src/components/list/paginated_list/PaginatedList.stories.jsx +301 -0
- package/src/components/list/paginated_list/PaginatedList.test.jsx +1335 -0
- package/src/components/list/paginated_list/VotePaginatedList.jsx +26 -0
- package/src/components/list/paginated_list/VotePaginatedList.test.jsx +1518 -0
- package/src/components/list/paginated_list/action_bar/ActionBar.jsx +132 -0
- package/src/components/list/paginated_list/action_bar/ActionBar.module.scss +81 -0
- package/src/components/list/paginated_list/index.js +3 -0
- package/src/components/list/pagination/Pagination.docs.mdx +32 -0
- package/src/components/list/pagination/Pagination.jsx +58 -0
- package/src/components/list/pagination/Pagination.module.scss +10 -0
- package/src/components/list/pagination/Pagination.stories.jsx +44 -0
- package/src/components/list/pagination/Pagination.test.jsx +80 -0
- package/src/components/list/pagination/index.js +1 -0
- package/src/components/modal/side_modal/SideModal.docs.mdx +31 -0
- package/src/components/modal/side_modal/SideModal.jsx +85 -0
- package/src/components/modal/side_modal/SideModal.module.scss +83 -0
- package/src/components/modal/side_modal/SideModal.stories.jsx +112 -0
- package/src/components/modal/side_modal/SideModal.test.jsx +36 -0
- package/src/components/modal/side_modal/index.js +1 -0
- package/src/components/navbar/navbar_button/NavbarButton.docs.mdx +37 -0
- package/src/components/navbar/navbar_button/NavbarButton.jsx +43 -0
- package/src/components/navbar/navbar_button/NavbarButton.module.scss +45 -0
- package/src/components/navbar/navbar_button/NavbarButton.stories.jsx +93 -0
- package/src/components/navbar/navbar_button/NavbarButton.test.jsx +67 -0
- package/src/components/navbar/navbar_button/index.js +1 -0
- package/src/components/navbar/navbar_modal/NavbarModal.docs.mdx +24 -0
- package/src/components/navbar/navbar_modal/NavbarModal.jsx +175 -0
- package/src/components/navbar/navbar_modal/NavbarModal.module.scss +132 -0
- package/src/components/navbar/navbar_modal/NavbarModal.stories.jsx +96 -0
- package/src/components/navbar/navbar_modal/NavbarModal.test.jsx +155 -0
- package/src/components/navbar/navbar_modal/index.js +1 -0
- package/src/components/notification/notification_item/NotificationItem.docs.mdx +35 -0
- package/src/components/notification/notification_item/NotificationItem.jsx +71 -0
- package/src/components/notification/notification_item/NotificationItem.module.scss +56 -0
- package/src/components/notification/notification_item/NotificationItem.stories.jsx +121 -0
- package/src/components/notification/notification_item/NotificationItem.test.jsx +97 -0
- package/src/components/notification/notification_item/index.js +1 -0
- package/src/components/notification/notification_menu/NotificationMenu.docs.mdx +25 -0
- package/src/components/notification/notification_menu/NotificationMenu.jsx +61 -0
- package/src/components/notification/notification_menu/NotificationMenu.module.scss +49 -0
- package/src/components/notification/notification_menu/NotificationMenu.stories.jsx +94 -0
- package/src/components/notification/notification_menu/NotificationMenu.test.jsx +131 -0
- package/src/components/notification/notification_menu/index.js +1 -0
- package/src/components/progress/loader/Loader.docs.mdx +13 -0
- package/src/components/progress/loader/Loader.jsx +9 -0
- package/src/components/progress/loader/Loader.module.scss +26 -0
- package/src/components/progress/loader/Loader.stories.jsx +11 -0
- package/src/components/progress/loader/Loader.test.jsx +11 -0
- package/src/components/progress/loader/index.js +3 -0
- package/src/components/progress/progress_bar/ProgressBar.docs.mdx +29 -0
- package/src/components/progress/progress_bar/ProgressBar.jsx +75 -0
- package/src/components/progress/progress_bar/ProgressBar.module.scss +87 -0
- package/src/components/progress/progress_bar/ProgressBar.stories.jsx +43 -0
- package/src/components/progress/progress_bar/ProgressBar.test.jsx +126 -0
- package/src/components/progress/progress_bar/index.js +1 -0
- package/src/components/proposal/proposal_box/ProposalBox.docs.mdx +39 -0
- package/src/components/proposal/proposal_box/ProposalBox.jsx +108 -0
- package/src/components/proposal/proposal_box/ProposalBox.module.scss +80 -0
- package/src/components/proposal/proposal_box/ProposalBox.stories.jsx +161 -0
- package/src/components/proposal/proposal_box/ProposalBox.test.jsx +137 -0
- package/src/components/proposal/proposal_box/index.js +1 -0
- package/src/components/report/report_box/ReportBox.docs.mdx +35 -0
- package/src/components/report/report_box/ReportBox.jsx +120 -0
- package/src/components/report/report_box/ReportBox.module.scss +54 -0
- package/src/components/report/report_box/ReportBox.stories.jsx +247 -0
- package/src/components/report/report_box/ReportBox.test.jsx +232 -0
- package/src/components/report/report_box/index.js +1 -0
- package/src/components/section/section_box/SectionBox.docs.mdx +19 -0
- package/src/components/section/section_box/SectionBox.jsx +32 -0
- package/src/components/section/section_box/SectionBox.module.scss +57 -0
- package/src/components/section/section_box/SectionBox.stories.jsx +39 -0
- package/src/components/section/section_box/SectionBox.test.jsx +44 -0
- package/src/components/section/section_box/index.js +1 -0
- package/src/components/share/share_box/ShareBox.docs.mdx +27 -0
- package/src/components/share/share_box/ShareBox.jsx +71 -0
- package/src/components/share/share_box/ShareBox.module.scss +38 -0
- package/src/components/share/share_box/ShareBox.stories.jsx +42 -0
- package/src/components/share/share_box/ShareBox.test.jsx +142 -0
- package/src/components/share/share_box/index.js +1 -0
- package/src/components/share/share_button/ShareButton.docs.mdx +26 -0
- package/src/components/share/share_button/ShareButton.jsx +102 -0
- package/src/components/share/share_button/ShareButton.module.scss +68 -0
- package/src/components/share/share_button/ShareButton.stories.jsx +51 -0
- package/src/components/share/share_button/ShareButton.test.jsx +117 -0
- package/src/components/share/share_button/index.js +1 -0
- package/src/components/share/share_modal/ShareModal.docs.mdx +29 -0
- package/src/components/share/share_modal/ShareModal.jsx +49 -0
- package/src/components/share/share_modal/ShareModal.module.scss +21 -0
- package/src/components/share/share_modal/ShareModal.stories.jsx +48 -0
- package/src/components/share/share_modal/ShareModal.test.jsx +70 -0
- package/src/components/share/share_modal/index.js +1 -0
- package/src/components/skeleton/box_skeleton/BoxSkeleton.docs.mdx +14 -0
- package/src/components/skeleton/box_skeleton/BoxSkeleton.jsx +38 -0
- package/src/components/skeleton/box_skeleton/BoxSkeleton.stories.jsx +46 -0
- package/src/components/skeleton/box_skeleton/BoxSkeleton.test.jsx +39 -0
- package/src/components/skeleton/box_skeleton/index.js +1 -0
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.docs.mdx +15 -0
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.jsx +56 -0
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss +78 -0
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.stories.jsx +44 -0
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.test.jsx +55 -0
- package/src/components/skeleton/user_content_skeleton/index.js +1 -0
- package/src/components/source/context_source_box/ContextSourceBox.docs.mdx +27 -0
- package/src/components/source/context_source_box/ContextSourceBox.jsx +38 -0
- package/src/components/source/context_source_box/ContextSourceBox.module.scss +50 -0
- package/src/components/source/context_source_box/ContextSourceBox.stories.jsx +36 -0
- package/src/components/source/context_source_box/ContextSourceBox.test.jsx +46 -0
- package/src/components/source/context_source_box/index.js +1 -0
- package/src/components/source/context_source_list/ContextSourceList.docs.mdx +37 -0
- package/src/components/source/context_source_list/ContextSourceList.jsx +42 -0
- package/src/components/source/context_source_list/ContextSourceList.module.scss +38 -0
- package/src/components/source/context_source_list/ContextSourceList.stories.jsx +39 -0
- package/src/components/source/context_source_list/ContextSourceList.test.jsx +47 -0
- package/src/components/source/context_source_list/index.js +1 -0
- package/src/components/source/source_box/SourceBox.docs.mdx +23 -0
- package/src/components/source/source_box/SourceBox.jsx +43 -0
- package/src/components/source/source_box/SourceBox.module.scss +43 -0
- package/src/components/source/source_box/SourceBox.stories.jsx +26 -0
- package/src/components/source/source_box/SourceBox.test.jsx +30 -0
- package/src/components/source/source_box/index.js +1 -0
- package/src/components/source/source_list_item/SourceListItem.docs.mdx +23 -0
- package/src/components/source/source_list_item/SourceListItem.jsx +28 -0
- package/src/components/source/source_list_item/SourceListItem.module.scss +33 -0
- package/src/components/source/source_list_item/SourceListItem.stories.jsx +40 -0
- package/src/components/source/source_list_item/SourceListItem.test.jsx +41 -0
- package/src/components/source/source_list_item/index.js +1 -0
- package/src/components/source/source_modal/SourceModal.docs.mdx +29 -0
- package/src/components/source/source_modal/SourceModal.jsx +157 -0
- package/src/components/source/source_modal/SourceModal.module.scss +45 -0
- package/src/components/source/source_modal/SourceModal.stories.jsx +82 -0
- package/src/components/source/source_modal/SourceModal.test.jsx +180 -0
- package/src/components/source/source_modal/index.js +1 -0
- package/src/components/styles/display/_display.scss +127 -0
- package/src/components/styles/display/display.docs.mdx +8 -0
- package/src/components/styles/display/index.scss +1 -0
- package/src/components/styles/flex/_flex.scss +55 -0
- package/src/components/styles/flex/flex.docs.mdx +8 -0
- package/src/components/styles/flex/index.scss +1 -0
- package/src/components/styles/spacing/_spacing.scss +107 -0
- package/src/components/styles/spacing/index.scss +1 -0
- package/src/components/styles/spacing/spacing.docs.mdx +8 -0
- package/src/components/styles/tabs/_tabs.scss +159 -0
- package/src/components/styles/tabs/index.scss +1 -0
- package/src/components/styles/tabs/tabs.docs.mdx +8 -0
- package/src/components/styles/theme/_theme.scss +51 -0
- package/src/components/styles/theme/index.scss +1 -0
- package/src/components/styles/theme/theme.docs.mdx +89 -0
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.docs.mdx +35 -0
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.jsx +86 -0
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.module.scss +93 -0
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.stories.jsx +128 -0
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.test.jsx +237 -0
- package/src/components/suggestion/suggestion_banner/index.js +1 -0
- package/src/components/suggestion/suggestion_box/SuggestionBox.docs.mdx +39 -0
- package/src/components/suggestion/suggestion_box/SuggestionBox.jsx +112 -0
- package/src/components/suggestion/suggestion_box/SuggestionBox.module.scss +55 -0
- package/src/components/suggestion/suggestion_box/SuggestionBox.stories.jsx +147 -0
- package/src/components/suggestion/suggestion_box/SuggestionBox.test.jsx +184 -0
- package/src/components/suggestion/suggestion_box/index.js +1 -0
- package/src/components/suggestion/suggestion_input/SuggestionInput.docs.mdx +19 -0
- package/src/components/suggestion/suggestion_input/SuggestionInput.jsx +212 -0
- package/src/components/suggestion/suggestion_input/SuggestionInput.module.scss +50 -0
- package/src/components/suggestion/suggestion_input/SuggestionInput.stories.jsx +87 -0
- package/src/components/suggestion/suggestion_input/SuggestionInput.test.jsx +77 -0
- package/src/components/suggestion/suggestion_input/index.js +1 -0
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.docs.mdx +19 -0
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.jsx +40 -0
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss +67 -0
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.stories.jsx +57 -0
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.test.jsx +18 -0
- package/src/components/summary/argument_summary_box/index.js +1 -0
- package/src/components/summary/keyword_box/KeywordBox.docs.mdx +21 -0
- package/src/components/summary/keyword_box/KeywordBox.jsx +43 -0
- package/src/components/summary/keyword_box/KeywordBox.module.scss +54 -0
- package/src/components/summary/keyword_box/KeywordBox.stories.jsx +49 -0
- package/src/components/summary/keyword_box/KeywordBox.test.jsx +47 -0
- package/src/components/summary/keyword_box/index.js +1 -0
- package/src/components/summary/summary/Summary.docs.mdx +23 -0
- package/src/components/summary/summary/Summary.jsx +93 -0
- package/src/components/summary/summary/Summary.module.scss +26 -0
- package/src/components/summary/summary/Summary.stories.jsx +95 -0
- package/src/components/summary/summary/Summary.test.jsx +116 -0
- package/src/components/summary/summary/index.js +1 -0
- package/src/components/summary/summary_box/SummaryBox.docs.mdx +19 -0
- package/src/components/summary/summary_box/SummaryBox.jsx +39 -0
- package/src/components/summary/summary_box/SummaryBox.module.scss +56 -0
- package/src/components/summary/summary_box/SummaryBox.stories.jsx +83 -0
- package/src/components/summary/summary_box/SummaryBox.test.jsx +47 -0
- package/src/components/summary/summary_box/SummaryBoxComposition.module.scss +3 -0
- package/src/components/summary/summary_box/index.js +1 -0
- package/src/components/tag/tag/Tag.docs.mdx +19 -0
- package/src/components/tag/tag/Tag.jsx +35 -0
- package/src/components/tag/tag/Tag.module.scss +34 -0
- package/src/components/tag/tag/Tag.stories.jsx +70 -0
- package/src/components/tag/tag/Tag.test.jsx +29 -0
- package/src/components/tag/tag/index.js +1 -0
- package/src/components/text/expandable_text/ArrowIcon.jsx +7 -0
- package/src/components/text/expandable_text/ExpandableText.docs.mdx +42 -0
- package/src/components/text/expandable_text/ExpandableText.jsx +81 -0
- package/src/components/text/expandable_text/ExpandableText.module.scss +76 -0
- package/src/components/text/expandable_text/ExpandableText.stories.jsx +63 -0
- package/src/components/text/expandable_text/ExpandableText.test.jsx +23 -0
- package/src/components/text/expandable_text/index.js +1 -0
- package/src/components/text/read_more/ReadMore.docs.mdx +23 -0
- package/src/components/text/read_more/ReadMore.jsx +104 -0
- package/src/components/text/read_more/ReadMore.module.scss +51 -0
- package/src/components/text/read_more/ReadMore.stories.jsx +141 -0
- package/src/components/text/read_more/ReadMore.test.jsx +87 -0
- package/src/components/text/read_more/index.js +1 -0
- package/src/components/tools/hash_scroll/HashScroll.docs.mdx +27 -0
- package/src/components/tools/hash_scroll/HashScroll.jsx +36 -0
- package/src/components/tools/hash_scroll/HashScroll.test.jsx +66 -0
- package/src/components/tools/hash_scroll/index.js +1 -0
- package/src/components/tools/scroll_to_top/ScrollToTop.docs.mdx +28 -0
- package/src/components/tools/scroll_to_top/ScrollToTop.jsx +22 -0
- package/src/components/tools/scroll_to_top/ScrollToTop.stories.jsx +40 -0
- package/src/components/tools/scroll_to_top/ScrollToTop.test.jsx +36 -0
- package/src/components/tools/scroll_to_top/index.js +1 -0
- package/src/components/translation/translated_content/TranslatedContent.jsx +24 -0
- package/src/components/translation/translated_content/TranslatedContent.test.jsx +30 -0
- package/src/components/translation/translated_content/index.js +3 -0
- package/src/components/translation/translated_content/useTranslatedContent.docs.mdx +80 -0
- package/src/components/translation/translated_content/useTranslatedContent.jsx +57 -0
- package/src/components/translation/translated_content/useTranslatedContent.test.jsx +118 -0
- package/src/components/translation/translation_button/TranslationButton.docs.mdx +18 -0
- package/src/components/translation/translation_button/TranslationButton.jsx +46 -0
- package/src/components/translation/translation_button/TranslationButton.module.scss +10 -0
- package/src/components/translation/translation_button/TranslationButton.stories.jsx +30 -0
- package/src/components/translation/translation_button/TranslationButton.test.jsx +35 -0
- package/src/components/translation/translation_button/index.js +1 -0
- package/src/components/user/author_box/AuthorBox.docs.mdx +35 -0
- package/src/components/user/author_box/AuthorBox.jsx +128 -0
- package/src/components/user/author_box/AuthorBox.module.scss +110 -0
- package/src/components/user/author_box/AuthorBox.stories.jsx +193 -0
- package/src/components/user/author_box/AuthorBox.test.jsx +171 -0
- package/src/components/user/author_box/index.js +1 -0
- package/src/components/user/avatar/Avatar.docs.mdx +31 -0
- package/src/components/user/avatar/Avatar.jsx +63 -0
- package/src/components/user/avatar/Avatar.module.scss +30 -0
- package/src/components/user/avatar/Avatar.stories.jsx +79 -0
- package/src/components/user/avatar/Avatar.test.jsx +114 -0
- package/src/components/user/avatar/DefaultAvatar.jsx +13 -0
- package/src/components/user/avatar/index.js +1 -0
- package/src/components/user/avatar_selector/AvatarSelector.docs.mdx +25 -0
- package/src/components/user/avatar_selector/AvatarSelector.jsx +65 -0
- package/src/components/user/avatar_selector/AvatarSelector.module.scss +105 -0
- package/src/components/user/avatar_selector/AvatarSelector.stories.jsx +46 -0
- package/src/components/user/avatar_selector/AvatarSelector.test.jsx +98 -0
- package/src/components/user/avatar_selector/index.js +1 -0
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.docs.mdx +22 -0
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.jsx +254 -0
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss +176 -0
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.stories.jsx +113 -0
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.test.jsx +213 -0
- package/src/components/user/update_user_info_modal/index.js +2 -0
- package/src/components/user/update_user_info_modal/useUpdateUserInfo.jsx +40 -0
- package/src/components/user/user_box/UserBox.docs.mdx +21 -0
- package/src/components/user/user_box/UserBox.jsx +59 -0
- package/src/components/user/user_box/UserBox.module.scss +86 -0
- package/src/components/user/user_box/UserBox.stories.jsx +82 -0
- package/src/components/user/user_box/UserBox.test.jsx +95 -0
- package/src/components/user/user_box/index.js +1 -0
- package/src/components/user/user_box_small/UserBoxSmall.docs.mdx +20 -0
- package/src/components/user/user_box_small/UserBoxSmall.jsx +36 -0
- package/src/components/user/user_box_small/UserBoxSmall.module.scss +21 -0
- package/src/components/user/user_box_small/UserBoxSmall.stories.jsx +38 -0
- package/src/components/user/user_box_small/UserBoxSmall.test.jsx +49 -0
- package/src/components/user/user_box_small/index.js +1 -0
- package/src/components/user_content/content_footer/ContentFooter.docs.mdx +36 -0
- package/src/components/user_content/content_footer/ContentFooter.jsx +234 -0
- package/src/components/user_content/content_footer/ContentFooter.module.scss +79 -0
- package/src/components/user_content/content_footer/ContentFooter.stories.jsx +438 -0
- package/src/components/user_content/content_footer/ContentFooter.test.jsx +246 -0
- package/src/components/user_content/content_footer/index.js +1 -0
- package/src/components/user_content/content_header/ContentHeader.docs.mdx +27 -0
- package/src/components/user_content/content_header/ContentHeader.jsx +131 -0
- package/src/components/user_content/content_header/ContentHeader.module.scss +111 -0
- package/src/components/user_content/content_header/ContentHeader.stories.jsx +221 -0
- package/src/components/user_content/content_header/ContentHeader.test.jsx +98 -0
- package/src/components/user_content/content_header/index.js +1 -0
- package/src/components/user_content/summary_content_box/SummaryContentBox.docs.mdx +25 -0
- package/src/components/user_content/summary_content_box/SummaryContentBox.jsx +89 -0
- package/src/components/user_content/summary_content_box/SummaryContentBox.module.scss +65 -0
- package/src/components/user_content/summary_content_box/SummaryContentBox.stories.jsx +130 -0
- package/src/components/user_content/summary_content_box/SummaryContentBox.test.jsx +169 -0
- package/src/components/user_content/summary_content_box/index.js +1 -0
- package/src/components/user_content/use_delete_content/index.js +1 -0
- package/src/components/user_content/use_delete_content/useDeleteContent.docs.mdx +34 -0
- package/src/components/user_content/use_delete_content/useDeleteContent.jsx +55 -0
- package/src/components/user_content/use_delete_content/useDeleteContent.test.jsx +78 -0
- package/src/components/user_content/use_report_content/ReportModal.docs.mdx +54 -0
- package/src/components/user_content/use_report_content/ReportModal.jsx +187 -0
- package/src/components/user_content/use_report_content/ReportModal.module.scss +121 -0
- package/src/components/user_content/use_report_content/ReportModal.stories.jsx +61 -0
- package/src/components/user_content/use_report_content/ReportModal.test.jsx +51 -0
- package/src/components/user_content/use_report_content/index.js +2 -0
- package/src/components/user_content/use_report_content/useReportContent.docs.mdx +24 -0
- package/src/components/user_content/use_report_content/useReportContent.jsx +32 -0
- package/src/components/user_content/use_report_content/useReportContent.test.jsx +138 -0
- package/src/components/util/lang_emojis/index.js +1 -0
- package/src/components/util/lang_emojis/langEmojis.docs.mdx +10 -0
- package/src/components/util/lang_emojis/langEmojis.js +72 -0
- package/src/components/util/lang_emojis/langEmojis.test.jsx +63 -0
- package/src/components/util/location/Location.docs.mdx +18 -0
- package/src/components/util/location/Location.js +84 -0
- package/src/components/util/location/Location.test.jsx +24 -0
- package/src/components/util/location/index.js +1 -0
- package/src/components/util/unique_by/index.js +1 -0
- package/src/components/util/unique_by/uniqueBy.docs.mdx +24 -0
- package/src/components/util/unique_by/uniqueBy.js +9 -0
- package/src/components/util/unique_by/uniqueBy.test.jsx +29 -0
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.docs.mdx +24 -0
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx +87 -0
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss +17 -0
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.stories.jsx +97 -0
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.test.jsx +182 -0
- package/src/components/vote/suggestion_vote_box/index.js +1 -0
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.docs.mdx +24 -0
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.jsx +64 -0
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.module.scss +35 -0
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.stories.jsx +97 -0
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.test.jsx +173 -0
- package/src/components/vote/up_down_vote_box/index.js +1 -0
- package/src/components/vote/use_vote/index.js +1 -0
- package/src/components/vote/use_vote/useVote.docs.mdx +42 -0
- package/src/components/vote/use_vote/useVote.jsx +165 -0
- package/src/components/vote/use_vote/useVote.test.jsx +294 -0
- package/src/components/vote/vote_box/VoteBox.docs.mdx +45 -0
- package/src/components/vote/vote_box/VoteBox.jsx +420 -0
- package/src/components/vote/vote_box/VoteBox.module.scss +254 -0
- package/src/components/vote/vote_box/VoteBox.stories.jsx +319 -0
- package/src/components/vote/vote_box/VoteBox.test.jsx +256 -0
- package/src/components/vote/vote_box/index.js +1 -0
- package/src/components/vote/vote_button/VoteButton.docs.mdx +24 -0
- package/src/components/vote/vote_button/VoteButton.jsx +59 -0
- package/src/components/vote/vote_button/VoteButton.module.scss +35 -0
- package/src/components/vote/vote_button/VoteButton.stories.jsx +97 -0
- package/src/components/vote/vote_button/VoteButton.test.jsx +167 -0
- package/src/components/vote/vote_button/index.js +1 -0
- package/src/components/vote/vote_provider/VoteProvider.docs.mdx +68 -0
- package/src/components/vote/vote_provider/VoteProvider.jsx +63 -0
- package/src/components/vote/vote_provider/VoteProvider.stories.jsx +99 -0
- package/src/components/vote/vote_provider/VoteProvider.test.jsx +137 -0
- package/src/components/vote/vote_provider/index.js +2 -0
- package/src/index.js +127 -0
- package/vitest.config.mjs +52 -0
- package/vitest.setup.js +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Share = (props) => (
|
|
4
|
+
<svg
|
|
5
|
+
viewBox="0 0 16 16"
|
|
6
|
+
fill="black"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
{...props}
|
|
9
|
+
>
|
|
10
|
+
<path
|
|
11
|
+
d="M0 15.333v-4.666a6.089 6.089 0 0 1 1.714-4.241 5.775 5.775 0 0 1 4.13-1.76h3.137V3.61c0-.263.076-.521.218-.74.143-.22.346-.39.583-.491a1.267 1.267 0 0 1 1.415.289l3.819 3.919c.365.375.57.884.57 1.414 0 .53-.205 1.039-.57 1.414l-3.819 3.92a1.267 1.267 0 0 1-1.415.289c-.237-.102-.44-.273-.583-.492a1.359 1.359 0 0 1-.218-.74v-1.058H5.195a3.85 3.85 0 0 0-2.754 1.173 4.06 4.06 0 0 0-1.142 2.827.676.676 0 0 1-.19.472.641.641 0 0 1-.919 0 .676.676 0 0 1-.19-.472Zm10.28-10a.676.676 0 0 1-.191.472.64.64 0 0 1-.46.195H5.845a4.492 4.492 0 0 0-3.212 1.368 4.736 4.736 0 0 0-1.333 3.299v1.142a5.196 5.196 0 0 1 1.758-1.336A5.07 5.07 0 0 1 5.195 10H9.63a.64.64 0 0 1 .459.195c.122.125.19.295.19.472v1.724l3.818-3.92a.676.676 0 0 0 0-.942l-3.818-3.92v1.724Z"
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const SmallArrow = (props) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
{...props}
|
|
8
|
+
>
|
|
9
|
+
<path d="M6.414,9H17.586a1,1,0,0,1,.707,1.707l-5.586,5.586a1,1,0,0,1-1.414,0L5.707,10.707A1,1,0,0,1,6.414,9Z" />
|
|
10
|
+
</svg>
|
|
11
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Source = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="M22.2,2.163a4.992,4.992,0,0,0-4.1-1.081l-3.822.694A4,4,0,0,0,12,3.065,4,4,0,0,0,9.716,1.776L5.9,1.082A5,5,0,0,0,0,6V16.793a5,5,0,0,0,4.105,4.919l6.286,1.143a9,9,0,0,0,3.218,0L19.9,21.712A5,5,0,0,0,24,16.793V6A4.983,4.983,0,0,0,22.2,2.163ZM11,20.928c-.084-.012-.168-.026-.252-.041L4.463,19.745A3,3,0,0,1,2,16.793V6A3,3,0,0,1,5,3a3.081,3.081,0,0,1,.54.049l3.82.7A2,2,0,0,1,11,5.712Zm11-4.135a3,3,0,0,1-2.463,2.952l-6.285,1.142c-.084.015-.168.029-.252.041V5.712a2,2,0,0,1,1.642-1.968l3.821-.7A3,3,0,0,1,22,6Z"/>
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Suggestion = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>
|
|
5
|
+
<path fill="none" strokeLinecap="round" strokeLinejoin="round" d="M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Twitter = (props) => (
|
|
4
|
+
<svg viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
|
|
6
|
+
<path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
|
|
7
|
+
<path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
|
|
8
|
+
<path d="M29.1169 21.1716L47.3303 0H43.0143L27.1997 18.383L14.5685 0H0L19.1008 27.7983L0 50H4.31623L21.0169 30.5869L34.3563 50H48.9249L29.1169 21.1716ZM5.87143 3.2492H12.5009L43.0164 46.8986H36.3869L5.87143 3.2492Z" fill="black"/>
|
|
9
|
+
</svg>
|
|
10
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Underline = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/>
|
|
6
|
+
</svg>
|
|
7
|
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Upvote = (props) => (
|
|
4
|
+
<svg viewBox="0 0 27 25" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M24.7554 8.0429C24.2457 7.47999 23.6157 7.02861 22.9081 6.71931C22.2004 6.41002 21.4317 6.25003 20.654 6.25019H16.3177L16.683 4.12415C16.8122 3.37546 16.6563 2.60721 16.2437 1.9595C15.831 1.3118 15.1892 0.827807 14.4352 0.595806C13.6812 0.363805 12.8652 0.399253 12.1362 0.695685C11.4072 0.992116 10.8137 1.52978 10.464 2.21061L8.38333 6.25019H5.43525C3.99426 6.25184 2.61279 6.80111 1.59386 7.7775C0.574922 8.7539 0.00172608 10.0777 0 11.4585L0 16.6669C0.00172608 18.0477 0.574922 19.3715 1.59386 20.3479C2.61279 21.3243 3.99426 21.8735 5.43525 21.8752H19.893C21.2013 21.8701 22.4641 21.4151 23.4518 20.5931C24.4395 19.771 25.0865 18.6366 25.275 17.396L26.0414 12.1877C26.1493 11.4489 26.0903 10.6965 25.8685 9.98137C25.6466 9.26628 25.267 8.60521 24.7554 8.0429ZM2.1741 16.6669V11.4585C2.1741 10.6297 2.51769 9.83487 3.12927 9.24882C3.74086 8.66276 4.57034 8.33352 5.43525 8.33352H7.60935V19.7919H5.43525C4.57034 19.7919 3.74086 19.4626 3.12927 18.8766C2.51769 18.2905 2.1741 17.4957 2.1741 16.6669ZM23.8836 11.895L23.1161 17.1033C23.0039 17.8471 22.6169 18.5275 22.0254 19.0209C21.4339 19.5143 20.6772 19.7879 19.893 19.7919H9.78346V8.05644C9.8859 7.97092 9.97071 7.86774 10.0335 7.75227L12.413 3.13248C12.5023 2.97824 12.6284 2.84649 12.7811 2.74807C12.9338 2.64964 13.1088 2.58734 13.2915 2.56629C13.4742 2.54524 13.6595 2.56605 13.8322 2.62699C14.0049 2.68793 14.1601 2.78728 14.2849 2.91686C14.3917 3.03586 14.4698 3.17599 14.5136 3.32724C14.5574 3.47849 14.5658 3.63713 14.5382 3.79186L13.9643 7.12519C13.9391 7.27413 13.9479 7.42653 13.9903 7.57186C14.0326 7.71719 14.1073 7.85197 14.2094 7.96689C14.3114 8.0818 14.4383 8.1741 14.5812 8.23741C14.7241 8.30071 14.8797 8.33351 15.0372 8.33352H20.654C21.1207 8.33346 21.5821 8.42943 22.0069 8.61493C22.4316 8.80043 22.8098 9.07114 23.116 9.40877C23.4222 9.7464 23.6492 10.1431 23.7816 10.572C23.914 11.0009 23.9488 11.4521 23.8836 11.895Z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const User = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path d="M7.5,13A4.5,4.5,0,1,1,12,8.5,4.505,4.505,0,0,1,7.5,13Zm0-7A2.5,2.5,0,1,0,10,8.5,2.5,2.5,0,0,0,7.5,6ZM15,23v-.5a7.5,7.5,0,0,0-15,0V23a1,1,0,0,0,2,0v-.5a5.5,5.5,0,0,1,11,0V23a1,1,0,0,0,2,0Zm9-5a7,7,0,0,0-11.667-5.217,1,1,0,1,0,1.334,1.49A5,5,0,0,1,22,18a1,1,0,0,0,2,0ZM17.5,9A4.5,4.5,0,1,1,22,4.5,4.505,4.505,0,0,1,17.5,9Zm0-7A2.5,2.5,0,1,0,20,4.5,2.5,2.5,0,0,0,17.5,2Z"/>
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Versus = (props) => (
|
|
4
|
+
<svg viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
d="M14.8686 11L11.8386 18H10.2386L7.21859 11H8.96859L11.0986 16L13.2586 11H14.8686ZM17.753 18.12C17.1997 18.12 16.663 18.0467 16.143 17.9C15.6297 17.7467 15.2164 17.55 14.903 17.31L15.453 16.09C15.753 16.31 16.1097 16.4867 16.523 16.62C16.9364 16.7533 17.3497 16.82 17.763 16.82C18.223 16.82 18.563 16.7533 18.783 16.62C19.003 16.48 19.113 16.2967 19.113 16.07C19.113 15.9033 19.0464 15.7667 18.913 15.66C18.7864 15.5467 18.6197 15.4567 18.413 15.39C18.213 15.3233 17.9397 15.25 17.593 15.17C17.0597 15.0433 16.623 14.9167 16.283 14.79C15.943 14.6633 15.6497 14.46 15.403 14.18C15.163 13.9 15.043 13.5267 15.043 13.06C15.043 12.6533 15.153 12.2867 15.373 11.96C15.593 11.6267 15.923 11.3633 16.363 11.17C16.8097 10.9767 17.353 10.88 17.993 10.88C18.4397 10.88 18.8764 10.9333 19.303 11.04C19.7297 11.1467 20.103 11.3 20.423 11.5L19.923 12.73C19.2764 12.3633 18.6297 12.18 17.983 12.18C17.5297 12.18 17.193 12.2533 16.973 12.4C16.7597 12.5467 16.653 12.74 16.653 12.98C16.653 13.22 16.7764 13.4 17.023 13.52C17.2764 13.6333 17.6597 13.7467 18.173 13.86C18.7064 13.9867 19.143 14.1133 19.483 14.24C19.823 14.3667 20.113 14.5667 20.353 14.84C20.5997 15.1133 20.723 15.4833 20.723 15.95C20.723 16.35 20.6097 16.7167 20.383 17.05C20.163 17.3767 19.8297 17.6367 19.383 17.83C18.9364 18.0233 18.393 18.12 17.753 18.12Z"
|
|
7
|
+
fill="#FFF"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
10
|
+
|
|
11
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Votebox = (props) => (
|
|
4
|
+
<svg viewBox="0 0 20 24" fill="black" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M12.353.956c-.221.062-.443.2-.615.38A836.4 836.4 0 0 0 7.03 6.93c-.424.527-.498 1.273-.187 1.908.047.096.267.39.489.653.222.262.403.487.403.497 0 .011-1.122.025-2.494.03l-2.493.01-.175.093c-.328.174-.585.492-.73.901-.062.173-.072.309-.084 1.193-.019 1.355.044 1.641.466 2.097l.188.203.01 4.196c.009 4.192.01 4.197.084 4.392.114.296.18.41.34.583.183.2.348.305.589.375.17.049.891.054 6.978.046l6.789-.009.202-.1c.249-.122.519-.391.639-.636.198-.404.19-.215.191-4.702v-4.143l.185-.185c.203-.203.346-.462.427-.774.065-.25.076-2.068.014-2.365-.095-.455-.371-.847-.737-1.046l-.221-.119-2.438-.018-2.438-.017 1.488-1.768a99.013 99.013 0 0 0 1.575-1.898c.324-.482.365-1.205.098-1.75-.094-.192-2.518-3.118-2.774-3.348-.282-.254-.726-.368-1.061-.273m1.555 3.046 1.141 1.36-.078.098c-.043.054-.921 1.1-1.951 2.324l-1.872 2.226H9.636l-.815-.969c-.449-.534-.818-.987-.82-1.008-.002-.022 1.036-1.277 2.307-2.791l2.31-2.751.074.076c.042.041.589.687 1.216 1.435m3.662 8.353v.77H3.08v-1.54h14.49v.77m-.665 6.265v3.92H3.745V14.7h13.16v3.92m-8.823-1.809a.683.683 0 0 0-.259.251c-.095.153-.105.199-.105.453 0 .196.018.315.058.388.06.109 1.713 2.09 1.966 2.357.08.084.196.175.258.201.175.076.46.061.615-.03.16-.095 2.07-2.357 2.165-2.563.21-.461-.071-1.067-.522-1.127-.29-.039-.375.033-1.214 1.033-.594.708-.778.906-.808.872-.022-.024-.368-.436-.77-.915-.762-.909-.862-.998-1.122-1a.705.705 0 0 0-.262.08"/>
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export { Alarm } from "./Alarm"
|
|
2
|
+
export { Announcement } from "./Announcement"
|
|
3
|
+
export { Arrow } from "./Arrow"
|
|
4
|
+
export { Blockquote } from "./Blockquote"
|
|
5
|
+
export { Bold } from "./Bold"
|
|
6
|
+
export { Camera } from "./Camera"
|
|
7
|
+
export { Chat } from "./Chat"
|
|
8
|
+
export { Checkbox } from "./Checkbox"
|
|
9
|
+
export { Check } from "./Check"
|
|
10
|
+
export { Clap } from "./Clap"
|
|
11
|
+
export { Clock } from "./Clock"
|
|
12
|
+
export { Close } from "./Close"
|
|
13
|
+
export { Code } from "./Code"
|
|
14
|
+
export { Community } from "./Community"
|
|
15
|
+
export { Crown } from "./Crown"
|
|
16
|
+
export { Document } from "./Document"
|
|
17
|
+
export { Downvote } from "./Downvote"
|
|
18
|
+
export { Ellipsis } from "./Ellipsis"
|
|
19
|
+
export { ExpertBadge } from "./ExpertBadge"
|
|
20
|
+
export { Facebook } from "./Facebook"
|
|
21
|
+
export { Home } from "./Home"
|
|
22
|
+
export { Italic } from "./Italic"
|
|
23
|
+
export { LightArrow } from "./LightArrow"
|
|
24
|
+
export { Link } from "./Link"
|
|
25
|
+
export { Login } from "./Login"
|
|
26
|
+
export { Logora } from "./Logora"
|
|
27
|
+
export { Mail } from "./Mail"
|
|
28
|
+
export { MobileClose } from "./MobileClose"
|
|
29
|
+
export { MobileMenu } from "./MobileMenu"
|
|
30
|
+
export { Next } from "./Next"
|
|
31
|
+
export { OpenBlank } from "./OpenBlank"
|
|
32
|
+
export { OrderedList } from "./OrderedList"
|
|
33
|
+
export { Point } from "./Point"
|
|
34
|
+
export { Question } from "./Question"
|
|
35
|
+
export { Refresh } from "./Refresh"
|
|
36
|
+
export { Reply } from "./Reply"
|
|
37
|
+
export { Search } from "./Search"
|
|
38
|
+
export { Send } from "./Send"
|
|
39
|
+
export { Share } from "./Share"
|
|
40
|
+
export { SmallArrow } from "./SmallArrow"
|
|
41
|
+
export { Source } from "./Source"
|
|
42
|
+
export { Suggestion } from './Suggestion';
|
|
43
|
+
export { Twitter } from "./Twitter"
|
|
44
|
+
export { Underline } from "./Underline"
|
|
45
|
+
export { Upvote } from "./Upvote";
|
|
46
|
+
export { User } from "./User"
|
|
47
|
+
export { Votebox } from './Votebox';
|
|
48
|
+
export { Versus } from'./Versus';
|
|
49
|
+
export { CheckCircle } from './CheckCircle';
|
|
50
|
+
export { MinusCircle} from './MinusCircle';
|
|
51
|
+
export { Flag } from './Flag';
|
|
52
|
+
export { PauseCircle} from './PauseCircle'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Alarm = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Announcement = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Arrow = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Blockquote = (props) => (
|
|
4
|
+
<svg viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<g clipPath="url(#clip0_2638_46091)">
|
|
6
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M12.3453 5L0.448582 25.3442C0.154563 25.847 -0.000268377 26.419 3.49207e-07 27.0015L0.00708538 42.353C0.00792118 44.1639 1.47622 45.6315 3.28717 45.6315H18.1241C19.9356 45.6315 21.4041 44.163 21.4041 42.3515V28.196C21.4041 26.3845 19.9356 24.916 18.1241 24.916H14.8619L24.2174 7.38399L12.3453 5ZM3.28009 27L13.995 8.67679L19.2469 9.7314L11.968 23.3718C10.8021 25.5567 12.3854 28.196 14.8619 28.196H18.1241V42.3515H3.28717L3.28009 27ZM38.128 5L26.2312 25.3442C25.9372 25.847 25.7824 26.419 25.7826 27.0015L25.7897 42.353C25.7906 44.1639 27.2589 45.6315 29.0698 45.6315H43.9067C45.7182 45.6315 47.1868 44.163 47.1868 42.3515V28.196C47.1868 26.3845 45.7182 24.916 43.9067 24.916H40.6445L50 7.38399L38.128 5ZM29.0627 27L39.7776 8.67679L45.0295 9.7314L37.7507 23.3718C36.5848 25.5567 38.168 28.196 40.6445 28.196H43.9067V42.3515H29.0698L29.0627 27Z" fill="black"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_2638_46091">
|
|
10
|
+
<rect width="50" height="50" fill="white"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
14
|
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Bold = (props) => (
|
|
4
|
+
<svg viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M6 50V0H25.7223C30.4779 0 34.6633 1.20067 37.6975 3.8741C40.7891 6.59806 42.2681 10.4828 42.2681 14.9509C42.2681 18.4918 41.2416 21.7084 39.2331 24.1261C42.0547 26.6221 43.5983 30.2851 43.5983 34.5395C43.5983 39.2112 41.986 43.2345 38.683 46.0325C35.4551 48.7669 31.0032 50 25.9143 50H6ZM36.909 26.2531C35.9942 25.5003 34.9178 24.9049 33.6967 24.4871C34.8427 23.9746 35.8286 23.253 36.6342 22.3505C38.2523 20.5377 39.1431 17.9951 39.1431 14.9509C39.1431 7.43316 34.2526 3.125 25.7223 3.125H9.125V46.875H25.9143C35.1659 46.875 40.4733 42.3815 40.4733 34.5395C40.4733 31.0033 39.1967 28.1358 36.909 26.2531ZM23.123 34.9087H24.5113C25.4259 34.9087 25.7592 34.7534 25.8364 34.7074C25.8828 34.6283 26.0253 34.3089 26.0253 33.4542C26.0253 32.5995 25.8621 32.2765 25.8211 32.2174C25.7665 32.1788 25.4546 31.9997 24.5113 31.9997H23.123V34.9087ZM24.5113 38.0337C27.7209 38.0337 29.1503 36.6241 29.1503 33.4542C29.1503 30.3306 27.6746 28.8747 24.5113 28.8747H19.998V38.0337H24.5113ZM24.8535 15.2755C24.7387 15.2307 24.4423 15.1509 23.8164 15.1509H23.123V17.9341H23.7502C24.4299 17.9341 24.7389 17.8431 24.8505 17.7964C24.9011 17.6813 25.0128 17.3354 25.0128 16.5392C25.0128 15.7478 24.9045 15.3966 24.8535 15.2755ZM23.7502 21.0591C26.8209 21.0591 28.1378 19.7091 28.1378 16.5392C28.1378 13.3759 26.8474 12.0259 23.8164 12.0259H19.998V21.0591H23.7502Z" fill="black"/>
|
|
6
|
+
</svg>
|
|
7
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Camera = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M6.827 6.175A2.31 2.31 0 015.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 00-1.134-.175 2.31 2.31 0 01-1.64-1.055l-.822-1.316a2.192 2.192 0 00-1.736-1.039 48.774 48.774 0 00-5.232 0 2.192 2.192 0 00-1.736 1.039l-.821 1.316z" />
|
|
6
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M16.5 12.75a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0zM18.75 10.5h.008v.008h-.008V10.5z" />
|
|
7
|
+
</svg>
|
|
8
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Chat = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Check = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M4.5 12.75l6 6 9-13.5" />
|
|
6
|
+
</svg>
|
|
7
|
+
|
|
8
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const CheckCircle = (props) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
strokeWidth="2"
|
|
10
|
+
strokeLinecap="round"
|
|
11
|
+
strokeLinejoin="round"
|
|
12
|
+
{...props}
|
|
13
|
+
>
|
|
14
|
+
<circle cx="12" cy="12" r="10" />
|
|
15
|
+
<path d="M9 12l2 2 4-4" />
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Checkbox = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Clap = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Clock = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Close = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
6
|
+
</svg>
|
|
7
|
+
|
|
8
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Code = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Community = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Crown = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Downvote = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M7.5 15h2.25m8.024-9.75c.011.05.028.1.052.148.591 1.2.924 2.55.924 3.977a8.96 8.96 0 01-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398C20.613 14.547 19.833 15 19 15h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 00.303-.54m.023-8.25H16.48a4.5 4.5 0 01-1.423-.23l-3.114-1.04a4.5 4.5 0 00-1.423-.23H6.504c-.618 0-1.217.247-1.605.729A11.95 11.95 0 002.25 12c0 .434.023.863.068 1.285C2.427 14.306 3.346 15 4.372 15h3.126c.618 0 .991.724.725 1.282A7.471 7.471 0 007.5 19.5a2.25 2.25 0 002.25 2.25.75.75 0 00.75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 002.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384" />
|
|
6
|
+
</svg>
|
|
7
|
+
|
|
8
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Ellipsis = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const ExpertBadge = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Facebook = (props) => (
|
|
4
|
+
<svg viewBox="0 0 300 522" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M180 512H98.008c-13.695 0-24.836-11.14-24.836-24.836V302.227H25.336C11.64 302.227.5 291.082.5 277.39v-79.246c0-13.696 11.14-24.836 24.836-24.836h47.836v-39.684c0-39.348 12.355-72.824 35.726-96.805C132.375 12.73 165.184 0 203.778 0l62.53.102c13.672.023 24.794 11.164 24.794 24.835v73.579c0 13.695-11.137 24.836-24.829 24.836l-42.101.015c-12.84 0-16.11 2.574-16.809 3.363-1.152 1.31-2.523 5.008-2.523 15.223v31.352h58.27c4.386 0 8.636 1.082 12.288 3.12 7.88 4.403 12.778 12.727 12.778 21.723l-.031 79.247c0 13.687-11.141 24.828-24.836 24.828h-58.47v184.941C204.84 500.86 193.696 512 180 512zm-76.813-30.016h71.633V288.79c0-9.144 7.442-16.582 16.582-16.582h66.727l.027-68.883h-66.758c-9.14 0-16.578-7.437-16.578-16.582v-44.789c0-11.726 1.192-25.062 10.043-35.086 10.696-12.117 27.551-13.515 39.301-13.515l36.922-.016V30.109l-57.332-.093c-62.024 0-100.566 39.703-100.566 103.609v53.117c0 9.14-7.438 16.582-16.579 16.582H30.516v68.883h56.093c9.141 0 16.579 7.438 16.579 16.582zM266.25 30.117h.004zm0 0" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Flag = (props) => (
|
|
4
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M3.2 1C3.2 0.447 2.753 0 2.2 0S1.2 0.447 1.2 1V2.4 9.6 12.8 19.2c0 0.707 0.573 1.28 1.28 1.28s1.28-0.573 1.28-1.28v-5.12l2.57-0.644c1.644-0.412 3.384-0.22 4.902 0.536 1.768 0.884 3.82 0.992 5.668 0.296l1.388-0.52c0.5-0.188 0.832-0.664 0.832-1.196V4.332c0-0.92-0.968-1.52-1.792-1.108l-0.384 0.192c-1.852 0.928-4.032 0.928-5.884 0-1.404-0.704-3.016-0.88-4.54-0.5L3.2 1.92V1z"/>
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: An SVG library for icon components.
|
|
3
|
+
labels: ['icons']
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
### Component usage
|
|
7
|
+
```js
|
|
8
|
+
import { Votebox } from '@logora/debate.hero_icons';
|
|
9
|
+
```
|
|
10
|
+
```js
|
|
11
|
+
<Votebox width={30} height={30} />
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Properties
|
|
15
|
+
| **Name** | **Type** | **Required** | **Default** | **Description** |
|
|
16
|
+
| ----------- | ----------- | :-----------: | ----------- | ----------- |
|
|
17
|
+
| <font color='#4646c6'>height</font> | <font color="#397300">integer</font> | ✗ | - | <font color="grey">*icon height in pixels*</font> |
|
|
18
|
+
| <font color='#4646c6'>width</font> | <font color="#397300">integer</font> | ✗ | - | <font color="grey">*icon width in pixels*</font> |
|
|
19
|
+
| <font color='#4646c6'>className</font> | <font color="#397300">string</font> | ✗ | - | <font color="grey">*icon extra classname*</font> |
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Alarm } from "./Alarm"
|
|
3
|
+
import { Announcement } from "./Announcement"
|
|
4
|
+
import { Arrow } from "./Arrow"
|
|
5
|
+
import { Blockquote } from "./Blockquote"
|
|
6
|
+
import { Bold } from "./Bold"
|
|
7
|
+
import { Camera } from "./Camera"
|
|
8
|
+
import { Chat } from "./Chat"
|
|
9
|
+
import { Checkbox } from "./Checkbox"
|
|
10
|
+
import { Check } from "./Check"
|
|
11
|
+
import { Clap } from "./Clap"
|
|
12
|
+
import { Clock } from "./Clock"
|
|
13
|
+
import { Close } from "./Close"
|
|
14
|
+
import { Code } from "./Code"
|
|
15
|
+
import { Community } from "./Community"
|
|
16
|
+
import { Crown } from "./Crown"
|
|
17
|
+
import { Downvote } from "./Downvote"
|
|
18
|
+
import { Ellipsis } from "./Ellipsis"
|
|
19
|
+
import { ExpertBadge } from "./ExpertBadge"
|
|
20
|
+
import { Facebook } from "./Facebook"
|
|
21
|
+
import { Home } from "./Home"
|
|
22
|
+
import { Italic } from "./Italic"
|
|
23
|
+
import { LightArrow } from './LightArrow'
|
|
24
|
+
import { Link } from "./Link"
|
|
25
|
+
import { Login } from "./Login"
|
|
26
|
+
import { Logora } from "./Logora"
|
|
27
|
+
import { Mail } from "./Mail"
|
|
28
|
+
import { MobileClose } from "./MobileClose"
|
|
29
|
+
import { MobileMenu } from "./MobileMenu"
|
|
30
|
+
import { Next } from "./Next"
|
|
31
|
+
import { OpenBlank } from "./OpenBlank"
|
|
32
|
+
import { OrderedList } from "./OrderedList"
|
|
33
|
+
import { Point } from "./Point"
|
|
34
|
+
import { Question } from "./Question"
|
|
35
|
+
import { Refresh } from "./Refresh"
|
|
36
|
+
import { Reply } from "./Reply"
|
|
37
|
+
import { Search } from "./Search"
|
|
38
|
+
import { Send } from "./Send"
|
|
39
|
+
import { Share } from "./Share"
|
|
40
|
+
import { SmallArrow } from "./SmallArrow"
|
|
41
|
+
import { Source } from "./Source"
|
|
42
|
+
import { Suggestion } from './Suggestion';
|
|
43
|
+
import { Twitter } from "./Twitter"
|
|
44
|
+
import { Underline } from "./Underline"
|
|
45
|
+
import { Upvote } from "./Upvote";
|
|
46
|
+
import { User } from "./User"
|
|
47
|
+
import { Votebox } from './Votebox';
|
|
48
|
+
import { Versus } from './Versus';
|
|
49
|
+
import { CheckCircle } from './CheckCircle';
|
|
50
|
+
import { MinusCircle } from './MinusCircle';
|
|
51
|
+
import { Flag } from './Flag'
|
|
52
|
+
import { PauseCircle } from './PauseCircle';
|
|
53
|
+
|
|
54
|
+
const meta = {
|
|
55
|
+
title: 'Icons/Hero Icons',
|
|
56
|
+
component: () => null,
|
|
57
|
+
args: {},
|
|
58
|
+
argTypes: {},
|
|
59
|
+
render: () => <HeroIconsLibrary />
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default meta;
|
|
63
|
+
|
|
64
|
+
export const HeroIconsLibrary = () => {
|
|
65
|
+
return (
|
|
66
|
+
<div style={{ display: "flex", justifyContent: "center", flexWrap: "wrap" }}>
|
|
67
|
+
<Alarm width={50} height={50} data-testid={"alarm-icon"} style={{ margin: "15px" }} />
|
|
68
|
+
<Announcement width={50} height={50} data-testid={"announcement-icon"} style={{ margin: "15px" }} />
|
|
69
|
+
<Arrow width={50} height={50} data-testid={"arrow-icon"} style={{ margin: "15px" }} />
|
|
70
|
+
<Blockquote width={50} height={50} data-testid={"blockquote-icon"} style={{ margin: "15px" }} />
|
|
71
|
+
<Bold width={50} height={50} data-testid={"bold-icon"} style={{ margin: "15px" }} />
|
|
72
|
+
<Camera width={50} height={50} data-testid={"camera-icon"} style={{ margin: "15px" }} />
|
|
73
|
+
<Chat width={50} height={50} data-testid={"chat-icon"} style={{ margin: "15px" }} />
|
|
74
|
+
<Check width={50} height={50} data-testid={"checkbox-icon"} style={{ margin: "15px" }} />
|
|
75
|
+
<Checkbox width={50} height={50} data-testid={"checkbox-icon"} style={{ margin: "15px" }} />
|
|
76
|
+
<Clap width={50} height={50} data-testid={"clap-icon"} style={{ margin: "15px" }} />
|
|
77
|
+
<Clock width={50} height={50} data-testid={"clock-icon"} style={{ margin: "15px" }} />
|
|
78
|
+
<Close width={50} height={50} data-testid={"close-icon"} style={{ margin: "15px" }} />
|
|
79
|
+
<Code width={50} height={50} data-testid={"code-icon"} style={{ margin: "15px" }} />
|
|
80
|
+
<Community width={50} height={50} data-testid={"community-icon"} style={{ margin: "15px" }} />
|
|
81
|
+
<Crown width={50} height={50} data-testid={"crown-icon"} style={{ margin: "15px" }} />
|
|
82
|
+
<Downvote width={50} height={50} data-testid={"downvote-icon"} style={{ margin: "15px" }} />
|
|
83
|
+
<Ellipsis width={50} height={50} data-testid={"ellipsis-icon"} style={{ margin: "15px" }} />
|
|
84
|
+
<ExpertBadge width={50} height={50} data-testid={"expert-badge-icon"} style={{ margin: "15px" }} />
|
|
85
|
+
<Facebook width={50} height={50} data-testid={"facebook-icon"} style={{ margin: "15px" }} />
|
|
86
|
+
<Home width={50} height={50} data-testid={"home-icon"} style={{ margin: "15px" }} />
|
|
87
|
+
<Italic width={50} height={50} data-testid={"italic-icon"} style={{ margin: "15px" }} />
|
|
88
|
+
<LightArrow width={50} height={50} data-testid={"light-arrow-icon"} style={{ margin: "15px" }} />
|
|
89
|
+
<Link width={50} height={50} data-testid={"link-icon"} style={{ margin: "15px" }} />
|
|
90
|
+
<Login width={50} height={50} data-testid={"login-icon"} style={{ margin: "15px" }} />
|
|
91
|
+
<Logora width={50} height={50} data-testid={"logora-icon"} style={{ margin: "15px" }} />
|
|
92
|
+
<Mail width={50} height={50} data-testid={"mail-icon"} style={{ margin: "15px" }} />
|
|
93
|
+
<MobileClose width={50} height={50} data-testid={"mobile-close-icon"} style={{ margin: "15px" }} />
|
|
94
|
+
<MobileMenu width={50} height={50} data-testid={"mobile-menu-icon"} style={{ margin: "15px" }} />
|
|
95
|
+
<Next width={50} height={50} data-testid={"next-icon"} style={{ margin: "15px" }} />
|
|
96
|
+
<OpenBlank width={50} height={50} data-testid={"open-blank-icon"} style={{ margin: "15px" }} />
|
|
97
|
+
<OrderedList width={50} height={50} data-testid={"ordered-list-icon"} style={{ margin: "15px" }} />
|
|
98
|
+
<Point width={50} height={50} data-testid={"point-icon"} style={{ margin: "15px" }} />
|
|
99
|
+
<Question width={50} height={50} data-testid={"question-icon"} style={{ margin: "15px" }} />
|
|
100
|
+
<Refresh width={50} height={50} data-testid={"refresh-icon"} style={{ margin: "15px" }} />
|
|
101
|
+
<Reply width={50} height={50} data-testid={"reply-icon"} style={{ margin: "15px" }} />
|
|
102
|
+
<Search width={50} height={50} data-testid={"search-icon"} style={{ margin: "15px" }} />
|
|
103
|
+
<Send width={50} height={50} data-testid={"send-icon"} style={{ margin: "15px" }} />
|
|
104
|
+
<Share width={50} height={50} data-testid={"share-icon"} style={{ margin: "15px" }} />
|
|
105
|
+
<SmallArrow width={50} height={50} data-testid={"small-arrow-icon"} style={{ margin: "15px" }} />
|
|
106
|
+
<Source width={50} height={50} data-testid={"source-icon"} style={{ margin: "15px" }} />
|
|
107
|
+
<Suggestion width={50} height={50} data-testid={"suggestion-icon"} style={{ margin: "15px" }} />
|
|
108
|
+
<Twitter width={50} height={50} data-testid={"twitter-icon"} style={{ margin: "15px" }} />
|
|
109
|
+
<Underline width={50} height={50} data-testid={"underline-icon"} style={{ margin: "15px" }} />
|
|
110
|
+
<Upvote width={50} height={50} data-testid={"upvote-icon"} style={{ margin: "15px" }} />
|
|
111
|
+
<User width={50} height={50} data-testid={"user-icon"} style={{ margin: "15px" }} />
|
|
112
|
+
<Votebox width={50} height={50} data-testid={"vote-box-icon"} style={{ margin: "15px" }} />
|
|
113
|
+
<Versus width={50} height={50} data-testid={"versus-icon"} style={{ margin: "15px" }} />
|
|
114
|
+
<CheckCircle width={50} height={50} data-testid={"CheckCircle-icon"} style={{ margin: "15px" }} />
|
|
115
|
+
<MinusCircle width={50} height={50} data-testid={"MinusCircle-icon"} style={{ margin: "15px" }} />
|
|
116
|
+
<Flag width={50} height={50} data-testid={"flag-icon"} style={{ margin: "15px" }} />
|
|
117
|
+
<PauseCircle width={50} height={50} data-testid={"PauseCircle-icon"} style={{ margin: "15px" }} />
|
|
118
|
+
|
|
119
|
+
</div>
|
|
120
|
+
)
|
|
121
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HeroIconsLibrary } from "./HeroIcons.stories";
|
|
3
|
+
import { render, screen } from '@testing-library/react';
|
|
4
|
+
|
|
5
|
+
describe('Hero icons', () => {
|
|
6
|
+
it ('renders HeroIconsLibrary component', () => {
|
|
7
|
+
render(<HeroIconsLibrary />);
|
|
8
|
+
|
|
9
|
+
const versusIcon = screen.getByTestId("versus-icon");
|
|
10
|
+
expect(versusIcon).toBeTruthy();
|
|
11
|
+
|
|
12
|
+
const alarmIcon = screen.getByTestId("alarm-icon");
|
|
13
|
+
expect(alarmIcon).toBeTruthy();
|
|
14
|
+
})
|
|
15
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Home = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Italic = (props) => (
|
|
4
|
+
<svg viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M17.8547 0H44.8742V11.4395H36.8078L27.2811 38.58H33.0719V50H6V38.58H14.0758L23.6088 11.3955H17.8547V0ZM21.0942 3.23952V8.15601H28.1778L16.3727 41.8195H9.23952V46.7605H29.8324V41.8195H22.7107L34.5116 8.20002H41.6347V3.23952H21.0942Z" fill="black"/>
|
|
6
|
+
</svg>
|
|
7
|
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const LightArrow = (props) => (
|
|
4
|
+
<svg viewBox="0 0 50 25" fill="black" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
5
|
+
<path d="M2.449.112C1.543.343.729 1.028.303 1.917c-.235.488-.26.619-.261 1.333 0 .722.024.843.274 1.375.264.56.756 1.064 12.479 12.792L25 29.625l12.205-12.208C48.928 5.689 49.42 5.185 49.684 4.625c.25-.532.274-.653.274-1.375-.001-.714-.026-.845-.26-1.333C48.914.28 47.047-.418 45.386.305c-.477.208-1.173.884-10.448 10.145L25 20.373l-9.937-9.923C5.683 1.085 5.095.515 4.599.299 3.972.025 3.09-.051 2.449.112"/>
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
export const Link = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Login = (props) => (
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="black" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>
|
|
5
|
+
<path strokeLinecap="round" strokeLinejoin="round" fill="none" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75" />
|
|
6
|
+
</svg>
|
|
7
|
+
)
|