@postenbring/hedwig-react 0.0.0-FPfHEZ66-tabs-component-20231214140156

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 (154) 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 +97 -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 +121 -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 +115 -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 +92 -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 +227 -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 +109 -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 +115 -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 +130 -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 +136 -0
  36. package/dist/box/index.mjs +10 -0
  37. package/dist/breadcrumb/breadcrumb.d.mts +43 -0
  38. package/dist/breadcrumb/breadcrumb.d.ts +43 -0
  39. package/dist/breadcrumb/breadcrumb.js +52 -0
  40. package/dist/breadcrumb/breadcrumb.mjs +7 -0
  41. package/dist/breadcrumb/index.d.mts +3 -0
  42. package/dist/breadcrumb/index.d.ts +3 -0
  43. package/dist/breadcrumb/index.js +58 -0
  44. package/dist/breadcrumb/index.mjs +8 -0
  45. package/dist/button/button.d.mts +37 -0
  46. package/dist/button/button.d.ts +37 -0
  47. package/dist/button/button.js +124 -0
  48. package/dist/button/button.mjs +11 -0
  49. package/dist/button/index.d.mts +3 -0
  50. package/dist/button/index.d.ts +3 -0
  51. package/dist/button/index.js +130 -0
  52. package/dist/button/index.mjs +12 -0
  53. package/dist/chunk-2QSL2PSS.mjs +63 -0
  54. package/dist/chunk-2V6SWZ5G.mjs +16 -0
  55. package/dist/chunk-3VUAKZB2.mjs +48 -0
  56. package/dist/chunk-5OAMKZDX.mjs +6 -0
  57. package/dist/chunk-6XSKLHN6.mjs +49 -0
  58. package/dist/chunk-74UG2OYZ.mjs +111 -0
  59. package/dist/chunk-7SCOBRDZ.mjs +5 -0
  60. package/dist/chunk-AJBQ2EJU.mjs +5 -0
  61. package/dist/chunk-BRBGRJ2I.mjs +18 -0
  62. package/dist/chunk-ENRMC5K7.mjs +75 -0
  63. package/dist/chunk-FSBY3NKV.mjs +47 -0
  64. package/dist/chunk-FUJQIYOF.mjs +37 -0
  65. package/dist/chunk-GMGUONH5.mjs +34 -0
  66. package/dist/chunk-HMESGVY5.mjs +21 -0
  67. package/dist/chunk-IEY4EQ4E.mjs +5 -0
  68. package/dist/chunk-J7U4Z726.mjs +39 -0
  69. package/dist/chunk-L7DYK6OS.mjs +58 -0
  70. package/dist/chunk-LNPO2XQW.mjs +5 -0
  71. package/dist/chunk-LZSDIT5D.mjs +5 -0
  72. package/dist/chunk-MNSMCSAR.mjs +59 -0
  73. package/dist/chunk-Q2HYT3Z7.mjs +16 -0
  74. package/dist/chunk-QV33ZHNO.mjs +60 -0
  75. package/dist/chunk-RXUPE4MM.mjs +82 -0
  76. package/dist/chunk-RY53CJI7.mjs +53 -0
  77. package/dist/chunk-TES7CVGU.mjs +34 -0
  78. package/dist/chunk-TFY7NZMU.mjs +5 -0
  79. package/dist/chunk-VX6MSLLO.mjs +5 -0
  80. package/dist/chunk-X4D24ZRP.mjs +63 -0
  81. package/dist/chunk-XJ44O3HY.mjs +58 -0
  82. package/dist/chunk-YFBW5ZRC.mjs +18 -0
  83. package/dist/chunk-YRAMCYSB.mjs +5 -0
  84. package/dist/dropdown/dropdown.d.mts +15 -0
  85. package/dist/dropdown/dropdown.d.ts +15 -0
  86. package/dist/dropdown/dropdown.js +95 -0
  87. package/dist/dropdown/dropdown.mjs +7 -0
  88. package/dist/dropdown/index.d.mts +3 -0
  89. package/dist/dropdown/index.d.ts +3 -0
  90. package/dist/dropdown/index.js +101 -0
  91. package/dist/dropdown/index.mjs +8 -0
  92. package/dist/index.d.mts +21 -0
  93. package/dist/index.d.ts +21 -0
  94. package/dist/index.js +944 -0
  95. package/dist/index.mjs +114 -0
  96. package/dist/input/index.d.mts +3 -0
  97. package/dist/input/index.d.ts +3 -0
  98. package/dist/input/index.js +121 -0
  99. package/dist/input/index.mjs +13 -0
  100. package/dist/input/input.d.mts +13 -0
  101. package/dist/input/input.d.ts +13 -0
  102. package/dist/input/input.js +115 -0
  103. package/dist/input/input.mjs +7 -0
  104. package/dist/link/index.d.mts +3 -0
  105. package/dist/link/index.d.ts +3 -0
  106. package/dist/link/index.js +87 -0
  107. package/dist/link/index.mjs +8 -0
  108. package/dist/link/link.d.mts +18 -0
  109. package/dist/link/link.d.ts +18 -0
  110. package/dist/link/link.js +81 -0
  111. package/dist/link/link.mjs +7 -0
  112. package/dist/list/description-list.d.mts +32 -0
  113. package/dist/list/description-list.d.ts +32 -0
  114. package/dist/list/description-list.js +98 -0
  115. package/dist/list/description-list.mjs +13 -0
  116. package/dist/list/index.d.mts +5 -0
  117. package/dist/list/index.d.ts +5 -0
  118. package/dist/list/index.js +159 -0
  119. package/dist/list/index.mjs +22 -0
  120. package/dist/list/link-list.d.mts +13 -0
  121. package/dist/list/link-list.d.ts +13 -0
  122. package/dist/list/link-list.js +108 -0
  123. package/dist/list/link-list.mjs +8 -0
  124. package/dist/list/list.d.mts +25 -0
  125. package/dist/list/list.d.ts +25 -0
  126. package/dist/list/list.js +101 -0
  127. package/dist/list/list.mjs +9 -0
  128. package/dist/message/index.d.mts +16 -0
  129. package/dist/message/index.d.ts +16 -0
  130. package/dist/message/index.js +197 -0
  131. package/dist/message/index.mjs +14 -0
  132. package/dist/message/message.d.mts +18 -0
  133. package/dist/message/message.d.ts +18 -0
  134. package/dist/message/message.js +183 -0
  135. package/dist/message/message.mjs +12 -0
  136. package/dist/modal/index.d.mts +9 -0
  137. package/dist/modal/index.d.ts +9 -0
  138. package/dist/modal/index.js +218 -0
  139. package/dist/modal/index.mjs +13 -0
  140. package/dist/modal/modal.d.mts +13 -0
  141. package/dist/modal/modal.d.ts +13 -0
  142. package/dist/modal/modal.js +206 -0
  143. package/dist/modal/modal.mjs +11 -0
  144. package/dist/tabs/index.d.mts +4 -0
  145. package/dist/tabs/index.d.ts +4 -0
  146. package/dist/tabs/index.js +202 -0
  147. package/dist/tabs/index.mjs +17 -0
  148. package/dist/tabs/tabs.d.mts +49 -0
  149. package/dist/tabs/tabs.d.ts +49 -0
  150. package/dist/tabs/tabs.js +196 -0
  151. package/dist/tabs/tabs.mjs +16 -0
  152. package/dist/utils-BfZsjuFH.d.mts +17 -0
  153. package/dist/utils-BfZsjuFH.d.ts +17 -0
  154. package/package.json +34 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,114 @@
1
+ import {
2
+ MessageComponent
3
+ } from "./chunk-HMESGVY5.mjs";
4
+ import {
5
+ MessageDescription,
6
+ MessageTitle
7
+ } from "./chunk-X4D24ZRP.mjs";
8
+ import {
9
+ ModalComponent
10
+ } from "./chunk-YFBW5ZRC.mjs";
11
+ import {
12
+ ModalHeader
13
+ } from "./chunk-QV33ZHNO.mjs";
14
+ import "./chunk-TFY7NZMU.mjs";
15
+ import {
16
+ Tab,
17
+ TabContent,
18
+ TabContents,
19
+ TabList,
20
+ Tabs
21
+ } from "./chunk-74UG2OYZ.mjs";
22
+ import "./chunk-FSBY3NKV.mjs";
23
+ import "./chunk-7SCOBRDZ.mjs";
24
+ import {
25
+ Link
26
+ } from "./chunk-TES7CVGU.mjs";
27
+ import "./chunk-5OAMKZDX.mjs";
28
+ import {
29
+ DescriptionDetails,
30
+ DescriptionList,
31
+ DescriptionTerm
32
+ } from "./chunk-6XSKLHN6.mjs";
33
+ import {
34
+ LinkList
35
+ } from "./chunk-BRBGRJ2I.mjs";
36
+ import {
37
+ OrderedList,
38
+ UnorderedList
39
+ } from "./chunk-RY53CJI7.mjs";
40
+ import "./chunk-AJBQ2EJU.mjs";
41
+ import {
42
+ Box,
43
+ BoxCloseButton
44
+ } from "./chunk-RXUPE4MM.mjs";
45
+ import "./chunk-YRAMCYSB.mjs";
46
+ import {
47
+ Breadcrumbs
48
+ } from "./chunk-Q2HYT3Z7.mjs";
49
+ import "./chunk-VX6MSLLO.mjs";
50
+ import {
51
+ BaseButton,
52
+ PrimaryButton,
53
+ SecondaryButton
54
+ } from "./chunk-ENRMC5K7.mjs";
55
+ import "./chunk-LZSDIT5D.mjs";
56
+ import {
57
+ Dropdown
58
+ } from "./chunk-3VUAKZB2.mjs";
59
+ import "./chunk-LNPO2XQW.mjs";
60
+ import {
61
+ AccordionContent
62
+ } from "./chunk-J7U4Z726.mjs";
63
+ import {
64
+ AccordionTrigger
65
+ } from "./chunk-2QSL2PSS.mjs";
66
+ import {
67
+ AccordionItem
68
+ } from "./chunk-L7DYK6OS.mjs";
69
+ import {
70
+ Accordion
71
+ } from "./chunk-GMGUONH5.mjs";
72
+ import "./chunk-2V6SWZ5G.mjs";
73
+ import "./chunk-IEY4EQ4E.mjs";
74
+ import {
75
+ Badge,
76
+ DarkBadge,
77
+ WarningBadge,
78
+ WhiteBadge
79
+ } from "./chunk-MNSMCSAR.mjs";
80
+ import "./chunk-FUJQIYOF.mjs";
81
+ export {
82
+ Accordion,
83
+ AccordionContent,
84
+ AccordionItem,
85
+ AccordionTrigger,
86
+ Badge,
87
+ BaseButton,
88
+ Box,
89
+ BoxCloseButton,
90
+ Breadcrumbs,
91
+ DarkBadge,
92
+ DescriptionDetails,
93
+ DescriptionList,
94
+ DescriptionTerm,
95
+ Dropdown,
96
+ Link,
97
+ LinkList,
98
+ MessageComponent as Message,
99
+ MessageDescription,
100
+ MessageTitle,
101
+ ModalComponent as Modal,
102
+ ModalHeader,
103
+ OrderedList,
104
+ PrimaryButton,
105
+ SecondaryButton,
106
+ Tab,
107
+ TabContent,
108
+ TabContents,
109
+ TabList,
110
+ Tabs,
111
+ UnorderedList,
112
+ WarningBadge,
113
+ WhiteBadge
114
+ };
@@ -0,0 +1,3 @@
1
+ export { Input, InputProps } from './input.mjs';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -0,0 +1,3 @@
1
+ export { Input, InputProps } from './input.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -0,0 +1,121 @@
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/index.tsx
60
+ var input_exports = {};
61
+ __export(input_exports, {
62
+ Input: () => Input
63
+ });
64
+ module.exports = __toCommonJS(input_exports);
65
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
66
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
67
+ var import_body = require("@postenbring/hedwig-css/dist/body.css");
68
+ var import_input = require("@postenbring/hedwig-css/dist/input.css");
69
+
70
+ // src/input/input.tsx
71
+ var React = __toESM(require("react"));
72
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
73
+ var import_jsx_runtime = require("react/jsx-runtime");
74
+ function Input(_a) {
75
+ var _b = _a, {
76
+ variant = "default",
77
+ errorMessage,
78
+ labelProps,
79
+ label,
80
+ id,
81
+ className
82
+ } = _b, rest = __objRest(_b, [
83
+ "variant",
84
+ "errorMessage",
85
+ "labelProps",
86
+ "label",
87
+ "id",
88
+ "className"
89
+ ]);
90
+ const errorMessageId = React.useId();
91
+ const inputId = React.useId();
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
93
+ "div",
94
+ {
95
+ className: (0, import_typed_classname.clsx)(
96
+ "hds-input",
97
+ {
98
+ [`hds-input--${variant}`]: variant,
99
+ "hds-input--error": errorMessage
100
+ },
101
+ className
102
+ ),
103
+ children: [
104
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
105
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ "input",
108
+ __spreadProps(__spreadValues({}, rest), {
109
+ "aria-describedby": errorMessageId,
110
+ className: "hds-input__input",
111
+ id: id || inputId
112
+ })
113
+ )
114
+ ]
115
+ }
116
+ );
117
+ }
118
+ // Annotate the CommonJS export names for ESM import in node:
119
+ 0 && (module.exports = {
120
+ Input
121
+ });
@@ -0,0 +1,13 @@
1
+ import {
2
+ Input
3
+ } from "../chunk-XJ44O3HY.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
5
+
6
+ // src/input/index.tsx
7
+ import "@postenbring/hedwig-css/dist/fonts.css";
8
+ import "@postenbring/hedwig-css/dist/tokens.css";
9
+ import "@postenbring/hedwig-css/dist/body.css";
10
+ import "@postenbring/hedwig-css/dist/input.css";
11
+ export {
12
+ Input
13
+ };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> {
5
+ id?: string;
6
+ variant?: "default" | "white" | "lined";
7
+ errorMessage?: React.ReactNode;
8
+ labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
+ label: React.ReactNode;
10
+ }
11
+ declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
12
+
13
+ export { Input, type InputProps };
@@ -0,0 +1,13 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> {
5
+ id?: string;
6
+ variant?: "default" | "white" | "lined";
7
+ errorMessage?: React.ReactNode;
8
+ labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
+ label: React.ReactNode;
10
+ }
11
+ declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
12
+
13
+ export { Input, type InputProps };
@@ -0,0 +1,115 @@
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_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
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
+ className
76
+ } = _b, rest = __objRest(_b, [
77
+ "variant",
78
+ "errorMessage",
79
+ "labelProps",
80
+ "label",
81
+ "id",
82
+ "className"
83
+ ]);
84
+ const errorMessageId = React.useId();
85
+ const inputId = React.useId();
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
87
+ "div",
88
+ {
89
+ className: (0, import_typed_classname.clsx)(
90
+ "hds-input",
91
+ {
92
+ [`hds-input--${variant}`]: variant,
93
+ "hds-input--error": errorMessage
94
+ },
95
+ className
96
+ ),
97
+ children: [
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
99
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
+ "input",
102
+ __spreadProps(__spreadValues({}, rest), {
103
+ "aria-describedby": errorMessageId,
104
+ className: "hds-input__input",
105
+ id: id || inputId
106
+ })
107
+ )
108
+ ]
109
+ }
110
+ );
111
+ }
112
+ // Annotate the CommonJS export names for ESM import in node:
113
+ 0 && (module.exports = {
114
+ Input
115
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Input
3
+ } from "../chunk-XJ44O3HY.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
5
+ export {
6
+ Input
7
+ };
@@ -0,0 +1,3 @@
1
+ export { Link, LinkProps } from './link.mjs';
2
+ import 'react';
3
+ import '../utils-BfZsjuFH.mjs';
@@ -0,0 +1,3 @@
1
+ export { Link, LinkProps } from './link.js';
2
+ import 'react';
3
+ import '../utils-BfZsjuFH.js';
@@ -0,0 +1,87 @@
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/link/index.tsx
50
+ var link_exports = {};
51
+ __export(link_exports, {
52
+ Link: () => Link
53
+ });
54
+ module.exports = __toCommonJS(link_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_body = require("@postenbring/hedwig-css/dist/body.css");
58
+ var import_link = require("@postenbring/hedwig-css/dist/link.css");
59
+
60
+ // src/link/link.tsx
61
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
62
+ var import_react = require("react");
63
+ var import_jsx_runtime = require("react/jsx-runtime");
64
+ var Link = (0, import_react.forwardRef)(
65
+ (_a, ref) => {
66
+ var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
67
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
68
+ Component,
69
+ __spreadProps(__spreadValues({
70
+ className: (0, import_typed_classname.clsx)(
71
+ "hds-link",
72
+ variant !== "underline" && `hds-link--${variant}`,
73
+ size !== "medium" && `hds-link--${size}`,
74
+ className
75
+ ),
76
+ ref
77
+ }, rest), {
78
+ children
79
+ })
80
+ );
81
+ }
82
+ );
83
+ Link.displayName = "Link";
84
+ // Annotate the CommonJS export names for ESM import in node:
85
+ 0 && (module.exports = {
86
+ Link
87
+ });
@@ -0,0 +1,8 @@
1
+ import "../chunk-7SCOBRDZ.mjs";
2
+ import {
3
+ Link
4
+ } from "../chunk-TES7CVGU.mjs";
5
+ import "../chunk-FUJQIYOF.mjs";
6
+ export {
7
+ Link
8
+ };
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+
4
+ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
+ /**
6
+ * The visual style of the link
7
+ */
8
+ variant?: "underline" | "solid" | "inverted" | "no-underline";
9
+ /**
10
+ * Font size of the link
11
+ */
12
+ size?: "small" | "medium" | "large";
13
+ children: React.ReactNode;
14
+ anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
15
+ }
16
+ declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
17
+
18
+ export { Link, type LinkProps };
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+
4
+ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
+ /**
6
+ * The visual style of the link
7
+ */
8
+ variant?: "underline" | "solid" | "inverted" | "no-underline";
9
+ /**
10
+ * Font size of the link
11
+ */
12
+ size?: "small" | "medium" | "large";
13
+ children: React.ReactNode;
14
+ anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
15
+ }
16
+ declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
17
+
18
+ export { Link, type LinkProps };
@@ -0,0 +1,81 @@
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/link/link.tsx
50
+ var link_exports = {};
51
+ __export(link_exports, {
52
+ Link: () => Link
53
+ });
54
+ module.exports = __toCommonJS(link_exports);
55
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
56
+ var import_react = require("react");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var Link = (0, import_react.forwardRef)(
59
+ (_a, ref) => {
60
+ var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
+ Component,
63
+ __spreadProps(__spreadValues({
64
+ className: (0, import_typed_classname.clsx)(
65
+ "hds-link",
66
+ variant !== "underline" && `hds-link--${variant}`,
67
+ size !== "medium" && `hds-link--${size}`,
68
+ className
69
+ ),
70
+ ref
71
+ }, rest), {
72
+ children
73
+ })
74
+ );
75
+ }
76
+ );
77
+ Link.displayName = "Link";
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ Link
81
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Link
3
+ } from "../chunk-TES7CVGU.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
5
+ export {
6
+ Link
7
+ };
@@ -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, className, ...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 };