@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
@@ -4452,9 +4452,6 @@ function CardModal({
4452
4452
  maxWidth = 'kitt.cardModal.maxWidth',
4453
4453
  withoutShadow,
4454
4454
  children,
4455
- header,
4456
- body,
4457
- footer,
4458
4455
  ...props
4459
4456
  }) {
4460
4457
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4467,9 +4464,7 @@ function CardModal({
4467
4464
  maxHeight: "100%",
4468
4465
  maxWidth: maxWidth,
4469
4466
  minHeight: "kitt.cardModal.minHeight",
4470
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4471
- children: [header || null, body || null, footer || null]
4472
- })
4467
+ children: children
4473
4468
  });
4474
4469
  }
4475
4470
  CardModal.Body = CardModalBody;
@@ -4533,6 +4528,8 @@ function AnimatedChoiceItemView({
4533
4528
  isHovered,
4534
4529
  isPressed
4535
4530
  }),
4531
+ flexGrow: 1,
4532
+ justifyContent: "center",
4536
4533
  padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4537
4534
  _web: {
4538
4535
  style: {
@@ -4604,6 +4601,7 @@ function ChoiceItem({
4604
4601
  checked: selected
4605
4602
  },
4606
4603
  style: style,
4604
+ flexGrow: 1,
4607
4605
  onBlur: onBlur,
4608
4606
  onFocus: onFocus,
4609
4607
  onPress: e => {
@@ -4623,6 +4621,7 @@ function ChoiceItem({
4623
4621
  });
4624
4622
  return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
4625
4623
  space: "kitt.2",
4624
+ flexGrow: 1,
4626
4625
  children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
4627
4626
  animatedStyles: backgroundStyles,
4628
4627
  isHovered: isHovered || isHoveredInternal,
@@ -7540,30 +7539,11 @@ function FullscreenModalHeader({
7540
7539
 
7541
7540
  function FullscreenModal({
7542
7541
  children,
7543
- body,
7544
- header,
7545
- footer,
7546
7542
  backgroundColor
7547
7543
  }) {
7548
7544
  return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7549
7545
  backgroundColor: backgroundColor,
7550
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7551
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7552
- children: header
7553
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7554
- flexGrow: 1,
7555
- flexShrink: 1,
7556
- justifyContent: "space-between",
7557
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7558
- bounces: false,
7559
- contentContainerStyle: {
7560
- flexGrow: 1,
7561
- position: 'relative'
7562
- },
7563
- children: body
7564
- }), footer || null]
7565
- })]
7566
- })
7546
+ children: children
7567
7547
  });
7568
7548
  }
7569
7549
  FullscreenModal.Header = FullscreenModalHeader;
@@ -10930,24 +10910,16 @@ function NavigationModalBehaviour({
10930
10910
  }
10931
10911
 
10932
10912
  function NavigationModal({
10933
- body,
10934
10913
  backgroundColor,
10935
- footer,
10936
- header,
10937
10914
  children
10938
10915
  }) {
10939
10916
  const Component = useBreakpointValue({
10940
10917
  base: FullscreenModal,
10941
10918
  small: CardModal
10942
10919
  });
10943
- return children ? /*#__PURE__*/jsxRuntime.jsx(Component, {
10920
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
10944
10921
  backgroundColor: backgroundColor,
10945
10922
  children: children
10946
- }) : /*#__PURE__*/jsxRuntime.jsx(Component, {
10947
- body: body,
10948
- backgroundColor: backgroundColor,
10949
- footer: footer,
10950
- header: header
10951
10923
  });
10952
10924
  }
10953
10925
  function Header(props) {