@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
@@ -4444,9 +4444,6 @@ function CardModal({
4444
4444
  maxWidth = 'kitt.cardModal.maxWidth',
4445
4445
  withoutShadow,
4446
4446
  children,
4447
- header,
4448
- body,
4449
- footer,
4450
4447
  ...props
4451
4448
  }) {
4452
4449
  return /*#__PURE__*/jsx(View, {
@@ -4459,9 +4456,7 @@ function CardModal({
4459
4456
  maxHeight: "100%",
4460
4457
  maxWidth: maxWidth,
4461
4458
  minHeight: "kitt.cardModal.minHeight",
4462
- children: children || /*#__PURE__*/jsxs(Fragment, {
4463
- children: [header || null, body || null, footer || null]
4464
- })
4459
+ children: children
4465
4460
  });
4466
4461
  }
4467
4462
  CardModal.Body = CardModalBody;
@@ -4525,6 +4520,8 @@ function AnimatedChoiceItemView({
4525
4520
  isHovered,
4526
4521
  isPressed
4527
4522
  }),
4523
+ flexGrow: 1,
4524
+ justifyContent: "center",
4528
4525
  padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4529
4526
  _web: {
4530
4527
  style: {
@@ -4596,6 +4593,7 @@ function ChoiceItem({
4596
4593
  checked: selected
4597
4594
  },
4598
4595
  style: style,
4596
+ flexGrow: 1,
4599
4597
  onBlur: onBlur,
4600
4598
  onFocus: onFocus,
4601
4599
  onPress: e => {
@@ -4615,6 +4613,7 @@ function ChoiceItem({
4615
4613
  });
4616
4614
  return /*#__PURE__*/jsxs(VStack, {
4617
4615
  space: "kitt.2",
4616
+ flexGrow: 1,
4618
4617
  children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4619
4618
  animatedStyles: backgroundStyles,
4620
4619
  isHovered: isHovered || isHoveredInternal,
@@ -7532,30 +7531,11 @@ function FullscreenModalHeader({
7532
7531
 
7533
7532
  function FullscreenModal({
7534
7533
  children,
7535
- body,
7536
- header,
7537
- footer,
7538
7534
  backgroundColor
7539
7535
  }) {
7540
7536
  return /*#__PURE__*/jsx(FullscreenModalContainer, {
7541
7537
  backgroundColor: backgroundColor,
7542
- children: children || /*#__PURE__*/jsxs(Fragment, {
7543
- children: [header ? /*#__PURE__*/jsx(View, {
7544
- children: header
7545
- }) : null, /*#__PURE__*/jsxs(View, {
7546
- flexGrow: 1,
7547
- flexShrink: 1,
7548
- justifyContent: "space-between",
7549
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7550
- bounces: false,
7551
- contentContainerStyle: {
7552
- flexGrow: 1,
7553
- position: 'relative'
7554
- },
7555
- children: body
7556
- }), footer || null]
7557
- })]
7558
- })
7538
+ children: children
7559
7539
  });
7560
7540
  }
7561
7541
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10922,24 +10902,16 @@ function NavigationModalBehaviour({
10922
10902
  }
10923
10903
 
10924
10904
  function NavigationModal({
10925
- body,
10926
10905
  backgroundColor,
10927
- footer,
10928
- header,
10929
10906
  children
10930
10907
  }) {
10931
10908
  const Component = useBreakpointValue({
10932
10909
  base: FullscreenModal,
10933
10910
  small: CardModal
10934
10911
  });
10935
- return children ? /*#__PURE__*/jsx(Component, {
10912
+ return /*#__PURE__*/jsx(Component, {
10936
10913
  backgroundColor: backgroundColor,
10937
10914
  children: children
10938
- }) : /*#__PURE__*/jsx(Component, {
10939
- body: body,
10940
- backgroundColor: backgroundColor,
10941
- footer: footer,
10942
- header: header
10943
10915
  });
10944
10916
  }
10945
10917
  function Header(props) {