@nattstack/ui 0.0.55 → 0.0.56
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/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +17 -15
- package/dist/components/style.css +10 -2
- package/package.json +1 -1
|
@@ -392,6 +392,7 @@ declare const TEXTAREA_CLASS_NAME: {
|
|
|
392
392
|
//#region src/components/tooltip/tooltip.d.ts
|
|
393
393
|
interface TooltipProps extends Omit<Tooltip$1.Root.Props, "disabled"> {
|
|
394
394
|
isDisabled?: Tooltip$1.Root.Props["disabled"];
|
|
395
|
+
isDisableHoverablePopup?: Tooltip$1.Root.Props["disableHoverablePopup"];
|
|
395
396
|
}
|
|
396
397
|
declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
397
398
|
//#endregion
|
package/dist/components/index.js
CHANGED
|
@@ -984,11 +984,11 @@ const TEXTAREA_CLASS_NAME = {
|
|
|
984
984
|
//#endregion
|
|
985
985
|
//#region src/components/tooltip/tooltip.tsx
|
|
986
986
|
function Tooltip(props) {
|
|
987
|
-
const { isDisabled = false, ...rest } = props;
|
|
987
|
+
const { isDisabled = false, isDisableHoverablePopup = true, ...rest } = props;
|
|
988
988
|
return /* @__PURE__ */ jsx(Tooltip$1.Root, {
|
|
989
989
|
"data-slot": "tooltip",
|
|
990
990
|
disabled: isDisabled,
|
|
991
|
-
disableHoverablePopup:
|
|
991
|
+
disableHoverablePopup: isDisableHoverablePopup,
|
|
992
992
|
...rest
|
|
993
993
|
});
|
|
994
994
|
}
|
|
@@ -996,28 +996,30 @@ function Tooltip(props) {
|
|
|
996
996
|
//#region src/components/tooltip/tooltip-content.module.css
|
|
997
997
|
var tooltip_content_module_default = {
|
|
998
998
|
"tooltip_content": "tooltip-content-module_tooltip_content_j-Z8kW",
|
|
999
|
-
"
|
|
999
|
+
"tooltip_content_portal": "tooltip-content-module_tooltip_content_portal_j-Z8kW"
|
|
1000
1000
|
};
|
|
1001
1001
|
//#endregion
|
|
1002
1002
|
//#region src/components/tooltip/tooltip-content.tsx
|
|
1003
1003
|
function TooltipContent(props) {
|
|
1004
1004
|
const DEFAULT_SIDE_OFFSET = 4;
|
|
1005
|
-
const { children, className: customClassName = "", side = "top", sideOffset = DEFAULT_SIDE_OFFSET, ...rest } = props;
|
|
1005
|
+
const { children = "", className: customClassName = "", side = "top", sideOffset = DEFAULT_SIDE_OFFSET, ...rest } = props;
|
|
1006
1006
|
const combinedClassName = normalizeWhitespace(`
|
|
1007
1007
|
${TOOLTIP_CONTENT_CLASS_NAME.BASE}
|
|
1008
1008
|
${customClassName}
|
|
1009
1009
|
`);
|
|
1010
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Portal, {
|
|
1011
|
-
className: tooltip_content_module_default.
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1010
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, {
|
|
1011
|
+
className: tooltip_content_module_default.tooltip_content_portal,
|
|
1012
|
+
children: /* @__PURE__ */ jsxs(Tooltip$1.Positioner, {
|
|
1013
|
+
side,
|
|
1014
|
+
sideOffset,
|
|
1015
|
+
children: [/* @__PURE__ */ jsx(Tooltip$1.Popup, {
|
|
1016
|
+
className: combinedClassName,
|
|
1017
|
+
"data-slot": "tooltip-content",
|
|
1018
|
+
...rest,
|
|
1019
|
+
children
|
|
1020
|
+
}), /* @__PURE__ */ jsx(Tooltip$1.Arrow, {})]
|
|
1021
|
+
})
|
|
1022
|
+
});
|
|
1021
1023
|
}
|
|
1022
1024
|
const TOOLTIP_CONTENT_CLASS_NAME = { BASE: tooltip_content_module_default.tooltip_content };
|
|
1023
1025
|
//#endregion
|
|
@@ -956,19 +956,27 @@
|
|
|
956
956
|
padding: 12px !important;
|
|
957
957
|
}
|
|
958
958
|
.tooltip-content-module_tooltip_content_j-Z8kW {
|
|
959
|
+
--scale: .975;
|
|
959
960
|
background-color: var(--color-gray-dark-1);
|
|
960
961
|
color: var(--color-gray-dark-12);
|
|
962
|
+
transform-origin: var(--transform-origin);
|
|
961
963
|
border-radius: 8px;
|
|
962
964
|
padding: 4px 8px;
|
|
963
965
|
font-size: 13px;
|
|
964
966
|
font-weight: 500;
|
|
967
|
+
transition-property: opacity, scale, translate;
|
|
968
|
+
transition-duration: .15s;
|
|
965
969
|
}
|
|
966
970
|
|
|
967
|
-
.tooltip-content-
|
|
968
|
-
isolation: isolate;
|
|
971
|
+
.tooltip-content-module_tooltip_content_portal_j-Z8kW {
|
|
969
972
|
z-index: 50;
|
|
970
973
|
}
|
|
971
974
|
|
|
975
|
+
.tooltip-content-module_tooltip_content_j-Z8kW[data-ending-style], .tooltip-content-module_tooltip_content_j-Z8kW[data-starting-style] {
|
|
976
|
+
opacity: 0;
|
|
977
|
+
scale: var(--scale);
|
|
978
|
+
}
|
|
979
|
+
|
|
972
980
|
.dark .tooltip-content-module_tooltip_content_j-Z8kW {
|
|
973
981
|
background-color: var(--color-gray-light-1);
|
|
974
982
|
color: var(--color-gray-light-12);
|