@primer/styled-react 0.0.0-20251003235425 → 0.0.0-20251004000923
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type TooltipProps as PrimerTooltipProps } from '@primer/react/deprecated';
|
|
2
2
|
import { type SxProp } from '../../sx';
|
|
3
3
|
import { type PropsWithChildren } from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type TooltipProps = PropsWithChildren<PrimerTooltipProps & SxProp & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}>;
|
|
7
|
+
declare const TooltipImpl: import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
declare const Tooltip: typeof TooltipImpl & {
|
|
7
9
|
alignments: string[];
|
|
8
10
|
directions: string[];
|
|
9
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/deprecated/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,UAAU,CAAA;AACxC,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAC,CAAA;AAQ7F,QAAA,MAAM,WAAW,uHAEf,CAAA;AAEF,QAAA,MAAM,OAAO,EAAkB,OAAO,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAMD,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
package/dist/deprecated.js
CHANGED
|
@@ -86,7 +86,7 @@ const StyledTooltip = styled(Tooltip$1).withConfig({
|
|
|
86
86
|
displayName: "Tooltip__StyledTooltip",
|
|
87
87
|
componentId: "sc-145jcib-0"
|
|
88
88
|
})(["", ""], sx);
|
|
89
|
-
const
|
|
89
|
+
const TooltipImpl = /*#__PURE__*/forwardRef(function Tooltip({
|
|
90
90
|
as,
|
|
91
91
|
...props
|
|
92
92
|
}, ref) {
|
|
@@ -98,6 +98,11 @@ const Tooltip = /*#__PURE__*/forwardRef(function Tooltip({
|
|
|
98
98
|
ref: ref
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
+
const Tooltip = TooltipImpl;
|
|
102
|
+
|
|
103
|
+
// Preserve static properties from the original component
|
|
104
|
+
Tooltip.alignments = Tooltip$1.alignments;
|
|
105
|
+
Tooltip.directions = Tooltip$1.directions;
|
|
101
106
|
|
|
102
107
|
const ActionListImpl = /*#__PURE__*/forwardRef(function ActionList(props, ref) {
|
|
103
108
|
return /*#__PURE__*/jsx(Box, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251004000923",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20251004000923",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20251004000923",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|