@ornikar/kitt-universal 25.48.0 → 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/definitions/CardModal2/CardModal2.d.ts +19 -0
  3. package/dist/definitions/CardModal2/CardModal2.d.ts.map +1 -0
  4. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +8 -0
  5. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +1 -0
  6. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +4 -0
  7. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +1 -0
  8. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +7 -0
  9. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +1 -0
  10. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +8 -0
  11. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +1 -0
  12. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +11 -0
  13. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +1 -0
  14. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +8 -0
  15. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +1 -0
  16. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +7 -0
  17. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +1 -0
  18. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +7 -0
  19. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +1 -0
  20. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +20 -0
  21. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +1 -0
  22. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +18 -0
  23. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +1 -0
  24. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +8 -0
  25. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +1 -0
  26. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +8 -0
  27. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +1 -0
  28. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +9 -0
  29. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +1 -0
  30. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +8 -0
  31. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +1 -0
  32. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +8 -0
  33. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +1 -0
  34. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +22 -0
  35. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +1 -0
  36. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +7 -0
  37. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +1 -0
  38. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +10 -0
  39. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +1 -0
  40. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +23 -0
  41. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +1 -0
  42. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +8 -0
  43. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +1 -0
  44. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +7 -0
  45. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +1 -0
  46. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +7 -0
  47. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +1 -0
  48. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +7 -0
  49. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +1 -0
  50. package/dist/definitions/index.d.ts +6 -0
  51. package/dist/definitions/index.d.ts.map +1 -1
  52. package/dist/index-metro.es.android.js +1023 -294
  53. package/dist/index-metro.es.android.js.map +1 -1
  54. package/dist/index-metro.es.ios.js +1023 -294
  55. package/dist/index-metro.es.ios.js.map +1 -1
  56. package/dist/index-node-20.10.cjs.js +802 -76
  57. package/dist/index-node-20.10.cjs.js.map +1 -1
  58. package/dist/index-node-20.10.cjs.web.css +8 -0
  59. package/dist/index-node-20.10.cjs.web.js +777 -120
  60. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  61. package/dist/index-node-20.10.es.mjs +800 -77
  62. package/dist/index-node-20.10.es.mjs.map +1 -1
  63. package/dist/index-node-20.10.es.web.css +8 -0
  64. package/dist/index-node-20.10.es.web.mjs +776 -122
  65. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  66. package/dist/index.es.js +890 -152
  67. package/dist/index.es.js.map +1 -1
  68. package/dist/index.es.web.js +778 -120
  69. package/dist/index.es.web.js.map +1 -1
  70. package/dist/styles.css +8 -0
  71. package/dist/tsbuildinfo +1 -1
  72. package/package.json +1 -1
@@ -3943,29 +3943,29 @@ function CardModalRotationContainer(props) {
3943
3943
  });
3944
3944
  }
3945
3945
 
3946
- const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
3947
- const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
3948
- const contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
3949
- const contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
3950
- const contentAnimationClassNames$1 = {
3951
- appear: contentAnimationEnter$1,
3952
- appearActive: contentAnimatioEnterActive$1,
3953
- enter: contentAnimationEnter$1,
3954
- enterActive: contentAnimatioEnterActive$1,
3955
- exit: contentAnimatioExit$1,
3956
- exitActive: contentAnimatioExitActive$1
3946
+ const contentAnimationEnter$2 = "kitt-u_contentAnimationEnter_c11xxy4r";
3947
+ const contentAnimatioEnterActive$2 = "kitt-u_contentAnimatioEnterActive_cl52117";
3948
+ const contentAnimatioExit$2 = "kitt-u_contentAnimatioExit_cyjczep";
3949
+ const contentAnimatioExitActive$2 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
3950
+ const contentAnimationClassNames$2 = {
3951
+ appear: contentAnimationEnter$2,
3952
+ appearActive: contentAnimatioEnterActive$2,
3953
+ enter: contentAnimationEnter$2,
3954
+ enterActive: contentAnimatioEnterActive$2,
3955
+ exit: contentAnimatioExit$2,
3956
+ exitActive: contentAnimatioExitActive$2
3957
3957
  };
3958
- const opacityEnter$2 = "kitt-u_opacityEnter_o1ae40dx";
3959
- const opacityEnterActive$2 = "kitt-u_opacityEnterActive_o1t4vl7b";
3960
- const opacityExit$2 = "kitt-u_opacityExit_ogyytm1";
3961
- const opacityExitActive$2 = "kitt-u_opacityExitActive_o18xvk52";
3962
- const opacityClassNames$2 = {
3963
- appear: opacityEnter$2,
3964
- appearActive: opacityEnterActive$2,
3965
- enter: opacityEnter$2,
3966
- enterActive: opacityEnterActive$2,
3967
- exit: opacityExit$2,
3968
- exitActive: opacityExitActive$2
3958
+ const opacityEnter$3 = "kitt-u_opacityEnter_o1ae40dx";
3959
+ const opacityEnterActive$3 = "kitt-u_opacityEnterActive_o1t4vl7b";
3960
+ const opacityExit$3 = "kitt-u_opacityExit_ogyytm1";
3961
+ const opacityExitActive$3 = "kitt-u_opacityExitActive_o18xvk52";
3962
+ const opacityClassNames$3 = {
3963
+ appear: opacityEnter$3,
3964
+ appearActive: opacityEnterActive$3,
3965
+ enter: opacityEnter$3,
3966
+ enterActive: opacityEnterActive$3,
3967
+ exit: opacityExit$3,
3968
+ exitActive: opacityExitActive$3
3969
3969
  };
3970
3970
  function CardModalAnimation({
3971
3971
  children,
@@ -3996,14 +3996,14 @@ function CardModalAnimation({
3996
3996
  children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
3997
3997
  ...sharedProps,
3998
3998
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
3999
- classNames: opacityClassNames$2,
3999
+ classNames: opacityClassNames$3,
4000
4000
  children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
4001
4001
  onPress: onClose
4002
4002
  })
4003
4003
  }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
4004
4004
  ...sharedProps,
4005
4005
  timeout: isAnimationEnabled ? animation.content.duration : 0,
4006
- classNames: contentAnimationClassNames$1,
4006
+ classNames: contentAnimationClassNames$2,
4007
4007
  onEnter: onEnter,
4008
4008
  onEntered: onEntered,
4009
4009
  onExit: onExit,
@@ -4172,6 +4172,241 @@ CardModal.Header = CardModalHeader;
4172
4172
  CardModal.Footer = CardModalFooter;
4173
4173
  CardModal.ModalBehaviour = CardModalBehaviour;
4174
4174
 
4175
+ function CardModal2RotationContainer(props) {
4176
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
4177
+ paddingX: "kitt.cardModal.overlayPadding.horizontal",
4178
+ paddingY: "kitt.cardModal.overlayPadding.vertical",
4179
+ maxWidth: "kitt.cardModal.maxWidthWithPadding",
4180
+ width: "100%",
4181
+ maxHeight: "100%",
4182
+ _web: {
4183
+ maxHeight: '100svh'
4184
+ },
4185
+ ...props
4186
+ });
4187
+ }
4188
+
4189
+ const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c1qvsvvv";
4190
+ const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_c1ka3ql7";
4191
+ const contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cn78c68";
4192
+ const contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_c14lwu6p";
4193
+ const contentAnimationClassNames$1 = {
4194
+ appear: contentAnimationEnter$1,
4195
+ appearActive: contentAnimatioEnterActive$1,
4196
+ enter: contentAnimationEnter$1,
4197
+ enterActive: contentAnimatioEnterActive$1,
4198
+ exit: contentAnimatioExit$1,
4199
+ exitActive: contentAnimatioExitActive$1
4200
+ };
4201
+ const opacityEnter$2 = "kitt-u_opacityEnter_o1sh7i4q";
4202
+ const opacityEnterActive$2 = "kitt-u_opacityEnterActive_ow4hztn";
4203
+ const opacityExit$2 = "kitt-u_opacityExit_o1ct2t80";
4204
+ const opacityExitActive$2 = "kitt-u_opacityExitActive_ov5hhc8";
4205
+ const opacityClassNames$2 = {
4206
+ appear: opacityEnter$2,
4207
+ appearActive: opacityEnterActive$2,
4208
+ enter: opacityEnter$2,
4209
+ enterActive: opacityEnterActive$2,
4210
+ exit: opacityExit$2,
4211
+ exitActive: opacityExitActive$2
4212
+ };
4213
+ function CardModal2Animation({
4214
+ children,
4215
+ appear = true,
4216
+ visible,
4217
+ unmountOnExit = true,
4218
+ isAnimationEnabled = true,
4219
+ onEnter,
4220
+ onEntered,
4221
+ onExit,
4222
+ onExited,
4223
+ onClose,
4224
+ ...props
4225
+ }) {
4226
+ const theme = useTheme();
4227
+ const {
4228
+ animation
4229
+ } = theme.kitt.cardModal;
4230
+ const sharedProps = {
4231
+ in: visible,
4232
+ appear,
4233
+ unmountOnExit
4234
+ };
4235
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
4236
+ ...props,
4237
+ height: "100%",
4238
+ justifyContent: "center",
4239
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
4240
+ ...sharedProps,
4241
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4242
+ classNames: opacityClassNames$2,
4243
+ children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
4244
+ onPress: onClose
4245
+ })
4246
+ }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
4247
+ ...sharedProps,
4248
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
4249
+ classNames: contentAnimationClassNames$1,
4250
+ onEnter: onEnter,
4251
+ onEntered: onEntered,
4252
+ onExit: onExit,
4253
+ onExited: onExited,
4254
+ children: /*#__PURE__*/jsxRuntime.jsx(CardModal2RotationContainer, {
4255
+ alignItems: "center",
4256
+ margin: "auto",
4257
+ children: children
4258
+ })
4259
+ })]
4260
+ });
4261
+ }
4262
+
4263
+ function CardModal2Behaviour({
4264
+ children,
4265
+ visible,
4266
+ onClose,
4267
+ onExited,
4268
+ ...props
4269
+ }) {
4270
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = react.useState(visible);
4271
+ react.useEffect(() => {
4272
+ if (visible === true) {
4273
+ setIsModalBehaviourVisible(true);
4274
+ }
4275
+ }, [visible]);
4276
+ return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
4277
+ visible: isModalBehaviourVisible,
4278
+ onClose: onClose,
4279
+ children: /*#__PURE__*/jsxRuntime.jsx(CardModal2Animation, {
4280
+ ...props,
4281
+ visible: visible,
4282
+ onExited: () => {
4283
+ if (onExited) onExited();
4284
+ setIsModalBehaviourVisible(false);
4285
+ },
4286
+ onClose: onClose,
4287
+ children: children
4288
+ })
4289
+ });
4290
+ }
4291
+
4292
+ function CardModal2Body({
4293
+ children,
4294
+ paddingX = {
4295
+ base: 'kitt.4',
4296
+ medium: 'kitt.6'
4297
+ },
4298
+ paddingY = 'kitt.4',
4299
+ ...props
4300
+ }) {
4301
+ return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
4302
+ showsVerticalScrollIndicator: false,
4303
+ _contentContainerStyle: {
4304
+ paddingX,
4305
+ paddingY
4306
+ },
4307
+ ...props,
4308
+ children: children
4309
+ });
4310
+ }
4311
+
4312
+ function CardModal2Footer({
4313
+ children,
4314
+ padding = {
4315
+ base: 'kitt.4',
4316
+ medium: 'kitt.2'
4317
+ },
4318
+ hasSeparator = true,
4319
+ ...props
4320
+ }) {
4321
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
4322
+ ...props,
4323
+ marginTop: "kitt.2",
4324
+ padding: padding,
4325
+ borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4326
+ borderColor: "kitt.separator",
4327
+ alignItems: {
4328
+ base: undefined,
4329
+ medium: 'flex-end'
4330
+ },
4331
+ children: children
4332
+ });
4333
+ }
4334
+
4335
+ function CardModal2Header({
4336
+ children,
4337
+ title,
4338
+ paddingBottom = {
4339
+ base: 'kitt.4',
4340
+ medium: 'kitt.2'
4341
+ },
4342
+ hasSeparator = true,
4343
+ right,
4344
+ left,
4345
+ ...props
4346
+ }) {
4347
+ const defaultContainerPadding = {
4348
+ base: 'kitt.4',
4349
+ medium: 'kitt.6'
4350
+ };
4351
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
4352
+ ...props,
4353
+ padding: paddingBottom,
4354
+ borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4355
+ borderColor: "kitt.separator",
4356
+ justifyContent: "center",
4357
+ width: "100%",
4358
+ height: "kitt.cardModal.header.height",
4359
+ paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4360
+ paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4361
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
4362
+ alignItems: "center",
4363
+ flexDirection: "row",
4364
+ justifyContent: !children && !left ? 'flex-end' : 'space-between',
4365
+ children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
4366
+ width: "kitt.iconButton.width",
4367
+ children: left
4368
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
4369
+ flexGrow: "1",
4370
+ paddingRight: right ? 'kitt.2' : 0,
4371
+ paddingLeft: left ? 'kitt.2' : 0,
4372
+ children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
4373
+ textAlign: !left && right ? 'left' : 'center',
4374
+ variant: "bold",
4375
+ children: title
4376
+ }) : null, children]
4377
+ }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
4378
+ width: "kitt.iconButton.width",
4379
+ children: right
4380
+ }) : null]
4381
+ })
4382
+ });
4383
+ }
4384
+
4385
+ function CardModal2({
4386
+ backgroundColor = 'kitt.uiBackgroundLight',
4387
+ maxWidth = 'kitt.cardModal.maxWidth',
4388
+ withoutShadow,
4389
+ children,
4390
+ ...props
4391
+ }) {
4392
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
4393
+ ...props,
4394
+ overflow: "hidden",
4395
+ backgroundColor: backgroundColor,
4396
+ shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4397
+ borderRadius: "kitt.cardModal.borderRadius",
4398
+ width: "100%",
4399
+ maxHeight: "100%",
4400
+ maxWidth: maxWidth,
4401
+ minHeight: "kitt.cardModal.minHeight",
4402
+ children: children
4403
+ });
4404
+ }
4405
+ CardModal2.Body = CardModal2Body;
4406
+ CardModal2.Header = CardModal2Header;
4407
+ CardModal2.Footer = CardModal2Footer;
4408
+ CardModal2.Behaviour = CardModal2Behaviour;
4409
+
4175
4410
  function getBackgroundColor$6({
4176
4411
  isDisabled,
4177
4412
  isSelected,
@@ -7054,75 +7289,351 @@ function FullscreenModalFooter({
7054
7289
  });
7055
7290
  }
7056
7291
 
7057
- const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7058
- const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7059
- const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7060
- const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7061
- const slideInClassNames = {
7062
- appear: slideInFromBottomEnter,
7063
- appearActive: slideInFromBottomEnterActive,
7064
- enter: slideInFromBottomEnter,
7065
- enterActive: slideInFromBottomEnterActive,
7066
- exit: slideInFromBottomExit,
7067
- exitActive: slideInFromBottomExitActive
7068
- };
7069
- const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7070
- const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7071
- const opacityExit = "kitt-u_opacityExit_o14r8iix";
7072
- const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7073
- const opacityClassNames = {
7074
- appear: opacityEnter,
7075
- appearActive: opacityEnterActive,
7076
- enter: opacityEnter,
7077
- enterActive: opacityEnterActive,
7078
- exit: opacityExit,
7079
- exitActive: opacityExitActive
7080
- };
7081
- function FullscreenModalAnimation({
7082
- children,
7083
- appear = true,
7292
+ const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7293
+ const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7294
+ const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7295
+ const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7296
+ const slideInClassNames = {
7297
+ appear: slideInFromBottomEnter,
7298
+ appearActive: slideInFromBottomEnterActive,
7299
+ enter: slideInFromBottomEnter,
7300
+ enterActive: slideInFromBottomEnterActive,
7301
+ exit: slideInFromBottomExit,
7302
+ exitActive: slideInFromBottomExitActive
7303
+ };
7304
+ const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7305
+ const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7306
+ const opacityExit = "kitt-u_opacityExit_o14r8iix";
7307
+ const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7308
+ const opacityClassNames = {
7309
+ appear: opacityEnter,
7310
+ appearActive: opacityEnterActive,
7311
+ enter: opacityEnter,
7312
+ enterActive: opacityEnterActive,
7313
+ exit: opacityExit,
7314
+ exitActive: opacityExitActive
7315
+ };
7316
+ function FullscreenModalAnimation({
7317
+ children,
7318
+ appear = true,
7319
+ visible,
7320
+ unmountOnExit = true,
7321
+ isAnimationEnabled = true,
7322
+ onEnter,
7323
+ onEntered,
7324
+ onExit,
7325
+ onExited,
7326
+ onClose,
7327
+ ...props
7328
+ }) {
7329
+ const theme = useTheme();
7330
+ const {
7331
+ animation
7332
+ } = theme.kitt.fullscreenModal;
7333
+ const sharedProps = {
7334
+ in: visible,
7335
+ appear,
7336
+ unmountOnExit
7337
+ };
7338
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
7339
+ ...props,
7340
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7341
+ ...sharedProps,
7342
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7343
+ classNames: opacityClassNames,
7344
+ children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
7345
+ onPress: onClose
7346
+ })
7347
+ }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7348
+ ...sharedProps,
7349
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7350
+ classNames: slideInClassNames,
7351
+ onEnter: onEnter,
7352
+ onEntered: onEntered,
7353
+ onExit: onExit,
7354
+ onExited: onExited,
7355
+ children: children
7356
+ })]
7357
+ });
7358
+ }
7359
+
7360
+ function FullscreenModalBehaviour({
7361
+ children,
7362
+ visible,
7363
+ onClose,
7364
+ onExited,
7365
+ ...props
7366
+ }) {
7367
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = react.useState(visible);
7368
+ react.useEffect(() => {
7369
+ if (visible === true) {
7370
+ setIsModalBehaviourVisible(true);
7371
+ }
7372
+ }, [visible]);
7373
+ return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
7374
+ visible: isModalBehaviourVisible,
7375
+ onClose: onClose,
7376
+ children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModalAnimation, {
7377
+ ...props,
7378
+ visible: visible,
7379
+ onExited: () => {
7380
+ if (onExited) onExited();
7381
+ setIsModalBehaviourVisible(false);
7382
+ },
7383
+ children: children
7384
+ })
7385
+ });
7386
+ }
7387
+
7388
+ function FullscreenModalContainer({
7389
+ children,
7390
+ backgroundColor
7391
+ }) {
7392
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
7393
+ position: "relative",
7394
+ flexGrow: 1,
7395
+ flexShrink: 1,
7396
+ flexBasis: "100%"
7397
+ /*
7398
+ Here we are setting the same min and max height because on web the content was overflowing and not scrolling
7399
+ minHeight is needed to make the modal fullscreen
7400
+ maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
7401
+ We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
7402
+ */,
7403
+ _web: {
7404
+ minHeight: '100svh',
7405
+ maxHeight: '100svh'
7406
+ },
7407
+ backgroundColor: backgroundColor ?? 'kitt.uiBackgroundLight',
7408
+ children: children
7409
+ });
7410
+ }
7411
+
7412
+ function FullscreenModalHeader({
7413
+ hasSeparator = true,
7414
+ isTransparent,
7415
+ title,
7416
+ children,
7417
+ right,
7418
+ left,
7419
+ shouldHandleTopNotch = true,
7420
+ ...props
7421
+ }) {
7422
+ const {
7423
+ top
7424
+ } = reactNativeSafeAreaContext.useSafeAreaInsets();
7425
+ const hasRight = Boolean(right);
7426
+ const hasLeft = Boolean(left);
7427
+ const hasContent = Boolean(title || children);
7428
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
7429
+ backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
7430
+ minHeight: "kitt.fullscreenModal.header.height",
7431
+ width: "100%",
7432
+ justifyContent: "center",
7433
+ paddingTop: shouldHandleTopNotch ? top : undefined,
7434
+ paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7435
+ paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7436
+ borderBottomColor: "kitt.separator",
7437
+ borderBottomWidth: hasSeparator ? 1 : undefined,
7438
+ ...props,
7439
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
7440
+ flexDirection: "row",
7441
+ alignItems: "center",
7442
+ justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
7443
+ children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
7444
+ width: "kitt.iconButton.width",
7445
+ children: left
7446
+ }) : null, title ? /*#__PURE__*/jsxRuntime.jsx(View, {
7447
+ flexGrow: 1,
7448
+ flexShrink: 1,
7449
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
7450
+ paddingRight: hasRight ? 'kitt.2' : 0,
7451
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
7452
+ variant: "bold",
7453
+ textAlign: !hasLeft && hasRight ? 'left' : 'center',
7454
+ children: title
7455
+ })
7456
+ }) : null, children ? /*#__PURE__*/jsxRuntime.jsx(View, {
7457
+ flexGrow: 1,
7458
+ flexShrink: 1,
7459
+ alignItems: "center",
7460
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
7461
+ paddingRight: hasRight ? 'kitt.2' : undefined,
7462
+ children: children
7463
+ }) : null, right || left ? /*#__PURE__*/jsxRuntime.jsx(View, {
7464
+ width: "kitt.iconButton.width",
7465
+ children: right
7466
+ }) : null]
7467
+ })
7468
+ });
7469
+ }
7470
+
7471
+ function FullscreenModal({
7472
+ body,
7473
+ header,
7474
+ footer,
7475
+ backgroundColor,
7476
+ contentContainer: ContentContainer = IdentityComponent
7477
+ }) {
7478
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7479
+ backgroundColor: backgroundColor,
7480
+ children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
7481
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7482
+ children: header
7483
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7484
+ flexGrow: 1,
7485
+ flexShrink: 1,
7486
+ justifyContent: "space-between",
7487
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7488
+ bounces: false,
7489
+ contentContainerStyle: {
7490
+ flexGrow: 1,
7491
+ position: 'relative'
7492
+ },
7493
+ children: body
7494
+ }), footer || null]
7495
+ })]
7496
+ })
7497
+ });
7498
+ }
7499
+ FullscreenModal.Header = FullscreenModalHeader;
7500
+ FullscreenModal.Footer = FullscreenModalFooter;
7501
+ FullscreenModal.Body = FullscreenModalBody;
7502
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
7503
+
7504
+ function NativeOpacityAnimation({
7505
+ visible,
7506
+ children
7507
+ }) {
7508
+ const theme = useTheme();
7509
+ const opacityStyle = Animated.useAnimatedStyle(() => {
7510
+ const {
7511
+ duration,
7512
+ easing
7513
+ } = theme.kitt.fullscreenModal.animation.overlay;
7514
+ const [x1, y1, x2, y2] = easing;
7515
+ return {
7516
+ opacity: Animated.withTiming(visible ? 1 : 0, {
7517
+ duration,
7518
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
7519
+ })
7520
+ };
7521
+ });
7522
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
7523
+ style: [reactNative.StyleSheet.absoluteFillObject, opacityStyle],
7524
+ children: children
7525
+ });
7526
+ }
7527
+
7528
+ function NativeSlideInAnimation({
7529
+ visible,
7530
+ children,
7531
+ onEntered,
7532
+ onExited
7533
+ }) {
7534
+ const theme = useTheme();
7535
+ const {
7536
+ height: wHeight
7537
+ } = reactNative.useWindowDimensions();
7538
+ const hasRunAnimationRef = react.useRef(false);
7539
+ function handleAnimationFinished() {
7540
+ if (visible) {
7541
+ if (onEntered) onEntered();
7542
+ hasRunAnimationRef.current = true;
7543
+ }
7544
+
7545
+ // Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
7546
+ if (!visible && hasRunAnimationRef.current) onExited();
7547
+ }
7548
+ const translateStyle = Animated.useAnimatedStyle(() => {
7549
+ const {
7550
+ duration,
7551
+ easing
7552
+ } = theme.kitt.fullscreenModal.animation.content;
7553
+ const [x1, y1, x2, y2] = easing;
7554
+ return {
7555
+ transform: [{
7556
+ translateY: Animated.withTiming(visible ? 0 : wHeight, {
7557
+ duration,
7558
+ easing: Animated.Easing.bezier(x1, y1, x2, y2)
7559
+ }, isFinished => {
7560
+ if (!isFinished) return;
7561
+ Animated.runOnJS(handleAnimationFinished)();
7562
+ })
7563
+ }]
7564
+ };
7565
+ });
7566
+ return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
7567
+ style: [{
7568
+ transform: [{
7569
+ translateY: wHeight
7570
+ }]
7571
+ }, translateStyle, {
7572
+ width: '100%',
7573
+ flex: 1
7574
+ }],
7575
+ children: children
7576
+ });
7577
+ }
7578
+
7579
+ function FullscreenModal2Animation({
7084
7580
  visible,
7085
- unmountOnExit = true,
7086
- isAnimationEnabled = true,
7581
+ children,
7087
7582
  onEnter,
7088
7583
  onEntered,
7089
7584
  onExit,
7090
- onExited,
7091
- onClose,
7092
- ...props
7585
+ onExited
7093
7586
  }) {
7094
- const theme = useTheme();
7095
- const {
7096
- animation
7097
- } = theme.kitt.fullscreenModal;
7098
- const sharedProps = {
7099
- in: visible,
7100
- appear,
7101
- unmountOnExit
7587
+ const [isModalVisible, setIsModalVisible] = react.useState(visible);
7588
+ const [isContentVisible, setIsContentVisible] = react.useState(false);
7589
+ const handleAnimationExited = () => {
7590
+ setIsModalVisible(false);
7591
+ // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
7102
7592
  };
7103
- return /*#__PURE__*/jsxRuntime.jsxs(View, {
7104
- ...props,
7105
- children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7106
- ...sharedProps,
7107
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7108
- classNames: opacityClassNames,
7109
- children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
7110
- onPress: onClose
7111
- })
7112
- }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7113
- ...sharedProps,
7114
- timeout: isAnimationEnabled ? animation.content.duration : 0,
7115
- classNames: slideInClassNames,
7116
- onEnter: onEnter,
7117
- onEntered: onEntered,
7118
- onExit: onExit,
7119
- onExited: onExited,
7120
- children: children
7121
- })]
7593
+
7594
+ // When parent visibility is set to false, in order to have our exit animation we must in this order :
7595
+ // 1 - run the exit animation
7596
+ // 2 - once it is done, unmount the Modal
7597
+ react.useEffect(() => {
7598
+ if (!(!visible && isContentVisible)) return;
7599
+ if (onExit) onExit();
7600
+ setIsContentVisible(false);
7601
+ }, [visible, isContentVisible, onExit]);
7602
+ return /*#__PURE__*/jsxRuntime.jsx(reactNative.Modal, {
7603
+ transparent: true,
7604
+ supportedOrientations: ['landscape', 'portrait'],
7605
+ visible: isModalVisible,
7606
+ onShow: () => {
7607
+ if (onEnter) onEnter();
7608
+ setIsContentVisible(true);
7609
+ },
7610
+ onDismiss: () => {
7611
+ if (onExited) onExited();
7612
+ },
7613
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
7614
+ position: "relative",
7615
+ flexGrow: 1,
7616
+ justifyContent: "center",
7617
+ alignItems: "center",
7618
+ children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation, {
7619
+ visible: isContentVisible,
7620
+ children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
7621
+ onPress: handleAnimationExited
7622
+ })
7623
+ }), /*#__PURE__*/jsxRuntime.jsx(NativeSlideInAnimation, {
7624
+ visible: isContentVisible,
7625
+ onExited: handleAnimationExited,
7626
+ onEntered: onEntered,
7627
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
7628
+ flexGrow: 1,
7629
+ children: children
7630
+ })
7631
+ })]
7632
+ })
7122
7633
  });
7123
7634
  }
7124
7635
 
7125
- function FullscreenModalBehaviour({
7636
+ function FullscreenModal2Behaviour({
7126
7637
  children,
7127
7638
  visible,
7128
7639
  onClose,
@@ -7138,7 +7649,7 @@ function FullscreenModalBehaviour({
7138
7649
  return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
7139
7650
  visible: isModalBehaviourVisible,
7140
7651
  onClose: onClose,
7141
- children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModalAnimation, {
7652
+ children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModal2Animation, {
7142
7653
  ...props,
7143
7654
  visible: visible,
7144
7655
  onExited: () => {
@@ -7150,7 +7661,51 @@ function FullscreenModalBehaviour({
7150
7661
  });
7151
7662
  }
7152
7663
 
7153
- function FullscreenModalContainer({
7664
+ function FullscreenModal2Body({
7665
+ children,
7666
+ shouldHandleBottomNotch,
7667
+ style,
7668
+ shouldHandleTopNotch,
7669
+ ...props
7670
+ }) {
7671
+ const {
7672
+ bottom,
7673
+ top
7674
+ } = reactNativeSafeAreaContext.useSafeAreaInsets();
7675
+ const {
7676
+ kitt: {
7677
+ fullscreenModal: {
7678
+ body: {
7679
+ verticalPadding
7680
+ }
7681
+ }
7682
+ }
7683
+ } = useTheme();
7684
+ const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7685
+ const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7686
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
7687
+ flexGrow: 1,
7688
+ flexShrink: 1,
7689
+ justifyContent: "space-between",
7690
+ children: /*#__PURE__*/jsxRuntime.jsx(nativeBase.ScrollView, {
7691
+ bounces: false,
7692
+ contentContainerStyle: {
7693
+ flexGrow: 1,
7694
+ position: 'relative'
7695
+ },
7696
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
7697
+ ...props,
7698
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7699
+ paddingTop: paddingTop,
7700
+ paddingBottom: paddingBottom,
7701
+ style: style,
7702
+ children: children
7703
+ })
7704
+ })
7705
+ });
7706
+ }
7707
+
7708
+ function FullscreenModal2Container({
7154
7709
  children,
7155
7710
  backgroundColor
7156
7711
  }) {
@@ -7174,7 +7729,30 @@ function FullscreenModalContainer({
7174
7729
  });
7175
7730
  }
7176
7731
 
7177
- function FullscreenModalHeader({
7732
+ function FullscreenModal2Footer({
7733
+ shouldHandleBottomNotch = true,
7734
+ hasSeparator = true,
7735
+ children,
7736
+ ...props
7737
+ }) {
7738
+ const {
7739
+ bottom
7740
+ } = reactNativeSafeAreaContext.useSafeAreaInsets();
7741
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
7742
+ borderTopColor: "kitt.separator",
7743
+ borderTopWidth: hasSeparator ? 1 : undefined,
7744
+ paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
7745
+ paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
7746
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7747
+ ...props,
7748
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
7749
+ paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
7750
+ children: children
7751
+ })
7752
+ });
7753
+ }
7754
+
7755
+ function FullscreenModal2Header({
7178
7756
  hasSeparator = true,
7179
7757
  isTransparent,
7180
7758
  title,
@@ -7233,38 +7811,19 @@ function FullscreenModalHeader({
7233
7811
  });
7234
7812
  }
7235
7813
 
7236
- function FullscreenModal({
7237
- body,
7238
- header,
7239
- footer,
7814
+ function FullscreenModal2({
7240
7815
  backgroundColor,
7241
- contentContainer: ContentContainer = IdentityComponent
7816
+ children
7242
7817
  }) {
7243
- return /*#__PURE__*/jsxRuntime.jsx(FullscreenModalContainer, {
7818
+ return /*#__PURE__*/jsxRuntime.jsx(FullscreenModal2Container, {
7244
7819
  backgroundColor: backgroundColor,
7245
- children: /*#__PURE__*/jsxRuntime.jsxs(ContentContainer, {
7246
- children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7247
- children: header
7248
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7249
- flexGrow: 1,
7250
- flexShrink: 1,
7251
- justifyContent: "space-between",
7252
- children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7253
- bounces: false,
7254
- contentContainerStyle: {
7255
- flexGrow: 1,
7256
- position: 'relative'
7257
- },
7258
- children: body
7259
- }), footer || null]
7260
- })]
7261
- })
7820
+ children: children
7262
7821
  });
7263
7822
  }
7264
- FullscreenModal.Header = FullscreenModalHeader;
7265
- FullscreenModal.Footer = FullscreenModalFooter;
7266
- FullscreenModal.Body = FullscreenModalBody;
7267
- FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
7823
+ FullscreenModal2.Header = FullscreenModal2Header;
7824
+ FullscreenModal2.Footer = FullscreenModal2Footer;
7825
+ FullscreenModal2.Body = FullscreenModal2Body;
7826
+ FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
7268
7827
 
7269
7828
  function GroupTags({
7270
7829
  children,
@@ -10807,7 +11366,7 @@ function NavigationModal({
10807
11366
  contentContainer: contentContainer
10808
11367
  });
10809
11368
  }
10810
- function Header(props) {
11369
+ function Header$1(props) {
10811
11370
  const Component = useBreakpointValue({
10812
11371
  base: FullscreenModal.Header,
10813
11372
  small: CardModal.Header
@@ -10816,7 +11375,7 @@ function Header(props) {
10816
11375
  ...props
10817
11376
  });
10818
11377
  }
10819
- function Body(props) {
11378
+ function Body$1(props) {
10820
11379
  const Component = useBreakpointValue({
10821
11380
  base: FullscreenModal.Body,
10822
11381
  small: CardModal.Body
@@ -10825,7 +11384,7 @@ function Body(props) {
10825
11384
  ...props
10826
11385
  });
10827
11386
  }
10828
- function Footer(props) {
11387
+ function Footer$1(props) {
10829
11388
  const Component = useBreakpointValue({
10830
11389
  base: FullscreenModal.Footer,
10831
11390
  small: CardModal.Footer
@@ -10834,11 +11393,106 @@ function Footer(props) {
10834
11393
  ...props
10835
11394
  });
10836
11395
  }
10837
- NavigationModal.Header = Header;
10838
- NavigationModal.Body = Body;
10839
- NavigationModal.Footer = Footer;
11396
+ NavigationModal.Header = Header$1;
11397
+ NavigationModal.Body = Body$1;
11398
+ NavigationModal.Footer = Footer$1;
10840
11399
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
10841
11400
 
11401
+ function NavigationModal2Behaviour({
11402
+ children,
11403
+ visible,
11404
+ appear = true,
11405
+ onExited,
11406
+ onEnter,
11407
+ onExit,
11408
+ onClose,
11409
+ ...props
11410
+ }) {
11411
+ const AnimationComponent = useBreakpointValue({
11412
+ base: FullscreenModal2Animation,
11413
+ small: CardModal2Animation
11414
+ });
11415
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = react.useState(visible);
11416
+ const [shouldAppear, setShouldAppear] = react.useState(appear);
11417
+ react.useEffect(() => {
11418
+ if (visible === true) {
11419
+ setIsModalBehaviourVisible(true);
11420
+ }
11421
+ }, [visible]);
11422
+ return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
11423
+ visible: isModalBehaviourVisible,
11424
+ onClose: onClose,
11425
+ children: /*#__PURE__*/jsxRuntime.jsx(AnimationComponent, {
11426
+ ...props,
11427
+ appear: shouldAppear,
11428
+ visible: visible,
11429
+ onEnter: () => {
11430
+ if (onEnter) onEnter();
11431
+
11432
+ // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11433
+ setShouldAppear(false);
11434
+ },
11435
+ onExit: () => {
11436
+ if (onExit) onExit();
11437
+
11438
+ // Reset appear value to its original value for future modal display
11439
+ setShouldAppear(appear);
11440
+ },
11441
+ onExited: () => {
11442
+ if (onExited) onExited();
11443
+ setIsModalBehaviourVisible(false);
11444
+ },
11445
+ onClose: onClose,
11446
+ children: children
11447
+ })
11448
+ });
11449
+ }
11450
+
11451
+ function NavigationModal2({
11452
+ backgroundColor,
11453
+ children
11454
+ }) {
11455
+ const Component = useBreakpointValue({
11456
+ base: FullscreenModal2,
11457
+ small: CardModal2
11458
+ });
11459
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
11460
+ backgroundColor: backgroundColor,
11461
+ children: children
11462
+ });
11463
+ }
11464
+ function Header(props) {
11465
+ const Component = useBreakpointValue({
11466
+ base: FullscreenModal2.Header,
11467
+ small: CardModal2.Header
11468
+ });
11469
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
11470
+ ...props
11471
+ });
11472
+ }
11473
+ function Body(props) {
11474
+ const Component = useBreakpointValue({
11475
+ base: FullscreenModal2.Body,
11476
+ small: CardModal2.Body
11477
+ });
11478
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
11479
+ ...props
11480
+ });
11481
+ }
11482
+ function Footer(props) {
11483
+ const Component = useBreakpointValue({
11484
+ base: FullscreenModal2.Footer,
11485
+ small: CardModal2.Footer
11486
+ });
11487
+ return /*#__PURE__*/jsxRuntime.jsx(Component, {
11488
+ ...props
11489
+ });
11490
+ }
11491
+ NavigationModal2.Header = Header;
11492
+ NavigationModal2.Body = Body;
11493
+ NavigationModal2.Footer = Footer;
11494
+ NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
11495
+
10842
11496
  function Notification({
10843
11497
  type,
10844
11498
  children,
@@ -13069,6 +13723,7 @@ exports.Avatar = Avatar;
13069
13723
  exports.BottomSheet = BottomSheet;
13070
13724
  exports.Button = Button;
13071
13725
  exports.CardModal = CardModal;
13726
+ exports.CardModal2 = CardModal2;
13072
13727
  exports.Center = Center;
13073
13728
  exports.Checkbox = Checkbox;
13074
13729
  exports.ChoicesElements = ChoicesElements;
@@ -13083,6 +13738,7 @@ exports.FilePicker = FilePicker;
13083
13738
  exports.FlatList = FlatList;
13084
13739
  exports.Flex = Flex;
13085
13740
  exports.FullscreenModal = FullscreenModal;
13741
+ exports.FullscreenModal2 = FullscreenModal2;
13086
13742
  exports.GoogleMapsApiKeyProvider = GoogleMapsApiKeyProvider;
13087
13743
  exports.GoogleMapsAutocompleteProvider = GoogleMapsAutocompleteProvider;
13088
13744
  exports.GroupTags = GroupTags;
@@ -13122,6 +13778,7 @@ exports.Message = Message;
13122
13778
  exports.ModalBehaviour = ModalBehaviour;
13123
13779
  exports.NativeOnlyFlatList = NativeOnlyFlatList;
13124
13780
  exports.NavigationModal = NavigationModal;
13781
+ exports.NavigationModal2 = NavigationModal2;
13125
13782
  exports.Notification = Notification;
13126
13783
  exports.Overlay = Overlay;
13127
13784
  exports.PageLoader = PageLoader;