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.
- package/CONTRIBUTING.md +0 -0
- package/LICENSE +21 -0
- package/README.md +492 -0
- package/app/app.tsx +116 -0
- package/app/components/AlertTongle.tsx +105 -0
- package/app/components/AutoImage.tsx +89 -0
- package/app/components/Button.tsx +248 -0
- package/app/components/Card.tsx +314 -0
- package/app/components/EmptyState.tsx +248 -0
- package/app/components/Header.tsx +332 -0
- package/app/components/Icon.tsx +140 -0
- package/app/components/ListItem.tsx +243 -0
- package/app/components/ListView.tsx +42 -0
- package/app/components/Screen.tsx +305 -0
- package/app/components/Text.test.tsx +23 -0
- package/app/components/Text.tsx +116 -0
- package/app/components/TextField.tsx +292 -0
- package/app/components/Toggle/Checkbox.tsx +123 -0
- package/app/components/Toggle/Radio.tsx +106 -0
- package/app/components/Toggle/Switch.tsx +264 -0
- package/app/components/Toggle/Toggle.tsx +285 -0
- package/app/components/index copy.ts +15 -0
- package/app/components/index.ts +18 -0
- package/app/config/config.base.ts +26 -0
- package/app/config/config.dev.ts +10 -0
- package/app/config/config.prod.ts +10 -0
- package/app/config/index.ts +28 -0
- package/app/context/AuthContext.tsx +14 -0
- package/app/context/EpisodeContext.tsx +136 -0
- package/app/context/auth/AuthProvider.tsx +340 -0
- package/app/context/auth/hooks.ts +29 -0
- package/app/context/auth/index.ts +38 -0
- package/app/context/auth/reducer.ts +68 -0
- package/app/context/auth/services.ts +394 -0
- package/app/context/auth/types.ts +99 -0
- package/app/context/auth/validation.ts +45 -0
- package/app/devtools/ReactotronClient.ts +9 -0
- package/app/devtools/ReactotronClient.web.ts +12 -0
- package/app/devtools/ReactotronConfig.ts +139 -0
- package/app/i18n/ar.ts +126 -0
- package/app/i18n/demo-ar.ts +464 -0
- package/app/i18n/demo-en.ts +462 -0
- package/app/i18n/demo-es.ts +469 -0
- package/app/i18n/demo-fr.ts +471 -0
- package/app/i18n/demo-hi.ts +468 -0
- package/app/i18n/demo-ja.ts +464 -0
- package/app/i18n/demo-ko.ts +457 -0
- package/app/i18n/en.ts +146 -0
- package/app/i18n/es.ts +132 -0
- package/app/i18n/fr.ts +132 -0
- package/app/i18n/hi.ts +131 -0
- package/app/i18n/index.ts +86 -0
- package/app/i18n/ja.ts +130 -0
- package/app/i18n/ko.ts +129 -0
- package/app/i18n/translate.ts +33 -0
- package/app/lib/Parse/index.ts +2 -0
- package/app/lib/Parse/parse.ts +62 -0
- package/app/navigators/AppNavigator.tsx +145 -0
- package/app/navigators/DemoNavigator.tsx +137 -0
- package/app/navigators/navigationUtilities.ts +208 -0
- package/app/screens/ChooseAuthScreen.tsx +224 -0
- package/app/screens/DemoCommunityScreen.tsx +141 -0
- package/app/screens/DemoDebugScreen.tsx +192 -0
- package/app/screens/DemoPodcastListScreen.tsx +387 -0
- package/app/screens/DemoShowroomScreen/DemoDivider.tsx +66 -0
- package/app/screens/DemoShowroomScreen/DemoShowroomScreen.tsx +313 -0
- package/app/screens/DemoShowroomScreen/DemoUseCase.tsx +52 -0
- package/app/screens/DemoShowroomScreen/DrawerIconButton.tsx +120 -0
- package/app/screens/DemoShowroomScreen/SectionListWithKeyboardAwareScrollView.tsx +59 -0
- package/app/screens/DemoShowroomScreen/demos/DemoAutoImage.tsx +230 -0
- package/app/screens/DemoShowroomScreen/demos/DemoButton.tsx +234 -0
- package/app/screens/DemoShowroomScreen/demos/DemoCard.tsx +181 -0
- package/app/screens/DemoShowroomScreen/demos/DemoEmptyState.tsx +78 -0
- package/app/screens/DemoShowroomScreen/demos/DemoHeader.tsx +151 -0
- package/app/screens/DemoShowroomScreen/demos/DemoIcon.tsx +115 -0
- package/app/screens/DemoShowroomScreen/demos/DemoListItem.tsx +218 -0
- package/app/screens/DemoShowroomScreen/demos/DemoText.tsx +144 -0
- package/app/screens/DemoShowroomScreen/demos/DemoTextField.tsx +233 -0
- package/app/screens/DemoShowroomScreen/demos/DemoToggle.tsx +354 -0
- package/app/screens/DemoShowroomScreen/demos/index.ts +12 -0
- package/app/screens/ErrorScreen/ErrorBoundary.tsx +76 -0
- package/app/screens/ErrorScreen/ErrorDetails.tsx +98 -0
- package/app/screens/ForgetPasswordScreen.tsx +180 -0
- package/app/screens/LoginScreen.tsx +260 -0
- package/app/screens/RegisterScreen.tsx +395 -0
- package/app/screens/WelcomeScreen.tsx +114 -0
- package/app/services/api/apiProblem.test.ts +73 -0
- package/app/services/api/apiProblem.ts +74 -0
- package/app/services/api/index.ts +91 -0
- package/app/services/api/types.ts +50 -0
- package/app/theme/colors.ts +85 -0
- package/app/theme/colorsDark.ts +50 -0
- package/app/theme/context.tsx +145 -0
- package/app/theme/context.utils.ts +25 -0
- package/app/theme/spacing.ts +14 -0
- package/app/theme/spacingDark.ts +14 -0
- package/app/theme/styles.ts +24 -0
- package/app/theme/theme.ts +23 -0
- package/app/theme/timing.ts +6 -0
- package/app/theme/types.ts +64 -0
- package/app/theme/typography.ts +71 -0
- package/app/utils/crashReporting.ts +62 -0
- package/app/utils/delay.ts +6 -0
- package/app/utils/formatDate.ts +49 -0
- package/app/utils/gestureHandler.native.ts +3 -0
- package/app/utils/gestureHandler.ts +6 -0
- package/app/utils/hasValidStringProp.ts +11 -0
- package/app/utils/openLinkInBrowser.ts +8 -0
- package/app/utils/storage/index.ts +82 -0
- package/app/utils/storage/storage.test.ts +61 -0
- package/app/utils/useHeader.tsx +37 -0
- package/app/utils/useIsMounted.ts +18 -0
- package/app/utils/useSafeAreaInsetsStyle.ts +46 -0
- package/app.config.ts +39 -0
- package/app.json +67 -0
- package/assets/icons/back.png +0 -0
- package/assets/icons/back@2x.png +0 -0
- package/assets/icons/back@3x.png +0 -0
- package/assets/icons/bell.png +0 -0
- package/assets/icons/bell@2x.png +0 -0
- package/assets/icons/bell@3x.png +0 -0
- package/assets/icons/caretLeft.png +0 -0
- package/assets/icons/caretLeft@2x.png +0 -0
- package/assets/icons/caretLeft@3x.png +0 -0
- package/assets/icons/caretRight.png +0 -0
- package/assets/icons/caretRight@2x.png +0 -0
- package/assets/icons/caretRight@3x.png +0 -0
- package/assets/icons/check.png +0 -0
- package/assets/icons/check@2x.png +0 -0
- package/assets/icons/check@3x.png +0 -0
- package/assets/icons/demo/clap.png +0 -0
- package/assets/icons/demo/clap@2x.png +0 -0
- package/assets/icons/demo/clap@3x.png +0 -0
- package/assets/icons/demo/community.png +0 -0
- package/assets/icons/demo/community@2x.png +0 -0
- package/assets/icons/demo/community@3x.png +0 -0
- package/assets/icons/demo/components.png +0 -0
- package/assets/icons/demo/components@2x.png +0 -0
- package/assets/icons/demo/components@3x.png +0 -0
- package/assets/icons/demo/debug.png +0 -0
- package/assets/icons/demo/debug@2x.png +0 -0
- package/assets/icons/demo/debug@3x.png +0 -0
- package/assets/icons/demo/github.png +0 -0
- package/assets/icons/demo/github@2x.png +0 -0
- package/assets/icons/demo/github@3x.png +0 -0
- package/assets/icons/demo/heart.png +0 -0
- package/assets/icons/demo/heart@2x.png +0 -0
- package/assets/icons/demo/heart@3x.png +0 -0
- package/assets/icons/demo/pin.png +0 -0
- package/assets/icons/demo/pin@2x.png +0 -0
- package/assets/icons/demo/pin@3x.png +0 -0
- package/assets/icons/demo/podcast.png +0 -0
- package/assets/icons/demo/podcast@2x.png +0 -0
- package/assets/icons/demo/podcast@3x.png +0 -0
- package/assets/icons/demo/slack.png +0 -0
- package/assets/icons/demo/slack@2x.png +0 -0
- package/assets/icons/demo/slack@3x.png +0 -0
- package/assets/icons/google.png +0 -0
- package/assets/icons/hidden.png +0 -0
- package/assets/icons/hidden@2x.png +0 -0
- package/assets/icons/hidden@3x.png +0 -0
- package/assets/icons/ladybug.png +0 -0
- package/assets/icons/ladybug@2x.png +0 -0
- package/assets/icons/ladybug@3x.png +0 -0
- package/assets/icons/lock.png +0 -0
- package/assets/icons/lock@2x.png +0 -0
- package/assets/icons/lock@3x.png +0 -0
- package/assets/icons/menu.png +0 -0
- package/assets/icons/menu@2x.png +0 -0
- package/assets/icons/menu@3x.png +0 -0
- package/assets/icons/more.png +0 -0
- package/assets/icons/more@2x.png +0 -0
- package/assets/icons/more@3x.png +0 -0
- package/assets/icons/settings.png +0 -0
- package/assets/icons/settings@2x.png +0 -0
- package/assets/icons/settings@3x.png +0 -0
- package/assets/icons/view.png +0 -0
- package/assets/icons/view@2x.png +0 -0
- package/assets/icons/view@3x.png +0 -0
- package/assets/icons/x.png +0 -0
- package/assets/icons/x@2x.png +0 -0
- package/assets/icons/x@3x.png +0 -0
- package/assets/images/app-icon-all.png +0 -0
- package/assets/images/app-icon-android-adaptive-background.png +0 -0
- package/assets/images/app-icon-android-adaptive-foreground.png +0 -0
- package/assets/images/app-icon-android-legacy.png +0 -0
- package/assets/images/app-icon-ios.png +0 -0
- package/assets/images/app-icon-web-favicon.png +0 -0
- package/assets/images/demo/cr-logo.png +0 -0
- package/assets/images/demo/cr-logo@2x.png +0 -0
- package/assets/images/demo/cr-logo@3x.png +0 -0
- package/assets/images/demo/rnl-logo.png +0 -0
- package/assets/images/demo/rnl-logo@2x.png +0 -0
- package/assets/images/demo/rnl-logo@3x.png +0 -0
- package/assets/images/demo/rnn-logo.png +0 -0
- package/assets/images/demo/rnn-logo@2x.png +0 -0
- package/assets/images/demo/rnn-logo@3x.png +0 -0
- package/assets/images/demo/rnr-image-1.png +0 -0
- package/assets/images/demo/rnr-image-1@2x.png +0 -0
- package/assets/images/demo/rnr-image-1@3x.png +0 -0
- package/assets/images/demo/rnr-image-2.png +0 -0
- package/assets/images/demo/rnr-image-2@2x.png +0 -0
- package/assets/images/demo/rnr-image-2@3x.png +0 -0
- package/assets/images/demo/rnr-image-3.png +0 -0
- package/assets/images/demo/rnr-image-3@2x.png +0 -0
- package/assets/images/demo/rnr-image-3@3x.png +0 -0
- package/assets/images/demo/rnr-logo.png +0 -0
- package/assets/images/demo/rnr-logo@2x.png +0 -0
- package/assets/images/demo/rnr-logo@3x.png +0 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo@2x.png +0 -0
- package/assets/images/logo@3x.png +0 -0
- package/assets/images/sad-face.png +0 -0
- package/assets/images/sad-face@2x.png +0 -0
- package/assets/images/sad-face@3x.png +0 -0
- package/assets/images/welcome-face.png +0 -0
- package/assets/images/welcome-face@2x.png +0 -0
- package/assets/images/welcome-face@3x.png +0 -0
- package/babel.config.js +7 -0
- package/bin/cli.js +196 -0
- package/ignite/templates/app-icon/android-adaptive-background.png +0 -0
- package/ignite/templates/app-icon/android-adaptive-foreground.png +0 -0
- package/ignite/templates/app-icon/android-legacy.png +0 -0
- package/ignite/templates/app-icon/ios-universal.png +0 -0
- package/ignite/templates/component/NAME.tsx.ejs +39 -0
- package/ignite/templates/navigator/NAMENavigator.tsx.ejs +18 -0
- package/ignite/templates/screen/NAMEScreen.tsx.ejs +29 -0
- package/ignite/templates/splash-screen/logo.png +0 -0
- package/index.tsx +9 -0
- package/jest.config.js +5 -0
- package/metro.config.js +31 -0
- package/package.json +166 -0
- package/plugins/withSplashScreen.ts +69 -0
- package/src/app/_layout.tsx +58 -0
- package/src/app/index.tsx +5 -0
- package/test/i18n.test.ts +75 -0
- package/test/mockFile.ts +6 -0
- package/test/setup.ts +58 -0
- package/test/test-tsconfig.json +8 -0
- package/tsconfig.json +52 -0
- package/types/lib.es5.d.ts +25 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
export const demoEn = {
|
|
2
|
+
demoIcon: {
|
|
3
|
+
description:
|
|
4
|
+
"A component to render a registered icon. It is wrapped in a <TouchableOpacity /> if `onPress` is provided, otherwise a <View />.",
|
|
5
|
+
useCase: {
|
|
6
|
+
icons: {
|
|
7
|
+
name: "Icons",
|
|
8
|
+
description: "List of icons registered inside the component.",
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
name: "Size",
|
|
12
|
+
description: "There's a size prop.",
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
name: "Color",
|
|
16
|
+
description: "There's a color prop.",
|
|
17
|
+
},
|
|
18
|
+
styling: {
|
|
19
|
+
name: "Styling",
|
|
20
|
+
description: "The component can be styled easily.",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
demoTextField: {
|
|
25
|
+
description: "TextField component allows for the entering and editing of text.",
|
|
26
|
+
useCase: {
|
|
27
|
+
statuses: {
|
|
28
|
+
name: "Statuses",
|
|
29
|
+
description:
|
|
30
|
+
"There is a status prop - similar to `preset` in other components, but affects component functionality as well.",
|
|
31
|
+
noStatus: {
|
|
32
|
+
label: "No Status",
|
|
33
|
+
helper: "This is the default status",
|
|
34
|
+
placeholder: "Text goes here",
|
|
35
|
+
},
|
|
36
|
+
error: {
|
|
37
|
+
label: "Error Status",
|
|
38
|
+
helper: "Status to use when there is an error",
|
|
39
|
+
placeholder: "Text goes here",
|
|
40
|
+
},
|
|
41
|
+
disabled: {
|
|
42
|
+
label: "Disabled Status",
|
|
43
|
+
helper: "Disables the editability and mutes text",
|
|
44
|
+
placeholder: "Text goes here",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
passingContent: {
|
|
48
|
+
name: "Passing Content",
|
|
49
|
+
description: "There are a few different ways to pass content.",
|
|
50
|
+
viaLabel: {
|
|
51
|
+
labelTx: "Via `label` prop",
|
|
52
|
+
helper: "Via `helper` prop",
|
|
53
|
+
placeholder: "Via `placeholder` prop",
|
|
54
|
+
},
|
|
55
|
+
rightAccessory: {
|
|
56
|
+
label: "RightAccessory",
|
|
57
|
+
helper: "This prop takes a function that returns a React element.",
|
|
58
|
+
},
|
|
59
|
+
leftAccessory: {
|
|
60
|
+
label: "LeftAccessory",
|
|
61
|
+
helper: "This prop takes a function that returns a React element.",
|
|
62
|
+
},
|
|
63
|
+
supportsMultiline: {
|
|
64
|
+
label: "Supports Multiline",
|
|
65
|
+
helper: "Enables a taller input for multiline text.",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
styling: {
|
|
69
|
+
name: "Styling",
|
|
70
|
+
description: "The component can be styled easily.",
|
|
71
|
+
styleInput: {
|
|
72
|
+
label: "Style Input",
|
|
73
|
+
helper: "Via `style` prop",
|
|
74
|
+
},
|
|
75
|
+
styleInputWrapper: {
|
|
76
|
+
label: "Style Input Wrapper",
|
|
77
|
+
helper: "Via `inputWrapperStyle` prop",
|
|
78
|
+
},
|
|
79
|
+
styleContainer: {
|
|
80
|
+
label: "Style Container",
|
|
81
|
+
helper: "Via `containerStyle` prop",
|
|
82
|
+
},
|
|
83
|
+
styleLabel: {
|
|
84
|
+
label: "Style Label & Helper",
|
|
85
|
+
helper: "Via `LabelTextProps` & `HelperTextProps` style prop",
|
|
86
|
+
},
|
|
87
|
+
styleAccessories: {
|
|
88
|
+
label: "Style Accessories",
|
|
89
|
+
helper: "Via `RightAccessory` & `LeftAccessory` style prop",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
demoToggle: {
|
|
95
|
+
description:
|
|
96
|
+
"Renders a boolean input. This is a controlled component that requires an onValueChange callback that updates the value prop in order for the component to reflect user actions. If the value prop is not updated, the component will continue to render the supplied value prop instead of the expected result of any user actions.",
|
|
97
|
+
useCase: {
|
|
98
|
+
variants: {
|
|
99
|
+
name: "Variants",
|
|
100
|
+
description:
|
|
101
|
+
"The component supports a few different variants. If heavy customization of a specific variant is needed, it can be easily refactored. The default is `checkbox`.",
|
|
102
|
+
checkbox: {
|
|
103
|
+
label: "`checkbox` variant",
|
|
104
|
+
helper: "This can be used for a single on/off input.",
|
|
105
|
+
},
|
|
106
|
+
radio: {
|
|
107
|
+
label: "`radio` variant",
|
|
108
|
+
helper: "Use this when you have multiple options.",
|
|
109
|
+
},
|
|
110
|
+
switch: {
|
|
111
|
+
label: "`switch` variant",
|
|
112
|
+
helper: "A more prominent on/off input. Has better accessibility support.",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
statuses: {
|
|
116
|
+
name: "Statuses",
|
|
117
|
+
description:
|
|
118
|
+
"There is a status prop - similar to `preset` in other components, but affects component functionality as well.",
|
|
119
|
+
noStatus: "No status - this is the default",
|
|
120
|
+
errorStatus: "Error status - use when there is an error",
|
|
121
|
+
disabledStatus: "Disabled status - disables the editability and mutes input",
|
|
122
|
+
},
|
|
123
|
+
passingContent: {
|
|
124
|
+
name: "Passing Content",
|
|
125
|
+
description: "There are a few different ways to pass content.",
|
|
126
|
+
useCase: {
|
|
127
|
+
checkBox: {
|
|
128
|
+
label: "Via `labelTx` prop",
|
|
129
|
+
helper: "Via `helperTx` prop.",
|
|
130
|
+
},
|
|
131
|
+
checkBoxMultiLine: {
|
|
132
|
+
helper: "Supports multiline - Nulla proident consectetur labore sunt ea labore. ",
|
|
133
|
+
},
|
|
134
|
+
radioChangeSides: {
|
|
135
|
+
helper: "You can change sides - Laborum labore adipisicing in eu ipsum deserunt.",
|
|
136
|
+
},
|
|
137
|
+
customCheckBox: {
|
|
138
|
+
label: "Pass in a custom checkbox icon.",
|
|
139
|
+
},
|
|
140
|
+
switch: {
|
|
141
|
+
label: "Switches can be read as text",
|
|
142
|
+
helper:
|
|
143
|
+
"By default, this option doesn't use `Text` since depending on the font, the on/off characters might look weird. Customize as needed.",
|
|
144
|
+
},
|
|
145
|
+
switchAid: {
|
|
146
|
+
label: "Or aided with an icon",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
styling: {
|
|
151
|
+
name: "Styling",
|
|
152
|
+
description: "The component can be styled easily.",
|
|
153
|
+
outerWrapper: "1 - style the input outer wrapper",
|
|
154
|
+
innerWrapper: "2 - style the input inner wrapper",
|
|
155
|
+
inputDetail: "3 - style the input detail",
|
|
156
|
+
labelTx: "You can also style the labelTx",
|
|
157
|
+
styleContainer: "Or, style the entire container",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
demoButton: {
|
|
162
|
+
description:
|
|
163
|
+
"A component that allows users to take actions and make choices. Wraps the Text component with a Pressable component.",
|
|
164
|
+
useCase: {
|
|
165
|
+
presets: {
|
|
166
|
+
name: "Presets",
|
|
167
|
+
description: "There are a few presets that are preconfigured.",
|
|
168
|
+
},
|
|
169
|
+
passingContent: {
|
|
170
|
+
name: "Passing Content",
|
|
171
|
+
description: "There are a few different ways to pass content.",
|
|
172
|
+
viaTextProps: "Via `text` Prop - Billum In",
|
|
173
|
+
children: "Children - Irure Reprehenderit",
|
|
174
|
+
rightAccessory: "RightAccessory - Duis Quis",
|
|
175
|
+
leftAccessory: "LeftAccessory - Duis Proident",
|
|
176
|
+
nestedChildren: "Nested children - proident veniam.",
|
|
177
|
+
nestedChildren2: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
|
|
178
|
+
nestedChildren3: "Occaecat aliqua irure proident veniam.",
|
|
179
|
+
multiLine:
|
|
180
|
+
"Multiline - consequat veniam veniam reprehenderit. Fugiat id nisi quis duis sunt proident mollit dolor mollit adipisicing proident deserunt.",
|
|
181
|
+
},
|
|
182
|
+
styling: {
|
|
183
|
+
name: "Styling",
|
|
184
|
+
description: "The component can be styled easily.",
|
|
185
|
+
styleContainer: "Style Container - Exercitation",
|
|
186
|
+
styleText: "Style Text - Ea Anim",
|
|
187
|
+
styleAccessories: "Style Accessories - enim ea id fugiat anim ad.",
|
|
188
|
+
pressedState: "Style Pressed State - fugiat anim",
|
|
189
|
+
},
|
|
190
|
+
disabling: {
|
|
191
|
+
name: "Disabling",
|
|
192
|
+
description:
|
|
193
|
+
"The component can be disabled, and styled based on that. Press behavior will be disabled.",
|
|
194
|
+
standard: "Disabled - standard",
|
|
195
|
+
filled: "Disabled - filled",
|
|
196
|
+
reversed: "Disabled - reversed",
|
|
197
|
+
accessory: "Disabled accessory style",
|
|
198
|
+
textStyle: "Disabled text style",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
demoListItem: {
|
|
203
|
+
description: "A styled row component that can be used in FlatList, SectionList, or by itself.",
|
|
204
|
+
useCase: {
|
|
205
|
+
height: {
|
|
206
|
+
name: "Height",
|
|
207
|
+
description: "The row can be different heights.",
|
|
208
|
+
defaultHeight: "Default height (56px)",
|
|
209
|
+
customHeight: "Custom height via `height` prop",
|
|
210
|
+
textHeight:
|
|
211
|
+
"Height determined by text content - Reprehenderit incididunt deserunt do do ea labore.",
|
|
212
|
+
longText:
|
|
213
|
+
"Limit long text to one line - Reprehenderit incididunt deserunt do do ea labore.",
|
|
214
|
+
},
|
|
215
|
+
separators: {
|
|
216
|
+
name: "Separators",
|
|
217
|
+
description: "The separator / divider is preconfigured and optional.",
|
|
218
|
+
topSeparator: "Only top separator",
|
|
219
|
+
topAndBottomSeparator: "Top and bottom separators",
|
|
220
|
+
bottomSeparator: "Only bottom separator",
|
|
221
|
+
},
|
|
222
|
+
icons: {
|
|
223
|
+
name: "Icons",
|
|
224
|
+
description: "You can customize the icons on the left or right.",
|
|
225
|
+
leftIcon: "Left icon",
|
|
226
|
+
rightIcon: "Right Icon",
|
|
227
|
+
leftRightIcons: "Left & Right Icons",
|
|
228
|
+
},
|
|
229
|
+
customLeftRight: {
|
|
230
|
+
name: "Custom Left/Right Components",
|
|
231
|
+
description: "If you need a custom left/right component, you can pass it in.",
|
|
232
|
+
customLeft: "Custom left component",
|
|
233
|
+
customRight: "Custom right component",
|
|
234
|
+
},
|
|
235
|
+
passingContent: {
|
|
236
|
+
name: "Passing Content",
|
|
237
|
+
description: "There are a few different ways to pass content.",
|
|
238
|
+
text: "Via `text` prop - reprehenderit sint",
|
|
239
|
+
children: "Children - mostrud mollit",
|
|
240
|
+
nestedChildren1: "Nested children - proident veniam.",
|
|
241
|
+
nestedChildren2: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
|
|
242
|
+
},
|
|
243
|
+
listIntegration: {
|
|
244
|
+
name: "Integrating w/ FlatList & FlashList",
|
|
245
|
+
description: "The component can be easily integrated with your favorite list interface.",
|
|
246
|
+
},
|
|
247
|
+
styling: {
|
|
248
|
+
name: "Styling",
|
|
249
|
+
description: "The component can be styled easily.",
|
|
250
|
+
styledText: "Styled Text",
|
|
251
|
+
styledContainer: "Styled Container (separators)",
|
|
252
|
+
tintedIcons: "Tinted Icons",
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
demoCard: {
|
|
257
|
+
description:
|
|
258
|
+
"Cards are useful for displaying related information in a contained way. If a ListItem displays content horizontally, a Card can be used to display content vertically.",
|
|
259
|
+
useCase: {
|
|
260
|
+
presets: {
|
|
261
|
+
name: "Presets",
|
|
262
|
+
description: "There are a few presets that are preconfigured.",
|
|
263
|
+
default: {
|
|
264
|
+
heading: "Default Preset (default)",
|
|
265
|
+
content: "Incididunt magna ut aliquip consectetur mollit dolor.",
|
|
266
|
+
footer: "Consectetur nulla non aliquip velit.",
|
|
267
|
+
},
|
|
268
|
+
reversed: {
|
|
269
|
+
heading: "Reversed Preset",
|
|
270
|
+
content: "Reprehenderit occaecat proident amet id laboris.",
|
|
271
|
+
footer: "Consectetur tempor ea non labore anim .",
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
verticalAlignment: {
|
|
275
|
+
name: "Vertical Alignment",
|
|
276
|
+
description:
|
|
277
|
+
"Depending on what's required, the card comes preconfigured with different alignment strategies.",
|
|
278
|
+
top: {
|
|
279
|
+
heading: "Top (default)",
|
|
280
|
+
content: "All content is automatically aligned to the top.",
|
|
281
|
+
footer: "Even the footer",
|
|
282
|
+
},
|
|
283
|
+
center: {
|
|
284
|
+
heading: "Center",
|
|
285
|
+
content: "Content is centered relative to the card's height.",
|
|
286
|
+
footer: "Me too!",
|
|
287
|
+
},
|
|
288
|
+
spaceBetween: {
|
|
289
|
+
heading: "Space Between",
|
|
290
|
+
content: "All content is spaced out evenly.",
|
|
291
|
+
footer: "I am where I want to be.",
|
|
292
|
+
},
|
|
293
|
+
reversed: {
|
|
294
|
+
heading: "Force Footer Bottom",
|
|
295
|
+
content: "This pushes the footer where it belongs.",
|
|
296
|
+
footer: "I'm so lonely down here.",
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
passingContent: {
|
|
300
|
+
name: "Passing Content",
|
|
301
|
+
description: "There are a few different ways to pass content.",
|
|
302
|
+
heading: "Via `heading` Prop",
|
|
303
|
+
content: "Via `content` Prop",
|
|
304
|
+
footer: "I'm so lonely down here.",
|
|
305
|
+
},
|
|
306
|
+
customComponent: {
|
|
307
|
+
name: "Custom Components",
|
|
308
|
+
description:
|
|
309
|
+
"Any of the preconfigured components can be replaced with your own. You can also add additional ones.",
|
|
310
|
+
rightComponent: "RightComponent",
|
|
311
|
+
leftComponent: "LeftComponent",
|
|
312
|
+
},
|
|
313
|
+
style: {
|
|
314
|
+
name: "Styling",
|
|
315
|
+
description: "The component can be styled easily.",
|
|
316
|
+
heading: "Style the Heading",
|
|
317
|
+
content: "Style the Content",
|
|
318
|
+
footer: "Style the Footer",
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
demoAutoImage: {
|
|
323
|
+
description: "An Image component that automatically sizes a remote or data-uri image.",
|
|
324
|
+
useCase: {
|
|
325
|
+
remoteUri: { name: "Remote URI" },
|
|
326
|
+
base64Uri: { name: "Base64 URI" },
|
|
327
|
+
scaledToFitDimensions: {
|
|
328
|
+
name: "Scaled to Fit Dimensions",
|
|
329
|
+
description:
|
|
330
|
+
"Providing a `maxWidth` and/or `maxHeight` props, the image will automatically scale while retaining it's aspect ratio. How is this different from `resizeMode: 'contain'`? Firstly, you can specify only one side's size (not both). Secondly, the image will scale to fit the desired dimensions instead of just being contained within its image-container.",
|
|
331
|
+
heightAuto: "width: 60 / height: auto",
|
|
332
|
+
widthAuto: "width: auto / height: 32",
|
|
333
|
+
bothManual: "width: 60 / height: 60",
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
demoText: {
|
|
338
|
+
description:
|
|
339
|
+
"For your text displaying needs. This component is a HOC over the built-in React Native one.",
|
|
340
|
+
useCase: {
|
|
341
|
+
presets: {
|
|
342
|
+
name: "Presets",
|
|
343
|
+
description: "There are a few presets that are preconfigured.",
|
|
344
|
+
default:
|
|
345
|
+
"default preset - Cillum eu laboris in labore. Excepteur mollit tempor reprehenderit fugiat elit et eu consequat laborum.",
|
|
346
|
+
bold: "bold preset - Tempor et ullamco cupidatat in officia. Nulla ea duis elit id sunt ipsum cillum duis deserunt nostrud ut nostrud id.",
|
|
347
|
+
subheading: "subheading preset - In Cupidatat Cillum.",
|
|
348
|
+
heading: "heading preset - Voluptate Adipis.",
|
|
349
|
+
},
|
|
350
|
+
sizes: {
|
|
351
|
+
name: "Sizes",
|
|
352
|
+
description: "There's a size prop.",
|
|
353
|
+
xs: "xs - Ea ipsum est ea ex sunt.",
|
|
354
|
+
sm: "sm - Lorem sunt adipisicin.",
|
|
355
|
+
md: "md - Consequat id do lorem.",
|
|
356
|
+
lg: "lg - Nostrud ipsum ea.",
|
|
357
|
+
xl: "xl - Eiusmod ex excepteur.",
|
|
358
|
+
xxl: "xxl - Cillum eu laboris.",
|
|
359
|
+
},
|
|
360
|
+
weights: {
|
|
361
|
+
name: "Weights",
|
|
362
|
+
description: "There's a weight prop.",
|
|
363
|
+
light:
|
|
364
|
+
"light - Nulla magna incididunt excepteur est occaecat duis culpa dolore cupidatat enim et.",
|
|
365
|
+
normal:
|
|
366
|
+
"normal - Magna incididunt dolor ut veniam veniam laboris aliqua velit ea incididunt.",
|
|
367
|
+
medium: "medium - Non duis laborum quis laboris occaecat culpa cillum.",
|
|
368
|
+
semibold: "semiBold - Exercitation magna nostrud pariatur laborum occaecat aliqua.",
|
|
369
|
+
bold: "bold - Eiusmod ullamco magna exercitation est excepteur.",
|
|
370
|
+
},
|
|
371
|
+
passingContent: {
|
|
372
|
+
name: "Passing Content",
|
|
373
|
+
description: "There are a few different ways to pass content.",
|
|
374
|
+
viaText:
|
|
375
|
+
"via `text` prop - Billum in aute fugiat proident nisi pariatur est. Cupidatat anim cillum eiusmod ad. Officia eu magna aliquip labore dolore consequat.",
|
|
376
|
+
viaTx: "via `tx` prop -",
|
|
377
|
+
children: "children - Aliqua velit irure reprehenderit eu qui amet veniam consectetur.",
|
|
378
|
+
nestedChildren: "Nested children -",
|
|
379
|
+
nestedChildren2: "Occaecat aliqua irure proident veniam.",
|
|
380
|
+
nestedChildren3: "Ullamco cupidatat officia exercitation velit non ullamco nisi..",
|
|
381
|
+
nestedChildren4: "Occaecat aliqua irure proident veniam.",
|
|
382
|
+
},
|
|
383
|
+
styling: {
|
|
384
|
+
name: "Styling",
|
|
385
|
+
description: "The component can be styled easily.",
|
|
386
|
+
text: "Consequat ullamco veniam velit mollit proident excepteur aliquip id culpa ipsum velit sint nostrud.",
|
|
387
|
+
text2:
|
|
388
|
+
"Eiusmod occaecat laboris eu ex veniam ipsum adipisicing consectetur. Magna ullamco adipisicing tempor adipisicing.",
|
|
389
|
+
text3:
|
|
390
|
+
"Eiusmod occaecat laboris eu ex veniam ipsum adipisicing consectetur. Magna ullamco adipisicing tempor adipisicing.",
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
demoHeader: {
|
|
395
|
+
description:
|
|
396
|
+
"Component that appears on many screens. Will hold navigation buttons and screen title.",
|
|
397
|
+
useCase: {
|
|
398
|
+
actionIcons: {
|
|
399
|
+
name: "Action Icons",
|
|
400
|
+
description: "You can easily pass in icons to the left or right action components.",
|
|
401
|
+
leftIconTitle: "Left Icon",
|
|
402
|
+
rightIconTitle: "Right Icon",
|
|
403
|
+
bothIconsTitle: "Both Icons",
|
|
404
|
+
},
|
|
405
|
+
actionText: {
|
|
406
|
+
name: "Action Text",
|
|
407
|
+
description: "You can easily pass in text to the left or right action components.",
|
|
408
|
+
leftTxTitle: "Via `leftTx`",
|
|
409
|
+
rightTextTitle: "Via `rightText`",
|
|
410
|
+
},
|
|
411
|
+
customActionComponents: {
|
|
412
|
+
name: "Custom Action Components",
|
|
413
|
+
description:
|
|
414
|
+
"If the icon or text options are not enough, you can pass in your own custom action component.",
|
|
415
|
+
customLeftActionTitle: "Custom Left Action",
|
|
416
|
+
},
|
|
417
|
+
titleModes: {
|
|
418
|
+
name: "Title Modes",
|
|
419
|
+
description:
|
|
420
|
+
"Title can be forced to stay in center (default) but may be cut off if it's too long. You can optionally make it adjust to the action buttons.",
|
|
421
|
+
centeredTitle: "Centered Title",
|
|
422
|
+
flexTitle: "Flex Title",
|
|
423
|
+
},
|
|
424
|
+
styling: {
|
|
425
|
+
name: "Styling",
|
|
426
|
+
description: "The component can be styled easily.",
|
|
427
|
+
styledTitle: "Styled Title",
|
|
428
|
+
styledWrapperTitle: "Styled Wrapper",
|
|
429
|
+
tintedIconsTitle: "Tinted Icons",
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
demoEmptyState: {
|
|
434
|
+
description:
|
|
435
|
+
"A component to use when there is no data to display. It can be utilized to direct the user what to do next",
|
|
436
|
+
useCase: {
|
|
437
|
+
presets: {
|
|
438
|
+
name: "Presets",
|
|
439
|
+
description:
|
|
440
|
+
"You can create different text/image sets. One is predefined called `generic`. Note, there's no default in case you want to have a completely custom EmptyState.",
|
|
441
|
+
},
|
|
442
|
+
passingContent: {
|
|
443
|
+
name: "Passing Content",
|
|
444
|
+
description: "There are a few different ways to pass content.",
|
|
445
|
+
customizeImageHeading: "Customize Image",
|
|
446
|
+
customizeImageContent: "You can pass in any image source.",
|
|
447
|
+
viaHeadingProp: "Via `heading` Prop",
|
|
448
|
+
viaContentProp: "Via `content` prop.",
|
|
449
|
+
viaButtonProp: "Via `button` Prop",
|
|
450
|
+
},
|
|
451
|
+
styling: {
|
|
452
|
+
name: "Styling",
|
|
453
|
+
description: "The component can be styled easily.",
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export default demoEn
|
|
460
|
+
export type DemoTranslations = typeof demoEn
|
|
461
|
+
|
|
462
|
+
// @demo remove-file
|