@ornikar/kitt-universal 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.0 → 25.49.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 (82) hide show
  1. package/CHANGELOG.md +2 -4
  2. package/dist/definitions/BottomSheet/BottomSheet.d.ts +2 -3
  3. package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -1
  4. package/dist/definitions/CardModal/CardModal.d.ts +2 -3
  5. package/dist/definitions/CardModal/CardModal.d.ts.map +1 -1
  6. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts +2 -3
  7. package/dist/definitions/FullscreenModal/FullscreenModal.d.ts.map +1 -1
  8. package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
  9. package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
  10. package/dist/definitions/index.d.ts +0 -6
  11. package/dist/definitions/index.d.ts.map +1 -1
  12. package/dist/index-metro.es.android.js +164 -922
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +164 -922
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-20.10.cjs.js +97 -852
  17. package/dist/index-node-20.10.cjs.js.map +1 -1
  18. package/dist/index-node-20.10.cjs.web.css +0 -8
  19. package/dist/index-node-20.10.cjs.web.js +139 -822
  20. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  21. package/dist/index-node-20.10.es.mjs +98 -850
  22. package/dist/index-node-20.10.es.mjs.map +1 -1
  23. package/dist/index-node-20.10.es.web.css +0 -8
  24. package/dist/index-node-20.10.es.web.mjs +141 -821
  25. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  26. package/dist/index.es.js +166 -935
  27. package/dist/index.es.js.map +1 -1
  28. package/dist/index.es.web.js +225 -910
  29. package/dist/index.es.web.js.map +1 -1
  30. package/dist/styles.css +0 -8
  31. package/dist/tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/definitions/CardModal2/CardModal2.d.ts +0 -19
  34. package/dist/definitions/CardModal2/CardModal2.d.ts.map +0 -1
  35. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +0 -8
  36. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +0 -1
  37. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +0 -4
  38. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +0 -1
  39. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +0 -7
  40. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +0 -1
  41. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +0 -8
  42. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +0 -1
  43. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +0 -11
  44. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +0 -1
  45. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +0 -8
  46. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +0 -1
  47. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +0 -7
  48. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +0 -1
  49. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +0 -7
  50. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +0 -1
  51. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +0 -20
  52. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +0 -1
  53. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +0 -18
  54. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +0 -1
  55. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +0 -8
  56. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +0 -1
  57. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +0 -8
  58. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +0 -1
  59. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +0 -9
  60. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +0 -1
  61. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +0 -8
  62. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +0 -1
  63. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +0 -8
  64. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +0 -1
  65. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +0 -22
  66. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +0 -1
  67. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +0 -7
  68. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +0 -1
  69. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +0 -10
  70. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +0 -1
  71. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +0 -23
  72. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +0 -1
  73. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +0 -8
  74. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +0 -1
  75. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +0 -7
  76. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +0 -1
  77. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +0 -7
  78. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +0 -1
  79. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +0 -7
  80. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +0 -1
  81. package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
  82. package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
@@ -3818,24 +3818,6 @@ function useStaticBottomSheet(Content) {
3818
3818
  };
3819
3819
  }
3820
3820
 
3821
- /**
3822
- * A utility component that returns its children without any modifications.
3823
- *
3824
- * This component acts as an identity function for React elements - it simply returns
3825
- * whatever children are passed to it. It can be useful in conditional rendering patterns,
3826
- * component composition, or as a placeholder in component hierarchies.
3827
- *
3828
- * @returns The children as they were passed in, without any wrapper elements
3829
- *
3830
- * @example
3831
- * See CardModal and FullscreenModal for usage examples.
3832
- */
3833
- function IdentityComponent({
3834
- children
3835
- }) {
3836
- return children;
3837
- }
3838
-
3839
3821
  const overflowHidden = "kitt-u_overflowHidden_otm3u3";
3840
3822
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
3841
3823
  react.useEffect(() => {
@@ -3943,253 +3925,10 @@ function CardModalRotationContainer(props) {
3943
3925
  });
3944
3926
  }
3945
3927
 
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
- };
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
- };
3970
- function CardModalAnimation({
3971
- children,
3972
- appear = true,
3973
- visible,
3974
- unmountOnExit = true,
3975
- isAnimationEnabled = true,
3976
- onEnter,
3977
- onEntered,
3978
- onExit,
3979
- onExited,
3980
- onClose,
3981
- ...props
3982
- }) {
3983
- const theme = useTheme();
3984
- const {
3985
- animation
3986
- } = theme.kitt.cardModal;
3987
- const sharedProps = {
3988
- in: visible,
3989
- appear,
3990
- unmountOnExit
3991
- };
3992
- return /*#__PURE__*/jsxRuntime.jsxs(View, {
3993
- ...props,
3994
- height: "100%",
3995
- justifyContent: "center",
3996
- children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
3997
- ...sharedProps,
3998
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
3999
- classNames: opacityClassNames$3,
4000
- children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
4001
- onPress: onClose
4002
- })
4003
- }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
4004
- ...sharedProps,
4005
- timeout: isAnimationEnabled ? animation.content.duration : 0,
4006
- classNames: contentAnimationClassNames$2,
4007
- onEnter: onEnter,
4008
- onEntered: onEntered,
4009
- onExit: onExit,
4010
- onExited: onExited,
4011
- children: /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
4012
- alignItems: "center",
4013
- margin: "auto",
4014
- children: children
4015
- })
4016
- })]
4017
- });
4018
- }
4019
-
4020
- function CardModalBehaviour({
4021
- children,
4022
- visible,
4023
- onClose,
4024
- onExited,
4025
- ...props
4026
- }) {
4027
- const [isModalBehaviourVisible, setIsModalBehaviourVisible] = react.useState(visible);
4028
- react.useEffect(() => {
4029
- if (visible === true) {
4030
- setIsModalBehaviourVisible(true);
4031
- }
4032
- }, [visible]);
4033
- return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
4034
- visible: isModalBehaviourVisible,
4035
- onClose: onClose,
4036
- children: /*#__PURE__*/jsxRuntime.jsx(CardModalAnimation, {
4037
- ...props,
4038
- visible: visible,
4039
- onExited: () => {
4040
- if (onExited) onExited();
4041
- setIsModalBehaviourVisible(false);
4042
- },
4043
- onClose: onClose,
4044
- children: children
4045
- })
4046
- });
4047
- }
4048
-
4049
- function CardModalBody({
4050
- children,
4051
- paddingX = {
4052
- base: 'kitt.4',
4053
- medium: 'kitt.6'
4054
- },
4055
- paddingY = 'kitt.4',
4056
- ...props
4057
- }) {
4058
- return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
4059
- showsVerticalScrollIndicator: false,
4060
- _contentContainerStyle: {
4061
- paddingX,
4062
- paddingY
4063
- },
4064
- ...props,
4065
- children: children
4066
- });
4067
- }
4068
-
4069
- function CardModalFooter({
4070
- children,
4071
- padding = {
4072
- base: 'kitt.4',
4073
- medium: 'kitt.2'
4074
- },
4075
- hasSeparator = true,
4076
- ...props
4077
- }) {
4078
- return /*#__PURE__*/jsxRuntime.jsx(View, {
4079
- ...props,
4080
- marginTop: "kitt.2",
4081
- padding: padding,
4082
- borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4083
- borderColor: "kitt.separator",
4084
- alignItems: {
4085
- base: undefined,
4086
- medium: 'flex-end'
4087
- },
4088
- children: children
4089
- });
4090
- }
4091
-
4092
- function CardModalHeader({
4093
- children,
4094
- title,
4095
- paddingBottom = {
4096
- base: 'kitt.4',
4097
- medium: 'kitt.2'
4098
- },
4099
- hasSeparator = true,
4100
- right,
4101
- left,
4102
- ...props
4103
- }) {
4104
- const defaultContainerPadding = {
4105
- base: 'kitt.4',
4106
- medium: 'kitt.6'
4107
- };
4108
- return /*#__PURE__*/jsxRuntime.jsx(View, {
4109
- ...props,
4110
- padding: paddingBottom,
4111
- borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4112
- borderColor: "kitt.separator",
4113
- justifyContent: "center",
4114
- width: "100%",
4115
- height: "kitt.cardModal.header.height",
4116
- paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4117
- paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4118
- children: /*#__PURE__*/jsxRuntime.jsxs(View, {
4119
- alignItems: "center",
4120
- flexDirection: "row",
4121
- justifyContent: !children && !left ? 'flex-end' : 'space-between',
4122
- children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
4123
- width: "kitt.iconButton.width",
4124
- children: left
4125
- }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
4126
- flexGrow: "1",
4127
- paddingRight: right ? 'kitt.2' : 0,
4128
- paddingLeft: left ? 'kitt.2' : 0,
4129
- children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
4130
- textAlign: !left && right ? 'left' : 'center',
4131
- variant: "bold",
4132
- children: title
4133
- }) : null, children]
4134
- }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
4135
- width: "kitt.iconButton.width",
4136
- children: right
4137
- }) : null]
4138
- })
4139
- });
4140
- }
4141
-
4142
- function CardModal({
4143
- backgroundColor = 'kitt.uiBackgroundLight',
4144
- maxWidth = 'kitt.cardModal.maxWidth',
4145
- withoutShadow,
4146
- children,
4147
- header,
4148
- body,
4149
- footer,
4150
- contentContainer: ContentContainer = IdentityComponent,
4151
- ...props
4152
- }) {
4153
- return /*#__PURE__*/jsxRuntime.jsx(View, {
4154
- ...props,
4155
- overflow: "hidden",
4156
- backgroundColor: backgroundColor,
4157
- shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4158
- borderRadius: "kitt.cardModal.borderRadius",
4159
- width: "100%",
4160
- maxHeight: "100%",
4161
- maxWidth: maxWidth,
4162
- minHeight: "kitt.cardModal.minHeight",
4163
- children: /*#__PURE__*/jsxRuntime.jsx(ContentContainer, {
4164
- children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4165
- children: [header || null, body || null, footer || null]
4166
- })
4167
- })
4168
- });
4169
- }
4170
- CardModal.Body = CardModalBody;
4171
- CardModal.Header = CardModalHeader;
4172
- CardModal.Footer = CardModalFooter;
4173
- CardModal.ModalBehaviour = CardModalBehaviour;
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";
3928
+ const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
3929
+ const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
3930
+ const contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
3931
+ const contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
4193
3932
  const contentAnimationClassNames$1 = {
4194
3933
  appear: contentAnimationEnter$1,
4195
3934
  appearActive: contentAnimatioEnterActive$1,
@@ -4198,10 +3937,10 @@ const contentAnimationClassNames$1 = {
4198
3937
  exit: contentAnimatioExit$1,
4199
3938
  exitActive: contentAnimatioExitActive$1
4200
3939
  };
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";
3940
+ const opacityEnter$2 = "kitt-u_opacityEnter_o1ae40dx";
3941
+ const opacityEnterActive$2 = "kitt-u_opacityEnterActive_o1t4vl7b";
3942
+ const opacityExit$2 = "kitt-u_opacityExit_ogyytm1";
3943
+ const opacityExitActive$2 = "kitt-u_opacityExitActive_o18xvk52";
4205
3944
  const opacityClassNames$2 = {
4206
3945
  appear: opacityEnter$2,
4207
3946
  appearActive: opacityEnterActive$2,
@@ -4210,7 +3949,7 @@ const opacityClassNames$2 = {
4210
3949
  exit: opacityExit$2,
4211
3950
  exitActive: opacityExitActive$2
4212
3951
  };
4213
- function CardModal2Animation({
3952
+ function CardModalAnimation({
4214
3953
  children,
4215
3954
  appear = true,
4216
3955
  visible,
@@ -4251,7 +3990,7 @@ function CardModal2Animation({
4251
3990
  onEntered: onEntered,
4252
3991
  onExit: onExit,
4253
3992
  onExited: onExited,
4254
- children: /*#__PURE__*/jsxRuntime.jsx(CardModal2RotationContainer, {
3993
+ children: /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
4255
3994
  alignItems: "center",
4256
3995
  margin: "auto",
4257
3996
  children: children
@@ -4260,7 +3999,7 @@ function CardModal2Animation({
4260
3999
  });
4261
4000
  }
4262
4001
 
4263
- function CardModal2Behaviour({
4002
+ function CardModalBehaviour({
4264
4003
  children,
4265
4004
  visible,
4266
4005
  onClose,
@@ -4276,7 +4015,7 @@ function CardModal2Behaviour({
4276
4015
  return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
4277
4016
  visible: isModalBehaviourVisible,
4278
4017
  onClose: onClose,
4279
- children: /*#__PURE__*/jsxRuntime.jsx(CardModal2Animation, {
4018
+ children: /*#__PURE__*/jsxRuntime.jsx(CardModalAnimation, {
4280
4019
  ...props,
4281
4020
  visible: visible,
4282
4021
  onExited: () => {
@@ -4289,7 +4028,7 @@ function CardModal2Behaviour({
4289
4028
  });
4290
4029
  }
4291
4030
 
4292
- function CardModal2Body({
4031
+ function CardModalBody({
4293
4032
  children,
4294
4033
  paddingX = {
4295
4034
  base: 'kitt.4',
@@ -4309,7 +4048,7 @@ function CardModal2Body({
4309
4048
  });
4310
4049
  }
4311
4050
 
4312
- function CardModal2Footer({
4051
+ function CardModalFooter({
4313
4052
  children,
4314
4053
  padding = {
4315
4054
  base: 'kitt.4',
@@ -4332,7 +4071,7 @@ function CardModal2Footer({
4332
4071
  });
4333
4072
  }
4334
4073
 
4335
- function CardModal2Header({
4074
+ function CardModalHeader({
4336
4075
  children,
4337
4076
  title,
4338
4077
  paddingBottom = {
@@ -4382,11 +4121,14 @@ function CardModal2Header({
4382
4121
  });
4383
4122
  }
4384
4123
 
4385
- function CardModal2({
4124
+ function CardModal({
4386
4125
  backgroundColor = 'kitt.uiBackgroundLight',
4387
4126
  maxWidth = 'kitt.cardModal.maxWidth',
4388
4127
  withoutShadow,
4389
4128
  children,
4129
+ header,
4130
+ body,
4131
+ footer,
4390
4132
  ...props
4391
4133
  }) {
4392
4134
  return /*#__PURE__*/jsxRuntime.jsx(View, {
@@ -4399,13 +4141,15 @@ function CardModal2({
4399
4141
  maxHeight: "100%",
4400
4142
  maxWidth: maxWidth,
4401
4143
  minHeight: "kitt.cardModal.minHeight",
4402
- children: children
4144
+ children: children || /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4145
+ children: [header || null, body || null, footer || null]
4146
+ })
4403
4147
  });
4404
4148
  }
4405
- CardModal2.Body = CardModal2Body;
4406
- CardModal2.Header = CardModal2Header;
4407
- CardModal2.Footer = CardModal2Footer;
4408
- CardModal2.Behaviour = CardModal2Behaviour;
4149
+ CardModal.Body = CardModalBody;
4150
+ CardModal.Header = CardModalHeader;
4151
+ CardModal.Footer = CardModalFooter;
4152
+ CardModal.ModalBehaviour = CardModalBehaviour;
4409
4153
 
4410
4154
  function getBackgroundColor$6({
4411
4155
  isDisabled,
@@ -7269,371 +7013,95 @@ function FullscreenModalBody({
7269
7013
  function FullscreenModalFooter({
7270
7014
  shouldHandleBottomNotch = true,
7271
7015
  hasSeparator = true,
7272
- children,
7273
- ...props
7274
- }) {
7275
- const {
7276
- bottom
7277
- } = reactNativeSafeAreaContext.useSafeAreaInsets();
7278
- return /*#__PURE__*/jsxRuntime.jsx(View, {
7279
- borderTopColor: "kitt.separator",
7280
- borderTopWidth: hasSeparator ? 1 : undefined,
7281
- paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
7282
- paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
7283
- paddingX: "kitt.fullscreenModal.horizontalPadding",
7284
- ...props,
7285
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
7286
- paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
7287
- children: children
7288
- })
7289
- });
7290
- }
7291
-
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
7016
+ children,
7017
+ ...props
7018
+ }) {
7019
+ const {
7020
+ bottom
7021
+ } = reactNativeSafeAreaContext.useSafeAreaInsets();
7022
+ return /*#__PURE__*/jsxRuntime.jsx(View, {
7023
+ borderTopColor: "kitt.separator",
7024
+ borderTopWidth: hasSeparator ? 1 : undefined,
7025
+ paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
7026
+ paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
7027
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7028
+ ...props,
7029
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
7030
+ paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
7031
+ children: children
7032
+ })
7576
7033
  });
7577
7034
  }
7578
7035
 
7579
- function FullscreenModal2Animation({
7580
- visible,
7036
+ const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7037
+ const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7038
+ const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7039
+ const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7040
+ const slideInClassNames = {
7041
+ appear: slideInFromBottomEnter,
7042
+ appearActive: slideInFromBottomEnterActive,
7043
+ enter: slideInFromBottomEnter,
7044
+ enterActive: slideInFromBottomEnterActive,
7045
+ exit: slideInFromBottomExit,
7046
+ exitActive: slideInFromBottomExitActive
7047
+ };
7048
+ const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7049
+ const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7050
+ const opacityExit = "kitt-u_opacityExit_o14r8iix";
7051
+ const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7052
+ const opacityClassNames = {
7053
+ appear: opacityEnter,
7054
+ appearActive: opacityEnterActive,
7055
+ enter: opacityEnter,
7056
+ enterActive: opacityEnterActive,
7057
+ exit: opacityExit,
7058
+ exitActive: opacityExitActive
7059
+ };
7060
+ function FullscreenModalAnimation({
7581
7061
  children,
7062
+ appear = true,
7063
+ visible,
7064
+ unmountOnExit = true,
7065
+ isAnimationEnabled = true,
7582
7066
  onEnter,
7583
7067
  onEntered,
7584
7068
  onExit,
7585
- onExited
7069
+ onExited,
7070
+ onClose,
7071
+ ...props
7586
7072
  }) {
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
7073
+ const theme = useTheme();
7074
+ const {
7075
+ animation
7076
+ } = theme.kitt.fullscreenModal;
7077
+ const sharedProps = {
7078
+ in: visible,
7079
+ appear,
7080
+ unmountOnExit
7592
7081
  };
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
- })
7082
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
7083
+ ...props,
7084
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7085
+ ...sharedProps,
7086
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7087
+ classNames: opacityClassNames,
7088
+ children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
7089
+ onPress: onClose
7090
+ })
7091
+ }), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
7092
+ ...sharedProps,
7093
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7094
+ classNames: slideInClassNames,
7095
+ onEnter: onEnter,
7096
+ onEntered: onEntered,
7097
+ onExit: onExit,
7098
+ onExited: onExited,
7099
+ children: children
7100
+ })]
7633
7101
  });
7634
7102
  }
7635
7103
 
7636
- function FullscreenModal2Behaviour({
7104
+ function FullscreenModalBehaviour({
7637
7105
  children,
7638
7106
  visible,
7639
7107
  onClose,
@@ -7649,7 +7117,7 @@ function FullscreenModal2Behaviour({
7649
7117
  return /*#__PURE__*/jsxRuntime.jsx(ModalBehaviour, {
7650
7118
  visible: isModalBehaviourVisible,
7651
7119
  onClose: onClose,
7652
- children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModal2Animation, {
7120
+ children: /*#__PURE__*/jsxRuntime.jsx(FullscreenModalAnimation, {
7653
7121
  ...props,
7654
7122
  visible: visible,
7655
7123
  onExited: () => {
@@ -7661,51 +7129,7 @@ function FullscreenModal2Behaviour({
7661
7129
  });
7662
7130
  }
7663
7131
 
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({
7132
+ function FullscreenModalContainer({
7709
7133
  children,
7710
7134
  backgroundColor
7711
7135
  }) {
@@ -7729,30 +7153,7 @@ function FullscreenModal2Container({
7729
7153
  });
7730
7154
  }
7731
7155
 
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({
7156
+ function FullscreenModalHeader({
7756
7157
  hasSeparator = true,
7757
7158
  isTransparent,
7758
7159
  title,
@@ -7811,19 +7212,35 @@ function FullscreenModal2Header({
7811
7212
  });
7812
7213
  }
7813
7214
 
7814
- function FullscreenModal2({
7815
- backgroundColor,
7816
- children
7215
+ function FullscreenModal({
7216
+ body,
7217
+ header,
7218
+ footer,
7219
+ backgroundColor
7817
7220
  }) {
7818
- return /*#__PURE__*/jsxRuntime.jsx(FullscreenModal2Container, {
7221
+ return /*#__PURE__*/jsxRuntime.jsxs(FullscreenModalContainer, {
7819
7222
  backgroundColor: backgroundColor,
7820
- children: children
7223
+ children: [header ? /*#__PURE__*/jsxRuntime.jsx(View, {
7224
+ children: header
7225
+ }) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
7226
+ flexGrow: 1,
7227
+ flexShrink: 1,
7228
+ justifyContent: "space-between",
7229
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
7230
+ bounces: false,
7231
+ contentContainerStyle: {
7232
+ flexGrow: 1,
7233
+ position: 'relative'
7234
+ },
7235
+ children: body
7236
+ }), footer || null]
7237
+ })]
7821
7238
  });
7822
7239
  }
7823
- FullscreenModal2.Header = FullscreenModal2Header;
7824
- FullscreenModal2.Footer = FullscreenModal2Footer;
7825
- FullscreenModal2.Body = FullscreenModal2Body;
7826
- FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
7240
+ FullscreenModal.Header = FullscreenModalHeader;
7241
+ FullscreenModal.Footer = FullscreenModalFooter;
7242
+ FullscreenModal.Body = FullscreenModalBody;
7243
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
7827
7244
 
7828
7245
  function GroupTags({
7829
7246
  children,
@@ -11351,8 +10768,7 @@ function NavigationModal({
11351
10768
  body,
11352
10769
  backgroundColor,
11353
10770
  footer,
11354
- header,
11355
- contentContainer
10771
+ header
11356
10772
  }) {
11357
10773
  const Component = useBreakpointValue({
11358
10774
  base: FullscreenModal,
@@ -11362,11 +10778,10 @@ function NavigationModal({
11362
10778
  body: body,
11363
10779
  backgroundColor: backgroundColor,
11364
10780
  footer: footer,
11365
- header: header,
11366
- contentContainer: contentContainer
10781
+ header: header
11367
10782
  });
11368
10783
  }
11369
- function Header$1(props) {
10784
+ function Header(props) {
11370
10785
  const Component = useBreakpointValue({
11371
10786
  base: FullscreenModal.Header,
11372
10787
  small: CardModal.Header
@@ -11375,7 +10790,7 @@ function Header$1(props) {
11375
10790
  ...props
11376
10791
  });
11377
10792
  }
11378
- function Body$1(props) {
10793
+ function Body(props) {
11379
10794
  const Component = useBreakpointValue({
11380
10795
  base: FullscreenModal.Body,
11381
10796
  small: CardModal.Body
@@ -11384,7 +10799,7 @@ function Body$1(props) {
11384
10799
  ...props
11385
10800
  });
11386
10801
  }
11387
- function Footer$1(props) {
10802
+ function Footer(props) {
11388
10803
  const Component = useBreakpointValue({
11389
10804
  base: FullscreenModal.Footer,
11390
10805
  small: CardModal.Footer
@@ -11393,106 +10808,11 @@ function Footer$1(props) {
11393
10808
  ...props
11394
10809
  });
11395
10810
  }
11396
- NavigationModal.Header = Header$1;
11397
- NavigationModal.Body = Body$1;
11398
- NavigationModal.Footer = Footer$1;
10811
+ NavigationModal.Header = Header;
10812
+ NavigationModal.Body = Body;
10813
+ NavigationModal.Footer = Footer;
11399
10814
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
11400
10815
 
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
-
11496
10816
  function Notification({
11497
10817
  type,
11498
10818
  children,
@@ -13723,7 +13043,6 @@ exports.Avatar = Avatar;
13723
13043
  exports.BottomSheet = BottomSheet;
13724
13044
  exports.Button = Button;
13725
13045
  exports.CardModal = CardModal;
13726
- exports.CardModal2 = CardModal2;
13727
13046
  exports.Center = Center;
13728
13047
  exports.Checkbox = Checkbox;
13729
13048
  exports.ChoicesElements = ChoicesElements;
@@ -13738,7 +13057,6 @@ exports.FilePicker = FilePicker;
13738
13057
  exports.FlatList = FlatList;
13739
13058
  exports.Flex = Flex;
13740
13059
  exports.FullscreenModal = FullscreenModal;
13741
- exports.FullscreenModal2 = FullscreenModal2;
13742
13060
  exports.GoogleMapsApiKeyProvider = GoogleMapsApiKeyProvider;
13743
13061
  exports.GoogleMapsAutocompleteProvider = GoogleMapsAutocompleteProvider;
13744
13062
  exports.GroupTags = GroupTags;
@@ -13778,7 +13096,6 @@ exports.Message = Message;
13778
13096
  exports.ModalBehaviour = ModalBehaviour;
13779
13097
  exports.NativeOnlyFlatList = NativeOnlyFlatList;
13780
13098
  exports.NavigationModal = NavigationModal;
13781
- exports.NavigationModal2 = NavigationModal2;
13782
13099
  exports.Notification = Notification;
13783
13100
  exports.Overlay = Overlay;
13784
13101
  exports.PageLoader = PageLoader;