@cupra/ui-react 1.0.0-canary.25 → 1.0.0-canary.27

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 function Tooltip({ children, ...restProps }: TooltipProps): ReactElement;
10
- export declare namespace Tooltip {
11
- var Header: ({ children, ...props }: {
12
- children?: ReactNode;
13
- } & HTMLAttributes<HTMLDivElement>) => JSX.Element;
14
- var CloseButton: (props: CloseButtonProps) => ReactElement;
15
- var Content: ({ children, ...props }: {
16
- children?: ReactNode;
17
- } & HTMLAttributes<HTMLDivElement>) => JSX.Element;
18
- var Img: (props: ImgHTMLAttributes<HTMLImageElement>) => ReactElement;
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,15 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import e 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";
1
+ import { jsx as e } from "react/jsx-runtime";
3
2
  import "@cupra/ui-kit/react/ds-tooltip";
4
- import { IconButton as i } from "../IconButton/IconButton.js";
5
- const c = e.div`
6
- display: flex;
7
- align-items: center;
8
- `;
9
- function r({ children: t, ...n }) {
10
- return /* @__PURE__ */ o("ds-tooltip-react", { ...n, children: /* @__PURE__ */ o(c, { children: t }) });
11
- }
12
- function m({ children: t, ...n }) {
13
- return /* @__PURE__ */ o("div", { slot: "header", ...n, children: t });
14
- }
15
- function u(t) {
16
- return /* @__PURE__ */ o(i, { "icon-name": "cross", ...t });
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;
3
+ import { IconButton as a } from "../IconButton/IconButton.js";
4
+ const n = ({ children: t, ...o }) => /* @__PURE__ */ e("ds-tooltip-react", { ...o, children: t }), r = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "header", ...o, children: t }), s = (t) => /* @__PURE__ */ e(a, { slot: "close-button", "icon-name": "cross", ...t }), l = ({ children: t, ...o }) => /* @__PURE__ */ e("div", { slot: "content", ...o, children: t }), i = ({ alt: t, ...o }) => /* @__PURE__ */ e("img", { alt: t ?? "", slot: "image", ...o });
5
+ n.Header = r;
6
+ n.CloseButton = s;
7
+ n.Content = l;
8
+ n.Img = i;
9
+ r.displayName = "Tooltip.Header";
10
+ s.displayName = "Tooltip.CloseButton";
11
+ l.displayName = "Tooltip.Content";
12
+ i.displayName = "Tooltip.Img";
28
13
  export {
29
- r as Tooltip
14
+ n as Tooltip
30
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-react",
3
- "version": "1.0.0-canary.25",
3
+ "version": "1.0.0-canary.27",
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.15"
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.15"
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",