@postenbring/hedwig-react 0.0.12 → 0.0.13
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/breadcrumb/breadcrumb.d.mts +43 -0
- package/dist/breadcrumb/breadcrumb.d.ts +43 -0
- package/dist/breadcrumb/breadcrumb.js +52 -0
- package/dist/breadcrumb/breadcrumb.mjs +7 -0
- package/dist/breadcrumb/index.d.mts +3 -0
- package/dist/breadcrumb/index.d.ts +3 -0
- package/dist/breadcrumb/index.js +58 -0
- package/dist/breadcrumb/index.mjs +8 -0
- package/dist/chunk-EMX6J4XG.mjs +5 -0
- package/dist/chunk-Q2HYT3Z7.mjs +16 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +16 -0
- package/dist/index.mjs +9 -4
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes, ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
|
|
5
|
+
children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
6
|
+
/**
|
|
7
|
+
* Props passed to the root `nav` html element
|
|
8
|
+
*/
|
|
9
|
+
navProps?: HTMLAttributes<HTMLElement>;
|
|
10
|
+
/**
|
|
11
|
+
* Props passed to the `ol` html element
|
|
12
|
+
*/
|
|
13
|
+
olProps?: HTMLAttributes<HTMLElement>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A breadcrumbs navigation menu
|
|
17
|
+
*
|
|
18
|
+
* **Usage**
|
|
19
|
+
*
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Breadcrumbs>
|
|
22
|
+
* <li><Link href="../">Previous page</Link></li>
|
|
23
|
+
* <li>Current page</li>
|
|
24
|
+
* </Breadcrumbs>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Outputs this html structure
|
|
28
|
+
*
|
|
29
|
+
* ```html
|
|
30
|
+
* <nav>
|
|
31
|
+
* <ol>
|
|
32
|
+
* <li><a href="../">Previous page</a></li>
|
|
33
|
+
* <li>Current page</li>
|
|
34
|
+
* </ol>
|
|
35
|
+
* </nav>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function Breadcrumbs({ navProps, olProps, children }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare namespace Breadcrumbs {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Breadcrumbs, type BreadcrumbsProps };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes, ReactElement } from 'react';
|
|
3
|
+
|
|
4
|
+
interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
|
|
5
|
+
children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
6
|
+
/**
|
|
7
|
+
* Props passed to the root `nav` html element
|
|
8
|
+
*/
|
|
9
|
+
navProps?: HTMLAttributes<HTMLElement>;
|
|
10
|
+
/**
|
|
11
|
+
* Props passed to the `ol` html element
|
|
12
|
+
*/
|
|
13
|
+
olProps?: HTMLAttributes<HTMLElement>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A breadcrumbs navigation menu
|
|
17
|
+
*
|
|
18
|
+
* **Usage**
|
|
19
|
+
*
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Breadcrumbs>
|
|
22
|
+
* <li><Link href="../">Previous page</Link></li>
|
|
23
|
+
* <li>Current page</li>
|
|
24
|
+
* </Breadcrumbs>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Outputs this html structure
|
|
28
|
+
*
|
|
29
|
+
* ```html
|
|
30
|
+
* <nav>
|
|
31
|
+
* <ol>
|
|
32
|
+
* <li><a href="../">Previous page</a></li>
|
|
33
|
+
* <li>Current page</li>
|
|
34
|
+
* </ol>
|
|
35
|
+
* </nav>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare function Breadcrumbs({ navProps, olProps, children }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare namespace Breadcrumbs {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Breadcrumbs, type BreadcrumbsProps };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __export = (target, all) => {
|
|
24
|
+
for (var name in all)
|
|
25
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
+
for (let key of __getOwnPropNames(from))
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
|
|
37
|
+
// src/breadcrumb/breadcrumb.tsx
|
|
38
|
+
var breadcrumb_exports = {};
|
|
39
|
+
__export(breadcrumb_exports, {
|
|
40
|
+
Breadcrumbs: () => Breadcrumbs
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(breadcrumb_exports);
|
|
43
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
function Breadcrumbs({ navProps, olProps, children }) {
|
|
46
|
+
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 })) }));
|
|
47
|
+
}
|
|
48
|
+
Breadcrumbs.displayName = "Breadcrumbs";
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
Breadcrumbs
|
|
52
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __export = (target, all) => {
|
|
24
|
+
for (var name in all)
|
|
25
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
+
for (let key of __getOwnPropNames(from))
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
+
}
|
|
33
|
+
return to;
|
|
34
|
+
};
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
|
|
37
|
+
// src/breadcrumb/index.tsx
|
|
38
|
+
var breadcrumb_exports = {};
|
|
39
|
+
__export(breadcrumb_exports, {
|
|
40
|
+
Breadcrumbs: () => Breadcrumbs
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(breadcrumb_exports);
|
|
43
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
44
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
45
|
+
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
46
|
+
var import_breadcrumb = require("@postenbring/hedwig-css/dist/breadcrumb.css");
|
|
47
|
+
|
|
48
|
+
// src/breadcrumb/breadcrumb.tsx
|
|
49
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
+
function Breadcrumbs({ navProps, olProps, children }) {
|
|
52
|
+
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 })) }));
|
|
53
|
+
}
|
|
54
|
+
Breadcrumbs.displayName = "Breadcrumbs";
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
Breadcrumbs
|
|
58
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
5
|
+
|
|
6
|
+
// src/breadcrumb/breadcrumb.tsx
|
|
7
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
function Breadcrumbs({ navProps, olProps, children }) {
|
|
10
|
+
return /* @__PURE__ */ jsx("nav", __spreadProps(__spreadValues({}, navProps), { children: /* @__PURE__ */ jsx("ol", __spreadProps(__spreadValues({}, olProps), { className: clsx("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
|
|
11
|
+
}
|
|
12
|
+
Breadcrumbs.displayName = "Breadcrumbs";
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
Breadcrumbs
|
|
16
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ export { Accordion, AccordionProps } from './accordion/accordion.mjs';
|
|
|
10
10
|
export { AccordionItem, AccordionItemChildrenType, AccordionItemProps } from './accordion/accordion-item.mjs';
|
|
11
11
|
export { AccordionTrigger, AccordionTriggerProps } from './accordion/accordion-item-trigger.mjs';
|
|
12
12
|
export { AccordionContent, AccordionContentProps } from './accordion/accordion-item-content.mjs';
|
|
13
|
+
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.mjs';
|
|
13
14
|
export { MessageDescription, MessageTitle } from './message/message.mjs';
|
|
14
15
|
import './utils-BfZsjuFH.mjs';
|
|
15
16
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { Accordion, AccordionProps } from './accordion/accordion.js';
|
|
|
10
10
|
export { AccordionItem, AccordionItemChildrenType, AccordionItemProps } from './accordion/accordion-item.js';
|
|
11
11
|
export { AccordionTrigger, AccordionTriggerProps } from './accordion/accordion-item-trigger.js';
|
|
12
12
|
export { AccordionContent, AccordionContentProps } from './accordion/accordion-item-content.js';
|
|
13
|
+
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js';
|
|
13
14
|
export { MessageDescription, MessageTitle } from './message/message.js';
|
|
14
15
|
import './utils-BfZsjuFH.js';
|
|
15
16
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,7 @@ __export(src_exports, {
|
|
|
57
57
|
BaseButton: () => BaseButton,
|
|
58
58
|
Box: () => Box,
|
|
59
59
|
BoxCloseButton: () => BoxCloseButton,
|
|
60
|
+
Breadcrumbs: () => Breadcrumbs,
|
|
60
61
|
DarkBadge: () => DarkBadge,
|
|
61
62
|
DescriptionDetails: () => DescriptionDetails,
|
|
62
63
|
DescriptionList: () => DescriptionList,
|
|
@@ -627,6 +628,20 @@ var AccordionContent = (0, import_react9.forwardRef)((_a, ref) => {
|
|
|
627
628
|
);
|
|
628
629
|
});
|
|
629
630
|
AccordionContent.displayName = "AccordionContent";
|
|
631
|
+
|
|
632
|
+
// src/breadcrumb/index.tsx
|
|
633
|
+
var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
634
|
+
var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
635
|
+
var import_base8 = require("@postenbring/hedwig-css/dist/base.css");
|
|
636
|
+
var import_breadcrumb = require("@postenbring/hedwig-css/dist/breadcrumb.css");
|
|
637
|
+
|
|
638
|
+
// src/breadcrumb/breadcrumb.tsx
|
|
639
|
+
var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
640
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
641
|
+
function Breadcrumbs({ navProps, olProps, children }) {
|
|
642
|
+
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 })) }));
|
|
643
|
+
}
|
|
644
|
+
Breadcrumbs.displayName = "Breadcrumbs";
|
|
630
645
|
// Annotate the CommonJS export names for ESM import in node:
|
|
631
646
|
0 && (module.exports = {
|
|
632
647
|
Accordion,
|
|
@@ -637,6 +652,7 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
637
652
|
BaseButton,
|
|
638
653
|
Box,
|
|
639
654
|
BoxCloseButton,
|
|
655
|
+
Breadcrumbs,
|
|
640
656
|
DarkBadge,
|
|
641
657
|
DescriptionDetails,
|
|
642
658
|
DescriptionList,
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import "./chunk-5NDZ66M6.mjs";
|
|
2
|
+
import {
|
|
3
|
+
Link
|
|
4
|
+
} from "./chunk-TES7CVGU.mjs";
|
|
1
5
|
import "./chunk-QOVAYDPH.mjs";
|
|
2
6
|
import {
|
|
3
7
|
DescriptionDetails,
|
|
@@ -23,16 +27,16 @@ import {
|
|
|
23
27
|
Box,
|
|
24
28
|
BoxCloseButton
|
|
25
29
|
} from "./chunk-RXUPE4MM.mjs";
|
|
30
|
+
import "./chunk-EMX6J4XG.mjs";
|
|
31
|
+
import {
|
|
32
|
+
Breadcrumbs
|
|
33
|
+
} from "./chunk-Q2HYT3Z7.mjs";
|
|
26
34
|
import "./chunk-N3EFZW7T.mjs";
|
|
27
35
|
import {
|
|
28
36
|
BaseButton,
|
|
29
37
|
PrimaryButton,
|
|
30
38
|
SecondaryButton
|
|
31
39
|
} from "./chunk-ENRMC5K7.mjs";
|
|
32
|
-
import "./chunk-5NDZ66M6.mjs";
|
|
33
|
-
import {
|
|
34
|
-
Link
|
|
35
|
-
} from "./chunk-TES7CVGU.mjs";
|
|
36
40
|
import "./chunk-Z36ETKOZ.mjs";
|
|
37
41
|
import {
|
|
38
42
|
AccordionContent
|
|
@@ -64,6 +68,7 @@ export {
|
|
|
64
68
|
BaseButton,
|
|
65
69
|
Box,
|
|
66
70
|
BoxCloseButton,
|
|
71
|
+
Breadcrumbs,
|
|
67
72
|
DarkBadge,
|
|
68
73
|
DescriptionDetails,
|
|
69
74
|
DescriptionList,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hedwig-tsconfig": "0.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@postenbring/hedwig-css": "0.0.
|
|
22
|
+
"@postenbring/hedwig-css": "0.0.12"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|