@postenbring/hedwig-react 0.0.14 → 0.0.15
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/chunk-3VUAKZB2.mjs +48 -0
- package/dist/chunk-JNIAIH63.mjs +5 -0
- package/dist/dropdown/dropdown.d.mts +15 -0
- package/dist/dropdown/dropdown.d.ts +15 -0
- package/dist/dropdown/dropdown.js +95 -0
- package/dist/dropdown/dropdown.mjs +7 -0
- package/dist/dropdown/index.d.mts +3 -0
- package/dist/dropdown/index.d.ts +3 -0
- package/dist/dropdown/index.js +101 -0
- package/dist/dropdown/index.mjs +8 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +60 -13
- package/dist/index.mjs +12 -7
- package/dist/message/index.d.mts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/dropdown/dropdown.tsx
|
|
8
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Dropdown(_a) {
|
|
11
|
+
var _b = _a, {
|
|
12
|
+
label,
|
|
13
|
+
variant,
|
|
14
|
+
errorMessage,
|
|
15
|
+
className,
|
|
16
|
+
children
|
|
17
|
+
} = _b, rest = __objRest(_b, [
|
|
18
|
+
"label",
|
|
19
|
+
"variant",
|
|
20
|
+
"errorMessage",
|
|
21
|
+
"className",
|
|
22
|
+
"children"
|
|
23
|
+
]);
|
|
24
|
+
return /* @__PURE__ */ jsxs("label", { className: clsx("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
25
|
+
label,
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"select",
|
|
28
|
+
__spreadProps(__spreadValues({
|
|
29
|
+
className: clsx(
|
|
30
|
+
"hds-dropdown",
|
|
31
|
+
{
|
|
32
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
33
|
+
"hds-dropdown--error": errorMessage
|
|
34
|
+
},
|
|
35
|
+
className
|
|
36
|
+
)
|
|
37
|
+
}, rest), {
|
|
38
|
+
children
|
|
39
|
+
})
|
|
40
|
+
),
|
|
41
|
+
errorMessage ? /* @__PURE__ */ jsx("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
Dropdown.displayName = "Dropdown";
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
Dropdown
|
|
48
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
|
|
5
|
+
label: string;
|
|
6
|
+
variant: "default" | "white" | "lined";
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare namespace Dropdown {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Dropdown, type DropdownProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
|
|
5
|
+
label: string;
|
|
6
|
+
variant: "default" | "white" | "lined";
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare namespace Dropdown {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Dropdown, type DropdownProps };
|
|
@@ -0,0 +1,95 @@
|
|
|
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 __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/dropdown/dropdown.tsx
|
|
50
|
+
var dropdown_exports = {};
|
|
51
|
+
__export(dropdown_exports, {
|
|
52
|
+
Dropdown: () => Dropdown
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(dropdown_exports);
|
|
55
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
+
function Dropdown(_a) {
|
|
58
|
+
var _b = _a, {
|
|
59
|
+
label,
|
|
60
|
+
variant,
|
|
61
|
+
errorMessage,
|
|
62
|
+
className,
|
|
63
|
+
children
|
|
64
|
+
} = _b, rest = __objRest(_b, [
|
|
65
|
+
"label",
|
|
66
|
+
"variant",
|
|
67
|
+
"errorMessage",
|
|
68
|
+
"className",
|
|
69
|
+
"children"
|
|
70
|
+
]);
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: (0, import_typed_classname.clsx)("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
72
|
+
label,
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
+
"select",
|
|
75
|
+
__spreadProps(__spreadValues({
|
|
76
|
+
className: (0, import_typed_classname.clsx)(
|
|
77
|
+
"hds-dropdown",
|
|
78
|
+
{
|
|
79
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
80
|
+
"hds-dropdown--error": errorMessage
|
|
81
|
+
},
|
|
82
|
+
className
|
|
83
|
+
)
|
|
84
|
+
}, rest), {
|
|
85
|
+
children
|
|
86
|
+
})
|
|
87
|
+
),
|
|
88
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
Dropdown.displayName = "Dropdown";
|
|
92
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
+
0 && (module.exports = {
|
|
94
|
+
Dropdown
|
|
95
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
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 __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/dropdown/index.tsx
|
|
50
|
+
var dropdown_exports = {};
|
|
51
|
+
__export(dropdown_exports, {
|
|
52
|
+
Dropdown: () => Dropdown
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(dropdown_exports);
|
|
55
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
56
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
57
|
+
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
58
|
+
var import_dropdown = require("@postenbring/hedwig-css/dist/dropdown.css");
|
|
59
|
+
|
|
60
|
+
// src/dropdown/dropdown.tsx
|
|
61
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
|
+
function Dropdown(_a) {
|
|
64
|
+
var _b = _a, {
|
|
65
|
+
label,
|
|
66
|
+
variant,
|
|
67
|
+
errorMessage,
|
|
68
|
+
className,
|
|
69
|
+
children
|
|
70
|
+
} = _b, rest = __objRest(_b, [
|
|
71
|
+
"label",
|
|
72
|
+
"variant",
|
|
73
|
+
"errorMessage",
|
|
74
|
+
"className",
|
|
75
|
+
"children"
|
|
76
|
+
]);
|
|
77
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: (0, import_typed_classname.clsx)("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
78
|
+
label,
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
"select",
|
|
81
|
+
__spreadProps(__spreadValues({
|
|
82
|
+
className: (0, import_typed_classname.clsx)(
|
|
83
|
+
"hds-dropdown",
|
|
84
|
+
{
|
|
85
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
86
|
+
"hds-dropdown--error": errorMessage
|
|
87
|
+
},
|
|
88
|
+
className
|
|
89
|
+
)
|
|
90
|
+
}, rest), {
|
|
91
|
+
children
|
|
92
|
+
})
|
|
93
|
+
),
|
|
94
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
Dropdown.displayName = "Dropdown";
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
Dropdown
|
|
101
|
+
});
|
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 { Dropdown, DropdownProps } from './dropdown/dropdown.mjs';
|
|
13
14
|
export { Modal } from './modal/index.mjs';
|
|
14
15
|
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.mjs';
|
|
15
16
|
export { MessageDescription, MessageTitle } from './message/message.mjs';
|
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 { Dropdown, DropdownProps } from './dropdown/dropdown.js';
|
|
13
14
|
export { Modal } from './modal/index.js';
|
|
14
15
|
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js';
|
|
15
16
|
export { MessageDescription, MessageTitle } from './message/message.js';
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(src_exports, {
|
|
|
72
72
|
DescriptionDetails: () => DescriptionDetails,
|
|
73
73
|
DescriptionList: () => DescriptionList,
|
|
74
74
|
DescriptionTerm: () => DescriptionTerm,
|
|
75
|
+
Dropdown: () => Dropdown,
|
|
75
76
|
Link: () => Link,
|
|
76
77
|
LinkList: () => LinkList,
|
|
77
78
|
Message: () => MessageComponent,
|
|
@@ -641,16 +642,61 @@ var AccordionContent = (0, import_react9.forwardRef)((_a, ref) => {
|
|
|
641
642
|
});
|
|
642
643
|
AccordionContent.displayName = "AccordionContent";
|
|
643
644
|
|
|
644
|
-
// src/
|
|
645
|
+
// src/dropdown/index.tsx
|
|
645
646
|
var import_fonts8 = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
646
647
|
var import_tokens8 = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
647
648
|
var import_base8 = require("@postenbring/hedwig-css/dist/base.css");
|
|
649
|
+
var import_dropdown = require("@postenbring/hedwig-css/dist/dropdown.css");
|
|
650
|
+
|
|
651
|
+
// src/dropdown/dropdown.tsx
|
|
652
|
+
var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
653
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
654
|
+
function Dropdown(_a) {
|
|
655
|
+
var _b = _a, {
|
|
656
|
+
label,
|
|
657
|
+
variant,
|
|
658
|
+
errorMessage,
|
|
659
|
+
className,
|
|
660
|
+
children
|
|
661
|
+
} = _b, rest = __objRest(_b, [
|
|
662
|
+
"label",
|
|
663
|
+
"variant",
|
|
664
|
+
"errorMessage",
|
|
665
|
+
"className",
|
|
666
|
+
"children"
|
|
667
|
+
]);
|
|
668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: (0, import_typed_classname12.clsx)("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
669
|
+
label,
|
|
670
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
671
|
+
"select",
|
|
672
|
+
__spreadProps(__spreadValues({
|
|
673
|
+
className: (0, import_typed_classname12.clsx)(
|
|
674
|
+
"hds-dropdown",
|
|
675
|
+
{
|
|
676
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
677
|
+
"hds-dropdown--error": errorMessage
|
|
678
|
+
},
|
|
679
|
+
className
|
|
680
|
+
)
|
|
681
|
+
}, rest), {
|
|
682
|
+
children
|
|
683
|
+
})
|
|
684
|
+
),
|
|
685
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
686
|
+
] });
|
|
687
|
+
}
|
|
688
|
+
Dropdown.displayName = "Dropdown";
|
|
689
|
+
|
|
690
|
+
// src/modal/index.tsx
|
|
691
|
+
var import_fonts9 = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
692
|
+
var import_tokens9 = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
693
|
+
var import_base9 = require("@postenbring/hedwig-css/dist/base.css");
|
|
648
694
|
var import_box5 = require("@postenbring/hedwig-css/dist/box.css");
|
|
649
695
|
var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
|
|
650
696
|
|
|
651
697
|
// src/modal/modal.tsx
|
|
652
698
|
var import_react10 = require("react");
|
|
653
|
-
var
|
|
699
|
+
var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
654
700
|
|
|
655
701
|
// src/utils.ts
|
|
656
702
|
var React2 = __toESM(require("react"));
|
|
@@ -672,7 +718,7 @@ function useMergeRefs(refs) {
|
|
|
672
718
|
}
|
|
673
719
|
|
|
674
720
|
// src/modal/modal.tsx
|
|
675
|
-
var
|
|
721
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
676
722
|
var Modal = (0, import_react10.forwardRef)(
|
|
677
723
|
(_a, ref) => {
|
|
678
724
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
@@ -683,11 +729,11 @@ var Modal = (0, import_react10.forwardRef)(
|
|
|
683
729
|
(_a2 = modalRef.current) == null ? void 0 : _a2.close();
|
|
684
730
|
return false;
|
|
685
731
|
}
|
|
686
|
-
return /* @__PURE__ */ (0,
|
|
732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
687
733
|
Box,
|
|
688
734
|
__spreadProps(__spreadValues({
|
|
689
735
|
as: "dialog",
|
|
690
|
-
className: (0,
|
|
736
|
+
className: (0, import_typed_classname13.clsx)("hds-modal", className),
|
|
691
737
|
closeable: true,
|
|
692
738
|
onClose,
|
|
693
739
|
ref: mergedRef,
|
|
@@ -702,10 +748,10 @@ Modal.displayName = "Modal";
|
|
|
702
748
|
var ModalHeader = (0, import_react10.forwardRef)(
|
|
703
749
|
(_a, ref) => {
|
|
704
750
|
var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
705
|
-
return /* @__PURE__ */ (0,
|
|
751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
706
752
|
Component,
|
|
707
753
|
__spreadValues({
|
|
708
|
-
className: (0,
|
|
754
|
+
className: (0, import_typed_classname13.clsx)("hds-modal__header", className),
|
|
709
755
|
ref
|
|
710
756
|
}, rest)
|
|
711
757
|
);
|
|
@@ -719,16 +765,16 @@ ModalComponent.Header = ModalHeader;
|
|
|
719
765
|
ModalComponent.Header.displayName = "Modal";
|
|
720
766
|
|
|
721
767
|
// src/breadcrumb/index.tsx
|
|
722
|
-
var
|
|
723
|
-
var
|
|
724
|
-
var
|
|
768
|
+
var import_fonts10 = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
769
|
+
var import_tokens10 = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
770
|
+
var import_base10 = require("@postenbring/hedwig-css/dist/base.css");
|
|
725
771
|
var import_breadcrumb = require("@postenbring/hedwig-css/dist/breadcrumb.css");
|
|
726
772
|
|
|
727
773
|
// src/breadcrumb/breadcrumb.tsx
|
|
728
|
-
var
|
|
729
|
-
var
|
|
774
|
+
var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
775
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
730
776
|
function Breadcrumbs({ navProps, olProps, children }) {
|
|
731
|
-
return /* @__PURE__ */ (0,
|
|
777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("nav", __spreadProps(__spreadValues({}, navProps), { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname14.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
|
|
732
778
|
}
|
|
733
779
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
734
780
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -746,6 +792,7 @@ Breadcrumbs.displayName = "Breadcrumbs";
|
|
|
746
792
|
DescriptionDetails,
|
|
747
793
|
DescriptionList,
|
|
748
794
|
DescriptionTerm,
|
|
795
|
+
Dropdown,
|
|
749
796
|
Link,
|
|
750
797
|
LinkList,
|
|
751
798
|
Message,
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MessageComponent
|
|
3
|
+
} from "./chunk-6AW5BEDP.mjs";
|
|
4
|
+
import {
|
|
5
|
+
MessageDescription,
|
|
6
|
+
MessageTitle
|
|
7
|
+
} from "./chunk-X4D24ZRP.mjs";
|
|
1
8
|
import {
|
|
2
9
|
ModalComponent
|
|
3
10
|
} from "./chunk-ROSXRHEW.mjs";
|
|
@@ -21,13 +28,6 @@ import {
|
|
|
21
28
|
OrderedList,
|
|
22
29
|
UnorderedList
|
|
23
30
|
} from "./chunk-RY53CJI7.mjs";
|
|
24
|
-
import {
|
|
25
|
-
MessageComponent
|
|
26
|
-
} from "./chunk-6AW5BEDP.mjs";
|
|
27
|
-
import {
|
|
28
|
-
MessageDescription,
|
|
29
|
-
MessageTitle
|
|
30
|
-
} from "./chunk-X4D24ZRP.mjs";
|
|
31
31
|
import "./chunk-BJANCH4F.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Box,
|
|
@@ -43,6 +43,10 @@ import {
|
|
|
43
43
|
PrimaryButton,
|
|
44
44
|
SecondaryButton
|
|
45
45
|
} from "./chunk-ENRMC5K7.mjs";
|
|
46
|
+
import "./chunk-JNIAIH63.mjs";
|
|
47
|
+
import {
|
|
48
|
+
Dropdown
|
|
49
|
+
} from "./chunk-3VUAKZB2.mjs";
|
|
46
50
|
import "./chunk-Z36ETKOZ.mjs";
|
|
47
51
|
import {
|
|
48
52
|
AccordionContent
|
|
@@ -79,6 +83,7 @@ export {
|
|
|
79
83
|
DescriptionDetails,
|
|
80
84
|
DescriptionList,
|
|
81
85
|
DescriptionTerm,
|
|
86
|
+
Dropdown,
|
|
82
87
|
Link,
|
|
83
88
|
LinkList,
|
|
84
89
|
MessageComponent as Message,
|
package/dist/message/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ declare const MessageComponent: {
|
|
|
7
7
|
(props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
|
|
8
8
|
<As extends React.ElementType>(props: {
|
|
9
9
|
as?: As | undefined;
|
|
10
|
-
} & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "
|
|
10
|
+
} & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
|
|
11
11
|
} & Pick<React.FC, "displayName"> & {
|
|
12
12
|
Title: typeof MessageTitle;
|
|
13
13
|
Description: typeof MessageDescription;
|
package/dist/message/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare const MessageComponent: {
|
|
|
7
7
|
(props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
|
|
8
8
|
<As extends React.ElementType>(props: {
|
|
9
9
|
as?: As | undefined;
|
|
10
|
-
} & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "
|
|
10
|
+
} & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
|
|
11
11
|
} & Pick<React.FC, "displayName"> & {
|
|
12
12
|
Title: typeof MessageTitle;
|
|
13
13
|
Description: typeof MessageDescription;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/react": "^18.2.
|
|
13
|
+
"@types/react": "^18.2.43",
|
|
14
14
|
"@types/react-dom": "^18.2.15",
|
|
15
15
|
"react": "^18.2.0",
|
|
16
16
|
"tsup": "^8.0.1",
|
|
17
|
-
"typescript": "^5.
|
|
17
|
+
"typescript": "^5.3.3",
|
|
18
18
|
"eslint-config-custom": "0.0.1",
|
|
19
19
|
"hedwig-tsconfig": "0.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@postenbring/hedwig-css": "0.0.
|
|
22
|
+
"@postenbring/hedwig-css": "0.0.14"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|