@nagiyu/ui 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Button/Button.js +97 -0
- package/dist/cjs/components/Button/Button.js.map +1 -0
- package/dist/cjs/components/Button/Button.module.css +238 -0
- package/dist/cjs/components/Button/index.js +9 -0
- package/dist/cjs/components/Button/index.js.map +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.js +93 -0
- package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.module.css +166 -0
- package/dist/cjs/components/Checkbox/index.js +9 -0
- package/dist/cjs/components/Checkbox/index.js.map +1 -0
- package/dist/cjs/components/Chip/Chip.js +76 -0
- package/dist/cjs/components/Chip/Chip.js.map +1 -0
- package/dist/cjs/components/Chip/Chip.module.css +144 -0
- package/dist/cjs/components/Chip/index.js +9 -0
- package/dist/cjs/components/Chip/index.js.map +1 -0
- package/dist/cjs/components/Link/Link.js +66 -0
- package/dist/cjs/components/Link/Link.js.map +1 -0
- package/dist/cjs/components/Link/Link.module.css +100 -0
- package/dist/cjs/components/Link/index.js +9 -0
- package/dist/cjs/components/Link/index.js.map +1 -0
- package/dist/cjs/components/Select/Select.js +70 -0
- package/dist/cjs/components/Select/Select.js.map +1 -0
- package/dist/cjs/components/Select/Select.module.css +150 -0
- package/dist/cjs/components/Select/index.js +9 -0
- package/dist/cjs/components/Select/index.js.map +1 -0
- package/dist/cjs/components/TextField/TextField.js +92 -0
- package/dist/cjs/components/TextField/TextField.js.map +1 -0
- package/dist/cjs/components/TextField/TextField.module.css +139 -0
- package/dist/cjs/components/TextField/index.js +9 -0
- package/dist/cjs/components/TextField/index.js.map +1 -0
- package/dist/cjs/components/dialogs/ConfirmDialog.js +27 -0
- package/dist/cjs/components/dialogs/ConfirmDialog.js.map +1 -0
- package/dist/cjs/components/dialogs/LegalDialog.js +26 -0
- package/dist/cjs/components/dialogs/LegalDialog.js.map +1 -0
- package/dist/cjs/components/dialogs/PrivacyPolicyDialog.js +14 -0
- package/dist/cjs/components/dialogs/PrivacyPolicyDialog.js.map +1 -0
- package/dist/cjs/components/dialogs/TermsOfServiceDialog.js +14 -0
- package/dist/cjs/components/dialogs/TermsOfServiceDialog.js.map +1 -0
- package/dist/cjs/components/error/ErrorAlert.js +56 -0
- package/dist/cjs/components/error/ErrorAlert.js.map +1 -0
- package/dist/cjs/components/feedback/AccessDeniedView.js +74 -0
- package/dist/cjs/components/feedback/AccessDeniedView.js.map +1 -0
- package/dist/cjs/components/feedback/ErrorView.js +54 -0
- package/dist/cjs/components/feedback/ErrorView.js.map +1 -0
- package/dist/cjs/components/feedback/GlobalErrorView.js +26 -0
- package/dist/cjs/components/feedback/GlobalErrorView.js.map +1 -0
- package/dist/cjs/components/feedback/NotFoundView.js +48 -0
- package/dist/cjs/components/feedback/NotFoundView.js.map +1 -0
- package/dist/cjs/components/layout/AppLayout.js +16 -0
- package/dist/cjs/components/layout/AppLayout.js.map +1 -0
- package/dist/cjs/components/layout/Footer.js +55 -0
- package/dist/cjs/components/layout/Footer.js.map +1 -0
- package/dist/cjs/components/layout/Header.js +132 -0
- package/dist/cjs/components/layout/Header.js.map +1 -0
- package/dist/cjs/components/layout/ServiceLayout.js +16 -0
- package/dist/cjs/components/layout/ServiceLayout.js.map +1 -0
- package/dist/cjs/components/layout/SessionHeader.js +48 -0
- package/dist/cjs/components/layout/SessionHeader.js.map +1 -0
- package/dist/cjs/components/legal/CommercialTransactionsTable.js +46 -0
- package/dist/cjs/components/legal/CommercialTransactionsTable.js.map +1 -0
- package/dist/cjs/components/legal/LegalSections.js +18 -0
- package/dist/cjs/components/legal/LegalSections.js.map +1 -0
- package/dist/cjs/components/legal/index.js +11 -0
- package/dist/cjs/components/legal/index.js.map +1 -0
- package/dist/cjs/components/loading/LoadingState.js +28 -0
- package/dist/cjs/components/loading/LoadingState.js.map +1 -0
- package/dist/cjs/components/providers/AppThemeProvider.js +16 -0
- package/dist/cjs/components/providers/AppThemeProvider.js.map +1 -0
- package/dist/cjs/components/providers/SessionProviderWrapper.js +15 -0
- package/dist/cjs/components/providers/SessionProviderWrapper.js.map +1 -0
- package/dist/cjs/data/commercialTransactionsData.js +49 -0
- package/dist/cjs/data/commercialTransactionsData.js.map +1 -0
- package/dist/cjs/data/privacyPolicyData.js +250 -0
- package/dist/cjs/data/privacyPolicyData.js.map +1 -0
- package/dist/cjs/data/termsOfServiceData.js +230 -0
- package/dist/cjs/data/termsOfServiceData.js.map +1 -0
- package/dist/cjs/index.js +75 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/session-provider.js +15 -0
- package/dist/cjs/session-provider.js.map +1 -0
- package/dist/cjs/styles/theme.js +171 -0
- package/dist/cjs/styles/theme.js.map +1 -0
- package/dist/cjs/styles/tokens.js +154 -0
- package/dist/cjs/styles/tokens.js.map +1 -0
- package/dist/cjs/types/legal.js +8 -0
- package/dist/cjs/types/legal.js.map +1 -0
- package/dist/cjs/utils/auth.js +84 -0
- package/dist/cjs/utils/auth.js.map +1 -0
- package/dist/cjs/utils/navigation.js +57 -0
- package/dist/cjs/utils/navigation.js.map +1 -0
- package/dist/src/components/Button/Button.d.ts +82 -0
- package/dist/src/components/Button/Button.d.ts.map +1 -0
- package/dist/src/components/Button/Button.jsx +68 -0
- package/dist/src/components/Button/Button.jsx.map +1 -0
- package/dist/src/components/Button/Button.module.css +238 -0
- package/dist/src/components/Button/index.d.ts +3 -0
- package/dist/src/components/Button/index.d.ts.map +1 -0
- package/dist/src/components/Button/index.js +2 -0
- package/dist/src/components/Button/index.js.map +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +59 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/src/components/Checkbox/Checkbox.jsx +75 -0
- package/dist/src/components/Checkbox/Checkbox.jsx.map +1 -0
- package/dist/src/components/Checkbox/Checkbox.module.css +166 -0
- package/dist/src/components/Checkbox/index.d.ts +3 -0
- package/dist/src/components/Checkbox/index.d.ts.map +1 -0
- package/dist/src/components/Checkbox/index.js +2 -0
- package/dist/src/components/Checkbox/index.js.map +1 -0
- package/dist/src/components/Chip/Chip.d.ts +60 -0
- package/dist/src/components/Chip/Chip.d.ts.map +1 -0
- package/dist/src/components/Chip/Chip.jsx +39 -0
- package/dist/src/components/Chip/Chip.jsx.map +1 -0
- package/dist/src/components/Chip/Chip.module.css +144 -0
- package/dist/src/components/Chip/index.d.ts +3 -0
- package/dist/src/components/Chip/index.d.ts.map +1 -0
- package/dist/src/components/Chip/index.js +2 -0
- package/dist/src/components/Chip/index.js.map +1 -0
- package/dist/src/components/Link/Link.d.ts +52 -0
- package/dist/src/components/Link/Link.d.ts.map +1 -0
- package/dist/src/components/Link/Link.jsx +29 -0
- package/dist/src/components/Link/Link.jsx.map +1 -0
- package/dist/src/components/Link/Link.module.css +100 -0
- package/dist/src/components/Link/index.d.ts +3 -0
- package/dist/src/components/Link/index.d.ts.map +1 -0
- package/dist/src/components/Link/index.js +2 -0
- package/dist/src/components/Link/index.js.map +1 -0
- package/dist/src/components/Select/Select.d.ts +71 -0
- package/dist/src/components/Select/Select.d.ts.map +1 -0
- package/dist/src/components/Select/Select.jsx +55 -0
- package/dist/src/components/Select/Select.jsx.map +1 -0
- package/dist/src/components/Select/Select.module.css +150 -0
- package/dist/src/components/Select/index.d.ts +3 -0
- package/dist/src/components/Select/index.d.ts.map +1 -0
- package/dist/src/components/Select/index.js +2 -0
- package/dist/src/components/Select/index.js.map +1 -0
- package/dist/src/components/TextField/TextField.d.ts +96 -0
- package/dist/src/components/TextField/TextField.d.ts.map +1 -0
- package/dist/src/components/TextField/TextField.jsx +68 -0
- package/dist/src/components/TextField/TextField.jsx.map +1 -0
- package/dist/src/components/TextField/TextField.module.css +139 -0
- package/dist/src/components/TextField/index.d.ts +3 -0
- package/dist/src/components/TextField/index.d.ts.map +1 -0
- package/dist/src/components/TextField/index.js +2 -0
- package/dist/src/components/TextField/index.js.map +1 -0
- package/dist/src/components/dialogs/ConfirmDialog.d.ts +29 -0
- package/dist/src/components/dialogs/ConfirmDialog.d.ts.map +1 -0
- package/dist/src/components/dialogs/ConfirmDialog.jsx +34 -0
- package/dist/src/components/dialogs/ConfirmDialog.jsx.map +1 -0
- package/dist/src/components/dialogs/LegalDialog.d.ts +14 -0
- package/dist/src/components/dialogs/LegalDialog.d.ts.map +1 -0
- package/dist/src/components/dialogs/LegalDialog.jsx +34 -0
- package/dist/src/components/dialogs/LegalDialog.jsx.map +1 -0
- package/dist/src/components/dialogs/PrivacyPolicyDialog.d.ts +17 -0
- package/dist/src/components/dialogs/PrivacyPolicyDialog.d.ts.map +1 -0
- package/dist/src/components/dialogs/PrivacyPolicyDialog.jsx +7 -0
- package/dist/src/components/dialogs/PrivacyPolicyDialog.jsx.map +1 -0
- package/dist/src/components/dialogs/TermsOfServiceDialog.d.ts +17 -0
- package/dist/src/components/dialogs/TermsOfServiceDialog.d.ts.map +1 -0
- package/dist/src/components/dialogs/TermsOfServiceDialog.jsx +7 -0
- package/dist/src/components/dialogs/TermsOfServiceDialog.jsx.map +1 -0
- package/dist/src/components/error/ErrorAlert.d.ts +58 -0
- package/dist/src/components/error/ErrorAlert.d.ts.map +1 -0
- package/dist/src/components/error/ErrorAlert.jsx +68 -0
- package/dist/src/components/error/ErrorAlert.jsx.map +1 -0
- package/dist/src/components/feedback/AccessDeniedView.d.ts +59 -0
- package/dist/src/components/feedback/AccessDeniedView.d.ts.map +1 -0
- package/dist/src/components/feedback/AccessDeniedView.jsx +83 -0
- package/dist/src/components/feedback/AccessDeniedView.jsx.map +1 -0
- package/dist/src/components/feedback/ErrorView.d.ts +47 -0
- package/dist/src/components/feedback/ErrorView.d.ts.map +1 -0
- package/dist/src/components/feedback/ErrorView.jsx +63 -0
- package/dist/src/components/feedback/ErrorView.jsx.map +1 -0
- package/dist/src/components/feedback/GlobalErrorView.d.ts +18 -0
- package/dist/src/components/feedback/GlobalErrorView.d.ts.map +1 -0
- package/dist/src/components/feedback/GlobalErrorView.jsx +27 -0
- package/dist/src/components/feedback/GlobalErrorView.jsx.map +1 -0
- package/dist/src/components/feedback/NotFoundView.d.ts +37 -0
- package/dist/src/components/feedback/NotFoundView.d.ts.map +1 -0
- package/dist/src/components/feedback/NotFoundView.jsx +54 -0
- package/dist/src/components/feedback/NotFoundView.jsx.map +1 -0
- package/dist/src/components/layout/AppLayout.d.ts +8 -0
- package/dist/src/components/layout/AppLayout.d.ts.map +1 -0
- package/dist/src/components/layout/AppLayout.jsx +14 -0
- package/dist/src/components/layout/AppLayout.jsx.map +1 -0
- package/dist/src/components/layout/Footer.d.ts +66 -0
- package/dist/src/components/layout/Footer.d.ts.map +1 -0
- package/dist/src/components/layout/Footer.jsx +107 -0
- package/dist/src/components/layout/Footer.jsx.map +1 -0
- package/dist/src/components/layout/Header.d.ts +89 -0
- package/dist/src/components/layout/Header.d.ts.map +1 -0
- package/dist/src/components/layout/Header.jsx +227 -0
- package/dist/src/components/layout/Header.jsx.map +1 -0
- package/dist/src/components/layout/ServiceLayout.d.ts +20 -0
- package/dist/src/components/layout/ServiceLayout.d.ts.map +1 -0
- package/dist/src/components/layout/ServiceLayout.jsx +17 -0
- package/dist/src/components/layout/ServiceLayout.jsx.map +1 -0
- package/dist/src/components/layout/SessionHeader.d.ts +25 -0
- package/dist/src/components/layout/SessionHeader.d.ts.map +1 -0
- package/dist/src/components/layout/SessionHeader.jsx +46 -0
- package/dist/src/components/layout/SessionHeader.jsx.map +1 -0
- package/dist/src/components/legal/CommercialTransactionsTable.d.ts +13 -0
- package/dist/src/components/legal/CommercialTransactionsTable.d.ts.map +1 -0
- package/dist/src/components/legal/CommercialTransactionsTable.jsx +56 -0
- package/dist/src/components/legal/CommercialTransactionsTable.jsx.map +1 -0
- package/dist/src/components/legal/LegalSections.d.ts +13 -0
- package/dist/src/components/legal/LegalSections.d.ts.map +1 -0
- package/dist/src/components/legal/LegalSections.jsx +38 -0
- package/dist/src/components/legal/LegalSections.jsx.map +1 -0
- package/dist/src/components/legal/index.d.ts +5 -0
- package/dist/src/components/legal/index.d.ts.map +1 -0
- package/dist/src/components/legal/index.js +3 -0
- package/dist/src/components/legal/index.js.map +1 -0
- package/dist/src/components/loading/LoadingState.d.ts +41 -0
- package/dist/src/components/loading/LoadingState.d.ts.map +1 -0
- package/dist/src/components/loading/LoadingState.jsx +29 -0
- package/dist/src/components/loading/LoadingState.jsx.map +1 -0
- package/dist/src/components/providers/AppThemeProvider.d.ts +6 -0
- package/dist/src/components/providers/AppThemeProvider.d.ts.map +1 -0
- package/dist/src/components/providers/AppThemeProvider.jsx +14 -0
- package/dist/src/components/providers/AppThemeProvider.jsx.map +1 -0
- package/dist/src/components/providers/SessionProviderWrapper.d.ts +11 -0
- package/dist/src/components/providers/SessionProviderWrapper.d.ts.map +1 -0
- package/dist/src/components/providers/SessionProviderWrapper.jsx +11 -0
- package/dist/src/components/providers/SessionProviderWrapper.jsx.map +1 -0
- package/dist/src/data/commercialTransactionsData.d.ts +9 -0
- package/dist/src/data/commercialTransactionsData.d.ts.map +1 -0
- package/dist/src/data/commercialTransactionsData.js +46 -0
- package/dist/src/data/commercialTransactionsData.js.map +1 -0
- package/dist/src/data/privacyPolicyData.d.ts +7 -0
- package/dist/src/data/privacyPolicyData.d.ts.map +1 -0
- package/dist/src/data/privacyPolicyData.js +247 -0
- package/dist/src/data/privacyPolicyData.js.map +1 -0
- package/dist/src/data/termsOfServiceData.d.ts +7 -0
- package/dist/src/data/termsOfServiceData.d.ts.map +1 -0
- package/dist/src/data/termsOfServiceData.js +227 -0
- package/dist/src/data/termsOfServiceData.js.map +1 -0
- package/dist/src/index.d.ts +52 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +35 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/session-provider.d.ts +5 -0
- package/dist/src/session-provider.d.ts.map +1 -0
- package/dist/src/session-provider.js +7 -0
- package/dist/src/session-provider.js.map +1 -0
- package/dist/src/styles/base.css +14 -0
- package/dist/src/styles/theme.d.ts +22 -0
- package/dist/src/styles/theme.d.ts.map +1 -0
- package/dist/src/styles/theme.js +169 -0
- package/dist/src/styles/theme.js.map +1 -0
- package/dist/src/styles/tokens.css +361 -0
- package/dist/src/styles/tokens.d.ts +167 -0
- package/dist/src/styles/tokens.d.ts.map +1 -0
- package/dist/src/styles/tokens.js +151 -0
- package/dist/src/styles/tokens.js.map +1 -0
- package/dist/src/types/legal.d.ts +36 -0
- package/dist/src/types/legal.d.ts.map +1 -0
- package/dist/src/types/legal.js +7 -0
- package/dist/src/types/legal.js.map +1 -0
- package/dist/src/utils/auth.d.ts +53 -0
- package/dist/src/utils/auth.d.ts.map +1 -0
- package/dist/src/utils/auth.js +78 -0
- package/dist/src/utils/auth.js.map +1 -0
- package/dist/src/utils/navigation.d.ts +16 -0
- package/dist/src/utils/navigation.d.ts.map +1 -0
- package/dist/src/utils/navigation.js +54 -0
- package/dist/src/utils/navigation.js.map +1 -0
- package/package.json +69 -4
- package/README.md +0 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { useSession } from 'next-auth/react';
|
|
4
|
+
import { Button } from '@mui/material';
|
|
5
|
+
import Header from './Header';
|
|
6
|
+
import { buildSignInUrl, buildSignOutUrl } from '../../utils/auth';
|
|
7
|
+
/**
|
|
8
|
+
* next-auth のセッションから Header の user / roles / onLogout を組み立てるラッパー。
|
|
9
|
+
*
|
|
10
|
+
* サービスごとに重複していた「セッション → Header props の変換」と
|
|
11
|
+
* 「auth サービスのサインアウト URL への遷移」を一箇所に集約する。
|
|
12
|
+
* 未ログイン・読み込み中は user / onLogout を渡さないため、アカウントメニューは出ない。
|
|
13
|
+
*/
|
|
14
|
+
export default function SessionHeader({ authUrl, showSignIn = false, ...headerProps }) {
|
|
15
|
+
const { data: session, status } = useSession();
|
|
16
|
+
const sessionUser = session?.user;
|
|
17
|
+
// サインアウトは Cookie 発行元の auth サービスに集約しているため、
|
|
18
|
+
// 現在のオリジンを戻り先にして auth 側の signout へ遷移する。
|
|
19
|
+
const handleLogout = useCallback(() => {
|
|
20
|
+
window.location.assign(buildSignOutUrl(authUrl, window.location.origin));
|
|
21
|
+
}, [authUrl]);
|
|
22
|
+
// 現在の URL を戻り先にして auth 側のサインインへ遷移する。
|
|
23
|
+
const handleSignIn = useCallback(() => {
|
|
24
|
+
window.location.assign(buildSignInUrl(authUrl, window.location.href));
|
|
25
|
+
}, [authUrl]);
|
|
26
|
+
if (!sessionUser) {
|
|
27
|
+
// 読み込み中に出すと、ログイン済みの利用者に一瞬ログインボタンが見えてしまう。
|
|
28
|
+
if (!showSignIn || status !== 'unauthenticated') {
|
|
29
|
+
return <Header {...headerProps}/>;
|
|
30
|
+
}
|
|
31
|
+
return (<Header {...headerProps} actions={<>
|
|
32
|
+
{headerProps.actions}
|
|
33
|
+
<Button color="inherit" onClick={handleSignIn} sx={{ ml: 2 }}>
|
|
34
|
+
ログイン
|
|
35
|
+
</Button>
|
|
36
|
+
</>}/>);
|
|
37
|
+
}
|
|
38
|
+
// roles は next-auth の型拡張に依存せず、配列であることを実行時に確認して受け取る。
|
|
39
|
+
const roles = sessionUser.roles;
|
|
40
|
+
return (<Header {...headerProps} user={{
|
|
41
|
+
name: sessionUser.name ?? '',
|
|
42
|
+
email: sessionUser.email ?? undefined,
|
|
43
|
+
avatar: sessionUser.image ?? undefined,
|
|
44
|
+
}} roles={Array.isArray(roles) ? roles : undefined} onLogout={handleLogout}/>);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=SessionHeader.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionHeader.jsx","sourceRoot":"","sources":["../../../../src/components/layout/SessionHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAA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SAAS,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAC3D;;YACF,EAAE,MAAM,CACV;UAAA,GACF,CAAC,EACD,CACH,CAAC;IACJ,CAAC;IAED,oDAAoD;IACpD,MAAM,KAAK,GAAI,WAAmC,CAAC,KAAK,CAAC;IAEzD,OAAO,CACL,CAAC,MAAM,CACL,IAAI,WAAW,CAAC,CAChB,IAAI,CAAC,CAAC;YACJ,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,EAAE;YAC5B,KAAK,EAAE,WAAW,CAAC,KAAK,IAAI,SAAS;YACrC,MAAM,EAAE,WAAW,CAAC,KAAK,IAAI,SAAS;SACvC,CAAC,CACF,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAChD,QAAQ,CAAC,CAAC,YAAY,CAAC,EACvB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CommercialTransactionsTableProps {
|
|
2
|
+
/**
|
|
3
|
+
* 料金ページ (プランのページ) へのリンク先。
|
|
4
|
+
* 他のサービスから表示するとき絶対 URL を渡せるよう、部品の外から受け取る
|
|
5
|
+
*/
|
|
6
|
+
plansHref: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 特定商取引法に基づく表記を「項目名 / 内容」の表で描画する。
|
|
10
|
+
* 項目名を行見出し (th scope="row") にし、スクリーンリーダーが内容と対応づけて読めるようにする。
|
|
11
|
+
*/
|
|
12
|
+
export default function CommercialTransactionsTable({ plansHref, }: CommercialTransactionsTableProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=CommercialTransactionsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommercialTransactionsTable.d.ts","sourceRoot":"","sources":["../../../../src/components/legal/CommercialTransactionsTable.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAoBD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,SAAS,GACV,EAAE,gCAAgC,+BA4ClC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Table, TableBody, TableCell, TableContainer, TableRow } from '@mui/material';
|
|
3
|
+
import Link from '../Link';
|
|
4
|
+
import { commercialTransactionItems } from '../../data/commercialTransactionsData';
|
|
5
|
+
/** 項目の内容を、リンクの指定に従って描画する */
|
|
6
|
+
function renderValue(item, plansHref) {
|
|
7
|
+
if (item.linkKind === 'mailto') {
|
|
8
|
+
return <Link href={`mailto:${item.value}`}>{item.value}</Link>;
|
|
9
|
+
}
|
|
10
|
+
if (item.linkKind === 'plans' && item.linkText) {
|
|
11
|
+
const [before, ...rest] = item.value.split(item.linkText);
|
|
12
|
+
return (<>
|
|
13
|
+
{before}
|
|
14
|
+
<Link href={plansHref}>{item.linkText}</Link>
|
|
15
|
+
{rest.join(item.linkText)}
|
|
16
|
+
</>);
|
|
17
|
+
}
|
|
18
|
+
return item.value;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 特定商取引法に基づく表記を「項目名 / 内容」の表で描画する。
|
|
22
|
+
* 項目名を行見出し (th scope="row") にし、スクリーンリーダーが内容と対応づけて読めるようにする。
|
|
23
|
+
*/
|
|
24
|
+
export default function CommercialTransactionsTable({ plansHref, }) {
|
|
25
|
+
return (<TableContainer>
|
|
26
|
+
<Table>
|
|
27
|
+
<TableBody>
|
|
28
|
+
{commercialTransactionItems.map((item) => (<TableRow key={item.label} sx={{
|
|
29
|
+
// モバイル幅では項目名と内容を縦に積み、狭い画面で内容の列が潰れないようにする
|
|
30
|
+
display: { xs: 'block', sm: 'table-row' },
|
|
31
|
+
}}>
|
|
32
|
+
<TableCell component="th" scope="row" sx={{
|
|
33
|
+
display: { xs: 'block', sm: 'table-cell' },
|
|
34
|
+
width: { sm: '30%' },
|
|
35
|
+
fontWeight: 600,
|
|
36
|
+
// 内容が複数行になっても、項目名を内容の 1 行目に揃える
|
|
37
|
+
verticalAlign: 'top',
|
|
38
|
+
borderBottom: { xs: 'none', sm: undefined },
|
|
39
|
+
pb: { xs: 0, sm: undefined },
|
|
40
|
+
}}>
|
|
41
|
+
{item.label}
|
|
42
|
+
</TableCell>
|
|
43
|
+
<TableCell sx={{
|
|
44
|
+
display: { xs: 'block', sm: 'table-cell' },
|
|
45
|
+
verticalAlign: 'top',
|
|
46
|
+
// 長い本文や URL がはみ出さないよう折り返す
|
|
47
|
+
overflowWrap: 'anywhere',
|
|
48
|
+
}}>
|
|
49
|
+
{renderValue(item, plansHref)}
|
|
50
|
+
</TableCell>
|
|
51
|
+
</TableRow>))}
|
|
52
|
+
</TableBody>
|
|
53
|
+
</Table>
|
|
54
|
+
</TableContainer>);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=CommercialTransactionsTable.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommercialTransactionsTable.jsx","sourceRoot":"","sources":["../../../../src/components/legal/CommercialTransactionsTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAWnF,4BAA4B;AAC5B,SAAS,WAAW,CAAC,IAA+B,EAAE,SAAiB;IACrE,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,EAAE,CA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AE,GAAG;gBACf,+BAA+B;gBAC/B,aAAa,EAAE,KAAK;gBACpB,YAAY,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE;gBAC3C,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE;aAC7B,CAAC,CAEF;gBAAA,CAAC,IAAI,CAAC,KAAK,CACb;cAAA,EAAE,SAAS,CACX;cAAA,CAAC,SAAS,CACR,EAAE,CAAC,CAAC;gBACF,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE;gBAC1C,aAAa,EAAE,KAAK;gBACpB,0BAA0B;gBAC1B,YAAY,EAAE,UAAU;aACzB,CAAC,CAEF;gBAAA,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAC/B;cAAA,EAAE,SAAS,CACb;YAAA,EAAE,QAAQ,CAAC,CACZ,CAAC,CACJ;QAAA,EAAE,SAAS,CACb;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LegalSection } from '../../types/legal';
|
|
2
|
+
export interface LegalSectionsProps {
|
|
3
|
+
/**
|
|
4
|
+
* 描画する条文。条番号は配列の並び順から採番する
|
|
5
|
+
*/
|
|
6
|
+
sections: LegalSection[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 利用規約・プライバシーポリシーの条文を描画する。
|
|
10
|
+
* 規約とポリシーで見た目を揃えるため、ダイアログとページはこの部品を共有する。
|
|
11
|
+
*/
|
|
12
|
+
export default function LegalSections({ sections }: LegalSectionsProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LegalSections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegalSections.d.ts","sourceRoot":"","sources":["../../../../src/components/legal/LegalSections.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA6CrE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Typography, Box } from '@mui/material';
|
|
3
|
+
import Link from '../Link';
|
|
4
|
+
/**
|
|
5
|
+
* 利用規約・プライバシーポリシーの条文を描画する。
|
|
6
|
+
* 規約とポリシーで見た目を揃えるため、ダイアログとページはこの部品を共有する。
|
|
7
|
+
*/
|
|
8
|
+
export default function LegalSections({ sections }) {
|
|
9
|
+
return (<>
|
|
10
|
+
{sections.map((section, sectionIndex) => (<Box key={sectionIndex} sx={{ mb: 4 }}>
|
|
11
|
+
<Typography variant="h6" component="h2" gutterBottom sx={{ fontWeight: 600 }}>
|
|
12
|
+
第{sectionIndex + 1}条({section.title})
|
|
13
|
+
</Typography>
|
|
14
|
+
{section.contents.map((content, contentIndex) => (<Box key={contentIndex} sx={{ mb: 2 }}>
|
|
15
|
+
{/* 本文中の \n を改行として表示するため pre-wrap を当てる */}
|
|
16
|
+
<Typography variant="body1" sx={{ mb: 2, whiteSpace: 'pre-wrap' }}>
|
|
17
|
+
{content.mainContent}
|
|
18
|
+
</Typography>
|
|
19
|
+
{content.subContents && (<Box component="ol" sx={{ pl: 3, mt: 1 }}>
|
|
20
|
+
{content.subContents.map((subContent, subIndex) => (<Box component="li" key={subIndex} sx={{ mb: 1 }}>
|
|
21
|
+
<Typography variant="body2">{subContent.subContent}</Typography>
|
|
22
|
+
{subContent.subItems && (<Box component="ol" sx={{ pl: 2, mt: 0.5 }}>
|
|
23
|
+
{subContent.subItems.map((item, itemIndex) => (<Box component="li" key={itemIndex} sx={{ mb: 0.5 }}>
|
|
24
|
+
<Typography variant="body2">{item}</Typography>
|
|
25
|
+
</Box>))}
|
|
26
|
+
</Box>)}
|
|
27
|
+
</Box>))}
|
|
28
|
+
</Box>)}
|
|
29
|
+
{content.link && (<Typography variant="body2" sx={{ mt: 1 }}>
|
|
30
|
+
<Link href={content.link} target="_blank" rel="noopener noreferrer">
|
|
31
|
+
{content.link}
|
|
32
|
+
</Link>
|
|
33
|
+
</Typography>)}
|
|
34
|
+
</Box>))}
|
|
35
|
+
</Box>))}
|
|
36
|
+
</>);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=LegalSections.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegalSections.jsx","sourceRoot":"","sources":["../../../../src/components/legal/LegalSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,IAAI,MAAM,SAAS,CAAC;AAU3B;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAsB;IACpE,OAAO,CACL,EACE;MAAA,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CACvC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CACpC;UAAA,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAC3E;aAAC,CAAC,YAAY,GAAG,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;UACtC,EAAE,UAAU,CACZ;UAAA,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAA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AE,EAAE,EAAE,GAAG,EAAE,CAAC,CAClD;8BAAA,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,CAChD;4BAAA,EAAE,GAAG,CAAC,CACP,CAAC,CACJ;wBAAA,EAAE,GAAG,CAAC,CACP,CACH;oBAAA,EAAE,GAAG,CAAC,CACP,CAAC,CACJ;gBAAA,EAAE,GAAG,CAAC,CACP,CACD;cAAA,CAAC,OAAO,CAAC,IAAI,IAAI,CACf,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CACxC;kBAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,CACjE;oBAAA,CAAC,OAAO,CAAC,IAAI,CACf;kBAAA,EAAE,IAAI,CACR;gBAAA,EAAE,UAAU,CAAC,CACd,CACH;YAAA,EAAE,GAAG,CAAC,CACP,CAAC,CACJ;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CACJ;IAAA,GAAG,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './LegalSections';
|
|
2
|
+
export type { LegalSectionsProps } from './LegalSections';
|
|
3
|
+
export { default as CommercialTransactionsTable } from './CommercialTransactionsTable';
|
|
4
|
+
export type { CommercialTransactionsTableProps } from './CommercialTransactionsTable';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/legal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACvF,YAAY,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/legal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ローディング状態コンポーネントのプロパティ
|
|
3
|
+
*/
|
|
4
|
+
export interface LoadingStateProps {
|
|
5
|
+
/**
|
|
6
|
+
* ローディングメッセージ
|
|
7
|
+
*/
|
|
8
|
+
message?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 最小高さ(レスポンシブ対応)。page の既定は 400、inline の既定は指定なし
|
|
11
|
+
*/
|
|
12
|
+
minHeight?: number | string | {
|
|
13
|
+
xs?: number;
|
|
14
|
+
sm?: number;
|
|
15
|
+
md?: number;
|
|
16
|
+
lg?: number;
|
|
17
|
+
xl?: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* サイズ(CircularProgressのサイズ)
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
/**
|
|
24
|
+
* 表示形態。page は画面全体の読み込み、inline は一覧や表の中に置く読み込み
|
|
25
|
+
*/
|
|
26
|
+
variant?: 'page' | 'inline';
|
|
27
|
+
/**
|
|
28
|
+
* E2E テストなどから root 要素を特定するための ID
|
|
29
|
+
*/
|
|
30
|
+
'data-testid'?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ローディング状態コンポーネント
|
|
34
|
+
*
|
|
35
|
+
* 統一されたローディング表示を提供します。
|
|
36
|
+
* アクセシビリティ対応として、role="status"とaria-live="polite"を設定しています。
|
|
37
|
+
* 入れ子の live region は二重に読み上げられるため、内側の要素には aria-live を付けません。
|
|
38
|
+
* inline ではメッセージを表示せず、読み上げ用の aria-label にだけ使います。
|
|
39
|
+
*/
|
|
40
|
+
export default function LoadingState({ message, minHeight, size, variant, 'data-testid': dataTestId, }: LoadingStateProps): import("react").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=LoadingState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingState.d.ts","sourceRoot":"","sources":["../../../../src/components/loading/LoadingState.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClG;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAoB,EACpB,SAAS,EACT,IAAS,EACT,OAAgB,EAChB,aAAa,EAAE,UAAU,GAC1B,EAAE,iBAAiB,+BA4BnB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Box, CircularProgress, Typography } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* ローディング状態コンポーネント
|
|
5
|
+
*
|
|
6
|
+
* 統一されたローディング表示を提供します。
|
|
7
|
+
* アクセシビリティ対応として、role="status"とaria-live="polite"を設定しています。
|
|
8
|
+
* 入れ子の live region は二重に読み上げられるため、内側の要素には aria-live を付けません。
|
|
9
|
+
* inline ではメッセージを表示せず、読み上げ用の aria-label にだけ使います。
|
|
10
|
+
*/
|
|
11
|
+
export default function LoadingState({ message = '読み込み中...', minHeight, size = 40, variant = 'page', 'data-testid': dataTestId, }) {
|
|
12
|
+
const isInline = variant === 'inline';
|
|
13
|
+
// inline は高さを固定しないが、呼び出し側が明示した minHeight は尊重する
|
|
14
|
+
const resolvedMinHeight = minHeight ?? (isInline ? undefined : 400);
|
|
15
|
+
return (<Box sx={{
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'column',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
...(isInline ? { py: 4 } : {}),
|
|
21
|
+
...(resolvedMinHeight !== undefined ? { minHeight: resolvedMinHeight } : {}),
|
|
22
|
+
}} data-testid={dataTestId} role="status" aria-live="polite" aria-busy="true">
|
|
23
|
+
<CircularProgress size={size} aria-label={message}/>
|
|
24
|
+
{!isInline && message && (<Typography variant="body1" color="text.secondary" sx={{ mt: 2 }}>
|
|
25
|
+
{message}
|
|
26
|
+
</Typography>)}
|
|
27
|
+
</Box>);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=LoadingState.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingState.jsx","sourceRoot":"","sources":["../../../../src/components/loading/LoadingState.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA4BlE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAO,GAAG,UAAU,EACpB,SAAS,EACT,IAAI,GAAG,EAAE,EACT,OAAO,GAAG,MAAM,EAChB,aAAa,EAAE,UAAU,GACP;IAClB,MAAM,QAAQ,GAAG,OAAO,KAAK,QAAQ,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QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAS3E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
3
|
+
import { ThemeProvider } from '@mui/material/styles';
|
|
4
|
+
import { AppRouterCacheProvider } from '@mui/material-nextjs/v16-appRouter';
|
|
5
|
+
import theme from '../../styles/theme';
|
|
6
|
+
export default function AppThemeProvider({ children }) {
|
|
7
|
+
return (<AppRouterCacheProvider>
|
|
8
|
+
<ThemeProvider theme={theme}>
|
|
9
|
+
<CssBaseline />
|
|
10
|
+
{children}
|
|
11
|
+
</ThemeProvider>
|
|
12
|
+
</AppRouterCacheProvider>);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AppThemeProvider.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppThemeProvider.jsx","sourceRoot":"","sources":["../../../../src/components/providers/AppThemeProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAMvC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,QAAQ,EAAyB;IAC1E,OAAO,CACL,CAAC,sBAAsB,CACrB;MAAA,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAC1B;QAAA,CAAC,WAAW,CAAC,AAAD,EACZ;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,aAAa,CACjB;IAAA,EAAE,sBAAsB,CAAC,CAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SessionProviderWrapperProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* next-auth の SessionProvider をラップするクライアントコンポーネント。
|
|
7
|
+
* useSession(update 含む)を使うクライアントコンポーネントを包むために使う。
|
|
8
|
+
* server component の getServerSession を使うページには影響しない。
|
|
9
|
+
*/
|
|
10
|
+
export default function SessionProviderWrapper({ children }: SessionProviderWrapperProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SessionProviderWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionProviderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/providers/SessionProviderWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE,2BAA2B,+BAEvF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { SessionProvider } from 'next-auth/react';
|
|
3
|
+
/**
|
|
4
|
+
* next-auth の SessionProvider をラップするクライアントコンポーネント。
|
|
5
|
+
* useSession(update 含む)を使うクライアントコンポーネントを包むために使う。
|
|
6
|
+
* server component の getServerSession を使うページには影響しない。
|
|
7
|
+
*/
|
|
8
|
+
export default function SessionProviderWrapper({ children }) {
|
|
9
|
+
return <SessionProvider>{children}</SessionProvider>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=SessionProviderWrapper.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionProviderWrapper.jsx","sourceRoot":"","sources":["../../../../src/components/providers/SessionProviderWrapper.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMlD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAA+B;IACtF,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 特定商取引法に基づく表記の中身。
|
|
3
|
+
* 課金を受けるサービスで表記が食い違わないよう、共通のデータとして持つ。
|
|
4
|
+
*/
|
|
5
|
+
import type { CommercialTransactionItem } from '../types/legal';
|
|
6
|
+
/** 「プランのページ」へのリンクにする語。販売価格の本文に含まれる */
|
|
7
|
+
export declare const PLANS_LINK_TEXT = "\u30D7\u30E9\u30F3\u306E\u30DA\u30FC\u30B8";
|
|
8
|
+
export declare const commercialTransactionItems: CommercialTransactionItem[];
|
|
9
|
+
//# sourceMappingURL=commercialTransactionsData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commercialTransactionsData.d.ts","sourceRoot":"","sources":["../../../src/data/commercialTransactionsData.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhE,sCAAsC;AACtC,eAAO,MAAM,eAAe,+CAAY,CAAC;AAKzC,eAAO,MAAM,0BAA0B,EAAE,yBAAyB,EAsCjE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 特定商取引法に基づく表記の中身。
|
|
3
|
+
* 課金を受けるサービスで表記が食い違わないよう、共通のデータとして持つ。
|
|
4
|
+
*/
|
|
5
|
+
/** 「プランのページ」へのリンクにする語。販売価格の本文に含まれる */
|
|
6
|
+
export const PLANS_LINK_TEXT = 'プランのページ';
|
|
7
|
+
/** 開示を請求に応じて行う項目の本文 */
|
|
8
|
+
const DISCLOSE_ON_REQUEST = '請求があれば遅滞なく開示いたします。';
|
|
9
|
+
export const commercialTransactionItems = [
|
|
10
|
+
{ label: '販売事業者', value: DISCLOSE_ON_REQUEST },
|
|
11
|
+
{ label: '運営', value: 'なぎゆー' },
|
|
12
|
+
{ label: '運営責任者', value: DISCLOSE_ON_REQUEST },
|
|
13
|
+
{ label: '所在地', value: DISCLOSE_ON_REQUEST },
|
|
14
|
+
{ label: '電話番号', value: DISCLOSE_ON_REQUEST },
|
|
15
|
+
{ label: 'メールアドレス', value: 'otonagiyu@gmail.com', linkKind: 'mailto' },
|
|
16
|
+
{
|
|
17
|
+
label: '販売価格',
|
|
18
|
+
value: `各プランの価格 (税込) は、${PLANS_LINK_TEXT}に表示しています。`,
|
|
19
|
+
linkText: PLANS_LINK_TEXT,
|
|
20
|
+
linkKind: 'plans',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: '商品代金以外の必要料金',
|
|
24
|
+
value: 'インターネットの接続に必要な通信料は、お客様のご負担となります。',
|
|
25
|
+
},
|
|
26
|
+
{ label: '支払方法', value: 'クレジットカード (Apple Pay / Google Pay を含む)' },
|
|
27
|
+
{
|
|
28
|
+
label: '支払時期',
|
|
29
|
+
value: '申し込み時に初回分をお支払いいただき、以降は契約の更新日ごとに自動で請求します。',
|
|
30
|
+
},
|
|
31
|
+
{ label: '提供時期', value: 'お支払いの完了後、直ちにご利用いただけます。' },
|
|
32
|
+
{
|
|
33
|
+
label: '契約期間・自動更新',
|
|
34
|
+
value: '1 か月ごとの定期契約で、解約しない限り自動で更新されます。',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: '解約の方法',
|
|
38
|
+
value: 'プランのページの「契約を管理」から、いつでも解約できます。解約後も、支払い済みの期間の終わりまでご利用いただけます。次の更新日以降の請求は発生しません。',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: '返品・返金',
|
|
42
|
+
value: 'デジタルサービスの性質上、お支払い後の返金は原則としていたしません。期間の途中で解約した場合も、日割りでの返金はいたしません。ただし、当方の責による不具合で本サービスをご利用いただけなかった場合は、個別にご相談に応じます。',
|
|
43
|
+
},
|
|
44
|
+
{ label: '動作環境', value: '最新版の主要なブラウザ (Chrome / Safari / Edge / Firefox)' },
|
|
45
|
+
];
|
|
46
|
+
//# sourceMappingURL=commercialTransactionsData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commercialTransactionsData.js","sourceRoot":"","sources":["../../../src/data/commercialTransactionsData.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,sCAAsC;AACtC,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;AAEzC,uBAAuB;AACvB,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEjD,MAAM,CAAC,MAAM,0BAA0B,GAAgC;IACrE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC9C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;IAC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC9C,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC5C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC7C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,EAAE;IACtE;QACE,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,kBAAkB,eAAe,WAAW;QACnD,QAAQ,EAAE,eAAe;QACzB,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,kCAAkC;KAC1C;IACD,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,uCAAuC,EAAE;IACjE;QACE,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,0CAA0C;KAClD;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