unicorn-demo-app 7.25.0 → 7.26.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/package.json
CHANGED
|
@@ -1899,6 +1899,8 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
1899
1899
|
}
|
|
1900
1900
|
>
|
|
1901
1901
|
<Image
|
|
1902
|
+
accessibilityRole="image"
|
|
1903
|
+
accessible={false}
|
|
1902
1904
|
source={
|
|
1903
1905
|
{
|
|
1904
1906
|
"testUri": "../../../demo/src/assets/icons/info.png",
|
|
@@ -2695,6 +2697,7 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2695
2697
|
],
|
|
2696
2698
|
]
|
|
2697
2699
|
}
|
|
2700
|
+
testID="undefined.clearButton.container"
|
|
2698
2701
|
>
|
|
2699
2702
|
<View
|
|
2700
2703
|
accessibilityLabel="clear"
|
|
@@ -2753,8 +2756,6 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2753
2756
|
<Image
|
|
2754
2757
|
accessibilityRole="image"
|
|
2755
2758
|
accessible={false}
|
|
2756
|
-
assetGroup="icons"
|
|
2757
|
-
onError={[Function]}
|
|
2758
2759
|
source={
|
|
2759
2760
|
{
|
|
2760
2761
|
"testUri": "../../../src/assets/icons/xFlat.png",
|
|
@@ -2762,16 +2763,6 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2762
2763
|
}
|
|
2763
2764
|
style={
|
|
2764
2765
|
[
|
|
2765
|
-
undefined,
|
|
2766
|
-
undefined,
|
|
2767
|
-
undefined,
|
|
2768
|
-
undefined,
|
|
2769
|
-
undefined,
|
|
2770
|
-
undefined,
|
|
2771
|
-
undefined,
|
|
2772
|
-
undefined,
|
|
2773
|
-
undefined,
|
|
2774
|
-
false,
|
|
2775
2766
|
[
|
|
2776
2767
|
{
|
|
2777
2768
|
"tintColor": "#5A48F5",
|
|
@@ -2780,7 +2771,12 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2780
2771
|
"tintColor": "#A6ACB1",
|
|
2781
2772
|
},
|
|
2782
2773
|
],
|
|
2783
|
-
|
|
2774
|
+
undefined,
|
|
2775
|
+
undefined,
|
|
2776
|
+
undefined,
|
|
2777
|
+
{
|
|
2778
|
+
"tintColor": "#5A48F5",
|
|
2779
|
+
},
|
|
2784
2780
|
]
|
|
2785
2781
|
}
|
|
2786
2782
|
testID="undefined.clearButton.icon"
|
|
@@ -2788,6 +2784,8 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
2788
2784
|
</View>
|
|
2789
2785
|
</View>
|
|
2790
2786
|
<Image
|
|
2787
|
+
accessibilityRole="image"
|
|
2788
|
+
accessible={false}
|
|
2791
2789
|
source={
|
|
2792
2790
|
{
|
|
2793
2791
|
"testUri": "../../../demo/src/assets/icons/search.png",
|
|
@@ -3427,8 +3425,6 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
3427
3425
|
<Image
|
|
3428
3426
|
accessibilityRole="image"
|
|
3429
3427
|
accessible={false}
|
|
3430
|
-
assetGroup="icons"
|
|
3431
|
-
onError={[Function]}
|
|
3432
3428
|
source={
|
|
3433
3429
|
{
|
|
3434
3430
|
"testUri": "../../../demo/src/assets/icons/search.png",
|
|
@@ -3436,23 +3432,18 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
3436
3432
|
}
|
|
3437
3433
|
style={
|
|
3438
3434
|
[
|
|
3439
|
-
undefined,
|
|
3440
|
-
undefined,
|
|
3441
|
-
undefined,
|
|
3442
|
-
undefined,
|
|
3443
|
-
undefined,
|
|
3444
|
-
undefined,
|
|
3445
|
-
undefined,
|
|
3446
|
-
undefined,
|
|
3447
|
-
undefined,
|
|
3448
|
-
false,
|
|
3449
3435
|
[
|
|
3450
3436
|
{
|
|
3451
3437
|
"tintColor": "#20303C",
|
|
3452
3438
|
},
|
|
3453
3439
|
undefined,
|
|
3454
3440
|
],
|
|
3455
|
-
|
|
3441
|
+
undefined,
|
|
3442
|
+
undefined,
|
|
3443
|
+
undefined,
|
|
3444
|
+
{
|
|
3445
|
+
"tintColor": "#20303C",
|
|
3446
|
+
},
|
|
3456
3447
|
]
|
|
3457
3448
|
}
|
|
3458
3449
|
testID="undefined.icon"
|
|
@@ -5398,6 +5389,8 @@ exports[`TextField Screen renders screen 1`] = `
|
|
|
5398
5389
|
}
|
|
5399
5390
|
>
|
|
5400
5391
|
<Image
|
|
5392
|
+
accessibilityRole="image"
|
|
5393
|
+
accessible={false}
|
|
5401
5394
|
marginL-s1={true}
|
|
5402
5395
|
source={
|
|
5403
5396
|
{
|
|
@@ -82,6 +82,7 @@ const dialogOptions = [
|
|
|
82
82
|
{label: 'Option 7', value: 6},
|
|
83
83
|
{label: 'Option 8', value: 6}
|
|
84
84
|
];
|
|
85
|
+
|
|
85
86
|
export default class PickerScreen extends Component {
|
|
86
87
|
picker = React.createRef<PickerMethods>();
|
|
87
88
|
state = {
|
|
@@ -99,7 +100,7 @@ export default class PickerScreen extends Component {
|
|
|
99
100
|
contact: 0
|
|
100
101
|
};
|
|
101
102
|
|
|
102
|
-
renderDialog: PickerProps['
|
|
103
|
+
renderDialog: PickerProps['renderOverlay'] = (modalProps: RenderCustomModalProps) => {
|
|
103
104
|
const {visible, children, toggleModal, onDone} = modalProps;
|
|
104
105
|
return (
|
|
105
106
|
<Incubator.Dialog
|
|
@@ -128,6 +129,7 @@ export default class PickerScreen extends Component {
|
|
|
128
129
|
<Text text40 $textDefault>
|
|
129
130
|
Picker
|
|
130
131
|
</Text>
|
|
132
|
+
|
|
131
133
|
<Picker
|
|
132
134
|
placeholder="Favorite Language"
|
|
133
135
|
floatingPlaceholder
|
|
@@ -170,7 +172,7 @@ export default class PickerScreen extends Component {
|
|
|
170
172
|
onChange={items => this.setState({customModalValues: items})}
|
|
171
173
|
mode={Picker.modes.MULTI}
|
|
172
174
|
trailingAccessory={dropdownIcon}
|
|
173
|
-
|
|
175
|
+
renderOverlay={this.renderDialog}
|
|
174
176
|
items={options}
|
|
175
177
|
/>
|
|
176
178
|
|
|
@@ -183,7 +185,7 @@ export default class PickerScreen extends Component {
|
|
|
183
185
|
onChange={item => this.setState({option: item})}
|
|
184
186
|
topBarProps={{title: 'Languages'}}
|
|
185
187
|
useDialog
|
|
186
|
-
|
|
188
|
+
renderHeader={({onDone, onCancel}) => (
|
|
187
189
|
<View padding-s5 row spread>
|
|
188
190
|
<Button link label="Cancel" onPress={onCancel}/>
|
|
189
191
|
<Button link label="Done" onPress={onDone}/>
|
|
@@ -194,13 +196,14 @@ export default class PickerScreen extends Component {
|
|
|
194
196
|
searchPlaceholder={'Search a language'}
|
|
195
197
|
items={dialogOptions}
|
|
196
198
|
/>
|
|
199
|
+
|
|
197
200
|
<Text marginB-10 text70 $textDefault>
|
|
198
201
|
Custom Picker:
|
|
199
202
|
</Text>
|
|
200
203
|
<Picker
|
|
201
204
|
value={this.state.filter}
|
|
202
205
|
onChange={filter => this.setState({filter})}
|
|
203
|
-
|
|
206
|
+
renderInput={(_value?: any, label?: string) => {
|
|
204
207
|
return (
|
|
205
208
|
<View row>
|
|
206
209
|
<Icon
|
|
@@ -216,6 +219,7 @@ export default class PickerScreen extends Component {
|
|
|
216
219
|
}}
|
|
217
220
|
items={filters}
|
|
218
221
|
/>
|
|
222
|
+
|
|
219
223
|
<Text marginT-20 marginB-10 text70 $textDefault>
|
|
220
224
|
Custom Picker Items:
|
|
221
225
|
</Text>
|
|
@@ -225,7 +229,7 @@ export default class PickerScreen extends Component {
|
|
|
225
229
|
onChange={contact => {
|
|
226
230
|
this.setState({contact});
|
|
227
231
|
}}
|
|
228
|
-
|
|
232
|
+
renderInput={(contactValue?: number) => {
|
|
229
233
|
const contact = contacts[contactValue!] ?? undefined;
|
|
230
234
|
return (
|
|
231
235
|
<View row>
|
|
@@ -252,6 +256,7 @@ export default class PickerScreen extends Component {
|
|
|
252
256
|
style={{alignSelf: 'flex-start'}}
|
|
253
257
|
onPress={() => this.picker.current?.openExpandable?.()}
|
|
254
258
|
/>
|
|
259
|
+
|
|
255
260
|
<Text text60 marginT-s5>
|
|
256
261
|
Different Field Types
|
|
257
262
|
</Text>
|