@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/dist/index.es.js CHANGED
@@ -3841,6 +3841,23 @@ function Avatar(_ref2) {
3841
3841
  });
3842
3842
  }
3843
3843
 
3844
+ /**
3845
+ * A utility component that returns its children without any modifications.
3846
+ *
3847
+ * This component acts as an identity function for React elements - it simply returns
3848
+ * whatever children are passed to it. It can be useful in conditional rendering patterns,
3849
+ * component composition, or as a placeholder in component hierarchies.
3850
+ *
3851
+ * @returns The children as they were passed in, without any wrapper elements
3852
+ *
3853
+ * @example
3854
+ * See CardModal and FullscreenModal for usage examples.
3855
+ */
3856
+ function IdentityComponent(_ref) {
3857
+ var children = _ref.children;
3858
+ return children;
3859
+ }
3860
+
3844
3861
  var _excluded$M = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints", "contentContainer"];
3845
3862
  function BottomSheetComp(_ref, ref) {
3846
3863
  var Content = _ref.children,
@@ -3855,10 +3872,7 @@ function BottomSheetComp(_ref, ref) {
3855
3872
  _ref$snapPoints = _ref.snapPoints,
3856
3873
  snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
3857
3874
  _ref$contentContainer = _ref.contentContainer,
3858
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
3859
- var children = _ref2.children;
3860
- return children;
3861
- } : _ref$contentContainer,
3875
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
3862
3876
  rest = _objectWithoutProperties(_ref, _excluded$M);
3863
3877
  var _useSafeAreaInsets = useSafeAreaInsets(),
3864
3878
  top = _useSafeAreaInsets.top;
@@ -4310,10 +4324,7 @@ function CardModal(_ref) {
4310
4324
  body = _ref.body,
4311
4325
  footer = _ref.footer,
4312
4326
  _ref$contentContainer = _ref.contentContainer,
4313
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
4314
- var originalChildren = _ref2.children;
4315
- return originalChildren;
4316
- } : _ref$contentContainer,
4327
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer,
4317
4328
  props = _objectWithoutProperties(_ref, _excluded$H);
4318
4329
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4319
4330
  overflow: "hidden",
@@ -8327,10 +8338,7 @@ function FullscreenModal(_ref) {
8327
8338
  footer = _ref.footer,
8328
8339
  backgroundColor = _ref.backgroundColor,
8329
8340
  _ref$contentContainer = _ref.contentContainer,
8330
- ContentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
8331
- var children = _ref2.children;
8332
- return children;
8333
- } : _ref$contentContainer;
8341
+ ContentContainer = _ref$contentContainer === void 0 ? IdentityComponent : _ref$contentContainer;
8334
8342
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
8335
8343
  backgroundColor: backgroundColor,
8336
8344
  children: /*#__PURE__*/jsxs(ContentContainer, {
@@ -11784,11 +11792,7 @@ function NavigationModal(_ref) {
11784
11792
  backgroundColor = _ref.backgroundColor,
11785
11793
  footer = _ref.footer,
11786
11794
  header = _ref.header,
11787
- _ref$contentContainer = _ref.contentContainer,
11788
- contentContainer = _ref$contentContainer === void 0 ? function (_ref2) {
11789
- var children = _ref2.children;
11790
- return children;
11791
- } : _ref$contentContainer;
11795
+ contentContainer = _ref.contentContainer;
11792
11796
  var Component = useBreakpointValue({
11793
11797
  base: FullscreenModal,
11794
11798
  small: CardModal
@@ -13139,6 +13143,8 @@ function ModalDateTimePicker(_ref) {
13139
13143
  visible = _ref.visible,
13140
13144
  value = _ref.value,
13141
13145
  minuteInterval = _ref.minuteInterval,
13146
+ _ref$timezoneName = _ref.timezoneName,
13147
+ timezoneName = _ref$timezoneName === void 0 ? 'UTC' : _ref$timezoneName,
13142
13148
  validateButtonLabel = _ref.validateButtonLabel,
13143
13149
  testID = _ref.testID,
13144
13150
  pickerTestID = _ref.pickerTestID,
@@ -13175,6 +13181,7 @@ function ModalDateTimePicker(_ref) {
13175
13181
  }) : null, /*#__PURE__*/jsx(CardModal.Body, {
13176
13182
  children: /*#__PURE__*/jsx(DateTimePicker, {
13177
13183
  is24Hour: true,
13184
+ timeZoneName: timezoneName,
13178
13185
  minuteInterval: minuteInterval,
13179
13186
  testID: pickerTestID,
13180
13187
  value: currentValue,
@@ -13271,6 +13278,8 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13271
13278
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
13272
13279
  stretch = _ref.stretch,
13273
13280
  value = _ref.value,
13281
+ _ref$timezoneName = _ref.timezoneName,
13282
+ timezoneName = _ref$timezoneName === void 0 ? 'UTC' : _ref$timezoneName,
13274
13283
  minuteInterval = _ref.minuteInterval,
13275
13284
  validateButtonLabel = _ref.validateButtonLabel,
13276
13285
  isDefaultVisible = _ref.isDefaultVisible,
@@ -13319,6 +13328,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13319
13328
  testID: pickerTestID,
13320
13329
  value: pickerValue,
13321
13330
  minuteInterval: minuteInterval,
13331
+ timeZoneName: timezoneName,
13322
13332
  mode: "time",
13323
13333
  display: "spinner",
13324
13334
  onChange: function (event, date) {
@@ -13329,6 +13339,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
13329
13339
  minuteInterval: minuteInterval,
13330
13340
  title: title,
13331
13341
  testID: modalTestID,
13342
+ timezoneName: timezoneName,
13332
13343
  pickerTestID: pickerTestID,
13333
13344
  value: pickerValue,
13334
13345
  validateButtonLabel: validateButtonLabel,