@hero-design/rn 8.63.4-alpha.0 → 8.64.1
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 +5 -0
- package/CHANGELOG.md +12 -0
- package/es/index.js +85 -38
- package/lib/index.js +85 -38
- package/package.json +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/BottomSheet/__tests__/index.spec.tsx +17 -0
- package/src/components/BottomSheet/index.tsx +6 -0
- package/src/components/Calendar/CalendarRowItem.tsx +3 -1
- package/src/components/Calendar/StyledCalendar.tsx +21 -8
- package/src/components/Calendar/__tests__/CalendarRowItem.spec.tsx +1 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +4 -2
- package/src/components/Calendar/__tests__/index.spec.tsx +7 -1
- package/src/components/Calendar/index.tsx +30 -8
- package/src/components/DatePicker/DatePickerCalendar.tsx +14 -10
- package/src/components/DatePicker/DatePickerIOS.tsx +2 -0
- package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +37 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +34 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +5 -0
- package/src/components/DatePicker/types.ts +4 -0
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +45 -24
- package/src/components/FAB/ActionGroup/index.tsx +6 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +20 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +28 -0
- package/src/components/Select/MultiSelect/index.tsx +6 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +15 -0
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +25 -0
- package/src/components/Select/SingleSelect/index.tsx +6 -0
- package/src/components/TimePicker/TimePickerIOS.tsx +2 -0
- package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +31 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -0
- package/src/components/TimePicker/types.ts +4 -0
- package/src/testHelpers/utils.ts +21 -0
- package/stats/8.64.0/rn-stats.html +4844 -0
- package/stats/8.64.1/rn-stats.html +4842 -0
- package/types/components/BottomSheet/index.d.ts +5 -1
- package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
- package/types/components/Calendar/StyledCalendar.d.ts +7 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +4 -0
- package/types/components/FAB/ActionGroup/index.d.ts +4 -0
- package/types/components/Select/MultiSelect/index.d.ts +5 -1
- package/types/components/Select/SingleSelect/index.d.ts +5 -1
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
- package/types/components/TimePicker/types.d.ts +4 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
[36m
|
|
2
|
+
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
3
|
+
[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
4
|
+
[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[39m[22m
|
|
5
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 4.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.64.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3246](https://github.com/Thinkei/hero-design/pull/3246) [`1dbb5e198`](https://github.com/Thinkei/hero-design/commit/1dbb5e1985e4b316ca08cd39c10d4d0779aaa43d) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Tabs] Fix onTabPress being called on render
|
|
8
|
+
|
|
9
|
+
## 8.64.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#3239](https://github.com/Thinkei/hero-design/pull/3239) [`a6dfbbed4`](https://github.com/Thinkei/hero-design/commit/a6dfbbed4670c47c54f6c6bc8489d27879bf48cf) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Add landscape mode support for BottomSheet, DatePicker, DatePickerCalendar, FAB, Select, TimePicker
|
|
14
|
+
|
|
3
15
|
## 8.63.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -9202,7 +9202,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9202
9202
|
style = _ref.style,
|
|
9203
9203
|
testID = _ref.testID,
|
|
9204
9204
|
_ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
|
|
9205
|
-
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding
|
|
9205
|
+
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
|
|
9206
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
9207
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
9206
9208
|
var _Dimensions$get = Dimensions.get('window'),
|
|
9207
9209
|
height = _Dimensions$get.height;
|
|
9208
9210
|
// Internal state to control modal open/close timing with animation
|
|
@@ -9265,7 +9267,8 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9265
9267
|
onRequestClose: onRequestClose,
|
|
9266
9268
|
transparent: true,
|
|
9267
9269
|
testID: testID,
|
|
9268
|
-
onShow: onOpen
|
|
9270
|
+
onShow: onOpen,
|
|
9271
|
+
supportedOrientations: supportedOrientations
|
|
9269
9272
|
}, /*#__PURE__*/React__default.createElement(StyledWrapper$9, {
|
|
9270
9273
|
pointerEvents: "box-none"
|
|
9271
9274
|
}, /*#__PURE__*/React__default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
@@ -11636,9 +11639,10 @@ var StyledCalendarHeader = index$9(View)(function (_ref2) {
|
|
|
11636
11639
|
};
|
|
11637
11640
|
});
|
|
11638
11641
|
var StyledCalendarDayNameCell = index$9(View)(function (_ref3) {
|
|
11639
|
-
var theme = _ref3.theme
|
|
11642
|
+
var theme = _ref3.theme,
|
|
11643
|
+
themeItemWidth = _ref3.themeItemWidth;
|
|
11640
11644
|
return {
|
|
11641
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11645
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11642
11646
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
11643
11647
|
alignItems: 'center',
|
|
11644
11648
|
justifyContent: 'center'
|
|
@@ -11647,7 +11651,8 @@ var StyledCalendarDayNameCell = index$9(View)(function (_ref3) {
|
|
|
11647
11651
|
var StyledCalendarCell = index$9(TouchableOpacity)(function (_ref4) {
|
|
11648
11652
|
var theme = _ref4.theme,
|
|
11649
11653
|
_ref4$variant = _ref4.variant,
|
|
11650
|
-
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant
|
|
11654
|
+
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant,
|
|
11655
|
+
themeItemWidth = _ref4.themeItemWidth;
|
|
11651
11656
|
return {
|
|
11652
11657
|
borderColor: theme.__hd__.calendar.colors.border,
|
|
11653
11658
|
borderWidth: variant === 'current' ? 1 : 0,
|
|
@@ -11655,7 +11660,7 @@ var StyledCalendarCell = index$9(TouchableOpacity)(function (_ref4) {
|
|
|
11655
11660
|
alignItems: 'center',
|
|
11656
11661
|
justifyContent: 'center',
|
|
11657
11662
|
backgroundColor: variant === 'selected' ? theme.__hd__.calendar.colors.primary : undefined,
|
|
11658
|
-
width: theme.__hd__.calendar.sizes.cellCircleWidth,
|
|
11663
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellCircleWidth,
|
|
11659
11664
|
height: theme.__hd__.calendar.sizes.cellCircleHeight
|
|
11660
11665
|
};
|
|
11661
11666
|
});
|
|
@@ -11668,21 +11673,23 @@ var StyledCalendarRow = index$9(View)(function (_ref5) {
|
|
|
11668
11673
|
};
|
|
11669
11674
|
});
|
|
11670
11675
|
var StyledCalendarRowItem = index$9(View)(function (_ref6) {
|
|
11671
|
-
var theme = _ref6.theme
|
|
11676
|
+
var theme = _ref6.theme,
|
|
11677
|
+
themeItemWidth = _ref6.themeItemWidth;
|
|
11672
11678
|
return {
|
|
11673
11679
|
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11674
11680
|
alignItems: 'center',
|
|
11675
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11681
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11676
11682
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
11677
11683
|
justifyContent: 'center'
|
|
11678
11684
|
};
|
|
11679
11685
|
});
|
|
11680
11686
|
var StyledDisabledCalendarRowItem = index$9(View)(function (_ref7) {
|
|
11681
|
-
var theme = _ref7.theme
|
|
11687
|
+
var theme = _ref7.theme,
|
|
11688
|
+
themeItemWidth = _ref7.themeItemWidth;
|
|
11682
11689
|
return {
|
|
11683
11690
|
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11684
11691
|
alignItems: 'center',
|
|
11685
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11692
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11686
11693
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
11687
11694
|
};
|
|
11688
11695
|
});
|
|
@@ -11715,9 +11722,11 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11715
11722
|
_ref$textIntent = _ref.textIntent,
|
|
11716
11723
|
textIntent = _ref$textIntent === void 0 ? 'body' : _ref$textIntent,
|
|
11717
11724
|
_ref$marked = _ref.marked,
|
|
11718
|
-
marked = _ref$marked === void 0 ? false : _ref$marked
|
|
11725
|
+
marked = _ref$marked === void 0 ? false : _ref$marked,
|
|
11726
|
+
itemWidth = _ref.itemWidth;
|
|
11719
11727
|
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11720
|
-
testID: "calendar-date-cell"
|
|
11728
|
+
testID: "calendar-date-cell",
|
|
11729
|
+
themeItemWidth: itemWidth
|
|
11721
11730
|
}, /*#__PURE__*/React__default.createElement(StyledCalendarCell, {
|
|
11722
11731
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11723
11732
|
onPress: onPress
|
|
@@ -11789,14 +11798,21 @@ var Calendar = function Calendar(_ref) {
|
|
|
11789
11798
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
11790
11799
|
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
11791
11800
|
}, {});
|
|
11792
|
-
var
|
|
11793
|
-
|
|
11794
|
-
monthPickerVisible =
|
|
11795
|
-
setMonthPickerVisible =
|
|
11796
|
-
var
|
|
11797
|
-
|
|
11798
|
-
contentHeight =
|
|
11799
|
-
setContentHeight =
|
|
11801
|
+
var _useState = useState(false),
|
|
11802
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
11803
|
+
monthPickerVisible = _useState2[0],
|
|
11804
|
+
setMonthPickerVisible = _useState2[1];
|
|
11805
|
+
var _useState3 = useState(0),
|
|
11806
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
11807
|
+
contentHeight = _useState4[0],
|
|
11808
|
+
setContentHeight = _useState4[1];
|
|
11809
|
+
var _useState5 = useState(0),
|
|
11810
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
11811
|
+
contentWidth = _useState6[0],
|
|
11812
|
+
setContentWidth = _useState6[1];
|
|
11813
|
+
var calendarItemWidth = useMemo(function () {
|
|
11814
|
+
return contentWidth > 0 ? contentWidth / 7 : undefined;
|
|
11815
|
+
}, [contentWidth]);
|
|
11800
11816
|
var useMonthPicker = onMonthChange !== noop$1;
|
|
11801
11817
|
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
11802
11818
|
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
@@ -11862,16 +11878,23 @@ var Calendar = function Calendar(_ref) {
|
|
|
11862
11878
|
onChange: onMonthChange,
|
|
11863
11879
|
style: {
|
|
11864
11880
|
height: contentHeight + theme.__hd__.calendar.space.iosPickerMarginVertical * 2,
|
|
11865
|
-
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical
|
|
11881
|
+
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical,
|
|
11882
|
+
width: contentWidth
|
|
11866
11883
|
}
|
|
11867
11884
|
})) : /*#__PURE__*/React__default.createElement(Box, {
|
|
11868
11885
|
onLayout: Platform.OS === 'ios' ? function (e) {
|
|
11869
|
-
|
|
11886
|
+
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
11887
|
+
width = _e$nativeEvent$layout.width,
|
|
11888
|
+
height = _e$nativeEvent$layout.height;
|
|
11889
|
+
setContentHeight(height);
|
|
11890
|
+
setContentWidth(width);
|
|
11870
11891
|
} : undefined
|
|
11871
11892
|
}, /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11872
11893
|
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11873
11894
|
key: day
|
|
11874
|
-
}, /*#__PURE__*/React__default.createElement(StyledCalendarDayNameCell,
|
|
11895
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarDayNameCell, {
|
|
11896
|
+
themeItemWidth: calendarItemWidth
|
|
11897
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11875
11898
|
variant: "small"
|
|
11876
11899
|
}, day)));
|
|
11877
11900
|
})), /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
@@ -11884,12 +11907,15 @@ var Calendar = function Calendar(_ref) {
|
|
|
11884
11907
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11885
11908
|
},
|
|
11886
11909
|
textIntent: "subdued",
|
|
11887
|
-
marked: parsedMaskedDate[date.toDateString()]
|
|
11910
|
+
marked: parsedMaskedDate[date.toDateString()],
|
|
11911
|
+
itemWidth: contentWidth > 0 ? contentWidth / 7 : undefined
|
|
11888
11912
|
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11913
|
+
themeItemWidth: calendarItemWidth,
|
|
11889
11914
|
testID: "calendar-disabled-cell"
|
|
11890
11915
|
});
|
|
11891
11916
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11892
11917
|
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11918
|
+
itemWidth: calendarItemWidth,
|
|
11893
11919
|
key: date.toDateString(),
|
|
11894
11920
|
date: date,
|
|
11895
11921
|
isCurrent: isEqDate(now, date),
|
|
@@ -11899,10 +11925,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11899
11925
|
},
|
|
11900
11926
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11901
11927
|
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11928
|
+
themeItemWidth: calendarItemWidth,
|
|
11902
11929
|
testID: "calendar-disabled-cell"
|
|
11903
11930
|
});
|
|
11904
11931
|
}), daysOfNextMonth.map(function (date) {
|
|
11905
11932
|
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11933
|
+
itemWidth: calendarItemWidth,
|
|
11906
11934
|
key: date.toDateString(),
|
|
11907
11935
|
date: date,
|
|
11908
11936
|
isCurrent: isEqDate(now, date),
|
|
@@ -11913,6 +11941,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11913
11941
|
textIntent: "subdued",
|
|
11914
11942
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11915
11943
|
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11944
|
+
themeItemWidth: calendarItemWidth,
|
|
11916
11945
|
testID: "calendar-disabled-cell"
|
|
11917
11946
|
});
|
|
11918
11947
|
})), Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__default.createElement(MonthYearPickerDialogueAndroid, {
|
|
@@ -13360,7 +13389,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13360
13389
|
style = _ref2.style,
|
|
13361
13390
|
testID = _ref2.testID,
|
|
13362
13391
|
monthPickerConfirmLabel = _ref2.monthPickerConfirmLabel,
|
|
13363
|
-
monthPickerCancelLabel = _ref2.monthPickerCancelLabel
|
|
13392
|
+
monthPickerCancelLabel = _ref2.monthPickerCancelLabel,
|
|
13393
|
+
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
13394
|
+
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient;
|
|
13364
13395
|
var _useState5 = useState(false),
|
|
13365
13396
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
13366
13397
|
open = _useState6[0],
|
|
@@ -13415,8 +13446,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13415
13446
|
}
|
|
13416
13447
|
setOpen(false);
|
|
13417
13448
|
}
|
|
13418
|
-
})
|
|
13419
|
-
|
|
13449
|
+
}),
|
|
13450
|
+
supportedOrientations: supportedOrientations
|
|
13451
|
+
}, /*#__PURE__*/React__default.createElement(ScrollView, null, /*#__PURE__*/React__default.createElement(InternalCalendar, {
|
|
13420
13452
|
minDate: minDate,
|
|
13421
13453
|
maxDate: maxDate,
|
|
13422
13454
|
value: value,
|
|
@@ -13426,7 +13458,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13426
13458
|
onToggleMonthPicker: function onToggleMonthPicker(visible) {
|
|
13427
13459
|
return setMonthPickerVisible(visible);
|
|
13428
13460
|
}
|
|
13429
|
-
})));
|
|
13461
|
+
}))));
|
|
13430
13462
|
};
|
|
13431
13463
|
|
|
13432
13464
|
var StyledPickerWrapper$1 = index$9(View)(function (_ref) {
|
|
@@ -13452,7 +13484,9 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13452
13484
|
error = _ref.error,
|
|
13453
13485
|
helpText = _ref.helpText,
|
|
13454
13486
|
style = _ref.style,
|
|
13455
|
-
testID = _ref.testID
|
|
13487
|
+
testID = _ref.testID,
|
|
13488
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
13489
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
13456
13490
|
var _useState = useState(getDateValue(value || new Date(), minDate, maxDate)),
|
|
13457
13491
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13458
13492
|
selectingDate = _useState2[0],
|
|
@@ -13503,7 +13537,8 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13503
13537
|
}
|
|
13504
13538
|
setOpen(false);
|
|
13505
13539
|
}
|
|
13506
|
-
})
|
|
13540
|
+
}),
|
|
13541
|
+
supportedOrientations: supportedOrientations
|
|
13507
13542
|
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
13508
13543
|
testID: "datePickerIOS",
|
|
13509
13544
|
value: selectingDate,
|
|
@@ -14781,7 +14816,9 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14781
14816
|
fabTitle = _ref.fabTitle,
|
|
14782
14817
|
onBackdropPress = _ref.onBackdropPress,
|
|
14783
14818
|
_ref$fabIcon = _ref.fabIcon,
|
|
14784
|
-
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon
|
|
14819
|
+
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon,
|
|
14820
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
14821
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
14785
14822
|
useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
|
|
14786
14823
|
var theme = useTheme();
|
|
14787
14824
|
var fabRef = useRef(null);
|
|
@@ -14837,7 +14874,8 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14837
14874
|
visible: active,
|
|
14838
14875
|
animationType: "fade",
|
|
14839
14876
|
transparent: true,
|
|
14840
|
-
statusBarTranslucent: true
|
|
14877
|
+
statusBarTranslucent: true,
|
|
14878
|
+
supportedOrientations: supportedOrientations
|
|
14841
14879
|
}, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
|
|
14842
14880
|
testID: testID,
|
|
14843
14881
|
style: [style]
|
|
@@ -16599,7 +16637,9 @@ function MultiSelect(_ref) {
|
|
|
16599
16637
|
required = _ref.required,
|
|
16600
16638
|
style = _ref.style,
|
|
16601
16639
|
testID = _ref.testID,
|
|
16602
|
-
value = _ref.value
|
|
16640
|
+
value = _ref.value,
|
|
16641
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
16642
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
16603
16643
|
var _useKeyboard = useKeyboard(),
|
|
16604
16644
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
16605
16645
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -16678,7 +16718,8 @@ function MultiSelect(_ref) {
|
|
|
16678
16718
|
var scrollParams = getScrollParams(value === null || value === void 0 ? void 0 : value[0], sections);
|
|
16679
16719
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16680
16720
|
}
|
|
16681
|
-
}
|
|
16721
|
+
},
|
|
16722
|
+
supportedOrientations: supportedOrientations
|
|
16682
16723
|
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16683
16724
|
editable: true,
|
|
16684
16725
|
placeholder: "Search",
|
|
@@ -16799,7 +16840,9 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16799
16840
|
required = _ref.required,
|
|
16800
16841
|
style = _ref.style,
|
|
16801
16842
|
testID = _ref.testID,
|
|
16802
|
-
value = _ref.value
|
|
16843
|
+
value = _ref.value,
|
|
16844
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
16845
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
16803
16846
|
var _useKeyboard = useKeyboard(),
|
|
16804
16847
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
16805
16848
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -16853,7 +16896,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16853
16896
|
var scrollParams = getScrollParams(value, sections);
|
|
16854
16897
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16855
16898
|
}
|
|
16856
|
-
}
|
|
16899
|
+
},
|
|
16900
|
+
supportedOrientations: supportedOrientations
|
|
16857
16901
|
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16858
16902
|
editable: true,
|
|
16859
16903
|
placeholder: "Search",
|
|
@@ -18215,7 +18259,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18215
18259
|
style = _ref.style,
|
|
18216
18260
|
testID = _ref.testID,
|
|
18217
18261
|
_ref$showSuffix = _ref.showSuffix,
|
|
18218
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
18262
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
18263
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
18264
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
18219
18265
|
var _useState = useState(value || new Date()),
|
|
18220
18266
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18221
18267
|
selectingDate = _useState2[0],
|
|
@@ -18261,7 +18307,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18261
18307
|
}
|
|
18262
18308
|
setOpen(false);
|
|
18263
18309
|
}
|
|
18264
|
-
})
|
|
18310
|
+
}),
|
|
18311
|
+
supportedOrientations: supportedOrientations
|
|
18265
18312
|
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
18266
18313
|
testID: "timePickerIOS",
|
|
18267
18314
|
value: selectingDate,
|
package/lib/index.js
CHANGED
|
@@ -9232,7 +9232,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9232
9232
|
style = _ref.style,
|
|
9233
9233
|
testID = _ref.testID,
|
|
9234
9234
|
_ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
|
|
9235
|
-
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding
|
|
9235
|
+
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding,
|
|
9236
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
9237
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
9236
9238
|
var _Dimensions$get = reactNative.Dimensions.get('window'),
|
|
9237
9239
|
height = _Dimensions$get.height;
|
|
9238
9240
|
// Internal state to control modal open/close timing with animation
|
|
@@ -9295,7 +9297,8 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9295
9297
|
onRequestClose: onRequestClose,
|
|
9296
9298
|
transparent: true,
|
|
9297
9299
|
testID: testID,
|
|
9298
|
-
onShow: onOpen
|
|
9300
|
+
onShow: onOpen,
|
|
9301
|
+
supportedOrientations: supportedOrientations
|
|
9299
9302
|
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
|
|
9300
9303
|
pointerEvents: "box-none"
|
|
9301
9304
|
}, /*#__PURE__*/React__default["default"].createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
@@ -11666,9 +11669,10 @@ var StyledCalendarHeader = index$9(reactNative.View)(function (_ref2) {
|
|
|
11666
11669
|
};
|
|
11667
11670
|
});
|
|
11668
11671
|
var StyledCalendarDayNameCell = index$9(reactNative.View)(function (_ref3) {
|
|
11669
|
-
var theme = _ref3.theme
|
|
11672
|
+
var theme = _ref3.theme,
|
|
11673
|
+
themeItemWidth = _ref3.themeItemWidth;
|
|
11670
11674
|
return {
|
|
11671
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11675
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11672
11676
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
11673
11677
|
alignItems: 'center',
|
|
11674
11678
|
justifyContent: 'center'
|
|
@@ -11677,7 +11681,8 @@ var StyledCalendarDayNameCell = index$9(reactNative.View)(function (_ref3) {
|
|
|
11677
11681
|
var StyledCalendarCell = index$9(reactNative.TouchableOpacity)(function (_ref4) {
|
|
11678
11682
|
var theme = _ref4.theme,
|
|
11679
11683
|
_ref4$variant = _ref4.variant,
|
|
11680
|
-
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant
|
|
11684
|
+
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant,
|
|
11685
|
+
themeItemWidth = _ref4.themeItemWidth;
|
|
11681
11686
|
return {
|
|
11682
11687
|
borderColor: theme.__hd__.calendar.colors.border,
|
|
11683
11688
|
borderWidth: variant === 'current' ? 1 : 0,
|
|
@@ -11685,7 +11690,7 @@ var StyledCalendarCell = index$9(reactNative.TouchableOpacity)(function (_ref4)
|
|
|
11685
11690
|
alignItems: 'center',
|
|
11686
11691
|
justifyContent: 'center',
|
|
11687
11692
|
backgroundColor: variant === 'selected' ? theme.__hd__.calendar.colors.primary : undefined,
|
|
11688
|
-
width: theme.__hd__.calendar.sizes.cellCircleWidth,
|
|
11693
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellCircleWidth,
|
|
11689
11694
|
height: theme.__hd__.calendar.sizes.cellCircleHeight
|
|
11690
11695
|
};
|
|
11691
11696
|
});
|
|
@@ -11698,21 +11703,23 @@ var StyledCalendarRow = index$9(reactNative.View)(function (_ref5) {
|
|
|
11698
11703
|
};
|
|
11699
11704
|
});
|
|
11700
11705
|
var StyledCalendarRowItem = index$9(reactNative.View)(function (_ref6) {
|
|
11701
|
-
var theme = _ref6.theme
|
|
11706
|
+
var theme = _ref6.theme,
|
|
11707
|
+
themeItemWidth = _ref6.themeItemWidth;
|
|
11702
11708
|
return {
|
|
11703
11709
|
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11704
11710
|
alignItems: 'center',
|
|
11705
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11711
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11706
11712
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
11707
11713
|
justifyContent: 'center'
|
|
11708
11714
|
};
|
|
11709
11715
|
});
|
|
11710
11716
|
var StyledDisabledCalendarRowItem = index$9(reactNative.View)(function (_ref7) {
|
|
11711
|
-
var theme = _ref7.theme
|
|
11717
|
+
var theme = _ref7.theme,
|
|
11718
|
+
themeItemWidth = _ref7.themeItemWidth;
|
|
11712
11719
|
return {
|
|
11713
11720
|
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11714
11721
|
alignItems: 'center',
|
|
11715
|
-
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11722
|
+
width: themeItemWidth || theme.__hd__.calendar.sizes.cellWidth,
|
|
11716
11723
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
11717
11724
|
};
|
|
11718
11725
|
});
|
|
@@ -11745,9 +11752,11 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11745
11752
|
_ref$textIntent = _ref.textIntent,
|
|
11746
11753
|
textIntent = _ref$textIntent === void 0 ? 'body' : _ref$textIntent,
|
|
11747
11754
|
_ref$marked = _ref.marked,
|
|
11748
|
-
marked = _ref$marked === void 0 ? false : _ref$marked
|
|
11755
|
+
marked = _ref$marked === void 0 ? false : _ref$marked,
|
|
11756
|
+
itemWidth = _ref.itemWidth;
|
|
11749
11757
|
return /*#__PURE__*/React__default["default"].createElement(StyledCalendarRowItem, {
|
|
11750
|
-
testID: "calendar-date-cell"
|
|
11758
|
+
testID: "calendar-date-cell",
|
|
11759
|
+
themeItemWidth: itemWidth
|
|
11751
11760
|
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarCell, {
|
|
11752
11761
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11753
11762
|
onPress: onPress
|
|
@@ -11819,14 +11828,21 @@ var Calendar = function Calendar(_ref) {
|
|
|
11819
11828
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
11820
11829
|
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
11821
11830
|
}, {});
|
|
11822
|
-
var
|
|
11823
|
-
|
|
11824
|
-
monthPickerVisible =
|
|
11825
|
-
setMonthPickerVisible =
|
|
11826
|
-
var
|
|
11827
|
-
|
|
11828
|
-
contentHeight =
|
|
11829
|
-
setContentHeight =
|
|
11831
|
+
var _useState = React.useState(false),
|
|
11832
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
11833
|
+
monthPickerVisible = _useState2[0],
|
|
11834
|
+
setMonthPickerVisible = _useState2[1];
|
|
11835
|
+
var _useState3 = React.useState(0),
|
|
11836
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
11837
|
+
contentHeight = _useState4[0],
|
|
11838
|
+
setContentHeight = _useState4[1];
|
|
11839
|
+
var _useState5 = React.useState(0),
|
|
11840
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
11841
|
+
contentWidth = _useState6[0],
|
|
11842
|
+
setContentWidth = _useState6[1];
|
|
11843
|
+
var calendarItemWidth = React.useMemo(function () {
|
|
11844
|
+
return contentWidth > 0 ? contentWidth / 7 : undefined;
|
|
11845
|
+
}, [contentWidth]);
|
|
11830
11846
|
var useMonthPicker = onMonthChange !== noop$1;
|
|
11831
11847
|
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
11832
11848
|
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
@@ -11892,16 +11908,23 @@ var Calendar = function Calendar(_ref) {
|
|
|
11892
11908
|
onChange: onMonthChange,
|
|
11893
11909
|
style: {
|
|
11894
11910
|
height: contentHeight + theme.__hd__.calendar.space.iosPickerMarginVertical * 2,
|
|
11895
|
-
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical
|
|
11911
|
+
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical,
|
|
11912
|
+
width: contentWidth
|
|
11896
11913
|
}
|
|
11897
11914
|
})) : /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
11898
11915
|
onLayout: reactNative.Platform.OS === 'ios' ? function (e) {
|
|
11899
|
-
|
|
11916
|
+
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
11917
|
+
width = _e$nativeEvent$layout.width,
|
|
11918
|
+
height = _e$nativeEvent$layout.height;
|
|
11919
|
+
setContentHeight(height);
|
|
11920
|
+
setContentWidth(width);
|
|
11900
11921
|
} : undefined
|
|
11901
11922
|
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11902
11923
|
return /*#__PURE__*/React__default["default"].createElement(StyledCalendarRowItem, {
|
|
11903
11924
|
key: day
|
|
11904
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarDayNameCell,
|
|
11925
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarDayNameCell, {
|
|
11926
|
+
themeItemWidth: calendarItemWidth
|
|
11927
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
11905
11928
|
variant: "small"
|
|
11906
11929
|
}, day)));
|
|
11907
11930
|
})), /*#__PURE__*/React__default["default"].createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
@@ -11914,12 +11937,15 @@ var Calendar = function Calendar(_ref) {
|
|
|
11914
11937
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11915
11938
|
},
|
|
11916
11939
|
textIntent: "subdued",
|
|
11917
|
-
marked: parsedMaskedDate[date.toDateString()]
|
|
11940
|
+
marked: parsedMaskedDate[date.toDateString()],
|
|
11941
|
+
itemWidth: contentWidth > 0 ? contentWidth / 7 : undefined
|
|
11918
11942
|
}) : /*#__PURE__*/React__default["default"].createElement(StyledDisabledCalendarRowItem, {
|
|
11943
|
+
themeItemWidth: calendarItemWidth,
|
|
11919
11944
|
testID: "calendar-disabled-cell"
|
|
11920
11945
|
});
|
|
11921
11946
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11922
11947
|
return date ? /*#__PURE__*/React__default["default"].createElement(CalendarRowItem, {
|
|
11948
|
+
itemWidth: calendarItemWidth,
|
|
11923
11949
|
key: date.toDateString(),
|
|
11924
11950
|
date: date,
|
|
11925
11951
|
isCurrent: isEqDate(now, date),
|
|
@@ -11929,10 +11955,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11929
11955
|
},
|
|
11930
11956
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11931
11957
|
}) : /*#__PURE__*/React__default["default"].createElement(StyledDisabledCalendarRowItem, {
|
|
11958
|
+
themeItemWidth: calendarItemWidth,
|
|
11932
11959
|
testID: "calendar-disabled-cell"
|
|
11933
11960
|
});
|
|
11934
11961
|
}), daysOfNextMonth.map(function (date) {
|
|
11935
11962
|
return date ? /*#__PURE__*/React__default["default"].createElement(CalendarRowItem, {
|
|
11963
|
+
itemWidth: calendarItemWidth,
|
|
11936
11964
|
key: date.toDateString(),
|
|
11937
11965
|
date: date,
|
|
11938
11966
|
isCurrent: isEqDate(now, date),
|
|
@@ -11943,6 +11971,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11943
11971
|
textIntent: "subdued",
|
|
11944
11972
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11945
11973
|
}) : /*#__PURE__*/React__default["default"].createElement(StyledDisabledCalendarRowItem, {
|
|
11974
|
+
themeItemWidth: calendarItemWidth,
|
|
11946
11975
|
testID: "calendar-disabled-cell"
|
|
11947
11976
|
});
|
|
11948
11977
|
})), reactNative.Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__default["default"].createElement(reactNativeMonthYearPicker.MonthYearPickerDialogueAndroid, {
|
|
@@ -13390,7 +13419,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13390
13419
|
style = _ref2.style,
|
|
13391
13420
|
testID = _ref2.testID,
|
|
13392
13421
|
monthPickerConfirmLabel = _ref2.monthPickerConfirmLabel,
|
|
13393
|
-
monthPickerCancelLabel = _ref2.monthPickerCancelLabel
|
|
13422
|
+
monthPickerCancelLabel = _ref2.monthPickerCancelLabel,
|
|
13423
|
+
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
13424
|
+
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient;
|
|
13394
13425
|
var _useState5 = React.useState(false),
|
|
13395
13426
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
13396
13427
|
open = _useState6[0],
|
|
@@ -13445,8 +13476,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13445
13476
|
}
|
|
13446
13477
|
setOpen(false);
|
|
13447
13478
|
}
|
|
13448
|
-
})
|
|
13449
|
-
|
|
13479
|
+
}),
|
|
13480
|
+
supportedOrientations: supportedOrientations
|
|
13481
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.ScrollView, null, /*#__PURE__*/React__default["default"].createElement(InternalCalendar, {
|
|
13450
13482
|
minDate: minDate,
|
|
13451
13483
|
maxDate: maxDate,
|
|
13452
13484
|
value: value,
|
|
@@ -13456,7 +13488,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13456
13488
|
onToggleMonthPicker: function onToggleMonthPicker(visible) {
|
|
13457
13489
|
return setMonthPickerVisible(visible);
|
|
13458
13490
|
}
|
|
13459
|
-
})));
|
|
13491
|
+
}))));
|
|
13460
13492
|
};
|
|
13461
13493
|
|
|
13462
13494
|
var StyledPickerWrapper$1 = index$9(reactNative.View)(function (_ref) {
|
|
@@ -13482,7 +13514,9 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13482
13514
|
error = _ref.error,
|
|
13483
13515
|
helpText = _ref.helpText,
|
|
13484
13516
|
style = _ref.style,
|
|
13485
|
-
testID = _ref.testID
|
|
13517
|
+
testID = _ref.testID,
|
|
13518
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
13519
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
13486
13520
|
var _useState = React.useState(getDateValue(value || new Date(), minDate, maxDate)),
|
|
13487
13521
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13488
13522
|
selectingDate = _useState2[0],
|
|
@@ -13533,7 +13567,8 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13533
13567
|
}
|
|
13534
13568
|
setOpen(false);
|
|
13535
13569
|
}
|
|
13536
|
-
})
|
|
13570
|
+
}),
|
|
13571
|
+
supportedOrientations: supportedOrientations
|
|
13537
13572
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
13538
13573
|
testID: "datePickerIOS",
|
|
13539
13574
|
value: selectingDate,
|
|
@@ -14811,7 +14846,9 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14811
14846
|
fabTitle = _ref.fabTitle,
|
|
14812
14847
|
onBackdropPress = _ref.onBackdropPress,
|
|
14813
14848
|
_ref$fabIcon = _ref.fabIcon,
|
|
14814
|
-
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon
|
|
14849
|
+
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon,
|
|
14850
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
14851
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
14815
14852
|
useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
|
|
14816
14853
|
var theme = useTheme();
|
|
14817
14854
|
var fabRef = React.useRef(null);
|
|
@@ -14867,7 +14904,8 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14867
14904
|
visible: active,
|
|
14868
14905
|
animationType: "fade",
|
|
14869
14906
|
transparent: true,
|
|
14870
|
-
statusBarTranslucent: true
|
|
14907
|
+
statusBarTranslucent: true,
|
|
14908
|
+
supportedOrientations: supportedOrientations
|
|
14871
14909
|
}, /*#__PURE__*/React__default["default"].createElement(StyledContainerInModal, {
|
|
14872
14910
|
testID: testID,
|
|
14873
14911
|
style: [style]
|
|
@@ -16629,7 +16667,9 @@ function MultiSelect(_ref) {
|
|
|
16629
16667
|
required = _ref.required,
|
|
16630
16668
|
style = _ref.style,
|
|
16631
16669
|
testID = _ref.testID,
|
|
16632
|
-
value = _ref.value
|
|
16670
|
+
value = _ref.value,
|
|
16671
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
16672
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
16633
16673
|
var _useKeyboard = useKeyboard(),
|
|
16634
16674
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
16635
16675
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -16708,7 +16748,8 @@ function MultiSelect(_ref) {
|
|
|
16708
16748
|
var scrollParams = getScrollParams(value === null || value === void 0 ? void 0 : value[0], sections);
|
|
16709
16749
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16710
16750
|
}
|
|
16711
|
-
}
|
|
16751
|
+
},
|
|
16752
|
+
supportedOrientations: supportedOrientations
|
|
16712
16753
|
}, onQueryChange && /*#__PURE__*/React__default["default"].createElement(StyledSearchBar, null, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
16713
16754
|
editable: true,
|
|
16714
16755
|
placeholder: "Search",
|
|
@@ -16829,7 +16870,9 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16829
16870
|
required = _ref.required,
|
|
16830
16871
|
style = _ref.style,
|
|
16831
16872
|
testID = _ref.testID,
|
|
16832
|
-
value = _ref.value
|
|
16873
|
+
value = _ref.value,
|
|
16874
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
16875
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
16833
16876
|
var _useKeyboard = useKeyboard(),
|
|
16834
16877
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
16835
16878
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -16883,7 +16926,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16883
16926
|
var scrollParams = getScrollParams(value, sections);
|
|
16884
16927
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16885
16928
|
}
|
|
16886
|
-
}
|
|
16929
|
+
},
|
|
16930
|
+
supportedOrientations: supportedOrientations
|
|
16887
16931
|
}, onQueryChange && /*#__PURE__*/React__default["default"].createElement(StyledSearchBar, null, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
16888
16932
|
editable: true,
|
|
16889
16933
|
placeholder: "Search",
|
|
@@ -18245,7 +18289,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18245
18289
|
style = _ref.style,
|
|
18246
18290
|
testID = _ref.testID,
|
|
18247
18291
|
_ref$showSuffix = _ref.showSuffix,
|
|
18248
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
18292
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
18293
|
+
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
18294
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
18249
18295
|
var _useState = React.useState(value || new Date()),
|
|
18250
18296
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18251
18297
|
selectingDate = _useState2[0],
|
|
@@ -18291,7 +18337,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18291
18337
|
}
|
|
18292
18338
|
setOpen(false);
|
|
18293
18339
|
}
|
|
18294
|
-
})
|
|
18340
|
+
}),
|
|
18341
|
+
supportedOrientations: supportedOrientations
|
|
18295
18342
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default["default"].createElement(DateTimePicker__default["default"], {
|
|
18296
18343
|
testID: "timePickerIOS",
|
|
18297
18344
|
value: selectingDate,
|