@postenbring/hedwig-react 0.0.3 → 0.0.5

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.
Files changed (109) hide show
  1. package/dist/accordion/accordion-item-content.d.mts +9 -0
  2. package/dist/accordion/accordion-item-content.d.ts +9 -0
  3. package/dist/accordion/accordion-item-content.js +98 -0
  4. package/dist/accordion/accordion-item-content.mjs +8 -0
  5. package/dist/accordion/accordion-item-trigger.d.mts +9 -0
  6. package/dist/accordion/accordion-item-trigger.d.ts +9 -0
  7. package/dist/accordion/accordion-item-trigger.js +108 -0
  8. package/dist/accordion/accordion-item-trigger.mjs +8 -0
  9. package/dist/accordion/accordion-item.d.mts +15 -0
  10. package/dist/accordion/accordion-item.d.ts +15 -0
  11. package/dist/accordion/accordion-item.js +116 -0
  12. package/dist/accordion/accordion-item.mjs +8 -0
  13. package/dist/accordion/accordion.d.mts +28 -0
  14. package/dist/accordion/accordion.d.ts +28 -0
  15. package/dist/accordion/accordion.js +93 -0
  16. package/dist/accordion/accordion.mjs +8 -0
  17. package/dist/accordion/index.d.mts +6 -0
  18. package/dist/accordion/index.d.ts +6 -0
  19. package/dist/accordion/index.js +217 -0
  20. package/dist/accordion/index.mjs +21 -0
  21. package/dist/badge/badge.d.mts +28 -0
  22. package/dist/badge/badge.d.ts +28 -0
  23. package/dist/badge/badge.js +103 -0
  24. package/dist/badge/badge.mjs +13 -0
  25. package/dist/badge/index.d.mts +3 -0
  26. package/dist/badge/index.d.ts +3 -0
  27. package/dist/badge/index.js +109 -0
  28. package/dist/badge/index.mjs +14 -0
  29. package/dist/box/box.d.mts +36 -0
  30. package/dist/box/box.d.ts +36 -0
  31. package/dist/box/box.js +131 -0
  32. package/dist/box/box.mjs +9 -0
  33. package/dist/box/index.d.mts +3 -0
  34. package/dist/box/index.d.ts +3 -0
  35. package/dist/box/index.js +137 -0
  36. package/dist/box/index.mjs +10 -0
  37. package/dist/button/button.d.mts +37 -0
  38. package/dist/button/button.d.ts +37 -0
  39. package/dist/button/button.js +103 -0
  40. package/dist/button/button.mjs +9 -0
  41. package/dist/button/index.d.mts +3 -37
  42. package/dist/button/index.d.ts +3 -37
  43. package/dist/button/index.js +9 -21
  44. package/dist/button/index.mjs +3 -1
  45. package/dist/chunk-2V6SWZ5G.mjs +16 -0
  46. package/dist/chunk-4XWB4ZSR.mjs +6 -0
  47. package/dist/chunk-7F7QB4D5.mjs +50 -0
  48. package/dist/chunk-AYGPUYPZ.mjs +5 -0
  49. package/dist/chunk-B3PZUFG2.mjs +40 -0
  50. package/dist/chunk-CYW3DUD2.mjs +5 -0
  51. package/dist/chunk-EKFYWUBE.mjs +36 -0
  52. package/dist/chunk-EX4U7YZF.mjs +83 -0
  53. package/dist/chunk-FUJQIYOF.mjs +37 -0
  54. package/dist/chunk-GSPFHK2Z.mjs +55 -0
  55. package/dist/chunk-ID5KKZMK.mjs +5 -0
  56. package/dist/chunk-IOOSUX5O.mjs +6 -0
  57. package/dist/chunk-IWDN3WGQ.mjs +47 -0
  58. package/dist/chunk-IWV4FFE3.mjs +35 -0
  59. package/dist/chunk-KBVDBI2L.mjs +59 -0
  60. package/dist/chunk-LNYNZ4EG.mjs +40 -0
  61. package/dist/chunk-NMSLCM2K.mjs +18 -0
  62. package/dist/chunk-O3NMR6GE.mjs +53 -0
  63. package/dist/chunk-PCKWBORI.mjs +5 -0
  64. package/dist/chunk-VZNNGRKM.mjs +5 -0
  65. package/dist/chunk-X3OAJSS2.mjs +41 -0
  66. package/dist/index.d.mts +15 -27
  67. package/dist/index.d.ts +15 -27
  68. package/dist/index.js +443 -29
  69. package/dist/index.mjs +69 -43
  70. package/dist/input/input.d.mts +13 -0
  71. package/dist/input/input.d.ts +13 -0
  72. package/dist/input/input.js +109 -0
  73. package/dist/input/input.mjs +51 -0
  74. package/dist/link/index.d.mts +3 -0
  75. package/dist/link/index.d.ts +3 -0
  76. package/dist/link/index.js +94 -0
  77. package/dist/link/index.mjs +8 -0
  78. package/dist/link/link.d.mts +26 -0
  79. package/dist/link/link.d.ts +26 -0
  80. package/dist/link/link.js +88 -0
  81. package/dist/link/link.mjs +7 -0
  82. package/dist/list/description-list.d.mts +32 -0
  83. package/dist/list/description-list.d.ts +32 -0
  84. package/dist/list/description-list.js +89 -0
  85. package/dist/list/description-list.mjs +13 -0
  86. package/dist/list/index.d.mts +5 -0
  87. package/dist/list/index.d.ts +5 -0
  88. package/dist/list/index.js +144 -0
  89. package/dist/list/index.mjs +22 -0
  90. package/dist/list/link-list.d.mts +13 -0
  91. package/dist/list/link-list.d.ts +13 -0
  92. package/dist/list/link-list.js +102 -0
  93. package/dist/list/link-list.mjs +8 -0
  94. package/dist/list/list.d.mts +25 -0
  95. package/dist/list/list.d.ts +25 -0
  96. package/dist/list/list.js +95 -0
  97. package/dist/list/list.mjs +9 -0
  98. package/dist/message/index.d.mts +4 -0
  99. package/dist/message/index.d.ts +4 -0
  100. package/dist/message/index.js +162 -0
  101. package/dist/message/index.mjs +9 -0
  102. package/dist/message/message.d.mts +16 -0
  103. package/dist/message/message.d.ts +16 -0
  104. package/dist/message/message.js +155 -0
  105. package/dist/message/message.mjs +8 -0
  106. package/dist/utils-BfZsjuFH.d.mts +17 -0
  107. package/dist/utils-BfZsjuFH.d.ts +17 -0
  108. package/package.json +17 -17
  109. package/dist/chunk-ZPSTPWVB.mjs +0 -103
@@ -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 };
@@ -0,0 +1,102 @@
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/link-list.tsx
50
+ var link_list_exports = {};
51
+ __export(link_list_exports, {
52
+ LinkList: () => LinkList
53
+ });
54
+ module.exports = __toCommonJS(link_list_exports);
55
+
56
+ // src/list/list.tsx
57
+ var import_clsx = require("clsx");
58
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
59
+ var import_jsx_runtime = require("react/jsx-runtime");
60
+ function BaseList(_a) {
61
+ var _b = _a, {
62
+ as: ListTag = "ul",
63
+ children,
64
+ listStyle = "inherit",
65
+ size = "medium"
66
+ } = _b, rest = __objRest(_b, [
67
+ "as",
68
+ "children",
69
+ "listStyle",
70
+ "size"
71
+ ]);
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
+ ListTag,
74
+ __spreadProps(__spreadValues({
75
+ className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-list"), (0, import_typed_classname.t)(`hds-list--${size}`), {
76
+ [(0, import_typed_classname.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
77
+ })
78
+ }, rest), {
79
+ children
80
+ })
81
+ );
82
+ }
83
+ function UnorderedList(props) {
84
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
85
+ }
86
+ function OrderedList(props) {
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
88
+ }
89
+ BaseList.displayName = "BaseList";
90
+ OrderedList.displayName = "UnorderedList";
91
+ UnorderedList.displayName = "UnorderedList";
92
+
93
+ // src/list/link-list.tsx
94
+ var import_jsx_runtime2 = require("react/jsx-runtime");
95
+ function LinkList(props) {
96
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
97
+ }
98
+ LinkList.displayName = "LinkList";
99
+ // Annotate the CommonJS export names for ESM import in node:
100
+ 0 && (module.exports = {
101
+ LinkList
102
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ LinkList
3
+ } from "../chunk-NMSLCM2K.mjs";
4
+ import "../chunk-IWDN3WGQ.mjs";
5
+ import "../chunk-FUJQIYOF.mjs";
6
+ export {
7
+ LinkList
8
+ };
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { HTMLAttributes } from 'react';
4
+
5
+ interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
+ children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
+ /**
8
+ * Inherit list styles or do not show these
9
+ */
10
+ listStyle?: "inherit" | "no-bullets";
11
+ /**
12
+ * Sets the size of the items (font)
13
+ */
14
+ size?: "small" | "medium" | "large";
15
+ }
16
+ declare function UnorderedList(props: ListProps): react_jsx_runtime.JSX.Element;
17
+ declare namespace UnorderedList {
18
+ var displayName: string;
19
+ }
20
+ declare function OrderedList(props: ListProps): react_jsx_runtime.JSX.Element;
21
+ declare namespace OrderedList {
22
+ var displayName: string;
23
+ }
24
+
25
+ export { type ListProps, OrderedList, UnorderedList };
@@ -0,0 +1,25 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { HTMLAttributes } from 'react';
4
+
5
+ interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
+ children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
7
+ /**
8
+ * Inherit list styles or do not show these
9
+ */
10
+ listStyle?: "inherit" | "no-bullets";
11
+ /**
12
+ * Sets the size of the items (font)
13
+ */
14
+ size?: "small" | "medium" | "large";
15
+ }
16
+ declare function UnorderedList(props: ListProps): react_jsx_runtime.JSX.Element;
17
+ declare namespace UnorderedList {
18
+ var displayName: string;
19
+ }
20
+ declare function OrderedList(props: ListProps): react_jsx_runtime.JSX.Element;
21
+ declare namespace OrderedList {
22
+ var displayName: string;
23
+ }
24
+
25
+ export { type ListProps, OrderedList, UnorderedList };
@@ -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/list/list.tsx
50
+ var list_exports = {};
51
+ __export(list_exports, {
52
+ OrderedList: () => OrderedList,
53
+ UnorderedList: () => UnorderedList
54
+ });
55
+ module.exports = __toCommonJS(list_exports);
56
+ var import_clsx = require("clsx");
57
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
58
+ var import_jsx_runtime = require("react/jsx-runtime");
59
+ function BaseList(_a) {
60
+ var _b = _a, {
61
+ as: ListTag = "ul",
62
+ children,
63
+ listStyle = "inherit",
64
+ size = "medium"
65
+ } = _b, rest = __objRest(_b, [
66
+ "as",
67
+ "children",
68
+ "listStyle",
69
+ "size"
70
+ ]);
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ ListTag,
73
+ __spreadProps(__spreadValues({
74
+ className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-list"), (0, import_typed_classname.t)(`hds-list--${size}`), {
75
+ [(0, import_typed_classname.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
76
+ })
77
+ }, rest), {
78
+ children
79
+ })
80
+ );
81
+ }
82
+ function UnorderedList(props) {
83
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
84
+ }
85
+ function OrderedList(props) {
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
87
+ }
88
+ BaseList.displayName = "BaseList";
89
+ OrderedList.displayName = "UnorderedList";
90
+ UnorderedList.displayName = "UnorderedList";
91
+ // Annotate the CommonJS export names for ESM import in node:
92
+ 0 && (module.exports = {
93
+ OrderedList,
94
+ UnorderedList
95
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ OrderedList,
3
+ UnorderedList
4
+ } from "../chunk-IWDN3WGQ.mjs";
5
+ import "../chunk-FUJQIYOF.mjs";
6
+ export {
7
+ OrderedList,
8
+ UnorderedList
9
+ };
@@ -0,0 +1,4 @@
1
+ export { Message, MessageProps } from './message.mjs';
2
+ import 'react';
3
+ import '../utils-BfZsjuFH.mjs';
4
+ import '../box/box.mjs';
@@ -0,0 +1,4 @@
1
+ export { Message, MessageProps } from './message.js';
2
+ import 'react';
3
+ import '../utils-BfZsjuFH.js';
4
+ import '../box/box.js';