@cupra/ui-react 2.0.0-canary.32 → 2.0.0-canary.34
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/cjs/components/SecondaryNavigation/SecondaryNavigation.cjs +1 -1
- package/dist/esm/components/SecondaryNavigation/SecondaryNavigation.js +8 -8
- package/dist/types/components/PickerItem/stories/CupraDiagonal.stories.d.ts +2 -0
- package/dist/types/components/SecondaryNavigation/stories/CupraDiagonal.stories.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react");require("@cupra/ui-kit/react/ds-secondary-navigation");require("@cupra/ui-kit/react/utils/breakpoints");const d=require("../../hooks/useHandleEvent.cjs");function s(e){const{className:n,children:r,onSelect:o,...i}=e,{ref:c}=d.useHandleEvent({"ds-secondary-navigation:select":o});return t.jsx("ds-secondary-navigation-react",{ref:c,class:n,...i,children:r})}const l=({children:e,...n})=>t.jsx("a",{slot:"items",...n,children:e}),u=({children:e})=>t.jsx(t.Fragment,{children:a.Children.map(e,(n,r)=>t.jsx("div",{slot:"actions",children:n},r))});s.Item=l;s.Actions=u;exports.SecondaryNavigation=s;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { Children as m } from "react";
|
|
2
3
|
import "@cupra/ui-kit/react/ds-secondary-navigation";
|
|
3
4
|
import "@cupra/ui-kit/react/utils/breakpoints";
|
|
4
|
-
import "
|
|
5
|
-
import { useHandleEvent as a } from "../../hooks/useHandleEvent.js";
|
|
5
|
+
import { useHandleEvent as d } from "../../hooks/useHandleEvent.js";
|
|
6
6
|
function e(t) {
|
|
7
|
-
const { className:
|
|
7
|
+
const { className: n, children: r, onSelect: s, ...i } = t, { ref: c } = d({
|
|
8
8
|
"ds-secondary-navigation:select": s
|
|
9
9
|
});
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ o("ds-secondary-navigation-react", { ref: c, class: n, ...i, children: r });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
e.Item =
|
|
14
|
-
e.Actions =
|
|
12
|
+
const l = ({ children: t, ...n }) => /* @__PURE__ */ o("a", { slot: "items", ...n, children: t }), p = ({ children: t }) => /* @__PURE__ */ o(a, { children: m.map(t, (n, r) => /* @__PURE__ */ o("div", { slot: "actions", children: n }, r)) });
|
|
13
|
+
e.Item = l;
|
|
14
|
+
e.Actions = p;
|
|
15
15
|
export {
|
|
16
16
|
e as SecondaryNavigation
|
|
17
17
|
};
|
|
@@ -6,7 +6,9 @@ export declare const WithBorder: Story;
|
|
|
6
6
|
export declare const WithoutBorder: Story;
|
|
7
7
|
export declare const SmallWithBorder: Story;
|
|
8
8
|
export declare const MediumWithBorder: Story;
|
|
9
|
+
export declare const LargeWithBorder: Story;
|
|
9
10
|
export declare const SmallWithoutBorder: Story;
|
|
10
11
|
export declare const MediumWithoutBorder: Story;
|
|
12
|
+
export declare const LargeWithoutBorder: Story;
|
|
11
13
|
export declare const ResponsiveSize: Story;
|
|
12
14
|
export declare const Selected: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-react",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.34",
|
|
4
4
|
"description": "React components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">= 18.3.1 < 20",
|
|
53
53
|
"react-dom": ">= 18.3.1 < 20",
|
|
54
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
54
|
+
"@cupra/ui-kit": "2.0.0-canary.27",
|
|
55
55
|
"typescript": ">=5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"storybook": "^8.6.15",
|
|
75
75
|
"typescript": "^5.8.2",
|
|
76
76
|
"vite": "^6.4.1",
|
|
77
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
77
|
+
"@cupra/ui-kit": "2.0.0-canary.27"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "rm -rf dist && pnpm --filter @cupra/ui-kit build:react && tsc --declaration --emitDeclarationOnly && BUILD_FORMAT=esm vite build --emptyOutDir false && BUILD_FORMAT=cjs vite build --emptyOutDir false",
|