@ornikar/kitt-universal 32.5.3-canary.00f8f98ae6299285821fb6a87eab9440995c7566.0 → 32.5.3-canary.f3d9b69069a5f00edad9110e1f71513d5e1ba86a.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 CHANGED
@@ -3,18 +3,20 @@
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
- ## [32.5.3-canary.00f8f98ae6299285821fb6a87eab9440995c7566.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.5.2...@ornikar/kitt-universal@32.5.3-canary.00f8f98ae6299285821fb6a87eab9440995c7566.0) (2025-12-18)
6
+ ## [32.5.3-canary.f3d9b69069a5f00edad9110e1f71513d5e1ba86a.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.5.2...@ornikar/kitt-universal@32.5.3-canary.f3d9b69069a5f00edad9110e1f71513d5e1ba86a.0) (2026-01-02)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * create Portal component ([ce6b733](https://github.com/ornikar/kitt/commit/ce6b733813db62105f43fc259cc714c68763d10a))
12
- * create web util to check if document.body exists ([d36e670](https://github.com/ornikar/kitt/commit/d36e67015f2002999de2abb53861ad7fd36bb3d5))
11
+ * better css ([a464c06](https://github.com/ornikar/kitt/commit/a464c0635e7886f020854452c22dc00e0afce8fa))
12
+ * remove linaria css ([bf90c84](https://github.com/ornikar/kitt/commit/bf90c84beea338c9de37dbf890022529024ab5cd))
13
+ * updated snapshots ([f3d9b69](https://github.com/ornikar/kitt/commit/f3d9b69069a5f00edad9110e1f71513d5e1ba86a))
13
14
 
14
15
 
15
16
  ### Bug Fixes
16
17
 
17
- * apply new Portal component to createPortal consumers ([00f8f98](https://github.com/ornikar/kitt/commit/00f8f98ae6299285821fb6a87eab9440995c7566))
18
+ * import ([b72fcb2](https://github.com/ornikar/kitt/commit/b72fcb2b792a950f99654519a5e125664fdabc40))
19
+ * reverted input modification ([e0de463](https://github.com/ornikar/kitt/commit/e0de46378458e41dbfb813db7e7cfd11109e8eed))
18
20
 
19
21
 
20
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.web.d.ts","sourceRoot":"","sources":["../../../src/Picker/Picker.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAU9C,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":"AAEA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAU9C,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,CA6J5B;yBA7Ke,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.web.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMxC,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,UAAU,uBAAwB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;IACvF,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE;QACJ,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QAC1B,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;KAC1B,CAAC;CACH;AAGD,KAAK,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG;IACxD,QAAQ,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,QAAgB,EAChB,OAAO,EACP,eAAe,EACf,SAAS,EACT,QAAQ,EACR,eAIC,EACD,QAAQ,EACR,MAAM,GACP,EAAE,eAAe,GAAG,SAAS,CA0I7B;yBA1Je,OAAO"}
1
+ {"version":3,"file":"Tooltip.web.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,UAAU,uBAAwB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;IACvF,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE;QACJ,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QAC1B,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;KAC1B,CAAC;CACH;AAGD,KAAK,eAAe,GAAG,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG;IACxD,QAAQ,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACrD,CAAC;AAEF,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,QAAgB,EAChB,OAAO,EACP,eAAe,EACf,SAAS,EACT,QAAQ,EACR,eAIC,EACD,QAAQ,EACR,MAAM,GACP,EAAE,eAAe,GAAG,SAAS,CA2I7B;yBA3Je,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"InputTextContainer.web.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAkBpE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAE5E"}
1
+ {"version":3,"file":"InputTextContainer.web.d.ts","sourceRoot":"","sources":["../../../../src/forms/InputText/InputTextContainer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAE5E"}
@@ -6,7 +6,16 @@
6
6
  .kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
- .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
9
+ .InputTextContainer-module_inputTextContainer__gzH8Q > * {
10
+ transition: 200ms ease-in-out;
11
+ border-radius: 4px;
12
+ }
13
+
14
+ .InputTextContainer-module_inputTextContainer__gzH8Q > *:hover,
15
+ .kitt-hover .InputTextContainer-module_inputTextContainer__gzH8Q > * {
16
+ background-color: #f7f4ee;
17
+ }
18
+
10
19
  /* Overlay animation styles - uses CSS variables for theme values */
11
20
  .FullscreenModalAnimation-module_overlay-enter__L1J1X {
12
21
  opacity: 0;
@@ -4238,29 +4238,6 @@ function useStaticBottomSheet(Content) {
4238
4238
  };
4239
4239
  }
4240
4240
 
4241
- function isDocumentBodyAvailable(body) {
4242
- return !!body;
4243
- }
4244
-
4245
- /**
4246
- * Returns document.body if it exists, or null otherwise.
4247
- * This is useful when document.body might not be available, such as when document.write() is called
4248
- * which destroys the DOM and causes React portals to fail with "Target container is not a DOM element" error.
4249
- */
4250
- function getDocumentBodyIfExists() {
4251
- // document.body can be null when document.write() is called
4252
- const body = typeof document !== 'undefined' ? document.body : null;
4253
- return isDocumentBodyAvailable(body) ? body : null;
4254
- }
4255
-
4256
- function Portal({
4257
- children
4258
- }) {
4259
- const container = getDocumentBodyIfExists();
4260
- if (!container) return null;
4261
- return /*#__PURE__*/reactDom.createPortal(children, container);
4262
- }
4263
-
4264
4241
  function useBlockBodyScroll(shouldBlockScroll, isInitialRender) {
4265
4242
  react.useEffect(() => {
4266
4243
  if (shouldBlockScroll) {
@@ -4283,9 +4260,7 @@ function ModalBehaviourPortal({
4283
4260
  const isInitialRenderRef = react.useRef(true);
4284
4261
  useBlockBodyScroll(!!visible, isInitialRenderRef.current);
4285
4262
  isInitialRenderRef.current = false;
4286
- return children ? /*#__PURE__*/jsxRuntime.jsx(Portal, {
4287
- children: children
4288
- }) : null;
4263
+ return children ? /*#__PURE__*/reactDom.createPortal(children, document.body) : null;
4289
4264
  }
4290
4265
 
4291
4266
  const OnCloseContext = /*#__PURE__*/react.createContext(() => {});
@@ -5423,10 +5398,11 @@ function InputPressable({
5423
5398
  });
5424
5399
  }
5425
5400
 
5426
- const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5401
+ const styles$3 = {"inputTextContainer":"InputTextContainer-module_inputTextContainer__gzH8Q"};
5402
+
5427
5403
  function InputTextContainer(props) {
5428
5404
  return /*#__PURE__*/jsxRuntime.jsx("div", {
5429
- className: inputTextContainer,
5405
+ className: styles$3.inputTextContainer,
5430
5406
  ...props
5431
5407
  });
5432
5408
  }
@@ -11781,89 +11757,87 @@ function Picker({
11781
11757
  disabled,
11782
11758
  ...restToggleProps
11783
11759
  })
11784
- }), /*#__PURE__*/jsxRuntime.jsx(Portal, {
11760
+ }), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/jsxRuntime.jsx(View, {
11761
+ ref: refMemo,
11762
+ testID: testID,
11763
+ ...menuProps,
11764
+ position: strategy,
11765
+ top: 0,
11766
+ left: 0,
11767
+ width: isItemsWidthFixed ? '100%' : itemsWidth,
11768
+ maxWidth: isItemsWidthFixed ? 'kitt.picker.maxWidthFixed' : undefined,
11769
+ zIndex: 1,
11770
+ _web: {
11771
+ style: {
11772
+ transform: `translate3d(${tooltipX}px, ${tooltipY}px, 0)`,
11773
+ visibility: isOpen ? 'visible' : 'hidden',
11774
+ transitionDuration: '300ms',
11775
+ transitionProperty: 'opacity, padding',
11776
+ transitionTimingFunction: 'ease-in-out'
11777
+ }
11778
+ },
11785
11779
  children: /*#__PURE__*/jsxRuntime.jsx(View, {
11786
- ref: refMemo,
11787
- testID: testID,
11788
- ...menuProps,
11789
- position: strategy,
11790
- top: 0,
11791
- left: 0,
11792
- width: isItemsWidthFixed ? '100%' : itemsWidth,
11793
- maxWidth: isItemsWidthFixed ? 'kitt.picker.maxWidthFixed' : undefined,
11794
- zIndex: 1,
11780
+ opacity: isOpen ? 1 : 0,
11781
+ backgroundColor: "kitt.picker.web.optionsContainer.backgroundColor",
11782
+ borderRadius: "kitt.picker.web.optionsContainer.borderRadius",
11783
+ shadow: "kitt.picker.web.optionsContainer.shadow",
11795
11784
  _web: {
11796
11785
  style: {
11797
- transform: `translate3d(${tooltipX}px, ${tooltipY}px, 0)`,
11786
+ transform: `translateY(${isOpen ? 0 : 8})`,
11798
11787
  visibility: isOpen ? 'visible' : 'hidden',
11799
11788
  transitionDuration: '300ms',
11800
- transitionProperty: 'opacity, padding',
11801
11789
  transitionTimingFunction: 'ease-in-out'
11802
11790
  }
11803
11791
  },
11804
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
11805
- opacity: isOpen ? 1 : 0,
11806
- backgroundColor: "kitt.picker.web.optionsContainer.backgroundColor",
11807
- borderRadius: "kitt.picker.web.optionsContainer.borderRadius",
11808
- shadow: "kitt.picker.web.optionsContainer.shadow",
11809
- _web: {
11810
- style: {
11811
- transform: `translateY(${isOpen ? 0 : 8})`,
11812
- visibility: isOpen ? 'visible' : 'hidden',
11813
- transitionDuration: '300ms',
11814
- transitionTimingFunction: 'ease-in-out'
11815
- }
11816
- },
11817
- children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11818
- unmountOnExit: true,
11819
- nodeRef: nodeRef,
11820
- timeout: 300,
11821
- in: isOpen,
11822
- classNames: pickerClassNames,
11823
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
11824
- ref: nodeRef,
11825
- paddingY: "kitt.2",
11826
- children: childrenArray.map((child, index) => {
11827
- const currentValue = items[index];
11828
- if (currentValue === undefined) {
11829
- throw new Error(`Picker: No value found for item at index ${index}`);
11792
+ children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11793
+ unmountOnExit: true,
11794
+ nodeRef: nodeRef,
11795
+ timeout: 300,
11796
+ in: isOpen,
11797
+ classNames: pickerClassNames,
11798
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
11799
+ ref: nodeRef,
11800
+ paddingY: "kitt.2",
11801
+ children: childrenArray.map((child, index) => {
11802
+ const currentValue = items[index];
11803
+ if (currentValue === undefined) {
11804
+ throw new Error(`Picker: No value found for item at index ${index}`);
11805
+ }
11806
+ const {
11807
+ onClick,
11808
+ 'aria-selected': ariaSelected,
11809
+ ...itemProps
11810
+ } = getItemProps({
11811
+ item: currentValue,
11812
+ index,
11813
+ disabled
11814
+ });
11815
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11816
+ ...itemProps,
11817
+ accessibilityState: {
11818
+ selected: ariaSelected
11819
+ },
11820
+ onPress: onClick,
11821
+ children: ({
11822
+ isHovered,
11823
+ isFocused,
11824
+ isPressed
11825
+ }) => {
11826
+ return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11827
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11828
+ isHighlighted: highlightedIndex === index,
11829
+ isHovered: isHovered,
11830
+ isFocused: isFocused,
11831
+ isPressed: isPressed,
11832
+ children: child
11833
+ });
11830
11834
  }
11831
- const {
11832
- onClick,
11833
- 'aria-selected': ariaSelected,
11834
- ...itemProps
11835
- } = getItemProps({
11836
- item: currentValue,
11837
- index,
11838
- disabled
11839
- });
11840
- return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11841
- ...itemProps,
11842
- accessibilityState: {
11843
- selected: ariaSelected
11844
- },
11845
- onPress: onClick,
11846
- children: ({
11847
- isHovered,
11848
- isFocused,
11849
- isPressed
11850
- }) => {
11851
- return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11852
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11853
- isHighlighted: highlightedIndex === index,
11854
- isHovered: isHovered,
11855
- isFocused: isFocused,
11856
- isPressed: isPressed,
11857
- children: child
11858
- });
11859
- }
11860
- }, itemProps.id);
11861
- })
11835
+ }, itemProps.id);
11862
11836
  })
11863
11837
  })
11864
11838
  })
11865
11839
  })
11866
- })]
11840
+ }), document.body)]
11867
11841
  });
11868
11842
  }
11869
11843
  Picker.Option = PickerOption;
@@ -13327,69 +13301,67 @@ function Tooltip({
13327
13301
  onFocus: handleToggleTooltip,
13328
13302
  onBlur: handleToggleTooltip,
13329
13303
  width: '100%'
13330
- }), /*#__PURE__*/jsxRuntime.jsx(Portal, {
13331
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
13332
- ref: refs.setFloating,
13333
- "aria-hidden": !isVisible,
13334
- paddingX: {
13335
- base: 'kitt.4',
13336
- small: 0
13337
- },
13338
- width: {
13339
- base: '100%',
13340
- small: 'max-content'
13341
- },
13342
- maxWidth: {
13343
- base: '100%',
13344
- small: 'kitt.tooltip.maxWidth'
13345
- },
13346
- opacity: isVisible ? 'kitt.tooltip.opacity' : 0,
13347
- paddingTop: placement === 'bottom' ? currentFloatingPadding : undefined,
13348
- paddingBottom: placement === 'top' ? currentFloatingPadding : undefined,
13304
+ }), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/jsxRuntime.jsx(View, {
13305
+ ref: refs.setFloating,
13306
+ "aria-hidden": !isVisible,
13307
+ paddingX: {
13308
+ base: 'kitt.4',
13309
+ small: 0
13310
+ },
13311
+ width: {
13312
+ base: '100%',
13313
+ small: 'max-content'
13314
+ },
13315
+ maxWidth: {
13316
+ base: '100%',
13317
+ small: 'kitt.tooltip.maxWidth'
13318
+ },
13319
+ opacity: isVisible ? 'kitt.tooltip.opacity' : 0,
13320
+ paddingTop: placement === 'bottom' ? currentFloatingPadding : undefined,
13321
+ paddingBottom: placement === 'top' ? currentFloatingPadding : undefined,
13322
+ style: {
13323
+ pointerEvents: isVisible ? 'auto' : 'none'
13324
+ },
13325
+ position: strategy,
13326
+ zIndex: zIndex,
13327
+ top: 0,
13328
+ left: 0,
13329
+ _web: {
13349
13330
  style: {
13350
- pointerEvents: isVisible ? 'auto' : 'none'
13351
- },
13352
- position: strategy,
13353
- zIndex: zIndex,
13354
- top: 0,
13355
- left: 0,
13331
+ transform: `translate3d(${isBase && !fullWidth ? `0, ${tooltipY}px, 0` : `${tooltipX}px, ${tooltipY}px, 0`})`,
13332
+ visibility: isVisible ? 'visible' : 'hidden',
13333
+ transitionDuration,
13334
+ transitionProperty: theme.kitt.tooltip.transition[themePart].property,
13335
+ transitionTimingFunction
13336
+ }
13337
+ },
13338
+ onTouchStart: handleToggleTooltip,
13339
+ onTouchEnd: handleToggleTooltip,
13340
+ onMouseEnter: handleToggleTooltip,
13341
+ onMouseLeave: handleToggleTooltip,
13342
+ children: /*#__PURE__*/jsxRuntime.jsxs(View, {
13356
13343
  _web: {
13357
13344
  style: {
13358
- transform: `translate3d(${isBase && !fullWidth ? `0, ${tooltipY}px, 0` : `${tooltipX}px, ${tooltipY}px, 0`})`,
13359
- visibility: isVisible ? 'visible' : 'hidden',
13360
- transitionDuration,
13361
- transitionProperty: theme.kitt.tooltip.transition[themePart].property,
13362
- transitionTimingFunction
13345
+ transform: `scale(${isVisible ? 1 : 0.8})`,
13346
+ transitionDuration: isVisible ? '0' : transitionDuration,
13347
+ transitionProperty: 'all',
13348
+ transitionTimingFunction,
13349
+ transformOrigin
13363
13350
  }
13364
13351
  },
13365
- onTouchStart: handleToggleTooltip,
13366
- onTouchEnd: handleToggleTooltip,
13367
- onMouseEnter: handleToggleTooltip,
13368
- onMouseLeave: handleToggleTooltip,
13369
- children: /*#__PURE__*/jsxRuntime.jsxs(View, {
13370
- _web: {
13371
- style: {
13372
- transform: `scale(${isVisible ? 1 : 0.8})`,
13373
- transitionDuration: isVisible ? '0' : transitionDuration,
13374
- transitionProperty: 'all',
13375
- transitionTimingFunction,
13376
- transformOrigin
13377
- }
13378
- },
13379
- children: [shouldRenderArrow && placement === 'bottom' ? /*#__PURE__*/jsxRuntime.jsx(Arrow, {
13380
- ref: arrowRef,
13381
- position: "bottom",
13382
- ...sharedArrowProps
13383
- }) : null, /*#__PURE__*/jsxRuntime.jsx(TooltipContent, {
13384
- children: content
13385
- }), shouldRenderArrow && placement === 'top' ? /*#__PURE__*/jsxRuntime.jsx(Arrow, {
13386
- ref: arrowRef,
13387
- position: "top",
13388
- ...sharedArrowProps
13389
- }) : null]
13390
- })
13352
+ children: [shouldRenderArrow && placement === 'bottom' ? /*#__PURE__*/jsxRuntime.jsx(Arrow, {
13353
+ ref: arrowRef,
13354
+ position: "bottom",
13355
+ ...sharedArrowProps
13356
+ }) : null, /*#__PURE__*/jsxRuntime.jsx(TooltipContent, {
13357
+ children: content
13358
+ }), shouldRenderArrow && placement === 'top' ? /*#__PURE__*/jsxRuntime.jsx(Arrow, {
13359
+ ref: arrowRef,
13360
+ position: "top",
13361
+ ...sharedArrowProps
13362
+ }) : null]
13391
13363
  })
13392
- })]
13364
+ }), document.body)]
13393
13365
  });
13394
13366
  }
13395
13367
  Tooltip.Arrow = Arrow;