@hero-design/rn 8.99.2 → 8.99.4-alpha.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +14 -0
- package/es/index.js +18 -23
- package/lib/index.js +18 -23
- package/package.json +1 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +45 -96
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +15 -32
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +15 -32
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +30 -64
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +30 -64
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +106 -225
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +91 -193
- package/src/components/Tabs/StyledScrollableTabs.tsx +3 -2
- package/src/components/TextInput/StyledTextInput.tsx +8 -9
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +42 -122
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +246 -520
- package/src/components/TextInput/index.tsx +3 -11
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +30 -64
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +30 -64
- package/stats/8.99.3/rn-stats.html +4842 -0
- package/types/components/TextInput/StyledTextInput.d.ts +5 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:4110) 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
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
11
|
[39m
|
|
12
12
|
[1m[33m(!) [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.[39m[22m
|
|
13
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m55.
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m55.1s[22m[39m
|
|
14
14
|
[36m
|
|
15
15
|
[1m/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[22m → [1m., .[22m...[39m
|
|
16
16
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
17
17
|
"locales/types" and "locales/types"
|
|
18
|
-
[32mcreated [1m., .[22m in [
|
|
18
|
+
[32mcreated [1m., .[22m in [1m19.6s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.99.4-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`53585546fb22f193a31fb7c9eaf48039cfe85061`](https://github.com/Thinkei/hero-design/commit/53585546fb22f193a31fb7c9eaf48039cfe85061) Thanks [@ttkien](https://github.com/ttkien)! - [Tab.Scroll] change the logic to workround fix android layout issue <= 27
|
|
8
|
+
|
|
9
|
+
## 8.99.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
15
|
+
- [#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
|
|
16
|
+
|
|
3
17
|
## 8.99.2
|
|
4
18
|
|
|
5
19
|
### 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:
|
|
14573
|
-
right:
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
@@ -20911,7 +20906,9 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20911
20906
|
});
|
|
20912
20907
|
};
|
|
20913
20908
|
|
|
20914
|
-
|
|
20909
|
+
// Checks if the platform is Android 7x and 8.x, i.e., API levels 24 to 27 (Android 7.0 to 8.1),
|
|
20910
|
+
// which may require special handling due to known platform-specific issues with layout or styling.
|
|
20911
|
+
var isAndroid8 = Platform.OS === 'android' && 24 <= Platform.Version && Platform.Version <= 27;
|
|
20915
20912
|
var TabScreen = index$b(View)({
|
|
20916
20913
|
flex: 1
|
|
20917
20914
|
});
|
|
@@ -41101,22 +41098,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41101
41098
|
return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
|
|
41102
41099
|
testID: testID
|
|
41103
41100
|
}, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
41101
|
+
themeHasPrefix: false,
|
|
41104
41102
|
themeVariant: "text",
|
|
41105
41103
|
pointerEvents: "none",
|
|
41106
41104
|
testID: "input-label-container",
|
|
41107
41105
|
style: [{
|
|
41108
|
-
|
|
41106
|
+
transformOrigin: 'top left'
|
|
41109
41107
|
}, {
|
|
41110
41108
|
transform: [{
|
|
41111
41109
|
translateY: focusAnimation.interpolate({
|
|
41112
41110
|
inputRange: [0, 1],
|
|
41113
41111
|
outputRange: [inputSize.height / 2, theme.space.xsmall]
|
|
41114
41112
|
})
|
|
41115
|
-
}, {
|
|
41116
|
-
translateX: focusAnimation.interpolate({
|
|
41117
|
-
inputRange: [0, 1],
|
|
41118
|
-
outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
|
|
41119
|
-
})
|
|
41120
41113
|
}, {
|
|
41121
41114
|
scale: focusAnimation.interpolate({
|
|
41122
41115
|
inputRange: [0, 1],
|
|
@@ -41135,7 +41128,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41135
41128
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
41136
41129
|
},
|
|
41137
41130
|
themeState: state
|
|
41138
|
-
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body,
|
|
41131
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
41132
|
+
numberOfLines: 1
|
|
41133
|
+
}, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
41139
41134
|
onLayout: onLayout
|
|
41140
41135
|
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
41141
41136
|
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:
|
|
14602
|
-
right:
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
@@ -20940,7 +20935,9 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20940
20935
|
});
|
|
20941
20936
|
};
|
|
20942
20937
|
|
|
20943
|
-
|
|
20938
|
+
// Checks if the platform is Android 7x and 8.x, i.e., API levels 24 to 27 (Android 7.0 to 8.1),
|
|
20939
|
+
// which may require special handling due to known platform-specific issues with layout or styling.
|
|
20940
|
+
var isAndroid8 = reactNative.Platform.OS === 'android' && 24 <= reactNative.Platform.Version && reactNative.Platform.Version <= 27;
|
|
20944
20941
|
var TabScreen = index$b(reactNative.View)({
|
|
20945
20942
|
flex: 1
|
|
20946
20943
|
});
|
|
@@ -41130,22 +41127,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41130
41127
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
|
|
41131
41128
|
testID: testID
|
|
41132
41129
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
41130
|
+
themeHasPrefix: false,
|
|
41133
41131
|
themeVariant: "text",
|
|
41134
41132
|
pointerEvents: "none",
|
|
41135
41133
|
testID: "input-label-container",
|
|
41136
41134
|
style: [{
|
|
41137
|
-
|
|
41135
|
+
transformOrigin: 'top left'
|
|
41138
41136
|
}, {
|
|
41139
41137
|
transform: [{
|
|
41140
41138
|
translateY: focusAnimation.interpolate({
|
|
41141
41139
|
inputRange: [0, 1],
|
|
41142
41140
|
outputRange: [inputSize.height / 2, theme.space.xsmall]
|
|
41143
41141
|
})
|
|
41144
|
-
}, {
|
|
41145
|
-
translateX: focusAnimation.interpolate({
|
|
41146
|
-
inputRange: [0, 1],
|
|
41147
|
-
outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
|
|
41148
|
-
})
|
|
41149
41142
|
}, {
|
|
41150
41143
|
scale: focusAnimation.interpolate({
|
|
41151
41144
|
inputRange: [0, 1],
|
|
@@ -41164,7 +41157,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41164
41157
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
41165
41158
|
},
|
|
41166
41159
|
themeState: state
|
|
41167
|
-
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body,
|
|
41160
|
+
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
41161
|
+
numberOfLines: 1
|
|
41162
|
+
}, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
41168
41163
|
onLayout: onLayout
|
|
41169
41164
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
41170
41165
|
themeState: state,
|
package/package.json
CHANGED
|
@@ -106,64 +106,47 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
|
|
|
106
106
|
{
|
|
107
107
|
"alignItems": "center",
|
|
108
108
|
"flexDirection": "row",
|
|
109
|
-
"
|
|
110
|
-
"left": 0,
|
|
109
|
+
"left": 24,
|
|
111
110
|
"position": "absolute",
|
|
112
|
-
"right":
|
|
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
|
-
<
|
|
131
|
-
allowFontScaling={false}
|
|
128
|
+
<View
|
|
132
129
|
style={
|
|
133
130
|
[
|
|
134
131
|
{
|
|
132
|
+
"alignContent": "center",
|
|
133
|
+
"alignItems": "center",
|
|
135
134
|
"color": "#001f23",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
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
|
-
</
|
|
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
|
-
"
|
|
412
|
-
"left": 0,
|
|
394
|
+
"left": 24,
|
|
413
395
|
"position": "absolute",
|
|
414
|
-
"right":
|
|
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
|
-
<
|
|
433
|
-
allowFontScaling={false}
|
|
413
|
+
<View
|
|
434
414
|
style={
|
|
435
415
|
[
|
|
436
416
|
{
|
|
417
|
+
"alignContent": "center",
|
|
418
|
+
"alignItems": "center",
|
|
437
419
|
"color": "#001f23",
|
|
438
|
-
"
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
|
|
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
|
-
</
|
|
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
|
-
"
|
|
714
|
-
"left": 0,
|
|
679
|
+
"left": 24,
|
|
715
680
|
"position": "absolute",
|
|
716
|
-
"right":
|
|
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
|
-
<
|
|
735
|
-
allowFontScaling={false}
|
|
698
|
+
<View
|
|
736
699
|
style={
|
|
737
700
|
[
|
|
738
701
|
{
|
|
702
|
+
"alignContent": "center",
|
|
703
|
+
"alignItems": "center",
|
|
739
704
|
"color": "#001f23",
|
|
740
|
-
"
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
|
|
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
|
-
</
|
|
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
|
-
"
|
|
110
|
-
"left": 0,
|
|
109
|
+
"left": 24,
|
|
111
110
|
"position": "absolute",
|
|
112
|
-
"right":
|
|
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
|
-
<
|
|
131
|
-
allowFontScaling={false}
|
|
128
|
+
<View
|
|
132
129
|
style={
|
|
133
130
|
[
|
|
134
131
|
{
|
|
132
|
+
"alignContent": "center",
|
|
133
|
+
"alignItems": "center",
|
|
135
134
|
"color": "#001f23",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
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
|
-
</
|
|
168
|
+
</View>
|
|
186
169
|
</View>
|
|
187
170
|
<View
|
|
188
171
|
style={
|