@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 +6 -4
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +10 -1
- package/dist/index-node-22.17.cjs.web.js +127 -155
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.web.css +10 -1
- package/dist/index-node-22.17.es.web.mjs +127 -155
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.web.js +124 -151
- package/dist/index.es.web.js.map +1 -1
- package/dist/styles.css +10 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/Portal/Portal.d.ts +0 -8
- package/dist/definitions/Portal/Portal.d.ts.map +0 -1
- package/dist/definitions/Portal/Portal.web.d.ts +0 -4
- package/dist/definitions/Portal/Portal.web.d.ts.map +0 -1
- package/dist/definitions/Portal/utils/getDocumentBodyIfExists.web.d.ts +0 -7
- package/dist/definitions/Portal/utils/getDocumentBodyIfExists.web.d.ts.map +0 -1
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.
|
|
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
|
-
*
|
|
12
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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;
|
|
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":"
|
|
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
|
-
.
|
|
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__*/
|
|
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
|
|
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(
|
|
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
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
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: `
|
|
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(
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
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
|
-
|
|
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(
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13339
|
-
|
|
13340
|
-
|
|
13341
|
-
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
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
|
-
|
|
13351
|
-
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
|
|
13355
|
-
|
|
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: `
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13345
|
+
transform: `scale(${isVisible ? 1 : 0.8})`,
|
|
13346
|
+
transitionDuration: isVisible ? '0' : transitionDuration,
|
|
13347
|
+
transitionProperty: 'all',
|
|
13348
|
+
transitionTimingFunction,
|
|
13349
|
+
transformOrigin
|
|
13363
13350
|
}
|
|
13364
13351
|
},
|
|
13365
|
-
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
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;
|