@postenbring/hedwig-react
Advanced tools
Comparing version 0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206083811 to 0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206090333
@@ -6,4 +6,35 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
children: ReactElement<HTMLLIElement | string> | ReactElement<HTMLLIElement[] | string[]>; | ||
/** | ||
* Props passed to the root `nav` html element | ||
*/ | ||
navProps?: HTMLAttributes<HTMLElement>; | ||
/** | ||
* Props passed to the `ol` html element | ||
*/ | ||
olProps?: HTMLAttributes<HTMLElement>; | ||
} | ||
declare function Breadcrumbs({ className, children, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element; | ||
/** | ||
* A breadcrumbs navigation menu | ||
* | ||
* **Usage** | ||
* | ||
* ```tsx | ||
* <Breadcrumbs> | ||
* <li><Link href="../">Previous page</Link></li> | ||
* <li>Current page</li> | ||
* </Breadcrumbs> | ||
* ``` | ||
* | ||
* Outputs this html structure | ||
* | ||
* ```html | ||
* <nav> | ||
* <ol> | ||
* <li><a href="../">Previous page</a></li> | ||
* <li>Current page</li> | ||
* </ol> | ||
* </nav> | ||
* ``` | ||
*/ | ||
declare function Breadcrumbs({ navProps, olProps, children }: BreadcrumbsProps): react_jsx_runtime.JSX.Element; | ||
declare namespace Breadcrumbs { | ||
@@ -10,0 +41,0 @@ var displayName: string; |
@@ -23,14 +23,2 @@ "use strict"; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -58,5 +46,4 @@ for (var name in all) | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function Breadcrumbs(_a) { | ||
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-breadcrumbs", className) }, rest), { children })) }); | ||
function Breadcrumbs({ navProps, olProps, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", __spreadProps(__spreadValues({}, navProps), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) })); | ||
} | ||
@@ -63,0 +50,0 @@ Breadcrumbs.displayName = "Breadcrumbs"; |
@@ -23,14 +23,2 @@ "use strict"; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -64,5 +52,4 @@ for (var name in all) | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function Breadcrumbs(_a) { | ||
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-breadcrumbs", className) }, rest), { children })) }); | ||
function Breadcrumbs({ navProps, olProps, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", __spreadProps(__spreadValues({}, navProps), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) })); | ||
} | ||
@@ -69,0 +56,0 @@ Breadcrumbs.displayName = "Breadcrumbs"; |
@@ -641,5 +641,4 @@ "use strict"; | ||
var import_jsx_runtime13 = require("react/jsx-runtime"); | ||
function Breadcrumbs(_a) { | ||
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ol", __spreadProps(__spreadValues({ className: (0, import_typed_classname12.clsx)("hds-breadcrumbs", className) }, rest), { children })) }); | ||
function Breadcrumbs({ navProps, olProps, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", __spreadProps(__spreadValues({}, navProps), { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname12.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) })); | ||
} | ||
@@ -646,0 +645,0 @@ Breadcrumbs.displayName = "Breadcrumbs"; |
{ | ||
"name": "@postenbring/hedwig-react", | ||
"version": "0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206083811", | ||
"version": "0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206090333", | ||
"main": "./dist/index.js", | ||
@@ -22,3 +22,3 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"@postenbring/hedwig-css": "0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206083811" | ||
"@postenbring/hedwig-css": "0.0.0-breadcrumbs-changes-Vg6oKCJY-20231206090333" | ||
}, | ||
@@ -25,0 +25,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
198676
4860