@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.
- package/CHANGELOG.md +15 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts +1 -1
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts +2 -2
- package/dist/definitions/CardModal/CardModalAnimation/CardModalRotationContainer.d.ts.map +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +2 -2
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts +2 -2
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +23 -18
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +23 -18
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +16 -12
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +48 -13
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +16 -12
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +48 -13
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +15 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +47 -11
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/scripts/codemods/__testfixtures__/illustration-imports/illustration-imports.input.tsx +11 -0
- package/scripts/codemods/__testfixtures__/illustration-imports/illustration-imports.output.tsx +13 -0
- package/scripts/codemods/__tests__/illustration-imports.test.js +12 -0
- package/scripts/codemods/illustration-imports.js +184 -0
|
@@ -4121,10 +4121,11 @@ function ModalBehaviour({
|
|
|
4121
4121
|
}
|
|
4122
4122
|
ModalBehaviour.CloseButton = CloseButton$1;
|
|
4123
4123
|
|
|
4124
|
-
|
|
4124
|
+
const Overlay = /*#__PURE__*/react.forwardRef(({
|
|
4125
4125
|
onPress
|
|
4126
|
-
}) {
|
|
4126
|
+
}, ref) => {
|
|
4127
4127
|
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
4128
|
+
ref: ref,
|
|
4128
4129
|
accessibilityRole: "none",
|
|
4129
4130
|
position: "absolute",
|
|
4130
4131
|
top: "0",
|
|
@@ -4134,9 +4135,9 @@ function Overlay({
|
|
|
4134
4135
|
backgroundColor: "kitt.overlay.dark",
|
|
4135
4136
|
onPress: onPress
|
|
4136
4137
|
});
|
|
4137
|
-
}
|
|
4138
|
+
});
|
|
4138
4139
|
|
|
4139
|
-
|
|
4140
|
+
const CardModalRotationContainer = /*#__PURE__*/react.forwardRef((props, ref) => {
|
|
4140
4141
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4141
4142
|
paddingX: "kitt.cardModal.overlayPadding.horizontal",
|
|
4142
4143
|
paddingY: "kitt.cardModal.overlayPadding.vertical",
|
|
@@ -4146,9 +4147,10 @@ function CardModalRotationContainer(props) {
|
|
|
4146
4147
|
_web: {
|
|
4147
4148
|
maxHeight: '100svh'
|
|
4148
4149
|
},
|
|
4149
|
-
...props
|
|
4150
|
+
...props,
|
|
4151
|
+
ref: ref
|
|
4150
4152
|
});
|
|
4151
|
-
}
|
|
4153
|
+
});
|
|
4152
4154
|
|
|
4153
4155
|
const contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
4154
4156
|
const contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
@@ -4187,6 +4189,10 @@ function CardModalAnimation({
|
|
|
4187
4189
|
onClose,
|
|
4188
4190
|
...props
|
|
4189
4191
|
}) {
|
|
4192
|
+
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
4193
|
+
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
4194
|
+
const overlayRef = react.useRef(null);
|
|
4195
|
+
const contentRef = react.useRef(null);
|
|
4190
4196
|
const theme = useTheme();
|
|
4191
4197
|
const {
|
|
4192
4198
|
animation
|
|
@@ -4202,13 +4208,16 @@ function CardModalAnimation({
|
|
|
4202
4208
|
justifyContent: "center",
|
|
4203
4209
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
4204
4210
|
...sharedProps,
|
|
4211
|
+
nodeRef: overlayRef,
|
|
4205
4212
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4206
4213
|
classNames: opacityClassNames$2,
|
|
4207
4214
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
4215
|
+
ref: overlayRef,
|
|
4208
4216
|
onPress: onClose
|
|
4209
4217
|
})
|
|
4210
4218
|
}), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
4211
4219
|
...sharedProps,
|
|
4220
|
+
nodeRef: contentRef,
|
|
4212
4221
|
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
4213
4222
|
classNames: contentAnimationClassNames$1,
|
|
4214
4223
|
onEnter: onEnter,
|
|
@@ -4216,6 +4225,7 @@ function CardModalAnimation({
|
|
|
4216
4225
|
onExit: onExit,
|
|
4217
4226
|
onExited: onExited,
|
|
4218
4227
|
children: /*#__PURE__*/jsxRuntime.jsx(CardModalRotationContainer, {
|
|
4228
|
+
ref: contentRef,
|
|
4219
4229
|
alignItems: "center",
|
|
4220
4230
|
margin: "auto",
|
|
4221
4231
|
children: children
|
|
@@ -4785,6 +4795,10 @@ function DialogModalAnimation({
|
|
|
4785
4795
|
onClose,
|
|
4786
4796
|
...props
|
|
4787
4797
|
}) {
|
|
4798
|
+
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
4799
|
+
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
4800
|
+
const overlayRef = react.useRef(null);
|
|
4801
|
+
const contentRef = react.useRef(null);
|
|
4788
4802
|
const theme = useTheme();
|
|
4789
4803
|
const {
|
|
4790
4804
|
animation
|
|
@@ -4800,13 +4814,16 @@ function DialogModalAnimation({
|
|
|
4800
4814
|
justifyContent: "center",
|
|
4801
4815
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
4802
4816
|
...sharedProps,
|
|
4817
|
+
nodeRef: overlayRef,
|
|
4803
4818
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
4804
4819
|
classNames: opacityClassNames$1,
|
|
4805
4820
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
4821
|
+
ref: overlayRef,
|
|
4806
4822
|
onPress: onClose
|
|
4807
4823
|
})
|
|
4808
4824
|
}), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
4809
4825
|
...sharedProps,
|
|
4826
|
+
nodeRef: contentRef,
|
|
4810
4827
|
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
4811
4828
|
classNames: contentAnimationClassNames,
|
|
4812
4829
|
onEnter: onEnter,
|
|
@@ -4814,6 +4831,7 @@ function DialogModalAnimation({
|
|
|
4814
4831
|
onExit: onExit,
|
|
4815
4832
|
onExited: onExited,
|
|
4816
4833
|
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4834
|
+
ref: contentRef,
|
|
4817
4835
|
alignItems: "center",
|
|
4818
4836
|
paddingX: "kitt.dialogModal.overlayPadding.horizontal",
|
|
4819
4837
|
paddingY: "kitt.dialogModal.overlayPadding.vertical",
|
|
@@ -7412,6 +7430,10 @@ function FullscreenModalAnimation({
|
|
|
7412
7430
|
onClose,
|
|
7413
7431
|
...props
|
|
7414
7432
|
}) {
|
|
7433
|
+
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
7434
|
+
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
7435
|
+
const overlayRef = react.useRef(null);
|
|
7436
|
+
const contentRef = react.useRef(null);
|
|
7415
7437
|
const theme = useTheme();
|
|
7416
7438
|
const {
|
|
7417
7439
|
animation
|
|
@@ -7425,20 +7447,26 @@ function FullscreenModalAnimation({
|
|
|
7425
7447
|
...props,
|
|
7426
7448
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
7427
7449
|
...sharedProps,
|
|
7450
|
+
nodeRef: overlayRef,
|
|
7428
7451
|
timeout: isAnimationEnabled ? animation.overlay.duration : 0,
|
|
7429
7452
|
classNames: opacityClassNames,
|
|
7430
7453
|
children: /*#__PURE__*/jsxRuntime.jsx(Overlay, {
|
|
7454
|
+
ref: overlayRef,
|
|
7431
7455
|
onPress: onClose
|
|
7432
7456
|
})
|
|
7433
7457
|
}), /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
7434
7458
|
...sharedProps,
|
|
7459
|
+
nodeRef: contentRef,
|
|
7435
7460
|
timeout: isAnimationEnabled ? animation.content.duration : 0,
|
|
7436
7461
|
classNames: slideInClassNames,
|
|
7437
7462
|
onEnter: onEnter,
|
|
7438
7463
|
onEntered: onEntered,
|
|
7439
7464
|
onExit: onExit,
|
|
7440
7465
|
onExited: onExited,
|
|
7441
|
-
children:
|
|
7466
|
+
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7467
|
+
ref: contentRef,
|
|
7468
|
+
children: children
|
|
7469
|
+
})
|
|
7442
7470
|
})]
|
|
7443
7471
|
});
|
|
7444
7472
|
}
|
|
@@ -8189,16 +8217,17 @@ const getIconButtonColor = messageType => {
|
|
|
8189
8217
|
}
|
|
8190
8218
|
};
|
|
8191
8219
|
|
|
8192
|
-
|
|
8220
|
+
const BaseMessage = /*#__PURE__*/react.forwardRef(({
|
|
8193
8221
|
type = 'info',
|
|
8194
8222
|
children,
|
|
8195
8223
|
hasNoRadius,
|
|
8196
8224
|
centeredText,
|
|
8197
8225
|
insets,
|
|
8198
8226
|
onDismiss
|
|
8199
|
-
}) {
|
|
8227
|
+
}, ref) => {
|
|
8200
8228
|
const color = getColorByType(type);
|
|
8201
8229
|
return /*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
8230
|
+
ref: ref,
|
|
8202
8231
|
alignItems: "flex-start",
|
|
8203
8232
|
justifyContent: "space-between",
|
|
8204
8233
|
minHeight: "kitt.feedbackMessage.minHeight",
|
|
@@ -8240,7 +8269,7 @@ function BaseMessage({
|
|
|
8240
8269
|
})
|
|
8241
8270
|
}) : null]
|
|
8242
8271
|
});
|
|
8243
|
-
}
|
|
8272
|
+
});
|
|
8244
8273
|
|
|
8245
8274
|
function Message({
|
|
8246
8275
|
type = 'info',
|
|
@@ -10989,14 +11018,15 @@ NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
|
10989
11018
|
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
10990
11019
|
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
10991
11020
|
|
|
10992
|
-
|
|
11021
|
+
const Notification = /*#__PURE__*/react.forwardRef(({
|
|
10993
11022
|
type,
|
|
10994
11023
|
children,
|
|
10995
11024
|
centeredText,
|
|
10996
11025
|
insets,
|
|
10997
11026
|
onDismiss
|
|
10998
|
-
}) {
|
|
11027
|
+
}, ref) => {
|
|
10999
11028
|
return /*#__PURE__*/jsxRuntime.jsx(BaseMessage, {
|
|
11029
|
+
ref: ref,
|
|
11000
11030
|
hasNoRadius: true,
|
|
11001
11031
|
type: type,
|
|
11002
11032
|
centeredText: centeredText,
|
|
@@ -11004,7 +11034,7 @@ function Notification({
|
|
|
11004
11034
|
onDismiss: onDismiss,
|
|
11005
11035
|
children: children
|
|
11006
11036
|
});
|
|
11007
|
-
}
|
|
11037
|
+
});
|
|
11008
11038
|
|
|
11009
11039
|
const AnimatedCircle = Animated__default.createAnimatedComponent(Svg.Circle);
|
|
11010
11040
|
function AnimatedLoaderCircle({
|
|
@@ -11265,6 +11295,9 @@ function Picker({
|
|
|
11265
11295
|
onChange,
|
|
11266
11296
|
onClose
|
|
11267
11297
|
}) {
|
|
11298
|
+
// React 19 has removed the ReactDOM.findDOMNode method. We need to use refs to access DOM nodes in CSSTransition.
|
|
11299
|
+
// See https://github.com/reactjs/react-transition-group/issues/918
|
|
11300
|
+
const nodeRef = react.useRef(null);
|
|
11268
11301
|
if ((process.env.NODE_ENV !== "production") && sourceValue !== undefined && !syncStateWithSourceValue) {
|
|
11269
11302
|
throw new Error('Picker: sourceValue prop should only be used with syncStateWithSourceValue prop');
|
|
11270
11303
|
}
|
|
@@ -11376,6 +11409,7 @@ function Picker({
|
|
|
11376
11409
|
},
|
|
11377
11410
|
children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
11378
11411
|
unmountOnExit: true,
|
|
11412
|
+
nodeRef: nodeRef,
|
|
11379
11413
|
timeout: 300,
|
|
11380
11414
|
in: isOpen,
|
|
11381
11415
|
classNames: {
|
|
@@ -11385,6 +11419,7 @@ function Picker({
|
|
|
11385
11419
|
exitActive
|
|
11386
11420
|
},
|
|
11387
11421
|
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11422
|
+
ref: nodeRef,
|
|
11388
11423
|
paddingY: "kitt.2",
|
|
11389
11424
|
children: childrenArray.map((child, index) => {
|
|
11390
11425
|
const currentValue = items[index];
|