@postenbring/hedwig-react
Advanced tools
Comparing version 0.0.0-Vg6oKCJY-breadcrumbs-component-20231205062839 to 0.0.0-Vg6oKCJY-breadcrumbs-component-20231206062724
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import { HTMLAttributes, ReactElement } from 'react'; | ||
import { LinkProps } from '../link/link.js'; | ||
import '../utils-BfZsjuFH.js'; | ||
interface BreadcrumbProps extends HTMLAttributes<HTMLAnchorElement> { | ||
children: ReactElement<LinkProps> | string; | ||
interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> { | ||
children: ReactElement<HTMLLIElement | string> | ReactElement<HTMLLIElement[] | string[]>; | ||
} | ||
interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> { | ||
children: ReactElement<BreadcrumbProps> | ReactElement<BreadcrumbProps[]>; | ||
} | ||
declare function Breadcrumbs({ className, children }: BreadcrumbsProps): react_jsx_runtime.JSX.Element; | ||
declare function Breadcrumbs({ className, children, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element; | ||
declare namespace Breadcrumbs { | ||
var displayName: string; | ||
} | ||
declare function Breadcrumb(props: BreadcrumbProps): react_jsx_runtime.JSX.Element; | ||
declare namespace Breadcrumb { | ||
var displayName: string; | ||
} | ||
export { Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps }; | ||
export { Breadcrumbs, type BreadcrumbsProps }; |
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
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) => { | ||
@@ -23,3 +52,2 @@ for (var name in all) | ||
__export(breadcrumb_exports, { | ||
Breadcrumb: () => Breadcrumb, | ||
Breadcrumbs: () => Breadcrumbs | ||
@@ -30,14 +58,10 @@ }); | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function Breadcrumbs({ className, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: (0, import_typed_classname.clsx)("hds-breadcrumbs", className), children }) }); | ||
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 Breadcrumb(props) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_typed_classname.clsx)("hds-breadcrumb"), children: props.children }); | ||
} | ||
Breadcrumb.displayName = "Breadcrumb"; | ||
Breadcrumbs.displayName = "Breadcrumbs"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
Breadcrumb, | ||
Breadcrumbs | ||
}); |
@@ -1,5 +0,3 @@ | ||
export { Breadcrumb, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps } from './breadcrumb.js'; | ||
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb.js'; | ||
import 'react/jsx-runtime'; | ||
import 'react'; | ||
import '../link/link.js'; | ||
import '../utils-BfZsjuFH.js'; |
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
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) => { | ||
@@ -23,3 +52,2 @@ for (var name in all) | ||
__export(breadcrumb_exports, { | ||
Breadcrumb: () => Breadcrumb, | ||
Breadcrumbs: () => Breadcrumbs | ||
@@ -36,14 +64,10 @@ }); | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function Breadcrumbs({ className, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { className: (0, import_typed_classname.clsx)("hds-breadcrumbs", className), children }) }); | ||
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 Breadcrumb(props) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_typed_classname.clsx)("hds-breadcrumb"), children: props.children }); | ||
} | ||
Breadcrumb.displayName = "Breadcrumb"; | ||
Breadcrumbs.displayName = "Breadcrumbs"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
Breadcrumb, | ||
Breadcrumbs | ||
}); |
@@ -13,3 +13,3 @@ export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button/button.js'; | ||
export { AccordionContent, AccordionContentProps } from './accordion/accordion-item-content.js'; | ||
export { Breadcrumb, BreadcrumbProps, Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js'; | ||
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js'; | ||
export { MessageDescription, MessageTitle } from './message/message.js'; | ||
@@ -16,0 +16,0 @@ import './utils-BfZsjuFH.js'; |
@@ -60,3 +60,2 @@ "use strict"; | ||
BoxCloseButton: () => BoxCloseButton, | ||
Breadcrumb: () => Breadcrumb, | ||
Breadcrumbs: () => Breadcrumbs, | ||
@@ -643,9 +642,6 @@ DarkBadge: () => DarkBadge, | ||
var import_jsx_runtime13 = require("react/jsx-runtime"); | ||
function Breadcrumbs({ className, children }) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("ol", { className: (0, import_typed_classname12.clsx)("hds-breadcrumbs", className), children }) }); | ||
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 Breadcrumb(props) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_typed_classname12.clsx)("hds-breadcrumb"), children: props.children }); | ||
} | ||
Breadcrumb.displayName = "Breadcrumb"; | ||
Breadcrumbs.displayName = "Breadcrumbs"; | ||
@@ -662,3 +658,2 @@ // Annotate the CommonJS export names for ESM import in node: | ||
BoxCloseButton, | ||
Breadcrumb, | ||
Breadcrumbs, | ||
@@ -665,0 +660,0 @@ DarkBadge, |
{ | ||
"name": "@postenbring/hedwig-react", | ||
"version": "0.0.0-Vg6oKCJY-breadcrumbs-component-20231205062839", | ||
"version": "0.0.0-Vg6oKCJY-breadcrumbs-component-20231206062724", | ||
"main": "./dist/index.js", | ||
@@ -22,3 +22,3 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"@postenbring/hedwig-css": "0.0.0-Vg6oKCJY-breadcrumbs-component-20231205062839" | ||
"@postenbring/hedwig-css": "0.0.0-Vg6oKCJY-breadcrumbs-component-20231206062724" | ||
}, | ||
@@ -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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
198301
4855