@ornikar/kitt-universal 25.48.1-canary.430f6cd109998511d4c4ad7369a24908547c62f4.0 → 25.50.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 (98) hide show
  1. package/CHANGELOG.md +11 -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 +175 -933
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +175 -933
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-20.10.cjs.js +108 -863
  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 +64 -747
  20. package/dist/index-node-20.10.cjs.web.js.map +1 -1
  21. package/dist/index-node-20.10.es.mjs +109 -861
  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 +66 -746
  25. package/dist/index-node-20.10.es.web.mjs.map +1 -1
  26. package/dist/index.es.js +177 -946
  27. package/dist/index.es.js.map +1 -1
  28. package/dist/index.es.web.js +152 -837
  29. package/dist/index.es.web.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.android.js +11 -11
  31. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  32. package/dist/linaria-themes-metro.es.ios.js +11 -11
  33. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  34. package/dist/linaria-themes-node-20.10.cjs.js +11 -11
  35. package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
  36. package/dist/linaria-themes-node-20.10.cjs.web.js +11 -11
  37. package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
  38. package/dist/linaria-themes-node-20.10.es.mjs +11 -11
  39. package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
  40. package/dist/linaria-themes-node-20.10.es.web.mjs +11 -11
  41. package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
  42. package/dist/linaria-themes.es.js +11 -11
  43. package/dist/linaria-themes.es.js.map +1 -1
  44. package/dist/linaria-themes.es.web.js +11 -11
  45. package/dist/linaria-themes.es.web.js.map +1 -1
  46. package/dist/styles.css +0 -8
  47. package/dist/tsbuildinfo +1 -1
  48. package/package.json +1 -1
  49. package/dist/definitions/CardModal2/CardModal2.d.ts +0 -19
  50. package/dist/definitions/CardModal2/CardModal2.d.ts.map +0 -1
  51. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts +0 -8
  52. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.d.ts.map +0 -1
  53. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts +0 -4
  54. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2Animation.web.d.ts.map +0 -1
  55. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts +0 -7
  56. package/dist/definitions/CardModal2/components/CardModal2Animation/CardModal2RotationContainer.d.ts.map +0 -1
  57. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts +0 -8
  58. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeOpacityAnimation.d.ts.map +0 -1
  59. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts +0 -11
  60. package/dist/definitions/CardModal2/components/CardModal2Animation/NativeRotationAnimation.d.ts.map +0 -1
  61. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts +0 -8
  62. package/dist/definitions/CardModal2/components/CardModal2Behaviour.d.ts.map +0 -1
  63. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts +0 -7
  64. package/dist/definitions/CardModal2/components/CardModal2Body.d.ts.map +0 -1
  65. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts +0 -7
  66. package/dist/definitions/CardModal2/components/CardModal2Footer.d.ts.map +0 -1
  67. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts +0 -20
  68. package/dist/definitions/CardModal2/components/CardModal2Header.d.ts.map +0 -1
  69. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts +0 -18
  70. package/dist/definitions/FullscreenModal2/FullscreenModal2.d.ts.map +0 -1
  71. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts +0 -8
  72. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Animation.d.ts.map +0 -1
  73. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts +0 -8
  74. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Behaviour.d.ts.map +0 -1
  75. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts +0 -9
  76. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Body.d.ts.map +0 -1
  77. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts +0 -8
  78. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Container.d.ts.map +0 -1
  79. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts +0 -8
  80. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Footer.d.ts.map +0 -1
  81. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts +0 -22
  82. package/dist/definitions/FullscreenModal2/components/FullscreenModal2Header.d.ts.map +0 -1
  83. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts +0 -7
  84. package/dist/definitions/FullscreenModal2/components/NativeOpacityAnimation.d.ts.map +0 -1
  85. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts +0 -10
  86. package/dist/definitions/FullscreenModal2/components/NativeSlideInAnimation.d.ts.map +0 -1
  87. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts +0 -23
  88. package/dist/definitions/NavigationModal2/NavigationModal2.d.ts.map +0 -1
  89. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts +0 -8
  90. package/dist/definitions/NavigationModal2/components/NavigationModal2Behaviour.d.ts.map +0 -1
  91. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts +0 -7
  92. package/dist/definitions/NavigationModal2/components/NavigationModal2Body.d.ts.map +0 -1
  93. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts +0 -7
  94. package/dist/definitions/NavigationModal2/components/NavigationModal2Footer.d.ts.map +0 -1
  95. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts +0 -7
  96. package/dist/definitions/NavigationModal2/components/NavigationModal2Header.d.ts.map +0 -1
  97. package/dist/definitions/utils/IdentityComponent.d.ts +0 -15
  98. package/dist/definitions/utils/IdentityComponent.d.ts.map +0 -1
@@ -725,19 +725,19 @@ const button = {
725
725
  },
726
726
  danger: {
727
727
  default: {
728
- backgroundColor: lateOceanColorPalette.warmEmbraceLight1,
729
- pressedBackgroundColor: lateOceanColorPalette.warmEmbrace,
730
- hoverBackgroundColor: lateOceanColorPalette.warmEmbrace,
731
- focusBorderColor: lateOceanColorPalette.warmEmbrace
728
+ backgroundColor: lateOceanColorPalette['coral.3'],
729
+ pressedBackgroundColor: lateOceanColorPalette['coral.4'],
730
+ hoverBackgroundColor: lateOceanColorPalette['coral.4'],
731
+ focusBorderColor: lateOceanColorPalette['coral.4']
732
732
  },
733
733
  ghost: {
734
734
  backgroundColor: colors.uiBackgroundLight,
735
- pressedBackgroundColor: 'rgba(255, 255, 255, 0.75)',
736
- hoverBackgroundColor: 'rgba(255, 255, 255, 0.75)',
737
- focusBorderColor: 'rgba(255, 255, 255, 0.5)',
738
- color: lateOceanColorPalette.englishVermillon,
739
- hoverColor: lateOceanColorPalette.englishVermillon,
740
- activeColor: lateOceanColorPalette.englishVermillon
735
+ pressedBackgroundColor: colors.uiBackground,
736
+ hoverBackgroundColor: colors.hover,
737
+ focusBorderColor: 'rgba(255, 255, 255, 0.4)',
738
+ color: lateOceanColorPalette['coral.9'],
739
+ hoverColor: lateOceanColorPalette['coral.9'],
740
+ activeColor: lateOceanColorPalette['coral.9']
741
741
  }
742
742
  },
743
743
  subtle: {
@@ -2090,7 +2090,7 @@ const typography = {
2090
2090
  'primary-light': colors.primaryLight,
2091
2091
  accent: colors.accent,
2092
2092
  success: colors.success,
2093
- danger: colors.danger,
2093
+ danger: lateOceanColorPalette['coral.9'],
2094
2094
  warning: colors.warning
2095
2095
  },
2096
2096
  types: {
@@ -3801,24 +3801,6 @@ function Avatar({
3801
3801
  });
3802
3802
  }
3803
3803
 
3804
- /**
3805
- * A utility component that returns its children without any modifications.
3806
- *
3807
- * This component acts as an identity function for React elements - it simply returns
3808
- * whatever children are passed to it. It can be useful in conditional rendering patterns,
3809
- * component composition, or as a placeholder in component hierarchies.
3810
- *
3811
- * @returns The children as they were passed in, without any wrapper elements
3812
- *
3813
- * @example
3814
- * See CardModal and FullscreenModal for usage examples.
3815
- */
3816
- function IdentityComponent({
3817
- children
3818
- }) {
3819
- return children;
3820
- }
3821
-
3822
3804
  function BottomSheetComp({
3823
3805
  children: Content,
3824
3806
  hasScrollView = false,
@@ -3826,7 +3808,6 @@ function BottomSheetComp({
3826
3808
  hasHandle = true,
3827
3809
  enableDynamicSizing = true,
3828
3810
  snapPoints = ['100%'],
3829
- contentContainer: ContentContainer = IdentityComponent,
3830
3811
  ...rest
3831
3812
  }, ref) {
3832
3813
  const {
@@ -3857,11 +3838,9 @@ function BottomSheetComp({
3857
3838
  ...rest,
3858
3839
  topInset: top,
3859
3840
  children: props => /*#__PURE__*/jsx(Wrapper, {
3860
- children: /*#__PURE__*/jsx(ContentContainer, {
3861
- children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, {
3862
- ...props?.data
3863
- }) : Content
3864
- })
3841
+ children: typeof Content === 'function' ? /*#__PURE__*/jsx(Content, {
3842
+ ...props?.data
3843
+ }) : Content
3865
3844
  })
3866
3845
  });
3867
3846
  }
@@ -3966,330 +3945,19 @@ ModalBehaviour.CloseButton = CloseButton;
3966
3945
  function Overlay({
3967
3946
  onPress
3968
3947
  }) {
3969
- return /*#__PURE__*/jsx(Pressable, {
3970
- accessibilityRole: "none",
3971
- position: "absolute",
3972
- top: "0",
3973
- left: "0",
3974
- right: "0",
3975
- bottom: "0",
3976
- backgroundColor: "kitt.overlay.dark",
3977
- onPress: onPress
3978
- });
3979
- }
3980
-
3981
- function CardModalRotationContainer(props) {
3982
- return /*#__PURE__*/jsx(View, {
3983
- paddingX: "kitt.cardModal.overlayPadding.horizontal",
3984
- paddingY: "kitt.cardModal.overlayPadding.vertical",
3985
- maxWidth: "kitt.cardModal.maxWidthWithPadding",
3986
- width: "100%",
3987
- maxHeight: "100%",
3988
- _web: {
3989
- maxHeight: '100svh'
3990
- },
3991
- ...props
3992
- });
3993
- }
3994
-
3995
- function NativeOpacityAnimation$4({
3996
- visible,
3997
- children,
3998
- onExited
3999
- }) {
4000
- const theme = useTheme();
4001
- const hasRunAnimationRef = useRef(false);
4002
- function handleAnimationFinished() {
4003
- if (visible) {
4004
- hasRunAnimationRef.current = true;
4005
- }
4006
- if (!visible && hasRunAnimationRef.current) {
4007
- onExited();
4008
- }
4009
- }
4010
- const opacityStyle = useAnimatedStyle(() => {
4011
- const {
4012
- duration,
4013
- easing
4014
- } = theme.kitt.cardModal.animation.overlay;
4015
- const [x1, y1, x2, y2] = easing;
4016
- return {
4017
- opacity: withTiming(visible ? 1 : 0, {
4018
- duration,
4019
- easing: Easing$1.bezier(x1, y1, x2, y2)
4020
- }, isFinished => {
4021
- if (!isFinished) return;
4022
- runOnJS(handleAnimationFinished)();
4023
- })
4024
- };
4025
- });
4026
- return /*#__PURE__*/jsx(Animated.View, {
4027
- style: [StyleSheet.absoluteFillObject, opacityStyle],
4028
- children: children
4029
- });
4030
- }
4031
-
4032
- function NativeRotationAnimation$2({
4033
- visible,
4034
- children,
4035
- onEntered,
4036
- onExited
4037
- }) {
4038
- const theme = useTheme();
4039
- const hasRunAnimationRef = useRef(false);
4040
- const rotation = useSharedValue(0.8);
4041
- function handleAnimationFinished() {
4042
- if (visible) {
4043
- if (onEntered) onEntered();
4044
- hasRunAnimationRef.current = true;
4045
- }
4046
- if (!visible && hasRunAnimationRef.current) onExited();
4047
- }
4048
- const animatedStyle = useAnimatedStyle(() => {
4049
- const {
4050
- duration,
4051
- easing
4052
- } = theme.kitt.cardModal.animation.content;
4053
- const [x1, y1, x2, y2] = easing;
4054
- rotation.value = withTiming(visible ? 0 : 5, {
4055
- duration,
4056
- easing: Easing$1.bezier(x1, y1, x2, y2)
4057
- }, isFinished => {
4058
- if (!isFinished) return;
4059
- runOnJS(handleAnimationFinished)();
4060
- });
4061
- return {
4062
- opacity: withTiming(visible ? 1 : 0, {
4063
- duration,
4064
- easing: Easing$1.bezier(x1, y1, x2, y2)
4065
- }),
4066
- transform: [{
4067
- scale: withTiming(visible ? 1 : 0.8, {
4068
- duration,
4069
- easing: Easing$1.bezier(x1, y1, x2, y2)
4070
- })
4071
- }, {
4072
- rotateZ: `${rotation.value}deg`
4073
- }]
4074
- };
4075
- });
4076
- return /*#__PURE__*/jsx(Animated.View, {
4077
- style: [animatedStyle],
4078
- children: children
4079
- });
4080
- }
4081
-
4082
- function CardModalAnimation({
4083
- visible,
4084
- children,
4085
- onEnter,
4086
- onEntered,
4087
- onExit,
4088
- onExited,
4089
- onClose
4090
- }) {
4091
- const [isModalVisible, setIsModalVisible] = useState(visible);
4092
- const [isContentVisible, setIsContentVisible] = useState(false);
4093
- const handleAnimationExited = () => {
4094
- setIsModalVisible(false);
4095
- // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
4096
- if (Platform.OS === 'android' && onExited) onExited();
4097
- };
4098
- useEffect(() => {
4099
- if (!(!visible && isContentVisible)) return;
4100
- if (onExit) onExit();
4101
- setIsContentVisible(false);
4102
- }, [visible, isContentVisible, onExit]);
4103
- return /*#__PURE__*/jsx(Modal, {
4104
- transparent: true,
4105
- supportedOrientations: ['landscape', 'portrait'],
4106
- visible: isModalVisible,
4107
- onShow: () => {
4108
- if (onEnter) onEnter();
4109
- setIsContentVisible(true);
4110
- },
4111
- onDismiss: () => {
4112
- if (onExited) onExited();
4113
- },
4114
- children: /*#__PURE__*/jsxs(View, {
4115
- position: "relative",
4116
- flexGrow: 1,
4117
- justifyContent: "center",
4118
- alignItems: "center",
4119
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$4, {
4120
- visible: isContentVisible,
4121
- onExited: handleAnimationExited,
4122
- children: /*#__PURE__*/jsx(Overlay, {
4123
- onPress: onClose
4124
- })
4125
- }), /*#__PURE__*/jsx(CardModalRotationContainer, {
4126
- children: /*#__PURE__*/jsx(NativeRotationAnimation$2, {
4127
- visible: isContentVisible,
4128
- onExited: handleAnimationExited,
4129
- onEntered: onEntered,
4130
- children: children
4131
- })
4132
- })]
4133
- })
4134
- });
4135
- }
4136
-
4137
- function CardModalBehaviour({
4138
- children,
4139
- visible,
4140
- onClose,
4141
- onExited,
4142
- ...props
4143
- }) {
4144
- const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
4145
- useEffect(() => {
4146
- if (visible === true) {
4147
- setIsModalBehaviourVisible(true);
4148
- }
4149
- }, [visible]);
4150
- return /*#__PURE__*/jsx(ModalBehaviour, {
4151
- visible: isModalBehaviourVisible,
4152
- onClose: onClose,
4153
- children: /*#__PURE__*/jsx(CardModalAnimation, {
4154
- ...props,
4155
- visible: visible,
4156
- onExited: () => {
4157
- if (onExited) onExited();
4158
- setIsModalBehaviourVisible(false);
4159
- },
4160
- onClose: onClose,
4161
- children: children
4162
- })
4163
- });
4164
- }
4165
-
4166
- function CardModalBody({
4167
- children,
4168
- paddingX = {
4169
- base: 'kitt.4',
4170
- medium: 'kitt.6'
4171
- },
4172
- paddingY = 'kitt.4',
4173
- ...props
4174
- }) {
4175
- return /*#__PURE__*/jsx(ScrollView, {
4176
- showsVerticalScrollIndicator: false,
4177
- _contentContainerStyle: {
4178
- paddingX,
4179
- paddingY
4180
- },
4181
- ...props,
4182
- children: children
4183
- });
4184
- }
4185
-
4186
- function CardModalFooter({
4187
- children,
4188
- padding = {
4189
- base: 'kitt.4',
4190
- medium: 'kitt.2'
4191
- },
4192
- hasSeparator = true,
4193
- ...props
4194
- }) {
4195
- return /*#__PURE__*/jsx(View, {
4196
- ...props,
4197
- marginTop: "kitt.2",
4198
- padding: padding,
4199
- borderTopWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4200
- borderColor: "kitt.separator",
4201
- alignItems: {
4202
- base: undefined,
4203
- medium: 'flex-end'
4204
- },
4205
- children: children
4206
- });
4207
- }
4208
-
4209
- function CardModalHeader({
4210
- children,
4211
- title,
4212
- paddingBottom = {
4213
- base: 'kitt.4',
4214
- medium: 'kitt.2'
4215
- },
4216
- hasSeparator = true,
4217
- right,
4218
- left,
4219
- ...props
4220
- }) {
4221
- const defaultContainerPadding = {
4222
- base: 'kitt.4',
4223
- medium: 'kitt.6'
4224
- };
4225
- return /*#__PURE__*/jsx(View, {
4226
- ...props,
4227
- padding: paddingBottom,
4228
- borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
4229
- borderColor: "kitt.separator",
4230
- justifyContent: "center",
4231
- width: "100%",
4232
- height: "kitt.cardModal.header.height",
4233
- paddingRight: right ? 'kitt.2' : defaultContainerPadding,
4234
- paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
4235
- children: /*#__PURE__*/jsxs(View, {
4236
- alignItems: "center",
4237
- flexDirection: "row",
4238
- justifyContent: !children && !left ? 'flex-end' : 'space-between',
4239
- children: [left ? /*#__PURE__*/jsx(View, {
4240
- width: "kitt.iconButton.width",
4241
- children: left
4242
- }) : null, /*#__PURE__*/jsxs(View, {
4243
- flexGrow: "1",
4244
- paddingRight: right ? 'kitt.2' : 0,
4245
- paddingLeft: left ? 'kitt.2' : 0,
4246
- children: [title ? /*#__PURE__*/jsx(Typography.Text, {
4247
- textAlign: !left && right ? 'left' : 'center',
4248
- variant: "bold",
4249
- children: title
4250
- }) : null, children]
4251
- }), right ? /*#__PURE__*/jsx(View, {
4252
- width: "kitt.iconButton.width",
4253
- children: right
4254
- }) : null]
4255
- })
4256
- });
4257
- }
4258
-
4259
- function CardModal({
4260
- backgroundColor = 'kitt.uiBackgroundLight',
4261
- maxWidth = 'kitt.cardModal.maxWidth',
4262
- withoutShadow,
4263
- children,
4264
- header,
4265
- body,
4266
- footer,
4267
- contentContainer: ContentContainer = IdentityComponent,
4268
- ...props
4269
- }) {
4270
- return /*#__PURE__*/jsx(View, {
4271
- ...props,
4272
- overflow: "hidden",
4273
- backgroundColor: backgroundColor,
4274
- shadow: withoutShadow ? undefined : 'kitt.cardModal.shadow',
4275
- borderRadius: "kitt.cardModal.borderRadius",
4276
- width: "100%",
4277
- maxHeight: "100%",
4278
- maxWidth: maxWidth,
4279
- minHeight: "kitt.cardModal.minHeight",
4280
- children: /*#__PURE__*/jsx(ContentContainer, {
4281
- children: children || /*#__PURE__*/jsxs(Fragment, {
4282
- children: [header || null, body || null, footer || null]
4283
- })
4284
- })
3948
+ return /*#__PURE__*/jsx(Pressable, {
3949
+ accessibilityRole: "none",
3950
+ position: "absolute",
3951
+ top: "0",
3952
+ left: "0",
3953
+ right: "0",
3954
+ bottom: "0",
3955
+ backgroundColor: "kitt.overlay.dark",
3956
+ onPress: onPress
4285
3957
  });
4286
3958
  }
4287
- CardModal.Body = CardModalBody;
4288
- CardModal.Header = CardModalHeader;
4289
- CardModal.Footer = CardModalFooter;
4290
- CardModal.ModalBehaviour = CardModalBehaviour;
4291
3959
 
4292
- function CardModal2RotationContainer(props) {
3960
+ function CardModalRotationContainer(props) {
4293
3961
  return /*#__PURE__*/jsx(View, {
4294
3962
  paddingX: "kitt.cardModal.overlayPadding.horizontal",
4295
3963
  paddingY: "kitt.cardModal.overlayPadding.vertical",
@@ -4303,7 +3971,7 @@ function CardModal2RotationContainer(props) {
4303
3971
  });
4304
3972
  }
4305
3973
 
4306
- function NativeOpacityAnimation$3({
3974
+ function NativeOpacityAnimation$2({
4307
3975
  visible,
4308
3976
  children,
4309
3977
  onExited
@@ -4390,7 +4058,7 @@ function NativeRotationAnimation$1({
4390
4058
  });
4391
4059
  }
4392
4060
 
4393
- function CardModal2Animation({
4061
+ function CardModalAnimation({
4394
4062
  visible,
4395
4063
  children,
4396
4064
  onEnter,
@@ -4427,13 +4095,13 @@ function CardModal2Animation({
4427
4095
  flexGrow: 1,
4428
4096
  justifyContent: "center",
4429
4097
  alignItems: "center",
4430
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$3, {
4098
+ children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4431
4099
  visible: isContentVisible,
4432
4100
  onExited: handleAnimationExited,
4433
4101
  children: /*#__PURE__*/jsx(Overlay, {
4434
4102
  onPress: onClose
4435
4103
  })
4436
- }), /*#__PURE__*/jsx(CardModal2RotationContainer, {
4104
+ }), /*#__PURE__*/jsx(CardModalRotationContainer, {
4437
4105
  children: /*#__PURE__*/jsx(NativeRotationAnimation$1, {
4438
4106
  visible: isContentVisible,
4439
4107
  onExited: handleAnimationExited,
@@ -4445,7 +4113,7 @@ function CardModal2Animation({
4445
4113
  });
4446
4114
  }
4447
4115
 
4448
- function CardModal2Behaviour({
4116
+ function CardModalBehaviour({
4449
4117
  children,
4450
4118
  visible,
4451
4119
  onClose,
@@ -4461,7 +4129,7 @@ function CardModal2Behaviour({
4461
4129
  return /*#__PURE__*/jsx(ModalBehaviour, {
4462
4130
  visible: isModalBehaviourVisible,
4463
4131
  onClose: onClose,
4464
- children: /*#__PURE__*/jsx(CardModal2Animation, {
4132
+ children: /*#__PURE__*/jsx(CardModalAnimation, {
4465
4133
  ...props,
4466
4134
  visible: visible,
4467
4135
  onExited: () => {
@@ -4474,7 +4142,7 @@ function CardModal2Behaviour({
4474
4142
  });
4475
4143
  }
4476
4144
 
4477
- function CardModal2Body({
4145
+ function CardModalBody({
4478
4146
  children,
4479
4147
  paddingX = {
4480
4148
  base: 'kitt.4',
@@ -4494,7 +4162,7 @@ function CardModal2Body({
4494
4162
  });
4495
4163
  }
4496
4164
 
4497
- function CardModal2Footer({
4165
+ function CardModalFooter({
4498
4166
  children,
4499
4167
  padding = {
4500
4168
  base: 'kitt.4',
@@ -4517,7 +4185,7 @@ function CardModal2Footer({
4517
4185
  });
4518
4186
  }
4519
4187
 
4520
- function CardModal2Header({
4188
+ function CardModalHeader({
4521
4189
  children,
4522
4190
  title,
4523
4191
  paddingBottom = {
@@ -4567,11 +4235,14 @@ function CardModal2Header({
4567
4235
  });
4568
4236
  }
4569
4237
 
4570
- function CardModal2({
4238
+ function CardModal({
4571
4239
  backgroundColor = 'kitt.uiBackgroundLight',
4572
4240
  maxWidth = 'kitt.cardModal.maxWidth',
4573
4241
  withoutShadow,
4574
4242
  children,
4243
+ header,
4244
+ body,
4245
+ footer,
4575
4246
  ...props
4576
4247
  }) {
4577
4248
  return /*#__PURE__*/jsx(View, {
@@ -4584,13 +4255,15 @@ function CardModal2({
4584
4255
  maxHeight: "100%",
4585
4256
  maxWidth: maxWidth,
4586
4257
  minHeight: "kitt.cardModal.minHeight",
4587
- children: children
4258
+ children: children || /*#__PURE__*/jsxs(Fragment, {
4259
+ children: [header || null, body || null, footer || null]
4260
+ })
4588
4261
  });
4589
4262
  }
4590
- CardModal2.Body = CardModal2Body;
4591
- CardModal2.Header = CardModal2Header;
4592
- CardModal2.Footer = CardModal2Footer;
4593
- CardModal2.Behaviour = CardModal2Behaviour;
4263
+ CardModal.Body = CardModalBody;
4264
+ CardModal.Header = CardModalHeader;
4265
+ CardModal.Footer = CardModalFooter;
4266
+ CardModal.ModalBehaviour = CardModalBehaviour;
4594
4267
 
4595
4268
  function getBackgroundColor$5({
4596
4269
  isDisabled,
@@ -4887,7 +4560,7 @@ const ChoicesElements = {
4887
4560
  ButtonChoices
4888
4561
  };
4889
4562
 
4890
- function NativeOpacityAnimation$2({
4563
+ function NativeOpacityAnimation$1({
4891
4564
  visible,
4892
4565
  children,
4893
4566
  onExited
@@ -5011,7 +4684,7 @@ function DialogModalAnimation({
5011
4684
  flexGrow: 1,
5012
4685
  justifyContent: "center",
5013
4686
  alignItems: "center",
5014
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$2, {
4687
+ children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
5015
4688
  visible: isContentVisible,
5016
4689
  onExited: handleAnimationExited,
5017
4690
  children: /*#__PURE__*/jsx(Overlay, {
@@ -8074,322 +7747,45 @@ function FullscreenModalBody({
8074
7747
  kitt: {
8075
7748
  fullscreenModal: {
8076
7749
  body: {
8077
- verticalPadding
8078
- }
8079
- }
8080
- }
8081
- } = useTheme();
8082
- const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8083
- const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8084
- return /*#__PURE__*/jsx(View, {
8085
- ...props,
8086
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8087
- paddingTop: paddingTop,
8088
- paddingBottom: paddingBottom,
8089
- style: style,
8090
- children: children
8091
- });
8092
- }
8093
-
8094
- function FullscreenModalFooter({
8095
- shouldHandleBottomNotch = true,
8096
- hasSeparator = true,
8097
- children,
8098
- ...props
8099
- }) {
8100
- const {
8101
- bottom
8102
- } = useSafeAreaInsets();
8103
- return /*#__PURE__*/jsx(View, {
8104
- borderTopColor: "kitt.separator",
8105
- borderTopWidth: hasSeparator ? 1 : undefined,
8106
- paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
8107
- paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
8108
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8109
- ...props,
8110
- children: /*#__PURE__*/jsx(View, {
8111
- paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
8112
- children: children
8113
- })
8114
- });
8115
- }
8116
-
8117
- function NativeOpacityAnimation$1({
8118
- visible,
8119
- children
8120
- }) {
8121
- const theme = useTheme();
8122
- const opacityStyle = useAnimatedStyle(() => {
8123
- const {
8124
- duration,
8125
- easing
8126
- } = theme.kitt.fullscreenModal.animation.overlay;
8127
- const [x1, y1, x2, y2] = easing;
8128
- return {
8129
- opacity: withTiming(visible ? 1 : 0, {
8130
- duration,
8131
- easing: Easing$1.bezier(x1, y1, x2, y2)
8132
- })
8133
- };
8134
- });
8135
- return /*#__PURE__*/jsx(Animated.View, {
8136
- style: [StyleSheet.absoluteFillObject, opacityStyle],
8137
- children: children
8138
- });
8139
- }
8140
-
8141
- function NativeSlideInAnimation$1({
8142
- visible,
8143
- children,
8144
- onEntered,
8145
- onExited
8146
- }) {
8147
- const theme = useTheme();
8148
- const {
8149
- height: wHeight
8150
- } = useWindowDimensions();
8151
- const hasRunAnimationRef = useRef(false);
8152
- function handleAnimationFinished() {
8153
- if (visible) {
8154
- if (onEntered) onEntered();
8155
- hasRunAnimationRef.current = true;
8156
- }
8157
-
8158
- // Since animation callback is called on component mount, we must make sure that the animation has been runed once to call it an exit
8159
- if (!visible && hasRunAnimationRef.current) onExited();
8160
- }
8161
- const translateStyle = useAnimatedStyle(() => {
8162
- const {
8163
- duration,
8164
- easing
8165
- } = theme.kitt.fullscreenModal.animation.content;
8166
- const [x1, y1, x2, y2] = easing;
8167
- return {
8168
- transform: [{
8169
- translateY: withTiming(visible ? 0 : wHeight, {
8170
- duration,
8171
- easing: Easing$1.bezier(x1, y1, x2, y2)
8172
- }, isFinished => {
8173
- if (!isFinished) return;
8174
- runOnJS(handleAnimationFinished)();
8175
- })
8176
- }]
8177
- };
8178
- });
8179
- return /*#__PURE__*/jsx(Animated.View, {
8180
- style: [{
8181
- transform: [{
8182
- translateY: wHeight
8183
- }]
8184
- }, translateStyle, {
8185
- width: '100%',
8186
- flex: 1
8187
- }],
8188
- children: children
8189
- });
8190
- }
8191
-
8192
- function FullscreenModalAnimation({
8193
- visible,
8194
- children,
8195
- onEnter,
8196
- onEntered,
8197
- onExit,
8198
- onExited
8199
- }) {
8200
- const [isModalVisible, setIsModalVisible] = useState(visible);
8201
- const [isContentVisible, setIsContentVisible] = useState(false);
8202
- const handleAnimationExited = () => {
8203
- setIsModalVisible(false);
8204
- // Android doesn't handle the onDismiss callback on the modal, we need to call it manually
8205
- if (Platform.OS === 'android' && onExited) onExited();
8206
- };
8207
-
8208
- // When parent visibility is set to false, in order to have our exit animation we must in this order :
8209
- // 1 - run the exit animation
8210
- // 2 - once it is done, unmount the Modal
8211
- useEffect(() => {
8212
- if (!(!visible && isContentVisible)) return;
8213
- if (onExit) onExit();
8214
- setIsContentVisible(false);
8215
- }, [visible, isContentVisible, onExit]);
8216
- return /*#__PURE__*/jsx(Modal, {
8217
- transparent: true,
8218
- supportedOrientations: ['landscape', 'portrait'],
8219
- visible: isModalVisible,
8220
- onShow: () => {
8221
- if (onEnter) onEnter();
8222
- setIsContentVisible(true);
8223
- },
8224
- onDismiss: () => {
8225
- if (onExited) onExited();
8226
- },
8227
- children: /*#__PURE__*/jsxs(View, {
8228
- position: "relative",
8229
- flexGrow: 1,
8230
- justifyContent: "center",
8231
- alignItems: "center",
8232
- children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
8233
- visible: isContentVisible,
8234
- children: /*#__PURE__*/jsx(Overlay, {
8235
- onPress: handleAnimationExited
8236
- })
8237
- }), /*#__PURE__*/jsx(NativeSlideInAnimation$1, {
8238
- visible: isContentVisible,
8239
- onExited: handleAnimationExited,
8240
- onEntered: onEntered,
8241
- children: /*#__PURE__*/jsx(View, {
8242
- flexGrow: 1,
8243
- children: children
8244
- })
8245
- })]
8246
- })
8247
- });
8248
- }
8249
-
8250
- function FullscreenModalBehaviour({
8251
- children,
8252
- visible,
8253
- onClose,
8254
- onExited,
8255
- ...props
8256
- }) {
8257
- const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
8258
- useEffect(() => {
8259
- if (visible === true) {
8260
- setIsModalBehaviourVisible(true);
8261
- }
8262
- }, [visible]);
8263
- return /*#__PURE__*/jsx(ModalBehaviour, {
8264
- visible: isModalBehaviourVisible,
8265
- onClose: onClose,
8266
- children: /*#__PURE__*/jsx(FullscreenModalAnimation, {
8267
- ...props,
8268
- visible: visible,
8269
- onExited: () => {
8270
- if (onExited) onExited();
8271
- setIsModalBehaviourVisible(false);
8272
- },
8273
- children: children
8274
- })
8275
- });
8276
- }
8277
-
8278
- function FullscreenModalContainer({
8279
- children,
8280
- backgroundColor
8281
- }) {
8282
- return /*#__PURE__*/jsx(View, {
8283
- position: "relative",
8284
- flexGrow: 1,
8285
- flexShrink: 1,
8286
- flexBasis: "100%"
8287
- /*
8288
- Here we are setting the same min and max height because on web the content was overflowing and not scrolling
8289
- minHeight is needed to make the modal fullscreen
8290
- maxHeight limits the height to the viewport when the content is too long, this allows us to scroll inside
8291
- We use svh instead of vh because vh is the total height of the viewport, including the address bar in mobile web browsers
8292
- */,
8293
- _web: {
8294
- minHeight: '100svh',
8295
- maxHeight: '100svh'
8296
- },
8297
- backgroundColor: backgroundColor ?? 'kitt.uiBackgroundLight',
7750
+ verticalPadding
7751
+ }
7752
+ }
7753
+ }
7754
+ } = useTheme();
7755
+ const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
7756
+ const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
7757
+ return /*#__PURE__*/jsx(View, {
7758
+ ...props,
7759
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
7760
+ paddingTop: paddingTop,
7761
+ paddingBottom: paddingBottom,
7762
+ style: style,
8298
7763
  children: children
8299
7764
  });
8300
7765
  }
8301
7766
 
8302
- function FullscreenModalHeader({
7767
+ function FullscreenModalFooter({
7768
+ shouldHandleBottomNotch = true,
8303
7769
  hasSeparator = true,
8304
- isTransparent,
8305
- title,
8306
7770
  children,
8307
- right,
8308
- left,
8309
- shouldHandleTopNotch = true,
8310
7771
  ...props
8311
7772
  }) {
8312
7773
  const {
8313
- top
7774
+ bottom
8314
7775
  } = useSafeAreaInsets();
8315
- const hasRight = Boolean(right);
8316
- const hasLeft = Boolean(left);
8317
- const hasContent = Boolean(title || children);
8318
7776
  return /*#__PURE__*/jsx(View, {
8319
- backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
8320
- minHeight: "kitt.fullscreenModal.header.height",
8321
- width: "100%",
8322
- justifyContent: "center",
8323
- paddingTop: shouldHandleTopNotch ? top : undefined,
8324
- paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8325
- paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
8326
- borderBottomColor: "kitt.separator",
8327
- borderBottomWidth: hasSeparator ? 1 : undefined,
7777
+ borderTopColor: "kitt.separator",
7778
+ borderTopWidth: hasSeparator ? 1 : undefined,
7779
+ paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
7780
+ paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
7781
+ paddingX: "kitt.fullscreenModal.horizontalPadding",
8328
7782
  ...props,
8329
- children: /*#__PURE__*/jsxs(View, {
8330
- flexDirection: "row",
8331
- alignItems: "center",
8332
- justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
8333
- children: [left ? /*#__PURE__*/jsx(View, {
8334
- width: "kitt.iconButton.width",
8335
- children: left
8336
- }) : null, title ? /*#__PURE__*/jsx(View, {
8337
- flexGrow: 1,
8338
- flexShrink: 1,
8339
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8340
- paddingRight: hasRight ? 'kitt.2' : 0,
8341
- children: /*#__PURE__*/jsx(Typography.Text, {
8342
- variant: "bold",
8343
- textAlign: !hasLeft && hasRight ? 'left' : 'center',
8344
- children: title
8345
- })
8346
- }) : null, children ? /*#__PURE__*/jsx(View, {
8347
- flexGrow: 1,
8348
- flexShrink: 1,
8349
- alignItems: "center",
8350
- paddingLeft: hasLeft ? 'kitt.2' : undefined,
8351
- paddingRight: hasRight ? 'kitt.2' : undefined,
8352
- children: children
8353
- }) : null, right || left ? /*#__PURE__*/jsx(View, {
8354
- width: "kitt.iconButton.width",
8355
- children: right
8356
- }) : null]
8357
- })
8358
- });
8359
- }
8360
-
8361
- function FullscreenModal({
8362
- body,
8363
- header,
8364
- footer,
8365
- backgroundColor,
8366
- contentContainer: ContentContainer = IdentityComponent
8367
- }) {
8368
- return /*#__PURE__*/jsx(FullscreenModalContainer, {
8369
- backgroundColor: backgroundColor,
8370
- children: /*#__PURE__*/jsxs(ContentContainer, {
8371
- children: [header ? /*#__PURE__*/jsx(View, {
8372
- children: header
8373
- }) : null, /*#__PURE__*/jsxs(View, {
8374
- flexGrow: 1,
8375
- flexShrink: 1,
8376
- justifyContent: "space-between",
8377
- children: [/*#__PURE__*/jsx(ScrollView$2, {
8378
- bounces: false,
8379
- contentContainerStyle: {
8380
- flexGrow: 1,
8381
- position: 'relative'
8382
- },
8383
- children: body
8384
- }), footer || null]
8385
- })]
7783
+ children: /*#__PURE__*/jsx(View, {
7784
+ paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
7785
+ children: children
8386
7786
  })
8387
7787
  });
8388
7788
  }
8389
- FullscreenModal.Header = FullscreenModalHeader;
8390
- FullscreenModal.Footer = FullscreenModalFooter;
8391
- FullscreenModal.Body = FullscreenModalBody;
8392
- FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
8393
7789
 
8394
7790
  function NativeOpacityAnimation({
8395
7791
  visible,
@@ -8466,7 +7862,7 @@ function NativeSlideInAnimation({
8466
7862
  });
8467
7863
  }
8468
7864
 
8469
- function FullscreenModal2Animation({
7865
+ function FullscreenModalAnimation({
8470
7866
  visible,
8471
7867
  children,
8472
7868
  onEnter,
@@ -8524,7 +7920,7 @@ function FullscreenModal2Animation({
8524
7920
  });
8525
7921
  }
8526
7922
 
8527
- function FullscreenModal2Behaviour({
7923
+ function FullscreenModalBehaviour({
8528
7924
  children,
8529
7925
  visible,
8530
7926
  onClose,
@@ -8540,7 +7936,7 @@ function FullscreenModal2Behaviour({
8540
7936
  return /*#__PURE__*/jsx(ModalBehaviour, {
8541
7937
  visible: isModalBehaviourVisible,
8542
7938
  onClose: onClose,
8543
- children: /*#__PURE__*/jsx(FullscreenModal2Animation, {
7939
+ children: /*#__PURE__*/jsx(FullscreenModalAnimation, {
8544
7940
  ...props,
8545
7941
  visible: visible,
8546
7942
  onExited: () => {
@@ -8552,51 +7948,7 @@ function FullscreenModal2Behaviour({
8552
7948
  });
8553
7949
  }
8554
7950
 
8555
- function FullscreenModal2Body({
8556
- children,
8557
- shouldHandleBottomNotch,
8558
- style,
8559
- shouldHandleTopNotch,
8560
- ...props
8561
- }) {
8562
- const {
8563
- bottom,
8564
- top
8565
- } = useSafeAreaInsets();
8566
- const {
8567
- kitt: {
8568
- fullscreenModal: {
8569
- body: {
8570
- verticalPadding
8571
- }
8572
- }
8573
- }
8574
- } = useTheme();
8575
- const paddingBottom = shouldHandleBottomNotch ? Math.max(bottom, verticalPadding) : verticalPadding;
8576
- const paddingTop = shouldHandleTopNotch ? Math.max(top, verticalPadding) : verticalPadding;
8577
- return /*#__PURE__*/jsx(View, {
8578
- flexGrow: 1,
8579
- flexShrink: 1,
8580
- justifyContent: "space-between",
8581
- children: /*#__PURE__*/jsx(ScrollView$1, {
8582
- bounces: false,
8583
- contentContainerStyle: {
8584
- flexGrow: 1,
8585
- position: 'relative'
8586
- },
8587
- children: /*#__PURE__*/jsx(View, {
8588
- ...props,
8589
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8590
- paddingTop: paddingTop,
8591
- paddingBottom: paddingBottom,
8592
- style: style,
8593
- children: children
8594
- })
8595
- })
8596
- });
8597
- }
8598
-
8599
- function FullscreenModal2Container({
7951
+ function FullscreenModalContainer({
8600
7952
  children,
8601
7953
  backgroundColor
8602
7954
  }) {
@@ -8620,30 +7972,7 @@ function FullscreenModal2Container({
8620
7972
  });
8621
7973
  }
8622
7974
 
8623
- function FullscreenModal2Footer({
8624
- shouldHandleBottomNotch = true,
8625
- hasSeparator = true,
8626
- children,
8627
- ...props
8628
- }) {
8629
- const {
8630
- bottom
8631
- } = useSafeAreaInsets();
8632
- return /*#__PURE__*/jsx(View, {
8633
- borderTopColor: "kitt.separator",
8634
- borderTopWidth: hasSeparator ? 1 : undefined,
8635
- paddingTop: "kitt.fullscreenModal.footer.verticalPadding",
8636
- paddingBottom: shouldHandleBottomNotch ? bottom : undefined,
8637
- paddingX: "kitt.fullscreenModal.horizontalPadding",
8638
- ...props,
8639
- children: /*#__PURE__*/jsx(View, {
8640
- paddingBottom: "kitt.fullscreenModal.footer.verticalPadding",
8641
- children: children
8642
- })
8643
- });
8644
- }
8645
-
8646
- function FullscreenModal2Header({
7975
+ function FullscreenModalHeader({
8647
7976
  hasSeparator = true,
8648
7977
  isTransparent,
8649
7978
  title,
@@ -8702,19 +8031,35 @@ function FullscreenModal2Header({
8702
8031
  });
8703
8032
  }
8704
8033
 
8705
- function FullscreenModal2({
8706
- backgroundColor,
8707
- children
8034
+ function FullscreenModal({
8035
+ body,
8036
+ header,
8037
+ footer,
8038
+ backgroundColor
8708
8039
  }) {
8709
- return /*#__PURE__*/jsx(FullscreenModal2Container, {
8040
+ return /*#__PURE__*/jsxs(FullscreenModalContainer, {
8710
8041
  backgroundColor: backgroundColor,
8711
- children: children
8042
+ children: [header ? /*#__PURE__*/jsx(View, {
8043
+ children: header
8044
+ }) : null, /*#__PURE__*/jsxs(View, {
8045
+ flexGrow: 1,
8046
+ flexShrink: 1,
8047
+ justifyContent: "space-between",
8048
+ children: [/*#__PURE__*/jsx(ScrollView$2, {
8049
+ bounces: false,
8050
+ contentContainerStyle: {
8051
+ flexGrow: 1,
8052
+ position: 'relative'
8053
+ },
8054
+ children: body
8055
+ }), footer || null]
8056
+ })]
8712
8057
  });
8713
8058
  }
8714
- FullscreenModal2.Header = FullscreenModal2Header;
8715
- FullscreenModal2.Footer = FullscreenModal2Footer;
8716
- FullscreenModal2.Body = FullscreenModal2Body;
8717
- FullscreenModal2.Behaviour = FullscreenModal2Behaviour;
8059
+ FullscreenModal.Header = FullscreenModalHeader;
8060
+ FullscreenModal.Footer = FullscreenModalFooter;
8061
+ FullscreenModal.Body = FullscreenModalBody;
8062
+ FullscreenModal.ModalBehaviour = FullscreenModalBehaviour;
8718
8063
 
8719
8064
  function GroupTags({
8720
8065
  children,
@@ -12138,8 +11483,7 @@ function NavigationModal({
12138
11483
  body,
12139
11484
  backgroundColor,
12140
11485
  footer,
12141
- header,
12142
- contentContainer
11486
+ header
12143
11487
  }) {
12144
11488
  const Component = useBreakpointValue({
12145
11489
  base: FullscreenModal,
@@ -12149,11 +11493,10 @@ function NavigationModal({
12149
11493
  body: body,
12150
11494
  backgroundColor: backgroundColor,
12151
11495
  footer: footer,
12152
- header: header,
12153
- contentContainer: contentContainer
11496
+ header: header
12154
11497
  });
12155
11498
  }
12156
- function Header$1(props) {
11499
+ function Header(props) {
12157
11500
  const Component = useBreakpointValue({
12158
11501
  base: FullscreenModal.Header,
12159
11502
  small: CardModal.Header
@@ -12162,7 +11505,7 @@ function Header$1(props) {
12162
11505
  ...props
12163
11506
  });
12164
11507
  }
12165
- function Body$1(props) {
11508
+ function Body(props) {
12166
11509
  const Component = useBreakpointValue({
12167
11510
  base: FullscreenModal.Body,
12168
11511
  small: CardModal.Body
@@ -12171,7 +11514,7 @@ function Body$1(props) {
12171
11514
  ...props
12172
11515
  });
12173
11516
  }
12174
- function Footer$1(props) {
11517
+ function Footer(props) {
12175
11518
  const Component = useBreakpointValue({
12176
11519
  base: FullscreenModal.Footer,
12177
11520
  small: CardModal.Footer
@@ -12180,106 +11523,11 @@ function Footer$1(props) {
12180
11523
  ...props
12181
11524
  });
12182
11525
  }
12183
- NavigationModal.Header = Header$1;
12184
- NavigationModal.Body = Body$1;
12185
- NavigationModal.Footer = Footer$1;
11526
+ NavigationModal.Header = Header;
11527
+ NavigationModal.Body = Body;
11528
+ NavigationModal.Footer = Footer;
12186
11529
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
12187
11530
 
12188
- function NavigationModal2Behaviour({
12189
- children,
12190
- visible,
12191
- appear = true,
12192
- onExited,
12193
- onEnter,
12194
- onExit,
12195
- onClose,
12196
- ...props
12197
- }) {
12198
- const AnimationComponent = useBreakpointValue({
12199
- base: FullscreenModal2Animation,
12200
- small: CardModal2Animation
12201
- });
12202
- const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
12203
- const [shouldAppear, setShouldAppear] = useState(appear);
12204
- useEffect(() => {
12205
- if (visible === true) {
12206
- setIsModalBehaviourVisible(true);
12207
- }
12208
- }, [visible]);
12209
- return /*#__PURE__*/jsx(ModalBehaviour, {
12210
- visible: isModalBehaviourVisible,
12211
- onClose: onClose,
12212
- children: /*#__PURE__*/jsx(AnimationComponent, {
12213
- ...props,
12214
- appear: shouldAppear,
12215
- visible: visible,
12216
- onEnter: () => {
12217
- if (onEnter) onEnter();
12218
-
12219
- // Once a children as been displayed, we force appear to false in order to avoid replaying animation on breakpoint change
12220
- setShouldAppear(false);
12221
- },
12222
- onExit: () => {
12223
- if (onExit) onExit();
12224
-
12225
- // Reset appear value to its original value for future modal display
12226
- setShouldAppear(appear);
12227
- },
12228
- onExited: () => {
12229
- if (onExited) onExited();
12230
- setIsModalBehaviourVisible(false);
12231
- },
12232
- onClose: onClose,
12233
- children: children
12234
- })
12235
- });
12236
- }
12237
-
12238
- function NavigationModal2({
12239
- backgroundColor,
12240
- children
12241
- }) {
12242
- const Component = useBreakpointValue({
12243
- base: FullscreenModal2,
12244
- small: CardModal2
12245
- });
12246
- return /*#__PURE__*/jsx(Component, {
12247
- backgroundColor: backgroundColor,
12248
- children: children
12249
- });
12250
- }
12251
- function Header(props) {
12252
- const Component = useBreakpointValue({
12253
- base: FullscreenModal2.Header,
12254
- small: CardModal2.Header
12255
- });
12256
- return /*#__PURE__*/jsx(Component, {
12257
- ...props
12258
- });
12259
- }
12260
- function Body(props) {
12261
- const Component = useBreakpointValue({
12262
- base: FullscreenModal2.Body,
12263
- small: CardModal2.Body
12264
- });
12265
- return /*#__PURE__*/jsx(Component, {
12266
- ...props
12267
- });
12268
- }
12269
- function Footer(props) {
12270
- const Component = useBreakpointValue({
12271
- base: FullscreenModal2.Footer,
12272
- small: CardModal2.Footer
12273
- });
12274
- return /*#__PURE__*/jsx(Component, {
12275
- ...props
12276
- });
12277
- }
12278
- NavigationModal2.Header = Header;
12279
- NavigationModal2.Body = Body;
12280
- NavigationModal2.Footer = Footer;
12281
- NavigationModal2.ModalBehaviour = NavigationModal2Behaviour;
12282
-
12283
11531
  function Notification({
12284
11532
  type,
12285
11533
  children,
@@ -14652,5 +13900,5 @@ function VerticalSteps({
14652
13900
  VerticalSteps.Step = Step;
14653
13901
  VerticalSteps.BorderlessStep = BorderlessStep;
14654
13902
 
14655
- 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, FlatList as 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 };
13903
+ 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, FlatList as 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 };
14656
13904
  //# sourceMappingURL=index-node-20.10.es.mjs.map