@hero-design/rn 8.99.2 → 8.99.3

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 (21) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +8 -0
  3. package/es/index.js +15 -22
  4. package/lib/index.js +15 -22
  5. package/package.json +1 -1
  6. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +45 -96
  7. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +15 -32
  8. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +15 -32
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +30 -64
  10. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -11
  11. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +30 -64
  12. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +106 -225
  13. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +91 -193
  14. package/src/components/TextInput/StyledTextInput.tsx +8 -9
  15. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +42 -122
  16. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +246 -520
  17. package/src/components/TextInput/index.tsx +3 -11
  18. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +30 -64
  19. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +30 -64
  20. package/stats/8.99.3/rn-stats.html +4844 -0
  21. package/types/components/TextInput/StyledTextInput.d.ts +5 -2
@@ -1,4 +1,4 @@
1
- (node:3078) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3141) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -10,9 +10,9 @@
10
10
     ~~~~~~~~~~~~~~~~~~~
11
11
  
12
12
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
13
- created lib/index.js, es/index.js in 55.4s
13
+ created lib/index.js, es/index.js in 54.3s
14
14
  
15
15
  /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts → ., ....
16
16
  (!) Generated empty chunks
17
17
  "locales/types" and "locales/types"
18
- created ., . in 20.7s
18
+ created ., . in 18.6s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.99.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3840](https://github.com/Thinkei/hero-design/pull/3840) [`f8dbfb708ce36d07d618f9488c1245b562047e14`](https://github.com/Thinkei/hero-design/commit/f8dbfb708ce36d07d618f9488c1245b562047e14) Thanks [@ttkien](https://github.com/ttkien)! - [TextInput] fix label's position when the textinput's width scales up
8
+
9
+ - [#3844](https://github.com/Thinkei/hero-design/pull/3844) [`695ef1e857c452b98541c71c3f1c8c6cbab2d290`](https://github.com/Thinkei/hero-design/commit/695ef1e857c452b98541c71c3f1c8c6cbab2d290) Thanks [@ttkien](https://github.com/ttkien)! - [TextInput] fix Label overflow issue
10
+
3
11
  ## 8.99.2
4
12
 
5
13
  ### Patch Changes
package/es/index.js CHANGED
@@ -14562,19 +14562,19 @@ var StyledContainer$6 = index$b(View)(function (_ref) {
14562
14562
  });
14563
14563
  var StyledLabelContainerInsideTextInput = index$b(Animated.View)(function (_ref2) {
14564
14564
  var themeVariant = _ref2.themeVariant,
14565
+ themeHasPrefix = _ref2.themeHasPrefix,
14565
14566
  theme = _ref2.theme;
14566
14567
  return {
14567
14568
  flexDirection: 'row',
14568
14569
  alignItems: themeVariant === 'text' ? 'center' : 'flex-start',
14569
- justifyContent: 'center',
14570
14570
  position: 'absolute',
14571
14571
  zIndex: 1,
14572
- left: 0,
14573
- right: 0,
14572
+ left: themeHasPrefix ? theme.space.xxlarge : theme.space.medium + theme.space.small,
14573
+ right: theme.space.medium,
14574
14574
  top: -theme.__hd__.textInput.space.labelTop
14575
14575
  };
14576
14576
  });
14577
- var StyledLabelInsideTextInput = index$b(Typography.Body)(function (_ref3) {
14577
+ var StyledLabelInsideTextInput = index$b(View)(function (_ref3) {
14578
14578
  var theme = _ref3.theme,
14579
14579
  themeState = _ref3.themeState;
14580
14580
  return {
@@ -14583,10 +14583,7 @@ var StyledLabelInsideTextInput = index$b(Typography.Body)(function (_ref3) {
14583
14583
  alignItems: 'center',
14584
14584
  color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeState],
14585
14585
  marginTop: theme.__hd__.textInput.space.labelInsideTextInputMarginTop,
14586
- position: 'absolute',
14587
- zIndex: 1,
14588
- left: 0,
14589
- top: '50%'
14586
+ flexDirection: 'row'
14590
14587
  };
14591
14588
  });
14592
14589
  var StyledAsteriskLabelInsideTextInput = index$b(Typography.Body)(function (_ref4) {
@@ -14952,21 +14949,17 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
14952
14949
  state: state,
14953
14950
  prefix: prefix
14954
14951
  })), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
14952
+ themeHasPrefix: !!prefix,
14955
14953
  themeVariant: variant,
14956
14954
  pointerEvents: "none",
14957
14955
  style: [{
14958
- position: 'absolute'
14956
+ transformOrigin: 'left top'
14959
14957
  }, {
14960
14958
  transform: [{
14961
14959
  translateY: focusAnimation.interpolate({
14962
14960
  inputRange: [0, 1],
14963
14961
  outputRange: [variant !== 'textarea' ? inputSize.height / 2 : theme.space.large, theme.space.xsmall]
14964
14962
  })
14965
- }, {
14966
- translateX: focusAnimation.interpolate({
14967
- inputRange: [0, 1],
14968
- outputRange: [prefix ? theme.space.xxlarge : theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
14969
- })
14970
14963
  }, {
14971
14964
  scale: focusAnimation.interpolate({
14972
14965
  inputRange: [0, 1],
@@ -14987,7 +14980,9 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
14987
14980
  },
14988
14981
  themeState: state,
14989
14982
  testID: "input-label-asterisk"
14990
- }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
14983
+ }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
14984
+ numberOfLines: 1
14985
+ }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
14991
14986
  variant: variant,
14992
14987
  nativeInputProps: nativeInputProps,
14993
14988
  renderInputValue: renderInputValue,
@@ -41101,22 +41096,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
41101
41096
  return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
41102
41097
  testID: testID
41103
41098
  }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
41099
+ themeHasPrefix: false,
41104
41100
  themeVariant: "text",
41105
41101
  pointerEvents: "none",
41106
41102
  testID: "input-label-container",
41107
41103
  style: [{
41108
- position: 'absolute'
41104
+ transformOrigin: 'top left'
41109
41105
  }, {
41110
41106
  transform: [{
41111
41107
  translateY: focusAnimation.interpolate({
41112
41108
  inputRange: [0, 1],
41113
41109
  outputRange: [inputSize.height / 2, theme.space.xsmall]
41114
41110
  })
41115
- }, {
41116
- translateX: focusAnimation.interpolate({
41117
- inputRange: [0, 1],
41118
- outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
41119
- })
41120
41111
  }, {
41121
41112
  scale: focusAnimation.interpolate({
41122
41113
  inputRange: [0, 1],
@@ -41135,7 +41126,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
41135
41126
  backgroundColor: theme.__hd__.textInput.colors.labelBackground
41136
41127
  },
41137
41128
  themeState: state
41138
- }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
41129
+ }, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
41130
+ numberOfLines: 1
41131
+ }, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
41139
41132
  onLayout: onLayout
41140
41133
  }, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
41141
41134
  themeState: state,
package/lib/index.js CHANGED
@@ -14591,19 +14591,19 @@ var StyledContainer$6 = index$b(reactNative.View)(function (_ref) {
14591
14591
  });
14592
14592
  var StyledLabelContainerInsideTextInput = index$b(reactNative.Animated.View)(function (_ref2) {
14593
14593
  var themeVariant = _ref2.themeVariant,
14594
+ themeHasPrefix = _ref2.themeHasPrefix,
14594
14595
  theme = _ref2.theme;
14595
14596
  return {
14596
14597
  flexDirection: 'row',
14597
14598
  alignItems: themeVariant === 'text' ? 'center' : 'flex-start',
14598
- justifyContent: 'center',
14599
14599
  position: 'absolute',
14600
14600
  zIndex: 1,
14601
- left: 0,
14602
- right: 0,
14601
+ left: themeHasPrefix ? theme.space.xxlarge : theme.space.medium + theme.space.small,
14602
+ right: theme.space.medium,
14603
14603
  top: -theme.__hd__.textInput.space.labelTop
14604
14604
  };
14605
14605
  });
14606
- var StyledLabelInsideTextInput = index$b(Typography.Body)(function (_ref3) {
14606
+ var StyledLabelInsideTextInput = index$b(reactNative.View)(function (_ref3) {
14607
14607
  var theme = _ref3.theme,
14608
14608
  themeState = _ref3.themeState;
14609
14609
  return {
@@ -14612,10 +14612,7 @@ var StyledLabelInsideTextInput = index$b(Typography.Body)(function (_ref3) {
14612
14612
  alignItems: 'center',
14613
14613
  color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeState],
14614
14614
  marginTop: theme.__hd__.textInput.space.labelInsideTextInputMarginTop,
14615
- position: 'absolute',
14616
- zIndex: 1,
14617
- left: 0,
14618
- top: '50%'
14615
+ flexDirection: 'row'
14619
14616
  };
14620
14617
  });
14621
14618
  var StyledAsteriskLabelInsideTextInput = index$b(Typography.Body)(function (_ref4) {
@@ -14981,21 +14978,17 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
14981
14978
  state: state,
14982
14979
  prefix: prefix
14983
14980
  })), /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
14981
+ themeHasPrefix: !!prefix,
14984
14982
  themeVariant: variant,
14985
14983
  pointerEvents: "none",
14986
14984
  style: [{
14987
- position: 'absolute'
14985
+ transformOrigin: 'left top'
14988
14986
  }, {
14989
14987
  transform: [{
14990
14988
  translateY: focusAnimation.interpolate({
14991
14989
  inputRange: [0, 1],
14992
14990
  outputRange: [variant !== 'textarea' ? inputSize.height / 2 : theme.space.large, theme.space.xsmall]
14993
14991
  })
14994
- }, {
14995
- translateX: focusAnimation.interpolate({
14996
- inputRange: [0, 1],
14997
- outputRange: [prefix ? theme.space.xxlarge : theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
14998
- })
14999
14992
  }, {
15000
14993
  scale: focusAnimation.interpolate({
15001
14994
  inputRange: [0, 1],
@@ -15016,7 +15009,9 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
15016
15009
  },
15017
15010
  themeState: state,
15018
15011
  testID: "input-label-asterisk"
15019
- }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
15012
+ }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
15013
+ numberOfLines: 1
15014
+ }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
15020
15015
  variant: variant,
15021
15016
  nativeInputProps: nativeInputProps,
15022
15017
  renderInputValue: renderInputValue,
@@ -41130,22 +41125,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
41130
41125
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
41131
41126
  testID: testID
41132
41127
  }, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
41128
+ themeHasPrefix: false,
41133
41129
  themeVariant: "text",
41134
41130
  pointerEvents: "none",
41135
41131
  testID: "input-label-container",
41136
41132
  style: [{
41137
- position: 'absolute'
41133
+ transformOrigin: 'top left'
41138
41134
  }, {
41139
41135
  transform: [{
41140
41136
  translateY: focusAnimation.interpolate({
41141
41137
  inputRange: [0, 1],
41142
41138
  outputRange: [inputSize.height / 2, theme.space.xsmall]
41143
41139
  })
41144
- }, {
41145
- translateX: focusAnimation.interpolate({
41146
- inputRange: [0, 1],
41147
- outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
41148
- })
41149
41140
  }, {
41150
41141
  scale: focusAnimation.interpolate({
41151
41142
  inputRange: [0, 1],
@@ -41164,7 +41155,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
41164
41155
  backgroundColor: theme.__hd__.textInput.colors.labelBackground
41165
41156
  },
41166
41157
  themeState: state
41167
- }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
41158
+ }, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
41159
+ numberOfLines: 1
41160
+ }, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
41168
41161
  onLayout: onLayout
41169
41162
  }, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
41170
41163
  themeState: state,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.99.2",
3
+ "version": "8.99.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -106,64 +106,47 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
106
106
  {
107
107
  "alignItems": "center",
108
108
  "flexDirection": "row",
109
- "justifyContent": "center",
110
- "left": 0,
109
+ "left": 24,
111
110
  "position": "absolute",
112
- "right": 0,
111
+ "right": 16,
113
112
  "top": -10.666666666666666,
114
113
  "transform": [
115
114
  {
116
115
  "translateY": 0,
117
116
  },
118
- {
119
- "translateX": 16,
120
- },
121
117
  {
122
118
  "scale": 1,
123
119
  },
124
120
  ],
121
+ "transformOrigin": "left top",
125
122
  "zIndex": 1,
126
123
  }
127
124
  }
125
+ themeHasPrefix={false}
128
126
  themeVariant="text"
129
127
  >
130
- <Text
131
- allowFontScaling={false}
128
+ <View
132
129
  style={
133
130
  [
134
131
  {
132
+ "alignContent": "center",
133
+ "alignItems": "center",
135
134
  "color": "#001f23",
136
- "fontFamily": "BeVietnamPro-Regular",
137
- "fontSize": 16,
138
- "letterSpacing": 0.48,
139
- "lineHeight": 24,
135
+ "flexDirection": "row",
136
+ "marginTop": -2,
137
+ "textAlignVertical": "center",
138
+ },
139
+ {
140
+ "backgroundColor": "#ffffff",
140
141
  },
141
- [
142
- {
143
- "alignContent": "center",
144
- "alignItems": "center",
145
- "color": "#001f23",
146
- "left": 0,
147
- "marginTop": -2,
148
- "position": "absolute",
149
- "textAlignVertical": "center",
150
- "top": "50%",
151
- "zIndex": 1,
152
- },
153
- {
154
- "backgroundColor": "#ffffff",
155
- },
156
- ],
157
142
  ]
158
143
  }
159
144
  testID="input-label"
160
- themeIntent="body"
161
145
  themeState="filled"
162
- themeTypeface="neutral"
163
- themeVariant="regular"
164
146
  >
165
147
  <Text
166
148
  allowFontScaling={false}
149
+ numberOfLines={1}
167
150
  style={
168
151
  [
169
152
  {
@@ -182,7 +165,7 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
182
165
  >
183
166
  Start date
184
167
  </Text>
185
- </Text>
168
+ </View>
186
169
  </View>
187
170
  <View
188
171
  style={
@@ -408,64 +391,47 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
408
391
  {
409
392
  "alignItems": "center",
410
393
  "flexDirection": "row",
411
- "justifyContent": "center",
412
- "left": 0,
394
+ "left": 24,
413
395
  "position": "absolute",
414
- "right": 0,
396
+ "right": 16,
415
397
  "top": -10.666666666666666,
416
398
  "transform": [
417
399
  {
418
400
  "translateY": 0,
419
401
  },
420
- {
421
- "translateX": 16,
422
- },
423
402
  {
424
403
  "scale": 1,
425
404
  },
426
405
  ],
406
+ "transformOrigin": "left top",
427
407
  "zIndex": 1,
428
408
  }
429
409
  }
410
+ themeHasPrefix={false}
430
411
  themeVariant="text"
431
412
  >
432
- <Text
433
- allowFontScaling={false}
413
+ <View
434
414
  style={
435
415
  [
436
416
  {
417
+ "alignContent": "center",
418
+ "alignItems": "center",
437
419
  "color": "#001f23",
438
- "fontFamily": "BeVietnamPro-Regular",
439
- "fontSize": 16,
440
- "letterSpacing": 0.48,
441
- "lineHeight": 24,
420
+ "flexDirection": "row",
421
+ "marginTop": -2,
422
+ "textAlignVertical": "center",
423
+ },
424
+ {
425
+ "backgroundColor": "#ffffff",
442
426
  },
443
- [
444
- {
445
- "alignContent": "center",
446
- "alignItems": "center",
447
- "color": "#001f23",
448
- "left": 0,
449
- "marginTop": -2,
450
- "position": "absolute",
451
- "textAlignVertical": "center",
452
- "top": "50%",
453
- "zIndex": 1,
454
- },
455
- {
456
- "backgroundColor": "#ffffff",
457
- },
458
- ],
459
427
  ]
460
428
  }
461
429
  testID="input-label"
462
- themeIntent="body"
463
430
  themeState="filled"
464
- themeTypeface="neutral"
465
- themeVariant="regular"
466
431
  >
467
432
  <Text
468
433
  allowFontScaling={false}
434
+ numberOfLines={1}
469
435
  style={
470
436
  [
471
437
  {
@@ -484,7 +450,7 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
484
450
  >
485
451
  Start date
486
452
  </Text>
487
- </Text>
453
+ </View>
488
454
  </View>
489
455
  <View
490
456
  style={
@@ -710,64 +676,47 @@ exports[`DatePicker renders variant Calendar 1`] = `
710
676
  {
711
677
  "alignItems": "center",
712
678
  "flexDirection": "row",
713
- "justifyContent": "center",
714
- "left": 0,
679
+ "left": 24,
715
680
  "position": "absolute",
716
- "right": 0,
681
+ "right": 16,
717
682
  "top": -10.666666666666666,
718
683
  "transform": [
719
684
  {
720
685
  "translateY": 0,
721
686
  },
722
- {
723
- "translateX": 16,
724
- },
725
687
  {
726
688
  "scale": 1,
727
689
  },
728
690
  ],
691
+ "transformOrigin": "left top",
729
692
  "zIndex": 1,
730
693
  }
731
694
  }
695
+ themeHasPrefix={false}
732
696
  themeVariant="text"
733
697
  >
734
- <Text
735
- allowFontScaling={false}
698
+ <View
736
699
  style={
737
700
  [
738
701
  {
702
+ "alignContent": "center",
703
+ "alignItems": "center",
739
704
  "color": "#001f23",
740
- "fontFamily": "BeVietnamPro-Regular",
741
- "fontSize": 16,
742
- "letterSpacing": 0.48,
743
- "lineHeight": 24,
705
+ "flexDirection": "row",
706
+ "marginTop": -2,
707
+ "textAlignVertical": "center",
708
+ },
709
+ {
710
+ "backgroundColor": "#ffffff",
744
711
  },
745
- [
746
- {
747
- "alignContent": "center",
748
- "alignItems": "center",
749
- "color": "#001f23",
750
- "left": 0,
751
- "marginTop": -2,
752
- "position": "absolute",
753
- "textAlignVertical": "center",
754
- "top": "50%",
755
- "zIndex": 1,
756
- },
757
- {
758
- "backgroundColor": "#ffffff",
759
- },
760
- ],
761
712
  ]
762
713
  }
763
714
  testID="input-label"
764
- themeIntent="body"
765
715
  themeState="filled"
766
- themeTypeface="neutral"
767
- themeVariant="regular"
768
716
  >
769
717
  <Text
770
718
  allowFontScaling={false}
719
+ numberOfLines={1}
771
720
  style={
772
721
  [
773
722
  {
@@ -786,7 +735,7 @@ exports[`DatePicker renders variant Calendar 1`] = `
786
735
  >
787
736
  Start date
788
737
  </Text>
789
- </Text>
738
+ </View>
790
739
  </View>
791
740
  <View
792
741
  style={
@@ -106,64 +106,47 @@ exports[`DatePickerAndroid renders correctly 1`] = `
106
106
  {
107
107
  "alignItems": "center",
108
108
  "flexDirection": "row",
109
- "justifyContent": "center",
110
- "left": 0,
109
+ "left": 24,
111
110
  "position": "absolute",
112
- "right": 0,
111
+ "right": 16,
113
112
  "top": -10.666666666666666,
114
113
  "transform": [
115
114
  {
116
115
  "translateY": 0,
117
116
  },
118
- {
119
- "translateX": 16,
120
- },
121
117
  {
122
118
  "scale": 1,
123
119
  },
124
120
  ],
121
+ "transformOrigin": "left top",
125
122
  "zIndex": 1,
126
123
  }
127
124
  }
125
+ themeHasPrefix={false}
128
126
  themeVariant="text"
129
127
  >
130
- <Text
131
- allowFontScaling={false}
128
+ <View
132
129
  style={
133
130
  [
134
131
  {
132
+ "alignContent": "center",
133
+ "alignItems": "center",
135
134
  "color": "#001f23",
136
- "fontFamily": "BeVietnamPro-Regular",
137
- "fontSize": 16,
138
- "letterSpacing": 0.48,
139
- "lineHeight": 24,
135
+ "flexDirection": "row",
136
+ "marginTop": -2,
137
+ "textAlignVertical": "center",
138
+ },
139
+ {
140
+ "backgroundColor": "#ffffff",
140
141
  },
141
- [
142
- {
143
- "alignContent": "center",
144
- "alignItems": "center",
145
- "color": "#001f23",
146
- "left": 0,
147
- "marginTop": -2,
148
- "position": "absolute",
149
- "textAlignVertical": "center",
150
- "top": "50%",
151
- "zIndex": 1,
152
- },
153
- {
154
- "backgroundColor": "#ffffff",
155
- },
156
- ],
157
142
  ]
158
143
  }
159
144
  testID="input-label"
160
- themeIntent="body"
161
145
  themeState="filled"
162
- themeTypeface="neutral"
163
- themeVariant="regular"
164
146
  >
165
147
  <Text
166
148
  allowFontScaling={false}
149
+ numberOfLines={1}
167
150
  style={
168
151
  [
169
152
  {
@@ -182,7 +165,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
182
165
  >
183
166
  Start date
184
167
  </Text>
185
- </Text>
168
+ </View>
186
169
  </View>
187
170
  <View
188
171
  style={