@cupra/ui-react 1.0.0-canary.25 → 1.0.0-canary.26
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.
|
@@ -6,14 +6,26 @@ export type TooltipProps = DsTooltipAttrs & {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export type CloseButtonProps = Omit<IconButtonProps, 'icon-name'>;
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
children
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
export declare const Tooltip: {
|
|
10
|
+
({ children, ...restProps }: TooltipProps): ReactElement;
|
|
11
|
+
Header: {
|
|
12
|
+
({ children, ...props }: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
} & HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
CloseButton: {
|
|
18
|
+
(props: CloseButtonProps): ReactElement;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
Content: {
|
|
22
|
+
({ children, ...props }: {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
} & HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
Img: {
|
|
28
|
+
({ alt, ...props }: ImgHTMLAttributes<HTMLImageElement>): ReactElement;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import a from "../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js";
|
|
3
3
|
import "@cupra/ui-kit/react/ds-tooltip";
|
|
4
|
-
import { IconButton as
|
|
5
|
-
const
|
|
4
|
+
import { IconButton as m } from "../IconButton/IconButton.js";
|
|
5
|
+
const p = a.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
function s({ children: t, ...n }) {
|
|
19
|
-
return /* @__PURE__ */ o("div", { slot: "content", ...n, children: t });
|
|
20
|
-
}
|
|
21
|
-
function l(t) {
|
|
22
|
-
return /* @__PURE__ */ o("img", { slot: "image", ...t });
|
|
23
|
-
}
|
|
24
|
-
r.Header = m;
|
|
25
|
-
r.CloseButton = u;
|
|
26
|
-
r.Content = s;
|
|
27
|
-
r.Img = l;
|
|
8
|
+
`, n = ({ children: t, ...o }) => /* @__PURE__ */ e("ds-tooltip-react", { ...o, children: /* @__PURE__ */ e(p, { children: t }) }), r = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "header", ...o, children: t }), i = (t) => /* @__PURE__ */ e(m, { "icon-name": "cross", ...t }), s = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "content", ...o, children: t }), l = ({ alt: t, ...o }) => /* @__PURE__ */ e("img", { alt: t ?? "", slot: "image", ...o });
|
|
9
|
+
n.Header = r;
|
|
10
|
+
n.CloseButton = i;
|
|
11
|
+
n.Content = s;
|
|
12
|
+
n.Img = l;
|
|
13
|
+
r.displayName = "Tooltip.Header";
|
|
14
|
+
i.displayName = "Tooltip.CloseButton";
|
|
15
|
+
s.displayName = "Tooltip.Content";
|
|
16
|
+
l.displayName = "Tooltip.Img";
|
|
28
17
|
export {
|
|
29
|
-
|
|
18
|
+
n as Tooltip
|
|
30
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-react",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.26",
|
|
4
4
|
"description": "React components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">= 18.3.1 < 20",
|
|
46
46
|
"react-dom": ">= 18.3.1 < 20",
|
|
47
|
-
"@cupra/ui-kit": "1.0.0-canary.
|
|
47
|
+
"@cupra/ui-kit": "1.0.0-canary.16"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"styled-components": "^6.1.16"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"storybook": "^8.6.14",
|
|
67
67
|
"typescript": "^5.8.2",
|
|
68
68
|
"vite": "^6.4.1",
|
|
69
|
-
"@cupra/ui-kit": "1.0.0-canary.
|
|
69
|
+
"@cupra/ui-kit": "1.0.0-canary.16"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "rm -rf dist && tsc --declaration --emitDeclarationOnly && vite build --emptyOutDir false",
|