@ornikar/kitt-universal 29.4.2-canary.fd1b4b35933bafb4acef3ae114e07a03477878a2.0 → 29.5.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/definitions/CardModal/CardModal.d.ts +2 -20
  3. package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
  4. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
  5. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
  6. package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
  7. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -18
  8. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
  9. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
  10. package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
  11. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  12. package/dist/index-metro.es.android.js +16 -43
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +16 -43
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.17.cjs.js +11 -37
  17. package/dist/index-node-22.17.cjs.js.map +1 -1
  18. package/dist/index-node-22.17.cjs.web.js +7 -35
  19. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.17.es.mjs +11 -37
  21. package/dist/index-node-22.17.es.mjs.map +1 -1
  22. package/dist/index-node-22.17.es.web.mjs +7 -35
  23. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +16 -43
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +9 -37
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/tsbuildinfo +1 -1
  29. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -4101,9 +4101,7 @@ function BottomSheetComp(_ref, ref) {
4101
4101
  }));
4102
4102
  }
4103
4103
  function BottomSheetContainerView(props) {
4104
- return /*#__PURE__*/jsx(View$1, _objectSpread({
4105
- padding: "kitt.bottomSheet.container.padding"
4106
- }, props));
4104
+ return /*#__PURE__*/jsx(View$1, _objectSpread({}, props));
4107
4105
  }
4108
4106
 
4109
4107
  /**
@@ -4600,7 +4598,7 @@ function CardModalHeader(props) {
4600
4598
  return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4601
4599
  }
4602
4600
 
4603
- var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4601
+ var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4604
4602
  function CardModal(_ref) {
4605
4603
  var _ref$backgroundColor = _ref.backgroundColor,
4606
4604
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4608,9 +4606,6 @@ function CardModal(_ref) {
4608
4606
  maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
4609
4607
  withoutShadow = _ref.withoutShadow,
4610
4608
  children = _ref.children,
4611
- header = _ref.header,
4612
- body = _ref.body,
4613
- footer = _ref.footer,
4614
4609
  props = _objectWithoutProperties(_ref, _excluded$G);
4615
4610
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4616
4611
  overflow: "hidden",
@@ -4621,9 +4616,7 @@ function CardModal(_ref) {
4621
4616
  maxHeight: "100%",
4622
4617
  maxWidth: maxWidth,
4623
4618
  minHeight: "kitt.cardModal.minHeight",
4624
- children: children || /*#__PURE__*/jsxs(Fragment, {
4625
- children: [header || null, body || null, footer || null]
4626
- })
4619
+ children: children
4627
4620
  }));
4628
4621
  }
4629
4622
  CardModal.Body = CardModalBody;
@@ -4688,7 +4681,10 @@ function AnimatedChoiceItemView(_ref) {
4688
4681
  padding: size === 'small' ? 'kitt.2' : 'kitt.4'
4689
4682
  });
4690
4683
  return /*#__PURE__*/jsx(Animated.View, {
4691
- style: [style, animatedStyles],
4684
+ style: [{
4685
+ flexGrow: 1,
4686
+ justifyContent: 'center'
4687
+ }, style, animatedStyles],
4692
4688
  children: children
4693
4689
  });
4694
4690
  }
@@ -4785,6 +4781,7 @@ function ChoiceItem(_ref) {
4785
4781
  checked: selected
4786
4782
  },
4787
4783
  style: style,
4784
+ flexGrow: 1,
4788
4785
  onBlur: onBlur,
4789
4786
  onFocus: onFocus,
4790
4787
  onPress: function (e) {
@@ -4803,6 +4800,7 @@ function ChoiceItem(_ref) {
4803
4800
  });
4804
4801
  return /*#__PURE__*/jsxs(VStack, {
4805
4802
  space: "kitt.2",
4803
+ flexGrow: 1,
4806
4804
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4807
4805
  animatedStyles: backgroundStyles,
4808
4806
  isHovered: isHovered || isHoveredInternal,
@@ -8593,29 +8591,10 @@ function FullscreenModalHeader(_ref) {
8593
8591
 
8594
8592
  function FullscreenModal(_ref) {
8595
8593
  var children = _ref.children,
8596
- body = _ref.body,
8597
- header = _ref.header,
8598
- footer = _ref.footer,
8599
8594
  backgroundColor = _ref.backgroundColor;
8600
8595
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
8601
8596
  backgroundColor: backgroundColor,
8602
- children: children || /*#__PURE__*/jsxs(Fragment, {
8603
- children: [header ? /*#__PURE__*/jsx(View, {
8604
- children: header
8605
- }) : null, /*#__PURE__*/jsxs(View, {
8606
- flexGrow: 1,
8607
- flexShrink: 1,
8608
- justifyContent: "space-between",
8609
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8610
- bounces: false,
8611
- contentContainerStyle: {
8612
- flexGrow: 1,
8613
- position: 'relative'
8614
- },
8615
- children: body
8616
- }), footer || null]
8617
- })]
8618
- })
8597
+ children: children
8619
8598
  });
8620
8599
  }
8621
8600
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11896,12 +11875,14 @@ function NavigationBottomSheetBody(props) {
11896
11875
  return /*#__PURE__*/jsx(VStack, _objectSpread({
11897
11876
  flexGrow: 1,
11898
11877
  flexShrink: 1,
11899
- marginBottom: "kitt.4"
11878
+ marginBottom: "kitt.4",
11879
+ paddingX: "kitt.bottomSheet.container.padding"
11900
11880
  }, props));
11901
11881
  }
11902
11882
  function NavigationBottomSheetFooter(props) {
11903
11883
  return /*#__PURE__*/jsx(HStack, _objectSpread({
11904
- width: "100%"
11884
+ width: "100%",
11885
+ paddingX: "kitt.bottomSheet.container.padding"
11905
11886
  }, props));
11906
11887
  }
11907
11888
  NavigationBottomSheet.Header = NavigationBottomSheetHeader;
@@ -11965,23 +11946,15 @@ function NavigationModalBehaviour(_ref) {
11965
11946
  }
11966
11947
 
11967
11948
  function NavigationModal(_ref) {
11968
- var body = _ref.body,
11969
- backgroundColor = _ref.backgroundColor,
11970
- footer = _ref.footer,
11971
- header = _ref.header,
11949
+ var backgroundColor = _ref.backgroundColor,
11972
11950
  children = _ref.children;
11973
11951
  var Component = useBreakpointValue({
11974
11952
  base: FullscreenModal,
11975
11953
  small: CardModal
11976
11954
  });
11977
- return children ? /*#__PURE__*/jsx(Component, {
11955
+ return /*#__PURE__*/jsx(Component, {
11978
11956
  backgroundColor: backgroundColor,
11979
11957
  children: children
11980
- }) : /*#__PURE__*/jsx(Component, {
11981
- body: body,
11982
- backgroundColor: backgroundColor,
11983
- footer: footer,
11984
- header: header
11985
11958
  });
11986
11959
  }
11987
11960
  function Header(props) {