@postenbring/hedwig-react 0.0.4 → 0.0.6
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/accordion/accordion-item-content.d.mts +9 -0
- package/dist/accordion/accordion-item-content.d.ts +9 -0
- package/dist/accordion/accordion-item-content.js +98 -0
- package/dist/accordion/accordion-item-content.mjs +8 -0
- package/dist/accordion/accordion-item-trigger.d.mts +9 -0
- package/dist/accordion/accordion-item-trigger.d.ts +9 -0
- package/dist/accordion/accordion-item-trigger.js +108 -0
- package/dist/accordion/accordion-item-trigger.mjs +8 -0
- package/dist/accordion/accordion-item.d.mts +15 -0
- package/dist/accordion/accordion-item.d.ts +15 -0
- package/dist/accordion/accordion-item.js +116 -0
- package/dist/accordion/accordion-item.mjs +8 -0
- package/dist/accordion/accordion.d.mts +28 -0
- package/dist/accordion/accordion.d.ts +28 -0
- package/dist/accordion/accordion.js +93 -0
- package/dist/accordion/accordion.mjs +8 -0
- package/dist/accordion/index.d.mts +6 -0
- package/dist/accordion/index.d.ts +6 -0
- package/dist/accordion/index.js +217 -0
- package/dist/accordion/index.mjs +21 -0
- package/dist/badge/badge.d.mts +2 -2
- package/dist/badge/badge.d.ts +2 -2
- package/dist/badge/badge.js +8 -14
- package/dist/badge/badge.mjs +2 -2
- package/dist/badge/index.js +10 -15
- package/dist/badge/index.mjs +3 -3
- package/dist/box/box.d.mts +36 -0
- package/dist/box/box.d.ts +36 -0
- package/dist/box/box.js +131 -0
- package/dist/box/box.mjs +9 -0
- package/dist/box/index.d.mts +3 -0
- package/dist/box/index.d.ts +3 -0
- package/dist/box/index.js +137 -0
- package/dist/box/index.mjs +10 -0
- package/dist/button/button.d.mts +2 -2
- package/dist/button/button.d.ts +2 -2
- package/dist/button/button.js +0 -13
- package/dist/button/button.mjs +2 -2
- package/dist/button/index.js +2 -14
- package/dist/button/index.mjs +3 -3
- package/dist/chunk-2V6SWZ5G.mjs +16 -0
- package/dist/chunk-4XWB4ZSR.mjs +6 -0
- package/dist/chunk-7F7QB4D5.mjs +50 -0
- package/dist/{chunk-NSNVKFU3.mjs → chunk-AYGPUYPZ.mjs} +2 -1
- package/dist/chunk-B3PZUFG2.mjs +40 -0
- package/dist/{chunk-H5SSXV32.mjs → chunk-CYW3DUD2.mjs} +2 -1
- package/dist/chunk-EKFYWUBE.mjs +36 -0
- package/dist/chunk-EX4U7YZF.mjs +83 -0
- package/dist/{chunk-BTCTQCPO.mjs → chunk-FUJQIYOF.mjs} +1 -12
- package/dist/{chunk-SF42ETS4.mjs → chunk-GSPFHK2Z.mjs} +2 -4
- package/dist/chunk-ID5KKZMK.mjs +5 -0
- package/dist/chunk-IOOSUX5O.mjs +6 -0
- package/dist/chunk-IWDN3WGQ.mjs +47 -0
- package/dist/chunk-IWV4FFE3.mjs +35 -0
- package/dist/chunk-KBVDBI2L.mjs +59 -0
- package/dist/chunk-LNYNZ4EG.mjs +40 -0
- package/dist/chunk-NMSLCM2K.mjs +18 -0
- package/dist/{chunk-YH2NWXPK.mjs → chunk-O3NMR6GE.mjs} +10 -5
- package/dist/chunk-PCKWBORI.mjs +5 -0
- package/dist/{chunk-AHYBSRCR.mjs → chunk-VZNNGRKM.mjs} +2 -1
- package/dist/{chunk-7FQ4XFS7.mjs → chunk-X3OAJSS2.mjs} +2 -4
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +395 -16
- package/dist/index.mjs +58 -9
- package/dist/input/input.d.mts +13 -0
- package/dist/input/input.d.ts +13 -0
- package/dist/input/input.js +109 -0
- package/dist/input/input.mjs +51 -0
- package/dist/link/index.js +2 -14
- package/dist/link/index.mjs +3 -3
- package/dist/link/link.d.mts +2 -2
- package/dist/link/link.d.ts +2 -2
- package/dist/link/link.js +0 -13
- package/dist/link/link.mjs +2 -2
- package/dist/list/description-list.d.mts +32 -0
- package/dist/list/description-list.d.ts +32 -0
- package/dist/list/description-list.js +89 -0
- package/dist/list/description-list.mjs +13 -0
- package/dist/list/index.d.mts +5 -0
- package/dist/list/index.d.ts +5 -0
- package/dist/list/index.js +144 -0
- package/dist/list/index.mjs +22 -0
- package/dist/list/link-list.d.mts +13 -0
- package/dist/list/link-list.d.ts +13 -0
- package/dist/list/link-list.js +102 -0
- package/dist/list/link-list.mjs +8 -0
- package/dist/list/list.d.mts +25 -0
- package/dist/list/list.d.ts +25 -0
- package/dist/list/list.js +95 -0
- package/dist/list/list.mjs +9 -0
- package/dist/message/index.d.mts +4 -0
- package/dist/message/index.d.ts +4 -0
- package/dist/message/index.js +162 -0
- package/dist/message/index.mjs +9 -0
- package/dist/message/message.d.mts +16 -0
- package/dist/message/message.d.ts +16 -0
- package/dist/message/message.js +155 -0
- package/dist/message/message.mjs +8 -0
- package/dist/utils-BfZsjuFH.d.mts +17 -0
- package/dist/utils-BfZsjuFH.d.ts +17 -0
- package/package.json +17 -17
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/input/input.tsx
|
|
60
|
+
var input_exports = {};
|
|
61
|
+
__export(input_exports, {
|
|
62
|
+
Input: () => Input
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(input_exports);
|
|
65
|
+
var React = __toESM(require("react"));
|
|
66
|
+
var import_clsx = require("clsx");
|
|
67
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
68
|
+
function Input(_a) {
|
|
69
|
+
var _b = _a, {
|
|
70
|
+
variant = "default",
|
|
71
|
+
errorMessage,
|
|
72
|
+
labelProps,
|
|
73
|
+
label,
|
|
74
|
+
id
|
|
75
|
+
} = _b, rest = __objRest(_b, [
|
|
76
|
+
"variant",
|
|
77
|
+
"errorMessage",
|
|
78
|
+
"labelProps",
|
|
79
|
+
"label",
|
|
80
|
+
"id"
|
|
81
|
+
]);
|
|
82
|
+
const errorMessageId = React.useId();
|
|
83
|
+
const inputId = React.useId();
|
|
84
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: (0, import_clsx.clsx)("hds-input", {
|
|
88
|
+
[`hds-input--${variant}`]: variant,
|
|
89
|
+
"hds-input--error": errorMessage
|
|
90
|
+
}),
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
|
|
93
|
+
!!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
|
|
94
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
95
|
+
"input",
|
|
96
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
97
|
+
"aria-describedby": errorMessageId,
|
|
98
|
+
className: "hds-input__input",
|
|
99
|
+
id: id || inputId
|
|
100
|
+
})
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
107
|
+
0 && (module.exports = {
|
|
108
|
+
Input
|
|
109
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "../chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/input/input.tsx
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { clsx } from "clsx";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function Input(_a) {
|
|
12
|
+
var _b = _a, {
|
|
13
|
+
variant = "default",
|
|
14
|
+
errorMessage,
|
|
15
|
+
labelProps,
|
|
16
|
+
label,
|
|
17
|
+
id
|
|
18
|
+
} = _b, rest = __objRest(_b, [
|
|
19
|
+
"variant",
|
|
20
|
+
"errorMessage",
|
|
21
|
+
"labelProps",
|
|
22
|
+
"label",
|
|
23
|
+
"id"
|
|
24
|
+
]);
|
|
25
|
+
const errorMessageId = React.useId();
|
|
26
|
+
const inputId = React.useId();
|
|
27
|
+
return /* @__PURE__ */ jsxs(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: clsx("hds-input", {
|
|
31
|
+
[`hds-input--${variant}`]: variant,
|
|
32
|
+
"hds-input--error": errorMessage
|
|
33
|
+
}),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
|
|
36
|
+
!!errorMessage && /* @__PURE__ */ jsx("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
"input",
|
|
39
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
40
|
+
"aria-describedby": errorMessageId,
|
|
41
|
+
className: "hds-input__input",
|
|
42
|
+
id: id || inputId
|
|
43
|
+
})
|
|
44
|
+
)
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
Input
|
|
51
|
+
};
|
package/dist/link/index.js
CHANGED
|
@@ -52,25 +52,14 @@ __export(link_exports, {
|
|
|
52
52
|
Link: () => Link
|
|
53
53
|
});
|
|
54
54
|
module.exports = __toCommonJS(link_exports);
|
|
55
|
+
var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
|
|
55
56
|
var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
|
|
56
57
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
57
|
-
var import_link = require("@postenbring/hedwig-css/dist/link
|
|
58
|
+
var import_link = require("@postenbring/hedwig-css/dist/link.css");
|
|
58
59
|
|
|
59
60
|
// src/link/link.tsx
|
|
60
61
|
var import_clsx = require("clsx");
|
|
61
62
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
62
|
-
|
|
63
|
-
// src/utils.ts
|
|
64
|
-
function warnForStyleOverrides(props) {
|
|
65
|
-
if (props.className) {
|
|
66
|
-
console.warn("Overriding styles are not premited");
|
|
67
|
-
}
|
|
68
|
-
if (props.styles) {
|
|
69
|
-
console.warn("Overriding styles are not premited");
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// src/link/link.tsx
|
|
74
63
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
75
64
|
function Link(_a) {
|
|
76
65
|
var _b = _a, {
|
|
@@ -84,7 +73,6 @@ function Link(_a) {
|
|
|
84
73
|
"size",
|
|
85
74
|
"anchorRef"
|
|
86
75
|
]);
|
|
87
|
-
warnForStyleOverrides(rest);
|
|
88
76
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
77
|
"a",
|
|
90
78
|
__spreadProps(__spreadValues({
|
package/dist/link/index.mjs
CHANGED
package/dist/link/link.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
interface LinkProps extends
|
|
4
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
5
|
/**
|
|
6
6
|
* The visual style of the link
|
|
7
7
|
*/
|
|
@@ -23,4 +23,4 @@ declare namespace Link {
|
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export { Link, LinkProps };
|
|
26
|
+
export { Link, type LinkProps };
|
package/dist/link/link.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
interface LinkProps extends
|
|
4
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
5
|
/**
|
|
6
6
|
* The visual style of the link
|
|
7
7
|
*/
|
|
@@ -23,4 +23,4 @@ declare namespace Link {
|
|
|
23
23
|
var displayName: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export { Link, LinkProps };
|
|
26
|
+
export { Link, type LinkProps };
|
package/dist/link/link.js
CHANGED
|
@@ -54,18 +54,6 @@ __export(link_exports, {
|
|
|
54
54
|
module.exports = __toCommonJS(link_exports);
|
|
55
55
|
var import_clsx = require("clsx");
|
|
56
56
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
57
|
-
|
|
58
|
-
// src/utils.ts
|
|
59
|
-
function warnForStyleOverrides(props) {
|
|
60
|
-
if (props.className) {
|
|
61
|
-
console.warn("Overriding styles are not premited");
|
|
62
|
-
}
|
|
63
|
-
if (props.styles) {
|
|
64
|
-
console.warn("Overriding styles are not premited");
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// src/link/link.tsx
|
|
69
57
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
58
|
function Link(_a) {
|
|
71
59
|
var _b = _a, {
|
|
@@ -79,7 +67,6 @@ function Link(_a) {
|
|
|
79
67
|
"size",
|
|
80
68
|
"anchorRef"
|
|
81
69
|
]);
|
|
82
|
-
warnForStyleOverrides(rest);
|
|
83
70
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
71
|
"a",
|
|
85
72
|
__spreadProps(__spreadValues({
|
package/dist/link/link.mjs
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type DescriptionDetailsProps = DLDTProps;
|
|
5
|
+
type DescriptionTermProps = DLDTProps;
|
|
6
|
+
interface DLDTProps extends HTMLAttributes<HTMLBaseElement> {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Either `DescriptionDetails` or `DescriptionTerm` elements
|
|
12
|
+
*/
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Direction of the description list
|
|
16
|
+
*/
|
|
17
|
+
variant?: "vertical" | "horizontal";
|
|
18
|
+
}
|
|
19
|
+
declare function DescriptionDetails({ children, ...rest }: DescriptionDetailsProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare namespace DescriptionDetails {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
declare function DescriptionTerm({ children, ...rest }: DescriptionTermProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace DescriptionTerm {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
declare function DescriptionList({ variant, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare namespace DescriptionList {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { DescriptionDetails, type DescriptionDetailsProps, DescriptionList, type DescriptionListProps, DescriptionTerm, type DescriptionTermProps, DescriptionList as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type DescriptionDetailsProps = DLDTProps;
|
|
5
|
+
type DescriptionTermProps = DLDTProps;
|
|
6
|
+
interface DLDTProps extends HTMLAttributes<HTMLBaseElement> {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Either `DescriptionDetails` or `DescriptionTerm` elements
|
|
12
|
+
*/
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Direction of the description list
|
|
16
|
+
*/
|
|
17
|
+
variant?: "vertical" | "horizontal";
|
|
18
|
+
}
|
|
19
|
+
declare function DescriptionDetails({ children, ...rest }: DescriptionDetailsProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare namespace DescriptionDetails {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
declare function DescriptionTerm({ children, ...rest }: DescriptionTermProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare namespace DescriptionTerm {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
}
|
|
27
|
+
declare function DescriptionList({ variant, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare namespace DescriptionList {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { DescriptionDetails, type DescriptionDetailsProps, DescriptionList, type DescriptionListProps, DescriptionTerm, type DescriptionTermProps, DescriptionList as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
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/list/description-list.tsx
|
|
50
|
+
var description_list_exports = {};
|
|
51
|
+
__export(description_list_exports, {
|
|
52
|
+
DescriptionDetails: () => DescriptionDetails,
|
|
53
|
+
DescriptionList: () => DescriptionList,
|
|
54
|
+
DescriptionTerm: () => DescriptionTerm,
|
|
55
|
+
default: () => description_list_default
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(description_list_exports);
|
|
58
|
+
var import_clsx = require("clsx");
|
|
59
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
60
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
|
+
function DescriptionDetails(_a) {
|
|
62
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
|
|
64
|
+
}
|
|
65
|
+
function DescriptionTerm(_a) {
|
|
66
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
|
|
68
|
+
}
|
|
69
|
+
function DescriptionList(_a) {
|
|
70
|
+
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]);
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
"dl",
|
|
73
|
+
__spreadValues({
|
|
74
|
+
className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-description-list"), {
|
|
75
|
+
[(0, import_typed_classname.t)("hds-description-list--horizontal")]: variant === "horizontal"
|
|
76
|
+
})
|
|
77
|
+
}, rest)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
DescriptionList.displayName = "DescriptionList";
|
|
81
|
+
DescriptionTerm.displayName = "DescriptionTerm";
|
|
82
|
+
DescriptionDetails.displayName = "DescriptionDetails";
|
|
83
|
+
var description_list_default = DescriptionList;
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
DescriptionDetails,
|
|
87
|
+
DescriptionList,
|
|
88
|
+
DescriptionTerm
|
|
89
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DescriptionDetails,
|
|
3
|
+
DescriptionList,
|
|
4
|
+
DescriptionTerm,
|
|
5
|
+
description_list_default
|
|
6
|
+
} from "../chunk-B3PZUFG2.mjs";
|
|
7
|
+
import "../chunk-FUJQIYOF.mjs";
|
|
8
|
+
export {
|
|
9
|
+
DescriptionDetails,
|
|
10
|
+
DescriptionList,
|
|
11
|
+
DescriptionTerm,
|
|
12
|
+
description_list_default as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.mjs';
|
|
2
|
+
export { ListProps, OrderedList, UnorderedList } from './list.mjs';
|
|
3
|
+
export { LinkList, LinkListProps } from './link-list.mjs';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.js';
|
|
2
|
+
export { ListProps, OrderedList, UnorderedList } from './list.js';
|
|
3
|
+
export { LinkList, LinkListProps } from './link-list.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react';
|
|
@@ -0,0 +1,144 @@
|
|
|
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/list/index.tsx
|
|
50
|
+
var list_exports = {};
|
|
51
|
+
__export(list_exports, {
|
|
52
|
+
DescriptionDetails: () => DescriptionDetails,
|
|
53
|
+
DescriptionList: () => DescriptionList,
|
|
54
|
+
DescriptionTerm: () => DescriptionTerm,
|
|
55
|
+
LinkList: () => LinkList,
|
|
56
|
+
OrderedList: () => OrderedList,
|
|
57
|
+
UnorderedList: () => UnorderedList
|
|
58
|
+
});
|
|
59
|
+
module.exports = __toCommonJS(list_exports);
|
|
60
|
+
var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
|
|
61
|
+
var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
|
|
62
|
+
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
63
|
+
var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
|
|
64
|
+
var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
|
|
65
|
+
|
|
66
|
+
// src/list/description-list.tsx
|
|
67
|
+
var import_clsx = require("clsx");
|
|
68
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
+
function DescriptionDetails(_a) {
|
|
71
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
|
|
73
|
+
}
|
|
74
|
+
function DescriptionTerm(_a) {
|
|
75
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
|
|
77
|
+
}
|
|
78
|
+
function DescriptionList(_a) {
|
|
79
|
+
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]);
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
81
|
+
"dl",
|
|
82
|
+
__spreadValues({
|
|
83
|
+
className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-description-list"), {
|
|
84
|
+
[(0, import_typed_classname.t)("hds-description-list--horizontal")]: variant === "horizontal"
|
|
85
|
+
})
|
|
86
|
+
}, rest)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
DescriptionList.displayName = "DescriptionList";
|
|
90
|
+
DescriptionTerm.displayName = "DescriptionTerm";
|
|
91
|
+
DescriptionDetails.displayName = "DescriptionDetails";
|
|
92
|
+
|
|
93
|
+
// src/list/list.tsx
|
|
94
|
+
var import_clsx2 = require("clsx");
|
|
95
|
+
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
96
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
97
|
+
function BaseList(_a) {
|
|
98
|
+
var _b = _a, {
|
|
99
|
+
as: ListTag = "ul",
|
|
100
|
+
children,
|
|
101
|
+
listStyle = "inherit",
|
|
102
|
+
size = "medium"
|
|
103
|
+
} = _b, rest = __objRest(_b, [
|
|
104
|
+
"as",
|
|
105
|
+
"children",
|
|
106
|
+
"listStyle",
|
|
107
|
+
"size"
|
|
108
|
+
]);
|
|
109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
110
|
+
ListTag,
|
|
111
|
+
__spreadProps(__spreadValues({
|
|
112
|
+
className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)("hds-list"), (0, import_typed_classname2.t)(`hds-list--${size}`), {
|
|
113
|
+
[(0, import_typed_classname2.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
|
|
114
|
+
})
|
|
115
|
+
}, rest), {
|
|
116
|
+
children
|
|
117
|
+
})
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function UnorderedList(props) {
|
|
121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
|
|
122
|
+
}
|
|
123
|
+
function OrderedList(props) {
|
|
124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
|
|
125
|
+
}
|
|
126
|
+
BaseList.displayName = "BaseList";
|
|
127
|
+
OrderedList.displayName = "UnorderedList";
|
|
128
|
+
UnorderedList.displayName = "UnorderedList";
|
|
129
|
+
|
|
130
|
+
// src/list/link-list.tsx
|
|
131
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
132
|
+
function LinkList(props) {
|
|
133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
|
|
134
|
+
}
|
|
135
|
+
LinkList.displayName = "LinkList";
|
|
136
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
+
0 && (module.exports = {
|
|
138
|
+
DescriptionDetails,
|
|
139
|
+
DescriptionList,
|
|
140
|
+
DescriptionTerm,
|
|
141
|
+
LinkList,
|
|
142
|
+
OrderedList,
|
|
143
|
+
UnorderedList
|
|
144
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "../chunk-IOOSUX5O.mjs";
|
|
2
|
+
import {
|
|
3
|
+
LinkList
|
|
4
|
+
} from "../chunk-NMSLCM2K.mjs";
|
|
5
|
+
import {
|
|
6
|
+
OrderedList,
|
|
7
|
+
UnorderedList
|
|
8
|
+
} from "../chunk-IWDN3WGQ.mjs";
|
|
9
|
+
import {
|
|
10
|
+
DescriptionDetails,
|
|
11
|
+
DescriptionList,
|
|
12
|
+
DescriptionTerm
|
|
13
|
+
} from "../chunk-B3PZUFG2.mjs";
|
|
14
|
+
import "../chunk-FUJQIYOF.mjs";
|
|
15
|
+
export {
|
|
16
|
+
DescriptionDetails,
|
|
17
|
+
DescriptionList,
|
|
18
|
+
DescriptionTerm,
|
|
19
|
+
LinkList,
|
|
20
|
+
OrderedList,
|
|
21
|
+
UnorderedList
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ListProps } from './list.mjs';
|
|
4
|
+
|
|
5
|
+
interface LinkListProps extends Omit<ListProps, "listStyle"> {
|
|
6
|
+
children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
|
|
7
|
+
}
|
|
8
|
+
declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare namespace LinkList {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { LinkList, type LinkListProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ListProps } from './list.js';
|
|
4
|
+
|
|
5
|
+
interface LinkListProps extends Omit<ListProps, "listStyle"> {
|
|
6
|
+
children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
|
|
7
|
+
}
|
|
8
|
+
declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare namespace LinkList {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { LinkList, type LinkListProps };
|