@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
@@ -4481,7 +4481,7 @@ function CardModalHeader(props) {
4481
4481
  return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
4482
4482
  }
4483
4483
 
4484
- var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
4484
+ var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children"];
4485
4485
  function CardModal(_ref) {
4486
4486
  var _ref$backgroundColor = _ref.backgroundColor,
4487
4487
  backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
@@ -4489,9 +4489,6 @@ function CardModal(_ref) {
4489
4489
  maxWidth = _ref$maxWidth === void 0 ? 'kitt.cardModal.maxWidth' : _ref$maxWidth,
4490
4490
  withoutShadow = _ref.withoutShadow,
4491
4491
  children = _ref.children,
4492
- header = _ref.header,
4493
- body = _ref.body,
4494
- footer = _ref.footer,
4495
4492
  props = _objectWithoutProperties(_ref, _excluded$E);
4496
4493
  return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
4497
4494
  overflow: "hidden",
@@ -4502,9 +4499,7 @@ function CardModal(_ref) {
4502
4499
  maxHeight: "100%",
4503
4500
  maxWidth: maxWidth,
4504
4501
  minHeight: "kitt.cardModal.minHeight",
4505
- children: children || /*#__PURE__*/jsxs(Fragment, {
4506
- children: [header || null, body || null, footer || null]
4507
- })
4502
+ children: children
4508
4503
  }));
4509
4504
  }
4510
4505
  CardModal.Body = CardModalBody;
@@ -4565,6 +4560,8 @@ function AnimatedChoiceItemView(_ref) {
4565
4560
  isHovered: isHovered,
4566
4561
  isPressed: isPressed
4567
4562
  }),
4563
+ flexGrow: 1,
4564
+ justifyContent: "center",
4568
4565
  padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4569
4566
  _web: {
4570
4567
  style: {
@@ -4635,6 +4632,7 @@ function ChoiceItem(_ref) {
4635
4632
  checked: selected
4636
4633
  },
4637
4634
  style: style,
4635
+ flexGrow: 1,
4638
4636
  onBlur: onBlur,
4639
4637
  onFocus: onFocus,
4640
4638
  onPress: function (e) {
@@ -4653,6 +4651,7 @@ function ChoiceItem(_ref) {
4653
4651
  });
4654
4652
  return /*#__PURE__*/jsxs(VStack, {
4655
4653
  space: "kitt.2",
4654
+ flexGrow: 1,
4656
4655
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4657
4656
  animatedStyles: backgroundStyles,
4658
4657
  isHovered: isHovered || isHoveredInternal,
@@ -7716,29 +7715,10 @@ function FullscreenModalHeader(_ref) {
7716
7715
 
7717
7716
  function FullscreenModal(_ref) {
7718
7717
  var children = _ref.children,
7719
- body = _ref.body,
7720
- header = _ref.header,
7721
- footer = _ref.footer,
7722
7718
  backgroundColor = _ref.backgroundColor;
7723
7719
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
7724
7720
  backgroundColor: backgroundColor,
7725
- children: children || /*#__PURE__*/jsxs(Fragment, {
7726
- children: [header ? /*#__PURE__*/jsx(View, {
7727
- children: header
7728
- }) : null, /*#__PURE__*/jsxs(View, {
7729
- flexGrow: 1,
7730
- flexShrink: 1,
7731
- justifyContent: "space-between",
7732
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7733
- bounces: false,
7734
- contentContainerStyle: {
7735
- flexGrow: 1,
7736
- position: 'relative'
7737
- },
7738
- children: body
7739
- }), footer || null]
7740
- })]
7741
- })
7721
+ children: children
7742
7722
  });
7743
7723
  }
7744
7724
  FullscreenModal.Header = FullscreenModalHeader;
@@ -11122,23 +11102,15 @@ function NavigationModalBehaviour(_ref) {
11122
11102
  }
11123
11103
 
11124
11104
  function NavigationModal(_ref) {
11125
- var body = _ref.body,
11126
- backgroundColor = _ref.backgroundColor,
11127
- footer = _ref.footer,
11128
- header = _ref.header,
11105
+ var backgroundColor = _ref.backgroundColor,
11129
11106
  children = _ref.children;
11130
11107
  var Component = useBreakpointValue({
11131
11108
  base: FullscreenModal,
11132
11109
  small: CardModal
11133
11110
  });
11134
- return children ? /*#__PURE__*/jsx(Component, {
11111
+ return /*#__PURE__*/jsx(Component, {
11135
11112
  backgroundColor: backgroundColor,
11136
11113
  children: children
11137
- }) : /*#__PURE__*/jsx(Component, {
11138
- body: body,
11139
- backgroundColor: backgroundColor,
11140
- footer: footer,
11141
- header: header
11142
11114
  });
11143
11115
  }
11144
11116
  function Header(props) {