@ornikar/kitt-universal 25.47.1-canary.b2da84e20f1b1e29820cff435e8a0ded02e51385.0 → 25.48.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/CHANGELOG.md +11 -2
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +2 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/utils/IdentityComponent.d.ts +15 -0
- package/dist/definitions/utils/IdentityComponent.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +27 -12
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +27 -12
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +27 -12
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +21 -9
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +27 -12
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +21 -9
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +28 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +20 -13
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3801,6 +3801,24 @@ function Avatar({
|
|
|
3801
3801
|
});
|
|
3802
3802
|
}
|
|
3803
3803
|
|
|
3804
|
+
/**
|
|
3805
|
+
* A utility component that returns its children without any modifications.
|
|
3806
|
+
*
|
|
3807
|
+
* This component acts as an identity function for React elements - it simply returns
|
|
3808
|
+
* whatever children are passed to it. It can be useful in conditional rendering patterns,
|
|
3809
|
+
* component composition, or as a placeholder in component hierarchies.
|
|
3810
|
+
*
|
|
3811
|
+
* @returns The children as they were passed in, without any wrapper elements
|
|
3812
|
+
*
|
|
3813
|
+
* @example
|
|
3814
|
+
* See CardModal and FullscreenModal for usage examples.
|
|
3815
|
+
*/
|
|
3816
|
+
function IdentityComponent({
|
|
3817
|
+
children
|
|
3818
|
+
}) {
|
|
3819
|
+
return children;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3804
3822
|
function BottomSheetComp({
|
|
3805
3823
|
children: Content,
|
|
3806
3824
|
hasScrollView = false,
|
|
@@ -3808,9 +3826,7 @@ function BottomSheetComp({
|
|
|
3808
3826
|
hasHandle = true,
|
|
3809
3827
|
enableDynamicSizing = true,
|
|
3810
3828
|
snapPoints = ['100%'],
|
|
3811
|
-
contentContainer: ContentContainer =
|
|
3812
|
-
children
|
|
3813
|
-
}) => children,
|
|
3829
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
3814
3830
|
...rest
|
|
3815
3831
|
}, ref) {
|
|
3816
3832
|
const {
|
|
@@ -4248,9 +4264,7 @@ function CardModal({
|
|
|
4248
4264
|
header,
|
|
4249
4265
|
body,
|
|
4250
4266
|
footer,
|
|
4251
|
-
contentContainer: ContentContainer =
|
|
4252
|
-
children: originalChildren
|
|
4253
|
-
}) => originalChildren,
|
|
4267
|
+
contentContainer: ContentContainer = IdentityComponent,
|
|
4254
4268
|
...props
|
|
4255
4269
|
}) {
|
|
4256
4270
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -8046,9 +8060,7 @@ function FullscreenModal({
|
|
|
8046
8060
|
header,
|
|
8047
8061
|
footer,
|
|
8048
8062
|
backgroundColor,
|
|
8049
|
-
contentContainer: ContentContainer =
|
|
8050
|
-
children
|
|
8051
|
-
}) => children
|
|
8063
|
+
contentContainer: ContentContainer = IdentityComponent
|
|
8052
8064
|
}) {
|
|
8053
8065
|
return /*#__PURE__*/jsx(FullscreenModalContainer, {
|
|
8054
8066
|
backgroundColor: backgroundColor,
|
|
@@ -11499,9 +11511,7 @@ function NavigationModal({
|
|
|
11499
11511
|
backgroundColor,
|
|
11500
11512
|
footer,
|
|
11501
11513
|
header,
|
|
11502
|
-
contentContainer
|
|
11503
|
-
children
|
|
11504
|
-
}) => children
|
|
11514
|
+
contentContainer
|
|
11505
11515
|
}) {
|
|
11506
11516
|
const Component = useBreakpointValue({
|
|
11507
11517
|
base: FullscreenModal,
|
|
@@ -12857,6 +12867,7 @@ function ModalDateTimePicker({
|
|
|
12857
12867
|
visible,
|
|
12858
12868
|
value,
|
|
12859
12869
|
minuteInterval,
|
|
12870
|
+
timezoneName = 'UTC',
|
|
12860
12871
|
validateButtonLabel,
|
|
12861
12872
|
testID,
|
|
12862
12873
|
pickerTestID,
|
|
@@ -12891,6 +12902,7 @@ function ModalDateTimePicker({
|
|
|
12891
12902
|
}) : null, /*#__PURE__*/jsx(CardModal.Body, {
|
|
12892
12903
|
children: /*#__PURE__*/jsx(DateTimePicker, {
|
|
12893
12904
|
is24Hour: true,
|
|
12905
|
+
timeZoneName: timezoneName,
|
|
12894
12906
|
minuteInterval: minuteInterval,
|
|
12895
12907
|
testID: pickerTestID,
|
|
12896
12908
|
value: currentValue,
|
|
@@ -12985,6 +12997,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
12985
12997
|
disabled = false,
|
|
12986
12998
|
stretch,
|
|
12987
12999
|
value,
|
|
13000
|
+
timezoneName = 'UTC',
|
|
12988
13001
|
minuteInterval,
|
|
12989
13002
|
validateButtonLabel,
|
|
12990
13003
|
isDefaultVisible,
|
|
@@ -13026,6 +13039,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
13026
13039
|
testID: pickerTestID,
|
|
13027
13040
|
value: pickerValue,
|
|
13028
13041
|
minuteInterval: minuteInterval,
|
|
13042
|
+
timeZoneName: timezoneName,
|
|
13029
13043
|
mode: "time",
|
|
13030
13044
|
display: "spinner",
|
|
13031
13045
|
onChange: (event, date) => handleChange(date)
|
|
@@ -13034,6 +13048,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
13034
13048
|
minuteInterval: minuteInterval,
|
|
13035
13049
|
title: title,
|
|
13036
13050
|
testID: modalTestID,
|
|
13051
|
+
timezoneName: timezoneName,
|
|
13037
13052
|
pickerTestID: pickerTestID,
|
|
13038
13053
|
value: pickerValue,
|
|
13039
13054
|
validateButtonLabel: validateButtonLabel,
|