ignite-parse-auth-kit 1.0.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.
Files changed (241) hide show
  1. package/CONTRIBUTING.md +0 -0
  2. package/LICENSE +21 -0
  3. package/README.md +492 -0
  4. package/app/app.tsx +116 -0
  5. package/app/components/AlertTongle.tsx +105 -0
  6. package/app/components/AutoImage.tsx +89 -0
  7. package/app/components/Button.tsx +248 -0
  8. package/app/components/Card.tsx +314 -0
  9. package/app/components/EmptyState.tsx +248 -0
  10. package/app/components/Header.tsx +332 -0
  11. package/app/components/Icon.tsx +140 -0
  12. package/app/components/ListItem.tsx +243 -0
  13. package/app/components/ListView.tsx +42 -0
  14. package/app/components/Screen.tsx +305 -0
  15. package/app/components/Text.test.tsx +23 -0
  16. package/app/components/Text.tsx +116 -0
  17. package/app/components/TextField.tsx +292 -0
  18. package/app/components/Toggle/Checkbox.tsx +123 -0
  19. package/app/components/Toggle/Radio.tsx +106 -0
  20. package/app/components/Toggle/Switch.tsx +264 -0
  21. package/app/components/Toggle/Toggle.tsx +285 -0
  22. package/app/components/index copy.ts +15 -0
  23. package/app/components/index.ts +18 -0
  24. package/app/config/config.base.ts +26 -0
  25. package/app/config/config.dev.ts +10 -0
  26. package/app/config/config.prod.ts +10 -0
  27. package/app/config/index.ts +28 -0
  28. package/app/context/AuthContext.tsx +14 -0
  29. package/app/context/EpisodeContext.tsx +136 -0
  30. package/app/context/auth/AuthProvider.tsx +340 -0
  31. package/app/context/auth/hooks.ts +29 -0
  32. package/app/context/auth/index.ts +38 -0
  33. package/app/context/auth/reducer.ts +68 -0
  34. package/app/context/auth/services.ts +394 -0
  35. package/app/context/auth/types.ts +99 -0
  36. package/app/context/auth/validation.ts +45 -0
  37. package/app/devtools/ReactotronClient.ts +9 -0
  38. package/app/devtools/ReactotronClient.web.ts +12 -0
  39. package/app/devtools/ReactotronConfig.ts +139 -0
  40. package/app/i18n/ar.ts +126 -0
  41. package/app/i18n/demo-ar.ts +464 -0
  42. package/app/i18n/demo-en.ts +462 -0
  43. package/app/i18n/demo-es.ts +469 -0
  44. package/app/i18n/demo-fr.ts +471 -0
  45. package/app/i18n/demo-hi.ts +468 -0
  46. package/app/i18n/demo-ja.ts +464 -0
  47. package/app/i18n/demo-ko.ts +457 -0
  48. package/app/i18n/en.ts +146 -0
  49. package/app/i18n/es.ts +132 -0
  50. package/app/i18n/fr.ts +132 -0
  51. package/app/i18n/hi.ts +131 -0
  52. package/app/i18n/index.ts +86 -0
  53. package/app/i18n/ja.ts +130 -0
  54. package/app/i18n/ko.ts +129 -0
  55. package/app/i18n/translate.ts +33 -0
  56. package/app/lib/Parse/index.ts +2 -0
  57. package/app/lib/Parse/parse.ts +62 -0
  58. package/app/navigators/AppNavigator.tsx +145 -0
  59. package/app/navigators/DemoNavigator.tsx +137 -0
  60. package/app/navigators/navigationUtilities.ts +208 -0
  61. package/app/screens/ChooseAuthScreen.tsx +224 -0
  62. package/app/screens/DemoCommunityScreen.tsx +141 -0
  63. package/app/screens/DemoDebugScreen.tsx +192 -0
  64. package/app/screens/DemoPodcastListScreen.tsx +387 -0
  65. package/app/screens/DemoShowroomScreen/DemoDivider.tsx +66 -0
  66. package/app/screens/DemoShowroomScreen/DemoShowroomScreen.tsx +313 -0
  67. package/app/screens/DemoShowroomScreen/DemoUseCase.tsx +52 -0
  68. package/app/screens/DemoShowroomScreen/DrawerIconButton.tsx +120 -0
  69. package/app/screens/DemoShowroomScreen/SectionListWithKeyboardAwareScrollView.tsx +59 -0
  70. package/app/screens/DemoShowroomScreen/demos/DemoAutoImage.tsx +230 -0
  71. package/app/screens/DemoShowroomScreen/demos/DemoButton.tsx +234 -0
  72. package/app/screens/DemoShowroomScreen/demos/DemoCard.tsx +181 -0
  73. package/app/screens/DemoShowroomScreen/demos/DemoEmptyState.tsx +78 -0
  74. package/app/screens/DemoShowroomScreen/demos/DemoHeader.tsx +151 -0
  75. package/app/screens/DemoShowroomScreen/demos/DemoIcon.tsx +115 -0
  76. package/app/screens/DemoShowroomScreen/demos/DemoListItem.tsx +218 -0
  77. package/app/screens/DemoShowroomScreen/demos/DemoText.tsx +144 -0
  78. package/app/screens/DemoShowroomScreen/demos/DemoTextField.tsx +233 -0
  79. package/app/screens/DemoShowroomScreen/demos/DemoToggle.tsx +354 -0
  80. package/app/screens/DemoShowroomScreen/demos/index.ts +12 -0
  81. package/app/screens/ErrorScreen/ErrorBoundary.tsx +76 -0
  82. package/app/screens/ErrorScreen/ErrorDetails.tsx +98 -0
  83. package/app/screens/ForgetPasswordScreen.tsx +180 -0
  84. package/app/screens/LoginScreen.tsx +260 -0
  85. package/app/screens/RegisterScreen.tsx +395 -0
  86. package/app/screens/WelcomeScreen.tsx +114 -0
  87. package/app/services/api/apiProblem.test.ts +73 -0
  88. package/app/services/api/apiProblem.ts +74 -0
  89. package/app/services/api/index.ts +91 -0
  90. package/app/services/api/types.ts +50 -0
  91. package/app/theme/colors.ts +85 -0
  92. package/app/theme/colorsDark.ts +50 -0
  93. package/app/theme/context.tsx +145 -0
  94. package/app/theme/context.utils.ts +25 -0
  95. package/app/theme/spacing.ts +14 -0
  96. package/app/theme/spacingDark.ts +14 -0
  97. package/app/theme/styles.ts +24 -0
  98. package/app/theme/theme.ts +23 -0
  99. package/app/theme/timing.ts +6 -0
  100. package/app/theme/types.ts +64 -0
  101. package/app/theme/typography.ts +71 -0
  102. package/app/utils/crashReporting.ts +62 -0
  103. package/app/utils/delay.ts +6 -0
  104. package/app/utils/formatDate.ts +49 -0
  105. package/app/utils/gestureHandler.native.ts +3 -0
  106. package/app/utils/gestureHandler.ts +6 -0
  107. package/app/utils/hasValidStringProp.ts +11 -0
  108. package/app/utils/openLinkInBrowser.ts +8 -0
  109. package/app/utils/storage/index.ts +82 -0
  110. package/app/utils/storage/storage.test.ts +61 -0
  111. package/app/utils/useHeader.tsx +37 -0
  112. package/app/utils/useIsMounted.ts +18 -0
  113. package/app/utils/useSafeAreaInsetsStyle.ts +46 -0
  114. package/app.config.ts +39 -0
  115. package/app.json +67 -0
  116. package/assets/icons/back.png +0 -0
  117. package/assets/icons/back@2x.png +0 -0
  118. package/assets/icons/back@3x.png +0 -0
  119. package/assets/icons/bell.png +0 -0
  120. package/assets/icons/bell@2x.png +0 -0
  121. package/assets/icons/bell@3x.png +0 -0
  122. package/assets/icons/caretLeft.png +0 -0
  123. package/assets/icons/caretLeft@2x.png +0 -0
  124. package/assets/icons/caretLeft@3x.png +0 -0
  125. package/assets/icons/caretRight.png +0 -0
  126. package/assets/icons/caretRight@2x.png +0 -0
  127. package/assets/icons/caretRight@3x.png +0 -0
  128. package/assets/icons/check.png +0 -0
  129. package/assets/icons/check@2x.png +0 -0
  130. package/assets/icons/check@3x.png +0 -0
  131. package/assets/icons/demo/clap.png +0 -0
  132. package/assets/icons/demo/clap@2x.png +0 -0
  133. package/assets/icons/demo/clap@3x.png +0 -0
  134. package/assets/icons/demo/community.png +0 -0
  135. package/assets/icons/demo/community@2x.png +0 -0
  136. package/assets/icons/demo/community@3x.png +0 -0
  137. package/assets/icons/demo/components.png +0 -0
  138. package/assets/icons/demo/components@2x.png +0 -0
  139. package/assets/icons/demo/components@3x.png +0 -0
  140. package/assets/icons/demo/debug.png +0 -0
  141. package/assets/icons/demo/debug@2x.png +0 -0
  142. package/assets/icons/demo/debug@3x.png +0 -0
  143. package/assets/icons/demo/github.png +0 -0
  144. package/assets/icons/demo/github@2x.png +0 -0
  145. package/assets/icons/demo/github@3x.png +0 -0
  146. package/assets/icons/demo/heart.png +0 -0
  147. package/assets/icons/demo/heart@2x.png +0 -0
  148. package/assets/icons/demo/heart@3x.png +0 -0
  149. package/assets/icons/demo/pin.png +0 -0
  150. package/assets/icons/demo/pin@2x.png +0 -0
  151. package/assets/icons/demo/pin@3x.png +0 -0
  152. package/assets/icons/demo/podcast.png +0 -0
  153. package/assets/icons/demo/podcast@2x.png +0 -0
  154. package/assets/icons/demo/podcast@3x.png +0 -0
  155. package/assets/icons/demo/slack.png +0 -0
  156. package/assets/icons/demo/slack@2x.png +0 -0
  157. package/assets/icons/demo/slack@3x.png +0 -0
  158. package/assets/icons/google.png +0 -0
  159. package/assets/icons/hidden.png +0 -0
  160. package/assets/icons/hidden@2x.png +0 -0
  161. package/assets/icons/hidden@3x.png +0 -0
  162. package/assets/icons/ladybug.png +0 -0
  163. package/assets/icons/ladybug@2x.png +0 -0
  164. package/assets/icons/ladybug@3x.png +0 -0
  165. package/assets/icons/lock.png +0 -0
  166. package/assets/icons/lock@2x.png +0 -0
  167. package/assets/icons/lock@3x.png +0 -0
  168. package/assets/icons/menu.png +0 -0
  169. package/assets/icons/menu@2x.png +0 -0
  170. package/assets/icons/menu@3x.png +0 -0
  171. package/assets/icons/more.png +0 -0
  172. package/assets/icons/more@2x.png +0 -0
  173. package/assets/icons/more@3x.png +0 -0
  174. package/assets/icons/settings.png +0 -0
  175. package/assets/icons/settings@2x.png +0 -0
  176. package/assets/icons/settings@3x.png +0 -0
  177. package/assets/icons/view.png +0 -0
  178. package/assets/icons/view@2x.png +0 -0
  179. package/assets/icons/view@3x.png +0 -0
  180. package/assets/icons/x.png +0 -0
  181. package/assets/icons/x@2x.png +0 -0
  182. package/assets/icons/x@3x.png +0 -0
  183. package/assets/images/app-icon-all.png +0 -0
  184. package/assets/images/app-icon-android-adaptive-background.png +0 -0
  185. package/assets/images/app-icon-android-adaptive-foreground.png +0 -0
  186. package/assets/images/app-icon-android-legacy.png +0 -0
  187. package/assets/images/app-icon-ios.png +0 -0
  188. package/assets/images/app-icon-web-favicon.png +0 -0
  189. package/assets/images/demo/cr-logo.png +0 -0
  190. package/assets/images/demo/cr-logo@2x.png +0 -0
  191. package/assets/images/demo/cr-logo@3x.png +0 -0
  192. package/assets/images/demo/rnl-logo.png +0 -0
  193. package/assets/images/demo/rnl-logo@2x.png +0 -0
  194. package/assets/images/demo/rnl-logo@3x.png +0 -0
  195. package/assets/images/demo/rnn-logo.png +0 -0
  196. package/assets/images/demo/rnn-logo@2x.png +0 -0
  197. package/assets/images/demo/rnn-logo@3x.png +0 -0
  198. package/assets/images/demo/rnr-image-1.png +0 -0
  199. package/assets/images/demo/rnr-image-1@2x.png +0 -0
  200. package/assets/images/demo/rnr-image-1@3x.png +0 -0
  201. package/assets/images/demo/rnr-image-2.png +0 -0
  202. package/assets/images/demo/rnr-image-2@2x.png +0 -0
  203. package/assets/images/demo/rnr-image-2@3x.png +0 -0
  204. package/assets/images/demo/rnr-image-3.png +0 -0
  205. package/assets/images/demo/rnr-image-3@2x.png +0 -0
  206. package/assets/images/demo/rnr-image-3@3x.png +0 -0
  207. package/assets/images/demo/rnr-logo.png +0 -0
  208. package/assets/images/demo/rnr-logo@2x.png +0 -0
  209. package/assets/images/demo/rnr-logo@3x.png +0 -0
  210. package/assets/images/logo.png +0 -0
  211. package/assets/images/logo@2x.png +0 -0
  212. package/assets/images/logo@3x.png +0 -0
  213. package/assets/images/sad-face.png +0 -0
  214. package/assets/images/sad-face@2x.png +0 -0
  215. package/assets/images/sad-face@3x.png +0 -0
  216. package/assets/images/welcome-face.png +0 -0
  217. package/assets/images/welcome-face@2x.png +0 -0
  218. package/assets/images/welcome-face@3x.png +0 -0
  219. package/babel.config.js +7 -0
  220. package/bin/cli.js +196 -0
  221. package/ignite/templates/app-icon/android-adaptive-background.png +0 -0
  222. package/ignite/templates/app-icon/android-adaptive-foreground.png +0 -0
  223. package/ignite/templates/app-icon/android-legacy.png +0 -0
  224. package/ignite/templates/app-icon/ios-universal.png +0 -0
  225. package/ignite/templates/component/NAME.tsx.ejs +39 -0
  226. package/ignite/templates/navigator/NAMENavigator.tsx.ejs +18 -0
  227. package/ignite/templates/screen/NAMEScreen.tsx.ejs +29 -0
  228. package/ignite/templates/splash-screen/logo.png +0 -0
  229. package/index.tsx +9 -0
  230. package/jest.config.js +5 -0
  231. package/metro.config.js +31 -0
  232. package/package.json +166 -0
  233. package/plugins/withSplashScreen.ts +69 -0
  234. package/src/app/_layout.tsx +58 -0
  235. package/src/app/index.tsx +5 -0
  236. package/test/i18n.test.ts +75 -0
  237. package/test/mockFile.ts +6 -0
  238. package/test/setup.ts +58 -0
  239. package/test/test-tsconfig.json +8 -0
  240. package/tsconfig.json +52 -0
  241. package/types/lib.es5.d.ts +25 -0
@@ -0,0 +1,464 @@
1
+ import { DemoTranslations } from "./demo-en"
2
+
3
+ export const demoJa: DemoTranslations = {
4
+ demoIcon: {
5
+ description:
6
+ "あらかじめ登録されたアイコンを描画するコンポーネントです。 `onPress` が提供されている場合は <TouchableOpacity /> にラップされますが、それ以外の場合は <View /> にラップされます。",
7
+ useCase: {
8
+ icons: {
9
+ name: "アイコン",
10
+ description: "登録されたアイコンのリストです。",
11
+ },
12
+ size: {
13
+ name: "サイズ",
14
+ description: "sizeのpropsです。",
15
+ },
16
+ color: {
17
+ name: "カラー",
18
+ description: "colorのpropsです。",
19
+ },
20
+ styling: {
21
+ name: "スタイリング",
22
+ description: "このコンポーネントはスタイリングの変更ができます。",
23
+ },
24
+ },
25
+ },
26
+ demoTextField: {
27
+ description: "このコンポーネントはテキストの入力と編集ができます。",
28
+ useCase: {
29
+ statuses: {
30
+ name: "ステータス",
31
+ description:
32
+ "status - これは他コンポーネントの`preset`の似ていますが、これはコンポーネントの機能も変えるpropsです。",
33
+ noStatus: {
34
+ label: "ステータスなし",
35
+ helper: "デフォルトのステータスです",
36
+ placeholder: "テキストが入力されます",
37
+ },
38
+ error: {
39
+ label: "エラーステータス",
40
+ helper: "エラーが発生した場合に使用されるステータスです",
41
+ placeholder: "ここにテキストが入力されます",
42
+ },
43
+ disabled: {
44
+ label: "無効(disabled)ステータス",
45
+ helper: "編集不可となるステータスです",
46
+ placeholder: "ここにテキストが入力されます",
47
+ },
48
+ },
49
+ passingContent: {
50
+ name: "コンテントを渡す",
51
+ description: "コンテントを渡す方法はいくつかあります。",
52
+ viaLabel: {
53
+ labelTx: "`label` から",
54
+ helper: "`helper` から",
55
+ placeholder: "`placeholder` から",
56
+ },
57
+ rightAccessory: {
58
+ label: "右側にアクセサリー",
59
+ helper: "このpropsはReact要素を返す関数をうけとります。",
60
+ },
61
+ leftAccessory: {
62
+ label: "左側にアクセサリー",
63
+ helper: "このpropsはReact要素を返す関数をうけとります。",
64
+ },
65
+ supportsMultiline: {
66
+ label: "複数行サポート",
67
+ helper: "複数行の入力が出来るようになります。",
68
+ },
69
+ },
70
+ styling: {
71
+ name: "スタイリング",
72
+ description: "このコンポーネントはスタイリングの変更ができます。",
73
+ styleInput: {
74
+ label: "インプットのスタイル",
75
+ helper: "`style`から",
76
+ },
77
+ styleInputWrapper: {
78
+ label: "インプットラッパーのスタイル",
79
+ helper: "`inputWrapperStyle`から",
80
+ },
81
+ styleContainer: {
82
+ label: "スタイルコンテナのスタイル",
83
+ helper: "`containerStyle`から",
84
+ },
85
+ styleLabel: {
86
+ label: "ラベルとヘルパーのスタイル",
87
+ helper: "`LabelTextProps` & `HelperTextProps`から",
88
+ },
89
+ styleAccessories: {
90
+ label: "アクセサリーのスタイル",
91
+ helper: "`RightAccessory` & `LeftAccessory`から",
92
+ },
93
+ },
94
+ },
95
+ },
96
+ demoToggle: {
97
+ description:
98
+ "ブーリアンの入力を表示するコンポーネントです。コンポーネントはvalueの値を使用して描画するので、onValueChangeコールバックを使って値を変更し、valueを更新する必要があります。valueの値が変更されていない場合は、描画が更新されません。",
99
+ useCase: {
100
+ variants: {
101
+ name: "バリエーション",
102
+ description:
103
+ "このコンポーネントは数種類のバリエーションをサポートしています。もしカスタマイズが必要な場合、これらのバリエーションをリファクタリングできます。デフォルトは`checkbox`です。",
104
+ checkbox: {
105
+ label: "`checkbox`バリエーション",
106
+ helper: "シンプルなon/offのインプットに使えます。",
107
+ },
108
+ radio: {
109
+ label: "`radio`バリエーション",
110
+ helper: "数個のオプションがある場合に使えます。",
111
+ },
112
+ switch: {
113
+ label: "`switch`バリエーション",
114
+ helper:
115
+ "代表的なon/offのインプットです。他と比べアクセシビリティのサポートが充実しています。",
116
+ },
117
+ },
118
+ statuses: {
119
+ name: "ステータス",
120
+ description:
121
+ "status - これは他コンポーネントの`preset`の似ていますが、これはコンポーネントの機能も変えるpropsです。",
122
+ noStatus: "ステータスなし - デフォルトです。",
123
+ errorStatus: "エラー - エラーがある際に使えるステータスです。",
124
+ disabledStatus: "無効(disabled) - 編集不可となるステータスです",
125
+ },
126
+ passingContent: {
127
+ name: "コンテントを渡す",
128
+ description: "コンテントを渡す方法はいくつかあります。",
129
+ useCase: {
130
+ checkBox: {
131
+ label: "`labelTx`から",
132
+ helper: "`helperTx`から",
133
+ },
134
+ checkBoxMultiLine: {
135
+ helper: "複数行サポート - Nulla proident consectetur labore sunt ea labore. ",
136
+ },
137
+ radioChangeSides: {
138
+ helper: "左右に変更 - Laborum labore adipisicing in eu ipsum deserunt.",
139
+ },
140
+ customCheckBox: {
141
+ label: "カスタムアイコンも渡せます",
142
+ },
143
+ switch: {
144
+ label: "スイッチはテキストとして読むこともできます。",
145
+ helper:
146
+ "デフォルトでは、このオプションはフォントの影響を受け、見た目が見苦しくなる可能性がある為`Text`コンポーネントを使用していません。必要に応じてカスタマイズしてください。",
147
+ },
148
+ switchAid: {
149
+ label: "または補助アイコンもつけられます",
150
+ },
151
+ },
152
+ },
153
+ styling: {
154
+ name: "スタイリング",
155
+ description: "このコンポーネントはスタイリングの変更ができます。",
156
+ outerWrapper: "1 - インプットの外側のラッパー",
157
+ innerWrapper: "2 - インプットの内側のラッパー",
158
+ inputDetail: "3 - インプットのそのもの",
159
+ labelTx: "ラベルのスタイルも変更できます。",
160
+ styleContainer: "もしくは、コンポーネントのコンテナ全体をスタイルすることもできます。",
161
+ },
162
+ },
163
+ },
164
+ demoButton: {
165
+ description:
166
+ "ユーザーにアクションや選択を促すコンポーネントです。`Text`コンポーネントを`Pressable`コンポーネントでラップしています。",
167
+ useCase: {
168
+ presets: {
169
+ name: "プリセット",
170
+ description: "数種類のプリセットが用意されています。",
171
+ },
172
+ passingContent: {
173
+ name: "コンテントを渡す",
174
+ description: "コンテントを渡す方法はいくつかあります。",
175
+ viaTextProps: "`text`から - Billum In",
176
+ children: "Childrenから - Irure Reprehenderit",
177
+ rightAccessory: "RightAccessoryから - Duis Quis",
178
+ leftAccessory: "LeftAccessoryから - Duis Proident",
179
+ nestedChildren: "ネストされたchildrenから - proident veniam.",
180
+ nestedChildren2: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
181
+ nestedChildren3: "Occaecat aliqua irure proident veniam.",
182
+ multiLine:
183
+ "Multilineから - consequat veniam veniam reprehenderit. Fugiat id nisi quis duis sunt proident mollit dolor mollit adipisicing proident deserunt.",
184
+ },
185
+ styling: {
186
+ name: "スタイリング",
187
+ description: "このコンポーネントはスタイリングの変更ができます。",
188
+ styleContainer: "コンテナのスタイル - Exercitation",
189
+ styleText: "テキストのスタイル - Ea Anim",
190
+ styleAccessories: "アクセサリーのスタイル - enim ea id fugiat anim ad.",
191
+ pressedState: "押された状態のスタイル - fugiat anim",
192
+ },
193
+ disabling: {
194
+ name: "無効化",
195
+ description:
196
+ "このコンポーネントは無効化できます。スタイルも同時に変更され、押した際の挙動も無効化されます。",
197
+ standard: "無効化 - standard",
198
+ filled: "無効化 - filled",
199
+ reversed: "無効化 - reversed",
200
+ accessory: "無効化されたアクセサリーのスタイル",
201
+ textStyle: "無効化されたテキストのスタイル",
202
+ },
203
+ },
204
+ },
205
+ demoListItem: {
206
+ description:
207
+ "スタイルを指定されたリストの行のコンポーネントです。FlatListやSectionListなどのコンポーネントを使用することもできますし、単体でも使用できます。",
208
+ useCase: {
209
+ height: {
210
+ name: "高さ",
211
+ description: "高さの指定ができます。",
212
+ defaultHeight: "デフォルトの高さ (56px)",
213
+ customHeight: "`height`を使ったカスタムの高さ",
214
+ textHeight:
215
+ "テキストによって決まった高さ - Reprehenderit incididunt deserunt do do ea labore.",
216
+ longText: "テキストを1行に制限する- Reprehenderit incididunt deserunt do do ea labore.",
217
+ },
218
+ separators: {
219
+ name: "セパレーター",
220
+ description: "セパレーター/ディバイダーは用意されてるかつ任意です。",
221
+ topSeparator: "トップセパレーターのみ",
222
+ topAndBottomSeparator: "トップとボトムのセパレーター",
223
+ bottomSeparator: "ボトムのセパレーター",
224
+ },
225
+ icons: {
226
+ name: "アイコン",
227
+ description: "右または左のアイコンをカスタマイズすることができます。",
228
+ leftIcon: "左のアイコン",
229
+ rightIcon: "右のアイコン",
230
+ leftRightIcons: "左右のアイコン",
231
+ },
232
+ customLeftRight: {
233
+ name: "左右のコンポーネントのカスタマイズ",
234
+ description: "左右のコンポーネントをカスタマイズすることができます。",
235
+ customLeft: "カスタムされた左コンポーネント",
236
+ customRight: "カスタムされた右コンポーネント",
237
+ },
238
+ passingContent: {
239
+ name: "コンテントを渡す",
240
+ description: "コンテントを渡す方法はいくつかあります。",
241
+ text: "`text`から - reprehenderit sint",
242
+ children: "Childrenから - mostrud mollit",
243
+ nestedChildren1: "ネストされたchildrenから - proident veniam.",
244
+ nestedChildren2: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
245
+ },
246
+ listIntegration: {
247
+ name: "FlatList & FlashListに組みこむ場合",
248
+ description:
249
+ "このコンポーネントはお好みのリスト系のコンポーネントへ容易に組み込むことができます。",
250
+ },
251
+ styling: {
252
+ name: "スタイリング",
253
+ description: "このコンポーネントはスタイリングの変更ができます。",
254
+ styledText: "スタイルされたテキスト",
255
+ styledContainer: "スタイルされたコンテナ(セパレーター)",
256
+ tintedIcons: "アイコンに色をつける",
257
+ },
258
+ },
259
+ },
260
+ demoCard: {
261
+ description:
262
+ "カードは関連する情報同士をまとめるのに役立ちます。ListItemが横に情報を表示するのに使え、こちらは縦に表示するのに使えます。",
263
+ useCase: {
264
+ presets: {
265
+ name: "プリセット",
266
+ description: "数種類のプリセットが用意されています。",
267
+ default: {
268
+ heading: "デフォルトのプリセット",
269
+ content: "Incididunt magna ut aliquip consectetur mollit dolor.",
270
+ footer: "Consectetur nulla non aliquip velit.",
271
+ },
272
+ reversed: {
273
+ heading: "リバースのプリセット",
274
+ content: "Reprehenderit occaecat proident amet id laboris.",
275
+ footer: "Consectetur tempor ea non labore anim .",
276
+ },
277
+ },
278
+ verticalAlignment: {
279
+ name: "縦の位置調整",
280
+ description: "カードは用意されたプリセットを使っての縦位置調整ができます。",
281
+ top: {
282
+ heading: "Top(デフォルト)",
283
+ content: "全てのコンテンツは自動的に上に配置されます。",
284
+ footer: "Footerも同じように上に配置されます。",
285
+ },
286
+ center: {
287
+ heading: "センター",
288
+ content: "全てのコンテンツはカードの高さから見て中央に配置されます。",
289
+ footer: "Footerである私も!",
290
+ },
291
+ spaceBetween: {
292
+ heading: "Space Between",
293
+ content: "全てのコンテンツは均等に分配されます。",
294
+ footer: "Footerの私はここが一番落ち着くね",
295
+ },
296
+ reversed: {
297
+ heading: "Footerのみを下に配置する",
298
+ content: "その名の通り、Footerのみを下に配置することができます。",
299
+ footer: "Footerは一人で寂しい",
300
+ },
301
+ },
302
+ passingContent: {
303
+ name: "コンテントを渡す",
304
+ description: "コンテントを渡す方法はいくつかあります。",
305
+ heading: "`heading`から",
306
+ content: "`content`から",
307
+ footer: "`footer`から",
308
+ },
309
+ customComponent: {
310
+ name: "カスタムコンポーネント",
311
+ description:
312
+ "全てのプリセットはカスタムコンポーネントを使って拡張/変更することができます。",
313
+ rightComponent: "右コンポーネント",
314
+ leftComponent: "左コンポーネント",
315
+ },
316
+ style: {
317
+ name: "スタイリング",
318
+ description: "このコンポーネントはスタイリングの変更ができます。",
319
+ heading: "ヘディングのスタイル",
320
+ content: "コンテントのスタイル",
321
+ footer: "フッターのスタイル",
322
+ },
323
+ },
324
+ },
325
+ demoAutoImage: {
326
+ description: "リモートまたはデータURIによって自動的にサイズを変更する画像コンポーネントです。",
327
+ useCase: {
328
+ remoteUri: { name: "リモート URI" },
329
+ base64Uri: { name: "Base64 URI" },
330
+ scaledToFitDimensions: {
331
+ name: "ディメンションにフィットするように拡大する",
332
+ description:
333
+ "`maxWidth` と/または `maxHeight`を指定することで、アスペクト比を維持したままサイズを変更することができます。`resizeMode: 'contain'`との違いとしては: \n1. 一方のサイズの指定でも良い(両方の指定の必要がない)。 \n2. 画像のコンテナに押し込められるのではなく、画像のディメンションを保ったまま指定したサイズに拡大、縮小を行うことができます。",
334
+ heightAuto: "width: 60 / height: auto",
335
+ widthAuto: "width: auto / height: 32",
336
+ bothManual: "width: 60 / height: 60",
337
+ },
338
+ },
339
+ },
340
+ demoText: {
341
+ description:
342
+ "テキストを表示する為のコンポーネントです。これはReact NativeのTextコンポーネントを内包する高階コンポーネント(Higher Order Component)です。",
343
+ useCase: {
344
+ presets: {
345
+ name: "プリセット",
346
+ description: "数種類のプリセットが用意されています。",
347
+ default:
348
+ "デフォルトのプリセット - Cillum eu laboris in labore. Excepteur mollit tempor reprehenderit fugiat elit et eu consequat laborum.",
349
+ bold: "ボールドのプリセット - Tempor et ullamco cupidatat in officia. Nulla ea duis elit id sunt ipsum cillum duis deserunt nostrud ut nostrud id.",
350
+ subheading: "サブヘディングのプリセット - In Cupidatat Cillum.",
351
+ heading: "ヘディングのプリセット - Voluptate Adipis.",
352
+ },
353
+ sizes: {
354
+ name: "サイズ",
355
+ description: "サイズ用のpropsです.",
356
+ xs: "xs - Ea ipsum est ea ex sunt.",
357
+ sm: "sm - Lorem sunt adipisicin.",
358
+ md: "md - Consequat id do lorem.",
359
+ lg: "lg - Nostrud ipsum ea.",
360
+ xl: "xl - Eiusmod ex excepteur.",
361
+ xxl: "xxl - Cillum eu laboris.",
362
+ },
363
+ weights: {
364
+ name: "ウエイト",
365
+ description: "ウエイト用のpropです。",
366
+ light:
367
+ "ライト - Nulla magna incididunt excepteur est occaecat duis culpa dolore cupidatat enim et.",
368
+ normal:
369
+ "ノーマル - Magna incididunt dolor ut veniam veniam laboris aliqua velit ea incididunt.",
370
+ medium: "ミディアム - Non duis laborum quis laboris occaecat culpa cillum.",
371
+ semibold: "セミボールド - Exercitation magna nostrud pariatur laborum occaecat aliqua.",
372
+ bold: "ボールド - Eiusmod ullamco magna exercitation est excepteur.",
373
+ },
374
+ passingContent: {
375
+ name: "コンテントを渡す",
376
+ description: "コンテントを渡す方法はいくつかあります。",
377
+ viaText:
378
+ "`text`から - Billum in aute fugiat proident nisi pariatur est. Cupidatat anim cillum eiusmod ad. Officia eu magna aliquip labore dolore consequat.",
379
+ viaTx: "`tx`から -",
380
+ children: "childrenから - Aliqua velit irure reprehenderit eu qui amet veniam consectetur.",
381
+ nestedChildren: "ネストされたchildrenから -",
382
+ nestedChildren2: "Occaecat aliqua irure proident veniam.",
383
+ nestedChildren3: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
384
+ nestedChildren4: "Occaecat aliqua irure proident veniam.",
385
+ },
386
+ styling: {
387
+ name: "スタイリング",
388
+ description: "このコンポーネントはスタイリングの変更ができます。",
389
+ text: "Consequat ullamco veniam velit mollit proident excepteur aliquip id culpa ipsum velit sint nostrud.",
390
+ text2:
391
+ "Eiusmod occaecat laboris eu ex veniam ipsum adipisicing consectetur. Magna ullamco adipisicing tempor adipisicing.",
392
+ text3:
393
+ "Eiusmod occaecat laboris eu ex veniam ipsum adipisicing consectetur. Magna ullamco adipisicing tempor adipisicing.",
394
+ },
395
+ },
396
+ },
397
+ demoHeader: {
398
+ description:
399
+ "様々なスクリーンで登場するコンポーネントです。ナビゲーションのボタンとスクリーンタイトルを含みます。",
400
+ useCase: {
401
+ actionIcons: {
402
+ name: "アクションアイコン",
403
+ description: "左右にアイコンを表示させることができます。",
404
+ leftIconTitle: "左アイコン",
405
+ rightIconTitle: "右アイコン",
406
+ bothIconsTitle: "両方のアイコン",
407
+ },
408
+ actionText: {
409
+ name: "アクションテキスト",
410
+ description: "左右にテキストを表示させることができます。",
411
+ leftTxTitle: "`leftTx`から",
412
+ rightTextTitle: "`rightText`から",
413
+ },
414
+ customActionComponents: {
415
+ name: "カスタムアクションコンポーネント",
416
+ description:
417
+ "アイコンまたはテキスト以外のものが必要な場合は、カスタムのアクションコンポーネントを渡すことができます。",
418
+ customLeftActionTitle: "カスタムの左アクション",
419
+ },
420
+ titleModes: {
421
+ name: "タイトルモード",
422
+ description:
423
+ "タイトルはデフォルトで中央に配置されますが、長すぎるとカットされてしまいます。Flexを使うことでアクションボタンから自動的にポジションを調整することもできます。",
424
+ centeredTitle: "Centered Title",
425
+ flexTitle: "Flex Title",
426
+ },
427
+ styling: {
428
+ name: "スタイリング",
429
+ description: "このコンポーネントはスタイリングの変更ができます。",
430
+ styledTitle: "スタイルされたタイトル",
431
+ styledWrapperTitle: "スタイルされたラッパー",
432
+ tintedIconsTitle: "色付けされたアイコン",
433
+ },
434
+ },
435
+ },
436
+ demoEmptyState: {
437
+ description:
438
+ "表示する為のデータが存在しない場合に使えるコンポーネントです。ユーザーに取るべきアクションをお勧めする際に有用です。",
439
+ useCase: {
440
+ presets: {
441
+ name: "プリセット",
442
+ description:
443
+ "text/imageのセットを使ってカスタマイズすることができます。これは`generic`のものです。カスタマイズが必要になることを想定して、このコンポーネントにデフォルトのプリセットは存在しません。",
444
+ },
445
+ passingContent: {
446
+ name: "コンテントを渡す",
447
+ description: "コンテントを渡す方法はいくつかあります。",
448
+ customizeImageHeading: "画像をカスタマイズ",
449
+ customizeImageContent: "画像のソースを渡すことができます。",
450
+ viaHeadingProp: "`heading`から",
451
+ viaContentProp: "`content`から",
452
+ viaButtonProp: "`button`から",
453
+ },
454
+ styling: {
455
+ name: "スタイリング",
456
+ description: "このコンポーネントはスタイリングの変更ができます。",
457
+ },
458
+ },
459
+ },
460
+ }
461
+
462
+ export default demoJa
463
+
464
+ // @demo remove-file