@ornikar/kitt-universal 29.4.1 → 29.4.2-canary.0e4f130cb45a177a7fdd9a15817918e986eb8cd4.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 (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/definitions/BaseMessage/BaseMessage.d.ts +1 -1
  3. package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -1
  4. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts +1 -1
  5. package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
  6. package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts +2 -2
  7. package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts.map +1 -1
  8. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts +1 -1
  9. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
  10. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts +1 -1
  11. package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
  12. package/dist/definitions/Notification/Notification.d.ts +2 -2
  13. package/dist/definitions/Notification/Notification.d.ts.map +1 -1
  14. package/dist/definitions/Overlay/Overlay.d.ts +2 -2
  15. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  16. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  17. package/dist/index-metro.es.android.js +23 -18
  18. package/dist/index-metro.es.android.js.map +1 -1
  19. package/dist/index-metro.es.ios.js +23 -18
  20. package/dist/index-metro.es.ios.js.map +1 -1
  21. package/dist/index-node-22.17.cjs.js +16 -12
  22. package/dist/index-node-22.17.cjs.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.web.js +48 -13
  24. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  25. package/dist/index-node-22.17.es.mjs +16 -12
  26. package/dist/index-node-22.17.es.mjs.map +1 -1
  27. package/dist/index-node-22.17.es.web.mjs +48 -13
  28. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  29. package/dist/index.es.js +15 -10
  30. package/dist/index.es.js.map +1 -1
  31. package/dist/index.es.web.js +47 -11
  32. package/dist/index.es.web.js.map +1 -1
  33. package/dist/tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/scripts/codemods/__testfixtures__/illustration-imports/illustration-imports.input.tsx +11 -0
  36. package/scripts/codemods/__testfixtures__/illustration-imports/illustration-imports.output.tsx +13 -0
  37. package/scripts/codemods/__tests__/illustration-imports.test.js +12 -0
  38. package/scripts/codemods/illustration-imports.js +184 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [29.4.2-canary.0e4f130cb45a177a7fdd9a15817918e986eb8cd4.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@29.4.1...@ornikar/kitt-universal@29.4.2-canary.0e4f130cb45a177a7fdd9a15817918e986eb8cd4.0) (2025-10-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * add codemod ([0e4f130](https://github.com/ornikar/kitt/commit/0e4f130cb45a177a7fdd9a15817918e986eb8cd4))
12
+ * add NavigationModalAnimatedBehaviourWithSrollableChildren [no issue] ([#2731](https://github.com/ornikar/kitt/issues/2731)) ([90eb3d2](https://github.com/ornikar/kitt/commit/90eb3d27c63e702db991b0f1426fc4be59355f22))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **kitt:** react 19 warnings for CSSTransition OSE-20990 ([#2735](https://github.com/ornikar/kitt/issues/2735)) ([615008a](https://github.com/ornikar/kitt/commit/615008a218bb131f220670ceabdbd38eae8ffcb5))
18
+
19
+
20
+
6
21
  ## [29.4.1](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@29.4.0...@ornikar/kitt-universal@29.4.1) (2025-10-29)
7
22
 
8
23
 
@@ -12,5 +12,5 @@ export interface BaseMessageProps {
12
12
  insets?: EdgeInsets;
13
13
  onDismiss?: () => void;
14
14
  }
15
- export declare function BaseMessage({ type, children, hasNoRadius, centeredText, insets, onDismiss, }: BaseMessageProps): ReactNode;
15
+ export declare const BaseMessage: import("react").ForwardRefExoticComponent<BaseMessageProps & import("react").RefAttributes<unknown>>;
16
16
  //# sourceMappingURL=BaseMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseMessage.d.ts","sourceRoot":"","sources":["../../../src/BaseMessage/BaseMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AASjE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAa,EACb,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,GAAG,SAAS,CA2C9B"}
1
+ {"version":3,"file":"BaseMessage.d.ts","sourceRoot":"","sources":["../../../src/BaseMessage/BaseMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AASjE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,sGA8CvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import type { CardModalAnimationProps } from './CardModalAnimation';
3
3
  export declare function CardModalAnimation({ children, appear, visible, unmountOnExit, isAnimationEnabled, onEnter, onEntered, onExit, onExited, onClose, ...props }: CardModalAnimationProps): ReactNode;
4
4
  //# sourceMappingURL=CardModalAnimation.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../../src/CardModal/CardModalAnimation/CardModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAiEpE,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,uBAAuB,GAAG,SAAS,CAmCrC"}
1
+ {"version":3,"file":"CardModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../../src/CardModal/CardModalAnimation/CardModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAW/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAiEpE,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,uBAAuB,GAAG,SAAS,CA0CrC"}
@@ -1,7 +1,7 @@
1
- import type { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  import type { ViewProps } from '../../native-base/primitives';
3
3
  interface CardModalRotationContainerProps extends ViewProps {
4
4
  }
5
- export declare function CardModalRotationContainer(props: CardModalRotationContainerProps): ReactNode;
5
+ export declare const CardModalRotationContainer: import("react").ForwardRefExoticComponent<CardModalRotationContainerProps & import("react").RefAttributes<unknown>>;
6
6
  export {};
7
7
  //# sourceMappingURL=CardModalRotationContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardModalRotationContainer.d.ts","sourceRoot":"","sources":["../../../../src/CardModal/CardModalAnimation/CardModalRotationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,UAAU,+BAAgC,SAAQ,SAAS;CAAG;AAE9D,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,CAY5F"}
1
+ {"version":3,"file":"CardModalRotationContainer.d.ts","sourceRoot":"","sources":["../../../../src/CardModal/CardModalAnimation/CardModalRotationContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,UAAU,+BAAgC,SAAQ,SAAS;CAAG;AAE9D,eAAO,MAAM,0BAA0B,qHAarC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import type { DialogModalAnimationProps } from './DialogModalAnimation';
3
3
  export declare function DialogModalAnimation({ children, appear, visible, unmountOnExit, isAnimationEnabled, onEnter, onEntered, onExit, onExited, onClose, ...props }: DialogModalAnimationProps): ReactNode;
4
4
  //# sourceMappingURL=DialogModalAnimation.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../../src/DialogModal/DialogModalAnimation/DialogModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAgExE,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,yBAAyB,GAAG,SAAS,CAwCvC"}
1
+ {"version":3,"file":"DialogModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../../src/DialogModal/DialogModalAnimation/DialogModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAW/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAgExE,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,yBAAyB,GAAG,SAAS,CAgDvC"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import type { FullscreenModalAnimationProps } from './FullscreenModalAnimation';
3
3
  export declare function FullscreenModalAnimation({ children, appear, visible, unmountOnExit, isAnimationEnabled, onEnter, onEntered, onExit, onExited, onClose, ...props }: FullscreenModalAnimationProps): ReactNode;
4
4
  //# sourceMappingURL=FullscreenModalAnimation.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullscreenModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../src/FullscreenModal/FullscreenModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AA4DhF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,6BAA6B,GAAG,SAAS,CAiC3C"}
1
+ {"version":3,"file":"FullscreenModalAnimation.web.d.ts","sourceRoot":"","sources":["../../../src/FullscreenModal/FullscreenModalAnimation.web.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAW/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AA4DhF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,MAAa,EACb,OAAO,EACP,aAAoB,EACpB,kBAAyB,EACzB,OAAO,EACP,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,6BAA6B,GAAG,SAAS,CAwC3C"}
@@ -1,6 +1,6 @@
1
- import type { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  import type { BaseMessageProps } from '../BaseMessage/BaseMessage';
3
3
  export interface NotificationProps extends BaseMessageProps {
4
4
  }
5
- export declare function Notification({ type, children, centeredText, insets, onDismiss }: NotificationProps): ReactNode;
5
+ export declare const Notification: import("react").ForwardRefExoticComponent<NotificationProps & import("react").RefAttributes<unknown>>;
6
6
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAE9D,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,SAAS,CAM9G"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Notification/Notification.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAE9D,eAAO,MAAM,YAAY,uGAQxB,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  import type { PressableProps } from 'react-native';
3
3
  interface OverlayProps extends Pick<PressableProps, 'onPress'> {
4
4
  }
5
- export declare function Overlay({ onPress }: OverlayProps): ReactNode;
5
+ export declare const Overlay: import("react").ForwardRefExoticComponent<OverlayProps & import("react").RefAttributes<unknown>>;
6
6
  export {};
7
7
  //# sourceMappingURL=Overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../src/Overlay/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,UAAU,YAAa,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;CAAG;AAEjE,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,YAAY,GAAG,SAAS,CAa5D"}
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../src/Overlay/Overlay.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,UAAU,YAAa,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;CAAG;AAEjE,eAAO,MAAM,OAAO,kGAclB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.web.d.ts","sourceRoot":"","sources":["../../../src/Picker/Picker.web.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsB9C,wBAAgB,MAAM,CAAC,CAAC,EAAE,EACxB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,cAA+B,EAC/B,WAAW,EACX,wBAAgC,EAChC,gBAAwB,EACxB,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,OAAO,GACR,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,CA4J5B;yBA5Ke,MAAM"}
1
+ {"version":3,"file":"Picker.web.d.ts","sourceRoot":"","sources":["../../../src/Picker/Picker.web.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsB9C,wBAAgB,MAAM,CAAC,CAAC,EAAE,EACxB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,cAA+B,EAC/B,WAAW,EACX,wBAAgC,EAChC,gBAAwB,EACxB,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,OAAO,GACR,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,CAiK5B;yBAjLe,MAAM"}
@@ -4149,10 +4149,11 @@ function ModalBehaviour({
4149
4149
  }
4150
4150
  ModalBehaviour.CloseButton = CloseButton$1;
4151
4151
 
4152
- function Overlay({
4152
+ const Overlay = /*#__PURE__*/forwardRef(({
4153
4153
  onPress
4154
- }) {
4154
+ }, ref) => {
4155
4155
  return /*#__PURE__*/jsx(Pressable, {
4156
+ ref: ref,
4156
4157
  accessibilityRole: "none",
4157
4158
  position: "absolute",
4158
4159
  top: "0",
@@ -4162,10 +4163,10 @@ function Overlay({
4162
4163
  backgroundColor: "kitt.overlay.dark",
4163
4164
  onPress: onPress
4164
4165
  });
4165
- }
4166
+ });
4166
4167
 
4167
- function CardModalRotationContainer(props) {
4168
- return /*#__PURE__*/jsx(View, _objectSpread({
4168
+ const CardModalRotationContainer = /*#__PURE__*/forwardRef((props, ref) => {
4169
+ return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
4169
4170
  paddingX: "kitt.cardModal.overlayPadding.horizontal",
4170
4171
  paddingY: "kitt.cardModal.overlayPadding.vertical",
4171
4172
  maxWidth: "kitt.cardModal.maxWidthWithPadding",
@@ -4174,8 +4175,10 @@ function CardModalRotationContainer(props) {
4174
4175
  _web: {
4175
4176
  maxHeight: '100svh'
4176
4177
  }
4177
- }, props));
4178
- }
4178
+ }, props), {}, {
4179
+ ref: ref
4180
+ }));
4181
+ });
4179
4182
 
4180
4183
  function NativeOpacityAnimation$2({
4181
4184
  visible,
@@ -8999,22 +9002,23 @@ const getIconButtonColor = messageType => {
8999
9002
  }
9000
9003
  };
9001
9004
 
9002
- function BaseMessage({
9003
- type = 'info',
9005
+ const BaseMessage = /*#__PURE__*/forwardRef(({
9006
+ type: _type = 'info',
9004
9007
  children,
9005
9008
  hasNoRadius,
9006
9009
  centeredText,
9007
9010
  insets,
9008
9011
  onDismiss
9009
- }) {
9010
- const color = getColorByType(type);
9012
+ }, ref) => {
9013
+ const color = getColorByType(_type);
9011
9014
  return /*#__PURE__*/jsxs(HStack, {
9015
+ ref: ref,
9012
9016
  alignItems: "flex-start",
9013
9017
  justifyContent: "space-between",
9014
9018
  minHeight: "kitt.feedbackMessage.minHeight",
9015
9019
  paddingTop: insets === null || insets === void 0 ? void 0 : insets.top,
9016
9020
  borderRadius: hasNoRadius ? undefined : 'kitt.2',
9017
- backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
9021
+ backgroundColor: `kitt.feedbackMessage.${_type}.backgroundColor`,
9018
9022
  children: [/*#__PURE__*/jsxs(HStack, {
9019
9023
  flexGrow: 1,
9020
9024
  flexShrink: 1,
@@ -9027,7 +9031,7 @@ function BaseMessage({
9027
9031
  children: /*#__PURE__*/jsx(Icon, {
9028
9032
  color: color,
9029
9033
  icon: /*#__PURE__*/jsx(IconContent, {
9030
- type: type,
9034
+ type: _type,
9031
9035
  color: color
9032
9036
  })
9033
9037
  })
@@ -9045,12 +9049,12 @@ function BaseMessage({
9045
9049
  marginRight: "kitt.2",
9046
9050
  marginLeft: "kitt.5",
9047
9051
  children: /*#__PURE__*/jsx(CloseIconButton, {
9048
- color: getIconButtonColor(type),
9052
+ color: getIconButtonColor(_type),
9049
9053
  onPress: onDismiss
9050
9054
  })
9051
9055
  }) : null]
9052
9056
  });
9053
- }
9057
+ });
9054
9058
 
9055
9059
  function Message({
9056
9060
  type = 'info',
@@ -11773,14 +11777,15 @@ NavigationModal.Body = Body;
11773
11777
  NavigationModal.Footer = Footer;
11774
11778
  NavigationModal.ModalBehaviour = NavigationModalBehaviour;
11775
11779
 
11776
- function Notification({
11780
+ const Notification = /*#__PURE__*/forwardRef(({
11777
11781
  type,
11778
11782
  children,
11779
11783
  centeredText,
11780
11784
  insets,
11781
11785
  onDismiss
11782
- }) {
11786
+ }, ref) => {
11783
11787
  return /*#__PURE__*/jsx(BaseMessage, {
11788
+ ref: ref,
11784
11789
  hasNoRadius: true,
11785
11790
  type: type,
11786
11791
  centeredText: centeredText,
@@ -11788,7 +11793,7 @@ function Notification({
11788
11793
  onDismiss: onDismiss,
11789
11794
  children: children
11790
11795
  });
11791
- }
11796
+ });
11792
11797
 
11793
11798
  const AnimatedCircle = Animated.createAnimatedComponent(Circle$1);
11794
11799
  function AnimatedLoaderCircle({