@cupra/ui-react 2.0.0-canary.33 → 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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime");require("@cupra/ui-kit/react/ds-secondary-navigation");require("@cupra/ui-kit/react/utils/breakpoints");require("react");const c=require("../../hooks/useHandleEvent.cjs");function s(e){const{className:t,children:r,onSelect:o,...i}=e,{ref:a}=c.useHandleEvent({"ds-secondary-navigation:select":o});return n.jsx("ds-secondary-navigation-react",{ref:a,class:t,...i,children:r})}const u=({children:e,...t})=>n.jsx("a",{slot:"items",...t,children:e}),d=({children:e})=>n.jsx("div",{slot:"actions",children:e});s.Item=u;s.Actions=d;exports.SecondaryNavigation=s;
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 n } from "react/jsx-runtime";
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 "react";
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: o, children: r, onSelect: s, ...i } = t, { ref: c } = a({
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__ */ n("ds-secondary-navigation-react", { ref: c, class: o, ...i, children: r });
10
+ return /* @__PURE__ */ o("ds-secondary-navigation-react", { ref: c, class: n, ...i, children: r });
11
11
  }
12
- const m = ({ children: t, ...o }) => /* @__PURE__ */ n("a", { slot: "items", ...o, children: t }), d = ({ children: t }) => /* @__PURE__ */ n("div", { slot: "actions", children: t });
13
- e.Item = m;
14
- e.Actions = d;
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
  };
@@ -3,3 +3,5 @@ declare const meta: Meta;
3
3
  export default meta;
4
4
  type Story = StoryObj;
5
5
  export declare const Default: Story;
6
+ export declare const SingleActionButton: Story;
7
+ export declare const KeepDropdownButtonText: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-react",
3
- "version": "2.0.0-canary.33",
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.26",
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.26"
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",