@ttoss/ui 5.5.1 → 5.5.3
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/esm/index.js +8 -11
- package/dist/index.d.ts +7 -3
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -625,7 +625,6 @@ var TOOLTIP_LABEL = "tooltip";
|
|
|
625
625
|
var Label = ({
|
|
626
626
|
children,
|
|
627
627
|
tooltip,
|
|
628
|
-
onTooltipClick,
|
|
629
628
|
sx,
|
|
630
629
|
...props
|
|
631
630
|
}) => {
|
|
@@ -648,15 +647,15 @@ var Label = ({
|
|
|
648
647
|
cursor: "pointer"
|
|
649
648
|
},
|
|
650
649
|
"aria-label": TOOLTIP_LABEL,
|
|
651
|
-
onClick: onTooltipClick,
|
|
652
650
|
children: [/* @__PURE__ */jsx14(Icon6, {
|
|
653
651
|
inline: true,
|
|
654
652
|
icon: "fluent:info-24-regular"
|
|
655
653
|
}), /* @__PURE__ */jsx14(Tooltip, {
|
|
656
654
|
id: tooltipId,
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
655
|
+
openOnClick: tooltip.openOnClick,
|
|
656
|
+
clickable: tooltip.clickable,
|
|
657
|
+
place: tooltip.place,
|
|
658
|
+
children: tooltip.render
|
|
660
659
|
})]
|
|
661
660
|
})]
|
|
662
661
|
});
|
|
@@ -983,26 +982,24 @@ var Tooltip = props => {
|
|
|
983
982
|
const className = "tooltip-component";
|
|
984
983
|
return /* @__PURE__ */jsx20(Box, {
|
|
985
984
|
sx: ({
|
|
986
|
-
colors,
|
|
987
985
|
fonts
|
|
988
986
|
}) => {
|
|
989
|
-
const themeColors = colors;
|
|
990
987
|
return {
|
|
991
988
|
".tooltip-component": {
|
|
992
989
|
fontFamily: fonts?.body,
|
|
993
|
-
backgroundColor:
|
|
990
|
+
backgroundColor: "input.background.secondary.default",
|
|
994
991
|
paddingY: "2",
|
|
995
992
|
paddingX: "3",
|
|
996
|
-
color:
|
|
993
|
+
color: "feedback.text.secondary.default",
|
|
997
994
|
border: "sm",
|
|
998
995
|
borderRadius: "xl",
|
|
999
|
-
borderColor:
|
|
996
|
+
borderColor: "feedback.border.secondary.default",
|
|
1000
997
|
zIndex: "tooltip",
|
|
1001
998
|
opacity: "1",
|
|
1002
999
|
lineHeight: "shorter",
|
|
1003
1000
|
letterSpacing: "wide",
|
|
1004
1001
|
a: {
|
|
1005
|
-
color: "
|
|
1002
|
+
color: "feedback.text.secondary.default",
|
|
1006
1003
|
fontFamily: "body",
|
|
1007
1004
|
textDecorationLine: "underline",
|
|
1008
1005
|
lineHeight: "normal"
|
package/dist/index.d.ts
CHANGED
|
@@ -80,10 +80,14 @@ type InputPasswordProps = Omit<InputProps, 'trailingIcon' | 'onTrailingIconClick
|
|
|
80
80
|
declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
81
81
|
|
|
82
82
|
type LabelProps = LabelProps$1 & {
|
|
83
|
-
tooltip?:
|
|
84
|
-
|
|
83
|
+
tooltip?: {
|
|
84
|
+
render: string | React.ReactNode;
|
|
85
|
+
place: 'top' | 'right' | 'bottom' | 'left';
|
|
86
|
+
openOnClick?: boolean;
|
|
87
|
+
clickable?: boolean;
|
|
88
|
+
};
|
|
85
89
|
};
|
|
86
|
-
declare const Label: ({ children, tooltip,
|
|
90
|
+
declare const Label: ({ children, tooltip, sx, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
87
91
|
|
|
88
92
|
type LinkProps = LinkProps$1 & {
|
|
89
93
|
quiet?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-select": "^5.9.0",
|
|
29
29
|
"react-tooltip": "^5.28.0",
|
|
30
30
|
"theme-ui": "^0.17.1",
|
|
31
|
-
"@ttoss/theme": "^2.5.
|
|
31
|
+
"@ttoss/theme": "^2.5.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@emotion/react": "^11",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"react": "^19.0.0",
|
|
45
45
|
"tsup": "^8.3.5",
|
|
46
46
|
"@ttoss/config": "^1.35.2",
|
|
47
|
-
"@ttoss/
|
|
48
|
-
"@ttoss/
|
|
47
|
+
"@ttoss/test-utils": "^2.1.22",
|
|
48
|
+
"@ttoss/react-icons": "^0.4.9"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"React",
|