@ornikar/kitt-universal 25.47.1 → 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 (76) hide show
  1. package/CHANGELOG.md +20 -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/TimePicker/ModalDateTimePicker.d.ts +2 -1
  51. package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
  52. package/dist/definitions/TimePicker/TimePicker.d.ts +2 -0
  53. package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
  54. package/dist/definitions/index.d.ts +6 -0
  55. package/dist/definitions/index.d.ts.map +1 -1
  56. package/dist/index-metro.es.android.js +1028 -294
  57. package/dist/index-metro.es.android.js.map +1 -1
  58. package/dist/index-metro.es.ios.js +1028 -294
  59. package/dist/index-metro.es.ios.js.map +1 -1
  60. package/dist/index-node-20.10.cjs.js +807 -76
  61. package/dist/index-node-20.10.cjs.js.map +1 -1
  62. package/dist/index-node-20.10.cjs.web.css +8 -0
  63. package/dist/index-node-20.10.cjs.web.js +777 -120
  64. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  65. package/dist/index-node-20.10.es.mjs +805 -77
  66. package/dist/index-node-20.10.es.mjs.map +1 -1
  67. package/dist/index-node-20.10.es.web.css +8 -0
  68. package/dist/index-node-20.10.es.web.mjs +776 -122
  69. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  70. package/dist/index.es.js +897 -152
  71. package/dist/index.es.js.map +1 -1
  72. package/dist/index.es.web.js +778 -120
  73. package/dist/index.es.web.js.map +1 -1
  74. package/dist/styles.css +8 -0
  75. package/dist/tsbuildinfo +1 -1
  76. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { CSSTransition } from 'react-transition-group';
8
- import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
8
+ import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, StyleSheet, useWindowDimensions, Modal } from 'react-native';
9
9
  export { useWindowDimensions as useWindowSize } from 'react-native';
10
10
  import { parse } from '@twemoji/parser';
11
11
  import Downshift, { useSelect } from 'downshift';
@@ -3936,29 +3936,29 @@ function CardModalRotationContainer(props) {
3936
3936
  });
3937
3937
  }
3938
3938
 
3939
- const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
3940
- const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
3941
- const contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
3942
- const contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
3943
- const contentAnimationClassNames$1 = {
3944
- appear: contentAnimationEnter$1,
3945
- appearActive: contentAnimatioEnterActive$1,
3946
- enter: contentAnimationEnter$1,
3947
- enterActive: contentAnimatioEnterActive$1,
3948
- exit: contentAnimatioExit$1,
3949
- exitActive: contentAnimatioExitActive$1
3939
+ const contentAnimationEnter$2 = "kitt-u_contentAnimationEnter_c11xxy4r";
3940
+ const contentAnimatioEnterActive$2 = "kitt-u_contentAnimatioEnterActive_cl52117";
3941
+ const contentAnimatioExit$2 = "kitt-u_contentAnimatioExit_cyjczep";
3942
+ const contentAnimatioExitActive$2 = "kitt-u_contentAnimatioExitActive_cpsy3dt";
3943
+ const contentAnimationClassNames$2 = {
3944
+ appear: contentAnimationEnter$2,
3945
+ appearActive: contentAnimatioEnterActive$2,
3946
+ enter: contentAnimationEnter$2,
3947
+ enterActive: contentAnimatioEnterActive$2,
3948
+ exit: contentAnimatioExit$2,
3949
+ exitActive: contentAnimatioExitActive$2
3950
3950
  };
3951
- const opacityEnter$2 = "kitt-u_opacityEnter_o1ae40dx";
3952
- const opacityEnterActive$2 = "kitt-u_opacityEnterActive_o1t4vl7b";
3953
- const opacityExit$2 = "kitt-u_opacityExit_ogyytm1";
3954
- const opacityExitActive$2 = "kitt-u_opacityExitActive_o18xvk52";
3955
- const opacityClassNames$2 = {
3956
- appear: opacityEnter$2,
3957
- appearActive: opacityEnterActive$2,
3958
- enter: opacityEnter$2,
3959
- enterActive: opacityEnterActive$2,
3960
- exit: opacityExit$2,
3961
- exitActive: opacityExitActive$2
3951
+ const opacityEnter$3 = "kitt-u_opacityEnter_o1ae40dx";
3952
+ const opacityEnterActive$3 = "kitt-u_opacityEnterActive_o1t4vl7b";
3953
+ const opacityExit$3 = "kitt-u_opacityExit_ogyytm1";
3954
+ const opacityExitActive$3 = "kitt-u_opacityExitActive_o18xvk52";
3955
+ const opacityClassNames$3 = {
3956
+ appear: opacityEnter$3,
3957
+ appearActive: opacityEnterActive$3,
3958
+ enter: opacityEnter$3,
3959
+ enterActive: opacityEnterActive$3,
3960
+ exit: opacityExit$3,
3961
+ exitActive: opacityExitActive$3
3962
3962
  };
3963
3963
  function CardModalAnimation({
3964
3964
  children,
@@ -3989,14 +3989,14 @@ function CardModalAnimation({
3989
3989
  children: [/*#__PURE__*/jsx(CSSTransition, {
3990
3990
  ...sharedProps,
3991
3991
  timeout: isAnimationEnabled ? animation.overlay.duration : 0,
3992
- classNames: opacityClassNames$2,
3992
+ classNames: opacityClassNames$3,
3993
3993
  children: /*#__PURE__*/jsx(Overlay, {
3994
3994
  onPress: onClose
3995
3995
  })
3996
3996
  }), /*#__PURE__*/jsx(CSSTransition, {
3997
3997
  ...sharedProps,
3998
3998
  timeout: isAnimationEnabled ? animation.content.duration : 0,
3999
- classNames: contentAnimationClassNames$1,
3999
+ classNames: contentAnimationClassNames$2,
4000
4000
  onEnter: onEnter,
4001
4001
  onEntered: onEntered,
4002
4002
  onExit: onExit,
@@ -4165,6 +4165,241 @@ CardModal.Header = CardModalHeader;
4165
4165
  CardModal.Footer = CardModalFooter;
4166
4166
  CardModal.ModalBehaviour = CardModalBehaviour;
4167
4167
 
4168
+ function CardModal2RotationContainer(props) {
4169
+ return /*#__PURE__*/jsx(View, {
4170
+ paddingX: "kitt.cardModal.overlayPadding.horizontal",
4171
+ paddingY: "kitt.cardModal.overlayPadding.vertical",
4172
+ maxWidth: "kitt.cardModal.maxWidthWithPadding",
4173
+ width: "100%",
4174
+ maxHeight: "100%",
4175
+ _web: {
4176
+ maxHeight: '100svh'
4177
+ },
4178
+ ...props
4179
+ });
4180
+ }
4181
+
4182
+ const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c1qvsvvv";
4183
+ const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_c1ka3ql7";
4184
+ const contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cn78c68";
4185
+ const contentAnimatioExitActive$1 = "kitt-u_contentAnimatioExitActive_c14lwu6p";
4186
+ const contentAnimationClassNames$1 = {
4187
+ appear: contentAnimationEnter$1,
4188
+ appearActive: contentAnimatioEnterActive$1,
4189
+ enter: contentAnimationEnter$1,
4190
+ enterActive: contentAnimatioEnterActive$1,
4191
+ exit: contentAnimatioExit$1,
4192
+ exitActive: contentAnimatioExitActive$1
4193
+ };
4194
+ const opacityEnter$2 = "kitt-u_opacityEnter_o1sh7i4q";
4195
+ const opacityEnterActive$2 = "kitt-u_opacityEnterActive_ow4hztn";
4196
+ const opacityExit$2 = "kitt-u_opacityExit_o1ct2t80";
4197
+ const opacityExitActive$2 = "kitt-u_opacityExitActive_ov5hhc8";
4198
+ const opacityClassNames$2 = {
4199
+ appear: opacityEnter$2,
4200
+ appearActive: opacityEnterActive$2,
4201
+ enter: opacityEnter$2,
4202
+ enterActive: opacityEnterActive$2,
4203
+ exit: opacityExit$2,
4204
+ exitActive: opacityExitActive$2
4205
+ };
4206
+ function CardModal2Animation({
4207
+ children,
4208
+ appear = true,
4209
+ visible,
4210
+ unmountOnExit = true,
4211
+ isAnimationEnabled = true,
4212
+ onEnter,
4213
+ onEntered,
4214
+ onExit,
4215
+ onExited,
4216
+ onClose,
4217
+ ...props
4218
+ }) {
4219
+ const theme = useTheme();
4220
+ const {
4221
+ animation
4222
+ } = theme.kitt.cardModal;
4223
+ const sharedProps = {
4224
+ in: visible,
4225
+ appear,
4226
+ unmountOnExit
4227
+ };
4228
+ return /*#__PURE__*/jsxs(View, {
4229
+ ...props,
4230
+ height: "100%",
4231
+ justifyContent: "center",
4232
+ children: [/*#__PURE__*/jsx(CSSTransition, {
4233
+ ...sharedProps,
4234
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
4235
+ classNames: opacityClassNames$2,
4236
+ children: /*#__PURE__*/jsx(Overlay, {
4237
+ onPress: onClose
4238
+ })
4239
+ }), /*#__PURE__*/jsx(CSSTransition, {
4240
+ ...sharedProps,
4241
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
4242
+ classNames: contentAnimationClassNames$1,
4243
+ onEnter: onEnter,
4244
+ onEntered: onEntered,
4245
+ onExit: onExit,
4246
+ onExited: onExited,
4247
+ children: /*#__PURE__*/jsx(CardModal2RotationContainer, {
4248
+ alignItems: "center",
4249
+ margin: "auto",
4250
+ children: children
4251
+ })
4252
+ })]
4253
+ });
4254
+ }
4255
+
4256
+ function CardModal2Behaviour({
4257
+ children,
4258
+ visible,
4259
+ onClose,
4260
+ onExited,
4261
+ ...props
4262
+ }) {
4263
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
4264
+ useEffect(() => {
4265
+ if (visible === true) {
4266
+ setIsModalBehaviourVisible(true);
4267
+ }
4268
+ }, [visible]);
4269
+ return /*#__PURE__*/jsx(ModalBehaviour, {
4270
+ visible: isModalBehaviourVisible,
4271
+ onClose: onClose,
4272
+ children: /*#__PURE__*/jsx(CardModal2Animation, {
4273
+ ...props,
4274
+ visible: visible,
4275
+ onExited: () => {
4276
+ if (onExited) onExited();
4277
+ setIsModalBehaviourVisible(false);
4278
+ },
4279
+ onClose: onClose,
4280
+ children: children
4281
+ })
4282
+ });
4283
+ }
4284
+
4285
+ function CardModal2Body({
4286
+ children,
4287
+ paddingX = {
4288
+ base: 'kitt.4',
4289
+ medium: 'kitt.6'
4290
+ },
4291
+ paddingY = 'kitt.4',
4292
+ ...props
4293
+ }) {
4294
+ return /*#__PURE__*/jsx(ScrollView, {
4295
+ showsVerticalScrollIndicator: false,
4296
+ _contentContainerStyle: {
4297
+ paddingX,
4298
+ paddingY
4299
+ },
4300
+ ...props,
4301
+ children: children
4302
+ });
4303
+ }
4304
+
4305
+ function CardModal2Footer({
4306
+ children,
4307
+ padding = {
4308
+ base: 'kitt.4',
4309
+ medium: 'kitt.2'
4310
+ },
4311
+ hasSeparator = true,
4312
+ ...props
4313
+ }) {
4314
+ return /*#__PURE__*/jsx(View, {
4315
+ ...props,
4316
+ marginTop: "kitt.2",
4317
+ padding: padding,
4318
+ borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4319
+ borderColor: "kitt.separator",
4320
+ alignItems: {
4321
+ base: undefined,
4322
+ medium: 'flex-end'
4323
+ },
4324
+ children: children
4325
+ });
4326
+ }
4327
+
4328
+ function CardModal2Header({
4329
+ children,
4330
+ title,
4331
+ paddingBottom = {
4332
+ base: 'kitt.4',
4333
+ medium: 'kitt.2'
4334
+ },
4335
+ hasSeparator = true,
4336
+ right,
4337
+ left,
4338
+ ...props
4339
+ }) {
4340
+ const defaultContainerPadding = {
4341
+ base: 'kitt.4',
4342
+ medium: 'kitt.6'
4343
+ };
4344
+ return /*#__PURE__*/jsx(View, {
4345
+ ...props,
4346
+ padding: paddingBottom,
4347
+ borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4348
+ borderColor: "kitt.separator",
4349
+ justifyContent: "center",
4350
+ width: "100%",
4351
+ height: "kitt.cardModal.header.height",
4352
+ paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4353
+ paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4354
+ children: /*#__PURE__*/jsxs(View, {
4355
+ alignItems: "center",
4356
+ flexDirection: "row",
4357
+ justifyContent: !children && !left ? 'flex-end' : 'space-between',
4358
+ children: [left ? /*#__PURE__*/jsx(View, {
4359
+ width: "kitt.iconButton.width",
4360
+ children: left
4361
+ }) : null, /*#__PURE__*/jsxs(View, {
4362
+ flexGrow: "1",
4363
+ paddingRight: right ? 'kitt.2' : 0,
4364
+ paddingLeft: left ? 'kitt.2' : 0,
4365
+ children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4366
+ textAlign: !left && right ? 'left' : 'center',
4367
+ variant: "bold",
4368
+ children: title
4369
+ }) : null, children]
4370
+ }), right ? /*#__PURE__*/jsx(View, {
4371
+ width: "kitt.iconButton.width",
4372
+ children: right
4373
+ }) : null]
4374
+ })
4375
+ });
4376
+ }
4377
+
4378
+ function CardModal2({
4379
+ backgroundColor = 'kitt.uiBackgroundLight',
4380
+ maxWidth = 'kitt.cardModal.maxWidth',
4381
+ withoutShadow,
4382
+ children,
4383
+ ...props
4384
+ }) {
4385
+ return /*#__PURE__*/jsx(View, {
4386
+ ...props,
4387
+ overflow: "hidden",
4388
+ backgroundColor: backgroundColor,
4389
+ shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4390
+ borderRadius: "kitt.cardModal.borderRadius",
4391
+ width: "100%",
4392
+ maxHeight: "100%",
4393
+ maxWidth: maxWidth,
4394
+ minHeight: "kitt.cardModal.minHeight",
4395
+ children: children
4396
+ });
4397
+ }
4398
+ CardModal2.Body = CardModal2Body;
4399
+ CardModal2.Header = CardModal2Header;
4400
+ CardModal2.Footer = CardModal2Footer;
4401
+ CardModal2.Behaviour = CardModal2Behaviour;
4402
+
4168
4403
  function getBackgroundColor$6({
4169
4404
  isDisabled,
4170
4405
  isSelected,
@@ -7047,75 +7282,351 @@ function FullscreenModalFooter({
7047
7282
  });
7048
7283
  }
7049
7284
 
7050
- const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7051
- const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7052
- const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7053
- const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7054
- const slideInClassNames = {
7055
- appear: slideInFromBottomEnter,
7056
- appearActive: slideInFromBottomEnterActive,
7057
- enter: slideInFromBottomEnter,
7058
- enterActive: slideInFromBottomEnterActive,
7059
- exit: slideInFromBottomExit,
7060
- exitActive: slideInFromBottomExitActive
7061
- };
7062
- const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7063
- const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7064
- const opacityExit = "kitt-u_opacityExit_o14r8iix";
7065
- const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7066
- const opacityClassNames = {
7067
- appear: opacityEnter,
7068
- appearActive: opacityEnterActive,
7069
- enter: opacityEnter,
7070
- enterActive: opacityEnterActive,
7071
- exit: opacityExit,
7072
- exitActive: opacityExitActive
7073
- };
7074
- function FullscreenModalAnimation({
7075
- children,
7076
- appear = true,
7285
+ const slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
7286
+ const slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
7287
+ const slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
7288
+ const slideInFromBottomExitActive = "kitt-u_slideInFromBottomExitActive_srlzzmu";
7289
+ const slideInClassNames = {
7290
+ appear: slideInFromBottomEnter,
7291
+ appearActive: slideInFromBottomEnterActive,
7292
+ enter: slideInFromBottomEnter,
7293
+ enterActive: slideInFromBottomEnterActive,
7294
+ exit: slideInFromBottomExit,
7295
+ exitActive: slideInFromBottomExitActive
7296
+ };
7297
+ const opacityEnter = "kitt-u_opacityEnter_okm44hr";
7298
+ const opacityEnterActive = "kitt-u_opacityEnterActive_o2w8t0i";
7299
+ const opacityExit = "kitt-u_opacityExit_o14r8iix";
7300
+ const opacityExitActive = "kitt-u_opacityExitActive_oim72y2";
7301
+ const opacityClassNames = {
7302
+ appear: opacityEnter,
7303
+ appearActive: opacityEnterActive,
7304
+ enter: opacityEnter,
7305
+ enterActive: opacityEnterActive,
7306
+ exit: opacityExit,
7307
+ exitActive: opacityExitActive
7308
+ };
7309
+ function FullscreenModalAnimation({
7310
+ children,
7311
+ appear = true,
7312
+ visible,
7313
+ unmountOnExit = true,
7314
+ isAnimationEnabled = true,
7315
+ onEnter,
7316
+ onEntered,
7317
+ onExit,
7318
+ onExited,
7319
+ onClose,
7320
+ ...props
7321
+ }) {
7322
+ const theme = useTheme();
7323
+ const {
7324
+ animation
7325
+ } = theme.kitt.fullscreenModal;
7326
+ const sharedProps = {
7327
+ in: visible,
7328
+ appear,
7329
+ unmountOnExit
7330
+ };
7331
+ return /*#__PURE__*/jsxs(View, {
7332
+ ...props,
7333
+ children: [/*#__PURE__*/jsx(CSSTransition, {
7334
+ ...sharedProps,
7335
+ timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7336
+ classNames: opacityClassNames,
7337
+ children: /*#__PURE__*/jsx(Overlay, {
7338
+ onPress: onClose
7339
+ })
7340
+ }), /*#__PURE__*/jsx(CSSTransition, {
7341
+ ...sharedProps,
7342
+ timeout: isAnimationEnabled ? animation.content.duration : 0,
7343
+ classNames: slideInClassNames,
7344
+ onEnter: onEnter,
7345
+ onEntered: onEntered,
7346
+ onExit: onExit,
7347
+ onExited: onExited,
7348
+ children: children
7349
+ })]
7350
+ });
7351
+ }
7352
+
7353
+ function FullscreenModalBehaviour({
7354
+ children,
7355
+ visible,
7356
+ onClose,
7357
+ onExited,
7358
+ ...props
7359
+ }) {
7360
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
7361
+ useEffect(() => {
7362
+ if (visible === true) {
7363
+ setIsModalBehaviourVisible(true);
7364
+ }
7365
+ }, [visible]);
7366
+ return /*#__PURE__*/jsx(ModalBehaviour, {
7367
+ visible: isModalBehaviourVisible,
7368
+ onClose: onClose,
7369
+ children: /*#__PURE__*/jsx(FullscreenModalAnimation, {
7370
+ ...props,
7371
+ visible: visible,
7372
+ onExited: () => {
7373
+ if (onExited) onExited();
7374
+ setIsModalBehaviourVisible(false);
7375
+ },
7376
+ children: children
7377
+ })
7378
+ });
7379
+ }
7380
+
7381
+ function FullscreenModalContainer({
7382
+ children,
7383
+ backgroundColor
7384
+ }) {
7385
+ return /*#__PURE__*/jsx(View, {
7386
+ position: "relative",
7387
+ flexGrow: 1,
7388
+ flexShrink: 1,
7389
+ flexBasis: "100%"
7390
+ /*
7391
+ Here we are setting the same min and max height because on web the content was overflowing and not scrolling
7392
+ minHeight is needed to make the modal fullscreen
7393
+ maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
7394
+ We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
7395
+ */,
7396
+ _web: {
7397
+ minHeight: '100svh',
7398
+ maxHeight: '100svh'
7399
+ },
7400
+ backgroundColor: backgroundColor ?? 'kitt.uiBackgroundLight',
7401
+ children: children
7402
+ });
7403
+ }
7404
+
7405
+ function FullscreenModalHeader({
7406
+ hasSeparator = true,
7407
+ isTransparent,
7408
+ title,
7409
+ children,
7410
+ right,
7411
+ left,
7412
+ shouldHandleTopNotch = true,
7413
+ ...props
7414
+ }) {
7415
+ const {
7416
+ top
7417
+ } = useSafeAreaInsets();
7418
+ const hasRight = Boolean(right);
7419
+ const hasLeft = Boolean(left);
7420
+ const hasContent = Boolean(title || children);
7421
+ return /*#__PURE__*/jsx(View, {
7422
+ backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
7423
+ minHeight: "kitt.fullscreenModal.header.height",
7424
+ width: "100%",
7425
+ justifyContent: "center",
7426
+ paddingTop: shouldHandleTopNotch ? top : undefined,
7427
+ paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7428
+ paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
7429
+ borderBottomColor: "kitt.separator",
7430
+ borderBottomWidth: hasSeparator ? 1 : undefined,
7431
+ ...props,
7432
+ children: /*#__PURE__*/jsxs(View, {
7433
+ flexDirection: "row",
7434
+ alignItems: "center",
7435
+ justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
7436
+ children: [left ? /*#__PURE__*/jsx(View, {
7437
+ width: "kitt.iconButton.width",
7438
+ children: left
7439
+ }) : null, title ? /*#__PURE__*/jsx(View, {
7440
+ flexGrow: 1,
7441
+ flexShrink: 1,
7442
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
7443
+ paddingRight: hasRight ? 'kitt.2' : 0,
7444
+ children: /*#__PURE__*/jsx(Typography.Text, {
7445
+ variant: "bold",
7446
+ textAlign: !hasLeft && hasRight ? 'left' : 'center',
7447
+ children: title
7448
+ })
7449
+ }) : null, children ? /*#__PURE__*/jsx(View, {
7450
+ flexGrow: 1,
7451
+ flexShrink: 1,
7452
+ alignItems: "center",
7453
+ paddingLeft: hasLeft ? 'kitt.2' : undefined,
7454
+ paddingRight: hasRight ? 'kitt.2' : undefined,
7455
+ children: children
7456
+ }) : null, right || left ? /*#__PURE__*/jsx(View, {
7457
+ width: "kitt.iconButton.width",
7458
+ children: right
7459
+ }) : null]
7460
+ })
7461
+ });
7462
+ }
7463
+
7464
+ function FullscreenModal({
7465
+ body,
7466
+ header,
7467
+ footer,
7468
+ backgroundColor,
7469
+ contentContainer: ContentContainer = IdentityComponent
7470
+ }) {
7471
+ return /*#__PURE__*/jsx(FullscreenModalContainer, {
7472
+ backgroundColor: backgroundColor,
7473
+ children: /*#__PURE__*/jsxs(ContentContainer, {
7474
+ children: [header ? /*#__PURE__*/jsx(View, {
7475
+ children: header
7476
+ }) : null, /*#__PURE__*/jsxs(View, {
7477
+ flexGrow: 1,
7478
+ flexShrink: 1,
7479
+ justifyContent: "space-between",
7480
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
7481
+ bounces: false,
7482
+ contentContainerStyle: {
7483
+ flexGrow: 1,
7484
+ position: 'relative'
7485
+ },
7486
+ children: body
7487
+ }), footer || null]
7488
+ })]
7489
+ })
7490
+ });
7491
+ }
7492
+ FullscreenModal.Header = FullscreenModalHeader;
7493
+ FullscreenModal.Footer = FullscreenModalFooter;
7494
+ FullscreenModal.Body = FullscreenModalBody;
7495
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
7496
+
7497
+ function NativeOpacityAnimation({
7498
+ visible,
7499
+ children
7500
+ }) {
7501
+ const theme = useTheme();
7502
+ const opacityStyle = useAnimatedStyle(() => {
7503
+ const {
7504
+ duration,
7505
+ easing
7506
+ } = theme.kitt.fullscreenModal.animation.overlay;
7507
+ const [x1, y1, x2, y2] = easing;
7508
+ return {
7509
+ opacity: withTiming(visible ? 1 : 0, {
7510
+ duration,
7511
+ easing: Easing.bezier(x1, y1, x2, y2)
7512
+ })
7513
+ };
7514
+ });
7515
+ return /*#__PURE__*/jsx(Animated.View, {
7516
+ style: [StyleSheet.absoluteFillObject, opacityStyle],
7517
+ children: children
7518
+ });
7519
+ }
7520
+
7521
+ function NativeSlideInAnimation({
7522
+ visible,
7523
+ children,
7524
+ onEntered,
7525
+ onExited
7526
+ }) {
7527
+ const theme = useTheme();
7528
+ const {
7529
+ height: wHeight
7530
+ } = useWindowDimensions();
7531
+ const hasRunAnimationRef = useRef(false);
7532
+ function handleAnimationFinished() {
7533
+ if (visible) {
7534
+ if (onEntered) onEntered();
7535
+ hasRunAnimationRef.current = true;
7536
+ }
7537
+
7538
+ // Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
7539
+ if (!visible && hasRunAnimationRef.current) onExited();
7540
+ }
7541
+ const translateStyle = useAnimatedStyle(() => {
7542
+ const {
7543
+ duration,
7544
+ easing
7545
+ } = theme.kitt.fullscreenModal.animation.content;
7546
+ const [x1, y1, x2, y2] = easing;
7547
+ return {
7548
+ transform: [{
7549
+ translateY: withTiming(visible ? 0 : wHeight, {
7550
+ duration,
7551
+ easing: Easing.bezier(x1, y1, x2, y2)
7552
+ }, isFinished => {
7553
+ if (!isFinished) return;
7554
+ runOnJS(handleAnimationFinished)();
7555
+ })
7556
+ }]
7557
+ };
7558
+ });
7559
+ return /*#__PURE__*/jsx(Animated.View, {
7560
+ style: [{
7561
+ transform: [{
7562
+ translateY: wHeight
7563
+ }]
7564
+ }, translateStyle, {
7565
+ width: '100%',
7566
+ flex: 1
7567
+ }],
7568
+ children: children
7569
+ });
7570
+ }
7571
+
7572
+ function FullscreenModal2Animation({
7077
7573
  visible,
7078
- unmountOnExit = true,
7079
- isAnimationEnabled = true,
7574
+ children,
7080
7575
  onEnter,
7081
7576
  onEntered,
7082
7577
  onExit,
7083
- onExited,
7084
- onClose,
7085
- ...props
7578
+ onExited
7086
7579
  }) {
7087
- const theme = useTheme();
7088
- const {
7089
- animation
7090
- } = theme.kitt.fullscreenModal;
7091
- const sharedProps = {
7092
- in: visible,
7093
- appear,
7094
- unmountOnExit
7580
+ const [isModalVisible, setIsModalVisible] = useState(visible);
7581
+ const [isContentVisible, setIsContentVisible] = useState(false);
7582
+ const handleAnimationExited = () => {
7583
+ setIsModalVisible(false);
7584
+ // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
7095
7585
  };
7096
- return /*#__PURE__*/jsxs(View, {
7097
- ...props,
7098
- children: [/*#__PURE__*/jsx(CSSTransition, {
7099
- ...sharedProps,
7100
- timeout: isAnimationEnabled ? animation.overlay.duration : 0,
7101
- classNames: opacityClassNames,
7102
- children: /*#__PURE__*/jsx(Overlay, {
7103
- onPress: onClose
7104
- })
7105
- }), /*#__PURE__*/jsx(CSSTransition, {
7106
- ...sharedProps,
7107
- timeout: isAnimationEnabled ? animation.content.duration : 0,
7108
- classNames: slideInClassNames,
7109
- onEnter: onEnter,
7110
- onEntered: onEntered,
7111
- onExit: onExit,
7112
- onExited: onExited,
7113
- children: children
7114
- })]
7586
+
7587
+ // When parent visibility is set to false, in order to have our exit animation we must in this order :
7588
+ // 1 - run the exit animation
7589
+ // 2 - once it is done, unmount the Modal
7590
+ useEffect(() => {
7591
+ if (!(!visible && isContentVisible)) return;
7592
+ if (onExit) onExit();
7593
+ setIsContentVisible(false);
7594
+ }, [visible, isContentVisible, onExit]);
7595
+ return /*#__PURE__*/jsx(Modal, {
7596
+ transparent: true,
7597
+ supportedOrientations: ['landscape', 'portrait'],
7598
+ visible: isModalVisible,
7599
+ onShow: () => {
7600
+ if (onEnter) onEnter();
7601
+ setIsContentVisible(true);
7602
+ },
7603
+ onDismiss: () => {
7604
+ if (onExited) onExited();
7605
+ },
7606
+ children: /*#__PURE__*/jsxs(View, {
7607
+ position: "relative",
7608
+ flexGrow: 1,
7609
+ justifyContent: "center",
7610
+ alignItems: "center",
7611
+ children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
7612
+ visible: isContentVisible,
7613
+ children: /*#__PURE__*/jsx(Overlay, {
7614
+ onPress: handleAnimationExited
7615
+ })
7616
+ }), /*#__PURE__*/jsx(NativeSlideInAnimation, {
7617
+ visible: isContentVisible,
7618
+ onExited: handleAnimationExited,
7619
+ onEntered: onEntered,
7620
+ children: /*#__PURE__*/jsx(View, {
7621
+ flexGrow: 1,
7622
+ children: children
7623
+ })
7624
+ })]
7625
+ })
7115
7626
  });
7116
7627
  }
7117
7628
 
7118
- function FullscreenModalBehaviour({
7629
+ function FullscreenModal2Behaviour({
7119
7630
  children,
7120
7631
  visible,
7121
7632
  onClose,
@@ -7131,7 +7642,7 @@ function FullscreenModalBehaviour({
7131
7642
  return /*#__PURE__*/jsx(ModalBehaviour, {
7132
7643
  visible: isModalBehaviourVisible,
7133
7644
  onClose: onClose,
7134
- children: /*#__PURE__*/jsx(FullscreenModalAnimation, {
7645
+ children: /*#__PURE__*/jsx(FullscreenModal2Animation, {
7135
7646
  ...props,
7136
7647
  visible: visible,
7137
7648
  onExited: () => {
@@ -7143,7 +7654,51 @@ function FullscreenModalBehaviour({
7143
7654
  });
7144
7655
  }
7145
7656
 
7146
- function FullscreenModalContainer({
7657
+ function FullscreenModal2Body({
7658
+ children,
7659
+ shouldHandleBottomNotch,
7660
+ style,
7661
+ shouldHandleTopNotch,
7662
+ ...props
7663
+ }) {
7664
+ const {
7665
+ bottom,
7666
+ top
7667
+ } = useSafeAreaInsets();
7668
+ const {
7669
+ kitt: {
7670
+ fullscreenModal: {
7671
+ body: {
7672
+ verticalPadding
7673
+ }
7674
+ }
7675
+ }
7676
+ } = useTheme();
7677
+ const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7678
+ const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7679
+ return /*#__PURE__*/jsx(View, {
7680
+ flexGrow: 1,
7681
+ flexShrink: 1,
7682
+ justifyContent: "space-between",
7683
+ children: /*#__PURE__*/jsx(ScrollView$1, {
7684
+ bounces: false,
7685
+ contentContainerStyle: {
7686
+ flexGrow: 1,
7687
+ position: 'relative'
7688
+ },
7689
+ children: /*#__PURE__*/jsx(View, {
7690
+ ...props,
7691
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7692
+ paddingTop: paddingTop,
7693
+ paddingBottom: paddingBottom,
7694
+ style: style,
7695
+ children: children
7696
+ })
7697
+ })
7698
+ });
7699
+ }
7700
+
7701
+ function FullscreenModal2Container({
7147
7702
  children,
7148
7703
  backgroundColor
7149
7704
  }) {
@@ -7167,7 +7722,30 @@ function FullscreenModalContainer({
7167
7722
  });
7168
7723
  }
7169
7724
 
7170
- function FullscreenModalHeader({
7725
+ function FullscreenModal2Footer({
7726
+ shouldHandleBottomNotch = true,
7727
+ hasSeparator = true,
7728
+ children,
7729
+ ...props
7730
+ }) {
7731
+ const {
7732
+ bottom
7733
+ } = useSafeAreaInsets();
7734
+ return /*#__PURE__*/jsx(View, {
7735
+ borderTopColor: "kitt.separator",
7736
+ borderTopWidth: hasSeparator ? 1 : undefined,
7737
+ paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
7738
+ paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
7739
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7740
+ ...props,
7741
+ children: /*#__PURE__*/jsx(View, {
7742
+ paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
7743
+ children: children
7744
+ })
7745
+ });
7746
+ }
7747
+
7748
+ function FullscreenModal2Header({
7171
7749
  hasSeparator = true,
7172
7750
  isTransparent,
7173
7751
  title,
@@ -7226,38 +7804,19 @@ function FullscreenModalHeader({
7226
7804
  });
7227
7805
  }
7228
7806
 
7229
- function FullscreenModal({
7230
- body,
7231
- header,
7232
- footer,
7807
+ function FullscreenModal2({
7233
7808
  backgroundColor,
7234
- contentContainer: ContentContainer = IdentityComponent
7809
+ children
7235
7810
  }) {
7236
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
7811
+ return /*#__PURE__*/jsx(FullscreenModal2Container, {
7237
7812
  backgroundColor: backgroundColor,
7238
- children: /*#__PURE__*/jsxs(ContentContainer, {
7239
- children: [header ? /*#__PURE__*/jsx(View, {
7240
- children: header
7241
- }) : null, /*#__PURE__*/jsxs(View, {
7242
- flexGrow: 1,
7243
- flexShrink: 1,
7244
- justifyContent: "space-between",
7245
- children: [/*#__PURE__*/jsx(ScrollView$2, {
7246
- bounces: false,
7247
- contentContainerStyle: {
7248
- flexGrow: 1,
7249
- position: 'relative'
7250
- },
7251
- children: body
7252
- }), footer || null]
7253
- })]
7254
- })
7813
+ children: children
7255
7814
  });
7256
7815
  }
7257
- FullscreenModal.Header = FullscreenModalHeader;
7258
- FullscreenModal.Footer = FullscreenModalFooter;
7259
- FullscreenModal.Body = FullscreenModalBody;
7260
- FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
7816
+ FullscreenModal2.Header = FullscreenModal2Header;
7817
+ FullscreenModal2.Footer = FullscreenModal2Footer;
7818
+ FullscreenModal2.Body = FullscreenModal2Body;
7819
+ FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
7261
7820
 
7262
7821
  function GroupTags({
7263
7822
  children,
@@ -10800,7 +11359,7 @@ function NavigationModal({
10800
11359
  contentContainer: contentContainer
10801
11360
  });
10802
11361
  }
10803
- function Header(props) {
11362
+ function Header$1(props) {
10804
11363
  const Component = useBreakpointValue({
10805
11364
  base: FullscreenModal.Header,
10806
11365
  small: CardModal.Header
@@ -10809,7 +11368,7 @@ function Header(props) {
10809
11368
  ...props
10810
11369
  });
10811
11370
  }
10812
- function Body(props) {
11371
+ function Body$1(props) {
10813
11372
  const Component = useBreakpointValue({
10814
11373
  base: FullscreenModal.Body,
10815
11374
  small: CardModal.Body
@@ -10818,7 +11377,7 @@ function Body(props) {
10818
11377
  ...props
10819
11378
  });
10820
11379
  }
10821
- function Footer(props) {
11380
+ function Footer$1(props) {
10822
11381
  const Component = useBreakpointValue({
10823
11382
  base: FullscreenModal.Footer,
10824
11383
  small: CardModal.Footer
@@ -10827,11 +11386,106 @@ function Footer(props) {
10827
11386
  ...props
10828
11387
  });
10829
11388
  }
10830
- NavigationModal.Header = Header;
10831
- NavigationModal.Body = Body;
10832
- NavigationModal.Footer = Footer;
11389
+ NavigationModal.Header = Header$1;
11390
+ NavigationModal.Body = Body$1;
11391
+ NavigationModal.Footer = Footer$1;
10833
11392
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
10834
11393
 
11394
+ function NavigationModal2Behaviour({
11395
+ children,
11396
+ visible,
11397
+ appear = true,
11398
+ onExited,
11399
+ onEnter,
11400
+ onExit,
11401
+ onClose,
11402
+ ...props
11403
+ }) {
11404
+ const AnimationComponent = useBreakpointValue({
11405
+ base: FullscreenModal2Animation,
11406
+ small: CardModal2Animation
11407
+ });
11408
+ const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
11409
+ const [shouldAppear, setShouldAppear] = useState(appear);
11410
+ useEffect(() => {
11411
+ if (visible === true) {
11412
+ setIsModalBehaviourVisible(true);
11413
+ }
11414
+ }, [visible]);
11415
+ return /*#__PURE__*/jsx(ModalBehaviour, {
11416
+ visible: isModalBehaviourVisible,
11417
+ onClose: onClose,
11418
+ children: /*#__PURE__*/jsx(AnimationComponent, {
11419
+ ...props,
11420
+ appear: shouldAppear,
11421
+ visible: visible,
11422
+ onEnter: () => {
11423
+ if (onEnter) onEnter();
11424
+
11425
+ // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
11426
+ setShouldAppear(false);
11427
+ },
11428
+ onExit: () => {
11429
+ if (onExit) onExit();
11430
+
11431
+ // Reset appear value to its original value for future modal display
11432
+ setShouldAppear(appear);
11433
+ },
11434
+ onExited: () => {
11435
+ if (onExited) onExited();
11436
+ setIsModalBehaviourVisible(false);
11437
+ },
11438
+ onClose: onClose,
11439
+ children: children
11440
+ })
11441
+ });
11442
+ }
11443
+
11444
+ function NavigationModal2({
11445
+ backgroundColor,
11446
+ children
11447
+ }) {
11448
+ const Component = useBreakpointValue({
11449
+ base: FullscreenModal2,
11450
+ small: CardModal2
11451
+ });
11452
+ return /*#__PURE__*/jsx(Component, {
11453
+ backgroundColor: backgroundColor,
11454
+ children: children
11455
+ });
11456
+ }
11457
+ function Header(props) {
11458
+ const Component = useBreakpointValue({
11459
+ base: FullscreenModal2.Header,
11460
+ small: CardModal2.Header
11461
+ });
11462
+ return /*#__PURE__*/jsx(Component, {
11463
+ ...props
11464
+ });
11465
+ }
11466
+ function Body(props) {
11467
+ const Component = useBreakpointValue({
11468
+ base: FullscreenModal2.Body,
11469
+ small: CardModal2.Body
11470
+ });
11471
+ return /*#__PURE__*/jsx(Component, {
11472
+ ...props
11473
+ });
11474
+ }
11475
+ function Footer(props) {
11476
+ const Component = useBreakpointValue({
11477
+ base: FullscreenModal2.Footer,
11478
+ small: CardModal2.Footer
11479
+ });
11480
+ return /*#__PURE__*/jsx(Component, {
11481
+ ...props
11482
+ });
11483
+ }
11484
+ NavigationModal2.Header = Header;
11485
+ NavigationModal2.Body = Body;
11486
+ NavigationModal2.Footer = Footer;
11487
+ NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
11488
+
10835
11489
  function Notification({
10836
11490
  type,
10837
11491
  children,
@@ -13049,5 +13703,5 @@ function VerticalSteps({
13049
13703
  VerticalSteps.Step = Step;
13050
13704
  VerticalSteps.BorderlessStep = BorderlessStep;
13051
13705
 
13052
- export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
13706
+ export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, CardModal2, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, FullscreenModal2, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, NavigationModal2, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
13053
13707
  //# sourceMappingURL=index-node-20.10.es.web.mjs.map