@postenbring/hedwig-react 0.0.6 → 0.0.9

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 (97) hide show
  1. package/dist/accordion/accordion-item-content.js +3 -4
  2. package/dist/accordion/accordion-item-content.mjs +1 -1
  3. package/dist/accordion/accordion-item-trigger.js +26 -13
  4. package/dist/accordion/accordion-item-trigger.mjs +1 -1
  5. package/dist/accordion/accordion-item.js +3 -4
  6. package/dist/accordion/accordion-item.mjs +1 -1
  7. package/dist/accordion/accordion.js +1 -2
  8. package/dist/accordion/accordion.mjs +1 -1
  9. package/dist/accordion/index.js +35 -25
  10. package/dist/accordion/index.mjs +5 -5
  11. package/dist/badge/badge.js +10 -4
  12. package/dist/badge/badge.mjs +1 -1
  13. package/dist/badge/index.js +12 -6
  14. package/dist/badge/index.mjs +2 -2
  15. package/dist/box/box.d.mts +2 -2
  16. package/dist/box/box.d.ts +2 -2
  17. package/dist/box/box.js +8 -9
  18. package/dist/box/box.mjs +1 -1
  19. package/dist/box/index.js +10 -11
  20. package/dist/box/index.mjs +2 -2
  21. package/dist/button/button.d.mts +14 -14
  22. package/dist/button/button.d.ts +14 -14
  23. package/dist/button/button.js +59 -38
  24. package/dist/button/button.mjs +3 -1
  25. package/dist/button/index.d.mts +2 -2
  26. package/dist/button/index.d.ts +2 -2
  27. package/dist/button/index.js +61 -40
  28. package/dist/button/index.mjs +4 -2
  29. package/dist/chunk-2QSL2PSS.mjs +63 -0
  30. package/dist/chunk-5NDZ66M6.mjs +5 -0
  31. package/dist/chunk-6AW5BEDP.mjs +21 -0
  32. package/dist/{chunk-B3PZUFG2.mjs → chunk-6XSKLHN6.mjs} +15 -6
  33. package/dist/chunk-BJANCH4F.mjs +5 -0
  34. package/dist/{chunk-NMSLCM2K.mjs → chunk-DQ2OO6EW.mjs} +1 -1
  35. package/dist/chunk-ENRMC5K7.mjs +75 -0
  36. package/dist/{chunk-IWV4FFE3.mjs → chunk-GMGUONH5.mjs} +2 -3
  37. package/dist/{chunk-LNYNZ4EG.mjs → chunk-J7U4Z726.mjs} +3 -4
  38. package/dist/{chunk-KBVDBI2L.mjs → chunk-L7DYK6OS.mjs} +3 -4
  39. package/dist/{chunk-O3NMR6GE.mjs → chunk-MNSMCSAR.mjs} +11 -5
  40. package/dist/chunk-N3EFZW7T.mjs +5 -0
  41. package/dist/{chunk-IOOSUX5O.mjs → chunk-QOVAYDPH.mjs} +2 -2
  42. package/dist/chunk-R55SMUE7.mjs +5 -0
  43. package/dist/{chunk-EX4U7YZF.mjs → chunk-RXUPE4MM.mjs} +8 -9
  44. package/dist/{chunk-IWDN3WGQ.mjs → chunk-STKOYB5H.mjs} +13 -7
  45. package/dist/chunk-TES7CVGU.mjs +34 -0
  46. package/dist/chunk-X4D24ZRP.mjs +63 -0
  47. package/dist/chunk-XJ44O3HY.mjs +58 -0
  48. package/dist/chunk-Z36ETKOZ.mjs +5 -0
  49. package/dist/index.d.mts +5 -4
  50. package/dist/index.d.ts +5 -4
  51. package/dist/index.js +235 -155
  52. package/dist/index.mjs +32 -25
  53. package/dist/input/index.d.mts +3 -0
  54. package/dist/input/index.d.ts +3 -0
  55. package/dist/input/index.js +121 -0
  56. package/dist/input/index.mjs +13 -0
  57. package/dist/input/input.d.mts +1 -1
  58. package/dist/input/input.d.ts +1 -1
  59. package/dist/input/input.js +13 -7
  60. package/dist/input/input.mjs +3 -47
  61. package/dist/link/index.d.mts +1 -1
  62. package/dist/link/index.d.ts +1 -1
  63. package/dist/link/index.js +22 -29
  64. package/dist/link/index.mjs +2 -2
  65. package/dist/link/link.d.mts +2 -10
  66. package/dist/link/link.d.ts +2 -10
  67. package/dist/link/link.js +20 -27
  68. package/dist/link/link.mjs +1 -1
  69. package/dist/list/description-list.d.mts +1 -1
  70. package/dist/list/description-list.d.ts +1 -1
  71. package/dist/list/description-list.js +14 -5
  72. package/dist/list/description-list.mjs +1 -1
  73. package/dist/list/index.js +28 -13
  74. package/dist/list/index.mjs +8 -8
  75. package/dist/list/link-list.js +12 -6
  76. package/dist/list/link-list.mjs +2 -2
  77. package/dist/list/list.js +12 -6
  78. package/dist/list/list.mjs +1 -1
  79. package/dist/message/index.d.mts +14 -2
  80. package/dist/message/index.d.ts +14 -2
  81. package/dist/message/index.js +51 -16
  82. package/dist/message/index.mjs +10 -5
  83. package/dist/message/message.d.mts +3 -1
  84. package/dist/message/message.d.ts +3 -1
  85. package/dist/message/message.js +42 -14
  86. package/dist/message/message.mjs +8 -4
  87. package/package.json +3 -5
  88. package/dist/chunk-4XWB4ZSR.mjs +0 -6
  89. package/dist/chunk-7F7QB4D5.mjs +0 -50
  90. package/dist/chunk-AYGPUYPZ.mjs +0 -5
  91. package/dist/chunk-CYW3DUD2.mjs +0 -5
  92. package/dist/chunk-EKFYWUBE.mjs +0 -36
  93. package/dist/chunk-GSPFHK2Z.mjs +0 -55
  94. package/dist/chunk-ID5KKZMK.mjs +0 -5
  95. package/dist/chunk-PCKWBORI.mjs +0 -5
  96. package/dist/chunk-VZNNGRKM.mjs +0 -5
  97. package/dist/chunk-X3OAJSS2.mjs +0 -41
package/dist/index.mjs CHANGED
@@ -1,55 +1,59 @@
1
- import "./chunk-IOOSUX5O.mjs";
1
+ import "./chunk-QOVAYDPH.mjs";
2
+ import {
3
+ DescriptionDetails,
4
+ DescriptionList,
5
+ DescriptionTerm
6
+ } from "./chunk-6XSKLHN6.mjs";
2
7
  import {
3
8
  LinkList
4
- } from "./chunk-NMSLCM2K.mjs";
9
+ } from "./chunk-DQ2OO6EW.mjs";
5
10
  import {
6
11
  OrderedList,
7
12
  UnorderedList
8
- } from "./chunk-IWDN3WGQ.mjs";
9
- import "./chunk-4XWB4ZSR.mjs";
13
+ } from "./chunk-STKOYB5H.mjs";
14
+ import {
15
+ MessageComponent
16
+ } from "./chunk-6AW5BEDP.mjs";
10
17
  import {
11
- Message
12
- } from "./chunk-EKFYWUBE.mjs";
13
- import "./chunk-ID5KKZMK.mjs";
18
+ MessageDescription,
19
+ MessageTitle
20
+ } from "./chunk-X4D24ZRP.mjs";
21
+ import "./chunk-BJANCH4F.mjs";
14
22
  import {
15
23
  Box,
16
24
  BoxCloseButton
17
- } from "./chunk-EX4U7YZF.mjs";
18
- import "./chunk-VZNNGRKM.mjs";
25
+ } from "./chunk-RXUPE4MM.mjs";
26
+ import "./chunk-N3EFZW7T.mjs";
19
27
  import {
28
+ BaseButton,
20
29
  PrimaryButton,
21
30
  SecondaryButton
22
- } from "./chunk-GSPFHK2Z.mjs";
23
- import "./chunk-AYGPUYPZ.mjs";
31
+ } from "./chunk-ENRMC5K7.mjs";
32
+ import "./chunk-5NDZ66M6.mjs";
24
33
  import {
25
34
  Link
26
- } from "./chunk-X3OAJSS2.mjs";
27
- import {
28
- DescriptionDetails,
29
- DescriptionList,
30
- DescriptionTerm
31
- } from "./chunk-B3PZUFG2.mjs";
32
- import "./chunk-PCKWBORI.mjs";
35
+ } from "./chunk-TES7CVGU.mjs";
36
+ import "./chunk-Z36ETKOZ.mjs";
33
37
  import {
34
38
  AccordionContent
35
- } from "./chunk-LNYNZ4EG.mjs";
39
+ } from "./chunk-J7U4Z726.mjs";
36
40
  import {
37
41
  AccordionTrigger
38
- } from "./chunk-7F7QB4D5.mjs";
42
+ } from "./chunk-2QSL2PSS.mjs";
39
43
  import {
40
44
  AccordionItem
41
- } from "./chunk-KBVDBI2L.mjs";
45
+ } from "./chunk-L7DYK6OS.mjs";
42
46
  import {
43
47
  Accordion
44
- } from "./chunk-IWV4FFE3.mjs";
48
+ } from "./chunk-GMGUONH5.mjs";
45
49
  import "./chunk-2V6SWZ5G.mjs";
46
- import "./chunk-CYW3DUD2.mjs";
50
+ import "./chunk-R55SMUE7.mjs";
47
51
  import {
48
52
  Badge,
49
53
  DarkBadge,
50
54
  WarningBadge,
51
55
  WhiteBadge
52
- } from "./chunk-O3NMR6GE.mjs";
56
+ } from "./chunk-MNSMCSAR.mjs";
53
57
  import "./chunk-FUJQIYOF.mjs";
54
58
  export {
55
59
  Accordion,
@@ -57,6 +61,7 @@ export {
57
61
  AccordionItem,
58
62
  AccordionTrigger,
59
63
  Badge,
64
+ BaseButton,
60
65
  Box,
61
66
  BoxCloseButton,
62
67
  DarkBadge,
@@ -65,7 +70,9 @@ export {
65
70
  DescriptionTerm,
66
71
  Link,
67
72
  LinkList,
68
- Message,
73
+ MessageComponent as Message,
74
+ MessageDescription,
75
+ MessageTitle,
69
76
  OrderedList,
70
77
  PrimaryButton,
71
78
  SecondaryButton,
@@ -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_base = require("@postenbring/hedwig-css/dist/base.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/base.css";
10
+ import "@postenbring/hedwig-css/dist/input.css";
11
+ export {
12
+ Input
13
+ };
@@ -8,6 +8,6 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
8
8
  labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
9
  label: React.ReactNode;
10
10
  }
11
- declare function Input({ variant, errorMessage, labelProps, label, id, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
11
+ declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
12
12
 
13
13
  export { Input, type InputProps };
@@ -8,6 +8,6 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
8
8
  labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
9
  label: React.ReactNode;
10
10
  }
11
- declare function Input({ variant, errorMessage, labelProps, label, id, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
11
+ declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
12
12
 
13
13
  export { Input, type InputProps };
@@ -63,7 +63,7 @@ __export(input_exports, {
63
63
  });
64
64
  module.exports = __toCommonJS(input_exports);
65
65
  var React = __toESM(require("react"));
66
- var import_clsx = require("clsx");
66
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
67
67
  var import_jsx_runtime = require("react/jsx-runtime");
68
68
  function Input(_a) {
69
69
  var _b = _a, {
@@ -71,23 +71,29 @@ function Input(_a) {
71
71
  errorMessage,
72
72
  labelProps,
73
73
  label,
74
- id
74
+ id,
75
+ className
75
76
  } = _b, rest = __objRest(_b, [
76
77
  "variant",
77
78
  "errorMessage",
78
79
  "labelProps",
79
80
  "label",
80
- "id"
81
+ "id",
82
+ "className"
81
83
  ]);
82
84
  const errorMessageId = React.useId();
83
85
  const inputId = React.useId();
84
86
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
85
87
  "div",
86
88
  {
87
- className: (0, import_clsx.clsx)("hds-input", {
88
- [`hds-input--${variant}`]: variant,
89
- "hds-input--error": errorMessage
90
- }),
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
+ ),
91
97
  children: [
92
98
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
93
99
  !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
@@ -1,51 +1,7 @@
1
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
- }
2
+ Input
3
+ } from "../chunk-XJ44O3HY.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
49
5
  export {
50
6
  Input
51
7
  };
@@ -1,3 +1,3 @@
1
1
  export { Link, LinkProps } from './link.mjs';
2
- import 'react/jsx-runtime';
3
2
  import 'react';
3
+ import '../utils-BfZsjuFH.mjs';
@@ -1,3 +1,3 @@
1
1
  export { Link, LinkProps } from './link.js';
2
- import 'react/jsx-runtime';
3
2
  import 'react';
3
+ import '../utils-BfZsjuFH.js';
@@ -52,41 +52,34 @@ __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");
56
- var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
55
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
56
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
57
57
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
58
58
  var import_link = require("@postenbring/hedwig-css/dist/link.css");
59
59
 
60
60
  // src/link/link.tsx
61
- var import_clsx = require("clsx");
62
61
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
62
+ var import_react = require("react");
63
63
  var import_jsx_runtime = require("react/jsx-runtime");
64
- function Link(_a) {
65
- var _b = _a, {
66
- children,
67
- variant = "underline",
68
- size = "medium",
69
- anchorRef
70
- } = _b, rest = __objRest(_b, [
71
- "children",
72
- "variant",
73
- "size",
74
- "anchorRef"
75
- ]);
76
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
- "a",
78
- __spreadProps(__spreadValues({
79
- className: (0, import_clsx.clsx)(
80
- (0, import_typed_classname.t)("hds-link"),
81
- variant !== "underline" && (0, import_typed_classname.t)(`hds-link--${variant}`),
82
- size !== "medium" && (0, import_typed_classname.t)(`hds-link--${size}`)
83
- ),
84
- ref: anchorRef
85
- }, rest), {
86
- children
87
- })
88
- );
89
- }
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
+ );
90
83
  Link.displayName = "Link";
91
84
  // Annotate the CommonJS export names for ESM import in node:
92
85
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
- import "../chunk-AYGPUYPZ.mjs";
1
+ import "../chunk-5NDZ66M6.mjs";
2
2
  import {
3
3
  Link
4
- } from "../chunk-X3OAJSS2.mjs";
4
+ } from "../chunk-TES7CVGU.mjs";
5
5
  import "../chunk-FUJQIYOF.mjs";
6
6
  export {
7
7
  Link
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
 
4
4
  interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  /**
@@ -13,14 +13,6 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
13
13
  children: React.ReactNode;
14
14
  anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
15
15
  }
16
- /**
17
- * ## TODO
18
- *
19
- * - [ ] Handle button styling
20
- */
21
- declare function Link({ children, variant, size, anchorRef, ...rest }: LinkProps): react_jsx_runtime.JSX.Element;
22
- declare namespace Link {
23
- var displayName: string;
24
- }
16
+ declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
25
17
 
26
18
  export { Link, type LinkProps };
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
 
4
4
  interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  /**
@@ -13,14 +13,6 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
13
13
  children: React.ReactNode;
14
14
  anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
15
15
  }
16
- /**
17
- * ## TODO
18
- *
19
- * - [ ] Handle button styling
20
- */
21
- declare function Link({ children, variant, size, anchorRef, ...rest }: LinkProps): react_jsx_runtime.JSX.Element;
22
- declare namespace Link {
23
- var displayName: string;
24
- }
16
+ declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
25
17
 
26
18
  export { Link, type LinkProps };
package/dist/link/link.js CHANGED
@@ -52,35 +52,28 @@ __export(link_exports, {
52
52
  Link: () => Link
53
53
  });
54
54
  module.exports = __toCommonJS(link_exports);
55
- var import_clsx = require("clsx");
56
55
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
56
+ var import_react = require("react");
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
- function Link(_a) {
59
- var _b = _a, {
60
- children,
61
- variant = "underline",
62
- size = "medium",
63
- anchorRef
64
- } = _b, rest = __objRest(_b, [
65
- "children",
66
- "variant",
67
- "size",
68
- "anchorRef"
69
- ]);
70
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
- "a",
72
- __spreadProps(__spreadValues({
73
- className: (0, import_clsx.clsx)(
74
- (0, import_typed_classname.t)("hds-link"),
75
- variant !== "underline" && (0, import_typed_classname.t)(`hds-link--${variant}`),
76
- size !== "medium" && (0, import_typed_classname.t)(`hds-link--${size}`)
77
- ),
78
- ref: anchorRef
79
- }, rest), {
80
- children
81
- })
82
- );
83
- }
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
+ );
84
77
  Link.displayName = "Link";
85
78
  // Annotate the CommonJS export names for ESM import in node:
86
79
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Link
3
- } from "../chunk-X3OAJSS2.mjs";
3
+ } from "../chunk-TES7CVGU.mjs";
4
4
  import "../chunk-FUJQIYOF.mjs";
5
5
  export {
6
6
  Link
@@ -24,7 +24,7 @@ declare function DescriptionTerm({ children, ...rest }: DescriptionTermProps): r
24
24
  declare namespace DescriptionTerm {
25
25
  var displayName: string;
26
26
  }
27
- declare function DescriptionList({ variant, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
27
+ declare function DescriptionList({ variant, className, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
28
28
  declare namespace DescriptionList {
29
29
  var displayName: string;
30
30
  }
@@ -24,7 +24,7 @@ declare function DescriptionTerm({ children, ...rest }: DescriptionTermProps): r
24
24
  declare namespace DescriptionTerm {
25
25
  var displayName: string;
26
26
  }
27
- declare function DescriptionList({ variant, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
27
+ declare function DescriptionList({ variant, className, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
28
28
  declare namespace DescriptionList {
29
29
  var displayName: string;
30
30
  }
@@ -55,7 +55,6 @@ __export(description_list_exports, {
55
55
  default: () => description_list_default
56
56
  });
57
57
  module.exports = __toCommonJS(description_list_exports);
58
- var import_clsx = require("clsx");
59
58
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
60
59
  var import_jsx_runtime = require("react/jsx-runtime");
61
60
  function DescriptionDetails(_a) {
@@ -67,13 +66,23 @@ function DescriptionTerm(_a) {
67
66
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
68
67
  }
69
68
  function DescriptionList(_a) {
70
- var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]);
69
+ var _b = _a, {
70
+ variant = "vertical",
71
+ className
72
+ } = _b, rest = __objRest(_b, [
73
+ "variant",
74
+ "className"
75
+ ]);
71
76
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
77
  "dl",
73
78
  __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
- })
79
+ className: (0, import_typed_classname.clsx)(
80
+ "hds-description-list",
81
+ {
82
+ "hds-description-list--horizontal": variant === "horizontal"
83
+ },
84
+ className
85
+ )
77
86
  }, rest)
78
87
  );
79
88
  }
@@ -3,7 +3,7 @@ import {
3
3
  DescriptionList,
4
4
  DescriptionTerm,
5
5
  description_list_default
6
- } from "../chunk-B3PZUFG2.mjs";
6
+ } from "../chunk-6XSKLHN6.mjs";
7
7
  import "../chunk-FUJQIYOF.mjs";
8
8
  export {
9
9
  DescriptionDetails,