@hero-design/rn 8.99.1 → 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.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +14 -0
- package/es/index.js +29 -27
- package/lib/index.js +29 -27
- 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/OptionList.tsx +6 -4
- package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +45 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +106 -225
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +40 -0
- package/src/components/Select/MultiSelect/__tests__/utils.spec.ts +31 -0
- package/src/components/Select/MultiSelect/index.tsx +3 -2
- package/src/components/Select/MultiSelect/utils.ts +12 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +91 -193
- 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.2/rn-stats.html +4842 -0
- package/stats/8.99.3/rn-stats.html +4844 -0
- package/types/components/Select/MultiSelect/utils.d.ts +2 -0
- package/types/components/TextInput/StyledTextInput.d.ts +5 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
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
|
[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 [
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m54.3s[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 [1m18.6s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 8.99.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#3811](https://github.com/Thinkei/hero-design/pull/3811) [`4a35bdd6c7cf89d87faeef60e385818df2963a62`](https://github.com/Thinkei/hero-design/commit/4a35bdd6c7cf89d87faeef60e385818df2963a62) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Select.Multi] Support display object value
|
|
16
|
+
|
|
3
17
|
## 8.99.1
|
|
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,
|
|
@@ -19957,6 +19952,15 @@ var Option$2 = function Option(_ref) {
|
|
|
19957
19952
|
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
19958
19953
|
};
|
|
19959
19954
|
|
|
19955
|
+
var isOptionSelected = function isOptionSelected(value, option) {
|
|
19956
|
+
if (typeof option.value === 'string') {
|
|
19957
|
+
return value.includes(option.value);
|
|
19958
|
+
}
|
|
19959
|
+
return value.some(function (v) {
|
|
19960
|
+
return _deepCompareValue(v, option.value);
|
|
19961
|
+
});
|
|
19962
|
+
};
|
|
19963
|
+
|
|
19960
19964
|
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
19961
19965
|
var OptionList$1 = function OptionList(_ref) {
|
|
19962
19966
|
var keyExtractor = _ref.keyExtractor,
|
|
@@ -19971,14 +19975,14 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
19971
19975
|
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
19972
19976
|
var renderItem = function renderItem(info) {
|
|
19973
19977
|
var item = info.item;
|
|
19974
|
-
var selected = value
|
|
19978
|
+
var selected = isOptionSelected(value, item);
|
|
19975
19979
|
var onItemPress = function onItemPress() {
|
|
19976
|
-
if (value
|
|
19980
|
+
if (isOptionSelected(value, item)) {
|
|
19977
19981
|
onPress(value.filter(function (val) {
|
|
19978
|
-
return val
|
|
19982
|
+
return !_deepCompareValue(val, item.value);
|
|
19979
19983
|
}));
|
|
19980
19984
|
} else {
|
|
19981
|
-
onPress([].concat(_toConsumableArray(value), [
|
|
19985
|
+
onPress([].concat(_toConsumableArray(value), [item.value]));
|
|
19982
19986
|
}
|
|
19983
19987
|
};
|
|
19984
19988
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
@@ -20045,7 +20049,7 @@ function MultiSelect(_ref) {
|
|
|
20045
20049
|
var sections = toSections(options);
|
|
20046
20050
|
var flatOptions = toFlatOptions(options);
|
|
20047
20051
|
var displayedValue = flatOptions.filter(function (opt) {
|
|
20048
|
-
return value
|
|
20052
|
+
return isOptionSelected(value, opt);
|
|
20049
20053
|
}).map(function (opt) {
|
|
20050
20054
|
return opt.text;
|
|
20051
20055
|
}).join(', ');
|
|
@@ -41092,22 +41096,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41092
41096
|
return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
|
|
41093
41097
|
testID: testID
|
|
41094
41098
|
}, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
41099
|
+
themeHasPrefix: false,
|
|
41095
41100
|
themeVariant: "text",
|
|
41096
41101
|
pointerEvents: "none",
|
|
41097
41102
|
testID: "input-label-container",
|
|
41098
41103
|
style: [{
|
|
41099
|
-
|
|
41104
|
+
transformOrigin: 'top left'
|
|
41100
41105
|
}, {
|
|
41101
41106
|
transform: [{
|
|
41102
41107
|
translateY: focusAnimation.interpolate({
|
|
41103
41108
|
inputRange: [0, 1],
|
|
41104
41109
|
outputRange: [inputSize.height / 2, theme.space.xsmall]
|
|
41105
41110
|
})
|
|
41106
|
-
}, {
|
|
41107
|
-
translateX: focusAnimation.interpolate({
|
|
41108
|
-
inputRange: [0, 1],
|
|
41109
|
-
outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
|
|
41110
|
-
})
|
|
41111
41111
|
}, {
|
|
41112
41112
|
scale: focusAnimation.interpolate({
|
|
41113
41113
|
inputRange: [0, 1],
|
|
@@ -41126,7 +41126,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41126
41126
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
41127
41127
|
},
|
|
41128
41128
|
themeState: state
|
|
41129
|
-
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body,
|
|
41129
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
41130
|
+
numberOfLines: 1
|
|
41131
|
+
}, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
41130
41132
|
onLayout: onLayout
|
|
41131
41133
|
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
41132
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:
|
|
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,
|
|
@@ -19986,6 +19981,15 @@ var Option$2 = function Option(_ref) {
|
|
|
19986
19981
|
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
19987
19982
|
};
|
|
19988
19983
|
|
|
19984
|
+
var isOptionSelected = function isOptionSelected(value, option) {
|
|
19985
|
+
if (typeof option.value === 'string') {
|
|
19986
|
+
return value.includes(option.value);
|
|
19987
|
+
}
|
|
19988
|
+
return value.some(function (v) {
|
|
19989
|
+
return _deepCompareValue(v, option.value);
|
|
19990
|
+
});
|
|
19991
|
+
};
|
|
19992
|
+
|
|
19989
19993
|
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
19990
19994
|
var OptionList$1 = function OptionList(_ref) {
|
|
19991
19995
|
var keyExtractor = _ref.keyExtractor,
|
|
@@ -20000,14 +20004,14 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
20000
20004
|
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
20001
20005
|
var renderItem = function renderItem(info) {
|
|
20002
20006
|
var item = info.item;
|
|
20003
|
-
var selected = value
|
|
20007
|
+
var selected = isOptionSelected(value, item);
|
|
20004
20008
|
var onItemPress = function onItemPress() {
|
|
20005
|
-
if (value
|
|
20009
|
+
if (isOptionSelected(value, item)) {
|
|
20006
20010
|
onPress(value.filter(function (val) {
|
|
20007
|
-
return val
|
|
20011
|
+
return !_deepCompareValue(val, item.value);
|
|
20008
20012
|
}));
|
|
20009
20013
|
} else {
|
|
20010
|
-
onPress([].concat(_toConsumableArray(value), [
|
|
20014
|
+
onPress([].concat(_toConsumableArray(value), [item.value]));
|
|
20011
20015
|
}
|
|
20012
20016
|
};
|
|
20013
20017
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
@@ -20074,7 +20078,7 @@ function MultiSelect(_ref) {
|
|
|
20074
20078
|
var sections = toSections(options);
|
|
20075
20079
|
var flatOptions = toFlatOptions(options);
|
|
20076
20080
|
var displayedValue = flatOptions.filter(function (opt) {
|
|
20077
|
-
return value
|
|
20081
|
+
return isOptionSelected(value, opt);
|
|
20078
20082
|
}).map(function (opt) {
|
|
20079
20083
|
return opt.text;
|
|
20080
20084
|
}).join(', ');
|
|
@@ -41121,22 +41125,18 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41121
41125
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
|
|
41122
41126
|
testID: testID
|
|
41123
41127
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
41128
|
+
themeHasPrefix: false,
|
|
41124
41129
|
themeVariant: "text",
|
|
41125
41130
|
pointerEvents: "none",
|
|
41126
41131
|
testID: "input-label-container",
|
|
41127
41132
|
style: [{
|
|
41128
|
-
|
|
41133
|
+
transformOrigin: 'top left'
|
|
41129
41134
|
}, {
|
|
41130
41135
|
transform: [{
|
|
41131
41136
|
translateY: focusAnimation.interpolate({
|
|
41132
41137
|
inputRange: [0, 1],
|
|
41133
41138
|
outputRange: [inputSize.height / 2, theme.space.xsmall]
|
|
41134
41139
|
})
|
|
41135
|
-
}, {
|
|
41136
|
-
translateX: focusAnimation.interpolate({
|
|
41137
|
-
inputRange: [0, 1],
|
|
41138
|
-
outputRange: [theme.space.medium, -theme.space.xlarge + theme.space.xsmall]
|
|
41139
|
-
})
|
|
41140
41140
|
}, {
|
|
41141
41141
|
scale: focusAnimation.interpolate({
|
|
41142
41142
|
inputRange: [0, 1],
|
|
@@ -41155,7 +41155,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
41155
41155
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
41156
41156
|
},
|
|
41157
41157
|
themeState: state
|
|
41158
|
-
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body,
|
|
41158
|
+
}, "*"), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
41159
|
+
numberOfLines: 1
|
|
41160
|
+
}, label))), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
41159
41161
|
onLayout: onLayout
|
|
41160
41162
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
41161
41163
|
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={
|